@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240424.0 → 0.0.0-nightly-20240425.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/build/track-changes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sq.umd.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as _0x4de685,PendingActions as _0x4a11f7,icons as _0x30119b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a5c42,ObservableMixin as _0x2ed6b7,uid as _0x2c7d4a,insertToPriorityArray as _0x1003ed,priorities as _0x1ba778,logWarning as _0x470b78,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x57fb33,View as _0x36a6bf,ButtonView as _0x17c31e,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x194443,hashObject as _0x59c610,surroundingMarkersDetector as _0x55af74,trimHtml as _0x105c2b,UserView as _0x44bf95,getDateTimeFormatter as _0x3da504,getAllMarkersDomElementsSorted as _0x438fce,sanitizeEditorConfig as _0x56a645}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x15c3f1,LiveRange as _0x3d4179,LivePosition as _0x43ced0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x56a69a,toWidget as _0x48624}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x241d3f,set as _0x73c0d9,isEqual as _0x218615,unset as _0x76b095,omit as Bt}from'lodash-es';import{Delete as _0x24d530,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5ec658,ShiftEnter as _0x39eacd}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x2619ce of this['editor']['commands']['commands']())_0x2619ce['affectsData']&&!this['_enabledCommands']['has'](_0x2619ce)&&_0x2619ce['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d8453 of this['editor']['commands']['commands']())_0x1d8453['affectsData']&&!this['_enabledCommands']['has'](_0x1d8453)&&_0x1d8453['clearForceDisabled']('TrackChangesCommand');}constructor(_0x1176b9,_0x405a41){super(_0x1176b9),this['_enabledCommands']=_0x405a41,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9b53da){const _0x4195e7=this['_suggestions']['get'](_0x9b53da);if(!_0x4195e7)throw new _0x2a5c42('track-changes-accept-suggestion-not-found',this);const _0x189ec5=_0x4195e7['getRanges']();this['editor']['model']['canEditAt'](_0x189ec5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4195e7);}constructor(_0x53002a,_0x3dc4b4){super(_0x53002a),this['_suggestions']=_0x3dc4b4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x211177){const _0x18b4cb=this['_suggestions']['get'](_0x211177);if(!_0x18b4cb)throw new _0x2a5c42('track-changes-discard-suggestion-not-found',this);const _0x20cc7f=_0x18b4cb['getRanges']();this['editor']['model']['canEditAt'](_0x20cc7f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x18b4cb);}constructor(_0x17d74f,_0x52e582){super(_0x17d74f),this['_suggestions']=_0x52e582,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x49f72f){return _0x49f72f['sort']((_0x3a043c,_0x110965)=>'deletion'==_0x3a043c['type']&&'deletion'!=_0x110965['type']?-0x1:'deletion'!=_0x3a043c['type']&&'deletion'==_0x110965['type']?0x1:0x0);}function to(_0x170694,_0x58c4e5){let _0x18b4cf,_0x216f68=0x0;const _0x45e901=[],_0x2102a5=_0x58c4e5['schema'];for(;_0x216f68<_0x170694['length'];){const _0x36e694=_0x170694[_0x216f68],_0x1d5e52=_0x170694[_0x216f68+0x1];_0x18b4cf||(_0x18b4cf=_0x58c4e5['createPositionBefore'](_0x36e694)),co(_0x58c4e5,_0x36e694,_0x1d5e52)||(_0x45e901['push'](_0x58c4e5['createRange'](_0x18b4cf,_0x2102a5['isObject'](_0x36e694)?_0x58c4e5['createPositionAfter'](_0x36e694):_0x58c4e5['createPositionAt'](_0x36e694,'end'))),_0x18b4cf=null),_0x216f68++;}return _0x45e901;}function co(_0x2617b7,_0x36c136,_0x2ca0c8){if(!_0x2ca0c8)return!0x1;const _0x1f3c14=_0x2617b7['createPositionAfter'](_0x36c136),_0x333f46=_0x2617b7['createPositionBefore'](_0x2ca0c8);return _0x1f3c14['isTouching'](_0x333f46);}function rs(_0x37fddb,_0x461155,_0x51230b){for(;_0x51230b['length'];){const _0x58316b=_0x51230b['splice'](0x0,0x64);_0x37fddb['change'](()=>{for(const _0x12507d of _0x58316b)_0x12507d['isInContent']&&_0x461155['execute'](_0x12507d['id']);});}}class x extends ts{['refresh'](){const _0x30865e=Array['from'](this['_suggestions']['values']())['some'](_0x29f4f8=>_0x29f4f8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x30865e;}['execute'](){const _0x383080=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2484a8 of _0x383080){const _0x2b8074=_0x2484a8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b8074))return;}rs(this['editor']['model'],this['_command'],_0x383080);}constructor(_0x155553,_0x10f052,_0x472aa6){super(_0x155553),this['_command']=_0x10f052,this['_suggestions']=_0x472aa6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x3ee6f=this['editor']['model']['document']['selection'],_0x59f6ab=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x60627,_0x25ebf2){const _0xcc3842=Array['from'](_0x60627['getRanges']()),_0x2553b5=new Set();for(const _0x518353 of _0x25ebf2)if(_0x518353['isInContent']){for(const _0x2f2420 of _0xcc3842)for(const _0x45d80f of _0x518353['getRanges']())(_0x2f2420['isIntersecting'](_0x45d80f)||_0x60627['isCollapsed']&&!_0x518353['isMultiRange']&&_0x518353['next']&&_0x45d80f['end']['isTouching'](_0x2f2420['start']))&&_0x2553b5['add'](_0x518353);}return _0x2553b5;}(_0x3ee6f,_0x59f6ab),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x9d53ba=ss(Array['from'](this['_selectedSuggestions']));for(const _0x18daeb of _0x9d53ba){const _0x9dc5a7=_0x18daeb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9dc5a7))return;}rs(this['editor']['model'],this['_command'],_0x9d53ba);}constructor(_0x2ee4ad,_0x1a1417,_0x2c8b40){super(_0x2ee4ad),this['_command']=_0x1a1417,this['_suggestions']=_0x2c8b40,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x2ed6b7(){get['head'](){let _0x47ffad=this;for(;_0x47ffad['previous'];)_0x47ffad=_0x47ffad['previous'];return _0x47ffad;}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'](_0x5a72f0){this['_markerNames']['add'](_0x5a72f0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xe58cce=>this['_model']['markers']['get'](_0xe58cce))['filter'](_0x57470b=>_0x57470b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x13bab5=>{for(const _0x876772 of this['getMarkers']())_0x13bab5['removeMarker'](_0x876772);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c81ef){this['_model']['change'](_0x46e918=>{_0x46e918['removeMarker'](_0x1c81ef);}),this['_markerNames']['delete'](_0x1c81ef);}['addRange'](_0x5a3104){const _0x5ba472='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5ba472),this['_model']['change'](_0x2cc530=>{_0x2cc530['addMarker'](_0x5ba472,{'range':_0x5a3104,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1e3b1a){for(const _0x44d4c5 of this['getRanges']())if(_0x44d4c5['isIntersecting'](_0x1e3b1a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb261a=>_0xb261a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f1470,_0x383c18)=>[..._0x1f1470,..._0x383c18['getItems']()],[]);}['getFirstRange'](){var _0xea36da;return(null===(_0xea36da=this['getFirstMarker']())||void 0x0===_0xea36da?void 0x0:_0xea36da['getRange']())||null;}['getContainedElement'](){const _0x790451=this['getRanges']();if(0x1!=_0x790451['length'])return null;const _0x385999=_0x790451[0x0],_0x549d1c=_0x385999['start']['nodeAfter'],_0x4d802e=_0x385999['end']['nodeBefore'];return _0x549d1c instanceof _0x15c3f1?_0x549d1c!=_0x4d802e?null:_0x549d1c: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 _0x18e9e2=[];let _0x3afb10=this['head'];for(;_0x3afb10;)_0x18e9e2['push'](_0x3afb10),_0x3afb10=_0x3afb10['next'];return _0x18e9e2;}['setAttribute'](_0x59fca1,_0x537669){const _0x224ae2=_0x241d3f(this['attributes']);_0x73c0d9(_0x224ae2,_0x59fca1,_0x537669),_0x218615(_0x224ae2,this['attributes'])||(this['attributes']=_0x224ae2,this['_onAttributesChange'](_0x224ae2));}['removeAttribute'](_0x5c3ef0){const _0x6713a8=_0x241d3f(this['attributes']);_0x76b095(_0x6713a8,_0x5c3ef0),_0x218615(_0x6713a8,this['attributes'])||(this['attributes']=_0x6713a8,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 _0x2c7d4a()['substr'](0x1,0x5);}constructor(_0x10c1ba,_0x79eda9){super(),this['_isDataLoaded']=!0x1,this['id']=_0x79eda9['id'],this['type']=_0x79eda9['type'],this['subType']=_0x79eda9['subType']||null,this['author']=_0x79eda9['author'],this['creator']=_0x79eda9['creator']||_0x79eda9['author'],this['isExternal']=Boolean(_0x79eda9['attributes']&&_0x79eda9['attributes']['@external']),this['data']=null,this['_model']=_0x10c1ba,this['_onAccept']=_0x79eda9['onAccept'],this['_onDiscard']=_0x79eda9['onDiscard'],this['_onAttributesChange']=_0x79eda9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x79eda9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x316087,_0x255719,_0x305cfb){const t=_0x316087['t'];switch(_0x255719){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',_0x305cfb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x305cfb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x305cfb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x305cfb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x305cfb);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',_0x305cfb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x305cfb);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',_0x305cfb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x305cfb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x305cfb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x305cfb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x305cfb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x305cfb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x305cfb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x305cfb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x305cfb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x305cfb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x305cfb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x305cfb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x305cfb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x305cfb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x305cfb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x305cfb);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'},_0x305cfb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x305cfb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x305cfb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x305cfb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x305cfb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x305cfb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x305cfb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x305cfb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x305cfb);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'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x305cfb);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'},_0x305cfb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x305cfb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x305cfb);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x305cfb);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x305cfb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x255719;}}class f{['getDescriptions'](_0x7d829e){const _0x5deaa0=[],_0x3336e1=new Set(),_0x38e44a=new Set();for(let _0x14006a=0x0;_0x14006a<_0x7d829e['length'];_0x14006a++){const _0x5e4c8a=_0x7d829e[_0x14006a];if(!_0x5e4c8a['isInContent'])continue;const _0x335499=this['_handleCustomCallbackDescription'](_0x5e4c8a);if(_0x335499){if(null!=_0x5e4c8a['subType']){if(_0x3336e1['has'](_0x5e4c8a['subType']))continue;_0x3336e1['add'](_0x5e4c8a['subType']);}_0x5deaa0['push'](_0x335499);}else{if('attribute'!=_0x5e4c8a['type'])'insertion'!=_0x5e4c8a['type']&&'deletion'!=_0x5e4c8a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5deaa0,_0x5e4c8a,_0x7d829e[_0x14006a+0x1]);else{const _0x10997f=_0x5e4c8a['data']['key'];if(_0x38e44a['has'](_0x10997f))continue;_0x38e44a['add'](_0x5e4c8a['data']['key']),_0x10997f==m?this['_handleRenameSuggestionDescription'](_0x5deaa0,_0x5e4c8a):this['_handleAttributeSuggestionDescription'](_0x5deaa0,_0x5e4c8a);}}}return this['_resolveDescriptionItems'](_0x5deaa0);}['registerDescriptionCallback'](_0x3f0cf1){this['_customCallbacks']['push'](_0x3f0cf1);}['registerElementLabel'](_0x3d5ddb,_0x1b21d3,_0x2c9a6c=_0x1ba778['normal']){'function'==typeof _0x3d5ddb?_0x1003ed(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3d5ddb,'label':_0x1b21d3,'priority':_0x2c9a6c}):this['_itemLabels']['set'](_0x3d5ddb,_0x1b21d3);}['registerAttributeLabel'](_0x580e62,_0x13422f){this['_attributeLabels']['set'](_0x580e62,_0x13422f);}['getItemLabel'](_0x3fb339,_0x32f28f=0x1){let _0x4bc7a0;for(const _0xda8745 of this['_itemLabelsCallbacks'])if(_0xda8745['matchingCallback'](_0x3fb339)){_0x4bc7a0=_0xda8745['label'];break;}return _0x4bc7a0||(_0x4bc7a0=this['_itemLabels']['get'](_0x3fb339['name'])),_0x4bc7a0?_0x4bc7a0(_0x32f28f):0x1!==_0x32f28f?_0x32f28f+'\x20'+_0x3fb339['name']+'s':''+_0x3fb339['name'];}['_addDescriptionItems'](_0x5e59cf,_0x5ab02f){const _0x3bd26c=_0x5ab02f['getFirstRange']()['getWalker'](),_0x138e83='insertion'==_0x5ab02f['type']?'add':'remove';for(const _0x3e6a33 of _0x3bd26c){const _0x5300ff=_0x3e6a33['item'],_0x5ac8dc=_0x5e59cf[_0x5e59cf['length']-0x1];if(_0x5300ff['is']('$textProxy'))_0x5ac8dc&&_0x5ac8dc['type']['indexOf']('Container')>-0x1&&_0x5e59cf['pop'](),_0x5ac8dc&&'text'==_0x5ac8dc['type']?_0x5ac8dc[_0x138e83]+=_0x5300ff['data']:_0x5e59cf['push']({'type':'text','add':'add'==_0x138e83?_0x5300ff['data']:'','remove':'remove'==_0x138e83?_0x5300ff['data']:''});else{if(this['_schema']['isObject'](_0x5300ff)){const _0x1eb97a=_0x5300ff;if(_0x5ac8dc&&_0x5ac8dc['type']['indexOf']('Container')>-0x1&&_0x5e59cf['pop'](),'elementEnd'==_0x3e6a33['type'])continue;_0x5ac8dc&&_0x5ac8dc['type']==_0x138e83+'Object'&&_0x5ac8dc['element']['name']==_0x1eb97a['name']?_0x5ac8dc['quantity']++:_0x5e59cf['push']({'type':_0x138e83+'Object','element':_0x1eb97a,'quantity':0x1}),_0x3bd26c['skip'](_0x593590=>!('elementEnd'==_0x593590['type']&&_0x593590['item']==_0x5300ff));}else{if(this['_schema']['checkChild'](_0x5300ff,'$text')||_0x5300ff['is']('element','softBreak')){const _0x14db8d=_0x5300ff;if('add'==_0x138e83&&'elementStart'==_0x3e6a33['type']||'remove'==_0x138e83&&'elementEnd'==_0x3e6a33['type'])continue;if(_0x5ac8dc&&-0x1==_0x5ac8dc['type']['indexOf']('Container')){'text'==_0x5ac8dc['type']&&(_0x5ac8dc[_0x138e83]+='\x0a');continue;}let _0x47eef6;if(_0x47eef6='add'==_0x138e83?_0x14db8d['nextSibling']&&!this['_schema']['isObject'](_0x14db8d['nextSibling'])?_0x14db8d['nextSibling']:null:_0x14db8d['previousSibling']&&!this['_schema']['isObject'](_0x14db8d['previousSibling'])?_0x14db8d['previousSibling']:null,_0x14db8d['isEmpty']||_0x47eef6&&_0x47eef6['isEmpty']){const _0xfd467a=_0x47eef6&&_0x47eef6['isEmpty']?_0x47eef6:_0x14db8d;_0x5ac8dc&&_0x5ac8dc['type']==_0x138e83+'EmptyContainer'&&_0x5ac8dc['element']['name']==_0xfd467a['name']?_0x5ac8dc['quantity']++:_0x5e59cf['push']({'type':_0x138e83+'EmptyContainer','element':_0xfd467a,'quantity':0x1});}else _0x5e59cf['push']({'type':_0x138e83+'Container','element':_0x14db8d});}}}}}['_resolveDescriptionItems'](_0x5e66a5){const _0x187763=this['_locale'],_0x19a5b7=[],_0x3f9f09=[],_0x4f1fa4=[];for(const _0x56ea96 of _0x5e66a5)switch(_0x56ea96['type']){case'text':if(_0x56ea96['add']=_0x56ea96['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x56ea96['remove']=_0x56ea96['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x56ea96['add']&&''!=_0x56ea96['remove']){_0x19a5b7['push']({'type':'replace','content':o(_0x187763,'REPLACE_TEXT',['\x22'+_0x56ea96['remove']+'\x22','\x22'+_0x56ea96['add']+'\x22'])});continue;}if(null!=_0x56ea96['add']['match'](/^ +$/)){_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Insert:*\x20%0',o(_0x187763,'ELEMENT_SPACE',_0x56ea96['add']['length']))});continue;}if(null!=_0x56ea96['remove']['match'](/^ +$/)){_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Remove:*\x20%0',o(_0x187763,'ELEMENT_SPACE',_0x56ea96['remove']['length']))});continue;}if(''!=_0x56ea96['add']){_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Insert:*\x20%0','\x22'+_0x56ea96['add']+'\x22')});continue;}_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Remove:*\x20%0','\x22'+_0x56ea96['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Insert:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Remove:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'addContainer':_0x19a5b7['push']({'type':'insertion','content':o(_0x187763,'*Split:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'removeContainer':_0x19a5b7['push']({'type':'deletion','content':o(_0x187763,'*Merge:*\x20%0',this['getItemLabel'](_0x56ea96['element'],_0x56ea96['quantity']))});continue;case'addFormat':_0x3f9f09['push'](_0x56ea96['key']);continue;case'removeFormat':_0x4f1fa4['push'](_0x56ea96['key']);continue;default:_0x19a5b7['push'](_0x56ea96);}if(_0x3f9f09['length']){const _0x14a25e=_0x3f9f09['map'](_0xe673cb=>this['_attributeLabels']['has'](_0xe673cb)?this['_attributeLabels']['get'](_0xe673cb):_0xe673cb)['join'](',\x20');_0x19a5b7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x14a25e)});}if(_0x4f1fa4['length']){const _0x36b00a=_0x4f1fa4['map'](_0x248e11=>this['_attributeLabels']['has'](_0x248e11)?this['_attributeLabels']['get'](_0x248e11):_0x248e11)['join'](',\x20');_0x19a5b7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x36b00a)});}return _0x19a5b7;}['_handleCustomCallbackDescription'](_0x4301bf){for(const _0x2d7432 of this['_customCallbacks']){const _0x338d36=_0x2d7432(_0x4301bf);if(_0x338d36&&'type'in _0x338d36)return _0x338d36;}}['_handleAttributeSuggestionDescription'](_0x296d78,_0x5f483b){const _0x4f1833=_0x5f483b['data'],_0x2ae577=void 0x0===_0x4f1833['newValue']?'removeFormat':'addFormat';_0x296d78['push']({'type':_0x2ae577,'key':_0x4f1833['key']});}['_handleRenameSuggestionDescription'](_0x45a578,_0x2cd5bf){_0x45a578['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2cd5bf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x346939,_0x35260b,_0x14e8cc){if(this['_addDescriptionItems'](_0x346939,_0x35260b),_0x14e8cc&&_0x14e8cc['getFirstRange']()&&!_0x35260b['getFirstRange']()['end']['isEqual'](_0x14e8cc['getFirstRange']()['start'])){const _0x38e017=_0x346939[_0x346939['length']-0x1],_0x40ad57='insertion'==_0x35260b['type']?'add':'remove';_0x38e017&&'text'==_0x38e017['type']&&(_0x38e017[_0x40ad57]+='\x0a');}}constructor(_0x18d945,_0x3e22cd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x18d945,this['_locale']=_0x3e22cd;}}class E extends _0x4de685{['afterInit'](){const _0x23a251=this['editor'],_0x50b17c=_0x23a251['plugins']['get']('TrackChangesEditing');_0x23a251['commands']['get']('showAIAssistant')&&_0x50b17c['enableCommand']('showAIAssistant');}}class V extends _0x4de685{['afterInit'](){const _0x2c3968=this['editor'],_0x130843=_0x2c3968['locale'];if(!_0x2c3968['plugins']['has']('AlignmentEditing'))return;const _0x43bca1=_0x2c3968['plugins']['get']('TrackChangesEditing');_0x43bca1['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x43bca1['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x130843,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5beef3=this['editor'],_0x756647=_0x5beef3['locale'];_0x5beef3['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xcbef17=>{if('formatBlock'!=_0xcbef17['type'])return;const {data:_0x487e9a}=_0xcbef17;if(_0x487e9a&&'alignment'==_0x487e9a['commandName']){const _0x496764=_0x487e9a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x756647,'*Format:*\x20%0',function(_0x3e2f84){switch(_0x3e2f84){case'left':return o(_0x756647,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x756647,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x756647,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x756647,'FORMAT_JUSTIFY_TEXT');}}(_0x496764))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4de685{['afterInit'](){const _0x437ff3=this['editor'],_0x87a87c=_0x437ff3['plugins']['get']('TrackChangesEditing'),_0x20c77a=_0x437ff3['locale'];for(const _0x531446 of ti){if(!_0x437ff3['plugins']['has'](_0x531446))continue;const _0xc442fa=_0x531446['slice'](0x0,-0x7)['toLowerCase'](),_0x52ee9b='FORMAT_'+_0xc442fa['toUpperCase']();_0x87a87c['_enableDefaultAttributesIntegration'](_0xc442fa,[_0xc442fa]),_0x87a87c['_descriptionFactory']['registerAttributeLabel'](_0xc442fa,o(_0x20c77a,_0x52ee9b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57d48b=this['editor'],_0x49f9e6=_0x57d48b['locale'],_0x5e20d9=_0x57d48b['plugins']['get']('TrackChangesEditing');function _0x258144(_0x5f2d53,_0x39102f){_0x5e20d9['_descriptionFactory']['registerDescriptionCallback'](_0x3e2a95=>{if('formatInline'!=_0x3e2a95['type'])return;const {data:_0x326c22}=_0x3e2a95;return _0x326c22&&_0x326c22['commandName']===_0x5f2d53?_0x326c22['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49f9e6,'*Format:*\x20%0',_0x39102f)}:{'type':'format','content':o(_0x49f9e6,'*Remove\x20format:*\x20%0',_0x39102f)}:void 0x0;});}_0x258144('bold',o(_0x49f9e6,'FORMAT_BOLD')),_0x258144('italic',o(_0x49f9e6,'FORMAT_ITALIC')),_0x258144('underline',o(_0x49f9e6,'FORMAT_UNDERLINE')),_0x258144('code',o(_0x49f9e6,'FORMAT_CODE')),_0x258144('strikethrough',o(_0x49f9e6,'FORMAT_STRIKETHROUGH')),_0x258144('subscript',o(_0x49f9e6,'FORMAT_SUBSCRIPT')),_0x258144('superscript',o(_0x49f9e6,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4de685{['afterInit'](){const _0x5a5963=this['editor'],_0x34b356=_0x5a5963['locale'];if(!_0x5a5963['plugins']['has']('BlockQuoteEditing'))return;const _0x3cfbc2=_0x5a5963['plugins']['get']('TrackChangesEditing'),_0x280e45=this['editor']['commands']['get']('blockQuote');_0x3cfbc2['enableCommand']('blockQuote',(_0x44ea60,_0x850676={})=>{const _0x413bcb=this['editor']['model']['document']['selection'],_0x4039d5=_0x850676&&void 0x0!==_0x850676['forceValue']?_0x850676['forceValue']:!_0x280e45['value'];let _0xfbf1b7=[];if(_0x4039d5){const _0x40482e=Array['from'](_0x413bcb['getSelectedBlocks']())['filter'](_0x4923dd=>oo(_0x4923dd)||function(_0x25ec63,_0x7be15d){const _0x36c5ff=_0x7be15d['checkChild'](_0x25ec63['parent'],'blockQuote'),_0x33ae82=_0x7be15d['checkChild'](['$root','blockQuote'],_0x25ec63);return _0x36c5ff&&_0x33ae82;}(_0x4923dd,this['editor']['model']['schema']));_0xfbf1b7=to(_0x40482e,_0x5a5963['model']);}else{const _0x34593b=Array['from'](_0x413bcb['getSelectedBlocks']())['filter'](_0x503004=>oo(_0x503004));_0xfbf1b7=to(_0x34593b,_0x5a5963['model']);}_0x5a5963['model']['change'](()=>{for(const _0x2f4352 of _0xfbf1b7)_0x3cfbc2['markBlockFormat'](_0x2f4352,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4039d5}]});});}),_0x3cfbc2['_descriptionFactory']['registerDescriptionCallback'](_0x10cd01=>{const {data:_0x11213f}=_0x10cd01;if(_0x11213f&&'blockQuote'==_0x11213f['commandName']){const _0x29780a=o(_0x34b356,'ELEMENT_BLOCK_QUOTE');return _0x11213f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34b356,'*Set\x20format:*\x20%0',_0x29780a)}:{'type':'format','content':o(_0x34b356,'*Remove\x20format:*\x20%0',_0x29780a)};}});}}function oo(_0x2544db){return'blockQuote'==_0x2544db['parent']['name'];}class G extends _0x4de685{['afterInit'](){const _0x3eb4e7=this['editor'];_0x3eb4e7['plugins']['has']('CaseChange')&&(_0x3eb4e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3eb4e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3eb4e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4de685{['afterInit'](){const _0x69bf47=this['editor'];_0x69bf47['commands']['get']('ckbox')&&_0x69bf47['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4de685{['afterInit'](){const _0x5cd385=this['editor'];if(!_0x5cd385['plugins']['has']('CodeBlock'))return;const _0x10185b=_0x5cd385['plugins']['get']('TrackChangesEditing'),_0x2798ac=_0x5cd385['locale'],_0x1f4d58=_0x5cd385['config']['get']('codeBlock')['languages'],_0x57661a=_0x5cd385['commands']['get']('codeBlock');_0x10185b['enableCommand']('indentCodeBlock'),_0x10185b['enableCommand']('outdentCodeBlock'),_0x10185b['enableCommand']('codeBlock',(_0xfec3cb,_0x48c4ac={})=>{const _0x875c25=_0x5cd385['model'],_0x475e1c=_0x5cd385['model']['document']['selection'],_0x7689ac=_0x48c4ac&&void 0x0!==_0x48c4ac['forceValue']?_0x48c4ac['forceValue']:!_0x57661a['value'];let _0x3a801d;_0x48c4ac['language']||(_0x48c4ac['language']=_0x1f4d58[0x0]['language']),_0x3a801d=_0x7689ac?Array['from'](_0x475e1c['getSelectedBlocks']())['filter'](_0x221cd3=>eo(_0x221cd3)||function(_0x5e8197,_0x352b45){if(_0x5e8197['is']('rootElement')||_0x352b45['isLimit'](_0x5e8197))return!0x1;return _0x352b45['checkChild'](_0x5e8197['parent'],'codeBlock');}(_0x221cd3,_0x875c25['schema'])):Array['from'](_0x475e1c['getSelectedBlocks']())['filter'](_0x118e19=>eo(_0x118e19));const _0x3453f5=to(_0x3a801d,_0x875c25);_0x875c25['change'](()=>{for(const _0x495873 of _0x3453f5)_0x10185b['markBlockFormat'](_0x495873,{'commandName':'codeBlock','commandParams':[{..._0x48c4ac,'forceValue':_0x7689ac}],'formatGroupId':'blockName'});});}),(_0x10185b['_descriptionFactory']['registerElementLabel']('codeBlock',_0x5d16ad=>o(_0x2798ac,'ELEMENT_CODE_BLOCK',_0x5d16ad)),_0x10185b['_descriptionFactory']['registerDescriptionCallback'](_0x1e36bb=>{if('formatBlock'!=_0x1e36bb['type'])return;const _0x3ff6bd=_0x2798ac['t'],{data:_0x4cf9be}=_0x1e36bb;if(!_0x4cf9be||'codeBlock'!=_0x4cf9be['commandName'])return;const _0x334de9=_0x4cf9be['commandParams'][0x0]['language'],_0x13dcc9=_0x3ff6bd(_0x1f4d58['find'](_0x5af84c=>_0x5af84c['language']===_0x334de9)['label'])['toLowerCase']();return _0x4cf9be['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2798ac,'*Set\x20format:*\x20%0',o(_0x2798ac,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13dcc9+')')}:{'type':'format','content':o(_0x2798ac,'*Remove\x20format:*\x20%0',o(_0x2798ac,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x52bc29){return'codeBlock'==_0x52bc29['name'];}class H extends _0x4de685{['afterInit'](){const _0x1266e4=this['editor'];if(!_0x1266e4['plugins']['has']('CommentsEditing'))return;_0x1266e4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2c65f6,_0x137da0,_0x4f78a5){const _0x2a7035=[];for(const _0x3f3f39 of _0x137da0['getItems']())_0x3f3f39['hasAttribute'](_0x2c65f6)&&_0x2a7035['push'](_0x4f78a5['createRangeOn'](_0x3f3f39));return _0x2a7035;}function _e(_0x2ceb64,_0x46908b,{showActiveMarker:_0x13fff1=!0x0}={}){const _0x2dcf2f=_0x2ceb64['plugins']['get']('TrackChangesEditing');return(_0x4bdef3,_0x5c6cc6,_0x408c17)=>{if(!_0x408c17['consumable']['test'](_0x5c6cc6['markerRange'],_0x4bdef3['name']))return;const _0x5e378c=_0x5c6cc6['markerRange']['getWalker'](),_0x59f702=_0x5c6cc6['markerRange']['start'],_0x242528=_0x2ceb64['model']['schema'];let _0x171766=null,_0x56ab44=null,_0x553429=!0x1,_0x15da03=!0x1;for(const _0x2c37f3 of _0x5e378c){const _0x454e5e=_0x2c37f3['item'];_0x553429=_0x553429||_0x242528['isContent'](_0x454e5e);const _0x7230ca=_0x408c17['mapper']['toViewElement'](_0x454e5e);if(_0x7230ca&&_0x7230ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c37f3['type']&&(_0x242528['isBlock'](_0x454e5e)&&!_0x242528['isLimit'](_0x454e5e)&&(_0x454e5e['nextSibling']||_0x59f702['isAtEnd']?_0x171766&&_0x171766['parent']==_0x454e5e||(_0x171766=_0x454e5e,_0x48a139(_0x2c37f3['previousPosition']),_0x15da03=!0x0):_0x56ab44=_0x56ab44||_0x2c37f3['previousPosition']));}function _0x48a139(_0xfb85ec){const _0x3aff18=_0x408c17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46908b}),_0x106456=_0x408c17['mapper']['toViewPosition'](_0xfb85ec);_0x13fff1&&_0x2dcf2f['activeMarkers']['includes'](_0x5c6cc6['markerName'])&&_0x408c17['writer']['addClass']('ck-suggestion-marker--active',_0x3aff18),_0x408c17['writer']['insert'](_0x106456,_0x3aff18),_0x408c17['mapper']['bindElementToMarker'](_0x3aff18,_0x5c6cc6['markerName']);}_0x553429||_0x15da03||!_0x56ab44||_0x48a139(_0x56ab44);};}class q extends _0x4de685{static get['requires'](){return[_0x24d530];}['init'](){const _0x273edc=this['editor'],_0x5ee4b4=_0x273edc['plugins']['get']('TrackChangesEditing');_0x5ee4b4['enableCommand']('delete');const _0x498221=_0x273edc['commands']['get']('deleteForward');_0x5ee4b4['enableCommand']('deleteForward',(_0x1a7249,_0x38d6a1={})=>{const _0x291ab7=_0x273edc['model']['createSelection'](_0x273edc['model']['document']['selection']);_0x291ab7['isCollapsed']&&_0x273edc['model']['modifySelection'](_0x291ab7,{'direction':'forward','unit':_0x38d6a1['unit']});const _0x49df78=_0x291ab7['getFirstRange'](),_0x3c8009=_0x3d4179['fromRange'](_0x49df78);let _0x4d1e65;_0x1a7249(_0x38d6a1),_0x4d1e65='$graveyard'==_0x3c8009['root']['rootName']?_0x273edc['model']['createRange'](_0x49df78['start']):_0x273edc['model']['createRange'](_0x3c8009['start'],_0x3c8009['end']),_0x3c8009['detach'](),_0x273edc['model']['enqueueChange'](_0x498221['buffer']['batch'],_0x3ee80e=>{_0x498221['buffer']['lock'](),_0x3ee80e['setSelection'](_0x3ee80e['createRange'](_0x4d1e65['end'])),_0x498221['buffer']['unlock']();});}),_0x273edc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x273edc,'merge'),{'priority':'high'}),_0x273edc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1dc68a,_0x184df4,_0x3cf17a)=>{_0x3cf17a['options']['showSuggestionHighlights']&&_e(_0x273edc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1dc68a,_0x184df4,_0x3cf17a);},{'priority':'high'}),_0x273edc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d70bb,_0x56a4ce,_0x7a1555)=>{const _0x30c3cb=_0x7a1555['mapper']['markerNameToElements'](_0x56a4ce['markerName']);if(_0x30c3cb){for(const _0x3e19f8 of _0x30c3cb)_0x3e19f8['is']('uiElement')&&(_0x7a1555['mapper']['unbindElementFromMarkerName'](_0x3e19f8,_0x56a4ce['markerName']),_0x7a1555['writer']['remove'](_0x3e19f8));}},{'priority':'high'});}}class z extends _0x4de685{['afterInit'](){const _0xcb6ae8=this['editor'];if(!_0xcb6ae8['plugins']['has']('ListEditing'))return;const _0xa060f6=_0xcb6ae8['locale'],_0x554b61=_0xcb6ae8['plugins']['get']('TrackChangesEditing'),_0x2038a6=_0xcb6ae8['plugins']['has']('TodoListEditing'),_0x552ef0=!!_0xcb6ae8['config']['get']('list.multiBlock');function _0xa62f20(_0x3ef300){return{'type':'format','content':''+o(_0xa060f6,'*Set\x20format:*\x20%0',_0x3ef300)};}function _0x176def(_0x192d53){return{'type':'format','content':''+o(_0xa060f6,'*Remove\x20format:*\x20%0',_0x192d53)};}_0x554b61['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x554b61['_enableDefaultAttributesIntegration']('bulletedList'),_0x554b61['_enableDefaultAttributesIntegration']('customNumberedList'),_0x554b61['_enableDefaultAttributesIntegration']('customBulletedList'),_0x554b61['_enableDefaultAttributesIntegration']('indentList'),_0x554b61['_enableDefaultAttributesIntegration']('outdentList'),_0x554b61['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x554b61['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x552ef0&&(_0x554b61['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x554b61['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2038a6&&(_0x554b61['_enableDefaultAttributesIntegration']('todoList'),_0x554b61['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x5c124a=>{const {data:_0x2bf842}=_0x5c124a;if(_0x2bf842&&'todoListChecked'==_0x2bf842['key'])return{'type':'format','content':_0x2bf842['newValue']?o(_0xa060f6,'*Check\x20item*'):o(_0xa060f6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x58162f=>{if(_0x58162f['batch']['isUndo'])return!0x1;let _0xe0b2ed=!0x1;const _0x1b468e=_0x554b61['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dec08=>'todoListChecked'===_0x554b61['_getAttributeKey'](_0x5dec08));for(const _0x5420aa of _0x1b468e){'todo'!=_0x5420aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x554b61['_findSuggestions'](_0x5420aa['getFirstRange'](),'attribute')['find'](_0x179d95=>'listType'===_0x554b61['_getAttributeKey'](_0x179d95['suggestion']))||(_0x58162f['removeMarker'](_0x5420aa['getFirstMarker']()),_0xe0b2ed=!0x0));}return _0xe0b2ed;})),_0x554b61['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa060f6,'FORMAT_INDENT'));const _0x3fef49={'type':'format','content':''};_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x90bc4c=>{const {data:_0x53a127}=_0x90bc4c;if(!_0x53a127||'listType'!=_0x53a127['key'])return;let _0x4154b4=_0x90bc4c['head'];for(;_0x4154b4;){if(_0x4154b4['data']&&(('listStyle'==_0x4154b4['data']['key']||'listMarkerStyle'==_0x4154b4['data']['key'])&&(_0x4154b4['data']['newValue']&&'default'!=_0x4154b4['data']['newValue']||'default'!=_0x4154b4['data']['oldValue']&&!_0x53a127['newValue'])||!_0x552ef0&&_0x4154b4['data']['key']==m))return _0x3fef49;_0x4154b4=_0x4154b4['next'];}if(null==_0x53a127['newValue'])switch(_0x53a127['oldValue']){case'bulleted':return _0x176def(o(_0xa060f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x176def(o(_0xa060f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x176def(o(_0xa060f6,'ELEMENT_TODO_LIST'));}switch(_0x53a127['newValue']){case'bulleted':return _0xa62f20(o(_0xa060f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa62f20(o(_0xa060f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa62f20(o(_0xa060f6,'ELEMENT_TODO_LIST'));}}),_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x42f542=>{const {data:_0x5c62c1}=_0x42f542;if(_0x5c62c1&&'listIndent'==_0x5c62c1['key'])return null==_0x5c62c1['newValue']||null==_0x5c62c1['oldValue']&&0x0==_0x5c62c1['newValue']?_0x3fef49:void 0x0;}),_0x554b61['_descriptionFactory']['registerDescriptionCallback'](_0x36148d=>{if('attribute'!=_0x36148d['type'])return;const {data:_0x47a1d2}=_0x36148d;if(!_0x47a1d2||'listItemId'!=_0x47a1d2['key'])return;const _0x1c15d4=le(_0x36148d);return _0x1c15d4?'newValue'==_0x1c15d4?{'type':'format','content':o(_0xa060f6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c15d4?{'type':'format','content':o(_0xa060f6,'*Split:*\x20list\x20item')}:_0x3fef49:_0x3fef49;}),_0xcb6ae8['model']['document']['registerPostFixer'](_0x109593=>this['listItemIdFixer'](_0x109593)),_0xcb6ae8['model']['document']['registerPostFixer'](_0x3c5049=>this['noTrackChangesFixer'](_0x3c5049)),_0xcb6ae8['model']['document']['registerPostFixer'](_0x252458=>this['assureChains'](_0x252458)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2c10db){if(_0x2c10db['batch']['isUndo']||!_0x2c10db['batch']['isLocal'])return!0x1;let _0x9fad2c=!0x1;const _0x568a74=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x199eeb=>_0x199eeb['data']&&'listItemId'==_0x199eeb['data']['key'])['filter'](_0x13cae3=>_0x13cae3['data']['newValue']&&_0x13cae3['data']['oldValue']);for(const _0x5df02f of _0x568a74)le(_0x5df02f)||(_0x2c10db['removeMarker'](_0x5df02f['getFirstMarker']()),_0x9fad2c=!0x0);return _0x9fad2c;}['noTrackChangesFixer'](_0x3e962b){if(_0x3e962b['batch']['isUndo']||!_0x3e962b['batch']['isLocal'])return!0x1;const _0x4d6ce2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d6ce2['trackChangesCommand']['value'])return!0x1;let _0x563468=!0x1;const _0x2da200=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x25b79b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x26d662=>'attribute'==_0x26d662['type'])['filter'](_0x42735a=>_0x2da200['includes'](_0x42735a['attributeKey']));if(0x0==_0x25b79b['length'])return _0x563468;for(const _0x3359ed of _0x25b79b){const _0xdea0e4=_0x4d6ce2['_findSuggestions'](_0x3359ed['range'],'attribute')['filter'](_0x39a8d9=>!_0x39a8d9['meta']['isNextTo'])['map'](_0x3c39fe=>_0x3c39fe['suggestion'])['filter'](_0x2b21b9=>{const _0x1fe6bb=_0x4d6ce2['_getAttributeKey'](_0x2b21b9);return _0x2da200['includes'](_0x1fe6bb);});if(_0xdea0e4['length']){for(const _0x3dfac1 of _0xdea0e4)_0x3e962b['removeMarker'](_0x3dfac1['getFirstMarker']());_0x563468=!0x0;}}return _0x563468;}['assureChains'](_0xaff4bf){if(_0xaff4bf['batch']['isUndo']||!_0xaff4bf['batch']['isLocal'])return!0x1;const _0xca7b90=this['editor']['plugins']['get']('TrackChangesEditing');let _0x4f62de=!0x1;const _0x3da984=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5dadc0 of _0xca7b90['getSuggestions']({'skipNotAttached':!0x0})){const _0x20e21a=_0xca7b90['_findSuggestions'](_0x5dadc0['getFirstRange'](),'attribute')['map'](_0x3d5240=>_0x3d5240['suggestion'])['filter'](_0x5e3397=>_0x5e3397['data']&&_0x3da984['includes'](_0x5e3397['data']['key']));if(!_0x20e21a['length'])continue;const _0x409508=_0x20e21a[0x0]['head']['attributes']['groupId'];if(!_0x20e21a['every'](_0x2fbe81=>_0x2fbe81['attributes']['groupId']===_0x409508)){for(const _0x2e4af9 of _0x20e21a)_0x6da367(_0x2e4af9,_0x409508)&&(_0x4f62de=!0x0);}}return _0x4f62de;function _0xe72504(_0x47000f,_0x208b51){for(const _0x15c3b7 of _0xca7b90['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539afc=>'attribute'==_0x539afc['type']&&_0x539afc['attributes']['groupId']==_0x47000f))_0x15c3b7['setAttribute']('groupId',_0x208b51);}function _0x6da367(_0x44b810,_0x23eb15){let _0x47f1f0=_0x44b810['head'],_0x1e3509=!0x1;for(;_0x47f1f0;)_0x47f1f0['attributes']['groupId']!=_0x23eb15&&(_0xe72504(_0x47f1f0['attributes']['groupId'],_0x23eb15),_0x47f1f0['setAttribute']('groupId',_0x23eb15),_0x1e3509=!0x0),_0x47f1f0=_0x47f1f0['next'];return _0x1e3509;}}['_supportLegacySuggestions'](){const _0x4ac3a1=this['editor'],_0x12e65a=_0x4ac3a1['locale'],_0x553ab6=_0x4ac3a1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x553ab6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3782ef,_0x557e8d){const _0x52e37a=[];for(let _0x3afa6f of _0x3782ef)_0x3afa6f['start']['nodeAfter']===_0x3afa6f['end']['parent']&&(_0x3afa6f=_0x4ac3a1['model']['createRange'](_0x4ac3a1['model']['createPositionAt'](_0x3afa6f['start']['nodeAfter'],0x0))),_0x52e37a['push'](_0x3afa6f);_0x4ac3a1['model']['change'](_0xdc70c6=>{const _0x3c0be6=_0x4ac3a1['model']['document']['selection'],_0x1679c2=Array['from'](_0x3c0be6['getRanges']())['map'](_0x265446=>_0x3d4179['fromRange'](_0x265446));_0xdc70c6['setSelection'](_0x52e37a),_0x4ac3a1['commands']['get'](_0x557e8d['commandName'])['refresh'](),_0x557e8d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ac3a1['execute'](_0x557e8d['commandName'],..._0x557e8d['commandParams']),_0xdc70c6['setSelection'](_0x1679c2);for(const _0x1010e6 of _0x1679c2)_0x1010e6['detach']();});}),_0x553ab6['_descriptionFactory']['registerElementLabel'](function(_0x33e416){const _0x41fbe8=!_0x4ac3a1['model']['schema']['isObject'](_0x33e416),_0x241496=_0x33e416['previousSibling'],_0x1657c7=_0x33e416['nextSibling'],_0x4c612e=_0x33e416['getAttribute']('listItemId'),_0x13b2e3=!_0x241496||_0x241496['getAttribute']('listItemId')!==_0x4c612e,_0x5dc14c=!_0x1657c7||_0x1657c7['getAttribute']('listItemId')!==_0x4c612e;return _0x41fbe8&&Boolean(_0x4c612e)&&_0x13b2e3&&_0x5dc14c;},_0x3aa315=>o(_0x12e65a,'ELEMENT_LIST_ITEM',_0x3aa315));}['_registerLegacyDescription'](){const _0x2f4d0a=this['editor'],_0x418570=_0x2f4d0a['locale'];function _0x13c827(_0x4c1e98){const _0x5307cb=_0x2f4d0a['commands']['get']('bulletedList')['value'],_0x3f2e8f=_0x2f4d0a['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c1e98?_0x5307cb:_0x3f2e8f;}_0x2f4d0a['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x45429a){if('formatBlock'!=_0x45429a['type'])return;const {data:_0x35a8bc}=_0x45429a;if(!_0x35a8bc)return;let _0x5d320d,_0x222de8,_0x48cfc3,_0x3f4ef3;switch(_0x35a8bc['commandName']){case'bulletedList':_0x48cfc3=_0x35a8bc['commandParams'][0x0]['forceValue'],_0x3f4ef3=_0x13c827(_0x35a8bc['commandName']),_0x5d320d=_0x48cfc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f4ef3&&_0x2f4d0a['config']['get']('list.multiBlock')||(_0x5d320d='*Change\x20to:*\x20%0'),_0x222de8={'type':'format','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48cfc3=_0x35a8bc['commandParams'][0x0]['forceValue'],_0x3f4ef3=_0x13c827(_0x35a8bc['commandName']),_0x5d320d=_0x48cfc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f4ef3&&_0x2f4d0a['config']['get']('list.multiBlock')||(_0x5d320d='*Change\x20to:*\x20%0'),_0x222de8={'type':'format','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5d320d='*Indent:*\x20%0',_0x222de8={'type':'format','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5d320d=function(_0x531d7e){const _0x4cbcfd=_0x531d7e['getFirstRange']();let _0x16a1a3=_0x4cbcfd['start']['nodeAfter'];for(;_0x16a1a3&&_0x4cbcfd['containsItem'](_0x16a1a3);){if(_0x16a1a3['getAttribute']('listIndent')>0x0)return!0x1;_0x16a1a3=_0x16a1a3['nextSibling'];}return!0x0;}(_0x45429a)?o(_0x418570,'*Format:*\x20remove\x20from\x20%0',o(_0x418570,function(_0x21676c){return'ELEMENT_'+_0x21676c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45429a))):o(_0x418570,'*Outdent:*\x20%0',o(_0x418570,'ELEMENT_LIST_ITEM')),_0x222de8={'type':'format','content':_0x5d320d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x35a8bc['multipleBlocks']&&(_0x5d320d='*Merge:*\x20%0',_0x222de8={'type':'deletion','content':o(_0x418570,_0x5d320d,o(_0x418570,'ELEMENT_LIST_ITEM'))});}return _0x222de8;});}}function le(_0x3779ab){let _0x400d83=_0x3779ab['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x400d83;){const _0x35a3bc=_0x400d83['getAttribute']('listItemId');if(!_0x35a3bc)return!0x1;if(_0x35a3bc==_0x3779ab['data']['newValue'])return'newValue';if(_0x35a3bc==_0x3779ab['data']['oldValue'])return'oldValue';_0x400d83=_0x400d83['previousSibling'];}return!0x1;}class ue extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2fa550=this['editor']['config']['get']('list.properties'),_0x325f5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fa550['styles']&&_0x325f5c['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x2fa550['reversed']&&_0x325f5c['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x2fa550['startIndex']&&_0x325f5c['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x31c64a={'type':'format','content':''};_0x325f5c['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4bcf0d=this['editor']['locale'];_0x325f5c['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4bcf0d,'FORMAT_LIST_REVERSED')),_0x325f5c['_descriptionFactory']['registerDescriptionCallback'](_0x287f4d=>{const {data:_0x4280ac}=_0x287f4d;if(_0x4280ac&&'listReversed'==_0x4280ac['key'])return null==_0x4280ac['newValue']||0x0==_0x4280ac['newValue']&&null==_0x4280ac['oldValue']?_0x31c64a:void 0x0;}),_0x325f5c['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4bcf0d,'FORMAT_LIST_START')),_0x325f5c['_descriptionFactory']['registerDescriptionCallback'](_0x4afb1c=>{const {data:_0x4e3a45}=_0x4afb1c;if(_0x4e3a45&&'listStart'==_0x4e3a45['key'])return null==_0x4e3a45['newValue']||0x1==_0x4e3a45['newValue']&&null==_0x4e3a45['oldValue']?_0x31c64a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x59d03b=>{if(_0x59d03b['batch']['isUndo'])return!0x1;let _0x1cdf18=!0x1;const _0xfa77ae=_0x325f5c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11dff4=>{const _0x2f40fb=_0x325f5c['_getAttributeKey'](_0x11dff4);return'listStart'==_0x2f40fb||'listReversed'==_0x2f40fb;});for(const _0x43a115 of _0xfa77ae){const _0x4f83e5=_0x43a115['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f83e5||'customNumbered'==_0x4f83e5)continue;_0x325f5c['_findSuggestions'](_0x43a115['getFirstRange'](),'attribute')['find'](_0x479f85=>'listType'==_0x325f5c['_getAttributeKey'](_0x479f85['suggestion']))||(_0x59d03b['removeMarker'](_0x43a115['getFirstMarker']()),_0x1cdf18=!0x0);}return _0x1cdf18;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44d9bd){const _0x531d65=this['editor']['locale'],{data:_0x2c1e4b}=_0x44d9bd,_0x2f165c={'type':'format','content':''};if(!_0x2c1e4b||'listStyle'!=_0x2c1e4b['key'])return;if(!_0x2c1e4b['oldValue'])return'default'==_0x2c1e4b['newValue']?_0x2f165c:{'type':'format','content':''+o(_0x531d65,'*Set\x20format:*\x20%0',o(_0x531d65,this['_getTranslationKeyForListStyle'](_0x2c1e4b['newValue'])))};if(!_0x2c1e4b['newValue']){if('default'==_0x2c1e4b['oldValue'])return _0x2f165c;let _0x48498a=_0x44d9bd['head'];for(;_0x48498a;){if(_0x48498a['data']&&'listType'==_0x48498a['data']['key']&&_0x48498a['data']['newValue'])return _0x2f165c;_0x48498a=_0x48498a['next'];}return{'type':'format','content':''+o(_0x531d65,'*Remove\x20format:*\x20%0',o(_0x531d65,this['_getTranslationKeyForListStyle'](_0x2c1e4b['oldValue'])))};}if('default'!=_0x2c1e4b['newValue'])return{'type':'format','content':''+o(_0x531d65,'*Set\x20format:*\x20%0',o(_0x531d65,this['_getTranslationKeyForListStyle'](_0x2c1e4b['newValue'])))};let _0x2b07b2=_0x44d9bd['head'];for(;_0x2b07b2;){if(_0x2b07b2['data']&&'listType'==_0x2b07b2['data']['key']&&_0x2b07b2['data']['newValue']&&_0x2b07b2['data']['oldValue'])return _0x2f165c;_0x2b07b2=_0x2b07b2['next'];}return{'type':'format','content':o(_0x531d65,'*Set\x20format:*\x20%0',o(_0x531d65,'ELEMENT_'+_0x44d9bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4fc2c9=this['editor'],_0x5f4aa9=_0x4fc2c9['locale'];_0x4fc2c9['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4d4e64=>{if('formatBlock'!=_0x4d4e64['type'])return;const {data:_0x326543}=_0x4d4e64;if(!_0x326543)return;let _0x24d19d,_0x1c998b;switch(_0x326543['commandName']){case'listStyle':_0x24d19d='*Change\x20to:*\x20%0',_0x1c998b={'type':'format','content':o(_0x5f4aa9,_0x24d19d,o(_0x5f4aa9,this['_getTranslationKeyForListStyle'](_0x326543['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24d19d=_0x326543['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c998b={'type':'format','content':o(_0x5f4aa9,_0x24d19d)};break;case'listStart':_0x24d19d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c998b={'type':'format','content':o(_0x5f4aa9,_0x24d19d,_0x326543['commandParams'][0x0]['startIndex'])};}return _0x1c998b;});}['_getTranslationKeyForListStyle'](_0x50e92c){return'ELEMENT_'+function(_0x26e6b5){if(pe['includes'](_0x26e6b5))return'bulleted';if(ye['includes'](_0x26e6b5))return'numbered';return null;}(_0x50e92c)['toUpperCase']()+'_LIST_'+_0x50e92c['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4de685{static get['requires'](){return[_0x5ec658];}['init'](){const _0x298383=this['editor'],_0xfe7e71=_0x298383['plugins']['get']('TrackChangesEditing'),_0x53b9d5=_0x298383['commands']['get']('enter');_0xfe7e71['enableCommand']('enter',()=>{_0x298383['model']['change'](_0x11b68b=>{const _0x589143=_0x298383['model']['document']['selection'],_0x484ced=_0x589143['getFirstPosition'](),_0x125c1b=_0x3d4179['fromRange'](_0x589143['getFirstRange']());if(_0x53b9d5['enterBlock'](_0x11b68b)){const _0x195633=_0x298383['model']['createPositionAt'](_0x484ced['parent']['nextSibling'],0x0),_0x39d6e7=_0x11b68b['createRange'](_0x484ced,_0x195633);_0xfe7e71['markInsertion'](_0x39d6e7);}else _0x11b68b['setSelection'](_0x11b68b['createRange'](_0x125c1b['end']));_0x125c1b['detach'](),_0x53b9d5['fire']('afterExecute',{'writer':_0x11b68b});});}),_0x298383['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x298383,'split'),{'priority':'high'}),_0x298383['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2afbc0,_0x5cd1f1,_0x5240f7)=>{const _0x15708c=_0x5240f7['mapper']['markerNameToElements'](_0x5cd1f1['markerName']);if(_0x15708c){for(const _0xc6779a of _0x15708c)_0xc6779a['hasClass']('ck-suggestion-marker-split')&&(_0x5240f7['mapper']['unbindElementFromMarkerName'](_0xc6779a,_0x5cd1f1['markerName']),_0x5240f7['writer']['remove'](_0xc6779a));}},{'priority':'high'}),_0x298383['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c7668,_0x4f9597,_0x54fdab)=>{_0x54fdab['options']['showSuggestionHighlights']&&_e(_0x298383,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3c7668,_0x4f9597,_0x54fdab);},{'priority':'high'});}}class J extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x195e7e=this['editor']['plugins']['get']('TrackChangesEditing');_0x195e7e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x195e7e['enableCommand']('findNext'),_0x195e7e['enableCommand']('findPrevious'),_0x195e7e['enableCommand']('replace'),_0x195e7e['enableCommand']('replaceAll');}['handleFindCommand'](_0x590955,_0x44fec2,_0x20caec={}){const _0x4263c9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x590955(_0x1bcdcb=>('string'==typeof _0x44fec2?_0x4263c9['findByTextCallback'](_0x44fec2,_0x20caec):_0x44fec2)(_0x1bcdcb)['filter'](_0x1064f9=>!0x1===this['_isInDeletionRange'](_0x1064f9,_0x1bcdcb['item'])),_0x20caec);}['_isInDeletionRange'](_0x54819f,_0x23b06e){const _0x23c014=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23b06e,_0x54819f['start']),this['editor']['model']['createPositionAt'](_0x23b06e,_0x54819f['end']));for(const _0x2247a8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23c014['getIntersection'](_0x2247a8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4de685{['afterInit'](){const _0x41ce17=this['editor']['locale'],_0x5baeb3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x161419,commandName:_0x5cd669}of ro)this['editor']['plugins']['has'](_0x161419)&&_0x5baeb3['_enableDefaultAttributesIntegration'](_0x5cd669,[_0x5cd669]);_0x41ce17['t'],_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x41ce17,'FORMAT_FONT_SIZE')),_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x41ce17,'FORMAT_FONT_FAMILY')),_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x41ce17,'FORMAT_FONT_COLOR')),_0x5baeb3['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x41ce17,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44713a=this['editor'],_0x5175d5=_0x44713a['locale'];_0x44713a['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5af913=>{const _0x3f50b3=_0x5175d5['t'];if('formatInline'!=_0x5af913['type'])return;const {data:_0x33a278}=_0x5af913;if(null!=_0x33a278){if('fontSize'==_0x33a278['commandName']){const _0x316b41=_0x33a278['commandParams'][0x0]['value'];if(_0x316b41){const _0x5ee392=_0x3f50b3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1eccdb=>_0x1eccdb['model']==_0x316b41)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20size:*\x20%0',_0x5ee392)};}return{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33a278['commandName']){const _0x3dc5b3=_0x33a278['commandParams'][0x0]['value'];return _0x3dc5b3?{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20family:*\x20%0',_0x3dc5b3)}:{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33a278['commandName']){const _0x389778=_0x33a278['commandParams'][0x0]['value'];if(_0x389778){const _0x40f37c=_0x57fb33(this['editor']['config']['get']('fontColor.colors'))['find'](_0x47ef8b=>_0x47ef8b['model']==_0x389778);let _0x4de182=_0x389778,_0x13e98d='';return _0x40f37c&&(_0x4de182=_0x40f37c['label'],_0x13e98d=_0x3f50b3(_0x4de182)['toLowerCase']()),{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20color:*\x20%0',_0x13e98d)['trim'](),'color':{'value':_0x389778,'title':_0x13e98d||_0x4de182}};}return{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33a278['commandName']){const _0x4fd2cc=_0x33a278['commandParams'][0x0]['value'];if(_0x4fd2cc){const _0x59dc05=_0x57fb33(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xf22d9b=>_0xf22d9b['model']==_0x4fd2cc);let _0x4202e7=_0x4fd2cc,_0x3df737='';return _0x59dc05&&(_0x4202e7=_0x59dc05['label'],_0x3df737=_0x3f50b3(_0x4202e7)['toLowerCase']()),{'type':'format','content':o(_0x5175d5,'*Set\x20font\x20background\x20color:*\x20%0',_0x3df737)['trim'](),'color':{'value':_0x4fd2cc,'title':_0x3df737||_0x4202e7}};}return{'type':'format','content':o(_0x5175d5,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4de685{['afterInit'](){const _0x1d7f27=this['editor'],_0x565d33=_0x1d7f27['plugins']['get']('TrackChangesEditing'),_0x24e6b4=_0x1d7f27['commands']['get']('copyFormat'),_0x453e83=_0x1d7f27['commands']['get']('pasteFormat');_0x24e6b4&&_0x453e83&&(_0x565d33['_enableDefaultAttributesIntegration']('pasteFormat'),_0x565d33['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ee4cc=this['editor'],_0x59892c=_0x5ee4cc['locale'];_0x5ee4cc['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x16518d=>{if('formatBlock'!=_0x16518d['type']&&'formatInline'!=_0x16518d['type'])return;const {data:_0x4ae1ec}=_0x16518d;if(_0x4ae1ec&&'pasteFormat'===_0x4ae1ec['commandName']){const _0x7e85dc=[],_0x3382f4=_0x4ae1ec['commandParams'][0x0];for(const [_0x508ae3,_0x283b52]of Object['entries'](_0x3382f4))_0x7e85dc['push'](so(_0x5ee4cc,_0x508ae3,_0x283b52));return _0x7e85dc['length']?{'type':'format','content':o(_0x59892c,'*Set\x20format\x20to:*\x20%0',_0x7e85dc['join'](',\x20'))}:{'type':'format','content':o(_0x59892c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2c2fa4,_0x59531b,_0x2f6332){const _0x4cf1dd=_0x2c2fa4['locale']['t'],_0x22d5d8=_0x59531b['split'](/(?=[A-Z])/)['join']('\x20'),_0x23a846=_0x4cf1dd(_0x22d5d8['charAt'](0x0)['toUpperCase']()+_0x22d5d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2f6332)return _0x23a846;if('fontColor'===_0x59531b||'fontBackgroundColor'===_0x59531b){const _0x292663=_0x57fb33(_0x2c2fa4['config']['get']('fontColor.colors'))['find'](_0x5b164b=>_0x5b164b['model']==_0x2f6332);return _0x23a846+'\x20('+(_0x292663?_0x4cf1dd(_0x292663['label'])['toLowerCase']():_0x2f6332)+')';}if('fontSize'===_0x59531b&&isNaN(parseFloat(_0x2f6332))){const _0x2c7e1b=_0x2c2fa4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2c2fa4['config']['get']('fontSize.options'))['find'](_0x4ee8c8=>_0x4ee8c8['model']==_0x2f6332);return _0x23a846+'\x20('+(_0x2c7e1b?_0x4cf1dd(_0x2c7e1b['title'])['toLowerCase']():_0x2f6332)+')';}return _0x23a846+'\x20('+_0x2f6332+')';}class Y extends _0x4de685{['afterInit'](){const _0x555eb7=this['editor'];if(!_0x555eb7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x555eb7['config']['get']('heading.options');const _0x1a8853=_0x555eb7['locale'],_0x1e8dc0=_0x555eb7['plugins']['get']('TrackChangesEditing');_0x1e8dc0['_enableDefaultAttributesIntegration']('heading');for(const _0x27a5bd of this['_headingOptions'])'paragraph'!=_0x27a5bd['model']&&_0x1e8dc0['_descriptionFactory']['registerElementLabel'](_0x27a5bd['model'],_0x493ea0=>{const _0x213178=this['_getHeadingLevel'](_0x27a5bd['model']);return null!==_0x213178?_0x4120a5(_0x493ea0,_0x213178):_0x576bfe(_0x493ea0,_0x27a5bd['title']);});function _0x4120a5(_0x405e86,_0x187306){return o(_0x1a8853,'ELEMENT_HEADING',[_0x405e86,_0x187306]);}function _0x576bfe(_0x213b05,_0x2593a6){return o(_0x1a8853,'ELEMENT_HEADING_CUSTOM',[_0x213b05,_0x2593a6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x217634=this['editor'],_0x324a14=_0x217634['locale'];function _0x147dc0(_0x541d44,_0x30d623){return o(_0x324a14,'ELEMENT_HEADING_CUSTOM',[_0x541d44,_0x30d623]);}_0x217634['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xb0460d=>{if('formatBlock'!=_0xb0460d['type'])return;const {data:_0x5d7944}=_0xb0460d;if(_0x5d7944&&'heading'==_0x5d7944['commandName']){const _0x31ef21=_0x5d7944['commandParams'][0x0]['value'],_0x8569a3=this['_getHeadingLevel'](_0x31ef21);if(null!==_0x8569a3)return{'type':'format','content':o(_0x324a14,'*Change\x20to:*\x20%0',(_0x4bc616=0x1,_0x3d9cde=_0x8569a3,o(_0x324a14,'ELEMENT_HEADING',[_0x4bc616,_0x3d9cde])))};const _0x3a1e83=this['_headingOptions']['find'](_0x4263cf=>_0x4263cf['model']===_0x31ef21)['title'];return{'type':'format','content':o(_0x324a14,'*Change\x20to:*\x20%0',_0x147dc0(0x1,_0x3a1e83))};}var _0x4bc616,_0x3d9cde;});}['_getHeadingLevel'](_0x583e09){var _0x5f30ef,_0x49b43f;const _0x145d54=_0x583e09['match'](/^heading(\d+)/);if(_0x145d54)return _0x145d54[0x1];const _0xb41f96=null===(_0x5f30ef=this['_headingOptions'])||void 0x0===_0x5f30ef?void 0x0:_0x5f30ef['find'](_0xc7332a=>_0xc7332a['model']==_0x583e09);if(_0xb41f96&&_0xb41f96['view']){const _0x2232bd=_0xb41f96['view'],_0x4887ee=(null!==(_0x49b43f=_0x2232bd['name'])&&void 0x0!==_0x49b43f?_0x49b43f:_0x2232bd)['match'](/^h(\d+)/);if(_0x4887ee)return _0x4887ee[0x1];}return null;}}class Z extends _0x4de685{['afterInit'](){const _0x2a8967=this['editor'];if(!_0x2a8967['plugins']['has']('HighlightEditing'))return;const _0x174060=_0x2a8967['plugins']['get']('TrackChangesEditing'),_0x735faa=_0x2a8967['locale'];_0x174060['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x174060['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x735faa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31af6d=this['editor'],_0x50947b=_0x31af6d['locale'];_0x31af6d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x77d45b=>{if('formatInline'!=_0x77d45b['type'])return;const {data:_0x43332a}=_0x77d45b;if(_0x43332a&&'highlight'==_0x43332a['commandName']){const _0x10805e=_0x50947b['t'],_0x5b547f=_0x43332a['commandParams'][0x0]['value'];if(_0x5b547f){const _0x4e2050=_0x31af6d['config']['get']('highlight.options')['find'](_0x43daf1=>_0x43daf1['model']==_0x5b547f),_0x226080=_0x10805e(_0x4e2050['title'])['toLowerCase']();return{'type':'format','content':o(_0x50947b,'*Set\x20highlight:*\x20%0',_0x226080),'color':{'value':_0x4e2050['color'],'title':_0x4e2050['title']}};}return{'type':'format','content':o(_0x50947b,'*Remove\x20highlight*',o(_0x50947b,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4de685{['afterInit'](){const _0x3e96ae=this['editor'];if(!_0x3e96ae['plugins']['has']('HorizontalLineEditing'))return;_0x3e96ae['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c61a9=_0x3e96ae['plugins']['get']('TrackChangesEditing'),_0x2768=_0x3e96ae['locale'];_0x4c61a9['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x1cd8de=>o(_0x2768,'ELEMENT_HORIZONTAL_LINE',_0x1cd8de)),_0x3e96ae['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x59af91,{writer:_0x2ebe6a,options:_0x27ecdb})=>{if(!_0x27ecdb['showSuggestionHighlights'])return null;const _0x598e7d=_0x2ebe6a['createContainerElement']('div'),_0x4a7c01=_0x2ebe6a['createEmptyElement']('hr');return _0x2ebe6a['addClass']('ck-horizontal-line',_0x598e7d),_0x2ebe6a['insert'](_0x2ebe6a['createPositionAt'](_0x598e7d,0x0),_0x4a7c01),_0x598e7d;},'converterPriority':'high'});}}class et extends _0x4de685{['afterInit'](){const _0x3963bf=this['editor'];if(!_0x3963bf['plugins']['has']('HtmlEmbed'))return;const _0xda1a02=_0x3963bf['plugins']['get']('TrackChangesEditing'),_0x1eba7d=_0x3963bf['locale'];_0xda1a02['_descriptionFactory']['registerElementLabel']('rawHtml',_0x567b53=>o(_0x1eba7d,'ELEMENT_HTML_EMBED',_0x567b53)),_0xda1a02['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0xda1a02['_descriptionFactory']['registerDescriptionCallback'](_0x3848a4=>{if('attribute'!=_0x3848a4['type'])return;const {data:_0x41729a}=_0x3848a4;if(_0x41729a&&'value'==_0x41729a['key']&&_0x3848a4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x446f9e=o(_0x1eba7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1eba7d,'*Change\x20%0\x20content*',_0x446f9e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x326b5b=this['editor'],_0x2db305=_0x326b5b['locale'];_0x326b5b['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x290a4e=>{if('formatBlock'!=_0x290a4e['type'])return;const {data:_0x538a9f}=_0x290a4e;if(_0x538a9f&&'htmlEmbed'==_0x538a9f['commandName']){const _0x4a7464=o(_0x2db305,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2db305,'*Change\x20%0\x20content*',_0x4a7464)};}});}}class it extends _0x4de685{['afterInit'](){const _0x29d497=this['editor'];if(!_0x29d497['plugins']['has']('ImageEditing'))return;const _0x23a8e9=_0x29d497['plugins']['get']('TrackChangesEditing'),_0x3b0144=_0x29d497['plugins']['get']('ImageUtils'),_0x2c0c21=_0x29d497['locale'];_0x23a8e9['enableCommand']('insertImage'),_0x23a8e9['_descriptionFactory']['registerElementLabel']('imageBlock',_0x1d7c42=>o(_0x2c0c21,'ELEMENT_IMAGE',_0x1d7c42)),_0x23a8e9['_descriptionFactory']['registerElementLabel']('imageInline',_0x40d738=>o(_0x2c0c21,'ELEMENT_INLINE_IMAGE',_0x40d738)),_0x23a8e9['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2c0c21,'ELEMENT_CAPTION')),_0x29d497['plugins']['has']('ImageUploadEditing')&&_0x23a8e9['enableCommand']('uploadImage'),_0x29d497['plugins']['has']('ImageBlockEditing')&&_0x29d497['plugins']['has']('ImageInlineEditing')&&(_0x23a8e9['enableCommand']('imageTypeInline',(_0x1af8b2,_0x17a248)=>{const _0x237966=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']);_0x29d497['model']['change'](()=>{_0x23a8e9['markBlockFormat'](_0x237966,{'commandName':'imageTypeInline','commandParams':[_0x17a248]},[],'convertBlockImageToInline');});}),_0x23a8e9['enableCommand']('imageTypeBlock',(_0x119d94,_0xe3ac11)=>{_0x29d497['model']['change'](_0x299e43=>{let _0x38455d=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x410d11=_0x299e43['createRangeOn'](_0x38455d);const _0x38f1e3=_0x43ced0['fromPosition'](_0x410d11['start'],'toPrevious'),_0x3cb070=_0x43ced0['fromPosition'](_0x410d11['end'],'toNext');_0x23a8e9['forceDefaultExecution'](()=>_0x119d94(_0xe3ac11)),_0x38455d=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x410d11=_0x299e43['createRangeOn'](_0x38455d);const _0x46d4bc=_0x299e43['createRange'](_0x38f1e3,_0x3cb070);_0x38f1e3['detach'](),_0x3cb070['detach'](),_0x23a8e9['markBlockFormat'](_0x38455d,{'commandName':'imageTypeInline','commandParams':[_0xe3ac11]},[],'convertInlineImageToBlock'),_0x46d4bc['start']['isBefore'](_0x410d11['start'])&&_0x23a8e9['markInsertion'](_0x299e43['createRange'](_0x46d4bc['start'],_0x410d11['start']),'convertInlineImageToBlock'),_0x410d11['end']['isBefore'](_0x46d4bc['end'])&&_0x23a8e9['markInsertion'](_0x299e43['createRange'](_0x410d11['end'],_0x46d4bc['end']),'convertInlineImageToBlock');});}),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x23a8e9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e8f51])=>{const _0x5b5385=_0x23a8e9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2abc9d=_0x2e8f51['start'],_0x384b71=_0x2e8f51['end'];const _0x5c8f4f=_0x29d497['model']['schema']['getNearestSelectionRange'](_0x2abc9d,'backward'),_0x281b05=_0x29d497['model']['schema']['getNearestSelectionRange'](_0x384b71,'forward');_0x5c8f4f['isCollapsed']&&(_0x2abc9d=_0x5c8f4f['start']),_0x281b05['isCollapsed']&&(_0x384b71=_0x281b05['end']),_0x5b5385([_0x29d497['model']['createRange'](_0x2abc9d,_0x384b71)]);}),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x50d185),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x50d185)),_0x29d497['plugins']['has']('ImageCaptionEditing')&&(_0x23a8e9['enableCommand']('toggleImageCaption',(_0x47f75e,_0x287c47)=>{const _0x502796=_0x29d497['plugins']['get']('ImageCaptionUtils');let _0x35e4e4=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x5b9900=_0x502796['getCaptionFromImageModelElement'](_0x35e4e4);_0x29d497['model']['change'](()=>{if(_0x5b9900)return void _0x23a8e9['markDeletion'](_0x29d497['model']['createRangeOn'](_0x5b9900));const _0x9ad20d=_0x3b0144['isBlockImage'](_0x35e4e4);_0x47f75e(_0x287c47),_0x35e4e4=_0x3b0144['getClosestSelectedImageElement'](_0x29d497['model']['document']['selection']),_0x5b9900=_0x502796['getCaptionFromImageModelElement'](_0x35e4e4),_0x23a8e9['markInsertion'](_0x29d497['model']['createRangeOn'](_0x5b9900),_0x9ad20d?null:'imageCaption');});}),_0x23a8e9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x50d185));const _0x5e3fd9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4151d2(_0x42f9fb,_0x2a2cef){const _0x2f067d=_0x5e3fd9['findIndex'](({type:_0x541d67,subType:_0x234732})=>_0x42f9fb['type']==_0x541d67&&_0x42f9fb['subType']==_0x234732),_0x3594db=_0x5e3fd9['findIndex'](({type:_0x2ed4c4,subType:_0x436a0d})=>_0x2a2cef['type']==_0x2ed4c4&&_0x2a2cef['subType']==_0x436a0d);if(_0x2f067d<0x0||_0x3594db<0x0)return!0x1;const _0x4e9a0e=_0x42f9fb['getFirstRange'](),_0xcf6c0=_0x2a2cef['getFirstRange']();if((0x0==_0x2f067d||0x1==_0x2f067d)&&0x2==_0x3594db&&_0x4e9a0e['isIntersecting'](_0xcf6c0))return!0x0;if(0x2==_0x2f067d&&0x3==_0x3594db){const _0x3d9f33=_0x23a8e9['_findSuggestions'](_0x4e9a0e,'insertion')['filter'](({suggestion:_0x7f9dbe,meta:_0x4543e5})=>_0x4543e5['isOwn']&&'convertInlineImageToBlock'==_0x7f9dbe['subType']);if(_0x3d9f33['length']>0x1&&_0xcf6c0['end']['isEqual'](_0x4e9a0e['start']))return!0x0;if(0x1==_0x3d9f33['length']&&(_0x4e9a0e['start']['isEqual'](_0xcf6c0['end'])||_0x4e9a0e['end']['isEqual'](_0xcf6c0['start'])))return!0x0;}if(0x3==_0x2f067d&&0x3==_0x3594db&&_0x4e9a0e['start']['isBefore'](_0xcf6c0['start'])){const _0x5ddecd=_0x4e9a0e['end']['nodeAfter'],_0x1852dc=_0xcf6c0['start']['nodeBefore'];return _0x3b0144['isBlockImage'](_0x5ddecd)&&_0x5ddecd===_0x1852dc;}return!0x1;}function _0x50d185(_0x479599,_0x326b25){return _0x4151d2(_0x479599,_0x326b25)?[_0x479599,_0x326b25]:_0x4151d2(_0x326b25,_0x479599)?[_0x326b25,_0x479599]:null;}_0x29d497['plugins']['has']('ImageResize')&&(_0x23a8e9['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x23a8e9['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2c0c21,'FORMAT_IMAGE_SIZE'))),_0x29d497['plugins']['has']('ImageTextAlternativeEditing')&&_0x23a8e9['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0xff5fb2=>{if(!!_0x5e3fd9['find'](({type:_0x301f71,subType:_0x2f2e5a})=>_0xff5fb2['type']==_0x301f71&&_0xff5fb2['subType']==_0x2f2e5a))return _0xff5fb2['previous']?{}:void 0x0;}),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0x1fb418=>{if('insertion'==_0x1fb418['type']||'deletion'==_0x1fb418['type']){const _0xde37de=_0x1fb418['getContainedElement']();if(_0xde37de&&_0xde37de['is']('element','caption'))return{'type':'insertion'==_0x1fb418['type']?'addObject':'removeObject','element':_0xde37de,'quantity':0x1};}}),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0x2eca61=>'formatBlock'==_0x2eca61['type']&&'convertInlineImageToBlock'==_0x2eca61['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2eca61['type']&&'convertBlockImageToInline'==_0x2eca61['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x23a8e9['_descriptionFactory']['registerDescriptionCallback'](_0x5a34ea=>{if('attribute'!=_0x5a34ea['type'])return;const {data:_0x1ffc44}=_0x5a34ea;if(!_0x1ffc44||'alt'!=_0x1ffc44['key'])return;const _0x4f1990=_0x1ffc44['newValue'];return _0x4f1990?{'type':'format','content':o(_0x2c0c21,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f1990+'\x22')}:{'type':'format','content':o(_0x2c0c21,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452625=this['editor'],_0x296041=_0x452625['locale'];_0x452625['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xc91539=>{if('formatBlock'!=_0xc91539['type']&&'formatInline'!=_0xc91539['type'])return;const {data:_0x52c957}=_0xc91539;if(_0x52c957){if('imageTextAlternative'==_0x52c957['commandName']){const _0x580e5d=_0x52c957['commandParams'][0x0]['newValue'];return _0x580e5d?{'type':'format','content':o(_0x296041,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x580e5d+'\x22')}:{'type':'format','content':o(_0x296041,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52c957['commandName']){const _0x25e358=_0x52c957['commandParams'][0x0]['width'];return _0x25e358?{'type':'format','content':o(_0x296041,'*Set\x20image\x20width:*\x20%0',_0x25e358)}:{'type':'format','content':o(_0x296041,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x252a08=this['editor']['locale'],_0x25a6fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x25a6fe['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x25a6fe['_descriptionFactory']['registerDescriptionCallback'](_0x5e58c8=>{if('attribute'!=_0x5e58c8['type'])return;const {data:_0x1df897}=_0x5e58c8;return _0x1df897&&'src'==_0x1df897['key']?_0x1df897['newValue']&&_0x1df897['oldValue']?{'type':'format','content':o(_0x252a08,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2bf976=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bf976['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2bf976['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bf976['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2bf976['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf8181d=this['editor'],_0x21ad43=_0xf8181d['locale'];_0xf8181d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5de12a=>{if('formatBlock'!=_0x5de12a['type']&&'formatInline'!=_0x5de12a['type'])return;const {data:_0x37983e}=_0x5de12a;if(!_0x37983e||'replaceImageSource'!=_0x37983e['commandName'])return;return{'type':'format','content':o(_0x21ad43,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4de685{['afterInit'](){const _0x590afd=this['editor'];if(!_0x590afd['plugins']['has']('ImageStyleEditing'))return;const _0x557c2b=_0x590afd['plugins']['get']('TrackChangesEditing'),_0x45245b=_0x590afd['plugins']['get']('ImageUtils'),_0x5bc792={};_0x557c2b['enableCommand']('imageStyle',(_0x41fada,_0x4ae7a0)=>{const _0x44e5f8=_0x590afd['plugins']['get']('Users')['me'],_0x582516=_0x590afd['commands']['get']('imageStyle');let _0x1199c3=_0x45245b['getClosestSelectedImageElement'](_0x590afd['model']['document']['selection']),_0x347fb3=_0x590afd['model']['createRangeOn'](_0x1199c3),_0x483b03=_0x582516['value'];if(_0x483b03==_0x4ae7a0['value'])return;const _0x56747b={'commandName':'imageStyle','commandParams':[_0x4ae7a0],'formatGroupId':_0x2c7d4a()};_0x590afd['model']['change'](()=>{if(_0x557c2b['getSuggestions']()['filter'](_0x41c161=>_0x41c161['isInContent']&&_0x44e5f8==_0x41c161['author']&&('formatBlock'==_0x41c161['type']||'formatInline'==_0x41c161['type'])&&('imageStylePreApply'==_0x41c161['subType']||'imageStylePostApply'==_0x41c161['subType'])&&_0x41c161['getFirstRange']()['isEqual'](_0x347fb3))['forEach'](_0xc5a556=>_0x557c2b['discardSuggestion'](_0xc5a556['head'])),_0x1199c3=_0x45245b['getClosestSelectedImageElement'](_0x590afd['model']['document']['selection']),_0x347fb3=_0x590afd['model']['createRangeOn'](_0x1199c3),_0x582516['refresh'](),_0x590afd['commands']['get']('imageTypeInline')['refresh'](),_0x590afd['commands']['get']('imageTypeBlock')['refresh'](),_0x483b03=_0x582516['value'],_0x483b03!=_0x4ae7a0['value'])return _0x45245b['isInlineImage'](_0x1199c3)&&_0x582516['shouldConvertImageType'](_0x4ae7a0['value'],_0x1199c3)?(_0x41fada({..._0x4ae7a0,'setImageSizes':!0x1}),_0x1199c3=_0x45245b['getClosestSelectedImageElement'](_0x590afd['model']['document']['selection']),void _0x557c2b['markBlockFormat'](_0x1199c3,{..._0x56747b,'commandReversedParams':[{'value':_0x483b03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45245b['isBlockImage'](_0x1199c3)?_0x557c2b['markBlockFormat'](_0x1199c3,_0x56747b,[],'imageStylePostApply'):_0x557c2b['markInlineFormat'](_0x347fb3,_0x56747b,'imageStylePostApply'));});});for(const _0x48465e of _0x590afd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5bc792[_0x48465e['name']]=_0x48465e['title']['toLowerCase']();_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x234801])=>{_0x45245b['setImageNaturalSizeAttributes'](_0x234801['getContainedElement']());}),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5334f2,_0x34e5cf)=>{_0x557c2b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5334f2,{'commandName':_0x34e5cf['commandName'],'commandParams':_0x34e5cf['commandReversedParams']});}),_0x557c2b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf2ee9c,_0x23f774){if(_0x1ec9b9(_0xf2ee9c,_0x23f774))return[_0xf2ee9c,_0x23f774];if(_0x1ec9b9(_0x23f774,_0xf2ee9c))return[_0x23f774,_0xf2ee9c];return null;});const _0x596516=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ec9b9(_0x1b25e5,_0x46ded5){const _0x45b743=_0x596516['findIndex'](({type:_0x2f7f1e,subType:_0x18fe54})=>_0x1b25e5['type']==_0x2f7f1e&&_0x1b25e5['subType']==_0x18fe54),_0x255ece=_0x596516['findIndex'](({type:_0x1a1c1a,subType:_0x439f4e})=>_0x46ded5['type']==_0x1a1c1a&&_0x46ded5['subType']==_0x439f4e);if(_0x45b743<0x0||_0x255ece<0x0)return!0x1;const _0x48ce3c=_0x1b25e5['getFirstRange'](),_0xae35b8=_0x46ded5['getFirstRange']();if((0x0==_0x45b743||0x1==_0x45b743)&&0x2==_0x255ece&&_0x48ce3c['isIntersecting'](_0xae35b8))return!0x0;if(0x2==_0x45b743&&0x3==_0x255ece){const _0x524ccc=_0x557c2b['_findSuggestions'](_0x48ce3c,'insertion')['filter'](({suggestion:_0x57b986,meta:_0xcb4046})=>_0xcb4046['isOwn']&&'convertInlineImageToBlock'==_0x57b986['subType']);if(_0x524ccc['length']>0x1&&_0xae35b8['end']['isEqual'](_0x48ce3c['start']))return!0x0;if(0x1==_0x524ccc['length']&&(_0x48ce3c['start']['isEqual'](_0xae35b8['end'])||_0x48ce3c['end']['isEqual'](_0xae35b8['start'])))return!0x0;}if(0x3==_0x45b743&&0x3==_0x255ece&&_0x48ce3c['start']['isBefore'](_0xae35b8['start'])){const _0x548e27=_0x48ce3c['end']['nodeAfter'],_0x560ce1=_0xae35b8['start']['nodeBefore'];return _0x45245b['isBlockImage'](_0x548e27)&&_0x548e27===_0x560ce1;}return!0x1;}_0x590afd['model']['document']['registerPostFixer'](()=>{let _0x55dee8=!0x1;const _0x4b9578=Array['from'](_0x590afd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b4b4a,data:_0x5652ae}of _0x4b9578){const {group:_0x47a6d2,type:_0x1a15c9,subType:_0x308410,id:_0x3b1a60}=_0x557c2b['_splitMarkerName'](_0x1b4b4a);if('suggestion'==_0x47a6d2&&_0x557c2b['hasSuggestion'](_0x3b1a60)){if('formatBlock'==_0x1a15c9&&('imageStylePreApply'==_0x308410||'imageStylePostApply'==_0x308410)){const _0x4e3a96=_0x557c2b['getSuggestion'](_0x3b1a60);if(_0x5652ae['newRange']){const _0x34acfb=_0x4e3a96['getFirstRange']()['getContainedElement']();if(_0x45245b['isBlockImage'](_0x34acfb))continue;_0x557c2b['discardSuggestion'](_0x4e3a96),_0x55dee8=!0x0;}}if('insertion'==_0x1a15c9&&'imageCaption'==_0x308410&&!_0x5652ae['newRange']){const _0x3de341=_0x557c2b['getSuggestion'](_0x3b1a60);_0x3de341['next']&&_0x3de341['next']['isInContent']&&(_0x557c2b['discardSuggestion'](_0x3de341['next']),_0x55dee8=!0x0);}}}return _0x55dee8;}),this['_registerLegacyDescription'](_0x5bc792);}['_registerLegacyDescription'](_0x3fcb6d){const _0x10c224=this['editor'],_0x456a14=_0x10c224['locale'];_0x10c224['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xbb169e=>{if('formatBlock'!=_0xbb169e['type']&&'formatInline'!=_0xbb169e['type'])return;const {data:_0x387659}=_0xbb169e;if(!_0x387659||'imageStyle'!=_0x387659['commandName'])return;const _0x3eb134=_0x387659['commandParams'][0x0]['value'];return _0x94727c('side'===_0x3eb134?o(_0x456a14,'FORMAT_SIDE_IMAGE'):_0x3fcb6d[_0x3eb134]||_0x3eb134);function _0x94727c(_0x21e3e4){return{'type':'format','content':o(_0x456a14,'*Format:*\x20%0',_0x21e3e4)};}});}}class ot extends _0x4de685{['afterInit'](){const _0x1cd607=this['editor'],_0x5e7911=_0x1cd607['commands']['get']('importWord'),_0x5df9b0=_0x1cd607['commands']['get']('trackChanges');_0x5e7911&&(_0x5e7911['on']('execute',(_0x38027f,[,_0x4f2d09])=>{this['_trackChangesValueDuringImport']=_0x5df9b0['value'],_0x4f2d09['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5e7911,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5e7911,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5df9b0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1cd607['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2eb95a,_0x399f19){const {suggestions:_0x258cbd}=_0x399f19,_0xa1c934=this['editor']['commands']['get']('trackChanges'),_0x504842=_0xa1c934['value'];this['_trackChangesValueDuringImport']!==_0x504842&&(_0xa1c934['execute'](),this['_trackChangesExecuted']=!0x0),_0x258cbd&&_0x258cbd['forEach'](({id:_0x5c464b,type:_0x67c5fe,author:_0x132ec4,created_at:_0x8d34d8})=>{const _0x405701={'id':_0x5c464b,'type':_0x67c5fe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x132ec4,'createdAt':_0x8d34d8?new Date(_0x8d34d8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x405701);});}constructor(_0x140add){super(_0x140add),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x4de685{['afterInit'](){const _0x2c36f9=this['editor'],_0x395966=_0x2c36f9['plugins']['get']('TrackChangesEditing');if(_0x2c36f9['plugins']['has']('IndentEditing')&&(_0x395966['enableCommand']('indent'),_0x395966['enableCommand']('outdent')),_0x2c36f9['plugins']['has']('IndentBlock')){for(const _0xf9df5b of['indentBlock','outdentBlock'])_0x395966['_enableDefaultAttributesIntegration'](_0xf9df5b);}const _0x124a41=_0x2c36f9['locale'];_0x395966['_registerBlockAttribute']('blockIndent'),_0x395966['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x124a41,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dd18f=this['editor'],_0x2a690d=_0x5dd18f['locale'],_0x690de5=_0x5dd18f['plugins']['get']('TrackChangesEditing');_0x690de5['_descriptionFactory']['registerDescriptionCallback'](_0x59395b=>{if('formatBlock'!=_0x59395b['type'])return;const {data:_0x328c72}=_0x59395b;if(!_0x328c72)return;if('indentBlock'!=_0x328c72['commandName']&&'outdentBlock'!=_0x328c72['commandName'])return;const _0x36ade8=_0x59395b['getItems']()[0x0],_0x3bf6da=_0x690de5['_descriptionFactory']['getItemLabel'](_0x36ade8);return'indentBlock'==_0x328c72['commandName']?{'type':'format','content':o(_0x2a690d,'*Indent:*\x20%0',_0x3bf6da)}:'outdentBlock'==_0x328c72['commandName']?{'type':'format','content':o(_0x2a690d,'*Outdent:*\x20%0',_0x3bf6da)}:void 0x0;});}}class at extends _0x4de685{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4de685{['afterInit'](){const _0x18dd0e=this['editor'];if(!_0x18dd0e['plugins']['has']('LinkEditing'))return;const _0x292904=_0x18dd0e['plugins']['get']('TrackChangesEditing'),_0x373167=_0x18dd0e['commands']['get']('link');_0x292904['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x373167['manualDecorators']['map'](_0x2e4af7=>_0x2e4af7['id'])]),_0x292904['_enableDefaultAttributesIntegration']('unlink');for(const _0x43d524 of _0x373167['manualDecorators'])_0x292904['_descriptionFactory']['registerAttributeLabel'](_0x43d524['id'],'link\x20('+_0x43d524['label']['toLowerCase']()+')');_0x292904['_descriptionFactory']['registerDescriptionCallback'](_0x3a0449=>{if('attribute'!=_0x3a0449['type'])return;const {data:_0x3710d5}=_0x3a0449;if(!_0x3710d5||'linkHref'!=_0x3710d5['key'])return;const _0x4bcdb1=_0x3710d5['newValue'],_0x57eedb=_0x18dd0e['locale'];return{'type':'format','content':null==_0x4bcdb1?o(_0x57eedb,'*Remove\x20link*'):o(_0x57eedb,'*Set\x20link:*\x20%0','\x22'+_0x4bcdb1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5603f6=this['editor'],_0xeabcdd=_0x5603f6['locale'];_0x5603f6['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2a0919=>{if('formatInline'!=_0x2a0919['type'])return;const {data:_0x1e45ba}=_0x2a0919;if(_0x1e45ba){if('link'==_0x1e45ba['commandName']){const _0x2f3cc1=_0x1e45ba['commandParams'][0x0];return{'type':'format','content':o(_0xeabcdd,'*Set\x20link:*\x20%0','\x22'+_0x2f3cc1+'\x22')};}return'unlink'==_0x1e45ba['commandName']?{'type':'format','content':o(_0xeabcdd,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4de685{['afterInit'](){const _0x3bccf2=this['editor'],_0x140c35=_0x3bccf2['locale'];if(!_0x3bccf2['plugins']['has']('LegacyListEditing'))return;const _0x4e9d22=_0x3bccf2['plugins']['get']('TrackChangesEditing'),_0x387be0=_0x3bccf2['plugins']['has']('LegacyTodoListEditing');function _0x658556(_0x384561){return()=>{const _0x520a7c=_0x3bccf2['model']['document']['selection'],_0x4cdb80=_0x3bccf2['commands']['get'](_0x384561);if(_0x4cdb80['value'])return void _0x3bccf2['execute']('paragraph',{});const _0x58f3fc=_0x384561['slice'](0x0,-0x4),_0x418d19=function(_0x142860,_0xc7a1d4,_0x5b4dda){let _0x23347c=Array['from'](_0x142860)['filter'](_0x513fa3=>function(_0x184bb7,_0x201b59){return _0x201b59['checkChild'](_0x184bb7['parent'],'listItem')&&!_0x201b59['isObject'](_0x184bb7);}(_0x513fa3,_0x5b4dda));_0x23347c=_0x23347c['filter'](_0x5ae541=>!_0x5ae541['is']('element','listItem')||_0x5ae541['getAttribute']('listType')!=_0xc7a1d4);const _0x492b53=new Set();for(const _0x29b814 of _0x23347c)_0x29b814['is']('element','listItem')?_0x492b53['add'](me(_0x29b814)):_0x492b53['add'](_0x29b814);return Array['from'](_0x492b53);}(_0x520a7c['getSelectedBlocks'](),_0x58f3fc,_0x3bccf2['model']['schema']);_0x3bccf2['model']['change'](()=>{for(const _0x286d1e of _0x418d19)_0x4e9d22['markBlockFormat'](_0x286d1e,{'commandName':_0x384561,'commandParams':[{'forceValue':!_0x4cdb80['value']}],'formatGroupId':'blockName'},fe(_0x286d1e));});};}function _0x3f193e(_0xa42a85){return()=>{const _0xf55e66=function(_0x5011d6){let _0x1ee4f5=Array['from'](_0x5011d6);const _0x433dfb=_0x1ee4f5['findIndex'](_0xe6ffd1=>'listItem'!=_0xe6ffd1['name']);return _0x433dfb>-0x1&&(_0x1ee4f5=_0x1ee4f5['slice'](0x0,_0x433dfb)),_0x1ee4f5;}(_0x3bccf2['model']['document']['selection']['getSelectedBlocks']()),_0x5645e6=_0x3bccf2['model']['createRange'](_0x3bccf2['model']['createPositionAt'](_0xf55e66[0x0],'before'),_0x3bccf2['model']['createPositionAt'](_0xf55e66[_0xf55e66['length']-0x1],'end'));_0x3bccf2['model']['change'](()=>{_0x4e9d22['markBlockFormat'](_0x5645e6,{'commandName':_0xa42a85,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1296e0){const _0x2caed2=new Set();for(const _0x373835 of _0x1296e0){let _0x142766=_0x373835['nextSibling'];for(;_0x142766&&_0x142766['getAttribute']('listIndent')>_0x373835['getAttribute']('listIndent');)_0x2caed2['add'](_0x142766),_0x142766=_0x142766['nextSibling'];}return Array['from'](_0x2caed2);}(_0xf55e66));});};}_0x4e9d22['enableCommand']('numberedList',_0x658556('numberedList')),_0x4e9d22['enableCommand']('bulletedList',_0x658556('bulletedList')),_0x387be0&&_0x4e9d22['enableCommand']('todoList',_0x658556('todoList')),_0x4e9d22['enableCommand']('indentList',_0x3f193e('indentList')),_0x4e9d22['enableCommand']('outdentList',_0x3f193e('outdentList')),_0x387be0&&_0x4e9d22['enableCommand']('checkTodoList',()=>{const _0x423749=_0x3bccf2['commands']['get']('checkTodoList'),_0x5b46c9=Array['from'](_0x423749['_selectedElements']);_0x5b46c9['filter'](_0x3536dc=>_0x3536dc['getAttribute']('todoListChecked')!=_0x423749['value']),_0x3bccf2['model']['change'](()=>{for(const _0x588de4 of _0x5b46c9)_0x4e9d22['markBlockFormat'](_0x588de4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x423749['value']}]});});}),_0x4e9d22['_descriptionFactory']['registerElementLabel']('listItem',_0x59b53c=>o(_0x140c35,'ELEMENT_LIST_ITEM',_0x59b53c)),_0x4e9d22['_descriptionFactory']['registerDescriptionCallback'](_0x254b74=>{if('formatBlock'!=_0x254b74['type']&&'formatInline'!=_0x254b74['type'])return;const {data:_0x532ef7}=_0x254b74;if(_0x532ef7){if('numberedList'==_0x532ef7['commandName']||'bulletedList'==_0x532ef7['commandName']||'todoList'==_0x532ef7['commandName'])switch(_0x532ef7['commandName']['replace']('List','')){case'bulleted':return _0x2e326f(o(_0x140c35,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e326f(o(_0x140c35,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e326f(o(_0x140c35,'ELEMENT_TODO_LIST'));}if('indentList'==_0x532ef7['commandName'])return{'type':'format','content':o(_0x140c35,'*Indent:*\x20%0',o(_0x140c35,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x532ef7['commandName'])return{'type':'format','content':o(_0x140c35,'*Outdent:*\x20%0',o(_0x140c35,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x532ef7['commandName'])return _0x532ef7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x140c35,'*Check\x20item*')}:{'type':'format','content':o(_0x140c35,'*Uncheck\x20item*')};}function _0x2e326f(_0x40285a){return{'type':'format','content':o(_0x140c35,'*Change\x20to:*\x20%0',_0x40285a)};}});}}function me(_0x125a91){const _0x240f3a=_0x125a91['getAttribute']('listIndent');if(0x0==_0x240f3a)return _0x125a91;let _0x42f2de=_0x125a91;for(;_0x125a91['previousSibling']&&_0x125a91['previousSibling']['is']('element','listItem');){const _0x192d07=_0x125a91['previousSibling']['getAttribute']('listIndent');if(_0x192d07==_0x240f3a)_0x42f2de=_0x125a91['previousSibling'];else{if(_0x192d07<_0x240f3a)break;}_0x125a91=_0x125a91['previousSibling'];}return _0x42f2de;}function fe(_0x1d5c91){const _0xf4c1a7=[];if(_0x1d5c91['is']('element','listItem')&&_0x1d5c91['getAttribute']('listIndent')>0x0){let _0x31f8ff=_0x1d5c91['nextSibling'];for(;_0x31f8ff&&'listItem'==_0x31f8ff['name']&&_0x31f8ff['getAttribute']('listIndent')==_0x1d5c91['getAttribute']('listIndent');)_0xf4c1a7['push'](_0x31f8ff),_0x31f8ff=_0x31f8ff['nextSibling'];}return _0xf4c1a7;}class K extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32abd2=this['editor']['config']['get']('list.properties'),_0x13665=this['editor']['plugins']['get']('TrackChangesEditing');_0x32abd2['styles']&&_0x13665['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32abd2['reversed']&&_0x13665['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32abd2['startIndex']&&_0x13665['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13665['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37702e,_0x576b18={}){const _0x31f9c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3dd1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x31f9c7['markMultiRangeBlockFormat'](_0x4c3dd1,{'commandName':'listStyle','commandParams':[{'type':_0x576b18['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39b780,_0x23c947={}){const _0x58c74e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x475b60=this['_getSuggestionBlocks'](_0x39ad6b=>_0x39ad6b['is']('element','listItem')&&'numbered'===_0x39ad6b['getAttribute']('listType'));if(_0x475b60['length']<0x1)return;const _0x3b4443=_0x475b60['map'](_0x357dbe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x357dbe,'before'),this['editor']['model']['createPositionAt'](_0x357dbe,0x0)));this['editor']['model']['change'](()=>{_0x58c74e['markMultiRangeBlockFormat'](_0x3b4443,{'commandName':'listReversed','commandParams':[{'reversed':_0x23c947['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xec216a,_0xf2e5b1={}){const _0x55456a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6b762=this['_getSuggestionBlocks'](_0x118345=>_0x118345['is']('element','listItem')&&'numbered'===_0x118345['getAttribute']('listType'));if(_0xa6b762['length']<0x1)return;const _0x39f980=_0xa6b762['map'](_0x2002d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2002d5,'before'),this['editor']['model']['createPositionAt'](_0x2002d5,0x0)));this['editor']['model']['change'](()=>{_0x55456a['markMultiRangeBlockFormat'](_0x39f980,{'commandName':'listStart','commandParams':[{'startIndex':_0xf2e5b1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2271ab){if('formatBlock'!=_0x2271ab['type']&&'formatInline'!=_0x2271ab['type'])return;const _0x471e43=this['editor']['locale'],{data:_0x343ecc}=_0x2271ab;if(!_0x343ecc)return;let _0x43a749,_0x2b72d3;switch(_0x343ecc['commandName']){case'listStyle':_0x43a749='*Change\x20to:*\x20%0',_0x2b72d3={'type':'format','content':o(_0x471e43,_0x43a749,o(_0x471e43,this['_getTranslationKeyForListStyle'](_0x343ecc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43a749=_0x343ecc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b72d3={'type':'format','content':o(_0x471e43,_0x43a749)};break;case'listStart':_0x43a749='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b72d3={'type':'format','content':o(_0x471e43,_0x43a749,_0x343ecc['commandParams'][0x0]['startIndex'])};}return _0x2b72d3;}['_getSuggestionBlocksForListStyle'](){var _0x458193,_0x2906b0,_0x37cced,_0x57d4af;const _0x535a1f=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bb38b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x458193=_0x2bb38b[0x0])||void 0x0===_0x458193?void 0x0:_0x458193['is']('element','listItem'))&&_0x2bb38b['unshift'](..._0x535a1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x2906b0=_0x2bb38b[_0x2bb38b['length']-0x1])||void 0x0===_0x2906b0?void 0x0:_0x2906b0['is']('element','listItem'))&&_0x2bb38b['push'](..._0x535a1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bb38b=[...new Set(_0x2bb38b)],(null===(_0x57d4af=null===(_0x37cced=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x37cced?void 0x0:_0x37cced['parent'])||void 0x0===_0x57d4af?void 0x0:_0x57d4af['is']('element','listItem'))&&(_0x2bb38b=_0x2bb38b['filter'](_0x4f6459=>_0x4f6459['is']('element','listItem'))),_0x2bb38b;}['_getSuggestionBlocks'](_0x259a02){const _0x4d925f=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b81c9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x259a02)['map'](_0xd67253=>{const _0x147290=this['editor']['model']['createPositionAt'](_0xd67253,0x0);return[..._0x4d925f['getSiblingNodes'](_0x147290,'backward'),..._0x4d925f['getSiblingNodes'](_0x147290,'forward')];})['flat']();return _0x5b81c9=[...new Set(_0x5b81c9)],_0x5b81c9;}['_getTranslationKeyForListStyle'](_0x2a51fc){return'ELEMENT_'+this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2a51fc)['toUpperCase']()+'_LIST_'+_0x2a51fc['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4de685{['afterInit'](){const _0x398bf8=this['editor'];if(!_0x398bf8['plugins']['has']('MediaEmbedEditing'))return;const _0x49d107=_0x398bf8['plugins']['get']('TrackChangesEditing'),_0x1be944=_0x398bf8['locale'];_0x49d107['enableCommand']('mediaEmbed'),_0x49d107['_descriptionFactory']['registerElementLabel']('media',_0x12875c=>o(_0x1be944,'ELEMENT_MEDIA',_0x12875c)),_0x398bf8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x564598,{writer:_0xd3e9d1,options:_0x13803c})=>{if(_0x13803c['showSuggestionHighlights'])return _0xd3e9d1['createEmptyElement']('div');},'converterPriority':'high'}),_0x398bf8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193a0d,_0x29eca3,_0x5560e2)=>{_0x5560e2['options']['showSuggestionHighlights']&&_0x193a0d['stop']();},{'priority':'high'});}}class gt extends _0x4de685{['afterInit'](){const _0x2d3aa0=this['editor'];_0x2d3aa0['plugins']['has']('MentionEditing')&&_0x2d3aa0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4de685{['afterInit'](){const _0x2c8c52=this['editor'],_0x4af7cb=_0x2c8c52['plugins']['get']('TrackChangesEditing');_0x2c8c52['plugins']['has']('MultiLevelList')&&(_0x4af7cb['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0x4af7cb['_descriptionFactory']['registerDescriptionCallback'](_0x593a24=>this['handleDescriptions'](_0x593a24)));}['handleDescriptions'](_0x1baf46){const _0x51d833=this['editor']['locale'],{data:_0x4761aa}=_0x1baf46,_0xfeeed7={'type':'format','content':''};if(_0x4761aa&&'listMarkerStyle'==_0x4761aa['key']){if(!_0x4761aa['oldValue'])return{'type':'format','content':o(_0x51d833,'*Set\x20format:*\x20%0',o(_0x51d833,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4761aa['newValue']+')'};if(!_0x4761aa['newValue']){let _0x25eb95=_0x1baf46['head'];for(;_0x25eb95;){if(_0x25eb95['data']&&'listType'==_0x25eb95['data']['key']&&_0x25eb95['data']['newValue'])return _0xfeeed7;_0x25eb95=_0x25eb95['next'];}return{'type':'format','content':o(_0x51d833,'*Remove\x20format:*\x20%0',o(_0x51d833,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4761aa['oldValue']+')'};}}}}class mt extends _0x4de685{['afterInit'](){const _0x574574=this['editor'];if(!_0x574574['plugins']['has']('PageBreakEditing'))return;_0x574574['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x58a5db=_0x574574['plugins']['get']('TrackChangesEditing'),_0x34be42=_0x574574['locale'];_0x58a5db['_descriptionFactory']['registerElementLabel']('pageBreak',_0x37b4fa=>o(_0x34be42,'ELEMENT_PAGE_BREAK',_0x37b4fa));}}class dt extends _0x4de685{['afterInit'](){const _0x496c63=this['editor'];if(!_0x496c63['plugins']['has']('Paragraph'))return;const _0x300549=_0x496c63['locale'],_0x5804a7=_0x496c63['plugins']['get']('TrackChangesEditing');_0x5804a7['_descriptionFactory']['registerElementLabel']('paragraph',_0x469f8f=>o(_0x300549,'ELEMENT_PARAGRAPH',_0x469f8f)),_0x5804a7['_enableDefaultAttributesIntegration']('paragraph'),_0x5804a7['enableCommand']('insertParagraph'),_0x496c63['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x496c63),{'priority':'highest'}),_0x496c63['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40215b,_0x416a7e,_0x4ddb54)=>{_0x4ddb54['options']['showSuggestionHighlights']&&nr(_0x496c63,{'showActiveMarker':!0x1})(_0x40215b,_0x416a7e,_0x4ddb54);},{'priority':'highest'});const _0x2d3de5=_0x5804a7['_descriptionFactory'];_0x2d3de5['registerDescriptionCallback'](_0x37f3c7=>{if('insertion'!==_0x37f3c7['type'])return;const {start:_0x2e7c55,end:_0x2dfb5b}=_0x37f3c7['getFirstRange']();if(!_0x2e7c55['isTouching'](_0x2dfb5b)||!_0x2e7c55['nodeAfter'])return;const _0x176b0c=_0x496c63['model']['schema'],_0x7fb3ee=_0x2e7c55['nodeAfter'];return _0x176b0c['isBlock'](_0x7fb3ee)&&!_0x176b0c['isLimit'](_0x7fb3ee)&&_0x176b0c['checkChild'](_0x7fb3ee,'$text')?{'type':'insertion','content':o(_0x300549,'*Insert:*\x20%0',_0x2d3de5['getItemLabel'](_0x7fb3ee,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x362be4=this['editor'],_0x2bdcfc=_0x362be4['locale'];_0x362be4['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1988a9=>{if('formatBlock'!=_0x1988a9['type'])return;const {data:_0x1af31a}=_0x1988a9;return _0x1af31a&&'paragraph'==_0x1af31a['commandName']?{'type':'format','content':o(_0x2bdcfc,'*Change\x20to:*\x20%0',o(_0x2bdcfc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2ebe5b,{showActiveMarker:_0x1f2630=!0x0}={}){return(_0x4c3690,_0x397270,_0xeedfb4)=>{const _0x1c3737=_0x2ebe5b['plugins']['get']('TrackChangesEditing'),_0x549b6e=_0x397270['markerRange']['start'],_0x5ae262=_0x397270['markerRange']['end'],_0x449417=_0x2ebe5b['model']['schema'];if(!_0x549b6e['isTouching'](_0x5ae262)||!_0x549b6e['nodeAfter'])return;const _0x5c9614=_0x549b6e['nodeAfter'];if(_0x449417['isBlock'](_0x5c9614)&&!_0x449417['isLimit'](_0x5c9614)&&_0x449417['checkChild'](_0x5c9614,'$text')){if(!_0xeedfb4['consumable']['consume'](_0x397270['markerRange'],_0x4c3690['name']))return;const _0x54b0a0=_0xeedfb4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2d342a=_0xeedfb4['mapper']['toViewPosition'](_0x5ae262);_0x1f2630&&_0x1c3737['activeMarkers']['includes'](_0x397270['markerName'])&&_0xeedfb4['writer']['addClass']('ck-suggestion-marker--active',_0x54b0a0),_0xeedfb4['writer']['insert'](_0x2d342a,_0x54b0a0),_0xeedfb4['mapper']['bindElementToMarker'](_0x54b0a0,_0x397270['markerName']);}};}class pt extends _0x4de685{['afterInit'](){const _0x571468=this['editor'];if(!_0x571468['plugins']['has']('RemoveFormatEditing'))return;_0x571468['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de551=this['editor'];_0x4de551['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2177b3=>{if('formatBlock'!=_0x2177b3['type']&&'formatInline'!=_0x2177b3['type'])return;const {data:_0x5ad1de}=_0x2177b3;return _0x5ad1de&&'removeFormat'==_0x5ad1de['commandName']?{'type':'format','content':o(_0x4de551['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4de685{['afterInit'](){const _0x21b74e=this['editor'];if(!_0x21b74e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x323cec=_0x21b74e['plugins']['get']('TrackChangesEditing');_0x323cec['enableCommand']('goToPreviousRestrictedEditingException'),_0x323cec['enableCommand']('goToNextRestrictedEditingException');const _0x3fc4b6=_0x21b74e['plugins']['get']('RestrictedEditingModeEditing');_0x3fc4b6['enableCommand']('trackChanges'),_0x3fc4b6['enableCommand']('acceptSuggestion'),_0x3fc4b6['enableCommand']('discardSuggestion'),_0x3fc4b6['enableCommand']('acceptAllSuggestions'),_0x3fc4b6['enableCommand']('discardAllSuggestions'),_0x3fc4b6['enableCommand']('acceptSelectedSuggestions'),_0x3fc4b6['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4de685{static get['requires'](){return[_0x39eacd];}['init'](){const _0x98a994=this['editor'],_0x4ba133=_0x98a994['plugins']['get']('TrackChangesEditing');_0x4ba133['enableCommand']('shiftEnter'),_0x98a994['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x98a994),{'priority':'high'}),_0x98a994['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x98a994),{'priority':'high'}),_0x98a994['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cbbed,_0x1c26d6,_0x3b2cec)=>{_0x3b2cec['options']['showSuggestionHighlights']&&de(_0x98a994,{'showActiveMarker':!0x1})(_0x5cbbed,_0x1c26d6,_0x3b2cec);}),_0x4ba133['_descriptionFactory']['registerElementLabel']('softBreak',_0x2e552a=>o(_0x98a994['locale'],'ELEMENT_LINE_BREAK',_0x2e552a));}}function de(_0x401825,{showActiveMarker:_0x4821a9=!0x0}={}){return(_0x41b837,_0x1049fa,_0x28a31f)=>{const _0x37233c=_0x401825['plugins']['get']('TrackChangesEditing');if(!_0x28a31f['consumable']['test'](_0x1049fa['markerRange'],_0x41b837['name']))return;const _0x67f59=_0x401825['model'];for(const _0x18bdfa of _0x1049fa['markerRange']['getItems']()){if(!_0x18bdfa['is']('element','softBreak'))continue;const _0x3147da='deletion'==_0x1049fa['markerName']['split'](':')[0x1]?'merge':'split',_0xb9424f=_0x28a31f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3147da}),_0x2889ce=_0x28a31f['mapper']['toViewPosition'](_0x67f59['createPositionBefore'](_0x18bdfa));_0x4821a9&&_0x37233c['activeMarkers']['includes'](_0x1049fa['markerName'])&&_0x28a31f['writer']['addClass']('ck-suggestion-marker--active',_0xb9424f),_0x28a31f['writer']['insert'](_0x2889ce,_0xb9424f),_0x28a31f['mapper']['bindElementToMarker'](_0xb9424f,_0x1049fa['markerName']);}};}class wt extends _0x4de685{['afterInit'](){const _0x2ed583=this['editor'],_0x4797de=_0x2ed583['model'],_0x4329a7=_0x2ed583['locale'];if(!_0x2ed583['plugins']['has']('StandardEditingModeEditing'))return;const _0x572d9a=_0x2ed583['plugins']['get']('TrackChangesEditing'),_0x463f6a='restrictedEditingException',_0xbe7903=_0x2ed583['commands']['get'](_0x463f6a);_0x572d9a['enableCommand'](_0x463f6a,(_0x33d0a1,_0x16e50a={})=>{const _0x3f37d2=_0x4797de['document']['selection'];if(_0x3f37d2['isCollapsed'])return void _0x33d0a1(_0x16e50a);const _0x153fcb=void 0x0!==_0x16e50a['forceValue']?_0x16e50a['forceValue']:!_0xbe7903['value'];_0x4797de['change'](()=>{const _0x674076=Array['from'](_0x3f37d2['getRanges']());for(const _0x3259c2 of _0x674076){const _0x593f71=_0x153fcb?[_0x3259c2]:io(_0x463f6a,_0x3259c2,_0x4797de);for(const _0x3ca71b of _0x593f71)_0x572d9a['markInlineFormat'](_0x3ca71b,{'commandName':_0x463f6a,'commandParams':[{'forceValue':_0x153fcb}]});}});}),_0x572d9a['_descriptionFactory']['registerDescriptionCallback'](_0x2c94e7=>{if('formatBlock'!=_0x2c94e7['type']&&'formatInline'!=_0x2c94e7['type'])return;const {data:_0x829ab7}=_0x2c94e7;return _0x829ab7&&_0x829ab7['commandName']==_0x463f6a?_0x829ab7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4329a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4329a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4de685{['afterInit'](){const _0x409da1=this['editor'];if(!_0x409da1['plugins']['has']('Style')||!_0x409da1['plugins']['has']('DataSchema'))return;const _0x5f2665=_0x409da1['plugins']['get']('TrackChangesEditing'),_0x496fd9=_0x409da1['locale'],_0x13dd1c=_0x409da1['config']['get']('style')||{},_0x3549c8=_0x409da1['plugins']['get']('GeneralHtmlSupport'),_0x243b82=_0x409da1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x409da1['plugins']['get']('DataSchema'),_0x13dd1c['definitions']);_0x5f2665['_enableDefaultAttributesIntegration']('style');const _0x44570c=new Set();for(const _0x5717df of _0x243b82['block']){const _0x439044=_0x3549c8['getGhsAttributeNameForElement'](_0x5717df['element']);_0x44570c['add'](_0x439044);}const _0x10187d=new Set();for(const _0x4340fd of _0x243b82['inline']){const _0x4fbe52=_0x3549c8['getGhsAttributeNameForElement'](_0x4340fd['element']);_0x10187d['add'](_0x4fbe52);for(const _0x14acd9 of _0x4340fd['ghsAttributes'])_0x10187d['add'](_0x14acd9);}for(const _0x52f8fa of _0x44570c)_0x5f2665['_registerBlockAttribute'](_0x52f8fa),_0x5f2665['_descriptionFactory']['registerAttributeLabel'](_0x52f8fa,o(_0x496fd9,'FORMAT_STYLE'));for(const _0x490e24 of _0x10187d)_0x5f2665['_registerInlineAttribute'](_0x490e24),_0x5f2665['_descriptionFactory']['registerAttributeLabel'](_0x490e24,o(_0x496fd9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eb9c9=this['editor'],_0x54d12f=_0x3eb9c9['locale'];_0x3eb9c9['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x565ad8=>{if('formatBlock'!=_0x565ad8['type']&&'formatInline'!=_0x565ad8['type'])return;const {data:_0x25ec26}=_0x565ad8;return _0x25ec26&&'style'===_0x25ec26['commandName']?_0x25ec26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54d12f,'*Set\x20format:*\x20%0',_0x25ec26['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x54d12f,'*Remove\x20format:*\x20%0',_0x25ec26['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4de685{['afterInit'](){const _0xe98a8c=this['editor'],_0x4bcb6f=_0xe98a8c['model']['document']['selection'];if(!_0xe98a8c['plugins']['has']('TableEditing'))return;const _0x2f2f70=_0xe98a8c['locale'],_0x423955=_0xe98a8c['plugins']['get']('TrackChangesEditing'),_0x436bb9=_0xe98a8c['plugins']['get']('TableUtils');_0x423955['_descriptionFactory']['registerElementLabel']('table',_0x37def5=>o(_0x2f2f70,'ELEMENT_TABLE',_0x37def5)),this['_setupColumnsRowsFixing'](),_0x423955['enableCommand']('insertTable'),_0x423955['enableCommand']('selectTableRow'),_0x423955['enableCommand']('selectTableColumn');for(const _0x16a8bc of['insertTableRowAbove','insertTableRowBelow']){const _0x29b5d1=_0xe98a8c['commands']['get'](_0x16a8bc);_0x423955['enableCommand'](_0x16a8bc,_0xab4936=>{_0xe98a8c['model']['change'](_0x386745=>{_0xab4936();const _0x5c1d2d='above'===_0x29b5d1['order'],_0x36f5c1=_0x436bb9['getSelectionAffectedTableCells'](_0x4bcb6f),_0x726f06=_0x436bb9['getRowIndexes'](_0x36f5c1),_0x1aa59a=_0x5c1d2d?_0x726f06['first']-0x1:_0x726f06['last']+0x1,_0x1743af=_0x36f5c1[0x0]['findAncestor']('table'),_0x3244eb=_0x436bb9['createTableWalker'](_0x1743af,{'startRow':_0x1aa59a,'endRow':_0x1aa59a}),_0x23447f=Array['from'](_0x3244eb)['map'](_0x35049b=>_0x386745['createRangeOn'](_0x35049b['cell']));_0x423955['markMultiRangeInsertion'](_0x23447f,'tableRow');});});}for(const _0x148093 of['insertTableColumnLeft','insertTableColumnRight']){const _0x11cda2=_0xe98a8c['commands']['get'](_0x148093);_0x423955['enableCommand'](_0x148093,_0x4a056c=>{_0xe98a8c['model']['change'](_0x187b29=>{_0x4a056c();const _0x1a5e8e='left'===_0x11cda2['order'],_0x4fa0f8=_0x436bb9['getSelectionAffectedTableCells'](_0x4bcb6f),_0x2409dd=_0x436bb9['getColumnIndexes'](_0x4fa0f8),_0x13c62e=_0x1a5e8e?_0x2409dd['first']-0x1:_0x2409dd['last']+0x1,_0x2f9e4f=_0x4fa0f8[0x0]['findAncestor']('table'),_0xe93434=_0x436bb9['createTableWalker'](_0x2f9e4f,{'startRow':0x0,'column':_0x13c62e,'includeAllSlots':!0x1}),_0x19b4a9=Array['from'](_0xe93434)['map'](_0x5a8bb9=>_0x187b29['createRangeOn'](_0x5a8bb9['cell']));_0x423955['markMultiRangeInsertion'](_0x19b4a9,'tableColumn');});});}for(const _0x3ab656 of['removeTableRow','removeTableColumn']){const _0x2431c2=_0x3ab656['substr'](0xb),_0xbce4e1=_0x2431c2['toLowerCase'](),_0x2a649a=_0xbce4e1['substr'](0x0,0x3)+'span',_0x422477='table'+_0x2431c2,_0x246667='min'+_0x2431c2,_0x4e4248='max'+_0x2431c2;_0x423955['enableCommand'](_0x3ab656,()=>{_0xe98a8c['model']['change'](_0x449f0a=>{const _0x16b761=_0x436bb9['getSelectionAffectedTableCells'](_0x4bcb6f),_0x1729ed=_0x16b761[0x0]['findAncestor']('table');let _0x5d0095;if('removeTableRow'==_0x3ab656){const _0x5e9d3a=_0x436bb9['getRowIndexes'](_0x16b761);_0x5d0095={'startRow':_0x5e9d3a['first'],'endRow':_0x5e9d3a['last'],'includeAllSlots':!0x0};}else{const _0xcee4e5=_0x436bb9['getColumnIndexes'](_0x16b761);_0x5d0095={'startColumn':_0xcee4e5['first'],'endColumn':_0xcee4e5['last'],'includeAllSlots':!0x0};}const _0x3289a6=_0x436bb9['createTableWalker'](_0x1729ed,_0x5d0095),_0x946bd6=Array['from'](_0x3289a6)['map'](({cell:_0xf75a30})=>_0xf75a30),_0x51aa02=Ee(_0x946bd6['filter'](_0x2a53f0=>_0x2a53f0['hasAttribute'](_0x2a649a))),_0x2de165=Ee(_0x946bd6['filter'](_0x1d981d=>!_0x1d981d['hasAttribute'](_0x2a649a)))['map'](_0x23b948=>_0x449f0a['createRangeOn'](_0x23b948)),_0x20fa74=_0x423955['markMultiRangeDeletion'](_0x2de165,_0x422477);if(_0x20fa74&&('tableRow'==_0x20fa74['subType']||'tableColumn'==_0x20fa74['subType'])){const _0x383c6d=this['_getSuggestionCoords'](_0x20fa74);for(const _0x4c74d6 of _0x51aa02){const _0x61e4c5=_0x449f0a['createRangeOn'](_0x4c74d6),_0x4fa7c9=_0x436bb9['getCellLocation'](_0x4c74d6),_0x4d73fe=_0x4c74d6['getAttribute'](_0x2a649a)-0x1,_0x15bf4a=_0x383c6d[_0x246667],_0x15bb5f=_0x383c6d[_0x4e4248];_0x15bf4a<=_0x4fa7c9[_0xbce4e1]&&_0x4fa7c9[_0xbce4e1]+_0x4d73fe<=_0x15bb5f&&_0x20fa74['addRange'](_0x61e4c5);}}});});}function _0x375a21(_0x2fb3c2){const _0x2ca421=Array['from'](_0x4bcb6f['getRanges']())['map'](_0x206407=>_0x3d4179['fromRange'](_0x206407));_0xe98a8c['model']['change'](_0x4173d7=>{const _0x384ef0=_0x4173d7['batch'];_0x2fb3c2=_0x2fb3c2['filter'](_0x37d256=>'$graveyard'!=_0x37d256['root']['rootName']),_0x4173d7['setSelection'](_0x2fb3c2),_0xe98a8c['commands']['get']('removeTableRow')['refresh'](),_0xe98a8c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xe98a8c['model']['enqueueChange'](()=>{_0xe98a8c['model']['enqueueChange'](_0x384ef0,_0x137ded=>{const _0x5130ad=_0x2ca421['filter'](_0x40553b=>'$graveyard'!=_0x40553b['root']['rootName']);_0x5130ad['length']>0x0&&_0x137ded['setSelection'](_0x5130ad);for(const _0x58ab55 of _0x2ca421)_0x58ab55['detach']();});});});}function _0x4bc325(_0x550c78){_0xe98a8c['model']['change'](_0x273442=>{const _0xdc4f6c=Array['from'](_0x4bcb6f['getRanges']())['map'](_0x18ec3=>_0x3d4179['fromRange'](_0x18ec3)),_0x19470f=[];for(const _0x362c25 of _0x550c78)for(const _0x4de590 of _0x362c25['getItems']({'shallow':!0x0}))_0x19470f['push'](_0x4de590);for(const _0x52ca55 of _0x19470f)'$graveyard'!=_0x52ca55['root']['rootName']&&(_0x273442['setSelection'](_0x273442['createPositionAt'](_0x52ca55,0x0)),_0xe98a8c['commands']['get']('removeTableColumn')['refresh'](),_0xe98a8c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33965b=_0xdc4f6c['filter'](_0x3ee58a=>'$graveyard'!=_0x3ee58a['root']['rootName']);_0x33965b['length']>0x0&&_0x273442['setSelection'](_0x33965b);for(const _0x1ffa8 of _0xdc4f6c)_0x1ffa8['detach']();});}function _0x32afd5(_0x4bb30c,_0x3d6337){return _0x3d6337['every'](_0x261ef5=>_0x4bb30c['some'](_0x3a4d04=>_0x3a4d04['end']['isEqual'](_0x261ef5['start'])||_0x261ef5['end']['isEqual'](_0x3a4d04['start'])));}function _0x1dbf32(_0x53fe52,_0x498684){return _0x53fe52['some'](_0x22a770=>_0x498684['some'](_0xa04611=>_0x22a770['end']['isTouching'](_0xa04611['start'])));}_0xe98a8c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c75ea,_0x476233,_0x809bee)=>{if(!_0x809bee['options']['showSuggestionHighlights'])return;const _0x4394aa=_0x476233['item'];if(!_0x4394aa)return;const _0x4bc596=_0x809bee['mapper']['toViewElement'](_0x4394aa);function _0x4ba537(_0x1a3600){return Array['isArray'](_0x1a3600)?_0x1a3600:[_0x1a3600];}_0x4bc596&&'tableCell'===_0x4394aa['name']&&_0x56a69a(_0x4bc596,_0x809bee['writer'],(_0x4d59ca,_0x4fc488,_0x1a80c6)=>_0x1a80c6['addClass'](_0x4ba537(_0x4fc488['classes']),_0x4d59ca),(_0x1b3044,_0x5976e9,_0x229f57)=>_0x229f57['removeClass'](_0x4ba537(_0x5976e9['classes']),_0x1b3044));},{'priority':'highest'}),_0x423955['_descriptionFactory']['registerDescriptionCallback'](_0x233d68=>{if('insertion'!=_0x233d68['type']&&'deletion'!=_0x233d68['type'])return;const _0x42c847=_0x233d68['getContainedElement']();if(null!=_0x42c847&&_0x42c847['is']('element','table')){if('insertion'==_0x233d68['type']){const _0x1db390=_0x233d68['getItems']()['filter'](_0x3c99fe=>_0x3c99fe['is']('$textProxy'))['map'](_0x2a5280=>_0x2a5280['data']);if(_0x1db390['length'])return{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1db390['join']('\x20')+'\x22'))};}if('deletion'==_0x233d68['type']){const _0x2fefe2=_0x233d68['getItems']()['filter'](_0x18f09d=>_0x18f09d['is']('$textProxy'))['map'](_0x141c25=>_0x141c25['data']);if(_0x2fefe2['length'])return{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2fefe2['join']('\x20')+'\x22'))};}}}),_0x423955['_descriptionFactory']['registerDescriptionCallback'](_0x566bb0=>{if('tableRow'==_0x566bb0['subType']){const _0x50e3d8=_0x566bb0['getItems']()['filter'](_0x23724e=>_0x23724e['is']('$textProxy'))['map'](_0x4d37fc=>_0x4d37fc['data']),_0x1da60f=this['_getSuggestionCoords'](_0x566bb0),_0x1b2251=_0x1da60f['maxRow']-_0x1da60f['minRow']+0x1;if('insertion'==_0x566bb0['type'])return _0x50e3d8['length']?{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b2251,'\x22'+_0x50e3d8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW',_0x1b2251))};if('deletion'==_0x566bb0['type'])return _0x50e3d8['length']?{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b2251,'\x22'+_0x50e3d8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_ROW',_0x1b2251))};}if('tableColumn'==_0x566bb0['subType']){const _0x17911a=_0x566bb0['getItems']()['filter'](_0x563ec5=>_0x563ec5['is']('$textProxy'))['map'](_0x4684cb=>_0x4684cb['data']),_0x4acc06=this['_getSuggestionCoords'](_0x566bb0),_0x3972cb=_0x4acc06['maxColumn']-_0x4acc06['minColumn']+0x1;if('insertion'==_0x566bb0['type'])return _0x17911a['length']?{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3972cb,'\x22'+_0x17911a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2f2f70,'*Insert:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN',_0x3972cb))};if('deletion'==_0x566bb0['type'])return _0x17911a['length']?{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3972cb,'\x22'+_0x17911a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2f2f70,'*Remove:*\x20%0',o(_0x2f2f70,'ELEMENT_TABLE_COLUMN',_0x3972cb))};}}),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x375a21),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x375a21),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4bc325),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4bc325),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x32afd5),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x32afd5),_0x423955['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1dbf32),_0x423955['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1dbf32);}['_acceptFormatSuggestionCallbackFactory'](){const _0x240259=this['editor'],_0x2945a7=_0x240259['model']['document']['selection'];return(_0x234688,_0x4c2063)=>{_0x240259['model']['change'](_0x5a7eb0=>{const {commandName:_0x44d1dd,commandParams:_0x518379}=_0x4c2063;let _0x3b49d5=_0x234688[0x0]['end']['nodeBefore'];_0x518379&&_0x518379[0x0]&&!0x1===_0x518379[0x0]['forceValue']&&(_0x3b49d5=_0x234688[0x0]['start']['nodeAfter']);const _0x225cd7=_0x5a7eb0['createRangeIn'](_0x3b49d5);if('$graveyard'==_0x225cd7['root']['rootName'])return;const _0x20e3b4=Array['from'](_0x2945a7['getRanges']())['map'](_0x11a172=>_0x3d4179['fromRange'](_0x11a172));_0x5a7eb0['setSelection'](_0x225cd7),_0x240259['commands']['get'](_0x44d1dd)['refresh'](),_0x518379['push']({'forceDefaultExecution':!0x0}),_0x240259['execute'](_0x44d1dd,..._0x518379);const _0x2a1210=_0x20e3b4['filter'](_0x1ab737=>'$graveyard'!=_0x1ab737['root']['rootName']);_0x2a1210['length']>0x0&&_0x5a7eb0['setSelection'](_0x2a1210);for(const _0x3c2f2b of _0x20e3b4)_0x3c2f2b['detach']();});};}['_getCoordsForCells'](_0x571f3f){const _0x13cbfb=this['editor']['plugins']['get']('TableUtils');let _0x200326=Number['MAX_SAFE_INTEGER'],_0x544a63=Number['MIN_SAFE_INTEGER'],_0x1782d3=Number['MAX_SAFE_INTEGER'],_0x347e52=Number['MIN_SAFE_INTEGER'];for(const _0xaad760 of _0x571f3f){if('$graveyard'==_0xaad760['root']['rootName'])continue;const {row:_0x2337c0,column:_0x3ff773}=_0x13cbfb['getCellLocation'](_0xaad760),_0x224824=_0xaad760['hasAttribute']('rowspan')?_0xaad760['getAttribute']('rowspan')-0x1:0x0,_0xf46ef3=_0xaad760['hasAttribute']('colspan')?_0xaad760['getAttribute']('colspan')-0x1:0x0;_0x200326=_0x2337c0<_0x200326?_0x2337c0:_0x200326,_0x544a63=_0x2337c0+_0x224824>_0x544a63?_0x2337c0+_0x224824:_0x544a63,_0x1782d3=_0x3ff773<_0x1782d3?_0x3ff773:_0x1782d3,_0x347e52=_0x3ff773+_0xf46ef3>_0x347e52?_0x3ff773+_0xf46ef3:_0x347e52;}return{'minRow':_0x200326,'maxRow':_0x544a63,'minColumn':_0x1782d3,'maxColumn':_0x347e52};}['_setupColumnsRowsFixing'](){const _0x50debd=this['editor'],_0x2605f9=_0x50debd['plugins']['get']('TrackChangesEditing'),_0x118bd7=_0x50debd['plugins']['get']('TableUtils');_0x50debd['model']['document']['on']('change:data',()=>{const _0x5b196a=Array['from'](_0x50debd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x251da8,data:_0xb99b92}of _0x5b196a){const {group:_0x54ac40,id:_0x4a27db,subType:_0x52fae5}=_0x2605f9['_splitMarkerName'](_0x251da8);if('suggestion'!=_0x54ac40)continue;if(null!=_0xb99b92['oldRange'])continue;const _0x478383=_0x2605f9['getSuggestion'](_0x4a27db);this['_tablePostFixingSubtypes']['includes'](_0x52fae5)&&this['_tableSuggestions']['add'](_0x478383);}},{'priority':'low'});const _0x1aba36=(_0x568909,_0x4fd395)=>{let _0x422cff=!0x1;const _0x5aec47=_0x4fd395['createRangeOn'](_0x568909),_0x4c4566=_0x568909['findAncestor']('table'),_0x18a4d6=_0x118bd7['getCellLocation'](_0x568909);for(const _0x44a162 of this['_tableSuggestions']){const _0x48707f=_0x44a162['subType'],_0x1a2314=_0x48707f['startsWith']('tablePaste'),_0x5bbcdf=_0x48707f['substr'](_0x1a2314?0xa:0x5),_0x312305=_0x5bbcdf['toLowerCase'](),_0x2cbd34=_0x312305['substr'](0x0,0x3)+'span',_0xd454fc='min'+_0x5bbcdf,_0x436a7a='max'+_0x5bbcdf;if(!_0x44a162['isInContent'])continue;if(_0x4c4566!=_0x44a162['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x44a162['isIntersectingWithRange'](_0x5aec47))continue;const _0xdbebec=_0x568909['hasAttribute'](_0x2cbd34)?_0x568909['getAttribute'](_0x2cbd34)-0x1:0x0,_0x2329bf=this['_getSuggestionCoords'](_0x44a162),_0x89ff69=_0x2329bf[_0xd454fc],_0x20ce44=_0x2329bf[_0x436a7a];_0x89ff69<=_0x18a4d6[_0x312305]&&_0x18a4d6[_0x312305]+_0xdbebec<=_0x20ce44&&(_0x44a162['addRange'](_0x5aec47),_0x422cff=!0x0);}return _0x422cff;};_0x50debd['model']['document']['registerPostFixer'](_0x283e40=>{let _0x2a14a3=!0x1;for(const _0xf7e20b of _0x50debd['model']['document']['differ']['getChanges']())if('insert'==_0xf7e20b['type']){if('tableRow'==_0xf7e20b['name']){for(const _0x105f7a of _0xf7e20b['position']['nodeAfter']['getChildren']())_0x2a14a3=_0x2a14a3||_0x1aba36(_0x105f7a,_0x283e40);}else'tableCell'==_0xf7e20b['name']&&(_0x2a14a3=_0x2a14a3||_0x1aba36(_0xf7e20b['position']['nodeAfter'],_0x283e40));}return _0x2a14a3;});}['_getSuggestionCoords'](_0x3fbca7){return this['_getCoordsForCells'](_0x3fbca7['getRanges']()['map'](_0x23d481=>_0x23d481['start']['nodeAfter']));}constructor(_0x5bfbe8){super(_0x5bfbe8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x88b700){return Array['from'](new Set(_0x88b700)['values']());}class St extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0x256343=this['editor'],_0x1ddd9c=_0x256343['model']['document']['selection'],_0x5963b1=_0x256343['locale'];if(!_0x256343['plugins']['has']('TableEditing'))return;const _0x41ccf0=_0x256343['plugins']['get']('TrackChangesEditing'),_0x4dc133=_0x256343['plugins']['get']('TableUtils'),_0x38aa0b=_0x256343['plugins']['get'](jt);_0x38aa0b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x41ccf0['enableCommand']('mergeTableCells',()=>{const _0x87d54e=_0x4dc133['getSelectionAffectedTableCells'](_0x256343['model']['document']['selection']);_0x256343['model']['change'](()=>{_0x41ccf0['markMultiRangeBlockFormat'](_0x87d54e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x256343['commands']['get']('mergeTableCells')['on']('execute',(_0x3daa61,_0x8fc3ba)=>{_0x256343['commands']['get']('trackChanges')['value']&&(_0x8fc3ba['length']>0x0&&_0x8fc3ba[_0x8fc3ba['length']-0x1]&&_0x8fc3ba[_0x8fc3ba['length']-0x1]['forceDefaultExecution']||_0x41ccf0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3daa61['stop']());},{'priority':'highest'});for(const _0x3e8043 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2df8b4=_0x256343['commands']['get'](_0x3e8043);_0x41ccf0['enableCommand'](_0x3e8043,()=>{const _0xb69993=_0x256343['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x540b12=>_0x540b12['is']('element','tableCell')),_0x5cb1b8=_0x2df8b4['value'];_0x256343['model']['change'](()=>{_0x41ccf0['markMultiRangeBlockFormat']([_0xb69993,_0x5cb1b8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x36d65f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5bbd0c=_0x256343['commands']['get'](_0x36d65f);_0x41ccf0['enableCommand'](_0x36d65f,()=>{const _0x370540=_0x4dc133['getSelectionAffectedTableCells'](_0x256343['model']['document']['selection'])[0x0],_0x233548=_0x370540['findAncestor']('table'),{column:_0x130e30,row:_0x41a36a}=_0x4dc133['getCellLocation'](_0x370540);let _0x5dd453=[];if('horizontally'==_0x5bbd0c['direction']){const _0x560d51=_0x4dc133['createTableWalker'](_0x233548,{'startRow':_0x41a36a,'endRow':_0x41a36a,'includeAllSlots':!0x0});_0x5dd453=Array['from'](_0x560d51)['map'](_0x618680=>_0x618680['cell']);}else{const _0x4863a8=_0x4dc133['createTableWalker'](_0x233548,{'column':_0x130e30,'includeAllSlots':!0x0});_0x5dd453=Array['from'](_0x4863a8)['map'](_0x416310=>_0x416310['cell']);}_0x256343['model']['change'](_0x39fcf4=>{_0x41ccf0['markBlockFormat'](_0x39fcf4['createRangeOn'](_0x370540),{'commandName':_0x36d65f,'commandParams':[]},_0x5dd453,_0x36d65f);});});}_0x41ccf0['_descriptionFactory']['registerDescriptionCallback'](_0x3e7cfe=>{if('formatBlock'!=_0x3e7cfe['type']&&'formatInline'!=_0x3e7cfe['type'])return;const {data:_0x1371f7}=_0x3e7cfe;return _0x1371f7&&'mergeTableCells'==_0x1371f7['commandName']?{'type':'format','content':o(_0x5963b1,'*Merge\x20cells*')}:void 0x0;}),_0x41ccf0['_descriptionFactory']['registerDescriptionCallback'](_0x7a2af0=>{if('formatBlock'!=_0x7a2af0['type']&&'formatInline'!=_0x7a2af0['type'])return;const {data:_0x4dcbab}=_0x7a2af0;return _0x4dcbab?'splitTableCellVertically'==_0x4dcbab['commandName']?{'type':'format','content':o(_0x5963b1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4dcbab['commandName']?{'type':'format','content':o(_0x5963b1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2f9f3b=_0x38aa0b['_acceptFormatSuggestionCallbackFactory']();for(const _0x562b1f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x41ccf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x562b1f,'accept',_0x2f9f3b);for(const _0x6444c8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x41ccf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6444c8,'accept',_0x2f9f3b);_0x41ccf0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x63b825=>{_0x256343['model']['change'](_0x421cde=>{const _0x522311=Array['from'](_0x1ddd9c['getRanges']())['map'](_0x242de3=>_0x3d4179['fromRange'](_0x242de3));_0x421cde['setSelection'](_0x63b825),_0x256343['commands']['get']('mergeTableCells')['refresh'](),_0x256343['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x21ba75=_0x522311['filter'](_0x2184ab=>'$graveyard'!=_0x2184ab['root']['rootName']);_0x21ba75['length']>0x0&&_0x421cde['setSelection'](_0x21ba75);for(const _0x505f3e of _0x522311)_0x505f3e['detach']();});});for(const _0x468bd9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x24a364=_0x256343['commands']['get'](_0x468bd9);_0x24a364['on']('set:isEnabled',(_0x31c742,_0x21f890,_0x59aae2)=>{if(_0x59aae2){const _0xf8b43e=_0x256343['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42236d=>_0x42236d['is']('element','tableCell'));this['_areMergableCells'](_0x24a364['value'],_0xf8b43e)||(_0x31c742['return']=!0x1,_0x31c742['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x53433b=this['editor']['commands']['get']('mergeTableCells'),_0xeac08d=this['editor']['plugins']['get']('TableUtils');if(!_0x53433b['isEnabled'])return!0x1;const _0x5f35a9=_0xeac08d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d4096 of _0x5f35a9)for(const _0x1eb84a of _0x5f35a9)if(_0x1d4096!=_0x1eb84a&&!this['_areMergableCells'](_0x1d4096,_0x1eb84a))return!0x1;return!0x0;}['_areMergableCells'](_0x2d5d0f,_0x32cc0d){const _0x487842=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29d00f=this['editor']['model']['createRangeOn'](_0x2d5d0f),_0x59b485=this['editor']['model']['createRangeOn'](_0x32cc0d),_0x7970a2=new Set(),_0x412aba=new Set();for(const _0x188f5f of _0x487842['getSuggestions']())if(('insertion'==_0x188f5f['type']||'deletion'==_0x188f5f['type']||'mergeTableCells'==_0x188f5f['subType'])&&_0x188f5f['isInContent']){for(const _0x1b83bb of _0x188f5f['getRanges']())_0x1b83bb['containsRange'](_0x29d00f,!0x0)&&_0x7970a2['add'](_0x188f5f['type']+':'+_0x188f5f['author']['id']),_0x1b83bb['containsRange'](_0x59b485,!0x0)&&_0x412aba['add'](_0x188f5f['type']+':'+_0x188f5f['author']['id']);}if(_0x7970a2['size']!=_0x412aba['size'])return!0x1;for(const _0x2e6407 of _0x7970a2)if(!_0x412aba['has'](_0x2e6407))return!0x1;return!0x0;}}class At extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0x5511ce=this['editor'];if(!_0x5511ce['plugins']['has']('TableEditing'))return;const _0x125058=_0x5511ce['locale'],_0x3d1eec=_0x5511ce['plugins']['get']('TrackChangesEditing');_0x3d1eec['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x3d1eec['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x3d1eec['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x125058,'FORMAT_HEADER_ROW')),_0x3d1eec['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x125058,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3adc22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27d8c8=this['editor']['plugins']['get']('TableUtils'),_0x30972f=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x11bf38({showActiveMarker:_0x1584f7=!0x0,setDataAttribute:_0x352d99=!0x0}={}){return(_0x529a3d,_0x4f8c67,_0x12add7)=>{const {type:_0x4049fb,id:_0x5b7cd3}=_0x3adc22['_splitMarkerName'](_0x4f8c67['markerName']),_0x7315e5=_0x3adc22['getSuggestion'](_0x5b7cd3),_0x4510e6=_0x7315e5['data'];if('formatBlock'!=_0x7315e5['type']||!_0x4510e6||'setTableColumnHeader'!=_0x4510e6['commandName'])return;if(_0x4f8c67['item'])return void _0x529a3d['stop']();if(!_0x12add7['consumable']['consume'](_0x4f8c67['markerRange'],_0x529a3d['name']))return;const _0x4d02dd=_0x4f8c67['markerRange']['start']['nodeAfter'],_0x241bfe=_0x4f8c67['markerRange']['end']['nodeBefore'],_0x1c52cb=_0x4d02dd['parent']['parent'],{column:_0x6c39dd}=_0x27d8c8['getCellLocation'](_0x4d02dd),{column:_0x12fd18}=_0x27d8c8['getCellLocation'](_0x241bfe);for(let _0x3caaaf=_0x6c39dd;_0x3caaaf<=_0x12fd18;_0x3caaaf++){const _0x2b9b69=_0x27d8c8['createTableWalker'](_0x1c52cb,{'column':_0x3caaaf,'includeAllSlots':!0x1});for(const _0x365dcf of _0x2b9b69){const _0x5baef7=_0x365dcf['cell'],_0x2cb272=_0x12add7['mapper']['toViewElement'](_0x5baef7);_0x12add7['writer']['addClass']('ck-suggestion-marker-'+_0x4049fb,_0x2cb272),_0x352d99&&_0x12add7['writer']['setAttribute']('data-suggestion',_0x5b7cd3,_0x2cb272),_0x12add7['mapper']['bindElementToMarker'](_0x2cb272,_0x4f8c67['markerName']),_0x1584f7&&(_0x3adc22['activeMarkers']['includes'](_0x4f8c67['markerName'])?_0x12add7['writer']['addClass']('ck-suggestion-marker--active',_0x2cb272):_0x12add7['writer']['removeClass']('ck-suggestion-marker--active',_0x2cb272));}}};}_0x3adc22['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30972f),_0x3adc22['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30972f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x11bf38(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x28b907,_0x32ebc9,_0x13f58c)=>{_0x13f58c['options']['showSuggestionHighlights']&&_0x11bf38({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x28b907,_0x32ebc9,_0x13f58c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d9085,_0x171cb8,_0x470be0)=>{const {type:_0x5a328b,id:_0x30086f}=_0x3adc22['_splitMarkerName'](_0x171cb8['markerName']),_0x5b0238=_0x3adc22['getSuggestion'](_0x30086f),_0x578274=_0x5b0238['data'];if('formatBlock'!=_0x5b0238['type']||!_0x578274||'setTableColumnHeader'!=_0x578274['commandName'])return;const _0x442cb9=_0x470be0['mapper']['markerNameToElements'](_0x171cb8['markerName']);if(_0x442cb9){for(const _0xbb252a of _0x442cb9)_0x470be0['writer']['removeClass']('ck-suggestion-marker-'+_0x5a328b,_0xbb252a),_0x470be0['writer']['removeClass']('ck-suggestion-marker--active',_0xbb252a),_0x470be0['writer']['removeAttribute']('data-suggestion',_0xbb252a),_0x470be0['mapper']['unbindElementFromMarkerName'](_0xbb252a,_0x171cb8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b6b4=this['editor'],_0x28c12a=_0x17b6b4['locale'];function _0x54757c(_0x518d12){return{'type':'format','content':o(_0x28c12a,'*Format:*\x20%0',_0x518d12)};}_0x17b6b4['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x572079=>{if('formatBlock'!=_0x572079['type'])return;const {data:_0xa33bc5}=_0x572079;if(_0xa33bc5){if('setTableRowHeader'==_0xa33bc5['commandName']){const _0x563899=_0xa33bc5['commandParams'][0x0]['forceValue'];return _0x54757c(o(_0x28c12a,_0x563899?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa33bc5['commandName']){const _0x3a30ad=_0xa33bc5['commandParams'][0x0]['forceValue'];return _0x54757c(o(_0x28c12a,_0x3a30ad?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x43b1d1=>[_0x43b1d1,null]));class It extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0xfd03a2=this['editor'];if(!_0xfd03a2['plugins']['has']('TableClipboard'))return;const _0x1cab80=_0xfd03a2['plugins']['get']('TrackChangesEditing'),_0x315925=_0xfd03a2['plugins']['get']('TableUtils'),_0x128d51=_0xfd03a2['plugins']['get'](jt),_0x30742f=_0xfd03a2['plugins']['get']('TableClipboard');_0x128d51['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xfd03a2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xfd03a2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x518a4=null;_0xfd03a2['model']['on']('insertContent',(_0x5957d2,_0x4b72ef)=>{const [_0x5a11af,_0x58b26d]=_0x4b72ef,_0x16a02c=_0x4b72ef[_0x4b72ef['length']-0x1];_0x16a02c&&_0x16a02c['forceDefaultExecution']||_0x1cab80['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2fe523,_0x4db14e,_0x2897a7,_0x6f9d98,_0x33e52b){if(_0x4db14e&&!_0x4db14e['is']('documentSelection'))return!0x1;const _0x41083c=_0x33e52b['getTableIfOnlyTableInContent'](_0x2fe523,_0x2897a7);if(!_0x41083c||!he(_0x41083c,void 0x0,_0x6f9d98))return!0x1;const _0x3a3b9b=_0x6f9d98['getSelectionAffectedTableCells'](_0x2897a7['document']['selection']);if(!_0x3a3b9b['length'])return!0x1;const _0x5ba937=_0x3a3b9b[0x0]['findAncestor']('table'),_0x44598f=_0x6f9d98['getRowIndexes'](_0x3a3b9b),_0x20feab=_0x6f9d98['getColumnIndexes'](_0x3a3b9b),_0x4512f2={'startRow':_0x44598f['first'],'endRow':_0x44598f['last'],'startColumn':_0x20feab['first'],'endColumn':_0x20feab['last']};return 0x1==_0x3a3b9b['length']&&(_0x4512f2['endRow']+=_0x6f9d98['getRows'](_0x41083c)-0x1,_0x4512f2['endColumn']+=_0x6f9d98['getColumns'](_0x41083c)-0x1),he(_0x5ba937,_0x4512f2,_0x6f9d98);}(_0x5a11af,_0x58b26d,_0xfd03a2['model'],_0x315925,_0x30742f)&&(_0x5957d2['stop'](),_0x518a4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xfd03a2['model']['change'](()=>{_0xfd03a2['model']['insertContent'](_0x4b72ef[0x0],_0x4b72ef[0x1],_0x4b72ef[0x2],{'forceDefaultExecution':!0x0});const _0x30bf17=_0x2c7d4a(),{rowInsertionRanges:_0x580374,columnInsertionRanges:_0x49b666,insertionRanges:_0x6cd0f4,deletionRanges:_0x361890,cells:_0x360e23}=_0x518a4;_0x580374['length']&&_0x1cab80['markMultiRangeInsertion'](_0x580374,'tablePasteRow',{'tablePasteChainId':_0x30bf17}),_0x49b666['length']&&_0x1cab80['markMultiRangeInsertion'](_0x49b666,'tablePasteColumn',{'tablePasteChainId':_0x30bf17}),_0x6cd0f4['length']&&(_0x1cab80['markMultiRangeInsertion'](_0x6cd0f4,'tablePaste',{'tablePasteChainId':_0x30bf17,'skipNestingCheck':!0x0}),_0x6cd0f4['forEach'](_0x287cff=>{var _0x1e9e89;return null===(_0x1e9e89=_0x287cff['detach'])||void 0x0===_0x1e9e89?void 0x0:_0x1e9e89['call'](_0x287cff);})),_0x361890['length']&&(_0x1cab80['markMultiRangeDeletion'](_0x361890,'tablePaste',{'tablePasteChainId':_0x30bf17,'skipNestingCheck':!0x0}),_0x361890['forEach'](_0x3ea45d=>{var _0x1b110a;return null===(_0x1b110a=_0x3ea45d['detach'])||void 0x0===_0x1b110a?void 0x0:_0x1b110a['call'](_0x3ea45d);}));const _0x3160a2=_0x1cab80['markMultiRangeBlockFormat'](_0x360e23['map'](({element:_0x5c6612})=>_0x5c6612),{'formatGroupId':_0x2c7d4a()},[],'tablePasteCell',{'tablePasteChainId':_0x30bf17});if(_0x3160a2){const _0x948299=_0x3160a2['getMarkers'](),_0x1d4912=[];for(const {element:_0x37df94,attributes:_0x2bde1c}of _0x360e23){if(!_0x2bde1c)continue;const _0x5b4504=_0xfd03a2['model']['createRangeOn'](_0x37df94),_0x198cc9=_0x948299['find'](_0x2a66e3=>_0x2a66e3['getRange']()['isEqual'](_0x5b4504));_0x198cc9&&_0x1d4912['push']([_0x198cc9['name'],_0x2bde1c]);}_0x1d4912['length']&&_0x3160a2['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d4912));}_0x518a4=null;}));},{'priority':_0x1ba778['high']+0xa}),_0xfd03a2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb544d2,_0x2eebed)=>{const [_0x5ec495,_0xfc6198,,_0x1e4358]=_0x2eebed;if(!_0x518a4)return;_0xb544d2['stop']();const _0x59bc60=_0x5ec495['cell'],_0x18a221=_0xfc6198,_0x1e00a9=Pe(_0x59bc60),_0x7bb38c=Pe(_0x18a221);_0xb544d2['return']=_0x59bc60;let _0x40a931=null,_0x5aa4d0=null;if(_0x7bb38c||_0x1e00a9){if(_0x1e00a9&&!_0x7bb38c){_0x1e4358['remove'](_0x59bc60['getChild'](0x0));for(const _0x2980e3 of Array['from'](_0x18a221['getChildren']()))_0x1e4358['insert'](_0x2980e3,_0x59bc60,'end');const _0x27eabf=_0x518a4['rowInsertionIndexes']['includes'](_0x5ec495['row']),_0x2a54b0=_0x518a4['columnInsertionIndexes']['includes'](_0x5ec495['column']);_0x27eabf||_0x2a54b0||(_0x40a931=_0x3d4179['fromRange'](_0x1e4358['createRangeIn'](_0x59bc60)));}else _0x7bb38c&&!_0x1e00a9&&(_0x5aa4d0=_0x1e4358['createRangeIn'](_0x59bc60));}else{const _0x2011df=_0x1e4358['createElement']('tableCellSuggestion'),_0x833759=_0x1e4358['createElement']('tableCellSuggestion');_0x1e4358['wrap'](_0x1e4358['createRangeIn'](_0x59bc60),_0x833759),_0x1e4358['insert'](_0x2011df,_0x59bc60,0x0);for(const _0x32fba8 of Array['from'](_0x18a221['getChildren']()))_0x1e4358['insert'](_0x32fba8,_0x2011df,'end');_0x40a931=_0x3d4179['fromRange'](_0x1e4358['createRangeOn'](_0x2011df)),_0x5aa4d0=_0x3d4179['fromRange'](_0x1e4358['createRangeOn'](_0x833759));}const _0x26167b=Array['from'](_0x18a221['getAttributes']())['filter'](([_0x1eafd3])=>ge['includes'](_0x1eafd3));_0x518a4['cells']['push']({'element':_0x59bc60,'attributes':_0x26167b['length']?Object['fromEntries'](_0x26167b):null}),_0x40a931&&_0x518a4['insertionRanges']['push'](_0x40a931),_0x5aa4d0&&_0x518a4['deletionRanges']['push'](_0x5aa4d0);},{'priority':'high'}),_0x315925['on']('insertColumns',(_0x1ffe5,_0xedcc73)=>{const [_0x10a55c,_0x199ea0={}]=_0xedcc73;if(!_0x518a4)return;const _0x3f2e27=_0x199ea0['at']||0x0,_0x389dc9=_0x199ea0['columns']||0x1;_0x518a4['columnInsertionIndexes']=new Array(_0x389dc9)['fill'](_0x3f2e27)['map']((_0x186e96,_0x27d626)=>_0x186e96+_0x27d626);for(const {cell:_0x4e9c53}of _0x315925['createTableWalker'](_0x10a55c,{'startColumn':_0x3f2e27,'endColumn':_0x3f2e27+_0x389dc9-0x1}))_0x518a4['columnInsertionRanges']['push'](_0xfd03a2['model']['createRangeOn'](_0x4e9c53));},{'priority':'low'}),_0x315925['on']('insertRows',(_0x592ce1,_0x174a5c)=>{const [_0x4f6bef,_0x300a15={}]=_0x174a5c;if(!_0x518a4)return;const _0x17ccb3=_0x300a15['at']||0x0,_0x1f7801=_0x300a15['rows']||0x1;_0x518a4['rowInsertionIndexes']=new Array(_0x1f7801)['fill'](_0x17ccb3)['map']((_0x1c4463,_0x14d551)=>_0x1c4463+_0x14d551);for(const {cell:_0x340d7e}of _0x315925['createTableWalker'](_0x4f6bef,{'startRow':_0x17ccb3,'endRow':_0x17ccb3+_0x1f7801-0x1}))_0x518a4['rowInsertionRanges']['push'](_0xfd03a2['model']['createRangeOn'](_0x340d7e));},{'priority':'low'}),_0x1cab80['_descriptionFactory']['registerDescriptionCallback'](_0xe62f81=>{if(_0xe62f81['subType']&&_0xe62f81['subType']['startsWith']('tablePaste'))return _0xe62f81['previous']?{}:{'type':'insertion','content':o(_0xfd03a2['locale'],'*Replace\x20table\x20cells*')};});const _0x5870bd=()=>!0x1;for(const _0x36f676 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1cab80['_suggestionFactory']['registerCustomCallback']('insertion',_0x36f676,'join',_0x5870bd),_0x1cab80['_suggestionFactory']['registerCustomCallback']('deletion',_0x36f676,'join',_0x5870bd),_0x1cab80['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36f676,'join',_0x5870bd);_0x1cab80['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5870bd),_0x1cab80['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3c8b86,_0x595276,_0x3ebbb3)=>{const _0x3a57ff=_0x3c8b86['map'](_0x8565fe=>_0x8565fe['getContainedElement']())['filter'](_0x20b33b=>_0x20b33b),_0x2a6f21=new Map(_0x3a57ff['map'](_0x36880c=>[_0x36880c,null]));if(_0x518a4){for(const {element:_0x11999c,attributes:_0x244c89}of _0x518a4['cells'])_0x244c89&&_0x2a6f21['set'](_0x11999c,_0x244c89);}else{if(_0x3ebbb3&&_0x3ebbb3['markerAttributes'])for(const [_0x4cee05,_0x2d8c15]of Object['entries'](_0x3ebbb3['markerAttributes'])){const _0x2921e8=_0xfd03a2['model']['markers']['get'](_0x4cee05),_0x5c9974=_0x2921e8?_0x2921e8['getRange']()['getContainedElement']():null;_0x5c9974&&_0x2a6f21['set'](_0x5c9974,_0x2d8c15);}}_0xfd03a2['model']['change'](_0x298d6a=>{for(const [_0x10285e,_0x23636a]of _0x2a6f21)_0x298d6a['setAttributes']({...Ce,..._0x23636a},_0x10285e);});});const _0x541f7a=(_0x67ffca,_0x4856f6)=>{_0x1cab80['_suggestionFactory']['registerCustomCallback'](_0x67ffca,'tablePaste',_0x4856f6,(_0x34ebac,_0xdf1efa,_0x4dc76a)=>{_0xfd03a2['model']['change'](_0x2471f9=>{const _0x5d5558=[];for(const _0xe9d453 of _0x34ebac){const _0x25b5e9=_0xe9d453['start']['nodeAfter'];_0x25b5e9['is']('element','tableCellSuggestion')&&_0x5d5558['push'](_0x25b5e9);}_0x1cab80['_suggestionFactory']['getSuggestionCallback'](_0x67ffca,null,_0x4856f6)(_0x34ebac,_0xdf1efa,_0x4dc76a);for(const _0x25f785 of _0x5d5558)'$graveyard'!=_0x25f785['root']['rootName']&&_0x2471f9['unwrap'](_0x25f785);});});};_0x541f7a('insertion','accept'),_0x541f7a('insertion','discard'),_0x541f7a('deletion','accept'),_0x541f7a('deletion','discard'),_0x1cab80['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1baa52=>{const _0x5bf052=_0x1baa52['map'](_0x410084=>_0x410084['getContainedElement']()),_0x1046e7=_0x5bf052[0x0]['findAncestor']('table'),{minRow:_0xadb0f6,maxRow:_0x1b5cc0}=_0x128d51['_getCoordsForCells'](_0x5bf052);_0x315925['removeRows'](_0x1046e7,{'at':_0xadb0f6,'rows':_0x1b5cc0-_0xadb0f6+0x1});}),_0x1cab80['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xa50447=>{const _0x2b55ec=_0xa50447['map'](_0x5f4e1b=>_0x5f4e1b['getContainedElement']()),_0x21b906=_0x2b55ec[0x0]['findAncestor']('table'),{minColumn:_0x5619c6,maxColumn:_0x5d859a}=_0x128d51['_getCoordsForCells'](_0x2b55ec);_0x315925['removeColumns'](_0x21b906,{'at':_0x5619c6,'columns':_0x5d859a-_0x5619c6+0x1});});const _0x5ae32b=(_0x5e4b4f,_0x515ad3)=>{if(!_0x515ad3['subType']||!_0x515ad3['subType']['startsWith']('tablePaste'))return;const _0x4e10ce=_0x515ad3['attributes']['tablePasteChainId'],_0x40610f=_0x1cab80['getSuggestions']()['filter'](_0x5ec896=>_0x5ec896['isInContent']&&_0x5ec896['attributes']&&_0x5ec896['attributes']['tablePasteChainId']==_0x4e10ce);_0x40610f['length']&&_0x515ad3['getAllAdjacentSuggestions']()['length']!=_0x40610f['length']&&_0x40610f['reduce']((_0x324ddd,_0x389710)=>(_0x324ddd['next']=_0x389710,_0x389710['previous']=_0x324ddd,_0x389710));};function _0x197bcf(_0x4b487,_0x1b197f=!0x0){const {id:_0x4c9135}=_0x1cab80['_splitMarkerName'](_0x4b487['markerName']),_0x7356ec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3cb4ff=_0x1cab80['activeMarkers']['includes'](_0x4b487['markerName']);return _0x3cb4ff&&_0x7356ec['push']('ck-suggestion-marker--active'),{'classes':_0x7356ec,'attributes':{'data-suggestion':_0x4c9135},'priority':_0x3cb4ff&&_0x1b197f?0xbc2:0xbb8};}_0x1cab80['on']('suggestionLoaded',_0x5ae32b,{'priority':'high'}),_0x1cab80['on']('suggestionUnloaded',_0x5ae32b,{'priority':'high'}),_0xfd03a2['model']['document']['registerPostFixer'](()=>{let _0x658da1=!0x1;const _0x751bb3=Array['from'](_0xfd03a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c92c4,data:_0x263a2c}of _0x751bb3){const {group:_0x525abe,type:_0x2816dd,id:_0x3bc39f}=_0x1cab80['_splitMarkerName'](_0x3c92c4);if('suggestion'!=_0x525abe||'deletion'!=_0x2816dd||_0x263a2c['oldRange'])continue;if(!_0x1cab80['hasSuggestion'](_0x3bc39f))continue;const _0x5c0169=_0x1cab80['getSuggestion'](_0x3bc39f)['getRanges'](),_0x31cd5c=_0xfd03a2['plugins']['get']('Users')['me'];for(const _0x4e5be0 of _0x1cab80['getSuggestions']()){if(!_0x4e5be0['isInContent']||_0x4e5be0['author']!=_0x31cd5c)continue;if('formatBlock'!=_0x4e5be0['type']||'tablePasteCell'!=_0x4e5be0['subType'])continue;if(_0x4e5be0['getRanges']()['every'](_0x592cdb=>_0x5c0169['some'](_0x4756f2=>_0x4756f2['containsRange'](_0x592cdb,!0x0)))){for(const _0x1e6107 of _0x4e5be0['getAllAdjacentSuggestions']())_0x1e6107['isInContent']&&(_0x1e6107['discard'](),_0x658da1=!0x0);}}}return _0x658da1;}),_0xfd03a2['model']['document']['registerPostFixer'](_0x7c924d=>{const _0x3cac24=_0xfd03a2['commands']['get']('redo');if(!_0x3cac24||!_0x3cac24['_createdBatches']['has'](_0x7c924d['batch']))return!0x1;let _0x59219e=!0x1;const _0x249643=_0xfd03a2['plugins']['get']('Users')['me'],_0x2e0a34=_0xfd03a2['model']['document']['differ']['getChanges'](),_0x3d32f9=Array['from'](_0xfd03a2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x293fc4,data:_0x4207a0})=>{const {group:_0x8620b7,subType:_0x4c356e,authorId:_0x480860}=_0x1cab80['_splitMarkerName'](_0x293fc4);return'suggestion'==_0x8620b7&&'tablePaste'==_0x4c356e&&_0x480860==_0x249643['id']&&!_0x4207a0['oldRange'];});for(const _0x28c085 of _0x2e0a34){if('insert'!=_0x28c085['type']||'tableCellSuggestion'!=_0x28c085['name']||0x1!=_0x28c085['length'])continue;const _0x16bcf0=_0x7c924d['createRange'](_0x28c085['position'],_0x28c085['position']['getShiftedBy'](0x1));if(!_0x3d32f9['find'](({data:_0xd1d1ab})=>_0xd1d1ab['newRange']['isEqual'](_0x16bcf0))){for(const {name:_0x4db941,data:_0x21a306}of _0x3d32f9)if(_0x16bcf0['containsRange'](_0x21a306['newRange'])){_0x7c924d['updateMarker'](_0x4db941,{'range':_0x16bcf0}),_0x59219e=!0x0;break;}}}return _0x59219e;}),_0xfd03a2['model']['document']['registerPostFixer'](_0x5a0f04=>{let _0xd3cf23=!0x1;const _0x4aada6=_0xfd03a2['plugins']['get']('Users')['me'],_0x17430c=_0x1cab80['getSuggestions']()['filter'](_0x2a84b5=>_0x2a84b5['isInContent']&&_0x2a84b5['author']==_0x4aada6),_0xa535e4=new Set(),_0x462342=new Set();for(const _0x5f4194 of _0x17430c)if('tablePaste'==_0x5f4194['subType'])for(const _0x26fe32 of _0x5f4194['getMarkers']()){const _0xeed28c=_0x26fe32['getRange']()['getContainedElement']();if(_0xeed28c){if(_0xeed28c['is']('element','tableCellSuggestion')&&Pe(_0xeed28c)){_0x5f4194['removeMarker'](_0x26fe32['name']),_0xa535e4['add'](_0xeed28c),_0xd3cf23=!0x0;const _0x472e35=_0xeed28c['nextSibling'],_0x8f5753=_0xeed28c['previousSibling'],_0x4adc87=_0x472e35&&_0x472e35['is']('element','tableCellSuggestion'),_0x20c67b=_0x8f5753&&_0x8f5753['is']('element','tableCellSuggestion');_0x4adc87&&!_0xa535e4['has'](_0x472e35)&&_0x462342['add'](_0x472e35),_0x20c67b&&!_0xa535e4['has'](_0x8f5753)&&_0x462342['add'](_0x8f5753);}else _0xeed28c['is']('element','paragraph')&&_0xeed28c['isEmpty']&&(_0x5f4194['removeMarker'](_0x26fe32['name']),_0xd3cf23=!0x0);}}else{if('tablePasteCell'==_0x5f4194['subType']){if(!_0x5f4194['attributes']||!_0x5f4194['attributes']['tablePasteChainId'])continue;const _0x41d571=_0x5f4194['attributes']['markerAttributes'];if(_0x41d571&&Object['keys'](_0x41d571)['length'])continue;const _0x2f0983=_0x5f4194['attributes']['tablePasteChainId'];let _0x1051d3=!0x0,_0x14d9a7=!0x0;for(const _0x543520 of _0x17430c)if(_0x543520['subType']&&_0x543520['subType']['startsWith']('tablePaste')){if(!_0x543520['attributes']['tablePasteChainId']){_0x14d9a7=!0x1;break;}if(_0x543520['id']!=_0x5f4194['id']&&_0x543520['attributes']['tablePasteChainId']==_0x2f0983){_0x1051d3=!0x1;break;}}_0x14d9a7&&_0x1051d3&&(_0x5f4194['removeMarkers'](),_0xd3cf23=!0x0);}}for(const _0x398592 of _0xa535e4)_0x5a0f04['remove'](_0x398592);for(const _0x20c428 of _0x462342)_0x5a0f04['unwrap'](_0x20c428);return _0xd3cf23;}),_0xfd03a2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5145b7,_0x47f1b8)=>_0x197bcf(_0x5145b7),'converterPriority':'high'}),_0xfd03a2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4a27fe,_0x35b2df)=>_0x35b2df['options']['showSuggestionHighlights']?_0x197bcf(_0x4a27fe,!0x1):null,'converterPriority':'high'});const _0x1efd8a=_0xfd03a2['editing']['view'];this['listenTo'](_0x1efd8a['document'],'clipboardOutput',(_0x382c23,_0x403e22)=>{const _0x4a32e0=[];for(const _0x54af33 of _0x1efd8a['createRangeIn'](_0x403e22['content'])['getItems']())_0x54af33['is']('element','suggestion-td')&&_0x4a32e0['push'](_0x54af33);_0x1efd8a['change'](_0xf4faaa=>{for(const _0x3a3783 of _0x4a32e0)_0xf4faaa['move'](_0xf4faaa['createRangeIn'](_0x3a3783),_0xf4faaa['createPositionBefore'](_0x3a3783)),_0xf4faaa['remove'](_0x3a3783);});});}}function Pe(_0x550f90){if(_0x550f90['isEmpty'])return!0x0;const _0x358521=_0x550f90['getChild'](0x0);return _0x358521['is']('element','paragraph')&&_0x358521['isEmpty'];}function he(_0x457b47,_0x1a63ba={},_0x5301dc){for(const {isAnchor:_0x2ae0a8,cellHeight:_0x501619,cellWidth:_0x460aac}of _0x5301dc['createTableWalker'](_0x457b47,{'includeAllSlots':!0x0,..._0x1a63ba}))if(!_0x2ae0a8||0x1!=_0x501619||0x1!=_0x460aac)return!0x1;return!0x0;}class vt extends _0x4de685{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4e8817=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e8817['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4e8817['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4e8817['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e8817['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4e8817['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4e8817['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x257e32,_0xc976b){const _0x14259a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d80c9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1d4287=_0xc976b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x35b035=_0x3d80c9['getColumnGroupElement'](_0x1d4287);let _0x35aec7=_0x35b035?_0x3d80c9['getTableColumnsWidths'](_0x35b035):null,_0xade0a0=_0x1d4287['getAttribute']('tableWidth')||null;const _0x317742=_0xc976b['tableWidth']||_0xade0a0,_0xd906df=_0xc976b['columnWidths']||_0x35aec7,_0x47b013=this['editor']['plugins']['get']('Users')['me'];for(const _0x995753 of _0x14259a['getSuggestions']()){const _0x4e7240=_0x995753['getContainedElement']();if('resizeTable'===_0x995753['subType']&&_0x4e7240===_0x1d4287){_0x995753['author']!==_0x47b013&&_0x995753['discard']();const _0x7555b8=_0x995753['data']['commandParams'];_0xade0a0=_0x7555b8[0x0]['tableWidth'],_0x35aec7=_0x7555b8[0x0]['columnWidths'];break;}}_0x257e32({'table':_0x1d4287,'tableWidth':_0x317742,'columnWidths':_0xd906df}),_0x14259a['markBlockFormat'](_0x1d4287,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xade0a0,'columnWidths':_0x35aec7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x92cd02){if('formatBlock'!=_0x92cd02['type']&&'formatInline'!=_0x92cd02['type'])return;const {data:_0x439cab}=_0x92cd02;if(_0x439cab&&'resizeTable'===_0x439cab['formatGroupId']){const _0x368017='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x368017)};}}}class _t extends _0x4de685{['afterInit'](){const _0xbcf0d4=this['editor'];_0xbcf0d4['plugins']['has']('Template')&&_0xbcf0d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x4de685{['afterInit'](){const _0x3e5a37=this['editor'];if(!_0x3e5a37['commands']['get']('insertTableOfContents'))return;_0x3e5a37['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40ac8a=_0x3e5a37['plugins']['get']('TrackChangesEditing'),_0x3b4598=_0x3e5a37['locale'];_0x40ac8a['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a87bc=>o(_0x3b4598,'ELEMENT_TABLE_OF_CONTENTS',_0x2a87bc));}}class Dt extends _0x4de685{['afterInit'](){const _0x5304ee=this['editor'];if(!_0x5304ee['plugins']['has']('Title'))return;const _0x1f01e4=_0x5304ee['plugins']['get']('TrackChangesEditing');_0x1f01e4['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5304ee['locale'],'ELEMENT_TITLE')),_0x5304ee['model']['document']['registerPostFixer'](_0x4081b6=>{let _0x5e9ea4=!0x1;const _0x5925c=Array['from'](_0x5304ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10d5ef,data:_0x19816e}of _0x5925c){const {group:_0x4062fa}=_0x1f01e4['_splitMarkerName'](_0x10d5ef);if('suggestion'!==_0x4062fa||!_0x19816e['newRange'])continue;const _0x517824=_0x19816e['newRange'],_0x1e51f6=_0x517824['end']['nodeBefore'];if(!_0x1e51f6||!_0x1e51f6['is']('element','title-content'))continue;if(!_0x517824['start']['isTouching'](_0x517824['end']))continue;const _0x2f3848=_0x5304ee['model']['schema']['getNearestSelectionRange'](_0x517824['end'],'forward');if(_0x2f3848&&_0x2f3848['isCollapsed']){const _0x168a3b=_0x4081b6['createRange'](_0x517824['start'],_0x2f3848['start']);_0x168a3b['isEqual'](_0x517824)||(_0x4081b6['updateMarker'](_0x10d5ef,{'range':_0x168a3b}),_0x5e9ea4=!0x0);}_0x5e9ea4||(_0x4081b6['removeMarker'](_0x10d5ef),_0x5e9ea4=!0x0);}return _0x5e9ea4;});}}class Nt extends _0x4de685{['afterInit'](){const _0x1ecc3f=this['editor'],_0x35e89a=_0x1ecc3f['plugins']['get']('TrackChangesEditing');_0x1ecc3f['plugins']['has']('UndoEditing')&&(_0x35e89a['enableCommand']('undo'),_0x35e89a['enableCommand']('redo'));}}class Mt extends _0x4de685{static get['requires'](){return[jt];}['afterInit'](){const _0x2e3b44=this['editor'];if(!_0x2e3b44['plugins']['has']('TableCaptionEditing'))return;_0x2e3b44['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4de685{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x405b15=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c0028 of this['tableProperties'])_0x405b15['enableCommand'](_0x2c0028,(_0x54b54b,_0x23cd56)=>{const _0x10342a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c0028,[_0x10342a],this['tableProperties'],'tableProperties',_0x54b54b,_0x23cd56);});_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x405b15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x37803b,_0x2c5910)=>this['handleDiscardAction'](this['tableProperties'],_0x37803b,_0x2c5910)),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b9f57 of this['tableCellProperties'])_0x405b15['enableCommand'](_0x1b9f57,(_0x38edce,_0x2973a6)=>{const _0x1c0c74=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b9f57,_0x1c0c74,this['tableCellProperties'],'tableCellProperties',_0x38edce,_0x2973a6);});_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x405b15['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4d7dea,_0x436b3a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4d7dea,_0x436b3a)),_0x405b15['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x405b15['_descriptionFactory']['registerDescriptionCallback'](_0x5e11b4=>this['handleSuggestionDescription'](_0x5e11b4));}['_handlePropertyChange'](_0x595c9b,_0x4d6047,_0x38a78a,_0x3b4a03,_0x5f1a58,_0x4f92d5){const _0x55fddc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4f92d5['batch'],()=>{for(const _0x2e4fac of _0x4d6047){if(this['_getSuggestion'](_0x2e4fac,_0x3b4a03))_0x5f1a58(_0x4f92d5);else{const _0x2559f1={};for(const _0x5a5f7b of _0x38a78a){const _0x53fc3c=_0x2e4fac['getAttribute'](_0x5a5f7b);void 0x0!==_0x53fc3c&&(_0x2559f1[_0x5a5f7b]=_0x53fc3c);}_0x5f1a58(_0x4f92d5),_0x55fddc['markBlockFormat'](_0x2e4fac,{'commandParams':[_0x2559f1]},[],_0x3b4a03);}}});}['handleDiscardAction'](_0x4d2e36,_0x3ec104,_0x442fab){const _0x2f7082=_0x3ec104[0x0]['start']['nodeAfter'],_0x2a89c6=_0x442fab['commandParams'][0x0];this['editor']['model']['change'](_0x33731c=>{for(const _0x45a866 of _0x4d2e36)void 0x0!==_0x2a89c6[_0x45a866]?_0x33731c['setAttribute'](_0x45a866,_0x2a89c6[_0x45a866],_0x2f7082):_0x33731c['removeAttribute'](_0x45a866,_0x2f7082);});}['handleSuggestionDescription'](_0x4f5982){if(_0x4f5982['data'])switch(_0x4f5982['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'](_0x5233a7,_0x7252cd){const _0x4d78ac=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x311ffc of _0x4d78ac['getSuggestions']({'skipNotAttached':!0x0})){const _0x410b6c=_0x311ffc['getContainedElement']();if(_0x311ffc['subType']===_0x7252cd&&_0x410b6c===_0x5233a7)return _0x311ffc;}return null;}constructor(_0x1817de){super(_0x1817de),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x4de685{static get['requires'](){return['CommentsRepository',_0x194443,_0x4a11f7,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x248319=this['editor'],_0x43e936=(_0x47e5de,_0x40a418)=>{if('attribute'!=_0x47e5de)return'ck-suggestion-marker-'+_0x47e5de;const _0x1826d8=_0x40a418['split']('|')[0x0];return this['_isBlockAttribute'](_0x1826d8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x248319['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4fd922=>{const {id:_0x38808a,type:_0x5e9af2,subType:_0x8d130b}=this['_splitMarkerName'](_0x4fd922['markerName']),_0x905d45=['ck-suggestion-marker',_0x43e936(_0x5e9af2,_0x8d130b)];let _0x2d2d7a=0xbb8;return this['activeMarkers']['includes'](_0x4fd922['markerName'])&&(_0x905d45['push']('ck-suggestion-marker--active'),_0x2d2d7a=0xbc2),'deletion'==_0x5e9af2&&(_0x2d2d7a+=0x5),{'classes':_0x905d45,'attributes':{'data-suggestion':_0x38808a},'priority':_0x2d2d7a};}}),_0x248319['conversion']['for']('dataDowncast')['add'](_0x3819d3=>{_0x3819d3['on']('addMarker:suggestion',(_0x5b69a4,_0x48f6e0,_0x11622c)=>{if(!_0x11622c['options']['showSuggestionHighlights'])return;const _0x564718=_0x48f6e0['item'];if(!_0x564718)return;const _0x384141=_0x11622c['mapper']['toViewElement'](_0x564718);_0x248319['model']['schema']['isObject'](_0x564718)&&_0x384141&&!_0x384141['getCustomProperty']('widget')&&_0x384141['is']('containerElement')&&_0x48624(_0x384141,_0x11622c['writer']);},{'priority':'high'});}),_0x248319['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x396ce9,_0x56ad3c)=>{if(!_0x56ad3c['options']['showSuggestionHighlights'])return null;const {type:_0x5064df,subType:_0x403c2e}=this['_splitMarkerName'](_0x396ce9['markerName']);return{'classes':['ck-suggestion-marker',_0x43e936(_0x5064df,_0x403c2e)],'priority':0xbb8};}});const _0x4c91bd=({showActiveMarkers:_0x27519f=!0x0,isAttributeSuggestion:_0x4f18a2=!0x1}={})=>(_0xe67745,_0x335522,_0x33a42b)=>{if(!_0x335522['item'])return;const {id:_0x3a3594}=this['_splitMarkerName'](_0x335522['markerName']);if(_0x4f18a2){const _0x2b1482=this['_suggestions']['get'](_0x3a3594),_0x17ead6=this['_getAttributeKey'](_0x2b1482);if(!this['_isBlockAttribute'](_0x17ead6))return;}if(_0x335522['item']['is']('selection'))return void _0x33a42b['consumable']['consume'](_0x335522['item'],_0xe67745['name']);const _0x268c5b=_0x33a42b['mapper']['toViewElement'](_0x335522['item']);if(_0x335522['item']['is']('element')&&_0x248319['model']['schema']['isBlock'](_0x335522['item'])&&!_0x268c5b['getCustomProperty']('addHighlight')){_0x33a42b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x268c5b),_0x33a42b['writer']['setAttribute']('data-suggestion',_0x3a3594,_0x268c5b),_0x33a42b['mapper']['bindElementToMarker'](_0x268c5b,_0x335522['markerName']),_0x27519f&&(this['activeMarkers']['includes'](_0x335522['markerName'])?_0x33a42b['writer']['addClass']('ck-suggestion-marker--active',_0x268c5b):_0x33a42b['writer']['removeClass']('ck-suggestion-marker--active',_0x268c5b));for(const _0x42ff1a of _0x248319['model']['createRangeIn'](_0x335522['item'])['getItems']())_0x33a42b['consumable']['consume'](_0x42ff1a,_0xe67745['name']);_0x33a42b['consumable']['consume'](_0x335522['item'],_0xe67745['name']);}};_0x248319['conversion']['for']('dataDowncast')['add'](_0x472829=>{_0x472829['on']('addMarker:suggestion:formatBlock',(_0x3ef8a9,_0x588a4a,_0x40ee0e)=>{_0x40ee0e['options']['showSuggestionHighlights']&&_0x4c91bd({'showActiveMarkers':!0x1})(_0x3ef8a9,_0x588a4a,_0x40ee0e);},{'priority':'highest'});}),_0x248319['conversion']['for']('dataDowncast')['add'](_0x17e22a=>{_0x17e22a['on']('addMarker:suggestion:attribute',(_0x4d1ec9,_0x2f03f2,_0x8504e6)=>{_0x8504e6['options']['showSuggestionHighlights']&&_0x4c91bd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4d1ec9,_0x2f03f2,_0x8504e6);},{'priority':'highest'});}),_0x248319['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x187f49,_0xbc3509)=>_0xbc3509['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x187f49['substr'](0xb)}}),_0x248319['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4f4f20,{writer:_0x5974f8})=>{let _0x3dc12c='suggestion:'+_0x4f4f20['getAttribute']('suggestion-type')+':'+_0x4f4f20['getAttribute']('id');return _0x4f4f20['getAttribute']('marker-count')&&(_0x3dc12c+=':'+_0x4f4f20['getAttribute']('marker-count')),_0x5974f8['createElement']('$marker',{'data-name':_0x3dc12c});}}),_0x248319['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x3d7143=>{_0x3d7143['on']('addMarker:suggestion:formatBlock',_0x4c91bd(),{'priority':'high'});}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x18c982=>{_0x18c982['on']('addMarker:suggestion:attribute',_0x4c91bd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x530f8f=>{_0x530f8f['on']('removeMarker:suggestion:formatBlock',(_0x5d9fbf,_0x2c4ec6,_0x6c1131)=>{const _0x1b4a90=_0x6c1131['mapper']['markerNameToElements'](_0x2c4ec6['markerName']);if(_0x1b4a90){for(const _0x3a036d of _0x1b4a90)_0x3a036d['getCustomProperty']('addHighlight')||(_0x6c1131['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a036d),_0x6c1131['writer']['removeAttribute']('data-suggestion',_0x3a036d),_0x6c1131['mapper']['unbindElementFromMarkerName'](_0x3a036d,_0x2c4ec6['markerName']));}},{'priority':'high'});}),_0x248319['conversion']['for']('editingDowncast')['add'](_0x268064=>{_0x268064['on']('removeMarker:suggestion:attribute',(_0x3a0d9c,_0x333bd4,_0x1b8171)=>{const _0x58eb8f=_0x1b8171['mapper']['markerNameToElements'](_0x333bd4['markerName']);if(!_0x58eb8f)return;const {id:_0x503986}=this['_splitMarkerName'](_0x333bd4['markerName']),_0x3c8896=this['_suggestions']['get'](_0x503986),_0x20bd39=this['_getAttributeKey'](_0x3c8896);if(this['_isBlockAttribute'](_0x20bd39)){for(const _0x57627c of _0x58eb8f)_0x57627c['getCustomProperty']('addHighlight')||(_0x1b8171['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x57627c),_0x1b8171['writer']['removeAttribute']('data-suggestion',_0x57627c),_0x1b8171['mapper']['unbindElementFromMarkerName'](_0x57627c,_0x333bd4['markerName']));}},{'priority':'high'});}),_0x248319['model']['document']['registerPostFixer'](_0x1759b9=>{let _0x2695b6=!0x1;const _0x2906c1=Array['from'](_0x248319['model']['document']['differ']['getChangedMarkers']()),_0x53ec1f=new Set();for(const {name:_0xe62aeb,data:_0x5c46a8}of _0x2906c1){const {group:_0x23fcc0,type:_0x4caf96,subType:_0x5a263f,id:_0x957eb8}=this['_splitMarkerName'](_0xe62aeb);if('suggestion'!==_0x23fcc0)continue;const _0x4de459=this['_suggestions']['get'](_0x957eb8);if(null!=_0x5c46a8['newRange']){'formatInline'==_0x4caf96&&(_0x2695b6=_0x2695b6||Et(_0x5c46a8['newRange'],_0xe62aeb,_0x1759b9,_0x248319['model']['schema']));const _0xae660c='attribute'==_0x4caf96&&this['_isBlockAttribute'](_0x5a263f['split']('|')[0x0]);if(_0x5c46a8['newRange']['isCollapsed']||'$graveyard'==_0x5c46a8['newRange']['root']['rootName']||'formatBlock'==_0x4caf96&&!Ut(_0x5c46a8['newRange'])||_0xae660c&&!Ut(_0x5c46a8['newRange'])||'deletion'==_0x4caf96&&!(!Tt(_0x13c9e2=_0x5c46a8['newRange'])&&!function(_0x220dd7){return _0x220dd7['start']['parent']==_0x220dd7['end']['nodeBefore']&&_0x220dd7['start']['isAtEnd'];}(_0x13c9e2)))_0x1759b9['removeMarker'](_0xe62aeb),_0x2695b6=!0x0;else{if(!_0x4de459||!_0x4de459['isInContent'])continue;_0x53ec1f['add'](_0x4de459);}}}var _0x13c9e2;return _0x53ec1f['size']>0x0&&(_0x2695b6=!!this['_joinWithAdjacentSuggestions'](_0x53ec1f)||_0x2695b6),_0x2695b6;}),_0x248319['model']['document']['registerPostFixer'](_0x10f113=>{let _0x5e5f1c=!0x1;for(const _0x9ce338 of _0x248319['model']['document']['differ']['getChanges']())if('insert'==_0x9ce338['type'])for(const _0xb185b6 of this['_suggestions']['values']()){if(_0xb185b6['isMultiRange']||!_0xb185b6['isInContent'])continue;const _0x275d62='formatBlock'==_0xb185b6['type'],_0x5db5bb=this['_getAttributeKey'](_0xb185b6),_0x2ec0da=_0x5db5bb&&this['_isBlockAttribute'](_0x5db5bb);if(!_0x275d62&&!_0x2ec0da)continue;const _0x3b230f=_0xb185b6['getFirstRange']();if(_0x3b230f['start']['parent']!=_0x3b230f['end']['parent']&&!_0x3b230f['end']['isAtEnd']){const _0x9edf9a=_0x248319['model']['createPositionAt'](_0x3b230f['start']['nodeAfter'],'end'),_0x299f74=_0x248319['model']['createRange'](_0x3b230f['start'],_0x9edf9a);_0x10f113['updateMarker'](_0xb185b6['getFirstMarker'](),{'range':_0x299f74}),_0x5e5f1c=!0x0;}}return _0x5e5f1c;}),_0x248319['model']['document']['registerPostFixer'](_0x517af0=>this['_processAttributeChanges'](_0x517af0)),_0x248319['model']['document']['registerPostFixer'](_0x17ff2a=>!_0x17ff2a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x17ff2a)),_0x248319['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x248319['model']['document']['on']('change:data',(_0x1597bb,_0x37fd63)=>{if(!_0x37fd63['isLocal']||_0x37fd63['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xfcb938=_0x248319['model']['document']['differ']['getChanges']();if(0x0==_0xfcb938['length'])return;const _0x3c065d=[],_0x17f7b8=_0xfcb938['filter'](_0x39bb14=>'attribute'==_0x39bb14['type']),_0x573a60=_0xfcb938['filter'](_0x695424=>'insert'==_0x695424['type']&&'$text'!=_0x695424['name']),_0x111a06=_0xfcb938['filter'](_0x5acbd3=>'remove'==_0x5acbd3['type']&&'$text'!=_0x5acbd3['name']);for(const _0x25833e of _0x17f7b8)this['_isRegisteredAttribute'](_0x25833e['attributeKey'])&&_0x3c065d['push']({'key':_0x25833e['attributeKey'],'newValue':_0x25833e['attributeNewValue'],'oldValue':_0x25833e['attributeOldValue'],'range':Ot(_0x25833e['range'],_0x248319['model'])});for(const _0xc406b8 of _0x573a60){const _0x91df74=_0x111a06['find'](_0x1db919=>_0x1db919['_element']===_0xc406b8['_element']);if(_0x91df74){const _0x3387cd=Gt(_0xc406b8['position']['nodeAfter'],_0x248319['model']);_0x91df74['name']!==_0xc406b8['name']&&_0x3c065d['push']({'key':m,'newValue':_0xc406b8['name'],'oldValue':_0x91df74['name'],'range':_0x3387cd});for(const [_0x4f9ba1,_0x36f3e3]of _0x91df74['attributes']){if(!this['_isRegisteredAttribute'](_0x4f9ba1))continue;const _0x483bad=_0xc406b8['attributes']['get'](_0x4f9ba1);_0x36f3e3!==_0x483bad&&_0x3c065d['push']({'key':_0x4f9ba1,'newValue':_0x483bad,'oldValue':_0x36f3e3,'range':_0x3387cd});}for(const [_0x9fb5de,_0x1a74fa]of _0xc406b8['attributes'])this['_isRegisteredAttribute'](_0x9fb5de)&&(_0x91df74['attributes']['has'](_0x9fb5de)||_0x3c065d['push']({'key':_0x9fb5de,'newValue':_0x1a74fa,'oldValue':null,'range':_0x3387cd}));}}0x0!=_0x3c065d['length']&&_0x248319['model']['enqueueChange'](_0x37fd63,_0x30ab06=>{const _0x432a7d=_0x2c7d4a();for(const {range:_0x2ee3fa,key:_0x1c884f,oldValue:_0x1015fb,newValue:_0x24cf71}of _0x3c065d)this['markAttributeChange'](_0x2ee3fa,_0x1c884f,_0x1015fb,_0x24cf71,{'groupId':_0x432a7d});this['_reduceExistingSuggestions'](_0x30ab06,_0x3c065d);});},{'priority':'lowest'}),_0x248319['model']['markers']['on']('update:suggestion',(_0x5d7ffd,_0x555e55,_0x503ed8)=>{if(null==_0x503ed8){const {id:_0x12c664}=this['_splitMarkerName'](_0x555e55['name']),_0x5c2649=this['_suggestions']['get'](_0x12c664);_0x5c2649&&_0x5c2649['addMarkerName'](_0x555e55['name']);}}),_0x248319['model']['document']['on']('change:data',()=>{const _0x40623d=Array['from'](_0x248319['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b5963=>'suggestion'===this['_splitMarkerName'](_0x5b5963['name'])['group']);if(0x0===_0x40623d['length'])return;_0x40623d['sort']((_0x3ac9a6,_0x4cc70a)=>{const _0x2b1b0a=_0x3ac9a6['data']['oldRange'],_0xdb4f1c=_0x4cc70a['data']['oldRange'];return null===_0x2b1b0a&&null===_0xdb4f1c?0x0:null===_0x2b1b0a&&null!==_0xdb4f1c?-0x1:null!==_0x2b1b0a&&null===_0xdb4f1c?0x1:_0x2b1b0a['start']['isBefore'](_0xdb4f1c['start'])?-0x1:0x1;});const _0x76ed89=new Set(),_0x170f4b=new Set();for(const {name:_0x21fed1,data:_0x43173f}of _0x40623d){const {id:_0x54abf8}=this['_splitMarkerName'](_0x21fed1);if(null===_0x43173f['oldRange']){const _0x221bad=this['_handleNewSuggestionMarker'](_0x21fed1);_0x170f4b['add'](_0x221bad);}else{const _0x6b9c64=this['_suggestions']['get'](_0x54abf8);null!==_0x43173f['newRange']||_0x6b9c64['isInContent']?(_0x76ed89['add'](_0x6b9c64['head']),_0x170f4b['add'](_0x6b9c64)):this['_removeSuggestion'](_0x6b9c64);}}_0x170f4b['size']>0x0&&this['_refreshSuggestionsChain'](_0x170f4b);for(const _0x2f73fc of _0x76ed89)this['fire']('suggestionChanged',_0x2f73fc);}),_0x248319['model']['on']('applyOperation',(_0x164135,_0x3a92a6)=>{const _0x595477=_0x3a92a6[0x0];if(!this['_suggestions']['size'])return;if(!_0x595477['isDocumentOperation'])return;if(_0x595477['batch']['isUndo']||!_0x595477['batch']['isLocal'])return;let _0x9938cf,_0x3c745b;switch(_0x595477['type']){case'insert':_0x9938cf=_0x248319['model']['createPositionAt'](_0x595477['position']),_0x3c745b=_0x9938cf['getShiftedBy'](_0x595477['howMany']);break;case'split':_0x9938cf=_0x248319['model']['createPositionAt'](_0x595477['splitPosition']),_0x3c745b=_0x248319['model']['createPositionAt'](_0x595477['moveTargetPosition']);break;case'move':_0x9938cf=_0x248319['model']['createPositionAt'](_0x595477['targetPosition']),_0x3c745b=_0x9938cf['getShiftedBy'](_0x595477['howMany']);break;default:return;}const _0x30b9d8=_0x248319['model']['createRange'](_0x9938cf,_0x3c745b);_0x248319['model']['change'](()=>{for(const {suggestion:_0x3be5a9,meta:_0x41c723}of this['_findSuggestions'](_0x30b9d8)){if(_0x3be5a9['isMultiRange'])continue;if('formatInline'==_0x3be5a9['type'])continue;const _0x4a731a=this['_getAttributeKey'](_0x3be5a9);if(_0x4a731a&&this['_isBlockAttribute'](_0x4a731a)&&'split'!=_0x595477['type'])continue;const _0x546b11=_0x3be5a9['data']&&_0x3be5a9['data']['multipleBlocks'];('formatBlock'!=_0x3be5a9['type']||'split'==_0x595477['type']&&!_0x546b11)&&(_0x41c723['containsRangeInObject']||'insertion'==_0x3be5a9['type']&&_0x41c723['isOwn']||_0x3be5a9['getFirstRange']()['containsRange'](_0x30b9d8)&&this['_breakSuggestionMarker'](_0x3be5a9,_0x9938cf,_0x3c745b));}});},{'priority':'lowest'}),_0x248319['model']['on']('deleteContent',(_0x1f4112,_0x465242)=>{const _0x2f282f=_0x465242[0x0],_0x457ad5=_0x465242[0x1];if(_0x457ad5&&_0x457ad5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2f282f['isCollapsed'])return;const _0x590959=_0x248319['model']['schema'],{start:_0x1554f4,end:_0x3cfdde}=_0x2f282f['getFirstRange'](),_0x2026a9=_0x1554f4['nodeAfter']&&_0x590959['isLimit'](_0x1554f4['nodeAfter'])?null:_0x590959['getNearestSelectionRange'](_0x1554f4,'forward'),_0x4e85b8=_0x3cfdde['nodeBefore']&&_0x590959['isLimit'](_0x3cfdde['nodeBefore'])?null:_0x590959['getNearestSelectionRange'](_0x3cfdde,'backward'),_0x37d365=_0x248319['model']['createRange'](_0x2026a9?_0x2026a9['start']:_0x1554f4,_0x4e85b8?_0x4e85b8['end']:_0x3cfdde);_0x248319['model']['change'](_0x2406ac=>{this['markDeletion'](_0x37d365);const _0x2835bb=_0x248319['model']['schema']['getNearestSelectionRange'](_0x37d365['start']);_0x2f282f['is']('documentSelection')?_0x2406ac['setSelection'](_0x2835bb):_0x2f282f['setTo'](_0x2835bb);}),_0x1f4112['stop']();},{'priority':_0x1ba778['normal']+0xa}),_0x248319['model']['on']('insertContent',(_0x43ee4e,_0x2d307d)=>{const _0x2ccabd=_0x2d307d[_0x2d307d['length']-0x1];_0x2ccabd&&_0x2ccabd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x248319['model']['change'](()=>{let _0x43b40e=_0x248319['model']['insertContent'](_0x2d307d[0x0],_0x2d307d[0x1],_0x2d307d[0x2],{'forceDefaultExecution':!0x0});if(!_0x43b40e)return;_0x43ee4e['return']=_0x43b40e['clone']();const _0x5af3da=_0x43b40e['end']['nodeBefore'],_0x4e9fb2=_0x248319['model']['schema'];_0x5af3da&&_0x4e9fb2['isBlock'](_0x5af3da)&&!_0x4e9fb2['isObject'](_0x5af3da)&&(_0x43b40e=_0x248319['model']['createRange'](_0x43b40e['start'],_0x248319['model']['createPositionAt'](_0x5af3da,'end'))),this['markInsertion'](_0x43b40e);}),_0x43ee4e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb54fb=new $(_0x248319,this['_suggestions']);_0x248319['commands']['add']('acceptSuggestion',_0xb54fb),this['enableCommand']('acceptSuggestion');const _0x35df8c=new B(_0x248319,this['_suggestions']);_0x248319['commands']['add']('discardSuggestion',_0x35df8c),this['enableCommand']('discardSuggestion'),_0x248319['commands']['add']('acceptAllSuggestions',new x(_0x248319,_0xb54fb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x248319['commands']['add']('discardAllSuggestions',new x(_0x248319,_0x35df8c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x248319['commands']['add']('acceptSelectedSuggestions',new R(_0x248319,_0xb54fb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x248319['commands']['add']('discardSelectedSuggestions',new R(_0x248319,_0x35df8c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4d1010=_0x248319['plugins']['get']('CommentsRepository');this['listenTo'](_0x4d1010,'addComment',(_0x3cbb79,{threadId:_0x1c512d})=>{const _0x5b6bc6=this['_suggestions']['get'](_0x1c512d);_0x5b6bc6&&_0x5b6bc6['commentThread']&&0x1===_0x5b6bc6['commentThread']['length']&&this['_updateSuggestionData'](_0x1c512d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4d1010,'removeComment',(_0x35a847,{threadId:_0x436977})=>{const _0x2541a0=this['_suggestions']['get'](_0x436977);_0x2541a0&&_0x2541a0['commentThread']&&!_0x2541a0['commentThread']['length']&&this['_updateSuggestionData'](_0x436977,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3a1e64){if(this['_adapter'])throw new _0x2a5c42('track-changes-adapter-already-set',this);this['_adapter']=_0x3a1e64;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x322b97=!0x1,toJSON:_0x38f203=!0x1}={}){const _0x5b7887=[];for(const _0x1f8967 of this['_suggestions']['values']())_0x322b97&&!_0x1f8967['isInContent']||_0x5b7887['push'](_0x1f8967);return _0x38f203?_0x5b7887['map'](_0x485eaf=>_0x485eaf['toJSON']()):_0x5b7887;}['getSuggestion'](_0x4643a5){const _0x45cb56=this['_suggestions']['get'](_0x4643a5);if(!_0x45cb56)throw new _0x2a5c42('track-changes-suggestion-not-found',this);return _0x45cb56;}['hasSuggestion'](_0x4ff235){return this['_suggestions']['has'](_0x4ff235);}['addSuggestionData'](_0x5991dd){const {authorId:_0x3168f9,id:_0x3d01d4,attributes:_0x444ca2}=_0x5991dd,[_0x2c1ef6,_0x5ae1b6]=_0x5991dd['type']['split'](':'),_0x1a1041=this['_suggestions']['get'](_0x3d01d4)||this['_createSuggestion'](_0x2c1ef6,_0x5ae1b6,_0x3d01d4,_0x3168f9,_0x444ca2);if(this['_addThreadToSuggestion'](_0x1a1041),this['_checkSuggestionCorrectness'](_0x1a1041,_0x2c1ef6,_0x5ae1b6||null,_0x3168f9),_0x1a1041['createdAt']=_0x5991dd['createdAt'],_0x1a1041['_isDataLoaded']=!0x0,_0x444ca2&&_0x444ca2['@external']){const _0x34ffca=_0x444ca2['@external'],_0xae133c=this['_getExternalAuthor'](_0x34ffca['authorName']);_0x1a1041['authoredAt']=_0x34ffca['createdAt'],_0x1a1041['author']=_0xae133c,_0x1a1041['isExternal']=!0x0;}else _0x1a1041['authoredAt']=_0x5991dd['createdAt'];switch(_0x5991dd['data']&&(_0x1a1041['data']=_0x5991dd['data']),_0x5991dd['attributes']&&(_0x1a1041['attributes']=_0x5991dd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1a1041['_saved']=!0x0),this['_suggestionState']['get'](_0x1a1041)){case'notReady':this['_suggestionState']['set'](_0x1a1041,'dataReady');break;case'markerReady':_0x1a1041['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1a1041])),this['_refreshSuggestionsChain'](new Set([_0x1a1041])),this['_suggestionState']['set'](_0x1a1041,'ready'),this['fire']('suggestionLoaded',_0x1a1041)):this['_suggestionState']['set'](_0x1a1041,'removed');}return _0x1a1041;}['acceptSuggestion'](_0x533543){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3944e5 of _0x533543['getAllAdjacentSuggestions']())_0x3944e5['accept']();});});}['discardSuggestion'](_0xf23046){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c8750 of _0xf23046['getAllAdjacentSuggestions']())_0x3c8750['discard']();});});}['enableCommand'](_0x484889,_0x55bf40){const _0x3bfc82=this['editor']['commands']['get'](_0x484889);if(!_0x3bfc82)throw new _0x2a5c42('track-changes-command-not-found',this,{'commandName':_0x484889});if(this['_enabledCommands']['has'](_0x3bfc82))throw new _0x2a5c42('track-changes-enable-command-twice',this,{'commandName':_0x484889});this['_enabledCommands']['add'](_0x3bfc82),_0x55bf40&&_0x3bfc82['on']('execute',(_0x2be459,_0x5bc8fb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bc8fb['length']>0x0&&_0x5bc8fb[_0x5bc8fb['length']-0x1]&&_0x5bc8fb[_0x5bc8fb['length']-0x1]['forceDefaultExecution']?_0x5bc8fb['pop']():(_0x2be459['return']=_0x55bf40((..._0x46f30b)=>_0x3bfc82['execute'](..._0x46f30b,{'forceDefaultExecution':!0x0}),..._0x5bc8fb),_0x2be459['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4721e1){let _0x1592ad,_0x25d9e6;const _0x5a128b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1592ad=_0x4721e1();}catch(_0x13ee4e){_0x25d9e6=_0x13ee4e;}return _0x5a128b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x25d9e6&&_0x2a5c42['rethrowUnexpectedError'](_0x25d9e6,this),_0x1592ad;}['markInsertion'](_0x513524,_0x379aad=null,_0x253b1d={}){if(_0x513524['isCollapsed'])return null;const _0x6a9cf4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ac4bd,meta:_0x49acc1}of this['_findSuggestions'](_0x513524,'insertion'))if(_0x49acc1['isOwn']){if(!_0x49acc1['isNextTo']){if(_0x49acc1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5ac4bd,_0x253b1d))continue;return _0x5ac4bd;}if(Lt(_0x5ac4bd,_0x253b1d))return _0x5ac4bd;this['_breakSuggestionMarker'](_0x5ac4bd,_0x513524['start'],_0x513524['end']);break;}if(_0x379aad==_0x5ac4bd['subType']&&Lt(_0x5ac4bd,_0x253b1d)){const _0x3ee00d=_0x5ac4bd['getFirstRange']();return _0x3ee00d['start']['isEqual'](_0x513524['end'])?this['_setSuggestionRange'](_0x5ac4bd,this['_model']['createRange'](_0x513524['start'],_0x3ee00d['end'])):this['_setSuggestionRange'](_0x5ac4bd,this['_model']['createRange'](_0x3ee00d['start'],_0x513524['end'])),_0x5ac4bd;}}const _0x162723=_0x2c7d4a(),_0x3e2323=_0x6a9cf4['id'],_0x10c71d=_0x379aad?'insertion:'+_0x379aad:'insertion',_0x563e7a=this['_setSuggestionData']({'id':_0x162723,'type':_0x10c71d,'createdAt':new Date(),'authorId':_0x3e2323,'attributes':_0x253b1d});return this['_addSuggestionMarker'](_0x10c71d,_0x162723,_0x3e2323,_0x513524),_0x563e7a;}['markMultiRangeInsertion'](_0x464f99,_0xbac5af='multi',_0x34b528={}){const _0x296f43=this['editor']['plugins']['get']('Users')['me'],_0x552327=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xbac5af,'join');for(const _0x1c2698 of this['getSuggestions']())if(_0x1c2698['author']['id']==_0x296f43['id']&&'insertion'==_0x1c2698['type']&&_0x1c2698['subType']==_0xbac5af&&Lt(_0x1c2698,_0x34b528)&&(_0x552327(_0x1c2698['getRanges'](),_0x464f99)||_0x552327(_0x464f99,_0x1c2698['getRanges']()))){for(const _0x1b69a3 of _0x464f99)_0x1c2698['addRange'](_0x1b69a3);return _0x1c2698;}for(const {suggestion:_0x14fe15,meta:_0x12a1ff}of this['_findSuggestions'](_0x464f99,'insertion')){if(!_0x12a1ff['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x12a1ff['containsRangeInObject'])continue;if(!Lt(_0x14fe15,_0x34b528))continue;let _0x39a867=!0x0;for(const _0x5aa9e7 of _0x14fe15['getRanges']())for(const _0x40af10 of _0x464f99)if(!_0x5aa9e7['containsRange'](_0x40af10)){_0x39a867=!0x1;break;}if(_0x39a867)return _0x14fe15;}const _0x38fb93=_0x2c7d4a(),_0x433926=_0x296f43['id'],_0x1287bc='insertion:'+_0xbac5af,_0x131e29=this['_setSuggestionData']({'id':_0x38fb93,'type':_0x1287bc,'createdAt':new Date(),'authorId':_0x433926,'attributes':_0x34b528});for(const _0xd8ab0a of _0x464f99)this['_addSuggestionMarker'](_0x1287bc,_0x38fb93,_0x433926,_0xd8ab0a,u['getMultiRangeId']());return _0x131e29;}['markInlineFormat'](_0x22031b,_0x175108,_0x59f88d=null,_0x2bcbb4={}){if(_0x59f88d=_0x59f88d||Vt(_0x175108),_0x22031b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2af2de=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x59f88d,'accept');return this['forceDefaultExecution'](()=>_0x2af2de([_0x22031b],_0x175108,_0x2bcbb4)),null;}const _0x4f040d=this['editor']['plugins']['get']('Users')['me'],_0x1fa6ef=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x19b69d,meta:_0x25356b}of this['_findSuggestions'](_0x22031b,'insertion'))_0x25356b['isOwn']&&!_0x25356b['isInsideObject']&&_0x1fa6ef['push'](..._0x19b69d['getRanges']());}const _0x325f58=function(_0x13ca23,_0x5d32ef){const _0x490910=[];for(const _0x495ee2 of _0x5d32ef){const _0x51fcd4=_0x13ca23['getIntersection'](_0x495ee2);_0x51fcd4&&_0x490910['push'](_0x51fcd4);}return _0x490910;}(_0x22031b,_0x1fa6ef),_0x4b60f5=function(_0x7e23d1,_0x1e2c57){const _0x290e88=[_0x7e23d1];for(const _0x13a8cc of _0x1e2c57){let _0x57985b=0x0;for(;_0x57985b<_0x290e88['length'];){const _0x165638=_0x290e88[_0x57985b]['getDifference'](_0x13a8cc);_0x290e88['splice'](_0x57985b,0x1,..._0x165638),_0x57985b+=_0x165638['length'];}}return _0x290e88;}(_0x22031b,_0x1fa6ef);_0x325f58['length']&&this['_model']['change'](()=>{for(const _0x22b1ae of _0x325f58){const _0x23c1e9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x59f88d,'accept');this['forceDefaultExecution'](()=>_0x23c1e9([_0x22b1ae],_0x175108,_0x2bcbb4));}});for(const _0x33c5d4 of _0x4b60f5){let _0x3afb12=null,_0xab7331=_0x33c5d4['start'],_0x2168be=_0x33c5d4['end'];for(const {suggestion:_0x355901,meta:_0x416e1e}of this['_findSuggestions'](_0x33c5d4,'formatInline')){if(!_0x416e1e['isOwn'])continue;if(_0x355901['subType']!=_0x59f88d)continue;if(!Lt(_0x355901,_0x2bcbb4))continue;const _0xec2602=_0x355901['getFirstRange']();if(_0xec2602['containsRange'](_0x33c5d4,!0x0))return null;_0xab7331=_0xab7331['isBefore'](_0xec2602['start'])?_0xab7331:_0xec2602['start'],_0x2168be=_0x2168be['isAfter'](_0xec2602['end'])?_0x2168be:_0xec2602['end'],_0x3afb12?_0xec2602['start']['isBefore'](_0x3afb12['getFirstRange']()['start'])?(_0x3afb12['removeMarkers'](),_0x3afb12=_0x355901):_0x355901['removeMarkers']():_0x3afb12=_0x355901;}const _0x408efc=this['_model']['createRange'](_0xab7331,_0x2168be);if(_0x3afb12)this['_setSuggestionRange'](_0x3afb12,_0x408efc);else{const _0x2c918d=_0x2c7d4a(),_0x48494e=_0x4f040d['id'];this['_setSuggestionData']({'id':_0x2c918d,'type':'formatInline:'+_0x59f88d,'data':_0x175108,'createdAt':new Date(),'authorId':_0x48494e,'attributes':_0x2bcbb4}),this['_addSuggestionMarker']('formatInline:'+_0x59f88d,_0x2c918d,_0x48494e,_0x408efc);}}return null;}['markBlockFormat'](_0xf7195d,_0x4f52ec,_0x305066=[],_0x4e7ddf=null,_0x23de79={}){_0x4f52ec['formatGroupId']||(_0x4f52ec['formatGroupId']=_0x4f52ec['commandName']),_0x4f52ec['multipleBlocks']=_0xf7195d['is']('range'),_0x4e7ddf=_0x4e7ddf||Vt(_0x4f52ec);const _0x3b00a3=_0x305066['map'](_0x367489=>Gt(_0x367489,this['_model'])),_0x3145b2=_0xf7195d['is']('range')?_0xf7195d:Gt(_0xf7195d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x29b496=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e7ddf,'accept');return this['forceDefaultExecution'](()=>_0x29b496([_0x3145b2],_0x4f52ec,_0x23de79)),null;}_0x3b00a3['push'](_0x3145b2);let _0xa52439=!0x0;for(const _0x9f75de of _0x3b00a3)if(!this['_rangeIsInLocalUserInsertion'](_0x9f75de)){_0xa52439=!0x1;break;}if(_0xa52439&&'always'!==this['_trackFormatChanges']){const _0x2af82a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e7ddf,'accept');return this['forceDefaultExecution'](()=>_0x2af82a([_0x3145b2],_0x4f52ec,_0x23de79)),null;}let _0x39078b=null,_0x12e070=_0x3145b2['start'],_0x2dbc69=_0x3145b2['end'];for(const {suggestion:_0x36a714,meta:_0x11e83f}of this['_findSuggestions'](_0x3145b2,'formatBlock')){if(!_0x11e83f['isOwn'])continue;if(_0x11e83f['isNextTo']||_0x11e83f['containsRangeInObject']||_0x11e83f['isInsideObject'])continue;if(_0x36a714['data']['formatGroupId']!=_0x4f52ec['formatGroupId'])continue;if(!Lt(_0x36a714,_0x23de79))continue;const _0x56e812=_0x36a714['getFirstRange']();if(_0x36a714['subType']==_0x4e7ddf){if(_0x56e812['containsRange'](_0x3145b2,!0x0))return null;_0x12e070=_0x12e070['isBefore'](_0x56e812['start'])?_0x12e070:_0x56e812['start'],_0x2dbc69=_0x2dbc69['isAfter'](_0x56e812['end'])?_0x2dbc69:_0x56e812['end'],_0x39078b?_0x56e812['start']['isBefore'](_0x39078b['getFirstRange']()['start'])?(_0x39078b['removeMarkers'](),_0x39078b=_0x36a714):_0x36a714['removeMarkers']():_0x39078b=_0x36a714;}else{const _0x1729d1=_0x3145b2['getIntersection'](_0x56e812);this['_cutOutSuggestionMarker'](_0x36a714,_0x1729d1);}}const _0xad2583=this['editor']['plugins']['get']('Users')['me'],_0x17f37f=_0x2c7d4a(),_0x29e3f7=_0xad2583['id'];if(_0x39078b)return this['_setSuggestionRange'](_0x39078b,this['_model']['createRange'](_0x12e070,_0x2dbc69)),_0x39078b;{const _0x1f9895=this['_setSuggestionData']({'id':_0x17f37f,'type':'formatBlock:'+_0x4e7ddf,'data':_0x4f52ec,'createdAt':new Date(),'authorId':_0x29e3f7,'attributes':_0x23de79});return this['_addSuggestionMarker']('formatBlock:'+_0x4e7ddf,_0x17f37f,_0x29e3f7,this['_model']['createRange'](_0x12e070,_0x2dbc69)),_0x1f9895;}}['markMultiRangeBlockFormat'](_0x2714de,_0x5c1ac5,_0x34f136=[],_0x499614=null,_0x1eb13b={}){_0x5c1ac5['formatGroupId']||(_0x5c1ac5['formatGroupId']=_0x5c1ac5['commandName']);const _0x24b34a=_0x2714de[0x0];_0x5c1ac5['multipleBlocks']=_0x24b34a['is']('range'),_0x499614=_0x499614||Vt(_0x5c1ac5);const _0x502f82=_0x34f136['map'](_0x2f4e75=>Gt(_0x2f4e75,this['_model'])),_0x23e9fe=_0x24b34a['is']('range')?_0x2714de:_0x2714de['map'](_0x17f4ac=>Gt(_0x17f4ac,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2ef25b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x499614,'accept');return this['forceDefaultExecution'](()=>_0x2ef25b(_0x23e9fe,_0x5c1ac5,_0x1eb13b)),null;}_0x502f82['push'](..._0x23e9fe);let _0x359bfb=!0x0;for(const _0x299107 of _0x502f82)if(!this['_rangeIsInLocalUserInsertion'](_0x299107)){_0x359bfb=!0x1;break;}if(_0x359bfb&&'always'!==this['_trackFormatChanges']){const _0x558b1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x499614,'accept');return this['forceDefaultExecution'](()=>_0x558b1e(_0x23e9fe,_0x5c1ac5,_0x1eb13b)),null;}const _0x5e19bc=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a8cb6 of this['getSuggestions']()){if(_0x3a8cb6['author']['id']!=_0x5e19bc['id'])continue;if('formatBlock'!=_0x3a8cb6['type']||_0x3a8cb6['data']['formatGroupId']!=_0x5c1ac5['formatGroupId'])continue;if(!Lt(_0x3a8cb6,_0x1eb13b))continue;const _0x3e60c6=_0x3a8cb6['subType']==_0x499614;for(let _0x2d592e=0x0;_0x2d592e<_0x23e9fe['length'];_0x2d592e++){const _0x47992f=_0x23e9fe[_0x2d592e];for(const _0x2b524b of _0x3a8cb6['getMarkers']()){const _0x24d765=_0x2b524b['getRange']();if(_0x47992f['isEqual'](_0x24d765)){_0x3e60c6?(_0x23e9fe['splice'](_0x2d592e,0x1),_0x2d592e--):_0x3a8cb6['removeMarker'](_0x2b524b['name']);break;}}}}if(0x0==_0x23e9fe['length'])return null;const _0x2127cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x499614,'join');for(const _0x576cc0 of this['getSuggestions']())if(_0x576cc0['author']['id']==_0x5e19bc['id']&&'formatBlock'==_0x576cc0['type']&&_0x576cc0['data']['formatGroupId']==_0x5c1ac5['formatGroupId']&&_0x576cc0['subType']==_0x499614&&Lt(_0x576cc0,_0x1eb13b)&&(_0x2127cc(_0x576cc0['getRanges'](),_0x23e9fe)||_0x2127cc(_0x23e9fe,_0x576cc0['getRanges']()))){for(const _0xb6ade9 of _0x23e9fe)_0x576cc0['addRange'](_0xb6ade9);return _0x576cc0;}const _0x1510fc=_0x2c7d4a(),_0x45004c=_0x5e19bc['id'],_0x81b39f='formatBlock:'+_0x499614,_0x16d00b=this['_setSuggestionData']({'id':_0x1510fc,'type':_0x81b39f,'data':_0x5c1ac5,'createdAt':new Date(),'authorId':_0x45004c,'attributes':_0x1eb13b});for(const _0x276488 of _0x23e9fe)this['_addSuggestionMarker'](_0x81b39f,_0x1510fc,_0x45004c,_0x276488,u['getMultiRangeId']());return _0x16d00b;}['markDeletion'](_0x28f789,_0x224e70=null,_0x35f669={}){if(_0x28f789['isCollapsed'])return null;const _0x51ee6e=this['editor']['plugins']['get']('Users')['me'],_0x53116c=new _0x3d4179(_0x28f789['start'],_0x28f789['end']);for(const {suggestion:_0x24a176,meta:_0x45081e}of this['_findSuggestions'](_0x53116c,'insertion'))if(_0x45081e['isOwn']&&!_0x45081e['isNextTo']){if(_0x24a176['isMultiRange']){const _0x298867=_0x24a176['getRanges']()['filter'](_0x287b3=>'$graveyard'!=_0x287b3['root']['rootName']);_0x298867['every'](_0x3fdce3=>_0x53116c['containsRange'](_0x3fdce3,!0x0))&&_0x24a176['discard']();if(_0x298867['some'](_0x3b6a67=>_0x3b6a67['containsRange'](_0x53116c,!0x0))){const _0x4c71ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x224e70,'accept');return this['forceDefaultExecution'](()=>_0x4c71ca([_0x53116c],null,_0x35f669)),null;}}else{const _0x54989b=_0x53116c['getIntersection'](_0x24a176['getFirstRange']());null!==_0x54989b&&_0x24a176['_onDiscard']([_0x54989b],null,_0x35f669);}}if(_0x53116c['detach'](),_0x53116c['isCollapsed']||'$graveyard'==_0x53116c['root']['rootName'])return null;let _0x4cf546=null,_0x535331=_0x53116c['start'],_0x1a8f8e=_0x53116c['end'];const _0x53e885=this['_findSuggestions'](_0x53116c,'deletion');for(const {suggestion:_0x43c02f,meta:_0x116217}of _0x53e885){const _0x1149f2=this['_model']['createRange'](_0x535331,_0x1a8f8e);if(_0x116217['isOwn']&&(this['_mergeNestedSuggestions']||!_0x116217['containsRangeInObject']&&!_0x116217['isInsideObject'])){if(_0x43c02f['isMultiRange']){if(!Lt(_0x43c02f,_0x35f669))continue;let _0x4684e8=!0x0;for(const _0x8ea38 of _0x43c02f['getRanges']()){if(_0x8ea38['containsRange'](_0x1149f2,!0x0))return _0x43c02f;_0x1149f2['containsRange'](_0x8ea38)||(_0x4684e8=!0x1);}_0x4684e8&&_0x43c02f['discard']();}else{const _0x2c03e2=_0x43c02f['getFirstRange']();if(_0x2c03e2['containsRange'](_0x1149f2,!0x0))return _0x43c02f;if(!Lt(_0x43c02f,_0x35f669)){_0x1149f2['containsRange'](_0x2c03e2)?_0x43c02f['removeMarkers']():_0x2c03e2['containsPosition'](_0x535331)?_0x535331=_0x2c03e2['end']:_0x2c03e2['containsPosition'](_0x1a8f8e)&&(_0x1a8f8e=_0x2c03e2['start']);continue;}_0x535331=_0x535331['isBefore'](_0x2c03e2['start'])?_0x535331:_0x2c03e2['start'],_0x1a8f8e=_0x1a8f8e['isAfter'](_0x2c03e2['end'])?_0x1a8f8e:_0x2c03e2['end'],_0x35f669=Object['assign']({},_0x43c02f['attributes']),_0x4cf546?_0x2c03e2['start']['isBefore'](_0x4cf546['getFirstRange']()['start'])?(_0x4cf546['removeMarkers'](),_0x4cf546=_0x43c02f):_0x43c02f['removeMarkers']():_0x4cf546=_0x43c02f;}}}if(_0x4cf546)return this['_setSuggestionRange'](_0x4cf546,this['_model']['createRange'](_0x535331,_0x1a8f8e)),_0x4cf546;{const _0x14bc38=_0x2c7d4a(),_0x1895cf=this['_model']['createRange'](_0x535331,_0x1a8f8e),_0x323d36=_0x51ee6e['id'],_0x1b2642=_0x224e70?'deletion:'+_0x224e70:'deletion',_0x3c0cc1=this['_setSuggestionData']({'id':_0x14bc38,'type':_0x1b2642,'createdAt':new Date(),'authorId':_0x323d36,'attributes':_0x35f669});return this['_addSuggestionMarker'](_0x1b2642,_0x14bc38,_0x323d36,_0x1895cf),_0x3c0cc1;}}['markMultiRangeDeletion'](_0x84dea1,_0x129b5e='multi',_0x2bb4f6={}){const _0x2fd98f=this['editor']['plugins']['get']('Users')['me'],_0x485c99=_0x84dea1['map'](_0x463d72=>new _0x3d4179(_0x463d72['start'],_0x463d72['end'])),_0x51ff4b=new Set();for(const {suggestion:_0x305d53,meta:_0x9a4c8}of this['_findSuggestions'](_0x485c99,'insertion'))_0x9a4c8['isOwn']&&!_0x9a4c8['isNextTo']&&_0x51ff4b['add'](_0x305d53);for(const _0xfb01d7 of _0x51ff4b)if(_0xfb01d7['isMultiRange']){const _0x555f43=_0xfb01d7['getRanges']();(!_0xfb01d7['attributes']||!_0xfb01d7['attributes']['skipNestingCheck'])&&(_0x555f43['every'](_0x5ba2ab=>_0x485c99['some'](_0x35b531=>_0x35b531['containsRange'](_0x5ba2ab,!0x0)))&&_0xfb01d7['discard']());if(_0x485c99['every'](_0x125ac6=>_0x555f43['some'](_0x4d8658=>_0x4d8658['containsRange'](_0x125ac6,!0x0)))){const _0x1b3f4e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x129b5e,'accept');return this['forceDefaultExecution'](()=>_0x1b3f4e(_0x84dea1,null,_0x2bb4f6)),null;}}else{const _0x274f54=_0xfb01d7['getFirstRange']();_0x485c99['some'](_0x5c9b9e=>_0x5c9b9e['containsRange'](_0x274f54,!0x0))&&_0xfb01d7['discard']();if(_0x485c99['every'](_0x2f6215=>_0x274f54['containsRange'](_0x2f6215,!0x0))){const _0x2b409c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x129b5e,'accept');return this['forceDefaultExecution'](()=>_0x2b409c(_0x485c99,null,_0x2bb4f6)),null;}}const _0x30bb32=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x129b5e,'join');let _0x389d2a=null;for(const _0x37186c of this['getSuggestions']())if(_0x37186c['author']['id']==_0x2fd98f['id']&&_0x37186c['isInContent']&&'deletion'==_0x37186c['type']&&_0x37186c['subType']==_0x129b5e&&Lt(_0x37186c,_0x2bb4f6)&&(_0x30bb32(_0x37186c['getRanges'](),_0x485c99)||_0x30bb32(_0x485c99,_0x37186c['getRanges']()))){if(_0x389d2a){if(_0x37186c['commentThread']&&_0x37186c['commentThread']['length'])continue;for(const _0x54bb22 of _0x37186c['getRanges']())_0x389d2a['isIntersectingWithRange'](_0x54bb22)||_0x389d2a['addRange'](_0x54bb22);_0x37186c['removeMarkers']();}else{_0x389d2a=_0x37186c;for(const _0x2233df of _0x485c99)_0x37186c['isIntersectingWithRange'](_0x2233df)||_0x37186c['addRange'](_0x2233df);}}if(_0x389d2a)return _0x389d2a;_0x51ff4b['clear']();for(const {suggestion:_0x5cfeb4,meta:_0x9f1f8}of this['_findSuggestions'](_0x485c99,'deletion'))_0x9f1f8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9f1f8['containsRangeInObject']&&!_0x9f1f8['isInsideObject'])&&Lt(_0x5cfeb4,_0x2bb4f6)&&_0x51ff4b['add'](_0x5cfeb4);for(const _0x528609 of _0x51ff4b){const _0x1c0b1b=_0x528609['getRanges']();if(!_0x2bb4f6||!_0x2bb4f6['skipNestingCheck']){if(_0x485c99['every'](_0x5ef6eb=>_0x1c0b1b['some'](_0x5be604=>_0x5be604['containsRange'](_0x5ef6eb,!0x0))))return _0x528609;}(!_0x528609['attributes']||!_0x528609['attributes']['skipNestingCheck'])&&(_0x1c0b1b['every'](_0x23b34f=>_0x485c99['some'](_0x35115b=>_0x35115b['containsRange'](_0x23b34f,!0x0)))&&_0x528609['discard']());}const _0x452501=_0x2c7d4a(),_0x5e970c=_0x2fd98f['id'],_0x4b7a7d='deletion:'+_0x129b5e,_0x2c8e89=this['_setSuggestionData']({'id':_0x452501,'type':_0x4b7a7d,'createdAt':new Date(),'authorId':_0x5e970c,'attributes':_0x2bb4f6});for(const _0x514fad of _0x485c99)_0x514fad['detach'](),_0x514fad['isCollapsed']||'$graveyard'==_0x514fad['root']['rootName']||this['_addSuggestionMarker'](_0x4b7a7d,_0x452501,_0x5e970c,_0x514fad,u['getMultiRangeId']());return _0x2c8e89;}['markAttributeChange'](_0x5a27a4,_0x9f71a2,_0x36e9ed,_0x5adaef,_0x48022e){if(_0x5a27a4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x171c55=this['editor']['plugins']['get']('Users')['me']['id'],_0x238c9f=Array['from'](this['_suggestions']['values']())['filter'](_0x3235cf=>'attribute'==_0x3235cf['type']&&_0x3235cf['data']['key']==_0x9f71a2&&_0x3235cf['isIntersectingWithRange'](_0x5a27a4));if('default'===this['_trackFormatChanges']){const _0x5eaf82=this['_findSuggestions'](_0x5a27a4,'insertion')['filter'](({meta:_0x395b65})=>_0x395b65['isOwn']&&!_0x395b65['isInsideObject']&&!_0x395b65['isNextTo'])['map'](({suggestion:_0x472ea0})=>_0x472ea0);_0x238c9f['unshift'](..._0x5eaf82);}const _0x4e570a=new Map([[_0x5a27a4,_0x36e9ed]]);for(const _0x4208a4 of _0x238c9f){const _0x508a33='attribute'==_0x4208a4['type']?_0x4208a4['data']['oldValue']:void 0x0,_0x41030f=_0x4208a4['getFirstRange'](),_0x52910c=Array['from'](_0x4e570a['keys']())['find'](_0x4edd5a=>_0x4edd5a['isIntersecting'](_0x41030f));if(!_0x52910c)continue;const _0x1da221=_0x52910c['getDifference'](_0x41030f);this['_isBlockAttribute'](_0x9f71a2)&&'insertion'==_0x4208a4['type']&&0x0!=_0x1da221['length']||(_0x4e570a['delete'](_0x52910c),_0x1da221['forEach'](_0x1d45bc=>{_0x4e570a['set'](_0x1d45bc,_0x36e9ed);}),'insertion'!=_0x4208a4['type']&&_0x508a33!=_0x5adaef&&_0x4e570a['set'](_0x52910c['getIntersection'](_0x41030f),_0x508a33));}const _0x40b70a=[];for(const [_0x381c78,_0x2ac4ab]of _0x4e570a){const _0x5b5c01=_0x2c7d4a(),_0x5c149a={'key':_0x9f71a2,'oldValue':_0x2ac4ab,'newValue':_0x5adaef};_0x9f71a2['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':_0x9f71a2});const _0x196c38=('attribute:'+(_0x9f71a2+'|'+Vt({'newValue':_0x5adaef})))['substring'](0x0,0x3c),_0x53cc9c=this['_setSuggestionData']({'id':_0x5b5c01,'type':_0x196c38,'data':_0x5c149a,'createdAt':new Date(),'authorId':_0x171c55,'attributes':_0x48022e});_0x40b70a['push'](_0x53cc9c),this['_addSuggestionMarker'](_0x196c38,_0x5b5c01,_0x171c55,_0x381c78);}return _0x40b70a;}['_registerBlockAttribute'](_0x1e0e69){this['_blockAttributeKeys']['add'](_0x1e0e69);}['_registerInlineAttribute'](_0x279ac4){this['_inlineAttributeKeys']['add'](_0x279ac4);}['_enableDefaultAttributesIntegration'](_0x3c3e37,_0x5c1845=[],_0x34e023=[]){this['enableCommand'](_0x3c3e37,(_0x4d3366,..._0x54cd69)=>{this['_recordAttributeChanges'](()=>{_0x4d3366(..._0x54cd69);});});for(const _0x268379 of _0x5c1845)this['_registerInlineAttribute'](_0x268379);for(const _0x54e56c of _0x34e023)this['_registerBlockAttribute'](_0x54e56c);}['_getAttributeKey'](_0x27e3a1){return'attribute'==_0x27e3a1['type']?_0x27e3a1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28bf0b,_0x6837b5){const _0x51c4a4=_0x28bf0b['getFirstMarker']();this['_model']['change'](_0xfaecd8=>{_0xfaecd8['updateMarker'](_0x51c4a4,{'range':_0x6837b5});});}['_addThreadToSuggestion'](_0x4ee7ee){const _0x4fd652=_0x4ee7ee['id'],_0x1508e4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4fd652)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1508e4,'threadId':_0x4fd652,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3612cd=this['_commentsRepository']['getCommentThread'](_0x4fd652);_0x3612cd['unbind']('isRemovable'),_0x3612cd['isRemovable']=!0x1,_0x4ee7ee['commentThread']=_0x3612cd;}['_checkSuggestionCorrectness'](_0x31d00a,_0x42b9f2,_0x224885,_0x4a272a){if(_0x31d00a['type']!=_0x42b9f2||_0x31d00a['subType']!=_0x224885||_0x31d00a['creator']['id']!=_0x4a272a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a5c42('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x588eb0,_0x40de12){const _0xae6be3=_0x588eb0['getFirstRange']();if(_0x40de12['isEqual'](_0xae6be3))_0x588eb0['removeMarkers']();else{if(_0xae6be3['containsRange'](_0x40de12)){const _0x237f15=this['_model']['createPositionAt'](_0x40de12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x588eb0,this['_model']['createRange'](_0xae6be3['start'],_0x237f15));const _0x7ff069=_0x2c7d4a(),_0x8ae5a7=_0x588eb0['creator']['id'],_0x3b61c6=_0x588eb0['type']+':'+_0x588eb0['subType'];this['_setSuggestionData']({'id':_0x7ff069,'type':_0x3b61c6,'createdAt':new Date(),'authorId':_0x8ae5a7,'data':_0x588eb0['data'],'attributes':_0x588eb0['attributes']});const _0x5e3a7a=this['_model']['createPositionAt'](_0x40de12['end']['parent'],'after'),_0x2c9021=this['_model']['createRange'](_0x5e3a7a,_0xae6be3['end']);this['_addSuggestionMarker'](_0x3b61c6,_0x7ff069,_0x8ae5a7,_0x2c9021);}else{if(_0xae6be3['containsPosition'](_0x40de12['start'])){const _0x549806=this['_model']['createPositionAt'](_0x40de12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x588eb0,this['_model']['createRange'](_0xae6be3['start'],_0x549806));}else{const _0x4790a3=this['_model']['createPositionAt'](_0x40de12['end']['parent'],'after');this['_setSuggestionRange'](_0x588eb0,this['_model']['createRange'](_0x4790a3,_0xae6be3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xdc0344){for(const {suggestion:_0x2c19e3,meta:_0x2a1c87}of this['_findSuggestions'](_0xdc0344,'insertion')){if(!_0x2a1c87['isOwn'])continue;const _0x5d19ec=_0x2c19e3['getRanges']();for(const _0x2396f4 of _0x5d19ec)if(!_0xdc0344['getDifference'](_0x2396f4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x51f4f2){const _0x5ea219=this['editor']['plugins']['get']('Users')['getUser'](_0x51f4f2);if(!_0x5ea219)throw new _0x2a5c42('track-changes-user-not-found',this);return _0x5ea219;}['_getExternalAuthor'](_0x458a14){const _0x54a3d6=this['editor']['plugins']['get']('Users'),_0x52e9e8=_0x59c610('external:'+_0x458a14),_0x2a232e=_0x54a3d6['getUser'](_0x52e9e8);return _0x2a232e||_0x54a3d6['addUser']({'id':_0x52e9e8,'name':_0x458a14});}['_createSuggestion'](_0x2fbf78,_0xc732d8,_0x3e37b2,_0x382c76,_0x52d82a){const _0x245317=this['_getAuthorFromId'](_0x382c76),_0x233e2c=this['_suggestionFactory']['buildSuggestion'](_0x2fbf78,_0xc732d8,_0x3e37b2,_0x245317,_0x52d82a,_0x1fc1af=>{this['_updateSuggestionData'](_0x3e37b2,{'attributes':_0x1fc1af});const _0x217c8b=this['getSuggestion'](_0x3e37b2);this['_joinWithAdjacentSuggestions'](new Set([_0x217c8b])),this['_refreshSuggestionsChain'](new Set([_0x217c8b]));});return this['listenTo'](_0x233e2c,'accept',()=>{this['_updateSuggestionData'](_0x3e37b2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x233e2c,'discard',()=>{this['_updateSuggestionData'](_0x3e37b2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e37b2,_0x233e2c),this['_suggestionState']['set'](_0x233e2c,'notReady'),_0x233e2c;}['_splitMarkerName'](_0x34b241){const _0x10d57b=_0x34b241['split'](':');return{'group':_0x10d57b[0x0],'type':_0x10d57b[0x1],'subType':_0x10d57b['length']>=0x5?_0x10d57b[0x2]:null,'id':_0x10d57b['length']<0x5?_0x10d57b[0x2]:_0x10d57b[0x3],'authorId':_0x10d57b['length']<0x5?_0x10d57b[0x3]:_0x10d57b[0x4],'markerCount':0x6==_0x10d57b['length']?_0x10d57b[0x5]:null};}['_breakSuggestionMarker'](_0x129722,_0x3e8abc,_0x15a13a){const _0xb8854f=_0x129722['getFirstRange'](),_0x3851e6=_0xb8854f['start'],_0x2f44ba=_0xb8854f['end'];this['_setSuggestionRange'](_0x129722,this['_model']['createRange'](_0x3851e6,_0x3e8abc));const _0x4b58a6=_0x2c7d4a(),_0x4f5afe=_0x129722['creator']['id'],_0x2ff884=_0x129722['type']+(_0x129722['subType']?':'+_0x129722['subType']:'');this['_setSuggestionData']({'id':_0x4b58a6,'type':_0x2ff884,'createdAt':new Date(),'authorId':_0x4f5afe,'originalSuggestionId':_0x129722['id'],'attributes':_0x129722['attributes'],'data':_0x129722['data']});const _0x52d563=this['_getAttributeKey'](_0x129722);('formatBlock'==_0x129722['type']||_0x52d563&&this['_isBlockAttribute'](_0x52d563))&&(_0x15a13a=this['_model']['createPositionBefore'](_0x15a13a['parent'])),this['_addSuggestionMarker'](_0x2ff884,_0x4b58a6,_0x4f5afe,this['_model']['createRange'](_0x15a13a,_0x2f44ba));}['_findSuggestions'](_0x5601ad,_0xd2d3f8=null){const _0xe4cf7a=[],_0x1106ee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5601ad)||(_0x5601ad=[_0x5601ad]);for(const _0x248327 of this['getSuggestions']()){if(!_0x248327['isInContent'])continue;if(_0xd2d3f8&&_0x248327['type']!=_0xd2d3f8)continue;let _0x4919b2=!0x1;for(const _0x5652df of _0x248327['getRanges']()){for(const _0x34670b of _0x5601ad){const _0x5ad393=_0x34670b['start']['isEqual'](_0x5652df['end'])||_0x34670b['end']['isEqual'](_0x5652df['start']);if(_0x5ad393||_0x34670b['getIntersection'](_0x5652df)){const _0x3d9b2f=_0x34670b['containsRange'](_0x5652df)&&Rt(this['_model']['schema'],_0x5652df['start'],_0x34670b),_0x1e4e2f=_0x5652df['containsRange'](_0x34670b)&&Rt(this['_model']['schema'],_0x34670b['start'],_0x5652df);_0xe4cf7a['push']({'suggestion':_0x248327,'meta':{'isOwn':_0x1106ee==_0x248327['author'],'isNextTo':_0x5ad393,'isInsideObject':_0x3d9b2f,'containsRangeInObject':_0x1e4e2f}}),_0x4919b2=!0x0;break;}}if(_0x4919b2)break;}}return _0xe4cf7a;}['_addSuggestionMarker'](_0x2dbb2a,_0x68b037,_0x23266d,_0x1d7e4e,_0x4c1119){this['_model']['change'](_0x3a50f6=>{let _0x1ae450='suggestion:'+_0x2dbb2a+':'+_0x68b037+':'+_0x23266d;_0x4c1119&&(_0x1ae450=_0x1ae450+':'+_0x4c1119),_0x3a50f6['addMarker'](_0x1ae450,{'range':_0x1d7e4e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x409390){const _0x276dad=_0x409390['previous'],_0x4e5f3c=_0x409390['next'];_0x409390['previous']=null,_0x409390['next']=null,null!=_0x276dad&&_0x276dad['next']==_0x409390&&(_0x276dad['next']=_0x4e5f3c),null!=_0x4e5f3c&&_0x4e5f3c['previous']==_0x409390&&(_0x4e5f3c['previous']=_0x276dad),'ready'==this['_suggestionState']['get'](_0x409390)&&(this['_suggestionState']['set'](_0x409390,'removed'),this['fire']('suggestionUnloaded',_0x409390,_0x276dad,_0x4e5f3c));}['_setSuggestionData'](_0x848337){const _0x2f843c=_0x848337['id'],_0x2e3f2a=this['addSuggestionData'](_0x848337);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x550314=this['editor']['plugins']['get']('PendingActions'),_0x296414=_0x2e3f2a['hasComments'],_0x312166=_0x2e3f2a['subType']?_0x2e3f2a['type']+':'+_0x2e3f2a['subType']:_0x2e3f2a['type'],_0xcdba2e=this['editor']['locale'],_0x100bbb=_0x550314['add'](o(_0xcdba2e,'PENDING_ACTION_SUGGESTION')),_0x4ba6f5={'id':_0x2f843c,'type':_0x312166,'hasComments':_0x296414,'data':_0x848337['data']||null,'originalSuggestionId':_0x848337['originalSuggestionId']||null,'attributes':_0x2e3f2a['attributes']};this['_adapter']['addSuggestion'](_0x4ba6f5)['then'](_0x530c01=>{_0x2e3f2a['_saved']=!0x0,_0x550314['remove'](_0x100bbb),_0x530c01&&_0x530c01['createdAt']&&(this['_suggestions']['get'](_0x2f843c)['createdAt']=_0x530c01['createdAt']);})['catch'](_0xddeaa9=>{throw _0x470b78('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e3f2a['discard']();}),_0x2e3f2a['stopListening'](),this['_suggestions']['delete'](_0x2e3f2a['id']),this['_suggestionState']['delete'](_0x2e3f2a),_0xddeaa9;});}return _0x2e3f2a;}['_isBlockAttribute'](_0x6b1e53){return this['_blockAttributeKeys']['has'](_0x6b1e53);}['_updateSuggestionData'](_0x54903a,_0x40a5b5){const _0x5c657f=this['editor']['plugins']['get']('PendingActions'),_0x321ff4=this['getSuggestion'](_0x54903a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x321ff4['_saved']){const _0x209415=_0x5c657f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x54903a,_0x40a5b5)['then'](()=>{_0x5c657f['remove'](_0x209415);});}else _0x321ff4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x54903a,_0x40a5b5);});}}['_getSuggestionData'](_0x52a2a6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a5c42('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x52a2a6);}['_handleNewSuggestionMarker'](_0x48fffa){const {id:_0x3a420d,type:_0x506a4a,subType:_0x541a46,authorId:_0x4b451a}=this['_splitMarkerName'](_0x48fffa),_0x440a03=this['_suggestions']['get'](_0x3a420d)||this['_createSuggestion'](_0x506a4a,_0x541a46,_0x3a420d,_0x4b451a,{});switch(this['_checkSuggestionCorrectness'](_0x440a03,_0x506a4a,_0x541a46,_0x4b451a),this['_suggestionState']['get'](_0x440a03)){case'notReady':this['_getSuggestionData'](_0x3a420d)['then'](_0x58a3d5=>{let _0x1cac88=Promise['resolve']();_0x58a3d5['hasComments']&&(_0x1cac88=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3a420d})),_0x1cac88['then'](()=>{this['addSuggestionData'](_0x58a3d5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x440a03,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3a420d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x440a03,'ready'),this['fire']('suggestionLoaded',_0x440a03);break;case'ready':this['fire']('suggestionChanged',_0x440a03);}return _0x440a03['addMarkerName'](_0x48fffa),_0x440a03;}['_refreshSuggestionsChain'](_0x4c99d6){const _0x4aeec6=Array['from'](_0x4c99d6),_0x4f1de6=_0x4aeec6['filter'](_0x49b322=>'attribute'==_0x49b322['type']);this['_refreshAttributeSuggestionsChain'](_0x4f1de6);const _0x4610e7=_0x4aeec6['filter'](_0x2597c2=>!_0x2597c2['isMultiRange']&&'attribute'!=_0x2597c2['type']),_0x2bd54d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37ce53=>!_0x37ce53['isMultiRange']&&'attribute'!=_0x37ce53['type']),_0x24bc2f=_0x2bd54d['filter'](_0x3d17fe=>!_0x4c99d6['has'](_0x3d17fe)),_0x1166e8=new Map(_0x2bd54d['map'](_0x1f4af9=>[_0x1f4af9,this['_suggestionFactory']['getSuggestionCallback'](_0x1f4af9['type'],_0x1f4af9['subType'],'chain')])),_0x4bca96=new Map(_0x2bd54d['map'](_0x41d108=>[_0x41d108,_0x41d108['getFirstRange']()])),_0xf8bf4e=new Set(),_0x3b6964=new Set();for(let _0xb5a716=0x0;_0xb5a716<_0x4610e7['length'];_0xb5a716++)_0x13bc0b(_0x4610e7[_0xb5a716],_0x4610e7,_0xb5a716+0x1);for(let _0x47fd65=0x0;_0x47fd65<_0x4610e7['length'];_0x47fd65++)_0x13bc0b(_0x4610e7[_0x47fd65],_0x24bc2f,0x0);const _0x2485a9=new Set();for(let _0x4f7eb6=0x0;_0x4f7eb6<_0x4610e7['length'];_0x4f7eb6++){const _0xe5b6a0=_0x4610e7[_0x4f7eb6];!_0x3b6964['has'](_0xe5b6a0)&&_0xe5b6a0['previous']&&(_0x2485a9['add'](_0xe5b6a0['previous']),_0xe5b6a0['previous']['next']===_0xe5b6a0&&(_0xe5b6a0['previous']['next']=null),_0xe5b6a0['previous']=null),!_0xf8bf4e['has'](_0xe5b6a0)&&_0xe5b6a0['next']&&(_0x2485a9['add'](_0xe5b6a0['next']),_0xe5b6a0['next']['previous']===_0xe5b6a0&&(_0xe5b6a0['next']['previous']=null),_0xe5b6a0['next']=null);}function _0x13bc0b(_0x26071c,_0xbf5d12,_0x2d78e6){for(let _0x3241a0=_0x2d78e6;_0x3241a0<_0xbf5d12['length'];_0x3241a0++){const _0x2fdf99=_0x1d0aef(_0x26071c,_0xbf5d12[_0x3241a0]);_0x2fdf99&&(_0x2fdf99[0x0]['next']=_0x2fdf99[0x1],_0x2fdf99[0x1]['previous']=_0x2fdf99[0x0],_0xf8bf4e['add'](_0x2fdf99[0x0]),_0x3b6964['add'](_0x2fdf99[0x1]));}}function _0x1d0aef(_0x38b32a,_0x395980){if(_0x38b32a['author']['id']!==_0x395980['author']['id'])return null;const _0x628181=_0x1166e8['get'](_0x38b32a)(_0x38b32a,_0x395980,_0x4bca96['get'](_0x38b32a),_0x4bca96['get'](_0x395980));if(!_0x628181)return null;return _0x1166e8['get'](_0x395980)(_0x38b32a,_0x395980,_0x4bca96['get'](_0x38b32a),_0x4bca96['get'](_0x395980))?_0x628181[0x1]['commentThread']&&_0x628181[0x1]['commentThread']['length']?null:_0x628181:null;}_0x2485a9['size']&&this['_refreshSuggestionsChain'](_0x2485a9);}['_refreshAttributeSuggestionsChain'](_0x476efa){if(0x0==_0x476efa['length'])return;const _0x215942=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a220e=>'attribute'==_0x4a220e['type']&&_0x4a220e['_isDataLoaded']),_0x3f8790=[],_0x517542=new Map();for(const _0x9ae48f of _0x215942){const _0x1d4b7d=_0x59c610(_0x9ae48f['attributes']);_0x517542['has'](_0x1d4b7d)||(_0x517542['set'](_0x1d4b7d,_0x3f8790['length']),_0x3f8790['push']([]));const _0x32330b=_0x517542['get'](_0x1d4b7d);_0x3f8790[_0x32330b]['push'](_0x9ae48f);}!(function(){_0x3f8790['sort']((_0x14d5ff,_0x3706a6)=>{const _0x140bb1=_0x14d5ff[0x0]['createdAt'],_0x6ca405=_0x3706a6[0x0]['createdAt'];return _0x140bb1==_0x6ca405?_0x14d5ff[0x0]['attributes']['groupId']<_0x3706a6[0x0]['attributes']['groupId']?-0x1:0x1:_0x140bb1<_0x6ca405?-0x1:0x1;});for(const _0x5a2224 of _0x3f8790)_0x5a2224['sort']((_0x5c851b,_0x555750)=>_0x5c851b['id']<_0x555750['id']?-0x1:0x1);}());for(let _0x84865c=0x0;_0x84865c<_0x3f8790['length'];_0x84865c++){if(0x0==_0x3f8790[_0x84865c]['length'])continue;const _0x39b14f=[];for(let _0x9c24a2=_0x84865c+0x1;_0x9c24a2<_0x3f8790['length'];_0x9c24a2++)0x0!=_0x3f8790[_0x9c24a2]['length']&&_0x3dcce3(_0x3f8790[_0x84865c],_0x3f8790[_0x9c24a2])&&_0x39b14f['push'](_0x9c24a2);for(const _0x196f57 of _0x39b14f)_0x3f8790[_0x84865c]=_0x3f8790[_0x84865c]['concat'](_0x3f8790[_0x196f57]),_0x3f8790[_0x196f57]=[];}for(const _0x112938 of _0x3f8790)for(let _0x4cae4b=0x0;_0x4cae4b<_0x112938['length'];_0x4cae4b++)_0x112938[_0x4cae4b]['next']=_0x112938[_0x4cae4b+0x1]||null;for(const _0x15ae80 of _0x3f8790)for(let _0xd90f42=0x0;_0xd90f42<_0x15ae80['length'];_0xd90f42++)_0x15ae80[_0xd90f42]['previous']=_0x15ae80[_0xd90f42-0x1]||null;function _0x3dcce3(_0x367a63,_0xdfdf1){if(_0x367a63[0x0]['attributes']['groupId']!==_0xdfdf1[0x0]['attributes']['groupId']&&_0x367a63[0x0]['author']!==_0xdfdf1[0x0]['author'])return!0x1;if(!function(_0xd2da1a,_0x5a05c9){if(!_0xd2da1a['hasComments']&&!_0x5a05c9['hasComments'])return!0x0;if(_0xd2da1a['hasComments']&&_0x5a05c9['hasComments'])return!0x1;if(_0xd2da1a['hasComments']&&_0x5a05c9['createdAt']<_0xd2da1a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a05c9['hasComments']&&_0xd2da1a['createdAt']<_0x5a05c9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x367a63[0x0],_0xdfdf1[0x0]))return!0x1;const _0x42741e=Bt(_0x367a63[0x0]['attributes'],'groupId'),_0x2b8ff4=Bt(_0xdfdf1[0x0]['attributes'],'groupId');if(!_0x218615(_0x42741e,_0x2b8ff4))return!0x1;return!!_0x367a63['every'](_0x5ed4b6=>_0xdfdf1['some'](_0x34fde6=>_0x5ed4b6['getFirstRange']()['isEqual'](_0x34fde6['getFirstRange']())))&&_0xdfdf1['every'](_0x35d416=>_0x367a63['some'](_0x3affec=>_0x35d416['getFirstRange']()['isEqual'](_0x3affec['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x28cd1e){const _0x185207=Array['from'](_0x28cd1e),_0x4fb5d5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x32d97c=_0x4fb5d5['filter'](_0x25af4d=>!_0x28cd1e['has'](_0x25af4d)),_0x15eeb9=new Map(_0x185207['map'](_0x2be169=>[_0x2be169,this['_suggestionFactory']['getSuggestionCallback'](_0x2be169['type'],_0x2be169['subType'],'join')])),_0x7f8739=new Map(_0x4fb5d5['map'](_0xe76518=>[_0xe76518,_0xe76518['getRanges']()]));for(let _0x1e4495=0x0;_0x1e4495<_0x185207['length'];_0x1e4495++){if(_0x53805f(this,_0x185207[_0x1e4495],_0x185207,_0x1e4495+0x1))return!0x0;}for(let _0x14c56e=0x0;_0x14c56e<_0x185207['length'];_0x14c56e++){if(_0x53805f(this,_0x185207[_0x14c56e],_0x32d97c,0x0))return!0x0;}return!0x1;function _0x53805f(_0xae6711,_0x3ce0f4,_0x484a4f,_0x2c9c52){for(let _0x2a7c98=_0x2c9c52;_0x2a7c98<_0x484a4f['length'];_0x2a7c98++){const _0xd1dac6=_0x484a4f[_0x2a7c98];if(_0xd1dac6['type']!==_0x3ce0f4['type']||_0xd1dac6['author']['id']!==_0x3ce0f4['author']['id']||_0xd1dac6['subType']!==_0x3ce0f4['subType'])continue;if(!Pt(_0x3ce0f4,_0xd1dac6,['groupId']))continue;if('attribute'==_0x3ce0f4['type']&&_0x3ce0f4['data']['oldValue']!=_0xd1dac6['data']['oldValue'])continue;if('attribute'==_0x3ce0f4['type']&&_0xae6711['_isBlockAttribute'](_0x3ce0f4['data']['key']))continue;if('formatBlock'==_0x3ce0f4['type']){const _0x4cc42b=_0xae6711['editor']['model'],_0xcfa6d2=_0x3ce0f4['getContainedElement']();if(_0xcfa6d2&&(_0x4cc42b['schema']['isObject'](_0xcfa6d2)||_0x4cc42b['schema']['isLimit'](_0xcfa6d2)))continue;}const _0x2e7b1a=_0x15eeb9['get'](_0x3ce0f4),_0xb96113=_0x7f8739['get'](_0x3ce0f4),_0x8e3a84=_0x7f8739['get'](_0xd1dac6),_0x56b572=_0x3ce0f4['commentThread']&&_0x3ce0f4['commentThread']['length'],_0x3f95ea=_0xd1dac6['commentThread']&&_0xd1dac6['commentThread']['length'];if(!_0x56b572&&_0x2e7b1a(_0x8e3a84,_0xb96113))return _0xae6711['_joinSuggestions'](_0xd1dac6,_0x3ce0f4),_0x7f8739['delete'](_0x3ce0f4),!0x0;if(!_0x3f95ea&&_0x2e7b1a(_0xb96113,_0x8e3a84))return _0xae6711['_joinSuggestions'](_0x3ce0f4,_0xd1dac6),_0x7f8739['delete'](_0xd1dac6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x52aee5,_0x5279d4){if(_0x52aee5['isMultiRange']){for(const _0x17f03d of _0x5279d4['getRanges']())_0x52aee5['addRange'](_0x17f03d);}else{const _0x3a4269=_0x5279d4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x52aee5,this['_model']['createRange'](_0x52aee5['getFirstRange']()['start'],_0x3a4269));}_0x5279d4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a0968,_0x40d186){const _0x5cdcf9=_0x2a0968['startsWith']('format')||_0x2a0968['startsWith']('attribute')?'FORMATTING':_0x2a0968['toUpperCase']();return o(this['editor']['locale'],_0x40d186+'_'+_0x5cdcf9+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x208611=this['editor'];if(!_0x208611['ui'])return;const {ariaLiveAnnouncer:_0x47ba03}=_0x208611['ui'];_0x55af74(this['_model'],({left:_0x5cab92,entered:_0x4aecb6})=>{for(const _0x51dfc4 of _0x5cab92){const {group:_0x47dba7,type:_0x1b16c5}=this['_splitMarkerName'](_0x51dfc4['name']);if('suggestion'===_0x47dba7){_0x47ba03['announce'](this['_getMarkerAnnouncementText'](_0x1b16c5,'LEAVE'));break;}}for(const _0x38462a of _0x4aecb6){const {group:_0x594952,type:_0x362621}=this['_splitMarkerName'](_0x38462a['name']);if('suggestion'===_0x594952){_0x47ba03['announce'](this['_getMarkerAnnouncementText'](_0x362621,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1b7cfe){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4c88f8=this['editor'],_0x31eb07=_0x4c88f8['model']['document']['differ']['getChanges']();if(0x0==_0x31eb07['length'])return!0x1;const _0x2d992f=[],_0x109b27=_0x31eb07['filter'](_0x4b4f06=>'attribute'==_0x4b4f06['type']),_0x2904c0=_0x31eb07['filter'](_0x56959f=>'insert'==_0x56959f['type']&&'$text'!=_0x56959f['name']),_0x29d329=_0x31eb07['filter'](_0x4457ed=>'remove'==_0x4457ed['type']&&'$text'!=_0x4457ed['name']);for(const _0x3a55ab of _0x109b27)_0x2d992f['push']({'key':_0x3a55ab['attributeKey'],'newValue':_0x3a55ab['attributeNewValue'],'oldValue':_0x3a55ab['attributeOldValue'],'range':Ot(_0x3a55ab['range'],_0x4c88f8['model'])});for(const _0x99593b of _0x2904c0){const _0x486504=_0x29d329['find'](_0x5529ec=>_0x5529ec['position']['isEqual'](_0x99593b['position']));_0x486504&&_0x2d992f['push']({'key':m,'newValue':_0x99593b['name'],'oldValue':_0x486504['name'],'range':_0x4c88f8['model']['createRangeOn'](_0x99593b['position']['nodeAfter'])});}return 0x0!=_0x2d992f['length']&&this['_reduceExistingSuggestions'](_0x1b7cfe,_0x2d992f);}['_processAttributeSuggestions'](_0x298b65){let _0x1b106d=!0x1;const _0x316908=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e67e8=>_0x1e67e8['data']['newRange']&&_0x1e67e8['name']['startsWith']('suggestion:attribute:'));for(const _0x44bb12 of _0x316908){const {subType:_0x547377,id:_0x4a2451}=this['_splitMarkerName'](_0x44bb12['name']),_0x5b076c=_0x547377['split']('|')[0x0];for(const _0x3274e8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3274e8['id']!=_0x4a2451&&'attribute'==_0x3274e8['type']&&_0x3274e8['data']&&_0x3274e8['data']['key']==_0x5b076c&&_0x3274e8['getFirstRange']()['isIntersecting'](_0x44bb12['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3274e8,_0x44bb12['data']['newRange'],_0x298b65),_0x1b106d=!0x0);}return _0x1b106d;}['_recordAttributeChanges'](_0x29493c){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x29493c();}['_isRegisteredAttribute'](_0x2d52f6){const _0x4d696c=this['_isBlockAttribute'](_0x2d52f6),_0x1af3f6=this['_inlineAttributeKeys']['has'](_0x2d52f6);return _0x4d696c||_0x1af3f6;}['_reduceExistingSuggestions'](_0x35be8a,_0x38699a){if(0x0==_0x38699a['length'])return!0x1;let _0x4c837c=!0x1;for(const _0x21dd25 of _0x38699a){const _0x54d43c=this['_findSuggestions'](_0x21dd25['range'],'attribute')['filter'](_0xddd631=>!_0xddd631['meta']['isNextTo'])['map'](_0x5bbe33=>_0x5bbe33['suggestion']),_0x2512e4=_0x59c610({'newValue':_0x21dd25['newValue']});_0x54d43c['filter'](_0xa86346=>{const [_0x19d130,_0x5aaa61]=_0xa86346['subType']['split']('|');return _0x19d130==_0x21dd25['key']&&_0x5aaa61!=_0x2512e4;})['forEach'](_0x397134=>{this['_reduceSuggestionAttributeRange'](_0x397134,_0x21dd25['range'],_0x35be8a),_0x4c837c=!0x0;});}return _0x4c837c;}['_reduceSuggestionAttributeRange'](_0x35ab53,_0x4204fe,_0x17951d){const _0x1c0fe4=_0x35ab53['getFirstRange']()['getDifference'](_0x4204fe);0x0!==_0x1c0fe4['length']?0x1!==_0x1c0fe4['length']?this['_breakSuggestionMarker'](_0x35ab53,_0x4204fe['start'],_0x4204fe['end']):this['_setSuggestionRange'](_0x35ab53,_0x1c0fe4[0x0]):_0x17951d['removeMarker'](_0x35ab53['getFirstMarker']());}constructor(_0x478360){function _0x38900d(_0x24727c){return _0x24727c['map'](_0x545725=>String['fromCharCode'](_0x545725))['join']('');}super(_0x478360),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x8da573,_0x12bd26,_0x30f87d,_0x2057eb)=>{this['_model']['change'](()=>{for(const _0x51127d of[..._0x2057eb,..._0x30f87d])this['_model']['markers']['has'](_0x51127d)&&_0x478360['editing']['reconvertMarker'](_0x51127d);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x478360['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(),_0x478360['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x478360['config']['get']('trackChanges.trackFormatChanges'),_0x478360['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x478360['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x478360,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x38900d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x38900d([0x34,0x30,0x34,0x38,0x30,0x38,0x34,0x38]);}}class xt{['buildSuggestion'](_0x24c48c,_0xc59a1d,_0x2592e8,_0x3a7f0a,_0xe3a51d,_0x138b0c){return new u(this['_model'],{'type':_0x24c48c,'subType':_0xc59a1d,'id':_0x2592e8,'author':_0x3a7f0a,'creator':_0x3a7f0a,'attributes':_0xe3a51d,'onAttributesChange':_0x138b0c,'onAccept':(..._0xb71bd5)=>this['getSuggestionCallback'](_0x24c48c,_0xc59a1d,'accept')(..._0xb71bd5),'onDiscard':(..._0xa0c28d)=>this['getSuggestionCallback'](_0x24c48c,_0xc59a1d,'discard')(..._0xa0c28d)});}['registerCustomCallback'](_0x56e5bb,_0x1344a0,_0x2828df,_0x4866e9){const _0x54ae3a=_0x56e5bb+':'+_0x1344a0+':'+_0x2828df;this['_customCallbacks']['set'](_0x54ae3a,_0x4866e9);}['getSuggestionCallback'](_0x4d5c7b,_0x7e4311,_0x23a406){const _0x3e5ff1=_0x4d5c7b+':'+_0x7e4311+':'+_0x23a406;return this['_customCallbacks']['get'](_0x3e5ff1)||this['_defaultCallbacks']['get'](_0x4d5c7b+':'+_0x23a406);}['_registerDefaultCallbacks'](){const _0x487e14=()=>!0x1,_0x567d50=_0x58ad2e=>{_0x58ad2e['sort']((_0x3d78a2,_0x2e79ca)=>_0x3d78a2['start']['isBefore'](_0x2e79ca['start'])?0x1:-0x1),this['_model']['change'](_0xa1c8ed=>{for(const _0x2c761c of _0x58ad2e){let _0x2c318c;_0x2c318c=_0x2c761c['end']['isAtEnd']&&_0x2c761c['end']['parent']==_0x2c761c['start']['nodeAfter']?_0xa1c8ed['createSelection'](_0x2c761c['start']['nodeAfter'],'on'):_0xa1c8ed['createSelection'](_0x2c761c),this['_model']['deleteContent'](_0x2c318c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x337009=(_0x1f587d,_0x534840)=>{_0x534840&&this['_model']['change'](_0x44e774=>{const {commandName:_0x2217df,commandParams:_0x4c6648=[]}=_0x534840,_0x1f2ad1=_0x1f587d['map'](_0x1ea070=>(Tt(_0x1ea070)&&(_0x1ea070=this['_model']['createRange'](_0x1ea070['end'])),_0x1ea070))['filter'](_0x74d038=>'$graveyard'!==_0x74d038['root']['rootName']);if(_0x1f2ad1['length']<0x1)return;const _0xb4e6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x15d116=>_0x3d4179['fromRange'](_0x15d116));_0x44e774['setSelection'](_0x1f2ad1);for(const _0x33d828 of this['_editor']['commands']['commands']())_0x33d828['refresh']();_0x4c6648['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2217df,..._0x4c6648);const _0xcbfe9c=_0xb4e6['filter'](_0x4ecce9=>'$graveyard'!=_0x4ecce9['root']['rootName']);_0xcbfe9c['length']>0x0&&_0x44e774['setSelection'](_0xcbfe9c);for(const _0x47e4a5 of _0xb4e6)_0x47e4a5['detach']();});},_0x562440=(_0x1691d9,_0x46ed04)=>0x1==_0x1691d9['length']&&0x1==_0x46ed04['length']&&_0x1691d9[0x0]['end']['isEqual'](_0x46ed04[0x0]['start']),_0x11361a=(_0x6f70bc,_0x6e486,_0x228fb6,_0x248599)=>Ft(_0x6f70bc,_0x6e486,_0x228fb6,_0x248599,this['_model'])?[_0x6f70bc,_0x6e486]:Ft(_0x6e486,_0x6f70bc,_0x248599,_0x228fb6,this['_model'])?[_0x6e486,_0x6f70bc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x487e14),this['_defaultCallbacks']['set']('insertion:discard',_0x567d50),this['_defaultCallbacks']['set']('insertion:join',_0x562440),this['_defaultCallbacks']['set']('insertion:chain',_0x11361a),this['_defaultCallbacks']['set']('deletion:accept',_0x567d50),this['_defaultCallbacks']['set']('deletion:discard',_0x487e14),this['_defaultCallbacks']['set']('deletion:join',_0x562440),this['_defaultCallbacks']['set']('deletion:chain',_0x11361a),this['_defaultCallbacks']['set']('formatInline:accept',_0x337009),this['_defaultCallbacks']['set']('formatInline:discard',_0x487e14),this['_defaultCallbacks']['set']('formatInline:join',_0x562440),this['_defaultCallbacks']['set']('formatInline:chain',_0x487e14),this['_defaultCallbacks']['set']('formatBlock:accept',_0x337009),this['_defaultCallbacks']['set']('formatBlock:discard',_0x487e14),this['_defaultCallbacks']['set']('formatBlock:join',_0x562440),this['_defaultCallbacks']['set']('formatBlock:chain',_0x487e14),this['_defaultCallbacks']['set']('attribute:accept',_0x487e14),this['_defaultCallbacks']['set']('attribute:discard',(_0x508f58,_0x188ae9)=>{if(!_0x188ae9)return;const _0x53cf0c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x39d7c4=>{if(_0x188ae9['key']==m)for(const _0x578fcf of _0x508f58){const _0x4255f6=_0x578fcf['start']['nodeAfter'],_0x729207=_0x188ae9['oldValue'];_0x39d7c4['rename'](_0x4255f6,_0x729207);}else{if(_0x53cf0c['_isBlockAttribute'](_0x188ae9['key'])){for(const _0x410031 of _0x508f58)void 0x0!==_0x188ae9['oldValue']?_0x39d7c4['setAttribute'](_0x188ae9['key'],_0x188ae9['oldValue'],_0x410031['start']['nodeAfter']):_0x39d7c4['removeAttribute'](_0x188ae9['key'],_0x410031['start']['nodeAfter']);}else{for(const _0xf2164f of _0x508f58)_0x188ae9['oldValue']?_0x39d7c4['setAttribute'](_0x188ae9['key'],_0x188ae9['oldValue'],_0xf2164f):_0x39d7c4['removeAttribute'](_0x188ae9['key'],_0xf2164f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x562440);}constructor(_0x3772b9){this['_editor']=_0x3772b9,this['_model']=_0x3772b9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0xfe0fdf,_0x43dc3c,_0x4a1fee){for(const _0x3bdd7b of _0x43dc3c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3bdd7b['root']==_0x3bdd7b)return!0x1;if(!_0x4a1fee['containsItem'](_0x3bdd7b))return!0x1;if(_0xfe0fdf['isObject'](_0x3bdd7b)||_0xfe0fdf['isLimit'](_0x3bdd7b))return!0x0;}return!0x1;}function Tt(_0x3063d7){return _0x3063d7['end']['parent']==_0x3063d7['start']['nodeAfter']&&_0x3063d7['end']['isAtStart'];}function Et(_0xf1540d,_0x32d4e5,_0x2d5c30,_0x371eba){const _0x228cc1=_0x4698ea=>!_0x4698ea['item']['is']('$textProxy')&&!_0x371eba['isObject'](_0x4698ea['item']),_0x3e2af3=_0xf1540d['start']['getLastMatchingPosition'](_0x228cc1),_0x58b23f=_0xf1540d['end']['getLastMatchingPosition'](_0x228cc1,{'direction':'backward'});return(!_0xf1540d['start']['isEqual'](_0x3e2af3)||!_0xf1540d['end']['isEqual'](_0x58b23f))&&(_0x3e2af3['isBefore'](_0x58b23f)?_0x2d5c30['updateMarker'](_0x32d4e5,{'range':_0x2d5c30['createRange'](_0x3e2af3,_0x58b23f)}):_0x2d5c30['removeMarker'](_0x32d4e5),!0x0);}function Vt(_0x49e790){return _0x59c610(_0x49e790);}function Ut(_0x57bf89){const _0x4ec968=_0x57bf89['start']['nodeAfter'];return _0x4ec968&&_0x4ec968['is']('element');}function Ot(_0x36baf7,_0x489a02){return null==_0x36baf7['end']['nodeBefore']&&_0x36baf7['end']['parent']==_0x36baf7['start']['nodeAfter']?Gt(_0x36baf7['start']['nodeAfter'],_0x489a02):_0x36baf7;}function Gt(_0x34bccd,_0xc21110){const _0x3f027e=_0xc21110['schema']['isObject'](_0x34bccd)||_0xc21110['schema']['isSelectable'](_0x34bccd);return _0xc21110['createRange'](_0xc21110['createPositionAt'](_0x34bccd,'before'),_0x3f027e?_0xc21110['createPositionAfter'](_0x34bccd):_0xc21110['createPositionAt'](_0x34bccd,'end'));}function Ft(_0x14cf85,_0x4d8e23,_0x19a2fb,_0x8e6370,_0x4c774b){if(!Pt(_0x14cf85,_0x4d8e23))return!0x1;if(_0x19a2fb['end']['isEqual'](_0x8e6370['start']))return!0x0;if(_0x14cf85['type']!=_0x4d8e23['type'])return!0x1;if(!_0x19a2fb['end']['isTouching'](_0x8e6370['start']))return!0x1;const _0x7fe826=_0x4c774b['createRange'](_0x19a2fb['end'],_0x8e6370['start'])['getWalker']();for(const _0x13d0e2 of _0x7fe826)if(['elementStart','elementEnd']['includes'](_0x13d0e2['type'])&&_0x4c774b['schema']['isLimit'](_0x13d0e2['item']))return!0x1;return!0x0;}function Pt(_0x24fb32,_0x5ed8b5,_0x335646=[]){return!(!_0x24fb32['_isDataLoaded']||!_0x5ed8b5['_isDataLoaded'])&&_0x218615(Bt(_0x24fb32['attributes'],_0x335646),Bt(_0x5ed8b5['attributes'],_0x335646));}function Lt(_0x28b582,_0x108631){const _0x5e1aa4=Ht(_0x28b582['attributes']),_0x4055db=Ht(_0x108631);if(!_0x28b582['_isDataLoaded'])return!0x1;for(const _0x28b22e of Object['keys'](_0x4055db))if(!_0x218615(_0x5e1aa4[_0x28b22e],_0x4055db[_0x28b22e]))return!0x1;return!0x0;}function Ht(_0x3e01a9){const _0x2f6315=Object['assign']({},_0x3e01a9);return delete _0x2f6315['skipNestingCheck'],delete _0x2f6315['tablePasteChainId'],_0x2f6315;}class oe extends _0x2ed6b7(){['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 _0x424aae=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x424aae);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x13af09,_0x4cb4f2,_0x14e69d,_0x58e73c){super(),this['model']=_0x4cb4f2,this['view']=_0x14e69d,this['commentThreadController']=_0x58e73c,this['_editor']=_0x13af09,this['_acceptCommand']=_0x13af09['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x13af09['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3310e4,_0x4d70f9)=>_0x3310e4||_0x4d70f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9593=>_0x9593&&this['_editor']['model']['canEditAt'](_0x4cb4f2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x486d78=>_0x486d78&&this['_editor']['model']['canEditAt'](_0x4cb4f2['getRanges']())),this['_pendingAction']=null,_0x14e69d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x14e69d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x14e69d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x14e69d,'change:isDirty',()=>{_0x14e69d['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x36a6bf{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x20f62a}=this['_config'];this['commentsListView']=new _0x20f62a(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',_0x29bb84=>_0x29bb84+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4de52b,_0x483537)=>_0x4de52b||!!_0x483537);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1f03d5}=this['_config'],_0x69c587=new _0x1f03d5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x256526=_0x69c587['commentInputView'];return _0x69c587['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x256526,'value',(_0x94ef9e,_0x2e661d,_0x571589)=>!!_0x571589||_0x94ef9e&&!_0x2e661d),_0x256526['on']('submit',(_0x3e2b9b,_0x171c0a)=>{this['fire']('addComment',_0x171c0a),_0x256526['editor']['setData']('');}),_0x256526['on']('cancel',()=>this['focus']()),_0x256526['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x69c587;}constructor(_0x215780,_0x5e7397,_0x3cc07,_0x3ff8a7){super(_0x215780),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5e7397['authoredAt']),this['bind']('authoredAt')['to'](_0x5e7397),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5e7397,this['_localUser']=_0x3cc07,this['_config']=_0x3ff8a7,_0x3ff8a7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x1e0f29=this['bindTemplate'],_0x56d466=[{'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':_0x1e0f29['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e0f29['to']('authoredAt',_0x208879=>this['_config']['formatDateTime'](_0x208879))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x56d466['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x39b56d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1e0f29['if']('isActive','ck-suggestion-wrapper--active'),_0x1e0f29['to']('type',_0x30b16b=>'ck-suggestion-'+_0x30b16b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x56d466}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x39b56d['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x39b56d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xb7be9d,_0x4e730d,_0x43a0c1)=>{this['_descriptionElement']['innerHTML']=_0x43a0c1;});}['_createButton'](_0x280978,_0x542c9a,_0x14d702,_0xe728dd,_0x51d3f0){const _0x4644c3=new _0x17c31e(this['locale']);return _0x4644c3['set']({'label':_0x280978,'icon':_0x542c9a,'tooltip':!0x0,'tooltipPosition':_0x51d3f0}),_0x4644c3['extendTemplate']({'attributes':{'class':_0x14d702}}),_0x4644c3['on']('execute',()=>{this['fire'](_0xe728dd,this['_model']['id']);}),_0x4644c3;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x9fb234,_0x31656b,_0x2eb0f5,_0x16e9db){super(_0x9fb234,_0x31656b,_0x2eb0f5,_0x16e9db),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5b7c29=>_0x5b7c29&&_0x5b7c29[0x0]?_0x5b7c29[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x408eb0,_0x2c1c41)=>{let _0x3bb8b9='';for(const _0x56fe0b of _0x408eb0)_0x3bb8b9+='<p>'+ds(_0x56fe0b['content'],_0x56fe0b['color'])+'</p>';return _0x2c1c41?_0x3bb8b9:_0x105c2b(_0x3bb8b9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x9fb234,'Accept\x20suggestion'),_0x30119b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x9fb234,'Discard\x20suggestion'),_0x30119b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x44bf95(_0x9fb234,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x3258c5,_0x149943){let _0x1c4383='';return _0x1c4383+=_0x3258c5['split']('*')['map']((_0x5a31d2,_0x215c6d)=>_0x215c6d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5a31d2)+'</span>':us(_0x5a31d2))['join'](''),_0x149943&&(_0x1c4383+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x149943['value']+'\x22\x20title=\x22'+_0x149943['title']+'\x22></span>'),_0x1c4383;}function us(_0x3aa616){const _0x3ae1bd=document['createElement']('span');return _0x3ae1bd['innerText']=_0x3aa616,_0x3ae1bd['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4de685{static get['requires'](){return[p,_0x194443,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x3d98ea,_0x41e7ff){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x31721e,_0x5c3bc5]of this['_handleControllerBuffer']){const _0x5a7c16=this['_suggestionToController']['has'](_0x31721e);_0x5a7c16||_0x5c3bc5?_0x5a7c16&&_0x5c3bc5&&this['_destroyController'](_0x31721e):this['_initializeController'](_0x31721e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d98ea,_0x41e7ff);}['init'](){const _0x50ee6d=this['editor'],_0x1b7875=_0x50ee6d['plugins']['get']('TrackChangesEditing'),_0x1cd207=_0x50ee6d['plugins']['get']('Annotations'),_0x451cc6=_0x50ee6d['plugins']['get']('EditorAnnotations'),_0x3ce2cf=_0x50ee6d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x451cc6['addSourceCollector'](()=>{const _0x298e9c=[];for(const [_0x467eb8,_0x191468]of Array['from'](this['_suggestionToController'])){const _0x416f5c=_0x467eb8['getAllAdjacentSuggestions'](),_0xc5c73=[];for(const _0x2513af of _0x416f5c){if(!_0x2513af['isInContent'])continue;if(_0x2513af['isMultiRange']){_0xc5c73['push'](..._0x2513af['getRanges']());continue;}const _0x591634=_0x2513af['getFirstRange']();if(_0xc5c73['length']>0x0){const _0xf7021f=_0xc5c73[0x0]['getJoined'](_0x591634);if(_0xf7021f){_0xc5c73[0x0]=_0xf7021f;continue;}}_0xc5c73['push'](_0x591634);}_0x298e9c['push']([_0x191468['view'],_0xc5c73]);}return _0x298e9c;}),this['listenTo'](_0x1b7875,'suggestionLoaded',(_0x5a9130,_0x46ecac)=>{this['listenTo'](_0x46ecac,'change:previous',(_0x432398,_0x5bef54,_0x5ac3bd,_0x4bdb5b)=>{_0x46ecac['isInContent']&&(null==_0x5ac3bd?(this['_updateController'](_0x4bdb5b['head']),this['_handleSuggestionControllerDelayed'](_0x46ecac,!0x1)):(this['_updateController'](_0x5ac3bd['head']),null==_0x4bdb5b&&this['_handleSuggestionControllerDelayed'](_0x46ecac,!0x0)));}),null!==_0x46ecac['previous']?this['_updateController'](_0x46ecac['head']):this['_handleSuggestionControllerDelayed'](_0x46ecac,!0x1);}),this['listenTo'](_0x1b7875,'suggestionUnloaded',(_0x226235,_0x23b72e,_0x3a773f)=>{this['stopListening'](_0x23b72e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23b72e),this['_suggestionToController']['has'](_0x23b72e)&&this['_destroyController'](_0x23b72e),_0x3a773f&&this['_updateController'](_0x3a773f['head']);}),this['listenTo'](_0x1b7875,'suggestionChanged',(_0x52947e,_0x45bedc)=>{this['_updateController'](_0x45bedc);}),this['listenTo'](_0x1cd207,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3ce2cf,'addComment',(_0x3bb432,{threadId:_0x1e38d4,isFromAdapter:_0x4df850})=>{if(_0x4df850||!_0x1b7875['hasSuggestion'](_0x1e38d4))return;const _0x4445f2=_0x1b7875['getSuggestion'](_0x1e38d4);this['_suggestionToController']['get'](_0x4445f2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5b01e0=this['editor']['plugins']['get']('Annotations'),_0x2909e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b450b=Array['from'](_0x5b01e0['activeAnnotations'],_0x1ae7c1=>_0x1ae7c1['innerView'])['filter'](_0x1e472e=>this['_viewToController']['has'](_0x1e472e)),_0x10067d=[];for(const _0xb1364f of _0x3b450b){const _0x3dc4d3=this['_viewToController']['get'](_0xb1364f)['model']['getAllAdjacentSuggestions']();_0x10067d['push'](..._0x3dc4d3['reduce']((_0x2f5318,_0x5aac5e)=>[..._0x2f5318,..._0x5aac5e['getMarkerNames']()],[]));}_0x2909e4['activeMarkers']=_0x10067d;}['_addUIComponentsToFactory'](){const _0x510b11=this['editor'],_0x168462=_0x510b11['locale'],_0x25d836=o(_0x168462,'Track\x20changes'),_0x5b9922=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x25d836,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x168462,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x214fa6 of _0x5b9922)if(ae(_0x214fa6)){const _0x2c2583=_0x510b11['commands']['get'](_0x214fa6['model']['commandName']);_0x214fa6['model']['bind']('isOn','isEnabled')['to'](_0x2c2583,'value','isEnabled');}_0x510b11['ui']['componentFactory']['add']('trackChanges',_0x260df2=>this['_createToolbarButton'](_0x260df2,_0x5b9922,_0x25d836)),_0x510b11['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3922a7=>this['_createMenuBarMenu'](_0x3922a7,_0x5b9922,_0x25d836));}['_createToolbarButton'](_0x49c2b5,_0x452172,_0x38dd1d){const _0x319148=zt(_0x49c2b5,Zt),_0x17e553=this['editor']['commands']['get']('trackChanges');_0x319148['buttonView']['set']({'tooltip':_0x38dd1d,'label':_0x38dd1d,'icon':ie}),_0x319148['buttonView']['bind']('isOn')['to'](_0x17e553,'value'),_0x319148['buttonView']['on']('execute',()=>{_0x17e553['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x319148,_0x452172);const _0x1265e3=[];for(const _0xad3015 of _0x452172)ae(_0xad3015)&&_0x1265e3['push'](this['editor']['commands']['get'](_0xad3015['model']['commandName']));const _0x268cd1=_0x319148['buttonView'];return _0x268cd1['actionView']['unbind']('isEnabled'),_0x268cd1['arrowView']['unbind']('isEnabled'),_0x268cd1['actionView']['bind']('isEnabled')['to'](_0x17e553,'isEnabled'),_0x268cd1['arrowView']['bind']('isEnabled')['toMany'](_0x1265e3,'isEnabled',(..._0x1810bb)=>_0x1810bb['some'](_0x3654ee=>_0x3654ee)),_0x319148['on']('execute',_0xe97ccc=>{this['editor']['execute'](_0xe97ccc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x319148;}['_createMenuBarMenu'](_0x45788e,_0x17acdb,_0x1b35cd){const _0xdad7b8=new Kt(_0x45788e),_0x4b1884=this['editor']['commands']['get']('trackChanges');_0xdad7b8['buttonView']['set']({'label':_0x1b35cd,'icon':ie});const _0xc123f8=new Qt(_0x45788e);for(const _0x46fcdf of _0x17acdb){if('separator'==_0x46fcdf['type']){_0xc123f8['items']['add'](new Jt(_0x45788e));continue;}const _0x59fcd3=new Xt(_0x45788e,_0xdad7b8),_0x2da43f=new Yt(_0x45788e),_0x53f94e=_0x46fcdf['model'];_0x2da43f['bind'](...Object['keys'](_0x53f94e))['to'](_0x53f94e),_0x2da43f['delegate']('execute')['to'](_0xdad7b8),_0x2da43f['on']('execute',()=>{this['editor']['execute'](_0x53f94e['commandName']),this['editor']['editing']['view']['focus']();}),_0x59fcd3['children']['add'](_0x2da43f),_0xc123f8['items']['add'](_0x59fcd3);}return _0xdad7b8['bind']('isEnabled')['to'](_0x4b1884,'isEnabled'),_0xdad7b8['panelView']['children']['add'](_0xc123f8),_0xdad7b8;}['_initializeController'](_0x10f808){const _0x576f3d=this['editor'],_0x443443=_0x576f3d['config'],_0x2b9ed0=_0x576f3d['plugins']['get']('Annotations'),_0x4cbbe2=_0x576f3d['plugins']['get']('CommentsRepository'),_0x5d39ec=_0x576f3d['plugins']['get']('EditorAnnotations'),_0x5b0e1a=_0x576f3d['plugins']['get'](_0x194443)['me'],_0x2a1df9=_0x443443['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3177f2,CommentThreadInputView:_0x10ad70}=_0x576f3d['plugins']['get']('CommentsUI');let _0x4d48a8,_0x52e2e5;this['_annotationViews']['has'](_0x10f808['id'])?(_0x52e2e5=this['_annotationViews']['get'](_0x10f808['id']),_0x4d48a8=_0x52e2e5['mainView']):(_0x4d48a8=new _0x2a1df9(_0x576f3d['locale'],_0x10f808,_0x5b0e1a,{'disableComments':this['_disableComments'],'editorConfig':_0x443443['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x443443['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x443443['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x443443['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3da504(_0x443443['get']('locale')),'CommentView':_0x443443['get']('comments')['CommentView'],'CommentsListView':_0x3177f2,'CommentThreadInputView':_0x10ad70}),_0x4d48a8['acceptButton']['on']('execute',()=>{_0x576f3d['editing']['view']['focus']();}),_0x4d48a8['discardButton']['on']('execute',()=>{_0x576f3d['editing']['view']['focus']();}),_0x52e2e5=_0x2b9ed0['createAnnotationView'](this['editor']['locale'],_0x4d48a8),_0x52e2e5['bind']('isDirty')['to'](_0x4d48a8,'isDirty'),_0x52e2e5['bind']('length')['to'](_0x4d48a8),_0x52e2e5['bind']('type')['to'](_0x4d48a8,'type',_0x2e0d37=>'suggestion-'+_0x2e0d37),this['_annotationViews']['set'](_0x10f808['id'],_0x52e2e5));const _0x4c7397=_0x4cbbe2['createCommentThreadController'](_0x10f808['commentThread'],_0x4d48a8),_0x591d9b=new oe(_0x576f3d,_0x10f808,_0x4d48a8,_0x4c7397),_0x3badba=_0x10f808['getAllAdjacentSuggestions']()['filter'](_0x52e1d8=>_0x52e1d8['isInContent']);_0x4d48a8['descriptionParts']=_0x576f3d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x3badba),this['_suggestionToController']['set'](_0x10f808,_0x591d9b),this['_viewToController']['set'](_0x4d48a8,_0x591d9b);const _0x57696c=_0x2b9ed0['createAnnotation']({'view':_0x52e2e5,'target':()=>{const _0x3f06e1=[],_0x3ad243=_0x10f808['getAllAdjacentSuggestions']()['filter'](_0x3d4dc1=>_0x3d4dc1['isInContent']);for(const _0x9b6d1e of _0x3ad243)_0x3f06e1['push'](..._0x9b6d1e['getMarkers']());return _0x438fce(_0x576f3d['editing'],_0x3f06e1);},'type':()=>'suggestion-'+_0x591d9b['view']['type']});_0x4cbbe2['_bindAnnotationToEditors'](_0x4d48a8,_0x57696c),_0x2b9ed0['add'](_0x57696c),_0x5d39ec['registerAnnotation'](_0x57696c);}['_destroyController'](_0x1ec816){const _0x2e241f=this['editor']['plugins']['get']('CommentsRepository'),_0x1acd9c=this['editor']['plugins']['get']('Annotations'),_0x19e43a=this['_suggestionToController']['get'](_0x1ec816),_0xd559da=_0x19e43a['view'],_0x5f4407=_0x1acd9c['getByInnerView'](_0xd559da);_0x2e241f['_unbindEditors'](_0xd559da),_0x5f4407&&_0x1acd9c['remove'](_0x5f4407),this['_suggestionToController']['delete'](_0x1ec816),this['_viewToController']['delete'](_0xd559da),_0x19e43a['destroy']();}['_updateController'](_0x34d57e){if(!_0x34d57e['isInContent']||!this['_suggestionToController']['has'](_0x34d57e))return;const _0x3b556f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a4098=this['_suggestionToController']['get'](_0x34d57e),_0x3bd238=_0x34d57e['getAllAdjacentSuggestions']();_0x5a4098['view']['descriptionParts']=_0x3b556f['_descriptionFactory']['getDescriptions'](_0x3bd238);}['destroy'](){for(const _0xc370b4 of this['_suggestionToController']['keys']())this['_destroyController'](_0xc370b4);for(const _0x4d350d of this['_annotationViews']['values']())_0x4d350d['mainView']['destroy']();super['destroy']();}constructor(_0x2984d8){super(_0x2984d8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x260198=this['editor']['config'];_0x260198['define']('trackChanges.SuggestionThreadView',ne),_0x260198['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x260198['get']('trackChanges.disableComments');}}function ae(_0xa59907){return'model'in _0xa59907;}class k extends _0x4de685{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x565264){this['editor']['plugins']['get'](p)['adapter']=_0x565264;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x280a22){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x280a22);}['getSuggestions']({skipNotAttached:_0x29eb68=!0x1,toJSON:_0x56417c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x29eb68,'toJSON':_0x56417c});}['getSuggestion'](_0x1ef249){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1ef249);}}const T=['Pagination'];class P extends _0x4de685{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x20ac28=this['editor'];if(_0x20ac28['config']['define']('trackChangesData.editorCreator',_0x202ec4=>{const _0x25322a=_0x20ac28['model']['document']['getRootNames']()['reduce']((_0x3dad67,_0x3ab035)=>(_0x3dad67[_0x3ab035]='',_0x3dad67),{});return _0x20ac28['constructor']['create'](_0x25322a,_0x202ec4);}),'function'!=typeof _0x20ac28['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a5c42('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x25b17b){return N(this['editor'],!0x0,_0x25b17b);}['getDataWithDiscardedSuggestions'](_0x5d6c93){return N(this['editor'],!0x1,_0x5d6c93);}}class D extends _0x4de685{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x398d69){super(_0x398d69),this['result']='end';}}function v(_0x285511){return void 0x0!==_0x285511['getRootsAttributes'];}async function N(_0x1de9f1,_0x54d3ed,_0x5cefa3){const _0x5abad2=_0x56a645(_0x1de9f1,T);_0x5abad2['plugins']['push'](p,D),_0x5abad2['rootsAttributes']=v(_0x1de9f1)?_0x1de9f1['getRootsAttributes']():void 0x0;const _0x5dffe3=document['createDocumentFragment'](),_0x3a7e70=_0x1de9f1['config']['get']('trackChangesData')['editorCreator'],_0x1eef49=await _0x3a7e70(_0x5abad2,()=>function(_0x577350){const _0x7d47e3=document['createElement']('div');return _0x577350['appendChild'](_0x7d47e3),_0x7d47e3;}(_0x5dffe3));!function(_0xec02d4,_0x2a1636){const _0x3cea76=_0xec02d4['model']['document']['getRootNames']()['reduce']((_0x5280ba,_0x416304)=>(_0x5280ba[_0x416304]=_0xec02d4['data']['get']({'rootName':_0x416304}),_0x5280ba),{}),_0x13f7fc=_0xec02d4['plugins']['get']('Users')['users']['map'](_0x5f33c4=>({'id':_0x5f33c4['id'],'name':_0x5f33c4['name']})),_0x558358=_0xec02d4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x18c4f7=_0x2a1636['plugins']['get']('Users'),_0x16dc05=_0x2a1636['plugins']['get']('TrackChangesEditing');for(const _0x234157 of _0x13f7fc)_0x18c4f7['getUser'](_0x234157['id'])||_0x18c4f7['addUser'](_0x234157);_0x18c4f7['me']||_0x18c4f7['useAnonymousUser']();for(const _0x15e1c5 of _0x558358)_0x16dc05['addSuggestionData'](_0x15e1c5);_0x2a1636['data']['set'](_0x3cea76);}(_0x1de9f1,_0x1eef49),_0x1eef49['execute'](_0x54d3ed?'acceptAllSuggestions':'discardAllSuggestions');const _0x2f74c9=v(_0x1eef49)?_0x1eef49['getFullData'](_0x5cefa3):_0x1eef49['data']['get'](_0x5cefa3);return await _0x1eef49['destroy'](),_0x2f74c9;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x10cfe7,PendingActions as _0x343626,icons as _0x18119a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3504a2,ObservableMixin as _0x2533b6,uid as _0x23a7e6,insertToPriorityArray as _0x45b2b3,priorities as _0x266552,logWarning as _0x280507,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1d5538,View as _0x194e67,ButtonView as _0x1da9d3,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2312f1,hashObject as _0x249181,surroundingMarkersDetector as _0x3aa985,trimHtml as _0x448f34,UserView as _0x233b76,getDateTimeFormatter as _0x257592,getAllMarkersDomElementsSorted as _0x2ab3bb,sanitizeEditorConfig as _0x2d8044}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1fbd42,LiveRange as _0x151eba,LivePosition as _0x201a6b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x52644e,toWidget as _0x15cb9c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x156f41,set as _0x52ef0f,isEqual as _0x32b3e3,unset as _0xfebb79,omit as Bt}from'lodash-es';import{Delete as _0x291989,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2e2cd6,ShiftEnter as _0x7a509}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0xa1c8c0 of this['editor']['commands']['commands']())_0xa1c8c0['affectsData']&&!this['_enabledCommands']['has'](_0xa1c8c0)&&_0xa1c8c0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x54542a of this['editor']['commands']['commands']())_0x54542a['affectsData']&&!this['_enabledCommands']['has'](_0x54542a)&&_0x54542a['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4b6382,_0x88902){super(_0x4b6382),this['_enabledCommands']=_0x88902,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xdc9e22){const _0x17302a=this['_suggestions']['get'](_0xdc9e22);if(!_0x17302a)throw new _0x3504a2('track-changes-accept-suggestion-not-found',this);const _0x4e1c48=_0x17302a['getRanges']();this['editor']['model']['canEditAt'](_0x4e1c48)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x17302a);}constructor(_0x15b1af,_0xa8a01b){super(_0x15b1af),this['_suggestions']=_0xa8a01b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x25983f){const _0x4257aa=this['_suggestions']['get'](_0x25983f);if(!_0x4257aa)throw new _0x3504a2('track-changes-discard-suggestion-not-found',this);const _0x151fbb=_0x4257aa['getRanges']();this['editor']['model']['canEditAt'](_0x151fbb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4257aa);}constructor(_0x1b0aee,_0x8d036){super(_0x1b0aee),this['_suggestions']=_0x8d036,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x49d5b9){return _0x49d5b9['sort']((_0x2473da,_0x5c73ac)=>'deletion'==_0x2473da['type']&&'deletion'!=_0x5c73ac['type']?-0x1:'deletion'!=_0x2473da['type']&&'deletion'==_0x5c73ac['type']?0x1:0x0);}function to(_0x5d3cda,_0x59e013){let _0x23e297,_0x3fc0fe=0x0;const _0x58b6cf=[],_0x19cc2a=_0x59e013['schema'];for(;_0x3fc0fe<_0x5d3cda['length'];){const _0xa56d76=_0x5d3cda[_0x3fc0fe],_0x133054=_0x5d3cda[_0x3fc0fe+0x1];_0x23e297||(_0x23e297=_0x59e013['createPositionBefore'](_0xa56d76)),co(_0x59e013,_0xa56d76,_0x133054)||(_0x58b6cf['push'](_0x59e013['createRange'](_0x23e297,_0x19cc2a['isObject'](_0xa56d76)?_0x59e013['createPositionAfter'](_0xa56d76):_0x59e013['createPositionAt'](_0xa56d76,'end'))),_0x23e297=null),_0x3fc0fe++;}return _0x58b6cf;}function co(_0x566259,_0x26f74c,_0x2f5e88){if(!_0x2f5e88)return!0x1;const _0xa3a2b4=_0x566259['createPositionAfter'](_0x26f74c),_0x2e6e80=_0x566259['createPositionBefore'](_0x2f5e88);return _0xa3a2b4['isTouching'](_0x2e6e80);}function rs(_0xa4b858,_0xce794f,_0x503466){for(;_0x503466['length'];){const _0x4cfc3c=_0x503466['splice'](0x0,0x64);_0xa4b858['change'](()=>{for(const _0x316c26 of _0x4cfc3c)_0x316c26['isInContent']&&_0xce794f['execute'](_0x316c26['id']);});}}class x extends ts{['refresh'](){const _0x3f6eeb=Array['from'](this['_suggestions']['values']())['some'](_0x10835b=>_0x10835b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3f6eeb;}['execute'](){const _0x22ecba=ss(Array['from'](this['_suggestions']['values']()));for(const _0x357151 of _0x22ecba){const _0x1025db=_0x357151['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1025db))return;}rs(this['editor']['model'],this['_command'],_0x22ecba);}constructor(_0x368709,_0x93aaed,_0x15593a){super(_0x368709),this['_command']=_0x93aaed,this['_suggestions']=_0x15593a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x21a859=this['editor']['model']['document']['selection'],_0x121ecd=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xfcefd4,_0x11a112){const _0x14150f=Array['from'](_0xfcefd4['getRanges']()),_0x42b03b=new Set();for(const _0x20e5a8 of _0x11a112)if(_0x20e5a8['isInContent']){for(const _0x4040d7 of _0x14150f)for(const _0x4f819c of _0x20e5a8['getRanges']())(_0x4040d7['isIntersecting'](_0x4f819c)||_0xfcefd4['isCollapsed']&&!_0x20e5a8['isMultiRange']&&_0x20e5a8['next']&&_0x4f819c['end']['isTouching'](_0x4040d7['start']))&&_0x42b03b['add'](_0x20e5a8);}return _0x42b03b;}(_0x21a859,_0x121ecd),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x9b794e=ss(Array['from'](this['_selectedSuggestions']));for(const _0xb0c13e of _0x9b794e){const _0x3e6a90=_0xb0c13e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e6a90))return;}rs(this['editor']['model'],this['_command'],_0x9b794e);}constructor(_0x1d271c,_0x718e6f,_0x24f61f){super(_0x1d271c),this['_command']=_0x718e6f,this['_suggestions']=_0x24f61f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x2533b6(){get['head'](){let _0x215614=this;for(;_0x215614['previous'];)_0x215614=_0x215614['previous'];return _0x215614;}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'](_0x1db13d){this['_markerNames']['add'](_0x1db13d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1f6b40=>this['_model']['markers']['get'](_0x1f6b40))['filter'](_0x2c0767=>_0x2c0767);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c4142=>{for(const _0x39527e of this['getMarkers']())_0x4c4142['removeMarker'](_0x39527e);}),this['_markerNames']['clear']();}['removeMarker'](_0x3680c6){this['_model']['change'](_0x1509fb=>{_0x1509fb['removeMarker'](_0x3680c6);}),this['_markerNames']['delete'](_0x3680c6);}['addRange'](_0x17b2f2){const _0xf8e0c2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xf8e0c2),this['_model']['change'](_0xd0ccc2=>{_0xd0ccc2['addMarker'](_0xf8e0c2,{'range':_0x17b2f2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2d281d){for(const _0x308b52 of this['getRanges']())if(_0x308b52['isIntersecting'](_0x2d281d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5c9f9b=>_0x5c9f9b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50f76e,_0x130bd1)=>[..._0x50f76e,..._0x130bd1['getItems']()],[]);}['getFirstRange'](){var _0x398aee;return(null===(_0x398aee=this['getFirstMarker']())||void 0x0===_0x398aee?void 0x0:_0x398aee['getRange']())||null;}['getContainedElement'](){const _0xa26b16=this['getRanges']();if(0x1!=_0xa26b16['length'])return null;const _0x4d5b2f=_0xa26b16[0x0],_0x2f9d94=_0x4d5b2f['start']['nodeAfter'],_0x57bfc6=_0x4d5b2f['end']['nodeBefore'];return _0x2f9d94 instanceof _0x1fbd42?_0x2f9d94!=_0x57bfc6?null:_0x2f9d94: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 _0x4b88a2=[];let _0x54bab6=this['head'];for(;_0x54bab6;)_0x4b88a2['push'](_0x54bab6),_0x54bab6=_0x54bab6['next'];return _0x4b88a2;}['setAttribute'](_0xa1970f,_0x421546){const _0x50a532=_0x156f41(this['attributes']);_0x52ef0f(_0x50a532,_0xa1970f,_0x421546),_0x32b3e3(_0x50a532,this['attributes'])||(this['attributes']=_0x50a532,this['_onAttributesChange'](_0x50a532));}['removeAttribute'](_0x9bf2fc){const _0x407a56=_0x156f41(this['attributes']);_0xfebb79(_0x407a56,_0x9bf2fc),_0x32b3e3(_0x407a56,this['attributes'])||(this['attributes']=_0x407a56,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 _0x23a7e6()['substr'](0x1,0x5);}constructor(_0x67c3f0,_0x50e95d){super(),this['_isDataLoaded']=!0x1,this['id']=_0x50e95d['id'],this['type']=_0x50e95d['type'],this['subType']=_0x50e95d['subType']||null,this['author']=_0x50e95d['author'],this['creator']=_0x50e95d['creator']||_0x50e95d['author'],this['isExternal']=Boolean(_0x50e95d['attributes']&&_0x50e95d['attributes']['@external']),this['data']=null,this['_model']=_0x67c3f0,this['_onAccept']=_0x50e95d['onAccept'],this['_onDiscard']=_0x50e95d['onDiscard'],this['_onAttributesChange']=_0x50e95d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x50e95d['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x284e7c,_0x1c31f9,_0x3b9688){const t=_0x284e7c['t'];switch(_0x1c31f9){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',_0x3b9688);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3b9688);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3b9688);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3b9688);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3b9688);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',_0x3b9688);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3b9688);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',_0x3b9688);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3b9688);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3b9688);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3b9688);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3b9688);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3b9688);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3b9688);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3b9688);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3b9688);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3b9688);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3b9688);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3b9688);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3b9688);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3b9688);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3b9688);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3b9688);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'},_0x3b9688);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3b9688);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3b9688);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3b9688);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3b9688);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3b9688);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'},_0x3b9688);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3b9688);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3b9688);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3b9688);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3b9688);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'},_0x3b9688);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3b9688);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'},_0x3b9688);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'},_0x3b9688);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3b9688);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'},_0x3b9688);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3b9688);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'},_0x3b9688);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3b9688);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3b9688);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3b9688);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3b9688);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1c31f9;}}class f{['getDescriptions'](_0x42147e){const _0x106373=[],_0x57c7cd=new Set(),_0x57cf99=new Set();for(let _0x8662b2=0x0;_0x8662b2<_0x42147e['length'];_0x8662b2++){const _0x4afc47=_0x42147e[_0x8662b2];if(!_0x4afc47['isInContent'])continue;const _0x451976=this['_handleCustomCallbackDescription'](_0x4afc47);if(_0x451976){if(null!=_0x4afc47['subType']){if(_0x57c7cd['has'](_0x4afc47['subType']))continue;_0x57c7cd['add'](_0x4afc47['subType']);}_0x106373['push'](_0x451976);}else{if('attribute'!=_0x4afc47['type'])'insertion'!=_0x4afc47['type']&&'deletion'!=_0x4afc47['type']||this['_handleInsertRemoveSuggestionDescription'](_0x106373,_0x4afc47,_0x42147e[_0x8662b2+0x1]);else{const _0x4dd54e=_0x4afc47['data']['key'];if(_0x57cf99['has'](_0x4dd54e))continue;_0x57cf99['add'](_0x4afc47['data']['key']),_0x4dd54e==m?this['_handleRenameSuggestionDescription'](_0x106373,_0x4afc47):this['_handleAttributeSuggestionDescription'](_0x106373,_0x4afc47);}}}return this['_resolveDescriptionItems'](_0x106373);}['registerDescriptionCallback'](_0x3d460f){this['_customCallbacks']['push'](_0x3d460f);}['registerElementLabel'](_0x467df4,_0x1af643,_0x1a2989=_0x266552['normal']){'function'==typeof _0x467df4?_0x45b2b3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x467df4,'label':_0x1af643,'priority':_0x1a2989}):this['_itemLabels']['set'](_0x467df4,_0x1af643);}['registerAttributeLabel'](_0x41019e,_0x26d975){this['_attributeLabels']['set'](_0x41019e,_0x26d975);}['getItemLabel'](_0x2847f5,_0x52ecbc=0x1){let _0x1843aa;for(const _0x419be1 of this['_itemLabelsCallbacks'])if(_0x419be1['matchingCallback'](_0x2847f5)){_0x1843aa=_0x419be1['label'];break;}return _0x1843aa||(_0x1843aa=this['_itemLabels']['get'](_0x2847f5['name'])),_0x1843aa?_0x1843aa(_0x52ecbc):0x1!==_0x52ecbc?_0x52ecbc+'\x20'+_0x2847f5['name']+'s':''+_0x2847f5['name'];}['_addDescriptionItems'](_0x3386b1,_0x48c948){const _0x2c76be=_0x48c948['getFirstRange']()['getWalker'](),_0x2659e5='insertion'==_0x48c948['type']?'add':'remove';for(const _0x2d8587 of _0x2c76be){const _0x3a9b39=_0x2d8587['item'],_0x36a5b2=_0x3386b1[_0x3386b1['length']-0x1];if(_0x3a9b39['is']('$textProxy'))_0x36a5b2&&_0x36a5b2['type']['indexOf']('Container')>-0x1&&_0x3386b1['pop'](),_0x36a5b2&&'text'==_0x36a5b2['type']?_0x36a5b2[_0x2659e5]+=_0x3a9b39['data']:_0x3386b1['push']({'type':'text','add':'add'==_0x2659e5?_0x3a9b39['data']:'','remove':'remove'==_0x2659e5?_0x3a9b39['data']:''});else{if(this['_schema']['isObject'](_0x3a9b39)){const _0x3dad90=_0x3a9b39;if(_0x36a5b2&&_0x36a5b2['type']['indexOf']('Container')>-0x1&&_0x3386b1['pop'](),'elementEnd'==_0x2d8587['type'])continue;_0x36a5b2&&_0x36a5b2['type']==_0x2659e5+'Object'&&_0x36a5b2['element']['name']==_0x3dad90['name']?_0x36a5b2['quantity']++:_0x3386b1['push']({'type':_0x2659e5+'Object','element':_0x3dad90,'quantity':0x1}),_0x2c76be['skip'](_0x2bb002=>!('elementEnd'==_0x2bb002['type']&&_0x2bb002['item']==_0x3a9b39));}else{if(this['_schema']['checkChild'](_0x3a9b39,'$text')||_0x3a9b39['is']('element','softBreak')){const _0x29d8c4=_0x3a9b39;if('add'==_0x2659e5&&'elementStart'==_0x2d8587['type']||'remove'==_0x2659e5&&'elementEnd'==_0x2d8587['type'])continue;if(_0x36a5b2&&-0x1==_0x36a5b2['type']['indexOf']('Container')){'text'==_0x36a5b2['type']&&(_0x36a5b2[_0x2659e5]+='\x0a');continue;}let _0x54e26b;if(_0x54e26b='add'==_0x2659e5?_0x29d8c4['nextSibling']&&!this['_schema']['isObject'](_0x29d8c4['nextSibling'])?_0x29d8c4['nextSibling']:null:_0x29d8c4['previousSibling']&&!this['_schema']['isObject'](_0x29d8c4['previousSibling'])?_0x29d8c4['previousSibling']:null,_0x29d8c4['isEmpty']||_0x54e26b&&_0x54e26b['isEmpty']){const _0x18c87b=_0x54e26b&&_0x54e26b['isEmpty']?_0x54e26b:_0x29d8c4;_0x36a5b2&&_0x36a5b2['type']==_0x2659e5+'EmptyContainer'&&_0x36a5b2['element']['name']==_0x18c87b['name']?_0x36a5b2['quantity']++:_0x3386b1['push']({'type':_0x2659e5+'EmptyContainer','element':_0x18c87b,'quantity':0x1});}else _0x3386b1['push']({'type':_0x2659e5+'Container','element':_0x29d8c4});}}}}}['_resolveDescriptionItems'](_0xf99665){const _0x588d1f=this['_locale'],_0xf2b1ae=[],_0x1bec4c=[],_0x5aed53=[];for(const _0x128960 of _0xf99665)switch(_0x128960['type']){case'text':if(_0x128960['add']=_0x128960['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x128960['remove']=_0x128960['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x128960['add']&&''!=_0x128960['remove']){_0xf2b1ae['push']({'type':'replace','content':o(_0x588d1f,'REPLACE_TEXT',['\x22'+_0x128960['remove']+'\x22','\x22'+_0x128960['add']+'\x22'])});continue;}if(null!=_0x128960['add']['match'](/^ +$/)){_0xf2b1ae['push']({'type':'insertion','content':o(_0x588d1f,'*Insert:*\x20%0',o(_0x588d1f,'ELEMENT_SPACE',_0x128960['add']['length']))});continue;}if(null!=_0x128960['remove']['match'](/^ +$/)){_0xf2b1ae['push']({'type':'deletion','content':o(_0x588d1f,'*Remove:*\x20%0',o(_0x588d1f,'ELEMENT_SPACE',_0x128960['remove']['length']))});continue;}if(''!=_0x128960['add']){_0xf2b1ae['push']({'type':'insertion','content':o(_0x588d1f,'*Insert:*\x20%0','\x22'+_0x128960['add']+'\x22')});continue;}_0xf2b1ae['push']({'type':'deletion','content':o(_0x588d1f,'*Remove:*\x20%0','\x22'+_0x128960['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xf2b1ae['push']({'type':'insertion','content':o(_0x588d1f,'*Insert:*\x20%0',this['getItemLabel'](_0x128960['element'],_0x128960['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xf2b1ae['push']({'type':'deletion','content':o(_0x588d1f,'*Remove:*\x20%0',this['getItemLabel'](_0x128960['element'],_0x128960['quantity']))});continue;case'addContainer':_0xf2b1ae['push']({'type':'insertion','content':o(_0x588d1f,'*Split:*\x20%0',this['getItemLabel'](_0x128960['element'],_0x128960['quantity']))});continue;case'removeContainer':_0xf2b1ae['push']({'type':'deletion','content':o(_0x588d1f,'*Merge:*\x20%0',this['getItemLabel'](_0x128960['element'],_0x128960['quantity']))});continue;case'addFormat':_0x1bec4c['push'](_0x128960['key']);continue;case'removeFormat':_0x5aed53['push'](_0x128960['key']);continue;default:_0xf2b1ae['push'](_0x128960);}if(_0x1bec4c['length']){const _0x3ad41b=_0x1bec4c['map'](_0x4aaa47=>this['_attributeLabels']['has'](_0x4aaa47)?this['_attributeLabels']['get'](_0x4aaa47):_0x4aaa47)['join'](',\x20');_0xf2b1ae['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3ad41b)});}if(_0x5aed53['length']){const _0x8e7c6d=_0x5aed53['map'](_0x5f496d=>this['_attributeLabels']['has'](_0x5f496d)?this['_attributeLabels']['get'](_0x5f496d):_0x5f496d)['join'](',\x20');_0xf2b1ae['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x8e7c6d)});}return _0xf2b1ae;}['_handleCustomCallbackDescription'](_0x4caa5c){for(const _0x39295d of this['_customCallbacks']){const _0x4e9309=_0x39295d(_0x4caa5c);if(_0x4e9309&&'type'in _0x4e9309)return _0x4e9309;}}['_handleAttributeSuggestionDescription'](_0x20a967,_0x5b9b41){const _0x50c457=_0x5b9b41['data'],_0x5eea4f=void 0x0===_0x50c457['newValue']?'removeFormat':'addFormat';_0x20a967['push']({'type':_0x5eea4f,'key':_0x50c457['key']});}['_handleRenameSuggestionDescription'](_0x476988,_0x16db90){_0x476988['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x16db90['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8809b8,_0x503f92,_0x2d6d51){if(this['_addDescriptionItems'](_0x8809b8,_0x503f92),_0x2d6d51&&_0x2d6d51['getFirstRange']()&&!_0x503f92['getFirstRange']()['end']['isEqual'](_0x2d6d51['getFirstRange']()['start'])){const _0x23b448=_0x8809b8[_0x8809b8['length']-0x1],_0x338c49='insertion'==_0x503f92['type']?'add':'remove';_0x23b448&&'text'==_0x23b448['type']&&(_0x23b448[_0x338c49]+='\x0a');}}constructor(_0x4223cc,_0x4aaf40){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4223cc,this['_locale']=_0x4aaf40;}}class E extends _0x10cfe7{['afterInit'](){const _0x3cbfeb=this['editor'],_0x3ea9ad=_0x3cbfeb['plugins']['get']('TrackChangesEditing');_0x3cbfeb['commands']['get']('showAIAssistant')&&_0x3ea9ad['enableCommand']('showAIAssistant');}}class V extends _0x10cfe7{['afterInit'](){const _0x1d98cd=this['editor'],_0x1ae2ab=_0x1d98cd['locale'];if(!_0x1d98cd['plugins']['has']('AlignmentEditing'))return;const _0x346007=_0x1d98cd['plugins']['get']('TrackChangesEditing');_0x346007['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x346007['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1ae2ab,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c6d09=this['editor'],_0x568ec6=_0x3c6d09['locale'];_0x3c6d09['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x477ce6=>{if('formatBlock'!=_0x477ce6['type'])return;const {data:_0x53a732}=_0x477ce6;if(_0x53a732&&'alignment'==_0x53a732['commandName']){const _0x349162=_0x53a732['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x568ec6,'*Format:*\x20%0',function(_0x31f530){switch(_0x31f530){case'left':return o(_0x568ec6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x568ec6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x568ec6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x568ec6,'FORMAT_JUSTIFY_TEXT');}}(_0x349162))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x10cfe7{['afterInit'](){const _0xf7517a=this['editor'],_0x2bf35d=_0xf7517a['plugins']['get']('TrackChangesEditing'),_0x13c3ef=_0xf7517a['locale'];for(const _0x130bb9 of ti){if(!_0xf7517a['plugins']['has'](_0x130bb9))continue;const _0x5387e3=_0x130bb9['slice'](0x0,-0x7)['toLowerCase'](),_0x4e5cf1='FORMAT_'+_0x5387e3['toUpperCase']();_0x2bf35d['_enableDefaultAttributesIntegration'](_0x5387e3,[_0x5387e3]),_0x2bf35d['_descriptionFactory']['registerAttributeLabel'](_0x5387e3,o(_0x13c3ef,_0x4e5cf1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x111133=this['editor'],_0x137777=_0x111133['locale'],_0x268273=_0x111133['plugins']['get']('TrackChangesEditing');function _0x5e9e0f(_0x4ac7d9,_0x364597){_0x268273['_descriptionFactory']['registerDescriptionCallback'](_0x57c23c=>{if('formatInline'!=_0x57c23c['type'])return;const {data:_0x1daf01}=_0x57c23c;return _0x1daf01&&_0x1daf01['commandName']===_0x4ac7d9?_0x1daf01['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x137777,'*Format:*\x20%0',_0x364597)}:{'type':'format','content':o(_0x137777,'*Remove\x20format:*\x20%0',_0x364597)}:void 0x0;});}_0x5e9e0f('bold',o(_0x137777,'FORMAT_BOLD')),_0x5e9e0f('italic',o(_0x137777,'FORMAT_ITALIC')),_0x5e9e0f('underline',o(_0x137777,'FORMAT_UNDERLINE')),_0x5e9e0f('code',o(_0x137777,'FORMAT_CODE')),_0x5e9e0f('strikethrough',o(_0x137777,'FORMAT_STRIKETHROUGH')),_0x5e9e0f('subscript',o(_0x137777,'FORMAT_SUBSCRIPT')),_0x5e9e0f('superscript',o(_0x137777,'FORMAT_SUPERSCRIPT'));}}class O extends _0x10cfe7{['afterInit'](){const _0x2f42e0=this['editor'],_0x309666=_0x2f42e0['locale'];if(!_0x2f42e0['plugins']['has']('BlockQuoteEditing'))return;const _0x408f6f=_0x2f42e0['plugins']['get']('TrackChangesEditing'),_0x4ee893=this['editor']['commands']['get']('blockQuote');_0x408f6f['enableCommand']('blockQuote',(_0x563fb8,_0x38d53d={})=>{const _0x1cc952=this['editor']['model']['document']['selection'],_0x5d89d2=_0x38d53d&&void 0x0!==_0x38d53d['forceValue']?_0x38d53d['forceValue']:!_0x4ee893['value'];let _0x1628db=[];if(_0x5d89d2){const _0x1f474d=Array['from'](_0x1cc952['getSelectedBlocks']())['filter'](_0x27de7c=>oo(_0x27de7c)||function(_0x3173c9,_0x23cdf0){const _0x5d84d6=_0x23cdf0['checkChild'](_0x3173c9['parent'],'blockQuote'),_0x1125e3=_0x23cdf0['checkChild'](['$root','blockQuote'],_0x3173c9);return _0x5d84d6&&_0x1125e3;}(_0x27de7c,this['editor']['model']['schema']));_0x1628db=to(_0x1f474d,_0x2f42e0['model']);}else{const _0x325171=Array['from'](_0x1cc952['getSelectedBlocks']())['filter'](_0x16ebe5=>oo(_0x16ebe5));_0x1628db=to(_0x325171,_0x2f42e0['model']);}_0x2f42e0['model']['change'](()=>{for(const _0x1f5c77 of _0x1628db)_0x408f6f['markBlockFormat'](_0x1f5c77,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5d89d2}]});});}),_0x408f6f['_descriptionFactory']['registerDescriptionCallback'](_0x4166c2=>{const {data:_0x3edf30}=_0x4166c2;if(_0x3edf30&&'blockQuote'==_0x3edf30['commandName']){const _0x3adcdd=o(_0x309666,'ELEMENT_BLOCK_QUOTE');return _0x3edf30['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x309666,'*Set\x20format:*\x20%0',_0x3adcdd)}:{'type':'format','content':o(_0x309666,'*Remove\x20format:*\x20%0',_0x3adcdd)};}});}}function oo(_0x1761da){return'blockQuote'==_0x1761da['parent']['name'];}class G extends _0x10cfe7{['afterInit'](){const _0x12cb52=this['editor'];_0x12cb52['plugins']['has']('CaseChange')&&(_0x12cb52['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12cb52['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12cb52['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x10cfe7{['afterInit'](){const _0x42004f=this['editor'];_0x42004f['commands']['get']('ckbox')&&_0x42004f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x10cfe7{['afterInit'](){const _0x248ca4=this['editor'];if(!_0x248ca4['plugins']['has']('CodeBlock'))return;const _0x46d444=_0x248ca4['plugins']['get']('TrackChangesEditing'),_0x23a301=_0x248ca4['locale'],_0x4782a2=_0x248ca4['config']['get']('codeBlock')['languages'],_0x56ad01=_0x248ca4['commands']['get']('codeBlock');_0x46d444['enableCommand']('indentCodeBlock'),_0x46d444['enableCommand']('outdentCodeBlock'),_0x46d444['enableCommand']('codeBlock',(_0x42fc3d,_0x251f0b={})=>{const _0x3ee3cf=_0x248ca4['model'],_0x493a1e=_0x248ca4['model']['document']['selection'],_0x2fc458=_0x251f0b&&void 0x0!==_0x251f0b['forceValue']?_0x251f0b['forceValue']:!_0x56ad01['value'];let _0x350296;_0x251f0b['language']||(_0x251f0b['language']=_0x4782a2[0x0]['language']),_0x350296=_0x2fc458?Array['from'](_0x493a1e['getSelectedBlocks']())['filter'](_0x5ae4a0=>eo(_0x5ae4a0)||function(_0x21a47d,_0x513875){if(_0x21a47d['is']('rootElement')||_0x513875['isLimit'](_0x21a47d))return!0x1;return _0x513875['checkChild'](_0x21a47d['parent'],'codeBlock');}(_0x5ae4a0,_0x3ee3cf['schema'])):Array['from'](_0x493a1e['getSelectedBlocks']())['filter'](_0x1616bd=>eo(_0x1616bd));const _0x240e6d=to(_0x350296,_0x3ee3cf);_0x3ee3cf['change'](()=>{for(const _0x40f102 of _0x240e6d)_0x46d444['markBlockFormat'](_0x40f102,{'commandName':'codeBlock','commandParams':[{..._0x251f0b,'forceValue':_0x2fc458}],'formatGroupId':'blockName'});});}),(_0x46d444['_descriptionFactory']['registerElementLabel']('codeBlock',_0x507106=>o(_0x23a301,'ELEMENT_CODE_BLOCK',_0x507106)),_0x46d444['_descriptionFactory']['registerDescriptionCallback'](_0x55bdf2=>{if('formatBlock'!=_0x55bdf2['type'])return;const _0x2fe1d8=_0x23a301['t'],{data:_0x547128}=_0x55bdf2;if(!_0x547128||'codeBlock'!=_0x547128['commandName'])return;const _0x8595d1=_0x547128['commandParams'][0x0]['language'],_0x12438c=_0x2fe1d8(_0x4782a2['find'](_0x35efd3=>_0x35efd3['language']===_0x8595d1)['label'])['toLowerCase']();return _0x547128['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23a301,'*Set\x20format:*\x20%0',o(_0x23a301,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x12438c+')')}:{'type':'format','content':o(_0x23a301,'*Remove\x20format:*\x20%0',o(_0x23a301,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d127c){return'codeBlock'==_0x3d127c['name'];}class H extends _0x10cfe7{['afterInit'](){const _0x3234c8=this['editor'];if(!_0x3234c8['plugins']['has']('CommentsEditing'))return;_0x3234c8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x86f99f,_0x34c5fb,_0x332fc2){const _0x42e2df=[];for(const _0x388c67 of _0x34c5fb['getItems']())_0x388c67['hasAttribute'](_0x86f99f)&&_0x42e2df['push'](_0x332fc2['createRangeOn'](_0x388c67));return _0x42e2df;}function _e(_0x38b513,_0x17e332,{showActiveMarker:_0x10e384=!0x0}={}){const _0x1dfb44=_0x38b513['plugins']['get']('TrackChangesEditing');return(_0x2abb37,_0x2abb4c,_0xef149)=>{if(!_0xef149['consumable']['test'](_0x2abb4c['markerRange'],_0x2abb37['name']))return;const _0xb343ea=_0x2abb4c['markerRange']['getWalker'](),_0x30f55a=_0x2abb4c['markerRange']['start'],_0x975c8b=_0x38b513['model']['schema'];let _0x4f6d62=null,_0x343fda=null,_0x1a0d62=!0x1,_0x5b8174=!0x1;for(const _0x32ec36 of _0xb343ea){const _0x3edbcb=_0x32ec36['item'];_0x1a0d62=_0x1a0d62||_0x975c8b['isContent'](_0x3edbcb);const _0x33d308=_0xef149['mapper']['toViewElement'](_0x3edbcb);if(_0x33d308&&_0x33d308['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x32ec36['type']&&(_0x975c8b['isBlock'](_0x3edbcb)&&!_0x975c8b['isLimit'](_0x3edbcb)&&(_0x3edbcb['nextSibling']||_0x30f55a['isAtEnd']?_0x4f6d62&&_0x4f6d62['parent']==_0x3edbcb||(_0x4f6d62=_0x3edbcb,_0x5c6816(_0x32ec36['previousPosition']),_0x5b8174=!0x0):_0x343fda=_0x343fda||_0x32ec36['previousPosition']));}function _0x5c6816(_0x1c12dd){const _0x56bf5b=_0xef149['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17e332}),_0x206841=_0xef149['mapper']['toViewPosition'](_0x1c12dd);_0x10e384&&_0x1dfb44['activeMarkers']['includes'](_0x2abb4c['markerName'])&&_0xef149['writer']['addClass']('ck-suggestion-marker--active',_0x56bf5b),_0xef149['writer']['insert'](_0x206841,_0x56bf5b),_0xef149['mapper']['bindElementToMarker'](_0x56bf5b,_0x2abb4c['markerName']);}_0x1a0d62||_0x5b8174||!_0x343fda||_0x5c6816(_0x343fda);};}class q extends _0x10cfe7{static get['requires'](){return[_0x291989];}['init'](){const _0x5ba4b7=this['editor'],_0x1247e0=_0x5ba4b7['plugins']['get']('TrackChangesEditing');_0x1247e0['enableCommand']('delete');const _0x2d6019=_0x5ba4b7['commands']['get']('deleteForward');_0x1247e0['enableCommand']('deleteForward',(_0xa35e35,_0x2d991a={})=>{const _0x267cea=_0x5ba4b7['model']['createSelection'](_0x5ba4b7['model']['document']['selection']);_0x267cea['isCollapsed']&&_0x5ba4b7['model']['modifySelection'](_0x267cea,{'direction':'forward','unit':_0x2d991a['unit']});const _0x2859ab=_0x267cea['getFirstRange'](),_0x5d277d=_0x151eba['fromRange'](_0x2859ab);let _0xf64530;_0xa35e35(_0x2d991a),_0xf64530='$graveyard'==_0x5d277d['root']['rootName']?_0x5ba4b7['model']['createRange'](_0x2859ab['start']):_0x5ba4b7['model']['createRange'](_0x5d277d['start'],_0x5d277d['end']),_0x5d277d['detach'](),_0x5ba4b7['model']['enqueueChange'](_0x2d6019['buffer']['batch'],_0x2b48d3=>{_0x2d6019['buffer']['lock'](),_0x2b48d3['setSelection'](_0x2b48d3['createRange'](_0xf64530['end'])),_0x2d6019['buffer']['unlock']();});}),_0x5ba4b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5ba4b7,'merge'),{'priority':'high'}),_0x5ba4b7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1b9dda,_0x1ff3a3,_0x1ef5a8)=>{_0x1ef5a8['options']['showSuggestionHighlights']&&_e(_0x5ba4b7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1b9dda,_0x1ff3a3,_0x1ef5a8);},{'priority':'high'}),_0x5ba4b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x565b6d,_0xf4dbee,_0x13327b)=>{const _0x3449f7=_0x13327b['mapper']['markerNameToElements'](_0xf4dbee['markerName']);if(_0x3449f7){for(const _0x37def0 of _0x3449f7)_0x37def0['is']('uiElement')&&(_0x13327b['mapper']['unbindElementFromMarkerName'](_0x37def0,_0xf4dbee['markerName']),_0x13327b['writer']['remove'](_0x37def0));}},{'priority':'high'});}}class z extends _0x10cfe7{['afterInit'](){const _0x7a81af=this['editor'];if(!_0x7a81af['plugins']['has']('ListEditing'))return;const _0x8bd970=_0x7a81af['locale'],_0xe23614=_0x7a81af['plugins']['get']('TrackChangesEditing'),_0xbca812=_0x7a81af['plugins']['has']('TodoListEditing'),_0x45e4f=!!_0x7a81af['config']['get']('list.multiBlock');function _0xbfadb9(_0x3df642){return{'type':'format','content':''+o(_0x8bd970,'*Set\x20format:*\x20%0',_0x3df642)};}function _0x49a30c(_0x5530de){return{'type':'format','content':''+o(_0x8bd970,'*Remove\x20format:*\x20%0',_0x5530de)};}_0xe23614['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0xe23614['_enableDefaultAttributesIntegration']('bulletedList'),_0xe23614['_enableDefaultAttributesIntegration']('customNumberedList'),_0xe23614['_enableDefaultAttributesIntegration']('customBulletedList'),_0xe23614['_enableDefaultAttributesIntegration']('indentList'),_0xe23614['_enableDefaultAttributesIntegration']('outdentList'),_0xe23614['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0xe23614['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x45e4f&&(_0xe23614['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xe23614['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0xbca812&&(_0xe23614['_enableDefaultAttributesIntegration']('todoList'),_0xe23614['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0xe23614['_descriptionFactory']['registerDescriptionCallback'](_0x4d7239=>{const {data:_0xd03975}=_0x4d7239;if(_0xd03975&&'todoListChecked'==_0xd03975['key'])return{'type':'format','content':_0xd03975['newValue']?o(_0x8bd970,'*Check\x20item*'):o(_0x8bd970,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5060e9=>{if(_0x5060e9['batch']['isUndo'])return!0x1;let _0xded50f=!0x1;const _0x2f589f=_0xe23614['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4287d7=>'todoListChecked'===_0xe23614['_getAttributeKey'](_0x4287d7));for(const _0x12b6e2 of _0x2f589f){'todo'!=_0x12b6e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xe23614['_findSuggestions'](_0x12b6e2['getFirstRange'](),'attribute')['find'](_0x2b6598=>'listType'===_0xe23614['_getAttributeKey'](_0x2b6598['suggestion']))||(_0x5060e9['removeMarker'](_0x12b6e2['getFirstMarker']()),_0xded50f=!0x0));}return _0xded50f;})),_0xe23614['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x8bd970,'FORMAT_INDENT'));const _0x414fb7={'type':'format','content':''};_0xe23614['_descriptionFactory']['registerDescriptionCallback'](_0x4ed84b=>{const {data:_0x32d5d6}=_0x4ed84b;if(!_0x32d5d6||'listType'!=_0x32d5d6['key'])return;let _0x3968cd=_0x4ed84b['head'];for(;_0x3968cd;){if(_0x3968cd['data']&&(('listStyle'==_0x3968cd['data']['key']||'listMarkerStyle'==_0x3968cd['data']['key'])&&(_0x3968cd['data']['newValue']&&'default'!=_0x3968cd['data']['newValue']||'default'!=_0x3968cd['data']['oldValue']&&!_0x32d5d6['newValue'])||!_0x45e4f&&_0x3968cd['data']['key']==m))return _0x414fb7;_0x3968cd=_0x3968cd['next'];}if(null==_0x32d5d6['newValue'])switch(_0x32d5d6['oldValue']){case'bulleted':return _0x49a30c(o(_0x8bd970,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49a30c(o(_0x8bd970,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49a30c(o(_0x8bd970,'ELEMENT_TODO_LIST'));}switch(_0x32d5d6['newValue']){case'bulleted':return _0xbfadb9(o(_0x8bd970,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xbfadb9(o(_0x8bd970,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xbfadb9(o(_0x8bd970,'ELEMENT_TODO_LIST'));}}),_0xe23614['_descriptionFactory']['registerDescriptionCallback'](_0x3454c4=>{const {data:_0x553638}=_0x3454c4;if(_0x553638&&'listIndent'==_0x553638['key'])return null==_0x553638['newValue']||null==_0x553638['oldValue']&&0x0==_0x553638['newValue']?_0x414fb7:void 0x0;}),_0xe23614['_descriptionFactory']['registerDescriptionCallback'](_0x5b5876=>{if('attribute'!=_0x5b5876['type'])return;const {data:_0x3675be}=_0x5b5876;if(!_0x3675be||'listItemId'!=_0x3675be['key'])return;const _0x378eec=le(_0x5b5876);return _0x378eec?'newValue'==_0x378eec?{'type':'format','content':o(_0x8bd970,'*Merge:*\x20list\x20item')}:'oldValue'==_0x378eec?{'type':'format','content':o(_0x8bd970,'*Split:*\x20list\x20item')}:_0x414fb7:_0x414fb7;}),_0x7a81af['model']['document']['registerPostFixer'](_0x59fd8b=>this['listItemIdFixer'](_0x59fd8b)),_0x7a81af['model']['document']['registerPostFixer'](_0x5d255=>this['noTrackChangesFixer'](_0x5d255)),_0x7a81af['model']['document']['registerPostFixer'](_0x1d3c14=>this['assureChains'](_0x1d3c14)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x564d85){if(_0x564d85['batch']['isUndo']||!_0x564d85['batch']['isLocal'])return!0x1;let _0x11f38f=!0x1;const _0x3623e1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1076d7=>_0x1076d7['data']&&'listItemId'==_0x1076d7['data']['key'])['filter'](_0x130d39=>_0x130d39['data']['newValue']&&_0x130d39['data']['oldValue']);for(const _0x581397 of _0x3623e1)le(_0x581397)||(_0x564d85['removeMarker'](_0x581397['getFirstMarker']()),_0x11f38f=!0x0);return _0x11f38f;}['noTrackChangesFixer'](_0x5ca51c){if(_0x5ca51c['batch']['isUndo']||!_0x5ca51c['batch']['isLocal'])return!0x1;const _0xff5545=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xff5545['trackChangesCommand']['value'])return!0x1;let _0x486f76=!0x1;const _0x5a2505=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x833ccc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xdc5523=>'attribute'==_0xdc5523['type'])['filter'](_0x3cd4ce=>_0x5a2505['includes'](_0x3cd4ce['attributeKey']));if(0x0==_0x833ccc['length'])return _0x486f76;for(const _0x1a8d75 of _0x833ccc){const _0x32fdc0=_0xff5545['_findSuggestions'](_0x1a8d75['range'],'attribute')['filter'](_0x2118d3=>!_0x2118d3['meta']['isNextTo'])['map'](_0x5f5f4d=>_0x5f5f4d['suggestion'])['filter'](_0x1cc71b=>{const _0x48039c=_0xff5545['_getAttributeKey'](_0x1cc71b);return _0x5a2505['includes'](_0x48039c);});if(_0x32fdc0['length']){for(const _0x3230de of _0x32fdc0)_0x5ca51c['removeMarker'](_0x3230de['getFirstMarker']());_0x486f76=!0x0;}}return _0x486f76;}['assureChains'](_0x5a65b0){if(_0x5a65b0['batch']['isUndo']||!_0x5a65b0['batch']['isLocal'])return!0x1;const _0x2ea3d5=this['editor']['plugins']['get']('TrackChangesEditing');let _0x145950=!0x1;const _0x3efac6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1d0c75 of _0x2ea3d5['getSuggestions']({'skipNotAttached':!0x0})){const _0x438828=_0x2ea3d5['_findSuggestions'](_0x1d0c75['getFirstRange'](),'attribute')['map'](_0x1b6c71=>_0x1b6c71['suggestion'])['filter'](_0x1d323c=>_0x1d323c['data']&&_0x3efac6['includes'](_0x1d323c['data']['key']));if(!_0x438828['length'])continue;const _0x5a595b=_0x438828[0x0]['head']['attributes']['groupId'];if(!_0x438828['every'](_0x5d1e98=>_0x5d1e98['attributes']['groupId']===_0x5a595b)){for(const _0xbd12f1 of _0x438828)_0x338ffe(_0xbd12f1,_0x5a595b)&&(_0x145950=!0x0);}}return _0x145950;function _0x8a369c(_0x3a0ea4,_0x8647d8){for(const _0x571151 of _0x2ea3d5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37cc69=>'attribute'==_0x37cc69['type']&&_0x37cc69['attributes']['groupId']==_0x3a0ea4))_0x571151['setAttribute']('groupId',_0x8647d8);}function _0x338ffe(_0x2eeff6,_0xd09203){let _0x24abca=_0x2eeff6['head'],_0x5bec21=!0x1;for(;_0x24abca;)_0x24abca['attributes']['groupId']!=_0xd09203&&(_0x8a369c(_0x24abca['attributes']['groupId'],_0xd09203),_0x24abca['setAttribute']('groupId',_0xd09203),_0x5bec21=!0x0),_0x24abca=_0x24abca['next'];return _0x5bec21;}}['_supportLegacySuggestions'](){const _0x15721a=this['editor'],_0x321eb9=_0x15721a['locale'],_0x1696ee=_0x15721a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1696ee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x58f1db,_0x1db20c){const _0x55b5ad=[];for(let _0x297507 of _0x58f1db)_0x297507['start']['nodeAfter']===_0x297507['end']['parent']&&(_0x297507=_0x15721a['model']['createRange'](_0x15721a['model']['createPositionAt'](_0x297507['start']['nodeAfter'],0x0))),_0x55b5ad['push'](_0x297507);_0x15721a['model']['change'](_0x4a0561=>{const _0x113bd2=_0x15721a['model']['document']['selection'],_0x54e0af=Array['from'](_0x113bd2['getRanges']())['map'](_0x11b541=>_0x151eba['fromRange'](_0x11b541));_0x4a0561['setSelection'](_0x55b5ad),_0x15721a['commands']['get'](_0x1db20c['commandName'])['refresh'](),_0x1db20c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x15721a['execute'](_0x1db20c['commandName'],..._0x1db20c['commandParams']),_0x4a0561['setSelection'](_0x54e0af);for(const _0x7cf6bb of _0x54e0af)_0x7cf6bb['detach']();});}),_0x1696ee['_descriptionFactory']['registerElementLabel'](function(_0x41cb16){const _0x2ec1ba=!_0x15721a['model']['schema']['isObject'](_0x41cb16),_0x52062d=_0x41cb16['previousSibling'],_0x7e3911=_0x41cb16['nextSibling'],_0x2267e6=_0x41cb16['getAttribute']('listItemId'),_0x55e719=!_0x52062d||_0x52062d['getAttribute']('listItemId')!==_0x2267e6,_0x562d54=!_0x7e3911||_0x7e3911['getAttribute']('listItemId')!==_0x2267e6;return _0x2ec1ba&&Boolean(_0x2267e6)&&_0x55e719&&_0x562d54;},_0x3d611f=>o(_0x321eb9,'ELEMENT_LIST_ITEM',_0x3d611f));}['_registerLegacyDescription'](){const _0x518870=this['editor'],_0x4b28ad=_0x518870['locale'];function _0x1e2b6c(_0x54053a){const _0x17fcd6=_0x518870['commands']['get']('bulletedList')['value'],_0x5e1325=_0x518870['commands']['get']('numberedList')['value'];return'numberedList'===_0x54053a?_0x17fcd6:_0x5e1325;}_0x518870['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x453abd){if('formatBlock'!=_0x453abd['type'])return;const {data:_0x2d9adc}=_0x453abd;if(!_0x2d9adc)return;let _0x39603d,_0xbc4937,_0x20ab59,_0x29f85b;switch(_0x2d9adc['commandName']){case'bulletedList':_0x20ab59=_0x2d9adc['commandParams'][0x0]['forceValue'],_0x29f85b=_0x1e2b6c(_0x2d9adc['commandName']),_0x39603d=_0x20ab59?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29f85b&&_0x518870['config']['get']('list.multiBlock')||(_0x39603d='*Change\x20to:*\x20%0'),_0xbc4937={'type':'format','content':o(_0x4b28ad,_0x39603d,o(_0x4b28ad,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x20ab59=_0x2d9adc['commandParams'][0x0]['forceValue'],_0x29f85b=_0x1e2b6c(_0x2d9adc['commandName']),_0x39603d=_0x20ab59?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29f85b&&_0x518870['config']['get']('list.multiBlock')||(_0x39603d='*Change\x20to:*\x20%0'),_0xbc4937={'type':'format','content':o(_0x4b28ad,_0x39603d,o(_0x4b28ad,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39603d='*Indent:*\x20%0',_0xbc4937={'type':'format','content':o(_0x4b28ad,_0x39603d,o(_0x4b28ad,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39603d=function(_0x5377aa){const _0x3e581e=_0x5377aa['getFirstRange']();let _0x401dfd=_0x3e581e['start']['nodeAfter'];for(;_0x401dfd&&_0x3e581e['containsItem'](_0x401dfd);){if(_0x401dfd['getAttribute']('listIndent')>0x0)return!0x1;_0x401dfd=_0x401dfd['nextSibling'];}return!0x0;}(_0x453abd)?o(_0x4b28ad,'*Format:*\x20remove\x20from\x20%0',o(_0x4b28ad,function(_0x103b41){return'ELEMENT_'+_0x103b41['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x453abd))):o(_0x4b28ad,'*Outdent:*\x20%0',o(_0x4b28ad,'ELEMENT_LIST_ITEM')),_0xbc4937={'type':'format','content':_0x39603d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2d9adc['multipleBlocks']&&(_0x39603d='*Merge:*\x20%0',_0xbc4937={'type':'deletion','content':o(_0x4b28ad,_0x39603d,o(_0x4b28ad,'ELEMENT_LIST_ITEM'))});}return _0xbc4937;});}}function le(_0x9d55d8){let _0x1c89c2=_0x9d55d8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1c89c2;){const _0x372488=_0x1c89c2['getAttribute']('listItemId');if(!_0x372488)return!0x1;if(_0x372488==_0x9d55d8['data']['newValue'])return'newValue';if(_0x372488==_0x9d55d8['data']['oldValue'])return'oldValue';_0x1c89c2=_0x1c89c2['previousSibling'];}return!0x1;}class ue extends _0x10cfe7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ab8a3=this['editor']['config']['get']('list.properties'),_0xf632a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ab8a3['styles']&&_0xf632a5['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x1ab8a3['reversed']&&_0xf632a5['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x1ab8a3['startIndex']&&_0xf632a5['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x4a01e0={'type':'format','content':''};_0xf632a5['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5aa5b4=this['editor']['locale'];_0xf632a5['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5aa5b4,'FORMAT_LIST_REVERSED')),_0xf632a5['_descriptionFactory']['registerDescriptionCallback'](_0x56c6c4=>{const {data:_0x83da60}=_0x56c6c4;if(_0x83da60&&'listReversed'==_0x83da60['key'])return null==_0x83da60['newValue']||0x0==_0x83da60['newValue']&&null==_0x83da60['oldValue']?_0x4a01e0:void 0x0;}),_0xf632a5['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5aa5b4,'FORMAT_LIST_START')),_0xf632a5['_descriptionFactory']['registerDescriptionCallback'](_0x4ac5a1=>{const {data:_0x1b80c9}=_0x4ac5a1;if(_0x1b80c9&&'listStart'==_0x1b80c9['key'])return null==_0x1b80c9['newValue']||0x1==_0x1b80c9['newValue']&&null==_0x1b80c9['oldValue']?_0x4a01e0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x950fe9=>{if(_0x950fe9['batch']['isUndo'])return!0x1;let _0x5ea0ee=!0x1;const _0x1fed8e=_0xf632a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27e69f=>{const _0x432723=_0xf632a5['_getAttributeKey'](_0x27e69f);return'listStart'==_0x432723||'listReversed'==_0x432723;});for(const _0x2ab555 of _0x1fed8e){const _0x266035=_0x2ab555['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x266035||'customNumbered'==_0x266035)continue;_0xf632a5['_findSuggestions'](_0x2ab555['getFirstRange'](),'attribute')['find'](_0xb1d52e=>'listType'==_0xf632a5['_getAttributeKey'](_0xb1d52e['suggestion']))||(_0x950fe9['removeMarker'](_0x2ab555['getFirstMarker']()),_0x5ea0ee=!0x0);}return _0x5ea0ee;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51bdb1){const _0x4b16e0=this['editor']['locale'],{data:_0x5a8f0b}=_0x51bdb1,_0x214d5f={'type':'format','content':''};if(!_0x5a8f0b||'listStyle'!=_0x5a8f0b['key'])return;if(!_0x5a8f0b['oldValue'])return'default'==_0x5a8f0b['newValue']?_0x214d5f:{'type':'format','content':''+o(_0x4b16e0,'*Set\x20format:*\x20%0',o(_0x4b16e0,this['_getTranslationKeyForListStyle'](_0x5a8f0b['newValue'])))};if(!_0x5a8f0b['newValue']){if('default'==_0x5a8f0b['oldValue'])return _0x214d5f;let _0x349178=_0x51bdb1['head'];for(;_0x349178;){if(_0x349178['data']&&'listType'==_0x349178['data']['key']&&_0x349178['data']['newValue'])return _0x214d5f;_0x349178=_0x349178['next'];}return{'type':'format','content':''+o(_0x4b16e0,'*Remove\x20format:*\x20%0',o(_0x4b16e0,this['_getTranslationKeyForListStyle'](_0x5a8f0b['oldValue'])))};}if('default'!=_0x5a8f0b['newValue'])return{'type':'format','content':''+o(_0x4b16e0,'*Set\x20format:*\x20%0',o(_0x4b16e0,this['_getTranslationKeyForListStyle'](_0x5a8f0b['newValue'])))};let _0x59da74=_0x51bdb1['head'];for(;_0x59da74;){if(_0x59da74['data']&&'listType'==_0x59da74['data']['key']&&_0x59da74['data']['newValue']&&_0x59da74['data']['oldValue'])return _0x214d5f;_0x59da74=_0x59da74['next'];}return{'type':'format','content':o(_0x4b16e0,'*Set\x20format:*\x20%0',o(_0x4b16e0,'ELEMENT_'+_0x51bdb1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x47ef41=this['editor'],_0x17a1cc=_0x47ef41['locale'];_0x47ef41['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x341b08=>{if('formatBlock'!=_0x341b08['type'])return;const {data:_0x1a80e3}=_0x341b08;if(!_0x1a80e3)return;let _0x559737,_0x126c14;switch(_0x1a80e3['commandName']){case'listStyle':_0x559737='*Change\x20to:*\x20%0',_0x126c14={'type':'format','content':o(_0x17a1cc,_0x559737,o(_0x17a1cc,this['_getTranslationKeyForListStyle'](_0x1a80e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x559737=_0x1a80e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x126c14={'type':'format','content':o(_0x17a1cc,_0x559737)};break;case'listStart':_0x559737='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x126c14={'type':'format','content':o(_0x17a1cc,_0x559737,_0x1a80e3['commandParams'][0x0]['startIndex'])};}return _0x126c14;});}['_getTranslationKeyForListStyle'](_0x41921c){return'ELEMENT_'+function(_0x44e2c4){if(pe['includes'](_0x44e2c4))return'bulleted';if(ye['includes'](_0x44e2c4))return'numbered';return null;}(_0x41921c)['toUpperCase']()+'_LIST_'+_0x41921c['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x10cfe7{static get['requires'](){return[_0x2e2cd6];}['init'](){const _0x30c19f=this['editor'],_0x459da1=_0x30c19f['plugins']['get']('TrackChangesEditing'),_0x557700=_0x30c19f['commands']['get']('enter');_0x459da1['enableCommand']('enter',()=>{_0x30c19f['model']['change'](_0x497f8f=>{const _0x16db95=_0x30c19f['model']['document']['selection'],_0x13c321=_0x16db95['getFirstPosition'](),_0x173a43=_0x151eba['fromRange'](_0x16db95['getFirstRange']());if(_0x557700['enterBlock'](_0x497f8f)){const _0x28097e=_0x30c19f['model']['createPositionAt'](_0x13c321['parent']['nextSibling'],0x0),_0x31f378=_0x497f8f['createRange'](_0x13c321,_0x28097e);_0x459da1['markInsertion'](_0x31f378);}else _0x497f8f['setSelection'](_0x497f8f['createRange'](_0x173a43['end']));_0x173a43['detach'](),_0x557700['fire']('afterExecute',{'writer':_0x497f8f});});}),_0x30c19f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x30c19f,'split'),{'priority':'high'}),_0x30c19f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x186d6e,_0x552466,_0x12707a)=>{const _0x5c6cc6=_0x12707a['mapper']['markerNameToElements'](_0x552466['markerName']);if(_0x5c6cc6){for(const _0x40b242 of _0x5c6cc6)_0x40b242['hasClass']('ck-suggestion-marker-split')&&(_0x12707a['mapper']['unbindElementFromMarkerName'](_0x40b242,_0x552466['markerName']),_0x12707a['writer']['remove'](_0x40b242));}},{'priority':'high'}),_0x30c19f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d2c0b,_0x1f04ed,_0x5ea9eb)=>{_0x5ea9eb['options']['showSuggestionHighlights']&&_e(_0x30c19f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3d2c0b,_0x1f04ed,_0x5ea9eb);},{'priority':'high'});}}class J extends _0x10cfe7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x30d0cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x30d0cc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x30d0cc['enableCommand']('findNext'),_0x30d0cc['enableCommand']('findPrevious'),_0x30d0cc['enableCommand']('replace'),_0x30d0cc['enableCommand']('replaceAll');}['handleFindCommand'](_0x28a28e,_0x4e34fe,_0x416224={}){const _0x5a2b25=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x28a28e(_0x206b6e=>('string'==typeof _0x4e34fe?_0x5a2b25['findByTextCallback'](_0x4e34fe,_0x416224):_0x4e34fe)(_0x206b6e)['filter'](_0x2d2d6b=>!0x1===this['_isInDeletionRange'](_0x2d2d6b,_0x206b6e['item'])),_0x416224);}['_isInDeletionRange'](_0x2f0cb7,_0x6d1ace){const _0xc05004=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6d1ace,_0x2f0cb7['start']),this['editor']['model']['createPositionAt'](_0x6d1ace,_0x2f0cb7['end']));for(const _0x2f5550 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xc05004['getIntersection'](_0x2f5550['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x10cfe7{['afterInit'](){const _0xb799d4=this['editor']['locale'],_0x36ee89=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x41cf6c,commandName:_0x58ba87}of ro)this['editor']['plugins']['has'](_0x41cf6c)&&_0x36ee89['_enableDefaultAttributesIntegration'](_0x58ba87,[_0x58ba87]);_0xb799d4['t'],_0x36ee89['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xb799d4,'FORMAT_FONT_SIZE')),_0x36ee89['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xb799d4,'FORMAT_FONT_FAMILY')),_0x36ee89['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xb799d4,'FORMAT_FONT_COLOR')),_0x36ee89['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xb799d4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb848f5=this['editor'],_0x3c7153=_0xb848f5['locale'];_0xb848f5['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x26ec1b=>{const _0x286d08=_0x3c7153['t'];if('formatInline'!=_0x26ec1b['type'])return;const {data:_0x2f14a8}=_0x26ec1b;if(null!=_0x2f14a8){if('fontSize'==_0x2f14a8['commandName']){const _0x25cf01=_0x2f14a8['commandParams'][0x0]['value'];if(_0x25cf01){const _0x2c83d6=_0x286d08(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x53e072=>_0x53e072['model']==_0x25cf01)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3c7153,'*Set\x20font\x20size:*\x20%0',_0x2c83d6)};}return{'type':'format','content':o(_0x3c7153,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f14a8['commandName']){const _0x48e8d2=_0x2f14a8['commandParams'][0x0]['value'];return _0x48e8d2?{'type':'format','content':o(_0x3c7153,'*Set\x20font\x20family:*\x20%0',_0x48e8d2)}:{'type':'format','content':o(_0x3c7153,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f14a8['commandName']){const _0xedb162=_0x2f14a8['commandParams'][0x0]['value'];if(_0xedb162){const _0x58df49=_0x1d5538(this['editor']['config']['get']('fontColor.colors'))['find'](_0x30ce52=>_0x30ce52['model']==_0xedb162);let _0x2e93d7=_0xedb162,_0x14a40a='';return _0x58df49&&(_0x2e93d7=_0x58df49['label'],_0x14a40a=_0x286d08(_0x2e93d7)['toLowerCase']()),{'type':'format','content':o(_0x3c7153,'*Set\x20font\x20color:*\x20%0',_0x14a40a)['trim'](),'color':{'value':_0xedb162,'title':_0x14a40a||_0x2e93d7}};}return{'type':'format','content':o(_0x3c7153,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f14a8['commandName']){const _0x41f5e6=_0x2f14a8['commandParams'][0x0]['value'];if(_0x41f5e6){const _0x55f9f1=_0x1d5538(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3cdd1d=>_0x3cdd1d['model']==_0x41f5e6);let _0x13a49d=_0x41f5e6,_0x3bc288='';return _0x55f9f1&&(_0x13a49d=_0x55f9f1['label'],_0x3bc288=_0x286d08(_0x13a49d)['toLowerCase']()),{'type':'format','content':o(_0x3c7153,'*Set\x20font\x20background\x20color:*\x20%0',_0x3bc288)['trim'](),'color':{'value':_0x41f5e6,'title':_0x3bc288||_0x13a49d}};}return{'type':'format','content':o(_0x3c7153,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x10cfe7{['afterInit'](){const _0x47739d=this['editor'],_0x1c7cac=_0x47739d['plugins']['get']('TrackChangesEditing'),_0x530c7e=_0x47739d['commands']['get']('copyFormat'),_0x253543=_0x47739d['commands']['get']('pasteFormat');_0x530c7e&&_0x253543&&(_0x1c7cac['_enableDefaultAttributesIntegration']('pasteFormat'),_0x1c7cac['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x41137d=this['editor'],_0x5c5c0e=_0x41137d['locale'];_0x41137d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x52d4f6=>{if('formatBlock'!=_0x52d4f6['type']&&'formatInline'!=_0x52d4f6['type'])return;const {data:_0x5abdf2}=_0x52d4f6;if(_0x5abdf2&&'pasteFormat'===_0x5abdf2['commandName']){const _0x13f45f=[],_0xdba6d5=_0x5abdf2['commandParams'][0x0];for(const [_0x421a49,_0xd565e2]of Object['entries'](_0xdba6d5))_0x13f45f['push'](so(_0x41137d,_0x421a49,_0xd565e2));return _0x13f45f['length']?{'type':'format','content':o(_0x5c5c0e,'*Set\x20format\x20to:*\x20%0',_0x13f45f['join'](',\x20'))}:{'type':'format','content':o(_0x5c5c0e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x573b20,_0x3bdf17,_0x5b8885){const _0x308116=_0x573b20['locale']['t'],_0xa795e2=_0x3bdf17['split'](/(?=[A-Z])/)['join']('\x20'),_0xbb53d2=_0x308116(_0xa795e2['charAt'](0x0)['toUpperCase']()+_0xa795e2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5b8885)return _0xbb53d2;if('fontColor'===_0x3bdf17||'fontBackgroundColor'===_0x3bdf17){const _0x361621=_0x1d5538(_0x573b20['config']['get']('fontColor.colors'))['find'](_0x56a22a=>_0x56a22a['model']==_0x5b8885);return _0xbb53d2+'\x20('+(_0x361621?_0x308116(_0x361621['label'])['toLowerCase']():_0x5b8885)+')';}if('fontSize'===_0x3bdf17&&isNaN(parseFloat(_0x5b8885))){const _0x2b159c=_0x573b20['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x573b20['config']['get']('fontSize.options'))['find'](_0x485760=>_0x485760['model']==_0x5b8885);return _0xbb53d2+'\x20('+(_0x2b159c?_0x308116(_0x2b159c['title'])['toLowerCase']():_0x5b8885)+')';}return _0xbb53d2+'\x20('+_0x5b8885+')';}class Y extends _0x10cfe7{['afterInit'](){const _0x2cba5e=this['editor'];if(!_0x2cba5e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2cba5e['config']['get']('heading.options');const _0x1984a0=_0x2cba5e['locale'],_0x941112=_0x2cba5e['plugins']['get']('TrackChangesEditing');_0x941112['_enableDefaultAttributesIntegration']('heading');for(const _0x49f8fc of this['_headingOptions'])'paragraph'!=_0x49f8fc['model']&&_0x941112['_descriptionFactory']['registerElementLabel'](_0x49f8fc['model'],_0x19bac6=>{const _0x1021d6=this['_getHeadingLevel'](_0x49f8fc['model']);return null!==_0x1021d6?_0x452919(_0x19bac6,_0x1021d6):_0x5752da(_0x19bac6,_0x49f8fc['title']);});function _0x452919(_0x422b69,_0x2fe7b1){return o(_0x1984a0,'ELEMENT_HEADING',[_0x422b69,_0x2fe7b1]);}function _0x5752da(_0x3edbb4,_0x388979){return o(_0x1984a0,'ELEMENT_HEADING_CUSTOM',[_0x3edbb4,_0x388979]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59f14c=this['editor'],_0x2dc1f1=_0x59f14c['locale'];function _0x482d63(_0x340322,_0x3bbc45){return o(_0x2dc1f1,'ELEMENT_HEADING_CUSTOM',[_0x340322,_0x3bbc45]);}_0x59f14c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x289d1e=>{if('formatBlock'!=_0x289d1e['type'])return;const {data:_0x24cb78}=_0x289d1e;if(_0x24cb78&&'heading'==_0x24cb78['commandName']){const _0x2c2f0f=_0x24cb78['commandParams'][0x0]['value'],_0x366905=this['_getHeadingLevel'](_0x2c2f0f);if(null!==_0x366905)return{'type':'format','content':o(_0x2dc1f1,'*Change\x20to:*\x20%0',(_0x4d285d=0x1,_0x585208=_0x366905,o(_0x2dc1f1,'ELEMENT_HEADING',[_0x4d285d,_0x585208])))};const _0x1c1999=this['_headingOptions']['find'](_0x64214a=>_0x64214a['model']===_0x2c2f0f)['title'];return{'type':'format','content':o(_0x2dc1f1,'*Change\x20to:*\x20%0',_0x482d63(0x1,_0x1c1999))};}var _0x4d285d,_0x585208;});}['_getHeadingLevel'](_0x462162){var _0xa6f64b,_0x1e9182;const _0x51ff04=_0x462162['match'](/^heading(\d+)/);if(_0x51ff04)return _0x51ff04[0x1];const _0x51d5d1=null===(_0xa6f64b=this['_headingOptions'])||void 0x0===_0xa6f64b?void 0x0:_0xa6f64b['find'](_0x5206c0=>_0x5206c0['model']==_0x462162);if(_0x51d5d1&&_0x51d5d1['view']){const _0x528385=_0x51d5d1['view'],_0x629772=(null!==(_0x1e9182=_0x528385['name'])&&void 0x0!==_0x1e9182?_0x1e9182:_0x528385)['match'](/^h(\d+)/);if(_0x629772)return _0x629772[0x1];}return null;}}class Z extends _0x10cfe7{['afterInit'](){const _0x36e176=this['editor'];if(!_0x36e176['plugins']['has']('HighlightEditing'))return;const _0x2dbafd=_0x36e176['plugins']['get']('TrackChangesEditing'),_0x29a875=_0x36e176['locale'];_0x2dbafd['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x2dbafd['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29a875,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207db6=this['editor'],_0x4738eb=_0x207db6['locale'];_0x207db6['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x52356d=>{if('formatInline'!=_0x52356d['type'])return;const {data:_0x303028}=_0x52356d;if(_0x303028&&'highlight'==_0x303028['commandName']){const _0x192942=_0x4738eb['t'],_0x2db4fa=_0x303028['commandParams'][0x0]['value'];if(_0x2db4fa){const _0x122a27=_0x207db6['config']['get']('highlight.options')['find'](_0x3bedd3=>_0x3bedd3['model']==_0x2db4fa),_0x698e0b=_0x192942(_0x122a27['title'])['toLowerCase']();return{'type':'format','content':o(_0x4738eb,'*Set\x20highlight:*\x20%0',_0x698e0b),'color':{'value':_0x122a27['color'],'title':_0x122a27['title']}};}return{'type':'format','content':o(_0x4738eb,'*Remove\x20highlight*',o(_0x4738eb,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x10cfe7{['afterInit'](){const _0x24bc81=this['editor'];if(!_0x24bc81['plugins']['has']('HorizontalLineEditing'))return;_0x24bc81['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x60270d=_0x24bc81['plugins']['get']('TrackChangesEditing'),_0x2a037a=_0x24bc81['locale'];_0x60270d['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x3b95ce=>o(_0x2a037a,'ELEMENT_HORIZONTAL_LINE',_0x3b95ce)),_0x24bc81['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2495b2,{writer:_0x545fed,options:_0x7a6b94})=>{if(!_0x7a6b94['showSuggestionHighlights'])return null;const _0x2cd12b=_0x545fed['createContainerElement']('div'),_0x715d12=_0x545fed['createEmptyElement']('hr');return _0x545fed['addClass']('ck-horizontal-line',_0x2cd12b),_0x545fed['insert'](_0x545fed['createPositionAt'](_0x2cd12b,0x0),_0x715d12),_0x2cd12b;},'converterPriority':'high'});}}class et extends _0x10cfe7{['afterInit'](){const _0xdd781d=this['editor'];if(!_0xdd781d['plugins']['has']('HtmlEmbed'))return;const _0x4c1064=_0xdd781d['plugins']['get']('TrackChangesEditing'),_0x381f6c=_0xdd781d['locale'];_0x4c1064['_descriptionFactory']['registerElementLabel']('rawHtml',_0x3946d9=>o(_0x381f6c,'ELEMENT_HTML_EMBED',_0x3946d9)),_0x4c1064['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0x4c1064['_descriptionFactory']['registerDescriptionCallback'](_0x2a00ce=>{if('attribute'!=_0x2a00ce['type'])return;const {data:_0x33cb78}=_0x2a00ce;if(_0x33cb78&&'value'==_0x33cb78['key']&&_0x2a00ce['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2c6768=o(_0x381f6c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x381f6c,'*Change\x20%0\x20content*',_0x2c6768)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5248eb=this['editor'],_0x453785=_0x5248eb['locale'];_0x5248eb['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x3255f2=>{if('formatBlock'!=_0x3255f2['type'])return;const {data:_0x5b22b0}=_0x3255f2;if(_0x5b22b0&&'htmlEmbed'==_0x5b22b0['commandName']){const _0x54d5e7=o(_0x453785,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x453785,'*Change\x20%0\x20content*',_0x54d5e7)};}});}}class it extends _0x10cfe7{['afterInit'](){const _0x2fa9ae=this['editor'];if(!_0x2fa9ae['plugins']['has']('ImageEditing'))return;const _0x517f48=_0x2fa9ae['plugins']['get']('TrackChangesEditing'),_0x4f3f24=_0x2fa9ae['plugins']['get']('ImageUtils'),_0x2b1fcc=_0x2fa9ae['locale'];_0x517f48['enableCommand']('insertImage'),_0x517f48['_descriptionFactory']['registerElementLabel']('imageBlock',_0x1506aa=>o(_0x2b1fcc,'ELEMENT_IMAGE',_0x1506aa)),_0x517f48['_descriptionFactory']['registerElementLabel']('imageInline',_0x56813c=>o(_0x2b1fcc,'ELEMENT_INLINE_IMAGE',_0x56813c)),_0x517f48['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2b1fcc,'ELEMENT_CAPTION')),_0x2fa9ae['plugins']['has']('ImageUploadEditing')&&_0x517f48['enableCommand']('uploadImage'),_0x2fa9ae['plugins']['has']('ImageBlockEditing')&&_0x2fa9ae['plugins']['has']('ImageInlineEditing')&&(_0x517f48['enableCommand']('imageTypeInline',(_0x419da0,_0x159cb9)=>{const _0x14606c=_0x4f3f24['getClosestSelectedImageElement'](_0x2fa9ae['model']['document']['selection']);_0x2fa9ae['model']['change'](()=>{_0x517f48['markBlockFormat'](_0x14606c,{'commandName':'imageTypeInline','commandParams':[_0x159cb9]},[],'convertBlockImageToInline');});}),_0x517f48['enableCommand']('imageTypeBlock',(_0x12ee2c,_0x48babe)=>{_0x2fa9ae['model']['change'](_0x429647=>{let _0xb37ec6=_0x4f3f24['getClosestSelectedImageElement'](_0x2fa9ae['model']['document']['selection']),_0x45e270=_0x429647['createRangeOn'](_0xb37ec6);const _0x4e1b68=_0x201a6b['fromPosition'](_0x45e270['start'],'toPrevious'),_0x2e2c60=_0x201a6b['fromPosition'](_0x45e270['end'],'toNext');_0x517f48['forceDefaultExecution'](()=>_0x12ee2c(_0x48babe)),_0xb37ec6=_0x4f3f24['getClosestSelectedImageElement'](_0x2fa9ae['model']['document']['selection']),_0x45e270=_0x429647['createRangeOn'](_0xb37ec6);const _0x3a5f6e=_0x429647['createRange'](_0x4e1b68,_0x2e2c60);_0x4e1b68['detach'](),_0x2e2c60['detach'](),_0x517f48['markBlockFormat'](_0xb37ec6,{'commandName':'imageTypeInline','commandParams':[_0x48babe]},[],'convertInlineImageToBlock'),_0x3a5f6e['start']['isBefore'](_0x45e270['start'])&&_0x517f48['markInsertion'](_0x429647['createRange'](_0x3a5f6e['start'],_0x45e270['start']),'convertInlineImageToBlock'),_0x45e270['end']['isBefore'](_0x3a5f6e['end'])&&_0x517f48['markInsertion'](_0x429647['createRange'](_0x45e270['end'],_0x3a5f6e['end']),'convertInlineImageToBlock');});}),_0x517f48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x517f48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x517f48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x517f48['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x517f48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x517f48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x48e269])=>{const _0xc486e6=_0x517f48['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xf165ce=_0x48e269['start'],_0x2331be=_0x48e269['end'];const _0x16f30b=_0x2fa9ae['model']['schema']['getNearestSelectionRange'](_0xf165ce,'backward'),_0x1aaa27=_0x2fa9ae['model']['schema']['getNearestSelectionRange'](_0x2331be,'forward');_0x16f30b['isCollapsed']&&(_0xf165ce=_0x16f30b['start']),_0x1aaa27['isCollapsed']&&(_0x2331be=_0x1aaa27['end']),_0xc486e6([_0x2fa9ae['model']['createRange'](_0xf165ce,_0x2331be)]);}),_0x517f48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x27e431),_0x517f48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x27e431)),_0x2fa9ae['plugins']['has']('ImageCaptionEditing')&&(_0x517f48['enableCommand']('toggleImageCaption',(_0x1fe0da,_0x2b1f3d)=>{const _0x27f9f3=_0x2fa9ae['plugins']['get']('ImageCaptionUtils');let _0x1caf9b=_0x4f3f24['getClosestSelectedImageElement'](_0x2fa9ae['model']['document']['selection']),_0x3bf74f=_0x27f9f3['getCaptionFromImageModelElement'](_0x1caf9b);_0x2fa9ae['model']['change'](()=>{if(_0x3bf74f)return void _0x517f48['markDeletion'](_0x2fa9ae['model']['createRangeOn'](_0x3bf74f));const _0x5d1bef=_0x4f3f24['isBlockImage'](_0x1caf9b);_0x1fe0da(_0x2b1f3d),_0x1caf9b=_0x4f3f24['getClosestSelectedImageElement'](_0x2fa9ae['model']['document']['selection']),_0x3bf74f=_0x27f9f3['getCaptionFromImageModelElement'](_0x1caf9b),_0x517f48['markInsertion'](_0x2fa9ae['model']['createRangeOn'](_0x3bf74f),_0x5d1bef?null:'imageCaption');});}),_0x517f48['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x27e431));const _0x125f5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46f56b(_0x4760eb,_0x37c8fc){const _0xa07230=_0x125f5d['findIndex'](({type:_0x4479d4,subType:_0x59ab18})=>_0x4760eb['type']==_0x4479d4&&_0x4760eb['subType']==_0x59ab18),_0x43c8ec=_0x125f5d['findIndex'](({type:_0x11e154,subType:_0x2d415a})=>_0x37c8fc['type']==_0x11e154&&_0x37c8fc['subType']==_0x2d415a);if(_0xa07230<0x0||_0x43c8ec<0x0)return!0x1;const _0x1eb737=_0x4760eb['getFirstRange'](),_0x128a4b=_0x37c8fc['getFirstRange']();if((0x0==_0xa07230||0x1==_0xa07230)&&0x2==_0x43c8ec&&_0x1eb737['isIntersecting'](_0x128a4b))return!0x0;if(0x2==_0xa07230&&0x3==_0x43c8ec){const _0x3a507c=_0x517f48['_findSuggestions'](_0x1eb737,'insertion')['filter'](({suggestion:_0x4f7715,meta:_0x4ed150})=>_0x4ed150['isOwn']&&'convertInlineImageToBlock'==_0x4f7715['subType']);if(_0x3a507c['length']>0x1&&_0x128a4b['end']['isEqual'](_0x1eb737['start']))return!0x0;if(0x1==_0x3a507c['length']&&(_0x1eb737['start']['isEqual'](_0x128a4b['end'])||_0x1eb737['end']['isEqual'](_0x128a4b['start'])))return!0x0;}if(0x3==_0xa07230&&0x3==_0x43c8ec&&_0x1eb737['start']['isBefore'](_0x128a4b['start'])){const _0x153260=_0x1eb737['end']['nodeAfter'],_0x11d544=_0x128a4b['start']['nodeBefore'];return _0x4f3f24['isBlockImage'](_0x153260)&&_0x153260===_0x11d544;}return!0x1;}function _0x27e431(_0x4984cd,_0x5cdaf8){return _0x46f56b(_0x4984cd,_0x5cdaf8)?[_0x4984cd,_0x5cdaf8]:_0x46f56b(_0x5cdaf8,_0x4984cd)?[_0x5cdaf8,_0x4984cd]:null;}_0x2fa9ae['plugins']['has']('ImageResize')&&(_0x517f48['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x517f48['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2b1fcc,'FORMAT_IMAGE_SIZE'))),_0x2fa9ae['plugins']['has']('ImageTextAlternativeEditing')&&_0x517f48['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x517f48['_descriptionFactory']['registerDescriptionCallback'](_0x5ef6df=>{if(!!_0x125f5d['find'](({type:_0x1859cb,subType:_0x21d1fd})=>_0x5ef6df['type']==_0x1859cb&&_0x5ef6df['subType']==_0x21d1fd))return _0x5ef6df['previous']?{}:void 0x0;}),_0x517f48['_descriptionFactory']['registerDescriptionCallback'](_0x2ee630=>{if('insertion'==_0x2ee630['type']||'deletion'==_0x2ee630['type']){const _0xc4538e=_0x2ee630['getContainedElement']();if(_0xc4538e&&_0xc4538e['is']('element','caption'))return{'type':'insertion'==_0x2ee630['type']?'addObject':'removeObject','element':_0xc4538e,'quantity':0x1};}}),_0x517f48['_descriptionFactory']['registerDescriptionCallback'](_0x32c657=>'formatBlock'==_0x32c657['type']&&'convertInlineImageToBlock'==_0x32c657['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x32c657['type']&&'convertBlockImageToInline'==_0x32c657['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x517f48['_descriptionFactory']['registerDescriptionCallback'](_0x1c3336=>{if('attribute'!=_0x1c3336['type'])return;const {data:_0x828a3a}=_0x1c3336;if(!_0x828a3a||'alt'!=_0x828a3a['key'])return;const _0x2f9d37=_0x828a3a['newValue'];return _0x2f9d37?{'type':'format','content':o(_0x2b1fcc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f9d37+'\x22')}:{'type':'format','content':o(_0x2b1fcc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52b157=this['editor'],_0x3e9ec7=_0x52b157['locale'];_0x52b157['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x12ef7e=>{if('formatBlock'!=_0x12ef7e['type']&&'formatInline'!=_0x12ef7e['type'])return;const {data:_0x46d487}=_0x12ef7e;if(_0x46d487){if('imageTextAlternative'==_0x46d487['commandName']){const _0x2c64ad=_0x46d487['commandParams'][0x0]['newValue'];return _0x2c64ad?{'type':'format','content':o(_0x3e9ec7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c64ad+'\x22')}:{'type':'format','content':o(_0x3e9ec7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x46d487['commandName']){const _0x5ec148=_0x46d487['commandParams'][0x0]['width'];return _0x5ec148?{'type':'format','content':o(_0x3e9ec7,'*Set\x20image\x20width:*\x20%0',_0x5ec148)}:{'type':'format','content':o(_0x3e9ec7,'*Reset\x20image\x20width*')};}}});}}class st extends _0x10cfe7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x120392=this['editor']['locale'],_0x11a3aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x11a3aa['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x11a3aa['_descriptionFactory']['registerDescriptionCallback'](_0x8b69db=>{if('attribute'!=_0x8b69db['type'])return;const {data:_0x239605}=_0x8b69db;return _0x239605&&'src'==_0x239605['key']?_0x239605['newValue']&&_0x239605['oldValue']?{'type':'format','content':o(_0x120392,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2dd1ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x2dd1ae['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2dd1ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2dd1ae['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2dd1ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30abb0=this['editor'],_0x301006=_0x30abb0['locale'];_0x30abb0['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x22645e=>{if('formatBlock'!=_0x22645e['type']&&'formatInline'!=_0x22645e['type'])return;const {data:_0x8b1bf0}=_0x22645e;if(!_0x8b1bf0||'replaceImageSource'!=_0x8b1bf0['commandName'])return;return{'type':'format','content':o(_0x301006,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x10cfe7{['afterInit'](){const _0x18c17a=this['editor'];if(!_0x18c17a['plugins']['has']('ImageStyleEditing'))return;const _0x176af0=_0x18c17a['plugins']['get']('TrackChangesEditing'),_0x327f05=_0x18c17a['plugins']['get']('ImageUtils'),_0x210d4a={};_0x176af0['enableCommand']('imageStyle',(_0x7cf87c,_0x38711f)=>{const _0x4f02bf=_0x18c17a['plugins']['get']('Users')['me'],_0x423ecb=_0x18c17a['commands']['get']('imageStyle');let _0x4d0492=_0x327f05['getClosestSelectedImageElement'](_0x18c17a['model']['document']['selection']),_0x440226=_0x18c17a['model']['createRangeOn'](_0x4d0492),_0x486452=_0x423ecb['value'];if(_0x486452==_0x38711f['value'])return;const _0x2e135d={'commandName':'imageStyle','commandParams':[_0x38711f],'formatGroupId':_0x23a7e6()};_0x18c17a['model']['change'](()=>{if(_0x176af0['getSuggestions']()['filter'](_0x4b639e=>_0x4b639e['isInContent']&&_0x4f02bf==_0x4b639e['author']&&('formatBlock'==_0x4b639e['type']||'formatInline'==_0x4b639e['type'])&&('imageStylePreApply'==_0x4b639e['subType']||'imageStylePostApply'==_0x4b639e['subType'])&&_0x4b639e['getFirstRange']()['isEqual'](_0x440226))['forEach'](_0x21c8df=>_0x176af0['discardSuggestion'](_0x21c8df['head'])),_0x4d0492=_0x327f05['getClosestSelectedImageElement'](_0x18c17a['model']['document']['selection']),_0x440226=_0x18c17a['model']['createRangeOn'](_0x4d0492),_0x423ecb['refresh'](),_0x18c17a['commands']['get']('imageTypeInline')['refresh'](),_0x18c17a['commands']['get']('imageTypeBlock')['refresh'](),_0x486452=_0x423ecb['value'],_0x486452!=_0x38711f['value'])return _0x327f05['isInlineImage'](_0x4d0492)&&_0x423ecb['shouldConvertImageType'](_0x38711f['value'],_0x4d0492)?(_0x7cf87c({..._0x38711f,'setImageSizes':!0x1}),_0x4d0492=_0x327f05['getClosestSelectedImageElement'](_0x18c17a['model']['document']['selection']),void _0x176af0['markBlockFormat'](_0x4d0492,{..._0x2e135d,'commandReversedParams':[{'value':_0x486452||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x327f05['isBlockImage'](_0x4d0492)?_0x176af0['markBlockFormat'](_0x4d0492,_0x2e135d,[],'imageStylePostApply'):_0x176af0['markInlineFormat'](_0x440226,_0x2e135d,'imageStylePostApply'));});});for(const _0x34f8cc of _0x18c17a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x210d4a[_0x34f8cc['name']]=_0x34f8cc['title']['toLowerCase']();_0x176af0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x176af0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x176af0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x176af0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2fe67e])=>{_0x327f05['setImageNaturalSizeAttributes'](_0x2fe67e['getContainedElement']());}),_0x176af0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1ce410,_0x34ca34)=>{_0x176af0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ce410,{'commandName':_0x34ca34['commandName'],'commandParams':_0x34ca34['commandReversedParams']});}),_0x176af0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x15c3d7,_0x252f58){if(_0x115ee6(_0x15c3d7,_0x252f58))return[_0x15c3d7,_0x252f58];if(_0x115ee6(_0x252f58,_0x15c3d7))return[_0x252f58,_0x15c3d7];return null;});const _0x30aff2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x115ee6(_0xcc53e1,_0x19d198){const _0x371656=_0x30aff2['findIndex'](({type:_0x13eb11,subType:_0x5a7e30})=>_0xcc53e1['type']==_0x13eb11&&_0xcc53e1['subType']==_0x5a7e30),_0x47f7bf=_0x30aff2['findIndex'](({type:_0x267bbe,subType:_0x4d2341})=>_0x19d198['type']==_0x267bbe&&_0x19d198['subType']==_0x4d2341);if(_0x371656<0x0||_0x47f7bf<0x0)return!0x1;const _0x21bb47=_0xcc53e1['getFirstRange'](),_0x4cb9be=_0x19d198['getFirstRange']();if((0x0==_0x371656||0x1==_0x371656)&&0x2==_0x47f7bf&&_0x21bb47['isIntersecting'](_0x4cb9be))return!0x0;if(0x2==_0x371656&&0x3==_0x47f7bf){const _0x52c5e3=_0x176af0['_findSuggestions'](_0x21bb47,'insertion')['filter'](({suggestion:_0x383e30,meta:_0x52af29})=>_0x52af29['isOwn']&&'convertInlineImageToBlock'==_0x383e30['subType']);if(_0x52c5e3['length']>0x1&&_0x4cb9be['end']['isEqual'](_0x21bb47['start']))return!0x0;if(0x1==_0x52c5e3['length']&&(_0x21bb47['start']['isEqual'](_0x4cb9be['end'])||_0x21bb47['end']['isEqual'](_0x4cb9be['start'])))return!0x0;}if(0x3==_0x371656&&0x3==_0x47f7bf&&_0x21bb47['start']['isBefore'](_0x4cb9be['start'])){const _0x5ec3c3=_0x21bb47['end']['nodeAfter'],_0x4621f0=_0x4cb9be['start']['nodeBefore'];return _0x327f05['isBlockImage'](_0x5ec3c3)&&_0x5ec3c3===_0x4621f0;}return!0x1;}_0x18c17a['model']['document']['registerPostFixer'](()=>{let _0x67efda=!0x1;const _0xe3e6fb=Array['from'](_0x18c17a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x540d1b,data:_0x34b77b}of _0xe3e6fb){const {group:_0x3f4e34,type:_0xe47462,subType:_0x58475c,id:_0x2297e2}=_0x176af0['_splitMarkerName'](_0x540d1b);if('suggestion'==_0x3f4e34&&_0x176af0['hasSuggestion'](_0x2297e2)){if('formatBlock'==_0xe47462&&('imageStylePreApply'==_0x58475c||'imageStylePostApply'==_0x58475c)){const _0x486b28=_0x176af0['getSuggestion'](_0x2297e2);if(_0x34b77b['newRange']){const _0x45a994=_0x486b28['getFirstRange']()['getContainedElement']();if(_0x327f05['isBlockImage'](_0x45a994))continue;_0x176af0['discardSuggestion'](_0x486b28),_0x67efda=!0x0;}}if('insertion'==_0xe47462&&'imageCaption'==_0x58475c&&!_0x34b77b['newRange']){const _0x57d2df=_0x176af0['getSuggestion'](_0x2297e2);_0x57d2df['next']&&_0x57d2df['next']['isInContent']&&(_0x176af0['discardSuggestion'](_0x57d2df['next']),_0x67efda=!0x0);}}}return _0x67efda;}),this['_registerLegacyDescription'](_0x210d4a);}['_registerLegacyDescription'](_0x41be86){const _0x4edfa1=this['editor'],_0x236907=_0x4edfa1['locale'];_0x4edfa1['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xf30676=>{if('formatBlock'!=_0xf30676['type']&&'formatInline'!=_0xf30676['type'])return;const {data:_0x552887}=_0xf30676;if(!_0x552887||'imageStyle'!=_0x552887['commandName'])return;const _0x23a73c=_0x552887['commandParams'][0x0]['value'];return _0x2189be('side'===_0x23a73c?o(_0x236907,'FORMAT_SIDE_IMAGE'):_0x41be86[_0x23a73c]||_0x23a73c);function _0x2189be(_0x1efeb4){return{'type':'format','content':o(_0x236907,'*Format:*\x20%0',_0x1efeb4)};}});}}class ot extends _0x10cfe7{['afterInit'](){const _0x3e29e7=this['editor'],_0x31e2b8=_0x3e29e7['commands']['get']('importWord'),_0x1e5022=_0x3e29e7['commands']['get']('trackChanges');_0x31e2b8&&(_0x31e2b8['on']('execute',(_0x21e06f,[,_0x504baa])=>{this['_trackChangesValueDuringImport']=_0x1e5022['value'],_0x504baa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31e2b8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31e2b8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e5022['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e29e7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1b610a,_0x35a93c){const {suggestions:_0x307f6a}=_0x35a93c,_0x4579e4=this['editor']['commands']['get']('trackChanges'),_0x15c1dd=_0x4579e4['value'];this['_trackChangesValueDuringImport']!==_0x15c1dd&&(_0x4579e4['execute'](),this['_trackChangesExecuted']=!0x0),_0x307f6a&&_0x307f6a['forEach'](({id:_0x231907,type:_0x1e08d3,author:_0x1a2ef9,created_at:_0x5aba1b})=>{const _0x2b4759={'id':_0x231907,'type':_0x1e08d3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a2ef9,'createdAt':_0x5aba1b?new Date(_0x5aba1b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2b4759);});}constructor(_0x474f4b){super(_0x474f4b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x10cfe7{['afterInit'](){const _0x29d3a1=this['editor'],_0x3b6c3f=_0x29d3a1['plugins']['get']('TrackChangesEditing');if(_0x29d3a1['plugins']['has']('IndentEditing')&&(_0x3b6c3f['enableCommand']('indent'),_0x3b6c3f['enableCommand']('outdent')),_0x29d3a1['plugins']['has']('IndentBlock')){for(const _0x243b16 of['indentBlock','outdentBlock'])_0x3b6c3f['_enableDefaultAttributesIntegration'](_0x243b16);}const _0x1460c6=_0x29d3a1['locale'];_0x3b6c3f['_registerBlockAttribute']('blockIndent'),_0x3b6c3f['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1460c6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x390d53=this['editor'],_0x2ef084=_0x390d53['locale'],_0x2abbd0=_0x390d53['plugins']['get']('TrackChangesEditing');_0x2abbd0['_descriptionFactory']['registerDescriptionCallback'](_0x19f187=>{if('formatBlock'!=_0x19f187['type'])return;const {data:_0x479f0a}=_0x19f187;if(!_0x479f0a)return;if('indentBlock'!=_0x479f0a['commandName']&&'outdentBlock'!=_0x479f0a['commandName'])return;const _0x622f52=_0x19f187['getItems']()[0x0],_0x2f33df=_0x2abbd0['_descriptionFactory']['getItemLabel'](_0x622f52);return'indentBlock'==_0x479f0a['commandName']?{'type':'format','content':o(_0x2ef084,'*Indent:*\x20%0',_0x2f33df)}:'outdentBlock'==_0x479f0a['commandName']?{'type':'format','content':o(_0x2ef084,'*Outdent:*\x20%0',_0x2f33df)}:void 0x0;});}}class at extends _0x10cfe7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x10cfe7{['afterInit'](){const _0x57f409=this['editor'];if(!_0x57f409['plugins']['has']('LinkEditing'))return;const _0xf66e62=_0x57f409['plugins']['get']('TrackChangesEditing'),_0x323c0d=_0x57f409['commands']['get']('link');_0xf66e62['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x323c0d['manualDecorators']['map'](_0x28a919=>_0x28a919['id'])]),_0xf66e62['_enableDefaultAttributesIntegration']('unlink');for(const _0x20bfa1 of _0x323c0d['manualDecorators'])_0xf66e62['_descriptionFactory']['registerAttributeLabel'](_0x20bfa1['id'],'link\x20('+_0x20bfa1['label']['toLowerCase']()+')');_0xf66e62['_descriptionFactory']['registerDescriptionCallback'](_0x3a80cb=>{if('attribute'!=_0x3a80cb['type'])return;const {data:_0xbc5152}=_0x3a80cb;if(!_0xbc5152||'linkHref'!=_0xbc5152['key'])return;const _0x255ebe=_0xbc5152['newValue'],_0x35abaa=_0x57f409['locale'];return{'type':'format','content':null==_0x255ebe?o(_0x35abaa,'*Remove\x20link*'):o(_0x35abaa,'*Set\x20link:*\x20%0','\x22'+_0x255ebe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2dfa9=this['editor'],_0x506249=_0xe2dfa9['locale'];_0xe2dfa9['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x3ea550=>{if('formatInline'!=_0x3ea550['type'])return;const {data:_0x38b8a6}=_0x3ea550;if(_0x38b8a6){if('link'==_0x38b8a6['commandName']){const _0x5c2841=_0x38b8a6['commandParams'][0x0];return{'type':'format','content':o(_0x506249,'*Set\x20link:*\x20%0','\x22'+_0x5c2841+'\x22')};}return'unlink'==_0x38b8a6['commandName']?{'type':'format','content':o(_0x506249,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x10cfe7{['afterInit'](){const _0x1a7c86=this['editor'],_0x3e098b=_0x1a7c86['locale'];if(!_0x1a7c86['plugins']['has']('LegacyListEditing'))return;const _0x1bf9b0=_0x1a7c86['plugins']['get']('TrackChangesEditing'),_0x275c7b=_0x1a7c86['plugins']['has']('LegacyTodoListEditing');function _0x482603(_0x1c0d94){return()=>{const _0x35575a=_0x1a7c86['model']['document']['selection'],_0x1d6046=_0x1a7c86['commands']['get'](_0x1c0d94);if(_0x1d6046['value'])return void _0x1a7c86['execute']('paragraph',{});const _0x316647=_0x1c0d94['slice'](0x0,-0x4),_0x21373f=function(_0x41c6ae,_0x36e1a6,_0x101af5){let _0xeb4bab=Array['from'](_0x41c6ae)['filter'](_0x464333=>function(_0x20438c,_0x54d333){return _0x54d333['checkChild'](_0x20438c['parent'],'listItem')&&!_0x54d333['isObject'](_0x20438c);}(_0x464333,_0x101af5));_0xeb4bab=_0xeb4bab['filter'](_0x486524=>!_0x486524['is']('element','listItem')||_0x486524['getAttribute']('listType')!=_0x36e1a6);const _0x5aa881=new Set();for(const _0x385706 of _0xeb4bab)_0x385706['is']('element','listItem')?_0x5aa881['add'](me(_0x385706)):_0x5aa881['add'](_0x385706);return Array['from'](_0x5aa881);}(_0x35575a['getSelectedBlocks'](),_0x316647,_0x1a7c86['model']['schema']);_0x1a7c86['model']['change'](()=>{for(const _0x512800 of _0x21373f)_0x1bf9b0['markBlockFormat'](_0x512800,{'commandName':_0x1c0d94,'commandParams':[{'forceValue':!_0x1d6046['value']}],'formatGroupId':'blockName'},fe(_0x512800));});};}function _0x238107(_0x5e88cc){return()=>{const _0x151fe5=function(_0x5f1801){let _0x240d81=Array['from'](_0x5f1801);const _0x286a1e=_0x240d81['findIndex'](_0x33beb1=>'listItem'!=_0x33beb1['name']);return _0x286a1e>-0x1&&(_0x240d81=_0x240d81['slice'](0x0,_0x286a1e)),_0x240d81;}(_0x1a7c86['model']['document']['selection']['getSelectedBlocks']()),_0x1e3cf9=_0x1a7c86['model']['createRange'](_0x1a7c86['model']['createPositionAt'](_0x151fe5[0x0],'before'),_0x1a7c86['model']['createPositionAt'](_0x151fe5[_0x151fe5['length']-0x1],'end'));_0x1a7c86['model']['change'](()=>{_0x1bf9b0['markBlockFormat'](_0x1e3cf9,{'commandName':_0x5e88cc,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16af2c){const _0x193008=new Set();for(const _0x1a2926 of _0x16af2c){let _0x468aa7=_0x1a2926['nextSibling'];for(;_0x468aa7&&_0x468aa7['getAttribute']('listIndent')>_0x1a2926['getAttribute']('listIndent');)_0x193008['add'](_0x468aa7),_0x468aa7=_0x468aa7['nextSibling'];}return Array['from'](_0x193008);}(_0x151fe5));});};}_0x1bf9b0['enableCommand']('numberedList',_0x482603('numberedList')),_0x1bf9b0['enableCommand']('bulletedList',_0x482603('bulletedList')),_0x275c7b&&_0x1bf9b0['enableCommand']('todoList',_0x482603('todoList')),_0x1bf9b0['enableCommand']('indentList',_0x238107('indentList')),_0x1bf9b0['enableCommand']('outdentList',_0x238107('outdentList')),_0x275c7b&&_0x1bf9b0['enableCommand']('checkTodoList',()=>{const _0x1f7b4c=_0x1a7c86['commands']['get']('checkTodoList'),_0x144024=Array['from'](_0x1f7b4c['_selectedElements']);_0x144024['filter'](_0x5dc493=>_0x5dc493['getAttribute']('todoListChecked')!=_0x1f7b4c['value']),_0x1a7c86['model']['change'](()=>{for(const _0x2e1ff5 of _0x144024)_0x1bf9b0['markBlockFormat'](_0x2e1ff5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1f7b4c['value']}]});});}),_0x1bf9b0['_descriptionFactory']['registerElementLabel']('listItem',_0x2148f3=>o(_0x3e098b,'ELEMENT_LIST_ITEM',_0x2148f3)),_0x1bf9b0['_descriptionFactory']['registerDescriptionCallback'](_0x36a460=>{if('formatBlock'!=_0x36a460['type']&&'formatInline'!=_0x36a460['type'])return;const {data:_0x3e5223}=_0x36a460;if(_0x3e5223){if('numberedList'==_0x3e5223['commandName']||'bulletedList'==_0x3e5223['commandName']||'todoList'==_0x3e5223['commandName'])switch(_0x3e5223['commandName']['replace']('List','')){case'bulleted':return _0x3001da(o(_0x3e098b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3001da(o(_0x3e098b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3001da(o(_0x3e098b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3e5223['commandName'])return{'type':'format','content':o(_0x3e098b,'*Indent:*\x20%0',o(_0x3e098b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3e5223['commandName'])return{'type':'format','content':o(_0x3e098b,'*Outdent:*\x20%0',o(_0x3e098b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3e5223['commandName'])return _0x3e5223['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e098b,'*Check\x20item*')}:{'type':'format','content':o(_0x3e098b,'*Uncheck\x20item*')};}function _0x3001da(_0x5a5683){return{'type':'format','content':o(_0x3e098b,'*Change\x20to:*\x20%0',_0x5a5683)};}});}}function me(_0x4c0618){const _0xb251d2=_0x4c0618['getAttribute']('listIndent');if(0x0==_0xb251d2)return _0x4c0618;let _0x1d79fa=_0x4c0618;for(;_0x4c0618['previousSibling']&&_0x4c0618['previousSibling']['is']('element','listItem');){const _0x113f52=_0x4c0618['previousSibling']['getAttribute']('listIndent');if(_0x113f52==_0xb251d2)_0x1d79fa=_0x4c0618['previousSibling'];else{if(_0x113f52<_0xb251d2)break;}_0x4c0618=_0x4c0618['previousSibling'];}return _0x1d79fa;}function fe(_0x41a518){const _0xd68755=[];if(_0x41a518['is']('element','listItem')&&_0x41a518['getAttribute']('listIndent')>0x0){let _0x1c406b=_0x41a518['nextSibling'];for(;_0x1c406b&&'listItem'==_0x1c406b['name']&&_0x1c406b['getAttribute']('listIndent')==_0x41a518['getAttribute']('listIndent');)_0xd68755['push'](_0x1c406b),_0x1c406b=_0x1c406b['nextSibling'];}return _0xd68755;}class K extends _0x10cfe7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x402ae4=this['editor']['config']['get']('list.properties'),_0x137ac4=this['editor']['plugins']['get']('TrackChangesEditing');_0x402ae4['styles']&&_0x137ac4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x402ae4['reversed']&&_0x137ac4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x402ae4['startIndex']&&_0x137ac4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x137ac4['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5e5755,_0x4fdea4={}){const _0x47fc2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5df397=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47fc2c['markMultiRangeBlockFormat'](_0x5df397,{'commandName':'listStyle','commandParams':[{'type':_0x4fdea4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x330e62,_0x39da60={}){const _0x202990=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4544c9=this['_getSuggestionBlocks'](_0x1c3e4b=>_0x1c3e4b['is']('element','listItem')&&'numbered'===_0x1c3e4b['getAttribute']('listType'));if(_0x4544c9['length']<0x1)return;const _0x41e368=_0x4544c9['map'](_0x47cccb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47cccb,'before'),this['editor']['model']['createPositionAt'](_0x47cccb,0x0)));this['editor']['model']['change'](()=>{_0x202990['markMultiRangeBlockFormat'](_0x41e368,{'commandName':'listReversed','commandParams':[{'reversed':_0x39da60['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b06d2,_0xce3e2e={}){const _0x2572ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15f556=this['_getSuggestionBlocks'](_0x41753d=>_0x41753d['is']('element','listItem')&&'numbered'===_0x41753d['getAttribute']('listType'));if(_0x15f556['length']<0x1)return;const _0x530641=_0x15f556['map'](_0x2ec61b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ec61b,'before'),this['editor']['model']['createPositionAt'](_0x2ec61b,0x0)));this['editor']['model']['change'](()=>{_0x2572ee['markMultiRangeBlockFormat'](_0x530641,{'commandName':'listStart','commandParams':[{'startIndex':_0xce3e2e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x59bcbd){if('formatBlock'!=_0x59bcbd['type']&&'formatInline'!=_0x59bcbd['type'])return;const _0x168355=this['editor']['locale'],{data:_0x5208a8}=_0x59bcbd;if(!_0x5208a8)return;let _0x108077,_0x5ae777;switch(_0x5208a8['commandName']){case'listStyle':_0x108077='*Change\x20to:*\x20%0',_0x5ae777={'type':'format','content':o(_0x168355,_0x108077,o(_0x168355,this['_getTranslationKeyForListStyle'](_0x5208a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x108077=_0x5208a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ae777={'type':'format','content':o(_0x168355,_0x108077)};break;case'listStart':_0x108077='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ae777={'type':'format','content':o(_0x168355,_0x108077,_0x5208a8['commandParams'][0x0]['startIndex'])};}return _0x5ae777;}['_getSuggestionBlocksForListStyle'](){var _0x10c3a3,_0x560003,_0x12ef72,_0x2838aa;const _0x35db77=this['editor']['plugins']['get']('LegacyListUtils');let _0xe2583a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x10c3a3=_0xe2583a[0x0])||void 0x0===_0x10c3a3?void 0x0:_0x10c3a3['is']('element','listItem'))&&_0xe2583a['unshift'](..._0x35db77['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x560003=_0xe2583a[_0xe2583a['length']-0x1])||void 0x0===_0x560003?void 0x0:_0x560003['is']('element','listItem'))&&_0xe2583a['push'](..._0x35db77['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe2583a=[...new Set(_0xe2583a)],(null===(_0x2838aa=null===(_0x12ef72=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x12ef72?void 0x0:_0x12ef72['parent'])||void 0x0===_0x2838aa?void 0x0:_0x2838aa['is']('element','listItem'))&&(_0xe2583a=_0xe2583a['filter'](_0x284c1f=>_0x284c1f['is']('element','listItem'))),_0xe2583a;}['_getSuggestionBlocks'](_0x3b45db){const _0x1d207b=this['editor']['plugins']['get']('LegacyListUtils');let _0x20a209=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3b45db)['map'](_0x5e5947=>{const _0x5b170a=this['editor']['model']['createPositionAt'](_0x5e5947,0x0);return[..._0x1d207b['getSiblingNodes'](_0x5b170a,'backward'),..._0x1d207b['getSiblingNodes'](_0x5b170a,'forward')];})['flat']();return _0x20a209=[...new Set(_0x20a209)],_0x20a209;}['_getTranslationKeyForListStyle'](_0x47775c){return'ELEMENT_'+this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47775c)['toUpperCase']()+'_LIST_'+_0x47775c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x10cfe7{['afterInit'](){const _0x19a19c=this['editor'];if(!_0x19a19c['plugins']['has']('MediaEmbedEditing'))return;const _0x3125be=_0x19a19c['plugins']['get']('TrackChangesEditing'),_0x543d7f=_0x19a19c['locale'];_0x3125be['enableCommand']('mediaEmbed'),_0x3125be['_descriptionFactory']['registerElementLabel']('media',_0x23f8d0=>o(_0x543d7f,'ELEMENT_MEDIA',_0x23f8d0)),_0x19a19c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5910fe,{writer:_0x486aed,options:_0x10677b})=>{if(_0x10677b['showSuggestionHighlights'])return _0x486aed['createEmptyElement']('div');},'converterPriority':'high'}),_0x19a19c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x475065,_0x181483,_0x91b066)=>{_0x91b066['options']['showSuggestionHighlights']&&_0x475065['stop']();},{'priority':'high'});}}class gt extends _0x10cfe7{['afterInit'](){const _0x2e25a2=this['editor'];_0x2e25a2['plugins']['has']('MentionEditing')&&_0x2e25a2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x10cfe7{['afterInit'](){const _0x567c23=this['editor'],_0x1306fc=_0x567c23['plugins']['get']('TrackChangesEditing');_0x567c23['plugins']['has']('MultiLevelList')&&(_0x1306fc['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0x1306fc['_descriptionFactory']['registerDescriptionCallback'](_0xc1874a=>this['handleDescriptions'](_0xc1874a)));}['handleDescriptions'](_0x7ee2ae){const _0xff145e=this['editor']['locale'],{data:_0x173ca0}=_0x7ee2ae,_0x16fa0e={'type':'format','content':''};if(_0x173ca0&&'listMarkerStyle'==_0x173ca0['key']){if(!_0x173ca0['oldValue'])return{'type':'format','content':o(_0xff145e,'*Set\x20format:*\x20%0',o(_0xff145e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x173ca0['newValue']+')'};if(!_0x173ca0['newValue']){let _0x4c2bbe=_0x7ee2ae['head'];for(;_0x4c2bbe;){if(_0x4c2bbe['data']&&'listType'==_0x4c2bbe['data']['key']&&_0x4c2bbe['data']['newValue'])return _0x16fa0e;_0x4c2bbe=_0x4c2bbe['next'];}return{'type':'format','content':o(_0xff145e,'*Remove\x20format:*\x20%0',o(_0xff145e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x173ca0['oldValue']+')'};}}}}class mt extends _0x10cfe7{['afterInit'](){const _0x48fd12=this['editor'];if(!_0x48fd12['plugins']['has']('PageBreakEditing'))return;_0x48fd12['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4d1857=_0x48fd12['plugins']['get']('TrackChangesEditing'),_0x134635=_0x48fd12['locale'];_0x4d1857['_descriptionFactory']['registerElementLabel']('pageBreak',_0xaa2245=>o(_0x134635,'ELEMENT_PAGE_BREAK',_0xaa2245));}}class dt extends _0x10cfe7{['afterInit'](){const _0x1319d5=this['editor'];if(!_0x1319d5['plugins']['has']('Paragraph'))return;const _0x458e5c=_0x1319d5['locale'],_0x1a47f5=_0x1319d5['plugins']['get']('TrackChangesEditing');_0x1a47f5['_descriptionFactory']['registerElementLabel']('paragraph',_0x58c383=>o(_0x458e5c,'ELEMENT_PARAGRAPH',_0x58c383)),_0x1a47f5['_enableDefaultAttributesIntegration']('paragraph'),_0x1a47f5['enableCommand']('insertParagraph'),_0x1319d5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1319d5),{'priority':'highest'}),_0x1319d5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x359f80,_0x961f4c,_0x2c0b98)=>{_0x2c0b98['options']['showSuggestionHighlights']&&nr(_0x1319d5,{'showActiveMarker':!0x1})(_0x359f80,_0x961f4c,_0x2c0b98);},{'priority':'highest'});const _0x492a9b=_0x1a47f5['_descriptionFactory'];_0x492a9b['registerDescriptionCallback'](_0x5d2e83=>{if('insertion'!==_0x5d2e83['type'])return;const {start:_0x15357c,end:_0x2eec84}=_0x5d2e83['getFirstRange']();if(!_0x15357c['isTouching'](_0x2eec84)||!_0x15357c['nodeAfter'])return;const _0x49e7d5=_0x1319d5['model']['schema'],_0x344c59=_0x15357c['nodeAfter'];return _0x49e7d5['isBlock'](_0x344c59)&&!_0x49e7d5['isLimit'](_0x344c59)&&_0x49e7d5['checkChild'](_0x344c59,'$text')?{'type':'insertion','content':o(_0x458e5c,'*Insert:*\x20%0',_0x492a9b['getItemLabel'](_0x344c59,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e11cf=this['editor'],_0x490a5a=_0x5e11cf['locale'];_0x5e11cf['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x222ba9=>{if('formatBlock'!=_0x222ba9['type'])return;const {data:_0x426610}=_0x222ba9;return _0x426610&&'paragraph'==_0x426610['commandName']?{'type':'format','content':o(_0x490a5a,'*Change\x20to:*\x20%0',o(_0x490a5a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x290a56,{showActiveMarker:_0x46547e=!0x0}={}){return(_0x527a61,_0x3a5dfa,_0x54b6af)=>{const _0x5677fc=_0x290a56['plugins']['get']('TrackChangesEditing'),_0x438a9f=_0x3a5dfa['markerRange']['start'],_0x1e9650=_0x3a5dfa['markerRange']['end'],_0xb54260=_0x290a56['model']['schema'];if(!_0x438a9f['isTouching'](_0x1e9650)||!_0x438a9f['nodeAfter'])return;const _0x565854=_0x438a9f['nodeAfter'];if(_0xb54260['isBlock'](_0x565854)&&!_0xb54260['isLimit'](_0x565854)&&_0xb54260['checkChild'](_0x565854,'$text')){if(!_0x54b6af['consumable']['consume'](_0x3a5dfa['markerRange'],_0x527a61['name']))return;const _0x748648=_0x54b6af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x386b31=_0x54b6af['mapper']['toViewPosition'](_0x1e9650);_0x46547e&&_0x5677fc['activeMarkers']['includes'](_0x3a5dfa['markerName'])&&_0x54b6af['writer']['addClass']('ck-suggestion-marker--active',_0x748648),_0x54b6af['writer']['insert'](_0x386b31,_0x748648),_0x54b6af['mapper']['bindElementToMarker'](_0x748648,_0x3a5dfa['markerName']);}};}class pt extends _0x10cfe7{['afterInit'](){const _0xa0267d=this['editor'];if(!_0xa0267d['plugins']['has']('RemoveFormatEditing'))return;_0xa0267d['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1156b1=this['editor'];_0x1156b1['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x457651=>{if('formatBlock'!=_0x457651['type']&&'formatInline'!=_0x457651['type'])return;const {data:_0x498203}=_0x457651;return _0x498203&&'removeFormat'==_0x498203['commandName']?{'type':'format','content':o(_0x1156b1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x10cfe7{['afterInit'](){const _0x5d13e5=this['editor'];if(!_0x5d13e5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2ff87a=_0x5d13e5['plugins']['get']('TrackChangesEditing');_0x2ff87a['enableCommand']('goToPreviousRestrictedEditingException'),_0x2ff87a['enableCommand']('goToNextRestrictedEditingException');const _0x37326d=_0x5d13e5['plugins']['get']('RestrictedEditingModeEditing');_0x37326d['enableCommand']('trackChanges'),_0x37326d['enableCommand']('acceptSuggestion'),_0x37326d['enableCommand']('discardSuggestion'),_0x37326d['enableCommand']('acceptAllSuggestions'),_0x37326d['enableCommand']('discardAllSuggestions'),_0x37326d['enableCommand']('acceptSelectedSuggestions'),_0x37326d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x10cfe7{static get['requires'](){return[_0x7a509];}['init'](){const _0x5dae56=this['editor'],_0xd9e062=_0x5dae56['plugins']['get']('TrackChangesEditing');_0xd9e062['enableCommand']('shiftEnter'),_0x5dae56['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5dae56),{'priority':'high'}),_0x5dae56['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5dae56),{'priority':'high'}),_0x5dae56['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ee061,_0x2e1fb9,_0x15fb6a)=>{_0x15fb6a['options']['showSuggestionHighlights']&&de(_0x5dae56,{'showActiveMarker':!0x1})(_0x4ee061,_0x2e1fb9,_0x15fb6a);}),_0xd9e062['_descriptionFactory']['registerElementLabel']('softBreak',_0x150488=>o(_0x5dae56['locale'],'ELEMENT_LINE_BREAK',_0x150488));}}function de(_0x3d8a53,{showActiveMarker:_0x55bbbb=!0x0}={}){return(_0x1e299d,_0x54de6a,_0x2cdf54)=>{const _0x3c596a=_0x3d8a53['plugins']['get']('TrackChangesEditing');if(!_0x2cdf54['consumable']['test'](_0x54de6a['markerRange'],_0x1e299d['name']))return;const _0x261bf7=_0x3d8a53['model'];for(const _0x3e2c05 of _0x54de6a['markerRange']['getItems']()){if(!_0x3e2c05['is']('element','softBreak'))continue;const _0x45e154='deletion'==_0x54de6a['markerName']['split'](':')[0x1]?'merge':'split',_0x3ebb98=_0x2cdf54['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45e154}),_0xd71dad=_0x2cdf54['mapper']['toViewPosition'](_0x261bf7['createPositionBefore'](_0x3e2c05));_0x55bbbb&&_0x3c596a['activeMarkers']['includes'](_0x54de6a['markerName'])&&_0x2cdf54['writer']['addClass']('ck-suggestion-marker--active',_0x3ebb98),_0x2cdf54['writer']['insert'](_0xd71dad,_0x3ebb98),_0x2cdf54['mapper']['bindElementToMarker'](_0x3ebb98,_0x54de6a['markerName']);}};}class wt extends _0x10cfe7{['afterInit'](){const _0x5080e3=this['editor'],_0x30a970=_0x5080e3['model'],_0x411a17=_0x5080e3['locale'];if(!_0x5080e3['plugins']['has']('StandardEditingModeEditing'))return;const _0x57d470=_0x5080e3['plugins']['get']('TrackChangesEditing'),_0x65233b='restrictedEditingException',_0x2ded4c=_0x5080e3['commands']['get'](_0x65233b);_0x57d470['enableCommand'](_0x65233b,(_0x341c1a,_0x165110={})=>{const _0x19ffea=_0x30a970['document']['selection'];if(_0x19ffea['isCollapsed'])return void _0x341c1a(_0x165110);const _0x39456a=void 0x0!==_0x165110['forceValue']?_0x165110['forceValue']:!_0x2ded4c['value'];_0x30a970['change'](()=>{const _0x4bc50e=Array['from'](_0x19ffea['getRanges']());for(const _0x256970 of _0x4bc50e){const _0x383e03=_0x39456a?[_0x256970]:io(_0x65233b,_0x256970,_0x30a970);for(const _0x25159b of _0x383e03)_0x57d470['markInlineFormat'](_0x25159b,{'commandName':_0x65233b,'commandParams':[{'forceValue':_0x39456a}]});}});}),_0x57d470['_descriptionFactory']['registerDescriptionCallback'](_0x15fb97=>{if('formatBlock'!=_0x15fb97['type']&&'formatInline'!=_0x15fb97['type'])return;const {data:_0x3d3ebf}=_0x15fb97;return _0x3d3ebf&&_0x3d3ebf['commandName']==_0x65233b?_0x3d3ebf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x411a17,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x411a17,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x10cfe7{['afterInit'](){const _0x59564a=this['editor'];if(!_0x59564a['plugins']['has']('Style')||!_0x59564a['plugins']['has']('DataSchema'))return;const _0x27c61a=_0x59564a['plugins']['get']('TrackChangesEditing'),_0x58db95=_0x59564a['locale'],_0x302510=_0x59564a['config']['get']('style')||{},_0x236535=_0x59564a['plugins']['get']('GeneralHtmlSupport'),_0x1f0bb7=_0x59564a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x59564a['plugins']['get']('DataSchema'),_0x302510['definitions']);_0x27c61a['_enableDefaultAttributesIntegration']('style');const _0x124e6c=new Set();for(const _0x181316 of _0x1f0bb7['block']){const _0xc0544a=_0x236535['getGhsAttributeNameForElement'](_0x181316['element']);_0x124e6c['add'](_0xc0544a);}const _0xfb36cd=new Set();for(const _0x3acaca of _0x1f0bb7['inline']){const _0x647a9d=_0x236535['getGhsAttributeNameForElement'](_0x3acaca['element']);_0xfb36cd['add'](_0x647a9d);for(const _0x182293 of _0x3acaca['ghsAttributes'])_0xfb36cd['add'](_0x182293);}for(const _0x27e435 of _0x124e6c)_0x27c61a['_registerBlockAttribute'](_0x27e435),_0x27c61a['_descriptionFactory']['registerAttributeLabel'](_0x27e435,o(_0x58db95,'FORMAT_STYLE'));for(const _0x5a8780 of _0xfb36cd)_0x27c61a['_registerInlineAttribute'](_0x5a8780),_0x27c61a['_descriptionFactory']['registerAttributeLabel'](_0x5a8780,o(_0x58db95,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x126efd=this['editor'],_0x537cbf=_0x126efd['locale'];_0x126efd['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x308bb0=>{if('formatBlock'!=_0x308bb0['type']&&'formatInline'!=_0x308bb0['type'])return;const {data:_0x3f788c}=_0x308bb0;return _0x3f788c&&'style'===_0x3f788c['commandName']?_0x3f788c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x537cbf,'*Set\x20format:*\x20%0',_0x3f788c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x537cbf,'*Remove\x20format:*\x20%0',_0x3f788c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x10cfe7{['afterInit'](){const _0xc21b7e=this['editor'],_0x1f1cf2=_0xc21b7e['model']['document']['selection'];if(!_0xc21b7e['plugins']['has']('TableEditing'))return;const _0x48c76d=_0xc21b7e['locale'],_0x1f2ed3=_0xc21b7e['plugins']['get']('TrackChangesEditing'),_0x244cd2=_0xc21b7e['plugins']['get']('TableUtils');_0x1f2ed3['_descriptionFactory']['registerElementLabel']('table',_0x143e84=>o(_0x48c76d,'ELEMENT_TABLE',_0x143e84)),this['_setupColumnsRowsFixing'](),_0x1f2ed3['enableCommand']('insertTable'),_0x1f2ed3['enableCommand']('selectTableRow'),_0x1f2ed3['enableCommand']('selectTableColumn');for(const _0x8038d8 of['insertTableRowAbove','insertTableRowBelow']){const _0x3617f8=_0xc21b7e['commands']['get'](_0x8038d8);_0x1f2ed3['enableCommand'](_0x8038d8,_0x879711=>{_0xc21b7e['model']['change'](_0x31c833=>{_0x879711();const _0x5b2b7a='above'===_0x3617f8['order'],_0x421ca4=_0x244cd2['getSelectionAffectedTableCells'](_0x1f1cf2),_0x235dff=_0x244cd2['getRowIndexes'](_0x421ca4),_0x3eb34b=_0x5b2b7a?_0x235dff['first']-0x1:_0x235dff['last']+0x1,_0x2402e2=_0x421ca4[0x0]['findAncestor']('table'),_0x44ee70=_0x244cd2['createTableWalker'](_0x2402e2,{'startRow':_0x3eb34b,'endRow':_0x3eb34b}),_0x3a1d9d=Array['from'](_0x44ee70)['map'](_0x3bcc26=>_0x31c833['createRangeOn'](_0x3bcc26['cell']));_0x1f2ed3['markMultiRangeInsertion'](_0x3a1d9d,'tableRow');});});}for(const _0x2b8002 of['insertTableColumnLeft','insertTableColumnRight']){const _0x35bb66=_0xc21b7e['commands']['get'](_0x2b8002);_0x1f2ed3['enableCommand'](_0x2b8002,_0x4be032=>{_0xc21b7e['model']['change'](_0x1d1f86=>{_0x4be032();const _0x1caac2='left'===_0x35bb66['order'],_0x1b6e43=_0x244cd2['getSelectionAffectedTableCells'](_0x1f1cf2),_0x511cfb=_0x244cd2['getColumnIndexes'](_0x1b6e43),_0x8b8bd7=_0x1caac2?_0x511cfb['first']-0x1:_0x511cfb['last']+0x1,_0x12d3ab=_0x1b6e43[0x0]['findAncestor']('table'),_0x35b2cd=_0x244cd2['createTableWalker'](_0x12d3ab,{'startRow':0x0,'column':_0x8b8bd7,'includeAllSlots':!0x1}),_0x536193=Array['from'](_0x35b2cd)['map'](_0x41cf05=>_0x1d1f86['createRangeOn'](_0x41cf05['cell']));_0x1f2ed3['markMultiRangeInsertion'](_0x536193,'tableColumn');});});}for(const _0x410424 of['removeTableRow','removeTableColumn']){const _0x5709f7=_0x410424['substr'](0xb),_0x1a51c2=_0x5709f7['toLowerCase'](),_0x20c844=_0x1a51c2['substr'](0x0,0x3)+'span',_0x5e7d71='table'+_0x5709f7,_0x47cc4e='min'+_0x5709f7,_0x18aa28='max'+_0x5709f7;_0x1f2ed3['enableCommand'](_0x410424,()=>{_0xc21b7e['model']['change'](_0x5202e9=>{const _0x3fe7fe=_0x244cd2['getSelectionAffectedTableCells'](_0x1f1cf2),_0x4eae2d=_0x3fe7fe[0x0]['findAncestor']('table');let _0x1fff69;if('removeTableRow'==_0x410424){const _0x280cd4=_0x244cd2['getRowIndexes'](_0x3fe7fe);_0x1fff69={'startRow':_0x280cd4['first'],'endRow':_0x280cd4['last'],'includeAllSlots':!0x0};}else{const _0x488baf=_0x244cd2['getColumnIndexes'](_0x3fe7fe);_0x1fff69={'startColumn':_0x488baf['first'],'endColumn':_0x488baf['last'],'includeAllSlots':!0x0};}const _0x3787f9=_0x244cd2['createTableWalker'](_0x4eae2d,_0x1fff69),_0x3c1920=Array['from'](_0x3787f9)['map'](({cell:_0x4f83e6})=>_0x4f83e6),_0x24b8d7=Ee(_0x3c1920['filter'](_0xe3b9f8=>_0xe3b9f8['hasAttribute'](_0x20c844))),_0xf78ffd=Ee(_0x3c1920['filter'](_0x17dd9c=>!_0x17dd9c['hasAttribute'](_0x20c844)))['map'](_0x5b99ae=>_0x5202e9['createRangeOn'](_0x5b99ae)),_0xb4fb64=_0x1f2ed3['markMultiRangeDeletion'](_0xf78ffd,_0x5e7d71);if(_0xb4fb64&&('tableRow'==_0xb4fb64['subType']||'tableColumn'==_0xb4fb64['subType'])){const _0x3c9150=this['_getSuggestionCoords'](_0xb4fb64);for(const _0x29537c of _0x24b8d7){const _0x1ef06e=_0x5202e9['createRangeOn'](_0x29537c),_0x10adda=_0x244cd2['getCellLocation'](_0x29537c),_0x385e53=_0x29537c['getAttribute'](_0x20c844)-0x1,_0x45baf4=_0x3c9150[_0x47cc4e],_0x37b9b7=_0x3c9150[_0x18aa28];_0x45baf4<=_0x10adda[_0x1a51c2]&&_0x10adda[_0x1a51c2]+_0x385e53<=_0x37b9b7&&_0xb4fb64['addRange'](_0x1ef06e);}}});});}function _0x1500fa(_0x19f29b){const _0x3974dd=Array['from'](_0x1f1cf2['getRanges']())['map'](_0x3ce166=>_0x151eba['fromRange'](_0x3ce166));_0xc21b7e['model']['change'](_0x3ffe37=>{const _0x458d41=_0x3ffe37['batch'];_0x19f29b=_0x19f29b['filter'](_0x2abbf6=>'$graveyard'!=_0x2abbf6['root']['rootName']),_0x3ffe37['setSelection'](_0x19f29b),_0xc21b7e['commands']['get']('removeTableRow')['refresh'](),_0xc21b7e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xc21b7e['model']['enqueueChange'](()=>{_0xc21b7e['model']['enqueueChange'](_0x458d41,_0x4a1e97=>{const _0x6fcc2f=_0x3974dd['filter'](_0x56ac9b=>'$graveyard'!=_0x56ac9b['root']['rootName']);_0x6fcc2f['length']>0x0&&_0x4a1e97['setSelection'](_0x6fcc2f);for(const _0xb56d03 of _0x3974dd)_0xb56d03['detach']();});});});}function _0x14eb47(_0x4a46da){_0xc21b7e['model']['change'](_0x48aef6=>{const _0x19f2d1=Array['from'](_0x1f1cf2['getRanges']())['map'](_0x1d0a6c=>_0x151eba['fromRange'](_0x1d0a6c)),_0x395c39=[];for(const _0x36e223 of _0x4a46da)for(const _0x535940 of _0x36e223['getItems']({'shallow':!0x0}))_0x395c39['push'](_0x535940);for(const _0x504d8a of _0x395c39)'$graveyard'!=_0x504d8a['root']['rootName']&&(_0x48aef6['setSelection'](_0x48aef6['createPositionAt'](_0x504d8a,0x0)),_0xc21b7e['commands']['get']('removeTableColumn')['refresh'](),_0xc21b7e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4cb88f=_0x19f2d1['filter'](_0x5a5630=>'$graveyard'!=_0x5a5630['root']['rootName']);_0x4cb88f['length']>0x0&&_0x48aef6['setSelection'](_0x4cb88f);for(const _0x3b3033 of _0x19f2d1)_0x3b3033['detach']();});}function _0x5d926b(_0x3c4f2d,_0x1b3791){return _0x1b3791['every'](_0x233012=>_0x3c4f2d['some'](_0x3cc38d=>_0x3cc38d['end']['isEqual'](_0x233012['start'])||_0x233012['end']['isEqual'](_0x3cc38d['start'])));}function _0x4ed0d6(_0xdb69a4,_0x389770){return _0xdb69a4['some'](_0x1239d4=>_0x389770['some'](_0x1ff804=>_0x1239d4['end']['isTouching'](_0x1ff804['start'])));}_0xc21b7e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a9d23,_0x45768b,_0x49be6b)=>{if(!_0x49be6b['options']['showSuggestionHighlights'])return;const _0x2ce30a=_0x45768b['item'];if(!_0x2ce30a)return;const _0x5d0ece=_0x49be6b['mapper']['toViewElement'](_0x2ce30a);function _0x9c7ba(_0x4adf4e){return Array['isArray'](_0x4adf4e)?_0x4adf4e:[_0x4adf4e];}_0x5d0ece&&'tableCell'===_0x2ce30a['name']&&_0x52644e(_0x5d0ece,_0x49be6b['writer'],(_0x4924c5,_0x4c5279,_0x43cb8b)=>_0x43cb8b['addClass'](_0x9c7ba(_0x4c5279['classes']),_0x4924c5),(_0x37897c,_0x573ce4,_0x2b6594)=>_0x2b6594['removeClass'](_0x9c7ba(_0x573ce4['classes']),_0x37897c));},{'priority':'highest'}),_0x1f2ed3['_descriptionFactory']['registerDescriptionCallback'](_0x8c7a84=>{if('insertion'!=_0x8c7a84['type']&&'deletion'!=_0x8c7a84['type'])return;const _0x520acc=_0x8c7a84['getContainedElement']();if(null!=_0x520acc&&_0x520acc['is']('element','table')){if('insertion'==_0x8c7a84['type']){const _0xd69bc9=_0x8c7a84['getItems']()['filter'](_0x5a910b=>_0x5a910b['is']('$textProxy'))['map'](_0x5bd948=>_0x5bd948['data']);if(_0xd69bc9['length'])return{'type':'insertion','content':o(_0x48c76d,'*Insert:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd69bc9['join']('\x20')+'\x22'))};}if('deletion'==_0x8c7a84['type']){const _0x4620f7=_0x8c7a84['getItems']()['filter'](_0x3e846a=>_0x3e846a['is']('$textProxy'))['map'](_0x2d06ff=>_0x2d06ff['data']);if(_0x4620f7['length'])return{'type':'deletion','content':o(_0x48c76d,'*Remove:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4620f7['join']('\x20')+'\x22'))};}}}),_0x1f2ed3['_descriptionFactory']['registerDescriptionCallback'](_0xad24ae=>{if('tableRow'==_0xad24ae['subType']){const _0x276c5d=_0xad24ae['getItems']()['filter'](_0x3de996=>_0x3de996['is']('$textProxy'))['map'](_0x35f97d=>_0x35f97d['data']),_0xd93977=this['_getSuggestionCoords'](_0xad24ae),_0x21e8f0=_0xd93977['maxRow']-_0xd93977['minRow']+0x1;if('insertion'==_0xad24ae['type'])return _0x276c5d['length']?{'type':'insertion','content':o(_0x48c76d,'*Insert:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x21e8f0,'\x22'+_0x276c5d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48c76d,'*Insert:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_ROW',_0x21e8f0))};if('deletion'==_0xad24ae['type'])return _0x276c5d['length']?{'type':'deletion','content':o(_0x48c76d,'*Remove:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x21e8f0,'\x22'+_0x276c5d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48c76d,'*Remove:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_ROW',_0x21e8f0))};}if('tableColumn'==_0xad24ae['subType']){const _0x5e000a=_0xad24ae['getItems']()['filter'](_0x200e59=>_0x200e59['is']('$textProxy'))['map'](_0x360bf3=>_0x360bf3['data']),_0x4e63b6=this['_getSuggestionCoords'](_0xad24ae),_0x1b5da7=_0x4e63b6['maxColumn']-_0x4e63b6['minColumn']+0x1;if('insertion'==_0xad24ae['type'])return _0x5e000a['length']?{'type':'insertion','content':o(_0x48c76d,'*Insert:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b5da7,'\x22'+_0x5e000a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48c76d,'*Insert:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_COLUMN',_0x1b5da7))};if('deletion'==_0xad24ae['type'])return _0x5e000a['length']?{'type':'deletion','content':o(_0x48c76d,'*Remove:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b5da7,'\x22'+_0x5e000a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48c76d,'*Remove:*\x20%0',o(_0x48c76d,'ELEMENT_TABLE_COLUMN',_0x1b5da7))};}}),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1500fa),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1500fa),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x14eb47),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x14eb47),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d926b),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d926b),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4ed0d6),_0x1f2ed3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4ed0d6);}['_acceptFormatSuggestionCallbackFactory'](){const _0xc54fbd=this['editor'],_0x12da72=_0xc54fbd['model']['document']['selection'];return(_0x5349fd,_0x4d90a6)=>{_0xc54fbd['model']['change'](_0x238507=>{const {commandName:_0x3f48a5,commandParams:_0x1f6fa7}=_0x4d90a6;let _0x245262=_0x5349fd[0x0]['end']['nodeBefore'];_0x1f6fa7&&_0x1f6fa7[0x0]&&!0x1===_0x1f6fa7[0x0]['forceValue']&&(_0x245262=_0x5349fd[0x0]['start']['nodeAfter']);const _0x446eb3=_0x238507['createRangeIn'](_0x245262);if('$graveyard'==_0x446eb3['root']['rootName'])return;const _0x289314=Array['from'](_0x12da72['getRanges']())['map'](_0x436beb=>_0x151eba['fromRange'](_0x436beb));_0x238507['setSelection'](_0x446eb3),_0xc54fbd['commands']['get'](_0x3f48a5)['refresh'](),_0x1f6fa7['push']({'forceDefaultExecution':!0x0}),_0xc54fbd['execute'](_0x3f48a5,..._0x1f6fa7);const _0xc11716=_0x289314['filter'](_0x326de2=>'$graveyard'!=_0x326de2['root']['rootName']);_0xc11716['length']>0x0&&_0x238507['setSelection'](_0xc11716);for(const _0x4cce83 of _0x289314)_0x4cce83['detach']();});};}['_getCoordsForCells'](_0x3ea5bf){const _0x1d6a9e=this['editor']['plugins']['get']('TableUtils');let _0x386c07=Number['MAX_SAFE_INTEGER'],_0x44404d=Number['MIN_SAFE_INTEGER'],_0x323b63=Number['MAX_SAFE_INTEGER'],_0x4b78ec=Number['MIN_SAFE_INTEGER'];for(const _0x41083b of _0x3ea5bf){if('$graveyard'==_0x41083b['root']['rootName'])continue;const {row:_0xc6ef71,column:_0x568009}=_0x1d6a9e['getCellLocation'](_0x41083b),_0x97ca2b=_0x41083b['hasAttribute']('rowspan')?_0x41083b['getAttribute']('rowspan')-0x1:0x0,_0x3f1b33=_0x41083b['hasAttribute']('colspan')?_0x41083b['getAttribute']('colspan')-0x1:0x0;_0x386c07=_0xc6ef71<_0x386c07?_0xc6ef71:_0x386c07,_0x44404d=_0xc6ef71+_0x97ca2b>_0x44404d?_0xc6ef71+_0x97ca2b:_0x44404d,_0x323b63=_0x568009<_0x323b63?_0x568009:_0x323b63,_0x4b78ec=_0x568009+_0x3f1b33>_0x4b78ec?_0x568009+_0x3f1b33:_0x4b78ec;}return{'minRow':_0x386c07,'maxRow':_0x44404d,'minColumn':_0x323b63,'maxColumn':_0x4b78ec};}['_setupColumnsRowsFixing'](){const _0x30a98e=this['editor'],_0x537422=_0x30a98e['plugins']['get']('TrackChangesEditing'),_0x3f4712=_0x30a98e['plugins']['get']('TableUtils');_0x30a98e['model']['document']['on']('change:data',()=>{const _0x4f906d=Array['from'](_0x30a98e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d7702,data:_0x583413}of _0x4f906d){const {group:_0x2635d1,id:_0x2e4492,subType:_0x27c6df}=_0x537422['_splitMarkerName'](_0x2d7702);if('suggestion'!=_0x2635d1)continue;if(null!=_0x583413['oldRange'])continue;const _0x53ccf6=_0x537422['getSuggestion'](_0x2e4492);this['_tablePostFixingSubtypes']['includes'](_0x27c6df)&&this['_tableSuggestions']['add'](_0x53ccf6);}},{'priority':'low'});const _0x52f2bc=(_0x4fea52,_0x5ea935)=>{let _0x163049=!0x1;const _0xc9261a=_0x5ea935['createRangeOn'](_0x4fea52),_0x1373e1=_0x4fea52['findAncestor']('table'),_0x291f44=_0x3f4712['getCellLocation'](_0x4fea52);for(const _0x2ffb68 of this['_tableSuggestions']){const _0x53ccc0=_0x2ffb68['subType'],_0x53633e=_0x53ccc0['startsWith']('tablePaste'),_0x4e3d05=_0x53ccc0['substr'](_0x53633e?0xa:0x5),_0x4e2eda=_0x4e3d05['toLowerCase'](),_0x2bf890=_0x4e2eda['substr'](0x0,0x3)+'span',_0xe4901='min'+_0x4e3d05,_0x3649cf='max'+_0x4e3d05;if(!_0x2ffb68['isInContent'])continue;if(_0x1373e1!=_0x2ffb68['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ffb68['isIntersectingWithRange'](_0xc9261a))continue;const _0x2eee28=_0x4fea52['hasAttribute'](_0x2bf890)?_0x4fea52['getAttribute'](_0x2bf890)-0x1:0x0,_0x6a3d0d=this['_getSuggestionCoords'](_0x2ffb68),_0x24cbcb=_0x6a3d0d[_0xe4901],_0x4ef09f=_0x6a3d0d[_0x3649cf];_0x24cbcb<=_0x291f44[_0x4e2eda]&&_0x291f44[_0x4e2eda]+_0x2eee28<=_0x4ef09f&&(_0x2ffb68['addRange'](_0xc9261a),_0x163049=!0x0);}return _0x163049;};_0x30a98e['model']['document']['registerPostFixer'](_0x3d6074=>{let _0xcc7199=!0x1;for(const _0x321ee6 of _0x30a98e['model']['document']['differ']['getChanges']())if('insert'==_0x321ee6['type']){if('tableRow'==_0x321ee6['name']){for(const _0x3d6451 of _0x321ee6['position']['nodeAfter']['getChildren']())_0xcc7199=_0xcc7199||_0x52f2bc(_0x3d6451,_0x3d6074);}else'tableCell'==_0x321ee6['name']&&(_0xcc7199=_0xcc7199||_0x52f2bc(_0x321ee6['position']['nodeAfter'],_0x3d6074));}return _0xcc7199;});}['_getSuggestionCoords'](_0x1748b4){return this['_getCoordsForCells'](_0x1748b4['getRanges']()['map'](_0x28a4e0=>_0x28a4e0['start']['nodeAfter']));}constructor(_0xe99f5){super(_0xe99f5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x52f0c4){return Array['from'](new Set(_0x52f0c4)['values']());}class St extends _0x10cfe7{static get['requires'](){return[jt];}['afterInit'](){const _0x13162f=this['editor'],_0xfeff66=_0x13162f['model']['document']['selection'],_0x34c8ac=_0x13162f['locale'];if(!_0x13162f['plugins']['has']('TableEditing'))return;const _0x2116a8=_0x13162f['plugins']['get']('TrackChangesEditing'),_0x56ce68=_0x13162f['plugins']['get']('TableUtils'),_0x4a904c=_0x13162f['plugins']['get'](jt);_0x4a904c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2116a8['enableCommand']('mergeTableCells',()=>{const _0x851e13=_0x56ce68['getSelectionAffectedTableCells'](_0x13162f['model']['document']['selection']);_0x13162f['model']['change'](()=>{_0x2116a8['markMultiRangeBlockFormat'](_0x851e13,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13162f['commands']['get']('mergeTableCells')['on']('execute',(_0x4bbc09,_0x5f4bae)=>{_0x13162f['commands']['get']('trackChanges')['value']&&(_0x5f4bae['length']>0x0&&_0x5f4bae[_0x5f4bae['length']-0x1]&&_0x5f4bae[_0x5f4bae['length']-0x1]['forceDefaultExecution']||_0x2116a8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4bbc09['stop']());},{'priority':'highest'});for(const _0x572b26 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1408c2=_0x13162f['commands']['get'](_0x572b26);_0x2116a8['enableCommand'](_0x572b26,()=>{const _0x559a8a=_0x13162f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c5aba=>_0x5c5aba['is']('element','tableCell')),_0x141f6a=_0x1408c2['value'];_0x13162f['model']['change'](()=>{_0x2116a8['markMultiRangeBlockFormat']([_0x559a8a,_0x141f6a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3096d2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x255c6e=_0x13162f['commands']['get'](_0x3096d2);_0x2116a8['enableCommand'](_0x3096d2,()=>{const _0x3063ca=_0x56ce68['getSelectionAffectedTableCells'](_0x13162f['model']['document']['selection'])[0x0],_0x3fbd21=_0x3063ca['findAncestor']('table'),{column:_0x4fa2de,row:_0xc39b10}=_0x56ce68['getCellLocation'](_0x3063ca);let _0x3367f1=[];if('horizontally'==_0x255c6e['direction']){const _0x35b8ab=_0x56ce68['createTableWalker'](_0x3fbd21,{'startRow':_0xc39b10,'endRow':_0xc39b10,'includeAllSlots':!0x0});_0x3367f1=Array['from'](_0x35b8ab)['map'](_0x33dc22=>_0x33dc22['cell']);}else{const _0x2b023d=_0x56ce68['createTableWalker'](_0x3fbd21,{'column':_0x4fa2de,'includeAllSlots':!0x0});_0x3367f1=Array['from'](_0x2b023d)['map'](_0x4c3007=>_0x4c3007['cell']);}_0x13162f['model']['change'](_0xd7661f=>{_0x2116a8['markBlockFormat'](_0xd7661f['createRangeOn'](_0x3063ca),{'commandName':_0x3096d2,'commandParams':[]},_0x3367f1,_0x3096d2);});});}_0x2116a8['_descriptionFactory']['registerDescriptionCallback'](_0x53bb57=>{if('formatBlock'!=_0x53bb57['type']&&'formatInline'!=_0x53bb57['type'])return;const {data:_0x4eb184}=_0x53bb57;return _0x4eb184&&'mergeTableCells'==_0x4eb184['commandName']?{'type':'format','content':o(_0x34c8ac,'*Merge\x20cells*')}:void 0x0;}),_0x2116a8['_descriptionFactory']['registerDescriptionCallback'](_0x5c11af=>{if('formatBlock'!=_0x5c11af['type']&&'formatInline'!=_0x5c11af['type'])return;const {data:_0x55fcf6}=_0x5c11af;return _0x55fcf6?'splitTableCellVertically'==_0x55fcf6['commandName']?{'type':'format','content':o(_0x34c8ac,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55fcf6['commandName']?{'type':'format','content':o(_0x34c8ac,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x8f443c=_0x4a904c['_acceptFormatSuggestionCallbackFactory']();for(const _0x4ef7aa of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2116a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ef7aa,'accept',_0x8f443c);for(const _0x582e4a of['splitTableCellVertically','splitTableCellHorizontally'])_0x2116a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x582e4a,'accept',_0x8f443c);_0x2116a8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x478508=>{_0x13162f['model']['change'](_0x5ae8cd=>{const _0xe53ee6=Array['from'](_0xfeff66['getRanges']())['map'](_0x1f6baa=>_0x151eba['fromRange'](_0x1f6baa));_0x5ae8cd['setSelection'](_0x478508),_0x13162f['commands']['get']('mergeTableCells')['refresh'](),_0x13162f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x57c0d0=_0xe53ee6['filter'](_0x5d377b=>'$graveyard'!=_0x5d377b['root']['rootName']);_0x57c0d0['length']>0x0&&_0x5ae8cd['setSelection'](_0x57c0d0);for(const _0x5a45d0 of _0xe53ee6)_0x5a45d0['detach']();});});for(const _0x2b81d8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1fe24d=_0x13162f['commands']['get'](_0x2b81d8);_0x1fe24d['on']('set:isEnabled',(_0x8d04d7,_0xf72681,_0x16fbb0)=>{if(_0x16fbb0){const _0x4a55d1=_0x13162f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x227db3=>_0x227db3['is']('element','tableCell'));this['_areMergableCells'](_0x1fe24d['value'],_0x4a55d1)||(_0x8d04d7['return']=!0x1,_0x8d04d7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5b595d=this['editor']['commands']['get']('mergeTableCells'),_0x12fdd9=this['editor']['plugins']['get']('TableUtils');if(!_0x5b595d['isEnabled'])return!0x1;const _0x4f8808=_0x12fdd9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x243826 of _0x4f8808)for(const _0x547801 of _0x4f8808)if(_0x243826!=_0x547801&&!this['_areMergableCells'](_0x243826,_0x547801))return!0x1;return!0x0;}['_areMergableCells'](_0x28faae,_0x1d32f1){const _0x2e0673=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43bffd=this['editor']['model']['createRangeOn'](_0x28faae),_0xd5e9f1=this['editor']['model']['createRangeOn'](_0x1d32f1),_0xcbe660=new Set(),_0x1a6db1=new Set();for(const _0x243865 of _0x2e0673['getSuggestions']())if(('insertion'==_0x243865['type']||'deletion'==_0x243865['type']||'mergeTableCells'==_0x243865['subType'])&&_0x243865['isInContent']){for(const _0x1c82ce of _0x243865['getRanges']())_0x1c82ce['containsRange'](_0x43bffd,!0x0)&&_0xcbe660['add'](_0x243865['type']+':'+_0x243865['author']['id']),_0x1c82ce['containsRange'](_0xd5e9f1,!0x0)&&_0x1a6db1['add'](_0x243865['type']+':'+_0x243865['author']['id']);}if(_0xcbe660['size']!=_0x1a6db1['size'])return!0x1;for(const _0x886c3 of _0xcbe660)if(!_0x1a6db1['has'](_0x886c3))return!0x1;return!0x0;}}class At extends _0x10cfe7{static get['requires'](){return[jt];}['afterInit'](){const _0x48103a=this['editor'];if(!_0x48103a['plugins']['has']('TableEditing'))return;const _0x2139f9=_0x48103a['locale'],_0x40b452=_0x48103a['plugins']['get']('TrackChangesEditing');_0x40b452['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x40b452['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x40b452['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2139f9,'FORMAT_HEADER_ROW')),_0x40b452['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2139f9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4173e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaa1d61=this['editor']['plugins']['get']('TableUtils'),_0x36cdee=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3956d0({showActiveMarker:_0x9e6cf3=!0x0,setDataAttribute:_0x36b2ac=!0x0}={}){return(_0x523ea0,_0x50d019,_0x1f0346)=>{const {type:_0x74b3ba,id:_0x39cba8}=_0x4173e5['_splitMarkerName'](_0x50d019['markerName']),_0x2528ab=_0x4173e5['getSuggestion'](_0x39cba8),_0x101d86=_0x2528ab['data'];if('formatBlock'!=_0x2528ab['type']||!_0x101d86||'setTableColumnHeader'!=_0x101d86['commandName'])return;if(_0x50d019['item'])return void _0x523ea0['stop']();if(!_0x1f0346['consumable']['consume'](_0x50d019['markerRange'],_0x523ea0['name']))return;const _0x6715ed=_0x50d019['markerRange']['start']['nodeAfter'],_0x23ea17=_0x50d019['markerRange']['end']['nodeBefore'],_0x13cfa1=_0x6715ed['parent']['parent'],{column:_0x1fbe74}=_0xaa1d61['getCellLocation'](_0x6715ed),{column:_0x103aff}=_0xaa1d61['getCellLocation'](_0x23ea17);for(let _0x5b25cc=_0x1fbe74;_0x5b25cc<=_0x103aff;_0x5b25cc++){const _0x2ca8dd=_0xaa1d61['createTableWalker'](_0x13cfa1,{'column':_0x5b25cc,'includeAllSlots':!0x1});for(const _0x177bd4 of _0x2ca8dd){const _0xde2624=_0x177bd4['cell'],_0x1958f2=_0x1f0346['mapper']['toViewElement'](_0xde2624);_0x1f0346['writer']['addClass']('ck-suggestion-marker-'+_0x74b3ba,_0x1958f2),_0x36b2ac&&_0x1f0346['writer']['setAttribute']('data-suggestion',_0x39cba8,_0x1958f2),_0x1f0346['mapper']['bindElementToMarker'](_0x1958f2,_0x50d019['markerName']),_0x9e6cf3&&(_0x4173e5['activeMarkers']['includes'](_0x50d019['markerName'])?_0x1f0346['writer']['addClass']('ck-suggestion-marker--active',_0x1958f2):_0x1f0346['writer']['removeClass']('ck-suggestion-marker--active',_0x1958f2));}}};}_0x4173e5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36cdee),_0x4173e5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36cdee),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3956d0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2da38e,_0x2a9e33,_0x30a77f)=>{_0x30a77f['options']['showSuggestionHighlights']&&_0x3956d0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2da38e,_0x2a9e33,_0x30a77f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1023d5,_0x248f30,_0x20c525)=>{const {type:_0x44e0a3,id:_0x28d4b0}=_0x4173e5['_splitMarkerName'](_0x248f30['markerName']),_0x2657a5=_0x4173e5['getSuggestion'](_0x28d4b0),_0x5f1b81=_0x2657a5['data'];if('formatBlock'!=_0x2657a5['type']||!_0x5f1b81||'setTableColumnHeader'!=_0x5f1b81['commandName'])return;const _0x5dbd73=_0x20c525['mapper']['markerNameToElements'](_0x248f30['markerName']);if(_0x5dbd73){for(const _0x4f3328 of _0x5dbd73)_0x20c525['writer']['removeClass']('ck-suggestion-marker-'+_0x44e0a3,_0x4f3328),_0x20c525['writer']['removeClass']('ck-suggestion-marker--active',_0x4f3328),_0x20c525['writer']['removeAttribute']('data-suggestion',_0x4f3328),_0x20c525['mapper']['unbindElementFromMarkerName'](_0x4f3328,_0x248f30['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6f1f=this['editor'],_0x132f2a=_0x1c6f1f['locale'];function _0x1b9d5c(_0x1c600){return{'type':'format','content':o(_0x132f2a,'*Format:*\x20%0',_0x1c600)};}_0x1c6f1f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x36d116=>{if('formatBlock'!=_0x36d116['type'])return;const {data:_0x5463b}=_0x36d116;if(_0x5463b){if('setTableRowHeader'==_0x5463b['commandName']){const _0x26ec53=_0x5463b['commandParams'][0x0]['forceValue'];return _0x1b9d5c(o(_0x132f2a,_0x26ec53?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5463b['commandName']){const _0x45c3c8=_0x5463b['commandParams'][0x0]['forceValue'];return _0x1b9d5c(o(_0x132f2a,_0x45c3c8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5e3512=>[_0x5e3512,null]));class It extends _0x10cfe7{static get['requires'](){return[jt];}['afterInit'](){const _0x4507f3=this['editor'];if(!_0x4507f3['plugins']['has']('TableClipboard'))return;const _0x310736=_0x4507f3['plugins']['get']('TrackChangesEditing'),_0x1d6ec2=_0x4507f3['plugins']['get']('TableUtils'),_0x1d7175=_0x4507f3['plugins']['get'](jt),_0x331752=_0x4507f3['plugins']['get']('TableClipboard');_0x1d7175['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4507f3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4507f3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x160dae=null;_0x4507f3['model']['on']('insertContent',(_0x208a8d,_0x27c089)=>{const [_0x228892,_0x50affb]=_0x27c089,_0x163bfa=_0x27c089[_0x27c089['length']-0x1];_0x163bfa&&_0x163bfa['forceDefaultExecution']||_0x310736['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xee8fbd,_0x30b186,_0x1ce4ac,_0x5ad86a,_0xcd5c53){if(_0x30b186&&!_0x30b186['is']('documentSelection'))return!0x1;const _0x14041a=_0xcd5c53['getTableIfOnlyTableInContent'](_0xee8fbd,_0x1ce4ac);if(!_0x14041a||!he(_0x14041a,void 0x0,_0x5ad86a))return!0x1;const _0x517c06=_0x5ad86a['getSelectionAffectedTableCells'](_0x1ce4ac['document']['selection']);if(!_0x517c06['length'])return!0x1;const _0x3ef0d2=_0x517c06[0x0]['findAncestor']('table'),_0x58e372=_0x5ad86a['getRowIndexes'](_0x517c06),_0xb3a12=_0x5ad86a['getColumnIndexes'](_0x517c06),_0x372900={'startRow':_0x58e372['first'],'endRow':_0x58e372['last'],'startColumn':_0xb3a12['first'],'endColumn':_0xb3a12['last']};return 0x1==_0x517c06['length']&&(_0x372900['endRow']+=_0x5ad86a['getRows'](_0x14041a)-0x1,_0x372900['endColumn']+=_0x5ad86a['getColumns'](_0x14041a)-0x1),he(_0x3ef0d2,_0x372900,_0x5ad86a);}(_0x228892,_0x50affb,_0x4507f3['model'],_0x1d6ec2,_0x331752)&&(_0x208a8d['stop'](),_0x160dae={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4507f3['model']['change'](()=>{_0x4507f3['model']['insertContent'](_0x27c089[0x0],_0x27c089[0x1],_0x27c089[0x2],{'forceDefaultExecution':!0x0});const _0x4c7156=_0x23a7e6(),{rowInsertionRanges:_0x3987d1,columnInsertionRanges:_0x26c13e,insertionRanges:_0x3de5db,deletionRanges:_0x3bb4dc,cells:_0x54a7c0}=_0x160dae;_0x3987d1['length']&&_0x310736['markMultiRangeInsertion'](_0x3987d1,'tablePasteRow',{'tablePasteChainId':_0x4c7156}),_0x26c13e['length']&&_0x310736['markMultiRangeInsertion'](_0x26c13e,'tablePasteColumn',{'tablePasteChainId':_0x4c7156}),_0x3de5db['length']&&(_0x310736['markMultiRangeInsertion'](_0x3de5db,'tablePaste',{'tablePasteChainId':_0x4c7156,'skipNestingCheck':!0x0}),_0x3de5db['forEach'](_0x1e6046=>{var _0x303b24;return null===(_0x303b24=_0x1e6046['detach'])||void 0x0===_0x303b24?void 0x0:_0x303b24['call'](_0x1e6046);})),_0x3bb4dc['length']&&(_0x310736['markMultiRangeDeletion'](_0x3bb4dc,'tablePaste',{'tablePasteChainId':_0x4c7156,'skipNestingCheck':!0x0}),_0x3bb4dc['forEach'](_0x4ac609=>{var _0x50fb6c;return null===(_0x50fb6c=_0x4ac609['detach'])||void 0x0===_0x50fb6c?void 0x0:_0x50fb6c['call'](_0x4ac609);}));const _0x4c610f=_0x310736['markMultiRangeBlockFormat'](_0x54a7c0['map'](({element:_0x3ec9b9})=>_0x3ec9b9),{'formatGroupId':_0x23a7e6()},[],'tablePasteCell',{'tablePasteChainId':_0x4c7156});if(_0x4c610f){const _0x1dc0a8=_0x4c610f['getMarkers'](),_0x2fd81e=[];for(const {element:_0x9701fb,attributes:_0xb8b2b9}of _0x54a7c0){if(!_0xb8b2b9)continue;const _0x21865f=_0x4507f3['model']['createRangeOn'](_0x9701fb),_0x49e8ba=_0x1dc0a8['find'](_0xf63150=>_0xf63150['getRange']()['isEqual'](_0x21865f));_0x49e8ba&&_0x2fd81e['push']([_0x49e8ba['name'],_0xb8b2b9]);}_0x2fd81e['length']&&_0x4c610f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2fd81e));}_0x160dae=null;}));},{'priority':_0x266552['high']+0xa}),_0x4507f3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x366fdb,_0x27621c)=>{const [_0x251941,_0x185904,,_0x4983c4]=_0x27621c;if(!_0x160dae)return;_0x366fdb['stop']();const _0x344c12=_0x251941['cell'],_0x4b5826=_0x185904,_0x1b9113=Pe(_0x344c12),_0x372fc8=Pe(_0x4b5826);_0x366fdb['return']=_0x344c12;let _0x212fb9=null,_0x1fd3f3=null;if(_0x372fc8||_0x1b9113){if(_0x1b9113&&!_0x372fc8){_0x4983c4['remove'](_0x344c12['getChild'](0x0));for(const _0x179f09 of Array['from'](_0x4b5826['getChildren']()))_0x4983c4['insert'](_0x179f09,_0x344c12,'end');const _0x12fdf2=_0x160dae['rowInsertionIndexes']['includes'](_0x251941['row']),_0x3a0403=_0x160dae['columnInsertionIndexes']['includes'](_0x251941['column']);_0x12fdf2||_0x3a0403||(_0x212fb9=_0x151eba['fromRange'](_0x4983c4['createRangeIn'](_0x344c12)));}else _0x372fc8&&!_0x1b9113&&(_0x1fd3f3=_0x4983c4['createRangeIn'](_0x344c12));}else{const _0x567d78=_0x4983c4['createElement']('tableCellSuggestion'),_0x122d12=_0x4983c4['createElement']('tableCellSuggestion');_0x4983c4['wrap'](_0x4983c4['createRangeIn'](_0x344c12),_0x122d12),_0x4983c4['insert'](_0x567d78,_0x344c12,0x0);for(const _0x12d2a0 of Array['from'](_0x4b5826['getChildren']()))_0x4983c4['insert'](_0x12d2a0,_0x567d78,'end');_0x212fb9=_0x151eba['fromRange'](_0x4983c4['createRangeOn'](_0x567d78)),_0x1fd3f3=_0x151eba['fromRange'](_0x4983c4['createRangeOn'](_0x122d12));}const _0x15facc=Array['from'](_0x4b5826['getAttributes']())['filter'](([_0x28f533])=>ge['includes'](_0x28f533));_0x160dae['cells']['push']({'element':_0x344c12,'attributes':_0x15facc['length']?Object['fromEntries'](_0x15facc):null}),_0x212fb9&&_0x160dae['insertionRanges']['push'](_0x212fb9),_0x1fd3f3&&_0x160dae['deletionRanges']['push'](_0x1fd3f3);},{'priority':'high'}),_0x1d6ec2['on']('insertColumns',(_0x4b5864,_0x5f5d4e)=>{const [_0x2f7b3a,_0x3721be={}]=_0x5f5d4e;if(!_0x160dae)return;const _0x72d35d=_0x3721be['at']||0x0,_0x5f29ca=_0x3721be['columns']||0x1;_0x160dae['columnInsertionIndexes']=new Array(_0x5f29ca)['fill'](_0x72d35d)['map']((_0xd6f900,_0x1d2661)=>_0xd6f900+_0x1d2661);for(const {cell:_0x5c097d}of _0x1d6ec2['createTableWalker'](_0x2f7b3a,{'startColumn':_0x72d35d,'endColumn':_0x72d35d+_0x5f29ca-0x1}))_0x160dae['columnInsertionRanges']['push'](_0x4507f3['model']['createRangeOn'](_0x5c097d));},{'priority':'low'}),_0x1d6ec2['on']('insertRows',(_0x2d0d80,_0x118d75)=>{const [_0x19b536,_0x299863={}]=_0x118d75;if(!_0x160dae)return;const _0x2566b7=_0x299863['at']||0x0,_0x505db3=_0x299863['rows']||0x1;_0x160dae['rowInsertionIndexes']=new Array(_0x505db3)['fill'](_0x2566b7)['map']((_0x245463,_0xdd2f89)=>_0x245463+_0xdd2f89);for(const {cell:_0x157759}of _0x1d6ec2['createTableWalker'](_0x19b536,{'startRow':_0x2566b7,'endRow':_0x2566b7+_0x505db3-0x1}))_0x160dae['rowInsertionRanges']['push'](_0x4507f3['model']['createRangeOn'](_0x157759));},{'priority':'low'}),_0x310736['_descriptionFactory']['registerDescriptionCallback'](_0x3a04cf=>{if(_0x3a04cf['subType']&&_0x3a04cf['subType']['startsWith']('tablePaste'))return _0x3a04cf['previous']?{}:{'type':'insertion','content':o(_0x4507f3['locale'],'*Replace\x20table\x20cells*')};});const _0x27487d=()=>!0x1;for(const _0x2bfc67 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x310736['_suggestionFactory']['registerCustomCallback']('insertion',_0x2bfc67,'join',_0x27487d),_0x310736['_suggestionFactory']['registerCustomCallback']('deletion',_0x2bfc67,'join',_0x27487d),_0x310736['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2bfc67,'join',_0x27487d);_0x310736['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x27487d),_0x310736['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x537fb0,_0x43eb82,_0x1e55f2)=>{const _0x5c0d09=_0x537fb0['map'](_0x3fc2db=>_0x3fc2db['getContainedElement']())['filter'](_0x3a5b99=>_0x3a5b99),_0x5b7601=new Map(_0x5c0d09['map'](_0x1515fd=>[_0x1515fd,null]));if(_0x160dae){for(const {element:_0x4000f2,attributes:_0x5bb378}of _0x160dae['cells'])_0x5bb378&&_0x5b7601['set'](_0x4000f2,_0x5bb378);}else{if(_0x1e55f2&&_0x1e55f2['markerAttributes'])for(const [_0x1c8429,_0x4947d1]of Object['entries'](_0x1e55f2['markerAttributes'])){const _0x199f15=_0x4507f3['model']['markers']['get'](_0x1c8429),_0x117f6e=_0x199f15?_0x199f15['getRange']()['getContainedElement']():null;_0x117f6e&&_0x5b7601['set'](_0x117f6e,_0x4947d1);}}_0x4507f3['model']['change'](_0x3cdea5=>{for(const [_0xf0ff33,_0xa59673]of _0x5b7601)_0x3cdea5['setAttributes']({...Ce,..._0xa59673},_0xf0ff33);});});const _0x5141e6=(_0x30ba2a,_0x31bb1f)=>{_0x310736['_suggestionFactory']['registerCustomCallback'](_0x30ba2a,'tablePaste',_0x31bb1f,(_0x3ca841,_0x2dbfb2,_0x95726f)=>{_0x4507f3['model']['change'](_0x3b35b5=>{const _0x25817b=[];for(const _0x955a98 of _0x3ca841){const _0x22c5fd=_0x955a98['start']['nodeAfter'];_0x22c5fd['is']('element','tableCellSuggestion')&&_0x25817b['push'](_0x22c5fd);}_0x310736['_suggestionFactory']['getSuggestionCallback'](_0x30ba2a,null,_0x31bb1f)(_0x3ca841,_0x2dbfb2,_0x95726f);for(const _0x32e1a9 of _0x25817b)'$graveyard'!=_0x32e1a9['root']['rootName']&&_0x3b35b5['unwrap'](_0x32e1a9);});});};_0x5141e6('insertion','accept'),_0x5141e6('insertion','discard'),_0x5141e6('deletion','accept'),_0x5141e6('deletion','discard'),_0x310736['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x54ebff=>{const _0x200bb2=_0x54ebff['map'](_0x4d08bc=>_0x4d08bc['getContainedElement']()),_0x3416e9=_0x200bb2[0x0]['findAncestor']('table'),{minRow:_0x3a43ef,maxRow:_0x34cb80}=_0x1d7175['_getCoordsForCells'](_0x200bb2);_0x1d6ec2['removeRows'](_0x3416e9,{'at':_0x3a43ef,'rows':_0x34cb80-_0x3a43ef+0x1});}),_0x310736['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x48ff69=>{const _0x59acb7=_0x48ff69['map'](_0x48d3ee=>_0x48d3ee['getContainedElement']()),_0x3aefe1=_0x59acb7[0x0]['findAncestor']('table'),{minColumn:_0x9bf265,maxColumn:_0x5d8272}=_0x1d7175['_getCoordsForCells'](_0x59acb7);_0x1d6ec2['removeColumns'](_0x3aefe1,{'at':_0x9bf265,'columns':_0x5d8272-_0x9bf265+0x1});});const _0x16a3fc=(_0x556398,_0x133a7a)=>{if(!_0x133a7a['subType']||!_0x133a7a['subType']['startsWith']('tablePaste'))return;const _0x480a60=_0x133a7a['attributes']['tablePasteChainId'],_0x4b659c=_0x310736['getSuggestions']()['filter'](_0x520ec1=>_0x520ec1['isInContent']&&_0x520ec1['attributes']&&_0x520ec1['attributes']['tablePasteChainId']==_0x480a60);_0x4b659c['length']&&_0x133a7a['getAllAdjacentSuggestions']()['length']!=_0x4b659c['length']&&_0x4b659c['reduce']((_0x40179c,_0x2050ff)=>(_0x40179c['next']=_0x2050ff,_0x2050ff['previous']=_0x40179c,_0x2050ff));};function _0x426201(_0x251450,_0xe9c914=!0x0){const {id:_0xf6e061}=_0x310736['_splitMarkerName'](_0x251450['markerName']),_0x15b935=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x58b3d1=_0x310736['activeMarkers']['includes'](_0x251450['markerName']);return _0x58b3d1&&_0x15b935['push']('ck-suggestion-marker--active'),{'classes':_0x15b935,'attributes':{'data-suggestion':_0xf6e061},'priority':_0x58b3d1&&_0xe9c914?0xbc2:0xbb8};}_0x310736['on']('suggestionLoaded',_0x16a3fc,{'priority':'high'}),_0x310736['on']('suggestionUnloaded',_0x16a3fc,{'priority':'high'}),_0x4507f3['model']['document']['registerPostFixer'](()=>{let _0x5a3447=!0x1;const _0x577f89=Array['from'](_0x4507f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22dde9,data:_0x89be4f}of _0x577f89){const {group:_0x441b49,type:_0xe1b1ee,id:_0x257306}=_0x310736['_splitMarkerName'](_0x22dde9);if('suggestion'!=_0x441b49||'deletion'!=_0xe1b1ee||_0x89be4f['oldRange'])continue;if(!_0x310736['hasSuggestion'](_0x257306))continue;const _0x4aa13b=_0x310736['getSuggestion'](_0x257306)['getRanges'](),_0x4ebe78=_0x4507f3['plugins']['get']('Users')['me'];for(const _0xc04660 of _0x310736['getSuggestions']()){if(!_0xc04660['isInContent']||_0xc04660['author']!=_0x4ebe78)continue;if('formatBlock'!=_0xc04660['type']||'tablePasteCell'!=_0xc04660['subType'])continue;if(_0xc04660['getRanges']()['every'](_0x39c12c=>_0x4aa13b['some'](_0x5054ff=>_0x5054ff['containsRange'](_0x39c12c,!0x0)))){for(const _0x2bba15 of _0xc04660['getAllAdjacentSuggestions']())_0x2bba15['isInContent']&&(_0x2bba15['discard'](),_0x5a3447=!0x0);}}}return _0x5a3447;}),_0x4507f3['model']['document']['registerPostFixer'](_0x4ff48e=>{const _0x2ef7f2=_0x4507f3['commands']['get']('redo');if(!_0x2ef7f2||!_0x2ef7f2['_createdBatches']['has'](_0x4ff48e['batch']))return!0x1;let _0x2ee0c8=!0x1;const _0x5973d2=_0x4507f3['plugins']['get']('Users')['me'],_0x43a0b1=_0x4507f3['model']['document']['differ']['getChanges'](),_0x41f444=Array['from'](_0x4507f3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4b62a2,data:_0x35911d})=>{const {group:_0x2cc6c7,subType:_0x602846,authorId:_0x52e002}=_0x310736['_splitMarkerName'](_0x4b62a2);return'suggestion'==_0x2cc6c7&&'tablePaste'==_0x602846&&_0x52e002==_0x5973d2['id']&&!_0x35911d['oldRange'];});for(const _0x235abc of _0x43a0b1){if('insert'!=_0x235abc['type']||'tableCellSuggestion'!=_0x235abc['name']||0x1!=_0x235abc['length'])continue;const _0x35aeda=_0x4ff48e['createRange'](_0x235abc['position'],_0x235abc['position']['getShiftedBy'](0x1));if(!_0x41f444['find'](({data:_0x2ceb53})=>_0x2ceb53['newRange']['isEqual'](_0x35aeda))){for(const {name:_0x58cf1,data:_0x1e97ab}of _0x41f444)if(_0x35aeda['containsRange'](_0x1e97ab['newRange'])){_0x4ff48e['updateMarker'](_0x58cf1,{'range':_0x35aeda}),_0x2ee0c8=!0x0;break;}}}return _0x2ee0c8;}),_0x4507f3['model']['document']['registerPostFixer'](_0x26a977=>{let _0x31f67e=!0x1;const _0x356cf6=_0x4507f3['plugins']['get']('Users')['me'],_0x2b07b4=_0x310736['getSuggestions']()['filter'](_0x4b08b0=>_0x4b08b0['isInContent']&&_0x4b08b0['author']==_0x356cf6),_0x439e8d=new Set(),_0x330a8c=new Set();for(const _0x5bda4d of _0x2b07b4)if('tablePaste'==_0x5bda4d['subType'])for(const _0x1a040b of _0x5bda4d['getMarkers']()){const _0x1ff901=_0x1a040b['getRange']()['getContainedElement']();if(_0x1ff901){if(_0x1ff901['is']('element','tableCellSuggestion')&&Pe(_0x1ff901)){_0x5bda4d['removeMarker'](_0x1a040b['name']),_0x439e8d['add'](_0x1ff901),_0x31f67e=!0x0;const _0x38bb6c=_0x1ff901['nextSibling'],_0x458aa5=_0x1ff901['previousSibling'],_0x5e0985=_0x38bb6c&&_0x38bb6c['is']('element','tableCellSuggestion'),_0x19d23c=_0x458aa5&&_0x458aa5['is']('element','tableCellSuggestion');_0x5e0985&&!_0x439e8d['has'](_0x38bb6c)&&_0x330a8c['add'](_0x38bb6c),_0x19d23c&&!_0x439e8d['has'](_0x458aa5)&&_0x330a8c['add'](_0x458aa5);}else _0x1ff901['is']('element','paragraph')&&_0x1ff901['isEmpty']&&(_0x5bda4d['removeMarker'](_0x1a040b['name']),_0x31f67e=!0x0);}}else{if('tablePasteCell'==_0x5bda4d['subType']){if(!_0x5bda4d['attributes']||!_0x5bda4d['attributes']['tablePasteChainId'])continue;const _0x44f5d1=_0x5bda4d['attributes']['markerAttributes'];if(_0x44f5d1&&Object['keys'](_0x44f5d1)['length'])continue;const _0x52c767=_0x5bda4d['attributes']['tablePasteChainId'];let _0x5afa1e=!0x0,_0x1c6a0b=!0x0;for(const _0x2dbd67 of _0x2b07b4)if(_0x2dbd67['subType']&&_0x2dbd67['subType']['startsWith']('tablePaste')){if(!_0x2dbd67['attributes']['tablePasteChainId']){_0x1c6a0b=!0x1;break;}if(_0x2dbd67['id']!=_0x5bda4d['id']&&_0x2dbd67['attributes']['tablePasteChainId']==_0x52c767){_0x5afa1e=!0x1;break;}}_0x1c6a0b&&_0x5afa1e&&(_0x5bda4d['removeMarkers'](),_0x31f67e=!0x0);}}for(const _0x564c1c of _0x439e8d)_0x26a977['remove'](_0x564c1c);for(const _0x242ff9 of _0x330a8c)_0x26a977['unwrap'](_0x242ff9);return _0x31f67e;}),_0x4507f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x477b82,_0x56f3bd)=>_0x426201(_0x477b82),'converterPriority':'high'}),_0x4507f3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e4aa9,_0x94dcc)=>_0x94dcc['options']['showSuggestionHighlights']?_0x426201(_0x4e4aa9,!0x1):null,'converterPriority':'high'});const _0x11d4b0=_0x4507f3['editing']['view'];this['listenTo'](_0x11d4b0['document'],'clipboardOutput',(_0x2e02d9,_0x466d25)=>{const _0x38e588=[];for(const _0x597825 of _0x11d4b0['createRangeIn'](_0x466d25['content'])['getItems']())_0x597825['is']('element','suggestion-td')&&_0x38e588['push'](_0x597825);_0x11d4b0['change'](_0x3ee641=>{for(const _0x46152a of _0x38e588)_0x3ee641['move'](_0x3ee641['createRangeIn'](_0x46152a),_0x3ee641['createPositionBefore'](_0x46152a)),_0x3ee641['remove'](_0x46152a);});});}}function Pe(_0x4d2d04){if(_0x4d2d04['isEmpty'])return!0x0;const _0x2ce374=_0x4d2d04['getChild'](0x0);return _0x2ce374['is']('element','paragraph')&&_0x2ce374['isEmpty'];}function he(_0x5ec915,_0x12a2b9={},_0x25be67){for(const {isAnchor:_0x2f03d6,cellHeight:_0x2e4daf,cellWidth:_0x23a28d}of _0x25be67['createTableWalker'](_0x5ec915,{'includeAllSlots':!0x0,..._0x12a2b9}))if(!_0x2f03d6||0x1!=_0x2e4daf||0x1!=_0x23a28d)return!0x1;return!0x0;}class vt extends _0x10cfe7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2bf5e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bf5e0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2bf5e0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2bf5e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bf5e0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2bf5e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2bf5e0['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x17d9cb,_0x1f6041){const _0x40988b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd9bbe8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31b864=_0x1f6041['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x570e36=_0xd9bbe8['getColumnGroupElement'](_0x31b864);let _0x39b854=_0x570e36?_0xd9bbe8['getTableColumnsWidths'](_0x570e36):null,_0x51fbe1=_0x31b864['getAttribute']('tableWidth')||null;const _0x353d54=_0x1f6041['tableWidth']||_0x51fbe1,_0x4cd227=_0x1f6041['columnWidths']||_0x39b854,_0xd774fb=this['editor']['plugins']['get']('Users')['me'];for(const _0x591326 of _0x40988b['getSuggestions']()){const _0x201c32=_0x591326['getContainedElement']();if('resizeTable'===_0x591326['subType']&&_0x201c32===_0x31b864){_0x591326['author']!==_0xd774fb&&_0x591326['discard']();const _0x276dce=_0x591326['data']['commandParams'];_0x51fbe1=_0x276dce[0x0]['tableWidth'],_0x39b854=_0x276dce[0x0]['columnWidths'];break;}}_0x17d9cb({'table':_0x31b864,'tableWidth':_0x353d54,'columnWidths':_0x4cd227}),_0x40988b['markBlockFormat'](_0x31b864,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51fbe1,'columnWidths':_0x39b854}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f98ac){if('formatBlock'!=_0x2f98ac['type']&&'formatInline'!=_0x2f98ac['type'])return;const {data:_0x292fea}=_0x2f98ac;if(_0x292fea&&'resizeTable'===_0x292fea['formatGroupId']){const _0x276d0b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x276d0b)};}}}class _t extends _0x10cfe7{['afterInit'](){const _0x402ec6=this['editor'];_0x402ec6['plugins']['has']('Template')&&_0x402ec6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x10cfe7{['afterInit'](){const _0x3f9292=this['editor'];if(!_0x3f9292['commands']['get']('insertTableOfContents'))return;_0x3f9292['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x114c64=_0x3f9292['plugins']['get']('TrackChangesEditing'),_0x168756=_0x3f9292['locale'];_0x114c64['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x3d4161=>o(_0x168756,'ELEMENT_TABLE_OF_CONTENTS',_0x3d4161));}}class Dt extends _0x10cfe7{['afterInit'](){const _0x5c9c83=this['editor'];if(!_0x5c9c83['plugins']['has']('Title'))return;const _0x7c7dd9=_0x5c9c83['plugins']['get']('TrackChangesEditing');_0x7c7dd9['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5c9c83['locale'],'ELEMENT_TITLE')),_0x5c9c83['model']['document']['registerPostFixer'](_0x10a4d0=>{let _0x48b607=!0x1;const _0x449d03=Array['from'](_0x5c9c83['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa7ea88,data:_0xfb149a}of _0x449d03){const {group:_0x4ad985}=_0x7c7dd9['_splitMarkerName'](_0xa7ea88);if('suggestion'!==_0x4ad985||!_0xfb149a['newRange'])continue;const _0x3493e9=_0xfb149a['newRange'],_0x2b0ef2=_0x3493e9['end']['nodeBefore'];if(!_0x2b0ef2||!_0x2b0ef2['is']('element','title-content'))continue;if(!_0x3493e9['start']['isTouching'](_0x3493e9['end']))continue;const _0x26c873=_0x5c9c83['model']['schema']['getNearestSelectionRange'](_0x3493e9['end'],'forward');if(_0x26c873&&_0x26c873['isCollapsed']){const _0x24cf8b=_0x10a4d0['createRange'](_0x3493e9['start'],_0x26c873['start']);_0x24cf8b['isEqual'](_0x3493e9)||(_0x10a4d0['updateMarker'](_0xa7ea88,{'range':_0x24cf8b}),_0x48b607=!0x0);}_0x48b607||(_0x10a4d0['removeMarker'](_0xa7ea88),_0x48b607=!0x0);}return _0x48b607;});}}class Nt extends _0x10cfe7{['afterInit'](){const _0x13cc31=this['editor'],_0x1c7644=_0x13cc31['plugins']['get']('TrackChangesEditing');_0x13cc31['plugins']['has']('UndoEditing')&&(_0x1c7644['enableCommand']('undo'),_0x1c7644['enableCommand']('redo'));}}class Mt extends _0x10cfe7{static get['requires'](){return[jt];}['afterInit'](){const _0x365cbb=this['editor'];if(!_0x365cbb['plugins']['has']('TableCaptionEditing'))return;_0x365cbb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x10cfe7{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x212f30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36816f of this['tableProperties'])_0x212f30['enableCommand'](_0x36816f,(_0xd66380,_0x2cf080)=>{const _0x4d018=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36816f,[_0x4d018],this['tableProperties'],'tableProperties',_0xd66380,_0x2cf080);});_0x212f30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x212f30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x212f30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x13b02f,_0xcad2f5)=>this['handleDiscardAction'](this['tableProperties'],_0x13b02f,_0xcad2f5)),_0x212f30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5404a6 of this['tableCellProperties'])_0x212f30['enableCommand'](_0x5404a6,(_0x3947c2,_0x18dd2d)=>{const _0x1849e1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5404a6,_0x1849e1,this['tableCellProperties'],'tableCellProperties',_0x3947c2,_0x18dd2d);});_0x212f30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x212f30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x212f30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45ec0b,_0x2ed541)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45ec0b,_0x2ed541)),_0x212f30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x212f30['_descriptionFactory']['registerDescriptionCallback'](_0x2387bb=>this['handleSuggestionDescription'](_0x2387bb));}['_handlePropertyChange'](_0x436027,_0x42d23a,_0x496f5b,_0x16b15a,_0xb3a4b,_0x67684c){const _0x2ff1e3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x67684c['batch'],()=>{for(const _0x3eeade of _0x42d23a){if(this['_getSuggestion'](_0x3eeade,_0x16b15a))_0xb3a4b(_0x67684c);else{const _0x595ae9={};for(const _0x39dd49 of _0x496f5b){const _0x249755=_0x3eeade['getAttribute'](_0x39dd49);void 0x0!==_0x249755&&(_0x595ae9[_0x39dd49]=_0x249755);}_0xb3a4b(_0x67684c),_0x2ff1e3['markBlockFormat'](_0x3eeade,{'commandParams':[_0x595ae9]},[],_0x16b15a);}}});}['handleDiscardAction'](_0x1682b4,_0x4b8cfd,_0x283bf7){const _0x25f2f6=_0x4b8cfd[0x0]['start']['nodeAfter'],_0x4706e5=_0x283bf7['commandParams'][0x0];this['editor']['model']['change'](_0x5b1202=>{for(const _0x31a109 of _0x1682b4)void 0x0!==_0x4706e5[_0x31a109]?_0x5b1202['setAttribute'](_0x31a109,_0x4706e5[_0x31a109],_0x25f2f6):_0x5b1202['removeAttribute'](_0x31a109,_0x25f2f6);});}['handleSuggestionDescription'](_0x14f1a1){if(_0x14f1a1['data'])switch(_0x14f1a1['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'](_0x4d101d,_0x24c48c){const _0x3ecf03=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x456a10 of _0x3ecf03['getSuggestions']({'skipNotAttached':!0x0})){const _0x46ecfd=_0x456a10['getContainedElement']();if(_0x456a10['subType']===_0x24c48c&&_0x46ecfd===_0x4d101d)return _0x456a10;}return null;}constructor(_0x107792){super(_0x107792),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x10cfe7{static get['requires'](){return['CommentsRepository',_0x2312f1,_0x343626,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x1064d2=this['editor'],_0xd28f09=(_0x1b8bc5,_0x55c505)=>{if('attribute'!=_0x1b8bc5)return'ck-suggestion-marker-'+_0x1b8bc5;const _0x511533=_0x55c505['split']('|')[0x0];return this['_isBlockAttribute'](_0x511533)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1064d2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x20a065=>{const {id:_0x3f1c07,type:_0x1e2650,subType:_0x1fb82f}=this['_splitMarkerName'](_0x20a065['markerName']),_0xb67141=['ck-suggestion-marker',_0xd28f09(_0x1e2650,_0x1fb82f)];let _0x19f449=0xbb8;return this['activeMarkers']['includes'](_0x20a065['markerName'])&&(_0xb67141['push']('ck-suggestion-marker--active'),_0x19f449=0xbc2),'deletion'==_0x1e2650&&(_0x19f449+=0x5),{'classes':_0xb67141,'attributes':{'data-suggestion':_0x3f1c07},'priority':_0x19f449};}}),_0x1064d2['conversion']['for']('dataDowncast')['add'](_0x55d72c=>{_0x55d72c['on']('addMarker:suggestion',(_0x1a8a82,_0x3da05f,_0x2ea302)=>{if(!_0x2ea302['options']['showSuggestionHighlights'])return;const _0x4055df=_0x3da05f['item'];if(!_0x4055df)return;const _0x358095=_0x2ea302['mapper']['toViewElement'](_0x4055df);_0x1064d2['model']['schema']['isObject'](_0x4055df)&&_0x358095&&!_0x358095['getCustomProperty']('widget')&&_0x358095['is']('containerElement')&&_0x15cb9c(_0x358095,_0x2ea302['writer']);},{'priority':'high'});}),_0x1064d2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd4216e,_0x285532)=>{if(!_0x285532['options']['showSuggestionHighlights'])return null;const {type:_0x45722f,subType:_0x56824d}=this['_splitMarkerName'](_0xd4216e['markerName']);return{'classes':['ck-suggestion-marker',_0xd28f09(_0x45722f,_0x56824d)],'priority':0xbb8};}});const _0xe6c429=({showActiveMarkers:_0x25c73e=!0x0,isAttributeSuggestion:_0x5b47d4=!0x1}={})=>(_0x5ca1c1,_0x4215cd,_0x272c8f)=>{if(!_0x4215cd['item'])return;const {id:_0xc9cfe3}=this['_splitMarkerName'](_0x4215cd['markerName']);if(_0x5b47d4){const _0x42a900=this['_suggestions']['get'](_0xc9cfe3),_0x471983=this['_getAttributeKey'](_0x42a900);if(!this['_isBlockAttribute'](_0x471983))return;}if(_0x4215cd['item']['is']('selection'))return void _0x272c8f['consumable']['consume'](_0x4215cd['item'],_0x5ca1c1['name']);const _0x1dec37=_0x272c8f['mapper']['toViewElement'](_0x4215cd['item']);if(_0x4215cd['item']['is']('element')&&_0x1064d2['model']['schema']['isBlock'](_0x4215cd['item'])&&!_0x1dec37['getCustomProperty']('addHighlight')){_0x272c8f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1dec37),_0x272c8f['writer']['setAttribute']('data-suggestion',_0xc9cfe3,_0x1dec37),_0x272c8f['mapper']['bindElementToMarker'](_0x1dec37,_0x4215cd['markerName']),_0x25c73e&&(this['activeMarkers']['includes'](_0x4215cd['markerName'])?_0x272c8f['writer']['addClass']('ck-suggestion-marker--active',_0x1dec37):_0x272c8f['writer']['removeClass']('ck-suggestion-marker--active',_0x1dec37));for(const _0x1b6c41 of _0x1064d2['model']['createRangeIn'](_0x4215cd['item'])['getItems']())_0x272c8f['consumable']['consume'](_0x1b6c41,_0x5ca1c1['name']);_0x272c8f['consumable']['consume'](_0x4215cd['item'],_0x5ca1c1['name']);}};_0x1064d2['conversion']['for']('dataDowncast')['add'](_0x49137b=>{_0x49137b['on']('addMarker:suggestion:formatBlock',(_0x5748a2,_0x531b11,_0x15c459)=>{_0x15c459['options']['showSuggestionHighlights']&&_0xe6c429({'showActiveMarkers':!0x1})(_0x5748a2,_0x531b11,_0x15c459);},{'priority':'highest'});}),_0x1064d2['conversion']['for']('dataDowncast')['add'](_0x4a29f1=>{_0x4a29f1['on']('addMarker:suggestion:attribute',(_0x1a2369,_0x503ca5,_0x104e66)=>{_0x104e66['options']['showSuggestionHighlights']&&_0xe6c429({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1a2369,_0x503ca5,_0x104e66);},{'priority':'highest'});}),_0x1064d2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xaab52e,_0x806ea4)=>_0x806ea4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xaab52e['substr'](0xb)}}),_0x1064d2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x52f48e,{writer:_0x47cb66})=>{let _0x2408b6='suggestion:'+_0x52f48e['getAttribute']('suggestion-type')+':'+_0x52f48e['getAttribute']('id');return _0x52f48e['getAttribute']('marker-count')&&(_0x2408b6+=':'+_0x52f48e['getAttribute']('marker-count')),_0x47cb66['createElement']('$marker',{'data-name':_0x2408b6});}}),_0x1064d2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1064d2['conversion']['for']('editingDowncast')['add'](_0x18eb25=>{_0x18eb25['on']('addMarker:suggestion:formatBlock',_0xe6c429(),{'priority':'high'});}),_0x1064d2['conversion']['for']('editingDowncast')['add'](_0x54b964=>{_0x54b964['on']('addMarker:suggestion:attribute',_0xe6c429({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1064d2['conversion']['for']('editingDowncast')['add'](_0x3cfbd6=>{_0x3cfbd6['on']('removeMarker:suggestion:formatBlock',(_0x52043b,_0x3a9cc1,_0x227bb6)=>{const _0xdde7a8=_0x227bb6['mapper']['markerNameToElements'](_0x3a9cc1['markerName']);if(_0xdde7a8){for(const _0x76ed28 of _0xdde7a8)_0x76ed28['getCustomProperty']('addHighlight')||(_0x227bb6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x76ed28),_0x227bb6['writer']['removeAttribute']('data-suggestion',_0x76ed28),_0x227bb6['mapper']['unbindElementFromMarkerName'](_0x76ed28,_0x3a9cc1['markerName']));}},{'priority':'high'});}),_0x1064d2['conversion']['for']('editingDowncast')['add'](_0x1e56b8=>{_0x1e56b8['on']('removeMarker:suggestion:attribute',(_0x3751e9,_0x59239e,_0x543c7e)=>{const _0x5dd5ad=_0x543c7e['mapper']['markerNameToElements'](_0x59239e['markerName']);if(!_0x5dd5ad)return;const {id:_0x17f156}=this['_splitMarkerName'](_0x59239e['markerName']),_0x2aa85f=this['_suggestions']['get'](_0x17f156),_0x513040=this['_getAttributeKey'](_0x2aa85f);if(this['_isBlockAttribute'](_0x513040)){for(const _0x1eb452 of _0x5dd5ad)_0x1eb452['getCustomProperty']('addHighlight')||(_0x543c7e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1eb452),_0x543c7e['writer']['removeAttribute']('data-suggestion',_0x1eb452),_0x543c7e['mapper']['unbindElementFromMarkerName'](_0x1eb452,_0x59239e['markerName']));}},{'priority':'high'});}),_0x1064d2['model']['document']['registerPostFixer'](_0x255f2c=>{let _0x5ce672=!0x1;const _0x205aaa=Array['from'](_0x1064d2['model']['document']['differ']['getChangedMarkers']()),_0x236923=new Set();for(const {name:_0x1d8cff,data:_0x257693}of _0x205aaa){const {group:_0x506b6b,type:_0xa9aadf,subType:_0x5a86b7,id:_0x568716}=this['_splitMarkerName'](_0x1d8cff);if('suggestion'!==_0x506b6b)continue;const _0x36f251=this['_suggestions']['get'](_0x568716);if(null!=_0x257693['newRange']){'formatInline'==_0xa9aadf&&(_0x5ce672=_0x5ce672||Et(_0x257693['newRange'],_0x1d8cff,_0x255f2c,_0x1064d2['model']['schema']));const _0x4bc99d='attribute'==_0xa9aadf&&this['_isBlockAttribute'](_0x5a86b7['split']('|')[0x0]);if(_0x257693['newRange']['isCollapsed']||'$graveyard'==_0x257693['newRange']['root']['rootName']||'formatBlock'==_0xa9aadf&&!Ut(_0x257693['newRange'])||_0x4bc99d&&!Ut(_0x257693['newRange'])||'deletion'==_0xa9aadf&&!(!Tt(_0x12b4c3=_0x257693['newRange'])&&!function(_0x1f2aad){return _0x1f2aad['start']['parent']==_0x1f2aad['end']['nodeBefore']&&_0x1f2aad['start']['isAtEnd'];}(_0x12b4c3)))_0x255f2c['removeMarker'](_0x1d8cff),_0x5ce672=!0x0;else{if(!_0x36f251||!_0x36f251['isInContent'])continue;_0x236923['add'](_0x36f251);}}}var _0x12b4c3;return _0x236923['size']>0x0&&(_0x5ce672=!!this['_joinWithAdjacentSuggestions'](_0x236923)||_0x5ce672),_0x5ce672;}),_0x1064d2['model']['document']['registerPostFixer'](_0x324408=>{let _0x3fa266=!0x1;for(const _0x1caa34 of _0x1064d2['model']['document']['differ']['getChanges']())if('insert'==_0x1caa34['type'])for(const _0x304e17 of this['_suggestions']['values']()){if(_0x304e17['isMultiRange']||!_0x304e17['isInContent'])continue;const _0x2c3450='formatBlock'==_0x304e17['type'],_0x4a658f=this['_getAttributeKey'](_0x304e17),_0x2124de=_0x4a658f&&this['_isBlockAttribute'](_0x4a658f);if(!_0x2c3450&&!_0x2124de)continue;const _0xf31099=_0x304e17['getFirstRange']();if(_0xf31099['start']['parent']!=_0xf31099['end']['parent']&&!_0xf31099['end']['isAtEnd']){const _0x445f2c=_0x1064d2['model']['createPositionAt'](_0xf31099['start']['nodeAfter'],'end'),_0x31ded7=_0x1064d2['model']['createRange'](_0xf31099['start'],_0x445f2c);_0x324408['updateMarker'](_0x304e17['getFirstMarker'](),{'range':_0x31ded7}),_0x3fa266=!0x0;}}return _0x3fa266;}),_0x1064d2['model']['document']['registerPostFixer'](_0xee91cd=>this['_processAttributeChanges'](_0xee91cd)),_0x1064d2['model']['document']['registerPostFixer'](_0x118beb=>!_0x118beb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x118beb)),_0x1064d2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1064d2['model']['document']['on']('change:data',(_0x42ba88,_0x236baf)=>{if(!_0x236baf['isLocal']||_0x236baf['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x27f8c3=_0x1064d2['model']['document']['differ']['getChanges']();if(0x0==_0x27f8c3['length'])return;const _0xa10aa3=[],_0x426fb2=_0x27f8c3['filter'](_0x4a4ae3=>'attribute'==_0x4a4ae3['type']),_0x36ca87=_0x27f8c3['filter'](_0x4409b5=>'insert'==_0x4409b5['type']&&'$text'!=_0x4409b5['name']),_0x2998ba=_0x27f8c3['filter'](_0x492d95=>'remove'==_0x492d95['type']&&'$text'!=_0x492d95['name']);for(const _0x1cca78 of _0x426fb2)this['_isRegisteredAttribute'](_0x1cca78['attributeKey'])&&_0xa10aa3['push']({'key':_0x1cca78['attributeKey'],'newValue':_0x1cca78['attributeNewValue'],'oldValue':_0x1cca78['attributeOldValue'],'range':Ot(_0x1cca78['range'],_0x1064d2['model'])});for(const _0x2e4aeb of _0x36ca87){const _0x25b6b6=_0x2998ba['find'](_0x4a661b=>_0x4a661b['_element']===_0x2e4aeb['_element']);if(_0x25b6b6){const _0x4b2cb9=Gt(_0x2e4aeb['position']['nodeAfter'],_0x1064d2['model']);_0x25b6b6['name']!==_0x2e4aeb['name']&&_0xa10aa3['push']({'key':m,'newValue':_0x2e4aeb['name'],'oldValue':_0x25b6b6['name'],'range':_0x4b2cb9});for(const [_0x3661d0,_0x28021a]of _0x25b6b6['attributes']){if(!this['_isRegisteredAttribute'](_0x3661d0))continue;const _0x2b7aa7=_0x2e4aeb['attributes']['get'](_0x3661d0);_0x28021a!==_0x2b7aa7&&_0xa10aa3['push']({'key':_0x3661d0,'newValue':_0x2b7aa7,'oldValue':_0x28021a,'range':_0x4b2cb9});}for(const [_0xc72d94,_0x4958db]of _0x2e4aeb['attributes'])this['_isRegisteredAttribute'](_0xc72d94)&&(_0x25b6b6['attributes']['has'](_0xc72d94)||_0xa10aa3['push']({'key':_0xc72d94,'newValue':_0x4958db,'oldValue':null,'range':_0x4b2cb9}));}}0x0!=_0xa10aa3['length']&&_0x1064d2['model']['enqueueChange'](_0x236baf,_0x3a1a04=>{const _0xd01db7=_0x23a7e6();for(const {range:_0x4280bf,key:_0x2592be,oldValue:_0x266b27,newValue:_0x418a6c}of _0xa10aa3)this['markAttributeChange'](_0x4280bf,_0x2592be,_0x266b27,_0x418a6c,{'groupId':_0xd01db7});this['_reduceExistingSuggestions'](_0x3a1a04,_0xa10aa3);});},{'priority':'lowest'}),_0x1064d2['model']['markers']['on']('update:suggestion',(_0x171ae2,_0x181e3f,_0x14d697)=>{if(null==_0x14d697){const {id:_0x5e85a5}=this['_splitMarkerName'](_0x181e3f['name']),_0x5bfcc1=this['_suggestions']['get'](_0x5e85a5);_0x5bfcc1&&_0x5bfcc1['addMarkerName'](_0x181e3f['name']);}}),_0x1064d2['model']['document']['on']('change:data',()=>{const _0x9adea0=Array['from'](_0x1064d2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x317204=>'suggestion'===this['_splitMarkerName'](_0x317204['name'])['group']);if(0x0===_0x9adea0['length'])return;_0x9adea0['sort']((_0x186fe7,_0x2438b1)=>{const _0x696902=_0x186fe7['data']['oldRange'],_0x3f1c93=_0x2438b1['data']['oldRange'];return null===_0x696902&&null===_0x3f1c93?0x0:null===_0x696902&&null!==_0x3f1c93?-0x1:null!==_0x696902&&null===_0x3f1c93?0x1:_0x696902['start']['isBefore'](_0x3f1c93['start'])?-0x1:0x1;});const _0x1e67fd=new Set(),_0x3de9ff=new Set();for(const {name:_0x4656ee,data:_0x4a2143}of _0x9adea0){const {id:_0x86f842}=this['_splitMarkerName'](_0x4656ee);if(null===_0x4a2143['oldRange']){const _0x4a67bb=this['_handleNewSuggestionMarker'](_0x4656ee);_0x3de9ff['add'](_0x4a67bb);}else{const _0x37fa1d=this['_suggestions']['get'](_0x86f842);null!==_0x4a2143['newRange']||_0x37fa1d['isInContent']?(_0x1e67fd['add'](_0x37fa1d['head']),_0x3de9ff['add'](_0x37fa1d)):this['_removeSuggestion'](_0x37fa1d);}}_0x3de9ff['size']>0x0&&this['_refreshSuggestionsChain'](_0x3de9ff);for(const _0x15f3f4 of _0x1e67fd)this['fire']('suggestionChanged',_0x15f3f4);}),_0x1064d2['model']['on']('applyOperation',(_0x4dad91,_0x2a89f2)=>{const _0x2ab821=_0x2a89f2[0x0];if(!this['_suggestions']['size'])return;if(!_0x2ab821['isDocumentOperation'])return;if(_0x2ab821['batch']['isUndo']||!_0x2ab821['batch']['isLocal'])return;let _0x7ad16a,_0x408cbb;switch(_0x2ab821['type']){case'insert':_0x7ad16a=_0x1064d2['model']['createPositionAt'](_0x2ab821['position']),_0x408cbb=_0x7ad16a['getShiftedBy'](_0x2ab821['howMany']);break;case'split':_0x7ad16a=_0x1064d2['model']['createPositionAt'](_0x2ab821['splitPosition']),_0x408cbb=_0x1064d2['model']['createPositionAt'](_0x2ab821['moveTargetPosition']);break;case'move':_0x7ad16a=_0x1064d2['model']['createPositionAt'](_0x2ab821['targetPosition']),_0x408cbb=_0x7ad16a['getShiftedBy'](_0x2ab821['howMany']);break;default:return;}const _0x37c2ef=_0x1064d2['model']['createRange'](_0x7ad16a,_0x408cbb);_0x1064d2['model']['change'](()=>{for(const {suggestion:_0x10c678,meta:_0x33db99}of this['_findSuggestions'](_0x37c2ef)){if(_0x10c678['isMultiRange'])continue;if('formatInline'==_0x10c678['type'])continue;const _0x40eb6f=this['_getAttributeKey'](_0x10c678);if(_0x40eb6f&&this['_isBlockAttribute'](_0x40eb6f)&&'split'!=_0x2ab821['type'])continue;const _0x1ae776=_0x10c678['data']&&_0x10c678['data']['multipleBlocks'];('formatBlock'!=_0x10c678['type']||'split'==_0x2ab821['type']&&!_0x1ae776)&&(_0x33db99['containsRangeInObject']||'insertion'==_0x10c678['type']&&_0x33db99['isOwn']||_0x10c678['getFirstRange']()['containsRange'](_0x37c2ef)&&this['_breakSuggestionMarker'](_0x10c678,_0x7ad16a,_0x408cbb));}});},{'priority':'lowest'}),_0x1064d2['model']['on']('deleteContent',(_0x122be7,_0x1b8451)=>{const _0x1c031a=_0x1b8451[0x0],_0x1f4ab6=_0x1b8451[0x1];if(_0x1f4ab6&&_0x1f4ab6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c031a['isCollapsed'])return;const _0x45f6b6=_0x1064d2['model']['schema'],{start:_0x3805e0,end:_0x151c77}=_0x1c031a['getFirstRange'](),_0x1eb046=_0x3805e0['nodeAfter']&&_0x45f6b6['isLimit'](_0x3805e0['nodeAfter'])?null:_0x45f6b6['getNearestSelectionRange'](_0x3805e0,'forward'),_0x1cfa25=_0x151c77['nodeBefore']&&_0x45f6b6['isLimit'](_0x151c77['nodeBefore'])?null:_0x45f6b6['getNearestSelectionRange'](_0x151c77,'backward'),_0x7c3f50=_0x1064d2['model']['createRange'](_0x1eb046?_0x1eb046['start']:_0x3805e0,_0x1cfa25?_0x1cfa25['end']:_0x151c77);_0x1064d2['model']['change'](_0x42e3af=>{this['markDeletion'](_0x7c3f50);const _0x2ea2da=_0x1064d2['model']['schema']['getNearestSelectionRange'](_0x7c3f50['start']);_0x1c031a['is']('documentSelection')?_0x42e3af['setSelection'](_0x2ea2da):_0x1c031a['setTo'](_0x2ea2da);}),_0x122be7['stop']();},{'priority':_0x266552['normal']+0xa}),_0x1064d2['model']['on']('insertContent',(_0x458975,_0xf847a7)=>{const _0x2624c=_0xf847a7[_0xf847a7['length']-0x1];_0x2624c&&_0x2624c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1064d2['model']['change'](()=>{let _0x2a599e=_0x1064d2['model']['insertContent'](_0xf847a7[0x0],_0xf847a7[0x1],_0xf847a7[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a599e)return;_0x458975['return']=_0x2a599e['clone']();const _0x489211=_0x2a599e['end']['nodeBefore'],_0xcb33e8=_0x1064d2['model']['schema'];_0x489211&&_0xcb33e8['isBlock'](_0x489211)&&!_0xcb33e8['isObject'](_0x489211)&&(_0x2a599e=_0x1064d2['model']['createRange'](_0x2a599e['start'],_0x1064d2['model']['createPositionAt'](_0x489211,'end'))),this['markInsertion'](_0x2a599e);}),_0x458975['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c03d4=new $(_0x1064d2,this['_suggestions']);_0x1064d2['commands']['add']('acceptSuggestion',_0x3c03d4),this['enableCommand']('acceptSuggestion');const _0xb00aec=new B(_0x1064d2,this['_suggestions']);_0x1064d2['commands']['add']('discardSuggestion',_0xb00aec),this['enableCommand']('discardSuggestion'),_0x1064d2['commands']['add']('acceptAllSuggestions',new x(_0x1064d2,_0x3c03d4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1064d2['commands']['add']('discardAllSuggestions',new x(_0x1064d2,_0xb00aec,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1064d2['commands']['add']('acceptSelectedSuggestions',new R(_0x1064d2,_0x3c03d4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1064d2['commands']['add']('discardSelectedSuggestions',new R(_0x1064d2,_0xb00aec,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x14dda7=_0x1064d2['plugins']['get']('CommentsRepository');this['listenTo'](_0x14dda7,'addComment',(_0x8421b6,{threadId:_0x31cd74})=>{const _0x5357c9=this['_suggestions']['get'](_0x31cd74);_0x5357c9&&_0x5357c9['commentThread']&&0x1===_0x5357c9['commentThread']['length']&&this['_updateSuggestionData'](_0x31cd74,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x14dda7,'removeComment',(_0x284e91,{threadId:_0x52b51a})=>{const _0x3b8185=this['_suggestions']['get'](_0x52b51a);_0x3b8185&&_0x3b8185['commentThread']&&!_0x3b8185['commentThread']['length']&&this['_updateSuggestionData'](_0x52b51a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4eeddc){if(this['_adapter'])throw new _0x3504a2('track-changes-adapter-already-set',this);this['_adapter']=_0x4eeddc;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b6593=!0x1,toJSON:_0x1eba5d=!0x1}={}){const _0x2aa261=[];for(const _0x265720 of this['_suggestions']['values']())_0x2b6593&&!_0x265720['isInContent']||_0x2aa261['push'](_0x265720);return _0x1eba5d?_0x2aa261['map'](_0x37d5ce=>_0x37d5ce['toJSON']()):_0x2aa261;}['getSuggestion'](_0x47e070){const _0x59670a=this['_suggestions']['get'](_0x47e070);if(!_0x59670a)throw new _0x3504a2('track-changes-suggestion-not-found',this);return _0x59670a;}['hasSuggestion'](_0x2cde8d){return this['_suggestions']['has'](_0x2cde8d);}['addSuggestionData'](_0xebbbb6){const {authorId:_0x2b8599,id:_0x3263fa,attributes:_0x335c38}=_0xebbbb6,[_0x323ad9,_0x5aabe0]=_0xebbbb6['type']['split'](':'),_0x18d7cc=this['_suggestions']['get'](_0x3263fa)||this['_createSuggestion'](_0x323ad9,_0x5aabe0,_0x3263fa,_0x2b8599,_0x335c38);if(this['_addThreadToSuggestion'](_0x18d7cc),this['_checkSuggestionCorrectness'](_0x18d7cc,_0x323ad9,_0x5aabe0||null,_0x2b8599),_0x18d7cc['createdAt']=_0xebbbb6['createdAt'],_0x18d7cc['_isDataLoaded']=!0x0,_0x335c38&&_0x335c38['@external']){const _0x15f94d=_0x335c38['@external'],_0x4de5f2=this['_getExternalAuthor'](_0x15f94d['authorName']);_0x18d7cc['authoredAt']=_0x15f94d['createdAt'],_0x18d7cc['author']=_0x4de5f2,_0x18d7cc['isExternal']=!0x0;}else _0x18d7cc['authoredAt']=_0xebbbb6['createdAt'];switch(_0xebbbb6['data']&&(_0x18d7cc['data']=_0xebbbb6['data']),_0xebbbb6['attributes']&&(_0x18d7cc['attributes']=_0xebbbb6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x18d7cc['_saved']=!0x0),this['_suggestionState']['get'](_0x18d7cc)){case'notReady':this['_suggestionState']['set'](_0x18d7cc,'dataReady');break;case'markerReady':_0x18d7cc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x18d7cc])),this['_refreshSuggestionsChain'](new Set([_0x18d7cc])),this['_suggestionState']['set'](_0x18d7cc,'ready'),this['fire']('suggestionLoaded',_0x18d7cc)):this['_suggestionState']['set'](_0x18d7cc,'removed');}return _0x18d7cc;}['acceptSuggestion'](_0x2effd8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f5d19 of _0x2effd8['getAllAdjacentSuggestions']())_0x4f5d19['accept']();});});}['discardSuggestion'](_0x1f4e10){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x654050 of _0x1f4e10['getAllAdjacentSuggestions']())_0x654050['discard']();});});}['enableCommand'](_0x4c87bd,_0x48418d){const _0x13f269=this['editor']['commands']['get'](_0x4c87bd);if(!_0x13f269)throw new _0x3504a2('track-changes-command-not-found',this,{'commandName':_0x4c87bd});if(this['_enabledCommands']['has'](_0x13f269))throw new _0x3504a2('track-changes-enable-command-twice',this,{'commandName':_0x4c87bd});this['_enabledCommands']['add'](_0x13f269),_0x48418d&&_0x13f269['on']('execute',(_0x17210c,_0xb6b0a2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xb6b0a2['length']>0x0&&_0xb6b0a2[_0xb6b0a2['length']-0x1]&&_0xb6b0a2[_0xb6b0a2['length']-0x1]['forceDefaultExecution']?_0xb6b0a2['pop']():(_0x17210c['return']=_0x48418d((..._0x69c031)=>_0x13f269['execute'](..._0x69c031,{'forceDefaultExecution':!0x0}),..._0xb6b0a2),_0x17210c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2b7602){let _0x33faad,_0x3bafa7;const _0x103f5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33faad=_0x2b7602();}catch(_0xe20ea4){_0x3bafa7=_0xe20ea4;}return _0x103f5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3bafa7&&_0x3504a2['rethrowUnexpectedError'](_0x3bafa7,this),_0x33faad;}['markInsertion'](_0x3206e0,_0x16d5b3=null,_0x1fda80={}){if(_0x3206e0['isCollapsed'])return null;const _0xe2c410=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e8e35,meta:_0x23d909}of this['_findSuggestions'](_0x3206e0,'insertion'))if(_0x23d909['isOwn']){if(!_0x23d909['isNextTo']){if(_0x23d909['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3e8e35,_0x1fda80))continue;return _0x3e8e35;}if(Lt(_0x3e8e35,_0x1fda80))return _0x3e8e35;this['_breakSuggestionMarker'](_0x3e8e35,_0x3206e0['start'],_0x3206e0['end']);break;}if(_0x16d5b3==_0x3e8e35['subType']&&Lt(_0x3e8e35,_0x1fda80)){const _0x3eef60=_0x3e8e35['getFirstRange']();return _0x3eef60['start']['isEqual'](_0x3206e0['end'])?this['_setSuggestionRange'](_0x3e8e35,this['_model']['createRange'](_0x3206e0['start'],_0x3eef60['end'])):this['_setSuggestionRange'](_0x3e8e35,this['_model']['createRange'](_0x3eef60['start'],_0x3206e0['end'])),_0x3e8e35;}}const _0x291408=_0x23a7e6(),_0x5f5324=_0xe2c410['id'],_0x5601df=_0x16d5b3?'insertion:'+_0x16d5b3:'insertion',_0x1bd765=this['_setSuggestionData']({'id':_0x291408,'type':_0x5601df,'createdAt':new Date(),'authorId':_0x5f5324,'attributes':_0x1fda80});return this['_addSuggestionMarker'](_0x5601df,_0x291408,_0x5f5324,_0x3206e0),_0x1bd765;}['markMultiRangeInsertion'](_0x15b4a2,_0x4a59c0='multi',_0x380a3d={}){const _0x45d18e=this['editor']['plugins']['get']('Users')['me'],_0x3d2638=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4a59c0,'join');for(const _0x5517db of this['getSuggestions']())if(_0x5517db['author']['id']==_0x45d18e['id']&&'insertion'==_0x5517db['type']&&_0x5517db['subType']==_0x4a59c0&&Lt(_0x5517db,_0x380a3d)&&(_0x3d2638(_0x5517db['getRanges'](),_0x15b4a2)||_0x3d2638(_0x15b4a2,_0x5517db['getRanges']()))){for(const _0x47e366 of _0x15b4a2)_0x5517db['addRange'](_0x47e366);return _0x5517db;}for(const {suggestion:_0xe40693,meta:_0x180f19}of this['_findSuggestions'](_0x15b4a2,'insertion')){if(!_0x180f19['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x180f19['containsRangeInObject'])continue;if(!Lt(_0xe40693,_0x380a3d))continue;let _0x259c15=!0x0;for(const _0x1321c9 of _0xe40693['getRanges']())for(const _0x1e6abe of _0x15b4a2)if(!_0x1321c9['containsRange'](_0x1e6abe)){_0x259c15=!0x1;break;}if(_0x259c15)return _0xe40693;}const _0xae434a=_0x23a7e6(),_0x50ae3e=_0x45d18e['id'],_0x14c6d8='insertion:'+_0x4a59c0,_0x4c12ac=this['_setSuggestionData']({'id':_0xae434a,'type':_0x14c6d8,'createdAt':new Date(),'authorId':_0x50ae3e,'attributes':_0x380a3d});for(const _0x514b9d of _0x15b4a2)this['_addSuggestionMarker'](_0x14c6d8,_0xae434a,_0x50ae3e,_0x514b9d,u['getMultiRangeId']());return _0x4c12ac;}['markInlineFormat'](_0x52f484,_0x1e0f7b,_0x4b615c=null,_0x261db0={}){if(_0x4b615c=_0x4b615c||Vt(_0x1e0f7b),_0x52f484['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3323d1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b615c,'accept');return this['forceDefaultExecution'](()=>_0x3323d1([_0x52f484],_0x1e0f7b,_0x261db0)),null;}const _0x1785e4=this['editor']['plugins']['get']('Users')['me'],_0x7add74=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4c9bfa,meta:_0x4eee0d}of this['_findSuggestions'](_0x52f484,'insertion'))_0x4eee0d['isOwn']&&!_0x4eee0d['isInsideObject']&&_0x7add74['push'](..._0x4c9bfa['getRanges']());}const _0x146305=function(_0x5dd79f,_0x3f2986){const _0x110937=[];for(const _0x33f3c1 of _0x3f2986){const _0x1321b6=_0x5dd79f['getIntersection'](_0x33f3c1);_0x1321b6&&_0x110937['push'](_0x1321b6);}return _0x110937;}(_0x52f484,_0x7add74),_0x87888=function(_0xc1032d,_0x29f3bc){const _0x2131f1=[_0xc1032d];for(const _0x5c7faf of _0x29f3bc){let _0x5b3297=0x0;for(;_0x5b3297<_0x2131f1['length'];){const _0x228dda=_0x2131f1[_0x5b3297]['getDifference'](_0x5c7faf);_0x2131f1['splice'](_0x5b3297,0x1,..._0x228dda),_0x5b3297+=_0x228dda['length'];}}return _0x2131f1;}(_0x52f484,_0x7add74);_0x146305['length']&&this['_model']['change'](()=>{for(const _0x356181 of _0x146305){const _0x30a36d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b615c,'accept');this['forceDefaultExecution'](()=>_0x30a36d([_0x356181],_0x1e0f7b,_0x261db0));}});for(const _0xf599 of _0x87888){let _0x8928bb=null,_0x221120=_0xf599['start'],_0x4209fc=_0xf599['end'];for(const {suggestion:_0x4f9762,meta:_0x659d5a}of this['_findSuggestions'](_0xf599,'formatInline')){if(!_0x659d5a['isOwn'])continue;if(_0x4f9762['subType']!=_0x4b615c)continue;if(!Lt(_0x4f9762,_0x261db0))continue;const _0x41683c=_0x4f9762['getFirstRange']();if(_0x41683c['containsRange'](_0xf599,!0x0))return null;_0x221120=_0x221120['isBefore'](_0x41683c['start'])?_0x221120:_0x41683c['start'],_0x4209fc=_0x4209fc['isAfter'](_0x41683c['end'])?_0x4209fc:_0x41683c['end'],_0x8928bb?_0x41683c['start']['isBefore'](_0x8928bb['getFirstRange']()['start'])?(_0x8928bb['removeMarkers'](),_0x8928bb=_0x4f9762):_0x4f9762['removeMarkers']():_0x8928bb=_0x4f9762;}const _0x3f426b=this['_model']['createRange'](_0x221120,_0x4209fc);if(_0x8928bb)this['_setSuggestionRange'](_0x8928bb,_0x3f426b);else{const _0x55e955=_0x23a7e6(),_0xf85cc3=_0x1785e4['id'];this['_setSuggestionData']({'id':_0x55e955,'type':'formatInline:'+_0x4b615c,'data':_0x1e0f7b,'createdAt':new Date(),'authorId':_0xf85cc3,'attributes':_0x261db0}),this['_addSuggestionMarker']('formatInline:'+_0x4b615c,_0x55e955,_0xf85cc3,_0x3f426b);}}return null;}['markBlockFormat'](_0x4371f5,_0x15ac14,_0x572b0e=[],_0x3fadc9=null,_0x2c0b50={}){_0x15ac14['formatGroupId']||(_0x15ac14['formatGroupId']=_0x15ac14['commandName']),_0x15ac14['multipleBlocks']=_0x4371f5['is']('range'),_0x3fadc9=_0x3fadc9||Vt(_0x15ac14);const _0xfe4b0a=_0x572b0e['map'](_0x2b1fa7=>Gt(_0x2b1fa7,this['_model'])),_0xce762e=_0x4371f5['is']('range')?_0x4371f5:Gt(_0x4371f5,this['_model']);if('never'===this['_trackFormatChanges']){const _0x17684d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fadc9,'accept');return this['forceDefaultExecution'](()=>_0x17684d([_0xce762e],_0x15ac14,_0x2c0b50)),null;}_0xfe4b0a['push'](_0xce762e);let _0x2be3d0=!0x0;for(const _0x7742df of _0xfe4b0a)if(!this['_rangeIsInLocalUserInsertion'](_0x7742df)){_0x2be3d0=!0x1;break;}if(_0x2be3d0&&'always'!==this['_trackFormatChanges']){const _0x818771=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fadc9,'accept');return this['forceDefaultExecution'](()=>_0x818771([_0xce762e],_0x15ac14,_0x2c0b50)),null;}let _0xb3540f=null,_0xd52c4f=_0xce762e['start'],_0x32c0b3=_0xce762e['end'];for(const {suggestion:_0xc00479,meta:_0x4480b9}of this['_findSuggestions'](_0xce762e,'formatBlock')){if(!_0x4480b9['isOwn'])continue;if(_0x4480b9['isNextTo']||_0x4480b9['containsRangeInObject']||_0x4480b9['isInsideObject'])continue;if(_0xc00479['data']['formatGroupId']!=_0x15ac14['formatGroupId'])continue;if(!Lt(_0xc00479,_0x2c0b50))continue;const _0x718275=_0xc00479['getFirstRange']();if(_0xc00479['subType']==_0x3fadc9){if(_0x718275['containsRange'](_0xce762e,!0x0))return null;_0xd52c4f=_0xd52c4f['isBefore'](_0x718275['start'])?_0xd52c4f:_0x718275['start'],_0x32c0b3=_0x32c0b3['isAfter'](_0x718275['end'])?_0x32c0b3:_0x718275['end'],_0xb3540f?_0x718275['start']['isBefore'](_0xb3540f['getFirstRange']()['start'])?(_0xb3540f['removeMarkers'](),_0xb3540f=_0xc00479):_0xc00479['removeMarkers']():_0xb3540f=_0xc00479;}else{const _0x39a7e4=_0xce762e['getIntersection'](_0x718275);this['_cutOutSuggestionMarker'](_0xc00479,_0x39a7e4);}}const _0x2de32e=this['editor']['plugins']['get']('Users')['me'],_0x22a1bd=_0x23a7e6(),_0x35bd25=_0x2de32e['id'];if(_0xb3540f)return this['_setSuggestionRange'](_0xb3540f,this['_model']['createRange'](_0xd52c4f,_0x32c0b3)),_0xb3540f;{const _0x1a9dd1=this['_setSuggestionData']({'id':_0x22a1bd,'type':'formatBlock:'+_0x3fadc9,'data':_0x15ac14,'createdAt':new Date(),'authorId':_0x35bd25,'attributes':_0x2c0b50});return this['_addSuggestionMarker']('formatBlock:'+_0x3fadc9,_0x22a1bd,_0x35bd25,this['_model']['createRange'](_0xd52c4f,_0x32c0b3)),_0x1a9dd1;}}['markMultiRangeBlockFormat'](_0x5c5060,_0x37a8a7,_0x52ae06=[],_0x13ec0e=null,_0x4ed1cd={}){_0x37a8a7['formatGroupId']||(_0x37a8a7['formatGroupId']=_0x37a8a7['commandName']);const _0x55f92b=_0x5c5060[0x0];_0x37a8a7['multipleBlocks']=_0x55f92b['is']('range'),_0x13ec0e=_0x13ec0e||Vt(_0x37a8a7);const _0x56fb2e=_0x52ae06['map'](_0x2a8103=>Gt(_0x2a8103,this['_model'])),_0x3cce85=_0x55f92b['is']('range')?_0x5c5060:_0x5c5060['map'](_0x5637cf=>Gt(_0x5637cf,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1304bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ec0e,'accept');return this['forceDefaultExecution'](()=>_0x1304bf(_0x3cce85,_0x37a8a7,_0x4ed1cd)),null;}_0x56fb2e['push'](..._0x3cce85);let _0x5335b8=!0x0;for(const _0x5a7e8e of _0x56fb2e)if(!this['_rangeIsInLocalUserInsertion'](_0x5a7e8e)){_0x5335b8=!0x1;break;}if(_0x5335b8&&'always'!==this['_trackFormatChanges']){const _0x4bc6a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ec0e,'accept');return this['forceDefaultExecution'](()=>_0x4bc6a1(_0x3cce85,_0x37a8a7,_0x4ed1cd)),null;}const _0x11a0e8=this['editor']['plugins']['get']('Users')['me'];for(const _0xbe804 of this['getSuggestions']()){if(_0xbe804['author']['id']!=_0x11a0e8['id'])continue;if('formatBlock'!=_0xbe804['type']||_0xbe804['data']['formatGroupId']!=_0x37a8a7['formatGroupId'])continue;if(!Lt(_0xbe804,_0x4ed1cd))continue;const _0x435f68=_0xbe804['subType']==_0x13ec0e;for(let _0x3abe05=0x0;_0x3abe05<_0x3cce85['length'];_0x3abe05++){const _0x4c1d46=_0x3cce85[_0x3abe05];for(const _0x1687c4 of _0xbe804['getMarkers']()){const _0x5a0586=_0x1687c4['getRange']();if(_0x4c1d46['isEqual'](_0x5a0586)){_0x435f68?(_0x3cce85['splice'](_0x3abe05,0x1),_0x3abe05--):_0xbe804['removeMarker'](_0x1687c4['name']);break;}}}}if(0x0==_0x3cce85['length'])return null;const _0x2477b2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ec0e,'join');for(const _0x4109d6 of this['getSuggestions']())if(_0x4109d6['author']['id']==_0x11a0e8['id']&&'formatBlock'==_0x4109d6['type']&&_0x4109d6['data']['formatGroupId']==_0x37a8a7['formatGroupId']&&_0x4109d6['subType']==_0x13ec0e&&Lt(_0x4109d6,_0x4ed1cd)&&(_0x2477b2(_0x4109d6['getRanges'](),_0x3cce85)||_0x2477b2(_0x3cce85,_0x4109d6['getRanges']()))){for(const _0x5d1d3d of _0x3cce85)_0x4109d6['addRange'](_0x5d1d3d);return _0x4109d6;}const _0xc1f095=_0x23a7e6(),_0x38a8bb=_0x11a0e8['id'],_0x5e3fd6='formatBlock:'+_0x13ec0e,_0x6cd506=this['_setSuggestionData']({'id':_0xc1f095,'type':_0x5e3fd6,'data':_0x37a8a7,'createdAt':new Date(),'authorId':_0x38a8bb,'attributes':_0x4ed1cd});for(const _0x23c6ed of _0x3cce85)this['_addSuggestionMarker'](_0x5e3fd6,_0xc1f095,_0x38a8bb,_0x23c6ed,u['getMultiRangeId']());return _0x6cd506;}['markDeletion'](_0x4201f8,_0x38b9ff=null,_0x5ee99e={}){if(_0x4201f8['isCollapsed'])return null;const _0x242c6c=this['editor']['plugins']['get']('Users')['me'],_0x2b0395=new _0x151eba(_0x4201f8['start'],_0x4201f8['end']);for(const {suggestion:_0x8f73b6,meta:_0x41199f}of this['_findSuggestions'](_0x2b0395,'insertion'))if(_0x41199f['isOwn']&&!_0x41199f['isNextTo']){if(_0x8f73b6['isMultiRange']){const _0x5ddb3b=_0x8f73b6['getRanges']()['filter'](_0x2395ac=>'$graveyard'!=_0x2395ac['root']['rootName']);_0x5ddb3b['every'](_0x19aa38=>_0x2b0395['containsRange'](_0x19aa38,!0x0))&&_0x8f73b6['discard']();if(_0x5ddb3b['some'](_0x5de26e=>_0x5de26e['containsRange'](_0x2b0395,!0x0))){const _0x427fac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38b9ff,'accept');return this['forceDefaultExecution'](()=>_0x427fac([_0x2b0395],null,_0x5ee99e)),null;}}else{const _0x3cafd1=_0x2b0395['getIntersection'](_0x8f73b6['getFirstRange']());null!==_0x3cafd1&&_0x8f73b6['_onDiscard']([_0x3cafd1],null,_0x5ee99e);}}if(_0x2b0395['detach'](),_0x2b0395['isCollapsed']||'$graveyard'==_0x2b0395['root']['rootName'])return null;let _0x1999c8=null,_0x3994ad=_0x2b0395['start'],_0x301594=_0x2b0395['end'];const _0x166caa=this['_findSuggestions'](_0x2b0395,'deletion');for(const {suggestion:_0x2dead3,meta:_0x46e8c6}of _0x166caa){const _0x56640b=this['_model']['createRange'](_0x3994ad,_0x301594);if(_0x46e8c6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46e8c6['containsRangeInObject']&&!_0x46e8c6['isInsideObject'])){if(_0x2dead3['isMultiRange']){if(!Lt(_0x2dead3,_0x5ee99e))continue;let _0x280102=!0x0;for(const _0x6447f2 of _0x2dead3['getRanges']()){if(_0x6447f2['containsRange'](_0x56640b,!0x0))return _0x2dead3;_0x56640b['containsRange'](_0x6447f2)||(_0x280102=!0x1);}_0x280102&&_0x2dead3['discard']();}else{const _0x2e68d1=_0x2dead3['getFirstRange']();if(_0x2e68d1['containsRange'](_0x56640b,!0x0))return _0x2dead3;if(!Lt(_0x2dead3,_0x5ee99e)){_0x56640b['containsRange'](_0x2e68d1)?_0x2dead3['removeMarkers']():_0x2e68d1['containsPosition'](_0x3994ad)?_0x3994ad=_0x2e68d1['end']:_0x2e68d1['containsPosition'](_0x301594)&&(_0x301594=_0x2e68d1['start']);continue;}_0x3994ad=_0x3994ad['isBefore'](_0x2e68d1['start'])?_0x3994ad:_0x2e68d1['start'],_0x301594=_0x301594['isAfter'](_0x2e68d1['end'])?_0x301594:_0x2e68d1['end'],_0x5ee99e=Object['assign']({},_0x2dead3['attributes']),_0x1999c8?_0x2e68d1['start']['isBefore'](_0x1999c8['getFirstRange']()['start'])?(_0x1999c8['removeMarkers'](),_0x1999c8=_0x2dead3):_0x2dead3['removeMarkers']():_0x1999c8=_0x2dead3;}}}if(_0x1999c8)return this['_setSuggestionRange'](_0x1999c8,this['_model']['createRange'](_0x3994ad,_0x301594)),_0x1999c8;{const _0x3acdfb=_0x23a7e6(),_0x3e3c71=this['_model']['createRange'](_0x3994ad,_0x301594),_0xed9379=_0x242c6c['id'],_0x3f5f1a=_0x38b9ff?'deletion:'+_0x38b9ff:'deletion',_0x34a4a6=this['_setSuggestionData']({'id':_0x3acdfb,'type':_0x3f5f1a,'createdAt':new Date(),'authorId':_0xed9379,'attributes':_0x5ee99e});return this['_addSuggestionMarker'](_0x3f5f1a,_0x3acdfb,_0xed9379,_0x3e3c71),_0x34a4a6;}}['markMultiRangeDeletion'](_0x39359a,_0x246960='multi',_0x2570b8={}){const _0x769d71=this['editor']['plugins']['get']('Users')['me'],_0x5b6454=_0x39359a['map'](_0x272780=>new _0x151eba(_0x272780['start'],_0x272780['end'])),_0x45252f=new Set();for(const {suggestion:_0x3bdd4f,meta:_0x57cfd0}of this['_findSuggestions'](_0x5b6454,'insertion'))_0x57cfd0['isOwn']&&!_0x57cfd0['isNextTo']&&_0x45252f['add'](_0x3bdd4f);for(const _0xa11630 of _0x45252f)if(_0xa11630['isMultiRange']){const _0xa4e348=_0xa11630['getRanges']();(!_0xa11630['attributes']||!_0xa11630['attributes']['skipNestingCheck'])&&(_0xa4e348['every'](_0x363ee1=>_0x5b6454['some'](_0x316464=>_0x316464['containsRange'](_0x363ee1,!0x0)))&&_0xa11630['discard']());if(_0x5b6454['every'](_0x47f39c=>_0xa4e348['some'](_0x3ed900=>_0x3ed900['containsRange'](_0x47f39c,!0x0)))){const _0x19dbe0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x246960,'accept');return this['forceDefaultExecution'](()=>_0x19dbe0(_0x39359a,null,_0x2570b8)),null;}}else{const _0x3a76a0=_0xa11630['getFirstRange']();_0x5b6454['some'](_0x437ff0=>_0x437ff0['containsRange'](_0x3a76a0,!0x0))&&_0xa11630['discard']();if(_0x5b6454['every'](_0x480674=>_0x3a76a0['containsRange'](_0x480674,!0x0))){const _0x3e61ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x246960,'accept');return this['forceDefaultExecution'](()=>_0x3e61ad(_0x5b6454,null,_0x2570b8)),null;}}const _0x3d6544=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x246960,'join');let _0x57c485=null;for(const _0x195b0c of this['getSuggestions']())if(_0x195b0c['author']['id']==_0x769d71['id']&&_0x195b0c['isInContent']&&'deletion'==_0x195b0c['type']&&_0x195b0c['subType']==_0x246960&&Lt(_0x195b0c,_0x2570b8)&&(_0x3d6544(_0x195b0c['getRanges'](),_0x5b6454)||_0x3d6544(_0x5b6454,_0x195b0c['getRanges']()))){if(_0x57c485){if(_0x195b0c['commentThread']&&_0x195b0c['commentThread']['length'])continue;for(const _0x563f2c of _0x195b0c['getRanges']())_0x57c485['isIntersectingWithRange'](_0x563f2c)||_0x57c485['addRange'](_0x563f2c);_0x195b0c['removeMarkers']();}else{_0x57c485=_0x195b0c;for(const _0x3f6d12 of _0x5b6454)_0x195b0c['isIntersectingWithRange'](_0x3f6d12)||_0x195b0c['addRange'](_0x3f6d12);}}if(_0x57c485)return _0x57c485;_0x45252f['clear']();for(const {suggestion:_0xad7f45,meta:_0x180511}of this['_findSuggestions'](_0x5b6454,'deletion'))_0x180511['isOwn']&&(this['_mergeNestedSuggestions']||!_0x180511['containsRangeInObject']&&!_0x180511['isInsideObject'])&&Lt(_0xad7f45,_0x2570b8)&&_0x45252f['add'](_0xad7f45);for(const _0xa3c2f2 of _0x45252f){const _0x2d1977=_0xa3c2f2['getRanges']();if(!_0x2570b8||!_0x2570b8['skipNestingCheck']){if(_0x5b6454['every'](_0x36ea74=>_0x2d1977['some'](_0x3f2669=>_0x3f2669['containsRange'](_0x36ea74,!0x0))))return _0xa3c2f2;}(!_0xa3c2f2['attributes']||!_0xa3c2f2['attributes']['skipNestingCheck'])&&(_0x2d1977['every'](_0x2f108c=>_0x5b6454['some'](_0x57a057=>_0x57a057['containsRange'](_0x2f108c,!0x0)))&&_0xa3c2f2['discard']());}const _0x58b222=_0x23a7e6(),_0x5393fd=_0x769d71['id'],_0x130f4f='deletion:'+_0x246960,_0x592572=this['_setSuggestionData']({'id':_0x58b222,'type':_0x130f4f,'createdAt':new Date(),'authorId':_0x5393fd,'attributes':_0x2570b8});for(const _0x4662c4 of _0x5b6454)_0x4662c4['detach'](),_0x4662c4['isCollapsed']||'$graveyard'==_0x4662c4['root']['rootName']||this['_addSuggestionMarker'](_0x130f4f,_0x58b222,_0x5393fd,_0x4662c4,u['getMultiRangeId']());return _0x592572;}['markAttributeChange'](_0x4b379e,_0x292776,_0x1bfaf2,_0x519e9e,_0xc81a92){if(_0x4b379e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3ce7c2=this['editor']['plugins']['get']('Users')['me']['id'],_0x250d95=Array['from'](this['_suggestions']['values']())['filter'](_0x428bb5=>'attribute'==_0x428bb5['type']&&_0x428bb5['data']['key']==_0x292776&&_0x428bb5['isIntersectingWithRange'](_0x4b379e));if('default'===this['_trackFormatChanges']){const _0x3224f5=this['_findSuggestions'](_0x4b379e,'insertion')['filter'](({meta:_0x102524})=>_0x102524['isOwn']&&!_0x102524['isInsideObject']&&!_0x102524['isNextTo'])['map'](({suggestion:_0x9f5ae3})=>_0x9f5ae3);_0x250d95['unshift'](..._0x3224f5);}const _0x5642b7=new Map([[_0x4b379e,_0x1bfaf2]]);for(const _0x57c20e of _0x250d95){const _0x5bc90a='attribute'==_0x57c20e['type']?_0x57c20e['data']['oldValue']:void 0x0,_0x2af53d=_0x57c20e['getFirstRange'](),_0x43e73d=Array['from'](_0x5642b7['keys']())['find'](_0x18959a=>_0x18959a['isIntersecting'](_0x2af53d));if(!_0x43e73d)continue;const _0x23f782=_0x43e73d['getDifference'](_0x2af53d);this['_isBlockAttribute'](_0x292776)&&'insertion'==_0x57c20e['type']&&0x0!=_0x23f782['length']||(_0x5642b7['delete'](_0x43e73d),_0x23f782['forEach'](_0x52e391=>{_0x5642b7['set'](_0x52e391,_0x1bfaf2);}),'insertion'!=_0x57c20e['type']&&_0x5bc90a!=_0x519e9e&&_0x5642b7['set'](_0x43e73d['getIntersection'](_0x2af53d),_0x5bc90a));}const _0x3e3b15=[];for(const [_0x20977d,_0x159bc6]of _0x5642b7){const _0x21fece=_0x23a7e6(),_0x503373={'key':_0x292776,'oldValue':_0x159bc6,'newValue':_0x519e9e};_0x292776['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':_0x292776});const _0x361920=('attribute:'+(_0x292776+'|'+Vt({'newValue':_0x519e9e})))['substring'](0x0,0x3c),_0x12b751=this['_setSuggestionData']({'id':_0x21fece,'type':_0x361920,'data':_0x503373,'createdAt':new Date(),'authorId':_0x3ce7c2,'attributes':_0xc81a92});_0x3e3b15['push'](_0x12b751),this['_addSuggestionMarker'](_0x361920,_0x21fece,_0x3ce7c2,_0x20977d);}return _0x3e3b15;}['_registerBlockAttribute'](_0x34814c){this['_blockAttributeKeys']['add'](_0x34814c);}['_registerInlineAttribute'](_0x3e3f3c){this['_inlineAttributeKeys']['add'](_0x3e3f3c);}['_enableDefaultAttributesIntegration'](_0x54f58d,_0x90252f=[],_0x549396=[]){this['enableCommand'](_0x54f58d,(_0x203932,..._0x569351)=>{this['_recordAttributeChanges'](()=>{_0x203932(..._0x569351);});});for(const _0x153ebe of _0x90252f)this['_registerInlineAttribute'](_0x153ebe);for(const _0x3d36cc of _0x549396)this['_registerBlockAttribute'](_0x3d36cc);}['_getAttributeKey'](_0x2809a0){return'attribute'==_0x2809a0['type']?_0x2809a0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5063da,_0x21658e){const _0x506a02=_0x5063da['getFirstMarker']();this['_model']['change'](_0xa21325=>{_0xa21325['updateMarker'](_0x506a02,{'range':_0x21658e});});}['_addThreadToSuggestion'](_0x3812c1){const _0x436bdc=_0x3812c1['id'],_0x409649=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x436bdc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x409649,'threadId':_0x436bdc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xa9920a=this['_commentsRepository']['getCommentThread'](_0x436bdc);_0xa9920a['unbind']('isRemovable'),_0xa9920a['isRemovable']=!0x1,_0x3812c1['commentThread']=_0xa9920a;}['_checkSuggestionCorrectness'](_0x466045,_0x3e7fc3,_0x10de05,_0x5dbf35){if(_0x466045['type']!=_0x3e7fc3||_0x466045['subType']!=_0x10de05||_0x466045['creator']['id']!=_0x5dbf35)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3504a2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27ade2,_0x3ebea5){const _0x502144=_0x27ade2['getFirstRange']();if(_0x3ebea5['isEqual'](_0x502144))_0x27ade2['removeMarkers']();else{if(_0x502144['containsRange'](_0x3ebea5)){const _0xda6375=this['_model']['createPositionAt'](_0x3ebea5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27ade2,this['_model']['createRange'](_0x502144['start'],_0xda6375));const _0x1b8059=_0x23a7e6(),_0x590e1f=_0x27ade2['creator']['id'],_0x418de4=_0x27ade2['type']+':'+_0x27ade2['subType'];this['_setSuggestionData']({'id':_0x1b8059,'type':_0x418de4,'createdAt':new Date(),'authorId':_0x590e1f,'data':_0x27ade2['data'],'attributes':_0x27ade2['attributes']});const _0x165b29=this['_model']['createPositionAt'](_0x3ebea5['end']['parent'],'after'),_0x356d6e=this['_model']['createRange'](_0x165b29,_0x502144['end']);this['_addSuggestionMarker'](_0x418de4,_0x1b8059,_0x590e1f,_0x356d6e);}else{if(_0x502144['containsPosition'](_0x3ebea5['start'])){const _0x5187b4=this['_model']['createPositionAt'](_0x3ebea5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27ade2,this['_model']['createRange'](_0x502144['start'],_0x5187b4));}else{const _0x10d5d0=this['_model']['createPositionAt'](_0x3ebea5['end']['parent'],'after');this['_setSuggestionRange'](_0x27ade2,this['_model']['createRange'](_0x10d5d0,_0x502144['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x31ce3c){for(const {suggestion:_0x293cc6,meta:_0x31865a}of this['_findSuggestions'](_0x31ce3c,'insertion')){if(!_0x31865a['isOwn'])continue;const _0x185667=_0x293cc6['getRanges']();for(const _0x5fcf04 of _0x185667)if(!_0x31ce3c['getDifference'](_0x5fcf04)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2505ef){const _0x269143=this['editor']['plugins']['get']('Users')['getUser'](_0x2505ef);if(!_0x269143)throw new _0x3504a2('track-changes-user-not-found',this);return _0x269143;}['_getExternalAuthor'](_0x23389a){const _0x4a1a57=this['editor']['plugins']['get']('Users'),_0xa70460=_0x249181('external:'+_0x23389a),_0xc5bad5=_0x4a1a57['getUser'](_0xa70460);return _0xc5bad5||_0x4a1a57['addUser']({'id':_0xa70460,'name':_0x23389a});}['_createSuggestion'](_0xc95bbf,_0xe0a7ed,_0x326916,_0x5d3caa,_0x2b5ec0){const _0x57ba2e=this['_getAuthorFromId'](_0x5d3caa),_0x2a6fe5=this['_suggestionFactory']['buildSuggestion'](_0xc95bbf,_0xe0a7ed,_0x326916,_0x57ba2e,_0x2b5ec0,_0x5784ed=>{this['_updateSuggestionData'](_0x326916,{'attributes':_0x5784ed});const _0x6f6222=this['getSuggestion'](_0x326916);this['_joinWithAdjacentSuggestions'](new Set([_0x6f6222])),this['_refreshSuggestionsChain'](new Set([_0x6f6222]));});return this['listenTo'](_0x2a6fe5,'accept',()=>{this['_updateSuggestionData'](_0x326916,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2a6fe5,'discard',()=>{this['_updateSuggestionData'](_0x326916,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x326916,_0x2a6fe5),this['_suggestionState']['set'](_0x2a6fe5,'notReady'),_0x2a6fe5;}['_splitMarkerName'](_0x4b1f43){const _0x2ccedb=_0x4b1f43['split'](':');return{'group':_0x2ccedb[0x0],'type':_0x2ccedb[0x1],'subType':_0x2ccedb['length']>=0x5?_0x2ccedb[0x2]:null,'id':_0x2ccedb['length']<0x5?_0x2ccedb[0x2]:_0x2ccedb[0x3],'authorId':_0x2ccedb['length']<0x5?_0x2ccedb[0x3]:_0x2ccedb[0x4],'markerCount':0x6==_0x2ccedb['length']?_0x2ccedb[0x5]:null};}['_breakSuggestionMarker'](_0x3d559c,_0x3bd5c9,_0x1716bd){const _0x46011b=_0x3d559c['getFirstRange'](),_0x55ea9c=_0x46011b['start'],_0xf8451d=_0x46011b['end'];this['_setSuggestionRange'](_0x3d559c,this['_model']['createRange'](_0x55ea9c,_0x3bd5c9));const _0x2e569a=_0x23a7e6(),_0x33be14=_0x3d559c['creator']['id'],_0x655db1=_0x3d559c['type']+(_0x3d559c['subType']?':'+_0x3d559c['subType']:'');this['_setSuggestionData']({'id':_0x2e569a,'type':_0x655db1,'createdAt':new Date(),'authorId':_0x33be14,'originalSuggestionId':_0x3d559c['id'],'attributes':_0x3d559c['attributes'],'data':_0x3d559c['data']});const _0x1ad238=this['_getAttributeKey'](_0x3d559c);('formatBlock'==_0x3d559c['type']||_0x1ad238&&this['_isBlockAttribute'](_0x1ad238))&&(_0x1716bd=this['_model']['createPositionBefore'](_0x1716bd['parent'])),this['_addSuggestionMarker'](_0x655db1,_0x2e569a,_0x33be14,this['_model']['createRange'](_0x1716bd,_0xf8451d));}['_findSuggestions'](_0x3cd5f9,_0x4640d5=null){const _0x28caf6=[],_0x576c24=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3cd5f9)||(_0x3cd5f9=[_0x3cd5f9]);for(const _0x4ff9ff of this['getSuggestions']()){if(!_0x4ff9ff['isInContent'])continue;if(_0x4640d5&&_0x4ff9ff['type']!=_0x4640d5)continue;let _0x3dc2be=!0x1;for(const _0x3bd94e of _0x4ff9ff['getRanges']()){for(const _0x175c12 of _0x3cd5f9){const _0x10415c=_0x175c12['start']['isEqual'](_0x3bd94e['end'])||_0x175c12['end']['isEqual'](_0x3bd94e['start']);if(_0x10415c||_0x175c12['getIntersection'](_0x3bd94e)){const _0x13e546=_0x175c12['containsRange'](_0x3bd94e)&&Rt(this['_model']['schema'],_0x3bd94e['start'],_0x175c12),_0x31289d=_0x3bd94e['containsRange'](_0x175c12)&&Rt(this['_model']['schema'],_0x175c12['start'],_0x3bd94e);_0x28caf6['push']({'suggestion':_0x4ff9ff,'meta':{'isOwn':_0x576c24==_0x4ff9ff['author'],'isNextTo':_0x10415c,'isInsideObject':_0x13e546,'containsRangeInObject':_0x31289d}}),_0x3dc2be=!0x0;break;}}if(_0x3dc2be)break;}}return _0x28caf6;}['_addSuggestionMarker'](_0x36b59e,_0x2ec638,_0x1d58e4,_0x4ede3c,_0x54896b){this['_model']['change'](_0x1224a1=>{let _0x28baca='suggestion:'+_0x36b59e+':'+_0x2ec638+':'+_0x1d58e4;_0x54896b&&(_0x28baca=_0x28baca+':'+_0x54896b),_0x1224a1['addMarker'](_0x28baca,{'range':_0x4ede3c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4eee09){const _0x337757=_0x4eee09['previous'],_0x4866ec=_0x4eee09['next'];_0x4eee09['previous']=null,_0x4eee09['next']=null,null!=_0x337757&&_0x337757['next']==_0x4eee09&&(_0x337757['next']=_0x4866ec),null!=_0x4866ec&&_0x4866ec['previous']==_0x4eee09&&(_0x4866ec['previous']=_0x337757),'ready'==this['_suggestionState']['get'](_0x4eee09)&&(this['_suggestionState']['set'](_0x4eee09,'removed'),this['fire']('suggestionUnloaded',_0x4eee09,_0x337757,_0x4866ec));}['_setSuggestionData'](_0x1ab9c4){const _0x47bffc=_0x1ab9c4['id'],_0x420ecb=this['addSuggestionData'](_0x1ab9c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x28eaf3=this['editor']['plugins']['get']('PendingActions'),_0x44f280=_0x420ecb['hasComments'],_0x2446f8=_0x420ecb['subType']?_0x420ecb['type']+':'+_0x420ecb['subType']:_0x420ecb['type'],_0x5eebe0=this['editor']['locale'],_0x4aa89a=_0x28eaf3['add'](o(_0x5eebe0,'PENDING_ACTION_SUGGESTION')),_0x47830e={'id':_0x47bffc,'type':_0x2446f8,'hasComments':_0x44f280,'data':_0x1ab9c4['data']||null,'originalSuggestionId':_0x1ab9c4['originalSuggestionId']||null,'attributes':_0x420ecb['attributes']};this['_adapter']['addSuggestion'](_0x47830e)['then'](_0x341f76=>{_0x420ecb['_saved']=!0x0,_0x28eaf3['remove'](_0x4aa89a),_0x341f76&&_0x341f76['createdAt']&&(this['_suggestions']['get'](_0x47bffc)['createdAt']=_0x341f76['createdAt']);})['catch'](_0x69a28b=>{throw _0x280507('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x420ecb['discard']();}),_0x420ecb['stopListening'](),this['_suggestions']['delete'](_0x420ecb['id']),this['_suggestionState']['delete'](_0x420ecb),_0x69a28b;});}return _0x420ecb;}['_isBlockAttribute'](_0x2a0a3f){return this['_blockAttributeKeys']['has'](_0x2a0a3f);}['_updateSuggestionData'](_0x3534be,_0x3d0ed4){const _0x39ca64=this['editor']['plugins']['get']('PendingActions'),_0x26f93a=this['getSuggestion'](_0x3534be);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x26f93a['_saved']){const _0x25d186=_0x39ca64['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3534be,_0x3d0ed4)['then'](()=>{_0x39ca64['remove'](_0x25d186);});}else _0x26f93a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3534be,_0x3d0ed4);});}}['_getSuggestionData'](_0x922ca2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3504a2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x922ca2);}['_handleNewSuggestionMarker'](_0x279e52){const {id:_0xcd9fe8,type:_0x2818f7,subType:_0xb60567,authorId:_0x264cb2}=this['_splitMarkerName'](_0x279e52),_0x1c0bd6=this['_suggestions']['get'](_0xcd9fe8)||this['_createSuggestion'](_0x2818f7,_0xb60567,_0xcd9fe8,_0x264cb2,{});switch(this['_checkSuggestionCorrectness'](_0x1c0bd6,_0x2818f7,_0xb60567,_0x264cb2),this['_suggestionState']['get'](_0x1c0bd6)){case'notReady':this['_getSuggestionData'](_0xcd9fe8)['then'](_0x5a23fd=>{let _0x37bb8f=Promise['resolve']();_0x5a23fd['hasComments']&&(_0x37bb8f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcd9fe8})),_0x37bb8f['then'](()=>{this['addSuggestionData'](_0x5a23fd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1c0bd6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcd9fe8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1c0bd6,'ready'),this['fire']('suggestionLoaded',_0x1c0bd6);break;case'ready':this['fire']('suggestionChanged',_0x1c0bd6);}return _0x1c0bd6['addMarkerName'](_0x279e52),_0x1c0bd6;}['_refreshSuggestionsChain'](_0x565b66){const _0x4c5d2c=Array['from'](_0x565b66),_0x56ca97=_0x4c5d2c['filter'](_0x27deb7=>'attribute'==_0x27deb7['type']);this['_refreshAttributeSuggestionsChain'](_0x56ca97);const _0x25d9cd=_0x4c5d2c['filter'](_0x24ad2a=>!_0x24ad2a['isMultiRange']&&'attribute'!=_0x24ad2a['type']),_0x1fa3b4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19095c=>!_0x19095c['isMultiRange']&&'attribute'!=_0x19095c['type']),_0x27ccd9=_0x1fa3b4['filter'](_0x48ab6e=>!_0x565b66['has'](_0x48ab6e)),_0x2711c8=new Map(_0x1fa3b4['map'](_0x3ba3aa=>[_0x3ba3aa,this['_suggestionFactory']['getSuggestionCallback'](_0x3ba3aa['type'],_0x3ba3aa['subType'],'chain')])),_0x1c71dc=new Map(_0x1fa3b4['map'](_0x138457=>[_0x138457,_0x138457['getFirstRange']()])),_0xe57602=new Set(),_0x1bf1a9=new Set();for(let _0x5bb48c=0x0;_0x5bb48c<_0x25d9cd['length'];_0x5bb48c++)_0x3506c3(_0x25d9cd[_0x5bb48c],_0x25d9cd,_0x5bb48c+0x1);for(let _0x246b69=0x0;_0x246b69<_0x25d9cd['length'];_0x246b69++)_0x3506c3(_0x25d9cd[_0x246b69],_0x27ccd9,0x0);const _0x37cb19=new Set();for(let _0x2d2a34=0x0;_0x2d2a34<_0x25d9cd['length'];_0x2d2a34++){const _0x134c97=_0x25d9cd[_0x2d2a34];!_0x1bf1a9['has'](_0x134c97)&&_0x134c97['previous']&&(_0x37cb19['add'](_0x134c97['previous']),_0x134c97['previous']['next']===_0x134c97&&(_0x134c97['previous']['next']=null),_0x134c97['previous']=null),!_0xe57602['has'](_0x134c97)&&_0x134c97['next']&&(_0x37cb19['add'](_0x134c97['next']),_0x134c97['next']['previous']===_0x134c97&&(_0x134c97['next']['previous']=null),_0x134c97['next']=null);}function _0x3506c3(_0xec456a,_0x4f2d7d,_0x25c425){for(let _0x176b93=_0x25c425;_0x176b93<_0x4f2d7d['length'];_0x176b93++){const _0x1703f0=_0x1612f2(_0xec456a,_0x4f2d7d[_0x176b93]);_0x1703f0&&(_0x1703f0[0x0]['next']=_0x1703f0[0x1],_0x1703f0[0x1]['previous']=_0x1703f0[0x0],_0xe57602['add'](_0x1703f0[0x0]),_0x1bf1a9['add'](_0x1703f0[0x1]));}}function _0x1612f2(_0x37656c,_0x497681){if(_0x37656c['author']['id']!==_0x497681['author']['id'])return null;const _0x540559=_0x2711c8['get'](_0x37656c)(_0x37656c,_0x497681,_0x1c71dc['get'](_0x37656c),_0x1c71dc['get'](_0x497681));if(!_0x540559)return null;return _0x2711c8['get'](_0x497681)(_0x37656c,_0x497681,_0x1c71dc['get'](_0x37656c),_0x1c71dc['get'](_0x497681))?_0x540559[0x1]['commentThread']&&_0x540559[0x1]['commentThread']['length']?null:_0x540559:null;}_0x37cb19['size']&&this['_refreshSuggestionsChain'](_0x37cb19);}['_refreshAttributeSuggestionsChain'](_0x3fce25){if(0x0==_0x3fce25['length'])return;const _0x39ca66=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x415cd5=>'attribute'==_0x415cd5['type']&&_0x415cd5['_isDataLoaded']),_0x2daef1=[],_0x4da902=new Map();for(const _0x912fae of _0x39ca66){const _0x472834=_0x249181(_0x912fae['attributes']);_0x4da902['has'](_0x472834)||(_0x4da902['set'](_0x472834,_0x2daef1['length']),_0x2daef1['push']([]));const _0x390c94=_0x4da902['get'](_0x472834);_0x2daef1[_0x390c94]['push'](_0x912fae);}!(function(){_0x2daef1['sort']((_0x50f748,_0xa0faf3)=>{const _0xe0159a=_0x50f748[0x0]['createdAt'],_0x2b0d9a=_0xa0faf3[0x0]['createdAt'];return _0xe0159a==_0x2b0d9a?_0x50f748[0x0]['attributes']['groupId']<_0xa0faf3[0x0]['attributes']['groupId']?-0x1:0x1:_0xe0159a<_0x2b0d9a?-0x1:0x1;});for(const _0x4a69a7 of _0x2daef1)_0x4a69a7['sort']((_0x2f779e,_0x5553e0)=>_0x2f779e['id']<_0x5553e0['id']?-0x1:0x1);}());for(let _0x2121d0=0x0;_0x2121d0<_0x2daef1['length'];_0x2121d0++){if(0x0==_0x2daef1[_0x2121d0]['length'])continue;const _0x544e26=[];for(let _0x35cc87=_0x2121d0+0x1;_0x35cc87<_0x2daef1['length'];_0x35cc87++)0x0!=_0x2daef1[_0x35cc87]['length']&&_0x650610(_0x2daef1[_0x2121d0],_0x2daef1[_0x35cc87])&&_0x544e26['push'](_0x35cc87);for(const _0x45b3c7 of _0x544e26)_0x2daef1[_0x2121d0]=_0x2daef1[_0x2121d0]['concat'](_0x2daef1[_0x45b3c7]),_0x2daef1[_0x45b3c7]=[];}for(const _0x12f7cc of _0x2daef1)for(let _0x1ec146=0x0;_0x1ec146<_0x12f7cc['length'];_0x1ec146++)_0x12f7cc[_0x1ec146]['next']=_0x12f7cc[_0x1ec146+0x1]||null;for(const _0x17d24f of _0x2daef1)for(let _0x2666ab=0x0;_0x2666ab<_0x17d24f['length'];_0x2666ab++)_0x17d24f[_0x2666ab]['previous']=_0x17d24f[_0x2666ab-0x1]||null;function _0x650610(_0x5a5d68,_0x1201f2){if(_0x5a5d68[0x0]['attributes']['groupId']!==_0x1201f2[0x0]['attributes']['groupId']&&_0x5a5d68[0x0]['author']!==_0x1201f2[0x0]['author'])return!0x1;if(!function(_0x1ce4f0,_0x20404d){if(!_0x1ce4f0['hasComments']&&!_0x20404d['hasComments'])return!0x0;if(_0x1ce4f0['hasComments']&&_0x20404d['hasComments'])return!0x1;if(_0x1ce4f0['hasComments']&&_0x20404d['createdAt']<_0x1ce4f0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20404d['hasComments']&&_0x1ce4f0['createdAt']<_0x20404d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a5d68[0x0],_0x1201f2[0x0]))return!0x1;const _0x6d84f0=Bt(_0x5a5d68[0x0]['attributes'],'groupId'),_0x1fc05e=Bt(_0x1201f2[0x0]['attributes'],'groupId');if(!_0x32b3e3(_0x6d84f0,_0x1fc05e))return!0x1;return!!_0x5a5d68['every'](_0x44345=>_0x1201f2['some'](_0x3be798=>_0x44345['getFirstRange']()['isEqual'](_0x3be798['getFirstRange']())))&&_0x1201f2['every'](_0x53e58b=>_0x5a5d68['some'](_0x104e72=>_0x53e58b['getFirstRange']()['isEqual'](_0x104e72['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4f6756){const _0x3e3174=Array['from'](_0x4f6756),_0x20104e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x429d44=_0x20104e['filter'](_0x4a5d27=>!_0x4f6756['has'](_0x4a5d27)),_0x245c2f=new Map(_0x3e3174['map'](_0x4b12a6=>[_0x4b12a6,this['_suggestionFactory']['getSuggestionCallback'](_0x4b12a6['type'],_0x4b12a6['subType'],'join')])),_0x3fe137=new Map(_0x20104e['map'](_0x1c7697=>[_0x1c7697,_0x1c7697['getRanges']()]));for(let _0x44b33c=0x0;_0x44b33c<_0x3e3174['length'];_0x44b33c++){if(_0x5b677f(this,_0x3e3174[_0x44b33c],_0x3e3174,_0x44b33c+0x1))return!0x0;}for(let _0x21b710=0x0;_0x21b710<_0x3e3174['length'];_0x21b710++){if(_0x5b677f(this,_0x3e3174[_0x21b710],_0x429d44,0x0))return!0x0;}return!0x1;function _0x5b677f(_0x50c803,_0x469cfd,_0x3cc364,_0x3b5811){for(let _0x5609c8=_0x3b5811;_0x5609c8<_0x3cc364['length'];_0x5609c8++){const _0x41c2e4=_0x3cc364[_0x5609c8];if(_0x41c2e4['type']!==_0x469cfd['type']||_0x41c2e4['author']['id']!==_0x469cfd['author']['id']||_0x41c2e4['subType']!==_0x469cfd['subType'])continue;if(!Pt(_0x469cfd,_0x41c2e4,['groupId']))continue;if('attribute'==_0x469cfd['type']&&_0x469cfd['data']['oldValue']!=_0x41c2e4['data']['oldValue'])continue;if('attribute'==_0x469cfd['type']&&_0x50c803['_isBlockAttribute'](_0x469cfd['data']['key']))continue;if('formatBlock'==_0x469cfd['type']){const _0x705fe5=_0x50c803['editor']['model'],_0x53556b=_0x469cfd['getContainedElement']();if(_0x53556b&&(_0x705fe5['schema']['isObject'](_0x53556b)||_0x705fe5['schema']['isLimit'](_0x53556b)))continue;}const _0x9ae832=_0x245c2f['get'](_0x469cfd),_0x2377a1=_0x3fe137['get'](_0x469cfd),_0x45e4ac=_0x3fe137['get'](_0x41c2e4),_0x49b1c0=_0x469cfd['commentThread']&&_0x469cfd['commentThread']['length'],_0x2bc4c2=_0x41c2e4['commentThread']&&_0x41c2e4['commentThread']['length'];if(!_0x49b1c0&&_0x9ae832(_0x45e4ac,_0x2377a1))return _0x50c803['_joinSuggestions'](_0x41c2e4,_0x469cfd),_0x3fe137['delete'](_0x469cfd),!0x0;if(!_0x2bc4c2&&_0x9ae832(_0x2377a1,_0x45e4ac))return _0x50c803['_joinSuggestions'](_0x469cfd,_0x41c2e4),_0x3fe137['delete'](_0x41c2e4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5174cc,_0x19ce11){if(_0x5174cc['isMultiRange']){for(const _0x48026f of _0x19ce11['getRanges']())_0x5174cc['addRange'](_0x48026f);}else{const _0x151c66=_0x19ce11['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5174cc,this['_model']['createRange'](_0x5174cc['getFirstRange']()['start'],_0x151c66));}_0x19ce11['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3d42ee,_0x4969e3){const _0x3cfd44=_0x3d42ee['startsWith']('format')||_0x3d42ee['startsWith']('attribute')?'FORMATTING':_0x3d42ee['toUpperCase']();return o(this['editor']['locale'],_0x4969e3+'_'+_0x3cfd44+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x23bb8b=this['editor'];if(!_0x23bb8b['ui'])return;const {ariaLiveAnnouncer:_0x54a601}=_0x23bb8b['ui'];_0x3aa985(this['_model'],({left:_0x46b84f,entered:_0x1d3395})=>{for(const _0x3d3179 of _0x46b84f){const {group:_0x3bbee3,type:_0x106ca0}=this['_splitMarkerName'](_0x3d3179['name']);if('suggestion'===_0x3bbee3){_0x54a601['announce'](this['_getMarkerAnnouncementText'](_0x106ca0,'LEAVE'));break;}}for(const _0x35a0ba of _0x1d3395){const {group:_0x5894f4,type:_0xec4757}=this['_splitMarkerName'](_0x35a0ba['name']);if('suggestion'===_0x5894f4){_0x54a601['announce'](this['_getMarkerAnnouncementText'](_0xec4757,'ENTER'));break;}}});}['_processAttributeChanges'](_0x32a648){if(this['_recordAttributeSuggestions'])return!0x1;const _0x345340=this['editor'],_0x58aec1=_0x345340['model']['document']['differ']['getChanges']();if(0x0==_0x58aec1['length'])return!0x1;const _0x566e15=[],_0x55ceaf=_0x58aec1['filter'](_0x541b9f=>'attribute'==_0x541b9f['type']),_0x1b8e7c=_0x58aec1['filter'](_0x2a1bd1=>'insert'==_0x2a1bd1['type']&&'$text'!=_0x2a1bd1['name']),_0x4a38f8=_0x58aec1['filter'](_0x14b10b=>'remove'==_0x14b10b['type']&&'$text'!=_0x14b10b['name']);for(const _0x38b302 of _0x55ceaf)_0x566e15['push']({'key':_0x38b302['attributeKey'],'newValue':_0x38b302['attributeNewValue'],'oldValue':_0x38b302['attributeOldValue'],'range':Ot(_0x38b302['range'],_0x345340['model'])});for(const _0x2e84aa of _0x1b8e7c){const _0x3436c2=_0x4a38f8['find'](_0x506740=>_0x506740['position']['isEqual'](_0x2e84aa['position']));_0x3436c2&&_0x566e15['push']({'key':m,'newValue':_0x2e84aa['name'],'oldValue':_0x3436c2['name'],'range':_0x345340['model']['createRangeOn'](_0x2e84aa['position']['nodeAfter'])});}return 0x0!=_0x566e15['length']&&this['_reduceExistingSuggestions'](_0x32a648,_0x566e15);}['_processAttributeSuggestions'](_0x3014b9){let _0x213cf8=!0x1;const _0x4673c7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d9a01=>_0x3d9a01['data']['newRange']&&_0x3d9a01['name']['startsWith']('suggestion:attribute:'));for(const _0x29fbcf of _0x4673c7){const {subType:_0x14857c,id:_0x2529b9}=this['_splitMarkerName'](_0x29fbcf['name']),_0x1ad848=_0x14857c['split']('|')[0x0];for(const _0x4cba57 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4cba57['id']!=_0x2529b9&&'attribute'==_0x4cba57['type']&&_0x4cba57['data']&&_0x4cba57['data']['key']==_0x1ad848&&_0x4cba57['getFirstRange']()['isIntersecting'](_0x29fbcf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4cba57,_0x29fbcf['data']['newRange'],_0x3014b9),_0x213cf8=!0x0);}return _0x213cf8;}['_recordAttributeChanges'](_0x1fb16c){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1fb16c();}['_isRegisteredAttribute'](_0x1f0f8f){const _0x432b4b=this['_isBlockAttribute'](_0x1f0f8f),_0xf2a26b=this['_inlineAttributeKeys']['has'](_0x1f0f8f);return _0x432b4b||_0xf2a26b;}['_reduceExistingSuggestions'](_0xd0c8cc,_0x4394b6){if(0x0==_0x4394b6['length'])return!0x1;let _0x1e44e7=!0x1;for(const _0x5d7e26 of _0x4394b6){const _0x4564bd=this['_findSuggestions'](_0x5d7e26['range'],'attribute')['filter'](_0x242a25=>!_0x242a25['meta']['isNextTo'])['map'](_0x440806=>_0x440806['suggestion']),_0x3253c2=_0x249181({'newValue':_0x5d7e26['newValue']});_0x4564bd['filter'](_0xddc9eb=>{const [_0x595d1f,_0x2b7c9f]=_0xddc9eb['subType']['split']('|');return _0x595d1f==_0x5d7e26['key']&&_0x2b7c9f!=_0x3253c2;})['forEach'](_0x1c2157=>{this['_reduceSuggestionAttributeRange'](_0x1c2157,_0x5d7e26['range'],_0xd0c8cc),_0x1e44e7=!0x0;});}return _0x1e44e7;}['_reduceSuggestionAttributeRange'](_0x1394ec,_0x554533,_0x1442a5){const _0x30c022=_0x1394ec['getFirstRange']()['getDifference'](_0x554533);0x0!==_0x30c022['length']?0x1!==_0x30c022['length']?this['_breakSuggestionMarker'](_0x1394ec,_0x554533['start'],_0x554533['end']):this['_setSuggestionRange'](_0x1394ec,_0x30c022[0x0]):_0x1442a5['removeMarker'](_0x1394ec['getFirstMarker']());}constructor(_0x21c637){function _0x1d6274(_0x6d311a){return _0x6d311a['map'](_0x4c858e=>String['fromCharCode'](_0x4c858e))['join']('');}super(_0x21c637),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24ea68,_0x5d60cf,_0x9e738b,_0x253f68)=>{this['_model']['change'](()=>{for(const _0x4adf59 of[..._0x253f68,..._0x9e738b])this['_model']['markers']['has'](_0x4adf59)&&_0x21c637['editing']['reconvertMarker'](_0x4adf59);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21c637['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(),_0x21c637['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21c637['config']['get']('trackChanges.trackFormatChanges'),_0x21c637['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21c637['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x21c637,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1d6274([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d6274([0x34,0x30,0x34,0x38,0x30,0x38,0x35,0x30]);}}class xt{['buildSuggestion'](_0x4fb534,_0x52c2cd,_0x88eab8,_0x56335a,_0x194523,_0x1f5ce2){return new u(this['_model'],{'type':_0x4fb534,'subType':_0x52c2cd,'id':_0x88eab8,'author':_0x56335a,'creator':_0x56335a,'attributes':_0x194523,'onAttributesChange':_0x1f5ce2,'onAccept':(..._0x35a1a3)=>this['getSuggestionCallback'](_0x4fb534,_0x52c2cd,'accept')(..._0x35a1a3),'onDiscard':(..._0x4a8cb2)=>this['getSuggestionCallback'](_0x4fb534,_0x52c2cd,'discard')(..._0x4a8cb2)});}['registerCustomCallback'](_0x1bdc6b,_0x48bcda,_0x38ca18,_0x638fbd){const _0x2d5bb0=_0x1bdc6b+':'+_0x48bcda+':'+_0x38ca18;this['_customCallbacks']['set'](_0x2d5bb0,_0x638fbd);}['getSuggestionCallback'](_0x1231b2,_0x83187a,_0x627986){const _0x1ac2e1=_0x1231b2+':'+_0x83187a+':'+_0x627986;return this['_customCallbacks']['get'](_0x1ac2e1)||this['_defaultCallbacks']['get'](_0x1231b2+':'+_0x627986);}['_registerDefaultCallbacks'](){const _0x3a092f=()=>!0x1,_0x591e8f=_0xb5713d=>{_0xb5713d['sort']((_0x575c87,_0x568c9b)=>_0x575c87['start']['isBefore'](_0x568c9b['start'])?0x1:-0x1),this['_model']['change'](_0x45b9cb=>{for(const _0x310036 of _0xb5713d){let _0xf56099;_0xf56099=_0x310036['end']['isAtEnd']&&_0x310036['end']['parent']==_0x310036['start']['nodeAfter']?_0x45b9cb['createSelection'](_0x310036['start']['nodeAfter'],'on'):_0x45b9cb['createSelection'](_0x310036),this['_model']['deleteContent'](_0xf56099,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2ee204=(_0x34d187,_0x3e6956)=>{_0x3e6956&&this['_model']['change'](_0x366c7d=>{const {commandName:_0x122752,commandParams:_0x20674f=[]}=_0x3e6956,_0x21825a=_0x34d187['map'](_0xdf4ef3=>(Tt(_0xdf4ef3)&&(_0xdf4ef3=this['_model']['createRange'](_0xdf4ef3['end'])),_0xdf4ef3))['filter'](_0x22c795=>'$graveyard'!==_0x22c795['root']['rootName']);if(_0x21825a['length']<0x1)return;const _0x1a569d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c0582=>_0x151eba['fromRange'](_0x5c0582));_0x366c7d['setSelection'](_0x21825a);for(const _0x2b682e of this['_editor']['commands']['commands']())_0x2b682e['refresh']();_0x20674f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x122752,..._0x20674f);const _0x23ec51=_0x1a569d['filter'](_0x2dc1f2=>'$graveyard'!=_0x2dc1f2['root']['rootName']);_0x23ec51['length']>0x0&&_0x366c7d['setSelection'](_0x23ec51);for(const _0x588da8 of _0x1a569d)_0x588da8['detach']();});},_0x3e6bc3=(_0x1373ca,_0x2c7a11)=>0x1==_0x1373ca['length']&&0x1==_0x2c7a11['length']&&_0x1373ca[0x0]['end']['isEqual'](_0x2c7a11[0x0]['start']),_0x2a7665=(_0x2570ee,_0x1bc221,_0x47a64e,_0x28a9e1)=>Ft(_0x2570ee,_0x1bc221,_0x47a64e,_0x28a9e1,this['_model'])?[_0x2570ee,_0x1bc221]:Ft(_0x1bc221,_0x2570ee,_0x28a9e1,_0x47a64e,this['_model'])?[_0x1bc221,_0x2570ee]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3a092f),this['_defaultCallbacks']['set']('insertion:discard',_0x591e8f),this['_defaultCallbacks']['set']('insertion:join',_0x3e6bc3),this['_defaultCallbacks']['set']('insertion:chain',_0x2a7665),this['_defaultCallbacks']['set']('deletion:accept',_0x591e8f),this['_defaultCallbacks']['set']('deletion:discard',_0x3a092f),this['_defaultCallbacks']['set']('deletion:join',_0x3e6bc3),this['_defaultCallbacks']['set']('deletion:chain',_0x2a7665),this['_defaultCallbacks']['set']('formatInline:accept',_0x2ee204),this['_defaultCallbacks']['set']('formatInline:discard',_0x3a092f),this['_defaultCallbacks']['set']('formatInline:join',_0x3e6bc3),this['_defaultCallbacks']['set']('formatInline:chain',_0x3a092f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2ee204),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3a092f),this['_defaultCallbacks']['set']('formatBlock:join',_0x3e6bc3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3a092f),this['_defaultCallbacks']['set']('attribute:accept',_0x3a092f),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b8105,_0x208ce4)=>{if(!_0x208ce4)return;const _0x353fae=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2b031e=>{if(_0x208ce4['key']==m)for(const _0xed222e of _0x1b8105){const _0x28627a=_0xed222e['start']['nodeAfter'],_0x391eed=_0x208ce4['oldValue'];_0x2b031e['rename'](_0x28627a,_0x391eed);}else{if(_0x353fae['_isBlockAttribute'](_0x208ce4['key'])){for(const _0x335aa9 of _0x1b8105)void 0x0!==_0x208ce4['oldValue']?_0x2b031e['setAttribute'](_0x208ce4['key'],_0x208ce4['oldValue'],_0x335aa9['start']['nodeAfter']):_0x2b031e['removeAttribute'](_0x208ce4['key'],_0x335aa9['start']['nodeAfter']);}else{for(const _0x35f30b of _0x1b8105)_0x208ce4['oldValue']?_0x2b031e['setAttribute'](_0x208ce4['key'],_0x208ce4['oldValue'],_0x35f30b):_0x2b031e['removeAttribute'](_0x208ce4['key'],_0x35f30b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3e6bc3);}constructor(_0x391752){this['_editor']=_0x391752,this['_model']=_0x391752['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x426e18,_0x1cd3e2,_0x1ab751){for(const _0x5ef5e2 of _0x1cd3e2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5ef5e2['root']==_0x5ef5e2)return!0x1;if(!_0x1ab751['containsItem'](_0x5ef5e2))return!0x1;if(_0x426e18['isObject'](_0x5ef5e2)||_0x426e18['isLimit'](_0x5ef5e2))return!0x0;}return!0x1;}function Tt(_0x2520d1){return _0x2520d1['end']['parent']==_0x2520d1['start']['nodeAfter']&&_0x2520d1['end']['isAtStart'];}function Et(_0xebaaf9,_0x4d77d4,_0x10dd9a,_0x1f6166){const _0x3aa914=_0x400420=>!_0x400420['item']['is']('$textProxy')&&!_0x1f6166['isObject'](_0x400420['item']),_0x31c0e0=_0xebaaf9['start']['getLastMatchingPosition'](_0x3aa914),_0x262f5f=_0xebaaf9['end']['getLastMatchingPosition'](_0x3aa914,{'direction':'backward'});return(!_0xebaaf9['start']['isEqual'](_0x31c0e0)||!_0xebaaf9['end']['isEqual'](_0x262f5f))&&(_0x31c0e0['isBefore'](_0x262f5f)?_0x10dd9a['updateMarker'](_0x4d77d4,{'range':_0x10dd9a['createRange'](_0x31c0e0,_0x262f5f)}):_0x10dd9a['removeMarker'](_0x4d77d4),!0x0);}function Vt(_0x496cf9){return _0x249181(_0x496cf9);}function Ut(_0x2f2237){const _0x6ff254=_0x2f2237['start']['nodeAfter'];return _0x6ff254&&_0x6ff254['is']('element');}function Ot(_0x52effc,_0x5d68f6){return null==_0x52effc['end']['nodeBefore']&&_0x52effc['end']['parent']==_0x52effc['start']['nodeAfter']?Gt(_0x52effc['start']['nodeAfter'],_0x5d68f6):_0x52effc;}function Gt(_0x4d2b34,_0x418061){const _0x8d9726=_0x418061['schema']['isObject'](_0x4d2b34)||_0x418061['schema']['isSelectable'](_0x4d2b34);return _0x418061['createRange'](_0x418061['createPositionAt'](_0x4d2b34,'before'),_0x8d9726?_0x418061['createPositionAfter'](_0x4d2b34):_0x418061['createPositionAt'](_0x4d2b34,'end'));}function Ft(_0x272a51,_0x14dd39,_0x1dab11,_0xb8e449,_0x5fd444){if(!Pt(_0x272a51,_0x14dd39))return!0x1;if(_0x1dab11['end']['isEqual'](_0xb8e449['start']))return!0x0;if(_0x272a51['type']!=_0x14dd39['type'])return!0x1;if(!_0x1dab11['end']['isTouching'](_0xb8e449['start']))return!0x1;const _0xd8c951=_0x5fd444['createRange'](_0x1dab11['end'],_0xb8e449['start'])['getWalker']();for(const _0x33c940 of _0xd8c951)if(['elementStart','elementEnd']['includes'](_0x33c940['type'])&&_0x5fd444['schema']['isLimit'](_0x33c940['item']))return!0x1;return!0x0;}function Pt(_0x531934,_0xe5286d,_0x40b62d=[]){return!(!_0x531934['_isDataLoaded']||!_0xe5286d['_isDataLoaded'])&&_0x32b3e3(Bt(_0x531934['attributes'],_0x40b62d),Bt(_0xe5286d['attributes'],_0x40b62d));}function Lt(_0x67801,_0x1bdf92){const _0x34efb1=Ht(_0x67801['attributes']),_0x4397b5=Ht(_0x1bdf92);if(!_0x67801['_isDataLoaded'])return!0x1;for(const _0x3c39d7 of Object['keys'](_0x4397b5))if(!_0x32b3e3(_0x34efb1[_0x3c39d7],_0x4397b5[_0x3c39d7]))return!0x1;return!0x0;}function Ht(_0x313ce7){const _0x254038=Object['assign']({},_0x313ce7);return delete _0x254038['skipNestingCheck'],delete _0x254038['tablePasteChainId'],_0x254038;}class oe extends _0x2533b6(){['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 _0x22d910=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x22d910);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x2c35f0,_0x6deb7c,_0x1146b7,_0x5f531b){super(),this['model']=_0x6deb7c,this['view']=_0x1146b7,this['commentThreadController']=_0x5f531b,this['_editor']=_0x2c35f0,this['_acceptCommand']=_0x2c35f0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2c35f0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x45c5f8,_0xb103f6)=>_0x45c5f8||_0xb103f6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c482c=>_0x2c482c&&this['_editor']['model']['canEditAt'](_0x6deb7c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5864bb=>_0x5864bb&&this['_editor']['model']['canEditAt'](_0x6deb7c['getRanges']())),this['_pendingAction']=null,_0x1146b7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1146b7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1146b7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1146b7,'change:isDirty',()=>{_0x1146b7['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x194e67{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d10ce}=this['_config'];this['commentsListView']=new _0x5d10ce(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',_0x25e58e=>_0x25e58e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x59f57c,_0x2c0473)=>_0x59f57c||!!_0x2c0473);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x116d26}=this['_config'],_0x586143=new _0x116d26(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3ecd07=_0x586143['commentInputView'];return _0x586143['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3ecd07,'value',(_0x1e1a26,_0x2f70d6,_0x47bd36)=>!!_0x47bd36||_0x1e1a26&&!_0x2f70d6),_0x3ecd07['on']('submit',(_0x3c4a4e,_0x4b2dd6)=>{this['fire']('addComment',_0x4b2dd6),_0x3ecd07['editor']['setData']('');}),_0x3ecd07['on']('cancel',()=>this['focus']()),_0x3ecd07['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x586143;}constructor(_0x4b7013,_0x52f3df,_0x2a0ffe,_0xd12254){super(_0x4b7013),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x52f3df['authoredAt']),this['bind']('authoredAt')['to'](_0x52f3df),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x52f3df,this['_localUser']=_0x2a0ffe,this['_config']=_0xd12254,_0xd12254['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x422ecb=this['bindTemplate'],_0x438e81=[{'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':_0x422ecb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x422ecb['to']('authoredAt',_0x1d68d6=>this['_config']['formatDateTime'](_0x1d68d6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x438e81['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5f502c={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x422ecb['if']('isActive','ck-suggestion-wrapper--active'),_0x422ecb['to']('type',_0x2aa795=>'ck-suggestion-'+_0x2aa795),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x438e81}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5f502c['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x5f502c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x278a30,_0x928f90,_0x5892cc)=>{this['_descriptionElement']['innerHTML']=_0x5892cc;});}['_createButton'](_0x1b837f,_0x29c2d8,_0x165c8b,_0x83bc58,_0x37e8){const _0x1db338=new _0x1da9d3(this['locale']);return _0x1db338['set']({'label':_0x1b837f,'icon':_0x29c2d8,'tooltip':!0x0,'tooltipPosition':_0x37e8}),_0x1db338['extendTemplate']({'attributes':{'class':_0x165c8b}}),_0x1db338['on']('execute',()=>{this['fire'](_0x83bc58,this['_model']['id']);}),_0x1db338;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x1c3981,_0x4df122,_0x559473,_0x59ddbe){super(_0x1c3981,_0x4df122,_0x559473,_0x59ddbe),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x8a13e6=>_0x8a13e6&&_0x8a13e6[0x0]?_0x8a13e6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x20be62,_0x209eb1)=>{let _0x36d055='';for(const _0x4ed432 of _0x20be62)_0x36d055+='<p>'+ds(_0x4ed432['content'],_0x4ed432['color'])+'</p>';return _0x209eb1?_0x36d055:_0x448f34(_0x36d055,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x1c3981,'Accept\x20suggestion'),_0x18119a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x1c3981,'Discard\x20suggestion'),_0x18119a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x233b76(_0x1c3981,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x1efccd,_0x107f33){let _0x818cdd='';return _0x818cdd+=_0x1efccd['split']('*')['map']((_0x38a12d,_0x1c3178)=>_0x1c3178%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x38a12d)+'</span>':us(_0x38a12d))['join'](''),_0x107f33&&(_0x818cdd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x107f33['value']+'\x22\x20title=\x22'+_0x107f33['title']+'\x22></span>'),_0x818cdd;}function us(_0x335d18){const _0x397ecc=document['createElement']('span');return _0x397ecc['innerText']=_0x335d18,_0x397ecc['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x10cfe7{static get['requires'](){return[p,_0x2312f1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x10403e,_0xd1660f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e9cf4,_0x7ff22d]of this['_handleControllerBuffer']){const _0x56f0e4=this['_suggestionToController']['has'](_0x5e9cf4);_0x56f0e4||_0x7ff22d?_0x56f0e4&&_0x7ff22d&&this['_destroyController'](_0x5e9cf4):this['_initializeController'](_0x5e9cf4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x10403e,_0xd1660f);}['init'](){const _0x39b537=this['editor'],_0x5d1c67=_0x39b537['plugins']['get']('TrackChangesEditing'),_0x44ddee=_0x39b537['plugins']['get']('Annotations'),_0x680acb=_0x39b537['plugins']['get']('EditorAnnotations'),_0x35a206=_0x39b537['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x680acb['addSourceCollector'](()=>{const _0x58975e=[];for(const [_0x59a271,_0x16445f]of Array['from'](this['_suggestionToController'])){const _0x4024df=_0x59a271['getAllAdjacentSuggestions'](),_0x213115=[];for(const _0xaf2c91 of _0x4024df){if(!_0xaf2c91['isInContent'])continue;if(_0xaf2c91['isMultiRange']){_0x213115['push'](..._0xaf2c91['getRanges']());continue;}const _0x371654=_0xaf2c91['getFirstRange']();if(_0x213115['length']>0x0){const _0x52d0d8=_0x213115[0x0]['getJoined'](_0x371654);if(_0x52d0d8){_0x213115[0x0]=_0x52d0d8;continue;}}_0x213115['push'](_0x371654);}_0x58975e['push']([_0x16445f['view'],_0x213115]);}return _0x58975e;}),this['listenTo'](_0x5d1c67,'suggestionLoaded',(_0x1d7fe6,_0x4b2f0a)=>{this['listenTo'](_0x4b2f0a,'change:previous',(_0xef8f46,_0x46833c,_0x495618,_0x5b17d5)=>{_0x4b2f0a['isInContent']&&(null==_0x495618?(this['_updateController'](_0x5b17d5['head']),this['_handleSuggestionControllerDelayed'](_0x4b2f0a,!0x1)):(this['_updateController'](_0x495618['head']),null==_0x5b17d5&&this['_handleSuggestionControllerDelayed'](_0x4b2f0a,!0x0)));}),null!==_0x4b2f0a['previous']?this['_updateController'](_0x4b2f0a['head']):this['_handleSuggestionControllerDelayed'](_0x4b2f0a,!0x1);}),this['listenTo'](_0x5d1c67,'suggestionUnloaded',(_0x26fc8d,_0x45c7c5,_0x3ee441)=>{this['stopListening'](_0x45c7c5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x45c7c5),this['_suggestionToController']['has'](_0x45c7c5)&&this['_destroyController'](_0x45c7c5),_0x3ee441&&this['_updateController'](_0x3ee441['head']);}),this['listenTo'](_0x5d1c67,'suggestionChanged',(_0x297128,_0x4bd661)=>{this['_updateController'](_0x4bd661);}),this['listenTo'](_0x44ddee,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35a206,'addComment',(_0xfdae8f,{threadId:_0x368459,isFromAdapter:_0x4c7bd2})=>{if(_0x4c7bd2||!_0x5d1c67['hasSuggestion'](_0x368459))return;const _0x5b347d=_0x5d1c67['getSuggestion'](_0x368459);this['_suggestionToController']['get'](_0x5b347d)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5a61d0=this['editor']['plugins']['get']('Annotations'),_0x12aba6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177294=Array['from'](_0x5a61d0['activeAnnotations'],_0x2b2d1a=>_0x2b2d1a['innerView'])['filter'](_0x1c4c34=>this['_viewToController']['has'](_0x1c4c34)),_0x7fff6c=[];for(const _0x776b49 of _0x177294){const _0x2af31d=this['_viewToController']['get'](_0x776b49)['model']['getAllAdjacentSuggestions']();_0x7fff6c['push'](..._0x2af31d['reduce']((_0x4f22a9,_0x489265)=>[..._0x4f22a9,..._0x489265['getMarkerNames']()],[]));}_0x12aba6['activeMarkers']=_0x7fff6c;}['_addUIComponentsToFactory'](){const _0x5a89c2=this['editor'],_0x43df95=_0x5a89c2['locale'],_0x26ab0c=o(_0x43df95,'Track\x20changes'),_0xd0bfe5=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x26ab0c,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x43df95,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x43df95,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x43df95,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x43df95,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x1e9422 of _0xd0bfe5)if(ae(_0x1e9422)){const _0x33e000=_0x5a89c2['commands']['get'](_0x1e9422['model']['commandName']);_0x1e9422['model']['bind']('isOn','isEnabled')['to'](_0x33e000,'value','isEnabled');}_0x5a89c2['ui']['componentFactory']['add']('trackChanges',_0x39f95f=>this['_createToolbarButton'](_0x39f95f,_0xd0bfe5,_0x26ab0c)),_0x5a89c2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x336acb=>this['_createMenuBarMenu'](_0x336acb,_0xd0bfe5,_0x26ab0c));}['_createToolbarButton'](_0x16fafc,_0x1a2eea,_0x1ffc15){const _0x58080b=zt(_0x16fafc,Zt),_0xeaddbb=this['editor']['commands']['get']('trackChanges');_0x58080b['buttonView']['set']({'tooltip':_0x1ffc15,'label':_0x1ffc15,'icon':ie}),_0x58080b['buttonView']['bind']('isOn')['to'](_0xeaddbb,'value'),_0x58080b['buttonView']['on']('execute',()=>{_0xeaddbb['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x58080b,_0x1a2eea);const _0x399c83=[];for(const _0x38133c of _0x1a2eea)ae(_0x38133c)&&_0x399c83['push'](this['editor']['commands']['get'](_0x38133c['model']['commandName']));const _0x28eb53=_0x58080b['buttonView'];return _0x28eb53['actionView']['unbind']('isEnabled'),_0x28eb53['arrowView']['unbind']('isEnabled'),_0x28eb53['actionView']['bind']('isEnabled')['to'](_0xeaddbb,'isEnabled'),_0x28eb53['arrowView']['bind']('isEnabled')['toMany'](_0x399c83,'isEnabled',(..._0x52765a)=>_0x52765a['some'](_0x45f2a9=>_0x45f2a9)),_0x58080b['on']('execute',_0x4a41de=>{this['editor']['execute'](_0x4a41de['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x58080b;}['_createMenuBarMenu'](_0x2386c7,_0x31a32c,_0x446d60){const _0x439948=new Kt(_0x2386c7),_0x3d165c=this['editor']['commands']['get']('trackChanges');_0x439948['buttonView']['set']({'label':_0x446d60,'icon':ie});const _0x35a6c6=new Qt(_0x2386c7);for(const _0x19b3e6 of _0x31a32c){if('separator'==_0x19b3e6['type']){_0x35a6c6['items']['add'](new Jt(_0x2386c7));continue;}const _0x5074f6=new Xt(_0x2386c7,_0x439948),_0x3810f9=new Yt(_0x2386c7),_0xd54736=_0x19b3e6['model'];_0x3810f9['bind'](...Object['keys'](_0xd54736))['to'](_0xd54736),_0x3810f9['delegate']('execute')['to'](_0x439948),_0x3810f9['on']('execute',()=>{this['editor']['execute'](_0xd54736['commandName']),this['editor']['editing']['view']['focus']();}),_0x5074f6['children']['add'](_0x3810f9),_0x35a6c6['items']['add'](_0x5074f6);}return _0x439948['bind']('isEnabled')['to'](_0x3d165c,'isEnabled'),_0x439948['panelView']['children']['add'](_0x35a6c6),_0x439948;}['_initializeController'](_0x2ffaad){const _0x513826=this['editor'],_0x4b1abe=_0x513826['config'],_0x4286af=_0x513826['plugins']['get']('Annotations'),_0x5da1e6=_0x513826['plugins']['get']('CommentsRepository'),_0x92de3=_0x513826['plugins']['get']('EditorAnnotations'),_0x3ba196=_0x513826['plugins']['get'](_0x2312f1)['me'],_0x12cb3b=_0x4b1abe['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x14cfc8,CommentThreadInputView:_0x5687d9}=_0x513826['plugins']['get']('CommentsUI');let _0x44ba1b,_0x441ee9;this['_annotationViews']['has'](_0x2ffaad['id'])?(_0x441ee9=this['_annotationViews']['get'](_0x2ffaad['id']),_0x44ba1b=_0x441ee9['mainView']):(_0x44ba1b=new _0x12cb3b(_0x513826['locale'],_0x2ffaad,_0x3ba196,{'disableComments':this['_disableComments'],'editorConfig':_0x4b1abe['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4b1abe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b1abe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b1abe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x257592(_0x4b1abe['get']('locale')),'CommentView':_0x4b1abe['get']('comments')['CommentView'],'CommentsListView':_0x14cfc8,'CommentThreadInputView':_0x5687d9}),_0x44ba1b['acceptButton']['on']('execute',()=>{_0x513826['editing']['view']['focus']();}),_0x44ba1b['discardButton']['on']('execute',()=>{_0x513826['editing']['view']['focus']();}),_0x441ee9=_0x4286af['createAnnotationView'](this['editor']['locale'],_0x44ba1b),_0x441ee9['bind']('isDirty')['to'](_0x44ba1b,'isDirty'),_0x441ee9['bind']('length')['to'](_0x44ba1b),_0x441ee9['bind']('type')['to'](_0x44ba1b,'type',_0x5bad2c=>'suggestion-'+_0x5bad2c),this['_annotationViews']['set'](_0x2ffaad['id'],_0x441ee9));const _0x268a22=_0x5da1e6['createCommentThreadController'](_0x2ffaad['commentThread'],_0x44ba1b),_0x4bec07=new oe(_0x513826,_0x2ffaad,_0x44ba1b,_0x268a22),_0x405f92=_0x2ffaad['getAllAdjacentSuggestions']()['filter'](_0x4eae32=>_0x4eae32['isInContent']);_0x44ba1b['descriptionParts']=_0x513826['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x405f92),this['_suggestionToController']['set'](_0x2ffaad,_0x4bec07),this['_viewToController']['set'](_0x44ba1b,_0x4bec07);const _0x4da354=_0x4286af['createAnnotation']({'view':_0x441ee9,'target':()=>{const _0x528bd2=[],_0xd059ee=_0x2ffaad['getAllAdjacentSuggestions']()['filter'](_0x3a142d=>_0x3a142d['isInContent']);for(const _0x1829fd of _0xd059ee)_0x528bd2['push'](..._0x1829fd['getMarkers']());return _0x2ab3bb(_0x513826['editing'],_0x528bd2);},'type':()=>'suggestion-'+_0x4bec07['view']['type']});_0x5da1e6['_bindAnnotationToEditors'](_0x44ba1b,_0x4da354),_0x4286af['add'](_0x4da354),_0x92de3['registerAnnotation'](_0x4da354);}['_destroyController'](_0x1d94cb){const _0x231f3e=this['editor']['plugins']['get']('CommentsRepository'),_0xb58aae=this['editor']['plugins']['get']('Annotations'),_0x310022=this['_suggestionToController']['get'](_0x1d94cb),_0x3ff897=_0x310022['view'],_0x279898=_0xb58aae['getByInnerView'](_0x3ff897);_0x231f3e['_unbindEditors'](_0x3ff897),_0x279898&&_0xb58aae['remove'](_0x279898),this['_suggestionToController']['delete'](_0x1d94cb),this['_viewToController']['delete'](_0x3ff897),_0x310022['destroy']();}['_updateController'](_0x5ac9ca){if(!_0x5ac9ca['isInContent']||!this['_suggestionToController']['has'](_0x5ac9ca))return;const _0x122638=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29e8ff=this['_suggestionToController']['get'](_0x5ac9ca),_0x404d8e=_0x5ac9ca['getAllAdjacentSuggestions']();_0x29e8ff['view']['descriptionParts']=_0x122638['_descriptionFactory']['getDescriptions'](_0x404d8e);}['destroy'](){for(const _0x5bfa32 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5bfa32);for(const _0x5de52a of this['_annotationViews']['values']())_0x5de52a['mainView']['destroy']();super['destroy']();}constructor(_0x5574a4){super(_0x5574a4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f6ac2=this['editor']['config'];_0x3f6ac2['define']('trackChanges.SuggestionThreadView',ne),_0x3f6ac2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f6ac2['get']('trackChanges.disableComments');}}function ae(_0x27d12e){return'model'in _0x27d12e;}class k extends _0x10cfe7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xf75fea){this['editor']['plugins']['get'](p)['adapter']=_0xf75fea;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x7fb0f5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x7fb0f5);}['getSuggestions']({skipNotAttached:_0x2cc944=!0x1,toJSON:_0xdc31b4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2cc944,'toJSON':_0xdc31b4});}['getSuggestion'](_0xdfa2d8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xdfa2d8);}}const T=['Pagination'];class P extends _0x10cfe7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x300560=this['editor'];if(_0x300560['config']['define']('trackChangesData.editorCreator',_0x484ef4=>{const _0x470a6e=_0x300560['model']['document']['getRootNames']()['reduce']((_0x5be4cb,_0x44b38e)=>(_0x5be4cb[_0x44b38e]='',_0x5be4cb),{});return _0x300560['constructor']['create'](_0x470a6e,_0x484ef4);}),'function'!=typeof _0x300560['config']['get']('trackChangesData')['editorCreator'])throw new _0x3504a2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5ae927){return N(this['editor'],!0x0,_0x5ae927);}['getDataWithDiscardedSuggestions'](_0x3122c5){return N(this['editor'],!0x1,_0x3122c5);}}class D extends _0x10cfe7{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x5e240d){super(_0x5e240d),this['result']='end';}}function v(_0x566a8d){return void 0x0!==_0x566a8d['getRootsAttributes'];}async function N(_0x25b972,_0x369c74,_0x378d63){const _0x43987c=_0x2d8044(_0x25b972,T);_0x43987c['plugins']['push'](p,D),_0x43987c['rootsAttributes']=v(_0x25b972)?_0x25b972['getRootsAttributes']():void 0x0;const _0x2b0ecb=document['createDocumentFragment'](),_0xd46eba=_0x25b972['config']['get']('trackChangesData')['editorCreator'],_0x534fd0=await _0xd46eba(_0x43987c,()=>function(_0x1be796){const _0x63a2c6=document['createElement']('div');return _0x1be796['appendChild'](_0x63a2c6),_0x63a2c6;}(_0x2b0ecb));!function(_0x4f0348,_0x523340){const _0x470761=_0x4f0348['model']['document']['getRootNames']()['reduce']((_0x3c9e2f,_0x677bc4)=>(_0x3c9e2f[_0x677bc4]=_0x4f0348['data']['get']({'rootName':_0x677bc4}),_0x3c9e2f),{}),_0x5d1e7c=_0x4f0348['plugins']['get']('Users')['users']['map'](_0x518608=>({'id':_0x518608['id'],'name':_0x518608['name']})),_0x9fce34=_0x4f0348['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1cbc07=_0x523340['plugins']['get']('Users'),_0x1c9752=_0x523340['plugins']['get']('TrackChangesEditing');for(const _0x5025fd of _0x5d1e7c)_0x1cbc07['getUser'](_0x5025fd['id'])||_0x1cbc07['addUser'](_0x5025fd);_0x1cbc07['me']||_0x1cbc07['useAnonymousUser']();for(const _0x3a1829 of _0x9fce34)_0x1c9752['addSuggestionData'](_0x3a1829);_0x523340['data']['set'](_0x470761);}(_0x25b972,_0x534fd0),_0x534fd0['execute'](_0x369c74?'acceptAllSuggestions':'discardAllSuggestions');const _0x3d0503=v(_0x534fd0)?_0x534fd0['getFullData'](_0x378d63):_0x534fd0['data']['get'](_0x378d63);return await _0x534fd0['destroy'](),_0x3d0503;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|