@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241116.0 → 0.0.0-nightly-20241117.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 _0x56605c,PendingActions as _0x4b3613,icons as _0x439a94}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4a3251,ObservableMixin as _0x379b76,uid as _0xf2c1f9,insertToPriorityArray as _0xae0c89,priorities as _0x3ae2d9,logWarning as _0x4e26ff,getEnvKeystrokeText as _0x4db692,FocusTracker as _0x1d722e,KeystrokeHandler as _0x4ec040,Collection as _0x29b6de}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xe5ed9a,View as _0xdab870,ViewCollection as _0x16a546,FocusCycler as ts,ViewModel as _0xb431d0,createDropdown as _0x9c4d36,SplitButtonView as _0x141783,addListToDropdown as te,MenuBarMenuView as _0x2cbef1,MenuBarMenuListView as _0x4a6da9,ListSeparatorView as _0x5f1a87,MenuBarMenuListItemView as _0x231c89,MenuBarMenuListItemButtonView as _0x2f410a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x45ec3d,hashObject as _0x2f256a,surroundingMarkersDetector as _0x5b66a2,FOCUS_ANNOTATION_KEYSTROKE as _0x56dbac,AriaDescriptionView as _0x17eec5,setupThreadKeyboardNavigation as _0x1097db,trimHtml as ti,UserView as _0x44a02c,LateFocusButtonView as _0x22f19e,getDateTimeFormatter as _0x31b012,getAllMarkersDomElementsSorted as _0x5c20f6,sanitizeEditorConfig as _0x3f77a2}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1dcff0,LiveRange as _0x14359b,LivePosition as _0x4cfb01}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5f2660,toWidget as _0x263d0b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1455b4,set as _0x46194f,isEqual as _0x2f8722,unset as _0x32f1c8,omit as xt}from'lodash-es';import{Delete as _0x2cdec8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4eb41f,ShiftEnter as _0x548d72}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x5628c1,_0x1f9519){super(_0x5628c1),this['_enabledCommands']=_0x1f9519,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 _0x4ed12c of this['editor']['commands']['commands']())_0x4ed12c['affectsData']&&!this['_enabledCommands']['has'](_0x4ed12c)&&_0x4ed12c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1ea076 of this['editor']['commands']['commands']())_0x1ea076['affectsData']&&!this['_enabledCommands']['has'](_0x1ea076)&&_0x1ea076['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0xce3597,_0x80eed4){super(_0xce3597),this['_suggestions']=_0x80eed4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2f71c5){const _0x3d6e38=this['_suggestions']['get'](_0x2f71c5);if(!_0x3d6e38)throw new _0x4a3251('track-changes-accept-suggestion-not-found',this);const _0x2779ee=_0x3d6e38['getRanges']();this['editor']['model']['canEditAt'](_0x2779ee)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3d6e38);}}class R extends Qt{['_suggestions'];constructor(_0x1d6bc9,_0x37f8a3){super(_0x1d6bc9),this['_suggestions']=_0x37f8a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f1a9a){const _0x2fda50=this['_suggestions']['get'](_0x5f1a9a);if(!_0x2fda50)throw new _0x4a3251('track-changes-discard-suggestion-not-found',this);const _0x3f9283=_0x2fda50['getRanges']();this['editor']['model']['canEditAt'](_0x3f9283)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2fda50);}}function ns(_0x449268,_0x1db9f5){let _0x90093a='';return _0x90093a+=_0x449268['split']('*')['map']((_0x48b58b,_0x577fac)=>_0x577fac%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x48b58b)+'</span>':nn(_0x48b58b))['join'](''),_0x1db9f5&&(_0x90093a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1db9f5['value']+'\x22\x20title=\x22'+_0x1db9f5['title']+'\x22></span>'),_0x90093a;}function nn(_0xc322e1){const _0x1d6feb=document['createElement']('span');return _0x1d6feb['innerText']=_0xc322e1,_0x1d6feb['innerHTML'];}function Wt(_0x93d407){return _0x93d407['sort']((_0x69ea71,_0xdb168)=>'deletion'==_0x69ea71['type']&&'deletion'!=_0xdb168['type']?-0x1:'deletion'!=_0x69ea71['type']&&'deletion'==_0xdb168['type']?0x1:0x0);}function to(_0x2b5839,_0xcb7b7a){let _0x45243a,_0x33ebe2=0x0;const _0x576758=[],_0x46c0d3=_0xcb7b7a['schema'];for(;_0x33ebe2<_0x2b5839['length'];){const _0x3365af=_0x2b5839[_0x33ebe2],_0x218ac1=_0x2b5839[_0x33ebe2+0x1];_0x45243a||(_0x45243a=_0xcb7b7a['createPositionBefore'](_0x3365af)),on(_0xcb7b7a,_0x3365af,_0x218ac1)||(_0x576758['push'](_0xcb7b7a['createRange'](_0x45243a,_0x46c0d3['isObject'](_0x3365af)?_0xcb7b7a['createPositionAfter'](_0x3365af):_0xcb7b7a['createPositionAt'](_0x3365af,'end'))),_0x45243a=null),_0x33ebe2++;}return _0x576758;}function on(_0x4e8f75,_0xd968a0,_0x481774){if(!_0x481774)return!0x1;const _0x310f85=_0x4e8f75['createPositionAfter'](_0xd968a0),_0x284022=_0x4e8f75['createPositionBefore'](_0x481774);return _0x310f85['isTouching'](_0x284022);}function Xt(_0x2deffd,_0x3a13ec,_0x168d36){for(;_0x168d36['length'];){const _0x97417=_0x168d36['splice'](0x0,0x64);_0x2deffd['change'](()=>{for(const _0x5207d1 of _0x97417)_0x5207d1['isInContent']&&_0x3a13ec['execute'](_0x5207d1['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x4f0a75,_0x5f579a,_0x3cf49c){super(_0x4f0a75),this['_command']=_0x5f579a,this['_suggestions']=_0x3cf49c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34da29=Array['from'](this['_suggestions']['values']())['some'](_0x3ccfc7=>_0x3ccfc7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x34da29;}['execute'](){const _0x204c9d=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x2bb5ea of _0x204c9d){const _0x3f1ea3=_0x2bb5ea['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f1ea3))return;}Xt(this['editor']['model'],this['_command'],_0x204c9d);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x21103a,_0x491ce2,_0x276d01){super(_0x21103a),this['_command']=_0x491ce2,this['_suggestions']=_0x276d01,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a37ba=this['editor']['model']['document']['selection'],_0x2ec156=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x51f87a,_0x5dd079){const _0x3f6e93=Array['from'](_0x51f87a['getRanges']()),_0x1fe859=new Set();for(const _0xd64a83 of _0x5dd079)if(_0xd64a83['isInContent']){for(const _0xd77f3b of _0x3f6e93)for(const _0x21719c of _0xd64a83['getRanges']())(_0xd77f3b['isIntersecting'](_0x21719c)||_0x51f87a['isCollapsed']&&!_0xd64a83['isMultiRange']&&_0xd64a83['next']&&_0x21719c['end']['isTouching'](_0xd77f3b['start']))&&_0x1fe859['add'](_0xd64a83);}return _0x1fe859;}(_0x5a37ba,_0x2ec156),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x51d540=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x200b4f of _0x51d540){const _0x52cea8=_0x200b4f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x52cea8))return;}Xt(this['editor']['model'],this['_command'],_0x51d540);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x379b76(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x214c32,_0x2f1148){super(),this['id']=_0x2f1148['id'],this['type']=_0x2f1148['type'],this['subType']=_0x2f1148['subType']||null,this['author']=_0x2f1148['author'],this['creator']=_0x2f1148['creator']||_0x2f1148['author'],this['isExternal']=Boolean(_0x2f1148['attributes']&&_0x2f1148['attributes']['@external']),this['data']=null,this['_model']=_0x214c32,this['_onAccept']=_0x2f1148['onAccept'],this['_onDiscard']=_0x2f1148['onDiscard'],this['_onAttributesChange']=_0x2f1148['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f1148['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 _0x428b90=this;for(;_0x428b90['previous'];)_0x428b90=_0x428b90['previous'];return _0x428b90;}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'](_0x16dadd){this['_markerNames']['add'](_0x16dadd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x333005=>this['_model']['markers']['get'](_0x333005))['filter'](_0x4bdd36=>_0x4bdd36);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2023ab=>{for(const _0x2ffd8d of this['getMarkers']())_0x2023ab['removeMarker'](_0x2ffd8d);}),this['_markerNames']['clear']();}['removeMarker'](_0x24aa12){this['_model']['change'](_0x41ea6d=>{_0x41ea6d['removeMarker'](_0x24aa12);}),this['_markerNames']['delete'](_0x24aa12);}['addRange'](_0x1e965c){const _0x33be55='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x33be55),this['_model']['change'](_0x189c4b=>{_0x189c4b['addMarker'](_0x33be55,{'range':_0x1e965c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x386053){for(const _0xff632e of this['getRanges']())if(_0xff632e['isIntersecting'](_0x386053))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x368d53=>_0x368d53['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x8750d7,_0x160631)=>[..._0x8750d7,..._0x160631['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3d3ddc=this['getRanges']();if(0x1!=_0x3d3ddc['length'])return null;const _0x144c82=_0x3d3ddc[0x0],_0x4b2e3d=_0x144c82['start']['nodeAfter'],_0x218814=_0x144c82['end']['nodeBefore'];return _0x4b2e3d instanceof _0x1dcff0?_0x4b2e3d!=_0x218814?null:_0x4b2e3d: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 _0xd5f5e0=[];let _0x396620=this['head'];for(;_0x396620;)_0xd5f5e0['push'](_0x396620),_0x396620=_0x396620['next'];return _0xd5f5e0;}['setAttribute'](_0x31230f,_0x152f43){const _0x3abcbf=_0x1455b4(this['attributes']);_0x46194f(_0x3abcbf,_0x31230f,_0x152f43),_0x2f8722(_0x3abcbf,this['attributes'])||(this['attributes']=_0x3abcbf,this['_onAttributesChange'](_0x3abcbf));}['removeAttribute'](_0x1dedbf){const _0x2a6d8f=_0x1455b4(this['attributes']);_0x32f1c8(_0x2a6d8f,_0x1dedbf),_0x2f8722(_0x2a6d8f,this['attributes'])||(this['attributes']=_0x2a6d8f,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 _0xf2c1f9()['substr'](0x1,0x5);}}function o(_0x38efbd,_0x3bc17d,_0x4740e9){const _0x1fc542=_0x38efbd['t'],t=_0x38efbd['t'];switch(_0x3bc17d){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',_0x4740e9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4740e9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4740e9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4740e9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4740e9);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',_0x4740e9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4740e9);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',_0x4740e9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4740e9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4740e9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4740e9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4740e9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4740e9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4740e9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4740e9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4740e9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4740e9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4740e9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4740e9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4740e9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4740e9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4740e9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4740e9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4740e9);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'},_0x4740e9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4740e9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4740e9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4740e9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4740e9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4740e9);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'},_0x4740e9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4740e9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4740e9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4740e9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4740e9);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'},_0x4740e9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4740e9);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'},_0x4740e9);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'},_0x4740e9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4740e9);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'},_0x4740e9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4740e9);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'},_0x4740e9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4740e9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4740e9);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'},_0x4740e9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4740e9);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 _0x1fc542({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4740e9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1fc542({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4740e9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4740e9);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'},_0x4740e9);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'},_0x4740e9);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'},_0x4740e9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3bc17d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3a5139,_0xa70f67){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3a5139,this['_locale']=_0xa70f67;}['getDescriptions'](_0x5333b7){const _0xb376a6=[],_0x4bdaf8=new Set(),_0x2a70a4=new Set();for(let _0x5c9f18=0x0;_0x5c9f18<_0x5333b7['length'];_0x5c9f18++){const _0x207b84=_0x5333b7[_0x5c9f18];if(!_0x207b84['isInContent'])continue;const _0x5b108d=this['_handleCustomCallbackDescription'](_0x207b84);if(_0x5b108d){if(null!=_0x207b84['subType']){if(_0x4bdaf8['has'](_0x207b84['subType']))continue;_0x4bdaf8['add'](_0x207b84['subType']);}_0xb376a6['push'](_0x5b108d);}else{if('attribute'!=_0x207b84['type'])'insertion'!=_0x207b84['type']&&'deletion'!=_0x207b84['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb376a6,_0x207b84,_0x5333b7[_0x5c9f18+0x1]);else{const _0x7fb62e=_0x207b84['data']['key'];if(_0x2a70a4['has'](_0x7fb62e))continue;_0x2a70a4['add'](_0x207b84['data']['key']),_0x7fb62e==m?this['_handleRenameSuggestionDescription'](_0xb376a6,_0x207b84):this['_handleAttributeSuggestionDescription'](_0xb376a6,_0x207b84);}}}return this['_resolveDescriptionItems'](_0xb376a6);}['registerDescriptionCallback'](_0x45f3df){this['_customCallbacks']['push'](_0x45f3df);}['registerElementLabel'](_0x469497,_0x57055f,_0x460c62=_0x3ae2d9['normal']){'function'==typeof _0x469497?_0xae0c89(this['_itemLabelsCallbacks'],{'matchingCallback':_0x469497,'label':_0x57055f,'priority':_0x460c62}):this['_itemLabels']['set'](_0x469497,_0x57055f);}['registerAttributeLabel'](_0x2c8f2f,_0x35f18e){this['_attributeLabels']['set'](_0x2c8f2f,_0x35f18e);}['getItemLabel'](_0x3e5cd3,_0x109da9=0x1){let _0x54677a;for(const _0x35931d of this['_itemLabelsCallbacks'])if(_0x35931d['matchingCallback'](_0x3e5cd3)){_0x54677a=_0x35931d['label'];break;}return _0x54677a||(_0x54677a=this['_itemLabels']['get'](_0x3e5cd3['name'])),_0x54677a?_0x54677a(_0x109da9):0x1!==_0x109da9?_0x109da9+'\x20'+_0x3e5cd3['name']+'s':''+_0x3e5cd3['name'];}['_addDescriptionItems'](_0x56addc,_0x1da899){const _0x5472a5=_0x1da899['getFirstRange']()['getWalker'](),_0x89453d='insertion'==_0x1da899['type']?'add':'remove';for(const _0x1f02be of _0x5472a5){const _0x30979e=_0x1f02be['item'],_0x3d3080=_0x56addc[_0x56addc['length']-0x1];if(_0x30979e['is']('$textProxy'))_0x3d3080&&_0x3d3080['type']['indexOf']('Container')>-0x1&&_0x56addc['pop'](),_0x3d3080&&'text'==_0x3d3080['type']?_0x3d3080[_0x89453d]+=_0x30979e['data']:_0x56addc['push']({'type':'text','add':'add'==_0x89453d?_0x30979e['data']:'','remove':'remove'==_0x89453d?_0x30979e['data']:''});else{if(this['_schema']['isObject'](_0x30979e)){const _0x2b2fe4=_0x30979e;if(_0x3d3080&&_0x3d3080['type']['indexOf']('Container')>-0x1&&_0x56addc['pop'](),'elementEnd'==_0x1f02be['type'])continue;_0x3d3080&&_0x3d3080['type']==_0x89453d+'Object'&&_0x3d3080['element']['name']==_0x2b2fe4['name']?_0x3d3080['quantity']++:_0x56addc['push']({'type':_0x89453d+'Object','element':_0x2b2fe4,'quantity':0x1}),_0x5472a5['skip'](_0x30e294=>!('elementEnd'==_0x30e294['type']&&_0x30e294['item']==_0x30979e));}else{if(this['_schema']['checkChild'](_0x30979e,'$text')||_0x30979e['is']('element','softBreak')){const _0x123e13=_0x30979e;if('add'==_0x89453d&&'elementStart'==_0x1f02be['type']||'remove'==_0x89453d&&'elementEnd'==_0x1f02be['type'])continue;if(_0x3d3080&&-0x1==_0x3d3080['type']['indexOf']('Container')){'text'==_0x3d3080['type']&&(_0x3d3080[_0x89453d]+='\x0a');continue;}let _0x53cee8;if(_0x53cee8='add'==_0x89453d?_0x123e13['nextSibling']&&!this['_schema']['isObject'](_0x123e13['nextSibling'])?_0x123e13['nextSibling']:null:_0x123e13['previousSibling']&&!this['_schema']['isObject'](_0x123e13['previousSibling'])?_0x123e13['previousSibling']:null,_0x123e13['isEmpty']||_0x53cee8&&_0x53cee8['isEmpty']){const _0x869407=_0x53cee8&&_0x53cee8['isEmpty']?_0x53cee8:_0x123e13;_0x3d3080&&_0x3d3080['type']==_0x89453d+'EmptyContainer'&&_0x3d3080['element']['name']==_0x869407['name']?_0x3d3080['quantity']++:_0x56addc['push']({'type':_0x89453d+'EmptyContainer','element':_0x869407,'quantity':0x1});}else _0x56addc['push']({'type':_0x89453d+'Container','element':_0x123e13});}}}}}['_resolveDescriptionItems'](_0x663465){const _0x3ad0b3=this['_locale'],_0x30e4bd=[],_0x3b9f38=[],_0x424a2c=[];for(const _0x2a927a of _0x663465)switch(_0x2a927a['type']){case'text':if(_0x2a927a['add']=_0x2a927a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2a927a['remove']=_0x2a927a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2a927a['add']&&''!=_0x2a927a['remove']){_0x30e4bd['push']({'type':'replace','content':o(_0x3ad0b3,'REPLACE_TEXT',['\x22'+_0x2a927a['remove']+'\x22','\x22'+_0x2a927a['add']+'\x22'])});continue;}if(null!=_0x2a927a['add']['match'](/^ +$/)){_0x30e4bd['push']({'type':'insertion','content':o(_0x3ad0b3,'*Insert:*\x20%0',o(_0x3ad0b3,'ELEMENT_SPACE',_0x2a927a['add']['length']))});continue;}if(null!=_0x2a927a['remove']['match'](/^ +$/)){_0x30e4bd['push']({'type':'deletion','content':o(_0x3ad0b3,'*Remove:*\x20%0',o(_0x3ad0b3,'ELEMENT_SPACE',_0x2a927a['remove']['length']))});continue;}if(''!=_0x2a927a['add']){_0x30e4bd['push']({'type':'insertion','content':o(_0x3ad0b3,'*Insert:*\x20%0','\x22'+_0x2a927a['add']+'\x22')});continue;}_0x30e4bd['push']({'type':'deletion','content':o(_0x3ad0b3,'*Remove:*\x20%0','\x22'+_0x2a927a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x30e4bd['push']({'type':'insertion','content':o(_0x3ad0b3,'*Insert:*\x20%0',this['getItemLabel'](_0x2a927a['element'],_0x2a927a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x30e4bd['push']({'type':'deletion','content':o(_0x3ad0b3,'*Remove:*\x20%0',this['getItemLabel'](_0x2a927a['element'],_0x2a927a['quantity']))});continue;case'addContainer':_0x30e4bd['push']({'type':'insertion','content':o(_0x3ad0b3,'*Split:*\x20%0',this['getItemLabel'](_0x2a927a['element'],_0x2a927a['quantity']))});continue;case'removeContainer':_0x30e4bd['push']({'type':'deletion','content':o(_0x3ad0b3,'*Merge:*\x20%0',this['getItemLabel'](_0x2a927a['element'],_0x2a927a['quantity']))});continue;case'addFormat':_0x3b9f38['push'](_0x2a927a['key']);continue;case'removeFormat':_0x424a2c['push'](_0x2a927a['key']);continue;default:_0x30e4bd['push'](_0x2a927a);}if(_0x3b9f38['length']){const _0x22d663=_0x3b9f38['map'](_0x40b76a=>this['_attributeLabels']['has'](_0x40b76a)?this['_attributeLabels']['get'](_0x40b76a):_0x40b76a)['join'](',\x20');_0x30e4bd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22d663)});}if(_0x424a2c['length']){const _0x9daa99=_0x424a2c['map'](_0x5d3041=>this['_attributeLabels']['has'](_0x5d3041)?this['_attributeLabels']['get'](_0x5d3041):_0x5d3041)['join'](',\x20');_0x30e4bd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x9daa99)});}return _0x30e4bd;}['_handleCustomCallbackDescription'](_0x4236e8){for(const _0x3b77d0 of this['_customCallbacks']){const _0x45743d=_0x3b77d0(_0x4236e8);if(_0x45743d&&'type'in _0x45743d)return _0x45743d;}}['_handleAttributeSuggestionDescription'](_0x1f09d8,_0x1d1159){const _0x20aadb=_0x1d1159['data'],_0x107fc6=void 0x0===_0x20aadb['newValue']?'removeFormat':'addFormat';_0x1f09d8['push']({'type':_0x107fc6,'key':_0x20aadb['key']});}['_handleRenameSuggestionDescription'](_0x278f49,_0x104186){_0x278f49['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x104186['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x467618,_0x454e68,_0x3d69f6){if(this['_addDescriptionItems'](_0x467618,_0x454e68),_0x3d69f6&&_0x3d69f6['getFirstRange']()&&!_0x454e68['getFirstRange']()['end']['isEqual'](_0x3d69f6['getFirstRange']()['start'])){const _0x1a374d=_0x467618[_0x467618['length']-0x1],_0x2cc249='insertion'==_0x454e68['type']?'add':'remove';_0x1a374d&&'text'==_0x1a374d['type']&&(_0x1a374d[_0x2cc249]+='\x0a');}}}class U extends _0x56605c{['afterInit'](){const _0x3dbfcb=this['editor'],_0x462964=_0x3dbfcb['plugins']['get']('TrackChangesEditing');_0x3dbfcb['commands']['get']('showAIAssistant')&&_0x462964['enableCommand']('showAIAssistant');}}class V extends _0x56605c{['afterInit'](){const _0x13a897=this['editor'],_0x1cf080=_0x13a897['locale'];if(!_0x13a897['plugins']['has']('AlignmentEditing'))return;const _0x374543=_0x13a897['plugins']['get']('TrackChangesEditing');_0x374543['enableDefaultAttributesIntegration']('alignment'),_0x374543['registerBlockAttribute']('alignment'),_0x374543['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1cf080,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41f6ac=this['editor'],_0x50f1fc=_0x41f6ac['locale'];_0x41f6ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c0456=>{if('formatBlock'!=_0x5c0456['type'])return;const {data:_0x23c531}=_0x5c0456;if(_0x23c531&&'alignment'==_0x23c531['commandName']){const _0x849ebc=_0x23c531['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x50f1fc,'*Format:*\x20%0',function(_0x517133){switch(_0x517133){case'left':return o(_0x50f1fc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x50f1fc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x50f1fc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x50f1fc,'FORMAT_JUSTIFY_TEXT');}}(_0x849ebc))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x56605c{['afterInit'](){const _0x26935c=this['editor'],_0x345957=_0x26935c['plugins']['get']('TrackChangesEditing'),_0x44dc2c=_0x26935c['locale'];for(const _0x52aec2 of Zt){if(!_0x26935c['plugins']['has'](_0x52aec2))continue;const _0x514dab=_0x52aec2['slice'](0x0,-0x7)['toLowerCase'](),_0x59a02d='FORMAT_'+_0x514dab['toUpperCase']();_0x345957['enableDefaultAttributesIntegration'](_0x514dab),_0x345957['registerInlineAttribute'](_0x514dab),_0x345957['descriptionFactory']['registerAttributeLabel'](_0x514dab,o(_0x44dc2c,_0x59a02d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26b87a=this['editor'],_0x44bf57=_0x26b87a['locale'],_0xd81a2e=_0x26b87a['plugins']['get']('TrackChangesEditing');function _0x404257(_0x2950f3,_0x1a6872){_0xd81a2e['descriptionFactory']['registerDescriptionCallback'](_0x4dff81=>{if('formatInline'!=_0x4dff81['type'])return;const {data:_0x353128}=_0x4dff81;return _0x353128&&_0x353128['commandName']===_0x2950f3?_0x353128['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44bf57,'*Format:*\x20%0',_0x1a6872)}:{'type':'format','content':o(_0x44bf57,'*Remove\x20format:*\x20%0',_0x1a6872)}:void 0x0;});}_0x404257('bold',o(_0x44bf57,'FORMAT_BOLD')),_0x404257('italic',o(_0x44bf57,'FORMAT_ITALIC')),_0x404257('underline',o(_0x44bf57,'FORMAT_UNDERLINE')),_0x404257('code',o(_0x44bf57,'FORMAT_CODE')),_0x404257('strikethrough',o(_0x44bf57,'FORMAT_STRIKETHROUGH')),_0x404257('subscript',o(_0x44bf57,'FORMAT_SUBSCRIPT')),_0x404257('superscript',o(_0x44bf57,'FORMAT_SUPERSCRIPT'));}}class F extends _0x56605c{['afterInit'](){const _0x5bc6b9=this['editor'],_0x316aef=_0x5bc6b9['locale'];if(!_0x5bc6b9['plugins']['has']('BlockQuoteEditing'))return;const _0x183ff0=_0x5bc6b9['plugins']['get']('TrackChangesEditing'),_0x2ba161=this['editor']['commands']['get']('blockQuote');_0x183ff0['enableCommand']('blockQuote',(_0x5041de,_0x531e85={})=>{const _0x55d73f=this['editor']['model']['document']['selection'],_0x304fb5=_0x531e85&&void 0x0!==_0x531e85['forceValue']?_0x531e85['forceValue']:!_0x2ba161['value'];let _0x1528e1=[];if(_0x304fb5){const _0x5a6361=Array['from'](_0x55d73f['getSelectedBlocks']())['filter'](_0x436991=>oo(_0x436991)||function(_0x2c3f43,_0x5ec835){const _0x16d95c=_0x5ec835['checkChild'](_0x2c3f43['parent'],'blockQuote'),_0x25f7d8=_0x5ec835['checkChild'](['$root','blockQuote'],_0x2c3f43);return _0x16d95c&&_0x25f7d8;}(_0x436991,this['editor']['model']['schema']));_0x1528e1=to(_0x5a6361,_0x5bc6b9['model']);}else{const _0x14261c=Array['from'](_0x55d73f['getSelectedBlocks']())['filter'](_0xa09f44=>oo(_0xa09f44));_0x1528e1=to(_0x14261c,_0x5bc6b9['model']);}_0x5bc6b9['model']['change'](()=>{for(const _0x2fca12 of _0x1528e1)_0x183ff0['markBlockFormat'](_0x2fca12,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x304fb5}]});});}),_0x183ff0['descriptionFactory']['registerDescriptionCallback'](_0x1e3b44=>{const {data:_0x1ce208}=_0x1e3b44;if(_0x1ce208&&'blockQuote'==_0x1ce208['commandName']){const _0x150daf=o(_0x316aef,'ELEMENT_BLOCK_QUOTE');return _0x1ce208['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x316aef,'*Set\x20format:*\x20%0',_0x150daf)}:{'type':'format','content':o(_0x316aef,'*Remove\x20format:*\x20%0',_0x150daf)};}});}}function oo(_0x93a4b8){return'blockQuote'==_0x93a4b8['parent']['name'];}class L extends _0x56605c{['afterInit'](){const _0x57619f=this['editor'],_0x24ce24=_0x57619f['locale'],_0x2ef9aa=_0x57619f['plugins']['get']('TrackChangesEditing');_0x57619f['plugins']['has']('BookmarkEditing')&&(_0x2ef9aa['enableCommand']('insertBookmark'),_0x2ef9aa['enableDefaultAttributesIntegration']('updateBookmark'),_0x2ef9aa['registerBlockAttribute']('bookmarkId'),_0x2ef9aa['descriptionFactory']['registerDescriptionCallback'](_0x342fe8=>{if('insertion'!=_0x342fe8['type']&&'deletion'!=_0x342fe8['type']&&'attribute'!=_0x342fe8['type'])return;const _0x4c3435=_0x342fe8['getContainedElement']();if(null==_0x4c3435)return;if(!_0x4c3435['is']('element','bookmark'))return;const _0x39a8f9=_0x4c3435['getAttribute']('bookmarkId');if('insertion'==_0x342fe8['type'])return{'type':'insertion','content':o(_0x24ce24,'*Insert:*\x20%0','\x22'+_0x39a8f9+'\x22\x20'+o(_0x24ce24,'ELEMENT_BOOKMARK'))};if('deletion'==_0x342fe8['type'])return{'type':'deletion','content':o(_0x24ce24,'*Remove:*\x20%0','\x22'+_0x39a8f9+'\x22\x20'+o(_0x24ce24,'ELEMENT_BOOKMARK'))};const {data:_0x256d43}=_0x342fe8;if(!_0x256d43||'bookmarkId'!=_0x256d43['key'])return;return{'type':'format','content':o(_0x24ce24,'*Set\x20bookmark:*\x20%0','\x22'+_0x256d43['newValue']+'\x22')};}));}}class J extends _0x56605c{['afterInit'](){const _0x5b4383=this['editor'];_0x5b4383['plugins']['has']('CaseChange')&&(_0x5b4383['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5b4383['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5b4383['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x56605c{['afterInit'](){const _0x1bdb94=this['editor'];_0x1bdb94['commands']['get']('ckbox')&&_0x1bdb94['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x56605c{['afterInit'](){const _0x57703f=this['editor'];if(!_0x57703f['plugins']['has']('CodeBlock'))return;const _0x1292da=_0x57703f['plugins']['get']('TrackChangesEditing'),_0x489667=_0x57703f['locale'],_0x145e5b=_0x57703f['config']['get']('codeBlock')['languages'],_0x395a4d=_0x57703f['commands']['get']('codeBlock');_0x1292da['enableCommand']('indentCodeBlock'),_0x1292da['enableCommand']('outdentCodeBlock'),_0x1292da['enableCommand']('codeBlock',(_0x5728f7,_0x3303df={})=>{const _0x47c4ce=_0x57703f['model'],_0x585d3e=_0x57703f['model']['document']['selection'],_0x44e11e=_0x3303df&&void 0x0!==_0x3303df['forceValue']?_0x3303df['forceValue']:!_0x395a4d['value'];let _0x270cdf;_0x3303df['language']||(_0x3303df['language']=_0x145e5b[0x0]['language']),_0x270cdf=_0x44e11e?Array['from'](_0x585d3e['getSelectedBlocks']())['filter'](_0x47d968=>eo(_0x47d968)||function(_0x40e2c9,_0xf05f93){if(_0x40e2c9['is']('rootElement')||_0xf05f93['isLimit'](_0x40e2c9))return!0x1;return _0xf05f93['checkChild'](_0x40e2c9['parent'],'codeBlock');}(_0x47d968,_0x47c4ce['schema'])):Array['from'](_0x585d3e['getSelectedBlocks']())['filter'](_0x32e4c2=>eo(_0x32e4c2));const _0x2f1fb3=to(_0x270cdf,_0x47c4ce);_0x47c4ce['change'](()=>{for(const _0x15186b of _0x2f1fb3)_0x1292da['markBlockFormat'](_0x15186b,{'commandName':'codeBlock','commandParams':[{..._0x3303df,'forceValue':_0x44e11e}],'formatGroupId':'blockName'});});}),(_0x1292da['descriptionFactory']['registerElementLabel']('codeBlock',_0x5b28cb=>o(_0x489667,'ELEMENT_CODE_BLOCK',_0x5b28cb)),_0x1292da['descriptionFactory']['registerDescriptionCallback'](_0x9c3e8b=>{if('formatBlock'!=_0x9c3e8b['type'])return;const _0x154b6b=_0x489667['t'],{data:_0x54837b}=_0x9c3e8b;if(!_0x54837b||'codeBlock'!=_0x54837b['commandName'])return;const _0x3d26e8=_0x54837b['commandParams'][0x0]['language'],_0xed997f=_0x154b6b(_0x145e5b['find'](_0x304cb6=>_0x304cb6['language']===_0x3d26e8)['label'])['toLowerCase']();return _0x54837b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x489667,'*Set\x20format:*\x20%0',o(_0x489667,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xed997f+')')}:{'type':'format','content':o(_0x489667,'*Remove\x20format:*\x20%0',o(_0x489667,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x14feb5){return'codeBlock'==_0x14feb5['name'];}class z extends _0x56605c{['afterInit'](){const _0x351ca9=this['editor'];if(!_0x351ca9['plugins']['has']('CommentsEditing'))return;_0x351ca9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x38dcb3,_0x24519e,_0x53d7bb){const _0x24330e=[];for(const _0x147bfe of _0x24519e['getItems']())_0x147bfe['hasAttribute'](_0x38dcb3)&&_0x24330e['push'](_0x53d7bb['createRangeOn'](_0x147bfe));return _0x24330e;}function Ne(_0x3ba41d,_0x219a66,{showActiveMarker:_0x269491=!0x0}={}){const _0x4076b8=_0x3ba41d['plugins']['get']('TrackChangesEditing');return(_0x140a5b,_0x334963,_0x1ad6c5)=>{if(!_0x1ad6c5['consumable']['test'](_0x334963['markerRange'],_0x140a5b['name']))return;const _0x592136=_0x334963['markerRange']['getWalker'](),_0xab0f4a=_0x334963['markerRange']['start'],_0x50056c=_0x3ba41d['model']['schema'];let _0x38611e=null,_0x2d3cff=null,_0x3711fc=!0x1,_0x4c452f=!0x1;for(const _0x524b58 of _0x592136){const _0x156a69=_0x524b58['item'];_0x3711fc=_0x3711fc||_0x50056c['isContent'](_0x156a69);const _0x4b433c=_0x1ad6c5['mapper']['toViewElement'](_0x156a69);if(_0x4b433c&&_0x4b433c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x524b58['type']&&(_0x50056c['isBlock'](_0x156a69)&&!_0x50056c['isLimit'](_0x156a69)&&(_0x156a69['nextSibling']||_0xab0f4a['isAtEnd']?_0x38611e&&_0x38611e['parent']==_0x156a69||(_0x38611e=_0x156a69,_0x37a634(_0x524b58['previousPosition']),_0x4c452f=!0x0):_0x2d3cff=_0x2d3cff||_0x524b58['previousPosition']));}function _0x37a634(_0x2c97ef){const {authorId:_0x46d534}=_0x4076b8['_splitMarkerName'](_0x334963['markerName']),_0x522559=_0x1ad6c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x219a66,'data-author-id':_0x46d534}),_0x47a12e=_0x1ad6c5['mapper']['toViewPosition'](_0x2c97ef);_0x269491&&_0x4076b8['activeMarkers']['includes'](_0x334963['markerName'])&&_0x1ad6c5['writer']['addClass']('ck-suggestion-marker--active',_0x522559),_0x1ad6c5['writer']['insert'](_0x47a12e,_0x522559),_0x1ad6c5['mapper']['bindElementToMarker'](_0x522559,_0x334963['markerName']);}_0x3711fc||_0x4c452f||!_0x2d3cff||_0x37a634(_0x2d3cff);};}class K extends _0x56605c{static get['requires'](){return[_0x2cdec8];}['init'](){const _0x2f13ec=this['editor'],_0x5dd53a=_0x2f13ec['plugins']['get']('TrackChangesEditing');_0x5dd53a['enableCommand']('delete');const _0x4ff9cb=_0x2f13ec['commands']['get']('deleteForward');_0x5dd53a['enableCommand']('deleteForward',(_0x26c141,_0x7bfffc={})=>{const _0x7a68a2=_0x2f13ec['model']['createSelection'](_0x2f13ec['model']['document']['selection']);_0x7a68a2['isCollapsed']&&_0x2f13ec['model']['modifySelection'](_0x7a68a2,{'direction':'forward','unit':_0x7bfffc['unit']});const _0x3ddfce=_0x7a68a2['getFirstRange'](),_0x453e51=_0x14359b['fromRange'](_0x3ddfce);let _0x2a118a;_0x26c141(_0x7bfffc),_0x2a118a='$graveyard'==_0x453e51['root']['rootName']?_0x2f13ec['model']['createRange'](_0x3ddfce['start']):_0x2f13ec['model']['createRange'](_0x453e51['start'],_0x453e51['end']),_0x453e51['detach'](),_0x2f13ec['model']['enqueueChange'](_0x4ff9cb['buffer']['batch'],_0x46cf8=>{_0x4ff9cb['buffer']['lock'](),_0x46cf8['setSelection'](_0x46cf8['createRange'](_0x2a118a['end'])),_0x4ff9cb['buffer']['unlock']();});}),_0x2f13ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x2f13ec,'merge'),{'priority':'high'}),_0x2f13ec['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x48b9ea,_0x2722e9,_0x5a2f51)=>{_0x5a2f51['options']['showSuggestionHighlights']&&Ne(_0x2f13ec,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x48b9ea,_0x2722e9,_0x5a2f51);},{'priority':'high'}),_0x2f13ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3246a6,_0x5972e7,_0x5295e7)=>{const _0x202794=_0x5295e7['mapper']['markerNameToElements'](_0x5972e7['markerName']);if(_0x202794){for(const _0xd8cf5f of _0x202794)_0xd8cf5f['is']('uiElement')&&(_0x5295e7['mapper']['unbindElementFromMarkerName'](_0xd8cf5f,_0x5972e7['markerName']),_0x5295e7['writer']['remove'](_0xd8cf5f));}},{'priority':'high'});}}class W extends _0x56605c{['afterInit'](){const _0x1c9cc2=this['editor'];if(!_0x1c9cc2['plugins']['has']('ListEditing'))return;const _0xf64b51=_0x1c9cc2['locale'],_0x178fdf=_0x1c9cc2['plugins']['get']('TrackChangesEditing'),_0x472120=_0x1c9cc2['plugins']['has']('TodoListEditing'),_0x5939df=!!_0x1c9cc2['config']['get']('list.multiBlock');function _0x238fcd(_0x3baba9){return{'type':'format','content':''+o(_0xf64b51,'*Set\x20format:*\x20%0',_0x3baba9)};}function _0x587a48(_0x50aaf0){return{'type':'format','content':''+o(_0xf64b51,'*Remove\x20format:*\x20%0',_0x50aaf0)};}_0x178fdf['enableDefaultAttributesIntegration']('numberedList'),_0x178fdf['enableDefaultAttributesIntegration']('bulletedList'),_0x178fdf['enableDefaultAttributesIntegration']('customNumberedList'),_0x178fdf['enableDefaultAttributesIntegration']('customBulletedList'),_0x178fdf['enableDefaultAttributesIntegration']('indentList'),_0x178fdf['enableDefaultAttributesIntegration']('outdentList'),_0x178fdf['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x178fdf['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x178fdf['registerBlockAttribute']('listItemId'),_0x178fdf['registerBlockAttribute']('listType'),_0x178fdf['registerBlockAttribute']('listIndent'),_0x5939df&&(_0x178fdf['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x178fdf['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x472120&&(_0x178fdf['enableDefaultAttributesIntegration']('todoList'),_0x178fdf['enableDefaultAttributesIntegration']('checkTodoList'),_0x178fdf['registerBlockAttribute']('todoListChecked'),_0x178fdf['descriptionFactory']['registerDescriptionCallback'](_0x38e732=>{const {data:_0x57632c}=_0x38e732;if(_0x57632c&&'todoListChecked'==_0x57632c['key'])return{'type':'format','content':_0x57632c['newValue']?o(_0xf64b51,'*Check\x20item*'):o(_0xf64b51,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x206a8a=>{if(_0x206a8a['batch']['isUndo'])return!0x1;let _0x8afe19=!0x1;const _0x2e657e=_0x178fdf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1adb4e=>'todoListChecked'===_0x178fdf['_getAttributeKey'](_0x1adb4e));for(const _0x5ec9a9 of _0x2e657e){'todo'!=_0x5ec9a9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x178fdf['_findSuggestions'](_0x5ec9a9['getFirstRange'](),'attribute')['find'](_0x182173=>'listType'===_0x178fdf['_getAttributeKey'](_0x182173['suggestion']))||(_0x206a8a['removeMarker'](_0x5ec9a9['getFirstMarker']()),_0x8afe19=!0x0));}return _0x8afe19;})),_0x178fdf['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xf64b51,'FORMAT_INDENT'));const _0x72cc0b={'type':'format','content':''};_0x178fdf['descriptionFactory']['registerDescriptionCallback'](_0x560ce0=>{const {data:_0x2958f1}=_0x560ce0;if(!_0x2958f1||'listType'!=_0x2958f1['key'])return;let _0x17f47d=_0x560ce0['head'];for(;_0x17f47d;){if(_0x17f47d['data']&&(('listStyle'==_0x17f47d['data']['key']||'listMarkerStyle'==_0x17f47d['data']['key'])&&(_0x17f47d['data']['newValue']&&'default'!=_0x17f47d['data']['newValue']||'default'!=_0x17f47d['data']['oldValue']&&!_0x2958f1['newValue'])||!_0x5939df&&_0x17f47d['data']['key']==m))return _0x72cc0b;_0x17f47d=_0x17f47d['next'];}if(null==_0x2958f1['newValue'])switch(_0x2958f1['oldValue']){case'bulleted':return _0x587a48(o(_0xf64b51,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x587a48(o(_0xf64b51,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x587a48(o(_0xf64b51,'ELEMENT_TODO_LIST'));}switch(_0x2958f1['newValue']){case'bulleted':return _0x238fcd(o(_0xf64b51,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x238fcd(o(_0xf64b51,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x238fcd(o(_0xf64b51,'ELEMENT_TODO_LIST'));}}),_0x178fdf['descriptionFactory']['registerDescriptionCallback'](_0x599b73=>{const {data:_0xd420d}=_0x599b73;if(_0xd420d&&'listIndent'==_0xd420d['key'])return null==_0xd420d['newValue']||null==_0xd420d['oldValue']&&0x0==_0xd420d['newValue']?_0x72cc0b:void 0x0;}),_0x178fdf['descriptionFactory']['registerDescriptionCallback'](_0x3f3fee=>{if('attribute'!=_0x3f3fee['type'])return;const {data:_0x1c3f7e}=_0x3f3fee;if(!_0x1c3f7e||'listItemId'!=_0x1c3f7e['key'])return;const _0x53637b=Te(_0x3f3fee);return'newValue'==_0x53637b?{'type':'format','content':o(_0xf64b51,'*Merge:*\x20list\x20item')}:'oldValue'==_0x53637b?{'type':'format','content':o(_0xf64b51,'*Split:*\x20list\x20item')}:_0x72cc0b;}),_0x1c9cc2['model']['document']['registerPostFixer'](_0x230a67=>this['listItemIdFixer'](_0x230a67)),_0x1c9cc2['model']['document']['registerPostFixer'](_0x55a82d=>this['noTrackChangesFixer'](_0x55a82d)),_0x1c9cc2['model']['document']['on']('change:data',(_0x3a3449,_0x53dcde)=>{if(_0x53dcde['isUndo']||!_0x53dcde['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x37f904){if(_0x37f904['batch']['isUndo']||!_0x37f904['batch']['isLocal'])return!0x1;let _0x461e53=!0x1;const _0x295e4e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24883e=>_0x24883e['data']&&'listItemId'==_0x24883e['data']['key'])['filter'](_0x29732f=>_0x29732f['data']['newValue']&&_0x29732f['data']['oldValue']);for(const _0x20b601 of _0x295e4e)Te(_0x20b601)||(_0x37f904['removeMarker'](_0x20b601['getFirstMarker']()),_0x461e53=!0x0);return _0x461e53;}['noTrackChangesFixer'](_0x5d6f1c){if(_0x5d6f1c['batch']['isUndo']||!_0x5d6f1c['batch']['isLocal'])return!0x1;const _0x258c53=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x258c53['trackChangesCommand']['value'])return!0x1;let _0x4ac770=!0x1;const _0x50401b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2c4f98=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b838c=>'attribute'==_0x1b838c['type'])['filter'](_0x1d8536=>_0x50401b['includes'](_0x1d8536['attributeKey']));if(0x0==_0x2c4f98['length'])return _0x4ac770;for(const _0x164a83 of _0x2c4f98){const _0x433e83=_0x258c53['_findSuggestions'](_0x164a83['range'],'attribute')['filter'](_0x49ca6=>!_0x49ca6['meta']['isNextTo'])['map'](_0x1aefe4=>_0x1aefe4['suggestion'])['filter'](_0xc74138=>{const _0x380d92=_0x258c53['_getAttributeKey'](_0xc74138);return _0x50401b['includes'](_0x380d92);});if(_0x433e83['length']){for(const _0x313d4d of _0x433e83)_0x5d6f1c['removeMarker'](_0x313d4d['getFirstMarker']());_0x4ac770=!0x0;}}return _0x4ac770;}['assureChains'](){const _0x5d8c45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50f96e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x22c817;const _0x10683e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b82ab=>{if(_0x2b82ab['data']['oldRange']||!_0x2b82ab['data']['newRange'])return null;if(!_0x2b82ab['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39f972}=_0x5d8c45['_splitMarkerName'](_0x2b82ab['name']);if(!_0x5d8c45['hasSuggestion'](_0x39f972))return null;const _0x137866=_0x5d8c45['getSuggestion'](_0x39f972);return _0x50f96e['includes'](_0x137866['data']['key']);})['map'](_0x529f84=>{const {id:_0x13e467}=_0x5d8c45['_splitMarkerName'](_0x529f84['name']),_0xa11367=_0x5d8c45['getSuggestion'](_0x13e467);return _0x22c817=_0xa11367['attributes']['groupId'],_0xa11367['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x10683e['size'])return;const _0x589dd8=_0x5d8c45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33c3f7=>'attribute'==_0x33c3f7['type']&&_0x33c3f7['data']&&_0x50f96e['includes'](_0x33c3f7['data']['key'])&&_0x33c3f7['attributes']['groupId']!=_0x22c817)['map'](_0x413cf3=>({'listItem':_0x413cf3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x413cf3['attributes']['groupId']})),_0x478aff=new Set();for(const {groupId:_0x2e60f0,listItem:_0x3ffd26}of _0x589dd8)_0x10683e['has'](_0x3ffd26)&&_0x478aff['add'](_0x2e60f0);for(const _0x2724e9 of _0x5d8c45['getSuggestions']())_0x478aff['has'](_0x2724e9['attributes']['groupId'])&&_0x2724e9['setAttribute']('groupId',_0x22c817);}['_supportLegacySuggestions'](){const _0xd71438=this['editor'],_0x1af910=_0xd71438['locale'],_0x42879c=_0xd71438['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42879c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2eeec6,_0x2ddec4){const _0x58509c=[];for(let _0x5577d7 of _0x2eeec6)_0x5577d7['start']['nodeAfter']===_0x5577d7['end']['parent']&&(_0x5577d7=_0xd71438['model']['createRange'](_0xd71438['model']['createPositionAt'](_0x5577d7['start']['nodeAfter'],0x0))),_0x58509c['push'](_0x5577d7);_0xd71438['model']['change'](_0x2b765a=>{const _0x4172b4=_0xd71438['model']['document']['selection'],_0x250981=Array['from'](_0x4172b4['getRanges']())['map'](_0x5308b5=>_0x14359b['fromRange'](_0x5308b5));_0x2b765a['setSelection'](_0x58509c),_0xd71438['commands']['get'](_0x2ddec4['commandName'])['refresh'](),_0x2ddec4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd71438['execute'](_0x2ddec4['commandName'],..._0x2ddec4['commandParams']),_0x2b765a['setSelection'](_0x250981);for(const _0x5aed6f of _0x250981)_0x5aed6f['detach']();});}),_0x42879c['descriptionFactory']['registerElementLabel'](function(_0x41ea6f){const _0x5f5ad4=!_0xd71438['model']['schema']['isObject'](_0x41ea6f),_0x2fc21c=_0x41ea6f['previousSibling'],_0x217b71=_0x41ea6f['nextSibling'],_0x2de985=_0x41ea6f['getAttribute']('listItemId'),_0x5aba24=!_0x2fc21c||_0x2fc21c['getAttribute']('listItemId')!==_0x2de985,_0x5b9642=!_0x217b71||_0x217b71['getAttribute']('listItemId')!==_0x2de985;return _0x5f5ad4&&Boolean(_0x2de985)&&_0x5aba24&&_0x5b9642;},_0x49133f=>o(_0x1af910,'ELEMENT_LIST_ITEM',_0x49133f));}['_registerLegacyDescription'](){const _0x80ffd0=this['editor'],_0xd48752=_0x80ffd0['locale'];function _0xf2751f(_0x22f515){const _0x519e8d=_0x80ffd0['commands']['get']('bulletedList')['value'],_0xfa38dd=_0x80ffd0['commands']['get']('numberedList')['value'];return'numberedList'===_0x22f515?_0x519e8d:_0xfa38dd;}_0x80ffd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x24a4b9){if('formatBlock'!=_0x24a4b9['type'])return;const {data:_0x452309}=_0x24a4b9;if(!_0x452309)return;let _0x1b7a8a,_0xe77a7,_0x5ebc48,_0x4e4f1c;switch(_0x452309['commandName']){case'bulletedList':_0x5ebc48=_0x452309['commandParams'][0x0]['forceValue'],_0x4e4f1c=_0xf2751f(_0x452309['commandName']),_0x1b7a8a=_0x5ebc48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e4f1c&&_0x80ffd0['config']['get']('list.multiBlock')||(_0x1b7a8a='*Change\x20to:*\x20%0'),_0xe77a7={'type':'format','content':o(_0xd48752,_0x1b7a8a,o(_0xd48752,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ebc48=_0x452309['commandParams'][0x0]['forceValue'],_0x4e4f1c=_0xf2751f(_0x452309['commandName']),_0x1b7a8a=_0x5ebc48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e4f1c&&_0x80ffd0['config']['get']('list.multiBlock')||(_0x1b7a8a='*Change\x20to:*\x20%0'),_0xe77a7={'type':'format','content':o(_0xd48752,_0x1b7a8a,o(_0xd48752,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b7a8a='*Indent:*\x20%0',_0xe77a7={'type':'format','content':o(_0xd48752,_0x1b7a8a,o(_0xd48752,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b7a8a=function(_0x1828cb){const _0x13f8c8=_0x1828cb['getFirstRange']();let _0x2bf771=_0x13f8c8['start']['nodeAfter'];for(;_0x2bf771&&_0x13f8c8['containsItem'](_0x2bf771);){if(_0x2bf771['getAttribute']('listIndent')>0x0)return!0x1;_0x2bf771=_0x2bf771['nextSibling'];}return!0x0;}(_0x24a4b9)?o(_0xd48752,'*Format:*\x20remove\x20from\x20%0',o(_0xd48752,function(_0x512636){return'ELEMENT_'+_0x512636['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x24a4b9))):o(_0xd48752,'*Outdent:*\x20%0',o(_0xd48752,'ELEMENT_LIST_ITEM')),_0xe77a7={'type':'format','content':_0x1b7a8a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x452309['multipleBlocks']&&(_0x1b7a8a='*Merge:*\x20%0',_0xe77a7={'type':'deletion','content':o(_0xd48752,_0x1b7a8a,o(_0xd48752,'ELEMENT_LIST_ITEM'))});}return _0xe77a7;});}}function Te(_0x1d5c6b){let _0x440d9a=_0x1d5c6b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x440d9a;){const _0x36632d=_0x440d9a['getAttribute']('listItemId');if(!_0x36632d)return!0x1;if(_0x36632d==_0x1d5c6b['data']['newValue'])return'newValue';if(_0x36632d==_0x1d5c6b['data']['oldValue'])return'oldValue';_0x440d9a=_0x440d9a['previousSibling'];}return!0x1;}class ye extends _0x56605c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x29f242=this['editor']['config']['get']('list.properties'),_0x442afe=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f242['styles']&&(_0x442afe['enableDefaultAttributesIntegration']('listStyle'),_0x442afe['registerBlockAttribute']('listStyle')),_0x29f242['reversed']&&(_0x442afe['enableDefaultAttributesIntegration']('listReversed'),_0x442afe['registerBlockAttribute']('listReversed')),_0x29f242['startIndex']&&(_0x442afe['enableDefaultAttributesIntegration']('listStart'),_0x442afe['registerBlockAttribute']('listStart'));const _0x43099b={'type':'format','content':''};_0x442afe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d44a5=this['editor']['locale'];_0x442afe['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d44a5,'FORMAT_LIST_REVERSED')),_0x442afe['descriptionFactory']['registerDescriptionCallback'](_0x4b9409=>{const {data:_0x119d28}=_0x4b9409;if(_0x119d28&&'listReversed'==_0x119d28['key'])return null==_0x119d28['newValue']||0x0==_0x119d28['newValue']&&null==_0x119d28['oldValue']?_0x43099b:void 0x0;}),_0x442afe['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d44a5,'FORMAT_LIST_START')),_0x442afe['descriptionFactory']['registerDescriptionCallback'](_0xcdca3a=>{const {data:_0x50d625}=_0xcdca3a;if(_0x50d625&&'listStart'==_0x50d625['key'])return null==_0x50d625['newValue']||0x1==_0x50d625['newValue']&&null==_0x50d625['oldValue']?_0x43099b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x110fb3=>{if(_0x110fb3['batch']['isUndo'])return!0x1;let _0x5090d3=!0x1;const _0x3042c7=_0x442afe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x567f6b=>{const _0x27d79e=_0x442afe['_getAttributeKey'](_0x567f6b);return'listStart'==_0x27d79e||'listReversed'==_0x27d79e;});for(const _0xfce505 of _0x3042c7){const _0x66e37b=_0xfce505['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x66e37b||'customNumbered'==_0x66e37b)continue;_0x442afe['_findSuggestions'](_0xfce505['getFirstRange'](),'attribute')['find'](_0x1ecb55=>'listType'==_0x442afe['_getAttributeKey'](_0x1ecb55['suggestion']))||(_0x110fb3['removeMarker'](_0xfce505['getFirstMarker']()),_0x5090d3=!0x0);}return _0x5090d3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3c486d){const _0x4312d9=this['editor']['locale'],{data:_0x28e694}=_0x3c486d,_0x47913a={'type':'format','content':''};if(!_0x28e694||'listStyle'!=_0x28e694['key'])return;if(!_0x28e694['oldValue'])return'default'==_0x28e694['newValue']?_0x47913a:{'type':'format','content':''+o(_0x4312d9,'*Set\x20format:*\x20%0',o(_0x4312d9,this['_getTranslationKeyForListStyle'](_0x28e694['newValue'])))};if(!_0x28e694['newValue']){if('default'==_0x28e694['oldValue'])return _0x47913a;let _0x11ea51=_0x3c486d['head'];for(;_0x11ea51;){if(_0x11ea51['data']&&'listType'==_0x11ea51['data']['key']&&_0x11ea51['data']['newValue'])return _0x47913a;_0x11ea51=_0x11ea51['next'];}return{'type':'format','content':''+o(_0x4312d9,'*Remove\x20format:*\x20%0',o(_0x4312d9,this['_getTranslationKeyForListStyle'](_0x28e694['oldValue'])))};}if('default'!=_0x28e694['newValue'])return{'type':'format','content':''+o(_0x4312d9,'*Set\x20format:*\x20%0',o(_0x4312d9,this['_getTranslationKeyForListStyle'](_0x28e694['newValue'])))};let _0x5894d8=_0x3c486d['head'];for(;_0x5894d8;){if(_0x5894d8['data']&&'listType'==_0x5894d8['data']['key']&&_0x5894d8['data']['newValue']&&_0x5894d8['data']['oldValue'])return _0x47913a;_0x5894d8=_0x5894d8['next'];}return{'type':'format','content':o(_0x4312d9,'*Set\x20format:*\x20%0',o(_0x4312d9,'ELEMENT_'+_0x3c486d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5f4782=this['editor'],_0x2f595b=_0x5f4782['locale'];_0x5f4782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cde9b=>{if('formatBlock'!=_0x5cde9b['type'])return;const {data:_0x4a5c0d}=_0x5cde9b;if(!_0x4a5c0d)return;let _0x461614,_0x3c62ec;switch(_0x4a5c0d['commandName']){case'listStyle':_0x461614='*Change\x20to:*\x20%0',_0x3c62ec={'type':'format','content':o(_0x2f595b,_0x461614,o(_0x2f595b,this['_getTranslationKeyForListStyle'](_0x4a5c0d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x461614=_0x4a5c0d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c62ec={'type':'format','content':o(_0x2f595b,_0x461614)};break;case'listStart':_0x461614='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c62ec={'type':'format','content':o(_0x2f595b,_0x461614,_0x4a5c0d['commandParams'][0x0]['startIndex'])};}return _0x3c62ec;});}['_getTranslationKeyForListStyle'](_0x730f0){return'ELEMENT_'+function(_0x512737){if(Se['includes'](_0x512737))return'bulleted';if(_e['includes'](_0x512737))return'numbered';return null;}(_0x730f0)['toUpperCase']()+'_LIST_'+_0x730f0['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x56605c{static get['requires'](){return[_0x4eb41f];}['init'](){const _0x4ac281=this['editor'],_0x4f0270=_0x4ac281['plugins']['get']('TrackChangesEditing'),_0x23d077=_0x4ac281['commands']['get']('enter');_0x4f0270['enableCommand']('enter',()=>{_0x4ac281['model']['change'](_0x25171f=>{const _0x1a04f0=_0x4ac281['model']['document']['selection'],_0x180afe=_0x1a04f0['getFirstPosition'](),_0xf842aa=_0x14359b['fromRange'](_0x1a04f0['getFirstRange']());if(_0x23d077['enterBlock'](_0x25171f)){const _0x3e42cb=_0x4ac281['model']['createPositionAt'](_0x180afe['parent']['nextSibling'],0x0),_0x3ea750=_0x25171f['createRange'](_0x180afe,_0x3e42cb);_0x4f0270['markInsertion'](_0x3ea750);}else _0x25171f['setSelection'](_0x25171f['createRange'](_0xf842aa['end']));_0xf842aa['detach'](),_0x23d077['fire']('afterExecute',{'writer':_0x25171f});});}),_0x4ac281['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4ac281,'split'),{'priority':'high'}),_0x4ac281['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2c29fd,_0x22ae22,_0x5ee1bc)=>{const _0x15fb3d=_0x5ee1bc['mapper']['markerNameToElements'](_0x22ae22['markerName']);if(_0x15fb3d){for(const _0x59cd9a of _0x15fb3d)_0x59cd9a['hasClass']('ck-suggestion-marker-split')&&(_0x5ee1bc['mapper']['unbindElementFromMarkerName'](_0x59cd9a,_0x22ae22['markerName']),_0x5ee1bc['writer']['remove'](_0x59cd9a));}},{'priority':'high'}),_0x4ac281['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x729b91,_0x53b02a,_0x1e7950)=>{_0x1e7950['options']['showSuggestionHighlights']&&Ne(_0x4ac281,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x729b91,_0x53b02a,_0x1e7950);},{'priority':'high'});}}class Y extends _0x56605c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5b0aaf=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b0aaf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5b0aaf['enableCommand']('findNext'),_0x5b0aaf['enableCommand']('findPrevious'),_0x5b0aaf['enableCommand']('replace'),_0x5b0aaf['enableCommand']('replaceAll');}['handleFindCommand'](_0x188a6b,_0x34c41b,_0x44e379={}){const _0x5274c8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x188a6b(_0x17c35c=>{let _0x1ccd99=('string'==typeof _0x34c41b?_0x5274c8['findByTextCallback'](_0x34c41b,_0x44e379):_0x34c41b)(_0x17c35c);Array['isArray'](_0x1ccd99)&&(_0x1ccd99={'results':_0x1ccd99,'searchText':'string'==typeof _0x34c41b?_0x34c41b:''});const _0x1b25e4=_0x1ccd99['results']['filter'](_0x1b7428=>!0x1===this['_isInDeletionRange'](_0x1b7428,_0x17c35c['item']));return{..._0x1ccd99,'results':_0x1b25e4};},_0x44e379);}['_isInDeletionRange'](_0x5f0999,_0x1a7c30){const _0x681781=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a7c30,_0x5f0999['start']),this['editor']['model']['createPositionAt'](_0x1a7c30,_0x5f0999['end']));for(const _0xbb4705 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x681781['getIntersection'](_0xbb4705['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 _0x56605c{['afterInit'](){const _0x4cc474=this['editor']['locale'],_0x5a1143=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x46a097,commandName:_0x60f5bd}of ro)this['editor']['plugins']['has'](_0x46a097)&&(_0x5a1143['enableDefaultAttributesIntegration'](_0x60f5bd),_0x5a1143['registerInlineAttribute'](_0x60f5bd));_0x5a1143['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4cc474,'FORMAT_FONT_SIZE')),_0x5a1143['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4cc474,'FORMAT_FONT_FAMILY')),_0x5a1143['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4cc474,'FORMAT_FONT_COLOR')),_0x5a1143['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4cc474,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x835435=this['editor'],_0x15b247=_0x835435['locale'];_0x835435['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222dab=>{const _0x17c9a4=_0x15b247['t'];if('formatInline'!=_0x222dab['type'])return;const {data:_0x4c9eeb}=_0x222dab;if(null!=_0x4c9eeb){if('fontSize'==_0x4c9eeb['commandName']){const _0x4a7c7f=_0x4c9eeb['commandParams'][0x0]['value'];if(_0x4a7c7f){const _0x234c30=_0x17c9a4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5cae20=>_0x5cae20['model']==_0x4a7c7f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x15b247,'*Set\x20font\x20size:*\x20%0',_0x234c30)};}return{'type':'format','content':o(_0x15b247,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c9eeb['commandName']){const _0x300740=_0x4c9eeb['commandParams'][0x0]['value'];return _0x300740?{'type':'format','content':o(_0x15b247,'*Set\x20font\x20family:*\x20%0',_0x300740)}:{'type':'format','content':o(_0x15b247,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c9eeb['commandName']){const _0x194a78=_0x4c9eeb['commandParams'][0x0]['value'];if(_0x194a78){const _0x5ca849=_0xe5ed9a(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa9e5f0=>_0xa9e5f0['model']==_0x194a78);let _0x236cd4=_0x194a78,_0x5cef1f='';return _0x5ca849&&(_0x236cd4=_0x5ca849['label'],_0x5cef1f=_0x17c9a4(_0x236cd4)['toLowerCase']()),{'type':'format','content':o(_0x15b247,'*Set\x20font\x20color:*\x20%0',_0x5cef1f)['trim'](),'color':{'value':_0x194a78,'title':_0x5cef1f||_0x236cd4}};}return{'type':'format','content':o(_0x15b247,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c9eeb['commandName']){const _0x23c199=_0x4c9eeb['commandParams'][0x0]['value'];if(_0x23c199){const _0x10f667=_0xe5ed9a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x45d0e5=>_0x45d0e5['model']==_0x23c199);let _0x2ae20f=_0x23c199,_0x172d1f='';return _0x10f667&&(_0x2ae20f=_0x10f667['label'],_0x172d1f=_0x17c9a4(_0x2ae20f)['toLowerCase']()),{'type':'format','content':o(_0x15b247,'*Set\x20font\x20background\x20color:*\x20%0',_0x172d1f)['trim'](),'color':{'value':_0x23c199,'title':_0x172d1f||_0x2ae20f}};}return{'type':'format','content':o(_0x15b247,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x56605c{['afterInit'](){const _0x119c03=this['editor'],_0x44b2c8=_0x119c03['plugins']['get']('TrackChangesEditing'),_0x5a9608=_0x119c03['commands']['get']('copyFormat'),_0x1032d5=_0x119c03['commands']['get']('pasteFormat');_0x5a9608&&_0x1032d5&&(_0x44b2c8['enableDefaultAttributesIntegration']('pasteFormat'),_0x44b2c8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x26c51d=this['editor'],_0x9f74b1=_0x26c51d['locale'];_0x26c51d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b5a4c=>{if('formatBlock'!=_0x1b5a4c['type']&&'formatInline'!=_0x1b5a4c['type'])return;const {data:_0x48db5f}=_0x1b5a4c;if(_0x48db5f&&'pasteFormat'===_0x48db5f['commandName']){const _0x3cc994=[],_0x2a8889=_0x48db5f['commandParams'][0x0];for(const [_0x512596,_0x5ef664]of Object['entries'](_0x2a8889))_0x3cc994['push'](so(_0x26c51d,_0x512596,_0x5ef664));return _0x3cc994['length']?{'type':'format','content':o(_0x9f74b1,'*Set\x20format\x20to:*\x20%0',_0x3cc994['join'](',\x20'))}:{'type':'format','content':o(_0x9f74b1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2b265b,_0x44dbaa,_0x53a588){const _0x5a23ad=_0x2b265b['locale']['t'],_0x26a356=_0x44dbaa['split'](/(?=[A-Z])/)['join']('\x20'),_0x1aef41=_0x5a23ad(_0x26a356['charAt'](0x0)['toUpperCase']()+_0x26a356['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x53a588)return _0x1aef41;if('fontColor'===_0x44dbaa||'fontBackgroundColor'===_0x44dbaa){const _0x353ff9=_0xe5ed9a(_0x2b265b['config']['get']('fontColor.colors'))['find'](_0x1a1bfc=>_0x1a1bfc['model']==_0x53a588);return _0x1aef41+'\x20('+(_0x353ff9?_0x5a23ad(_0x353ff9['label'])['toLowerCase']():_0x53a588)+')';}if('fontSize'===_0x44dbaa&&isNaN(parseFloat(_0x53a588))){const _0xa8d17b=_0x2b265b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2b265b['config']['get']('fontSize.options'))['find'](_0x1477e9=>_0x1477e9['model']==_0x53a588);return _0x1aef41+'\x20('+(_0xa8d17b?_0x5a23ad(_0xa8d17b['title'])['toLowerCase']():_0x53a588)+')';}return _0x1aef41+'\x20('+_0x53a588+')';}class nt extends _0x56605c{['_headingOptions'];['afterInit'](){const _0x3c383b=this['editor'];if(!_0x3c383b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3c383b['config']['get']('heading.options');const _0x2ea0fd=_0x3c383b['locale'],_0x5f3801=_0x3c383b['plugins']['get']('TrackChangesEditing');_0x5f3801['enableDefaultAttributesIntegration']('heading');for(const _0x705f29 of this['_headingOptions'])'paragraph'!=_0x705f29['model']&&_0x5f3801['descriptionFactory']['registerElementLabel'](_0x705f29['model'],_0x1055ce=>{const _0x4255ec=this['_getHeadingLevel'](_0x705f29['model']);return null!==_0x4255ec?_0x4fcdee(_0x1055ce,_0x4255ec):_0x30c2ea(_0x1055ce,_0x705f29['title']);});function _0x4fcdee(_0x44d6c1,_0x58b709){return o(_0x2ea0fd,'ELEMENT_HEADING',[_0x44d6c1,_0x58b709]);}function _0x30c2ea(_0x28ad87,_0x104ab7){return o(_0x2ea0fd,'ELEMENT_HEADING_CUSTOM',[_0x28ad87,_0x104ab7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x103cf2=this['editor'],_0x33d5f4=_0x103cf2['locale'];function _0x2092e5(_0xdbdfee,_0x1a9022){return o(_0x33d5f4,'ELEMENT_HEADING_CUSTOM',[_0xdbdfee,_0x1a9022]);}_0x103cf2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11a0fd=>{if('formatBlock'!=_0x11a0fd['type'])return;const {data:_0x3be04c}=_0x11a0fd;if(_0x3be04c&&'heading'==_0x3be04c['commandName']){const _0x9be9db=_0x3be04c['commandParams'][0x0]['value'],_0x292145=this['_getHeadingLevel'](_0x9be9db);if(null!==_0x292145)return{'type':'format','content':o(_0x33d5f4,'*Change\x20to:*\x20%0',(_0xde2604=0x1,_0x13a0be=_0x292145,o(_0x33d5f4,'ELEMENT_HEADING',[_0xde2604,_0x13a0be])))};const _0x40791d=this['_headingOptions']['find'](_0xe5e7a=>_0xe5e7a['model']===_0x9be9db)['title'];return{'type':'format','content':o(_0x33d5f4,'*Change\x20to:*\x20%0',_0x2092e5(0x1,_0x40791d))};}var _0xde2604,_0x13a0be;});}['_getHeadingLevel'](_0x23bfb5){const _0x5454ed=_0x23bfb5['match'](/^heading(\d+)/);if(_0x5454ed)return _0x5454ed[0x1];const _0x38ffc6=this['_headingOptions']?.['find'](_0x26de4a=>_0x26de4a['model']==_0x23bfb5);if(_0x38ffc6&&_0x38ffc6['view']){const _0x53c692=_0x38ffc6['view'],_0x464684=(_0x53c692['name']??_0x53c692)['match'](/^h(\d+)/);if(_0x464684)return _0x464684[0x1];}return null;}}class it extends _0x56605c{['afterInit'](){const _0x4ded8a=this['editor'];if(!_0x4ded8a['plugins']['has']('HighlightEditing'))return;const _0x35b1b1=_0x4ded8a['plugins']['get']('TrackChangesEditing'),_0xca68a7=_0x4ded8a['locale'];_0x35b1b1['enableDefaultAttributesIntegration']('highlight'),_0x35b1b1['registerInlineAttribute']('highlight'),_0x35b1b1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xca68a7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x126ba7=this['editor'],_0x2c3a27=_0x126ba7['locale'];_0x126ba7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x234154=>{if('formatInline'!=_0x234154['type'])return;const {data:_0x37d690}=_0x234154;if(_0x37d690&&'highlight'==_0x37d690['commandName']){const _0x5d86d3=_0x2c3a27['t'],_0x313aac=_0x37d690['commandParams'][0x0]['value'];if(_0x313aac){const _0x3af606=_0x126ba7['config']['get']('highlight.options')['find'](_0xa5e93f=>_0xa5e93f['model']==_0x313aac),_0xfce1bd=_0x5d86d3(_0x3af606['title'])['toLowerCase']();return{'type':'format','content':o(_0x2c3a27,'*Set\x20highlight:*\x20%0',_0xfce1bd),'color':{'value':_0x3af606['color'],'title':_0x3af606['title']}};}return{'type':'format','content':o(_0x2c3a27,'*Remove\x20highlight*',o(_0x2c3a27,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x56605c{['afterInit'](){const _0x3acddc=this['editor'];if(!_0x3acddc['plugins']['has']('HorizontalLineEditing'))return;_0x3acddc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2ccd17=_0x3acddc['plugins']['get']('TrackChangesEditing'),_0x2779f1=_0x3acddc['locale'];_0x2ccd17['descriptionFactory']['registerElementLabel']('horizontalLine',_0x48b60d=>o(_0x2779f1,'ELEMENT_HORIZONTAL_LINE',_0x48b60d)),_0x3acddc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5c5b6c,{writer:_0x5746fb,options:_0x27c8e1})=>{if(!_0x27c8e1['showSuggestionHighlights'])return null;const _0x48239c=_0x5746fb['createContainerElement']('div'),_0x4b12c2=_0x5746fb['createEmptyElement']('hr');return _0x5746fb['addClass']('ck-horizontal-line',_0x48239c),_0x5746fb['insert'](_0x5746fb['createPositionAt'](_0x48239c,0x0),_0x4b12c2),_0x48239c;},'converterPriority':'high'});}}class st extends _0x56605c{['afterInit'](){const _0xb4294=this['editor'];if(!_0xb4294['plugins']['has']('HtmlEmbed'))return;const _0x149a88=_0xb4294['plugins']['get']('TrackChangesEditing'),_0x177a42=_0xb4294['locale'];_0x149a88['descriptionFactory']['registerElementLabel']('rawHtml',_0x53d25f=>o(_0x177a42,'ELEMENT_HTML_EMBED',_0x53d25f)),_0x149a88['enableDefaultAttributesIntegration']('htmlEmbed'),_0x149a88['registerBlockAttribute']('value'),_0x149a88['descriptionFactory']['registerDescriptionCallback'](_0x2ac1e8=>{if('attribute'!=_0x2ac1e8['type'])return;const {data:_0x37c1d1}=_0x2ac1e8;if(_0x37c1d1&&'value'==_0x37c1d1['key']&&_0x2ac1e8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d9a50=o(_0x177a42,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x177a42,'*Change\x20%0\x20content*',_0x1d9a50)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x464ffa=this['editor'],_0x455e29=_0x464ffa['locale'];_0x464ffa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251a39=>{if('formatBlock'!=_0x251a39['type'])return;const {data:_0xc08df}=_0x251a39;if(_0xc08df&&'htmlEmbed'==_0xc08df['commandName']){const _0x3109b7=o(_0x455e29,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x455e29,'*Change\x20%0\x20content*',_0x3109b7)};}});}}class ot extends _0x56605c{['afterInit'](){const _0x317f5b=this['editor'];if(!_0x317f5b['plugins']['has']('ImageEditing'))return;const _0x45542b=_0x317f5b['plugins']['get']('TrackChangesEditing'),_0x5716cd=_0x317f5b['plugins']['get']('ImageUtils'),_0x2984f8=_0x317f5b['locale'];_0x45542b['enableCommand']('insertImage'),_0x45542b['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e475b=>o(_0x2984f8,'ELEMENT_IMAGE',_0x5e475b)),_0x45542b['descriptionFactory']['registerElementLabel']('imageInline',_0x3aec64=>o(_0x2984f8,'ELEMENT_INLINE_IMAGE',_0x3aec64)),_0x45542b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2984f8,'ELEMENT_CAPTION')),_0x317f5b['plugins']['has']('ImageUploadEditing')&&_0x45542b['enableCommand']('uploadImage'),_0x317f5b['plugins']['has']('ImageBlockEditing')&&_0x317f5b['plugins']['has']('ImageInlineEditing')&&(_0x45542b['enableCommand']('imageTypeInline',(_0x28302d,_0x2d12d5)=>{const _0x414f00=_0x5716cd['getClosestSelectedImageElement'](_0x317f5b['model']['document']['selection']);_0x317f5b['model']['change'](()=>{_0x45542b['markBlockFormat'](_0x414f00,{'commandName':'imageTypeInline','commandParams':[_0x2d12d5]},[],'convertBlockImageToInline');});}),_0x45542b['enableCommand']('imageTypeBlock',(_0x5af6a6,_0x493327)=>{_0x317f5b['model']['change'](_0x1b8372=>{let _0xee4c70=_0x5716cd['getClosestSelectedImageElement'](_0x317f5b['model']['document']['selection']),_0x494342=_0x1b8372['createRangeOn'](_0xee4c70);const _0x42bdcb=_0x4cfb01['fromPosition'](_0x494342['start'],'toPrevious'),_0x5c742c=_0x4cfb01['fromPosition'](_0x494342['end'],'toNext');_0x45542b['forceDefaultExecution'](()=>_0x5af6a6(_0x493327)),_0xee4c70=_0x5716cd['getClosestSelectedImageElement'](_0x317f5b['model']['document']['selection']),_0x494342=_0x1b8372['createRangeOn'](_0xee4c70);const _0xeb1e25=_0x1b8372['createRange'](_0x42bdcb,_0x5c742c);_0x42bdcb['detach'](),_0x5c742c['detach'](),_0x45542b['markBlockFormat'](_0xee4c70,{'commandName':'imageTypeInline','commandParams':[_0x493327]},[],'convertInlineImageToBlock'),_0xeb1e25['start']['isBefore'](_0x494342['start'])&&_0x45542b['markInsertion'](_0x1b8372['createRange'](_0xeb1e25['start'],_0x494342['start']),'convertInlineImageToBlock'),_0x494342['end']['isBefore'](_0xeb1e25['end'])&&_0x45542b['markInsertion'](_0x1b8372['createRange'](_0x494342['end'],_0xeb1e25['end']),'convertInlineImageToBlock');});}),_0x45542b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x45542b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x45542b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x45542b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x45542b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x45542b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x292bc4])=>{const _0x313f1a=_0x45542b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3bfddb=_0x292bc4['start'],_0x582cce=_0x292bc4['end'];const _0xe15d23=_0x317f5b['model']['schema']['getNearestSelectionRange'](_0x3bfddb,'backward'),_0x364fd6=_0x317f5b['model']['schema']['getNearestSelectionRange'](_0x582cce,'forward');_0xe15d23['isCollapsed']&&(_0x3bfddb=_0xe15d23['start']),_0x364fd6['isCollapsed']&&(_0x582cce=_0x364fd6['end']),_0x313f1a([_0x317f5b['model']['createRange'](_0x3bfddb,_0x582cce)]);}),_0x45542b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x302b64),_0x45542b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x302b64)),_0x317f5b['plugins']['has']('ImageCaptionEditing')&&(_0x45542b['enableCommand']('toggleImageCaption',(_0x2141f1,_0x5545f4)=>{const _0x42ba58=_0x317f5b['plugins']['get']('ImageCaptionUtils');let _0x16817c=_0x5716cd['getClosestSelectedImageElement'](_0x317f5b['model']['document']['selection']),_0x4963ee=_0x42ba58['getCaptionFromImageModelElement'](_0x16817c);_0x317f5b['model']['change'](()=>{if(_0x4963ee)return void _0x45542b['markDeletion'](_0x317f5b['model']['createRangeOn'](_0x4963ee));const _0x420584=_0x5716cd['isBlockImage'](_0x16817c);_0x2141f1(_0x5545f4),_0x16817c=_0x5716cd['getClosestSelectedImageElement'](_0x317f5b['model']['document']['selection']),_0x4963ee=_0x42ba58['getCaptionFromImageModelElement'](_0x16817c),_0x45542b['markInsertion'](_0x317f5b['model']['createRangeOn'](_0x4963ee),_0x420584?null:'imageCaption');});}),_0x45542b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x302b64));const _0x51f12e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41986a(_0x32b3fb,_0x3d5869){const _0x4d64df=_0x51f12e['findIndex'](({type:_0x36214f,subType:_0x392533})=>_0x32b3fb['type']==_0x36214f&&_0x32b3fb['subType']==_0x392533),_0x50316f=_0x51f12e['findIndex'](({type:_0x5a0faa,subType:_0x31bd10})=>_0x3d5869['type']==_0x5a0faa&&_0x3d5869['subType']==_0x31bd10);if(_0x4d64df<0x0||_0x50316f<0x0)return!0x1;const _0x3b816c=_0x32b3fb['getFirstRange'](),_0x26eeba=_0x3d5869['getFirstRange']();if((0x0==_0x4d64df||0x1==_0x4d64df)&&0x2==_0x50316f&&_0x3b816c['isIntersecting'](_0x26eeba))return!0x0;if(0x2==_0x4d64df&&0x3==_0x50316f){const _0x2f9478=_0x45542b['_findSuggestions'](_0x3b816c,'insertion')['filter'](({suggestion:_0x54b8dd,meta:_0x10e833})=>_0x10e833['isOwn']&&'convertInlineImageToBlock'==_0x54b8dd['subType']);if(_0x2f9478['length']>0x1&&_0x26eeba['end']['isEqual'](_0x3b816c['start']))return!0x0;if(0x1==_0x2f9478['length']&&(_0x3b816c['start']['isEqual'](_0x26eeba['end'])||_0x3b816c['end']['isEqual'](_0x26eeba['start'])))return!0x0;}if(0x3==_0x4d64df&&0x3==_0x50316f&&_0x3b816c['start']['isBefore'](_0x26eeba['start'])){const _0x276f12=_0x3b816c['end']['nodeAfter'],_0xd021bf=_0x26eeba['start']['nodeBefore'];return _0x5716cd['isBlockImage'](_0x276f12)&&_0x276f12===_0xd021bf;}return!0x1;}function _0x302b64(_0x57c327,_0x112c0d){return _0x41986a(_0x57c327,_0x112c0d)?[_0x57c327,_0x112c0d]:_0x41986a(_0x112c0d,_0x57c327)?[_0x112c0d,_0x57c327]:null;}_0x317f5b['plugins']['has']('ImageResize')&&(_0x45542b['enableDefaultAttributesIntegration']('resizeImage'),_0x45542b['registerBlockAttribute']('resizedWidth'),_0x45542b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2984f8,'FORMAT_IMAGE_SIZE'))),_0x317f5b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x45542b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45542b['registerBlockAttribute']('alt')),_0x45542b['descriptionFactory']['registerDescriptionCallback'](_0x372f16=>{if(!!_0x51f12e['find'](({type:_0xcb8d8,subType:_0x54adfb})=>_0x372f16['type']==_0xcb8d8&&_0x372f16['subType']==_0x54adfb))return _0x372f16['previous']?{}:void 0x0;}),_0x45542b['descriptionFactory']['registerDescriptionCallback'](_0x59de52=>{if('insertion'==_0x59de52['type']||'deletion'==_0x59de52['type']){const _0xcb619d=_0x59de52['getContainedElement']();if(_0xcb619d&&_0xcb619d['is']('element','caption'))return{'type':'insertion'==_0x59de52['type']?'addObject':'removeObject','element':_0xcb619d,'quantity':0x1};}}),_0x45542b['descriptionFactory']['registerDescriptionCallback'](_0x267db1=>'formatBlock'==_0x267db1['type']&&'convertInlineImageToBlock'==_0x267db1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x267db1['type']&&'convertBlockImageToInline'==_0x267db1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x45542b['descriptionFactory']['registerDescriptionCallback'](_0x346417=>{if('attribute'!=_0x346417['type'])return;const {data:_0x52fe33}=_0x346417;if(!_0x52fe33||'alt'!=_0x52fe33['key'])return;const _0x5ca874=_0x52fe33['newValue'];return _0x5ca874?{'type':'format','content':o(_0x2984f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ca874+'\x22')}:{'type':'format','content':o(_0x2984f8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x724224=this['editor'],_0x1198c5=_0x724224['locale'];_0x724224['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x821ad5=>{if('formatBlock'!=_0x821ad5['type']&&'formatInline'!=_0x821ad5['type'])return;const {data:_0x4ff3a9}=_0x821ad5;if(_0x4ff3a9){if('imageTextAlternative'==_0x4ff3a9['commandName']){const _0x24a405=_0x4ff3a9['commandParams'][0x0]['newValue'];return _0x24a405?{'type':'format','content':o(_0x1198c5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24a405+'\x22')}:{'type':'format','content':o(_0x1198c5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4ff3a9['commandName']){const _0x48f6bf=_0x4ff3a9['commandParams'][0x0]['width'];return _0x48f6bf?{'type':'format','content':o(_0x1198c5,'*Set\x20image\x20width:*\x20%0',_0x48f6bf)}:{'type':'format','content':o(_0x1198c5,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x56605c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x419769=this['editor']['locale'],_0x1de051=this['editor']['plugins']['get']('TrackChangesEditing');_0x1de051['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1de051['registerBlockAttribute']('src'),_0x1de051['descriptionFactory']['registerDescriptionCallback'](_0x43e2c4=>{if('attribute'!=_0x43e2c4['type'])return;const {data:_0xd2a73}=_0x43e2c4;return _0xd2a73&&'src'==_0xd2a73['key']?_0xd2a73['newValue']&&_0xd2a73['oldValue']?{'type':'format','content':o(_0x419769,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3984ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x3984ee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3984ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3984ee['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3984ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cbe8b=this['editor'],_0x169e05=_0x1cbe8b['locale'];_0x1cbe8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a206d=>{if('formatBlock'!=_0x3a206d['type']&&'formatInline'!=_0x3a206d['type'])return;const {data:_0x2c5dff}=_0x3a206d;if(!_0x2c5dff||'replaceImageSource'!=_0x2c5dff['commandName'])return;return{'type':'format','content':o(_0x169e05,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x56605c{['afterInit'](){const _0x7eb0f7=this['editor'];if(!_0x7eb0f7['plugins']['has']('ImageStyleEditing'))return;const _0x77df76=_0x7eb0f7['plugins']['get']('TrackChangesEditing'),_0x44e1e2=_0x7eb0f7['plugins']['get']('ImageUtils'),_0x4130ef={};_0x77df76['enableCommand']('imageStyle',(_0x5e0446,_0x2c8074)=>{const _0x286eb1=_0x7eb0f7['plugins']['get']('Users')['me'],_0x3bb6b7=_0x7eb0f7['commands']['get']('imageStyle');let _0x7e2f4d=_0x44e1e2['getClosestSelectedImageElement'](_0x7eb0f7['model']['document']['selection']),_0x4e1159=_0x7eb0f7['model']['createRangeOn'](_0x7e2f4d),_0x5403e2=_0x3bb6b7['value'];if(_0x5403e2==_0x2c8074['value'])return;const _0x4dd048={'commandName':'imageStyle','commandParams':[_0x2c8074],'formatGroupId':_0xf2c1f9()};_0x7eb0f7['model']['change'](()=>{if(_0x77df76['getSuggestions']()['filter'](_0x1818ea=>_0x1818ea['isInContent']&&_0x286eb1==_0x1818ea['author']&&('formatBlock'==_0x1818ea['type']||'formatInline'==_0x1818ea['type'])&&('imageStylePreApply'==_0x1818ea['subType']||'imageStylePostApply'==_0x1818ea['subType'])&&_0x1818ea['getFirstRange']()['isEqual'](_0x4e1159))['forEach'](_0xf050f3=>_0x77df76['discardSuggestion'](_0xf050f3['head'])),_0x7e2f4d=_0x44e1e2['getClosestSelectedImageElement'](_0x7eb0f7['model']['document']['selection']),_0x4e1159=_0x7eb0f7['model']['createRangeOn'](_0x7e2f4d),_0x3bb6b7['refresh'](),_0x7eb0f7['commands']['get']('imageTypeInline')['refresh'](),_0x7eb0f7['commands']['get']('imageTypeBlock')['refresh'](),_0x5403e2=_0x3bb6b7['value'],_0x5403e2!=_0x2c8074['value'])return _0x44e1e2['isInlineImage'](_0x7e2f4d)&&_0x3bb6b7['shouldConvertImageType'](_0x2c8074['value'],_0x7e2f4d)?(_0x5e0446({..._0x2c8074,'setImageSizes':!0x1}),_0x7e2f4d=_0x44e1e2['getClosestSelectedImageElement'](_0x7eb0f7['model']['document']['selection']),void _0x77df76['markBlockFormat'](_0x7e2f4d,{..._0x4dd048,'commandReversedParams':[{'value':_0x5403e2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44e1e2['isBlockImage'](_0x7e2f4d)?_0x77df76['markBlockFormat'](_0x7e2f4d,_0x4dd048,[],'imageStylePostApply'):_0x77df76['markInlineFormat'](_0x4e1159,_0x4dd048,'imageStylePostApply'));});});for(const _0x581a33 of _0x7eb0f7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4130ef[_0x581a33['name']]=_0x581a33['title']['toLowerCase']();_0x77df76['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x77df76['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x77df76['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x77df76['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1b024f])=>{_0x44e1e2['setImageNaturalSizeAttributes'](_0x1b024f['getContainedElement']());}),_0x77df76['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x46dbee,_0x37aea9)=>{_0x77df76['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x46dbee,{'commandName':_0x37aea9['commandName'],'commandParams':_0x37aea9['commandReversedParams']});}),_0x77df76['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bad0d,_0x54675f){if(_0x1a1074(_0x1bad0d,_0x54675f))return[_0x1bad0d,_0x54675f];if(_0x1a1074(_0x54675f,_0x1bad0d))return[_0x54675f,_0x1bad0d];return null;});const _0x5134ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a1074(_0x5c79cf,_0x1cbd79){const _0x4eb7ed=_0x5134ca['findIndex'](({type:_0xa60716,subType:_0x5d2f34})=>_0x5c79cf['type']==_0xa60716&&_0x5c79cf['subType']==_0x5d2f34),_0x1f832d=_0x5134ca['findIndex'](({type:_0x3fa1a7,subType:_0x12d50})=>_0x1cbd79['type']==_0x3fa1a7&&_0x1cbd79['subType']==_0x12d50);if(_0x4eb7ed<0x0||_0x1f832d<0x0)return!0x1;const _0x222f68=_0x5c79cf['getFirstRange'](),_0x16ef96=_0x1cbd79['getFirstRange']();if((0x0==_0x4eb7ed||0x1==_0x4eb7ed)&&0x2==_0x1f832d&&_0x222f68['isIntersecting'](_0x16ef96))return!0x0;if(0x2==_0x4eb7ed&&0x3==_0x1f832d){const _0x25c832=_0x77df76['_findSuggestions'](_0x222f68,'insertion')['filter'](({suggestion:_0x3780b4,meta:_0x272b37})=>_0x272b37['isOwn']&&'convertInlineImageToBlock'==_0x3780b4['subType']);if(_0x25c832['length']>0x1&&_0x16ef96['end']['isEqual'](_0x222f68['start']))return!0x0;if(0x1==_0x25c832['length']&&(_0x222f68['start']['isEqual'](_0x16ef96['end'])||_0x222f68['end']['isEqual'](_0x16ef96['start'])))return!0x0;}if(0x3==_0x4eb7ed&&0x3==_0x1f832d&&_0x222f68['start']['isBefore'](_0x16ef96['start'])){const _0x2c7e61=_0x222f68['end']['nodeAfter'],_0x1bdc14=_0x16ef96['start']['nodeBefore'];return _0x44e1e2['isBlockImage'](_0x2c7e61)&&_0x2c7e61===_0x1bdc14;}return!0x1;}_0x7eb0f7['model']['document']['registerPostFixer'](()=>{let _0x18f779=!0x1;const _0x32e9c7=Array['from'](_0x7eb0f7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53b715,data:_0x12ff55}of _0x32e9c7){const {group:_0x52b8d7,type:_0x2326db,subType:_0x16b38e,id:_0x4c8c96}=_0x77df76['_splitMarkerName'](_0x53b715);if('suggestion'==_0x52b8d7&&_0x77df76['hasSuggestion'](_0x4c8c96)){if('formatBlock'==_0x2326db&&('imageStylePreApply'==_0x16b38e||'imageStylePostApply'==_0x16b38e)){const _0x21d83b=_0x77df76['getSuggestion'](_0x4c8c96);if(_0x12ff55['newRange']){const _0x2036ec=_0x21d83b['getFirstRange']()['getContainedElement']();if(_0x44e1e2['isBlockImage'](_0x2036ec))continue;_0x77df76['discardSuggestion'](_0x21d83b),_0x18f779=!0x0;}}if('insertion'==_0x2326db&&'imageCaption'==_0x16b38e&&!_0x12ff55['newRange']){const _0x589346=_0x77df76['getSuggestion'](_0x4c8c96);_0x589346['next']&&_0x589346['next']['isInContent']&&(_0x77df76['discardSuggestion'](_0x589346['next']),_0x18f779=!0x0);}}}return _0x18f779;}),this['_registerLegacyDescription'](_0x4130ef);}['_registerLegacyDescription'](_0x433d14){const _0x55d637=this['editor'],_0x311100=_0x55d637['locale'];_0x55d637['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c5fb=>{if('formatBlock'!=_0x25c5fb['type']&&'formatInline'!=_0x25c5fb['type'])return;const {data:_0x1a430d}=_0x25c5fb;if(!_0x1a430d||'imageStyle'!=_0x1a430d['commandName'])return;const _0x2b75e2=_0x1a430d['commandParams'][0x0]['value'];return _0x570bc6('side'===_0x2b75e2?o(_0x311100,'FORMAT_SIDE_IMAGE'):_0x433d14[_0x2b75e2]||_0x2b75e2);function _0x570bc6(_0x5e9852){return{'type':'format','content':o(_0x311100,'*Format:*\x20%0',_0x5e9852)};}});}}class ct extends _0x56605c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x12a1b9){super(_0x12a1b9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5cf0c5=this['editor'],_0x4a23ed=_0x5cf0c5['commands']['get']('importWord'),_0x1d7ca0=_0x5cf0c5['commands']['get']('trackChanges');_0x4a23ed&&(_0x4a23ed['on']('execute',(_0x179e4a,[,_0x224a90])=>{this['_trackChangesValueDuringImport']=_0x1d7ca0['value'],_0x224a90['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4a23ed,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4a23ed,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d7ca0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5cf0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4db59a,_0x47033c){const {suggestions:_0x3d23b0}=_0x47033c,_0x482345=this['editor']['commands']['get']('trackChanges'),_0x5a6fd4=_0x482345['value'];this['_trackChangesValueDuringImport']!==_0x5a6fd4&&(_0x482345['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d23b0&&_0x3d23b0['forEach'](({id:_0x1f5463,type:_0x3d2aaa,author:_0x5985d1,created_at:_0x393fd6})=>{const _0x396b2c={'id':_0x1f5463,'type':_0x3d2aaa,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5985d1,'createdAt':_0x393fd6?new Date(_0x393fd6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x396b2c);});}}class ut extends _0x56605c{['afterInit'](){const _0x270281=this['editor'],_0x2c6c31=_0x270281['plugins']['get']('TrackChangesEditing');if(_0x270281['plugins']['has']('IndentEditing')&&(_0x2c6c31['enableCommand']('indent'),_0x2c6c31['enableCommand']('outdent')),_0x270281['plugins']['has']('IndentBlock')){for(const _0x3fd9ac of['indentBlock','outdentBlock'])_0x2c6c31['enableDefaultAttributesIntegration'](_0x3fd9ac);}const _0x28c4b0=_0x270281['locale'];_0x2c6c31['registerBlockAttribute']('blockIndent'),_0x2c6c31['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x28c4b0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2808fa=this['editor'],_0x1eaed0=_0x2808fa['locale'],_0x594302=_0x2808fa['plugins']['get']('TrackChangesEditing');_0x594302['descriptionFactory']['registerDescriptionCallback'](_0x2e048d=>{if('formatBlock'!=_0x2e048d['type'])return;const {data:_0x5951d9}=_0x2e048d;if(!_0x5951d9)return;if('indentBlock'!=_0x5951d9['commandName']&&'outdentBlock'!=_0x5951d9['commandName'])return;const _0x20c139=_0x2e048d['getItems']()[0x0],_0x32c446=_0x594302['descriptionFactory']['getItemLabel'](_0x20c139);return'indentBlock'==_0x5951d9['commandName']?{'type':'format','content':o(_0x1eaed0,'*Indent:*\x20%0',_0x32c446)}:'outdentBlock'==_0x5951d9['commandName']?{'type':'format','content':o(_0x1eaed0,'*Outdent:*\x20%0',_0x32c446)}:void 0x0;});}}class ft extends _0x56605c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x56605c{['afterInit'](){const _0x3752f8=this['editor'];if(!_0x3752f8['plugins']['has']('LinkEditing'))return;const _0x1d48f6=_0x3752f8['plugins']['get']('TrackChangesEditing'),_0x3fba37=_0x3752f8['commands']['get']('link');_0x1d48f6['enableDefaultAttributesIntegration']('link'),_0x1d48f6['enableDefaultAttributesIntegration']('unlink'),_0x1d48f6['registerInlineAttribute']('linkHref');for(const _0x3cb829 of _0x3fba37['manualDecorators'])_0x1d48f6['registerInlineAttribute'](_0x3cb829['id']),_0x1d48f6['descriptionFactory']['registerAttributeLabel'](_0x3cb829['id'],'link\x20('+_0x3cb829['label']['toLowerCase']()+')');_0x1d48f6['descriptionFactory']['registerDescriptionCallback'](_0x2a0ecb=>{if('attribute'!=_0x2a0ecb['type'])return;const {data:_0x9f9a74}=_0x2a0ecb;if(!_0x9f9a74||'linkHref'!=_0x9f9a74['key'])return;const _0x409b6e=_0x9f9a74['newValue'],_0xa214c3=_0x3752f8['locale'];return{'type':'format','content':null==_0x409b6e?o(_0xa214c3,'*Remove\x20link*'):o(_0xa214c3,'*Set\x20link:*\x20%0','\x22'+_0x409b6e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ea0a9=this['editor'],_0x1a29d5=_0x8ea0a9['locale'];_0x8ea0a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10b374=>{if('formatInline'!=_0x10b374['type'])return;const {data:_0x55160d}=_0x10b374;if(_0x55160d){if('link'==_0x55160d['commandName']){const _0x49eba3=_0x55160d['commandParams'][0x0];return{'type':'format','content':o(_0x1a29d5,'*Set\x20link:*\x20%0','\x22'+_0x49eba3+'\x22')};}return'unlink'==_0x55160d['commandName']?{'type':'format','content':o(_0x1a29d5,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x56605c{['afterInit'](){const _0x55810d=this['editor'],_0x2698c8=_0x55810d['locale'];if(!_0x55810d['plugins']['has']('LegacyListEditing'))return;const _0x1480ba=_0x55810d['plugins']['get']('TrackChangesEditing'),_0x4d9ff4=_0x55810d['plugins']['has']('LegacyTodoListEditing');function _0x1bcaa2(_0x102082){return()=>{const _0x47844c=_0x55810d['model']['document']['selection'],_0x393dd3=_0x55810d['commands']['get'](_0x102082);if(_0x393dd3['value'])return void _0x55810d['execute']('paragraph',{});const _0x33aad4=_0x102082['slice'](0x0,-0x4),_0x5d6892=function(_0x2a0e71,_0x18d6eb,_0x2c2731){let _0x2f0c37=Array['from'](_0x2a0e71)['filter'](_0x41b805=>function(_0x3bf1e7,_0x28a24a){return _0x28a24a['checkChild'](_0x3bf1e7['parent'],'listItem')&&!_0x28a24a['isObject'](_0x3bf1e7);}(_0x41b805,_0x2c2731));_0x2f0c37=_0x2f0c37['filter'](_0x162ddb=>!_0x162ddb['is']('element','listItem')||_0x162ddb['getAttribute']('listType')!=_0x18d6eb);const _0x2b05f9=new Set();for(const _0x3378b3 of _0x2f0c37)_0x3378b3['is']('element','listItem')?_0x2b05f9['add'](Le(_0x3378b3)):_0x2b05f9['add'](_0x3378b3);return Array['from'](_0x2b05f9);}(_0x47844c['getSelectedBlocks'](),_0x33aad4,_0x55810d['model']['schema']);_0x55810d['model']['change'](()=>{for(const _0x2d0ece of _0x5d6892)_0x1480ba['markBlockFormat'](_0x2d0ece,{'commandName':_0x102082,'commandParams':[{'forceValue':!_0x393dd3['value']}],'formatGroupId':'blockName'},Ee(_0x2d0ece));});};}function _0x429b9d(_0x17b73a){return()=>{const _0xc0fac8=function(_0xba277){let _0x251737=Array['from'](_0xba277);const _0x408998=_0x251737['findIndex'](_0x37dec9=>'listItem'!=_0x37dec9['name']);return _0x408998>-0x1&&(_0x251737=_0x251737['slice'](0x0,_0x408998)),_0x251737;}(_0x55810d['model']['document']['selection']['getSelectedBlocks']()),_0x41151c=_0x55810d['model']['createRange'](_0x55810d['model']['createPositionAt'](_0xc0fac8[0x0],'before'),_0x55810d['model']['createPositionAt'](_0xc0fac8[_0xc0fac8['length']-0x1],'end'));_0x55810d['model']['change'](()=>{_0x1480ba['markBlockFormat'](_0x41151c,{'commandName':_0x17b73a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x51afa2){const _0x454567=new Set();for(const _0x4447f9 of _0x51afa2){let _0xcf7ff8=_0x4447f9['nextSibling'];for(;_0xcf7ff8&&_0xcf7ff8['getAttribute']('listIndent')>_0x4447f9['getAttribute']('listIndent');)_0x454567['add'](_0xcf7ff8),_0xcf7ff8=_0xcf7ff8['nextSibling'];}return Array['from'](_0x454567);}(_0xc0fac8));});};}_0x1480ba['enableCommand']('numberedList',_0x1bcaa2('numberedList')),_0x1480ba['enableCommand']('bulletedList',_0x1bcaa2('bulletedList')),_0x4d9ff4&&_0x1480ba['enableCommand']('todoList',_0x1bcaa2('todoList')),_0x1480ba['enableCommand']('indentList',_0x429b9d('indentList')),_0x1480ba['enableCommand']('outdentList',_0x429b9d('outdentList')),_0x4d9ff4&&_0x1480ba['enableCommand']('checkTodoList',()=>{const _0x3f2886=_0x55810d['commands']['get']('checkTodoList'),_0x9b3db=Array['from'](_0x3f2886['_selectedElements']);_0x9b3db['filter'](_0x2eac8c=>_0x2eac8c['getAttribute']('todoListChecked')!=_0x3f2886['value']),_0x55810d['model']['change'](()=>{for(const _0x321010 of _0x9b3db)_0x1480ba['markBlockFormat'](_0x321010,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3f2886['value']}]});});}),_0x1480ba['descriptionFactory']['registerElementLabel']('listItem',_0x24bc5d=>o(_0x2698c8,'ELEMENT_LIST_ITEM',_0x24bc5d)),_0x1480ba['descriptionFactory']['registerDescriptionCallback'](_0x431b9d=>{if('formatBlock'!=_0x431b9d['type']&&'formatInline'!=_0x431b9d['type'])return;const {data:_0x1d02a6}=_0x431b9d;if(_0x1d02a6){if('numberedList'==_0x1d02a6['commandName']||'bulletedList'==_0x1d02a6['commandName']||'todoList'==_0x1d02a6['commandName'])switch(_0x1d02a6['commandName']['replace']('List','')){case'bulleted':return _0x46f8e9(o(_0x2698c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46f8e9(o(_0x2698c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46f8e9(o(_0x2698c8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1d02a6['commandName'])return{'type':'format','content':o(_0x2698c8,'*Indent:*\x20%0',o(_0x2698c8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1d02a6['commandName'])return{'type':'format','content':o(_0x2698c8,'*Outdent:*\x20%0',o(_0x2698c8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1d02a6['commandName'])return _0x1d02a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2698c8,'*Check\x20item*')}:{'type':'format','content':o(_0x2698c8,'*Uncheck\x20item*')};}function _0x46f8e9(_0x73e4c3){return{'type':'format','content':o(_0x2698c8,'*Change\x20to:*\x20%0',_0x73e4c3)};}});}}function Le(_0x36db37){const _0x5e4b9f=_0x36db37['getAttribute']('listIndent');if(0x0==_0x5e4b9f)return _0x36db37;let _0x3efb60=_0x36db37;for(;_0x36db37['previousSibling']&&_0x36db37['previousSibling']['is']('element','listItem');){const _0x3bd5da=_0x36db37['previousSibling']['getAttribute']('listIndent');if(_0x3bd5da==_0x5e4b9f)_0x3efb60=_0x36db37['previousSibling'];else{if(_0x3bd5da<_0x5e4b9f)break;}_0x36db37=_0x36db37['previousSibling'];}return _0x3efb60;}function Ee(_0x1853da){const _0x586263=[];if(_0x1853da['is']('element','listItem')&&_0x1853da['getAttribute']('listIndent')>0x0){let _0x590bff=_0x1853da['nextSibling'];for(;_0x590bff&&'listItem'==_0x590bff['name']&&_0x590bff['getAttribute']('listIndent')==_0x1853da['getAttribute']('listIndent');)_0x586263['push'](_0x590bff),_0x590bff=_0x590bff['nextSibling'];}return _0x586263;}class Q extends _0x56605c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4efed3=this['editor']['config']['get']('list.properties'),_0x21d9dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4efed3['styles']&&_0x21d9dd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4efed3['reversed']&&_0x21d9dd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4efed3['startIndex']&&_0x21d9dd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x21d9dd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x473604,_0x373582={}){const _0x4b248e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x389706=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4b248e['markMultiRangeBlockFormat'](_0x389706,{'commandName':'listStyle','commandParams':[{'type':_0x373582['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x80a0b8,_0x598b72={}){const _0xea50fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57f4f5=this['_getSuggestionBlocks'](_0x3e2c86=>_0x3e2c86['is']('element','listItem')&&'numbered'===_0x3e2c86['getAttribute']('listType'));if(_0x57f4f5['length']<0x1)return;const _0x2f06b6=_0x57f4f5['map'](_0x32af92=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32af92,'before'),this['editor']['model']['createPositionAt'](_0x32af92,0x0)));this['editor']['model']['change'](()=>{_0xea50fb['markMultiRangeBlockFormat'](_0x2f06b6,{'commandName':'listReversed','commandParams':[{'reversed':_0x598b72['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x255cba,_0x1f66f2={}){const _0x3e82fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a0874=this['_getSuggestionBlocks'](_0x19a0e2=>_0x19a0e2['is']('element','listItem')&&'numbered'===_0x19a0e2['getAttribute']('listType'));if(_0x4a0874['length']<0x1)return;const _0x19bec2=_0x4a0874['map'](_0x56cdeb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x56cdeb,'before'),this['editor']['model']['createPositionAt'](_0x56cdeb,0x0)));this['editor']['model']['change'](()=>{_0x3e82fd['markMultiRangeBlockFormat'](_0x19bec2,{'commandName':'listStart','commandParams':[{'startIndex':_0x1f66f2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x400437){if('formatBlock'!=_0x400437['type']&&'formatInline'!=_0x400437['type'])return;const _0x3555b9=this['editor']['locale'],{data:_0x16bba8}=_0x400437;if(!_0x16bba8)return;let _0x3c2330,_0xb79b2d;switch(_0x16bba8['commandName']){case'listStyle':_0x3c2330='*Change\x20to:*\x20%0',_0xb79b2d={'type':'format','content':o(_0x3555b9,_0x3c2330,o(_0x3555b9,this['_getTranslationKeyForListStyle'](_0x16bba8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c2330=_0x16bba8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb79b2d={'type':'format','content':o(_0x3555b9,_0x3c2330)};break;case'listStart':_0x3c2330='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb79b2d={'type':'format','content':o(_0x3555b9,_0x3c2330,_0x16bba8['commandParams'][0x0]['startIndex'])};}return _0xb79b2d;}['_getSuggestionBlocksForListStyle'](){const _0x3d841f=this['editor']['plugins']['get']('LegacyListUtils');let _0x440c7c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x440c7c[0x0]?.['is']('element','listItem')&&_0x440c7c['unshift'](..._0x3d841f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x440c7c[_0x440c7c['length']-0x1]?.['is']('element','listItem')&&_0x440c7c['push'](..._0x3d841f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x440c7c=[...new Set(_0x440c7c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x440c7c=_0x440c7c['filter'](_0x268297=>_0x268297['is']('element','listItem'))),_0x440c7c;}['_getSuggestionBlocks'](_0x1ae605){const _0x5a1093=this['editor']['plugins']['get']('LegacyListUtils');let _0xd48fae=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1ae605)['map'](_0x12490e=>{const _0x13ad2c=this['editor']['model']['createPositionAt'](_0x12490e,0x0);return[..._0x5a1093['getSiblingNodes'](_0x13ad2c,'backward'),..._0x5a1093['getSiblingNodes'](_0x13ad2c,'forward')];})['flat']();return _0xd48fae=[...new Set(_0xd48fae)],_0xd48fae;}['_getTranslationKeyForListStyle'](_0x512711){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x512711)||'default')['toUpperCase']()+'_LIST_'+_0x512711['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x56605c{['afterInit'](){const _0x52c9bc=this['editor'];if(!_0x52c9bc['plugins']['has']('MediaEmbedEditing'))return;const _0x199a45=_0x52c9bc['plugins']['get']('TrackChangesEditing'),_0x28aecf=_0x52c9bc['locale'];_0x199a45['enableCommand']('mediaEmbed'),_0x199a45['descriptionFactory']['registerElementLabel']('media',_0x185cd1=>o(_0x28aecf,'ELEMENT_MEDIA',_0x185cd1)),_0x52c9bc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x153bff,{writer:_0x30cde3,options:_0x1ed89e})=>{if(_0x1ed89e['showSuggestionHighlights'])return _0x30cde3['createEmptyElement']('div');},'converterPriority':'high'}),_0x52c9bc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x35d646,_0x16f588,_0x2417a3)=>{_0x2417a3['options']['showSuggestionHighlights']&&_0x35d646['stop']();},{'priority':'high'});}}class mt extends _0x56605c{['afterInit'](){const _0x3a4d67=this['editor'];_0x3a4d67['plugins']['has']('MentionEditing')&&_0x3a4d67['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x56605c{['afterInit'](){const _0x48e843=this['editor'];if(!_0x48e843['plugins']['has']('MergeFieldsEditing'))return;_0x48e843['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x48e843['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1f17c8=_0x48e843['plugins']['get']('TrackChangesEditing'),_0x5e5230=_0x48e843['locale'];_0x1f17c8['descriptionFactory']['registerElementLabel']('mergeField',_0x1904b6=>o(_0x5e5230,'ELEMENT_MERGE_FIELD',_0x1904b6)),_0x1f17c8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bc8e0=>o(_0x5e5230,'ELEMENT_MERGE_FIELD',_0x2bc8e0)),_0x1f17c8['descriptionFactory']['registerDescriptionCallback'](_0x4cb806=>{if('insertion'!=_0x4cb806['type']&&'deletion'!=_0x4cb806['type'])return;const _0x43192a=_0x4cb806['getContainedElement']();if(null==_0x43192a)return;if(!_0x43192a['is']('element','mergeField')&&!_0x43192a['is']('element','mergeFieldBlock'))return;const _0x347f92=_0x48e843['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x43192a['getAttribute']('id'));return'insertion'==_0x4cb806['type']?{'type':'insertion','content':o(_0x5e5230,'*Insert:*\x20%0','\x22'+_0x347f92+'\x22\x20'+o(_0x5e5230,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5e5230,'*Remove:*\x20%0','\x22'+_0x347f92+'\x22\x20'+o(_0x5e5230,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x56605c{['afterInit'](){const _0x575c2d=this['editor'],_0x43e9bf=_0x575c2d['plugins']['get']('TrackChangesEditing');_0x575c2d['plugins']['has']('MultiLevelList')&&(_0x43e9bf['enableDefaultAttributesIntegration']('multiLevelList'),_0x43e9bf['registerBlockAttribute']('listMarkerStyle'),_0x43e9bf['descriptionFactory']['registerDescriptionCallback'](_0x2c9f6d=>this['handleDescriptions'](_0x2c9f6d)));}['handleDescriptions'](_0x24117a){const _0x54bd9f=this['editor']['locale'],{data:_0x4c68f2}=_0x24117a,_0xc0331f={'type':'format','content':''};if(_0x4c68f2&&'listMarkerStyle'==_0x4c68f2['key']){if(!_0x4c68f2['oldValue'])return{'type':'format','content':o(_0x54bd9f,'*Set\x20format:*\x20%0',o(_0x54bd9f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c68f2['newValue']+')'};if(!_0x4c68f2['newValue']){let _0x1e545b=_0x24117a['head'];for(;_0x1e545b;){if(_0x1e545b['data']&&'listType'==_0x1e545b['data']['key']&&_0x1e545b['data']['newValue'])return _0xc0331f;_0x1e545b=_0x1e545b['next'];}return{'type':'format','content':o(_0x54bd9f,'*Remove\x20format:*\x20%0',o(_0x54bd9f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c68f2['oldValue']+')'};}}}}class kt extends _0x56605c{['afterInit'](){const _0x2ce5e6=this['editor'];if(!_0x2ce5e6['plugins']['has']('PageBreakEditing'))return;_0x2ce5e6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x158438=_0x2ce5e6['plugins']['get']('TrackChangesEditing'),_0x17997d=_0x2ce5e6['locale'];_0x158438['descriptionFactory']['registerElementLabel']('pageBreak',_0x2507ae=>o(_0x17997d,'ELEMENT_PAGE_BREAK',_0x2507ae));}}class bt extends _0x56605c{['afterInit'](){const _0x314508=this['editor'];if(!_0x314508['plugins']['has']('Paragraph'))return;const _0x580663=_0x314508['locale'],_0x55dca6=_0x314508['plugins']['get']('TrackChangesEditing');_0x55dca6['descriptionFactory']['registerElementLabel']('paragraph',_0x5a3fc0=>o(_0x580663,'ELEMENT_PARAGRAPH',_0x5a3fc0)),_0x55dca6['enableDefaultAttributesIntegration']('paragraph'),_0x55dca6['enableCommand']('insertParagraph'),_0x314508['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x314508),{'priority':'highest'}),_0x314508['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f3aea,_0xcad899,_0x476bce)=>{_0x476bce['options']['showSuggestionHighlights']&&nr(_0x314508,{'showActiveMarker':!0x1})(_0x3f3aea,_0xcad899,_0x476bce);},{'priority':'highest'});const _0x7b0b2b=_0x55dca6['descriptionFactory'];_0x7b0b2b['registerDescriptionCallback'](_0x5d50ba=>{if('insertion'!==_0x5d50ba['type'])return;const {start:_0x14e4be,end:_0x4af4ae}=_0x5d50ba['getFirstRange']();if(!_0x14e4be['isTouching'](_0x4af4ae)||!_0x14e4be['nodeAfter'])return;const _0x55046b=_0x314508['model']['schema'],_0x50faef=_0x14e4be['nodeAfter'];return _0x55046b['isBlock'](_0x50faef)&&!_0x55046b['isLimit'](_0x50faef)&&_0x55046b['checkChild'](_0x50faef,'$text')?{'type':'insertion','content':o(_0x580663,'*Insert:*\x20%0',_0x7b0b2b['getItemLabel'](_0x50faef,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14f160=this['editor'],_0x2227b5=_0x14f160['locale'];_0x14f160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314eb1=>{if('formatBlock'!=_0x314eb1['type'])return;const {data:_0x41eb60}=_0x314eb1;return _0x41eb60&&'paragraph'==_0x41eb60['commandName']?{'type':'format','content':o(_0x2227b5,'*Change\x20to:*\x20%0',o(_0x2227b5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5a8f96,{showActiveMarker:_0x37c8b5=!0x0}={}){return(_0x29d5e1,_0x126064,_0x4dee9d)=>{const _0x443e8b=_0x5a8f96['plugins']['get']('TrackChangesEditing'),_0xeb57d6=_0x126064['markerRange']['start'],_0x246ebb=_0x126064['markerRange']['end'],_0x5e321e=_0x5a8f96['model']['schema'];if(!_0xeb57d6['isTouching'](_0x246ebb)||!_0xeb57d6['nodeAfter'])return;const _0x222189=_0xeb57d6['nodeAfter'];if(_0x5e321e['isBlock'](_0x222189)&&!_0x5e321e['isLimit'](_0x222189)&&_0x5e321e['checkChild'](_0x222189,'$text')){if(!_0x4dee9d['consumable']['consume'](_0x126064['markerRange'],_0x29d5e1['name']))return;const {authorId:_0x5d2161}=_0x443e8b['_splitMarkerName'](_0x126064['markerName']),_0x19ba55=_0x4dee9d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5d2161}),_0x3cd02c=_0x4dee9d['mapper']['toViewPosition'](_0x246ebb);_0x37c8b5&&_0x443e8b['activeMarkers']['includes'](_0x126064['markerName'])&&_0x4dee9d['writer']['addClass']('ck-suggestion-marker--active',_0x19ba55),_0x4dee9d['writer']['insert'](_0x3cd02c,_0x19ba55),_0x4dee9d['mapper']['bindElementToMarker'](_0x19ba55,_0x126064['markerName']);}};}class yt extends _0x56605c{['afterInit'](){const _0xd1f544=this['editor'];if(!_0xd1f544['plugins']['has']('RemoveFormatEditing'))return;_0xd1f544['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e11b7=this['editor'];_0x3e11b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c6efa=>{if('formatBlock'!=_0x1c6efa['type']&&'formatInline'!=_0x1c6efa['type'])return;const {data:_0x4328b4}=_0x1c6efa;return _0x4328b4&&'removeFormat'==_0x4328b4['commandName']?{'type':'format','content':o(_0x3e11b7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x56605c{['afterInit'](){const _0x2122cf=this['editor'];if(!_0x2122cf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1f40b1=_0x2122cf['plugins']['get']('TrackChangesEditing');_0x1f40b1['enableCommand']('goToPreviousRestrictedEditingException'),_0x1f40b1['enableCommand']('goToNextRestrictedEditingException');const _0x1c149e=_0x2122cf['plugins']['get']('RestrictedEditingModeEditing');_0x1c149e['enableCommand']('trackChanges'),_0x1c149e['enableCommand']('acceptSuggestion'),_0x1c149e['enableCommand']('discardSuggestion'),_0x1c149e['enableCommand']('acceptAllSuggestions'),_0x1c149e['enableCommand']('discardAllSuggestions'),_0x1c149e['enableCommand']('acceptSelectedSuggestions'),_0x1c149e['enableCommand']('discardSelectedSuggestions');}}class St extends _0x56605c{static get['requires'](){return[_0x548d72];}['init'](){const _0x40e166=this['editor'],_0x6dcbfa=_0x40e166['plugins']['get']('TrackChangesEditing');_0x6dcbfa['enableCommand']('shiftEnter'),_0x40e166['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x40e166),{'priority':'high'}),_0x40e166['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x40e166),{'priority':'high'}),_0x40e166['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f6214,_0x3a7b9b,_0xc5f49b)=>{_0xc5f49b['options']['showSuggestionHighlights']&&ke(_0x40e166,{'showActiveMarker':!0x1})(_0x2f6214,_0x3a7b9b,_0xc5f49b);}),_0x6dcbfa['descriptionFactory']['registerElementLabel']('softBreak',_0x5a624a=>o(_0x40e166['locale'],'ELEMENT_LINE_BREAK',_0x5a624a));}}function ke(_0x35811a,{showActiveMarker:_0x14e9d0=!0x0}={}){return(_0x2e9524,_0x30d6a0,_0x65ff7c)=>{const _0x3c98d8=_0x35811a['plugins']['get']('TrackChangesEditing');if(!_0x65ff7c['consumable']['test'](_0x30d6a0['markerRange'],_0x2e9524['name']))return;const _0x30fc3c=_0x35811a['model'];for(const _0x17e815 of _0x30d6a0['markerRange']['getItems']()){if(!_0x17e815['is']('element','softBreak'))continue;const _0x1131e2='deletion'==_0x30d6a0['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3a6d71}=_0x3c98d8['_splitMarkerName'](_0x30d6a0['markerName']),_0x3e12f2=_0x65ff7c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1131e2,'data-author-id':_0x3a6d71}),_0x354728=_0x65ff7c['mapper']['toViewPosition'](_0x30fc3c['createPositionBefore'](_0x17e815));_0x14e9d0&&_0x3c98d8['activeMarkers']['includes'](_0x30d6a0['markerName'])&&_0x65ff7c['writer']['addClass']('ck-suggestion-marker--active',_0x3e12f2),_0x65ff7c['writer']['insert'](_0x354728,_0x3e12f2),_0x65ff7c['mapper']['bindElementToMarker'](_0x3e12f2,_0x30d6a0['markerName']);}};}class At extends _0x56605c{['afterInit'](){const _0x203ca4=this['editor'],_0x412fad=_0x203ca4['model'],_0x24fe4b=_0x203ca4['locale'];if(!_0x203ca4['plugins']['has']('StandardEditingModeEditing'))return;const _0x331c03=_0x203ca4['plugins']['get']('TrackChangesEditing'),_0x20a840='restrictedEditingException',_0x2f4a83=_0x203ca4['commands']['get'](_0x20a840);_0x331c03['enableCommand'](_0x20a840,(_0x3e694e,_0x524a3b={})=>{const _0x28e45b=_0x412fad['document']['selection'];if(_0x28e45b['isCollapsed'])return void _0x3e694e(_0x524a3b);const _0x531fa5=void 0x0!==_0x524a3b['forceValue']?_0x524a3b['forceValue']:!_0x2f4a83['value'];_0x412fad['change'](()=>{const _0x66b351=Array['from'](_0x28e45b['getRanges']());for(const _0x442c0a of _0x66b351){const _0x34518c=_0x531fa5?[_0x442c0a]:io(_0x20a840,_0x442c0a,_0x412fad);for(const _0x2afa20 of _0x34518c)_0x331c03['markInlineFormat'](_0x2afa20,{'commandName':_0x20a840,'commandParams':[{'forceValue':_0x531fa5}]});}});}),_0x331c03['descriptionFactory']['registerDescriptionCallback'](_0x8d66dd=>{if('formatBlock'!=_0x8d66dd['type']&&'formatInline'!=_0x8d66dd['type'])return;const {data:_0x351f8b}=_0x8d66dd;return _0x351f8b&&_0x351f8b['commandName']==_0x20a840?_0x351f8b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24fe4b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x24fe4b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x56605c{['afterInit'](){const _0x60ab1c=this['editor'];if(!_0x60ab1c['plugins']['has']('Style')||!_0x60ab1c['plugins']['has']('DataSchema'))return;const _0xe1b078=_0x60ab1c['plugins']['get']('TrackChangesEditing'),_0x151e6c=_0x60ab1c['locale'],_0x2304fa=_0x60ab1c['config']['get']('style')||{},_0x377176=_0x60ab1c['plugins']['get']('GeneralHtmlSupport'),_0x14b2ad=_0x60ab1c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x60ab1c['plugins']['get']('DataSchema'),_0x2304fa['definitions']);_0xe1b078['enableDefaultAttributesIntegration']('style');const _0x3ac1fd=new Set();for(const _0x5468f2 of _0x14b2ad['block']){const _0x41aef7=_0x377176['getGhsAttributeNameForElement'](_0x5468f2['element']);_0x3ac1fd['add'](_0x41aef7);}const _0xabb554=new Set();for(const _0x1a9636 of _0x14b2ad['inline']){const _0x9f73f9=_0x377176['getGhsAttributeNameForElement'](_0x1a9636['element']);_0xabb554['add'](_0x9f73f9);for(const _0x110444 of _0x1a9636['ghsAttributes'])_0xabb554['add'](_0x110444);}for(const _0x6ac441 of _0x3ac1fd)_0xe1b078['registerBlockAttribute'](_0x6ac441),_0xe1b078['descriptionFactory']['registerAttributeLabel'](_0x6ac441,o(_0x151e6c,'FORMAT_STYLE'));for(const _0x329033 of _0xabb554)_0xe1b078['registerInlineAttribute'](_0x329033),_0xe1b078['descriptionFactory']['registerAttributeLabel'](_0x329033,o(_0x151e6c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41c2b2=this['editor'],_0x3676c6=_0x41c2b2['locale'];_0x41c2b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1de770=>{if('formatBlock'!=_0x1de770['type']&&'formatInline'!=_0x1de770['type'])return;const {data:_0x4f6088}=_0x1de770;return _0x4f6088&&'style'===_0x4f6088['commandName']?_0x4f6088['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3676c6,'*Set\x20format:*\x20%0',_0x4f6088['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3676c6,'*Remove\x20format:*\x20%0',_0x4f6088['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x56605c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4dc3cf){super(_0x4dc3cf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x55e8b1=this['editor'],_0x1e9385=_0x55e8b1['model']['document']['selection'];if(!_0x55e8b1['plugins']['has']('TableEditing'))return;const _0x4456b6=_0x55e8b1['locale'],_0x43239d=_0x55e8b1['plugins']['get']('TrackChangesEditing'),_0x5af8af=_0x55e8b1['plugins']['get']('TableUtils');_0x43239d['descriptionFactory']['registerElementLabel']('table',_0x31b592=>o(_0x4456b6,'ELEMENT_TABLE',_0x31b592)),this['_setupColumnsRowsFixing'](),_0x43239d['enableCommand']('insertTable'),_0x43239d['enableCommand']('selectTableRow'),_0x43239d['enableCommand']('selectTableColumn');for(const _0x5679ed of['insertTableRowAbove','insertTableRowBelow']){const _0x2a6631=_0x55e8b1['commands']['get'](_0x5679ed);_0x43239d['enableCommand'](_0x5679ed,_0x3e50e0=>{_0x55e8b1['model']['change'](_0x105e03=>{_0x3e50e0();const _0x301dc6='above'===_0x2a6631['order'],_0x458468=_0x5af8af['getSelectionAffectedTableCells'](_0x1e9385),_0x19025b=_0x5af8af['getRowIndexes'](_0x458468),_0x321aa2=_0x301dc6?_0x19025b['first']-0x1:_0x19025b['last']+0x1,_0x49bcd8=_0x458468[0x0]['findAncestor']('table'),_0x910bdc=_0x5af8af['createTableWalker'](_0x49bcd8,{'startRow':_0x321aa2,'endRow':_0x321aa2}),_0x137b12=Array['from'](_0x910bdc)['map'](_0x10141d=>_0x105e03['createRangeOn'](_0x10141d['cell']));_0x43239d['markMultiRangeInsertion'](_0x137b12,'tableRow');});});}for(const _0x5cb05a of['insertTableColumnLeft','insertTableColumnRight']){const _0x1cd5b8=_0x55e8b1['commands']['get'](_0x5cb05a);_0x43239d['enableCommand'](_0x5cb05a,_0x52428d=>{_0x55e8b1['model']['change'](_0x358556=>{_0x52428d();const _0x4c49d8='left'===_0x1cd5b8['order'],_0x170b74=_0x5af8af['getSelectionAffectedTableCells'](_0x1e9385),_0xe5c884=_0x5af8af['getColumnIndexes'](_0x170b74),_0x18d101=_0x4c49d8?_0xe5c884['first']-0x1:_0xe5c884['last']+0x1,_0x4d0c6e=_0x170b74[0x0]['findAncestor']('table'),_0x3b3ddd=_0x5af8af['createTableWalker'](_0x4d0c6e,{'startRow':0x0,'column':_0x18d101,'includeAllSlots':!0x1}),_0x50c29e=Array['from'](_0x3b3ddd)['map'](_0x4c7515=>_0x358556['createRangeOn'](_0x4c7515['cell']));_0x43239d['markMultiRangeInsertion'](_0x50c29e,'tableColumn');});});}for(const _0x5236eb of['removeTableRow','removeTableColumn']){const _0x156335=_0x5236eb['substr'](0xb),_0x503512=_0x156335['toLowerCase'](),_0xd9f79=_0x503512['substr'](0x0,0x3)+'span',_0x23183d='table'+_0x156335,_0x426245='min'+_0x156335,_0x23ee3c='max'+_0x156335;_0x43239d['enableCommand'](_0x5236eb,()=>{_0x55e8b1['model']['change'](_0x4c5717=>{const _0x314bfc=_0x5af8af['getSelectionAffectedTableCells'](_0x1e9385),_0x56ca08=_0x314bfc[0x0]['findAncestor']('table');let _0x1b9024;if('removeTableRow'==_0x5236eb){const _0x576228=_0x5af8af['getRowIndexes'](_0x314bfc);_0x1b9024={'startRow':_0x576228['first'],'endRow':_0x576228['last'],'includeAllSlots':!0x0};}else{const _0x29a761=_0x5af8af['getColumnIndexes'](_0x314bfc);_0x1b9024={'startColumn':_0x29a761['first'],'endColumn':_0x29a761['last'],'includeAllSlots':!0x0};}const _0x2a624e=_0x5af8af['createTableWalker'](_0x56ca08,_0x1b9024),_0x34dfb3=Array['from'](_0x2a624e)['map'](({cell:_0x48ccc6})=>_0x48ccc6),_0x5a3016=Re(_0x34dfb3['filter'](_0x2e1254=>_0x2e1254['hasAttribute'](_0xd9f79))),_0x37a69e=Re(_0x34dfb3['filter'](_0x3534b5=>!_0x3534b5['hasAttribute'](_0xd9f79)))['map'](_0x7831ed=>_0x4c5717['createRangeOn'](_0x7831ed)),_0x4777ad=_0x43239d['markMultiRangeDeletion'](_0x37a69e,_0x23183d);if(_0x4777ad&&('tableRow'==_0x4777ad['subType']||'tableColumn'==_0x4777ad['subType'])){const _0x877ef1=this['_getSuggestionCoords'](_0x4777ad);for(const _0x219b65 of _0x5a3016){const _0x15f8ff=_0x4c5717['createRangeOn'](_0x219b65),_0x16618f=_0x5af8af['getCellLocation'](_0x219b65),_0x5b7bd8=_0x219b65['getAttribute'](_0xd9f79)-0x1,_0x4948fe=_0x877ef1[_0x426245],_0x2e80b8=_0x877ef1[_0x23ee3c];_0x4948fe<=_0x16618f[_0x503512]&&_0x16618f[_0x503512]+_0x5b7bd8<=_0x2e80b8&&_0x4777ad['addRange'](_0x15f8ff);}}});});}function _0x1fea46(_0x313747){const _0x3897e0=Array['from'](_0x1e9385['getRanges']())['map'](_0x4e4819=>_0x14359b['fromRange'](_0x4e4819));_0x55e8b1['model']['change'](_0x20141e=>{const _0x3929fb=_0x20141e['batch'];_0x313747=_0x313747['filter'](_0x503524=>'$graveyard'!=_0x503524['root']['rootName']),_0x20141e['setSelection'](_0x313747),_0x55e8b1['commands']['get']('removeTableRow')['refresh'](),_0x55e8b1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x55e8b1['model']['enqueueChange'](()=>{_0x55e8b1['model']['enqueueChange'](_0x3929fb,_0x2508cc=>{const _0x3c31f0=_0x3897e0['filter'](_0x146112=>'$graveyard'!=_0x146112['root']['rootName']);_0x3c31f0['length']>0x0&&_0x2508cc['setSelection'](_0x3c31f0);for(const _0x157d41 of _0x3897e0)_0x157d41['detach']();});});});}function _0x2ff53b(_0x540c37){_0x55e8b1['model']['change'](_0x4e90d4=>{const _0x25c096=Array['from'](_0x1e9385['getRanges']())['map'](_0x56d98b=>_0x14359b['fromRange'](_0x56d98b)),_0x5954c1=[];for(const _0x24637f of _0x540c37)for(const _0x58fe46 of _0x24637f['getItems']({'shallow':!0x0}))_0x5954c1['push'](_0x58fe46);for(const _0x19b1d0 of _0x5954c1)'$graveyard'!=_0x19b1d0['root']['rootName']&&(_0x4e90d4['setSelection'](_0x4e90d4['createPositionAt'](_0x19b1d0,0x0)),_0x55e8b1['commands']['get']('removeTableColumn')['refresh'](),_0x55e8b1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4eec1c=_0x25c096['filter'](_0x128fc4=>'$graveyard'!=_0x128fc4['root']['rootName']);_0x4eec1c['length']>0x0&&_0x4e90d4['setSelection'](_0x4eec1c);for(const _0x546240 of _0x25c096)_0x546240['detach']();});}function _0x95affc(_0x5bbbf7,_0x16361a){return _0x16361a['every'](_0x252354=>_0x5bbbf7['some'](_0xd43270=>_0xd43270['end']['isEqual'](_0x252354['start'])||_0x252354['end']['isEqual'](_0xd43270['start'])));}function _0x14d6eb(_0x50d137,_0x180c35){return!_0x50d137['some'](_0x52f102=>_0x180c35['some'](_0x47ddd3=>_0x52f102['isIntersecting'](_0x47ddd3)))&&_0x50d137['some'](_0x36fb36=>_0x180c35['some'](_0x30f470=>_0x36fb36['end']['isTouching'](_0x30f470['start'])));}_0x55e8b1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6a94c6,_0x1e62f3,_0x320b94)=>{if(!_0x320b94['options']['showSuggestionHighlights'])return;const _0x1eb211=_0x1e62f3['item'];if(!_0x1eb211)return;const _0x182c16=_0x320b94['mapper']['toViewElement'](_0x1eb211);function _0x11804e(_0x24e17b){return Array['isArray'](_0x24e17b)?_0x24e17b:[_0x24e17b];}_0x182c16&&'tableCell'===_0x1eb211['name']&&_0x5f2660(_0x182c16,_0x320b94['writer'],(_0xc60d9c,_0x526f46,_0x3d232b)=>_0x3d232b['addClass'](_0x11804e(_0x526f46['classes']),_0xc60d9c),(_0x5e77f1,_0x557011,_0x2d688c)=>_0x2d688c['removeClass'](_0x11804e(_0x557011['classes']),_0x5e77f1));},{'priority':'highest'}),_0x43239d['descriptionFactory']['registerDescriptionCallback'](_0x9f54c6=>{if('insertion'!=_0x9f54c6['type']&&'deletion'!=_0x9f54c6['type'])return;const _0x55d7a2=_0x9f54c6['getContainedElement']();if(null!=_0x55d7a2&&_0x55d7a2['is']('element','table')){if('insertion'==_0x9f54c6['type']){const _0x2026d4=_0x9f54c6['getItems']()['filter'](_0x297dcd=>_0x297dcd['is']('$textProxy'))['map'](_0x5df432=>_0x5df432['data']);if(_0x2026d4['length'])return{'type':'insertion','content':o(_0x4456b6,'*Insert:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2026d4['join']('\x20')+'\x22'))};}if('deletion'==_0x9f54c6['type']){const _0x552408=_0x9f54c6['getItems']()['filter'](_0x261f7f=>_0x261f7f['is']('$textProxy'))['map'](_0x16e7b5=>_0x16e7b5['data']);if(_0x552408['length'])return{'type':'deletion','content':o(_0x4456b6,'*Remove:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x552408['join']('\x20')+'\x22'))};}}}),_0x43239d['descriptionFactory']['registerDescriptionCallback'](_0x10a246=>{if('tableRow'==_0x10a246['subType']){const _0x1df259=_0x10a246['getItems']()['filter'](_0x18fbf9=>_0x18fbf9['is']('$textProxy'))['map'](_0x15d7f5=>_0x15d7f5['data']),_0x598957=this['_getSuggestionCoords'](_0x10a246),_0x4d44f5=_0x598957['maxRow']-_0x598957['minRow']+0x1;if('insertion'==_0x10a246['type'])return _0x1df259['length']?{'type':'insertion','content':o(_0x4456b6,'*Insert:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d44f5,'\x22'+_0x1df259['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4456b6,'*Insert:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_ROW',_0x4d44f5))};if('deletion'==_0x10a246['type'])return _0x1df259['length']?{'type':'deletion','content':o(_0x4456b6,'*Remove:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d44f5,'\x22'+_0x1df259['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4456b6,'*Remove:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_ROW',_0x4d44f5))};}if('tableColumn'==_0x10a246['subType']){const _0x189eaa=_0x10a246['getItems']()['filter'](_0x5ba447=>_0x5ba447['is']('$textProxy'))['map'](_0x59cab8=>_0x59cab8['data']),_0x173e45=this['_getSuggestionCoords'](_0x10a246),_0x4cb1e4=_0x173e45['maxColumn']-_0x173e45['minColumn']+0x1;if('insertion'==_0x10a246['type'])return _0x189eaa['length']?{'type':'insertion','content':o(_0x4456b6,'*Insert:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cb1e4,'\x22'+_0x189eaa['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4456b6,'*Insert:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_COLUMN',_0x4cb1e4))};if('deletion'==_0x10a246['type'])return _0x189eaa['length']?{'type':'deletion','content':o(_0x4456b6,'*Remove:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cb1e4,'\x22'+_0x189eaa['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4456b6,'*Remove:*\x20%0',o(_0x4456b6,'ELEMENT_TABLE_COLUMN',_0x4cb1e4))};}}),_0x43239d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1fea46),_0x43239d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1fea46),_0x43239d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2ff53b),_0x43239d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2ff53b),_0x43239d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x95affc),_0x43239d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x95affc),_0x43239d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14d6eb),_0x43239d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14d6eb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5717cf=this['editor'],_0x1d987b=_0x5717cf['model']['document']['selection'];return(_0x58cf22,_0x58e69c)=>{_0x5717cf['model']['change'](_0x5385ce=>{const {commandName:_0x3d5235,commandParams:_0x528a0b}=_0x58e69c;let _0x4a4467=_0x58cf22[0x0]['end']['nodeBefore'];_0x528a0b&&_0x528a0b[0x0]&&!0x1===_0x528a0b[0x0]['forceValue']&&(_0x4a4467=_0x58cf22[0x0]['start']['nodeAfter']);const _0x34d20f=_0x5385ce['createRangeIn'](_0x4a4467);if('$graveyard'==_0x34d20f['root']['rootName'])return;const _0x5196e8=Array['from'](_0x1d987b['getRanges']())['map'](_0x4e18dc=>_0x14359b['fromRange'](_0x4e18dc));_0x5385ce['setSelection'](_0x34d20f),_0x5717cf['commands']['get'](_0x3d5235)['refresh'](),_0x528a0b['push']({'forceDefaultExecution':!0x0}),_0x5717cf['execute'](_0x3d5235,..._0x528a0b);const _0x1ce047=_0x5196e8['filter'](_0x1400f8=>'$graveyard'!=_0x1400f8['root']['rootName']);_0x1ce047['length']>0x0&&_0x5385ce['setSelection'](_0x1ce047);for(const _0x18bbf6 of _0x5196e8)_0x18bbf6['detach']();});};}['_getCoordsForCells'](_0x338159){const _0x8fca48=this['editor']['plugins']['get']('TableUtils');let _0x3c1dcd=Number['MAX_SAFE_INTEGER'],_0x58bc26=Number['MIN_SAFE_INTEGER'],_0x5b77b5=Number['MAX_SAFE_INTEGER'],_0x1c759e=Number['MIN_SAFE_INTEGER'];for(const _0x31013c of _0x338159){if('$graveyard'==_0x31013c['root']['rootName'])continue;const {row:_0x1b04b9,column:_0x6bb494}=_0x8fca48['getCellLocation'](_0x31013c),_0x4e89d8=_0x31013c['hasAttribute']('rowspan')?_0x31013c['getAttribute']('rowspan')-0x1:0x0,_0x52aff9=_0x31013c['hasAttribute']('colspan')?_0x31013c['getAttribute']('colspan')-0x1:0x0;_0x3c1dcd=_0x1b04b9<_0x3c1dcd?_0x1b04b9:_0x3c1dcd,_0x58bc26=_0x1b04b9+_0x4e89d8>_0x58bc26?_0x1b04b9+_0x4e89d8:_0x58bc26,_0x5b77b5=_0x6bb494<_0x5b77b5?_0x6bb494:_0x5b77b5,_0x1c759e=_0x6bb494+_0x52aff9>_0x1c759e?_0x6bb494+_0x52aff9:_0x1c759e;}return{'minRow':_0x3c1dcd,'maxRow':_0x58bc26,'minColumn':_0x5b77b5,'maxColumn':_0x1c759e};}['_setupColumnsRowsFixing'](){const _0x1828fe=this['editor'],_0x4450b8=_0x1828fe['plugins']['get']('TrackChangesEditing'),_0x3ce77a=_0x1828fe['plugins']['get']('TableUtils');_0x1828fe['model']['document']['on']('change:data',()=>{const _0x21cb02=Array['from'](_0x1828fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd0b1cb,data:_0x136294}of _0x21cb02){const {group:_0x293713,id:_0x39ecf9,subType:_0x300540}=_0x4450b8['_splitMarkerName'](_0xd0b1cb);if('suggestion'!=_0x293713)continue;if(null!=_0x136294['oldRange'])continue;const _0x22722e=_0x4450b8['getSuggestion'](_0x39ecf9);this['_tablePostFixingSubtypes']['includes'](_0x300540)&&this['_tableSuggestions']['add'](_0x22722e);}},{'priority':'low'});const _0x118bc2=(_0x22eef4,_0xb78fdd)=>{let _0x333cb4=!0x1;const _0x15a6dc=_0xb78fdd['createRangeOn'](_0x22eef4),_0x2e7a74=_0x22eef4['findAncestor']('table'),_0x6212fb=_0x3ce77a['getCellLocation'](_0x22eef4);for(const _0x3174b8 of this['_tableSuggestions']){const _0x1c3f05=_0x3174b8['subType'],_0x57f868=_0x1c3f05['startsWith']('tablePaste'),_0x19869a=_0x1c3f05['substr'](_0x57f868?0xa:0x5),_0x2dcd29=_0x19869a['toLowerCase'](),_0x4b8586=_0x2dcd29['substr'](0x0,0x3)+'span',_0x8c45d1='min'+_0x19869a,_0x28f8dc='max'+_0x19869a;if(!_0x3174b8['isInContent'])continue;if(_0x2e7a74!=_0x3174b8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3174b8['isIntersectingWithRange'](_0x15a6dc))continue;const _0x3b72c0=_0x22eef4['hasAttribute'](_0x4b8586)?_0x22eef4['getAttribute'](_0x4b8586)-0x1:0x0,_0x5be35f=this['_getSuggestionCoords'](_0x3174b8),_0x21eeae=_0x5be35f[_0x8c45d1],_0x1a8cb1=_0x5be35f[_0x28f8dc];_0x21eeae<=_0x6212fb[_0x2dcd29]&&_0x6212fb[_0x2dcd29]+_0x3b72c0<=_0x1a8cb1&&(_0x3174b8['addRange'](_0x15a6dc),_0x333cb4=!0x0);}return _0x333cb4;};_0x1828fe['model']['document']['registerPostFixer'](_0x4b409f=>{let _0x439cf7=!0x1;for(const _0x3fe1a4 of _0x1828fe['model']['document']['differ']['getChanges']())if('insert'==_0x3fe1a4['type']){if('tableRow'==_0x3fe1a4['name']){for(const _0x4ff815 of _0x3fe1a4['position']['nodeAfter']['getChildren']())_0x439cf7=_0x439cf7||_0x118bc2(_0x4ff815,_0x4b409f);}else'tableCell'==_0x3fe1a4['name']&&(_0x439cf7=_0x439cf7||_0x118bc2(_0x3fe1a4['position']['nodeAfter'],_0x4b409f));}return _0x439cf7;});}['_getSuggestionCoords'](_0x2882b8){return this['_getCoordsForCells'](_0x2882b8['getRanges']()['map'](_0xcbaf56=>_0xcbaf56['start']['nodeAfter']));}}function Re(_0x53b7d4){return Array['from'](new Set(_0x53b7d4)['values']());}class _t extends _0x56605c{static get['requires'](){return[vt];}['afterInit'](){const _0x573928=this['editor'],_0x227e0d=_0x573928['model']['document']['selection'],_0x7c5168=_0x573928['locale'];if(!_0x573928['plugins']['has']('TableEditing'))return;const _0x8881bf=_0x573928['plugins']['get']('TrackChangesEditing'),_0x1a18b5=_0x573928['plugins']['get']('TableUtils'),_0xe5dcc0=_0x573928['plugins']['get'](vt);_0xe5dcc0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8881bf['enableCommand']('mergeTableCells',()=>{const _0x11c31b=_0x1a18b5['getSelectionAffectedTableCells'](_0x573928['model']['document']['selection']);_0x573928['model']['change'](()=>{_0x8881bf['markMultiRangeBlockFormat'](_0x11c31b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x573928['commands']['get']('mergeTableCells')['on']('execute',(_0x3e62f0,_0x155399)=>{_0x573928['commands']['get']('trackChanges')['value']&&(_0x155399['length']>0x0&&_0x155399[_0x155399['length']-0x1]&&_0x155399[_0x155399['length']-0x1]['forceDefaultExecution']||_0x8881bf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3e62f0['stop']());},{'priority':'highest'});for(const _0x33c525 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x15f96f=_0x573928['commands']['get'](_0x33c525);_0x8881bf['enableCommand'](_0x33c525,()=>{const _0x521e02=_0x573928['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x41d5c4=>_0x41d5c4['is']('element','tableCell')),_0x56388f=_0x15f96f['value'];_0x573928['model']['change'](()=>{_0x8881bf['markMultiRangeBlockFormat']([_0x521e02,_0x56388f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bc079 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x455a74=_0x573928['commands']['get'](_0x5bc079);_0x8881bf['enableCommand'](_0x5bc079,()=>{const _0x57fc09=_0x1a18b5['getSelectionAffectedTableCells'](_0x573928['model']['document']['selection'])[0x0],_0x3a3cfb=_0x57fc09['findAncestor']('table'),{column:_0x19e1d2,row:_0x4357ac}=_0x1a18b5['getCellLocation'](_0x57fc09);let _0x416bd4=[];if('horizontally'==_0x455a74['direction']){const _0x39c165=_0x1a18b5['createTableWalker'](_0x3a3cfb,{'startRow':_0x4357ac,'endRow':_0x4357ac,'includeAllSlots':!0x0});_0x416bd4=Array['from'](_0x39c165)['map'](_0x223125=>_0x223125['cell']);}else{const _0x3b9b9c=_0x1a18b5['createTableWalker'](_0x3a3cfb,{'column':_0x19e1d2,'includeAllSlots':!0x0});_0x416bd4=Array['from'](_0x3b9b9c)['map'](_0x11594e=>_0x11594e['cell']);}_0x573928['model']['change'](_0x387d93=>{_0x8881bf['markBlockFormat'](_0x387d93['createRangeOn'](_0x57fc09),{'commandName':_0x5bc079,'commandParams':[]},_0x416bd4,_0x5bc079);});});}_0x8881bf['descriptionFactory']['registerDescriptionCallback'](_0x5cedbb=>{if('formatBlock'!=_0x5cedbb['type']&&'formatInline'!=_0x5cedbb['type'])return;const {data:_0x4acf86}=_0x5cedbb;return _0x4acf86&&'mergeTableCells'==_0x4acf86['commandName']?{'type':'format','content':o(_0x7c5168,'*Merge\x20cells*')}:void 0x0;}),_0x8881bf['descriptionFactory']['registerDescriptionCallback'](_0x2f9cc8=>{if('formatBlock'!=_0x2f9cc8['type']&&'formatInline'!=_0x2f9cc8['type'])return;const {data:_0x52d848}=_0x2f9cc8;return _0x52d848?'splitTableCellVertically'==_0x52d848['commandName']?{'type':'format','content':o(_0x7c5168,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x52d848['commandName']?{'type':'format','content':o(_0x7c5168,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4d1a92=_0xe5dcc0['_acceptFormatSuggestionCallbackFactory']();for(const _0x2e132e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8881bf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e132e,'accept',_0x4d1a92);for(const _0x35b810 of['splitTableCellVertically','splitTableCellHorizontally'])_0x8881bf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35b810,'accept',_0x4d1a92);_0x8881bf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5160fe=>{_0x573928['model']['change'](_0x51a5ed=>{const _0x9524bf=Array['from'](_0x227e0d['getRanges']())['map'](_0x2af24f=>_0x14359b['fromRange'](_0x2af24f));_0x51a5ed['setSelection'](_0x5160fe),_0x573928['commands']['get']('mergeTableCells')['refresh'](),_0x573928['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56a97f=_0x9524bf['filter'](_0x41b89a=>'$graveyard'!=_0x41b89a['root']['rootName']);_0x56a97f['length']>0x0&&_0x51a5ed['setSelection'](_0x56a97f);for(const _0x623a59 of _0x9524bf)_0x623a59['detach']();});});for(const _0x4df749 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x38160c=_0x573928['commands']['get'](_0x4df749);_0x38160c['on']('set:isEnabled',(_0x27cd9f,_0x3b2f81,_0x58d6e9)=>{if(_0x58d6e9){const _0x455ddc=_0x573928['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e0c3c=>_0x2e0c3c['is']('element','tableCell'));this['_areMergableCells'](_0x38160c['value'],_0x455ddc)||(_0x27cd9f['return']=!0x1,_0x27cd9f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2f6448=this['editor']['commands']['get']('mergeTableCells'),_0x49403=this['editor']['plugins']['get']('TableUtils');if(!_0x2f6448['isEnabled'])return!0x1;const _0x45fec1=_0x49403['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x48aa78 of _0x45fec1)for(const _0x4eef10 of _0x45fec1)if(_0x48aa78!=_0x4eef10&&!this['_areMergableCells'](_0x48aa78,_0x4eef10))return!0x1;return!0x0;}['_areMergableCells'](_0x4d0908,_0x528dfd){const _0x1a48db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d0a90=this['editor']['model']['createRangeOn'](_0x4d0908),_0x22a153=this['editor']['model']['createRangeOn'](_0x528dfd),_0x272ebc=new Set(),_0x52719c=new Set();for(const _0x58aac7 of _0x1a48db['getSuggestions']())if(('insertion'==_0x58aac7['type']||'deletion'==_0x58aac7['type']||'mergeTableCells'==_0x58aac7['subType'])&&_0x58aac7['isInContent']){for(const _0x5bdd36 of _0x58aac7['getRanges']())_0x5bdd36['containsRange'](_0x1d0a90,!0x0)&&_0x272ebc['add'](_0x58aac7['type']+':'+_0x58aac7['author']['id']),_0x5bdd36['containsRange'](_0x22a153,!0x0)&&_0x52719c['add'](_0x58aac7['type']+':'+_0x58aac7['author']['id']);}if(_0x272ebc['size']!=_0x52719c['size'])return!0x1;for(const _0x1d0cfc of _0x272ebc)if(!_0x52719c['has'](_0x1d0cfc))return!0x1;return!0x0;}}class Ct extends _0x56605c{static get['requires'](){return[vt];}['afterInit'](){const _0x5a1419=this['editor'];if(!_0x5a1419['plugins']['has']('TableEditing'))return;const _0x2af708=_0x5a1419['locale'],_0x1e1ae0=_0x5a1419['plugins']['get']('TrackChangesEditing');_0x1e1ae0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1e1ae0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1e1ae0['registerBlockAttribute']('headingRows'),_0x1e1ae0['registerBlockAttribute']('headingColumns'),_0x1e1ae0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2af708,'FORMAT_HEADER_ROW')),_0x1e1ae0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2af708,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x168fac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cad51=this['editor']['plugins']['get']('TableUtils'),_0x5905d3=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x4023a3({showActiveMarker:_0x18dfbe=!0x0,setDataAttribute:_0x3c5343=!0x0}={}){return(_0x3d2334,_0x33c613,_0x1ad88a)=>{const {type:_0x105324,id:_0xf88380}=_0x168fac['_splitMarkerName'](_0x33c613['markerName']),_0x3fd216=_0x168fac['getSuggestion'](_0xf88380),_0x1ae234=_0x3fd216['data'];if('formatBlock'!=_0x3fd216['type']||!_0x1ae234||'setTableColumnHeader'!=_0x1ae234['commandName'])return;if(_0x33c613['item'])return void _0x3d2334['stop']();if(!_0x1ad88a['consumable']['consume'](_0x33c613['markerRange'],_0x3d2334['name']))return;const _0x1b5f14=_0x33c613['markerRange']['start']['nodeAfter'],_0x135230=_0x33c613['markerRange']['end']['nodeBefore'],_0x5e3737=_0x1b5f14['parent']['parent'],{column:_0x42489d}=_0x3cad51['getCellLocation'](_0x1b5f14),{column:_0x574be5}=_0x3cad51['getCellLocation'](_0x135230);for(let _0x3a6327=_0x42489d;_0x3a6327<=_0x574be5;_0x3a6327++){const _0x209a70=_0x3cad51['createTableWalker'](_0x5e3737,{'column':_0x3a6327,'includeAllSlots':!0x1});for(const _0x17e479 of _0x209a70){const _0x2f9250=_0x17e479['cell'],_0x28951b=_0x1ad88a['mapper']['toViewElement'](_0x2f9250);_0x1ad88a['writer']['addClass']('ck-suggestion-marker-'+_0x105324,_0x28951b),_0x3c5343&&_0x1ad88a['writer']['setAttribute']('data-suggestion',_0xf88380,_0x28951b),_0x1ad88a['mapper']['bindElementToMarker'](_0x28951b,_0x33c613['markerName']),_0x18dfbe&&(_0x168fac['activeMarkers']['includes'](_0x33c613['markerName'])?_0x1ad88a['writer']['addClass']('ck-suggestion-marker--active',_0x28951b):_0x1ad88a['writer']['removeClass']('ck-suggestion-marker--active',_0x28951b));}}};}_0x168fac['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5905d3),_0x168fac['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5905d3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4023a3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17deff,_0x3968b8,_0x3bae83)=>{_0x3bae83['options']['showSuggestionHighlights']&&_0x4023a3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x17deff,_0x3968b8,_0x3bae83);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x49ab59,_0x409d44,_0x2cab07)=>{const {type:_0x4b1d32,id:_0x36a412}=_0x168fac['_splitMarkerName'](_0x409d44['markerName']),_0x57e869=_0x168fac['getSuggestion'](_0x36a412),_0x943335=_0x57e869['data'];if('formatBlock'!=_0x57e869['type']||!_0x943335||'setTableColumnHeader'!=_0x943335['commandName'])return;const _0x2518a9=_0x2cab07['mapper']['markerNameToElements'](_0x409d44['markerName']);if(_0x2518a9){for(const _0x5b71c8 of _0x2518a9)_0x2cab07['writer']['removeClass']('ck-suggestion-marker-'+_0x4b1d32,_0x5b71c8),_0x2cab07['writer']['removeClass']('ck-suggestion-marker--active',_0x5b71c8),_0x2cab07['writer']['removeAttribute']('data-suggestion',_0x5b71c8),_0x2cab07['mapper']['unbindElementFromMarkerName'](_0x5b71c8,_0x409d44['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5047ea=this['editor'],_0x4fbe18=_0x5047ea['locale'];function _0x37f7f3(_0x5d80d1){return{'type':'format','content':o(_0x4fbe18,'*Format:*\x20%0',_0x5d80d1)};}_0x5047ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58ffff=>{if('formatBlock'!=_0x58ffff['type'])return;const {data:_0x3cf557}=_0x58ffff;if(_0x3cf557){if('setTableRowHeader'==_0x3cf557['commandName']){const _0x8885a=_0x3cf557['commandParams'][0x0]['forceValue'];return _0x37f7f3(o(_0x4fbe18,_0x8885a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3cf557['commandName']){const _0x5f5b66=_0x3cf557['commandParams'][0x0]['forceValue'];return _0x37f7f3(o(_0x4fbe18,_0x5f5b66?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x417ca5=>[_0x417ca5,null]));class Nt extends _0x56605c{static get['requires'](){return[vt];}['afterInit'](){const _0x451782=this['editor'];if(!_0x451782['plugins']['has']('TableClipboard'))return;const _0x34abe8=_0x451782['plugins']['get']('TrackChangesEditing'),_0x23a415=_0x451782['plugins']['get']('TableUtils'),_0x25e39e=_0x451782['plugins']['get'](vt),_0x146353=_0x451782['plugins']['get']('TableClipboard');_0x25e39e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x451782['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x451782['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x28ae99=null;_0x451782['model']['on']('insertContent',(_0x1dfe41,_0x284c08)=>{const [_0x1532c4,_0x5e52a6]=_0x284c08,_0x2811d2=_0x284c08[_0x284c08['length']-0x1];_0x2811d2&&_0x2811d2['forceDefaultExecution']||_0x34abe8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3124cb,_0x270a8d,_0x34f689,_0x2c1c8e,_0x49e2ee){if(_0x270a8d&&!_0x270a8d['is']('documentSelection'))return!0x1;const _0x5c21ee=_0x49e2ee['getTableIfOnlyTableInContent'](_0x3124cb,_0x34f689);if(!_0x5c21ee||!Ae(_0x5c21ee,void 0x0,_0x2c1c8e))return!0x1;const _0x52eac9=_0x2c1c8e['getSelectionAffectedTableCells'](_0x34f689['document']['selection']);if(!_0x52eac9['length'])return!0x1;const _0x50ab5b=_0x52eac9[0x0]['findAncestor']('table'),_0x43e9d1=_0x2c1c8e['getRowIndexes'](_0x52eac9),_0x276cc2=_0x2c1c8e['getColumnIndexes'](_0x52eac9),_0x1341c9={'startRow':_0x43e9d1['first'],'endRow':_0x43e9d1['last'],'startColumn':_0x276cc2['first'],'endColumn':_0x276cc2['last']};return 0x1==_0x52eac9['length']&&(_0x1341c9['endRow']+=_0x2c1c8e['getRows'](_0x5c21ee)-0x1,_0x1341c9['endColumn']+=_0x2c1c8e['getColumns'](_0x5c21ee)-0x1),Ae(_0x50ab5b,_0x1341c9,_0x2c1c8e);}(_0x1532c4,_0x5e52a6,_0x451782['model'],_0x23a415,_0x146353)&&(_0x1dfe41['stop'](),_0x28ae99={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x451782['model']['change'](()=>{_0x451782['model']['insertContent'](_0x284c08[0x0],_0x284c08[0x1],_0x284c08[0x2],{'forceDefaultExecution':!0x0});const _0xd9c25=_0xf2c1f9(),{rowInsertionRanges:_0x5e8003,columnInsertionRanges:_0x258665,insertionRanges:_0x204e7d,deletionRanges:_0x499dc8,cells:_0x9095d6}=_0x28ae99;_0x5e8003['length']&&_0x34abe8['markMultiRangeInsertion'](_0x5e8003,'tablePasteRow',{'tablePasteChainId':_0xd9c25}),_0x258665['length']&&_0x34abe8['markMultiRangeInsertion'](_0x258665,'tablePasteColumn',{'tablePasteChainId':_0xd9c25}),_0x204e7d['length']&&(_0x34abe8['markMultiRangeInsertion'](_0x204e7d,'tablePaste',{'tablePasteChainId':_0xd9c25,'skipNestingCheck':!0x0}),_0x204e7d['forEach'](_0x25dd0d=>_0x25dd0d['detach']?.())),_0x499dc8['length']&&(_0x34abe8['markMultiRangeDeletion'](_0x499dc8,'tablePaste',{'tablePasteChainId':_0xd9c25,'skipNestingCheck':!0x0}),_0x499dc8['forEach'](_0x4d1aa3=>_0x4d1aa3['detach']?.()));const _0x3702cb=_0x34abe8['markMultiRangeBlockFormat'](_0x9095d6['map'](({element:_0x3c4f09})=>_0x3c4f09),{'formatGroupId':_0xf2c1f9()},[],'tablePasteCell',{'tablePasteChainId':_0xd9c25});if(_0x3702cb){const _0x19ec72=_0x3702cb['getMarkers'](),_0x1a5605=[];for(const {element:_0x3eb076,attributes:_0x5d42fa}of _0x9095d6){if(!_0x5d42fa)continue;const _0x3890f1=_0x451782['model']['createRangeOn'](_0x3eb076),_0x3c12f3=_0x19ec72['find'](_0x59118e=>_0x59118e['getRange']()['isEqual'](_0x3890f1));_0x3c12f3&&_0x1a5605['push']([_0x3c12f3['name'],_0x5d42fa]);}_0x1a5605['length']&&_0x3702cb['setAttribute']('markerAttributes',Object['fromEntries'](_0x1a5605));}_0x28ae99=null;}));},{'priority':_0x3ae2d9['high']+0xa}),_0x451782['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x354ae2,_0x2a0e90)=>{const [_0x392353,_0x47d8d1,,_0x1ba9f3]=_0x2a0e90;if(!_0x28ae99)return;_0x354ae2['stop']();const _0x43152d=_0x392353['cell'],_0xc16a1e=_0x47d8d1,_0x246e57=je(_0x43152d),_0x429662=je(_0xc16a1e);_0x354ae2['return']=_0x43152d;let _0x56d4b6=null,_0x521e54=null;if(_0x429662||_0x246e57){if(_0x246e57&&!_0x429662){_0x1ba9f3['remove'](_0x43152d['getChild'](0x0));for(const _0x394309 of Array['from'](_0xc16a1e['getChildren']()))_0x1ba9f3['insert'](_0x394309,_0x43152d,'end');const _0x503634=_0x28ae99['rowInsertionIndexes']['includes'](_0x392353['row']),_0x2cb1d8=_0x28ae99['columnInsertionIndexes']['includes'](_0x392353['column']);_0x503634||_0x2cb1d8||(_0x56d4b6=_0x14359b['fromRange'](_0x1ba9f3['createRangeIn'](_0x43152d)));}else _0x429662&&!_0x246e57&&(_0x521e54=_0x1ba9f3['createRangeIn'](_0x43152d));}else{const _0x54b375=_0x1ba9f3['createElement']('tableCellSuggestion'),_0x2dba94=_0x1ba9f3['createElement']('tableCellSuggestion');_0x1ba9f3['wrap'](_0x1ba9f3['createRangeIn'](_0x43152d),_0x2dba94),_0x1ba9f3['insert'](_0x54b375,_0x43152d,0x0);for(const _0x254b56 of Array['from'](_0xc16a1e['getChildren']()))_0x1ba9f3['insert'](_0x254b56,_0x54b375,'end');_0x56d4b6=_0x14359b['fromRange'](_0x1ba9f3['createRangeOn'](_0x54b375)),_0x521e54=_0x14359b['fromRange'](_0x1ba9f3['createRangeOn'](_0x2dba94));}const _0x576969=Array['from'](_0xc16a1e['getAttributes']())['filter'](([_0x35a42c])=>we['includes'](_0x35a42c));_0x28ae99['cells']['push']({'element':_0x43152d,'attributes':_0x576969['length']?Object['fromEntries'](_0x576969):null}),_0x56d4b6&&_0x28ae99['insertionRanges']['push'](_0x56d4b6),_0x521e54&&_0x28ae99['deletionRanges']['push'](_0x521e54);},{'priority':'high'}),_0x23a415['on']('insertColumns',(_0x3c2328,_0x5043df)=>{const [_0x39685a,_0x393c09={}]=_0x5043df;if(!_0x28ae99)return;const _0x201f65=_0x393c09['at']||0x0,_0x287feb=_0x393c09['columns']||0x1;_0x28ae99['columnInsertionIndexes']=new Array(_0x287feb)['fill'](_0x201f65)['map']((_0x1774f8,_0x1118c3)=>_0x1774f8+_0x1118c3);for(const {cell:_0xc1c75}of _0x23a415['createTableWalker'](_0x39685a,{'startColumn':_0x201f65,'endColumn':_0x201f65+_0x287feb-0x1}))_0x28ae99['columnInsertionRanges']['push'](_0x451782['model']['createRangeOn'](_0xc1c75));},{'priority':'low'}),_0x23a415['on']('insertRows',(_0x368f87,_0x5ab5fa)=>{const [_0xa38297,_0x38e802={}]=_0x5ab5fa;if(!_0x28ae99)return;const _0x25d8c5=_0x38e802['at']||0x0,_0x4df3c8=_0x38e802['rows']||0x1;_0x28ae99['rowInsertionIndexes']=new Array(_0x4df3c8)['fill'](_0x25d8c5)['map']((_0x166065,_0x4b8524)=>_0x166065+_0x4b8524);for(const {cell:_0x2aeeb6}of _0x23a415['createTableWalker'](_0xa38297,{'startRow':_0x25d8c5,'endRow':_0x25d8c5+_0x4df3c8-0x1}))_0x28ae99['rowInsertionRanges']['push'](_0x451782['model']['createRangeOn'](_0x2aeeb6));},{'priority':'low'}),_0x34abe8['descriptionFactory']['registerDescriptionCallback'](_0x2e9277=>{if(_0x2e9277['subType']&&_0x2e9277['subType']['startsWith']('tablePaste'))return _0x2e9277['previous']?{}:{'type':'insertion','content':o(_0x451782['locale'],'*Replace\x20table\x20cells*')};});const _0x47f0cd=()=>!0x1;for(const _0x231e18 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x34abe8['_suggestionFactory']['registerCustomCallback']('insertion',_0x231e18,'join',_0x47f0cd),_0x34abe8['_suggestionFactory']['registerCustomCallback']('deletion',_0x231e18,'join',_0x47f0cd),_0x34abe8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x231e18,'join',_0x47f0cd);_0x34abe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x47f0cd),_0x34abe8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1de1e8,_0x28b714,_0x1774a4)=>{const _0x5430ad=_0x1de1e8['map'](_0x4ac967=>_0x4ac967['getContainedElement']())['filter'](_0xc664e8=>_0xc664e8),_0x389e27=new Map(_0x5430ad['map'](_0x433b2b=>[_0x433b2b,null]));if(_0x28ae99){for(const {element:_0x598f21,attributes:_0x54da3e}of _0x28ae99['cells'])_0x54da3e&&_0x389e27['set'](_0x598f21,_0x54da3e);}else{if(_0x1774a4&&_0x1774a4['markerAttributes'])for(const [_0x54d2c1,_0x205e4a]of Object['entries'](_0x1774a4['markerAttributes'])){const _0x4817f0=_0x451782['model']['markers']['get'](_0x54d2c1),_0x41f010=_0x4817f0?_0x4817f0['getRange']()['getContainedElement']():null;_0x41f010&&_0x389e27['set'](_0x41f010,_0x205e4a);}}_0x451782['model']['change'](_0x79404f=>{for(const [_0x3bd378,_0x46dc76]of _0x389e27)_0x79404f['setAttributes']({...ve,..._0x46dc76},_0x3bd378);});});const _0xa183=(_0x1606a6,_0x3caa89)=>{_0x34abe8['_suggestionFactory']['registerCustomCallback'](_0x1606a6,'tablePaste',_0x3caa89,(_0x130c4d,_0x34674f,_0x137b6b)=>{_0x451782['model']['change'](_0x10d7c7=>{const _0x1de179=[];for(const _0xabc4f5 of _0x130c4d){const _0x22fbf4=_0xabc4f5['start']['nodeAfter'];_0x22fbf4['is']('element','tableCellSuggestion')&&_0x1de179['push'](_0x22fbf4);}_0x34abe8['_suggestionFactory']['getSuggestionCallback'](_0x1606a6,null,_0x3caa89)(_0x130c4d,_0x34674f,_0x137b6b);for(const _0x9320ad of _0x1de179)'$graveyard'!=_0x9320ad['root']['rootName']&&_0x10d7c7['unwrap'](_0x9320ad);});});};_0xa183('insertion','accept'),_0xa183('insertion','discard'),_0xa183('deletion','accept'),_0xa183('deletion','discard'),_0x34abe8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2c5d97=>{const _0x1e8296=_0x2c5d97['map'](_0x223306=>_0x223306['getContainedElement']()),_0x551f1=_0x1e8296[0x0]['findAncestor']('table'),{minRow:_0x3b7fb8,maxRow:_0x2ccebd}=_0x25e39e['_getCoordsForCells'](_0x1e8296);_0x23a415['removeRows'](_0x551f1,{'at':_0x3b7fb8,'rows':_0x2ccebd-_0x3b7fb8+0x1});}),_0x34abe8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x336547=>{const _0x57e981=_0x336547['map'](_0x92641e=>_0x92641e['getContainedElement']()),_0x51a224=_0x57e981[0x0]['findAncestor']('table'),{minColumn:_0x56a70a,maxColumn:_0x12590f}=_0x25e39e['_getCoordsForCells'](_0x57e981);_0x23a415['removeColumns'](_0x51a224,{'at':_0x56a70a,'columns':_0x12590f-_0x56a70a+0x1});});const _0x51f1b3=(_0x525ace,_0x2a5e29)=>{if(!_0x2a5e29['subType']||!_0x2a5e29['subType']['startsWith']('tablePaste'))return;const _0x1da120=_0x2a5e29['attributes']['tablePasteChainId'],_0x39db6a=_0x34abe8['getSuggestions']()['filter'](_0x14eac1=>_0x14eac1['isInContent']&&_0x14eac1['attributes']&&_0x14eac1['attributes']['tablePasteChainId']==_0x1da120);_0x39db6a['length']&&_0x2a5e29['getAllAdjacentSuggestions']()['length']!=_0x39db6a['length']&&_0x39db6a['reduce']((_0x32f5b1,_0x2279fa)=>(_0x32f5b1['next']=_0x2279fa,_0x2279fa['previous']=_0x32f5b1,_0x2279fa));};function _0x11b110(_0x153d8f,_0x54fdf7=!0x0){const {id:_0x487332,authorId:_0x4c2b17}=_0x34abe8['_splitMarkerName'](_0x153d8f['markerName']),_0x368679=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x54c293=_0x34abe8['activeMarkers']['includes'](_0x153d8f['markerName']);return _0x54c293&&_0x368679['push']('ck-suggestion-marker--active'),{'classes':_0x368679,'attributes':{'data-suggestion':_0x487332,'data-author-id':_0x4c2b17},'priority':_0x54c293&&_0x54fdf7?0xbc2:0xbb8};}_0x34abe8['on']('suggestionLoaded',_0x51f1b3,{'priority':'high'}),_0x34abe8['on']('suggestionUnloaded',_0x51f1b3,{'priority':'high'}),_0x451782['model']['document']['registerPostFixer'](()=>{let _0x437c03=!0x1;const _0x41dc83=Array['from'](_0x451782['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5442db,data:_0x76c63f}of _0x41dc83){const {group:_0x2395fc,type:_0x36b978,id:_0x4087e3}=_0x34abe8['_splitMarkerName'](_0x5442db);if('suggestion'!=_0x2395fc||'deletion'!=_0x36b978||_0x76c63f['oldRange'])continue;if(!_0x34abe8['hasSuggestion'](_0x4087e3))continue;const _0x16c7f7=_0x34abe8['getSuggestion'](_0x4087e3)['getRanges'](),_0x5494e5=_0x451782['plugins']['get']('Users')['me'];for(const _0x3e1ee1 of _0x34abe8['getSuggestions']()){if(!_0x3e1ee1['isInContent']||_0x3e1ee1['author']!=_0x5494e5)continue;if('formatBlock'!=_0x3e1ee1['type']||'tablePasteCell'!=_0x3e1ee1['subType'])continue;if(_0x3e1ee1['getRanges']()['every'](_0x2e6eb1=>_0x16c7f7['some'](_0x2b589b=>_0x2b589b['containsRange'](_0x2e6eb1,!0x0)))){for(const _0x32b8ad of _0x3e1ee1['getAllAdjacentSuggestions']())_0x32b8ad['isInContent']&&(_0x32b8ad['discard'](),_0x437c03=!0x0);}}}return _0x437c03;}),_0x451782['model']['document']['registerPostFixer'](_0x5940c9=>{const _0x4de00b=_0x451782['commands']['get']('redo');if(!_0x4de00b||!_0x4de00b['_createdBatches']['has'](_0x5940c9['batch']))return!0x1;let _0x1ca905=!0x1;const _0x74a020=_0x451782['plugins']['get']('Users')['me'],_0x320554=_0x451782['model']['document']['differ']['getChanges'](),_0x5b7f00=Array['from'](_0x451782['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x282d43,data:_0x3a2ad2})=>{const {group:_0x469e31,subType:_0x22b108,authorId:_0x56db39}=_0x34abe8['_splitMarkerName'](_0x282d43);return'suggestion'==_0x469e31&&'tablePaste'==_0x22b108&&_0x56db39==_0x74a020['id']&&!_0x3a2ad2['oldRange'];});for(const _0x45f611 of _0x320554){if('insert'!=_0x45f611['type']||'tableCellSuggestion'!=_0x45f611['name']||0x1!=_0x45f611['length'])continue;const _0x48eda9=_0x5940c9['createRange'](_0x45f611['position'],_0x45f611['position']['getShiftedBy'](0x1));if(!_0x5b7f00['find'](({data:_0xd74b63})=>_0xd74b63['newRange']['isEqual'](_0x48eda9))){for(const {name:_0x39813f,data:_0x53bb35}of _0x5b7f00)if(_0x48eda9['containsRange'](_0x53bb35['newRange'])){_0x5940c9['updateMarker'](_0x39813f,{'range':_0x48eda9}),_0x1ca905=!0x0;break;}}}return _0x1ca905;}),_0x451782['model']['document']['registerPostFixer'](_0x5c330f=>{let _0x1d4793=!0x1;const _0xf0541e=_0x451782['plugins']['get']('Users')['me'],_0x530033=_0x34abe8['getSuggestions']()['filter'](_0x344e67=>_0x344e67['isInContent']&&_0x344e67['author']==_0xf0541e),_0x204980=new Set(),_0x3e255d=new Set();for(const _0xe6aecb of _0x530033)if('tablePaste'==_0xe6aecb['subType'])for(const _0x5dad2e of _0xe6aecb['getMarkers']()){const _0xaeaf5d=_0x5dad2e['getRange']()['getContainedElement']();if(_0xaeaf5d){if(_0xaeaf5d['is']('element','tableCellSuggestion')&&je(_0xaeaf5d)){_0xe6aecb['removeMarker'](_0x5dad2e['name']),_0x204980['add'](_0xaeaf5d),_0x1d4793=!0x0;const _0x5cb297=_0xaeaf5d['nextSibling'],_0x3b9b5c=_0xaeaf5d['previousSibling'],_0x218182=_0x5cb297&&_0x5cb297['is']('element','tableCellSuggestion'),_0x517668=_0x3b9b5c&&_0x3b9b5c['is']('element','tableCellSuggestion');_0x218182&&!_0x204980['has'](_0x5cb297)&&_0x3e255d['add'](_0x5cb297),_0x517668&&!_0x204980['has'](_0x3b9b5c)&&_0x3e255d['add'](_0x3b9b5c);}else _0xaeaf5d['is']('element','paragraph')&&_0xaeaf5d['isEmpty']&&(_0xe6aecb['removeMarker'](_0x5dad2e['name']),_0x1d4793=!0x0);}}else{if('tablePasteCell'==_0xe6aecb['subType']){if(!_0xe6aecb['attributes']||!_0xe6aecb['attributes']['tablePasteChainId'])continue;const _0x70b64a=_0xe6aecb['attributes']['markerAttributes'];if(_0x70b64a&&Object['keys'](_0x70b64a)['length'])continue;const _0x21b82b=_0xe6aecb['attributes']['tablePasteChainId'];let _0x22b3f3=!0x0,_0x44a2e4=!0x0;for(const _0x3e69da of _0x530033)if(_0x3e69da['subType']&&_0x3e69da['subType']['startsWith']('tablePaste')){if(!_0x3e69da['attributes']['tablePasteChainId']){_0x44a2e4=!0x1;break;}if(_0x3e69da['id']!=_0xe6aecb['id']&&_0x3e69da['attributes']['tablePasteChainId']==_0x21b82b){_0x22b3f3=!0x1;break;}}_0x44a2e4&&_0x22b3f3&&(_0xe6aecb['removeMarkers'](),_0x1d4793=!0x0);}}for(const _0x2473c6 of _0x204980)_0x5c330f['remove'](_0x2473c6);for(const _0x2afaad of _0x3e255d)_0x5c330f['unwrap'](_0x2afaad);return _0x1d4793;}),_0x451782['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x171e90=>_0x11b110(_0x171e90),'converterPriority':'high'}),_0x451782['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2dd2a1,_0x90920b)=>_0x90920b['options']['showSuggestionHighlights']?_0x11b110(_0x2dd2a1,!0x1):null,'converterPriority':'high'});const _0x4f172e=_0x451782['editing']['view'];this['listenTo'](_0x4f172e['document'],'clipboardOutput',(_0x43fe61,_0x54896)=>{const _0x3c7eb8=[];for(const _0x10ec83 of _0x4f172e['createRangeIn'](_0x54896['content'])['getItems']())_0x10ec83['is']('element','suggestion-td')&&_0x3c7eb8['push'](_0x10ec83);_0x4f172e['change'](_0x2708b1=>{for(const _0x3e2f0b of _0x3c7eb8)_0x2708b1['move'](_0x2708b1['createRangeIn'](_0x3e2f0b),_0x2708b1['createPositionBefore'](_0x3e2f0b)),_0x2708b1['remove'](_0x3e2f0b);});});}}function je(_0x346900){if(_0x346900['isEmpty'])return!0x0;const _0x16992c=_0x346900['getChild'](0x0);return _0x16992c['is']('element','paragraph')&&_0x16992c['isEmpty'];}function Ae(_0xf66ac7,_0xa8a117={},_0x4cf763){for(const {isAnchor:_0x2fb0ac,cellHeight:_0x1dac95,cellWidth:_0x5ba858}of _0x4cf763['createTableWalker'](_0xf66ac7,{'includeAllSlots':!0x0,..._0xa8a117}))if(!_0x2fb0ac||0x1!=_0x1dac95||0x1!=_0x5ba858)return!0x1;return!0x0;}class Dt extends _0x56605c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xac48df=this['editor']['plugins']['get']('TrackChangesEditing');_0xac48df['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xac48df['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xac48df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xac48df['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xac48df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xac48df['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x540698,_0x916e61){const _0x5148c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10e3f4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3ff2e1=_0x916e61['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x25489e=_0x10e3f4['getColumnGroupElement'](_0x3ff2e1);let _0x4e0dca=_0x25489e?_0x10e3f4['getTableColumnsWidths'](_0x25489e):null,_0x340915=_0x3ff2e1['getAttribute']('tableWidth')||null;const _0x3d610a=_0x916e61['tableWidth']||_0x340915,_0x52bc04=_0x916e61['columnWidths']||_0x4e0dca,_0xcb5b85=this['editor']['plugins']['get']('Users')['me'];for(const _0x53f7ac of _0x5148c9['getSuggestions']()){const _0x1606e0=_0x53f7ac['getContainedElement']();if('resizeTable'===_0x53f7ac['subType']&&_0x1606e0===_0x3ff2e1){_0x53f7ac['author']!==_0xcb5b85&&_0x53f7ac['discard']();const _0x21abbf=_0x53f7ac['data']['commandParams'];_0x340915=_0x21abbf[0x0]['tableWidth'],_0x4e0dca=_0x21abbf[0x0]['columnWidths'];break;}}_0x540698({'table':_0x3ff2e1,'tableWidth':_0x3d610a,'columnWidths':_0x52bc04}),_0x5148c9['markBlockFormat'](_0x3ff2e1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x340915,'columnWidths':_0x4e0dca}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x40bae9){if('formatBlock'!=_0x40bae9['type']&&'formatInline'!=_0x40bae9['type'])return;const {data:_0x59b6e7}=_0x40bae9;if(_0x59b6e7&&'resizeTable'===_0x59b6e7['formatGroupId']){const _0xc8aae8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xc8aae8)};}}}class Mt extends _0x56605c{['afterInit'](){const _0x46573f=this['editor'];_0x46573f['plugins']['has']('Template')&&_0x46573f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x56605c{['afterInit'](){const _0x522155=this['editor'];if(!_0x522155['commands']['get']('insertTableOfContents'))return;_0x522155['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5038cc=_0x522155['plugins']['get']('TrackChangesEditing'),_0xd151ae=_0x522155['locale'];_0x5038cc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x590258=>o(_0xd151ae,'ELEMENT_TABLE_OF_CONTENTS',_0x590258));}}class Bt extends _0x56605c{['afterInit'](){const _0x73a8be=this['editor'];if(!_0x73a8be['plugins']['has']('Title'))return;const _0x3aa86c=_0x73a8be['plugins']['get']('TrackChangesEditing');_0x3aa86c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x73a8be['locale'],'ELEMENT_TITLE')),_0x73a8be['model']['document']['registerPostFixer'](_0x167a7d=>{let _0x2a4f73=!0x1;const _0x4ddea5=Array['from'](_0x73a8be['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36430f,data:_0x1a774b}of _0x4ddea5){const {group:_0x2d10fb}=_0x3aa86c['_splitMarkerName'](_0x36430f);if('suggestion'!==_0x2d10fb||!_0x1a774b['newRange'])continue;const _0x2d258d=_0x1a774b['newRange'],_0x148a5f=_0x2d258d['end']['nodeBefore'];if(!_0x148a5f||!_0x148a5f['is']('element','title-content'))continue;if(!_0x2d258d['start']['isTouching'](_0x2d258d['end']))continue;const _0x16acb9=_0x73a8be['model']['schema']['getNearestSelectionRange'](_0x2d258d['end'],'forward');if(_0x16acb9&&_0x16acb9['isCollapsed']){const _0x5d3ecf=_0x167a7d['createRange'](_0x2d258d['start'],_0x16acb9['start']);_0x5d3ecf['isEqual'](_0x2d258d)||(_0x167a7d['updateMarker'](_0x36430f,{'range':_0x5d3ecf}),_0x2a4f73=!0x0);}_0x2a4f73||(_0x167a7d['removeMarker'](_0x36430f),_0x2a4f73=!0x0);}return _0x2a4f73;});}}class Ot extends _0x56605c{['afterInit'](){const _0x422612=this['editor'],_0x5af30c=_0x422612['plugins']['get']('TrackChangesEditing');_0x422612['plugins']['has']('UndoEditing')&&(_0x5af30c['enableCommand']('undo'),_0x5af30c['enableCommand']('redo'));}}class Rt extends _0x56605c{static get['requires'](){return[vt];}['afterInit'](){const _0x15a794=this['editor'];if(!_0x15a794['plugins']['has']('TableCaptionEditing'))return;_0x15a794['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x56605c{['tableProperties'];['tableCellProperties'];constructor(_0x2e0837){super(_0x2e0837),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 _0x3dbdae=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3cb3fd of this['tableProperties'])_0x3dbdae['enableCommand'](_0x3cb3fd,(_0x38d21f,_0x4157c2)=>{const _0x48b037=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3cb3fd,[_0x48b037],this['tableProperties'],'tableProperties',_0x38d21f,_0x4157c2);});_0x3dbdae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3dbdae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3dbdae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5cf627,_0x31091e)=>this['handleDiscardAction'](this['tableProperties'],_0x5cf627,_0x31091e)),_0x3dbdae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b63fb of this['tableCellProperties'])_0x3dbdae['enableCommand'](_0x2b63fb,(_0x4bd005,_0x17318c)=>{const _0x110548=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b63fb,_0x110548,this['tableCellProperties'],'tableCellProperties',_0x4bd005,_0x17318c);});_0x3dbdae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3dbdae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3dbdae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x42b4f5,_0x56d6e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x42b4f5,_0x56d6e4)),_0x3dbdae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3dbdae['descriptionFactory']['registerDescriptionCallback'](_0x5c9d80=>this['handleSuggestionDescription'](_0x5c9d80));}['_handlePropertyChange'](_0x2307ef,_0x2647d3,_0x2a2164,_0x35bf74,_0x433f56,_0x2bf902){const _0x1944b5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2bf902['batch'],()=>{for(const _0x428d40 of _0x2647d3){if(this['_getSuggestion'](_0x428d40,_0x35bf74))_0x433f56(_0x2bf902);else{const _0x40cceb={};for(const _0xb6064d of _0x2a2164){const _0x4c700a=_0x428d40['getAttribute'](_0xb6064d);void 0x0!==_0x4c700a&&(_0x40cceb[_0xb6064d]=_0x4c700a);}_0x433f56(_0x2bf902),_0x1944b5['markBlockFormat'](_0x428d40,{'commandParams':[_0x40cceb]},[],_0x35bf74);}}});}['handleDiscardAction'](_0x35e583,_0x5eda4d,_0x19e23b){const _0x3a48a5=_0x5eda4d[0x0]['start']['nodeAfter'],_0x221750=_0x19e23b['commandParams'][0x0];this['editor']['model']['change'](_0x4b961c=>{for(const _0x574756 of _0x35e583)void 0x0!==_0x221750[_0x574756]?_0x4b961c['setAttribute'](_0x574756,_0x221750[_0x574756],_0x3a48a5):_0x4b961c['removeAttribute'](_0x574756,_0x3a48a5);});}['handleSuggestionDescription'](_0x381cfa){if(_0x381cfa['data'])switch(_0x381cfa['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'](_0x386f19,_0x2c0c44){const _0x54690d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3f565d of _0x54690d['getSuggestions']({'skipNotAttached':!0x0})){const _0x18845c=_0x3f565d['getContainedElement']();if(_0x3f565d['subType']===_0x2c0c44&&_0x18845c===_0x386f19)return _0x3f565d;}return null;}}const m='$elementName';class p extends _0x56605c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x45ec3d,_0x4b3613,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(_0x2e2420){super(_0x2e2420),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x11d10c,_0x23f7e8,_0x339b5f,_0x46b9b3)=>{this['_model']['change'](()=>{for(const _0x46b9f4 of[..._0x46b9b3,..._0x339b5f])this['_model']['markers']['has'](_0x46b9f4)&&_0x2e2420['editing']['reconvertMarker'](_0x46b9f4);});}),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']=_0x2e2420['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(),_0x2e2420['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e2420['config']['get']('trackChanges.trackFormatChanges'),_0x2e2420['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e2420['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2e2420,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x352292=this['editor'],_0x33cfef=(_0x4e33d4,_0x1b219c)=>{if('attribute'!=_0x4e33d4)return'ck-suggestion-marker-'+_0x4e33d4;const _0x4a407b=_0x1b219c['split']('|')[0x0];return this['_isBlockAttribute'](_0x4a407b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x352292['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x11259f=>{const {id:_0x15703d,authorId:_0x1b569e,type:_0x5d788e,subType:_0x4cf6f3}=this['_splitMarkerName'](_0x11259f['markerName']),_0xc8c250=['ck-suggestion-marker',_0x33cfef(_0x5d788e,_0x4cf6f3)];let _0x4ac5da=0xbb8;return this['activeMarkers']['includes'](_0x11259f['markerName'])&&(_0xc8c250['push']('ck-suggestion-marker--active'),_0x4ac5da=0xbc2),'deletion'==_0x5d788e&&(_0x4ac5da+=0x5),{'classes':_0xc8c250,'attributes':{'data-suggestion':_0x15703d,'data-author-id':_0x1b569e},'priority':_0x4ac5da};}}),_0x352292['conversion']['for']('dataDowncast')['add'](_0xdd6bce=>{_0xdd6bce['on']('addMarker:suggestion',(_0x5e5c5d,_0x4b269c,_0x20c0f4)=>{if(!_0x20c0f4['options']['showSuggestionHighlights'])return;const _0x3ac30b=_0x4b269c['item'];if(!_0x3ac30b)return;const _0xe99943=_0x20c0f4['mapper']['toViewElement'](_0x3ac30b);_0x352292['model']['schema']['isObject'](_0x3ac30b)&&_0xe99943&&!_0xe99943['getCustomProperty']('widget')&&_0xe99943['is']('containerElement')&&_0x263d0b(_0xe99943,_0x20c0f4['writer']);},{'priority':'high'});}),_0x352292['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3a1c2e,_0x49d2c2)=>{if(!_0x49d2c2['options']['showSuggestionHighlights'])return null;const {type:_0x53749b,subType:_0x190fd3}=this['_splitMarkerName'](_0x3a1c2e['markerName']);return{'classes':['ck-suggestion-marker',_0x33cfef(_0x53749b,_0x190fd3)],'priority':0xbb8};}});const _0x42f6f9=({showActiveMarkers:_0x23213e=!0x0,isAttributeSuggestion:_0x5021df=!0x1}={})=>(_0x243435,_0x3f17d3,_0x24832f)=>{if(!_0x3f17d3['item'])return;const {id:_0x6f2b16,authorId:_0x5db3ae}=this['_splitMarkerName'](_0x3f17d3['markerName']);if(_0x5021df){const _0x14357c=this['_suggestions']['get'](_0x6f2b16),_0x4c52b8=this['_getAttributeKey'](_0x14357c);if(!this['_isBlockAttribute'](_0x4c52b8))return;}if(_0x3f17d3['item']['is']('selection'))return void _0x24832f['consumable']['consume'](_0x3f17d3['item'],_0x243435['name']);const _0x567655=_0x24832f['mapper']['toViewElement'](_0x3f17d3['item']);if(_0x3f17d3['item']['is']('element')&&_0x352292['model']['schema']['isBlock'](_0x3f17d3['item'])&&!_0x567655['getCustomProperty']('addHighlight')){_0x24832f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x567655),_0x24832f['writer']['setAttribute']('data-suggestion',_0x6f2b16,_0x567655),_0x24832f['writer']['setAttribute']('data-author-id',_0x5db3ae,_0x567655),_0x24832f['mapper']['bindElementToMarker'](_0x567655,_0x3f17d3['markerName']),_0x23213e&&(this['activeMarkers']['includes'](_0x3f17d3['markerName'])?_0x24832f['writer']['addClass']('ck-suggestion-marker--active',_0x567655):_0x24832f['writer']['removeClass']('ck-suggestion-marker--active',_0x567655));for(const _0x4b2b07 of _0x352292['model']['createRangeIn'](_0x3f17d3['item'])['getItems']())_0x24832f['consumable']['consume'](_0x4b2b07,_0x243435['name']);_0x24832f['consumable']['consume'](_0x3f17d3['item'],_0x243435['name']);}};_0x352292['conversion']['for']('dataDowncast')['add'](_0x49297e=>{_0x49297e['on']('addMarker:suggestion:formatBlock',(_0x3b1728,_0x304be5,_0x1c4ff9)=>{_0x1c4ff9['options']['showSuggestionHighlights']&&_0x42f6f9({'showActiveMarkers':!0x1})(_0x3b1728,_0x304be5,_0x1c4ff9);},{'priority':'highest'});}),_0x352292['conversion']['for']('dataDowncast')['add'](_0x576824=>{_0x576824['on']('addMarker:suggestion:attribute',(_0x31f453,_0x149bb9,_0x1fed1e)=>{_0x1fed1e['options']['showSuggestionHighlights']&&_0x42f6f9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x31f453,_0x149bb9,_0x1fed1e);},{'priority':'highest'});}),_0x352292['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xe72cba,_0x29d5d4)=>_0x29d5d4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xe72cba['substr'](0xb)}}),_0x352292['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ed365,{writer:_0x2a2e2f})=>{let _0x386ff2='suggestion:'+_0x4ed365['getAttribute']('suggestion-type')+':'+_0x4ed365['getAttribute']('id');return _0x4ed365['getAttribute']('marker-count')&&(_0x386ff2+=':'+_0x4ed365['getAttribute']('marker-count')),_0x2a2e2f['createElement']('$marker',{'data-name':_0x386ff2});}}),_0x352292['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x352292['conversion']['for']('editingDowncast')['add'](_0x20ab2d=>{_0x20ab2d['on']('addMarker:suggestion:formatBlock',_0x42f6f9(),{'priority':'high'});}),_0x352292['conversion']['for']('editingDowncast')['add'](_0x100f76=>{_0x100f76['on']('addMarker:suggestion:attribute',_0x42f6f9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x352292['conversion']['for']('editingDowncast')['add'](_0x188765=>{_0x188765['on']('removeMarker:suggestion:formatBlock',(_0x1c79d7,_0x4aef0f,_0x1b3c44)=>{const _0x53fc83=_0x1b3c44['mapper']['markerNameToElements'](_0x4aef0f['markerName']);if(_0x53fc83){for(const _0x1a557a of _0x53fc83)_0x1a557a['getCustomProperty']('addHighlight')||(_0x1b3c44['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a557a),_0x1b3c44['writer']['removeAttribute']('data-suggestion',_0x1a557a),_0x1b3c44['writer']['removeAttribute']('data-author-id',_0x1a557a),_0x1b3c44['mapper']['unbindElementFromMarkerName'](_0x1a557a,_0x4aef0f['markerName']));}},{'priority':'high'});}),_0x352292['conversion']['for']('editingDowncast')['add'](_0x469406=>{_0x469406['on']('removeMarker:suggestion:attribute',(_0x516ac9,_0x11736a,_0x450278)=>{const _0x364825=_0x450278['mapper']['markerNameToElements'](_0x11736a['markerName']);if(!_0x364825)return;const {id:_0x47a65a}=this['_splitMarkerName'](_0x11736a['markerName']),_0x16c548=this['_suggestions']['get'](_0x47a65a),_0xf6636a=this['_getAttributeKey'](_0x16c548);if(this['_isBlockAttribute'](_0xf6636a)){for(const _0x57d5a8 of _0x364825)_0x57d5a8['getCustomProperty']('addHighlight')||(_0x450278['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x57d5a8),_0x450278['writer']['removeAttribute']('data-suggestion',_0x57d5a8),_0x450278['writer']['removeAttribute']('data-author-id',_0x57d5a8),_0x450278['mapper']['unbindElementFromMarkerName'](_0x57d5a8,_0x11736a['markerName']));}},{'priority':'high'});}),_0x352292['model']['document']['registerPostFixer'](_0x173d9e=>{let _0x10441b=!0x1;const _0x59e70c=Array['from'](_0x352292['model']['document']['differ']['getChangedMarkers']()),_0x11ab7d=new Set();for(const {name:_0x54e6c8,data:_0x2d821b}of _0x59e70c){const {group:_0x2b9c64,type:_0x11e537,subType:_0xa3c74e,id:_0x5d1616}=this['_splitMarkerName'](_0x54e6c8);if('suggestion'!==_0x2b9c64)continue;const _0x5194e4=this['_suggestions']['get'](_0x5d1616);if(null!=_0x2d821b['newRange']){'formatInline'==_0x11e537&&(_0x10441b=_0x10441b||Pt(_0x2d821b['newRange'],_0x54e6c8,_0x173d9e,_0x352292['model']['schema']));const _0x31b1cb='attribute'==_0x11e537&&this['_isBlockAttribute'](_0xa3c74e['split']('|')[0x0]);if(_0x2d821b['newRange']['isCollapsed']||'$graveyard'==_0x2d821b['newRange']['root']['rootName']||'formatBlock'==_0x11e537&&!Ft(_0x2d821b['newRange'])||_0x31b1cb&&!Ft(_0x2d821b['newRange'])||'deletion'==_0x11e537&&!(!Vt(_0x4dbc8e=_0x2d821b['newRange'])&&!function(_0x2658e9){return _0x2658e9['start']['parent']==_0x2658e9['end']['nodeBefore']&&_0x2658e9['start']['isAtEnd'];}(_0x4dbc8e)))_0x173d9e['removeMarker'](_0x54e6c8),_0x10441b=!0x0;else{if(!_0x5194e4||!_0x5194e4['isInContent'])continue;if(_0x2d821b['newRange']&&_0x2d821b['oldRange']&&_0x2d821b['newRange']['isEqual'](_0x2d821b['oldRange']))continue;_0x11ab7d['add'](_0x5194e4);}}}var _0x4dbc8e;return _0x11ab7d['size']>0x0&&(_0x10441b=!!this['_joinWithAdjacentSuggestions'](_0x11ab7d)||_0x10441b),_0x10441b;}),_0x352292['model']['document']['registerPostFixer'](_0x2644dc=>{let _0x19a43b=!0x1;for(const _0x508054 of _0x352292['model']['document']['differ']['getChanges']())if('insert'==_0x508054['type'])for(const _0x2269fb of this['_suggestions']['values']()){if(_0x2269fb['isMultiRange']||!_0x2269fb['isInContent'])continue;const _0x1c93db='formatBlock'==_0x2269fb['type'],_0x12f2cb=this['_getAttributeKey'](_0x2269fb),_0x230976=_0x12f2cb&&this['_isBlockAttribute'](_0x12f2cb);if(!_0x1c93db&&!_0x230976)continue;const _0x59ba94=_0x2269fb['getFirstRange']();if(_0x59ba94['start']['parent']!=_0x59ba94['end']['parent']&&!_0x59ba94['end']['isAtEnd']){const _0x4fd62b=_0x352292['model']['createPositionAt'](_0x59ba94['start']['nodeAfter'],'end'),_0x18c0ec=_0x352292['model']['createRange'](_0x59ba94['start'],_0x4fd62b);_0x2644dc['updateMarker'](_0x2269fb['getFirstMarker'](),{'range':_0x18c0ec}),_0x19a43b=!0x0;}}return _0x19a43b;}),_0x352292['model']['document']['registerPostFixer'](_0x59887c=>this['_processAttributeChanges'](_0x59887c)),_0x352292['model']['document']['registerPostFixer'](_0x1aa696=>!_0x1aa696['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1aa696)),_0x352292['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x352292['model']['document']['on']('change:data',(_0x51dcba,_0x1b1b0a)=>{if(!_0x1b1b0a['isLocal']||_0x1b1b0a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x414e7e=_0x352292['model']['document']['differ']['getChanges']();if(0x0==_0x414e7e['length'])return;const _0x41f5c=[],_0x4c3ab1=_0x414e7e['filter'](_0x15a399=>'attribute'==_0x15a399['type']),_0x15fb36=_0x414e7e['filter'](_0x3a4527=>'insert'==_0x3a4527['type']&&'$text'!=_0x3a4527['name']);for(const _0x361a25 of _0x4c3ab1)this['_isRegisteredAttribute'](_0x361a25['attributeKey'])&&_0x41f5c['push']({'key':_0x361a25['attributeKey'],'newValue':_0x361a25['attributeNewValue'],'oldValue':_0x361a25['attributeOldValue'],'range':Lt(_0x361a25['range'],_0x352292['model'])});for(const _0x1a9123 of _0x15fb36){if('rename'!=_0x1a9123['action']&&'refresh'!=_0x1a9123['action'])continue;const _0x316f30=Jt(_0x1a9123['position']['nodeAfter'],_0x352292['model']),_0x706aba=_0x1a9123['before'];'rename'==_0x1a9123['action']&&_0x41f5c['push']({'key':m,'newValue':_0x1a9123['name'],'oldValue':_0x706aba['name'],'range':_0x316f30});for(const [_0x3d2e44,_0x312f48]of _0x706aba['attributes']){if(!this['_isRegisteredAttribute'](_0x3d2e44))continue;const _0x25a27e=_0x1a9123['attributes']['get'](_0x3d2e44);_0x312f48!==_0x25a27e&&_0x41f5c['push']({'key':_0x3d2e44,'newValue':_0x25a27e,'oldValue':_0x312f48,'range':_0x316f30});}for(const [_0x51fb7b,_0x50fac7]of _0x1a9123['attributes'])this['_isRegisteredAttribute'](_0x51fb7b)&&(_0x706aba['attributes']['has'](_0x51fb7b)||_0x41f5c['push']({'key':_0x51fb7b,'newValue':_0x50fac7,'oldValue':null,'range':_0x316f30}));}0x0!=_0x41f5c['length']&&_0x352292['model']['enqueueChange'](_0x1b1b0a,_0x2a8d2d=>{const _0x386aec=_0xf2c1f9();for(const {range:_0x1c8313,key:_0xd39aea,oldValue:_0x21fda9,newValue:_0x4a3d27}of _0x41f5c)this['markAttributeChange'](_0x1c8313,_0xd39aea,_0x21fda9,_0x4a3d27,{'groupId':_0x386aec});this['_reduceExistingSuggestions'](_0x2a8d2d,_0x41f5c);});},{'priority':'lowest'}),_0x352292['model']['markers']['on']('update:suggestion',(_0x275fdd,_0x26e00a,_0x355853)=>{if(null==_0x355853){const {id:_0x267e9f}=this['_splitMarkerName'](_0x26e00a['name']),_0x13f05f=this['_suggestions']['get'](_0x267e9f);_0x13f05f&&_0x13f05f['addMarkerName'](_0x26e00a['name']);}}),_0x352292['model']['document']['on']('change:data',()=>{const _0xb71512=Array['from'](_0x352292['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b23b1=>'suggestion'===this['_splitMarkerName'](_0x5b23b1['name'])['group']);if(0x0===_0xb71512['length'])return;_0xb71512['sort']((_0x590172,_0x1cda7a)=>{const _0x263b74=_0x590172['data']['oldRange'],_0x19e62d=_0x1cda7a['data']['oldRange'];return null===_0x263b74&&null===_0x19e62d?0x0:null===_0x263b74&&null!==_0x19e62d?-0x1:null!==_0x263b74&&null===_0x19e62d?0x1:_0x263b74['start']['isBefore'](_0x19e62d['start'])?-0x1:0x1;});const _0x5cdb62=new Set(),_0x2d1a44=new Set();for(const {name:_0x4db069,data:_0xaf8ad1}of _0xb71512){const {id:_0x4dc503}=this['_splitMarkerName'](_0x4db069);if(null===_0xaf8ad1['oldRange']){const _0x3a56f4=this['_handleNewSuggestionMarker'](_0x4db069);_0x2d1a44['add'](_0x3a56f4);}else{const _0x45392b=this['_suggestions']['get'](_0x4dc503);null!==_0xaf8ad1['newRange']||_0x45392b['isInContent']?(_0x5cdb62['add'](_0x45392b['head']),_0x2d1a44['add'](_0x45392b)):this['_removeSuggestion'](_0x45392b);}}_0x2d1a44['size']>0x0&&this['_refreshSuggestionsChain'](_0x2d1a44);for(const _0xca2d40 of _0x5cdb62)this['fire']('suggestionChanged',_0xca2d40);}),_0x352292['model']['on']('applyOperation',(_0x5da1f5,_0x2c3873)=>{const _0x5cf82e=_0x2c3873[0x0];if(!this['_suggestions']['size'])return;if(!_0x5cf82e['isDocumentOperation'])return;if(_0x5cf82e['batch']['isUndo']||!_0x5cf82e['batch']['isLocal'])return;let _0x51099b,_0x5ee476;switch(_0x5cf82e['type']){case'insert':_0x51099b=_0x352292['model']['createPositionAt'](_0x5cf82e['position']),_0x5ee476=_0x51099b['getShiftedBy'](_0x5cf82e['howMany']);break;case'split':_0x51099b=_0x352292['model']['createPositionAt'](_0x5cf82e['splitPosition']),_0x5ee476=_0x352292['model']['createPositionAt'](_0x5cf82e['moveTargetPosition']);break;case'move':_0x51099b=_0x352292['model']['createPositionAt'](_0x5cf82e['targetPosition']),_0x5ee476=_0x51099b['getShiftedBy'](_0x5cf82e['howMany']);break;default:return;}const _0x7a9eda=_0x352292['model']['createRange'](_0x51099b,_0x5ee476);_0x352292['model']['change'](()=>{for(const {suggestion:_0x18b208,meta:_0x376a42}of this['_findSuggestions'](_0x7a9eda)){if(_0x18b208['isMultiRange'])continue;if('formatInline'==_0x18b208['type'])continue;const _0xa2bb4d=this['_getAttributeKey'](_0x18b208);if(_0xa2bb4d&&this['_isBlockAttribute'](_0xa2bb4d)&&'split'!=_0x5cf82e['type'])continue;const _0x15ac88=_0x18b208['data']&&_0x18b208['data']['multipleBlocks'];('formatBlock'!=_0x18b208['type']||'split'==_0x5cf82e['type']&&!_0x15ac88)&&(_0x376a42['containsRangeInObject']||'insertion'==_0x18b208['type']&&_0x376a42['isOwn']||_0x18b208['getFirstRange']()['containsRange'](_0x7a9eda)&&this['_breakSuggestionMarker'](_0x18b208,_0x51099b,_0x5ee476));}});},{'priority':'lowest'}),_0x352292['model']['on']('deleteContent',(_0x53bf34,_0x9d4172)=>{const _0x3cdc6a=_0x9d4172[0x0],_0x1763e5=_0x9d4172[0x1];if(_0x1763e5&&_0x1763e5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cdc6a['isCollapsed'])return;const _0x54a5fb=_0x352292['model']['schema'],{start:_0x1a9886,end:_0x190f32}=_0x3cdc6a['getFirstRange'](),_0x5bc887=_0x1a9886['nodeAfter']&&_0x54a5fb['isLimit'](_0x1a9886['nodeAfter'])?null:_0x54a5fb['getNearestSelectionRange'](_0x1a9886,'forward'),_0x3c4781=_0x190f32['nodeBefore']&&_0x54a5fb['isLimit'](_0x190f32['nodeBefore'])?null:_0x54a5fb['getNearestSelectionRange'](_0x190f32,'backward'),_0xe2f220=_0x352292['model']['createRange'](_0x5bc887?_0x5bc887['start']:_0x1a9886,_0x3c4781?_0x3c4781['end']:_0x190f32);_0x352292['model']['change'](_0x2883f4=>{this['markDeletion'](_0xe2f220);const _0x150210=_0x352292['model']['schema']['getNearestSelectionRange'](_0xe2f220['start']);_0x3cdc6a['is']('documentSelection')?_0x2883f4['setSelection'](_0x150210):_0x3cdc6a['setTo'](_0x150210);}),_0x53bf34['stop']();},{'priority':_0x3ae2d9['normal']+0xa}),_0x352292['model']['on']('insertContent',(_0x3fa7d3,_0x12eef4)=>{const _0x216df4=_0x12eef4[_0x12eef4['length']-0x1];_0x216df4&&_0x216df4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x352292['model']['change'](()=>{let _0x57646c=_0x352292['model']['insertContent'](_0x12eef4[0x0],_0x12eef4[0x1],_0x12eef4[0x2],{'forceDefaultExecution':!0x0});if(!_0x57646c)return;_0x3fa7d3['return']=_0x57646c['clone']();const _0x19e388=_0x57646c['end']['nodeBefore'],_0x1e5ca4=_0x352292['model']['schema'];_0x19e388&&_0x1e5ca4['isBlock'](_0x19e388)&&!_0x1e5ca4['isObject'](_0x19e388)&&(_0x57646c=_0x352292['model']['createRange'](_0x57646c['start'],_0x352292['model']['createPositionAt'](_0x19e388,'end'))),this['markInsertion'](_0x57646c);}),_0x3fa7d3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ae1f5=new O(_0x352292,this['_suggestions']);_0x352292['commands']['add']('acceptSuggestion',_0x2ae1f5),this['enableCommand']('acceptSuggestion');const _0x499751=new R(_0x352292,this['_suggestions']);_0x352292['commands']['add']('discardSuggestion',_0x499751),this['enableCommand']('discardSuggestion'),_0x352292['commands']['add']('acceptAllSuggestions',new x(_0x352292,_0x2ae1f5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x352292['commands']['add']('discardAllSuggestions',new x(_0x352292,_0x499751,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x352292['commands']['add']('acceptSelectedSuggestions',new E(_0x352292,_0x2ae1f5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x352292['commands']['add']('discardSelectedSuggestions',new E(_0x352292,_0x499751,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3ed173=_0x352292['plugins']['get']('CommentsRepository');this['listenTo'](_0x3ed173,'addComment',(_0x547094,{threadId:_0x32ce95})=>{const _0x164e1f=this['_suggestions']['get'](_0x32ce95);_0x164e1f&&_0x164e1f['commentThread']&&0x1===_0x164e1f['commentThread']['length']&&this['_updateSuggestionData'](_0x32ce95,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3ed173,'removeComment',(_0x30097a,{threadId:_0x20e78a})=>{const _0x4f705c=this['_suggestions']['get'](_0x20e78a);_0x4f705c&&_0x4f705c['commentThread']&&!_0x4f705c['commentThread']['length']&&this['_updateSuggestionData'](_0x20e78a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c48b4){const _0x291426=_0x29e053([0x70,0x4c,0x54,0x76,0x53,0x6f,0x6b,0x72,0x32,0x56,0x4f,0x36,0x58,0x73,0x38,0x65,0x4e,0x39,0x57,0x6e,0x75,0x77,0x4a,0x79,0x33,0x74,0x52,0x49,0x6d,0x63,0x50,0x34,0x46,0x6a,0x51,0x68,0x44,0x55,0x64,0x4b,0x69,0x30,0x43,0x7a,0x6c,0x78,0x31,0x5a,0x61,0x48,0x35,0x47,0x59,0x37,0x41,0x45,0x42,0x71,0x62,0x66,0x67,0x4d]),_0x500a99=0xd3164c1,_0x29065c=0xd3633c9^_0x500a99,_0xac8a15=window[_0x29e053([0x44,0x61,0x74,0x65])][_0x29e053([0x6e,0x6f,0x77])](),_0x4384f0=_0x4c48b4[_0x29e053([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe78d9e=new window[(_0x29e053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d747b=>{_0x4384f0[_0x29e053([0x6f,0x6e,0x63,0x65])](_0x29e053([0x72,0x65,0x61,0x64,0x79]),_0x1d747b);}),_0x179264={[_0x29e053([0x6b,0x74,0x79])]:_0x29e053([0x45,0x43]),[_0x29e053([0x75,0x73,0x65])]:_0x29e053([0x73,0x69,0x67]),[_0x29e053([0x63,0x72,0x76])]:_0x29e053([0x50,0x2d,0x32,0x35,0x36]),[_0x29e053([0x78])]:_0x29e053([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]),[_0x29e053([0x79])]:_0x29e053([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]),[_0x29e053([0x61,0x6c,0x67])]:_0x29e053([0x45,0x53,0x32,0x35,0x36])},_0x15b3a4=_0x4384f0[_0x29e053([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29e053([0x67,0x65,0x74])](_0x29e053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f0217(){let _0x4ff1de,_0xc2d03=null,_0x23acaa=null;try{if(_0x15b3a4==_0x29e053([0x47,0x50,0x4c]))return _0x29e053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ff1de=_0x5f1464(),!_0x4ff1de)return _0x29e053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ff1de[_0x29e053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23acaa=_0x268688(_0x4ff1de[_0x29e053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ff1de[_0x29e053([0x6a,0x74,0x69])])),await _0x30f021()?_0x286de0()?_0x3241e7()?_0x29e053([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29a6bc()?(_0x4ff1de[_0x29e053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29e053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc2d03=_0x5b8bf8(_0x29e053([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ff1de[_0x29e053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29e053([0x74,0x72,0x69,0x61,0x6c])&&(_0xc2d03=_0x5b8bf8(_0x29e053([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ff1de[_0x29e053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29e053([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xc2d03=_0x5b8bf8(_0x29e053([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38dba9()):_0x29e053([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29e053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29e053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4926d4){return _0x29e053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3241e7(){const _0x505dde=[_0x29e053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29e053([0x74,0x72,0x69,0x61,0x6c])][_0x29e053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ff1de[_0x29e053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xac8a15/0x3e8:0xe10*_0x29065c;return _0x4ff1de[_0x29e053([0x65,0x78,0x70])]<_0x505dde;}function _0x286de0(){const _0x599011=_0x4ff1de[_0x29e053([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x599011&&(!!_0x599011[_0x29e053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e053([0x2a]))||(!!_0x599011[_0x29e053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e053([0x54,0x43]))||!(!_0x599011[_0x29e053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e053([0x52,0x54,0x43]))||!_0x3debf7())));}function _0x29a6bc(){const _0xd8bae6=_0x4ff1de[_0x29e053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd8bae6||0x0==_0xd8bae6[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14fd1b}=new URL(window[_0x29e053([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd8bae6[_0x29e053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14fd1b))return!0x0;const _0x569b24=_0x14fd1b[_0x29e053([0x73,0x70,0x6c,0x69,0x74])](_0x29e053([0x2e]));return _0xd8bae6[_0x29e053([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1afdc8=>_0x1afdc8[_0x29e053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e053([0x2a])))[_0x29e053([0x6d,0x61,0x70])](_0xba2c0=>_0xba2c0[_0x29e053([0x73,0x70,0x6c,0x69,0x74])](_0x29e053([0x2e])))[_0x29e053([0x73,0x6f,0x6d,0x65])](_0x2af5a1=>_0x569b24[_0x29e053([0x65,0x76,0x65,0x72,0x79])]((_0x41221e,_0x13fa8b)=>_0x2af5a1[_0x13fa8b]===_0x41221e||_0x2af5a1[_0x13fa8b]===_0x29e053([0x2a])));}function _0x38dba9(){return _0xc2d03&&_0x23acaa?new window[(_0x29e053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d3a34,_0x2e19d4)=>{_0xc2d03[_0x29e053([0x74,0x68,0x65,0x6e])](_0x1d3a34,_0x2e19d4),_0x23acaa[_0x29e053([0x74,0x68,0x65,0x6e])](_0x3b133e=>{_0x3b133e!=_0x29e053([0x56,0x61,0x6c,0x69,0x64])&&_0x1d3a34(_0x3b133e);},_0x2e19d4);}):_0xc2d03||_0x23acaa||_0x29e053([0x56,0x61,0x6c,0x69,0x64]);}}function _0x268688(_0xd9dd79,_0x424fdf){return new window[(_0x29e053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e30b=>{if(_0x5dece7())return _0x1e30b(_0x29e053([0x56,0x61,0x6c,0x69,0x64]));_0x2fe3b4(),_0x4384f0[_0x29e053([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29e053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42a22d=!0x1;const _0x58dc7e=_0xf2c1f9();function _0x376a19(_0x3b1b9f){return!!_0x3b1b9f&&(typeof _0x3b1b9f===_0x29e053([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b1b9f===_0x29e053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b1b9f[_0x29e053([0x74,0x68,0x65,0x6e])]===_0x29e053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b1b9f[_0x29e053([0x63,0x61,0x74,0x63,0x68])]===_0x29e053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x480d49(_0x6985bd){_0x41f5ff(_0x6985bd)[_0x29e053([0x74,0x68,0x65,0x6e])](_0x4f2dc7=>{if(!_0x4f2dc7||_0x4f2dc7[_0x29e053([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29e053([0x6f,0x6b]))return _0x29e053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x155a4c(_0x53b2c6(_0x58dc7e+_0x424fdf))!=_0x4f2dc7[_0x29e053([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29e053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29e053([0x56,0x61,0x6c,0x69,0x64]);})[_0x29e053([0x74,0x68,0x65,0x6e])](_0x4fe14b=>(_0x1664fc(),_0x4fe14b),()=>{const _0x2ee524=_0x37b3b6();return null==_0x2ee524?(_0x1664fc(),_0x29e053([0x56,0x61,0x6c,0x69,0x64])):_0x29e053(_0xac8a15-_0x2ee524>(0x293de0c1^_0x500a99)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29e053([0x74,0x68,0x65,0x6e])](_0x1e30b)[_0x29e053([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e30b(_0x29e053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x116da2=0xd078a41^_0x500a99;function _0x1664fc(){const _0x26281d=_0x29e053([0x6c,0x6c,0x63,0x74,0x2d])+_0x155a4c(_0x53b2c6(_0xd9dd79)),_0x40566e=_0x3529b8(_0x155a4c(window[_0x29e053([0x4d,0x61,0x74,0x68])][_0x29e053([0x63,0x65,0x69,0x6c])](_0xac8a15/_0x116da2)));window[_0x29e053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e053([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26281d,_0x40566e);}function _0x37b3b6(){const _0x29f0db=_0x29e053([0x6c,0x6c,0x63,0x74,0x2d])+_0x155a4c(_0x53b2c6(_0xd9dd79)),_0x383af5=window[_0x29e053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e053([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29f0db);return _0x383af5?window[_0x29e053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3529b8(_0x383af5),0x10)*_0x116da2:null;}function _0x41f5ff(_0x531984){return new window[(_0x29e053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x198f6e,_0xa625d7)=>{_0x531984[_0x29e053([0x74,0x68,0x65,0x6e])](_0x198f6e,_0xa625d7),window[_0x29e053([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa625d7,0xd30b001^_0x500a99);});}}_0x4384f0[_0x29e053([0x6f,0x6e])](_0x29e053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4241f7,_0x161785)=>{if(_0x161785[0x0]!=_0xd9dd79)return _0x1e30b(_0x29e053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x161785[0x1]={..._0x161785[0x1],[_0x29e053([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58dc7e};},{[_0x29e053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e053([0x68,0x69,0x67,0x68])}),_0x4384f0[_0x29e053([0x6f,0x6e])](_0x29e053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11a78a=>{_0x376a19(_0x11a78a[_0x29e053([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42a22d=!0x0,_0x480d49(_0x11a78a[_0x29e053([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29e053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e053([0x6c,0x6f,0x77])}),_0xe78d9e[_0x29e053([0x74,0x68,0x65,0x6e])](()=>{_0x42a22d||_0x1e30b(_0x29e053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5dece7(){return _0x4384f0[_0x29e053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e053([0x76,0x69,0x65,0x77])][_0x29e053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29e053([0x61,0x75,0x74,0x6f]);}function _0x2fe3b4(){_0x4384f0[_0x29e053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e053([0x76,0x69,0x65,0x77])][_0x29e053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29e053([0x61,0x75,0x74,0x6f]);}}function _0x5b8bf8(_0x3f5dad){const _0x3e81db=[new window[(_0x29e053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e25be=>setTimeout(_0x5e25be,0xd385a0d^_0x500a99)),_0xe78d9e[_0x29e053([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29e053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b0e5=>{let _0x12cac0=0x0;_0x4384f0[_0x29e053([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e053([0x6f,0x6e])](_0x29e053([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x497957,_0x5acb50)=>{_0x5acb50[0x0][_0x29e053([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12cac0++,_0x12cac0==(0xd316539^_0x500a99)&&(_0x56b0e5(),_0x497957[_0x29e053([0x6f,0x66,0x66])]());});}))];return window[_0x29e053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29e053([0x72,0x61,0x63,0x65])](_0x3e81db)[_0x29e053([0x74,0x68,0x65,0x6e])](()=>_0x3f5dad);}async function _0x5d69d3(){await _0xe78d9e,_0x4384f0[_0x29e053([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e053([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x56fc18,_0x4384f0[_0x29e053([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e053([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x56fc18,_0x4384f0[_0x29e053([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29e053([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3debf7(){return _0x1f2753(_0x29e053([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c7456(_0x29e053([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29e053([0x73,0x74,0x61,0x74,0x65])]==_0x29e053([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49c009(_0x170ba8){const _0xa908af=_0x310231();_0x4384f0[_0xa908af]=_0x29e053([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x170ba8,_0x170ba8!=_0x29e053([0x56,0x61,0x6c,0x69,0x64])&&_0x5d69d3();}function _0x310231(){const _0x55f736=window[_0x29e053([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29e053([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29e053([0x6e,0x6f,0x77])]())[_0x29e053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29e053([0x2e]),'');let _0x310ce8=_0x29e053([0x70]);for(let _0x1081b0=0x0;_0x1081b0<_0x55f736[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1081b0+=0x2){let _0x1198b2=window[_0x29e053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55f736[_0x29e053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1081b0,_0x1081b0+0x2));_0x1198b2>=_0x291426[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1198b2-=_0x291426[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x310ce8+=_0x291426[_0x1198b2];}return _0x310ce8;}function _0x5f1464(){const _0x29a831=_0x15b3a4[_0x29e053([0x73,0x70,0x6c,0x69,0x74])](_0x29e053([0x2e]));if(0x3!=_0x29a831[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x474362(_0x29a831[0x1]);function _0x474362(_0x3d5322){const _0x2056f2=_0x126432(_0x3d5322);return _0x2056f2&&_0x1b597b()?_0x2056f2:null;function _0x1b597b(){const _0x3b1466=_0x2056f2[_0x29e053([0x6a,0x74,0x69])],_0x47b463=window[_0x29e053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b1466[_0x29e053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1466[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb54e41={..._0x2056f2,[_0x29e053([0x6a,0x74,0x69])]:_0x3b1466[_0x29e053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b1466[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb54e41[_0x29e053([0x76,0x63])],_0x53b2c6(_0xb54e41)==_0x47b463;}}}async function _0x30f021(){let _0x4210d0=!0x0;try{const _0x546b8c=_0x15b3a4[_0x29e053([0x73,0x70,0x6c,0x69,0x74])](_0x29e053([0x2e])),[_0x1daa37,_0x1084c4,_0x162039]=_0x546b8c;return _0x42573b(_0x1daa37),await _0x4119e1(_0x1daa37,_0x1084c4,_0x162039),_0x4210d0;}catch(_0x278cc7){return!0x1;}function _0x42573b(_0x41ae43){const _0x558ddc=_0x126432(_0x41ae43);_0x558ddc&&_0x558ddc[_0x29e053([0x61,0x6c,0x67])]==_0x29e053([0x45,0x53,0x32,0x35,0x36])||(_0x4210d0=!0x1);}async function _0x4119e1(_0x500b9a,_0x1917db,_0x5ac87b){const _0x1b2c9d=window[_0x29e053([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29e053([0x66,0x72,0x6f,0x6d])](_0x2f9fa4(_0x5ac87b),_0x193ae3=>_0x193ae3[_0x29e053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9349af=new window[(_0x29e053([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29e053([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x500b9a+_0x29e053([0x2e])+_0x1917db),_0x164583=window[_0x29e053([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29e053([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x164583)return;const _0x8d435a=await _0x164583[_0x29e053([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29e053([0x6a,0x77,0x6b]),_0x179264,{[_0x29e053([0x6e,0x61,0x6d,0x65])]:_0x29e053([0x45,0x43,0x44,0x53,0x41]),[_0x29e053([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29e053([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29e053([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x164583[_0x29e053([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29e053([0x6e,0x61,0x6d,0x65])]:_0x29e053([0x45,0x43,0x44,0x53,0x41]),[_0x29e053([0x68,0x61,0x73,0x68])]:{[_0x29e053([0x6e,0x61,0x6d,0x65])]:_0x29e053([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8d435a,_0x1b2c9d,_0x9349af)||(_0x4210d0=!0x1);}}function _0x126432(_0x103e83){return _0x103e83[_0x29e053([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29e053([0x65,0x79]))?JSON[_0x29e053([0x70,0x61,0x72,0x73,0x65])](_0x2f9fa4(_0x103e83)):null;}function _0x2f9fa4(_0x23f293){return window[_0x29e053([0x61,0x74,0x6f,0x62])](_0x23f293[_0x29e053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29e053([0x2b]))[_0x29e053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29e053([0x2f])));}function _0x53b2c6(_0x2f59e5){let _0x13ee41=0x1505;function _0x587e32(_0x540504){for(let _0x2269e2=0x0;_0x2269e2<_0x540504[_0x29e053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2269e2++){const _0x1b21e5=_0x540504[_0x29e053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2269e2);_0x13ee41=(_0x13ee41<<0x5)+_0x13ee41+_0x1b21e5,_0x13ee41&=_0x13ee41;}}function _0x3525a1(_0x46d07e){Array[_0x29e053([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46d07e)?_0x46d07e[_0x29e053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3525a1):_0x46d07e&&typeof _0x46d07e==_0x29e053([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29e053([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46d07e)[_0x29e053([0x73,0x6f,0x72,0x74])]()[_0x29e053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2abb6e,_0x44c7b6])=>{_0x587e32(_0x2abb6e),_0x3525a1(_0x44c7b6);}):_0x587e32(window[_0x29e053([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46d07e));}return _0x3525a1(_0x2f59e5),_0x13ee41>>>0x0;}function _0x155a4c(_0x336d79){return _0x336d79[_0x29e053([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29e053([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29e053([0x30]));}function _0x3529b8(_0x128fff){return _0x128fff[_0x29e053([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29e053([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29e053([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f2753(_0x53288e){return _0x4384f0[_0x29e053([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e053([0x68,0x61,0x73])](_0x53288e);}function _0x5c7456(_0x5af41c){return _0x4384f0[_0x29e053([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e053([0x67,0x65,0x74])](_0x5af41c);}function _0x56fc18(){}function _0x29e053(_0x1bb8cf){return _0x1bb8cf['map'](_0xcb96ee=>String['fromCharCode'](_0xcb96ee))['join']('');}_0x49c009(await _0x3f0217());}(this);}set['adapter'](_0x847e77){if(this['_adapter'])throw new _0x4a3251('track-changes-adapter-already-set',this);this['_adapter']=_0x847e77;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x22ed7f=!0x1,toJSON:_0x5974f2=!0x1}={}){const _0xc32686=[];for(const _0x4663bc of this['_suggestions']['values']())_0x22ed7f&&!_0x4663bc['isInContent']||_0xc32686['push'](_0x4663bc);return _0x5974f2?_0xc32686['map'](_0x6a3b99=>_0x6a3b99['toJSON']()):_0xc32686;}['getSuggestion'](_0x3458c1){const _0x5e8797=this['_suggestions']['get'](_0x3458c1);if(!_0x5e8797)throw new _0x4a3251('track-changes-suggestion-not-found',this);return _0x5e8797;}['hasSuggestion'](_0x1275f9){return this['_suggestions']['has'](_0x1275f9);}['addSuggestionData'](_0xc8a479){const {authorId:_0x530316,id:_0x4b1895,attributes:_0x1c3735}=_0xc8a479,[_0x33b511,_0x514b3d]=_0xc8a479['type']['split'](':'),_0x2a8a08=this['_suggestions']['get'](_0x4b1895)||this['_createSuggestion'](_0x33b511,_0x514b3d,_0x4b1895,_0x530316,_0x1c3735);if(this['_addThreadToSuggestion'](_0x2a8a08),this['_checkSuggestionCorrectness'](_0x2a8a08,_0x33b511,_0x514b3d||null,_0x530316),_0x2a8a08['createdAt']=_0xc8a479['createdAt'],_0x2a8a08['_isDataLoaded']=!0x0,_0x1c3735&&_0x1c3735['@external']){const _0x2bc952=_0x1c3735['@external'],_0x521b5b=this['_getExternalAuthor'](_0x2bc952['authorName']);_0x2a8a08['authoredAt']=_0x2bc952['createdAt'],_0x2a8a08['author']=_0x521b5b,_0x2a8a08['isExternal']=!0x0;}else _0x2a8a08['authoredAt']=_0xc8a479['createdAt'];switch(_0xc8a479['data']&&(_0x2a8a08['data']=_0xc8a479['data']),_0xc8a479['attributes']&&(_0x2a8a08['attributes']=_0xc8a479['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a8a08['_saved']=!0x0),this['_suggestionState']['get'](_0x2a8a08)){case'notReady':this['_suggestionState']['set'](_0x2a8a08,'dataReady');break;case'markerReady':_0x2a8a08['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a8a08])),this['_refreshSuggestionsChain'](new Set([_0x2a8a08])),this['_suggestionState']['set'](_0x2a8a08,'ready'),this['fire']('suggestionLoaded',_0x2a8a08)):this['_suggestionState']['set'](_0x2a8a08,'removed');}return _0x2a8a08;}['acceptSuggestion'](_0x4e556f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x489a98 of _0x4e556f['getAllAdjacentSuggestions']())_0x489a98['accept']();});});}['discardSuggestion'](_0x29c84a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7235e0 of _0x29c84a['getAllAdjacentSuggestions']())_0x7235e0['discard']();});});}['enableCommand'](_0x39ab50,_0x239e63){const _0x5ef532=this['editor']['commands']['get'](_0x39ab50);if(!_0x5ef532)throw new _0x4a3251('track-changes-command-not-found',this,{'commandName':_0x39ab50});if(this['_enabledCommands']['has'](_0x5ef532))throw new _0x4a3251('track-changes-enable-command-twice',this,{'commandName':_0x39ab50});this['_enabledCommands']['add'](_0x5ef532),_0x239e63&&_0x5ef532['on']('execute',(_0x1d3fc7,_0x29ac34)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x29ac34['length']>0x0&&_0x29ac34[_0x29ac34['length']-0x1]&&_0x29ac34[_0x29ac34['length']-0x1]['forceDefaultExecution']?_0x29ac34['pop']():(_0x1d3fc7['return']=_0x239e63((..._0x3d4666)=>_0x5ef532['execute'](..._0x3d4666,{'forceDefaultExecution':!0x0}),..._0x29ac34),_0x1d3fc7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4592cc){let _0x4d0c4f,_0x419e1a;const _0x1af901=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d0c4f=_0x4592cc();}catch(_0x307c0f){_0x419e1a=_0x307c0f;}return _0x1af901||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x419e1a&&_0x4a3251['rethrowUnexpectedError'](_0x419e1a,this),_0x4d0c4f;}['markInsertion'](_0x17e6dd,_0x4ee9e4=null,_0x294141={}){if(_0x17e6dd['isCollapsed'])return null;const _0x1906fc=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x595600,meta:_0x348566}of this['_findSuggestions'](_0x17e6dd,'insertion'))if(_0x348566['isOwn']){if(!_0x348566['isNextTo']){if(_0x348566['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x595600,_0x294141))continue;return _0x595600;}if(zt(_0x595600,_0x294141))return _0x595600;this['_breakSuggestionMarker'](_0x595600,_0x17e6dd['start'],_0x17e6dd['end']);break;}if(_0x4ee9e4==_0x595600['subType']&&zt(_0x595600,_0x294141)){const _0x57af66=_0x595600['getFirstRange']();return _0x57af66['start']['isEqual'](_0x17e6dd['end'])?this['_setSuggestionRange'](_0x595600,this['_model']['createRange'](_0x17e6dd['start'],_0x57af66['end'])):this['_setSuggestionRange'](_0x595600,this['_model']['createRange'](_0x57af66['start'],_0x17e6dd['end'])),_0x595600;}}const _0xa407c7=_0xf2c1f9(),_0x14bdf2=_0x1906fc['id'],_0x3005f8=_0x4ee9e4?'insertion:'+_0x4ee9e4:'insertion',_0x31687a=this['_setSuggestionData']({'id':_0xa407c7,'type':_0x3005f8,'createdAt':new Date(),'authorId':_0x14bdf2,'attributes':_0x294141});return this['_addSuggestionMarker'](_0x3005f8,_0xa407c7,_0x14bdf2,_0x17e6dd),_0x31687a;}['markMultiRangeInsertion'](_0x2a374a,_0x52e157='multi',_0x429319={}){const _0x120e4c=this['editor']['plugins']['get']('Users')['me'],_0x4e587c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x52e157,'join');for(const _0x45752f of this['getSuggestions']())if(_0x45752f['author']['id']==_0x120e4c['id']&&'insertion'==_0x45752f['type']&&_0x45752f['subType']==_0x52e157&&zt(_0x45752f,_0x429319)&&(_0x4e587c(_0x45752f['getRanges'](),_0x2a374a)||_0x4e587c(_0x2a374a,_0x45752f['getRanges']()))){for(const _0x543152 of _0x2a374a)_0x45752f['addRange'](_0x543152);return _0x45752f;}for(const {suggestion:_0x25fab4,meta:_0x20b54e}of this['_findSuggestions'](_0x2a374a,'insertion')){if(!_0x20b54e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x20b54e['containsRangeInObject'])continue;if(!zt(_0x25fab4,_0x429319))continue;let _0x42a2a2=!0x0;for(const _0x574c77 of _0x25fab4['getRanges']())for(const _0x45907a of _0x2a374a)if(!_0x574c77['containsRange'](_0x45907a)){_0x42a2a2=!0x1;break;}if(_0x42a2a2)return _0x25fab4;}const _0x81c770=_0xf2c1f9(),_0x13a9c6=_0x120e4c['id'],_0x2c844a='insertion:'+_0x52e157,_0xee642d=this['_setSuggestionData']({'id':_0x81c770,'type':_0x2c844a,'createdAt':new Date(),'authorId':_0x13a9c6,'attributes':_0x429319});for(const _0x4525ca of _0x2a374a)this['_addSuggestionMarker'](_0x2c844a,_0x81c770,_0x13a9c6,_0x4525ca,u['getMultiRangeId']());return _0xee642d;}['markInlineFormat'](_0x44b2f9,_0xd9d5f2,_0x1f1193=null,_0x3443fd={}){if(_0x1f1193=_0x1f1193||Gt(_0xd9d5f2),_0x44b2f9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a2595=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f1193,'accept');return this['forceDefaultExecution'](()=>_0x5a2595([_0x44b2f9],_0xd9d5f2,_0x3443fd)),null;}const _0x327f33=this['editor']['plugins']['get']('Users')['me'],_0x9cfb7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5985cd,meta:_0x294f0d}of this['_findSuggestions'](_0x44b2f9,'insertion'))_0x294f0d['isOwn']&&!_0x294f0d['isInsideObject']&&_0x9cfb7['push'](..._0x5985cd['getRanges']());}const _0x5146df=function(_0x42a3d1,_0x56f6df){const _0x5a9aae=[];for(const _0x199519 of _0x56f6df){const _0x4fde8d=_0x42a3d1['getIntersection'](_0x199519);_0x4fde8d&&_0x5a9aae['push'](_0x4fde8d);}return _0x5a9aae;}(_0x44b2f9,_0x9cfb7),_0x5e3b5b=function(_0x34afea,_0x224db8){const _0x203892=[_0x34afea];for(const _0x5d8af6 of _0x224db8){let _0x49221d=0x0;for(;_0x49221d<_0x203892['length'];){const _0x28c479=_0x203892[_0x49221d]['getDifference'](_0x5d8af6);_0x203892['splice'](_0x49221d,0x1,..._0x28c479),_0x49221d+=_0x28c479['length'];}}return _0x203892;}(_0x44b2f9,_0x9cfb7);_0x5146df['length']&&this['_model']['change'](()=>{for(const _0xb996f5 of _0x5146df){const _0x248122=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f1193,'accept');this['forceDefaultExecution'](()=>_0x248122([_0xb996f5],_0xd9d5f2,_0x3443fd));}});for(const _0x372923 of _0x5e3b5b){let _0x1abf76=null,_0x38e2a6=_0x372923['start'],_0xb05c88=_0x372923['end'];for(const {suggestion:_0x2c04eb,meta:_0x17d299}of this['_findSuggestions'](_0x372923,'formatInline')){if(!_0x17d299['isOwn'])continue;if(_0x2c04eb['subType']!=_0x1f1193)continue;if(!zt(_0x2c04eb,_0x3443fd))continue;const _0x53d7e8=_0x2c04eb['getFirstRange']();if(_0x53d7e8['containsRange'](_0x372923,!0x0))return null;_0x38e2a6=_0x38e2a6['isBefore'](_0x53d7e8['start'])?_0x38e2a6:_0x53d7e8['start'],_0xb05c88=_0xb05c88['isAfter'](_0x53d7e8['end'])?_0xb05c88:_0x53d7e8['end'],_0x1abf76?_0x53d7e8['start']['isBefore'](_0x1abf76['getFirstRange']()['start'])?(_0x1abf76['removeMarkers'](),_0x1abf76=_0x2c04eb):_0x2c04eb['removeMarkers']():_0x1abf76=_0x2c04eb;}const _0x328eec=this['_model']['createRange'](_0x38e2a6,_0xb05c88);if(_0x1abf76)this['_setSuggestionRange'](_0x1abf76,_0x328eec);else{const _0x49cc72=_0xf2c1f9(),_0x1cbcc0=_0x327f33['id'];this['_setSuggestionData']({'id':_0x49cc72,'type':'formatInline:'+_0x1f1193,'data':_0xd9d5f2,'createdAt':new Date(),'authorId':_0x1cbcc0,'attributes':_0x3443fd}),this['_addSuggestionMarker']('formatInline:'+_0x1f1193,_0x49cc72,_0x1cbcc0,_0x328eec);}}return null;}['markBlockFormat'](_0x5c0395,_0x30185a,_0x408a10=[],_0x25deec=null,_0xad25d3={}){_0x30185a['formatGroupId']||(_0x30185a['formatGroupId']=_0x30185a['commandName']),_0x30185a['multipleBlocks']=_0x5c0395['is']('range'),_0x25deec=_0x25deec||Gt(_0x30185a);const _0x1d8404=_0x408a10['map'](_0x5cbe33=>Jt(_0x5cbe33,this['_model'])),_0x511f27=_0x5c0395['is']('range')?_0x5c0395:Jt(_0x5c0395,this['_model']);if('never'===this['_trackFormatChanges']){const _0x50f9ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25deec,'accept');return this['forceDefaultExecution'](()=>_0x50f9ae([_0x511f27],_0x30185a,_0xad25d3)),null;}_0x1d8404['push'](_0x511f27);let _0xaba1c0=!0x0;for(const _0x46e1b6 of _0x1d8404)if(!this['_rangeIsInLocalUserInsertion'](_0x46e1b6)){_0xaba1c0=!0x1;break;}if(_0xaba1c0&&'always'!==this['_trackFormatChanges']){const _0x242964=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25deec,'accept');return this['forceDefaultExecution'](()=>_0x242964([_0x511f27],_0x30185a,_0xad25d3)),null;}let _0x1efdc7=null,_0x43a745=_0x511f27['start'],_0x1848fe=_0x511f27['end'];for(const {suggestion:_0x4199ec,meta:_0x3b3ab0}of this['_findSuggestions'](_0x511f27,'formatBlock')){if(!_0x3b3ab0['isOwn'])continue;if(_0x3b3ab0['isNextTo']||_0x3b3ab0['containsRangeInObject']||_0x3b3ab0['isInsideObject'])continue;if(_0x4199ec['data']['formatGroupId']!=_0x30185a['formatGroupId'])continue;if(!zt(_0x4199ec,_0xad25d3))continue;const _0x1d55e4=_0x4199ec['getFirstRange']();if(_0x4199ec['subType']==_0x25deec){if(_0x1d55e4['containsRange'](_0x511f27,!0x0))return null;_0x43a745=_0x43a745['isBefore'](_0x1d55e4['start'])?_0x43a745:_0x1d55e4['start'],_0x1848fe=_0x1848fe['isAfter'](_0x1d55e4['end'])?_0x1848fe:_0x1d55e4['end'],_0x1efdc7?_0x1d55e4['start']['isBefore'](_0x1efdc7['getFirstRange']()['start'])?(_0x1efdc7['removeMarkers'](),_0x1efdc7=_0x4199ec):_0x4199ec['removeMarkers']():_0x1efdc7=_0x4199ec;}else{const _0x2e1378=_0x511f27['getIntersection'](_0x1d55e4);this['_cutOutSuggestionMarker'](_0x4199ec,_0x2e1378);}}const _0xb3b517=this['editor']['plugins']['get']('Users')['me'],_0xe62846=_0xf2c1f9(),_0x476d6f=_0xb3b517['id'];if(_0x1efdc7)return this['_setSuggestionRange'](_0x1efdc7,this['_model']['createRange'](_0x43a745,_0x1848fe)),_0x1efdc7;{const _0x1928cb=this['_setSuggestionData']({'id':_0xe62846,'type':'formatBlock:'+_0x25deec,'data':_0x30185a,'createdAt':new Date(),'authorId':_0x476d6f,'attributes':_0xad25d3});return this['_addSuggestionMarker']('formatBlock:'+_0x25deec,_0xe62846,_0x476d6f,this['_model']['createRange'](_0x43a745,_0x1848fe)),_0x1928cb;}}['markMultiRangeBlockFormat'](_0x2f0c8d,_0x25a417,_0xb422fd=[],_0x4cde50=null,_0x58702d={}){_0x25a417['formatGroupId']||(_0x25a417['formatGroupId']=_0x25a417['commandName']);const _0xffd0ad=_0x2f0c8d[0x0];_0x25a417['multipleBlocks']=_0xffd0ad['is']('range'),_0x4cde50=_0x4cde50||Gt(_0x25a417);const _0x49b4ce=_0xb422fd['map'](_0x495407=>Jt(_0x495407,this['_model'])),_0x11add6=_0xffd0ad['is']('range')?_0x2f0c8d:_0x2f0c8d['map'](_0x11d5bc=>Jt(_0x11d5bc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x52a82a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cde50,'accept');return this['forceDefaultExecution'](()=>_0x52a82a(_0x11add6,_0x25a417,_0x58702d)),null;}_0x49b4ce['push'](..._0x11add6);let _0x170bf2=!0x0;for(const _0x3f3d8d of _0x49b4ce)if(!this['_rangeIsInLocalUserInsertion'](_0x3f3d8d)){_0x170bf2=!0x1;break;}if(_0x170bf2&&'always'!==this['_trackFormatChanges']){const _0x59f0b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cde50,'accept');return this['forceDefaultExecution'](()=>_0x59f0b1(_0x11add6,_0x25a417,_0x58702d)),null;}const _0x487c15=this['editor']['plugins']['get']('Users')['me'];for(const _0x52b72f of this['getSuggestions']()){if(_0x52b72f['author']['id']!=_0x487c15['id'])continue;if('formatBlock'!=_0x52b72f['type']||_0x52b72f['data']['formatGroupId']!=_0x25a417['formatGroupId'])continue;if(!zt(_0x52b72f,_0x58702d))continue;const _0xa3286a=_0x52b72f['subType']==_0x4cde50;for(let _0x3cc87e=0x0;_0x3cc87e<_0x11add6['length'];_0x3cc87e++){const _0x2a57d1=_0x11add6[_0x3cc87e];for(const _0x5d220f of _0x52b72f['getMarkers']()){const _0x2a5457=_0x5d220f['getRange']();if(_0x2a57d1['isEqual'](_0x2a5457)){_0xa3286a?(_0x11add6['splice'](_0x3cc87e,0x1),_0x3cc87e--):_0x52b72f['removeMarker'](_0x5d220f['name']);break;}}}}if(0x0==_0x11add6['length'])return null;const _0x206d6e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4cde50,'join');for(const _0x73f489 of this['getSuggestions']())if(_0x73f489['author']['id']==_0x487c15['id']&&'formatBlock'==_0x73f489['type']&&_0x73f489['data']['formatGroupId']==_0x25a417['formatGroupId']&&_0x73f489['subType']==_0x4cde50&&zt(_0x73f489,_0x58702d)&&(_0x206d6e(_0x73f489['getRanges'](),_0x11add6)||_0x206d6e(_0x11add6,_0x73f489['getRanges']()))){for(const _0xf6ad33 of _0x11add6)_0x73f489['addRange'](_0xf6ad33);return _0x73f489;}const _0x59d6b2=_0xf2c1f9(),_0x1578ed=_0x487c15['id'],_0xdd5f70='formatBlock:'+_0x4cde50,_0x533eae=this['_setSuggestionData']({'id':_0x59d6b2,'type':_0xdd5f70,'data':_0x25a417,'createdAt':new Date(),'authorId':_0x1578ed,'attributes':_0x58702d});for(const _0x2cf6a9 of _0x11add6)this['_addSuggestionMarker'](_0xdd5f70,_0x59d6b2,_0x1578ed,_0x2cf6a9,u['getMultiRangeId']());return _0x533eae;}['markDeletion'](_0xe0ec87,_0xd4c8cd=null,_0x18d914={}){if(_0xe0ec87['isCollapsed'])return null;const _0x447f3d=this['editor']['plugins']['get']('Users')['me'],_0x57547c=new _0x14359b(_0xe0ec87['start'],_0xe0ec87['end']);for(const {suggestion:_0x495af1,meta:_0x3c94de}of this['_findSuggestions'](_0x57547c,'insertion'))if(_0x3c94de['isOwn']&&!_0x3c94de['isNextTo']){if(_0x495af1['isMultiRange']){const _0x545639=_0x495af1['getRanges']()['filter'](_0x10cbc0=>'$graveyard'!=_0x10cbc0['root']['rootName']);_0x545639['every'](_0x4f03d8=>_0x57547c['containsRange'](_0x4f03d8,!0x0))&&_0x495af1['discard']();if(_0x545639['some'](_0x4da748=>_0x4da748['containsRange'](_0x57547c,!0x0))){const _0x1e7fb5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd4c8cd,'accept');return this['forceDefaultExecution'](()=>_0x1e7fb5([_0x57547c],null,_0x18d914)),null;}}else{const _0x5af5af=_0x57547c['getIntersection'](_0x495af1['getFirstRange']());null!==_0x5af5af&&_0x495af1['_onDiscard']([_0x5af5af],null,_0x18d914);}}if(_0x57547c['detach'](),_0x57547c['isCollapsed']||'$graveyard'==_0x57547c['root']['rootName'])return null;let _0x1513c0=null,_0x484302=_0x57547c['start'],_0x1cc6c2=_0x57547c['end'];const _0x27e29d=this['_findSuggestions'](_0x57547c,'deletion');for(const {suggestion:_0x2b66d1,meta:_0x5a1bc5}of _0x27e29d){const _0x529899=this['_model']['createRange'](_0x484302,_0x1cc6c2);if(_0x5a1bc5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a1bc5['containsRangeInObject']&&!_0x5a1bc5['isInsideObject'])){if(_0x2b66d1['isMultiRange']){if(!zt(_0x2b66d1,_0x18d914))continue;let _0x396e68=!0x0;for(const _0x5b4860 of _0x2b66d1['getRanges']()){if(_0x5b4860['containsRange'](_0x529899,!0x0))return _0x2b66d1;_0x529899['containsRange'](_0x5b4860)||(_0x396e68=!0x1);}_0x396e68&&_0x2b66d1['discard']();}else{const _0x5266c1=_0x2b66d1['getFirstRange']();if(_0x5266c1['containsRange'](_0x529899,!0x0))return _0x2b66d1;if(!zt(_0x2b66d1,_0x18d914)){_0x529899['containsRange'](_0x5266c1)?_0x2b66d1['removeMarkers']():_0x5266c1['containsPosition'](_0x484302)?_0x484302=_0x5266c1['end']:_0x5266c1['containsPosition'](_0x1cc6c2)&&(_0x1cc6c2=_0x5266c1['start']);continue;}_0x484302=_0x484302['isBefore'](_0x5266c1['start'])?_0x484302:_0x5266c1['start'],_0x1cc6c2=_0x1cc6c2['isAfter'](_0x5266c1['end'])?_0x1cc6c2:_0x5266c1['end'],_0x18d914=Object['assign']({},_0x2b66d1['attributes']),_0x1513c0?_0x5266c1['start']['isBefore'](_0x1513c0['getFirstRange']()['start'])?(_0x1513c0['removeMarkers'](),_0x1513c0=_0x2b66d1):_0x2b66d1['removeMarkers']():_0x1513c0=_0x2b66d1;}}}if(_0x1513c0)return this['_setSuggestionRange'](_0x1513c0,this['_model']['createRange'](_0x484302,_0x1cc6c2)),_0x1513c0;{const _0x1cadbf=_0xf2c1f9(),_0x53c27c=this['_model']['createRange'](_0x484302,_0x1cc6c2),_0x35c555=_0x447f3d['id'],_0x94ae47=_0xd4c8cd?'deletion:'+_0xd4c8cd:'deletion',_0x317f55=this['_setSuggestionData']({'id':_0x1cadbf,'type':_0x94ae47,'createdAt':new Date(),'authorId':_0x35c555,'attributes':_0x18d914});return this['_addSuggestionMarker'](_0x94ae47,_0x1cadbf,_0x35c555,_0x53c27c),_0x317f55;}}['markMultiRangeDeletion'](_0x4bd41b,_0x50843b='multi',_0x13c912={}){const _0x15bb95=this['editor']['plugins']['get']('Users')['me'],_0xc93073=_0x4bd41b['map'](_0x57e8f7=>new _0x14359b(_0x57e8f7['start'],_0x57e8f7['end'])),_0x246066=new Set();for(const {suggestion:_0x451ffb,meta:_0x3bdd85}of this['_findSuggestions'](_0xc93073,'insertion'))_0x3bdd85['isOwn']&&!_0x3bdd85['isNextTo']&&_0x246066['add'](_0x451ffb);for(const _0x5153de of _0x246066)if(_0x5153de['isMultiRange']){const _0x22af14=_0x5153de['getRanges']();(!_0x5153de['attributes']||!_0x5153de['attributes']['skipNestingCheck'])&&(_0x22af14['every'](_0x4db0c5=>_0xc93073['some'](_0x80d566=>_0x80d566['containsRange'](_0x4db0c5,!0x0)))&&_0x5153de['discard']());if(_0xc93073['every'](_0x173fac=>_0x22af14['some'](_0xe91d62=>_0xe91d62['containsRange'](_0x173fac,!0x0)))){const _0x265ac9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50843b,'accept');return this['forceDefaultExecution'](()=>_0x265ac9(_0x4bd41b,null,_0x13c912)),null;}}else{const _0x15a71c=_0x5153de['getFirstRange']();_0xc93073['some'](_0x710f3b=>_0x710f3b['containsRange'](_0x15a71c,!0x0))&&_0x5153de['discard']();if(_0xc93073['every'](_0x40092b=>_0x15a71c['containsRange'](_0x40092b,!0x0))){const _0x3efdee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50843b,'accept');return this['forceDefaultExecution'](()=>_0x3efdee(_0xc93073,null,_0x13c912)),null;}}const _0x548379=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50843b,'join');let _0x15d414=null;for(const _0x5d5ca9 of this['getSuggestions']())if(_0x5d5ca9['author']['id']==_0x15bb95['id']&&_0x5d5ca9['isInContent']&&'deletion'==_0x5d5ca9['type']&&_0x5d5ca9['subType']==_0x50843b&&zt(_0x5d5ca9,_0x13c912)&&(_0x548379(_0x5d5ca9['getRanges'](),_0xc93073)||_0x548379(_0xc93073,_0x5d5ca9['getRanges']()))){if(_0x15d414){if(_0x5d5ca9['commentThread']&&_0x5d5ca9['commentThread']['length'])continue;for(const _0x56d0ac of _0x5d5ca9['getRanges']())_0x15d414['isIntersectingWithRange'](_0x56d0ac)||_0x15d414['addRange'](_0x56d0ac);_0x5d5ca9['removeMarkers']();}else{_0x15d414=_0x5d5ca9;for(const _0x4b9624 of _0xc93073)_0x5d5ca9['isIntersectingWithRange'](_0x4b9624)||_0x5d5ca9['addRange'](_0x4b9624);}}if(_0x15d414)return _0x15d414;_0x246066['clear']();for(const {suggestion:_0x1ce041,meta:_0x4b4bb4}of this['_findSuggestions'](_0xc93073,'deletion'))_0x4b4bb4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b4bb4['containsRangeInObject']&&!_0x4b4bb4['isInsideObject'])&&zt(_0x1ce041,_0x13c912)&&_0x246066['add'](_0x1ce041);for(const _0x112d0c of _0x246066){const _0x4ca8bd=_0x112d0c['getRanges']();if(!_0x13c912||!_0x13c912['skipNestingCheck']){if(_0xc93073['every'](_0x415824=>_0x4ca8bd['some'](_0x1cb953=>_0x1cb953['containsRange'](_0x415824,!0x0))))return _0x112d0c;}(!_0x112d0c['attributes']||!_0x112d0c['attributes']['skipNestingCheck'])&&(_0x4ca8bd['every'](_0x3d8de1=>_0xc93073['some'](_0x1fdf6c=>_0x1fdf6c['containsRange'](_0x3d8de1,!0x0)))&&_0x112d0c['discard']());}const _0x191dd4=_0xf2c1f9(),_0x1d4514=_0x15bb95['id'],_0x2a76a7='deletion:'+_0x50843b,_0xc401c=this['_setSuggestionData']({'id':_0x191dd4,'type':_0x2a76a7,'createdAt':new Date(),'authorId':_0x1d4514,'attributes':_0x13c912});for(const _0x3aacba of _0xc93073)_0x3aacba['detach'](),_0x3aacba['isCollapsed']||'$graveyard'==_0x3aacba['root']['rootName']||this['_addSuggestionMarker'](_0x2a76a7,_0x191dd4,_0x1d4514,_0x3aacba,u['getMultiRangeId']());return _0xc401c;}['markAttributeChange'](_0x32f1d0,_0x131f7c,_0x4be81d,_0x3cddaf,_0x3baaaa){if(_0x32f1d0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x11024e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2304ad=Array['from'](this['_suggestions']['values']())['filter'](_0x55ca6b=>'attribute'==_0x55ca6b['type']&&_0x55ca6b['data']['key']==_0x131f7c&&_0x55ca6b['isIntersectingWithRange'](_0x32f1d0));if('default'===this['_trackFormatChanges']){const _0x4455b1=this['_findSuggestions'](_0x32f1d0,'insertion')['filter'](({meta:_0x20e220})=>_0x20e220['isOwn']&&!_0x20e220['isInsideObject']&&!_0x20e220['isNextTo'])['map'](({suggestion:_0x44a862})=>_0x44a862);_0x2304ad['unshift'](..._0x4455b1);}const _0x30226f=new Map([[_0x32f1d0,_0x4be81d]]);for(const _0xa81963 of _0x2304ad){const _0x1e6a7f='attribute'==_0xa81963['type']?_0xa81963['data']['oldValue']:void 0x0,_0x3102a7=_0xa81963['getFirstRange'](),_0x213834=Array['from'](_0x30226f['keys']())['find'](_0x4d5b4e=>_0x4d5b4e['isIntersecting'](_0x3102a7));if(!_0x213834)continue;const _0x3851f3=_0x213834['getDifference'](_0x3102a7);this['_isBlockAttribute'](_0x131f7c)&&'insertion'==_0xa81963['type']&&0x0!=_0x3851f3['length']||(_0x30226f['delete'](_0x213834),_0x3851f3['forEach'](_0x54a23a=>{_0x30226f['set'](_0x54a23a,_0x4be81d);}),'insertion'!=_0xa81963['type']&&_0x1e6a7f!=_0x3cddaf&&_0x30226f['set'](_0x213834['getIntersection'](_0x3102a7),_0x1e6a7f));}const _0x24df85=[];for(const [_0x3d73e0,_0x2461cf]of _0x30226f){const _0x59d264=_0xf2c1f9(),_0x6542a8={'key':_0x131f7c,'oldValue':_0x2461cf,'newValue':_0x3cddaf};_0x131f7c['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':_0x131f7c});const _0xc06ae1=('attribute:'+(_0x131f7c+'|'+Gt({'newValue':_0x3cddaf})))['substring'](0x0,0x3c),_0x20f0a8=this['_setSuggestionData']({'id':_0x59d264,'type':_0xc06ae1,'data':_0x6542a8,'createdAt':new Date(),'authorId':_0x11024e,'attributes':_0x3baaaa});_0x24df85['push'](_0x20f0a8),this['_addSuggestionMarker'](_0xc06ae1,_0x59d264,_0x11024e,_0x3d73e0);}return _0x24df85;}['enableDefaultAttributesIntegration'](_0x3e61a9){this['enableCommand'](_0x3e61a9,(_0x531d89,..._0x39badb)=>{this['_recordAttributeChanges'](()=>{_0x531d89(..._0x39badb);});});}['registerBlockAttribute'](_0x2b615){this['_blockAttributeKeys']['add'](_0x2b615);}['registerInlineAttribute'](_0x2eedb6){this['_inlineAttributeKeys']['add'](_0x2eedb6);}['_getAttributeKey'](_0x80235f){return'attribute'==_0x80235f['type']?_0x80235f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b8f34,_0x41fba4){const _0x5b6bf6=_0x1b8f34['getFirstMarker']();this['_model']['change'](_0xf011f0=>{_0xf011f0['updateMarker'](_0x5b6bf6,{'range':_0x41fba4});});}['_addThreadToSuggestion'](_0x515dc8){const _0x3c50e9=_0x515dc8['id'],_0x443f31=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c50e9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x443f31,'threadId':_0x3c50e9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x56a6d5=this['_commentsRepository']['getCommentThread'](_0x3c50e9);_0x56a6d5['unbind']('isRemovable'),_0x56a6d5['isRemovable']=!0x1,_0x515dc8['commentThread']=_0x56a6d5;}['_checkSuggestionCorrectness'](_0x7f7e86,_0x410b51,_0x10feca,_0x3e07cc){if(_0x7f7e86['type']!=_0x410b51||_0x7f7e86['subType']!=_0x10feca||_0x7f7e86['creator']['id']!=_0x3e07cc)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a3251('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4491c4,_0x5e764a){const _0x2fdebc=_0x4491c4['getFirstRange']();if(_0x5e764a['isEqual'](_0x2fdebc))_0x4491c4['removeMarkers']();else{if(_0x2fdebc['containsRange'](_0x5e764a)){const _0x45a4ac=this['_model']['createPositionAt'](_0x5e764a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4491c4,this['_model']['createRange'](_0x2fdebc['start'],_0x45a4ac));const _0x57a25c=_0xf2c1f9(),_0x3197e2=_0x4491c4['creator']['id'],_0x3bbd40=_0x4491c4['type']+':'+_0x4491c4['subType'];this['_setSuggestionData']({'id':_0x57a25c,'type':_0x3bbd40,'createdAt':new Date(),'authorId':_0x3197e2,'data':_0x4491c4['data'],'attributes':_0x4491c4['attributes']});const _0x23432b=this['_model']['createPositionAt'](_0x5e764a['end']['parent'],'after'),_0x78fc4=this['_model']['createRange'](_0x23432b,_0x2fdebc['end']);this['_addSuggestionMarker'](_0x3bbd40,_0x57a25c,_0x3197e2,_0x78fc4);}else{if(_0x2fdebc['containsPosition'](_0x5e764a['start'])){const _0xd35416=this['_model']['createPositionAt'](_0x5e764a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4491c4,this['_model']['createRange'](_0x2fdebc['start'],_0xd35416));}else{const _0x4c5d76=this['_model']['createPositionAt'](_0x5e764a['end']['parent'],'after');this['_setSuggestionRange'](_0x4491c4,this['_model']['createRange'](_0x4c5d76,_0x2fdebc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1814da){for(const {suggestion:_0x2ff84d,meta:_0x33728f}of this['_findSuggestions'](_0x1814da,'insertion')){if(!_0x33728f['isOwn'])continue;const _0x202852=_0x2ff84d['getRanges']();for(const _0x4c338c of _0x202852)if(!_0x1814da['getDifference'](_0x4c338c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x32ee25){const _0x1dc5d3=this['editor']['plugins']['get']('Users')['getUser'](_0x32ee25);if(!_0x1dc5d3)throw new _0x4a3251('track-changes-user-not-found',this);return _0x1dc5d3;}['_getExternalAuthor'](_0x397740){const _0x5aae60=this['editor']['plugins']['get']('Users'),_0x1ab3e8=_0x2f256a('external:'+_0x397740),_0x3f8260=_0x5aae60['getUser'](_0x1ab3e8);return _0x3f8260||_0x5aae60['addUser']({'id':_0x1ab3e8,'name':_0x397740});}['_createSuggestion'](_0x387ba5,_0x20a06d,_0x20eeda,_0x551488,_0x2ebdfd){const _0x3aaf0b=this['_getAuthorFromId'](_0x551488),_0x45d54e=this['_suggestionFactory']['buildSuggestion'](_0x387ba5,_0x20a06d,_0x20eeda,_0x3aaf0b,_0x2ebdfd,_0x562a8d=>{this['_updateSuggestionData'](_0x20eeda,{'attributes':_0x562a8d});const _0x252011=this['getSuggestion'](_0x20eeda);this['_joinWithAdjacentSuggestions'](new Set([_0x252011])),this['_refreshSuggestionsChain'](new Set([_0x252011]));});return this['listenTo'](_0x45d54e,'accept',()=>{this['_updateSuggestionData'](_0x20eeda,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x45d54e,'discard',()=>{this['_updateSuggestionData'](_0x20eeda,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x20eeda,_0x45d54e),this['_suggestionState']['set'](_0x45d54e,'notReady'),_0x45d54e;}['_splitMarkerName'](_0x46ad78){const _0x59885e=_0x46ad78['split'](':');return{'group':_0x59885e[0x0],'type':_0x59885e[0x1],'subType':_0x59885e['length']>=0x5?_0x59885e[0x2]:null,'id':_0x59885e['length']<0x5?_0x59885e[0x2]:_0x59885e[0x3],'authorId':_0x59885e['length']<0x5?_0x59885e[0x3]:_0x59885e[0x4],'markerCount':0x6==_0x59885e['length']?_0x59885e[0x5]:null};}['_breakSuggestionMarker'](_0x176654,_0x50188d,_0x3de8a1){const _0x3545cb=_0x176654['getFirstRange'](),_0xa9acbc=_0x3545cb['start'],_0x3aa84f=_0x3545cb['end'];this['_setSuggestionRange'](_0x176654,this['_model']['createRange'](_0xa9acbc,_0x50188d));const _0xb5897f=_0xf2c1f9(),_0x5eb31d=_0x176654['creator']['id'],_0x16aad8=_0x176654['type']+(_0x176654['subType']?':'+_0x176654['subType']:'');this['_setSuggestionData']({'id':_0xb5897f,'type':_0x16aad8,'createdAt':new Date(),'authorId':_0x5eb31d,'originalSuggestionId':_0x176654['id'],'attributes':_0x176654['attributes'],'data':_0x176654['data']});const _0x2f6aac=this['_getAttributeKey'](_0x176654);('formatBlock'==_0x176654['type']||_0x2f6aac&&this['_isBlockAttribute'](_0x2f6aac))&&(_0x3de8a1=this['_model']['createPositionBefore'](_0x3de8a1['parent'])),this['_addSuggestionMarker'](_0x16aad8,_0xb5897f,_0x5eb31d,this['_model']['createRange'](_0x3de8a1,_0x3aa84f));}['_findSuggestions'](_0x205ab7,_0xddcdc=null){const _0x55bd74=[],_0x2d7b5f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x205ab7)||(_0x205ab7=[_0x205ab7]);for(const _0x4f0444 of this['getSuggestions']()){if(!_0x4f0444['isInContent'])continue;if(_0xddcdc&&_0x4f0444['type']!=_0xddcdc)continue;let _0x3b989a=!0x1;for(const _0x1f8ce8 of _0x4f0444['getRanges']()){for(const _0x2bbe17 of _0x205ab7){const _0x3b493d=_0x2bbe17['start']['isEqual'](_0x1f8ce8['end'])||_0x2bbe17['end']['isEqual'](_0x1f8ce8['start']);if(_0x3b493d||_0x2bbe17['getIntersection'](_0x1f8ce8)){const _0x4057c5=_0x2bbe17['containsRange'](_0x1f8ce8)&&Ut(this['_model']['schema'],_0x1f8ce8['start'],_0x2bbe17),_0xe8907b=_0x1f8ce8['containsRange'](_0x2bbe17)&&Ut(this['_model']['schema'],_0x2bbe17['start'],_0x1f8ce8);_0x55bd74['push']({'suggestion':_0x4f0444,'meta':{'isOwn':_0x2d7b5f==_0x4f0444['author'],'isNextTo':_0x3b493d,'isInsideObject':_0x4057c5,'containsRangeInObject':_0xe8907b}}),_0x3b989a=!0x0;break;}}if(_0x3b989a)break;}}return _0x55bd74;}['_addSuggestionMarker'](_0x5281e3,_0x286778,_0x4e328a,_0x1564ee,_0x31c4e4){this['_model']['change'](_0x17d2f0=>{let _0x196f59='suggestion:'+_0x5281e3+':'+_0x286778+':'+_0x4e328a;_0x31c4e4&&(_0x196f59=_0x196f59+':'+_0x31c4e4),_0x17d2f0['addMarker'](_0x196f59,{'range':_0x1564ee,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4bdf7c){const _0x1cb055=_0x4bdf7c['previous'],_0x4e1f0f=_0x4bdf7c['next'];_0x4bdf7c['previous']=null,_0x4bdf7c['next']=null,null!=_0x1cb055&&_0x1cb055['next']==_0x4bdf7c&&(_0x1cb055['next']=_0x4e1f0f),null!=_0x4e1f0f&&_0x4e1f0f['previous']==_0x4bdf7c&&(_0x4e1f0f['previous']=_0x1cb055),'ready'==this['_suggestionState']['get'](_0x4bdf7c)&&(this['_suggestionState']['set'](_0x4bdf7c,'removed'),this['fire']('suggestionUnloaded',_0x4bdf7c,_0x1cb055,_0x4e1f0f));}['_setSuggestionData'](_0x447331){const _0x4d40a3=_0x447331['id'],_0x48fabe=this['addSuggestionData'](_0x447331);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x211b88=this['editor']['plugins']['get']('PendingActions'),_0x496c19=_0x48fabe['hasComments'],_0x5ea212=_0x48fabe['subType']?_0x48fabe['type']+':'+_0x48fabe['subType']:_0x48fabe['type'],_0x6a158d=this['editor']['locale'],_0x159321=_0x211b88['add'](o(_0x6a158d,'PENDING_ACTION_SUGGESTION')),_0x5c4874={'id':_0x4d40a3,'type':_0x5ea212,'hasComments':_0x496c19,'data':_0x447331['data']||null,'originalSuggestionId':_0x447331['originalSuggestionId']||null,'attributes':_0x48fabe['attributes']};this['_adapter']['addSuggestion'](_0x5c4874)['then'](_0x407d3a=>{_0x48fabe['_saved']=!0x0,_0x211b88['remove'](_0x159321),_0x407d3a&&_0x407d3a['createdAt']&&(this['_suggestions']['get'](_0x4d40a3)['createdAt']=_0x407d3a['createdAt']);})['catch'](_0x52e1e9=>{throw _0x4e26ff('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x48fabe['discard']();}),_0x48fabe['stopListening'](),this['_suggestions']['delete'](_0x48fabe['id']),this['_suggestionState']['delete'](_0x48fabe),_0x52e1e9;});}return _0x48fabe;}['_isBlockAttribute'](_0x19a035){return this['_blockAttributeKeys']['has'](_0x19a035);}['_updateSuggestionData'](_0x19e50f,_0x11704a){const _0x577248=this['editor']['plugins']['get']('PendingActions'),_0x17c890=this['getSuggestion'](_0x19e50f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17c890['_saved']){const _0x4edc08=_0x577248['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x19e50f,_0x11704a)['then'](()=>{_0x577248['remove'](_0x4edc08);});}else _0x17c890['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x19e50f,_0x11704a);});}}['_getSuggestionData'](_0x199d3f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a3251('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x199d3f);}['_handleNewSuggestionMarker'](_0x400cf1){const {id:_0x199799,type:_0x3e619e,subType:_0x4f538a,authorId:_0x870cae}=this['_splitMarkerName'](_0x400cf1),_0x15bd0c=this['_suggestions']['get'](_0x199799)||this['_createSuggestion'](_0x3e619e,_0x4f538a,_0x199799,_0x870cae,{});switch(this['_checkSuggestionCorrectness'](_0x15bd0c,_0x3e619e,_0x4f538a,_0x870cae),this['_suggestionState']['get'](_0x15bd0c)){case'notReady':this['_getSuggestionData'](_0x199799)['then'](_0x4e19f7=>{let _0x290675=Promise['resolve']();_0x4e19f7['hasComments']&&(_0x290675=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x199799})),_0x290675['then'](()=>{this['addSuggestionData'](_0x4e19f7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x15bd0c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x199799,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x15bd0c,'ready'),this['fire']('suggestionLoaded',_0x15bd0c);break;case'ready':this['fire']('suggestionChanged',_0x15bd0c);}return _0x15bd0c['addMarkerName'](_0x400cf1),_0x15bd0c;}['_refreshSuggestionsChain'](_0xc6813b){const _0x780373=Array['from'](_0xc6813b),_0x51f3d9=_0x780373['filter'](_0x2b8a1d=>'attribute'==_0x2b8a1d['type']);this['_refreshAttributeSuggestionsChain'](_0x51f3d9);const _0x200013=_0x780373['filter'](_0x46d70c=>!_0x46d70c['isMultiRange']&&'attribute'!=_0x46d70c['type']),_0x2dcb5b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e369b=>!_0x3e369b['isMultiRange']&&'attribute'!=_0x3e369b['type']),_0x171b78=_0x2dcb5b['filter'](_0xf1f668=>!_0xc6813b['has'](_0xf1f668)),_0xa1f71c=new Map(_0x2dcb5b['map'](_0x3e94e3=>[_0x3e94e3,this['_suggestionFactory']['getSuggestionCallback'](_0x3e94e3['type'],_0x3e94e3['subType'],'chain')])),_0x1fc2cd=new Map(_0x2dcb5b['map'](_0x574c13=>[_0x574c13,_0x574c13['getFirstRange']()])),_0x4c6afd=new Set(),_0xf48f10=new Set();for(let _0x37e9b2=0x0;_0x37e9b2<_0x200013['length'];_0x37e9b2++)_0x16820e(_0x200013[_0x37e9b2],_0x200013,_0x37e9b2+0x1);for(let _0x31ccbc=0x0;_0x31ccbc<_0x200013['length'];_0x31ccbc++)_0x16820e(_0x200013[_0x31ccbc],_0x171b78,0x0);const _0x41fc23=new Set();for(let _0x5cb2d2=0x0;_0x5cb2d2<_0x200013['length'];_0x5cb2d2++){const _0x511937=_0x200013[_0x5cb2d2];!_0xf48f10['has'](_0x511937)&&_0x511937['previous']&&(_0x41fc23['add'](_0x511937['previous']),_0x511937['previous']['next']===_0x511937&&(_0x511937['previous']['next']=null),_0x511937['previous']=null),!_0x4c6afd['has'](_0x511937)&&_0x511937['next']&&(_0x41fc23['add'](_0x511937['next']),_0x511937['next']['previous']===_0x511937&&(_0x511937['next']['previous']=null),_0x511937['next']=null);}function _0x16820e(_0x161259,_0x46831c,_0x37dd00){for(let _0x4757be=_0x37dd00;_0x4757be<_0x46831c['length'];_0x4757be++){const _0x1c158f=_0x2ffa23(_0x161259,_0x46831c[_0x4757be]);_0x1c158f&&(_0x1c158f[0x0]['next']=_0x1c158f[0x1],_0x1c158f[0x1]['previous']=_0x1c158f[0x0],_0x4c6afd['add'](_0x1c158f[0x0]),_0xf48f10['add'](_0x1c158f[0x1]));}}function _0x2ffa23(_0x1f2979,_0xd3b59d){if(_0x1f2979['author']['id']!==_0xd3b59d['author']['id'])return null;const _0x5ac90a=_0xa1f71c['get'](_0x1f2979)(_0x1f2979,_0xd3b59d,_0x1fc2cd['get'](_0x1f2979),_0x1fc2cd['get'](_0xd3b59d));if(!_0x5ac90a)return null;return _0xa1f71c['get'](_0xd3b59d)(_0x1f2979,_0xd3b59d,_0x1fc2cd['get'](_0x1f2979),_0x1fc2cd['get'](_0xd3b59d))?_0x5ac90a[0x1]['commentThread']&&_0x5ac90a[0x1]['commentThread']['length']?null:_0x5ac90a:null;}_0x41fc23['size']&&this['_refreshSuggestionsChain'](_0x41fc23);}['_refreshAttributeSuggestionsChain'](_0x1b7b8d){if(0x0==_0x1b7b8d['length'])return;const _0x4e0d47=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5033dd=>'attribute'==_0x5033dd['type']&&_0x5033dd['_isDataLoaded']),_0x1d6763=[],_0x1d880e=new Map();for(const _0x118565 of _0x4e0d47){const _0x464120=_0x2f256a(_0x118565['attributes']);_0x1d880e['has'](_0x464120)||(_0x1d880e['set'](_0x464120,_0x1d6763['length']),_0x1d6763['push']([]));const _0x444568=_0x1d880e['get'](_0x464120);_0x1d6763[_0x444568]['push'](_0x118565);}!(function(){_0x1d6763['sort']((_0xfca342,_0x2c4e4)=>{const _0x13257b=_0xfca342[0x0]['createdAt'],_0x137f76=_0x2c4e4[0x0]['createdAt'];return _0x13257b==_0x137f76?_0xfca342[0x0]['attributes']['groupId']<_0x2c4e4[0x0]['attributes']['groupId']?-0x1:0x1:_0x13257b<_0x137f76?-0x1:0x1;});for(const _0x167c14 of _0x1d6763)_0x167c14['sort']((_0x1e6715,_0x15834c)=>_0x1e6715['id']<_0x15834c['id']?-0x1:0x1);}());for(let _0xc3e01b=0x0;_0xc3e01b<_0x1d6763['length'];_0xc3e01b++){if(0x0==_0x1d6763[_0xc3e01b]['length'])continue;const _0x1462dc=[];for(let _0x2a8598=_0xc3e01b+0x1;_0x2a8598<_0x1d6763['length'];_0x2a8598++)0x0!=_0x1d6763[_0x2a8598]['length']&&_0xc25138(_0x1d6763[_0xc3e01b],_0x1d6763[_0x2a8598])&&_0x1462dc['push'](_0x2a8598);for(const _0x3017d6 of _0x1462dc)_0x1d6763[_0xc3e01b]=_0x1d6763[_0xc3e01b]['concat'](_0x1d6763[_0x3017d6]),_0x1d6763[_0x3017d6]=[];}for(const _0x22dcff of _0x1d6763)for(let _0x53ea9f=0x0;_0x53ea9f<_0x22dcff['length'];_0x53ea9f++){const _0x45d43e=_0x22dcff[_0x53ea9f+0x1]||null;_0x22dcff[_0x53ea9f]['next']!==_0x45d43e&&(_0x22dcff[_0x53ea9f]['next']=_0x45d43e);}for(const _0x46b0ca of _0x1d6763)for(let _0x5daf6d=0x0;_0x5daf6d<_0x46b0ca['length'];_0x5daf6d++){const _0x2c9c73=_0x46b0ca[_0x5daf6d-0x1]||null;_0x46b0ca[_0x5daf6d]['previous']!==_0x2c9c73&&(_0x46b0ca[_0x5daf6d]['previous']=_0x2c9c73);}function _0xc25138(_0x565a6f,_0x4ef8ce){if(_0x565a6f[0x0]['attributes']['groupId']!==_0x4ef8ce[0x0]['attributes']['groupId']&&_0x565a6f[0x0]['author']!==_0x4ef8ce[0x0]['author'])return!0x1;if(!function(_0x4c1ad4,_0x37ed7a){if(!_0x4c1ad4['hasComments']&&!_0x37ed7a['hasComments'])return!0x0;if(_0x4c1ad4['hasComments']&&_0x37ed7a['hasComments'])return!0x1;if(_0x4c1ad4['hasComments']&&_0x37ed7a['createdAt']<_0x4c1ad4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x37ed7a['hasComments']&&_0x4c1ad4['createdAt']<_0x37ed7a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x565a6f[0x0],_0x4ef8ce[0x0]))return!0x1;const _0x4c36a3=xt(_0x565a6f[0x0]['attributes'],'groupId'),_0x4d70ff=xt(_0x4ef8ce[0x0]['attributes'],'groupId');if(!_0x2f8722(_0x4c36a3,_0x4d70ff))return!0x1;return!!_0x565a6f['every'](_0x339b17=>_0x4ef8ce['some'](_0x36f6d4=>_0x339b17['getFirstRange']()['isEqual'](_0x36f6d4['getFirstRange']())))&&_0x4ef8ce['every'](_0x1d0202=>_0x565a6f['some'](_0x36cf87=>_0x1d0202['getFirstRange']()['isEqual'](_0x36cf87['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x7ddce5){const _0x165d2b=Array['from'](_0x7ddce5),_0x5289d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x560901=_0x5289d4['filter'](_0x27e513=>!_0x7ddce5['has'](_0x27e513)),_0x405c46=new Map(_0x165d2b['map'](_0x15122a=>[_0x15122a,this['_suggestionFactory']['getSuggestionCallback'](_0x15122a['type'],_0x15122a['subType'],'join')])),_0x26f52f=new Map(_0x5289d4['map'](_0x518573=>[_0x518573,_0x518573['getRanges']()]));for(let _0x28f41c=0x0;_0x28f41c<_0x165d2b['length'];_0x28f41c++){if(_0x3498f9(this,_0x165d2b[_0x28f41c],_0x165d2b,_0x28f41c+0x1))return!0x0;}for(let _0xf1d990=0x0;_0xf1d990<_0x165d2b['length'];_0xf1d990++){if(_0x3498f9(this,_0x165d2b[_0xf1d990],_0x560901,0x0))return!0x0;}return!0x1;function _0x3498f9(_0x243511,_0x428ed2,_0x5bce3c,_0xb19fa3){for(let _0x99a943=_0xb19fa3;_0x99a943<_0x5bce3c['length'];_0x99a943++){const _0x3b144f=_0x5bce3c[_0x99a943];if(_0x3b144f['type']!==_0x428ed2['type']||_0x3b144f['author']['id']!==_0x428ed2['author']['id']||_0x3b144f['subType']!==_0x428ed2['subType'])continue;if(!qt(_0x428ed2,_0x3b144f))continue;if('attribute'==_0x428ed2['type']&&_0x428ed2['data']['oldValue']!=_0x3b144f['data']['oldValue'])continue;if('attribute'==_0x428ed2['type']&&_0x243511['_isBlockAttribute'](_0x428ed2['data']['key']))continue;if('formatBlock'==_0x428ed2['type']){const _0x1a2afe=_0x243511['editor']['model'],_0x81b432=_0x428ed2['getContainedElement']();if(_0x81b432&&(_0x1a2afe['schema']['isObject'](_0x81b432)||_0x1a2afe['schema']['isLimit'](_0x81b432)))continue;}const _0x2fc30f=_0x405c46['get'](_0x428ed2),_0x16aa2c=_0x26f52f['get'](_0x428ed2),_0x470f64=_0x26f52f['get'](_0x3b144f),_0x1340cb=_0x428ed2['commentThread']&&_0x428ed2['commentThread']['length'],_0x5e6dd8=_0x3b144f['commentThread']&&_0x3b144f['commentThread']['length'];if(!_0x1340cb&&_0x2fc30f(_0x470f64,_0x16aa2c))return _0x243511['_joinSuggestions'](_0x3b144f,_0x428ed2),_0x26f52f['delete'](_0x428ed2),!0x0;if(!_0x5e6dd8&&_0x2fc30f(_0x16aa2c,_0x470f64))return _0x243511['_joinSuggestions'](_0x428ed2,_0x3b144f),_0x26f52f['delete'](_0x3b144f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4645a4,_0x23b2eb){if(_0x4645a4['isMultiRange']){for(const _0x8bc041 of _0x23b2eb['getRanges']())_0x4645a4['addRange'](_0x8bc041);}else{const _0x883453=_0x23b2eb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4645a4,this['_model']['createRange'](_0x4645a4['getFirstRange']()['start'],_0x883453));}_0x23b2eb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x326976,_0x420f01,_0x30561c){const _0x1bfaa9=_0x326976['startsWith']('format')||_0x326976['startsWith']('attribute')?'FORMATTING':_0x326976['toUpperCase']();return o(this['editor']['locale'],_0x420f01+'_'+_0x1bfaa9+'_SUGGESTION_ANNOUNCEMENT',_0x30561c);}['_initAriaMarkerChangeAnnouncements'](){const _0x1bcedc=this['editor'];if(!_0x1bcedc['ui'])return;const {ariaLiveAnnouncer:_0x23c9e9}=_0x1bcedc['ui'];_0x5b66a2(this['_model'],({left:_0x17c9df,entered:_0xaa6662})=>{for(const _0x4b4011 of _0x17c9df){const {group:_0x19e1c9,type:_0x1cf75a}=this['_splitMarkerName'](_0x4b4011['name']);if('suggestion'===_0x19e1c9){_0x23c9e9['announce'](this['_getMarkerAnnouncementText'](_0x1cf75a,'LEAVE'));break;}}for(const _0x38d3eb of _0xaa6662){const {group:_0x39a706,type:_0x375655}=this['_splitMarkerName'](_0x38d3eb['name']);if('suggestion'===_0x39a706){_0x23c9e9['announce'](this['_getMarkerAnnouncementText'](_0x375655,'ENTER',_0x4db692(_0x56dbac)));break;}}});}['_processAttributeChanges'](_0x413fd8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x36a59d=this['editor'],_0x38c424=_0x36a59d['model']['document']['differ']['getChanges']();if(0x0==_0x38c424['length'])return!0x1;const _0x1df05b=[],_0x3dc1f4=_0x38c424['filter'](_0x881546=>'attribute'==_0x881546['type']),_0x71eb07=_0x38c424['filter'](_0x578dce=>'insert'==_0x578dce['type']&&'$text'!=_0x578dce['name']),_0x5c6fb1=_0x38c424['filter'](_0x45fe59=>'remove'==_0x45fe59['type']&&'$text'!=_0x45fe59['name']);for(const _0x3b3a09 of _0x3dc1f4)_0x1df05b['push']({'key':_0x3b3a09['attributeKey'],'newValue':_0x3b3a09['attributeNewValue'],'oldValue':_0x3b3a09['attributeOldValue'],'range':Lt(_0x3b3a09['range'],_0x36a59d['model'])});for(const _0x562456 of _0x71eb07){const _0x331ed9=_0x5c6fb1['find'](_0x41d53f=>_0x41d53f['position']['isEqual'](_0x562456['position']));_0x331ed9&&_0x1df05b['push']({'key':m,'newValue':_0x562456['name'],'oldValue':_0x331ed9['name'],'range':_0x36a59d['model']['createRangeOn'](_0x562456['position']['nodeAfter'])});}return 0x0!=_0x1df05b['length']&&this['_reduceExistingSuggestions'](_0x413fd8,_0x1df05b);}['_processAttributeSuggestions'](_0x301828){let _0x1eb15c=!0x1;const _0x406150=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f7b98=>_0x3f7b98['data']['newRange']&&_0x3f7b98['name']['startsWith']('suggestion:attribute:'));for(const _0x1fe560 of _0x406150){const {subType:_0x53e0c4,id:_0x1008be}=this['_splitMarkerName'](_0x1fe560['name']),_0x23cb1a=_0x53e0c4['split']('|')[0x0];for(const _0x1654cf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1654cf['id']!=_0x1008be&&'attribute'==_0x1654cf['type']&&_0x1654cf['data']&&_0x1654cf['data']['key']==_0x23cb1a&&_0x1654cf['getFirstRange']()['isIntersecting'](_0x1fe560['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1654cf,_0x1fe560['data']['newRange'],_0x301828),_0x1eb15c=!0x0);}return _0x1eb15c;}['_recordAttributeChanges'](_0x46cf2a){this['_recordAttributeSuggestions']=!0x0,_0x46cf2a();}['_isRegisteredAttribute'](_0x374d22){const _0x518839=this['_isBlockAttribute'](_0x374d22),_0xcb67dc=this['_inlineAttributeKeys']['has'](_0x374d22);return _0x518839||_0xcb67dc;}['_reduceExistingSuggestions'](_0x201682,_0x30a8f3){if(0x0==_0x30a8f3['length'])return!0x1;let _0x37d915=!0x1;for(const _0x2dfd61 of _0x30a8f3){const _0x5ce0d9=this['_findSuggestions'](_0x2dfd61['range'],'attribute')['filter'](_0x30ef6f=>!_0x30ef6f['meta']['isNextTo'])['map'](_0x3e84f5=>_0x3e84f5['suggestion']),_0x496437=_0x2f256a({'newValue':_0x2dfd61['newValue']});_0x5ce0d9['filter'](_0x226bd4=>{const [_0x53b5fe,_0x1e9fb0]=_0x226bd4['subType']['split']('|');return _0x53b5fe==_0x2dfd61['key']&&_0x1e9fb0!=_0x496437;})['forEach'](_0x47dc1b=>{this['_reduceSuggestionAttributeRange'](_0x47dc1b,_0x2dfd61['range'],_0x201682),_0x37d915=!0x0;});}return _0x37d915;}['_reduceSuggestionAttributeRange'](_0x1c53f9,_0x174905,_0xeb801c){const _0x3fc6af=_0x1c53f9['getFirstRange']()['getDifference'](_0x174905);0x0!==_0x3fc6af['length']?0x1!==_0x3fc6af['length']?this['_breakSuggestionMarker'](_0x1c53f9,_0x174905['start'],_0x174905['end']):this['_setSuggestionRange'](_0x1c53f9,_0x3fc6af[0x0]):_0xeb801c['removeMarker'](_0x1c53f9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xdbcbe4){this['_editor']=_0xdbcbe4,this['_model']=_0xdbcbe4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x237abd,_0x26a4d8,_0x1f3d8f,_0x2be2e2,_0x39ea12,_0x41ba29){return new u(this['_model'],{'type':_0x237abd,'subType':_0x26a4d8,'id':_0x1f3d8f,'author':_0x2be2e2,'creator':_0x2be2e2,'attributes':_0x39ea12,'onAttributesChange':_0x41ba29,'onAccept':(..._0x93f921)=>this['getSuggestionCallback'](_0x237abd,_0x26a4d8,'accept')(..._0x93f921),'onDiscard':(..._0x5443d6)=>this['getSuggestionCallback'](_0x237abd,_0x26a4d8,'discard')(..._0x5443d6)});}['registerCustomCallback'](_0x888747,_0x308e27,_0x16db86,_0x185619){const _0x21f773=_0x888747+':'+_0x308e27+':'+_0x16db86;this['_customCallbacks']['set'](_0x21f773,_0x185619);}['getSuggestionCallback'](_0xd167a,_0x56683e,_0x18c095){const _0x22d2db=_0xd167a+':'+_0x56683e+':'+_0x18c095;return this['_customCallbacks']['get'](_0x22d2db)||this['_defaultCallbacks']['get'](_0xd167a+':'+_0x18c095);}['_registerDefaultCallbacks'](){const _0x5c894e=()=>!0x1,_0x397426=_0x1a5e6c=>{_0x1a5e6c['sort']((_0x22c8ac,_0x4dec94)=>_0x22c8ac['start']['isBefore'](_0x4dec94['start'])?0x1:-0x1),this['_model']['change'](_0x1ddf85=>{for(const _0x49069b of _0x1a5e6c){let _0x196faa;_0x196faa=_0x49069b['end']['isAtEnd']&&_0x49069b['end']['parent']==_0x49069b['start']['nodeAfter']?_0x1ddf85['createSelection'](_0x49069b['start']['nodeAfter'],'on'):_0x1ddf85['createSelection'](_0x49069b),this['_model']['deleteContent'](_0x196faa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30f10d=(_0x43cfa3,_0x281baf)=>{_0x281baf&&this['_model']['change'](_0x37a0a0=>{const {commandName:_0x1b3bc1,commandParams:_0x49a59e=[]}=_0x281baf,_0x4b7806=_0x43cfa3['map'](_0x4d8618=>(Vt(_0x4d8618)&&(_0x4d8618=this['_model']['createRange'](_0x4d8618['end'])),_0x4d8618))['filter'](_0x36e241=>'$graveyard'!==_0x36e241['root']['rootName']);if(_0x4b7806['length']<0x1)return;const _0x30531e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x16e7c7=>_0x14359b['fromRange'](_0x16e7c7));_0x37a0a0['setSelection'](_0x4b7806);for(const _0x1a9962 of this['_editor']['commands']['commands']())_0x1a9962['refresh']();_0x49a59e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b3bc1,..._0x49a59e);const _0x4ca00b=_0x30531e['filter'](_0x4df523=>'$graveyard'!=_0x4df523['root']['rootName']);_0x4ca00b['length']>0x0&&_0x37a0a0['setSelection'](_0x4ca00b);for(const _0x464188 of _0x30531e)_0x464188['detach']();});},_0x2eb5e9=(_0x49ca5d,_0x4c3fd5)=>0x1==_0x49ca5d['length']&&0x1==_0x4c3fd5['length']&&_0x49ca5d[0x0]['end']['isEqual'](_0x4c3fd5[0x0]['start']),_0xabc934=(_0x43c7bf,_0x3234cd,_0xc1bc6c,_0x48f076)=>Ht(_0x43c7bf,_0x3234cd,_0xc1bc6c,_0x48f076)?[_0x43c7bf,_0x3234cd]:Ht(_0x3234cd,_0x43c7bf,_0x48f076,_0xc1bc6c)?[_0x3234cd,_0x43c7bf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5c894e),this['_defaultCallbacks']['set']('insertion:discard',_0x397426),this['_defaultCallbacks']['set']('insertion:join',_0x2eb5e9),this['_defaultCallbacks']['set']('insertion:chain',_0xabc934),this['_defaultCallbacks']['set']('deletion:accept',_0x397426),this['_defaultCallbacks']['set']('deletion:discard',_0x5c894e),this['_defaultCallbacks']['set']('deletion:join',_0x2eb5e9),this['_defaultCallbacks']['set']('deletion:chain',_0xabc934),this['_defaultCallbacks']['set']('formatInline:accept',_0x30f10d),this['_defaultCallbacks']['set']('formatInline:discard',_0x5c894e),this['_defaultCallbacks']['set']('formatInline:join',_0x2eb5e9),this['_defaultCallbacks']['set']('formatInline:chain',_0x5c894e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x30f10d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5c894e),this['_defaultCallbacks']['set']('formatBlock:join',_0x2eb5e9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5c894e),this['_defaultCallbacks']['set']('attribute:accept',_0x5c894e),this['_defaultCallbacks']['set']('attribute:discard',(_0x40e2a9,_0x23d42d)=>{if(!_0x23d42d)return;const _0x249ea6=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1f1b54=>{if(_0x23d42d['key']==m)for(const _0x3c79b7 of _0x40e2a9){const _0x42af1c=_0x3c79b7['start']['nodeAfter'],_0x263dfc=_0x23d42d['oldValue'];_0x1f1b54['rename'](_0x42af1c,_0x263dfc);}else{if(_0x249ea6['_isBlockAttribute'](_0x23d42d['key'])){for(const _0x4632a3 of _0x40e2a9)void 0x0!==_0x23d42d['oldValue']?_0x1f1b54['setAttribute'](_0x23d42d['key'],_0x23d42d['oldValue'],_0x4632a3['start']['nodeAfter']):_0x1f1b54['removeAttribute'](_0x23d42d['key'],_0x4632a3['start']['nodeAfter']);}else{for(const _0x26718b of _0x40e2a9)_0x23d42d['oldValue']?_0x1f1b54['setAttribute'](_0x23d42d['key'],_0x23d42d['oldValue'],_0x26718b):_0x1f1b54['removeAttribute'](_0x23d42d['key'],_0x26718b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2eb5e9);}}function Ut(_0x1b5035,_0x359d5e,_0x21ca05){for(const _0x1c4760 of _0x359d5e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c4760['root']==_0x1c4760)return!0x1;if(!_0x21ca05['containsItem'](_0x1c4760))return!0x1;if(_0x1b5035['isObject'](_0x1c4760)||_0x1b5035['isLimit'](_0x1c4760))return!0x0;}return!0x1;}function Vt(_0x373688){return _0x373688['end']['parent']==_0x373688['start']['nodeAfter']&&_0x373688['end']['isAtStart'];}function Pt(_0x49270f,_0xaa8251,_0x113692,_0x13982c){const _0x24ef55=_0x197c47=>!_0x197c47['item']['is']('$textProxy')&&!_0x13982c['isObject'](_0x197c47['item']),_0x4c1af5=_0x49270f['start']['getLastMatchingPosition'](_0x24ef55),_0x410e1e=_0x49270f['end']['getLastMatchingPosition'](_0x24ef55,{'direction':'backward'});return(!_0x49270f['start']['isEqual'](_0x4c1af5)||!_0x49270f['end']['isEqual'](_0x410e1e))&&(_0x4c1af5['isBefore'](_0x410e1e)?_0x113692['updateMarker'](_0xaa8251,{'range':_0x113692['createRange'](_0x4c1af5,_0x410e1e)}):_0x113692['removeMarker'](_0xaa8251),!0x0);}function Gt(_0x39576e){return _0x2f256a(_0x39576e);}function Ft(_0x32c12a){const _0x3a99d9=_0x32c12a['start']['nodeAfter'];return _0x3a99d9&&_0x3a99d9['is']('element');}function Lt(_0x56ee18,_0x120bdd){return null==_0x56ee18['end']['nodeBefore']&&_0x56ee18['end']['parent']==_0x56ee18['start']['nodeAfter']?Jt(_0x56ee18['start']['nodeAfter'],_0x120bdd):_0x56ee18;}function Jt(_0x32a5ce,_0xcdd2b5){const _0x1bd2e1=_0xcdd2b5['schema']['isObject'](_0x32a5ce)||_0xcdd2b5['schema']['isSelectable'](_0x32a5ce);return _0xcdd2b5['createRange'](_0xcdd2b5['createPositionAt'](_0x32a5ce,'before'),_0x1bd2e1?_0xcdd2b5['createPositionAfter'](_0x32a5ce):_0xcdd2b5['createPositionAt'](_0x32a5ce,'end'));}function Ht(_0x48cfd8,_0x52cf6c,_0x210ddf,_0x33b5cd){return!!qt(_0x48cfd8,_0x52cf6c)&&_0x210ddf['end']['isEqual'](_0x33b5cd['start']);}function qt(_0x1ac0c8,_0x1a39ec){if(!_0x1ac0c8['_isDataLoaded']||!_0x1a39ec['_isDataLoaded'])return!0x1;const _0x14654c=new Set(Object['keys'](_0x1ac0c8['attributes'])),_0x176d4f=new Set(Object['keys'](_0x1a39ec['attributes']));if(_0x14654c['delete']('groupId'),_0x176d4f['delete']('groupId'),0x0==_0x14654c['size']&&0x0==_0x176d4f['size'])return!0x0;if(_0x14654c['size']!=_0x176d4f['size'])return!0x1;const _0xf53af2={..._0x1ac0c8['attributes']},_0x38b180={..._0x1a39ec['attributes']};return delete _0xf53af2['groupId'],delete _0x38b180['groupId'],JSON['stringify'](_0xf53af2)==JSON['stringify'](_0x38b180);}function zt(_0x16d587,_0x5e96dd){const _0x3df8b7=Kt(_0x16d587['attributes']),_0x279b5c=Kt(_0x5e96dd);if(!_0x16d587['_isDataLoaded'])return!0x1;for(const _0x7f78a4 of Object['keys'](_0x279b5c))if(!_0x2f8722(_0x3df8b7[_0x7f78a4],_0x279b5c[_0x7f78a4]))return!0x1;return!0x0;}function Kt(_0x122817){const _0x16c379=Object['assign']({},_0x122817);return delete _0x16c379['skipNestingCheck'],delete _0x16c379['tablePasteChainId'],_0x16c379;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x379b76(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b40e2,_0x30243d,_0x434245,_0x410197){super(),this['model']=_0x30243d,this['view']=_0x434245,this['commentThreadController']=_0x410197,this['_editor']=_0x5b40e2,this['_acceptCommand']=_0x5b40e2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b40e2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53b50c,_0x5a6eaf)=>_0x53b50c||_0x5a6eaf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bcaab=>_0x4bcaab&&this['_editor']['model']['canEditAt'](_0x30243d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x330f78=>_0x330f78&&this['_editor']['model']['canEditAt'](_0x30243d['getRanges']())),this['_pendingAction']=null,_0x434245['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x434245,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x434245,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x434245,'change:isDirty',()=>{_0x434245['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 _0x5511ca=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5511ca);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xdab870{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3b84ac,_0x1b344b,_0x446e7f,_0x4ed8b1){super(_0x3b84ac),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x17eec5(_0x3b84ac,o(_0x3b84ac,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1b344b['authoredAt']),this['bind']('authoredAt')['to'](_0x1b344b),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',_0x1b344b,'authoredAt',this,'descriptionParts',(_0x40e985,_0x540f04,_0x3548bd)=>{const _0x496982=_0x3548bd['map'](_0x522b47=>ns(_0x522b47['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x40e985-0x1,_0x1b344b['author']['name'],_0x540f04?_0x4ed8b1['formatDateTime'](_0x540f04):'',new DOMParser()['parseFromString'](_0x496982,'text/html')['body']['textContent']]);}),this['focusables']=new _0x16a546(),this['focusTracker']=new _0x1d722e(),this['keystrokes']=new _0x4ec040(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c6a8c=>_0x5c6a8c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1b344b,this['_localUser']=_0x446e7f,this['_config']=_0x4ed8b1,_0x4ed8b1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1097db(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x34fd54}=this['_config'];this['commentsListView']=new _0x34fd54(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',_0xc0229d=>_0xc0229d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x512259,_0xa520f0)=>_0x512259||!!_0xa520f0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x140f69}=this['_config'],_0xbf503b=new _0x140f69(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1b39b3=_0xbf503b['commentInputView'];return _0xbf503b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1b39b3,'value',(_0x1f6e19,_0x108bef,_0x3f4adb)=>!!_0x3f4adb||_0x1f6e19&&!_0x108bef),_0x1b39b3['on']('submit',(_0x5d4aac,_0x1c0e83)=>{this['fire']('addComment',_0x1c0e83),_0x1b39b3['editor']['setData']('');}),_0x1b39b3['on']('cancel',()=>this['focus']()),_0x1b39b3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xbf503b;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3311d2,_0x206563,_0xcdd561,_0x228cc1){super(_0x3311d2,_0x206563,_0xcdd561,_0x228cc1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x544bb5=>_0x544bb5&&_0x544bb5[0x0]?_0x544bb5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x6a9e3d,_0x14188c)=>{let _0x128130='';for(const _0x359249 of _0x6a9e3d)_0x128130+='<p>'+ns(_0x359249['content'],_0x359249['color'])+'</p>';return _0x14188c?_0x128130:ti(_0x128130,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x228cc1['SuggestionView'](_0x3311d2,_0x206563,{'formatDateTime':_0x228cc1['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 _0x42a8f8=this['bindTemplate'],_0x2200a5=[this['suggestionView']];return this['commentsListView']&&_0x2200a5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2200a5['push'](this['commentThreadInputView']),_0x2200a5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x42a8f8['if']('isActive','ck-suggestion-wrapper--active'),_0x42a8f8['to']('type',_0xa18083=>'ck-suggestion-'+_0xa18083),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':_0x42a8f8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2200a5};}['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 _0xdab870{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e8d9e,_0x10bd44,_0x216d62){super(_0x2e8d9e),this['_model']=_0x10bd44,this['_config']=_0x216d62,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10bd44),this['acceptButton']=this['_createButton'](o(_0x2e8d9e,'Accept\x20suggestion'),_0x439a94['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2e8d9e,'Discard\x20suggestion'),_0x439a94['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x44a02c(_0x2e8d9e,_0x10bd44['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x16a546([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1d722e(),this['keystrokes']=new _0x4ec040(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x188bd8=>_0x188bd8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x265aaa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x265aaa['innerHTML']=this['description'],this['on']('change:description',(_0x417b2a,_0x1002ca,_0x9dcf58)=>{_0x265aaa['innerHTML']=_0x9dcf58;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x334fd1=this['bindTemplate'],_0x54c010=[{'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':_0x334fd1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x334fd1['to']('authoredAt',_0xde463b=>this['_config']['formatDateTime'](_0xde463b))}]}]},{'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']&&_0x54c010['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':_0x54c010}]};}['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'](_0x3c9fb9,_0x11bc52,_0x3c2393,_0x1529b9,_0x59a429){const _0x29930c=new _0x22f19e(this['locale']);return _0x29930c['set']({'label':_0x3c9fb9,'icon':_0x11bc52,'tooltip':!0x0,'tooltipPosition':_0x59a429}),_0x29930c['extendTemplate']({'attributes':{'class':_0x3c2393}}),_0x29930c['on']('execute',()=>{this['fire'](_0x1529b9,this['_model']['id']);}),_0x29930c;}['_setupKeyboardNavigation'](){const _0x51fef5=this['element'];this['keystrokes']['listenTo'](_0x51fef5);for(const _0x4470c1 of this['focusables'])this['focusTracker']['add'](_0x4470c1['element']),this['keystrokes']['listenTo'](_0x4470c1['element']);this['keystrokes']['set']('enter',(_0x49c486,_0x5e560e)=>{_0x51fef5===_0x49c486['target']&&(this['focusCycler']['focusFirst'](),_0x5e560e());}),this['keystrokes']['set']('esc',(_0x5e17a6,_0x4ac7eb)=>{_0x51fef5!==_0x5e17a6['target']&&(this['focus'](),_0x4ac7eb());});}}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 _0x56605c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x45ec3d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x339c3b){super(_0x339c3b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x295084=this['editor']['config'];_0x295084['define']('trackChanges.SuggestionThreadView',de),_0x295084['define']('trackChanges.SuggestionView',ue),_0x295084['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x295084['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x195994,_0x253ade){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x23bad5,_0x8e0bc8]of this['_handleControllerBuffer']){const _0x305aba=this['_suggestionToController']['has'](_0x23bad5);_0x305aba||_0x8e0bc8?_0x305aba&&_0x8e0bc8&&this['_destroyController'](_0x23bad5):this['_initializeController'](_0x23bad5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x195994,_0x253ade);}['init'](){const _0x3f2bdb=this['editor'],_0x4a28f4=_0x3f2bdb['plugins']['get']('TrackChangesEditing'),_0x4e024c=_0x3f2bdb['plugins']['get']('Annotations'),_0x334a25=_0x3f2bdb['plugins']['get']('EditorAnnotations'),_0x54396f=_0x3f2bdb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x334a25['addSourceCollector'](()=>{const _0x32e348=[];for(const [_0x46263e,_0x903546]of Array['from'](this['_suggestionToController'])){const _0x16437d=_0x46263e['getAllAdjacentSuggestions'](),_0x152790=[];for(const _0x2c4e2b of _0x16437d){if(!_0x2c4e2b['isInContent'])continue;if(_0x2c4e2b['isMultiRange']){_0x152790['push'](..._0x2c4e2b['getRanges']());continue;}const _0xdc9a8a=_0x2c4e2b['getFirstRange']();if(_0x152790['length']>0x0){const _0x15caa0=_0x152790[0x0]['getJoined'](_0xdc9a8a);if(_0x15caa0){_0x152790[0x0]=_0x15caa0;continue;}}_0x152790['push'](_0xdc9a8a);}_0x32e348['push']([_0x903546['view'],_0x152790]);}return _0x32e348;}),this['listenTo'](_0x4a28f4,'suggestionLoaded',(_0x14faa0,_0x1e7d61)=>{this['listenTo'](_0x1e7d61,'change:previous',(_0x3c57dd,_0x4582a6,_0x4784f1,_0x4e7d05)=>{_0x1e7d61['isInContent']&&(null==_0x4784f1?(this['_updateController'](_0x4e7d05['head']),this['_handleSuggestionControllerDelayed'](_0x1e7d61,!0x1)):(this['_updateController'](_0x4784f1['head']),null==_0x4e7d05&&this['_handleSuggestionControllerDelayed'](_0x1e7d61,!0x0)));}),null!==_0x1e7d61['previous']?this['_updateController'](_0x1e7d61['head']):this['_handleSuggestionControllerDelayed'](_0x1e7d61,!0x1);}),this['listenTo'](_0x4a28f4,'suggestionUnloaded',(_0x27de6c,_0x9114f6,_0x4e87ac)=>{this['stopListening'](_0x9114f6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9114f6),this['_suggestionToController']['has'](_0x9114f6)&&this['_destroyController'](_0x9114f6),_0x4e87ac&&this['_updateController'](_0x4e87ac['head']);}),this['listenTo'](_0x4a28f4,'suggestionChanged',(_0x5646ca,_0x3253fe)=>{this['_updateController'](_0x3253fe);}),this['listenTo'](_0x4e024c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54396f,'addComment',(_0x5ba6b5,{threadId:_0x5fb358,isFromAdapter:_0x37060c})=>{if(_0x37060c||!_0x4a28f4['hasSuggestion'](_0x5fb358))return;const _0x7c25ea=_0x4a28f4['getSuggestion'](_0x5fb358);this['_suggestionToController']['get'](_0x7c25ea)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25d11c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x242a10;for(const _0x5543ee in _0x25d11c){const _0x8cd462=_0x5543ee,_0x57a459=_0x25d11c[_0x8cd462];if('trackChangesLicenseKeyValid'==_0x57a459||'trackChangesLicenseKeyInvalid'==_0x57a459||'trackChangesLicenseKeyExpired'==_0x57a459||'trackChangesLicenseKeyDomainLimit'==_0x57a459||'trackChangesLicenseKeyNotAllowed'==_0x57a459||'trackChangesLicenseKeyEvaluationLimit'==_0x57a459||'trackChangesLicenseKeyTrialLimit'==_0x57a459||'trackChangesLicenseKeyDevelopmentLimit'==_0x57a459||'trackChangesLicenseKeyUsageLimit'==_0x57a459){delete _0x25d11c[_0x8cd462],_0x242a10=_0x57a459,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x242a10&&_0x25d11c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x242a10&&_0x25d11c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x242a10&&_0x25d11c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x242a10&&_0x25d11c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x242a10&&_0x25d11c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x242a10&&_0x25d11c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x242a10&&_0x25d11c['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x242a10&&_0x25d11c['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x222167=this['editor']['plugins']['get']('Annotations'),_0x2fb0b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4467a2=Array['from'](_0x222167['activeAnnotations'],_0x118a4a=>_0x118a4a['innerView'])['filter'](_0x1165ff=>this['_viewToController']['has'](_0x1165ff)),_0x61b2eb=[];for(const _0x2c23d3 of _0x4467a2){const _0x5dffe4=this['_viewToController']['get'](_0x2c23d3)['model']['getAllAdjacentSuggestions']();_0x61b2eb['push'](..._0x5dffe4['reduce']((_0x1c29a4,_0x109f3e)=>[..._0x1c29a4,..._0x109f3e['getMarkerNames']()],[]));}_0x2fb0b2['activeMarkers']=_0x61b2eb;}['_addUIComponentsToFactory'](){const _0x15a86d=this['editor'],_0x3665e9=_0x15a86d['locale'],_0x366fa7=o(_0x3665e9,'Track\x20changes'),_0x234fbb=new _0x29b6de([{'type':'switchbutton','model':new _0xb431d0({'withText':!0x0,'isToggleable':!0x0,'label':_0x366fa7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xb431d0({'withText':!0x0,'label':o(_0x3665e9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb431d0({'withText':!0x0,'label':o(_0x3665e9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb431d0({'withText':!0x0,'label':o(_0x3665e9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb431d0({'withText':!0x0,'label':o(_0x3665e9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3d86d5 of _0x234fbb)if(pe(_0x3d86d5)){const _0x539a05=_0x15a86d['commands']['get'](_0x3d86d5['model']['commandName']);_0x3d86d5['model']['bind']('isOn','isEnabled')['to'](_0x539a05,'value','isEnabled');}_0x15a86d['ui']['componentFactory']['add']('trackChanges',_0x2f7efa=>this['_createToolbarButton'](_0x2f7efa,_0x234fbb,_0x366fa7)),_0x15a86d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1cb931=>this['_createMenuBarMenu'](_0x1cb931,_0x234fbb,_0x366fa7));}['_createToolbarButton'](_0x38fc1e,_0x57304d,_0x11bc48){const _0x1573ce=_0x9c4d36(_0x38fc1e,_0x141783),_0x4e3e3e=this['editor']['commands']['get']('trackChanges');_0x1573ce['buttonView']['set']({'tooltip':_0x11bc48,'label':_0x11bc48,'icon':Ce}),_0x1573ce['buttonView']['bind']('isOn')['to'](_0x4e3e3e,'value'),_0x1573ce['buttonView']['on']('execute',()=>{_0x4e3e3e['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x1573ce,_0x57304d,{'role':'menu'});const _0x1e304a=[];for(const _0x1a982a of _0x57304d)pe(_0x1a982a)&&_0x1e304a['push'](this['editor']['commands']['get'](_0x1a982a['model']['commandName']));const _0x21ca6a=_0x1573ce['buttonView'];return _0x21ca6a['actionView']['unbind']('isEnabled'),_0x21ca6a['arrowView']['unbind']('isEnabled'),_0x21ca6a['actionView']['bind']('isEnabled')['to'](_0x4e3e3e,'isEnabled'),_0x21ca6a['arrowView']['bind']('isEnabled')['toMany'](_0x1e304a,'isEnabled',(..._0x14bead)=>_0x14bead['some'](_0x45cb1b=>_0x45cb1b)),_0x1573ce['on']('execute',_0x4c3250=>{this['editor']['execute'](_0x4c3250['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1573ce;}['_createMenuBarMenu'](_0x1bd648,_0x89c5d2,_0x544ed8){const _0x27a3eb=new _0x2cbef1(_0x1bd648),_0x56963f=this['editor']['commands']['get']('trackChanges');_0x27a3eb['buttonView']['set']({'label':_0x544ed8,'icon':Ce});const _0x1ae749=new _0x4a6da9(_0x1bd648);for(const _0x28603e of _0x89c5d2){if('separator'==_0x28603e['type']){_0x1ae749['items']['add'](new _0x5f1a87(_0x1bd648));continue;}const _0x431678=new _0x231c89(_0x1bd648,_0x27a3eb),_0x3eb4c1=new _0x2f410a(_0x1bd648),_0x445351=_0x28603e['model'];_0x3eb4c1['bind'](...Object['keys'](_0x445351))['to'](_0x445351),_0x3eb4c1['delegate']('execute')['to'](_0x27a3eb),_0x3eb4c1['on']('execute',()=>{this['editor']['execute'](_0x445351['commandName']),this['editor']['editing']['view']['focus']();}),_0x431678['children']['add'](_0x3eb4c1),_0x1ae749['items']['add'](_0x431678);}return _0x27a3eb['bind']('isEnabled')['to'](_0x56963f,'isEnabled'),_0x27a3eb['panelView']['children']['add'](_0x1ae749),_0x27a3eb;}['_initializeController'](_0x3d2df2){const _0x38aaea=this['editor'],_0x4cf466=_0x38aaea['config'],_0x4e0c97=_0x38aaea['plugins']['get']('Annotations'),_0x13cf80=_0x38aaea['plugins']['get']('CommentsRepository'),_0x9cb818=_0x38aaea['plugins']['get']('EditorAnnotations'),_0x281c29=_0x38aaea['plugins']['get'](_0x45ec3d)['me'],_0x123459=_0x4cf466['get']('trackChanges')['SuggestionThreadView'],_0x4b1c84=_0x4cf466['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x424085,CommentThreadInputView:_0x9affa0}=_0x38aaea['plugins']['get']('CommentsUI');let _0x9bea,_0x179700,_0x196f50;this['_annotationViews']['has'](_0x3d2df2['id'])?(_0x179700=this['_annotationViews']['get'](_0x3d2df2['id']),_0x9bea=_0x179700['mainView']):(_0x9bea=new _0x123459(_0x38aaea['locale'],_0x3d2df2,_0x281c29,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4cf466['get']('comments.editorConfig'),'licenseKey':_0x4cf466['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4cf466['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4cf466['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4cf466['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31b012(_0x4cf466['get']('locale')),'CommentView':_0x4cf466['get']('comments')['CommentView'],'CommentsListView':_0x424085,'CommentThreadInputView':_0x9affa0,'SuggestionView':_0x4b1c84}),_0x9bea['suggestionView']['acceptButton']['on']('execute',()=>{_0x38aaea['editing']['view']['focus']();}),_0x9bea['suggestionView']['discardButton']['on']('execute',()=>{_0x38aaea['editing']['view']['focus']();}),_0x179700=_0x4e0c97['createAnnotationView'](this['editor']['locale'],_0x9bea),_0x179700['bind']('isDirty')['to'](_0x9bea,'isDirty'),_0x179700['bind']('length')['to'](_0x9bea),_0x179700['bind']('type')['to'](_0x9bea,'type',_0x53b5d5=>'suggestion-'+_0x53b5d5),_0x9bea['on']('escape',()=>{_0x196f50['fire']('escape');}),this['_annotationViews']['set'](_0x3d2df2['id'],_0x179700));const _0x39fcf8=_0x13cf80['createCommentThreadController'](_0x3d2df2['commentThread'],_0x9bea),_0x3e292a=new ge(_0x38aaea,_0x3d2df2,_0x9bea,_0x39fcf8),_0x3c9662=_0x3d2df2['getAllAdjacentSuggestions']()['filter'](_0x56dddf=>_0x56dddf['isInContent']);_0x9bea['descriptionParts']=_0x38aaea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3c9662),this['_suggestionToController']['set'](_0x3d2df2,_0x3e292a),this['_viewToController']['set'](_0x9bea,_0x3e292a),_0x196f50=_0x4e0c97['createAnnotation']({'view':_0x179700,'target':()=>{const _0x1a6910=[],_0x26ef4b=_0x3d2df2['getAllAdjacentSuggestions']()['filter'](_0x48e88f=>_0x48e88f['isInContent']);for(const _0x43be63 of _0x26ef4b)_0x1a6910['push'](..._0x43be63['getMarkers']());return _0x5c20f6(_0x38aaea['editing'],_0x1a6910);},'type':()=>'suggestion-'+_0x3e292a['view']['type']}),_0x13cf80['_bindAnnotationToEditors'](_0x9bea,_0x196f50),_0x4e0c97['add'](_0x196f50),_0x9cb818['registerAnnotation'](_0x196f50);}['_destroyController'](_0x1c690b){const _0x557852=this['editor']['plugins']['get']('CommentsRepository'),_0x8db687=this['editor']['plugins']['get']('Annotations'),_0x9af691=this['_suggestionToController']['get'](_0x1c690b),_0x406cf8=_0x9af691['view'],_0x38f7f3=_0x8db687['getByInnerView'](_0x406cf8);_0x557852['_unbindEditors'](_0x406cf8),_0x38f7f3&&_0x8db687['remove'](_0x38f7f3),this['_suggestionToController']['delete'](_0x1c690b),this['_viewToController']['delete'](_0x406cf8),_0x9af691['destroy']();}['_updateController'](_0x123ac9){if(!_0x123ac9['isInContent']||!this['_suggestionToController']['has'](_0x123ac9))return;const _0x1850d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x63834c=this['_suggestionToController']['get'](_0x123ac9),_0x30904e=_0x123ac9['getAllAdjacentSuggestions']();_0x63834c['view']['descriptionParts']=_0x1850d6['descriptionFactory']['getDescriptions'](_0x30904e);}['destroy'](){for(const _0x34b682 of this['_suggestionToController']['keys']())this['_destroyController'](_0x34b682);for(const _0x17d74b of this['_annotationViews']['values']())_0x17d74b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x488d33){return'model'in _0x488d33;}class k extends _0x56605c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3ec79e){this['editor']['plugins']['get'](p)['adapter']=_0x3ec79e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xe3f99e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xe3f99e);}['getSuggestions']({skipNotAttached:_0x52121d=!0x1,toJSON:_0x498287=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x52121d,'toJSON':_0x498287});}['getSuggestion'](_0x8a877e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x8a877e);}}const w=['Pagination'];class T extends _0x56605c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x15b8ba=this['editor'];if(_0x15b8ba['config']['define']('trackChangesData.editorCreator',_0x4850ad=>{const _0x1ae759=_0x15b8ba['model']['document']['getRootNames']()['reduce']((_0x47196f,_0x31de63)=>(_0x47196f[_0x31de63]='',_0x47196f),{});return _0x15b8ba['constructor']['create'](_0x1ae759,_0x4850ad);}),'function'!=typeof _0x15b8ba['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a3251('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16138a){return N(this['editor'],!0x0,_0x16138a);}['getDataWithDiscardedSuggestions'](_0x551fca){return N(this['editor'],!0x1,_0x551fca);}}class D extends _0x56605c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x389a54){function _0x152066(_0x20bfcc){return _0x20bfcc['map'](_0x3b3b85=>String['fromCharCode'](_0x3b3b85))['join']('');}super(_0x389a54),this['result']='end',_0x389a54[_0x152066([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x152066([0x76,0x69,0x65,0x77])][_0x152066([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x152066([0x61,0x75,0x74,0x6f]),_0x389a54[_0x152066([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x152066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x152066([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x152066([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x152066([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(_0x500c26){return void 0x0!==_0x500c26['getRootsAttributes'];}async function N(_0x442d0e,_0x5cee7b,_0x43fdc9){const _0xc0649a=_0x3f77a2(_0x442d0e,w);_0xc0649a['plugins']['push'](p,D),_0xc0649a['rootsAttributes']=v(_0x442d0e)?_0x442d0e['getRootsAttributes']():void 0x0;const _0x5476f8=document['createDocumentFragment'](),_0x13e41e=_0x442d0e['config']['get']('trackChangesData')['editorCreator'],_0x454094=await _0x13e41e(_0xc0649a,()=>function(_0x167c09){const _0x1d8a38=document['createElement']('div');return _0x167c09['appendChild'](_0x1d8a38),_0x1d8a38;}(_0x5476f8));!function(_0x1a6d19,_0x5cfd74){const _0x2f5dd6=_0x1a6d19['model']['document']['getRootNames']()['reduce']((_0x3f2ead,_0x4868ed)=>(_0x3f2ead[_0x4868ed]=_0x1a6d19['data']['get']({'rootName':_0x4868ed}),_0x3f2ead),{}),_0x22e6e0=_0x1a6d19['plugins']['get']('Users')['users']['map'](_0x38232b=>({'id':_0x38232b['id'],'name':_0x38232b['name']})),_0x67a088=_0x1a6d19['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23d064=_0x1a6d19['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x164e22=_0x5cfd74['plugins']['get']('Users'),_0x42a3c1=_0x5cfd74['plugins']['get']('TrackChangesEditing'),_0x3f3ba1=_0x5cfd74['plugins']['get']('CommentsRepository');for(const _0x28fe3b of _0x3f3ba1['getCommentThreads']())_0x28fe3b['remove']();for(const _0x42d043 of _0x22e6e0)_0x164e22['getUser'](_0x42d043['id'])||_0x164e22['addUser'](_0x42d043);_0x164e22['me']||_0x164e22['useAnonymousUser']();for(const _0x55d060 of _0x23d064)_0x3f3ba1['addCommentThread'](_0x55d060);for(const _0x5231cd of _0x67a088)_0x42a3c1['addSuggestionData'](_0x5231cd);_0x5cfd74['data']['set'](_0x2f5dd6);}(_0x442d0e,_0x454094),_0x454094['execute'](_0x5cee7b?'acceptAllSuggestions':'discardAllSuggestions');const _0x1209f2=v(_0x454094)?_0x454094['getFullData'](_0x43fdc9):_0x454094['data']['get'](_0x43fdc9);return await _0x454094['destroy'](),_0x1209f2;}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 _0x240e00,PendingActions as _0x45cc0b,icons as _0x52f5a6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1267e3,ObservableMixin as _0xe3577e,uid as _0x3aa221,insertToPriorityArray as _0x16e2b3,priorities as _0x4b3b10,logWarning as _0x11a33c,getEnvKeystrokeText as _0x35273a,FocusTracker as _0x760b4c,KeystrokeHandler as _0x4bc3b6,Collection as _0x1fff91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2e9a97,View as _0x37b64a,ViewCollection as _0x5bd361,FocusCycler as ts,ViewModel as _0x494abe,createDropdown as _0x24df7b,SplitButtonView as _0x323a15,addListToDropdown as te,MenuBarMenuView as _0x33a197,MenuBarMenuListView as _0x523cdb,ListSeparatorView as _0x2d46c5,MenuBarMenuListItemView as _0x5ae6b8,MenuBarMenuListItemButtonView as _0x4eb13b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x59b3bc,hashObject as _0x116e81,surroundingMarkersDetector as _0xe8c575,FOCUS_ANNOTATION_KEYSTROKE as _0x369e65,AriaDescriptionView as _0x26dc88,setupThreadKeyboardNavigation as _0x34aa7d,trimHtml as ti,UserView as _0x45d7ac,LateFocusButtonView as _0x566bb0,getDateTimeFormatter as _0x247c41,getAllMarkersDomElementsSorted as _0x5ced91,sanitizeEditorConfig as _0x53f1e9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4cf030,LiveRange as _0x23d2d0,LivePosition as _0x274438}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xddccc1,toWidget as _0x549466}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x461757,set as _0x52f1dc,isEqual as _0xf91c94,unset as _0xbbc215,omit as xt}from'lodash-es';import{Delete as _0x350182,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xa43e62,ShiftEnter as _0x530e8f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x344314,_0x1140da){super(_0x344314),this['_enabledCommands']=_0x1140da,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 _0x30ce94 of this['editor']['commands']['commands']())_0x30ce94['affectsData']&&!this['_enabledCommands']['has'](_0x30ce94)&&_0x30ce94['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d8301 of this['editor']['commands']['commands']())_0x1d8301['affectsData']&&!this['_enabledCommands']['has'](_0x1d8301)&&_0x1d8301['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x4ebc41,_0x119f0d){super(_0x4ebc41),this['_suggestions']=_0x119f0d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c1c88){const _0x549ba5=this['_suggestions']['get'](_0x5c1c88);if(!_0x549ba5)throw new _0x1267e3('track-changes-accept-suggestion-not-found',this);const _0x4c27a2=_0x549ba5['getRanges']();this['editor']['model']['canEditAt'](_0x4c27a2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x549ba5);}}class R extends Qt{['_suggestions'];constructor(_0x154f10,_0x581663){super(_0x154f10),this['_suggestions']=_0x581663,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d7cc2){const _0x246962=this['_suggestions']['get'](_0x2d7cc2);if(!_0x246962)throw new _0x1267e3('track-changes-discard-suggestion-not-found',this);const _0x18b9c7=_0x246962['getRanges']();this['editor']['model']['canEditAt'](_0x18b9c7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x246962);}}function ns(_0x3b799d,_0x4d6356){let _0x40f157='';return _0x40f157+=_0x3b799d['split']('*')['map']((_0x79d560,_0x23b4f2)=>_0x23b4f2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x79d560)+'</span>':nn(_0x79d560))['join'](''),_0x4d6356&&(_0x40f157+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4d6356['value']+'\x22\x20title=\x22'+_0x4d6356['title']+'\x22></span>'),_0x40f157;}function nn(_0x445244){const _0x3d0a40=document['createElement']('span');return _0x3d0a40['innerText']=_0x445244,_0x3d0a40['innerHTML'];}function Wt(_0x4e2fc2){return _0x4e2fc2['sort']((_0x2bc13d,_0x162528)=>'deletion'==_0x2bc13d['type']&&'deletion'!=_0x162528['type']?-0x1:'deletion'!=_0x2bc13d['type']&&'deletion'==_0x162528['type']?0x1:0x0);}function to(_0x4457db,_0x50bb3f){let _0x77f32b,_0x5bb9b9=0x0;const _0x2920d0=[],_0x33c270=_0x50bb3f['schema'];for(;_0x5bb9b9<_0x4457db['length'];){const _0x36e837=_0x4457db[_0x5bb9b9],_0x3dc18b=_0x4457db[_0x5bb9b9+0x1];_0x77f32b||(_0x77f32b=_0x50bb3f['createPositionBefore'](_0x36e837)),on(_0x50bb3f,_0x36e837,_0x3dc18b)||(_0x2920d0['push'](_0x50bb3f['createRange'](_0x77f32b,_0x33c270['isObject'](_0x36e837)?_0x50bb3f['createPositionAfter'](_0x36e837):_0x50bb3f['createPositionAt'](_0x36e837,'end'))),_0x77f32b=null),_0x5bb9b9++;}return _0x2920d0;}function on(_0x11b26e,_0x45326f,_0x47d4d1){if(!_0x47d4d1)return!0x1;const _0x257971=_0x11b26e['createPositionAfter'](_0x45326f),_0x1ae956=_0x11b26e['createPositionBefore'](_0x47d4d1);return _0x257971['isTouching'](_0x1ae956);}function Xt(_0x685151,_0x258909,_0x4a1e95){for(;_0x4a1e95['length'];){const _0xee9c64=_0x4a1e95['splice'](0x0,0x64);_0x685151['change'](()=>{for(const _0x29ad5b of _0xee9c64)_0x29ad5b['isInContent']&&_0x258909['execute'](_0x29ad5b['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x46e114,_0x396553,_0x46971e){super(_0x46e114),this['_command']=_0x396553,this['_suggestions']=_0x46971e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2cbc19=Array['from'](this['_suggestions']['values']())['some'](_0xdc50da=>_0xdc50da['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2cbc19;}['execute'](){const _0x578954=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x2d54f3 of _0x578954){const _0x25d017=_0x2d54f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25d017))return;}Xt(this['editor']['model'],this['_command'],_0x578954);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x164c89,_0x3fc31e,_0x55f4f4){super(_0x164c89),this['_command']=_0x3fc31e,this['_suggestions']=_0x55f4f4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4df08e=this['editor']['model']['document']['selection'],_0x795181=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x30bd1a,_0x53417c){const _0x209f01=Array['from'](_0x30bd1a['getRanges']()),_0x4c371f=new Set();for(const _0x3a8be6 of _0x53417c)if(_0x3a8be6['isInContent']){for(const _0x2b676d of _0x209f01)for(const _0x5e16bc of _0x3a8be6['getRanges']())(_0x2b676d['isIntersecting'](_0x5e16bc)||_0x30bd1a['isCollapsed']&&!_0x3a8be6['isMultiRange']&&_0x3a8be6['next']&&_0x5e16bc['end']['isTouching'](_0x2b676d['start']))&&_0x4c371f['add'](_0x3a8be6);}return _0x4c371f;}(_0x4df08e,_0x795181),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30375a=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x560fcb of _0x30375a){const _0x3f6fb9=_0x560fcb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f6fb9))return;}Xt(this['editor']['model'],this['_command'],_0x30375a);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xe3577e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x224e26,_0x34e005){super(),this['id']=_0x34e005['id'],this['type']=_0x34e005['type'],this['subType']=_0x34e005['subType']||null,this['author']=_0x34e005['author'],this['creator']=_0x34e005['creator']||_0x34e005['author'],this['isExternal']=Boolean(_0x34e005['attributes']&&_0x34e005['attributes']['@external']),this['data']=null,this['_model']=_0x224e26,this['_onAccept']=_0x34e005['onAccept'],this['_onDiscard']=_0x34e005['onDiscard'],this['_onAttributesChange']=_0x34e005['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x34e005['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 _0x1169b2=this;for(;_0x1169b2['previous'];)_0x1169b2=_0x1169b2['previous'];return _0x1169b2;}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'](_0x2d2163){this['_markerNames']['add'](_0x2d2163);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e557f=>this['_model']['markers']['get'](_0x2e557f))['filter'](_0x1026dd=>_0x1026dd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x45135b=>{for(const _0x14f29f of this['getMarkers']())_0x45135b['removeMarker'](_0x14f29f);}),this['_markerNames']['clear']();}['removeMarker'](_0x45b0f4){this['_model']['change'](_0x43d658=>{_0x43d658['removeMarker'](_0x45b0f4);}),this['_markerNames']['delete'](_0x45b0f4);}['addRange'](_0xd8ed9a){const _0x1a9cff='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a9cff),this['_model']['change'](_0x16c568=>{_0x16c568['addMarker'](_0x1a9cff,{'range':_0xd8ed9a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1db481){for(const _0x286474 of this['getRanges']())if(_0x286474['isIntersecting'](_0x1db481))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x481902=>_0x481902['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19b73b,_0x17c7aa)=>[..._0x19b73b,..._0x17c7aa['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x171748=this['getRanges']();if(0x1!=_0x171748['length'])return null;const _0x5b3a5f=_0x171748[0x0],_0x207631=_0x5b3a5f['start']['nodeAfter'],_0x2719d6=_0x5b3a5f['end']['nodeBefore'];return _0x207631 instanceof _0x4cf030?_0x207631!=_0x2719d6?null:_0x207631: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 _0xb7a839=[];let _0x26a43e=this['head'];for(;_0x26a43e;)_0xb7a839['push'](_0x26a43e),_0x26a43e=_0x26a43e['next'];return _0xb7a839;}['setAttribute'](_0x281698,_0x258248){const _0x4575cf=_0x461757(this['attributes']);_0x52f1dc(_0x4575cf,_0x281698,_0x258248),_0xf91c94(_0x4575cf,this['attributes'])||(this['attributes']=_0x4575cf,this['_onAttributesChange'](_0x4575cf));}['removeAttribute'](_0x5a0661){const _0xf31f40=_0x461757(this['attributes']);_0xbbc215(_0xf31f40,_0x5a0661),_0xf91c94(_0xf31f40,this['attributes'])||(this['attributes']=_0xf31f40,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 _0x3aa221()['substr'](0x1,0x5);}}function o(_0x295d1a,_0x2c3680,_0x47eb1d){const _0x56746e=_0x295d1a['t'],t=_0x295d1a['t'];switch(_0x2c3680){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',_0x47eb1d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x47eb1d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x47eb1d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x47eb1d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x47eb1d);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',_0x47eb1d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x47eb1d);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',_0x47eb1d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x47eb1d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x47eb1d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x47eb1d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x47eb1d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x47eb1d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x47eb1d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x47eb1d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x47eb1d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x47eb1d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x47eb1d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x47eb1d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x47eb1d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x47eb1d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x47eb1d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x47eb1d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x47eb1d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x47eb1d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x47eb1d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x47eb1d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x47eb1d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x47eb1d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x47eb1d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x47eb1d);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'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x47eb1d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x47eb1d);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 _0x56746e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x47eb1d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56746e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x47eb1d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x47eb1d);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'},_0x47eb1d);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'},_0x47eb1d);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'},_0x47eb1d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2c3680;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x6966b0,_0x5167b7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x6966b0,this['_locale']=_0x5167b7;}['getDescriptions'](_0x423984){const _0x5dbf25=[],_0x526821=new Set(),_0x22fa12=new Set();for(let _0x47cc15=0x0;_0x47cc15<_0x423984['length'];_0x47cc15++){const _0x3d6eeb=_0x423984[_0x47cc15];if(!_0x3d6eeb['isInContent'])continue;const _0x2f8a79=this['_handleCustomCallbackDescription'](_0x3d6eeb);if(_0x2f8a79){if(null!=_0x3d6eeb['subType']){if(_0x526821['has'](_0x3d6eeb['subType']))continue;_0x526821['add'](_0x3d6eeb['subType']);}_0x5dbf25['push'](_0x2f8a79);}else{if('attribute'!=_0x3d6eeb['type'])'insertion'!=_0x3d6eeb['type']&&'deletion'!=_0x3d6eeb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5dbf25,_0x3d6eeb,_0x423984[_0x47cc15+0x1]);else{const _0x185f5d=_0x3d6eeb['data']['key'];if(_0x22fa12['has'](_0x185f5d))continue;_0x22fa12['add'](_0x3d6eeb['data']['key']),_0x185f5d==m?this['_handleRenameSuggestionDescription'](_0x5dbf25,_0x3d6eeb):this['_handleAttributeSuggestionDescription'](_0x5dbf25,_0x3d6eeb);}}}return this['_resolveDescriptionItems'](_0x5dbf25);}['registerDescriptionCallback'](_0x368c27){this['_customCallbacks']['push'](_0x368c27);}['registerElementLabel'](_0x443d37,_0x35bbe2,_0x2ce3be=_0x4b3b10['normal']){'function'==typeof _0x443d37?_0x16e2b3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x443d37,'label':_0x35bbe2,'priority':_0x2ce3be}):this['_itemLabels']['set'](_0x443d37,_0x35bbe2);}['registerAttributeLabel'](_0x27263a,_0x5827be){this['_attributeLabels']['set'](_0x27263a,_0x5827be);}['getItemLabel'](_0x1054e5,_0x5d76e0=0x1){let _0x4dd799;for(const _0x285474 of this['_itemLabelsCallbacks'])if(_0x285474['matchingCallback'](_0x1054e5)){_0x4dd799=_0x285474['label'];break;}return _0x4dd799||(_0x4dd799=this['_itemLabels']['get'](_0x1054e5['name'])),_0x4dd799?_0x4dd799(_0x5d76e0):0x1!==_0x5d76e0?_0x5d76e0+'\x20'+_0x1054e5['name']+'s':''+_0x1054e5['name'];}['_addDescriptionItems'](_0x57cd06,_0x28b716){const _0x3cb995=_0x28b716['getFirstRange']()['getWalker'](),_0x2ebeea='insertion'==_0x28b716['type']?'add':'remove';for(const _0x26c3f3 of _0x3cb995){const _0x4d6db4=_0x26c3f3['item'],_0x5d5db3=_0x57cd06[_0x57cd06['length']-0x1];if(_0x4d6db4['is']('$textProxy'))_0x5d5db3&&_0x5d5db3['type']['indexOf']('Container')>-0x1&&_0x57cd06['pop'](),_0x5d5db3&&'text'==_0x5d5db3['type']?_0x5d5db3[_0x2ebeea]+=_0x4d6db4['data']:_0x57cd06['push']({'type':'text','add':'add'==_0x2ebeea?_0x4d6db4['data']:'','remove':'remove'==_0x2ebeea?_0x4d6db4['data']:''});else{if(this['_schema']['isObject'](_0x4d6db4)){const _0x1dbc25=_0x4d6db4;if(_0x5d5db3&&_0x5d5db3['type']['indexOf']('Container')>-0x1&&_0x57cd06['pop'](),'elementEnd'==_0x26c3f3['type'])continue;_0x5d5db3&&_0x5d5db3['type']==_0x2ebeea+'Object'&&_0x5d5db3['element']['name']==_0x1dbc25['name']?_0x5d5db3['quantity']++:_0x57cd06['push']({'type':_0x2ebeea+'Object','element':_0x1dbc25,'quantity':0x1}),_0x3cb995['skip'](_0x474556=>!('elementEnd'==_0x474556['type']&&_0x474556['item']==_0x4d6db4));}else{if(this['_schema']['checkChild'](_0x4d6db4,'$text')||_0x4d6db4['is']('element','softBreak')){const _0x56656c=_0x4d6db4;if('add'==_0x2ebeea&&'elementStart'==_0x26c3f3['type']||'remove'==_0x2ebeea&&'elementEnd'==_0x26c3f3['type'])continue;if(_0x5d5db3&&-0x1==_0x5d5db3['type']['indexOf']('Container')){'text'==_0x5d5db3['type']&&(_0x5d5db3[_0x2ebeea]+='\x0a');continue;}let _0x124c49;if(_0x124c49='add'==_0x2ebeea?_0x56656c['nextSibling']&&!this['_schema']['isObject'](_0x56656c['nextSibling'])?_0x56656c['nextSibling']:null:_0x56656c['previousSibling']&&!this['_schema']['isObject'](_0x56656c['previousSibling'])?_0x56656c['previousSibling']:null,_0x56656c['isEmpty']||_0x124c49&&_0x124c49['isEmpty']){const _0x502ad7=_0x124c49&&_0x124c49['isEmpty']?_0x124c49:_0x56656c;_0x5d5db3&&_0x5d5db3['type']==_0x2ebeea+'EmptyContainer'&&_0x5d5db3['element']['name']==_0x502ad7['name']?_0x5d5db3['quantity']++:_0x57cd06['push']({'type':_0x2ebeea+'EmptyContainer','element':_0x502ad7,'quantity':0x1});}else _0x57cd06['push']({'type':_0x2ebeea+'Container','element':_0x56656c});}}}}}['_resolveDescriptionItems'](_0xf8ea99){const _0x5df116=this['_locale'],_0x5d5b51=[],_0x21c2e7=[],_0x513873=[];for(const _0x1f8100 of _0xf8ea99)switch(_0x1f8100['type']){case'text':if(_0x1f8100['add']=_0x1f8100['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f8100['remove']=_0x1f8100['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f8100['add']&&''!=_0x1f8100['remove']){_0x5d5b51['push']({'type':'replace','content':o(_0x5df116,'REPLACE_TEXT',['\x22'+_0x1f8100['remove']+'\x22','\x22'+_0x1f8100['add']+'\x22'])});continue;}if(null!=_0x1f8100['add']['match'](/^ +$/)){_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Insert:*\x20%0',o(_0x5df116,'ELEMENT_SPACE',_0x1f8100['add']['length']))});continue;}if(null!=_0x1f8100['remove']['match'](/^ +$/)){_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Remove:*\x20%0',o(_0x5df116,'ELEMENT_SPACE',_0x1f8100['remove']['length']))});continue;}if(''!=_0x1f8100['add']){_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Insert:*\x20%0','\x22'+_0x1f8100['add']+'\x22')});continue;}_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Remove:*\x20%0','\x22'+_0x1f8100['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Insert:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Remove:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'addContainer':_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Split:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'removeContainer':_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Merge:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'addFormat':_0x21c2e7['push'](_0x1f8100['key']);continue;case'removeFormat':_0x513873['push'](_0x1f8100['key']);continue;default:_0x5d5b51['push'](_0x1f8100);}if(_0x21c2e7['length']){const _0xdb1fb6=_0x21c2e7['map'](_0x1851fd=>this['_attributeLabels']['has'](_0x1851fd)?this['_attributeLabels']['get'](_0x1851fd):_0x1851fd)['join'](',\x20');_0x5d5b51['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xdb1fb6)});}if(_0x513873['length']){const _0x1d5100=_0x513873['map'](_0x184a4a=>this['_attributeLabels']['has'](_0x184a4a)?this['_attributeLabels']['get'](_0x184a4a):_0x184a4a)['join'](',\x20');_0x5d5b51['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d5100)});}return _0x5d5b51;}['_handleCustomCallbackDescription'](_0x41d66c){for(const _0x562146 of this['_customCallbacks']){const _0x3ce395=_0x562146(_0x41d66c);if(_0x3ce395&&'type'in _0x3ce395)return _0x3ce395;}}['_handleAttributeSuggestionDescription'](_0x136857,_0x427ab4){const _0x4918b9=_0x427ab4['data'],_0x43a61a=void 0x0===_0x4918b9['newValue']?'removeFormat':'addFormat';_0x136857['push']({'type':_0x43a61a,'key':_0x4918b9['key']});}['_handleRenameSuggestionDescription'](_0x1c83a7,_0x4a4f55){_0x1c83a7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4a4f55['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4efb2a,_0x4a14c5,_0x47719f){if(this['_addDescriptionItems'](_0x4efb2a,_0x4a14c5),_0x47719f&&_0x47719f['getFirstRange']()&&!_0x4a14c5['getFirstRange']()['end']['isEqual'](_0x47719f['getFirstRange']()['start'])){const _0x1be2f3=_0x4efb2a[_0x4efb2a['length']-0x1],_0x16902e='insertion'==_0x4a14c5['type']?'add':'remove';_0x1be2f3&&'text'==_0x1be2f3['type']&&(_0x1be2f3[_0x16902e]+='\x0a');}}}class U extends _0x240e00{['afterInit'](){const _0x5a8129=this['editor'],_0x16ce48=_0x5a8129['plugins']['get']('TrackChangesEditing');_0x5a8129['commands']['get']('showAIAssistant')&&_0x16ce48['enableCommand']('showAIAssistant');}}class V extends _0x240e00{['afterInit'](){const _0x2e5a8a=this['editor'],_0x234a6c=_0x2e5a8a['locale'];if(!_0x2e5a8a['plugins']['has']('AlignmentEditing'))return;const _0x463767=_0x2e5a8a['plugins']['get']('TrackChangesEditing');_0x463767['enableDefaultAttributesIntegration']('alignment'),_0x463767['registerBlockAttribute']('alignment'),_0x463767['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x234a6c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3294f8=this['editor'],_0xbc2032=_0x3294f8['locale'];_0x3294f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b72d7=>{if('formatBlock'!=_0x5b72d7['type'])return;const {data:_0x2ac63e}=_0x5b72d7;if(_0x2ac63e&&'alignment'==_0x2ac63e['commandName']){const _0x5983ce=_0x2ac63e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xbc2032,'*Format:*\x20%0',function(_0x1361f7){switch(_0x1361f7){case'left':return o(_0xbc2032,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xbc2032,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xbc2032,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xbc2032,'FORMAT_JUSTIFY_TEXT');}}(_0x5983ce))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x240e00{['afterInit'](){const _0x4983fc=this['editor'],_0x528b13=_0x4983fc['plugins']['get']('TrackChangesEditing'),_0x48d6ba=_0x4983fc['locale'];for(const _0x5b86e6 of Zt){if(!_0x4983fc['plugins']['has'](_0x5b86e6))continue;const _0x4ba7d5=_0x5b86e6['slice'](0x0,-0x7)['toLowerCase'](),_0x53ef6d='FORMAT_'+_0x4ba7d5['toUpperCase']();_0x528b13['enableDefaultAttributesIntegration'](_0x4ba7d5),_0x528b13['registerInlineAttribute'](_0x4ba7d5),_0x528b13['descriptionFactory']['registerAttributeLabel'](_0x4ba7d5,o(_0x48d6ba,_0x53ef6d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x587696=this['editor'],_0x533ee7=_0x587696['locale'],_0x13f3a8=_0x587696['plugins']['get']('TrackChangesEditing');function _0x18ac03(_0x46eac0,_0x2615e2){_0x13f3a8['descriptionFactory']['registerDescriptionCallback'](_0x570544=>{if('formatInline'!=_0x570544['type'])return;const {data:_0x81fc5d}=_0x570544;return _0x81fc5d&&_0x81fc5d['commandName']===_0x46eac0?_0x81fc5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x533ee7,'*Format:*\x20%0',_0x2615e2)}:{'type':'format','content':o(_0x533ee7,'*Remove\x20format:*\x20%0',_0x2615e2)}:void 0x0;});}_0x18ac03('bold',o(_0x533ee7,'FORMAT_BOLD')),_0x18ac03('italic',o(_0x533ee7,'FORMAT_ITALIC')),_0x18ac03('underline',o(_0x533ee7,'FORMAT_UNDERLINE')),_0x18ac03('code',o(_0x533ee7,'FORMAT_CODE')),_0x18ac03('strikethrough',o(_0x533ee7,'FORMAT_STRIKETHROUGH')),_0x18ac03('subscript',o(_0x533ee7,'FORMAT_SUBSCRIPT')),_0x18ac03('superscript',o(_0x533ee7,'FORMAT_SUPERSCRIPT'));}}class F extends _0x240e00{['afterInit'](){const _0x45ea34=this['editor'],_0x3a0b13=_0x45ea34['locale'];if(!_0x45ea34['plugins']['has']('BlockQuoteEditing'))return;const _0x2bf2fd=_0x45ea34['plugins']['get']('TrackChangesEditing'),_0x90b690=this['editor']['commands']['get']('blockQuote');_0x2bf2fd['enableCommand']('blockQuote',(_0x289a0b,_0x28fd93={})=>{const _0x153ce0=this['editor']['model']['document']['selection'],_0x5e999c=_0x28fd93&&void 0x0!==_0x28fd93['forceValue']?_0x28fd93['forceValue']:!_0x90b690['value'];let _0x4e78f7=[];if(_0x5e999c){const _0x3ab549=Array['from'](_0x153ce0['getSelectedBlocks']())['filter'](_0x188f7b=>oo(_0x188f7b)||function(_0x2632ba,_0x50a034){const _0x23cb1c=_0x50a034['checkChild'](_0x2632ba['parent'],'blockQuote'),_0x56d81b=_0x50a034['checkChild'](['$root','blockQuote'],_0x2632ba);return _0x23cb1c&&_0x56d81b;}(_0x188f7b,this['editor']['model']['schema']));_0x4e78f7=to(_0x3ab549,_0x45ea34['model']);}else{const _0x818d83=Array['from'](_0x153ce0['getSelectedBlocks']())['filter'](_0x3aa371=>oo(_0x3aa371));_0x4e78f7=to(_0x818d83,_0x45ea34['model']);}_0x45ea34['model']['change'](()=>{for(const _0x390e26 of _0x4e78f7)_0x2bf2fd['markBlockFormat'](_0x390e26,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5e999c}]});});}),_0x2bf2fd['descriptionFactory']['registerDescriptionCallback'](_0x58a1a3=>{const {data:_0xc8cee2}=_0x58a1a3;if(_0xc8cee2&&'blockQuote'==_0xc8cee2['commandName']){const _0x20cb89=o(_0x3a0b13,'ELEMENT_BLOCK_QUOTE');return _0xc8cee2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a0b13,'*Set\x20format:*\x20%0',_0x20cb89)}:{'type':'format','content':o(_0x3a0b13,'*Remove\x20format:*\x20%0',_0x20cb89)};}});}}function oo(_0x3afe89){return'blockQuote'==_0x3afe89['parent']['name'];}class L extends _0x240e00{['afterInit'](){const _0x5596ad=this['editor'],_0x7de723=_0x5596ad['locale'],_0x2767f3=_0x5596ad['plugins']['get']('TrackChangesEditing');_0x5596ad['plugins']['has']('BookmarkEditing')&&(_0x2767f3['enableCommand']('insertBookmark'),_0x2767f3['enableDefaultAttributesIntegration']('updateBookmark'),_0x2767f3['registerBlockAttribute']('bookmarkId'),_0x2767f3['descriptionFactory']['registerDescriptionCallback'](_0x4c2112=>{if('insertion'!=_0x4c2112['type']&&'deletion'!=_0x4c2112['type']&&'attribute'!=_0x4c2112['type'])return;const _0x566a22=_0x4c2112['getContainedElement']();if(null==_0x566a22)return;if(!_0x566a22['is']('element','bookmark'))return;const _0x284668=_0x566a22['getAttribute']('bookmarkId');if('insertion'==_0x4c2112['type'])return{'type':'insertion','content':o(_0x7de723,'*Insert:*\x20%0','\x22'+_0x284668+'\x22\x20'+o(_0x7de723,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4c2112['type'])return{'type':'deletion','content':o(_0x7de723,'*Remove:*\x20%0','\x22'+_0x284668+'\x22\x20'+o(_0x7de723,'ELEMENT_BOOKMARK'))};const {data:_0x1ff70c}=_0x4c2112;if(!_0x1ff70c||'bookmarkId'!=_0x1ff70c['key'])return;return{'type':'format','content':o(_0x7de723,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ff70c['newValue']+'\x22')};}));}}class J extends _0x240e00{['afterInit'](){const _0x22af11=this['editor'];_0x22af11['plugins']['has']('CaseChange')&&(_0x22af11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x22af11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x22af11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x240e00{['afterInit'](){const _0x213391=this['editor'];_0x213391['commands']['get']('ckbox')&&_0x213391['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x240e00{['afterInit'](){const _0x2d506f=this['editor'];if(!_0x2d506f['plugins']['has']('CodeBlock'))return;const _0xddaffc=_0x2d506f['plugins']['get']('TrackChangesEditing'),_0x3e26f1=_0x2d506f['locale'],_0x3b4500=_0x2d506f['config']['get']('codeBlock')['languages'],_0xad065f=_0x2d506f['commands']['get']('codeBlock');_0xddaffc['enableCommand']('indentCodeBlock'),_0xddaffc['enableCommand']('outdentCodeBlock'),_0xddaffc['enableCommand']('codeBlock',(_0x491f96,_0x5cf6ee={})=>{const _0x2552c9=_0x2d506f['model'],_0x5cc12b=_0x2d506f['model']['document']['selection'],_0x435655=_0x5cf6ee&&void 0x0!==_0x5cf6ee['forceValue']?_0x5cf6ee['forceValue']:!_0xad065f['value'];let _0x22b06e;_0x5cf6ee['language']||(_0x5cf6ee['language']=_0x3b4500[0x0]['language']),_0x22b06e=_0x435655?Array['from'](_0x5cc12b['getSelectedBlocks']())['filter'](_0x2fcb63=>eo(_0x2fcb63)||function(_0x164527,_0x38ee5f){if(_0x164527['is']('rootElement')||_0x38ee5f['isLimit'](_0x164527))return!0x1;return _0x38ee5f['checkChild'](_0x164527['parent'],'codeBlock');}(_0x2fcb63,_0x2552c9['schema'])):Array['from'](_0x5cc12b['getSelectedBlocks']())['filter'](_0x431f8e=>eo(_0x431f8e));const _0x4a63f5=to(_0x22b06e,_0x2552c9);_0x2552c9['change'](()=>{for(const _0x15add9 of _0x4a63f5)_0xddaffc['markBlockFormat'](_0x15add9,{'commandName':'codeBlock','commandParams':[{..._0x5cf6ee,'forceValue':_0x435655}],'formatGroupId':'blockName'});});}),(_0xddaffc['descriptionFactory']['registerElementLabel']('codeBlock',_0x1ca724=>o(_0x3e26f1,'ELEMENT_CODE_BLOCK',_0x1ca724)),_0xddaffc['descriptionFactory']['registerDescriptionCallback'](_0x4a6e8d=>{if('formatBlock'!=_0x4a6e8d['type'])return;const _0x492545=_0x3e26f1['t'],{data:_0x5eea89}=_0x4a6e8d;if(!_0x5eea89||'codeBlock'!=_0x5eea89['commandName'])return;const _0x312752=_0x5eea89['commandParams'][0x0]['language'],_0x24fd6d=_0x492545(_0x3b4500['find'](_0x19f0e6=>_0x19f0e6['language']===_0x312752)['label'])['toLowerCase']();return _0x5eea89['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e26f1,'*Set\x20format:*\x20%0',o(_0x3e26f1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x24fd6d+')')}:{'type':'format','content':o(_0x3e26f1,'*Remove\x20format:*\x20%0',o(_0x3e26f1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x27ad77){return'codeBlock'==_0x27ad77['name'];}class z extends _0x240e00{['afterInit'](){const _0x140141=this['editor'];if(!_0x140141['plugins']['has']('CommentsEditing'))return;_0x140141['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x46e722,_0x370b4a,_0x1a940c){const _0x422a4e=[];for(const _0x383d24 of _0x370b4a['getItems']())_0x383d24['hasAttribute'](_0x46e722)&&_0x422a4e['push'](_0x1a940c['createRangeOn'](_0x383d24));return _0x422a4e;}function Ne(_0x101e59,_0x4c4a39,{showActiveMarker:_0xcc79c3=!0x0}={}){const _0xe660c1=_0x101e59['plugins']['get']('TrackChangesEditing');return(_0x595477,_0x18c178,_0x48a039)=>{if(!_0x48a039['consumable']['test'](_0x18c178['markerRange'],_0x595477['name']))return;const _0x17c0f5=_0x18c178['markerRange']['getWalker'](),_0xc3150d=_0x18c178['markerRange']['start'],_0x442c15=_0x101e59['model']['schema'];let _0x216c63=null,_0x6f8b17=null,_0x3d36c7=!0x1,_0x3def86=!0x1;for(const _0x43cc8b of _0x17c0f5){const _0x27c6b8=_0x43cc8b['item'];_0x3d36c7=_0x3d36c7||_0x442c15['isContent'](_0x27c6b8);const _0x2a5cc6=_0x48a039['mapper']['toViewElement'](_0x27c6b8);if(_0x2a5cc6&&_0x2a5cc6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x43cc8b['type']&&(_0x442c15['isBlock'](_0x27c6b8)&&!_0x442c15['isLimit'](_0x27c6b8)&&(_0x27c6b8['nextSibling']||_0xc3150d['isAtEnd']?_0x216c63&&_0x216c63['parent']==_0x27c6b8||(_0x216c63=_0x27c6b8,_0x5eaec0(_0x43cc8b['previousPosition']),_0x3def86=!0x0):_0x6f8b17=_0x6f8b17||_0x43cc8b['previousPosition']));}function _0x5eaec0(_0x2a88c6){const {authorId:_0x836ac4}=_0xe660c1['_splitMarkerName'](_0x18c178['markerName']),_0x33ac8b=_0x48a039['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c4a39,'data-author-id':_0x836ac4}),_0x4101f4=_0x48a039['mapper']['toViewPosition'](_0x2a88c6);_0xcc79c3&&_0xe660c1['activeMarkers']['includes'](_0x18c178['markerName'])&&_0x48a039['writer']['addClass']('ck-suggestion-marker--active',_0x33ac8b),_0x48a039['writer']['insert'](_0x4101f4,_0x33ac8b),_0x48a039['mapper']['bindElementToMarker'](_0x33ac8b,_0x18c178['markerName']);}_0x3d36c7||_0x3def86||!_0x6f8b17||_0x5eaec0(_0x6f8b17);};}class K extends _0x240e00{static get['requires'](){return[_0x350182];}['init'](){const _0x326e29=this['editor'],_0x2b314d=_0x326e29['plugins']['get']('TrackChangesEditing');_0x2b314d['enableCommand']('delete');const _0x1a5098=_0x326e29['commands']['get']('deleteForward');_0x2b314d['enableCommand']('deleteForward',(_0x405acd,_0x2f907e={})=>{const _0x50f5bf=_0x326e29['model']['createSelection'](_0x326e29['model']['document']['selection']);_0x50f5bf['isCollapsed']&&_0x326e29['model']['modifySelection'](_0x50f5bf,{'direction':'forward','unit':_0x2f907e['unit']});const _0x4c2828=_0x50f5bf['getFirstRange'](),_0x330644=_0x23d2d0['fromRange'](_0x4c2828);let _0x56d1e1;_0x405acd(_0x2f907e),_0x56d1e1='$graveyard'==_0x330644['root']['rootName']?_0x326e29['model']['createRange'](_0x4c2828['start']):_0x326e29['model']['createRange'](_0x330644['start'],_0x330644['end']),_0x330644['detach'](),_0x326e29['model']['enqueueChange'](_0x1a5098['buffer']['batch'],_0x9a836d=>{_0x1a5098['buffer']['lock'](),_0x9a836d['setSelection'](_0x9a836d['createRange'](_0x56d1e1['end'])),_0x1a5098['buffer']['unlock']();});}),_0x326e29['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x326e29,'merge'),{'priority':'high'}),_0x326e29['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x13d87f,_0x5c9ec3,_0x2bb457)=>{_0x2bb457['options']['showSuggestionHighlights']&&Ne(_0x326e29,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x13d87f,_0x5c9ec3,_0x2bb457);},{'priority':'high'}),_0x326e29['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4d7314,_0x3fc43c,_0x3493e2)=>{const _0x280eb9=_0x3493e2['mapper']['markerNameToElements'](_0x3fc43c['markerName']);if(_0x280eb9){for(const _0xc7066b of _0x280eb9)_0xc7066b['is']('uiElement')&&(_0x3493e2['mapper']['unbindElementFromMarkerName'](_0xc7066b,_0x3fc43c['markerName']),_0x3493e2['writer']['remove'](_0xc7066b));}},{'priority':'high'});}}class W extends _0x240e00{['afterInit'](){const _0x3088b4=this['editor'];if(!_0x3088b4['plugins']['has']('ListEditing'))return;const _0x34b974=_0x3088b4['locale'],_0x121ff7=_0x3088b4['plugins']['get']('TrackChangesEditing'),_0x39a8a1=_0x3088b4['plugins']['has']('TodoListEditing'),_0x54184b=!!_0x3088b4['config']['get']('list.multiBlock');function _0x10c661(_0x439c4f){return{'type':'format','content':''+o(_0x34b974,'*Set\x20format:*\x20%0',_0x439c4f)};}function _0x4c1460(_0x3b35ea){return{'type':'format','content':''+o(_0x34b974,'*Remove\x20format:*\x20%0',_0x3b35ea)};}_0x121ff7['enableDefaultAttributesIntegration']('numberedList'),_0x121ff7['enableDefaultAttributesIntegration']('bulletedList'),_0x121ff7['enableDefaultAttributesIntegration']('customNumberedList'),_0x121ff7['enableDefaultAttributesIntegration']('customBulletedList'),_0x121ff7['enableDefaultAttributesIntegration']('indentList'),_0x121ff7['enableDefaultAttributesIntegration']('outdentList'),_0x121ff7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x121ff7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x121ff7['registerBlockAttribute']('listItemId'),_0x121ff7['registerBlockAttribute']('listType'),_0x121ff7['registerBlockAttribute']('listIndent'),_0x54184b&&(_0x121ff7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x121ff7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x39a8a1&&(_0x121ff7['enableDefaultAttributesIntegration']('todoList'),_0x121ff7['enableDefaultAttributesIntegration']('checkTodoList'),_0x121ff7['registerBlockAttribute']('todoListChecked'),_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x73ff11=>{const {data:_0x58ab7d}=_0x73ff11;if(_0x58ab7d&&'todoListChecked'==_0x58ab7d['key'])return{'type':'format','content':_0x58ab7d['newValue']?o(_0x34b974,'*Check\x20item*'):o(_0x34b974,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x17014c=>{if(_0x17014c['batch']['isUndo'])return!0x1;let _0x2ffafa=!0x1;const _0x46d50a=_0x121ff7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f1c60=>'todoListChecked'===_0x121ff7['_getAttributeKey'](_0x5f1c60));for(const _0x5bf7f7 of _0x46d50a){'todo'!=_0x5bf7f7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x121ff7['_findSuggestions'](_0x5bf7f7['getFirstRange'](),'attribute')['find'](_0x53fdea=>'listType'===_0x121ff7['_getAttributeKey'](_0x53fdea['suggestion']))||(_0x17014c['removeMarker'](_0x5bf7f7['getFirstMarker']()),_0x2ffafa=!0x0));}return _0x2ffafa;})),_0x121ff7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x34b974,'FORMAT_INDENT'));const _0x1ab62f={'type':'format','content':''};_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x4ff219=>{const {data:_0x3cd352}=_0x4ff219;if(!_0x3cd352||'listType'!=_0x3cd352['key'])return;let _0x26a4fd=_0x4ff219['head'];for(;_0x26a4fd;){if(_0x26a4fd['data']&&(('listStyle'==_0x26a4fd['data']['key']||'listMarkerStyle'==_0x26a4fd['data']['key'])&&(_0x26a4fd['data']['newValue']&&'default'!=_0x26a4fd['data']['newValue']||'default'!=_0x26a4fd['data']['oldValue']&&!_0x3cd352['newValue'])||!_0x54184b&&_0x26a4fd['data']['key']==m))return _0x1ab62f;_0x26a4fd=_0x26a4fd['next'];}if(null==_0x3cd352['newValue'])switch(_0x3cd352['oldValue']){case'bulleted':return _0x4c1460(o(_0x34b974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c1460(o(_0x34b974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c1460(o(_0x34b974,'ELEMENT_TODO_LIST'));}switch(_0x3cd352['newValue']){case'bulleted':return _0x10c661(o(_0x34b974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10c661(o(_0x34b974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10c661(o(_0x34b974,'ELEMENT_TODO_LIST'));}}),_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x10b887=>{const {data:_0x4e2449}=_0x10b887;if(_0x4e2449&&'listIndent'==_0x4e2449['key'])return null==_0x4e2449['newValue']||null==_0x4e2449['oldValue']&&0x0==_0x4e2449['newValue']?_0x1ab62f:void 0x0;}),_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x33fec4=>{if('attribute'!=_0x33fec4['type'])return;const {data:_0x2bfd43}=_0x33fec4;if(!_0x2bfd43||'listItemId'!=_0x2bfd43['key'])return;const _0x4fbf35=Te(_0x33fec4);return'newValue'==_0x4fbf35?{'type':'format','content':o(_0x34b974,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4fbf35?{'type':'format','content':o(_0x34b974,'*Split:*\x20list\x20item')}:_0x1ab62f;}),_0x3088b4['model']['document']['registerPostFixer'](_0x2f1e1a=>this['listItemIdFixer'](_0x2f1e1a)),_0x3088b4['model']['document']['registerPostFixer'](_0x9ab937=>this['noTrackChangesFixer'](_0x9ab937)),_0x3088b4['model']['document']['on']('change:data',(_0x3b02d3,_0x574672)=>{if(_0x574672['isUndo']||!_0x574672['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1140cd){if(_0x1140cd['batch']['isUndo']||!_0x1140cd['batch']['isLocal'])return!0x1;let _0x2e3b4b=!0x1;const _0x458d1b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22d461=>_0x22d461['data']&&'listItemId'==_0x22d461['data']['key'])['filter'](_0x41cbb6=>_0x41cbb6['data']['newValue']&&_0x41cbb6['data']['oldValue']);for(const _0x4395a9 of _0x458d1b)Te(_0x4395a9)||(_0x1140cd['removeMarker'](_0x4395a9['getFirstMarker']()),_0x2e3b4b=!0x0);return _0x2e3b4b;}['noTrackChangesFixer'](_0x47921e){if(_0x47921e['batch']['isUndo']||!_0x47921e['batch']['isLocal'])return!0x1;const _0x5be194=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5be194['trackChangesCommand']['value'])return!0x1;let _0x471918=!0x1;const _0x484f9c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x49242d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38355c=>'attribute'==_0x38355c['type'])['filter'](_0x3333d5=>_0x484f9c['includes'](_0x3333d5['attributeKey']));if(0x0==_0x49242d['length'])return _0x471918;for(const _0x7688fc of _0x49242d){const _0x193b0f=_0x5be194['_findSuggestions'](_0x7688fc['range'],'attribute')['filter'](_0x4cb819=>!_0x4cb819['meta']['isNextTo'])['map'](_0x170308=>_0x170308['suggestion'])['filter'](_0x3ff6b2=>{const _0x55e337=_0x5be194['_getAttributeKey'](_0x3ff6b2);return _0x484f9c['includes'](_0x55e337);});if(_0x193b0f['length']){for(const _0x5f17e0 of _0x193b0f)_0x47921e['removeMarker'](_0x5f17e0['getFirstMarker']());_0x471918=!0x0;}}return _0x471918;}['assureChains'](){const _0x2217b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f346c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1f1c3c;const _0x555279=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fd524=>{if(_0x3fd524['data']['oldRange']||!_0x3fd524['data']['newRange'])return null;if(!_0x3fd524['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4fa486}=_0x2217b0['_splitMarkerName'](_0x3fd524['name']);if(!_0x2217b0['hasSuggestion'](_0x4fa486))return null;const _0x44c7eb=_0x2217b0['getSuggestion'](_0x4fa486);return _0x2f346c['includes'](_0x44c7eb['data']['key']);})['map'](_0x436290=>{const {id:_0x386185}=_0x2217b0['_splitMarkerName'](_0x436290['name']),_0x18c494=_0x2217b0['getSuggestion'](_0x386185);return _0x1f1c3c=_0x18c494['attributes']['groupId'],_0x18c494['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x555279['size'])return;const _0x2c2378=_0x2217b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15fde6=>'attribute'==_0x15fde6['type']&&_0x15fde6['data']&&_0x2f346c['includes'](_0x15fde6['data']['key'])&&_0x15fde6['attributes']['groupId']!=_0x1f1c3c)['map'](_0xf24bd9=>({'listItem':_0xf24bd9['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf24bd9['attributes']['groupId']})),_0x3ac76a=new Set();for(const {groupId:_0x253ab5,listItem:_0x276359}of _0x2c2378)_0x555279['has'](_0x276359)&&_0x3ac76a['add'](_0x253ab5);for(const _0x582339 of _0x2217b0['getSuggestions']())_0x3ac76a['has'](_0x582339['attributes']['groupId'])&&_0x582339['setAttribute']('groupId',_0x1f1c3c);}['_supportLegacySuggestions'](){const _0x5bd56d=this['editor'],_0x2c96d6=_0x5bd56d['locale'],_0x32cb2d=_0x5bd56d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x32cb2d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x225759,_0x1f499f){const _0x388901=[];for(let _0x595012 of _0x225759)_0x595012['start']['nodeAfter']===_0x595012['end']['parent']&&(_0x595012=_0x5bd56d['model']['createRange'](_0x5bd56d['model']['createPositionAt'](_0x595012['start']['nodeAfter'],0x0))),_0x388901['push'](_0x595012);_0x5bd56d['model']['change'](_0x2642f2=>{const _0x3312ea=_0x5bd56d['model']['document']['selection'],_0x2d79a3=Array['from'](_0x3312ea['getRanges']())['map'](_0x2f564d=>_0x23d2d0['fromRange'](_0x2f564d));_0x2642f2['setSelection'](_0x388901),_0x5bd56d['commands']['get'](_0x1f499f['commandName'])['refresh'](),_0x1f499f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5bd56d['execute'](_0x1f499f['commandName'],..._0x1f499f['commandParams']),_0x2642f2['setSelection'](_0x2d79a3);for(const _0x3d9f53 of _0x2d79a3)_0x3d9f53['detach']();});}),_0x32cb2d['descriptionFactory']['registerElementLabel'](function(_0x162360){const _0x147e2b=!_0x5bd56d['model']['schema']['isObject'](_0x162360),_0x2a9c32=_0x162360['previousSibling'],_0x2ee117=_0x162360['nextSibling'],_0x43a7ce=_0x162360['getAttribute']('listItemId'),_0x36b2e4=!_0x2a9c32||_0x2a9c32['getAttribute']('listItemId')!==_0x43a7ce,_0x454d1f=!_0x2ee117||_0x2ee117['getAttribute']('listItemId')!==_0x43a7ce;return _0x147e2b&&Boolean(_0x43a7ce)&&_0x36b2e4&&_0x454d1f;},_0x489b33=>o(_0x2c96d6,'ELEMENT_LIST_ITEM',_0x489b33));}['_registerLegacyDescription'](){const _0x236d57=this['editor'],_0x241942=_0x236d57['locale'];function _0x1e7478(_0x1138ca){const _0x4a36ef=_0x236d57['commands']['get']('bulletedList')['value'],_0x1efaee=_0x236d57['commands']['get']('numberedList')['value'];return'numberedList'===_0x1138ca?_0x4a36ef:_0x1efaee;}_0x236d57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1746f5){if('formatBlock'!=_0x1746f5['type'])return;const {data:_0x2f7501}=_0x1746f5;if(!_0x2f7501)return;let _0x36632a,_0x343619,_0x33a160,_0x306be7;switch(_0x2f7501['commandName']){case'bulletedList':_0x33a160=_0x2f7501['commandParams'][0x0]['forceValue'],_0x306be7=_0x1e7478(_0x2f7501['commandName']),_0x36632a=_0x33a160?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x306be7&&_0x236d57['config']['get']('list.multiBlock')||(_0x36632a='*Change\x20to:*\x20%0'),_0x343619={'type':'format','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x33a160=_0x2f7501['commandParams'][0x0]['forceValue'],_0x306be7=_0x1e7478(_0x2f7501['commandName']),_0x36632a=_0x33a160?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x306be7&&_0x236d57['config']['get']('list.multiBlock')||(_0x36632a='*Change\x20to:*\x20%0'),_0x343619={'type':'format','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36632a='*Indent:*\x20%0',_0x343619={'type':'format','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36632a=function(_0x2177da){const _0x15c41e=_0x2177da['getFirstRange']();let _0x11c290=_0x15c41e['start']['nodeAfter'];for(;_0x11c290&&_0x15c41e['containsItem'](_0x11c290);){if(_0x11c290['getAttribute']('listIndent')>0x0)return!0x1;_0x11c290=_0x11c290['nextSibling'];}return!0x0;}(_0x1746f5)?o(_0x241942,'*Format:*\x20remove\x20from\x20%0',o(_0x241942,function(_0x17492a){return'ELEMENT_'+_0x17492a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1746f5))):o(_0x241942,'*Outdent:*\x20%0',o(_0x241942,'ELEMENT_LIST_ITEM')),_0x343619={'type':'format','content':_0x36632a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f7501['multipleBlocks']&&(_0x36632a='*Merge:*\x20%0',_0x343619={'type':'deletion','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_LIST_ITEM'))});}return _0x343619;});}}function Te(_0x48ff05){let _0x3cc2c=_0x48ff05['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cc2c;){const _0xf566fb=_0x3cc2c['getAttribute']('listItemId');if(!_0xf566fb)return!0x1;if(_0xf566fb==_0x48ff05['data']['newValue'])return'newValue';if(_0xf566fb==_0x48ff05['data']['oldValue'])return'oldValue';_0x3cc2c=_0x3cc2c['previousSibling'];}return!0x1;}class ye extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1f7abd=this['editor']['config']['get']('list.properties'),_0x16532b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f7abd['styles']&&(_0x16532b['enableDefaultAttributesIntegration']('listStyle'),_0x16532b['registerBlockAttribute']('listStyle')),_0x1f7abd['reversed']&&(_0x16532b['enableDefaultAttributesIntegration']('listReversed'),_0x16532b['registerBlockAttribute']('listReversed')),_0x1f7abd['startIndex']&&(_0x16532b['enableDefaultAttributesIntegration']('listStart'),_0x16532b['registerBlockAttribute']('listStart'));const _0x3bd868={'type':'format','content':''};_0x16532b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x18cfe7=this['editor']['locale'];_0x16532b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x18cfe7,'FORMAT_LIST_REVERSED')),_0x16532b['descriptionFactory']['registerDescriptionCallback'](_0x2144d1=>{const {data:_0x50c01f}=_0x2144d1;if(_0x50c01f&&'listReversed'==_0x50c01f['key'])return null==_0x50c01f['newValue']||0x0==_0x50c01f['newValue']&&null==_0x50c01f['oldValue']?_0x3bd868:void 0x0;}),_0x16532b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x18cfe7,'FORMAT_LIST_START')),_0x16532b['descriptionFactory']['registerDescriptionCallback'](_0x24a5a0=>{const {data:_0x556775}=_0x24a5a0;if(_0x556775&&'listStart'==_0x556775['key'])return null==_0x556775['newValue']||0x1==_0x556775['newValue']&&null==_0x556775['oldValue']?_0x3bd868:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa75df4=>{if(_0xa75df4['batch']['isUndo'])return!0x1;let _0x1b17e3=!0x1;const _0x30f75b=_0x16532b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24e918=>{const _0x44839f=_0x16532b['_getAttributeKey'](_0x24e918);return'listStart'==_0x44839f||'listReversed'==_0x44839f;});for(const _0x182f3e of _0x30f75b){const _0x598e8a=_0x182f3e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x598e8a||'customNumbered'==_0x598e8a)continue;_0x16532b['_findSuggestions'](_0x182f3e['getFirstRange'](),'attribute')['find'](_0x2c33df=>'listType'==_0x16532b['_getAttributeKey'](_0x2c33df['suggestion']))||(_0xa75df4['removeMarker'](_0x182f3e['getFirstMarker']()),_0x1b17e3=!0x0);}return _0x1b17e3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4102a3){const _0x1fb745=this['editor']['locale'],{data:_0x51c191}=_0x4102a3,_0x50f7c9={'type':'format','content':''};if(!_0x51c191||'listStyle'!=_0x51c191['key'])return;if(!_0x51c191['oldValue'])return'default'==_0x51c191['newValue']?_0x50f7c9:{'type':'format','content':''+o(_0x1fb745,'*Set\x20format:*\x20%0',o(_0x1fb745,this['_getTranslationKeyForListStyle'](_0x51c191['newValue'])))};if(!_0x51c191['newValue']){if('default'==_0x51c191['oldValue'])return _0x50f7c9;let _0x20feff=_0x4102a3['head'];for(;_0x20feff;){if(_0x20feff['data']&&'listType'==_0x20feff['data']['key']&&_0x20feff['data']['newValue'])return _0x50f7c9;_0x20feff=_0x20feff['next'];}return{'type':'format','content':''+o(_0x1fb745,'*Remove\x20format:*\x20%0',o(_0x1fb745,this['_getTranslationKeyForListStyle'](_0x51c191['oldValue'])))};}if('default'!=_0x51c191['newValue'])return{'type':'format','content':''+o(_0x1fb745,'*Set\x20format:*\x20%0',o(_0x1fb745,this['_getTranslationKeyForListStyle'](_0x51c191['newValue'])))};let _0x1254a2=_0x4102a3['head'];for(;_0x1254a2;){if(_0x1254a2['data']&&'listType'==_0x1254a2['data']['key']&&_0x1254a2['data']['newValue']&&_0x1254a2['data']['oldValue'])return _0x50f7c9;_0x1254a2=_0x1254a2['next'];}return{'type':'format','content':o(_0x1fb745,'*Set\x20format:*\x20%0',o(_0x1fb745,'ELEMENT_'+_0x4102a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x394788=this['editor'],_0x1d960d=_0x394788['locale'];_0x394788['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3920aa=>{if('formatBlock'!=_0x3920aa['type'])return;const {data:_0x4cc5ce}=_0x3920aa;if(!_0x4cc5ce)return;let _0x45e5cd,_0x26f41f;switch(_0x4cc5ce['commandName']){case'listStyle':_0x45e5cd='*Change\x20to:*\x20%0',_0x26f41f={'type':'format','content':o(_0x1d960d,_0x45e5cd,o(_0x1d960d,this['_getTranslationKeyForListStyle'](_0x4cc5ce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45e5cd=_0x4cc5ce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26f41f={'type':'format','content':o(_0x1d960d,_0x45e5cd)};break;case'listStart':_0x45e5cd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26f41f={'type':'format','content':o(_0x1d960d,_0x45e5cd,_0x4cc5ce['commandParams'][0x0]['startIndex'])};}return _0x26f41f;});}['_getTranslationKeyForListStyle'](_0x2b1eab){return'ELEMENT_'+function(_0x3b42a9){if(Se['includes'](_0x3b42a9))return'bulleted';if(_e['includes'](_0x3b42a9))return'numbered';return null;}(_0x2b1eab)['toUpperCase']()+'_LIST_'+_0x2b1eab['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x240e00{static get['requires'](){return[_0xa43e62];}['init'](){const _0x4350ff=this['editor'],_0x9af8f8=_0x4350ff['plugins']['get']('TrackChangesEditing'),_0x3aeba9=_0x4350ff['commands']['get']('enter');_0x9af8f8['enableCommand']('enter',()=>{_0x4350ff['model']['change'](_0x344516=>{const _0x28c78f=_0x4350ff['model']['document']['selection'],_0x11009e=_0x28c78f['getFirstPosition'](),_0xf1436f=_0x23d2d0['fromRange'](_0x28c78f['getFirstRange']());if(_0x3aeba9['enterBlock'](_0x344516)){const _0x365116=_0x4350ff['model']['createPositionAt'](_0x11009e['parent']['nextSibling'],0x0),_0x17b0b0=_0x344516['createRange'](_0x11009e,_0x365116);_0x9af8f8['markInsertion'](_0x17b0b0);}else _0x344516['setSelection'](_0x344516['createRange'](_0xf1436f['end']));_0xf1436f['detach'](),_0x3aeba9['fire']('afterExecute',{'writer':_0x344516});});}),_0x4350ff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4350ff,'split'),{'priority':'high'}),_0x4350ff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x50a5e3,_0x49b1f0,_0x3c9e67)=>{const _0x3e82f6=_0x3c9e67['mapper']['markerNameToElements'](_0x49b1f0['markerName']);if(_0x3e82f6){for(const _0x56cf65 of _0x3e82f6)_0x56cf65['hasClass']('ck-suggestion-marker-split')&&(_0x3c9e67['mapper']['unbindElementFromMarkerName'](_0x56cf65,_0x49b1f0['markerName']),_0x3c9e67['writer']['remove'](_0x56cf65));}},{'priority':'high'}),_0x4350ff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47a619,_0x2570f0,_0x46e3cb)=>{_0x46e3cb['options']['showSuggestionHighlights']&&Ne(_0x4350ff,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x47a619,_0x2570f0,_0x46e3cb);},{'priority':'high'});}}class Y extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x25b9e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x25b9e8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x25b9e8['enableCommand']('findNext'),_0x25b9e8['enableCommand']('findPrevious'),_0x25b9e8['enableCommand']('replace'),_0x25b9e8['enableCommand']('replaceAll');}['handleFindCommand'](_0x16695a,_0x1ffb64,_0x3b7f29={}){const _0x1afb6c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x16695a(_0x5bc421=>{let _0x2ca9b6=('string'==typeof _0x1ffb64?_0x1afb6c['findByTextCallback'](_0x1ffb64,_0x3b7f29):_0x1ffb64)(_0x5bc421);Array['isArray'](_0x2ca9b6)&&(_0x2ca9b6={'results':_0x2ca9b6,'searchText':'string'==typeof _0x1ffb64?_0x1ffb64:''});const _0x2a2e25=_0x2ca9b6['results']['filter'](_0x389d19=>!0x1===this['_isInDeletionRange'](_0x389d19,_0x5bc421['item']));return{..._0x2ca9b6,'results':_0x2a2e25};},_0x3b7f29);}['_isInDeletionRange'](_0x342d5f,_0x5371c9){const _0x2fbd1a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5371c9,_0x342d5f['start']),this['editor']['model']['createPositionAt'](_0x5371c9,_0x342d5f['end']));for(const _0x2ea703 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2fbd1a['getIntersection'](_0x2ea703['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 _0x240e00{['afterInit'](){const _0x34ef47=this['editor']['locale'],_0xe3dfc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1fb4eb,commandName:_0x8324e6}of ro)this['editor']['plugins']['has'](_0x1fb4eb)&&(_0xe3dfc['enableDefaultAttributesIntegration'](_0x8324e6),_0xe3dfc['registerInlineAttribute'](_0x8324e6));_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x34ef47,'FORMAT_FONT_SIZE')),_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x34ef47,'FORMAT_FONT_FAMILY')),_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x34ef47,'FORMAT_FONT_COLOR')),_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x34ef47,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46440b=this['editor'],_0xa851ea=_0x46440b['locale'];_0x46440b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b3c7=>{const _0x127ef1=_0xa851ea['t'];if('formatInline'!=_0x32b3c7['type'])return;const {data:_0x515e74}=_0x32b3c7;if(null!=_0x515e74){if('fontSize'==_0x515e74['commandName']){const _0x42e83d=_0x515e74['commandParams'][0x0]['value'];if(_0x42e83d){const _0x4e6953=_0x127ef1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4ca7db=>_0x4ca7db['model']==_0x42e83d)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20size:*\x20%0',_0x4e6953)};}return{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x515e74['commandName']){const _0x32231f=_0x515e74['commandParams'][0x0]['value'];return _0x32231f?{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20family:*\x20%0',_0x32231f)}:{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20family*')};}if('fontColor'==_0x515e74['commandName']){const _0x4c196d=_0x515e74['commandParams'][0x0]['value'];if(_0x4c196d){const _0x289b4d=_0x2e9a97(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4b7097=>_0x4b7097['model']==_0x4c196d);let _0x7655d8=_0x4c196d,_0x42fd6a='';return _0x289b4d&&(_0x7655d8=_0x289b4d['label'],_0x42fd6a=_0x127ef1(_0x7655d8)['toLowerCase']()),{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20color:*\x20%0',_0x42fd6a)['trim'](),'color':{'value':_0x4c196d,'title':_0x42fd6a||_0x7655d8}};}return{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x515e74['commandName']){const _0x2dd94f=_0x515e74['commandParams'][0x0]['value'];if(_0x2dd94f){const _0x58f612=_0x2e9a97(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x17a12e=>_0x17a12e['model']==_0x2dd94f);let _0x15e74f=_0x2dd94f,_0x1062ae='';return _0x58f612&&(_0x15e74f=_0x58f612['label'],_0x1062ae=_0x127ef1(_0x15e74f)['toLowerCase']()),{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20background\x20color:*\x20%0',_0x1062ae)['trim'](),'color':{'value':_0x2dd94f,'title':_0x1062ae||_0x15e74f}};}return{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x240e00{['afterInit'](){const _0x1884d2=this['editor'],_0x6e6bef=_0x1884d2['plugins']['get']('TrackChangesEditing'),_0x58ccb8=_0x1884d2['commands']['get']('copyFormat'),_0x961453=_0x1884d2['commands']['get']('pasteFormat');_0x58ccb8&&_0x961453&&(_0x6e6bef['enableDefaultAttributesIntegration']('pasteFormat'),_0x6e6bef['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d1060=this['editor'],_0x572faf=_0x4d1060['locale'];_0x4d1060['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd638e8=>{if('formatBlock'!=_0xd638e8['type']&&'formatInline'!=_0xd638e8['type'])return;const {data:_0xbb8b80}=_0xd638e8;if(_0xbb8b80&&'pasteFormat'===_0xbb8b80['commandName']){const _0x49b946=[],_0x253aa2=_0xbb8b80['commandParams'][0x0];for(const [_0x3b2ea7,_0x5f1185]of Object['entries'](_0x253aa2))_0x49b946['push'](so(_0x4d1060,_0x3b2ea7,_0x5f1185));return _0x49b946['length']?{'type':'format','content':o(_0x572faf,'*Set\x20format\x20to:*\x20%0',_0x49b946['join'](',\x20'))}:{'type':'format','content':o(_0x572faf,'*Remove\x20all\x20formatting*')};}});}}function so(_0x24b76b,_0x4b981c,_0xd9155){const _0x9b9497=_0x24b76b['locale']['t'],_0xd88fec=_0x4b981c['split'](/(?=[A-Z])/)['join']('\x20'),_0x16ca6a=_0x9b9497(_0xd88fec['charAt'](0x0)['toUpperCase']()+_0xd88fec['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xd9155)return _0x16ca6a;if('fontColor'===_0x4b981c||'fontBackgroundColor'===_0x4b981c){const _0x492f6a=_0x2e9a97(_0x24b76b['config']['get']('fontColor.colors'))['find'](_0x34f994=>_0x34f994['model']==_0xd9155);return _0x16ca6a+'\x20('+(_0x492f6a?_0x9b9497(_0x492f6a['label'])['toLowerCase']():_0xd9155)+')';}if('fontSize'===_0x4b981c&&isNaN(parseFloat(_0xd9155))){const _0xd58be4=_0x24b76b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x24b76b['config']['get']('fontSize.options'))['find'](_0x2a1490=>_0x2a1490['model']==_0xd9155);return _0x16ca6a+'\x20('+(_0xd58be4?_0x9b9497(_0xd58be4['title'])['toLowerCase']():_0xd9155)+')';}return _0x16ca6a+'\x20('+_0xd9155+')';}class nt extends _0x240e00{['_headingOptions'];['afterInit'](){const _0x4387a0=this['editor'];if(!_0x4387a0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4387a0['config']['get']('heading.options');const _0x563711=_0x4387a0['locale'],_0x44ecf6=_0x4387a0['plugins']['get']('TrackChangesEditing');_0x44ecf6['enableDefaultAttributesIntegration']('heading');for(const _0x4246bd of this['_headingOptions'])'paragraph'!=_0x4246bd['model']&&_0x44ecf6['descriptionFactory']['registerElementLabel'](_0x4246bd['model'],_0x9a1bb2=>{const _0x2acbdc=this['_getHeadingLevel'](_0x4246bd['model']);return null!==_0x2acbdc?_0x390e68(_0x9a1bb2,_0x2acbdc):_0x1822d0(_0x9a1bb2,_0x4246bd['title']);});function _0x390e68(_0x4a6010,_0x4bfcdb){return o(_0x563711,'ELEMENT_HEADING',[_0x4a6010,_0x4bfcdb]);}function _0x1822d0(_0x2e7a31,_0x141f30){return o(_0x563711,'ELEMENT_HEADING_CUSTOM',[_0x2e7a31,_0x141f30]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcc089e=this['editor'],_0x17dd93=_0xcc089e['locale'];function _0x324dbc(_0x430435,_0x45dba5){return o(_0x17dd93,'ELEMENT_HEADING_CUSTOM',[_0x430435,_0x45dba5]);}_0xcc089e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x568247=>{if('formatBlock'!=_0x568247['type'])return;const {data:_0x5223f1}=_0x568247;if(_0x5223f1&&'heading'==_0x5223f1['commandName']){const _0x11322c=_0x5223f1['commandParams'][0x0]['value'],_0x44ec1b=this['_getHeadingLevel'](_0x11322c);if(null!==_0x44ec1b)return{'type':'format','content':o(_0x17dd93,'*Change\x20to:*\x20%0',(_0x441d40=0x1,_0x19c602=_0x44ec1b,o(_0x17dd93,'ELEMENT_HEADING',[_0x441d40,_0x19c602])))};const _0x54c36b=this['_headingOptions']['find'](_0x22599a=>_0x22599a['model']===_0x11322c)['title'];return{'type':'format','content':o(_0x17dd93,'*Change\x20to:*\x20%0',_0x324dbc(0x1,_0x54c36b))};}var _0x441d40,_0x19c602;});}['_getHeadingLevel'](_0x4b6f39){const _0x342417=_0x4b6f39['match'](/^heading(\d+)/);if(_0x342417)return _0x342417[0x1];const _0xc38a3c=this['_headingOptions']?.['find'](_0x287080=>_0x287080['model']==_0x4b6f39);if(_0xc38a3c&&_0xc38a3c['view']){const _0x2d1510=_0xc38a3c['view'],_0x43113a=(_0x2d1510['name']??_0x2d1510)['match'](/^h(\d+)/);if(_0x43113a)return _0x43113a[0x1];}return null;}}class it extends _0x240e00{['afterInit'](){const _0x166b2a=this['editor'];if(!_0x166b2a['plugins']['has']('HighlightEditing'))return;const _0x23cdf0=_0x166b2a['plugins']['get']('TrackChangesEditing'),_0x48acd6=_0x166b2a['locale'];_0x23cdf0['enableDefaultAttributesIntegration']('highlight'),_0x23cdf0['registerInlineAttribute']('highlight'),_0x23cdf0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48acd6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22a9e6=this['editor'],_0x4e03df=_0x22a9e6['locale'];_0x22a9e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x526d31=>{if('formatInline'!=_0x526d31['type'])return;const {data:_0x3b4b55}=_0x526d31;if(_0x3b4b55&&'highlight'==_0x3b4b55['commandName']){const _0xd994b=_0x4e03df['t'],_0x18f395=_0x3b4b55['commandParams'][0x0]['value'];if(_0x18f395){const _0x512fc2=_0x22a9e6['config']['get']('highlight.options')['find'](_0x2fa6ca=>_0x2fa6ca['model']==_0x18f395),_0x3efe7c=_0xd994b(_0x512fc2['title'])['toLowerCase']();return{'type':'format','content':o(_0x4e03df,'*Set\x20highlight:*\x20%0',_0x3efe7c),'color':{'value':_0x512fc2['color'],'title':_0x512fc2['title']}};}return{'type':'format','content':o(_0x4e03df,'*Remove\x20highlight*',o(_0x4e03df,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x240e00{['afterInit'](){const _0x3dfcb2=this['editor'];if(!_0x3dfcb2['plugins']['has']('HorizontalLineEditing'))return;_0x3dfcb2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x616855=_0x3dfcb2['plugins']['get']('TrackChangesEditing'),_0xab72f9=_0x3dfcb2['locale'];_0x616855['descriptionFactory']['registerElementLabel']('horizontalLine',_0x12f341=>o(_0xab72f9,'ELEMENT_HORIZONTAL_LINE',_0x12f341)),_0x3dfcb2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x52abb9,{writer:_0x567a0e,options:_0x113044})=>{if(!_0x113044['showSuggestionHighlights'])return null;const _0xb1eedc=_0x567a0e['createContainerElement']('div'),_0xc994d0=_0x567a0e['createEmptyElement']('hr');return _0x567a0e['addClass']('ck-horizontal-line',_0xb1eedc),_0x567a0e['insert'](_0x567a0e['createPositionAt'](_0xb1eedc,0x0),_0xc994d0),_0xb1eedc;},'converterPriority':'high'});}}class st extends _0x240e00{['afterInit'](){const _0x35d480=this['editor'];if(!_0x35d480['plugins']['has']('HtmlEmbed'))return;const _0x104bc4=_0x35d480['plugins']['get']('TrackChangesEditing'),_0x42c322=_0x35d480['locale'];_0x104bc4['descriptionFactory']['registerElementLabel']('rawHtml',_0x470530=>o(_0x42c322,'ELEMENT_HTML_EMBED',_0x470530)),_0x104bc4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x104bc4['registerBlockAttribute']('value'),_0x104bc4['descriptionFactory']['registerDescriptionCallback'](_0x1f92e5=>{if('attribute'!=_0x1f92e5['type'])return;const {data:_0x17bd36}=_0x1f92e5;if(_0x17bd36&&'value'==_0x17bd36['key']&&_0x1f92e5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xda12a4=o(_0x42c322,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x42c322,'*Change\x20%0\x20content*',_0xda12a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cc978=this['editor'],_0xb2c112=_0x5cc978['locale'];_0x5cc978['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfa4d=>{if('formatBlock'!=_0x1bfa4d['type'])return;const {data:_0xeb8d8d}=_0x1bfa4d;if(_0xeb8d8d&&'htmlEmbed'==_0xeb8d8d['commandName']){const _0x56f32a=o(_0xb2c112,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xb2c112,'*Change\x20%0\x20content*',_0x56f32a)};}});}}class ot extends _0x240e00{['afterInit'](){const _0x2a8b7a=this['editor'];if(!_0x2a8b7a['plugins']['has']('ImageEditing'))return;const _0x48b2f0=_0x2a8b7a['plugins']['get']('TrackChangesEditing'),_0x148f6f=_0x2a8b7a['plugins']['get']('ImageUtils'),_0x34917b=_0x2a8b7a['locale'];_0x48b2f0['enableCommand']('insertImage'),_0x48b2f0['descriptionFactory']['registerElementLabel']('imageBlock',_0x454053=>o(_0x34917b,'ELEMENT_IMAGE',_0x454053)),_0x48b2f0['descriptionFactory']['registerElementLabel']('imageInline',_0x15b211=>o(_0x34917b,'ELEMENT_INLINE_IMAGE',_0x15b211)),_0x48b2f0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x34917b,'ELEMENT_CAPTION')),_0x2a8b7a['plugins']['has']('ImageUploadEditing')&&_0x48b2f0['enableCommand']('uploadImage'),_0x2a8b7a['plugins']['has']('ImageBlockEditing')&&_0x2a8b7a['plugins']['has']('ImageInlineEditing')&&(_0x48b2f0['enableCommand']('imageTypeInline',(_0x25bd89,_0x18609d)=>{const _0x3c9f60=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']);_0x2a8b7a['model']['change'](()=>{_0x48b2f0['markBlockFormat'](_0x3c9f60,{'commandName':'imageTypeInline','commandParams':[_0x18609d]},[],'convertBlockImageToInline');});}),_0x48b2f0['enableCommand']('imageTypeBlock',(_0x5341a8,_0xaeb718)=>{_0x2a8b7a['model']['change'](_0x4de505=>{let _0x2ce5c0=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x1f5ba8=_0x4de505['createRangeOn'](_0x2ce5c0);const _0x211f5f=_0x274438['fromPosition'](_0x1f5ba8['start'],'toPrevious'),_0x7d4eb=_0x274438['fromPosition'](_0x1f5ba8['end'],'toNext');_0x48b2f0['forceDefaultExecution'](()=>_0x5341a8(_0xaeb718)),_0x2ce5c0=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x1f5ba8=_0x4de505['createRangeOn'](_0x2ce5c0);const _0x487ed6=_0x4de505['createRange'](_0x211f5f,_0x7d4eb);_0x211f5f['detach'](),_0x7d4eb['detach'](),_0x48b2f0['markBlockFormat'](_0x2ce5c0,{'commandName':'imageTypeInline','commandParams':[_0xaeb718]},[],'convertInlineImageToBlock'),_0x487ed6['start']['isBefore'](_0x1f5ba8['start'])&&_0x48b2f0['markInsertion'](_0x4de505['createRange'](_0x487ed6['start'],_0x1f5ba8['start']),'convertInlineImageToBlock'),_0x1f5ba8['end']['isBefore'](_0x487ed6['end'])&&_0x48b2f0['markInsertion'](_0x4de505['createRange'](_0x1f5ba8['end'],_0x487ed6['end']),'convertInlineImageToBlock');});}),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48b2f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1af8b9])=>{const _0x1f24d9=_0x48b2f0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x40a280=_0x1af8b9['start'],_0x976546=_0x1af8b9['end'];const _0x26efe9=_0x2a8b7a['model']['schema']['getNearestSelectionRange'](_0x40a280,'backward'),_0x33805d=_0x2a8b7a['model']['schema']['getNearestSelectionRange'](_0x976546,'forward');_0x26efe9['isCollapsed']&&(_0x40a280=_0x26efe9['start']),_0x33805d['isCollapsed']&&(_0x976546=_0x33805d['end']),_0x1f24d9([_0x2a8b7a['model']['createRange'](_0x40a280,_0x976546)]);}),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34caaf),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34caaf)),_0x2a8b7a['plugins']['has']('ImageCaptionEditing')&&(_0x48b2f0['enableCommand']('toggleImageCaption',(_0x26fc20,_0x1c5f22)=>{const _0x55b666=_0x2a8b7a['plugins']['get']('ImageCaptionUtils');let _0x30fe06=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x23653f=_0x55b666['getCaptionFromImageModelElement'](_0x30fe06);_0x2a8b7a['model']['change'](()=>{if(_0x23653f)return void _0x48b2f0['markDeletion'](_0x2a8b7a['model']['createRangeOn'](_0x23653f));const _0x34fd5b=_0x148f6f['isBlockImage'](_0x30fe06);_0x26fc20(_0x1c5f22),_0x30fe06=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x23653f=_0x55b666['getCaptionFromImageModelElement'](_0x30fe06),_0x48b2f0['markInsertion'](_0x2a8b7a['model']['createRangeOn'](_0x23653f),_0x34fd5b?null:'imageCaption');});}),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34caaf));const _0x236e5a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xca27d9(_0x3e1189,_0x2a36e5){const _0x53152d=_0x236e5a['findIndex'](({type:_0x3700df,subType:_0x1c142d})=>_0x3e1189['type']==_0x3700df&&_0x3e1189['subType']==_0x1c142d),_0x444fc5=_0x236e5a['findIndex'](({type:_0x3a1d67,subType:_0x144906})=>_0x2a36e5['type']==_0x3a1d67&&_0x2a36e5['subType']==_0x144906);if(_0x53152d<0x0||_0x444fc5<0x0)return!0x1;const _0x1b6f07=_0x3e1189['getFirstRange'](),_0x1cc0c4=_0x2a36e5['getFirstRange']();if((0x0==_0x53152d||0x1==_0x53152d)&&0x2==_0x444fc5&&_0x1b6f07['isIntersecting'](_0x1cc0c4))return!0x0;if(0x2==_0x53152d&&0x3==_0x444fc5){const _0x450020=_0x48b2f0['_findSuggestions'](_0x1b6f07,'insertion')['filter'](({suggestion:_0x102c4a,meta:_0x2a115a})=>_0x2a115a['isOwn']&&'convertInlineImageToBlock'==_0x102c4a['subType']);if(_0x450020['length']>0x1&&_0x1cc0c4['end']['isEqual'](_0x1b6f07['start']))return!0x0;if(0x1==_0x450020['length']&&(_0x1b6f07['start']['isEqual'](_0x1cc0c4['end'])||_0x1b6f07['end']['isEqual'](_0x1cc0c4['start'])))return!0x0;}if(0x3==_0x53152d&&0x3==_0x444fc5&&_0x1b6f07['start']['isBefore'](_0x1cc0c4['start'])){const _0x5727d7=_0x1b6f07['end']['nodeAfter'],_0x29d26b=_0x1cc0c4['start']['nodeBefore'];return _0x148f6f['isBlockImage'](_0x5727d7)&&_0x5727d7===_0x29d26b;}return!0x1;}function _0x34caaf(_0x494743,_0x323513){return _0xca27d9(_0x494743,_0x323513)?[_0x494743,_0x323513]:_0xca27d9(_0x323513,_0x494743)?[_0x323513,_0x494743]:null;}_0x2a8b7a['plugins']['has']('ImageResize')&&(_0x48b2f0['enableDefaultAttributesIntegration']('resizeImage'),_0x48b2f0['registerBlockAttribute']('resizedWidth'),_0x48b2f0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x34917b,'FORMAT_IMAGE_SIZE'))),_0x2a8b7a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48b2f0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48b2f0['registerBlockAttribute']('alt')),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0xa1d29e=>{if(!!_0x236e5a['find'](({type:_0x1fc837,subType:_0x4baedf})=>_0xa1d29e['type']==_0x1fc837&&_0xa1d29e['subType']==_0x4baedf))return _0xa1d29e['previous']?{}:void 0x0;}),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0x2cf899=>{if('insertion'==_0x2cf899['type']||'deletion'==_0x2cf899['type']){const _0x4f9541=_0x2cf899['getContainedElement']();if(_0x4f9541&&_0x4f9541['is']('element','caption'))return{'type':'insertion'==_0x2cf899['type']?'addObject':'removeObject','element':_0x4f9541,'quantity':0x1};}}),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0x3d1d8d=>'formatBlock'==_0x3d1d8d['type']&&'convertInlineImageToBlock'==_0x3d1d8d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3d1d8d['type']&&'convertBlockImageToInline'==_0x3d1d8d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0x4f2899=>{if('attribute'!=_0x4f2899['type'])return;const {data:_0x407bd7}=_0x4f2899;if(!_0x407bd7||'alt'!=_0x407bd7['key'])return;const _0x27640b=_0x407bd7['newValue'];return _0x27640b?{'type':'format','content':o(_0x34917b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x27640b+'\x22')}:{'type':'format','content':o(_0x34917b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e9d91=this['editor'],_0x34be9f=_0x5e9d91['locale'];_0x5e9d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d9888=>{if('formatBlock'!=_0x3d9888['type']&&'formatInline'!=_0x3d9888['type'])return;const {data:_0x213e21}=_0x3d9888;if(_0x213e21){if('imageTextAlternative'==_0x213e21['commandName']){const _0x36e7a1=_0x213e21['commandParams'][0x0]['newValue'];return _0x36e7a1?{'type':'format','content':o(_0x34be9f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36e7a1+'\x22')}:{'type':'format','content':o(_0x34be9f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x213e21['commandName']){const _0x31c6e7=_0x213e21['commandParams'][0x0]['width'];return _0x31c6e7?{'type':'format','content':o(_0x34be9f,'*Set\x20image\x20width:*\x20%0',_0x31c6e7)}:{'type':'format','content':o(_0x34be9f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x205ae0=this['editor']['locale'],_0x2383c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2383c8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2383c8['registerBlockAttribute']('src'),_0x2383c8['descriptionFactory']['registerDescriptionCallback'](_0x4d07a6=>{if('attribute'!=_0x4d07a6['type'])return;const {data:_0x251e66}=_0x4d07a6;return _0x251e66&&'src'==_0x251e66['key']?_0x251e66['newValue']&&_0x251e66['oldValue']?{'type':'format','content':o(_0x205ae0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ed09f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ed09f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ed09f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ed09f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ed09f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4702e0=this['editor'],_0x20c47b=_0x4702e0['locale'];_0x4702e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf41478=>{if('formatBlock'!=_0xf41478['type']&&'formatInline'!=_0xf41478['type'])return;const {data:_0x3590a6}=_0xf41478;if(!_0x3590a6||'replaceImageSource'!=_0x3590a6['commandName'])return;return{'type':'format','content':o(_0x20c47b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x240e00{['afterInit'](){const _0x55f6bb=this['editor'];if(!_0x55f6bb['plugins']['has']('ImageStyleEditing'))return;const _0x21d6ba=_0x55f6bb['plugins']['get']('TrackChangesEditing'),_0x2f6308=_0x55f6bb['plugins']['get']('ImageUtils'),_0x3adfc5={};_0x21d6ba['enableCommand']('imageStyle',(_0x15ae87,_0x213738)=>{const _0x780880=_0x55f6bb['plugins']['get']('Users')['me'],_0x51e12f=_0x55f6bb['commands']['get']('imageStyle');let _0x1c2cc2=_0x2f6308['getClosestSelectedImageElement'](_0x55f6bb['model']['document']['selection']),_0x1a69b4=_0x55f6bb['model']['createRangeOn'](_0x1c2cc2),_0x47ba80=_0x51e12f['value'];if(_0x47ba80==_0x213738['value'])return;const _0x2988b2={'commandName':'imageStyle','commandParams':[_0x213738],'formatGroupId':_0x3aa221()};_0x55f6bb['model']['change'](()=>{if(_0x21d6ba['getSuggestions']()['filter'](_0x2367c8=>_0x2367c8['isInContent']&&_0x780880==_0x2367c8['author']&&('formatBlock'==_0x2367c8['type']||'formatInline'==_0x2367c8['type'])&&('imageStylePreApply'==_0x2367c8['subType']||'imageStylePostApply'==_0x2367c8['subType'])&&_0x2367c8['getFirstRange']()['isEqual'](_0x1a69b4))['forEach'](_0x37523d=>_0x21d6ba['discardSuggestion'](_0x37523d['head'])),_0x1c2cc2=_0x2f6308['getClosestSelectedImageElement'](_0x55f6bb['model']['document']['selection']),_0x1a69b4=_0x55f6bb['model']['createRangeOn'](_0x1c2cc2),_0x51e12f['refresh'](),_0x55f6bb['commands']['get']('imageTypeInline')['refresh'](),_0x55f6bb['commands']['get']('imageTypeBlock')['refresh'](),_0x47ba80=_0x51e12f['value'],_0x47ba80!=_0x213738['value'])return _0x2f6308['isInlineImage'](_0x1c2cc2)&&_0x51e12f['shouldConvertImageType'](_0x213738['value'],_0x1c2cc2)?(_0x15ae87({..._0x213738,'setImageSizes':!0x1}),_0x1c2cc2=_0x2f6308['getClosestSelectedImageElement'](_0x55f6bb['model']['document']['selection']),void _0x21d6ba['markBlockFormat'](_0x1c2cc2,{..._0x2988b2,'commandReversedParams':[{'value':_0x47ba80||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2f6308['isBlockImage'](_0x1c2cc2)?_0x21d6ba['markBlockFormat'](_0x1c2cc2,_0x2988b2,[],'imageStylePostApply'):_0x21d6ba['markInlineFormat'](_0x1a69b4,_0x2988b2,'imageStylePostApply'));});});for(const _0x538381 of _0x55f6bb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3adfc5[_0x538381['name']]=_0x538381['title']['toLowerCase']();_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x248f6e])=>{_0x2f6308['setImageNaturalSizeAttributes'](_0x248f6e['getContainedElement']());}),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x498ab7,_0x47fc92)=>{_0x21d6ba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x498ab7,{'commandName':_0x47fc92['commandName'],'commandParams':_0x47fc92['commandReversedParams']});}),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x339f1c,_0x5e0fb6){if(_0x43fef9(_0x339f1c,_0x5e0fb6))return[_0x339f1c,_0x5e0fb6];if(_0x43fef9(_0x5e0fb6,_0x339f1c))return[_0x5e0fb6,_0x339f1c];return null;});const _0xa53c85=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43fef9(_0x5292c8,_0x17a398){const _0x2475c2=_0xa53c85['findIndex'](({type:_0x282bf6,subType:_0x538664})=>_0x5292c8['type']==_0x282bf6&&_0x5292c8['subType']==_0x538664),_0x35fb42=_0xa53c85['findIndex'](({type:_0x59910a,subType:_0x5a6f4f})=>_0x17a398['type']==_0x59910a&&_0x17a398['subType']==_0x5a6f4f);if(_0x2475c2<0x0||_0x35fb42<0x0)return!0x1;const _0x28b0e4=_0x5292c8['getFirstRange'](),_0x2ec5ad=_0x17a398['getFirstRange']();if((0x0==_0x2475c2||0x1==_0x2475c2)&&0x2==_0x35fb42&&_0x28b0e4['isIntersecting'](_0x2ec5ad))return!0x0;if(0x2==_0x2475c2&&0x3==_0x35fb42){const _0x348c57=_0x21d6ba['_findSuggestions'](_0x28b0e4,'insertion')['filter'](({suggestion:_0x343814,meta:_0x563990})=>_0x563990['isOwn']&&'convertInlineImageToBlock'==_0x343814['subType']);if(_0x348c57['length']>0x1&&_0x2ec5ad['end']['isEqual'](_0x28b0e4['start']))return!0x0;if(0x1==_0x348c57['length']&&(_0x28b0e4['start']['isEqual'](_0x2ec5ad['end'])||_0x28b0e4['end']['isEqual'](_0x2ec5ad['start'])))return!0x0;}if(0x3==_0x2475c2&&0x3==_0x35fb42&&_0x28b0e4['start']['isBefore'](_0x2ec5ad['start'])){const _0x26dfc3=_0x28b0e4['end']['nodeAfter'],_0x224935=_0x2ec5ad['start']['nodeBefore'];return _0x2f6308['isBlockImage'](_0x26dfc3)&&_0x26dfc3===_0x224935;}return!0x1;}_0x55f6bb['model']['document']['registerPostFixer'](()=>{let _0x4e0782=!0x1;const _0x571d07=Array['from'](_0x55f6bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bac38,data:_0x48063a}of _0x571d07){const {group:_0x1e7c10,type:_0x2b6f3f,subType:_0xfa632,id:_0x4a11bf}=_0x21d6ba['_splitMarkerName'](_0x1bac38);if('suggestion'==_0x1e7c10&&_0x21d6ba['hasSuggestion'](_0x4a11bf)){if('formatBlock'==_0x2b6f3f&&('imageStylePreApply'==_0xfa632||'imageStylePostApply'==_0xfa632)){const _0x2a38a2=_0x21d6ba['getSuggestion'](_0x4a11bf);if(_0x48063a['newRange']){const _0x160d60=_0x2a38a2['getFirstRange']()['getContainedElement']();if(_0x2f6308['isBlockImage'](_0x160d60))continue;_0x21d6ba['discardSuggestion'](_0x2a38a2),_0x4e0782=!0x0;}}if('insertion'==_0x2b6f3f&&'imageCaption'==_0xfa632&&!_0x48063a['newRange']){const _0x1c5018=_0x21d6ba['getSuggestion'](_0x4a11bf);_0x1c5018['next']&&_0x1c5018['next']['isInContent']&&(_0x21d6ba['discardSuggestion'](_0x1c5018['next']),_0x4e0782=!0x0);}}}return _0x4e0782;}),this['_registerLegacyDescription'](_0x3adfc5);}['_registerLegacyDescription'](_0x4b853c){const _0x52035e=this['editor'],_0x6cef27=_0x52035e['locale'];_0x52035e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194388=>{if('formatBlock'!=_0x194388['type']&&'formatInline'!=_0x194388['type'])return;const {data:_0x9c5d5d}=_0x194388;if(!_0x9c5d5d||'imageStyle'!=_0x9c5d5d['commandName'])return;const _0x1aaaaf=_0x9c5d5d['commandParams'][0x0]['value'];return _0x397ae5('side'===_0x1aaaaf?o(_0x6cef27,'FORMAT_SIDE_IMAGE'):_0x4b853c[_0x1aaaaf]||_0x1aaaaf);function _0x397ae5(_0x48a224){return{'type':'format','content':o(_0x6cef27,'*Format:*\x20%0',_0x48a224)};}});}}class ct extends _0x240e00{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8677b5){super(_0x8677b5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x28342c=this['editor'],_0x799873=_0x28342c['commands']['get']('importWord'),_0x298821=_0x28342c['commands']['get']('trackChanges');_0x799873&&(_0x799873['on']('execute',(_0x1f3f5c,[,_0x51452d])=>{this['_trackChangesValueDuringImport']=_0x298821['value'],_0x51452d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x799873,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x799873,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x298821['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x28342c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x276aa6,_0x54d825){const {suggestions:_0x410e5d}=_0x54d825,_0x2d5f18=this['editor']['commands']['get']('trackChanges'),_0x3566f3=_0x2d5f18['value'];this['_trackChangesValueDuringImport']!==_0x3566f3&&(_0x2d5f18['execute'](),this['_trackChangesExecuted']=!0x0),_0x410e5d&&_0x410e5d['forEach'](({id:_0x1a3a02,type:_0x23e0a6,author:_0x14259e,created_at:_0x13912e})=>{const _0x35969f={'id':_0x1a3a02,'type':_0x23e0a6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x14259e,'createdAt':_0x13912e?new Date(_0x13912e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x35969f);});}}class ut extends _0x240e00{['afterInit'](){const _0x122a28=this['editor'],_0x583f9c=_0x122a28['plugins']['get']('TrackChangesEditing');if(_0x122a28['plugins']['has']('IndentEditing')&&(_0x583f9c['enableCommand']('indent'),_0x583f9c['enableCommand']('outdent')),_0x122a28['plugins']['has']('IndentBlock')){for(const _0x55a85f of['indentBlock','outdentBlock'])_0x583f9c['enableDefaultAttributesIntegration'](_0x55a85f);}const _0xcd6616=_0x122a28['locale'];_0x583f9c['registerBlockAttribute']('blockIndent'),_0x583f9c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xcd6616,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x515946=this['editor'],_0x45a593=_0x515946['locale'],_0x12ec8a=_0x515946['plugins']['get']('TrackChangesEditing');_0x12ec8a['descriptionFactory']['registerDescriptionCallback'](_0x7c58de=>{if('formatBlock'!=_0x7c58de['type'])return;const {data:_0x4cb228}=_0x7c58de;if(!_0x4cb228)return;if('indentBlock'!=_0x4cb228['commandName']&&'outdentBlock'!=_0x4cb228['commandName'])return;const _0x20ca2d=_0x7c58de['getItems']()[0x0],_0xef21f5=_0x12ec8a['descriptionFactory']['getItemLabel'](_0x20ca2d);return'indentBlock'==_0x4cb228['commandName']?{'type':'format','content':o(_0x45a593,'*Indent:*\x20%0',_0xef21f5)}:'outdentBlock'==_0x4cb228['commandName']?{'type':'format','content':o(_0x45a593,'*Outdent:*\x20%0',_0xef21f5)}:void 0x0;});}}class ft extends _0x240e00{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x240e00{['afterInit'](){const _0x5ab8de=this['editor'];if(!_0x5ab8de['plugins']['has']('LinkEditing'))return;const _0x2f1c35=_0x5ab8de['plugins']['get']('TrackChangesEditing'),_0x38cebf=_0x5ab8de['commands']['get']('link');_0x2f1c35['enableDefaultAttributesIntegration']('link'),_0x2f1c35['enableDefaultAttributesIntegration']('unlink'),_0x2f1c35['registerInlineAttribute']('linkHref');for(const _0x5966cc of _0x38cebf['manualDecorators'])_0x2f1c35['registerInlineAttribute'](_0x5966cc['id']),_0x2f1c35['descriptionFactory']['registerAttributeLabel'](_0x5966cc['id'],'link\x20('+_0x5966cc['label']['toLowerCase']()+')');_0x2f1c35['descriptionFactory']['registerDescriptionCallback'](_0x58bcc9=>{if('attribute'!=_0x58bcc9['type'])return;const {data:_0x481db1}=_0x58bcc9;if(!_0x481db1||'linkHref'!=_0x481db1['key'])return;const _0x1e43af=_0x481db1['newValue'],_0x1d1231=_0x5ab8de['locale'];return{'type':'format','content':null==_0x1e43af?o(_0x1d1231,'*Remove\x20link*'):o(_0x1d1231,'*Set\x20link:*\x20%0','\x22'+_0x1e43af+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25239f=this['editor'],_0x21b944=_0x25239f['locale'];_0x25239f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x389246=>{if('formatInline'!=_0x389246['type'])return;const {data:_0x2622fe}=_0x389246;if(_0x2622fe){if('link'==_0x2622fe['commandName']){const _0x59ff31=_0x2622fe['commandParams'][0x0];return{'type':'format','content':o(_0x21b944,'*Set\x20link:*\x20%0','\x22'+_0x59ff31+'\x22')};}return'unlink'==_0x2622fe['commandName']?{'type':'format','content':o(_0x21b944,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x240e00{['afterInit'](){const _0x5bf7ea=this['editor'],_0x5e18f7=_0x5bf7ea['locale'];if(!_0x5bf7ea['plugins']['has']('LegacyListEditing'))return;const _0x1c662=_0x5bf7ea['plugins']['get']('TrackChangesEditing'),_0x3497f5=_0x5bf7ea['plugins']['has']('LegacyTodoListEditing');function _0x5a1bbb(_0x8fe42e){return()=>{const _0xf4b6f5=_0x5bf7ea['model']['document']['selection'],_0x25cd19=_0x5bf7ea['commands']['get'](_0x8fe42e);if(_0x25cd19['value'])return void _0x5bf7ea['execute']('paragraph',{});const _0x871365=_0x8fe42e['slice'](0x0,-0x4),_0x5a0209=function(_0x451fcd,_0x105700,_0xb5e440){let _0x57409d=Array['from'](_0x451fcd)['filter'](_0xd614a9=>function(_0x5a62ec,_0x40c017){return _0x40c017['checkChild'](_0x5a62ec['parent'],'listItem')&&!_0x40c017['isObject'](_0x5a62ec);}(_0xd614a9,_0xb5e440));_0x57409d=_0x57409d['filter'](_0x1b13af=>!_0x1b13af['is']('element','listItem')||_0x1b13af['getAttribute']('listType')!=_0x105700);const _0x5cf804=new Set();for(const _0x54b883 of _0x57409d)_0x54b883['is']('element','listItem')?_0x5cf804['add'](Le(_0x54b883)):_0x5cf804['add'](_0x54b883);return Array['from'](_0x5cf804);}(_0xf4b6f5['getSelectedBlocks'](),_0x871365,_0x5bf7ea['model']['schema']);_0x5bf7ea['model']['change'](()=>{for(const _0x3356dc of _0x5a0209)_0x1c662['markBlockFormat'](_0x3356dc,{'commandName':_0x8fe42e,'commandParams':[{'forceValue':!_0x25cd19['value']}],'formatGroupId':'blockName'},Ee(_0x3356dc));});};}function _0x7dafd8(_0x4432ca){return()=>{const _0x1a10ce=function(_0x12d6ec){let _0x4f66c7=Array['from'](_0x12d6ec);const _0x5a3d7e=_0x4f66c7['findIndex'](_0x4bfe04=>'listItem'!=_0x4bfe04['name']);return _0x5a3d7e>-0x1&&(_0x4f66c7=_0x4f66c7['slice'](0x0,_0x5a3d7e)),_0x4f66c7;}(_0x5bf7ea['model']['document']['selection']['getSelectedBlocks']()),_0x580f56=_0x5bf7ea['model']['createRange'](_0x5bf7ea['model']['createPositionAt'](_0x1a10ce[0x0],'before'),_0x5bf7ea['model']['createPositionAt'](_0x1a10ce[_0x1a10ce['length']-0x1],'end'));_0x5bf7ea['model']['change'](()=>{_0x1c662['markBlockFormat'](_0x580f56,{'commandName':_0x4432ca,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ac535){const _0x14f871=new Set();for(const _0x2303c9 of _0x1ac535){let _0x135e46=_0x2303c9['nextSibling'];for(;_0x135e46&&_0x135e46['getAttribute']('listIndent')>_0x2303c9['getAttribute']('listIndent');)_0x14f871['add'](_0x135e46),_0x135e46=_0x135e46['nextSibling'];}return Array['from'](_0x14f871);}(_0x1a10ce));});};}_0x1c662['enableCommand']('numberedList',_0x5a1bbb('numberedList')),_0x1c662['enableCommand']('bulletedList',_0x5a1bbb('bulletedList')),_0x3497f5&&_0x1c662['enableCommand']('todoList',_0x5a1bbb('todoList')),_0x1c662['enableCommand']('indentList',_0x7dafd8('indentList')),_0x1c662['enableCommand']('outdentList',_0x7dafd8('outdentList')),_0x3497f5&&_0x1c662['enableCommand']('checkTodoList',()=>{const _0x137725=_0x5bf7ea['commands']['get']('checkTodoList'),_0x28c868=Array['from'](_0x137725['_selectedElements']);_0x28c868['filter'](_0x40f46a=>_0x40f46a['getAttribute']('todoListChecked')!=_0x137725['value']),_0x5bf7ea['model']['change'](()=>{for(const _0x1a6eae of _0x28c868)_0x1c662['markBlockFormat'](_0x1a6eae,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x137725['value']}]});});}),_0x1c662['descriptionFactory']['registerElementLabel']('listItem',_0xcfe113=>o(_0x5e18f7,'ELEMENT_LIST_ITEM',_0xcfe113)),_0x1c662['descriptionFactory']['registerDescriptionCallback'](_0x310b31=>{if('formatBlock'!=_0x310b31['type']&&'formatInline'!=_0x310b31['type'])return;const {data:_0x201404}=_0x310b31;if(_0x201404){if('numberedList'==_0x201404['commandName']||'bulletedList'==_0x201404['commandName']||'todoList'==_0x201404['commandName'])switch(_0x201404['commandName']['replace']('List','')){case'bulleted':return _0x3a713e(o(_0x5e18f7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a713e(o(_0x5e18f7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a713e(o(_0x5e18f7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x201404['commandName'])return{'type':'format','content':o(_0x5e18f7,'*Indent:*\x20%0',o(_0x5e18f7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x201404['commandName'])return{'type':'format','content':o(_0x5e18f7,'*Outdent:*\x20%0',o(_0x5e18f7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x201404['commandName'])return _0x201404['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e18f7,'*Check\x20item*')}:{'type':'format','content':o(_0x5e18f7,'*Uncheck\x20item*')};}function _0x3a713e(_0x338cd7){return{'type':'format','content':o(_0x5e18f7,'*Change\x20to:*\x20%0',_0x338cd7)};}});}}function Le(_0x30b9bd){const _0x18742e=_0x30b9bd['getAttribute']('listIndent');if(0x0==_0x18742e)return _0x30b9bd;let _0x403c15=_0x30b9bd;for(;_0x30b9bd['previousSibling']&&_0x30b9bd['previousSibling']['is']('element','listItem');){const _0x288c64=_0x30b9bd['previousSibling']['getAttribute']('listIndent');if(_0x288c64==_0x18742e)_0x403c15=_0x30b9bd['previousSibling'];else{if(_0x288c64<_0x18742e)break;}_0x30b9bd=_0x30b9bd['previousSibling'];}return _0x403c15;}function Ee(_0x5d5a08){const _0x5994d2=[];if(_0x5d5a08['is']('element','listItem')&&_0x5d5a08['getAttribute']('listIndent')>0x0){let _0x327670=_0x5d5a08['nextSibling'];for(;_0x327670&&'listItem'==_0x327670['name']&&_0x327670['getAttribute']('listIndent')==_0x5d5a08['getAttribute']('listIndent');)_0x5994d2['push'](_0x327670),_0x327670=_0x327670['nextSibling'];}return _0x5994d2;}class Q extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x25f5d7=this['editor']['config']['get']('list.properties'),_0x34346a=this['editor']['plugins']['get']('TrackChangesEditing');_0x25f5d7['styles']&&_0x34346a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x25f5d7['reversed']&&_0x34346a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x25f5d7['startIndex']&&_0x34346a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x34346a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x329dbf,_0x248601={}){const _0x55a4f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x572fd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x55a4f4['markMultiRangeBlockFormat'](_0x572fd4,{'commandName':'listStyle','commandParams':[{'type':_0x248601['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a08a3,_0xb58702={}){const _0x2ab5cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x189751=this['_getSuggestionBlocks'](_0x36cf50=>_0x36cf50['is']('element','listItem')&&'numbered'===_0x36cf50['getAttribute']('listType'));if(_0x189751['length']<0x1)return;const _0x57794e=_0x189751['map'](_0x2b3ab7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b3ab7,'before'),this['editor']['model']['createPositionAt'](_0x2b3ab7,0x0)));this['editor']['model']['change'](()=>{_0x2ab5cd['markMultiRangeBlockFormat'](_0x57794e,{'commandName':'listReversed','commandParams':[{'reversed':_0xb58702['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x19b3db,_0x466dbc={}){const _0x4bcdcb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b1724=this['_getSuggestionBlocks'](_0x3c10f0=>_0x3c10f0['is']('element','listItem')&&'numbered'===_0x3c10f0['getAttribute']('listType'));if(_0x1b1724['length']<0x1)return;const _0x5170e6=_0x1b1724['map'](_0x44b15e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44b15e,'before'),this['editor']['model']['createPositionAt'](_0x44b15e,0x0)));this['editor']['model']['change'](()=>{_0x4bcdcb['markMultiRangeBlockFormat'](_0x5170e6,{'commandName':'listStart','commandParams':[{'startIndex':_0x466dbc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x94435){if('formatBlock'!=_0x94435['type']&&'formatInline'!=_0x94435['type'])return;const _0x2868ec=this['editor']['locale'],{data:_0x1ffcff}=_0x94435;if(!_0x1ffcff)return;let _0x5ad60f,_0x4810af;switch(_0x1ffcff['commandName']){case'listStyle':_0x5ad60f='*Change\x20to:*\x20%0',_0x4810af={'type':'format','content':o(_0x2868ec,_0x5ad60f,o(_0x2868ec,this['_getTranslationKeyForListStyle'](_0x1ffcff['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ad60f=_0x1ffcff['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4810af={'type':'format','content':o(_0x2868ec,_0x5ad60f)};break;case'listStart':_0x5ad60f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4810af={'type':'format','content':o(_0x2868ec,_0x5ad60f,_0x1ffcff['commandParams'][0x0]['startIndex'])};}return _0x4810af;}['_getSuggestionBlocksForListStyle'](){const _0x24cc97=this['editor']['plugins']['get']('LegacyListUtils');let _0x136034=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x136034[0x0]?.['is']('element','listItem')&&_0x136034['unshift'](..._0x24cc97['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x136034[_0x136034['length']-0x1]?.['is']('element','listItem')&&_0x136034['push'](..._0x24cc97['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x136034=[...new Set(_0x136034)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x136034=_0x136034['filter'](_0x9d10fc=>_0x9d10fc['is']('element','listItem'))),_0x136034;}['_getSuggestionBlocks'](_0x2f0ff6){const _0x35c1c2=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b6f12=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2f0ff6)['map'](_0x2bd1a6=>{const _0x183904=this['editor']['model']['createPositionAt'](_0x2bd1a6,0x0);return[..._0x35c1c2['getSiblingNodes'](_0x183904,'backward'),..._0x35c1c2['getSiblingNodes'](_0x183904,'forward')];})['flat']();return _0x4b6f12=[...new Set(_0x4b6f12)],_0x4b6f12;}['_getTranslationKeyForListStyle'](_0xb11501){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb11501)||'default')['toUpperCase']()+'_LIST_'+_0xb11501['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x240e00{['afterInit'](){const _0x4e19ce=this['editor'];if(!_0x4e19ce['plugins']['has']('MediaEmbedEditing'))return;const _0x13b937=_0x4e19ce['plugins']['get']('TrackChangesEditing'),_0x5a11c0=_0x4e19ce['locale'];_0x13b937['enableCommand']('mediaEmbed'),_0x13b937['descriptionFactory']['registerElementLabel']('media',_0x358df9=>o(_0x5a11c0,'ELEMENT_MEDIA',_0x358df9)),_0x4e19ce['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b58d0,{writer:_0x36b93e,options:_0x4fe972})=>{if(_0x4fe972['showSuggestionHighlights'])return _0x36b93e['createEmptyElement']('div');},'converterPriority':'high'}),_0x4e19ce['data']['downcastDispatcher']['on']('attribute:url:media',(_0xee5041,_0x5b3ed7,_0x50c400)=>{_0x50c400['options']['showSuggestionHighlights']&&_0xee5041['stop']();},{'priority':'high'});}}class mt extends _0x240e00{['afterInit'](){const _0x40a43b=this['editor'];_0x40a43b['plugins']['has']('MentionEditing')&&_0x40a43b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x240e00{['afterInit'](){const _0x31054c=this['editor'];if(!_0x31054c['plugins']['has']('MergeFieldsEditing'))return;_0x31054c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x31054c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x6a53ac=_0x31054c['plugins']['get']('TrackChangesEditing'),_0x418ef3=_0x31054c['locale'];_0x6a53ac['descriptionFactory']['registerElementLabel']('mergeField',_0x230d0a=>o(_0x418ef3,'ELEMENT_MERGE_FIELD',_0x230d0a)),_0x6a53ac['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x322c2a=>o(_0x418ef3,'ELEMENT_MERGE_FIELD',_0x322c2a)),_0x6a53ac['descriptionFactory']['registerDescriptionCallback'](_0x18240e=>{if('insertion'!=_0x18240e['type']&&'deletion'!=_0x18240e['type'])return;const _0x8c2e25=_0x18240e['getContainedElement']();if(null==_0x8c2e25)return;if(!_0x8c2e25['is']('element','mergeField')&&!_0x8c2e25['is']('element','mergeFieldBlock'))return;const _0x4136fc=_0x31054c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x8c2e25['getAttribute']('id'));return'insertion'==_0x18240e['type']?{'type':'insertion','content':o(_0x418ef3,'*Insert:*\x20%0','\x22'+_0x4136fc+'\x22\x20'+o(_0x418ef3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x418ef3,'*Remove:*\x20%0','\x22'+_0x4136fc+'\x22\x20'+o(_0x418ef3,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x240e00{['afterInit'](){const _0x1d9855=this['editor'],_0x31c42a=_0x1d9855['plugins']['get']('TrackChangesEditing');_0x1d9855['plugins']['has']('MultiLevelList')&&(_0x31c42a['enableDefaultAttributesIntegration']('multiLevelList'),_0x31c42a['registerBlockAttribute']('listMarkerStyle'),_0x31c42a['descriptionFactory']['registerDescriptionCallback'](_0x2407ff=>this['handleDescriptions'](_0x2407ff)));}['handleDescriptions'](_0x46bd63){const _0x39745c=this['editor']['locale'],{data:_0x165c97}=_0x46bd63,_0x226931={'type':'format','content':''};if(_0x165c97&&'listMarkerStyle'==_0x165c97['key']){if(!_0x165c97['oldValue'])return{'type':'format','content':o(_0x39745c,'*Set\x20format:*\x20%0',o(_0x39745c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165c97['newValue']+')'};if(!_0x165c97['newValue']){let _0x5e7166=_0x46bd63['head'];for(;_0x5e7166;){if(_0x5e7166['data']&&'listType'==_0x5e7166['data']['key']&&_0x5e7166['data']['newValue'])return _0x226931;_0x5e7166=_0x5e7166['next'];}return{'type':'format','content':o(_0x39745c,'*Remove\x20format:*\x20%0',o(_0x39745c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165c97['oldValue']+')'};}}}}class kt extends _0x240e00{['afterInit'](){const _0x3a2237=this['editor'];if(!_0x3a2237['plugins']['has']('PageBreakEditing'))return;_0x3a2237['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x13ce67=_0x3a2237['plugins']['get']('TrackChangesEditing'),_0x21b7ee=_0x3a2237['locale'];_0x13ce67['descriptionFactory']['registerElementLabel']('pageBreak',_0x33d766=>o(_0x21b7ee,'ELEMENT_PAGE_BREAK',_0x33d766));}}class bt extends _0x240e00{['afterInit'](){const _0x1d2479=this['editor'];if(!_0x1d2479['plugins']['has']('Paragraph'))return;const _0x2e4312=_0x1d2479['locale'],_0x2e7842=_0x1d2479['plugins']['get']('TrackChangesEditing');_0x2e7842['descriptionFactory']['registerElementLabel']('paragraph',_0x4ae177=>o(_0x2e4312,'ELEMENT_PARAGRAPH',_0x4ae177)),_0x2e7842['enableDefaultAttributesIntegration']('paragraph'),_0x2e7842['enableCommand']('insertParagraph'),_0x1d2479['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d2479),{'priority':'highest'}),_0x1d2479['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x398e82,_0x43c445,_0x28f359)=>{_0x28f359['options']['showSuggestionHighlights']&&nr(_0x1d2479,{'showActiveMarker':!0x1})(_0x398e82,_0x43c445,_0x28f359);},{'priority':'highest'});const _0x1058b9=_0x2e7842['descriptionFactory'];_0x1058b9['registerDescriptionCallback'](_0x2a64fe=>{if('insertion'!==_0x2a64fe['type'])return;const {start:_0x1242f0,end:_0x1de965}=_0x2a64fe['getFirstRange']();if(!_0x1242f0['isTouching'](_0x1de965)||!_0x1242f0['nodeAfter'])return;const _0x203291=_0x1d2479['model']['schema'],_0x438607=_0x1242f0['nodeAfter'];return _0x203291['isBlock'](_0x438607)&&!_0x203291['isLimit'](_0x438607)&&_0x203291['checkChild'](_0x438607,'$text')?{'type':'insertion','content':o(_0x2e4312,'*Insert:*\x20%0',_0x1058b9['getItemLabel'](_0x438607,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x596c90=this['editor'],_0x172f92=_0x596c90['locale'];_0x596c90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334cf7=>{if('formatBlock'!=_0x334cf7['type'])return;const {data:_0xcd5d40}=_0x334cf7;return _0xcd5d40&&'paragraph'==_0xcd5d40['commandName']?{'type':'format','content':o(_0x172f92,'*Change\x20to:*\x20%0',o(_0x172f92,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x58cbb6,{showActiveMarker:_0x1734e9=!0x0}={}){return(_0x3906e5,_0x25fe62,_0x43b12d)=>{const _0x3794a1=_0x58cbb6['plugins']['get']('TrackChangesEditing'),_0x30d6d1=_0x25fe62['markerRange']['start'],_0x75dc7e=_0x25fe62['markerRange']['end'],_0x24c631=_0x58cbb6['model']['schema'];if(!_0x30d6d1['isTouching'](_0x75dc7e)||!_0x30d6d1['nodeAfter'])return;const _0x23bd84=_0x30d6d1['nodeAfter'];if(_0x24c631['isBlock'](_0x23bd84)&&!_0x24c631['isLimit'](_0x23bd84)&&_0x24c631['checkChild'](_0x23bd84,'$text')){if(!_0x43b12d['consumable']['consume'](_0x25fe62['markerRange'],_0x3906e5['name']))return;const {authorId:_0x2f1bbc}=_0x3794a1['_splitMarkerName'](_0x25fe62['markerName']),_0x3c6c16=_0x43b12d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2f1bbc}),_0x4838d3=_0x43b12d['mapper']['toViewPosition'](_0x75dc7e);_0x1734e9&&_0x3794a1['activeMarkers']['includes'](_0x25fe62['markerName'])&&_0x43b12d['writer']['addClass']('ck-suggestion-marker--active',_0x3c6c16),_0x43b12d['writer']['insert'](_0x4838d3,_0x3c6c16),_0x43b12d['mapper']['bindElementToMarker'](_0x3c6c16,_0x25fe62['markerName']);}};}class yt extends _0x240e00{['afterInit'](){const _0x4417a2=this['editor'];if(!_0x4417a2['plugins']['has']('RemoveFormatEditing'))return;_0x4417a2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d4618=this['editor'];_0x1d4618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221ede=>{if('formatBlock'!=_0x221ede['type']&&'formatInline'!=_0x221ede['type'])return;const {data:_0x4212f9}=_0x221ede;return _0x4212f9&&'removeFormat'==_0x4212f9['commandName']?{'type':'format','content':o(_0x1d4618['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x240e00{['afterInit'](){const _0x31c960=this['editor'];if(!_0x31c960['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x537688=_0x31c960['plugins']['get']('TrackChangesEditing');_0x537688['enableCommand']('goToPreviousRestrictedEditingException'),_0x537688['enableCommand']('goToNextRestrictedEditingException');const _0x15ed7c=_0x31c960['plugins']['get']('RestrictedEditingModeEditing');_0x15ed7c['enableCommand']('trackChanges'),_0x15ed7c['enableCommand']('acceptSuggestion'),_0x15ed7c['enableCommand']('discardSuggestion'),_0x15ed7c['enableCommand']('acceptAllSuggestions'),_0x15ed7c['enableCommand']('discardAllSuggestions'),_0x15ed7c['enableCommand']('acceptSelectedSuggestions'),_0x15ed7c['enableCommand']('discardSelectedSuggestions');}}class St extends _0x240e00{static get['requires'](){return[_0x530e8f];}['init'](){const _0x1dad4c=this['editor'],_0x3c9390=_0x1dad4c['plugins']['get']('TrackChangesEditing');_0x3c9390['enableCommand']('shiftEnter'),_0x1dad4c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1dad4c),{'priority':'high'}),_0x1dad4c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1dad4c),{'priority':'high'}),_0x1dad4c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x359297,_0x5d6e5d,_0x3217ab)=>{_0x3217ab['options']['showSuggestionHighlights']&&ke(_0x1dad4c,{'showActiveMarker':!0x1})(_0x359297,_0x5d6e5d,_0x3217ab);}),_0x3c9390['descriptionFactory']['registerElementLabel']('softBreak',_0x44f536=>o(_0x1dad4c['locale'],'ELEMENT_LINE_BREAK',_0x44f536));}}function ke(_0x22c48d,{showActiveMarker:_0x4777db=!0x0}={}){return(_0x377349,_0x298950,_0x187ebb)=>{const _0x2db5e3=_0x22c48d['plugins']['get']('TrackChangesEditing');if(!_0x187ebb['consumable']['test'](_0x298950['markerRange'],_0x377349['name']))return;const _0x256e25=_0x22c48d['model'];for(const _0x2d08b0 of _0x298950['markerRange']['getItems']()){if(!_0x2d08b0['is']('element','softBreak'))continue;const _0x403f5c='deletion'==_0x298950['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3d30bd}=_0x2db5e3['_splitMarkerName'](_0x298950['markerName']),_0x1f9f07=_0x187ebb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x403f5c,'data-author-id':_0x3d30bd}),_0xc77c4d=_0x187ebb['mapper']['toViewPosition'](_0x256e25['createPositionBefore'](_0x2d08b0));_0x4777db&&_0x2db5e3['activeMarkers']['includes'](_0x298950['markerName'])&&_0x187ebb['writer']['addClass']('ck-suggestion-marker--active',_0x1f9f07),_0x187ebb['writer']['insert'](_0xc77c4d,_0x1f9f07),_0x187ebb['mapper']['bindElementToMarker'](_0x1f9f07,_0x298950['markerName']);}};}class At extends _0x240e00{['afterInit'](){const _0x415f8c=this['editor'],_0x7da7e4=_0x415f8c['model'],_0x5632e1=_0x415f8c['locale'];if(!_0x415f8c['plugins']['has']('StandardEditingModeEditing'))return;const _0x543109=_0x415f8c['plugins']['get']('TrackChangesEditing'),_0x3b68e2='restrictedEditingException',_0x466dac=_0x415f8c['commands']['get'](_0x3b68e2);_0x543109['enableCommand'](_0x3b68e2,(_0x335cbb,_0x394e57={})=>{const _0x5a77e6=_0x7da7e4['document']['selection'];if(_0x5a77e6['isCollapsed'])return void _0x335cbb(_0x394e57);const _0x5f6f5f=void 0x0!==_0x394e57['forceValue']?_0x394e57['forceValue']:!_0x466dac['value'];_0x7da7e4['change'](()=>{const _0x20d862=Array['from'](_0x5a77e6['getRanges']());for(const _0x5ff7f6 of _0x20d862){const _0x7d6d4d=_0x5f6f5f?[_0x5ff7f6]:io(_0x3b68e2,_0x5ff7f6,_0x7da7e4);for(const _0x70dce1 of _0x7d6d4d)_0x543109['markInlineFormat'](_0x70dce1,{'commandName':_0x3b68e2,'commandParams':[{'forceValue':_0x5f6f5f}]});}});}),_0x543109['descriptionFactory']['registerDescriptionCallback'](_0x24933e=>{if('formatBlock'!=_0x24933e['type']&&'formatInline'!=_0x24933e['type'])return;const {data:_0x1730c0}=_0x24933e;return _0x1730c0&&_0x1730c0['commandName']==_0x3b68e2?_0x1730c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5632e1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5632e1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x240e00{['afterInit'](){const _0x5a4a63=this['editor'];if(!_0x5a4a63['plugins']['has']('Style')||!_0x5a4a63['plugins']['has']('DataSchema'))return;const _0x577a0e=_0x5a4a63['plugins']['get']('TrackChangesEditing'),_0x24daac=_0x5a4a63['locale'],_0x1bd75a=_0x5a4a63['config']['get']('style')||{},_0x586dee=_0x5a4a63['plugins']['get']('GeneralHtmlSupport'),_0x223384=_0x5a4a63['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5a4a63['plugins']['get']('DataSchema'),_0x1bd75a['definitions']);_0x577a0e['enableDefaultAttributesIntegration']('style');const _0x137fb5=new Set();for(const _0x489f82 of _0x223384['block']){const _0x4d120c=_0x586dee['getGhsAttributeNameForElement'](_0x489f82['element']);_0x137fb5['add'](_0x4d120c);}const _0x2d0cf2=new Set();for(const _0x5c6626 of _0x223384['inline']){const _0x2377d1=_0x586dee['getGhsAttributeNameForElement'](_0x5c6626['element']);_0x2d0cf2['add'](_0x2377d1);for(const _0x20373f of _0x5c6626['ghsAttributes'])_0x2d0cf2['add'](_0x20373f);}for(const _0x4a3c46 of _0x137fb5)_0x577a0e['registerBlockAttribute'](_0x4a3c46),_0x577a0e['descriptionFactory']['registerAttributeLabel'](_0x4a3c46,o(_0x24daac,'FORMAT_STYLE'));for(const _0x427098 of _0x2d0cf2)_0x577a0e['registerInlineAttribute'](_0x427098),_0x577a0e['descriptionFactory']['registerAttributeLabel'](_0x427098,o(_0x24daac,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x338c9e=this['editor'],_0x5d383c=_0x338c9e['locale'];_0x338c9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eaa0e=>{if('formatBlock'!=_0x4eaa0e['type']&&'formatInline'!=_0x4eaa0e['type'])return;const {data:_0x48b2b7}=_0x4eaa0e;return _0x48b2b7&&'style'===_0x48b2b7['commandName']?_0x48b2b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d383c,'*Set\x20format:*\x20%0',_0x48b2b7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5d383c,'*Remove\x20format:*\x20%0',_0x48b2b7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x240e00{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x57d6f6){super(_0x57d6f6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c4eb8=this['editor'],_0x4b14de=_0x3c4eb8['model']['document']['selection'];if(!_0x3c4eb8['plugins']['has']('TableEditing'))return;const _0x54ed3e=_0x3c4eb8['locale'],_0x465d13=_0x3c4eb8['plugins']['get']('TrackChangesEditing'),_0x4889db=_0x3c4eb8['plugins']['get']('TableUtils');_0x465d13['descriptionFactory']['registerElementLabel']('table',_0xa94ec7=>o(_0x54ed3e,'ELEMENT_TABLE',_0xa94ec7)),this['_setupColumnsRowsFixing'](),_0x465d13['enableCommand']('insertTable'),_0x465d13['enableCommand']('selectTableRow'),_0x465d13['enableCommand']('selectTableColumn');for(const _0x20683c of['insertTableRowAbove','insertTableRowBelow']){const _0x54c9b6=_0x3c4eb8['commands']['get'](_0x20683c);_0x465d13['enableCommand'](_0x20683c,_0x506929=>{_0x3c4eb8['model']['change'](_0x421e16=>{_0x506929();const _0x3d3fdc='above'===_0x54c9b6['order'],_0x51c463=_0x4889db['getSelectionAffectedTableCells'](_0x4b14de),_0x4071c1=_0x4889db['getRowIndexes'](_0x51c463),_0x5b2cfb=_0x3d3fdc?_0x4071c1['first']-0x1:_0x4071c1['last']+0x1,_0x2eccc2=_0x51c463[0x0]['findAncestor']('table'),_0x17b170=_0x4889db['createTableWalker'](_0x2eccc2,{'startRow':_0x5b2cfb,'endRow':_0x5b2cfb}),_0x589ab9=Array['from'](_0x17b170)['map'](_0x2fe498=>_0x421e16['createRangeOn'](_0x2fe498['cell']));_0x465d13['markMultiRangeInsertion'](_0x589ab9,'tableRow');});});}for(const _0x2f97f4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4be675=_0x3c4eb8['commands']['get'](_0x2f97f4);_0x465d13['enableCommand'](_0x2f97f4,_0x180cb4=>{_0x3c4eb8['model']['change'](_0x4ecfb8=>{_0x180cb4();const _0x128c4b='left'===_0x4be675['order'],_0x21007f=_0x4889db['getSelectionAffectedTableCells'](_0x4b14de),_0x3c26b1=_0x4889db['getColumnIndexes'](_0x21007f),_0x174865=_0x128c4b?_0x3c26b1['first']-0x1:_0x3c26b1['last']+0x1,_0x411b52=_0x21007f[0x0]['findAncestor']('table'),_0x5b5230=_0x4889db['createTableWalker'](_0x411b52,{'startRow':0x0,'column':_0x174865,'includeAllSlots':!0x1}),_0x7115e7=Array['from'](_0x5b5230)['map'](_0x3bbcd1=>_0x4ecfb8['createRangeOn'](_0x3bbcd1['cell']));_0x465d13['markMultiRangeInsertion'](_0x7115e7,'tableColumn');});});}for(const _0x14e452 of['removeTableRow','removeTableColumn']){const _0x554b2f=_0x14e452['substr'](0xb),_0x40e5c0=_0x554b2f['toLowerCase'](),_0x220914=_0x40e5c0['substr'](0x0,0x3)+'span',_0x4b30b0='table'+_0x554b2f,_0x377fd9='min'+_0x554b2f,_0x840168='max'+_0x554b2f;_0x465d13['enableCommand'](_0x14e452,()=>{_0x3c4eb8['model']['change'](_0x53bb09=>{const _0x1f2c2f=_0x4889db['getSelectionAffectedTableCells'](_0x4b14de),_0x2d640f=_0x1f2c2f[0x0]['findAncestor']('table');let _0x223217;if('removeTableRow'==_0x14e452){const _0x37a8ce=_0x4889db['getRowIndexes'](_0x1f2c2f);_0x223217={'startRow':_0x37a8ce['first'],'endRow':_0x37a8ce['last'],'includeAllSlots':!0x0};}else{const _0x198a60=_0x4889db['getColumnIndexes'](_0x1f2c2f);_0x223217={'startColumn':_0x198a60['first'],'endColumn':_0x198a60['last'],'includeAllSlots':!0x0};}const _0xf4ae65=_0x4889db['createTableWalker'](_0x2d640f,_0x223217),_0x5ac13a=Array['from'](_0xf4ae65)['map'](({cell:_0x16e276})=>_0x16e276),_0x6ad4ac=Re(_0x5ac13a['filter'](_0x2fbd46=>_0x2fbd46['hasAttribute'](_0x220914))),_0x507c7f=Re(_0x5ac13a['filter'](_0x4eb492=>!_0x4eb492['hasAttribute'](_0x220914)))['map'](_0x6f3fe8=>_0x53bb09['createRangeOn'](_0x6f3fe8)),_0x2d90f0=_0x465d13['markMultiRangeDeletion'](_0x507c7f,_0x4b30b0);if(_0x2d90f0&&('tableRow'==_0x2d90f0['subType']||'tableColumn'==_0x2d90f0['subType'])){const _0x84a98a=this['_getSuggestionCoords'](_0x2d90f0);for(const _0x4eec14 of _0x6ad4ac){const _0x48057a=_0x53bb09['createRangeOn'](_0x4eec14),_0x425a32=_0x4889db['getCellLocation'](_0x4eec14),_0xf62b0d=_0x4eec14['getAttribute'](_0x220914)-0x1,_0x59b7bb=_0x84a98a[_0x377fd9],_0x43cc7e=_0x84a98a[_0x840168];_0x59b7bb<=_0x425a32[_0x40e5c0]&&_0x425a32[_0x40e5c0]+_0xf62b0d<=_0x43cc7e&&_0x2d90f0['addRange'](_0x48057a);}}});});}function _0x2f6440(_0x9328e4){const _0x2f5971=Array['from'](_0x4b14de['getRanges']())['map'](_0x3489e9=>_0x23d2d0['fromRange'](_0x3489e9));_0x3c4eb8['model']['change'](_0x2ee44c=>{const _0x149a21=_0x2ee44c['batch'];_0x9328e4=_0x9328e4['filter'](_0x568cfd=>'$graveyard'!=_0x568cfd['root']['rootName']),_0x2ee44c['setSelection'](_0x9328e4),_0x3c4eb8['commands']['get']('removeTableRow')['refresh'](),_0x3c4eb8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c4eb8['model']['enqueueChange'](()=>{_0x3c4eb8['model']['enqueueChange'](_0x149a21,_0x590a58=>{const _0x5e92ce=_0x2f5971['filter'](_0xdd04fb=>'$graveyard'!=_0xdd04fb['root']['rootName']);_0x5e92ce['length']>0x0&&_0x590a58['setSelection'](_0x5e92ce);for(const _0x44622b of _0x2f5971)_0x44622b['detach']();});});});}function _0x404708(_0x4933c8){_0x3c4eb8['model']['change'](_0x4aa2b8=>{const _0x156a68=Array['from'](_0x4b14de['getRanges']())['map'](_0x2c1ee4=>_0x23d2d0['fromRange'](_0x2c1ee4)),_0x4d0ecb=[];for(const _0x23fb69 of _0x4933c8)for(const _0x4a8c08 of _0x23fb69['getItems']({'shallow':!0x0}))_0x4d0ecb['push'](_0x4a8c08);for(const _0x4739c5 of _0x4d0ecb)'$graveyard'!=_0x4739c5['root']['rootName']&&(_0x4aa2b8['setSelection'](_0x4aa2b8['createPositionAt'](_0x4739c5,0x0)),_0x3c4eb8['commands']['get']('removeTableColumn')['refresh'](),_0x3c4eb8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1af8aa=_0x156a68['filter'](_0x20cc87=>'$graveyard'!=_0x20cc87['root']['rootName']);_0x1af8aa['length']>0x0&&_0x4aa2b8['setSelection'](_0x1af8aa);for(const _0x5a9fa7 of _0x156a68)_0x5a9fa7['detach']();});}function _0x2fc9d7(_0x2cd51a,_0x59e7a1){return _0x59e7a1['every'](_0x3aaba9=>_0x2cd51a['some'](_0x388735=>_0x388735['end']['isEqual'](_0x3aaba9['start'])||_0x3aaba9['end']['isEqual'](_0x388735['start'])));}function _0xd71b6c(_0x1c15e4,_0x1b340e){return!_0x1c15e4['some'](_0x53f0b8=>_0x1b340e['some'](_0x1c5e1e=>_0x53f0b8['isIntersecting'](_0x1c5e1e)))&&_0x1c15e4['some'](_0x54302b=>_0x1b340e['some'](_0x3aedbb=>_0x54302b['end']['isTouching'](_0x3aedbb['start'])));}_0x3c4eb8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a08a9,_0x4b3293,_0x28173d)=>{if(!_0x28173d['options']['showSuggestionHighlights'])return;const _0x490488=_0x4b3293['item'];if(!_0x490488)return;const _0xc825d0=_0x28173d['mapper']['toViewElement'](_0x490488);function _0x447e68(_0x2992f8){return Array['isArray'](_0x2992f8)?_0x2992f8:[_0x2992f8];}_0xc825d0&&'tableCell'===_0x490488['name']&&_0xddccc1(_0xc825d0,_0x28173d['writer'],(_0x12fb2b,_0x12384b,_0x43f5ff)=>_0x43f5ff['addClass'](_0x447e68(_0x12384b['classes']),_0x12fb2b),(_0x592d56,_0x352020,_0x211937)=>_0x211937['removeClass'](_0x447e68(_0x352020['classes']),_0x592d56));},{'priority':'highest'}),_0x465d13['descriptionFactory']['registerDescriptionCallback'](_0x381f51=>{if('insertion'!=_0x381f51['type']&&'deletion'!=_0x381f51['type'])return;const _0x3a42b1=_0x381f51['getContainedElement']();if(null!=_0x3a42b1&&_0x3a42b1['is']('element','table')){if('insertion'==_0x381f51['type']){const _0xfbd761=_0x381f51['getItems']()['filter'](_0x366f52=>_0x366f52['is']('$textProxy'))['map'](_0x17da8f=>_0x17da8f['data']);if(_0xfbd761['length'])return{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xfbd761['join']('\x20')+'\x22'))};}if('deletion'==_0x381f51['type']){const _0x409273=_0x381f51['getItems']()['filter'](_0x296232=>_0x296232['is']('$textProxy'))['map'](_0x1af05e=>_0x1af05e['data']);if(_0x409273['length'])return{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x409273['join']('\x20')+'\x22'))};}}}),_0x465d13['descriptionFactory']['registerDescriptionCallback'](_0x30bbd5=>{if('tableRow'==_0x30bbd5['subType']){const _0x268c4f=_0x30bbd5['getItems']()['filter'](_0x2540db=>_0x2540db['is']('$textProxy'))['map'](_0x3cae40=>_0x3cae40['data']),_0xa8cfd2=this['_getSuggestionCoords'](_0x30bbd5),_0x38809e=_0xa8cfd2['maxRow']-_0xa8cfd2['minRow']+0x1;if('insertion'==_0x30bbd5['type'])return _0x268c4f['length']?{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38809e,'\x22'+_0x268c4f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW',_0x38809e))};if('deletion'==_0x30bbd5['type'])return _0x268c4f['length']?{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38809e,'\x22'+_0x268c4f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW',_0x38809e))};}if('tableColumn'==_0x30bbd5['subType']){const _0x48627c=_0x30bbd5['getItems']()['filter'](_0x4e09de=>_0x4e09de['is']('$textProxy'))['map'](_0x2a182d=>_0x2a182d['data']),_0x33647a=this['_getSuggestionCoords'](_0x30bbd5),_0x3fdbd5=_0x33647a['maxColumn']-_0x33647a['minColumn']+0x1;if('insertion'==_0x30bbd5['type'])return _0x48627c['length']?{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fdbd5,'\x22'+_0x48627c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN',_0x3fdbd5))};if('deletion'==_0x30bbd5['type'])return _0x48627c['length']?{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fdbd5,'\x22'+_0x48627c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN',_0x3fdbd5))};}}),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2f6440),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2f6440),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x404708),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x404708),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2fc9d7),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2fc9d7),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd71b6c),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd71b6c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x277a9e=this['editor'],_0x5db280=_0x277a9e['model']['document']['selection'];return(_0x13a48c,_0x238672)=>{_0x277a9e['model']['change'](_0x3b84e7=>{const {commandName:_0x41d7f9,commandParams:_0x1ce558}=_0x238672;let _0x26b1bc=_0x13a48c[0x0]['end']['nodeBefore'];_0x1ce558&&_0x1ce558[0x0]&&!0x1===_0x1ce558[0x0]['forceValue']&&(_0x26b1bc=_0x13a48c[0x0]['start']['nodeAfter']);const _0x3f0f29=_0x3b84e7['createRangeIn'](_0x26b1bc);if('$graveyard'==_0x3f0f29['root']['rootName'])return;const _0x1c93dd=Array['from'](_0x5db280['getRanges']())['map'](_0x596d00=>_0x23d2d0['fromRange'](_0x596d00));_0x3b84e7['setSelection'](_0x3f0f29),_0x277a9e['commands']['get'](_0x41d7f9)['refresh'](),_0x1ce558['push']({'forceDefaultExecution':!0x0}),_0x277a9e['execute'](_0x41d7f9,..._0x1ce558);const _0x4542ec=_0x1c93dd['filter'](_0x3e83d1=>'$graveyard'!=_0x3e83d1['root']['rootName']);_0x4542ec['length']>0x0&&_0x3b84e7['setSelection'](_0x4542ec);for(const _0x2e0197 of _0x1c93dd)_0x2e0197['detach']();});};}['_getCoordsForCells'](_0x59cd26){const _0x3815ef=this['editor']['plugins']['get']('TableUtils');let _0x36864c=Number['MAX_SAFE_INTEGER'],_0x3275da=Number['MIN_SAFE_INTEGER'],_0x299d01=Number['MAX_SAFE_INTEGER'],_0xcd6d65=Number['MIN_SAFE_INTEGER'];for(const _0x485912 of _0x59cd26){if('$graveyard'==_0x485912['root']['rootName'])continue;const {row:_0x1a0e58,column:_0x181a7b}=_0x3815ef['getCellLocation'](_0x485912),_0x52169b=_0x485912['hasAttribute']('rowspan')?_0x485912['getAttribute']('rowspan')-0x1:0x0,_0x24b4bd=_0x485912['hasAttribute']('colspan')?_0x485912['getAttribute']('colspan')-0x1:0x0;_0x36864c=_0x1a0e58<_0x36864c?_0x1a0e58:_0x36864c,_0x3275da=_0x1a0e58+_0x52169b>_0x3275da?_0x1a0e58+_0x52169b:_0x3275da,_0x299d01=_0x181a7b<_0x299d01?_0x181a7b:_0x299d01,_0xcd6d65=_0x181a7b+_0x24b4bd>_0xcd6d65?_0x181a7b+_0x24b4bd:_0xcd6d65;}return{'minRow':_0x36864c,'maxRow':_0x3275da,'minColumn':_0x299d01,'maxColumn':_0xcd6d65};}['_setupColumnsRowsFixing'](){const _0x3bc95d=this['editor'],_0x866192=_0x3bc95d['plugins']['get']('TrackChangesEditing'),_0x374685=_0x3bc95d['plugins']['get']('TableUtils');_0x3bc95d['model']['document']['on']('change:data',()=>{const _0x38bb6e=Array['from'](_0x3bc95d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x105e73,data:_0x6465d9}of _0x38bb6e){const {group:_0x1694be,id:_0x23bbbb,subType:_0x2c254d}=_0x866192['_splitMarkerName'](_0x105e73);if('suggestion'!=_0x1694be)continue;if(null!=_0x6465d9['oldRange'])continue;const _0x36b005=_0x866192['getSuggestion'](_0x23bbbb);this['_tablePostFixingSubtypes']['includes'](_0x2c254d)&&this['_tableSuggestions']['add'](_0x36b005);}},{'priority':'low'});const _0x16d053=(_0x436850,_0x30ada5)=>{let _0x50c4b5=!0x1;const _0x5e3616=_0x30ada5['createRangeOn'](_0x436850),_0x550936=_0x436850['findAncestor']('table'),_0x3732a5=_0x374685['getCellLocation'](_0x436850);for(const _0x40cd7b of this['_tableSuggestions']){const _0x2de285=_0x40cd7b['subType'],_0x187092=_0x2de285['startsWith']('tablePaste'),_0x3a800e=_0x2de285['substr'](_0x187092?0xa:0x5),_0x418c98=_0x3a800e['toLowerCase'](),_0x1e30f9=_0x418c98['substr'](0x0,0x3)+'span',_0x4ed798='min'+_0x3a800e,_0x7c6a0f='max'+_0x3a800e;if(!_0x40cd7b['isInContent'])continue;if(_0x550936!=_0x40cd7b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x40cd7b['isIntersectingWithRange'](_0x5e3616))continue;const _0x4d36fa=_0x436850['hasAttribute'](_0x1e30f9)?_0x436850['getAttribute'](_0x1e30f9)-0x1:0x0,_0x155e01=this['_getSuggestionCoords'](_0x40cd7b),_0x222d6a=_0x155e01[_0x4ed798],_0x37f95b=_0x155e01[_0x7c6a0f];_0x222d6a<=_0x3732a5[_0x418c98]&&_0x3732a5[_0x418c98]+_0x4d36fa<=_0x37f95b&&(_0x40cd7b['addRange'](_0x5e3616),_0x50c4b5=!0x0);}return _0x50c4b5;};_0x3bc95d['model']['document']['registerPostFixer'](_0x4234a6=>{let _0x39c7fa=!0x1;for(const _0x224b60 of _0x3bc95d['model']['document']['differ']['getChanges']())if('insert'==_0x224b60['type']){if('tableRow'==_0x224b60['name']){for(const _0xe81c7 of _0x224b60['position']['nodeAfter']['getChildren']())_0x39c7fa=_0x39c7fa||_0x16d053(_0xe81c7,_0x4234a6);}else'tableCell'==_0x224b60['name']&&(_0x39c7fa=_0x39c7fa||_0x16d053(_0x224b60['position']['nodeAfter'],_0x4234a6));}return _0x39c7fa;});}['_getSuggestionCoords'](_0x49786b){return this['_getCoordsForCells'](_0x49786b['getRanges']()['map'](_0xb2a57e=>_0xb2a57e['start']['nodeAfter']));}}function Re(_0x57e87f){return Array['from'](new Set(_0x57e87f)['values']());}class _t extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x2a7d98=this['editor'],_0x2e6f73=_0x2a7d98['model']['document']['selection'],_0x2dc4f7=_0x2a7d98['locale'];if(!_0x2a7d98['plugins']['has']('TableEditing'))return;const _0x3b5d8c=_0x2a7d98['plugins']['get']('TrackChangesEditing'),_0x25bd37=_0x2a7d98['plugins']['get']('TableUtils'),_0x98804f=_0x2a7d98['plugins']['get'](vt);_0x98804f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3b5d8c['enableCommand']('mergeTableCells',()=>{const _0x3e21b4=_0x25bd37['getSelectionAffectedTableCells'](_0x2a7d98['model']['document']['selection']);_0x2a7d98['model']['change'](()=>{_0x3b5d8c['markMultiRangeBlockFormat'](_0x3e21b4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a7d98['commands']['get']('mergeTableCells')['on']('execute',(_0x1323e5,_0x114bc0)=>{_0x2a7d98['commands']['get']('trackChanges')['value']&&(_0x114bc0['length']>0x0&&_0x114bc0[_0x114bc0['length']-0x1]&&_0x114bc0[_0x114bc0['length']-0x1]['forceDefaultExecution']||_0x3b5d8c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1323e5['stop']());},{'priority':'highest'});for(const _0x16c3d6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4241f9=_0x2a7d98['commands']['get'](_0x16c3d6);_0x3b5d8c['enableCommand'](_0x16c3d6,()=>{const _0x2bc2c4=_0x2a7d98['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4515b3=>_0x4515b3['is']('element','tableCell')),_0x164e36=_0x4241f9['value'];_0x2a7d98['model']['change'](()=>{_0x3b5d8c['markMultiRangeBlockFormat']([_0x2bc2c4,_0x164e36],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x49b5f8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xba21af=_0x2a7d98['commands']['get'](_0x49b5f8);_0x3b5d8c['enableCommand'](_0x49b5f8,()=>{const _0x1cdd22=_0x25bd37['getSelectionAffectedTableCells'](_0x2a7d98['model']['document']['selection'])[0x0],_0x165810=_0x1cdd22['findAncestor']('table'),{column:_0x275014,row:_0x1b835d}=_0x25bd37['getCellLocation'](_0x1cdd22);let _0x82a1ff=[];if('horizontally'==_0xba21af['direction']){const _0x1e1726=_0x25bd37['createTableWalker'](_0x165810,{'startRow':_0x1b835d,'endRow':_0x1b835d,'includeAllSlots':!0x0});_0x82a1ff=Array['from'](_0x1e1726)['map'](_0x3c079f=>_0x3c079f['cell']);}else{const _0x4b7456=_0x25bd37['createTableWalker'](_0x165810,{'column':_0x275014,'includeAllSlots':!0x0});_0x82a1ff=Array['from'](_0x4b7456)['map'](_0x4f4940=>_0x4f4940['cell']);}_0x2a7d98['model']['change'](_0x39b517=>{_0x3b5d8c['markBlockFormat'](_0x39b517['createRangeOn'](_0x1cdd22),{'commandName':_0x49b5f8,'commandParams':[]},_0x82a1ff,_0x49b5f8);});});}_0x3b5d8c['descriptionFactory']['registerDescriptionCallback'](_0x321bd4=>{if('formatBlock'!=_0x321bd4['type']&&'formatInline'!=_0x321bd4['type'])return;const {data:_0x44ed15}=_0x321bd4;return _0x44ed15&&'mergeTableCells'==_0x44ed15['commandName']?{'type':'format','content':o(_0x2dc4f7,'*Merge\x20cells*')}:void 0x0;}),_0x3b5d8c['descriptionFactory']['registerDescriptionCallback'](_0x5f4110=>{if('formatBlock'!=_0x5f4110['type']&&'formatInline'!=_0x5f4110['type'])return;const {data:_0x11ff79}=_0x5f4110;return _0x11ff79?'splitTableCellVertically'==_0x11ff79['commandName']?{'type':'format','content':o(_0x2dc4f7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x11ff79['commandName']?{'type':'format','content':o(_0x2dc4f7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x238d64=_0x98804f['_acceptFormatSuggestionCallbackFactory']();for(const _0x1398b0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3b5d8c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1398b0,'accept',_0x238d64);for(const _0x4b866c of['splitTableCellVertically','splitTableCellHorizontally'])_0x3b5d8c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b866c,'accept',_0x238d64);_0x3b5d8c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45b39e=>{_0x2a7d98['model']['change'](_0x4312bb=>{const _0x4a7160=Array['from'](_0x2e6f73['getRanges']())['map'](_0x1db8fc=>_0x23d2d0['fromRange'](_0x1db8fc));_0x4312bb['setSelection'](_0x45b39e),_0x2a7d98['commands']['get']('mergeTableCells')['refresh'](),_0x2a7d98['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x32d2bc=_0x4a7160['filter'](_0x493678=>'$graveyard'!=_0x493678['root']['rootName']);_0x32d2bc['length']>0x0&&_0x4312bb['setSelection'](_0x32d2bc);for(const _0x54ea76 of _0x4a7160)_0x54ea76['detach']();});});for(const _0x1e3c65 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5140b4=_0x2a7d98['commands']['get'](_0x1e3c65);_0x5140b4['on']('set:isEnabled',(_0x1d1cad,_0x4d1e3b,_0x149bc6)=>{if(_0x149bc6){const _0x11c33b=_0x2a7d98['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d2eef=>_0x4d2eef['is']('element','tableCell'));this['_areMergableCells'](_0x5140b4['value'],_0x11c33b)||(_0x1d1cad['return']=!0x1,_0x1d1cad['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x568207=this['editor']['commands']['get']('mergeTableCells'),_0x4694e8=this['editor']['plugins']['get']('TableUtils');if(!_0x568207['isEnabled'])return!0x1;const _0x37f71e=_0x4694e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x105130 of _0x37f71e)for(const _0x1eaf78 of _0x37f71e)if(_0x105130!=_0x1eaf78&&!this['_areMergableCells'](_0x105130,_0x1eaf78))return!0x1;return!0x0;}['_areMergableCells'](_0x465ee9,_0x2dff49){const _0x25d137=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20dada=this['editor']['model']['createRangeOn'](_0x465ee9),_0xcf22c5=this['editor']['model']['createRangeOn'](_0x2dff49),_0x4ea493=new Set(),_0x5d1e6b=new Set();for(const _0x2f0df0 of _0x25d137['getSuggestions']())if(('insertion'==_0x2f0df0['type']||'deletion'==_0x2f0df0['type']||'mergeTableCells'==_0x2f0df0['subType'])&&_0x2f0df0['isInContent']){for(const _0x3ece54 of _0x2f0df0['getRanges']())_0x3ece54['containsRange'](_0x20dada,!0x0)&&_0x4ea493['add'](_0x2f0df0['type']+':'+_0x2f0df0['author']['id']),_0x3ece54['containsRange'](_0xcf22c5,!0x0)&&_0x5d1e6b['add'](_0x2f0df0['type']+':'+_0x2f0df0['author']['id']);}if(_0x4ea493['size']!=_0x5d1e6b['size'])return!0x1;for(const _0x270727 of _0x4ea493)if(!_0x5d1e6b['has'](_0x270727))return!0x1;return!0x0;}}class Ct extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x470e27=this['editor'];if(!_0x470e27['plugins']['has']('TableEditing'))return;const _0x4768a8=_0x470e27['locale'],_0x27bbef=_0x470e27['plugins']['get']('TrackChangesEditing');_0x27bbef['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27bbef['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27bbef['registerBlockAttribute']('headingRows'),_0x27bbef['registerBlockAttribute']('headingColumns'),_0x27bbef['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4768a8,'FORMAT_HEADER_ROW')),_0x27bbef['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4768a8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4382c2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30631e=this['editor']['plugins']['get']('TableUtils'),_0x3efe48=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x35038c({showActiveMarker:_0x279e35=!0x0,setDataAttribute:_0x1c1850=!0x0}={}){return(_0x533566,_0x26512a,_0x3c0b9c)=>{const {type:_0x1912b0,id:_0x27875e}=_0x4382c2['_splitMarkerName'](_0x26512a['markerName']),_0x36178a=_0x4382c2['getSuggestion'](_0x27875e),_0xc8f154=_0x36178a['data'];if('formatBlock'!=_0x36178a['type']||!_0xc8f154||'setTableColumnHeader'!=_0xc8f154['commandName'])return;if(_0x26512a['item'])return void _0x533566['stop']();if(!_0x3c0b9c['consumable']['consume'](_0x26512a['markerRange'],_0x533566['name']))return;const _0x2e0bf9=_0x26512a['markerRange']['start']['nodeAfter'],_0x39379c=_0x26512a['markerRange']['end']['nodeBefore'],_0x4f4d43=_0x2e0bf9['parent']['parent'],{column:_0x538654}=_0x30631e['getCellLocation'](_0x2e0bf9),{column:_0x44beca}=_0x30631e['getCellLocation'](_0x39379c);for(let _0x640b5b=_0x538654;_0x640b5b<=_0x44beca;_0x640b5b++){const _0x437f77=_0x30631e['createTableWalker'](_0x4f4d43,{'column':_0x640b5b,'includeAllSlots':!0x1});for(const _0x2a24e1 of _0x437f77){const _0x233eba=_0x2a24e1['cell'],_0x2d6773=_0x3c0b9c['mapper']['toViewElement'](_0x233eba);_0x3c0b9c['writer']['addClass']('ck-suggestion-marker-'+_0x1912b0,_0x2d6773),_0x1c1850&&_0x3c0b9c['writer']['setAttribute']('data-suggestion',_0x27875e,_0x2d6773),_0x3c0b9c['mapper']['bindElementToMarker'](_0x2d6773,_0x26512a['markerName']),_0x279e35&&(_0x4382c2['activeMarkers']['includes'](_0x26512a['markerName'])?_0x3c0b9c['writer']['addClass']('ck-suggestion-marker--active',_0x2d6773):_0x3c0b9c['writer']['removeClass']('ck-suggestion-marker--active',_0x2d6773));}}};}_0x4382c2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3efe48),_0x4382c2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3efe48),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35038c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x133ce2,_0x22a0b9,_0x4ef736)=>{_0x4ef736['options']['showSuggestionHighlights']&&_0x35038c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x133ce2,_0x22a0b9,_0x4ef736);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x30cc8c,_0x418636,_0xfd28fa)=>{const {type:_0xeb7650,id:_0x161c8e}=_0x4382c2['_splitMarkerName'](_0x418636['markerName']),_0x307b22=_0x4382c2['getSuggestion'](_0x161c8e),_0x1ef809=_0x307b22['data'];if('formatBlock'!=_0x307b22['type']||!_0x1ef809||'setTableColumnHeader'!=_0x1ef809['commandName'])return;const _0x57b8e9=_0xfd28fa['mapper']['markerNameToElements'](_0x418636['markerName']);if(_0x57b8e9){for(const _0x28de6b of _0x57b8e9)_0xfd28fa['writer']['removeClass']('ck-suggestion-marker-'+_0xeb7650,_0x28de6b),_0xfd28fa['writer']['removeClass']('ck-suggestion-marker--active',_0x28de6b),_0xfd28fa['writer']['removeAttribute']('data-suggestion',_0x28de6b),_0xfd28fa['mapper']['unbindElementFromMarkerName'](_0x28de6b,_0x418636['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8992a4=this['editor'],_0x17c24d=_0x8992a4['locale'];function _0xd7c105(_0xdd6157){return{'type':'format','content':o(_0x17c24d,'*Format:*\x20%0',_0xdd6157)};}_0x8992a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50e470=>{if('formatBlock'!=_0x50e470['type'])return;const {data:_0x1e2d50}=_0x50e470;if(_0x1e2d50){if('setTableRowHeader'==_0x1e2d50['commandName']){const _0x2f14fb=_0x1e2d50['commandParams'][0x0]['forceValue'];return _0xd7c105(o(_0x17c24d,_0x2f14fb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1e2d50['commandName']){const _0x4757e8=_0x1e2d50['commandParams'][0x0]['forceValue'];return _0xd7c105(o(_0x17c24d,_0x4757e8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x30fd76=>[_0x30fd76,null]));class Nt extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x362532=this['editor'];if(!_0x362532['plugins']['has']('TableClipboard'))return;const _0x4351b6=_0x362532['plugins']['get']('TrackChangesEditing'),_0x1f3ac0=_0x362532['plugins']['get']('TableUtils'),_0x1e70d8=_0x362532['plugins']['get'](vt),_0x55f0af=_0x362532['plugins']['get']('TableClipboard');_0x1e70d8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x362532['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x362532['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe49a53=null;_0x362532['model']['on']('insertContent',(_0xaf1683,_0x4eabe0)=>{const [_0x3cbe15,_0x430432]=_0x4eabe0,_0x130eab=_0x4eabe0[_0x4eabe0['length']-0x1];_0x130eab&&_0x130eab['forceDefaultExecution']||_0x4351b6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x414ceb,_0x2bb0b7,_0x1a3bda,_0x5c47ce,_0x2b7e5d){if(_0x2bb0b7&&!_0x2bb0b7['is']('documentSelection'))return!0x1;const _0x59d6e5=_0x2b7e5d['getTableIfOnlyTableInContent'](_0x414ceb,_0x1a3bda);if(!_0x59d6e5||!Ae(_0x59d6e5,void 0x0,_0x5c47ce))return!0x1;const _0x1a5eba=_0x5c47ce['getSelectionAffectedTableCells'](_0x1a3bda['document']['selection']);if(!_0x1a5eba['length'])return!0x1;const _0x1faf82=_0x1a5eba[0x0]['findAncestor']('table'),_0x4fe337=_0x5c47ce['getRowIndexes'](_0x1a5eba),_0x2c2a73=_0x5c47ce['getColumnIndexes'](_0x1a5eba),_0x498140={'startRow':_0x4fe337['first'],'endRow':_0x4fe337['last'],'startColumn':_0x2c2a73['first'],'endColumn':_0x2c2a73['last']};return 0x1==_0x1a5eba['length']&&(_0x498140['endRow']+=_0x5c47ce['getRows'](_0x59d6e5)-0x1,_0x498140['endColumn']+=_0x5c47ce['getColumns'](_0x59d6e5)-0x1),Ae(_0x1faf82,_0x498140,_0x5c47ce);}(_0x3cbe15,_0x430432,_0x362532['model'],_0x1f3ac0,_0x55f0af)&&(_0xaf1683['stop'](),_0xe49a53={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x362532['model']['change'](()=>{_0x362532['model']['insertContent'](_0x4eabe0[0x0],_0x4eabe0[0x1],_0x4eabe0[0x2],{'forceDefaultExecution':!0x0});const _0x2c8285=_0x3aa221(),{rowInsertionRanges:_0x498e5e,columnInsertionRanges:_0x4a5de2,insertionRanges:_0x354f9c,deletionRanges:_0x77bbd6,cells:_0x11c1ff}=_0xe49a53;_0x498e5e['length']&&_0x4351b6['markMultiRangeInsertion'](_0x498e5e,'tablePasteRow',{'tablePasteChainId':_0x2c8285}),_0x4a5de2['length']&&_0x4351b6['markMultiRangeInsertion'](_0x4a5de2,'tablePasteColumn',{'tablePasteChainId':_0x2c8285}),_0x354f9c['length']&&(_0x4351b6['markMultiRangeInsertion'](_0x354f9c,'tablePaste',{'tablePasteChainId':_0x2c8285,'skipNestingCheck':!0x0}),_0x354f9c['forEach'](_0x7b3bf5=>_0x7b3bf5['detach']?.())),_0x77bbd6['length']&&(_0x4351b6['markMultiRangeDeletion'](_0x77bbd6,'tablePaste',{'tablePasteChainId':_0x2c8285,'skipNestingCheck':!0x0}),_0x77bbd6['forEach'](_0x151262=>_0x151262['detach']?.()));const _0x1b2d83=_0x4351b6['markMultiRangeBlockFormat'](_0x11c1ff['map'](({element:_0x472f63})=>_0x472f63),{'formatGroupId':_0x3aa221()},[],'tablePasteCell',{'tablePasteChainId':_0x2c8285});if(_0x1b2d83){const _0x4964e0=_0x1b2d83['getMarkers'](),_0x1a0236=[];for(const {element:_0x159707,attributes:_0x15b054}of _0x11c1ff){if(!_0x15b054)continue;const _0x2b0938=_0x362532['model']['createRangeOn'](_0x159707),_0x117bda=_0x4964e0['find'](_0xe2ae3e=>_0xe2ae3e['getRange']()['isEqual'](_0x2b0938));_0x117bda&&_0x1a0236['push']([_0x117bda['name'],_0x15b054]);}_0x1a0236['length']&&_0x1b2d83['setAttribute']('markerAttributes',Object['fromEntries'](_0x1a0236));}_0xe49a53=null;}));},{'priority':_0x4b3b10['high']+0xa}),_0x362532['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14291d,_0x308f8c)=>{const [_0x9e9087,_0x3675c2,,_0x16d8f7]=_0x308f8c;if(!_0xe49a53)return;_0x14291d['stop']();const _0x4530eb=_0x9e9087['cell'],_0x521379=_0x3675c2,_0x248e99=je(_0x4530eb),_0x19803=je(_0x521379);_0x14291d['return']=_0x4530eb;let _0x3f7619=null,_0x401963=null;if(_0x19803||_0x248e99){if(_0x248e99&&!_0x19803){_0x16d8f7['remove'](_0x4530eb['getChild'](0x0));for(const _0x190fb4 of Array['from'](_0x521379['getChildren']()))_0x16d8f7['insert'](_0x190fb4,_0x4530eb,'end');const _0x55c525=_0xe49a53['rowInsertionIndexes']['includes'](_0x9e9087['row']),_0x5c60b3=_0xe49a53['columnInsertionIndexes']['includes'](_0x9e9087['column']);_0x55c525||_0x5c60b3||(_0x3f7619=_0x23d2d0['fromRange'](_0x16d8f7['createRangeIn'](_0x4530eb)));}else _0x19803&&!_0x248e99&&(_0x401963=_0x16d8f7['createRangeIn'](_0x4530eb));}else{const _0x20ddaa=_0x16d8f7['createElement']('tableCellSuggestion'),_0x43f592=_0x16d8f7['createElement']('tableCellSuggestion');_0x16d8f7['wrap'](_0x16d8f7['createRangeIn'](_0x4530eb),_0x43f592),_0x16d8f7['insert'](_0x20ddaa,_0x4530eb,0x0);for(const _0xcaa8ef of Array['from'](_0x521379['getChildren']()))_0x16d8f7['insert'](_0xcaa8ef,_0x20ddaa,'end');_0x3f7619=_0x23d2d0['fromRange'](_0x16d8f7['createRangeOn'](_0x20ddaa)),_0x401963=_0x23d2d0['fromRange'](_0x16d8f7['createRangeOn'](_0x43f592));}const _0x2af0c2=Array['from'](_0x521379['getAttributes']())['filter'](([_0x2bb14f])=>we['includes'](_0x2bb14f));_0xe49a53['cells']['push']({'element':_0x4530eb,'attributes':_0x2af0c2['length']?Object['fromEntries'](_0x2af0c2):null}),_0x3f7619&&_0xe49a53['insertionRanges']['push'](_0x3f7619),_0x401963&&_0xe49a53['deletionRanges']['push'](_0x401963);},{'priority':'high'}),_0x1f3ac0['on']('insertColumns',(_0x60cb8d,_0x5bab80)=>{const [_0x243bf7,_0x1dd1c1={}]=_0x5bab80;if(!_0xe49a53)return;const _0x1192e6=_0x1dd1c1['at']||0x0,_0x299451=_0x1dd1c1['columns']||0x1;_0xe49a53['columnInsertionIndexes']=new Array(_0x299451)['fill'](_0x1192e6)['map']((_0x463cf0,_0x4da0b5)=>_0x463cf0+_0x4da0b5);for(const {cell:_0x4b5522}of _0x1f3ac0['createTableWalker'](_0x243bf7,{'startColumn':_0x1192e6,'endColumn':_0x1192e6+_0x299451-0x1}))_0xe49a53['columnInsertionRanges']['push'](_0x362532['model']['createRangeOn'](_0x4b5522));},{'priority':'low'}),_0x1f3ac0['on']('insertRows',(_0x38e867,_0x3f47a4)=>{const [_0x2c682a,_0x454a71={}]=_0x3f47a4;if(!_0xe49a53)return;const _0x3890be=_0x454a71['at']||0x0,_0x20ed16=_0x454a71['rows']||0x1;_0xe49a53['rowInsertionIndexes']=new Array(_0x20ed16)['fill'](_0x3890be)['map']((_0x5c791e,_0x5d4b7f)=>_0x5c791e+_0x5d4b7f);for(const {cell:_0x222f8e}of _0x1f3ac0['createTableWalker'](_0x2c682a,{'startRow':_0x3890be,'endRow':_0x3890be+_0x20ed16-0x1}))_0xe49a53['rowInsertionRanges']['push'](_0x362532['model']['createRangeOn'](_0x222f8e));},{'priority':'low'}),_0x4351b6['descriptionFactory']['registerDescriptionCallback'](_0x1c9ad2=>{if(_0x1c9ad2['subType']&&_0x1c9ad2['subType']['startsWith']('tablePaste'))return _0x1c9ad2['previous']?{}:{'type':'insertion','content':o(_0x362532['locale'],'*Replace\x20table\x20cells*')};});const _0x413522=()=>!0x1;for(const _0x2821bb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4351b6['_suggestionFactory']['registerCustomCallback']('insertion',_0x2821bb,'join',_0x413522),_0x4351b6['_suggestionFactory']['registerCustomCallback']('deletion',_0x2821bb,'join',_0x413522),_0x4351b6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2821bb,'join',_0x413522);_0x4351b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x413522),_0x4351b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x17897a,_0x3b6dd7,_0x518e5e)=>{const _0x2d718b=_0x17897a['map'](_0x152126=>_0x152126['getContainedElement']())['filter'](_0x55618a=>_0x55618a),_0x40712c=new Map(_0x2d718b['map'](_0x2443e8=>[_0x2443e8,null]));if(_0xe49a53){for(const {element:_0x1766b5,attributes:_0x3068a1}of _0xe49a53['cells'])_0x3068a1&&_0x40712c['set'](_0x1766b5,_0x3068a1);}else{if(_0x518e5e&&_0x518e5e['markerAttributes'])for(const [_0x2bc069,_0x1a73ba]of Object['entries'](_0x518e5e['markerAttributes'])){const _0xeb6ddb=_0x362532['model']['markers']['get'](_0x2bc069),_0x50094f=_0xeb6ddb?_0xeb6ddb['getRange']()['getContainedElement']():null;_0x50094f&&_0x40712c['set'](_0x50094f,_0x1a73ba);}}_0x362532['model']['change'](_0x226fd8=>{for(const [_0x6055f5,_0x360c23]of _0x40712c)_0x226fd8['setAttributes']({...ve,..._0x360c23},_0x6055f5);});});const _0x3dad8d=(_0x5c5f15,_0x54d216)=>{_0x4351b6['_suggestionFactory']['registerCustomCallback'](_0x5c5f15,'tablePaste',_0x54d216,(_0x3b2a4d,_0x510b07,_0x5ac745)=>{_0x362532['model']['change'](_0x3c251d=>{const _0x4072c9=[];for(const _0x2dc8da of _0x3b2a4d){const _0x388cc7=_0x2dc8da['start']['nodeAfter'];_0x388cc7['is']('element','tableCellSuggestion')&&_0x4072c9['push'](_0x388cc7);}_0x4351b6['_suggestionFactory']['getSuggestionCallback'](_0x5c5f15,null,_0x54d216)(_0x3b2a4d,_0x510b07,_0x5ac745);for(const _0x2f38f7 of _0x4072c9)'$graveyard'!=_0x2f38f7['root']['rootName']&&_0x3c251d['unwrap'](_0x2f38f7);});});};_0x3dad8d('insertion','accept'),_0x3dad8d('insertion','discard'),_0x3dad8d('deletion','accept'),_0x3dad8d('deletion','discard'),_0x4351b6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3bb124=>{const _0x5d72ae=_0x3bb124['map'](_0x426323=>_0x426323['getContainedElement']()),_0x5663de=_0x5d72ae[0x0]['findAncestor']('table'),{minRow:_0x1c5e70,maxRow:_0x4f44c5}=_0x1e70d8['_getCoordsForCells'](_0x5d72ae);_0x1f3ac0['removeRows'](_0x5663de,{'at':_0x1c5e70,'rows':_0x4f44c5-_0x1c5e70+0x1});}),_0x4351b6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2a208a=>{const _0x4cf9ba=_0x2a208a['map'](_0x5c40af=>_0x5c40af['getContainedElement']()),_0x1e87ce=_0x4cf9ba[0x0]['findAncestor']('table'),{minColumn:_0x1045d5,maxColumn:_0x2b14af}=_0x1e70d8['_getCoordsForCells'](_0x4cf9ba);_0x1f3ac0['removeColumns'](_0x1e87ce,{'at':_0x1045d5,'columns':_0x2b14af-_0x1045d5+0x1});});const _0x1f78af=(_0x37f06e,_0xd83b3b)=>{if(!_0xd83b3b['subType']||!_0xd83b3b['subType']['startsWith']('tablePaste'))return;const _0x5baa6c=_0xd83b3b['attributes']['tablePasteChainId'],_0x55f99d=_0x4351b6['getSuggestions']()['filter'](_0x9be408=>_0x9be408['isInContent']&&_0x9be408['attributes']&&_0x9be408['attributes']['tablePasteChainId']==_0x5baa6c);_0x55f99d['length']&&_0xd83b3b['getAllAdjacentSuggestions']()['length']!=_0x55f99d['length']&&_0x55f99d['reduce']((_0x4ce928,_0x32b6b7)=>(_0x4ce928['next']=_0x32b6b7,_0x32b6b7['previous']=_0x4ce928,_0x32b6b7));};function _0x8ff9e2(_0x5e8bae,_0x2371da=!0x0){const {id:_0x10bd5c,authorId:_0x4da27e}=_0x4351b6['_splitMarkerName'](_0x5e8bae['markerName']),_0x1a9ba4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10ea90=_0x4351b6['activeMarkers']['includes'](_0x5e8bae['markerName']);return _0x10ea90&&_0x1a9ba4['push']('ck-suggestion-marker--active'),{'classes':_0x1a9ba4,'attributes':{'data-suggestion':_0x10bd5c,'data-author-id':_0x4da27e},'priority':_0x10ea90&&_0x2371da?0xbc2:0xbb8};}_0x4351b6['on']('suggestionLoaded',_0x1f78af,{'priority':'high'}),_0x4351b6['on']('suggestionUnloaded',_0x1f78af,{'priority':'high'}),_0x362532['model']['document']['registerPostFixer'](()=>{let _0x876b7b=!0x1;const _0x40a552=Array['from'](_0x362532['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x564791,data:_0x284f4c}of _0x40a552){const {group:_0x378e04,type:_0x3af594,id:_0x142a5f}=_0x4351b6['_splitMarkerName'](_0x564791);if('suggestion'!=_0x378e04||'deletion'!=_0x3af594||_0x284f4c['oldRange'])continue;if(!_0x4351b6['hasSuggestion'](_0x142a5f))continue;const _0x4f84f8=_0x4351b6['getSuggestion'](_0x142a5f)['getRanges'](),_0xa2c130=_0x362532['plugins']['get']('Users')['me'];for(const _0x40feee of _0x4351b6['getSuggestions']()){if(!_0x40feee['isInContent']||_0x40feee['author']!=_0xa2c130)continue;if('formatBlock'!=_0x40feee['type']||'tablePasteCell'!=_0x40feee['subType'])continue;if(_0x40feee['getRanges']()['every'](_0x2aa4bd=>_0x4f84f8['some'](_0x5f4e02=>_0x5f4e02['containsRange'](_0x2aa4bd,!0x0)))){for(const _0x418f11 of _0x40feee['getAllAdjacentSuggestions']())_0x418f11['isInContent']&&(_0x418f11['discard'](),_0x876b7b=!0x0);}}}return _0x876b7b;}),_0x362532['model']['document']['registerPostFixer'](_0x394506=>{const _0x4fd18d=_0x362532['commands']['get']('redo');if(!_0x4fd18d||!_0x4fd18d['_createdBatches']['has'](_0x394506['batch']))return!0x1;let _0x50babe=!0x1;const _0x35bb39=_0x362532['plugins']['get']('Users')['me'],_0x4dbd6b=_0x362532['model']['document']['differ']['getChanges'](),_0x2a4993=Array['from'](_0x362532['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f9642,data:_0xb66e83})=>{const {group:_0x3c03c4,subType:_0x12a8c2,authorId:_0xe09ec5}=_0x4351b6['_splitMarkerName'](_0x1f9642);return'suggestion'==_0x3c03c4&&'tablePaste'==_0x12a8c2&&_0xe09ec5==_0x35bb39['id']&&!_0xb66e83['oldRange'];});for(const _0xfbf995 of _0x4dbd6b){if('insert'!=_0xfbf995['type']||'tableCellSuggestion'!=_0xfbf995['name']||0x1!=_0xfbf995['length'])continue;const _0x3bf308=_0x394506['createRange'](_0xfbf995['position'],_0xfbf995['position']['getShiftedBy'](0x1));if(!_0x2a4993['find'](({data:_0x43a6e2})=>_0x43a6e2['newRange']['isEqual'](_0x3bf308))){for(const {name:_0x748e5a,data:_0x3a0b8d}of _0x2a4993)if(_0x3bf308['containsRange'](_0x3a0b8d['newRange'])){_0x394506['updateMarker'](_0x748e5a,{'range':_0x3bf308}),_0x50babe=!0x0;break;}}}return _0x50babe;}),_0x362532['model']['document']['registerPostFixer'](_0x1a4166=>{let _0x209db6=!0x1;const _0x32e0c4=_0x362532['plugins']['get']('Users')['me'],_0x224168=_0x4351b6['getSuggestions']()['filter'](_0x342dd7=>_0x342dd7['isInContent']&&_0x342dd7['author']==_0x32e0c4),_0x53484e=new Set(),_0x434230=new Set();for(const _0x1904ba of _0x224168)if('tablePaste'==_0x1904ba['subType'])for(const _0x52c96c of _0x1904ba['getMarkers']()){const _0x17ea48=_0x52c96c['getRange']()['getContainedElement']();if(_0x17ea48){if(_0x17ea48['is']('element','tableCellSuggestion')&&je(_0x17ea48)){_0x1904ba['removeMarker'](_0x52c96c['name']),_0x53484e['add'](_0x17ea48),_0x209db6=!0x0;const _0x1a046f=_0x17ea48['nextSibling'],_0x15d6f6=_0x17ea48['previousSibling'],_0x369d6e=_0x1a046f&&_0x1a046f['is']('element','tableCellSuggestion'),_0x233f2e=_0x15d6f6&&_0x15d6f6['is']('element','tableCellSuggestion');_0x369d6e&&!_0x53484e['has'](_0x1a046f)&&_0x434230['add'](_0x1a046f),_0x233f2e&&!_0x53484e['has'](_0x15d6f6)&&_0x434230['add'](_0x15d6f6);}else _0x17ea48['is']('element','paragraph')&&_0x17ea48['isEmpty']&&(_0x1904ba['removeMarker'](_0x52c96c['name']),_0x209db6=!0x0);}}else{if('tablePasteCell'==_0x1904ba['subType']){if(!_0x1904ba['attributes']||!_0x1904ba['attributes']['tablePasteChainId'])continue;const _0x5265ef=_0x1904ba['attributes']['markerAttributes'];if(_0x5265ef&&Object['keys'](_0x5265ef)['length'])continue;const _0x26e9b1=_0x1904ba['attributes']['tablePasteChainId'];let _0x368d1b=!0x0,_0x2a60d2=!0x0;for(const _0x427af8 of _0x224168)if(_0x427af8['subType']&&_0x427af8['subType']['startsWith']('tablePaste')){if(!_0x427af8['attributes']['tablePasteChainId']){_0x2a60d2=!0x1;break;}if(_0x427af8['id']!=_0x1904ba['id']&&_0x427af8['attributes']['tablePasteChainId']==_0x26e9b1){_0x368d1b=!0x1;break;}}_0x2a60d2&&_0x368d1b&&(_0x1904ba['removeMarkers'](),_0x209db6=!0x0);}}for(const _0x1b4227 of _0x53484e)_0x1a4166['remove'](_0x1b4227);for(const _0x6a592f of _0x434230)_0x1a4166['unwrap'](_0x6a592f);return _0x209db6;}),_0x362532['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c0674=>_0x8ff9e2(_0x5c0674),'converterPriority':'high'}),_0x362532['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30ea7,_0x480c15)=>_0x480c15['options']['showSuggestionHighlights']?_0x8ff9e2(_0x30ea7,!0x1):null,'converterPriority':'high'});const _0x66d8ee=_0x362532['editing']['view'];this['listenTo'](_0x66d8ee['document'],'clipboardOutput',(_0x155d4f,_0x5b4afa)=>{const _0x579752=[];for(const _0x5bd685 of _0x66d8ee['createRangeIn'](_0x5b4afa['content'])['getItems']())_0x5bd685['is']('element','suggestion-td')&&_0x579752['push'](_0x5bd685);_0x66d8ee['change'](_0x2ece93=>{for(const _0x15fa32 of _0x579752)_0x2ece93['move'](_0x2ece93['createRangeIn'](_0x15fa32),_0x2ece93['createPositionBefore'](_0x15fa32)),_0x2ece93['remove'](_0x15fa32);});});}}function je(_0x375698){if(_0x375698['isEmpty'])return!0x0;const _0x4811ca=_0x375698['getChild'](0x0);return _0x4811ca['is']('element','paragraph')&&_0x4811ca['isEmpty'];}function Ae(_0x3f9e9e,_0x458ce2={},_0x4384c5){for(const {isAnchor:_0x2eced1,cellHeight:_0x5e3197,cellWidth:_0x317bda}of _0x4384c5['createTableWalker'](_0x3f9e9e,{'includeAllSlots':!0x0,..._0x458ce2}))if(!_0x2eced1||0x1!=_0x5e3197||0x1!=_0x317bda)return!0x1;return!0x0;}class Dt extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x223ffc=this['editor']['plugins']['get']('TrackChangesEditing');_0x223ffc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x223ffc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x223ffc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x223ffc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x223ffc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x223ffc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x163f29,_0x2ecc2b){const _0x323221=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f768f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x554dc5=_0x2ecc2b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x36d403=_0x2f768f['getColumnGroupElement'](_0x554dc5);let _0x1e9272=_0x36d403?_0x2f768f['getTableColumnsWidths'](_0x36d403):null,_0x192915=_0x554dc5['getAttribute']('tableWidth')||null;const _0x525d94=_0x2ecc2b['tableWidth']||_0x192915,_0x3827c5=_0x2ecc2b['columnWidths']||_0x1e9272,_0x50f1e5=this['editor']['plugins']['get']('Users')['me'];for(const _0x27e105 of _0x323221['getSuggestions']()){const _0xd2d6a8=_0x27e105['getContainedElement']();if('resizeTable'===_0x27e105['subType']&&_0xd2d6a8===_0x554dc5){_0x27e105['author']!==_0x50f1e5&&_0x27e105['discard']();const _0x2c0b9f=_0x27e105['data']['commandParams'];_0x192915=_0x2c0b9f[0x0]['tableWidth'],_0x1e9272=_0x2c0b9f[0x0]['columnWidths'];break;}}_0x163f29({'table':_0x554dc5,'tableWidth':_0x525d94,'columnWidths':_0x3827c5}),_0x323221['markBlockFormat'](_0x554dc5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x192915,'columnWidths':_0x1e9272}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2642dc){if('formatBlock'!=_0x2642dc['type']&&'formatInline'!=_0x2642dc['type'])return;const {data:_0x2cedcc}=_0x2642dc;if(_0x2cedcc&&'resizeTable'===_0x2cedcc['formatGroupId']){const _0x4fe46b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4fe46b)};}}}class Mt extends _0x240e00{['afterInit'](){const _0x515f41=this['editor'];_0x515f41['plugins']['has']('Template')&&_0x515f41['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x240e00{['afterInit'](){const _0x3d6414=this['editor'];if(!_0x3d6414['commands']['get']('insertTableOfContents'))return;_0x3d6414['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x15618e=_0x3d6414['plugins']['get']('TrackChangesEditing'),_0x3ccadc=_0x3d6414['locale'];_0x15618e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x382d8f=>o(_0x3ccadc,'ELEMENT_TABLE_OF_CONTENTS',_0x382d8f));}}class Bt extends _0x240e00{['afterInit'](){const _0x414a02=this['editor'];if(!_0x414a02['plugins']['has']('Title'))return;const _0x50f05a=_0x414a02['plugins']['get']('TrackChangesEditing');_0x50f05a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x414a02['locale'],'ELEMENT_TITLE')),_0x414a02['model']['document']['registerPostFixer'](_0x4a5d27=>{let _0x3c370a=!0x1;const _0x1d8387=Array['from'](_0x414a02['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16a466,data:_0x3dfee5}of _0x1d8387){const {group:_0x2563d3}=_0x50f05a['_splitMarkerName'](_0x16a466);if('suggestion'!==_0x2563d3||!_0x3dfee5['newRange'])continue;const _0x4dbc05=_0x3dfee5['newRange'],_0xd9ce6=_0x4dbc05['end']['nodeBefore'];if(!_0xd9ce6||!_0xd9ce6['is']('element','title-content'))continue;if(!_0x4dbc05['start']['isTouching'](_0x4dbc05['end']))continue;const _0x49746a=_0x414a02['model']['schema']['getNearestSelectionRange'](_0x4dbc05['end'],'forward');if(_0x49746a&&_0x49746a['isCollapsed']){const _0x4e41f1=_0x4a5d27['createRange'](_0x4dbc05['start'],_0x49746a['start']);_0x4e41f1['isEqual'](_0x4dbc05)||(_0x4a5d27['updateMarker'](_0x16a466,{'range':_0x4e41f1}),_0x3c370a=!0x0);}_0x3c370a||(_0x4a5d27['removeMarker'](_0x16a466),_0x3c370a=!0x0);}return _0x3c370a;});}}class Ot extends _0x240e00{['afterInit'](){const _0x936456=this['editor'],_0x2bea68=_0x936456['plugins']['get']('TrackChangesEditing');_0x936456['plugins']['has']('UndoEditing')&&(_0x2bea68['enableCommand']('undo'),_0x2bea68['enableCommand']('redo'));}}class Rt extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x22c226=this['editor'];if(!_0x22c226['plugins']['has']('TableCaptionEditing'))return;_0x22c226['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x240e00{['tableProperties'];['tableCellProperties'];constructor(_0x208e05){super(_0x208e05),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 _0x4756d9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38a264 of this['tableProperties'])_0x4756d9['enableCommand'](_0x38a264,(_0x3580f3,_0x49eb30)=>{const _0x2082a7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38a264,[_0x2082a7],this['tableProperties'],'tableProperties',_0x3580f3,_0x49eb30);});_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4756d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x20124c,_0x59fd8d)=>this['handleDiscardAction'](this['tableProperties'],_0x20124c,_0x59fd8d)),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x278f84 of this['tableCellProperties'])_0x4756d9['enableCommand'](_0x278f84,(_0x4ad281,_0x1b8e3a)=>{const _0xf314a1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x278f84,_0xf314a1,this['tableCellProperties'],'tableCellProperties',_0x4ad281,_0x1b8e3a);});_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4756d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e51d6,_0xe9846f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e51d6,_0xe9846f)),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4756d9['descriptionFactory']['registerDescriptionCallback'](_0x27680f=>this['handleSuggestionDescription'](_0x27680f));}['_handlePropertyChange'](_0x5cee0d,_0x1c0192,_0x41d3bb,_0x169f23,_0x416f7b,_0xcf9731){const _0x284b0b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xcf9731['batch'],()=>{for(const _0x5bd2bd of _0x1c0192){if(this['_getSuggestion'](_0x5bd2bd,_0x169f23))_0x416f7b(_0xcf9731);else{const _0x51e5d1={};for(const _0x159369 of _0x41d3bb){const _0x118261=_0x5bd2bd['getAttribute'](_0x159369);void 0x0!==_0x118261&&(_0x51e5d1[_0x159369]=_0x118261);}_0x416f7b(_0xcf9731),_0x284b0b['markBlockFormat'](_0x5bd2bd,{'commandParams':[_0x51e5d1]},[],_0x169f23);}}});}['handleDiscardAction'](_0x124219,_0xdd7c7b,_0x5c49bb){const _0x5c5fbd=_0xdd7c7b[0x0]['start']['nodeAfter'],_0x1a41a1=_0x5c49bb['commandParams'][0x0];this['editor']['model']['change'](_0x1b8ef5=>{for(const _0x11d099 of _0x124219)void 0x0!==_0x1a41a1[_0x11d099]?_0x1b8ef5['setAttribute'](_0x11d099,_0x1a41a1[_0x11d099],_0x5c5fbd):_0x1b8ef5['removeAttribute'](_0x11d099,_0x5c5fbd);});}['handleSuggestionDescription'](_0x138db0){if(_0x138db0['data'])switch(_0x138db0['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'](_0xfe9873,_0x31d860){const _0x238b62=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x316175 of _0x238b62['getSuggestions']({'skipNotAttached':!0x0})){const _0x58975d=_0x316175['getContainedElement']();if(_0x316175['subType']===_0x31d860&&_0x58975d===_0xfe9873)return _0x316175;}return null;}}const m='$elementName';class p extends _0x240e00{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x59b3bc,_0x45cc0b,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(_0x57805a){super(_0x57805a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ad923,_0x1a13d6,_0x120d1b,_0x3a6810)=>{this['_model']['change'](()=>{for(const _0x38f74b of[..._0x3a6810,..._0x120d1b])this['_model']['markers']['has'](_0x38f74b)&&_0x57805a['editing']['reconvertMarker'](_0x38f74b);});}),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']=_0x57805a['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(),_0x57805a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57805a['config']['get']('trackChanges.trackFormatChanges'),_0x57805a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57805a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57805a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x28114a=this['editor'],_0x21e295=(_0x5eae86,_0x1ae067)=>{if('attribute'!=_0x5eae86)return'ck-suggestion-marker-'+_0x5eae86;const _0x372ae0=_0x1ae067['split']('|')[0x0];return this['_isBlockAttribute'](_0x372ae0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x28114a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5e8856=>{const {id:_0x30b31d,authorId:_0x3116cc,type:_0x2e9270,subType:_0x263f9f}=this['_splitMarkerName'](_0x5e8856['markerName']),_0x5ae4e4=['ck-suggestion-marker',_0x21e295(_0x2e9270,_0x263f9f)];let _0x18b1dc=0xbb8;return this['activeMarkers']['includes'](_0x5e8856['markerName'])&&(_0x5ae4e4['push']('ck-suggestion-marker--active'),_0x18b1dc=0xbc2),'deletion'==_0x2e9270&&(_0x18b1dc+=0x5),{'classes':_0x5ae4e4,'attributes':{'data-suggestion':_0x30b31d,'data-author-id':_0x3116cc},'priority':_0x18b1dc};}}),_0x28114a['conversion']['for']('dataDowncast')['add'](_0xcde630=>{_0xcde630['on']('addMarker:suggestion',(_0x2bd884,_0x12477a,_0x2bf12a)=>{if(!_0x2bf12a['options']['showSuggestionHighlights'])return;const _0x492f3e=_0x12477a['item'];if(!_0x492f3e)return;const _0x192d2a=_0x2bf12a['mapper']['toViewElement'](_0x492f3e);_0x28114a['model']['schema']['isObject'](_0x492f3e)&&_0x192d2a&&!_0x192d2a['getCustomProperty']('widget')&&_0x192d2a['is']('containerElement')&&_0x549466(_0x192d2a,_0x2bf12a['writer']);},{'priority':'high'});}),_0x28114a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x55ca7f,_0x33e81c)=>{if(!_0x33e81c['options']['showSuggestionHighlights'])return null;const {type:_0x4dbb44,subType:_0x2d6771}=this['_splitMarkerName'](_0x55ca7f['markerName']);return{'classes':['ck-suggestion-marker',_0x21e295(_0x4dbb44,_0x2d6771)],'priority':0xbb8};}});const _0x41a82=({showActiveMarkers:_0x35c7df=!0x0,isAttributeSuggestion:_0x1961b5=!0x1}={})=>(_0x4935c8,_0x48feb5,_0x47e902)=>{if(!_0x48feb5['item'])return;const {id:_0x49928d,authorId:_0xba4910}=this['_splitMarkerName'](_0x48feb5['markerName']);if(_0x1961b5){const _0x4a8f75=this['_suggestions']['get'](_0x49928d),_0x561c93=this['_getAttributeKey'](_0x4a8f75);if(!this['_isBlockAttribute'](_0x561c93))return;}if(_0x48feb5['item']['is']('selection'))return void _0x47e902['consumable']['consume'](_0x48feb5['item'],_0x4935c8['name']);const _0x561170=_0x47e902['mapper']['toViewElement'](_0x48feb5['item']);if(_0x48feb5['item']['is']('element')&&_0x28114a['model']['schema']['isBlock'](_0x48feb5['item'])&&!_0x561170['getCustomProperty']('addHighlight')){_0x47e902['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x561170),_0x47e902['writer']['setAttribute']('data-suggestion',_0x49928d,_0x561170),_0x47e902['writer']['setAttribute']('data-author-id',_0xba4910,_0x561170),_0x47e902['mapper']['bindElementToMarker'](_0x561170,_0x48feb5['markerName']),_0x35c7df&&(this['activeMarkers']['includes'](_0x48feb5['markerName'])?_0x47e902['writer']['addClass']('ck-suggestion-marker--active',_0x561170):_0x47e902['writer']['removeClass']('ck-suggestion-marker--active',_0x561170));for(const _0x334ad2 of _0x28114a['model']['createRangeIn'](_0x48feb5['item'])['getItems']())_0x47e902['consumable']['consume'](_0x334ad2,_0x4935c8['name']);_0x47e902['consumable']['consume'](_0x48feb5['item'],_0x4935c8['name']);}};_0x28114a['conversion']['for']('dataDowncast')['add'](_0x4b9cdb=>{_0x4b9cdb['on']('addMarker:suggestion:formatBlock',(_0x478e4f,_0x49bd3a,_0x26b2c6)=>{_0x26b2c6['options']['showSuggestionHighlights']&&_0x41a82({'showActiveMarkers':!0x1})(_0x478e4f,_0x49bd3a,_0x26b2c6);},{'priority':'highest'});}),_0x28114a['conversion']['for']('dataDowncast')['add'](_0x493835=>{_0x493835['on']('addMarker:suggestion:attribute',(_0x431c24,_0x803f04,_0x126649)=>{_0x126649['options']['showSuggestionHighlights']&&_0x41a82({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x431c24,_0x803f04,_0x126649);},{'priority':'highest'});}),_0x28114a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xe4bed5,_0x43cd6d)=>_0x43cd6d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xe4bed5['substr'](0xb)}}),_0x28114a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x51bdc5,{writer:_0x563447})=>{let _0x5a3e52='suggestion:'+_0x51bdc5['getAttribute']('suggestion-type')+':'+_0x51bdc5['getAttribute']('id');return _0x51bdc5['getAttribute']('marker-count')&&(_0x5a3e52+=':'+_0x51bdc5['getAttribute']('marker-count')),_0x563447['createElement']('$marker',{'data-name':_0x5a3e52});}}),_0x28114a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0x26a8c1=>{_0x26a8c1['on']('addMarker:suggestion:formatBlock',_0x41a82(),{'priority':'high'});}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0xf0cc53=>{_0xf0cc53['on']('addMarker:suggestion:attribute',_0x41a82({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0x2beaa0=>{_0x2beaa0['on']('removeMarker:suggestion:formatBlock',(_0x1c95f1,_0x253620,_0x12884b)=>{const _0x41fd95=_0x12884b['mapper']['markerNameToElements'](_0x253620['markerName']);if(_0x41fd95){for(const _0xe41532 of _0x41fd95)_0xe41532['getCustomProperty']('addHighlight')||(_0x12884b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe41532),_0x12884b['writer']['removeAttribute']('data-suggestion',_0xe41532),_0x12884b['writer']['removeAttribute']('data-author-id',_0xe41532),_0x12884b['mapper']['unbindElementFromMarkerName'](_0xe41532,_0x253620['markerName']));}},{'priority':'high'});}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0x445275=>{_0x445275['on']('removeMarker:suggestion:attribute',(_0x278654,_0x47a43d,_0x25e381)=>{const _0x454246=_0x25e381['mapper']['markerNameToElements'](_0x47a43d['markerName']);if(!_0x454246)return;const {id:_0x22b588}=this['_splitMarkerName'](_0x47a43d['markerName']),_0x36cb4f=this['_suggestions']['get'](_0x22b588),_0x2ab90c=this['_getAttributeKey'](_0x36cb4f);if(this['_isBlockAttribute'](_0x2ab90c)){for(const _0x4412d4 of _0x454246)_0x4412d4['getCustomProperty']('addHighlight')||(_0x25e381['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4412d4),_0x25e381['writer']['removeAttribute']('data-suggestion',_0x4412d4),_0x25e381['writer']['removeAttribute']('data-author-id',_0x4412d4),_0x25e381['mapper']['unbindElementFromMarkerName'](_0x4412d4,_0x47a43d['markerName']));}},{'priority':'high'});}),_0x28114a['model']['document']['registerPostFixer'](_0x3f7d48=>{let _0x1b3be2=!0x1;const _0x30733f=Array['from'](_0x28114a['model']['document']['differ']['getChangedMarkers']()),_0x27f8bd=new Set();for(const {name:_0x17dc33,data:_0x549d83}of _0x30733f){const {group:_0xf1ce0b,type:_0x5f46b0,subType:_0x43f69b,id:_0x5274e9}=this['_splitMarkerName'](_0x17dc33);if('suggestion'!==_0xf1ce0b)continue;const _0x3683f6=this['_suggestions']['get'](_0x5274e9);if(null!=_0x549d83['newRange']){'formatInline'==_0x5f46b0&&(_0x1b3be2=_0x1b3be2||Pt(_0x549d83['newRange'],_0x17dc33,_0x3f7d48,_0x28114a['model']['schema']));const _0x4276eb='attribute'==_0x5f46b0&&this['_isBlockAttribute'](_0x43f69b['split']('|')[0x0]);if(_0x549d83['newRange']['isCollapsed']||'$graveyard'==_0x549d83['newRange']['root']['rootName']||'formatBlock'==_0x5f46b0&&!Ft(_0x549d83['newRange'])||_0x4276eb&&!Ft(_0x549d83['newRange'])||'deletion'==_0x5f46b0&&!(!Vt(_0x1f6282=_0x549d83['newRange'])&&!function(_0xfc0278){return _0xfc0278['start']['parent']==_0xfc0278['end']['nodeBefore']&&_0xfc0278['start']['isAtEnd'];}(_0x1f6282)))_0x3f7d48['removeMarker'](_0x17dc33),_0x1b3be2=!0x0;else{if(!_0x3683f6||!_0x3683f6['isInContent'])continue;if(_0x549d83['newRange']&&_0x549d83['oldRange']&&_0x549d83['newRange']['isEqual'](_0x549d83['oldRange']))continue;_0x27f8bd['add'](_0x3683f6);}}}var _0x1f6282;return _0x27f8bd['size']>0x0&&(_0x1b3be2=!!this['_joinWithAdjacentSuggestions'](_0x27f8bd)||_0x1b3be2),_0x1b3be2;}),_0x28114a['model']['document']['registerPostFixer'](_0x157f03=>{let _0x1aad67=!0x1;for(const _0x78a653 of _0x28114a['model']['document']['differ']['getChanges']())if('insert'==_0x78a653['type'])for(const _0x52bede of this['_suggestions']['values']()){if(_0x52bede['isMultiRange']||!_0x52bede['isInContent'])continue;const _0x4ccc4c='formatBlock'==_0x52bede['type'],_0x13a3ce=this['_getAttributeKey'](_0x52bede),_0x2ff968=_0x13a3ce&&this['_isBlockAttribute'](_0x13a3ce);if(!_0x4ccc4c&&!_0x2ff968)continue;const _0x3c55e3=_0x52bede['getFirstRange']();if(_0x3c55e3['start']['parent']!=_0x3c55e3['end']['parent']&&!_0x3c55e3['end']['isAtEnd']){const _0x22aa38=_0x28114a['model']['createPositionAt'](_0x3c55e3['start']['nodeAfter'],'end'),_0x44c947=_0x28114a['model']['createRange'](_0x3c55e3['start'],_0x22aa38);_0x157f03['updateMarker'](_0x52bede['getFirstMarker'](),{'range':_0x44c947}),_0x1aad67=!0x0;}}return _0x1aad67;}),_0x28114a['model']['document']['registerPostFixer'](_0x9b289f=>this['_processAttributeChanges'](_0x9b289f)),_0x28114a['model']['document']['registerPostFixer'](_0x22a9cc=>!_0x22a9cc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x22a9cc)),_0x28114a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x28114a['model']['document']['on']('change:data',(_0x12b89a,_0xc9c3a4)=>{if(!_0xc9c3a4['isLocal']||_0xc9c3a4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x356bde=_0x28114a['model']['document']['differ']['getChanges']();if(0x0==_0x356bde['length'])return;const _0x19ff0a=[],_0x22bc5f=_0x356bde['filter'](_0xb6a5d=>'attribute'==_0xb6a5d['type']),_0x1f571e=_0x356bde['filter'](_0xcebf1f=>'insert'==_0xcebf1f['type']&&'$text'!=_0xcebf1f['name']);for(const _0x1a58e6 of _0x22bc5f)this['_isRegisteredAttribute'](_0x1a58e6['attributeKey'])&&_0x19ff0a['push']({'key':_0x1a58e6['attributeKey'],'newValue':_0x1a58e6['attributeNewValue'],'oldValue':_0x1a58e6['attributeOldValue'],'range':Lt(_0x1a58e6['range'],_0x28114a['model'])});for(const _0x570a49 of _0x1f571e){if('rename'!=_0x570a49['action']&&'refresh'!=_0x570a49['action'])continue;const _0x19861f=Jt(_0x570a49['position']['nodeAfter'],_0x28114a['model']),_0x2de0e2=_0x570a49['before'];'rename'==_0x570a49['action']&&_0x19ff0a['push']({'key':m,'newValue':_0x570a49['name'],'oldValue':_0x2de0e2['name'],'range':_0x19861f});for(const [_0x38c5a3,_0x3bf09a]of _0x2de0e2['attributes']){if(!this['_isRegisteredAttribute'](_0x38c5a3))continue;const _0xbdc7bb=_0x570a49['attributes']['get'](_0x38c5a3);_0x3bf09a!==_0xbdc7bb&&_0x19ff0a['push']({'key':_0x38c5a3,'newValue':_0xbdc7bb,'oldValue':_0x3bf09a,'range':_0x19861f});}for(const [_0x79b54b,_0x490784]of _0x570a49['attributes'])this['_isRegisteredAttribute'](_0x79b54b)&&(_0x2de0e2['attributes']['has'](_0x79b54b)||_0x19ff0a['push']({'key':_0x79b54b,'newValue':_0x490784,'oldValue':null,'range':_0x19861f}));}0x0!=_0x19ff0a['length']&&_0x28114a['model']['enqueueChange'](_0xc9c3a4,_0x44a3aa=>{const _0x3f57de=_0x3aa221();for(const {range:_0x14724f,key:_0x498048,oldValue:_0x341116,newValue:_0x4df097}of _0x19ff0a)this['markAttributeChange'](_0x14724f,_0x498048,_0x341116,_0x4df097,{'groupId':_0x3f57de});this['_reduceExistingSuggestions'](_0x44a3aa,_0x19ff0a);});},{'priority':'lowest'}),_0x28114a['model']['markers']['on']('update:suggestion',(_0x25003f,_0x3defce,_0x36cce0)=>{if(null==_0x36cce0){const {id:_0x12d089}=this['_splitMarkerName'](_0x3defce['name']),_0x5209cb=this['_suggestions']['get'](_0x12d089);_0x5209cb&&_0x5209cb['addMarkerName'](_0x3defce['name']);}}),_0x28114a['model']['document']['on']('change:data',()=>{const _0x41bc04=Array['from'](_0x28114a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3d4d93=>'suggestion'===this['_splitMarkerName'](_0x3d4d93['name'])['group']);if(0x0===_0x41bc04['length'])return;_0x41bc04['sort']((_0x47e1ad,_0x22ae27)=>{const _0x27d974=_0x47e1ad['data']['oldRange'],_0x1cbbe2=_0x22ae27['data']['oldRange'];return null===_0x27d974&&null===_0x1cbbe2?0x0:null===_0x27d974&&null!==_0x1cbbe2?-0x1:null!==_0x27d974&&null===_0x1cbbe2?0x1:_0x27d974['start']['isBefore'](_0x1cbbe2['start'])?-0x1:0x1;});const _0x61a635=new Set(),_0x13f5a1=new Set();for(const {name:_0x4f7109,data:_0x2a2f78}of _0x41bc04){const {id:_0x3fed04}=this['_splitMarkerName'](_0x4f7109);if(null===_0x2a2f78['oldRange']){const _0x5b6867=this['_handleNewSuggestionMarker'](_0x4f7109);_0x13f5a1['add'](_0x5b6867);}else{const _0x11715b=this['_suggestions']['get'](_0x3fed04);null!==_0x2a2f78['newRange']||_0x11715b['isInContent']?(_0x61a635['add'](_0x11715b['head']),_0x13f5a1['add'](_0x11715b)):this['_removeSuggestion'](_0x11715b);}}_0x13f5a1['size']>0x0&&this['_refreshSuggestionsChain'](_0x13f5a1);for(const _0x218e59 of _0x61a635)this['fire']('suggestionChanged',_0x218e59);}),_0x28114a['model']['on']('applyOperation',(_0x46a332,_0x3e53e0)=>{const _0x18176f=_0x3e53e0[0x0];if(!this['_suggestions']['size'])return;if(!_0x18176f['isDocumentOperation'])return;if(_0x18176f['batch']['isUndo']||!_0x18176f['batch']['isLocal'])return;let _0x48bc7b,_0x589842;switch(_0x18176f['type']){case'insert':_0x48bc7b=_0x28114a['model']['createPositionAt'](_0x18176f['position']),_0x589842=_0x48bc7b['getShiftedBy'](_0x18176f['howMany']);break;case'split':_0x48bc7b=_0x28114a['model']['createPositionAt'](_0x18176f['splitPosition']),_0x589842=_0x28114a['model']['createPositionAt'](_0x18176f['moveTargetPosition']);break;case'move':_0x48bc7b=_0x28114a['model']['createPositionAt'](_0x18176f['targetPosition']),_0x589842=_0x48bc7b['getShiftedBy'](_0x18176f['howMany']);break;default:return;}const _0x391137=_0x28114a['model']['createRange'](_0x48bc7b,_0x589842);_0x28114a['model']['change'](()=>{for(const {suggestion:_0x5a6b69,meta:_0x433f08}of this['_findSuggestions'](_0x391137)){if(_0x5a6b69['isMultiRange'])continue;if('formatInline'==_0x5a6b69['type'])continue;const _0x50402e=this['_getAttributeKey'](_0x5a6b69);if(_0x50402e&&this['_isBlockAttribute'](_0x50402e)&&'split'!=_0x18176f['type'])continue;const _0x2ba626=_0x5a6b69['data']&&_0x5a6b69['data']['multipleBlocks'];('formatBlock'!=_0x5a6b69['type']||'split'==_0x18176f['type']&&!_0x2ba626)&&(_0x433f08['containsRangeInObject']||'insertion'==_0x5a6b69['type']&&_0x433f08['isOwn']||_0x5a6b69['getFirstRange']()['containsRange'](_0x391137)&&this['_breakSuggestionMarker'](_0x5a6b69,_0x48bc7b,_0x589842));}});},{'priority':'lowest'}),_0x28114a['model']['on']('deleteContent',(_0x305a15,_0x2df6d9)=>{const _0x306315=_0x2df6d9[0x0],_0x57718f=_0x2df6d9[0x1];if(_0x57718f&&_0x57718f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x306315['isCollapsed'])return;const _0x5035ca=_0x28114a['model']['schema'],{start:_0xf8a5b5,end:_0xf9382c}=_0x306315['getFirstRange'](),_0x5f2a5d=_0xf8a5b5['nodeAfter']&&_0x5035ca['isLimit'](_0xf8a5b5['nodeAfter'])?null:_0x5035ca['getNearestSelectionRange'](_0xf8a5b5,'forward'),_0x658b2a=_0xf9382c['nodeBefore']&&_0x5035ca['isLimit'](_0xf9382c['nodeBefore'])?null:_0x5035ca['getNearestSelectionRange'](_0xf9382c,'backward'),_0x737beb=_0x28114a['model']['createRange'](_0x5f2a5d?_0x5f2a5d['start']:_0xf8a5b5,_0x658b2a?_0x658b2a['end']:_0xf9382c);_0x28114a['model']['change'](_0x5c9ac4=>{this['markDeletion'](_0x737beb);const _0x2e4095=_0x28114a['model']['schema']['getNearestSelectionRange'](_0x737beb['start']);_0x306315['is']('documentSelection')?_0x5c9ac4['setSelection'](_0x2e4095):_0x306315['setTo'](_0x2e4095);}),_0x305a15['stop']();},{'priority':_0x4b3b10['normal']+0xa}),_0x28114a['model']['on']('insertContent',(_0x38088d,_0x1b0533)=>{const _0x2cad66=_0x1b0533[_0x1b0533['length']-0x1];_0x2cad66&&_0x2cad66['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x28114a['model']['change'](()=>{let _0x93b55e=_0x28114a['model']['insertContent'](_0x1b0533[0x0],_0x1b0533[0x1],_0x1b0533[0x2],{'forceDefaultExecution':!0x0});if(!_0x93b55e)return;_0x38088d['return']=_0x93b55e['clone']();const _0xbe6199=_0x93b55e['end']['nodeBefore'],_0x4484c2=_0x28114a['model']['schema'];_0xbe6199&&_0x4484c2['isBlock'](_0xbe6199)&&!_0x4484c2['isObject'](_0xbe6199)&&(_0x93b55e=_0x28114a['model']['createRange'](_0x93b55e['start'],_0x28114a['model']['createPositionAt'](_0xbe6199,'end'))),this['markInsertion'](_0x93b55e);}),_0x38088d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x372134=new O(_0x28114a,this['_suggestions']);_0x28114a['commands']['add']('acceptSuggestion',_0x372134),this['enableCommand']('acceptSuggestion');const _0x150439=new R(_0x28114a,this['_suggestions']);_0x28114a['commands']['add']('discardSuggestion',_0x150439),this['enableCommand']('discardSuggestion'),_0x28114a['commands']['add']('acceptAllSuggestions',new x(_0x28114a,_0x372134,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x28114a['commands']['add']('discardAllSuggestions',new x(_0x28114a,_0x150439,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x28114a['commands']['add']('acceptSelectedSuggestions',new E(_0x28114a,_0x372134,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x28114a['commands']['add']('discardSelectedSuggestions',new E(_0x28114a,_0x150439,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x21442b=_0x28114a['plugins']['get']('CommentsRepository');this['listenTo'](_0x21442b,'addComment',(_0x2611f2,{threadId:_0x4b52ee})=>{const _0x4ddd2c=this['_suggestions']['get'](_0x4b52ee);_0x4ddd2c&&_0x4ddd2c['commentThread']&&0x1===_0x4ddd2c['commentThread']['length']&&this['_updateSuggestionData'](_0x4b52ee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x21442b,'removeComment',(_0x206ed2,{threadId:_0x1cc538})=>{const _0x28d520=this['_suggestions']['get'](_0x1cc538);_0x28d520&&_0x28d520['commentThread']&&!_0x28d520['commentThread']['length']&&this['_updateSuggestionData'](_0x1cc538,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x531a6c){const _0x304003=_0x4e1ce8([0x73,0x4e,0x52,0x4f,0x64,0x69,0x56,0x6d,0x34,0x32,0x6b,0x74,0x39,0x62,0x47,0x61,0x31,0x30,0x78,0x4c,0x72,0x33,0x38,0x76,0x75,0x42,0x41,0x68,0x6f,0x6a,0x71,0x67,0x6c,0x4a,0x50,0x63,0x65,0x35,0x55,0x7a,0x45,0x59,0x4b,0x4d,0x54,0x77,0x70,0x46,0x79,0x51,0x5a,0x57,0x48,0x43,0x49,0x37,0x6e,0x44,0x36,0x53,0x58,0x66]),_0x291b73=0x5efe9179,_0x374e55=0x5ef9c659^_0x291b73,_0x14db0d=window[_0x4e1ce8([0x44,0x61,0x74,0x65])][_0x4e1ce8([0x6e,0x6f,0x77])](),_0x131663=_0x531a6c[_0x4e1ce8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e9c08=new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d71c3=>{_0x131663[_0x4e1ce8([0x6f,0x6e,0x63,0x65])](_0x4e1ce8([0x72,0x65,0x61,0x64,0x79]),_0x3d71c3);}),_0x4fc134={[_0x4e1ce8([0x6b,0x74,0x79])]:_0x4e1ce8([0x45,0x43]),[_0x4e1ce8([0x75,0x73,0x65])]:_0x4e1ce8([0x73,0x69,0x67]),[_0x4e1ce8([0x63,0x72,0x76])]:_0x4e1ce8([0x50,0x2d,0x32,0x35,0x36]),[_0x4e1ce8([0x78])]:_0x4e1ce8([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]),[_0x4e1ce8([0x79])]:_0x4e1ce8([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]),[_0x4e1ce8([0x61,0x6c,0x67])]:_0x4e1ce8([0x45,0x53,0x32,0x35,0x36])},_0x496191=_0x131663[_0x4e1ce8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e1ce8([0x67,0x65,0x74])](_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x546ca9(){let _0x2608b1,_0x4ee529=null,_0x90cafa=null;try{if(_0x496191==_0x4e1ce8([0x47,0x50,0x4c]))return _0x4e1ce8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2608b1=_0x5421f5(),!_0x2608b1)return _0x4e1ce8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2608b1[_0x4e1ce8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x90cafa=_0x171b83(_0x2608b1[_0x4e1ce8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2608b1[_0x4e1ce8([0x6a,0x74,0x69])])),await _0x2bd96c()?_0x2c72ab()?_0x35e280()?_0x4e1ce8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c6316()?(_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e1ce8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ee529=_0x487b3a(_0x4e1ce8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e1ce8([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ee529=_0x487b3a(_0x4e1ce8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e1ce8([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4ee529=_0x487b3a(_0x4e1ce8([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c92e3()):_0x4e1ce8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e1ce8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e1ce8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x36de47){return _0x4e1ce8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35e280(){const _0x59862c=[_0x4e1ce8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e1ce8([0x74,0x72,0x69,0x61,0x6c])][_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14db0d/0x3e8:0xe10*_0x374e55;return _0x2608b1[_0x4e1ce8([0x65,0x78,0x70])]<_0x59862c;}function _0x2c72ab(){const _0x1941a8=_0x2608b1[_0x4e1ce8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1941a8&&(!!_0x1941a8[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x2a]))||(!!_0x1941a8[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x54,0x43]))||!(!_0x1941a8[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x52,0x54,0x43]))||!_0x7d6148())));}function _0x2c6316(){const _0x47577f=_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47577f||0x0==_0x47577f[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3832ea}=new URL(window[_0x4e1ce8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47577f[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3832ea))return!0x0;const _0x41d050=_0x3832ea[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e]));return _0x47577f[_0x4e1ce8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x195681=>_0x195681[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x2a])))[_0x4e1ce8([0x6d,0x61,0x70])](_0x22143b=>_0x22143b[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e])))[_0x4e1ce8([0x73,0x6f,0x6d,0x65])](_0xb5d80f=>_0x41d050[_0x4e1ce8([0x65,0x76,0x65,0x72,0x79])]((_0x5601fc,_0x4d00dc)=>_0xb5d80f[_0x4d00dc]===_0x5601fc||_0xb5d80f[_0x4d00dc]===_0x4e1ce8([0x2a])));}function _0x1c92e3(){return _0x4ee529&&_0x90cafa?new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x261984,_0x26fdfe)=>{_0x4ee529[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x261984,_0x26fdfe),_0x90cafa[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x58fdac=>{_0x58fdac!=_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64])&&_0x261984(_0x58fdac);},_0x26fdfe);}):_0x4ee529||_0x90cafa||_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x171b83(_0xcc977c,_0x539784){return new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9e6da4=>{if(_0xfc2557())return _0x9e6da4(_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64]));_0x10d0ac(),_0x131663[_0x4e1ce8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e1ce8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b9942=!0x1;const _0x507dee=_0x3aa221();function _0x614d2d(_0x1ee37e){return!!_0x1ee37e&&(typeof _0x1ee37e===_0x4e1ce8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ee37e===_0x4e1ce8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ee37e[_0x4e1ce8([0x74,0x68,0x65,0x6e])]===_0x4e1ce8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ee37e[_0x4e1ce8([0x63,0x61,0x74,0x63,0x68])]===_0x4e1ce8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41e91e(_0x37ad30){_0x4c44a3(_0x37ad30)[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x1ce400=>{if(!_0x1ce400||_0x1ce400[_0x4e1ce8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e1ce8([0x6f,0x6b]))return _0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fed1c(_0x59cba5(_0x507dee+_0x539784))!=_0x1ce400[_0x4e1ce8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x10b570=>(_0x32d066(),_0x10b570),()=>{const _0x3e73a3=_0x374132();return null==_0x3e73a3?(_0x32d066(),_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64])):_0x4e1ce8(_0x14db0d-_0x3e73a3>(0x7af21579^_0x291b73)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x9e6da4)[_0x4e1ce8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9e6da4(_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c228d=0x5ec87ff9^_0x291b73;function _0x32d066(){const _0x27488e=_0x4e1ce8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fed1c(_0x59cba5(_0xcc977c)),_0x53e904=_0x57df40(_0x3fed1c(window[_0x4e1ce8([0x4d,0x61,0x74,0x68])][_0x4e1ce8([0x63,0x65,0x69,0x6c])](_0x14db0d/_0x5c228d)));window[_0x4e1ce8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e1ce8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27488e,_0x53e904);}function _0x374132(){const _0x280a8f=_0x4e1ce8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fed1c(_0x59cba5(_0xcc977c)),_0x18f600=window[_0x4e1ce8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e1ce8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x280a8f);return _0x18f600?window[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57df40(_0x18f600),0x10)*_0x5c228d:null;}function _0x4c44a3(_0x5a33b9){return new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5902aa,_0x1c77ed)=>{_0x5a33b9[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x5902aa,_0x1c77ed),window[_0x4e1ce8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c77ed,0x5eff45b9^_0x291b73);});}}_0x131663[_0x4e1ce8([0x6f,0x6e])](_0x4e1ce8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x196fa1,_0x12b463)=>{if(_0x12b463[0x0]!=_0xcc977c)return _0x9e6da4(_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12b463[0x1]={..._0x12b463[0x1],[_0x4e1ce8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x507dee};},{[_0x4e1ce8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e1ce8([0x68,0x69,0x67,0x68])}),_0x131663[_0x4e1ce8([0x6f,0x6e])](_0x4e1ce8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39060b=>{_0x614d2d(_0x39060b[_0x4e1ce8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b9942=!0x0,_0x41e91e(_0x39060b[_0x4e1ce8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e1ce8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e1ce8([0x6c,0x6f,0x77])}),_0x2e9c08[_0x4e1ce8([0x74,0x68,0x65,0x6e])](()=>{_0x4b9942||_0x9e6da4(_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfc2557(){return _0x131663[_0x4e1ce8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e1ce8([0x76,0x69,0x65,0x77])][_0x4e1ce8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e1ce8([0x61,0x75,0x74,0x6f]);}function _0x10d0ac(){_0x131663[_0x4e1ce8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e1ce8([0x76,0x69,0x65,0x77])][_0x4e1ce8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e1ce8([0x61,0x75,0x74,0x6f]);}}function _0x487b3a(_0x5c49f6){const _0x4c4422=[new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe180bf=>setTimeout(_0xe180bf,0x5ef7afb5^_0x291b73)),_0x2e9c08[_0x4e1ce8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25a43b=>{let _0x3a4aeb=0x0;_0x131663[_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e1ce8([0x6f,0x6e])](_0x4e1ce8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3529dc,_0x65f9a9)=>{_0x65f9a9[0x0][_0x4e1ce8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a4aeb++,_0x3a4aeb==(0x5efe9081^_0x291b73)&&(_0x25a43b(),_0x3529dc[_0x4e1ce8([0x6f,0x66,0x66])]());});}))];return window[_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e1ce8([0x72,0x61,0x63,0x65])](_0x4c4422)[_0x4e1ce8([0x74,0x68,0x65,0x6e])](()=>_0x5c49f6);}async function _0xb583d3(){await _0x2e9c08,_0x131663[_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e1ce8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51e8ff,_0x131663[_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e1ce8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51e8ff,_0x131663[_0x4e1ce8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7d6148(){return _0x561bd7(_0x4e1ce8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e12b3(_0x4e1ce8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e1ce8([0x73,0x74,0x61,0x74,0x65])]==_0x4e1ce8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x588157(_0xb3184d){const _0x540771=_0x5bb533();_0x131663[_0x540771]=_0x4e1ce8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb3184d,_0xb3184d!=_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64])&&_0xb583d3();}function _0x5bb533(){const _0x22b62c=window[_0x4e1ce8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e1ce8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e1ce8([0x6e,0x6f,0x77])]())[_0x4e1ce8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e1ce8([0x2e]),'');let _0x3407cd=_0x4e1ce8([0x73]);for(let _0x2ad2d7=0x0;_0x2ad2d7<_0x22b62c[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ad2d7+=0x2){let _0x5d14bb=window[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22b62c[_0x4e1ce8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ad2d7,_0x2ad2d7+0x2));_0x5d14bb>=_0x304003[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d14bb-=_0x304003[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3407cd+=_0x304003[_0x5d14bb];}return _0x3407cd;}function _0x5421f5(){const _0x3fad44=_0x496191[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e]));if(0x3!=_0x3fad44[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3196bc(_0x3fad44[0x1]);function _0x3196bc(_0x207a66){const _0x2430d4=_0x44af0d(_0x207a66);return _0x2430d4&&_0x5ebb79()?_0x2430d4:null;function _0x5ebb79(){const _0x2fc22d=_0x2430d4[_0x4e1ce8([0x6a,0x74,0x69])],_0x23cc30=window[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fc22d[_0x4e1ce8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fc22d[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x823995={..._0x2430d4,[_0x4e1ce8([0x6a,0x74,0x69])]:_0x2fc22d[_0x4e1ce8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fc22d[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x823995[_0x4e1ce8([0x76,0x63])],_0x59cba5(_0x823995)==_0x23cc30;}}}async function _0x2bd96c(){let _0xbd0b5d=!0x0;try{const _0x2c25fa=_0x496191[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e])),[_0x5799c4,_0x290b0f,_0x3165fe]=_0x2c25fa;return _0x40acfd(_0x5799c4),await _0x4d3ee4(_0x5799c4,_0x290b0f,_0x3165fe),_0xbd0b5d;}catch(_0x1b1dd0){return!0x1;}function _0x40acfd(_0xec4808){const _0x522bd8=_0x44af0d(_0xec4808);_0x522bd8&&_0x522bd8[_0x4e1ce8([0x61,0x6c,0x67])]==_0x4e1ce8([0x45,0x53,0x32,0x35,0x36])||(_0xbd0b5d=!0x1);}async function _0x4d3ee4(_0x31cb9b,_0x504fb3,_0x18a132){const _0x35b4e3=window[_0x4e1ce8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e1ce8([0x66,0x72,0x6f,0x6d])](_0x109c3d(_0x18a132),_0x21f330=>_0x21f330[_0x4e1ce8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b16bf=new window[(_0x4e1ce8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e1ce8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31cb9b+_0x4e1ce8([0x2e])+_0x504fb3),_0x1372c3=window[_0x4e1ce8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e1ce8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1372c3)return;const _0x15bcd0=await _0x1372c3[_0x4e1ce8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e1ce8([0x6a,0x77,0x6b]),_0x4fc134,{[_0x4e1ce8([0x6e,0x61,0x6d,0x65])]:_0x4e1ce8([0x45,0x43,0x44,0x53,0x41]),[_0x4e1ce8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e1ce8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e1ce8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1372c3[_0x4e1ce8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e1ce8([0x6e,0x61,0x6d,0x65])]:_0x4e1ce8([0x45,0x43,0x44,0x53,0x41]),[_0x4e1ce8([0x68,0x61,0x73,0x68])]:{[_0x4e1ce8([0x6e,0x61,0x6d,0x65])]:_0x4e1ce8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15bcd0,_0x35b4e3,_0x2b16bf)||(_0xbd0b5d=!0x1);}}function _0x44af0d(_0xf47a78){return _0xf47a78[_0x4e1ce8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e1ce8([0x65,0x79]))?JSON[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65])](_0x109c3d(_0xf47a78)):null;}function _0x109c3d(_0x13fe32){return window[_0x4e1ce8([0x61,0x74,0x6f,0x62])](_0x13fe32[_0x4e1ce8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e1ce8([0x2b]))[_0x4e1ce8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e1ce8([0x2f])));}function _0x59cba5(_0x2b60ac){let _0xb9cd70=0x1505;function _0x24bc3c(_0x3e44c7){for(let _0x38db67=0x0;_0x38db67<_0x3e44c7[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38db67++){const _0x3b59b8=_0x3e44c7[_0x4e1ce8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38db67);_0xb9cd70=(_0xb9cd70<<0x5)+_0xb9cd70+_0x3b59b8,_0xb9cd70&=_0xb9cd70;}}function _0x3a8f7f(_0x234ba4){Array[_0x4e1ce8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x234ba4)?_0x234ba4[_0x4e1ce8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a8f7f):_0x234ba4&&typeof _0x234ba4==_0x4e1ce8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e1ce8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x234ba4)[_0x4e1ce8([0x73,0x6f,0x72,0x74])]()[_0x4e1ce8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3979ee,_0x467df5])=>{_0x24bc3c(_0x3979ee),_0x3a8f7f(_0x467df5);}):_0x24bc3c(window[_0x4e1ce8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x234ba4));}return _0x3a8f7f(_0x2b60ac),_0xb9cd70>>>0x0;}function _0x3fed1c(_0x3153dc){return _0x3153dc[_0x4e1ce8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e1ce8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e1ce8([0x30]));}function _0x57df40(_0x2a0216){return _0x2a0216[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e1ce8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e1ce8([0x6a,0x6f,0x69,0x6e])]('');}function _0x561bd7(_0x4fa7ac){return _0x131663[_0x4e1ce8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e1ce8([0x68,0x61,0x73])](_0x4fa7ac);}function _0x4e12b3(_0x543681){return _0x131663[_0x4e1ce8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e1ce8([0x67,0x65,0x74])](_0x543681);}function _0x51e8ff(){}function _0x4e1ce8(_0x1ed9af){return _0x1ed9af['map'](_0x2a7355=>String['fromCharCode'](_0x2a7355))['join']('');}_0x588157(await _0x546ca9());}(this);}set['adapter'](_0x17dc03){if(this['_adapter'])throw new _0x1267e3('track-changes-adapter-already-set',this);this['_adapter']=_0x17dc03;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b38f6=!0x1,toJSON:_0x2ea377=!0x1}={}){const _0x1b6ca6=[];for(const _0x1745d2 of this['_suggestions']['values']())_0x4b38f6&&!_0x1745d2['isInContent']||_0x1b6ca6['push'](_0x1745d2);return _0x2ea377?_0x1b6ca6['map'](_0x4f0c85=>_0x4f0c85['toJSON']()):_0x1b6ca6;}['getSuggestion'](_0x8d6bdb){const _0x308482=this['_suggestions']['get'](_0x8d6bdb);if(!_0x308482)throw new _0x1267e3('track-changes-suggestion-not-found',this);return _0x308482;}['hasSuggestion'](_0x52dcea){return this['_suggestions']['has'](_0x52dcea);}['addSuggestionData'](_0x115719){const {authorId:_0x2bfe02,id:_0x57bb4c,attributes:_0x86e06c}=_0x115719,[_0x568e0d,_0x4c5ed7]=_0x115719['type']['split'](':'),_0x2d658c=this['_suggestions']['get'](_0x57bb4c)||this['_createSuggestion'](_0x568e0d,_0x4c5ed7,_0x57bb4c,_0x2bfe02,_0x86e06c);if(this['_addThreadToSuggestion'](_0x2d658c),this['_checkSuggestionCorrectness'](_0x2d658c,_0x568e0d,_0x4c5ed7||null,_0x2bfe02),_0x2d658c['createdAt']=_0x115719['createdAt'],_0x2d658c['_isDataLoaded']=!0x0,_0x86e06c&&_0x86e06c['@external']){const _0x2d06af=_0x86e06c['@external'],_0x5de67f=this['_getExternalAuthor'](_0x2d06af['authorName']);_0x2d658c['authoredAt']=_0x2d06af['createdAt'],_0x2d658c['author']=_0x5de67f,_0x2d658c['isExternal']=!0x0;}else _0x2d658c['authoredAt']=_0x115719['createdAt'];switch(_0x115719['data']&&(_0x2d658c['data']=_0x115719['data']),_0x115719['attributes']&&(_0x2d658c['attributes']=_0x115719['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2d658c['_saved']=!0x0),this['_suggestionState']['get'](_0x2d658c)){case'notReady':this['_suggestionState']['set'](_0x2d658c,'dataReady');break;case'markerReady':_0x2d658c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2d658c])),this['_refreshSuggestionsChain'](new Set([_0x2d658c])),this['_suggestionState']['set'](_0x2d658c,'ready'),this['fire']('suggestionLoaded',_0x2d658c)):this['_suggestionState']['set'](_0x2d658c,'removed');}return _0x2d658c;}['acceptSuggestion'](_0x2d7ffd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43b8fc of _0x2d7ffd['getAllAdjacentSuggestions']())_0x43b8fc['accept']();});});}['discardSuggestion'](_0x30495a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28dde2 of _0x30495a['getAllAdjacentSuggestions']())_0x28dde2['discard']();});});}['enableCommand'](_0x204181,_0x590605){const _0x412a9d=this['editor']['commands']['get'](_0x204181);if(!_0x412a9d)throw new _0x1267e3('track-changes-command-not-found',this,{'commandName':_0x204181});if(this['_enabledCommands']['has'](_0x412a9d))throw new _0x1267e3('track-changes-enable-command-twice',this,{'commandName':_0x204181});this['_enabledCommands']['add'](_0x412a9d),_0x590605&&_0x412a9d['on']('execute',(_0x2d9721,_0x8aa6e1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x8aa6e1['length']>0x0&&_0x8aa6e1[_0x8aa6e1['length']-0x1]&&_0x8aa6e1[_0x8aa6e1['length']-0x1]['forceDefaultExecution']?_0x8aa6e1['pop']():(_0x2d9721['return']=_0x590605((..._0x2fe329)=>_0x412a9d['execute'](..._0x2fe329,{'forceDefaultExecution':!0x0}),..._0x8aa6e1),_0x2d9721['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x15a9d3){let _0x14cfb5,_0x1351bc;const _0x49c2bf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x14cfb5=_0x15a9d3();}catch(_0x54e83c){_0x1351bc=_0x54e83c;}return _0x49c2bf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1351bc&&_0x1267e3['rethrowUnexpectedError'](_0x1351bc,this),_0x14cfb5;}['markInsertion'](_0x41f659,_0xcace11=null,_0x5d3a8f={}){if(_0x41f659['isCollapsed'])return null;const _0x1dfee8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x50e2e9,meta:_0x32a258}of this['_findSuggestions'](_0x41f659,'insertion'))if(_0x32a258['isOwn']){if(!_0x32a258['isNextTo']){if(_0x32a258['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x50e2e9,_0x5d3a8f))continue;return _0x50e2e9;}if(zt(_0x50e2e9,_0x5d3a8f))return _0x50e2e9;this['_breakSuggestionMarker'](_0x50e2e9,_0x41f659['start'],_0x41f659['end']);break;}if(_0xcace11==_0x50e2e9['subType']&&zt(_0x50e2e9,_0x5d3a8f)){const _0x4fc827=_0x50e2e9['getFirstRange']();return _0x4fc827['start']['isEqual'](_0x41f659['end'])?this['_setSuggestionRange'](_0x50e2e9,this['_model']['createRange'](_0x41f659['start'],_0x4fc827['end'])):this['_setSuggestionRange'](_0x50e2e9,this['_model']['createRange'](_0x4fc827['start'],_0x41f659['end'])),_0x50e2e9;}}const _0x3ba555=_0x3aa221(),_0xce5b90=_0x1dfee8['id'],_0x14bd63=_0xcace11?'insertion:'+_0xcace11:'insertion',_0xd4c335=this['_setSuggestionData']({'id':_0x3ba555,'type':_0x14bd63,'createdAt':new Date(),'authorId':_0xce5b90,'attributes':_0x5d3a8f});return this['_addSuggestionMarker'](_0x14bd63,_0x3ba555,_0xce5b90,_0x41f659),_0xd4c335;}['markMultiRangeInsertion'](_0x3b37d2,_0x29c22f='multi',_0x2c6d88={}){const _0x58398e=this['editor']['plugins']['get']('Users')['me'],_0x359b07=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29c22f,'join');for(const _0x489d71 of this['getSuggestions']())if(_0x489d71['author']['id']==_0x58398e['id']&&'insertion'==_0x489d71['type']&&_0x489d71['subType']==_0x29c22f&&zt(_0x489d71,_0x2c6d88)&&(_0x359b07(_0x489d71['getRanges'](),_0x3b37d2)||_0x359b07(_0x3b37d2,_0x489d71['getRanges']()))){for(const _0x30325f of _0x3b37d2)_0x489d71['addRange'](_0x30325f);return _0x489d71;}for(const {suggestion:_0x283d7d,meta:_0x5da961}of this['_findSuggestions'](_0x3b37d2,'insertion')){if(!_0x5da961['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5da961['containsRangeInObject'])continue;if(!zt(_0x283d7d,_0x2c6d88))continue;let _0x9e62d4=!0x0;for(const _0x5e1cad of _0x283d7d['getRanges']())for(const _0x32f206 of _0x3b37d2)if(!_0x5e1cad['containsRange'](_0x32f206)){_0x9e62d4=!0x1;break;}if(_0x9e62d4)return _0x283d7d;}const _0xaf5569=_0x3aa221(),_0x52eb20=_0x58398e['id'],_0x260a6b='insertion:'+_0x29c22f,_0x4148f5=this['_setSuggestionData']({'id':_0xaf5569,'type':_0x260a6b,'createdAt':new Date(),'authorId':_0x52eb20,'attributes':_0x2c6d88});for(const _0x5018d1 of _0x3b37d2)this['_addSuggestionMarker'](_0x260a6b,_0xaf5569,_0x52eb20,_0x5018d1,u['getMultiRangeId']());return _0x4148f5;}['markInlineFormat'](_0x19cc61,_0x58c22a,_0x4c40a8=null,_0x4f6145={}){if(_0x4c40a8=_0x4c40a8||Gt(_0x58c22a),_0x19cc61['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x285d96=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c40a8,'accept');return this['forceDefaultExecution'](()=>_0x285d96([_0x19cc61],_0x58c22a,_0x4f6145)),null;}const _0x165f38=this['editor']['plugins']['get']('Users')['me'],_0x5cc9fb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x526613,meta:_0x43b054}of this['_findSuggestions'](_0x19cc61,'insertion'))_0x43b054['isOwn']&&!_0x43b054['isInsideObject']&&_0x5cc9fb['push'](..._0x526613['getRanges']());}const _0x1f5ea5=function(_0x414d5e,_0x2d9d0e){const _0x126828=[];for(const _0xc461d of _0x2d9d0e){const _0x34d873=_0x414d5e['getIntersection'](_0xc461d);_0x34d873&&_0x126828['push'](_0x34d873);}return _0x126828;}(_0x19cc61,_0x5cc9fb),_0x2d2b07=function(_0x35a409,_0x1b5952){const _0x2b2985=[_0x35a409];for(const _0x515219 of _0x1b5952){let _0x4a9968=0x0;for(;_0x4a9968<_0x2b2985['length'];){const _0x532dbd=_0x2b2985[_0x4a9968]['getDifference'](_0x515219);_0x2b2985['splice'](_0x4a9968,0x1,..._0x532dbd),_0x4a9968+=_0x532dbd['length'];}}return _0x2b2985;}(_0x19cc61,_0x5cc9fb);_0x1f5ea5['length']&&this['_model']['change'](()=>{for(const _0x539286 of _0x1f5ea5){const _0x318239=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c40a8,'accept');this['forceDefaultExecution'](()=>_0x318239([_0x539286],_0x58c22a,_0x4f6145));}});for(const _0x33e447 of _0x2d2b07){let _0x46c1a8=null,_0x4d76ab=_0x33e447['start'],_0x84763e=_0x33e447['end'];for(const {suggestion:_0x2c8ba6,meta:_0x56066f}of this['_findSuggestions'](_0x33e447,'formatInline')){if(!_0x56066f['isOwn'])continue;if(_0x2c8ba6['subType']!=_0x4c40a8)continue;if(!zt(_0x2c8ba6,_0x4f6145))continue;const _0x463efd=_0x2c8ba6['getFirstRange']();if(_0x463efd['containsRange'](_0x33e447,!0x0))return null;_0x4d76ab=_0x4d76ab['isBefore'](_0x463efd['start'])?_0x4d76ab:_0x463efd['start'],_0x84763e=_0x84763e['isAfter'](_0x463efd['end'])?_0x84763e:_0x463efd['end'],_0x46c1a8?_0x463efd['start']['isBefore'](_0x46c1a8['getFirstRange']()['start'])?(_0x46c1a8['removeMarkers'](),_0x46c1a8=_0x2c8ba6):_0x2c8ba6['removeMarkers']():_0x46c1a8=_0x2c8ba6;}const _0x5ef565=this['_model']['createRange'](_0x4d76ab,_0x84763e);if(_0x46c1a8)this['_setSuggestionRange'](_0x46c1a8,_0x5ef565);else{const _0x1d3b5a=_0x3aa221(),_0x35234a=_0x165f38['id'];this['_setSuggestionData']({'id':_0x1d3b5a,'type':'formatInline:'+_0x4c40a8,'data':_0x58c22a,'createdAt':new Date(),'authorId':_0x35234a,'attributes':_0x4f6145}),this['_addSuggestionMarker']('formatInline:'+_0x4c40a8,_0x1d3b5a,_0x35234a,_0x5ef565);}}return null;}['markBlockFormat'](_0x308a9c,_0xbae35c,_0x44871d=[],_0x521090=null,_0x3b8d8a={}){_0xbae35c['formatGroupId']||(_0xbae35c['formatGroupId']=_0xbae35c['commandName']),_0xbae35c['multipleBlocks']=_0x308a9c['is']('range'),_0x521090=_0x521090||Gt(_0xbae35c);const _0x54c80c=_0x44871d['map'](_0x2d2eac=>Jt(_0x2d2eac,this['_model'])),_0x267316=_0x308a9c['is']('range')?_0x308a9c:Jt(_0x308a9c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4a026f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521090,'accept');return this['forceDefaultExecution'](()=>_0x4a026f([_0x267316],_0xbae35c,_0x3b8d8a)),null;}_0x54c80c['push'](_0x267316);let _0x1eb91f=!0x0;for(const _0x513af6 of _0x54c80c)if(!this['_rangeIsInLocalUserInsertion'](_0x513af6)){_0x1eb91f=!0x1;break;}if(_0x1eb91f&&'always'!==this['_trackFormatChanges']){const _0x4e4275=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521090,'accept');return this['forceDefaultExecution'](()=>_0x4e4275([_0x267316],_0xbae35c,_0x3b8d8a)),null;}let _0x18872a=null,_0x12b8c3=_0x267316['start'],_0x5493a8=_0x267316['end'];for(const {suggestion:_0x33fa77,meta:_0x388556}of this['_findSuggestions'](_0x267316,'formatBlock')){if(!_0x388556['isOwn'])continue;if(_0x388556['isNextTo']||_0x388556['containsRangeInObject']||_0x388556['isInsideObject'])continue;if(_0x33fa77['data']['formatGroupId']!=_0xbae35c['formatGroupId'])continue;if(!zt(_0x33fa77,_0x3b8d8a))continue;const _0x3e8c8e=_0x33fa77['getFirstRange']();if(_0x33fa77['subType']==_0x521090){if(_0x3e8c8e['containsRange'](_0x267316,!0x0))return null;_0x12b8c3=_0x12b8c3['isBefore'](_0x3e8c8e['start'])?_0x12b8c3:_0x3e8c8e['start'],_0x5493a8=_0x5493a8['isAfter'](_0x3e8c8e['end'])?_0x5493a8:_0x3e8c8e['end'],_0x18872a?_0x3e8c8e['start']['isBefore'](_0x18872a['getFirstRange']()['start'])?(_0x18872a['removeMarkers'](),_0x18872a=_0x33fa77):_0x33fa77['removeMarkers']():_0x18872a=_0x33fa77;}else{const _0x4aff03=_0x267316['getIntersection'](_0x3e8c8e);this['_cutOutSuggestionMarker'](_0x33fa77,_0x4aff03);}}const _0x19a606=this['editor']['plugins']['get']('Users')['me'],_0x5163ef=_0x3aa221(),_0x549686=_0x19a606['id'];if(_0x18872a)return this['_setSuggestionRange'](_0x18872a,this['_model']['createRange'](_0x12b8c3,_0x5493a8)),_0x18872a;{const _0x56e387=this['_setSuggestionData']({'id':_0x5163ef,'type':'formatBlock:'+_0x521090,'data':_0xbae35c,'createdAt':new Date(),'authorId':_0x549686,'attributes':_0x3b8d8a});return this['_addSuggestionMarker']('formatBlock:'+_0x521090,_0x5163ef,_0x549686,this['_model']['createRange'](_0x12b8c3,_0x5493a8)),_0x56e387;}}['markMultiRangeBlockFormat'](_0x1b18ed,_0x149843,_0x805d96=[],_0xca7bab=null,_0x58cce3={}){_0x149843['formatGroupId']||(_0x149843['formatGroupId']=_0x149843['commandName']);const _0x52a1a2=_0x1b18ed[0x0];_0x149843['multipleBlocks']=_0x52a1a2['is']('range'),_0xca7bab=_0xca7bab||Gt(_0x149843);const _0x56765a=_0x805d96['map'](_0x4c40ce=>Jt(_0x4c40ce,this['_model'])),_0x1a3f65=_0x52a1a2['is']('range')?_0x1b18ed:_0x1b18ed['map'](_0x4ae0e1=>Jt(_0x4ae0e1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x17510d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xca7bab,'accept');return this['forceDefaultExecution'](()=>_0x17510d(_0x1a3f65,_0x149843,_0x58cce3)),null;}_0x56765a['push'](..._0x1a3f65);let _0x5da8fd=!0x0;for(const _0x4f4fc9 of _0x56765a)if(!this['_rangeIsInLocalUserInsertion'](_0x4f4fc9)){_0x5da8fd=!0x1;break;}if(_0x5da8fd&&'always'!==this['_trackFormatChanges']){const _0x3036d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xca7bab,'accept');return this['forceDefaultExecution'](()=>_0x3036d8(_0x1a3f65,_0x149843,_0x58cce3)),null;}const _0x1c9cba=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d9807 of this['getSuggestions']()){if(_0x4d9807['author']['id']!=_0x1c9cba['id'])continue;if('formatBlock'!=_0x4d9807['type']||_0x4d9807['data']['formatGroupId']!=_0x149843['formatGroupId'])continue;if(!zt(_0x4d9807,_0x58cce3))continue;const _0x3611bf=_0x4d9807['subType']==_0xca7bab;for(let _0x5984e0=0x0;_0x5984e0<_0x1a3f65['length'];_0x5984e0++){const _0x1ed05d=_0x1a3f65[_0x5984e0];for(const _0x366b94 of _0x4d9807['getMarkers']()){const _0x15ecbf=_0x366b94['getRange']();if(_0x1ed05d['isEqual'](_0x15ecbf)){_0x3611bf?(_0x1a3f65['splice'](_0x5984e0,0x1),_0x5984e0--):_0x4d9807['removeMarker'](_0x366b94['name']);break;}}}}if(0x0==_0x1a3f65['length'])return null;const _0x209105=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xca7bab,'join');for(const _0x181a83 of this['getSuggestions']())if(_0x181a83['author']['id']==_0x1c9cba['id']&&'formatBlock'==_0x181a83['type']&&_0x181a83['data']['formatGroupId']==_0x149843['formatGroupId']&&_0x181a83['subType']==_0xca7bab&&zt(_0x181a83,_0x58cce3)&&(_0x209105(_0x181a83['getRanges'](),_0x1a3f65)||_0x209105(_0x1a3f65,_0x181a83['getRanges']()))){for(const _0x464db3 of _0x1a3f65)_0x181a83['addRange'](_0x464db3);return _0x181a83;}const _0x2b60c1=_0x3aa221(),_0x5a1891=_0x1c9cba['id'],_0x39b82c='formatBlock:'+_0xca7bab,_0x5d79be=this['_setSuggestionData']({'id':_0x2b60c1,'type':_0x39b82c,'data':_0x149843,'createdAt':new Date(),'authorId':_0x5a1891,'attributes':_0x58cce3});for(const _0x42b280 of _0x1a3f65)this['_addSuggestionMarker'](_0x39b82c,_0x2b60c1,_0x5a1891,_0x42b280,u['getMultiRangeId']());return _0x5d79be;}['markDeletion'](_0xfcfa8a,_0x158687=null,_0x3adf53={}){if(_0xfcfa8a['isCollapsed'])return null;const _0x38a0ee=this['editor']['plugins']['get']('Users')['me'],_0x53e613=new _0x23d2d0(_0xfcfa8a['start'],_0xfcfa8a['end']);for(const {suggestion:_0x5a06e4,meta:_0x42a4d6}of this['_findSuggestions'](_0x53e613,'insertion'))if(_0x42a4d6['isOwn']&&!_0x42a4d6['isNextTo']){if(_0x5a06e4['isMultiRange']){const _0x4d2018=_0x5a06e4['getRanges']()['filter'](_0x2197b0=>'$graveyard'!=_0x2197b0['root']['rootName']);_0x4d2018['every'](_0x7634ed=>_0x53e613['containsRange'](_0x7634ed,!0x0))&&_0x5a06e4['discard']();if(_0x4d2018['some'](_0x575b0e=>_0x575b0e['containsRange'](_0x53e613,!0x0))){const _0x18c32c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x158687,'accept');return this['forceDefaultExecution'](()=>_0x18c32c([_0x53e613],null,_0x3adf53)),null;}}else{const _0xdf4f0d=_0x53e613['getIntersection'](_0x5a06e4['getFirstRange']());null!==_0xdf4f0d&&_0x5a06e4['_onDiscard']([_0xdf4f0d],null,_0x3adf53);}}if(_0x53e613['detach'](),_0x53e613['isCollapsed']||'$graveyard'==_0x53e613['root']['rootName'])return null;let _0x34bd98=null,_0x1cfe4e=_0x53e613['start'],_0x79e664=_0x53e613['end'];const _0x5e533c=this['_findSuggestions'](_0x53e613,'deletion');for(const {suggestion:_0x25f9a7,meta:_0x4d5380}of _0x5e533c){const _0x4a9ddc=this['_model']['createRange'](_0x1cfe4e,_0x79e664);if(_0x4d5380['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d5380['containsRangeInObject']&&!_0x4d5380['isInsideObject'])){if(_0x25f9a7['isMultiRange']){if(!zt(_0x25f9a7,_0x3adf53))continue;let _0x1ac748=!0x0;for(const _0x5e20aa of _0x25f9a7['getRanges']()){if(_0x5e20aa['containsRange'](_0x4a9ddc,!0x0))return _0x25f9a7;_0x4a9ddc['containsRange'](_0x5e20aa)||(_0x1ac748=!0x1);}_0x1ac748&&_0x25f9a7['discard']();}else{const _0xe7960e=_0x25f9a7['getFirstRange']();if(_0xe7960e['containsRange'](_0x4a9ddc,!0x0))return _0x25f9a7;if(!zt(_0x25f9a7,_0x3adf53)){_0x4a9ddc['containsRange'](_0xe7960e)?_0x25f9a7['removeMarkers']():_0xe7960e['containsPosition'](_0x1cfe4e)?_0x1cfe4e=_0xe7960e['end']:_0xe7960e['containsPosition'](_0x79e664)&&(_0x79e664=_0xe7960e['start']);continue;}_0x1cfe4e=_0x1cfe4e['isBefore'](_0xe7960e['start'])?_0x1cfe4e:_0xe7960e['start'],_0x79e664=_0x79e664['isAfter'](_0xe7960e['end'])?_0x79e664:_0xe7960e['end'],_0x3adf53=Object['assign']({},_0x25f9a7['attributes']),_0x34bd98?_0xe7960e['start']['isBefore'](_0x34bd98['getFirstRange']()['start'])?(_0x34bd98['removeMarkers'](),_0x34bd98=_0x25f9a7):_0x25f9a7['removeMarkers']():_0x34bd98=_0x25f9a7;}}}if(_0x34bd98)return this['_setSuggestionRange'](_0x34bd98,this['_model']['createRange'](_0x1cfe4e,_0x79e664)),_0x34bd98;{const _0x2bfafe=_0x3aa221(),_0x553128=this['_model']['createRange'](_0x1cfe4e,_0x79e664),_0x4527e4=_0x38a0ee['id'],_0x3894ba=_0x158687?'deletion:'+_0x158687:'deletion',_0x513c04=this['_setSuggestionData']({'id':_0x2bfafe,'type':_0x3894ba,'createdAt':new Date(),'authorId':_0x4527e4,'attributes':_0x3adf53});return this['_addSuggestionMarker'](_0x3894ba,_0x2bfafe,_0x4527e4,_0x553128),_0x513c04;}}['markMultiRangeDeletion'](_0x40ad3d,_0x520a99='multi',_0xf79b19={}){const _0x4199f9=this['editor']['plugins']['get']('Users')['me'],_0x3b30db=_0x40ad3d['map'](_0x46638f=>new _0x23d2d0(_0x46638f['start'],_0x46638f['end'])),_0x5cdd95=new Set();for(const {suggestion:_0x4f4fe6,meta:_0x39c0f3}of this['_findSuggestions'](_0x3b30db,'insertion'))_0x39c0f3['isOwn']&&!_0x39c0f3['isNextTo']&&_0x5cdd95['add'](_0x4f4fe6);for(const _0x2b3b45 of _0x5cdd95)if(_0x2b3b45['isMultiRange']){const _0xbf41ff=_0x2b3b45['getRanges']();(!_0x2b3b45['attributes']||!_0x2b3b45['attributes']['skipNestingCheck'])&&(_0xbf41ff['every'](_0x361496=>_0x3b30db['some'](_0x4e7b29=>_0x4e7b29['containsRange'](_0x361496,!0x0)))&&_0x2b3b45['discard']());if(_0x3b30db['every'](_0x22102a=>_0xbf41ff['some'](_0x349680=>_0x349680['containsRange'](_0x22102a,!0x0)))){const _0x42f50d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x520a99,'accept');return this['forceDefaultExecution'](()=>_0x42f50d(_0x40ad3d,null,_0xf79b19)),null;}}else{const _0x3f8947=_0x2b3b45['getFirstRange']();_0x3b30db['some'](_0x48182e=>_0x48182e['containsRange'](_0x3f8947,!0x0))&&_0x2b3b45['discard']();if(_0x3b30db['every'](_0x35d137=>_0x3f8947['containsRange'](_0x35d137,!0x0))){const _0x40b57b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x520a99,'accept');return this['forceDefaultExecution'](()=>_0x40b57b(_0x3b30db,null,_0xf79b19)),null;}}const _0xe38be7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x520a99,'join');let _0x12bc36=null;for(const _0x2e46fa of this['getSuggestions']())if(_0x2e46fa['author']['id']==_0x4199f9['id']&&_0x2e46fa['isInContent']&&'deletion'==_0x2e46fa['type']&&_0x2e46fa['subType']==_0x520a99&&zt(_0x2e46fa,_0xf79b19)&&(_0xe38be7(_0x2e46fa['getRanges'](),_0x3b30db)||_0xe38be7(_0x3b30db,_0x2e46fa['getRanges']()))){if(_0x12bc36){if(_0x2e46fa['commentThread']&&_0x2e46fa['commentThread']['length'])continue;for(const _0x33db6f of _0x2e46fa['getRanges']())_0x12bc36['isIntersectingWithRange'](_0x33db6f)||_0x12bc36['addRange'](_0x33db6f);_0x2e46fa['removeMarkers']();}else{_0x12bc36=_0x2e46fa;for(const _0x5bc462 of _0x3b30db)_0x2e46fa['isIntersectingWithRange'](_0x5bc462)||_0x2e46fa['addRange'](_0x5bc462);}}if(_0x12bc36)return _0x12bc36;_0x5cdd95['clear']();for(const {suggestion:_0x33a7b3,meta:_0x1bffdb}of this['_findSuggestions'](_0x3b30db,'deletion'))_0x1bffdb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1bffdb['containsRangeInObject']&&!_0x1bffdb['isInsideObject'])&&zt(_0x33a7b3,_0xf79b19)&&_0x5cdd95['add'](_0x33a7b3);for(const _0x874f2a of _0x5cdd95){const _0x2b5718=_0x874f2a['getRanges']();if(!_0xf79b19||!_0xf79b19['skipNestingCheck']){if(_0x3b30db['every'](_0x341e08=>_0x2b5718['some'](_0x1886ca=>_0x1886ca['containsRange'](_0x341e08,!0x0))))return _0x874f2a;}(!_0x874f2a['attributes']||!_0x874f2a['attributes']['skipNestingCheck'])&&(_0x2b5718['every'](_0x655ddf=>_0x3b30db['some'](_0x2cd088=>_0x2cd088['containsRange'](_0x655ddf,!0x0)))&&_0x874f2a['discard']());}const _0x4ed581=_0x3aa221(),_0x1b494a=_0x4199f9['id'],_0x5b26ac='deletion:'+_0x520a99,_0x2aa1f3=this['_setSuggestionData']({'id':_0x4ed581,'type':_0x5b26ac,'createdAt':new Date(),'authorId':_0x1b494a,'attributes':_0xf79b19});for(const _0x2f816e of _0x3b30db)_0x2f816e['detach'](),_0x2f816e['isCollapsed']||'$graveyard'==_0x2f816e['root']['rootName']||this['_addSuggestionMarker'](_0x5b26ac,_0x4ed581,_0x1b494a,_0x2f816e,u['getMultiRangeId']());return _0x2aa1f3;}['markAttributeChange'](_0x262854,_0x40d75c,_0x9828b5,_0xd7db31,_0x23bfb7){if(_0x262854['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4bcb81=this['editor']['plugins']['get']('Users')['me']['id'],_0x3703c2=Array['from'](this['_suggestions']['values']())['filter'](_0x297126=>'attribute'==_0x297126['type']&&_0x297126['data']['key']==_0x40d75c&&_0x297126['isIntersectingWithRange'](_0x262854));if('default'===this['_trackFormatChanges']){const _0x244699=this['_findSuggestions'](_0x262854,'insertion')['filter'](({meta:_0x1992db})=>_0x1992db['isOwn']&&!_0x1992db['isInsideObject']&&!_0x1992db['isNextTo'])['map'](({suggestion:_0x5e5374})=>_0x5e5374);_0x3703c2['unshift'](..._0x244699);}const _0x19dfdd=new Map([[_0x262854,_0x9828b5]]);for(const _0x1a6781 of _0x3703c2){const _0x3c544c='attribute'==_0x1a6781['type']?_0x1a6781['data']['oldValue']:void 0x0,_0x321061=_0x1a6781['getFirstRange'](),_0x6376b=Array['from'](_0x19dfdd['keys']())['find'](_0x589a1d=>_0x589a1d['isIntersecting'](_0x321061));if(!_0x6376b)continue;const _0x200dc2=_0x6376b['getDifference'](_0x321061);this['_isBlockAttribute'](_0x40d75c)&&'insertion'==_0x1a6781['type']&&0x0!=_0x200dc2['length']||(_0x19dfdd['delete'](_0x6376b),_0x200dc2['forEach'](_0x533c64=>{_0x19dfdd['set'](_0x533c64,_0x9828b5);}),'insertion'!=_0x1a6781['type']&&_0x3c544c!=_0xd7db31&&_0x19dfdd['set'](_0x6376b['getIntersection'](_0x321061),_0x3c544c));}const _0x4a7d4d=[];for(const [_0x57705d,_0x6e6ba3]of _0x19dfdd){const _0x13e107=_0x3aa221(),_0x52446a={'key':_0x40d75c,'oldValue':_0x6e6ba3,'newValue':_0xd7db31};_0x40d75c['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':_0x40d75c});const _0x1ad524=('attribute:'+(_0x40d75c+'|'+Gt({'newValue':_0xd7db31})))['substring'](0x0,0x3c),_0x303121=this['_setSuggestionData']({'id':_0x13e107,'type':_0x1ad524,'data':_0x52446a,'createdAt':new Date(),'authorId':_0x4bcb81,'attributes':_0x23bfb7});_0x4a7d4d['push'](_0x303121),this['_addSuggestionMarker'](_0x1ad524,_0x13e107,_0x4bcb81,_0x57705d);}return _0x4a7d4d;}['enableDefaultAttributesIntegration'](_0x51367d){this['enableCommand'](_0x51367d,(_0xd84b80,..._0x4247ea)=>{this['_recordAttributeChanges'](()=>{_0xd84b80(..._0x4247ea);});});}['registerBlockAttribute'](_0x5ed0fe){this['_blockAttributeKeys']['add'](_0x5ed0fe);}['registerInlineAttribute'](_0x27f76e){this['_inlineAttributeKeys']['add'](_0x27f76e);}['_getAttributeKey'](_0x3af640){return'attribute'==_0x3af640['type']?_0x3af640['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x240c14,_0x1caa98){const _0x187cf9=_0x240c14['getFirstMarker']();this['_model']['change'](_0x328dbf=>{_0x328dbf['updateMarker'](_0x187cf9,{'range':_0x1caa98});});}['_addThreadToSuggestion'](_0x58d36e){const _0x5be08e=_0x58d36e['id'],_0x55e520=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5be08e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x55e520,'threadId':_0x5be08e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x17b107=this['_commentsRepository']['getCommentThread'](_0x5be08e);_0x17b107['unbind']('isRemovable'),_0x17b107['isRemovable']=!0x1,_0x58d36e['commentThread']=_0x17b107;}['_checkSuggestionCorrectness'](_0x256f65,_0x3fd149,_0x2db360,_0x4a52a9){if(_0x256f65['type']!=_0x3fd149||_0x256f65['subType']!=_0x2db360||_0x256f65['creator']['id']!=_0x4a52a9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1267e3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x319500,_0x267c14){const _0x3b43f1=_0x319500['getFirstRange']();if(_0x267c14['isEqual'](_0x3b43f1))_0x319500['removeMarkers']();else{if(_0x3b43f1['containsRange'](_0x267c14)){const _0x5ba2f4=this['_model']['createPositionAt'](_0x267c14['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x319500,this['_model']['createRange'](_0x3b43f1['start'],_0x5ba2f4));const _0x5f5b41=_0x3aa221(),_0x2dcac5=_0x319500['creator']['id'],_0x423402=_0x319500['type']+':'+_0x319500['subType'];this['_setSuggestionData']({'id':_0x5f5b41,'type':_0x423402,'createdAt':new Date(),'authorId':_0x2dcac5,'data':_0x319500['data'],'attributes':_0x319500['attributes']});const _0x51b1d9=this['_model']['createPositionAt'](_0x267c14['end']['parent'],'after'),_0x4c5e8f=this['_model']['createRange'](_0x51b1d9,_0x3b43f1['end']);this['_addSuggestionMarker'](_0x423402,_0x5f5b41,_0x2dcac5,_0x4c5e8f);}else{if(_0x3b43f1['containsPosition'](_0x267c14['start'])){const _0x37fe72=this['_model']['createPositionAt'](_0x267c14['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x319500,this['_model']['createRange'](_0x3b43f1['start'],_0x37fe72));}else{const _0x59e669=this['_model']['createPositionAt'](_0x267c14['end']['parent'],'after');this['_setSuggestionRange'](_0x319500,this['_model']['createRange'](_0x59e669,_0x3b43f1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25ab6c){for(const {suggestion:_0x44c86b,meta:_0x45e4ac}of this['_findSuggestions'](_0x25ab6c,'insertion')){if(!_0x45e4ac['isOwn'])continue;const _0x2d5894=_0x44c86b['getRanges']();for(const _0x2d289e of _0x2d5894)if(!_0x25ab6c['getDifference'](_0x2d289e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x54b3b6){const _0xed49e9=this['editor']['plugins']['get']('Users')['getUser'](_0x54b3b6);if(!_0xed49e9)throw new _0x1267e3('track-changes-user-not-found',this);return _0xed49e9;}['_getExternalAuthor'](_0x9bf97a){const _0x2b679d=this['editor']['plugins']['get']('Users'),_0x4738bb=_0x116e81('external:'+_0x9bf97a),_0x37c988=_0x2b679d['getUser'](_0x4738bb);return _0x37c988||_0x2b679d['addUser']({'id':_0x4738bb,'name':_0x9bf97a});}['_createSuggestion'](_0x4f9a21,_0x33b3d5,_0x1821be,_0x55ec59,_0x32e921){const _0x410bd8=this['_getAuthorFromId'](_0x55ec59),_0x102643=this['_suggestionFactory']['buildSuggestion'](_0x4f9a21,_0x33b3d5,_0x1821be,_0x410bd8,_0x32e921,_0x566d07=>{this['_updateSuggestionData'](_0x1821be,{'attributes':_0x566d07});const _0x18b688=this['getSuggestion'](_0x1821be);this['_joinWithAdjacentSuggestions'](new Set([_0x18b688])),this['_refreshSuggestionsChain'](new Set([_0x18b688]));});return this['listenTo'](_0x102643,'accept',()=>{this['_updateSuggestionData'](_0x1821be,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x102643,'discard',()=>{this['_updateSuggestionData'](_0x1821be,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1821be,_0x102643),this['_suggestionState']['set'](_0x102643,'notReady'),_0x102643;}['_splitMarkerName'](_0x5cbf65){const _0x63ff3a=_0x5cbf65['split'](':');return{'group':_0x63ff3a[0x0],'type':_0x63ff3a[0x1],'subType':_0x63ff3a['length']>=0x5?_0x63ff3a[0x2]:null,'id':_0x63ff3a['length']<0x5?_0x63ff3a[0x2]:_0x63ff3a[0x3],'authorId':_0x63ff3a['length']<0x5?_0x63ff3a[0x3]:_0x63ff3a[0x4],'markerCount':0x6==_0x63ff3a['length']?_0x63ff3a[0x5]:null};}['_breakSuggestionMarker'](_0x4eff25,_0x3b8d9f,_0x5f2038){const _0x587525=_0x4eff25['getFirstRange'](),_0x36ef03=_0x587525['start'],_0x354785=_0x587525['end'];this['_setSuggestionRange'](_0x4eff25,this['_model']['createRange'](_0x36ef03,_0x3b8d9f));const _0x52d39b=_0x3aa221(),_0x160d1d=_0x4eff25['creator']['id'],_0x495e28=_0x4eff25['type']+(_0x4eff25['subType']?':'+_0x4eff25['subType']:'');this['_setSuggestionData']({'id':_0x52d39b,'type':_0x495e28,'createdAt':new Date(),'authorId':_0x160d1d,'originalSuggestionId':_0x4eff25['id'],'attributes':_0x4eff25['attributes'],'data':_0x4eff25['data']});const _0x5b55b8=this['_getAttributeKey'](_0x4eff25);('formatBlock'==_0x4eff25['type']||_0x5b55b8&&this['_isBlockAttribute'](_0x5b55b8))&&(_0x5f2038=this['_model']['createPositionBefore'](_0x5f2038['parent'])),this['_addSuggestionMarker'](_0x495e28,_0x52d39b,_0x160d1d,this['_model']['createRange'](_0x5f2038,_0x354785));}['_findSuggestions'](_0x3c653b,_0xcfacd4=null){const _0x5a4b6a=[],_0x5d0329=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c653b)||(_0x3c653b=[_0x3c653b]);for(const _0x36d870 of this['getSuggestions']()){if(!_0x36d870['isInContent'])continue;if(_0xcfacd4&&_0x36d870['type']!=_0xcfacd4)continue;let _0x1d43a9=!0x1;for(const _0x5beed9 of _0x36d870['getRanges']()){for(const _0x147bc1 of _0x3c653b){const _0x4b2e74=_0x147bc1['start']['isEqual'](_0x5beed9['end'])||_0x147bc1['end']['isEqual'](_0x5beed9['start']);if(_0x4b2e74||_0x147bc1['getIntersection'](_0x5beed9)){const _0x3c6af0=_0x147bc1['containsRange'](_0x5beed9)&&Ut(this['_model']['schema'],_0x5beed9['start'],_0x147bc1),_0x2cd481=_0x5beed9['containsRange'](_0x147bc1)&&Ut(this['_model']['schema'],_0x147bc1['start'],_0x5beed9);_0x5a4b6a['push']({'suggestion':_0x36d870,'meta':{'isOwn':_0x5d0329==_0x36d870['author'],'isNextTo':_0x4b2e74,'isInsideObject':_0x3c6af0,'containsRangeInObject':_0x2cd481}}),_0x1d43a9=!0x0;break;}}if(_0x1d43a9)break;}}return _0x5a4b6a;}['_addSuggestionMarker'](_0x3ea62c,_0x7c918d,_0x85a361,_0xe6c140,_0x252dcc){this['_model']['change'](_0x29019d=>{let _0x264b8b='suggestion:'+_0x3ea62c+':'+_0x7c918d+':'+_0x85a361;_0x252dcc&&(_0x264b8b=_0x264b8b+':'+_0x252dcc),_0x29019d['addMarker'](_0x264b8b,{'range':_0xe6c140,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26ba31){const _0x3eeebf=_0x26ba31['previous'],_0x3dd79a=_0x26ba31['next'];_0x26ba31['previous']=null,_0x26ba31['next']=null,null!=_0x3eeebf&&_0x3eeebf['next']==_0x26ba31&&(_0x3eeebf['next']=_0x3dd79a),null!=_0x3dd79a&&_0x3dd79a['previous']==_0x26ba31&&(_0x3dd79a['previous']=_0x3eeebf),'ready'==this['_suggestionState']['get'](_0x26ba31)&&(this['_suggestionState']['set'](_0x26ba31,'removed'),this['fire']('suggestionUnloaded',_0x26ba31,_0x3eeebf,_0x3dd79a));}['_setSuggestionData'](_0x3572ac){const _0x3befd8=_0x3572ac['id'],_0x4f7c87=this['addSuggestionData'](_0x3572ac);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f0b8a=this['editor']['plugins']['get']('PendingActions'),_0x2bcc01=_0x4f7c87['hasComments'],_0x51ea32=_0x4f7c87['subType']?_0x4f7c87['type']+':'+_0x4f7c87['subType']:_0x4f7c87['type'],_0x438858=this['editor']['locale'],_0x3bd8fb=_0x4f0b8a['add'](o(_0x438858,'PENDING_ACTION_SUGGESTION')),_0x198f1c={'id':_0x3befd8,'type':_0x51ea32,'hasComments':_0x2bcc01,'data':_0x3572ac['data']||null,'originalSuggestionId':_0x3572ac['originalSuggestionId']||null,'attributes':_0x4f7c87['attributes']};this['_adapter']['addSuggestion'](_0x198f1c)['then'](_0x33ec9f=>{_0x4f7c87['_saved']=!0x0,_0x4f0b8a['remove'](_0x3bd8fb),_0x33ec9f&&_0x33ec9f['createdAt']&&(this['_suggestions']['get'](_0x3befd8)['createdAt']=_0x33ec9f['createdAt']);})['catch'](_0x534fc0=>{throw _0x11a33c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4f7c87['discard']();}),_0x4f7c87['stopListening'](),this['_suggestions']['delete'](_0x4f7c87['id']),this['_suggestionState']['delete'](_0x4f7c87),_0x534fc0;});}return _0x4f7c87;}['_isBlockAttribute'](_0x271d35){return this['_blockAttributeKeys']['has'](_0x271d35);}['_updateSuggestionData'](_0x119c9d,_0x1d9b4b){const _0x84bdc9=this['editor']['plugins']['get']('PendingActions'),_0x53f275=this['getSuggestion'](_0x119c9d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x53f275['_saved']){const _0x56d332=_0x84bdc9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x119c9d,_0x1d9b4b)['then'](()=>{_0x84bdc9['remove'](_0x56d332);});}else _0x53f275['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x119c9d,_0x1d9b4b);});}}['_getSuggestionData'](_0x1519bb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1267e3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1519bb);}['_handleNewSuggestionMarker'](_0x4530ef){const {id:_0x51ee5f,type:_0x1b2f70,subType:_0x5b34f6,authorId:_0xb7ded1}=this['_splitMarkerName'](_0x4530ef),_0x172e3b=this['_suggestions']['get'](_0x51ee5f)||this['_createSuggestion'](_0x1b2f70,_0x5b34f6,_0x51ee5f,_0xb7ded1,{});switch(this['_checkSuggestionCorrectness'](_0x172e3b,_0x1b2f70,_0x5b34f6,_0xb7ded1),this['_suggestionState']['get'](_0x172e3b)){case'notReady':this['_getSuggestionData'](_0x51ee5f)['then'](_0xfd092a=>{let _0x1e9ca4=Promise['resolve']();_0xfd092a['hasComments']&&(_0x1e9ca4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x51ee5f})),_0x1e9ca4['then'](()=>{this['addSuggestionData'](_0xfd092a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x172e3b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x51ee5f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x172e3b,'ready'),this['fire']('suggestionLoaded',_0x172e3b);break;case'ready':this['fire']('suggestionChanged',_0x172e3b);}return _0x172e3b['addMarkerName'](_0x4530ef),_0x172e3b;}['_refreshSuggestionsChain'](_0x15ac15){const _0x12c58c=Array['from'](_0x15ac15),_0x32245f=_0x12c58c['filter'](_0x2a41c3=>'attribute'==_0x2a41c3['type']);this['_refreshAttributeSuggestionsChain'](_0x32245f);const _0x26ea3f=_0x12c58c['filter'](_0x317dc1=>!_0x317dc1['isMultiRange']&&'attribute'!=_0x317dc1['type']),_0x5caf88=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28be92=>!_0x28be92['isMultiRange']&&'attribute'!=_0x28be92['type']),_0x4480d0=_0x5caf88['filter'](_0x3c3a8d=>!_0x15ac15['has'](_0x3c3a8d)),_0x5bdc04=new Map(_0x5caf88['map'](_0x3af5d0=>[_0x3af5d0,this['_suggestionFactory']['getSuggestionCallback'](_0x3af5d0['type'],_0x3af5d0['subType'],'chain')])),_0x219fd6=new Map(_0x5caf88['map'](_0x1a49df=>[_0x1a49df,_0x1a49df['getFirstRange']()])),_0x413056=new Set(),_0x5613ad=new Set();for(let _0x4c65b5=0x0;_0x4c65b5<_0x26ea3f['length'];_0x4c65b5++)_0x682b9e(_0x26ea3f[_0x4c65b5],_0x26ea3f,_0x4c65b5+0x1);for(let _0x17ff32=0x0;_0x17ff32<_0x26ea3f['length'];_0x17ff32++)_0x682b9e(_0x26ea3f[_0x17ff32],_0x4480d0,0x0);const _0x4d55d3=new Set();for(let _0x118a6a=0x0;_0x118a6a<_0x26ea3f['length'];_0x118a6a++){const _0x36b725=_0x26ea3f[_0x118a6a];!_0x5613ad['has'](_0x36b725)&&_0x36b725['previous']&&(_0x4d55d3['add'](_0x36b725['previous']),_0x36b725['previous']['next']===_0x36b725&&(_0x36b725['previous']['next']=null),_0x36b725['previous']=null),!_0x413056['has'](_0x36b725)&&_0x36b725['next']&&(_0x4d55d3['add'](_0x36b725['next']),_0x36b725['next']['previous']===_0x36b725&&(_0x36b725['next']['previous']=null),_0x36b725['next']=null);}function _0x682b9e(_0x3d5e5e,_0x5d393c,_0x579d4f){for(let _0x15d994=_0x579d4f;_0x15d994<_0x5d393c['length'];_0x15d994++){const _0x34ff5f=_0x2c7a3e(_0x3d5e5e,_0x5d393c[_0x15d994]);_0x34ff5f&&(_0x34ff5f[0x0]['next']=_0x34ff5f[0x1],_0x34ff5f[0x1]['previous']=_0x34ff5f[0x0],_0x413056['add'](_0x34ff5f[0x0]),_0x5613ad['add'](_0x34ff5f[0x1]));}}function _0x2c7a3e(_0x3a523a,_0x2fee87){if(_0x3a523a['author']['id']!==_0x2fee87['author']['id'])return null;const _0x44b3a8=_0x5bdc04['get'](_0x3a523a)(_0x3a523a,_0x2fee87,_0x219fd6['get'](_0x3a523a),_0x219fd6['get'](_0x2fee87));if(!_0x44b3a8)return null;return _0x5bdc04['get'](_0x2fee87)(_0x3a523a,_0x2fee87,_0x219fd6['get'](_0x3a523a),_0x219fd6['get'](_0x2fee87))?_0x44b3a8[0x1]['commentThread']&&_0x44b3a8[0x1]['commentThread']['length']?null:_0x44b3a8:null;}_0x4d55d3['size']&&this['_refreshSuggestionsChain'](_0x4d55d3);}['_refreshAttributeSuggestionsChain'](_0x2c4ab6){if(0x0==_0x2c4ab6['length'])return;const _0xd5ffdc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f35ec=>'attribute'==_0x1f35ec['type']&&_0x1f35ec['_isDataLoaded']),_0x2eb1c3=[],_0x4623db=new Map();for(const _0x1f217a of _0xd5ffdc){const _0x7176f1=_0x116e81(_0x1f217a['attributes']);_0x4623db['has'](_0x7176f1)||(_0x4623db['set'](_0x7176f1,_0x2eb1c3['length']),_0x2eb1c3['push']([]));const _0x5d021d=_0x4623db['get'](_0x7176f1);_0x2eb1c3[_0x5d021d]['push'](_0x1f217a);}!(function(){_0x2eb1c3['sort']((_0xa7a977,_0x4b0d37)=>{const _0x3f51c5=_0xa7a977[0x0]['createdAt'],_0x154f01=_0x4b0d37[0x0]['createdAt'];return _0x3f51c5==_0x154f01?_0xa7a977[0x0]['attributes']['groupId']<_0x4b0d37[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f51c5<_0x154f01?-0x1:0x1;});for(const _0x338cb8 of _0x2eb1c3)_0x338cb8['sort']((_0x127f9b,_0x10cd34)=>_0x127f9b['id']<_0x10cd34['id']?-0x1:0x1);}());for(let _0x412e82=0x0;_0x412e82<_0x2eb1c3['length'];_0x412e82++){if(0x0==_0x2eb1c3[_0x412e82]['length'])continue;const _0x17d3e9=[];for(let _0x4156b6=_0x412e82+0x1;_0x4156b6<_0x2eb1c3['length'];_0x4156b6++)0x0!=_0x2eb1c3[_0x4156b6]['length']&&_0x2d87ec(_0x2eb1c3[_0x412e82],_0x2eb1c3[_0x4156b6])&&_0x17d3e9['push'](_0x4156b6);for(const _0x100098 of _0x17d3e9)_0x2eb1c3[_0x412e82]=_0x2eb1c3[_0x412e82]['concat'](_0x2eb1c3[_0x100098]),_0x2eb1c3[_0x100098]=[];}for(const _0x122399 of _0x2eb1c3)for(let _0x102601=0x0;_0x102601<_0x122399['length'];_0x102601++){const _0x1a3984=_0x122399[_0x102601+0x1]||null;_0x122399[_0x102601]['next']!==_0x1a3984&&(_0x122399[_0x102601]['next']=_0x1a3984);}for(const _0x57dd5a of _0x2eb1c3)for(let _0x3b683c=0x0;_0x3b683c<_0x57dd5a['length'];_0x3b683c++){const _0x4c6ba6=_0x57dd5a[_0x3b683c-0x1]||null;_0x57dd5a[_0x3b683c]['previous']!==_0x4c6ba6&&(_0x57dd5a[_0x3b683c]['previous']=_0x4c6ba6);}function _0x2d87ec(_0x30a66d,_0x24984e){if(_0x30a66d[0x0]['attributes']['groupId']!==_0x24984e[0x0]['attributes']['groupId']&&_0x30a66d[0x0]['author']!==_0x24984e[0x0]['author'])return!0x1;if(!function(_0x237005,_0x31d0bd){if(!_0x237005['hasComments']&&!_0x31d0bd['hasComments'])return!0x0;if(_0x237005['hasComments']&&_0x31d0bd['hasComments'])return!0x1;if(_0x237005['hasComments']&&_0x31d0bd['createdAt']<_0x237005['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x31d0bd['hasComments']&&_0x237005['createdAt']<_0x31d0bd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x30a66d[0x0],_0x24984e[0x0]))return!0x1;const _0x32a145=xt(_0x30a66d[0x0]['attributes'],'groupId'),_0x5a6f3f=xt(_0x24984e[0x0]['attributes'],'groupId');if(!_0xf91c94(_0x32a145,_0x5a6f3f))return!0x1;return!!_0x30a66d['every'](_0x58fcf7=>_0x24984e['some'](_0x1e0bdf=>_0x58fcf7['getFirstRange']()['isEqual'](_0x1e0bdf['getFirstRange']())))&&_0x24984e['every'](_0x34c321=>_0x30a66d['some'](_0xe45f61=>_0x34c321['getFirstRange']()['isEqual'](_0xe45f61['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x496c3e){const _0x399276=Array['from'](_0x496c3e),_0x16994d=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe205da=_0x16994d['filter'](_0x47a047=>!_0x496c3e['has'](_0x47a047)),_0x2dc1ee=new Map(_0x399276['map'](_0x156a9f=>[_0x156a9f,this['_suggestionFactory']['getSuggestionCallback'](_0x156a9f['type'],_0x156a9f['subType'],'join')])),_0xf6b2f7=new Map(_0x16994d['map'](_0xcf21c=>[_0xcf21c,_0xcf21c['getRanges']()]));for(let _0x352699=0x0;_0x352699<_0x399276['length'];_0x352699++){if(_0xe7544d(this,_0x399276[_0x352699],_0x399276,_0x352699+0x1))return!0x0;}for(let _0x1b2748=0x0;_0x1b2748<_0x399276['length'];_0x1b2748++){if(_0xe7544d(this,_0x399276[_0x1b2748],_0xe205da,0x0))return!0x0;}return!0x1;function _0xe7544d(_0x1063f0,_0x122a05,_0x3ab8a4,_0x5de8){for(let _0x382571=_0x5de8;_0x382571<_0x3ab8a4['length'];_0x382571++){const _0x4229ae=_0x3ab8a4[_0x382571];if(_0x4229ae['type']!==_0x122a05['type']||_0x4229ae['author']['id']!==_0x122a05['author']['id']||_0x4229ae['subType']!==_0x122a05['subType'])continue;if(!qt(_0x122a05,_0x4229ae))continue;if('attribute'==_0x122a05['type']&&_0x122a05['data']['oldValue']!=_0x4229ae['data']['oldValue'])continue;if('attribute'==_0x122a05['type']&&_0x1063f0['_isBlockAttribute'](_0x122a05['data']['key']))continue;if('formatBlock'==_0x122a05['type']){const _0x11c7b0=_0x1063f0['editor']['model'],_0x32c452=_0x122a05['getContainedElement']();if(_0x32c452&&(_0x11c7b0['schema']['isObject'](_0x32c452)||_0x11c7b0['schema']['isLimit'](_0x32c452)))continue;}const _0x363c24=_0x2dc1ee['get'](_0x122a05),_0xe6e81a=_0xf6b2f7['get'](_0x122a05),_0x21eba5=_0xf6b2f7['get'](_0x4229ae),_0x31d956=_0x122a05['commentThread']&&_0x122a05['commentThread']['length'],_0x3fea3b=_0x4229ae['commentThread']&&_0x4229ae['commentThread']['length'];if(!_0x31d956&&_0x363c24(_0x21eba5,_0xe6e81a))return _0x1063f0['_joinSuggestions'](_0x4229ae,_0x122a05),_0xf6b2f7['delete'](_0x122a05),!0x0;if(!_0x3fea3b&&_0x363c24(_0xe6e81a,_0x21eba5))return _0x1063f0['_joinSuggestions'](_0x122a05,_0x4229ae),_0xf6b2f7['delete'](_0x4229ae),!0x0;}return!0x1;}}['_joinSuggestions'](_0x363e13,_0x437a89){if(_0x363e13['isMultiRange']){for(const _0x4d847e of _0x437a89['getRanges']())_0x363e13['addRange'](_0x4d847e);}else{const _0x42d21b=_0x437a89['getFirstRange']()['end'];this['_setSuggestionRange'](_0x363e13,this['_model']['createRange'](_0x363e13['getFirstRange']()['start'],_0x42d21b));}_0x437a89['removeMarkers']();}['_getMarkerAnnouncementText'](_0x56c12f,_0xcab3d2,_0x4a0f20){const _0x2b0654=_0x56c12f['startsWith']('format')||_0x56c12f['startsWith']('attribute')?'FORMATTING':_0x56c12f['toUpperCase']();return o(this['editor']['locale'],_0xcab3d2+'_'+_0x2b0654+'_SUGGESTION_ANNOUNCEMENT',_0x4a0f20);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b3256=this['editor'];if(!_0x5b3256['ui'])return;const {ariaLiveAnnouncer:_0x4d588b}=_0x5b3256['ui'];_0xe8c575(this['_model'],({left:_0x2dedfe,entered:_0x23e28a})=>{for(const _0x336cd5 of _0x2dedfe){const {group:_0x119613,type:_0x3a9f1a}=this['_splitMarkerName'](_0x336cd5['name']);if('suggestion'===_0x119613){_0x4d588b['announce'](this['_getMarkerAnnouncementText'](_0x3a9f1a,'LEAVE'));break;}}for(const _0x1db92c of _0x23e28a){const {group:_0x2f5988,type:_0x3d6ca6}=this['_splitMarkerName'](_0x1db92c['name']);if('suggestion'===_0x2f5988){_0x4d588b['announce'](this['_getMarkerAnnouncementText'](_0x3d6ca6,'ENTER',_0x35273a(_0x369e65)));break;}}});}['_processAttributeChanges'](_0x4e1249){if(this['_recordAttributeSuggestions'])return!0x1;const _0x330b29=this['editor'],_0x44a0e8=_0x330b29['model']['document']['differ']['getChanges']();if(0x0==_0x44a0e8['length'])return!0x1;const _0x45b5c9=[],_0x68d220=_0x44a0e8['filter'](_0x5222b8=>'attribute'==_0x5222b8['type']),_0x557609=_0x44a0e8['filter'](_0x2323e3=>'insert'==_0x2323e3['type']&&'$text'!=_0x2323e3['name']),_0x492c4d=_0x44a0e8['filter'](_0x544761=>'remove'==_0x544761['type']&&'$text'!=_0x544761['name']);for(const _0x133ad8 of _0x68d220)_0x45b5c9['push']({'key':_0x133ad8['attributeKey'],'newValue':_0x133ad8['attributeNewValue'],'oldValue':_0x133ad8['attributeOldValue'],'range':Lt(_0x133ad8['range'],_0x330b29['model'])});for(const _0x44e8f8 of _0x557609){const _0x5e75b0=_0x492c4d['find'](_0x3ba0db=>_0x3ba0db['position']['isEqual'](_0x44e8f8['position']));_0x5e75b0&&_0x45b5c9['push']({'key':m,'newValue':_0x44e8f8['name'],'oldValue':_0x5e75b0['name'],'range':_0x330b29['model']['createRangeOn'](_0x44e8f8['position']['nodeAfter'])});}return 0x0!=_0x45b5c9['length']&&this['_reduceExistingSuggestions'](_0x4e1249,_0x45b5c9);}['_processAttributeSuggestions'](_0x1ade2d){let _0x39fa04=!0x1;const _0x375f96=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38fa83=>_0x38fa83['data']['newRange']&&_0x38fa83['name']['startsWith']('suggestion:attribute:'));for(const _0x58dc75 of _0x375f96){const {subType:_0x48f909,id:_0x4c85c2}=this['_splitMarkerName'](_0x58dc75['name']),_0x4f5564=_0x48f909['split']('|')[0x0];for(const _0x415c25 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x415c25['id']!=_0x4c85c2&&'attribute'==_0x415c25['type']&&_0x415c25['data']&&_0x415c25['data']['key']==_0x4f5564&&_0x415c25['getFirstRange']()['isIntersecting'](_0x58dc75['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x415c25,_0x58dc75['data']['newRange'],_0x1ade2d),_0x39fa04=!0x0);}return _0x39fa04;}['_recordAttributeChanges'](_0xf5d89d){this['_recordAttributeSuggestions']=!0x0,_0xf5d89d();}['_isRegisteredAttribute'](_0x3abb74){const _0x5d265e=this['_isBlockAttribute'](_0x3abb74),_0x130134=this['_inlineAttributeKeys']['has'](_0x3abb74);return _0x5d265e||_0x130134;}['_reduceExistingSuggestions'](_0x282c9b,_0x4fdc10){if(0x0==_0x4fdc10['length'])return!0x1;let _0x2835a2=!0x1;for(const _0x236929 of _0x4fdc10){const _0xb198d4=this['_findSuggestions'](_0x236929['range'],'attribute')['filter'](_0x398b64=>!_0x398b64['meta']['isNextTo'])['map'](_0x4b9f39=>_0x4b9f39['suggestion']),_0x2d418b=_0x116e81({'newValue':_0x236929['newValue']});_0xb198d4['filter'](_0x142546=>{const [_0x234c3c,_0x5a8deb]=_0x142546['subType']['split']('|');return _0x234c3c==_0x236929['key']&&_0x5a8deb!=_0x2d418b;})['forEach'](_0x4b7d79=>{this['_reduceSuggestionAttributeRange'](_0x4b7d79,_0x236929['range'],_0x282c9b),_0x2835a2=!0x0;});}return _0x2835a2;}['_reduceSuggestionAttributeRange'](_0x331073,_0x3837a5,_0x362e6a){const _0x43675e=_0x331073['getFirstRange']()['getDifference'](_0x3837a5);0x0!==_0x43675e['length']?0x1!==_0x43675e['length']?this['_breakSuggestionMarker'](_0x331073,_0x3837a5['start'],_0x3837a5['end']):this['_setSuggestionRange'](_0x331073,_0x43675e[0x0]):_0x362e6a['removeMarker'](_0x331073['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42301d){this['_editor']=_0x42301d,this['_model']=_0x42301d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c9f45,_0x4ffd33,_0x1615dc,_0x1b1658,_0x3f51ed,_0x3dfd14){return new u(this['_model'],{'type':_0x5c9f45,'subType':_0x4ffd33,'id':_0x1615dc,'author':_0x1b1658,'creator':_0x1b1658,'attributes':_0x3f51ed,'onAttributesChange':_0x3dfd14,'onAccept':(..._0x5a5980)=>this['getSuggestionCallback'](_0x5c9f45,_0x4ffd33,'accept')(..._0x5a5980),'onDiscard':(..._0x38f0c1)=>this['getSuggestionCallback'](_0x5c9f45,_0x4ffd33,'discard')(..._0x38f0c1)});}['registerCustomCallback'](_0x1beba0,_0x171fed,_0x9b0d0d,_0x4139ec){const _0x2bd52c=_0x1beba0+':'+_0x171fed+':'+_0x9b0d0d;this['_customCallbacks']['set'](_0x2bd52c,_0x4139ec);}['getSuggestionCallback'](_0x237b57,_0x5026d2,_0x13c05b){const _0x351518=_0x237b57+':'+_0x5026d2+':'+_0x13c05b;return this['_customCallbacks']['get'](_0x351518)||this['_defaultCallbacks']['get'](_0x237b57+':'+_0x13c05b);}['_registerDefaultCallbacks'](){const _0x406cab=()=>!0x1,_0x13023a=_0x1c0eac=>{_0x1c0eac['sort']((_0x14c212,_0x109994)=>_0x14c212['start']['isBefore'](_0x109994['start'])?0x1:-0x1),this['_model']['change'](_0x30c60e=>{for(const _0x5c9ec7 of _0x1c0eac){let _0x1ab307;_0x1ab307=_0x5c9ec7['end']['isAtEnd']&&_0x5c9ec7['end']['parent']==_0x5c9ec7['start']['nodeAfter']?_0x30c60e['createSelection'](_0x5c9ec7['start']['nodeAfter'],'on'):_0x30c60e['createSelection'](_0x5c9ec7),this['_model']['deleteContent'](_0x1ab307,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x7ccee6=(_0x500b3c,_0x4e7628)=>{_0x4e7628&&this['_model']['change'](_0x2993e3=>{const {commandName:_0x4db863,commandParams:_0x14d57d=[]}=_0x4e7628,_0x125ab2=_0x500b3c['map'](_0x360bd1=>(Vt(_0x360bd1)&&(_0x360bd1=this['_model']['createRange'](_0x360bd1['end'])),_0x360bd1))['filter'](_0x1d1941=>'$graveyard'!==_0x1d1941['root']['rootName']);if(_0x125ab2['length']<0x1)return;const _0x17a614=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x80f122=>_0x23d2d0['fromRange'](_0x80f122));_0x2993e3['setSelection'](_0x125ab2);for(const _0x4e68f8 of this['_editor']['commands']['commands']())_0x4e68f8['refresh']();_0x14d57d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4db863,..._0x14d57d);const _0x2c998c=_0x17a614['filter'](_0x453ad3=>'$graveyard'!=_0x453ad3['root']['rootName']);_0x2c998c['length']>0x0&&_0x2993e3['setSelection'](_0x2c998c);for(const _0x3c3d1d of _0x17a614)_0x3c3d1d['detach']();});},_0x54e541=(_0x505b3a,_0x396b76)=>0x1==_0x505b3a['length']&&0x1==_0x396b76['length']&&_0x505b3a[0x0]['end']['isEqual'](_0x396b76[0x0]['start']),_0x260ed4=(_0x8eaeaf,_0x2fa455,_0x5c8fb2,_0x26a94d)=>Ht(_0x8eaeaf,_0x2fa455,_0x5c8fb2,_0x26a94d)?[_0x8eaeaf,_0x2fa455]:Ht(_0x2fa455,_0x8eaeaf,_0x26a94d,_0x5c8fb2)?[_0x2fa455,_0x8eaeaf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x406cab),this['_defaultCallbacks']['set']('insertion:discard',_0x13023a),this['_defaultCallbacks']['set']('insertion:join',_0x54e541),this['_defaultCallbacks']['set']('insertion:chain',_0x260ed4),this['_defaultCallbacks']['set']('deletion:accept',_0x13023a),this['_defaultCallbacks']['set']('deletion:discard',_0x406cab),this['_defaultCallbacks']['set']('deletion:join',_0x54e541),this['_defaultCallbacks']['set']('deletion:chain',_0x260ed4),this['_defaultCallbacks']['set']('formatInline:accept',_0x7ccee6),this['_defaultCallbacks']['set']('formatInline:discard',_0x406cab),this['_defaultCallbacks']['set']('formatInline:join',_0x54e541),this['_defaultCallbacks']['set']('formatInline:chain',_0x406cab),this['_defaultCallbacks']['set']('formatBlock:accept',_0x7ccee6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x406cab),this['_defaultCallbacks']['set']('formatBlock:join',_0x54e541),this['_defaultCallbacks']['set']('formatBlock:chain',_0x406cab),this['_defaultCallbacks']['set']('attribute:accept',_0x406cab),this['_defaultCallbacks']['set']('attribute:discard',(_0x314e18,_0x39a73a)=>{if(!_0x39a73a)return;const _0x220198=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3ddd92=>{if(_0x39a73a['key']==m)for(const _0x392b8a of _0x314e18){const _0x2035cf=_0x392b8a['start']['nodeAfter'],_0x3af2fd=_0x39a73a['oldValue'];_0x3ddd92['rename'](_0x2035cf,_0x3af2fd);}else{if(_0x220198['_isBlockAttribute'](_0x39a73a['key'])){for(const _0x298060 of _0x314e18)void 0x0!==_0x39a73a['oldValue']?_0x3ddd92['setAttribute'](_0x39a73a['key'],_0x39a73a['oldValue'],_0x298060['start']['nodeAfter']):_0x3ddd92['removeAttribute'](_0x39a73a['key'],_0x298060['start']['nodeAfter']);}else{for(const _0x3e5b46 of _0x314e18)_0x39a73a['oldValue']?_0x3ddd92['setAttribute'](_0x39a73a['key'],_0x39a73a['oldValue'],_0x3e5b46):_0x3ddd92['removeAttribute'](_0x39a73a['key'],_0x3e5b46);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x54e541);}}function Ut(_0x41ac36,_0x3e1e8c,_0x564f29){for(const _0x126f03 of _0x3e1e8c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x126f03['root']==_0x126f03)return!0x1;if(!_0x564f29['containsItem'](_0x126f03))return!0x1;if(_0x41ac36['isObject'](_0x126f03)||_0x41ac36['isLimit'](_0x126f03))return!0x0;}return!0x1;}function Vt(_0x3b171b){return _0x3b171b['end']['parent']==_0x3b171b['start']['nodeAfter']&&_0x3b171b['end']['isAtStart'];}function Pt(_0x1f8219,_0xa19f00,_0x4bb3e0,_0x403512){const _0x3c8c0d=_0x1758be=>!_0x1758be['item']['is']('$textProxy')&&!_0x403512['isObject'](_0x1758be['item']),_0x5443f2=_0x1f8219['start']['getLastMatchingPosition'](_0x3c8c0d),_0x1b6eb2=_0x1f8219['end']['getLastMatchingPosition'](_0x3c8c0d,{'direction':'backward'});return(!_0x1f8219['start']['isEqual'](_0x5443f2)||!_0x1f8219['end']['isEqual'](_0x1b6eb2))&&(_0x5443f2['isBefore'](_0x1b6eb2)?_0x4bb3e0['updateMarker'](_0xa19f00,{'range':_0x4bb3e0['createRange'](_0x5443f2,_0x1b6eb2)}):_0x4bb3e0['removeMarker'](_0xa19f00),!0x0);}function Gt(_0x399d19){return _0x116e81(_0x399d19);}function Ft(_0x204a8f){const _0x429d88=_0x204a8f['start']['nodeAfter'];return _0x429d88&&_0x429d88['is']('element');}function Lt(_0x465c0d,_0x4eea3f){return null==_0x465c0d['end']['nodeBefore']&&_0x465c0d['end']['parent']==_0x465c0d['start']['nodeAfter']?Jt(_0x465c0d['start']['nodeAfter'],_0x4eea3f):_0x465c0d;}function Jt(_0x41f6fa,_0x427857){const _0x147e4c=_0x427857['schema']['isObject'](_0x41f6fa)||_0x427857['schema']['isSelectable'](_0x41f6fa);return _0x427857['createRange'](_0x427857['createPositionAt'](_0x41f6fa,'before'),_0x147e4c?_0x427857['createPositionAfter'](_0x41f6fa):_0x427857['createPositionAt'](_0x41f6fa,'end'));}function Ht(_0x8acf83,_0x5f1744,_0x335e21,_0x27b7dc){return!!qt(_0x8acf83,_0x5f1744)&&_0x335e21['end']['isEqual'](_0x27b7dc['start']);}function qt(_0x580e47,_0x58130e){if(!_0x580e47['_isDataLoaded']||!_0x58130e['_isDataLoaded'])return!0x1;const _0x37f597=new Set(Object['keys'](_0x580e47['attributes'])),_0x1dfb08=new Set(Object['keys'](_0x58130e['attributes']));if(_0x37f597['delete']('groupId'),_0x1dfb08['delete']('groupId'),0x0==_0x37f597['size']&&0x0==_0x1dfb08['size'])return!0x0;if(_0x37f597['size']!=_0x1dfb08['size'])return!0x1;const _0x4e6027={..._0x580e47['attributes']},_0x3d4d8a={..._0x58130e['attributes']};return delete _0x4e6027['groupId'],delete _0x3d4d8a['groupId'],JSON['stringify'](_0x4e6027)==JSON['stringify'](_0x3d4d8a);}function zt(_0x54294b,_0x4603d5){const _0x2e497a=Kt(_0x54294b['attributes']),_0x1ea13d=Kt(_0x4603d5);if(!_0x54294b['_isDataLoaded'])return!0x1;for(const _0x5d2a37 of Object['keys'](_0x1ea13d))if(!_0xf91c94(_0x2e497a[_0x5d2a37],_0x1ea13d[_0x5d2a37]))return!0x1;return!0x0;}function Kt(_0x321616){const _0x327d38=Object['assign']({},_0x321616);return delete _0x327d38['skipNestingCheck'],delete _0x327d38['tablePasteChainId'],_0x327d38;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0xe3577e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39168f,_0x29b8ad,_0x251a64,_0x456d24){super(),this['model']=_0x29b8ad,this['view']=_0x251a64,this['commentThreadController']=_0x456d24,this['_editor']=_0x39168f,this['_acceptCommand']=_0x39168f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39168f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e590c,_0x2242a5)=>_0x2e590c||_0x2242a5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5dea4d=>_0x5dea4d&&this['_editor']['model']['canEditAt'](_0x29b8ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xf40b4d=>_0xf40b4d&&this['_editor']['model']['canEditAt'](_0x29b8ad['getRanges']())),this['_pendingAction']=null,_0x251a64['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x251a64,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x251a64,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x251a64,'change:isDirty',()=>{_0x251a64['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 _0x304d4d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x304d4d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x37b64a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5a81da,_0x5b5a4a,_0x465a58,_0x50cda5){super(_0x5a81da),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26dc88(_0x5a81da,o(_0x5a81da,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5b5a4a['authoredAt']),this['bind']('authoredAt')['to'](_0x5b5a4a),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',_0x5b5a4a,'authoredAt',this,'descriptionParts',(_0x86ed89,_0x263f9a,_0x5b57c0)=>{const _0xa93fd1=_0x5b57c0['map'](_0x5856ca=>ns(_0x5856ca['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x86ed89-0x1,_0x5b5a4a['author']['name'],_0x263f9a?_0x50cda5['formatDateTime'](_0x263f9a):'',new DOMParser()['parseFromString'](_0xa93fd1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5bd361(),this['focusTracker']=new _0x760b4c(),this['keystrokes']=new _0x4bc3b6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x72287f=>_0x72287f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5b5a4a,this['_localUser']=_0x465a58,this['_config']=_0x50cda5,_0x50cda5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x34aa7d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5eb808}=this['_config'];this['commentsListView']=new _0x5eb808(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',_0x2a4610=>_0x2a4610+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2ddd4f,_0x1c5d28)=>_0x2ddd4f||!!_0x1c5d28);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fb54a}=this['_config'],_0x40c5c2=new _0x2fb54a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x439564=_0x40c5c2['commentInputView'];return _0x40c5c2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x439564,'value',(_0x1f2864,_0x4e7752,_0x482595)=>!!_0x482595||_0x1f2864&&!_0x4e7752),_0x439564['on']('submit',(_0xc335f9,_0x5a1a02)=>{this['fire']('addComment',_0x5a1a02),_0x439564['editor']['setData']('');}),_0x439564['on']('cancel',()=>this['focus']()),_0x439564['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x40c5c2;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x4107b7,_0x2c6dbd,_0x2408f3,_0x20f1fb){super(_0x4107b7,_0x2c6dbd,_0x2408f3,_0x20f1fb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x194a32=>_0x194a32&&_0x194a32[0x0]?_0x194a32[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xc0ba23,_0x5652a8)=>{let _0x5a62e9='';for(const _0x3f6e01 of _0xc0ba23)_0x5a62e9+='<p>'+ns(_0x3f6e01['content'],_0x3f6e01['color'])+'</p>';return _0x5652a8?_0x5a62e9:ti(_0x5a62e9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x20f1fb['SuggestionView'](_0x4107b7,_0x2c6dbd,{'formatDateTime':_0x20f1fb['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 _0x2ec908=this['bindTemplate'],_0x4ea535=[this['suggestionView']];return this['commentsListView']&&_0x4ea535['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ea535['push'](this['commentThreadInputView']),_0x4ea535['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2ec908['if']('isActive','ck-suggestion-wrapper--active'),_0x2ec908['to']('type',_0x45453e=>'ck-suggestion-'+_0x45453e),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':_0x2ec908['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ea535};}['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 _0x37b64a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x39a42e,_0x400d6d,_0x4d44d8){super(_0x39a42e),this['_model']=_0x400d6d,this['_config']=_0x4d44d8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x400d6d),this['acceptButton']=this['_createButton'](o(_0x39a42e,'Accept\x20suggestion'),_0x52f5a6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x39a42e,'Discard\x20suggestion'),_0x52f5a6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x45d7ac(_0x39a42e,_0x400d6d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5bd361([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x760b4c(),this['keystrokes']=new _0x4bc3b6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d5589=>_0x5d5589['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2d7a6b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2d7a6b['innerHTML']=this['description'],this['on']('change:description',(_0x46892e,_0x32c66e,_0x1e2d2e)=>{_0x2d7a6b['innerHTML']=_0x1e2d2e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x63dc5b=this['bindTemplate'],_0x54157c=[{'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':_0x63dc5b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x63dc5b['to']('authoredAt',_0x4cb7e9=>this['_config']['formatDateTime'](_0x4cb7e9))}]}]},{'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']&&_0x54157c['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':_0x54157c}]};}['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'](_0x112bdd,_0x343d35,_0x133568,_0x30d775,_0x25fdad){const _0x3d37ad=new _0x566bb0(this['locale']);return _0x3d37ad['set']({'label':_0x112bdd,'icon':_0x343d35,'tooltip':!0x0,'tooltipPosition':_0x25fdad}),_0x3d37ad['extendTemplate']({'attributes':{'class':_0x133568}}),_0x3d37ad['on']('execute',()=>{this['fire'](_0x30d775,this['_model']['id']);}),_0x3d37ad;}['_setupKeyboardNavigation'](){const _0x466653=this['element'];this['keystrokes']['listenTo'](_0x466653);for(const _0x30e2f2 of this['focusables'])this['focusTracker']['add'](_0x30e2f2['element']),this['keystrokes']['listenTo'](_0x30e2f2['element']);this['keystrokes']['set']('enter',(_0x35cb6d,_0xec5b8)=>{_0x466653===_0x35cb6d['target']&&(this['focusCycler']['focusFirst'](),_0xec5b8());}),this['keystrokes']['set']('esc',(_0x3285ad,_0x240579)=>{_0x466653!==_0x3285ad['target']&&(this['focus'](),_0x240579());});}}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 _0x240e00{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x59b3bc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x316e47){super(_0x316e47),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x50b1e2=this['editor']['config'];_0x50b1e2['define']('trackChanges.SuggestionThreadView',de),_0x50b1e2['define']('trackChanges.SuggestionView',ue),_0x50b1e2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x50b1e2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x32e538,_0x5bf368){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2fdeb8,_0x2e2de0]of this['_handleControllerBuffer']){const _0xa4dc5b=this['_suggestionToController']['has'](_0x2fdeb8);_0xa4dc5b||_0x2e2de0?_0xa4dc5b&&_0x2e2de0&&this['_destroyController'](_0x2fdeb8):this['_initializeController'](_0x2fdeb8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x32e538,_0x5bf368);}['init'](){const _0x1f8626=this['editor'],_0x1e0079=_0x1f8626['plugins']['get']('TrackChangesEditing'),_0x2d6dcf=_0x1f8626['plugins']['get']('Annotations'),_0x892a9c=_0x1f8626['plugins']['get']('EditorAnnotations'),_0x1c0fb0=_0x1f8626['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x892a9c['addSourceCollector'](()=>{const _0x396fe7=[];for(const [_0x4578f9,_0x302864]of Array['from'](this['_suggestionToController'])){const _0x292150=_0x4578f9['getAllAdjacentSuggestions'](),_0x505735=[];for(const _0x2f0bec of _0x292150){if(!_0x2f0bec['isInContent'])continue;if(_0x2f0bec['isMultiRange']){_0x505735['push'](..._0x2f0bec['getRanges']());continue;}const _0x17f15e=_0x2f0bec['getFirstRange']();if(_0x505735['length']>0x0){const _0x5249df=_0x505735[0x0]['getJoined'](_0x17f15e);if(_0x5249df){_0x505735[0x0]=_0x5249df;continue;}}_0x505735['push'](_0x17f15e);}_0x396fe7['push']([_0x302864['view'],_0x505735]);}return _0x396fe7;}),this['listenTo'](_0x1e0079,'suggestionLoaded',(_0x23d283,_0x20cb11)=>{this['listenTo'](_0x20cb11,'change:previous',(_0xf231f9,_0x19cb8d,_0x49ad2c,_0x3b5a25)=>{_0x20cb11['isInContent']&&(null==_0x49ad2c?(this['_updateController'](_0x3b5a25['head']),this['_handleSuggestionControllerDelayed'](_0x20cb11,!0x1)):(this['_updateController'](_0x49ad2c['head']),null==_0x3b5a25&&this['_handleSuggestionControllerDelayed'](_0x20cb11,!0x0)));}),null!==_0x20cb11['previous']?this['_updateController'](_0x20cb11['head']):this['_handleSuggestionControllerDelayed'](_0x20cb11,!0x1);}),this['listenTo'](_0x1e0079,'suggestionUnloaded',(_0x3b096d,_0x3e9f6b,_0x8f35bf)=>{this['stopListening'](_0x3e9f6b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e9f6b),this['_suggestionToController']['has'](_0x3e9f6b)&&this['_destroyController'](_0x3e9f6b),_0x8f35bf&&this['_updateController'](_0x8f35bf['head']);}),this['listenTo'](_0x1e0079,'suggestionChanged',(_0x59833d,_0x50a7b5)=>{this['_updateController'](_0x50a7b5);}),this['listenTo'](_0x2d6dcf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1c0fb0,'addComment',(_0x23c421,{threadId:_0x550bbe,isFromAdapter:_0x4d0d70})=>{if(_0x4d0d70||!_0x1e0079['hasSuggestion'](_0x550bbe))return;const _0x4bb3f0=_0x1e0079['getSuggestion'](_0x550bbe);this['_suggestionToController']['get'](_0x4bb3f0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x630d14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5479c1;for(const _0x575b1e in _0x630d14){const _0x387fa4=_0x575b1e,_0x995612=_0x630d14[_0x387fa4];if('trackChangesLicenseKeyValid'==_0x995612||'trackChangesLicenseKeyInvalid'==_0x995612||'trackChangesLicenseKeyExpired'==_0x995612||'trackChangesLicenseKeyDomainLimit'==_0x995612||'trackChangesLicenseKeyNotAllowed'==_0x995612||'trackChangesLicenseKeyEvaluationLimit'==_0x995612||'trackChangesLicenseKeyTrialLimit'==_0x995612||'trackChangesLicenseKeyDevelopmentLimit'==_0x995612||'trackChangesLicenseKeyUsageLimit'==_0x995612){delete _0x630d14[_0x387fa4],_0x5479c1=_0x995612,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5479c1&&_0x630d14['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5479c1&&_0x630d14['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5479c1&&_0x630d14['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5bf682=this['editor']['plugins']['get']('Annotations'),_0x5704df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5207e1=Array['from'](_0x5bf682['activeAnnotations'],_0x3553b1=>_0x3553b1['innerView'])['filter'](_0x51a5e0=>this['_viewToController']['has'](_0x51a5e0)),_0x3223ff=[];for(const _0x4dbb7e of _0x5207e1){const _0x124ec7=this['_viewToController']['get'](_0x4dbb7e)['model']['getAllAdjacentSuggestions']();_0x3223ff['push'](..._0x124ec7['reduce']((_0x23b1dc,_0x370f44)=>[..._0x23b1dc,..._0x370f44['getMarkerNames']()],[]));}_0x5704df['activeMarkers']=_0x3223ff;}['_addUIComponentsToFactory'](){const _0x410359=this['editor'],_0x50f22a=_0x410359['locale'],_0x2b256d=o(_0x50f22a,'Track\x20changes'),_0x4cde75=new _0x1fff91([{'type':'switchbutton','model':new _0x494abe({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b256d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x314c00 of _0x4cde75)if(pe(_0x314c00)){const _0x9e7f66=_0x410359['commands']['get'](_0x314c00['model']['commandName']);_0x314c00['model']['bind']('isOn','isEnabled')['to'](_0x9e7f66,'value','isEnabled');}_0x410359['ui']['componentFactory']['add']('trackChanges',_0x88b7d2=>this['_createToolbarButton'](_0x88b7d2,_0x4cde75,_0x2b256d)),_0x410359['ui']['componentFactory']['add']('menuBar:trackChanges',_0x23b0b5=>this['_createMenuBarMenu'](_0x23b0b5,_0x4cde75,_0x2b256d));}['_createToolbarButton'](_0x5b5144,_0xcaeb5a,_0x5ce3f7){const _0x28285c=_0x24df7b(_0x5b5144,_0x323a15),_0x349809=this['editor']['commands']['get']('trackChanges');_0x28285c['buttonView']['set']({'tooltip':_0x5ce3f7,'label':_0x5ce3f7,'icon':Ce}),_0x28285c['buttonView']['bind']('isOn')['to'](_0x349809,'value'),_0x28285c['buttonView']['on']('execute',()=>{_0x349809['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x28285c,_0xcaeb5a,{'role':'menu'});const _0x5c03ce=[];for(const _0x3f0fd4 of _0xcaeb5a)pe(_0x3f0fd4)&&_0x5c03ce['push'](this['editor']['commands']['get'](_0x3f0fd4['model']['commandName']));const _0x24e018=_0x28285c['buttonView'];return _0x24e018['actionView']['unbind']('isEnabled'),_0x24e018['arrowView']['unbind']('isEnabled'),_0x24e018['actionView']['bind']('isEnabled')['to'](_0x349809,'isEnabled'),_0x24e018['arrowView']['bind']('isEnabled')['toMany'](_0x5c03ce,'isEnabled',(..._0x15ed97)=>_0x15ed97['some'](_0x254086=>_0x254086)),_0x28285c['on']('execute',_0xc5c82=>{this['editor']['execute'](_0xc5c82['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x28285c;}['_createMenuBarMenu'](_0x57f2a7,_0x358874,_0x156d5f){const _0x5ecf14=new _0x33a197(_0x57f2a7),_0x5e630b=this['editor']['commands']['get']('trackChanges');_0x5ecf14['buttonView']['set']({'label':_0x156d5f,'icon':Ce});const _0x58402a=new _0x523cdb(_0x57f2a7);for(const _0x2def10 of _0x358874){if('separator'==_0x2def10['type']){_0x58402a['items']['add'](new _0x2d46c5(_0x57f2a7));continue;}const _0x5a9ec4=new _0x5ae6b8(_0x57f2a7,_0x5ecf14),_0x18298d=new _0x4eb13b(_0x57f2a7),_0x4c8cc4=_0x2def10['model'];_0x18298d['bind'](...Object['keys'](_0x4c8cc4))['to'](_0x4c8cc4),_0x18298d['delegate']('execute')['to'](_0x5ecf14),_0x18298d['on']('execute',()=>{this['editor']['execute'](_0x4c8cc4['commandName']),this['editor']['editing']['view']['focus']();}),_0x5a9ec4['children']['add'](_0x18298d),_0x58402a['items']['add'](_0x5a9ec4);}return _0x5ecf14['bind']('isEnabled')['to'](_0x5e630b,'isEnabled'),_0x5ecf14['panelView']['children']['add'](_0x58402a),_0x5ecf14;}['_initializeController'](_0xac4b88){const _0x255c67=this['editor'],_0x5cb067=_0x255c67['config'],_0xde8e62=_0x255c67['plugins']['get']('Annotations'),_0x4bb228=_0x255c67['plugins']['get']('CommentsRepository'),_0x42383c=_0x255c67['plugins']['get']('EditorAnnotations'),_0xd3f088=_0x255c67['plugins']['get'](_0x59b3bc)['me'],_0x21813f=_0x5cb067['get']('trackChanges')['SuggestionThreadView'],_0x5c5d90=_0x5cb067['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x563a06,CommentThreadInputView:_0x384ca3}=_0x255c67['plugins']['get']('CommentsUI');let _0x449650,_0x1bb23f,_0x57e385;this['_annotationViews']['has'](_0xac4b88['id'])?(_0x1bb23f=this['_annotationViews']['get'](_0xac4b88['id']),_0x449650=_0x1bb23f['mainView']):(_0x449650=new _0x21813f(_0x255c67['locale'],_0xac4b88,_0xd3f088,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5cb067['get']('comments.editorConfig'),'licenseKey':_0x5cb067['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5cb067['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5cb067['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5cb067['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x247c41(_0x5cb067['get']('locale')),'CommentView':_0x5cb067['get']('comments')['CommentView'],'CommentsListView':_0x563a06,'CommentThreadInputView':_0x384ca3,'SuggestionView':_0x5c5d90}),_0x449650['suggestionView']['acceptButton']['on']('execute',()=>{_0x255c67['editing']['view']['focus']();}),_0x449650['suggestionView']['discardButton']['on']('execute',()=>{_0x255c67['editing']['view']['focus']();}),_0x1bb23f=_0xde8e62['createAnnotationView'](this['editor']['locale'],_0x449650),_0x1bb23f['bind']('isDirty')['to'](_0x449650,'isDirty'),_0x1bb23f['bind']('length')['to'](_0x449650),_0x1bb23f['bind']('type')['to'](_0x449650,'type',_0x17d8ef=>'suggestion-'+_0x17d8ef),_0x449650['on']('escape',()=>{_0x57e385['fire']('escape');}),this['_annotationViews']['set'](_0xac4b88['id'],_0x1bb23f));const _0x2a8eee=_0x4bb228['createCommentThreadController'](_0xac4b88['commentThread'],_0x449650),_0x2de980=new ge(_0x255c67,_0xac4b88,_0x449650,_0x2a8eee),_0x19afb2=_0xac4b88['getAllAdjacentSuggestions']()['filter'](_0x44aa12=>_0x44aa12['isInContent']);_0x449650['descriptionParts']=_0x255c67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19afb2),this['_suggestionToController']['set'](_0xac4b88,_0x2de980),this['_viewToController']['set'](_0x449650,_0x2de980),_0x57e385=_0xde8e62['createAnnotation']({'view':_0x1bb23f,'target':()=>{const _0x5acecd=[],_0x5b36a7=_0xac4b88['getAllAdjacentSuggestions']()['filter'](_0x27c169=>_0x27c169['isInContent']);for(const _0x5244ab of _0x5b36a7)_0x5acecd['push'](..._0x5244ab['getMarkers']());return _0x5ced91(_0x255c67['editing'],_0x5acecd);},'type':()=>'suggestion-'+_0x2de980['view']['type']}),_0x4bb228['_bindAnnotationToEditors'](_0x449650,_0x57e385),_0xde8e62['add'](_0x57e385),_0x42383c['registerAnnotation'](_0x57e385);}['_destroyController'](_0x3e721a){const _0x196bc6=this['editor']['plugins']['get']('CommentsRepository'),_0x354b3f=this['editor']['plugins']['get']('Annotations'),_0x8d946b=this['_suggestionToController']['get'](_0x3e721a),_0x735744=_0x8d946b['view'],_0x1e9fbd=_0x354b3f['getByInnerView'](_0x735744);_0x196bc6['_unbindEditors'](_0x735744),_0x1e9fbd&&_0x354b3f['remove'](_0x1e9fbd),this['_suggestionToController']['delete'](_0x3e721a),this['_viewToController']['delete'](_0x735744),_0x8d946b['destroy']();}['_updateController'](_0x24167f){if(!_0x24167f['isInContent']||!this['_suggestionToController']['has'](_0x24167f))return;const _0x9ebd44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed03e=this['_suggestionToController']['get'](_0x24167f),_0x523af5=_0x24167f['getAllAdjacentSuggestions']();_0x3ed03e['view']['descriptionParts']=_0x9ebd44['descriptionFactory']['getDescriptions'](_0x523af5);}['destroy'](){for(const _0x1c3ce0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c3ce0);for(const _0x546ef7 of this['_annotationViews']['values']())_0x546ef7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x371f5e){return'model'in _0x371f5e;}class k extends _0x240e00{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5ad026){this['editor']['plugins']['get'](p)['adapter']=_0x5ad026;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5075c2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5075c2);}['getSuggestions']({skipNotAttached:_0x4dc0e6=!0x1,toJSON:_0x31c1e1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4dc0e6,'toJSON':_0x31c1e1});}['getSuggestion'](_0x44b1f1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x44b1f1);}}const w=['Pagination'];class T extends _0x240e00{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x44ca61=this['editor'];if(_0x44ca61['config']['define']('trackChangesData.editorCreator',_0xf3108a=>{const _0xb55f07=_0x44ca61['model']['document']['getRootNames']()['reduce']((_0x24739f,_0x63cf5d)=>(_0x24739f[_0x63cf5d]='',_0x24739f),{});return _0x44ca61['constructor']['create'](_0xb55f07,_0xf3108a);}),'function'!=typeof _0x44ca61['config']['get']('trackChangesData')['editorCreator'])throw new _0x1267e3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3e2b0e){return N(this['editor'],!0x0,_0x3e2b0e);}['getDataWithDiscardedSuggestions'](_0x44a4b2){return N(this['editor'],!0x1,_0x44a4b2);}}class D extends _0x240e00{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b6f60){function _0x24a522(_0x12659d){return _0x12659d['map'](_0x131d1d=>String['fromCharCode'](_0x131d1d))['join']('');}super(_0x2b6f60),this['result']='end',_0x2b6f60[_0x24a522([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24a522([0x76,0x69,0x65,0x77])][_0x24a522([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24a522([0x61,0x75,0x74,0x6f]),_0x2b6f60[_0x24a522([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24a522([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24a522([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24a522([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24a522([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(_0x435500){return void 0x0!==_0x435500['getRootsAttributes'];}async function N(_0x4304b2,_0x3b27a0,_0x34ebf5){const _0x1e1b22=_0x53f1e9(_0x4304b2,w);_0x1e1b22['plugins']['push'](p,D),_0x1e1b22['rootsAttributes']=v(_0x4304b2)?_0x4304b2['getRootsAttributes']():void 0x0;const _0x27de3d=document['createDocumentFragment'](),_0x1236fa=_0x4304b2['config']['get']('trackChangesData')['editorCreator'],_0x3dd042=await _0x1236fa(_0x1e1b22,()=>function(_0x3bdc8c){const _0x2bdf6e=document['createElement']('div');return _0x3bdc8c['appendChild'](_0x2bdf6e),_0x2bdf6e;}(_0x27de3d));!function(_0x235cef,_0x9a5e43){const _0x5f12c5=_0x235cef['model']['document']['getRootNames']()['reduce']((_0x5ba46a,_0x355f59)=>(_0x5ba46a[_0x355f59]=_0x235cef['data']['get']({'rootName':_0x355f59}),_0x5ba46a),{}),_0xfe3d1b=_0x235cef['plugins']['get']('Users')['users']['map'](_0x1a2d9a=>({'id':_0x1a2d9a['id'],'name':_0x1a2d9a['name']})),_0x2a7cf2=_0x235cef['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a4304=_0x235cef['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bde08=_0x9a5e43['plugins']['get']('Users'),_0x3ac1a9=_0x9a5e43['plugins']['get']('TrackChangesEditing'),_0x40c828=_0x9a5e43['plugins']['get']('CommentsRepository');for(const _0x316f79 of _0x40c828['getCommentThreads']())_0x316f79['remove']();for(const _0x250f9b of _0xfe3d1b)_0x2bde08['getUser'](_0x250f9b['id'])||_0x2bde08['addUser'](_0x250f9b);_0x2bde08['me']||_0x2bde08['useAnonymousUser']();for(const _0xc6a70c of _0x5a4304)_0x40c828['addCommentThread'](_0xc6a70c);for(const _0x1107ba of _0x2a7cf2)_0x3ac1a9['addSuggestionData'](_0x1107ba);_0x9a5e43['data']['set'](_0x5f12c5);}(_0x4304b2,_0x3dd042),_0x3dd042['execute'](_0x3b27a0?'acceptAllSuggestions':'discardAllSuggestions');const _0x2118ba=v(_0x3dd042)?_0x3dd042['getFullData'](_0x34ebf5):_0x3dd042['data']['get'](_0x34ebf5);return await _0x3dd042['destroy'](),_0x2118ba;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};