@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241220.0 → 0.0.0-nightly-20241222.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x24408b,PendingActions as _0xd69aae,icons as _0x43d26d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x8f85e0,ObservableMixin as _0x17df49,uid as _0x425cf6,insertToPriorityArray as _0x242f2d,priorities as _0x5d6642,logWarning as _0x28fa34,getEnvKeystrokeText as _0x5ec991,FocusTracker as _0x3b7a61,KeystrokeHandler as _0x3b9ae0,Collection as _0x109d00}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x54f2d2,View as _0x40ff7d,ViewCollection as _0x5ba192,FocusCycler as ts,ViewModel as _0x864a73,createDropdown as _0x1547e8,SplitButtonView as _0x4431e6,addListToDropdown as te,MenuBarMenuView as _0x3107b,MenuBarMenuListView as _0x4f4449,ListSeparatorView as _0x1f6633,MenuBarMenuListItemView as _0x32a6b8,MenuBarMenuListItemButtonView as _0x18e15e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x21fc14,hashObject as _0x3aa329,surroundingMarkersDetector as _0x3efab9,FOCUS_ANNOTATION_KEYSTROKE as _0x46dbe4,AriaDescriptionView as _0x39d50d,setupThreadKeyboardNavigation as _0x933eaf,trimHtml as ti,UserView as _0xdf1a50,LateFocusButtonView as _0x146dcb,getDateTimeFormatter as _0x23e6a6,getAllMarkersDomElementsSorted as _0x3e695b,sanitizeEditorConfig as _0x1fc5ea}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x505d02,LiveRange as _0x5103d1,LivePosition as _0x3db975}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x43bde1,toWidget as _0x21cec0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x14e263,set as _0x14b4a9,isEqual as _0x189bdb,unset as _0x153462,omit as xt}from'lodash-es';import{Delete as _0x2280a6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2cb551,ShiftEnter as _0x5507b4}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x2d99e2,_0x3f76d1){super(_0x2d99e2),this['_enabledCommands']=_0x3f76d1,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 _0x17312d of this['editor']['commands']['commands']())_0x17312d['affectsData']&&!this['_enabledCommands']['has'](_0x17312d)&&_0x17312d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x456244 of this['editor']['commands']['commands']())_0x456244['affectsData']&&!this['_enabledCommands']['has'](_0x456244)&&_0x456244['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x1be301,_0x591002){super(_0x1be301),this['_suggestions']=_0x591002,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x53462a){const _0x1dfef6=this['_suggestions']['get'](_0x53462a);if(!_0x1dfef6)throw new _0x8f85e0('track-changes-accept-suggestion-not-found',this);const _0x4f5114=_0x1dfef6['getRanges']();this['editor']['model']['canEditAt'](_0x4f5114)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1dfef6);}}class R extends Qt{['_suggestions'];constructor(_0x26adf6,_0x2930fb){super(_0x26adf6),this['_suggestions']=_0x2930fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x127a04){const _0x19dd6e=this['_suggestions']['get'](_0x127a04);if(!_0x19dd6e)throw new _0x8f85e0('track-changes-discard-suggestion-not-found',this);const _0x1dac24=_0x19dd6e['getRanges']();this['editor']['model']['canEditAt'](_0x1dac24)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x19dd6e);}}function ns(_0x3bc760,_0x3895ec){let _0x1aeebf='';return _0x1aeebf+=_0x3bc760['split']('*')['map']((_0xff959f,_0x3313fb)=>_0x3313fb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xff959f)+'</span>':nn(_0xff959f))['join'](''),_0x3895ec&&(_0x1aeebf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3895ec['value']+'\x22\x20title=\x22'+_0x3895ec['title']+'\x22></span>'),_0x1aeebf;}function nn(_0x73ffad){const _0x2ad7e7=document['createElement']('span');return _0x2ad7e7['innerText']=_0x73ffad,_0x2ad7e7['innerHTML'];}function Wt(_0x2dda0e){return _0x2dda0e['sort']((_0x41f77f,_0x160540)=>'deletion'==_0x41f77f['type']&&'deletion'!=_0x160540['type']?-0x1:'deletion'!=_0x41f77f['type']&&'deletion'==_0x160540['type']?0x1:0x0);}function to(_0x240e66,_0x3f3740){let _0x446198,_0x32bf16=0x0;const _0xa45569=[],_0x50a3b9=_0x3f3740['schema'];for(;_0x32bf16<_0x240e66['length'];){const _0x4de034=_0x240e66[_0x32bf16],_0x34a244=_0x240e66[_0x32bf16+0x1];_0x446198||(_0x446198=_0x3f3740['createPositionBefore'](_0x4de034)),on(_0x3f3740,_0x4de034,_0x34a244)||(_0xa45569['push'](_0x3f3740['createRange'](_0x446198,_0x50a3b9['isObject'](_0x4de034)?_0x3f3740['createPositionAfter'](_0x4de034):_0x3f3740['createPositionAt'](_0x4de034,'end'))),_0x446198=null),_0x32bf16++;}return _0xa45569;}function on(_0x4b9e27,_0x43b3e5,_0x22077b){if(!_0x22077b)return!0x1;const _0x2a1818=_0x4b9e27['createPositionAfter'](_0x43b3e5),_0x1b65ed=_0x4b9e27['createPositionBefore'](_0x22077b);return _0x2a1818['isTouching'](_0x1b65ed);}function Xt(_0x147edf,_0x16140d,_0x1684b9){for(;_0x1684b9['length'];){const _0x432b42=_0x1684b9['splice'](0x0,0x64);_0x147edf['change'](()=>{for(const _0x44dcf3 of _0x432b42)_0x44dcf3['isInContent']&&_0x16140d['execute'](_0x44dcf3['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x4916f2,_0x328058,_0x469228){super(_0x4916f2),this['_command']=_0x328058,this['_suggestions']=_0x469228,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53dd38=Array['from'](this['_suggestions']['values']())['some'](_0x5221af=>_0x5221af['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x53dd38;}['execute'](){const _0x466010=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x30878e of _0x466010){const _0x5acf75=_0x30878e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5acf75))return;}Xt(this['editor']['model'],this['_command'],_0x466010);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3e46a3,_0x50cba5,_0x545e6f){super(_0x3e46a3),this['_command']=_0x50cba5,this['_suggestions']=_0x545e6f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xb91901=this['editor']['model']['document']['selection'],_0x1251c5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x16d77c,_0x3798ec){const _0x4b2f52=Array['from'](_0x16d77c['getRanges']()),_0x38506f=new Set();for(const _0x27e727 of _0x3798ec)if(_0x27e727['isInContent']){for(const _0x4843fb of _0x4b2f52)for(const _0x9d8730 of _0x27e727['getRanges']())(_0x4843fb['isIntersecting'](_0x9d8730)||_0x16d77c['isCollapsed']&&!_0x27e727['isMultiRange']&&_0x27e727['next']&&_0x9d8730['end']['isTouching'](_0x4843fb['start']))&&_0x38506f['add'](_0x27e727);}return _0x38506f;}(_0xb91901,_0x1251c5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3dc348=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x3d2a8f of _0x3dc348){const _0x5c1e2d=_0x3d2a8f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c1e2d))return;}Xt(this['editor']['model'],this['_command'],_0x3dc348);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x17df49(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x7b4a3f,_0x32f6e7){super(),this['id']=_0x32f6e7['id'],this['type']=_0x32f6e7['type'],this['subType']=_0x32f6e7['subType']||null,this['author']=_0x32f6e7['author'],this['creator']=_0x32f6e7['creator']||_0x32f6e7['author'],this['isExternal']=Boolean(_0x32f6e7['attributes']&&_0x32f6e7['attributes']['@external']),this['data']=null,this['_model']=_0x7b4a3f,this['_onAccept']=_0x32f6e7['onAccept'],this['_onDiscard']=_0x32f6e7['onDiscard'],this['_onAttributesChange']=_0x32f6e7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x32f6e7['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 _0x210757=this;for(;_0x210757['previous'];)_0x210757=_0x210757['previous'];return _0x210757;}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'](_0x420e88){this['_markerNames']['add'](_0x420e88);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5e5b8a=>this['_model']['markers']['get'](_0x5e5b8a))['filter'](_0xaf270f=>_0xaf270f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b5d17=>{for(const _0x4336f5 of this['getMarkers']())_0x4b5d17['removeMarker'](_0x4336f5);}),this['_markerNames']['clear']();}['removeMarker'](_0x3fcf37){this['_model']['change'](_0x45cbb5=>{_0x45cbb5['removeMarker'](_0x3fcf37);}),this['_markerNames']['delete'](_0x3fcf37);}['addRange'](_0x3d8b14){const _0x925cdd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x925cdd),this['_model']['change'](_0x3ada37=>{_0x3ada37['addMarker'](_0x925cdd,{'range':_0x3d8b14,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1a0605){for(const _0x2e041b of this['getRanges']())if(_0x2e041b['isIntersecting'](_0x1a0605))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1bb2b3=>_0x1bb2b3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d56d7,_0x3025e7)=>[..._0x3d56d7,..._0x3025e7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x46e321=this['getRanges']();if(0x1!=_0x46e321['length'])return null;const _0xe2747c=_0x46e321[0x0],_0x5055e2=_0xe2747c['start']['nodeAfter'],_0x419240=_0xe2747c['end']['nodeBefore'];return _0x5055e2 instanceof _0x505d02?_0x5055e2!=_0x419240?null:_0x5055e2: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 _0x37c1d3=[];let _0x11a214=this['head'];for(;_0x11a214;)_0x37c1d3['push'](_0x11a214),_0x11a214=_0x11a214['next'];return _0x37c1d3;}['setAttribute'](_0x79d2bb,_0x5f7299){const _0x31191d=_0x14e263(this['attributes']);_0x14b4a9(_0x31191d,_0x79d2bb,_0x5f7299),_0x189bdb(_0x31191d,this['attributes'])||(this['attributes']=_0x31191d,this['_onAttributesChange'](_0x31191d));}['removeAttribute'](_0x4136fb){const _0x2ec96e=_0x14e263(this['attributes']);_0x153462(_0x2ec96e,_0x4136fb),_0x189bdb(_0x2ec96e,this['attributes'])||(this['attributes']=_0x2ec96e,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 _0x425cf6()['substr'](0x1,0x5);}}function o(_0x1a8dad,_0x383689,_0x33af2a){const _0x1c3ec4=_0x1a8dad['t'],t=_0x1a8dad['t'];switch(_0x383689){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x33af2a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33af2a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33af2a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33af2a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33af2a);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',_0x33af2a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33af2a);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x33af2a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33af2a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33af2a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33af2a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33af2a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33af2a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33af2a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33af2a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33af2a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33af2a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33af2a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33af2a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33af2a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33af2a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33af2a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33af2a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33af2a);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'},_0x33af2a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33af2a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33af2a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33af2a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33af2a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33af2a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33af2a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33af2a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33af2a);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'},_0x33af2a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x33af2a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33af2a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33af2a);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 _0x1c3ec4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33af2a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1c3ec4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33af2a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33af2a);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'},_0x33af2a);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'},_0x33af2a);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'},_0x33af2a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x383689;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1b1d15,_0x5c1a2d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1b1d15,this['_locale']=_0x5c1a2d;}['getDescriptions'](_0x491ff6){const _0xf08af2=[],_0x35c530=new Set(),_0x84ac5a=new Set();for(let _0x107b7b=0x0;_0x107b7b<_0x491ff6['length'];_0x107b7b++){const _0x798dc5=_0x491ff6[_0x107b7b];if(!_0x798dc5['isInContent'])continue;const _0x1f0b7c=this['_handleCustomCallbackDescription'](_0x798dc5);if(_0x1f0b7c){if(null!=_0x798dc5['subType']){if(_0x35c530['has'](_0x798dc5['subType']))continue;_0x35c530['add'](_0x798dc5['subType']);}_0xf08af2['push'](_0x1f0b7c);}else{if('attribute'!=_0x798dc5['type'])'insertion'!=_0x798dc5['type']&&'deletion'!=_0x798dc5['type']||this['_handleInsertRemoveSuggestionDescription'](_0xf08af2,_0x798dc5,_0x491ff6[_0x107b7b+0x1]);else{const _0x29398a=_0x798dc5['data']['key'];if(_0x84ac5a['has'](_0x29398a))continue;_0x84ac5a['add'](_0x798dc5['data']['key']),_0x29398a==m?this['_handleRenameSuggestionDescription'](_0xf08af2,_0x798dc5):this['_handleAttributeSuggestionDescription'](_0xf08af2,_0x798dc5);}}}return this['_resolveDescriptionItems'](_0xf08af2);}['registerDescriptionCallback'](_0x73f336){this['_customCallbacks']['push'](_0x73f336);}['registerElementLabel'](_0x14d890,_0x5825ae,_0x2b09f0=_0x5d6642['normal']){'function'==typeof _0x14d890?_0x242f2d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x14d890,'label':_0x5825ae,'priority':_0x2b09f0}):this['_itemLabels']['set'](_0x14d890,_0x5825ae);}['registerAttributeLabel'](_0x3f7bda,_0x55b643){this['_attributeLabels']['set'](_0x3f7bda,_0x55b643);}['getItemLabel'](_0x8196e1,_0x562e2a=0x1){let _0x255ba3;for(const _0x55f9ef of this['_itemLabelsCallbacks'])if(_0x55f9ef['matchingCallback'](_0x8196e1)){_0x255ba3=_0x55f9ef['label'];break;}return _0x255ba3||(_0x255ba3=this['_itemLabels']['get'](_0x8196e1['name'])),_0x255ba3?_0x255ba3(_0x562e2a):0x1!==_0x562e2a?_0x562e2a+'\x20'+_0x8196e1['name']+'s':''+_0x8196e1['name'];}['_addDescriptionItems'](_0x2647cd,_0x5b03b6){const _0x2e3f0b=_0x5b03b6['getFirstRange']()['getWalker'](),_0x198222='insertion'==_0x5b03b6['type']?'add':'remove';for(const _0x359bf0 of _0x2e3f0b){const _0xb061d5=_0x359bf0['item'],_0x5181e1=_0x2647cd[_0x2647cd['length']-0x1];if(_0xb061d5['is']('$textProxy'))_0x5181e1&&_0x5181e1['type']['indexOf']('Container')>-0x1&&_0x2647cd['pop'](),_0x5181e1&&'text'==_0x5181e1['type']?_0x5181e1[_0x198222]+=_0xb061d5['data']:_0x2647cd['push']({'type':'text','add':'add'==_0x198222?_0xb061d5['data']:'','remove':'remove'==_0x198222?_0xb061d5['data']:''});else{if(this['_schema']['isObject'](_0xb061d5)){const _0x4d8b3e=_0xb061d5;if(_0x5181e1&&_0x5181e1['type']['indexOf']('Container')>-0x1&&_0x2647cd['pop'](),'elementEnd'==_0x359bf0['type'])continue;_0x5181e1&&_0x5181e1['type']==_0x198222+'Object'&&_0x5181e1['element']['name']==_0x4d8b3e['name']?_0x5181e1['quantity']++:_0x2647cd['push']({'type':_0x198222+'Object','element':_0x4d8b3e,'quantity':0x1}),_0x2e3f0b['skip'](_0xde22e1=>!('elementEnd'==_0xde22e1['type']&&_0xde22e1['item']==_0xb061d5));}else{if(this['_schema']['checkChild'](_0xb061d5,'$text')||_0xb061d5['is']('element','softBreak')){const _0xa9e392=_0xb061d5;if('add'==_0x198222&&'elementStart'==_0x359bf0['type']||'remove'==_0x198222&&'elementEnd'==_0x359bf0['type'])continue;if(_0x5181e1&&-0x1==_0x5181e1['type']['indexOf']('Container')){'text'==_0x5181e1['type']&&(_0x5181e1[_0x198222]+='\x0a');continue;}let _0x3d1929;if(_0x3d1929='add'==_0x198222?_0xa9e392['nextSibling']&&!this['_schema']['isObject'](_0xa9e392['nextSibling'])?_0xa9e392['nextSibling']:null:_0xa9e392['previousSibling']&&!this['_schema']['isObject'](_0xa9e392['previousSibling'])?_0xa9e392['previousSibling']:null,_0xa9e392['isEmpty']||_0x3d1929&&_0x3d1929['isEmpty']){const _0x216082=_0x3d1929&&_0x3d1929['isEmpty']?_0x3d1929:_0xa9e392;_0x5181e1&&_0x5181e1['type']==_0x198222+'EmptyContainer'&&_0x5181e1['element']['name']==_0x216082['name']?_0x5181e1['quantity']++:_0x2647cd['push']({'type':_0x198222+'EmptyContainer','element':_0x216082,'quantity':0x1});}else _0x2647cd['push']({'type':_0x198222+'Container','element':_0xa9e392});}}}}}['_resolveDescriptionItems'](_0x30f847){const _0x4032ec=this['_locale'],_0x4e376e=[],_0x421349=[],_0x1b538b=[];for(const _0x35a661 of _0x30f847)switch(_0x35a661['type']){case'text':if(_0x35a661['add']=_0x35a661['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35a661['remove']=_0x35a661['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35a661['add']&&''!=_0x35a661['remove']){_0x4e376e['push']({'type':'replace','content':o(_0x4032ec,'REPLACE_TEXT',['\x22'+_0x35a661['remove']+'\x22','\x22'+_0x35a661['add']+'\x22'])});continue;}if(null!=_0x35a661['add']['match'](/^ +$/)){_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Insert:*\x20%0',o(_0x4032ec,'ELEMENT_SPACE',_0x35a661['add']['length']))});continue;}if(null!=_0x35a661['remove']['match'](/^ +$/)){_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Remove:*\x20%0',o(_0x4032ec,'ELEMENT_SPACE',_0x35a661['remove']['length']))});continue;}if(''!=_0x35a661['add']){_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Insert:*\x20%0','\x22'+_0x35a661['add']+'\x22')});continue;}_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Remove:*\x20%0','\x22'+_0x35a661['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Insert:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Remove:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'addContainer':_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Split:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'removeContainer':_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Merge:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'addFormat':_0x421349['push'](_0x35a661['key']);continue;case'removeFormat':_0x1b538b['push'](_0x35a661['key']);continue;default:_0x4e376e['push'](_0x35a661);}if(_0x421349['length']){const _0x2ad858=_0x421349['map'](_0x4ba688=>this['_attributeLabels']['has'](_0x4ba688)?this['_attributeLabels']['get'](_0x4ba688):_0x4ba688)['join'](',\x20');_0x4e376e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ad858)});}if(_0x1b538b['length']){const _0xf9d166=_0x1b538b['map'](_0x5da4f3=>this['_attributeLabels']['has'](_0x5da4f3)?this['_attributeLabels']['get'](_0x5da4f3):_0x5da4f3)['join'](',\x20');_0x4e376e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xf9d166)});}return _0x4e376e;}['_handleCustomCallbackDescription'](_0x4a8f99){for(const _0x12ea2b of this['_customCallbacks']){const _0x49bc39=_0x12ea2b(_0x4a8f99);if(_0x49bc39&&'type'in _0x49bc39)return _0x49bc39;}}['_handleAttributeSuggestionDescription'](_0x3973d7,_0x2727ee){const _0x1fc8e3=_0x2727ee['data'],_0x44e00f=void 0x0===_0x1fc8e3['newValue']?'removeFormat':'addFormat';_0x3973d7['push']({'type':_0x44e00f,'key':_0x1fc8e3['key']});}['_handleRenameSuggestionDescription'](_0x388aab,_0x351319){_0x388aab['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x351319['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5e98d1,_0x52b2f8,_0x6210d9){if(this['_addDescriptionItems'](_0x5e98d1,_0x52b2f8),_0x6210d9&&_0x6210d9['getFirstRange']()&&!_0x52b2f8['getFirstRange']()['end']['isEqual'](_0x6210d9['getFirstRange']()['start'])){const _0x14c708=_0x5e98d1[_0x5e98d1['length']-0x1],_0x5de1bd='insertion'==_0x52b2f8['type']?'add':'remove';_0x14c708&&'text'==_0x14c708['type']&&(_0x14c708[_0x5de1bd]+='\x0a');}}}class U extends _0x24408b{['afterInit'](){const _0x136fd8=this['editor'],_0x5a54e6=_0x136fd8['plugins']['get']('TrackChangesEditing');_0x136fd8['commands']['get']('showAIAssistant')&&_0x5a54e6['enableCommand']('showAIAssistant');}}class V extends _0x24408b{['afterInit'](){const _0xb84665=this['editor'],_0x49a756=_0xb84665['locale'];if(!_0xb84665['plugins']['has']('AlignmentEditing'))return;const _0x2cc366=_0xb84665['plugins']['get']('TrackChangesEditing');_0x2cc366['enableDefaultAttributesIntegration']('alignment'),_0x2cc366['registerBlockAttribute']('alignment'),_0x2cc366['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x49a756,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21448b=this['editor'],_0x4d1c47=_0x21448b['locale'];_0x21448b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c42d1=>{if('formatBlock'!=_0x4c42d1['type'])return;const {data:_0x5d7a3c}=_0x4c42d1;if(_0x5d7a3c&&'alignment'==_0x5d7a3c['commandName']){const _0x80e259=_0x5d7a3c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4d1c47,'*Format:*\x20%0',function(_0x3c6a25){switch(_0x3c6a25){case'left':return o(_0x4d1c47,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4d1c47,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4d1c47,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4d1c47,'FORMAT_JUSTIFY_TEXT');}}(_0x80e259))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x24408b{['afterInit'](){const _0x5df393=this['editor'],_0x2ee885=_0x5df393['plugins']['get']('TrackChangesEditing'),_0x14f497=_0x5df393['locale'];for(const _0x25104e of Zt){if(!_0x5df393['plugins']['has'](_0x25104e))continue;const _0x16fbff=_0x25104e['slice'](0x0,-0x7)['toLowerCase'](),_0x27d331='FORMAT_'+_0x16fbff['toUpperCase']();_0x2ee885['enableDefaultAttributesIntegration'](_0x16fbff),_0x2ee885['registerInlineAttribute'](_0x16fbff),_0x2ee885['descriptionFactory']['registerAttributeLabel'](_0x16fbff,o(_0x14f497,_0x27d331));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51fe4b=this['editor'],_0x41541f=_0x51fe4b['locale'],_0x269cb9=_0x51fe4b['plugins']['get']('TrackChangesEditing');function _0x1cbce2(_0x41549,_0x4b7169){_0x269cb9['descriptionFactory']['registerDescriptionCallback'](_0x301d78=>{if('formatInline'!=_0x301d78['type'])return;const {data:_0x2748f1}=_0x301d78;return _0x2748f1&&_0x2748f1['commandName']===_0x41549?_0x2748f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41541f,'*Format:*\x20%0',_0x4b7169)}:{'type':'format','content':o(_0x41541f,'*Remove\x20format:*\x20%0',_0x4b7169)}:void 0x0;});}_0x1cbce2('bold',o(_0x41541f,'FORMAT_BOLD')),_0x1cbce2('italic',o(_0x41541f,'FORMAT_ITALIC')),_0x1cbce2('underline',o(_0x41541f,'FORMAT_UNDERLINE')),_0x1cbce2('code',o(_0x41541f,'FORMAT_CODE')),_0x1cbce2('strikethrough',o(_0x41541f,'FORMAT_STRIKETHROUGH')),_0x1cbce2('subscript',o(_0x41541f,'FORMAT_SUBSCRIPT')),_0x1cbce2('superscript',o(_0x41541f,'FORMAT_SUPERSCRIPT'));}}class F extends _0x24408b{['afterInit'](){const _0x527385=this['editor'],_0x23beb3=_0x527385['locale'];if(!_0x527385['plugins']['has']('BlockQuoteEditing'))return;const _0x21bc98=_0x527385['plugins']['get']('TrackChangesEditing'),_0x3fbc5e=this['editor']['commands']['get']('blockQuote');_0x21bc98['enableCommand']('blockQuote',(_0x570aa3,_0x41fcdf={})=>{const _0x2207d7=this['editor']['model']['document']['selection'],_0x1a5b24=_0x41fcdf&&void 0x0!==_0x41fcdf['forceValue']?_0x41fcdf['forceValue']:!_0x3fbc5e['value'];let _0x3f8c6a=[];if(_0x1a5b24){const _0x257b92=Array['from'](_0x2207d7['getSelectedBlocks']())['filter'](_0x4abcef=>oo(_0x4abcef)||function(_0x5e8c97,_0x74e6b0){const _0x2a60ee=_0x74e6b0['checkChild'](_0x5e8c97['parent'],'blockQuote'),_0x1caa02=_0x74e6b0['checkChild'](['$root','blockQuote'],_0x5e8c97);return _0x2a60ee&&_0x1caa02;}(_0x4abcef,this['editor']['model']['schema']));_0x3f8c6a=to(_0x257b92,_0x527385['model']);}else{const _0x169b23=Array['from'](_0x2207d7['getSelectedBlocks']())['filter'](_0x2e7b35=>oo(_0x2e7b35));_0x3f8c6a=to(_0x169b23,_0x527385['model']);}_0x527385['model']['change'](()=>{for(const _0x2ea76f of _0x3f8c6a)_0x21bc98['markBlockFormat'](_0x2ea76f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a5b24}]});});}),_0x21bc98['descriptionFactory']['registerDescriptionCallback'](_0x1573e9=>{const {data:_0x3e6102}=_0x1573e9;if(_0x3e6102&&'blockQuote'==_0x3e6102['commandName']){const _0x24b857=o(_0x23beb3,'ELEMENT_BLOCK_QUOTE');return _0x3e6102['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23beb3,'*Set\x20format:*\x20%0',_0x24b857)}:{'type':'format','content':o(_0x23beb3,'*Remove\x20format:*\x20%0',_0x24b857)};}});}}function oo(_0x2680e1){return'blockQuote'==_0x2680e1['parent']['name'];}class L extends _0x24408b{['afterInit'](){const _0x255c2f=this['editor'],_0x487e4f=_0x255c2f['locale'],_0x5bc9bd=_0x255c2f['plugins']['get']('TrackChangesEditing');_0x255c2f['plugins']['has']('BookmarkEditing')&&(_0x5bc9bd['enableCommand']('insertBookmark'),_0x5bc9bd['enableDefaultAttributesIntegration']('updateBookmark'),_0x5bc9bd['registerBlockAttribute']('bookmarkId'),_0x5bc9bd['descriptionFactory']['registerDescriptionCallback'](_0x132825=>{if('insertion'!=_0x132825['type']&&'deletion'!=_0x132825['type']&&'attribute'!=_0x132825['type'])return;const _0x3788fd=_0x132825['getContainedElement']();if(null==_0x3788fd)return;if(!_0x3788fd['is']('element','bookmark'))return;const _0x4e3d51=_0x3788fd['getAttribute']('bookmarkId');if('insertion'==_0x132825['type'])return{'type':'insertion','content':o(_0x487e4f,'*Insert:*\x20%0','\x22'+_0x4e3d51+'\x22\x20'+o(_0x487e4f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x132825['type'])return{'type':'deletion','content':o(_0x487e4f,'*Remove:*\x20%0','\x22'+_0x4e3d51+'\x22\x20'+o(_0x487e4f,'ELEMENT_BOOKMARK'))};const {data:_0x415a71}=_0x132825;if(!_0x415a71||'bookmarkId'!=_0x415a71['key'])return;return{'type':'format','content':o(_0x487e4f,'*Set\x20bookmark:*\x20%0','\x22'+_0x415a71['newValue']+'\x22')};}));}}class J extends _0x24408b{['afterInit'](){const _0xec8448=this['editor'];_0xec8448['plugins']['has']('CaseChange')&&(_0xec8448['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xec8448['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xec8448['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x24408b{['afterInit'](){const _0x342055=this['editor'];_0x342055['commands']['get']('ckbox')&&_0x342055['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x24408b{['afterInit'](){const _0x310e5c=this['editor'];if(!_0x310e5c['plugins']['has']('CodeBlock'))return;const _0x20f005=_0x310e5c['plugins']['get']('TrackChangesEditing'),_0x3a2098=_0x310e5c['locale'],_0x4f5276=_0x310e5c['config']['get']('codeBlock')['languages'],_0x360245=_0x310e5c['commands']['get']('codeBlock');_0x20f005['enableCommand']('indentCodeBlock'),_0x20f005['enableCommand']('outdentCodeBlock'),_0x20f005['enableCommand']('codeBlock',(_0x21bf57,_0xa4af15={})=>{const _0x1b19bf=_0x310e5c['model'],_0x1c10a1=_0x310e5c['model']['document']['selection'],_0x201eaf=_0xa4af15&&void 0x0!==_0xa4af15['forceValue']?_0xa4af15['forceValue']:!_0x360245['value'];let _0x2d9077;_0xa4af15['language']||(_0xa4af15['language']=_0x4f5276[0x0]['language']),_0x2d9077=_0x201eaf?Array['from'](_0x1c10a1['getSelectedBlocks']())['filter'](_0x40ad8a=>eo(_0x40ad8a)||function(_0x296d09,_0x5bd18f){if(_0x296d09['is']('rootElement')||_0x5bd18f['isLimit'](_0x296d09))return!0x1;return _0x5bd18f['checkChild'](_0x296d09['parent'],'codeBlock');}(_0x40ad8a,_0x1b19bf['schema'])):Array['from'](_0x1c10a1['getSelectedBlocks']())['filter'](_0x4d8e07=>eo(_0x4d8e07));const _0x469086=to(_0x2d9077,_0x1b19bf);_0x1b19bf['change'](()=>{for(const _0x35a138 of _0x469086)_0x20f005['markBlockFormat'](_0x35a138,{'commandName':'codeBlock','commandParams':[{..._0xa4af15,'forceValue':_0x201eaf}],'formatGroupId':'blockName'});});}),(_0x20f005['descriptionFactory']['registerElementLabel']('codeBlock',_0xe2da3a=>o(_0x3a2098,'ELEMENT_CODE_BLOCK',_0xe2da3a)),_0x20f005['descriptionFactory']['registerDescriptionCallback'](_0x123fa7=>{if('formatBlock'!=_0x123fa7['type'])return;const _0x32498c=_0x3a2098['t'],{data:_0x58d4f1}=_0x123fa7;if(!_0x58d4f1||'codeBlock'!=_0x58d4f1['commandName'])return;const _0x411da4=_0x58d4f1['commandParams'][0x0]['language'],_0x38d9c1=_0x32498c(_0x4f5276['find'](_0x7067ab=>_0x7067ab['language']===_0x411da4)['label'])['toLowerCase']();return _0x58d4f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a2098,'*Set\x20format:*\x20%0',o(_0x3a2098,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x38d9c1+')')}:{'type':'format','content':o(_0x3a2098,'*Remove\x20format:*\x20%0',o(_0x3a2098,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c08a4){return'codeBlock'==_0x1c08a4['name'];}class z extends _0x24408b{['afterInit'](){const _0x1f0fce=this['editor'];if(!_0x1f0fce['plugins']['has']('CommentsEditing'))return;_0x1f0fce['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3bd24e,_0x112a05,_0x252f55){const _0xd88088=[];for(const _0x2e1a00 of _0x112a05['getItems']())_0x2e1a00['hasAttribute'](_0x3bd24e)&&_0xd88088['push'](_0x252f55['createRangeOn'](_0x2e1a00));return _0xd88088;}function Ne(_0x2ff731,_0x1fc736,{showActiveMarker:_0x282036=!0x0}={}){const _0x2176c4=_0x2ff731['plugins']['get']('TrackChangesEditing');return(_0x325d07,_0x5ecd48,_0x475fae)=>{if(!_0x475fae['consumable']['test'](_0x5ecd48['markerRange'],_0x325d07['name']))return;const _0x31b517=_0x5ecd48['markerRange']['getWalker'](),_0x21f700=_0x5ecd48['markerRange']['start'],_0xe54dfe=_0x2ff731['model']['schema'];let _0x1d53f5=null,_0x2bca72=null,_0xe92eb6=!0x1,_0x4e4ce1=!0x1;for(const _0x3f19ec of _0x31b517){const _0x28d54b=_0x3f19ec['item'];_0xe92eb6=_0xe92eb6||_0xe54dfe['isContent'](_0x28d54b);const _0x5b86e7=_0x475fae['mapper']['toViewElement'](_0x28d54b);if(_0x5b86e7&&_0x5b86e7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3f19ec['type']&&(_0xe54dfe['isBlock'](_0x28d54b)&&!_0xe54dfe['isLimit'](_0x28d54b)&&(_0x28d54b['nextSibling']||_0x21f700['isAtEnd']?_0x1d53f5&&_0x1d53f5['parent']==_0x28d54b||(_0x1d53f5=_0x28d54b,_0xe93b02(_0x3f19ec['previousPosition']),_0x4e4ce1=!0x0):_0x2bca72=_0x2bca72||_0x3f19ec['previousPosition']));}function _0xe93b02(_0x538788){const {authorId:_0x2e422a}=_0x2176c4['_splitMarkerName'](_0x5ecd48['markerName']),_0x5607a0=_0x475fae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fc736,'data-author-id':_0x2e422a}),_0xb82fcf=_0x475fae['mapper']['toViewPosition'](_0x538788);_0x282036&&_0x2176c4['activeMarkers']['includes'](_0x5ecd48['markerName'])&&_0x475fae['writer']['addClass']('ck-suggestion-marker--active',_0x5607a0),_0x475fae['writer']['insert'](_0xb82fcf,_0x5607a0),_0x475fae['mapper']['bindElementToMarker'](_0x5607a0,_0x5ecd48['markerName']);}_0xe92eb6||_0x4e4ce1||!_0x2bca72||_0xe93b02(_0x2bca72);};}class K extends _0x24408b{static get['requires'](){return[_0x2280a6];}['init'](){const _0x258660=this['editor'],_0x5b8cd5=_0x258660['plugins']['get']('TrackChangesEditing');_0x5b8cd5['enableCommand']('delete');const _0x570844=_0x258660['commands']['get']('deleteForward');_0x5b8cd5['enableCommand']('deleteForward',(_0x3d71aa,_0x4fcc2c={})=>{const _0x349183=_0x258660['model']['createSelection'](_0x258660['model']['document']['selection']);_0x349183['isCollapsed']&&_0x258660['model']['modifySelection'](_0x349183,{'direction':'forward','unit':_0x4fcc2c['unit']});const _0xe5362e=_0x349183['getFirstRange'](),_0x51273a=_0x5103d1['fromRange'](_0xe5362e);let _0x3c7256;_0x3d71aa(_0x4fcc2c),_0x3c7256='$graveyard'==_0x51273a['root']['rootName']?_0x258660['model']['createRange'](_0xe5362e['start']):_0x258660['model']['createRange'](_0x51273a['start'],_0x51273a['end']),_0x51273a['detach'](),_0x258660['model']['enqueueChange'](_0x570844['buffer']['batch'],_0x2738e0=>{_0x570844['buffer']['lock'](),_0x2738e0['setSelection'](_0x2738e0['createRange'](_0x3c7256['end'])),_0x570844['buffer']['unlock']();});}),_0x258660['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x258660,'merge'),{'priority':'high'}),_0x258660['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xb0d14a,_0x4223a3,_0x401f1e)=>{_0x401f1e['options']['showSuggestionHighlights']&&Ne(_0x258660,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xb0d14a,_0x4223a3,_0x401f1e);},{'priority':'high'}),_0x258660['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3321fd,_0x1e51e4,_0x5b4f2c)=>{const _0x1cc7d2=_0x5b4f2c['mapper']['markerNameToElements'](_0x1e51e4['markerName']);if(_0x1cc7d2){for(const _0x3a2d73 of _0x1cc7d2)_0x3a2d73['is']('uiElement')&&(_0x5b4f2c['mapper']['unbindElementFromMarkerName'](_0x3a2d73,_0x1e51e4['markerName']),_0x5b4f2c['writer']['remove'](_0x3a2d73));}},{'priority':'high'});}}class W extends _0x24408b{['afterInit'](){const _0x5f5295=this['editor'];if(!_0x5f5295['plugins']['has']('ListEditing'))return;const _0x966f5f=_0x5f5295['locale'],_0x55f8ed=_0x5f5295['plugins']['get']('TrackChangesEditing'),_0x55c5da=_0x5f5295['plugins']['has']('TodoListEditing'),_0x1a8e21=!!_0x5f5295['config']['get']('list.multiBlock');function _0x227c20(_0x541a87){return{'type':'format','content':''+o(_0x966f5f,'*Set\x20format:*\x20%0',_0x541a87)};}function _0x111e47(_0x1e2905){return{'type':'format','content':''+o(_0x966f5f,'*Remove\x20format:*\x20%0',_0x1e2905)};}_0x55f8ed['enableDefaultAttributesIntegration']('numberedList'),_0x55f8ed['enableDefaultAttributesIntegration']('bulletedList'),_0x55f8ed['enableDefaultAttributesIntegration']('customNumberedList'),_0x55f8ed['enableDefaultAttributesIntegration']('customBulletedList'),_0x55f8ed['enableDefaultAttributesIntegration']('indentList'),_0x55f8ed['enableDefaultAttributesIntegration']('outdentList'),_0x55f8ed['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x55f8ed['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x55f8ed['registerBlockAttribute']('listItemId'),_0x55f8ed['registerBlockAttribute']('listType'),_0x55f8ed['registerBlockAttribute']('listIndent'),_0x1a8e21&&(_0x55f8ed['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x55f8ed['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55c5da&&(_0x55f8ed['enableDefaultAttributesIntegration']('todoList'),_0x55f8ed['enableDefaultAttributesIntegration']('checkTodoList'),_0x55f8ed['registerBlockAttribute']('todoListChecked'),_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x419003=>{const {data:_0x13aa4e}=_0x419003;if(_0x13aa4e&&'todoListChecked'==_0x13aa4e['key'])return{'type':'format','content':_0x13aa4e['newValue']?o(_0x966f5f,'*Check\x20item*'):o(_0x966f5f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d026c=>{if(_0x5d026c['batch']['isUndo'])return!0x1;let _0x3f4ba5=!0x1;const _0x2aa664=_0x55f8ed['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a520a=>'todoListChecked'===_0x55f8ed['_getAttributeKey'](_0x3a520a));for(const _0x480b06 of _0x2aa664){'todo'!=_0x480b06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x55f8ed['_findSuggestions'](_0x480b06['getFirstRange'](),'attribute')['find'](_0x4eee67=>'listType'===_0x55f8ed['_getAttributeKey'](_0x4eee67['suggestion']))||(_0x5d026c['removeMarker'](_0x480b06['getFirstMarker']()),_0x3f4ba5=!0x0));}return _0x3f4ba5;})),_0x55f8ed['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x966f5f,'FORMAT_INDENT'));const _0x35b932={'type':'format','content':''};_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x1be73e=>{const {data:_0x1dbb19}=_0x1be73e;if(!_0x1dbb19||'listType'!=_0x1dbb19['key'])return;let _0x29f60f=_0x1be73e['head'];for(;_0x29f60f;){if(_0x29f60f['data']&&(('listStyle'==_0x29f60f['data']['key']||'listMarkerStyle'==_0x29f60f['data']['key'])&&(_0x29f60f['data']['newValue']&&'default'!=_0x29f60f['data']['newValue']||'default'!=_0x29f60f['data']['oldValue']&&!_0x1dbb19['newValue'])||!_0x1a8e21&&_0x29f60f['data']['key']==m))return _0x35b932;_0x29f60f=_0x29f60f['next'];}if(null==_0x1dbb19['newValue'])switch(_0x1dbb19['oldValue']){case'bulleted':return _0x111e47(o(_0x966f5f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x111e47(o(_0x966f5f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x111e47(o(_0x966f5f,'ELEMENT_TODO_LIST'));}switch(_0x1dbb19['newValue']){case'bulleted':return _0x227c20(o(_0x966f5f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x227c20(o(_0x966f5f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x227c20(o(_0x966f5f,'ELEMENT_TODO_LIST'));}}),_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x51b6c8=>{const {data:_0x3ac1ee}=_0x51b6c8;if(_0x3ac1ee&&'listIndent'==_0x3ac1ee['key'])return null==_0x3ac1ee['newValue']||null==_0x3ac1ee['oldValue']&&0x0==_0x3ac1ee['newValue']?_0x35b932:void 0x0;}),_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x5aa11f=>{if('attribute'!=_0x5aa11f['type'])return;const {data:_0x54bdbe}=_0x5aa11f;if(!_0x54bdbe||'listItemId'!=_0x54bdbe['key'])return;const _0x1b5e25=Te(_0x5aa11f);return'newValue'==_0x1b5e25?{'type':'format','content':o(_0x966f5f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1b5e25?{'type':'format','content':o(_0x966f5f,'*Split:*\x20list\x20item')}:_0x35b932;}),_0x5f5295['model']['document']['registerPostFixer'](_0x4642ee=>this['listItemIdFixer'](_0x4642ee)),_0x5f5295['model']['document']['registerPostFixer'](_0x11a5c2=>this['noTrackChangesFixer'](_0x11a5c2)),_0x5f5295['model']['document']['on']('change:data',(_0x40f2f5,_0x2f78bd)=>{if(_0x2f78bd['isUndo']||!_0x2f78bd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb39cad){if(_0xb39cad['batch']['isUndo']||!_0xb39cad['batch']['isLocal'])return!0x1;let _0x524298=!0x1;const _0x103138=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2561c7=>_0x2561c7['data']&&'listItemId'==_0x2561c7['data']['key'])['filter'](_0x1fd4f0=>_0x1fd4f0['data']['newValue']&&_0x1fd4f0['data']['oldValue']);for(const _0x4fd976 of _0x103138)Te(_0x4fd976)||(_0xb39cad['removeMarker'](_0x4fd976['getFirstMarker']()),_0x524298=!0x0);return _0x524298;}['noTrackChangesFixer'](_0x90b950){if(_0x90b950['batch']['isUndo']||!_0x90b950['batch']['isLocal'])return!0x1;const _0x285742=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x285742['trackChangesCommand']['value'])return!0x1;let _0x536b8d=!0x1;const _0x584ec7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4dbb26=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1fd175=>'attribute'==_0x1fd175['type'])['filter'](_0x3f4af2=>_0x584ec7['includes'](_0x3f4af2['attributeKey']));if(0x0==_0x4dbb26['length'])return _0x536b8d;for(const _0x59abdc of _0x4dbb26){const _0x2ede96=_0x285742['_findSuggestions'](_0x59abdc['range'],'attribute')['filter'](_0x234d0c=>!_0x234d0c['meta']['isNextTo'])['map'](_0x4b9baf=>_0x4b9baf['suggestion'])['filter'](_0x54c97b=>{const _0x4c2bb8=_0x285742['_getAttributeKey'](_0x54c97b);return _0x584ec7['includes'](_0x4c2bb8);});if(_0x2ede96['length']){for(const _0x18f8dc of _0x2ede96)_0x90b950['removeMarker'](_0x18f8dc['getFirstMarker']());_0x536b8d=!0x0;}}return _0x536b8d;}['assureChains'](){const _0x516080=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13e55f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3d34b1;const _0x3317f4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e6de9=>{if(_0x5e6de9['data']['oldRange']||!_0x5e6de9['data']['newRange'])return null;if(!_0x5e6de9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xd31e81}=_0x516080['_splitMarkerName'](_0x5e6de9['name']);if(!_0x516080['hasSuggestion'](_0xd31e81))return null;const _0xba114=_0x516080['getSuggestion'](_0xd31e81);return _0x13e55f['includes'](_0xba114['data']['key']);})['map'](_0x517ee1=>{const {id:_0x3947e4}=_0x516080['_splitMarkerName'](_0x517ee1['name']),_0x3cd829=_0x516080['getSuggestion'](_0x3947e4);return _0x3d34b1=_0x3cd829['attributes']['groupId'],_0x3cd829['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3317f4['size'])return;const _0x32411f=_0x516080['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dbde6=>'attribute'==_0x4dbde6['type']&&_0x4dbde6['data']&&_0x13e55f['includes'](_0x4dbde6['data']['key'])&&_0x4dbde6['attributes']['groupId']!=_0x3d34b1)['map'](_0x237191=>({'listItem':_0x237191['getFirstRange']()['start']['nodeAfter'],'groupId':_0x237191['attributes']['groupId']})),_0x4e59e7=new Set();for(const {groupId:_0x35e054,listItem:_0x347120}of _0x32411f)_0x3317f4['has'](_0x347120)&&_0x4e59e7['add'](_0x35e054);for(const _0x48016d of _0x516080['getSuggestions']())_0x4e59e7['has'](_0x48016d['attributes']['groupId'])&&_0x48016d['setAttribute']('groupId',_0x3d34b1);}['_supportLegacySuggestions'](){const _0x15fb1b=this['editor'],_0x433ce7=_0x15fb1b['locale'],_0x311a34=_0x15fb1b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x311a34['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x39d93b,_0x561c59){const _0x567e5a=[];for(let _0x128be3 of _0x39d93b)_0x128be3['start']['nodeAfter']===_0x128be3['end']['parent']&&(_0x128be3=_0x15fb1b['model']['createRange'](_0x15fb1b['model']['createPositionAt'](_0x128be3['start']['nodeAfter'],0x0))),_0x567e5a['push'](_0x128be3);_0x15fb1b['model']['change'](_0x5e5b87=>{const _0x5364cf=_0x15fb1b['model']['document']['selection'],_0x47bb1f=Array['from'](_0x5364cf['getRanges']())['map'](_0x12024f=>_0x5103d1['fromRange'](_0x12024f));_0x5e5b87['setSelection'](_0x567e5a),_0x15fb1b['commands']['get'](_0x561c59['commandName'])['refresh'](),_0x561c59['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x15fb1b['execute'](_0x561c59['commandName'],..._0x561c59['commandParams']),_0x5e5b87['setSelection'](_0x47bb1f);for(const _0x43f497 of _0x47bb1f)_0x43f497['detach']();});}),_0x311a34['descriptionFactory']['registerElementLabel'](function(_0x55dd5a){const _0x29b86e=!_0x15fb1b['model']['schema']['isObject'](_0x55dd5a),_0x356b5a=_0x55dd5a['previousSibling'],_0x13566f=_0x55dd5a['nextSibling'],_0x2c01f2=_0x55dd5a['getAttribute']('listItemId'),_0x3363b1=!_0x356b5a||_0x356b5a['getAttribute']('listItemId')!==_0x2c01f2,_0x3b720c=!_0x13566f||_0x13566f['getAttribute']('listItemId')!==_0x2c01f2;return _0x29b86e&&Boolean(_0x2c01f2)&&_0x3363b1&&_0x3b720c;},_0x25283b=>o(_0x433ce7,'ELEMENT_LIST_ITEM',_0x25283b));}['_registerLegacyDescription'](){const _0x5b8a2e=this['editor'],_0xc44207=_0x5b8a2e['locale'];function _0x44650a(_0x23c459){const _0x76adb9=_0x5b8a2e['commands']['get']('bulletedList')['value'],_0x104d10=_0x5b8a2e['commands']['get']('numberedList')['value'];return'numberedList'===_0x23c459?_0x76adb9:_0x104d10;}_0x5b8a2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1861ee){if('formatBlock'!=_0x1861ee['type'])return;const {data:_0x5dd797}=_0x1861ee;if(!_0x5dd797)return;let _0x21ce8c,_0x19fa8e,_0x59717a,_0x441a98;switch(_0x5dd797['commandName']){case'bulletedList':_0x59717a=_0x5dd797['commandParams'][0x0]['forceValue'],_0x441a98=_0x44650a(_0x5dd797['commandName']),_0x21ce8c=_0x59717a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x441a98&&_0x5b8a2e['config']['get']('list.multiBlock')||(_0x21ce8c='*Change\x20to:*\x20%0'),_0x19fa8e={'type':'format','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x59717a=_0x5dd797['commandParams'][0x0]['forceValue'],_0x441a98=_0x44650a(_0x5dd797['commandName']),_0x21ce8c=_0x59717a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x441a98&&_0x5b8a2e['config']['get']('list.multiBlock')||(_0x21ce8c='*Change\x20to:*\x20%0'),_0x19fa8e={'type':'format','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21ce8c='*Indent:*\x20%0',_0x19fa8e={'type':'format','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21ce8c=function(_0x378f9f){const _0x13568c=_0x378f9f['getFirstRange']();let _0x52f6fd=_0x13568c['start']['nodeAfter'];for(;_0x52f6fd&&_0x13568c['containsItem'](_0x52f6fd);){if(_0x52f6fd['getAttribute']('listIndent')>0x0)return!0x1;_0x52f6fd=_0x52f6fd['nextSibling'];}return!0x0;}(_0x1861ee)?o(_0xc44207,'*Format:*\x20remove\x20from\x20%0',o(_0xc44207,function(_0x35c153){return'ELEMENT_'+_0x35c153['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1861ee))):o(_0xc44207,'*Outdent:*\x20%0',o(_0xc44207,'ELEMENT_LIST_ITEM')),_0x19fa8e={'type':'format','content':_0x21ce8c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5dd797['multipleBlocks']&&(_0x21ce8c='*Merge:*\x20%0',_0x19fa8e={'type':'deletion','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_LIST_ITEM'))});}return _0x19fa8e;});}}function Te(_0x3d9e65){let _0x57de86=_0x3d9e65['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57de86;){const _0x19c523=_0x57de86['getAttribute']('listItemId');if(!_0x19c523)return!0x1;if(_0x19c523==_0x3d9e65['data']['newValue'])return'newValue';if(_0x19c523==_0x3d9e65['data']['oldValue'])return'oldValue';_0x57de86=_0x57de86['previousSibling'];}return!0x1;}class ye extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x129078=this['editor']['config']['get']('list.properties'),_0x65c635=this['editor']['plugins']['get']('TrackChangesEditing');_0x129078['styles']&&(_0x65c635['enableDefaultAttributesIntegration']('listStyle'),_0x65c635['registerBlockAttribute']('listStyle')),_0x129078['reversed']&&(_0x65c635['enableDefaultAttributesIntegration']('listReversed'),_0x65c635['registerBlockAttribute']('listReversed')),_0x129078['startIndex']&&(_0x65c635['enableDefaultAttributesIntegration']('listStart'),_0x65c635['registerBlockAttribute']('listStart'));const _0x1effb3={'type':'format','content':''};_0x65c635['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4f29a2=this['editor']['locale'];_0x65c635['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4f29a2,'FORMAT_LIST_REVERSED')),_0x65c635['descriptionFactory']['registerDescriptionCallback'](_0x3db2be=>{const {data:_0x44f2b9}=_0x3db2be;if(_0x44f2b9&&'listReversed'==_0x44f2b9['key'])return null==_0x44f2b9['newValue']||0x0==_0x44f2b9['newValue']&&null==_0x44f2b9['oldValue']?_0x1effb3:void 0x0;}),_0x65c635['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4f29a2,'FORMAT_LIST_START')),_0x65c635['descriptionFactory']['registerDescriptionCallback'](_0x54e705=>{const {data:_0x1e6459}=_0x54e705;if(_0x1e6459&&'listStart'==_0x1e6459['key'])return null==_0x1e6459['newValue']||0x1==_0x1e6459['newValue']&&null==_0x1e6459['oldValue']?_0x1effb3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x174c5c=>{if(_0x174c5c['batch']['isUndo'])return!0x1;let _0x158b8f=!0x1;const _0x177a16=_0x65c635['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57beca=>{const _0x4d3f12=_0x65c635['_getAttributeKey'](_0x57beca);return'listStart'==_0x4d3f12||'listReversed'==_0x4d3f12;});for(const _0x333c5f of _0x177a16){const _0x42f300=_0x333c5f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42f300||'customNumbered'==_0x42f300)continue;_0x65c635['_findSuggestions'](_0x333c5f['getFirstRange'](),'attribute')['find'](_0x511cbc=>'listType'==_0x65c635['_getAttributeKey'](_0x511cbc['suggestion']))||(_0x174c5c['removeMarker'](_0x333c5f['getFirstMarker']()),_0x158b8f=!0x0);}return _0x158b8f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf392d9){const _0x17c3d2=this['editor']['locale'],{data:_0x473ea9}=_0xf392d9,_0xfc357={'type':'format','content':''};if(!_0x473ea9||'listStyle'!=_0x473ea9['key'])return;if(!_0x473ea9['oldValue'])return'default'==_0x473ea9['newValue']?_0xfc357:{'type':'format','content':''+o(_0x17c3d2,'*Set\x20format:*\x20%0',o(_0x17c3d2,this['_getTranslationKeyForListStyle'](_0x473ea9['newValue'])))};if(!_0x473ea9['newValue']){if('default'==_0x473ea9['oldValue'])return _0xfc357;let _0x1f6487=_0xf392d9['head'];for(;_0x1f6487;){if(_0x1f6487['data']&&'listType'==_0x1f6487['data']['key']&&_0x1f6487['data']['newValue'])return _0xfc357;_0x1f6487=_0x1f6487['next'];}return{'type':'format','content':''+o(_0x17c3d2,'*Remove\x20format:*\x20%0',o(_0x17c3d2,this['_getTranslationKeyForListStyle'](_0x473ea9['oldValue'])))};}if('default'!=_0x473ea9['newValue'])return{'type':'format','content':''+o(_0x17c3d2,'*Set\x20format:*\x20%0',o(_0x17c3d2,this['_getTranslationKeyForListStyle'](_0x473ea9['newValue'])))};let _0x808959=_0xf392d9['head'];for(;_0x808959;){if(_0x808959['data']&&'listType'==_0x808959['data']['key']&&_0x808959['data']['newValue']&&_0x808959['data']['oldValue'])return _0xfc357;_0x808959=_0x808959['next'];}return{'type':'format','content':o(_0x17c3d2,'*Set\x20format:*\x20%0',o(_0x17c3d2,'ELEMENT_'+_0xf392d9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55eef1=this['editor'],_0x239e84=_0x55eef1['locale'];_0x55eef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19447c=>{if('formatBlock'!=_0x19447c['type'])return;const {data:_0x4a9707}=_0x19447c;if(!_0x4a9707)return;let _0xd0ef58,_0xbf08ab;switch(_0x4a9707['commandName']){case'listStyle':_0xd0ef58='*Change\x20to:*\x20%0',_0xbf08ab={'type':'format','content':o(_0x239e84,_0xd0ef58,o(_0x239e84,this['_getTranslationKeyForListStyle'](_0x4a9707['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd0ef58=_0x4a9707['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xbf08ab={'type':'format','content':o(_0x239e84,_0xd0ef58)};break;case'listStart':_0xd0ef58='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xbf08ab={'type':'format','content':o(_0x239e84,_0xd0ef58,_0x4a9707['commandParams'][0x0]['startIndex'])};}return _0xbf08ab;});}['_getTranslationKeyForListStyle'](_0x30e9d0){return'ELEMENT_'+function(_0x26a763){if(Se['includes'](_0x26a763))return'bulleted';if(_e['includes'](_0x26a763))return'numbered';return null;}(_0x30e9d0)['toUpperCase']()+'_LIST_'+_0x30e9d0['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x24408b{static get['requires'](){return[_0x2cb551];}['init'](){const _0x4010ec=this['editor'],_0x517571=_0x4010ec['plugins']['get']('TrackChangesEditing'),_0x14069d=_0x4010ec['commands']['get']('enter');_0x517571['enableCommand']('enter',()=>{_0x4010ec['model']['change'](_0x494559=>{const _0x380906=_0x4010ec['model']['document']['selection'],_0x33ed0a=_0x380906['getFirstPosition'](),_0x3a67ee=_0x5103d1['fromRange'](_0x380906['getFirstRange']());if(_0x14069d['enterBlock'](_0x494559)){const _0x4f5e18=_0x4010ec['model']['createPositionAt'](_0x33ed0a['parent']['nextSibling'],0x0),_0x4f4acf=_0x494559['createRange'](_0x33ed0a,_0x4f5e18);_0x517571['markInsertion'](_0x4f4acf);}else _0x494559['setSelection'](_0x494559['createRange'](_0x3a67ee['end']));_0x3a67ee['detach'](),_0x14069d['fire']('afterExecute',{'writer':_0x494559});});}),_0x4010ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4010ec,'split'),{'priority':'high'}),_0x4010ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x45c00b,_0x34abdf,_0x40ed81)=>{const _0x3c02cc=_0x40ed81['mapper']['markerNameToElements'](_0x34abdf['markerName']);if(_0x3c02cc){for(const _0x303d52 of _0x3c02cc)_0x303d52['hasClass']('ck-suggestion-marker-split')&&(_0x40ed81['mapper']['unbindElementFromMarkerName'](_0x303d52,_0x34abdf['markerName']),_0x40ed81['writer']['remove'](_0x303d52));}},{'priority':'high'}),_0x4010ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34c8ed,_0x1183ee,_0x294a06)=>{_0x294a06['options']['showSuggestionHighlights']&&Ne(_0x4010ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x34c8ed,_0x1183ee,_0x294a06);},{'priority':'high'});}}class Y extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x68dfe3=this['editor']['plugins']['get']('TrackChangesEditing');_0x68dfe3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x68dfe3['enableCommand']('findNext'),_0x68dfe3['enableCommand']('findPrevious'),_0x68dfe3['enableCommand']('replace'),_0x68dfe3['enableCommand']('replaceAll');}['handleFindCommand'](_0x5f5928,_0x48be2c,_0x4cea33={}){const _0x4cb679=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5f5928(_0x308b9f=>{let _0x4a594d=('string'==typeof _0x48be2c?_0x4cb679['findByTextCallback'](_0x48be2c,_0x4cea33):_0x48be2c)(_0x308b9f);Array['isArray'](_0x4a594d)&&(_0x4a594d={'results':_0x4a594d,'searchText':'string'==typeof _0x48be2c?_0x48be2c:''});const _0x25a42b=_0x4a594d['results']['filter'](_0x17b461=>!0x1===this['_isInDeletionRange'](_0x17b461,_0x308b9f['item']));return{..._0x4a594d,'results':_0x25a42b};},_0x4cea33);}['_isInDeletionRange'](_0x42019f,_0x49d018){const _0xc382b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49d018,_0x42019f['start']),this['editor']['model']['createPositionAt'](_0x49d018,_0x42019f['end']));for(const _0xed996a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xc382b['getIntersection'](_0xed996a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x24408b{['afterInit'](){const _0x2f3fbe=this['editor']['locale'],_0x5647cd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2df365,commandName:_0x50ad9f}of ro)this['editor']['plugins']['has'](_0x2df365)&&(_0x5647cd['enableDefaultAttributesIntegration'](_0x50ad9f),_0x5647cd['registerInlineAttribute'](_0x50ad9f));_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2f3fbe,'FORMAT_FONT_SIZE')),_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2f3fbe,'FORMAT_FONT_FAMILY')),_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2f3fbe,'FORMAT_FONT_COLOR')),_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2f3fbe,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1266a6=this['editor'],_0x62324d=_0x1266a6['locale'];_0x1266a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f4f01=>{const _0x1d3f60=_0x62324d['t'];if('formatInline'!=_0x3f4f01['type'])return;const {data:_0x487d05}=_0x3f4f01;if(null!=_0x487d05){if('fontSize'==_0x487d05['commandName']){const _0x7dfbc1=_0x487d05['commandParams'][0x0]['value'];if(_0x7dfbc1){const _0x478e99=_0x1d3f60(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4b1ce6=>_0x4b1ce6['model']==_0x7dfbc1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x62324d,'*Set\x20font\x20size:*\x20%0',_0x478e99)};}return{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x487d05['commandName']){const _0x4a4e6c=_0x487d05['commandParams'][0x0]['value'];return _0x4a4e6c?{'type':'format','content':o(_0x62324d,'*Set\x20font\x20family:*\x20%0',_0x4a4e6c)}:{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x487d05['commandName']){const _0x5d052e=_0x487d05['commandParams'][0x0]['value'];if(_0x5d052e){const _0x5d1e99=_0x54f2d2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x404df4=>_0x404df4['model']==_0x5d052e);let _0x38cf4b=_0x5d052e,_0x30e5d4='';return _0x5d1e99&&(_0x38cf4b=_0x5d1e99['label'],_0x30e5d4=_0x1d3f60(_0x38cf4b)['toLowerCase']()),{'type':'format','content':o(_0x62324d,'*Set\x20font\x20color:*\x20%0',_0x30e5d4)['trim'](),'color':{'value':_0x5d052e,'title':_0x30e5d4||_0x38cf4b}};}return{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x487d05['commandName']){const _0x5bbf46=_0x487d05['commandParams'][0x0]['value'];if(_0x5bbf46){const _0x4a467f=_0x54f2d2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e11b3=>_0x3e11b3['model']==_0x5bbf46);let _0x1a5da7=_0x5bbf46,_0x20208f='';return _0x4a467f&&(_0x1a5da7=_0x4a467f['label'],_0x20208f=_0x1d3f60(_0x1a5da7)['toLowerCase']()),{'type':'format','content':o(_0x62324d,'*Set\x20font\x20background\x20color:*\x20%0',_0x20208f)['trim'](),'color':{'value':_0x5bbf46,'title':_0x20208f||_0x1a5da7}};}return{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x24408b{['afterInit'](){const _0x5e2230=this['editor'],_0x545a2c=_0x5e2230['plugins']['get']('TrackChangesEditing'),_0x1c0bf2=_0x5e2230['commands']['get']('copyFormat'),_0x2bd830=_0x5e2230['commands']['get']('pasteFormat');_0x1c0bf2&&_0x2bd830&&(_0x545a2c['enableDefaultAttributesIntegration']('pasteFormat'),_0x545a2c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5c95ac=this['editor'],_0x1b254d=_0x5c95ac['locale'];_0x5c95ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bbf4=>{if('formatBlock'!=_0x28bbf4['type']&&'formatInline'!=_0x28bbf4['type'])return;const {data:_0x52aa1c}=_0x28bbf4;if(_0x52aa1c&&'pasteFormat'===_0x52aa1c['commandName']){const _0x5d485f=[],_0x2e729b=_0x52aa1c['commandParams'][0x0];for(const [_0x525b4b,_0x219f6a]of Object['entries'](_0x2e729b))_0x5d485f['push'](so(_0x5c95ac,_0x525b4b,_0x219f6a));return _0x5d485f['length']?{'type':'format','content':o(_0x1b254d,'*Set\x20format\x20to:*\x20%0',_0x5d485f['join'](',\x20'))}:{'type':'format','content':o(_0x1b254d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5bd603,_0x283bef,_0x5bfcb1){const _0x865c7f=_0x5bd603['locale']['t'],_0x21a20e=_0x283bef['split'](/(?=[A-Z])/)['join']('\x20'),_0x20136b=_0x865c7f(_0x21a20e['charAt'](0x0)['toUpperCase']()+_0x21a20e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5bfcb1)return _0x20136b;if('fontColor'===_0x283bef||'fontBackgroundColor'===_0x283bef){const _0x126ba4=_0x54f2d2(_0x5bd603['config']['get']('fontColor.colors'))['find'](_0x14fd0a=>_0x14fd0a['model']==_0x5bfcb1);return _0x20136b+'\x20('+(_0x126ba4?_0x865c7f(_0x126ba4['label'])['toLowerCase']():_0x5bfcb1)+')';}if('fontSize'===_0x283bef&&isNaN(parseFloat(_0x5bfcb1))){const _0x4a2a8d=_0x5bd603['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5bd603['config']['get']('fontSize.options'))['find'](_0xf2e850=>_0xf2e850['model']==_0x5bfcb1);return _0x20136b+'\x20('+(_0x4a2a8d?_0x865c7f(_0x4a2a8d['title'])['toLowerCase']():_0x5bfcb1)+')';}return _0x20136b+'\x20('+_0x5bfcb1+')';}class nt extends _0x24408b{['_headingOptions'];['afterInit'](){const _0x318a8d=this['editor'];if(!_0x318a8d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x318a8d['config']['get']('heading.options');const _0x5177af=_0x318a8d['locale'],_0x5dfd08=_0x318a8d['plugins']['get']('TrackChangesEditing');_0x5dfd08['enableDefaultAttributesIntegration']('heading');for(const _0xadf1f2 of this['_headingOptions'])'paragraph'!=_0xadf1f2['model']&&_0x5dfd08['descriptionFactory']['registerElementLabel'](_0xadf1f2['model'],_0x83ae61=>{const _0x5ef854=this['_getHeadingLevel'](_0xadf1f2['model']);return null!==_0x5ef854?_0x23ddb2(_0x83ae61,_0x5ef854):_0x5a879c(_0x83ae61,_0xadf1f2['title']);});function _0x23ddb2(_0x5952ff,_0x197d93){return o(_0x5177af,'ELEMENT_HEADING',[_0x5952ff,_0x197d93]);}function _0x5a879c(_0x4e466c,_0x1beb38){return o(_0x5177af,'ELEMENT_HEADING_CUSTOM',[_0x4e466c,_0x1beb38]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b47d5=this['editor'],_0x31336d=_0x4b47d5['locale'];function _0x5ce6ad(_0x518acf,_0x5661be){return o(_0x31336d,'ELEMENT_HEADING_CUSTOM',[_0x518acf,_0x5661be]);}_0x4b47d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xff30d=>{if('formatBlock'!=_0xff30d['type'])return;const {data:_0x59d41e}=_0xff30d;if(_0x59d41e&&'heading'==_0x59d41e['commandName']){const _0x189f98=_0x59d41e['commandParams'][0x0]['value'],_0x417bba=this['_getHeadingLevel'](_0x189f98);if(null!==_0x417bba)return{'type':'format','content':o(_0x31336d,'*Change\x20to:*\x20%0',(_0x193711=0x1,_0x3de587=_0x417bba,o(_0x31336d,'ELEMENT_HEADING',[_0x193711,_0x3de587])))};const _0x309580=this['_headingOptions']['find'](_0x2f0989=>_0x2f0989['model']===_0x189f98)['title'];return{'type':'format','content':o(_0x31336d,'*Change\x20to:*\x20%0',_0x5ce6ad(0x1,_0x309580))};}var _0x193711,_0x3de587;});}['_getHeadingLevel'](_0x5cf50b){const _0x10606a=_0x5cf50b['match'](/^heading(\d+)/);if(_0x10606a)return _0x10606a[0x1];const _0x4bb75e=this['_headingOptions']?.['find'](_0x3dd3f1=>_0x3dd3f1['model']==_0x5cf50b);if(_0x4bb75e&&_0x4bb75e['view']){const _0x18be97=_0x4bb75e['view'],_0x330b8b=(_0x18be97['name']??_0x18be97)['match'](/^h(\d+)/);if(_0x330b8b)return _0x330b8b[0x1];}return null;}}class it extends _0x24408b{['afterInit'](){const _0x2c8063=this['editor'];if(!_0x2c8063['plugins']['has']('HighlightEditing'))return;const _0x265818=_0x2c8063['plugins']['get']('TrackChangesEditing'),_0x154f5e=_0x2c8063['locale'];_0x265818['enableDefaultAttributesIntegration']('highlight'),_0x265818['registerInlineAttribute']('highlight'),_0x265818['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x154f5e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42d41a=this['editor'],_0x41c1a9=_0x42d41a['locale'];_0x42d41a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x441653=>{if('formatInline'!=_0x441653['type'])return;const {data:_0x3158ed}=_0x441653;if(_0x3158ed&&'highlight'==_0x3158ed['commandName']){const _0x1d974f=_0x41c1a9['t'],_0x1fe0a2=_0x3158ed['commandParams'][0x0]['value'];if(_0x1fe0a2){const _0x35e099=_0x42d41a['config']['get']('highlight.options')['find'](_0x3af8df=>_0x3af8df['model']==_0x1fe0a2),_0x360e2b=_0x1d974f(_0x35e099['title'])['toLowerCase']();return{'type':'format','content':o(_0x41c1a9,'*Set\x20highlight:*\x20%0',_0x360e2b),'color':{'value':_0x35e099['color'],'title':_0x35e099['title']}};}return{'type':'format','content':o(_0x41c1a9,'*Remove\x20highlight*',o(_0x41c1a9,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x24408b{['afterInit'](){const _0xe52600=this['editor'];if(!_0xe52600['plugins']['has']('HorizontalLineEditing'))return;_0xe52600['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x9a526a=_0xe52600['plugins']['get']('TrackChangesEditing'),_0x1742c7=_0xe52600['locale'];_0x9a526a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x10e386=>o(_0x1742c7,'ELEMENT_HORIZONTAL_LINE',_0x10e386)),_0xe52600['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d4e6f,{writer:_0x3669e5,options:_0x88d70a})=>{if(!_0x88d70a['showSuggestionHighlights'])return null;const _0x1d34d3=_0x3669e5['createContainerElement']('div'),_0x247136=_0x3669e5['createEmptyElement']('hr');return _0x3669e5['addClass']('ck-horizontal-line',_0x1d34d3),_0x3669e5['insert'](_0x3669e5['createPositionAt'](_0x1d34d3,0x0),_0x247136),_0x1d34d3;},'converterPriority':'high'});}}class st extends _0x24408b{['afterInit'](){const _0x1c8d89=this['editor'];if(!_0x1c8d89['plugins']['has']('HtmlEmbed'))return;const _0x169df0=_0x1c8d89['plugins']['get']('TrackChangesEditing'),_0x3243e6=_0x1c8d89['locale'];_0x169df0['descriptionFactory']['registerElementLabel']('rawHtml',_0x101e2b=>o(_0x3243e6,'ELEMENT_HTML_EMBED',_0x101e2b)),_0x169df0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x169df0['registerBlockAttribute']('value'),_0x169df0['descriptionFactory']['registerDescriptionCallback'](_0x4e8ad3=>{if('attribute'!=_0x4e8ad3['type'])return;const {data:_0x3c227e}=_0x4e8ad3;if(_0x3c227e&&'value'==_0x3c227e['key']&&_0x4e8ad3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x736276=o(_0x3243e6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3243e6,'*Change\x20%0\x20content*',_0x736276)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x464497=this['editor'],_0x16740a=_0x464497['locale'];_0x464497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f3cc6=>{if('formatBlock'!=_0x1f3cc6['type'])return;const {data:_0x3919cb}=_0x1f3cc6;if(_0x3919cb&&'htmlEmbed'==_0x3919cb['commandName']){const _0x1cdf44=o(_0x16740a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16740a,'*Change\x20%0\x20content*',_0x1cdf44)};}});}}class ot extends _0x24408b{['afterInit'](){const _0x41f0bd=this['editor'];if(!_0x41f0bd['plugins']['has']('ImageEditing'))return;const _0x800477=_0x41f0bd['plugins']['get']('TrackChangesEditing'),_0x130235=_0x41f0bd['plugins']['get']('ImageUtils'),_0x16bbea=_0x41f0bd['locale'];_0x800477['enableCommand']('insertImage'),_0x800477['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c4dd7=>o(_0x16bbea,'ELEMENT_IMAGE',_0x2c4dd7)),_0x800477['descriptionFactory']['registerElementLabel']('imageInline',_0xbde7c2=>o(_0x16bbea,'ELEMENT_INLINE_IMAGE',_0xbde7c2)),_0x800477['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x16bbea,'ELEMENT_CAPTION')),_0x41f0bd['plugins']['has']('ImageUploadEditing')&&_0x800477['enableCommand']('uploadImage'),_0x41f0bd['plugins']['has']('ImageBlockEditing')&&_0x41f0bd['plugins']['has']('ImageInlineEditing')&&(_0x800477['enableCommand']('imageTypeInline',(_0x51a8bb,_0x1ae3b8)=>{const _0x2b2a93=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']);_0x41f0bd['model']['change'](()=>{_0x800477['markBlockFormat'](_0x2b2a93,{'commandName':'imageTypeInline','commandParams':[_0x1ae3b8]},[],'convertBlockImageToInline');});}),_0x800477['enableCommand']('imageTypeBlock',(_0x171555,_0x315d17)=>{_0x41f0bd['model']['change'](_0x972b9b=>{let _0x68a855=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x3629ef=_0x972b9b['createRangeOn'](_0x68a855);const _0x5d38f4=_0x3db975['fromPosition'](_0x3629ef['start'],'toPrevious'),_0x166664=_0x3db975['fromPosition'](_0x3629ef['end'],'toNext');_0x800477['forceDefaultExecution'](()=>_0x171555(_0x315d17)),_0x68a855=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x3629ef=_0x972b9b['createRangeOn'](_0x68a855);const _0x27ecd9=_0x972b9b['createRange'](_0x5d38f4,_0x166664);_0x5d38f4['detach'](),_0x166664['detach'](),_0x800477['markBlockFormat'](_0x68a855,{'commandName':'imageTypeInline','commandParams':[_0x315d17]},[],'convertInlineImageToBlock'),_0x27ecd9['start']['isBefore'](_0x3629ef['start'])&&_0x800477['markInsertion'](_0x972b9b['createRange'](_0x27ecd9['start'],_0x3629ef['start']),'convertInlineImageToBlock'),_0x3629ef['end']['isBefore'](_0x27ecd9['end'])&&_0x800477['markInsertion'](_0x972b9b['createRange'](_0x3629ef['end'],_0x27ecd9['end']),'convertInlineImageToBlock');});}),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x800477['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x514b68])=>{const _0x4ab4fb=_0x800477['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44a3e5=_0x514b68['start'],_0x2bb78d=_0x514b68['end'];const _0x4f35c9=_0x41f0bd['model']['schema']['getNearestSelectionRange'](_0x44a3e5,'backward'),_0x13c998=_0x41f0bd['model']['schema']['getNearestSelectionRange'](_0x2bb78d,'forward');_0x4f35c9['isCollapsed']&&(_0x44a3e5=_0x4f35c9['start']),_0x13c998['isCollapsed']&&(_0x2bb78d=_0x13c998['end']),_0x4ab4fb([_0x41f0bd['model']['createRange'](_0x44a3e5,_0x2bb78d)]);}),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x99cf9f),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x99cf9f)),_0x41f0bd['plugins']['has']('ImageCaptionEditing')&&(_0x800477['enableCommand']('toggleImageCaption',(_0x264603,_0x21cd04)=>{const _0x4cedbf=_0x41f0bd['plugins']['get']('ImageCaptionUtils');let _0x3a5c8a=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x366661=_0x4cedbf['getCaptionFromImageModelElement'](_0x3a5c8a);_0x41f0bd['model']['change'](()=>{if(_0x366661)return void _0x800477['markDeletion'](_0x41f0bd['model']['createRangeOn'](_0x366661));const _0x19bafc=_0x130235['isBlockImage'](_0x3a5c8a);_0x264603(_0x21cd04),_0x3a5c8a=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x366661=_0x4cedbf['getCaptionFromImageModelElement'](_0x3a5c8a),_0x800477['markInsertion'](_0x41f0bd['model']['createRangeOn'](_0x366661),_0x19bafc?null:'imageCaption');});}),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x99cf9f));const _0x456e43=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1066a7(_0x2642a3,_0x45f5b){const _0x38b414=_0x456e43['findIndex'](({type:_0x53aaa7,subType:_0x4aaf2c})=>_0x2642a3['type']==_0x53aaa7&&_0x2642a3['subType']==_0x4aaf2c),_0x499ad2=_0x456e43['findIndex'](({type:_0x708938,subType:_0x27bfd6})=>_0x45f5b['type']==_0x708938&&_0x45f5b['subType']==_0x27bfd6);if(_0x38b414<0x0||_0x499ad2<0x0)return!0x1;const _0x308e8b=_0x2642a3['getFirstRange'](),_0x4b4cb9=_0x45f5b['getFirstRange']();if((0x0==_0x38b414||0x1==_0x38b414)&&0x2==_0x499ad2&&_0x308e8b['isIntersecting'](_0x4b4cb9))return!0x0;if(0x2==_0x38b414&&0x3==_0x499ad2){const _0xbbbf9e=_0x800477['_findSuggestions'](_0x308e8b,'insertion')['filter'](({suggestion:_0x5a6127,meta:_0x3dc813})=>_0x3dc813['isOwn']&&'convertInlineImageToBlock'==_0x5a6127['subType']);if(_0xbbbf9e['length']>0x1&&_0x4b4cb9['end']['isEqual'](_0x308e8b['start']))return!0x0;if(0x1==_0xbbbf9e['length']&&(_0x308e8b['start']['isEqual'](_0x4b4cb9['end'])||_0x308e8b['end']['isEqual'](_0x4b4cb9['start'])))return!0x0;}if(0x3==_0x38b414&&0x3==_0x499ad2&&_0x308e8b['start']['isBefore'](_0x4b4cb9['start'])){const _0x4ba872=_0x308e8b['end']['nodeAfter'],_0xecd856=_0x4b4cb9['start']['nodeBefore'];return _0x130235['isBlockImage'](_0x4ba872)&&_0x4ba872===_0xecd856;}return!0x1;}function _0x99cf9f(_0x40ecf3,_0x51541f){return _0x1066a7(_0x40ecf3,_0x51541f)?[_0x40ecf3,_0x51541f]:_0x1066a7(_0x51541f,_0x40ecf3)?[_0x51541f,_0x40ecf3]:null;}_0x41f0bd['plugins']['has']('ImageResize')&&(_0x800477['enableDefaultAttributesIntegration']('resizeImage'),_0x800477['registerBlockAttribute']('resizedWidth'),_0x800477['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x16bbea,'FORMAT_IMAGE_SIZE'))),_0x41f0bd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x800477['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x800477['registerBlockAttribute']('alt')),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x2e7cd0=>{if(!!_0x456e43['find'](({type:_0x4ea6bd,subType:_0x31cbe5})=>_0x2e7cd0['type']==_0x4ea6bd&&_0x2e7cd0['subType']==_0x31cbe5))return _0x2e7cd0['previous']?{}:void 0x0;}),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x5de85f=>{if('insertion'==_0x5de85f['type']||'deletion'==_0x5de85f['type']){const _0x5b03c8=_0x5de85f['getContainedElement']();if(_0x5b03c8&&_0x5b03c8['is']('element','caption'))return{'type':'insertion'==_0x5de85f['type']?'addObject':'removeObject','element':_0x5b03c8,'quantity':0x1};}}),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x5548ed=>'formatBlock'==_0x5548ed['type']&&'convertInlineImageToBlock'==_0x5548ed['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5548ed['type']&&'convertBlockImageToInline'==_0x5548ed['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x3f71f8=>{if('attribute'!=_0x3f71f8['type'])return;const {data:_0x10ca43}=_0x3f71f8;if(!_0x10ca43||'alt'!=_0x10ca43['key'])return;const _0x275a85=_0x10ca43['newValue'];return _0x275a85?{'type':'format','content':o(_0x16bbea,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x275a85+'\x22')}:{'type':'format','content':o(_0x16bbea,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27641b=this['editor'],_0x5a214c=_0x27641b['locale'];_0x27641b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x527220=>{if('formatBlock'!=_0x527220['type']&&'formatInline'!=_0x527220['type'])return;const {data:_0x554594}=_0x527220;if(_0x554594){if('imageTextAlternative'==_0x554594['commandName']){const _0x19bbe7=_0x554594['commandParams'][0x0]['newValue'];return _0x19bbe7?{'type':'format','content':o(_0x5a214c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x19bbe7+'\x22')}:{'type':'format','content':o(_0x5a214c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x554594['commandName']){const _0x5bd0de=_0x554594['commandParams'][0x0]['width'];return _0x5bd0de?{'type':'format','content':o(_0x5a214c,'*Set\x20image\x20width:*\x20%0',_0x5bd0de)}:{'type':'format','content':o(_0x5a214c,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x550d73=this['editor']['locale'],_0xa6da5c=this['editor']['plugins']['get']('TrackChangesEditing');_0xa6da5c['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa6da5c['registerBlockAttribute']('src'),_0xa6da5c['descriptionFactory']['registerDescriptionCallback'](_0x4d8057=>{if('attribute'!=_0x4d8057['type'])return;const {data:_0x46b178}=_0x4d8057;return _0x46b178&&'src'==_0x46b178['key']?_0x46b178['newValue']&&_0x46b178['oldValue']?{'type':'format','content':o(_0x550d73,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13bf77=this['editor']['plugins']['get']('TrackChangesEditing');_0x13bf77['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13bf77['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13bf77['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13bf77['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ffe40=this['editor'],_0x3fc564=_0x8ffe40['locale'];_0x8ffe40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0c6b=>{if('formatBlock'!=_0x5e0c6b['type']&&'formatInline'!=_0x5e0c6b['type'])return;const {data:_0x3c2b29}=_0x5e0c6b;if(!_0x3c2b29||'replaceImageSource'!=_0x3c2b29['commandName'])return;return{'type':'format','content':o(_0x3fc564,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x24408b{['afterInit'](){const _0x49e7ba=this['editor'];if(!_0x49e7ba['plugins']['has']('ImageStyleEditing'))return;const _0x374f0d=_0x49e7ba['plugins']['get']('TrackChangesEditing'),_0x5ab682=_0x49e7ba['plugins']['get']('ImageUtils'),_0x5b2c37={};_0x374f0d['enableCommand']('imageStyle',(_0x2af27a,_0x4661a5)=>{const _0x6bfe8a=_0x49e7ba['plugins']['get']('Users')['me'],_0x35ce96=_0x49e7ba['commands']['get']('imageStyle');let _0x17b2ea=_0x5ab682['getClosestSelectedImageElement'](_0x49e7ba['model']['document']['selection']),_0x3e1d6c=_0x49e7ba['model']['createRangeOn'](_0x17b2ea),_0x1b10c7=_0x35ce96['value'];if(_0x1b10c7==_0x4661a5['value'])return;const _0x1dd580={'commandName':'imageStyle','commandParams':[_0x4661a5],'formatGroupId':_0x425cf6()};_0x49e7ba['model']['change'](()=>{if(_0x374f0d['getSuggestions']()['filter'](_0x1cf690=>_0x1cf690['isInContent']&&_0x6bfe8a==_0x1cf690['author']&&('formatBlock'==_0x1cf690['type']||'formatInline'==_0x1cf690['type'])&&('imageStylePreApply'==_0x1cf690['subType']||'imageStylePostApply'==_0x1cf690['subType'])&&_0x1cf690['getFirstRange']()['isEqual'](_0x3e1d6c))['forEach'](_0x41f42e=>_0x374f0d['discardSuggestion'](_0x41f42e['head'])),_0x17b2ea=_0x5ab682['getClosestSelectedImageElement'](_0x49e7ba['model']['document']['selection']),_0x3e1d6c=_0x49e7ba['model']['createRangeOn'](_0x17b2ea),_0x35ce96['refresh'](),_0x49e7ba['commands']['get']('imageTypeInline')['refresh'](),_0x49e7ba['commands']['get']('imageTypeBlock')['refresh'](),_0x1b10c7=_0x35ce96['value'],_0x1b10c7!=_0x4661a5['value'])return _0x5ab682['isInlineImage'](_0x17b2ea)&&_0x35ce96['shouldConvertImageType'](_0x4661a5['value'],_0x17b2ea)?(_0x2af27a({..._0x4661a5,'setImageSizes':!0x1}),_0x17b2ea=_0x5ab682['getClosestSelectedImageElement'](_0x49e7ba['model']['document']['selection']),void _0x374f0d['markBlockFormat'](_0x17b2ea,{..._0x1dd580,'commandReversedParams':[{'value':_0x1b10c7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5ab682['isBlockImage'](_0x17b2ea)?_0x374f0d['markBlockFormat'](_0x17b2ea,_0x1dd580,[],'imageStylePostApply'):_0x374f0d['markInlineFormat'](_0x3e1d6c,_0x1dd580,'imageStylePostApply'));});});for(const _0x1b2ebd of _0x49e7ba['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5b2c37[_0x1b2ebd['name']]=_0x1b2ebd['title']['toLowerCase']();_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf1f209])=>{_0x5ab682['setImageNaturalSizeAttributes'](_0xf1f209['getContainedElement']());}),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x194b6a,_0x1e40fe)=>{_0x374f0d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x194b6a,{'commandName':_0x1e40fe['commandName'],'commandParams':_0x1e40fe['commandReversedParams']});}),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1c0b59,_0x29600e){if(_0x58dad7(_0x1c0b59,_0x29600e))return[_0x1c0b59,_0x29600e];if(_0x58dad7(_0x29600e,_0x1c0b59))return[_0x29600e,_0x1c0b59];return null;});const _0x1de5a3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58dad7(_0x16d02b,_0x55f8c0){const _0x46ea05=_0x1de5a3['findIndex'](({type:_0x1dd22e,subType:_0x1841cf})=>_0x16d02b['type']==_0x1dd22e&&_0x16d02b['subType']==_0x1841cf),_0x2ad12c=_0x1de5a3['findIndex'](({type:_0xdee35f,subType:_0x57324a})=>_0x55f8c0['type']==_0xdee35f&&_0x55f8c0['subType']==_0x57324a);if(_0x46ea05<0x0||_0x2ad12c<0x0)return!0x1;const _0x5e43e4=_0x16d02b['getFirstRange'](),_0x51778d=_0x55f8c0['getFirstRange']();if((0x0==_0x46ea05||0x1==_0x46ea05)&&0x2==_0x2ad12c&&_0x5e43e4['isIntersecting'](_0x51778d))return!0x0;if(0x2==_0x46ea05&&0x3==_0x2ad12c){const _0x48e2da=_0x374f0d['_findSuggestions'](_0x5e43e4,'insertion')['filter'](({suggestion:_0x251a66,meta:_0x259253})=>_0x259253['isOwn']&&'convertInlineImageToBlock'==_0x251a66['subType']);if(_0x48e2da['length']>0x1&&_0x51778d['end']['isEqual'](_0x5e43e4['start']))return!0x0;if(0x1==_0x48e2da['length']&&(_0x5e43e4['start']['isEqual'](_0x51778d['end'])||_0x5e43e4['end']['isEqual'](_0x51778d['start'])))return!0x0;}if(0x3==_0x46ea05&&0x3==_0x2ad12c&&_0x5e43e4['start']['isBefore'](_0x51778d['start'])){const _0x1c2962=_0x5e43e4['end']['nodeAfter'],_0x4fb69d=_0x51778d['start']['nodeBefore'];return _0x5ab682['isBlockImage'](_0x1c2962)&&_0x1c2962===_0x4fb69d;}return!0x1;}_0x49e7ba['model']['document']['registerPostFixer'](()=>{let _0x45a5ef=!0x1;const _0x366daf=Array['from'](_0x49e7ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x208b47,data:_0x3efee8}of _0x366daf){const {group:_0xe485e6,type:_0x2b6e5e,subType:_0x4f4831,id:_0x15161c}=_0x374f0d['_splitMarkerName'](_0x208b47);if('suggestion'==_0xe485e6&&_0x374f0d['hasSuggestion'](_0x15161c)){if('formatBlock'==_0x2b6e5e&&('imageStylePreApply'==_0x4f4831||'imageStylePostApply'==_0x4f4831)){const _0x316a21=_0x374f0d['getSuggestion'](_0x15161c);if(_0x3efee8['newRange']){const _0x2ccbfc=_0x316a21['getFirstRange']()['getContainedElement']();if(_0x5ab682['isBlockImage'](_0x2ccbfc))continue;_0x374f0d['discardSuggestion'](_0x316a21),_0x45a5ef=!0x0;}}if('insertion'==_0x2b6e5e&&'imageCaption'==_0x4f4831&&!_0x3efee8['newRange']){const _0x161112=_0x374f0d['getSuggestion'](_0x15161c);_0x161112['next']&&_0x161112['next']['isInContent']&&(_0x374f0d['discardSuggestion'](_0x161112['next']),_0x45a5ef=!0x0);}}}return _0x45a5ef;}),this['_registerLegacyDescription'](_0x5b2c37);}['_registerLegacyDescription'](_0x2585b4){const _0x2fe1c6=this['editor'],_0x39fce8=_0x2fe1c6['locale'];_0x2fe1c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed3d4=>{if('formatBlock'!=_0x1ed3d4['type']&&'formatInline'!=_0x1ed3d4['type'])return;const {data:_0x38eaa2}=_0x1ed3d4;if(!_0x38eaa2||'imageStyle'!=_0x38eaa2['commandName'])return;const _0x9d5c97=_0x38eaa2['commandParams'][0x0]['value'];return _0x38fa5c('side'===_0x9d5c97?o(_0x39fce8,'FORMAT_SIDE_IMAGE'):_0x2585b4[_0x9d5c97]||_0x9d5c97);function _0x38fa5c(_0x11e697){return{'type':'format','content':o(_0x39fce8,'*Format:*\x20%0',_0x11e697)};}});}}class ct extends _0x24408b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3644ad){super(_0x3644ad),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5eb837=this['editor'],_0x12065f=_0x5eb837['commands']['get']('importWord'),_0x88f290=_0x5eb837['commands']['get']('trackChanges');_0x12065f&&(_0x12065f['on']('execute',(_0x2046c5,[,_0x20cf92])=>{this['_trackChangesValueDuringImport']=_0x88f290['value'],_0x20cf92['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x12065f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x12065f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x88f290['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5eb837['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4d3f4e,_0x2a3d38){const {suggestions:_0x567287}=_0x2a3d38,_0x307bc9=this['editor']['commands']['get']('trackChanges'),_0xb91f65=_0x307bc9['value'];this['_trackChangesValueDuringImport']!==_0xb91f65&&(_0x307bc9['execute'](),this['_trackChangesExecuted']=!0x0),_0x567287&&_0x567287['forEach'](({id:_0x1659ac,type:_0xe2e83c,author:_0x464c2c,created_at:_0x49d39e})=>{const _0x4c98c8={'id':_0x1659ac,'type':_0xe2e83c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x464c2c,'createdAt':_0x49d39e?new Date(_0x49d39e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c98c8);});}}class ut extends _0x24408b{['afterInit'](){const _0x5a3fd1=this['editor'],_0x48cfc7=_0x5a3fd1['plugins']['get']('TrackChangesEditing');if(_0x5a3fd1['plugins']['has']('IndentEditing')&&(_0x48cfc7['enableCommand']('indent'),_0x48cfc7['enableCommand']('outdent')),_0x5a3fd1['plugins']['has']('IndentBlock')){for(const _0x3351de of['indentBlock','outdentBlock'])_0x48cfc7['enableDefaultAttributesIntegration'](_0x3351de);}const _0x482f62=_0x5a3fd1['locale'];_0x48cfc7['registerBlockAttribute']('blockIndent'),_0x48cfc7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x482f62,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488b8d=this['editor'],_0x304ea0=_0x488b8d['locale'],_0x4654ac=_0x488b8d['plugins']['get']('TrackChangesEditing');_0x4654ac['descriptionFactory']['registerDescriptionCallback'](_0x512ef7=>{if('formatBlock'!=_0x512ef7['type'])return;const {data:_0x262032}=_0x512ef7;if(!_0x262032)return;if('indentBlock'!=_0x262032['commandName']&&'outdentBlock'!=_0x262032['commandName'])return;const _0x515bf4=_0x512ef7['getItems']()[0x0],_0x2187fc=_0x4654ac['descriptionFactory']['getItemLabel'](_0x515bf4);return'indentBlock'==_0x262032['commandName']?{'type':'format','content':o(_0x304ea0,'*Indent:*\x20%0',_0x2187fc)}:'outdentBlock'==_0x262032['commandName']?{'type':'format','content':o(_0x304ea0,'*Outdent:*\x20%0',_0x2187fc)}:void 0x0;});}}class ft extends _0x24408b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x24408b{['afterInit'](){const _0x245bb5=this['editor'];if(!_0x245bb5['plugins']['has']('LinkEditing'))return;const _0x19ea7b=_0x245bb5['plugins']['get']('TrackChangesEditing'),_0xca59ca=_0x245bb5['commands']['get']('link');_0x19ea7b['enableDefaultAttributesIntegration']('link'),_0x19ea7b['enableDefaultAttributesIntegration']('unlink'),_0x19ea7b['registerInlineAttribute']('linkHref');for(const _0x33471f of _0xca59ca['manualDecorators'])_0x19ea7b['registerInlineAttribute'](_0x33471f['id']),_0x19ea7b['descriptionFactory']['registerAttributeLabel'](_0x33471f['id'],'link\x20('+_0x33471f['label']['toLowerCase']()+')');_0x19ea7b['descriptionFactory']['registerDescriptionCallback'](_0x231cac=>{if('attribute'!=_0x231cac['type'])return;const {data:_0xcf52da}=_0x231cac;if(!_0xcf52da||'linkHref'!=_0xcf52da['key'])return;const _0x20da6d=_0xcf52da['newValue'],_0x11acec=_0x245bb5['locale'];return{'type':'format','content':null==_0x20da6d?o(_0x11acec,'*Remove\x20link*'):o(_0x11acec,'*Set\x20link:*\x20%0','\x22'+_0x20da6d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x115854=this['editor'],_0x21e561=_0x115854['locale'];_0x115854['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fe86e=>{if('formatInline'!=_0x5fe86e['type'])return;const {data:_0x5b7224}=_0x5fe86e;if(_0x5b7224){if('link'==_0x5b7224['commandName']){const _0x4d8986=_0x5b7224['commandParams'][0x0];return{'type':'format','content':o(_0x21e561,'*Set\x20link:*\x20%0','\x22'+_0x4d8986+'\x22')};}return'unlink'==_0x5b7224['commandName']?{'type':'format','content':o(_0x21e561,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x24408b{['afterInit'](){const _0x231558=this['editor'],_0x289ae8=_0x231558['locale'];if(!_0x231558['plugins']['has']('LegacyListEditing'))return;const _0x276335=_0x231558['plugins']['get']('TrackChangesEditing'),_0x3f0b82=_0x231558['plugins']['has']('LegacyTodoListEditing');function _0x5d0748(_0x4f7563){return()=>{const _0x590c99=_0x231558['model']['document']['selection'],_0x12422e=_0x231558['commands']['get'](_0x4f7563);if(_0x12422e['value'])return void _0x231558['execute']('paragraph',{});const _0x478cd3=_0x4f7563['slice'](0x0,-0x4),_0x367f38=function(_0x16bf74,_0x3dcef0,_0x2cd702){let _0x1f111a=Array['from'](_0x16bf74)['filter'](_0x563d67=>function(_0x16ddb7,_0x8e33b9){return _0x8e33b9['checkChild'](_0x16ddb7['parent'],'listItem')&&!_0x8e33b9['isObject'](_0x16ddb7);}(_0x563d67,_0x2cd702));_0x1f111a=_0x1f111a['filter'](_0x16c577=>!_0x16c577['is']('element','listItem')||_0x16c577['getAttribute']('listType')!=_0x3dcef0);const _0x1da14e=new Set();for(const _0x4bde50 of _0x1f111a)_0x4bde50['is']('element','listItem')?_0x1da14e['add'](Le(_0x4bde50)):_0x1da14e['add'](_0x4bde50);return Array['from'](_0x1da14e);}(_0x590c99['getSelectedBlocks'](),_0x478cd3,_0x231558['model']['schema']);_0x231558['model']['change'](()=>{for(const _0x2ac4d6 of _0x367f38)_0x276335['markBlockFormat'](_0x2ac4d6,{'commandName':_0x4f7563,'commandParams':[{'forceValue':!_0x12422e['value']}],'formatGroupId':'blockName'},Ee(_0x2ac4d6));});};}function _0x2280eb(_0x287a59){return()=>{const _0x2d0e71=function(_0x1056d5){let _0x101db8=Array['from'](_0x1056d5);const _0xcd999b=_0x101db8['findIndex'](_0xae094e=>'listItem'!=_0xae094e['name']);return _0xcd999b>-0x1&&(_0x101db8=_0x101db8['slice'](0x0,_0xcd999b)),_0x101db8;}(_0x231558['model']['document']['selection']['getSelectedBlocks']()),_0x302a7f=_0x231558['model']['createRange'](_0x231558['model']['createPositionAt'](_0x2d0e71[0x0],'before'),_0x231558['model']['createPositionAt'](_0x2d0e71[_0x2d0e71['length']-0x1],'end'));_0x231558['model']['change'](()=>{_0x276335['markBlockFormat'](_0x302a7f,{'commandName':_0x287a59,'commandParams':[],'formatGroupId':'listIndent'},function(_0x287db6){const _0x460f79=new Set();for(const _0x2dc7fb of _0x287db6){let _0x3aada9=_0x2dc7fb['nextSibling'];for(;_0x3aada9&&_0x3aada9['getAttribute']('listIndent')>_0x2dc7fb['getAttribute']('listIndent');)_0x460f79['add'](_0x3aada9),_0x3aada9=_0x3aada9['nextSibling'];}return Array['from'](_0x460f79);}(_0x2d0e71));});};}_0x276335['enableCommand']('numberedList',_0x5d0748('numberedList')),_0x276335['enableCommand']('bulletedList',_0x5d0748('bulletedList')),_0x3f0b82&&_0x276335['enableCommand']('todoList',_0x5d0748('todoList')),_0x276335['enableCommand']('indentList',_0x2280eb('indentList')),_0x276335['enableCommand']('outdentList',_0x2280eb('outdentList')),_0x3f0b82&&_0x276335['enableCommand']('checkTodoList',()=>{const _0x4ec197=_0x231558['commands']['get']('checkTodoList'),_0x58d701=Array['from'](_0x4ec197['_selectedElements']);_0x58d701['filter'](_0x40c0e2=>_0x40c0e2['getAttribute']('todoListChecked')!=_0x4ec197['value']),_0x231558['model']['change'](()=>{for(const _0x52a8ac of _0x58d701)_0x276335['markBlockFormat'](_0x52a8ac,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4ec197['value']}]});});}),_0x276335['descriptionFactory']['registerElementLabel']('listItem',_0x54986c=>o(_0x289ae8,'ELEMENT_LIST_ITEM',_0x54986c)),_0x276335['descriptionFactory']['registerDescriptionCallback'](_0x481dcc=>{if('formatBlock'!=_0x481dcc['type']&&'formatInline'!=_0x481dcc['type'])return;const {data:_0x12609c}=_0x481dcc;if(_0x12609c){if('numberedList'==_0x12609c['commandName']||'bulletedList'==_0x12609c['commandName']||'todoList'==_0x12609c['commandName'])switch(_0x12609c['commandName']['replace']('List','')){case'bulleted':return _0x13a494(o(_0x289ae8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13a494(o(_0x289ae8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13a494(o(_0x289ae8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x12609c['commandName'])return{'type':'format','content':o(_0x289ae8,'*Indent:*\x20%0',o(_0x289ae8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x12609c['commandName'])return{'type':'format','content':o(_0x289ae8,'*Outdent:*\x20%0',o(_0x289ae8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x12609c['commandName'])return _0x12609c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x289ae8,'*Check\x20item*')}:{'type':'format','content':o(_0x289ae8,'*Uncheck\x20item*')};}function _0x13a494(_0x381131){return{'type':'format','content':o(_0x289ae8,'*Change\x20to:*\x20%0',_0x381131)};}});}}function Le(_0x4c3482){const _0x46fe24=_0x4c3482['getAttribute']('listIndent');if(0x0==_0x46fe24)return _0x4c3482;let _0x145419=_0x4c3482;for(;_0x4c3482['previousSibling']&&_0x4c3482['previousSibling']['is']('element','listItem');){const _0x1887b0=_0x4c3482['previousSibling']['getAttribute']('listIndent');if(_0x1887b0==_0x46fe24)_0x145419=_0x4c3482['previousSibling'];else{if(_0x1887b0<_0x46fe24)break;}_0x4c3482=_0x4c3482['previousSibling'];}return _0x145419;}function Ee(_0x109b9e){const _0x477ded=[];if(_0x109b9e['is']('element','listItem')&&_0x109b9e['getAttribute']('listIndent')>0x0){let _0x4a3f14=_0x109b9e['nextSibling'];for(;_0x4a3f14&&'listItem'==_0x4a3f14['name']&&_0x4a3f14['getAttribute']('listIndent')==_0x109b9e['getAttribute']('listIndent');)_0x477ded['push'](_0x4a3f14),_0x4a3f14=_0x4a3f14['nextSibling'];}return _0x477ded;}class Q extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x315fd9=this['editor']['config']['get']('list.properties'),_0x598e11=this['editor']['plugins']['get']('TrackChangesEditing');_0x315fd9['styles']&&_0x598e11['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x315fd9['reversed']&&_0x598e11['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x315fd9['startIndex']&&_0x598e11['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x598e11['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e31fd,_0x27ffe4={}){const _0x5168ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1365c2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5168ce['markMultiRangeBlockFormat'](_0x1365c2,{'commandName':'listStyle','commandParams':[{'type':_0x27ffe4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x36072e,_0x57a150={}){const _0x2a5561=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1586d1=this['_getSuggestionBlocks'](_0x302be5=>_0x302be5['is']('element','listItem')&&'numbered'===_0x302be5['getAttribute']('listType'));if(_0x1586d1['length']<0x1)return;const _0x112968=_0x1586d1['map'](_0x37c587=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37c587,'before'),this['editor']['model']['createPositionAt'](_0x37c587,0x0)));this['editor']['model']['change'](()=>{_0x2a5561['markMultiRangeBlockFormat'](_0x112968,{'commandName':'listReversed','commandParams':[{'reversed':_0x57a150['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x48a0de,_0x5721d8={}){const _0x15e2d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bf537=this['_getSuggestionBlocks'](_0x5d0c6e=>_0x5d0c6e['is']('element','listItem')&&'numbered'===_0x5d0c6e['getAttribute']('listType'));if(_0x1bf537['length']<0x1)return;const _0xe73971=_0x1bf537['map'](_0x3cd9c7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3cd9c7,'before'),this['editor']['model']['createPositionAt'](_0x3cd9c7,0x0)));this['editor']['model']['change'](()=>{_0x15e2d1['markMultiRangeBlockFormat'](_0xe73971,{'commandName':'listStart','commandParams':[{'startIndex':_0x5721d8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x141c88){if('formatBlock'!=_0x141c88['type']&&'formatInline'!=_0x141c88['type'])return;const _0x45edee=this['editor']['locale'],{data:_0x14333f}=_0x141c88;if(!_0x14333f)return;let _0x2f73f0,_0x368dad;switch(_0x14333f['commandName']){case'listStyle':_0x2f73f0='*Change\x20to:*\x20%0',_0x368dad={'type':'format','content':o(_0x45edee,_0x2f73f0,o(_0x45edee,this['_getTranslationKeyForListStyle'](_0x14333f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f73f0=_0x14333f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x368dad={'type':'format','content':o(_0x45edee,_0x2f73f0)};break;case'listStart':_0x2f73f0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x368dad={'type':'format','content':o(_0x45edee,_0x2f73f0,_0x14333f['commandParams'][0x0]['startIndex'])};}return _0x368dad;}['_getSuggestionBlocksForListStyle'](){const _0x576f4d=this['editor']['plugins']['get']('LegacyListUtils');let _0x26913e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x26913e[0x0]?.['is']('element','listItem')&&_0x26913e['unshift'](..._0x576f4d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x26913e[_0x26913e['length']-0x1]?.['is']('element','listItem')&&_0x26913e['push'](..._0x576f4d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x26913e=[...new Set(_0x26913e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x26913e=_0x26913e['filter'](_0x1694ed=>_0x1694ed['is']('element','listItem'))),_0x26913e;}['_getSuggestionBlocks'](_0x18a7bc){const _0x130a97=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c1727=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18a7bc)['map'](_0x250f0a=>{const _0x366354=this['editor']['model']['createPositionAt'](_0x250f0a,0x0);return[..._0x130a97['getSiblingNodes'](_0x366354,'backward'),..._0x130a97['getSiblingNodes'](_0x366354,'forward')];})['flat']();return _0x4c1727=[...new Set(_0x4c1727)],_0x4c1727;}['_getTranslationKeyForListStyle'](_0x2d0d13){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2d0d13)||'default')['toUpperCase']()+'_LIST_'+_0x2d0d13['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x24408b{['afterInit'](){const _0x59cdfe=this['editor'];if(!_0x59cdfe['plugins']['has']('MediaEmbedEditing'))return;const _0x501dfc=_0x59cdfe['plugins']['get']('TrackChangesEditing'),_0x39e61a=_0x59cdfe['locale'];_0x501dfc['enableCommand']('mediaEmbed'),_0x501dfc['descriptionFactory']['registerElementLabel']('media',_0x417507=>o(_0x39e61a,'ELEMENT_MEDIA',_0x417507)),_0x59cdfe['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x11167b,{writer:_0x350016,options:_0x164c1b})=>{if(_0x164c1b['showSuggestionHighlights'])return _0x350016['createEmptyElement']('div');},'converterPriority':'high'}),_0x59cdfe['data']['downcastDispatcher']['on']('attribute:url:media',(_0x299c19,_0x17f380,_0x46b0d1)=>{_0x46b0d1['options']['showSuggestionHighlights']&&_0x299c19['stop']();},{'priority':'high'});}}class mt extends _0x24408b{['afterInit'](){const _0x12505c=this['editor'];_0x12505c['plugins']['has']('MentionEditing')&&_0x12505c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x24408b{['afterInit'](){const _0x5b3058=this['editor'];if(!_0x5b3058['plugins']['has']('MergeFieldsEditing'))return;_0x5b3058['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5b3058['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2dd45f=_0x5b3058['plugins']['get']('TrackChangesEditing'),_0x458c22=_0x5b3058['locale'];_0x2dd45f['descriptionFactory']['registerElementLabel']('mergeField',_0x554bc9=>o(_0x458c22,'ELEMENT_MERGE_FIELD',_0x554bc9)),_0x2dd45f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1f73a0=>o(_0x458c22,'ELEMENT_MERGE_FIELD',_0x1f73a0)),_0x2dd45f['descriptionFactory']['registerDescriptionCallback'](_0x1b3232=>{if('insertion'!=_0x1b3232['type']&&'deletion'!=_0x1b3232['type'])return;const _0x4cbaed=_0x1b3232['getContainedElement']();if(null==_0x4cbaed)return;if(!_0x4cbaed['is']('element','mergeField')&&!_0x4cbaed['is']('element','mergeFieldBlock'))return;const _0x46aa21=_0x5b3058['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4cbaed['getAttribute']('id'));return'insertion'==_0x1b3232['type']?{'type':'insertion','content':o(_0x458c22,'*Insert:*\x20%0','\x22'+_0x46aa21+'\x22\x20'+o(_0x458c22,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x458c22,'*Remove:*\x20%0','\x22'+_0x46aa21+'\x22\x20'+o(_0x458c22,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x24408b{['afterInit'](){const _0x2e6ca5=this['editor'],_0x3d80a0=_0x2e6ca5['plugins']['get']('TrackChangesEditing');_0x2e6ca5['plugins']['has']('MultiLevelList')&&(_0x3d80a0['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d80a0['registerBlockAttribute']('listMarkerStyle'),_0x3d80a0['descriptionFactory']['registerDescriptionCallback'](_0x472ae4=>this['handleDescriptions'](_0x472ae4)));}['handleDescriptions'](_0x173739){const _0x18e75a=this['editor']['locale'],{data:_0x334a9e}=_0x173739,_0x30f36d={'type':'format','content':''};if(_0x334a9e&&'listMarkerStyle'==_0x334a9e['key']){if(!_0x334a9e['oldValue'])return{'type':'format','content':o(_0x18e75a,'*Set\x20format:*\x20%0',o(_0x18e75a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x334a9e['newValue']+')'};if(!_0x334a9e['newValue']){let _0x27cd09=_0x173739['head'];for(;_0x27cd09;){if(_0x27cd09['data']&&'listType'==_0x27cd09['data']['key']&&_0x27cd09['data']['newValue'])return _0x30f36d;_0x27cd09=_0x27cd09['next'];}return{'type':'format','content':o(_0x18e75a,'*Remove\x20format:*\x20%0',o(_0x18e75a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x334a9e['oldValue']+')'};}}}}class kt extends _0x24408b{['afterInit'](){const _0x5b1d50=this['editor'];if(!_0x5b1d50['plugins']['has']('PageBreakEditing'))return;_0x5b1d50['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x25615a=_0x5b1d50['plugins']['get']('TrackChangesEditing'),_0x26b3bb=_0x5b1d50['locale'];_0x25615a['descriptionFactory']['registerElementLabel']('pageBreak',_0x508394=>o(_0x26b3bb,'ELEMENT_PAGE_BREAK',_0x508394));}}class bt extends _0x24408b{['afterInit'](){const _0x57c51b=this['editor'];if(!_0x57c51b['plugins']['has']('Paragraph'))return;const _0x115e55=_0x57c51b['locale'],_0x1f34d0=_0x57c51b['plugins']['get']('TrackChangesEditing');_0x1f34d0['descriptionFactory']['registerElementLabel']('paragraph',_0x1d74f4=>o(_0x115e55,'ELEMENT_PARAGRAPH',_0x1d74f4)),_0x1f34d0['enableDefaultAttributesIntegration']('paragraph'),_0x1f34d0['enableCommand']('insertParagraph'),_0x57c51b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x57c51b),{'priority':'highest'}),_0x57c51b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5909d3,_0x1f1919,_0x335bd6)=>{_0x335bd6['options']['showSuggestionHighlights']&&nr(_0x57c51b,{'showActiveMarker':!0x1})(_0x5909d3,_0x1f1919,_0x335bd6);},{'priority':'highest'});const _0x4fcaf1=_0x1f34d0['descriptionFactory'];_0x4fcaf1['registerDescriptionCallback'](_0x23d830=>{if('insertion'!==_0x23d830['type'])return;const {start:_0x3fd0af,end:_0x5141f5}=_0x23d830['getFirstRange']();if(!_0x3fd0af['isTouching'](_0x5141f5)||!_0x3fd0af['nodeAfter'])return;const _0x1acae0=_0x57c51b['model']['schema'],_0x14992b=_0x3fd0af['nodeAfter'];return _0x1acae0['isBlock'](_0x14992b)&&!_0x1acae0['isLimit'](_0x14992b)&&_0x1acae0['checkChild'](_0x14992b,'$text')?{'type':'insertion','content':o(_0x115e55,'*Insert:*\x20%0',_0x4fcaf1['getItemLabel'](_0x14992b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e309f=this['editor'],_0x18ae5c=_0x4e309f['locale'];_0x4e309f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4873d4=>{if('formatBlock'!=_0x4873d4['type'])return;const {data:_0x1b8ff4}=_0x4873d4;return _0x1b8ff4&&'paragraph'==_0x1b8ff4['commandName']?{'type':'format','content':o(_0x18ae5c,'*Change\x20to:*\x20%0',o(_0x18ae5c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2918a6,{showActiveMarker:_0x5e430b=!0x0}={}){return(_0x373b7c,_0x19a67f,_0x451b07)=>{const _0x48ace8=_0x2918a6['plugins']['get']('TrackChangesEditing'),_0x2601ae=_0x19a67f['markerRange']['start'],_0x187465=_0x19a67f['markerRange']['end'],_0x124ac8=_0x2918a6['model']['schema'];if(!_0x2601ae['isTouching'](_0x187465)||!_0x2601ae['nodeAfter'])return;const _0x5bce93=_0x2601ae['nodeAfter'];if(_0x124ac8['isBlock'](_0x5bce93)&&!_0x124ac8['isLimit'](_0x5bce93)&&_0x124ac8['checkChild'](_0x5bce93,'$text')){if(!_0x451b07['consumable']['consume'](_0x19a67f['markerRange'],_0x373b7c['name']))return;const {authorId:_0x50a8df}=_0x48ace8['_splitMarkerName'](_0x19a67f['markerName']),_0x4ee7bf=_0x451b07['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x50a8df}),_0x2fea3f=_0x451b07['mapper']['toViewPosition'](_0x187465);_0x5e430b&&_0x48ace8['activeMarkers']['includes'](_0x19a67f['markerName'])&&_0x451b07['writer']['addClass']('ck-suggestion-marker--active',_0x4ee7bf),_0x451b07['writer']['insert'](_0x2fea3f,_0x4ee7bf),_0x451b07['mapper']['bindElementToMarker'](_0x4ee7bf,_0x19a67f['markerName']);}};}class yt extends _0x24408b{['afterInit'](){const _0x473cd6=this['editor'];if(!_0x473cd6['plugins']['has']('RemoveFormatEditing'))return;_0x473cd6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x307f89=this['editor'];_0x307f89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47702d=>{if('formatBlock'!=_0x47702d['type']&&'formatInline'!=_0x47702d['type'])return;const {data:_0x5036a9}=_0x47702d;return _0x5036a9&&'removeFormat'==_0x5036a9['commandName']?{'type':'format','content':o(_0x307f89['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x24408b{['afterInit'](){const _0x2adc36=this['editor'];if(!_0x2adc36['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f1d69=_0x2adc36['plugins']['get']('TrackChangesEditing');_0x5f1d69['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f1d69['enableCommand']('goToNextRestrictedEditingException');const _0x202c9d=_0x2adc36['plugins']['get']('RestrictedEditingModeEditing');_0x202c9d['enableCommand']('trackChanges'),_0x202c9d['enableCommand']('acceptSuggestion'),_0x202c9d['enableCommand']('discardSuggestion'),_0x202c9d['enableCommand']('acceptAllSuggestions'),_0x202c9d['enableCommand']('discardAllSuggestions'),_0x202c9d['enableCommand']('acceptSelectedSuggestions'),_0x202c9d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x24408b{static get['requires'](){return[_0x5507b4];}['init'](){const _0x1ed106=this['editor'],_0x2e6838=_0x1ed106['plugins']['get']('TrackChangesEditing');_0x2e6838['enableCommand']('shiftEnter'),_0x1ed106['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1ed106),{'priority':'high'}),_0x1ed106['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1ed106),{'priority':'high'}),_0x1ed106['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c23b1,_0xea7861,_0x1eddfc)=>{_0x1eddfc['options']['showSuggestionHighlights']&&ke(_0x1ed106,{'showActiveMarker':!0x1})(_0x2c23b1,_0xea7861,_0x1eddfc);}),_0x2e6838['descriptionFactory']['registerElementLabel']('softBreak',_0x53bb7b=>o(_0x1ed106['locale'],'ELEMENT_LINE_BREAK',_0x53bb7b));}}function ke(_0x53266e,{showActiveMarker:_0x42fa60=!0x0}={}){return(_0x1fa866,_0x5207e2,_0x5a9726)=>{const _0x34b234=_0x53266e['plugins']['get']('TrackChangesEditing');if(!_0x5a9726['consumable']['test'](_0x5207e2['markerRange'],_0x1fa866['name']))return;const _0x5e9e02=_0x53266e['model'];for(const _0x3ad7fe of _0x5207e2['markerRange']['getItems']()){if(!_0x3ad7fe['is']('element','softBreak'))continue;const _0xc1a325='deletion'==_0x5207e2['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x371462}=_0x34b234['_splitMarkerName'](_0x5207e2['markerName']),_0xeb126e=_0x5a9726['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc1a325,'data-author-id':_0x371462}),_0x2e74be=_0x5a9726['mapper']['toViewPosition'](_0x5e9e02['createPositionBefore'](_0x3ad7fe));_0x42fa60&&_0x34b234['activeMarkers']['includes'](_0x5207e2['markerName'])&&_0x5a9726['writer']['addClass']('ck-suggestion-marker--active',_0xeb126e),_0x5a9726['writer']['insert'](_0x2e74be,_0xeb126e),_0x5a9726['mapper']['bindElementToMarker'](_0xeb126e,_0x5207e2['markerName']);}};}class At extends _0x24408b{['afterInit'](){const _0xda51d4=this['editor'],_0x4e7446=_0xda51d4['model'],_0x7ea8e2=_0xda51d4['locale'];if(!_0xda51d4['plugins']['has']('StandardEditingModeEditing'))return;const _0x991d42=_0xda51d4['plugins']['get']('TrackChangesEditing'),_0x1d7f5f='restrictedEditingException',_0x324c31=_0xda51d4['commands']['get'](_0x1d7f5f);_0x991d42['enableCommand'](_0x1d7f5f,(_0x37a891,_0x5564d1={})=>{const _0x1a9647=_0x4e7446['document']['selection'];if(_0x1a9647['isCollapsed'])return void _0x37a891(_0x5564d1);const _0x2b12c9=void 0x0!==_0x5564d1['forceValue']?_0x5564d1['forceValue']:!_0x324c31['value'];_0x4e7446['change'](()=>{const _0xf8ecf1=Array['from'](_0x1a9647['getRanges']());for(const _0x311651 of _0xf8ecf1){const _0x1b2454=_0x2b12c9?[_0x311651]:io(_0x1d7f5f,_0x311651,_0x4e7446);for(const _0x2ad95c of _0x1b2454)_0x991d42['markInlineFormat'](_0x2ad95c,{'commandName':_0x1d7f5f,'commandParams':[{'forceValue':_0x2b12c9}]});}});}),_0x991d42['descriptionFactory']['registerDescriptionCallback'](_0x1b91fe=>{if('formatBlock'!=_0x1b91fe['type']&&'formatInline'!=_0x1b91fe['type'])return;const {data:_0x337b82}=_0x1b91fe;return _0x337b82&&_0x337b82['commandName']==_0x1d7f5f?_0x337b82['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7ea8e2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x7ea8e2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x24408b{['afterInit'](){const _0x582861=this['editor'];if(!_0x582861['plugins']['has']('Style')||!_0x582861['plugins']['has']('DataSchema'))return;const _0x3845dc=_0x582861['plugins']['get']('TrackChangesEditing'),_0x38c9b5=_0x582861['locale'],_0x51cb64=_0x582861['config']['get']('style')||{},_0x31b696=_0x582861['plugins']['get']('GeneralHtmlSupport'),_0x45a221=_0x582861['plugins']['get']('StyleUtils')['normalizeConfig'](_0x582861['plugins']['get']('DataSchema'),_0x51cb64['definitions']);_0x3845dc['enableDefaultAttributesIntegration']('style');const _0x578f98=new Set();for(const _0x792015 of _0x45a221['block']){const _0x10695b=_0x31b696['getGhsAttributeNameForElement'](_0x792015['element']);_0x578f98['add'](_0x10695b);}const _0xe0fe23=new Set();for(const _0x261912 of _0x45a221['inline']){const _0x5af563=_0x31b696['getGhsAttributeNameForElement'](_0x261912['element']);_0xe0fe23['add'](_0x5af563);for(const _0x57384e of _0x261912['ghsAttributes'])_0xe0fe23['add'](_0x57384e);}for(const _0x47cde1 of _0x578f98)_0x3845dc['registerBlockAttribute'](_0x47cde1),_0x3845dc['descriptionFactory']['registerAttributeLabel'](_0x47cde1,o(_0x38c9b5,'FORMAT_STYLE'));for(const _0x9c06f2 of _0xe0fe23)_0x3845dc['registerInlineAttribute'](_0x9c06f2),_0x3845dc['descriptionFactory']['registerAttributeLabel'](_0x9c06f2,o(_0x38c9b5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a1ec8=this['editor'],_0x4f2664=_0x3a1ec8['locale'];_0x3a1ec8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d8c06=>{if('formatBlock'!=_0x5d8c06['type']&&'formatInline'!=_0x5d8c06['type'])return;const {data:_0x3f8427}=_0x5d8c06;return _0x3f8427&&'style'===_0x3f8427['commandName']?_0x3f8427['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f2664,'*Set\x20format:*\x20%0',_0x3f8427['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f2664,'*Remove\x20format:*\x20%0',_0x3f8427['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x24408b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9ecea0){super(_0x9ecea0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x995f96=this['editor'],_0x1d9ccf=_0x995f96['model']['document']['selection'];if(!_0x995f96['plugins']['has']('TableEditing'))return;const _0x1148af=_0x995f96['locale'],_0x1a82d2=_0x995f96['plugins']['get']('TrackChangesEditing'),_0x5ba9e6=_0x995f96['plugins']['get']('TableUtils');_0x1a82d2['descriptionFactory']['registerElementLabel']('table',_0x34dfd7=>o(_0x1148af,'ELEMENT_TABLE',_0x34dfd7)),this['_setupColumnsRowsFixing'](),_0x1a82d2['enableCommand']('insertTable'),_0x1a82d2['enableCommand']('selectTableRow'),_0x1a82d2['enableCommand']('selectTableColumn');for(const _0x117692 of['insertTableRowAbove','insertTableRowBelow']){const _0x2ea4ee=_0x995f96['commands']['get'](_0x117692);_0x1a82d2['enableCommand'](_0x117692,_0x43903e=>{_0x995f96['model']['change'](_0x2196f7=>{_0x43903e();const _0x4e6337='above'===_0x2ea4ee['order'],_0x56c437=_0x5ba9e6['getSelectionAffectedTableCells'](_0x1d9ccf),_0x5436bf=_0x5ba9e6['getRowIndexes'](_0x56c437),_0x4e5e46=_0x4e6337?_0x5436bf['first']-0x1:_0x5436bf['last']+0x1,_0xe7be7b=_0x56c437[0x0]['findAncestor']('table'),_0x163c64=_0x5ba9e6['createTableWalker'](_0xe7be7b,{'startRow':_0x4e5e46,'endRow':_0x4e5e46}),_0x277e9c=Array['from'](_0x163c64)['map'](_0x4c519b=>_0x2196f7['createRangeOn'](_0x4c519b['cell']));_0x1a82d2['markMultiRangeInsertion'](_0x277e9c,'tableRow');});});}for(const _0xb4d726 of['insertTableColumnLeft','insertTableColumnRight']){const _0x590330=_0x995f96['commands']['get'](_0xb4d726);_0x1a82d2['enableCommand'](_0xb4d726,_0x26a6cb=>{_0x995f96['model']['change'](_0x3db637=>{_0x26a6cb();const _0x4e75bc='left'===_0x590330['order'],_0x267a22=_0x5ba9e6['getSelectionAffectedTableCells'](_0x1d9ccf),_0x29db5c=_0x5ba9e6['getColumnIndexes'](_0x267a22),_0x58e40e=_0x4e75bc?_0x29db5c['first']-0x1:_0x29db5c['last']+0x1,_0x288916=_0x267a22[0x0]['findAncestor']('table'),_0x41e0a5=_0x5ba9e6['createTableWalker'](_0x288916,{'startRow':0x0,'column':_0x58e40e,'includeAllSlots':!0x1}),_0x3a4905=Array['from'](_0x41e0a5)['map'](_0x4a965c=>_0x3db637['createRangeOn'](_0x4a965c['cell']));_0x1a82d2['markMultiRangeInsertion'](_0x3a4905,'tableColumn');});});}for(const _0x2f7fd6 of['removeTableRow','removeTableColumn']){const _0x1d3229=_0x2f7fd6['substr'](0xb),_0x13c156=_0x1d3229['toLowerCase'](),_0x5e38bb=_0x13c156['substr'](0x0,0x3)+'span',_0x24e112='table'+_0x1d3229,_0x27f74f='min'+_0x1d3229,_0x2b3506='max'+_0x1d3229;_0x1a82d2['enableCommand'](_0x2f7fd6,()=>{_0x995f96['model']['change'](_0x260a09=>{const _0x33d7ad=_0x5ba9e6['getSelectionAffectedTableCells'](_0x1d9ccf),_0x334460=_0x33d7ad[0x0]['findAncestor']('table');let _0x3ce6ab;if('removeTableRow'==_0x2f7fd6){const _0x3d1214=_0x5ba9e6['getRowIndexes'](_0x33d7ad);_0x3ce6ab={'startRow':_0x3d1214['first'],'endRow':_0x3d1214['last'],'includeAllSlots':!0x0};}else{const _0x2fea8e=_0x5ba9e6['getColumnIndexes'](_0x33d7ad);_0x3ce6ab={'startColumn':_0x2fea8e['first'],'endColumn':_0x2fea8e['last'],'includeAllSlots':!0x0};}const _0x26d82f=_0x5ba9e6['createTableWalker'](_0x334460,_0x3ce6ab),_0x2ccada=Array['from'](_0x26d82f)['map'](({cell:_0x5cb6e4})=>_0x5cb6e4),_0x18a8c6=Re(_0x2ccada['filter'](_0x30e68e=>_0x30e68e['hasAttribute'](_0x5e38bb))),_0x50dbfc=Re(_0x2ccada['filter'](_0x4dc5be=>!_0x4dc5be['hasAttribute'](_0x5e38bb)))['map'](_0x28ef36=>_0x260a09['createRangeOn'](_0x28ef36)),_0x515488=_0x1a82d2['markMultiRangeDeletion'](_0x50dbfc,_0x24e112);if(_0x515488&&('tableRow'==_0x515488['subType']||'tableColumn'==_0x515488['subType'])){const _0x5270d9=this['_getSuggestionCoords'](_0x515488);for(const _0x2584e5 of _0x18a8c6){const _0x29b15f=_0x260a09['createRangeOn'](_0x2584e5),_0xe8557=_0x5ba9e6['getCellLocation'](_0x2584e5),_0x2b0f7e=_0x2584e5['getAttribute'](_0x5e38bb)-0x1,_0x5c9ade=_0x5270d9[_0x27f74f],_0x544aea=_0x5270d9[_0x2b3506];_0x5c9ade<=_0xe8557[_0x13c156]&&_0xe8557[_0x13c156]+_0x2b0f7e<=_0x544aea&&_0x515488['addRange'](_0x29b15f);}}});});}function _0x1d5007(_0x1dad6a){const _0x8f3b5e=Array['from'](_0x1d9ccf['getRanges']())['map'](_0x1d05d8=>_0x5103d1['fromRange'](_0x1d05d8));_0x995f96['model']['change'](_0x2ed3a4=>{const _0x388c10=_0x2ed3a4['batch'];_0x1dad6a=_0x1dad6a['filter'](_0xed617c=>'$graveyard'!=_0xed617c['root']['rootName']),_0x2ed3a4['setSelection'](_0x1dad6a),_0x995f96['commands']['get']('removeTableRow')['refresh'](),_0x995f96['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x995f96['model']['enqueueChange'](()=>{_0x995f96['model']['enqueueChange'](_0x388c10,_0x3e6ce1=>{const _0x3d9fe0=_0x8f3b5e['filter'](_0x12df5b=>'$graveyard'!=_0x12df5b['root']['rootName']);_0x3d9fe0['length']>0x0&&_0x3e6ce1['setSelection'](_0x3d9fe0);for(const _0x48436e of _0x8f3b5e)_0x48436e['detach']();});});});}function _0x414d21(_0x205484){_0x995f96['model']['change'](_0x3fdb25=>{const _0x55d0dc=Array['from'](_0x1d9ccf['getRanges']())['map'](_0xc6603f=>_0x5103d1['fromRange'](_0xc6603f)),_0x2ee349=[];for(const _0x1b3a77 of _0x205484)for(const _0x22d5de of _0x1b3a77['getItems']({'shallow':!0x0}))_0x2ee349['push'](_0x22d5de);for(const _0x279581 of _0x2ee349)'$graveyard'!=_0x279581['root']['rootName']&&(_0x3fdb25['setSelection'](_0x3fdb25['createPositionAt'](_0x279581,0x0)),_0x995f96['commands']['get']('removeTableColumn')['refresh'](),_0x995f96['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4fd654=_0x55d0dc['filter'](_0x17ce3f=>'$graveyard'!=_0x17ce3f['root']['rootName']);_0x4fd654['length']>0x0&&_0x3fdb25['setSelection'](_0x4fd654);for(const _0x5ee6dd of _0x55d0dc)_0x5ee6dd['detach']();});}function _0x120988(_0xa32696,_0x280d53){return _0x280d53['every'](_0x3f509a=>_0xa32696['some'](_0x4c11d4=>_0x4c11d4['end']['isEqual'](_0x3f509a['start'])||_0x3f509a['end']['isEqual'](_0x4c11d4['start'])));}function _0x52dc18(_0x4c4d42,_0x990eb9){return!_0x4c4d42['some'](_0x2e55a4=>_0x990eb9['some'](_0x5141ac=>_0x2e55a4['isIntersecting'](_0x5141ac)))&&_0x4c4d42['some'](_0x175b23=>_0x990eb9['some'](_0x22833b=>_0x175b23['end']['isTouching'](_0x22833b['start'])));}_0x995f96['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42ba5b,_0x46f242,_0x18d5eb)=>{if(!_0x18d5eb['options']['showSuggestionHighlights'])return;const _0x233b0b=_0x46f242['item'];if(!_0x233b0b)return;const _0x35e270=_0x18d5eb['mapper']['toViewElement'](_0x233b0b);function _0x36230c(_0x2f7959){return Array['isArray'](_0x2f7959)?_0x2f7959:[_0x2f7959];}_0x35e270&&'tableCell'===_0x233b0b['name']&&_0x43bde1(_0x35e270,_0x18d5eb['writer'],(_0x3f4a8b,_0x4ba642,_0x2e7add)=>_0x2e7add['addClass'](_0x36230c(_0x4ba642['classes']),_0x3f4a8b),(_0x2b7831,_0x385588,_0xa7be3d)=>_0xa7be3d['removeClass'](_0x36230c(_0x385588['classes']),_0x2b7831));},{'priority':'highest'}),_0x1a82d2['descriptionFactory']['registerDescriptionCallback'](_0x324c22=>{if('insertion'!=_0x324c22['type']&&'deletion'!=_0x324c22['type'])return;const _0x57762b=_0x324c22['getContainedElement']();if(null!=_0x57762b&&_0x57762b['is']('element','table')){if('insertion'==_0x324c22['type']){const _0x5b0f08=_0x324c22['getItems']()['filter'](_0x6657a2=>_0x6657a2['is']('$textProxy'))['map'](_0x2c2b4b=>_0x2c2b4b['data']);if(_0x5b0f08['length'])return{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b0f08['join']('\x20')+'\x22'))};}if('deletion'==_0x324c22['type']){const _0x339efd=_0x324c22['getItems']()['filter'](_0x37528a=>_0x37528a['is']('$textProxy'))['map'](_0x129762=>_0x129762['data']);if(_0x339efd['length'])return{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x339efd['join']('\x20')+'\x22'))};}}}),_0x1a82d2['descriptionFactory']['registerDescriptionCallback'](_0x59f270=>{if('tableRow'==_0x59f270['subType']){const _0x5db80c=_0x59f270['getItems']()['filter'](_0x226802=>_0x226802['is']('$textProxy'))['map'](_0x2ce9fe=>_0x2ce9fe['data']),_0x3bb1a2=this['_getSuggestionCoords'](_0x59f270),_0x20c2d1=_0x3bb1a2['maxRow']-_0x3bb1a2['minRow']+0x1;if('insertion'==_0x59f270['type'])return _0x5db80c['length']?{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20c2d1,'\x22'+_0x5db80c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW',_0x20c2d1))};if('deletion'==_0x59f270['type'])return _0x5db80c['length']?{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20c2d1,'\x22'+_0x5db80c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW',_0x20c2d1))};}if('tableColumn'==_0x59f270['subType']){const _0x2158d4=_0x59f270['getItems']()['filter'](_0x3804fe=>_0x3804fe['is']('$textProxy'))['map'](_0x1f76d7=>_0x1f76d7['data']),_0x4962b9=this['_getSuggestionCoords'](_0x59f270),_0x34c4d1=_0x4962b9['maxColumn']-_0x4962b9['minColumn']+0x1;if('insertion'==_0x59f270['type'])return _0x2158d4['length']?{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34c4d1,'\x22'+_0x2158d4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN',_0x34c4d1))};if('deletion'==_0x59f270['type'])return _0x2158d4['length']?{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34c4d1,'\x22'+_0x2158d4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN',_0x34c4d1))};}}),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1d5007),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1d5007),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x414d21),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x414d21),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x120988),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x120988),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x52dc18),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x52dc18);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c1366=this['editor'],_0x54c97c=_0x5c1366['model']['document']['selection'];return(_0x15696f,_0xce704e)=>{_0x5c1366['model']['change'](_0x295900=>{const {commandName:_0x571332,commandParams:_0x27fe2e}=_0xce704e;let _0x39792d=_0x15696f[0x0]['end']['nodeBefore'];_0x27fe2e&&_0x27fe2e[0x0]&&!0x1===_0x27fe2e[0x0]['forceValue']&&(_0x39792d=_0x15696f[0x0]['start']['nodeAfter']);const _0x431d80=_0x295900['createRangeIn'](_0x39792d);if('$graveyard'==_0x431d80['root']['rootName'])return;const _0x7370eb=Array['from'](_0x54c97c['getRanges']())['map'](_0x59e83f=>_0x5103d1['fromRange'](_0x59e83f));_0x295900['setSelection'](_0x431d80),_0x5c1366['commands']['get'](_0x571332)['refresh'](),_0x27fe2e['push']({'forceDefaultExecution':!0x0}),_0x5c1366['execute'](_0x571332,..._0x27fe2e);const _0x17ef0e=_0x7370eb['filter'](_0x17a4d8=>'$graveyard'!=_0x17a4d8['root']['rootName']);_0x17ef0e['length']>0x0&&_0x295900['setSelection'](_0x17ef0e);for(const _0x231292 of _0x7370eb)_0x231292['detach']();});};}['_getCoordsForCells'](_0x1f344c){const _0x4d9d01=this['editor']['plugins']['get']('TableUtils');let _0xebb570=Number['MAX_SAFE_INTEGER'],_0x514d7b=Number['MIN_SAFE_INTEGER'],_0x394a66=Number['MAX_SAFE_INTEGER'],_0x289972=Number['MIN_SAFE_INTEGER'];for(const _0x4966a5 of _0x1f344c){if('$graveyard'==_0x4966a5['root']['rootName'])continue;const {row:_0x56e13c,column:_0x48ecc2}=_0x4d9d01['getCellLocation'](_0x4966a5),_0x3586db=_0x4966a5['hasAttribute']('rowspan')?_0x4966a5['getAttribute']('rowspan')-0x1:0x0,_0x421b74=_0x4966a5['hasAttribute']('colspan')?_0x4966a5['getAttribute']('colspan')-0x1:0x0;_0xebb570=_0x56e13c<_0xebb570?_0x56e13c:_0xebb570,_0x514d7b=_0x56e13c+_0x3586db>_0x514d7b?_0x56e13c+_0x3586db:_0x514d7b,_0x394a66=_0x48ecc2<_0x394a66?_0x48ecc2:_0x394a66,_0x289972=_0x48ecc2+_0x421b74>_0x289972?_0x48ecc2+_0x421b74:_0x289972;}return{'minRow':_0xebb570,'maxRow':_0x514d7b,'minColumn':_0x394a66,'maxColumn':_0x289972};}['_setupColumnsRowsFixing'](){const _0x3beb18=this['editor'],_0x33123c=_0x3beb18['plugins']['get']('TrackChangesEditing'),_0x28a8e2=_0x3beb18['plugins']['get']('TableUtils');_0x3beb18['model']['document']['on']('change:data',()=>{const _0x16eb58=Array['from'](_0x3beb18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x152a9e,data:_0x2cd2ec}of _0x16eb58){const {group:_0x4ac936,id:_0xe9a993,subType:_0x367c9a}=_0x33123c['_splitMarkerName'](_0x152a9e);if('suggestion'!=_0x4ac936)continue;if(null!=_0x2cd2ec['oldRange'])continue;const _0x10be54=_0x33123c['getSuggestion'](_0xe9a993);this['_tablePostFixingSubtypes']['includes'](_0x367c9a)&&this['_tableSuggestions']['add'](_0x10be54);}},{'priority':'low'});const _0x4ca78e=(_0x3b91fc,_0x4db101)=>{let _0x2d44cb=!0x1;const _0x385402=_0x4db101['createRangeOn'](_0x3b91fc),_0x15a0ee=_0x3b91fc['findAncestor']('table'),_0x49cc0d=_0x28a8e2['getCellLocation'](_0x3b91fc);for(const _0xcfffa7 of this['_tableSuggestions']){const _0x398c37=_0xcfffa7['subType'],_0x68eef5=_0x398c37['startsWith']('tablePaste'),_0x10412e=_0x398c37['substr'](_0x68eef5?0xa:0x5),_0x4ab646=_0x10412e['toLowerCase'](),_0x2db108=_0x4ab646['substr'](0x0,0x3)+'span',_0x570cb7='min'+_0x10412e,_0x6adf9d='max'+_0x10412e;if(!_0xcfffa7['isInContent'])continue;if(_0x15a0ee!=_0xcfffa7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xcfffa7['isIntersectingWithRange'](_0x385402))continue;const _0x26e1af=_0x3b91fc['hasAttribute'](_0x2db108)?_0x3b91fc['getAttribute'](_0x2db108)-0x1:0x0,_0x5b4973=this['_getSuggestionCoords'](_0xcfffa7),_0x68aec4=_0x5b4973[_0x570cb7],_0x515d98=_0x5b4973[_0x6adf9d];_0x68aec4<=_0x49cc0d[_0x4ab646]&&_0x49cc0d[_0x4ab646]+_0x26e1af<=_0x515d98&&(_0xcfffa7['addRange'](_0x385402),_0x2d44cb=!0x0);}return _0x2d44cb;};_0x3beb18['model']['document']['registerPostFixer'](_0x41f500=>{let _0x404c8b=!0x1;for(const _0x386c24 of _0x3beb18['model']['document']['differ']['getChanges']())if('insert'==_0x386c24['type']){if('tableRow'==_0x386c24['name']){for(const _0x2db797 of _0x386c24['position']['nodeAfter']['getChildren']())_0x404c8b=_0x404c8b||_0x4ca78e(_0x2db797,_0x41f500);}else'tableCell'==_0x386c24['name']&&(_0x404c8b=_0x404c8b||_0x4ca78e(_0x386c24['position']['nodeAfter'],_0x41f500));}return _0x404c8b;});}['_getSuggestionCoords'](_0x4e0bbc){return this['_getCoordsForCells'](_0x4e0bbc['getRanges']()['map'](_0x3fced9=>_0x3fced9['start']['nodeAfter']));}}function Re(_0x2c0ca9){return Array['from'](new Set(_0x2c0ca9)['values']());}class _t extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0x1a69d6=this['editor'],_0x3bfa39=_0x1a69d6['model']['document']['selection'],_0x522875=_0x1a69d6['locale'];if(!_0x1a69d6['plugins']['has']('TableEditing'))return;const _0x3d0eab=_0x1a69d6['plugins']['get']('TrackChangesEditing'),_0x2a2b28=_0x1a69d6['plugins']['get']('TableUtils'),_0x2118ba=_0x1a69d6['plugins']['get'](vt);_0x2118ba['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d0eab['enableCommand']('mergeTableCells',()=>{const _0x3d0525=_0x2a2b28['getSelectionAffectedTableCells'](_0x1a69d6['model']['document']['selection']);_0x1a69d6['model']['change'](()=>{_0x3d0eab['markMultiRangeBlockFormat'](_0x3d0525,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1a69d6['commands']['get']('mergeTableCells')['on']('execute',(_0x472363,_0x22733d)=>{_0x1a69d6['commands']['get']('trackChanges')['value']&&(_0x22733d['length']>0x0&&_0x22733d[_0x22733d['length']-0x1]&&_0x22733d[_0x22733d['length']-0x1]['forceDefaultExecution']||_0x3d0eab['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x472363['stop']());},{'priority':'highest'});for(const _0xd81caf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x449340=_0x1a69d6['commands']['get'](_0xd81caf);_0x3d0eab['enableCommand'](_0xd81caf,()=>{const _0x570920=_0x1a69d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48ee3e=>_0x48ee3e['is']('element','tableCell')),_0x5b2eba=_0x449340['value'];_0x1a69d6['model']['change'](()=>{_0x3d0eab['markMultiRangeBlockFormat']([_0x570920,_0x5b2eba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1557ac of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c9826=_0x1a69d6['commands']['get'](_0x1557ac);_0x3d0eab['enableCommand'](_0x1557ac,()=>{const _0x2d1c3d=_0x2a2b28['getSelectionAffectedTableCells'](_0x1a69d6['model']['document']['selection'])[0x0],_0x4f21a7=_0x2d1c3d['findAncestor']('table'),{column:_0xfe0c64,row:_0x45458e}=_0x2a2b28['getCellLocation'](_0x2d1c3d);let _0x305d32=[];if('horizontally'==_0x1c9826['direction']){const _0x44fc48=_0x2a2b28['createTableWalker'](_0x4f21a7,{'startRow':_0x45458e,'endRow':_0x45458e,'includeAllSlots':!0x0});_0x305d32=Array['from'](_0x44fc48)['map'](_0x8a3fd3=>_0x8a3fd3['cell']);}else{const _0x43a545=_0x2a2b28['createTableWalker'](_0x4f21a7,{'column':_0xfe0c64,'includeAllSlots':!0x0});_0x305d32=Array['from'](_0x43a545)['map'](_0x361b0f=>_0x361b0f['cell']);}_0x1a69d6['model']['change'](_0x503689=>{_0x3d0eab['markBlockFormat'](_0x503689['createRangeOn'](_0x2d1c3d),{'commandName':_0x1557ac,'commandParams':[]},_0x305d32,_0x1557ac);});});}_0x3d0eab['descriptionFactory']['registerDescriptionCallback'](_0x18d584=>{if('formatBlock'!=_0x18d584['type']&&'formatInline'!=_0x18d584['type'])return;const {data:_0x59fe7b}=_0x18d584;return _0x59fe7b&&'mergeTableCells'==_0x59fe7b['commandName']?{'type':'format','content':o(_0x522875,'*Merge\x20cells*')}:void 0x0;}),_0x3d0eab['descriptionFactory']['registerDescriptionCallback'](_0x38e1d0=>{if('formatBlock'!=_0x38e1d0['type']&&'formatInline'!=_0x38e1d0['type'])return;const {data:_0x1aa639}=_0x38e1d0;return _0x1aa639?'splitTableCellVertically'==_0x1aa639['commandName']?{'type':'format','content':o(_0x522875,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1aa639['commandName']?{'type':'format','content':o(_0x522875,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x421f30=_0x2118ba['_acceptFormatSuggestionCallbackFactory']();for(const _0xd5cc34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d0eab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd5cc34,'accept',_0x421f30);for(const _0x3ba8a2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d0eab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ba8a2,'accept',_0x421f30);_0x3d0eab['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x57811=>{_0x1a69d6['model']['change'](_0x4ce570=>{const _0x26a83c=Array['from'](_0x3bfa39['getRanges']())['map'](_0x7b4900=>_0x5103d1['fromRange'](_0x7b4900));_0x4ce570['setSelection'](_0x57811),_0x1a69d6['commands']['get']('mergeTableCells')['refresh'](),_0x1a69d6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45b4fa=_0x26a83c['filter'](_0x4e87c9=>'$graveyard'!=_0x4e87c9['root']['rootName']);_0x45b4fa['length']>0x0&&_0x4ce570['setSelection'](_0x45b4fa);for(const _0x2474ba of _0x26a83c)_0x2474ba['detach']();});});for(const _0x2b6166 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37ffee=_0x1a69d6['commands']['get'](_0x2b6166);_0x37ffee['on']('set:isEnabled',(_0xb4a1ea,_0x5ff980,_0x3f910b)=>{if(_0x3f910b){const _0x4a58a9=_0x1a69d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45befc=>_0x45befc['is']('element','tableCell'));this['_areMergableCells'](_0x37ffee['value'],_0x4a58a9)||(_0xb4a1ea['return']=!0x1,_0xb4a1ea['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47ce5b=this['editor']['commands']['get']('mergeTableCells'),_0x1103f9=this['editor']['plugins']['get']('TableUtils');if(!_0x47ce5b['isEnabled'])return!0x1;const _0x3a8142=_0x1103f9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x36c9c2 of _0x3a8142)for(const _0x5c101d of _0x3a8142)if(_0x36c9c2!=_0x5c101d&&!this['_areMergableCells'](_0x36c9c2,_0x5c101d))return!0x1;return!0x0;}['_areMergableCells'](_0x5a9aba,_0x5cf946){const _0x468b69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236d87=this['editor']['model']['createRangeOn'](_0x5a9aba),_0x3cf699=this['editor']['model']['createRangeOn'](_0x5cf946),_0xb0b6e3=new Set(),_0x238e8b=new Set();for(const _0x36ad5c of _0x468b69['getSuggestions']())if(('insertion'==_0x36ad5c['type']||'deletion'==_0x36ad5c['type']||'mergeTableCells'==_0x36ad5c['subType'])&&_0x36ad5c['isInContent']){for(const _0x19bd77 of _0x36ad5c['getRanges']())_0x19bd77['containsRange'](_0x236d87,!0x0)&&_0xb0b6e3['add'](_0x36ad5c['type']+':'+_0x36ad5c['author']['id']),_0x19bd77['containsRange'](_0x3cf699,!0x0)&&_0x238e8b['add'](_0x36ad5c['type']+':'+_0x36ad5c['author']['id']);}if(_0xb0b6e3['size']!=_0x238e8b['size'])return!0x1;for(const _0x401b57 of _0xb0b6e3)if(!_0x238e8b['has'](_0x401b57))return!0x1;return!0x0;}}class Ct extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0xef537a=this['editor'];if(!_0xef537a['plugins']['has']('TableEditing'))return;const _0x5d4d37=_0xef537a['locale'],_0x4c8995=_0xef537a['plugins']['get']('TrackChangesEditing');_0x4c8995['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c8995['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c8995['registerBlockAttribute']('headingRows'),_0x4c8995['registerBlockAttribute']('headingColumns'),_0x4c8995['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d4d37,'FORMAT_HEADER_ROW')),_0x4c8995['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d4d37,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e7ca4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f3139=this['editor']['plugins']['get']('TableUtils'),_0x5e5a06=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x28585f({showActiveMarker:_0x26d101=!0x0,setDataAttribute:_0x2e2653=!0x0}={}){return(_0x2f08a7,_0x276a1e,_0x286733)=>{const {type:_0x2f027b,id:_0x2f80f2}=_0x4e7ca4['_splitMarkerName'](_0x276a1e['markerName']),_0x46db73=_0x4e7ca4['getSuggestion'](_0x2f80f2),_0x1bf1b1=_0x46db73['data'];if('formatBlock'!=_0x46db73['type']||!_0x1bf1b1||'setTableColumnHeader'!=_0x1bf1b1['commandName'])return;if(_0x276a1e['item'])return void _0x2f08a7['stop']();if(!_0x286733['consumable']['consume'](_0x276a1e['markerRange'],_0x2f08a7['name']))return;const _0x5c1c53=_0x276a1e['markerRange']['start']['nodeAfter'],_0x5e5225=_0x276a1e['markerRange']['end']['nodeBefore'],_0x42009f=_0x5c1c53['parent']['parent'],{column:_0x23c474}=_0x1f3139['getCellLocation'](_0x5c1c53),{column:_0x31f884}=_0x1f3139['getCellLocation'](_0x5e5225);for(let _0x2bb81e=_0x23c474;_0x2bb81e<=_0x31f884;_0x2bb81e++){const _0x3a4847=_0x1f3139['createTableWalker'](_0x42009f,{'column':_0x2bb81e,'includeAllSlots':!0x1});for(const _0x4a809a of _0x3a4847){const _0x182cf7=_0x4a809a['cell'],_0x452022=_0x286733['mapper']['toViewElement'](_0x182cf7);_0x286733['writer']['addClass']('ck-suggestion-marker-'+_0x2f027b,_0x452022),_0x2e2653&&_0x286733['writer']['setAttribute']('data-suggestion',_0x2f80f2,_0x452022),_0x286733['mapper']['bindElementToMarker'](_0x452022,_0x276a1e['markerName']),_0x26d101&&(_0x4e7ca4['activeMarkers']['includes'](_0x276a1e['markerName'])?_0x286733['writer']['addClass']('ck-suggestion-marker--active',_0x452022):_0x286733['writer']['removeClass']('ck-suggestion-marker--active',_0x452022));}}};}_0x4e7ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e5a06),_0x4e7ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e5a06),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x28585f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ce721,_0x3908a9,_0x15efea)=>{_0x15efea['options']['showSuggestionHighlights']&&_0x28585f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4ce721,_0x3908a9,_0x15efea);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x37626,_0x1badd4,_0x5d24f6)=>{const {type:_0x4f2e11,id:_0x3c41b6}=_0x4e7ca4['_splitMarkerName'](_0x1badd4['markerName']),_0x55fdec=_0x4e7ca4['getSuggestion'](_0x3c41b6),_0x211e3c=_0x55fdec['data'];if('formatBlock'!=_0x55fdec['type']||!_0x211e3c||'setTableColumnHeader'!=_0x211e3c['commandName'])return;const _0x3ed3af=_0x5d24f6['mapper']['markerNameToElements'](_0x1badd4['markerName']);if(_0x3ed3af){for(const _0x36bce3 of _0x3ed3af)_0x5d24f6['writer']['removeClass']('ck-suggestion-marker-'+_0x4f2e11,_0x36bce3),_0x5d24f6['writer']['removeClass']('ck-suggestion-marker--active',_0x36bce3),_0x5d24f6['writer']['removeAttribute']('data-suggestion',_0x36bce3),_0x5d24f6['mapper']['unbindElementFromMarkerName'](_0x36bce3,_0x1badd4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x736712=this['editor'],_0x36adb2=_0x736712['locale'];function _0x53de0f(_0x310610){return{'type':'format','content':o(_0x36adb2,'*Format:*\x20%0',_0x310610)};}_0x736712['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46d513=>{if('formatBlock'!=_0x46d513['type'])return;const {data:_0x28e314}=_0x46d513;if(_0x28e314){if('setTableRowHeader'==_0x28e314['commandName']){const _0x1c5c78=_0x28e314['commandParams'][0x0]['forceValue'];return _0x53de0f(o(_0x36adb2,_0x1c5c78?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x28e314['commandName']){const _0x5c65a5=_0x28e314['commandParams'][0x0]['forceValue'];return _0x53de0f(o(_0x36adb2,_0x5c65a5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x21b4b5=>[_0x21b4b5,null]));class Nt extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0xbc6560=this['editor'];if(!_0xbc6560['plugins']['has']('TableClipboard'))return;const _0x470fa1=_0xbc6560['plugins']['get']('TrackChangesEditing'),_0x5a3416=_0xbc6560['plugins']['get']('TableUtils'),_0x268256=_0xbc6560['plugins']['get'](vt),_0x412ac3=_0xbc6560['plugins']['get']('TableClipboard');_0x268256['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xbc6560['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xbc6560['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4defa9=null;_0xbc6560['model']['on']('insertContent',(_0x323887,_0x6e55d7)=>{const [_0x3771cf,_0x140f9f]=_0x6e55d7,_0x1f029c=_0x6e55d7[_0x6e55d7['length']-0x1];_0x1f029c&&_0x1f029c['forceDefaultExecution']||_0x470fa1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x26fa37,_0x1f9614,_0x86961,_0x5f280d,_0x40c583){if(_0x1f9614&&!_0x1f9614['is']('documentSelection'))return!0x1;const _0x44f374=_0x40c583['getTableIfOnlyTableInContent'](_0x26fa37,_0x86961);if(!_0x44f374||!Ae(_0x44f374,void 0x0,_0x5f280d))return!0x1;const _0x6b0b1a=_0x5f280d['getSelectionAffectedTableCells'](_0x86961['document']['selection']);if(!_0x6b0b1a['length'])return!0x1;const _0x3daf3f=_0x6b0b1a[0x0]['findAncestor']('table'),_0x14e2d0=_0x5f280d['getRowIndexes'](_0x6b0b1a),_0x56473d=_0x5f280d['getColumnIndexes'](_0x6b0b1a),_0x150abb={'startRow':_0x14e2d0['first'],'endRow':_0x14e2d0['last'],'startColumn':_0x56473d['first'],'endColumn':_0x56473d['last']};return 0x1==_0x6b0b1a['length']&&(_0x150abb['endRow']+=_0x5f280d['getRows'](_0x44f374)-0x1,_0x150abb['endColumn']+=_0x5f280d['getColumns'](_0x44f374)-0x1),Ae(_0x3daf3f,_0x150abb,_0x5f280d);}(_0x3771cf,_0x140f9f,_0xbc6560['model'],_0x5a3416,_0x412ac3)&&(_0x323887['stop'](),_0x4defa9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xbc6560['model']['change'](()=>{_0xbc6560['model']['insertContent'](_0x6e55d7[0x0],_0x6e55d7[0x1],_0x6e55d7[0x2],{'forceDefaultExecution':!0x0});const _0x2903cd=_0x425cf6(),{rowInsertionRanges:_0x4cde32,columnInsertionRanges:_0x2edf37,insertionRanges:_0x12b8f3,deletionRanges:_0x51928e,cells:_0x2c57d6}=_0x4defa9;_0x4cde32['length']&&_0x470fa1['markMultiRangeInsertion'](_0x4cde32,'tablePasteRow',{'tablePasteChainId':_0x2903cd}),_0x2edf37['length']&&_0x470fa1['markMultiRangeInsertion'](_0x2edf37,'tablePasteColumn',{'tablePasteChainId':_0x2903cd}),_0x12b8f3['length']&&(_0x470fa1['markMultiRangeInsertion'](_0x12b8f3,'tablePaste',{'tablePasteChainId':_0x2903cd,'skipNestingCheck':!0x0}),_0x12b8f3['forEach'](_0x354fc4=>_0x354fc4['detach']?.())),_0x51928e['length']&&(_0x470fa1['markMultiRangeDeletion'](_0x51928e,'tablePaste',{'tablePasteChainId':_0x2903cd,'skipNestingCheck':!0x0}),_0x51928e['forEach'](_0x1b8086=>_0x1b8086['detach']?.()));const _0x11eaa2=_0x470fa1['markMultiRangeBlockFormat'](_0x2c57d6['map'](({element:_0x4f6e9f})=>_0x4f6e9f),{'formatGroupId':_0x425cf6()},[],'tablePasteCell',{'tablePasteChainId':_0x2903cd});if(_0x11eaa2){const _0x52b828=_0x11eaa2['getMarkers'](),_0x533c0e=[];for(const {element:_0x97f5ae,attributes:_0x2b6b23}of _0x2c57d6){if(!_0x2b6b23)continue;const _0x4ecfcc=_0xbc6560['model']['createRangeOn'](_0x97f5ae),_0x124bc4=_0x52b828['find'](_0x4f2f05=>_0x4f2f05['getRange']()['isEqual'](_0x4ecfcc));_0x124bc4&&_0x533c0e['push']([_0x124bc4['name'],_0x2b6b23]);}_0x533c0e['length']&&_0x11eaa2['setAttribute']('markerAttributes',Object['fromEntries'](_0x533c0e));}_0x4defa9=null;}));},{'priority':_0x5d6642['high']+0xa}),_0xbc6560['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x247df3,_0x55cab9)=>{const [_0x44f08e,_0x36975f,,_0x3962ec]=_0x55cab9;if(!_0x4defa9)return;_0x247df3['stop']();const _0x532454=_0x44f08e['cell'],_0x378ce7=_0x36975f,_0x27b786=je(_0x532454),_0x597a10=je(_0x378ce7);_0x247df3['return']=_0x532454;let _0x25a95d=null,_0x4836f7=null;if(_0x597a10||_0x27b786){if(_0x27b786&&!_0x597a10){_0x3962ec['remove'](_0x532454['getChild'](0x0));for(const _0x5b224a of Array['from'](_0x378ce7['getChildren']()))_0x3962ec['insert'](_0x5b224a,_0x532454,'end');const _0x470305=_0x4defa9['rowInsertionIndexes']['includes'](_0x44f08e['row']),_0xde6e50=_0x4defa9['columnInsertionIndexes']['includes'](_0x44f08e['column']);_0x470305||_0xde6e50||(_0x25a95d=_0x5103d1['fromRange'](_0x3962ec['createRangeIn'](_0x532454)));}else _0x597a10&&!_0x27b786&&(_0x4836f7=_0x3962ec['createRangeIn'](_0x532454));}else{const _0x3e737c=_0x3962ec['createElement']('tableCellSuggestion'),_0x557ab1=_0x3962ec['createElement']('tableCellSuggestion');_0x3962ec['wrap'](_0x3962ec['createRangeIn'](_0x532454),_0x557ab1),_0x3962ec['insert'](_0x3e737c,_0x532454,0x0);for(const _0x436102 of Array['from'](_0x378ce7['getChildren']()))_0x3962ec['insert'](_0x436102,_0x3e737c,'end');_0x25a95d=_0x5103d1['fromRange'](_0x3962ec['createRangeOn'](_0x3e737c)),_0x4836f7=_0x5103d1['fromRange'](_0x3962ec['createRangeOn'](_0x557ab1));}const _0x337b72=Array['from'](_0x378ce7['getAttributes']())['filter'](([_0x3328aa])=>we['includes'](_0x3328aa));_0x4defa9['cells']['push']({'element':_0x532454,'attributes':_0x337b72['length']?Object['fromEntries'](_0x337b72):null}),_0x25a95d&&_0x4defa9['insertionRanges']['push'](_0x25a95d),_0x4836f7&&_0x4defa9['deletionRanges']['push'](_0x4836f7);},{'priority':'high'}),_0x5a3416['on']('insertColumns',(_0x3e4919,_0x3bd0a8)=>{const [_0x5cb130,_0x2e3a43={}]=_0x3bd0a8;if(!_0x4defa9)return;const _0x59cea6=_0x2e3a43['at']||0x0,_0x2048dc=_0x2e3a43['columns']||0x1;_0x4defa9['columnInsertionIndexes']=new Array(_0x2048dc)['fill'](_0x59cea6)['map']((_0x3f6e8b,_0x41de78)=>_0x3f6e8b+_0x41de78);for(const {cell:_0x25f256}of _0x5a3416['createTableWalker'](_0x5cb130,{'startColumn':_0x59cea6,'endColumn':_0x59cea6+_0x2048dc-0x1}))_0x4defa9['columnInsertionRanges']['push'](_0xbc6560['model']['createRangeOn'](_0x25f256));},{'priority':'low'}),_0x5a3416['on']('insertRows',(_0xebeaa0,_0x34c7eb)=>{const [_0x3d6aa1,_0x1c9535={}]=_0x34c7eb;if(!_0x4defa9)return;const _0x44e41c=_0x1c9535['at']||0x0,_0x538c69=_0x1c9535['rows']||0x1;_0x4defa9['rowInsertionIndexes']=new Array(_0x538c69)['fill'](_0x44e41c)['map']((_0x57d185,_0x1b6471)=>_0x57d185+_0x1b6471);for(const {cell:_0x3ac2ae}of _0x5a3416['createTableWalker'](_0x3d6aa1,{'startRow':_0x44e41c,'endRow':_0x44e41c+_0x538c69-0x1}))_0x4defa9['rowInsertionRanges']['push'](_0xbc6560['model']['createRangeOn'](_0x3ac2ae));},{'priority':'low'}),_0x470fa1['descriptionFactory']['registerDescriptionCallback'](_0x3a8f58=>{if(_0x3a8f58['subType']&&_0x3a8f58['subType']['startsWith']('tablePaste'))return _0x3a8f58['previous']?{}:{'type':'insertion','content':o(_0xbc6560['locale'],'*Replace\x20table\x20cells*')};});const _0xf06d32=()=>!0x1;for(const _0x5d9f55 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x470fa1['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d9f55,'join',_0xf06d32),_0x470fa1['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d9f55,'join',_0xf06d32),_0x470fa1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d9f55,'join',_0xf06d32);_0x470fa1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf06d32),_0x470fa1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53e6f7,_0x55d39c,_0x4eed54)=>{const _0x2c331a=_0x53e6f7['map'](_0x861d1e=>_0x861d1e['getContainedElement']())['filter'](_0x3b4828=>_0x3b4828),_0x30b99e=new Map(_0x2c331a['map'](_0x4f0014=>[_0x4f0014,null]));if(_0x4defa9){for(const {element:_0x21a9ad,attributes:_0x3259b4}of _0x4defa9['cells'])_0x3259b4&&_0x30b99e['set'](_0x21a9ad,_0x3259b4);}else{if(_0x4eed54&&_0x4eed54['markerAttributes'])for(const [_0x1bcc88,_0x2f93d6]of Object['entries'](_0x4eed54['markerAttributes'])){const _0x8dfdd=_0xbc6560['model']['markers']['get'](_0x1bcc88),_0x5ef6b2=_0x8dfdd?_0x8dfdd['getRange']()['getContainedElement']():null;_0x5ef6b2&&_0x30b99e['set'](_0x5ef6b2,_0x2f93d6);}}_0xbc6560['model']['change'](_0x3fb28=>{for(const [_0x5ee34e,_0x31d846]of _0x30b99e)_0x3fb28['setAttributes']({...ve,..._0x31d846},_0x5ee34e);});});const _0x41cf59=(_0x48c064,_0x378137)=>{_0x470fa1['_suggestionFactory']['registerCustomCallback'](_0x48c064,'tablePaste',_0x378137,(_0xbc7653,_0x1f998e,_0x1cee8e)=>{_0xbc6560['model']['change'](_0x427b9f=>{const _0x164134=[];for(const _0x4c6b89 of _0xbc7653){const _0x3d8527=_0x4c6b89['start']['nodeAfter'];_0x3d8527['is']('element','tableCellSuggestion')&&_0x164134['push'](_0x3d8527);}_0x470fa1['_suggestionFactory']['getSuggestionCallback'](_0x48c064,null,_0x378137)(_0xbc7653,_0x1f998e,_0x1cee8e);for(const _0x2b63a6 of _0x164134)'$graveyard'!=_0x2b63a6['root']['rootName']&&_0x427b9f['unwrap'](_0x2b63a6);});});};_0x41cf59('insertion','accept'),_0x41cf59('insertion','discard'),_0x41cf59('deletion','accept'),_0x41cf59('deletion','discard'),_0x470fa1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f7db4=>{const _0x38c32a=_0x4f7db4['map'](_0x4d301d=>_0x4d301d['getContainedElement']()),_0x415c2d=_0x38c32a[0x0]['findAncestor']('table'),{minRow:_0x56b64a,maxRow:_0x13fdd3}=_0x268256['_getCoordsForCells'](_0x38c32a);_0x5a3416['removeRows'](_0x415c2d,{'at':_0x56b64a,'rows':_0x13fdd3-_0x56b64a+0x1});}),_0x470fa1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d0ded=>{const _0x97cd2b=_0x3d0ded['map'](_0x1ad4ce=>_0x1ad4ce['getContainedElement']()),_0x2b0583=_0x97cd2b[0x0]['findAncestor']('table'),{minColumn:_0x1fd2aa,maxColumn:_0x594fe2}=_0x268256['_getCoordsForCells'](_0x97cd2b);_0x5a3416['removeColumns'](_0x2b0583,{'at':_0x1fd2aa,'columns':_0x594fe2-_0x1fd2aa+0x1});});const _0x24414f=(_0x1a7456,_0x356243)=>{if(!_0x356243['subType']||!_0x356243['subType']['startsWith']('tablePaste'))return;const _0x418214=_0x356243['attributes']['tablePasteChainId'],_0x27d764=_0x470fa1['getSuggestions']()['filter'](_0x1399e0=>_0x1399e0['isInContent']&&_0x1399e0['attributes']&&_0x1399e0['attributes']['tablePasteChainId']==_0x418214);_0x27d764['length']&&_0x356243['getAllAdjacentSuggestions']()['length']!=_0x27d764['length']&&_0x27d764['reduce']((_0x386f6a,_0x2e8443)=>(_0x386f6a['next']=_0x2e8443,_0x2e8443['previous']=_0x386f6a,_0x2e8443));};function _0x4d9aa5(_0x17a6ee,_0x3eaa33=!0x0){const {id:_0x1a469e,authorId:_0x4a1d1c}=_0x470fa1['_splitMarkerName'](_0x17a6ee['markerName']),_0x3b6d29=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ee2c8=_0x470fa1['activeMarkers']['includes'](_0x17a6ee['markerName']);return _0x4ee2c8&&_0x3b6d29['push']('ck-suggestion-marker--active'),{'classes':_0x3b6d29,'attributes':{'data-suggestion':_0x1a469e,'data-author-id':_0x4a1d1c},'priority':_0x4ee2c8&&_0x3eaa33?0xbc2:0xbb8};}_0x470fa1['on']('suggestionLoaded',_0x24414f,{'priority':'high'}),_0x470fa1['on']('suggestionUnloaded',_0x24414f,{'priority':'high'}),_0xbc6560['model']['document']['registerPostFixer'](()=>{let _0x58c4c9=!0x1;const _0x1dc3a9=Array['from'](_0xbc6560['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2356de,data:_0x5ecb97}of _0x1dc3a9){const {group:_0x23e663,type:_0x4d0259,id:_0x2080b2}=_0x470fa1['_splitMarkerName'](_0x2356de);if('suggestion'!=_0x23e663||'deletion'!=_0x4d0259||_0x5ecb97['oldRange'])continue;if(!_0x470fa1['hasSuggestion'](_0x2080b2))continue;const _0x5d97d2=_0x470fa1['getSuggestion'](_0x2080b2)['getRanges'](),_0x40d6a8=_0xbc6560['plugins']['get']('Users')['me'];for(const _0x10b1f3 of _0x470fa1['getSuggestions']()){if(!_0x10b1f3['isInContent']||_0x10b1f3['author']!=_0x40d6a8)continue;if('formatBlock'!=_0x10b1f3['type']||'tablePasteCell'!=_0x10b1f3['subType'])continue;if(_0x10b1f3['getRanges']()['every'](_0x38565e=>_0x5d97d2['some'](_0x113315=>_0x113315['containsRange'](_0x38565e,!0x0)))){for(const _0x36f27f of _0x10b1f3['getAllAdjacentSuggestions']())_0x36f27f['isInContent']&&(_0x36f27f['discard'](),_0x58c4c9=!0x0);}}}return _0x58c4c9;}),_0xbc6560['model']['document']['registerPostFixer'](_0x314bf1=>{const _0x1e3b98=_0xbc6560['commands']['get']('redo');if(!_0x1e3b98||!_0x1e3b98['_createdBatches']['has'](_0x314bf1['batch']))return!0x1;let _0x43be44=!0x1;const _0x121465=_0xbc6560['plugins']['get']('Users')['me'],_0x5b70c4=_0xbc6560['model']['document']['differ']['getChanges'](),_0x3fcf3b=Array['from'](_0xbc6560['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52c443,data:_0x48e51f})=>{const {group:_0x383eea,subType:_0x4d3515,authorId:_0x437921}=_0x470fa1['_splitMarkerName'](_0x52c443);return'suggestion'==_0x383eea&&'tablePaste'==_0x4d3515&&_0x437921==_0x121465['id']&&!_0x48e51f['oldRange'];});for(const _0x205035 of _0x5b70c4){if('insert'!=_0x205035['type']||'tableCellSuggestion'!=_0x205035['name']||0x1!=_0x205035['length'])continue;const _0x10b250=_0x314bf1['createRange'](_0x205035['position'],_0x205035['position']['getShiftedBy'](0x1));if(!_0x3fcf3b['find'](({data:_0x1bc3fc})=>_0x1bc3fc['newRange']['isEqual'](_0x10b250))){for(const {name:_0x445e89,data:_0x5b05a0}of _0x3fcf3b)if(_0x10b250['containsRange'](_0x5b05a0['newRange'])){_0x314bf1['updateMarker'](_0x445e89,{'range':_0x10b250}),_0x43be44=!0x0;break;}}}return _0x43be44;}),_0xbc6560['model']['document']['registerPostFixer'](_0x39f0a3=>{let _0x474649=!0x1;const _0x3ffb3f=_0xbc6560['plugins']['get']('Users')['me'],_0x2e3f88=_0x470fa1['getSuggestions']()['filter'](_0x4b7db5=>_0x4b7db5['isInContent']&&_0x4b7db5['author']==_0x3ffb3f),_0x5b1b1e=new Set(),_0x466079=new Set();for(const _0x299b3f of _0x2e3f88)if('tablePaste'==_0x299b3f['subType'])for(const _0x5232f5 of _0x299b3f['getMarkers']()){const _0x9391b0=_0x5232f5['getRange']()['getContainedElement']();if(_0x9391b0){if(_0x9391b0['is']('element','tableCellSuggestion')&&je(_0x9391b0)){_0x299b3f['removeMarker'](_0x5232f5['name']),_0x5b1b1e['add'](_0x9391b0),_0x474649=!0x0;const _0x4014ec=_0x9391b0['nextSibling'],_0x310d03=_0x9391b0['previousSibling'],_0x12d04c=_0x4014ec&&_0x4014ec['is']('element','tableCellSuggestion'),_0x1e1398=_0x310d03&&_0x310d03['is']('element','tableCellSuggestion');_0x12d04c&&!_0x5b1b1e['has'](_0x4014ec)&&_0x466079['add'](_0x4014ec),_0x1e1398&&!_0x5b1b1e['has'](_0x310d03)&&_0x466079['add'](_0x310d03);}else _0x9391b0['is']('element','paragraph')&&_0x9391b0['isEmpty']&&(_0x299b3f['removeMarker'](_0x5232f5['name']),_0x474649=!0x0);}}else{if('tablePasteCell'==_0x299b3f['subType']){if(!_0x299b3f['attributes']||!_0x299b3f['attributes']['tablePasteChainId'])continue;const _0x45bfa6=_0x299b3f['attributes']['markerAttributes'];if(_0x45bfa6&&Object['keys'](_0x45bfa6)['length'])continue;const _0x277e48=_0x299b3f['attributes']['tablePasteChainId'];let _0x185559=!0x0,_0x31d879=!0x0;for(const _0x4c139c of _0x2e3f88)if(_0x4c139c['subType']&&_0x4c139c['subType']['startsWith']('tablePaste')){if(!_0x4c139c['attributes']['tablePasteChainId']){_0x31d879=!0x1;break;}if(_0x4c139c['id']!=_0x299b3f['id']&&_0x4c139c['attributes']['tablePasteChainId']==_0x277e48){_0x185559=!0x1;break;}}_0x31d879&&_0x185559&&(_0x299b3f['removeMarkers'](),_0x474649=!0x0);}}for(const _0x42c8c6 of _0x5b1b1e)_0x39f0a3['remove'](_0x42c8c6);for(const _0xa7b85 of _0x466079)_0x39f0a3['unwrap'](_0xa7b85);return _0x474649;}),_0xbc6560['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2e1189=>_0x4d9aa5(_0x2e1189),'converterPriority':'high'}),_0xbc6560['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x363609,_0x553ffe)=>_0x553ffe['options']['showSuggestionHighlights']?_0x4d9aa5(_0x363609,!0x1):null,'converterPriority':'high'});const _0x5ed664=_0xbc6560['editing']['view'];this['listenTo'](_0x5ed664['document'],'clipboardOutput',(_0x45dc9e,_0x2a2b92)=>{const _0x1cd883=[];for(const _0x3affed of _0x5ed664['createRangeIn'](_0x2a2b92['content'])['getItems']())_0x3affed['is']('element','suggestion-td')&&_0x1cd883['push'](_0x3affed);_0x5ed664['change'](_0x2c00da=>{for(const _0x2eb626 of _0x1cd883)_0x2c00da['move'](_0x2c00da['createRangeIn'](_0x2eb626),_0x2c00da['createPositionBefore'](_0x2eb626)),_0x2c00da['remove'](_0x2eb626);});});}}function je(_0x4147cd){if(_0x4147cd['isEmpty'])return!0x0;const _0x244e40=_0x4147cd['getChild'](0x0);return _0x244e40['is']('element','paragraph')&&_0x244e40['isEmpty'];}function Ae(_0x19162e,_0x464aa7={},_0x3ca232){for(const {isAnchor:_0x34e01c,cellHeight:_0x508845,cellWidth:_0x2b2ffb}of _0x3ca232['createTableWalker'](_0x19162e,{'includeAllSlots':!0x0,..._0x464aa7}))if(!_0x34e01c||0x1!=_0x508845||0x1!=_0x2b2ffb)return!0x1;return!0x0;}class Dt extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54e9c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x54e9c4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54e9c4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54e9c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54e9c4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54e9c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54e9c4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x864a4a,_0x170a31){const _0x56c99f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfb91d4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2094de=_0x170a31['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x471dbd=_0xfb91d4['getColumnGroupElement'](_0x2094de);let _0x4f244b=_0x471dbd?_0xfb91d4['getTableColumnsWidths'](_0x471dbd):null,_0x3fc061=_0x2094de['getAttribute']('tableWidth')||null;const _0x445ff5=_0x170a31['tableWidth']||_0x3fc061,_0x145671=_0x170a31['columnWidths']||_0x4f244b,_0x2ed622=this['editor']['plugins']['get']('Users')['me'];for(const _0x34cce5 of _0x56c99f['getSuggestions']()){const _0x5ecccf=_0x34cce5['getContainedElement']();if('resizeTable'===_0x34cce5['subType']&&_0x5ecccf===_0x2094de){_0x34cce5['author']!==_0x2ed622&&_0x34cce5['discard']();const _0x4b72b0=_0x34cce5['data']['commandParams'];_0x3fc061=_0x4b72b0[0x0]['tableWidth'],_0x4f244b=_0x4b72b0[0x0]['columnWidths'];break;}}_0x864a4a({'table':_0x2094de,'tableWidth':_0x445ff5,'columnWidths':_0x145671}),_0x56c99f['markBlockFormat'](_0x2094de,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3fc061,'columnWidths':_0x4f244b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c3491){if('formatBlock'!=_0x4c3491['type']&&'formatInline'!=_0x4c3491['type'])return;const {data:_0xdb41df}=_0x4c3491;if(_0xdb41df&&'resizeTable'===_0xdb41df['formatGroupId']){const _0x3cabc2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3cabc2)};}}}class Mt extends _0x24408b{['afterInit'](){const _0x1d73d5=this['editor'];_0x1d73d5['plugins']['has']('Template')&&_0x1d73d5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x24408b{['afterInit'](){const _0x64531f=this['editor'];if(!_0x64531f['commands']['get']('insertTableOfContents'))return;_0x64531f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1b4188=_0x64531f['plugins']['get']('TrackChangesEditing'),_0x34920a=_0x64531f['locale'];_0x1b4188['descriptionFactory']['registerElementLabel']('tableOfContents',_0x352c2a=>o(_0x34920a,'ELEMENT_TABLE_OF_CONTENTS',_0x352c2a));}}class Bt extends _0x24408b{['afterInit'](){const _0x88b8cc=this['editor'];if(!_0x88b8cc['plugins']['has']('Title'))return;const _0x18bdfb=_0x88b8cc['plugins']['get']('TrackChangesEditing');_0x18bdfb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x88b8cc['locale'],'ELEMENT_TITLE')),_0x88b8cc['model']['document']['registerPostFixer'](_0xed31ea=>{let _0x533036=!0x1;const _0x450f44=Array['from'](_0x88b8cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c57ec,data:_0x1696c9}of _0x450f44){const {group:_0x505105}=_0x18bdfb['_splitMarkerName'](_0x4c57ec);if('suggestion'!==_0x505105||!_0x1696c9['newRange'])continue;const _0x1d437c=_0x1696c9['newRange'],_0x1e5e63=_0x1d437c['end']['nodeBefore'];if(!_0x1e5e63||!_0x1e5e63['is']('element','title-content'))continue;if(!_0x1d437c['start']['isTouching'](_0x1d437c['end']))continue;const _0xb88d9f=_0x88b8cc['model']['schema']['getNearestSelectionRange'](_0x1d437c['end'],'forward');if(_0xb88d9f&&_0xb88d9f['isCollapsed']){const _0x481948=_0xed31ea['createRange'](_0x1d437c['start'],_0xb88d9f['start']);_0x481948['isEqual'](_0x1d437c)||(_0xed31ea['updateMarker'](_0x4c57ec,{'range':_0x481948}),_0x533036=!0x0);}_0x533036||(_0xed31ea['removeMarker'](_0x4c57ec),_0x533036=!0x0);}return _0x533036;});}}class Ot extends _0x24408b{['afterInit'](){const _0x3565c1=this['editor'],_0x1fc536=_0x3565c1['plugins']['get']('TrackChangesEditing');_0x3565c1['plugins']['has']('UndoEditing')&&(_0x1fc536['enableCommand']('undo'),_0x1fc536['enableCommand']('redo'));}}class Rt extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0x5c1491=this['editor'];if(!_0x5c1491['plugins']['has']('TableCaptionEditing'))return;_0x5c1491['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x24408b{['tableProperties'];['tableCellProperties'];constructor(_0x58b4d5){super(_0x58b4d5),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 _0xca5d16=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x55672f of this['tableProperties'])_0xca5d16['enableCommand'](_0x55672f,(_0x3502c1,_0x366036)=>{const _0x1418ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x55672f,[_0x1418ee],this['tableProperties'],'tableProperties',_0x3502c1,_0x366036);});_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xca5d16['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x24d090,_0x139dab)=>this['handleDiscardAction'](this['tableProperties'],_0x24d090,_0x139dab)),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1380fc of this['tableCellProperties'])_0xca5d16['enableCommand'](_0x1380fc,(_0x1c94db,_0x489aa2)=>{const _0x350bf6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1380fc,_0x350bf6,this['tableCellProperties'],'tableCellProperties',_0x1c94db,_0x489aa2);});_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xca5d16['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x24e2c3,_0x1b54d8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x24e2c3,_0x1b54d8)),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xca5d16['descriptionFactory']['registerDescriptionCallback'](_0x1f509c=>this['handleSuggestionDescription'](_0x1f509c));}['_handlePropertyChange'](_0x331b17,_0x1131ae,_0x333e3f,_0x2049fd,_0x2354df,_0x2ca71b){const _0x1f9bd5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2ca71b['batch'],()=>{for(const _0x297b71 of _0x1131ae){if(this['_getSuggestion'](_0x297b71,_0x2049fd))_0x2354df(_0x2ca71b);else{const _0x1868a0={};for(const _0x1176cc of _0x333e3f){const _0x37b5e7=_0x297b71['getAttribute'](_0x1176cc);void 0x0!==_0x37b5e7&&(_0x1868a0[_0x1176cc]=_0x37b5e7);}_0x2354df(_0x2ca71b),_0x1f9bd5['markBlockFormat'](_0x297b71,{'commandParams':[_0x1868a0]},[],_0x2049fd);}}});}['handleDiscardAction'](_0x337fd0,_0x263839,_0x1a7790){const _0x454955=_0x263839[0x0]['start']['nodeAfter'],_0xad85cd=_0x1a7790['commandParams'][0x0];this['editor']['model']['change'](_0x4441bc=>{for(const _0x59d19e of _0x337fd0)void 0x0!==_0xad85cd[_0x59d19e]?_0x4441bc['setAttribute'](_0x59d19e,_0xad85cd[_0x59d19e],_0x454955):_0x4441bc['removeAttribute'](_0x59d19e,_0x454955);});}['handleSuggestionDescription'](_0x1755b0){if(_0x1755b0['data'])switch(_0x1755b0['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'](_0x458cf4,_0x285e63){const _0x15ab76=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x10e9b8 of _0x15ab76['getSuggestions']({'skipNotAttached':!0x0})){const _0x17d77b=_0x10e9b8['getContainedElement']();if(_0x10e9b8['subType']===_0x285e63&&_0x17d77b===_0x458cf4)return _0x10e9b8;}return null;}}const m='$elementName';class p extends _0x24408b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21fc14,_0xd69aae,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f3e5c){super(_0x4f3e5c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1b39b8,_0x1e1477,_0x418a2a,_0x3ff959)=>{this['_model']['change'](()=>{for(const _0xd72567 of[..._0x3ff959,..._0x418a2a])this['_model']['markers']['has'](_0xd72567)&&_0x4f3e5c['editing']['reconvertMarker'](_0xd72567);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4f3e5c['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(),_0x4f3e5c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f3e5c['config']['get']('trackChanges.trackFormatChanges'),_0x4f3e5c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f3e5c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4f3e5c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x524592=this['editor'],_0x2d7664=(_0x251ac9,_0x246aa0)=>{if('attribute'!=_0x251ac9)return'ck-suggestion-marker-'+_0x251ac9;const _0x4a9b51=_0x246aa0['split']('|')[0x0];return this['_isBlockAttribute'](_0x4a9b51)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x524592['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3cf7a1=>{const {id:_0x72e55f,authorId:_0x27b5f9,type:_0x297851,subType:_0xba1384}=this['_splitMarkerName'](_0x3cf7a1['markerName']),_0x22fc9c=['ck-suggestion-marker',_0x2d7664(_0x297851,_0xba1384)];let _0x46db69=0xbb8;return this['activeMarkers']['includes'](_0x3cf7a1['markerName'])&&(_0x22fc9c['push']('ck-suggestion-marker--active'),_0x46db69=0xbc2),'deletion'==_0x297851&&(_0x46db69+=0x5),{'classes':_0x22fc9c,'attributes':{'data-suggestion':_0x72e55f,'data-author-id':_0x27b5f9},'priority':_0x46db69};}}),_0x524592['conversion']['for']('dataDowncast')['add'](_0x33345d=>{_0x33345d['on']('addMarker:suggestion',(_0xe89091,_0x35f0c3,_0x14f669)=>{if(!_0x14f669['options']['showSuggestionHighlights'])return;const _0x225dc0=_0x35f0c3['item'];if(!_0x225dc0)return;const _0x1abf07=_0x14f669['mapper']['toViewElement'](_0x225dc0);_0x524592['model']['schema']['isObject'](_0x225dc0)&&_0x1abf07&&!_0x1abf07['getCustomProperty']('widget')&&_0x1abf07['is']('containerElement')&&_0x21cec0(_0x1abf07,_0x14f669['writer']);},{'priority':'high'});}),_0x524592['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x24016e,_0x5b1529)=>{if(!_0x5b1529['options']['showSuggestionHighlights'])return null;const {type:_0x4d3f10,subType:_0x471773}=this['_splitMarkerName'](_0x24016e['markerName']);return{'classes':['ck-suggestion-marker',_0x2d7664(_0x4d3f10,_0x471773)],'priority':0xbb8};}});const _0x4ca8fb=({showActiveMarkers:_0x392ad9=!0x0,isAttributeSuggestion:_0x38c228=!0x1}={})=>(_0x16f4a9,_0x1da861,_0x4ad37e)=>{if(!_0x1da861['item'])return;const {id:_0x1c20db,authorId:_0x243667}=this['_splitMarkerName'](_0x1da861['markerName']);if(_0x38c228){const _0x12abac=this['_suggestions']['get'](_0x1c20db),_0x2e37f6=this['_getAttributeKey'](_0x12abac);if(!this['_isBlockAttribute'](_0x2e37f6))return;}if(_0x1da861['item']['is']('selection'))return void _0x4ad37e['consumable']['consume'](_0x1da861['item'],_0x16f4a9['name']);const _0x4636f1=_0x4ad37e['mapper']['toViewElement'](_0x1da861['item']);if(_0x1da861['item']['is']('element')&&_0x524592['model']['schema']['isBlock'](_0x1da861['item'])&&!_0x4636f1['getCustomProperty']('addHighlight')){_0x4ad37e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4636f1),_0x4ad37e['writer']['setAttribute']('data-suggestion',_0x1c20db,_0x4636f1),_0x4ad37e['writer']['setAttribute']('data-author-id',_0x243667,_0x4636f1),_0x4ad37e['mapper']['bindElementToMarker'](_0x4636f1,_0x1da861['markerName']),_0x392ad9&&(this['activeMarkers']['includes'](_0x1da861['markerName'])?_0x4ad37e['writer']['addClass']('ck-suggestion-marker--active',_0x4636f1):_0x4ad37e['writer']['removeClass']('ck-suggestion-marker--active',_0x4636f1));for(const _0x179722 of _0x524592['model']['createRangeIn'](_0x1da861['item'])['getItems']())_0x4ad37e['consumable']['consume'](_0x179722,_0x16f4a9['name']);_0x4ad37e['consumable']['consume'](_0x1da861['item'],_0x16f4a9['name']);}};_0x524592['conversion']['for']('dataDowncast')['add'](_0x479079=>{_0x479079['on']('addMarker:suggestion:formatBlock',(_0x1a8bb2,_0x4d6258,_0x4ac67f)=>{_0x4ac67f['options']['showSuggestionHighlights']&&_0x4ca8fb({'showActiveMarkers':!0x1})(_0x1a8bb2,_0x4d6258,_0x4ac67f);},{'priority':'highest'});}),_0x524592['conversion']['for']('dataDowncast')['add'](_0x3055af=>{_0x3055af['on']('addMarker:suggestion:attribute',(_0x333394,_0x345414,_0x124051)=>{_0x124051['options']['showSuggestionHighlights']&&_0x4ca8fb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x333394,_0x345414,_0x124051);},{'priority':'highest'});}),_0x524592['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4bfb23,_0x29830d)=>_0x29830d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4bfb23['substr'](0xb)}}),_0x524592['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x503777,{writer:_0x43c0c2})=>{let _0x27df21='suggestion:'+_0x503777['getAttribute']('suggestion-type')+':'+_0x503777['getAttribute']('id');return _0x503777['getAttribute']('marker-count')&&(_0x27df21+=':'+_0x503777['getAttribute']('marker-count')),_0x43c0c2['createElement']('$marker',{'data-name':_0x27df21});}}),_0x524592['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x524592['conversion']['for']('editingDowncast')['add'](_0xc2ac19=>{_0xc2ac19['on']('addMarker:suggestion:formatBlock',_0x4ca8fb(),{'priority':'high'});}),_0x524592['conversion']['for']('editingDowncast')['add'](_0x177549=>{_0x177549['on']('addMarker:suggestion:attribute',_0x4ca8fb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x524592['conversion']['for']('editingDowncast')['add'](_0x5b581e=>{_0x5b581e['on']('removeMarker:suggestion:formatBlock',(_0x23be0c,_0x2633ad,_0x10fd4f)=>{const _0x36a245=_0x10fd4f['mapper']['markerNameToElements'](_0x2633ad['markerName']);if(_0x36a245){for(const _0x184196 of _0x36a245)_0x184196['getCustomProperty']('addHighlight')||(_0x10fd4f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x184196),_0x10fd4f['writer']['removeAttribute']('data-suggestion',_0x184196),_0x10fd4f['writer']['removeAttribute']('data-author-id',_0x184196),_0x10fd4f['mapper']['unbindElementFromMarkerName'](_0x184196,_0x2633ad['markerName']));}},{'priority':'high'});}),_0x524592['conversion']['for']('editingDowncast')['add'](_0x430667=>{_0x430667['on']('removeMarker:suggestion:attribute',(_0x4b3ec0,_0x117dba,_0x2d83ac)=>{const _0x9e1724=_0x2d83ac['mapper']['markerNameToElements'](_0x117dba['markerName']);if(!_0x9e1724)return;const {id:_0x356c7c}=this['_splitMarkerName'](_0x117dba['markerName']),_0x27ccb9=this['_suggestions']['get'](_0x356c7c),_0x550ae6=this['_getAttributeKey'](_0x27ccb9);if(this['_isBlockAttribute'](_0x550ae6)){for(const _0xf92722 of _0x9e1724)_0xf92722['getCustomProperty']('addHighlight')||(_0x2d83ac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xf92722),_0x2d83ac['writer']['removeAttribute']('data-suggestion',_0xf92722),_0x2d83ac['writer']['removeAttribute']('data-author-id',_0xf92722),_0x2d83ac['mapper']['unbindElementFromMarkerName'](_0xf92722,_0x117dba['markerName']));}},{'priority':'high'});}),_0x524592['model']['document']['registerPostFixer'](_0x1c832a=>{let _0x386d19=!0x1;const _0x113980=Array['from'](_0x524592['model']['document']['differ']['getChangedMarkers']()),_0x59d365=new Set();for(const {name:_0x1cf3bb,data:_0x1382b8}of _0x113980){const {group:_0x389960,type:_0x2e4472,subType:_0x3b5b53,id:_0x261244}=this['_splitMarkerName'](_0x1cf3bb);if('suggestion'!==_0x389960)continue;const _0xe4a4ee=this['_suggestions']['get'](_0x261244);if(null!=_0x1382b8['newRange']){'formatInline'==_0x2e4472&&(_0x386d19=_0x386d19||Pt(_0x1382b8['newRange'],_0x1cf3bb,_0x1c832a,_0x524592['model']['schema']));const _0xc2dbef='attribute'==_0x2e4472&&this['_isBlockAttribute'](_0x3b5b53['split']('|')[0x0]);if(_0x1382b8['newRange']['isCollapsed']||'$graveyard'==_0x1382b8['newRange']['root']['rootName']||'formatBlock'==_0x2e4472&&!Ft(_0x1382b8['newRange'])||_0xc2dbef&&!Ft(_0x1382b8['newRange'])||'deletion'==_0x2e4472&&!(!Vt(_0x5ebf84=_0x1382b8['newRange'])&&!function(_0x22e034){return _0x22e034['start']['parent']==_0x22e034['end']['nodeBefore']&&_0x22e034['start']['isAtEnd'];}(_0x5ebf84)))_0x1c832a['removeMarker'](_0x1cf3bb),_0x386d19=!0x0;else{if(!_0xe4a4ee||!_0xe4a4ee['isInContent'])continue;if(_0x1382b8['newRange']&&_0x1382b8['oldRange']&&_0x1382b8['newRange']['isEqual'](_0x1382b8['oldRange']))continue;_0x59d365['add'](_0xe4a4ee);}}}var _0x5ebf84;return _0x59d365['size']>0x0&&(_0x386d19=!!this['_joinWithAdjacentSuggestions'](_0x59d365)||_0x386d19),_0x386d19;}),_0x524592['model']['document']['registerPostFixer'](_0x21df93=>{let _0x281a4e=!0x1;for(const _0x4dcfd4 of _0x524592['model']['document']['differ']['getChanges']())if('insert'==_0x4dcfd4['type'])for(const _0x392f67 of this['_suggestions']['values']()){if(_0x392f67['isMultiRange']||!_0x392f67['isInContent'])continue;const _0x83ff59='formatBlock'==_0x392f67['type'],_0x3dddda=this['_getAttributeKey'](_0x392f67),_0x56b6fd=_0x3dddda&&this['_isBlockAttribute'](_0x3dddda);if(!_0x83ff59&&!_0x56b6fd)continue;const _0x3a79a1=_0x392f67['getFirstRange']();if(_0x3a79a1['start']['parent']!=_0x3a79a1['end']['parent']&&!_0x3a79a1['end']['isAtEnd']){const _0x35f2c0=_0x524592['model']['createPositionAt'](_0x3a79a1['start']['nodeAfter'],'end'),_0xb28752=_0x524592['model']['createRange'](_0x3a79a1['start'],_0x35f2c0);_0x21df93['updateMarker'](_0x392f67['getFirstMarker'](),{'range':_0xb28752}),_0x281a4e=!0x0;}}return _0x281a4e;}),_0x524592['model']['document']['registerPostFixer'](_0x4080d1=>this['_processAttributeChanges'](_0x4080d1)),_0x524592['model']['document']['registerPostFixer'](_0x527e43=>!_0x527e43['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x527e43)),_0x524592['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x524592['model']['document']['on']('change:data',(_0x3a1f2d,_0x155447)=>{if(!_0x155447['isLocal']||_0x155447['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dd573=_0x524592['model']['document']['differ']['getChanges']();if(0x0==_0x5dd573['length'])return;const _0x22d9de=[],_0x3a85ee=_0x5dd573['filter'](_0x38b0f9=>'attribute'==_0x38b0f9['type']),_0x3b54d7=_0x5dd573['filter'](_0x1dd327=>'insert'==_0x1dd327['type']&&'$text'!=_0x1dd327['name']);for(const _0x1bdd4d of _0x3a85ee)this['_isRegisteredAttribute'](_0x1bdd4d['attributeKey'])&&_0x22d9de['push']({'key':_0x1bdd4d['attributeKey'],'newValue':_0x1bdd4d['attributeNewValue'],'oldValue':_0x1bdd4d['attributeOldValue'],'range':Lt(_0x1bdd4d['range'],_0x524592['model'])});for(const _0x377b4f of _0x3b54d7){if('rename'!=_0x377b4f['action']&&'refresh'!=_0x377b4f['action'])continue;const _0x2a1224=Jt(_0x377b4f['position']['nodeAfter'],_0x524592['model']),_0x24dbd5=_0x377b4f['before'];'rename'==_0x377b4f['action']&&_0x22d9de['push']({'key':m,'newValue':_0x377b4f['name'],'oldValue':_0x24dbd5['name'],'range':_0x2a1224});for(const [_0x41ce2c,_0x5207e3]of _0x24dbd5['attributes']){if(!this['_isRegisteredAttribute'](_0x41ce2c))continue;const _0x6c213f=_0x377b4f['attributes']['get'](_0x41ce2c);_0x5207e3!==_0x6c213f&&_0x22d9de['push']({'key':_0x41ce2c,'newValue':_0x6c213f,'oldValue':_0x5207e3,'range':_0x2a1224});}for(const [_0x4a86dd,_0x165488]of _0x377b4f['attributes'])this['_isRegisteredAttribute'](_0x4a86dd)&&(_0x24dbd5['attributes']['has'](_0x4a86dd)||_0x22d9de['push']({'key':_0x4a86dd,'newValue':_0x165488,'oldValue':null,'range':_0x2a1224}));}0x0!=_0x22d9de['length']&&_0x524592['model']['enqueueChange'](_0x155447,_0x2ca3a2=>{const _0x16dc01=_0x425cf6();for(const {range:_0x3b78a8,key:_0x76547d,oldValue:_0x4e5e8c,newValue:_0x470f5d}of _0x22d9de)this['markAttributeChange'](_0x3b78a8,_0x76547d,_0x4e5e8c,_0x470f5d,{'groupId':_0x16dc01});this['_reduceExistingSuggestions'](_0x2ca3a2,_0x22d9de);});},{'priority':'lowest'}),_0x524592['model']['markers']['on']('update:suggestion',(_0x29e965,_0x2075b4,_0x5939c6)=>{if(null==_0x5939c6){const {id:_0x10d1ac}=this['_splitMarkerName'](_0x2075b4['name']),_0x42e678=this['_suggestions']['get'](_0x10d1ac);_0x42e678&&_0x42e678['addMarkerName'](_0x2075b4['name']);}}),_0x524592['model']['document']['on']('change:data',()=>{const _0x5e4960=Array['from'](_0x524592['model']['document']['differ']['getChangedMarkers']())['filter'](_0x6a1797=>'suggestion'===this['_splitMarkerName'](_0x6a1797['name'])['group']);if(0x0===_0x5e4960['length'])return;_0x5e4960['sort']((_0x55c8ab,_0x195a29)=>{const _0x37cfa6=_0x55c8ab['data']['oldRange'],_0x50b30c=_0x195a29['data']['oldRange'];return null===_0x37cfa6&&null===_0x50b30c?0x0:null===_0x37cfa6&&null!==_0x50b30c?-0x1:null!==_0x37cfa6&&null===_0x50b30c?0x1:_0x37cfa6['start']['isBefore'](_0x50b30c['start'])?-0x1:0x1;});const _0x4d3012=new Set(),_0x1aa691=new Set();for(const {name:_0x306e9e,data:_0x275c0a}of _0x5e4960){const {id:_0x84c251}=this['_splitMarkerName'](_0x306e9e);if(null===_0x275c0a['oldRange']){const _0x4251df=this['_handleNewSuggestionMarker'](_0x306e9e);_0x1aa691['add'](_0x4251df);}else{const _0x558bb9=this['_suggestions']['get'](_0x84c251);null!==_0x275c0a['newRange']||_0x558bb9['isInContent']?(_0x4d3012['add'](_0x558bb9['head']),_0x1aa691['add'](_0x558bb9)):this['_removeSuggestion'](_0x558bb9);}}_0x1aa691['size']>0x0&&this['_refreshSuggestionsChain'](_0x1aa691);for(const _0x5d6f25 of _0x4d3012)this['fire']('suggestionChanged',_0x5d6f25);}),_0x524592['model']['on']('applyOperation',(_0x40521d,_0x40e1b7)=>{const _0x1c8c6a=_0x40e1b7[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c8c6a['isDocumentOperation'])return;if(_0x1c8c6a['batch']['isUndo']||!_0x1c8c6a['batch']['isLocal'])return;let _0x10ec00,_0x5f4cbf;switch(_0x1c8c6a['type']){case'insert':_0x10ec00=_0x524592['model']['createPositionAt'](_0x1c8c6a['position']),_0x5f4cbf=_0x10ec00['getShiftedBy'](_0x1c8c6a['howMany']);break;case'split':_0x10ec00=_0x524592['model']['createPositionAt'](_0x1c8c6a['splitPosition']),_0x5f4cbf=_0x524592['model']['createPositionAt'](_0x1c8c6a['moveTargetPosition']);break;case'move':_0x10ec00=_0x524592['model']['createPositionAt'](_0x1c8c6a['targetPosition']),_0x5f4cbf=_0x10ec00['getShiftedBy'](_0x1c8c6a['howMany']);break;default:return;}const _0x5b86b9=_0x524592['model']['createRange'](_0x10ec00,_0x5f4cbf);_0x524592['model']['change'](()=>{for(const {suggestion:_0x445dd4,meta:_0x3e0ccc}of this['_findSuggestions'](_0x5b86b9)){if(_0x445dd4['isMultiRange'])continue;if('formatInline'==_0x445dd4['type'])continue;const _0x33e4be=this['_getAttributeKey'](_0x445dd4);if(_0x33e4be&&this['_isBlockAttribute'](_0x33e4be)&&'split'!=_0x1c8c6a['type'])continue;const _0x5eee34=_0x445dd4['data']&&_0x445dd4['data']['multipleBlocks'];('formatBlock'!=_0x445dd4['type']||'split'==_0x1c8c6a['type']&&!_0x5eee34)&&(_0x3e0ccc['containsRangeInObject']||'insertion'==_0x445dd4['type']&&_0x3e0ccc['isOwn']||_0x445dd4['getFirstRange']()['containsRange'](_0x5b86b9)&&this['_breakSuggestionMarker'](_0x445dd4,_0x10ec00,_0x5f4cbf));}});},{'priority':'lowest'}),_0x524592['model']['on']('deleteContent',(_0x3b0534,_0x88d12a)=>{const _0x247264=_0x88d12a[0x0],_0x1b6270=_0x88d12a[0x1];if(_0x1b6270&&_0x1b6270['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x247264['isCollapsed'])return;const _0x42f439=_0x524592['model']['schema'],{start:_0x9dcdb3,end:_0x47f044}=_0x247264['getFirstRange'](),_0x453c8f=_0x9dcdb3['nodeAfter']&&_0x42f439['isLimit'](_0x9dcdb3['nodeAfter'])?null:_0x42f439['getNearestSelectionRange'](_0x9dcdb3,'forward'),_0x1b70c3=_0x47f044['nodeBefore']&&_0x42f439['isLimit'](_0x47f044['nodeBefore'])?null:_0x42f439['getNearestSelectionRange'](_0x47f044,'backward'),_0x261ef8=_0x524592['model']['createRange'](_0x453c8f?_0x453c8f['start']:_0x9dcdb3,_0x1b70c3?_0x1b70c3['end']:_0x47f044);_0x524592['model']['change'](_0x48220a=>{this['markDeletion'](_0x261ef8);const _0x4360d8=_0x524592['model']['schema']['getNearestSelectionRange'](_0x261ef8['start']);_0x247264['is']('documentSelection')?_0x48220a['setSelection'](_0x4360d8):_0x247264['setTo'](_0x4360d8);}),_0x3b0534['stop']();},{'priority':_0x5d6642['normal']+0xa}),_0x524592['model']['on']('insertContent',(_0x20751f,_0x457f03)=>{const _0x5ca891=_0x457f03[_0x457f03['length']-0x1];_0x5ca891&&_0x5ca891['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x524592['model']['change'](()=>{let _0x421b00=_0x524592['model']['insertContent'](_0x457f03[0x0],_0x457f03[0x1],_0x457f03[0x2],{'forceDefaultExecution':!0x0});if(!_0x421b00)return;_0x20751f['return']=_0x421b00['clone']();const _0xf6f2d5=_0x421b00['end']['nodeBefore'],_0x5813c4=_0x524592['model']['schema'];_0xf6f2d5&&_0x5813c4['isBlock'](_0xf6f2d5)&&!_0x5813c4['isObject'](_0xf6f2d5)&&(_0x421b00=_0x524592['model']['createRange'](_0x421b00['start'],_0x524592['model']['createPositionAt'](_0xf6f2d5,'end'))),this['markInsertion'](_0x421b00);}),_0x20751f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a890b=new O(_0x524592,this['_suggestions']);_0x524592['commands']['add']('acceptSuggestion',_0x3a890b),this['enableCommand']('acceptSuggestion');const _0x38947b=new R(_0x524592,this['_suggestions']);_0x524592['commands']['add']('discardSuggestion',_0x38947b),this['enableCommand']('discardSuggestion'),_0x524592['commands']['add']('acceptAllSuggestions',new x(_0x524592,_0x3a890b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x524592['commands']['add']('discardAllSuggestions',new x(_0x524592,_0x38947b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x524592['commands']['add']('acceptSelectedSuggestions',new E(_0x524592,_0x3a890b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x524592['commands']['add']('discardSelectedSuggestions',new E(_0x524592,_0x38947b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x514a63=_0x524592['plugins']['get']('CommentsRepository');this['listenTo'](_0x514a63,'addComment',(_0x11505d,{threadId:_0x20ddd7})=>{const _0x192a9f=this['_suggestions']['get'](_0x20ddd7);_0x192a9f&&_0x192a9f['commentThread']&&0x1===_0x192a9f['commentThread']['length']&&this['_updateSuggestionData'](_0x20ddd7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x514a63,'removeComment',(_0x16dc05,{threadId:_0x1107d6})=>{const _0x4ea497=this['_suggestions']['get'](_0x1107d6);_0x4ea497&&_0x4ea497['commentThread']&&!_0x4ea497['commentThread']['length']&&this['_updateSuggestionData'](_0x1107d6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa9c5bb){const _0x721ba6=_0x20a69a([0x6c,0x5a,0x32,0x65,0x31,0x67,0x4f,0x61,0x38,0x37,0x73,0x62,0x4a,0x41,0x4d,0x6e,0x7a,0x6d,0x4c,0x4e,0x76,0x30,0x59,0x53,0x79,0x42,0x55,0x49,0x63,0x71,0x75,0x47,0x6a,0x6b,0x74,0x33,0x43,0x56,0x66,0x57,0x52,0x39,0x69,0x34,0x45,0x64,0x77,0x6f,0x54,0x44,0x70,0x68,0x78,0x4b,0x48,0x36,0x58,0x72,0x46,0x35,0x51,0x50]),_0x183213=0x50cc1ebd,_0x32c3ad=0x50cb4485^_0x183213,_0x414ab9=window[_0x20a69a([0x44,0x61,0x74,0x65])][_0x20a69a([0x6e,0x6f,0x77])](),_0x5cc2f7=_0xa9c5bb[_0x20a69a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3454bc=new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x300155=>{_0x5cc2f7[_0x20a69a([0x6f,0x6e,0x63,0x65])](_0x20a69a([0x72,0x65,0x61,0x64,0x79]),_0x300155);}),_0x16d570={[_0x20a69a([0x6b,0x74,0x79])]:_0x20a69a([0x45,0x43]),[_0x20a69a([0x75,0x73,0x65])]:_0x20a69a([0x73,0x69,0x67]),[_0x20a69a([0x63,0x72,0x76])]:_0x20a69a([0x50,0x2d,0x32,0x35,0x36]),[_0x20a69a([0x78])]:_0x20a69a([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]),[_0x20a69a([0x79])]:_0x20a69a([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]),[_0x20a69a([0x61,0x6c,0x67])]:_0x20a69a([0x45,0x53,0x32,0x35,0x36])},_0x599378=_0x5cc2f7[_0x20a69a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20a69a([0x67,0x65,0x74])](_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3049fc(){let _0x372fcb,_0x3a8ca4=null,_0x5a081e=null;try{if(_0x599378==_0x20a69a([0x47,0x50,0x4c]))return _0x20a69a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x372fcb=_0x4d0dd9(),!_0x372fcb)return _0x20a69a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x372fcb[_0x20a69a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a081e=_0x19af06(_0x372fcb[_0x20a69a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x372fcb[_0x20a69a([0x6a,0x74,0x69])])),await _0x21b366()?_0x3fbdb7()?_0x482c7d()?_0x20a69a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e3b52()?(_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a69a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a8ca4=_0x2ff11d(_0x20a69a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a69a([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a8ca4=_0x2ff11d(_0x20a69a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a69a([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3a8ca4=_0x2ff11d(_0x20a69a([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5491ee()):_0x20a69a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20a69a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20a69a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x255415){return _0x20a69a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x482c7d(){const _0x27236f=[_0x20a69a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20a69a([0x74,0x72,0x69,0x61,0x6c])][_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x414ab9/0x3e8:0xe10*_0x32c3ad;return _0x372fcb[_0x20a69a([0x65,0x78,0x70])]<_0x27236f;}function _0x3fbdb7(){const _0xf55823=_0x372fcb[_0x20a69a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf55823)return!0x1;if(_0xf55823[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x2a])))return!0x0;if(_0xf55823[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x54,0x43])))return!0x0;if(_0xf55823[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x52,0x54,0x43]))){if(_0x4d8965())return!0x0;if(_0x49d28c()||_0x19bbf2())return!0x0;}return!0x1;}function _0x5e3b52(){const _0x4ddc07=_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ddc07||0x0==_0x4ddc07[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2dfecc}=new URL(window[_0x20a69a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ddc07[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dfecc))return!0x0;const _0x4a76f3=_0x2dfecc[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e]));return _0x4ddc07[_0x20a69a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fdc20=>_0x1fdc20[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x2a])))[_0x20a69a([0x6d,0x61,0x70])](_0x41eab7=>_0x41eab7[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e])))[_0x20a69a([0x73,0x6f,0x6d,0x65])](_0x48e6ca=>_0x4a76f3[_0x20a69a([0x65,0x76,0x65,0x72,0x79])]((_0x1948f2,_0x2d7e9d)=>_0x48e6ca[_0x2d7e9d]===_0x1948f2||_0x48e6ca[_0x2d7e9d]===_0x20a69a([0x2a])));}function _0x5491ee(){return _0x3a8ca4&&_0x5a081e?new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x476c7d,_0x4cd3f2)=>{_0x3a8ca4[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x476c7d,_0x4cd3f2),_0x5a081e[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x59a92a=>{_0x59a92a!=_0x20a69a([0x56,0x61,0x6c,0x69,0x64])&&_0x476c7d(_0x59a92a);},_0x4cd3f2);}):_0x3a8ca4||_0x5a081e||_0x20a69a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19af06(_0x404061,_0x43cee2){return new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e77ab=>{if(_0x24c5c7())return _0x4e77ab(_0x20a69a([0x56,0x61,0x6c,0x69,0x64]));_0x2ffd13(),_0x5cc2f7[_0x20a69a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20a69a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x345141=!0x1;const _0x2af86e=_0x425cf6();function _0x172da6(_0x13b6e9){return!!_0x13b6e9&&(typeof _0x13b6e9===_0x20a69a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13b6e9===_0x20a69a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13b6e9[_0x20a69a([0x74,0x68,0x65,0x6e])]===_0x20a69a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13b6e9[_0x20a69a([0x63,0x61,0x74,0x63,0x68])]===_0x20a69a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc12f23(_0x3b66f6){_0x1b939f(_0x3b66f6)[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x13a884=>{if(!_0x13a884||_0x13a884[_0x20a69a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20a69a([0x6f,0x6b]))return _0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45d121(_0x3976cb(_0x2af86e+_0x43cee2))!=_0x13a884[_0x20a69a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20a69a([0x56,0x61,0x6c,0x69,0x64]);})[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x133ab2=>(_0x280eb7(),_0x133ab2),()=>{const _0x1f7c3f=_0xe50064();return null==_0x1f7c3f?(_0x280eb7(),_0x20a69a([0x56,0x61,0x6c,0x69,0x64])):_0x20a69a(_0x414ab9-_0x1f7c3f>(0x74c09abd^_0x183213)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x4e77ab)[_0x20a69a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e77ab(_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587076=0x50faf03d^_0x183213;function _0x280eb7(){const _0x5b414f=_0x20a69a([0x6c,0x6c,0x63,0x74,0x2d])+_0x45d121(_0x3976cb(_0x404061)),_0xfec5ef=_0x5cab14(_0x45d121(window[_0x20a69a([0x4d,0x61,0x74,0x68])][_0x20a69a([0x63,0x65,0x69,0x6c])](_0x414ab9/_0x587076)));window[_0x20a69a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a69a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b414f,_0xfec5ef);}function _0xe50064(){const _0x3e4b33=_0x20a69a([0x6c,0x6c,0x63,0x74,0x2d])+_0x45d121(_0x3976cb(_0x404061)),_0x4cab0f=window[_0x20a69a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a69a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e4b33);return _0x4cab0f?window[_0x20a69a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cab14(_0x4cab0f),0x10)*_0x587076:null;}function _0x1b939f(_0x27d375){return new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f15f7,_0x4d3020)=>{_0x27d375[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x1f15f7,_0x4d3020),window[_0x20a69a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d3020,0x50cdca7d^_0x183213);});}}_0x5cc2f7[_0x20a69a([0x6f,0x6e])](_0x20a69a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xefd352,_0x4e3c39)=>{if(_0x4e3c39[0x0]!=_0x404061)return _0x4e77ab(_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e3c39[0x1]={..._0x4e3c39[0x1],[_0x20a69a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2af86e};},{[_0x20a69a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a69a([0x68,0x69,0x67,0x68])}),_0x5cc2f7[_0x20a69a([0x6f,0x6e])](_0x20a69a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd65dd5=>{_0x172da6(_0xd65dd5[_0x20a69a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x345141=!0x0,_0xc12f23(_0xd65dd5[_0x20a69a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20a69a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a69a([0x6c,0x6f,0x77])}),_0x3454bc[_0x20a69a([0x74,0x68,0x65,0x6e])](()=>{_0x345141||_0x4e77ab(_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24c5c7(){return _0x5cc2f7[_0x20a69a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a69a([0x76,0x69,0x65,0x77])][_0x20a69a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20a69a([0x61,0x75,0x74,0x6f]);}function _0x2ffd13(){_0x5cc2f7[_0x20a69a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a69a([0x76,0x69,0x65,0x77])][_0x20a69a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20a69a([0x61,0x75,0x74,0x6f]);}}function _0x2ff11d(_0x5e1384){const _0x141a82=[new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45362d=>setTimeout(_0x45362d,0x50c52071^_0x183213)),_0x3454bc[_0x20a69a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe6cc=>{let _0x7fd360=0x0;_0x5cc2f7[_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a69a([0x6f,0x6e])](_0x20a69a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2164ec,_0x36b349)=>{_0x36b349[0x0][_0x20a69a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x7fd360++,_0x7fd360==(0x50cc1f45^_0x183213)&&(_0x2fe6cc(),_0x2164ec[_0x20a69a([0x6f,0x66,0x66])]());});}))];return window[_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20a69a([0x72,0x61,0x63,0x65])](_0x141a82)[_0x20a69a([0x74,0x68,0x65,0x6e])](()=>_0x5e1384);}async function _0x3899a5(){await _0x3454bc,_0x5cc2f7[_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a69a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34ede1,_0x5cc2f7[_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a69a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34ede1,_0x5cc2f7[_0x20a69a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d8965(){return _0xf9508a(_0x20a69a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x423601(_0x20a69a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20a69a([0x73,0x74,0x61,0x74,0x65])]==_0x20a69a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49d28c(){return _0xf9508a(_0x20a69a([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 _0x19bbf2(){return _0xf9508a(_0x20a69a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x170d12(_0x57d592){const _0xd1dc28=_0x29a793();_0x5cc2f7[_0xd1dc28]=_0x20a69a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x57d592,_0x57d592!=_0x20a69a([0x56,0x61,0x6c,0x69,0x64])&&_0x3899a5();}function _0x29a793(){const _0x58e6b5=window[_0x20a69a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20a69a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20a69a([0x6e,0x6f,0x77])]())[_0x20a69a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20a69a([0x2e]),'');let _0x16d493=_0x20a69a([0x6c]);for(let _0x367be2=0x0;_0x367be2<_0x58e6b5[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x367be2+=0x2){let _0x1b8c65=window[_0x20a69a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58e6b5[_0x20a69a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x367be2,_0x367be2+0x2));_0x1b8c65>=_0x721ba6[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b8c65-=_0x721ba6[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16d493+=_0x721ba6[_0x1b8c65];}return _0x16d493;}function _0x4d0dd9(){const _0x439a26=_0x599378[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e]));if(0x3!=_0x439a26[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x568a74(_0x439a26[0x1]);function _0x568a74(_0x399188){const _0x451385=_0x2678f0(_0x399188);return _0x451385&&_0x5eb062()?_0x451385:null;function _0x5eb062(){const _0x11c691=_0x451385[_0x20a69a([0x6a,0x74,0x69])],_0x238357=window[_0x20a69a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11c691[_0x20a69a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11c691[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d4893={..._0x451385,[_0x20a69a([0x6a,0x74,0x69])]:_0x11c691[_0x20a69a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11c691[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d4893[_0x20a69a([0x76,0x63])],_0x3976cb(_0x1d4893)==_0x238357;}}}async function _0x21b366(){let _0x5c98d5=!0x0;try{const _0x4f582f=_0x599378[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e])),[_0xd0f10d,_0x259971,_0x3fd487]=_0x4f582f;return _0x384356(_0xd0f10d),await _0x4aa3ef(_0xd0f10d,_0x259971,_0x3fd487),_0x5c98d5;}catch(_0x148a9b){return!0x1;}function _0x384356(_0x45e4b5){const _0x88d805=_0x2678f0(_0x45e4b5);_0x88d805&&_0x88d805[_0x20a69a([0x61,0x6c,0x67])]==_0x20a69a([0x45,0x53,0x32,0x35,0x36])||(_0x5c98d5=!0x1);}async function _0x4aa3ef(_0x106d8b,_0x5423f9,_0x52bd92){const _0x1d54df=window[_0x20a69a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20a69a([0x66,0x72,0x6f,0x6d])](_0x387f95(_0x52bd92),_0x569d49=>_0x569d49[_0x20a69a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26360e=new window[(_0x20a69a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20a69a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x106d8b+_0x20a69a([0x2e])+_0x5423f9),_0x5559a6=window[_0x20a69a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20a69a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5559a6)return;const _0x589714=await _0x5559a6[_0x20a69a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20a69a([0x6a,0x77,0x6b]),_0x16d570,{[_0x20a69a([0x6e,0x61,0x6d,0x65])]:_0x20a69a([0x45,0x43,0x44,0x53,0x41]),[_0x20a69a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20a69a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20a69a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5559a6[_0x20a69a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20a69a([0x6e,0x61,0x6d,0x65])]:_0x20a69a([0x45,0x43,0x44,0x53,0x41]),[_0x20a69a([0x68,0x61,0x73,0x68])]:{[_0x20a69a([0x6e,0x61,0x6d,0x65])]:_0x20a69a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x589714,_0x1d54df,_0x26360e)||(_0x5c98d5=!0x1);}}function _0x2678f0(_0x4ea014){return _0x4ea014[_0x20a69a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20a69a([0x65,0x79]))?JSON[_0x20a69a([0x70,0x61,0x72,0x73,0x65])](_0x387f95(_0x4ea014)):null;}function _0x387f95(_0x1b47e6){return window[_0x20a69a([0x61,0x74,0x6f,0x62])](_0x1b47e6[_0x20a69a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20a69a([0x2b]))[_0x20a69a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20a69a([0x2f])));}function _0x3976cb(_0x3feca8){let _0x3e3d72=0x1505;function _0x131a71(_0x4fd750){for(let _0x2687a4=0x0;_0x2687a4<_0x4fd750[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2687a4++){const _0x5e77c7=_0x4fd750[_0x20a69a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2687a4);_0x3e3d72=(_0x3e3d72<<0x5)+_0x3e3d72+_0x5e77c7,_0x3e3d72&=_0x3e3d72;}}function _0x4c61de(_0xab3c16){Array[_0x20a69a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xab3c16)?_0xab3c16[_0x20a69a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c61de):_0xab3c16&&typeof _0xab3c16==_0x20a69a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20a69a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xab3c16)[_0x20a69a([0x73,0x6f,0x72,0x74])]()[_0x20a69a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12a430,_0x5b6f9b])=>{_0x131a71(_0x12a430),_0x4c61de(_0x5b6f9b);}):_0x131a71(window[_0x20a69a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xab3c16));}return _0x4c61de(_0x3feca8),_0x3e3d72>>>0x0;}function _0x45d121(_0xc66dbd){return _0xc66dbd[_0x20a69a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20a69a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20a69a([0x30]));}function _0x5cab14(_0x153ba0){return _0x153ba0[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20a69a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20a69a([0x6a,0x6f,0x69,0x6e])]('');}function _0xf9508a(_0x1fe22b){return _0x5cc2f7[_0x20a69a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20a69a([0x68,0x61,0x73])](_0x1fe22b);}function _0x423601(_0x1f1191){return _0x5cc2f7[_0x20a69a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20a69a([0x67,0x65,0x74])](_0x1f1191);}function _0x34ede1(){}function _0x20a69a(_0x4895c5){return _0x4895c5['map'](_0xce6edf=>String['fromCharCode'](_0xce6edf))['join']('');}_0x170d12(await _0x3049fc());}(this);}set['adapter'](_0x435141){if(this['_adapter'])throw new _0x8f85e0('track-changes-adapter-already-set',this);this['_adapter']=_0x435141;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41a183=!0x1,toJSON:_0x307bf2=!0x1}={}){const _0x439760=[];for(const _0x287c61 of this['_suggestions']['values']())_0x41a183&&!_0x287c61['isInContent']||_0x439760['push'](_0x287c61);return _0x307bf2?_0x439760['map'](_0x5cda45=>_0x5cda45['toJSON']()):_0x439760;}['getSuggestion'](_0x2f571a){const _0x386398=this['_suggestions']['get'](_0x2f571a);if(!_0x386398)throw new _0x8f85e0('track-changes-suggestion-not-found',this);return _0x386398;}['hasSuggestion'](_0x1f8fe0){return this['_suggestions']['has'](_0x1f8fe0);}['addSuggestionData'](_0x2ae5a4){const {authorId:_0x138e1b,id:_0x4a2685,attributes:_0x36bd1f}=_0x2ae5a4,[_0x1c5c22,_0x68d9d0]=_0x2ae5a4['type']['split'](':'),_0x203368=this['_suggestions']['get'](_0x4a2685)||this['_createSuggestion'](_0x1c5c22,_0x68d9d0,_0x4a2685,_0x138e1b,_0x36bd1f);if(this['_addThreadToSuggestion'](_0x203368),this['_checkSuggestionCorrectness'](_0x203368,_0x1c5c22,_0x68d9d0||null,_0x138e1b),_0x203368['createdAt']=_0x2ae5a4['createdAt'],_0x203368['_isDataLoaded']=!0x0,_0x36bd1f&&_0x36bd1f['@external']){const _0x853d2=_0x36bd1f['@external'],_0x11db48=this['_getExternalAuthor'](_0x853d2['authorName']);_0x203368['authoredAt']=_0x853d2['createdAt'],_0x203368['author']=_0x11db48,_0x203368['isExternal']=!0x0;}else _0x203368['authoredAt']=_0x2ae5a4['createdAt'];switch(_0x2ae5a4['data']&&(_0x203368['data']=_0x2ae5a4['data']),_0x2ae5a4['attributes']&&(_0x203368['attributes']=_0x2ae5a4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x203368['_saved']=!0x0),this['_suggestionState']['get'](_0x203368)){case'notReady':this['_suggestionState']['set'](_0x203368,'dataReady');break;case'markerReady':_0x203368['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x203368])),this['_refreshSuggestionsChain'](new Set([_0x203368])),this['_suggestionState']['set'](_0x203368,'ready'),this['fire']('suggestionLoaded',_0x203368)):this['_suggestionState']['set'](_0x203368,'removed');}return _0x203368;}['acceptSuggestion'](_0x478709){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1aca03 of _0x478709['getAllAdjacentSuggestions']())_0x1aca03['accept']();});});}['discardSuggestion'](_0x39843c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x569a9d of _0x39843c['getAllAdjacentSuggestions']())_0x569a9d['discard']();});});}['enableCommand'](_0x1c0e84,_0xe18cc1){const _0x15c664=this['editor']['commands']['get'](_0x1c0e84);if(!_0x15c664)throw new _0x8f85e0('track-changes-command-not-found',this,{'commandName':_0x1c0e84});if(this['_enabledCommands']['has'](_0x15c664))throw new _0x8f85e0('track-changes-enable-command-twice',this,{'commandName':_0x1c0e84});this['_enabledCommands']['add'](_0x15c664),_0xe18cc1&&_0x15c664['on']('execute',(_0x3d600a,_0x17d5bd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x17d5bd['length']>0x0&&_0x17d5bd[_0x17d5bd['length']-0x1]&&_0x17d5bd[_0x17d5bd['length']-0x1]['forceDefaultExecution']?_0x17d5bd['pop']():(_0x3d600a['return']=_0xe18cc1((..._0x4e307c)=>_0x15c664['execute'](..._0x4e307c,{'forceDefaultExecution':!0x0}),..._0x17d5bd),_0x3d600a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3625ab){let _0x5e8b35,_0x4e8019;const _0x3d159e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e8b35=_0x3625ab();}catch(_0x5347b4){_0x4e8019=_0x5347b4;}return _0x3d159e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4e8019&&_0x8f85e0['rethrowUnexpectedError'](_0x4e8019,this),_0x5e8b35;}['markInsertion'](_0x4c079a,_0x63ee5e=null,_0x4072ec={}){if(_0x4c079a['isCollapsed'])return null;const _0x245f53=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x33dea0,meta:_0x12ab54}of this['_findSuggestions'](_0x4c079a,'insertion'))if(_0x12ab54['isOwn']){if(!_0x12ab54['isNextTo']){if(_0x12ab54['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x33dea0,_0x4072ec))continue;return _0x33dea0;}if(zt(_0x33dea0,_0x4072ec))return _0x33dea0;this['_breakSuggestionMarker'](_0x33dea0,_0x4c079a['start'],_0x4c079a['end']);break;}if(_0x63ee5e==_0x33dea0['subType']&&zt(_0x33dea0,_0x4072ec)){const _0x383e18=_0x33dea0['getFirstRange']();return _0x383e18['start']['isEqual'](_0x4c079a['end'])?this['_setSuggestionRange'](_0x33dea0,this['_model']['createRange'](_0x4c079a['start'],_0x383e18['end'])):this['_setSuggestionRange'](_0x33dea0,this['_model']['createRange'](_0x383e18['start'],_0x4c079a['end'])),_0x33dea0;}}const _0x5e3e41=_0x425cf6(),_0x5c1f09=_0x245f53['id'],_0x1170a7=_0x63ee5e?'insertion:'+_0x63ee5e:'insertion',_0x4bb295=this['_setSuggestionData']({'id':_0x5e3e41,'type':_0x1170a7,'createdAt':new Date(),'authorId':_0x5c1f09,'attributes':_0x4072ec});return this['_addSuggestionMarker'](_0x1170a7,_0x5e3e41,_0x5c1f09,_0x4c079a),_0x4bb295;}['markMultiRangeInsertion'](_0x11f9d5,_0x5cfe57='multi',_0x98c935={}){const _0x5072c8=this['editor']['plugins']['get']('Users')['me'],_0x4ec86c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cfe57,'join');for(const _0xef70d9 of this['getSuggestions']())if(_0xef70d9['author']['id']==_0x5072c8['id']&&'insertion'==_0xef70d9['type']&&_0xef70d9['subType']==_0x5cfe57&&zt(_0xef70d9,_0x98c935)&&(_0x4ec86c(_0xef70d9['getRanges'](),_0x11f9d5)||_0x4ec86c(_0x11f9d5,_0xef70d9['getRanges']()))){for(const _0x446ac1 of _0x11f9d5)_0xef70d9['addRange'](_0x446ac1);return _0xef70d9;}for(const {suggestion:_0x56a405,meta:_0x3a2483}of this['_findSuggestions'](_0x11f9d5,'insertion')){if(!_0x3a2483['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a2483['containsRangeInObject'])continue;if(!zt(_0x56a405,_0x98c935))continue;let _0xf38bad=!0x0;for(const _0x929571 of _0x56a405['getRanges']())for(const _0x15916f of _0x11f9d5)if(!_0x929571['containsRange'](_0x15916f)){_0xf38bad=!0x1;break;}if(_0xf38bad)return _0x56a405;}const _0x523aa9=_0x425cf6(),_0x32d3eb=_0x5072c8['id'],_0x179f6f='insertion:'+_0x5cfe57,_0x20b0d3=this['_setSuggestionData']({'id':_0x523aa9,'type':_0x179f6f,'createdAt':new Date(),'authorId':_0x32d3eb,'attributes':_0x98c935});for(const _0x4af4c1 of _0x11f9d5)this['_addSuggestionMarker'](_0x179f6f,_0x523aa9,_0x32d3eb,_0x4af4c1,u['getMultiRangeId']());return _0x20b0d3;}['markInlineFormat'](_0x313094,_0x2e1f7c,_0x27bb20=null,_0x2ee44f={}){if(_0x27bb20=_0x27bb20||Gt(_0x2e1f7c),_0x313094['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x250257=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27bb20,'accept');return this['forceDefaultExecution'](()=>_0x250257([_0x313094],_0x2e1f7c,_0x2ee44f)),null;}const _0x5bcea5=this['editor']['plugins']['get']('Users')['me'],_0x386bd3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4a6ead,meta:_0x2f47be}of this['_findSuggestions'](_0x313094,'insertion'))_0x2f47be['isOwn']&&!_0x2f47be['isInsideObject']&&_0x386bd3['push'](..._0x4a6ead['getRanges']());}const _0x34232e=function(_0x5b980d,_0x24803c){const _0x653f71=[];for(const _0x2dc5e2 of _0x24803c){const _0x3478d6=_0x5b980d['getIntersection'](_0x2dc5e2);_0x3478d6&&_0x653f71['push'](_0x3478d6);}return _0x653f71;}(_0x313094,_0x386bd3),_0x234ff0=function(_0x55be20,_0x5d9437){const _0x57b842=[_0x55be20];for(const _0x514ab4 of _0x5d9437){let _0x42906c=0x0;for(;_0x42906c<_0x57b842['length'];){const _0x5318e5=_0x57b842[_0x42906c]['getDifference'](_0x514ab4);_0x57b842['splice'](_0x42906c,0x1,..._0x5318e5),_0x42906c+=_0x5318e5['length'];}}return _0x57b842;}(_0x313094,_0x386bd3);_0x34232e['length']&&this['_model']['change'](()=>{for(const _0x188432 of _0x34232e){const _0x275a8d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27bb20,'accept');this['forceDefaultExecution'](()=>_0x275a8d([_0x188432],_0x2e1f7c,_0x2ee44f));}});for(const _0x11287a of _0x234ff0){let _0x2fbbcb=null,_0x2f95a2=_0x11287a['start'],_0x420c56=_0x11287a['end'];for(const {suggestion:_0x2cd0ad,meta:_0x40e38f}of this['_findSuggestions'](_0x11287a,'formatInline')){if(!_0x40e38f['isOwn'])continue;if(_0x2cd0ad['subType']!=_0x27bb20)continue;if(!zt(_0x2cd0ad,_0x2ee44f))continue;const _0x4915eb=_0x2cd0ad['getFirstRange']();if(_0x4915eb['containsRange'](_0x11287a,!0x0))return null;_0x2f95a2=_0x2f95a2['isBefore'](_0x4915eb['start'])?_0x2f95a2:_0x4915eb['start'],_0x420c56=_0x420c56['isAfter'](_0x4915eb['end'])?_0x420c56:_0x4915eb['end'],_0x2fbbcb?_0x4915eb['start']['isBefore'](_0x2fbbcb['getFirstRange']()['start'])?(_0x2fbbcb['removeMarkers'](),_0x2fbbcb=_0x2cd0ad):_0x2cd0ad['removeMarkers']():_0x2fbbcb=_0x2cd0ad;}const _0x4c2ffa=this['_model']['createRange'](_0x2f95a2,_0x420c56);if(_0x2fbbcb)this['_setSuggestionRange'](_0x2fbbcb,_0x4c2ffa);else{const _0x415083=_0x425cf6(),_0x14b9ba=_0x5bcea5['id'];this['_setSuggestionData']({'id':_0x415083,'type':'formatInline:'+_0x27bb20,'data':_0x2e1f7c,'createdAt':new Date(),'authorId':_0x14b9ba,'attributes':_0x2ee44f}),this['_addSuggestionMarker']('formatInline:'+_0x27bb20,_0x415083,_0x14b9ba,_0x4c2ffa);}}return null;}['markBlockFormat'](_0x41f1f0,_0x3dfc35,_0x3887c8=[],_0x131f1a=null,_0x4afcc6={}){_0x3dfc35['formatGroupId']||(_0x3dfc35['formatGroupId']=_0x3dfc35['commandName']),_0x3dfc35['multipleBlocks']=_0x41f1f0['is']('range'),_0x131f1a=_0x131f1a||Gt(_0x3dfc35);const _0x4256f7=_0x3887c8['map'](_0x224e86=>Jt(_0x224e86,this['_model'])),_0x5bffe1=_0x41f1f0['is']('range')?_0x41f1f0:Jt(_0x41f1f0,this['_model']);if('never'===this['_trackFormatChanges']){const _0xdcbf23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x131f1a,'accept');return this['forceDefaultExecution'](()=>_0xdcbf23([_0x5bffe1],_0x3dfc35,_0x4afcc6)),null;}_0x4256f7['push'](_0x5bffe1);let _0x590431=!0x0;for(const _0x3d044e of _0x4256f7)if(!this['_rangeIsInLocalUserInsertion'](_0x3d044e)){_0x590431=!0x1;break;}if(_0x590431&&'always'!==this['_trackFormatChanges']){const _0x4cac18=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x131f1a,'accept');return this['forceDefaultExecution'](()=>_0x4cac18([_0x5bffe1],_0x3dfc35,_0x4afcc6)),null;}let _0x3cad8e=null,_0x3eb8f9=_0x5bffe1['start'],_0x1f7a93=_0x5bffe1['end'];for(const {suggestion:_0x2d6334,meta:_0x1cbd85}of this['_findSuggestions'](_0x5bffe1,'formatBlock')){if(!_0x1cbd85['isOwn'])continue;if(_0x1cbd85['isNextTo']||_0x1cbd85['containsRangeInObject']||_0x1cbd85['isInsideObject'])continue;if(_0x2d6334['data']['formatGroupId']!=_0x3dfc35['formatGroupId'])continue;if(!zt(_0x2d6334,_0x4afcc6))continue;const _0x33b161=_0x2d6334['getFirstRange']();if(_0x2d6334['subType']==_0x131f1a){if(_0x33b161['containsRange'](_0x5bffe1,!0x0))return null;_0x3eb8f9=_0x3eb8f9['isBefore'](_0x33b161['start'])?_0x3eb8f9:_0x33b161['start'],_0x1f7a93=_0x1f7a93['isAfter'](_0x33b161['end'])?_0x1f7a93:_0x33b161['end'],_0x3cad8e?_0x33b161['start']['isBefore'](_0x3cad8e['getFirstRange']()['start'])?(_0x3cad8e['removeMarkers'](),_0x3cad8e=_0x2d6334):_0x2d6334['removeMarkers']():_0x3cad8e=_0x2d6334;}else{const _0xa4757b=_0x5bffe1['getIntersection'](_0x33b161);this['_cutOutSuggestionMarker'](_0x2d6334,_0xa4757b);}}const _0x40208e=this['editor']['plugins']['get']('Users')['me'],_0x50ad68=_0x425cf6(),_0x33e46d=_0x40208e['id'];if(_0x3cad8e)return this['_setSuggestionRange'](_0x3cad8e,this['_model']['createRange'](_0x3eb8f9,_0x1f7a93)),_0x3cad8e;{const _0x5445c9=this['_setSuggestionData']({'id':_0x50ad68,'type':'formatBlock:'+_0x131f1a,'data':_0x3dfc35,'createdAt':new Date(),'authorId':_0x33e46d,'attributes':_0x4afcc6});return this['_addSuggestionMarker']('formatBlock:'+_0x131f1a,_0x50ad68,_0x33e46d,this['_model']['createRange'](_0x3eb8f9,_0x1f7a93)),_0x5445c9;}}['markMultiRangeBlockFormat'](_0x419337,_0x25f008,_0x26c49d=[],_0x2a7f8e=null,_0x2d3222={}){_0x25f008['formatGroupId']||(_0x25f008['formatGroupId']=_0x25f008['commandName']);const _0xac79fe=_0x419337[0x0];_0x25f008['multipleBlocks']=_0xac79fe['is']('range'),_0x2a7f8e=_0x2a7f8e||Gt(_0x25f008);const _0x4a724c=_0x26c49d['map'](_0x35683d=>Jt(_0x35683d,this['_model'])),_0x24a5f6=_0xac79fe['is']('range')?_0x419337:_0x419337['map'](_0x196fdc=>Jt(_0x196fdc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x39fa8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a7f8e,'accept');return this['forceDefaultExecution'](()=>_0x39fa8a(_0x24a5f6,_0x25f008,_0x2d3222)),null;}_0x4a724c['push'](..._0x24a5f6);let _0x444f00=!0x0;for(const _0x5d6c7d of _0x4a724c)if(!this['_rangeIsInLocalUserInsertion'](_0x5d6c7d)){_0x444f00=!0x1;break;}if(_0x444f00&&'always'!==this['_trackFormatChanges']){const _0x364cb9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a7f8e,'accept');return this['forceDefaultExecution'](()=>_0x364cb9(_0x24a5f6,_0x25f008,_0x2d3222)),null;}const _0x1c3212=this['editor']['plugins']['get']('Users')['me'];for(const _0x25764f of this['getSuggestions']()){if(_0x25764f['author']['id']!=_0x1c3212['id'])continue;if('formatBlock'!=_0x25764f['type']||_0x25764f['data']['formatGroupId']!=_0x25f008['formatGroupId'])continue;if(!zt(_0x25764f,_0x2d3222))continue;const _0x542c75=_0x25764f['subType']==_0x2a7f8e;for(let _0x1a3fa4=0x0;_0x1a3fa4<_0x24a5f6['length'];_0x1a3fa4++){const _0x278e53=_0x24a5f6[_0x1a3fa4];for(const _0x313e50 of _0x25764f['getMarkers']()){const _0x2abb6d=_0x313e50['getRange']();if(_0x278e53['isEqual'](_0x2abb6d)){_0x542c75?(_0x24a5f6['splice'](_0x1a3fa4,0x1),_0x1a3fa4--):_0x25764f['removeMarker'](_0x313e50['name']);break;}}}}if(0x0==_0x24a5f6['length'])return null;const _0x3d483d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a7f8e,'join');for(const _0x11c2cb of this['getSuggestions']())if(_0x11c2cb['author']['id']==_0x1c3212['id']&&'formatBlock'==_0x11c2cb['type']&&_0x11c2cb['data']['formatGroupId']==_0x25f008['formatGroupId']&&_0x11c2cb['subType']==_0x2a7f8e&&zt(_0x11c2cb,_0x2d3222)&&(_0x3d483d(_0x11c2cb['getRanges'](),_0x24a5f6)||_0x3d483d(_0x24a5f6,_0x11c2cb['getRanges']()))){for(const _0x5e5c3c of _0x24a5f6)_0x11c2cb['addRange'](_0x5e5c3c);return _0x11c2cb;}const _0x513372=_0x425cf6(),_0x1fd332=_0x1c3212['id'],_0x5bf126='formatBlock:'+_0x2a7f8e,_0x4f1724=this['_setSuggestionData']({'id':_0x513372,'type':_0x5bf126,'data':_0x25f008,'createdAt':new Date(),'authorId':_0x1fd332,'attributes':_0x2d3222});for(const _0x160c2c of _0x24a5f6)this['_addSuggestionMarker'](_0x5bf126,_0x513372,_0x1fd332,_0x160c2c,u['getMultiRangeId']());return _0x4f1724;}['markDeletion'](_0x542111,_0x4a0523=null,_0xa39652={}){if(_0x542111['isCollapsed'])return null;const _0x5373c5=this['editor']['plugins']['get']('Users')['me'],_0x3bf5e2=new _0x5103d1(_0x542111['start'],_0x542111['end']);for(const {suggestion:_0x164f9f,meta:_0x1b190d}of this['_findSuggestions'](_0x3bf5e2,'insertion'))if(_0x1b190d['isOwn']&&!_0x1b190d['isNextTo']){if(_0x164f9f['isMultiRange']){const _0x3e765b=_0x164f9f['getRanges']()['filter'](_0x3fb901=>'$graveyard'!=_0x3fb901['root']['rootName']);_0x3e765b['every'](_0x36f716=>_0x3bf5e2['containsRange'](_0x36f716,!0x0))&&_0x164f9f['discard']();if(_0x3e765b['some'](_0x382420=>_0x382420['containsRange'](_0x3bf5e2,!0x0))){const _0x59f727=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a0523,'accept');return this['forceDefaultExecution'](()=>_0x59f727([_0x3bf5e2],null,_0xa39652)),null;}}else{const _0x36419f=_0x3bf5e2['getIntersection'](_0x164f9f['getFirstRange']());null!==_0x36419f&&_0x164f9f['_onDiscard']([_0x36419f],null,_0xa39652);}}if(_0x3bf5e2['detach'](),_0x3bf5e2['isCollapsed']||'$graveyard'==_0x3bf5e2['root']['rootName'])return null;let _0x448264=null,_0x426a32=_0x3bf5e2['start'],_0xfaeb48=_0x3bf5e2['end'];const _0x54c69f=this['_findSuggestions'](_0x3bf5e2,'deletion');for(const {suggestion:_0x2dde8d,meta:_0x2906fd}of _0x54c69f){const _0x446924=this['_model']['createRange'](_0x426a32,_0xfaeb48);if(_0x2906fd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2906fd['containsRangeInObject']&&!_0x2906fd['isInsideObject'])){if(_0x2dde8d['isMultiRange']){if(!zt(_0x2dde8d,_0xa39652))continue;let _0x33fdda=!0x0;for(const _0x183093 of _0x2dde8d['getRanges']()){if(_0x183093['containsRange'](_0x446924,!0x0))return _0x2dde8d;_0x446924['containsRange'](_0x183093)||(_0x33fdda=!0x1);}_0x33fdda&&_0x2dde8d['discard']();}else{const _0x2848eb=_0x2dde8d['getFirstRange']();if(_0x2848eb['containsRange'](_0x446924,!0x0))return _0x2dde8d;if(!zt(_0x2dde8d,_0xa39652)){_0x446924['containsRange'](_0x2848eb)?_0x2dde8d['removeMarkers']():_0x2848eb['containsPosition'](_0x426a32)?_0x426a32=_0x2848eb['end']:_0x2848eb['containsPosition'](_0xfaeb48)&&(_0xfaeb48=_0x2848eb['start']);continue;}_0x426a32=_0x426a32['isBefore'](_0x2848eb['start'])?_0x426a32:_0x2848eb['start'],_0xfaeb48=_0xfaeb48['isAfter'](_0x2848eb['end'])?_0xfaeb48:_0x2848eb['end'],_0xa39652=Object['assign']({},_0x2dde8d['attributes']),_0x448264?_0x2848eb['start']['isBefore'](_0x448264['getFirstRange']()['start'])?(_0x448264['removeMarkers'](),_0x448264=_0x2dde8d):_0x2dde8d['removeMarkers']():_0x448264=_0x2dde8d;}}}if(_0x448264)return this['_setSuggestionRange'](_0x448264,this['_model']['createRange'](_0x426a32,_0xfaeb48)),_0x448264;{const _0x641e1b=_0x425cf6(),_0x564679=this['_model']['createRange'](_0x426a32,_0xfaeb48),_0x3e9cb2=_0x5373c5['id'],_0x4d1c7e=_0x4a0523?'deletion:'+_0x4a0523:'deletion',_0x57f766=this['_setSuggestionData']({'id':_0x641e1b,'type':_0x4d1c7e,'createdAt':new Date(),'authorId':_0x3e9cb2,'attributes':_0xa39652});return this['_addSuggestionMarker'](_0x4d1c7e,_0x641e1b,_0x3e9cb2,_0x564679),_0x57f766;}}['markMultiRangeDeletion'](_0x32ce96,_0x102b4c='multi',_0xe88df1={}){const _0x7ea43f=this['editor']['plugins']['get']('Users')['me'],_0x2fcd18=_0x32ce96['map'](_0x1639b7=>new _0x5103d1(_0x1639b7['start'],_0x1639b7['end'])),_0x5d84ff=new Set();for(const {suggestion:_0x14d802,meta:_0x4bc850}of this['_findSuggestions'](_0x2fcd18,'insertion'))_0x4bc850['isOwn']&&!_0x4bc850['isNextTo']&&_0x5d84ff['add'](_0x14d802);for(const _0x3b8391 of _0x5d84ff)if(_0x3b8391['isMultiRange']){const _0x23fbde=_0x3b8391['getRanges']();(!_0x3b8391['attributes']||!_0x3b8391['attributes']['skipNestingCheck'])&&(_0x23fbde['every'](_0x43f061=>_0x2fcd18['some'](_0x36ff23=>_0x36ff23['containsRange'](_0x43f061,!0x0)))&&_0x3b8391['discard']());if(_0x2fcd18['every'](_0x419933=>_0x23fbde['some'](_0x5ad3de=>_0x5ad3de['containsRange'](_0x419933,!0x0)))){const _0x2d8484=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x102b4c,'accept');return this['forceDefaultExecution'](()=>_0x2d8484(_0x32ce96,null,_0xe88df1)),null;}}else{const _0x48447f=_0x3b8391['getFirstRange']();_0x2fcd18['some'](_0xc7ed82=>_0xc7ed82['containsRange'](_0x48447f,!0x0))&&_0x3b8391['discard']();if(_0x2fcd18['every'](_0x5de477=>_0x48447f['containsRange'](_0x5de477,!0x0))){const _0x494d69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x102b4c,'accept');return this['forceDefaultExecution'](()=>_0x494d69(_0x2fcd18,null,_0xe88df1)),null;}}const _0x4d93ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x102b4c,'join');let _0x953f41=null;for(const _0x31f06d of this['getSuggestions']())if(_0x31f06d['author']['id']==_0x7ea43f['id']&&_0x31f06d['isInContent']&&'deletion'==_0x31f06d['type']&&_0x31f06d['subType']==_0x102b4c&&zt(_0x31f06d,_0xe88df1)&&(_0x4d93ea(_0x31f06d['getRanges'](),_0x2fcd18)||_0x4d93ea(_0x2fcd18,_0x31f06d['getRanges']()))){if(_0x953f41){if(_0x31f06d['commentThread']&&_0x31f06d['commentThread']['length'])continue;for(const _0x411583 of _0x31f06d['getRanges']())_0x953f41['isIntersectingWithRange'](_0x411583)||_0x953f41['addRange'](_0x411583);_0x31f06d['removeMarkers']();}else{_0x953f41=_0x31f06d;for(const _0x501ae8 of _0x2fcd18)_0x31f06d['isIntersectingWithRange'](_0x501ae8)||_0x31f06d['addRange'](_0x501ae8);}}if(_0x953f41)return _0x953f41;_0x5d84ff['clear']();for(const {suggestion:_0x54cd8e,meta:_0x2f22c6}of this['_findSuggestions'](_0x2fcd18,'deletion'))_0x2f22c6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f22c6['containsRangeInObject']&&!_0x2f22c6['isInsideObject'])&&zt(_0x54cd8e,_0xe88df1)&&_0x5d84ff['add'](_0x54cd8e);for(const _0x56af6a of _0x5d84ff){const _0x5ec8a8=_0x56af6a['getRanges']();if(!_0xe88df1||!_0xe88df1['skipNestingCheck']){if(_0x2fcd18['every'](_0x105617=>_0x5ec8a8['some'](_0x5b75a3=>_0x5b75a3['containsRange'](_0x105617,!0x0))))return _0x56af6a;}(!_0x56af6a['attributes']||!_0x56af6a['attributes']['skipNestingCheck'])&&(_0x5ec8a8['every'](_0xbe9c2=>_0x2fcd18['some'](_0x4d6d4d=>_0x4d6d4d['containsRange'](_0xbe9c2,!0x0)))&&_0x56af6a['discard']());}const _0x39da69=_0x425cf6(),_0x3d7893=_0x7ea43f['id'],_0x35f2d8='deletion:'+_0x102b4c,_0x11c93e=this['_setSuggestionData']({'id':_0x39da69,'type':_0x35f2d8,'createdAt':new Date(),'authorId':_0x3d7893,'attributes':_0xe88df1});for(const _0x1bf927 of _0x2fcd18)_0x1bf927['detach'](),_0x1bf927['isCollapsed']||'$graveyard'==_0x1bf927['root']['rootName']||this['_addSuggestionMarker'](_0x35f2d8,_0x39da69,_0x3d7893,_0x1bf927,u['getMultiRangeId']());return _0x11c93e;}['markAttributeChange'](_0x34211a,_0x1aa392,_0x4f70f6,_0x12b99a,_0x2db021){if(_0x34211a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24d625=this['editor']['plugins']['get']('Users')['me']['id'],_0x110a2c=Array['from'](this['_suggestions']['values']())['filter'](_0x58fc3b=>'attribute'==_0x58fc3b['type']&&_0x58fc3b['data']['key']==_0x1aa392&&_0x58fc3b['isIntersectingWithRange'](_0x34211a));if('default'===this['_trackFormatChanges']){const _0x312cc8=this['_findSuggestions'](_0x34211a,'insertion')['filter'](({meta:_0x5d40fa})=>_0x5d40fa['isOwn']&&!_0x5d40fa['isInsideObject']&&!_0x5d40fa['isNextTo'])['map'](({suggestion:_0x195fe8})=>_0x195fe8);_0x110a2c['unshift'](..._0x312cc8);}const _0x1ce96a=new Map([[_0x34211a,_0x4f70f6]]);for(const _0x105db1 of _0x110a2c){const _0x1182d0='attribute'==_0x105db1['type']?_0x105db1['data']['oldValue']:void 0x0,_0x55815a=_0x105db1['getFirstRange'](),_0x37af74=Array['from'](_0x1ce96a['keys']())['find'](_0x3611c9=>_0x3611c9['isIntersecting'](_0x55815a));if(!_0x37af74)continue;const _0x301f7d=_0x37af74['getDifference'](_0x55815a);this['_isBlockAttribute'](_0x1aa392)&&'insertion'==_0x105db1['type']&&0x0!=_0x301f7d['length']||(_0x1ce96a['delete'](_0x37af74),_0x301f7d['forEach'](_0x55646f=>{_0x1ce96a['set'](_0x55646f,_0x4f70f6);}),'insertion'!=_0x105db1['type']&&_0x1182d0!=_0x12b99a&&_0x1ce96a['set'](_0x37af74['getIntersection'](_0x55815a),_0x1182d0));}const _0x7bbad5=[];for(const [_0x58aa50,_0x50796d]of _0x1ce96a){const _0x5b4af8=_0x425cf6(),_0x49ed9c={'key':_0x1aa392,'oldValue':_0x50796d,'newValue':_0x12b99a};_0x1aa392['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':_0x1aa392});const _0x54f79b=('attribute:'+(_0x1aa392+'|'+Gt({'newValue':_0x12b99a})))['substring'](0x0,0x3c),_0x39b57e=this['_setSuggestionData']({'id':_0x5b4af8,'type':_0x54f79b,'data':_0x49ed9c,'createdAt':new Date(),'authorId':_0x24d625,'attributes':_0x2db021});_0x7bbad5['push'](_0x39b57e),this['_addSuggestionMarker'](_0x54f79b,_0x5b4af8,_0x24d625,_0x58aa50);}return _0x7bbad5;}['enableDefaultAttributesIntegration'](_0x1b3626){this['enableCommand'](_0x1b3626,(_0x348ccc,..._0x278bfb)=>{this['_recordAttributeChanges'](()=>{_0x348ccc(..._0x278bfb);});});}['registerBlockAttribute'](_0x4eb447){this['_blockAttributeKeys']['add'](_0x4eb447);}['registerInlineAttribute'](_0x250084){this['_inlineAttributeKeys']['add'](_0x250084);}['_getAttributeKey'](_0x16139e){return'attribute'==_0x16139e['type']?_0x16139e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2cab15,_0x8b914b){const _0x2d7095=_0x2cab15['getFirstMarker']();this['_model']['change'](_0x224ead=>{_0x224ead['updateMarker'](_0x2d7095,{'range':_0x8b914b});});}['_addThreadToSuggestion'](_0x5b2b5f){const _0x872b14=_0x5b2b5f['id'],_0x92fba6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x872b14)||this['_commentsRepository']['addCommentThread']({'channelId':_0x92fba6,'threadId':_0x872b14,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a211c=this['_commentsRepository']['getCommentThread'](_0x872b14);_0x2a211c['unbind']('isRemovable'),_0x2a211c['isRemovable']=!0x1,_0x5b2b5f['commentThread']=_0x2a211c;}['_checkSuggestionCorrectness'](_0xcd59ac,_0x3b6bca,_0x26702a,_0x48be09){if(_0xcd59ac['type']!=_0x3b6bca||_0xcd59ac['subType']!=_0x26702a||_0xcd59ac['creator']['id']!=_0x48be09)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x8f85e0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x44ee00,_0x27f56a){const _0x2b207e=_0x44ee00['getFirstRange']();if(_0x27f56a['isEqual'](_0x2b207e))_0x44ee00['removeMarkers']();else{if(_0x2b207e['containsRange'](_0x27f56a)){const _0xc0cca=this['_model']['createPositionAt'](_0x27f56a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44ee00,this['_model']['createRange'](_0x2b207e['start'],_0xc0cca));const _0x190021=_0x425cf6(),_0x56ac24=_0x44ee00['creator']['id'],_0x23a2f2=_0x44ee00['type']+':'+_0x44ee00['subType'];this['_setSuggestionData']({'id':_0x190021,'type':_0x23a2f2,'createdAt':new Date(),'authorId':_0x56ac24,'data':_0x44ee00['data'],'attributes':_0x44ee00['attributes']});const _0x3bd2ca=this['_model']['createPositionAt'](_0x27f56a['end']['parent'],'after'),_0x1f82ec=this['_model']['createRange'](_0x3bd2ca,_0x2b207e['end']);this['_addSuggestionMarker'](_0x23a2f2,_0x190021,_0x56ac24,_0x1f82ec);}else{if(_0x2b207e['containsPosition'](_0x27f56a['start'])){const _0x593f52=this['_model']['createPositionAt'](_0x27f56a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44ee00,this['_model']['createRange'](_0x2b207e['start'],_0x593f52));}else{const _0x59b022=this['_model']['createPositionAt'](_0x27f56a['end']['parent'],'after');this['_setSuggestionRange'](_0x44ee00,this['_model']['createRange'](_0x59b022,_0x2b207e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4db931){for(const {suggestion:_0x44f3d4,meta:_0x578be5}of this['_findSuggestions'](_0x4db931,'insertion')){if(!_0x578be5['isOwn'])continue;const _0x2fad43=_0x44f3d4['getRanges']();for(const _0x2b3c38 of _0x2fad43)if(!_0x4db931['getDifference'](_0x2b3c38)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xb1dfb3){const _0x8c6ed=this['editor']['plugins']['get']('Users')['getUser'](_0xb1dfb3);if(!_0x8c6ed)throw new _0x8f85e0('track-changes-user-not-found',this);return _0x8c6ed;}['_getExternalAuthor'](_0x5f595a){const _0x186a60=this['editor']['plugins']['get']('Users'),_0x4768ad=_0x3aa329('external:'+_0x5f595a),_0x593894=_0x186a60['getUser'](_0x4768ad);return _0x593894||_0x186a60['addUser']({'id':_0x4768ad,'name':_0x5f595a});}['_createSuggestion'](_0x488003,_0x368f1d,_0x2b1b58,_0x4b230d,_0x3f0218){const _0x2ecfa3=this['_getAuthorFromId'](_0x4b230d),_0xac9d1c=this['_suggestionFactory']['buildSuggestion'](_0x488003,_0x368f1d,_0x2b1b58,_0x2ecfa3,_0x3f0218,_0x23bb9a=>{this['_updateSuggestionData'](_0x2b1b58,{'attributes':_0x23bb9a});const _0x3523b4=this['getSuggestion'](_0x2b1b58);this['_joinWithAdjacentSuggestions'](new Set([_0x3523b4])),this['_refreshSuggestionsChain'](new Set([_0x3523b4]));});return this['listenTo'](_0xac9d1c,'accept',()=>{this['_updateSuggestionData'](_0x2b1b58,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xac9d1c,'discard',()=>{this['_updateSuggestionData'](_0x2b1b58,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b1b58,_0xac9d1c),this['_suggestionState']['set'](_0xac9d1c,'notReady'),_0xac9d1c;}['_splitMarkerName'](_0x1f7d87){const _0x50d91a=_0x1f7d87['split'](':');return{'group':_0x50d91a[0x0],'type':_0x50d91a[0x1],'subType':_0x50d91a['length']>=0x5?_0x50d91a[0x2]:null,'id':_0x50d91a['length']<0x5?_0x50d91a[0x2]:_0x50d91a[0x3],'authorId':_0x50d91a['length']<0x5?_0x50d91a[0x3]:_0x50d91a[0x4],'markerCount':0x6==_0x50d91a['length']?_0x50d91a[0x5]:null};}['_breakSuggestionMarker'](_0x1cccd4,_0x2b14bd,_0x19f3f8){const _0x41ac3d=_0x1cccd4['getFirstRange'](),_0x2aea40=_0x41ac3d['start'],_0xb19b1a=_0x41ac3d['end'];this['_setSuggestionRange'](_0x1cccd4,this['_model']['createRange'](_0x2aea40,_0x2b14bd));const _0x5e68de=_0x425cf6(),_0xf62a1=_0x1cccd4['creator']['id'],_0x3fc13b=_0x1cccd4['type']+(_0x1cccd4['subType']?':'+_0x1cccd4['subType']:'');this['_setSuggestionData']({'id':_0x5e68de,'type':_0x3fc13b,'createdAt':new Date(),'authorId':_0xf62a1,'originalSuggestionId':_0x1cccd4['id'],'attributes':_0x1cccd4['attributes'],'data':_0x1cccd4['data']});const _0x94a266=this['_getAttributeKey'](_0x1cccd4);('formatBlock'==_0x1cccd4['type']||_0x94a266&&this['_isBlockAttribute'](_0x94a266))&&(_0x19f3f8=this['_model']['createPositionBefore'](_0x19f3f8['parent'])),this['_addSuggestionMarker'](_0x3fc13b,_0x5e68de,_0xf62a1,this['_model']['createRange'](_0x19f3f8,_0xb19b1a));}['_findSuggestions'](_0x19d782,_0x287d78=null){const _0xee87f9=[],_0x571b9e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x19d782)||(_0x19d782=[_0x19d782]);for(const _0xd62746 of this['getSuggestions']()){if(!_0xd62746['isInContent'])continue;if(_0x287d78&&_0xd62746['type']!=_0x287d78)continue;let _0x3f55a7=!0x1;for(const _0x6cad86 of _0xd62746['getRanges']()){for(const _0x6d4a60 of _0x19d782){const _0x5506b5=_0x6d4a60['start']['isEqual'](_0x6cad86['end'])||_0x6d4a60['end']['isEqual'](_0x6cad86['start']);if(_0x5506b5||_0x6d4a60['getIntersection'](_0x6cad86)){const _0x18b253=_0x6d4a60['containsRange'](_0x6cad86)&&Ut(this['_model']['schema'],_0x6cad86['start'],_0x6d4a60),_0x10ec03=_0x6cad86['containsRange'](_0x6d4a60)&&Ut(this['_model']['schema'],_0x6d4a60['start'],_0x6cad86);_0xee87f9['push']({'suggestion':_0xd62746,'meta':{'isOwn':_0x571b9e==_0xd62746['author'],'isNextTo':_0x5506b5,'isInsideObject':_0x18b253,'containsRangeInObject':_0x10ec03}}),_0x3f55a7=!0x0;break;}}if(_0x3f55a7)break;}}return _0xee87f9;}['_addSuggestionMarker'](_0x5e5848,_0x2a6203,_0x3d3a54,_0x4f7756,_0x480c06){this['_model']['change'](_0x3e1d60=>{let _0x2db3cf='suggestion:'+_0x5e5848+':'+_0x2a6203+':'+_0x3d3a54;_0x480c06&&(_0x2db3cf=_0x2db3cf+':'+_0x480c06),_0x3e1d60['addMarker'](_0x2db3cf,{'range':_0x4f7756,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1f3cb3){const _0x3e4c16=_0x1f3cb3['previous'],_0x375c77=_0x1f3cb3['next'];_0x1f3cb3['previous']=null,_0x1f3cb3['next']=null,null!=_0x3e4c16&&_0x3e4c16['next']==_0x1f3cb3&&(_0x3e4c16['next']=_0x375c77),null!=_0x375c77&&_0x375c77['previous']==_0x1f3cb3&&(_0x375c77['previous']=_0x3e4c16),'ready'==this['_suggestionState']['get'](_0x1f3cb3)&&(this['_suggestionState']['set'](_0x1f3cb3,'removed'),this['fire']('suggestionUnloaded',_0x1f3cb3,_0x3e4c16,_0x375c77));}['_setSuggestionData'](_0x31fe92){const _0x4d951f=_0x31fe92['id'],_0x58a4bd=this['addSuggestionData'](_0x31fe92);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x11b9bb=this['editor']['plugins']['get']('PendingActions'),_0x45088b=_0x58a4bd['hasComments'],_0x43562a=_0x58a4bd['subType']?_0x58a4bd['type']+':'+_0x58a4bd['subType']:_0x58a4bd['type'],_0x1c4b84=this['editor']['locale'],_0x220a17=_0x11b9bb['add'](o(_0x1c4b84,'PENDING_ACTION_SUGGESTION')),_0x459998={'id':_0x4d951f,'type':_0x43562a,'hasComments':_0x45088b,'data':_0x31fe92['data']||null,'originalSuggestionId':_0x31fe92['originalSuggestionId']||null,'attributes':_0x58a4bd['attributes']};this['_adapter']['addSuggestion'](_0x459998)['then'](_0x6b77a4=>{_0x58a4bd['_saved']=!0x0,_0x11b9bb['remove'](_0x220a17),_0x6b77a4&&_0x6b77a4['createdAt']&&(this['_suggestions']['get'](_0x4d951f)['createdAt']=_0x6b77a4['createdAt']);})['catch'](_0x2fd35a=>{throw _0x28fa34('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58a4bd['discard']();}),_0x58a4bd['stopListening'](),this['_suggestions']['delete'](_0x58a4bd['id']),this['_suggestionState']['delete'](_0x58a4bd),_0x2fd35a;});}return _0x58a4bd;}['_isBlockAttribute'](_0x412469){return this['_blockAttributeKeys']['has'](_0x412469);}['_updateSuggestionData'](_0x1373fe,_0x5d2e51){const _0x224062=this['editor']['plugins']['get']('PendingActions'),_0x24e770=this['getSuggestion'](_0x1373fe);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x24e770['_saved']){const _0x8b29f5=_0x224062['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1373fe,_0x5d2e51)['then'](()=>{_0x224062['remove'](_0x8b29f5);});}else _0x24e770['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1373fe,_0x5d2e51);});}}['_getSuggestionData'](_0x179cf0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x8f85e0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x179cf0);}['_handleNewSuggestionMarker'](_0x5d8cfd){const {id:_0x4d7656,type:_0x4c6e69,subType:_0x3357b5,authorId:_0x1678b5}=this['_splitMarkerName'](_0x5d8cfd),_0x2fcef9=this['_suggestions']['get'](_0x4d7656)||this['_createSuggestion'](_0x4c6e69,_0x3357b5,_0x4d7656,_0x1678b5,{});switch(this['_checkSuggestionCorrectness'](_0x2fcef9,_0x4c6e69,_0x3357b5,_0x1678b5),this['_suggestionState']['get'](_0x2fcef9)){case'notReady':this['_getSuggestionData'](_0x4d7656)['then'](_0x15122b=>{let _0x108220=Promise['resolve']();_0x15122b['hasComments']&&(_0x108220=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d7656})),_0x108220['then'](()=>{this['addSuggestionData'](_0x15122b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2fcef9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d7656,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2fcef9,'ready'),this['fire']('suggestionLoaded',_0x2fcef9);break;case'ready':this['fire']('suggestionChanged',_0x2fcef9);}return _0x2fcef9['addMarkerName'](_0x5d8cfd),_0x2fcef9;}['_refreshSuggestionsChain'](_0x366794){const _0x1c6681=Array['from'](_0x366794),_0x32b106=_0x1c6681['filter'](_0x22e907=>'attribute'==_0x22e907['type']);this['_refreshAttributeSuggestionsChain'](_0x32b106);const _0x10f713=_0x1c6681['filter'](_0x3813e9=>!_0x3813e9['isMultiRange']&&'attribute'!=_0x3813e9['type']),_0x40c385=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2683e3=>!_0x2683e3['isMultiRange']&&'attribute'!=_0x2683e3['type']),_0x5d2362=_0x40c385['filter'](_0x4d216a=>!_0x366794['has'](_0x4d216a)),_0x6c6047=new Map(_0x40c385['map'](_0x18b5d7=>[_0x18b5d7,this['_suggestionFactory']['getSuggestionCallback'](_0x18b5d7['type'],_0x18b5d7['subType'],'chain')])),_0x1c7c5a=new Map(_0x40c385['map'](_0x4695a7=>[_0x4695a7,_0x4695a7['getFirstRange']()])),_0x2a0678=new Set(),_0x49b44f=new Set();for(let _0x41d4b1=0x0;_0x41d4b1<_0x10f713['length'];_0x41d4b1++)_0x5a0814(_0x10f713[_0x41d4b1],_0x10f713,_0x41d4b1+0x1);for(let _0x49f1b1=0x0;_0x49f1b1<_0x10f713['length'];_0x49f1b1++)_0x5a0814(_0x10f713[_0x49f1b1],_0x5d2362,0x0);const _0x5c1cf9=new Set();for(let _0x58ecd9=0x0;_0x58ecd9<_0x10f713['length'];_0x58ecd9++){const _0x5552b9=_0x10f713[_0x58ecd9];!_0x49b44f['has'](_0x5552b9)&&_0x5552b9['previous']&&(_0x5c1cf9['add'](_0x5552b9['previous']),_0x5552b9['previous']['next']===_0x5552b9&&(_0x5552b9['previous']['next']=null),_0x5552b9['previous']=null),!_0x2a0678['has'](_0x5552b9)&&_0x5552b9['next']&&(_0x5c1cf9['add'](_0x5552b9['next']),_0x5552b9['next']['previous']===_0x5552b9&&(_0x5552b9['next']['previous']=null),_0x5552b9['next']=null);}function _0x5a0814(_0x5af9e8,_0x40ab86,_0x380c37){for(let _0x5d8a12=_0x380c37;_0x5d8a12<_0x40ab86['length'];_0x5d8a12++){const _0x20815c=_0x118bf2(_0x5af9e8,_0x40ab86[_0x5d8a12]);_0x20815c&&(_0x20815c[0x0]['next']=_0x20815c[0x1],_0x20815c[0x1]['previous']=_0x20815c[0x0],_0x2a0678['add'](_0x20815c[0x0]),_0x49b44f['add'](_0x20815c[0x1]));}}function _0x118bf2(_0x2c2657,_0x19ed86){if(_0x2c2657['author']['id']!==_0x19ed86['author']['id'])return null;const _0x4af657=_0x6c6047['get'](_0x2c2657)(_0x2c2657,_0x19ed86,_0x1c7c5a['get'](_0x2c2657),_0x1c7c5a['get'](_0x19ed86));if(!_0x4af657)return null;return _0x6c6047['get'](_0x19ed86)(_0x2c2657,_0x19ed86,_0x1c7c5a['get'](_0x2c2657),_0x1c7c5a['get'](_0x19ed86))?_0x4af657[0x1]['commentThread']&&_0x4af657[0x1]['commentThread']['length']?null:_0x4af657:null;}_0x5c1cf9['size']&&this['_refreshSuggestionsChain'](_0x5c1cf9);}['_refreshAttributeSuggestionsChain'](_0x5ae477){if(0x0==_0x5ae477['length'])return;const _0x11426f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1906e6=>'attribute'==_0x1906e6['type']&&_0x1906e6['_isDataLoaded']),_0xacbbca=[],_0x121b55=new Map();for(const _0x3d197f of _0x11426f){const _0x52e0b0=_0x3aa329(_0x3d197f['attributes']);_0x121b55['has'](_0x52e0b0)||(_0x121b55['set'](_0x52e0b0,_0xacbbca['length']),_0xacbbca['push']([]));const _0x43654d=_0x121b55['get'](_0x52e0b0);_0xacbbca[_0x43654d]['push'](_0x3d197f);}!(function(){_0xacbbca['sort']((_0x1a4a17,_0x1bdd65)=>{const _0xff9332=_0x1a4a17[0x0]['createdAt'],_0x1eca26=_0x1bdd65[0x0]['createdAt'];return _0xff9332==_0x1eca26?_0x1a4a17[0x0]['attributes']['groupId']<_0x1bdd65[0x0]['attributes']['groupId']?-0x1:0x1:_0xff9332<_0x1eca26?-0x1:0x1;});for(const _0x43dca5 of _0xacbbca)_0x43dca5['sort']((_0x47dd95,_0x4116c9)=>_0x47dd95['id']<_0x4116c9['id']?-0x1:0x1);}());for(let _0x1f86aa=0x0;_0x1f86aa<_0xacbbca['length'];_0x1f86aa++){if(0x0==_0xacbbca[_0x1f86aa]['length'])continue;const _0x3882f9=[];for(let _0x417e68=_0x1f86aa+0x1;_0x417e68<_0xacbbca['length'];_0x417e68++)0x0!=_0xacbbca[_0x417e68]['length']&&_0x4959fe(_0xacbbca[_0x1f86aa],_0xacbbca[_0x417e68])&&_0x3882f9['push'](_0x417e68);for(const _0x5e9f6a of _0x3882f9)_0xacbbca[_0x1f86aa]=_0xacbbca[_0x1f86aa]['concat'](_0xacbbca[_0x5e9f6a]),_0xacbbca[_0x5e9f6a]=[];}for(const _0x3b7b94 of _0xacbbca)for(let _0x3aeb6a=0x0;_0x3aeb6a<_0x3b7b94['length'];_0x3aeb6a++){const _0x1bff87=_0x3b7b94[_0x3aeb6a+0x1]||null;_0x3b7b94[_0x3aeb6a]['next']!==_0x1bff87&&(_0x3b7b94[_0x3aeb6a]['next']=_0x1bff87);}for(const _0x2cb62b of _0xacbbca)for(let _0x4b2934=0x0;_0x4b2934<_0x2cb62b['length'];_0x4b2934++){const _0x4e95d3=_0x2cb62b[_0x4b2934-0x1]||null;_0x2cb62b[_0x4b2934]['previous']!==_0x4e95d3&&(_0x2cb62b[_0x4b2934]['previous']=_0x4e95d3);}function _0x4959fe(_0x3a4105,_0xe4d554){if(_0x3a4105[0x0]['attributes']['groupId']!==_0xe4d554[0x0]['attributes']['groupId']&&_0x3a4105[0x0]['author']!==_0xe4d554[0x0]['author'])return!0x1;if(!function(_0x524b43,_0x2db449){if(!_0x524b43['hasComments']&&!_0x2db449['hasComments'])return!0x0;if(_0x524b43['hasComments']&&_0x2db449['hasComments'])return!0x1;if(_0x524b43['hasComments']&&_0x2db449['createdAt']<_0x524b43['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2db449['hasComments']&&_0x524b43['createdAt']<_0x2db449['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a4105[0x0],_0xe4d554[0x0]))return!0x1;const _0x2384ab=xt(_0x3a4105[0x0]['attributes'],'groupId'),_0x2cdadb=xt(_0xe4d554[0x0]['attributes'],'groupId');if(!_0x189bdb(_0x2384ab,_0x2cdadb))return!0x1;return!!_0x3a4105['every'](_0x68a650=>_0xe4d554['some'](_0x15897f=>_0x68a650['getFirstRange']()['isEqual'](_0x15897f['getFirstRange']())))&&_0xe4d554['every'](_0x475d66=>_0x3a4105['some'](_0x572fbf=>_0x475d66['getFirstRange']()['isEqual'](_0x572fbf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x230a15){const _0x1bd16e=Array['from'](_0x230a15),_0x3edb43=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2eaca0=_0x3edb43['filter'](_0x59c107=>!_0x230a15['has'](_0x59c107)),_0x1ec0d5=new Map(_0x1bd16e['map'](_0x45ea77=>[_0x45ea77,this['_suggestionFactory']['getSuggestionCallback'](_0x45ea77['type'],_0x45ea77['subType'],'join')])),_0x3a0593=new Map(_0x3edb43['map'](_0x248566=>[_0x248566,_0x248566['getRanges']()]));for(let _0x57fe0c=0x0;_0x57fe0c<_0x1bd16e['length'];_0x57fe0c++){if(_0x5b67c8(this,_0x1bd16e[_0x57fe0c],_0x1bd16e,_0x57fe0c+0x1))return!0x0;}for(let _0x2c8fa1=0x0;_0x2c8fa1<_0x1bd16e['length'];_0x2c8fa1++){if(_0x5b67c8(this,_0x1bd16e[_0x2c8fa1],_0x2eaca0,0x0))return!0x0;}return!0x1;function _0x5b67c8(_0xb98e78,_0xd3fe46,_0x50d7fd,_0x4ef0f8){for(let _0x3bf6b3=_0x4ef0f8;_0x3bf6b3<_0x50d7fd['length'];_0x3bf6b3++){const _0x3224e5=_0x50d7fd[_0x3bf6b3];if(_0x3224e5['type']!==_0xd3fe46['type']||_0x3224e5['author']['id']!==_0xd3fe46['author']['id']||_0x3224e5['subType']!==_0xd3fe46['subType'])continue;if(!qt(_0xd3fe46,_0x3224e5))continue;if('attribute'==_0xd3fe46['type']&&_0xd3fe46['data']['oldValue']!=_0x3224e5['data']['oldValue'])continue;if('attribute'==_0xd3fe46['type']&&_0xb98e78['_isBlockAttribute'](_0xd3fe46['data']['key']))continue;if('formatBlock'==_0xd3fe46['type']){const _0x1a3c66=_0xb98e78['editor']['model'],_0x17946f=_0xd3fe46['getContainedElement']();if(_0x17946f&&(_0x1a3c66['schema']['isObject'](_0x17946f)||_0x1a3c66['schema']['isLimit'](_0x17946f)))continue;}const _0x59d881=_0x1ec0d5['get'](_0xd3fe46),_0x5ca447=_0x3a0593['get'](_0xd3fe46),_0x27470d=_0x3a0593['get'](_0x3224e5),_0x4aff3e=_0xd3fe46['commentThread']&&_0xd3fe46['commentThread']['length'],_0x25b709=_0x3224e5['commentThread']&&_0x3224e5['commentThread']['length'];if(!_0x4aff3e&&_0x59d881(_0x27470d,_0x5ca447))return _0xb98e78['_joinSuggestions'](_0x3224e5,_0xd3fe46),_0x3a0593['delete'](_0xd3fe46),!0x0;if(!_0x25b709&&_0x59d881(_0x5ca447,_0x27470d))return _0xb98e78['_joinSuggestions'](_0xd3fe46,_0x3224e5),_0x3a0593['delete'](_0x3224e5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x16850e,_0x524f08){if(_0x16850e['isMultiRange']){for(const _0x43c43f of _0x524f08['getRanges']())_0x16850e['addRange'](_0x43c43f);}else{const _0x422d23=_0x524f08['getFirstRange']()['end'];this['_setSuggestionRange'](_0x16850e,this['_model']['createRange'](_0x16850e['getFirstRange']()['start'],_0x422d23));}_0x524f08['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4a7c1f,_0x4f4fd5,_0x826be5){const _0x43783a=_0x4a7c1f['startsWith']('format')||_0x4a7c1f['startsWith']('attribute')?'FORMATTING':_0x4a7c1f['toUpperCase']();return o(this['editor']['locale'],_0x4f4fd5+'_'+_0x43783a+'_SUGGESTION_ANNOUNCEMENT',_0x826be5);}['_initAriaMarkerChangeAnnouncements'](){const _0x4fc451=this['editor'];if(!_0x4fc451['ui'])return;const {ariaLiveAnnouncer:_0x2425c6}=_0x4fc451['ui'];_0x3efab9(this['_model'],({left:_0x3dd844,entered:_0x257e0f})=>{for(const _0x48b666 of _0x3dd844){const {group:_0x8afe91,type:_0xd89a56}=this['_splitMarkerName'](_0x48b666['name']);if('suggestion'===_0x8afe91){_0x2425c6['announce'](this['_getMarkerAnnouncementText'](_0xd89a56,'LEAVE'));break;}}for(const _0x597952 of _0x257e0f){const {group:_0x2b7234,type:_0x47459e}=this['_splitMarkerName'](_0x597952['name']);if('suggestion'===_0x2b7234){_0x2425c6['announce'](this['_getMarkerAnnouncementText'](_0x47459e,'ENTER',_0x5ec991(_0x46dbe4)));break;}}});}['_processAttributeChanges'](_0x552d48){if(this['_recordAttributeSuggestions'])return!0x1;const _0xe441=this['editor'],_0x22e8bd=_0xe441['model']['document']['differ']['getChanges']();if(0x0==_0x22e8bd['length'])return!0x1;const _0x4e2d4e=[],_0x39ead0=_0x22e8bd['filter'](_0x3bdb83=>'attribute'==_0x3bdb83['type']),_0x552eac=_0x22e8bd['filter'](_0x31cad9=>'insert'==_0x31cad9['type']&&'$text'!=_0x31cad9['name']),_0x1b9758=_0x22e8bd['filter'](_0x294b35=>'remove'==_0x294b35['type']&&'$text'!=_0x294b35['name']);for(const _0xd3bcd3 of _0x39ead0)_0x4e2d4e['push']({'key':_0xd3bcd3['attributeKey'],'newValue':_0xd3bcd3['attributeNewValue'],'oldValue':_0xd3bcd3['attributeOldValue'],'range':Lt(_0xd3bcd3['range'],_0xe441['model'])});for(const _0x38fb6a of _0x552eac){const _0x3bea16=_0x1b9758['find'](_0x455c55=>_0x455c55['position']['isEqual'](_0x38fb6a['position']));_0x3bea16&&_0x4e2d4e['push']({'key':m,'newValue':_0x38fb6a['name'],'oldValue':_0x3bea16['name'],'range':_0xe441['model']['createRangeOn'](_0x38fb6a['position']['nodeAfter'])});}return 0x0!=_0x4e2d4e['length']&&this['_reduceExistingSuggestions'](_0x552d48,_0x4e2d4e);}['_processAttributeSuggestions'](_0x2b5fd3){let _0x1be54b=!0x1;const _0x13f5b2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ebd76=>_0x2ebd76['data']['newRange']&&_0x2ebd76['name']['startsWith']('suggestion:attribute:'));for(const _0x190979 of _0x13f5b2){const {subType:_0x5e31bb,id:_0xbec9db}=this['_splitMarkerName'](_0x190979['name']),_0x4a7723=_0x5e31bb['split']('|')[0x0];for(const _0x27ee56 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27ee56['id']!=_0xbec9db&&'attribute'==_0x27ee56['type']&&_0x27ee56['data']&&_0x27ee56['data']['key']==_0x4a7723&&_0x27ee56['getFirstRange']()['isIntersecting'](_0x190979['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27ee56,_0x190979['data']['newRange'],_0x2b5fd3),_0x1be54b=!0x0);}return _0x1be54b;}['_recordAttributeChanges'](_0x54bb6b){this['_recordAttributeSuggestions']=!0x0,_0x54bb6b();}['_isRegisteredAttribute'](_0x15d86c){const _0x23ada7=this['_isBlockAttribute'](_0x15d86c),_0x543782=this['_inlineAttributeKeys']['has'](_0x15d86c);return _0x23ada7||_0x543782;}['_reduceExistingSuggestions'](_0x45d332,_0x5a2d56){if(0x0==_0x5a2d56['length'])return!0x1;let _0x4fd3d6=!0x1;for(const _0x1fda25 of _0x5a2d56){const _0x42813a=this['_findSuggestions'](_0x1fda25['range'],'attribute')['filter'](_0x1d1a26=>!_0x1d1a26['meta']['isNextTo'])['map'](_0x2e3ed9=>_0x2e3ed9['suggestion']),_0x2ece19=_0x3aa329({'newValue':_0x1fda25['newValue']});_0x42813a['filter'](_0x48447b=>{const [_0x2c8c99,_0x14c214]=_0x48447b['subType']['split']('|');return _0x2c8c99==_0x1fda25['key']&&_0x14c214!=_0x2ece19;})['forEach'](_0x522ead=>{this['_reduceSuggestionAttributeRange'](_0x522ead,_0x1fda25['range'],_0x45d332),_0x4fd3d6=!0x0;});}return _0x4fd3d6;}['_reduceSuggestionAttributeRange'](_0xc0036e,_0x51c3e3,_0x53ed16){const _0xce3129=_0xc0036e['getFirstRange']()['getDifference'](_0x51c3e3);0x0!==_0xce3129['length']?0x1!==_0xce3129['length']?this['_breakSuggestionMarker'](_0xc0036e,_0x51c3e3['start'],_0x51c3e3['end']):this['_setSuggestionRange'](_0xc0036e,_0xce3129[0x0]):_0x53ed16['removeMarker'](_0xc0036e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x71c2eb){this['_editor']=_0x71c2eb,this['_model']=_0x71c2eb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x23443d,_0x4e4ae2,_0xa19503,_0x46c17a,_0x42a856,_0x17c469){return new u(this['_model'],{'type':_0x23443d,'subType':_0x4e4ae2,'id':_0xa19503,'author':_0x46c17a,'creator':_0x46c17a,'attributes':_0x42a856,'onAttributesChange':_0x17c469,'onAccept':(..._0x1739db)=>this['getSuggestionCallback'](_0x23443d,_0x4e4ae2,'accept')(..._0x1739db),'onDiscard':(..._0x30c2cf)=>this['getSuggestionCallback'](_0x23443d,_0x4e4ae2,'discard')(..._0x30c2cf)});}['registerCustomCallback'](_0xb5a25d,_0x12297c,_0x5ec6c7,_0x263555){const _0x1d484a=_0xb5a25d+':'+_0x12297c+':'+_0x5ec6c7;this['_customCallbacks']['set'](_0x1d484a,_0x263555);}['getSuggestionCallback'](_0x49c14e,_0xda13be,_0x4febc0){const _0x386a24=_0x49c14e+':'+_0xda13be+':'+_0x4febc0;return this['_customCallbacks']['get'](_0x386a24)||this['_defaultCallbacks']['get'](_0x49c14e+':'+_0x4febc0);}['_registerDefaultCallbacks'](){const _0x26eaaa=()=>!0x1,_0x52a767=_0x17dfcc=>{_0x17dfcc['sort']((_0x4c347f,_0x1e44c8)=>_0x4c347f['start']['isBefore'](_0x1e44c8['start'])?0x1:-0x1),this['_model']['change'](_0x5d50d7=>{for(const _0x35e034 of _0x17dfcc){let _0xb988bb;_0xb988bb=_0x35e034['end']['isAtEnd']&&_0x35e034['end']['parent']==_0x35e034['start']['nodeAfter']?_0x5d50d7['createSelection'](_0x35e034['start']['nodeAfter'],'on'):_0x5d50d7['createSelection'](_0x35e034),this['_model']['deleteContent'](_0xb988bb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4f77e8=(_0x3b97be,_0x5d20b1)=>{_0x5d20b1&&this['_model']['change'](_0x25348f=>{const {commandName:_0x15a3fd,commandParams:_0x35599a=[]}=_0x5d20b1,_0x537a03=_0x3b97be['map'](_0x259139=>(Vt(_0x259139)&&(_0x259139=this['_model']['createRange'](_0x259139['end'])),_0x259139))['filter'](_0x2808a8=>'$graveyard'!==_0x2808a8['root']['rootName']);if(_0x537a03['length']<0x1)return;const _0x426fb3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x256ead=>_0x5103d1['fromRange'](_0x256ead));_0x25348f['setSelection'](_0x537a03);for(const _0x21089d of this['_editor']['commands']['commands']())_0x21089d['refresh']();_0x35599a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15a3fd,..._0x35599a);const _0x3a1df8=_0x426fb3['filter'](_0x50e48a=>'$graveyard'!=_0x50e48a['root']['rootName']);_0x3a1df8['length']>0x0&&_0x25348f['setSelection'](_0x3a1df8);for(const _0x17d911 of _0x426fb3)_0x17d911['detach']();});},_0x501636=(_0x57dcc5,_0x1a38be)=>0x1==_0x57dcc5['length']&&0x1==_0x1a38be['length']&&_0x57dcc5[0x0]['end']['isEqual'](_0x1a38be[0x0]['start']),_0xcfc224=(_0x519aa2,_0xf9f2c3,_0x587de5,_0x39cb7e)=>Ht(_0x519aa2,_0xf9f2c3,_0x587de5,_0x39cb7e)?[_0x519aa2,_0xf9f2c3]:Ht(_0xf9f2c3,_0x519aa2,_0x39cb7e,_0x587de5)?[_0xf9f2c3,_0x519aa2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x26eaaa),this['_defaultCallbacks']['set']('insertion:discard',_0x52a767),this['_defaultCallbacks']['set']('insertion:join',_0x501636),this['_defaultCallbacks']['set']('insertion:chain',_0xcfc224),this['_defaultCallbacks']['set']('deletion:accept',_0x52a767),this['_defaultCallbacks']['set']('deletion:discard',_0x26eaaa),this['_defaultCallbacks']['set']('deletion:join',_0x501636),this['_defaultCallbacks']['set']('deletion:chain',_0xcfc224),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f77e8),this['_defaultCallbacks']['set']('formatInline:discard',_0x26eaaa),this['_defaultCallbacks']['set']('formatInline:join',_0x501636),this['_defaultCallbacks']['set']('formatInline:chain',_0x26eaaa),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f77e8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x26eaaa),this['_defaultCallbacks']['set']('formatBlock:join',_0x501636),this['_defaultCallbacks']['set']('formatBlock:chain',_0x26eaaa),this['_defaultCallbacks']['set']('attribute:accept',_0x26eaaa),this['_defaultCallbacks']['set']('attribute:discard',(_0x442dd6,_0x4ba1ed)=>{if(!_0x4ba1ed)return;const _0x3c8d3f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x488f9a=>{if(_0x4ba1ed['key']==m)for(const _0x3ac014 of _0x442dd6){const _0x14f083=_0x3ac014['start']['nodeAfter'],_0x22b18d=_0x4ba1ed['oldValue'];_0x488f9a['rename'](_0x14f083,_0x22b18d);}else{if(_0x3c8d3f['_isBlockAttribute'](_0x4ba1ed['key'])){for(const _0x3b985b of _0x442dd6)void 0x0!==_0x4ba1ed['oldValue']?_0x488f9a['setAttribute'](_0x4ba1ed['key'],_0x4ba1ed['oldValue'],_0x3b985b['start']['nodeAfter']):_0x488f9a['removeAttribute'](_0x4ba1ed['key'],_0x3b985b['start']['nodeAfter']);}else{for(const _0x592948 of _0x442dd6)_0x4ba1ed['oldValue']?_0x488f9a['setAttribute'](_0x4ba1ed['key'],_0x4ba1ed['oldValue'],_0x592948):_0x488f9a['removeAttribute'](_0x4ba1ed['key'],_0x592948);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x501636);}}function Ut(_0x393c82,_0x29bdff,_0x1b9518){for(const _0x24e4e1 of _0x29bdff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x24e4e1['root']==_0x24e4e1)return!0x1;if(!_0x1b9518['containsItem'](_0x24e4e1))return!0x1;if(_0x393c82['isObject'](_0x24e4e1)||_0x393c82['isLimit'](_0x24e4e1))return!0x0;}return!0x1;}function Vt(_0x115c04){return _0x115c04['end']['parent']==_0x115c04['start']['nodeAfter']&&_0x115c04['end']['isAtStart'];}function Pt(_0x3c7e9c,_0x2720d9,_0x59633c,_0x3ac441){const _0x4d38f2=_0x4e27e3=>!_0x4e27e3['item']['is']('$textProxy')&&!_0x3ac441['isObject'](_0x4e27e3['item']),_0xf1cbb8=_0x3c7e9c['start']['getLastMatchingPosition'](_0x4d38f2),_0x467339=_0x3c7e9c['end']['getLastMatchingPosition'](_0x4d38f2,{'direction':'backward'});return(!_0x3c7e9c['start']['isEqual'](_0xf1cbb8)||!_0x3c7e9c['end']['isEqual'](_0x467339))&&(_0xf1cbb8['isBefore'](_0x467339)?_0x59633c['updateMarker'](_0x2720d9,{'range':_0x59633c['createRange'](_0xf1cbb8,_0x467339)}):_0x59633c['removeMarker'](_0x2720d9),!0x0);}function Gt(_0x82c1a2){return _0x3aa329(_0x82c1a2);}function Ft(_0x50ded6){const _0x1e43d2=_0x50ded6['start']['nodeAfter'];return _0x1e43d2&&_0x1e43d2['is']('element');}function Lt(_0x445bf9,_0x1c1395){return null==_0x445bf9['end']['nodeBefore']&&_0x445bf9['end']['parent']==_0x445bf9['start']['nodeAfter']?Jt(_0x445bf9['start']['nodeAfter'],_0x1c1395):_0x445bf9;}function Jt(_0x155811,_0x56da3c){const _0x2be251=_0x56da3c['schema']['isObject'](_0x155811)||_0x56da3c['schema']['isSelectable'](_0x155811);return _0x56da3c['createRange'](_0x56da3c['createPositionAt'](_0x155811,'before'),_0x2be251?_0x56da3c['createPositionAfter'](_0x155811):_0x56da3c['createPositionAt'](_0x155811,'end'));}function Ht(_0x13d8d1,_0x3ad453,_0x1811aa,_0x5f0a37){return!!qt(_0x13d8d1,_0x3ad453)&&_0x1811aa['end']['isEqual'](_0x5f0a37['start']);}function qt(_0x1d44e9,_0x140c4e){if(!_0x1d44e9['_isDataLoaded']||!_0x140c4e['_isDataLoaded'])return!0x1;const _0xe5d781=new Set(Object['keys'](_0x1d44e9['attributes'])),_0x42b6a9=new Set(Object['keys'](_0x140c4e['attributes']));if(_0xe5d781['delete']('groupId'),_0x42b6a9['delete']('groupId'),0x0==_0xe5d781['size']&&0x0==_0x42b6a9['size'])return!0x0;if(_0xe5d781['size']!=_0x42b6a9['size'])return!0x1;const _0x17b936={..._0x1d44e9['attributes']},_0x6712e0={..._0x140c4e['attributes']};return delete _0x17b936['groupId'],delete _0x6712e0['groupId'],JSON['stringify'](_0x17b936)==JSON['stringify'](_0x6712e0);}function zt(_0x1fcaa8,_0x1be890){const _0x2ee8d7=Kt(_0x1fcaa8['attributes']),_0x5a9509=Kt(_0x1be890);if(!_0x1fcaa8['_isDataLoaded'])return!0x1;for(const _0x324ff0 of Object['keys'](_0x5a9509))if(!_0x189bdb(_0x2ee8d7[_0x324ff0],_0x5a9509[_0x324ff0]))return!0x1;return!0x0;}function Kt(_0x478eed){const _0x15e200=Object['assign']({},_0x478eed);return delete _0x15e200['skipNestingCheck'],delete _0x15e200['tablePasteChainId'],_0x15e200;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x17df49(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1a0ca4,_0x25b518,_0x2aba7a,_0x4bc3a3){super(),this['model']=_0x25b518,this['view']=_0x2aba7a,this['commentThreadController']=_0x4bc3a3,this['_editor']=_0x1a0ca4,this['_acceptCommand']=_0x1a0ca4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1a0ca4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xb1f43b,_0xdf1686)=>_0xb1f43b||_0xdf1686),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9fec0d=>_0x9fec0d&&this['_editor']['model']['canEditAt'](_0x25b518['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x15bfbd=>_0x15bfbd&&this['_editor']['model']['canEditAt'](_0x25b518['getRanges']())),this['_pendingAction']=null,_0x2aba7a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2aba7a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2aba7a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2aba7a,'change:isDirty',()=>{_0x2aba7a['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 _0xaec7c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xaec7c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x40ff7d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xffd090,_0x51fe90,_0xf9a28a,_0x3804aa){super(_0xffd090),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x39d50d(_0xffd090,o(_0xffd090,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51fe90['authoredAt']),this['bind']('authoredAt')['to'](_0x51fe90),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',_0x51fe90,'authoredAt',this,'descriptionParts',(_0x9661e0,_0x158a08,_0x3394cb)=>{const _0x1d01bd=_0x3394cb['map'](_0x4fe949=>ns(_0x4fe949['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9661e0-0x1,_0x51fe90['author']['name'],_0x158a08?_0x3804aa['formatDateTime'](_0x158a08):'',new DOMParser()['parseFromString'](_0x1d01bd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ba192(),this['focusTracker']=new _0x3b7a61(),this['keystrokes']=new _0x3b9ae0(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5349c0=>_0x5349c0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51fe90,this['_localUser']=_0xf9a28a,this['_config']=_0x3804aa,_0x3804aa['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x933eaf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3772a2}=this['_config'];this['commentsListView']=new _0x3772a2(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',_0x5f1422=>_0x5f1422+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1840b0,_0x45ba5e)=>_0x1840b0||!!_0x45ba5e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4431f7}=this['_config'],_0x43466f=new _0x4431f7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x533145=_0x43466f['commentInputView'];return _0x43466f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x533145,'value',(_0x130833,_0x555590,_0xbaf1ab)=>!!_0xbaf1ab||_0x130833&&!_0x555590),_0x533145['on']('submit',(_0x3d627b,_0x2c57cb)=>{this['fire']('addComment',_0x2c57cb),_0x533145['editor']['setData']('');}),_0x533145['on']('cancel',()=>this['focus']()),_0x533145['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x43466f;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1862d9,_0x35ecdb,_0x85bc0e,_0x433fdf){super(_0x1862d9,_0x35ecdb,_0x85bc0e,_0x433fdf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b7252=>_0x2b7252&&_0x2b7252[0x0]?_0x2b7252[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e2979,_0x3ff77b)=>{let _0x4a48e7='';for(const _0x373615 of _0x1e2979)_0x4a48e7+='<p>'+ns(_0x373615['content'],_0x373615['color'])+'</p>';return _0x3ff77b?_0x4a48e7:ti(_0x4a48e7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x433fdf['SuggestionView'](_0x1862d9,_0x35ecdb,{'formatDateTime':_0x433fdf['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 _0x48d00d=this['bindTemplate'],_0x41d16b=[this['suggestionView']];return this['commentsListView']&&_0x41d16b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x41d16b['push'](this['commentThreadInputView']),_0x41d16b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x48d00d['if']('isActive','ck-suggestion-wrapper--active'),_0x48d00d['to']('type',_0x1aff5e=>'ck-suggestion-'+_0x1aff5e),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':_0x48d00d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x41d16b};}['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 ue extends _0x40ff7d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4f8978,_0x52b9ab,_0x171b0a){super(_0x4f8978),this['_model']=_0x52b9ab,this['_config']=_0x171b0a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x52b9ab),this['acceptButton']=this['_createButton'](o(_0x4f8978,'Accept\x20suggestion'),_0x43d26d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4f8978,'Discard\x20suggestion'),_0x43d26d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xdf1a50(_0x4f8978,_0x52b9ab['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ba192([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b7a61(),this['keystrokes']=new _0x3b9ae0(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x20d92b=>_0x20d92b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3a94c3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3a94c3['innerHTML']=this['description'],this['on']('change:description',(_0x1ed852,_0x5d4bcc,_0x4dcaae)=>{_0x3a94c3['innerHTML']=_0x4dcaae;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a529a=this['bindTemplate'],_0x5863a4=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2a529a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a529a['to']('authoredAt',_0xe96b19=>this['_config']['formatDateTime'](_0xe96b19))}]}]},{'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']&&_0x5863a4['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':_0x5863a4}]};}['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'](_0x4f320b,_0x49af28,_0x29f35d,_0x1f3f3f,_0x2e899f){const _0x56f01f=new _0x146dcb(this['locale']);return _0x56f01f['set']({'label':_0x4f320b,'icon':_0x49af28,'tooltip':!0x0,'tooltipPosition':_0x2e899f}),_0x56f01f['extendTemplate']({'attributes':{'class':_0x29f35d}}),_0x56f01f['on']('execute',()=>{this['fire'](_0x1f3f3f,this['_model']['id']);}),_0x56f01f;}['_setupKeyboardNavigation'](){const _0x97492f=this['element'];this['keystrokes']['listenTo'](_0x97492f);for(const _0x195e60 of this['focusables'])this['focusTracker']['add'](_0x195e60['element']),this['keystrokes']['listenTo'](_0x195e60['element']);this['keystrokes']['set']('enter',(_0x25b657,_0x113a90)=>{_0x97492f===_0x25b657['target']&&(this['focusCycler']['focusFirst'](),_0x113a90());}),this['keystrokes']['set']('esc',(_0x20b9d1,_0x177c9f)=>{_0x97492f!==_0x20b9d1['target']&&(this['focus'](),_0x177c9f());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x24408b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21fc14,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1adbcc){super(_0x1adbcc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x463641=this['editor']['config'];_0x463641['define']('trackChanges.SuggestionThreadView',de),_0x463641['define']('trackChanges.SuggestionView',ue),_0x463641['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x463641['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x265636,_0x1c57c1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x42cfcc,_0x2bc6e5]of this['_handleControllerBuffer']){const _0x23959a=this['_suggestionToController']['has'](_0x42cfcc);_0x23959a||_0x2bc6e5?_0x23959a&&_0x2bc6e5&&this['_destroyController'](_0x42cfcc):this['_initializeController'](_0x42cfcc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x265636,_0x1c57c1);}['init'](){const _0x3797df=this['editor'],_0x440d0e=_0x3797df['plugins']['get']('TrackChangesEditing'),_0x267707=_0x3797df['plugins']['get']('Annotations'),_0x4c5b81=_0x3797df['plugins']['get']('EditorAnnotations'),_0x17cc53=_0x3797df['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4c5b81['addSourceCollector'](()=>{const _0x57124b=[];for(const [_0x5b0966,_0x45d43e]of Array['from'](this['_suggestionToController'])){const _0x30ea37=_0x5b0966['getAllAdjacentSuggestions'](),_0x20d3e6=[];for(const _0x9d277c of _0x30ea37){if(!_0x9d277c['isInContent'])continue;if(_0x9d277c['isMultiRange']){_0x20d3e6['push'](..._0x9d277c['getRanges']());continue;}const _0x347c9c=_0x9d277c['getFirstRange']();if(_0x20d3e6['length']>0x0){const _0x4eadc3=_0x20d3e6[0x0]['getJoined'](_0x347c9c);if(_0x4eadc3){_0x20d3e6[0x0]=_0x4eadc3;continue;}}_0x20d3e6['push'](_0x347c9c);}_0x57124b['push']([_0x45d43e['view'],_0x20d3e6]);}return _0x57124b;}),this['listenTo'](_0x440d0e,'suggestionLoaded',(_0x5b0250,_0x525d6d)=>{this['listenTo'](_0x525d6d,'change:previous',(_0x1ded51,_0x5ee26c,_0x4353c8,_0x5f1fa8)=>{_0x525d6d['isInContent']&&(null==_0x4353c8?(this['_updateController'](_0x5f1fa8['head']),this['_handleSuggestionControllerDelayed'](_0x525d6d,!0x1)):(this['_updateController'](_0x4353c8['head']),null==_0x5f1fa8&&this['_handleSuggestionControllerDelayed'](_0x525d6d,!0x0)));}),null!==_0x525d6d['previous']?this['_updateController'](_0x525d6d['head']):this['_handleSuggestionControllerDelayed'](_0x525d6d,!0x1);}),this['listenTo'](_0x440d0e,'suggestionUnloaded',(_0x187c37,_0x1c2f75,_0x15882b)=>{this['stopListening'](_0x1c2f75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c2f75),this['_suggestionToController']['has'](_0x1c2f75)&&this['_destroyController'](_0x1c2f75),_0x15882b&&this['_updateController'](_0x15882b['head']);}),this['listenTo'](_0x440d0e,'suggestionChanged',(_0x466d2d,_0x2d5c99)=>{this['_updateController'](_0x2d5c99);}),this['listenTo'](_0x267707,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x17cc53,'addComment',(_0x49cbc9,{threadId:_0x35ac1f,isFromAdapter:_0x2e654b})=>{if(_0x2e654b||!_0x440d0e['hasSuggestion'](_0x35ac1f))return;const _0x394e5f=_0x440d0e['getSuggestion'](_0x35ac1f);this['_suggestionToController']['get'](_0x394e5f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13d115=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c5c48;for(const _0x2e76a1 in _0x13d115){const _0x1de3a6=_0x2e76a1,_0x309936=_0x13d115[_0x1de3a6];if('trackChangesLicenseKeyValid'==_0x309936||'trackChangesLicenseKeyInvalid'==_0x309936||'trackChangesLicenseKeyExpired'==_0x309936||'trackChangesLicenseKeyDomainLimit'==_0x309936||'trackChangesLicenseKeyNotAllowed'==_0x309936||'trackChangesLicenseKeyEvaluationLimit'==_0x309936||'trackChangesLicenseKeyTrialLimit'==_0x309936||'trackChangesLicenseKeyDevelopmentLimit'==_0x309936||'trackChangesLicenseKeyUsageLimit'==_0x309936){delete _0x13d115[_0x1de3a6],_0x2c5c48=_0x309936,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c5c48&&_0x13d115['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c5c48&&_0x13d115['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c5c48&&_0x13d115['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xdb949a=this['editor']['plugins']['get']('Annotations'),_0x1b2870=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d8178=Array['from'](_0xdb949a['activeAnnotations'],_0x16471d=>_0x16471d['innerView'])['filter'](_0x2501d3=>this['_viewToController']['has'](_0x2501d3)),_0x437287=[];for(const _0x588944 of _0x4d8178){const _0x522c6e=this['_viewToController']['get'](_0x588944)['model']['getAllAdjacentSuggestions']();_0x437287['push'](..._0x522c6e['reduce']((_0x1fc785,_0x4df1a9)=>[..._0x1fc785,..._0x4df1a9['getMarkerNames']()],[]));}_0x1b2870['activeMarkers']=_0x437287;}['_addUIComponentsToFactory'](){const _0xebc55c=this['editor'],_0x501fd8=_0xebc55c['locale'],_0x3cf686=o(_0x501fd8,'Track\x20changes'),_0x5ef0b4=new _0x109d00([{'type':'switchbutton','model':new _0x864a73({'withText':!0x0,'isToggleable':!0x0,'label':_0x3cf686,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x27423f of _0x5ef0b4)if(pe(_0x27423f)){const _0x16b99b=_0xebc55c['commands']['get'](_0x27423f['model']['commandName']);_0x27423f['model']['bind']('isOn','isEnabled')['to'](_0x16b99b,'value','isEnabled');}_0xebc55c['ui']['componentFactory']['add']('trackChanges',_0x1229c6=>this['_createToolbarButton'](_0x1229c6,_0x5ef0b4,_0x3cf686)),_0xebc55c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d6406=>this['_createMenuBarMenu'](_0x2d6406,_0x5ef0b4,_0x3cf686));}['_createToolbarButton'](_0x5ad76e,_0x27141f,_0x57700f){const _0x4b5e77=_0x1547e8(_0x5ad76e,_0x4431e6),_0x29158a=this['editor']['commands']['get']('trackChanges');_0x4b5e77['buttonView']['set']({'tooltip':_0x57700f,'label':_0x57700f,'icon':Ce}),_0x4b5e77['buttonView']['bind']('isOn')['to'](_0x29158a,'value'),_0x4b5e77['buttonView']['on']('execute',()=>{_0x29158a['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4b5e77,_0x27141f,{'role':'menu'});const _0x3ed416=[];for(const _0x4c285e of _0x27141f)pe(_0x4c285e)&&_0x3ed416['push'](this['editor']['commands']['get'](_0x4c285e['model']['commandName']));const _0x3e84c4=_0x4b5e77['buttonView'];return _0x3e84c4['actionView']['unbind']('isEnabled'),_0x3e84c4['arrowView']['unbind']('isEnabled'),_0x3e84c4['actionView']['bind']('isEnabled')['to'](_0x29158a,'isEnabled'),_0x3e84c4['arrowView']['bind']('isEnabled')['toMany'](_0x3ed416,'isEnabled',(..._0x238654)=>_0x238654['some'](_0x874b0d=>_0x874b0d)),_0x4b5e77['on']('execute',_0xaead0c=>{this['editor']['execute'](_0xaead0c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4b5e77;}['_createMenuBarMenu'](_0x59481d,_0x2c837a,_0x85deff){const _0x5ccc5b=new _0x3107b(_0x59481d),_0x89f048=this['editor']['commands']['get']('trackChanges');_0x5ccc5b['buttonView']['set']({'label':_0x85deff,'icon':Ce});const _0x15f023=new _0x4f4449(_0x59481d);for(const _0x190df2 of _0x2c837a){if('separator'==_0x190df2['type']){_0x15f023['items']['add'](new _0x1f6633(_0x59481d));continue;}const _0x4c66e5=new _0x32a6b8(_0x59481d,_0x5ccc5b),_0x5a09ef=new _0x18e15e(_0x59481d),_0x416d9e=_0x190df2['model'];_0x5a09ef['bind'](...Object['keys'](_0x416d9e))['to'](_0x416d9e),_0x5a09ef['delegate']('execute')['to'](_0x5ccc5b),_0x5a09ef['on']('execute',()=>{this['editor']['execute'](_0x416d9e['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c66e5['children']['add'](_0x5a09ef),_0x15f023['items']['add'](_0x4c66e5);}return _0x5ccc5b['bind']('isEnabled')['to'](_0x89f048,'isEnabled'),_0x5ccc5b['panelView']['children']['add'](_0x15f023),_0x5ccc5b;}['_initializeController'](_0x2cf2b6){const _0x17cf1b=this['editor'],_0x4ed617=_0x17cf1b['config'],_0xb10811=_0x17cf1b['plugins']['get']('Annotations'),_0x427942=_0x17cf1b['plugins']['get']('CommentsRepository'),_0x401dd8=_0x17cf1b['plugins']['get']('EditorAnnotations'),_0x57a41=_0x17cf1b['plugins']['get'](_0x21fc14)['me'],_0x3a9e53=_0x4ed617['get']('trackChanges')['SuggestionThreadView'],_0x226240=_0x4ed617['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3f9702,CommentThreadInputView:_0x244b14}=_0x17cf1b['plugins']['get']('CommentsUI');let _0x5a5a38,_0xa94de8,_0x2a0e91;this['_annotationViews']['has'](_0x2cf2b6['id'])?(_0xa94de8=this['_annotationViews']['get'](_0x2cf2b6['id']),_0x5a5a38=_0xa94de8['mainView']):(_0x5a5a38=new _0x3a9e53(_0x17cf1b['locale'],_0x2cf2b6,_0x57a41,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4ed617['get']('comments.editorConfig'),'licenseKey':_0x4ed617['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4ed617['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ed617['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ed617['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23e6a6(_0x4ed617['get']('locale')),'CommentView':_0x4ed617['get']('comments')['CommentView'],'CommentsListView':_0x3f9702,'CommentThreadInputView':_0x244b14,'SuggestionView':_0x226240}),_0x5a5a38['suggestionView']['acceptButton']['on']('execute',()=>{_0x17cf1b['editing']['view']['focus']();}),_0x5a5a38['suggestionView']['discardButton']['on']('execute',()=>{_0x17cf1b['editing']['view']['focus']();}),_0xa94de8=_0xb10811['createAnnotationView'](this['editor']['locale'],_0x5a5a38),_0xa94de8['bind']('isDirty')['to'](_0x5a5a38,'isDirty'),_0xa94de8['bind']('length')['to'](_0x5a5a38),_0xa94de8['bind']('type')['to'](_0x5a5a38,'type',_0x374c71=>'suggestion-'+_0x374c71),_0x5a5a38['on']('escape',()=>{_0x2a0e91['fire']('escape');}),this['_annotationViews']['set'](_0x2cf2b6['id'],_0xa94de8));const _0x1456e3=_0x427942['createCommentThreadController'](_0x2cf2b6['commentThread'],_0x5a5a38),_0x42dd31=new ge(_0x17cf1b,_0x2cf2b6,_0x5a5a38,_0x1456e3),_0x402666=_0x2cf2b6['getAllAdjacentSuggestions']()['filter'](_0x12715a=>_0x12715a['isInContent']);_0x5a5a38['descriptionParts']=_0x17cf1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x402666),this['_suggestionToController']['set'](_0x2cf2b6,_0x42dd31),this['_viewToController']['set'](_0x5a5a38,_0x42dd31),_0x2a0e91=_0xb10811['createAnnotation']({'view':_0xa94de8,'target':()=>{const _0x2789e5=[],_0x363e67=_0x2cf2b6['getAllAdjacentSuggestions']()['filter'](_0x34dacd=>_0x34dacd['isInContent']);for(const _0x16292e of _0x363e67)_0x2789e5['push'](..._0x16292e['getMarkers']());return _0x3e695b(_0x17cf1b['editing'],_0x2789e5);},'type':()=>'suggestion-'+_0x42dd31['view']['type']}),_0x427942['_bindAnnotationToEditors'](_0x5a5a38,_0x2a0e91),_0xb10811['add'](_0x2a0e91),_0x401dd8['registerAnnotation'](_0x2a0e91);}['_destroyController'](_0x48d837){const _0x3c9bf8=this['editor']['plugins']['get']('CommentsRepository'),_0x5501e0=this['editor']['plugins']['get']('Annotations'),_0x52ffbb=this['_suggestionToController']['get'](_0x48d837),_0x5c22be=_0x52ffbb['view'],_0x3e0f7c=_0x5501e0['getByInnerView'](_0x5c22be);_0x3c9bf8['_unbindEditors'](_0x5c22be),_0x3e0f7c&&_0x5501e0['remove'](_0x3e0f7c),this['_suggestionToController']['delete'](_0x48d837),this['_viewToController']['delete'](_0x5c22be),_0x52ffbb['destroy']();}['_updateController'](_0x532582){if(!_0x532582['isInContent']||!this['_suggestionToController']['has'](_0x532582))return;const _0x2578c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c2d78=this['_suggestionToController']['get'](_0x532582),_0x170854=_0x532582['getAllAdjacentSuggestions']();_0x4c2d78['view']['descriptionParts']=_0x2578c1['descriptionFactory']['getDescriptions'](_0x170854);}['destroy'](){for(const _0x2063a6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2063a6);for(const _0x75a2da of this['_annotationViews']['values']())_0x75a2da['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x21d591){return'model'in _0x21d591;}class k extends _0x24408b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x395b96){this['editor']['plugins']['get'](p)['adapter']=_0x395b96;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x319ef2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x319ef2);}['getSuggestions']({skipNotAttached:_0x15ae98=!0x1,toJSON:_0x2db6da=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x15ae98,'toJSON':_0x2db6da});}['getSuggestion'](_0xfd13d7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xfd13d7);}}const w=['Pagination'];class T extends _0x24408b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e6cea=this['editor'];if(_0x3e6cea['config']['define']('trackChangesData.editorCreator',_0x39f502=>{const _0x10ba44=_0x3e6cea['model']['document']['getRootNames']()['reduce']((_0x15a85a,_0x36ffa4)=>(_0x15a85a[_0x36ffa4]='',_0x15a85a),{});return _0x3e6cea['constructor']['create'](_0x10ba44,_0x39f502);}),'function'!=typeof _0x3e6cea['config']['get']('trackChangesData')['editorCreator'])throw new _0x8f85e0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x414b3f){return N(this['editor'],!0x0,_0x414b3f);}['getDataWithDiscardedSuggestions'](_0x804a19){return N(this['editor'],!0x1,_0x804a19);}}class D extends _0x24408b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383522){function _0x53c895(_0x22e9be){return _0x22e9be['map'](_0xbd3dd4=>String['fromCharCode'](_0xbd3dd4))['join']('');}super(_0x383522),this['result']='end',_0x383522[_0x53c895([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53c895([0x76,0x69,0x65,0x77])][_0x53c895([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53c895([0x61,0x75,0x74,0x6f]),_0x383522[_0x53c895([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x53c895([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53c895([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x53c895([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x53c895([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 v(_0x5e3e2b){return void 0x0!==_0x5e3e2b['getRootsAttributes'];}async function N(_0x4539b1,_0x321c72,_0x39fc0b){const _0x5b71ff=_0x1fc5ea(_0x4539b1,w);_0x5b71ff['plugins']['push'](p,D),_0x5b71ff['rootsAttributes']=v(_0x4539b1)?_0x4539b1['getRootsAttributes']():void 0x0;const _0x302912=document['createDocumentFragment'](),_0x2061b7=_0x4539b1['config']['get']('trackChangesData')['editorCreator'],_0x5b0327=await _0x2061b7(_0x5b71ff,()=>function(_0x51b157){const _0x4a2929=document['createElement']('div');return _0x51b157['appendChild'](_0x4a2929),_0x4a2929;}(_0x302912));!function(_0xfce603,_0x65b464){const _0x1ea72=_0xfce603['model']['document']['getRootNames']()['reduce']((_0x1aa9ec,_0x55feae)=>(_0x1aa9ec[_0x55feae]=_0xfce603['data']['get']({'rootName':_0x55feae}),_0x1aa9ec),{}),_0x2534f3=_0xfce603['plugins']['get']('Users')['users']['map'](_0x11fe15=>({'id':_0x11fe15['id'],'name':_0x11fe15['name']})),_0x3b18c6=_0xfce603['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5477f6=_0xfce603['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f52e6=_0x65b464['plugins']['get']('Users'),_0x3db7ab=_0x65b464['plugins']['get']('TrackChangesEditing'),_0x4faee4=_0x65b464['plugins']['get']('CommentsRepository');for(const _0x405b3a of _0x4faee4['getCommentThreads']())_0x405b3a['remove']();for(const _0x2c3fc of _0x2534f3)_0x2f52e6['getUser'](_0x2c3fc['id'])||_0x2f52e6['addUser'](_0x2c3fc);_0x2f52e6['me']||_0x2f52e6['useAnonymousUser']();for(const _0x5394b6 of _0x5477f6)_0x4faee4['addCommentThread'](_0x5394b6);for(const _0x244e52 of _0x3b18c6)_0x3db7ab['addSuggestionData'](_0x244e52);_0x65b464['data']['set'](_0x1ea72);}(_0x4539b1,_0x5b0327),_0x5b0327['execute'](_0x321c72?'acceptAllSuggestions':'discardAllSuggestions');const _0x200226=v(_0x5b0327)?_0x5b0327['getFullData'](_0x39fc0b):_0x5b0327['data']['get'](_0x39fc0b);return await _0x5b0327['destroy'](),_0x200226;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0x370139,PendingActions as _0x2f461e,icons as _0x4bbc09}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5ad815,ObservableMixin as _0x5b310f,uid as _0x324bd7,insertToPriorityArray as _0x89fb3c,priorities as _0x1a9e46,logWarning as _0x274039,getEnvKeystrokeText as _0x32629d,FocusTracker as _0x432e16,KeystrokeHandler as _0x13ed52,Collection as _0x5d6eef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xd5e710,View as _0x55122a,ViewCollection as _0x2dd5b5,FocusCycler as ts,ViewModel as _0x10d252,createDropdown as _0x50bee9,SplitButtonView as _0x27b303,addListToDropdown as te,MenuBarMenuView as _0x19c7b6,MenuBarMenuListView as _0x2f6c75,ListSeparatorView as _0x51c1c6,MenuBarMenuListItemView as _0x429ae5,MenuBarMenuListItemButtonView as _0x612069}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x30dca3,hashObject as _0x1ebb8c,surroundingMarkersDetector as _0x95b9e5,FOCUS_ANNOTATION_KEYSTROKE as _0x342b17,AriaDescriptionView as _0x401707,setupThreadKeyboardNavigation as _0x46c4c0,trimHtml as ti,UserView as _0x2f902f,LateFocusButtonView as _0x1b8de9,getDateTimeFormatter as _0x423b53,getAllMarkersDomElementsSorted as _0x2d0fa3,sanitizeEditorConfig as _0x2ec354}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1a1ae2,LiveRange as _0x4d36a7,LivePosition as _0x2d82de}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x34daf7,toWidget as _0x2bf494}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x30bb3b,set as _0x4b1992,isEqual as _0x142687,unset as _0x333e2a,omit as xt}from'lodash-es';import{Delete as _0x56bede,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xa138a8,ShiftEnter as _0x2edfad}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3d8895,_0x523ffa){super(_0x3d8895),this['_enabledCommands']=_0x523ffa,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 _0x59efab of this['editor']['commands']['commands']())_0x59efab['affectsData']&&!this['_enabledCommands']['has'](_0x59efab)&&_0x59efab['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x529167 of this['editor']['commands']['commands']())_0x529167['affectsData']&&!this['_enabledCommands']['has'](_0x529167)&&_0x529167['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x382f9c,_0x18cb82){super(_0x382f9c),this['_suggestions']=_0x18cb82,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4da0d6){const _0x5a4f63=this['_suggestions']['get'](_0x4da0d6);if(!_0x5a4f63)throw new _0x5ad815('track-changes-accept-suggestion-not-found',this);const _0xca1137=_0x5a4f63['getRanges']();this['editor']['model']['canEditAt'](_0xca1137)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5a4f63);}}class R extends Qt{['_suggestions'];constructor(_0x34a4ec,_0x4ff0c9){super(_0x34a4ec),this['_suggestions']=_0x4ff0c9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xc19e97){const _0x268e73=this['_suggestions']['get'](_0xc19e97);if(!_0x268e73)throw new _0x5ad815('track-changes-discard-suggestion-not-found',this);const _0x545c5e=_0x268e73['getRanges']();this['editor']['model']['canEditAt'](_0x545c5e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x268e73);}}function ns(_0x2f5e3c,_0x14c07c){let _0xd2bf8a='';return _0xd2bf8a+=_0x2f5e3c['split']('*')['map']((_0x2e04f2,_0x3f32af)=>_0x3f32af%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2e04f2)+'</span>':nn(_0x2e04f2))['join'](''),_0x14c07c&&(_0xd2bf8a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x14c07c['value']+'\x22\x20title=\x22'+_0x14c07c['title']+'\x22></span>'),_0xd2bf8a;}function nn(_0x997287){const _0x3c0369=document['createElement']('span');return _0x3c0369['innerText']=_0x997287,_0x3c0369['innerHTML'];}function Wt(_0x443322){return _0x443322['sort']((_0x2336aa,_0x434136)=>'deletion'==_0x2336aa['type']&&'deletion'!=_0x434136['type']?-0x1:'deletion'!=_0x2336aa['type']&&'deletion'==_0x434136['type']?0x1:0x0);}function to(_0x583aa0,_0x24a945){let _0x49cfdc,_0x29390c=0x0;const _0x40f16e=[],_0x4fe1a6=_0x24a945['schema'];for(;_0x29390c<_0x583aa0['length'];){const _0x154444=_0x583aa0[_0x29390c],_0x1a3c95=_0x583aa0[_0x29390c+0x1];_0x49cfdc||(_0x49cfdc=_0x24a945['createPositionBefore'](_0x154444)),on(_0x24a945,_0x154444,_0x1a3c95)||(_0x40f16e['push'](_0x24a945['createRange'](_0x49cfdc,_0x4fe1a6['isObject'](_0x154444)?_0x24a945['createPositionAfter'](_0x154444):_0x24a945['createPositionAt'](_0x154444,'end'))),_0x49cfdc=null),_0x29390c++;}return _0x40f16e;}function on(_0xae2c59,_0x14f3a7,_0x50a1cc){if(!_0x50a1cc)return!0x1;const _0x2a27ba=_0xae2c59['createPositionAfter'](_0x14f3a7),_0x2e5daa=_0xae2c59['createPositionBefore'](_0x50a1cc);return _0x2a27ba['isTouching'](_0x2e5daa);}function Xt(_0x564999,_0x3c11b1,_0x438d73){for(;_0x438d73['length'];){const _0x45480b=_0x438d73['splice'](0x0,0x64);_0x564999['change'](()=>{for(const _0x304fc6 of _0x45480b)_0x304fc6['isInContent']&&_0x3c11b1['execute'](_0x304fc6['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x492a8d,_0x258633,_0x16ff20){super(_0x492a8d),this['_command']=_0x258633,this['_suggestions']=_0x16ff20,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20e496=Array['from'](this['_suggestions']['values']())['some'](_0x195009=>_0x195009['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20e496;}['execute'](){const _0x6fe5a7=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x342f1c of _0x6fe5a7){const _0x3aac95=_0x342f1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3aac95))return;}Xt(this['editor']['model'],this['_command'],_0x6fe5a7);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x22c51d,_0x9f5775,_0x13dbf8){super(_0x22c51d),this['_command']=_0x9f5775,this['_suggestions']=_0x13dbf8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1546df=this['editor']['model']['document']['selection'],_0x428109=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4870ba,_0x11f65c){const _0x501bd1=Array['from'](_0x4870ba['getRanges']()),_0x59b00d=new Set();for(const _0x2e17dc of _0x11f65c)if(_0x2e17dc['isInContent']){for(const _0x7e3874 of _0x501bd1)for(const _0x302913 of _0x2e17dc['getRanges']())(_0x7e3874['isIntersecting'](_0x302913)||_0x4870ba['isCollapsed']&&!_0x2e17dc['isMultiRange']&&_0x2e17dc['next']&&_0x302913['end']['isTouching'](_0x7e3874['start']))&&_0x59b00d['add'](_0x2e17dc);}return _0x59b00d;}(_0x1546df,_0x428109),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x897373=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x25cf79 of _0x897373){const _0x3c7909=_0x25cf79['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3c7909))return;}Xt(this['editor']['model'],this['_command'],_0x897373);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x5b310f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15eea3,_0x4586ab){super(),this['id']=_0x4586ab['id'],this['type']=_0x4586ab['type'],this['subType']=_0x4586ab['subType']||null,this['author']=_0x4586ab['author'],this['creator']=_0x4586ab['creator']||_0x4586ab['author'],this['isExternal']=Boolean(_0x4586ab['attributes']&&_0x4586ab['attributes']['@external']),this['data']=null,this['_model']=_0x15eea3,this['_onAccept']=_0x4586ab['onAccept'],this['_onDiscard']=_0x4586ab['onDiscard'],this['_onAttributesChange']=_0x4586ab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4586ab['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 _0x1e1972=this;for(;_0x1e1972['previous'];)_0x1e1972=_0x1e1972['previous'];return _0x1e1972;}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'](_0x38d3ac){this['_markerNames']['add'](_0x38d3ac);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x269946=>this['_model']['markers']['get'](_0x269946))['filter'](_0x1a07d2=>_0x1a07d2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e83ed=>{for(const _0x2b4f29 of this['getMarkers']())_0x5e83ed['removeMarker'](_0x2b4f29);}),this['_markerNames']['clear']();}['removeMarker'](_0x18e696){this['_model']['change'](_0x2d3b6b=>{_0x2d3b6b['removeMarker'](_0x18e696);}),this['_markerNames']['delete'](_0x18e696);}['addRange'](_0x36ffa6){const _0x19c994='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x19c994),this['_model']['change'](_0x5b2509=>{_0x5b2509['addMarker'](_0x19c994,{'range':_0x36ffa6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5d3ce0){for(const _0x7fede6 of this['getRanges']())if(_0x7fede6['isIntersecting'](_0x5d3ce0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1f1a4=>_0x1f1a4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5705d8,_0x3e67f9)=>[..._0x5705d8,..._0x3e67f9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6fc6f5=this['getRanges']();if(0x1!=_0x6fc6f5['length'])return null;const _0x3b8cfb=_0x6fc6f5[0x0],_0x22f427=_0x3b8cfb['start']['nodeAfter'],_0x577ddb=_0x3b8cfb['end']['nodeBefore'];return _0x22f427 instanceof _0x1a1ae2?_0x22f427!=_0x577ddb?null:_0x22f427: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 _0x35f0a9=[];let _0x1a63c3=this['head'];for(;_0x1a63c3;)_0x35f0a9['push'](_0x1a63c3),_0x1a63c3=_0x1a63c3['next'];return _0x35f0a9;}['setAttribute'](_0x4e9155,_0x5223a0){const _0x5e16d4=_0x30bb3b(this['attributes']);_0x4b1992(_0x5e16d4,_0x4e9155,_0x5223a0),_0x142687(_0x5e16d4,this['attributes'])||(this['attributes']=_0x5e16d4,this['_onAttributesChange'](_0x5e16d4));}['removeAttribute'](_0xbe9a12){const _0x14b7be=_0x30bb3b(this['attributes']);_0x333e2a(_0x14b7be,_0xbe9a12),_0x142687(_0x14b7be,this['attributes'])||(this['attributes']=_0x14b7be,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 _0x324bd7()['substr'](0x1,0x5);}}function o(_0x2575e6,_0x56dc91,_0x3f94ff){const _0x3c2f98=_0x2575e6['t'],t=_0x2575e6['t'];switch(_0x56dc91){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3f94ff);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f94ff);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f94ff);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f94ff);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f94ff);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',_0x3f94ff);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f94ff);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f94ff);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f94ff);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f94ff);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f94ff);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f94ff);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f94ff);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3f94ff);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f94ff);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f94ff);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f94ff);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f94ff);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f94ff);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f94ff);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f94ff);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f94ff);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f94ff);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f94ff);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'},_0x3f94ff);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f94ff);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f94ff);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f94ff);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f94ff);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f94ff);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'},_0x3f94ff);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f94ff);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f94ff);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f94ff);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f94ff);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'},_0x3f94ff);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f94ff);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'},_0x3f94ff);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3f94ff);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f94ff);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'},_0x3f94ff);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f94ff);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'},_0x3f94ff);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f94ff);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f94ff);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'},_0x3f94ff);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3f94ff);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 _0x3c2f98({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3f94ff);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3c2f98({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3f94ff);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3f94ff);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'},_0x3f94ff);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'},_0x3f94ff);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'},_0x3f94ff);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x56dc91;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38bfca,_0x4623a6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38bfca,this['_locale']=_0x4623a6;}['getDescriptions'](_0x2568e1){const _0x489240=[],_0x5bcfa5=new Set(),_0x4a79e8=new Set();for(let _0x39e161=0x0;_0x39e161<_0x2568e1['length'];_0x39e161++){const _0x398913=_0x2568e1[_0x39e161];if(!_0x398913['isInContent'])continue;const _0x266710=this['_handleCustomCallbackDescription'](_0x398913);if(_0x266710){if(null!=_0x398913['subType']){if(_0x5bcfa5['has'](_0x398913['subType']))continue;_0x5bcfa5['add'](_0x398913['subType']);}_0x489240['push'](_0x266710);}else{if('attribute'!=_0x398913['type'])'insertion'!=_0x398913['type']&&'deletion'!=_0x398913['type']||this['_handleInsertRemoveSuggestionDescription'](_0x489240,_0x398913,_0x2568e1[_0x39e161+0x1]);else{const _0xc086b5=_0x398913['data']['key'];if(_0x4a79e8['has'](_0xc086b5))continue;_0x4a79e8['add'](_0x398913['data']['key']),_0xc086b5==m?this['_handleRenameSuggestionDescription'](_0x489240,_0x398913):this['_handleAttributeSuggestionDescription'](_0x489240,_0x398913);}}}return this['_resolveDescriptionItems'](_0x489240);}['registerDescriptionCallback'](_0x43a3d8){this['_customCallbacks']['push'](_0x43a3d8);}['registerElementLabel'](_0x1ae1f2,_0x54610f,_0x1d79cf=_0x1a9e46['normal']){'function'==typeof _0x1ae1f2?_0x89fb3c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ae1f2,'label':_0x54610f,'priority':_0x1d79cf}):this['_itemLabels']['set'](_0x1ae1f2,_0x54610f);}['registerAttributeLabel'](_0x5d8c8f,_0x548bee){this['_attributeLabels']['set'](_0x5d8c8f,_0x548bee);}['getItemLabel'](_0x5ad4d1,_0x444f1d=0x1){let _0x427ec7;for(const _0xac082a of this['_itemLabelsCallbacks'])if(_0xac082a['matchingCallback'](_0x5ad4d1)){_0x427ec7=_0xac082a['label'];break;}return _0x427ec7||(_0x427ec7=this['_itemLabels']['get'](_0x5ad4d1['name'])),_0x427ec7?_0x427ec7(_0x444f1d):0x1!==_0x444f1d?_0x444f1d+'\x20'+_0x5ad4d1['name']+'s':''+_0x5ad4d1['name'];}['_addDescriptionItems'](_0x45b3ec,_0x84bae6){const _0x84e311=_0x84bae6['getFirstRange']()['getWalker'](),_0x117fdd='insertion'==_0x84bae6['type']?'add':'remove';for(const _0x1a121e of _0x84e311){const _0x736618=_0x1a121e['item'],_0x2632ab=_0x45b3ec[_0x45b3ec['length']-0x1];if(_0x736618['is']('$textProxy'))_0x2632ab&&_0x2632ab['type']['indexOf']('Container')>-0x1&&_0x45b3ec['pop'](),_0x2632ab&&'text'==_0x2632ab['type']?_0x2632ab[_0x117fdd]+=_0x736618['data']:_0x45b3ec['push']({'type':'text','add':'add'==_0x117fdd?_0x736618['data']:'','remove':'remove'==_0x117fdd?_0x736618['data']:''});else{if(this['_schema']['isObject'](_0x736618)){const _0x2d12b6=_0x736618;if(_0x2632ab&&_0x2632ab['type']['indexOf']('Container')>-0x1&&_0x45b3ec['pop'](),'elementEnd'==_0x1a121e['type'])continue;_0x2632ab&&_0x2632ab['type']==_0x117fdd+'Object'&&_0x2632ab['element']['name']==_0x2d12b6['name']?_0x2632ab['quantity']++:_0x45b3ec['push']({'type':_0x117fdd+'Object','element':_0x2d12b6,'quantity':0x1}),_0x84e311['skip'](_0x582ef8=>!('elementEnd'==_0x582ef8['type']&&_0x582ef8['item']==_0x736618));}else{if(this['_schema']['checkChild'](_0x736618,'$text')||_0x736618['is']('element','softBreak')){const _0x39a91d=_0x736618;if('add'==_0x117fdd&&'elementStart'==_0x1a121e['type']||'remove'==_0x117fdd&&'elementEnd'==_0x1a121e['type'])continue;if(_0x2632ab&&-0x1==_0x2632ab['type']['indexOf']('Container')){'text'==_0x2632ab['type']&&(_0x2632ab[_0x117fdd]+='\x0a');continue;}let _0x109bf2;if(_0x109bf2='add'==_0x117fdd?_0x39a91d['nextSibling']&&!this['_schema']['isObject'](_0x39a91d['nextSibling'])?_0x39a91d['nextSibling']:null:_0x39a91d['previousSibling']&&!this['_schema']['isObject'](_0x39a91d['previousSibling'])?_0x39a91d['previousSibling']:null,_0x39a91d['isEmpty']||_0x109bf2&&_0x109bf2['isEmpty']){const _0xf0c285=_0x109bf2&&_0x109bf2['isEmpty']?_0x109bf2:_0x39a91d;_0x2632ab&&_0x2632ab['type']==_0x117fdd+'EmptyContainer'&&_0x2632ab['element']['name']==_0xf0c285['name']?_0x2632ab['quantity']++:_0x45b3ec['push']({'type':_0x117fdd+'EmptyContainer','element':_0xf0c285,'quantity':0x1});}else _0x45b3ec['push']({'type':_0x117fdd+'Container','element':_0x39a91d});}}}}}['_resolveDescriptionItems'](_0x4773bd){const _0x16753c=this['_locale'],_0xa9d2ed=[],_0x5ab412=[],_0x57658a=[];for(const _0x1083a0 of _0x4773bd)switch(_0x1083a0['type']){case'text':if(_0x1083a0['add']=_0x1083a0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1083a0['remove']=_0x1083a0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1083a0['add']&&''!=_0x1083a0['remove']){_0xa9d2ed['push']({'type':'replace','content':o(_0x16753c,'REPLACE_TEXT',['\x22'+_0x1083a0['remove']+'\x22','\x22'+_0x1083a0['add']+'\x22'])});continue;}if(null!=_0x1083a0['add']['match'](/^ +$/)){_0xa9d2ed['push']({'type':'insertion','content':o(_0x16753c,'*Insert:*\x20%0',o(_0x16753c,'ELEMENT_SPACE',_0x1083a0['add']['length']))});continue;}if(null!=_0x1083a0['remove']['match'](/^ +$/)){_0xa9d2ed['push']({'type':'deletion','content':o(_0x16753c,'*Remove:*\x20%0',o(_0x16753c,'ELEMENT_SPACE',_0x1083a0['remove']['length']))});continue;}if(''!=_0x1083a0['add']){_0xa9d2ed['push']({'type':'insertion','content':o(_0x16753c,'*Insert:*\x20%0','\x22'+_0x1083a0['add']+'\x22')});continue;}_0xa9d2ed['push']({'type':'deletion','content':o(_0x16753c,'*Remove:*\x20%0','\x22'+_0x1083a0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xa9d2ed['push']({'type':'insertion','content':o(_0x16753c,'*Insert:*\x20%0',this['getItemLabel'](_0x1083a0['element'],_0x1083a0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xa9d2ed['push']({'type':'deletion','content':o(_0x16753c,'*Remove:*\x20%0',this['getItemLabel'](_0x1083a0['element'],_0x1083a0['quantity']))});continue;case'addContainer':_0xa9d2ed['push']({'type':'insertion','content':o(_0x16753c,'*Split:*\x20%0',this['getItemLabel'](_0x1083a0['element'],_0x1083a0['quantity']))});continue;case'removeContainer':_0xa9d2ed['push']({'type':'deletion','content':o(_0x16753c,'*Merge:*\x20%0',this['getItemLabel'](_0x1083a0['element'],_0x1083a0['quantity']))});continue;case'addFormat':_0x5ab412['push'](_0x1083a0['key']);continue;case'removeFormat':_0x57658a['push'](_0x1083a0['key']);continue;default:_0xa9d2ed['push'](_0x1083a0);}if(_0x5ab412['length']){const _0x2fe5ad=_0x5ab412['map'](_0x4f1ba3=>this['_attributeLabels']['has'](_0x4f1ba3)?this['_attributeLabels']['get'](_0x4f1ba3):_0x4f1ba3)['join'](',\x20');_0xa9d2ed['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2fe5ad)});}if(_0x57658a['length']){const _0x8149ad=_0x57658a['map'](_0xa6a80e=>this['_attributeLabels']['has'](_0xa6a80e)?this['_attributeLabels']['get'](_0xa6a80e):_0xa6a80e)['join'](',\x20');_0xa9d2ed['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x8149ad)});}return _0xa9d2ed;}['_handleCustomCallbackDescription'](_0x192f13){for(const _0x2787d7 of this['_customCallbacks']){const _0x3a94ce=_0x2787d7(_0x192f13);if(_0x3a94ce&&'type'in _0x3a94ce)return _0x3a94ce;}}['_handleAttributeSuggestionDescription'](_0x4ed82b,_0x2317f3){const _0xbe211a=_0x2317f3['data'],_0x5ece1c=void 0x0===_0xbe211a['newValue']?'removeFormat':'addFormat';_0x4ed82b['push']({'type':_0x5ece1c,'key':_0xbe211a['key']});}['_handleRenameSuggestionDescription'](_0x59e54c,_0x33e67d){_0x59e54c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33e67d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2cb46b,_0x3152ed,_0x16bb1b){if(this['_addDescriptionItems'](_0x2cb46b,_0x3152ed),_0x16bb1b&&_0x16bb1b['getFirstRange']()&&!_0x3152ed['getFirstRange']()['end']['isEqual'](_0x16bb1b['getFirstRange']()['start'])){const _0x26f05c=_0x2cb46b[_0x2cb46b['length']-0x1],_0x28d5bb='insertion'==_0x3152ed['type']?'add':'remove';_0x26f05c&&'text'==_0x26f05c['type']&&(_0x26f05c[_0x28d5bb]+='\x0a');}}}class U extends _0x370139{['afterInit'](){const _0x3e25ac=this['editor'],_0x3c72cd=_0x3e25ac['plugins']['get']('TrackChangesEditing');_0x3e25ac['commands']['get']('showAIAssistant')&&_0x3c72cd['enableCommand']('showAIAssistant');}}class V extends _0x370139{['afterInit'](){const _0x554556=this['editor'],_0xb645cd=_0x554556['locale'];if(!_0x554556['plugins']['has']('AlignmentEditing'))return;const _0x15d063=_0x554556['plugins']['get']('TrackChangesEditing');_0x15d063['enableDefaultAttributesIntegration']('alignment'),_0x15d063['registerBlockAttribute']('alignment'),_0x15d063['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xb645cd,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4242ce=this['editor'],_0x78c2ca=_0x4242ce['locale'];_0x4242ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f60c8=>{if('formatBlock'!=_0x3f60c8['type'])return;const {data:_0x15c1b8}=_0x3f60c8;if(_0x15c1b8&&'alignment'==_0x15c1b8['commandName']){const _0x41435a=_0x15c1b8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x78c2ca,'*Format:*\x20%0',function(_0x1cd7d0){switch(_0x1cd7d0){case'left':return o(_0x78c2ca,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x78c2ca,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x78c2ca,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x78c2ca,'FORMAT_JUSTIFY_TEXT');}}(_0x41435a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x370139{['afterInit'](){const _0x3fec9b=this['editor'],_0x2dd543=_0x3fec9b['plugins']['get']('TrackChangesEditing'),_0x40596e=_0x3fec9b['locale'];for(const _0x36be74 of Zt){if(!_0x3fec9b['plugins']['has'](_0x36be74))continue;const _0x3b3f76=_0x36be74['slice'](0x0,-0x7)['toLowerCase'](),_0x40bd1f='FORMAT_'+_0x3b3f76['toUpperCase']();_0x2dd543['enableDefaultAttributesIntegration'](_0x3b3f76),_0x2dd543['registerInlineAttribute'](_0x3b3f76),_0x2dd543['descriptionFactory']['registerAttributeLabel'](_0x3b3f76,o(_0x40596e,_0x40bd1f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x194b76=this['editor'],_0x7f554=_0x194b76['locale'],_0x4b482e=_0x194b76['plugins']['get']('TrackChangesEditing');function _0x16f6fb(_0x5244b0,_0x504505){_0x4b482e['descriptionFactory']['registerDescriptionCallback'](_0x36d50b=>{if('formatInline'!=_0x36d50b['type'])return;const {data:_0x5ef171}=_0x36d50b;return _0x5ef171&&_0x5ef171['commandName']===_0x5244b0?_0x5ef171['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7f554,'*Format:*\x20%0',_0x504505)}:{'type':'format','content':o(_0x7f554,'*Remove\x20format:*\x20%0',_0x504505)}:void 0x0;});}_0x16f6fb('bold',o(_0x7f554,'FORMAT_BOLD')),_0x16f6fb('italic',o(_0x7f554,'FORMAT_ITALIC')),_0x16f6fb('underline',o(_0x7f554,'FORMAT_UNDERLINE')),_0x16f6fb('code',o(_0x7f554,'FORMAT_CODE')),_0x16f6fb('strikethrough',o(_0x7f554,'FORMAT_STRIKETHROUGH')),_0x16f6fb('subscript',o(_0x7f554,'FORMAT_SUBSCRIPT')),_0x16f6fb('superscript',o(_0x7f554,'FORMAT_SUPERSCRIPT'));}}class F extends _0x370139{['afterInit'](){const _0x3d9aae=this['editor'],_0x32aef1=_0x3d9aae['locale'];if(!_0x3d9aae['plugins']['has']('BlockQuoteEditing'))return;const _0x86daf8=_0x3d9aae['plugins']['get']('TrackChangesEditing'),_0x1a1869=this['editor']['commands']['get']('blockQuote');_0x86daf8['enableCommand']('blockQuote',(_0x35649f,_0x3aff8e={})=>{const _0x52545b=this['editor']['model']['document']['selection'],_0x59d013=_0x3aff8e&&void 0x0!==_0x3aff8e['forceValue']?_0x3aff8e['forceValue']:!_0x1a1869['value'];let _0x2a7ed7=[];if(_0x59d013){const _0xbc77bd=Array['from'](_0x52545b['getSelectedBlocks']())['filter'](_0x124e54=>oo(_0x124e54)||function(_0x5269b9,_0x234b92){const _0x1d2874=_0x234b92['checkChild'](_0x5269b9['parent'],'blockQuote'),_0x5a2574=_0x234b92['checkChild'](['$root','blockQuote'],_0x5269b9);return _0x1d2874&&_0x5a2574;}(_0x124e54,this['editor']['model']['schema']));_0x2a7ed7=to(_0xbc77bd,_0x3d9aae['model']);}else{const _0x5550d1=Array['from'](_0x52545b['getSelectedBlocks']())['filter'](_0x257d05=>oo(_0x257d05));_0x2a7ed7=to(_0x5550d1,_0x3d9aae['model']);}_0x3d9aae['model']['change'](()=>{for(const _0x4b8315 of _0x2a7ed7)_0x86daf8['markBlockFormat'](_0x4b8315,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x59d013}]});});}),_0x86daf8['descriptionFactory']['registerDescriptionCallback'](_0x26e7f1=>{const {data:_0x246917}=_0x26e7f1;if(_0x246917&&'blockQuote'==_0x246917['commandName']){const _0x1a1c58=o(_0x32aef1,'ELEMENT_BLOCK_QUOTE');return _0x246917['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32aef1,'*Set\x20format:*\x20%0',_0x1a1c58)}:{'type':'format','content':o(_0x32aef1,'*Remove\x20format:*\x20%0',_0x1a1c58)};}});}}function oo(_0x53c745){return'blockQuote'==_0x53c745['parent']['name'];}class L extends _0x370139{['afterInit'](){const _0x1cde3b=this['editor'],_0x2a6f77=_0x1cde3b['locale'],_0xbe83f8=_0x1cde3b['plugins']['get']('TrackChangesEditing');_0x1cde3b['plugins']['has']('BookmarkEditing')&&(_0xbe83f8['enableCommand']('insertBookmark'),_0xbe83f8['enableDefaultAttributesIntegration']('updateBookmark'),_0xbe83f8['registerBlockAttribute']('bookmarkId'),_0xbe83f8['descriptionFactory']['registerDescriptionCallback'](_0x114439=>{if('insertion'!=_0x114439['type']&&'deletion'!=_0x114439['type']&&'attribute'!=_0x114439['type'])return;const _0x193eaf=_0x114439['getContainedElement']();if(null==_0x193eaf)return;if(!_0x193eaf['is']('element','bookmark'))return;const _0x31c4f9=_0x193eaf['getAttribute']('bookmarkId');if('insertion'==_0x114439['type'])return{'type':'insertion','content':o(_0x2a6f77,'*Insert:*\x20%0','\x22'+_0x31c4f9+'\x22\x20'+o(_0x2a6f77,'ELEMENT_BOOKMARK'))};if('deletion'==_0x114439['type'])return{'type':'deletion','content':o(_0x2a6f77,'*Remove:*\x20%0','\x22'+_0x31c4f9+'\x22\x20'+o(_0x2a6f77,'ELEMENT_BOOKMARK'))};const {data:_0x4b67a2}=_0x114439;if(!_0x4b67a2||'bookmarkId'!=_0x4b67a2['key'])return;return{'type':'format','content':o(_0x2a6f77,'*Set\x20bookmark:*\x20%0','\x22'+_0x4b67a2['newValue']+'\x22')};}));}}class J extends _0x370139{['afterInit'](){const _0x35e268=this['editor'];_0x35e268['plugins']['has']('CaseChange')&&(_0x35e268['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x35e268['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x35e268['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x370139{['afterInit'](){const _0x2738e6=this['editor'];_0x2738e6['commands']['get']('ckbox')&&_0x2738e6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x370139{['afterInit'](){const _0x40b9bb=this['editor'];if(!_0x40b9bb['plugins']['has']('CodeBlock'))return;const _0xc5a363=_0x40b9bb['plugins']['get']('TrackChangesEditing'),_0x175f29=_0x40b9bb['locale'],_0x34859f=_0x40b9bb['config']['get']('codeBlock')['languages'],_0xd6ae1a=_0x40b9bb['commands']['get']('codeBlock');_0xc5a363['enableCommand']('indentCodeBlock'),_0xc5a363['enableCommand']('outdentCodeBlock'),_0xc5a363['enableCommand']('codeBlock',(_0x3aa991,_0xba0ed0={})=>{const _0x439c0f=_0x40b9bb['model'],_0x2eb0d5=_0x40b9bb['model']['document']['selection'],_0x599368=_0xba0ed0&&void 0x0!==_0xba0ed0['forceValue']?_0xba0ed0['forceValue']:!_0xd6ae1a['value'];let _0x5c0214;_0xba0ed0['language']||(_0xba0ed0['language']=_0x34859f[0x0]['language']),_0x5c0214=_0x599368?Array['from'](_0x2eb0d5['getSelectedBlocks']())['filter'](_0x5d6562=>eo(_0x5d6562)||function(_0x4ce90c,_0x142fbd){if(_0x4ce90c['is']('rootElement')||_0x142fbd['isLimit'](_0x4ce90c))return!0x1;return _0x142fbd['checkChild'](_0x4ce90c['parent'],'codeBlock');}(_0x5d6562,_0x439c0f['schema'])):Array['from'](_0x2eb0d5['getSelectedBlocks']())['filter'](_0x476d81=>eo(_0x476d81));const _0xc4434f=to(_0x5c0214,_0x439c0f);_0x439c0f['change'](()=>{for(const _0x5c7906 of _0xc4434f)_0xc5a363['markBlockFormat'](_0x5c7906,{'commandName':'codeBlock','commandParams':[{..._0xba0ed0,'forceValue':_0x599368}],'formatGroupId':'blockName'});});}),(_0xc5a363['descriptionFactory']['registerElementLabel']('codeBlock',_0x64016=>o(_0x175f29,'ELEMENT_CODE_BLOCK',_0x64016)),_0xc5a363['descriptionFactory']['registerDescriptionCallback'](_0x46ce3f=>{if('formatBlock'!=_0x46ce3f['type'])return;const _0x49410c=_0x175f29['t'],{data:_0x34e0c0}=_0x46ce3f;if(!_0x34e0c0||'codeBlock'!=_0x34e0c0['commandName'])return;const _0x196b5a=_0x34e0c0['commandParams'][0x0]['language'],_0x3fb83d=_0x49410c(_0x34859f['find'](_0x3b11ca=>_0x3b11ca['language']===_0x196b5a)['label'])['toLowerCase']();return _0x34e0c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x175f29,'*Set\x20format:*\x20%0',o(_0x175f29,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3fb83d+')')}:{'type':'format','content':o(_0x175f29,'*Remove\x20format:*\x20%0',o(_0x175f29,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x32bc3b){return'codeBlock'==_0x32bc3b['name'];}class z extends _0x370139{['afterInit'](){const _0x5f101f=this['editor'];if(!_0x5f101f['plugins']['has']('CommentsEditing'))return;_0x5f101f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x41b8cd,_0x2636fe,_0x137a30){const _0x4b573c=[];for(const _0x506740 of _0x2636fe['getItems']())_0x506740['hasAttribute'](_0x41b8cd)&&_0x4b573c['push'](_0x137a30['createRangeOn'](_0x506740));return _0x4b573c;}function Ne(_0x1eb0ac,_0xb3ed6b,{showActiveMarker:_0xc09ad1=!0x0}={}){const _0x4b443c=_0x1eb0ac['plugins']['get']('TrackChangesEditing');return(_0xe0d35d,_0x7ec002,_0x25a6bb)=>{if(!_0x25a6bb['consumable']['test'](_0x7ec002['markerRange'],_0xe0d35d['name']))return;const _0xb80de7=_0x7ec002['markerRange']['getWalker'](),_0x33804d=_0x7ec002['markerRange']['start'],_0x1fd237=_0x1eb0ac['model']['schema'];let _0x443052=null,_0x18eb90=null,_0x13f289=!0x1,_0x109076=!0x1;for(const _0x17d166 of _0xb80de7){const _0x5a7821=_0x17d166['item'];_0x13f289=_0x13f289||_0x1fd237['isContent'](_0x5a7821);const _0x558678=_0x25a6bb['mapper']['toViewElement'](_0x5a7821);if(_0x558678&&_0x558678['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17d166['type']&&(_0x1fd237['isBlock'](_0x5a7821)&&!_0x1fd237['isLimit'](_0x5a7821)&&(_0x5a7821['nextSibling']||_0x33804d['isAtEnd']?_0x443052&&_0x443052['parent']==_0x5a7821||(_0x443052=_0x5a7821,_0x4cb4f0(_0x17d166['previousPosition']),_0x109076=!0x0):_0x18eb90=_0x18eb90||_0x17d166['previousPosition']));}function _0x4cb4f0(_0x1fa716){const {authorId:_0x462c53}=_0x4b443c['_splitMarkerName'](_0x7ec002['markerName']),_0x2a4a30=_0x25a6bb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb3ed6b,'data-author-id':_0x462c53}),_0x31cade=_0x25a6bb['mapper']['toViewPosition'](_0x1fa716);_0xc09ad1&&_0x4b443c['activeMarkers']['includes'](_0x7ec002['markerName'])&&_0x25a6bb['writer']['addClass']('ck-suggestion-marker--active',_0x2a4a30),_0x25a6bb['writer']['insert'](_0x31cade,_0x2a4a30),_0x25a6bb['mapper']['bindElementToMarker'](_0x2a4a30,_0x7ec002['markerName']);}_0x13f289||_0x109076||!_0x18eb90||_0x4cb4f0(_0x18eb90);};}class K extends _0x370139{static get['requires'](){return[_0x56bede];}['init'](){const _0x3083b4=this['editor'],_0x50ae3=_0x3083b4['plugins']['get']('TrackChangesEditing');_0x50ae3['enableCommand']('delete');const _0x43b4da=_0x3083b4['commands']['get']('deleteForward');_0x50ae3['enableCommand']('deleteForward',(_0x82493,_0x78bb8f={})=>{const _0x2d9e37=_0x3083b4['model']['createSelection'](_0x3083b4['model']['document']['selection']);_0x2d9e37['isCollapsed']&&_0x3083b4['model']['modifySelection'](_0x2d9e37,{'direction':'forward','unit':_0x78bb8f['unit']});const _0x921941=_0x2d9e37['getFirstRange'](),_0x4a4de3=_0x4d36a7['fromRange'](_0x921941);let _0xbf65be;_0x82493(_0x78bb8f),_0xbf65be='$graveyard'==_0x4a4de3['root']['rootName']?_0x3083b4['model']['createRange'](_0x921941['start']):_0x3083b4['model']['createRange'](_0x4a4de3['start'],_0x4a4de3['end']),_0x4a4de3['detach'](),_0x3083b4['model']['enqueueChange'](_0x43b4da['buffer']['batch'],_0xc77a8=>{_0x43b4da['buffer']['lock'](),_0xc77a8['setSelection'](_0xc77a8['createRange'](_0xbf65be['end'])),_0x43b4da['buffer']['unlock']();});}),_0x3083b4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x3083b4,'merge'),{'priority':'high'}),_0x3083b4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x55aee7,_0x224406,_0x1003e8)=>{_0x1003e8['options']['showSuggestionHighlights']&&Ne(_0x3083b4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x55aee7,_0x224406,_0x1003e8);},{'priority':'high'}),_0x3083b4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5903c2,_0x125f4c,_0x9dc63e)=>{const _0x3059b=_0x9dc63e['mapper']['markerNameToElements'](_0x125f4c['markerName']);if(_0x3059b){for(const _0x32d0d1 of _0x3059b)_0x32d0d1['is']('uiElement')&&(_0x9dc63e['mapper']['unbindElementFromMarkerName'](_0x32d0d1,_0x125f4c['markerName']),_0x9dc63e['writer']['remove'](_0x32d0d1));}},{'priority':'high'});}}class W extends _0x370139{['afterInit'](){const _0x46ed4e=this['editor'];if(!_0x46ed4e['plugins']['has']('ListEditing'))return;const _0x17e029=_0x46ed4e['locale'],_0x768613=_0x46ed4e['plugins']['get']('TrackChangesEditing'),_0x379631=_0x46ed4e['plugins']['has']('TodoListEditing'),_0x253f87=!!_0x46ed4e['config']['get']('list.multiBlock');function _0x12642c(_0x585ef9){return{'type':'format','content':''+o(_0x17e029,'*Set\x20format:*\x20%0',_0x585ef9)};}function _0x46bb47(_0x492fb1){return{'type':'format','content':''+o(_0x17e029,'*Remove\x20format:*\x20%0',_0x492fb1)};}_0x768613['enableDefaultAttributesIntegration']('numberedList'),_0x768613['enableDefaultAttributesIntegration']('bulletedList'),_0x768613['enableDefaultAttributesIntegration']('customNumberedList'),_0x768613['enableDefaultAttributesIntegration']('customBulletedList'),_0x768613['enableDefaultAttributesIntegration']('indentList'),_0x768613['enableDefaultAttributesIntegration']('outdentList'),_0x768613['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x768613['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x768613['registerBlockAttribute']('listItemId'),_0x768613['registerBlockAttribute']('listType'),_0x768613['registerBlockAttribute']('listIndent'),_0x253f87&&(_0x768613['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x768613['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x379631&&(_0x768613['enableDefaultAttributesIntegration']('todoList'),_0x768613['enableDefaultAttributesIntegration']('checkTodoList'),_0x768613['registerBlockAttribute']('todoListChecked'),_0x768613['descriptionFactory']['registerDescriptionCallback'](_0x360f70=>{const {data:_0x582959}=_0x360f70;if(_0x582959&&'todoListChecked'==_0x582959['key'])return{'type':'format','content':_0x582959['newValue']?o(_0x17e029,'*Check\x20item*'):o(_0x17e029,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c7b37=>{if(_0x3c7b37['batch']['isUndo'])return!0x1;let _0x1b2fc6=!0x1;const _0x17dfc3=_0x768613['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x183236=>'todoListChecked'===_0x768613['_getAttributeKey'](_0x183236));for(const _0x141e8e of _0x17dfc3){'todo'!=_0x141e8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x768613['_findSuggestions'](_0x141e8e['getFirstRange'](),'attribute')['find'](_0x304efa=>'listType'===_0x768613['_getAttributeKey'](_0x304efa['suggestion']))||(_0x3c7b37['removeMarker'](_0x141e8e['getFirstMarker']()),_0x1b2fc6=!0x0));}return _0x1b2fc6;})),_0x768613['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x17e029,'FORMAT_INDENT'));const _0x48c4c0={'type':'format','content':''};_0x768613['descriptionFactory']['registerDescriptionCallback'](_0x134044=>{const {data:_0x3b97b9}=_0x134044;if(!_0x3b97b9||'listType'!=_0x3b97b9['key'])return;let _0x2becf1=_0x134044['head'];for(;_0x2becf1;){if(_0x2becf1['data']&&(('listStyle'==_0x2becf1['data']['key']||'listMarkerStyle'==_0x2becf1['data']['key'])&&(_0x2becf1['data']['newValue']&&'default'!=_0x2becf1['data']['newValue']||'default'!=_0x2becf1['data']['oldValue']&&!_0x3b97b9['newValue'])||!_0x253f87&&_0x2becf1['data']['key']==m))return _0x48c4c0;_0x2becf1=_0x2becf1['next'];}if(null==_0x3b97b9['newValue'])switch(_0x3b97b9['oldValue']){case'bulleted':return _0x46bb47(o(_0x17e029,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46bb47(o(_0x17e029,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46bb47(o(_0x17e029,'ELEMENT_TODO_LIST'));}switch(_0x3b97b9['newValue']){case'bulleted':return _0x12642c(o(_0x17e029,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12642c(o(_0x17e029,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12642c(o(_0x17e029,'ELEMENT_TODO_LIST'));}}),_0x768613['descriptionFactory']['registerDescriptionCallback'](_0x29df40=>{const {data:_0x583515}=_0x29df40;if(_0x583515&&'listIndent'==_0x583515['key'])return null==_0x583515['newValue']||null==_0x583515['oldValue']&&0x0==_0x583515['newValue']?_0x48c4c0:void 0x0;}),_0x768613['descriptionFactory']['registerDescriptionCallback'](_0x22f08c=>{if('attribute'!=_0x22f08c['type'])return;const {data:_0x4bbe15}=_0x22f08c;if(!_0x4bbe15||'listItemId'!=_0x4bbe15['key'])return;const _0x3c10e5=Te(_0x22f08c);return'newValue'==_0x3c10e5?{'type':'format','content':o(_0x17e029,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3c10e5?{'type':'format','content':o(_0x17e029,'*Split:*\x20list\x20item')}:_0x48c4c0;}),_0x46ed4e['model']['document']['registerPostFixer'](_0x473c5d=>this['listItemIdFixer'](_0x473c5d)),_0x46ed4e['model']['document']['registerPostFixer'](_0x521b9e=>this['noTrackChangesFixer'](_0x521b9e)),_0x46ed4e['model']['document']['on']('change:data',(_0x3adf25,_0x35f6f7)=>{if(_0x35f6f7['isUndo']||!_0x35f6f7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3b88a7){if(_0x3b88a7['batch']['isUndo']||!_0x3b88a7['batch']['isLocal'])return!0x1;let _0x4d7515=!0x1;const _0x466788=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35eac5=>_0x35eac5['data']&&'listItemId'==_0x35eac5['data']['key'])['filter'](_0x1473a6=>_0x1473a6['data']['newValue']&&_0x1473a6['data']['oldValue']);for(const _0x20d40b of _0x466788)Te(_0x20d40b)||(_0x3b88a7['removeMarker'](_0x20d40b['getFirstMarker']()),_0x4d7515=!0x0);return _0x4d7515;}['noTrackChangesFixer'](_0x310ea1){if(_0x310ea1['batch']['isUndo']||!_0x310ea1['batch']['isLocal'])return!0x1;const _0x5ce8e8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5ce8e8['trackChangesCommand']['value'])return!0x1;let _0x191064=!0x1;const _0x8fb2eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2438bc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x79f78d=>'attribute'==_0x79f78d['type'])['filter'](_0x376c1c=>_0x8fb2eb['includes'](_0x376c1c['attributeKey']));if(0x0==_0x2438bc['length'])return _0x191064;for(const _0x4b881f of _0x2438bc){const _0x2e9970=_0x5ce8e8['_findSuggestions'](_0x4b881f['range'],'attribute')['filter'](_0x3a3dbc=>!_0x3a3dbc['meta']['isNextTo'])['map'](_0x1c71eb=>_0x1c71eb['suggestion'])['filter'](_0x4080fe=>{const _0x3f2301=_0x5ce8e8['_getAttributeKey'](_0x4080fe);return _0x8fb2eb['includes'](_0x3f2301);});if(_0x2e9970['length']){for(const _0x3bc7da of _0x2e9970)_0x310ea1['removeMarker'](_0x3bc7da['getFirstMarker']());_0x191064=!0x0;}}return _0x191064;}['assureChains'](){const _0x4bc65c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43d4e3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x27c69d;const _0x5a9004=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26bb4a=>{if(_0x26bb4a['data']['oldRange']||!_0x26bb4a['data']['newRange'])return null;if(!_0x26bb4a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x53a0eb}=_0x4bc65c['_splitMarkerName'](_0x26bb4a['name']);if(!_0x4bc65c['hasSuggestion'](_0x53a0eb))return null;const _0x10054d=_0x4bc65c['getSuggestion'](_0x53a0eb);return _0x43d4e3['includes'](_0x10054d['data']['key']);})['map'](_0x58a9e2=>{const {id:_0x51fdcc}=_0x4bc65c['_splitMarkerName'](_0x58a9e2['name']),_0x2eea83=_0x4bc65c['getSuggestion'](_0x51fdcc);return _0x27c69d=_0x2eea83['attributes']['groupId'],_0x2eea83['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a9004['size'])return;const _0x634273=_0x4bc65c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10970d=>'attribute'==_0x10970d['type']&&_0x10970d['data']&&_0x43d4e3['includes'](_0x10970d['data']['key'])&&_0x10970d['attributes']['groupId']!=_0x27c69d)['map'](_0x332ae3=>({'listItem':_0x332ae3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x332ae3['attributes']['groupId']})),_0x1e0dce=new Set();for(const {groupId:_0x475099,listItem:_0x41f51a}of _0x634273)_0x5a9004['has'](_0x41f51a)&&_0x1e0dce['add'](_0x475099);for(const _0x4c00b1 of _0x4bc65c['getSuggestions']())_0x1e0dce['has'](_0x4c00b1['attributes']['groupId'])&&_0x4c00b1['setAttribute']('groupId',_0x27c69d);}['_supportLegacySuggestions'](){const _0x9b9656=this['editor'],_0xc32f7c=_0x9b9656['locale'],_0x2b6c99=_0x9b9656['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2b6c99['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27b31b,_0x12bfbe){const _0x2ae81a=[];for(let _0x235795 of _0x27b31b)_0x235795['start']['nodeAfter']===_0x235795['end']['parent']&&(_0x235795=_0x9b9656['model']['createRange'](_0x9b9656['model']['createPositionAt'](_0x235795['start']['nodeAfter'],0x0))),_0x2ae81a['push'](_0x235795);_0x9b9656['model']['change'](_0x483b64=>{const _0x12e979=_0x9b9656['model']['document']['selection'],_0x5be700=Array['from'](_0x12e979['getRanges']())['map'](_0x5b1949=>_0x4d36a7['fromRange'](_0x5b1949));_0x483b64['setSelection'](_0x2ae81a),_0x9b9656['commands']['get'](_0x12bfbe['commandName'])['refresh'](),_0x12bfbe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x9b9656['execute'](_0x12bfbe['commandName'],..._0x12bfbe['commandParams']),_0x483b64['setSelection'](_0x5be700);for(const _0x8de924 of _0x5be700)_0x8de924['detach']();});}),_0x2b6c99['descriptionFactory']['registerElementLabel'](function(_0x5db0bb){const _0x1d5bc7=!_0x9b9656['model']['schema']['isObject'](_0x5db0bb),_0x56d215=_0x5db0bb['previousSibling'],_0x535c54=_0x5db0bb['nextSibling'],_0x1f62b9=_0x5db0bb['getAttribute']('listItemId'),_0x1efaec=!_0x56d215||_0x56d215['getAttribute']('listItemId')!==_0x1f62b9,_0x203099=!_0x535c54||_0x535c54['getAttribute']('listItemId')!==_0x1f62b9;return _0x1d5bc7&&Boolean(_0x1f62b9)&&_0x1efaec&&_0x203099;},_0x381368=>o(_0xc32f7c,'ELEMENT_LIST_ITEM',_0x381368));}['_registerLegacyDescription'](){const _0x948d1b=this['editor'],_0x3e3312=_0x948d1b['locale'];function _0x5a70a3(_0x437334){const _0x104af8=_0x948d1b['commands']['get']('bulletedList')['value'],_0x48390b=_0x948d1b['commands']['get']('numberedList')['value'];return'numberedList'===_0x437334?_0x104af8:_0x48390b;}_0x948d1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x18b3c8){if('formatBlock'!=_0x18b3c8['type'])return;const {data:_0x2ddaba}=_0x18b3c8;if(!_0x2ddaba)return;let _0x53dd4f,_0x434d89,_0x10d160,_0x114f36;switch(_0x2ddaba['commandName']){case'bulletedList':_0x10d160=_0x2ddaba['commandParams'][0x0]['forceValue'],_0x114f36=_0x5a70a3(_0x2ddaba['commandName']),_0x53dd4f=_0x10d160?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x114f36&&_0x948d1b['config']['get']('list.multiBlock')||(_0x53dd4f='*Change\x20to:*\x20%0'),_0x434d89={'type':'format','content':o(_0x3e3312,_0x53dd4f,o(_0x3e3312,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x10d160=_0x2ddaba['commandParams'][0x0]['forceValue'],_0x114f36=_0x5a70a3(_0x2ddaba['commandName']),_0x53dd4f=_0x10d160?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x114f36&&_0x948d1b['config']['get']('list.multiBlock')||(_0x53dd4f='*Change\x20to:*\x20%0'),_0x434d89={'type':'format','content':o(_0x3e3312,_0x53dd4f,o(_0x3e3312,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x53dd4f='*Indent:*\x20%0',_0x434d89={'type':'format','content':o(_0x3e3312,_0x53dd4f,o(_0x3e3312,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x53dd4f=function(_0x1a2dcf){const _0x33f8a8=_0x1a2dcf['getFirstRange']();let _0x2366dd=_0x33f8a8['start']['nodeAfter'];for(;_0x2366dd&&_0x33f8a8['containsItem'](_0x2366dd);){if(_0x2366dd['getAttribute']('listIndent')>0x0)return!0x1;_0x2366dd=_0x2366dd['nextSibling'];}return!0x0;}(_0x18b3c8)?o(_0x3e3312,'*Format:*\x20remove\x20from\x20%0',o(_0x3e3312,function(_0x478417){return'ELEMENT_'+_0x478417['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x18b3c8))):o(_0x3e3312,'*Outdent:*\x20%0',o(_0x3e3312,'ELEMENT_LIST_ITEM')),_0x434d89={'type':'format','content':_0x53dd4f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ddaba['multipleBlocks']&&(_0x53dd4f='*Merge:*\x20%0',_0x434d89={'type':'deletion','content':o(_0x3e3312,_0x53dd4f,o(_0x3e3312,'ELEMENT_LIST_ITEM'))});}return _0x434d89;});}}function Te(_0x4e2db8){let _0x3ad996=_0x4e2db8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ad996;){const _0x5661cb=_0x3ad996['getAttribute']('listItemId');if(!_0x5661cb)return!0x1;if(_0x5661cb==_0x4e2db8['data']['newValue'])return'newValue';if(_0x5661cb==_0x4e2db8['data']['oldValue'])return'oldValue';_0x3ad996=_0x3ad996['previousSibling'];}return!0x1;}class ye extends _0x370139{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1a78cc=this['editor']['config']['get']('list.properties'),_0x5b6324=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a78cc['styles']&&(_0x5b6324['enableDefaultAttributesIntegration']('listStyle'),_0x5b6324['registerBlockAttribute']('listStyle')),_0x1a78cc['reversed']&&(_0x5b6324['enableDefaultAttributesIntegration']('listReversed'),_0x5b6324['registerBlockAttribute']('listReversed')),_0x1a78cc['startIndex']&&(_0x5b6324['enableDefaultAttributesIntegration']('listStart'),_0x5b6324['registerBlockAttribute']('listStart'));const _0x5b6f13={'type':'format','content':''};_0x5b6324['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f43f3=this['editor']['locale'];_0x5b6324['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f43f3,'FORMAT_LIST_REVERSED')),_0x5b6324['descriptionFactory']['registerDescriptionCallback'](_0x2d464c=>{const {data:_0x26527a}=_0x2d464c;if(_0x26527a&&'listReversed'==_0x26527a['key'])return null==_0x26527a['newValue']||0x0==_0x26527a['newValue']&&null==_0x26527a['oldValue']?_0x5b6f13:void 0x0;}),_0x5b6324['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f43f3,'FORMAT_LIST_START')),_0x5b6324['descriptionFactory']['registerDescriptionCallback'](_0x1e9e3d=>{const {data:_0xba098c}=_0x1e9e3d;if(_0xba098c&&'listStart'==_0xba098c['key'])return null==_0xba098c['newValue']||0x1==_0xba098c['newValue']&&null==_0xba098c['oldValue']?_0x5b6f13:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xf132eb=>{if(_0xf132eb['batch']['isUndo'])return!0x1;let _0x51aa2a=!0x1;const _0x4a6867=_0x5b6324['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48bded=>{const _0x57d6bb=_0x5b6324['_getAttributeKey'](_0x48bded);return'listStart'==_0x57d6bb||'listReversed'==_0x57d6bb;});for(const _0xe2c936 of _0x4a6867){const _0xc186bc=_0xe2c936['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xc186bc||'customNumbered'==_0xc186bc)continue;_0x5b6324['_findSuggestions'](_0xe2c936['getFirstRange'](),'attribute')['find'](_0x454389=>'listType'==_0x5b6324['_getAttributeKey'](_0x454389['suggestion']))||(_0xf132eb['removeMarker'](_0xe2c936['getFirstMarker']()),_0x51aa2a=!0x0);}return _0x51aa2a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51ce4a){const _0x2c4dad=this['editor']['locale'],{data:_0x517e98}=_0x51ce4a,_0x1285e5={'type':'format','content':''};if(!_0x517e98||'listStyle'!=_0x517e98['key'])return;if(!_0x517e98['oldValue'])return'default'==_0x517e98['newValue']?_0x1285e5:{'type':'format','content':''+o(_0x2c4dad,'*Set\x20format:*\x20%0',o(_0x2c4dad,this['_getTranslationKeyForListStyle'](_0x517e98['newValue'])))};if(!_0x517e98['newValue']){if('default'==_0x517e98['oldValue'])return _0x1285e5;let _0x3e915d=_0x51ce4a['head'];for(;_0x3e915d;){if(_0x3e915d['data']&&'listType'==_0x3e915d['data']['key']&&_0x3e915d['data']['newValue'])return _0x1285e5;_0x3e915d=_0x3e915d['next'];}return{'type':'format','content':''+o(_0x2c4dad,'*Remove\x20format:*\x20%0',o(_0x2c4dad,this['_getTranslationKeyForListStyle'](_0x517e98['oldValue'])))};}if('default'!=_0x517e98['newValue'])return{'type':'format','content':''+o(_0x2c4dad,'*Set\x20format:*\x20%0',o(_0x2c4dad,this['_getTranslationKeyForListStyle'](_0x517e98['newValue'])))};let _0x21faf7=_0x51ce4a['head'];for(;_0x21faf7;){if(_0x21faf7['data']&&'listType'==_0x21faf7['data']['key']&&_0x21faf7['data']['newValue']&&_0x21faf7['data']['oldValue'])return _0x1285e5;_0x21faf7=_0x21faf7['next'];}return{'type':'format','content':o(_0x2c4dad,'*Set\x20format:*\x20%0',o(_0x2c4dad,'ELEMENT_'+_0x51ce4a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x23a4d3=this['editor'],_0x13f0bc=_0x23a4d3['locale'];_0x23a4d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5518=>{if('formatBlock'!=_0x3e5518['type'])return;const {data:_0x2e59c1}=_0x3e5518;if(!_0x2e59c1)return;let _0x5ebfa3,_0x5742c1;switch(_0x2e59c1['commandName']){case'listStyle':_0x5ebfa3='*Change\x20to:*\x20%0',_0x5742c1={'type':'format','content':o(_0x13f0bc,_0x5ebfa3,o(_0x13f0bc,this['_getTranslationKeyForListStyle'](_0x2e59c1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ebfa3=_0x2e59c1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5742c1={'type':'format','content':o(_0x13f0bc,_0x5ebfa3)};break;case'listStart':_0x5ebfa3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5742c1={'type':'format','content':o(_0x13f0bc,_0x5ebfa3,_0x2e59c1['commandParams'][0x0]['startIndex'])};}return _0x5742c1;});}['_getTranslationKeyForListStyle'](_0x5e729b){return'ELEMENT_'+function(_0x413d90){if(Se['includes'](_0x413d90))return'bulleted';if(_e['includes'](_0x413d90))return'numbered';return null;}(_0x5e729b)['toUpperCase']()+'_LIST_'+_0x5e729b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x370139{static get['requires'](){return[_0xa138a8];}['init'](){const _0x539b24=this['editor'],_0x54b492=_0x539b24['plugins']['get']('TrackChangesEditing'),_0x429b64=_0x539b24['commands']['get']('enter');_0x54b492['enableCommand']('enter',()=>{_0x539b24['model']['change'](_0x5b8ba5=>{const _0x34c205=_0x539b24['model']['document']['selection'],_0x164880=_0x34c205['getFirstPosition'](),_0x20a4a1=_0x4d36a7['fromRange'](_0x34c205['getFirstRange']());if(_0x429b64['enterBlock'](_0x5b8ba5)){const _0x5e9689=_0x539b24['model']['createPositionAt'](_0x164880['parent']['nextSibling'],0x0),_0x514726=_0x5b8ba5['createRange'](_0x164880,_0x5e9689);_0x54b492['markInsertion'](_0x514726);}else _0x5b8ba5['setSelection'](_0x5b8ba5['createRange'](_0x20a4a1['end']));_0x20a4a1['detach'](),_0x429b64['fire']('afterExecute',{'writer':_0x5b8ba5});});}),_0x539b24['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x539b24,'split'),{'priority':'high'}),_0x539b24['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2171c6,_0x1ea876,_0x4a1b88)=>{const _0x5bdcc3=_0x4a1b88['mapper']['markerNameToElements'](_0x1ea876['markerName']);if(_0x5bdcc3){for(const _0x5967a2 of _0x5bdcc3)_0x5967a2['hasClass']('ck-suggestion-marker-split')&&(_0x4a1b88['mapper']['unbindElementFromMarkerName'](_0x5967a2,_0x1ea876['markerName']),_0x4a1b88['writer']['remove'](_0x5967a2));}},{'priority':'high'}),_0x539b24['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27fe47,_0x306a21,_0x2c82a3)=>{_0x2c82a3['options']['showSuggestionHighlights']&&Ne(_0x539b24,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x27fe47,_0x306a21,_0x2c82a3);},{'priority':'high'});}}class Y extends _0x370139{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x251556=this['editor']['plugins']['get']('TrackChangesEditing');_0x251556['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x251556['enableCommand']('findNext'),_0x251556['enableCommand']('findPrevious'),_0x251556['enableCommand']('replace'),_0x251556['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c1816,_0x41ac5c,_0x1e535f={}){const _0x4855c3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c1816(_0x5f1d8d=>{let _0x297852=('string'==typeof _0x41ac5c?_0x4855c3['findByTextCallback'](_0x41ac5c,_0x1e535f):_0x41ac5c)(_0x5f1d8d);Array['isArray'](_0x297852)&&(_0x297852={'results':_0x297852,'searchText':'string'==typeof _0x41ac5c?_0x41ac5c:''});const _0x3c0a14=_0x297852['results']['filter'](_0x160672=>!0x1===this['_isInDeletionRange'](_0x160672,_0x5f1d8d['item']));return{..._0x297852,'results':_0x3c0a14};},_0x1e535f);}['_isInDeletionRange'](_0x3b603d,_0x5a6cd5){const _0x1251c8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a6cd5,_0x3b603d['start']),this['editor']['model']['createPositionAt'](_0x5a6cd5,_0x3b603d['end']));for(const _0x3aeec8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1251c8['getIntersection'](_0x3aeec8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x370139{['afterInit'](){const _0x37e721=this['editor']['locale'],_0x23a0cd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x277a86,commandName:_0x466bfb}of ro)this['editor']['plugins']['has'](_0x277a86)&&(_0x23a0cd['enableDefaultAttributesIntegration'](_0x466bfb),_0x23a0cd['registerInlineAttribute'](_0x466bfb));_0x23a0cd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x37e721,'FORMAT_FONT_SIZE')),_0x23a0cd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x37e721,'FORMAT_FONT_FAMILY')),_0x23a0cd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x37e721,'FORMAT_FONT_COLOR')),_0x23a0cd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x37e721,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574832=this['editor'],_0x34495e=_0x574832['locale'];_0x574832['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea660=>{const _0x4c31f2=_0x34495e['t'];if('formatInline'!=_0x2ea660['type'])return;const {data:_0x410d17}=_0x2ea660;if(null!=_0x410d17){if('fontSize'==_0x410d17['commandName']){const _0xefbb2a=_0x410d17['commandParams'][0x0]['value'];if(_0xefbb2a){const _0x51e352=_0x4c31f2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x80bf1b=>_0x80bf1b['model']==_0xefbb2a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x34495e,'*Set\x20font\x20size:*\x20%0',_0x51e352)};}return{'type':'format','content':o(_0x34495e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x410d17['commandName']){const _0x18546f=_0x410d17['commandParams'][0x0]['value'];return _0x18546f?{'type':'format','content':o(_0x34495e,'*Set\x20font\x20family:*\x20%0',_0x18546f)}:{'type':'format','content':o(_0x34495e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x410d17['commandName']){const _0x58538d=_0x410d17['commandParams'][0x0]['value'];if(_0x58538d){const _0x54f4b7=_0xd5e710(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2bf3e5=>_0x2bf3e5['model']==_0x58538d);let _0x15f3e9=_0x58538d,_0x1e41a3='';return _0x54f4b7&&(_0x15f3e9=_0x54f4b7['label'],_0x1e41a3=_0x4c31f2(_0x15f3e9)['toLowerCase']()),{'type':'format','content':o(_0x34495e,'*Set\x20font\x20color:*\x20%0',_0x1e41a3)['trim'](),'color':{'value':_0x58538d,'title':_0x1e41a3||_0x15f3e9}};}return{'type':'format','content':o(_0x34495e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x410d17['commandName']){const _0x1c2d98=_0x410d17['commandParams'][0x0]['value'];if(_0x1c2d98){const _0x2f5914=_0xd5e710(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2646a5=>_0x2646a5['model']==_0x1c2d98);let _0x15d557=_0x1c2d98,_0x1699cd='';return _0x2f5914&&(_0x15d557=_0x2f5914['label'],_0x1699cd=_0x4c31f2(_0x15d557)['toLowerCase']()),{'type':'format','content':o(_0x34495e,'*Set\x20font\x20background\x20color:*\x20%0',_0x1699cd)['trim'](),'color':{'value':_0x1c2d98,'title':_0x1699cd||_0x15d557}};}return{'type':'format','content':o(_0x34495e,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x370139{['afterInit'](){const _0x1f987c=this['editor'],_0x832d1=_0x1f987c['plugins']['get']('TrackChangesEditing'),_0x9417ad=_0x1f987c['commands']['get']('copyFormat'),_0xf1aa5e=_0x1f987c['commands']['get']('pasteFormat');_0x9417ad&&_0xf1aa5e&&(_0x832d1['enableDefaultAttributesIntegration']('pasteFormat'),_0x832d1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x36761d=this['editor'],_0x5ba3b6=_0x36761d['locale'];_0x36761d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2109a4=>{if('formatBlock'!=_0x2109a4['type']&&'formatInline'!=_0x2109a4['type'])return;const {data:_0x439d48}=_0x2109a4;if(_0x439d48&&'pasteFormat'===_0x439d48['commandName']){const _0x2cc8f9=[],_0x338de7=_0x439d48['commandParams'][0x0];for(const [_0x5d293d,_0x424c2f]of Object['entries'](_0x338de7))_0x2cc8f9['push'](so(_0x36761d,_0x5d293d,_0x424c2f));return _0x2cc8f9['length']?{'type':'format','content':o(_0x5ba3b6,'*Set\x20format\x20to:*\x20%0',_0x2cc8f9['join'](',\x20'))}:{'type':'format','content':o(_0x5ba3b6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x120e50,_0x3d941e,_0x1d21d8){const _0x550e93=_0x120e50['locale']['t'],_0x3403cc=_0x3d941e['split'](/(?=[A-Z])/)['join']('\x20'),_0x37f82e=_0x550e93(_0x3403cc['charAt'](0x0)['toUpperCase']()+_0x3403cc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1d21d8)return _0x37f82e;if('fontColor'===_0x3d941e||'fontBackgroundColor'===_0x3d941e){const _0x366c4a=_0xd5e710(_0x120e50['config']['get']('fontColor.colors'))['find'](_0x3db0d=>_0x3db0d['model']==_0x1d21d8);return _0x37f82e+'\x20('+(_0x366c4a?_0x550e93(_0x366c4a['label'])['toLowerCase']():_0x1d21d8)+')';}if('fontSize'===_0x3d941e&&isNaN(parseFloat(_0x1d21d8))){const _0x20689b=_0x120e50['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x120e50['config']['get']('fontSize.options'))['find'](_0x182461=>_0x182461['model']==_0x1d21d8);return _0x37f82e+'\x20('+(_0x20689b?_0x550e93(_0x20689b['title'])['toLowerCase']():_0x1d21d8)+')';}return _0x37f82e+'\x20('+_0x1d21d8+')';}class nt extends _0x370139{['_headingOptions'];['afterInit'](){const _0x1bdecf=this['editor'];if(!_0x1bdecf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1bdecf['config']['get']('heading.options');const _0x260589=_0x1bdecf['locale'],_0x1233a4=_0x1bdecf['plugins']['get']('TrackChangesEditing');_0x1233a4['enableDefaultAttributesIntegration']('heading');for(const _0x990e10 of this['_headingOptions'])'paragraph'!=_0x990e10['model']&&_0x1233a4['descriptionFactory']['registerElementLabel'](_0x990e10['model'],_0x362eb4=>{const _0x138821=this['_getHeadingLevel'](_0x990e10['model']);return null!==_0x138821?_0xdd5294(_0x362eb4,_0x138821):_0x5361cb(_0x362eb4,_0x990e10['title']);});function _0xdd5294(_0x114aaf,_0x5e156a){return o(_0x260589,'ELEMENT_HEADING',[_0x114aaf,_0x5e156a]);}function _0x5361cb(_0x148b01,_0x108907){return o(_0x260589,'ELEMENT_HEADING_CUSTOM',[_0x148b01,_0x108907]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9d8d6c=this['editor'],_0x1b6dff=_0x9d8d6c['locale'];function _0x5bb885(_0x43c75a,_0x3ac1cd){return o(_0x1b6dff,'ELEMENT_HEADING_CUSTOM',[_0x43c75a,_0x3ac1cd]);}_0x9d8d6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45f4d5=>{if('formatBlock'!=_0x45f4d5['type'])return;const {data:_0xed5dde}=_0x45f4d5;if(_0xed5dde&&'heading'==_0xed5dde['commandName']){const _0xb10b5=_0xed5dde['commandParams'][0x0]['value'],_0x4f1821=this['_getHeadingLevel'](_0xb10b5);if(null!==_0x4f1821)return{'type':'format','content':o(_0x1b6dff,'*Change\x20to:*\x20%0',(_0x2d24c8=0x1,_0x3771e9=_0x4f1821,o(_0x1b6dff,'ELEMENT_HEADING',[_0x2d24c8,_0x3771e9])))};const _0x359ce8=this['_headingOptions']['find'](_0x4697fc=>_0x4697fc['model']===_0xb10b5)['title'];return{'type':'format','content':o(_0x1b6dff,'*Change\x20to:*\x20%0',_0x5bb885(0x1,_0x359ce8))};}var _0x2d24c8,_0x3771e9;});}['_getHeadingLevel'](_0x67f43){const _0x9092f5=_0x67f43['match'](/^heading(\d+)/);if(_0x9092f5)return _0x9092f5[0x1];const _0x1de87c=this['_headingOptions']?.['find'](_0x27133e=>_0x27133e['model']==_0x67f43);if(_0x1de87c&&_0x1de87c['view']){const _0x18e0ff=_0x1de87c['view'],_0x9a741c=(_0x18e0ff['name']??_0x18e0ff)['match'](/^h(\d+)/);if(_0x9a741c)return _0x9a741c[0x1];}return null;}}class it extends _0x370139{['afterInit'](){const _0x1acbe3=this['editor'];if(!_0x1acbe3['plugins']['has']('HighlightEditing'))return;const _0x3e06de=_0x1acbe3['plugins']['get']('TrackChangesEditing'),_0x22920d=_0x1acbe3['locale'];_0x3e06de['enableDefaultAttributesIntegration']('highlight'),_0x3e06de['registerInlineAttribute']('highlight'),_0x3e06de['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22920d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8856e9=this['editor'],_0x280f21=_0x8856e9['locale'];_0x8856e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42e162=>{if('formatInline'!=_0x42e162['type'])return;const {data:_0x3aa45b}=_0x42e162;if(_0x3aa45b&&'highlight'==_0x3aa45b['commandName']){const _0x3e9a58=_0x280f21['t'],_0x2e8f7f=_0x3aa45b['commandParams'][0x0]['value'];if(_0x2e8f7f){const _0x130c09=_0x8856e9['config']['get']('highlight.options')['find'](_0x2c0b92=>_0x2c0b92['model']==_0x2e8f7f),_0xc4d772=_0x3e9a58(_0x130c09['title'])['toLowerCase']();return{'type':'format','content':o(_0x280f21,'*Set\x20highlight:*\x20%0',_0xc4d772),'color':{'value':_0x130c09['color'],'title':_0x130c09['title']}};}return{'type':'format','content':o(_0x280f21,'*Remove\x20highlight*',o(_0x280f21,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x370139{['afterInit'](){const _0x101956=this['editor'];if(!_0x101956['plugins']['has']('HorizontalLineEditing'))return;_0x101956['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3c4122=_0x101956['plugins']['get']('TrackChangesEditing'),_0x3a0f07=_0x101956['locale'];_0x3c4122['descriptionFactory']['registerElementLabel']('horizontalLine',_0x480a33=>o(_0x3a0f07,'ELEMENT_HORIZONTAL_LINE',_0x480a33)),_0x101956['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4484b9,{writer:_0x4dc1c9,options:_0x302413})=>{if(!_0x302413['showSuggestionHighlights'])return null;const _0x12094f=_0x4dc1c9['createContainerElement']('div'),_0x166693=_0x4dc1c9['createEmptyElement']('hr');return _0x4dc1c9['addClass']('ck-horizontal-line',_0x12094f),_0x4dc1c9['insert'](_0x4dc1c9['createPositionAt'](_0x12094f,0x0),_0x166693),_0x12094f;},'converterPriority':'high'});}}class st extends _0x370139{['afterInit'](){const _0x2999d5=this['editor'];if(!_0x2999d5['plugins']['has']('HtmlEmbed'))return;const _0x4441b2=_0x2999d5['plugins']['get']('TrackChangesEditing'),_0x467edd=_0x2999d5['locale'];_0x4441b2['descriptionFactory']['registerElementLabel']('rawHtml',_0x3ed9de=>o(_0x467edd,'ELEMENT_HTML_EMBED',_0x3ed9de)),_0x4441b2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4441b2['registerBlockAttribute']('value'),_0x4441b2['descriptionFactory']['registerDescriptionCallback'](_0x268e9d=>{if('attribute'!=_0x268e9d['type'])return;const {data:_0x495eb3}=_0x268e9d;if(_0x495eb3&&'value'==_0x495eb3['key']&&_0x268e9d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1b29d5=o(_0x467edd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x467edd,'*Change\x20%0\x20content*',_0x1b29d5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fc865=this['editor'],_0x3a54c9=_0x2fc865['locale'];_0x2fc865['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2829c3=>{if('formatBlock'!=_0x2829c3['type'])return;const {data:_0x202182}=_0x2829c3;if(_0x202182&&'htmlEmbed'==_0x202182['commandName']){const _0x39852c=o(_0x3a54c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a54c9,'*Change\x20%0\x20content*',_0x39852c)};}});}}class ot extends _0x370139{['afterInit'](){const _0x65d982=this['editor'];if(!_0x65d982['plugins']['has']('ImageEditing'))return;const _0x444485=_0x65d982['plugins']['get']('TrackChangesEditing'),_0x3f3353=_0x65d982['plugins']['get']('ImageUtils'),_0xf0a5c=_0x65d982['locale'];_0x444485['enableCommand']('insertImage'),_0x444485['descriptionFactory']['registerElementLabel']('imageBlock',_0x2848a4=>o(_0xf0a5c,'ELEMENT_IMAGE',_0x2848a4)),_0x444485['descriptionFactory']['registerElementLabel']('imageInline',_0x78bc13=>o(_0xf0a5c,'ELEMENT_INLINE_IMAGE',_0x78bc13)),_0x444485['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xf0a5c,'ELEMENT_CAPTION')),_0x65d982['plugins']['has']('ImageUploadEditing')&&_0x444485['enableCommand']('uploadImage'),_0x65d982['plugins']['has']('ImageBlockEditing')&&_0x65d982['plugins']['has']('ImageInlineEditing')&&(_0x444485['enableCommand']('imageTypeInline',(_0xdf7ec6,_0x278616)=>{const _0x215343=_0x3f3353['getClosestSelectedImageElement'](_0x65d982['model']['document']['selection']);_0x65d982['model']['change'](()=>{_0x444485['markBlockFormat'](_0x215343,{'commandName':'imageTypeInline','commandParams':[_0x278616]},[],'convertBlockImageToInline');});}),_0x444485['enableCommand']('imageTypeBlock',(_0x4cf023,_0x5c92b9)=>{_0x65d982['model']['change'](_0x520c51=>{let _0x32acc5=_0x3f3353['getClosestSelectedImageElement'](_0x65d982['model']['document']['selection']),_0x370be2=_0x520c51['createRangeOn'](_0x32acc5);const _0x3eb631=_0x2d82de['fromPosition'](_0x370be2['start'],'toPrevious'),_0x1710c8=_0x2d82de['fromPosition'](_0x370be2['end'],'toNext');_0x444485['forceDefaultExecution'](()=>_0x4cf023(_0x5c92b9)),_0x32acc5=_0x3f3353['getClosestSelectedImageElement'](_0x65d982['model']['document']['selection']),_0x370be2=_0x520c51['createRangeOn'](_0x32acc5);const _0x3cc37d=_0x520c51['createRange'](_0x3eb631,_0x1710c8);_0x3eb631['detach'](),_0x1710c8['detach'](),_0x444485['markBlockFormat'](_0x32acc5,{'commandName':'imageTypeInline','commandParams':[_0x5c92b9]},[],'convertInlineImageToBlock'),_0x3cc37d['start']['isBefore'](_0x370be2['start'])&&_0x444485['markInsertion'](_0x520c51['createRange'](_0x3cc37d['start'],_0x370be2['start']),'convertInlineImageToBlock'),_0x370be2['end']['isBefore'](_0x3cc37d['end'])&&_0x444485['markInsertion'](_0x520c51['createRange'](_0x370be2['end'],_0x3cc37d['end']),'convertInlineImageToBlock');});}),_0x444485['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x444485['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x444485['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x444485['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x444485['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x444485['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37c545])=>{const _0x3bbd7d=_0x444485['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x429532=_0x37c545['start'],_0x372c82=_0x37c545['end'];const _0x23746e=_0x65d982['model']['schema']['getNearestSelectionRange'](_0x429532,'backward'),_0xcb925a=_0x65d982['model']['schema']['getNearestSelectionRange'](_0x372c82,'forward');_0x23746e['isCollapsed']&&(_0x429532=_0x23746e['start']),_0xcb925a['isCollapsed']&&(_0x372c82=_0xcb925a['end']),_0x3bbd7d([_0x65d982['model']['createRange'](_0x429532,_0x372c82)]);}),_0x444485['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40f084),_0x444485['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40f084)),_0x65d982['plugins']['has']('ImageCaptionEditing')&&(_0x444485['enableCommand']('toggleImageCaption',(_0x2a2624,_0x2e3b4a)=>{const _0x1cc46f=_0x65d982['plugins']['get']('ImageCaptionUtils');let _0x20e1aa=_0x3f3353['getClosestSelectedImageElement'](_0x65d982['model']['document']['selection']),_0x1a12a2=_0x1cc46f['getCaptionFromImageModelElement'](_0x20e1aa);_0x65d982['model']['change'](()=>{if(_0x1a12a2)return void _0x444485['markDeletion'](_0x65d982['model']['createRangeOn'](_0x1a12a2));const _0x15f402=_0x3f3353['isBlockImage'](_0x20e1aa);_0x2a2624(_0x2e3b4a),_0x20e1aa=_0x3f3353['getClosestSelectedImageElement'](_0x65d982['model']['document']['selection']),_0x1a12a2=_0x1cc46f['getCaptionFromImageModelElement'](_0x20e1aa),_0x444485['markInsertion'](_0x65d982['model']['createRangeOn'](_0x1a12a2),_0x15f402?null:'imageCaption');});}),_0x444485['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40f084));const _0x384423=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2620a1(_0x557b6f,_0x2ea4d4){const _0x4b9bb9=_0x384423['findIndex'](({type:_0x40c898,subType:_0x5cb7af})=>_0x557b6f['type']==_0x40c898&&_0x557b6f['subType']==_0x5cb7af),_0x1da98f=_0x384423['findIndex'](({type:_0x1723fe,subType:_0xe4501c})=>_0x2ea4d4['type']==_0x1723fe&&_0x2ea4d4['subType']==_0xe4501c);if(_0x4b9bb9<0x0||_0x1da98f<0x0)return!0x1;const _0x56abaf=_0x557b6f['getFirstRange'](),_0x3e5c43=_0x2ea4d4['getFirstRange']();if((0x0==_0x4b9bb9||0x1==_0x4b9bb9)&&0x2==_0x1da98f&&_0x56abaf['isIntersecting'](_0x3e5c43))return!0x0;if(0x2==_0x4b9bb9&&0x3==_0x1da98f){const _0x364c7a=_0x444485['_findSuggestions'](_0x56abaf,'insertion')['filter'](({suggestion:_0x5e5b1a,meta:_0x477002})=>_0x477002['isOwn']&&'convertInlineImageToBlock'==_0x5e5b1a['subType']);if(_0x364c7a['length']>0x1&&_0x3e5c43['end']['isEqual'](_0x56abaf['start']))return!0x0;if(0x1==_0x364c7a['length']&&(_0x56abaf['start']['isEqual'](_0x3e5c43['end'])||_0x56abaf['end']['isEqual'](_0x3e5c43['start'])))return!0x0;}if(0x3==_0x4b9bb9&&0x3==_0x1da98f&&_0x56abaf['start']['isBefore'](_0x3e5c43['start'])){const _0x1d41a0=_0x56abaf['end']['nodeAfter'],_0x427592=_0x3e5c43['start']['nodeBefore'];return _0x3f3353['isBlockImage'](_0x1d41a0)&&_0x1d41a0===_0x427592;}return!0x1;}function _0x40f084(_0x56dd17,_0x152d36){return _0x2620a1(_0x56dd17,_0x152d36)?[_0x56dd17,_0x152d36]:_0x2620a1(_0x152d36,_0x56dd17)?[_0x152d36,_0x56dd17]:null;}_0x65d982['plugins']['has']('ImageResize')&&(_0x444485['enableDefaultAttributesIntegration']('resizeImage'),_0x444485['registerBlockAttribute']('resizedWidth'),_0x444485['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xf0a5c,'FORMAT_IMAGE_SIZE'))),_0x65d982['plugins']['has']('ImageTextAlternativeEditing')&&(_0x444485['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x444485['registerBlockAttribute']('alt')),_0x444485['descriptionFactory']['registerDescriptionCallback'](_0x27313b=>{if(!!_0x384423['find'](({type:_0x4fb4a8,subType:_0x3bc7bf})=>_0x27313b['type']==_0x4fb4a8&&_0x27313b['subType']==_0x3bc7bf))return _0x27313b['previous']?{}:void 0x0;}),_0x444485['descriptionFactory']['registerDescriptionCallback'](_0x153494=>{if('insertion'==_0x153494['type']||'deletion'==_0x153494['type']){const _0x6e3a23=_0x153494['getContainedElement']();if(_0x6e3a23&&_0x6e3a23['is']('element','caption'))return{'type':'insertion'==_0x153494['type']?'addObject':'removeObject','element':_0x6e3a23,'quantity':0x1};}}),_0x444485['descriptionFactory']['registerDescriptionCallback'](_0x729120=>'formatBlock'==_0x729120['type']&&'convertInlineImageToBlock'==_0x729120['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x729120['type']&&'convertBlockImageToInline'==_0x729120['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x444485['descriptionFactory']['registerDescriptionCallback'](_0x3eb01c=>{if('attribute'!=_0x3eb01c['type'])return;const {data:_0x18423e}=_0x3eb01c;if(!_0x18423e||'alt'!=_0x18423e['key'])return;const _0x5a7e39=_0x18423e['newValue'];return _0x5a7e39?{'type':'format','content':o(_0xf0a5c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a7e39+'\x22')}:{'type':'format','content':o(_0xf0a5c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f69c=this['editor'],_0x18af59=_0x20f69c['locale'];_0x20f69c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3627ce=>{if('formatBlock'!=_0x3627ce['type']&&'formatInline'!=_0x3627ce['type'])return;const {data:_0x1f8705}=_0x3627ce;if(_0x1f8705){if('imageTextAlternative'==_0x1f8705['commandName']){const _0x27fdd9=_0x1f8705['commandParams'][0x0]['newValue'];return _0x27fdd9?{'type':'format','content':o(_0x18af59,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x27fdd9+'\x22')}:{'type':'format','content':o(_0x18af59,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1f8705['commandName']){const _0x123d6f=_0x1f8705['commandParams'][0x0]['width'];return _0x123d6f?{'type':'format','content':o(_0x18af59,'*Set\x20image\x20width:*\x20%0',_0x123d6f)}:{'type':'format','content':o(_0x18af59,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x370139{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5e396a=this['editor']['locale'],_0x39bf59=this['editor']['plugins']['get']('TrackChangesEditing');_0x39bf59['enableDefaultAttributesIntegration']('replaceImageSource'),_0x39bf59['registerBlockAttribute']('src'),_0x39bf59['descriptionFactory']['registerDescriptionCallback'](_0x2d7544=>{if('attribute'!=_0x2d7544['type'])return;const {data:_0x52b9f0}=_0x2d7544;return _0x52b9f0&&'src'==_0x52b9f0['key']?_0x52b9f0['newValue']&&_0x52b9f0['oldValue']?{'type':'format','content':o(_0x5e396a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f75b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f75b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2f75b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f75b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2f75b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x572fe0=this['editor'],_0x3dd928=_0x572fe0['locale'];_0x572fe0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x571010=>{if('formatBlock'!=_0x571010['type']&&'formatInline'!=_0x571010['type'])return;const {data:_0x31830c}=_0x571010;if(!_0x31830c||'replaceImageSource'!=_0x31830c['commandName'])return;return{'type':'format','content':o(_0x3dd928,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x370139{['afterInit'](){const _0x25c03d=this['editor'];if(!_0x25c03d['plugins']['has']('ImageStyleEditing'))return;const _0x341cb0=_0x25c03d['plugins']['get']('TrackChangesEditing'),_0x10b208=_0x25c03d['plugins']['get']('ImageUtils'),_0x3b7f64={};_0x341cb0['enableCommand']('imageStyle',(_0x360017,_0x50773b)=>{const _0x4d3436=_0x25c03d['plugins']['get']('Users')['me'],_0x358377=_0x25c03d['commands']['get']('imageStyle');let _0x3925a9=_0x10b208['getClosestSelectedImageElement'](_0x25c03d['model']['document']['selection']),_0x51b5ca=_0x25c03d['model']['createRangeOn'](_0x3925a9),_0x7e287d=_0x358377['value'];if(_0x7e287d==_0x50773b['value'])return;const _0x3698a5={'commandName':'imageStyle','commandParams':[_0x50773b],'formatGroupId':_0x324bd7()};_0x25c03d['model']['change'](()=>{if(_0x341cb0['getSuggestions']()['filter'](_0x433d17=>_0x433d17['isInContent']&&_0x4d3436==_0x433d17['author']&&('formatBlock'==_0x433d17['type']||'formatInline'==_0x433d17['type'])&&('imageStylePreApply'==_0x433d17['subType']||'imageStylePostApply'==_0x433d17['subType'])&&_0x433d17['getFirstRange']()['isEqual'](_0x51b5ca))['forEach'](_0x20ecea=>_0x341cb0['discardSuggestion'](_0x20ecea['head'])),_0x3925a9=_0x10b208['getClosestSelectedImageElement'](_0x25c03d['model']['document']['selection']),_0x51b5ca=_0x25c03d['model']['createRangeOn'](_0x3925a9),_0x358377['refresh'](),_0x25c03d['commands']['get']('imageTypeInline')['refresh'](),_0x25c03d['commands']['get']('imageTypeBlock')['refresh'](),_0x7e287d=_0x358377['value'],_0x7e287d!=_0x50773b['value'])return _0x10b208['isInlineImage'](_0x3925a9)&&_0x358377['shouldConvertImageType'](_0x50773b['value'],_0x3925a9)?(_0x360017({..._0x50773b,'setImageSizes':!0x1}),_0x3925a9=_0x10b208['getClosestSelectedImageElement'](_0x25c03d['model']['document']['selection']),void _0x341cb0['markBlockFormat'](_0x3925a9,{..._0x3698a5,'commandReversedParams':[{'value':_0x7e287d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x10b208['isBlockImage'](_0x3925a9)?_0x341cb0['markBlockFormat'](_0x3925a9,_0x3698a5,[],'imageStylePostApply'):_0x341cb0['markInlineFormat'](_0x51b5ca,_0x3698a5,'imageStylePostApply'));});});for(const _0x3c8fb8 of _0x25c03d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3b7f64[_0x3c8fb8['name']]=_0x3c8fb8['title']['toLowerCase']();_0x341cb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x341cb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x341cb0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x341cb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2053f4])=>{_0x10b208['setImageNaturalSizeAttributes'](_0x2053f4['getContainedElement']());}),_0x341cb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c7449,_0x3821c2)=>{_0x341cb0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c7449,{'commandName':_0x3821c2['commandName'],'commandParams':_0x3821c2['commandReversedParams']});}),_0x341cb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a05b6,_0x465259){if(_0x111f27(_0x3a05b6,_0x465259))return[_0x3a05b6,_0x465259];if(_0x111f27(_0x465259,_0x3a05b6))return[_0x465259,_0x3a05b6];return null;});const _0x2a1350=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x111f27(_0x15096c,_0x110825){const _0x544bf4=_0x2a1350['findIndex'](({type:_0x217afd,subType:_0x543aff})=>_0x15096c['type']==_0x217afd&&_0x15096c['subType']==_0x543aff),_0x161e65=_0x2a1350['findIndex'](({type:_0x1bce06,subType:_0x33a907})=>_0x110825['type']==_0x1bce06&&_0x110825['subType']==_0x33a907);if(_0x544bf4<0x0||_0x161e65<0x0)return!0x1;const _0x5026eb=_0x15096c['getFirstRange'](),_0x1a49b4=_0x110825['getFirstRange']();if((0x0==_0x544bf4||0x1==_0x544bf4)&&0x2==_0x161e65&&_0x5026eb['isIntersecting'](_0x1a49b4))return!0x0;if(0x2==_0x544bf4&&0x3==_0x161e65){const _0x3395e6=_0x341cb0['_findSuggestions'](_0x5026eb,'insertion')['filter'](({suggestion:_0x813b89,meta:_0x111028})=>_0x111028['isOwn']&&'convertInlineImageToBlock'==_0x813b89['subType']);if(_0x3395e6['length']>0x1&&_0x1a49b4['end']['isEqual'](_0x5026eb['start']))return!0x0;if(0x1==_0x3395e6['length']&&(_0x5026eb['start']['isEqual'](_0x1a49b4['end'])||_0x5026eb['end']['isEqual'](_0x1a49b4['start'])))return!0x0;}if(0x3==_0x544bf4&&0x3==_0x161e65&&_0x5026eb['start']['isBefore'](_0x1a49b4['start'])){const _0x2998c0=_0x5026eb['end']['nodeAfter'],_0x55bffc=_0x1a49b4['start']['nodeBefore'];return _0x10b208['isBlockImage'](_0x2998c0)&&_0x2998c0===_0x55bffc;}return!0x1;}_0x25c03d['model']['document']['registerPostFixer'](()=>{let _0x157705=!0x1;const _0x134936=Array['from'](_0x25c03d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39c19d,data:_0x5af2fe}of _0x134936){const {group:_0x5f0772,type:_0x29659b,subType:_0x104bc5,id:_0x13ebdf}=_0x341cb0['_splitMarkerName'](_0x39c19d);if('suggestion'==_0x5f0772&&_0x341cb0['hasSuggestion'](_0x13ebdf)){if('formatBlock'==_0x29659b&&('imageStylePreApply'==_0x104bc5||'imageStylePostApply'==_0x104bc5)){const _0x2cd3da=_0x341cb0['getSuggestion'](_0x13ebdf);if(_0x5af2fe['newRange']){const _0x125941=_0x2cd3da['getFirstRange']()['getContainedElement']();if(_0x10b208['isBlockImage'](_0x125941))continue;_0x341cb0['discardSuggestion'](_0x2cd3da),_0x157705=!0x0;}}if('insertion'==_0x29659b&&'imageCaption'==_0x104bc5&&!_0x5af2fe['newRange']){const _0x427e8c=_0x341cb0['getSuggestion'](_0x13ebdf);_0x427e8c['next']&&_0x427e8c['next']['isInContent']&&(_0x341cb0['discardSuggestion'](_0x427e8c['next']),_0x157705=!0x0);}}}return _0x157705;}),this['_registerLegacyDescription'](_0x3b7f64);}['_registerLegacyDescription'](_0x3df127){const _0x1ac584=this['editor'],_0x372d52=_0x1ac584['locale'];_0x1ac584['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x430e6a=>{if('formatBlock'!=_0x430e6a['type']&&'formatInline'!=_0x430e6a['type'])return;const {data:_0x5bc09b}=_0x430e6a;if(!_0x5bc09b||'imageStyle'!=_0x5bc09b['commandName'])return;const _0x544434=_0x5bc09b['commandParams'][0x0]['value'];return _0x48b9bb('side'===_0x544434?o(_0x372d52,'FORMAT_SIDE_IMAGE'):_0x3df127[_0x544434]||_0x544434);function _0x48b9bb(_0x304c8c){return{'type':'format','content':o(_0x372d52,'*Format:*\x20%0',_0x304c8c)};}});}}class ct extends _0x370139{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1bf17e){super(_0x1bf17e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2caa05=this['editor'],_0x567565=_0x2caa05['commands']['get']('importWord'),_0x399f18=_0x2caa05['commands']['get']('trackChanges');_0x567565&&(_0x567565['on']('execute',(_0x596613,[,_0x16cd7f])=>{this['_trackChangesValueDuringImport']=_0x399f18['value'],_0x16cd7f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x567565,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x567565,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x399f18['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2caa05['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4ca8dd,_0x29dd13){const {suggestions:_0x566eaa}=_0x29dd13,_0x105cda=this['editor']['commands']['get']('trackChanges'),_0x3889f0=_0x105cda['value'];this['_trackChangesValueDuringImport']!==_0x3889f0&&(_0x105cda['execute'](),this['_trackChangesExecuted']=!0x0),_0x566eaa&&_0x566eaa['forEach'](({id:_0x1c0333,type:_0xe9a0d8,author:_0x183851,created_at:_0xcb8b8c})=>{const _0x2999e1={'id':_0x1c0333,'type':_0xe9a0d8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x183851,'createdAt':_0xcb8b8c?new Date(_0xcb8b8c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2999e1);});}}class ut extends _0x370139{['afterInit'](){const _0x326964=this['editor'],_0x4b57bd=_0x326964['plugins']['get']('TrackChangesEditing');if(_0x326964['plugins']['has']('IndentEditing')&&(_0x4b57bd['enableCommand']('indent'),_0x4b57bd['enableCommand']('outdent')),_0x326964['plugins']['has']('IndentBlock')){for(const _0xbb68ae of['indentBlock','outdentBlock'])_0x4b57bd['enableDefaultAttributesIntegration'](_0xbb68ae);}const _0x501deb=_0x326964['locale'];_0x4b57bd['registerBlockAttribute']('blockIndent'),_0x4b57bd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x501deb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4529a4=this['editor'],_0x39549f=_0x4529a4['locale'],_0x5057a1=_0x4529a4['plugins']['get']('TrackChangesEditing');_0x5057a1['descriptionFactory']['registerDescriptionCallback'](_0x55e0c5=>{if('formatBlock'!=_0x55e0c5['type'])return;const {data:_0x119de3}=_0x55e0c5;if(!_0x119de3)return;if('indentBlock'!=_0x119de3['commandName']&&'outdentBlock'!=_0x119de3['commandName'])return;const _0x3224f7=_0x55e0c5['getItems']()[0x0],_0x1c9605=_0x5057a1['descriptionFactory']['getItemLabel'](_0x3224f7);return'indentBlock'==_0x119de3['commandName']?{'type':'format','content':o(_0x39549f,'*Indent:*\x20%0',_0x1c9605)}:'outdentBlock'==_0x119de3['commandName']?{'type':'format','content':o(_0x39549f,'*Outdent:*\x20%0',_0x1c9605)}:void 0x0;});}}class ft extends _0x370139{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x370139{['afterInit'](){const _0x4df6cd=this['editor'];if(!_0x4df6cd['plugins']['has']('LinkEditing'))return;const _0x55e695=_0x4df6cd['plugins']['get']('TrackChangesEditing'),_0x191161=_0x4df6cd['commands']['get']('link');_0x55e695['enableDefaultAttributesIntegration']('link'),_0x55e695['enableDefaultAttributesIntegration']('unlink'),_0x55e695['registerInlineAttribute']('linkHref');for(const _0xf1213b of _0x191161['manualDecorators'])_0x55e695['registerInlineAttribute'](_0xf1213b['id']),_0x55e695['descriptionFactory']['registerAttributeLabel'](_0xf1213b['id'],'link\x20('+_0xf1213b['label']['toLowerCase']()+')');_0x55e695['descriptionFactory']['registerDescriptionCallback'](_0xd01cdd=>{if('attribute'!=_0xd01cdd['type'])return;const {data:_0x99f93c}=_0xd01cdd;if(!_0x99f93c||'linkHref'!=_0x99f93c['key'])return;const _0x3436a6=_0x99f93c['newValue'],_0x4e5d21=_0x4df6cd['locale'];return{'type':'format','content':null==_0x3436a6?o(_0x4e5d21,'*Remove\x20link*'):o(_0x4e5d21,'*Set\x20link:*\x20%0','\x22'+_0x3436a6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bf3d6=this['editor'],_0x280261=_0x1bf3d6['locale'];_0x1bf3d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cd882=>{if('formatInline'!=_0x4cd882['type'])return;const {data:_0x15cb09}=_0x4cd882;if(_0x15cb09){if('link'==_0x15cb09['commandName']){const _0x329771=_0x15cb09['commandParams'][0x0];return{'type':'format','content':o(_0x280261,'*Set\x20link:*\x20%0','\x22'+_0x329771+'\x22')};}return'unlink'==_0x15cb09['commandName']?{'type':'format','content':o(_0x280261,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x370139{['afterInit'](){const _0x51c296=this['editor'],_0x43b9d7=_0x51c296['locale'];if(!_0x51c296['plugins']['has']('LegacyListEditing'))return;const _0x2eedd2=_0x51c296['plugins']['get']('TrackChangesEditing'),_0x430028=_0x51c296['plugins']['has']('LegacyTodoListEditing');function _0x2d9b69(_0x2b19b5){return()=>{const _0x250f93=_0x51c296['model']['document']['selection'],_0x16e2ce=_0x51c296['commands']['get'](_0x2b19b5);if(_0x16e2ce['value'])return void _0x51c296['execute']('paragraph',{});const _0x1f6b98=_0x2b19b5['slice'](0x0,-0x4),_0x1a98c3=function(_0x316b83,_0x4e896e,_0xe060b6){let _0x22a8d2=Array['from'](_0x316b83)['filter'](_0x2d2c3b=>function(_0xd8424a,_0x14bebb){return _0x14bebb['checkChild'](_0xd8424a['parent'],'listItem')&&!_0x14bebb['isObject'](_0xd8424a);}(_0x2d2c3b,_0xe060b6));_0x22a8d2=_0x22a8d2['filter'](_0x10394a=>!_0x10394a['is']('element','listItem')||_0x10394a['getAttribute']('listType')!=_0x4e896e);const _0x240662=new Set();for(const _0x39b2ed of _0x22a8d2)_0x39b2ed['is']('element','listItem')?_0x240662['add'](Le(_0x39b2ed)):_0x240662['add'](_0x39b2ed);return Array['from'](_0x240662);}(_0x250f93['getSelectedBlocks'](),_0x1f6b98,_0x51c296['model']['schema']);_0x51c296['model']['change'](()=>{for(const _0x4c6834 of _0x1a98c3)_0x2eedd2['markBlockFormat'](_0x4c6834,{'commandName':_0x2b19b5,'commandParams':[{'forceValue':!_0x16e2ce['value']}],'formatGroupId':'blockName'},Ee(_0x4c6834));});};}function _0x25c1e0(_0x285f6a){return()=>{const _0x3d1220=function(_0x57b946){let _0x22475c=Array['from'](_0x57b946);const _0x34870f=_0x22475c['findIndex'](_0x2bd8fa=>'listItem'!=_0x2bd8fa['name']);return _0x34870f>-0x1&&(_0x22475c=_0x22475c['slice'](0x0,_0x34870f)),_0x22475c;}(_0x51c296['model']['document']['selection']['getSelectedBlocks']()),_0x473cef=_0x51c296['model']['createRange'](_0x51c296['model']['createPositionAt'](_0x3d1220[0x0],'before'),_0x51c296['model']['createPositionAt'](_0x3d1220[_0x3d1220['length']-0x1],'end'));_0x51c296['model']['change'](()=>{_0x2eedd2['markBlockFormat'](_0x473cef,{'commandName':_0x285f6a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43d232){const _0xaa70db=new Set();for(const _0x3187f6 of _0x43d232){let _0x333894=_0x3187f6['nextSibling'];for(;_0x333894&&_0x333894['getAttribute']('listIndent')>_0x3187f6['getAttribute']('listIndent');)_0xaa70db['add'](_0x333894),_0x333894=_0x333894['nextSibling'];}return Array['from'](_0xaa70db);}(_0x3d1220));});};}_0x2eedd2['enableCommand']('numberedList',_0x2d9b69('numberedList')),_0x2eedd2['enableCommand']('bulletedList',_0x2d9b69('bulletedList')),_0x430028&&_0x2eedd2['enableCommand']('todoList',_0x2d9b69('todoList')),_0x2eedd2['enableCommand']('indentList',_0x25c1e0('indentList')),_0x2eedd2['enableCommand']('outdentList',_0x25c1e0('outdentList')),_0x430028&&_0x2eedd2['enableCommand']('checkTodoList',()=>{const _0x32be63=_0x51c296['commands']['get']('checkTodoList'),_0x5ae297=Array['from'](_0x32be63['_selectedElements']);_0x5ae297['filter'](_0x15ffa7=>_0x15ffa7['getAttribute']('todoListChecked')!=_0x32be63['value']),_0x51c296['model']['change'](()=>{for(const _0x27d527 of _0x5ae297)_0x2eedd2['markBlockFormat'](_0x27d527,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x32be63['value']}]});});}),_0x2eedd2['descriptionFactory']['registerElementLabel']('listItem',_0x2d644a=>o(_0x43b9d7,'ELEMENT_LIST_ITEM',_0x2d644a)),_0x2eedd2['descriptionFactory']['registerDescriptionCallback'](_0x5a98f4=>{if('formatBlock'!=_0x5a98f4['type']&&'formatInline'!=_0x5a98f4['type'])return;const {data:_0x257bd2}=_0x5a98f4;if(_0x257bd2){if('numberedList'==_0x257bd2['commandName']||'bulletedList'==_0x257bd2['commandName']||'todoList'==_0x257bd2['commandName'])switch(_0x257bd2['commandName']['replace']('List','')){case'bulleted':return _0xea8843(o(_0x43b9d7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xea8843(o(_0x43b9d7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xea8843(o(_0x43b9d7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x257bd2['commandName'])return{'type':'format','content':o(_0x43b9d7,'*Indent:*\x20%0',o(_0x43b9d7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x257bd2['commandName'])return{'type':'format','content':o(_0x43b9d7,'*Outdent:*\x20%0',o(_0x43b9d7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x257bd2['commandName'])return _0x257bd2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43b9d7,'*Check\x20item*')}:{'type':'format','content':o(_0x43b9d7,'*Uncheck\x20item*')};}function _0xea8843(_0x3b3493){return{'type':'format','content':o(_0x43b9d7,'*Change\x20to:*\x20%0',_0x3b3493)};}});}}function Le(_0x2e8085){const _0x4f1540=_0x2e8085['getAttribute']('listIndent');if(0x0==_0x4f1540)return _0x2e8085;let _0x515e59=_0x2e8085;for(;_0x2e8085['previousSibling']&&_0x2e8085['previousSibling']['is']('element','listItem');){const _0x22a464=_0x2e8085['previousSibling']['getAttribute']('listIndent');if(_0x22a464==_0x4f1540)_0x515e59=_0x2e8085['previousSibling'];else{if(_0x22a464<_0x4f1540)break;}_0x2e8085=_0x2e8085['previousSibling'];}return _0x515e59;}function Ee(_0x486a9e){const _0x25dcff=[];if(_0x486a9e['is']('element','listItem')&&_0x486a9e['getAttribute']('listIndent')>0x0){let _0x410d0a=_0x486a9e['nextSibling'];for(;_0x410d0a&&'listItem'==_0x410d0a['name']&&_0x410d0a['getAttribute']('listIndent')==_0x486a9e['getAttribute']('listIndent');)_0x25dcff['push'](_0x410d0a),_0x410d0a=_0x410d0a['nextSibling'];}return _0x25dcff;}class Q extends _0x370139{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3f2086=this['editor']['config']['get']('list.properties'),_0x1db2c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f2086['styles']&&_0x1db2c5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3f2086['reversed']&&_0x1db2c5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3f2086['startIndex']&&_0x1db2c5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1db2c5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3f4f86,_0x3f7bc1={}){const _0x1493a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51ecb8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1493a8['markMultiRangeBlockFormat'](_0x51ecb8,{'commandName':'listStyle','commandParams':[{'type':_0x3f7bc1['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b14d4,_0x425cd9={}){const _0x2213bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d0e4=this['_getSuggestionBlocks'](_0x4db04b=>_0x4db04b['is']('element','listItem')&&'numbered'===_0x4db04b['getAttribute']('listType'));if(_0x22d0e4['length']<0x1)return;const _0x5daad6=_0x22d0e4['map'](_0x1ae404=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ae404,'before'),this['editor']['model']['createPositionAt'](_0x1ae404,0x0)));this['editor']['model']['change'](()=>{_0x2213bb['markMultiRangeBlockFormat'](_0x5daad6,{'commandName':'listReversed','commandParams':[{'reversed':_0x425cd9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3aa1c0,_0x311153={}){const _0x36b2a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x307e73=this['_getSuggestionBlocks'](_0x304adb=>_0x304adb['is']('element','listItem')&&'numbered'===_0x304adb['getAttribute']('listType'));if(_0x307e73['length']<0x1)return;const _0x3df5ce=_0x307e73['map'](_0x356d50=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x356d50,'before'),this['editor']['model']['createPositionAt'](_0x356d50,0x0)));this['editor']['model']['change'](()=>{_0x36b2a6['markMultiRangeBlockFormat'](_0x3df5ce,{'commandName':'listStart','commandParams':[{'startIndex':_0x311153['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x16ab62){if('formatBlock'!=_0x16ab62['type']&&'formatInline'!=_0x16ab62['type'])return;const _0x2b86eb=this['editor']['locale'],{data:_0x21e3b4}=_0x16ab62;if(!_0x21e3b4)return;let _0x34c752,_0x4f14a4;switch(_0x21e3b4['commandName']){case'listStyle':_0x34c752='*Change\x20to:*\x20%0',_0x4f14a4={'type':'format','content':o(_0x2b86eb,_0x34c752,o(_0x2b86eb,this['_getTranslationKeyForListStyle'](_0x21e3b4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34c752=_0x21e3b4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f14a4={'type':'format','content':o(_0x2b86eb,_0x34c752)};break;case'listStart':_0x34c752='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f14a4={'type':'format','content':o(_0x2b86eb,_0x34c752,_0x21e3b4['commandParams'][0x0]['startIndex'])};}return _0x4f14a4;}['_getSuggestionBlocksForListStyle'](){const _0x51ac83=this['editor']['plugins']['get']('LegacyListUtils');let _0x5abc73=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5abc73[0x0]?.['is']('element','listItem')&&_0x5abc73['unshift'](..._0x51ac83['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5abc73[_0x5abc73['length']-0x1]?.['is']('element','listItem')&&_0x5abc73['push'](..._0x51ac83['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5abc73=[...new Set(_0x5abc73)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5abc73=_0x5abc73['filter'](_0x2cafc7=>_0x2cafc7['is']('element','listItem'))),_0x5abc73;}['_getSuggestionBlocks'](_0x1326bd){const _0x105003=this['editor']['plugins']['get']('LegacyListUtils');let _0x5aed9d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1326bd)['map'](_0x3eeef3=>{const _0x5971f7=this['editor']['model']['createPositionAt'](_0x3eeef3,0x0);return[..._0x105003['getSiblingNodes'](_0x5971f7,'backward'),..._0x105003['getSiblingNodes'](_0x5971f7,'forward')];})['flat']();return _0x5aed9d=[...new Set(_0x5aed9d)],_0x5aed9d;}['_getTranslationKeyForListStyle'](_0x11234d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x11234d)||'default')['toUpperCase']()+'_LIST_'+_0x11234d['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x370139{['afterInit'](){const _0x14503c=this['editor'];if(!_0x14503c['plugins']['has']('MediaEmbedEditing'))return;const _0x190270=_0x14503c['plugins']['get']('TrackChangesEditing'),_0x3ec63d=_0x14503c['locale'];_0x190270['enableCommand']('mediaEmbed'),_0x190270['descriptionFactory']['registerElementLabel']('media',_0x2404e1=>o(_0x3ec63d,'ELEMENT_MEDIA',_0x2404e1)),_0x14503c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x384f85,{writer:_0x40ae75,options:_0x196696})=>{if(_0x196696['showSuggestionHighlights'])return _0x40ae75['createEmptyElement']('div');},'converterPriority':'high'}),_0x14503c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5c2a3c,_0x59d2c3,_0x4e9b1f)=>{_0x4e9b1f['options']['showSuggestionHighlights']&&_0x5c2a3c['stop']();},{'priority':'high'});}}class mt extends _0x370139{['afterInit'](){const _0x3ec57e=this['editor'];_0x3ec57e['plugins']['has']('MentionEditing')&&_0x3ec57e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x370139{['afterInit'](){const _0x2240e7=this['editor'];if(!_0x2240e7['plugins']['has']('MergeFieldsEditing'))return;_0x2240e7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x2240e7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x9c4793=_0x2240e7['plugins']['get']('TrackChangesEditing'),_0x4884c4=_0x2240e7['locale'];_0x9c4793['descriptionFactory']['registerElementLabel']('mergeField',_0x374549=>o(_0x4884c4,'ELEMENT_MERGE_FIELD',_0x374549)),_0x9c4793['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x45712a=>o(_0x4884c4,'ELEMENT_MERGE_FIELD',_0x45712a)),_0x9c4793['descriptionFactory']['registerDescriptionCallback'](_0x3aaa1f=>{if('insertion'!=_0x3aaa1f['type']&&'deletion'!=_0x3aaa1f['type'])return;const _0x5d6594=_0x3aaa1f['getContainedElement']();if(null==_0x5d6594)return;if(!_0x5d6594['is']('element','mergeField')&&!_0x5d6594['is']('element','mergeFieldBlock'))return;const _0x5b1d79=_0x2240e7['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5d6594['getAttribute']('id'));return'insertion'==_0x3aaa1f['type']?{'type':'insertion','content':o(_0x4884c4,'*Insert:*\x20%0','\x22'+_0x5b1d79+'\x22\x20'+o(_0x4884c4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4884c4,'*Remove:*\x20%0','\x22'+_0x5b1d79+'\x22\x20'+o(_0x4884c4,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x370139{['afterInit'](){const _0x3ca417=this['editor'],_0x1d4d54=_0x3ca417['plugins']['get']('TrackChangesEditing');_0x3ca417['plugins']['has']('MultiLevelList')&&(_0x1d4d54['enableDefaultAttributesIntegration']('multiLevelList'),_0x1d4d54['registerBlockAttribute']('listMarkerStyle'),_0x1d4d54['descriptionFactory']['registerDescriptionCallback'](_0xf4e991=>this['handleDescriptions'](_0xf4e991)));}['handleDescriptions'](_0x5c4ca7){const _0x5efeb1=this['editor']['locale'],{data:_0x1e1d79}=_0x5c4ca7,_0x25596c={'type':'format','content':''};if(_0x1e1d79&&'listMarkerStyle'==_0x1e1d79['key']){if(!_0x1e1d79['oldValue'])return{'type':'format','content':o(_0x5efeb1,'*Set\x20format:*\x20%0',o(_0x5efeb1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e1d79['newValue']+')'};if(!_0x1e1d79['newValue']){let _0x1b8d8f=_0x5c4ca7['head'];for(;_0x1b8d8f;){if(_0x1b8d8f['data']&&'listType'==_0x1b8d8f['data']['key']&&_0x1b8d8f['data']['newValue'])return _0x25596c;_0x1b8d8f=_0x1b8d8f['next'];}return{'type':'format','content':o(_0x5efeb1,'*Remove\x20format:*\x20%0',o(_0x5efeb1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e1d79['oldValue']+')'};}}}}class kt extends _0x370139{['afterInit'](){const _0x175900=this['editor'];if(!_0x175900['plugins']['has']('PageBreakEditing'))return;_0x175900['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f1ec2=_0x175900['plugins']['get']('TrackChangesEditing'),_0x24f437=_0x175900['locale'];_0x4f1ec2['descriptionFactory']['registerElementLabel']('pageBreak',_0x33dcce=>o(_0x24f437,'ELEMENT_PAGE_BREAK',_0x33dcce));}}class bt extends _0x370139{['afterInit'](){const _0x5bf03e=this['editor'];if(!_0x5bf03e['plugins']['has']('Paragraph'))return;const _0x17be9a=_0x5bf03e['locale'],_0x1f8582=_0x5bf03e['plugins']['get']('TrackChangesEditing');_0x1f8582['descriptionFactory']['registerElementLabel']('paragraph',_0x4f9922=>o(_0x17be9a,'ELEMENT_PARAGRAPH',_0x4f9922)),_0x1f8582['enableDefaultAttributesIntegration']('paragraph'),_0x1f8582['enableCommand']('insertParagraph'),_0x5bf03e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5bf03e),{'priority':'highest'}),_0x5bf03e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f9981,_0x20151e,_0x5bef16)=>{_0x5bef16['options']['showSuggestionHighlights']&&nr(_0x5bf03e,{'showActiveMarker':!0x1})(_0x4f9981,_0x20151e,_0x5bef16);},{'priority':'highest'});const _0x50c24b=_0x1f8582['descriptionFactory'];_0x50c24b['registerDescriptionCallback'](_0x1a413f=>{if('insertion'!==_0x1a413f['type'])return;const {start:_0x42fc03,end:_0x578133}=_0x1a413f['getFirstRange']();if(!_0x42fc03['isTouching'](_0x578133)||!_0x42fc03['nodeAfter'])return;const _0x30b143=_0x5bf03e['model']['schema'],_0xaf2c71=_0x42fc03['nodeAfter'];return _0x30b143['isBlock'](_0xaf2c71)&&!_0x30b143['isLimit'](_0xaf2c71)&&_0x30b143['checkChild'](_0xaf2c71,'$text')?{'type':'insertion','content':o(_0x17be9a,'*Insert:*\x20%0',_0x50c24b['getItemLabel'](_0xaf2c71,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86e570=this['editor'],_0x414158=_0x86e570['locale'];_0x86e570['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37e867=>{if('formatBlock'!=_0x37e867['type'])return;const {data:_0x1a82f0}=_0x37e867;return _0x1a82f0&&'paragraph'==_0x1a82f0['commandName']?{'type':'format','content':o(_0x414158,'*Change\x20to:*\x20%0',o(_0x414158,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x427775,{showActiveMarker:_0x4ac08a=!0x0}={}){return(_0x4e6569,_0x3af7bd,_0x362c2b)=>{const _0x4547d8=_0x427775['plugins']['get']('TrackChangesEditing'),_0xeabc48=_0x3af7bd['markerRange']['start'],_0x46f638=_0x3af7bd['markerRange']['end'],_0x51c935=_0x427775['model']['schema'];if(!_0xeabc48['isTouching'](_0x46f638)||!_0xeabc48['nodeAfter'])return;const _0x4f3bc8=_0xeabc48['nodeAfter'];if(_0x51c935['isBlock'](_0x4f3bc8)&&!_0x51c935['isLimit'](_0x4f3bc8)&&_0x51c935['checkChild'](_0x4f3bc8,'$text')){if(!_0x362c2b['consumable']['consume'](_0x3af7bd['markerRange'],_0x4e6569['name']))return;const {authorId:_0x58f275}=_0x4547d8['_splitMarkerName'](_0x3af7bd['markerName']),_0x5bb566=_0x362c2b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x58f275}),_0x2587ce=_0x362c2b['mapper']['toViewPosition'](_0x46f638);_0x4ac08a&&_0x4547d8['activeMarkers']['includes'](_0x3af7bd['markerName'])&&_0x362c2b['writer']['addClass']('ck-suggestion-marker--active',_0x5bb566),_0x362c2b['writer']['insert'](_0x2587ce,_0x5bb566),_0x362c2b['mapper']['bindElementToMarker'](_0x5bb566,_0x3af7bd['markerName']);}};}class yt extends _0x370139{['afterInit'](){const _0x5ec016=this['editor'];if(!_0x5ec016['plugins']['has']('RemoveFormatEditing'))return;_0x5ec016['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cabd9=this['editor'];_0x1cabd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31c27b=>{if('formatBlock'!=_0x31c27b['type']&&'formatInline'!=_0x31c27b['type'])return;const {data:_0x12b121}=_0x31c27b;return _0x12b121&&'removeFormat'==_0x12b121['commandName']?{'type':'format','content':o(_0x1cabd9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x370139{['afterInit'](){const _0x4d17b9=this['editor'];if(!_0x4d17b9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27cb56=_0x4d17b9['plugins']['get']('TrackChangesEditing');_0x27cb56['enableCommand']('goToPreviousRestrictedEditingException'),_0x27cb56['enableCommand']('goToNextRestrictedEditingException');const _0x32764d=_0x4d17b9['plugins']['get']('RestrictedEditingModeEditing');_0x32764d['enableCommand']('trackChanges'),_0x32764d['enableCommand']('acceptSuggestion'),_0x32764d['enableCommand']('discardSuggestion'),_0x32764d['enableCommand']('acceptAllSuggestions'),_0x32764d['enableCommand']('discardAllSuggestions'),_0x32764d['enableCommand']('acceptSelectedSuggestions'),_0x32764d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x370139{static get['requires'](){return[_0x2edfad];}['init'](){const _0x29f863=this['editor'],_0x23b822=_0x29f863['plugins']['get']('TrackChangesEditing');_0x23b822['enableCommand']('shiftEnter'),_0x29f863['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x29f863),{'priority':'high'}),_0x29f863['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x29f863),{'priority':'high'}),_0x29f863['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4277e3,_0x329333,_0x42666d)=>{_0x42666d['options']['showSuggestionHighlights']&&ke(_0x29f863,{'showActiveMarker':!0x1})(_0x4277e3,_0x329333,_0x42666d);}),_0x23b822['descriptionFactory']['registerElementLabel']('softBreak',_0x4b5e2f=>o(_0x29f863['locale'],'ELEMENT_LINE_BREAK',_0x4b5e2f));}}function ke(_0x36a37d,{showActiveMarker:_0x48c773=!0x0}={}){return(_0x46ffe2,_0x4f4f68,_0x5a3556)=>{const _0x454408=_0x36a37d['plugins']['get']('TrackChangesEditing');if(!_0x5a3556['consumable']['test'](_0x4f4f68['markerRange'],_0x46ffe2['name']))return;const _0xb558ee=_0x36a37d['model'];for(const _0x23ab68 of _0x4f4f68['markerRange']['getItems']()){if(!_0x23ab68['is']('element','softBreak'))continue;const _0x1b4137='deletion'==_0x4f4f68['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x419a12}=_0x454408['_splitMarkerName'](_0x4f4f68['markerName']),_0x26d1f7=_0x5a3556['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b4137,'data-author-id':_0x419a12}),_0x1a3af0=_0x5a3556['mapper']['toViewPosition'](_0xb558ee['createPositionBefore'](_0x23ab68));_0x48c773&&_0x454408['activeMarkers']['includes'](_0x4f4f68['markerName'])&&_0x5a3556['writer']['addClass']('ck-suggestion-marker--active',_0x26d1f7),_0x5a3556['writer']['insert'](_0x1a3af0,_0x26d1f7),_0x5a3556['mapper']['bindElementToMarker'](_0x26d1f7,_0x4f4f68['markerName']);}};}class At extends _0x370139{['afterInit'](){const _0x25fc20=this['editor'],_0x3e8422=_0x25fc20['model'],_0x760059=_0x25fc20['locale'];if(!_0x25fc20['plugins']['has']('StandardEditingModeEditing'))return;const _0x96fc46=_0x25fc20['plugins']['get']('TrackChangesEditing'),_0x51aeec='restrictedEditingException',_0x16aff0=_0x25fc20['commands']['get'](_0x51aeec);_0x96fc46['enableCommand'](_0x51aeec,(_0x30d2ee,_0x4a5db6={})=>{const _0x5501db=_0x3e8422['document']['selection'];if(_0x5501db['isCollapsed'])return void _0x30d2ee(_0x4a5db6);const _0x186b4e=void 0x0!==_0x4a5db6['forceValue']?_0x4a5db6['forceValue']:!_0x16aff0['value'];_0x3e8422['change'](()=>{const _0x762f42=Array['from'](_0x5501db['getRanges']());for(const _0x54e00b of _0x762f42){const _0x47ba2d=_0x186b4e?[_0x54e00b]:io(_0x51aeec,_0x54e00b,_0x3e8422);for(const _0x1f20ed of _0x47ba2d)_0x96fc46['markInlineFormat'](_0x1f20ed,{'commandName':_0x51aeec,'commandParams':[{'forceValue':_0x186b4e}]});}});}),_0x96fc46['descriptionFactory']['registerDescriptionCallback'](_0x42e068=>{if('formatBlock'!=_0x42e068['type']&&'formatInline'!=_0x42e068['type'])return;const {data:_0x43630e}=_0x42e068;return _0x43630e&&_0x43630e['commandName']==_0x51aeec?_0x43630e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x760059,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x760059,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x370139{['afterInit'](){const _0x318143=this['editor'];if(!_0x318143['plugins']['has']('Style')||!_0x318143['plugins']['has']('DataSchema'))return;const _0x564bb8=_0x318143['plugins']['get']('TrackChangesEditing'),_0x1fb9f4=_0x318143['locale'],_0x122318=_0x318143['config']['get']('style')||{},_0x2c039f=_0x318143['plugins']['get']('GeneralHtmlSupport'),_0x34a0f0=_0x318143['plugins']['get']('StyleUtils')['normalizeConfig'](_0x318143['plugins']['get']('DataSchema'),_0x122318['definitions']);_0x564bb8['enableDefaultAttributesIntegration']('style');const _0x4e847b=new Set();for(const _0xf235a0 of _0x34a0f0['block']){const _0x4dfbf8=_0x2c039f['getGhsAttributeNameForElement'](_0xf235a0['element']);_0x4e847b['add'](_0x4dfbf8);}const _0x16095e=new Set();for(const _0x270bcb of _0x34a0f0['inline']){const _0x33c9f2=_0x2c039f['getGhsAttributeNameForElement'](_0x270bcb['element']);_0x16095e['add'](_0x33c9f2);for(const _0x2f3200 of _0x270bcb['ghsAttributes'])_0x16095e['add'](_0x2f3200);}for(const _0x34015a of _0x4e847b)_0x564bb8['registerBlockAttribute'](_0x34015a),_0x564bb8['descriptionFactory']['registerAttributeLabel'](_0x34015a,o(_0x1fb9f4,'FORMAT_STYLE'));for(const _0x2c5c34 of _0x16095e)_0x564bb8['registerInlineAttribute'](_0x2c5c34),_0x564bb8['descriptionFactory']['registerAttributeLabel'](_0x2c5c34,o(_0x1fb9f4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x226814=this['editor'],_0x5e5d56=_0x226814['locale'];_0x226814['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e19b0=>{if('formatBlock'!=_0x1e19b0['type']&&'formatInline'!=_0x1e19b0['type'])return;const {data:_0xd92e10}=_0x1e19b0;return _0xd92e10&&'style'===_0xd92e10['commandName']?_0xd92e10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e5d56,'*Set\x20format:*\x20%0',_0xd92e10['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5e5d56,'*Remove\x20format:*\x20%0',_0xd92e10['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x370139{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x47f721){super(_0x47f721),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x7855db=this['editor'],_0x5258a4=_0x7855db['model']['document']['selection'];if(!_0x7855db['plugins']['has']('TableEditing'))return;const _0x44f79a=_0x7855db['locale'],_0x1b3a76=_0x7855db['plugins']['get']('TrackChangesEditing'),_0x163499=_0x7855db['plugins']['get']('TableUtils');_0x1b3a76['descriptionFactory']['registerElementLabel']('table',_0x5612c5=>o(_0x44f79a,'ELEMENT_TABLE',_0x5612c5)),this['_setupColumnsRowsFixing'](),_0x1b3a76['enableCommand']('insertTable'),_0x1b3a76['enableCommand']('selectTableRow'),_0x1b3a76['enableCommand']('selectTableColumn');for(const _0x26efca of['insertTableRowAbove','insertTableRowBelow']){const _0x2ab915=_0x7855db['commands']['get'](_0x26efca);_0x1b3a76['enableCommand'](_0x26efca,_0x280668=>{_0x7855db['model']['change'](_0x5cb48d=>{_0x280668();const _0x4a2bc9='above'===_0x2ab915['order'],_0x9f46ef=_0x163499['getSelectionAffectedTableCells'](_0x5258a4),_0x35d4fb=_0x163499['getRowIndexes'](_0x9f46ef),_0x553306=_0x4a2bc9?_0x35d4fb['first']-0x1:_0x35d4fb['last']+0x1,_0xebedc=_0x9f46ef[0x0]['findAncestor']('table'),_0x3762bc=_0x163499['createTableWalker'](_0xebedc,{'startRow':_0x553306,'endRow':_0x553306}),_0x41dc58=Array['from'](_0x3762bc)['map'](_0x2643db=>_0x5cb48d['createRangeOn'](_0x2643db['cell']));_0x1b3a76['markMultiRangeInsertion'](_0x41dc58,'tableRow');});});}for(const _0x4a9eba of['insertTableColumnLeft','insertTableColumnRight']){const _0x42b7cd=_0x7855db['commands']['get'](_0x4a9eba);_0x1b3a76['enableCommand'](_0x4a9eba,_0x4c7870=>{_0x7855db['model']['change'](_0x15ff44=>{_0x4c7870();const _0x4e5812='left'===_0x42b7cd['order'],_0x51a3e6=_0x163499['getSelectionAffectedTableCells'](_0x5258a4),_0x2ef2f0=_0x163499['getColumnIndexes'](_0x51a3e6),_0x25f5c3=_0x4e5812?_0x2ef2f0['first']-0x1:_0x2ef2f0['last']+0x1,_0x851410=_0x51a3e6[0x0]['findAncestor']('table'),_0x586181=_0x163499['createTableWalker'](_0x851410,{'startRow':0x0,'column':_0x25f5c3,'includeAllSlots':!0x1}),_0x39b492=Array['from'](_0x586181)['map'](_0x225960=>_0x15ff44['createRangeOn'](_0x225960['cell']));_0x1b3a76['markMultiRangeInsertion'](_0x39b492,'tableColumn');});});}for(const _0x1dfc4c of['removeTableRow','removeTableColumn']){const _0x8d4410=_0x1dfc4c['substr'](0xb),_0x124406=_0x8d4410['toLowerCase'](),_0x4110c5=_0x124406['substr'](0x0,0x3)+'span',_0x45a92c='table'+_0x8d4410,_0x420630='min'+_0x8d4410,_0x288ac4='max'+_0x8d4410;_0x1b3a76['enableCommand'](_0x1dfc4c,()=>{_0x7855db['model']['change'](_0x4f91b2=>{const _0x155297=_0x163499['getSelectionAffectedTableCells'](_0x5258a4),_0x1f84ec=_0x155297[0x0]['findAncestor']('table');let _0x43baf5;if('removeTableRow'==_0x1dfc4c){const _0x49aa3d=_0x163499['getRowIndexes'](_0x155297);_0x43baf5={'startRow':_0x49aa3d['first'],'endRow':_0x49aa3d['last'],'includeAllSlots':!0x0};}else{const _0x3cfb5d=_0x163499['getColumnIndexes'](_0x155297);_0x43baf5={'startColumn':_0x3cfb5d['first'],'endColumn':_0x3cfb5d['last'],'includeAllSlots':!0x0};}const _0x5c7710=_0x163499['createTableWalker'](_0x1f84ec,_0x43baf5),_0x1ba172=Array['from'](_0x5c7710)['map'](({cell:_0x3b3588})=>_0x3b3588),_0x4e2401=Re(_0x1ba172['filter'](_0x34dd0c=>_0x34dd0c['hasAttribute'](_0x4110c5))),_0x3b597f=Re(_0x1ba172['filter'](_0x50dadc=>!_0x50dadc['hasAttribute'](_0x4110c5)))['map'](_0x111f95=>_0x4f91b2['createRangeOn'](_0x111f95)),_0x4ec911=_0x1b3a76['markMultiRangeDeletion'](_0x3b597f,_0x45a92c);if(_0x4ec911&&('tableRow'==_0x4ec911['subType']||'tableColumn'==_0x4ec911['subType'])){const _0x2f27d1=this['_getSuggestionCoords'](_0x4ec911);for(const _0x994271 of _0x4e2401){const _0x2e50f7=_0x4f91b2['createRangeOn'](_0x994271),_0x52fa22=_0x163499['getCellLocation'](_0x994271),_0x16703=_0x994271['getAttribute'](_0x4110c5)-0x1,_0x418987=_0x2f27d1[_0x420630],_0x24b150=_0x2f27d1[_0x288ac4];_0x418987<=_0x52fa22[_0x124406]&&_0x52fa22[_0x124406]+_0x16703<=_0x24b150&&_0x4ec911['addRange'](_0x2e50f7);}}});});}function _0x48b6bb(_0x4f1a6c){const _0x511383=Array['from'](_0x5258a4['getRanges']())['map'](_0x46d6c7=>_0x4d36a7['fromRange'](_0x46d6c7));_0x7855db['model']['change'](_0x3d74c2=>{const _0x1c817f=_0x3d74c2['batch'];_0x4f1a6c=_0x4f1a6c['filter'](_0x36abb6=>'$graveyard'!=_0x36abb6['root']['rootName']),_0x3d74c2['setSelection'](_0x4f1a6c),_0x7855db['commands']['get']('removeTableRow')['refresh'](),_0x7855db['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x7855db['model']['enqueueChange'](()=>{_0x7855db['model']['enqueueChange'](_0x1c817f,_0x3b3bbb=>{const _0x56f407=_0x511383['filter'](_0x4ed3bd=>'$graveyard'!=_0x4ed3bd['root']['rootName']);_0x56f407['length']>0x0&&_0x3b3bbb['setSelection'](_0x56f407);for(const _0x5e7582 of _0x511383)_0x5e7582['detach']();});});});}function _0x4885b1(_0x9f53a7){_0x7855db['model']['change'](_0x565093=>{const _0x29c953=Array['from'](_0x5258a4['getRanges']())['map'](_0x3b8713=>_0x4d36a7['fromRange'](_0x3b8713)),_0x50fd20=[];for(const _0x5bfd33 of _0x9f53a7)for(const _0x19ed18 of _0x5bfd33['getItems']({'shallow':!0x0}))_0x50fd20['push'](_0x19ed18);for(const _0x176e55 of _0x50fd20)'$graveyard'!=_0x176e55['root']['rootName']&&(_0x565093['setSelection'](_0x565093['createPositionAt'](_0x176e55,0x0)),_0x7855db['commands']['get']('removeTableColumn')['refresh'](),_0x7855db['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x36e360=_0x29c953['filter'](_0x5b5f60=>'$graveyard'!=_0x5b5f60['root']['rootName']);_0x36e360['length']>0x0&&_0x565093['setSelection'](_0x36e360);for(const _0x1f6fba of _0x29c953)_0x1f6fba['detach']();});}function _0x1f25fc(_0x2a0b81,_0x578bd2){return _0x578bd2['every'](_0xfb17d7=>_0x2a0b81['some'](_0x391e10=>_0x391e10['end']['isEqual'](_0xfb17d7['start'])||_0xfb17d7['end']['isEqual'](_0x391e10['start'])));}function _0x2ece43(_0x40c2c8,_0x459960){return!_0x40c2c8['some'](_0x5ef3e4=>_0x459960['some'](_0x4b3c7=>_0x5ef3e4['isIntersecting'](_0x4b3c7)))&&_0x40c2c8['some'](_0x11c622=>_0x459960['some'](_0x1e30aa=>_0x11c622['end']['isTouching'](_0x1e30aa['start'])));}_0x7855db['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x112a82,_0x431782,_0x2b3e00)=>{if(!_0x2b3e00['options']['showSuggestionHighlights'])return;const _0x2fca20=_0x431782['item'];if(!_0x2fca20)return;const _0x3206ae=_0x2b3e00['mapper']['toViewElement'](_0x2fca20);function _0x2def85(_0x2c921d){return Array['isArray'](_0x2c921d)?_0x2c921d:[_0x2c921d];}_0x3206ae&&'tableCell'===_0x2fca20['name']&&_0x34daf7(_0x3206ae,_0x2b3e00['writer'],(_0x4b2225,_0x1186b2,_0x1ab68f)=>_0x1ab68f['addClass'](_0x2def85(_0x1186b2['classes']),_0x4b2225),(_0x4d384f,_0x34d591,_0x1805b8)=>_0x1805b8['removeClass'](_0x2def85(_0x34d591['classes']),_0x4d384f));},{'priority':'highest'}),_0x1b3a76['descriptionFactory']['registerDescriptionCallback'](_0x569a1a=>{if('insertion'!=_0x569a1a['type']&&'deletion'!=_0x569a1a['type'])return;const _0x5a2b2e=_0x569a1a['getContainedElement']();if(null!=_0x5a2b2e&&_0x5a2b2e['is']('element','table')){if('insertion'==_0x569a1a['type']){const _0x432f16=_0x569a1a['getItems']()['filter'](_0x399933=>_0x399933['is']('$textProxy'))['map'](_0x422a44=>_0x422a44['data']);if(_0x432f16['length'])return{'type':'insertion','content':o(_0x44f79a,'*Insert:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x432f16['join']('\x20')+'\x22'))};}if('deletion'==_0x569a1a['type']){const _0x35020e=_0x569a1a['getItems']()['filter'](_0x3749a1=>_0x3749a1['is']('$textProxy'))['map'](_0x483cbf=>_0x483cbf['data']);if(_0x35020e['length'])return{'type':'deletion','content':o(_0x44f79a,'*Remove:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x35020e['join']('\x20')+'\x22'))};}}}),_0x1b3a76['descriptionFactory']['registerDescriptionCallback'](_0x306543=>{if('tableRow'==_0x306543['subType']){const _0x2b99da=_0x306543['getItems']()['filter'](_0x919c4d=>_0x919c4d['is']('$textProxy'))['map'](_0x2916c6=>_0x2916c6['data']),_0x5cddab=this['_getSuggestionCoords'](_0x306543),_0x229534=_0x5cddab['maxRow']-_0x5cddab['minRow']+0x1;if('insertion'==_0x306543['type'])return _0x2b99da['length']?{'type':'insertion','content':o(_0x44f79a,'*Insert:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x229534,'\x22'+_0x2b99da['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x44f79a,'*Insert:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_ROW',_0x229534))};if('deletion'==_0x306543['type'])return _0x2b99da['length']?{'type':'deletion','content':o(_0x44f79a,'*Remove:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x229534,'\x22'+_0x2b99da['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x44f79a,'*Remove:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_ROW',_0x229534))};}if('tableColumn'==_0x306543['subType']){const _0x25fb36=_0x306543['getItems']()['filter'](_0xc379ef=>_0xc379ef['is']('$textProxy'))['map'](_0x106239=>_0x106239['data']),_0x573cb2=this['_getSuggestionCoords'](_0x306543),_0x5f41bd=_0x573cb2['maxColumn']-_0x573cb2['minColumn']+0x1;if('insertion'==_0x306543['type'])return _0x25fb36['length']?{'type':'insertion','content':o(_0x44f79a,'*Insert:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f41bd,'\x22'+_0x25fb36['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x44f79a,'*Insert:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_COLUMN',_0x5f41bd))};if('deletion'==_0x306543['type'])return _0x25fb36['length']?{'type':'deletion','content':o(_0x44f79a,'*Remove:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f41bd,'\x22'+_0x25fb36['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x44f79a,'*Remove:*\x20%0',o(_0x44f79a,'ELEMENT_TABLE_COLUMN',_0x5f41bd))};}}),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x48b6bb),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x48b6bb),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4885b1),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4885b1),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f25fc),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f25fc),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2ece43),_0x1b3a76['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2ece43);}['_acceptFormatSuggestionCallbackFactory'](){const _0x20ad58=this['editor'],_0x522147=_0x20ad58['model']['document']['selection'];return(_0x3cd76c,_0xdca07b)=>{_0x20ad58['model']['change'](_0x58b7a7=>{const {commandName:_0x30d59d,commandParams:_0x21beb3}=_0xdca07b;let _0x5184b1=_0x3cd76c[0x0]['end']['nodeBefore'];_0x21beb3&&_0x21beb3[0x0]&&!0x1===_0x21beb3[0x0]['forceValue']&&(_0x5184b1=_0x3cd76c[0x0]['start']['nodeAfter']);const _0x4ae158=_0x58b7a7['createRangeIn'](_0x5184b1);if('$graveyard'==_0x4ae158['root']['rootName'])return;const _0x337df1=Array['from'](_0x522147['getRanges']())['map'](_0x5bd866=>_0x4d36a7['fromRange'](_0x5bd866));_0x58b7a7['setSelection'](_0x4ae158),_0x20ad58['commands']['get'](_0x30d59d)['refresh'](),_0x21beb3['push']({'forceDefaultExecution':!0x0}),_0x20ad58['execute'](_0x30d59d,..._0x21beb3);const _0x4dc56a=_0x337df1['filter'](_0x1f96f0=>'$graveyard'!=_0x1f96f0['root']['rootName']);_0x4dc56a['length']>0x0&&_0x58b7a7['setSelection'](_0x4dc56a);for(const _0x17b895 of _0x337df1)_0x17b895['detach']();});};}['_getCoordsForCells'](_0x484cb0){const _0x178adc=this['editor']['plugins']['get']('TableUtils');let _0x3dbf01=Number['MAX_SAFE_INTEGER'],_0x37813b=Number['MIN_SAFE_INTEGER'],_0x24d512=Number['MAX_SAFE_INTEGER'],_0x20efd0=Number['MIN_SAFE_INTEGER'];for(const _0x5eb8b0 of _0x484cb0){if('$graveyard'==_0x5eb8b0['root']['rootName'])continue;const {row:_0x1e459f,column:_0x3092ea}=_0x178adc['getCellLocation'](_0x5eb8b0),_0x1a58f5=_0x5eb8b0['hasAttribute']('rowspan')?_0x5eb8b0['getAttribute']('rowspan')-0x1:0x0,_0x207f2e=_0x5eb8b0['hasAttribute']('colspan')?_0x5eb8b0['getAttribute']('colspan')-0x1:0x0;_0x3dbf01=_0x1e459f<_0x3dbf01?_0x1e459f:_0x3dbf01,_0x37813b=_0x1e459f+_0x1a58f5>_0x37813b?_0x1e459f+_0x1a58f5:_0x37813b,_0x24d512=_0x3092ea<_0x24d512?_0x3092ea:_0x24d512,_0x20efd0=_0x3092ea+_0x207f2e>_0x20efd0?_0x3092ea+_0x207f2e:_0x20efd0;}return{'minRow':_0x3dbf01,'maxRow':_0x37813b,'minColumn':_0x24d512,'maxColumn':_0x20efd0};}['_setupColumnsRowsFixing'](){const _0x3cd6fa=this['editor'],_0x3d7700=_0x3cd6fa['plugins']['get']('TrackChangesEditing'),_0x49bf33=_0x3cd6fa['plugins']['get']('TableUtils');_0x3cd6fa['model']['document']['on']('change:data',()=>{const _0x4a5653=Array['from'](_0x3cd6fa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c1679,data:_0x23c713}of _0x4a5653){const {group:_0x1db863,id:_0x3d3186,subType:_0x20c09b}=_0x3d7700['_splitMarkerName'](_0x5c1679);if('suggestion'!=_0x1db863)continue;if(null!=_0x23c713['oldRange'])continue;const _0x2018fd=_0x3d7700['getSuggestion'](_0x3d3186);this['_tablePostFixingSubtypes']['includes'](_0x20c09b)&&this['_tableSuggestions']['add'](_0x2018fd);}},{'priority':'low'});const _0x47ea64=(_0x1078f8,_0x48ec4a)=>{let _0x18b484=!0x1;const _0x91eef1=_0x48ec4a['createRangeOn'](_0x1078f8),_0x5f4111=_0x1078f8['findAncestor']('table'),_0x5de0ae=_0x49bf33['getCellLocation'](_0x1078f8);for(const _0x5fe694 of this['_tableSuggestions']){const _0x38229e=_0x5fe694['subType'],_0x59c1f0=_0x38229e['startsWith']('tablePaste'),_0x452b33=_0x38229e['substr'](_0x59c1f0?0xa:0x5),_0x161edf=_0x452b33['toLowerCase'](),_0xe42d60=_0x161edf['substr'](0x0,0x3)+'span',_0x1f09a5='min'+_0x452b33,_0x229f23='max'+_0x452b33;if(!_0x5fe694['isInContent'])continue;if(_0x5f4111!=_0x5fe694['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5fe694['isIntersectingWithRange'](_0x91eef1))continue;const _0x1e7a96=_0x1078f8['hasAttribute'](_0xe42d60)?_0x1078f8['getAttribute'](_0xe42d60)-0x1:0x0,_0xb4e269=this['_getSuggestionCoords'](_0x5fe694),_0x212d43=_0xb4e269[_0x1f09a5],_0x1d22c6=_0xb4e269[_0x229f23];_0x212d43<=_0x5de0ae[_0x161edf]&&_0x5de0ae[_0x161edf]+_0x1e7a96<=_0x1d22c6&&(_0x5fe694['addRange'](_0x91eef1),_0x18b484=!0x0);}return _0x18b484;};_0x3cd6fa['model']['document']['registerPostFixer'](_0x1075a5=>{let _0x436546=!0x1;for(const _0x59127d of _0x3cd6fa['model']['document']['differ']['getChanges']())if('insert'==_0x59127d['type']){if('tableRow'==_0x59127d['name']){for(const _0xf878a2 of _0x59127d['position']['nodeAfter']['getChildren']())_0x436546=_0x436546||_0x47ea64(_0xf878a2,_0x1075a5);}else'tableCell'==_0x59127d['name']&&(_0x436546=_0x436546||_0x47ea64(_0x59127d['position']['nodeAfter'],_0x1075a5));}return _0x436546;});}['_getSuggestionCoords'](_0x4c4036){return this['_getCoordsForCells'](_0x4c4036['getRanges']()['map'](_0x31cf92=>_0x31cf92['start']['nodeAfter']));}}function Re(_0x288e9d){return Array['from'](new Set(_0x288e9d)['values']());}class _t extends _0x370139{static get['requires'](){return[vt];}['afterInit'](){const _0x56457a=this['editor'],_0x530893=_0x56457a['model']['document']['selection'],_0x36de4c=_0x56457a['locale'];if(!_0x56457a['plugins']['has']('TableEditing'))return;const _0x2f0a8c=_0x56457a['plugins']['get']('TrackChangesEditing'),_0x1505ad=_0x56457a['plugins']['get']('TableUtils'),_0x15cb7f=_0x56457a['plugins']['get'](vt);_0x15cb7f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2f0a8c['enableCommand']('mergeTableCells',()=>{const _0x6d8929=_0x1505ad['getSelectionAffectedTableCells'](_0x56457a['model']['document']['selection']);_0x56457a['model']['change'](()=>{_0x2f0a8c['markMultiRangeBlockFormat'](_0x6d8929,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56457a['commands']['get']('mergeTableCells')['on']('execute',(_0x4f208e,_0x4c88c4)=>{_0x56457a['commands']['get']('trackChanges')['value']&&(_0x4c88c4['length']>0x0&&_0x4c88c4[_0x4c88c4['length']-0x1]&&_0x4c88c4[_0x4c88c4['length']-0x1]['forceDefaultExecution']||_0x2f0a8c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f208e['stop']());},{'priority':'highest'});for(const _0x2ac827 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23902e=_0x56457a['commands']['get'](_0x2ac827);_0x2f0a8c['enableCommand'](_0x2ac827,()=>{const _0x46ee34=_0x56457a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e149b=>_0x4e149b['is']('element','tableCell')),_0x3eb027=_0x23902e['value'];_0x56457a['model']['change'](()=>{_0x2f0a8c['markMultiRangeBlockFormat']([_0x46ee34,_0x3eb027],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x461da1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4861fd=_0x56457a['commands']['get'](_0x461da1);_0x2f0a8c['enableCommand'](_0x461da1,()=>{const _0x18d21a=_0x1505ad['getSelectionAffectedTableCells'](_0x56457a['model']['document']['selection'])[0x0],_0x3b111c=_0x18d21a['findAncestor']('table'),{column:_0x555e0d,row:_0x4a1909}=_0x1505ad['getCellLocation'](_0x18d21a);let _0x3859df=[];if('horizontally'==_0x4861fd['direction']){const _0x252546=_0x1505ad['createTableWalker'](_0x3b111c,{'startRow':_0x4a1909,'endRow':_0x4a1909,'includeAllSlots':!0x0});_0x3859df=Array['from'](_0x252546)['map'](_0x5d17b9=>_0x5d17b9['cell']);}else{const _0x6a9dc8=_0x1505ad['createTableWalker'](_0x3b111c,{'column':_0x555e0d,'includeAllSlots':!0x0});_0x3859df=Array['from'](_0x6a9dc8)['map'](_0x2943fc=>_0x2943fc['cell']);}_0x56457a['model']['change'](_0x837709=>{_0x2f0a8c['markBlockFormat'](_0x837709['createRangeOn'](_0x18d21a),{'commandName':_0x461da1,'commandParams':[]},_0x3859df,_0x461da1);});});}_0x2f0a8c['descriptionFactory']['registerDescriptionCallback'](_0x2b94a0=>{if('formatBlock'!=_0x2b94a0['type']&&'formatInline'!=_0x2b94a0['type'])return;const {data:_0x4aefa2}=_0x2b94a0;return _0x4aefa2&&'mergeTableCells'==_0x4aefa2['commandName']?{'type':'format','content':o(_0x36de4c,'*Merge\x20cells*')}:void 0x0;}),_0x2f0a8c['descriptionFactory']['registerDescriptionCallback'](_0x3a14d7=>{if('formatBlock'!=_0x3a14d7['type']&&'formatInline'!=_0x3a14d7['type'])return;const {data:_0x24cd40}=_0x3a14d7;return _0x24cd40?'splitTableCellVertically'==_0x24cd40['commandName']?{'type':'format','content':o(_0x36de4c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x24cd40['commandName']?{'type':'format','content':o(_0x36de4c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2e2143=_0x15cb7f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a606d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2f0a8c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a606d,'accept',_0x2e2143);for(const _0x1f43ca of['splitTableCellVertically','splitTableCellHorizontally'])_0x2f0a8c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f43ca,'accept',_0x2e2143);_0x2f0a8c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x566d2a=>{_0x56457a['model']['change'](_0x54dc65=>{const _0x3092c9=Array['from'](_0x530893['getRanges']())['map'](_0x3e7048=>_0x4d36a7['fromRange'](_0x3e7048));_0x54dc65['setSelection'](_0x566d2a),_0x56457a['commands']['get']('mergeTableCells')['refresh'](),_0x56457a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x85468d=_0x3092c9['filter'](_0x29330a=>'$graveyard'!=_0x29330a['root']['rootName']);_0x85468d['length']>0x0&&_0x54dc65['setSelection'](_0x85468d);for(const _0x47cccc of _0x3092c9)_0x47cccc['detach']();});});for(const _0x315a10 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x45259e=_0x56457a['commands']['get'](_0x315a10);_0x45259e['on']('set:isEnabled',(_0x132429,_0x53dfab,_0x2dfabb)=>{if(_0x2dfabb){const _0x5462f1=_0x56457a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4598e0=>_0x4598e0['is']('element','tableCell'));this['_areMergableCells'](_0x45259e['value'],_0x5462f1)||(_0x132429['return']=!0x1,_0x132429['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2ea88a=this['editor']['commands']['get']('mergeTableCells'),_0x490ea7=this['editor']['plugins']['get']('TableUtils');if(!_0x2ea88a['isEnabled'])return!0x1;const _0x3c51b3=_0x490ea7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56514f of _0x3c51b3)for(const _0x476c91 of _0x3c51b3)if(_0x56514f!=_0x476c91&&!this['_areMergableCells'](_0x56514f,_0x476c91))return!0x1;return!0x0;}['_areMergableCells'](_0x1abd7a,_0x2d9a55){const _0x654fa8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3afd14=this['editor']['model']['createRangeOn'](_0x1abd7a),_0x4ed409=this['editor']['model']['createRangeOn'](_0x2d9a55),_0x1bfb53=new Set(),_0x16c6e6=new Set();for(const _0x309dad of _0x654fa8['getSuggestions']())if(('insertion'==_0x309dad['type']||'deletion'==_0x309dad['type']||'mergeTableCells'==_0x309dad['subType'])&&_0x309dad['isInContent']){for(const _0xb8862c of _0x309dad['getRanges']())_0xb8862c['containsRange'](_0x3afd14,!0x0)&&_0x1bfb53['add'](_0x309dad['type']+':'+_0x309dad['author']['id']),_0xb8862c['containsRange'](_0x4ed409,!0x0)&&_0x16c6e6['add'](_0x309dad['type']+':'+_0x309dad['author']['id']);}if(_0x1bfb53['size']!=_0x16c6e6['size'])return!0x1;for(const _0x5c8e82 of _0x1bfb53)if(!_0x16c6e6['has'](_0x5c8e82))return!0x1;return!0x0;}}class Ct extends _0x370139{static get['requires'](){return[vt];}['afterInit'](){const _0x2384ff=this['editor'];if(!_0x2384ff['plugins']['has']('TableEditing'))return;const _0x579b80=_0x2384ff['locale'],_0x1c59d9=_0x2384ff['plugins']['get']('TrackChangesEditing');_0x1c59d9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1c59d9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1c59d9['registerBlockAttribute']('headingRows'),_0x1c59d9['registerBlockAttribute']('headingColumns'),_0x1c59d9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x579b80,'FORMAT_HEADER_ROW')),_0x1c59d9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x579b80,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35a610=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57175a=this['editor']['plugins']['get']('TableUtils'),_0x3e652c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x4a8719({showActiveMarker:_0x4e5220=!0x0,setDataAttribute:_0x4c75c5=!0x0}={}){return(_0x969e16,_0x21ca43,_0x1b33e8)=>{const {type:_0xa56d2d,id:_0x5e306b}=_0x35a610['_splitMarkerName'](_0x21ca43['markerName']),_0x17f2c7=_0x35a610['getSuggestion'](_0x5e306b),_0x12fc4f=_0x17f2c7['data'];if('formatBlock'!=_0x17f2c7['type']||!_0x12fc4f||'setTableColumnHeader'!=_0x12fc4f['commandName'])return;if(_0x21ca43['item'])return void _0x969e16['stop']();if(!_0x1b33e8['consumable']['consume'](_0x21ca43['markerRange'],_0x969e16['name']))return;const _0x2d44db=_0x21ca43['markerRange']['start']['nodeAfter'],_0x4b2e76=_0x21ca43['markerRange']['end']['nodeBefore'],_0x2ea971=_0x2d44db['parent']['parent'],{column:_0x396282}=_0x57175a['getCellLocation'](_0x2d44db),{column:_0x30e3d0}=_0x57175a['getCellLocation'](_0x4b2e76);for(let _0x2cb377=_0x396282;_0x2cb377<=_0x30e3d0;_0x2cb377++){const _0x54362e=_0x57175a['createTableWalker'](_0x2ea971,{'column':_0x2cb377,'includeAllSlots':!0x1});for(const _0x5c4a98 of _0x54362e){const _0x3ac9e5=_0x5c4a98['cell'],_0xf078ba=_0x1b33e8['mapper']['toViewElement'](_0x3ac9e5);_0x1b33e8['writer']['addClass']('ck-suggestion-marker-'+_0xa56d2d,_0xf078ba),_0x4c75c5&&_0x1b33e8['writer']['setAttribute']('data-suggestion',_0x5e306b,_0xf078ba),_0x1b33e8['mapper']['bindElementToMarker'](_0xf078ba,_0x21ca43['markerName']),_0x4e5220&&(_0x35a610['activeMarkers']['includes'](_0x21ca43['markerName'])?_0x1b33e8['writer']['addClass']('ck-suggestion-marker--active',_0xf078ba):_0x1b33e8['writer']['removeClass']('ck-suggestion-marker--active',_0xf078ba));}}};}_0x35a610['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3e652c),_0x35a610['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3e652c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4a8719(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x200d10,_0xfbe988,_0x34db25)=>{_0x34db25['options']['showSuggestionHighlights']&&_0x4a8719({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x200d10,_0xfbe988,_0x34db25);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x8c4f14,_0x507486,_0x5055eb)=>{const {type:_0x37153b,id:_0x212e57}=_0x35a610['_splitMarkerName'](_0x507486['markerName']),_0x525f6d=_0x35a610['getSuggestion'](_0x212e57),_0x277992=_0x525f6d['data'];if('formatBlock'!=_0x525f6d['type']||!_0x277992||'setTableColumnHeader'!=_0x277992['commandName'])return;const _0xa34d96=_0x5055eb['mapper']['markerNameToElements'](_0x507486['markerName']);if(_0xa34d96){for(const _0x71733b of _0xa34d96)_0x5055eb['writer']['removeClass']('ck-suggestion-marker-'+_0x37153b,_0x71733b),_0x5055eb['writer']['removeClass']('ck-suggestion-marker--active',_0x71733b),_0x5055eb['writer']['removeAttribute']('data-suggestion',_0x71733b),_0x5055eb['mapper']['unbindElementFromMarkerName'](_0x71733b,_0x507486['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12e417=this['editor'],_0x5c11fb=_0x12e417['locale'];function _0x4da113(_0x468b3f){return{'type':'format','content':o(_0x5c11fb,'*Format:*\x20%0',_0x468b3f)};}_0x12e417['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x103c6c=>{if('formatBlock'!=_0x103c6c['type'])return;const {data:_0x2c7a22}=_0x103c6c;if(_0x2c7a22){if('setTableRowHeader'==_0x2c7a22['commandName']){const _0x2a53e3=_0x2c7a22['commandParams'][0x0]['forceValue'];return _0x4da113(o(_0x5c11fb,_0x2a53e3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2c7a22['commandName']){const _0x3a6e6b=_0x2c7a22['commandParams'][0x0]['forceValue'];return _0x4da113(o(_0x5c11fb,_0x3a6e6b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x321270=>[_0x321270,null]));class Nt extends _0x370139{static get['requires'](){return[vt];}['afterInit'](){const _0x1ac2a2=this['editor'];if(!_0x1ac2a2['plugins']['has']('TableClipboard'))return;const _0x3eb0ac=_0x1ac2a2['plugins']['get']('TrackChangesEditing'),_0x2d5f7d=_0x1ac2a2['plugins']['get']('TableUtils'),_0x24c952=_0x1ac2a2['plugins']['get'](vt),_0x20ecfa=_0x1ac2a2['plugins']['get']('TableClipboard');_0x24c952['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1ac2a2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1ac2a2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xd47b91=null;_0x1ac2a2['model']['on']('insertContent',(_0x465910,_0x20d0f8)=>{const [_0x47bc92,_0x2b5a3b]=_0x20d0f8,_0x32bf8f=_0x20d0f8[_0x20d0f8['length']-0x1];_0x32bf8f&&_0x32bf8f['forceDefaultExecution']||_0x3eb0ac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x524862,_0x191f65,_0x4f094b,_0x3ceb7d,_0x55467b){if(_0x191f65&&!_0x191f65['is']('documentSelection'))return!0x1;const _0x25a7bb=_0x55467b['getTableIfOnlyTableInContent'](_0x524862,_0x4f094b);if(!_0x25a7bb||!Ae(_0x25a7bb,void 0x0,_0x3ceb7d))return!0x1;const _0x2f7744=_0x3ceb7d['getSelectionAffectedTableCells'](_0x4f094b['document']['selection']);if(!_0x2f7744['length'])return!0x1;const _0x3497ae=_0x2f7744[0x0]['findAncestor']('table'),_0x140cda=_0x3ceb7d['getRowIndexes'](_0x2f7744),_0x20b832=_0x3ceb7d['getColumnIndexes'](_0x2f7744),_0x583c0b={'startRow':_0x140cda['first'],'endRow':_0x140cda['last'],'startColumn':_0x20b832['first'],'endColumn':_0x20b832['last']};return 0x1==_0x2f7744['length']&&(_0x583c0b['endRow']+=_0x3ceb7d['getRows'](_0x25a7bb)-0x1,_0x583c0b['endColumn']+=_0x3ceb7d['getColumns'](_0x25a7bb)-0x1),Ae(_0x3497ae,_0x583c0b,_0x3ceb7d);}(_0x47bc92,_0x2b5a3b,_0x1ac2a2['model'],_0x2d5f7d,_0x20ecfa)&&(_0x465910['stop'](),_0xd47b91={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1ac2a2['model']['change'](()=>{_0x1ac2a2['model']['insertContent'](_0x20d0f8[0x0],_0x20d0f8[0x1],_0x20d0f8[0x2],{'forceDefaultExecution':!0x0});const _0x3eb1a8=_0x324bd7(),{rowInsertionRanges:_0x1116b9,columnInsertionRanges:_0x127e07,insertionRanges:_0x29423b,deletionRanges:_0x11dfc5,cells:_0x12b1ee}=_0xd47b91;_0x1116b9['length']&&_0x3eb0ac['markMultiRangeInsertion'](_0x1116b9,'tablePasteRow',{'tablePasteChainId':_0x3eb1a8}),_0x127e07['length']&&_0x3eb0ac['markMultiRangeInsertion'](_0x127e07,'tablePasteColumn',{'tablePasteChainId':_0x3eb1a8}),_0x29423b['length']&&(_0x3eb0ac['markMultiRangeInsertion'](_0x29423b,'tablePaste',{'tablePasteChainId':_0x3eb1a8,'skipNestingCheck':!0x0}),_0x29423b['forEach'](_0x59a669=>_0x59a669['detach']?.())),_0x11dfc5['length']&&(_0x3eb0ac['markMultiRangeDeletion'](_0x11dfc5,'tablePaste',{'tablePasteChainId':_0x3eb1a8,'skipNestingCheck':!0x0}),_0x11dfc5['forEach'](_0x566104=>_0x566104['detach']?.()));const _0x1f6c82=_0x3eb0ac['markMultiRangeBlockFormat'](_0x12b1ee['map'](({element:_0x1e13d0})=>_0x1e13d0),{'formatGroupId':_0x324bd7()},[],'tablePasteCell',{'tablePasteChainId':_0x3eb1a8});if(_0x1f6c82){const _0x47914d=_0x1f6c82['getMarkers'](),_0x32224f=[];for(const {element:_0x42a42d,attributes:_0x4fc2fb}of _0x12b1ee){if(!_0x4fc2fb)continue;const _0x136d34=_0x1ac2a2['model']['createRangeOn'](_0x42a42d),_0x1747ae=_0x47914d['find'](_0x3bdc5c=>_0x3bdc5c['getRange']()['isEqual'](_0x136d34));_0x1747ae&&_0x32224f['push']([_0x1747ae['name'],_0x4fc2fb]);}_0x32224f['length']&&_0x1f6c82['setAttribute']('markerAttributes',Object['fromEntries'](_0x32224f));}_0xd47b91=null;}));},{'priority':_0x1a9e46['high']+0xa}),_0x1ac2a2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5f36a1,_0x109b00)=>{const [_0x145011,_0x576262,,_0x111a35]=_0x109b00;if(!_0xd47b91)return;_0x5f36a1['stop']();const _0x3a845a=_0x145011['cell'],_0x50313f=_0x576262,_0x5c4892=je(_0x3a845a),_0x5b0ea9=je(_0x50313f);_0x5f36a1['return']=_0x3a845a;let _0x22dd04=null,_0x74c01b=null;if(_0x5b0ea9||_0x5c4892){if(_0x5c4892&&!_0x5b0ea9){_0x111a35['remove'](_0x3a845a['getChild'](0x0));for(const _0x2e578f of Array['from'](_0x50313f['getChildren']()))_0x111a35['insert'](_0x2e578f,_0x3a845a,'end');const _0x57a275=_0xd47b91['rowInsertionIndexes']['includes'](_0x145011['row']),_0x5b33e5=_0xd47b91['columnInsertionIndexes']['includes'](_0x145011['column']);_0x57a275||_0x5b33e5||(_0x22dd04=_0x4d36a7['fromRange'](_0x111a35['createRangeIn'](_0x3a845a)));}else _0x5b0ea9&&!_0x5c4892&&(_0x74c01b=_0x111a35['createRangeIn'](_0x3a845a));}else{const _0x5b7e58=_0x111a35['createElement']('tableCellSuggestion'),_0x4ed3d7=_0x111a35['createElement']('tableCellSuggestion');_0x111a35['wrap'](_0x111a35['createRangeIn'](_0x3a845a),_0x4ed3d7),_0x111a35['insert'](_0x5b7e58,_0x3a845a,0x0);for(const _0x47e21e of Array['from'](_0x50313f['getChildren']()))_0x111a35['insert'](_0x47e21e,_0x5b7e58,'end');_0x22dd04=_0x4d36a7['fromRange'](_0x111a35['createRangeOn'](_0x5b7e58)),_0x74c01b=_0x4d36a7['fromRange'](_0x111a35['createRangeOn'](_0x4ed3d7));}const _0x3346da=Array['from'](_0x50313f['getAttributes']())['filter'](([_0x247181])=>we['includes'](_0x247181));_0xd47b91['cells']['push']({'element':_0x3a845a,'attributes':_0x3346da['length']?Object['fromEntries'](_0x3346da):null}),_0x22dd04&&_0xd47b91['insertionRanges']['push'](_0x22dd04),_0x74c01b&&_0xd47b91['deletionRanges']['push'](_0x74c01b);},{'priority':'high'}),_0x2d5f7d['on']('insertColumns',(_0x53fa0e,_0x7f824b)=>{const [_0x81f42e,_0x15d401={}]=_0x7f824b;if(!_0xd47b91)return;const _0x33aff4=_0x15d401['at']||0x0,_0x328744=_0x15d401['columns']||0x1;_0xd47b91['columnInsertionIndexes']=new Array(_0x328744)['fill'](_0x33aff4)['map']((_0x2f9e31,_0x3b6143)=>_0x2f9e31+_0x3b6143);for(const {cell:_0x346334}of _0x2d5f7d['createTableWalker'](_0x81f42e,{'startColumn':_0x33aff4,'endColumn':_0x33aff4+_0x328744-0x1}))_0xd47b91['columnInsertionRanges']['push'](_0x1ac2a2['model']['createRangeOn'](_0x346334));},{'priority':'low'}),_0x2d5f7d['on']('insertRows',(_0x229f00,_0x242813)=>{const [_0xc9f8a1,_0x4f00e0={}]=_0x242813;if(!_0xd47b91)return;const _0x4ee9e2=_0x4f00e0['at']||0x0,_0x3fb11e=_0x4f00e0['rows']||0x1;_0xd47b91['rowInsertionIndexes']=new Array(_0x3fb11e)['fill'](_0x4ee9e2)['map']((_0x22ae9d,_0x240a10)=>_0x22ae9d+_0x240a10);for(const {cell:_0x24860b}of _0x2d5f7d['createTableWalker'](_0xc9f8a1,{'startRow':_0x4ee9e2,'endRow':_0x4ee9e2+_0x3fb11e-0x1}))_0xd47b91['rowInsertionRanges']['push'](_0x1ac2a2['model']['createRangeOn'](_0x24860b));},{'priority':'low'}),_0x3eb0ac['descriptionFactory']['registerDescriptionCallback'](_0x1f32d0=>{if(_0x1f32d0['subType']&&_0x1f32d0['subType']['startsWith']('tablePaste'))return _0x1f32d0['previous']?{}:{'type':'insertion','content':o(_0x1ac2a2['locale'],'*Replace\x20table\x20cells*')};});const _0x1f16ca=()=>!0x1;for(const _0x5045b7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3eb0ac['_suggestionFactory']['registerCustomCallback']('insertion',_0x5045b7,'join',_0x1f16ca),_0x3eb0ac['_suggestionFactory']['registerCustomCallback']('deletion',_0x5045b7,'join',_0x1f16ca),_0x3eb0ac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5045b7,'join',_0x1f16ca);_0x3eb0ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1f16ca),_0x3eb0ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x558698,_0x4eae2d,_0x4b8672)=>{const _0x404cf1=_0x558698['map'](_0x36f525=>_0x36f525['getContainedElement']())['filter'](_0x33ae07=>_0x33ae07),_0x4fef7d=new Map(_0x404cf1['map'](_0x373a51=>[_0x373a51,null]));if(_0xd47b91){for(const {element:_0x1fc005,attributes:_0x224dec}of _0xd47b91['cells'])_0x224dec&&_0x4fef7d['set'](_0x1fc005,_0x224dec);}else{if(_0x4b8672&&_0x4b8672['markerAttributes'])for(const [_0x2b9754,_0x4d4cbd]of Object['entries'](_0x4b8672['markerAttributes'])){const _0x9f4938=_0x1ac2a2['model']['markers']['get'](_0x2b9754),_0x248285=_0x9f4938?_0x9f4938['getRange']()['getContainedElement']():null;_0x248285&&_0x4fef7d['set'](_0x248285,_0x4d4cbd);}}_0x1ac2a2['model']['change'](_0x388844=>{for(const [_0x528679,_0x3395e8]of _0x4fef7d)_0x388844['setAttributes']({...ve,..._0x3395e8},_0x528679);});});const _0x30f419=(_0x500ce5,_0x206908)=>{_0x3eb0ac['_suggestionFactory']['registerCustomCallback'](_0x500ce5,'tablePaste',_0x206908,(_0x24325d,_0x383269,_0x2e8c39)=>{_0x1ac2a2['model']['change'](_0x58cc62=>{const _0xf328cb=[];for(const _0x5c7bb5 of _0x24325d){const _0x23bb00=_0x5c7bb5['start']['nodeAfter'];_0x23bb00['is']('element','tableCellSuggestion')&&_0xf328cb['push'](_0x23bb00);}_0x3eb0ac['_suggestionFactory']['getSuggestionCallback'](_0x500ce5,null,_0x206908)(_0x24325d,_0x383269,_0x2e8c39);for(const _0x3c550f of _0xf328cb)'$graveyard'!=_0x3c550f['root']['rootName']&&_0x58cc62['unwrap'](_0x3c550f);});});};_0x30f419('insertion','accept'),_0x30f419('insertion','discard'),_0x30f419('deletion','accept'),_0x30f419('deletion','discard'),_0x3eb0ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x40b915=>{const _0x1c1f49=_0x40b915['map'](_0x244144=>_0x244144['getContainedElement']()),_0x39e006=_0x1c1f49[0x0]['findAncestor']('table'),{minRow:_0x57a883,maxRow:_0x4186a0}=_0x24c952['_getCoordsForCells'](_0x1c1f49);_0x2d5f7d['removeRows'](_0x39e006,{'at':_0x57a883,'rows':_0x4186a0-_0x57a883+0x1});}),_0x3eb0ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x243584=>{const _0x16a66d=_0x243584['map'](_0x5d4290=>_0x5d4290['getContainedElement']()),_0x3167a4=_0x16a66d[0x0]['findAncestor']('table'),{minColumn:_0x36c668,maxColumn:_0x532e99}=_0x24c952['_getCoordsForCells'](_0x16a66d);_0x2d5f7d['removeColumns'](_0x3167a4,{'at':_0x36c668,'columns':_0x532e99-_0x36c668+0x1});});const _0x31b6e5=(_0xe9b45e,_0x341a0c)=>{if(!_0x341a0c['subType']||!_0x341a0c['subType']['startsWith']('tablePaste'))return;const _0x5985ca=_0x341a0c['attributes']['tablePasteChainId'],_0x42053f=_0x3eb0ac['getSuggestions']()['filter'](_0x391700=>_0x391700['isInContent']&&_0x391700['attributes']&&_0x391700['attributes']['tablePasteChainId']==_0x5985ca);_0x42053f['length']&&_0x341a0c['getAllAdjacentSuggestions']()['length']!=_0x42053f['length']&&_0x42053f['reduce']((_0x47b74b,_0x24ae16)=>(_0x47b74b['next']=_0x24ae16,_0x24ae16['previous']=_0x47b74b,_0x24ae16));};function _0x27030b(_0x4b461f,_0x21aa91=!0x0){const {id:_0x52f658,authorId:_0x1d1e00}=_0x3eb0ac['_splitMarkerName'](_0x4b461f['markerName']),_0x37cb23=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2a8c00=_0x3eb0ac['activeMarkers']['includes'](_0x4b461f['markerName']);return _0x2a8c00&&_0x37cb23['push']('ck-suggestion-marker--active'),{'classes':_0x37cb23,'attributes':{'data-suggestion':_0x52f658,'data-author-id':_0x1d1e00},'priority':_0x2a8c00&&_0x21aa91?0xbc2:0xbb8};}_0x3eb0ac['on']('suggestionLoaded',_0x31b6e5,{'priority':'high'}),_0x3eb0ac['on']('suggestionUnloaded',_0x31b6e5,{'priority':'high'}),_0x1ac2a2['model']['document']['registerPostFixer'](()=>{let _0x465d93=!0x1;const _0x3f4a51=Array['from'](_0x1ac2a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1df5f2,data:_0x54604a}of _0x3f4a51){const {group:_0x47a10d,type:_0x3dc1f0,id:_0x3ebe46}=_0x3eb0ac['_splitMarkerName'](_0x1df5f2);if('suggestion'!=_0x47a10d||'deletion'!=_0x3dc1f0||_0x54604a['oldRange'])continue;if(!_0x3eb0ac['hasSuggestion'](_0x3ebe46))continue;const _0x2a9e31=_0x3eb0ac['getSuggestion'](_0x3ebe46)['getRanges'](),_0x35331f=_0x1ac2a2['plugins']['get']('Users')['me'];for(const _0x2c88a3 of _0x3eb0ac['getSuggestions']()){if(!_0x2c88a3['isInContent']||_0x2c88a3['author']!=_0x35331f)continue;if('formatBlock'!=_0x2c88a3['type']||'tablePasteCell'!=_0x2c88a3['subType'])continue;if(_0x2c88a3['getRanges']()['every'](_0x40a9b4=>_0x2a9e31['some'](_0x195615=>_0x195615['containsRange'](_0x40a9b4,!0x0)))){for(const _0x50e555 of _0x2c88a3['getAllAdjacentSuggestions']())_0x50e555['isInContent']&&(_0x50e555['discard'](),_0x465d93=!0x0);}}}return _0x465d93;}),_0x1ac2a2['model']['document']['registerPostFixer'](_0x4f5c19=>{const _0x54286e=_0x1ac2a2['commands']['get']('redo');if(!_0x54286e||!_0x54286e['_createdBatches']['has'](_0x4f5c19['batch']))return!0x1;let _0x17db89=!0x1;const _0x4a0747=_0x1ac2a2['plugins']['get']('Users')['me'],_0x309daf=_0x1ac2a2['model']['document']['differ']['getChanges'](),_0x1771f8=Array['from'](_0x1ac2a2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3ae3ae,data:_0x1fb6c4})=>{const {group:_0x3a4bd6,subType:_0x999b1d,authorId:_0x32c953}=_0x3eb0ac['_splitMarkerName'](_0x3ae3ae);return'suggestion'==_0x3a4bd6&&'tablePaste'==_0x999b1d&&_0x32c953==_0x4a0747['id']&&!_0x1fb6c4['oldRange'];});for(const _0x5d7b2a of _0x309daf){if('insert'!=_0x5d7b2a['type']||'tableCellSuggestion'!=_0x5d7b2a['name']||0x1!=_0x5d7b2a['length'])continue;const _0x3c7229=_0x4f5c19['createRange'](_0x5d7b2a['position'],_0x5d7b2a['position']['getShiftedBy'](0x1));if(!_0x1771f8['find'](({data:_0x2f28e0})=>_0x2f28e0['newRange']['isEqual'](_0x3c7229))){for(const {name:_0x596c25,data:_0x2b2307}of _0x1771f8)if(_0x3c7229['containsRange'](_0x2b2307['newRange'])){_0x4f5c19['updateMarker'](_0x596c25,{'range':_0x3c7229}),_0x17db89=!0x0;break;}}}return _0x17db89;}),_0x1ac2a2['model']['document']['registerPostFixer'](_0x139419=>{let _0x563af6=!0x1;const _0x8b3798=_0x1ac2a2['plugins']['get']('Users')['me'],_0x1a876d=_0x3eb0ac['getSuggestions']()['filter'](_0x31dbe2=>_0x31dbe2['isInContent']&&_0x31dbe2['author']==_0x8b3798),_0x448afc=new Set(),_0x515357=new Set();for(const _0x30eea8 of _0x1a876d)if('tablePaste'==_0x30eea8['subType'])for(const _0x44c0b5 of _0x30eea8['getMarkers']()){const _0x3d5cf4=_0x44c0b5['getRange']()['getContainedElement']();if(_0x3d5cf4){if(_0x3d5cf4['is']('element','tableCellSuggestion')&&je(_0x3d5cf4)){_0x30eea8['removeMarker'](_0x44c0b5['name']),_0x448afc['add'](_0x3d5cf4),_0x563af6=!0x0;const _0x3f2057=_0x3d5cf4['nextSibling'],_0x1e86df=_0x3d5cf4['previousSibling'],_0x1c09d2=_0x3f2057&&_0x3f2057['is']('element','tableCellSuggestion'),_0x4283b9=_0x1e86df&&_0x1e86df['is']('element','tableCellSuggestion');_0x1c09d2&&!_0x448afc['has'](_0x3f2057)&&_0x515357['add'](_0x3f2057),_0x4283b9&&!_0x448afc['has'](_0x1e86df)&&_0x515357['add'](_0x1e86df);}else _0x3d5cf4['is']('element','paragraph')&&_0x3d5cf4['isEmpty']&&(_0x30eea8['removeMarker'](_0x44c0b5['name']),_0x563af6=!0x0);}}else{if('tablePasteCell'==_0x30eea8['subType']){if(!_0x30eea8['attributes']||!_0x30eea8['attributes']['tablePasteChainId'])continue;const _0x1f5639=_0x30eea8['attributes']['markerAttributes'];if(_0x1f5639&&Object['keys'](_0x1f5639)['length'])continue;const _0x3311a5=_0x30eea8['attributes']['tablePasteChainId'];let _0x5d27c6=!0x0,_0x4ab9c5=!0x0;for(const _0x351321 of _0x1a876d)if(_0x351321['subType']&&_0x351321['subType']['startsWith']('tablePaste')){if(!_0x351321['attributes']['tablePasteChainId']){_0x4ab9c5=!0x1;break;}if(_0x351321['id']!=_0x30eea8['id']&&_0x351321['attributes']['tablePasteChainId']==_0x3311a5){_0x5d27c6=!0x1;break;}}_0x4ab9c5&&_0x5d27c6&&(_0x30eea8['removeMarkers'](),_0x563af6=!0x0);}}for(const _0x372486 of _0x448afc)_0x139419['remove'](_0x372486);for(const _0x2afeba of _0x515357)_0x139419['unwrap'](_0x2afeba);return _0x563af6;}),_0x1ac2a2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4f5379=>_0x27030b(_0x4f5379),'converterPriority':'high'}),_0x1ac2a2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x225125,_0x34cad1)=>_0x34cad1['options']['showSuggestionHighlights']?_0x27030b(_0x225125,!0x1):null,'converterPriority':'high'});const _0x48f41c=_0x1ac2a2['editing']['view'];this['listenTo'](_0x48f41c['document'],'clipboardOutput',(_0xb37360,_0x5003fa)=>{const _0x3cdf18=[];for(const _0x2c6798 of _0x48f41c['createRangeIn'](_0x5003fa['content'])['getItems']())_0x2c6798['is']('element','suggestion-td')&&_0x3cdf18['push'](_0x2c6798);_0x48f41c['change'](_0x30823=>{for(const _0xc983ba of _0x3cdf18)_0x30823['move'](_0x30823['createRangeIn'](_0xc983ba),_0x30823['createPositionBefore'](_0xc983ba)),_0x30823['remove'](_0xc983ba);});});}}function je(_0x2b5157){if(_0x2b5157['isEmpty'])return!0x0;const _0x9d338=_0x2b5157['getChild'](0x0);return _0x9d338['is']('element','paragraph')&&_0x9d338['isEmpty'];}function Ae(_0x1520fc,_0x2ae1b9={},_0x4226f2){for(const {isAnchor:_0x56919c,cellHeight:_0x1f218d,cellWidth:_0x33633d}of _0x4226f2['createTableWalker'](_0x1520fc,{'includeAllSlots':!0x0,..._0x2ae1b9}))if(!_0x56919c||0x1!=_0x1f218d||0x1!=_0x33633d)return!0x1;return!0x0;}class Dt extends _0x370139{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xea352f=this['editor']['plugins']['get']('TrackChangesEditing');_0xea352f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xea352f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xea352f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xea352f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xea352f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xea352f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24288b,_0x5bf741){const _0xaee9dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x611cb8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24ea83=_0x5bf741['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x978a73=_0x611cb8['getColumnGroupElement'](_0x24ea83);let _0x5bc88a=_0x978a73?_0x611cb8['getTableColumnsWidths'](_0x978a73):null,_0x4f9d23=_0x24ea83['getAttribute']('tableWidth')||null;const _0x280fe0=_0x5bf741['tableWidth']||_0x4f9d23,_0x2121db=_0x5bf741['columnWidths']||_0x5bc88a,_0x27d72b=this['editor']['plugins']['get']('Users')['me'];for(const _0x59419d of _0xaee9dc['getSuggestions']()){const _0x24f18e=_0x59419d['getContainedElement']();if('resizeTable'===_0x59419d['subType']&&_0x24f18e===_0x24ea83){_0x59419d['author']!==_0x27d72b&&_0x59419d['discard']();const _0x32f0dd=_0x59419d['data']['commandParams'];_0x4f9d23=_0x32f0dd[0x0]['tableWidth'],_0x5bc88a=_0x32f0dd[0x0]['columnWidths'];break;}}_0x24288b({'table':_0x24ea83,'tableWidth':_0x280fe0,'columnWidths':_0x2121db}),_0xaee9dc['markBlockFormat'](_0x24ea83,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f9d23,'columnWidths':_0x5bc88a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3a17cb){if('formatBlock'!=_0x3a17cb['type']&&'formatInline'!=_0x3a17cb['type'])return;const {data:_0x492cef}=_0x3a17cb;if(_0x492cef&&'resizeTable'===_0x492cef['formatGroupId']){const _0x338e71='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x338e71)};}}}class Mt extends _0x370139{['afterInit'](){const _0x50dd43=this['editor'];_0x50dd43['plugins']['has']('Template')&&_0x50dd43['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x370139{['afterInit'](){const _0x3d13ba=this['editor'];if(!_0x3d13ba['commands']['get']('insertTableOfContents'))return;_0x3d13ba['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5a8d7a=_0x3d13ba['plugins']['get']('TrackChangesEditing'),_0x566eb2=_0x3d13ba['locale'];_0x5a8d7a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3453a6=>o(_0x566eb2,'ELEMENT_TABLE_OF_CONTENTS',_0x3453a6));}}class Bt extends _0x370139{['afterInit'](){const _0x43e49d=this['editor'];if(!_0x43e49d['plugins']['has']('Title'))return;const _0x4a8635=_0x43e49d['plugins']['get']('TrackChangesEditing');_0x4a8635['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x43e49d['locale'],'ELEMENT_TITLE')),_0x43e49d['model']['document']['registerPostFixer'](_0x5da1fe=>{let _0x2fd1f5=!0x1;const _0x5f2b03=Array['from'](_0x43e49d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x72f5df,data:_0x4bd364}of _0x5f2b03){const {group:_0x57fd7b}=_0x4a8635['_splitMarkerName'](_0x72f5df);if('suggestion'!==_0x57fd7b||!_0x4bd364['newRange'])continue;const _0x22724e=_0x4bd364['newRange'],_0xdfe023=_0x22724e['end']['nodeBefore'];if(!_0xdfe023||!_0xdfe023['is']('element','title-content'))continue;if(!_0x22724e['start']['isTouching'](_0x22724e['end']))continue;const _0xe62ca5=_0x43e49d['model']['schema']['getNearestSelectionRange'](_0x22724e['end'],'forward');if(_0xe62ca5&&_0xe62ca5['isCollapsed']){const _0x4cf2a3=_0x5da1fe['createRange'](_0x22724e['start'],_0xe62ca5['start']);_0x4cf2a3['isEqual'](_0x22724e)||(_0x5da1fe['updateMarker'](_0x72f5df,{'range':_0x4cf2a3}),_0x2fd1f5=!0x0);}_0x2fd1f5||(_0x5da1fe['removeMarker'](_0x72f5df),_0x2fd1f5=!0x0);}return _0x2fd1f5;});}}class Ot extends _0x370139{['afterInit'](){const _0x1f0bc9=this['editor'],_0x7fc007=_0x1f0bc9['plugins']['get']('TrackChangesEditing');_0x1f0bc9['plugins']['has']('UndoEditing')&&(_0x7fc007['enableCommand']('undo'),_0x7fc007['enableCommand']('redo'));}}class Rt extends _0x370139{static get['requires'](){return[vt];}['afterInit'](){const _0x498a31=this['editor'];if(!_0x498a31['plugins']['has']('TableCaptionEditing'))return;_0x498a31['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x370139{['tableProperties'];['tableCellProperties'];constructor(_0x14f474){super(_0x14f474),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 _0x4474ee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x97534c of this['tableProperties'])_0x4474ee['enableCommand'](_0x97534c,(_0x270b98,_0x599567)=>{const _0xd828cf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x97534c,[_0xd828cf],this['tableProperties'],'tableProperties',_0x270b98,_0x599567);});_0x4474ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4474ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4474ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d5b7f,_0x29564d)=>this['handleDiscardAction'](this['tableProperties'],_0x4d5b7f,_0x29564d)),_0x4474ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3d86af of this['tableCellProperties'])_0x4474ee['enableCommand'](_0x3d86af,(_0xbea674,_0x4431b4)=>{const _0x3615fa=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3d86af,_0x3615fa,this['tableCellProperties'],'tableCellProperties',_0xbea674,_0x4431b4);});_0x4474ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4474ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4474ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x171816,_0x4fd843)=>this['handleDiscardAction'](this['tableCellProperties'],_0x171816,_0x4fd843)),_0x4474ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4474ee['descriptionFactory']['registerDescriptionCallback'](_0x59c4cc=>this['handleSuggestionDescription'](_0x59c4cc));}['_handlePropertyChange'](_0x2dc0b7,_0x1cec21,_0x1853a0,_0x27fb16,_0x557e7b,_0x4a9449){const _0x189563=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4a9449['batch'],()=>{for(const _0x544f8c of _0x1cec21){if(this['_getSuggestion'](_0x544f8c,_0x27fb16))_0x557e7b(_0x4a9449);else{const _0x532230={};for(const _0xde8c16 of _0x1853a0){const _0x3768c7=_0x544f8c['getAttribute'](_0xde8c16);void 0x0!==_0x3768c7&&(_0x532230[_0xde8c16]=_0x3768c7);}_0x557e7b(_0x4a9449),_0x189563['markBlockFormat'](_0x544f8c,{'commandParams':[_0x532230]},[],_0x27fb16);}}});}['handleDiscardAction'](_0x973ab9,_0x429963,_0x3521ae){const _0x1096ad=_0x429963[0x0]['start']['nodeAfter'],_0x45fe37=_0x3521ae['commandParams'][0x0];this['editor']['model']['change'](_0x22c034=>{for(const _0x498cfa of _0x973ab9)void 0x0!==_0x45fe37[_0x498cfa]?_0x22c034['setAttribute'](_0x498cfa,_0x45fe37[_0x498cfa],_0x1096ad):_0x22c034['removeAttribute'](_0x498cfa,_0x1096ad);});}['handleSuggestionDescription'](_0x3526f6){if(_0x3526f6['data'])switch(_0x3526f6['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'](_0x4b156e,_0x1fa760){const _0x5e3ca5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b23ae of _0x5e3ca5['getSuggestions']({'skipNotAttached':!0x0})){const _0x944ccf=_0x1b23ae['getContainedElement']();if(_0x1b23ae['subType']===_0x1fa760&&_0x944ccf===_0x4b156e)return _0x1b23ae;}return null;}}const m='$elementName';class p extends _0x370139{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x30dca3,_0x2f461e,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdbb6c5){super(_0xdbb6c5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4e332c,_0x31a456,_0x27aa90,_0x46ddc8)=>{this['_model']['change'](()=>{for(const _0x4916ef of[..._0x46ddc8,..._0x27aa90])this['_model']['markers']['has'](_0x4916ef)&&_0xdbb6c5['editing']['reconvertMarker'](_0x4916ef);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xdbb6c5['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(),_0xdbb6c5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xdbb6c5['config']['get']('trackChanges.trackFormatChanges'),_0xdbb6c5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xdbb6c5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xdbb6c5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x13bb48=this['editor'],_0x533e04=(_0x3cda2c,_0x2aabab)=>{if('attribute'!=_0x3cda2c)return'ck-suggestion-marker-'+_0x3cda2c;const _0x412ab5=_0x2aabab['split']('|')[0x0];return this['_isBlockAttribute'](_0x412ab5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x13bb48['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1e187f=>{const {id:_0x3a943a,authorId:_0x5b733d,type:_0x197350,subType:_0x2094a7}=this['_splitMarkerName'](_0x1e187f['markerName']),_0x2c5cf6=['ck-suggestion-marker',_0x533e04(_0x197350,_0x2094a7)];let _0x5d3375=0xbb8;return this['activeMarkers']['includes'](_0x1e187f['markerName'])&&(_0x2c5cf6['push']('ck-suggestion-marker--active'),_0x5d3375=0xbc2),'deletion'==_0x197350&&(_0x5d3375+=0x5),{'classes':_0x2c5cf6,'attributes':{'data-suggestion':_0x3a943a,'data-author-id':_0x5b733d},'priority':_0x5d3375};}}),_0x13bb48['conversion']['for']('dataDowncast')['add'](_0x1c71d8=>{_0x1c71d8['on']('addMarker:suggestion',(_0x2f541f,_0x750aca,_0x2479c6)=>{if(!_0x2479c6['options']['showSuggestionHighlights'])return;const _0x36bbe4=_0x750aca['item'];if(!_0x36bbe4)return;const _0x3488d8=_0x2479c6['mapper']['toViewElement'](_0x36bbe4);_0x13bb48['model']['schema']['isObject'](_0x36bbe4)&&_0x3488d8&&!_0x3488d8['getCustomProperty']('widget')&&_0x3488d8['is']('containerElement')&&_0x2bf494(_0x3488d8,_0x2479c6['writer']);},{'priority':'high'});}),_0x13bb48['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd3be36,_0x4ad773)=>{if(!_0x4ad773['options']['showSuggestionHighlights'])return null;const {type:_0x24bd06,subType:_0x3197f0}=this['_splitMarkerName'](_0xd3be36['markerName']);return{'classes':['ck-suggestion-marker',_0x533e04(_0x24bd06,_0x3197f0)],'priority':0xbb8};}});const _0x17cd79=({showActiveMarkers:_0x57a749=!0x0,isAttributeSuggestion:_0xffc625=!0x1}={})=>(_0x384ea7,_0xa424bc,_0x56c868)=>{if(!_0xa424bc['item'])return;const {id:_0x32042b,authorId:_0x22cc10}=this['_splitMarkerName'](_0xa424bc['markerName']);if(_0xffc625){const _0x13f8d9=this['_suggestions']['get'](_0x32042b),_0x101c95=this['_getAttributeKey'](_0x13f8d9);if(!this['_isBlockAttribute'](_0x101c95))return;}if(_0xa424bc['item']['is']('selection'))return void _0x56c868['consumable']['consume'](_0xa424bc['item'],_0x384ea7['name']);const _0x437d3c=_0x56c868['mapper']['toViewElement'](_0xa424bc['item']);if(_0xa424bc['item']['is']('element')&&_0x13bb48['model']['schema']['isBlock'](_0xa424bc['item'])&&!_0x437d3c['getCustomProperty']('addHighlight')){_0x56c868['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x437d3c),_0x56c868['writer']['setAttribute']('data-suggestion',_0x32042b,_0x437d3c),_0x56c868['writer']['setAttribute']('data-author-id',_0x22cc10,_0x437d3c),_0x56c868['mapper']['bindElementToMarker'](_0x437d3c,_0xa424bc['markerName']),_0x57a749&&(this['activeMarkers']['includes'](_0xa424bc['markerName'])?_0x56c868['writer']['addClass']('ck-suggestion-marker--active',_0x437d3c):_0x56c868['writer']['removeClass']('ck-suggestion-marker--active',_0x437d3c));for(const _0xc676bb of _0x13bb48['model']['createRangeIn'](_0xa424bc['item'])['getItems']())_0x56c868['consumable']['consume'](_0xc676bb,_0x384ea7['name']);_0x56c868['consumable']['consume'](_0xa424bc['item'],_0x384ea7['name']);}};_0x13bb48['conversion']['for']('dataDowncast')['add'](_0x3d6057=>{_0x3d6057['on']('addMarker:suggestion:formatBlock',(_0x19a67e,_0xb6a2d3,_0x1648e5)=>{_0x1648e5['options']['showSuggestionHighlights']&&_0x17cd79({'showActiveMarkers':!0x1})(_0x19a67e,_0xb6a2d3,_0x1648e5);},{'priority':'highest'});}),_0x13bb48['conversion']['for']('dataDowncast')['add'](_0x22ae84=>{_0x22ae84['on']('addMarker:suggestion:attribute',(_0x583383,_0x5fec66,_0x3b90f8)=>{_0x3b90f8['options']['showSuggestionHighlights']&&_0x17cd79({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x583383,_0x5fec66,_0x3b90f8);},{'priority':'highest'});}),_0x13bb48['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1be45c,_0x238932)=>_0x238932['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1be45c['substr'](0xb)}}),_0x13bb48['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xc2d87b,{writer:_0xdfa759})=>{let _0x47f33a='suggestion:'+_0xc2d87b['getAttribute']('suggestion-type')+':'+_0xc2d87b['getAttribute']('id');return _0xc2d87b['getAttribute']('marker-count')&&(_0x47f33a+=':'+_0xc2d87b['getAttribute']('marker-count')),_0xdfa759['createElement']('$marker',{'data-name':_0x47f33a});}}),_0x13bb48['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x13bb48['conversion']['for']('editingDowncast')['add'](_0x4ad97a=>{_0x4ad97a['on']('addMarker:suggestion:formatBlock',_0x17cd79(),{'priority':'high'});}),_0x13bb48['conversion']['for']('editingDowncast')['add'](_0x38f91f=>{_0x38f91f['on']('addMarker:suggestion:attribute',_0x17cd79({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x13bb48['conversion']['for']('editingDowncast')['add'](_0x367dbd=>{_0x367dbd['on']('removeMarker:suggestion:formatBlock',(_0x2c7d83,_0x41e9e3,_0x52fb69)=>{const _0x1e9be2=_0x52fb69['mapper']['markerNameToElements'](_0x41e9e3['markerName']);if(_0x1e9be2){for(const _0x3780d2 of _0x1e9be2)_0x3780d2['getCustomProperty']('addHighlight')||(_0x52fb69['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3780d2),_0x52fb69['writer']['removeAttribute']('data-suggestion',_0x3780d2),_0x52fb69['writer']['removeAttribute']('data-author-id',_0x3780d2),_0x52fb69['mapper']['unbindElementFromMarkerName'](_0x3780d2,_0x41e9e3['markerName']));}},{'priority':'high'});}),_0x13bb48['conversion']['for']('editingDowncast')['add'](_0x2c67f9=>{_0x2c67f9['on']('removeMarker:suggestion:attribute',(_0x50b1f9,_0x300559,_0x24df3a)=>{const _0x3a4d22=_0x24df3a['mapper']['markerNameToElements'](_0x300559['markerName']);if(!_0x3a4d22)return;const {id:_0x3b5252}=this['_splitMarkerName'](_0x300559['markerName']),_0xf3a967=this['_suggestions']['get'](_0x3b5252),_0x2c9c93=this['_getAttributeKey'](_0xf3a967);if(this['_isBlockAttribute'](_0x2c9c93)){for(const _0x4aea9c of _0x3a4d22)_0x4aea9c['getCustomProperty']('addHighlight')||(_0x24df3a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4aea9c),_0x24df3a['writer']['removeAttribute']('data-suggestion',_0x4aea9c),_0x24df3a['writer']['removeAttribute']('data-author-id',_0x4aea9c),_0x24df3a['mapper']['unbindElementFromMarkerName'](_0x4aea9c,_0x300559['markerName']));}},{'priority':'high'});}),_0x13bb48['model']['document']['registerPostFixer'](_0x2f044c=>{let _0x1fedbf=!0x1;const _0x383060=Array['from'](_0x13bb48['model']['document']['differ']['getChangedMarkers']()),_0x3daff4=new Set();for(const {name:_0x458294,data:_0x27d012}of _0x383060){const {group:_0xc3b8d3,type:_0xf99b0f,subType:_0x1de96e,id:_0x2dd06a}=this['_splitMarkerName'](_0x458294);if('suggestion'!==_0xc3b8d3)continue;const _0x317a0f=this['_suggestions']['get'](_0x2dd06a);if(null!=_0x27d012['newRange']){'formatInline'==_0xf99b0f&&(_0x1fedbf=_0x1fedbf||Pt(_0x27d012['newRange'],_0x458294,_0x2f044c,_0x13bb48['model']['schema']));const _0x1bae31='attribute'==_0xf99b0f&&this['_isBlockAttribute'](_0x1de96e['split']('|')[0x0]);if(_0x27d012['newRange']['isCollapsed']||'$graveyard'==_0x27d012['newRange']['root']['rootName']||'formatBlock'==_0xf99b0f&&!Ft(_0x27d012['newRange'])||_0x1bae31&&!Ft(_0x27d012['newRange'])||'deletion'==_0xf99b0f&&!(!Vt(_0x219c92=_0x27d012['newRange'])&&!function(_0x3601fc){return _0x3601fc['start']['parent']==_0x3601fc['end']['nodeBefore']&&_0x3601fc['start']['isAtEnd'];}(_0x219c92)))_0x2f044c['removeMarker'](_0x458294),_0x1fedbf=!0x0;else{if(!_0x317a0f||!_0x317a0f['isInContent'])continue;if(_0x27d012['newRange']&&_0x27d012['oldRange']&&_0x27d012['newRange']['isEqual'](_0x27d012['oldRange']))continue;_0x3daff4['add'](_0x317a0f);}}}var _0x219c92;return _0x3daff4['size']>0x0&&(_0x1fedbf=!!this['_joinWithAdjacentSuggestions'](_0x3daff4)||_0x1fedbf),_0x1fedbf;}),_0x13bb48['model']['document']['registerPostFixer'](_0x5e1e84=>{let _0x1e683b=!0x1;for(const _0x29e12c of _0x13bb48['model']['document']['differ']['getChanges']())if('insert'==_0x29e12c['type'])for(const _0x679f46 of this['_suggestions']['values']()){if(_0x679f46['isMultiRange']||!_0x679f46['isInContent'])continue;const _0x17b81b='formatBlock'==_0x679f46['type'],_0x3035e5=this['_getAttributeKey'](_0x679f46),_0x3d04a1=_0x3035e5&&this['_isBlockAttribute'](_0x3035e5);if(!_0x17b81b&&!_0x3d04a1)continue;const _0x57a943=_0x679f46['getFirstRange']();if(_0x57a943['start']['parent']!=_0x57a943['end']['parent']&&!_0x57a943['end']['isAtEnd']){const _0x2542f8=_0x13bb48['model']['createPositionAt'](_0x57a943['start']['nodeAfter'],'end'),_0x2da69f=_0x13bb48['model']['createRange'](_0x57a943['start'],_0x2542f8);_0x5e1e84['updateMarker'](_0x679f46['getFirstMarker'](),{'range':_0x2da69f}),_0x1e683b=!0x0;}}return _0x1e683b;}),_0x13bb48['model']['document']['registerPostFixer'](_0x2a69d5=>this['_processAttributeChanges'](_0x2a69d5)),_0x13bb48['model']['document']['registerPostFixer'](_0x4c5a50=>!_0x4c5a50['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4c5a50)),_0x13bb48['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x13bb48['model']['document']['on']('change:data',(_0x1148a3,_0x4b4cd1)=>{if(!_0x4b4cd1['isLocal']||_0x4b4cd1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3e1037=_0x13bb48['model']['document']['differ']['getChanges']();if(0x0==_0x3e1037['length'])return;const _0x134bc3=[],_0x4c45a5=_0x3e1037['filter'](_0x136ba6=>'attribute'==_0x136ba6['type']),_0x3225f6=_0x3e1037['filter'](_0x15eaf2=>'insert'==_0x15eaf2['type']&&'$text'!=_0x15eaf2['name']);for(const _0x43004f of _0x4c45a5)this['_isRegisteredAttribute'](_0x43004f['attributeKey'])&&_0x134bc3['push']({'key':_0x43004f['attributeKey'],'newValue':_0x43004f['attributeNewValue'],'oldValue':_0x43004f['attributeOldValue'],'range':Lt(_0x43004f['range'],_0x13bb48['model'])});for(const _0x46e2a0 of _0x3225f6){if('rename'!=_0x46e2a0['action']&&'refresh'!=_0x46e2a0['action'])continue;const _0x290345=Jt(_0x46e2a0['position']['nodeAfter'],_0x13bb48['model']),_0x335ab7=_0x46e2a0['before'];'rename'==_0x46e2a0['action']&&_0x134bc3['push']({'key':m,'newValue':_0x46e2a0['name'],'oldValue':_0x335ab7['name'],'range':_0x290345});for(const [_0x1c6c85,_0x318b32]of _0x335ab7['attributes']){if(!this['_isRegisteredAttribute'](_0x1c6c85))continue;const _0x2dc090=_0x46e2a0['attributes']['get'](_0x1c6c85);_0x318b32!==_0x2dc090&&_0x134bc3['push']({'key':_0x1c6c85,'newValue':_0x2dc090,'oldValue':_0x318b32,'range':_0x290345});}for(const [_0x522dd0,_0x4237cd]of _0x46e2a0['attributes'])this['_isRegisteredAttribute'](_0x522dd0)&&(_0x335ab7['attributes']['has'](_0x522dd0)||_0x134bc3['push']({'key':_0x522dd0,'newValue':_0x4237cd,'oldValue':null,'range':_0x290345}));}0x0!=_0x134bc3['length']&&_0x13bb48['model']['enqueueChange'](_0x4b4cd1,_0x3ea533=>{const _0x255d6c=_0x324bd7();for(const {range:_0xe6a0f8,key:_0x252411,oldValue:_0x4d024b,newValue:_0x132ae8}of _0x134bc3)this['markAttributeChange'](_0xe6a0f8,_0x252411,_0x4d024b,_0x132ae8,{'groupId':_0x255d6c});this['_reduceExistingSuggestions'](_0x3ea533,_0x134bc3);});},{'priority':'lowest'}),_0x13bb48['model']['markers']['on']('update:suggestion',(_0x291c77,_0x71c4e9,_0x5c91e2)=>{if(null==_0x5c91e2){const {id:_0x243893}=this['_splitMarkerName'](_0x71c4e9['name']),_0x42feff=this['_suggestions']['get'](_0x243893);_0x42feff&&_0x42feff['addMarkerName'](_0x71c4e9['name']);}}),_0x13bb48['model']['document']['on']('change:data',()=>{const _0x2e0e89=Array['from'](_0x13bb48['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3d8d07=>'suggestion'===this['_splitMarkerName'](_0x3d8d07['name'])['group']);if(0x0===_0x2e0e89['length'])return;_0x2e0e89['sort']((_0x41536b,_0x3e3cd1)=>{const _0x2c74c8=_0x41536b['data']['oldRange'],_0x42068f=_0x3e3cd1['data']['oldRange'];return null===_0x2c74c8&&null===_0x42068f?0x0:null===_0x2c74c8&&null!==_0x42068f?-0x1:null!==_0x2c74c8&&null===_0x42068f?0x1:_0x2c74c8['start']['isBefore'](_0x42068f['start'])?-0x1:0x1;});const _0x3cea79=new Set(),_0x35c92d=new Set();for(const {name:_0x1c9ecd,data:_0x2795a3}of _0x2e0e89){const {id:_0x372fae}=this['_splitMarkerName'](_0x1c9ecd);if(null===_0x2795a3['oldRange']){const _0x262405=this['_handleNewSuggestionMarker'](_0x1c9ecd);_0x35c92d['add'](_0x262405);}else{const _0x9b5fa5=this['_suggestions']['get'](_0x372fae);null!==_0x2795a3['newRange']||_0x9b5fa5['isInContent']?(_0x3cea79['add'](_0x9b5fa5['head']),_0x35c92d['add'](_0x9b5fa5)):this['_removeSuggestion'](_0x9b5fa5);}}_0x35c92d['size']>0x0&&this['_refreshSuggestionsChain'](_0x35c92d);for(const _0x5f1a1d of _0x3cea79)this['fire']('suggestionChanged',_0x5f1a1d);}),_0x13bb48['model']['on']('applyOperation',(_0x1b4299,_0x2e28d0)=>{const _0x43998a=_0x2e28d0[0x0];if(!this['_suggestions']['size'])return;if(!_0x43998a['isDocumentOperation'])return;if(_0x43998a['batch']['isUndo']||!_0x43998a['batch']['isLocal'])return;let _0x1c70ce,_0x53ae7a;switch(_0x43998a['type']){case'insert':_0x1c70ce=_0x13bb48['model']['createPositionAt'](_0x43998a['position']),_0x53ae7a=_0x1c70ce['getShiftedBy'](_0x43998a['howMany']);break;case'split':_0x1c70ce=_0x13bb48['model']['createPositionAt'](_0x43998a['splitPosition']),_0x53ae7a=_0x13bb48['model']['createPositionAt'](_0x43998a['moveTargetPosition']);break;case'move':_0x1c70ce=_0x13bb48['model']['createPositionAt'](_0x43998a['targetPosition']),_0x53ae7a=_0x1c70ce['getShiftedBy'](_0x43998a['howMany']);break;default:return;}const _0x551fb2=_0x13bb48['model']['createRange'](_0x1c70ce,_0x53ae7a);_0x13bb48['model']['change'](()=>{for(const {suggestion:_0x26f529,meta:_0x23d14c}of this['_findSuggestions'](_0x551fb2)){if(_0x26f529['isMultiRange'])continue;if('formatInline'==_0x26f529['type'])continue;const _0x45c05a=this['_getAttributeKey'](_0x26f529);if(_0x45c05a&&this['_isBlockAttribute'](_0x45c05a)&&'split'!=_0x43998a['type'])continue;const _0x29ee8c=_0x26f529['data']&&_0x26f529['data']['multipleBlocks'];('formatBlock'!=_0x26f529['type']||'split'==_0x43998a['type']&&!_0x29ee8c)&&(_0x23d14c['containsRangeInObject']||'insertion'==_0x26f529['type']&&_0x23d14c['isOwn']||_0x26f529['getFirstRange']()['containsRange'](_0x551fb2)&&this['_breakSuggestionMarker'](_0x26f529,_0x1c70ce,_0x53ae7a));}});},{'priority':'lowest'}),_0x13bb48['model']['on']('deleteContent',(_0x5de0b0,_0x38dfa8)=>{const _0x3b4be4=_0x38dfa8[0x0],_0x219947=_0x38dfa8[0x1];if(_0x219947&&_0x219947['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b4be4['isCollapsed'])return;const _0x5ab58b=_0x13bb48['model']['schema'],{start:_0x17b8d3,end:_0x1f1578}=_0x3b4be4['getFirstRange'](),_0x54bf54=_0x17b8d3['nodeAfter']&&_0x5ab58b['isLimit'](_0x17b8d3['nodeAfter'])?null:_0x5ab58b['getNearestSelectionRange'](_0x17b8d3,'forward'),_0x524864=_0x1f1578['nodeBefore']&&_0x5ab58b['isLimit'](_0x1f1578['nodeBefore'])?null:_0x5ab58b['getNearestSelectionRange'](_0x1f1578,'backward'),_0x2966b7=_0x13bb48['model']['createRange'](_0x54bf54?_0x54bf54['start']:_0x17b8d3,_0x524864?_0x524864['end']:_0x1f1578);_0x13bb48['model']['change'](_0x374fbc=>{this['markDeletion'](_0x2966b7);const _0x7abf6e=_0x13bb48['model']['schema']['getNearestSelectionRange'](_0x2966b7['start']);_0x3b4be4['is']('documentSelection')?_0x374fbc['setSelection'](_0x7abf6e):_0x3b4be4['setTo'](_0x7abf6e);}),_0x5de0b0['stop']();},{'priority':_0x1a9e46['normal']+0xa}),_0x13bb48['model']['on']('insertContent',(_0xeba93f,_0x45fe54)=>{const _0x45aa5f=_0x45fe54[_0x45fe54['length']-0x1];_0x45aa5f&&_0x45aa5f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x13bb48['model']['change'](()=>{let _0x60603b=_0x13bb48['model']['insertContent'](_0x45fe54[0x0],_0x45fe54[0x1],_0x45fe54[0x2],{'forceDefaultExecution':!0x0});if(!_0x60603b)return;_0xeba93f['return']=_0x60603b['clone']();const _0x4fad9a=_0x60603b['end']['nodeBefore'],_0x3085b8=_0x13bb48['model']['schema'];_0x4fad9a&&_0x3085b8['isBlock'](_0x4fad9a)&&!_0x3085b8['isObject'](_0x4fad9a)&&(_0x60603b=_0x13bb48['model']['createRange'](_0x60603b['start'],_0x13bb48['model']['createPositionAt'](_0x4fad9a,'end'))),this['markInsertion'](_0x60603b);}),_0xeba93f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x57a88a=new O(_0x13bb48,this['_suggestions']);_0x13bb48['commands']['add']('acceptSuggestion',_0x57a88a),this['enableCommand']('acceptSuggestion');const _0x2e1e73=new R(_0x13bb48,this['_suggestions']);_0x13bb48['commands']['add']('discardSuggestion',_0x2e1e73),this['enableCommand']('discardSuggestion'),_0x13bb48['commands']['add']('acceptAllSuggestions',new x(_0x13bb48,_0x57a88a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x13bb48['commands']['add']('discardAllSuggestions',new x(_0x13bb48,_0x2e1e73,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x13bb48['commands']['add']('acceptSelectedSuggestions',new E(_0x13bb48,_0x57a88a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x13bb48['commands']['add']('discardSelectedSuggestions',new E(_0x13bb48,_0x2e1e73,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3d1e39=_0x13bb48['plugins']['get']('CommentsRepository');this['listenTo'](_0x3d1e39,'addComment',(_0x7caacd,{threadId:_0x485c6c})=>{const _0x1e670c=this['_suggestions']['get'](_0x485c6c);_0x1e670c&&_0x1e670c['commentThread']&&0x1===_0x1e670c['commentThread']['length']&&this['_updateSuggestionData'](_0x485c6c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3d1e39,'removeComment',(_0x8513ad,{threadId:_0x451f25})=>{const _0x5bc083=this['_suggestions']['get'](_0x451f25);_0x5bc083&&_0x5bc083['commentThread']&&!_0x5bc083['commentThread']['length']&&this['_updateSuggestionData'](_0x451f25,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x26beb0){const _0x1b9034=_0x6cd00e([0x31,0x7a,0x65,0x5a,0x4a,0x43,0x76,0x45,0x6b,0x58,0x74,0x4e,0x32,0x42,0x71,0x50,0x66,0x6f,0x4b,0x63,0x64,0x30,0x39,0x77,0x49,0x48,0x46,0x35,0x4f,0x6e,0x47,0x4d,0x62,0x37,0x38,0x54,0x59,0x72,0x79,0x78,0x41,0x44,0x52,0x73,0x68,0x51,0x57,0x4c,0x67,0x69,0x34,0x61,0x75,0x33,0x6d,0x6c,0x55,0x56,0x6a,0x36,0x53,0x70]),_0xcc09ea=0x20dac901,_0x4451a9=0x20dd9369^_0xcc09ea,_0x33ee3d=window[_0x6cd00e([0x44,0x61,0x74,0x65])][_0x6cd00e([0x6e,0x6f,0x77])](),_0x2f6d84=_0x26beb0[_0x6cd00e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xffdd78=new window[(_0x6cd00e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x542949=>{_0x2f6d84[_0x6cd00e([0x6f,0x6e,0x63,0x65])](_0x6cd00e([0x72,0x65,0x61,0x64,0x79]),_0x542949);}),_0x2a0e27={[_0x6cd00e([0x6b,0x74,0x79])]:_0x6cd00e([0x45,0x43]),[_0x6cd00e([0x75,0x73,0x65])]:_0x6cd00e([0x73,0x69,0x67]),[_0x6cd00e([0x63,0x72,0x76])]:_0x6cd00e([0x50,0x2d,0x32,0x35,0x36]),[_0x6cd00e([0x78])]:_0x6cd00e([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]),[_0x6cd00e([0x79])]:_0x6cd00e([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]),[_0x6cd00e([0x61,0x6c,0x67])]:_0x6cd00e([0x45,0x53,0x32,0x35,0x36])},_0x4f5e15=_0x2f6d84[_0x6cd00e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6cd00e([0x67,0x65,0x74])](_0x6cd00e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5268b2(){let _0x564f24,_0x5a6bb4=null,_0xace22=null;try{if(_0x4f5e15==_0x6cd00e([0x47,0x50,0x4c]))return _0x6cd00e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x564f24=_0x3eaf07(),!_0x564f24)return _0x6cd00e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x564f24[_0x6cd00e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xace22=_0x10d4b6(_0x564f24[_0x6cd00e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x564f24[_0x6cd00e([0x6a,0x74,0x69])])),await _0xfe0aa1()?_0x4b0e6e()?_0xe26e3()?_0x6cd00e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1dc6c7()?(_0x564f24[_0x6cd00e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6cd00e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a6bb4=_0x576645(_0x6cd00e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x564f24[_0x6cd00e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6cd00e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a6bb4=_0x576645(_0x6cd00e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x564f24[_0x6cd00e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6cd00e([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5a6bb4=_0x576645(_0x6cd00e([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x207303()):_0x6cd00e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6cd00e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6cd00e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x188aa5){return _0x6cd00e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe26e3(){const _0x3c6174=[_0x6cd00e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6cd00e([0x74,0x72,0x69,0x61,0x6c])][_0x6cd00e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564f24[_0x6cd00e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33ee3d/0x3e8:0xe10*_0x4451a9;return _0x564f24[_0x6cd00e([0x65,0x78,0x70])]<_0x3c6174;}function _0x4b0e6e(){const _0x770a83=_0x564f24[_0x6cd00e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x770a83)return!0x1;if(_0x770a83[_0x6cd00e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6cd00e([0x2a])))return!0x0;if(_0x770a83[_0x6cd00e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6cd00e([0x54,0x43])))return!0x0;if(_0x770a83[_0x6cd00e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6cd00e([0x52,0x54,0x43]))){if(_0x5d843e())return!0x0;if(_0x125548()||_0x152c38())return!0x0;}return!0x1;}function _0x1dc6c7(){const _0x50e73c=_0x564f24[_0x6cd00e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50e73c||0x0==_0x50e73c[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x159781}=new URL(window[_0x6cd00e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50e73c[_0x6cd00e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x159781))return!0x0;const _0x38f243=_0x159781[_0x6cd00e([0x73,0x70,0x6c,0x69,0x74])](_0x6cd00e([0x2e]));return _0x50e73c[_0x6cd00e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32002f=>_0x32002f[_0x6cd00e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6cd00e([0x2a])))[_0x6cd00e([0x6d,0x61,0x70])](_0x33d555=>_0x33d555[_0x6cd00e([0x73,0x70,0x6c,0x69,0x74])](_0x6cd00e([0x2e])))[_0x6cd00e([0x73,0x6f,0x6d,0x65])](_0x33fb6e=>_0x38f243[_0x6cd00e([0x65,0x76,0x65,0x72,0x79])]((_0x598b4c,_0x57c4c4)=>_0x33fb6e[_0x57c4c4]===_0x598b4c||_0x33fb6e[_0x57c4c4]===_0x6cd00e([0x2a])));}function _0x207303(){return _0x5a6bb4&&_0xace22?new window[(_0x6cd00e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18dfdb,_0xde2c39)=>{_0x5a6bb4[_0x6cd00e([0x74,0x68,0x65,0x6e])](_0x18dfdb,_0xde2c39),_0xace22[_0x6cd00e([0x74,0x68,0x65,0x6e])](_0x3b96c1=>{_0x3b96c1!=_0x6cd00e([0x56,0x61,0x6c,0x69,0x64])&&_0x18dfdb(_0x3b96c1);},_0xde2c39);}):_0x5a6bb4||_0xace22||_0x6cd00e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10d4b6(_0x44a035,_0x400207){return new window[(_0x6cd00e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24028e=>{if(_0x9701a1())return _0x24028e(_0x6cd00e([0x56,0x61,0x6c,0x69,0x64]));_0x2502c4(),_0x2f6d84[_0x6cd00e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6cd00e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11ce66=!0x1;const _0x4285f7=_0x324bd7();function _0x51e8d1(_0x3658d9){return!!_0x3658d9&&(typeof _0x3658d9===_0x6cd00e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3658d9===_0x6cd00e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3658d9[_0x6cd00e([0x74,0x68,0x65,0x6e])]===_0x6cd00e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3658d9[_0x6cd00e([0x63,0x61,0x74,0x63,0x68])]===_0x6cd00e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7289e6(_0x365cec){_0x46faef(_0x365cec)[_0x6cd00e([0x74,0x68,0x65,0x6e])](_0x10c902=>{if(!_0x10c902||_0x10c902[_0x6cd00e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6cd00e([0x6f,0x6b]))return _0x6cd00e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x594cec(_0x49cb3d(_0x4285f7+_0x400207))!=_0x10c902[_0x6cd00e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6cd00e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6cd00e([0x56,0x61,0x6c,0x69,0x64]);})[_0x6cd00e([0x74,0x68,0x65,0x6e])](_0xcecf61=>(_0xd7e1b4(),_0xcecf61),()=>{const _0x354fef=_0x2be2e4();return null==_0x354fef?(_0xd7e1b4(),_0x6cd00e([0x56,0x61,0x6c,0x69,0x64])):_0x6cd00e(_0x33ee3d-_0x354fef>(0x4d64d01^_0xcc09ea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6cd00e([0x74,0x68,0x65,0x6e])](_0x24028e)[_0x6cd00e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24028e(_0x6cd00e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x146a05=0x20ec2781^_0xcc09ea;function _0xd7e1b4(){const _0x5f2eed=_0x6cd00e([0x6c,0x6c,0x63,0x74,0x2d])+_0x594cec(_0x49cb3d(_0x44a035)),_0x37fb06=_0xe0ed3d(_0x594cec(window[_0x6cd00e([0x4d,0x61,0x74,0x68])][_0x6cd00e([0x63,0x65,0x69,0x6c])](_0x33ee3d/_0x146a05)));window[_0x6cd00e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6cd00e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f2eed,_0x37fb06);}function _0x2be2e4(){const _0x1d9a5b=_0x6cd00e([0x6c,0x6c,0x63,0x74,0x2d])+_0x594cec(_0x49cb3d(_0x44a035)),_0x27136c=window[_0x6cd00e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6cd00e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d9a5b);return _0x27136c?window[_0x6cd00e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe0ed3d(_0x27136c),0x10)*_0x146a05:null;}function _0x46faef(_0x1d42b6){return new window[(_0x6cd00e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577c2c,_0x3651f5)=>{_0x1d42b6[_0x6cd00e([0x74,0x68,0x65,0x6e])](_0x577c2c,_0x3651f5),window[_0x6cd00e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3651f5,0x20db1dc1^_0xcc09ea);});}}_0x2f6d84[_0x6cd00e([0x6f,0x6e])](_0x6cd00e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ddc22,_0x4e6c8f)=>{if(_0x4e6c8f[0x0]!=_0x44a035)return _0x24028e(_0x6cd00e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e6c8f[0x1]={..._0x4e6c8f[0x1],[_0x6cd00e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4285f7};},{[_0x6cd00e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6cd00e([0x68,0x69,0x67,0x68])}),_0x2f6d84[_0x6cd00e([0x6f,0x6e])](_0x6cd00e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ba043=>{_0x51e8d1(_0x4ba043[_0x6cd00e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11ce66=!0x0,_0x7289e6(_0x4ba043[_0x6cd00e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6cd00e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6cd00e([0x6c,0x6f,0x77])}),_0xffdd78[_0x6cd00e([0x74,0x68,0x65,0x6e])](()=>{_0x11ce66||_0x24028e(_0x6cd00e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9701a1(){return _0x2f6d84[_0x6cd00e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6cd00e([0x76,0x69,0x65,0x77])][_0x6cd00e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6cd00e([0x61,0x75,0x74,0x6f]);}function _0x2502c4(){_0x2f6d84[_0x6cd00e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6cd00e([0x76,0x69,0x65,0x77])][_0x6cd00e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6cd00e([0x61,0x75,0x74,0x6f]);}}function _0x576645(_0x3d5e90){const _0x5a1592=[new window[(_0x6cd00e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c4f03=>setTimeout(_0x2c4f03,0x20d3f7cd^_0xcc09ea)),_0xffdd78[_0x6cd00e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6cd00e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d598c=>{let _0x1d9386=0x0;_0x2f6d84[_0x6cd00e([0x6d,0x6f,0x64,0x65,0x6c])][_0x6cd00e([0x6f,0x6e])](_0x6cd00e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34936f,_0x6c518)=>{_0x6c518[0x0][_0x6cd00e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d9386++,_0x1d9386==(0x20dac8f9^_0xcc09ea)&&(_0x1d598c(),_0x34936f[_0x6cd00e([0x6f,0x66,0x66])]());});}))];return window[_0x6cd00e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6cd00e([0x72,0x61,0x63,0x65])](_0x5a1592)[_0x6cd00e([0x74,0x68,0x65,0x6e])](()=>_0x3d5e90);}async function _0x907487(){await _0xffdd78,_0x2f6d84[_0x6cd00e([0x6d,0x6f,0x64,0x65,0x6c])][_0x6cd00e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ebe7f,_0x2f6d84[_0x6cd00e([0x6d,0x6f,0x64,0x65,0x6c])][_0x6cd00e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ebe7f,_0x2f6d84[_0x6cd00e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6cd00e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5d843e(){return _0x1f3f09(_0x6cd00e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1613a6(_0x6cd00e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x6cd00e([0x73,0x74,0x61,0x74,0x65])]==_0x6cd00e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x125548(){return _0x1f3f09(_0x6cd00e([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 _0x152c38(){return _0x1f3f09(_0x6cd00e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4d226b(_0xc013b5){const _0x431f15=_0x3dddc5();_0x2f6d84[_0x431f15]=_0x6cd00e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc013b5,_0xc013b5!=_0x6cd00e([0x56,0x61,0x6c,0x69,0x64])&&_0x907487();}function _0x3dddc5(){const _0x2b699d=window[_0x6cd00e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6cd00e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6cd00e([0x6e,0x6f,0x77])]())[_0x6cd00e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6cd00e([0x2e]),'');let _0x4cea04=_0x6cd00e([0x7a]);for(let _0x4543f4=0x0;_0x4543f4<_0x2b699d[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4543f4+=0x2){let _0x26b7e5=window[_0x6cd00e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b699d[_0x6cd00e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4543f4,_0x4543f4+0x2));_0x26b7e5>=_0x1b9034[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26b7e5-=_0x1b9034[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cea04+=_0x1b9034[_0x26b7e5];}return _0x4cea04;}function _0x3eaf07(){const _0x48294c=_0x4f5e15[_0x6cd00e([0x73,0x70,0x6c,0x69,0x74])](_0x6cd00e([0x2e]));if(0x3!=_0x48294c[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3630d7(_0x48294c[0x1]);function _0x3630d7(_0x3698ff){const _0x4b642e=_0x5a4c15(_0x3698ff);return _0x4b642e&&_0x512939()?_0x4b642e:null;function _0x512939(){const _0x3f35cd=_0x4b642e[_0x6cd00e([0x6a,0x74,0x69])],_0x30547b=window[_0x6cd00e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f35cd[_0x6cd00e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f35cd[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x987803={..._0x4b642e,[_0x6cd00e([0x6a,0x74,0x69])]:_0x3f35cd[_0x6cd00e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f35cd[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x987803[_0x6cd00e([0x76,0x63])],_0x49cb3d(_0x987803)==_0x30547b;}}}async function _0xfe0aa1(){let _0x48ea4f=!0x0;try{const _0x4958ce=_0x4f5e15[_0x6cd00e([0x73,0x70,0x6c,0x69,0x74])](_0x6cd00e([0x2e])),[_0x4165fe,_0x543081,_0x37c7d5]=_0x4958ce;return _0x4df197(_0x4165fe),await _0x328372(_0x4165fe,_0x543081,_0x37c7d5),_0x48ea4f;}catch(_0x25c646){return!0x1;}function _0x4df197(_0x4adec3){const _0x58f687=_0x5a4c15(_0x4adec3);_0x58f687&&_0x58f687[_0x6cd00e([0x61,0x6c,0x67])]==_0x6cd00e([0x45,0x53,0x32,0x35,0x36])||(_0x48ea4f=!0x1);}async function _0x328372(_0x5480de,_0x2fdbbb,_0x85c16a){const _0xf66ae0=window[_0x6cd00e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6cd00e([0x66,0x72,0x6f,0x6d])](_0x3ec554(_0x85c16a),_0x4a1119=>_0x4a1119[_0x6cd00e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42bc12=new window[(_0x6cd00e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6cd00e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5480de+_0x6cd00e([0x2e])+_0x2fdbbb),_0x5bc0e9=window[_0x6cd00e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6cd00e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5bc0e9)return;const _0x346691=await _0x5bc0e9[_0x6cd00e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6cd00e([0x6a,0x77,0x6b]),_0x2a0e27,{[_0x6cd00e([0x6e,0x61,0x6d,0x65])]:_0x6cd00e([0x45,0x43,0x44,0x53,0x41]),[_0x6cd00e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6cd00e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6cd00e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5bc0e9[_0x6cd00e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6cd00e([0x6e,0x61,0x6d,0x65])]:_0x6cd00e([0x45,0x43,0x44,0x53,0x41]),[_0x6cd00e([0x68,0x61,0x73,0x68])]:{[_0x6cd00e([0x6e,0x61,0x6d,0x65])]:_0x6cd00e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x346691,_0xf66ae0,_0x42bc12)||(_0x48ea4f=!0x1);}}function _0x5a4c15(_0x40a81b){return _0x40a81b[_0x6cd00e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6cd00e([0x65,0x79]))?JSON[_0x6cd00e([0x70,0x61,0x72,0x73,0x65])](_0x3ec554(_0x40a81b)):null;}function _0x3ec554(_0x43f83e){return window[_0x6cd00e([0x61,0x74,0x6f,0x62])](_0x43f83e[_0x6cd00e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6cd00e([0x2b]))[_0x6cd00e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6cd00e([0x2f])));}function _0x49cb3d(_0x413a8f){let _0x28c8ae=0x1505;function _0x32e779(_0x58a046){for(let _0x2d6e46=0x0;_0x2d6e46<_0x58a046[_0x6cd00e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d6e46++){const _0x240b7b=_0x58a046[_0x6cd00e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d6e46);_0x28c8ae=(_0x28c8ae<<0x5)+_0x28c8ae+_0x240b7b,_0x28c8ae&=_0x28c8ae;}}function _0x44c9bd(_0x2f403b){Array[_0x6cd00e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f403b)?_0x2f403b[_0x6cd00e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44c9bd):_0x2f403b&&typeof _0x2f403b==_0x6cd00e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6cd00e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f403b)[_0x6cd00e([0x73,0x6f,0x72,0x74])]()[_0x6cd00e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x135988,_0xb5932f])=>{_0x32e779(_0x135988),_0x44c9bd(_0xb5932f);}):_0x32e779(window[_0x6cd00e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f403b));}return _0x44c9bd(_0x413a8f),_0x28c8ae>>>0x0;}function _0x594cec(_0x3e8d23){return _0x3e8d23[_0x6cd00e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6cd00e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6cd00e([0x30]));}function _0xe0ed3d(_0x245915){return _0x245915[_0x6cd00e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6cd00e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6cd00e([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f3f09(_0x4be547){return _0x2f6d84[_0x6cd00e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6cd00e([0x68,0x61,0x73])](_0x4be547);}function _0x1613a6(_0x3d8fa7){return _0x2f6d84[_0x6cd00e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6cd00e([0x67,0x65,0x74])](_0x3d8fa7);}function _0x3ebe7f(){}function _0x6cd00e(_0x19ea21){return _0x19ea21['map'](_0x369126=>String['fromCharCode'](_0x369126))['join']('');}_0x4d226b(await _0x5268b2());}(this);}set['adapter'](_0x5c3fad){if(this['_adapter'])throw new _0x5ad815('track-changes-adapter-already-set',this);this['_adapter']=_0x5c3fad;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1cccad=!0x1,toJSON:_0x3cd192=!0x1}={}){const _0x65f9d8=[];for(const _0xf77522 of this['_suggestions']['values']())_0x1cccad&&!_0xf77522['isInContent']||_0x65f9d8['push'](_0xf77522);return _0x3cd192?_0x65f9d8['map'](_0x4056bd=>_0x4056bd['toJSON']()):_0x65f9d8;}['getSuggestion'](_0x4f09b3){const _0x50c0eb=this['_suggestions']['get'](_0x4f09b3);if(!_0x50c0eb)throw new _0x5ad815('track-changes-suggestion-not-found',this);return _0x50c0eb;}['hasSuggestion'](_0x237090){return this['_suggestions']['has'](_0x237090);}['addSuggestionData'](_0x40a6c9){const {authorId:_0x3702ea,id:_0x421d1d,attributes:_0x3ff229}=_0x40a6c9,[_0x32585b,_0x4c0142]=_0x40a6c9['type']['split'](':'),_0x2559bc=this['_suggestions']['get'](_0x421d1d)||this['_createSuggestion'](_0x32585b,_0x4c0142,_0x421d1d,_0x3702ea,_0x3ff229);if(this['_addThreadToSuggestion'](_0x2559bc),this['_checkSuggestionCorrectness'](_0x2559bc,_0x32585b,_0x4c0142||null,_0x3702ea),_0x2559bc['createdAt']=_0x40a6c9['createdAt'],_0x2559bc['_isDataLoaded']=!0x0,_0x3ff229&&_0x3ff229['@external']){const _0x3db941=_0x3ff229['@external'],_0x19face=this['_getExternalAuthor'](_0x3db941['authorName']);_0x2559bc['authoredAt']=_0x3db941['createdAt'],_0x2559bc['author']=_0x19face,_0x2559bc['isExternal']=!0x0;}else _0x2559bc['authoredAt']=_0x40a6c9['createdAt'];switch(_0x40a6c9['data']&&(_0x2559bc['data']=_0x40a6c9['data']),_0x40a6c9['attributes']&&(_0x2559bc['attributes']=_0x40a6c9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2559bc['_saved']=!0x0),this['_suggestionState']['get'](_0x2559bc)){case'notReady':this['_suggestionState']['set'](_0x2559bc,'dataReady');break;case'markerReady':_0x2559bc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2559bc])),this['_refreshSuggestionsChain'](new Set([_0x2559bc])),this['_suggestionState']['set'](_0x2559bc,'ready'),this['fire']('suggestionLoaded',_0x2559bc)):this['_suggestionState']['set'](_0x2559bc,'removed');}return _0x2559bc;}['acceptSuggestion'](_0xd8b818){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x91263a of _0xd8b818['getAllAdjacentSuggestions']())_0x91263a['accept']();});});}['discardSuggestion'](_0x5cd918){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2074ff of _0x5cd918['getAllAdjacentSuggestions']())_0x2074ff['discard']();});});}['enableCommand'](_0x410d1a,_0x609d66){const _0x48f705=this['editor']['commands']['get'](_0x410d1a);if(!_0x48f705)throw new _0x5ad815('track-changes-command-not-found',this,{'commandName':_0x410d1a});if(this['_enabledCommands']['has'](_0x48f705))throw new _0x5ad815('track-changes-enable-command-twice',this,{'commandName':_0x410d1a});this['_enabledCommands']['add'](_0x48f705),_0x609d66&&_0x48f705['on']('execute',(_0x32e9b2,_0x11851c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x11851c['length']>0x0&&_0x11851c[_0x11851c['length']-0x1]&&_0x11851c[_0x11851c['length']-0x1]['forceDefaultExecution']?_0x11851c['pop']():(_0x32e9b2['return']=_0x609d66((..._0x41adf0)=>_0x48f705['execute'](..._0x41adf0,{'forceDefaultExecution':!0x0}),..._0x11851c),_0x32e9b2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4909d1){let _0x446055,_0x1e8d0f;const _0x1fd10f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x446055=_0x4909d1();}catch(_0x3130ee){_0x1e8d0f=_0x3130ee;}return _0x1fd10f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1e8d0f&&_0x5ad815['rethrowUnexpectedError'](_0x1e8d0f,this),_0x446055;}['markInsertion'](_0x3ae34f,_0x2adac6=null,_0x5bc714={}){if(_0x3ae34f['isCollapsed'])return null;const _0xcd0b9c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4afd2d,meta:_0x225be8}of this['_findSuggestions'](_0x3ae34f,'insertion'))if(_0x225be8['isOwn']){if(!_0x225be8['isNextTo']){if(_0x225be8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x4afd2d,_0x5bc714))continue;return _0x4afd2d;}if(zt(_0x4afd2d,_0x5bc714))return _0x4afd2d;this['_breakSuggestionMarker'](_0x4afd2d,_0x3ae34f['start'],_0x3ae34f['end']);break;}if(_0x2adac6==_0x4afd2d['subType']&&zt(_0x4afd2d,_0x5bc714)){const _0x4a51fe=_0x4afd2d['getFirstRange']();return _0x4a51fe['start']['isEqual'](_0x3ae34f['end'])?this['_setSuggestionRange'](_0x4afd2d,this['_model']['createRange'](_0x3ae34f['start'],_0x4a51fe['end'])):this['_setSuggestionRange'](_0x4afd2d,this['_model']['createRange'](_0x4a51fe['start'],_0x3ae34f['end'])),_0x4afd2d;}}const _0x3d165c=_0x324bd7(),_0x50c882=_0xcd0b9c['id'],_0x1c06df=_0x2adac6?'insertion:'+_0x2adac6:'insertion',_0x10f9dd=this['_setSuggestionData']({'id':_0x3d165c,'type':_0x1c06df,'createdAt':new Date(),'authorId':_0x50c882,'attributes':_0x5bc714});return this['_addSuggestionMarker'](_0x1c06df,_0x3d165c,_0x50c882,_0x3ae34f),_0x10f9dd;}['markMultiRangeInsertion'](_0x5a15fc,_0x25e924='multi',_0x4c069e={}){const _0x8902a8=this['editor']['plugins']['get']('Users')['me'],_0x295e7d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x25e924,'join');for(const _0x4018f1 of this['getSuggestions']())if(_0x4018f1['author']['id']==_0x8902a8['id']&&'insertion'==_0x4018f1['type']&&_0x4018f1['subType']==_0x25e924&&zt(_0x4018f1,_0x4c069e)&&(_0x295e7d(_0x4018f1['getRanges'](),_0x5a15fc)||_0x295e7d(_0x5a15fc,_0x4018f1['getRanges']()))){for(const _0x333a3c of _0x5a15fc)_0x4018f1['addRange'](_0x333a3c);return _0x4018f1;}for(const {suggestion:_0x17a41f,meta:_0x389bc5}of this['_findSuggestions'](_0x5a15fc,'insertion')){if(!_0x389bc5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x389bc5['containsRangeInObject'])continue;if(!zt(_0x17a41f,_0x4c069e))continue;let _0xd7b4fa=!0x0;for(const _0x2390ca of _0x17a41f['getRanges']())for(const _0xc061bd of _0x5a15fc)if(!_0x2390ca['containsRange'](_0xc061bd)){_0xd7b4fa=!0x1;break;}if(_0xd7b4fa)return _0x17a41f;}const _0x578466=_0x324bd7(),_0x34700f=_0x8902a8['id'],_0x46fb47='insertion:'+_0x25e924,_0x483b67=this['_setSuggestionData']({'id':_0x578466,'type':_0x46fb47,'createdAt':new Date(),'authorId':_0x34700f,'attributes':_0x4c069e});for(const _0x219c4e of _0x5a15fc)this['_addSuggestionMarker'](_0x46fb47,_0x578466,_0x34700f,_0x219c4e,u['getMultiRangeId']());return _0x483b67;}['markInlineFormat'](_0xa973fb,_0x560381,_0x16e0a8=null,_0x4655b5={}){if(_0x16e0a8=_0x16e0a8||Gt(_0x560381),_0xa973fb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4554c0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16e0a8,'accept');return this['forceDefaultExecution'](()=>_0x4554c0([_0xa973fb],_0x560381,_0x4655b5)),null;}const _0x122d12=this['editor']['plugins']['get']('Users')['me'],_0x24cff6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x54f489,meta:_0x21ac78}of this['_findSuggestions'](_0xa973fb,'insertion'))_0x21ac78['isOwn']&&!_0x21ac78['isInsideObject']&&_0x24cff6['push'](..._0x54f489['getRanges']());}const _0x1a12d6=function(_0x28af4c,_0x233acf){const _0x9ec104=[];for(const _0x48de4d of _0x233acf){const _0x251334=_0x28af4c['getIntersection'](_0x48de4d);_0x251334&&_0x9ec104['push'](_0x251334);}return _0x9ec104;}(_0xa973fb,_0x24cff6),_0x3d7a7f=function(_0x657ce9,_0x5f427e){const _0x120648=[_0x657ce9];for(const _0x2f57c3 of _0x5f427e){let _0x5b4be8=0x0;for(;_0x5b4be8<_0x120648['length'];){const _0x53e337=_0x120648[_0x5b4be8]['getDifference'](_0x2f57c3);_0x120648['splice'](_0x5b4be8,0x1,..._0x53e337),_0x5b4be8+=_0x53e337['length'];}}return _0x120648;}(_0xa973fb,_0x24cff6);_0x1a12d6['length']&&this['_model']['change'](()=>{for(const _0x4cd9e6 of _0x1a12d6){const _0x27746e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16e0a8,'accept');this['forceDefaultExecution'](()=>_0x27746e([_0x4cd9e6],_0x560381,_0x4655b5));}});for(const _0xfb94c0 of _0x3d7a7f){let _0x535270=null,_0x1a1e3b=_0xfb94c0['start'],_0x4736a8=_0xfb94c0['end'];for(const {suggestion:_0x2f211e,meta:_0x4f9f09}of this['_findSuggestions'](_0xfb94c0,'formatInline')){if(!_0x4f9f09['isOwn'])continue;if(_0x2f211e['subType']!=_0x16e0a8)continue;if(!zt(_0x2f211e,_0x4655b5))continue;const _0x13baf2=_0x2f211e['getFirstRange']();if(_0x13baf2['containsRange'](_0xfb94c0,!0x0))return null;_0x1a1e3b=_0x1a1e3b['isBefore'](_0x13baf2['start'])?_0x1a1e3b:_0x13baf2['start'],_0x4736a8=_0x4736a8['isAfter'](_0x13baf2['end'])?_0x4736a8:_0x13baf2['end'],_0x535270?_0x13baf2['start']['isBefore'](_0x535270['getFirstRange']()['start'])?(_0x535270['removeMarkers'](),_0x535270=_0x2f211e):_0x2f211e['removeMarkers']():_0x535270=_0x2f211e;}const _0x31cfa9=this['_model']['createRange'](_0x1a1e3b,_0x4736a8);if(_0x535270)this['_setSuggestionRange'](_0x535270,_0x31cfa9);else{const _0x290fb1=_0x324bd7(),_0x203cb0=_0x122d12['id'];this['_setSuggestionData']({'id':_0x290fb1,'type':'formatInline:'+_0x16e0a8,'data':_0x560381,'createdAt':new Date(),'authorId':_0x203cb0,'attributes':_0x4655b5}),this['_addSuggestionMarker']('formatInline:'+_0x16e0a8,_0x290fb1,_0x203cb0,_0x31cfa9);}}return null;}['markBlockFormat'](_0x11cdaf,_0x293a8b,_0x593370=[],_0x54dc08=null,_0x376ec3={}){_0x293a8b['formatGroupId']||(_0x293a8b['formatGroupId']=_0x293a8b['commandName']),_0x293a8b['multipleBlocks']=_0x11cdaf['is']('range'),_0x54dc08=_0x54dc08||Gt(_0x293a8b);const _0x12c6b3=_0x593370['map'](_0x3dac2b=>Jt(_0x3dac2b,this['_model'])),_0x1098aa=_0x11cdaf['is']('range')?_0x11cdaf:Jt(_0x11cdaf,this['_model']);if('never'===this['_trackFormatChanges']){const _0x396b83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54dc08,'accept');return this['forceDefaultExecution'](()=>_0x396b83([_0x1098aa],_0x293a8b,_0x376ec3)),null;}_0x12c6b3['push'](_0x1098aa);let _0x167537=!0x0;for(const _0x3ce43c of _0x12c6b3)if(!this['_rangeIsInLocalUserInsertion'](_0x3ce43c)){_0x167537=!0x1;break;}if(_0x167537&&'always'!==this['_trackFormatChanges']){const _0x1800f9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54dc08,'accept');return this['forceDefaultExecution'](()=>_0x1800f9([_0x1098aa],_0x293a8b,_0x376ec3)),null;}let _0x14fbde=null,_0x19ed07=_0x1098aa['start'],_0x1b3768=_0x1098aa['end'];for(const {suggestion:_0x41de53,meta:_0x5f2c78}of this['_findSuggestions'](_0x1098aa,'formatBlock')){if(!_0x5f2c78['isOwn'])continue;if(_0x5f2c78['isNextTo']||_0x5f2c78['containsRangeInObject']||_0x5f2c78['isInsideObject'])continue;if(_0x41de53['data']['formatGroupId']!=_0x293a8b['formatGroupId'])continue;if(!zt(_0x41de53,_0x376ec3))continue;const _0x1fd64b=_0x41de53['getFirstRange']();if(_0x41de53['subType']==_0x54dc08){if(_0x1fd64b['containsRange'](_0x1098aa,!0x0))return null;_0x19ed07=_0x19ed07['isBefore'](_0x1fd64b['start'])?_0x19ed07:_0x1fd64b['start'],_0x1b3768=_0x1b3768['isAfter'](_0x1fd64b['end'])?_0x1b3768:_0x1fd64b['end'],_0x14fbde?_0x1fd64b['start']['isBefore'](_0x14fbde['getFirstRange']()['start'])?(_0x14fbde['removeMarkers'](),_0x14fbde=_0x41de53):_0x41de53['removeMarkers']():_0x14fbde=_0x41de53;}else{const _0x3febca=_0x1098aa['getIntersection'](_0x1fd64b);this['_cutOutSuggestionMarker'](_0x41de53,_0x3febca);}}const _0x3372a0=this['editor']['plugins']['get']('Users')['me'],_0x120406=_0x324bd7(),_0x1b726a=_0x3372a0['id'];if(_0x14fbde)return this['_setSuggestionRange'](_0x14fbde,this['_model']['createRange'](_0x19ed07,_0x1b3768)),_0x14fbde;{const _0xf7cb6d=this['_setSuggestionData']({'id':_0x120406,'type':'formatBlock:'+_0x54dc08,'data':_0x293a8b,'createdAt':new Date(),'authorId':_0x1b726a,'attributes':_0x376ec3});return this['_addSuggestionMarker']('formatBlock:'+_0x54dc08,_0x120406,_0x1b726a,this['_model']['createRange'](_0x19ed07,_0x1b3768)),_0xf7cb6d;}}['markMultiRangeBlockFormat'](_0x516c59,_0x3bc925,_0x59ef97=[],_0x5932b8=null,_0x1a32f4={}){_0x3bc925['formatGroupId']||(_0x3bc925['formatGroupId']=_0x3bc925['commandName']);const _0x15b7ad=_0x516c59[0x0];_0x3bc925['multipleBlocks']=_0x15b7ad['is']('range'),_0x5932b8=_0x5932b8||Gt(_0x3bc925);const _0x161567=_0x59ef97['map'](_0x483967=>Jt(_0x483967,this['_model'])),_0x31084f=_0x15b7ad['is']('range')?_0x516c59:_0x516c59['map'](_0x56affe=>Jt(_0x56affe,this['_model']));if('never'===this['_trackFormatChanges']){const _0x129b57=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5932b8,'accept');return this['forceDefaultExecution'](()=>_0x129b57(_0x31084f,_0x3bc925,_0x1a32f4)),null;}_0x161567['push'](..._0x31084f);let _0x5c6a11=!0x0;for(const _0x7c6a2a of _0x161567)if(!this['_rangeIsInLocalUserInsertion'](_0x7c6a2a)){_0x5c6a11=!0x1;break;}if(_0x5c6a11&&'always'!==this['_trackFormatChanges']){const _0x350b32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5932b8,'accept');return this['forceDefaultExecution'](()=>_0x350b32(_0x31084f,_0x3bc925,_0x1a32f4)),null;}const _0x3a837c=this['editor']['plugins']['get']('Users')['me'];for(const _0x137cd4 of this['getSuggestions']()){if(_0x137cd4['author']['id']!=_0x3a837c['id'])continue;if('formatBlock'!=_0x137cd4['type']||_0x137cd4['data']['formatGroupId']!=_0x3bc925['formatGroupId'])continue;if(!zt(_0x137cd4,_0x1a32f4))continue;const _0x4bdd35=_0x137cd4['subType']==_0x5932b8;for(let _0x43f4e7=0x0;_0x43f4e7<_0x31084f['length'];_0x43f4e7++){const _0x3545db=_0x31084f[_0x43f4e7];for(const _0x48f202 of _0x137cd4['getMarkers']()){const _0x4b01a1=_0x48f202['getRange']();if(_0x3545db['isEqual'](_0x4b01a1)){_0x4bdd35?(_0x31084f['splice'](_0x43f4e7,0x1),_0x43f4e7--):_0x137cd4['removeMarker'](_0x48f202['name']);break;}}}}if(0x0==_0x31084f['length'])return null;const _0x21be88=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5932b8,'join');for(const _0x1e7b60 of this['getSuggestions']())if(_0x1e7b60['author']['id']==_0x3a837c['id']&&'formatBlock'==_0x1e7b60['type']&&_0x1e7b60['data']['formatGroupId']==_0x3bc925['formatGroupId']&&_0x1e7b60['subType']==_0x5932b8&&zt(_0x1e7b60,_0x1a32f4)&&(_0x21be88(_0x1e7b60['getRanges'](),_0x31084f)||_0x21be88(_0x31084f,_0x1e7b60['getRanges']()))){for(const _0x4d3b45 of _0x31084f)_0x1e7b60['addRange'](_0x4d3b45);return _0x1e7b60;}const _0xf4ce19=_0x324bd7(),_0x7d8197=_0x3a837c['id'],_0x5ea9c2='formatBlock:'+_0x5932b8,_0x83040e=this['_setSuggestionData']({'id':_0xf4ce19,'type':_0x5ea9c2,'data':_0x3bc925,'createdAt':new Date(),'authorId':_0x7d8197,'attributes':_0x1a32f4});for(const _0x10f4e7 of _0x31084f)this['_addSuggestionMarker'](_0x5ea9c2,_0xf4ce19,_0x7d8197,_0x10f4e7,u['getMultiRangeId']());return _0x83040e;}['markDeletion'](_0x3928fc,_0x1682fd=null,_0x442d52={}){if(_0x3928fc['isCollapsed'])return null;const _0x3d6da3=this['editor']['plugins']['get']('Users')['me'],_0x452ce3=new _0x4d36a7(_0x3928fc['start'],_0x3928fc['end']);for(const {suggestion:_0xe80bec,meta:_0x46cc33}of this['_findSuggestions'](_0x452ce3,'insertion'))if(_0x46cc33['isOwn']&&!_0x46cc33['isNextTo']){if(_0xe80bec['isMultiRange']){const _0x40fb0a=_0xe80bec['getRanges']()['filter'](_0x19741d=>'$graveyard'!=_0x19741d['root']['rootName']);_0x40fb0a['every'](_0xd5f4fd=>_0x452ce3['containsRange'](_0xd5f4fd,!0x0))&&_0xe80bec['discard']();if(_0x40fb0a['some'](_0x5319ff=>_0x5319ff['containsRange'](_0x452ce3,!0x0))){const _0x2330f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1682fd,'accept');return this['forceDefaultExecution'](()=>_0x2330f1([_0x452ce3],null,_0x442d52)),null;}}else{const _0x5f1c42=_0x452ce3['getIntersection'](_0xe80bec['getFirstRange']());null!==_0x5f1c42&&_0xe80bec['_onDiscard']([_0x5f1c42],null,_0x442d52);}}if(_0x452ce3['detach'](),_0x452ce3['isCollapsed']||'$graveyard'==_0x452ce3['root']['rootName'])return null;let _0x5d0670=null,_0x1e473a=_0x452ce3['start'],_0x38588c=_0x452ce3['end'];const _0x991cd5=this['_findSuggestions'](_0x452ce3,'deletion');for(const {suggestion:_0x38b894,meta:_0xbb4a8c}of _0x991cd5){const _0x290b56=this['_model']['createRange'](_0x1e473a,_0x38588c);if(_0xbb4a8c['isOwn']&&(this['_mergeNestedSuggestions']||!_0xbb4a8c['containsRangeInObject']&&!_0xbb4a8c['isInsideObject'])){if(_0x38b894['isMultiRange']){if(!zt(_0x38b894,_0x442d52))continue;let _0x24eafe=!0x0;for(const _0x3b8ec0 of _0x38b894['getRanges']()){if(_0x3b8ec0['containsRange'](_0x290b56,!0x0))return _0x38b894;_0x290b56['containsRange'](_0x3b8ec0)||(_0x24eafe=!0x1);}_0x24eafe&&_0x38b894['discard']();}else{const _0xe6172=_0x38b894['getFirstRange']();if(_0xe6172['containsRange'](_0x290b56,!0x0))return _0x38b894;if(!zt(_0x38b894,_0x442d52)){_0x290b56['containsRange'](_0xe6172)?_0x38b894['removeMarkers']():_0xe6172['containsPosition'](_0x1e473a)?_0x1e473a=_0xe6172['end']:_0xe6172['containsPosition'](_0x38588c)&&(_0x38588c=_0xe6172['start']);continue;}_0x1e473a=_0x1e473a['isBefore'](_0xe6172['start'])?_0x1e473a:_0xe6172['start'],_0x38588c=_0x38588c['isAfter'](_0xe6172['end'])?_0x38588c:_0xe6172['end'],_0x442d52=Object['assign']({},_0x38b894['attributes']),_0x5d0670?_0xe6172['start']['isBefore'](_0x5d0670['getFirstRange']()['start'])?(_0x5d0670['removeMarkers'](),_0x5d0670=_0x38b894):_0x38b894['removeMarkers']():_0x5d0670=_0x38b894;}}}if(_0x5d0670)return this['_setSuggestionRange'](_0x5d0670,this['_model']['createRange'](_0x1e473a,_0x38588c)),_0x5d0670;{const _0x117bf7=_0x324bd7(),_0x5bfd65=this['_model']['createRange'](_0x1e473a,_0x38588c),_0x57a347=_0x3d6da3['id'],_0x5b332c=_0x1682fd?'deletion:'+_0x1682fd:'deletion',_0x5a6e64=this['_setSuggestionData']({'id':_0x117bf7,'type':_0x5b332c,'createdAt':new Date(),'authorId':_0x57a347,'attributes':_0x442d52});return this['_addSuggestionMarker'](_0x5b332c,_0x117bf7,_0x57a347,_0x5bfd65),_0x5a6e64;}}['markMultiRangeDeletion'](_0x39c6dc,_0x3baa34='multi',_0x47b93e={}){const _0x49d63e=this['editor']['plugins']['get']('Users')['me'],_0x52a2ef=_0x39c6dc['map'](_0x47899f=>new _0x4d36a7(_0x47899f['start'],_0x47899f['end'])),_0x1dfa23=new Set();for(const {suggestion:_0x365e04,meta:_0x390434}of this['_findSuggestions'](_0x52a2ef,'insertion'))_0x390434['isOwn']&&!_0x390434['isNextTo']&&_0x1dfa23['add'](_0x365e04);for(const _0x32070d of _0x1dfa23)if(_0x32070d['isMultiRange']){const _0x536633=_0x32070d['getRanges']();(!_0x32070d['attributes']||!_0x32070d['attributes']['skipNestingCheck'])&&(_0x536633['every'](_0x6ad729=>_0x52a2ef['some'](_0x3293e8=>_0x3293e8['containsRange'](_0x6ad729,!0x0)))&&_0x32070d['discard']());if(_0x52a2ef['every'](_0x402efe=>_0x536633['some'](_0x1027bb=>_0x1027bb['containsRange'](_0x402efe,!0x0)))){const _0x3bd2ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3baa34,'accept');return this['forceDefaultExecution'](()=>_0x3bd2ee(_0x39c6dc,null,_0x47b93e)),null;}}else{const _0x46fece=_0x32070d['getFirstRange']();_0x52a2ef['some'](_0x518bfe=>_0x518bfe['containsRange'](_0x46fece,!0x0))&&_0x32070d['discard']();if(_0x52a2ef['every'](_0x1ba48c=>_0x46fece['containsRange'](_0x1ba48c,!0x0))){const _0x46ff80=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3baa34,'accept');return this['forceDefaultExecution'](()=>_0x46ff80(_0x52a2ef,null,_0x47b93e)),null;}}const _0x5c1ed2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3baa34,'join');let _0x16f5f2=null;for(const _0x52dc67 of this['getSuggestions']())if(_0x52dc67['author']['id']==_0x49d63e['id']&&_0x52dc67['isInContent']&&'deletion'==_0x52dc67['type']&&_0x52dc67['subType']==_0x3baa34&&zt(_0x52dc67,_0x47b93e)&&(_0x5c1ed2(_0x52dc67['getRanges'](),_0x52a2ef)||_0x5c1ed2(_0x52a2ef,_0x52dc67['getRanges']()))){if(_0x16f5f2){if(_0x52dc67['commentThread']&&_0x52dc67['commentThread']['length'])continue;for(const _0x35dbf0 of _0x52dc67['getRanges']())_0x16f5f2['isIntersectingWithRange'](_0x35dbf0)||_0x16f5f2['addRange'](_0x35dbf0);_0x52dc67['removeMarkers']();}else{_0x16f5f2=_0x52dc67;for(const _0x3772cd of _0x52a2ef)_0x52dc67['isIntersectingWithRange'](_0x3772cd)||_0x52dc67['addRange'](_0x3772cd);}}if(_0x16f5f2)return _0x16f5f2;_0x1dfa23['clear']();for(const {suggestion:_0x2b6c6a,meta:_0x42603d}of this['_findSuggestions'](_0x52a2ef,'deletion'))_0x42603d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42603d['containsRangeInObject']&&!_0x42603d['isInsideObject'])&&zt(_0x2b6c6a,_0x47b93e)&&_0x1dfa23['add'](_0x2b6c6a);for(const _0xbd4ed0 of _0x1dfa23){const _0x411003=_0xbd4ed0['getRanges']();if(!_0x47b93e||!_0x47b93e['skipNestingCheck']){if(_0x52a2ef['every'](_0x301c24=>_0x411003['some'](_0x340bf5=>_0x340bf5['containsRange'](_0x301c24,!0x0))))return _0xbd4ed0;}(!_0xbd4ed0['attributes']||!_0xbd4ed0['attributes']['skipNestingCheck'])&&(_0x411003['every'](_0x1c17ad=>_0x52a2ef['some'](_0x1e9067=>_0x1e9067['containsRange'](_0x1c17ad,!0x0)))&&_0xbd4ed0['discard']());}const _0x3327e9=_0x324bd7(),_0x1c40da=_0x49d63e['id'],_0x132e78='deletion:'+_0x3baa34,_0x44b3f9=this['_setSuggestionData']({'id':_0x3327e9,'type':_0x132e78,'createdAt':new Date(),'authorId':_0x1c40da,'attributes':_0x47b93e});for(const _0x3ffb11 of _0x52a2ef)_0x3ffb11['detach'](),_0x3ffb11['isCollapsed']||'$graveyard'==_0x3ffb11['root']['rootName']||this['_addSuggestionMarker'](_0x132e78,_0x3327e9,_0x1c40da,_0x3ffb11,u['getMultiRangeId']());return _0x44b3f9;}['markAttributeChange'](_0x34be8b,_0x397f2b,_0x4e9cc6,_0x217df2,_0x1aba72){if(_0x34be8b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5837e9=this['editor']['plugins']['get']('Users')['me']['id'],_0x474b8a=Array['from'](this['_suggestions']['values']())['filter'](_0x778b9a=>'attribute'==_0x778b9a['type']&&_0x778b9a['data']['key']==_0x397f2b&&_0x778b9a['isIntersectingWithRange'](_0x34be8b));if('default'===this['_trackFormatChanges']){const _0xbfe896=this['_findSuggestions'](_0x34be8b,'insertion')['filter'](({meta:_0x3e393c})=>_0x3e393c['isOwn']&&!_0x3e393c['isInsideObject']&&!_0x3e393c['isNextTo'])['map'](({suggestion:_0x3c006c})=>_0x3c006c);_0x474b8a['unshift'](..._0xbfe896);}const _0x421454=new Map([[_0x34be8b,_0x4e9cc6]]);for(const _0x5e25e2 of _0x474b8a){const _0x122e87='attribute'==_0x5e25e2['type']?_0x5e25e2['data']['oldValue']:void 0x0,_0x8327e3=_0x5e25e2['getFirstRange'](),_0xc8d347=Array['from'](_0x421454['keys']())['find'](_0x23de4f=>_0x23de4f['isIntersecting'](_0x8327e3));if(!_0xc8d347)continue;const _0x4ac8cc=_0xc8d347['getDifference'](_0x8327e3);this['_isBlockAttribute'](_0x397f2b)&&'insertion'==_0x5e25e2['type']&&0x0!=_0x4ac8cc['length']||(_0x421454['delete'](_0xc8d347),_0x4ac8cc['forEach'](_0x217177=>{_0x421454['set'](_0x217177,_0x4e9cc6);}),'insertion'!=_0x5e25e2['type']&&_0x122e87!=_0x217df2&&_0x421454['set'](_0xc8d347['getIntersection'](_0x8327e3),_0x122e87));}const _0x279c7f=[];for(const [_0x200537,_0x2f37b1]of _0x421454){const _0x1fd66e=_0x324bd7(),_0x4e9c91={'key':_0x397f2b,'oldValue':_0x2f37b1,'newValue':_0x217df2};_0x397f2b['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':_0x397f2b});const _0x35e8b0=('attribute:'+(_0x397f2b+'|'+Gt({'newValue':_0x217df2})))['substring'](0x0,0x3c),_0x4fa45a=this['_setSuggestionData']({'id':_0x1fd66e,'type':_0x35e8b0,'data':_0x4e9c91,'createdAt':new Date(),'authorId':_0x5837e9,'attributes':_0x1aba72});_0x279c7f['push'](_0x4fa45a),this['_addSuggestionMarker'](_0x35e8b0,_0x1fd66e,_0x5837e9,_0x200537);}return _0x279c7f;}['enableDefaultAttributesIntegration'](_0x4d0e04){this['enableCommand'](_0x4d0e04,(_0x3f5b91,..._0x343b1f)=>{this['_recordAttributeChanges'](()=>{_0x3f5b91(..._0x343b1f);});});}['registerBlockAttribute'](_0x4d91cb){this['_blockAttributeKeys']['add'](_0x4d91cb);}['registerInlineAttribute'](_0x2cdc40){this['_inlineAttributeKeys']['add'](_0x2cdc40);}['_getAttributeKey'](_0xcae16c){return'attribute'==_0xcae16c['type']?_0xcae16c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x524915,_0x313336){const _0x1671a7=_0x524915['getFirstMarker']();this['_model']['change'](_0x18e9c5=>{_0x18e9c5['updateMarker'](_0x1671a7,{'range':_0x313336});});}['_addThreadToSuggestion'](_0x1f3563){const _0x244e6a=_0x1f3563['id'],_0x31a228=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x244e6a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x31a228,'threadId':_0x244e6a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xdfb91=this['_commentsRepository']['getCommentThread'](_0x244e6a);_0xdfb91['unbind']('isRemovable'),_0xdfb91['isRemovable']=!0x1,_0x1f3563['commentThread']=_0xdfb91;}['_checkSuggestionCorrectness'](_0x357d41,_0x44ff44,_0x3fecc3,_0x4fdfe0){if(_0x357d41['type']!=_0x44ff44||_0x357d41['subType']!=_0x3fecc3||_0x357d41['creator']['id']!=_0x4fdfe0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5ad815('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e117e,_0x9bd24e){const _0x638dc7=_0x4e117e['getFirstRange']();if(_0x9bd24e['isEqual'](_0x638dc7))_0x4e117e['removeMarkers']();else{if(_0x638dc7['containsRange'](_0x9bd24e)){const _0x1a83df=this['_model']['createPositionAt'](_0x9bd24e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e117e,this['_model']['createRange'](_0x638dc7['start'],_0x1a83df));const _0x2da54b=_0x324bd7(),_0x4dee36=_0x4e117e['creator']['id'],_0x32804f=_0x4e117e['type']+':'+_0x4e117e['subType'];this['_setSuggestionData']({'id':_0x2da54b,'type':_0x32804f,'createdAt':new Date(),'authorId':_0x4dee36,'data':_0x4e117e['data'],'attributes':_0x4e117e['attributes']});const _0x2127ea=this['_model']['createPositionAt'](_0x9bd24e['end']['parent'],'after'),_0x50060a=this['_model']['createRange'](_0x2127ea,_0x638dc7['end']);this['_addSuggestionMarker'](_0x32804f,_0x2da54b,_0x4dee36,_0x50060a);}else{if(_0x638dc7['containsPosition'](_0x9bd24e['start'])){const _0x2288cb=this['_model']['createPositionAt'](_0x9bd24e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e117e,this['_model']['createRange'](_0x638dc7['start'],_0x2288cb));}else{const _0x43c943=this['_model']['createPositionAt'](_0x9bd24e['end']['parent'],'after');this['_setSuggestionRange'](_0x4e117e,this['_model']['createRange'](_0x43c943,_0x638dc7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4f6815){for(const {suggestion:_0x3dc63c,meta:_0x54f4c3}of this['_findSuggestions'](_0x4f6815,'insertion')){if(!_0x54f4c3['isOwn'])continue;const _0x3e6b6b=_0x3dc63c['getRanges']();for(const _0x4b0707 of _0x3e6b6b)if(!_0x4f6815['getDifference'](_0x4b0707)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2fe8bf){const _0x2b1662=this['editor']['plugins']['get']('Users')['getUser'](_0x2fe8bf);if(!_0x2b1662)throw new _0x5ad815('track-changes-user-not-found',this);return _0x2b1662;}['_getExternalAuthor'](_0x4b7e36){const _0x3bb173=this['editor']['plugins']['get']('Users'),_0x111849=_0x1ebb8c('external:'+_0x4b7e36),_0x57437c=_0x3bb173['getUser'](_0x111849);return _0x57437c||_0x3bb173['addUser']({'id':_0x111849,'name':_0x4b7e36});}['_createSuggestion'](_0x172ef1,_0x4cce08,_0x2e3f58,_0x306432,_0x4410fc){const _0x51f9dd=this['_getAuthorFromId'](_0x306432),_0x565e3e=this['_suggestionFactory']['buildSuggestion'](_0x172ef1,_0x4cce08,_0x2e3f58,_0x51f9dd,_0x4410fc,_0x3f3ee5=>{this['_updateSuggestionData'](_0x2e3f58,{'attributes':_0x3f3ee5});const _0x362cf2=this['getSuggestion'](_0x2e3f58);this['_joinWithAdjacentSuggestions'](new Set([_0x362cf2])),this['_refreshSuggestionsChain'](new Set([_0x362cf2]));});return this['listenTo'](_0x565e3e,'accept',()=>{this['_updateSuggestionData'](_0x2e3f58,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x565e3e,'discard',()=>{this['_updateSuggestionData'](_0x2e3f58,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e3f58,_0x565e3e),this['_suggestionState']['set'](_0x565e3e,'notReady'),_0x565e3e;}['_splitMarkerName'](_0x51d856){const _0x50c3d1=_0x51d856['split'](':');return{'group':_0x50c3d1[0x0],'type':_0x50c3d1[0x1],'subType':_0x50c3d1['length']>=0x5?_0x50c3d1[0x2]:null,'id':_0x50c3d1['length']<0x5?_0x50c3d1[0x2]:_0x50c3d1[0x3],'authorId':_0x50c3d1['length']<0x5?_0x50c3d1[0x3]:_0x50c3d1[0x4],'markerCount':0x6==_0x50c3d1['length']?_0x50c3d1[0x5]:null};}['_breakSuggestionMarker'](_0x11e477,_0x5f0f25,_0x40552e){const _0x39ae25=_0x11e477['getFirstRange'](),_0x2e55cd=_0x39ae25['start'],_0x481a67=_0x39ae25['end'];this['_setSuggestionRange'](_0x11e477,this['_model']['createRange'](_0x2e55cd,_0x5f0f25));const _0x1911e7=_0x324bd7(),_0x18693e=_0x11e477['creator']['id'],_0x459b11=_0x11e477['type']+(_0x11e477['subType']?':'+_0x11e477['subType']:'');this['_setSuggestionData']({'id':_0x1911e7,'type':_0x459b11,'createdAt':new Date(),'authorId':_0x18693e,'originalSuggestionId':_0x11e477['id'],'attributes':_0x11e477['attributes'],'data':_0x11e477['data']});const _0x499b7a=this['_getAttributeKey'](_0x11e477);('formatBlock'==_0x11e477['type']||_0x499b7a&&this['_isBlockAttribute'](_0x499b7a))&&(_0x40552e=this['_model']['createPositionBefore'](_0x40552e['parent'])),this['_addSuggestionMarker'](_0x459b11,_0x1911e7,_0x18693e,this['_model']['createRange'](_0x40552e,_0x481a67));}['_findSuggestions'](_0x1b9c58,_0x3b8d90=null){const _0x5d6640=[],_0x38dc94=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1b9c58)||(_0x1b9c58=[_0x1b9c58]);for(const _0x3c4cbd of this['getSuggestions']()){if(!_0x3c4cbd['isInContent'])continue;if(_0x3b8d90&&_0x3c4cbd['type']!=_0x3b8d90)continue;let _0x196476=!0x1;for(const _0x26b83c of _0x3c4cbd['getRanges']()){for(const _0x4dc8b9 of _0x1b9c58){const _0x531487=_0x4dc8b9['start']['isEqual'](_0x26b83c['end'])||_0x4dc8b9['end']['isEqual'](_0x26b83c['start']);if(_0x531487||_0x4dc8b9['getIntersection'](_0x26b83c)){const _0x25dd1d=_0x4dc8b9['containsRange'](_0x26b83c)&&Ut(this['_model']['schema'],_0x26b83c['start'],_0x4dc8b9),_0x4581b7=_0x26b83c['containsRange'](_0x4dc8b9)&&Ut(this['_model']['schema'],_0x4dc8b9['start'],_0x26b83c);_0x5d6640['push']({'suggestion':_0x3c4cbd,'meta':{'isOwn':_0x38dc94==_0x3c4cbd['author'],'isNextTo':_0x531487,'isInsideObject':_0x25dd1d,'containsRangeInObject':_0x4581b7}}),_0x196476=!0x0;break;}}if(_0x196476)break;}}return _0x5d6640;}['_addSuggestionMarker'](_0x2c90a5,_0x2d7363,_0x3d1ec5,_0xc607e8,_0x283470){this['_model']['change'](_0x53111b=>{let _0x11df02='suggestion:'+_0x2c90a5+':'+_0x2d7363+':'+_0x3d1ec5;_0x283470&&(_0x11df02=_0x11df02+':'+_0x283470),_0x53111b['addMarker'](_0x11df02,{'range':_0xc607e8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x52aa48){const _0x48ccce=_0x52aa48['previous'],_0x5b3a0f=_0x52aa48['next'];_0x52aa48['previous']=null,_0x52aa48['next']=null,null!=_0x48ccce&&_0x48ccce['next']==_0x52aa48&&(_0x48ccce['next']=_0x5b3a0f),null!=_0x5b3a0f&&_0x5b3a0f['previous']==_0x52aa48&&(_0x5b3a0f['previous']=_0x48ccce),'ready'==this['_suggestionState']['get'](_0x52aa48)&&(this['_suggestionState']['set'](_0x52aa48,'removed'),this['fire']('suggestionUnloaded',_0x52aa48,_0x48ccce,_0x5b3a0f));}['_setSuggestionData'](_0x493272){const _0xa2ddf4=_0x493272['id'],_0x5ae789=this['addSuggestionData'](_0x493272);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x46dd24=this['editor']['plugins']['get']('PendingActions'),_0x4f9e36=_0x5ae789['hasComments'],_0xcb1922=_0x5ae789['subType']?_0x5ae789['type']+':'+_0x5ae789['subType']:_0x5ae789['type'],_0xd49666=this['editor']['locale'],_0x33516b=_0x46dd24['add'](o(_0xd49666,'PENDING_ACTION_SUGGESTION')),_0x2aa908={'id':_0xa2ddf4,'type':_0xcb1922,'hasComments':_0x4f9e36,'data':_0x493272['data']||null,'originalSuggestionId':_0x493272['originalSuggestionId']||null,'attributes':_0x5ae789['attributes']};this['_adapter']['addSuggestion'](_0x2aa908)['then'](_0x5b5585=>{_0x5ae789['_saved']=!0x0,_0x46dd24['remove'](_0x33516b),_0x5b5585&&_0x5b5585['createdAt']&&(this['_suggestions']['get'](_0xa2ddf4)['createdAt']=_0x5b5585['createdAt']);})['catch'](_0x506038=>{throw _0x274039('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ae789['discard']();}),_0x5ae789['stopListening'](),this['_suggestions']['delete'](_0x5ae789['id']),this['_suggestionState']['delete'](_0x5ae789),_0x506038;});}return _0x5ae789;}['_isBlockAttribute'](_0x800fc7){return this['_blockAttributeKeys']['has'](_0x800fc7);}['_updateSuggestionData'](_0x16140f,_0x1d7a86){const _0x4f127a=this['editor']['plugins']['get']('PendingActions'),_0x5a2e91=this['getSuggestion'](_0x16140f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5a2e91['_saved']){const _0x13ca09=_0x4f127a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x16140f,_0x1d7a86)['then'](()=>{_0x4f127a['remove'](_0x13ca09);});}else _0x5a2e91['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x16140f,_0x1d7a86);});}}['_getSuggestionData'](_0x5c15f5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5ad815('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5c15f5);}['_handleNewSuggestionMarker'](_0x451844){const {id:_0x1fa2e7,type:_0x1d46b7,subType:_0x12cb35,authorId:_0x351ec4}=this['_splitMarkerName'](_0x451844),_0x36b9a0=this['_suggestions']['get'](_0x1fa2e7)||this['_createSuggestion'](_0x1d46b7,_0x12cb35,_0x1fa2e7,_0x351ec4,{});switch(this['_checkSuggestionCorrectness'](_0x36b9a0,_0x1d46b7,_0x12cb35,_0x351ec4),this['_suggestionState']['get'](_0x36b9a0)){case'notReady':this['_getSuggestionData'](_0x1fa2e7)['then'](_0xce438c=>{let _0x3124f2=Promise['resolve']();_0xce438c['hasComments']&&(_0x3124f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1fa2e7})),_0x3124f2['then'](()=>{this['addSuggestionData'](_0xce438c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x36b9a0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1fa2e7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x36b9a0,'ready'),this['fire']('suggestionLoaded',_0x36b9a0);break;case'ready':this['fire']('suggestionChanged',_0x36b9a0);}return _0x36b9a0['addMarkerName'](_0x451844),_0x36b9a0;}['_refreshSuggestionsChain'](_0x3048d7){const _0x3b6976=Array['from'](_0x3048d7),_0x10f2db=_0x3b6976['filter'](_0x260257=>'attribute'==_0x260257['type']);this['_refreshAttributeSuggestionsChain'](_0x10f2db);const _0x43dcbe=_0x3b6976['filter'](_0x32af90=>!_0x32af90['isMultiRange']&&'attribute'!=_0x32af90['type']),_0xaee631=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x83ee18=>!_0x83ee18['isMultiRange']&&'attribute'!=_0x83ee18['type']),_0x42a8c4=_0xaee631['filter'](_0x180d41=>!_0x3048d7['has'](_0x180d41)),_0x29fb44=new Map(_0xaee631['map'](_0x4f5961=>[_0x4f5961,this['_suggestionFactory']['getSuggestionCallback'](_0x4f5961['type'],_0x4f5961['subType'],'chain')])),_0x1e7302=new Map(_0xaee631['map'](_0x5b5529=>[_0x5b5529,_0x5b5529['getFirstRange']()])),_0x361ea0=new Set(),_0x184032=new Set();for(let _0x4756fc=0x0;_0x4756fc<_0x43dcbe['length'];_0x4756fc++)_0x6e582f(_0x43dcbe[_0x4756fc],_0x43dcbe,_0x4756fc+0x1);for(let _0x11a992=0x0;_0x11a992<_0x43dcbe['length'];_0x11a992++)_0x6e582f(_0x43dcbe[_0x11a992],_0x42a8c4,0x0);const _0x474b78=new Set();for(let _0x2a902a=0x0;_0x2a902a<_0x43dcbe['length'];_0x2a902a++){const _0x576d8a=_0x43dcbe[_0x2a902a];!_0x184032['has'](_0x576d8a)&&_0x576d8a['previous']&&(_0x474b78['add'](_0x576d8a['previous']),_0x576d8a['previous']['next']===_0x576d8a&&(_0x576d8a['previous']['next']=null),_0x576d8a['previous']=null),!_0x361ea0['has'](_0x576d8a)&&_0x576d8a['next']&&(_0x474b78['add'](_0x576d8a['next']),_0x576d8a['next']['previous']===_0x576d8a&&(_0x576d8a['next']['previous']=null),_0x576d8a['next']=null);}function _0x6e582f(_0x440173,_0x479a26,_0x153a91){for(let _0x28ae8a=_0x153a91;_0x28ae8a<_0x479a26['length'];_0x28ae8a++){const _0x3c884a=_0x2991ea(_0x440173,_0x479a26[_0x28ae8a]);_0x3c884a&&(_0x3c884a[0x0]['next']=_0x3c884a[0x1],_0x3c884a[0x1]['previous']=_0x3c884a[0x0],_0x361ea0['add'](_0x3c884a[0x0]),_0x184032['add'](_0x3c884a[0x1]));}}function _0x2991ea(_0xd76e13,_0x562fcb){if(_0xd76e13['author']['id']!==_0x562fcb['author']['id'])return null;const _0x436a6d=_0x29fb44['get'](_0xd76e13)(_0xd76e13,_0x562fcb,_0x1e7302['get'](_0xd76e13),_0x1e7302['get'](_0x562fcb));if(!_0x436a6d)return null;return _0x29fb44['get'](_0x562fcb)(_0xd76e13,_0x562fcb,_0x1e7302['get'](_0xd76e13),_0x1e7302['get'](_0x562fcb))?_0x436a6d[0x1]['commentThread']&&_0x436a6d[0x1]['commentThread']['length']?null:_0x436a6d:null;}_0x474b78['size']&&this['_refreshSuggestionsChain'](_0x474b78);}['_refreshAttributeSuggestionsChain'](_0x39c789){if(0x0==_0x39c789['length'])return;const _0x303ddc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x171d30=>'attribute'==_0x171d30['type']&&_0x171d30['_isDataLoaded']),_0x2787e8=[],_0x5ede09=new Map();for(const _0x560377 of _0x303ddc){const _0x2c42cc=_0x1ebb8c(_0x560377['attributes']);_0x5ede09['has'](_0x2c42cc)||(_0x5ede09['set'](_0x2c42cc,_0x2787e8['length']),_0x2787e8['push']([]));const _0x236ff8=_0x5ede09['get'](_0x2c42cc);_0x2787e8[_0x236ff8]['push'](_0x560377);}!(function(){_0x2787e8['sort']((_0x5d8cc2,_0x283489)=>{const _0x2ee3f8=_0x5d8cc2[0x0]['createdAt'],_0x48824b=_0x283489[0x0]['createdAt'];return _0x2ee3f8==_0x48824b?_0x5d8cc2[0x0]['attributes']['groupId']<_0x283489[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ee3f8<_0x48824b?-0x1:0x1;});for(const _0x5954fd of _0x2787e8)_0x5954fd['sort']((_0x25bbb5,_0x3754e9)=>_0x25bbb5['id']<_0x3754e9['id']?-0x1:0x1);}());for(let _0x32fb7a=0x0;_0x32fb7a<_0x2787e8['length'];_0x32fb7a++){if(0x0==_0x2787e8[_0x32fb7a]['length'])continue;const _0x2a42c0=[];for(let _0xdf45be=_0x32fb7a+0x1;_0xdf45be<_0x2787e8['length'];_0xdf45be++)0x0!=_0x2787e8[_0xdf45be]['length']&&_0x57f95a(_0x2787e8[_0x32fb7a],_0x2787e8[_0xdf45be])&&_0x2a42c0['push'](_0xdf45be);for(const _0x2273ef of _0x2a42c0)_0x2787e8[_0x32fb7a]=_0x2787e8[_0x32fb7a]['concat'](_0x2787e8[_0x2273ef]),_0x2787e8[_0x2273ef]=[];}for(const _0x4fc9e6 of _0x2787e8)for(let _0x53e762=0x0;_0x53e762<_0x4fc9e6['length'];_0x53e762++){const _0x683d01=_0x4fc9e6[_0x53e762+0x1]||null;_0x4fc9e6[_0x53e762]['next']!==_0x683d01&&(_0x4fc9e6[_0x53e762]['next']=_0x683d01);}for(const _0x3967ee of _0x2787e8)for(let _0x2f7ed5=0x0;_0x2f7ed5<_0x3967ee['length'];_0x2f7ed5++){const _0x41787d=_0x3967ee[_0x2f7ed5-0x1]||null;_0x3967ee[_0x2f7ed5]['previous']!==_0x41787d&&(_0x3967ee[_0x2f7ed5]['previous']=_0x41787d);}function _0x57f95a(_0x483346,_0x3de978){if(_0x483346[0x0]['attributes']['groupId']!==_0x3de978[0x0]['attributes']['groupId']&&_0x483346[0x0]['author']!==_0x3de978[0x0]['author'])return!0x1;if(!function(_0x57e1ec,_0xb1f1b5){if(!_0x57e1ec['hasComments']&&!_0xb1f1b5['hasComments'])return!0x0;if(_0x57e1ec['hasComments']&&_0xb1f1b5['hasComments'])return!0x1;if(_0x57e1ec['hasComments']&&_0xb1f1b5['createdAt']<_0x57e1ec['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xb1f1b5['hasComments']&&_0x57e1ec['createdAt']<_0xb1f1b5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x483346[0x0],_0x3de978[0x0]))return!0x1;const _0x4f39ed=xt(_0x483346[0x0]['attributes'],'groupId'),_0xed42d9=xt(_0x3de978[0x0]['attributes'],'groupId');if(!_0x142687(_0x4f39ed,_0xed42d9))return!0x1;return!!_0x483346['every'](_0x596c29=>_0x3de978['some'](_0x54e120=>_0x596c29['getFirstRange']()['isEqual'](_0x54e120['getFirstRange']())))&&_0x3de978['every'](_0x2b2251=>_0x483346['some'](_0x43d2b2=>_0x2b2251['getFirstRange']()['isEqual'](_0x43d2b2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4aaa92){const _0x396dff=Array['from'](_0x4aaa92),_0x601efe=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1910a0=_0x601efe['filter'](_0x350c4d=>!_0x4aaa92['has'](_0x350c4d)),_0x132a64=new Map(_0x396dff['map'](_0x32de97=>[_0x32de97,this['_suggestionFactory']['getSuggestionCallback'](_0x32de97['type'],_0x32de97['subType'],'join')])),_0x380223=new Map(_0x601efe['map'](_0x852c4e=>[_0x852c4e,_0x852c4e['getRanges']()]));for(let _0x598411=0x0;_0x598411<_0x396dff['length'];_0x598411++){if(_0x1fd0f5(this,_0x396dff[_0x598411],_0x396dff,_0x598411+0x1))return!0x0;}for(let _0x1a6792=0x0;_0x1a6792<_0x396dff['length'];_0x1a6792++){if(_0x1fd0f5(this,_0x396dff[_0x1a6792],_0x1910a0,0x0))return!0x0;}return!0x1;function _0x1fd0f5(_0x16fe40,_0x801d26,_0xb493ac,_0x3e2c7b){for(let _0x211b3d=_0x3e2c7b;_0x211b3d<_0xb493ac['length'];_0x211b3d++){const _0x15915c=_0xb493ac[_0x211b3d];if(_0x15915c['type']!==_0x801d26['type']||_0x15915c['author']['id']!==_0x801d26['author']['id']||_0x15915c['subType']!==_0x801d26['subType'])continue;if(!qt(_0x801d26,_0x15915c))continue;if('attribute'==_0x801d26['type']&&_0x801d26['data']['oldValue']!=_0x15915c['data']['oldValue'])continue;if('attribute'==_0x801d26['type']&&_0x16fe40['_isBlockAttribute'](_0x801d26['data']['key']))continue;if('formatBlock'==_0x801d26['type']){const _0x4a8201=_0x16fe40['editor']['model'],_0x55f33e=_0x801d26['getContainedElement']();if(_0x55f33e&&(_0x4a8201['schema']['isObject'](_0x55f33e)||_0x4a8201['schema']['isLimit'](_0x55f33e)))continue;}const _0x13071f=_0x132a64['get'](_0x801d26),_0x195324=_0x380223['get'](_0x801d26),_0x219271=_0x380223['get'](_0x15915c),_0x10ec70=_0x801d26['commentThread']&&_0x801d26['commentThread']['length'],_0x125953=_0x15915c['commentThread']&&_0x15915c['commentThread']['length'];if(!_0x10ec70&&_0x13071f(_0x219271,_0x195324))return _0x16fe40['_joinSuggestions'](_0x15915c,_0x801d26),_0x380223['delete'](_0x801d26),!0x0;if(!_0x125953&&_0x13071f(_0x195324,_0x219271))return _0x16fe40['_joinSuggestions'](_0x801d26,_0x15915c),_0x380223['delete'](_0x15915c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x382b51,_0x1774f9){if(_0x382b51['isMultiRange']){for(const _0x3100e3 of _0x1774f9['getRanges']())_0x382b51['addRange'](_0x3100e3);}else{const _0x45586d=_0x1774f9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x382b51,this['_model']['createRange'](_0x382b51['getFirstRange']()['start'],_0x45586d));}_0x1774f9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4d223d,_0x575a32,_0x37df11){const _0x1f6665=_0x4d223d['startsWith']('format')||_0x4d223d['startsWith']('attribute')?'FORMATTING':_0x4d223d['toUpperCase']();return o(this['editor']['locale'],_0x575a32+'_'+_0x1f6665+'_SUGGESTION_ANNOUNCEMENT',_0x37df11);}['_initAriaMarkerChangeAnnouncements'](){const _0x2d2348=this['editor'];if(!_0x2d2348['ui'])return;const {ariaLiveAnnouncer:_0x464710}=_0x2d2348['ui'];_0x95b9e5(this['_model'],({left:_0x2ca242,entered:_0x46c513})=>{for(const _0x28b3a7 of _0x2ca242){const {group:_0x8289fb,type:_0x200272}=this['_splitMarkerName'](_0x28b3a7['name']);if('suggestion'===_0x8289fb){_0x464710['announce'](this['_getMarkerAnnouncementText'](_0x200272,'LEAVE'));break;}}for(const _0x137695 of _0x46c513){const {group:_0x36e7df,type:_0x1b89ee}=this['_splitMarkerName'](_0x137695['name']);if('suggestion'===_0x36e7df){_0x464710['announce'](this['_getMarkerAnnouncementText'](_0x1b89ee,'ENTER',_0x32629d(_0x342b17)));break;}}});}['_processAttributeChanges'](_0x3d471d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x193bd8=this['editor'],_0x4e2362=_0x193bd8['model']['document']['differ']['getChanges']();if(0x0==_0x4e2362['length'])return!0x1;const _0x2794f1=[],_0x4dab28=_0x4e2362['filter'](_0x33bd33=>'attribute'==_0x33bd33['type']),_0x10b97b=_0x4e2362['filter'](_0x58e9df=>'insert'==_0x58e9df['type']&&'$text'!=_0x58e9df['name']),_0x4206d8=_0x4e2362['filter'](_0x4c2b12=>'remove'==_0x4c2b12['type']&&'$text'!=_0x4c2b12['name']);for(const _0x599f92 of _0x4dab28)_0x2794f1['push']({'key':_0x599f92['attributeKey'],'newValue':_0x599f92['attributeNewValue'],'oldValue':_0x599f92['attributeOldValue'],'range':Lt(_0x599f92['range'],_0x193bd8['model'])});for(const _0x45e5f0 of _0x10b97b){const _0x34a487=_0x4206d8['find'](_0x928a15=>_0x928a15['position']['isEqual'](_0x45e5f0['position']));_0x34a487&&_0x2794f1['push']({'key':m,'newValue':_0x45e5f0['name'],'oldValue':_0x34a487['name'],'range':_0x193bd8['model']['createRangeOn'](_0x45e5f0['position']['nodeAfter'])});}return 0x0!=_0x2794f1['length']&&this['_reduceExistingSuggestions'](_0x3d471d,_0x2794f1);}['_processAttributeSuggestions'](_0x16a3e4){let _0x68f396=!0x1;const _0x17cc65=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e87bd=>_0x4e87bd['data']['newRange']&&_0x4e87bd['name']['startsWith']('suggestion:attribute:'));for(const _0x19e97d of _0x17cc65){const {subType:_0x30aa2f,id:_0x55221b}=this['_splitMarkerName'](_0x19e97d['name']),_0x2c39a6=_0x30aa2f['split']('|')[0x0];for(const _0x19709f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x19709f['id']!=_0x55221b&&'attribute'==_0x19709f['type']&&_0x19709f['data']&&_0x19709f['data']['key']==_0x2c39a6&&_0x19709f['getFirstRange']()['isIntersecting'](_0x19e97d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x19709f,_0x19e97d['data']['newRange'],_0x16a3e4),_0x68f396=!0x0);}return _0x68f396;}['_recordAttributeChanges'](_0x3e5c05){this['_recordAttributeSuggestions']=!0x0,_0x3e5c05();}['_isRegisteredAttribute'](_0x4ac9a1){const _0xca3b5=this['_isBlockAttribute'](_0x4ac9a1),_0x3c1392=this['_inlineAttributeKeys']['has'](_0x4ac9a1);return _0xca3b5||_0x3c1392;}['_reduceExistingSuggestions'](_0x212aa7,_0x4634e3){if(0x0==_0x4634e3['length'])return!0x1;let _0x3f6c10=!0x1;for(const _0x5c9627 of _0x4634e3){const _0x44bcaf=this['_findSuggestions'](_0x5c9627['range'],'attribute')['filter'](_0x2b8b6d=>!_0x2b8b6d['meta']['isNextTo'])['map'](_0x49012d=>_0x49012d['suggestion']),_0x3cafbb=_0x1ebb8c({'newValue':_0x5c9627['newValue']});_0x44bcaf['filter'](_0xc8d1fd=>{const [_0xb968a6,_0x5116e2]=_0xc8d1fd['subType']['split']('|');return _0xb968a6==_0x5c9627['key']&&_0x5116e2!=_0x3cafbb;})['forEach'](_0x2da95c=>{this['_reduceSuggestionAttributeRange'](_0x2da95c,_0x5c9627['range'],_0x212aa7),_0x3f6c10=!0x0;});}return _0x3f6c10;}['_reduceSuggestionAttributeRange'](_0x4ced28,_0x27a53d,_0x2a7fd7){const _0x4628fe=_0x4ced28['getFirstRange']()['getDifference'](_0x27a53d);0x0!==_0x4628fe['length']?0x1!==_0x4628fe['length']?this['_breakSuggestionMarker'](_0x4ced28,_0x27a53d['start'],_0x27a53d['end']):this['_setSuggestionRange'](_0x4ced28,_0x4628fe[0x0]):_0x2a7fd7['removeMarker'](_0x4ced28['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x50fdc0){this['_editor']=_0x50fdc0,this['_model']=_0x50fdc0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c2e74,_0x33e5d7,_0x46fe56,_0x45a960,_0x44f107,_0x1bb1de){return new u(this['_model'],{'type':_0x3c2e74,'subType':_0x33e5d7,'id':_0x46fe56,'author':_0x45a960,'creator':_0x45a960,'attributes':_0x44f107,'onAttributesChange':_0x1bb1de,'onAccept':(..._0x5b0c54)=>this['getSuggestionCallback'](_0x3c2e74,_0x33e5d7,'accept')(..._0x5b0c54),'onDiscard':(..._0x21d53b)=>this['getSuggestionCallback'](_0x3c2e74,_0x33e5d7,'discard')(..._0x21d53b)});}['registerCustomCallback'](_0x1ea5ba,_0xb353ec,_0xa01ee6,_0x1f8dcf){const _0x1e256c=_0x1ea5ba+':'+_0xb353ec+':'+_0xa01ee6;this['_customCallbacks']['set'](_0x1e256c,_0x1f8dcf);}['getSuggestionCallback'](_0x418ea3,_0xff8aa3,_0x3692d3){const _0x1b05f5=_0x418ea3+':'+_0xff8aa3+':'+_0x3692d3;return this['_customCallbacks']['get'](_0x1b05f5)||this['_defaultCallbacks']['get'](_0x418ea3+':'+_0x3692d3);}['_registerDefaultCallbacks'](){const _0x47dbf6=()=>!0x1,_0xa476bd=_0x31be0e=>{_0x31be0e['sort']((_0x2927c9,_0x386eec)=>_0x2927c9['start']['isBefore'](_0x386eec['start'])?0x1:-0x1),this['_model']['change'](_0x3b4d74=>{for(const _0x3b118c of _0x31be0e){let _0x3e0883;_0x3e0883=_0x3b118c['end']['isAtEnd']&&_0x3b118c['end']['parent']==_0x3b118c['start']['nodeAfter']?_0x3b4d74['createSelection'](_0x3b118c['start']['nodeAfter'],'on'):_0x3b4d74['createSelection'](_0x3b118c),this['_model']['deleteContent'](_0x3e0883,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x453166=(_0x4bb035,_0x57f796)=>{_0x57f796&&this['_model']['change'](_0x5c221b=>{const {commandName:_0x30e5c0,commandParams:_0x20cbf6=[]}=_0x57f796,_0x3ceea2=_0x4bb035['map'](_0xb28731=>(Vt(_0xb28731)&&(_0xb28731=this['_model']['createRange'](_0xb28731['end'])),_0xb28731))['filter'](_0x33c1fb=>'$graveyard'!==_0x33c1fb['root']['rootName']);if(_0x3ceea2['length']<0x1)return;const _0x40d625=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25e19f=>_0x4d36a7['fromRange'](_0x25e19f));_0x5c221b['setSelection'](_0x3ceea2);for(const _0x1156c1 of this['_editor']['commands']['commands']())_0x1156c1['refresh']();_0x20cbf6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x30e5c0,..._0x20cbf6);const _0x3fdf93=_0x40d625['filter'](_0x1d1b12=>'$graveyard'!=_0x1d1b12['root']['rootName']);_0x3fdf93['length']>0x0&&_0x5c221b['setSelection'](_0x3fdf93);for(const _0x1e467c of _0x40d625)_0x1e467c['detach']();});},_0x465a8b=(_0x4a0759,_0x549534)=>0x1==_0x4a0759['length']&&0x1==_0x549534['length']&&_0x4a0759[0x0]['end']['isEqual'](_0x549534[0x0]['start']),_0x219253=(_0xd16ae,_0x1abd5e,_0x2827c4,_0x11547f)=>Ht(_0xd16ae,_0x1abd5e,_0x2827c4,_0x11547f)?[_0xd16ae,_0x1abd5e]:Ht(_0x1abd5e,_0xd16ae,_0x11547f,_0x2827c4)?[_0x1abd5e,_0xd16ae]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x47dbf6),this['_defaultCallbacks']['set']('insertion:discard',_0xa476bd),this['_defaultCallbacks']['set']('insertion:join',_0x465a8b),this['_defaultCallbacks']['set']('insertion:chain',_0x219253),this['_defaultCallbacks']['set']('deletion:accept',_0xa476bd),this['_defaultCallbacks']['set']('deletion:discard',_0x47dbf6),this['_defaultCallbacks']['set']('deletion:join',_0x465a8b),this['_defaultCallbacks']['set']('deletion:chain',_0x219253),this['_defaultCallbacks']['set']('formatInline:accept',_0x453166),this['_defaultCallbacks']['set']('formatInline:discard',_0x47dbf6),this['_defaultCallbacks']['set']('formatInline:join',_0x465a8b),this['_defaultCallbacks']['set']('formatInline:chain',_0x47dbf6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x453166),this['_defaultCallbacks']['set']('formatBlock:discard',_0x47dbf6),this['_defaultCallbacks']['set']('formatBlock:join',_0x465a8b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x47dbf6),this['_defaultCallbacks']['set']('attribute:accept',_0x47dbf6),this['_defaultCallbacks']['set']('attribute:discard',(_0x31471a,_0x428003)=>{if(!_0x428003)return;const _0x30a7a7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x14655d=>{if(_0x428003['key']==m)for(const _0x16b608 of _0x31471a){const _0x4785e4=_0x16b608['start']['nodeAfter'],_0x54e30a=_0x428003['oldValue'];_0x14655d['rename'](_0x4785e4,_0x54e30a);}else{if(_0x30a7a7['_isBlockAttribute'](_0x428003['key'])){for(const _0x59cbb0 of _0x31471a)void 0x0!==_0x428003['oldValue']?_0x14655d['setAttribute'](_0x428003['key'],_0x428003['oldValue'],_0x59cbb0['start']['nodeAfter']):_0x14655d['removeAttribute'](_0x428003['key'],_0x59cbb0['start']['nodeAfter']);}else{for(const _0x366ad9 of _0x31471a)_0x428003['oldValue']?_0x14655d['setAttribute'](_0x428003['key'],_0x428003['oldValue'],_0x366ad9):_0x14655d['removeAttribute'](_0x428003['key'],_0x366ad9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x465a8b);}}function Ut(_0x3432d9,_0x5b02ee,_0x1ecf40){for(const _0x44223c of _0x5b02ee['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44223c['root']==_0x44223c)return!0x1;if(!_0x1ecf40['containsItem'](_0x44223c))return!0x1;if(_0x3432d9['isObject'](_0x44223c)||_0x3432d9['isLimit'](_0x44223c))return!0x0;}return!0x1;}function Vt(_0xcd7124){return _0xcd7124['end']['parent']==_0xcd7124['start']['nodeAfter']&&_0xcd7124['end']['isAtStart'];}function Pt(_0x31cb5a,_0x3ebe53,_0x3731a7,_0x8e8e0a){const _0x321e95=_0x578808=>!_0x578808['item']['is']('$textProxy')&&!_0x8e8e0a['isObject'](_0x578808['item']),_0x43fc11=_0x31cb5a['start']['getLastMatchingPosition'](_0x321e95),_0x1cde4d=_0x31cb5a['end']['getLastMatchingPosition'](_0x321e95,{'direction':'backward'});return(!_0x31cb5a['start']['isEqual'](_0x43fc11)||!_0x31cb5a['end']['isEqual'](_0x1cde4d))&&(_0x43fc11['isBefore'](_0x1cde4d)?_0x3731a7['updateMarker'](_0x3ebe53,{'range':_0x3731a7['createRange'](_0x43fc11,_0x1cde4d)}):_0x3731a7['removeMarker'](_0x3ebe53),!0x0);}function Gt(_0x20c9b1){return _0x1ebb8c(_0x20c9b1);}function Ft(_0x440330){const _0x4222e4=_0x440330['start']['nodeAfter'];return _0x4222e4&&_0x4222e4['is']('element');}function Lt(_0x756d32,_0x40b5b6){return null==_0x756d32['end']['nodeBefore']&&_0x756d32['end']['parent']==_0x756d32['start']['nodeAfter']?Jt(_0x756d32['start']['nodeAfter'],_0x40b5b6):_0x756d32;}function Jt(_0x26431e,_0x169142){const _0x27df74=_0x169142['schema']['isObject'](_0x26431e)||_0x169142['schema']['isSelectable'](_0x26431e);return _0x169142['createRange'](_0x169142['createPositionAt'](_0x26431e,'before'),_0x27df74?_0x169142['createPositionAfter'](_0x26431e):_0x169142['createPositionAt'](_0x26431e,'end'));}function Ht(_0x46a2e8,_0x4cfc28,_0x25fb16,_0x394f94){return!!qt(_0x46a2e8,_0x4cfc28)&&_0x25fb16['end']['isEqual'](_0x394f94['start']);}function qt(_0x2ee4e7,_0x46dd82){if(!_0x2ee4e7['_isDataLoaded']||!_0x46dd82['_isDataLoaded'])return!0x1;const _0x449691=new Set(Object['keys'](_0x2ee4e7['attributes'])),_0x386f71=new Set(Object['keys'](_0x46dd82['attributes']));if(_0x449691['delete']('groupId'),_0x386f71['delete']('groupId'),0x0==_0x449691['size']&&0x0==_0x386f71['size'])return!0x0;if(_0x449691['size']!=_0x386f71['size'])return!0x1;const _0x1eeda6={..._0x2ee4e7['attributes']},_0x2389cc={..._0x46dd82['attributes']};return delete _0x1eeda6['groupId'],delete _0x2389cc['groupId'],JSON['stringify'](_0x1eeda6)==JSON['stringify'](_0x2389cc);}function zt(_0x32c17a,_0x34c8e2){const _0x1e7391=Kt(_0x32c17a['attributes']),_0xc545f5=Kt(_0x34c8e2);if(!_0x32c17a['_isDataLoaded'])return!0x1;for(const _0xe8d610 of Object['keys'](_0xc545f5))if(!_0x142687(_0x1e7391[_0xe8d610],_0xc545f5[_0xe8d610]))return!0x1;return!0x0;}function Kt(_0x2f12de){const _0x19f24a=Object['assign']({},_0x2f12de);return delete _0x19f24a['skipNestingCheck'],delete _0x19f24a['tablePasteChainId'],_0x19f24a;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x5b310f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a894b,_0x3d5c83,_0x24ab9e,_0x3e172a){super(),this['model']=_0x3d5c83,this['view']=_0x24ab9e,this['commentThreadController']=_0x3e172a,this['_editor']=_0x3a894b,this['_acceptCommand']=_0x3a894b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a894b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x560fd4,_0x1c5511)=>_0x560fd4||_0x1c5511),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4c04b2=>_0x4c04b2&&this['_editor']['model']['canEditAt'](_0x3d5c83['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x43380c=>_0x43380c&&this['_editor']['model']['canEditAt'](_0x3d5c83['getRanges']())),this['_pendingAction']=null,_0x24ab9e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x24ab9e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x24ab9e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x24ab9e,'change:isDirty',()=>{_0x24ab9e['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 _0xb93724=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xb93724);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x55122a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4e8b48,_0x338bb0,_0x5d69f8,_0x51733f){super(_0x4e8b48),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x401707(_0x4e8b48,o(_0x4e8b48,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x338bb0['authoredAt']),this['bind']('authoredAt')['to'](_0x338bb0),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',_0x338bb0,'authoredAt',this,'descriptionParts',(_0x1642cb,_0x3b0b27,_0x5b4f7b)=>{const _0x3feb39=_0x5b4f7b['map'](_0x4f5395=>ns(_0x4f5395['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1642cb-0x1,_0x338bb0['author']['name'],_0x3b0b27?_0x51733f['formatDateTime'](_0x3b0b27):'',new DOMParser()['parseFromString'](_0x3feb39,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2dd5b5(),this['focusTracker']=new _0x432e16(),this['keystrokes']=new _0x13ed52(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x215c0d=>_0x215c0d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x338bb0,this['_localUser']=_0x5d69f8,this['_config']=_0x51733f,_0x51733f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x46c4c0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5cccc0}=this['_config'];this['commentsListView']=new _0x5cccc0(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',_0x57863f=>_0x57863f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x289271,_0x4b3b32)=>_0x289271||!!_0x4b3b32);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2772b2}=this['_config'],_0x544817=new _0x2772b2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5dd2a2=_0x544817['commentInputView'];return _0x544817['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5dd2a2,'value',(_0xbdf072,_0x9841ea,_0x553bb2)=>!!_0x553bb2||_0xbdf072&&!_0x9841ea),_0x5dd2a2['on']('submit',(_0x44f366,_0x69e9fb)=>{this['fire']('addComment',_0x69e9fb),_0x5dd2a2['editor']['setData']('');}),_0x5dd2a2['on']('cancel',()=>this['focus']()),_0x5dd2a2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x544817;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x33128f,_0x1b1e43,_0x260d76,_0x437601){super(_0x33128f,_0x1b1e43,_0x260d76,_0x437601),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb3f11c=>_0xb3f11c&&_0xb3f11c[0x0]?_0xb3f11c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x24a46c,_0x3fb103)=>{let _0x3ba212='';for(const _0x2620bc of _0x24a46c)_0x3ba212+='<p>'+ns(_0x2620bc['content'],_0x2620bc['color'])+'</p>';return _0x3fb103?_0x3ba212:ti(_0x3ba212,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x437601['SuggestionView'](_0x33128f,_0x1b1e43,{'formatDateTime':_0x437601['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 _0x2348f4=this['bindTemplate'],_0x1d94ae=[this['suggestionView']];return this['commentsListView']&&_0x1d94ae['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1d94ae['push'](this['commentThreadInputView']),_0x1d94ae['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2348f4['if']('isActive','ck-suggestion-wrapper--active'),_0x2348f4['to']('type',_0x59a842=>'ck-suggestion-'+_0x59a842),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':_0x2348f4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1d94ae};}['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 ue extends _0x55122a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x96223d,_0x55587,_0x45fcee){super(_0x96223d),this['_model']=_0x55587,this['_config']=_0x45fcee,this['set']('description',''),this['bind']('authoredAt')['to'](_0x55587),this['acceptButton']=this['_createButton'](o(_0x96223d,'Accept\x20suggestion'),_0x4bbc09['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x96223d,'Discard\x20suggestion'),_0x4bbc09['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2f902f(_0x96223d,_0x55587['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2dd5b5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x432e16(),this['keystrokes']=new _0x13ed52(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2de7d6=>_0x2de7d6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x580bf8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x580bf8['innerHTML']=this['description'],this['on']('change:description',(_0x5b32dd,_0x122037,_0x5edfd9)=>{_0x580bf8['innerHTML']=_0x5edfd9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e63a5=this['bindTemplate'],_0x3c25f4=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x3e63a5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e63a5['to']('authoredAt',_0x3d9ec8=>this['_config']['formatDateTime'](_0x3d9ec8))}]}]},{'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']&&_0x3c25f4['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':_0x3c25f4}]};}['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'](_0x4e9271,_0x55f592,_0x3e0a51,_0x38e081,_0x117e63){const _0x16a747=new _0x1b8de9(this['locale']);return _0x16a747['set']({'label':_0x4e9271,'icon':_0x55f592,'tooltip':!0x0,'tooltipPosition':_0x117e63}),_0x16a747['extendTemplate']({'attributes':{'class':_0x3e0a51}}),_0x16a747['on']('execute',()=>{this['fire'](_0x38e081,this['_model']['id']);}),_0x16a747;}['_setupKeyboardNavigation'](){const _0x46a292=this['element'];this['keystrokes']['listenTo'](_0x46a292);for(const _0x5d5a8f of this['focusables'])this['focusTracker']['add'](_0x5d5a8f['element']),this['keystrokes']['listenTo'](_0x5d5a8f['element']);this['keystrokes']['set']('enter',(_0x17a09a,_0x3e1935)=>{_0x46a292===_0x17a09a['target']&&(this['focusCycler']['focusFirst'](),_0x3e1935());}),this['keystrokes']['set']('esc',(_0x43097a,_0x4e46ea)=>{_0x46a292!==_0x43097a['target']&&(this['focus'](),_0x4e46ea());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x370139{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x30dca3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x248472){super(_0x248472),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f2e19=this['editor']['config'];_0x3f2e19['define']('trackChanges.SuggestionThreadView',de),_0x3f2e19['define']('trackChanges.SuggestionView',ue),_0x3f2e19['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f2e19['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x12ba2d,_0x2b5158){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x521964,_0x3ae7cb]of this['_handleControllerBuffer']){const _0x494e72=this['_suggestionToController']['has'](_0x521964);_0x494e72||_0x3ae7cb?_0x494e72&&_0x3ae7cb&&this['_destroyController'](_0x521964):this['_initializeController'](_0x521964);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x12ba2d,_0x2b5158);}['init'](){const _0x552722=this['editor'],_0x926c31=_0x552722['plugins']['get']('TrackChangesEditing'),_0x34986a=_0x552722['plugins']['get']('Annotations'),_0x1f8511=_0x552722['plugins']['get']('EditorAnnotations'),_0xb69c10=_0x552722['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f8511['addSourceCollector'](()=>{const _0x1f2ecd=[];for(const [_0x5bc32a,_0x1bae5d]of Array['from'](this['_suggestionToController'])){const _0x56d205=_0x5bc32a['getAllAdjacentSuggestions'](),_0x187d74=[];for(const _0x420d9f of _0x56d205){if(!_0x420d9f['isInContent'])continue;if(_0x420d9f['isMultiRange']){_0x187d74['push'](..._0x420d9f['getRanges']());continue;}const _0x28fc43=_0x420d9f['getFirstRange']();if(_0x187d74['length']>0x0){const _0x1fe969=_0x187d74[0x0]['getJoined'](_0x28fc43);if(_0x1fe969){_0x187d74[0x0]=_0x1fe969;continue;}}_0x187d74['push'](_0x28fc43);}_0x1f2ecd['push']([_0x1bae5d['view'],_0x187d74]);}return _0x1f2ecd;}),this['listenTo'](_0x926c31,'suggestionLoaded',(_0x22589d,_0x341dcf)=>{this['listenTo'](_0x341dcf,'change:previous',(_0x40973c,_0x1e17dd,_0x28c169,_0x260fd1)=>{_0x341dcf['isInContent']&&(null==_0x28c169?(this['_updateController'](_0x260fd1['head']),this['_handleSuggestionControllerDelayed'](_0x341dcf,!0x1)):(this['_updateController'](_0x28c169['head']),null==_0x260fd1&&this['_handleSuggestionControllerDelayed'](_0x341dcf,!0x0)));}),null!==_0x341dcf['previous']?this['_updateController'](_0x341dcf['head']):this['_handleSuggestionControllerDelayed'](_0x341dcf,!0x1);}),this['listenTo'](_0x926c31,'suggestionUnloaded',(_0x1d538b,_0x119772,_0x1271f8)=>{this['stopListening'](_0x119772,'change:previous'),this['_handleControllerBuffer']['delete'](_0x119772),this['_suggestionToController']['has'](_0x119772)&&this['_destroyController'](_0x119772),_0x1271f8&&this['_updateController'](_0x1271f8['head']);}),this['listenTo'](_0x926c31,'suggestionChanged',(_0x19a11c,_0x497dcb)=>{this['_updateController'](_0x497dcb);}),this['listenTo'](_0x34986a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xb69c10,'addComment',(_0x532102,{threadId:_0x28444a,isFromAdapter:_0x1599ba})=>{if(_0x1599ba||!_0x926c31['hasSuggestion'](_0x28444a))return;const _0x9bc43e=_0x926c31['getSuggestion'](_0x28444a);this['_suggestionToController']['get'](_0x9bc43e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10c025=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e6ac1;for(const _0x57cc6c in _0x10c025){const _0x2d6ac5=_0x57cc6c,_0x7bc8e4=_0x10c025[_0x2d6ac5];if('trackChangesLicenseKeyValid'==_0x7bc8e4||'trackChangesLicenseKeyInvalid'==_0x7bc8e4||'trackChangesLicenseKeyExpired'==_0x7bc8e4||'trackChangesLicenseKeyDomainLimit'==_0x7bc8e4||'trackChangesLicenseKeyNotAllowed'==_0x7bc8e4||'trackChangesLicenseKeyEvaluationLimit'==_0x7bc8e4||'trackChangesLicenseKeyTrialLimit'==_0x7bc8e4||'trackChangesLicenseKeyDevelopmentLimit'==_0x7bc8e4||'trackChangesLicenseKeyUsageLimit'==_0x7bc8e4){delete _0x10c025[_0x2d6ac5],_0x3e6ac1=_0x7bc8e4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3e6ac1&&_0x10c025['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3e6ac1&&_0x10c025['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3e6ac1&&_0x10c025['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3e6ac1&&_0x10c025['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3e6ac1&&_0x10c025['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3e6ac1&&_0x10c025['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x3e6ac1&&_0x10c025['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3e6ac1&&_0x10c025['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x270564=this['editor']['plugins']['get']('Annotations'),_0x4f1a62=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c4ed1=Array['from'](_0x270564['activeAnnotations'],_0x880c05=>_0x880c05['innerView'])['filter'](_0x187f44=>this['_viewToController']['has'](_0x187f44)),_0x441431=[];for(const _0x36a525 of _0x1c4ed1){const _0x4a029b=this['_viewToController']['get'](_0x36a525)['model']['getAllAdjacentSuggestions']();_0x441431['push'](..._0x4a029b['reduce']((_0x112d15,_0x4fe5da)=>[..._0x112d15,..._0x4fe5da['getMarkerNames']()],[]));}_0x4f1a62['activeMarkers']=_0x441431;}['_addUIComponentsToFactory'](){const _0x3b6d41=this['editor'],_0x254a14=_0x3b6d41['locale'],_0x181d19=o(_0x254a14,'Track\x20changes'),_0x43da38=new _0x5d6eef([{'type':'switchbutton','model':new _0x10d252({'withText':!0x0,'isToggleable':!0x0,'label':_0x181d19,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x10d252({'withText':!0x0,'label':o(_0x254a14,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10d252({'withText':!0x0,'label':o(_0x254a14,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10d252({'withText':!0x0,'label':o(_0x254a14,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10d252({'withText':!0x0,'label':o(_0x254a14,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x37bc76 of _0x43da38)if(pe(_0x37bc76)){const _0x29a496=_0x3b6d41['commands']['get'](_0x37bc76['model']['commandName']);_0x37bc76['model']['bind']('isOn','isEnabled')['to'](_0x29a496,'value','isEnabled');}_0x3b6d41['ui']['componentFactory']['add']('trackChanges',_0x2f26aa=>this['_createToolbarButton'](_0x2f26aa,_0x43da38,_0x181d19)),_0x3b6d41['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2c8854=>this['_createMenuBarMenu'](_0x2c8854,_0x43da38,_0x181d19));}['_createToolbarButton'](_0x153291,_0x509b38,_0x1d3153){const _0x53a0a0=_0x50bee9(_0x153291,_0x27b303),_0x25e65e=this['editor']['commands']['get']('trackChanges');_0x53a0a0['buttonView']['set']({'tooltip':_0x1d3153,'label':_0x1d3153,'icon':Ce}),_0x53a0a0['buttonView']['bind']('isOn')['to'](_0x25e65e,'value'),_0x53a0a0['buttonView']['on']('execute',()=>{_0x25e65e['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x53a0a0,_0x509b38,{'role':'menu'});const _0x115303=[];for(const _0x50da44 of _0x509b38)pe(_0x50da44)&&_0x115303['push'](this['editor']['commands']['get'](_0x50da44['model']['commandName']));const _0x192598=_0x53a0a0['buttonView'];return _0x192598['actionView']['unbind']('isEnabled'),_0x192598['arrowView']['unbind']('isEnabled'),_0x192598['actionView']['bind']('isEnabled')['to'](_0x25e65e,'isEnabled'),_0x192598['arrowView']['bind']('isEnabled')['toMany'](_0x115303,'isEnabled',(..._0x9bfab4)=>_0x9bfab4['some'](_0x1670b4=>_0x1670b4)),_0x53a0a0['on']('execute',_0x37d33f=>{this['editor']['execute'](_0x37d33f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x53a0a0;}['_createMenuBarMenu'](_0x577d4d,_0x1359d7,_0x22e225){const _0x2bc1f4=new _0x19c7b6(_0x577d4d),_0x480626=this['editor']['commands']['get']('trackChanges');_0x2bc1f4['buttonView']['set']({'label':_0x22e225,'icon':Ce});const _0x368a9d=new _0x2f6c75(_0x577d4d);for(const _0x28f13d of _0x1359d7){if('separator'==_0x28f13d['type']){_0x368a9d['items']['add'](new _0x51c1c6(_0x577d4d));continue;}const _0x4a9905=new _0x429ae5(_0x577d4d,_0x2bc1f4),_0x49b0fe=new _0x612069(_0x577d4d),_0x654d83=_0x28f13d['model'];_0x49b0fe['bind'](...Object['keys'](_0x654d83))['to'](_0x654d83),_0x49b0fe['delegate']('execute')['to'](_0x2bc1f4),_0x49b0fe['on']('execute',()=>{this['editor']['execute'](_0x654d83['commandName']),this['editor']['editing']['view']['focus']();}),_0x4a9905['children']['add'](_0x49b0fe),_0x368a9d['items']['add'](_0x4a9905);}return _0x2bc1f4['bind']('isEnabled')['to'](_0x480626,'isEnabled'),_0x2bc1f4['panelView']['children']['add'](_0x368a9d),_0x2bc1f4;}['_initializeController'](_0x22e6b4){const _0x4fedaf=this['editor'],_0x19a605=_0x4fedaf['config'],_0x186b1d=_0x4fedaf['plugins']['get']('Annotations'),_0x41ec39=_0x4fedaf['plugins']['get']('CommentsRepository'),_0x35d33c=_0x4fedaf['plugins']['get']('EditorAnnotations'),_0x28b3e6=_0x4fedaf['plugins']['get'](_0x30dca3)['me'],_0xbce092=_0x19a605['get']('trackChanges')['SuggestionThreadView'],_0x34b69d=_0x19a605['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x45221b,CommentThreadInputView:_0x60cc1c}=_0x4fedaf['plugins']['get']('CommentsUI');let _0x36d06d,_0x291533,_0x3dcf17;this['_annotationViews']['has'](_0x22e6b4['id'])?(_0x291533=this['_annotationViews']['get'](_0x22e6b4['id']),_0x36d06d=_0x291533['mainView']):(_0x36d06d=new _0xbce092(_0x4fedaf['locale'],_0x22e6b4,_0x28b3e6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x19a605['get']('comments.editorConfig'),'licenseKey':_0x19a605['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x19a605['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x19a605['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x19a605['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x423b53(_0x19a605['get']('locale')),'CommentView':_0x19a605['get']('comments')['CommentView'],'CommentsListView':_0x45221b,'CommentThreadInputView':_0x60cc1c,'SuggestionView':_0x34b69d}),_0x36d06d['suggestionView']['acceptButton']['on']('execute',()=>{_0x4fedaf['editing']['view']['focus']();}),_0x36d06d['suggestionView']['discardButton']['on']('execute',()=>{_0x4fedaf['editing']['view']['focus']();}),_0x291533=_0x186b1d['createAnnotationView'](this['editor']['locale'],_0x36d06d),_0x291533['bind']('isDirty')['to'](_0x36d06d,'isDirty'),_0x291533['bind']('length')['to'](_0x36d06d),_0x291533['bind']('type')['to'](_0x36d06d,'type',_0x2437e9=>'suggestion-'+_0x2437e9),_0x36d06d['on']('escape',()=>{_0x3dcf17['fire']('escape');}),this['_annotationViews']['set'](_0x22e6b4['id'],_0x291533));const _0x5db8fe=_0x41ec39['createCommentThreadController'](_0x22e6b4['commentThread'],_0x36d06d),_0xa4b313=new ge(_0x4fedaf,_0x22e6b4,_0x36d06d,_0x5db8fe),_0x41ff80=_0x22e6b4['getAllAdjacentSuggestions']()['filter'](_0x560da8=>_0x560da8['isInContent']);_0x36d06d['descriptionParts']=_0x4fedaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x41ff80),this['_suggestionToController']['set'](_0x22e6b4,_0xa4b313),this['_viewToController']['set'](_0x36d06d,_0xa4b313),_0x3dcf17=_0x186b1d['createAnnotation']({'view':_0x291533,'target':()=>{const _0x1c557d=[],_0x3f93dc=_0x22e6b4['getAllAdjacentSuggestions']()['filter'](_0x15a563=>_0x15a563['isInContent']);for(const _0x33f09a of _0x3f93dc)_0x1c557d['push'](..._0x33f09a['getMarkers']());return _0x2d0fa3(_0x4fedaf['editing'],_0x1c557d);},'type':()=>'suggestion-'+_0xa4b313['view']['type']}),_0x41ec39['_bindAnnotationToEditors'](_0x36d06d,_0x3dcf17),_0x186b1d['add'](_0x3dcf17),_0x35d33c['registerAnnotation'](_0x3dcf17);}['_destroyController'](_0x5c0a84){const _0x1936aa=this['editor']['plugins']['get']('CommentsRepository'),_0xfd50eb=this['editor']['plugins']['get']('Annotations'),_0x50e27b=this['_suggestionToController']['get'](_0x5c0a84),_0x14689a=_0x50e27b['view'],_0x464545=_0xfd50eb['getByInnerView'](_0x14689a);_0x1936aa['_unbindEditors'](_0x14689a),_0x464545&&_0xfd50eb['remove'](_0x464545),this['_suggestionToController']['delete'](_0x5c0a84),this['_viewToController']['delete'](_0x14689a),_0x50e27b['destroy']();}['_updateController'](_0x2466ab){if(!_0x2466ab['isInContent']||!this['_suggestionToController']['has'](_0x2466ab))return;const _0x165eb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x261081=this['_suggestionToController']['get'](_0x2466ab),_0x50dffc=_0x2466ab['getAllAdjacentSuggestions']();_0x261081['view']['descriptionParts']=_0x165eb1['descriptionFactory']['getDescriptions'](_0x50dffc);}['destroy'](){for(const _0xcaeba6 of this['_suggestionToController']['keys']())this['_destroyController'](_0xcaeba6);for(const _0x394a11 of this['_annotationViews']['values']())_0x394a11['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x458e0b){return'model'in _0x458e0b;}class k extends _0x370139{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x124c15){this['editor']['plugins']['get'](p)['adapter']=_0x124c15;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2e8d83){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2e8d83);}['getSuggestions']({skipNotAttached:_0x3cc0ef=!0x1,toJSON:_0x4cf2b6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3cc0ef,'toJSON':_0x4cf2b6});}['getSuggestion'](_0x5c8699){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5c8699);}}const w=['Pagination'];class T extends _0x370139{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5cb5c4=this['editor'];if(_0x5cb5c4['config']['define']('trackChangesData.editorCreator',_0x14c512=>{const _0x3c8c00=_0x5cb5c4['model']['document']['getRootNames']()['reduce']((_0x24954b,_0x2bf0cd)=>(_0x24954b[_0x2bf0cd]='',_0x24954b),{});return _0x5cb5c4['constructor']['create'](_0x3c8c00,_0x14c512);}),'function'!=typeof _0x5cb5c4['config']['get']('trackChangesData')['editorCreator'])throw new _0x5ad815('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x18c813){return N(this['editor'],!0x0,_0x18c813);}['getDataWithDiscardedSuggestions'](_0x36ad66){return N(this['editor'],!0x1,_0x36ad66);}}class D extends _0x370139{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d2e9d){function _0x5442f9(_0x4fe18e){return _0x4fe18e['map'](_0x15b87c=>String['fromCharCode'](_0x15b87c))['join']('');}super(_0x2d2e9d),this['result']='end',_0x2d2e9d[_0x5442f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5442f9([0x76,0x69,0x65,0x77])][_0x5442f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5442f9([0x61,0x75,0x74,0x6f]),_0x2d2e9d[_0x5442f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5442f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5442f9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5442f9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5442f9([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 v(_0x38a65a){return void 0x0!==_0x38a65a['getRootsAttributes'];}async function N(_0xa274ec,_0x506852,_0x5585f5){const _0x430af6=_0x2ec354(_0xa274ec,w);_0x430af6['plugins']['push'](p,D),_0x430af6['rootsAttributes']=v(_0xa274ec)?_0xa274ec['getRootsAttributes']():void 0x0;const _0x1e6cf2=document['createDocumentFragment'](),_0x53ea07=_0xa274ec['config']['get']('trackChangesData')['editorCreator'],_0x31afef=await _0x53ea07(_0x430af6,()=>function(_0x5698f6){const _0x13f3a5=document['createElement']('div');return _0x5698f6['appendChild'](_0x13f3a5),_0x13f3a5;}(_0x1e6cf2));!function(_0x464786,_0xf37e86){const _0xf4321a=_0x464786['model']['document']['getRootNames']()['reduce']((_0x2f7f3d,_0x3022db)=>(_0x2f7f3d[_0x3022db]=_0x464786['data']['get']({'rootName':_0x3022db}),_0x2f7f3d),{}),_0x278722=_0x464786['plugins']['get']('Users')['users']['map'](_0x21e46c=>({'id':_0x21e46c['id'],'name':_0x21e46c['name']})),_0x261cce=_0x464786['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1facc0=_0x464786['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39498c=_0xf37e86['plugins']['get']('Users'),_0x2d6246=_0xf37e86['plugins']['get']('TrackChangesEditing'),_0x53535d=_0xf37e86['plugins']['get']('CommentsRepository');for(const _0x4255c3 of _0x53535d['getCommentThreads']())_0x4255c3['remove']();for(const _0x32e5f1 of _0x278722)_0x39498c['getUser'](_0x32e5f1['id'])||_0x39498c['addUser'](_0x32e5f1);_0x39498c['me']||_0x39498c['useAnonymousUser']();for(const _0x201cb of _0x1facc0)_0x53535d['addCommentThread'](_0x201cb);for(const _0x49bda0 of _0x261cce)_0x2d6246['addSuggestionData'](_0x49bda0);_0xf37e86['data']['set'](_0xf4321a);}(_0xa274ec,_0x31afef),_0x31afef['execute'](_0x506852?'acceptAllSuggestions':'discardAllSuggestions');const _0x447c84=v(_0x31afef)?_0x31afef['getFullData'](_0x5585f5):_0x31afef['data']['get'](_0x5585f5);return await _0x31afef['destroy'](),_0x447c84;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};