@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250928.0 → 0.0.0-nightly-20250930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x16feb7,Plugin as _0x15a662,PendingActions as _0x5ade70}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52f81c,ObservableMixin as _0xcedd82,uid as _0xb1da02,priorities as _0x1425d6,insertToPriorityArray as _0x496043,toArray as _0x56e3db,logWarning as _0x474c47,getEnvKeystrokeText as _0x160cbf,FocusTracker as _0x19fbab,KeystrokeHandler as _0x360216,Collection as _0x2f0e5f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x11f1da,IconCancel as _0x49bd98,IconTrackChanges as _0xb97b96}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3cca40,View as _0x326a2b,ViewCollection as _0xe1cd29,FocusCycler as _0x41f717,UIModel as _0x427f43,createDropdown as _0x17c506,SplitButtonView as _0x5c7ee9,addListToDropdown as _0x17740a,MenuBarMenuView as _0xe399e0,MenuBarMenuListView as _0x1de637,ListSeparatorView as _0x13a2c5,MenuBarMenuListItemView as _0x15614b,MenuBarMenuListItemButtonView as _0x330001,BodyCollection as _0x32b0ab,Dialog as _0x455f93}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x289e10,DocumentCompare as _0x1e0249,hashObject as _0x4f7d6e,surroundingMarkersDetector as _0x54016c,FOCUS_ANNOTATION_KEYSTROKE as _0x320f63,AriaDescriptionView as _0x3bd7fe,setupThreadKeyboardNavigation as _0xb94405,trimHtml as _0x3c1311,UserView as _0x36ef0d,LateFocusButtonView as _0x5a8c35,getDateTimeFormatter as _0x1b6d96,getAllMarkersDomElementsSorted as _0x41ca29,sanitizeEditorConfig as _0x218281}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x44a403,ModelLiveRange as _0x5a166f,ModelLivePosition as _0x405432,ModelPosition as _0x120719,ModelRange as _0xceba9f,_DetachOperation as _0xdeb023,ViewDowncastWriter as _0x513971}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2ba6ba,toWidget as _0x2d86f4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x27e870,set as _0x5d27ae,isEqual as _0x3b563a,unset as _0x2b3dd9,omit as Gt}from'es-toolkit/compat';import{Delete as _0x348227,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4a5290}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4c30d6}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x16feb7{['_enabledCommands'];constructor(_0xc9166f,_0x2a6bf6){super(_0xc9166f),this['_enabledCommands']=_0x2a6bf6,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 _0x40b48d of this['editor']['commands']['commands']())_0x40b48d['affectsData']&&!this['_enabledCommands']['has'](_0x40b48d)&&_0x40b48d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x54e10c of this['editor']['commands']['commands']())_0x54e10c['affectsData']&&!this['_enabledCommands']['has'](_0x54e10c)&&_0x54e10c['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x16feb7{['_suggestions'];constructor(_0x5cc2f8,_0x3b7c9f){super(_0x5cc2f8),this['_suggestions']=_0x3b7c9f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2a9a49){const _0x5ec283=this['_suggestions']['get'](_0x2a9a49);if(!_0x5ec283)throw new _0x52f81c('track-changes-accept-suggestion-not-found',this);const _0x4b0a9e=_0x5ec283['getRanges']();this['editor']['model']['canEditAt'](_0x4b0a9e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5ec283);}}class O extends _0x16feb7{['_suggestions'];constructor(_0x3ffaba,_0x4782aa){super(_0x3ffaba),this['_suggestions']=_0x4782aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4de842){const _0x28828b=this['_suggestions']['get'](_0x4de842);if(!_0x28828b)throw new _0x52f81c('track-changes-discard-suggestion-not-found',this);const _0x3671f5=_0x28828b['getRanges']();this['editor']['model']['canEditAt'](_0x3671f5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x28828b);}}function ls(_0x3a8ec7,_0x304d34){let _0x27e326='';return _0x27e326+=_0x3a8ec7['split']('*')['map']((_0x163481,_0x379b0a)=>_0x379b0a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x163481)+'</span>':tn(_0x163481))['join'](''),_0x304d34&&(_0x27e326+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x304d34['value']+'\x22\x20title=\x22'+_0x304d34['title']+'\x22></span>'),_0x27e326;}function tn(_0x3d405a){const _0x3f15fe=document['createElement']('span');return _0x3f15fe['innerText']=_0x3d405a,_0x3f15fe['innerHTML'];}function ts(_0x89a984){return _0x89a984['sort']((_0x2188f2,_0x3e5186)=>'attribute'===_0x2188f2['type']&&'attribute'!==_0x3e5186['type']?-0x1:'attribute'!==_0x2188f2['type']&&'attribute'===_0x3e5186['type']?0x1:'deletion'==_0x2188f2['type']&&'deletion'!=_0x3e5186['type']?-0x1:'deletion'!=_0x2188f2['type']&&'deletion'==_0x3e5186['type']?0x1:0x0);}function to(_0x43ad7c,_0x42a320){let _0xde6fcd,_0x47a45c=0x0;const _0x1f954c=[],_0xc33ed9=_0x42a320['schema'];for(;_0x47a45c<_0x43ad7c['length'];){const _0xb8441f=_0x43ad7c[_0x47a45c],_0xa868ba=_0x43ad7c[_0x47a45c+0x1];_0xde6fcd||(_0xde6fcd=_0x42a320['createPositionBefore'](_0xb8441f)),nn(_0x42a320,_0xb8441f,_0xa868ba)||(_0x1f954c['push'](_0x42a320['createRange'](_0xde6fcd,_0xc33ed9['isObject'](_0xb8441f)?_0x42a320['createPositionAfter'](_0xb8441f):_0x42a320['createPositionAt'](_0xb8441f,'end'))),_0xde6fcd=null),_0x47a45c++;}return _0x1f954c;}function nn(_0x3a0da2,_0x4c7c37,_0x2cd3cc){if(!_0x2cd3cc)return!0x1;const _0x3f4eeb=_0x3a0da2['createPositionAfter'](_0x4c7c37),_0x73d2bf=_0x3a0da2['createPositionBefore'](_0x2cd3cc);return _0x3f4eeb['isTouching'](_0x73d2bf);}function rs(_0x5c25c2,_0x2f790e,_0x42493f){for(;_0x42493f['length'];){const _0x4b5ef5=_0x42493f['splice'](0x0,0x64);_0x5c25c2['change'](()=>{for(const _0x4a3200 of _0x4b5ef5)_0x4a3200['isInContent']&&_0x2f790e['execute'](_0x4a3200['id']);});}}class x extends _0x16feb7{['_command'];['_suggestions'];constructor(_0x4d9042,_0x46951d,_0x35a02a){super(_0x4d9042),this['_command']=_0x46951d,this['_suggestions']=_0x35a02a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x530f65=Array['from'](this['_suggestions']['values']())['some'](_0x3fdca8=>_0x3fdca8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x530f65;}['execute'](){const _0x3a2b8a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x265612 of _0x3a2b8a){const _0xbf6a5e=_0x265612['getRanges']();if(!this['editor']['model']['canEditAt'](_0xbf6a5e))return;}rs(this['editor']['model'],this['_command'],_0x3a2b8a);}}class E extends _0x16feb7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5af75f,_0xf70dea,_0x26cb2d){super(_0x5af75f),this['_command']=_0xf70dea,this['_suggestions']=_0x26cb2d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x25c108=this['editor']['model']['document']['selection'],_0x20f744=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56dac2,_0x41caa3){const _0x2e81d1=Array['from'](_0x56dac2['getRanges']()),_0x20db0b=new Set();for(const _0x6180ed of _0x41caa3)if(_0x6180ed['isInContent']){for(const _0x15f04f of _0x2e81d1)for(const _0x2414ea of _0x6180ed['getRanges']())(_0x15f04f['isIntersecting'](_0x2414ea)||_0x56dac2['isCollapsed']&&!_0x6180ed['isMultiRange']&&_0x6180ed['next']&&_0x2414ea['end']['isTouching'](_0x15f04f['start']))&&_0x20db0b['add'](_0x6180ed);}return _0x20db0b;}(_0x25c108,_0x20f744),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3fef78=ts(Array['from'](this['_selectedSuggestions']));for(const _0x280974 of _0x3fef78){const _0x45087=_0x280974['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45087))return;}rs(this['editor']['model'],this['_command'],_0x3fef78);}}class R extends/* #__PURE__ -- @preserve */
24
- _0xcedd82(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5e514,_0x44bd37){super(),this['id']=_0x44bd37['id'],this['type']=_0x44bd37['type'],this['subType']=_0x44bd37['subType']||null,this['author']=_0x44bd37['author'],this['creator']=_0x44bd37['creator']||_0x44bd37['author'],this['isExternal']=Boolean(_0x44bd37['attributes']&&_0x44bd37['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x44bd37['originalSuggestionId']||null,this['_model']=_0x5e514,this['_onAccept']=_0x44bd37['onAccept'],this['_onDiscard']=_0x44bd37['onDiscard'],this['_onAttributesChange']=_0x44bd37['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x44bd37['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 _0x26c421=this;for(;_0x26c421['previous'];)_0x26c421=_0x26c421['previous'];return _0x26c421;}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'](_0x9690d7){this['_markerNames']['add'](_0x9690d7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2339de=>this['_model']['markers']['get'](_0x2339de))['filter'](_0x4ca867=>_0x4ca867);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x36d6d1=>{for(const _0x503c98 of this['getMarkers']())_0x36d6d1['removeMarker'](_0x503c98);}),this['_markerNames']['clear']();}['removeMarker'](_0x191a15){this['_model']['change'](_0x142820=>{_0x142820['removeMarker'](_0x191a15);}),this['_markerNames']['delete'](_0x191a15);}['addRange'](_0x4d1fbc){const _0x425ae8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x425ae8),this['_model']['change'](_0x5cb1c2=>{_0x5cb1c2['addMarker'](_0x425ae8,{'range':_0x4d1fbc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2fc13e){for(const _0x1d7a75 of this['getRanges']())if(_0x1d7a75['isIntersecting'](_0x2fc13e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x297725=>_0x297725['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x57ecdd,_0x17f8cc)=>[..._0x57ecdd,..._0x17f8cc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x496de0=this['getRanges']();if(0x1!=_0x496de0['length'])return null;const _0xd1be16=_0x496de0[0x0],_0x82440a=_0xd1be16['start']['nodeAfter'],_0x496121=_0xd1be16['end']['nodeBefore'];return _0x82440a instanceof _0x44a403?_0x82440a!=_0x496121?null:_0x82440a: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 _0x5ae4a9=[];let _0x504a54=this['head'];for(;_0x504a54;)_0x5ae4a9['push'](_0x504a54),_0x504a54=_0x504a54['next'];return _0x5ae4a9;}['setAttribute'](_0x5767a1,_0x5b1123){const _0x41cfb9=_0x27e870(this['attributes']);_0x5d27ae(_0x41cfb9,_0x5767a1,_0x5b1123),_0x3b563a(_0x41cfb9,this['attributes'])||(this['attributes']=_0x41cfb9,this['_onAttributesChange'](_0x41cfb9));}['removeAttribute'](_0x28225b){const _0x495456=_0x27e870(this['attributes']);_0x2b3dd9(_0x495456,_0x28225b),_0x3b563a(_0x495456,this['attributes'])||(this['attributes']=_0x495456,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 _0xb1da02()['substr'](0x1,0x5);}}function o(_0x342cff,_0x87196c,_0x21993b){const _0xcbabdf=_0x342cff['t'],t=_0x342cff['t'];switch(_0x87196c){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x21993b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x21993b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x21993b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x21993b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x21993b);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',_0x21993b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x21993b);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21993b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x21993b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x21993b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x21993b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x21993b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x21993b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x21993b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x21993b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x21993b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x21993b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x21993b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x21993b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x21993b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x21993b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x21993b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x21993b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x21993b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x21993b);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'},_0x21993b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x21993b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x21993b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x21993b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x21993b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x21993b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x21993b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x21993b);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'},_0x21993b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x21993b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x21993b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x21993b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x21993b);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'},_0x21993b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x21993b);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'},_0x21993b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x21993b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x21993b);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'},_0x21993b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x21993b);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'},_0x21993b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x21993b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x21993b);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x21993b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x21993b);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 _0xcbabdf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x21993b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xcbabdf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x21993b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x21993b);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x21993b);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x21993b);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x21993b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x87196c;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x10f451,_0x178b31){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x10f451,this['_locale']=_0x178b31;}['getDescriptions'](_0xc88088){const _0x588b34=[],_0x1b9e4a=new Set(),_0x19f280=new Set();for(let _0x4d515e=0x0;_0x4d515e<_0xc88088['length'];_0x4d515e++){const _0x97598d=_0xc88088[_0x4d515e];if(!_0x97598d['isInContent'])continue;const _0x426347=this['_handleCustomCallbackDescription'](_0x97598d);if(_0x426347){if(null!=_0x97598d['subType']){if(_0x1b9e4a['has'](_0x97598d['subType']))continue;_0x1b9e4a['add'](_0x97598d['subType']);}_0x588b34['push'](_0x426347);}else{if('attribute'==_0x97598d['type']){const _0x578be9=_0x97598d['data']['key'];if(_0x19f280['has'](_0x578be9))continue;_0x19f280['add'](_0x97598d['data']['key']),_0x578be9==m?this['_handleRenameSuggestionDescription'](_0x588b34,_0x97598d):this['_handleAttributeSuggestionDescription'](_0x588b34,_0x97598d);continue;}'insertion'!=_0x97598d['type']&&'deletion'!=_0x97598d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x588b34,_0x97598d,_0xc88088[_0x4d515e+0x1]);}}return this['_resolveDescriptionItems'](_0x588b34);}['registerDescriptionCallback'](_0x415fc6){this['_customCallbacks']['push'](_0x415fc6);}['registerElementLabel'](_0x3443b3,_0x33cb0f,_0xf3e761=_0x1425d6['normal']){'function'==typeof _0x3443b3?_0x496043(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3443b3,'label':_0x33cb0f,'priority':_0xf3e761}):this['_itemLabels']['set'](_0x3443b3,_0x33cb0f);}['registerAttributeLabel'](_0x15e9cb,_0x5e7f36){this['_attributeLabels']['set'](_0x15e9cb,_0x5e7f36);}['getItemLabel'](_0x1b884a,_0x362750=0x1){let _0x26b4f3;for(const _0x513709 of this['_itemLabelsCallbacks'])if(_0x513709['matchingCallback'](_0x1b884a)){_0x26b4f3=_0x513709['label'];break;}return _0x26b4f3||(_0x26b4f3=this['_itemLabels']['get'](_0x1b884a['name'])),_0x26b4f3?_0x26b4f3(_0x362750):0x1!==_0x362750?_0x362750+'\x20'+_0x1b884a['name']+'s':''+_0x1b884a['name'];}['_addDescriptionItems'](_0x3faef1,_0x2d7b21){const _0xf142ee=_0x2d7b21['getFirstRange']()['getWalker'](),_0x23a72d='insertion'==_0x2d7b21['type']?'add':'remove';for(const _0x35fb55 of _0xf142ee){const _0x1af3c3=_0x35fb55['item'],_0x5b572e=_0x3faef1[_0x3faef1['length']-0x1];if(_0x1af3c3['is']('$textProxy'))_0x5b572e&&_0x5b572e['type']['indexOf']('Container')>-0x1&&_0x3faef1['pop'](),_0x5b572e&&'text'==_0x5b572e['type']?_0x5b572e[_0x23a72d]+=_0x1af3c3['data']:_0x3faef1['push']({'type':'text','add':'add'==_0x23a72d?_0x1af3c3['data']:'','remove':'remove'==_0x23a72d?_0x1af3c3['data']:''});else{if(this['_schema']['isObject'](_0x1af3c3)){const _0x31a650=_0x1af3c3;if(_0x5b572e&&_0x5b572e['type']['indexOf']('Container')>-0x1&&_0x3faef1['pop'](),'elementEnd'==_0x35fb55['type'])continue;_0x5b572e&&_0x5b572e['type']==_0x23a72d+'Object'&&_0x5b572e['element']['name']==_0x31a650['name']?_0x5b572e['quantity']++:_0x3faef1['push']({'type':_0x23a72d+'Object','element':_0x31a650,'quantity':0x1}),_0xf142ee['skip'](_0x13f86a=>!('elementEnd'==_0x13f86a['type']&&_0x13f86a['item']==_0x1af3c3));}else{if(this['_schema']['checkChild'](_0x1af3c3,'$text')||_0x1af3c3['is']('element','softBreak')){const _0x37f514=_0x1af3c3;if('add'==_0x23a72d&&'elementStart'==_0x35fb55['type']||'remove'==_0x23a72d&&'elementEnd'==_0x35fb55['type'])continue;if(_0x5b572e&&-0x1==_0x5b572e['type']['indexOf']('Container')){'text'==_0x5b572e['type']&&(_0x5b572e[_0x23a72d]+='\x0a');continue;}let _0x3bc36e;if(_0x3bc36e='add'==_0x23a72d?_0x37f514['nextSibling']&&!this['_schema']['isObject'](_0x37f514['nextSibling'])?_0x37f514['nextSibling']:null:_0x37f514['previousSibling']&&!this['_schema']['isObject'](_0x37f514['previousSibling'])?_0x37f514['previousSibling']:null,_0x37f514['isEmpty']||_0x3bc36e&&_0x3bc36e['isEmpty']){const _0x5c48d7=_0x3bc36e&&_0x3bc36e['isEmpty']?_0x3bc36e:_0x37f514;_0x5b572e&&_0x5b572e['type']==_0x23a72d+'EmptyContainer'&&_0x5b572e['element']['name']==_0x5c48d7['name']?_0x5b572e['quantity']++:_0x3faef1['push']({'type':_0x23a72d+'EmptyContainer','element':_0x5c48d7,'quantity':0x1});}else _0x3faef1['push']({'type':_0x23a72d+'Container','element':_0x37f514});}}}}}['_resolveDescriptionItems'](_0x330c7c){const _0x29da64=this['_locale'],_0x800247=[],_0xe3e5ea=[],_0x442604=[];for(const _0x20a468 of _0x330c7c)switch(_0x20a468['type']){case'text':if(_0x20a468['add']=_0x20a468['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x20a468['remove']=_0x20a468['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x20a468['add']&&''!=_0x20a468['remove']){_0x800247['push']({'type':'replace','content':o(_0x29da64,'REPLACE_TEXT',['\x22'+_0x20a468['remove']+'\x22','\x22'+_0x20a468['add']+'\x22'])});continue;}if(null!=_0x20a468['add']['match'](/^ +$/)){_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Insert:*\x20%0',o(_0x29da64,'ELEMENT_SPACE',_0x20a468['add']['length']))});continue;}if(null!=_0x20a468['remove']['match'](/^ +$/)){_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Remove:*\x20%0',o(_0x29da64,'ELEMENT_SPACE',_0x20a468['remove']['length']))});continue;}if(''!=_0x20a468['add']){_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Insert:*\x20%0','\x22'+_0x20a468['add']+'\x22')});continue;}_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Remove:*\x20%0','\x22'+_0x20a468['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Insert:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Remove:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'addContainer':_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Split:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'removeContainer':_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Merge:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'addFormat':_0xe3e5ea['push'](_0x20a468['key']);continue;case'removeFormat':_0x442604['push'](_0x20a468['key']);continue;default:_0x800247['push'](_0x20a468);}if(_0xe3e5ea['length']){const _0x4eb086=_0xe3e5ea['map'](_0x528d0e=>this['_attributeLabels']['has'](_0x528d0e)?this['_attributeLabels']['get'](_0x528d0e):_0x528d0e)['join'](',\x20');_0x800247['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4eb086)});}if(_0x442604['length']){const _0x211087=_0x442604['map'](_0x3b43ff=>this['_attributeLabels']['has'](_0x3b43ff)?this['_attributeLabels']['get'](_0x3b43ff):_0x3b43ff)['join'](',\x20');_0x800247['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x211087)});}return _0x800247;}['_handleCustomCallbackDescription'](_0x249caa){for(const _0x127131 of this['_customCallbacks']){const _0x47a5a2=_0x127131(_0x249caa);if(_0x47a5a2&&'type'in _0x47a5a2)return _0x47a5a2;}}['_handleAttributeSuggestionDescription'](_0x162005,_0x3a2019){const _0x47b347=_0x3a2019['data'],_0x36f01b=void 0x0===_0x47b347['newValue']?'removeFormat':'addFormat';_0x162005['push']({'type':_0x36f01b,'key':_0x47b347['key']});}['_handleRenameSuggestionDescription'](_0x4b6255,_0x3fabc1){_0x4b6255['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3fabc1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x56fdf2,_0xce73a,_0x22b728){if(this['_addDescriptionItems'](_0x56fdf2,_0xce73a),_0x22b728&&_0x22b728['getFirstRange']()&&!_0xce73a['getFirstRange']()['end']['isEqual'](_0x22b728['getFirstRange']()['start'])){const _0x4e3dc9=_0x56fdf2[_0x56fdf2['length']-0x1],_0x4749bf='insertion'==_0xce73a['type']?'add':'remove';_0x4e3dc9&&'text'==_0x4e3dc9['type']&&(_0x4e3dc9[_0x4749bf]+='\x0a');}}}class V extends _0x15a662{['afterInit'](){const _0x233789=this['editor'],_0x12f4b7=_0x233789['plugins']['get']('TrackChangesEditing');_0x233789['commands']['get']('showAIAssistant')&&_0x12f4b7['enableCommand']('showAIAssistant');}}class F extends _0x15a662{['afterInit'](){const _0xf645d2=this['editor'],_0x4c6cc6=_0xf645d2['locale'];if(!_0xf645d2['plugins']['has']('AlignmentEditing'))return;const _0x5ca584=_0xf645d2['plugins']['get']('TrackChangesEditing');_0x5ca584['enableDefaultAttributesIntegration']('alignment'),_0x5ca584['registerBlockAttribute']('alignment'),_0x5ca584['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c6cc6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x345167=this['editor'],_0x5a35e8=_0x345167['locale'];_0x345167['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df2f1=>{if('formatBlock'!=_0x2df2f1['type'])return;const {data:_0x410009}=_0x2df2f1;if(_0x410009&&'alignment'==_0x410009['commandName']){const _0xdd0605=_0x410009['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a35e8,'*Format:*\x20%0',function(_0x1adda7){switch(_0x1adda7){case'left':return o(_0x5a35e8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a35e8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a35e8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a35e8,'FORMAT_JUSTIFY_TEXT');}}(_0xdd0605))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x15a662{['afterInit'](){const _0x3a30da=this['editor'],_0x215a79=_0x3a30da['plugins']['get']('TrackChangesEditing'),_0x1a6b79=_0x3a30da['locale'];for(const _0x30e663 of ti){if(!_0x3a30da['plugins']['has'](_0x30e663))continue;const _0x2b4a76=_0x30e663['slice'](0x0,-0x7)['toLowerCase'](),_0x4052d2='FORMAT_'+_0x2b4a76['toUpperCase']();_0x215a79['enableDefaultAttributesIntegration'](_0x2b4a76),_0x215a79['registerInlineAttribute'](_0x2b4a76),_0x215a79['descriptionFactory']['registerAttributeLabel'](_0x2b4a76,o(_0x1a6b79,_0x4052d2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41176a=this['editor'],_0x11bf8a=_0x41176a['locale'],_0xae2c4c=_0x41176a['plugins']['get']('TrackChangesEditing');function _0x36bddb(_0x47e716,_0x4539ec){_0xae2c4c['descriptionFactory']['registerDescriptionCallback'](_0x50043c=>{if('formatInline'!=_0x50043c['type'])return;const {data:_0x40ff5d}=_0x50043c;return _0x40ff5d&&_0x40ff5d['commandName']===_0x47e716?_0x40ff5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11bf8a,'*Format:*\x20%0',_0x4539ec)}:{'type':'format','content':o(_0x11bf8a,'*Remove\x20format:*\x20%0',_0x4539ec)}:void 0x0;});}_0x36bddb('bold',o(_0x11bf8a,'FORMAT_BOLD')),_0x36bddb('italic',o(_0x11bf8a,'FORMAT_ITALIC')),_0x36bddb('underline',o(_0x11bf8a,'FORMAT_UNDERLINE')),_0x36bddb('code',o(_0x11bf8a,'FORMAT_CODE')),_0x36bddb('strikethrough',o(_0x11bf8a,'FORMAT_STRIKETHROUGH')),_0x36bddb('subscript',o(_0x11bf8a,'FORMAT_SUBSCRIPT')),_0x36bddb('superscript',o(_0x11bf8a,'FORMAT_SUPERSCRIPT'));}}class L extends _0x15a662{['afterInit'](){const _0x184085=this['editor'],_0x5db24a=_0x184085['locale'];if(!_0x184085['plugins']['has']('BlockQuoteEditing'))return;const _0x25d83e=_0x184085['plugins']['get']('TrackChangesEditing'),_0x503e38=this['editor']['commands']['get']('blockQuote');_0x25d83e['enableCommand']('blockQuote',(_0x18eca7,_0x3e5f10={})=>{const _0x38b4de=this['editor']['model']['document']['selection'],_0x6eedd8=_0x3e5f10&&void 0x0!==_0x3e5f10['forceValue']?_0x3e5f10['forceValue']:!_0x503e38['value'];let _0x50cd42=[];if(_0x6eedd8){const _0x3a831c=Array['from'](_0x38b4de['getSelectedBlocks']())['filter'](_0x43bc5e=>oo(_0x43bc5e)||function(_0x44a08b,_0x478ac5){const _0x3a8f6b=_0x478ac5['checkChild'](_0x44a08b['parent'],'blockQuote'),_0x438a29=_0x478ac5['checkChild'](['$root','blockQuote'],_0x44a08b);return _0x3a8f6b&&_0x438a29;}(_0x43bc5e,this['editor']['model']['schema']));_0x50cd42=to(_0x3a831c,_0x184085['model']);}else{const _0x564b3e=Array['from'](_0x38b4de['getSelectedBlocks']())['filter'](_0x3b3bd9=>oo(_0x3b3bd9));_0x50cd42=to(_0x564b3e,_0x184085['model']);}_0x184085['model']['change'](()=>{for(const _0x229507 of _0x50cd42)_0x25d83e['markBlockFormat'](_0x229507,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x6eedd8}]});});}),_0x25d83e['descriptionFactory']['registerDescriptionCallback'](_0x55c30e=>{const {data:_0x456241}=_0x55c30e;if(_0x456241&&'blockQuote'==_0x456241['commandName']){const _0x502854=o(_0x5db24a,'ELEMENT_BLOCK_QUOTE');return _0x456241['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5db24a,'*Set\x20format:*\x20%0',_0x502854)}:{'type':'format','content':o(_0x5db24a,'*Remove\x20format:*\x20%0',_0x502854)};}});}}function oo(_0x159949){return'blockQuote'==_0x159949['parent']['name'];}class J extends _0x15a662{['afterInit'](){const _0x192e31=this['editor'],_0x4992fa=_0x192e31['locale'],_0x69e92=_0x192e31['plugins']['get']('TrackChangesEditing');_0x192e31['plugins']['has']('BookmarkEditing')&&(_0x69e92['enableCommand']('insertBookmark'),_0x69e92['enableDefaultAttributesIntegration']('updateBookmark'),_0x69e92['registerBlockAttribute']('bookmarkId'),_0x69e92['descriptionFactory']['registerDescriptionCallback'](_0x4856d9=>{if('insertion'!=_0x4856d9['type']&&'deletion'!=_0x4856d9['type']&&'attribute'!=_0x4856d9['type'])return;const _0xcd8da7=_0x4856d9['getContainedElement']();if(null==_0xcd8da7)return;if(!_0xcd8da7['is']('element','bookmark'))return;const _0x58081b=_0xcd8da7['getAttribute']('bookmarkId');if('insertion'==_0x4856d9['type'])return{'type':'insertion','content':o(_0x4992fa,'*Insert:*\x20%0','\x22'+_0x58081b+'\x22\x20'+o(_0x4992fa,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4856d9['type'])return{'type':'deletion','content':o(_0x4992fa,'*Remove:*\x20%0','\x22'+_0x58081b+'\x22\x20'+o(_0x4992fa,'ELEMENT_BOOKMARK'))};const {data:_0x341ebd}=_0x4856d9;if(!_0x341ebd||'bookmarkId'!=_0x341ebd['key'])return;return{'type':'format','content':o(_0x4992fa,'*Set\x20bookmark:*\x20%0','\x22'+_0x341ebd['newValue']+'\x22')};}));}}class K extends _0x15a662{['afterInit'](){const _0x21ef92=this['editor'];_0x21ef92['plugins']['has']('CaseChange')&&(_0x21ef92['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x21ef92['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x21ef92['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x15a662{['afterInit'](){const _0x404bb6=this['editor'];_0x404bb6['commands']['get']('ckbox')&&_0x404bb6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x15a662{['afterInit'](){const _0x4fedb7=this['editor'];if(!_0x4fedb7['plugins']['has']('CodeBlock'))return;const _0x525a3e=_0x4fedb7['plugins']['get']('TrackChangesEditing'),_0x3d08b0=_0x4fedb7['locale'],_0x102e4f=_0x4fedb7['config']['get']('codeBlock')['languages'],_0x2d21e4=_0x4fedb7['commands']['get']('codeBlock');_0x525a3e['enableCommand']('indentCodeBlock'),_0x525a3e['enableCommand']('outdentCodeBlock'),_0x525a3e['enableCommand']('codeBlock',(_0x253e54,_0x55fb53={})=>{const _0x139cc1=_0x4fedb7['model'],_0x739e81=_0x4fedb7['model']['document']['selection'],_0x306285=_0x55fb53&&void 0x0!==_0x55fb53['forceValue']?_0x55fb53['forceValue']:!_0x2d21e4['value'];let _0x31071f;_0x55fb53['language']||(_0x55fb53['language']=_0x102e4f[0x0]['language']),_0x31071f=_0x306285?Array['from'](_0x739e81['getSelectedBlocks']())['filter'](_0x1578e9=>co(_0x1578e9)||function(_0x1af5f1,_0x5cc86a){if(_0x1af5f1['is']('rootElement')||_0x5cc86a['isLimit'](_0x1af5f1))return!0x1;return _0x5cc86a['checkChild'](_0x1af5f1['parent'],'codeBlock');}(_0x1578e9,_0x139cc1['schema'])):Array['from'](_0x739e81['getSelectedBlocks']())['filter'](_0x45cd9e=>co(_0x45cd9e));const _0x3678da=to(_0x31071f,_0x139cc1);_0x139cc1['change'](()=>{for(const _0x4051c4 of _0x3678da)_0x525a3e['markBlockFormat'](_0x4051c4,{'commandName':'codeBlock','commandParams':[{..._0x55fb53,'forceValue':_0x306285}],'formatGroupId':'blockName'});});}),(_0x525a3e['descriptionFactory']['registerElementLabel']('codeBlock',_0x239fb2=>o(_0x3d08b0,'ELEMENT_CODE_BLOCK',_0x239fb2)),_0x525a3e['descriptionFactory']['registerDescriptionCallback'](_0x485078=>{if('formatBlock'!=_0x485078['type'])return;const _0x44f522=_0x3d08b0['t'],{data:_0x141014}=_0x485078;if(!_0x141014||'codeBlock'!=_0x141014['commandName'])return;const _0x1cd133=_0x141014['commandParams'][0x0]['language'],_0x1536fa=_0x44f522(_0x102e4f['find'](_0x45b3e8=>_0x45b3e8['language']===_0x1cd133)['label'])['toLowerCase']();return _0x141014['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d08b0,'*Set\x20format:*\x20%0',o(_0x3d08b0,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1536fa+')')}:{'type':'format','content':o(_0x3d08b0,'*Remove\x20format:*\x20%0',o(_0x3d08b0,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4d4adc){return'codeBlock'==_0x4d4adc['name'];}class q extends _0x15a662{['afterInit'](){const _0x261ce2=this['editor'];if(!_0x261ce2['plugins']['has']('CommentsEditing'))return;_0x261ce2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe42877,_0x43a7e7,_0x4c8f29){const _0x38c675=[];for(const _0x5db975 of _0x43a7e7['getItems']())_0x5db975['hasAttribute'](_0xe42877)&&_0x38c675['push'](_0x4c8f29['createRangeOn'](_0x5db975));return _0x38c675;}function Ge(_0x4d93e0,_0x4bfdda,{showActiveMarker:_0x11ac17=!0x0}={}){const _0x26bdb3=_0x4d93e0['plugins']['get']('TrackChangesEditing');return(_0x523833,_0x17bc7e,_0xf6714a)=>{if(!_0xf6714a['consumable']['test'](_0x17bc7e['markerRange'],_0x523833['name']))return;const _0x3e35af=_0x17bc7e['markerRange']['getWalker'](),_0x15a310=_0x17bc7e['markerRange']['start'],_0xabf4ae=_0x4d93e0['model']['schema'];let _0x292c3c=null,_0x5e20c7=null,_0x4c8d78=!0x1,_0x9fe03e=!0x1;for(const _0x174e8f of _0x3e35af){const _0x1bd56b=_0x174e8f['item'];_0x4c8d78=_0x4c8d78||_0xabf4ae['isContent'](_0x1bd56b);const _0x3c0fe7=_0xf6714a['mapper']['toViewElement'](_0x1bd56b);if(_0x3c0fe7&&_0x3c0fe7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x174e8f['type']&&(_0xabf4ae['isBlock'](_0x1bd56b)&&!_0xabf4ae['isLimit'](_0x1bd56b)&&(_0x1bd56b['nextSibling']||_0x15a310['isAtEnd']?_0x292c3c&&_0x292c3c['parent']==_0x1bd56b||(_0x292c3c=_0x1bd56b,_0x3470d9(_0x174e8f['previousPosition']),_0x9fe03e=!0x0):_0x5e20c7=_0x5e20c7||_0x174e8f['previousPosition']));}function _0x3470d9(_0x3998ff){const {id:_0x38cca8,authorId:_0x5190b2}=_0x26bdb3['_splitMarkerName'](_0x17bc7e['markerName']),_0x49a33d=_0xf6714a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bfdda,'data-suggestion':_0x38cca8,'data-author-id':_0x5190b2}),_0x28b9b3=_0xf6714a['mapper']['toViewPosition'](_0x3998ff);_0x11ac17&&_0x26bdb3['activeMarkers']['includes'](_0x17bc7e['markerName'])&&_0xf6714a['writer']['addClass']('ck-suggestion-marker--active',_0x49a33d),_0xf6714a['writer']['insert'](_0x28b9b3,_0x49a33d),_0xf6714a['mapper']['bindElementToMarker'](_0x49a33d,_0x17bc7e['markerName']);}_0x4c8d78||_0x9fe03e||!_0x5e20c7||_0x3470d9(_0x5e20c7);};}class z extends _0x15a662{static get['requires'](){return[_0x348227];}['init'](){const _0x26665e=this['editor'],_0x5cdee8=_0x26665e['plugins']['get']('TrackChangesEditing');_0x5cdee8['enableCommand']('delete');const _0x1b95c1=_0x26665e['commands']['get']('deleteForward');_0x5cdee8['enableCommand']('deleteForward',(_0x230a7c,_0x28029e={})=>{const _0x5ea8e1=_0x26665e['model']['createSelection'](_0x26665e['model']['document']['selection']);_0x5ea8e1['isCollapsed']&&_0x26665e['model']['modifySelection'](_0x5ea8e1,{'direction':'forward','unit':_0x28029e['unit']});const _0x2cd70d=_0x5ea8e1['getFirstRange'](),_0x53e666=_0x5a166f['fromRange'](_0x2cd70d);let _0xd5adff;_0x230a7c(_0x28029e),_0xd5adff='$graveyard'==_0x53e666['root']['rootName']?_0x26665e['model']['createRange'](_0x2cd70d['start']):_0x26665e['model']['createRange'](_0x53e666['start'],_0x53e666['end']),_0x53e666['detach'](),_0x26665e['model']['enqueueChange'](_0x1b95c1['buffer']['batch'],_0x5f5b36=>{_0x1b95c1['buffer']['lock'](),_0x5f5b36['setSelection'](_0x5f5b36['createRange'](_0xd5adff['end'])),_0x1b95c1['buffer']['unlock']();});}),_0x26665e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x26665e,'merge'),{'priority':'high'}),_0x26665e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e8c7f,_0x115ebb,_0x3b9b2d)=>{_0x3b9b2d['options']['showSuggestionHighlights']&&Ge(_0x26665e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4e8c7f,_0x115ebb,_0x3b9b2d);},{'priority':'high'}),_0x26665e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5761c8,_0xf373f2,_0x15cf49)=>{const _0x54c9b3=_0x15cf49['mapper']['markerNameToElements'](_0xf373f2['markerName']);if(_0x54c9b3){for(const _0xfc1c94 of _0x54c9b3)_0xfc1c94['is']('uiElement')&&(_0x15cf49['mapper']['unbindElementFromMarkerName'](_0xfc1c94,_0xf373f2['markerName']),_0x15cf49['writer']['remove'](_0xfc1c94));}},{'priority':'high'});}}class Q extends _0x15a662{['afterInit'](){const _0xd423ab=this['editor'];if(!_0xd423ab['plugins']['has']('ListEditing'))return;const _0x5edaa7=_0xd423ab['locale'],_0x14bfd3=_0xd423ab['plugins']['get']('TrackChangesEditing'),_0x30432b=_0xd423ab['plugins']['has']('TodoListEditing'),_0x4dfbff=!!_0xd423ab['config']['get']('list.multiBlock');function _0x4946d5(_0x5a629f){return{'type':'format','content':''+o(_0x5edaa7,'*Set\x20format:*\x20%0',_0x5a629f)};}function _0x3be96a(_0x29cf5c){return{'type':'format','content':''+o(_0x5edaa7,'*Remove\x20format:*\x20%0',_0x29cf5c)};}_0x14bfd3['enableDefaultAttributesIntegration']('numberedList'),_0x14bfd3['enableDefaultAttributesIntegration']('bulletedList'),_0x14bfd3['enableDefaultAttributesIntegration']('customNumberedList'),_0x14bfd3['enableDefaultAttributesIntegration']('customBulletedList'),_0x14bfd3['enableDefaultAttributesIntegration']('indentList'),_0x14bfd3['enableDefaultAttributesIntegration']('outdentList'),_0x14bfd3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x14bfd3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x14bfd3['registerBlockAttribute']('listItemId'),_0x14bfd3['registerBlockAttribute']('listType'),_0x14bfd3['registerBlockAttribute']('listIndent'),_0x4dfbff&&(_0x14bfd3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x14bfd3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30432b&&(_0x14bfd3['enableDefaultAttributesIntegration']('todoList'),_0x14bfd3['enableDefaultAttributesIntegration']('checkTodoList'),_0x14bfd3['registerBlockAttribute']('todoListChecked'),_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0x4711e4=>{const {data:_0x35081a}=_0x4711e4;if(_0x35081a&&'todoListChecked'==_0x35081a['key'])return{'type':'format','content':_0x35081a['newValue']?o(_0x5edaa7,'*Check\x20item*'):o(_0x5edaa7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ea4ca=>{if(_0x4ea4ca['batch']['isUndo'])return!0x1;let _0x431c76=!0x1;const _0x3aa3b0=_0x14bfd3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5657d2=>'todoListChecked'===_0x14bfd3['_getAttributeKey'](_0x5657d2));for(const _0x1efab7 of _0x3aa3b0){'todo'!=_0x1efab7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x14bfd3['_findSuggestions'](_0x1efab7['getFirstRange'](),'attribute')['find'](_0x1ee43c=>'listType'===_0x14bfd3['_getAttributeKey'](_0x1ee43c['suggestion']))||(_0x4ea4ca['removeMarker'](_0x1efab7['getFirstMarker']()),_0x431c76=!0x0));}return _0x431c76;})),_0x14bfd3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5edaa7,'FORMAT_INDENT'));const _0x463232={'type':'format','content':''};_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0x4a7801=>{const {data:_0x5a9ee4}=_0x4a7801;if(!_0x5a9ee4||'listType'!=_0x5a9ee4['key'])return;let _0x386637=_0x4a7801['head'];for(;_0x386637;){if(_0x386637['data']&&(('listStyle'==_0x386637['data']['key']||'listMarkerStyle'==_0x386637['data']['key'])&&(_0x386637['data']['newValue']&&'default'!=_0x386637['data']['newValue']||'default'!=_0x386637['data']['oldValue']&&!_0x5a9ee4['newValue'])||!_0x4dfbff&&_0x386637['data']['key']==m))return _0x463232;_0x386637=_0x386637['next'];}if(null==_0x5a9ee4['newValue'])switch(_0x5a9ee4['oldValue']){case'bulleted':return _0x3be96a(o(_0x5edaa7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3be96a(o(_0x5edaa7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3be96a(o(_0x5edaa7,'ELEMENT_TODO_LIST'));}switch(_0x5a9ee4['newValue']){case'bulleted':return _0x4946d5(o(_0x5edaa7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4946d5(o(_0x5edaa7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4946d5(o(_0x5edaa7,'ELEMENT_TODO_LIST'));}}),_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0x39053f=>{const {data:_0x3b1d98}=_0x39053f;if(_0x3b1d98&&'listIndent'==_0x3b1d98['key'])return null==_0x3b1d98['newValue']||null==_0x3b1d98['oldValue']&&0x0==_0x3b1d98['newValue']?_0x463232:void 0x0;}),_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0xa2b9ad=>{if('attribute'!=_0xa2b9ad['type'])return;const {data:_0x57f744}=_0xa2b9ad;if(!_0x57f744||'listItemId'!=_0x57f744['key'])return;const _0x3646a9=Be(_0xa2b9ad);return'newValue'==_0x3646a9?{'type':'format','content':o(_0x5edaa7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3646a9?{'type':'format','content':o(_0x5edaa7,'*Split:*\x20list\x20item')}:_0x463232;}),_0xd423ab['model']['document']['registerPostFixer'](_0x5c0039=>this['listItemIdFixer'](_0x5c0039)),_0xd423ab['model']['document']['registerPostFixer'](_0xaa8c4d=>this['noTrackChangesFixer'](_0xaa8c4d)),_0xd423ab['model']['document']['on']('change:data',(_0x4e9178,_0x2dd69d)=>{if(_0x2dd69d['isUndo']||!_0x2dd69d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3185be){if(_0x3185be['batch']['isUndo']||!_0x3185be['batch']['isLocal'])return!0x1;let _0xf48ea9=!0x1;const _0x5a22d1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f04e6=>_0x4f04e6['data']&&'listItemId'==_0x4f04e6['data']['key'])['filter'](_0x54b1d4=>_0x54b1d4['data']['newValue']&&_0x54b1d4['data']['oldValue']);for(const _0x4f5a05 of _0x5a22d1)Be(_0x4f5a05)||(_0x3185be['removeMarker'](_0x4f5a05['getFirstMarker']()),_0xf48ea9=!0x0);return _0xf48ea9;}['noTrackChangesFixer'](_0x2c4c1a){if(_0x2c4c1a['batch']['isUndo']||!_0x2c4c1a['batch']['isLocal'])return!0x1;const _0x44a133=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x44a133['trackChangesCommand']['value'])return!0x1;let _0x24b1e0=!0x1;const _0x5d0633=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b6dd7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2dde3a=>'attribute'==_0x2dde3a['type'])['filter'](_0x4e7f69=>_0x5d0633['includes'](_0x4e7f69['attributeKey']));if(0x0==_0x2b6dd7['length'])return _0x24b1e0;for(const _0x4372e4 of _0x2b6dd7){const _0x52c384=_0x44a133['_findSuggestions'](_0x4372e4['range'],'attribute')['filter'](_0xba2b54=>!_0xba2b54['meta']['isNextTo'])['map'](_0xaf489a=>_0xaf489a['suggestion'])['filter'](_0x5ce5fb=>{const _0x55dec8=_0x44a133['_getAttributeKey'](_0x5ce5fb);return _0x5d0633['includes'](_0x55dec8);});if(_0x52c384['length']){for(const _0x360a1a of _0x52c384)_0x2c4c1a['removeMarker'](_0x360a1a['getFirstMarker']());_0x24b1e0=!0x0;}}return _0x24b1e0;}['assureChains'](){const _0x208d90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3248d4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c4a4c;const _0x35f582=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d732a=>{if(_0x4d732a['data']['oldRange']||!_0x4d732a['data']['newRange'])return null;if(!_0x4d732a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2fc20e}=_0x208d90['_splitMarkerName'](_0x4d732a['name']);if(!_0x208d90['hasSuggestion'](_0x2fc20e))return null;const _0x14aca5=_0x208d90['getSuggestion'](_0x2fc20e);return _0x3248d4['includes'](_0x14aca5['data']['key']);})['map'](_0x5c7844=>{const {id:_0x1b7776}=_0x208d90['_splitMarkerName'](_0x5c7844['name']),_0x2fd1cb=_0x208d90['getSuggestion'](_0x1b7776);return _0x5c4a4c=_0x2fd1cb['attributes']['groupId'],_0x2fd1cb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x35f582['size'])return;const _0x76acd4=_0x208d90['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b3a58=>'attribute'==_0x3b3a58['type']&&_0x3b3a58['data']&&_0x3248d4['includes'](_0x3b3a58['data']['key'])&&_0x3b3a58['attributes']['groupId']!=_0x5c4a4c)['map'](_0x3cea05=>({'listItem':_0x3cea05['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3cea05['attributes']['groupId']})),_0x5a0758=new Set();for(const {groupId:_0x287bb0,listItem:_0x576c5c}of _0x76acd4)_0x35f582['has'](_0x576c5c)&&_0x5a0758['add'](_0x287bb0);for(const _0x23fa1f of _0x208d90['getSuggestions']())_0x5a0758['has'](_0x23fa1f['attributes']['groupId'])&&_0x23fa1f['setAttribute']('groupId',_0x5c4a4c);}['_supportLegacySuggestions'](){const _0x4a3e63=this['editor'],_0x254473=_0x4a3e63['locale'],_0x1b47ea=_0x4a3e63['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1b47ea['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x55afc2,_0x1de900){const _0x2091b6=[];for(let _0x15c3ae of _0x55afc2)_0x15c3ae['start']['nodeAfter']===_0x15c3ae['end']['parent']&&(_0x15c3ae=_0x4a3e63['model']['createRange'](_0x4a3e63['model']['createPositionAt'](_0x15c3ae['start']['nodeAfter'],0x0))),_0x2091b6['push'](_0x15c3ae);_0x4a3e63['model']['change'](_0x1d9bce=>{const _0x264e92=_0x4a3e63['model']['document']['selection'],_0x3f0528=Array['from'](_0x264e92['getRanges']())['map'](_0x12c7dd=>_0x5a166f['fromRange'](_0x12c7dd));_0x1d9bce['setSelection'](_0x2091b6),_0x4a3e63['commands']['get'](_0x1de900['commandName'])['refresh'](),_0x1de900['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a3e63['execute'](_0x1de900['commandName'],..._0x1de900['commandParams']),_0x1d9bce['setSelection'](_0x3f0528);for(const _0x1cefd0 of _0x3f0528)_0x1cefd0['detach']();});}),_0x1b47ea['descriptionFactory']['registerElementLabel'](function(_0x31b317){const _0x3b9095=!_0x4a3e63['model']['schema']['isObject'](_0x31b317),_0x2d8170=_0x31b317['previousSibling'],_0x1590f8=_0x31b317['nextSibling'],_0xc9f928=_0x31b317['getAttribute']('listItemId'),_0x42ab71=!_0x2d8170||_0x2d8170['getAttribute']('listItemId')!==_0xc9f928,_0x4c783b=!_0x1590f8||_0x1590f8['getAttribute']('listItemId')!==_0xc9f928;return _0x3b9095&&Boolean(_0xc9f928)&&_0x42ab71&&_0x4c783b;},_0x1a47cc=>o(_0x254473,'ELEMENT_LIST_ITEM',_0x1a47cc));}['_registerLegacyDescription'](){const _0x5eab0d=this['editor'],_0x4eb0d9=_0x5eab0d['locale'];function _0x13e342(_0x434fec){const _0x1f9f8e=_0x5eab0d['commands']['get']('bulletedList')['value'],_0x39f778=_0x5eab0d['commands']['get']('numberedList')['value'];return'numberedList'===_0x434fec?_0x1f9f8e:_0x39f778;}_0x5eab0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x347a42){if('formatBlock'!=_0x347a42['type'])return;const {data:_0x531162}=_0x347a42;if(!_0x531162)return;let _0x20bd8b,_0xd41eb5,_0x354eb5,_0x1dfbf0;switch(_0x531162['commandName']){case'bulletedList':_0x354eb5=_0x531162['commandParams'][0x0]['forceValue'],_0x1dfbf0=_0x13e342(_0x531162['commandName']),_0x20bd8b=_0x354eb5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1dfbf0&&_0x5eab0d['config']['get']('list.multiBlock')||(_0x20bd8b='*Change\x20to:*\x20%0'),_0xd41eb5={'type':'format','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x354eb5=_0x531162['commandParams'][0x0]['forceValue'],_0x1dfbf0=_0x13e342(_0x531162['commandName']),_0x20bd8b=_0x354eb5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1dfbf0&&_0x5eab0d['config']['get']('list.multiBlock')||(_0x20bd8b='*Change\x20to:*\x20%0'),_0xd41eb5={'type':'format','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20bd8b='*Indent:*\x20%0',_0xd41eb5={'type':'format','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20bd8b=function(_0x2a63bd){const _0x39c93b=_0x2a63bd['getFirstRange']();let _0x178b4d=_0x39c93b['start']['nodeAfter'];for(;_0x178b4d&&_0x39c93b['containsItem'](_0x178b4d);){if(_0x178b4d['getAttribute']('listIndent')>0x0)return!0x1;_0x178b4d=_0x178b4d['nextSibling'];}return!0x0;}(_0x347a42)?o(_0x4eb0d9,'*Format:*\x20remove\x20from\x20%0',o(_0x4eb0d9,function(_0xd4435d){return'ELEMENT_'+_0xd4435d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x347a42))):o(_0x4eb0d9,'*Outdent:*\x20%0',o(_0x4eb0d9,'ELEMENT_LIST_ITEM')),_0xd41eb5={'type':'format','content':_0x20bd8b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x531162['multipleBlocks']&&(_0x20bd8b='*Merge:*\x20%0',_0xd41eb5={'type':'deletion','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_LIST_ITEM'))});}return _0xd41eb5;});}}function Be(_0x392bf8){let _0x10bf7d=_0x392bf8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10bf7d;){const _0x226e15=_0x10bf7d['getAttribute']('listItemId');if(!_0x226e15)return!0x1;if(_0x226e15==_0x392bf8['data']['newValue'])return'newValue';if(_0x226e15==_0x392bf8['data']['oldValue'])return'oldValue';_0x10bf7d=_0x10bf7d['previousSibling'];}return!0x1;}class X extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x172dee=this['editor']['config']['get']('list.properties'),_0x58532b=this['editor']['plugins']['get']('TrackChangesEditing');_0x172dee['styles']&&(_0x58532b['enableDefaultAttributesIntegration']('listStyle'),_0x58532b['registerBlockAttribute']('listStyle')),_0x172dee['reversed']&&(_0x58532b['enableDefaultAttributesIntegration']('listReversed'),_0x58532b['registerBlockAttribute']('listReversed')),_0x172dee['startIndex']&&(_0x58532b['enableDefaultAttributesIntegration']('listStart'),_0x58532b['registerBlockAttribute']('listStart'));const _0x161b5a={'type':'format','content':''};_0x58532b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c4da9=this['editor']['locale'];_0x58532b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c4da9,'FORMAT_LIST_REVERSED')),_0x58532b['descriptionFactory']['registerDescriptionCallback'](_0x20cfeb=>{const {data:_0x520364}=_0x20cfeb;if(_0x520364&&'listReversed'==_0x520364['key'])return null==_0x520364['newValue']||0x0==_0x520364['newValue']&&null==_0x520364['oldValue']?_0x161b5a:void 0x0;}),_0x58532b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c4da9,'FORMAT_LIST_START')),_0x58532b['descriptionFactory']['registerDescriptionCallback'](_0x2bc762=>{const {data:_0x3f8a23}=_0x2bc762;if(_0x3f8a23&&'listStart'==_0x3f8a23['key'])return null==_0x3f8a23['newValue']||0x1==_0x3f8a23['newValue']&&null==_0x3f8a23['oldValue']?_0x161b5a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x121e38=>{if(_0x121e38['batch']['isUndo'])return!0x1;let _0x166b2d=!0x1;const _0x29b057=_0x58532b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4124aa=>{const _0x2ff8e2=_0x58532b['_getAttributeKey'](_0x4124aa);return'listStart'==_0x2ff8e2||'listReversed'==_0x2ff8e2;});for(const _0x46e720 of _0x29b057){const _0x5a1a3a=_0x46e720['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5a1a3a||'customNumbered'==_0x5a1a3a)continue;_0x58532b['_findSuggestions'](_0x46e720['getFirstRange'](),'attribute')['find'](_0x433aa0=>'listType'==_0x58532b['_getAttributeKey'](_0x433aa0['suggestion']))||(_0x121e38['removeMarker'](_0x46e720['getFirstMarker']()),_0x166b2d=!0x0);}return _0x166b2d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1e45b2){const _0x586d7d=this['editor']['locale'],{data:_0x77cf7d}=_0x1e45b2,_0x18a0ff={'type':'format','content':''};if(!_0x77cf7d||'listStyle'!=_0x77cf7d['key'])return;if(!_0x77cf7d['oldValue'])return'default'==_0x77cf7d['newValue']?_0x18a0ff:{'type':'format','content':''+o(_0x586d7d,'*Set\x20format:*\x20%0',o(_0x586d7d,this['_getTranslationKeyForListStyle'](_0x77cf7d['newValue'])))};if(!_0x77cf7d['newValue']){if('default'==_0x77cf7d['oldValue'])return _0x18a0ff;let _0x32ff37=_0x1e45b2['head'];for(;_0x32ff37;){if(_0x32ff37['data']&&'listType'==_0x32ff37['data']['key']&&_0x32ff37['data']['newValue'])return _0x18a0ff;_0x32ff37=_0x32ff37['next'];}return{'type':'format','content':''+o(_0x586d7d,'*Remove\x20format:*\x20%0',o(_0x586d7d,this['_getTranslationKeyForListStyle'](_0x77cf7d['oldValue'])))};}if('default'!=_0x77cf7d['newValue'])return{'type':'format','content':''+o(_0x586d7d,'*Set\x20format:*\x20%0',o(_0x586d7d,this['_getTranslationKeyForListStyle'](_0x77cf7d['newValue'])))};let _0x3aec13=_0x1e45b2['head'];for(;_0x3aec13;){if(_0x3aec13['data']&&'listType'==_0x3aec13['data']['key']&&_0x3aec13['data']['newValue']&&_0x3aec13['data']['oldValue'])return _0x18a0ff;_0x3aec13=_0x3aec13['next'];}return{'type':'format','content':o(_0x586d7d,'*Set\x20format:*\x20%0',o(_0x586d7d,'ELEMENT_'+_0x1e45b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e4384=this['editor'],_0x3f6be0=_0x2e4384['locale'];_0x2e4384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28cdfe=>{if('formatBlock'!=_0x28cdfe['type'])return;const {data:_0x45e26c}=_0x28cdfe;if(!_0x45e26c)return;let _0x46941f,_0x1ab89b;switch(_0x45e26c['commandName']){case'listStyle':_0x46941f='*Change\x20to:*\x20%0',_0x1ab89b={'type':'format','content':o(_0x3f6be0,_0x46941f,o(_0x3f6be0,this['_getTranslationKeyForListStyle'](_0x45e26c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46941f=_0x45e26c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ab89b={'type':'format','content':o(_0x3f6be0,_0x46941f)};break;case'listStart':_0x46941f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ab89b={'type':'format','content':o(_0x3f6be0,_0x46941f,_0x45e26c['commandParams'][0x0]['startIndex'])};}return _0x1ab89b;});}['_getTranslationKeyForListStyle'](_0x3ca43b){return'ELEMENT_'+function(_0x470395){if(Re['includes'](_0x470395))return'bulleted';if(Fe['includes'](_0x470395))return'numbered';return null;}(_0x3ca43b)['toUpperCase']()+'_LIST_'+_0x3ca43b['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x15a662{['afterInit'](){const _0x117164=this['editor'];_0x117164['commands']['get']('emoji')&&_0x117164['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x15a662{static get['requires'](){return[_0x4a5290];}['init'](){const _0x232fc2=this['editor'],_0x571168=_0x232fc2['plugins']['get']('TrackChangesEditing'),_0x5a8ddb=_0x232fc2['commands']['get']('enter');_0x571168['enableCommand']('enter',()=>{_0x232fc2['model']['change'](_0x540cc6=>{const _0x159364=_0x232fc2['model']['document']['selection'],_0x3622b4=_0x159364['getFirstPosition'](),_0x25863f=_0x5a166f['fromRange'](_0x159364['getFirstRange']());if(_0x5a8ddb['enterBlock'](_0x540cc6)){const _0x418856=_0x232fc2['model']['createPositionAt'](_0x3622b4['parent']['nextSibling'],0x0),_0x3a8345=_0x540cc6['createRange'](_0x3622b4,_0x418856);_0x571168['markInsertion'](_0x3a8345);}else _0x540cc6['setSelection'](_0x540cc6['createRange'](_0x25863f['end']));_0x25863f['detach'](),_0x5a8ddb['fire']('afterExecute',{'writer':_0x540cc6});});}),_0x232fc2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x232fc2,'split'),{'priority':'high'}),_0x232fc2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4e79d6,_0x2b1dd6,_0x24f443)=>{const _0x953d34=_0x24f443['mapper']['markerNameToElements'](_0x2b1dd6['markerName']);if(_0x953d34){for(const _0x27fd02 of _0x953d34)_0x27fd02['hasClass']('ck-suggestion-marker-split')&&(_0x24f443['mapper']['unbindElementFromMarkerName'](_0x27fd02,_0x2b1dd6['markerName']),_0x24f443['writer']['remove'](_0x27fd02));}},{'priority':'high'}),_0x232fc2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x14d953,_0x1d80e2,_0x4e9cbb)=>{_0x4e9cbb['options']['showSuggestionHighlights']&&Ge(_0x232fc2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x14d953,_0x1d80e2,_0x4e9cbb);},{'priority':'high'});}}class tt extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2091d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2091d7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2091d7['enableCommand']('findNext'),_0x2091d7['enableCommand']('findPrevious'),_0x2091d7['enableCommand']('replace'),_0x2091d7['enableCommand']('replaceAll');}['handleFindCommand'](_0x137e00,_0x1ae45f,_0x1a30c1={}){const _0x3df9f8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x137e00(_0x184002=>{let _0x7d6219=('string'==typeof _0x1ae45f?_0x3df9f8['findByTextCallback'](_0x1ae45f,_0x1a30c1):_0x1ae45f)(_0x184002);Array['isArray'](_0x7d6219)&&(_0x7d6219={'results':_0x7d6219,'searchText':'string'==typeof _0x1ae45f?_0x1ae45f:''});const _0x2280a4=_0x7d6219['results']['filter'](_0x29581d=>!0x1===this['_isInDeletionRange'](_0x29581d,_0x184002['item']));return{..._0x7d6219,'results':_0x2280a4};},_0x1a30c1);}['_isInDeletionRange'](_0x15337d,_0x5928fd){const _0x5c0d48=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5928fd,_0x15337d['start']),this['editor']['model']['createPositionAt'](_0x5928fd,_0x15337d['end']));for(const _0x10847e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5c0d48['getIntersection'](_0x10847e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x15a662{['afterInit'](){const _0x1de9ab=this['editor']['locale'],_0x33c904=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28818e,commandName:_0x53f93b}of eo)this['editor']['plugins']['has'](_0x28818e)&&(_0x33c904['enableDefaultAttributesIntegration'](_0x53f93b),_0x33c904['registerInlineAttribute'](_0x53f93b));_0x33c904['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1de9ab,'FORMAT_FONT_SIZE')),_0x33c904['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1de9ab,'FORMAT_FONT_FAMILY')),_0x33c904['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1de9ab,'FORMAT_FONT_COLOR')),_0x33c904['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1de9ab,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d8d4=this['editor'],_0x58a111=_0x51d8d4['locale'];_0x51d8d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b139=>{const _0x4f2462=_0x58a111['t'];if('formatInline'!=_0x54b139['type'])return;const {data:_0x58f8be}=_0x54b139;if(null!=_0x58f8be){if('fontSize'==_0x58f8be['commandName']){const _0x9320d4=_0x58f8be['commandParams'][0x0]['value'];if(_0x9320d4){const _0x2e693b=_0x4f2462(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2284b6=>_0x2284b6['model']==_0x9320d4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x58a111,'*Set\x20font\x20size:*\x20%0',_0x2e693b)};}return{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x58f8be['commandName']){const _0x271d63=_0x58f8be['commandParams'][0x0]['value'];return _0x271d63?{'type':'format','content':o(_0x58a111,'*Set\x20font\x20family:*\x20%0',_0x271d63)}:{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20family*')};}if('fontColor'==_0x58f8be['commandName']){const _0x428859=_0x58f8be['commandParams'][0x0]['value'];if(_0x428859){const _0x57fa8d=_0x3cca40(this['editor']['config']['get']('fontColor.colors'))['find'](_0x35583c=>_0x35583c['model']==_0x428859);let _0x16cf6f=_0x428859,_0x59c3d0='';return _0x57fa8d&&(_0x16cf6f=_0x57fa8d['label'],_0x59c3d0=_0x4f2462(_0x16cf6f)['toLowerCase']()),{'type':'format','content':o(_0x58a111,'*Set\x20font\x20color:*\x20%0',_0x59c3d0)['trim'](),'color':{'value':_0x428859,'title':_0x59c3d0||_0x16cf6f}};}return{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x58f8be['commandName']){const _0x59f1f7=_0x58f8be['commandParams'][0x0]['value'];if(_0x59f1f7){const _0x4f550a=_0x3cca40(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f330e=>_0x4f330e['model']==_0x59f1f7);let _0x2112ab=_0x59f1f7,_0x42000b='';return _0x4f550a&&(_0x2112ab=_0x4f550a['label'],_0x42000b=_0x4f2462(_0x2112ab)['toLowerCase']()),{'type':'format','content':o(_0x58a111,'*Set\x20font\x20background\x20color:*\x20%0',_0x42000b)['trim'](),'color':{'value':_0x59f1f7,'title':_0x42000b||_0x2112ab}};}return{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x15a662{['afterInit'](){const _0x101d60=this['editor'],_0x1ba4e0=_0x101d60['plugins']['get']('TrackChangesEditing'),_0x1ead20=_0x101d60['commands']['get']('copyFormat'),_0x3dfb0e=_0x101d60['commands']['get']('pasteFormat');_0x1ead20&&_0x3dfb0e&&(_0x1ba4e0['enableDefaultAttributesIntegration']('pasteFormat'),_0x1ba4e0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x157067=this['editor'],_0x2d4659=_0x157067['locale'];_0x157067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15e3e9=>{if('formatBlock'!=_0x15e3e9['type']&&'formatInline'!=_0x15e3e9['type'])return;const {data:_0xb9b628}=_0x15e3e9;if(_0xb9b628&&'pasteFormat'===_0xb9b628['commandName']){const _0x3c93ad=[],_0x41d1bb=_0xb9b628['commandParams'][0x0];for(const [_0x3c9b75,_0x3ed188]of Object['entries'](_0x41d1bb))_0x3c93ad['push'](ro(_0x157067,_0x3c9b75,_0x3ed188));return _0x3c93ad['length']?{'type':'format','content':o(_0x2d4659,'*Set\x20format\x20to:*\x20%0',_0x3c93ad['join'](',\x20'))}:{'type':'format','content':o(_0x2d4659,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3ea1d8,_0xe945bb,_0x28b35b){const _0x4fde46=_0x3ea1d8['locale']['t'],_0x51ff80=_0xe945bb['split'](/(?=[A-Z])/)['join']('\x20'),_0x36b1dc=_0x4fde46(_0x51ff80['charAt'](0x0)['toUpperCase']()+_0x51ff80['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x28b35b)return _0x36b1dc;if('fontColor'===_0xe945bb||'fontBackgroundColor'===_0xe945bb){const _0x3fc34f=_0x3cca40(_0x3ea1d8['config']['get']('fontColor.colors'))['find'](_0x5f3a61=>_0x5f3a61['model']==_0x28b35b);return _0x36b1dc+'\x20('+(_0x3fc34f?_0x4fde46(_0x3fc34f['label'])['toLowerCase']():_0x28b35b)+')';}if('fontSize'===_0xe945bb&&isNaN(parseFloat(_0x28b35b))){const _0x26dbb9=_0x3ea1d8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ea1d8['config']['get']('fontSize.options'))['find'](_0x4d2fff=>_0x4d2fff['model']==_0x28b35b);return _0x36b1dc+'\x20('+(_0x26dbb9?_0x4fde46(_0x26dbb9['title'])['toLowerCase']():_0x28b35b)+')';}return _0x36b1dc+'\x20('+_0x28b35b+')';}class nt extends _0x15a662{['_headingOptions'];['afterInit'](){const _0x306a99=this['editor'];if(!_0x306a99['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x306a99['config']['get']('heading.options');const _0x3f392b=_0x306a99['locale'],_0x2b9cbd=_0x306a99['plugins']['get']('TrackChangesEditing');_0x2b9cbd['enableDefaultAttributesIntegration']('heading');for(const _0x4c9f90 of this['_headingOptions'])'paragraph'!=_0x4c9f90['model']&&_0x2b9cbd['descriptionFactory']['registerElementLabel'](_0x4c9f90['model'],_0x5f1adf=>{const _0x31675f=this['_getHeadingLevel'](_0x4c9f90['model']);return null!==_0x31675f?_0x3e6adb(_0x5f1adf,_0x31675f):_0xaeb7fc(_0x5f1adf,_0x4c9f90['title']);});function _0x3e6adb(_0x597665,_0x30eca7){return o(_0x3f392b,'ELEMENT_HEADING',[_0x597665,_0x30eca7]);}function _0xaeb7fc(_0x4762e1,_0x76df3c){return o(_0x3f392b,'ELEMENT_HEADING_CUSTOM',[_0x4762e1,_0x76df3c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de60a=this['editor'],_0x50604a=_0x2de60a['locale'];function _0x40ee25(_0x399e53,_0x5048a4){return o(_0x50604a,'ELEMENT_HEADING_CUSTOM',[_0x399e53,_0x5048a4]);}_0x2de60a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f4d0=>{if('formatBlock'!=_0x17f4d0['type'])return;const {data:_0x169282}=_0x17f4d0;if(_0x169282&&'heading'==_0x169282['commandName']){const _0x530f15=_0x169282['commandParams'][0x0]['value'],_0xd6da86=this['_getHeadingLevel'](_0x530f15);if(null!==_0xd6da86)return{'type':'format','content':o(_0x50604a,'*Change\x20to:*\x20%0',(_0x3dd87f=0x1,_0x3c69bd=_0xd6da86,o(_0x50604a,'ELEMENT_HEADING',[_0x3dd87f,_0x3c69bd])))};const _0x1f4da2=this['_headingOptions']['find'](_0x239e56=>_0x239e56['model']===_0x530f15)['title'];return{'type':'format','content':o(_0x50604a,'*Change\x20to:*\x20%0',_0x40ee25(0x1,_0x1f4da2))};}var _0x3dd87f,_0x3c69bd;});}['_getHeadingLevel'](_0x3ae667){const _0x4648f6=_0x3ae667['match'](/^heading(\d+)/);if(_0x4648f6)return _0x4648f6[0x1];const _0x5b192e=this['_headingOptions']?.['find'](_0x4bac04=>_0x4bac04['model']==_0x3ae667);if(_0x5b192e&&_0x5b192e['view']){const _0xb67098=_0x5b192e['view'],_0x69cad6=(_0xb67098['name']??_0xb67098)['match'](/^h(\d+)/);if(_0x69cad6)return _0x69cad6[0x1];}return null;}}class st extends _0x15a662{['afterInit'](){const _0x3ced42=this['editor'];if(!_0x3ced42['plugins']['has']('HighlightEditing'))return;const _0x26b18b=_0x3ced42['plugins']['get']('TrackChangesEditing'),_0x552331=_0x3ced42['locale'];_0x26b18b['enableDefaultAttributesIntegration']('highlight'),_0x26b18b['registerInlineAttribute']('highlight'),_0x26b18b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x552331,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7969=this['editor'],_0x5ed9c8=_0x7969['locale'];_0x7969['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb49860=>{if('formatInline'!=_0xb49860['type'])return;const {data:_0x409c48}=_0xb49860;if(_0x409c48&&'highlight'==_0x409c48['commandName']){const _0x17ca85=_0x5ed9c8['t'],_0x34a383=_0x409c48['commandParams'][0x0]['value'];if(_0x34a383){const _0x1a4925=_0x7969['config']['get']('highlight.options')['find'](_0x47a510=>_0x47a510['model']==_0x34a383),_0x107df7=_0x17ca85(_0x1a4925['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ed9c8,'*Set\x20highlight:*\x20%0',_0x107df7),'color':{'value':_0x1a4925['color'],'title':_0x1a4925['title']}};}return{'type':'format','content':o(_0x5ed9c8,'*Remove\x20highlight*',o(_0x5ed9c8,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x15a662{['afterInit'](){const _0xcea3df=this['editor'];if(!_0xcea3df['plugins']['has']('HorizontalLineEditing'))return;_0xcea3df['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x432c04=_0xcea3df['plugins']['get']('TrackChangesEditing'),_0x1c7950=_0xcea3df['locale'];_0x432c04['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3bd3eb=>o(_0x1c7950,'ELEMENT_HORIZONTAL_LINE',_0x3bd3eb)),_0xcea3df['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19e41d,{writer:_0x4207a4,options:_0x469ffd})=>{if(!_0x469ffd['showSuggestionHighlights'])return null;const _0x174f78=_0x4207a4['createContainerElement']('div'),_0x49c19f=_0x4207a4['createEmptyElement']('hr');return _0x4207a4['addClass']('ck-horizontal-line',_0x174f78),_0x4207a4['insert'](_0x4207a4['createPositionAt'](_0x174f78,0x0),_0x49c19f),_0x174f78;},'converterPriority':'high'});}}class rt extends _0x15a662{['afterInit'](){const _0x4038ec=this['editor'];if(!_0x4038ec['plugins']['has']('HtmlEmbed'))return;const _0x188702=_0x4038ec['plugins']['get']('TrackChangesEditing'),_0x531f80=_0x4038ec['locale'];_0x188702['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e1fe2=>o(_0x531f80,'ELEMENT_HTML_EMBED',_0x4e1fe2)),_0x188702['enableDefaultAttributesIntegration']('htmlEmbed'),_0x188702['registerBlockAttribute']('value'),_0x188702['descriptionFactory']['registerDescriptionCallback'](_0x1fa45f=>{if('attribute'!=_0x1fa45f['type'])return;const {data:_0x1efe69}=_0x1fa45f;if(_0x1efe69&&'value'==_0x1efe69['key']&&_0x1fa45f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x21d716=o(_0x531f80,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x531f80,'*Change\x20%0\x20content*',_0x21d716)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf788cf=this['editor'],_0x5efcaf=_0xf788cf['locale'];_0xf788cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb2f5=>{if('formatBlock'!=_0x5cb2f5['type'])return;const {data:_0x5b3c78}=_0x5cb2f5;if(_0x5b3c78&&'htmlEmbed'==_0x5b3c78['commandName']){const _0x52456f=o(_0x5efcaf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5efcaf,'*Change\x20%0\x20content*',_0x52456f)};}});}}class at extends _0x15a662{['afterInit'](){const _0x34dd73=this['editor'];if(!_0x34dd73['plugins']['has']('ImageEditing'))return;const _0x3aa456=_0x34dd73['plugins']['get']('TrackChangesEditing'),_0x56a9cc=_0x34dd73['plugins']['get']('ImageUtils'),_0xe5fc2e=_0x34dd73['locale'];_0x3aa456['enableCommand']('insertImage'),_0x3aa456['descriptionFactory']['registerElementLabel']('imageBlock',_0x5dc503=>o(_0xe5fc2e,'ELEMENT_IMAGE',_0x5dc503)),_0x3aa456['descriptionFactory']['registerElementLabel']('imageInline',_0x40c02b=>o(_0xe5fc2e,'ELEMENT_INLINE_IMAGE',_0x40c02b)),_0x3aa456['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe5fc2e,'ELEMENT_CAPTION')),_0x34dd73['plugins']['has']('ImageUploadEditing')&&_0x3aa456['enableCommand']('uploadImage'),_0x34dd73['plugins']['has']('ImageBlockEditing')&&_0x34dd73['plugins']['has']('ImageInlineEditing')&&(_0x3aa456['enableCommand']('imageTypeInline',(_0x31c7e7,_0x54ad3c)=>{const _0x35c319=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']);_0x34dd73['model']['change'](()=>{_0x3aa456['markBlockFormat'](_0x35c319,{'commandName':'imageTypeInline','commandParams':[_0x54ad3c]},[],'convertBlockImageToInline');});}),_0x3aa456['enableCommand']('imageTypeBlock',(_0x5783a7,_0xb2696d)=>{_0x34dd73['model']['change'](_0x345230=>{let _0x1d5d40=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xd10bea=_0x345230['createRangeOn'](_0x1d5d40);const _0x58d144=_0x405432['fromPosition'](_0xd10bea['start'],'toPrevious'),_0x358494=_0x405432['fromPosition'](_0xd10bea['end'],'toNext');_0x3aa456['forceDefaultExecution'](()=>_0x5783a7(_0xb2696d)),_0x1d5d40=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xd10bea=_0x345230['createRangeOn'](_0x1d5d40);const _0x57acdc=_0x345230['createRange'](_0x58d144,_0x358494);_0x58d144['detach'](),_0x358494['detach'](),_0x3aa456['markBlockFormat'](_0x1d5d40,{'commandName':'imageTypeInline','commandParams':[_0xb2696d]},[],'convertInlineImageToBlock'),_0x57acdc['start']['isBefore'](_0xd10bea['start'])&&_0x3aa456['markInsertion'](_0x345230['createRange'](_0x57acdc['start'],_0xd10bea['start']),'convertInlineImageToBlock'),_0xd10bea['end']['isBefore'](_0x57acdc['end'])&&_0x3aa456['markInsertion'](_0x345230['createRange'](_0xd10bea['end'],_0x57acdc['end']),'convertInlineImageToBlock');});}),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3aa456['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x279607])=>{const _0x111f2c=_0x3aa456['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x182a5c=_0x279607['start'],_0x23d21c=_0x279607['end'];const _0xf6a980=_0x34dd73['model']['schema']['getNearestSelectionRange'](_0x182a5c,'backward'),_0x534e54=_0x34dd73['model']['schema']['getNearestSelectionRange'](_0x23d21c,'forward');_0xf6a980['isCollapsed']&&(_0x182a5c=_0xf6a980['start']),_0x534e54['isCollapsed']&&(_0x23d21c=_0x534e54['end']),_0x111f2c([_0x34dd73['model']['createRange'](_0x182a5c,_0x23d21c)]);}),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x554867),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x554867)),_0x34dd73['plugins']['has']('ImageCaptionEditing')&&(_0x3aa456['enableCommand']('toggleImageCaption',(_0x529c70,_0x407ae4)=>{const _0x48ef6a=_0x34dd73['plugins']['get']('ImageCaptionUtils');let _0x577d68=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xcb337=_0x48ef6a['getCaptionFromImageModelElement'](_0x577d68);_0x34dd73['model']['change'](()=>{if(_0xcb337)return void _0x3aa456['markDeletion'](_0x34dd73['model']['createRangeOn'](_0xcb337));const _0x3591e6=_0x56a9cc['isBlockImage'](_0x577d68);_0x529c70(_0x407ae4),_0x577d68=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xcb337=_0x48ef6a['getCaptionFromImageModelElement'](_0x577d68),_0x3aa456['markInsertion'](_0x34dd73['model']['createRangeOn'](_0xcb337),_0x3591e6?null:'imageCaption');});}),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x554867));const _0x25a808=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d2543(_0x53fbc8,_0xea512b){const _0x5890b4=_0x25a808['findIndex'](({type:_0x23d1cc,subType:_0x55cdd3})=>_0x53fbc8['type']==_0x23d1cc&&_0x53fbc8['subType']==_0x55cdd3),_0x2b1cda=_0x25a808['findIndex'](({type:_0x257654,subType:_0x4cb302})=>_0xea512b['type']==_0x257654&&_0xea512b['subType']==_0x4cb302);if(_0x5890b4<0x0||_0x2b1cda<0x0)return!0x1;const _0x4beafa=_0x53fbc8['getFirstRange'](),_0x5b3087=_0xea512b['getFirstRange']();if((0x0==_0x5890b4||0x1==_0x5890b4)&&0x2==_0x2b1cda&&_0x4beafa['isIntersecting'](_0x5b3087))return!0x0;if(0x2==_0x5890b4&&0x3==_0x2b1cda){const _0x32f742=_0x3aa456['_findSuggestions'](_0x4beafa,'insertion')['filter'](({suggestion:_0x1a0013,meta:_0x5e149d})=>_0x5e149d['isOwn']&&'convertInlineImageToBlock'==_0x1a0013['subType']);if(_0x32f742['length']>0x1&&_0x5b3087['end']['isEqual'](_0x4beafa['start']))return!0x0;if(0x1==_0x32f742['length']&&(_0x4beafa['start']['isEqual'](_0x5b3087['end'])||_0x4beafa['end']['isEqual'](_0x5b3087['start'])))return!0x0;}if(0x3==_0x5890b4&&0x3==_0x2b1cda&&_0x4beafa['start']['isBefore'](_0x5b3087['start'])){const _0x1ac221=_0x4beafa['end']['nodeAfter'],_0x174caa=_0x5b3087['start']['nodeBefore'];return _0x56a9cc['isBlockImage'](_0x1ac221)&&_0x1ac221===_0x174caa;}return!0x1;}function _0x554867(_0x1cc1df,_0x10912f){return _0x3d2543(_0x1cc1df,_0x10912f)?[_0x1cc1df,_0x10912f]:_0x3d2543(_0x10912f,_0x1cc1df)?[_0x10912f,_0x1cc1df]:null;}_0x34dd73['plugins']['has']('ImageResize')&&(_0x3aa456['enableDefaultAttributesIntegration']('resizeImage'),_0x3aa456['registerBlockAttribute']('resizedWidth'),_0x3aa456['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe5fc2e,'FORMAT_IMAGE_SIZE'))),_0x34dd73['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3aa456['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3aa456['registerBlockAttribute']('alt')),_0x34dd73['plugins']['has']('PictureEditing')&&(_0x3aa456['registerBlockAttribute']('sources'),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x338f81=>{if('attribute'!=_0x338f81['type'])return;const {data:_0x9ddd17}=_0x338f81;return _0x9ddd17&&'sources'==_0x9ddd17['key']?{'type':'format','content':''}:void 0x0;})),_0x34dd73['plugins']['has']('ImageSizeAttributes')&&(_0x3aa456['registerBlockAttribute']('width'),_0x3aa456['registerBlockAttribute']('height'),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0xa32298=>{if('attribute'!=_0xa32298['type'])return;const {data:_0x1cf759}=_0xa32298;return!_0x1cf759||'width'!=_0x1cf759['key']&&'height'!=_0x1cf759['key']?void 0x0:{'type':'format','content':''};})),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x1e30dd=>{if(!!_0x25a808['find'](({type:_0x437fef,subType:_0x1c4a16})=>_0x1e30dd['type']==_0x437fef&&_0x1e30dd['subType']==_0x1c4a16))return _0x1e30dd['previous']?{}:void 0x0;}),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x371dd7=>{if('insertion'==_0x371dd7['type']||'deletion'==_0x371dd7['type']){const _0x46e1e3=_0x371dd7['getContainedElement']();if(_0x46e1e3&&_0x46e1e3['is']('element','caption'))return{'type':'insertion'==_0x371dd7['type']?'addObject':'removeObject','element':_0x46e1e3,'quantity':0x1};}}),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x1b24de=>'formatBlock'==_0x1b24de['type']&&'convertInlineImageToBlock'==_0x1b24de['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1b24de['type']&&'convertBlockImageToInline'==_0x1b24de['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x2b44f9=>{if('attribute'!=_0x2b44f9['type'])return;const {data:_0x1e27f6}=_0x2b44f9;if(!_0x1e27f6||'alt'!=_0x1e27f6['key'])return;const _0x130a68=_0x1e27f6['newValue'];return _0x130a68?{'type':'format','content':o(_0xe5fc2e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x130a68+'\x22')}:{'type':'format','content':o(_0xe5fc2e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2c68=this['editor'],_0x365803=_0x1f2c68['locale'];_0x1f2c68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x423ddf=>{if('formatBlock'!=_0x423ddf['type']&&'formatInline'!=_0x423ddf['type'])return;const {data:_0x204868}=_0x423ddf;if(_0x204868){if('imageTextAlternative'==_0x204868['commandName']){const _0x33f9e7=_0x204868['commandParams'][0x0]['newValue'];return _0x33f9e7?{'type':'format','content':o(_0x365803,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33f9e7+'\x22')}:{'type':'format','content':o(_0x365803,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x204868['commandName']){const _0x4b07a7=_0x204868['commandParams'][0x0]['width'];return _0x4b07a7?{'type':'format','content':o(_0x365803,'*Set\x20image\x20width:*\x20%0',_0x4b07a7)}:{'type':'format','content':o(_0x365803,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3e6ae3=this['editor']['locale'],_0x480fef=this['editor']['plugins']['get']('TrackChangesEditing');_0x480fef['enableDefaultAttributesIntegration']('replaceImageSource'),_0x480fef['registerBlockAttribute']('src'),_0x480fef['descriptionFactory']['registerDescriptionCallback'](_0x1c7d22=>{if('attribute'!=_0x1c7d22['type'])return;const {data:_0x30b312}=_0x1c7d22;return _0x30b312&&'src'==_0x30b312['key']?_0x30b312['newValue']&&_0x30b312['oldValue']?{'type':'format','content':o(_0x3e6ae3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x214a67=this['editor']['plugins']['get']('TrackChangesEditing');_0x214a67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x214a67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x214a67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x214a67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f95d3=this['editor'],_0x49c493=_0x4f95d3['locale'];_0x4f95d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25e549=>{if('formatBlock'!=_0x25e549['type']&&'formatInline'!=_0x25e549['type'])return;const {data:_0x19b41a}=_0x25e549;if(!_0x19b41a||'replaceImageSource'!=_0x19b41a['commandName'])return;return{'type':'format','content':o(_0x49c493,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x15a662{['afterInit'](){const _0x111465=this['editor'];if(!_0x111465['plugins']['has']('ImageStyleEditing'))return;const _0x181893=_0x111465['plugins']['get']('TrackChangesEditing'),_0x16e2be=_0x111465['plugins']['get']('ImageUtils'),_0x86a73={};_0x181893['enableCommand']('imageStyle',(_0x4a5e32,_0x2f6dee)=>{const _0x549148=_0x111465['plugins']['get']('Users')['me'],_0x40c22e=_0x111465['commands']['get']('imageStyle');let _0x3e67d1=_0x16e2be['getClosestSelectedImageElement'](_0x111465['model']['document']['selection']),_0x520aec=_0x111465['model']['createRangeOn'](_0x3e67d1),_0x49e637=_0x40c22e['value'];if(_0x49e637==_0x2f6dee['value'])return;const _0x2bf096={'commandName':'imageStyle','commandParams':[_0x2f6dee],'formatGroupId':_0xb1da02()};_0x111465['model']['change'](()=>{if(_0x181893['getSuggestions']()['filter'](_0x21db1a=>_0x21db1a['isInContent']&&_0x549148==_0x21db1a['author']&&('formatBlock'==_0x21db1a['type']||'formatInline'==_0x21db1a['type'])&&('imageStylePreApply'==_0x21db1a['subType']||'imageStylePostApply'==_0x21db1a['subType'])&&_0x21db1a['getFirstRange']()['isEqual'](_0x520aec))['forEach'](_0x1131e9=>_0x181893['discardSuggestion'](_0x1131e9['head'])),_0x3e67d1=_0x16e2be['getClosestSelectedImageElement'](_0x111465['model']['document']['selection']),_0x520aec=_0x111465['model']['createRangeOn'](_0x3e67d1),_0x40c22e['refresh'](),_0x111465['commands']['get']('imageTypeInline')['refresh'](),_0x111465['commands']['get']('imageTypeBlock')['refresh'](),_0x49e637=_0x40c22e['value'],_0x49e637!=_0x2f6dee['value'])return _0x16e2be['isInlineImage'](_0x3e67d1)&&_0x40c22e['shouldConvertImageType'](_0x2f6dee['value'],_0x3e67d1)?(_0x4a5e32({..._0x2f6dee,'setImageSizes':!0x1}),_0x3e67d1=_0x16e2be['getClosestSelectedImageElement'](_0x111465['model']['document']['selection']),void _0x181893['markBlockFormat'](_0x3e67d1,{..._0x2bf096,'commandReversedParams':[{'value':_0x49e637||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x16e2be['isBlockImage'](_0x3e67d1)?_0x181893['markBlockFormat'](_0x3e67d1,_0x2bf096,[],'imageStylePostApply'):_0x181893['markInlineFormat'](_0x520aec,_0x2bf096,'imageStylePostApply'));});});for(const _0x48325a of _0x111465['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x86a73[_0x48325a['name']]=_0x48325a['title']['toLowerCase']();_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x181893['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x41f72a])=>{_0x16e2be['setImageNaturalSizeAttributes'](_0x41f72a['getContainedElement']());}),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53c4c1,_0x17c0b6)=>{_0x181893['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53c4c1,{'commandName':_0x17c0b6['commandName'],'commandParams':_0x17c0b6['commandReversedParams']});}),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x592099,_0x50d180){if(_0x48b1c5(_0x592099,_0x50d180))return[_0x592099,_0x50d180];if(_0x48b1c5(_0x50d180,_0x592099))return[_0x50d180,_0x592099];return null;});const _0xae8041=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48b1c5(_0x311a9e,_0x1318b2){const _0x5dadfa=_0xae8041['findIndex'](({type:_0x4cc4c1,subType:_0x44d7b2})=>_0x311a9e['type']==_0x4cc4c1&&_0x311a9e['subType']==_0x44d7b2),_0x375150=_0xae8041['findIndex'](({type:_0x45b1ed,subType:_0x31de81})=>_0x1318b2['type']==_0x45b1ed&&_0x1318b2['subType']==_0x31de81);if(_0x5dadfa<0x0||_0x375150<0x0)return!0x1;const _0x1c0b33=_0x311a9e['getFirstRange'](),_0xc536a8=_0x1318b2['getFirstRange']();if((0x0==_0x5dadfa||0x1==_0x5dadfa)&&0x2==_0x375150&&_0x1c0b33['isIntersecting'](_0xc536a8))return!0x0;if(0x2==_0x5dadfa&&0x3==_0x375150){const _0x24daed=_0x181893['_findSuggestions'](_0x1c0b33,'insertion')['filter'](({suggestion:_0x3deeb3,meta:_0x42357b})=>_0x42357b['isOwn']&&'convertInlineImageToBlock'==_0x3deeb3['subType']);if(_0x24daed['length']>0x1&&_0xc536a8['end']['isEqual'](_0x1c0b33['start']))return!0x0;if(0x1==_0x24daed['length']&&(_0x1c0b33['start']['isEqual'](_0xc536a8['end'])||_0x1c0b33['end']['isEqual'](_0xc536a8['start'])))return!0x0;}if(0x3==_0x5dadfa&&0x3==_0x375150&&_0x1c0b33['start']['isBefore'](_0xc536a8['start'])){const _0x422847=_0x1c0b33['end']['nodeAfter'],_0x21c26c=_0xc536a8['start']['nodeBefore'];return _0x16e2be['isBlockImage'](_0x422847)&&_0x422847===_0x21c26c;}return!0x1;}_0x111465['model']['document']['registerPostFixer'](()=>{let _0x3c7a6d=!0x1;const _0x52b6c9=Array['from'](_0x111465['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49b8b8,data:_0x36d1b2}of _0x52b6c9){const {group:_0x1b2f6c,type:_0x37a0c6,subType:_0x2dd5b2,id:_0x4c143d}=_0x181893['_splitMarkerName'](_0x49b8b8);if('suggestion'==_0x1b2f6c&&_0x181893['hasSuggestion'](_0x4c143d)){if('formatBlock'==_0x37a0c6&&('imageStylePreApply'==_0x2dd5b2||'imageStylePostApply'==_0x2dd5b2)){const _0x31af58=_0x181893['getSuggestion'](_0x4c143d);if(_0x36d1b2['newRange']){const _0x163270=_0x31af58['getFirstRange']()['getContainedElement']();if(_0x16e2be['isBlockImage'](_0x163270))continue;_0x181893['discardSuggestion'](_0x31af58),_0x3c7a6d=!0x0;}}if('insertion'==_0x37a0c6&&'imageCaption'==_0x2dd5b2&&!_0x36d1b2['newRange']){const _0x5589ed=_0x181893['getSuggestion'](_0x4c143d);_0x5589ed['next']&&_0x5589ed['next']['isInContent']&&(_0x181893['discardSuggestion'](_0x5589ed['next']),_0x3c7a6d=!0x0);}}}return _0x3c7a6d;}),this['_registerLegacyDescription'](_0x86a73);}['_registerLegacyDescription'](_0x394d69){const _0x9bb01e=this['editor'],_0x323e7b=_0x9bb01e['locale'];_0x9bb01e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598262=>{if('formatBlock'!=_0x598262['type']&&'formatInline'!=_0x598262['type'])return;const {data:_0x435a22}=_0x598262;if(!_0x435a22||'imageStyle'!=_0x435a22['commandName'])return;const _0x20382a=_0x435a22['commandParams'][0x0]['value'];return _0x5e4a9a('side'===_0x20382a?o(_0x323e7b,'FORMAT_SIDE_IMAGE'):_0x394d69[_0x20382a]||_0x20382a);function _0x5e4a9a(_0x2dd97b){return{'type':'format','content':o(_0x323e7b,'*Format:*\x20%0',_0x2dd97b)};}});}}class ft extends _0x15a662{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f5013){super(_0x1f5013),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x576edb=this['editor'],_0x50757a=_0x576edb['commands']['get']('importWord'),_0x4b1ce0=_0x576edb['commands']['get']('trackChanges');_0x50757a&&(_0x50757a['on']('execute',(_0x2a8d64,[,_0xb848e9])=>{this['_trackChangesValueDuringImport']=_0x4b1ce0['value'],_0xb848e9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x50757a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x50757a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4b1ce0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x576edb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1fb008,_0x29a439){const {suggestions:_0x46a96}=_0x29a439,_0x44cdfa=this['editor']['commands']['get']('trackChanges'),_0x9813e8=_0x44cdfa['value'];this['_trackChangesValueDuringImport']!==_0x9813e8&&(_0x44cdfa['execute'](),this['_trackChangesExecuted']=!0x0),_0x46a96&&_0x46a96['forEach'](({id:_0x2191b2,type:_0x329d05,author:_0x5df06e,created_at:_0x3b8c6d})=>{const _0xa505be={'id':_0x2191b2,'type':_0x329d05,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5df06e,'createdAt':_0x3b8c6d?new Date(_0x3b8c6d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xa505be);});}}class ht extends _0x15a662{['afterInit'](){const _0x5fc574=this['editor'],_0x599890=_0x5fc574['plugins']['get']('TrackChangesEditing');if(_0x5fc574['plugins']['has']('IndentEditing')&&(_0x599890['enableCommand']('indent'),_0x599890['enableCommand']('outdent')),_0x5fc574['plugins']['has']('IndentBlock')){for(const _0x3e5f45 of['indentBlock','outdentBlock'])_0x599890['enableDefaultAttributesIntegration'](_0x3e5f45);}const _0x50bbc0=_0x5fc574['locale'];_0x599890['registerBlockAttribute']('blockIndent'),_0x599890['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x50bbc0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a7151=this['editor'],_0x6d2825=_0x3a7151['locale'],_0xfade2=_0x3a7151['plugins']['get']('TrackChangesEditing');_0xfade2['descriptionFactory']['registerDescriptionCallback'](_0x54d726=>{if('formatBlock'!=_0x54d726['type'])return;const {data:_0x3f1e28}=_0x54d726;if(!_0x3f1e28)return;if('indentBlock'!=_0x3f1e28['commandName']&&'outdentBlock'!=_0x3f1e28['commandName'])return;const _0x483811=_0x54d726['getItems']()[0x0],_0xbf3e47=_0xfade2['descriptionFactory']['getItemLabel'](_0x483811);return'indentBlock'==_0x3f1e28['commandName']?{'type':'format','content':o(_0x6d2825,'*Indent:*\x20%0',_0xbf3e47)}:'outdentBlock'==_0x3f1e28['commandName']?{'type':'format','content':o(_0x6d2825,'*Outdent:*\x20%0',_0xbf3e47)}:void 0x0;});}}class gt extends _0x15a662{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x15a662{['afterInit'](){const _0x5c54c2=this['editor'];if(!_0x5c54c2['plugins']['has']('LinkEditing'))return;const _0x4cd19b=_0x5c54c2['plugins']['get']('TrackChangesEditing'),_0x484779=_0x5c54c2['commands']['get']('link');_0x4cd19b['enableDefaultAttributesIntegration']('link'),_0x4cd19b['enableDefaultAttributesIntegration']('unlink'),_0x4cd19b['registerInlineAttribute']('linkHref');for(const _0x5314ee of _0x484779['manualDecorators'])_0x4cd19b['registerInlineAttribute'](_0x5314ee['id']),_0x4cd19b['descriptionFactory']['registerAttributeLabel'](_0x5314ee['id'],'link\x20('+_0x5314ee['label']['toLowerCase']()+')');_0x4cd19b['descriptionFactory']['registerDescriptionCallback'](_0x2710ae=>{if('attribute'!=_0x2710ae['type'])return;const {data:_0x339906}=_0x2710ae;if(!_0x339906||'linkHref'!=_0x339906['key'])return;const _0x18013b=_0x339906['newValue'],_0x20bffd=_0x5c54c2['locale'];return{'type':'format','content':null==_0x18013b?o(_0x20bffd,'*Remove\x20link*'):o(_0x20bffd,'*Set\x20link:*\x20%0','\x22'+_0x18013b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5353c5=this['editor'],_0xe40880=_0x5353c5['locale'];_0x5353c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a2c2=>{if('formatInline'!=_0x47a2c2['type'])return;const {data:_0x3e5ef8}=_0x47a2c2;if(_0x3e5ef8){if('link'==_0x3e5ef8['commandName']){const _0x1fd587=_0x3e5ef8['commandParams'][0x0];return{'type':'format','content':o(_0xe40880,'*Set\x20link:*\x20%0','\x22'+_0x1fd587+'\x22')};}return'unlink'==_0x3e5ef8['commandName']?{'type':'format','content':o(_0xe40880,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x15a662{['afterInit'](){const _0x1007b5=this['editor'],_0x3f1d5d=_0x1007b5['locale'];if(!_0x1007b5['plugins']['has']('LegacyListEditing'))return;const _0x6bee62=_0x1007b5['plugins']['get']('TrackChangesEditing'),_0x2ccc4b=_0x1007b5['plugins']['has']('LegacyTodoListEditing');function _0x2a4f21(_0x32621b){return()=>{const _0x1102ed=_0x1007b5['model']['document']['selection'],_0x176014=_0x1007b5['commands']['get'](_0x32621b);if(_0x176014['value'])return void _0x1007b5['execute']('paragraph',{});const _0x212817=_0x32621b['slice'](0x0,-0x4),_0x201372=function(_0x10edfa,_0x44da00,_0x2610d4){let _0x3a91db=Array['from'](_0x10edfa)['filter'](_0x157034=>function(_0x4253ea,_0x374562){return _0x374562['checkChild'](_0x4253ea['parent'],'listItem')&&!_0x374562['isObject'](_0x4253ea);}(_0x157034,_0x2610d4));_0x3a91db=_0x3a91db['filter'](_0x262ccf=>!_0x262ccf['is']('element','listItem')||_0x262ccf['getAttribute']('listType')!=_0x44da00);const _0x5ab646=new Set();for(const _0x5708dc of _0x3a91db)_0x5708dc['is']('element','listItem')?_0x5ab646['add'](Ne(_0x5708dc)):_0x5ab646['add'](_0x5708dc);return Array['from'](_0x5ab646);}(_0x1102ed['getSelectedBlocks'](),_0x212817,_0x1007b5['model']['schema']);_0x1007b5['model']['change'](()=>{for(const _0x48db44 of _0x201372)_0x6bee62['markBlockFormat'](_0x48db44,{'commandName':_0x32621b,'commandParams':[{'forceValue':!_0x176014['value']}],'formatGroupId':'blockName'},Se(_0x48db44));});};}function _0x209462(_0xff22ba){return()=>{const _0x27f441=function(_0x2f97af){let _0xe7a71b=Array['from'](_0x2f97af);const _0x2b4cd5=_0xe7a71b['findIndex'](_0x529876=>'listItem'!=_0x529876['name']);return _0x2b4cd5>-0x1&&(_0xe7a71b=_0xe7a71b['slice'](0x0,_0x2b4cd5)),_0xe7a71b;}(_0x1007b5['model']['document']['selection']['getSelectedBlocks']()),_0x53cadf=_0x1007b5['model']['createRange'](_0x1007b5['model']['createPositionAt'](_0x27f441[0x0],'before'),_0x1007b5['model']['createPositionAt'](_0x27f441[_0x27f441['length']-0x1],'end'));_0x1007b5['model']['change'](()=>{_0x6bee62['markBlockFormat'](_0x53cadf,{'commandName':_0xff22ba,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e05a6){const _0x3232cd=new Set();for(const _0x4a0ed6 of _0x3e05a6){let _0x57d9ff=_0x4a0ed6['nextSibling'];for(;_0x57d9ff&&_0x57d9ff['getAttribute']('listIndent')>_0x4a0ed6['getAttribute']('listIndent');)_0x3232cd['add'](_0x57d9ff),_0x57d9ff=_0x57d9ff['nextSibling'];}return Array['from'](_0x3232cd);}(_0x27f441));});};}_0x6bee62['enableCommand']('numberedList',_0x2a4f21('numberedList')),_0x6bee62['enableCommand']('bulletedList',_0x2a4f21('bulletedList')),_0x2ccc4b&&_0x6bee62['enableCommand']('todoList',_0x2a4f21('todoList')),_0x6bee62['enableCommand']('indentList',_0x209462('indentList')),_0x6bee62['enableCommand']('outdentList',_0x209462('outdentList')),_0x2ccc4b&&_0x6bee62['enableCommand']('checkTodoList',()=>{const _0x3bf80e=_0x1007b5['commands']['get']('checkTodoList'),_0x3dfe47=Array['from'](_0x3bf80e['_selectedElements']);_0x3dfe47['filter'](_0x3cf5ae=>_0x3cf5ae['getAttribute']('todoListChecked')!=_0x3bf80e['value']),_0x1007b5['model']['change'](()=>{for(const _0x274864 of _0x3dfe47)_0x6bee62['markBlockFormat'](_0x274864,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3bf80e['value']}]});});}),_0x6bee62['descriptionFactory']['registerElementLabel']('listItem',_0x2d162a=>o(_0x3f1d5d,'ELEMENT_LIST_ITEM',_0x2d162a)),_0x6bee62['descriptionFactory']['registerDescriptionCallback'](_0x417b70=>{if('formatBlock'!=_0x417b70['type']&&'formatInline'!=_0x417b70['type'])return;const {data:_0x40fa38}=_0x417b70;if(_0x40fa38){if('numberedList'==_0x40fa38['commandName']||'bulletedList'==_0x40fa38['commandName']||'todoList'==_0x40fa38['commandName'])switch(_0x40fa38['commandName']['replace']('List','')){case'bulleted':return _0x47246f(o(_0x3f1d5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47246f(o(_0x3f1d5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47246f(o(_0x3f1d5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x40fa38['commandName'])return{'type':'format','content':o(_0x3f1d5d,'*Indent:*\x20%0',o(_0x3f1d5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x40fa38['commandName'])return{'type':'format','content':o(_0x3f1d5d,'*Outdent:*\x20%0',o(_0x3f1d5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x40fa38['commandName'])return _0x40fa38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f1d5d,'*Check\x20item*')}:{'type':'format','content':o(_0x3f1d5d,'*Uncheck\x20item*')};}function _0x47246f(_0x2abd64){return{'type':'format','content':o(_0x3f1d5d,'*Change\x20to:*\x20%0',_0x2abd64)};}});}}function Ne(_0xf99f89){const _0x283bdc=_0xf99f89['getAttribute']('listIndent');if(0x0==_0x283bdc)return _0xf99f89;let _0xe938b9=_0xf99f89;for(;_0xf99f89['previousSibling']&&_0xf99f89['previousSibling']['is']('element','listItem');){const _0x43f983=_0xf99f89['previousSibling']['getAttribute']('listIndent');if(_0x43f983==_0x283bdc)_0xe938b9=_0xf99f89['previousSibling'];else{if(_0x43f983<_0x283bdc)break;}_0xf99f89=_0xf99f89['previousSibling'];}return _0xe938b9;}function Se(_0x43188e){const _0x33f391=[];if(_0x43188e['is']('element','listItem')&&_0x43188e['getAttribute']('listIndent')>0x0){let _0x1248cb=_0x43188e['nextSibling'];for(;_0x1248cb&&'listItem'==_0x1248cb['name']&&_0x1248cb['getAttribute']('listIndent')==_0x43188e['getAttribute']('listIndent');)_0x33f391['push'](_0x1248cb),_0x1248cb=_0x1248cb['nextSibling'];}return _0x33f391;}class mt extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4bcc4f=this['editor']['config']['get']('list.properties'),_0x151b0b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4bcc4f['styles']&&_0x151b0b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4bcc4f['reversed']&&_0x151b0b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4bcc4f['startIndex']&&_0x151b0b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x151b0b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2db533,_0x77177={}){const _0x19e532=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c0915=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x19e532['markMultiRangeBlockFormat'](_0x9c0915,{'commandName':'listStyle','commandParams':[{'type':_0x77177['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x155147,_0x895890={}){const _0x5d63d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d6581=this['_getSuggestionBlocks'](_0x33a89f=>_0x33a89f['is']('element','listItem')&&'numbered'===_0x33a89f['getAttribute']('listType'));if(_0x3d6581['length']<0x1)return;const _0x262041=_0x3d6581['map'](_0x26a802=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26a802,'before'),this['editor']['model']['createPositionAt'](_0x26a802,0x0)));this['editor']['model']['change'](()=>{_0x5d63d1['markMultiRangeBlockFormat'](_0x262041,{'commandName':'listReversed','commandParams':[{'reversed':_0x895890['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2eea3d,_0x1bccaf={}){const _0x5077b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f4c79=this['_getSuggestionBlocks'](_0x5b063f=>_0x5b063f['is']('element','listItem')&&'numbered'===_0x5b063f['getAttribute']('listType'));if(_0x1f4c79['length']<0x1)return;const _0x3ea37e=_0x1f4c79['map'](_0x55382c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55382c,'before'),this['editor']['model']['createPositionAt'](_0x55382c,0x0)));this['editor']['model']['change'](()=>{_0x5077b4['markMultiRangeBlockFormat'](_0x3ea37e,{'commandName':'listStart','commandParams':[{'startIndex':_0x1bccaf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x33fce5){if('formatBlock'!=_0x33fce5['type']&&'formatInline'!=_0x33fce5['type'])return;const _0x3a30cf=this['editor']['locale'],{data:_0x465229}=_0x33fce5;if(!_0x465229)return;let _0xd668be,_0x216520;switch(_0x465229['commandName']){case'listStyle':_0xd668be='*Change\x20to:*\x20%0',_0x216520={'type':'format','content':o(_0x3a30cf,_0xd668be,o(_0x3a30cf,this['_getTranslationKeyForListStyle'](_0x465229['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd668be=_0x465229['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x216520={'type':'format','content':o(_0x3a30cf,_0xd668be)};break;case'listStart':_0xd668be='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x216520={'type':'format','content':o(_0x3a30cf,_0xd668be,_0x465229['commandParams'][0x0]['startIndex'])};}return _0x216520;}['_getSuggestionBlocksForListStyle'](){const _0x40384d=this['editor']['plugins']['get']('LegacyListUtils');let _0xe9983b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xe9983b[0x0]?.['is']('element','listItem')&&_0xe9983b['unshift'](..._0x40384d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xe9983b[_0xe9983b['length']-0x1]?.['is']('element','listItem')&&_0xe9983b['push'](..._0x40384d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe9983b=[...new Set(_0xe9983b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xe9983b=_0xe9983b['filter'](_0x3ef709=>_0x3ef709['is']('element','listItem'))),_0xe9983b;}['_getSuggestionBlocks'](_0x157efc){const _0x1ea20b=this['editor']['plugins']['get']('LegacyListUtils');let _0x34f488=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x157efc)['map'](_0x27a258=>{const _0x412e51=this['editor']['model']['createPositionAt'](_0x27a258,0x0);return[..._0x1ea20b['getSiblingNodes'](_0x412e51,'backward'),..._0x1ea20b['getSiblingNodes'](_0x412e51,'forward')];})['flat']();return _0x34f488=[...new Set(_0x34f488)],_0x34f488;}['_getTranslationKeyForListStyle'](_0x1ab466){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ab466)||'default')['toUpperCase']()+'_LIST_'+_0x1ab466['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x15a662{['afterInit'](){const _0xac2072=this['editor'];if(!_0xac2072['plugins']['has']('MediaEmbedEditing'))return;const _0x39531d=_0xac2072['plugins']['get']('TrackChangesEditing'),_0x45bb3d=_0xac2072['locale'];_0x39531d['enableCommand']('mediaEmbed'),_0x39531d['descriptionFactory']['registerElementLabel']('media',_0x35545c=>o(_0x45bb3d,'ELEMENT_MEDIA',_0x35545c)),_0xac2072['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x261644,{writer:_0x4706d4,options:_0x3ffbb8})=>{if(_0x3ffbb8['showSuggestionHighlights'])return _0x4706d4['createEmptyElement']('div');},'converterPriority':'high'}),_0xac2072['data']['downcastDispatcher']['on']('attribute:url:media',(_0x14084a,_0x801d33,_0xa9b25e)=>{_0xa9b25e['options']['showSuggestionHighlights']&&_0x14084a['stop']();},{'priority':'high'});}}class kt extends _0x15a662{['afterInit'](){const _0x351525=this['editor'];_0x351525['plugins']['has']('MentionEditing')&&_0x351525['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x15a662{['afterInit'](){const _0x26e022=this['editor'];if(!_0x26e022['plugins']['has']('MergeFieldsEditing'))return;const _0x1ab5ee=_0x26e022['plugins']['get']('TrackChangesEditing'),_0x214033=_0x26e022['locale'];_0x1ab5ee['enableCommand']('insertMergeField'),_0x1ab5ee['enableCommand']('insertMergeFieldBlock'),_0x1ab5ee['enableCommand']('insertMergeFieldImage'),_0x1ab5ee['descriptionFactory']['registerElementLabel']('mergeField',_0x55d6c8=>o(_0x214033,'ELEMENT_MERGE_FIELD',_0x55d6c8)),_0x1ab5ee['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15e0c8=>o(_0x214033,'ELEMENT_MERGE_FIELD',_0x15e0c8)),_0x1ab5ee['descriptionFactory']['registerDescriptionCallback'](_0x1d3cea=>{if('insertion'!=_0x1d3cea['type']&&'deletion'!=_0x1d3cea['type'])return;const _0x3b4928=_0x1d3cea['getContainedElement']();if(null==_0x3b4928)return;const _0x59e9cd=_0x26e022['plugins']['get']('MergeFieldsEditing');let _0x51033a;switch(_0x59e9cd['getMergeFieldType'](_0x3b4928)){case null:return;case'image':{const _0x24a2b4=_0x59e9cd['unwrapAffixes'](_0x3b4928['getAttribute']('src'));_0x51033a=_0x59e9cd['getLabel'](_0x24a2b4)||_0x24a2b4;break;}default:{const _0x7e0b50=_0x3b4928['getAttribute']('id');_0x51033a=_0x59e9cd['getLabel'](_0x7e0b50)||_0x7e0b50;break;}}return'insertion'==_0x1d3cea['type']?{'type':'insertion','content':o(_0x214033,'*Insert:*\x20%0','\x22'+_0x51033a+'\x22\x20'+o(_0x214033,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x214033,'*Remove:*\x20%0','\x22'+_0x51033a+'\x22\x20'+o(_0x214033,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x15a662{['afterInit'](){const _0x77881a=this['editor'],_0x3e7bd7=_0x77881a['plugins']['get']('TrackChangesEditing');_0x77881a['plugins']['has']('MultiLevelList')&&(_0x3e7bd7['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e7bd7['registerBlockAttribute']('listMarkerStyle'),_0x3e7bd7['descriptionFactory']['registerDescriptionCallback'](_0x1d7a67=>this['handleDescriptions'](_0x1d7a67)));}['handleDescriptions'](_0xeceea8){const _0x422369=this['editor']['locale'],{data:_0x344bb8}=_0xeceea8,_0x37718d={'type':'format','content':''};if(_0x344bb8&&'listMarkerStyle'==_0x344bb8['key']){if(!_0x344bb8['oldValue'])return{'type':'format','content':o(_0x422369,'*Set\x20format:*\x20%0',o(_0x422369,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344bb8['newValue']+')'};if(!_0x344bb8['newValue']){let _0x210bef=_0xeceea8['head'];for(;_0x210bef;){if(_0x210bef['data']&&'listType'==_0x210bef['data']['key']&&_0x210bef['data']['newValue'])return _0x37718d;_0x210bef=_0x210bef['next'];}return{'type':'format','content':o(_0x422369,'*Remove\x20format:*\x20%0',o(_0x422369,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344bb8['oldValue']+')'};}}}}class yt extends _0x15a662{['afterInit'](){const _0x8ecec8=this['editor'];if(!_0x8ecec8['plugins']['has']('PageBreakEditing'))return;_0x8ecec8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa0bfdf=_0x8ecec8['plugins']['get']('TrackChangesEditing'),_0x57b833=_0x8ecec8['locale'];_0xa0bfdf['descriptionFactory']['registerElementLabel']('pageBreak',_0x530a20=>o(_0x57b833,'ELEMENT_PAGE_BREAK',_0x530a20));}}class St extends _0x15a662{['afterInit'](){const _0x34e30d=this['editor'];if(!_0x34e30d['plugins']['has']('Paragraph'))return;const _0x511996=_0x34e30d['locale'],_0x9addcf=_0x34e30d['plugins']['get']('TrackChangesEditing');_0x9addcf['descriptionFactory']['registerElementLabel']('paragraph',_0x46eead=>o(_0x511996,'ELEMENT_PARAGRAPH',_0x46eead)),_0x9addcf['enableDefaultAttributesIntegration']('paragraph'),_0x9addcf['enableCommand']('insertParagraph'),_0x34e30d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x34e30d),{'priority':'highest'}),_0x34e30d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18cb8f,_0x2cdd9f,_0x251878)=>{_0x251878['options']['showSuggestionHighlights']&&nr(_0x34e30d,{'showActiveMarker':!0x1})(_0x18cb8f,_0x2cdd9f,_0x251878);},{'priority':'highest'});const _0x3588cd=_0x9addcf['descriptionFactory'];_0x3588cd['registerDescriptionCallback'](_0x107bf9=>{if('insertion'!==_0x107bf9['type'])return;const {start:_0x52d49a,end:_0x45c34f}=_0x107bf9['getFirstRange']();if(!_0x52d49a['isTouching'](_0x45c34f)||!_0x52d49a['nodeAfter'])return;const _0x374e7a=_0x34e30d['model']['schema'],_0x5df884=_0x52d49a['nodeAfter'];return _0x374e7a['isBlock'](_0x5df884)&&!_0x374e7a['isLimit'](_0x5df884)&&_0x374e7a['checkChild'](_0x5df884,'$text')?{'type':'insertion','content':o(_0x511996,'*Insert:*\x20%0',_0x3588cd['getItemLabel'](_0x5df884,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xef3cd2=this['editor'],_0x4ef560=_0xef3cd2['locale'];_0xef3cd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ae709=>{if('formatBlock'!=_0x5ae709['type'])return;const {data:_0x2cb702}=_0x5ae709;return _0x2cb702&&'paragraph'==_0x2cb702['commandName']?{'type':'format','content':o(_0x4ef560,'*Change\x20to:*\x20%0',o(_0x4ef560,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x37bd24,{showActiveMarker:_0x3fbe47=!0x0}={}){return(_0x272060,_0x1c0d14,_0x4553e4)=>{const _0x104e92=_0x37bd24['plugins']['get']('TrackChangesEditing'),_0x3097f6=_0x1c0d14['markerRange']['start'],_0x4a63fc=_0x1c0d14['markerRange']['end'],_0x4ac36b=_0x37bd24['model']['schema'];if(!_0x3097f6['isTouching'](_0x4a63fc)||!_0x3097f6['nodeAfter'])return;const _0x3cfe8d=_0x3097f6['nodeAfter'];if(_0x4ac36b['isBlock'](_0x3cfe8d)&&!_0x4ac36b['isLimit'](_0x3cfe8d)&&_0x4ac36b['checkChild'](_0x3cfe8d,'$text')){if(!_0x4553e4['consumable']['consume'](_0x1c0d14['markerRange'],_0x272060['name']))return;const {id:_0x51836e,authorId:_0x13875a}=_0x104e92['_splitMarkerName'](_0x1c0d14['markerName']),_0x54a1a8=_0x4553e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51836e,'data-author-id':_0x13875a}),_0x1b7344=_0x4553e4['mapper']['toViewPosition'](_0x4a63fc);_0x3fbe47&&_0x104e92['activeMarkers']['includes'](_0x1c0d14['markerName'])&&_0x4553e4['writer']['addClass']('ck-suggestion-marker--active',_0x54a1a8),_0x4553e4['writer']['insert'](_0x1b7344,_0x54a1a8),_0x4553e4['mapper']['bindElementToMarker'](_0x54a1a8,_0x1c0d14['markerName']);}};}class jt extends _0x15a662{['afterInit'](){const _0x28b80d=this['editor'];_0x28b80d['commands']['get']('replaceSource')&&_0x28b80d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x15a662{['afterInit'](){const _0x1b1c97=this['editor'];if(!_0x1b1c97['plugins']['has']('RemoveFormatEditing'))return;_0x1b1c97['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40512b=this['editor'];_0x40512b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33c409=>{if('formatBlock'!=_0x33c409['type']&&'formatInline'!=_0x33c409['type'])return;const {data:_0x3b51da}=_0x33c409;return _0x3b51da&&'removeFormat'==_0x3b51da['commandName']?{'type':'format','content':o(_0x40512b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x15a662{['afterInit'](){const _0x26e00f=this['editor'];if(!_0x26e00f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4a4704=_0x26e00f['plugins']['get']('TrackChangesEditing');_0x4a4704['enableCommand']('goToPreviousRestrictedEditingException'),_0x4a4704['enableCommand']('goToNextRestrictedEditingException');const _0x2962ac=_0x26e00f['plugins']['get']('RestrictedEditingModeEditing');_0x2962ac['enableCommand']('trackChanges'),_0x2962ac['enableCommand']('acceptSuggestion'),_0x2962ac['enableCommand']('discardSuggestion'),_0x2962ac['enableCommand']('acceptAllSuggestions'),_0x2962ac['enableCommand']('discardAllSuggestions'),_0x2962ac['enableCommand']('acceptSelectedSuggestions'),_0x2962ac['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x15a662{['afterInit'](){const _0x361d88=this['editor'];if(!_0x361d88['plugins']['has']('ShiftEnter'))return;const _0x4522a9=_0x361d88['plugins']['get']('TrackChangesEditing');_0x4522a9['enableCommand']('shiftEnter'),_0x361d88['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x361d88),{'priority':'high'}),_0x361d88['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x361d88),{'priority':'high'}),_0x361d88['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e4527,_0x36bb7f,_0x568024)=>{_0x568024['options']['showSuggestionHighlights']&&Ee(_0x361d88,{'showActiveMarker':!0x1})(_0x1e4527,_0x36bb7f,_0x568024);}),_0x4522a9['descriptionFactory']['registerElementLabel']('softBreak',_0x4aab9c=>o(_0x361d88['locale'],'ELEMENT_LINE_BREAK',_0x4aab9c));}}function Ee(_0x21fcc8,{showActiveMarker:_0x2d74ef=!0x0}={}){return(_0x642d6d,_0x3408cb,_0x10657a)=>{const _0x908661=_0x21fcc8['plugins']['get']('TrackChangesEditing');if(!_0x10657a['consumable']['test'](_0x3408cb['markerRange'],_0x642d6d['name']))return;const _0x5a6a27=_0x21fcc8['model'];for(const _0x4707c9 of _0x3408cb['markerRange']['getItems']()){if(!_0x4707c9['is']('element','softBreak'))continue;const _0x298bf8='deletion'==_0x3408cb['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x511c9b,authorId:_0x5aaf7d}=_0x908661['_splitMarkerName'](_0x3408cb['markerName']),_0x2aa598=_0x10657a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x298bf8,'data-suggestion':_0x511c9b,'data-author-id':_0x5aaf7d}),_0x2dbfa6=_0x10657a['mapper']['toViewPosition'](_0x5a6a27['createPositionBefore'](_0x4707c9));_0x2d74ef&&_0x908661['activeMarkers']['includes'](_0x3408cb['markerName'])&&_0x10657a['writer']['addClass']('ck-suggestion-marker--active',_0x2aa598),_0x10657a['writer']['insert'](_0x2dbfa6,_0x2aa598),_0x10657a['mapper']['bindElementToMarker'](_0x2aa598,_0x3408cb['markerName']);}};}class vt extends _0x15a662{['afterInit'](){const _0x2df3ce=this['editor'],_0x34d739=_0x2df3ce['model'],_0x4d2591=_0x2df3ce['locale'];if(!_0x2df3ce['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d7b68=_0x2df3ce['plugins']['get']('TrackChangesEditing'),_0x58651b='restrictedEditingException',_0x35e6da=_0x2df3ce['commands']['get'](_0x58651b);_0x5d7b68['enableCommand'](_0x58651b,(_0x524b99,_0x58e316={})=>{const _0x21bb17=_0x34d739['document']['selection'];if(_0x21bb17['isCollapsed'])return void _0x524b99(_0x58e316);const _0x2c7b74=void 0x0!==_0x58e316['forceValue']?_0x58e316['forceValue']:!_0x35e6da['value'];_0x34d739['change'](()=>{const _0x4376f5=Array['from'](_0x21bb17['getRanges']());for(const _0x4f45c3 of _0x4376f5){const _0x657e3d=_0x2c7b74?[_0x4f45c3]:io(_0x58651b,_0x4f45c3,_0x34d739);for(const _0x17f1a3 of _0x657e3d)_0x5d7b68['markInlineFormat'](_0x17f1a3,{'commandName':_0x58651b,'commandParams':[{'forceValue':_0x2c7b74}]});}});}),_0x5d7b68['descriptionFactory']['registerDescriptionCallback'](_0x2c16b7=>{if('formatBlock'!=_0x2c16b7['type']&&'formatInline'!=_0x2c16b7['type'])return;const {data:_0x2c4c0e}=_0x2c16b7;return _0x2c4c0e&&_0x2c4c0e['commandName']==_0x58651b?_0x2c4c0e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d2591,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4d2591,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x15a662{['afterInit'](){const _0x439c2b=this['editor'];if(!_0x439c2b['plugins']['has']('Style')||!_0x439c2b['plugins']['has']('DataSchema'))return;const _0x38d769=_0x439c2b['plugins']['get']('TrackChangesEditing'),_0x102527=_0x439c2b['locale'],_0x7c18da=_0x439c2b['config']['get']('style')||{},_0x29cabc=_0x439c2b['plugins']['get']('GeneralHtmlSupport'),_0x5444d2=_0x439c2b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x439c2b['plugins']['get']('DataSchema'),_0x7c18da['definitions']);_0x38d769['enableDefaultAttributesIntegration']('style');const _0x2fc94d=new Set();for(const _0x5e7ac8 of _0x5444d2['block']){const _0x46ea2a=_0x29cabc['getGhsAttributeNameForElement'](_0x5e7ac8['element']);_0x2fc94d['add'](_0x46ea2a);}const _0x8834c8=new Set();for(const _0x1facc1 of _0x5444d2['inline']){const _0x49b6bd=_0x29cabc['getGhsAttributeNameForElement'](_0x1facc1['element']);_0x8834c8['add'](_0x49b6bd);for(const _0x3b9d11 of _0x1facc1['ghsAttributes'])_0x8834c8['add'](_0x3b9d11);}for(const _0x1c187b of _0x2fc94d)_0x38d769['registerBlockAttribute'](_0x1c187b),_0x38d769['descriptionFactory']['registerAttributeLabel'](_0x1c187b,o(_0x102527,'FORMAT_STYLE'));for(const _0x3a6669 of _0x8834c8)_0x38d769['registerInlineAttribute'](_0x3a6669),_0x38d769['descriptionFactory']['registerAttributeLabel'](_0x3a6669,o(_0x102527,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32ef32=this['editor'],_0xe1ab5c=_0x32ef32['locale'];_0x32ef32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x220309=>{if('formatBlock'!=_0x220309['type']&&'formatInline'!=_0x220309['type'])return;const {data:_0x586a27}=_0x220309;return _0x586a27&&'style'===_0x586a27['commandName']?_0x586a27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe1ab5c,'*Set\x20format:*\x20%0',_0x586a27['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xe1ab5c,'*Remove\x20format:*\x20%0',_0x586a27['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x15a662{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3db885){super(_0x3db885),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x13ce93=this['editor'],_0x432fcd=_0x13ce93['model']['document']['selection'];if(!_0x13ce93['plugins']['has']('TableEditing'))return;const _0x730154=_0x13ce93['locale'],_0x46dfbe=_0x13ce93['plugins']['get']('TrackChangesEditing'),_0x120285=_0x13ce93['plugins']['get']('TableUtils');_0x46dfbe['descriptionFactory']['registerElementLabel']('table',_0x2114bf=>o(_0x730154,'ELEMENT_TABLE',_0x2114bf)),this['_setupColumnsRowsFixing'](),_0x46dfbe['enableCommand']('insertTable'),_0x46dfbe['enableCommand']('selectTableRow'),_0x46dfbe['enableCommand']('selectTableColumn');for(const _0x298d06 of['insertTableRowAbove','insertTableRowBelow']){const _0x659d57=_0x13ce93['commands']['get'](_0x298d06);_0x46dfbe['enableCommand'](_0x298d06,_0x4e71b4=>{_0x13ce93['model']['change'](_0x44aa94=>{_0x4e71b4();const _0x11562='above'===_0x659d57['order'],_0x86ed6d=_0x120285['getSelectionAffectedTableCells'](_0x432fcd),_0x487f62=_0x120285['getRowIndexes'](_0x86ed6d),_0x1a3c4d=_0x11562?_0x487f62['first']-0x1:_0x487f62['last']+0x1,_0x3fcdee=_0x86ed6d[0x0]['findAncestor']('table'),_0x147c74=_0x120285['createTableWalker'](_0x3fcdee,{'startRow':_0x1a3c4d,'endRow':_0x1a3c4d}),_0x4aa3a4=Array['from'](_0x147c74)['map'](_0x13c4ad=>_0x44aa94['createRangeOn'](_0x13c4ad['cell']));_0x46dfbe['markMultiRangeInsertion'](_0x4aa3a4,'tableRow');});});}for(const _0x13c5d0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x214d8f=_0x13ce93['commands']['get'](_0x13c5d0);_0x46dfbe['enableCommand'](_0x13c5d0,_0x31e889=>{_0x13ce93['model']['change'](_0x4fda63=>{_0x31e889();const _0x5c33bd='left'===_0x214d8f['order'],_0x4ed62f=_0x120285['getSelectionAffectedTableCells'](_0x432fcd),_0x926538=_0x120285['getColumnIndexes'](_0x4ed62f),_0x452f97=_0x5c33bd?_0x926538['first']-0x1:_0x926538['last']+0x1,_0x17376a=_0x4ed62f[0x0]['findAncestor']('table'),_0x529518=_0x120285['createTableWalker'](_0x17376a,{'startRow':0x0,'column':_0x452f97,'includeAllSlots':!0x1}),_0x8d9fe4=Array['from'](_0x529518)['map'](_0x1bfad4=>_0x4fda63['createRangeOn'](_0x1bfad4['cell']));_0x46dfbe['markMultiRangeInsertion'](_0x8d9fe4,'tableColumn');});});}for(const _0x512676 of['removeTableRow','removeTableColumn']){const _0x516145=_0x512676['substr'](0xb),_0x103657=_0x516145['toLowerCase'](),_0x3893f4=_0x103657['substr'](0x0,0x3)+'span',_0x2dd01b='table'+_0x516145,_0x235f49='min'+_0x516145,_0x4386e4='max'+_0x516145;_0x46dfbe['enableCommand'](_0x512676,()=>{_0x13ce93['model']['change'](_0x21e0e6=>{const _0x1fca6c=_0x120285['getSelectionAffectedTableCells'](_0x432fcd),_0x2906a9=_0x1fca6c[0x0]['findAncestor']('table');let _0x91241f;if('removeTableRow'==_0x512676){const _0x56196f=_0x120285['getRowIndexes'](_0x1fca6c);_0x91241f={'startRow':_0x56196f['first'],'endRow':_0x56196f['last'],'includeAllSlots':!0x0};}else{const _0x126a9d=_0x120285['getColumnIndexes'](_0x1fca6c);_0x91241f={'startColumn':_0x126a9d['first'],'endColumn':_0x126a9d['last'],'includeAllSlots':!0x0};}const _0xc3d7db=_0x120285['createTableWalker'](_0x2906a9,_0x91241f),_0x401abe=Array['from'](_0xc3d7db)['map'](({cell:_0x28a3a0})=>_0x28a3a0),_0x148de4=We(_0x401abe['filter'](_0x2d63e7=>_0x2d63e7['hasAttribute'](_0x3893f4))),_0x16b805=We(_0x401abe['filter'](_0x4ee27e=>!_0x4ee27e['hasAttribute'](_0x3893f4)))['map'](_0x519c63=>_0x21e0e6['createRangeOn'](_0x519c63)),_0x252c1a=_0x46dfbe['markMultiRangeDeletion'](_0x16b805,_0x2dd01b);if(_0x252c1a&&('tableRow'==_0x252c1a['subType']||'tableColumn'==_0x252c1a['subType'])){const _0x182350=this['_getSuggestionCoords'](_0x252c1a);for(const _0x25839b of _0x148de4){const _0x29dc4d=_0x21e0e6['createRangeOn'](_0x25839b),_0x387792=_0x120285['getCellLocation'](_0x25839b),_0x9c63df=_0x25839b['getAttribute'](_0x3893f4)-0x1,_0x190ead=_0x182350[_0x235f49],_0xa66a85=_0x182350[_0x4386e4];_0x190ead<=_0x387792[_0x103657]&&_0x387792[_0x103657]+_0x9c63df<=_0xa66a85&&_0x252c1a['addRange'](_0x29dc4d);}}});});}function _0x27ca76(_0x346ff5){const _0x1902a9=Array['from'](_0x432fcd['getRanges']())['map'](_0x2afcf8=>_0x5a166f['fromRange'](_0x2afcf8));_0x13ce93['model']['change'](_0x3b0f4d=>{const _0x468ce1=_0x3b0f4d['batch'];_0x346ff5=_0x346ff5['filter'](_0x1208fd=>'$graveyard'!=_0x1208fd['root']['rootName']),_0x3b0f4d['setSelection'](_0x346ff5),_0x13ce93['commands']['get']('removeTableRow')['refresh'](),_0x13ce93['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x13ce93['model']['enqueueChange'](()=>{_0x13ce93['model']['enqueueChange'](_0x468ce1,_0x34c174=>{const _0x4aba42=_0x1902a9['filter'](_0x3ba054=>'$graveyard'!=_0x3ba054['root']['rootName']);_0x4aba42['length']>0x0&&_0x34c174['setSelection'](_0x4aba42);for(const _0x2e54b2 of _0x1902a9)_0x2e54b2['detach']();});});});}function _0x2b4563(_0x4f58e4){_0x13ce93['model']['change'](_0x41ebd4=>{const _0x5391a5=Array['from'](_0x432fcd['getRanges']())['map'](_0x2b600f=>_0x5a166f['fromRange'](_0x2b600f)),_0x3f0755=[];for(const _0x26ca3f of _0x4f58e4)for(const _0x28a757 of _0x26ca3f['getItems']({'shallow':!0x0}))_0x3f0755['push'](_0x28a757);for(const _0x4bf4af of _0x3f0755)'$graveyard'!=_0x4bf4af['root']['rootName']&&(_0x41ebd4['setSelection'](_0x41ebd4['createPositionAt'](_0x4bf4af,0x0)),_0x13ce93['commands']['get']('removeTableColumn')['refresh'](),_0x13ce93['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3a4cec=_0x5391a5['filter'](_0x5c9235=>'$graveyard'!=_0x5c9235['root']['rootName']);_0x3a4cec['length']>0x0&&_0x41ebd4['setSelection'](_0x3a4cec);for(const _0x57a95f of _0x5391a5)_0x57a95f['detach']();});}function _0x12fc2d(_0x647d06,_0x4a05cb){return _0x4a05cb['every'](_0x4b8690=>_0x647d06['some'](_0x4eac6c=>_0x4eac6c['end']['isEqual'](_0x4b8690['start'])||_0x4b8690['end']['isEqual'](_0x4eac6c['start'])));}function _0x3e6c98(_0x450d64,_0x44a3d2){return!_0x450d64['some'](_0x1d382b=>_0x44a3d2['some'](_0x50c5d4=>_0x1d382b['isIntersecting'](_0x50c5d4)))&&_0x450d64['some'](_0x330740=>_0x44a3d2['some'](_0x3be9c4=>_0x330740['end']['isTouching'](_0x3be9c4['start'])));}_0x13ce93['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c15f0,_0x11d25a,_0x44ac05)=>{if(!_0x44ac05['options']['showSuggestionHighlights'])return;const _0x24c778=_0x11d25a['item'];if(!_0x24c778||!_0x24c778['is']('element','tableCell'))return;const _0x189976=_0x44ac05['mapper']['toViewElement'](_0x24c778);if(_0x189976){const {id:_0x231258,authorId:_0x46a5c0}=_0x46dfbe['_splitMarkerName'](_0x11d25a['markerName']);_0x2ba6ba(_0x189976,_0x44ac05['writer'],(_0x11a6c4,_0x5bb6c5,_0x4956d6)=>{_0x4956d6['addClass'](_0x56e3db(_0x5bb6c5['classes']),_0x11a6c4),_0x4956d6['setAttribute']('data-suggestion-id',_0x231258,_0x11a6c4),_0x4956d6['setAttribute']('data-author-id',_0x46a5c0,_0x11a6c4);},(_0x2546f0,_0x16ac46,_0x48d4bd)=>{_0x48d4bd['removeClass'](_0x56e3db(_0x16ac46['classes']),_0x2546f0),_0x48d4bd['removeAttribute']('data-suggestion-id',_0x2546f0),_0x48d4bd['removeAttribute']('data-author-id',_0x2546f0);});}},{'priority':'highest'}),_0x46dfbe['descriptionFactory']['registerDescriptionCallback'](_0x39cce6=>{if('insertion'!=_0x39cce6['type']&&'deletion'!=_0x39cce6['type'])return;const _0x13d6e0=_0x39cce6['getContainedElement']();if(null!=_0x13d6e0&&_0x13d6e0['is']('element','table')){if('insertion'==_0x39cce6['type']){const _0x15066c=_0x39cce6['getItems']()['filter'](_0x620825=>_0x620825['is']('$textProxy'))['map'](_0x3b5e78=>_0x3b5e78['data']);if(_0x15066c['length'])return{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15066c['join']('\x20')+'\x22'))};}if('deletion'==_0x39cce6['type']){const _0x591056=_0x39cce6['getItems']()['filter'](_0x5e178b=>_0x5e178b['is']('$textProxy'))['map'](_0x6681a5=>_0x6681a5['data']);if(_0x591056['length'])return{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x591056['join']('\x20')+'\x22'))};}}}),_0x46dfbe['descriptionFactory']['registerDescriptionCallback'](_0x1baa4f=>{if('tableRow'==_0x1baa4f['subType']){const _0x206528=_0x1baa4f['getItems']()['filter'](_0x2a6d14=>_0x2a6d14['is']('$textProxy'))['map'](_0x1b0430=>_0x1b0430['data']),_0x315fa4=this['_getSuggestionCoords'](_0x1baa4f),_0xfa9554=_0x315fa4['maxRow']-_0x315fa4['minRow']+0x1;if('insertion'==_0x1baa4f['type'])return _0x206528['length']?{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfa9554,'\x22'+_0x206528['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW',_0xfa9554))};if('deletion'==_0x1baa4f['type'])return _0x206528['length']?{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfa9554,'\x22'+_0x206528['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW',_0xfa9554))};}if('tableColumn'==_0x1baa4f['subType']){const _0x116794=_0x1baa4f['getItems']()['filter'](_0x10007f=>_0x10007f['is']('$textProxy'))['map'](_0x21b25f=>_0x21b25f['data']),_0x3d6397=this['_getSuggestionCoords'](_0x1baa4f),_0x31cff8=_0x3d6397['maxColumn']-_0x3d6397['minColumn']+0x1;if('insertion'==_0x1baa4f['type'])return _0x116794['length']?{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31cff8,'\x22'+_0x116794['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN',_0x31cff8))};if('deletion'==_0x1baa4f['type'])return _0x116794['length']?{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31cff8,'\x22'+_0x116794['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN',_0x31cff8))};}}),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27ca76),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27ca76),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2b4563),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2b4563),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x12fc2d),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x12fc2d),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3e6c98),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3e6c98);}['_acceptFormatSuggestionCallbackFactory'](){const _0x19656f=this['editor'],_0x205734=_0x19656f['model']['document']['selection'];return(_0x2e5d90,_0x4ccc2b)=>{_0x19656f['model']['change'](_0x320064=>{const {commandName:_0x20106f,commandParams:_0x37c127}=_0x4ccc2b;let _0x3b7901=_0x2e5d90[0x0]['end']['nodeBefore'];_0x37c127&&_0x37c127[0x0]&&!0x1===_0x37c127[0x0]['forceValue']&&(_0x3b7901=_0x2e5d90[0x0]['start']['nodeAfter']);const _0x4429c6=_0x320064['createRangeIn'](_0x3b7901);if('$graveyard'==_0x4429c6['root']['rootName'])return;const _0x113a37=Array['from'](_0x205734['getRanges']())['map'](_0x5977bd=>_0x5a166f['fromRange'](_0x5977bd));_0x320064['setSelection'](_0x4429c6),_0x19656f['commands']['get'](_0x20106f)['refresh'](),_0x37c127['push']({'forceDefaultExecution':!0x0}),_0x19656f['execute'](_0x20106f,..._0x37c127);const _0x3f38ab=_0x113a37['filter'](_0x4aa9b8=>'$graveyard'!=_0x4aa9b8['root']['rootName']);_0x3f38ab['length']>0x0&&_0x320064['setSelection'](_0x3f38ab);for(const _0x31a7ce of _0x113a37)_0x31a7ce['detach']();});};}['_getCoordsForCells'](_0x99d4b){const _0x4217a5=this['editor']['plugins']['get']('TableUtils');let _0x4e8e78=Number['MAX_SAFE_INTEGER'],_0x4ab746=Number['MIN_SAFE_INTEGER'],_0x13d61b=Number['MAX_SAFE_INTEGER'],_0x1b28b3=Number['MIN_SAFE_INTEGER'];for(const _0x2b68f9 of _0x99d4b){if('$graveyard'==_0x2b68f9['root']['rootName'])continue;const {row:_0x176307,column:_0x572bb2}=_0x4217a5['getCellLocation'](_0x2b68f9),_0x1a0493=_0x2b68f9['hasAttribute']('rowspan')?_0x2b68f9['getAttribute']('rowspan')-0x1:0x0,_0x3aa7e6=_0x2b68f9['hasAttribute']('colspan')?_0x2b68f9['getAttribute']('colspan')-0x1:0x0;_0x4e8e78=_0x176307<_0x4e8e78?_0x176307:_0x4e8e78,_0x4ab746=_0x176307+_0x1a0493>_0x4ab746?_0x176307+_0x1a0493:_0x4ab746,_0x13d61b=_0x572bb2<_0x13d61b?_0x572bb2:_0x13d61b,_0x1b28b3=_0x572bb2+_0x3aa7e6>_0x1b28b3?_0x572bb2+_0x3aa7e6:_0x1b28b3;}return{'minRow':_0x4e8e78,'maxRow':_0x4ab746,'minColumn':_0x13d61b,'maxColumn':_0x1b28b3};}['_setupColumnsRowsFixing'](){const _0x255d0e=this['editor'],_0x43a79a=_0x255d0e['plugins']['get']('TrackChangesEditing'),_0x3e5c96=_0x255d0e['plugins']['get']('TableUtils');_0x255d0e['model']['document']['on']('change:data',()=>{const _0x395aeb=Array['from'](_0x255d0e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1572ce,data:_0x5da950}of _0x395aeb){const {group:_0x983807,id:_0x3f02d0,subType:_0x30fc2c}=_0x43a79a['_splitMarkerName'](_0x1572ce);if('suggestion'!=_0x983807)continue;if(null!=_0x5da950['oldRange'])continue;const _0x5cfb10=_0x43a79a['getSuggestion'](_0x3f02d0);this['_tablePostFixingSubtypes']['includes'](_0x30fc2c)&&this['_tableSuggestions']['add'](_0x5cfb10);}},{'priority':'low'});const _0x1f415f=(_0x1d9d6a,_0x33492b)=>{let _0x538a50=!0x1;const _0x48fa72=_0x33492b['createRangeOn'](_0x1d9d6a),_0x1019bb=_0x1d9d6a['findAncestor']('table'),_0x449e7b=_0x3e5c96['getCellLocation'](_0x1d9d6a);for(const _0x2e78a3 of this['_tableSuggestions']){const _0x4d9260=_0x2e78a3['subType'],_0x590bf4=_0x4d9260['startsWith']('tablePaste'),_0x4450e4=_0x4d9260['substr'](_0x590bf4?0xa:0x5),_0x466018=_0x4450e4['toLowerCase'](),_0x315fdf=_0x466018['substr'](0x0,0x3)+'span',_0x2b6128='min'+_0x4450e4,_0x431716='max'+_0x4450e4;if(!_0x2e78a3['isInContent'])continue;if(_0x1019bb!=_0x2e78a3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2e78a3['isIntersectingWithRange'](_0x48fa72))continue;const _0x18da61=_0x1d9d6a['hasAttribute'](_0x315fdf)?_0x1d9d6a['getAttribute'](_0x315fdf)-0x1:0x0,_0x1b8e48=this['_getSuggestionCoords'](_0x2e78a3),_0x2e620e=_0x1b8e48[_0x2b6128],_0x2c31cd=_0x1b8e48[_0x431716];_0x2e620e<=_0x449e7b[_0x466018]&&_0x449e7b[_0x466018]+_0x18da61<=_0x2c31cd&&(_0x2e78a3['addRange'](_0x48fa72),_0x538a50=!0x0);}return _0x538a50;};_0x255d0e['model']['document']['registerPostFixer'](_0xe5d295=>{let _0x3ac546=!0x1;for(const _0x182cb0 of _0x255d0e['model']['document']['differ']['getChanges']())if('insert'==_0x182cb0['type']){if('tableRow'==_0x182cb0['name']){for(const _0x16ee5b of _0x182cb0['position']['nodeAfter']['getChildren']())_0x3ac546=_0x3ac546||_0x1f415f(_0x16ee5b,_0xe5d295);}else'tableCell'==_0x182cb0['name']&&(_0x3ac546=_0x3ac546||_0x1f415f(_0x182cb0['position']['nodeAfter'],_0xe5d295));}return _0x3ac546;});}['_getSuggestionCoords'](_0x494f9c){return this['_getCoordsForCells'](_0x494f9c['getRanges']()['map'](_0x1699db=>_0x1699db['start']['nodeAfter']));}}function We(_0x5f3313){return Array['from'](new Set(_0x5f3313)['values']());}class Nt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0x5a8b04=this['editor'],_0x3a2932=_0x5a8b04['model']['document']['selection'],_0x3fd4aa=_0x5a8b04['locale'];if(!_0x5a8b04['plugins']['has']('TableEditing'))return;const _0x3bc753=_0x5a8b04['plugins']['get']('TrackChangesEditing'),_0x197d00=_0x5a8b04['plugins']['get']('TableUtils'),_0x317084=_0x5a8b04['plugins']['get']($t);_0x317084['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3bc753['enableCommand']('mergeTableCells',()=>{const _0x442908=_0x197d00['getSelectionAffectedTableCells'](_0x5a8b04['model']['document']['selection']);_0x5a8b04['model']['change'](()=>{_0x3bc753['markMultiRangeBlockFormat'](_0x442908,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a8b04['commands']['get']('mergeTableCells')['on']('execute',(_0x3cbf2f,_0x34bd2c)=>{_0x5a8b04['commands']['get']('trackChanges')['value']&&(_0x34bd2c['length']>0x0&&_0x34bd2c[_0x34bd2c['length']-0x1]&&_0x34bd2c[_0x34bd2c['length']-0x1]['forceDefaultExecution']||_0x3bc753['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3cbf2f['stop']());},{'priority':'highest'});for(const _0x53d398 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4af431=_0x5a8b04['commands']['get'](_0x53d398);_0x3bc753['enableCommand'](_0x53d398,()=>{const _0x25dcb5=_0x5a8b04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ace0e=>_0x1ace0e['is']('element','tableCell')),_0x38f1ba=_0x4af431['value'];_0x5a8b04['model']['change'](()=>{_0x3bc753['markMultiRangeBlockFormat']([_0x25dcb5,_0x38f1ba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2ee3d1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x152e2b=_0x5a8b04['commands']['get'](_0x2ee3d1);_0x3bc753['enableCommand'](_0x2ee3d1,()=>{const _0x3e9106=_0x197d00['getSelectionAffectedTableCells'](_0x5a8b04['model']['document']['selection'])[0x0],_0x403b3a=_0x3e9106['findAncestor']('table'),{column:_0x29f153,row:_0x46208e}=_0x197d00['getCellLocation'](_0x3e9106);let _0x413be1=[];if('horizontally'==_0x152e2b['direction']){const _0x201d01=_0x197d00['createTableWalker'](_0x403b3a,{'startRow':_0x46208e,'endRow':_0x46208e,'includeAllSlots':!0x0});_0x413be1=Array['from'](_0x201d01)['map'](_0x204cbe=>_0x204cbe['cell']);}else{const _0x1f1e2b=_0x197d00['createTableWalker'](_0x403b3a,{'column':_0x29f153,'includeAllSlots':!0x0});_0x413be1=Array['from'](_0x1f1e2b)['map'](_0xc5c2f=>_0xc5c2f['cell']);}_0x5a8b04['model']['change'](_0x2d477b=>{_0x3bc753['markBlockFormat'](_0x2d477b['createRangeOn'](_0x3e9106),{'commandName':_0x2ee3d1,'commandParams':[]},_0x413be1,_0x2ee3d1);});});}_0x3bc753['descriptionFactory']['registerDescriptionCallback'](_0x98c288=>{if('formatBlock'!=_0x98c288['type']&&'formatInline'!=_0x98c288['type'])return;const {data:_0x3b6f02}=_0x98c288;return _0x3b6f02&&'mergeTableCells'==_0x3b6f02['commandName']?{'type':'format','content':o(_0x3fd4aa,'*Merge\x20cells*')}:void 0x0;}),_0x3bc753['descriptionFactory']['registerDescriptionCallback'](_0x3471ee=>{if('formatBlock'!=_0x3471ee['type']&&'formatInline'!=_0x3471ee['type'])return;const {data:_0xbb8458}=_0x3471ee;return _0xbb8458?'splitTableCellVertically'==_0xbb8458['commandName']?{'type':'format','content':o(_0x3fd4aa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xbb8458['commandName']?{'type':'format','content':o(_0x3fd4aa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d19f4=_0x317084['_acceptFormatSuggestionCallbackFactory']();for(const _0x65807d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3bc753['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x65807d,'accept',_0x5d19f4);for(const _0x3f7f6f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3bc753['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f7f6f,'accept',_0x5d19f4);_0x3bc753['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x155a45=>{_0x5a8b04['model']['change'](_0xa03cf9=>{const _0x109bef=Array['from'](_0x3a2932['getRanges']())['map'](_0x21229f=>_0x5a166f['fromRange'](_0x21229f));_0xa03cf9['setSelection'](_0x155a45),_0x5a8b04['commands']['get']('mergeTableCells')['refresh'](),_0x5a8b04['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e081b=_0x109bef['filter'](_0x5e1e61=>'$graveyard'!=_0x5e1e61['root']['rootName']);_0x4e081b['length']>0x0&&_0xa03cf9['setSelection'](_0x4e081b);for(const _0x5adb5f of _0x109bef)_0x5adb5f['detach']();});});for(const _0x42679e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37011c=_0x5a8b04['commands']['get'](_0x42679e);_0x37011c['on']('set:isEnabled',(_0x208fca,_0x4b9e62,_0x564def)=>{if(_0x564def){const _0x217862=_0x5a8b04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x116b02=>_0x116b02['is']('element','tableCell'));this['_areMergableCells'](_0x37011c['value'],_0x217862)||(_0x208fca['return']=!0x1,_0x208fca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4fe9fd=this['editor']['commands']['get']('mergeTableCells'),_0x191728=this['editor']['plugins']['get']('TableUtils');if(!_0x4fe9fd['isEnabled'])return!0x1;const _0x5a4ca6=_0x191728['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c72ca of _0x5a4ca6)for(const _0x5cc536 of _0x5a4ca6)if(_0x3c72ca!=_0x5cc536&&!this['_areMergableCells'](_0x3c72ca,_0x5cc536))return!0x1;return!0x0;}['_areMergableCells'](_0x3d9105,_0x196ad2){const _0x3170b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345fd4=this['editor']['model']['createRangeOn'](_0x3d9105),_0x3e8fab=this['editor']['model']['createRangeOn'](_0x196ad2),_0x321fba=new Set(),_0x47b9c7=new Set();for(const _0x374385 of _0x3170b7['getSuggestions']())if(('insertion'==_0x374385['type']||'deletion'==_0x374385['type']||'mergeTableCells'==_0x374385['subType'])&&_0x374385['isInContent']){for(const _0x29e98b of _0x374385['getRanges']())_0x29e98b['containsRange'](_0x345fd4,!0x0)&&_0x321fba['add'](_0x374385['type']+':'+_0x374385['author']['id']),_0x29e98b['containsRange'](_0x3e8fab,!0x0)&&_0x47b9c7['add'](_0x374385['type']+':'+_0x374385['author']['id']);}if(_0x321fba['size']!=_0x47b9c7['size'])return!0x1;for(const _0x393d26 of _0x321fba)if(!_0x47b9c7['has'](_0x393d26))return!0x1;return!0x0;}}class Dt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0x3c3c7d=this['editor'];if(!_0x3c3c7d['plugins']['has']('TableEditing'))return;const _0x58298a=_0x3c3c7d['locale'],_0x1cca25=_0x3c3c7d['plugins']['get']('TrackChangesEditing');_0x1cca25['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1cca25['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1cca25['registerBlockAttribute']('headingRows'),_0x1cca25['registerBlockAttribute']('headingColumns'),_0x1cca25['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x58298a,'FORMAT_HEADER_ROW')),_0x1cca25['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x58298a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x239754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x611dfb=this['editor']['plugins']['get']('TableUtils'),_0x2f25f1=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x3c75cd({showActiveMarker:_0x283648=!0x0,setDataAttribute:_0x5c6ffe=!0x0}={}){return(_0x388d2b,_0x3d16e0,_0x42cd6e)=>{const {type:_0x34f7c5,id:_0x49112f}=_0x239754['_splitMarkerName'](_0x3d16e0['markerName']);if(!_0x239754['hasSuggestion'](_0x49112f))return;const _0x3a93fe=_0x239754['getSuggestion'](_0x49112f),_0x57b0b3=_0x3a93fe['data'];if('formatBlock'!=_0x3a93fe['type']||!_0x57b0b3||'setTableColumnHeader'!=_0x57b0b3['commandName'])return;if(_0x3d16e0['item'])return void _0x388d2b['stop']();if(!_0x42cd6e['consumable']['consume'](_0x3d16e0['markerRange'],_0x388d2b['name']))return;const _0x3544bc=_0x3d16e0['markerRange']['start']['nodeAfter'],_0x952e99=_0x3d16e0['markerRange']['end']['nodeBefore'],_0x1e7416=_0x3544bc['parent']['parent'],{column:_0x42f4e5}=_0x611dfb['getCellLocation'](_0x3544bc),{column:_0x463293}=_0x611dfb['getCellLocation'](_0x952e99);for(let _0x5e7ab5=_0x42f4e5;_0x5e7ab5<=_0x463293;_0x5e7ab5++){const _0x7abd95=_0x611dfb['createTableWalker'](_0x1e7416,{'column':_0x5e7ab5,'includeAllSlots':!0x1});for(const _0x3cf17e of _0x7abd95){const _0x4510b1=_0x3cf17e['cell'],_0x18061c=_0x42cd6e['mapper']['toViewElement'](_0x4510b1);_0x42cd6e['writer']['addClass']('ck-suggestion-marker-'+_0x34f7c5,_0x18061c),_0x5c6ffe&&_0x42cd6e['writer']['setAttribute']('data-suggestion',_0x49112f,_0x18061c),_0x42cd6e['mapper']['bindElementToMarker'](_0x18061c,_0x3d16e0['markerName']),_0x283648&&(_0x239754['activeMarkers']['includes'](_0x3d16e0['markerName'])?_0x42cd6e['writer']['addClass']('ck-suggestion-marker--active',_0x18061c):_0x42cd6e['writer']['removeClass']('ck-suggestion-marker--active',_0x18061c));}}};}_0x239754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f25f1),_0x239754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f25f1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c75cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25fec7,_0xb6d4fd,_0x4e02cd)=>{_0x4e02cd['options']['showSuggestionHighlights']&&_0x3c75cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x25fec7,_0xb6d4fd,_0x4e02cd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4107d2,_0x3a6a19,_0x5bb0e8)=>{const {type:_0x20ac26,id:_0x2c1e0d}=_0x239754['_splitMarkerName'](_0x3a6a19['markerName']);if(!_0x239754['hasSuggestion'](_0x2c1e0d))return;const _0x288015=_0x239754['getSuggestion'](_0x2c1e0d),_0x534f71=_0x288015['data'];if('formatBlock'!=_0x288015['type']||!_0x534f71||'setTableColumnHeader'!=_0x534f71['commandName'])return;const _0x4cf8b0=_0x5bb0e8['mapper']['markerNameToElements'](_0x3a6a19['markerName']);if(_0x4cf8b0){for(const _0x245238 of _0x4cf8b0)_0x5bb0e8['writer']['removeClass']('ck-suggestion-marker-'+_0x20ac26,_0x245238),_0x5bb0e8['writer']['removeClass']('ck-suggestion-marker--active',_0x245238),_0x5bb0e8['writer']['removeAttribute']('data-suggestion',_0x245238),_0x5bb0e8['mapper']['unbindElementFromMarkerName'](_0x245238,_0x3a6a19['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d666d=this['editor'],_0x5a2ad0=_0x4d666d['locale'];function _0x913b49(_0x68e771){return{'type':'format','content':o(_0x5a2ad0,'*Format:*\x20%0',_0x68e771)};}_0x4d666d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x337a75=>{if('formatBlock'!=_0x337a75['type'])return;const {data:_0x85268d}=_0x337a75;if(_0x85268d){if('setTableRowHeader'==_0x85268d['commandName']){const _0xd6a179=_0x85268d['commandParams'][0x0]['forceValue'];return _0x913b49(o(_0x5a2ad0,_0xd6a179?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x85268d['commandName']){const _0x402030=_0x85268d['commandParams'][0x0]['forceValue'];return _0x913b49(o(_0x5a2ad0,_0x402030?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x15a662{['afterInit'](){const _0x32d4dd=this['editor'],_0x2bf8b4=_0x32d4dd['locale'],_0x9c95af=_0x32d4dd['plugins']['get']('TrackChangesEditing');function _0x1de2af(_0xa7c157){return{'type':'format','content':''+o(_0x2bf8b4,'*Set\x20table\x20type:*\x20%0',_0xa7c157)};}_0x32d4dd['plugins']['has']('TableLayout')&&(_0x9c95af['enableCommand']('insertTableLayout'),_0x9c95af['enableDefaultAttributesIntegration']('tableType'),_0x9c95af['registerBlockAttribute']('tableType'),_0x9c95af['descriptionFactory']['registerElementLabel'](_0x13e28c=>_0x13e28c['is']('element','table')&&'layout'===_0x13e28c['getAttribute']('tableType'),_0x18a93d=>o(_0x2bf8b4,'ELEMENT_LAYOUT_TABLE',_0x18a93d)),_0x9c95af['descriptionFactory']['registerDescriptionCallback'](_0x4dc391=>{const {data:_0x306976}=_0x4dc391;if(_0x306976&&'tableType'==_0x306976['key'])switch(_0x306976['newValue']){case'layout':return _0x1de2af(o(_0x2bf8b4,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1de2af(o(_0x2bf8b4,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Oe['map'](_0x99f72a=>[_0x99f72a,null]));class Bt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0xd6eaaf=this['editor'];if(!_0xd6eaaf['plugins']['has']('TableClipboard'))return;const _0x3faaf0=_0xd6eaaf['plugins']['get']('TrackChangesEditing'),_0x58b133=_0xd6eaaf['plugins']['get']('TableUtils'),_0x6214e6=_0xd6eaaf['plugins']['get']($t),_0x342222=_0xd6eaaf['plugins']['get']('TableClipboard'),_0x21f311=_0xd6eaaf['plugins']['get']('TableSelection'),_0x4bd812=_0xd6eaaf['plugins']['get'](_0x4c30d6);_0x6214e6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xd6eaaf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xd6eaaf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d08d2=null,_0x2ff416=!0x1;_0x4bd812['on']('contentInsertion',(_0x1682f8,_0x11c830)=>{_0x2ff416='paste'===_0x11c830['method'];}),_0xd6eaaf['model']['on']('insertContent',(_0x1ab604,_0x4ae82c)=>{if(!_0x2ff416&&null===_0x21f311['getSelectedTableCells']())return;const [_0x2566c7,_0x4ef643]=_0x4ae82c,_0x22baed=_0x4ae82c[_0x4ae82c['length']-0x1];_0x22baed&&_0x22baed['forceDefaultExecution']||_0x3faaf0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3a9339,_0x37842c,_0x4abbbd,_0x51cd16,_0x489dd7){if(_0x37842c&&!_0x37842c['is']('documentSelection'))return!0x1;const _0x5ee73a=_0x489dd7['getTableIfOnlyTableInContent'](_0x3a9339,_0x4abbbd);if(!_0x5ee73a||!He(_0x5ee73a,void 0x0,_0x51cd16))return!0x1;const _0x3c53d1=_0x51cd16['getSelectionAffectedTableCells'](_0x4abbbd['document']['selection']);if(!_0x3c53d1['length'])return!0x1;const _0x28a9d1=_0x3c53d1[0x0]['findAncestor']('table'),_0x336e80=_0x51cd16['getRowIndexes'](_0x3c53d1),_0x2f201b=_0x51cd16['getColumnIndexes'](_0x3c53d1),_0x23c69c={'startRow':_0x336e80['first'],'endRow':_0x336e80['last'],'startColumn':_0x2f201b['first'],'endColumn':_0x2f201b['last']};return 0x1==_0x3c53d1['length']&&(_0x23c69c['endRow']+=_0x51cd16['getRows'](_0x5ee73a)-0x1,_0x23c69c['endColumn']+=_0x51cd16['getColumns'](_0x5ee73a)-0x1),He(_0x28a9d1,_0x23c69c,_0x51cd16);}(_0x2566c7,_0x4ef643,_0xd6eaaf['model'],_0x58b133,_0x342222)&&(_0x1ab604['stop'](),_0x1d08d2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd6eaaf['model']['change'](()=>{_0xd6eaaf['model']['insertContent'](_0x4ae82c[0x0],_0x4ae82c[0x1],_0x4ae82c[0x2],{'forceDefaultExecution':!0x0});const _0x156c0a=_0xb1da02(),{rowInsertionRanges:_0x4adeae,columnInsertionRanges:_0x2d3d30,insertionRanges:_0xd624ab,deletionRanges:_0x136a5c,cells:_0x5a3960}=_0x1d08d2;_0x4adeae['length']&&_0x3faaf0['markMultiRangeInsertion'](_0x4adeae,'tablePasteRow',{'tablePasteChainId':_0x156c0a}),_0x2d3d30['length']&&_0x3faaf0['markMultiRangeInsertion'](_0x2d3d30,'tablePasteColumn',{'tablePasteChainId':_0x156c0a}),_0xd624ab['length']&&(_0x3faaf0['markMultiRangeInsertion'](_0xd624ab,'tablePaste',{'tablePasteChainId':_0x156c0a,'skipNestingCheck':!0x0}),_0xd624ab['forEach'](_0x3ac679=>_0x3ac679['detach']?.())),_0x136a5c['length']&&(_0x3faaf0['markMultiRangeDeletion'](_0x136a5c,'tablePaste',{'tablePasteChainId':_0x156c0a,'skipNestingCheck':!0x0}),_0x136a5c['forEach'](_0x262a07=>_0x262a07['detach']?.()));const _0x158c5f=_0x3faaf0['markMultiRangeBlockFormat'](_0x5a3960['map'](({element:_0x44eebb})=>_0x44eebb),{'formatGroupId':_0xb1da02()},[],'tablePasteCell',{'tablePasteChainId':_0x156c0a});if(_0x158c5f){const _0x1adb4a=_0x158c5f['getMarkers'](),_0x20a901=[];for(const {element:_0x28a9c4,attributes:_0x2a8223}of _0x5a3960){if(!_0x2a8223)continue;const _0x4a81ea=_0xd6eaaf['model']['createRangeOn'](_0x28a9c4),_0x25b657=_0x1adb4a['find'](_0xf2a1b5=>_0xf2a1b5['getRange']()['isEqual'](_0x4a81ea));_0x25b657&&_0x20a901['push']([_0x25b657['name'],_0x2a8223]);}_0x20a901['length']&&_0x158c5f['setAttribute']('markerAttributes',Object['fromEntries'](_0x20a901));}_0x1d08d2=null;}));},{'priority':_0x1425d6['high']+0xa}),_0x4bd812['on']('contentInsertion',()=>{_0x2ff416=!0x1;},{'priority':'lowest'}),_0xd6eaaf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x46676b,_0x4fb4d8)=>{const [_0x81c129,_0x58246a,,_0x5b8639]=_0x4fb4d8;if(!_0x1d08d2)return;_0x46676b['stop']();const _0x20f558=_0x81c129['cell'],_0x244444=_0x58246a,_0x253dcc=De(_0x20f558),_0x29c842=De(_0x244444);_0x46676b['return']=_0x20f558;let _0x644a5=null,_0x29fb28=null;if(_0x29c842||_0x253dcc){if(_0x253dcc&&!_0x29c842){_0x5b8639['remove'](_0x20f558['getChild'](0x0));for(const _0x59d576 of Array['from'](_0x244444['getChildren']()))_0x5b8639['insert'](_0x59d576,_0x20f558,'end');const _0x2f4e5e=_0x1d08d2['rowInsertionIndexes']['includes'](_0x81c129['row']),_0x35e0c6=_0x1d08d2['columnInsertionIndexes']['includes'](_0x81c129['column']);_0x2f4e5e||_0x35e0c6||(_0x644a5=_0x5a166f['fromRange'](_0x5b8639['createRangeIn'](_0x20f558)));}else _0x29c842&&!_0x253dcc&&(_0x29fb28=_0x5b8639['createRangeIn'](_0x20f558));}else{const _0x25724b=_0x5b8639['createElement']('tableCellSuggestion'),_0x536187=_0x5b8639['createElement']('tableCellSuggestion');_0x5b8639['wrap'](_0x5b8639['createRangeIn'](_0x20f558),_0x536187),_0x5b8639['insert'](_0x25724b,_0x20f558,0x0);for(const _0x45d4d1 of Array['from'](_0x244444['getChildren']()))_0x5b8639['insert'](_0x45d4d1,_0x25724b,'end');_0x644a5=_0x5a166f['fromRange'](_0x5b8639['createRangeOn'](_0x25724b)),_0x29fb28=_0x5a166f['fromRange'](_0x5b8639['createRangeOn'](_0x536187));}const _0x275270=Array['from'](_0x244444['getAttributes']())['filter'](([_0x1c7738])=>Oe['includes'](_0x1c7738));_0x1d08d2['cells']['push']({'element':_0x20f558,'attributes':_0x275270['length']?Object['fromEntries'](_0x275270):null}),_0x644a5&&_0x1d08d2['insertionRanges']['push'](_0x644a5),_0x29fb28&&_0x1d08d2['deletionRanges']['push'](_0x29fb28);},{'priority':'high'}),_0x58b133['on']('insertColumns',(_0x2bbc16,_0x15412b)=>{const [_0x3da0f9,_0x567a0a={}]=_0x15412b;if(!_0x1d08d2)return;const _0x2a6c36=_0x567a0a['at']||0x0,_0x4cf5ca=_0x567a0a['columns']||0x1;_0x1d08d2['columnInsertionIndexes']=new Array(_0x4cf5ca)['fill'](_0x2a6c36)['map']((_0x5c8e21,_0x2ccbdc)=>_0x5c8e21+_0x2ccbdc);for(const {cell:_0x1f39e2}of _0x58b133['createTableWalker'](_0x3da0f9,{'startColumn':_0x2a6c36,'endColumn':_0x2a6c36+_0x4cf5ca-0x1}))_0x1d08d2['columnInsertionRanges']['push'](_0xd6eaaf['model']['createRangeOn'](_0x1f39e2));},{'priority':'low'}),_0x58b133['on']('insertRows',(_0x3be06e,_0x555fc1)=>{const [_0x5c956a,_0x180110={}]=_0x555fc1;if(!_0x1d08d2)return;const _0x5638db=_0x180110['at']||0x0,_0x41be82=_0x180110['rows']||0x1;_0x1d08d2['rowInsertionIndexes']=new Array(_0x41be82)['fill'](_0x5638db)['map']((_0x19eda3,_0x5b45f2)=>_0x19eda3+_0x5b45f2);for(const {cell:_0x24c542}of _0x58b133['createTableWalker'](_0x5c956a,{'startRow':_0x5638db,'endRow':_0x5638db+_0x41be82-0x1}))_0x1d08d2['rowInsertionRanges']['push'](_0xd6eaaf['model']['createRangeOn'](_0x24c542));},{'priority':'low'}),_0x3faaf0['descriptionFactory']['registerDescriptionCallback'](_0x17d529=>{if(_0x17d529['subType']&&_0x17d529['subType']['startsWith']('tablePaste'))return _0x17d529['previous']?{}:{'type':'insertion','content':o(_0xd6eaaf['locale'],'*Replace\x20table\x20cells*')};});const _0x5de7bc=()=>!0x1;for(const _0x216664 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3faaf0['_suggestionFactory']['registerCustomCallback']('insertion',_0x216664,'join',_0x5de7bc),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('deletion',_0x216664,'join',_0x5de7bc),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x216664,'join',_0x5de7bc);_0x3faaf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5de7bc),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4070f1,_0x5bb6e3,_0x33130c)=>{const _0x3a4629=_0x4070f1['map'](_0x88bf1b=>_0x88bf1b['getContainedElement']())['filter'](_0x343d31=>_0x343d31),_0x49a466=new Map(_0x3a4629['map'](_0xc9aa07=>[_0xc9aa07,null]));if(_0x1d08d2){for(const {element:_0x4e54d2,attributes:_0x5aeccc}of _0x1d08d2['cells'])_0x5aeccc&&_0x49a466['set'](_0x4e54d2,_0x5aeccc);}else{if(_0x33130c&&_0x33130c['markerAttributes'])for(const [_0x4f7127,_0x16c680]of Object['entries'](_0x33130c['markerAttributes'])){const _0x443326=_0xd6eaaf['model']['markers']['get'](_0x4f7127),_0x41c08a=_0x443326?_0x443326['getRange']()['getContainedElement']():null;_0x41c08a&&_0x49a466['set'](_0x41c08a,_0x16c680);}}_0xd6eaaf['model']['change'](_0x3b5c02=>{for(const [_0x29f4b7,_0x5c7843]of _0x49a466)_0x3b5c02['setAttributes']({...Ue,..._0x5c7843},_0x29f4b7);});});const _0x27c97d=(_0x2175b3,_0x252f82)=>{_0x3faaf0['_suggestionFactory']['registerCustomCallback'](_0x2175b3,'tablePaste',_0x252f82,(_0x22446c,_0x299bfa,_0x4276be)=>{_0xd6eaaf['model']['change'](_0x436d3d=>{const _0x2f3460=[];for(const _0x55efb5 of _0x22446c){const _0x431dcf=_0x55efb5['start']['nodeAfter'];_0x431dcf['is']('element','tableCellSuggestion')&&_0x2f3460['push'](_0x431dcf);}_0x3faaf0['_suggestionFactory']['getSuggestionCallback'](_0x2175b3,null,_0x252f82)(_0x22446c,_0x299bfa,_0x4276be);for(const _0x512a6c of _0x2f3460)'$graveyard'!=_0x512a6c['root']['rootName']&&_0x436d3d['unwrap'](_0x512a6c);});});};_0x27c97d('insertion','accept'),_0x27c97d('insertion','discard'),_0x27c97d('deletion','accept'),_0x27c97d('deletion','discard'),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2420da=>{const _0x5c05c1=_0x2420da['map'](_0xa3f007=>_0xa3f007['getContainedElement']()),_0x1e03d0=_0x5c05c1[0x0]['findAncestor']('table'),{minRow:_0x4b80bf,maxRow:_0x2ebc4c}=_0x6214e6['_getCoordsForCells'](_0x5c05c1);_0x58b133['removeRows'](_0x1e03d0,{'at':_0x4b80bf,'rows':_0x2ebc4c-_0x4b80bf+0x1});}),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e1bfe=>{const _0x17ba61=_0x2e1bfe['map'](_0x9af6d2=>_0x9af6d2['getContainedElement']()),_0x395c29=_0x17ba61[0x0]['findAncestor']('table'),{minColumn:_0x4c7f58,maxColumn:_0x44ca6e}=_0x6214e6['_getCoordsForCells'](_0x17ba61);_0x58b133['removeColumns'](_0x395c29,{'at':_0x4c7f58,'columns':_0x44ca6e-_0x4c7f58+0x1});});const _0x54ac88=(_0x159bfa,_0x71059d)=>{if(!_0x71059d['subType']||!_0x71059d['subType']['startsWith']('tablePaste'))return;const _0x410e95=_0x71059d['attributes']['tablePasteChainId'],_0x3a5767=_0x3faaf0['getSuggestions']()['filter'](_0x488deb=>_0x488deb['isInContent']&&_0x488deb['attributes']&&_0x488deb['attributes']['tablePasteChainId']==_0x410e95);_0x3a5767['length']&&_0x71059d['getAllAdjacentSuggestions']()['length']!=_0x3a5767['length']&&_0x3a5767['reduce']((_0x3d9c0a,_0x4a9ed7)=>(_0x3d9c0a['next']=_0x4a9ed7,_0x4a9ed7['previous']=_0x3d9c0a,_0x4a9ed7));};function _0x51837e(_0x16fe4f,_0x5684e5=!0x0){const {id:_0x4a2d99,authorId:_0x392bd7}=_0x3faaf0['_splitMarkerName'](_0x16fe4f['markerName']),_0x59161=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3407a1=_0x3faaf0['activeMarkers']['includes'](_0x16fe4f['markerName']);return _0x3407a1&&_0x59161['push']('ck-suggestion-marker--active'),{'classes':_0x59161,'attributes':{'data-suggestion':_0x4a2d99,'data-author-id':_0x392bd7},'priority':_0x3407a1&&_0x5684e5?0xbc2:0xbb8};}_0x3faaf0['on']('suggestionLoaded',_0x54ac88,{'priority':'high'}),_0x3faaf0['on']('suggestionUnloaded',_0x54ac88,{'priority':'high'}),_0xd6eaaf['model']['document']['registerPostFixer'](()=>{let _0x513e54=!0x1;const _0x2f93d6=Array['from'](_0xd6eaaf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a6240,data:_0x3b4072}of _0x2f93d6){const {group:_0x449fc9,type:_0x45f372,id:_0x3ea4af}=_0x3faaf0['_splitMarkerName'](_0x3a6240);if('suggestion'!=_0x449fc9||'deletion'!=_0x45f372||_0x3b4072['oldRange'])continue;if(!_0x3faaf0['hasSuggestion'](_0x3ea4af))continue;const _0x479ee8=_0x3faaf0['getSuggestion'](_0x3ea4af)['getRanges'](),_0x6d97f7=_0xd6eaaf['plugins']['get']('Users')['me'];for(const _0x19e821 of _0x3faaf0['getSuggestions']()){if(!_0x19e821['isInContent']||_0x19e821['author']!=_0x6d97f7)continue;if('formatBlock'!=_0x19e821['type']||'tablePasteCell'!=_0x19e821['subType'])continue;if(_0x19e821['getRanges']()['every'](_0x496c82=>_0x479ee8['some'](_0x37047a=>_0x37047a['containsRange'](_0x496c82,!0x0)))){for(const _0x42af71 of _0x19e821['getAllAdjacentSuggestions']())_0x42af71['isInContent']&&(_0x42af71['discard'](),_0x513e54=!0x0);}}}return _0x513e54;}),_0xd6eaaf['model']['document']['registerPostFixer'](_0x1316ae=>{const _0x4efc6a=_0xd6eaaf['commands']['get']('redo');if(!_0x4efc6a||!_0x4efc6a['_createdBatches']['has'](_0x1316ae['batch']))return!0x1;let _0x282a80=!0x1;const _0x581c7a=_0xd6eaaf['plugins']['get']('Users')['me'],_0x8770cc=_0xd6eaaf['model']['document']['differ']['getChanges'](),_0x29e87d=Array['from'](_0xd6eaaf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2004c7,data:_0x7287ea})=>{const {group:_0x402bb8,subType:_0x515167,authorId:_0x270f29}=_0x3faaf0['_splitMarkerName'](_0x2004c7);return'suggestion'==_0x402bb8&&'tablePaste'==_0x515167&&_0x270f29==_0x581c7a['id']&&!_0x7287ea['oldRange'];});for(const _0x44fc59 of _0x8770cc){if('insert'!=_0x44fc59['type']||'tableCellSuggestion'!=_0x44fc59['name']||0x1!=_0x44fc59['length'])continue;const _0x3fff7c=_0x1316ae['createRange'](_0x44fc59['position'],_0x44fc59['position']['getShiftedBy'](0x1));if(!_0x29e87d['find'](({data:_0x3305e8})=>_0x3305e8['newRange']['isEqual'](_0x3fff7c))){for(const {name:_0x6e589a,data:_0x3edd62}of _0x29e87d)if(_0x3fff7c['containsRange'](_0x3edd62['newRange'])){_0x1316ae['updateMarker'](_0x6e589a,{'range':_0x3fff7c}),_0x282a80=!0x0;break;}}}return _0x282a80;}),_0xd6eaaf['model']['document']['registerPostFixer'](_0x509219=>{let _0x6e0c77=!0x1;const _0x2468b4=_0xd6eaaf['plugins']['get']('Users')['me'],_0xd6f748=_0x3faaf0['getSuggestions']()['filter'](_0x1710a5=>_0x1710a5['isInContent']&&_0x1710a5['author']==_0x2468b4),_0x207049=new Set(),_0x58a229=new Set();for(const _0x5eaecd of _0xd6f748)if('tablePaste'==_0x5eaecd['subType'])for(const _0x550987 of _0x5eaecd['getMarkers']()){const _0x57dd82=_0x550987['getRange']()['getContainedElement']();if(_0x57dd82){if(_0x57dd82['is']('element','tableCellSuggestion')&&De(_0x57dd82)){_0x5eaecd['removeMarker'](_0x550987['name']),_0x207049['add'](_0x57dd82),_0x6e0c77=!0x0;const _0x231ee4=_0x57dd82['nextSibling'],_0x3e3487=_0x57dd82['previousSibling'],_0x248055=_0x231ee4&&_0x231ee4['is']('element','tableCellSuggestion'),_0xc721fa=_0x3e3487&&_0x3e3487['is']('element','tableCellSuggestion');_0x248055&&!_0x207049['has'](_0x231ee4)&&_0x58a229['add'](_0x231ee4),_0xc721fa&&!_0x207049['has'](_0x3e3487)&&_0x58a229['add'](_0x3e3487);}else _0x57dd82['is']('element','paragraph')&&_0x57dd82['isEmpty']&&(_0x5eaecd['removeMarker'](_0x550987['name']),_0x6e0c77=!0x0);}}else{if('tablePasteCell'==_0x5eaecd['subType']){if(!_0x5eaecd['attributes']||!_0x5eaecd['attributes']['tablePasteChainId'])continue;const _0x2c84ba=_0x5eaecd['attributes']['markerAttributes'];if(_0x2c84ba&&Object['keys'](_0x2c84ba)['length'])continue;const _0x3efe09=_0x5eaecd['attributes']['tablePasteChainId'];let _0x11dece=!0x0,_0xeb83a6=!0x0;for(const _0x5a70b3 of _0xd6f748)if(_0x5a70b3['subType']&&_0x5a70b3['subType']['startsWith']('tablePaste')){if(!_0x5a70b3['attributes']['tablePasteChainId']){_0xeb83a6=!0x1;break;}if(_0x5a70b3['id']!=_0x5eaecd['id']&&_0x5a70b3['attributes']['tablePasteChainId']==_0x3efe09){_0x11dece=!0x1;break;}}_0xeb83a6&&_0x11dece&&(_0x5eaecd['removeMarkers'](),_0x6e0c77=!0x0);}}for(const _0x418bff of _0x207049)_0x509219['remove'](_0x418bff);for(const _0x49105e of _0x58a229)_0x509219['unwrap'](_0x49105e);return _0x6e0c77;}),_0xd6eaaf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4afb42=>_0x51837e(_0x4afb42),'converterPriority':'high'}),_0xd6eaaf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x52f4b8,_0x1fd5d6)=>_0x1fd5d6['options']['showSuggestionHighlights']?_0x51837e(_0x52f4b8,!0x1):null,'converterPriority':'high'});const _0x52cb81=_0xd6eaaf['editing']['view'];this['listenTo'](_0x52cb81['document'],'clipboardOutput',(_0xd82fdb,_0x2737ed)=>{const _0x3e6a2e=[];for(const _0x2859dc of _0x52cb81['createRangeIn'](_0x2737ed['content'])['getItems']())_0x2859dc['is']('element','suggestion-td')&&_0x3e6a2e['push'](_0x2859dc);_0x52cb81['change'](_0x13f835=>{for(const _0x1b6959 of _0x3e6a2e)_0x13f835['move'](_0x13f835['createRangeIn'](_0x1b6959),_0x13f835['createPositionBefore'](_0x1b6959)),_0x13f835['remove'](_0x1b6959);});});}}function De(_0xa3f0ed){if(_0xa3f0ed['isEmpty'])return!0x0;const _0x23334e=_0xa3f0ed['getChild'](0x0);return _0x23334e['is']('element','paragraph')&&_0x23334e['isEmpty'];}function He(_0x46f23c,_0x508ef3={},_0x37e5d0){for(const {isAnchor:_0x338dcd,cellHeight:_0x5ab19b,cellWidth:_0x53a294}of _0x37e5d0['createTableWalker'](_0x46f23c,{'includeAllSlots':!0x0,..._0x508ef3}))if(!_0x338dcd||0x1!=_0x5ab19b||0x1!=_0x53a294)return!0x1;return!0x0;}class Tt extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55941e=this['editor']['plugins']['get']('TrackChangesEditing');_0x55941e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55941e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55941e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55941e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55941e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55941e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x503faf,_0x4cc6d7){const _0xbe1ed2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f7eb1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x77ce98=_0x4cc6d7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x91fcb5=_0x4f7eb1['getColumnGroupElement'](_0x77ce98);let _0x18743e=_0x91fcb5?_0x4f7eb1['getTableColumnsWidths'](_0x91fcb5):null,_0x5f7fc6=_0x77ce98['getAttribute']('tableWidth')||null;const _0xd625fd=_0x4cc6d7['tableWidth']||_0x5f7fc6,_0x4e5646=_0x4cc6d7['columnWidths']||_0x18743e,_0x21304e=this['editor']['plugins']['get']('Users')['me'];for(const _0x155363 of _0xbe1ed2['getSuggestions']()){const _0x8ec9f4=_0x155363['getContainedElement']();if('resizeTable'===_0x155363['subType']&&_0x8ec9f4===_0x77ce98){_0x155363['author']!==_0x21304e&&_0x155363['discard']();const _0x5c0903=_0x155363['data']['commandParams'];_0x5f7fc6=_0x5c0903[0x0]['tableWidth'],_0x18743e=_0x5c0903[0x0]['columnWidths'];break;}}_0x503faf({'table':_0x77ce98,'tableWidth':_0xd625fd,'columnWidths':_0x4e5646}),_0xbe1ed2['markBlockFormat'](_0x77ce98,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5f7fc6,'columnWidths':_0x18743e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1ffcaf){if('formatBlock'!=_0x1ffcaf['type']&&'formatInline'!=_0x1ffcaf['type'])return;const {data:_0xed3cb9}=_0x1ffcaf;if(_0xed3cb9&&'resizeTable'===_0xed3cb9['formatGroupId']){const _0xaf00fc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xaf00fc)};}}}class Ot extends _0x15a662{['afterInit'](){const _0x384346=this['editor'];_0x384346['plugins']['has']('Template')&&_0x384346['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x15a662{['afterInit'](){const _0x56e647=this['editor'];if(!_0x56e647['commands']['get']('insertTableOfContents'))return;_0x56e647['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x318f35=_0x56e647['plugins']['get']('TrackChangesEditing'),_0x49b6c0=_0x56e647['locale'];_0x318f35['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18531f=>o(_0x49b6c0,'ELEMENT_TABLE_OF_CONTENTS',_0x18531f));}}class Et extends _0x15a662{['afterInit'](){const _0x539d90=this['editor'];if(!_0x539d90['plugins']['has']('Title'))return;const _0x56ff27=_0x539d90['plugins']['get']('TrackChangesEditing');_0x56ff27['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x539d90['locale'],'ELEMENT_TITLE')),_0x539d90['model']['document']['registerPostFixer'](_0x2a544a=>{let _0x217575=!0x1;const _0x4cb6e6=Array['from'](_0x539d90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36062a,data:_0x5eb5cd}of _0x4cb6e6){const {group:_0x5e8689}=_0x56ff27['_splitMarkerName'](_0x36062a);if('suggestion'!==_0x5e8689||!_0x5eb5cd['newRange'])continue;const _0x39826a=_0x5eb5cd['newRange'],_0x49f86e=_0x39826a['end']['nodeBefore'];if(!_0x49f86e||!_0x49f86e['is']('element','title-content'))continue;if(!_0x39826a['start']['isTouching'](_0x39826a['end']))continue;const _0x7a81c4=_0x539d90['model']['schema']['getNearestSelectionRange'](_0x39826a['end'],'forward');if(_0x7a81c4&&_0x7a81c4['isCollapsed']){const _0x5665e5=_0x2a544a['createRange'](_0x39826a['start'],_0x7a81c4['start']);_0x5665e5['isEqual'](_0x39826a)||(_0x2a544a['updateMarker'](_0x36062a,{'range':_0x5665e5}),_0x217575=!0x0);}_0x217575||(_0x2a544a['removeMarker'](_0x36062a),_0x217575=!0x0);}return _0x217575;});}}class Rt extends _0x15a662{['afterInit'](){const _0xd018d7=this['editor'],_0x532c7e=_0xd018d7['plugins']['get']('TrackChangesEditing');_0xd018d7['plugins']['has']('Uploadcare')&&(_0x532c7e['enableCommand']('uploadcare'),_0xd018d7['plugins']['has']('UploadcareImageEdit')&&(_0x532c7e['enableCommand']('uploadcareImageEdit'),_0x532c7e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x532c7e['registerBlockAttribute']('uploadcareImageId'),_0x532c7e['descriptionFactory']['registerDescriptionCallback'](_0x533d9a=>{if('attribute'!=_0x533d9a['type'])return;const {data:_0x20fc62}=_0x533d9a;return _0x20fc62&&'uploadcareImageId'==_0x20fc62['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x15a662{['afterInit'](){const _0x3130c7=this['editor'],_0x52a91f=_0x3130c7['plugins']['get']('TrackChangesEditing');_0x3130c7['plugins']['has']('UndoEditing')&&(_0x52a91f['enableCommand']('undo'),_0x52a91f['enableCommand']('redo'));}}class Vt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0xd90ab4=this['editor'];if(!_0xd90ab4['plugins']['has']('TableCaptionEditing'))return;_0xd90ab4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x15a662{['tableProperties'];['tableCellProperties'];constructor(_0x6b40b6){super(_0x6b40b6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4be2dc=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4f4228 of this['tableProperties'])_0x4be2dc['enableCommand'](_0x4f4228,(_0x44b191,_0x5b3da2)=>{const _0x2beb93=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4f4228,[_0x2beb93],this['tableProperties'],'tableProperties',_0x44b191,_0x5b3da2);});_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4be2dc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xf8e975,_0x32ad7e)=>this['handleDiscardAction'](this['tableProperties'],_0xf8e975,_0x32ad7e)),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2e9ca8 of this['tableCellProperties'])_0x4be2dc['enableCommand'](_0x2e9ca8,(_0x3083d5,_0x5e18ce)=>{const _0xa4bb4b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2e9ca8,_0xa4bb4b,this['tableCellProperties'],'tableCellProperties',_0x3083d5,_0x5e18ce);});_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4be2dc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x153192,_0x17d57f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x153192,_0x17d57f)),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4be2dc['descriptionFactory']['registerDescriptionCallback'](_0x543b74=>this['handleSuggestionDescription'](_0x543b74)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4262c0,_0x2f6e40,_0xef2bff,_0x38c368,_0x12e020,_0x406fc7){const _0x345b4f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x406fc7['batch'],()=>{for(const _0x47238f of _0x2f6e40){if(this['_getSuggestion'](_0x47238f,_0x38c368))_0x12e020(_0x406fc7);else{const _0x50f662={};for(const _0x417c8c of _0xef2bff){const _0x4e63ec=_0x47238f['getAttribute'](_0x417c8c);void 0x0!==_0x4e63ec&&(_0x50f662[_0x417c8c]=_0x4e63ec);}_0x12e020(_0x406fc7),_0x345b4f['markBlockFormat'](_0x47238f,{'commandParams':[_0x50f662]},[],_0x38c368);}}});}['handleDiscardAction'](_0x4313eb,_0x37e8ce,_0x117aae){const _0x127823=_0x37e8ce[0x0]['start']['nodeAfter'],_0x506bf9=_0x117aae['commandParams'][0x0];this['editor']['model']['change'](_0x5c60da=>{for(const _0x203a95 of _0x4313eb)void 0x0!==_0x506bf9[_0x203a95]?_0x5c60da['setAttribute'](_0x203a95,_0x506bf9[_0x203a95],_0x127823):_0x5c60da['removeAttribute'](_0x203a95,_0x127823);});}['handleSuggestionDescription'](_0x37d803){if(_0x37d803['data'])switch(_0x37d803['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'](_0x4028aa,_0x562b21){const _0x4e4840=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xd7d260 of _0x4e4840['getSuggestions']({'skipNotAttached':!0x0})){const _0x134b4c=_0xd7d260['getContainedElement']();if(_0xd7d260['subType']===_0x562b21&&_0x134b4c===_0x4028aa)return _0xd7d260;}return null;}['_registerTablePropertiesAttributes'](){const _0x516da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a9aac=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3a4f98 of _0x1a9aac){const _0x5c4e33=_0x3a4f98['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x516da['registerBlockAttribute'](_0x3a4f98),_0x516da['descriptionFactory']['registerAttributeLabel'](_0x3a4f98,o(this['editor']['locale'],'FORMAT_'+_0x5c4e33));}}}class Pt extends _0x15a662{['afterInit'](){const _0x500a7b=this['editor'];if(!_0x500a7b['plugins']['has']('LineHeight'))return;const _0x36934a=_0x500a7b['plugins']['get']('TrackChangesEditing'),_0x310c63=_0x500a7b['locale'];_0x36934a['enableDefaultAttributesIntegration']('lineHeight'),_0x36934a['registerBlockAttribute']('lineHeight'),_0x36934a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x310c63,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x15a662{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x289e10,_0x5ade70,_0x1e0249,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39d49a){super(_0x39d49a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3e2407,_0x1874dd,_0x5b4ca8,_0x356852)=>{this['_model']['change'](()=>{for(const _0x3765b7 of[..._0x356852,..._0x5b4ca8])this['_model']['markers']['has'](_0x3765b7)&&_0x39d49a['editing']['reconvertMarker'](_0x3765b7);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x39d49a['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(),_0x39d49a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x39d49a['config']['get']('trackChanges.trackFormatChanges'),_0x39d49a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x39d49a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x39d49a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x290be8=this['editor'],_0x273576=(_0x399b26,_0x5ecf30)=>{if('attribute'!=_0x399b26)return'ck-suggestion-marker-'+_0x399b26;const _0x2abcfc=_0x5ecf30['split']('|')[0x0];return this['_isBlockAttribute'](_0x2abcfc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x290be8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3833f4=>{const {id:_0x346dc8,authorId:_0x3f68f4,type:_0x1b3b02,subType:_0x342434}=this['_splitMarkerName'](_0x3833f4['markerName']),_0x5bf387=['ck-suggestion-marker',_0x273576(_0x1b3b02,_0x342434)];let _0xd3039b=0xbb8;return this['activeMarkers']['includes'](_0x3833f4['markerName'])&&(_0x5bf387['push']('ck-suggestion-marker--active'),_0xd3039b=0xbc2),'deletion'==_0x1b3b02&&(_0xd3039b+=0x5),{'classes':_0x5bf387,'attributes':{'data-suggestion':_0x346dc8,'data-author-id':_0x3f68f4},'priority':_0xd3039b};}}),_0x290be8['conversion']['for']('dataDowncast')['add'](_0x537ae7=>{_0x537ae7['on']('addMarker:suggestion',(_0x12d360,_0x23ca55,_0x1c7791)=>{if(!_0x1c7791['options']['showSuggestionHighlights'])return;const _0xcebad4=_0x23ca55['item'];if(!_0xcebad4)return;const _0x291b7e=_0x1c7791['mapper']['toViewElement'](_0xcebad4);_0x290be8['model']['schema']['isObject'](_0xcebad4)&&_0x291b7e&&!_0x291b7e['getCustomProperty']('widget')&&_0x291b7e['is']('containerElement')&&_0x2d86f4(_0x291b7e,_0x1c7791['writer']);},{'priority':'high'});}),_0x290be8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x583b69,_0x4c7b76)=>{if(!_0x4c7b76['options']['showSuggestionHighlights'])return null;const {id:_0x290811,authorId:_0x1343a9,type:_0x89a55,subType:_0x232c1a}=this['_splitMarkerName'](_0x583b69['markerName']);return{'classes':['ck-suggestion-marker',_0x273576(_0x89a55,_0x232c1a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x290811,'data-author-id':_0x1343a9}};}});const _0x3463a3=({showActiveMarkers:_0x540c6e=!0x0,isAttributeSuggestion:_0x9a9035=!0x1}={})=>(_0x554ee5,_0x2594fb,_0x5a6a85)=>{if(!_0x2594fb['item'])return;const {id:_0x5c5a21,authorId:_0x2f609f,subType:_0x4a4e4c}=this['_splitMarkerName'](_0x2594fb['markerName']);if(_0x9a9035){const _0x1d4a8d=se(_0x4a4e4c);if(!this['_isBlockAttribute'](_0x1d4a8d))return;}if(_0x2594fb['item']['is']('selection'))return void _0x5a6a85['consumable']['consume'](_0x2594fb['item'],_0x554ee5['name']);const _0xf2b7a5=_0x5a6a85['mapper']['toViewElement'](_0x2594fb['item']);if(_0x2594fb['item']['is']('element')&&_0x290be8['model']['schema']['isBlock'](_0x2594fb['item'])&&!_0xf2b7a5['getCustomProperty']('addHighlight')){_0x5a6a85['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xf2b7a5),_0x5a6a85['writer']['setAttribute']('data-suggestion',_0x5c5a21,_0xf2b7a5),_0x5a6a85['writer']['setAttribute']('data-author-id',_0x2f609f,_0xf2b7a5),_0x5a6a85['mapper']['bindElementToMarker'](_0xf2b7a5,_0x2594fb['markerName']),_0x540c6e&&(this['activeMarkers']['includes'](_0x2594fb['markerName'])?_0x5a6a85['writer']['addClass']('ck-suggestion-marker--active',_0xf2b7a5):_0x5a6a85['writer']['removeClass']('ck-suggestion-marker--active',_0xf2b7a5));for(const _0x4e87ca of _0x290be8['model']['createRangeIn'](_0x2594fb['item'])['getItems']())_0x5a6a85['consumable']['consume'](_0x4e87ca,_0x554ee5['name']);_0x5a6a85['consumable']['consume'](_0x2594fb['item'],_0x554ee5['name']);}};_0x290be8['conversion']['for']('dataDowncast')['add'](_0x402302=>{_0x402302['on']('addMarker:suggestion:formatBlock',(_0x4c03e3,_0x50abe1,_0x10cb5a)=>{_0x10cb5a['options']['showSuggestionHighlights']&&_0x3463a3({'showActiveMarkers':!0x1})(_0x4c03e3,_0x50abe1,_0x10cb5a);},{'priority':'highest'});}),_0x290be8['conversion']['for']('dataDowncast')['add'](_0x179d57=>{_0x179d57['on']('addMarker:suggestion:attribute',(_0x3c5076,_0x43691a,_0x33cb70)=>{_0x33cb70['options']['showSuggestionHighlights']&&_0x3463a3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3c5076,_0x43691a,_0x33cb70);},{'priority':'highest'});}),_0x290be8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x19011a,_0x3f666d)=>{if(_0x3f666d['options']['showSuggestionHighlights']){const {id:_0x4e106d,authorId:_0x4c7b4b}=this['_splitMarkerName'](_0x19011a);return _0x19011a['includes'](':split')||_0x19011a['includes'](':merge')?{'group':'suggestion','name':_0x19011a['substr'](0xb),'attributes':{'data-suggestion':_0x4e106d,'data-author-id':_0x4c7b4b}}:null;}return{'group':'suggestion','name':_0x19011a['substr'](0xb)};}}),_0x290be8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e7b17,{writer:_0x320b9d})=>{let _0x392193='suggestion:'+_0x1e7b17['getAttribute']('suggestion-type')+':'+_0x1e7b17['getAttribute']('id');return _0x1e7b17['getAttribute']('marker-count')&&(_0x392193+=':'+_0x1e7b17['getAttribute']('marker-count')),_0x320b9d['createElement']('$marker',{'data-name':_0x392193});}}),_0x290be8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x59c65d=>{_0x59c65d['on']('addMarker:suggestion:formatBlock',_0x3463a3(),{'priority':'high'});}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x5afb35=>{_0x5afb35['on']('addMarker:suggestion:attribute',_0x3463a3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x284a70=>{_0x284a70['on']('removeMarker:suggestion:formatBlock',(_0x221505,_0x3a70d4,_0x2c64aa)=>{const _0x1a5670=_0x2c64aa['mapper']['markerNameToElements'](_0x3a70d4['markerName']);if(_0x1a5670){for(const _0x2d0582 of _0x1a5670)_0x2d0582['getCustomProperty']('addHighlight')||(_0x2c64aa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d0582),_0x2c64aa['writer']['removeAttribute']('data-suggestion',_0x2d0582),_0x2c64aa['writer']['removeAttribute']('data-author-id',_0x2d0582),_0x2c64aa['mapper']['unbindElementFromMarkerName'](_0x2d0582,_0x3a70d4['markerName']));}},{'priority':'high'});}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x4b4bbd=>{_0x4b4bbd['on']('removeMarker:suggestion:attribute',(_0x5db8f1,_0x3db891,_0xe15776)=>{const _0x18ef9b=_0xe15776['mapper']['markerNameToElements'](_0x3db891['markerName']);if(!_0x18ef9b)return;const {subType:_0x196c07}=this['_splitMarkerName'](_0x3db891['markerName']),_0x32bc2c=se(_0x196c07);if(this['_isBlockAttribute'](_0x32bc2c)){for(const _0x5a68e2 of _0x18ef9b)_0x5a68e2['getCustomProperty']('addHighlight')||(_0xe15776['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a68e2),_0xe15776['writer']['removeAttribute']('data-suggestion',_0x5a68e2),_0xe15776['writer']['removeAttribute']('data-author-id',_0x5a68e2),_0xe15776['mapper']['unbindElementFromMarkerName'](_0x5a68e2,_0x3db891['markerName']));}},{'priority':'high'});}),_0x290be8['model']['document']['registerPostFixer'](_0x4ef638=>{let _0x3de4b2=!0x1;const _0x693219=Array['from'](_0x290be8['model']['document']['differ']['getChangedMarkers']()),_0xb31f25=new Set();for(const {name:_0x46ac4e,data:_0xa2abf7}of _0x693219){const {group:_0x250d17,type:_0x5e5783,subType:_0x46c5e6,id:_0x57f024}=this['_splitMarkerName'](_0x46ac4e);if('suggestion'!==_0x250d17)continue;const _0x4d32b3=_0x46c5e6?'suggestion:'+_0x5e5783+':'+_0x46c5e6+':'+_0x57f024:'suggestion:'+_0x5e5783+':'+_0x57f024,_0x160254=_0x290be8['model']['markers']['getMarkersGroup'](_0x4d32b3),_0x496df0=_0x290be8['model']['markers']['get'](_0x46ac4e),_0xea7f16=this['_suggestions']['get'](_0x57f024);if(null!=_0xa2abf7['newRange']){'formatInline'==_0x5e5783&&(_0x3de4b2=_0x3de4b2||Ht(_0xa2abf7['newRange'],_0x46ac4e,_0x4ef638,_0x290be8['model']['schema']));const _0x362f9f='attribute'==_0x5e5783&&this['_isBlockAttribute'](_0x46c5e6['split']('|')[0x0]),_0x3de6e2='attribute'==_0x5e5783&&this['_isInlineAttribute'](_0x46c5e6['split']('|')[0x0]);if(_0xa2abf7['newRange']['isCollapsed']||'$graveyard'==_0xa2abf7['newRange']['root']['rootName']||'formatBlock'==_0x5e5783&&!qt(_0xa2abf7['newRange'])||_0x362f9f&&!qt(_0xa2abf7['newRange'])||_0x3de6e2&&zt(_0xa2abf7['newRange'])||'deletion'==_0x5e5783&&zt(_0xa2abf7['newRange'])||_0x496df0&&Qt(_0x496df0,_0x160254))_0x4ef638['removeMarker'](_0x46ac4e),_0x3de4b2=!0x0;else{if(!_0xea7f16||!_0xea7f16['isInContent'])continue;if(_0xa2abf7['newRange']&&_0xa2abf7['oldRange']&&_0xa2abf7['newRange']['isEqual'](_0xa2abf7['oldRange']))continue;_0xb31f25['add'](_0xea7f16);}}}return _0xb31f25['size']>0x0&&(_0x3de4b2=!!this['_joinWithAdjacentSuggestions'](_0xb31f25)||_0x3de4b2),_0x3de4b2;}),_0x290be8['model']['document']['registerPostFixer'](_0x23a877=>{let _0x705c76=!0x1;for(const _0x153b7a of _0x290be8['model']['document']['differ']['getChanges']())if('insert'==_0x153b7a['type'])for(const _0x3ca41f of this['_suggestions']['values']()){if(_0x3ca41f['isMultiRange']||!_0x3ca41f['isInContent'])continue;const _0x5617e9='formatBlock'==_0x3ca41f['type'],_0x421637=this['_getAttributeKey'](_0x3ca41f),_0x278d56=_0x421637&&this['_isBlockAttribute'](_0x421637);if(!_0x5617e9&&!_0x278d56)continue;const _0x5087e7=_0x3ca41f['getFirstRange']();if(_0x5087e7['start']['parent']!=_0x5087e7['end']['parent']&&!_0x5087e7['end']['isAtEnd']){const _0x3c7a5d=_0x290be8['model']['createPositionAt'](_0x5087e7['start']['nodeAfter'],'end'),_0x7225b4=_0x290be8['model']['createRange'](_0x5087e7['start'],_0x3c7a5d);_0x23a877['updateMarker'](_0x3ca41f['getFirstMarker'](),{'range':_0x7225b4}),_0x705c76=!0x0;}}return _0x705c76;}),_0x290be8['model']['document']['registerPostFixer'](_0x5b76f2=>this['_processAttributeChanges'](_0x5b76f2)),_0x290be8['model']['document']['registerPostFixer'](_0x7eca5b=>!_0x7eca5b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x7eca5b)),_0x290be8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x290be8['model']['document']['on']('change:data',(_0x590a0c,_0x57dcec)=>{if(!_0x57dcec['isLocal']||_0x57dcec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x443c18=_0x290be8['model']['document']['differ']['getChanges']();if(0x0==_0x443c18['length'])return;const _0x1c1614=[],_0x19b08c=_0x443c18['filter'](_0x335eef=>'attribute'==_0x335eef['type']),_0xa7d9ad=_0x443c18['filter'](_0x114941=>'insert'==_0x114941['type']&&'$text'!=_0x114941['name']);for(const _0x3671c3 of _0x19b08c)this['_isRegisteredAttribute'](_0x3671c3['attributeKey'])&&_0x1c1614['push']({'key':_0x3671c3['attributeKey'],'newValue':_0x3671c3['attributeNewValue'],'oldValue':_0x3671c3['attributeOldValue'],'range':Yt(_0x3671c3['range'],_0x290be8['model'])});for(const _0x390456 of _0xa7d9ad){if('rename'!=_0x390456['action']&&'refresh'!=_0x390456['action'])continue;const _0x5ad262=Zt(_0x390456['position']['nodeAfter'],_0x290be8['model']),_0x580e11=_0x390456['before'];'rename'==_0x390456['action']&&_0x1c1614['push']({'key':m,'newValue':_0x390456['name'],'oldValue':_0x580e11['name'],'range':_0x5ad262});for(const [_0x48500a,_0x5e06a2]of _0x580e11['attributes']){if(!this['_isRegisteredAttribute'](_0x48500a))continue;const _0x106419=_0x390456['attributes']['get'](_0x48500a);_0x5e06a2!==_0x106419&&_0x1c1614['push']({'key':_0x48500a,'newValue':_0x106419,'oldValue':_0x5e06a2,'range':_0x5ad262});}for(const [_0x46d081,_0x11b045]of _0x390456['attributes'])this['_isRegisteredAttribute'](_0x46d081)&&(_0x580e11['attributes']['has'](_0x46d081)||_0x1c1614['push']({'key':_0x46d081,'newValue':_0x11b045,'oldValue':null,'range':_0x5ad262}));}0x0!=_0x1c1614['length']&&_0x290be8['model']['enqueueChange'](_0x57dcec,_0x31181d=>{const _0x594f92=_0xb1da02();for(const {range:_0x1410f3,key:_0x48737d,oldValue:_0x110825,newValue:_0xe8b337}of _0x1c1614)this['markAttributeChange'](_0x1410f3,_0x48737d,_0x110825,_0xe8b337,{'groupId':_0x594f92});this['_reduceExistingSuggestions'](_0x31181d,_0x1c1614);});},{'priority':'lowest'}),_0x290be8['model']['markers']['on']('update:suggestion',(_0x40a265,_0x135f78,_0x5403af)=>{if(null==_0x5403af){const {id:_0x2cfb39}=this['_splitMarkerName'](_0x135f78['name']),_0x1a21be=this['_suggestions']['get'](_0x2cfb39);_0x1a21be&&_0x1a21be['addMarkerName'](_0x135f78['name']);}}),_0x290be8['model']['document']['on']('change:data',()=>{const _0x537b2f=Array['from'](_0x290be8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x58f1f9=>'suggestion'===this['_splitMarkerName'](_0x58f1f9['name'])['group']);if(0x0===_0x537b2f['length'])return;_0x537b2f['sort']((_0x3d5f3d,_0x1101b9)=>{const _0x3253cc=_0x3d5f3d['data']['oldRange'],_0x440ccc=_0x1101b9['data']['oldRange'];return null===_0x3253cc&&null===_0x440ccc?0x0:null===_0x3253cc&&null!==_0x440ccc?-0x1:null!==_0x3253cc&&null===_0x440ccc?0x1:_0x3253cc['start']['isBefore'](_0x440ccc['start'])?-0x1:0x1;});const _0x8b67bf=new Set(),_0x46c4e0=new Set();for(const {name:_0x58c3e1,data:_0x26aa69}of _0x537b2f){const {id:_0xfb0002}=this['_splitMarkerName'](_0x58c3e1);if(null===_0x26aa69['oldRange']){const _0x13343f=this['_handleNewSuggestionMarker'](_0x58c3e1);_0x46c4e0['add'](_0x13343f);}else{const _0x43ad83=this['_suggestions']['get'](_0xfb0002);null!==_0x26aa69['newRange']||_0x43ad83['isInContent']?(_0x8b67bf['add'](_0x43ad83['head']),_0x46c4e0['add'](_0x43ad83)):this['_removeSuggestion'](_0x43ad83);}}_0x46c4e0['size']>0x0&&this['_refreshSuggestionsChain'](_0x46c4e0);for(const _0x50e73d of _0x8b67bf)this['fire']('suggestionChanged',_0x50e73d);}),_0x290be8['model']['on']('applyOperation',(_0x120fdc,_0x336b04)=>{const _0x5b0c8b=_0x336b04[0x0];if(!this['_suggestions']['size'])return;if(!_0x5b0c8b['isDocumentOperation'])return;if(_0x5b0c8b['batch']['isUndo']||!_0x5b0c8b['batch']['isLocal'])return;let _0x3d545e,_0x3324e7;switch(_0x5b0c8b['type']){case'insert':_0x3d545e=_0x290be8['model']['createPositionAt'](_0x5b0c8b['position']),_0x3324e7=_0x3d545e['getShiftedBy'](_0x5b0c8b['howMany']);break;case'split':_0x3d545e=_0x290be8['model']['createPositionAt'](_0x5b0c8b['splitPosition']),_0x3324e7=_0x290be8['model']['createPositionAt'](_0x5b0c8b['moveTargetPosition']);break;case'move':_0x3d545e=_0x290be8['model']['createPositionAt'](_0x5b0c8b['targetPosition']),_0x3324e7=_0x3d545e['getShiftedBy'](_0x5b0c8b['howMany']);break;default:return;}const _0x31638d=_0x290be8['model']['createRange'](_0x3d545e,_0x3324e7);_0x290be8['model']['change'](()=>{for(const {suggestion:_0x1b3a9a,meta:_0x267833}of this['_findSuggestions'](_0x31638d)){if(_0x1b3a9a['isMultiRange'])continue;if('formatInline'==_0x1b3a9a['type'])continue;const _0x35d24d=this['_getAttributeKey'](_0x1b3a9a);if(_0x35d24d&&this['_isBlockAttribute'](_0x35d24d)&&'split'!=_0x5b0c8b['type'])continue;const _0x387af2=_0x1b3a9a['data']&&_0x1b3a9a['data']['multipleBlocks'];('formatBlock'!=_0x1b3a9a['type']||'split'==_0x5b0c8b['type']&&!_0x387af2)&&(_0x267833['containsRangeInObject']||'insertion'==_0x1b3a9a['type']&&_0x267833['isOwn']||_0x1b3a9a['getFirstRange']()['containsRange'](_0x31638d)&&this['_breakSuggestionMarker'](_0x1b3a9a,_0x3d545e,_0x3324e7));}});},{'priority':'lowest'}),_0x290be8['model']['on']('deleteContent',(_0x345651,_0x265a7d)=>{const _0x835a4c=_0x265a7d[0x0],_0x551cbf=_0x265a7d[0x1];if(_0x551cbf&&_0x551cbf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x835a4c['isCollapsed'])return;const _0x57e262=_0x290be8['model']['schema'],{start:_0x1009de,end:_0x245860}=_0x835a4c['getFirstRange'](),_0x2c2a83=_0x1009de['nodeAfter']&&_0x57e262['isLimit'](_0x1009de['nodeAfter'])?null:_0x57e262['getNearestSelectionRange'](_0x1009de,'forward'),_0x1bcd6b=_0x245860['nodeBefore']&&_0x57e262['isLimit'](_0x245860['nodeBefore'])?null:_0x57e262['getNearestSelectionRange'](_0x245860,'backward'),_0x4f28f5=_0x290be8['model']['createRange'](_0x2c2a83?_0x2c2a83['start']:_0x1009de,_0x1bcd6b?_0x1bcd6b['end']:_0x245860);_0x290be8['model']['change'](_0x51653c=>{this['markDeletion'](_0x4f28f5);const _0x4ceb2f=_0x290be8['model']['schema']['getNearestSelectionRange'](_0x4f28f5['start']);_0x835a4c['is']('documentSelection')?_0x51653c['setSelection'](_0x4ceb2f):_0x835a4c['setTo'](_0x4ceb2f);}),_0x345651['stop']();},{'priority':_0x1425d6['normal']+0xa}),_0x290be8['model']['on']('insertContent',(_0x4540b2,_0x46961d)=>{const _0x45260e=_0x46961d[_0x46961d['length']-0x1];_0x45260e&&_0x45260e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x290be8['model']['change'](()=>{let _0x252ab8=_0x290be8['model']['insertContent'](_0x46961d[0x0],_0x46961d[0x1],_0x46961d[0x2],{'forceDefaultExecution':!0x0});if(!_0x252ab8)return;_0x4540b2['return']=_0x252ab8['clone']();const _0x458f75=_0x252ab8['end']['nodeBefore'],_0xb03e65=_0x290be8['model']['schema'];_0x458f75&&_0xb03e65['isBlock'](_0x458f75)&&!_0xb03e65['isObject'](_0x458f75)&&(_0x252ab8=_0x290be8['model']['createRange'](_0x252ab8['start'],_0x290be8['model']['createPositionAt'](_0x458f75,'end'))),this['markInsertion'](_0x252ab8);}),_0x4540b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ea10a=new T(_0x290be8,this['_suggestions']);_0x290be8['commands']['add']('acceptSuggestion',_0x3ea10a),this['enableCommand']('acceptSuggestion');const _0x3ce9f1=new O(_0x290be8,this['_suggestions']);_0x290be8['commands']['add']('discardSuggestion',_0x3ce9f1),this['enableCommand']('discardSuggestion'),_0x290be8['commands']['add']('acceptAllSuggestions',new x(_0x290be8,_0x3ea10a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x290be8['commands']['add']('discardAllSuggestions',new x(_0x290be8,_0x3ce9f1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x290be8['commands']['add']('acceptSelectedSuggestions',new E(_0x290be8,_0x3ea10a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x290be8['commands']['add']('discardSelectedSuggestions',new E(_0x290be8,_0x3ce9f1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x223313=_0x290be8['plugins']['get']('CommentsRepository');this['listenTo'](_0x223313,'addComment',(_0x573cdc,{threadId:_0x3bfde2})=>{const _0x290cc0=this['_suggestions']['get'](_0x3bfde2);_0x290cc0&&_0x290cc0['commentThread']&&0x1===_0x290cc0['commentThread']['length']&&this['_updateSuggestionData'](_0x3bfde2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x223313,'removeComment',(_0x4c084b,{threadId:_0x2c9814})=>{const _0x4ed2e6=this['_suggestions']['get'](_0x2c9814);_0x4ed2e6&&_0x4ed2e6['commentThread']&&!_0x4ed2e6['commentThread']['length']&&this['_updateSuggestionData'](_0x2c9814,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x182c91){const _0x2ad891=_0x54142c([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x11f998=0x6b0f5e6f,_0xc5196c=0x6b082ac7^_0x11f998,_0x3cfd9c=window[_0x54142c([0x44,0x61,0x74,0x65])][_0x54142c([0x6e,0x6f,0x77])](),_0x7a8282=_0x182c91[_0x54142c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26cc56=new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e2c71=>{_0x7a8282[_0x54142c([0x6f,0x6e,0x63,0x65])](_0x54142c([0x72,0x65,0x61,0x64,0x79]),_0x2e2c71);}),_0x28ef91={[_0x54142c([0x6b,0x74,0x79])]:_0x54142c([0x45,0x43]),[_0x54142c([0x75,0x73,0x65])]:_0x54142c([0x73,0x69,0x67]),[_0x54142c([0x63,0x72,0x76])]:_0x54142c([0x50,0x2d,0x32,0x35,0x36]),[_0x54142c([0x78])]:_0x54142c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x54142c([0x79])]:_0x54142c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x54142c([0x61,0x6c,0x67])]:_0x54142c([0x45,0x53,0x32,0x35,0x36])},_0x513efa=_0x7a8282[_0x54142c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54142c([0x67,0x65,0x74])](_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x280ff2(){let _0x167a68,_0x27e6ae=null,_0x2ba002=null;try{if(_0x513efa==_0x54142c([0x47,0x50,0x4c]))return _0x54142c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x167a68=_0x4204a3(),!_0x167a68)return _0x54142c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x167a68[_0x54142c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ba002=_0x7684d3(_0x167a68[_0x54142c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x167a68[_0x54142c([0x6a,0x74,0x69])])),await _0x2a8b45()?_0x316799()?_0x3f8ebf()?_0x54142c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40849d()?(_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54142c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27e6ae=_0x137a76(_0x54142c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54142c([0x74,0x72,0x69,0x61,0x6c])&&(_0x27e6ae=_0x137a76(_0x54142c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2aa5df()):_0x54142c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54142c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54142c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54142c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f8ebf(){const _0x2a4415=[_0x54142c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54142c([0x74,0x72,0x69,0x61,0x6c])][_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cfd9c/0x3e8:0xe10*_0xc5196c;return _0x167a68[_0x54142c([0x65,0x78,0x70])]<_0x2a4415;}function _0x316799(){const _0x178767=_0x167a68[_0x54142c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x178767)return!0x1;if(_0x178767[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x2a])))return!0x0;if(_0x178767[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x54,0x43])))return!0x0;if(_0x178767[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x52,0x54,0x43]))){if(_0x238003())return!0x0;if(_0x493b49()||_0x2a8610())return!0x0;}return!0x1;}function _0x40849d(){const _0x32c340=_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32c340||0x0==_0x32c340[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58c6b1}=new URL(window[_0x54142c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32c340[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58c6b1))return!0x0;const _0x554bc7=_0x58c6b1[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e]));return _0x32c340[_0x54142c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x106e97=>_0x106e97[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x2a])))[_0x54142c([0x6d,0x61,0x70])](_0x16875b=>_0x16875b[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e])))[_0x54142c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x424cd6=>_0x424cd6[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x554bc7[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54142c([0x6d,0x61,0x70])](_0x2d1969=>Array(_0x554bc7[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d1969[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54142c([0x66,0x69,0x6c,0x6c])](_0x2d1969[0x0]===_0x54142c([0x2a])?_0x54142c([0x2a]):'')[_0x54142c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d1969))[_0x54142c([0x73,0x6f,0x6d,0x65])](_0x5f53a2=>_0x554bc7[_0x54142c([0x65,0x76,0x65,0x72,0x79])]((_0x3387b5,_0x11b991)=>_0x5f53a2[_0x11b991]===_0x3387b5||_0x5f53a2[_0x11b991]===_0x54142c([0x2a])));}function _0x2aa5df(){return _0x27e6ae&&_0x2ba002?new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4133a6,_0x3bd4c9)=>{_0x27e6ae[_0x54142c([0x74,0x68,0x65,0x6e])](_0x4133a6,_0x3bd4c9),_0x2ba002[_0x54142c([0x74,0x68,0x65,0x6e])](_0x3328d3=>{_0x3328d3!=_0x54142c([0x56,0x61,0x6c,0x69,0x64])&&_0x4133a6(_0x3328d3);},_0x3bd4c9);}):_0x27e6ae||_0x2ba002||_0x54142c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7684d3(_0x8619b6,_0x341edc){return new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e9a52=>{if(_0x3d7ce8())return _0x1e9a52(_0x54142c([0x56,0x61,0x6c,0x69,0x64]));_0x3ab73f(),_0x7a8282[_0x54142c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54142c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd2567=!0x1;const _0x1c16a5=_0xb1da02();function _0xdf9d39(_0x5e83b7){return!!_0x5e83b7&&(typeof _0x5e83b7===_0x54142c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e83b7===_0x54142c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e83b7[_0x54142c([0x74,0x68,0x65,0x6e])]===_0x54142c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e83b7[_0x54142c([0x63,0x61,0x74,0x63,0x68])]===_0x54142c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x149fa0(_0x4d56e6){_0x5e85b2(_0x4d56e6)[_0x54142c([0x74,0x68,0x65,0x6e])](_0x5324c5=>{if(!_0x5324c5||_0x5324c5[_0x54142c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54142c([0x6f,0x6b]))return _0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x157ba1(_0x241877(_0x1c16a5+_0x341edc))!=_0x5324c5[_0x54142c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54142c([0x56,0x61,0x6c,0x69,0x64]);})[_0x54142c([0x74,0x68,0x65,0x6e])](_0x405966=>(_0x5b9258(),_0x405966),()=>{const _0x482cba=_0x54f109();return null==_0x482cba?(_0x5b9258(),_0x54142c([0x56,0x61,0x6c,0x69,0x64])):_0x54142c(_0x3cfd9c-_0x482cba>(0x4f03da6f^_0x11f998)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54142c([0x74,0x68,0x65,0x6e])](_0x1e9a52)[_0x54142c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e9a52(_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd3cdae=0x6b39b0ef^_0x11f998;function _0x5b9258(){const _0x5640b5=_0x54142c([0x6c,0x6c,0x63,0x74,0x2d])+_0x157ba1(_0x241877(_0x8619b6)),_0x2f8968=_0xf3ba99(_0x157ba1(window[_0x54142c([0x4d,0x61,0x74,0x68])][_0x54142c([0x63,0x65,0x69,0x6c])](_0x3cfd9c/_0xd3cdae)));window[_0x54142c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54142c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5640b5,_0x2f8968);}function _0x54f109(){const _0xfe1195=_0x54142c([0x6c,0x6c,0x63,0x74,0x2d])+_0x157ba1(_0x241877(_0x8619b6)),_0x36d15f=window[_0x54142c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54142c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfe1195);return _0x36d15f?window[_0x54142c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf3ba99(_0x36d15f),0x10)*_0xd3cdae:null;}function _0x5e85b2(_0x47f4db){return new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x390b6c,_0x50786a)=>{_0x47f4db[_0x54142c([0x74,0x68,0x65,0x6e])](_0x390b6c,_0x50786a),window[_0x54142c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50786a,0x6b0e8aaf^_0x11f998);});}}_0x7a8282[_0x54142c([0x6f,0x6e])](_0x54142c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20c3c1,_0x34c569)=>{if(_0x34c569[0x0]!=_0x8619b6)return _0x1e9a52(_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34c569[0x1]={..._0x34c569[0x1],[_0x54142c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c16a5};},{[_0x54142c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54142c([0x68,0x69,0x67,0x68])}),_0x7a8282[_0x54142c([0x6f,0x6e])](_0x54142c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12af34=>{_0xdf9d39(_0x12af34[_0x54142c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd2567=!0x0,_0x149fa0(_0x12af34[_0x54142c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54142c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54142c([0x6c,0x6f,0x77])}),_0x26cc56[_0x54142c([0x74,0x68,0x65,0x6e])](()=>{_0xd2567||_0x1e9a52(_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d7ce8(){return _0x7a8282[_0x54142c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54142c([0x76,0x69,0x65,0x77])][_0x54142c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54142c([0x61,0x75,0x74,0x6f]);}function _0x3ab73f(){_0x7a8282[_0x54142c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54142c([0x76,0x69,0x65,0x77])][_0x54142c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54142c([0x61,0x75,0x74,0x6f]);}}function _0x137a76(_0xca0de5){const _0x4db185=[new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x415abd=>setTimeout(_0x415abd,0x6b0660a3^_0x11f998)),_0x26cc56[_0x54142c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52deb7=>{let _0x5785b7=0x0;_0x7a8282[_0x54142c([0x6d,0x6f,0x64,0x65,0x6c])][_0x54142c([0x6f,0x6e])](_0x54142c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9767e6,_0x268176)=>{_0x268176[0x0][_0x54142c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5785b7++,_0x5785b7==(0x6b0f5f97^_0x11f998)&&(_0x52deb7(),_0x9767e6[_0x54142c([0x6f,0x66,0x66])]());});}))];return window[_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54142c([0x72,0x61,0x63,0x65])](_0x4db185)[_0x54142c([0x74,0x68,0x65,0x6e])](()=>_0xca0de5);}async function _0x54c395(){await _0x26cc56,_0x7a8282[_0x54142c([0x6d,0x6f,0x64,0x65,0x6c])][_0x54142c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e7976,_0x7a8282[_0x54142c([0x6d,0x6f,0x64,0x65,0x6c])][_0x54142c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e7976,_0x7a8282[_0x54142c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54142c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238003(){return _0x5f3f10(_0x54142c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb085ef(_0x54142c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54142c([0x73,0x74,0x61,0x74,0x65])]==_0x54142c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x493b49(){return _0x5f3f10(_0x54142c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2a8610(){return _0x5f3f10(_0x54142c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x55c767(_0x2659b4){const _0x1dc48a=_0x53b060();_0x7a8282[_0x1dc48a]=_0x54142c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2659b4,_0x2659b4!=_0x54142c([0x56,0x61,0x6c,0x69,0x64])&&_0x54c395();}function _0x53b060(){const _0x23923f=window[_0x54142c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54142c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54142c([0x6e,0x6f,0x77])]())[_0x54142c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54142c([0x2e]),'');let _0x7b7e0b=_0x54142c([0x67]);for(let _0x5cc174=0x0;_0x5cc174<_0x23923f[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cc174+=0x2){let _0x26f1a7=window[_0x54142c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23923f[_0x54142c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cc174,_0x5cc174+0x2));_0x26f1a7>=_0x2ad891[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26f1a7-=_0x2ad891[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7b7e0b+=_0x2ad891[_0x26f1a7];}return _0x7b7e0b;}function _0x4204a3(){const _0x814a9c=_0x513efa[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e]));if(0x3!=_0x814a9c[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c8943(_0x814a9c[0x1]);function _0x4c8943(_0x55d318){const _0x188317=_0x436694(_0x55d318);return _0x188317&&_0x5454fe()?_0x188317:null;function _0x5454fe(){const _0x55e973=_0x188317[_0x54142c([0x6a,0x74,0x69])],_0x245b40=window[_0x54142c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55e973[_0x54142c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55e973[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4812da={..._0x188317,[_0x54142c([0x6a,0x74,0x69])]:_0x55e973[_0x54142c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55e973[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4812da[_0x54142c([0x76,0x63])],_0x241877(_0x4812da)==_0x245b40;}}}async function _0x2a8b45(){let _0x35746e=!0x0;try{const _0x589617=_0x513efa[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e])),[_0x565341,_0x4e8953,_0x5023a0]=_0x589617;return _0x42273c(_0x565341),await _0x333a53(_0x565341,_0x4e8953,_0x5023a0),_0x35746e;}catch{return!0x1;}function _0x42273c(_0x5233f4){const _0x4c99ac=_0x436694(_0x5233f4);_0x4c99ac&&_0x4c99ac[_0x54142c([0x61,0x6c,0x67])]==_0x54142c([0x45,0x53,0x32,0x35,0x36])||(_0x35746e=!0x1);}async function _0x333a53(_0x255c69,_0x2ebe3e,_0x2194e6){const _0x2f742e=window[_0x54142c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54142c([0x66,0x72,0x6f,0x6d])](_0x227cdf(_0x2194e6),_0x4e0992=>_0x4e0992[_0x54142c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcfe1d7=new window[(_0x54142c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54142c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x255c69+_0x54142c([0x2e])+_0x2ebe3e),_0x125ec9=window[_0x54142c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54142c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x125ec9)return;const _0x3cdc31=await _0x125ec9[_0x54142c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54142c([0x6a,0x77,0x6b]),_0x28ef91,{[_0x54142c([0x6e,0x61,0x6d,0x65])]:_0x54142c([0x45,0x43,0x44,0x53,0x41]),[_0x54142c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54142c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54142c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x125ec9[_0x54142c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54142c([0x6e,0x61,0x6d,0x65])]:_0x54142c([0x45,0x43,0x44,0x53,0x41]),[_0x54142c([0x68,0x61,0x73,0x68])]:{[_0x54142c([0x6e,0x61,0x6d,0x65])]:_0x54142c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cdc31,_0x2f742e,_0xcfe1d7)||(_0x35746e=!0x1);}}function _0x436694(_0x4c5fb4){return _0x4c5fb4[_0x54142c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54142c([0x65,0x79]))?JSON[_0x54142c([0x70,0x61,0x72,0x73,0x65])](_0x227cdf(_0x4c5fb4)):null;}function _0x227cdf(_0xcc2377){return window[_0x54142c([0x61,0x74,0x6f,0x62])](_0xcc2377[_0x54142c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54142c([0x2b]))[_0x54142c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54142c([0x2f])));}function _0x241877(_0x312c43){let _0x1c5024=0x1505;function _0x357f50(_0x15c545){for(let _0x3dc893=0x0;_0x3dc893<_0x15c545[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dc893++){const _0x2003ad=_0x15c545[_0x54142c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dc893);_0x1c5024=(_0x1c5024<<0x5)+_0x1c5024+_0x2003ad,_0x1c5024&=_0x1c5024;}}function _0x32c138(_0x460084){Array[_0x54142c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x460084)?_0x460084[_0x54142c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32c138):_0x460084&&typeof _0x460084==_0x54142c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54142c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x460084)[_0x54142c([0x73,0x6f,0x72,0x74])]()[_0x54142c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dee4b,_0x31c719])=>{_0x357f50(_0x3dee4b),_0x32c138(_0x31c719);}):_0x357f50(window[_0x54142c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x460084));}return _0x32c138(_0x312c43),_0x1c5024>>>0x0;}function _0x157ba1(_0x50ce37){return _0x50ce37[_0x54142c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54142c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54142c([0x30]));}function _0xf3ba99(_0x446fe5){return _0x446fe5[_0x54142c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54142c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54142c([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f3f10(_0x187c51){return _0x7a8282[_0x54142c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54142c([0x68,0x61,0x73])](_0x187c51);}function _0xb085ef(_0xfc7f63){return _0x7a8282[_0x54142c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54142c([0x67,0x65,0x74])](_0xfc7f63);}function _0x3e7976(){}function _0x54142c(_0x1ee75f){return _0x1ee75f['map'](_0x57ee3c=>String['fromCharCode'](_0x57ee3c))['join']('');}_0x55c767(await _0x280ff2());}(this);}set['adapter'](_0x2fc1ec){if(this['_adapter'])throw new _0x52f81c('track-changes-adapter-already-set',this);this['_adapter']=_0x2fc1ec;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x534432=!0x1,toJSON:_0x1a4626=!0x1}={}){const _0x16ddd7=[];for(const _0x451562 of this['_suggestions']['values']())_0x534432&&!_0x451562['isInContent']||_0x16ddd7['push'](_0x451562);return _0x1a4626?_0x16ddd7['map'](_0x217b87=>_0x217b87['toJSON']()):_0x16ddd7;}['getSuggestion'](_0x552d7f){const _0x2f1bdd=this['_suggestions']['get'](_0x552d7f);if(!_0x2f1bdd)throw new _0x52f81c('track-changes-suggestion-not-found',this);return _0x2f1bdd;}['hasSuggestion'](_0xa698a1){return this['_suggestions']['has'](_0xa698a1);}['addSuggestionData'](_0xd9e106){const {authorId:_0x3ec5f0,id:_0x26582c,originalSuggestionId:_0x23eecb,attributes:_0x33b47d}=_0xd9e106,[_0x25a1d2,_0x3c2bfe]=_0xd9e106['type']['split'](':'),_0x3f8f07=this['_suggestions']['get'](_0x26582c)||this['_createSuggestion'](_0x25a1d2,_0x3c2bfe,_0x26582c,_0x3ec5f0,_0x33b47d,_0x23eecb);if(this['_addThreadToSuggestion'](_0x3f8f07),this['_checkSuggestionCorrectness'](_0x3f8f07,_0x25a1d2,_0x3c2bfe||null,_0x3ec5f0),_0x3f8f07['createdAt']=_0xd9e106['createdAt'],_0x3f8f07['_isDataLoaded']=!0x0,_0x33b47d&&_0x33b47d['@external']){const _0x449b6c=_0x33b47d['@external'],_0x58c484=this['_getExternalAuthor'](_0x449b6c['authorName']);_0x3f8f07['authoredAt']=_0x449b6c['createdAt'],_0x3f8f07['author']=_0x58c484,_0x3f8f07['isExternal']=!0x0;}else _0x3f8f07['authoredAt']=_0xd9e106['createdAt'];switch(_0xd9e106['data']&&(_0x3f8f07['data']=_0xd9e106['data']),_0xd9e106['attributes']&&(_0x3f8f07['attributes']=_0xd9e106['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f8f07['_saved']=!0x0),this['_suggestionState']['get'](_0x3f8f07)){case'notReady':this['_suggestionState']['set'](_0x3f8f07,'dataReady');break;case'markerReady':_0x3f8f07['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f8f07])),this['_refreshSuggestionsChain'](new Set([_0x3f8f07])),this['_suggestionState']['set'](_0x3f8f07,'ready'),this['fire']('suggestionLoaded',_0x3f8f07)):this['_suggestionState']['set'](_0x3f8f07,'removed');}return _0x3f8f07;}['acceptSuggestion'](_0x53480c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dd259 of _0x53480c['getAllAdjacentSuggestions']())_0x1dd259['accept']();});});}['discardSuggestion'](_0x413867){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x575f0a of _0x413867['getAllAdjacentSuggestions']())_0x575f0a['discard']();});});}['enableCommand'](_0x27ad11,_0x1ffd14){const _0x233851=this['editor']['commands']['get'](_0x27ad11);if(!_0x233851)throw new _0x52f81c('track-changes-command-not-found',this,{'commandName':_0x27ad11});if(this['_enabledCommands']['has'](_0x233851))throw new _0x52f81c('track-changes-enable-command-twice',this,{'commandName':_0x27ad11});this['_enabledCommands']['add'](_0x233851),_0x1ffd14&&_0x233851['on']('execute',(_0xfef3e5,_0x413cec)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x413cec['length']>0x0&&_0x413cec[_0x413cec['length']-0x1]&&_0x413cec[_0x413cec['length']-0x1]['forceDefaultExecution']?_0x413cec['pop']():(_0xfef3e5['return']=_0x1ffd14((..._0x375480)=>_0x233851['execute'](..._0x375480,{'forceDefaultExecution':!0x0}),..._0x413cec),_0xfef3e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2937ce){let _0x4a7058,_0x53f57d;const _0x36655d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a7058=_0x2937ce();}catch(_0x64db0d){_0x53f57d=_0x64db0d;}return _0x36655d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53f57d&&_0x52f81c['rethrowUnexpectedError'](_0x53f57d,this),_0x4a7058;}['markInsertion'](_0x521a12,_0x4cd836=null,_0x3a1bed={}){if(_0x521a12['isCollapsed'])return null;const _0x627097=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3a1bed['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x126d3a,meta:_0x5dd8a6}of this['_findSuggestions'](_0x521a12,'insertion'))if(_0x5dd8a6['isOwn']){if(!_0x5dd8a6['isNextTo']){if(_0x5dd8a6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x126d3a,_0x3a1bed))continue;return _0x126d3a;}if(ie(_0x126d3a,_0x3a1bed))return _0x126d3a;this['_breakSuggestionMarker'](_0x126d3a,_0x521a12['start'],_0x521a12['end']);break;}if(_0x4cd836==_0x126d3a['subType']&&ie(_0x126d3a,_0x3a1bed)){const _0xcf788f=_0x126d3a['getFirstRange']();return _0xcf788f['start']['isEqual'](_0x521a12['end'])?this['_setSuggestionRange'](_0x126d3a,this['_model']['createRange'](_0x521a12['start'],_0xcf788f['end'])):this['_setSuggestionRange'](_0x126d3a,this['_model']['createRange'](_0xcf788f['start'],_0x521a12['end'])),_0x126d3a;}}const _0x68db9b=_0xb1da02(),_0x5d331d=_0x627097['id'],_0x15ebbc=_0x4cd836?'insertion:'+_0x4cd836:'insertion',_0x16a8a8=this['_setSuggestionData']({'id':_0x68db9b,'type':_0x15ebbc,'createdAt':new Date(),'authorId':_0x5d331d,'attributes':_0x3a1bed});return this['_addSuggestionMarker'](_0x15ebbc,_0x68db9b,_0x5d331d,_0x521a12),_0x16a8a8;}['markMultiRangeInsertion'](_0x192b32,_0x250d2c='multi',_0x233e96={}){const _0x55d966=this['editor']['plugins']['get']('Users')['me'],_0x469394=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x250d2c,'join');this['_trackingSessionId']&&(_0x233e96['trackingSessionId']=this['_trackingSessionId']);for(const _0x2a3478 of this['getSuggestions']())if(_0x2a3478['author']['id']==_0x55d966['id']&&'insertion'==_0x2a3478['type']&&_0x2a3478['subType']==_0x250d2c&&ie(_0x2a3478,_0x233e96)&&(_0x469394(_0x2a3478['getRanges'](),_0x192b32)||_0x469394(_0x192b32,_0x2a3478['getRanges']()))){for(const _0x19b88f of _0x192b32)_0x2a3478['addRange'](_0x19b88f);return _0x2a3478;}for(const {suggestion:_0x7f61bd,meta:_0x52a630}of this['_findSuggestions'](_0x192b32,'insertion')){if(!_0x52a630['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52a630['containsRangeInObject'])continue;if(!ie(_0x7f61bd,_0x233e96))continue;let _0x505e6f=!0x0;for(const _0x480092 of _0x7f61bd['getRanges']())for(const _0xb784ef of _0x192b32)if(!_0x480092['containsRange'](_0xb784ef)){_0x505e6f=!0x1;break;}if(_0x505e6f)return _0x7f61bd;}const _0x2e0baa=_0xb1da02(),_0x3644ed=_0x55d966['id'],_0x8a7bf0='insertion:'+_0x250d2c,_0x6d5705=this['_setSuggestionData']({'id':_0x2e0baa,'type':_0x8a7bf0,'createdAt':new Date(),'authorId':_0x3644ed,'attributes':_0x233e96});for(const _0x40ea1b of _0x192b32)this['_addSuggestionMarker'](_0x8a7bf0,_0x2e0baa,_0x3644ed,_0x40ea1b,R['getMultiRangeId']());return _0x6d5705;}['markInlineFormat'](_0x59efdd,_0x1e568a,_0x4421e3=null,_0x108c68={}){if(_0x4421e3=_0x4421e3||Wt(_0x1e568a),_0x59efdd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x108c68['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xcb6d99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4421e3,'accept');return this['forceDefaultExecution'](()=>_0xcb6d99([_0x59efdd],_0x1e568a,_0x108c68)),null;}const _0x2d6900=this['editor']['plugins']['get']('Users')['me'],_0x5280ae=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5c8c91,meta:_0x5b3aab}of this['_findSuggestions'](_0x59efdd,'insertion'))_0x5b3aab['isOwn']&&!_0x5b3aab['isInsideObject']&&_0x5280ae['push'](..._0x5c8c91['getRanges']());}const _0x17b03d=function(_0x1625ab,_0x326700){const _0x31fb5f=[];for(const _0x5bae12 of _0x326700){const _0x299c69=_0x1625ab['getIntersection'](_0x5bae12);_0x299c69&&_0x31fb5f['push'](_0x299c69);}return _0x31fb5f;}(_0x59efdd,_0x5280ae),_0x2e608c=function(_0x27eff3,_0x4af381){const _0x4e0b08=[_0x27eff3];for(const _0x783aa3 of _0x4af381){let _0x3c5182=0x0;for(;_0x3c5182<_0x4e0b08['length'];){const _0x5c7b64=_0x4e0b08[_0x3c5182]['getDifference'](_0x783aa3);_0x4e0b08['splice'](_0x3c5182,0x1,..._0x5c7b64),_0x3c5182+=_0x5c7b64['length'];}}return _0x4e0b08;}(_0x59efdd,_0x5280ae);_0x17b03d['length']&&this['_model']['change'](()=>{for(const _0x30e879 of _0x17b03d){const _0x4dc774=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4421e3,'accept');this['forceDefaultExecution'](()=>_0x4dc774([_0x30e879],_0x1e568a,_0x108c68));}});for(const _0x368076 of _0x2e608c){let _0x218712=null,_0x4bb4e6=_0x368076['start'],_0x4673c7=_0x368076['end'];for(const {suggestion:_0x341bdb,meta:_0x4c9775}of this['_findSuggestions'](_0x368076,'formatInline')){if(!_0x4c9775['isOwn'])continue;if(_0x341bdb['subType']!=_0x4421e3)continue;if(!ie(_0x341bdb,_0x108c68))continue;const _0x29b4be=_0x341bdb['getFirstRange']();if(_0x29b4be['containsRange'](_0x368076,!0x0))return null;_0x4bb4e6=_0x4bb4e6['isBefore'](_0x29b4be['start'])?_0x4bb4e6:_0x29b4be['start'],_0x4673c7=_0x4673c7['isAfter'](_0x29b4be['end'])?_0x4673c7:_0x29b4be['end'],_0x218712?_0x29b4be['start']['isBefore'](_0x218712['getFirstRange']()['start'])?(_0x218712['removeMarkers'](),_0x218712=_0x341bdb):_0x341bdb['removeMarkers']():_0x218712=_0x341bdb;}const _0x25dbae=this['_model']['createRange'](_0x4bb4e6,_0x4673c7);if(_0x218712)this['_setSuggestionRange'](_0x218712,_0x25dbae);else{const _0x17bcde=_0xb1da02(),_0x190eac=_0x2d6900['id'];this['_setSuggestionData']({'id':_0x17bcde,'type':'formatInline:'+_0x4421e3,'data':_0x1e568a,'createdAt':new Date(),'authorId':_0x190eac,'attributes':_0x108c68}),this['_addSuggestionMarker']('formatInline:'+_0x4421e3,_0x17bcde,_0x190eac,_0x25dbae);}}return null;}['markBlockFormat'](_0x13bb03,_0xd59440,_0x2c61ac=[],_0x35278d=null,_0x509810={}){_0xd59440['formatGroupId']||(_0xd59440['formatGroupId']=_0xd59440['commandName']),_0xd59440['multipleBlocks']=_0x13bb03['is']('range'),_0x35278d=_0x35278d||Wt(_0xd59440);const _0x12d168=_0x2c61ac['map'](_0x2a8bb8=>Zt(_0x2a8bb8,this['_model'])),_0x463fcb=_0x13bb03['is']('range')?_0x13bb03:Zt(_0x13bb03,this['_model']);if(this['_trackingSessionId']&&(_0x509810['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11a3dd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35278d,'accept');return this['forceDefaultExecution'](()=>_0x11a3dd([_0x463fcb],_0xd59440,_0x509810)),null;}_0x12d168['push'](_0x463fcb);let _0xb7b1af=!0x0;for(const _0x13b782 of _0x12d168)if(!this['_rangeIsInLocalUserInsertion'](_0x13b782)){_0xb7b1af=!0x1;break;}if(_0xb7b1af&&'always'!==this['_trackFormatChanges']){const _0x2bf59a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35278d,'accept');return this['forceDefaultExecution'](()=>_0x2bf59a([_0x463fcb],_0xd59440,_0x509810)),null;}let _0xc8a538=null,_0x5a88a5=_0x463fcb['start'],_0x32ca76=_0x463fcb['end'];for(const {suggestion:_0x3855a9,meta:_0x265f7c}of this['_findSuggestions'](_0x463fcb,'formatBlock')){if(!_0x265f7c['isOwn'])continue;if(_0x265f7c['isNextTo']||_0x265f7c['containsRangeInObject']||_0x265f7c['isInsideObject'])continue;if(_0x3855a9['data']['formatGroupId']!=_0xd59440['formatGroupId'])continue;if(!ie(_0x3855a9,_0x509810))continue;const _0x1ef43b=_0x3855a9['getFirstRange']();if(_0x3855a9['subType']==_0x35278d){if(_0x1ef43b['containsRange'](_0x463fcb,!0x0))return null;_0x5a88a5=_0x5a88a5['isBefore'](_0x1ef43b['start'])?_0x5a88a5:_0x1ef43b['start'],_0x32ca76=_0x32ca76['isAfter'](_0x1ef43b['end'])?_0x32ca76:_0x1ef43b['end'],_0xc8a538?_0x1ef43b['start']['isBefore'](_0xc8a538['getFirstRange']()['start'])?(_0xc8a538['removeMarkers'](),_0xc8a538=_0x3855a9):_0x3855a9['removeMarkers']():_0xc8a538=_0x3855a9;}else{const _0x2adfca=_0x463fcb['getIntersection'](_0x1ef43b);this['_cutOutSuggestionMarker'](_0x3855a9,_0x2adfca);}}const _0x19566a=this['editor']['plugins']['get']('Users')['me'],_0xcbfd0=_0xb1da02(),_0x2e0d5e=_0x19566a['id'];if(_0xc8a538)return this['_setSuggestionRange'](_0xc8a538,this['_model']['createRange'](_0x5a88a5,_0x32ca76)),_0xc8a538;{const _0x4a4916=this['_setSuggestionData']({'id':_0xcbfd0,'type':'formatBlock:'+_0x35278d,'data':_0xd59440,'createdAt':new Date(),'authorId':_0x2e0d5e,'attributes':_0x509810});return this['_addSuggestionMarker']('formatBlock:'+_0x35278d,_0xcbfd0,_0x2e0d5e,this['_model']['createRange'](_0x5a88a5,_0x32ca76)),_0x4a4916;}}['markMultiRangeBlockFormat'](_0x1c40eb,_0x559ccf,_0x52807a=[],_0xf06042=null,_0x5b51cb={}){_0x559ccf['formatGroupId']||(_0x559ccf['formatGroupId']=_0x559ccf['commandName']);const _0x4e2dbd=_0x1c40eb[0x0];_0x559ccf['multipleBlocks']=_0x4e2dbd['is']('range'),_0xf06042=_0xf06042||Wt(_0x559ccf);const _0x4de07e=_0x52807a['map'](_0x242122=>Zt(_0x242122,this['_model'])),_0x4a9f4d=_0x4e2dbd['is']('range')?_0x1c40eb:_0x1c40eb['map'](_0x143904=>Zt(_0x143904,this['_model']));if(this['_trackingSessionId']&&(_0x5b51cb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3dcdfe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf06042,'accept');return this['forceDefaultExecution'](()=>_0x3dcdfe(_0x4a9f4d,_0x559ccf,_0x5b51cb)),null;}_0x4de07e['push'](..._0x4a9f4d);let _0x576d0d=!0x0;for(const _0x5e5fca of _0x4de07e)if(!this['_rangeIsInLocalUserInsertion'](_0x5e5fca)){_0x576d0d=!0x1;break;}if(_0x576d0d&&'always'!==this['_trackFormatChanges']){const _0x224ba6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf06042,'accept');return this['forceDefaultExecution'](()=>_0x224ba6(_0x4a9f4d,_0x559ccf,_0x5b51cb)),null;}const _0xd49aaf=this['editor']['plugins']['get']('Users')['me'];for(const _0x5e65ba of this['getSuggestions']()){const _0x3b50fa=_0x5e65ba['data'];if(_0x5e65ba['author']['id']!=_0xd49aaf['id'])continue;if('formatBlock'!=_0x5e65ba['type']||_0x3b50fa['formatGroupId']!=_0x559ccf['formatGroupId'])continue;if(!ie(_0x5e65ba,_0x5b51cb))continue;const _0x749ba4=_0x5e65ba['subType']==_0xf06042;for(let _0x38039c=0x0;_0x38039c<_0x4a9f4d['length'];_0x38039c++){const _0x2ab981=_0x4a9f4d[_0x38039c];for(const _0x23e044 of _0x5e65ba['getMarkers']()){const _0x5a4e40=_0x23e044['getRange']();if(_0x2ab981['isEqual'](_0x5a4e40)){_0x749ba4?(_0x4a9f4d['splice'](_0x38039c,0x1),_0x38039c--):_0x5e65ba['removeMarker'](_0x23e044['name']);break;}}}}if(0x0==_0x4a9f4d['length'])return null;const _0x412105=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf06042,'join');for(const _0x438e1e of this['getSuggestions']()){const _0x15ee60=_0x438e1e['data'];if(_0x438e1e['author']['id']==_0xd49aaf['id']&&('formatBlock'==_0x438e1e['type']&&_0x15ee60['formatGroupId']==_0x559ccf['formatGroupId']&&_0x438e1e['subType']==_0xf06042&&ie(_0x438e1e,_0x5b51cb)&&(_0x412105(_0x438e1e['getRanges'](),_0x4a9f4d)||_0x412105(_0x4a9f4d,_0x438e1e['getRanges']())))){for(const _0x3f87d3 of _0x4a9f4d)_0x438e1e['addRange'](_0x3f87d3);return _0x438e1e;}}const _0x263bd9=_0xb1da02(),_0x40b9ad=_0xd49aaf['id'],_0x3cc4ae='formatBlock:'+_0xf06042,_0x211309=this['_setSuggestionData']({'id':_0x263bd9,'type':_0x3cc4ae,'data':_0x559ccf,'createdAt':new Date(),'authorId':_0x40b9ad,'attributes':_0x5b51cb});for(const _0x37597a of _0x4a9f4d)this['_addSuggestionMarker'](_0x3cc4ae,_0x263bd9,_0x40b9ad,_0x37597a,R['getMultiRangeId']());return _0x211309;}['markDeletion'](_0x13f0fb,_0x422492=null,_0x1ee187={}){if(_0x13f0fb['isCollapsed'])return null;const _0x51f456=this['editor']['plugins']['get']('Users')['me'],_0x6523a5=new _0x5a166f(_0x13f0fb['start'],_0x13f0fb['end']);this['_trackingSessionId']&&(_0x1ee187['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x442c4b,meta:_0x2d60e5}of this['_findSuggestions'](_0x6523a5,'insertion'))if(_0x2d60e5['isOwn']&&!_0x2d60e5['isNextTo']){if(_0x442c4b['isMultiRange']){const _0x4b70b7=_0x442c4b['getRanges']()['filter'](_0x145966=>'$graveyard'!=_0x145966['root']['rootName']);_0x4b70b7['every'](_0x4c7cdd=>_0x6523a5['containsRange'](_0x4c7cdd,!0x0))&&_0x442c4b['discard']();if(_0x4b70b7['some'](_0xb3eaf5=>_0xb3eaf5['containsRange'](_0x6523a5,!0x0))){const _0x428515=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x422492,'accept');return this['forceDefaultExecution'](()=>_0x428515([_0x6523a5],null,_0x1ee187)),null;}}else{const _0x1d6c6a=_0x6523a5['getIntersection'](_0x442c4b['getFirstRange']());null!==_0x1d6c6a&&_0x442c4b['_onDiscard']([_0x1d6c6a],null,_0x1ee187);}}if(_0x6523a5['detach'](),_0x6523a5['isCollapsed']||'$graveyard'==_0x6523a5['root']['rootName'])return null;let _0x3528ab=null,_0x309250=_0x6523a5['start'],_0x251055=_0x6523a5['end'];const _0x23abef=this['_findSuggestions'](_0x6523a5,'deletion');for(const {suggestion:_0x37e63e,meta:_0x566bf2}of _0x23abef){const _0x33b34a=this['_model']['createRange'](_0x309250,_0x251055);if(_0x566bf2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x566bf2['containsRangeInObject']&&!_0x566bf2['isInsideObject'])){if(_0x37e63e['isMultiRange']){if(!ie(_0x37e63e,_0x1ee187))continue;let _0x3f04ca=!0x0;for(const _0x15f2ff of _0x37e63e['getRanges']()){if(_0x15f2ff['containsRange'](_0x33b34a,!0x0))return _0x37e63e;_0x33b34a['containsRange'](_0x15f2ff)||(_0x3f04ca=!0x1);}_0x3f04ca&&_0x37e63e['discard']();}else{const _0x3d6944=_0x37e63e['getFirstRange']();if(_0x3d6944['containsRange'](_0x33b34a,!0x0))return _0x37e63e;if(!ie(_0x37e63e,_0x1ee187)){_0x33b34a['containsRange'](_0x3d6944)?_0x37e63e['removeMarkers']():_0x3d6944['containsPosition'](_0x309250)?_0x309250=_0x3d6944['end']:_0x3d6944['containsPosition'](_0x251055)&&(_0x251055=_0x3d6944['start']);continue;}_0x309250=_0x309250['isBefore'](_0x3d6944['start'])?_0x309250:_0x3d6944['start'],_0x251055=_0x251055['isAfter'](_0x3d6944['end'])?_0x251055:_0x3d6944['end'],_0x1ee187=Object['assign']({},_0x37e63e['attributes']),_0x3528ab?_0x3d6944['start']['isBefore'](_0x3528ab['getFirstRange']()['start'])?(_0x3528ab['removeMarkers'](),_0x3528ab=_0x37e63e):_0x37e63e['removeMarkers']():_0x3528ab=_0x37e63e;}}}if(_0x3528ab)return this['_setSuggestionRange'](_0x3528ab,this['_model']['createRange'](_0x309250,_0x251055)),_0x3528ab;{const _0x3b2512=_0xb1da02(),_0x3575d3=this['_model']['createRange'](_0x309250,_0x251055),_0x11f588=_0x51f456['id'],_0x51e37e=_0x422492?'deletion:'+_0x422492:'deletion',_0x264774=this['_setSuggestionData']({'id':_0x3b2512,'type':_0x51e37e,'createdAt':new Date(),'authorId':_0x11f588,'attributes':_0x1ee187});return this['_addSuggestionMarker'](_0x51e37e,_0x3b2512,_0x11f588,_0x3575d3),_0x264774;}}['markMultiRangeDeletion'](_0x2e6ca5,_0x59ba0d='multi',_0x5346d1={}){const _0x309a7e=this['editor']['plugins']['get']('Users')['me'],_0x44fe17=_0x2e6ca5['map'](_0x12f69c=>new _0x5a166f(_0x12f69c['start'],_0x12f69c['end'])),_0x3a7db0=new Set();this['_trackingSessionId']&&(_0x5346d1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5f5b91,meta:_0x566e8c}of this['_findSuggestions'](_0x44fe17,'insertion'))_0x566e8c['isOwn']&&!_0x566e8c['isNextTo']&&_0x3a7db0['add'](_0x5f5b91);for(const _0x54196c of _0x3a7db0)if(_0x54196c['isMultiRange']){const _0x4ca24a=_0x54196c['getRanges']();(!_0x54196c['attributes']||!_0x54196c['attributes']['skipNestingCheck'])&&(_0x4ca24a['every'](_0x42dc4d=>_0x44fe17['some'](_0x4644f1=>_0x4644f1['containsRange'](_0x42dc4d,!0x0)))&&_0x54196c['discard']());if(_0x44fe17['every'](_0x43110b=>_0x4ca24a['some'](_0xb7c91f=>_0xb7c91f['containsRange'](_0x43110b,!0x0)))){const _0x53f8a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59ba0d,'accept');return this['forceDefaultExecution'](()=>_0x53f8a9(_0x2e6ca5,null,_0x5346d1)),null;}}else{const _0x5553cf=_0x54196c['getFirstRange']();_0x44fe17['some'](_0x41285c=>_0x41285c['containsRange'](_0x5553cf,!0x0))&&_0x54196c['discard']();if(_0x44fe17['every'](_0x2c8834=>_0x5553cf['containsRange'](_0x2c8834,!0x0))){const _0x537fc2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59ba0d,'accept');return this['forceDefaultExecution'](()=>_0x537fc2(_0x44fe17,null,_0x5346d1)),null;}}const _0x243662=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59ba0d,'join');let _0x183e60=null;for(const _0x337ed1 of this['getSuggestions']())if(_0x337ed1['author']['id']==_0x309a7e['id']&&_0x337ed1['isInContent']&&'deletion'==_0x337ed1['type']&&_0x337ed1['subType']==_0x59ba0d&&ie(_0x337ed1,_0x5346d1)&&(_0x243662(_0x337ed1['getRanges'](),_0x44fe17)||_0x243662(_0x44fe17,_0x337ed1['getRanges']()))){if(_0x183e60){if(_0x337ed1['commentThread']&&_0x337ed1['commentThread']['length'])continue;for(const _0x3d5a84 of _0x337ed1['getRanges']())_0x183e60['isIntersectingWithRange'](_0x3d5a84)||_0x183e60['addRange'](_0x3d5a84);_0x337ed1['removeMarkers']();}else{_0x183e60=_0x337ed1;for(const _0x57a5d1 of _0x44fe17)_0x337ed1['isIntersectingWithRange'](_0x57a5d1)||_0x337ed1['addRange'](_0x57a5d1);}}if(_0x183e60)return _0x183e60;_0x3a7db0['clear']();for(const {suggestion:_0x146e5d,meta:_0x5114e5}of this['_findSuggestions'](_0x44fe17,'deletion'))_0x5114e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5114e5['containsRangeInObject']&&!_0x5114e5['isInsideObject'])&&ie(_0x146e5d,_0x5346d1)&&_0x3a7db0['add'](_0x146e5d);for(const _0x3d17f3 of _0x3a7db0){const _0x190807=_0x3d17f3['getRanges']();if(!_0x5346d1||!_0x5346d1['skipNestingCheck']){if(_0x44fe17['every'](_0x4e8173=>_0x190807['some'](_0x43ccd5=>_0x43ccd5['containsRange'](_0x4e8173,!0x0))))return _0x3d17f3;}(!_0x3d17f3['attributes']||!_0x3d17f3['attributes']['skipNestingCheck'])&&(_0x190807['every'](_0xde4bdf=>_0x44fe17['some'](_0x390546=>_0x390546['containsRange'](_0xde4bdf,!0x0)))&&_0x3d17f3['discard']());}const _0x299f30=_0xb1da02(),_0x4c4f12=_0x309a7e['id'],_0x4c81fb='deletion:'+_0x59ba0d,_0x201312=this['_setSuggestionData']({'id':_0x299f30,'type':_0x4c81fb,'createdAt':new Date(),'authorId':_0x4c4f12,'attributes':_0x5346d1});for(const _0x361453 of _0x44fe17)_0x361453['detach'](),_0x361453['isCollapsed']||'$graveyard'==_0x361453['root']['rootName']||this['_addSuggestionMarker'](_0x4c81fb,_0x299f30,_0x4c4f12,_0x361453,R['getMultiRangeId']());return _0x201312;}['markAttributeChange'](_0x326e94,_0x1ebda5,_0x3446ec,_0xca6aac,_0x19e768){if(_0x326e94['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x37fbb1=this['editor']['plugins']['get']('Users')['me']['id'],_0xb3162f=Array['from'](this['_suggestions']['values']())['filter'](_0x4c4b44=>'attribute'==_0x4c4b44['type']&&_0x4c4b44['data']['key']==_0x1ebda5&&_0x4c4b44['isIntersectingWithRange'](_0x326e94));if(this['_trackingSessionId']&&(_0x19e768['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3c9e31=this['_findSuggestions'](_0x326e94,'insertion')['filter'](({meta:_0x5a1492})=>_0x5a1492['isOwn']&&!_0x5a1492['isInsideObject']&&!_0x5a1492['isNextTo'])['map'](({suggestion:_0x39bab7})=>_0x39bab7);_0xb3162f['unshift'](..._0x3c9e31);}const _0x51ee3d=new Map([[_0x326e94,_0x3446ec]]);for(const _0x557407 of _0xb3162f){const _0x247105='attribute'==_0x557407['type']?_0x557407['data']['oldValue']:void 0x0,_0x76860d=_0x557407['getFirstRange'](),_0x5d3696=Array['from'](_0x51ee3d['keys']())['find'](_0x2b199b=>_0x2b199b['isIntersecting'](_0x76860d));if(!_0x5d3696)continue;const _0x5a6f98=_0x5d3696['getDifference'](_0x76860d);this['_isBlockAttribute'](_0x1ebda5)&&'insertion'==_0x557407['type']&&0x0!=_0x5a6f98['length']||(_0x51ee3d['delete'](_0x5d3696),_0x5a6f98['forEach'](_0x9f5bac=>{_0x51ee3d['set'](_0x9f5bac,_0x3446ec);}),'insertion'!=_0x557407['type']&&_0x247105!=_0xca6aac&&_0x51ee3d['set'](_0x5d3696['getIntersection'](_0x76860d),_0x247105));}const _0x483b2b=[];for(const [_0x3fb79e,_0x3794d7]of _0x51ee3d){const _0xd7e11b=_0xb1da02(),_0xdcdffd={'key':_0x1ebda5,'oldValue':_0x3794d7,'newValue':_0xca6aac};_0x1ebda5['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':_0x1ebda5});const _0x41be21=('attribute:'+(_0x1ebda5+'|'+Wt({'newValue':_0xca6aac})))['substring'](0x0,0x3c),_0x537a4e=this['_setSuggestionData']({'id':_0xd7e11b,'type':_0x41be21,'data':_0xdcdffd,'createdAt':new Date(),'authorId':_0x37fbb1,'attributes':_0x19e768});_0x483b2b['push'](_0x537a4e),this['_addSuggestionMarker'](_0x41be21,_0xd7e11b,_0x37fbb1,_0x3fb79e);}return _0x483b2b;}['enableDefaultAttributesIntegration'](_0x4002b8){this['enableCommand'](_0x4002b8,(_0x442038,..._0x140f3a)=>{this['recordAttributeChanges'](()=>{_0x442038(..._0x140f3a);});});}['registerBlockAttribute'](_0x24dd15){this['_blockAttributeKeys']['add'](_0x24dd15);}['registerInlineAttribute'](_0x5efdcf){this['_inlineAttributeKeys']['add'](_0x5efdcf);}['startTrackingSession'](_0x58c4c1){return this['_trackingSessionId']=void 0x0!==_0x58c4c1?_0x58c4c1:_0xb1da02(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1d77ec){return'attribute'==_0x1d77ec['type']?se(_0x1d77ec['subType']):null;}['_applyOperationsAsSuggestions'](_0x1c715f){if(0x0==_0x1c715f['length'])return;const _0x13345e=this['editor'],_0x2dafb1=_0x13345e['plugins']['get'](_0x1e0249);let _0x30693e=!0x0;for(const _0x1a3ab6 in _0x1c715f[0x0]){const _0x159ac7=_0x1c715f[0x0][_0x1a3ab6];if((_0x159ac7 instanceof _0x120719||_0x159ac7 instanceof _0xceba9f)&&_0x159ac7['root']['is']('documentFragment')){_0x30693e=!0x1;break;}}_0x13345e['model']['change'](_0x3b6fdd=>{const _0x3d1100=new Set();for(const _0x44cee0 of _0x1c715f)if(_0x44cee0['baseVersion']=_0x30693e?_0x13345e['model']['document']['version']:null,_0x44cee0['isDocumentOperation']=_0x30693e,_0x2dafb1['isMarkedRemoveOperation'](_0x44cee0)){const _0x52cfe4=Xt(_0x44cee0['newRange'],_0x13345e['model']);if(_0x30693e)this['markDeletion'](_0x52cfe4);else{const _0x56422f='suggestion:deletion:id:authorId:'+_0xb1da02();_0x52cfe4['root']['markers']['set'](_0x56422f,_0x52cfe4);}}else switch(_0x44cee0['type']){case'rename':{const _0x5b2327=_0x44cee0['oldName'],_0x5a3ac0=_0x44cee0['newName'];if(_0x5b2327==_0x5a3ac0)break;_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x267a8b='$elementName',_0x2c6706=_0x44cee0['position'],_0x38ddb0=_0x13345e['model']['createRange'](_0x2c6706,_0x13345e['model']['createPositionAt'](_0x2c6706['nodeAfter'],'end'));if(_0x30693e)this['markAttributeChange'](_0x38ddb0,_0x267a8b,_0x5b2327,_0x5a3ac0,{'groupId':_0xb1da02()});else{const _0x241ffb='suggestion:attribute:'+_0x267a8b+':id:authorId:'+_0xb1da02();_0x38ddb0['root']['markers']['set'](_0x241ffb,_0x38ddb0);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2b944d=_0x44cee0['oldValue'],_0x53d134=_0x44cee0['newValue'];if(_0x2b944d==_0x53d134)break;_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x172c8f=_0x44cee0['key'];if(!this['_isRegisteredAttribute'](_0x172c8f))break;const _0x5b1b92=Xt(_0x44cee0['range'],_0x13345e['model']);if(_0x30693e)this['markAttributeChange'](_0x5b1b92,_0x172c8f,_0x2b944d,_0x53d134,{'groupId':_0xb1da02()});else{const _0x3286ea='suggestion:attribute:'+_0x172c8f+':id:authorId:'+_0xb1da02();_0x5b1b92['root']['markers']['set'](_0x3286ea,_0x5b1b92);}break;}case'insert':{_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x1a8aed=_0x44cee0['position'],_0x4d848d=_0x44cee0['howMany'],_0x477c70=Xt(_0x13345e['model']['createRange'](_0x1a8aed,_0x1a8aed['getShiftedBy'](_0x4d848d)),_0x13345e['model']);if(_0x30693e)this['markInsertion'](_0x477c70);else{const _0x3ec5a5='suggestion:insertion:id:authorId:'+_0xb1da02();_0x477c70['root']['markers']['set'](_0x3ec5a5,_0x477c70);}break;}case'split':{_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x51d68e=_0x44cee0['splitPosition'],_0x4a3f95=_0x44cee0['moveTargetPosition'],_0x1ea5b2=_0x13345e['model']['createRange'](_0x51d68e,_0x4a3f95);if(_0x30693e)this['markInsertion'](_0x13345e['model']['createRange'](_0x51d68e,_0x4a3f95));else{const _0xbce63c='suggestion:insertion:id:authorId:'+_0xb1da02();_0x1ea5b2['root']['markers']['set'](_0xbce63c,_0x1ea5b2);}break;}case'move':if(_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0),!_0x30693e){const _0x5120e4=_0x44cee0['getMovedRangeStart'](),_0x225b4d=_0x44cee0['howMany'];for(let _0x30ad42=0x0;_0x30ad42<_0x225b4d;_0x30ad42++){const _0x5df934=_0x5120e4['getShiftedBy'](_0x30ad42)['nodeAfter'];_0x3d1100['add'](_0x5df934);}}break;case'remove':if(_0x30693e)_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);else{const _0x5a3a3f=_0x44cee0['sourcePosition'],_0x576992=_0x44cee0['howMany'],_0x5b91b8=new _0xdeb023(_0x5a3a3f,_0x576992);_0x3b6fdd['batch']['addOperation'](_0x5b91b8),_0x13345e['model']['applyOperation'](_0x5b91b8);}}for(const _0x23a712 of _0x3d1100){const _0x522c84=_0x13345e['model']['createRangeOn'](_0x23a712),_0x4d6df3='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0xb1da02();_0x522c84['root']['markers']['set'](_0x4d6df3,Xt(_0x522c84,_0x13345e['model']));}});}['_setSuggestionRange'](_0x3595d0,_0x5c90e1){const _0x201690=_0x3595d0['getFirstMarker']();this['_model']['change'](_0x1db5dc=>{_0x1db5dc['updateMarker'](_0x201690,{'range':_0x5c90e1});});}['_addThreadToSuggestion'](_0x314744){const _0x2b7a76=_0x314744['id'],_0x438fd3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2b7a76)||this['_commentsRepository']['addCommentThread']({'channelId':_0x438fd3,'threadId':_0x2b7a76,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b0ab0=this['_commentsRepository']['getCommentThread'](_0x2b7a76);_0x2b0ab0['unbind']('isRemovable'),_0x2b0ab0['isRemovable']=!0x1,_0x314744['commentThread']=_0x2b0ab0;}['_checkSuggestionCorrectness'](_0x41771f,_0x496993,_0x126cc3,_0x120d26){if(_0x41771f['type']!=_0x496993||_0x41771f['subType']!=_0x126cc3||_0x41771f['creator']['id']!=_0x120d26)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52f81c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x18a235,_0x478a96){const _0x249567=_0x18a235['getFirstRange']();if(_0x478a96['isEqual'](_0x249567))_0x18a235['removeMarkers']();else{if(_0x249567['containsRange'](_0x478a96)){const _0x1d71bf=this['_model']['createPositionAt'](_0x478a96['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18a235,this['_model']['createRange'](_0x249567['start'],_0x1d71bf));const _0x1ac04d=_0xb1da02(),_0x25e8c5=_0x18a235['creator']['id'],_0xf69f0c=_0x18a235['type']+':'+_0x18a235['subType'];this['_setSuggestionData']({'id':_0x1ac04d,'type':_0xf69f0c,'createdAt':new Date(),'authorId':_0x25e8c5,'data':_0x18a235['data'],'attributes':_0x18a235['attributes']});const _0x4b2113=this['_model']['createPositionAt'](_0x478a96['end']['parent'],'after'),_0x19bfcb=this['_model']['createRange'](_0x4b2113,_0x249567['end']);this['_addSuggestionMarker'](_0xf69f0c,_0x1ac04d,_0x25e8c5,_0x19bfcb);}else{if(_0x249567['containsPosition'](_0x478a96['start'])){const _0xacffe7=this['_model']['createPositionAt'](_0x478a96['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18a235,this['_model']['createRange'](_0x249567['start'],_0xacffe7));}else{const _0x29002d=this['_model']['createPositionAt'](_0x478a96['end']['parent'],'after');this['_setSuggestionRange'](_0x18a235,this['_model']['createRange'](_0x29002d,_0x249567['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x56a785){for(const {suggestion:_0xd407fc,meta:_0x59d92f}of this['_findSuggestions'](_0x56a785,'insertion')){if(!_0x59d92f['isOwn'])continue;const _0x1ba8f0=_0xd407fc['getRanges']();for(const _0x23ceb5 of _0x1ba8f0)if(!_0x56a785['getDifference'](_0x23ceb5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5201e7){return this['editor']['plugins']['get']('Users')['getUser'](_0x5201e7);}['_getExternalAuthor'](_0x25ebe9){const _0x299d7a=this['editor']['plugins']['get']('Users'),_0x5c56f4=_0x4f7d6e('external:'+_0x25ebe9),_0x3a6c41=_0x299d7a['getUser'](_0x5c56f4);return _0x3a6c41||_0x299d7a['addUser']({'id':_0x5c56f4,'name':_0x25ebe9});}['_createSuggestion'](_0x2cd8df,_0xcdea17,_0x3679ed,_0x2e3df1,_0x2f9388,_0x4eae27){const _0x404bca=this['_getAuthorFromId'](_0x2e3df1);if(!_0x404bca)throw new _0x52f81c('track-changes-user-not-found',this,{'authorId':_0x2e3df1,'suggestionId':_0x3679ed});const _0x4d7288=this['_suggestionFactory']['buildSuggestion'](_0x2cd8df,_0xcdea17,_0x3679ed,_0x404bca,_0x2f9388,_0x434878=>{this['_updateSuggestionData'](_0x3679ed,{'attributes':_0x434878});const _0x3912b4=this['getSuggestion'](_0x3679ed);this['_joinWithAdjacentSuggestions'](new Set([_0x3912b4])),this['_refreshSuggestionsChain'](new Set([_0x3912b4]));},_0x4eae27);return this['listenTo'](_0x4d7288,'accept',()=>{this['_updateSuggestionData'](_0x3679ed,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d7288,'discard',()=>{this['_updateSuggestionData'](_0x3679ed,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3679ed,_0x4d7288),this['_suggestionState']['set'](_0x4d7288,'notReady'),_0x4d7288;}['_splitMarkerName'](_0xc7c13c){const _0x1f26e6=_0xc7c13c['split'](':');return{'group':_0x1f26e6[0x0],'type':_0x1f26e6[0x1],'subType':_0x1f26e6['length']>=0x5?_0x1f26e6[0x2]:null,'id':_0x1f26e6['length']<0x5?_0x1f26e6[0x2]:_0x1f26e6[0x3],'authorId':_0x1f26e6['length']<0x5?_0x1f26e6[0x3]:_0x1f26e6[0x4],'markerCount':0x6==_0x1f26e6['length']?_0x1f26e6[0x5]:null};}['_breakSuggestionMarker'](_0x4f53b7,_0x3c4d3c,_0x14bb75){const _0x26acc0=_0x4f53b7['getFirstRange'](),_0x11dac9=_0x26acc0['start'],_0x414031=_0x26acc0['end'];this['_setSuggestionRange'](_0x4f53b7,this['_model']['createRange'](_0x11dac9,_0x3c4d3c));const _0x54d40b=_0xb1da02(),_0x48b043=_0x4f53b7['creator']['id'],_0x4a3d18=_0x4f53b7['type']+(_0x4f53b7['subType']?':'+_0x4f53b7['subType']:'');this['_setSuggestionData']({'id':_0x54d40b,'type':_0x4a3d18,'createdAt':new Date(),'authorId':_0x48b043,'originalSuggestionId':_0x4f53b7['_originalSuggestionId']||_0x4f53b7['id'],'attributes':_0x4f53b7['attributes'],'data':_0x4f53b7['data']});const _0x49c6db=this['_getAttributeKey'](_0x4f53b7);('formatBlock'==_0x4f53b7['type']||_0x49c6db&&this['_isBlockAttribute'](_0x49c6db))&&(_0x14bb75=this['_model']['createPositionBefore'](_0x14bb75['parent'])),this['_addSuggestionMarker'](_0x4a3d18,_0x54d40b,_0x48b043,this['_model']['createRange'](_0x14bb75,_0x414031));}['_findSuggestions'](_0x2df306,_0x5e51b2=null){const _0x1cf978=[],_0x4348d0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2df306)||(_0x2df306=[_0x2df306]);for(const _0xda65c9 of this['getSuggestions']()){if(!_0xda65c9['isInContent'])continue;if(_0x5e51b2&&_0xda65c9['type']!=_0x5e51b2)continue;let _0x367861=!0x1;for(const _0x49e543 of _0xda65c9['getRanges']()){for(const _0xc3e3bd of _0x2df306){const _0x8af57=_0xc3e3bd['start']['isEqual'](_0x49e543['end'])||_0xc3e3bd['end']['isEqual'](_0x49e543['start']);if(_0x8af57||_0xc3e3bd['getIntersection'](_0x49e543)){const _0x292577=_0xc3e3bd['containsRange'](_0x49e543)&&Jt(this['_model']['schema'],_0x49e543['start'],_0xc3e3bd),_0x5b43b1=_0x49e543['containsRange'](_0xc3e3bd)&&Jt(this['_model']['schema'],_0xc3e3bd['start'],_0x49e543);_0x1cf978['push']({'suggestion':_0xda65c9,'meta':{'isOwn':_0x4348d0==_0xda65c9['author'],'isNextTo':_0x8af57,'isInsideObject':_0x292577,'containsRangeInObject':_0x5b43b1}}),_0x367861=!0x0;break;}}if(_0x367861)break;}}return _0x1cf978;}['_addSuggestionMarker'](_0x37af4b,_0x41c25d,_0x5b1d48,_0x7ded62,_0x4fa3a4){this['_model']['change'](_0x4622f2=>{let _0x1b9a3a='suggestion:'+_0x37af4b+':'+_0x41c25d+':'+_0x5b1d48;_0x4fa3a4&&(_0x1b9a3a=_0x1b9a3a+':'+_0x4fa3a4),_0x4622f2['addMarker'](_0x1b9a3a,{'range':_0x7ded62,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3256bc){const _0x17886a=_0x3256bc['previous'],_0x5ce788=_0x3256bc['next'];_0x3256bc['previous']=null,_0x3256bc['next']=null,null!=_0x17886a&&_0x17886a['next']==_0x3256bc&&(_0x17886a['next']=_0x5ce788),null!=_0x5ce788&&_0x5ce788['previous']==_0x3256bc&&(_0x5ce788['previous']=_0x17886a),'ready'==this['_suggestionState']['get'](_0x3256bc)&&(this['_suggestionState']['set'](_0x3256bc,'removed'),this['fire']('suggestionUnloaded',_0x3256bc,_0x17886a,_0x5ce788));}['_setSuggestionData'](_0x516272){const _0x209bbe=_0x516272['id'],_0x2e5b24=this['addSuggestionData'](_0x516272);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5af588=this['editor']['plugins']['get']('PendingActions'),_0x311b92=_0x2e5b24['hasComments'],_0x4c74f3=_0x2e5b24['subType']?_0x2e5b24['type']+':'+_0x2e5b24['subType']:_0x2e5b24['type'],_0xc3eb41=this['editor']['locale'],_0x2ff9a3=_0x5af588['add'](o(_0xc3eb41,'PENDING_ACTION_SUGGESTION')),_0xb862fc={'id':_0x209bbe,'type':_0x4c74f3,'hasComments':_0x311b92,'data':_0x516272['data']||null,'originalSuggestionId':_0x516272['originalSuggestionId']||null,'attributes':_0x2e5b24['attributes']};this['_adapter']['addSuggestion'](_0xb862fc)['then'](_0x50c7cb=>{_0x2e5b24['_saved']=!0x0,_0x5af588['remove'](_0x2ff9a3),_0x50c7cb&&_0x50c7cb['createdAt']&&(this['_suggestions']['get'](_0x209bbe)['createdAt']=_0x50c7cb['createdAt']);})['catch'](_0x1c5b18=>{throw _0x474c47('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e5b24['discard']();}),_0x2e5b24['stopListening'](),this['_suggestions']['delete'](_0x2e5b24['id']),this['_suggestionState']['delete'](_0x2e5b24),_0x1c5b18;});}return _0x2e5b24;}['_isBlockAttribute'](_0x52d3e9){return this['_blockAttributeKeys']['has'](_0x52d3e9);}['_isInlineAttribute'](_0x21c933){return this['_inlineAttributeKeys']['has'](_0x21c933);}['_updateSuggestionData'](_0x467e7f,_0x1d67e7){const _0x55a0ff=this['editor']['plugins']['get']('PendingActions'),_0x171d3a=this['getSuggestion'](_0x467e7f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x171d3a['_saved']){const _0x5e13c9=_0x55a0ff['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x467e7f,_0x1d67e7)['then'](()=>{_0x55a0ff['remove'](_0x5e13c9);});}else _0x171d3a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x467e7f,_0x1d67e7);});}}['_getSuggestionData'](_0x1225ba){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52f81c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1225ba);}['_handleNewSuggestionMarker'](_0x15cb98){const {id:_0x4c0298,type:_0x464ecb,subType:_0x4316cc,authorId:_0x50487f}=this['_splitMarkerName'](_0x15cb98),_0x11a296=this['_suggestions']['get'](_0x4c0298)||this['_createSuggestion'](_0x464ecb,_0x4316cc,_0x4c0298,_0x50487f,{});switch(this['_checkSuggestionCorrectness'](_0x11a296,_0x464ecb,_0x4316cc,_0x50487f),this['_suggestionState']['get'](_0x11a296)){case'notReady':this['_getSuggestionData'](_0x4c0298)['then'](_0x15bfe9=>{let _0x2b6b20=Promise['resolve']();_0x15bfe9['hasComments']&&(_0x2b6b20=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c0298})),_0x2b6b20['then'](()=>{this['addSuggestionData'](_0x15bfe9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11a296,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c0298,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11a296,'ready'),this['fire']('suggestionLoaded',_0x11a296);break;case'ready':this['fire']('suggestionChanged',_0x11a296);}return _0x11a296['addMarkerName'](_0x15cb98),_0x11a296;}['_refreshSuggestionsChain'](_0x4e6437){const _0x5a43da=Array['from'](_0x4e6437),_0x15f5c0=_0x5a43da['filter'](_0x8f7b4b=>'attribute'==_0x8f7b4b['type']);this['_refreshAttributeSuggestionsChain'](_0x15f5c0);const _0x4a9b6e=_0x5a43da['filter'](_0x15ff8b=>!_0x15ff8b['isMultiRange']&&'attribute'!=_0x15ff8b['type']),_0x20ca3b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x159b54=>!_0x159b54['isMultiRange']&&'attribute'!=_0x159b54['type']),_0x155a61=_0x20ca3b['filter'](_0x24f420=>!_0x4e6437['has'](_0x24f420)),_0x56b753=new Map(_0x20ca3b['map'](_0x322f8c=>[_0x322f8c,this['_suggestionFactory']['getSuggestionCallback'](_0x322f8c['type'],_0x322f8c['subType'],'chain')])),_0x2060d0=new Map(_0x20ca3b['map'](_0x1e3f2c=>[_0x1e3f2c,_0x1e3f2c['getFirstRange']()])),_0x317cef=new Set(),_0x177bdc=new Set();for(let _0x549168=0x0;_0x549168<_0x4a9b6e['length'];_0x549168++)_0x517e51(_0x4a9b6e[_0x549168],_0x4a9b6e,_0x549168+0x1);for(let _0x1259b5=0x0;_0x1259b5<_0x4a9b6e['length'];_0x1259b5++)_0x517e51(_0x4a9b6e[_0x1259b5],_0x155a61,0x0);const _0x29ddd5=new Set();for(let _0x4f18b7=0x0;_0x4f18b7<_0x4a9b6e['length'];_0x4f18b7++){const _0x1ddde6=_0x4a9b6e[_0x4f18b7];!_0x177bdc['has'](_0x1ddde6)&&_0x1ddde6['previous']&&(_0x29ddd5['add'](_0x1ddde6['previous']),_0x1ddde6['previous']['next']===_0x1ddde6&&(_0x1ddde6['previous']['next']=null),_0x1ddde6['previous']=null),!_0x317cef['has'](_0x1ddde6)&&_0x1ddde6['next']&&(_0x29ddd5['add'](_0x1ddde6['next']),_0x1ddde6['next']['previous']===_0x1ddde6&&(_0x1ddde6['next']['previous']=null),_0x1ddde6['next']=null);}function _0x517e51(_0x26bd2f,_0x3af535,_0x43f867){for(let _0x6d34b6=_0x43f867;_0x6d34b6<_0x3af535['length'];_0x6d34b6++){const _0x1ed198=_0x28adae(_0x26bd2f,_0x3af535[_0x6d34b6]);_0x1ed198&&(_0x1ed198[0x0]['next']=_0x1ed198[0x1],_0x1ed198[0x1]['previous']=_0x1ed198[0x0],_0x317cef['add'](_0x1ed198[0x0]),_0x177bdc['add'](_0x1ed198[0x1]));}}function _0x28adae(_0x5672ff,_0x217e1b){if(_0x5672ff['author']['id']!==_0x217e1b['author']['id'])return null;const _0xa16b07=_0x56b753['get'](_0x5672ff)(_0x5672ff,_0x217e1b,_0x2060d0['get'](_0x5672ff),_0x2060d0['get'](_0x217e1b));if(!_0xa16b07)return null;return _0x56b753['get'](_0x217e1b)(_0x5672ff,_0x217e1b,_0x2060d0['get'](_0x5672ff),_0x2060d0['get'](_0x217e1b))?_0xa16b07[0x1]['commentThread']&&_0xa16b07[0x1]['commentThread']['length']?null:_0xa16b07:null;}_0x29ddd5['size']&&this['_refreshSuggestionsChain'](_0x29ddd5);}['_refreshAttributeSuggestionsChain'](_0x1b9adc){if(0x0==_0x1b9adc['length'])return;const _0x397ea6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x189ab8=>'attribute'==_0x189ab8['type']&&_0x189ab8['_isDataLoaded']),_0x13367d=[],_0x46d3a5=new Map();for(const _0x35fd0d of _0x397ea6){const _0x530e16=_0x4f7d6e(_0x35fd0d['attributes']);_0x46d3a5['has'](_0x530e16)||(_0x46d3a5['set'](_0x530e16,_0x13367d['length']),_0x13367d['push']([]));const _0x2dd7dc=_0x46d3a5['get'](_0x530e16);_0x13367d[_0x2dd7dc]['push'](_0x35fd0d);}!(function(){_0x13367d['sort']((_0x18cbae,_0xd83a6d)=>{const _0x599009=_0x18cbae[0x0]['createdAt'],_0x48fb4c=_0xd83a6d[0x0]['createdAt'];return _0x599009==_0x48fb4c?_0x18cbae[0x0]['attributes']['groupId']<_0xd83a6d[0x0]['attributes']['groupId']?-0x1:0x1:_0x599009<_0x48fb4c?-0x1:0x1;});for(const _0x347358 of _0x13367d)_0x347358['sort']((_0x3522f9,_0x45491e)=>_0x3522f9['id']<_0x45491e['id']?-0x1:0x1);}());for(let _0x249378=0x0;_0x249378<_0x13367d['length'];_0x249378++){if(0x0==_0x13367d[_0x249378]['length'])continue;const _0x445463=[];for(let _0x58d7c3=_0x249378+0x1;_0x58d7c3<_0x13367d['length'];_0x58d7c3++)0x0!=_0x13367d[_0x58d7c3]['length']&&_0x5bc82e(_0x13367d[_0x249378],_0x13367d[_0x58d7c3])&&_0x445463['push'](_0x58d7c3);for(const _0x2a85c5 of _0x445463)_0x13367d[_0x249378]=_0x13367d[_0x249378]['concat'](_0x13367d[_0x2a85c5]),_0x13367d[_0x2a85c5]=[];}for(const _0x589bbc of _0x13367d)for(let _0x26d3c0=0x0;_0x26d3c0<_0x589bbc['length'];_0x26d3c0++){const _0x5a9be1=_0x589bbc[_0x26d3c0+0x1]||null;_0x589bbc[_0x26d3c0]['next']!==_0x5a9be1&&(_0x589bbc[_0x26d3c0]['next']=_0x5a9be1);}for(const _0x33e227 of _0x13367d)for(let _0x1571dc=0x0;_0x1571dc<_0x33e227['length'];_0x1571dc++){const _0x4753b0=_0x33e227[_0x1571dc-0x1]||null;_0x33e227[_0x1571dc]['previous']!==_0x4753b0&&(_0x33e227[_0x1571dc]['previous']=_0x4753b0);}function _0x5bc82e(_0x4e7a5f,_0x5c6829){if(_0x4e7a5f[0x0]['attributes']['groupId']!==_0x5c6829[0x0]['attributes']['groupId']&&_0x4e7a5f[0x0]['author']!==_0x5c6829[0x0]['author'])return!0x1;if(!function(_0x438524,_0x20525f){if(!_0x438524['hasComments']&&!_0x20525f['hasComments'])return!0x0;if(_0x438524['hasComments']&&_0x20525f['hasComments'])return!0x1;if(_0x438524['hasComments']&&_0x20525f['createdAt']<_0x438524['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20525f['hasComments']&&_0x438524['createdAt']<_0x20525f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4e7a5f[0x0],_0x5c6829[0x0]))return!0x1;const _0x3ef20c=Gt(_0x4e7a5f[0x0]['attributes'],['groupId','trackingSessionId']),_0x4a6397=Gt(_0x5c6829[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3b563a(_0x3ef20c,_0x4a6397))return!0x1;if(_0x4e7a5f[0x0]['attributes']['groupId']==_0x5c6829[0x0]['attributes']['groupId'])return!0x0;if(_0x4e7a5f[0x0]['attributes']['trackingSessionId']!==_0x5c6829[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4e7a5f['every'](_0x5b1521=>_0x5c6829['some'](_0x585ca0=>_0x5b1521['getFirstRange']()['isEqual'](_0x585ca0['getFirstRange']())))&&_0x5c6829['every'](_0x3d424f=>_0x4e7a5f['some'](_0x4b4e4c=>_0x3d424f['getFirstRange']()['isEqual'](_0x4b4e4c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x302898){const _0x3d32b2=Array['from'](_0x302898),_0x30637b=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa5e7cc=_0x30637b['filter'](_0x5f21ed=>!_0x302898['has'](_0x5f21ed)),_0x32110b=new Map(_0x3d32b2['map'](_0x4a2952=>[_0x4a2952,this['_suggestionFactory']['getSuggestionCallback'](_0x4a2952['type'],_0x4a2952['subType'],'join')])),_0x429f7e=new Map(_0x30637b['map'](_0x319034=>[_0x319034,_0x319034['getRanges']()]));for(let _0x4f3b89=0x0;_0x4f3b89<_0x3d32b2['length'];_0x4f3b89++){if(_0x4977d3(this,_0x3d32b2[_0x4f3b89],_0x3d32b2,_0x4f3b89+0x1))return!0x0;}for(let _0x510269=0x0;_0x510269<_0x3d32b2['length'];_0x510269++){if(_0x4977d3(this,_0x3d32b2[_0x510269],_0xa5e7cc,0x0))return!0x0;}return!0x1;function _0x4977d3(_0x1e5ee7,_0x100970,_0x2503ea,_0x283e27){for(let _0x21f309=_0x283e27;_0x21f309<_0x2503ea['length'];_0x21f309++){const _0x596b6b=_0x2503ea[_0x21f309];if(_0x596b6b['type']!==_0x100970['type']||_0x596b6b['author']['id']!==_0x100970['author']['id']||_0x596b6b['subType']!==_0x100970['subType'])continue;if(!ee(_0x100970,_0x596b6b))continue;if('attribute'==_0x100970['type']&&_0x100970['data']['oldValue']!=_0x596b6b['data']['oldValue'])continue;if('attribute'==_0x100970['type']&&_0x1e5ee7['_isBlockAttribute'](_0x100970['data']['key']))continue;if('formatBlock'==_0x100970['type']){const _0x31adda=_0x1e5ee7['editor']['model'],_0x249f34=_0x100970['getContainedElement']();if(_0x249f34&&(_0x31adda['schema']['isObject'](_0x249f34)||_0x31adda['schema']['isLimit'](_0x249f34)))continue;}const _0x31d238=_0x32110b['get'](_0x100970),_0x558db4=_0x429f7e['get'](_0x100970),_0x58a025=_0x429f7e['get'](_0x596b6b),_0x32866f=_0x100970['commentThread']&&_0x100970['commentThread']['length'],_0x40b110=_0x596b6b['commentThread']&&_0x596b6b['commentThread']['length'];if(!_0x32866f&&_0x31d238(_0x58a025,_0x558db4))return _0x1e5ee7['_joinSuggestions'](_0x596b6b,_0x100970),_0x429f7e['delete'](_0x100970),!0x0;if(!_0x40b110&&_0x31d238(_0x558db4,_0x58a025))return _0x1e5ee7['_joinSuggestions'](_0x100970,_0x596b6b),_0x429f7e['delete'](_0x596b6b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5cc52f,_0x55ade4){if(_0x5cc52f['isMultiRange']){for(const _0x21c790 of _0x55ade4['getRanges']())_0x5cc52f['addRange'](_0x21c790);}else{const _0x5039ae=_0x55ade4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5cc52f,this['_model']['createRange'](_0x5cc52f['getFirstRange']()['start'],_0x5039ae));}_0x55ade4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x158994,_0x16ed33,_0x400cb4){const _0x46ff9a=_0x158994['startsWith']('format')||_0x158994['startsWith']('attribute')?'FORMATTING':_0x158994['toUpperCase']();return o(this['editor']['locale'],_0x16ed33+'_'+_0x46ff9a+'_SUGGESTION_ANNOUNCEMENT',_0x400cb4);}['_initAriaMarkerChangeAnnouncements'](){const _0x551d79=this['editor'];if(!_0x551d79['ui'])return;const {ariaLiveAnnouncer:_0x132133}=_0x551d79['ui'];_0x54016c(this['_model'],({left:_0x362901,entered:_0x493ed4})=>{for(const _0x119657 of _0x362901){const {group:_0x42cd1c,type:_0x5549a9}=this['_splitMarkerName'](_0x119657['name']);if('suggestion'===_0x42cd1c){_0x132133['announce'](this['_getMarkerAnnouncementText'](_0x5549a9,'LEAVE'));break;}}for(const _0x5aaa4c of _0x493ed4){const {group:_0x81e91f,type:_0x40758e}=this['_splitMarkerName'](_0x5aaa4c['name']);if('suggestion'===_0x81e91f){_0x132133['announce'](this['_getMarkerAnnouncementText'](_0x40758e,'ENTER',_0x160cbf(_0x320f63)));break;}}});}['_processAttributeChanges'](_0x328820){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb4541e=this['editor'],_0x54eb59=_0xb4541e['model']['document']['differ']['getChanges']();if(0x0==_0x54eb59['length'])return!0x1;const _0x30cf09=[],_0x1ec696=_0x54eb59['filter'](_0x33d9c4=>'attribute'==_0x33d9c4['type']),_0x2e1289=_0x54eb59['filter'](_0x3caeb6=>'insert'==_0x3caeb6['type']&&'$text'!=_0x3caeb6['name']),_0x1b33c1=_0x54eb59['filter'](_0x247149=>'remove'==_0x247149['type']&&'$text'!=_0x247149['name']);for(const _0x23e2c of _0x1ec696)_0x30cf09['push']({'key':_0x23e2c['attributeKey'],'newValue':_0x23e2c['attributeNewValue'],'oldValue':_0x23e2c['attributeOldValue'],'range':Yt(_0x23e2c['range'],_0xb4541e['model'])});for(const _0x3aa166 of _0x2e1289){const _0x8bd87c=_0x1b33c1['find'](_0x5603e5=>_0x5603e5['position']['isEqual'](_0x3aa166['position']));_0x8bd87c&&_0x30cf09['push']({'key':m,'newValue':_0x3aa166['name'],'oldValue':_0x8bd87c['name'],'range':_0xb4541e['model']['createRangeOn'](_0x3aa166['position']['nodeAfter'])});}return 0x0!=_0x30cf09['length']&&this['_reduceExistingSuggestions'](_0x328820,_0x30cf09);}['_processAttributeSuggestions'](_0x54d592){let _0x3d0912=!0x1;const _0x17fe1d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5a290a=>_0x5a290a['data']['newRange']&&_0x5a290a['name']['startsWith']('suggestion:attribute:'));for(const _0x53831f of _0x17fe1d){const {subType:_0x50dd3e,id:_0x1a5ed5}=this['_splitMarkerName'](_0x53831f['name']),_0x1b73b8=_0x50dd3e['split']('|')[0x0];for(const _0x6945ff of this['getSuggestions']({'skipNotAttached':!0x0}))_0x6945ff['id']!=_0x1a5ed5&&'attribute'==_0x6945ff['type']&&_0x6945ff['data']&&_0x6945ff['data']['key']==_0x1b73b8&&_0x6945ff['getFirstRange']()['isIntersecting'](_0x53831f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x6945ff,_0x53831f['data']['newRange'],_0x54d592),_0x3d0912=!0x0);}return _0x3d0912;}['recordAttributeChanges'](_0x4c9b9d){this['_recordAttributeSuggestions']=!0x0,_0x4c9b9d();}['_isRegisteredAttribute'](_0x267ddc){const _0xae3263=this['_isBlockAttribute'](_0x267ddc),_0x31d625=this['_isInlineAttribute'](_0x267ddc);return _0xae3263||_0x31d625;}['_reduceExistingSuggestions'](_0x456312,_0xaf7c4){if(0x0==_0xaf7c4['length'])return!0x1;let _0x38df8b=!0x1;for(const _0x1fbebf of _0xaf7c4){const _0x5106ff=this['_findSuggestions'](_0x1fbebf['range'],'attribute')['filter'](_0x3af726=>!_0x3af726['meta']['isNextTo'])['map'](_0x55f43c=>_0x55f43c['suggestion']),_0x2c03aa=_0x4f7d6e({'newValue':_0x1fbebf['newValue']});_0x5106ff['filter'](_0x3c3bed=>{const [_0x34168b,_0x4816c2]=_0x3c3bed['subType']['split']('|');return _0x34168b==_0x1fbebf['key']&&_0x4816c2!=_0x2c03aa;})['forEach'](_0x1ff604=>{this['_reduceSuggestionAttributeRange'](_0x1ff604,_0x1fbebf['range'],_0x456312),_0x38df8b=!0x0;});}return _0x38df8b;}['_reduceSuggestionAttributeRange'](_0x3a4168,_0x437a26,_0x1d7fdc){const _0x2ed08b=_0x3a4168['getFirstRange']()['getDifference'](_0x437a26);0x0!==_0x2ed08b['length']?0x1!==_0x2ed08b['length']?this['_breakSuggestionMarker'](_0x3a4168,_0x437a26['start'],_0x437a26['end']):this['_setSuggestionRange'](_0x3a4168,_0x2ed08b[0x0]):_0x1d7fdc['removeMarker'](_0x3a4168['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x101917){this['_editor']=_0x101917,this['_model']=_0x101917['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e908c,_0x4f825e,_0x5b8eee,_0x420bfc,_0x42e223,_0xfea8b1,_0x518435){return new R(this['_model'],{'type':_0x5e908c,'subType':_0x4f825e,'id':_0x5b8eee,'originalSuggestionId':_0x518435,'author':_0x420bfc,'creator':_0x420bfc,'attributes':_0x42e223,'onAttributesChange':_0xfea8b1,'onAccept':(..._0x4355da)=>this['getSuggestionCallback'](_0x5e908c,_0x4f825e,'accept')(..._0x4355da),'onDiscard':(..._0x382f32)=>this['getSuggestionCallback'](_0x5e908c,_0x4f825e,'discard')(..._0x382f32)});}['registerCustomCallback'](_0x183b2e,_0x1db3dd,_0x1c899e,_0x161e35){const _0x564aca=_0x183b2e+':'+_0x1db3dd+':'+_0x1c899e;this['_customCallbacks']['set'](_0x564aca,_0x161e35);}['getSuggestionCallback'](_0x4c7e41,_0xea2322,_0x192141){const _0x2d0b36=_0x4c7e41+':'+_0xea2322+':'+_0x192141;return this['_customCallbacks']['get'](_0x2d0b36)||this['_defaultCallbacks']['get'](_0x4c7e41+':'+_0x192141);}['_registerDefaultCallbacks'](){const _0x56c2c3=()=>!0x1,_0x3119f7=_0x11997b=>{_0x11997b['sort']((_0x14c5db,_0x21e8a8)=>_0x14c5db['start']['isBefore'](_0x21e8a8['start'])?0x1:-0x1),this['_model']['change'](_0x198b1e=>{for(const _0x5d24f2 of _0x11997b){let _0x28a3ed;_0x28a3ed=_0x5d24f2['end']['isAtEnd']&&_0x5d24f2['end']['parent']==_0x5d24f2['start']['nodeAfter']?_0x198b1e['createSelection'](_0x5d24f2['start']['nodeAfter'],'on'):_0x198b1e['createSelection'](_0x5d24f2),this['_model']['deleteContent'](_0x28a3ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2b657c=(_0x644cdc,_0x135213)=>{_0x135213&&this['_model']['change'](_0xb18435=>{const {commandName:_0x2540d5,commandParams:_0x149f28=[]}=_0x135213,_0x4124fa=_0x644cdc['map'](_0x35207f=>(Kt(_0x35207f)&&(_0x35207f=this['_model']['createRange'](_0x35207f['end'])),_0x35207f))['filter'](_0x49c524=>'$graveyard'!==_0x49c524['root']['rootName']);if(_0x4124fa['length']<0x1)return;const _0x2b052d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57d4e4=>_0x5a166f['fromRange'](_0x57d4e4));_0xb18435['setSelection'](_0x4124fa);for(const _0x2b99de of this['_editor']['commands']['commands']())_0x2b99de['refresh']();_0x149f28['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2540d5,..._0x149f28);const _0x3fd833=_0x2b052d['filter'](_0x4bcdf7=>'$graveyard'!=_0x4bcdf7['root']['rootName']);_0x3fd833['length']>0x0&&_0xb18435['setSelection'](_0x3fd833);for(const _0x6b795 of _0x2b052d)_0x6b795['detach']();});},_0xcd4100=(_0x13a6f1,_0x25a97d)=>0x1==_0x13a6f1['length']&&0x1==_0x25a97d['length']&&_0x13a6f1[0x0]['end']['isEqual'](_0x25a97d[0x0]['start']),_0x40ad54=(_0x374c37,_0x272b6f,_0x512ad8,_0x3d994d)=>te(_0x374c37,_0x272b6f,_0x512ad8,_0x3d994d)?[_0x374c37,_0x272b6f]:te(_0x272b6f,_0x374c37,_0x3d994d,_0x512ad8)?[_0x272b6f,_0x374c37]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x56c2c3),this['_defaultCallbacks']['set']('insertion:discard',_0x3119f7),this['_defaultCallbacks']['set']('insertion:join',_0xcd4100),this['_defaultCallbacks']['set']('insertion:chain',_0x40ad54),this['_defaultCallbacks']['set']('deletion:accept',_0x3119f7),this['_defaultCallbacks']['set']('deletion:discard',_0x56c2c3),this['_defaultCallbacks']['set']('deletion:join',_0xcd4100),this['_defaultCallbacks']['set']('deletion:chain',_0x40ad54),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b657c),this['_defaultCallbacks']['set']('formatInline:discard',_0x56c2c3),this['_defaultCallbacks']['set']('formatInline:join',_0xcd4100),this['_defaultCallbacks']['set']('formatInline:chain',_0x56c2c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b657c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x56c2c3),this['_defaultCallbacks']['set']('formatBlock:join',_0xcd4100),this['_defaultCallbacks']['set']('formatBlock:chain',_0x56c2c3),this['_defaultCallbacks']['set']('attribute:accept',_0x56c2c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x11d55f,_0x5894e7)=>{if(!_0x5894e7)return;const _0x4bdcac=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x335665=>{if(_0x5894e7['key']==m)for(const _0x1ee2bc of _0x11d55f){const _0x394c85=_0x1ee2bc['start']['nodeAfter'],_0x40de3f=_0x5894e7['oldValue'];_0x335665['rename'](_0x394c85,_0x40de3f);}else{if(_0x4bdcac['_isBlockAttribute'](_0x5894e7['key'])){for(const _0x588bee of _0x11d55f)void 0x0!==_0x5894e7['oldValue']?_0x335665['setAttribute'](_0x5894e7['key'],_0x5894e7['oldValue'],_0x588bee['start']['nodeAfter']):_0x335665['removeAttribute'](_0x5894e7['key'],_0x588bee['start']['nodeAfter']);}else{for(const _0x29c90f of _0x11d55f)_0x5894e7['oldValue']?_0x335665['setAttribute'](_0x5894e7['key'],_0x5894e7['oldValue'],_0x29c90f):_0x335665['removeAttribute'](_0x5894e7['key'],_0x29c90f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcd4100);}}function Jt(_0x14c81c,_0x4bc86f,_0x47dd7b){for(const _0x3689b3 of _0x4bc86f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3689b3['root']==_0x3689b3)return!0x1;if(!_0x47dd7b['containsItem'](_0x3689b3))return!0x1;if(_0x14c81c['isObject'](_0x3689b3)||_0x14c81c['isLimit'](_0x3689b3))return!0x0;}return!0x1;}function Kt(_0x2b2597){return _0x2b2597['end']['parent']==_0x2b2597['start']['nodeAfter']&&_0x2b2597['end']['isAtStart'];}function Ht(_0x34c8b5,_0x494c29,_0x177248,_0x4c32b5){const _0x53ba7c=_0x21608e=>!_0x21608e['item']['is']('$textProxy')&&!_0x4c32b5['isObject'](_0x21608e['item']),_0x309a74=_0x34c8b5['start']['getLastMatchingPosition'](_0x53ba7c),_0x3078de=_0x34c8b5['end']['getLastMatchingPosition'](_0x53ba7c,{'direction':'backward'});return(!_0x34c8b5['start']['isEqual'](_0x309a74)||!_0x34c8b5['end']['isEqual'](_0x3078de))&&(_0x309a74['isBefore'](_0x3078de)?_0x177248['updateMarker'](_0x494c29,{'range':_0x177248['createRange'](_0x309a74,_0x3078de)}):_0x177248['removeMarker'](_0x494c29),!0x0);}function Wt(_0x282efd){return _0x4f7d6e(_0x282efd);}function qt(_0x46708e){const _0x4a9fe7=_0x46708e['start']['nodeAfter'];return _0x4a9fe7&&_0x4a9fe7['is']('element');}function zt(_0x2207bb){return Kt(_0x2207bb)||function(_0x5ab652){return _0x5ab652['start']['parent']==_0x5ab652['end']['nodeBefore']&&_0x5ab652['start']['isAtEnd'];}(_0x2207bb);}function Qt(_0x1b20d9,_0x1b4e94){try{const _0x14f25f=_0x1b20d9['getRange']();for(const _0x4c27a1 of _0x1b4e94)if(_0x1b20d9!==_0x4c27a1&&_0x14f25f&&_0x14f25f['isIntersecting'](_0x4c27a1['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0xbffae3,_0x3cf20c){const _0x425c45=_0xbffae3['end']['nodeBefore'];if(_0x425c45&&_0x425c45['is']('element')&&_0x3cf20c['schema']['isBlock'](_0x425c45)&&!_0x3cf20c['schema']['isObject'](_0x425c45)){const _0x146e1d=_0x3cf20c['createPositionAt'](_0x425c45,'end');return _0x3cf20c['createRange'](_0xbffae3['start'],_0x146e1d);}return _0xbffae3;}function Yt(_0x25ff15,_0x4b0597){return null==_0x25ff15['end']['nodeBefore']&&_0x25ff15['end']['parent']==_0x25ff15['start']['nodeAfter']?Zt(_0x25ff15['start']['nodeAfter'],_0x4b0597):_0x25ff15;}function Zt(_0x4d5f29,_0x5cd389){const _0x757f34=_0x5cd389['schema']['isObject'](_0x4d5f29)||_0x5cd389['schema']['isSelectable'](_0x4d5f29);return _0x5cd389['createRange'](_0x5cd389['createPositionAt'](_0x4d5f29,'before'),_0x757f34?_0x5cd389['createPositionAfter'](_0x4d5f29):_0x5cd389['createPositionAt'](_0x4d5f29,'end'));}function te(_0x24ceb4,_0x27c9ff,_0x4b31cd,_0xb335d6){return!!ee(_0x24ceb4,_0x27c9ff)&&_0x4b31cd['end']['isEqual'](_0xb335d6['start']);}function ee(_0x431dd3,_0x49e7b8){if(!_0x431dd3['_isDataLoaded']||!_0x49e7b8['_isDataLoaded'])return!0x1;const _0x190d99=new Set(Object['keys'](_0x431dd3['attributes'])),_0x605d88=new Set(Object['keys'](_0x49e7b8['attributes']));if(_0x190d99['delete']('groupId'),_0x605d88['delete']('groupId'),0x0==_0x190d99['size']&&0x0==_0x605d88['size'])return!0x0;if(_0x190d99['size']!=_0x605d88['size'])return!0x1;const _0x1536b4={..._0x431dd3['attributes']},_0x510baa={..._0x49e7b8['attributes']};return delete _0x1536b4['groupId'],delete _0x510baa['groupId'],JSON['stringify'](_0x1536b4)==JSON['stringify'](_0x510baa);}function ie(_0x3bd4f3,_0x32fe77){const _0x4134da=ne(_0x3bd4f3['attributes']),_0x5bef8a=ne(_0x32fe77);if(!_0x3bd4f3['_isDataLoaded'])return!0x1;for(const _0x1152ab of Object['keys'](_0x5bef8a))if(!_0x3b563a(_0x4134da[_0x1152ab],_0x5bef8a[_0x1152ab]))return!0x1;return!0x0;}function ne(_0x40f03a){const _0x11c918=Object['assign']({},_0x40f03a);return delete _0x11c918['skipNestingCheck'],delete _0x11c918['tablePasteChainId'],_0x11c918;}function se(_0x15f17f){return _0x15f17f['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
- _0xcedd82(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x267680,_0x101aa6,_0x459538,_0x415271){super(),this['model']=_0x101aa6,this['view']=_0x459538,this['commentThreadController']=_0x415271,this['_editor']=_0x267680,this['_acceptCommand']=_0x267680['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x267680['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4f6945,_0xb892ce)=>_0x4f6945||_0xb892ce),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5f9582=>_0x5f9582&&this['_editor']['model']['canEditAt'](_0x101aa6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26428d=>_0x26428d&&this['_editor']['model']['canEditAt'](_0x101aa6['getRanges']())),this['_pendingAction']=null,_0x459538['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x459538,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x459538,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x459538,'change:isDirty',()=>{_0x459538['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 _0x27b015=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27b015);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x326a2b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4e0a8e,_0x2988e8,_0x7fc39a,_0x4dc49e){super(_0x4e0a8e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bd7fe(_0x4e0a8e,o(_0x4e0a8e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2988e8['authoredAt']),this['bind']('authoredAt')['to'](_0x2988e8),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x2988e8,'authoredAt',this,'descriptionParts',(_0x51fe60,_0x2ece1a,_0x430917)=>{const _0x393102=_0x430917['map'](_0x51f040=>ls(_0x51f040['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x51fe60-0x1,_0x2988e8['author']['name'],_0x2ece1a?_0x4dc49e['formatDateTime'](_0x2ece1a):'',new DOMParser()['parseFromString'](_0x393102,'text/html')['body']['textContent']]);}),this['focusables']=new _0xe1cd29(),this['focusTracker']=new _0x19fbab(),this['keystrokes']=new _0x360216(),this['focusCycler']=new _0x41f717({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x58c2a0=>_0x58c2a0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2988e8,this['_localUser']=_0x7fc39a,this['_config']=_0x4dc49e,_0x4dc49e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xb94405(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x274fcf}=this['_config'];this['commentsListView']=new _0x274fcf(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',_0x2026dd=>_0x2026dd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9ad2cd,_0x3c92c0)=>_0x9ad2cd||!!_0x3c92c0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4b9cc3}=this['_config'],_0x53fbf7=new _0x4b9cc3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x26f7ca=_0x53fbf7['commentInputView'];return _0x53fbf7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x26f7ca,'value',(_0x28eb63,_0x8ddb05,_0x2e5ed7)=>!!_0x2e5ed7||_0x28eb63&&!_0x8ddb05),_0x26f7ca['on']('submit',(_0x12029e,_0x254c0f)=>{this['fire']('addComment',_0x254c0f),_0x26f7ca['editor']['setData']('');}),_0x26f7ca['on']('cancel',()=>this['focus']()),_0x26f7ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x53fbf7;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x34af6a,_0x3d76a8,_0x38abdf,_0x18e646){super(_0x34af6a,_0x3d76a8,_0x38abdf,_0x18e646),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a96b6=>_0x3a96b6&&_0x3a96b6[0x0]?_0x3a96b6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xb740ca,_0x1d5df2)=>{let _0x20a998='';for(const _0xf14382 of _0xb740ca)_0x20a998+='<p>'+ls(_0xf14382['content'],_0xf14382['color'])+'</p>';return _0x1d5df2?_0x20a998:_0x3c1311(_0x20a998,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x18e646['SuggestionView'](_0x34af6a,_0x3d76a8,{'formatDateTime':_0x18e646['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4e0fd1=this['bindTemplate'],_0x21db69=[this['suggestionView']];return this['commentsListView']&&_0x21db69['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21db69['push'](this['commentThreadInputView']),_0x21db69['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4e0fd1['if']('isActive','ck-suggestion-wrapper--active'),_0x4e0fd1['to']('type',_0x15788a=>'ck-suggestion-'+_0x15788a),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4e0fd1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21db69};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class Le extends _0x326a2b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x592d6f,_0x512b3e,_0x10c25b){super(_0x592d6f),this['_model']=_0x512b3e,this['_config']=_0x10c25b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x512b3e),this['acceptButton']=this['_createButton'](o(_0x592d6f,'Accept\x20suggestion'),_0x11f1da,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x592d6f,'Discard\x20suggestion'),_0x49bd98,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x36ef0d(_0x592d6f,_0x512b3e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xe1cd29([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x19fbab(),this['keystrokes']=new _0x360216(),this['focusCycler']=new _0x41f717({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x24d706=>_0x24d706['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2818ea=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2818ea['innerHTML']=this['description'],this['on']('change:description',(_0x4701c3,_0x4bd831,_0x56882e)=>{_0x2818ea['innerHTML']=_0x56882e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e1d23=this['bindTemplate'],_0x4e8a11=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3e1d23['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e1d23['to']('authoredAt',_0x1137f9=>this['_config']['formatDateTime'](_0x1137f9))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x4e8a11['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4e8a11}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2e4e27,_0x4b0178,_0x13f005,_0x280a4d,_0x101ac){const _0x3a2d87=new _0x5a8c35(this['locale']);return _0x3a2d87['set']({'label':_0x2e4e27,'icon':_0x4b0178,'tooltip':!0x0,'tooltipPosition':_0x101ac}),_0x3a2d87['extendTemplate']({'attributes':{'class':_0x13f005}}),_0x3a2d87['on']('execute',()=>{this['fire'](_0x280a4d,this['_model']['id']);}),_0x3a2d87;}['_setupKeyboardNavigation'](){const _0x4a05d8=this['element'];this['keystrokes']['listenTo'](_0x4a05d8);for(const _0x3a73e3 of this['focusables'])this['focusTracker']['add'](_0x3a73e3['element']),this['keystrokes']['listenTo'](_0x3a73e3['element']);this['keystrokes']['set']('enter',(_0x15765,_0x52e70a)=>{_0x4a05d8===_0x15765['target']&&(this['focusCycler']['focusFirst'](),_0x52e70a());}),this['keystrokes']['set']('esc',(_0x468681,_0x3f975f)=>{_0x4a05d8!==_0x468681['target']&&(this['focus'](),_0x3f975f());});}}class u extends _0x15a662{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x289e10,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x119ab5){super(_0x119ab5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x531d59=this['editor']['config'];_0x531d59['define']('trackChanges.SuggestionThreadView',Te),_0x531d59['define']('trackChanges.SuggestionView',Le),_0x531d59['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x531d59['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x52e366,_0x401209){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45609f,_0x2397eb]of this['_handleControllerBuffer']){const _0x4c4aa0=this['_suggestionToController']['has'](_0x45609f);_0x4c4aa0||_0x2397eb?_0x4c4aa0&&_0x2397eb&&this['_destroyController'](_0x45609f):this['_initializeController'](_0x45609f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x52e366,_0x401209);}['init'](){const _0x4ffbdd=this['editor'],_0x528730=_0x4ffbdd['plugins']['get']('TrackChangesEditing'),_0x5185a2=_0x4ffbdd['plugins']['get']('Annotations'),_0x4d715d=_0x4ffbdd['plugins']['get']('EditorAnnotations'),_0x4c5d97=_0x4ffbdd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4d715d['addSourceCollector'](()=>{const _0x45f68f=[];for(const [_0x4edd96,_0x14e3ac]of Array['from'](this['_suggestionToController'])){const _0x8fa0d3=_0x4edd96['getAllAdjacentSuggestions'](),_0x963678=[];for(const _0x451625 of _0x8fa0d3){if(!_0x451625['isInContent'])continue;if(_0x451625['isMultiRange']){_0x963678['push'](..._0x451625['getRanges']());continue;}const _0x4ed366=_0x451625['getFirstRange']();if(_0x963678['length']>0x0){const _0x17188d=_0x963678[0x0]['getJoined'](_0x4ed366);if(_0x17188d){_0x963678[0x0]=_0x17188d;continue;}}_0x963678['push'](_0x4ed366);}_0x45f68f['push']([_0x14e3ac['view'],_0x963678]);}return _0x45f68f;}),this['listenTo'](_0x528730,'suggestionLoaded',(_0x1aeca6,_0x4e4b22)=>{this['listenTo'](_0x4e4b22,'change:previous',(_0x2802ec,_0x31eabd,_0xf53be3,_0x4dfa8e)=>{_0x4e4b22['isInContent']&&(null==_0xf53be3?(this['_updateController'](_0x4dfa8e['head']),this['_handleSuggestionControllerDelayed'](_0x4e4b22,!0x1)):(this['_updateController'](_0xf53be3['head']),null==_0x4dfa8e&&this['_handleSuggestionControllerDelayed'](_0x4e4b22,!0x0)));}),null!==_0x4e4b22['previous']?this['_updateController'](_0x4e4b22['head']):this['_handleSuggestionControllerDelayed'](_0x4e4b22,!0x1);}),this['listenTo'](_0x528730,'suggestionUnloaded',(_0x309983,_0x126f3b,_0x52b732)=>{this['stopListening'](_0x126f3b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x126f3b),this['_suggestionToController']['has'](_0x126f3b)&&this['_destroyController'](_0x126f3b),_0x52b732&&this['_updateController'](_0x52b732['head']);}),this['listenTo'](_0x528730,'suggestionChanged',(_0x40cc32,_0x22d055)=>{this['_updateController'](_0x22d055);}),this['listenTo'](_0x5185a2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c5d97,'addComment',(_0x417870,{threadId:_0x7fef7f,isFromAdapter:_0x438279})=>{if(_0x438279||!_0x528730['hasSuggestion'](_0x7fef7f))return;const _0x45b7ff=_0x528730['getSuggestion'](_0x7fef7f);this['_suggestionToController']['get'](_0x45b7ff)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30154a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x20f032;for(const _0x46d002 in _0x30154a){const _0x21e1b7=_0x46d002,_0x148df2=_0x30154a[_0x21e1b7];if('trackChangesLicenseKeyValid'==_0x148df2||'trackChangesLicenseKeyInvalid'==_0x148df2||'trackChangesLicenseKeyExpired'==_0x148df2||'trackChangesLicenseKeyDomainLimit'==_0x148df2||'trackChangesLicenseKeyNotAllowed'==_0x148df2||'trackChangesLicenseKeyEvaluationLimit'==_0x148df2||'trackChangesLicenseKeyTrialLimit'==_0x148df2||'trackChangesLicenseKeyUsageLimit'==_0x148df2){delete _0x30154a[_0x21e1b7],_0x20f032=_0x148df2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x20f032&&_0x30154a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x20f032&&_0x30154a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x20f032&&_0x30154a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x20f032&&_0x30154a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x20f032&&_0x30154a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x20f032&&_0x30154a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x20f032&&_0x30154a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x59e04f){const _0x4f4256=this['_suggestionToController']['get'](_0x59e04f);if(!_0x4f4256)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4f4256['view'])||null;}['getSuggestionForAnnotation'](_0x314a8b){const _0x59e855=this['_viewToController']['get'](_0x314a8b['innerView']);return _0x59e855?_0x59e855['model']:null;}['_refreshActiveMarkers'](){const _0x1f1cbd=this['editor']['plugins']['get']('Annotations'),_0x3f85c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3951e1=Array['from'](_0x1f1cbd['activeAnnotations'],_0x612eac=>_0x612eac['innerView'])['filter'](_0xfd77cc=>this['_viewToController']['has'](_0xfd77cc)),_0x492454=[];for(const _0x4ecf82 of _0x3951e1){const _0x52273d=this['_viewToController']['get'](_0x4ecf82)['model']['getAllAdjacentSuggestions']();_0x492454['push'](..._0x52273d['reduce']((_0x4af696,_0x23a0bf)=>[..._0x4af696,..._0x23a0bf['getMarkerNames']()],[]));}_0x3f85c8['activeMarkers']=_0x492454;}['_addUIComponentsToFactory'](){const _0x2016b5=this['editor'],_0x2ce29f=_0x2016b5['locale'],_0x5b43d5=o(_0x2ce29f,'Track\x20changes'),_0xbc801d=new _0x2f0e5f([{'type':'switchbutton','model':new _0x427f43({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b43d5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2016b5['plugins']['has']('TrackChangesPreview')&&_0xbc801d['addMany']([{'type':'separator'},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4c534e of _0xbc801d)if(ve(_0x4c534e)){const _0x556420=_0x2016b5['commands']['get'](_0x4c534e['model']['commandName']);_0x4c534e['model']['bind']('isOn','isEnabled')['to'](_0x556420,'value','isEnabled');}_0x2016b5['ui']['componentFactory']['add']('trackChanges',_0x512716=>this['_createToolbarButton'](_0x512716,_0xbc801d,_0x5b43d5)),_0x2016b5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x59fb70=>this['_createMenuBarMenu'](_0x59fb70,_0xbc801d,_0x5b43d5));}['_createToolbarButton'](_0x55df88,_0x349c21,_0x4dc1f6){const _0x3a8442=_0x17c506(_0x55df88,_0x5c7ee9),_0x547486=this['editor']['commands']['get']('trackChanges');_0x3a8442['buttonView']['set']({'tooltip':_0x4dc1f6,'label':_0x4dc1f6,'icon':_0xb97b96}),_0x3a8442['buttonView']['bind']('isOn')['to'](_0x547486,'value'),_0x3a8442['buttonView']['on']('execute',()=>{_0x547486['execute'](),this['editor']['editing']['view']['focus']();}),_0x17740a(_0x3a8442,_0x349c21,{'role':'menu'});const _0x53a322=[];for(const _0x254cc9 of _0x349c21)ve(_0x254cc9)&&_0x53a322['push'](this['editor']['commands']['get'](_0x254cc9['model']['commandName']));const _0x3e3974=_0x3a8442['buttonView'];return _0x3e3974['actionView']['unbind']('isEnabled'),_0x3e3974['arrowView']['unbind']('isEnabled'),_0x3e3974['actionView']['bind']('isEnabled')['to'](_0x547486,'isEnabled'),_0x3e3974['arrowView']['bind']('isEnabled')['toMany'](_0x53a322,'isEnabled',(..._0x2843bd)=>_0x2843bd['some'](_0x110fcf=>_0x110fcf)),_0x3a8442['on']('execute',_0x2dca18=>{this['editor']['execute'](_0x2dca18['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a8442;}['_createMenuBarMenu'](_0x2986ac,_0x353b50,_0x559d74){const _0x2b56a8=new _0xe399e0(_0x2986ac),_0x552f37=this['editor']['commands']['get']('trackChanges');_0x2b56a8['buttonView']['set']({'label':_0x559d74,'icon':_0xb97b96});const _0x335df1=new _0x1de637(_0x2986ac);for(const _0x5e3de5 of _0x353b50){if('separator'==_0x5e3de5['type']){_0x335df1['items']['add'](new _0x13a2c5(_0x2986ac));continue;}const _0x1a8347=new _0x15614b(_0x2986ac,_0x2b56a8),_0x1615bf=new _0x330001(_0x2986ac),_0x5198ea=_0x5e3de5['model'];_0x1615bf['bind'](...Object['keys'](_0x5198ea))['to'](_0x5198ea),_0x1615bf['delegate']('execute')['to'](_0x2b56a8),_0x1615bf['on']('execute',()=>{this['editor']['execute'](_0x5198ea['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a8347['children']['add'](_0x1615bf),_0x335df1['items']['add'](_0x1a8347);}return _0x2b56a8['bind']('isEnabled')['to'](_0x552f37,'isEnabled'),_0x2b56a8['panelView']['children']['add'](_0x335df1),_0x2b56a8;}['_initializeController'](_0x5cce23){const _0x961f00=this['editor'],_0x36e5dd=_0x961f00['config'],_0x4229b0=_0x961f00['plugins']['get']('Annotations'),_0x145ed2=_0x961f00['plugins']['get']('CommentsRepository'),_0x213956=_0x961f00['plugins']['get']('EditorAnnotations'),_0x55cb9f=_0x961f00['plugins']['get'](_0x289e10)['me'],_0x302fdb=_0x36e5dd['get']('trackChanges')['SuggestionThreadView'],_0x4ce9f7=_0x36e5dd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24b6eb,CommentThreadInputView:_0x3fa0d1}=_0x961f00['plugins']['get']('CommentsUI');let _0x31a25d,_0x1f8810,_0x16a121;this['_annotationViews']['has'](_0x5cce23['id'])?(_0x1f8810=this['_annotationViews']['get'](_0x5cce23['id']),_0x31a25d=_0x1f8810['mainView']):(_0x31a25d=new _0x302fdb(_0x961f00['locale'],_0x5cce23,_0x55cb9f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x36e5dd['get']('comments.editorConfig'),'licenseKey':_0x36e5dd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x36e5dd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36e5dd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36e5dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b6d96(_0x36e5dd['get']('locale'),_0x961f00['locale']),'CommentView':_0x36e5dd['get']('comments')['CommentView'],'CommentsListView':_0x24b6eb,'CommentThreadInputView':_0x3fa0d1,'SuggestionView':_0x4ce9f7}),_0x31a25d['suggestionView']['acceptButton']['on']('execute',()=>{_0x961f00['editing']['view']['focus']();}),_0x31a25d['suggestionView']['discardButton']['on']('execute',()=>{_0x961f00['editing']['view']['focus']();}),_0x1f8810=_0x4229b0['createAnnotationView'](this['editor']['locale'],_0x31a25d),_0x1f8810['bind']('isDirty')['to'](_0x31a25d,'isDirty'),_0x1f8810['bind']('length')['to'](_0x31a25d),_0x1f8810['bind']('type')['to'](_0x31a25d,'type',_0x12711d=>'suggestion-'+_0x12711d),_0x31a25d['on']('escape',()=>{_0x16a121['fire']('escape');}),this['_annotationViews']['set'](_0x5cce23['id'],_0x1f8810));const _0x480f21=_0x145ed2['createCommentThreadController'](_0x5cce23['commentThread'],_0x31a25d),_0x8b3406=new be(_0x961f00,_0x5cce23,_0x31a25d,_0x480f21),_0x7e890e=_0x5cce23['getAllAdjacentSuggestions']()['filter'](_0x1e5c46=>_0x1e5c46['isInContent']);_0x31a25d['descriptionParts']=_0x961f00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x7e890e),this['_suggestionToController']['set'](_0x5cce23,_0x8b3406),this['_viewToController']['set'](_0x31a25d,_0x8b3406);const _0x1d6349=()=>{const _0x185f95=[],_0x4f03bc=_0x5cce23['getAllAdjacentSuggestions']()['filter'](_0x2a88c3=>_0x2a88c3['isInContent']);for(const _0x84abc0 of _0x4f03bc)_0x185f95['push'](..._0x84abc0['getMarkers']());return _0x41ca29(_0x961f00['editing'],_0x185f95);};_0x16a121=_0x4229b0['createAnnotation']({'view':_0x1f8810,'target':_0x1d6349,'type':()=>'suggestion-'+_0x8b3406['view']['type'],'isVisible':!!_0x1d6349()}),_0x145ed2['_bindAnnotationToEditors'](_0x31a25d,_0x16a121),_0x4229b0['add'](_0x16a121),_0x213956['registerAnnotation'](_0x16a121);}['_destroyController'](_0x505b33){const _0x34a6b6=this['editor']['plugins']['get']('CommentsRepository'),_0xa37a60=this['editor']['plugins']['get']('Annotations'),_0x399c7f=this['_suggestionToController']['get'](_0x505b33),_0x155847=_0x399c7f['view'],_0x1e9dc3=_0xa37a60['getByInnerView'](_0x155847);_0x34a6b6['_unbindEditors'](_0x155847),_0x1e9dc3&&_0xa37a60['remove'](_0x1e9dc3),this['_suggestionToController']['delete'](_0x505b33),this['_viewToController']['delete'](_0x155847),_0x399c7f['destroy']();}['_updateController'](_0x1a13fb){if(!_0x1a13fb['isInContent']||!this['_suggestionToController']['has'](_0x1a13fb))return;const _0x6b6e01=this['editor']['plugins']['get']('TrackChangesEditing'),_0xae523d=this['_suggestionToController']['get'](_0x1a13fb),_0x581af8=_0x1a13fb['getAllAdjacentSuggestions']();_0xae523d['view']['descriptionParts']=_0x6b6e01['descriptionFactory']['getDescriptions'](_0x581af8);}['destroy'](){for(const _0x367223 of this['_suggestionToController']['keys']())this['_destroyController'](_0x367223);for(const _0x12fe55 of this['_annotationViews']['values']())_0x12fe55['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x2cc5dd){return'model'in _0x2cc5dd;}class Ve extends _0x15a662{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x44feb6){this['editor']['plugins']['get'](d)['adapter']=_0x44feb6;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2c470b){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2c470b);}['getSuggestions']({skipNotAttached:_0x2e2507=!0x1,toJSON:_0xd85c50=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e2507,'toJSON':_0xd85c50});}['getSuggestion'](_0x415f73){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x415f73);}}const p=['Pagination'];class ce extends _0x15a662{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x7272a3=this['editor'];if(_0x7272a3['config']['define']('trackChangesData.editorCreator',_0x4fbd37=>{const _0x2c264f=_0x7272a3['model']['document']['getRootNames']()['reduce']((_0x259d2a,_0x308110)=>(_0x259d2a[_0x308110]='',_0x259d2a),{});return _0x7272a3['constructor']['create'](_0x2c264f,_0x4fbd37);}),'function'!=typeof _0x7272a3['config']['get']('trackChangesData')['editorCreator'])throw new _0x52f81c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35c264){return P(this['editor'],!0x0,_0x35c264);}['getDataWithDiscardedSuggestions'](_0x4aa5ed){return P(this['editor'],!0x1,_0x4aa5ed);}}class ze extends _0x15a662{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b0cf4){function _0x36651f(_0x21eb41){return _0x21eb41['map'](_0x4a2314=>String['fromCharCode'](_0x4a2314))['join']('');}super(_0x1b0cf4),this['result']='end',_0x1b0cf4[_0x36651f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36651f([0x76,0x69,0x65,0x77])][_0x36651f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36651f([0x61,0x75,0x74,0x6f]),_0x1b0cf4[_0x36651f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36651f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36651f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36651f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36651f([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ke(_0x4facdb){return void 0x0!==_0x4facdb['getRootsAttributes'];}async function P(_0xefde48,_0xfdb801,_0x3b7413){const _0x348aa4=_0x218281(_0xefde48,p);_0x348aa4['plugins']['push'](d,ze),_0x348aa4['rootsAttributes']=Ke(_0xefde48)?_0xefde48['getRootsAttributes']():void 0x0;const _0x264b86=document['createDocumentFragment'](),_0x54cba6=_0xefde48['config']['get']('trackChangesData')['editorCreator'],_0x3ee62a=await _0x54cba6(_0x348aa4,()=>function(_0x1dec51){const _0x45c854=document['createElement']('div');return _0x1dec51['appendChild'](_0x45c854),_0x45c854;}(_0x264b86));!function(_0x37d7dc,_0x34deec){const _0x2f82bb=_0x37d7dc['model']['document']['getRootNames']()['reduce']((_0x5a0999,_0x51b817)=>(_0x5a0999[_0x51b817]=_0x37d7dc['data']['get']({'rootName':_0x51b817}),_0x5a0999),{}),_0x45ee86=_0x37d7dc['plugins']['get']('Users')['users']['map'](_0x30ad=>({'id':_0x30ad['id'],'name':_0x30ad['name']})),_0x237d77=_0x37d7dc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4270bf=_0x37d7dc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55ab77=_0x34deec['plugins']['get']('Users'),_0x3f4db7=_0x34deec['plugins']['get']('TrackChangesEditing'),_0x1b3dcf=_0x34deec['plugins']['get']('CommentsRepository');for(const _0x537432 of _0x1b3dcf['getCommentThreads']())_0x537432['remove']();for(const _0x3e932a of _0x45ee86)_0x55ab77['getUser'](_0x3e932a['id'])||_0x55ab77['addUser'](_0x3e932a);_0x55ab77['me']||_0x55ab77['useAnonymousUser']();for(const _0x359822 of _0x4270bf)_0x1b3dcf['addCommentThread'](_0x359822);for(const _0x5a8fab of _0x237d77)_0x3f4db7['addSuggestionData'](_0x5a8fab);_0x34deec['data']['set'](_0x2f82bb);}(_0xefde48,_0x3ee62a),_0x3ee62a['execute'](_0xfdb801?'acceptAllSuggestions':'discardAllSuggestions');const _0x1956b7=Ke(_0x3ee62a)?_0x3ee62a['getFullData'](_0x3b7413):_0x3ee62a['data']['get'](_0x3b7413);return await _0x3ee62a['destroy'](),_0x1956b7;}class _e extends _0x326a2b{['options'];constructor(_0x404157,_0x5f02de){super(_0x404157),this['options']=_0x5f02de,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x431de4,_0x51def9){if(!this['element'])return;const _0x3261fe=[];for(const [_0x1d64e8,_0x49cb75]of _0x431de4){const _0xbcdd5f=document['createElement']('div');_0xbcdd5f['setAttribute']('data-ck-root-name',_0x1d64e8),_0xbcdd5f['className']=_0x49cb75['classes']+'\x20ck-track-changes-preview__root-container',_0xbcdd5f['innerHTML']=_0x49cb75['content'],_0x3261fe['push'](_0xbcdd5f);}_0x51def9(this['element'],_0x3261fe),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x16feb7{constructor(_0x510097){super(_0x510097),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x26339f=this['editor'],_0x1140ba=_0x26339f['locale'],_0x9deece=_0x26339f['plugins']['get']('Dialog');let _0x1791ff;const _0x521ffd=function(_0x27ccf8){const _0xe5f85e={};if('editables'in _0x27ccf8['ui']['view']){for(const [_0x48608d,_0x39a4ed]of Object['entries'](_0x27ccf8['ui']['view']['editables']))_0xe5f85e[_0x48608d]=_0x39a4ed['element'];}else _0xe5f85e[_0x27ccf8['model']['document']['getRootNames']()[0x0]]=_0x27ccf8['ui']['view']['editable']['element'];return _0xe5f85e;}(_0x26339f),_0x426fd7=function(_0x43ad7e){let _0xb0a1ae=0x0;for(const _0x40acec of Object['values'](_0x43ad7e))_0xb0a1ae=Math['max'](_0xb0a1ae,_0x40acec['getBoundingClientRect']()['width']);let _0x594cd0=0x0;for(const _0x1066df of Object['values'](_0x43ad7e))_0x594cd0+=_0x1066df['getBoundingClientRect']()['height'];const _0x49c410=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x27b03c=Math['min'](_0x594cd0,_0x49c410);return{'width':_0xb0a1ae,'height':_0x27b03c};}(_0x521ffd);_0x9deece['show']({'id':'finalContentPreview','title':o(_0x1140ba,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x1140ba,{'dialogRects':_0x426fd7}),'onHide':()=>{_0x1791ff['detachFromDom']();},'onShow':()=>{_0x26339f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x10db76=>{const _0x1cad20=this['_standarizeRootsData'](_0x10db76,_0x26339f,_0x521ffd);_0x9deece['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1cad20,_0x26339f['config']['get']('trackChanges.preview.renderFunction'));}),_0x1791ff=new _0x32b0ab(_0x1140ba,[_0x9deece['view']]),_0x1791ff['attachToDom'](),_0x1791ff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x26339f['once']('destroy',()=>{_0x1791ff['detachFromDom']();});const _0x4a5c4e=_0x9deece['view']['headerView']['class'];_0x9deece['view']['headerView']['class']=_0x4a5c4e?_0x4a5c4e+'\x20ck-reset_all':'ck-reset_all',_0x9deece['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x9deece['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x34ff8b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2c3567=_0x34ff8b['previewMode'],_0x56dcc2={};if('$labels'===_0x2c3567){for(const _0xc48085 of _0x34ff8b['getMergeFieldsIds']())_0x56dcc2[_0xc48085]=_0x34ff8b['getLabel'](_0xc48085)||_0xc48085;}else{const _0x17611b='$defaultValues'===_0x2c3567?_0x34ff8b['getDefaultValues']():_0x34ff8b['getDataSetValues'](_0x2c3567,!0x0);for(const _0x31cc60 of Object['entries'](_0x17611b)){const [_0xe75b2,_0x3dc011]=_0x31cc60;_0x56dcc2[_0xe75b2]=null!==_0x3dc011?_0x3dc011:_0x34ff8b['getLabel'](_0xe75b2)||_0xe75b2;}}return{'mergeFieldsData':_0x56dcc2};}['_standarizeRootsData'](_0x496591,_0x3d8027,_0x50cad1){let _0x57e381;if('string'==typeof _0x496591){const _0x442418=_0x3d8027['model']['document']['getRootNames']()[0x0];_0x57e381={[_0x442418]:_0x496591};}else _0x57e381=_0x496591;const _0x27dbc6=this['_fixMediaEmbeds'](_0x57e381,_0x3d8027),_0x260d39=function(_0x2699f8,_0x2aac54){for(const [_0x8507b9,_0x41c69d]of _0x2699f8)_0x41c69d['classes']=_0x2aac54[_0x8507b9]['classList']['value']['replace']('ck-focused','');return _0x2699f8;}(this['_sortRoots'](_0x3d8027)['reduce']((_0x1197b9,_0x485213)=>(_0x1197b9['push']([_0x485213,{'content':_0x27dbc6[_0x485213],'classes':''}]),_0x1197b9),[]),_0x50cad1);return _0x260d39;}['_fixMediaEmbeds'](_0x5a474f,_0x49601d){if(!_0x49601d['plugins']['has']('MediaEmbedEditing'))return _0x5a474f;const _0x53b314=_0x49601d['plugins']['get']('MediaEmbedEditing');for(const [_0x4563f3,_0x53b4b5]of Object['entries'](_0x5a474f)){const _0x5aab74=document['createElement']('div');_0x5aab74['innerHTML']=_0x53b4b5,(_0x5aab74['querySelectorAll']('figure.media')['forEach'](_0x53a6ac=>{const _0xe33562=_0x53a6ac['querySelector']('oembed');if(_0xe33562){const _0x5c88ef=_0xe33562['getAttribute']('url');if(_0x5c88ef){const _0x1e7b49=_0x53b314['registry']['getMediaViewElement'](new _0x513971(_0x49601d['editing']['view']['document']),_0x5c88ef,{'elementName':'','renderForEditingView':!0x0}),_0x4352ef=document['createElement']('div');_0x4352ef['classList']['add']('ck-media__wrapper'),_0x1e7b49['render'](_0x4352ef,_0x49601d['editing']['view']['domConverter']),_0xe33562['replaceWith'](_0x4352ef);}}}),_0x5a474f[_0x4563f3]=_0x5aab74['innerHTML']);}return _0x5a474f;}['_sortRoots'](_0x50a3b0){if(!function(_0x1b33c5){return void 0x0!==_0x1b33c5['getRootsAttributes'];}(_0x50a3b0))return _0x50a3b0['model']['document']['getRootNames']();const _0x11b49c=[],_0x2a11db=new Map();for(const _0x52f041 of _0x50a3b0['model']['document']['getRootNames']()){const _0x192586=_0x50a3b0['editing']['view']['getDomRoot'](_0x52f041)['getClientRects']()['item'](0x0);_0x11b49c['push'](_0x52f041),_0x2a11db['set'](_0x52f041,_0x192586);}return _0x11b49c['sort']((_0x4bd62e,_0x2af114)=>{const _0x9a16e0=_0x2a11db['get'](_0x4bd62e),_0x432ecf=_0x2a11db['get'](_0x2af114);return _0x9a16e0['y']-_0x432ecf['y']||_0x9a16e0['x']-_0x432ecf['x'];}),_0x11b49c;}}class Xe extends _0x15a662{static get['requires'](){return[ce,_0x455f93];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x235102){super(_0x235102),_0x235102['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x235102['config']['define']('trackChanges.preview.renderFunction',(_0x6851f2,_0x253838)=>{for(const _0x304271 of _0x253838)_0x6851f2['appendChild'](_0x304271);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x57e15d,Plugin as _0x38a85b,PendingActions as _0x20b042}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1aff0b,ObservableMixin as _0x4b27b1,uid as _0x46d86f,priorities as _0x49db,insertToPriorityArray as _0x1fc153,toArray as _0x402da3,logWarning as _0x4c7bf4,getEnvKeystrokeText as _0x186549,FocusTracker as _0x4ec3b5,KeystrokeHandler as _0x560f46,Collection as _0x179ee7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e9280,IconCancel as _0x5166b3,IconTrackChanges as _0x6dccd5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3a3155,View as _0x3ab385,ViewCollection as _0x2dcc9b,FocusCycler as _0xbdb1e6,UIModel as _0x25c906,createDropdown as _0x11ef6b,SplitButtonView as _0x7ade1c,addListToDropdown as _0x2b59df,MenuBarMenuView as _0x3c2db9,MenuBarMenuListView as _0x7a90d6,ListSeparatorView as _0xfbb784,MenuBarMenuListItemView as _0x40176a,MenuBarMenuListItemButtonView as _0x12c7a2,BodyCollection as _0x5d93da,Dialog as _0xc93136}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1c3104,DocumentCompare as _0x4f4fd6,hashObject as _0x2503ac,surroundingMarkersDetector as _0x44f645,FOCUS_ANNOTATION_KEYSTROKE as _0x1e4978,AriaDescriptionView as _0x1d71ae,setupThreadKeyboardNavigation as _0x1a296b,trimHtml as _0x54541d,UserView as _0xe3b622,LateFocusButtonView as _0x4f3786,getDateTimeFormatter as _0x3464b4,getAllMarkersDomElementsSorted as _0x5861d8,sanitizeEditorConfig as _0x223bb1}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x27b1d6,ModelLiveRange as _0x3cf104,ModelLivePosition as _0x7905b5,ModelPosition as _0x9c47e5,ModelRange as _0x2b8e0c,_DetachOperation as _0x50fa98,ViewDowncastWriter as _0x241f79}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x7131de,toWidget as _0x411112}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3c5941,set as _0x11bb26,isEqual as _0x3a572d,unset as _0x3e3852,omit as Gt}from'es-toolkit/compat';import{Delete as _0x526bff,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x432215}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5445b2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x57e15d{['_enabledCommands'];constructor(_0x46decc,_0x3b11e7){super(_0x46decc),this['_enabledCommands']=_0x3b11e7,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 _0x4093a7 of this['editor']['commands']['commands']())_0x4093a7['affectsData']&&!this['_enabledCommands']['has'](_0x4093a7)&&_0x4093a7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1a6138 of this['editor']['commands']['commands']())_0x1a6138['affectsData']&&!this['_enabledCommands']['has'](_0x1a6138)&&_0x1a6138['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x57e15d{['_suggestions'];constructor(_0x1eba81,_0x441a8b){super(_0x1eba81),this['_suggestions']=_0x441a8b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1640e4){const _0x45a3ad=this['_suggestions']['get'](_0x1640e4);if(!_0x45a3ad)throw new _0x1aff0b('track-changes-accept-suggestion-not-found',this);const _0x3bdc40=_0x45a3ad['getRanges']();this['editor']['model']['canEditAt'](_0x3bdc40)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x45a3ad);}}class O extends _0x57e15d{['_suggestions'];constructor(_0xa86fea,_0x16e5fe){super(_0xa86fea),this['_suggestions']=_0x16e5fe,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x86c9){const _0xdd5f8f=this['_suggestions']['get'](_0x86c9);if(!_0xdd5f8f)throw new _0x1aff0b('track-changes-discard-suggestion-not-found',this);const _0x38177a=_0xdd5f8f['getRanges']();this['editor']['model']['canEditAt'](_0x38177a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xdd5f8f);}}function ls(_0x5ee4cf,_0x14f201){let _0x15b1d0='';return _0x15b1d0+=_0x5ee4cf['split']('*')['map']((_0x2630d0,_0x5d02d1)=>_0x5d02d1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x2630d0)+'</span>':tn(_0x2630d0))['join'](''),_0x14f201&&(_0x15b1d0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x14f201['value']+'\x22\x20title=\x22'+_0x14f201['title']+'\x22></span>'),_0x15b1d0;}function tn(_0x2fa704){const _0x2f5499=document['createElement']('span');return _0x2f5499['innerText']=_0x2fa704,_0x2f5499['innerHTML'];}function ts(_0xc90ba8){return _0xc90ba8['sort']((_0x22b9f3,_0x10472a)=>'attribute'===_0x22b9f3['type']&&'attribute'!==_0x10472a['type']?-0x1:'attribute'!==_0x22b9f3['type']&&'attribute'===_0x10472a['type']?0x1:'deletion'==_0x22b9f3['type']&&'deletion'!=_0x10472a['type']?-0x1:'deletion'!=_0x22b9f3['type']&&'deletion'==_0x10472a['type']?0x1:0x0);}function to(_0x39ec37,_0x250046){let _0x2c039a,_0x4d70b7=0x0;const _0x14ddb1=[],_0x213c68=_0x250046['schema'];for(;_0x4d70b7<_0x39ec37['length'];){const _0x5e7b44=_0x39ec37[_0x4d70b7],_0x4fe9ff=_0x39ec37[_0x4d70b7+0x1];_0x2c039a||(_0x2c039a=_0x250046['createPositionBefore'](_0x5e7b44)),nn(_0x250046,_0x5e7b44,_0x4fe9ff)||(_0x14ddb1['push'](_0x250046['createRange'](_0x2c039a,_0x213c68['isObject'](_0x5e7b44)?_0x250046['createPositionAfter'](_0x5e7b44):_0x250046['createPositionAt'](_0x5e7b44,'end'))),_0x2c039a=null),_0x4d70b7++;}return _0x14ddb1;}function nn(_0x74f834,_0x136f40,_0x5bef75){if(!_0x5bef75)return!0x1;const _0x4e6b72=_0x74f834['createPositionAfter'](_0x136f40),_0x25d1ad=_0x74f834['createPositionBefore'](_0x5bef75);return _0x4e6b72['isTouching'](_0x25d1ad);}function rs(_0x577cf5,_0x286339,_0x47acc6){for(;_0x47acc6['length'];){const _0x4200aa=_0x47acc6['splice'](0x0,0x64);_0x577cf5['change'](()=>{for(const _0x5c365f of _0x4200aa)_0x5c365f['isInContent']&&_0x286339['execute'](_0x5c365f['id']);});}}class x extends _0x57e15d{['_command'];['_suggestions'];constructor(_0x62de9d,_0x4818e4,_0x13c33c){super(_0x62de9d),this['_command']=_0x4818e4,this['_suggestions']=_0x13c33c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7a4a01=Array['from'](this['_suggestions']['values']())['some'](_0x3b5c5d=>_0x3b5c5d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x7a4a01;}['execute'](){const _0x28d080=ts(Array['from'](this['_suggestions']['values']()));for(const _0x24aea0 of _0x28d080){const _0x12eaaf=_0x24aea0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x12eaaf))return;}rs(this['editor']['model'],this['_command'],_0x28d080);}}class E extends _0x57e15d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x147abc,_0x2841f8,_0x4e3ef4){super(_0x147abc),this['_command']=_0x2841f8,this['_suggestions']=_0x4e3ef4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x181f5b=this['editor']['model']['document']['selection'],_0x2cd6b3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x521161,_0x5496c6){const _0x47d302=Array['from'](_0x521161['getRanges']()),_0x36cb48=new Set();for(const _0x1eddbe of _0x5496c6)if(_0x1eddbe['isInContent']){for(const _0x43a155 of _0x47d302)for(const _0x10c1fb of _0x1eddbe['getRanges']())(_0x43a155['isIntersecting'](_0x10c1fb)||_0x521161['isCollapsed']&&!_0x1eddbe['isMultiRange']&&_0x1eddbe['next']&&_0x10c1fb['end']['isTouching'](_0x43a155['start']))&&_0x36cb48['add'](_0x1eddbe);}return _0x36cb48;}(_0x181f5b,_0x2cd6b3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2e6fe0=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2136bf of _0x2e6fe0){const _0x389d87=_0x2136bf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x389d87))return;}rs(this['editor']['model'],this['_command'],_0x2e6fe0);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x4b27b1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5daf7c,_0x3995ff){super(),this['id']=_0x3995ff['id'],this['type']=_0x3995ff['type'],this['subType']=_0x3995ff['subType']||null,this['author']=_0x3995ff['author'],this['creator']=_0x3995ff['creator']||_0x3995ff['author'],this['isExternal']=Boolean(_0x3995ff['attributes']&&_0x3995ff['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3995ff['originalSuggestionId']||null,this['_model']=_0x5daf7c,this['_onAccept']=_0x3995ff['onAccept'],this['_onDiscard']=_0x3995ff['onDiscard'],this['_onAttributesChange']=_0x3995ff['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3995ff['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 _0x50dd3a=this;for(;_0x50dd3a['previous'];)_0x50dd3a=_0x50dd3a['previous'];return _0x50dd3a;}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'](_0x2edecd){this['_markerNames']['add'](_0x2edecd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x104848=>this['_model']['markers']['get'](_0x104848))['filter'](_0x380f75=>_0x380f75);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2a8dfa=>{for(const _0xc4d523 of this['getMarkers']())_0x2a8dfa['removeMarker'](_0xc4d523);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ac4ba){this['_model']['change'](_0x190ae1=>{_0x190ae1['removeMarker'](_0x3ac4ba);}),this['_markerNames']['delete'](_0x3ac4ba);}['addRange'](_0x1ca4b6){const _0x2358f3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x2358f3),this['_model']['change'](_0x1683df=>{_0x1683df['addMarker'](_0x2358f3,{'range':_0x1ca4b6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7dd32e){for(const _0x197e43 of this['getRanges']())if(_0x197e43['isIntersecting'](_0x7dd32e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x578309=>_0x578309['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x235e24,_0xdfe107)=>[..._0x235e24,..._0xdfe107['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1da927=this['getRanges']();if(0x1!=_0x1da927['length'])return null;const _0x20c5e1=_0x1da927[0x0],_0xb66285=_0x20c5e1['start']['nodeAfter'],_0x2790c5=_0x20c5e1['end']['nodeBefore'];return _0xb66285 instanceof _0x27b1d6?_0xb66285!=_0x2790c5?null:_0xb66285: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 _0x5ee18a=[];let _0x5afce5=this['head'];for(;_0x5afce5;)_0x5ee18a['push'](_0x5afce5),_0x5afce5=_0x5afce5['next'];return _0x5ee18a;}['setAttribute'](_0x44e80b,_0x3fb2ae){const _0x2e510a=_0x3c5941(this['attributes']);_0x11bb26(_0x2e510a,_0x44e80b,_0x3fb2ae),_0x3a572d(_0x2e510a,this['attributes'])||(this['attributes']=_0x2e510a,this['_onAttributesChange'](_0x2e510a));}['removeAttribute'](_0x4ad955){const _0x2ced72=_0x3c5941(this['attributes']);_0x3e3852(_0x2ced72,_0x4ad955),_0x3a572d(_0x2ced72,this['attributes'])||(this['attributes']=_0x2ced72,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 _0x46d86f()['substr'](0x1,0x5);}}function o(_0x2cd773,_0x527e84,_0x5c68e5){const _0x820176=_0x2cd773['t'],t=_0x2cd773['t'];switch(_0x527e84){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5c68e5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5c68e5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5c68e5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5c68e5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5c68e5);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',_0x5c68e5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5c68e5);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c68e5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5c68e5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5c68e5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5c68e5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5c68e5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5c68e5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5c68e5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5c68e5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5c68e5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5c68e5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5c68e5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5c68e5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5c68e5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5c68e5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5c68e5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5c68e5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5c68e5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5c68e5);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'},_0x5c68e5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5c68e5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5c68e5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5c68e5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5c68e5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5c68e5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5c68e5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5c68e5);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'},_0x5c68e5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5c68e5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5c68e5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5c68e5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5c68e5);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'},_0x5c68e5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5c68e5);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'},_0x5c68e5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x5c68e5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5c68e5);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'},_0x5c68e5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5c68e5);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'},_0x5c68e5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5c68e5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5c68e5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x5c68e5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5c68e5);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 _0x820176({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5c68e5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x820176({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5c68e5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5c68e5);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5c68e5);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5c68e5);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5c68e5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x527e84;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2de139,_0x3334dc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2de139,this['_locale']=_0x3334dc;}['getDescriptions'](_0x2f3d2b){const _0x21709b=[],_0x65b734=new Set(),_0x8cbf9b=new Set();for(let _0x3dea25=0x0;_0x3dea25<_0x2f3d2b['length'];_0x3dea25++){const _0xfaf9d5=_0x2f3d2b[_0x3dea25];if(!_0xfaf9d5['isInContent'])continue;const _0x5039e7=this['_handleCustomCallbackDescription'](_0xfaf9d5);if(_0x5039e7){if(null!=_0xfaf9d5['subType']){if(_0x65b734['has'](_0xfaf9d5['subType']))continue;_0x65b734['add'](_0xfaf9d5['subType']);}_0x21709b['push'](_0x5039e7);}else{if('attribute'==_0xfaf9d5['type']){const _0xdd48df=_0xfaf9d5['data']['key'];if(_0x8cbf9b['has'](_0xdd48df))continue;_0x8cbf9b['add'](_0xfaf9d5['data']['key']),_0xdd48df==m?this['_handleRenameSuggestionDescription'](_0x21709b,_0xfaf9d5):this['_handleAttributeSuggestionDescription'](_0x21709b,_0xfaf9d5);continue;}'insertion'!=_0xfaf9d5['type']&&'deletion'!=_0xfaf9d5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x21709b,_0xfaf9d5,_0x2f3d2b[_0x3dea25+0x1]);}}return this['_resolveDescriptionItems'](_0x21709b);}['registerDescriptionCallback'](_0x558df6){this['_customCallbacks']['push'](_0x558df6);}['registerElementLabel'](_0x58b89a,_0x3c814f,_0x50de0f=_0x49db['normal']){'function'==typeof _0x58b89a?_0x1fc153(this['_itemLabelsCallbacks'],{'matchingCallback':_0x58b89a,'label':_0x3c814f,'priority':_0x50de0f}):this['_itemLabels']['set'](_0x58b89a,_0x3c814f);}['registerAttributeLabel'](_0xaebc5c,_0x29a717){this['_attributeLabels']['set'](_0xaebc5c,_0x29a717);}['getItemLabel'](_0x27ff23,_0x53ae72=0x1){let _0x152af0;for(const _0x53da56 of this['_itemLabelsCallbacks'])if(_0x53da56['matchingCallback'](_0x27ff23)){_0x152af0=_0x53da56['label'];break;}return _0x152af0||(_0x152af0=this['_itemLabels']['get'](_0x27ff23['name'])),_0x152af0?_0x152af0(_0x53ae72):0x1!==_0x53ae72?_0x53ae72+'\x20'+_0x27ff23['name']+'s':''+_0x27ff23['name'];}['_addDescriptionItems'](_0x674bf1,_0x3d9b1d){const _0x666126=_0x3d9b1d['getFirstRange']()['getWalker'](),_0x448871='insertion'==_0x3d9b1d['type']?'add':'remove';for(const _0x5eb6cf of _0x666126){const _0x2ce453=_0x5eb6cf['item'],_0x26b289=_0x674bf1[_0x674bf1['length']-0x1];if(_0x2ce453['is']('$textProxy'))_0x26b289&&_0x26b289['type']['indexOf']('Container')>-0x1&&_0x674bf1['pop'](),_0x26b289&&'text'==_0x26b289['type']?_0x26b289[_0x448871]+=_0x2ce453['data']:_0x674bf1['push']({'type':'text','add':'add'==_0x448871?_0x2ce453['data']:'','remove':'remove'==_0x448871?_0x2ce453['data']:''});else{if(this['_schema']['isObject'](_0x2ce453)){const _0x1fa783=_0x2ce453;if(_0x26b289&&_0x26b289['type']['indexOf']('Container')>-0x1&&_0x674bf1['pop'](),'elementEnd'==_0x5eb6cf['type'])continue;_0x26b289&&_0x26b289['type']==_0x448871+'Object'&&_0x26b289['element']['name']==_0x1fa783['name']?_0x26b289['quantity']++:_0x674bf1['push']({'type':_0x448871+'Object','element':_0x1fa783,'quantity':0x1}),_0x666126['skip'](_0x50dc5f=>!('elementEnd'==_0x50dc5f['type']&&_0x50dc5f['item']==_0x2ce453));}else{if(this['_schema']['checkChild'](_0x2ce453,'$text')||_0x2ce453['is']('element','softBreak')){const _0x22ad90=_0x2ce453;if('add'==_0x448871&&'elementStart'==_0x5eb6cf['type']||'remove'==_0x448871&&'elementEnd'==_0x5eb6cf['type'])continue;if(_0x26b289&&-0x1==_0x26b289['type']['indexOf']('Container')){'text'==_0x26b289['type']&&(_0x26b289[_0x448871]+='\x0a');continue;}let _0x588ec6;if(_0x588ec6='add'==_0x448871?_0x22ad90['nextSibling']&&!this['_schema']['isObject'](_0x22ad90['nextSibling'])?_0x22ad90['nextSibling']:null:_0x22ad90['previousSibling']&&!this['_schema']['isObject'](_0x22ad90['previousSibling'])?_0x22ad90['previousSibling']:null,_0x22ad90['isEmpty']||_0x588ec6&&_0x588ec6['isEmpty']){const _0x371798=_0x588ec6&&_0x588ec6['isEmpty']?_0x588ec6:_0x22ad90;_0x26b289&&_0x26b289['type']==_0x448871+'EmptyContainer'&&_0x26b289['element']['name']==_0x371798['name']?_0x26b289['quantity']++:_0x674bf1['push']({'type':_0x448871+'EmptyContainer','element':_0x371798,'quantity':0x1});}else _0x674bf1['push']({'type':_0x448871+'Container','element':_0x22ad90});}}}}}['_resolveDescriptionItems'](_0x25c423){const _0xf797fb=this['_locale'],_0x5c2c5f=[],_0x335339=[],_0x3ae78c=[];for(const _0x303ffe of _0x25c423)switch(_0x303ffe['type']){case'text':if(_0x303ffe['add']=_0x303ffe['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x303ffe['remove']=_0x303ffe['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x303ffe['add']&&''!=_0x303ffe['remove']){_0x5c2c5f['push']({'type':'replace','content':o(_0xf797fb,'REPLACE_TEXT',['\x22'+_0x303ffe['remove']+'\x22','\x22'+_0x303ffe['add']+'\x22'])});continue;}if(null!=_0x303ffe['add']['match'](/^ +$/)){_0x5c2c5f['push']({'type':'insertion','content':o(_0xf797fb,'*Insert:*\x20%0',o(_0xf797fb,'ELEMENT_SPACE',_0x303ffe['add']['length']))});continue;}if(null!=_0x303ffe['remove']['match'](/^ +$/)){_0x5c2c5f['push']({'type':'deletion','content':o(_0xf797fb,'*Remove:*\x20%0',o(_0xf797fb,'ELEMENT_SPACE',_0x303ffe['remove']['length']))});continue;}if(''!=_0x303ffe['add']){_0x5c2c5f['push']({'type':'insertion','content':o(_0xf797fb,'*Insert:*\x20%0','\x22'+_0x303ffe['add']+'\x22')});continue;}_0x5c2c5f['push']({'type':'deletion','content':o(_0xf797fb,'*Remove:*\x20%0','\x22'+_0x303ffe['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5c2c5f['push']({'type':'insertion','content':o(_0xf797fb,'*Insert:*\x20%0',this['getItemLabel'](_0x303ffe['element'],_0x303ffe['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5c2c5f['push']({'type':'deletion','content':o(_0xf797fb,'*Remove:*\x20%0',this['getItemLabel'](_0x303ffe['element'],_0x303ffe['quantity']))});continue;case'addContainer':_0x5c2c5f['push']({'type':'insertion','content':o(_0xf797fb,'*Split:*\x20%0',this['getItemLabel'](_0x303ffe['element'],_0x303ffe['quantity']))});continue;case'removeContainer':_0x5c2c5f['push']({'type':'deletion','content':o(_0xf797fb,'*Merge:*\x20%0',this['getItemLabel'](_0x303ffe['element'],_0x303ffe['quantity']))});continue;case'addFormat':_0x335339['push'](_0x303ffe['key']);continue;case'removeFormat':_0x3ae78c['push'](_0x303ffe['key']);continue;default:_0x5c2c5f['push'](_0x303ffe);}if(_0x335339['length']){const _0x4a8314=_0x335339['map'](_0x32d5bf=>this['_attributeLabels']['has'](_0x32d5bf)?this['_attributeLabels']['get'](_0x32d5bf):_0x32d5bf)['join'](',\x20');_0x5c2c5f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4a8314)});}if(_0x3ae78c['length']){const _0x406ee3=_0x3ae78c['map'](_0x3dc940=>this['_attributeLabels']['has'](_0x3dc940)?this['_attributeLabels']['get'](_0x3dc940):_0x3dc940)['join'](',\x20');_0x5c2c5f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x406ee3)});}return _0x5c2c5f;}['_handleCustomCallbackDescription'](_0xbf4aca){for(const _0xc5a891 of this['_customCallbacks']){const _0x1d9915=_0xc5a891(_0xbf4aca);if(_0x1d9915&&'type'in _0x1d9915)return _0x1d9915;}}['_handleAttributeSuggestionDescription'](_0x5e1186,_0x5ae4c1){const _0x5259e4=_0x5ae4c1['data'],_0x23efcb=void 0x0===_0x5259e4['newValue']?'removeFormat':'addFormat';_0x5e1186['push']({'type':_0x23efcb,'key':_0x5259e4['key']});}['_handleRenameSuggestionDescription'](_0x10668b,_0xce605c){_0x10668b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xce605c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x404d22,_0x510c04,_0x20ce0d){if(this['_addDescriptionItems'](_0x404d22,_0x510c04),_0x20ce0d&&_0x20ce0d['getFirstRange']()&&!_0x510c04['getFirstRange']()['end']['isEqual'](_0x20ce0d['getFirstRange']()['start'])){const _0x1ee60f=_0x404d22[_0x404d22['length']-0x1],_0xb508d7='insertion'==_0x510c04['type']?'add':'remove';_0x1ee60f&&'text'==_0x1ee60f['type']&&(_0x1ee60f[_0xb508d7]+='\x0a');}}}class V extends _0x38a85b{['afterInit'](){const _0x3b6261=this['editor'],_0x13621a=_0x3b6261['plugins']['get']('TrackChangesEditing');_0x3b6261['commands']['get']('showAIAssistant')&&_0x13621a['enableCommand']('showAIAssistant');}}class F extends _0x38a85b{['afterInit'](){const _0x130cce=this['editor'],_0x2f9b59=_0x130cce['locale'];if(!_0x130cce['plugins']['has']('AlignmentEditing'))return;const _0x28f885=_0x130cce['plugins']['get']('TrackChangesEditing');_0x28f885['enableDefaultAttributesIntegration']('alignment'),_0x28f885['registerBlockAttribute']('alignment'),_0x28f885['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2f9b59,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b91d4=this['editor'],_0x56ac17=_0x3b91d4['locale'];_0x3b91d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e066e=>{if('formatBlock'!=_0x1e066e['type'])return;const {data:_0x4caffc}=_0x1e066e;if(_0x4caffc&&'alignment'==_0x4caffc['commandName']){const _0x47e812=_0x4caffc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56ac17,'*Format:*\x20%0',function(_0x1cc1a1){switch(_0x1cc1a1){case'left':return o(_0x56ac17,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56ac17,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56ac17,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56ac17,'FORMAT_JUSTIFY_TEXT');}}(_0x47e812))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x38a85b{['afterInit'](){const _0x5b6809=this['editor'],_0x4d43ba=_0x5b6809['plugins']['get']('TrackChangesEditing'),_0x42d878=_0x5b6809['locale'];for(const _0xb6bc9 of ti){if(!_0x5b6809['plugins']['has'](_0xb6bc9))continue;const _0x62e423=_0xb6bc9['slice'](0x0,-0x7)['toLowerCase'](),_0x47acb6='FORMAT_'+_0x62e423['toUpperCase']();_0x4d43ba['enableDefaultAttributesIntegration'](_0x62e423),_0x4d43ba['registerInlineAttribute'](_0x62e423),_0x4d43ba['descriptionFactory']['registerAttributeLabel'](_0x62e423,o(_0x42d878,_0x47acb6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f8ad1=this['editor'],_0x41eb24=_0x4f8ad1['locale'],_0x402908=_0x4f8ad1['plugins']['get']('TrackChangesEditing');function _0x35c55b(_0x40341e,_0x432044){_0x402908['descriptionFactory']['registerDescriptionCallback'](_0x3b2a46=>{if('formatInline'!=_0x3b2a46['type'])return;const {data:_0x285b26}=_0x3b2a46;return _0x285b26&&_0x285b26['commandName']===_0x40341e?_0x285b26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41eb24,'*Format:*\x20%0',_0x432044)}:{'type':'format','content':o(_0x41eb24,'*Remove\x20format:*\x20%0',_0x432044)}:void 0x0;});}_0x35c55b('bold',o(_0x41eb24,'FORMAT_BOLD')),_0x35c55b('italic',o(_0x41eb24,'FORMAT_ITALIC')),_0x35c55b('underline',o(_0x41eb24,'FORMAT_UNDERLINE')),_0x35c55b('code',o(_0x41eb24,'FORMAT_CODE')),_0x35c55b('strikethrough',o(_0x41eb24,'FORMAT_STRIKETHROUGH')),_0x35c55b('subscript',o(_0x41eb24,'FORMAT_SUBSCRIPT')),_0x35c55b('superscript',o(_0x41eb24,'FORMAT_SUPERSCRIPT'));}}class L extends _0x38a85b{['afterInit'](){const _0x27fb0a=this['editor'],_0x56a2dd=_0x27fb0a['locale'];if(!_0x27fb0a['plugins']['has']('BlockQuoteEditing'))return;const _0x2be670=_0x27fb0a['plugins']['get']('TrackChangesEditing'),_0x4ea2cc=this['editor']['commands']['get']('blockQuote');_0x2be670['enableCommand']('blockQuote',(_0x4144c7,_0x34b52f={})=>{const _0x4d0acb=this['editor']['model']['document']['selection'],_0x2f6f2f=_0x34b52f&&void 0x0!==_0x34b52f['forceValue']?_0x34b52f['forceValue']:!_0x4ea2cc['value'];let _0x2485ea=[];if(_0x2f6f2f){const _0x2e6d28=Array['from'](_0x4d0acb['getSelectedBlocks']())['filter'](_0x3a2437=>oo(_0x3a2437)||function(_0xb6bc89,_0x371016){const _0xa4d604=_0x371016['checkChild'](_0xb6bc89['parent'],'blockQuote'),_0x5ab8b0=_0x371016['checkChild'](['$root','blockQuote'],_0xb6bc89);return _0xa4d604&&_0x5ab8b0;}(_0x3a2437,this['editor']['model']['schema']));_0x2485ea=to(_0x2e6d28,_0x27fb0a['model']);}else{const _0x47a0aa=Array['from'](_0x4d0acb['getSelectedBlocks']())['filter'](_0xe0c0d2=>oo(_0xe0c0d2));_0x2485ea=to(_0x47a0aa,_0x27fb0a['model']);}_0x27fb0a['model']['change'](()=>{for(const _0x27cd95 of _0x2485ea)_0x2be670['markBlockFormat'](_0x27cd95,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f6f2f}]});});}),_0x2be670['descriptionFactory']['registerDescriptionCallback'](_0x4af771=>{const {data:_0x2eacb0}=_0x4af771;if(_0x2eacb0&&'blockQuote'==_0x2eacb0['commandName']){const _0x15781b=o(_0x56a2dd,'ELEMENT_BLOCK_QUOTE');return _0x2eacb0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56a2dd,'*Set\x20format:*\x20%0',_0x15781b)}:{'type':'format','content':o(_0x56a2dd,'*Remove\x20format:*\x20%0',_0x15781b)};}});}}function oo(_0x1353fa){return'blockQuote'==_0x1353fa['parent']['name'];}class J extends _0x38a85b{['afterInit'](){const _0x1fd5ce=this['editor'],_0x1a26e8=_0x1fd5ce['locale'],_0x28dd4b=_0x1fd5ce['plugins']['get']('TrackChangesEditing');_0x1fd5ce['plugins']['has']('BookmarkEditing')&&(_0x28dd4b['enableCommand']('insertBookmark'),_0x28dd4b['enableDefaultAttributesIntegration']('updateBookmark'),_0x28dd4b['registerBlockAttribute']('bookmarkId'),_0x28dd4b['descriptionFactory']['registerDescriptionCallback'](_0x37717b=>{if('insertion'!=_0x37717b['type']&&'deletion'!=_0x37717b['type']&&'attribute'!=_0x37717b['type'])return;const _0x26afb9=_0x37717b['getContainedElement']();if(null==_0x26afb9)return;if(!_0x26afb9['is']('element','bookmark'))return;const _0x5e9034=_0x26afb9['getAttribute']('bookmarkId');if('insertion'==_0x37717b['type'])return{'type':'insertion','content':o(_0x1a26e8,'*Insert:*\x20%0','\x22'+_0x5e9034+'\x22\x20'+o(_0x1a26e8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x37717b['type'])return{'type':'deletion','content':o(_0x1a26e8,'*Remove:*\x20%0','\x22'+_0x5e9034+'\x22\x20'+o(_0x1a26e8,'ELEMENT_BOOKMARK'))};const {data:_0x2d6049}=_0x37717b;if(!_0x2d6049||'bookmarkId'!=_0x2d6049['key'])return;return{'type':'format','content':o(_0x1a26e8,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d6049['newValue']+'\x22')};}));}}class K extends _0x38a85b{['afterInit'](){const _0x460e23=this['editor'];_0x460e23['plugins']['has']('CaseChange')&&(_0x460e23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x460e23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x460e23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x38a85b{['afterInit'](){const _0x2c29b8=this['editor'];_0x2c29b8['commands']['get']('ckbox')&&_0x2c29b8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x38a85b{['afterInit'](){const _0x384ec5=this['editor'];if(!_0x384ec5['plugins']['has']('CodeBlock'))return;const _0x5da739=_0x384ec5['plugins']['get']('TrackChangesEditing'),_0x26da7d=_0x384ec5['locale'],_0x237418=_0x384ec5['config']['get']('codeBlock')['languages'],_0x445051=_0x384ec5['commands']['get']('codeBlock');_0x5da739['enableCommand']('indentCodeBlock'),_0x5da739['enableCommand']('outdentCodeBlock'),_0x5da739['enableCommand']('codeBlock',(_0x5ed807,_0x588196={})=>{const _0x11bbe2=_0x384ec5['model'],_0x3c3880=_0x384ec5['model']['document']['selection'],_0x1aa165=_0x588196&&void 0x0!==_0x588196['forceValue']?_0x588196['forceValue']:!_0x445051['value'];let _0xbd84ea;_0x588196['language']||(_0x588196['language']=_0x237418[0x0]['language']),_0xbd84ea=_0x1aa165?Array['from'](_0x3c3880['getSelectedBlocks']())['filter'](_0x2a20a9=>co(_0x2a20a9)||function(_0x272d17,_0x3bf496){if(_0x272d17['is']('rootElement')||_0x3bf496['isLimit'](_0x272d17))return!0x1;return _0x3bf496['checkChild'](_0x272d17['parent'],'codeBlock');}(_0x2a20a9,_0x11bbe2['schema'])):Array['from'](_0x3c3880['getSelectedBlocks']())['filter'](_0x5152c5=>co(_0x5152c5));const _0x4d4f3c=to(_0xbd84ea,_0x11bbe2);_0x11bbe2['change'](()=>{for(const _0x5adfc1 of _0x4d4f3c)_0x5da739['markBlockFormat'](_0x5adfc1,{'commandName':'codeBlock','commandParams':[{..._0x588196,'forceValue':_0x1aa165}],'formatGroupId':'blockName'});});}),(_0x5da739['descriptionFactory']['registerElementLabel']('codeBlock',_0x7c8f0a=>o(_0x26da7d,'ELEMENT_CODE_BLOCK',_0x7c8f0a)),_0x5da739['descriptionFactory']['registerDescriptionCallback'](_0x510c3a=>{if('formatBlock'!=_0x510c3a['type'])return;const _0x13796a=_0x26da7d['t'],{data:_0x3862b8}=_0x510c3a;if(!_0x3862b8||'codeBlock'!=_0x3862b8['commandName'])return;const _0x2af60a=_0x3862b8['commandParams'][0x0]['language'],_0x4eb31c=_0x13796a(_0x237418['find'](_0x4cd3f5=>_0x4cd3f5['language']===_0x2af60a)['label'])['toLowerCase']();return _0x3862b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26da7d,'*Set\x20format:*\x20%0',o(_0x26da7d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4eb31c+')')}:{'type':'format','content':o(_0x26da7d,'*Remove\x20format:*\x20%0',o(_0x26da7d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1b8a6f){return'codeBlock'==_0x1b8a6f['name'];}class q extends _0x38a85b{['afterInit'](){const _0x2633bd=this['editor'];if(!_0x2633bd['plugins']['has']('CommentsEditing'))return;_0x2633bd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x93c206,_0x71bd6e,_0x98606c){const _0x4d1b0b=[];for(const _0x5c4f23 of _0x71bd6e['getItems']())_0x5c4f23['hasAttribute'](_0x93c206)&&_0x4d1b0b['push'](_0x98606c['createRangeOn'](_0x5c4f23));return _0x4d1b0b;}function Ge(_0x555b42,_0x38361a,{showActiveMarker:_0xa3ff9f=!0x0}={}){const _0x13310e=_0x555b42['plugins']['get']('TrackChangesEditing');return(_0x49e8fd,_0x5659de,_0x39af98)=>{if(!_0x39af98['consumable']['test'](_0x5659de['markerRange'],_0x49e8fd['name']))return;const _0x2adb7c=_0x5659de['markerRange']['getWalker'](),_0x528af4=_0x5659de['markerRange']['start'],_0x15ab5e=_0x555b42['model']['schema'];let _0x5ba86a=null,_0x105abb=null,_0x1ab969=!0x1,_0x3b396d=!0x1;for(const _0x24cc62 of _0x2adb7c){const _0x4caf1=_0x24cc62['item'];_0x1ab969=_0x1ab969||_0x15ab5e['isContent'](_0x4caf1);const _0x12b166=_0x39af98['mapper']['toViewElement'](_0x4caf1);if(_0x12b166&&_0x12b166['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x24cc62['type']&&(_0x15ab5e['isBlock'](_0x4caf1)&&!_0x15ab5e['isLimit'](_0x4caf1)&&(_0x4caf1['nextSibling']||_0x528af4['isAtEnd']?_0x5ba86a&&_0x5ba86a['parent']==_0x4caf1||(_0x5ba86a=_0x4caf1,_0x256c60(_0x24cc62['previousPosition']),_0x3b396d=!0x0):_0x105abb=_0x105abb||_0x24cc62['previousPosition']));}function _0x256c60(_0x18fd5d){const {id:_0x5c701c,authorId:_0x13409b}=_0x13310e['_splitMarkerName'](_0x5659de['markerName']),_0x298bcb=_0x39af98['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38361a,'data-suggestion':_0x5c701c,'data-author-id':_0x13409b}),_0x8aa8f4=_0x39af98['mapper']['toViewPosition'](_0x18fd5d);_0xa3ff9f&&_0x13310e['activeMarkers']['includes'](_0x5659de['markerName'])&&_0x39af98['writer']['addClass']('ck-suggestion-marker--active',_0x298bcb),_0x39af98['writer']['insert'](_0x8aa8f4,_0x298bcb),_0x39af98['mapper']['bindElementToMarker'](_0x298bcb,_0x5659de['markerName']);}_0x1ab969||_0x3b396d||!_0x105abb||_0x256c60(_0x105abb);};}class z extends _0x38a85b{static get['requires'](){return[_0x526bff];}['init'](){const _0x28c2d9=this['editor'],_0x3f4659=_0x28c2d9['plugins']['get']('TrackChangesEditing');_0x3f4659['enableCommand']('delete');const _0x313b45=_0x28c2d9['commands']['get']('deleteForward');_0x3f4659['enableCommand']('deleteForward',(_0x12c30c,_0xbb0e42={})=>{const _0x525dfe=_0x28c2d9['model']['createSelection'](_0x28c2d9['model']['document']['selection']);_0x525dfe['isCollapsed']&&_0x28c2d9['model']['modifySelection'](_0x525dfe,{'direction':'forward','unit':_0xbb0e42['unit']});const _0x524782=_0x525dfe['getFirstRange'](),_0x166723=_0x3cf104['fromRange'](_0x524782);let _0x3daf7c;_0x12c30c(_0xbb0e42),_0x3daf7c='$graveyard'==_0x166723['root']['rootName']?_0x28c2d9['model']['createRange'](_0x524782['start']):_0x28c2d9['model']['createRange'](_0x166723['start'],_0x166723['end']),_0x166723['detach'](),_0x28c2d9['model']['enqueueChange'](_0x313b45['buffer']['batch'],_0xeceff1=>{_0x313b45['buffer']['lock'](),_0xeceff1['setSelection'](_0xeceff1['createRange'](_0x3daf7c['end'])),_0x313b45['buffer']['unlock']();});}),_0x28c2d9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x28c2d9,'merge'),{'priority':'high'}),_0x28c2d9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3470c0,_0x1272e1,_0x120dd3)=>{_0x120dd3['options']['showSuggestionHighlights']&&Ge(_0x28c2d9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3470c0,_0x1272e1,_0x120dd3);},{'priority':'high'}),_0x28c2d9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x178815,_0x5e9448,_0xbdd14d)=>{const _0x3193e0=_0xbdd14d['mapper']['markerNameToElements'](_0x5e9448['markerName']);if(_0x3193e0){for(const _0x3a4046 of _0x3193e0)_0x3a4046['is']('uiElement')&&(_0xbdd14d['mapper']['unbindElementFromMarkerName'](_0x3a4046,_0x5e9448['markerName']),_0xbdd14d['writer']['remove'](_0x3a4046));}},{'priority':'high'});}}class Q extends _0x38a85b{['afterInit'](){const _0x1961e8=this['editor'];if(!_0x1961e8['plugins']['has']('ListEditing'))return;const _0x45a453=_0x1961e8['locale'],_0x3f2d4f=_0x1961e8['plugins']['get']('TrackChangesEditing'),_0x381779=_0x1961e8['plugins']['has']('TodoListEditing'),_0x18169d=!!_0x1961e8['config']['get']('list.multiBlock');function _0x33312f(_0x3c1c9d){return{'type':'format','content':''+o(_0x45a453,'*Set\x20format:*\x20%0',_0x3c1c9d)};}function _0x13ae3c(_0x4b36f1){return{'type':'format','content':''+o(_0x45a453,'*Remove\x20format:*\x20%0',_0x4b36f1)};}_0x3f2d4f['enableDefaultAttributesIntegration']('numberedList'),_0x3f2d4f['enableDefaultAttributesIntegration']('bulletedList'),_0x3f2d4f['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f2d4f['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f2d4f['enableDefaultAttributesIntegration']('indentList'),_0x3f2d4f['enableDefaultAttributesIntegration']('outdentList'),_0x3f2d4f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f2d4f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f2d4f['registerBlockAttribute']('listItemId'),_0x3f2d4f['registerBlockAttribute']('listType'),_0x3f2d4f['registerBlockAttribute']('listIndent'),_0x18169d&&(_0x3f2d4f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f2d4f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x381779&&(_0x3f2d4f['enableDefaultAttributesIntegration']('todoList'),_0x3f2d4f['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f2d4f['registerBlockAttribute']('todoListChecked'),_0x3f2d4f['descriptionFactory']['registerDescriptionCallback'](_0x4fe82e=>{const {data:_0x106e15}=_0x4fe82e;if(_0x106e15&&'todoListChecked'==_0x106e15['key'])return{'type':'format','content':_0x106e15['newValue']?o(_0x45a453,'*Check\x20item*'):o(_0x45a453,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xbaa3d6=>{if(_0xbaa3d6['batch']['isUndo'])return!0x1;let _0x293ca7=!0x1;const _0x17cfc7=_0x3f2d4f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe1958c=>'todoListChecked'===_0x3f2d4f['_getAttributeKey'](_0xe1958c));for(const _0x18c871 of _0x17cfc7){'todo'!=_0x18c871['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f2d4f['_findSuggestions'](_0x18c871['getFirstRange'](),'attribute')['find'](_0x58681f=>'listType'===_0x3f2d4f['_getAttributeKey'](_0x58681f['suggestion']))||(_0xbaa3d6['removeMarker'](_0x18c871['getFirstMarker']()),_0x293ca7=!0x0));}return _0x293ca7;})),_0x3f2d4f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x45a453,'FORMAT_INDENT'));const _0x4f4a1f={'type':'format','content':''};_0x3f2d4f['descriptionFactory']['registerDescriptionCallback'](_0x451ac5=>{const {data:_0x44eea7}=_0x451ac5;if(!_0x44eea7||'listType'!=_0x44eea7['key'])return;let _0xe7180=_0x451ac5['head'];for(;_0xe7180;){if(_0xe7180['data']&&(('listStyle'==_0xe7180['data']['key']||'listMarkerStyle'==_0xe7180['data']['key'])&&(_0xe7180['data']['newValue']&&'default'!=_0xe7180['data']['newValue']||'default'!=_0xe7180['data']['oldValue']&&!_0x44eea7['newValue'])||!_0x18169d&&_0xe7180['data']['key']==m))return _0x4f4a1f;_0xe7180=_0xe7180['next'];}if(null==_0x44eea7['newValue'])switch(_0x44eea7['oldValue']){case'bulleted':return _0x13ae3c(o(_0x45a453,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13ae3c(o(_0x45a453,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13ae3c(o(_0x45a453,'ELEMENT_TODO_LIST'));}switch(_0x44eea7['newValue']){case'bulleted':return _0x33312f(o(_0x45a453,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33312f(o(_0x45a453,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33312f(o(_0x45a453,'ELEMENT_TODO_LIST'));}}),_0x3f2d4f['descriptionFactory']['registerDescriptionCallback'](_0x325661=>{const {data:_0x139e2b}=_0x325661;if(_0x139e2b&&'listIndent'==_0x139e2b['key'])return null==_0x139e2b['newValue']||null==_0x139e2b['oldValue']&&0x0==_0x139e2b['newValue']?_0x4f4a1f:void 0x0;}),_0x3f2d4f['descriptionFactory']['registerDescriptionCallback'](_0x15ee0e=>{if('attribute'!=_0x15ee0e['type'])return;const {data:_0x2e18a7}=_0x15ee0e;if(!_0x2e18a7||'listItemId'!=_0x2e18a7['key'])return;const _0xa5dde5=Be(_0x15ee0e);return'newValue'==_0xa5dde5?{'type':'format','content':o(_0x45a453,'*Merge:*\x20list\x20item')}:'oldValue'==_0xa5dde5?{'type':'format','content':o(_0x45a453,'*Split:*\x20list\x20item')}:_0x4f4a1f;}),_0x1961e8['model']['document']['registerPostFixer'](_0x9814ff=>this['listItemIdFixer'](_0x9814ff)),_0x1961e8['model']['document']['registerPostFixer'](_0x678f15=>this['noTrackChangesFixer'](_0x678f15)),_0x1961e8['model']['document']['on']('change:data',(_0x34eaee,_0x3555dc)=>{if(_0x3555dc['isUndo']||!_0x3555dc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2cab1d){if(_0x2cab1d['batch']['isUndo']||!_0x2cab1d['batch']['isLocal'])return!0x1;let _0x46a972=!0x1;const _0x5e9039=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10bd27=>_0x10bd27['data']&&'listItemId'==_0x10bd27['data']['key'])['filter'](_0x37166a=>_0x37166a['data']['newValue']&&_0x37166a['data']['oldValue']);for(const _0x51a543 of _0x5e9039)Be(_0x51a543)||(_0x2cab1d['removeMarker'](_0x51a543['getFirstMarker']()),_0x46a972=!0x0);return _0x46a972;}['noTrackChangesFixer'](_0x2805fe){if(_0x2805fe['batch']['isUndo']||!_0x2805fe['batch']['isLocal'])return!0x1;const _0x56c7c0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56c7c0['trackChangesCommand']['value'])return!0x1;let _0xecb509=!0x1;const _0x3eb9d0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4e1798=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1c1a46=>'attribute'==_0x1c1a46['type'])['filter'](_0xca0793=>_0x3eb9d0['includes'](_0xca0793['attributeKey']));if(0x0==_0x4e1798['length'])return _0xecb509;for(const _0x44ecf5 of _0x4e1798){const _0x5c3fe4=_0x56c7c0['_findSuggestions'](_0x44ecf5['range'],'attribute')['filter'](_0x95cc8a=>!_0x95cc8a['meta']['isNextTo'])['map'](_0x5587f7=>_0x5587f7['suggestion'])['filter'](_0x45e9a1=>{const _0x3e9c7e=_0x56c7c0['_getAttributeKey'](_0x45e9a1);return _0x3eb9d0['includes'](_0x3e9c7e);});if(_0x5c3fe4['length']){for(const _0x36928d of _0x5c3fe4)_0x2805fe['removeMarker'](_0x36928d['getFirstMarker']());_0xecb509=!0x0;}}return _0xecb509;}['assureChains'](){const _0x356310=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8efd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x30e3cb;const _0x4e6c99=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x584942=>{if(_0x584942['data']['oldRange']||!_0x584942['data']['newRange'])return null;if(!_0x584942['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x119eec}=_0x356310['_splitMarkerName'](_0x584942['name']);if(!_0x356310['hasSuggestion'](_0x119eec))return null;const _0x5e3343=_0x356310['getSuggestion'](_0x119eec);return _0x3e8efd['includes'](_0x5e3343['data']['key']);})['map'](_0x35196a=>{const {id:_0x39e9de}=_0x356310['_splitMarkerName'](_0x35196a['name']),_0x1638cc=_0x356310['getSuggestion'](_0x39e9de);return _0x30e3cb=_0x1638cc['attributes']['groupId'],_0x1638cc['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4e6c99['size'])return;const _0x2167ee=_0x356310['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10b2eb=>'attribute'==_0x10b2eb['type']&&_0x10b2eb['data']&&_0x3e8efd['includes'](_0x10b2eb['data']['key'])&&_0x10b2eb['attributes']['groupId']!=_0x30e3cb)['map'](_0x39ba39=>({'listItem':_0x39ba39['getFirstRange']()['start']['nodeAfter'],'groupId':_0x39ba39['attributes']['groupId']})),_0x3404a9=new Set();for(const {groupId:_0x1066f4,listItem:_0x342798}of _0x2167ee)_0x4e6c99['has'](_0x342798)&&_0x3404a9['add'](_0x1066f4);for(const _0x209992 of _0x356310['getSuggestions']())_0x3404a9['has'](_0x209992['attributes']['groupId'])&&_0x209992['setAttribute']('groupId',_0x30e3cb);}['_supportLegacySuggestions'](){const _0x399103=this['editor'],_0x2c692e=_0x399103['locale'],_0x78accf=_0x399103['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x78accf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x553dbd,_0x3db6dd){const _0x2422e6=[];for(let _0x53280c of _0x553dbd)_0x53280c['start']['nodeAfter']===_0x53280c['end']['parent']&&(_0x53280c=_0x399103['model']['createRange'](_0x399103['model']['createPositionAt'](_0x53280c['start']['nodeAfter'],0x0))),_0x2422e6['push'](_0x53280c);_0x399103['model']['change'](_0x22073a=>{const _0x4bff8b=_0x399103['model']['document']['selection'],_0x171134=Array['from'](_0x4bff8b['getRanges']())['map'](_0x35da76=>_0x3cf104['fromRange'](_0x35da76));_0x22073a['setSelection'](_0x2422e6),_0x399103['commands']['get'](_0x3db6dd['commandName'])['refresh'](),_0x3db6dd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x399103['execute'](_0x3db6dd['commandName'],..._0x3db6dd['commandParams']),_0x22073a['setSelection'](_0x171134);for(const _0x362af6 of _0x171134)_0x362af6['detach']();});}),_0x78accf['descriptionFactory']['registerElementLabel'](function(_0x17d958){const _0xfcf59=!_0x399103['model']['schema']['isObject'](_0x17d958),_0x54ac50=_0x17d958['previousSibling'],_0x426ae8=_0x17d958['nextSibling'],_0x4eb043=_0x17d958['getAttribute']('listItemId'),_0x4c5b27=!_0x54ac50||_0x54ac50['getAttribute']('listItemId')!==_0x4eb043,_0x2e928a=!_0x426ae8||_0x426ae8['getAttribute']('listItemId')!==_0x4eb043;return _0xfcf59&&Boolean(_0x4eb043)&&_0x4c5b27&&_0x2e928a;},_0x23846c=>o(_0x2c692e,'ELEMENT_LIST_ITEM',_0x23846c));}['_registerLegacyDescription'](){const _0xf2b799=this['editor'],_0x416a61=_0xf2b799['locale'];function _0x3f5d43(_0x2d03a3){const _0x518101=_0xf2b799['commands']['get']('bulletedList')['value'],_0x3e945e=_0xf2b799['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d03a3?_0x518101:_0x3e945e;}_0xf2b799['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbb25ee){if('formatBlock'!=_0xbb25ee['type'])return;const {data:_0x3d831f}=_0xbb25ee;if(!_0x3d831f)return;let _0x1058ea,_0x526457,_0x3693f9,_0x402431;switch(_0x3d831f['commandName']){case'bulletedList':_0x3693f9=_0x3d831f['commandParams'][0x0]['forceValue'],_0x402431=_0x3f5d43(_0x3d831f['commandName']),_0x1058ea=_0x3693f9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x402431&&_0xf2b799['config']['get']('list.multiBlock')||(_0x1058ea='*Change\x20to:*\x20%0'),_0x526457={'type':'format','content':o(_0x416a61,_0x1058ea,o(_0x416a61,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3693f9=_0x3d831f['commandParams'][0x0]['forceValue'],_0x402431=_0x3f5d43(_0x3d831f['commandName']),_0x1058ea=_0x3693f9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x402431&&_0xf2b799['config']['get']('list.multiBlock')||(_0x1058ea='*Change\x20to:*\x20%0'),_0x526457={'type':'format','content':o(_0x416a61,_0x1058ea,o(_0x416a61,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1058ea='*Indent:*\x20%0',_0x526457={'type':'format','content':o(_0x416a61,_0x1058ea,o(_0x416a61,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1058ea=function(_0x5e9279){const _0xede99d=_0x5e9279['getFirstRange']();let _0x34a23c=_0xede99d['start']['nodeAfter'];for(;_0x34a23c&&_0xede99d['containsItem'](_0x34a23c);){if(_0x34a23c['getAttribute']('listIndent')>0x0)return!0x1;_0x34a23c=_0x34a23c['nextSibling'];}return!0x0;}(_0xbb25ee)?o(_0x416a61,'*Format:*\x20remove\x20from\x20%0',o(_0x416a61,function(_0xab57f1){return'ELEMENT_'+_0xab57f1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbb25ee))):o(_0x416a61,'*Outdent:*\x20%0',o(_0x416a61,'ELEMENT_LIST_ITEM')),_0x526457={'type':'format','content':_0x1058ea};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d831f['multipleBlocks']&&(_0x1058ea='*Merge:*\x20%0',_0x526457={'type':'deletion','content':o(_0x416a61,_0x1058ea,o(_0x416a61,'ELEMENT_LIST_ITEM'))});}return _0x526457;});}}function Be(_0x4c2071){let _0x82fd74=_0x4c2071['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x82fd74;){const _0x1e0328=_0x82fd74['getAttribute']('listItemId');if(!_0x1e0328)return!0x1;if(_0x1e0328==_0x4c2071['data']['newValue'])return'newValue';if(_0x1e0328==_0x4c2071['data']['oldValue'])return'oldValue';_0x82fd74=_0x82fd74['previousSibling'];}return!0x1;}class X extends _0x38a85b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bf118=this['editor']['config']['get']('list.properties'),_0x750dc4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bf118['styles']&&(_0x750dc4['enableDefaultAttributesIntegration']('listStyle'),_0x750dc4['registerBlockAttribute']('listStyle')),_0x2bf118['reversed']&&(_0x750dc4['enableDefaultAttributesIntegration']('listReversed'),_0x750dc4['registerBlockAttribute']('listReversed')),_0x2bf118['startIndex']&&(_0x750dc4['enableDefaultAttributesIntegration']('listStart'),_0x750dc4['registerBlockAttribute']('listStart'));const _0x28033f={'type':'format','content':''};_0x750dc4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11aead=this['editor']['locale'];_0x750dc4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x11aead,'FORMAT_LIST_REVERSED')),_0x750dc4['descriptionFactory']['registerDescriptionCallback'](_0x1c1264=>{const {data:_0x4d82c0}=_0x1c1264;if(_0x4d82c0&&'listReversed'==_0x4d82c0['key'])return null==_0x4d82c0['newValue']||0x0==_0x4d82c0['newValue']&&null==_0x4d82c0['oldValue']?_0x28033f:void 0x0;}),_0x750dc4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x11aead,'FORMAT_LIST_START')),_0x750dc4['descriptionFactory']['registerDescriptionCallback'](_0x4a67d6=>{const {data:_0x41f82c}=_0x4a67d6;if(_0x41f82c&&'listStart'==_0x41f82c['key'])return null==_0x41f82c['newValue']||0x1==_0x41f82c['newValue']&&null==_0x41f82c['oldValue']?_0x28033f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29c294=>{if(_0x29c294['batch']['isUndo'])return!0x1;let _0x5d552e=!0x1;const _0x578c07=_0x750dc4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1260f1=>{const _0x51ebd5=_0x750dc4['_getAttributeKey'](_0x1260f1);return'listStart'==_0x51ebd5||'listReversed'==_0x51ebd5;});for(const _0x5e5527 of _0x578c07){const _0x54b0fd=_0x5e5527['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54b0fd||'customNumbered'==_0x54b0fd)continue;_0x750dc4['_findSuggestions'](_0x5e5527['getFirstRange'](),'attribute')['find'](_0x474355=>'listType'==_0x750dc4['_getAttributeKey'](_0x474355['suggestion']))||(_0x29c294['removeMarker'](_0x5e5527['getFirstMarker']()),_0x5d552e=!0x0);}return _0x5d552e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x53a1e9){const _0x5bfa17=this['editor']['locale'],{data:_0x72b7bd}=_0x53a1e9,_0x359a21={'type':'format','content':''};if(!_0x72b7bd||'listStyle'!=_0x72b7bd['key'])return;if(!_0x72b7bd['oldValue'])return'default'==_0x72b7bd['newValue']?_0x359a21:{'type':'format','content':''+o(_0x5bfa17,'*Set\x20format:*\x20%0',o(_0x5bfa17,this['_getTranslationKeyForListStyle'](_0x72b7bd['newValue'])))};if(!_0x72b7bd['newValue']){if('default'==_0x72b7bd['oldValue'])return _0x359a21;let _0x8cdb7d=_0x53a1e9['head'];for(;_0x8cdb7d;){if(_0x8cdb7d['data']&&'listType'==_0x8cdb7d['data']['key']&&_0x8cdb7d['data']['newValue'])return _0x359a21;_0x8cdb7d=_0x8cdb7d['next'];}return{'type':'format','content':''+o(_0x5bfa17,'*Remove\x20format:*\x20%0',o(_0x5bfa17,this['_getTranslationKeyForListStyle'](_0x72b7bd['oldValue'])))};}if('default'!=_0x72b7bd['newValue'])return{'type':'format','content':''+o(_0x5bfa17,'*Set\x20format:*\x20%0',o(_0x5bfa17,this['_getTranslationKeyForListStyle'](_0x72b7bd['newValue'])))};let _0x8b5e3a=_0x53a1e9['head'];for(;_0x8b5e3a;){if(_0x8b5e3a['data']&&'listType'==_0x8b5e3a['data']['key']&&_0x8b5e3a['data']['newValue']&&_0x8b5e3a['data']['oldValue'])return _0x359a21;_0x8b5e3a=_0x8b5e3a['next'];}return{'type':'format','content':o(_0x5bfa17,'*Set\x20format:*\x20%0',o(_0x5bfa17,'ELEMENT_'+_0x53a1e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x29f9f5=this['editor'],_0x11cb60=_0x29f9f5['locale'];_0x29f9f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35f1a7=>{if('formatBlock'!=_0x35f1a7['type'])return;const {data:_0x54aad4}=_0x35f1a7;if(!_0x54aad4)return;let _0x47a8f2,_0x204976;switch(_0x54aad4['commandName']){case'listStyle':_0x47a8f2='*Change\x20to:*\x20%0',_0x204976={'type':'format','content':o(_0x11cb60,_0x47a8f2,o(_0x11cb60,this['_getTranslationKeyForListStyle'](_0x54aad4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47a8f2=_0x54aad4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x204976={'type':'format','content':o(_0x11cb60,_0x47a8f2)};break;case'listStart':_0x47a8f2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x204976={'type':'format','content':o(_0x11cb60,_0x47a8f2,_0x54aad4['commandParams'][0x0]['startIndex'])};}return _0x204976;});}['_getTranslationKeyForListStyle'](_0x558702){return'ELEMENT_'+function(_0x4459a8){if(Re['includes'](_0x4459a8))return'bulleted';if(Fe['includes'](_0x4459a8))return'numbered';return null;}(_0x558702)['toUpperCase']()+'_LIST_'+_0x558702['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x38a85b{['afterInit'](){const _0x16cedc=this['editor'];_0x16cedc['commands']['get']('emoji')&&_0x16cedc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x38a85b{static get['requires'](){return[_0x432215];}['init'](){const _0xfb5eda=this['editor'],_0x3ad4e1=_0xfb5eda['plugins']['get']('TrackChangesEditing'),_0x485aa2=_0xfb5eda['commands']['get']('enter');_0x3ad4e1['enableCommand']('enter',()=>{_0xfb5eda['model']['change'](_0x15b170=>{const _0x42821a=_0xfb5eda['model']['document']['selection'],_0x28e10f=_0x42821a['getFirstPosition'](),_0x260bf3=_0x3cf104['fromRange'](_0x42821a['getFirstRange']());if(_0x485aa2['enterBlock'](_0x15b170)){const _0x70220f=_0xfb5eda['model']['createPositionAt'](_0x28e10f['parent']['nextSibling'],0x0),_0x25e628=_0x15b170['createRange'](_0x28e10f,_0x70220f);_0x3ad4e1['markInsertion'](_0x25e628);}else _0x15b170['setSelection'](_0x15b170['createRange'](_0x260bf3['end']));_0x260bf3['detach'](),_0x485aa2['fire']('afterExecute',{'writer':_0x15b170});});}),_0xfb5eda['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0xfb5eda,'split'),{'priority':'high'}),_0xfb5eda['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4368ab,_0x1a28c8,_0x1b1bd9)=>{const _0x456e0a=_0x1b1bd9['mapper']['markerNameToElements'](_0x1a28c8['markerName']);if(_0x456e0a){for(const _0x364ce3 of _0x456e0a)_0x364ce3['hasClass']('ck-suggestion-marker-split')&&(_0x1b1bd9['mapper']['unbindElementFromMarkerName'](_0x364ce3,_0x1a28c8['markerName']),_0x1b1bd9['writer']['remove'](_0x364ce3));}},{'priority':'high'}),_0xfb5eda['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59ffa2,_0x301412,_0x1cd688)=>{_0x1cd688['options']['showSuggestionHighlights']&&Ge(_0xfb5eda,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x59ffa2,_0x301412,_0x1cd688);},{'priority':'high'});}}class tt extends _0x38a85b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x499f0b=this['editor']['plugins']['get']('TrackChangesEditing');_0x499f0b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x499f0b['enableCommand']('findNext'),_0x499f0b['enableCommand']('findPrevious'),_0x499f0b['enableCommand']('replace'),_0x499f0b['enableCommand']('replaceAll');}['handleFindCommand'](_0x47bfd4,_0x2cf964,_0x18880a={}){const _0x4ef5e4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47bfd4(_0x16b9ae=>{let _0x28c741=('string'==typeof _0x2cf964?_0x4ef5e4['findByTextCallback'](_0x2cf964,_0x18880a):_0x2cf964)(_0x16b9ae);Array['isArray'](_0x28c741)&&(_0x28c741={'results':_0x28c741,'searchText':'string'==typeof _0x2cf964?_0x2cf964:''});const _0x2b0aba=_0x28c741['results']['filter'](_0x3a69a2=>!0x1===this['_isInDeletionRange'](_0x3a69a2,_0x16b9ae['item']));return{..._0x28c741,'results':_0x2b0aba};},_0x18880a);}['_isInDeletionRange'](_0x55fbbd,_0x227452){const _0x3bb521=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x227452,_0x55fbbd['start']),this['editor']['model']['createPositionAt'](_0x227452,_0x55fbbd['end']));for(const _0x537e56 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3bb521['getIntersection'](_0x537e56['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x38a85b{['afterInit'](){const _0x99f8bb=this['editor']['locale'],_0x35cbc2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16172b,commandName:_0x4b5f88}of eo)this['editor']['plugins']['has'](_0x16172b)&&(_0x35cbc2['enableDefaultAttributesIntegration'](_0x4b5f88),_0x35cbc2['registerInlineAttribute'](_0x4b5f88));_0x35cbc2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x99f8bb,'FORMAT_FONT_SIZE')),_0x35cbc2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x99f8bb,'FORMAT_FONT_FAMILY')),_0x35cbc2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x99f8bb,'FORMAT_FONT_COLOR')),_0x35cbc2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x99f8bb,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ce97c=this['editor'],_0x14f9cb=_0x1ce97c['locale'];_0x1ce97c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x578c83=>{const _0x124c35=_0x14f9cb['t'];if('formatInline'!=_0x578c83['type'])return;const {data:_0x323574}=_0x578c83;if(null!=_0x323574){if('fontSize'==_0x323574['commandName']){const _0x3de64d=_0x323574['commandParams'][0x0]['value'];if(_0x3de64d){const _0x1975f8=_0x124c35(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x411940=>_0x411940['model']==_0x3de64d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x14f9cb,'*Set\x20font\x20size:*\x20%0',_0x1975f8)};}return{'type':'format','content':o(_0x14f9cb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x323574['commandName']){const _0x2dffb7=_0x323574['commandParams'][0x0]['value'];return _0x2dffb7?{'type':'format','content':o(_0x14f9cb,'*Set\x20font\x20family:*\x20%0',_0x2dffb7)}:{'type':'format','content':o(_0x14f9cb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x323574['commandName']){const _0x2e283d=_0x323574['commandParams'][0x0]['value'];if(_0x2e283d){const _0x29ff78=_0x3a3155(this['editor']['config']['get']('fontColor.colors'))['find'](_0x30c800=>_0x30c800['model']==_0x2e283d);let _0x560b93=_0x2e283d,_0x1cab94='';return _0x29ff78&&(_0x560b93=_0x29ff78['label'],_0x1cab94=_0x124c35(_0x560b93)['toLowerCase']()),{'type':'format','content':o(_0x14f9cb,'*Set\x20font\x20color:*\x20%0',_0x1cab94)['trim'](),'color':{'value':_0x2e283d,'title':_0x1cab94||_0x560b93}};}return{'type':'format','content':o(_0x14f9cb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x323574['commandName']){const _0x20f217=_0x323574['commandParams'][0x0]['value'];if(_0x20f217){const _0x3b1b2b=_0x3a3155(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x275fa6=>_0x275fa6['model']==_0x20f217);let _0x4398c3=_0x20f217,_0x153484='';return _0x3b1b2b&&(_0x4398c3=_0x3b1b2b['label'],_0x153484=_0x124c35(_0x4398c3)['toLowerCase']()),{'type':'format','content':o(_0x14f9cb,'*Set\x20font\x20background\x20color:*\x20%0',_0x153484)['trim'](),'color':{'value':_0x20f217,'title':_0x153484||_0x4398c3}};}return{'type':'format','content':o(_0x14f9cb,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x38a85b{['afterInit'](){const _0x44b4be=this['editor'],_0x40f5fd=_0x44b4be['plugins']['get']('TrackChangesEditing'),_0xb3c83d=_0x44b4be['commands']['get']('copyFormat'),_0x22c9a8=_0x44b4be['commands']['get']('pasteFormat');_0xb3c83d&&_0x22c9a8&&(_0x40f5fd['enableDefaultAttributesIntegration']('pasteFormat'),_0x40f5fd['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x176167=this['editor'],_0x53bb3e=_0x176167['locale'];_0x176167['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48777b=>{if('formatBlock'!=_0x48777b['type']&&'formatInline'!=_0x48777b['type'])return;const {data:_0x471aed}=_0x48777b;if(_0x471aed&&'pasteFormat'===_0x471aed['commandName']){const _0x1edeec=[],_0x47a0a0=_0x471aed['commandParams'][0x0];for(const [_0x27927e,_0x1180a8]of Object['entries'](_0x47a0a0))_0x1edeec['push'](ro(_0x176167,_0x27927e,_0x1180a8));return _0x1edeec['length']?{'type':'format','content':o(_0x53bb3e,'*Set\x20format\x20to:*\x20%0',_0x1edeec['join'](',\x20'))}:{'type':'format','content':o(_0x53bb3e,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x425d97,_0x256566,_0x5d55f5){const _0x3e3d72=_0x425d97['locale']['t'],_0x13a69c=_0x256566['split'](/(?=[A-Z])/)['join']('\x20'),_0x1725ee=_0x3e3d72(_0x13a69c['charAt'](0x0)['toUpperCase']()+_0x13a69c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5d55f5)return _0x1725ee;if('fontColor'===_0x256566||'fontBackgroundColor'===_0x256566){const _0xa349f5=_0x3a3155(_0x425d97['config']['get']('fontColor.colors'))['find'](_0x4a0208=>_0x4a0208['model']==_0x5d55f5);return _0x1725ee+'\x20('+(_0xa349f5?_0x3e3d72(_0xa349f5['label'])['toLowerCase']():_0x5d55f5)+')';}if('fontSize'===_0x256566&&isNaN(parseFloat(_0x5d55f5))){const _0x4e0482=_0x425d97['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x425d97['config']['get']('fontSize.options'))['find'](_0x5ed74e=>_0x5ed74e['model']==_0x5d55f5);return _0x1725ee+'\x20('+(_0x4e0482?_0x3e3d72(_0x4e0482['title'])['toLowerCase']():_0x5d55f5)+')';}return _0x1725ee+'\x20('+_0x5d55f5+')';}class nt extends _0x38a85b{['_headingOptions'];['afterInit'](){const _0x147216=this['editor'];if(!_0x147216['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x147216['config']['get']('heading.options');const _0x2cdb13=_0x147216['locale'],_0x215411=_0x147216['plugins']['get']('TrackChangesEditing');_0x215411['enableDefaultAttributesIntegration']('heading');for(const _0x35fa33 of this['_headingOptions'])'paragraph'!=_0x35fa33['model']&&_0x215411['descriptionFactory']['registerElementLabel'](_0x35fa33['model'],_0x50ad3a=>{const _0x3db4c9=this['_getHeadingLevel'](_0x35fa33['model']);return null!==_0x3db4c9?_0x448860(_0x50ad3a,_0x3db4c9):_0x1c9bb6(_0x50ad3a,_0x35fa33['title']);});function _0x448860(_0xe80bf3,_0x26f1ba){return o(_0x2cdb13,'ELEMENT_HEADING',[_0xe80bf3,_0x26f1ba]);}function _0x1c9bb6(_0x3fef9d,_0xcd9202){return o(_0x2cdb13,'ELEMENT_HEADING_CUSTOM',[_0x3fef9d,_0xcd9202]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c7b05=this['editor'],_0x585537=_0x5c7b05['locale'];function _0x596a73(_0xbc5afe,_0x328d34){return o(_0x585537,'ELEMENT_HEADING_CUSTOM',[_0xbc5afe,_0x328d34]);}_0x5c7b05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c3e03=>{if('formatBlock'!=_0x2c3e03['type'])return;const {data:_0x3c4528}=_0x2c3e03;if(_0x3c4528&&'heading'==_0x3c4528['commandName']){const _0x252390=_0x3c4528['commandParams'][0x0]['value'],_0x1794e1=this['_getHeadingLevel'](_0x252390);if(null!==_0x1794e1)return{'type':'format','content':o(_0x585537,'*Change\x20to:*\x20%0',(_0x40f959=0x1,_0x33e754=_0x1794e1,o(_0x585537,'ELEMENT_HEADING',[_0x40f959,_0x33e754])))};const _0x54c07e=this['_headingOptions']['find'](_0x464a15=>_0x464a15['model']===_0x252390)['title'];return{'type':'format','content':o(_0x585537,'*Change\x20to:*\x20%0',_0x596a73(0x1,_0x54c07e))};}var _0x40f959,_0x33e754;});}['_getHeadingLevel'](_0x224220){const _0x2484f2=_0x224220['match'](/^heading(\d+)/);if(_0x2484f2)return _0x2484f2[0x1];const _0xfe3f9b=this['_headingOptions']?.['find'](_0x1608df=>_0x1608df['model']==_0x224220);if(_0xfe3f9b&&_0xfe3f9b['view']){const _0x36bb10=_0xfe3f9b['view'],_0x3ce076=(_0x36bb10['name']??_0x36bb10)['match'](/^h(\d+)/);if(_0x3ce076)return _0x3ce076[0x1];}return null;}}class st extends _0x38a85b{['afterInit'](){const _0x5addc3=this['editor'];if(!_0x5addc3['plugins']['has']('HighlightEditing'))return;const _0x16104a=_0x5addc3['plugins']['get']('TrackChangesEditing'),_0x307c37=_0x5addc3['locale'];_0x16104a['enableDefaultAttributesIntegration']('highlight'),_0x16104a['registerInlineAttribute']('highlight'),_0x16104a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x307c37,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57aff4=this['editor'],_0x247b39=_0x57aff4['locale'];_0x57aff4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5a03=>{if('formatInline'!=_0x3e5a03['type'])return;const {data:_0x4d6749}=_0x3e5a03;if(_0x4d6749&&'highlight'==_0x4d6749['commandName']){const _0x371110=_0x247b39['t'],_0xe49aa9=_0x4d6749['commandParams'][0x0]['value'];if(_0xe49aa9){const _0x303506=_0x57aff4['config']['get']('highlight.options')['find'](_0x40de37=>_0x40de37['model']==_0xe49aa9),_0x148fec=_0x371110(_0x303506['title'])['toLowerCase']();return{'type':'format','content':o(_0x247b39,'*Set\x20highlight:*\x20%0',_0x148fec),'color':{'value':_0x303506['color'],'title':_0x303506['title']}};}return{'type':'format','content':o(_0x247b39,'*Remove\x20highlight*',o(_0x247b39,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x38a85b{['afterInit'](){const _0x40073f=this['editor'];if(!_0x40073f['plugins']['has']('HorizontalLineEditing'))return;_0x40073f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x450e81=_0x40073f['plugins']['get']('TrackChangesEditing'),_0x546750=_0x40073f['locale'];_0x450e81['descriptionFactory']['registerElementLabel']('horizontalLine',_0x19d904=>o(_0x546750,'ELEMENT_HORIZONTAL_LINE',_0x19d904)),_0x40073f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x54fb81,{writer:_0x5aa6d9,options:_0xcd964b})=>{if(!_0xcd964b['showSuggestionHighlights'])return null;const _0x43c987=_0x5aa6d9['createContainerElement']('div'),_0x4c1692=_0x5aa6d9['createEmptyElement']('hr');return _0x5aa6d9['addClass']('ck-horizontal-line',_0x43c987),_0x5aa6d9['insert'](_0x5aa6d9['createPositionAt'](_0x43c987,0x0),_0x4c1692),_0x43c987;},'converterPriority':'high'});}}class rt extends _0x38a85b{['afterInit'](){const _0x2e26da=this['editor'];if(!_0x2e26da['plugins']['has']('HtmlEmbed'))return;const _0x233d27=_0x2e26da['plugins']['get']('TrackChangesEditing'),_0x28d6df=_0x2e26da['locale'];_0x233d27['descriptionFactory']['registerElementLabel']('rawHtml',_0x439364=>o(_0x28d6df,'ELEMENT_HTML_EMBED',_0x439364)),_0x233d27['enableDefaultAttributesIntegration']('htmlEmbed'),_0x233d27['registerBlockAttribute']('value'),_0x233d27['descriptionFactory']['registerDescriptionCallback'](_0x506ab1=>{if('attribute'!=_0x506ab1['type'])return;const {data:_0x1f7b65}=_0x506ab1;if(_0x1f7b65&&'value'==_0x1f7b65['key']&&_0x506ab1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5ed740=o(_0x28d6df,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x28d6df,'*Change\x20%0\x20content*',_0x5ed740)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5002db=this['editor'],_0x55ff14=_0x5002db['locale'];_0x5002db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x514b21=>{if('formatBlock'!=_0x514b21['type'])return;const {data:_0x4861a3}=_0x514b21;if(_0x4861a3&&'htmlEmbed'==_0x4861a3['commandName']){const _0x23c374=o(_0x55ff14,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x55ff14,'*Change\x20%0\x20content*',_0x23c374)};}});}}class at extends _0x38a85b{['afterInit'](){const _0x47c54a=this['editor'];if(!_0x47c54a['plugins']['has']('ImageEditing'))return;const _0x1afe71=_0x47c54a['plugins']['get']('TrackChangesEditing'),_0xb2aa94=_0x47c54a['plugins']['get']('ImageUtils'),_0x288184=_0x47c54a['locale'];_0x1afe71['enableCommand']('insertImage'),_0x1afe71['descriptionFactory']['registerElementLabel']('imageBlock',_0x2d949c=>o(_0x288184,'ELEMENT_IMAGE',_0x2d949c)),_0x1afe71['descriptionFactory']['registerElementLabel']('imageInline',_0x4f369c=>o(_0x288184,'ELEMENT_INLINE_IMAGE',_0x4f369c)),_0x1afe71['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x288184,'ELEMENT_CAPTION')),_0x47c54a['plugins']['has']('ImageUploadEditing')&&_0x1afe71['enableCommand']('uploadImage'),_0x47c54a['plugins']['has']('ImageBlockEditing')&&_0x47c54a['plugins']['has']('ImageInlineEditing')&&(_0x1afe71['enableCommand']('imageTypeInline',(_0x203c86,_0x1bca3a)=>{const _0x3cc3de=_0xb2aa94['getClosestSelectedImageElement'](_0x47c54a['model']['document']['selection']);_0x47c54a['model']['change'](()=>{_0x1afe71['markBlockFormat'](_0x3cc3de,{'commandName':'imageTypeInline','commandParams':[_0x1bca3a]},[],'convertBlockImageToInline');});}),_0x1afe71['enableCommand']('imageTypeBlock',(_0x203a3a,_0x49134b)=>{_0x47c54a['model']['change'](_0x2de44d=>{let _0x35d36e=_0xb2aa94['getClosestSelectedImageElement'](_0x47c54a['model']['document']['selection']),_0x3f65a2=_0x2de44d['createRangeOn'](_0x35d36e);const _0x438d7c=_0x7905b5['fromPosition'](_0x3f65a2['start'],'toPrevious'),_0x6edc80=_0x7905b5['fromPosition'](_0x3f65a2['end'],'toNext');_0x1afe71['forceDefaultExecution'](()=>_0x203a3a(_0x49134b)),_0x35d36e=_0xb2aa94['getClosestSelectedImageElement'](_0x47c54a['model']['document']['selection']),_0x3f65a2=_0x2de44d['createRangeOn'](_0x35d36e);const _0x56e240=_0x2de44d['createRange'](_0x438d7c,_0x6edc80);_0x438d7c['detach'](),_0x6edc80['detach'](),_0x1afe71['markBlockFormat'](_0x35d36e,{'commandName':'imageTypeInline','commandParams':[_0x49134b]},[],'convertInlineImageToBlock'),_0x56e240['start']['isBefore'](_0x3f65a2['start'])&&_0x1afe71['markInsertion'](_0x2de44d['createRange'](_0x56e240['start'],_0x3f65a2['start']),'convertInlineImageToBlock'),_0x3f65a2['end']['isBefore'](_0x56e240['end'])&&_0x1afe71['markInsertion'](_0x2de44d['createRange'](_0x3f65a2['end'],_0x56e240['end']),'convertInlineImageToBlock');});}),_0x1afe71['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1afe71['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1afe71['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1afe71['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1afe71['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1afe71['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x430281])=>{const _0x553643=_0x1afe71['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1e7cf9=_0x430281['start'],_0x119d53=_0x430281['end'];const _0x203821=_0x47c54a['model']['schema']['getNearestSelectionRange'](_0x1e7cf9,'backward'),_0x18321d=_0x47c54a['model']['schema']['getNearestSelectionRange'](_0x119d53,'forward');_0x203821['isCollapsed']&&(_0x1e7cf9=_0x203821['start']),_0x18321d['isCollapsed']&&(_0x119d53=_0x18321d['end']),_0x553643([_0x47c54a['model']['createRange'](_0x1e7cf9,_0x119d53)]);}),_0x1afe71['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x411e66),_0x1afe71['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x411e66)),_0x47c54a['plugins']['has']('ImageCaptionEditing')&&(_0x1afe71['enableCommand']('toggleImageCaption',(_0x36bdaf,_0x13eb45)=>{const _0x3b8b32=_0x47c54a['plugins']['get']('ImageCaptionUtils');let _0x12903c=_0xb2aa94['getClosestSelectedImageElement'](_0x47c54a['model']['document']['selection']),_0xdd4b8b=_0x3b8b32['getCaptionFromImageModelElement'](_0x12903c);_0x47c54a['model']['change'](()=>{if(_0xdd4b8b)return void _0x1afe71['markDeletion'](_0x47c54a['model']['createRangeOn'](_0xdd4b8b));const _0x504446=_0xb2aa94['isBlockImage'](_0x12903c);_0x36bdaf(_0x13eb45),_0x12903c=_0xb2aa94['getClosestSelectedImageElement'](_0x47c54a['model']['document']['selection']),_0xdd4b8b=_0x3b8b32['getCaptionFromImageModelElement'](_0x12903c),_0x1afe71['markInsertion'](_0x47c54a['model']['createRangeOn'](_0xdd4b8b),_0x504446?null:'imageCaption');});}),_0x1afe71['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x411e66));const _0x5a954f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd39c4a(_0x3dc4e3,_0x32a598){const _0x5e4f62=_0x5a954f['findIndex'](({type:_0x3d942a,subType:_0x3efb42})=>_0x3dc4e3['type']==_0x3d942a&&_0x3dc4e3['subType']==_0x3efb42),_0x55a332=_0x5a954f['findIndex'](({type:_0x3ee165,subType:_0xc89bac})=>_0x32a598['type']==_0x3ee165&&_0x32a598['subType']==_0xc89bac);if(_0x5e4f62<0x0||_0x55a332<0x0)return!0x1;const _0x525aa9=_0x3dc4e3['getFirstRange'](),_0x18f71d=_0x32a598['getFirstRange']();if((0x0==_0x5e4f62||0x1==_0x5e4f62)&&0x2==_0x55a332&&_0x525aa9['isIntersecting'](_0x18f71d))return!0x0;if(0x2==_0x5e4f62&&0x3==_0x55a332){const _0x5b0625=_0x1afe71['_findSuggestions'](_0x525aa9,'insertion')['filter'](({suggestion:_0x14c98e,meta:_0x7f606e})=>_0x7f606e['isOwn']&&'convertInlineImageToBlock'==_0x14c98e['subType']);if(_0x5b0625['length']>0x1&&_0x18f71d['end']['isEqual'](_0x525aa9['start']))return!0x0;if(0x1==_0x5b0625['length']&&(_0x525aa9['start']['isEqual'](_0x18f71d['end'])||_0x525aa9['end']['isEqual'](_0x18f71d['start'])))return!0x0;}if(0x3==_0x5e4f62&&0x3==_0x55a332&&_0x525aa9['start']['isBefore'](_0x18f71d['start'])){const _0x5b88a6=_0x525aa9['end']['nodeAfter'],_0x528668=_0x18f71d['start']['nodeBefore'];return _0xb2aa94['isBlockImage'](_0x5b88a6)&&_0x5b88a6===_0x528668;}return!0x1;}function _0x411e66(_0x4e915e,_0x5ad129){return _0xd39c4a(_0x4e915e,_0x5ad129)?[_0x4e915e,_0x5ad129]:_0xd39c4a(_0x5ad129,_0x4e915e)?[_0x5ad129,_0x4e915e]:null;}_0x47c54a['plugins']['has']('ImageResize')&&(_0x1afe71['enableDefaultAttributesIntegration']('resizeImage'),_0x1afe71['registerBlockAttribute']('resizedWidth'),_0x1afe71['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x288184,'FORMAT_IMAGE_SIZE'))),_0x47c54a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1afe71['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1afe71['registerBlockAttribute']('alt')),_0x47c54a['plugins']['has']('PictureEditing')&&(_0x1afe71['registerBlockAttribute']('sources'),_0x1afe71['descriptionFactory']['registerDescriptionCallback'](_0x4235b8=>{if('attribute'!=_0x4235b8['type'])return;const {data:_0x3cd953}=_0x4235b8;return _0x3cd953&&'sources'==_0x3cd953['key']?{'type':'format','content':''}:void 0x0;})),_0x47c54a['plugins']['has']('ImageSizeAttributes')&&(_0x1afe71['registerBlockAttribute']('width'),_0x1afe71['registerBlockAttribute']('height'),_0x1afe71['descriptionFactory']['registerDescriptionCallback'](_0x1aa93a=>{if('attribute'!=_0x1aa93a['type'])return;const {data:_0x304f89}=_0x1aa93a;return!_0x304f89||'width'!=_0x304f89['key']&&'height'!=_0x304f89['key']?void 0x0:{'type':'format','content':''};})),_0x1afe71['descriptionFactory']['registerDescriptionCallback'](_0x53fe38=>{if(!!_0x5a954f['find'](({type:_0x124092,subType:_0x2a632f})=>_0x53fe38['type']==_0x124092&&_0x53fe38['subType']==_0x2a632f))return _0x53fe38['previous']?{}:void 0x0;}),_0x1afe71['descriptionFactory']['registerDescriptionCallback'](_0x14b51f=>{if('insertion'==_0x14b51f['type']||'deletion'==_0x14b51f['type']){const _0x430069=_0x14b51f['getContainedElement']();if(_0x430069&&_0x430069['is']('element','caption'))return{'type':'insertion'==_0x14b51f['type']?'addObject':'removeObject','element':_0x430069,'quantity':0x1};}}),_0x1afe71['descriptionFactory']['registerDescriptionCallback'](_0x457185=>'formatBlock'==_0x457185['type']&&'convertInlineImageToBlock'==_0x457185['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x457185['type']&&'convertBlockImageToInline'==_0x457185['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1afe71['descriptionFactory']['registerDescriptionCallback'](_0x448a47=>{if('attribute'!=_0x448a47['type'])return;const {data:_0x1d217a}=_0x448a47;if(!_0x1d217a||'alt'!=_0x1d217a['key'])return;const _0x3c2463=_0x1d217a['newValue'];return _0x3c2463?{'type':'format','content':o(_0x288184,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c2463+'\x22')}:{'type':'format','content':o(_0x288184,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef785=this['editor'],_0x4447d4=_0x4ef785['locale'];_0x4ef785['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8c8d31=>{if('formatBlock'!=_0x8c8d31['type']&&'formatInline'!=_0x8c8d31['type'])return;const {data:_0x1e9ffa}=_0x8c8d31;if(_0x1e9ffa){if('imageTextAlternative'==_0x1e9ffa['commandName']){const _0x38e7c3=_0x1e9ffa['commandParams'][0x0]['newValue'];return _0x38e7c3?{'type':'format','content':o(_0x4447d4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38e7c3+'\x22')}:{'type':'format','content':o(_0x4447d4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1e9ffa['commandName']){const _0x3f6d87=_0x1e9ffa['commandParams'][0x0]['width'];return _0x3f6d87?{'type':'format','content':o(_0x4447d4,'*Set\x20image\x20width:*\x20%0',_0x3f6d87)}:{'type':'format','content':o(_0x4447d4,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x38a85b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x9b1e67=this['editor']['locale'],_0x449674=this['editor']['plugins']['get']('TrackChangesEditing');_0x449674['enableDefaultAttributesIntegration']('replaceImageSource'),_0x449674['registerBlockAttribute']('src'),_0x449674['descriptionFactory']['registerDescriptionCallback'](_0x5a68d2=>{if('attribute'!=_0x5a68d2['type'])return;const {data:_0x174de8}=_0x5a68d2;return _0x174de8&&'src'==_0x174de8['key']?_0x174de8['newValue']&&_0x174de8['oldValue']?{'type':'format','content':o(_0x9b1e67,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b90d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b90d0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3b90d0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b90d0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3b90d0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5482e5=this['editor'],_0x1d306a=_0x5482e5['locale'];_0x5482e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51a309=>{if('formatBlock'!=_0x51a309['type']&&'formatInline'!=_0x51a309['type'])return;const {data:_0x4cdc94}=_0x51a309;if(!_0x4cdc94||'replaceImageSource'!=_0x4cdc94['commandName'])return;return{'type':'format','content':o(_0x1d306a,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x38a85b{['afterInit'](){const _0x28a8a1=this['editor'];if(!_0x28a8a1['plugins']['has']('ImageStyleEditing'))return;const _0x83892d=_0x28a8a1['plugins']['get']('TrackChangesEditing'),_0x4fea90=_0x28a8a1['plugins']['get']('ImageUtils'),_0x7441dd={};_0x83892d['enableCommand']('imageStyle',(_0x47479e,_0x5615f4)=>{const _0x1d2637=_0x28a8a1['plugins']['get']('Users')['me'],_0x406e09=_0x28a8a1['commands']['get']('imageStyle');let _0x4933a0=_0x4fea90['getClosestSelectedImageElement'](_0x28a8a1['model']['document']['selection']),_0x255d11=_0x28a8a1['model']['createRangeOn'](_0x4933a0),_0x3c4b31=_0x406e09['value'];if(_0x3c4b31==_0x5615f4['value'])return;const _0xe46511={'commandName':'imageStyle','commandParams':[_0x5615f4],'formatGroupId':_0x46d86f()};_0x28a8a1['model']['change'](()=>{if(_0x83892d['getSuggestions']()['filter'](_0x2d56dc=>_0x2d56dc['isInContent']&&_0x1d2637==_0x2d56dc['author']&&('formatBlock'==_0x2d56dc['type']||'formatInline'==_0x2d56dc['type'])&&('imageStylePreApply'==_0x2d56dc['subType']||'imageStylePostApply'==_0x2d56dc['subType'])&&_0x2d56dc['getFirstRange']()['isEqual'](_0x255d11))['forEach'](_0x7a91dc=>_0x83892d['discardSuggestion'](_0x7a91dc['head'])),_0x4933a0=_0x4fea90['getClosestSelectedImageElement'](_0x28a8a1['model']['document']['selection']),_0x255d11=_0x28a8a1['model']['createRangeOn'](_0x4933a0),_0x406e09['refresh'](),_0x28a8a1['commands']['get']('imageTypeInline')['refresh'](),_0x28a8a1['commands']['get']('imageTypeBlock')['refresh'](),_0x3c4b31=_0x406e09['value'],_0x3c4b31!=_0x5615f4['value'])return _0x4fea90['isInlineImage'](_0x4933a0)&&_0x406e09['shouldConvertImageType'](_0x5615f4['value'],_0x4933a0)?(_0x47479e({..._0x5615f4,'setImageSizes':!0x1}),_0x4933a0=_0x4fea90['getClosestSelectedImageElement'](_0x28a8a1['model']['document']['selection']),void _0x83892d['markBlockFormat'](_0x4933a0,{..._0xe46511,'commandReversedParams':[{'value':_0x3c4b31||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4fea90['isBlockImage'](_0x4933a0)?_0x83892d['markBlockFormat'](_0x4933a0,_0xe46511,[],'imageStylePostApply'):_0x83892d['markInlineFormat'](_0x255d11,_0xe46511,'imageStylePostApply'));});});for(const _0x11eec0 of _0x28a8a1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x7441dd[_0x11eec0['name']]=_0x11eec0['title']['toLowerCase']();_0x83892d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x83892d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x83892d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x83892d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47bfac])=>{_0x4fea90['setImageNaturalSizeAttributes'](_0x47bfac['getContainedElement']());}),_0x83892d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x27b686,_0x1f981e)=>{_0x83892d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x27b686,{'commandName':_0x1f981e['commandName'],'commandParams':_0x1f981e['commandReversedParams']});}),_0x83892d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x399065,_0x2e61e5){if(_0x5417e4(_0x399065,_0x2e61e5))return[_0x399065,_0x2e61e5];if(_0x5417e4(_0x2e61e5,_0x399065))return[_0x2e61e5,_0x399065];return null;});const _0x12e328=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5417e4(_0x4b8d5a,_0x1d2bef){const _0x36130d=_0x12e328['findIndex'](({type:_0x2a3cef,subType:_0xd215c9})=>_0x4b8d5a['type']==_0x2a3cef&&_0x4b8d5a['subType']==_0xd215c9),_0x33fb51=_0x12e328['findIndex'](({type:_0x401417,subType:_0xb35078})=>_0x1d2bef['type']==_0x401417&&_0x1d2bef['subType']==_0xb35078);if(_0x36130d<0x0||_0x33fb51<0x0)return!0x1;const _0x126214=_0x4b8d5a['getFirstRange'](),_0xc21ad0=_0x1d2bef['getFirstRange']();if((0x0==_0x36130d||0x1==_0x36130d)&&0x2==_0x33fb51&&_0x126214['isIntersecting'](_0xc21ad0))return!0x0;if(0x2==_0x36130d&&0x3==_0x33fb51){const _0x5d3a87=_0x83892d['_findSuggestions'](_0x126214,'insertion')['filter'](({suggestion:_0x3eb3d3,meta:_0x25c233})=>_0x25c233['isOwn']&&'convertInlineImageToBlock'==_0x3eb3d3['subType']);if(_0x5d3a87['length']>0x1&&_0xc21ad0['end']['isEqual'](_0x126214['start']))return!0x0;if(0x1==_0x5d3a87['length']&&(_0x126214['start']['isEqual'](_0xc21ad0['end'])||_0x126214['end']['isEqual'](_0xc21ad0['start'])))return!0x0;}if(0x3==_0x36130d&&0x3==_0x33fb51&&_0x126214['start']['isBefore'](_0xc21ad0['start'])){const _0x516bdf=_0x126214['end']['nodeAfter'],_0x3f1f28=_0xc21ad0['start']['nodeBefore'];return _0x4fea90['isBlockImage'](_0x516bdf)&&_0x516bdf===_0x3f1f28;}return!0x1;}_0x28a8a1['model']['document']['registerPostFixer'](()=>{let _0x245bae=!0x1;const _0x222e1c=Array['from'](_0x28a8a1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a4a27,data:_0x3432f2}of _0x222e1c){const {group:_0x1676a9,type:_0x2e3f10,subType:_0x1a066b,id:_0x59534e}=_0x83892d['_splitMarkerName'](_0x1a4a27);if('suggestion'==_0x1676a9&&_0x83892d['hasSuggestion'](_0x59534e)){if('formatBlock'==_0x2e3f10&&('imageStylePreApply'==_0x1a066b||'imageStylePostApply'==_0x1a066b)){const _0x4b6f95=_0x83892d['getSuggestion'](_0x59534e);if(_0x3432f2['newRange']){const _0x314984=_0x4b6f95['getFirstRange']()['getContainedElement']();if(_0x4fea90['isBlockImage'](_0x314984))continue;_0x83892d['discardSuggestion'](_0x4b6f95),_0x245bae=!0x0;}}if('insertion'==_0x2e3f10&&'imageCaption'==_0x1a066b&&!_0x3432f2['newRange']){const _0x3c65fa=_0x83892d['getSuggestion'](_0x59534e);_0x3c65fa['next']&&_0x3c65fa['next']['isInContent']&&(_0x83892d['discardSuggestion'](_0x3c65fa['next']),_0x245bae=!0x0);}}}return _0x245bae;}),this['_registerLegacyDescription'](_0x7441dd);}['_registerLegacyDescription'](_0x3ac04a){const _0x2ca845=this['editor'],_0x3a66b4=_0x2ca845['locale'];_0x2ca845['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ce7ff=>{if('formatBlock'!=_0x3ce7ff['type']&&'formatInline'!=_0x3ce7ff['type'])return;const {data:_0x291660}=_0x3ce7ff;if(!_0x291660||'imageStyle'!=_0x291660['commandName'])return;const _0x5c4e39=_0x291660['commandParams'][0x0]['value'];return _0xedce26('side'===_0x5c4e39?o(_0x3a66b4,'FORMAT_SIDE_IMAGE'):_0x3ac04a[_0x5c4e39]||_0x5c4e39);function _0xedce26(_0x11934f){return{'type':'format','content':o(_0x3a66b4,'*Format:*\x20%0',_0x11934f)};}});}}class ft extends _0x38a85b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xe9ff3b){super(_0xe9ff3b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x53d0ce=this['editor'],_0x5f0217=_0x53d0ce['commands']['get']('importWord'),_0x11bec0=_0x53d0ce['commands']['get']('trackChanges');_0x5f0217&&(_0x5f0217['on']('execute',(_0x17973c,[,_0x4ee728])=>{this['_trackChangesValueDuringImport']=_0x11bec0['value'],_0x4ee728['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5f0217,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5f0217,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11bec0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x53d0ce['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x579162,_0x55a216){const {suggestions:_0x46d65e}=_0x55a216,_0x5ab103=this['editor']['commands']['get']('trackChanges'),_0x597663=_0x5ab103['value'];this['_trackChangesValueDuringImport']!==_0x597663&&(_0x5ab103['execute'](),this['_trackChangesExecuted']=!0x0),_0x46d65e&&_0x46d65e['forEach'](({id:_0x3b752c,type:_0x941dfa,author:_0x4501a3,created_at:_0x27b14c})=>{const _0x26c9f9={'id':_0x3b752c,'type':_0x941dfa,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4501a3,'createdAt':_0x27b14c?new Date(_0x27b14c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x26c9f9);});}}class ht extends _0x38a85b{['afterInit'](){const _0x4f9b0f=this['editor'],_0x1e20ea=_0x4f9b0f['plugins']['get']('TrackChangesEditing');if(_0x4f9b0f['plugins']['has']('IndentEditing')&&(_0x1e20ea['enableCommand']('indent'),_0x1e20ea['enableCommand']('outdent')),_0x4f9b0f['plugins']['has']('IndentBlock')){for(const _0x16e639 of['indentBlock','outdentBlock'])_0x1e20ea['enableDefaultAttributesIntegration'](_0x16e639);}const _0x58bcea=_0x4f9b0f['locale'];_0x1e20ea['registerBlockAttribute']('blockIndent'),_0x1e20ea['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x58bcea,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f2330=this['editor'],_0xfe2d37=_0x2f2330['locale'],_0x7d6555=_0x2f2330['plugins']['get']('TrackChangesEditing');_0x7d6555['descriptionFactory']['registerDescriptionCallback'](_0x914970=>{if('formatBlock'!=_0x914970['type'])return;const {data:_0x307d55}=_0x914970;if(!_0x307d55)return;if('indentBlock'!=_0x307d55['commandName']&&'outdentBlock'!=_0x307d55['commandName'])return;const _0x4f46c6=_0x914970['getItems']()[0x0],_0x3f4e81=_0x7d6555['descriptionFactory']['getItemLabel'](_0x4f46c6);return'indentBlock'==_0x307d55['commandName']?{'type':'format','content':o(_0xfe2d37,'*Indent:*\x20%0',_0x3f4e81)}:'outdentBlock'==_0x307d55['commandName']?{'type':'format','content':o(_0xfe2d37,'*Outdent:*\x20%0',_0x3f4e81)}:void 0x0;});}}class gt extends _0x38a85b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x38a85b{['afterInit'](){const _0x209ccd=this['editor'];if(!_0x209ccd['plugins']['has']('LinkEditing'))return;const _0x3affbc=_0x209ccd['plugins']['get']('TrackChangesEditing'),_0x253b45=_0x209ccd['commands']['get']('link');_0x3affbc['enableDefaultAttributesIntegration']('link'),_0x3affbc['enableDefaultAttributesIntegration']('unlink'),_0x3affbc['registerInlineAttribute']('linkHref');for(const _0x3e3bc0 of _0x253b45['manualDecorators'])_0x3affbc['registerInlineAttribute'](_0x3e3bc0['id']),_0x3affbc['descriptionFactory']['registerAttributeLabel'](_0x3e3bc0['id'],'link\x20('+_0x3e3bc0['label']['toLowerCase']()+')');_0x3affbc['descriptionFactory']['registerDescriptionCallback'](_0x20021f=>{if('attribute'!=_0x20021f['type'])return;const {data:_0x1e60cb}=_0x20021f;if(!_0x1e60cb||'linkHref'!=_0x1e60cb['key'])return;const _0x29e5c2=_0x1e60cb['newValue'],_0x3dbbd3=_0x209ccd['locale'];return{'type':'format','content':null==_0x29e5c2?o(_0x3dbbd3,'*Remove\x20link*'):o(_0x3dbbd3,'*Set\x20link:*\x20%0','\x22'+_0x29e5c2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1533c3=this['editor'],_0x2d7388=_0x1533c3['locale'];_0x1533c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5387ad=>{if('formatInline'!=_0x5387ad['type'])return;const {data:_0x1e154b}=_0x5387ad;if(_0x1e154b){if('link'==_0x1e154b['commandName']){const _0x4917d8=_0x1e154b['commandParams'][0x0];return{'type':'format','content':o(_0x2d7388,'*Set\x20link:*\x20%0','\x22'+_0x4917d8+'\x22')};}return'unlink'==_0x1e154b['commandName']?{'type':'format','content':o(_0x2d7388,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x38a85b{['afterInit'](){const _0x417394=this['editor'],_0x75dd45=_0x417394['locale'];if(!_0x417394['plugins']['has']('LegacyListEditing'))return;const _0xca5e9=_0x417394['plugins']['get']('TrackChangesEditing'),_0x2343c5=_0x417394['plugins']['has']('LegacyTodoListEditing');function _0x1e32a5(_0x6b2a4d){return()=>{const _0xb8a679=_0x417394['model']['document']['selection'],_0x44351c=_0x417394['commands']['get'](_0x6b2a4d);if(_0x44351c['value'])return void _0x417394['execute']('paragraph',{});const _0x49435=_0x6b2a4d['slice'](0x0,-0x4),_0x2b92ed=function(_0x3e9cdc,_0x563ee9,_0x46d6d8){let _0x54a10f=Array['from'](_0x3e9cdc)['filter'](_0x4d3ebb=>function(_0x124eb8,_0x579146){return _0x579146['checkChild'](_0x124eb8['parent'],'listItem')&&!_0x579146['isObject'](_0x124eb8);}(_0x4d3ebb,_0x46d6d8));_0x54a10f=_0x54a10f['filter'](_0x6e6d13=>!_0x6e6d13['is']('element','listItem')||_0x6e6d13['getAttribute']('listType')!=_0x563ee9);const _0x339aaf=new Set();for(const _0x7fa9c9 of _0x54a10f)_0x7fa9c9['is']('element','listItem')?_0x339aaf['add'](Ne(_0x7fa9c9)):_0x339aaf['add'](_0x7fa9c9);return Array['from'](_0x339aaf);}(_0xb8a679['getSelectedBlocks'](),_0x49435,_0x417394['model']['schema']);_0x417394['model']['change'](()=>{for(const _0x545557 of _0x2b92ed)_0xca5e9['markBlockFormat'](_0x545557,{'commandName':_0x6b2a4d,'commandParams':[{'forceValue':!_0x44351c['value']}],'formatGroupId':'blockName'},Se(_0x545557));});};}function _0x4f3738(_0x3349b1){return()=>{const _0x3f53a9=function(_0x2269ee){let _0x2175e5=Array['from'](_0x2269ee);const _0x2d8ec2=_0x2175e5['findIndex'](_0xd94292=>'listItem'!=_0xd94292['name']);return _0x2d8ec2>-0x1&&(_0x2175e5=_0x2175e5['slice'](0x0,_0x2d8ec2)),_0x2175e5;}(_0x417394['model']['document']['selection']['getSelectedBlocks']()),_0x2c166b=_0x417394['model']['createRange'](_0x417394['model']['createPositionAt'](_0x3f53a9[0x0],'before'),_0x417394['model']['createPositionAt'](_0x3f53a9[_0x3f53a9['length']-0x1],'end'));_0x417394['model']['change'](()=>{_0xca5e9['markBlockFormat'](_0x2c166b,{'commandName':_0x3349b1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x59b02a){const _0x29f189=new Set();for(const _0x521bc3 of _0x59b02a){let _0x1d65ef=_0x521bc3['nextSibling'];for(;_0x1d65ef&&_0x1d65ef['getAttribute']('listIndent')>_0x521bc3['getAttribute']('listIndent');)_0x29f189['add'](_0x1d65ef),_0x1d65ef=_0x1d65ef['nextSibling'];}return Array['from'](_0x29f189);}(_0x3f53a9));});};}_0xca5e9['enableCommand']('numberedList',_0x1e32a5('numberedList')),_0xca5e9['enableCommand']('bulletedList',_0x1e32a5('bulletedList')),_0x2343c5&&_0xca5e9['enableCommand']('todoList',_0x1e32a5('todoList')),_0xca5e9['enableCommand']('indentList',_0x4f3738('indentList')),_0xca5e9['enableCommand']('outdentList',_0x4f3738('outdentList')),_0x2343c5&&_0xca5e9['enableCommand']('checkTodoList',()=>{const _0x1e867c=_0x417394['commands']['get']('checkTodoList'),_0x11ab2e=Array['from'](_0x1e867c['_selectedElements']);_0x11ab2e['filter'](_0x219b65=>_0x219b65['getAttribute']('todoListChecked')!=_0x1e867c['value']),_0x417394['model']['change'](()=>{for(const _0x9f0222 of _0x11ab2e)_0xca5e9['markBlockFormat'](_0x9f0222,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e867c['value']}]});});}),_0xca5e9['descriptionFactory']['registerElementLabel']('listItem',_0x202f41=>o(_0x75dd45,'ELEMENT_LIST_ITEM',_0x202f41)),_0xca5e9['descriptionFactory']['registerDescriptionCallback'](_0x53d69e=>{if('formatBlock'!=_0x53d69e['type']&&'formatInline'!=_0x53d69e['type'])return;const {data:_0x306ca0}=_0x53d69e;if(_0x306ca0){if('numberedList'==_0x306ca0['commandName']||'bulletedList'==_0x306ca0['commandName']||'todoList'==_0x306ca0['commandName'])switch(_0x306ca0['commandName']['replace']('List','')){case'bulleted':return _0x5ac245(o(_0x75dd45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ac245(o(_0x75dd45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ac245(o(_0x75dd45,'ELEMENT_TODO_LIST'));}if('indentList'==_0x306ca0['commandName'])return{'type':'format','content':o(_0x75dd45,'*Indent:*\x20%0',o(_0x75dd45,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x306ca0['commandName'])return{'type':'format','content':o(_0x75dd45,'*Outdent:*\x20%0',o(_0x75dd45,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x306ca0['commandName'])return _0x306ca0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x75dd45,'*Check\x20item*')}:{'type':'format','content':o(_0x75dd45,'*Uncheck\x20item*')};}function _0x5ac245(_0x3847ab){return{'type':'format','content':o(_0x75dd45,'*Change\x20to:*\x20%0',_0x3847ab)};}});}}function Ne(_0x1a0df7){const _0x585480=_0x1a0df7['getAttribute']('listIndent');if(0x0==_0x585480)return _0x1a0df7;let _0x4e9713=_0x1a0df7;for(;_0x1a0df7['previousSibling']&&_0x1a0df7['previousSibling']['is']('element','listItem');){const _0x491571=_0x1a0df7['previousSibling']['getAttribute']('listIndent');if(_0x491571==_0x585480)_0x4e9713=_0x1a0df7['previousSibling'];else{if(_0x491571<_0x585480)break;}_0x1a0df7=_0x1a0df7['previousSibling'];}return _0x4e9713;}function Se(_0x843058){const _0x4b9b75=[];if(_0x843058['is']('element','listItem')&&_0x843058['getAttribute']('listIndent')>0x0){let _0x3dbc11=_0x843058['nextSibling'];for(;_0x3dbc11&&'listItem'==_0x3dbc11['name']&&_0x3dbc11['getAttribute']('listIndent')==_0x843058['getAttribute']('listIndent');)_0x4b9b75['push'](_0x3dbc11),_0x3dbc11=_0x3dbc11['nextSibling'];}return _0x4b9b75;}class mt extends _0x38a85b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4355f6=this['editor']['config']['get']('list.properties'),_0x41c733=this['editor']['plugins']['get']('TrackChangesEditing');_0x4355f6['styles']&&_0x41c733['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4355f6['reversed']&&_0x41c733['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4355f6['startIndex']&&_0x41c733['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x41c733['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4866d5,_0x2241e9={}){const _0x40cbb0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d2b75=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x40cbb0['markMultiRangeBlockFormat'](_0x3d2b75,{'commandName':'listStyle','commandParams':[{'type':_0x2241e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5f2859,_0x45aaff={}){const _0x214763=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30fb25=this['_getSuggestionBlocks'](_0x194dc6=>_0x194dc6['is']('element','listItem')&&'numbered'===_0x194dc6['getAttribute']('listType'));if(_0x30fb25['length']<0x1)return;const _0x37ffe2=_0x30fb25['map'](_0x81874f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x81874f,'before'),this['editor']['model']['createPositionAt'](_0x81874f,0x0)));this['editor']['model']['change'](()=>{_0x214763['markMultiRangeBlockFormat'](_0x37ffe2,{'commandName':'listReversed','commandParams':[{'reversed':_0x45aaff['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1cc2fc,_0xf3ea08={}){const _0x5f506c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x429e3a=this['_getSuggestionBlocks'](_0x24b2aa=>_0x24b2aa['is']('element','listItem')&&'numbered'===_0x24b2aa['getAttribute']('listType'));if(_0x429e3a['length']<0x1)return;const _0x24dd34=_0x429e3a['map'](_0x1a2c0f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a2c0f,'before'),this['editor']['model']['createPositionAt'](_0x1a2c0f,0x0)));this['editor']['model']['change'](()=>{_0x5f506c['markMultiRangeBlockFormat'](_0x24dd34,{'commandName':'listStart','commandParams':[{'startIndex':_0xf3ea08['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x347e75){if('formatBlock'!=_0x347e75['type']&&'formatInline'!=_0x347e75['type'])return;const _0x4859a6=this['editor']['locale'],{data:_0x2adc4e}=_0x347e75;if(!_0x2adc4e)return;let _0xaf318d,_0x3e3548;switch(_0x2adc4e['commandName']){case'listStyle':_0xaf318d='*Change\x20to:*\x20%0',_0x3e3548={'type':'format','content':o(_0x4859a6,_0xaf318d,o(_0x4859a6,this['_getTranslationKeyForListStyle'](_0x2adc4e['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaf318d=_0x2adc4e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e3548={'type':'format','content':o(_0x4859a6,_0xaf318d)};break;case'listStart':_0xaf318d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e3548={'type':'format','content':o(_0x4859a6,_0xaf318d,_0x2adc4e['commandParams'][0x0]['startIndex'])};}return _0x3e3548;}['_getSuggestionBlocksForListStyle'](){const _0x193f4c=this['editor']['plugins']['get']('LegacyListUtils');let _0xb4d7e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xb4d7e4[0x0]?.['is']('element','listItem')&&_0xb4d7e4['unshift'](..._0x193f4c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xb4d7e4[_0xb4d7e4['length']-0x1]?.['is']('element','listItem')&&_0xb4d7e4['push'](..._0x193f4c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xb4d7e4=[...new Set(_0xb4d7e4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xb4d7e4=_0xb4d7e4['filter'](_0x15ab1c=>_0x15ab1c['is']('element','listItem'))),_0xb4d7e4;}['_getSuggestionBlocks'](_0x30a570){const _0x260246=this['editor']['plugins']['get']('LegacyListUtils');let _0x186092=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x30a570)['map'](_0x65a50b=>{const _0x543e27=this['editor']['model']['createPositionAt'](_0x65a50b,0x0);return[..._0x260246['getSiblingNodes'](_0x543e27,'backward'),..._0x260246['getSiblingNodes'](_0x543e27,'forward')];})['flat']();return _0x186092=[...new Set(_0x186092)],_0x186092;}['_getTranslationKeyForListStyle'](_0x5025c9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5025c9)||'default')['toUpperCase']()+'_LIST_'+_0x5025c9['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x38a85b{['afterInit'](){const _0x1b0e38=this['editor'];if(!_0x1b0e38['plugins']['has']('MediaEmbedEditing'))return;const _0x8520b1=_0x1b0e38['plugins']['get']('TrackChangesEditing'),_0x376101=_0x1b0e38['locale'];_0x8520b1['enableCommand']('mediaEmbed'),_0x8520b1['descriptionFactory']['registerElementLabel']('media',_0x11af86=>o(_0x376101,'ELEMENT_MEDIA',_0x11af86)),_0x1b0e38['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x47617c,{writer:_0x183116,options:_0x48e68a})=>{if(_0x48e68a['showSuggestionHighlights'])return _0x183116['createEmptyElement']('div');},'converterPriority':'high'}),_0x1b0e38['data']['downcastDispatcher']['on']('attribute:url:media',(_0x209139,_0x4e9c89,_0x6e56c4)=>{_0x6e56c4['options']['showSuggestionHighlights']&&_0x209139['stop']();},{'priority':'high'});}}class kt extends _0x38a85b{['afterInit'](){const _0x21c158=this['editor'];_0x21c158['plugins']['has']('MentionEditing')&&_0x21c158['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x38a85b{['afterInit'](){const _0x11cfb3=this['editor'];if(!_0x11cfb3['plugins']['has']('MergeFieldsEditing'))return;const _0x5d0369=_0x11cfb3['plugins']['get']('TrackChangesEditing'),_0x4eb076=_0x11cfb3['locale'];_0x5d0369['enableCommand']('insertMergeField'),_0x5d0369['enableCommand']('insertMergeFieldBlock'),_0x5d0369['enableCommand']('insertMergeFieldImage'),_0x5d0369['descriptionFactory']['registerElementLabel']('mergeField',_0x3f8563=>o(_0x4eb076,'ELEMENT_MERGE_FIELD',_0x3f8563)),_0x5d0369['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5d8b24=>o(_0x4eb076,'ELEMENT_MERGE_FIELD',_0x5d8b24)),_0x5d0369['descriptionFactory']['registerDescriptionCallback'](_0xd8a88e=>{if('insertion'!=_0xd8a88e['type']&&'deletion'!=_0xd8a88e['type'])return;const _0x19f902=_0xd8a88e['getContainedElement']();if(null==_0x19f902)return;const _0x41feba=_0x11cfb3['plugins']['get']('MergeFieldsEditing');let _0x246f95;switch(_0x41feba['getMergeFieldType'](_0x19f902)){case null:return;case'image':{const _0x372e35=_0x41feba['unwrapAffixes'](_0x19f902['getAttribute']('src'));_0x246f95=_0x41feba['getLabel'](_0x372e35)||_0x372e35;break;}default:{const _0x2661dd=_0x19f902['getAttribute']('id');_0x246f95=_0x41feba['getLabel'](_0x2661dd)||_0x2661dd;break;}}return'insertion'==_0xd8a88e['type']?{'type':'insertion','content':o(_0x4eb076,'*Insert:*\x20%0','\x22'+_0x246f95+'\x22\x20'+o(_0x4eb076,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4eb076,'*Remove:*\x20%0','\x22'+_0x246f95+'\x22\x20'+o(_0x4eb076,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x38a85b{['afterInit'](){const _0x4de9fd=this['editor'],_0x4f9714=_0x4de9fd['plugins']['get']('TrackChangesEditing');_0x4de9fd['plugins']['has']('MultiLevelList')&&(_0x4f9714['enableDefaultAttributesIntegration']('multiLevelList'),_0x4f9714['registerBlockAttribute']('listMarkerStyle'),_0x4f9714['descriptionFactory']['registerDescriptionCallback'](_0x5c98e6=>this['handleDescriptions'](_0x5c98e6)));}['handleDescriptions'](_0x21d57e){const _0xa117d7=this['editor']['locale'],{data:_0x11c09c}=_0x21d57e,_0x5ebf14={'type':'format','content':''};if(_0x11c09c&&'listMarkerStyle'==_0x11c09c['key']){if(!_0x11c09c['oldValue'])return{'type':'format','content':o(_0xa117d7,'*Set\x20format:*\x20%0',o(_0xa117d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c09c['newValue']+')'};if(!_0x11c09c['newValue']){let _0x3e8dea=_0x21d57e['head'];for(;_0x3e8dea;){if(_0x3e8dea['data']&&'listType'==_0x3e8dea['data']['key']&&_0x3e8dea['data']['newValue'])return _0x5ebf14;_0x3e8dea=_0x3e8dea['next'];}return{'type':'format','content':o(_0xa117d7,'*Remove\x20format:*\x20%0',o(_0xa117d7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c09c['oldValue']+')'};}}}}class yt extends _0x38a85b{['afterInit'](){const _0x3641e8=this['editor'];if(!_0x3641e8['plugins']['has']('PageBreakEditing'))return;_0x3641e8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1496e4=_0x3641e8['plugins']['get']('TrackChangesEditing'),_0x364c91=_0x3641e8['locale'];_0x1496e4['descriptionFactory']['registerElementLabel']('pageBreak',_0x1edff4=>o(_0x364c91,'ELEMENT_PAGE_BREAK',_0x1edff4));}}class St extends _0x38a85b{['afterInit'](){const _0x55f1a7=this['editor'];if(!_0x55f1a7['plugins']['has']('Paragraph'))return;const _0x464b6a=_0x55f1a7['locale'],_0x463655=_0x55f1a7['plugins']['get']('TrackChangesEditing');_0x463655['descriptionFactory']['registerElementLabel']('paragraph',_0x497be8=>o(_0x464b6a,'ELEMENT_PARAGRAPH',_0x497be8)),_0x463655['enableDefaultAttributesIntegration']('paragraph'),_0x463655['enableCommand']('insertParagraph'),_0x55f1a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x55f1a7),{'priority':'highest'}),_0x55f1a7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x7bfafd,_0x24fdec,_0xfee42c)=>{_0xfee42c['options']['showSuggestionHighlights']&&nr(_0x55f1a7,{'showActiveMarker':!0x1})(_0x7bfafd,_0x24fdec,_0xfee42c);},{'priority':'highest'});const _0x3d9093=_0x463655['descriptionFactory'];_0x3d9093['registerDescriptionCallback'](_0x30efc9=>{if('insertion'!==_0x30efc9['type'])return;const {start:_0x515e65,end:_0x495204}=_0x30efc9['getFirstRange']();if(!_0x515e65['isTouching'](_0x495204)||!_0x515e65['nodeAfter'])return;const _0x52cb69=_0x55f1a7['model']['schema'],_0xea4c71=_0x515e65['nodeAfter'];return _0x52cb69['isBlock'](_0xea4c71)&&!_0x52cb69['isLimit'](_0xea4c71)&&_0x52cb69['checkChild'](_0xea4c71,'$text')?{'type':'insertion','content':o(_0x464b6a,'*Insert:*\x20%0',_0x3d9093['getItemLabel'](_0xea4c71,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e530=this['editor'],_0x17e258=_0x36e530['locale'];_0x36e530['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x179fc0=>{if('formatBlock'!=_0x179fc0['type'])return;const {data:_0xf148c9}=_0x179fc0;return _0xf148c9&&'paragraph'==_0xf148c9['commandName']?{'type':'format','content':o(_0x17e258,'*Change\x20to:*\x20%0',o(_0x17e258,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x102f08,{showActiveMarker:_0x465c74=!0x0}={}){return(_0x1c27ad,_0x2c9744,_0x1dff30)=>{const _0x2ca1d6=_0x102f08['plugins']['get']('TrackChangesEditing'),_0xd4229=_0x2c9744['markerRange']['start'],_0xc231d2=_0x2c9744['markerRange']['end'],_0x2958ef=_0x102f08['model']['schema'];if(!_0xd4229['isTouching'](_0xc231d2)||!_0xd4229['nodeAfter'])return;const _0x59a13a=_0xd4229['nodeAfter'];if(_0x2958ef['isBlock'](_0x59a13a)&&!_0x2958ef['isLimit'](_0x59a13a)&&_0x2958ef['checkChild'](_0x59a13a,'$text')){if(!_0x1dff30['consumable']['consume'](_0x2c9744['markerRange'],_0x1c27ad['name']))return;const {id:_0x1fc27b,authorId:_0x57874b}=_0x2ca1d6['_splitMarkerName'](_0x2c9744['markerName']),_0x22bb34=_0x1dff30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1fc27b,'data-author-id':_0x57874b}),_0x156f3e=_0x1dff30['mapper']['toViewPosition'](_0xc231d2);_0x465c74&&_0x2ca1d6['activeMarkers']['includes'](_0x2c9744['markerName'])&&_0x1dff30['writer']['addClass']('ck-suggestion-marker--active',_0x22bb34),_0x1dff30['writer']['insert'](_0x156f3e,_0x22bb34),_0x1dff30['mapper']['bindElementToMarker'](_0x22bb34,_0x2c9744['markerName']);}};}class jt extends _0x38a85b{['afterInit'](){const _0x52071d=this['editor'];_0x52071d['commands']['get']('replaceSource')&&_0x52071d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x38a85b{['afterInit'](){const _0x4e3b92=this['editor'];if(!_0x4e3b92['plugins']['has']('RemoveFormatEditing'))return;_0x4e3b92['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x342425=this['editor'];_0x342425['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd07ca1=>{if('formatBlock'!=_0xd07ca1['type']&&'formatInline'!=_0xd07ca1['type'])return;const {data:_0x28f6aa}=_0xd07ca1;return _0x28f6aa&&'removeFormat'==_0x28f6aa['commandName']?{'type':'format','content':o(_0x342425['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x38a85b{['afterInit'](){const _0x171993=this['editor'];if(!_0x171993['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2d5f94=_0x171993['plugins']['get']('TrackChangesEditing');_0x2d5f94['enableCommand']('goToPreviousRestrictedEditingException'),_0x2d5f94['enableCommand']('goToNextRestrictedEditingException');const _0x38d469=_0x171993['plugins']['get']('RestrictedEditingModeEditing');_0x38d469['enableCommand']('trackChanges'),_0x38d469['enableCommand']('acceptSuggestion'),_0x38d469['enableCommand']('discardSuggestion'),_0x38d469['enableCommand']('acceptAllSuggestions'),_0x38d469['enableCommand']('discardAllSuggestions'),_0x38d469['enableCommand']('acceptSelectedSuggestions'),_0x38d469['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x38a85b{['afterInit'](){const _0x482952=this['editor'];if(!_0x482952['plugins']['has']('ShiftEnter'))return;const _0x478d66=_0x482952['plugins']['get']('TrackChangesEditing');_0x478d66['enableCommand']('shiftEnter'),_0x482952['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x482952),{'priority':'high'}),_0x482952['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x482952),{'priority':'high'}),_0x482952['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8be1b2,_0x3b3638,_0x847889)=>{_0x847889['options']['showSuggestionHighlights']&&Ee(_0x482952,{'showActiveMarker':!0x1})(_0x8be1b2,_0x3b3638,_0x847889);}),_0x478d66['descriptionFactory']['registerElementLabel']('softBreak',_0x41c3b4=>o(_0x482952['locale'],'ELEMENT_LINE_BREAK',_0x41c3b4));}}function Ee(_0x2ece56,{showActiveMarker:_0x5c26b1=!0x0}={}){return(_0x147037,_0x6ac28c,_0x162ae2)=>{const _0x1b33a5=_0x2ece56['plugins']['get']('TrackChangesEditing');if(!_0x162ae2['consumable']['test'](_0x6ac28c['markerRange'],_0x147037['name']))return;const _0x581dd7=_0x2ece56['model'];for(const _0x292af0 of _0x6ac28c['markerRange']['getItems']()){if(!_0x292af0['is']('element','softBreak'))continue;const _0x109d6b='deletion'==_0x6ac28c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x203415,authorId:_0x4a7857}=_0x1b33a5['_splitMarkerName'](_0x6ac28c['markerName']),_0x2d89a3=_0x162ae2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x109d6b,'data-suggestion':_0x203415,'data-author-id':_0x4a7857}),_0xf586ac=_0x162ae2['mapper']['toViewPosition'](_0x581dd7['createPositionBefore'](_0x292af0));_0x5c26b1&&_0x1b33a5['activeMarkers']['includes'](_0x6ac28c['markerName'])&&_0x162ae2['writer']['addClass']('ck-suggestion-marker--active',_0x2d89a3),_0x162ae2['writer']['insert'](_0xf586ac,_0x2d89a3),_0x162ae2['mapper']['bindElementToMarker'](_0x2d89a3,_0x6ac28c['markerName']);}};}class vt extends _0x38a85b{['afterInit'](){const _0x5d60cb=this['editor'],_0x138e3b=_0x5d60cb['model'],_0x3358b8=_0x5d60cb['locale'];if(!_0x5d60cb['plugins']['has']('StandardEditingModeEditing'))return;const _0xd91779=_0x5d60cb['plugins']['get']('TrackChangesEditing'),_0x40a2b7='restrictedEditingException',_0x225db8=_0x5d60cb['commands']['get'](_0x40a2b7);_0xd91779['enableCommand'](_0x40a2b7,(_0x265d09,_0x4eb0a9={})=>{const _0x560751=_0x138e3b['document']['selection'];if(_0x560751['isCollapsed'])return void _0x265d09(_0x4eb0a9);const _0x5c0ffe=void 0x0!==_0x4eb0a9['forceValue']?_0x4eb0a9['forceValue']:!_0x225db8['value'];_0x138e3b['change'](()=>{const _0x23c21a=Array['from'](_0x560751['getRanges']());for(const _0x53f529 of _0x23c21a){const _0x47a11f=_0x5c0ffe?[_0x53f529]:io(_0x40a2b7,_0x53f529,_0x138e3b);for(const _0x316f71 of _0x47a11f)_0xd91779['markInlineFormat'](_0x316f71,{'commandName':_0x40a2b7,'commandParams':[{'forceValue':_0x5c0ffe}]});}});}),_0xd91779['descriptionFactory']['registerDescriptionCallback'](_0x85eb92=>{if('formatBlock'!=_0x85eb92['type']&&'formatInline'!=_0x85eb92['type'])return;const {data:_0x2a7e75}=_0x85eb92;return _0x2a7e75&&_0x2a7e75['commandName']==_0x40a2b7?_0x2a7e75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3358b8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3358b8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x38a85b{['afterInit'](){const _0x158de3=this['editor'];if(!_0x158de3['plugins']['has']('Style')||!_0x158de3['plugins']['has']('DataSchema'))return;const _0x471b6f=_0x158de3['plugins']['get']('TrackChangesEditing'),_0x2e7fc5=_0x158de3['locale'],_0x39ca75=_0x158de3['config']['get']('style')||{},_0x16e3be=_0x158de3['plugins']['get']('GeneralHtmlSupport'),_0x2ebb38=_0x158de3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x158de3['plugins']['get']('DataSchema'),_0x39ca75['definitions']);_0x471b6f['enableDefaultAttributesIntegration']('style');const _0x3a99b9=new Set();for(const _0x2f395a of _0x2ebb38['block']){const _0x40c1ee=_0x16e3be['getGhsAttributeNameForElement'](_0x2f395a['element']);_0x3a99b9['add'](_0x40c1ee);}const _0x110648=new Set();for(const _0x15a348 of _0x2ebb38['inline']){const _0x4ec513=_0x16e3be['getGhsAttributeNameForElement'](_0x15a348['element']);_0x110648['add'](_0x4ec513);for(const _0x57270c of _0x15a348['ghsAttributes'])_0x110648['add'](_0x57270c);}for(const _0x28a52a of _0x3a99b9)_0x471b6f['registerBlockAttribute'](_0x28a52a),_0x471b6f['descriptionFactory']['registerAttributeLabel'](_0x28a52a,o(_0x2e7fc5,'FORMAT_STYLE'));for(const _0x476c94 of _0x110648)_0x471b6f['registerInlineAttribute'](_0x476c94),_0x471b6f['descriptionFactory']['registerAttributeLabel'](_0x476c94,o(_0x2e7fc5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20533a=this['editor'],_0x174e66=_0x20533a['locale'];_0x20533a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46b709=>{if('formatBlock'!=_0x46b709['type']&&'formatInline'!=_0x46b709['type'])return;const {data:_0x339dc9}=_0x46b709;return _0x339dc9&&'style'===_0x339dc9['commandName']?_0x339dc9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x174e66,'*Set\x20format:*\x20%0',_0x339dc9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x174e66,'*Remove\x20format:*\x20%0',_0x339dc9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x38a85b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x296934){super(_0x296934),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x528b98=this['editor'],_0x2b70e0=_0x528b98['model']['document']['selection'];if(!_0x528b98['plugins']['has']('TableEditing'))return;const _0x158154=_0x528b98['locale'],_0x5c2317=_0x528b98['plugins']['get']('TrackChangesEditing'),_0x35a4dc=_0x528b98['plugins']['get']('TableUtils');_0x5c2317['descriptionFactory']['registerElementLabel']('table',_0x5a1cb5=>o(_0x158154,'ELEMENT_TABLE',_0x5a1cb5)),this['_setupColumnsRowsFixing'](),_0x5c2317['enableCommand']('insertTable'),_0x5c2317['enableCommand']('selectTableRow'),_0x5c2317['enableCommand']('selectTableColumn');for(const _0x11c487 of['insertTableRowAbove','insertTableRowBelow']){const _0x46c78b=_0x528b98['commands']['get'](_0x11c487);_0x5c2317['enableCommand'](_0x11c487,_0x273a8f=>{_0x528b98['model']['change'](_0x36b87b=>{_0x273a8f();const _0x4c4cbc='above'===_0x46c78b['order'],_0x3d849e=_0x35a4dc['getSelectionAffectedTableCells'](_0x2b70e0),_0xc4bc2f=_0x35a4dc['getRowIndexes'](_0x3d849e),_0x141ac7=_0x4c4cbc?_0xc4bc2f['first']-0x1:_0xc4bc2f['last']+0x1,_0x515176=_0x3d849e[0x0]['findAncestor']('table'),_0x3277a5=_0x35a4dc['createTableWalker'](_0x515176,{'startRow':_0x141ac7,'endRow':_0x141ac7}),_0x316236=Array['from'](_0x3277a5)['map'](_0x5d70a9=>_0x36b87b['createRangeOn'](_0x5d70a9['cell']));_0x5c2317['markMultiRangeInsertion'](_0x316236,'tableRow');});});}for(const _0x5c247c of['insertTableColumnLeft','insertTableColumnRight']){const _0x2f759b=_0x528b98['commands']['get'](_0x5c247c);_0x5c2317['enableCommand'](_0x5c247c,_0x41269c=>{_0x528b98['model']['change'](_0x4fb4e1=>{_0x41269c();const _0xae9de5='left'===_0x2f759b['order'],_0x3a4d9a=_0x35a4dc['getSelectionAffectedTableCells'](_0x2b70e0),_0x54086a=_0x35a4dc['getColumnIndexes'](_0x3a4d9a),_0x48ac32=_0xae9de5?_0x54086a['first']-0x1:_0x54086a['last']+0x1,_0x10d985=_0x3a4d9a[0x0]['findAncestor']('table'),_0x206f2d=_0x35a4dc['createTableWalker'](_0x10d985,{'startRow':0x0,'column':_0x48ac32,'includeAllSlots':!0x1}),_0x544cf1=Array['from'](_0x206f2d)['map'](_0x1d025a=>_0x4fb4e1['createRangeOn'](_0x1d025a['cell']));_0x5c2317['markMultiRangeInsertion'](_0x544cf1,'tableColumn');});});}for(const _0x548e32 of['removeTableRow','removeTableColumn']){const _0x1da109=_0x548e32['substr'](0xb),_0x11855d=_0x1da109['toLowerCase'](),_0x151fe7=_0x11855d['substr'](0x0,0x3)+'span',_0x2bd2ce='table'+_0x1da109,_0x9bf998='min'+_0x1da109,_0x4a0f7c='max'+_0x1da109;_0x5c2317['enableCommand'](_0x548e32,()=>{_0x528b98['model']['change'](_0x7c6f8c=>{const _0xffb5ce=_0x35a4dc['getSelectionAffectedTableCells'](_0x2b70e0),_0x588b98=_0xffb5ce[0x0]['findAncestor']('table');let _0x20438a;if('removeTableRow'==_0x548e32){const _0x288e40=_0x35a4dc['getRowIndexes'](_0xffb5ce);_0x20438a={'startRow':_0x288e40['first'],'endRow':_0x288e40['last'],'includeAllSlots':!0x0};}else{const _0x4ce841=_0x35a4dc['getColumnIndexes'](_0xffb5ce);_0x20438a={'startColumn':_0x4ce841['first'],'endColumn':_0x4ce841['last'],'includeAllSlots':!0x0};}const _0x578dcf=_0x35a4dc['createTableWalker'](_0x588b98,_0x20438a),_0x2fa4fd=Array['from'](_0x578dcf)['map'](({cell:_0xb9862a})=>_0xb9862a),_0x2d924f=We(_0x2fa4fd['filter'](_0x253aa5=>_0x253aa5['hasAttribute'](_0x151fe7))),_0x1f77ef=We(_0x2fa4fd['filter'](_0x592206=>!_0x592206['hasAttribute'](_0x151fe7)))['map'](_0x47251e=>_0x7c6f8c['createRangeOn'](_0x47251e)),_0x19e730=_0x5c2317['markMultiRangeDeletion'](_0x1f77ef,_0x2bd2ce);if(_0x19e730&&('tableRow'==_0x19e730['subType']||'tableColumn'==_0x19e730['subType'])){const _0x26db1c=this['_getSuggestionCoords'](_0x19e730);for(const _0x2bc2e9 of _0x2d924f){const _0x1b5b00=_0x7c6f8c['createRangeOn'](_0x2bc2e9),_0x1c643a=_0x35a4dc['getCellLocation'](_0x2bc2e9),_0xf2ff4c=_0x2bc2e9['getAttribute'](_0x151fe7)-0x1,_0x43a186=_0x26db1c[_0x9bf998],_0x14275e=_0x26db1c[_0x4a0f7c];_0x43a186<=_0x1c643a[_0x11855d]&&_0x1c643a[_0x11855d]+_0xf2ff4c<=_0x14275e&&_0x19e730['addRange'](_0x1b5b00);}}});});}function _0x387520(_0x193274){const _0x5a50d7=Array['from'](_0x2b70e0['getRanges']())['map'](_0x46a0d=>_0x3cf104['fromRange'](_0x46a0d));_0x528b98['model']['change'](_0x3271fb=>{const _0x14b6be=_0x3271fb['batch'];_0x193274=_0x193274['filter'](_0x6df705=>'$graveyard'!=_0x6df705['root']['rootName']),_0x3271fb['setSelection'](_0x193274),_0x528b98['commands']['get']('removeTableRow')['refresh'](),_0x528b98['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x528b98['model']['enqueueChange'](()=>{_0x528b98['model']['enqueueChange'](_0x14b6be,_0x9ddedd=>{const _0x147cb8=_0x5a50d7['filter'](_0x986bb=>'$graveyard'!=_0x986bb['root']['rootName']);_0x147cb8['length']>0x0&&_0x9ddedd['setSelection'](_0x147cb8);for(const _0x3660a6 of _0x5a50d7)_0x3660a6['detach']();});});});}function _0x375df0(_0x152533){_0x528b98['model']['change'](_0x2997b8=>{const _0x5dded4=Array['from'](_0x2b70e0['getRanges']())['map'](_0x5a8c8c=>_0x3cf104['fromRange'](_0x5a8c8c)),_0x50b6c4=[];for(const _0x5e228f of _0x152533)for(const _0x156004 of _0x5e228f['getItems']({'shallow':!0x0}))_0x50b6c4['push'](_0x156004);for(const _0x213c12 of _0x50b6c4)'$graveyard'!=_0x213c12['root']['rootName']&&(_0x2997b8['setSelection'](_0x2997b8['createPositionAt'](_0x213c12,0x0)),_0x528b98['commands']['get']('removeTableColumn')['refresh'](),_0x528b98['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3af5fa=_0x5dded4['filter'](_0x2b61a0=>'$graveyard'!=_0x2b61a0['root']['rootName']);_0x3af5fa['length']>0x0&&_0x2997b8['setSelection'](_0x3af5fa);for(const _0x587f39 of _0x5dded4)_0x587f39['detach']();});}function _0x3bccc7(_0x52d49f,_0x30cc7e){return _0x30cc7e['every'](_0x14d0e1=>_0x52d49f['some'](_0x172d8a=>_0x172d8a['end']['isEqual'](_0x14d0e1['start'])||_0x14d0e1['end']['isEqual'](_0x172d8a['start'])));}function _0x1b73fd(_0x56cc69,_0x220d39){return!_0x56cc69['some'](_0x360f3d=>_0x220d39['some'](_0x38b885=>_0x360f3d['isIntersecting'](_0x38b885)))&&_0x56cc69['some'](_0x131d52=>_0x220d39['some'](_0xa27abd=>_0x131d52['end']['isTouching'](_0xa27abd['start'])));}_0x528b98['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x458b97,_0x2d7a60,_0x33eb51)=>{if(!_0x33eb51['options']['showSuggestionHighlights'])return;const _0x57eb74=_0x2d7a60['item'];if(!_0x57eb74||!_0x57eb74['is']('element','tableCell'))return;const _0x2c66d0=_0x33eb51['mapper']['toViewElement'](_0x57eb74);if(_0x2c66d0){const {id:_0x2a90ee,authorId:_0x1e6c27}=_0x5c2317['_splitMarkerName'](_0x2d7a60['markerName']);_0x7131de(_0x2c66d0,_0x33eb51['writer'],(_0x45f189,_0x43240b,_0x567ad2)=>{_0x567ad2['addClass'](_0x402da3(_0x43240b['classes']),_0x45f189),_0x567ad2['setAttribute']('data-suggestion-id',_0x2a90ee,_0x45f189),_0x567ad2['setAttribute']('data-author-id',_0x1e6c27,_0x45f189);},(_0x33dfc7,_0x3ab360,_0x49427a)=>{_0x49427a['removeClass'](_0x402da3(_0x3ab360['classes']),_0x33dfc7),_0x49427a['removeAttribute']('data-suggestion-id',_0x33dfc7),_0x49427a['removeAttribute']('data-author-id',_0x33dfc7);});}},{'priority':'highest'}),_0x5c2317['descriptionFactory']['registerDescriptionCallback'](_0x140fed=>{if('insertion'!=_0x140fed['type']&&'deletion'!=_0x140fed['type'])return;const _0x3e599b=_0x140fed['getContainedElement']();if(null!=_0x3e599b&&_0x3e599b['is']('element','table')){if('insertion'==_0x140fed['type']){const _0x4cd24b=_0x140fed['getItems']()['filter'](_0x6cc3d3=>_0x6cc3d3['is']('$textProxy'))['map'](_0x13cf9c=>_0x13cf9c['data']);if(_0x4cd24b['length'])return{'type':'insertion','content':o(_0x158154,'*Insert:*\x20%0',o(_0x158154,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cd24b['join']('\x20')+'\x22'))};}if('deletion'==_0x140fed['type']){const _0x26b7cd=_0x140fed['getItems']()['filter'](_0x1e75c2=>_0x1e75c2['is']('$textProxy'))['map'](_0x4d527d=>_0x4d527d['data']);if(_0x26b7cd['length'])return{'type':'deletion','content':o(_0x158154,'*Remove:*\x20%0',o(_0x158154,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26b7cd['join']('\x20')+'\x22'))};}}}),_0x5c2317['descriptionFactory']['registerDescriptionCallback'](_0x48047a=>{if('tableRow'==_0x48047a['subType']){const _0x2bb2ca=_0x48047a['getItems']()['filter'](_0x2aecc0=>_0x2aecc0['is']('$textProxy'))['map'](_0x5b2bd9=>_0x5b2bd9['data']),_0xed320e=this['_getSuggestionCoords'](_0x48047a),_0x2ab609=_0xed320e['maxRow']-_0xed320e['minRow']+0x1;if('insertion'==_0x48047a['type'])return _0x2bb2ca['length']?{'type':'insertion','content':o(_0x158154,'*Insert:*\x20%0',o(_0x158154,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ab609,'\x22'+_0x2bb2ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x158154,'*Insert:*\x20%0',o(_0x158154,'ELEMENT_TABLE_ROW',_0x2ab609))};if('deletion'==_0x48047a['type'])return _0x2bb2ca['length']?{'type':'deletion','content':o(_0x158154,'*Remove:*\x20%0',o(_0x158154,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ab609,'\x22'+_0x2bb2ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x158154,'*Remove:*\x20%0',o(_0x158154,'ELEMENT_TABLE_ROW',_0x2ab609))};}if('tableColumn'==_0x48047a['subType']){const _0x3403ee=_0x48047a['getItems']()['filter'](_0x2282c4=>_0x2282c4['is']('$textProxy'))['map'](_0x110d2f=>_0x110d2f['data']),_0x85b144=this['_getSuggestionCoords'](_0x48047a),_0x2612b6=_0x85b144['maxColumn']-_0x85b144['minColumn']+0x1;if('insertion'==_0x48047a['type'])return _0x3403ee['length']?{'type':'insertion','content':o(_0x158154,'*Insert:*\x20%0',o(_0x158154,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2612b6,'\x22'+_0x3403ee['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x158154,'*Insert:*\x20%0',o(_0x158154,'ELEMENT_TABLE_COLUMN',_0x2612b6))};if('deletion'==_0x48047a['type'])return _0x3403ee['length']?{'type':'deletion','content':o(_0x158154,'*Remove:*\x20%0',o(_0x158154,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2612b6,'\x22'+_0x3403ee['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x158154,'*Remove:*\x20%0',o(_0x158154,'ELEMENT_TABLE_COLUMN',_0x2612b6))};}}),_0x5c2317['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x387520),_0x5c2317['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x387520),_0x5c2317['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x375df0),_0x5c2317['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x375df0),_0x5c2317['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3bccc7),_0x5c2317['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3bccc7),_0x5c2317['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1b73fd),_0x5c2317['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1b73fd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4b63fd=this['editor'],_0x2f79e1=_0x4b63fd['model']['document']['selection'];return(_0x53656f,_0x31144b)=>{_0x4b63fd['model']['change'](_0x14b15b=>{const {commandName:_0x3197e7,commandParams:_0x3b88b5}=_0x31144b;let _0x36195e=_0x53656f[0x0]['end']['nodeBefore'];_0x3b88b5&&_0x3b88b5[0x0]&&!0x1===_0x3b88b5[0x0]['forceValue']&&(_0x36195e=_0x53656f[0x0]['start']['nodeAfter']);const _0x354e86=_0x14b15b['createRangeIn'](_0x36195e);if('$graveyard'==_0x354e86['root']['rootName'])return;const _0x4c79ad=Array['from'](_0x2f79e1['getRanges']())['map'](_0x2d02d6=>_0x3cf104['fromRange'](_0x2d02d6));_0x14b15b['setSelection'](_0x354e86),_0x4b63fd['commands']['get'](_0x3197e7)['refresh'](),_0x3b88b5['push']({'forceDefaultExecution':!0x0}),_0x4b63fd['execute'](_0x3197e7,..._0x3b88b5);const _0x2da3a5=_0x4c79ad['filter'](_0x29de54=>'$graveyard'!=_0x29de54['root']['rootName']);_0x2da3a5['length']>0x0&&_0x14b15b['setSelection'](_0x2da3a5);for(const _0x51a1cd of _0x4c79ad)_0x51a1cd['detach']();});};}['_getCoordsForCells'](_0x557e80){const _0x2f072c=this['editor']['plugins']['get']('TableUtils');let _0x5e5def=Number['MAX_SAFE_INTEGER'],_0x5623f5=Number['MIN_SAFE_INTEGER'],_0x51ec5d=Number['MAX_SAFE_INTEGER'],_0x173304=Number['MIN_SAFE_INTEGER'];for(const _0x350400 of _0x557e80){if('$graveyard'==_0x350400['root']['rootName'])continue;const {row:_0x252093,column:_0x2ef685}=_0x2f072c['getCellLocation'](_0x350400),_0x1d389c=_0x350400['hasAttribute']('rowspan')?_0x350400['getAttribute']('rowspan')-0x1:0x0,_0x3c1c23=_0x350400['hasAttribute']('colspan')?_0x350400['getAttribute']('colspan')-0x1:0x0;_0x5e5def=_0x252093<_0x5e5def?_0x252093:_0x5e5def,_0x5623f5=_0x252093+_0x1d389c>_0x5623f5?_0x252093+_0x1d389c:_0x5623f5,_0x51ec5d=_0x2ef685<_0x51ec5d?_0x2ef685:_0x51ec5d,_0x173304=_0x2ef685+_0x3c1c23>_0x173304?_0x2ef685+_0x3c1c23:_0x173304;}return{'minRow':_0x5e5def,'maxRow':_0x5623f5,'minColumn':_0x51ec5d,'maxColumn':_0x173304};}['_setupColumnsRowsFixing'](){const _0x4d28c8=this['editor'],_0x33ceb1=_0x4d28c8['plugins']['get']('TrackChangesEditing'),_0x10d99c=_0x4d28c8['plugins']['get']('TableUtils');_0x4d28c8['model']['document']['on']('change:data',()=>{const _0x395f67=Array['from'](_0x4d28c8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d7248,data:_0x31fb32}of _0x395f67){const {group:_0x36b573,id:_0x53fd03,subType:_0x32ed9b}=_0x33ceb1['_splitMarkerName'](_0x5d7248);if('suggestion'!=_0x36b573)continue;if(null!=_0x31fb32['oldRange'])continue;const _0x8e4a53=_0x33ceb1['getSuggestion'](_0x53fd03);this['_tablePostFixingSubtypes']['includes'](_0x32ed9b)&&this['_tableSuggestions']['add'](_0x8e4a53);}},{'priority':'low'});const _0x145dd4=(_0x5443dc,_0x5dce26)=>{let _0xcd8d80=!0x1;const _0x17f924=_0x5dce26['createRangeOn'](_0x5443dc),_0x24b15f=_0x5443dc['findAncestor']('table'),_0x634593=_0x10d99c['getCellLocation'](_0x5443dc);for(const _0x2af8c9 of this['_tableSuggestions']){const _0x400c2a=_0x2af8c9['subType'],_0x55f501=_0x400c2a['startsWith']('tablePaste'),_0x33459e=_0x400c2a['substr'](_0x55f501?0xa:0x5),_0x11507a=_0x33459e['toLowerCase'](),_0x58378e=_0x11507a['substr'](0x0,0x3)+'span',_0x3bf923='min'+_0x33459e,_0x5a72c8='max'+_0x33459e;if(!_0x2af8c9['isInContent'])continue;if(_0x24b15f!=_0x2af8c9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2af8c9['isIntersectingWithRange'](_0x17f924))continue;const _0x137f48=_0x5443dc['hasAttribute'](_0x58378e)?_0x5443dc['getAttribute'](_0x58378e)-0x1:0x0,_0x5100d8=this['_getSuggestionCoords'](_0x2af8c9),_0x20ff1f=_0x5100d8[_0x3bf923],_0x2e9ee7=_0x5100d8[_0x5a72c8];_0x20ff1f<=_0x634593[_0x11507a]&&_0x634593[_0x11507a]+_0x137f48<=_0x2e9ee7&&(_0x2af8c9['addRange'](_0x17f924),_0xcd8d80=!0x0);}return _0xcd8d80;};_0x4d28c8['model']['document']['registerPostFixer'](_0xe38298=>{let _0x55fa2b=!0x1;for(const _0xb7d612 of _0x4d28c8['model']['document']['differ']['getChanges']())if('insert'==_0xb7d612['type']){if('tableRow'==_0xb7d612['name']){for(const _0x3a96be of _0xb7d612['position']['nodeAfter']['getChildren']())_0x55fa2b=_0x55fa2b||_0x145dd4(_0x3a96be,_0xe38298);}else'tableCell'==_0xb7d612['name']&&(_0x55fa2b=_0x55fa2b||_0x145dd4(_0xb7d612['position']['nodeAfter'],_0xe38298));}return _0x55fa2b;});}['_getSuggestionCoords'](_0x1aafcf){return this['_getCoordsForCells'](_0x1aafcf['getRanges']()['map'](_0x58fa18=>_0x58fa18['start']['nodeAfter']));}}function We(_0x19acfa){return Array['from'](new Set(_0x19acfa)['values']());}class Nt extends _0x38a85b{static get['requires'](){return[$t];}['afterInit'](){const _0x383004=this['editor'],_0x24d528=_0x383004['model']['document']['selection'],_0x1db1e7=_0x383004['locale'];if(!_0x383004['plugins']['has']('TableEditing'))return;const _0x2d67c6=_0x383004['plugins']['get']('TrackChangesEditing'),_0xdb10d9=_0x383004['plugins']['get']('TableUtils'),_0x18288e=_0x383004['plugins']['get']($t);_0x18288e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2d67c6['enableCommand']('mergeTableCells',()=>{const _0x5126b1=_0xdb10d9['getSelectionAffectedTableCells'](_0x383004['model']['document']['selection']);_0x383004['model']['change'](()=>{_0x2d67c6['markMultiRangeBlockFormat'](_0x5126b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x383004['commands']['get']('mergeTableCells')['on']('execute',(_0x174c54,_0x5d9ab4)=>{_0x383004['commands']['get']('trackChanges')['value']&&(_0x5d9ab4['length']>0x0&&_0x5d9ab4[_0x5d9ab4['length']-0x1]&&_0x5d9ab4[_0x5d9ab4['length']-0x1]['forceDefaultExecution']||_0x2d67c6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x174c54['stop']());},{'priority':'highest'});for(const _0x163dc1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x22c1d2=_0x383004['commands']['get'](_0x163dc1);_0x2d67c6['enableCommand'](_0x163dc1,()=>{const _0x4251a7=_0x383004['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe64647=>_0xe64647['is']('element','tableCell')),_0x37c2a4=_0x22c1d2['value'];_0x383004['model']['change'](()=>{_0x2d67c6['markMultiRangeBlockFormat']([_0x4251a7,_0x37c2a4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ad94b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x265f49=_0x383004['commands']['get'](_0x3ad94b);_0x2d67c6['enableCommand'](_0x3ad94b,()=>{const _0xd459c0=_0xdb10d9['getSelectionAffectedTableCells'](_0x383004['model']['document']['selection'])[0x0],_0x25c92f=_0xd459c0['findAncestor']('table'),{column:_0x4c890e,row:_0x35ba11}=_0xdb10d9['getCellLocation'](_0xd459c0);let _0x74ab35=[];if('horizontally'==_0x265f49['direction']){const _0x70f19d=_0xdb10d9['createTableWalker'](_0x25c92f,{'startRow':_0x35ba11,'endRow':_0x35ba11,'includeAllSlots':!0x0});_0x74ab35=Array['from'](_0x70f19d)['map'](_0x38f406=>_0x38f406['cell']);}else{const _0x561fb4=_0xdb10d9['createTableWalker'](_0x25c92f,{'column':_0x4c890e,'includeAllSlots':!0x0});_0x74ab35=Array['from'](_0x561fb4)['map'](_0x418b3f=>_0x418b3f['cell']);}_0x383004['model']['change'](_0x5dc144=>{_0x2d67c6['markBlockFormat'](_0x5dc144['createRangeOn'](_0xd459c0),{'commandName':_0x3ad94b,'commandParams':[]},_0x74ab35,_0x3ad94b);});});}_0x2d67c6['descriptionFactory']['registerDescriptionCallback'](_0x228ca2=>{if('formatBlock'!=_0x228ca2['type']&&'formatInline'!=_0x228ca2['type'])return;const {data:_0x582e70}=_0x228ca2;return _0x582e70&&'mergeTableCells'==_0x582e70['commandName']?{'type':'format','content':o(_0x1db1e7,'*Merge\x20cells*')}:void 0x0;}),_0x2d67c6['descriptionFactory']['registerDescriptionCallback'](_0x4254cc=>{if('formatBlock'!=_0x4254cc['type']&&'formatInline'!=_0x4254cc['type'])return;const {data:_0x563a49}=_0x4254cc;return _0x563a49?'splitTableCellVertically'==_0x563a49['commandName']?{'type':'format','content':o(_0x1db1e7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x563a49['commandName']?{'type':'format','content':o(_0x1db1e7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xaa7c4d=_0x18288e['_acceptFormatSuggestionCallbackFactory']();for(const _0x5606ec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2d67c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5606ec,'accept',_0xaa7c4d);for(const _0x58f90f of['splitTableCellVertically','splitTableCellHorizontally'])_0x2d67c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58f90f,'accept',_0xaa7c4d);_0x2d67c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x139243=>{_0x383004['model']['change'](_0x127ec9=>{const _0x520d35=Array['from'](_0x24d528['getRanges']())['map'](_0x3dafcc=>_0x3cf104['fromRange'](_0x3dafcc));_0x127ec9['setSelection'](_0x139243),_0x383004['commands']['get']('mergeTableCells')['refresh'](),_0x383004['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2d5485=_0x520d35['filter'](_0x58767c=>'$graveyard'!=_0x58767c['root']['rootName']);_0x2d5485['length']>0x0&&_0x127ec9['setSelection'](_0x2d5485);for(const _0x3d97ef of _0x520d35)_0x3d97ef['detach']();});});for(const _0x20e697 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x20e531=_0x383004['commands']['get'](_0x20e697);_0x20e531['on']('set:isEnabled',(_0x4957ff,_0x1dc55c,_0x2efd39)=>{if(_0x2efd39){const _0x58ed37=_0x383004['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4283cf=>_0x4283cf['is']('element','tableCell'));this['_areMergableCells'](_0x20e531['value'],_0x58ed37)||(_0x4957ff['return']=!0x1,_0x4957ff['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x330a2c=this['editor']['commands']['get']('mergeTableCells'),_0x50b8ec=this['editor']['plugins']['get']('TableUtils');if(!_0x330a2c['isEnabled'])return!0x1;const _0x587457=_0x50b8ec['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3731ef of _0x587457)for(const _0x44a52b of _0x587457)if(_0x3731ef!=_0x44a52b&&!this['_areMergableCells'](_0x3731ef,_0x44a52b))return!0x1;return!0x0;}['_areMergableCells'](_0x5876bc,_0x123318){const _0x530ae1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3010a6=this['editor']['model']['createRangeOn'](_0x5876bc),_0x5e77df=this['editor']['model']['createRangeOn'](_0x123318),_0x112245=new Set(),_0x3b5922=new Set();for(const _0x1b98c0 of _0x530ae1['getSuggestions']())if(('insertion'==_0x1b98c0['type']||'deletion'==_0x1b98c0['type']||'mergeTableCells'==_0x1b98c0['subType'])&&_0x1b98c0['isInContent']){for(const _0x460529 of _0x1b98c0['getRanges']())_0x460529['containsRange'](_0x3010a6,!0x0)&&_0x112245['add'](_0x1b98c0['type']+':'+_0x1b98c0['author']['id']),_0x460529['containsRange'](_0x5e77df,!0x0)&&_0x3b5922['add'](_0x1b98c0['type']+':'+_0x1b98c0['author']['id']);}if(_0x112245['size']!=_0x3b5922['size'])return!0x1;for(const _0xcfe364 of _0x112245)if(!_0x3b5922['has'](_0xcfe364))return!0x1;return!0x0;}}class Dt extends _0x38a85b{static get['requires'](){return[$t];}['afterInit'](){const _0x1ccc18=this['editor'];if(!_0x1ccc18['plugins']['has']('TableEditing'))return;const _0x3ed211=_0x1ccc18['locale'],_0x31b66d=_0x1ccc18['plugins']['get']('TrackChangesEditing');_0x31b66d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x31b66d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x31b66d['registerBlockAttribute']('headingRows'),_0x31b66d['registerBlockAttribute']('headingColumns'),_0x31b66d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3ed211,'FORMAT_HEADER_ROW')),_0x31b66d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3ed211,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ce3ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c887f=this['editor']['plugins']['get']('TableUtils'),_0x4783fb=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x9267c9({showActiveMarker:_0x1aea4d=!0x0,setDataAttribute:_0x2dd94d=!0x0}={}){return(_0x20d8f3,_0x515505,_0x8dae9d)=>{const {type:_0x1bf408,id:_0xb8fc96}=_0x4ce3ce['_splitMarkerName'](_0x515505['markerName']);if(!_0x4ce3ce['hasSuggestion'](_0xb8fc96))return;const _0x4362cb=_0x4ce3ce['getSuggestion'](_0xb8fc96),_0xe39fd9=_0x4362cb['data'];if('formatBlock'!=_0x4362cb['type']||!_0xe39fd9||'setTableColumnHeader'!=_0xe39fd9['commandName'])return;if(_0x515505['item'])return void _0x20d8f3['stop']();if(!_0x8dae9d['consumable']['consume'](_0x515505['markerRange'],_0x20d8f3['name']))return;const _0x3f2bad=_0x515505['markerRange']['start']['nodeAfter'],_0x5f4547=_0x515505['markerRange']['end']['nodeBefore'],_0x2c8804=_0x3f2bad['parent']['parent'],{column:_0x52de83}=_0x5c887f['getCellLocation'](_0x3f2bad),{column:_0x524960}=_0x5c887f['getCellLocation'](_0x5f4547);for(let _0x17bf6e=_0x52de83;_0x17bf6e<=_0x524960;_0x17bf6e++){const _0x555849=_0x5c887f['createTableWalker'](_0x2c8804,{'column':_0x17bf6e,'includeAllSlots':!0x1});for(const _0x830960 of _0x555849){const _0x5ecb61=_0x830960['cell'],_0x37e4ad=_0x8dae9d['mapper']['toViewElement'](_0x5ecb61);_0x8dae9d['writer']['addClass']('ck-suggestion-marker-'+_0x1bf408,_0x37e4ad),_0x2dd94d&&_0x8dae9d['writer']['setAttribute']('data-suggestion',_0xb8fc96,_0x37e4ad),_0x8dae9d['mapper']['bindElementToMarker'](_0x37e4ad,_0x515505['markerName']),_0x1aea4d&&(_0x4ce3ce['activeMarkers']['includes'](_0x515505['markerName'])?_0x8dae9d['writer']['addClass']('ck-suggestion-marker--active',_0x37e4ad):_0x8dae9d['writer']['removeClass']('ck-suggestion-marker--active',_0x37e4ad));}}};}_0x4ce3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4783fb),_0x4ce3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4783fb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x9267c9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x215cb1,_0x223a9c,_0x32f8cf)=>{_0x32f8cf['options']['showSuggestionHighlights']&&_0x9267c9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x215cb1,_0x223a9c,_0x32f8cf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ff030,_0x1dadcb,_0x207b1e)=>{const {type:_0x2df713,id:_0x3e745b}=_0x4ce3ce['_splitMarkerName'](_0x1dadcb['markerName']);if(!_0x4ce3ce['hasSuggestion'](_0x3e745b))return;const _0x5dc1a3=_0x4ce3ce['getSuggestion'](_0x3e745b),_0x15b652=_0x5dc1a3['data'];if('formatBlock'!=_0x5dc1a3['type']||!_0x15b652||'setTableColumnHeader'!=_0x15b652['commandName'])return;const _0x5eda97=_0x207b1e['mapper']['markerNameToElements'](_0x1dadcb['markerName']);if(_0x5eda97){for(const _0x2b39ec of _0x5eda97)_0x207b1e['writer']['removeClass']('ck-suggestion-marker-'+_0x2df713,_0x2b39ec),_0x207b1e['writer']['removeClass']('ck-suggestion-marker--active',_0x2b39ec),_0x207b1e['writer']['removeAttribute']('data-suggestion',_0x2b39ec),_0x207b1e['mapper']['unbindElementFromMarkerName'](_0x2b39ec,_0x1dadcb['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x177dbd=this['editor'],_0xe11b12=_0x177dbd['locale'];function _0x2951d2(_0x3c2000){return{'type':'format','content':o(_0xe11b12,'*Format:*\x20%0',_0x3c2000)};}_0x177dbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x347c3f=>{if('formatBlock'!=_0x347c3f['type'])return;const {data:_0x264d25}=_0x347c3f;if(_0x264d25){if('setTableRowHeader'==_0x264d25['commandName']){const _0x5114da=_0x264d25['commandParams'][0x0]['forceValue'];return _0x2951d2(o(_0xe11b12,_0x5114da?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x264d25['commandName']){const _0x5a4071=_0x264d25['commandParams'][0x0]['forceValue'];return _0x2951d2(o(_0xe11b12,_0x5a4071?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x38a85b{['afterInit'](){const _0x59f9e8=this['editor'],_0x1befb5=_0x59f9e8['locale'],_0x533d16=_0x59f9e8['plugins']['get']('TrackChangesEditing');function _0x2c96b5(_0x263c2b){return{'type':'format','content':''+o(_0x1befb5,'*Set\x20table\x20type:*\x20%0',_0x263c2b)};}_0x59f9e8['plugins']['has']('TableLayout')&&(_0x533d16['enableCommand']('insertTableLayout'),_0x533d16['enableDefaultAttributesIntegration']('tableType'),_0x533d16['registerBlockAttribute']('tableType'),_0x533d16['descriptionFactory']['registerElementLabel'](_0x352aa2=>_0x352aa2['is']('element','table')&&'layout'===_0x352aa2['getAttribute']('tableType'),_0x2e7e8e=>o(_0x1befb5,'ELEMENT_LAYOUT_TABLE',_0x2e7e8e)),_0x533d16['descriptionFactory']['registerDescriptionCallback'](_0x2699e9=>{const {data:_0x30ad55}=_0x2699e9;if(_0x30ad55&&'tableType'==_0x30ad55['key'])switch(_0x30ad55['newValue']){case'layout':return _0x2c96b5(o(_0x1befb5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2c96b5(o(_0x1befb5,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Oe['map'](_0x3be386=>[_0x3be386,null]));class Bt extends _0x38a85b{static get['requires'](){return[$t];}['afterInit'](){const _0x1474e3=this['editor'];if(!_0x1474e3['plugins']['has']('TableClipboard'))return;const _0x2ea941=_0x1474e3['plugins']['get']('TrackChangesEditing'),_0x128e24=_0x1474e3['plugins']['get']('TableUtils'),_0x49fb19=_0x1474e3['plugins']['get']($t),_0x308b81=_0x1474e3['plugins']['get']('TableClipboard'),_0x33f416=_0x1474e3['plugins']['get']('TableSelection'),_0x42b4cf=_0x1474e3['plugins']['get'](_0x5445b2);_0x49fb19['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1474e3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1474e3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x330998=null,_0x1d5a75=!0x1;_0x42b4cf['on']('contentInsertion',(_0x4b31a1,_0x22d328)=>{_0x1d5a75='paste'===_0x22d328['method'];}),_0x1474e3['model']['on']('insertContent',(_0x2412a4,_0x1a9642)=>{if(!_0x1d5a75&&null===_0x33f416['getSelectedTableCells']())return;const [_0x38eb48,_0x133c3c]=_0x1a9642,_0x5c1ba2=_0x1a9642[_0x1a9642['length']-0x1];_0x5c1ba2&&_0x5c1ba2['forceDefaultExecution']||_0x2ea941['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a09cd,_0x4fcbca,_0xc2a0d6,_0x1bd7a2,_0x29b0d8){if(_0x4fcbca&&!_0x4fcbca['is']('documentSelection'))return!0x1;const _0x12d578=_0x29b0d8['getTableIfOnlyTableInContent'](_0x1a09cd,_0xc2a0d6);if(!_0x12d578||!He(_0x12d578,void 0x0,_0x1bd7a2))return!0x1;const _0x37d40e=_0x1bd7a2['getSelectionAffectedTableCells'](_0xc2a0d6['document']['selection']);if(!_0x37d40e['length'])return!0x1;const _0x407d8d=_0x37d40e[0x0]['findAncestor']('table'),_0x4955aa=_0x1bd7a2['getRowIndexes'](_0x37d40e),_0x4d2da8=_0x1bd7a2['getColumnIndexes'](_0x37d40e),_0x566241={'startRow':_0x4955aa['first'],'endRow':_0x4955aa['last'],'startColumn':_0x4d2da8['first'],'endColumn':_0x4d2da8['last']};return 0x1==_0x37d40e['length']&&(_0x566241['endRow']+=_0x1bd7a2['getRows'](_0x12d578)-0x1,_0x566241['endColumn']+=_0x1bd7a2['getColumns'](_0x12d578)-0x1),He(_0x407d8d,_0x566241,_0x1bd7a2);}(_0x38eb48,_0x133c3c,_0x1474e3['model'],_0x128e24,_0x308b81)&&(_0x2412a4['stop'](),_0x330998={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1474e3['model']['change'](()=>{_0x1474e3['model']['insertContent'](_0x1a9642[0x0],_0x1a9642[0x1],_0x1a9642[0x2],{'forceDefaultExecution':!0x0});const _0x4d0f45=_0x46d86f(),{rowInsertionRanges:_0x2ffc19,columnInsertionRanges:_0x331314,insertionRanges:_0x4599e4,deletionRanges:_0x5b630e,cells:_0x57a99b}=_0x330998;_0x2ffc19['length']&&_0x2ea941['markMultiRangeInsertion'](_0x2ffc19,'tablePasteRow',{'tablePasteChainId':_0x4d0f45}),_0x331314['length']&&_0x2ea941['markMultiRangeInsertion'](_0x331314,'tablePasteColumn',{'tablePasteChainId':_0x4d0f45}),_0x4599e4['length']&&(_0x2ea941['markMultiRangeInsertion'](_0x4599e4,'tablePaste',{'tablePasteChainId':_0x4d0f45,'skipNestingCheck':!0x0}),_0x4599e4['forEach'](_0x17f8c9=>_0x17f8c9['detach']?.())),_0x5b630e['length']&&(_0x2ea941['markMultiRangeDeletion'](_0x5b630e,'tablePaste',{'tablePasteChainId':_0x4d0f45,'skipNestingCheck':!0x0}),_0x5b630e['forEach'](_0x1aeef2=>_0x1aeef2['detach']?.()));const _0x1e29a6=_0x2ea941['markMultiRangeBlockFormat'](_0x57a99b['map'](({element:_0x56e6dd})=>_0x56e6dd),{'formatGroupId':_0x46d86f()},[],'tablePasteCell',{'tablePasteChainId':_0x4d0f45});if(_0x1e29a6){const _0x51190f=_0x1e29a6['getMarkers'](),_0x2cb454=[];for(const {element:_0x2dce57,attributes:_0xab4a00}of _0x57a99b){if(!_0xab4a00)continue;const _0x4415f5=_0x1474e3['model']['createRangeOn'](_0x2dce57),_0x1ba8dc=_0x51190f['find'](_0x1abe6f=>_0x1abe6f['getRange']()['isEqual'](_0x4415f5));_0x1ba8dc&&_0x2cb454['push']([_0x1ba8dc['name'],_0xab4a00]);}_0x2cb454['length']&&_0x1e29a6['setAttribute']('markerAttributes',Object['fromEntries'](_0x2cb454));}_0x330998=null;}));},{'priority':_0x49db['high']+0xa}),_0x42b4cf['on']('contentInsertion',()=>{_0x1d5a75=!0x1;},{'priority':'lowest'}),_0x1474e3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x123ea1,_0x5c0ac7)=>{const [_0x45b4e9,_0xf255b9,,_0x4b34b3]=_0x5c0ac7;if(!_0x330998)return;_0x123ea1['stop']();const _0x229f89=_0x45b4e9['cell'],_0x4a5e90=_0xf255b9,_0x1e3ccc=De(_0x229f89),_0x79a141=De(_0x4a5e90);_0x123ea1['return']=_0x229f89;let _0x5ed6db=null,_0xdf1364=null;if(_0x79a141||_0x1e3ccc){if(_0x1e3ccc&&!_0x79a141){_0x4b34b3['remove'](_0x229f89['getChild'](0x0));for(const _0x1c872a of Array['from'](_0x4a5e90['getChildren']()))_0x4b34b3['insert'](_0x1c872a,_0x229f89,'end');const _0x486771=_0x330998['rowInsertionIndexes']['includes'](_0x45b4e9['row']),_0x558b3c=_0x330998['columnInsertionIndexes']['includes'](_0x45b4e9['column']);_0x486771||_0x558b3c||(_0x5ed6db=_0x3cf104['fromRange'](_0x4b34b3['createRangeIn'](_0x229f89)));}else _0x79a141&&!_0x1e3ccc&&(_0xdf1364=_0x4b34b3['createRangeIn'](_0x229f89));}else{const _0x3c4798=_0x4b34b3['createElement']('tableCellSuggestion'),_0x3bad41=_0x4b34b3['createElement']('tableCellSuggestion');_0x4b34b3['wrap'](_0x4b34b3['createRangeIn'](_0x229f89),_0x3bad41),_0x4b34b3['insert'](_0x3c4798,_0x229f89,0x0);for(const _0x5ed541 of Array['from'](_0x4a5e90['getChildren']()))_0x4b34b3['insert'](_0x5ed541,_0x3c4798,'end');_0x5ed6db=_0x3cf104['fromRange'](_0x4b34b3['createRangeOn'](_0x3c4798)),_0xdf1364=_0x3cf104['fromRange'](_0x4b34b3['createRangeOn'](_0x3bad41));}const _0x3794d6=Array['from'](_0x4a5e90['getAttributes']())['filter'](([_0x259f70])=>Oe['includes'](_0x259f70));_0x330998['cells']['push']({'element':_0x229f89,'attributes':_0x3794d6['length']?Object['fromEntries'](_0x3794d6):null}),_0x5ed6db&&_0x330998['insertionRanges']['push'](_0x5ed6db),_0xdf1364&&_0x330998['deletionRanges']['push'](_0xdf1364);},{'priority':'high'}),_0x128e24['on']('insertColumns',(_0x498996,_0x502124)=>{const [_0x41220d,_0x3a4e4f={}]=_0x502124;if(!_0x330998)return;const _0x3f9375=_0x3a4e4f['at']||0x0,_0x1b31ca=_0x3a4e4f['columns']||0x1;_0x330998['columnInsertionIndexes']=new Array(_0x1b31ca)['fill'](_0x3f9375)['map']((_0x467955,_0x2b2d7b)=>_0x467955+_0x2b2d7b);for(const {cell:_0x2e32be}of _0x128e24['createTableWalker'](_0x41220d,{'startColumn':_0x3f9375,'endColumn':_0x3f9375+_0x1b31ca-0x1}))_0x330998['columnInsertionRanges']['push'](_0x1474e3['model']['createRangeOn'](_0x2e32be));},{'priority':'low'}),_0x128e24['on']('insertRows',(_0xc5c195,_0xb1c6b8)=>{const [_0x3a372e,_0x5178f2={}]=_0xb1c6b8;if(!_0x330998)return;const _0x5bfa8e=_0x5178f2['at']||0x0,_0x2efce4=_0x5178f2['rows']||0x1;_0x330998['rowInsertionIndexes']=new Array(_0x2efce4)['fill'](_0x5bfa8e)['map']((_0x230e73,_0x5b9d93)=>_0x230e73+_0x5b9d93);for(const {cell:_0x1e19fa}of _0x128e24['createTableWalker'](_0x3a372e,{'startRow':_0x5bfa8e,'endRow':_0x5bfa8e+_0x2efce4-0x1}))_0x330998['rowInsertionRanges']['push'](_0x1474e3['model']['createRangeOn'](_0x1e19fa));},{'priority':'low'}),_0x2ea941['descriptionFactory']['registerDescriptionCallback'](_0x32f7ad=>{if(_0x32f7ad['subType']&&_0x32f7ad['subType']['startsWith']('tablePaste'))return _0x32f7ad['previous']?{}:{'type':'insertion','content':o(_0x1474e3['locale'],'*Replace\x20table\x20cells*')};});const _0x2cd039=()=>!0x1;for(const _0x504b79 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2ea941['_suggestionFactory']['registerCustomCallback']('insertion',_0x504b79,'join',_0x2cd039),_0x2ea941['_suggestionFactory']['registerCustomCallback']('deletion',_0x504b79,'join',_0x2cd039),_0x2ea941['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x504b79,'join',_0x2cd039);_0x2ea941['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2cd039),_0x2ea941['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4ed62c,_0x13296d,_0xfc12ae)=>{const _0x3b8c8f=_0x4ed62c['map'](_0x505856=>_0x505856['getContainedElement']())['filter'](_0x45c646=>_0x45c646),_0x361692=new Map(_0x3b8c8f['map'](_0x5c4f30=>[_0x5c4f30,null]));if(_0x330998){for(const {element:_0x3ce927,attributes:_0x320b85}of _0x330998['cells'])_0x320b85&&_0x361692['set'](_0x3ce927,_0x320b85);}else{if(_0xfc12ae&&_0xfc12ae['markerAttributes'])for(const [_0x554e4c,_0x1aceb7]of Object['entries'](_0xfc12ae['markerAttributes'])){const _0x1a441a=_0x1474e3['model']['markers']['get'](_0x554e4c),_0x14336b=_0x1a441a?_0x1a441a['getRange']()['getContainedElement']():null;_0x14336b&&_0x361692['set'](_0x14336b,_0x1aceb7);}}_0x1474e3['model']['change'](_0x4b7d95=>{for(const [_0x38e1c5,_0x5db5fb]of _0x361692)_0x4b7d95['setAttributes']({...Ue,..._0x5db5fb},_0x38e1c5);});});const _0x564320=(_0x12d086,_0x487609)=>{_0x2ea941['_suggestionFactory']['registerCustomCallback'](_0x12d086,'tablePaste',_0x487609,(_0x48c60e,_0x4d6af7,_0xa74269)=>{_0x1474e3['model']['change'](_0x51e948=>{const _0x5c57bc=[];for(const _0x24893f of _0x48c60e){const _0x1877e2=_0x24893f['start']['nodeAfter'];_0x1877e2['is']('element','tableCellSuggestion')&&_0x5c57bc['push'](_0x1877e2);}_0x2ea941['_suggestionFactory']['getSuggestionCallback'](_0x12d086,null,_0x487609)(_0x48c60e,_0x4d6af7,_0xa74269);for(const _0x231168 of _0x5c57bc)'$graveyard'!=_0x231168['root']['rootName']&&_0x51e948['unwrap'](_0x231168);});});};_0x564320('insertion','accept'),_0x564320('insertion','discard'),_0x564320('deletion','accept'),_0x564320('deletion','discard'),_0x2ea941['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x49cb54=>{const _0x1c2502=_0x49cb54['map'](_0x156a95=>_0x156a95['getContainedElement']()),_0x5d8cae=_0x1c2502[0x0]['findAncestor']('table'),{minRow:_0x16c982,maxRow:_0x344783}=_0x49fb19['_getCoordsForCells'](_0x1c2502);_0x128e24['removeRows'](_0x5d8cae,{'at':_0x16c982,'rows':_0x344783-_0x16c982+0x1});}),_0x2ea941['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x74c5d5=>{const _0x543bf3=_0x74c5d5['map'](_0x566e4f=>_0x566e4f['getContainedElement']()),_0x451e40=_0x543bf3[0x0]['findAncestor']('table'),{minColumn:_0x57c0b3,maxColumn:_0x33af12}=_0x49fb19['_getCoordsForCells'](_0x543bf3);_0x128e24['removeColumns'](_0x451e40,{'at':_0x57c0b3,'columns':_0x33af12-_0x57c0b3+0x1});});const _0x41ab82=(_0x328c65,_0x5455ea)=>{if(!_0x5455ea['subType']||!_0x5455ea['subType']['startsWith']('tablePaste'))return;const _0x3d3920=_0x5455ea['attributes']['tablePasteChainId'],_0x4e7682=_0x2ea941['getSuggestions']()['filter'](_0x104aca=>_0x104aca['isInContent']&&_0x104aca['attributes']&&_0x104aca['attributes']['tablePasteChainId']==_0x3d3920);_0x4e7682['length']&&_0x5455ea['getAllAdjacentSuggestions']()['length']!=_0x4e7682['length']&&_0x4e7682['reduce']((_0x87d165,_0x5e7441)=>(_0x87d165['next']=_0x5e7441,_0x5e7441['previous']=_0x87d165,_0x5e7441));};function _0x3f4566(_0x3722b9,_0x31c6e0=!0x0){const {id:_0x4b7c36,authorId:_0x3f562b}=_0x2ea941['_splitMarkerName'](_0x3722b9['markerName']),_0x4d529f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3eed43=_0x2ea941['activeMarkers']['includes'](_0x3722b9['markerName']);return _0x3eed43&&_0x4d529f['push']('ck-suggestion-marker--active'),{'classes':_0x4d529f,'attributes':{'data-suggestion':_0x4b7c36,'data-author-id':_0x3f562b},'priority':_0x3eed43&&_0x31c6e0?0xbc2:0xbb8};}_0x2ea941['on']('suggestionLoaded',_0x41ab82,{'priority':'high'}),_0x2ea941['on']('suggestionUnloaded',_0x41ab82,{'priority':'high'}),_0x1474e3['model']['document']['registerPostFixer'](()=>{let _0x17a994=!0x1;const _0xd046f8=Array['from'](_0x1474e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2234f2,data:_0x2a9774}of _0xd046f8){const {group:_0x295557,type:_0x3b2b66,id:_0x29ffd2}=_0x2ea941['_splitMarkerName'](_0x2234f2);if('suggestion'!=_0x295557||'deletion'!=_0x3b2b66||_0x2a9774['oldRange'])continue;if(!_0x2ea941['hasSuggestion'](_0x29ffd2))continue;const _0x233224=_0x2ea941['getSuggestion'](_0x29ffd2)['getRanges'](),_0x2581fd=_0x1474e3['plugins']['get']('Users')['me'];for(const _0x506e02 of _0x2ea941['getSuggestions']()){if(!_0x506e02['isInContent']||_0x506e02['author']!=_0x2581fd)continue;if('formatBlock'!=_0x506e02['type']||'tablePasteCell'!=_0x506e02['subType'])continue;if(_0x506e02['getRanges']()['every'](_0x54c9f1=>_0x233224['some'](_0x4034aa=>_0x4034aa['containsRange'](_0x54c9f1,!0x0)))){for(const _0x2d8ca4 of _0x506e02['getAllAdjacentSuggestions']())_0x2d8ca4['isInContent']&&(_0x2d8ca4['discard'](),_0x17a994=!0x0);}}}return _0x17a994;}),_0x1474e3['model']['document']['registerPostFixer'](_0x5b3a3e=>{const _0x451bd1=_0x1474e3['commands']['get']('redo');if(!_0x451bd1||!_0x451bd1['_createdBatches']['has'](_0x5b3a3e['batch']))return!0x1;let _0xdda089=!0x1;const _0x303262=_0x1474e3['plugins']['get']('Users')['me'],_0x57c27d=_0x1474e3['model']['document']['differ']['getChanges'](),_0x247af5=Array['from'](_0x1474e3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2aa2e7,data:_0x2d1c7f})=>{const {group:_0x35f919,subType:_0x133e53,authorId:_0x29f4e3}=_0x2ea941['_splitMarkerName'](_0x2aa2e7);return'suggestion'==_0x35f919&&'tablePaste'==_0x133e53&&_0x29f4e3==_0x303262['id']&&!_0x2d1c7f['oldRange'];});for(const _0x31951c of _0x57c27d){if('insert'!=_0x31951c['type']||'tableCellSuggestion'!=_0x31951c['name']||0x1!=_0x31951c['length'])continue;const _0x281c81=_0x5b3a3e['createRange'](_0x31951c['position'],_0x31951c['position']['getShiftedBy'](0x1));if(!_0x247af5['find'](({data:_0x56faa6})=>_0x56faa6['newRange']['isEqual'](_0x281c81))){for(const {name:_0x2d6ae9,data:_0x3e87cd}of _0x247af5)if(_0x281c81['containsRange'](_0x3e87cd['newRange'])){_0x5b3a3e['updateMarker'](_0x2d6ae9,{'range':_0x281c81}),_0xdda089=!0x0;break;}}}return _0xdda089;}),_0x1474e3['model']['document']['registerPostFixer'](_0x2ad06c=>{let _0x2bca50=!0x1;const _0x51713b=_0x1474e3['plugins']['get']('Users')['me'],_0x4a4b25=_0x2ea941['getSuggestions']()['filter'](_0x34cc26=>_0x34cc26['isInContent']&&_0x34cc26['author']==_0x51713b),_0x1ccd5a=new Set(),_0x50b23c=new Set();for(const _0x593431 of _0x4a4b25)if('tablePaste'==_0x593431['subType'])for(const _0x34829a of _0x593431['getMarkers']()){const _0x58d711=_0x34829a['getRange']()['getContainedElement']();if(_0x58d711){if(_0x58d711['is']('element','tableCellSuggestion')&&De(_0x58d711)){_0x593431['removeMarker'](_0x34829a['name']),_0x1ccd5a['add'](_0x58d711),_0x2bca50=!0x0;const _0x5ad4bf=_0x58d711['nextSibling'],_0x1069dc=_0x58d711['previousSibling'],_0x178f87=_0x5ad4bf&&_0x5ad4bf['is']('element','tableCellSuggestion'),_0x8c0eac=_0x1069dc&&_0x1069dc['is']('element','tableCellSuggestion');_0x178f87&&!_0x1ccd5a['has'](_0x5ad4bf)&&_0x50b23c['add'](_0x5ad4bf),_0x8c0eac&&!_0x1ccd5a['has'](_0x1069dc)&&_0x50b23c['add'](_0x1069dc);}else _0x58d711['is']('element','paragraph')&&_0x58d711['isEmpty']&&(_0x593431['removeMarker'](_0x34829a['name']),_0x2bca50=!0x0);}}else{if('tablePasteCell'==_0x593431['subType']){if(!_0x593431['attributes']||!_0x593431['attributes']['tablePasteChainId'])continue;const _0x3aa58f=_0x593431['attributes']['markerAttributes'];if(_0x3aa58f&&Object['keys'](_0x3aa58f)['length'])continue;const _0xde9cd3=_0x593431['attributes']['tablePasteChainId'];let _0x47ed75=!0x0,_0x2bb350=!0x0;for(const _0xf6a249 of _0x4a4b25)if(_0xf6a249['subType']&&_0xf6a249['subType']['startsWith']('tablePaste')){if(!_0xf6a249['attributes']['tablePasteChainId']){_0x2bb350=!0x1;break;}if(_0xf6a249['id']!=_0x593431['id']&&_0xf6a249['attributes']['tablePasteChainId']==_0xde9cd3){_0x47ed75=!0x1;break;}}_0x2bb350&&_0x47ed75&&(_0x593431['removeMarkers'](),_0x2bca50=!0x0);}}for(const _0x58c6c1 of _0x1ccd5a)_0x2ad06c['remove'](_0x58c6c1);for(const _0xbb25d of _0x50b23c)_0x2ad06c['unwrap'](_0xbb25d);return _0x2bca50;}),_0x1474e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2f246e=>_0x3f4566(_0x2f246e),'converterPriority':'high'}),_0x1474e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x80a77,_0x253948)=>_0x253948['options']['showSuggestionHighlights']?_0x3f4566(_0x80a77,!0x1):null,'converterPriority':'high'});const _0x2bc694=_0x1474e3['editing']['view'];this['listenTo'](_0x2bc694['document'],'clipboardOutput',(_0x41e6f2,_0x4dedc6)=>{const _0x31a622=[];for(const _0x41b55b of _0x2bc694['createRangeIn'](_0x4dedc6['content'])['getItems']())_0x41b55b['is']('element','suggestion-td')&&_0x31a622['push'](_0x41b55b);_0x2bc694['change'](_0x4aad30=>{for(const _0x5738ca of _0x31a622)_0x4aad30['move'](_0x4aad30['createRangeIn'](_0x5738ca),_0x4aad30['createPositionBefore'](_0x5738ca)),_0x4aad30['remove'](_0x5738ca);});});}}function De(_0x14e354){if(_0x14e354['isEmpty'])return!0x0;const _0x2db68e=_0x14e354['getChild'](0x0);return _0x2db68e['is']('element','paragraph')&&_0x2db68e['isEmpty'];}function He(_0x3d7ca8,_0xe3ccf7={},_0x49b36b){for(const {isAnchor:_0x5bbaf7,cellHeight:_0x2ddbbd,cellWidth:_0x37bf68}of _0x49b36b['createTableWalker'](_0x3d7ca8,{'includeAllSlots':!0x0,..._0xe3ccf7}))if(!_0x5bbaf7||0x1!=_0x2ddbbd||0x1!=_0x37bf68)return!0x1;return!0x0;}class Tt extends _0x38a85b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e21ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e21ca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3e21ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e21ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e21ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3e21ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3e21ca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xfff5d8,_0x4df960){const _0x1c3ec7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x497df3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe12d6=_0x4df960['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x464f7c=_0x497df3['getColumnGroupElement'](_0xe12d6);let _0x31c8ce=_0x464f7c?_0x497df3['getTableColumnsWidths'](_0x464f7c):null,_0x2a3af2=_0xe12d6['getAttribute']('tableWidth')||null;const _0x497407=_0x4df960['tableWidth']||_0x2a3af2,_0x3ec454=_0x4df960['columnWidths']||_0x31c8ce,_0x3f6971=this['editor']['plugins']['get']('Users')['me'];for(const _0x377336 of _0x1c3ec7['getSuggestions']()){const _0x31895e=_0x377336['getContainedElement']();if('resizeTable'===_0x377336['subType']&&_0x31895e===_0xe12d6){_0x377336['author']!==_0x3f6971&&_0x377336['discard']();const _0x4d63bb=_0x377336['data']['commandParams'];_0x2a3af2=_0x4d63bb[0x0]['tableWidth'],_0x31c8ce=_0x4d63bb[0x0]['columnWidths'];break;}}_0xfff5d8({'table':_0xe12d6,'tableWidth':_0x497407,'columnWidths':_0x3ec454}),_0x1c3ec7['markBlockFormat'](_0xe12d6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a3af2,'columnWidths':_0x31c8ce}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xd73cbf){if('formatBlock'!=_0xd73cbf['type']&&'formatInline'!=_0xd73cbf['type'])return;const {data:_0x40adfa}=_0xd73cbf;if(_0x40adfa&&'resizeTable'===_0x40adfa['formatGroupId']){const _0x4ac680='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4ac680)};}}}class Ot extends _0x38a85b{['afterInit'](){const _0x241ae7=this['editor'];_0x241ae7['plugins']['has']('Template')&&_0x241ae7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x38a85b{['afterInit'](){const _0x33d722=this['editor'];if(!_0x33d722['commands']['get']('insertTableOfContents'))return;_0x33d722['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x56e5c0=_0x33d722['plugins']['get']('TrackChangesEditing'),_0x3be080=_0x33d722['locale'];_0x56e5c0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3d4260=>o(_0x3be080,'ELEMENT_TABLE_OF_CONTENTS',_0x3d4260));}}class Et extends _0x38a85b{['afterInit'](){const _0x576a6d=this['editor'];if(!_0x576a6d['plugins']['has']('Title'))return;const _0x5e7b89=_0x576a6d['plugins']['get']('TrackChangesEditing');_0x5e7b89['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x576a6d['locale'],'ELEMENT_TITLE')),_0x576a6d['model']['document']['registerPostFixer'](_0xdd52fd=>{let _0x209381=!0x1;const _0x13c3f2=Array['from'](_0x576a6d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x72ca65,data:_0x176c2b}of _0x13c3f2){const {group:_0x3cd5c0}=_0x5e7b89['_splitMarkerName'](_0x72ca65);if('suggestion'!==_0x3cd5c0||!_0x176c2b['newRange'])continue;const _0xf7142a=_0x176c2b['newRange'],_0x578b4e=_0xf7142a['end']['nodeBefore'];if(!_0x578b4e||!_0x578b4e['is']('element','title-content'))continue;if(!_0xf7142a['start']['isTouching'](_0xf7142a['end']))continue;const _0x38d435=_0x576a6d['model']['schema']['getNearestSelectionRange'](_0xf7142a['end'],'forward');if(_0x38d435&&_0x38d435['isCollapsed']){const _0x4e62b8=_0xdd52fd['createRange'](_0xf7142a['start'],_0x38d435['start']);_0x4e62b8['isEqual'](_0xf7142a)||(_0xdd52fd['updateMarker'](_0x72ca65,{'range':_0x4e62b8}),_0x209381=!0x0);}_0x209381||(_0xdd52fd['removeMarker'](_0x72ca65),_0x209381=!0x0);}return _0x209381;});}}class Rt extends _0x38a85b{['afterInit'](){const _0x47dc8d=this['editor'],_0x4fdd7a=_0x47dc8d['plugins']['get']('TrackChangesEditing');_0x47dc8d['plugins']['has']('Uploadcare')&&(_0x4fdd7a['enableCommand']('uploadcare'),_0x47dc8d['plugins']['has']('UploadcareImageEdit')&&(_0x4fdd7a['enableCommand']('uploadcareImageEdit'),_0x4fdd7a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4fdd7a['registerBlockAttribute']('uploadcareImageId'),_0x4fdd7a['descriptionFactory']['registerDescriptionCallback'](_0xad93b4=>{if('attribute'!=_0xad93b4['type'])return;const {data:_0x4752ba}=_0xad93b4;return _0x4752ba&&'uploadcareImageId'==_0x4752ba['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x38a85b{['afterInit'](){const _0x398b4a=this['editor'],_0xd47753=_0x398b4a['plugins']['get']('TrackChangesEditing');_0x398b4a['plugins']['has']('UndoEditing')&&(_0xd47753['enableCommand']('undo'),_0xd47753['enableCommand']('redo'));}}class Vt extends _0x38a85b{static get['requires'](){return[$t];}['afterInit'](){const _0x5b0f67=this['editor'];if(!_0x5b0f67['plugins']['has']('TableCaptionEditing'))return;_0x5b0f67['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x38a85b{['tableProperties'];['tableCellProperties'];constructor(_0x4c9c47){super(_0x4c9c47),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2dc04f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x364fdd of this['tableProperties'])_0x2dc04f['enableCommand'](_0x364fdd,(_0x36195c,_0x242e2d)=>{const _0x4257a7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x364fdd,[_0x4257a7],this['tableProperties'],'tableProperties',_0x36195c,_0x242e2d);});_0x2dc04f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2dc04f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2dc04f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x31cdd6,_0x759599)=>this['handleDiscardAction'](this['tableProperties'],_0x31cdd6,_0x759599)),_0x2dc04f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3cbf31 of this['tableCellProperties'])_0x2dc04f['enableCommand'](_0x3cbf31,(_0xfde6d0,_0x4275cc)=>{const _0x2d0ebe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3cbf31,_0x2d0ebe,this['tableCellProperties'],'tableCellProperties',_0xfde6d0,_0x4275cc);});_0x2dc04f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2dc04f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2dc04f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc2657f,_0xb7b9c6)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc2657f,_0xb7b9c6)),_0x2dc04f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2dc04f['descriptionFactory']['registerDescriptionCallback'](_0x510aa2=>this['handleSuggestionDescription'](_0x510aa2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x67c03c,_0x2e5d1f,_0x10cb43,_0x5a7027,_0x31384b,_0x41f907){const _0x883034=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x41f907['batch'],()=>{for(const _0x3c26ef of _0x2e5d1f){if(this['_getSuggestion'](_0x3c26ef,_0x5a7027))_0x31384b(_0x41f907);else{const _0x2cb4aa={};for(const _0x5efa39 of _0x10cb43){const _0x399923=_0x3c26ef['getAttribute'](_0x5efa39);void 0x0!==_0x399923&&(_0x2cb4aa[_0x5efa39]=_0x399923);}_0x31384b(_0x41f907),_0x883034['markBlockFormat'](_0x3c26ef,{'commandParams':[_0x2cb4aa]},[],_0x5a7027);}}});}['handleDiscardAction'](_0x5d19b7,_0x3e14e4,_0x13bbf2){const _0x3e5913=_0x3e14e4[0x0]['start']['nodeAfter'],_0x3e15a8=_0x13bbf2['commandParams'][0x0];this['editor']['model']['change'](_0x421ad8=>{for(const _0x368f23 of _0x5d19b7)void 0x0!==_0x3e15a8[_0x368f23]?_0x421ad8['setAttribute'](_0x368f23,_0x3e15a8[_0x368f23],_0x3e5913):_0x421ad8['removeAttribute'](_0x368f23,_0x3e5913);});}['handleSuggestionDescription'](_0x3571fc){if(_0x3571fc['data'])switch(_0x3571fc['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'](_0x377473,_0x1915e6){const _0x50ba56=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x375af8 of _0x50ba56['getSuggestions']({'skipNotAttached':!0x0})){const _0x13b378=_0x375af8['getContainedElement']();if(_0x375af8['subType']===_0x1915e6&&_0x13b378===_0x377473)return _0x375af8;}return null;}['_registerTablePropertiesAttributes'](){const _0xc79201=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d1e86=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3c72f2 of _0x1d1e86){const _0x116aec=_0x3c72f2['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xc79201['registerBlockAttribute'](_0x3c72f2),_0xc79201['descriptionFactory']['registerAttributeLabel'](_0x3c72f2,o(this['editor']['locale'],'FORMAT_'+_0x116aec));}}}class Pt extends _0x38a85b{['afterInit'](){const _0x219f49=this['editor'];if(!_0x219f49['plugins']['has']('LineHeight'))return;const _0x1f61cd=_0x219f49['plugins']['get']('TrackChangesEditing'),_0x2810f5=_0x219f49['locale'];_0x1f61cd['enableDefaultAttributesIntegration']('lineHeight'),_0x1f61cd['registerBlockAttribute']('lineHeight'),_0x1f61cd['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x2810f5,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x38a85b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1c3104,_0x20b042,_0x4f4fd6,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbf02a4){super(_0xbf02a4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x238384,_0x2e8bdf,_0x1be408,_0x18d491)=>{this['_model']['change'](()=>{for(const _0xda49c2 of[..._0x18d491,..._0x1be408])this['_model']['markers']['has'](_0xda49c2)&&_0xbf02a4['editing']['reconvertMarker'](_0xda49c2);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xbf02a4['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(),_0xbf02a4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xbf02a4['config']['get']('trackChanges.trackFormatChanges'),_0xbf02a4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xbf02a4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xbf02a4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x10ded0=this['editor'],_0x2d2c77=(_0x16e1f0,_0x2d7571)=>{if('attribute'!=_0x16e1f0)return'ck-suggestion-marker-'+_0x16e1f0;const _0x11676d=_0x2d7571['split']('|')[0x0];return this['_isBlockAttribute'](_0x11676d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x10ded0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x58414e=>{const {id:_0x4e3078,authorId:_0x1482ad,type:_0x148bfe,subType:_0x51ce66}=this['_splitMarkerName'](_0x58414e['markerName']),_0x175c06=['ck-suggestion-marker',_0x2d2c77(_0x148bfe,_0x51ce66)];let _0x2afdb3=0xbb8;return this['activeMarkers']['includes'](_0x58414e['markerName'])&&(_0x175c06['push']('ck-suggestion-marker--active'),_0x2afdb3=0xbc2),'deletion'==_0x148bfe&&(_0x2afdb3+=0x5),{'classes':_0x175c06,'attributes':{'data-suggestion':_0x4e3078,'data-author-id':_0x1482ad},'priority':_0x2afdb3};}}),_0x10ded0['conversion']['for']('dataDowncast')['add'](_0x1dc277=>{_0x1dc277['on']('addMarker:suggestion',(_0x4945bb,_0x26ed83,_0x83a4b5)=>{if(!_0x83a4b5['options']['showSuggestionHighlights'])return;const _0x38cdf2=_0x26ed83['item'];if(!_0x38cdf2)return;const _0x4c929d=_0x83a4b5['mapper']['toViewElement'](_0x38cdf2);_0x10ded0['model']['schema']['isObject'](_0x38cdf2)&&_0x4c929d&&!_0x4c929d['getCustomProperty']('widget')&&_0x4c929d['is']('containerElement')&&_0x411112(_0x4c929d,_0x83a4b5['writer']);},{'priority':'high'});}),_0x10ded0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x229575,_0x3bbeb4)=>{if(!_0x3bbeb4['options']['showSuggestionHighlights'])return null;const {id:_0x9b9d2a,authorId:_0x583d1f,type:_0x29881b,subType:_0x1fa15d}=this['_splitMarkerName'](_0x229575['markerName']);return{'classes':['ck-suggestion-marker',_0x2d2c77(_0x29881b,_0x1fa15d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x9b9d2a,'data-author-id':_0x583d1f}};}});const _0x267443=({showActiveMarkers:_0x306080=!0x0,isAttributeSuggestion:_0x87480c=!0x1}={})=>(_0x33f1c2,_0x2be3a7,_0x484bd7)=>{if(!_0x2be3a7['item'])return;const {id:_0x36ea8e,authorId:_0x25d2b7,subType:_0x3d8460}=this['_splitMarkerName'](_0x2be3a7['markerName']);if(_0x87480c){const _0x335793=se(_0x3d8460);if(!this['_isBlockAttribute'](_0x335793))return;}if(_0x2be3a7['item']['is']('selection'))return void _0x484bd7['consumable']['consume'](_0x2be3a7['item'],_0x33f1c2['name']);const _0x1239a2=_0x484bd7['mapper']['toViewElement'](_0x2be3a7['item']);if(_0x2be3a7['item']['is']('element')&&_0x10ded0['model']['schema']['isBlock'](_0x2be3a7['item'])&&!_0x1239a2['getCustomProperty']('addHighlight')){_0x484bd7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1239a2),_0x484bd7['writer']['setAttribute']('data-suggestion',_0x36ea8e,_0x1239a2),_0x484bd7['writer']['setAttribute']('data-author-id',_0x25d2b7,_0x1239a2),_0x484bd7['mapper']['bindElementToMarker'](_0x1239a2,_0x2be3a7['markerName']),_0x306080&&(this['activeMarkers']['includes'](_0x2be3a7['markerName'])?_0x484bd7['writer']['addClass']('ck-suggestion-marker--active',_0x1239a2):_0x484bd7['writer']['removeClass']('ck-suggestion-marker--active',_0x1239a2));for(const _0x2debb1 of _0x10ded0['model']['createRangeIn'](_0x2be3a7['item'])['getItems']())_0x484bd7['consumable']['consume'](_0x2debb1,_0x33f1c2['name']);_0x484bd7['consumable']['consume'](_0x2be3a7['item'],_0x33f1c2['name']);}};_0x10ded0['conversion']['for']('dataDowncast')['add'](_0x3362d2=>{_0x3362d2['on']('addMarker:suggestion:formatBlock',(_0x245ee3,_0x4eba4d,_0x535bbc)=>{_0x535bbc['options']['showSuggestionHighlights']&&_0x267443({'showActiveMarkers':!0x1})(_0x245ee3,_0x4eba4d,_0x535bbc);},{'priority':'highest'});}),_0x10ded0['conversion']['for']('dataDowncast')['add'](_0x406b46=>{_0x406b46['on']('addMarker:suggestion:attribute',(_0x452e88,_0x538846,_0x30aa1c)=>{_0x30aa1c['options']['showSuggestionHighlights']&&_0x267443({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x452e88,_0x538846,_0x30aa1c);},{'priority':'highest'});}),_0x10ded0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9951ad,_0x66c06c)=>{if(_0x66c06c['options']['showSuggestionHighlights']){const {id:_0x3eee31,authorId:_0x3193d2}=this['_splitMarkerName'](_0x9951ad);return _0x9951ad['includes'](':split')||_0x9951ad['includes'](':merge')?{'group':'suggestion','name':_0x9951ad['substr'](0xb),'attributes':{'data-suggestion':_0x3eee31,'data-author-id':_0x3193d2}}:null;}return{'group':'suggestion','name':_0x9951ad['substr'](0xb)};}}),_0x10ded0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5df758,{writer:_0x2194dc})=>{let _0x31d778='suggestion:'+_0x5df758['getAttribute']('suggestion-type')+':'+_0x5df758['getAttribute']('id');return _0x5df758['getAttribute']('marker-count')&&(_0x31d778+=':'+_0x5df758['getAttribute']('marker-count')),_0x2194dc['createElement']('$marker',{'data-name':_0x31d778});}}),_0x10ded0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x10ded0['conversion']['for']('editingDowncast')['add'](_0x300683=>{_0x300683['on']('addMarker:suggestion:formatBlock',_0x267443(),{'priority':'high'});}),_0x10ded0['conversion']['for']('editingDowncast')['add'](_0x58eb28=>{_0x58eb28['on']('addMarker:suggestion:attribute',_0x267443({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x10ded0['conversion']['for']('editingDowncast')['add'](_0x2975c5=>{_0x2975c5['on']('removeMarker:suggestion:formatBlock',(_0x555dde,_0x310eaf,_0xf970f1)=>{const _0xba8076=_0xf970f1['mapper']['markerNameToElements'](_0x310eaf['markerName']);if(_0xba8076){for(const _0x46f44e of _0xba8076)_0x46f44e['getCustomProperty']('addHighlight')||(_0xf970f1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x46f44e),_0xf970f1['writer']['removeAttribute']('data-suggestion',_0x46f44e),_0xf970f1['writer']['removeAttribute']('data-author-id',_0x46f44e),_0xf970f1['mapper']['unbindElementFromMarkerName'](_0x46f44e,_0x310eaf['markerName']));}},{'priority':'high'});}),_0x10ded0['conversion']['for']('editingDowncast')['add'](_0x501e6f=>{_0x501e6f['on']('removeMarker:suggestion:attribute',(_0x40a23a,_0x11f37b,_0x35386b)=>{const _0x568c4e=_0x35386b['mapper']['markerNameToElements'](_0x11f37b['markerName']);if(!_0x568c4e)return;const {subType:_0x18126d}=this['_splitMarkerName'](_0x11f37b['markerName']),_0x408c7e=se(_0x18126d);if(this['_isBlockAttribute'](_0x408c7e)){for(const _0x471272 of _0x568c4e)_0x471272['getCustomProperty']('addHighlight')||(_0x35386b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x471272),_0x35386b['writer']['removeAttribute']('data-suggestion',_0x471272),_0x35386b['writer']['removeAttribute']('data-author-id',_0x471272),_0x35386b['mapper']['unbindElementFromMarkerName'](_0x471272,_0x11f37b['markerName']));}},{'priority':'high'});}),_0x10ded0['model']['document']['registerPostFixer'](_0x5af6a4=>{let _0x33f1b3=!0x1;const _0x13f5c7=Array['from'](_0x10ded0['model']['document']['differ']['getChangedMarkers']()),_0x5c9082=new Set();for(const {name:_0x1d5998,data:_0x21b8c7}of _0x13f5c7){const {group:_0x3d2efb,type:_0x3dd2a8,subType:_0x26564d,id:_0x2b43b0}=this['_splitMarkerName'](_0x1d5998);if('suggestion'!==_0x3d2efb)continue;const _0xf18df5=_0x26564d?'suggestion:'+_0x3dd2a8+':'+_0x26564d+':'+_0x2b43b0:'suggestion:'+_0x3dd2a8+':'+_0x2b43b0,_0x4bd75d=_0x10ded0['model']['markers']['getMarkersGroup'](_0xf18df5),_0x33694d=_0x10ded0['model']['markers']['get'](_0x1d5998),_0x28dc1c=this['_suggestions']['get'](_0x2b43b0);if(null!=_0x21b8c7['newRange']){'formatInline'==_0x3dd2a8&&(_0x33f1b3=_0x33f1b3||Ht(_0x21b8c7['newRange'],_0x1d5998,_0x5af6a4,_0x10ded0['model']['schema']));const _0x48ed9f='attribute'==_0x3dd2a8&&this['_isBlockAttribute'](_0x26564d['split']('|')[0x0]),_0xac3af8='attribute'==_0x3dd2a8&&this['_isInlineAttribute'](_0x26564d['split']('|')[0x0]);if(_0x21b8c7['newRange']['isCollapsed']||'$graveyard'==_0x21b8c7['newRange']['root']['rootName']||'formatBlock'==_0x3dd2a8&&!qt(_0x21b8c7['newRange'])||_0x48ed9f&&!qt(_0x21b8c7['newRange'])||_0xac3af8&&zt(_0x21b8c7['newRange'])||'deletion'==_0x3dd2a8&&zt(_0x21b8c7['newRange'])||_0x33694d&&Qt(_0x33694d,_0x4bd75d))_0x5af6a4['removeMarker'](_0x1d5998),_0x33f1b3=!0x0;else{if(!_0x28dc1c||!_0x28dc1c['isInContent'])continue;if(_0x21b8c7['newRange']&&_0x21b8c7['oldRange']&&_0x21b8c7['newRange']['isEqual'](_0x21b8c7['oldRange']))continue;_0x5c9082['add'](_0x28dc1c);}}}return _0x5c9082['size']>0x0&&(_0x33f1b3=!!this['_joinWithAdjacentSuggestions'](_0x5c9082)||_0x33f1b3),_0x33f1b3;}),_0x10ded0['model']['document']['registerPostFixer'](_0x2086b1=>{let _0x514886=!0x1;for(const _0x3c17c0 of _0x10ded0['model']['document']['differ']['getChanges']())if('insert'==_0x3c17c0['type'])for(const _0x3eab23 of this['_suggestions']['values']()){if(_0x3eab23['isMultiRange']||!_0x3eab23['isInContent'])continue;const _0x525b5e='formatBlock'==_0x3eab23['type'],_0x33ac1d=this['_getAttributeKey'](_0x3eab23),_0xb41fe2=_0x33ac1d&&this['_isBlockAttribute'](_0x33ac1d);if(!_0x525b5e&&!_0xb41fe2)continue;const _0x2ab883=_0x3eab23['getFirstRange']();if(_0x2ab883['start']['parent']!=_0x2ab883['end']['parent']&&!_0x2ab883['end']['isAtEnd']){const _0x47ea20=_0x10ded0['model']['createPositionAt'](_0x2ab883['start']['nodeAfter'],'end'),_0x5c7fdd=_0x10ded0['model']['createRange'](_0x2ab883['start'],_0x47ea20);_0x2086b1['updateMarker'](_0x3eab23['getFirstMarker'](),{'range':_0x5c7fdd}),_0x514886=!0x0;}}return _0x514886;}),_0x10ded0['model']['document']['registerPostFixer'](_0x251753=>this['_processAttributeChanges'](_0x251753)),_0x10ded0['model']['document']['registerPostFixer'](_0x228b38=>!_0x228b38['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x228b38)),_0x10ded0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x10ded0['model']['document']['on']('change:data',(_0x4023a5,_0x41e4d7)=>{if(!_0x41e4d7['isLocal']||_0x41e4d7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x15a53e=_0x10ded0['model']['document']['differ']['getChanges']();if(0x0==_0x15a53e['length'])return;const _0x3d8875=[],_0x1a7d98=_0x15a53e['filter'](_0x2ade19=>'attribute'==_0x2ade19['type']),_0x3c6030=_0x15a53e['filter'](_0x13b3bc=>'insert'==_0x13b3bc['type']&&'$text'!=_0x13b3bc['name']);for(const _0x3233c2 of _0x1a7d98)this['_isRegisteredAttribute'](_0x3233c2['attributeKey'])&&_0x3d8875['push']({'key':_0x3233c2['attributeKey'],'newValue':_0x3233c2['attributeNewValue'],'oldValue':_0x3233c2['attributeOldValue'],'range':Yt(_0x3233c2['range'],_0x10ded0['model'])});for(const _0x2efc90 of _0x3c6030){if('rename'!=_0x2efc90['action']&&'refresh'!=_0x2efc90['action'])continue;const _0x207b02=Zt(_0x2efc90['position']['nodeAfter'],_0x10ded0['model']),_0x3a61f0=_0x2efc90['before'];'rename'==_0x2efc90['action']&&_0x3d8875['push']({'key':m,'newValue':_0x2efc90['name'],'oldValue':_0x3a61f0['name'],'range':_0x207b02});for(const [_0x52865a,_0x3d7eee]of _0x3a61f0['attributes']){if(!this['_isRegisteredAttribute'](_0x52865a))continue;const _0x1266ce=_0x2efc90['attributes']['get'](_0x52865a);_0x3d7eee!==_0x1266ce&&_0x3d8875['push']({'key':_0x52865a,'newValue':_0x1266ce,'oldValue':_0x3d7eee,'range':_0x207b02});}for(const [_0x29c747,_0x293c02]of _0x2efc90['attributes'])this['_isRegisteredAttribute'](_0x29c747)&&(_0x3a61f0['attributes']['has'](_0x29c747)||_0x3d8875['push']({'key':_0x29c747,'newValue':_0x293c02,'oldValue':null,'range':_0x207b02}));}0x0!=_0x3d8875['length']&&_0x10ded0['model']['enqueueChange'](_0x41e4d7,_0x3cb9b0=>{const _0x83b34b=_0x46d86f();for(const {range:_0x1a6c0b,key:_0x4a4819,oldValue:_0x11ac82,newValue:_0x358cdf}of _0x3d8875)this['markAttributeChange'](_0x1a6c0b,_0x4a4819,_0x11ac82,_0x358cdf,{'groupId':_0x83b34b});this['_reduceExistingSuggestions'](_0x3cb9b0,_0x3d8875);});},{'priority':'lowest'}),_0x10ded0['model']['markers']['on']('update:suggestion',(_0x217077,_0x4c1e80,_0x527668)=>{if(null==_0x527668){const {id:_0x17de66}=this['_splitMarkerName'](_0x4c1e80['name']),_0x258731=this['_suggestions']['get'](_0x17de66);_0x258731&&_0x258731['addMarkerName'](_0x4c1e80['name']);}}),_0x10ded0['model']['document']['on']('change:data',()=>{const _0x723cd9=Array['from'](_0x10ded0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2644c3=>'suggestion'===this['_splitMarkerName'](_0x2644c3['name'])['group']);if(0x0===_0x723cd9['length'])return;_0x723cd9['sort']((_0x3e21b2,_0x19e1c5)=>{const _0x2769fd=_0x3e21b2['data']['oldRange'],_0x5e5e3d=_0x19e1c5['data']['oldRange'];return null===_0x2769fd&&null===_0x5e5e3d?0x0:null===_0x2769fd&&null!==_0x5e5e3d?-0x1:null!==_0x2769fd&&null===_0x5e5e3d?0x1:_0x2769fd['start']['isBefore'](_0x5e5e3d['start'])?-0x1:0x1;});const _0x4acb36=new Set(),_0x1f8b9c=new Set();for(const {name:_0x55c6a3,data:_0x2f0a25}of _0x723cd9){const {id:_0x5c050b}=this['_splitMarkerName'](_0x55c6a3);if(null===_0x2f0a25['oldRange']){const _0x402517=this['_handleNewSuggestionMarker'](_0x55c6a3);_0x1f8b9c['add'](_0x402517);}else{const _0x2214ee=this['_suggestions']['get'](_0x5c050b);null!==_0x2f0a25['newRange']||_0x2214ee['isInContent']?(_0x4acb36['add'](_0x2214ee['head']),_0x1f8b9c['add'](_0x2214ee)):this['_removeSuggestion'](_0x2214ee);}}_0x1f8b9c['size']>0x0&&this['_refreshSuggestionsChain'](_0x1f8b9c);for(const _0x34b6b0 of _0x4acb36)this['fire']('suggestionChanged',_0x34b6b0);}),_0x10ded0['model']['on']('applyOperation',(_0x5777e3,_0x3e483a)=>{const _0x28be4b=_0x3e483a[0x0];if(!this['_suggestions']['size'])return;if(!_0x28be4b['isDocumentOperation'])return;if(_0x28be4b['batch']['isUndo']||!_0x28be4b['batch']['isLocal'])return;let _0x265c05,_0x5eda82;switch(_0x28be4b['type']){case'insert':_0x265c05=_0x10ded0['model']['createPositionAt'](_0x28be4b['position']),_0x5eda82=_0x265c05['getShiftedBy'](_0x28be4b['howMany']);break;case'split':_0x265c05=_0x10ded0['model']['createPositionAt'](_0x28be4b['splitPosition']),_0x5eda82=_0x10ded0['model']['createPositionAt'](_0x28be4b['moveTargetPosition']);break;case'move':_0x265c05=_0x10ded0['model']['createPositionAt'](_0x28be4b['targetPosition']),_0x5eda82=_0x265c05['getShiftedBy'](_0x28be4b['howMany']);break;default:return;}const _0x4b5a15=_0x10ded0['model']['createRange'](_0x265c05,_0x5eda82);_0x10ded0['model']['change'](()=>{for(const {suggestion:_0x406cb2,meta:_0x274ffa}of this['_findSuggestions'](_0x4b5a15)){if(_0x406cb2['isMultiRange'])continue;if('formatInline'==_0x406cb2['type'])continue;const _0x5ba68b=this['_getAttributeKey'](_0x406cb2);if(_0x5ba68b&&this['_isBlockAttribute'](_0x5ba68b)&&'split'!=_0x28be4b['type'])continue;const _0x4e6235=_0x406cb2['data']&&_0x406cb2['data']['multipleBlocks'];('formatBlock'!=_0x406cb2['type']||'split'==_0x28be4b['type']&&!_0x4e6235)&&(_0x274ffa['containsRangeInObject']||'insertion'==_0x406cb2['type']&&_0x274ffa['isOwn']||_0x406cb2['getFirstRange']()['containsRange'](_0x4b5a15)&&this['_breakSuggestionMarker'](_0x406cb2,_0x265c05,_0x5eda82));}});},{'priority':'lowest'}),_0x10ded0['model']['on']('deleteContent',(_0x4cf290,_0x152017)=>{const _0x369f31=_0x152017[0x0],_0x149f26=_0x152017[0x1];if(_0x149f26&&_0x149f26['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x369f31['isCollapsed'])return;const _0x314f5e=_0x10ded0['model']['schema'],{start:_0x4ee586,end:_0x243033}=_0x369f31['getFirstRange'](),_0x2f0581=_0x4ee586['nodeAfter']&&_0x314f5e['isLimit'](_0x4ee586['nodeAfter'])?null:_0x314f5e['getNearestSelectionRange'](_0x4ee586,'forward'),_0x36403f=_0x243033['nodeBefore']&&_0x314f5e['isLimit'](_0x243033['nodeBefore'])?null:_0x314f5e['getNearestSelectionRange'](_0x243033,'backward'),_0x1580d2=_0x10ded0['model']['createRange'](_0x2f0581?_0x2f0581['start']:_0x4ee586,_0x36403f?_0x36403f['end']:_0x243033);_0x10ded0['model']['change'](_0x1591fc=>{this['markDeletion'](_0x1580d2);const _0x397397=_0x10ded0['model']['schema']['getNearestSelectionRange'](_0x1580d2['start']);_0x369f31['is']('documentSelection')?_0x1591fc['setSelection'](_0x397397):_0x369f31['setTo'](_0x397397);}),_0x4cf290['stop']();},{'priority':_0x49db['normal']+0xa}),_0x10ded0['model']['on']('insertContent',(_0x324520,_0x1d0b4f)=>{const _0x167cde=_0x1d0b4f[_0x1d0b4f['length']-0x1];_0x167cde&&_0x167cde['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x10ded0['model']['change'](()=>{let _0x574be6=_0x10ded0['model']['insertContent'](_0x1d0b4f[0x0],_0x1d0b4f[0x1],_0x1d0b4f[0x2],{'forceDefaultExecution':!0x0});if(!_0x574be6)return;_0x324520['return']=_0x574be6['clone']();const _0x69d086=_0x574be6['end']['nodeBefore'],_0x350388=_0x10ded0['model']['schema'];_0x69d086&&_0x350388['isBlock'](_0x69d086)&&!_0x350388['isObject'](_0x69d086)&&(_0x574be6=_0x10ded0['model']['createRange'](_0x574be6['start'],_0x10ded0['model']['createPositionAt'](_0x69d086,'end'))),this['markInsertion'](_0x574be6);}),_0x324520['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3e569c=new T(_0x10ded0,this['_suggestions']);_0x10ded0['commands']['add']('acceptSuggestion',_0x3e569c),this['enableCommand']('acceptSuggestion');const _0x1936b6=new O(_0x10ded0,this['_suggestions']);_0x10ded0['commands']['add']('discardSuggestion',_0x1936b6),this['enableCommand']('discardSuggestion'),_0x10ded0['commands']['add']('acceptAllSuggestions',new x(_0x10ded0,_0x3e569c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x10ded0['commands']['add']('discardAllSuggestions',new x(_0x10ded0,_0x1936b6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x10ded0['commands']['add']('acceptSelectedSuggestions',new E(_0x10ded0,_0x3e569c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x10ded0['commands']['add']('discardSelectedSuggestions',new E(_0x10ded0,_0x1936b6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x21f6f3=_0x10ded0['plugins']['get']('CommentsRepository');this['listenTo'](_0x21f6f3,'addComment',(_0x127128,{threadId:_0x5e6e27})=>{const _0x397dc9=this['_suggestions']['get'](_0x5e6e27);_0x397dc9&&_0x397dc9['commentThread']&&0x1===_0x397dc9['commentThread']['length']&&this['_updateSuggestionData'](_0x5e6e27,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x21f6f3,'removeComment',(_0x3d8a0f,{threadId:_0x481f99})=>{const _0x60d04c=this['_suggestions']['get'](_0x481f99);_0x60d04c&&_0x60d04c['commentThread']&&!_0x60d04c['commentThread']['length']&&this['_updateSuggestionData'](_0x481f99,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x532326){const _0x233cf7=_0x115ed3([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x4759e0=0x6b0f5e6f,_0x4e0a89=0x6b082ab7^_0x4759e0,_0x31135f=window[_0x115ed3([0x44,0x61,0x74,0x65])][_0x115ed3([0x6e,0x6f,0x77])](),_0x48f237=_0x532326[_0x115ed3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f41e3=new window[(_0x115ed3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x276d57=>{_0x48f237[_0x115ed3([0x6f,0x6e,0x63,0x65])](_0x115ed3([0x72,0x65,0x61,0x64,0x79]),_0x276d57);}),_0x354b4c={[_0x115ed3([0x6b,0x74,0x79])]:_0x115ed3([0x45,0x43]),[_0x115ed3([0x75,0x73,0x65])]:_0x115ed3([0x73,0x69,0x67]),[_0x115ed3([0x63,0x72,0x76])]:_0x115ed3([0x50,0x2d,0x32,0x35,0x36]),[_0x115ed3([0x78])]:_0x115ed3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x115ed3([0x79])]:_0x115ed3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x115ed3([0x61,0x6c,0x67])]:_0x115ed3([0x45,0x53,0x32,0x35,0x36])},_0x41dc2a=_0x48f237[_0x115ed3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x115ed3([0x67,0x65,0x74])](_0x115ed3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f7087(){let _0x24ed69,_0x27250b=null,_0x3926c9=null;try{if(_0x41dc2a==_0x115ed3([0x47,0x50,0x4c]))return _0x115ed3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24ed69=_0x3959e3(),!_0x24ed69)return _0x115ed3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24ed69[_0x115ed3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3926c9=_0x237317(_0x24ed69[_0x115ed3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24ed69[_0x115ed3([0x6a,0x74,0x69])])),await _0x5d807e()?_0x119b00()?_0x15b54f()?_0x115ed3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x114da8()?(_0x24ed69[_0x115ed3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x115ed3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27250b=_0x4cc0c9(_0x115ed3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24ed69[_0x115ed3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x115ed3([0x74,0x72,0x69,0x61,0x6c])&&(_0x27250b=_0x4cc0c9(_0x115ed3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13c813()):_0x115ed3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x115ed3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x115ed3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x115ed3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15b54f(){const _0x5159fa=[_0x115ed3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x115ed3([0x74,0x72,0x69,0x61,0x6c])][_0x115ed3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ed69[_0x115ed3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31135f/0x3e8:0xe10*_0x4e0a89;return _0x24ed69[_0x115ed3([0x65,0x78,0x70])]<_0x5159fa;}function _0x119b00(){const _0x2a2ac0=_0x24ed69[_0x115ed3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2a2ac0)return!0x1;if(_0x2a2ac0[_0x115ed3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115ed3([0x2a])))return!0x0;if(_0x2a2ac0[_0x115ed3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115ed3([0x54,0x43])))return!0x0;if(_0x2a2ac0[_0x115ed3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115ed3([0x52,0x54,0x43]))){if(_0x156a7a())return!0x0;if(_0x53afbb()||_0x2f0022())return!0x0;}return!0x1;}function _0x114da8(){const _0x3d4a36=_0x24ed69[_0x115ed3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d4a36||0x0==_0x3d4a36[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xae33f4}=new URL(window[_0x115ed3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d4a36[_0x115ed3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xae33f4))return!0x0;const _0x477bc0=_0xae33f4[_0x115ed3([0x73,0x70,0x6c,0x69,0x74])](_0x115ed3([0x2e]));return _0x3d4a36[_0x115ed3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ad149=>_0x2ad149[_0x115ed3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115ed3([0x2a])))[_0x115ed3([0x6d,0x61,0x70])](_0x48f199=>_0x48f199[_0x115ed3([0x73,0x70,0x6c,0x69,0x74])](_0x115ed3([0x2e])))[_0x115ed3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x985d51=>_0x985d51[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x477bc0[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x115ed3([0x6d,0x61,0x70])](_0x543831=>Array(_0x477bc0[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x543831[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x115ed3([0x66,0x69,0x6c,0x6c])](_0x543831[0x0]===_0x115ed3([0x2a])?_0x115ed3([0x2a]):'')[_0x115ed3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x543831))[_0x115ed3([0x73,0x6f,0x6d,0x65])](_0x2ab565=>_0x477bc0[_0x115ed3([0x65,0x76,0x65,0x72,0x79])]((_0x19d1b7,_0x2c56a6)=>_0x2ab565[_0x2c56a6]===_0x19d1b7||_0x2ab565[_0x2c56a6]===_0x115ed3([0x2a])));}function _0x13c813(){return _0x27250b&&_0x3926c9?new window[(_0x115ed3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf10349,_0x5b25dd)=>{_0x27250b[_0x115ed3([0x74,0x68,0x65,0x6e])](_0xf10349,_0x5b25dd),_0x3926c9[_0x115ed3([0x74,0x68,0x65,0x6e])](_0x87a3a4=>{_0x87a3a4!=_0x115ed3([0x56,0x61,0x6c,0x69,0x64])&&_0xf10349(_0x87a3a4);},_0x5b25dd);}):_0x27250b||_0x3926c9||_0x115ed3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x237317(_0x26f34c,_0x484a28){return new window[(_0x115ed3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39be2c=>{if(_0xeccf9f())return _0x39be2c(_0x115ed3([0x56,0x61,0x6c,0x69,0x64]));_0xb15c8e(),_0x48f237[_0x115ed3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x115ed3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c4e8e=!0x1;const _0x45f5e8=_0x46d86f();function _0x765f8b(_0x4cfc57){return!!_0x4cfc57&&(typeof _0x4cfc57===_0x115ed3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4cfc57===_0x115ed3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4cfc57[_0x115ed3([0x74,0x68,0x65,0x6e])]===_0x115ed3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4cfc57[_0x115ed3([0x63,0x61,0x74,0x63,0x68])]===_0x115ed3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc784f4(_0x8467fd){_0x437a20(_0x8467fd)[_0x115ed3([0x74,0x68,0x65,0x6e])](_0xb20028=>{if(!_0xb20028||_0xb20028[_0x115ed3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x115ed3([0x6f,0x6b]))return _0x115ed3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d037a(_0x3b7921(_0x45f5e8+_0x484a28))!=_0xb20028[_0x115ed3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x115ed3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x115ed3([0x56,0x61,0x6c,0x69,0x64]);})[_0x115ed3([0x74,0x68,0x65,0x6e])](_0x33e2d2=>(_0xbf3d1a(),_0x33e2d2),()=>{const _0x5bbb58=_0x7bbc45();return null==_0x5bbb58?(_0xbf3d1a(),_0x115ed3([0x56,0x61,0x6c,0x69,0x64])):_0x115ed3(_0x31135f-_0x5bbb58>(0x4f03da6f^_0x4759e0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x115ed3([0x74,0x68,0x65,0x6e])](_0x39be2c)[_0x115ed3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39be2c(_0x115ed3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x168d99=0x6b39b0ef^_0x4759e0;function _0xbf3d1a(){const _0x1fda8c=_0x115ed3([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d037a(_0x3b7921(_0x26f34c)),_0x3279b7=_0x3c4ff9(_0x2d037a(window[_0x115ed3([0x4d,0x61,0x74,0x68])][_0x115ed3([0x63,0x65,0x69,0x6c])](_0x31135f/_0x168d99)));window[_0x115ed3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x115ed3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fda8c,_0x3279b7);}function _0x7bbc45(){const _0x5f49e0=_0x115ed3([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d037a(_0x3b7921(_0x26f34c)),_0x95da44=window[_0x115ed3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x115ed3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f49e0);return _0x95da44?window[_0x115ed3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c4ff9(_0x95da44),0x10)*_0x168d99:null;}function _0x437a20(_0x21c6c7){return new window[(_0x115ed3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17e127,_0x113556)=>{_0x21c6c7[_0x115ed3([0x74,0x68,0x65,0x6e])](_0x17e127,_0x113556),window[_0x115ed3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x113556,0x6b0e8aaf^_0x4759e0);});}}_0x48f237[_0x115ed3([0x6f,0x6e])](_0x115ed3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5450e6,_0x122eea)=>{if(_0x122eea[0x0]!=_0x26f34c)return _0x39be2c(_0x115ed3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x122eea[0x1]={..._0x122eea[0x1],[_0x115ed3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45f5e8};},{[_0x115ed3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x115ed3([0x68,0x69,0x67,0x68])}),_0x48f237[_0x115ed3([0x6f,0x6e])](_0x115ed3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e63ec=>{_0x765f8b(_0x3e63ec[_0x115ed3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c4e8e=!0x0,_0xc784f4(_0x3e63ec[_0x115ed3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x115ed3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x115ed3([0x6c,0x6f,0x77])}),_0x1f41e3[_0x115ed3([0x74,0x68,0x65,0x6e])](()=>{_0x3c4e8e||_0x39be2c(_0x115ed3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xeccf9f(){return _0x48f237[_0x115ed3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x115ed3([0x76,0x69,0x65,0x77])][_0x115ed3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x115ed3([0x61,0x75,0x74,0x6f]);}function _0xb15c8e(){_0x48f237[_0x115ed3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x115ed3([0x76,0x69,0x65,0x77])][_0x115ed3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x115ed3([0x61,0x75,0x74,0x6f]);}}function _0x4cc0c9(_0x19f99c){const _0x28adab=[new window[(_0x115ed3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7278=>setTimeout(_0x4e7278,0x6b0660a3^_0x4759e0)),_0x1f41e3[_0x115ed3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x115ed3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548ef4=>{let _0x26cd0e=0x0;_0x48f237[_0x115ed3([0x6d,0x6f,0x64,0x65,0x6c])][_0x115ed3([0x6f,0x6e])](_0x115ed3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x690d72,_0xf75b53)=>{_0xf75b53[0x0][_0x115ed3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26cd0e++,_0x26cd0e==(0x6b0f5f97^_0x4759e0)&&(_0x548ef4(),_0x690d72[_0x115ed3([0x6f,0x66,0x66])]());});}))];return window[_0x115ed3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x115ed3([0x72,0x61,0x63,0x65])](_0x28adab)[_0x115ed3([0x74,0x68,0x65,0x6e])](()=>_0x19f99c);}async function _0x517e03(){await _0x1f41e3,_0x48f237[_0x115ed3([0x6d,0x6f,0x64,0x65,0x6c])][_0x115ed3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c4b9c,_0x48f237[_0x115ed3([0x6d,0x6f,0x64,0x65,0x6c])][_0x115ed3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c4b9c,_0x48f237[_0x115ed3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x115ed3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x156a7a(){return _0x1e2ad7(_0x115ed3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x33b342(_0x115ed3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x115ed3([0x73,0x74,0x61,0x74,0x65])]==_0x115ed3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x53afbb(){return _0x1e2ad7(_0x115ed3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2f0022(){return _0x1e2ad7(_0x115ed3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f6ebc(_0x166755){const _0x20b75f=_0x3ab619();_0x48f237[_0x20b75f]=_0x115ed3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x166755,_0x166755!=_0x115ed3([0x56,0x61,0x6c,0x69,0x64])&&_0x517e03();}function _0x3ab619(){const _0x2ed34a=window[_0x115ed3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x115ed3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x115ed3([0x6e,0x6f,0x77])]())[_0x115ed3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x115ed3([0x2e]),'');let _0x3121cf=_0x115ed3([0x67]);for(let _0x206f3b=0x0;_0x206f3b<_0x2ed34a[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x206f3b+=0x2){let _0x3d3660=window[_0x115ed3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ed34a[_0x115ed3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x206f3b,_0x206f3b+0x2));_0x3d3660>=_0x233cf7[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d3660-=_0x233cf7[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3121cf+=_0x233cf7[_0x3d3660];}return _0x3121cf;}function _0x3959e3(){const _0x2c0c6f=_0x41dc2a[_0x115ed3([0x73,0x70,0x6c,0x69,0x74])](_0x115ed3([0x2e]));if(0x3!=_0x2c0c6f[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x593989(_0x2c0c6f[0x1]);function _0x593989(_0x2b87b9){const _0x124aee=_0x224af5(_0x2b87b9);return _0x124aee&&_0x351bec()?_0x124aee:null;function _0x351bec(){const _0x27fd46=_0x124aee[_0x115ed3([0x6a,0x74,0x69])],_0x1a6813=window[_0x115ed3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27fd46[_0x115ed3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27fd46[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2697b7={..._0x124aee,[_0x115ed3([0x6a,0x74,0x69])]:_0x27fd46[_0x115ed3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27fd46[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2697b7[_0x115ed3([0x76,0x63])],_0x3b7921(_0x2697b7)==_0x1a6813;}}}async function _0x5d807e(){let _0x1f694a=!0x0;try{const _0x4c6829=_0x41dc2a[_0x115ed3([0x73,0x70,0x6c,0x69,0x74])](_0x115ed3([0x2e])),[_0x2c3580,_0xe16b5c,_0xf2b737]=_0x4c6829;return _0x35c13f(_0x2c3580),await _0x2d929e(_0x2c3580,_0xe16b5c,_0xf2b737),_0x1f694a;}catch{return!0x1;}function _0x35c13f(_0x3dedc7){const _0x973473=_0x224af5(_0x3dedc7);_0x973473&&_0x973473[_0x115ed3([0x61,0x6c,0x67])]==_0x115ed3([0x45,0x53,0x32,0x35,0x36])||(_0x1f694a=!0x1);}async function _0x2d929e(_0x108848,_0x2721f0,_0x304df7){const _0x512b9a=window[_0x115ed3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x115ed3([0x66,0x72,0x6f,0x6d])](_0x1f00d8(_0x304df7),_0x2a568b=>_0x2a568b[_0x115ed3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x76a522=new window[(_0x115ed3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x115ed3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x108848+_0x115ed3([0x2e])+_0x2721f0),_0x5617dd=window[_0x115ed3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x115ed3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5617dd)return;const _0x3b3ebc=await _0x5617dd[_0x115ed3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x115ed3([0x6a,0x77,0x6b]),_0x354b4c,{[_0x115ed3([0x6e,0x61,0x6d,0x65])]:_0x115ed3([0x45,0x43,0x44,0x53,0x41]),[_0x115ed3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x115ed3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x115ed3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5617dd[_0x115ed3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x115ed3([0x6e,0x61,0x6d,0x65])]:_0x115ed3([0x45,0x43,0x44,0x53,0x41]),[_0x115ed3([0x68,0x61,0x73,0x68])]:{[_0x115ed3([0x6e,0x61,0x6d,0x65])]:_0x115ed3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b3ebc,_0x512b9a,_0x76a522)||(_0x1f694a=!0x1);}}function _0x224af5(_0x3bbc2d){return _0x3bbc2d[_0x115ed3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x115ed3([0x65,0x79]))?JSON[_0x115ed3([0x70,0x61,0x72,0x73,0x65])](_0x1f00d8(_0x3bbc2d)):null;}function _0x1f00d8(_0x158d7e){return window[_0x115ed3([0x61,0x74,0x6f,0x62])](_0x158d7e[_0x115ed3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x115ed3([0x2b]))[_0x115ed3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x115ed3([0x2f])));}function _0x3b7921(_0x39a79d){let _0x5da4ed=0x1505;function _0x4e94eb(_0x51d985){for(let _0x3fb492=0x0;_0x3fb492<_0x51d985[_0x115ed3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fb492++){const _0x3b785f=_0x51d985[_0x115ed3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fb492);_0x5da4ed=(_0x5da4ed<<0x5)+_0x5da4ed+_0x3b785f,_0x5da4ed&=_0x5da4ed;}}function _0x34ddc3(_0x55fd77){Array[_0x115ed3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55fd77)?_0x55fd77[_0x115ed3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34ddc3):_0x55fd77&&typeof _0x55fd77==_0x115ed3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x115ed3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55fd77)[_0x115ed3([0x73,0x6f,0x72,0x74])]()[_0x115ed3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21f881,_0x3d2d6b])=>{_0x4e94eb(_0x21f881),_0x34ddc3(_0x3d2d6b);}):_0x4e94eb(window[_0x115ed3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55fd77));}return _0x34ddc3(_0x39a79d),_0x5da4ed>>>0x0;}function _0x2d037a(_0x5153d7){return _0x5153d7[_0x115ed3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x115ed3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x115ed3([0x30]));}function _0x3c4ff9(_0x1a31ad){return _0x1a31ad[_0x115ed3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x115ed3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x115ed3([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e2ad7(_0x1881cc){return _0x48f237[_0x115ed3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x115ed3([0x68,0x61,0x73])](_0x1881cc);}function _0x33b342(_0x26fb7c){return _0x48f237[_0x115ed3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x115ed3([0x67,0x65,0x74])](_0x26fb7c);}function _0x5c4b9c(){}function _0x115ed3(_0x44e6de){return _0x44e6de['map'](_0x230383=>String['fromCharCode'](_0x230383))['join']('');}_0x2f6ebc(await _0x1f7087());}(this);}set['adapter'](_0x20e34c){if(this['_adapter'])throw new _0x1aff0b('track-changes-adapter-already-set',this);this['_adapter']=_0x20e34c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a3852=!0x1,toJSON:_0x2730c2=!0x1}={}){const _0x50d996=[];for(const _0x35d731 of this['_suggestions']['values']())_0x2a3852&&!_0x35d731['isInContent']||_0x50d996['push'](_0x35d731);return _0x2730c2?_0x50d996['map'](_0x567f05=>_0x567f05['toJSON']()):_0x50d996;}['getSuggestion'](_0x4aa8bc){const _0x1966dd=this['_suggestions']['get'](_0x4aa8bc);if(!_0x1966dd)throw new _0x1aff0b('track-changes-suggestion-not-found',this);return _0x1966dd;}['hasSuggestion'](_0x5173cf){return this['_suggestions']['has'](_0x5173cf);}['addSuggestionData'](_0x5ce700){const {authorId:_0x43694a,id:_0x3e6d47,originalSuggestionId:_0x1c801d,attributes:_0x2b956b}=_0x5ce700,[_0x4087a9,_0x2a9985]=_0x5ce700['type']['split'](':'),_0x1b4713=this['_suggestions']['get'](_0x3e6d47)||this['_createSuggestion'](_0x4087a9,_0x2a9985,_0x3e6d47,_0x43694a,_0x2b956b,_0x1c801d);if(this['_addThreadToSuggestion'](_0x1b4713),this['_checkSuggestionCorrectness'](_0x1b4713,_0x4087a9,_0x2a9985||null,_0x43694a),_0x1b4713['createdAt']=_0x5ce700['createdAt'],_0x1b4713['_isDataLoaded']=!0x0,_0x2b956b&&_0x2b956b['@external']){const _0x28c3f5=_0x2b956b['@external'],_0x4f8bb3=this['_getExternalAuthor'](_0x28c3f5['authorName']);_0x1b4713['authoredAt']=_0x28c3f5['createdAt'],_0x1b4713['author']=_0x4f8bb3,_0x1b4713['isExternal']=!0x0;}else _0x1b4713['authoredAt']=_0x5ce700['createdAt'];switch(_0x5ce700['data']&&(_0x1b4713['data']=_0x5ce700['data']),_0x5ce700['attributes']&&(_0x1b4713['attributes']=_0x5ce700['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1b4713['_saved']=!0x0),this['_suggestionState']['get'](_0x1b4713)){case'notReady':this['_suggestionState']['set'](_0x1b4713,'dataReady');break;case'markerReady':_0x1b4713['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1b4713])),this['_refreshSuggestionsChain'](new Set([_0x1b4713])),this['_suggestionState']['set'](_0x1b4713,'ready'),this['fire']('suggestionLoaded',_0x1b4713)):this['_suggestionState']['set'](_0x1b4713,'removed');}return _0x1b4713;}['acceptSuggestion'](_0x3ce436){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3eadb1 of _0x3ce436['getAllAdjacentSuggestions']())_0x3eadb1['accept']();});});}['discardSuggestion'](_0x514dd9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x24a391 of _0x514dd9['getAllAdjacentSuggestions']())_0x24a391['discard']();});});}['enableCommand'](_0x481b4e,_0x417c0e){const _0x5761d1=this['editor']['commands']['get'](_0x481b4e);if(!_0x5761d1)throw new _0x1aff0b('track-changes-command-not-found',this,{'commandName':_0x481b4e});if(this['_enabledCommands']['has'](_0x5761d1))throw new _0x1aff0b('track-changes-enable-command-twice',this,{'commandName':_0x481b4e});this['_enabledCommands']['add'](_0x5761d1),_0x417c0e&&_0x5761d1['on']('execute',(_0xbc104,_0x523a60)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x523a60['length']>0x0&&_0x523a60[_0x523a60['length']-0x1]&&_0x523a60[_0x523a60['length']-0x1]['forceDefaultExecution']?_0x523a60['pop']():(_0xbc104['return']=_0x417c0e((..._0x296eb2)=>_0x5761d1['execute'](..._0x296eb2,{'forceDefaultExecution':!0x0}),..._0x523a60),_0xbc104['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1a390f){let _0x3d4fe1,_0x3b8742;const _0x15f481=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3d4fe1=_0x1a390f();}catch(_0x3a6302){_0x3b8742=_0x3a6302;}return _0x15f481||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3b8742&&_0x1aff0b['rethrowUnexpectedError'](_0x3b8742,this),_0x3d4fe1;}['markInsertion'](_0x508a76,_0x44cc8d=null,_0x2a4f10={}){if(_0x508a76['isCollapsed'])return null;const _0xf1a305=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2a4f10['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2f6aba,meta:_0x3cd67a}of this['_findSuggestions'](_0x508a76,'insertion'))if(_0x3cd67a['isOwn']){if(!_0x3cd67a['isNextTo']){if(_0x3cd67a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x2f6aba,_0x2a4f10))continue;return _0x2f6aba;}if(ie(_0x2f6aba,_0x2a4f10))return _0x2f6aba;this['_breakSuggestionMarker'](_0x2f6aba,_0x508a76['start'],_0x508a76['end']);break;}if(_0x44cc8d==_0x2f6aba['subType']&&ie(_0x2f6aba,_0x2a4f10)){const _0x19c5a2=_0x2f6aba['getFirstRange']();return _0x19c5a2['start']['isEqual'](_0x508a76['end'])?this['_setSuggestionRange'](_0x2f6aba,this['_model']['createRange'](_0x508a76['start'],_0x19c5a2['end'])):this['_setSuggestionRange'](_0x2f6aba,this['_model']['createRange'](_0x19c5a2['start'],_0x508a76['end'])),_0x2f6aba;}}const _0x14feb2=_0x46d86f(),_0x4a450e=_0xf1a305['id'],_0x30db7a=_0x44cc8d?'insertion:'+_0x44cc8d:'insertion',_0x1fb17d=this['_setSuggestionData']({'id':_0x14feb2,'type':_0x30db7a,'createdAt':new Date(),'authorId':_0x4a450e,'attributes':_0x2a4f10});return this['_addSuggestionMarker'](_0x30db7a,_0x14feb2,_0x4a450e,_0x508a76),_0x1fb17d;}['markMultiRangeInsertion'](_0x16501b,_0x81055a='multi',_0x3d0c9f={}){const _0x5371d8=this['editor']['plugins']['get']('Users')['me'],_0x1c48ef=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x81055a,'join');this['_trackingSessionId']&&(_0x3d0c9f['trackingSessionId']=this['_trackingSessionId']);for(const _0x4787e1 of this['getSuggestions']())if(_0x4787e1['author']['id']==_0x5371d8['id']&&'insertion'==_0x4787e1['type']&&_0x4787e1['subType']==_0x81055a&&ie(_0x4787e1,_0x3d0c9f)&&(_0x1c48ef(_0x4787e1['getRanges'](),_0x16501b)||_0x1c48ef(_0x16501b,_0x4787e1['getRanges']()))){for(const _0xa031f8 of _0x16501b)_0x4787e1['addRange'](_0xa031f8);return _0x4787e1;}for(const {suggestion:_0x30459b,meta:_0x4fef44}of this['_findSuggestions'](_0x16501b,'insertion')){if(!_0x4fef44['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4fef44['containsRangeInObject'])continue;if(!ie(_0x30459b,_0x3d0c9f))continue;let _0x16ed03=!0x0;for(const _0x55418b of _0x30459b['getRanges']())for(const _0x398de3 of _0x16501b)if(!_0x55418b['containsRange'](_0x398de3)){_0x16ed03=!0x1;break;}if(_0x16ed03)return _0x30459b;}const _0x50fc5e=_0x46d86f(),_0x4607d1=_0x5371d8['id'],_0x3cc4ab='insertion:'+_0x81055a,_0x25d031=this['_setSuggestionData']({'id':_0x50fc5e,'type':_0x3cc4ab,'createdAt':new Date(),'authorId':_0x4607d1,'attributes':_0x3d0c9f});for(const _0x5f2a02 of _0x16501b)this['_addSuggestionMarker'](_0x3cc4ab,_0x50fc5e,_0x4607d1,_0x5f2a02,R['getMultiRangeId']());return _0x25d031;}['markInlineFormat'](_0x51e033,_0x1ef4b5,_0xbc427a=null,_0x9669e8={}){if(_0xbc427a=_0xbc427a||Wt(_0x1ef4b5),_0x51e033['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x9669e8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2b5eb8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xbc427a,'accept');return this['forceDefaultExecution'](()=>_0x2b5eb8([_0x51e033],_0x1ef4b5,_0x9669e8)),null;}const _0x5b2427=this['editor']['plugins']['get']('Users')['me'],_0x3b0f59=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x38c9d0,meta:_0x450459}of this['_findSuggestions'](_0x51e033,'insertion'))_0x450459['isOwn']&&!_0x450459['isInsideObject']&&_0x3b0f59['push'](..._0x38c9d0['getRanges']());}const _0x4dea01=function(_0x57490e,_0x4f3ceb){const _0x3f54a9=[];for(const _0x2edcf5 of _0x4f3ceb){const _0x48bb36=_0x57490e['getIntersection'](_0x2edcf5);_0x48bb36&&_0x3f54a9['push'](_0x48bb36);}return _0x3f54a9;}(_0x51e033,_0x3b0f59),_0x80059c=function(_0x5b9f41,_0x468d98){const _0x32f42e=[_0x5b9f41];for(const _0x221572 of _0x468d98){let _0x20665f=0x0;for(;_0x20665f<_0x32f42e['length'];){const _0x28ba65=_0x32f42e[_0x20665f]['getDifference'](_0x221572);_0x32f42e['splice'](_0x20665f,0x1,..._0x28ba65),_0x20665f+=_0x28ba65['length'];}}return _0x32f42e;}(_0x51e033,_0x3b0f59);_0x4dea01['length']&&this['_model']['change'](()=>{for(const _0x1e9f51 of _0x4dea01){const _0x3f7a08=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xbc427a,'accept');this['forceDefaultExecution'](()=>_0x3f7a08([_0x1e9f51],_0x1ef4b5,_0x9669e8));}});for(const _0x2fbc00 of _0x80059c){let _0x5654ae=null,_0x1ff33a=_0x2fbc00['start'],_0x59bba1=_0x2fbc00['end'];for(const {suggestion:_0x493efa,meta:_0x2c40c8}of this['_findSuggestions'](_0x2fbc00,'formatInline')){if(!_0x2c40c8['isOwn'])continue;if(_0x493efa['subType']!=_0xbc427a)continue;if(!ie(_0x493efa,_0x9669e8))continue;const _0x12ecfa=_0x493efa['getFirstRange']();if(_0x12ecfa['containsRange'](_0x2fbc00,!0x0))return null;_0x1ff33a=_0x1ff33a['isBefore'](_0x12ecfa['start'])?_0x1ff33a:_0x12ecfa['start'],_0x59bba1=_0x59bba1['isAfter'](_0x12ecfa['end'])?_0x59bba1:_0x12ecfa['end'],_0x5654ae?_0x12ecfa['start']['isBefore'](_0x5654ae['getFirstRange']()['start'])?(_0x5654ae['removeMarkers'](),_0x5654ae=_0x493efa):_0x493efa['removeMarkers']():_0x5654ae=_0x493efa;}const _0x3f4988=this['_model']['createRange'](_0x1ff33a,_0x59bba1);if(_0x5654ae)this['_setSuggestionRange'](_0x5654ae,_0x3f4988);else{const _0x217d7e=_0x46d86f(),_0x26c55b=_0x5b2427['id'];this['_setSuggestionData']({'id':_0x217d7e,'type':'formatInline:'+_0xbc427a,'data':_0x1ef4b5,'createdAt':new Date(),'authorId':_0x26c55b,'attributes':_0x9669e8}),this['_addSuggestionMarker']('formatInline:'+_0xbc427a,_0x217d7e,_0x26c55b,_0x3f4988);}}return null;}['markBlockFormat'](_0x11c1f4,_0x38fe1a,_0x2db580=[],_0x2d31b1=null,_0x50fb73={}){_0x38fe1a['formatGroupId']||(_0x38fe1a['formatGroupId']=_0x38fe1a['commandName']),_0x38fe1a['multipleBlocks']=_0x11c1f4['is']('range'),_0x2d31b1=_0x2d31b1||Wt(_0x38fe1a);const _0x5ab736=_0x2db580['map'](_0x14f510=>Zt(_0x14f510,this['_model'])),_0x250a13=_0x11c1f4['is']('range')?_0x11c1f4:Zt(_0x11c1f4,this['_model']);if(this['_trackingSessionId']&&(_0x50fb73['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3baef1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d31b1,'accept');return this['forceDefaultExecution'](()=>_0x3baef1([_0x250a13],_0x38fe1a,_0x50fb73)),null;}_0x5ab736['push'](_0x250a13);let _0x5700ad=!0x0;for(const _0x5e6c20 of _0x5ab736)if(!this['_rangeIsInLocalUserInsertion'](_0x5e6c20)){_0x5700ad=!0x1;break;}if(_0x5700ad&&'always'!==this['_trackFormatChanges']){const _0x15af59=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d31b1,'accept');return this['forceDefaultExecution'](()=>_0x15af59([_0x250a13],_0x38fe1a,_0x50fb73)),null;}let _0x37821a=null,_0x240ec2=_0x250a13['start'],_0x7323a3=_0x250a13['end'];for(const {suggestion:_0x1a6aa6,meta:_0x4c691f}of this['_findSuggestions'](_0x250a13,'formatBlock')){if(!_0x4c691f['isOwn'])continue;if(_0x4c691f['isNextTo']||_0x4c691f['containsRangeInObject']||_0x4c691f['isInsideObject'])continue;if(_0x1a6aa6['data']['formatGroupId']!=_0x38fe1a['formatGroupId'])continue;if(!ie(_0x1a6aa6,_0x50fb73))continue;const _0x2cdea0=_0x1a6aa6['getFirstRange']();if(_0x1a6aa6['subType']==_0x2d31b1){if(_0x2cdea0['containsRange'](_0x250a13,!0x0))return null;_0x240ec2=_0x240ec2['isBefore'](_0x2cdea0['start'])?_0x240ec2:_0x2cdea0['start'],_0x7323a3=_0x7323a3['isAfter'](_0x2cdea0['end'])?_0x7323a3:_0x2cdea0['end'],_0x37821a?_0x2cdea0['start']['isBefore'](_0x37821a['getFirstRange']()['start'])?(_0x37821a['removeMarkers'](),_0x37821a=_0x1a6aa6):_0x1a6aa6['removeMarkers']():_0x37821a=_0x1a6aa6;}else{const _0x4c5946=_0x250a13['getIntersection'](_0x2cdea0);this['_cutOutSuggestionMarker'](_0x1a6aa6,_0x4c5946);}}const _0x5701cc=this['editor']['plugins']['get']('Users')['me'],_0x5d3e90=_0x46d86f(),_0x4337ec=_0x5701cc['id'];if(_0x37821a)return this['_setSuggestionRange'](_0x37821a,this['_model']['createRange'](_0x240ec2,_0x7323a3)),_0x37821a;{const _0x4c6af5=this['_setSuggestionData']({'id':_0x5d3e90,'type':'formatBlock:'+_0x2d31b1,'data':_0x38fe1a,'createdAt':new Date(),'authorId':_0x4337ec,'attributes':_0x50fb73});return this['_addSuggestionMarker']('formatBlock:'+_0x2d31b1,_0x5d3e90,_0x4337ec,this['_model']['createRange'](_0x240ec2,_0x7323a3)),_0x4c6af5;}}['markMultiRangeBlockFormat'](_0x550e2d,_0xe62f37,_0x1c6b4e=[],_0x1f5a8b=null,_0x5168ed={}){_0xe62f37['formatGroupId']||(_0xe62f37['formatGroupId']=_0xe62f37['commandName']);const _0x5db585=_0x550e2d[0x0];_0xe62f37['multipleBlocks']=_0x5db585['is']('range'),_0x1f5a8b=_0x1f5a8b||Wt(_0xe62f37);const _0x5f4613=_0x1c6b4e['map'](_0x2385bb=>Zt(_0x2385bb,this['_model'])),_0x8f0e5d=_0x5db585['is']('range')?_0x550e2d:_0x550e2d['map'](_0x2b7779=>Zt(_0x2b7779,this['_model']));if(this['_trackingSessionId']&&(_0x5168ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x247965=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5a8b,'accept');return this['forceDefaultExecution'](()=>_0x247965(_0x8f0e5d,_0xe62f37,_0x5168ed)),null;}_0x5f4613['push'](..._0x8f0e5d);let _0x599094=!0x0;for(const _0x1e852a of _0x5f4613)if(!this['_rangeIsInLocalUserInsertion'](_0x1e852a)){_0x599094=!0x1;break;}if(_0x599094&&'always'!==this['_trackFormatChanges']){const _0x1a227e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5a8b,'accept');return this['forceDefaultExecution'](()=>_0x1a227e(_0x8f0e5d,_0xe62f37,_0x5168ed)),null;}const _0x23e0b6=this['editor']['plugins']['get']('Users')['me'];for(const _0x362003 of this['getSuggestions']()){const _0x543f7c=_0x362003['data'];if(_0x362003['author']['id']!=_0x23e0b6['id'])continue;if('formatBlock'!=_0x362003['type']||_0x543f7c['formatGroupId']!=_0xe62f37['formatGroupId'])continue;if(!ie(_0x362003,_0x5168ed))continue;const _0x4b24a9=_0x362003['subType']==_0x1f5a8b;for(let _0x32a669=0x0;_0x32a669<_0x8f0e5d['length'];_0x32a669++){const _0xbd47e4=_0x8f0e5d[_0x32a669];for(const _0x121047 of _0x362003['getMarkers']()){const _0x5efd1c=_0x121047['getRange']();if(_0xbd47e4['isEqual'](_0x5efd1c)){_0x4b24a9?(_0x8f0e5d['splice'](_0x32a669,0x1),_0x32a669--):_0x362003['removeMarker'](_0x121047['name']);break;}}}}if(0x0==_0x8f0e5d['length'])return null;const _0x164cf2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f5a8b,'join');for(const _0x1fc733 of this['getSuggestions']()){const _0x4239c7=_0x1fc733['data'];if(_0x1fc733['author']['id']==_0x23e0b6['id']&&('formatBlock'==_0x1fc733['type']&&_0x4239c7['formatGroupId']==_0xe62f37['formatGroupId']&&_0x1fc733['subType']==_0x1f5a8b&&ie(_0x1fc733,_0x5168ed)&&(_0x164cf2(_0x1fc733['getRanges'](),_0x8f0e5d)||_0x164cf2(_0x8f0e5d,_0x1fc733['getRanges']())))){for(const _0xb0f2bd of _0x8f0e5d)_0x1fc733['addRange'](_0xb0f2bd);return _0x1fc733;}}const _0x26dea2=_0x46d86f(),_0x810c3f=_0x23e0b6['id'],_0x7d503d='formatBlock:'+_0x1f5a8b,_0x26e4db=this['_setSuggestionData']({'id':_0x26dea2,'type':_0x7d503d,'data':_0xe62f37,'createdAt':new Date(),'authorId':_0x810c3f,'attributes':_0x5168ed});for(const _0x4ce7bc of _0x8f0e5d)this['_addSuggestionMarker'](_0x7d503d,_0x26dea2,_0x810c3f,_0x4ce7bc,R['getMultiRangeId']());return _0x26e4db;}['markDeletion'](_0x10b07b,_0x25582e=null,_0x49701c={}){if(_0x10b07b['isCollapsed'])return null;const _0x51acd1=this['editor']['plugins']['get']('Users')['me'],_0x4244b6=new _0x3cf104(_0x10b07b['start'],_0x10b07b['end']);this['_trackingSessionId']&&(_0x49701c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1cb234,meta:_0x3264db}of this['_findSuggestions'](_0x4244b6,'insertion'))if(_0x3264db['isOwn']&&!_0x3264db['isNextTo']){if(_0x1cb234['isMultiRange']){const _0x4b7710=_0x1cb234['getRanges']()['filter'](_0x87e7d8=>'$graveyard'!=_0x87e7d8['root']['rootName']);_0x4b7710['every'](_0xa751df=>_0x4244b6['containsRange'](_0xa751df,!0x0))&&_0x1cb234['discard']();if(_0x4b7710['some'](_0x4e2959=>_0x4e2959['containsRange'](_0x4244b6,!0x0))){const _0x5430c6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25582e,'accept');return this['forceDefaultExecution'](()=>_0x5430c6([_0x4244b6],null,_0x49701c)),null;}}else{const _0x4483d0=_0x4244b6['getIntersection'](_0x1cb234['getFirstRange']());null!==_0x4483d0&&_0x1cb234['_onDiscard']([_0x4483d0],null,_0x49701c);}}if(_0x4244b6['detach'](),_0x4244b6['isCollapsed']||'$graveyard'==_0x4244b6['root']['rootName'])return null;let _0xb14b34=null,_0x24e7f2=_0x4244b6['start'],_0x5ea43f=_0x4244b6['end'];const _0x381055=this['_findSuggestions'](_0x4244b6,'deletion');for(const {suggestion:_0x385df2,meta:_0x58e8bf}of _0x381055){const _0x4e153b=this['_model']['createRange'](_0x24e7f2,_0x5ea43f);if(_0x58e8bf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58e8bf['containsRangeInObject']&&!_0x58e8bf['isInsideObject'])){if(_0x385df2['isMultiRange']){if(!ie(_0x385df2,_0x49701c))continue;let _0x54656b=!0x0;for(const _0x25962a of _0x385df2['getRanges']()){if(_0x25962a['containsRange'](_0x4e153b,!0x0))return _0x385df2;_0x4e153b['containsRange'](_0x25962a)||(_0x54656b=!0x1);}_0x54656b&&_0x385df2['discard']();}else{const _0x419625=_0x385df2['getFirstRange']();if(_0x419625['containsRange'](_0x4e153b,!0x0))return _0x385df2;if(!ie(_0x385df2,_0x49701c)){_0x4e153b['containsRange'](_0x419625)?_0x385df2['removeMarkers']():_0x419625['containsPosition'](_0x24e7f2)?_0x24e7f2=_0x419625['end']:_0x419625['containsPosition'](_0x5ea43f)&&(_0x5ea43f=_0x419625['start']);continue;}_0x24e7f2=_0x24e7f2['isBefore'](_0x419625['start'])?_0x24e7f2:_0x419625['start'],_0x5ea43f=_0x5ea43f['isAfter'](_0x419625['end'])?_0x5ea43f:_0x419625['end'],_0x49701c=Object['assign']({},_0x385df2['attributes']),_0xb14b34?_0x419625['start']['isBefore'](_0xb14b34['getFirstRange']()['start'])?(_0xb14b34['removeMarkers'](),_0xb14b34=_0x385df2):_0x385df2['removeMarkers']():_0xb14b34=_0x385df2;}}}if(_0xb14b34)return this['_setSuggestionRange'](_0xb14b34,this['_model']['createRange'](_0x24e7f2,_0x5ea43f)),_0xb14b34;{const _0x59dd78=_0x46d86f(),_0x272dc5=this['_model']['createRange'](_0x24e7f2,_0x5ea43f),_0x3fa0b4=_0x51acd1['id'],_0x57cb39=_0x25582e?'deletion:'+_0x25582e:'deletion',_0x110c0e=this['_setSuggestionData']({'id':_0x59dd78,'type':_0x57cb39,'createdAt':new Date(),'authorId':_0x3fa0b4,'attributes':_0x49701c});return this['_addSuggestionMarker'](_0x57cb39,_0x59dd78,_0x3fa0b4,_0x272dc5),_0x110c0e;}}['markMultiRangeDeletion'](_0x312623,_0x30b23a='multi',_0x87c457={}){const _0x2cd92a=this['editor']['plugins']['get']('Users')['me'],_0x1cc5da=_0x312623['map'](_0x1f2bd8=>new _0x3cf104(_0x1f2bd8['start'],_0x1f2bd8['end'])),_0x5eee18=new Set();this['_trackingSessionId']&&(_0x87c457['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1baa8d,meta:_0xa3cf11}of this['_findSuggestions'](_0x1cc5da,'insertion'))_0xa3cf11['isOwn']&&!_0xa3cf11['isNextTo']&&_0x5eee18['add'](_0x1baa8d);for(const _0x5bc2b3 of _0x5eee18)if(_0x5bc2b3['isMultiRange']){const _0x4143eb=_0x5bc2b3['getRanges']();(!_0x5bc2b3['attributes']||!_0x5bc2b3['attributes']['skipNestingCheck'])&&(_0x4143eb['every'](_0x3c1c30=>_0x1cc5da['some'](_0x38259e=>_0x38259e['containsRange'](_0x3c1c30,!0x0)))&&_0x5bc2b3['discard']());if(_0x1cc5da['every'](_0xf27b80=>_0x4143eb['some'](_0x4484c5=>_0x4484c5['containsRange'](_0xf27b80,!0x0)))){const _0x181289=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30b23a,'accept');return this['forceDefaultExecution'](()=>_0x181289(_0x312623,null,_0x87c457)),null;}}else{const _0x57a059=_0x5bc2b3['getFirstRange']();_0x1cc5da['some'](_0x23406b=>_0x23406b['containsRange'](_0x57a059,!0x0))&&_0x5bc2b3['discard']();if(_0x1cc5da['every'](_0x2706ec=>_0x57a059['containsRange'](_0x2706ec,!0x0))){const _0x54e50a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30b23a,'accept');return this['forceDefaultExecution'](()=>_0x54e50a(_0x1cc5da,null,_0x87c457)),null;}}const _0x42154a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30b23a,'join');let _0x122e9d=null;for(const _0x363e75 of this['getSuggestions']())if(_0x363e75['author']['id']==_0x2cd92a['id']&&_0x363e75['isInContent']&&'deletion'==_0x363e75['type']&&_0x363e75['subType']==_0x30b23a&&ie(_0x363e75,_0x87c457)&&(_0x42154a(_0x363e75['getRanges'](),_0x1cc5da)||_0x42154a(_0x1cc5da,_0x363e75['getRanges']()))){if(_0x122e9d){if(_0x363e75['commentThread']&&_0x363e75['commentThread']['length'])continue;for(const _0x12423d of _0x363e75['getRanges']())_0x122e9d['isIntersectingWithRange'](_0x12423d)||_0x122e9d['addRange'](_0x12423d);_0x363e75['removeMarkers']();}else{_0x122e9d=_0x363e75;for(const _0x1aca9e of _0x1cc5da)_0x363e75['isIntersectingWithRange'](_0x1aca9e)||_0x363e75['addRange'](_0x1aca9e);}}if(_0x122e9d)return _0x122e9d;_0x5eee18['clear']();for(const {suggestion:_0x335046,meta:_0x321573}of this['_findSuggestions'](_0x1cc5da,'deletion'))_0x321573['isOwn']&&(this['_mergeNestedSuggestions']||!_0x321573['containsRangeInObject']&&!_0x321573['isInsideObject'])&&ie(_0x335046,_0x87c457)&&_0x5eee18['add'](_0x335046);for(const _0x2a1bd3 of _0x5eee18){const _0x2c945e=_0x2a1bd3['getRanges']();if(!_0x87c457||!_0x87c457['skipNestingCheck']){if(_0x1cc5da['every'](_0x492f37=>_0x2c945e['some'](_0xf875fd=>_0xf875fd['containsRange'](_0x492f37,!0x0))))return _0x2a1bd3;}(!_0x2a1bd3['attributes']||!_0x2a1bd3['attributes']['skipNestingCheck'])&&(_0x2c945e['every'](_0x4fa389=>_0x1cc5da['some'](_0x5541d5=>_0x5541d5['containsRange'](_0x4fa389,!0x0)))&&_0x2a1bd3['discard']());}const _0x9e0b5a=_0x46d86f(),_0x53161e=_0x2cd92a['id'],_0x4cc284='deletion:'+_0x30b23a,_0x117b40=this['_setSuggestionData']({'id':_0x9e0b5a,'type':_0x4cc284,'createdAt':new Date(),'authorId':_0x53161e,'attributes':_0x87c457});for(const _0x2d7435 of _0x1cc5da)_0x2d7435['detach'](),_0x2d7435['isCollapsed']||'$graveyard'==_0x2d7435['root']['rootName']||this['_addSuggestionMarker'](_0x4cc284,_0x9e0b5a,_0x53161e,_0x2d7435,R['getMultiRangeId']());return _0x117b40;}['markAttributeChange'](_0x100d96,_0x5c0ab9,_0x42d328,_0x4194ac,_0x2f6fd7){if(_0x100d96['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5c06c3=this['editor']['plugins']['get']('Users')['me']['id'],_0x4aa0bd=Array['from'](this['_suggestions']['values']())['filter'](_0x6214a=>'attribute'==_0x6214a['type']&&_0x6214a['data']['key']==_0x5c0ab9&&_0x6214a['isIntersectingWithRange'](_0x100d96));if(this['_trackingSessionId']&&(_0x2f6fd7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x187126=this['_findSuggestions'](_0x100d96,'insertion')['filter'](({meta:_0x26b08e})=>_0x26b08e['isOwn']&&!_0x26b08e['isInsideObject']&&!_0x26b08e['isNextTo'])['map'](({suggestion:_0x16b5af})=>_0x16b5af);_0x4aa0bd['unshift'](..._0x187126);}const _0x3bff72=new Map([[_0x100d96,_0x42d328]]);for(const _0x36b67a of _0x4aa0bd){const _0x497994='attribute'==_0x36b67a['type']?_0x36b67a['data']['oldValue']:void 0x0,_0x1cf9e6=_0x36b67a['getFirstRange'](),_0xc1eb6e=Array['from'](_0x3bff72['keys']())['find'](_0x489cc6=>_0x489cc6['isIntersecting'](_0x1cf9e6));if(!_0xc1eb6e)continue;const _0x18c239=_0xc1eb6e['getDifference'](_0x1cf9e6);this['_isBlockAttribute'](_0x5c0ab9)&&'insertion'==_0x36b67a['type']&&0x0!=_0x18c239['length']||(_0x3bff72['delete'](_0xc1eb6e),_0x18c239['forEach'](_0xb44d49=>{_0x3bff72['set'](_0xb44d49,_0x42d328);}),'insertion'!=_0x36b67a['type']&&_0x497994!=_0x4194ac&&_0x3bff72['set'](_0xc1eb6e['getIntersection'](_0x1cf9e6),_0x497994));}const _0x46b655=[];for(const [_0x350fae,_0x3b7d28]of _0x3bff72){const _0x2c7535=_0x46d86f(),_0xb6a34f={'key':_0x5c0ab9,'oldValue':_0x3b7d28,'newValue':_0x4194ac};_0x5c0ab9['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':_0x5c0ab9});const _0x4a9d37=('attribute:'+(_0x5c0ab9+'|'+Wt({'newValue':_0x4194ac})))['substring'](0x0,0x3c),_0x211c78=this['_setSuggestionData']({'id':_0x2c7535,'type':_0x4a9d37,'data':_0xb6a34f,'createdAt':new Date(),'authorId':_0x5c06c3,'attributes':_0x2f6fd7});_0x46b655['push'](_0x211c78),this['_addSuggestionMarker'](_0x4a9d37,_0x2c7535,_0x5c06c3,_0x350fae);}return _0x46b655;}['enableDefaultAttributesIntegration'](_0x42dddb){this['enableCommand'](_0x42dddb,(_0x18fcec,..._0x4c37cb)=>{this['recordAttributeChanges'](()=>{_0x18fcec(..._0x4c37cb);});});}['registerBlockAttribute'](_0x1b60fa){this['_blockAttributeKeys']['add'](_0x1b60fa);}['registerInlineAttribute'](_0x4a8661){this['_inlineAttributeKeys']['add'](_0x4a8661);}['startTrackingSession'](_0x2cec30){return this['_trackingSessionId']=void 0x0!==_0x2cec30?_0x2cec30:_0x46d86f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x15a295){return'attribute'==_0x15a295['type']?se(_0x15a295['subType']):null;}['_applyOperationsAsSuggestions'](_0x4b8ce4){if(0x0==_0x4b8ce4['length'])return;const _0x20a3a8=this['editor'],_0x4c82d4=_0x20a3a8['plugins']['get'](_0x4f4fd6);let _0x378101=!0x0;for(const _0x50077a in _0x4b8ce4[0x0]){const _0x2f663d=_0x4b8ce4[0x0][_0x50077a];if((_0x2f663d instanceof _0x9c47e5||_0x2f663d instanceof _0x2b8e0c)&&_0x2f663d['root']['is']('documentFragment')){_0x378101=!0x1;break;}}_0x20a3a8['model']['change'](_0x382be=>{const _0x1cb30b=new Set();for(const _0x445daa of _0x4b8ce4)if(_0x445daa['baseVersion']=_0x378101?_0x20a3a8['model']['document']['version']:null,_0x445daa['isDocumentOperation']=_0x378101,_0x4c82d4['isMarkedRemoveOperation'](_0x445daa)){const _0x486dbf=Xt(_0x445daa['newRange'],_0x20a3a8['model']);if(_0x378101)this['markDeletion'](_0x486dbf);else{const _0x1e2c7a='suggestion:deletion:id:authorId:'+_0x46d86f();_0x486dbf['root']['markers']['set'](_0x1e2c7a,_0x486dbf);}}else switch(_0x445daa['type']){case'rename':{const _0x25de9a=_0x445daa['oldName'],_0xbca6f1=_0x445daa['newName'];if(_0x25de9a==_0xbca6f1)break;_0x382be['batch']['addOperation'](_0x445daa),_0x20a3a8['model']['applyOperation'](_0x445daa);const _0xf54d20='$elementName',_0x4f63f2=_0x445daa['position'],_0x414dc8=_0x20a3a8['model']['createRange'](_0x4f63f2,_0x20a3a8['model']['createPositionAt'](_0x4f63f2['nodeAfter'],'end'));if(_0x378101)this['markAttributeChange'](_0x414dc8,_0xf54d20,_0x25de9a,_0xbca6f1,{'groupId':_0x46d86f()});else{const _0x3f5e5a='suggestion:attribute:'+_0xf54d20+':id:authorId:'+_0x46d86f();_0x414dc8['root']['markers']['set'](_0x3f5e5a,_0x414dc8);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xb919f5=_0x445daa['oldValue'],_0x4e25e1=_0x445daa['newValue'];if(_0xb919f5==_0x4e25e1)break;_0x382be['batch']['addOperation'](_0x445daa),_0x20a3a8['model']['applyOperation'](_0x445daa);const _0x547240=_0x445daa['key'];if(!this['_isRegisteredAttribute'](_0x547240))break;const _0x3ab9e3=Xt(_0x445daa['range'],_0x20a3a8['model']);if(_0x378101)this['markAttributeChange'](_0x3ab9e3,_0x547240,_0xb919f5,_0x4e25e1,{'groupId':_0x46d86f()});else{const _0x310553='suggestion:attribute:'+_0x547240+':id:authorId:'+_0x46d86f();_0x3ab9e3['root']['markers']['set'](_0x310553,_0x3ab9e3);}break;}case'insert':{_0x382be['batch']['addOperation'](_0x445daa),_0x20a3a8['model']['applyOperation'](_0x445daa);const _0x2e787b=_0x445daa['position'],_0x23825f=_0x445daa['howMany'],_0x5ec1e6=Xt(_0x20a3a8['model']['createRange'](_0x2e787b,_0x2e787b['getShiftedBy'](_0x23825f)),_0x20a3a8['model']);if(_0x378101)this['markInsertion'](_0x5ec1e6);else{const _0x1f6876='suggestion:insertion:id:authorId:'+_0x46d86f();_0x5ec1e6['root']['markers']['set'](_0x1f6876,_0x5ec1e6);}break;}case'split':{_0x382be['batch']['addOperation'](_0x445daa),_0x20a3a8['model']['applyOperation'](_0x445daa);const _0x2455df=_0x445daa['splitPosition'],_0x13c7f2=_0x445daa['moveTargetPosition'],_0x4fedf0=_0x20a3a8['model']['createRange'](_0x2455df,_0x13c7f2);if(_0x378101)this['markInsertion'](_0x20a3a8['model']['createRange'](_0x2455df,_0x13c7f2));else{const _0x4e7bbe='suggestion:insertion:id:authorId:'+_0x46d86f();_0x4fedf0['root']['markers']['set'](_0x4e7bbe,_0x4fedf0);}break;}case'move':if(_0x382be['batch']['addOperation'](_0x445daa),_0x20a3a8['model']['applyOperation'](_0x445daa),!_0x378101){const _0x41b77a=_0x445daa['getMovedRangeStart'](),_0x3712f2=_0x445daa['howMany'];for(let _0x4d84a2=0x0;_0x4d84a2<_0x3712f2;_0x4d84a2++){const _0xd74282=_0x41b77a['getShiftedBy'](_0x4d84a2)['nodeAfter'];_0x1cb30b['add'](_0xd74282);}}break;case'remove':if(_0x378101)_0x382be['batch']['addOperation'](_0x445daa),_0x20a3a8['model']['applyOperation'](_0x445daa);else{const _0x1fee5c=_0x445daa['sourcePosition'],_0x7b8997=_0x445daa['howMany'],_0x2a8b85=new _0x50fa98(_0x1fee5c,_0x7b8997);_0x382be['batch']['addOperation'](_0x2a8b85),_0x20a3a8['model']['applyOperation'](_0x2a8b85);}}for(const _0x511aae of _0x1cb30b){const _0x139a1a=_0x20a3a8['model']['createRangeOn'](_0x511aae),_0x1892c7='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x46d86f();_0x139a1a['root']['markers']['set'](_0x1892c7,Xt(_0x139a1a,_0x20a3a8['model']));}});}['_setSuggestionRange'](_0x1151c8,_0x1e5d01){const _0x466d1e=_0x1151c8['getFirstMarker']();this['_model']['change'](_0x1f7ba9=>{_0x1f7ba9['updateMarker'](_0x466d1e,{'range':_0x1e5d01});});}['_addThreadToSuggestion'](_0x2b55cf){const _0x55b478=_0x2b55cf['id'],_0x4f77da=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x55b478)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f77da,'threadId':_0x55b478,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x7cfb8d=this['_commentsRepository']['getCommentThread'](_0x55b478);_0x7cfb8d['unbind']('isRemovable'),_0x7cfb8d['isRemovable']=!0x1,_0x2b55cf['commentThread']=_0x7cfb8d;}['_checkSuggestionCorrectness'](_0x2b173d,_0x175492,_0x34c28b,_0x227149){if(_0x2b173d['type']!=_0x175492||_0x2b173d['subType']!=_0x34c28b||_0x2b173d['creator']['id']!=_0x227149)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1aff0b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x227505,_0x596c18){const _0x101f1d=_0x227505['getFirstRange']();if(_0x596c18['isEqual'](_0x101f1d))_0x227505['removeMarkers']();else{if(_0x101f1d['containsRange'](_0x596c18)){const _0x1262bf=this['_model']['createPositionAt'](_0x596c18['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x227505,this['_model']['createRange'](_0x101f1d['start'],_0x1262bf));const _0x48ea54=_0x46d86f(),_0x1c65ed=_0x227505['creator']['id'],_0x49144b=_0x227505['type']+':'+_0x227505['subType'];this['_setSuggestionData']({'id':_0x48ea54,'type':_0x49144b,'createdAt':new Date(),'authorId':_0x1c65ed,'data':_0x227505['data'],'attributes':_0x227505['attributes']});const _0x166dd3=this['_model']['createPositionAt'](_0x596c18['end']['parent'],'after'),_0x17b6e7=this['_model']['createRange'](_0x166dd3,_0x101f1d['end']);this['_addSuggestionMarker'](_0x49144b,_0x48ea54,_0x1c65ed,_0x17b6e7);}else{if(_0x101f1d['containsPosition'](_0x596c18['start'])){const _0x13f026=this['_model']['createPositionAt'](_0x596c18['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x227505,this['_model']['createRange'](_0x101f1d['start'],_0x13f026));}else{const _0x2a66af=this['_model']['createPositionAt'](_0x596c18['end']['parent'],'after');this['_setSuggestionRange'](_0x227505,this['_model']['createRange'](_0x2a66af,_0x101f1d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x51e50f){for(const {suggestion:_0x5a64a0,meta:_0x3ef95f}of this['_findSuggestions'](_0x51e50f,'insertion')){if(!_0x3ef95f['isOwn'])continue;const _0x3fa5bf=_0x5a64a0['getRanges']();for(const _0x4e2332 of _0x3fa5bf)if(!_0x51e50f['getDifference'](_0x4e2332)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x103498){return this['editor']['plugins']['get']('Users')['getUser'](_0x103498);}['_getExternalAuthor'](_0x3d8504){const _0xda5816=this['editor']['plugins']['get']('Users'),_0x2dcb62=_0x2503ac('external:'+_0x3d8504),_0x46d93d=_0xda5816['getUser'](_0x2dcb62);return _0x46d93d||_0xda5816['addUser']({'id':_0x2dcb62,'name':_0x3d8504});}['_createSuggestion'](_0x1f1f52,_0xf2bbbb,_0x5dc9ed,_0x2afb6a,_0x4a4d59,_0x483954){const _0x2cddaa=this['_getAuthorFromId'](_0x2afb6a);if(!_0x2cddaa)throw new _0x1aff0b('track-changes-user-not-found',this,{'authorId':_0x2afb6a,'suggestionId':_0x5dc9ed});const _0x1f4309=this['_suggestionFactory']['buildSuggestion'](_0x1f1f52,_0xf2bbbb,_0x5dc9ed,_0x2cddaa,_0x4a4d59,_0x1c51cf=>{this['_updateSuggestionData'](_0x5dc9ed,{'attributes':_0x1c51cf});const _0x11ec73=this['getSuggestion'](_0x5dc9ed);this['_joinWithAdjacentSuggestions'](new Set([_0x11ec73])),this['_refreshSuggestionsChain'](new Set([_0x11ec73]));},_0x483954);return this['listenTo'](_0x1f4309,'accept',()=>{this['_updateSuggestionData'](_0x5dc9ed,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1f4309,'discard',()=>{this['_updateSuggestionData'](_0x5dc9ed,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5dc9ed,_0x1f4309),this['_suggestionState']['set'](_0x1f4309,'notReady'),_0x1f4309;}['_splitMarkerName'](_0x1228c7){const _0x124467=_0x1228c7['split'](':');return{'group':_0x124467[0x0],'type':_0x124467[0x1],'subType':_0x124467['length']>=0x5?_0x124467[0x2]:null,'id':_0x124467['length']<0x5?_0x124467[0x2]:_0x124467[0x3],'authorId':_0x124467['length']<0x5?_0x124467[0x3]:_0x124467[0x4],'markerCount':0x6==_0x124467['length']?_0x124467[0x5]:null};}['_breakSuggestionMarker'](_0x1033c1,_0x524820,_0x220b4c){const _0x462623=_0x1033c1['getFirstRange'](),_0x45894d=_0x462623['start'],_0x136404=_0x462623['end'];this['_setSuggestionRange'](_0x1033c1,this['_model']['createRange'](_0x45894d,_0x524820));const _0x204758=_0x46d86f(),_0x171ff7=_0x1033c1['creator']['id'],_0x2498b4=_0x1033c1['type']+(_0x1033c1['subType']?':'+_0x1033c1['subType']:'');this['_setSuggestionData']({'id':_0x204758,'type':_0x2498b4,'createdAt':new Date(),'authorId':_0x171ff7,'originalSuggestionId':_0x1033c1['_originalSuggestionId']||_0x1033c1['id'],'attributes':_0x1033c1['attributes'],'data':_0x1033c1['data']});const _0x47649d=this['_getAttributeKey'](_0x1033c1);('formatBlock'==_0x1033c1['type']||_0x47649d&&this['_isBlockAttribute'](_0x47649d))&&(_0x220b4c=this['_model']['createPositionBefore'](_0x220b4c['parent'])),this['_addSuggestionMarker'](_0x2498b4,_0x204758,_0x171ff7,this['_model']['createRange'](_0x220b4c,_0x136404));}['_findSuggestions'](_0x2950b0,_0x2e4e46=null){const _0x5819c5=[],_0x496a80=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2950b0)||(_0x2950b0=[_0x2950b0]);for(const _0x103c6b of this['getSuggestions']()){if(!_0x103c6b['isInContent'])continue;if(_0x2e4e46&&_0x103c6b['type']!=_0x2e4e46)continue;let _0x1adec3=!0x1;for(const _0x121f06 of _0x103c6b['getRanges']()){for(const _0x4b3ba9 of _0x2950b0){const _0x5e6489=_0x4b3ba9['start']['isEqual'](_0x121f06['end'])||_0x4b3ba9['end']['isEqual'](_0x121f06['start']);if(_0x5e6489||_0x4b3ba9['getIntersection'](_0x121f06)){const _0x2d3ea7=_0x4b3ba9['containsRange'](_0x121f06)&&Jt(this['_model']['schema'],_0x121f06['start'],_0x4b3ba9),_0x40bc72=_0x121f06['containsRange'](_0x4b3ba9)&&Jt(this['_model']['schema'],_0x4b3ba9['start'],_0x121f06);_0x5819c5['push']({'suggestion':_0x103c6b,'meta':{'isOwn':_0x496a80==_0x103c6b['author'],'isNextTo':_0x5e6489,'isInsideObject':_0x2d3ea7,'containsRangeInObject':_0x40bc72}}),_0x1adec3=!0x0;break;}}if(_0x1adec3)break;}}return _0x5819c5;}['_addSuggestionMarker'](_0xb95d30,_0xed110b,_0x25f87a,_0x30467b,_0x4e4fa6){this['_model']['change'](_0x39c3c9=>{let _0x4bedc7='suggestion:'+_0xb95d30+':'+_0xed110b+':'+_0x25f87a;_0x4e4fa6&&(_0x4bedc7=_0x4bedc7+':'+_0x4e4fa6),_0x39c3c9['addMarker'](_0x4bedc7,{'range':_0x30467b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x370000){const _0x58a102=_0x370000['previous'],_0x1b291e=_0x370000['next'];_0x370000['previous']=null,_0x370000['next']=null,null!=_0x58a102&&_0x58a102['next']==_0x370000&&(_0x58a102['next']=_0x1b291e),null!=_0x1b291e&&_0x1b291e['previous']==_0x370000&&(_0x1b291e['previous']=_0x58a102),'ready'==this['_suggestionState']['get'](_0x370000)&&(this['_suggestionState']['set'](_0x370000,'removed'),this['fire']('suggestionUnloaded',_0x370000,_0x58a102,_0x1b291e));}['_setSuggestionData'](_0xb731a7){const _0x1eb148=_0xb731a7['id'],_0x315f1c=this['addSuggestionData'](_0xb731a7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4cd96d=this['editor']['plugins']['get']('PendingActions'),_0x4cbeaa=_0x315f1c['hasComments'],_0x13579e=_0x315f1c['subType']?_0x315f1c['type']+':'+_0x315f1c['subType']:_0x315f1c['type'],_0x4633b9=this['editor']['locale'],_0x3b560a=_0x4cd96d['add'](o(_0x4633b9,'PENDING_ACTION_SUGGESTION')),_0x4f501e={'id':_0x1eb148,'type':_0x13579e,'hasComments':_0x4cbeaa,'data':_0xb731a7['data']||null,'originalSuggestionId':_0xb731a7['originalSuggestionId']||null,'attributes':_0x315f1c['attributes']};this['_adapter']['addSuggestion'](_0x4f501e)['then'](_0x2ca64e=>{_0x315f1c['_saved']=!0x0,_0x4cd96d['remove'](_0x3b560a),_0x2ca64e&&_0x2ca64e['createdAt']&&(this['_suggestions']['get'](_0x1eb148)['createdAt']=_0x2ca64e['createdAt']);})['catch'](_0xad2b3=>{throw _0x4c7bf4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x315f1c['discard']();}),_0x315f1c['stopListening'](),this['_suggestions']['delete'](_0x315f1c['id']),this['_suggestionState']['delete'](_0x315f1c),_0xad2b3;});}return _0x315f1c;}['_isBlockAttribute'](_0x14456d){return this['_blockAttributeKeys']['has'](_0x14456d);}['_isInlineAttribute'](_0xd4529){return this['_inlineAttributeKeys']['has'](_0xd4529);}['_updateSuggestionData'](_0x34dd96,_0x2b450a){const _0x15b8e6=this['editor']['plugins']['get']('PendingActions'),_0x13f09d=this['getSuggestion'](_0x34dd96);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x13f09d['_saved']){const _0x1b51c5=_0x15b8e6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34dd96,_0x2b450a)['then'](()=>{_0x15b8e6['remove'](_0x1b51c5);});}else _0x13f09d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34dd96,_0x2b450a);});}}['_getSuggestionData'](_0xb1feeb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1aff0b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xb1feeb);}['_handleNewSuggestionMarker'](_0x11f7b7){const {id:_0x4ca12d,type:_0x263111,subType:_0x45bb9b,authorId:_0x2c92a7}=this['_splitMarkerName'](_0x11f7b7),_0x1276fd=this['_suggestions']['get'](_0x4ca12d)||this['_createSuggestion'](_0x263111,_0x45bb9b,_0x4ca12d,_0x2c92a7,{});switch(this['_checkSuggestionCorrectness'](_0x1276fd,_0x263111,_0x45bb9b,_0x2c92a7),this['_suggestionState']['get'](_0x1276fd)){case'notReady':this['_getSuggestionData'](_0x4ca12d)['then'](_0x7967fa=>{let _0x3824f9=Promise['resolve']();_0x7967fa['hasComments']&&(_0x3824f9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ca12d})),_0x3824f9['then'](()=>{this['addSuggestionData'](_0x7967fa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1276fd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ca12d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1276fd,'ready'),this['fire']('suggestionLoaded',_0x1276fd);break;case'ready':this['fire']('suggestionChanged',_0x1276fd);}return _0x1276fd['addMarkerName'](_0x11f7b7),_0x1276fd;}['_refreshSuggestionsChain'](_0x58663a){const _0x3d970d=Array['from'](_0x58663a),_0x2a6af2=_0x3d970d['filter'](_0x14e767=>'attribute'==_0x14e767['type']);this['_refreshAttributeSuggestionsChain'](_0x2a6af2);const _0x49acee=_0x3d970d['filter'](_0x59108b=>!_0x59108b['isMultiRange']&&'attribute'!=_0x59108b['type']),_0x11485c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x517c7c=>!_0x517c7c['isMultiRange']&&'attribute'!=_0x517c7c['type']),_0x121a82=_0x11485c['filter'](_0x89cc08=>!_0x58663a['has'](_0x89cc08)),_0x4f4c83=new Map(_0x11485c['map'](_0x45cd65=>[_0x45cd65,this['_suggestionFactory']['getSuggestionCallback'](_0x45cd65['type'],_0x45cd65['subType'],'chain')])),_0x3836fc=new Map(_0x11485c['map'](_0x55fe95=>[_0x55fe95,_0x55fe95['getFirstRange']()])),_0x417ac6=new Set(),_0x2abd92=new Set();for(let _0x126798=0x0;_0x126798<_0x49acee['length'];_0x126798++)_0x3d3821(_0x49acee[_0x126798],_0x49acee,_0x126798+0x1);for(let _0x58edd4=0x0;_0x58edd4<_0x49acee['length'];_0x58edd4++)_0x3d3821(_0x49acee[_0x58edd4],_0x121a82,0x0);const _0x341937=new Set();for(let _0x3aa569=0x0;_0x3aa569<_0x49acee['length'];_0x3aa569++){const _0x1e58e4=_0x49acee[_0x3aa569];!_0x2abd92['has'](_0x1e58e4)&&_0x1e58e4['previous']&&(_0x341937['add'](_0x1e58e4['previous']),_0x1e58e4['previous']['next']===_0x1e58e4&&(_0x1e58e4['previous']['next']=null),_0x1e58e4['previous']=null),!_0x417ac6['has'](_0x1e58e4)&&_0x1e58e4['next']&&(_0x341937['add'](_0x1e58e4['next']),_0x1e58e4['next']['previous']===_0x1e58e4&&(_0x1e58e4['next']['previous']=null),_0x1e58e4['next']=null);}function _0x3d3821(_0x42d19b,_0x2a0566,_0x34a644){for(let _0xd4bbc9=_0x34a644;_0xd4bbc9<_0x2a0566['length'];_0xd4bbc9++){const _0x38a9b5=_0x1e643f(_0x42d19b,_0x2a0566[_0xd4bbc9]);_0x38a9b5&&(_0x38a9b5[0x0]['next']=_0x38a9b5[0x1],_0x38a9b5[0x1]['previous']=_0x38a9b5[0x0],_0x417ac6['add'](_0x38a9b5[0x0]),_0x2abd92['add'](_0x38a9b5[0x1]));}}function _0x1e643f(_0x425f1b,_0x675817){if(_0x425f1b['author']['id']!==_0x675817['author']['id'])return null;const _0x18261a=_0x4f4c83['get'](_0x425f1b)(_0x425f1b,_0x675817,_0x3836fc['get'](_0x425f1b),_0x3836fc['get'](_0x675817));if(!_0x18261a)return null;return _0x4f4c83['get'](_0x675817)(_0x425f1b,_0x675817,_0x3836fc['get'](_0x425f1b),_0x3836fc['get'](_0x675817))?_0x18261a[0x1]['commentThread']&&_0x18261a[0x1]['commentThread']['length']?null:_0x18261a:null;}_0x341937['size']&&this['_refreshSuggestionsChain'](_0x341937);}['_refreshAttributeSuggestionsChain'](_0x35e9f3){if(0x0==_0x35e9f3['length'])return;const _0x33b1ba=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fe940=>'attribute'==_0x3fe940['type']&&_0x3fe940['_isDataLoaded']),_0x33ef2d=[],_0x4b32b5=new Map();for(const _0x3c470f of _0x33b1ba){const _0x235746=_0x2503ac(_0x3c470f['attributes']);_0x4b32b5['has'](_0x235746)||(_0x4b32b5['set'](_0x235746,_0x33ef2d['length']),_0x33ef2d['push']([]));const _0x2e7d45=_0x4b32b5['get'](_0x235746);_0x33ef2d[_0x2e7d45]['push'](_0x3c470f);}!(function(){_0x33ef2d['sort']((_0x364ea3,_0x362575)=>{const _0x1641b7=_0x364ea3[0x0]['createdAt'],_0x660391=_0x362575[0x0]['createdAt'];return _0x1641b7==_0x660391?_0x364ea3[0x0]['attributes']['groupId']<_0x362575[0x0]['attributes']['groupId']?-0x1:0x1:_0x1641b7<_0x660391?-0x1:0x1;});for(const _0x3ff099 of _0x33ef2d)_0x3ff099['sort']((_0x51120c,_0x2979a9)=>_0x51120c['id']<_0x2979a9['id']?-0x1:0x1);}());for(let _0x574040=0x0;_0x574040<_0x33ef2d['length'];_0x574040++){if(0x0==_0x33ef2d[_0x574040]['length'])continue;const _0x5ace65=[];for(let _0x50dca8=_0x574040+0x1;_0x50dca8<_0x33ef2d['length'];_0x50dca8++)0x0!=_0x33ef2d[_0x50dca8]['length']&&_0x494bb1(_0x33ef2d[_0x574040],_0x33ef2d[_0x50dca8])&&_0x5ace65['push'](_0x50dca8);for(const _0x62e92 of _0x5ace65)_0x33ef2d[_0x574040]=_0x33ef2d[_0x574040]['concat'](_0x33ef2d[_0x62e92]),_0x33ef2d[_0x62e92]=[];}for(const _0x217bf6 of _0x33ef2d)for(let _0x4e897e=0x0;_0x4e897e<_0x217bf6['length'];_0x4e897e++){const _0x435261=_0x217bf6[_0x4e897e+0x1]||null;_0x217bf6[_0x4e897e]['next']!==_0x435261&&(_0x217bf6[_0x4e897e]['next']=_0x435261);}for(const _0x4439bc of _0x33ef2d)for(let _0x54d8c3=0x0;_0x54d8c3<_0x4439bc['length'];_0x54d8c3++){const _0x559ffc=_0x4439bc[_0x54d8c3-0x1]||null;_0x4439bc[_0x54d8c3]['previous']!==_0x559ffc&&(_0x4439bc[_0x54d8c3]['previous']=_0x559ffc);}function _0x494bb1(_0x3ce49f,_0x1a5811){if(_0x3ce49f[0x0]['attributes']['groupId']!==_0x1a5811[0x0]['attributes']['groupId']&&_0x3ce49f[0x0]['author']!==_0x1a5811[0x0]['author'])return!0x1;if(!function(_0x340a2d,_0x44def0){if(!_0x340a2d['hasComments']&&!_0x44def0['hasComments'])return!0x0;if(_0x340a2d['hasComments']&&_0x44def0['hasComments'])return!0x1;if(_0x340a2d['hasComments']&&_0x44def0['createdAt']<_0x340a2d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44def0['hasComments']&&_0x340a2d['createdAt']<_0x44def0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3ce49f[0x0],_0x1a5811[0x0]))return!0x1;const _0x2d63d2=Gt(_0x3ce49f[0x0]['attributes'],['groupId','trackingSessionId']),_0x39c320=Gt(_0x1a5811[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3a572d(_0x2d63d2,_0x39c320))return!0x1;if(_0x3ce49f[0x0]['attributes']['groupId']==_0x1a5811[0x0]['attributes']['groupId'])return!0x0;if(_0x3ce49f[0x0]['attributes']['trackingSessionId']!==_0x1a5811[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3ce49f['every'](_0x580463=>_0x1a5811['some'](_0x1030d7=>_0x580463['getFirstRange']()['isEqual'](_0x1030d7['getFirstRange']())))&&_0x1a5811['every'](_0x323972=>_0x3ce49f['some'](_0x3519e0=>_0x323972['getFirstRange']()['isEqual'](_0x3519e0['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2a11c4){const _0x14536b=Array['from'](_0x2a11c4),_0x37741d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x557261=_0x37741d['filter'](_0x1fffc8=>!_0x2a11c4['has'](_0x1fffc8)),_0x2f3d6d=new Map(_0x14536b['map'](_0x3ea72d=>[_0x3ea72d,this['_suggestionFactory']['getSuggestionCallback'](_0x3ea72d['type'],_0x3ea72d['subType'],'join')])),_0x4b0a88=new Map(_0x37741d['map'](_0x2db4ef=>[_0x2db4ef,_0x2db4ef['getRanges']()]));for(let _0x1adaa5=0x0;_0x1adaa5<_0x14536b['length'];_0x1adaa5++){if(_0x4e4f87(this,_0x14536b[_0x1adaa5],_0x14536b,_0x1adaa5+0x1))return!0x0;}for(let _0x1c2008=0x0;_0x1c2008<_0x14536b['length'];_0x1c2008++){if(_0x4e4f87(this,_0x14536b[_0x1c2008],_0x557261,0x0))return!0x0;}return!0x1;function _0x4e4f87(_0x1b4c3d,_0x2c88c4,_0x4decac,_0x1021a5){for(let _0x4ff099=_0x1021a5;_0x4ff099<_0x4decac['length'];_0x4ff099++){const _0x49c4fe=_0x4decac[_0x4ff099];if(_0x49c4fe['type']!==_0x2c88c4['type']||_0x49c4fe['author']['id']!==_0x2c88c4['author']['id']||_0x49c4fe['subType']!==_0x2c88c4['subType'])continue;if(!ee(_0x2c88c4,_0x49c4fe))continue;if('attribute'==_0x2c88c4['type']&&_0x2c88c4['data']['oldValue']!=_0x49c4fe['data']['oldValue'])continue;if('attribute'==_0x2c88c4['type']&&_0x1b4c3d['_isBlockAttribute'](_0x2c88c4['data']['key']))continue;if('formatBlock'==_0x2c88c4['type']){const _0x964945=_0x1b4c3d['editor']['model'],_0x339f78=_0x2c88c4['getContainedElement']();if(_0x339f78&&(_0x964945['schema']['isObject'](_0x339f78)||_0x964945['schema']['isLimit'](_0x339f78)))continue;}const _0x916e3d=_0x2f3d6d['get'](_0x2c88c4),_0x6859be=_0x4b0a88['get'](_0x2c88c4),_0x54c9da=_0x4b0a88['get'](_0x49c4fe),_0x26f324=_0x2c88c4['commentThread']&&_0x2c88c4['commentThread']['length'],_0x19cf2b=_0x49c4fe['commentThread']&&_0x49c4fe['commentThread']['length'];if(!_0x26f324&&_0x916e3d(_0x54c9da,_0x6859be))return _0x1b4c3d['_joinSuggestions'](_0x49c4fe,_0x2c88c4),_0x4b0a88['delete'](_0x2c88c4),!0x0;if(!_0x19cf2b&&_0x916e3d(_0x6859be,_0x54c9da))return _0x1b4c3d['_joinSuggestions'](_0x2c88c4,_0x49c4fe),_0x4b0a88['delete'](_0x49c4fe),!0x0;}return!0x1;}}['_joinSuggestions'](_0x59ff10,_0x45ded5){if(_0x59ff10['isMultiRange']){for(const _0x580fed of _0x45ded5['getRanges']())_0x59ff10['addRange'](_0x580fed);}else{const _0x46d183=_0x45ded5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x59ff10,this['_model']['createRange'](_0x59ff10['getFirstRange']()['start'],_0x46d183));}_0x45ded5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4b0011,_0x3cfe8d,_0x49827e){const _0x2a792f=_0x4b0011['startsWith']('format')||_0x4b0011['startsWith']('attribute')?'FORMATTING':_0x4b0011['toUpperCase']();return o(this['editor']['locale'],_0x3cfe8d+'_'+_0x2a792f+'_SUGGESTION_ANNOUNCEMENT',_0x49827e);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b6af7=this['editor'];if(!_0x5b6af7['ui'])return;const {ariaLiveAnnouncer:_0x54eb45}=_0x5b6af7['ui'];_0x44f645(this['_model'],({left:_0x41a32b,entered:_0x3d124a})=>{for(const _0xcbdaea of _0x41a32b){const {group:_0x1068c8,type:_0xf2d623}=this['_splitMarkerName'](_0xcbdaea['name']);if('suggestion'===_0x1068c8){_0x54eb45['announce'](this['_getMarkerAnnouncementText'](_0xf2d623,'LEAVE'));break;}}for(const _0x42621d of _0x3d124a){const {group:_0x4c188c,type:_0x1281b4}=this['_splitMarkerName'](_0x42621d['name']);if('suggestion'===_0x4c188c){_0x54eb45['announce'](this['_getMarkerAnnouncementText'](_0x1281b4,'ENTER',_0x186549(_0x1e4978)));break;}}});}['_processAttributeChanges'](_0x4e196a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x159b2f=this['editor'],_0x5d9152=_0x159b2f['model']['document']['differ']['getChanges']();if(0x0==_0x5d9152['length'])return!0x1;const _0x17771c=[],_0x432e6c=_0x5d9152['filter'](_0x4089a8=>'attribute'==_0x4089a8['type']),_0x22bd9c=_0x5d9152['filter'](_0x5dd23c=>'insert'==_0x5dd23c['type']&&'$text'!=_0x5dd23c['name']),_0x167a06=_0x5d9152['filter'](_0x3c590c=>'remove'==_0x3c590c['type']&&'$text'!=_0x3c590c['name']);for(const _0x229f3d of _0x432e6c)_0x17771c['push']({'key':_0x229f3d['attributeKey'],'newValue':_0x229f3d['attributeNewValue'],'oldValue':_0x229f3d['attributeOldValue'],'range':Yt(_0x229f3d['range'],_0x159b2f['model'])});for(const _0x1777c5 of _0x22bd9c){const _0x57b088=_0x167a06['find'](_0xf71215=>_0xf71215['position']['isEqual'](_0x1777c5['position']));_0x57b088&&_0x17771c['push']({'key':m,'newValue':_0x1777c5['name'],'oldValue':_0x57b088['name'],'range':_0x159b2f['model']['createRangeOn'](_0x1777c5['position']['nodeAfter'])});}return 0x0!=_0x17771c['length']&&this['_reduceExistingSuggestions'](_0x4e196a,_0x17771c);}['_processAttributeSuggestions'](_0x21eccb){let _0x8eca9e=!0x1;const _0x5b8564=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5700e3=>_0x5700e3['data']['newRange']&&_0x5700e3['name']['startsWith']('suggestion:attribute:'));for(const _0x46f7ed of _0x5b8564){const {subType:_0x6bb3d7,id:_0x299b03}=this['_splitMarkerName'](_0x46f7ed['name']),_0x420ca3=_0x6bb3d7['split']('|')[0x0];for(const _0x46e4bb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x46e4bb['id']!=_0x299b03&&'attribute'==_0x46e4bb['type']&&_0x46e4bb['data']&&_0x46e4bb['data']['key']==_0x420ca3&&_0x46e4bb['getFirstRange']()['isIntersecting'](_0x46f7ed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x46e4bb,_0x46f7ed['data']['newRange'],_0x21eccb),_0x8eca9e=!0x0);}return _0x8eca9e;}['recordAttributeChanges'](_0x3fb105){this['_recordAttributeSuggestions']=!0x0,_0x3fb105();}['_isRegisteredAttribute'](_0x244c88){const _0x243897=this['_isBlockAttribute'](_0x244c88),_0x3ded33=this['_isInlineAttribute'](_0x244c88);return _0x243897||_0x3ded33;}['_reduceExistingSuggestions'](_0x7bcf2f,_0x3c8dd1){if(0x0==_0x3c8dd1['length'])return!0x1;let _0x2e567c=!0x1;for(const _0x418425 of _0x3c8dd1){const _0x180bfa=this['_findSuggestions'](_0x418425['range'],'attribute')['filter'](_0x32eb8f=>!_0x32eb8f['meta']['isNextTo'])['map'](_0x4817bb=>_0x4817bb['suggestion']),_0x30f94b=_0x2503ac({'newValue':_0x418425['newValue']});_0x180bfa['filter'](_0x355262=>{const [_0x3cf225,_0x4acd56]=_0x355262['subType']['split']('|');return _0x3cf225==_0x418425['key']&&_0x4acd56!=_0x30f94b;})['forEach'](_0x36bfba=>{this['_reduceSuggestionAttributeRange'](_0x36bfba,_0x418425['range'],_0x7bcf2f),_0x2e567c=!0x0;});}return _0x2e567c;}['_reduceSuggestionAttributeRange'](_0x21cc45,_0x3b7787,_0x27eaee){const _0x537469=_0x21cc45['getFirstRange']()['getDifference'](_0x3b7787);0x0!==_0x537469['length']?0x1!==_0x537469['length']?this['_breakSuggestionMarker'](_0x21cc45,_0x3b7787['start'],_0x3b7787['end']):this['_setSuggestionRange'](_0x21cc45,_0x537469[0x0]):_0x27eaee['removeMarker'](_0x21cc45['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x7596f2){this['_editor']=_0x7596f2,this['_model']=_0x7596f2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1b4297,_0x27108c,_0x3770dd,_0x11e184,_0x2bc2d6,_0x5d2f72,_0x3df96a){return new R(this['_model'],{'type':_0x1b4297,'subType':_0x27108c,'id':_0x3770dd,'originalSuggestionId':_0x3df96a,'author':_0x11e184,'creator':_0x11e184,'attributes':_0x2bc2d6,'onAttributesChange':_0x5d2f72,'onAccept':(..._0x57eb54)=>this['getSuggestionCallback'](_0x1b4297,_0x27108c,'accept')(..._0x57eb54),'onDiscard':(..._0x2f518d)=>this['getSuggestionCallback'](_0x1b4297,_0x27108c,'discard')(..._0x2f518d)});}['registerCustomCallback'](_0x2946c3,_0x30ce29,_0x48c550,_0x45515c){const _0x498974=_0x2946c3+':'+_0x30ce29+':'+_0x48c550;this['_customCallbacks']['set'](_0x498974,_0x45515c);}['getSuggestionCallback'](_0x25f4ec,_0x2c07e6,_0x10c75c){const _0x4fb449=_0x25f4ec+':'+_0x2c07e6+':'+_0x10c75c;return this['_customCallbacks']['get'](_0x4fb449)||this['_defaultCallbacks']['get'](_0x25f4ec+':'+_0x10c75c);}['_registerDefaultCallbacks'](){const _0x5d5ff8=()=>!0x1,_0x38a13c=_0x483a41=>{_0x483a41['sort']((_0x17b3b2,_0xa22193)=>_0x17b3b2['start']['isBefore'](_0xa22193['start'])?0x1:-0x1),this['_model']['change'](_0x3839e9=>{for(const _0x549f3b of _0x483a41){let _0x173461;_0x173461=_0x549f3b['end']['isAtEnd']&&_0x549f3b['end']['parent']==_0x549f3b['start']['nodeAfter']?_0x3839e9['createSelection'](_0x549f3b['start']['nodeAfter'],'on'):_0x3839e9['createSelection'](_0x549f3b),this['_model']['deleteContent'](_0x173461,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x346a8a=(_0x2e16b7,_0x385959)=>{_0x385959&&this['_model']['change'](_0x5f2e20=>{const {commandName:_0x30dd37,commandParams:_0x2f97a8=[]}=_0x385959,_0x5b81e2=_0x2e16b7['map'](_0x1c633b=>(Kt(_0x1c633b)&&(_0x1c633b=this['_model']['createRange'](_0x1c633b['end'])),_0x1c633b))['filter'](_0x18392b=>'$graveyard'!==_0x18392b['root']['rootName']);if(_0x5b81e2['length']<0x1)return;const _0x1c8062=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4aabd=>_0x3cf104['fromRange'](_0x4aabd));_0x5f2e20['setSelection'](_0x5b81e2);for(const _0x1a6192 of this['_editor']['commands']['commands']())_0x1a6192['refresh']();_0x2f97a8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x30dd37,..._0x2f97a8);const _0x3b670e=_0x1c8062['filter'](_0x5991e3=>'$graveyard'!=_0x5991e3['root']['rootName']);_0x3b670e['length']>0x0&&_0x5f2e20['setSelection'](_0x3b670e);for(const _0x2854c4 of _0x1c8062)_0x2854c4['detach']();});},_0x387cfe=(_0x2e9fa8,_0x5cc0a2)=>0x1==_0x2e9fa8['length']&&0x1==_0x5cc0a2['length']&&_0x2e9fa8[0x0]['end']['isEqual'](_0x5cc0a2[0x0]['start']),_0x13c91c=(_0x3da0ee,_0x1697f3,_0x1ef616,_0x40d891)=>te(_0x3da0ee,_0x1697f3,_0x1ef616,_0x40d891)?[_0x3da0ee,_0x1697f3]:te(_0x1697f3,_0x3da0ee,_0x40d891,_0x1ef616)?[_0x1697f3,_0x3da0ee]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d5ff8),this['_defaultCallbacks']['set']('insertion:discard',_0x38a13c),this['_defaultCallbacks']['set']('insertion:join',_0x387cfe),this['_defaultCallbacks']['set']('insertion:chain',_0x13c91c),this['_defaultCallbacks']['set']('deletion:accept',_0x38a13c),this['_defaultCallbacks']['set']('deletion:discard',_0x5d5ff8),this['_defaultCallbacks']['set']('deletion:join',_0x387cfe),this['_defaultCallbacks']['set']('deletion:chain',_0x13c91c),this['_defaultCallbacks']['set']('formatInline:accept',_0x346a8a),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d5ff8),this['_defaultCallbacks']['set']('formatInline:join',_0x387cfe),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d5ff8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x346a8a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d5ff8),this['_defaultCallbacks']['set']('formatBlock:join',_0x387cfe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d5ff8),this['_defaultCallbacks']['set']('attribute:accept',_0x5d5ff8),this['_defaultCallbacks']['set']('attribute:discard',(_0xdc35bf,_0x4292a8)=>{if(!_0x4292a8)return;const _0x588b15=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x456a14=>{if(_0x4292a8['key']==m)for(const _0x290bbb of _0xdc35bf){const _0x190ce7=_0x290bbb['start']['nodeAfter'],_0x1eb07c=_0x4292a8['oldValue'];_0x456a14['rename'](_0x190ce7,_0x1eb07c);}else{if(_0x588b15['_isBlockAttribute'](_0x4292a8['key'])){for(const _0x12539d of _0xdc35bf)void 0x0!==_0x4292a8['oldValue']?_0x456a14['setAttribute'](_0x4292a8['key'],_0x4292a8['oldValue'],_0x12539d['start']['nodeAfter']):_0x456a14['removeAttribute'](_0x4292a8['key'],_0x12539d['start']['nodeAfter']);}else{for(const _0x5e5dac of _0xdc35bf)_0x4292a8['oldValue']?_0x456a14['setAttribute'](_0x4292a8['key'],_0x4292a8['oldValue'],_0x5e5dac):_0x456a14['removeAttribute'](_0x4292a8['key'],_0x5e5dac);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x387cfe);}}function Jt(_0x235e4f,_0x593653,_0x206f07){for(const _0x155209 of _0x593653['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x155209['root']==_0x155209)return!0x1;if(!_0x206f07['containsItem'](_0x155209))return!0x1;if(_0x235e4f['isObject'](_0x155209)||_0x235e4f['isLimit'](_0x155209))return!0x0;}return!0x1;}function Kt(_0x430f39){return _0x430f39['end']['parent']==_0x430f39['start']['nodeAfter']&&_0x430f39['end']['isAtStart'];}function Ht(_0x5bb1ed,_0x160636,_0x10cf7c,_0x398a8e){const _0x457b9d=_0x460721=>!_0x460721['item']['is']('$textProxy')&&!_0x398a8e['isObject'](_0x460721['item']),_0x97af66=_0x5bb1ed['start']['getLastMatchingPosition'](_0x457b9d),_0x2fd210=_0x5bb1ed['end']['getLastMatchingPosition'](_0x457b9d,{'direction':'backward'});return(!_0x5bb1ed['start']['isEqual'](_0x97af66)||!_0x5bb1ed['end']['isEqual'](_0x2fd210))&&(_0x97af66['isBefore'](_0x2fd210)?_0x10cf7c['updateMarker'](_0x160636,{'range':_0x10cf7c['createRange'](_0x97af66,_0x2fd210)}):_0x10cf7c['removeMarker'](_0x160636),!0x0);}function Wt(_0x199249){return _0x2503ac(_0x199249);}function qt(_0x4e6e6d){const _0x506692=_0x4e6e6d['start']['nodeAfter'];return _0x506692&&_0x506692['is']('element');}function zt(_0x1ed605){return Kt(_0x1ed605)||function(_0x27ec0b){return _0x27ec0b['start']['parent']==_0x27ec0b['end']['nodeBefore']&&_0x27ec0b['start']['isAtEnd'];}(_0x1ed605);}function Qt(_0x323eef,_0x5e2562){try{const _0x4ff298=_0x323eef['getRange']();for(const _0x3d4127 of _0x5e2562)if(_0x323eef!==_0x3d4127&&_0x4ff298&&_0x4ff298['isIntersecting'](_0x3d4127['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x2d2f36,_0x5ea6ec){const _0x1b2f25=_0x2d2f36['end']['nodeBefore'];if(_0x1b2f25&&_0x1b2f25['is']('element')&&_0x5ea6ec['schema']['isBlock'](_0x1b2f25)&&!_0x5ea6ec['schema']['isObject'](_0x1b2f25)){const _0x37752c=_0x5ea6ec['createPositionAt'](_0x1b2f25,'end');return _0x5ea6ec['createRange'](_0x2d2f36['start'],_0x37752c);}return _0x2d2f36;}function Yt(_0x4624fd,_0x59210c){return null==_0x4624fd['end']['nodeBefore']&&_0x4624fd['end']['parent']==_0x4624fd['start']['nodeAfter']?Zt(_0x4624fd['start']['nodeAfter'],_0x59210c):_0x4624fd;}function Zt(_0x546042,_0x5bf758){const _0xc73b34=_0x5bf758['schema']['isObject'](_0x546042)||_0x5bf758['schema']['isSelectable'](_0x546042);return _0x5bf758['createRange'](_0x5bf758['createPositionAt'](_0x546042,'before'),_0xc73b34?_0x5bf758['createPositionAfter'](_0x546042):_0x5bf758['createPositionAt'](_0x546042,'end'));}function te(_0x39b7a6,_0x2a60a0,_0x49c40e,_0x4279bd){return!!ee(_0x39b7a6,_0x2a60a0)&&_0x49c40e['end']['isEqual'](_0x4279bd['start']);}function ee(_0x1b86a9,_0x1b5ba9){if(!_0x1b86a9['_isDataLoaded']||!_0x1b5ba9['_isDataLoaded'])return!0x1;const _0x3e2ec0=new Set(Object['keys'](_0x1b86a9['attributes'])),_0x4fd873=new Set(Object['keys'](_0x1b5ba9['attributes']));if(_0x3e2ec0['delete']('groupId'),_0x4fd873['delete']('groupId'),0x0==_0x3e2ec0['size']&&0x0==_0x4fd873['size'])return!0x0;if(_0x3e2ec0['size']!=_0x4fd873['size'])return!0x1;const _0x1646c={..._0x1b86a9['attributes']},_0x20da82={..._0x1b5ba9['attributes']};return delete _0x1646c['groupId'],delete _0x20da82['groupId'],JSON['stringify'](_0x1646c)==JSON['stringify'](_0x20da82);}function ie(_0x3aed04,_0x36b8d2){const _0x45e088=ne(_0x3aed04['attributes']),_0x1be76a=ne(_0x36b8d2);if(!_0x3aed04['_isDataLoaded'])return!0x1;for(const _0x4c85ca of Object['keys'](_0x1be76a))if(!_0x3a572d(_0x45e088[_0x4c85ca],_0x1be76a[_0x4c85ca]))return!0x1;return!0x0;}function ne(_0x392e64){const _0xb521a3=Object['assign']({},_0x392e64);return delete _0xb521a3['skipNestingCheck'],delete _0xb521a3['tablePasteChainId'],_0xb521a3;}function se(_0x3e0fa7){return _0x3e0fa7['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
+ _0x4b27b1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x56162b,_0x42ba20,_0x5eb339,_0x17f6c9){super(),this['model']=_0x42ba20,this['view']=_0x5eb339,this['commentThreadController']=_0x17f6c9,this['_editor']=_0x56162b,this['_acceptCommand']=_0x56162b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x56162b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1db2f4,_0x4311f0)=>_0x1db2f4||_0x4311f0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xbf63aa=>_0xbf63aa&&this['_editor']['model']['canEditAt'](_0x42ba20['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2e502d=>_0x2e502d&&this['_editor']['model']['canEditAt'](_0x42ba20['getRanges']())),this['_pendingAction']=null,_0x5eb339['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5eb339,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5eb339,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5eb339,'change:isDirty',()=>{_0x5eb339['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 _0x4bef23=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4bef23);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3ab385{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4bdc92,_0x5e7729,_0x31a23e,_0x316ee7){super(_0x4bdc92),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1d71ae(_0x4bdc92,o(_0x4bdc92,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5e7729['authoredAt']),this['bind']('authoredAt')['to'](_0x5e7729),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x5e7729,'authoredAt',this,'descriptionParts',(_0x3f53f3,_0x37069a,_0x55acc3)=>{const _0x239ad7=_0x55acc3['map'](_0x468626=>ls(_0x468626['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3f53f3-0x1,_0x5e7729['author']['name'],_0x37069a?_0x316ee7['formatDateTime'](_0x37069a):'',new DOMParser()['parseFromString'](_0x239ad7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2dcc9b(),this['focusTracker']=new _0x4ec3b5(),this['keystrokes']=new _0x560f46(),this['focusCycler']=new _0xbdb1e6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4b255f=>_0x4b255f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5e7729,this['_localUser']=_0x31a23e,this['_config']=_0x316ee7,_0x316ee7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1a296b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a14aa}=this['_config'];this['commentsListView']=new _0x5a14aa(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',_0x2e3186=>_0x2e3186+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28ae28,_0x3e7039)=>_0x28ae28||!!_0x3e7039);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3ca54d}=this['_config'],_0x1c38b5=new _0x3ca54d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x411fb6=_0x1c38b5['commentInputView'];return _0x1c38b5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x411fb6,'value',(_0x4408d0,_0x12f9af,_0x2fa292)=>!!_0x2fa292||_0x4408d0&&!_0x12f9af),_0x411fb6['on']('submit',(_0x2ba178,_0x46a0cd)=>{this['fire']('addComment',_0x46a0cd),_0x411fb6['editor']['setData']('');}),_0x411fb6['on']('cancel',()=>this['focus']()),_0x411fb6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c38b5;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x578a1f,_0x3fddfb,_0x3a1d65,_0x3f2010){super(_0x578a1f,_0x3fddfb,_0x3a1d65,_0x3f2010),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1bca5c=>_0x1bca5c&&_0x1bca5c[0x0]?_0x1bca5c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x38a026,_0x44e4fc)=>{let _0x3434d4='';for(const _0x338ea3 of _0x38a026)_0x3434d4+='<p>'+ls(_0x338ea3['content'],_0x338ea3['color'])+'</p>';return _0x44e4fc?_0x3434d4:_0x54541d(_0x3434d4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3f2010['SuggestionView'](_0x578a1f,_0x3fddfb,{'formatDateTime':_0x3f2010['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x56b6c6=this['bindTemplate'],_0x382ca0=[this['suggestionView']];return this['commentsListView']&&_0x382ca0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x382ca0['push'](this['commentThreadInputView']),_0x382ca0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x56b6c6['if']('isActive','ck-suggestion-wrapper--active'),_0x56b6c6['to']('type',_0x38dc45=>'ck-suggestion-'+_0x38dc45),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x56b6c6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x382ca0};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class Le extends _0x3ab385{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xf57a37,_0x4b768a,_0x6e3732){super(_0xf57a37),this['_model']=_0x4b768a,this['_config']=_0x6e3732,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b768a),this['acceptButton']=this['_createButton'](o(_0xf57a37,'Accept\x20suggestion'),_0x2e9280,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xf57a37,'Discard\x20suggestion'),_0x5166b3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xe3b622(_0xf57a37,_0x4b768a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2dcc9b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ec3b5(),this['keystrokes']=new _0x560f46(),this['focusCycler']=new _0xbdb1e6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2964f4=>_0x2964f4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x37435b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x37435b['innerHTML']=this['description'],this['on']('change:description',(_0x4bb230,_0x2ff5b7,_0x1c5e30)=>{_0x37435b['innerHTML']=_0x1c5e30;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x313a75=this['bindTemplate'],_0x2c153b=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x313a75['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x313a75['to']('authoredAt',_0x1d0fd5=>this['_config']['formatDateTime'](_0x1d0fd5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2c153b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2c153b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5ef14b,_0x3448ee,_0x2ff7d4,_0x64743d,_0x16f8f1){const _0x341419=new _0x4f3786(this['locale']);return _0x341419['set']({'label':_0x5ef14b,'icon':_0x3448ee,'tooltip':!0x0,'tooltipPosition':_0x16f8f1}),_0x341419['extendTemplate']({'attributes':{'class':_0x2ff7d4}}),_0x341419['on']('execute',()=>{this['fire'](_0x64743d,this['_model']['id']);}),_0x341419;}['_setupKeyboardNavigation'](){const _0x3f09ca=this['element'];this['keystrokes']['listenTo'](_0x3f09ca);for(const _0x27ca7e of this['focusables'])this['focusTracker']['add'](_0x27ca7e['element']),this['keystrokes']['listenTo'](_0x27ca7e['element']);this['keystrokes']['set']('enter',(_0x30ad29,_0x55bbeb)=>{_0x3f09ca===_0x30ad29['target']&&(this['focusCycler']['focusFirst'](),_0x55bbeb());}),this['keystrokes']['set']('esc',(_0x276a1e,_0x233739)=>{_0x3f09ca!==_0x276a1e['target']&&(this['focus'](),_0x233739());});}}class u extends _0x38a85b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1c3104,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x412783){super(_0x412783),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x26d28e=this['editor']['config'];_0x26d28e['define']('trackChanges.SuggestionThreadView',Te),_0x26d28e['define']('trackChanges.SuggestionView',Le),_0x26d28e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x26d28e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4305a7,_0x2700b3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d98bf,_0x1b33e6]of this['_handleControllerBuffer']){const _0x3f0555=this['_suggestionToController']['has'](_0x5d98bf);_0x3f0555||_0x1b33e6?_0x3f0555&&_0x1b33e6&&this['_destroyController'](_0x5d98bf):this['_initializeController'](_0x5d98bf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4305a7,_0x2700b3);}['init'](){const _0x53f88c=this['editor'],_0x1baac1=_0x53f88c['plugins']['get']('TrackChangesEditing'),_0x5bca5a=_0x53f88c['plugins']['get']('Annotations'),_0x10f1f5=_0x53f88c['plugins']['get']('EditorAnnotations'),_0x2a94a9=_0x53f88c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x10f1f5['addSourceCollector'](()=>{const _0x557836=[];for(const [_0x6ed58e,_0x5deeec]of Array['from'](this['_suggestionToController'])){const _0x1f13e4=_0x6ed58e['getAllAdjacentSuggestions'](),_0x58fd37=[];for(const _0x22266e of _0x1f13e4){if(!_0x22266e['isInContent'])continue;if(_0x22266e['isMultiRange']){_0x58fd37['push'](..._0x22266e['getRanges']());continue;}const _0x53f5dc=_0x22266e['getFirstRange']();if(_0x58fd37['length']>0x0){const _0x2f91cd=_0x58fd37[0x0]['getJoined'](_0x53f5dc);if(_0x2f91cd){_0x58fd37[0x0]=_0x2f91cd;continue;}}_0x58fd37['push'](_0x53f5dc);}_0x557836['push']([_0x5deeec['view'],_0x58fd37]);}return _0x557836;}),this['listenTo'](_0x1baac1,'suggestionLoaded',(_0xbacdde,_0x3a6ae8)=>{this['listenTo'](_0x3a6ae8,'change:previous',(_0xd6e693,_0x51ec5b,_0x42c265,_0x4818b4)=>{_0x3a6ae8['isInContent']&&(null==_0x42c265?(this['_updateController'](_0x4818b4['head']),this['_handleSuggestionControllerDelayed'](_0x3a6ae8,!0x1)):(this['_updateController'](_0x42c265['head']),null==_0x4818b4&&this['_handleSuggestionControllerDelayed'](_0x3a6ae8,!0x0)));}),null!==_0x3a6ae8['previous']?this['_updateController'](_0x3a6ae8['head']):this['_handleSuggestionControllerDelayed'](_0x3a6ae8,!0x1);}),this['listenTo'](_0x1baac1,'suggestionUnloaded',(_0xe4344e,_0x12670c,_0x3d21fe)=>{this['stopListening'](_0x12670c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x12670c),this['_suggestionToController']['has'](_0x12670c)&&this['_destroyController'](_0x12670c),_0x3d21fe&&this['_updateController'](_0x3d21fe['head']);}),this['listenTo'](_0x1baac1,'suggestionChanged',(_0x2ee5a5,_0xdffeb7)=>{this['_updateController'](_0xdffeb7);}),this['listenTo'](_0x5bca5a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a94a9,'addComment',(_0xf9c587,{threadId:_0x2acbf1,isFromAdapter:_0x44ae14})=>{if(_0x44ae14||!_0x1baac1['hasSuggestion'](_0x2acbf1))return;const _0x5c5444=_0x1baac1['getSuggestion'](_0x2acbf1);this['_suggestionToController']['get'](_0x5c5444)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe66086=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32807f;for(const _0x3672f0 in _0xe66086){const _0x36170b=_0x3672f0,_0x2d7216=_0xe66086[_0x36170b];if('trackChangesLicenseKeyValid'==_0x2d7216||'trackChangesLicenseKeyInvalid'==_0x2d7216||'trackChangesLicenseKeyExpired'==_0x2d7216||'trackChangesLicenseKeyDomainLimit'==_0x2d7216||'trackChangesLicenseKeyNotAllowed'==_0x2d7216||'trackChangesLicenseKeyEvaluationLimit'==_0x2d7216||'trackChangesLicenseKeyTrialLimit'==_0x2d7216||'trackChangesLicenseKeyUsageLimit'==_0x2d7216){delete _0xe66086[_0x36170b],_0x32807f=_0x2d7216,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x32807f&&_0xe66086['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x32807f&&_0xe66086['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x32807f&&_0xe66086['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x32807f&&_0xe66086['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x32807f&&_0xe66086['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x32807f&&_0xe66086['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x32807f&&_0xe66086['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x356596){const _0x106a79=this['_suggestionToController']['get'](_0x356596);if(!_0x106a79)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x106a79['view'])||null;}['getSuggestionForAnnotation'](_0x3fd3de){const _0xdafed=this['_viewToController']['get'](_0x3fd3de['innerView']);return _0xdafed?_0xdafed['model']:null;}['_refreshActiveMarkers'](){const _0x1e97d8=this['editor']['plugins']['get']('Annotations'),_0x2c1443=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b00b=Array['from'](_0x1e97d8['activeAnnotations'],_0x261b8e=>_0x261b8e['innerView'])['filter'](_0xbd603a=>this['_viewToController']['has'](_0xbd603a)),_0x35a883=[];for(const _0x51394f of _0x51b00b){const _0x2324b5=this['_viewToController']['get'](_0x51394f)['model']['getAllAdjacentSuggestions']();_0x35a883['push'](..._0x2324b5['reduce']((_0x3f544c,_0x5d3110)=>[..._0x3f544c,..._0x5d3110['getMarkerNames']()],[]));}_0x2c1443['activeMarkers']=_0x35a883;}['_addUIComponentsToFactory'](){const _0x4a53f1=this['editor'],_0x5599c8=_0x4a53f1['locale'],_0x45336f=o(_0x5599c8,'Track\x20changes'),_0x7cd94c=new _0x179ee7([{'type':'switchbutton','model':new _0x25c906({'withText':!0x0,'isToggleable':!0x0,'label':_0x45336f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x25c906({'withText':!0x0,'label':o(_0x5599c8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25c906({'withText':!0x0,'label':o(_0x5599c8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25c906({'withText':!0x0,'label':o(_0x5599c8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25c906({'withText':!0x0,'label':o(_0x5599c8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4a53f1['plugins']['has']('TrackChangesPreview')&&_0x7cd94c['addMany']([{'type':'separator'},{'type':'button','model':new _0x25c906({'withText':!0x0,'label':o(_0x5599c8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x248fdb of _0x7cd94c)if(ve(_0x248fdb)){const _0xbdf84a=_0x4a53f1['commands']['get'](_0x248fdb['model']['commandName']);_0x248fdb['model']['bind']('isOn','isEnabled')['to'](_0xbdf84a,'value','isEnabled');}_0x4a53f1['ui']['componentFactory']['add']('trackChanges',_0x397bc4=>this['_createToolbarButton'](_0x397bc4,_0x7cd94c,_0x45336f)),_0x4a53f1['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5a5a4f=>this['_createMenuBarMenu'](_0x5a5a4f,_0x7cd94c,_0x45336f));}['_createToolbarButton'](_0x1e9508,_0x521a3a,_0x2c2350){const _0x25673c=_0x11ef6b(_0x1e9508,_0x7ade1c),_0x4131f9=this['editor']['commands']['get']('trackChanges');_0x25673c['buttonView']['set']({'tooltip':_0x2c2350,'label':_0x2c2350,'icon':_0x6dccd5}),_0x25673c['buttonView']['bind']('isOn')['to'](_0x4131f9,'value'),_0x25673c['buttonView']['on']('execute',()=>{_0x4131f9['execute'](),this['editor']['editing']['view']['focus']();}),_0x2b59df(_0x25673c,_0x521a3a,{'role':'menu'});const _0x4ebb79=[];for(const _0x220c27 of _0x521a3a)ve(_0x220c27)&&_0x4ebb79['push'](this['editor']['commands']['get'](_0x220c27['model']['commandName']));const _0x58f6ee=_0x25673c['buttonView'];return _0x58f6ee['actionView']['unbind']('isEnabled'),_0x58f6ee['arrowView']['unbind']('isEnabled'),_0x58f6ee['actionView']['bind']('isEnabled')['to'](_0x4131f9,'isEnabled'),_0x58f6ee['arrowView']['bind']('isEnabled')['toMany'](_0x4ebb79,'isEnabled',(..._0x3c023d)=>_0x3c023d['some'](_0x85e673=>_0x85e673)),_0x25673c['on']('execute',_0x598dcc=>{this['editor']['execute'](_0x598dcc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x25673c;}['_createMenuBarMenu'](_0x497991,_0x543bd2,_0x357516){const _0x358f32=new _0x3c2db9(_0x497991),_0x122c7b=this['editor']['commands']['get']('trackChanges');_0x358f32['buttonView']['set']({'label':_0x357516,'icon':_0x6dccd5});const _0x119a95=new _0x7a90d6(_0x497991);for(const _0x13e11e of _0x543bd2){if('separator'==_0x13e11e['type']){_0x119a95['items']['add'](new _0xfbb784(_0x497991));continue;}const _0x50036e=new _0x40176a(_0x497991,_0x358f32),_0x237a94=new _0x12c7a2(_0x497991),_0x1a0fbc=_0x13e11e['model'];_0x237a94['bind'](...Object['keys'](_0x1a0fbc))['to'](_0x1a0fbc),_0x237a94['delegate']('execute')['to'](_0x358f32),_0x237a94['on']('execute',()=>{this['editor']['execute'](_0x1a0fbc['commandName']),this['editor']['editing']['view']['focus']();}),_0x50036e['children']['add'](_0x237a94),_0x119a95['items']['add'](_0x50036e);}return _0x358f32['bind']('isEnabled')['to'](_0x122c7b,'isEnabled'),_0x358f32['panelView']['children']['add'](_0x119a95),_0x358f32;}['_initializeController'](_0x31c516){const _0x3e76bc=this['editor'],_0x4d7284=_0x3e76bc['config'],_0x3b71b0=_0x3e76bc['plugins']['get']('Annotations'),_0x1fc43f=_0x3e76bc['plugins']['get']('CommentsRepository'),_0x5e7a25=_0x3e76bc['plugins']['get']('EditorAnnotations'),_0x2cec29=_0x3e76bc['plugins']['get'](_0x1c3104)['me'],_0xab368f=_0x4d7284['get']('trackChanges')['SuggestionThreadView'],_0x1ac4ad=_0x4d7284['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1d28f9,CommentThreadInputView:_0x48ed81}=_0x3e76bc['plugins']['get']('CommentsUI');let _0x4edd1c,_0x13edc5,_0x51007c;this['_annotationViews']['has'](_0x31c516['id'])?(_0x13edc5=this['_annotationViews']['get'](_0x31c516['id']),_0x4edd1c=_0x13edc5['mainView']):(_0x4edd1c=new _0xab368f(_0x3e76bc['locale'],_0x31c516,_0x2cec29,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4d7284['get']('comments.editorConfig'),'licenseKey':_0x4d7284['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4d7284['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d7284['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d7284['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3464b4(_0x4d7284['get']('locale'),_0x3e76bc['locale']),'CommentView':_0x4d7284['get']('comments')['CommentView'],'CommentsListView':_0x1d28f9,'CommentThreadInputView':_0x48ed81,'SuggestionView':_0x1ac4ad}),_0x4edd1c['suggestionView']['acceptButton']['on']('execute',()=>{_0x3e76bc['editing']['view']['focus']();}),_0x4edd1c['suggestionView']['discardButton']['on']('execute',()=>{_0x3e76bc['editing']['view']['focus']();}),_0x13edc5=_0x3b71b0['createAnnotationView'](this['editor']['locale'],_0x4edd1c),_0x13edc5['bind']('isDirty')['to'](_0x4edd1c,'isDirty'),_0x13edc5['bind']('length')['to'](_0x4edd1c),_0x13edc5['bind']('type')['to'](_0x4edd1c,'type',_0x494c2d=>'suggestion-'+_0x494c2d),_0x4edd1c['on']('escape',()=>{_0x51007c['fire']('escape');}),this['_annotationViews']['set'](_0x31c516['id'],_0x13edc5));const _0x4c0419=_0x1fc43f['createCommentThreadController'](_0x31c516['commentThread'],_0x4edd1c),_0x1ac2e2=new be(_0x3e76bc,_0x31c516,_0x4edd1c,_0x4c0419),_0xcc125d=_0x31c516['getAllAdjacentSuggestions']()['filter'](_0x11d5b1=>_0x11d5b1['isInContent']);_0x4edd1c['descriptionParts']=_0x3e76bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xcc125d),this['_suggestionToController']['set'](_0x31c516,_0x1ac2e2),this['_viewToController']['set'](_0x4edd1c,_0x1ac2e2);const _0x5f25d7=()=>{const _0x446997=[],_0x18dc14=_0x31c516['getAllAdjacentSuggestions']()['filter'](_0x5871b8=>_0x5871b8['isInContent']);for(const _0x36e149 of _0x18dc14)_0x446997['push'](..._0x36e149['getMarkers']());return _0x5861d8(_0x3e76bc['editing'],_0x446997);};_0x51007c=_0x3b71b0['createAnnotation']({'view':_0x13edc5,'target':_0x5f25d7,'type':()=>'suggestion-'+_0x1ac2e2['view']['type'],'isVisible':!!_0x5f25d7()}),_0x1fc43f['_bindAnnotationToEditors'](_0x4edd1c,_0x51007c),_0x3b71b0['add'](_0x51007c),_0x5e7a25['registerAnnotation'](_0x51007c);}['_destroyController'](_0x1f441a){const _0x1eb81d=this['editor']['plugins']['get']('CommentsRepository'),_0x53546e=this['editor']['plugins']['get']('Annotations'),_0x4a4697=this['_suggestionToController']['get'](_0x1f441a),_0x5f48e2=_0x4a4697['view'],_0x290a6f=_0x53546e['getByInnerView'](_0x5f48e2);_0x1eb81d['_unbindEditors'](_0x5f48e2),_0x290a6f&&_0x53546e['remove'](_0x290a6f),this['_suggestionToController']['delete'](_0x1f441a),this['_viewToController']['delete'](_0x5f48e2),_0x4a4697['destroy']();}['_updateController'](_0x3f51e3){if(!_0x3f51e3['isInContent']||!this['_suggestionToController']['has'](_0x3f51e3))return;const _0x526d81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dc22b=this['_suggestionToController']['get'](_0x3f51e3),_0x5b58b8=_0x3f51e3['getAllAdjacentSuggestions']();_0x1dc22b['view']['descriptionParts']=_0x526d81['descriptionFactory']['getDescriptions'](_0x5b58b8);}['destroy'](){for(const _0x16b1da of this['_suggestionToController']['keys']())this['_destroyController'](_0x16b1da);for(const _0x385e21 of this['_annotationViews']['values']())_0x385e21['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x54dbed){return'model'in _0x54dbed;}class Ve extends _0x38a85b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1b73dc){this['editor']['plugins']['get'](d)['adapter']=_0x1b73dc;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xdbb59){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xdbb59);}['getSuggestions']({skipNotAttached:_0x16ce96=!0x1,toJSON:_0x20c7e4=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x16ce96,'toJSON':_0x20c7e4});}['getSuggestion'](_0x233c70){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x233c70);}}const p=['Pagination'];class ce extends _0x38a85b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1bfed5=this['editor'];if(_0x1bfed5['config']['define']('trackChangesData.editorCreator',_0x2f6d58=>{const _0x9c38ed=_0x1bfed5['model']['document']['getRootNames']()['reduce']((_0x3a0436,_0x3e7abe)=>(_0x3a0436[_0x3e7abe]='',_0x3a0436),{});return _0x1bfed5['constructor']['create'](_0x9c38ed,_0x2f6d58);}),'function'!=typeof _0x1bfed5['config']['get']('trackChangesData')['editorCreator'])throw new _0x1aff0b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x14fc2a){return P(this['editor'],!0x0,_0x14fc2a);}['getDataWithDiscardedSuggestions'](_0x2054dc){return P(this['editor'],!0x1,_0x2054dc);}}class ze extends _0x38a85b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c6af7){function _0x51b95c(_0x1b9cf5){return _0x1b9cf5['map'](_0x442aec=>String['fromCharCode'](_0x442aec))['join']('');}super(_0x2c6af7),this['result']='end',_0x2c6af7[_0x51b95c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51b95c([0x76,0x69,0x65,0x77])][_0x51b95c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51b95c([0x61,0x75,0x74,0x6f]),_0x2c6af7[_0x51b95c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51b95c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51b95c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51b95c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51b95c([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ke(_0x8bea78){return void 0x0!==_0x8bea78['getRootsAttributes'];}async function P(_0x323edd,_0x39365b,_0x167941){const _0x2f997c=_0x223bb1(_0x323edd,p);_0x2f997c['plugins']['push'](d,ze),_0x2f997c['rootsAttributes']=Ke(_0x323edd)?_0x323edd['getRootsAttributes']():void 0x0;const _0x14590f=document['createDocumentFragment'](),_0x586b91=_0x323edd['config']['get']('trackChangesData')['editorCreator'],_0x1e31f2=await _0x586b91(_0x2f997c,()=>function(_0x58e2b8){const _0x30d7f0=document['createElement']('div');return _0x58e2b8['appendChild'](_0x30d7f0),_0x30d7f0;}(_0x14590f));!function(_0x44ed56,_0x289103){const _0x2a2686=_0x44ed56['model']['document']['getRootNames']()['reduce']((_0x93e703,_0x13967b)=>(_0x93e703[_0x13967b]=_0x44ed56['data']['get']({'rootName':_0x13967b}),_0x93e703),{}),_0x1949fe=_0x44ed56['plugins']['get']('Users')['users']['map'](_0x15ceb3=>({'id':_0x15ceb3['id'],'name':_0x15ceb3['name']})),_0x3af1c7=_0x44ed56['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52b628=_0x44ed56['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a2b46=_0x289103['plugins']['get']('Users'),_0x4704cd=_0x289103['plugins']['get']('TrackChangesEditing'),_0x183c5a=_0x289103['plugins']['get']('CommentsRepository');for(const _0x195c12 of _0x183c5a['getCommentThreads']())_0x195c12['remove']();for(const _0x42049e of _0x1949fe)_0x1a2b46['getUser'](_0x42049e['id'])||_0x1a2b46['addUser'](_0x42049e);_0x1a2b46['me']||_0x1a2b46['useAnonymousUser']();for(const _0x365ce1 of _0x52b628)_0x183c5a['addCommentThread'](_0x365ce1);for(const _0x388b2e of _0x3af1c7)_0x4704cd['addSuggestionData'](_0x388b2e);_0x289103['data']['set'](_0x2a2686);}(_0x323edd,_0x1e31f2),_0x1e31f2['execute'](_0x39365b?'acceptAllSuggestions':'discardAllSuggestions');const _0x275ff2=Ke(_0x1e31f2)?_0x1e31f2['getFullData'](_0x167941):_0x1e31f2['data']['get'](_0x167941);return await _0x1e31f2['destroy'](),_0x275ff2;}class _e extends _0x3ab385{['options'];constructor(_0x44abed,_0x107d8f){super(_0x44abed),this['options']=_0x107d8f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x270a76,_0x211714){if(!this['element'])return;const _0x4f0ac8=[];for(const [_0x17d857,_0x43552e]of _0x270a76){const _0x35f927=document['createElement']('div');_0x35f927['setAttribute']('data-ck-root-name',_0x17d857),_0x35f927['className']=_0x43552e['classes']+'\x20ck-track-changes-preview__root-container',_0x35f927['innerHTML']=_0x43552e['content'],_0x4f0ac8['push'](_0x35f927);}_0x211714(this['element'],_0x4f0ac8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x57e15d{constructor(_0x47fdaa){super(_0x47fdaa),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1a1410=this['editor'],_0x257199=_0x1a1410['locale'],_0x1fd9a9=_0x1a1410['plugins']['get']('Dialog');let _0x42b663;const _0x2bf03c=function(_0x13272b){const _0x4463de={};if('editables'in _0x13272b['ui']['view']){for(const [_0x15845f,_0x26e872]of Object['entries'](_0x13272b['ui']['view']['editables']))_0x4463de[_0x15845f]=_0x26e872['element'];}else _0x4463de[_0x13272b['model']['document']['getRootNames']()[0x0]]=_0x13272b['ui']['view']['editable']['element'];return _0x4463de;}(_0x1a1410),_0x2acdf7=function(_0x5af8f8){let _0x1d390c=0x0;for(const _0x385ce8 of Object['values'](_0x5af8f8))_0x1d390c=Math['max'](_0x1d390c,_0x385ce8['getBoundingClientRect']()['width']);let _0x2061cd=0x0;for(const _0x3e37fa of Object['values'](_0x5af8f8))_0x2061cd+=_0x3e37fa['getBoundingClientRect']()['height'];const _0x231fc6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2c6cd0=Math['min'](_0x2061cd,_0x231fc6);return{'width':_0x1d390c,'height':_0x2c6cd0};}(_0x2bf03c);_0x1fd9a9['show']({'id':'finalContentPreview','title':o(_0x257199,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x257199,{'dialogRects':_0x2acdf7}),'onHide':()=>{_0x42b663['detachFromDom']();},'onShow':()=>{_0x1a1410['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4fde7c=>{const _0x39bf6b=this['_standarizeRootsData'](_0x4fde7c,_0x1a1410,_0x2bf03c);_0x1fd9a9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x39bf6b,_0x1a1410['config']['get']('trackChanges.preview.renderFunction'));}),_0x42b663=new _0x5d93da(_0x257199,[_0x1fd9a9['view']]),_0x42b663['attachToDom'](),_0x42b663['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a1410['once']('destroy',()=>{_0x42b663['detachFromDom']();});const _0x3dddb5=_0x1fd9a9['view']['headerView']['class'];_0x1fd9a9['view']['headerView']['class']=_0x3dddb5?_0x3dddb5+'\x20ck-reset_all':'ck-reset_all',_0x1fd9a9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1fd9a9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1127c5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4cc948=_0x1127c5['previewMode'],_0x630541={};if('$labels'===_0x4cc948){for(const _0x407063 of _0x1127c5['getMergeFieldsIds']())_0x630541[_0x407063]=_0x1127c5['getLabel'](_0x407063)||_0x407063;}else{const _0x8a895f='$defaultValues'===_0x4cc948?_0x1127c5['getDefaultValues']():_0x1127c5['getDataSetValues'](_0x4cc948,!0x0);for(const _0x41a8c7 of Object['entries'](_0x8a895f)){const [_0x549ab2,_0x71448d]=_0x41a8c7;_0x630541[_0x549ab2]=null!==_0x71448d?_0x71448d:_0x1127c5['getLabel'](_0x549ab2)||_0x549ab2;}}return{'mergeFieldsData':_0x630541};}['_standarizeRootsData'](_0xd80ae7,_0x43b722,_0x1e9b77){let _0x2f6515;if('string'==typeof _0xd80ae7){const _0x4ae8b1=_0x43b722['model']['document']['getRootNames']()[0x0];_0x2f6515={[_0x4ae8b1]:_0xd80ae7};}else _0x2f6515=_0xd80ae7;const _0x5a03ed=this['_fixMediaEmbeds'](_0x2f6515,_0x43b722),_0x4a1518=function(_0x34bf47,_0x5b9898){for(const [_0x1cec2b,_0x719b94]of _0x34bf47)_0x719b94['classes']=_0x5b9898[_0x1cec2b]['classList']['value']['replace']('ck-focused','');return _0x34bf47;}(this['_sortRoots'](_0x43b722)['reduce']((_0x53d489,_0x22ea2f)=>(_0x53d489['push']([_0x22ea2f,{'content':_0x5a03ed[_0x22ea2f],'classes':''}]),_0x53d489),[]),_0x1e9b77);return _0x4a1518;}['_fixMediaEmbeds'](_0x389bc7,_0x48928c){if(!_0x48928c['plugins']['has']('MediaEmbedEditing'))return _0x389bc7;const _0x4680eb=_0x48928c['plugins']['get']('MediaEmbedEditing');for(const [_0x54393e,_0x595f80]of Object['entries'](_0x389bc7)){const _0x4e7fe8=document['createElement']('div');_0x4e7fe8['innerHTML']=_0x595f80,(_0x4e7fe8['querySelectorAll']('figure.media')['forEach'](_0x4ac557=>{const _0x4e69c8=_0x4ac557['querySelector']('oembed');if(_0x4e69c8){const _0x221177=_0x4e69c8['getAttribute']('url');if(_0x221177){const _0x5c2f05=_0x4680eb['registry']['getMediaViewElement'](new _0x241f79(_0x48928c['editing']['view']['document']),_0x221177,{'elementName':'','renderForEditingView':!0x0}),_0x96c5c9=document['createElement']('div');_0x96c5c9['classList']['add']('ck-media__wrapper'),_0x5c2f05['render'](_0x96c5c9,_0x48928c['editing']['view']['domConverter']),_0x4e69c8['replaceWith'](_0x96c5c9);}}}),_0x389bc7[_0x54393e]=_0x4e7fe8['innerHTML']);}return _0x389bc7;}['_sortRoots'](_0x1834fd){if(!function(_0x3ee847){return void 0x0!==_0x3ee847['getRootsAttributes'];}(_0x1834fd))return _0x1834fd['model']['document']['getRootNames']();const _0x14553d=[],_0x3aea1e=new Map();for(const _0x2941fe of _0x1834fd['model']['document']['getRootNames']()){const _0x4776e5=_0x1834fd['editing']['view']['getDomRoot'](_0x2941fe)['getClientRects']()['item'](0x0);_0x14553d['push'](_0x2941fe),_0x3aea1e['set'](_0x2941fe,_0x4776e5);}return _0x14553d['sort']((_0xef88b8,_0x4d2a38)=>{const _0x3abdd0=_0x3aea1e['get'](_0xef88b8),_0x574d09=_0x3aea1e['get'](_0x4d2a38);return _0x3abdd0['y']-_0x574d09['y']||_0x3abdd0['x']-_0x574d09['x'];}),_0x14553d;}}class Xe extends _0x38a85b{static get['requires'](){return[ce,_0xc93136];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46bad0){super(_0x46bad0),_0x46bad0['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x46bad0['config']['define']('trackChanges.preview.renderFunction',(_0x5de1d9,_0x581fb5)=>{for(const _0x29b6e7 of _0x581fb5)_0x5de1d9['appendChild'](_0x29b6e7);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};