@ckeditor/ckeditor5-track-changes 42.0.0-alpha.7 → 42.0.0-alpha.9
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 +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0xf13080(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5c3f8f,_0x49ae5d){super(),this['id']=_0x49ae5d['id'],this['type']=_0x49ae5d['type'],this['subType']=_0x49ae5d['subType']||null,this['author']=_0x49ae5d['author'],this['creator']=_0x49ae5d['creator']||_0x49ae5d['author'],this['isExternal']=Boolean(_0x49ae5d['attributes']&&_0x49ae5d['attributes']['@external']),this['data']=null,this['_model']=_0x5c3f8f,this['_onAccept']=_0x49ae5d['onAccept'],this['_onDiscard']=_0x49ae5d['onDiscard'],this['_onAttributesChange']=_0x49ae5d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x49ae5d['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x2947cc=this;for(;_0x2947cc['previous'];)_0x2947cc=_0x2947cc['previous'];return _0x2947cc;}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'](_0x3ad7ed){this['_markerNames']['add'](_0x3ad7ed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x50b903=>this['_model']['markers']['get'](_0x50b903))['filter'](_0x569c08=>_0x569c08);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x36331d=>{for(const _0xdf0a5d of this['getMarkers']())_0x36331d['removeMarker'](_0xdf0a5d);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f2c6a){this['_model']['change'](_0x5c8b32=>{_0x5c8b32['removeMarker'](_0x3f2c6a);}),this['_markerNames']['delete'](_0x3f2c6a);}['addRange'](_0x237627){const _0x2d2798='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2d2798),this['_model']['change'](_0x2165b6=>{_0x2165b6['addMarker'](_0x2d2798,{'range':_0x237627,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3db66c){for(const _0x4a796a of this['getRanges']())if(_0x4a796a['isIntersecting'](_0x3db66c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2b63e4=>_0x2b63e4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1e5644,_0x1a2c6c)=>[..._0x1e5644,..._0x1a2c6c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3d01d=this['getRanges']();if(0x1!=_0x3d01d['length'])return null;const _0x53ed39=_0x3d01d[0x0],_0x1e8c47=_0x53ed39['start']['nodeAfter'],_0x1bb66a=_0x53ed39['end']['nodeBefore'];return _0x1e8c47 instanceof _0x2241ce?_0x1e8c47!=_0x1bb66a?null:_0x1e8c47: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 _0x53c19d=[];let _0xc6b70e=this['head'];for(;_0xc6b70e;)_0x53c19d['push'](_0xc6b70e),_0xc6b70e=_0xc6b70e['next'];return _0x53c19d;}['setAttribute'](_0x3645c6,_0x20cf83){const _0x72523=_0x202b37(this['attributes']);_0x5cee4f(_0x72523,_0x3645c6,_0x20cf83),_0x4d68c9(_0x72523,this['attributes'])||(this['attributes']=_0x72523,this['_onAttributesChange'](_0x72523));}['removeAttribute'](_0x18d5a2){const _0x14bd9b=_0x202b37(this['attributes']);_0x47d6f8(_0x14bd9b,_0x18d5a2),_0x4d68c9(_0x14bd9b,this['attributes'])||(this['attributes']=_0x14bd9b,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 _0x28b84b()['substr'](0x1,0x5);}}function o(_0x2685dd,_0x3482f2,_0x2973ff){const t=_0x2685dd['t'];switch(_0x3482f2){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',_0x2973ff);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2973ff);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2973ff);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2973ff);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2973ff);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',_0x2973ff);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2973ff);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',_0x2973ff);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2973ff);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2973ff);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2973ff);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2973ff);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2973ff);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2973ff);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2973ff);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2973ff);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2973ff);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2973ff);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2973ff);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2973ff);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2973ff);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2973ff);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2973ff);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'},_0x2973ff);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2973ff);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2973ff);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2973ff);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2973ff);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2973ff);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'},_0x2973ff);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2973ff);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2973ff);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2973ff);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2973ff);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2973ff);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2973ff);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'},_0x2973ff);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'},_0x2973ff);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2973ff);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'},_0x2973ff);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2973ff);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'},_0x2973ff);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2973ff);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2973ff);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'},_0x2973ff);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'},_0x2973ff);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 _0x3482f2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x513772,_0x23e463){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x513772,this['_locale']=_0x23e463;}['getDescriptions'](_0x4944a8){const _0x54d871=[],_0x105258=new Set(),_0x433161=new Set();for(let _0x2c9a15=0x0;_0x2c9a15<_0x4944a8['length'];_0x2c9a15++){const _0xea6e7c=_0x4944a8[_0x2c9a15];if(!_0xea6e7c['isInContent'])continue;const _0x14cb67=this['_handleCustomCallbackDescription'](_0xea6e7c);if(_0x14cb67){if(null!=_0xea6e7c['subType']){if(_0x105258['has'](_0xea6e7c['subType']))continue;_0x105258['add'](_0xea6e7c['subType']);}_0x54d871['push'](_0x14cb67);}else{if('attribute'!=_0xea6e7c['type'])'insertion'!=_0xea6e7c['type']&&'deletion'!=_0xea6e7c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x54d871,_0xea6e7c,_0x4944a8[_0x2c9a15+0x1]);else{const _0x5357f7=_0xea6e7c['data']['key'];if(_0x433161['has'](_0x5357f7))continue;_0x433161['add'](_0xea6e7c['data']['key']),_0x5357f7==m?this['_handleRenameSuggestionDescription'](_0x54d871,_0xea6e7c):this['_handleAttributeSuggestionDescription'](_0x54d871,_0xea6e7c);}}}return this['_resolveDescriptionItems'](_0x54d871);}['registerDescriptionCallback'](_0x1ec7bd){this['_customCallbacks']['push'](_0x1ec7bd);}['registerElementLabel'](_0x21f805,_0x128409,_0x11da27=_0x4c5522['normal']){'function'==typeof _0x21f805?_0x53406c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x21f805,'label':_0x128409,'priority':_0x11da27}):this['_itemLabels']['set'](_0x21f805,_0x128409);}['registerAttributeLabel'](_0x1f3456,_0x3825e4){this['_attributeLabels']['set'](_0x1f3456,_0x3825e4);}['getItemLabel'](_0x481098,_0x47925e=0x1){let _0x30c29e;for(const _0x27b7b9 of this['_itemLabelsCallbacks'])if(_0x27b7b9['matchingCallback'](_0x481098)){_0x30c29e=_0x27b7b9['label'];break;}return _0x30c29e||(_0x30c29e=this['_itemLabels']['get'](_0x481098['name'])),_0x30c29e?_0x30c29e(_0x47925e):0x1!==_0x47925e?_0x47925e+'\x20'+_0x481098['name']+'s':''+_0x481098['name'];}['_addDescriptionItems'](_0x54e18b,_0x5e037d){const _0x27ff81=_0x5e037d['getFirstRange']()['getWalker'](),_0x4e8b9c='insertion'==_0x5e037d['type']?'add':'remove';for(const _0x57adb6 of _0x27ff81){const _0x15cc95=_0x57adb6['item'],_0x5487e8=_0x54e18b[_0x54e18b['length']-0x1];if(_0x15cc95['is']('$textProxy'))_0x5487e8&&_0x5487e8['type']['indexOf']('Container')>-0x1&&_0x54e18b['pop'](),_0x5487e8&&'text'==_0x5487e8['type']?_0x5487e8[_0x4e8b9c]+=_0x15cc95['data']:_0x54e18b['push']({'type':'text','add':'add'==_0x4e8b9c?_0x15cc95['data']:'','remove':'remove'==_0x4e8b9c?_0x15cc95['data']:''});else{if(this['_schema']['isObject'](_0x15cc95)){const _0x1b8028=_0x15cc95;if(_0x5487e8&&_0x5487e8['type']['indexOf']('Container')>-0x1&&_0x54e18b['pop'](),'elementEnd'==_0x57adb6['type'])continue;_0x5487e8&&_0x5487e8['type']==_0x4e8b9c+'Object'&&_0x5487e8['element']['name']==_0x1b8028['name']?_0x5487e8['quantity']++:_0x54e18b['push']({'type':_0x4e8b9c+'Object','element':_0x1b8028,'quantity':0x1}),_0x27ff81['skip'](_0x38af50=>!('elementEnd'==_0x38af50['type']&&_0x38af50['item']==_0x15cc95));}else{if(this['_schema']['checkChild'](_0x15cc95,'$text')||_0x15cc95['is']('element','softBreak')){const _0x1eec4a=_0x15cc95;if('add'==_0x4e8b9c&&'elementStart'==_0x57adb6['type']||'remove'==_0x4e8b9c&&'elementEnd'==_0x57adb6['type'])continue;if(_0x5487e8&&-0x1==_0x5487e8['type']['indexOf']('Container')){'text'==_0x5487e8['type']&&(_0x5487e8[_0x4e8b9c]+='\x0a');continue;}let _0x533ef1;if(_0x533ef1='add'==_0x4e8b9c?_0x1eec4a['nextSibling']&&!this['_schema']['isObject'](_0x1eec4a['nextSibling'])?_0x1eec4a['nextSibling']:null:_0x1eec4a['previousSibling']&&!this['_schema']['isObject'](_0x1eec4a['previousSibling'])?_0x1eec4a['previousSibling']:null,_0x1eec4a['isEmpty']||_0x533ef1&&_0x533ef1['isEmpty']){const _0x3e635d=_0x533ef1&&_0x533ef1['isEmpty']?_0x533ef1:_0x1eec4a;_0x5487e8&&_0x5487e8['type']==_0x4e8b9c+'EmptyContainer'&&_0x5487e8['element']['name']==_0x3e635d['name']?_0x5487e8['quantity']++:_0x54e18b['push']({'type':_0x4e8b9c+'EmptyContainer','element':_0x3e635d,'quantity':0x1});}else _0x54e18b['push']({'type':_0x4e8b9c+'Container','element':_0x1eec4a});}}}}}['_resolveDescriptionItems'](_0x1545d0){const _0x246b8a=this['_locale'],_0x3dde6d=[],_0x13b664=[],_0x478918=[];for(const _0x471be5 of _0x1545d0)switch(_0x471be5['type']){case'text':if(_0x471be5['add']=_0x471be5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x471be5['remove']=_0x471be5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x471be5['add']&&''!=_0x471be5['remove']){_0x3dde6d['push']({'type':'replace','content':o(_0x246b8a,'REPLACE_TEXT',['\x22'+_0x471be5['remove']+'\x22','\x22'+_0x471be5['add']+'\x22'])});continue;}if(null!=_0x471be5['add']['match'](/^ +$/)){_0x3dde6d['push']({'type':'insertion','content':o(_0x246b8a,'*Insert:*\x20%0',o(_0x246b8a,'ELEMENT_SPACE',_0x471be5['add']['length']))});continue;}if(null!=_0x471be5['remove']['match'](/^ +$/)){_0x3dde6d['push']({'type':'deletion','content':o(_0x246b8a,'*Remove:*\x20%0',o(_0x246b8a,'ELEMENT_SPACE',_0x471be5['remove']['length']))});continue;}if(''!=_0x471be5['add']){_0x3dde6d['push']({'type':'insertion','content':o(_0x246b8a,'*Insert:*\x20%0','\x22'+_0x471be5['add']+'\x22')});continue;}_0x3dde6d['push']({'type':'deletion','content':o(_0x246b8a,'*Remove:*\x20%0','\x22'+_0x471be5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3dde6d['push']({'type':'insertion','content':o(_0x246b8a,'*Insert:*\x20%0',this['getItemLabel'](_0x471be5['element'],_0x471be5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3dde6d['push']({'type':'deletion','content':o(_0x246b8a,'*Remove:*\x20%0',this['getItemLabel'](_0x471be5['element'],_0x471be5['quantity']))});continue;case'addContainer':_0x3dde6d['push']({'type':'insertion','content':o(_0x246b8a,'*Split:*\x20%0',this['getItemLabel'](_0x471be5['element'],_0x471be5['quantity']))});continue;case'removeContainer':_0x3dde6d['push']({'type':'deletion','content':o(_0x246b8a,'*Merge:*\x20%0',this['getItemLabel'](_0x471be5['element'],_0x471be5['quantity']))});continue;case'addFormat':_0x13b664['push'](_0x471be5['key']);continue;case'removeFormat':_0x478918['push'](_0x471be5['key']);continue;default:_0x3dde6d['push'](_0x471be5);}if(_0x13b664['length']){const _0x4b5c09=_0x13b664['map'](_0x4df3df=>this['_attributeLabels']['has'](_0x4df3df)?this['_attributeLabels']['get'](_0x4df3df):_0x4df3df)['join'](',\x20');_0x3dde6d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4b5c09)});}if(_0x478918['length']){const _0x1314f4=_0x478918['map'](_0x4cece5=>this['_attributeLabels']['has'](_0x4cece5)?this['_attributeLabels']['get'](_0x4cece5):_0x4cece5)['join'](',\x20');_0x3dde6d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1314f4)});}return _0x3dde6d;}['_handleCustomCallbackDescription'](_0x35caca){for(const _0x4ef8d3 of this['_customCallbacks']){const _0x862cb8=_0x4ef8d3(_0x35caca);if(_0x862cb8&&'type'in _0x862cb8)return _0x862cb8;}}['_handleAttributeSuggestionDescription'](_0x446da8,_0x38c74d){const _0x57af8e=_0x38c74d['data'],_0x2855fd=void 0x0===_0x57af8e['newValue']?'removeFormat':'addFormat';_0x446da8['push']({'type':_0x2855fd,'key':_0x57af8e['key']});}['_handleRenameSuggestionDescription'](_0x11a038,_0xeea377){_0x11a038['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xeea377['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x16b208,_0x44dacf,_0x4b76af){if(this['_addDescriptionItems'](_0x16b208,_0x44dacf),_0x4b76af&&_0x4b76af['getFirstRange']()&&!_0x44dacf['getFirstRange']()['end']['isEqual'](_0x4b76af['getFirstRange']()['start'])){const _0x234b72=_0x16b208[_0x16b208['length']-0x1],_0x2b5439='insertion'==_0x44dacf['type']?'add':'remove';_0x234b72&&'text'==_0x234b72['type']&&(_0x234b72[_0x2b5439]+='\x0a');}}}class E extends _0x426b8a{['afterInit'](){const _0x4fd7d6=this['editor'],_0x126ec6=_0x4fd7d6['plugins']['get']('TrackChangesEditing');_0x4fd7d6['commands']['get']('showAIAssistant')&&_0x126ec6['enableCommand']('showAIAssistant');}}class V extends _0x426b8a{['afterInit'](){const _0x36e379=this['editor'],_0x2f4a85=_0x36e379['locale'];if(!_0x36e379['plugins']['has']('AlignmentEditing'))return;const _0x232374=_0x36e379['plugins']['get']('TrackChangesEditing');_0x232374['enableDefaultAttributesIntegration']('alignment'),_0x232374['registerBlockAttribute']('alignment'),_0x232374['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2f4a85,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d4a76=this['editor'],_0x5133b7=_0x3d4a76['locale'];_0x3d4a76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40ebd0=>{if('formatBlock'!=_0x40ebd0['type'])return;const {data:_0x1720a1}=_0x40ebd0;if(_0x1720a1&&'alignment'==_0x1720a1['commandName']){const _0x5c8260=_0x1720a1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5133b7,'*Format:*\x20%0',function(_0x4783a3){switch(_0x4783a3){case'left':return o(_0x5133b7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5133b7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5133b7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5133b7,'FORMAT_JUSTIFY_TEXT');}}(_0x5c8260))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x426b8a{['afterInit'](){const _0x575e6e=this['editor'],_0x56e42b=_0x575e6e['plugins']['get']('TrackChangesEditing'),_0x2a09b0=_0x575e6e['locale'];for(const _0xcf87e5 of ti){if(!_0x575e6e['plugins']['has'](_0xcf87e5))continue;const _0x5f05f9=_0xcf87e5['slice'](0x0,-0x7)['toLowerCase'](),_0xfae511='FORMAT_'+_0x5f05f9['toUpperCase']();_0x56e42b['enableDefaultAttributesIntegration'](_0x5f05f9),_0x56e42b['registerInlineAttribute'](_0x5f05f9),_0x56e42b['descriptionFactory']['registerAttributeLabel'](_0x5f05f9,o(_0x2a09b0,_0xfae511));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d32c2=this['editor'],_0x516dfd=_0x2d32c2['locale'],_0x113d6c=_0x2d32c2['plugins']['get']('TrackChangesEditing');function _0x5d27d6(_0x13e079,_0x3438db){_0x113d6c['descriptionFactory']['registerDescriptionCallback'](_0x5e6659=>{if('formatInline'!=_0x5e6659['type'])return;const {data:_0x1cc63d}=_0x5e6659;return _0x1cc63d&&_0x1cc63d['commandName']===_0x13e079?_0x1cc63d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x516dfd,'*Format:*\x20%0',_0x3438db)}:{'type':'format','content':o(_0x516dfd,'*Remove\x20format:*\x20%0',_0x3438db)}:void 0x0;});}_0x5d27d6('bold',o(_0x516dfd,'FORMAT_BOLD')),_0x5d27d6('italic',o(_0x516dfd,'FORMAT_ITALIC')),_0x5d27d6('underline',o(_0x516dfd,'FORMAT_UNDERLINE')),_0x5d27d6('code',o(_0x516dfd,'FORMAT_CODE')),_0x5d27d6('strikethrough',o(_0x516dfd,'FORMAT_STRIKETHROUGH')),_0x5d27d6('subscript',o(_0x516dfd,'FORMAT_SUBSCRIPT')),_0x5d27d6('superscript',o(_0x516dfd,'FORMAT_SUPERSCRIPT'));}}class O extends _0x426b8a{['afterInit'](){const _0xf9c907=this['editor'],_0x2df08d=_0xf9c907['locale'];if(!_0xf9c907['plugins']['has']('BlockQuoteEditing'))return;const _0x404888=_0xf9c907['plugins']['get']('TrackChangesEditing'),_0x2d7f91=this['editor']['commands']['get']('blockQuote');_0x404888['enableCommand']('blockQuote',(_0x365c95,_0x1c7fb8={})=>{const _0x599917=this['editor']['model']['document']['selection'],_0xbb2e67=_0x1c7fb8&&void 0x0!==_0x1c7fb8['forceValue']?_0x1c7fb8['forceValue']:!_0x2d7f91['value'];let _0x16415c=[];if(_0xbb2e67){const _0x1fbf50=Array['from'](_0x599917['getSelectedBlocks']())['filter'](_0x39bdbc=>oo(_0x39bdbc)||function(_0x52bd90,_0x3d859d){const _0x5f2057=_0x3d859d['checkChild'](_0x52bd90['parent'],'blockQuote'),_0x39dd91=_0x3d859d['checkChild'](['$root','blockQuote'],_0x52bd90);return _0x5f2057&&_0x39dd91;}(_0x39bdbc,this['editor']['model']['schema']));_0x16415c=to(_0x1fbf50,_0xf9c907['model']);}else{const _0x2f94cd=Array['from'](_0x599917['getSelectedBlocks']())['filter'](_0x3bea43=>oo(_0x3bea43));_0x16415c=to(_0x2f94cd,_0xf9c907['model']);}_0xf9c907['model']['change'](()=>{for(const _0x28b4c9 of _0x16415c)_0x404888['markBlockFormat'](_0x28b4c9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xbb2e67}]});});}),_0x404888['descriptionFactory']['registerDescriptionCallback'](_0x558e1e=>{const {data:_0x327b60}=_0x558e1e;if(_0x327b60&&'blockQuote'==_0x327b60['commandName']){const _0x13655a=o(_0x2df08d,'ELEMENT_BLOCK_QUOTE');return _0x327b60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2df08d,'*Set\x20format:*\x20%0',_0x13655a)}:{'type':'format','content':o(_0x2df08d,'*Remove\x20format:*\x20%0',_0x13655a)};}});}}function oo(_0x37787d){return'blockQuote'==_0x37787d['parent']['name'];}class G extends _0x426b8a{['afterInit'](){const _0x33faba=this['editor'];_0x33faba['plugins']['has']('CaseChange')&&(_0x33faba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x33faba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x33faba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x426b8a{['afterInit'](){const _0x3ba71f=this['editor'];_0x3ba71f['commands']['get']('ckbox')&&_0x3ba71f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x426b8a{['afterInit'](){const _0xcd3153=this['editor'];if(!_0xcd3153['plugins']['has']('CodeBlock'))return;const _0x536374=_0xcd3153['plugins']['get']('TrackChangesEditing'),_0x10b90c=_0xcd3153['locale'],_0x233bd4=_0xcd3153['config']['get']('codeBlock')['languages'],_0x174a92=_0xcd3153['commands']['get']('codeBlock');_0x536374['enableCommand']('indentCodeBlock'),_0x536374['enableCommand']('outdentCodeBlock'),_0x536374['enableCommand']('codeBlock',(_0x29743b,_0x507c79={})=>{const _0x11b631=_0xcd3153['model'],_0x1af389=_0xcd3153['model']['document']['selection'],_0x131346=_0x507c79&&void 0x0!==_0x507c79['forceValue']?_0x507c79['forceValue']:!_0x174a92['value'];let _0x5fccfa;_0x507c79['language']||(_0x507c79['language']=_0x233bd4[0x0]['language']),_0x5fccfa=_0x131346?Array['from'](_0x1af389['getSelectedBlocks']())['filter'](_0x27c7b7=>eo(_0x27c7b7)||function(_0x2ce78c,_0x36588f){if(_0x2ce78c['is']('rootElement')||_0x36588f['isLimit'](_0x2ce78c))return!0x1;return _0x36588f['checkChild'](_0x2ce78c['parent'],'codeBlock');}(_0x27c7b7,_0x11b631['schema'])):Array['from'](_0x1af389['getSelectedBlocks']())['filter'](_0x5b7d91=>eo(_0x5b7d91));const _0x5d7a1a=to(_0x5fccfa,_0x11b631);_0x11b631['change'](()=>{for(const _0x3da557 of _0x5d7a1a)_0x536374['markBlockFormat'](_0x3da557,{'commandName':'codeBlock','commandParams':[{..._0x507c79,'forceValue':_0x131346}],'formatGroupId':'blockName'});});}),(_0x536374['descriptionFactory']['registerElementLabel']('codeBlock',_0x3547a6=>o(_0x10b90c,'ELEMENT_CODE_BLOCK',_0x3547a6)),_0x536374['descriptionFactory']['registerDescriptionCallback'](_0x4d87b2=>{if('formatBlock'!=_0x4d87b2['type'])return;const _0x2e76a9=_0x10b90c['t'],{data:_0xb2d796}=_0x4d87b2;if(!_0xb2d796||'codeBlock'!=_0xb2d796['commandName'])return;const _0x4a36a2=_0xb2d796['commandParams'][0x0]['language'],_0x54056b=_0x2e76a9(_0x233bd4['find'](_0x56d1d6=>_0x56d1d6['language']===_0x4a36a2)['label'])['toLowerCase']();return _0xb2d796['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10b90c,'*Set\x20format:*\x20%0',o(_0x10b90c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x54056b+')')}:{'type':'format','content':o(_0x10b90c,'*Remove\x20format:*\x20%0',o(_0x10b90c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x59c427){return'codeBlock'==_0x59c427['name'];}class H extends _0x426b8a{['afterInit'](){const _0x226f39=this['editor'];if(!_0x226f39['plugins']['has']('CommentsEditing'))return;_0x226f39['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3e2518,_0x2c7f07,_0x1b66e6){const _0x290535=[];for(const _0x486e31 of _0x2c7f07['getItems']())_0x486e31['hasAttribute'](_0x3e2518)&&_0x290535['push'](_0x1b66e6['createRangeOn'](_0x486e31));return _0x290535;}function _e(_0x2dc3c1,_0x59345c,{showActiveMarker:_0xd84bcb=!0x0}={}){const _0x2a33b9=_0x2dc3c1['plugins']['get']('TrackChangesEditing');return(_0x2c03d,_0x5c2ef4,_0x58c136)=>{if(!_0x58c136['consumable']['test'](_0x5c2ef4['markerRange'],_0x2c03d['name']))return;const _0xefa6c8=_0x5c2ef4['markerRange']['getWalker'](),_0x53afa8=_0x5c2ef4['markerRange']['start'],_0x5ae33c=_0x2dc3c1['model']['schema'];let _0x30ccbe=null,_0xd1672a=null,_0x16235a=!0x1,_0x45994d=!0x1;for(const _0x241bc2 of _0xefa6c8){const _0x97b2be=_0x241bc2['item'];_0x16235a=_0x16235a||_0x5ae33c['isContent'](_0x97b2be);const _0x455965=_0x58c136['mapper']['toViewElement'](_0x97b2be);if(_0x455965&&_0x455965['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x241bc2['type']&&(_0x5ae33c['isBlock'](_0x97b2be)&&!_0x5ae33c['isLimit'](_0x97b2be)&&(_0x97b2be['nextSibling']||_0x53afa8['isAtEnd']?_0x30ccbe&&_0x30ccbe['parent']==_0x97b2be||(_0x30ccbe=_0x97b2be,_0x575bea(_0x241bc2['previousPosition']),_0x45994d=!0x0):_0xd1672a=_0xd1672a||_0x241bc2['previousPosition']));}function _0x575bea(_0x50da29){const _0x500995=_0x58c136['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x59345c}),_0x2c6bbc=_0x58c136['mapper']['toViewPosition'](_0x50da29);_0xd84bcb&&_0x2a33b9['activeMarkers']['includes'](_0x5c2ef4['markerName'])&&_0x58c136['writer']['addClass']('ck-suggestion-marker--active',_0x500995),_0x58c136['writer']['insert'](_0x2c6bbc,_0x500995),_0x58c136['mapper']['bindElementToMarker'](_0x500995,_0x5c2ef4['markerName']);}_0x16235a||_0x45994d||!_0xd1672a||_0x575bea(_0xd1672a);};}class q extends _0x426b8a{static get['requires'](){return[_0x3496ea];}['init'](){const _0x303068=this['editor'],_0x5d515f=_0x303068['plugins']['get']('TrackChangesEditing');_0x5d515f['enableCommand']('delete');const _0x4c2323=_0x303068['commands']['get']('deleteForward');_0x5d515f['enableCommand']('deleteForward',(_0xeb116,_0x370103={})=>{const _0x554662=_0x303068['model']['createSelection'](_0x303068['model']['document']['selection']);_0x554662['isCollapsed']&&_0x303068['model']['modifySelection'](_0x554662,{'direction':'forward','unit':_0x370103['unit']});const _0x3c01c5=_0x554662['getFirstRange'](),_0x13f30b=_0x41bd9b['fromRange'](_0x3c01c5);let _0x98fe8a;_0xeb116(_0x370103),_0x98fe8a='$graveyard'==_0x13f30b['root']['rootName']?_0x303068['model']['createRange'](_0x3c01c5['start']):_0x303068['model']['createRange'](_0x13f30b['start'],_0x13f30b['end']),_0x13f30b['detach'](),_0x303068['model']['enqueueChange'](_0x4c2323['buffer']['batch'],_0x2f3d2b=>{_0x4c2323['buffer']['lock'](),_0x2f3d2b['setSelection'](_0x2f3d2b['createRange'](_0x98fe8a['end'])),_0x4c2323['buffer']['unlock']();});}),_0x303068['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x303068,'merge'),{'priority':'high'}),_0x303068['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d0009,_0x1be916,_0x47e24c)=>{_0x47e24c['options']['showSuggestionHighlights']&&_e(_0x303068,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d0009,_0x1be916,_0x47e24c);},{'priority':'high'}),_0x303068['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x59be8a,_0x48327f,_0x19aaa4)=>{const _0x38e982=_0x19aaa4['mapper']['markerNameToElements'](_0x48327f['markerName']);if(_0x38e982){for(const _0x1d7782 of _0x38e982)_0x1d7782['is']('uiElement')&&(_0x19aaa4['mapper']['unbindElementFromMarkerName'](_0x1d7782,_0x48327f['markerName']),_0x19aaa4['writer']['remove'](_0x1d7782));}},{'priority':'high'});}}class z extends _0x426b8a{['afterInit'](){const _0x536ac5=this['editor'];if(!_0x536ac5['plugins']['has']('ListEditing'))return;const _0x5531f2=_0x536ac5['locale'],_0x582884=_0x536ac5['plugins']['get']('TrackChangesEditing'),_0x5dc058=_0x536ac5['plugins']['has']('TodoListEditing'),_0x1f0779=!!_0x536ac5['config']['get']('list.multiBlock');function _0x30939a(_0x53e160){return{'type':'format','content':''+o(_0x5531f2,'*Set\x20format:*\x20%0',_0x53e160)};}function _0x3d69fa(_0x225595){return{'type':'format','content':''+o(_0x5531f2,'*Remove\x20format:*\x20%0',_0x225595)};}_0x582884['enableDefaultAttributesIntegration']('numberedList'),_0x582884['enableDefaultAttributesIntegration']('bulletedList'),_0x582884['enableDefaultAttributesIntegration']('customNumberedList'),_0x582884['enableDefaultAttributesIntegration']('customBulletedList'),_0x582884['enableDefaultAttributesIntegration']('indentList'),_0x582884['enableDefaultAttributesIntegration']('outdentList'),_0x582884['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x582884['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x582884['registerBlockAttribute']('listItemId'),_0x582884['registerBlockAttribute']('listType'),_0x582884['registerBlockAttribute']('listIndent'),_0x1f0779&&(_0x582884['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x582884['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5dc058&&(_0x582884['enableDefaultAttributesIntegration']('todoList'),_0x582884['enableDefaultAttributesIntegration']('checkTodoList'),_0x582884['registerBlockAttribute']('todoListChecked'),_0x582884['descriptionFactory']['registerDescriptionCallback'](_0x1df39e=>{const {data:_0x7a1bd9}=_0x1df39e;if(_0x7a1bd9&&'todoListChecked'==_0x7a1bd9['key'])return{'type':'format','content':_0x7a1bd9['newValue']?o(_0x5531f2,'*Check\x20item*'):o(_0x5531f2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x18ad1a=>{if(_0x18ad1a['batch']['isUndo'])return!0x1;let _0xb0e6b3=!0x1;const _0x5b899d=_0x582884['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d4003=>'todoListChecked'===_0x582884['_getAttributeKey'](_0x3d4003));for(const _0x5226a3 of _0x5b899d){'todo'!=_0x5226a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x582884['_findSuggestions'](_0x5226a3['getFirstRange'](),'attribute')['find'](_0x2bdcd5=>'listType'===_0x582884['_getAttributeKey'](_0x2bdcd5['suggestion']))||(_0x18ad1a['removeMarker'](_0x5226a3['getFirstMarker']()),_0xb0e6b3=!0x0));}return _0xb0e6b3;})),_0x582884['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5531f2,'FORMAT_INDENT'));const _0x900f06={'type':'format','content':''};_0x582884['descriptionFactory']['registerDescriptionCallback'](_0x510800=>{const {data:_0x4affbb}=_0x510800;if(!_0x4affbb||'listType'!=_0x4affbb['key'])return;let _0x435152=_0x510800['head'];for(;_0x435152;){if(_0x435152['data']&&(('listStyle'==_0x435152['data']['key']||'listMarkerStyle'==_0x435152['data']['key'])&&(_0x435152['data']['newValue']&&'default'!=_0x435152['data']['newValue']||'default'!=_0x435152['data']['oldValue']&&!_0x4affbb['newValue'])||!_0x1f0779&&_0x435152['data']['key']==m))return _0x900f06;_0x435152=_0x435152['next'];}if(null==_0x4affbb['newValue'])switch(_0x4affbb['oldValue']){case'bulleted':return _0x3d69fa(o(_0x5531f2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d69fa(o(_0x5531f2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d69fa(o(_0x5531f2,'ELEMENT_TODO_LIST'));}switch(_0x4affbb['newValue']){case'bulleted':return _0x30939a(o(_0x5531f2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30939a(o(_0x5531f2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30939a(o(_0x5531f2,'ELEMENT_TODO_LIST'));}}),_0x582884['descriptionFactory']['registerDescriptionCallback'](_0xda6779=>{const {data:_0x11c0d5}=_0xda6779;if(_0x11c0d5&&'listIndent'==_0x11c0d5['key'])return null==_0x11c0d5['newValue']||null==_0x11c0d5['oldValue']&&0x0==_0x11c0d5['newValue']?_0x900f06:void 0x0;}),_0x582884['descriptionFactory']['registerDescriptionCallback'](_0x537b83=>{if('attribute'!=_0x537b83['type'])return;const {data:_0x4205f9}=_0x537b83;if(!_0x4205f9||'listItemId'!=_0x4205f9['key'])return;const _0x31d6df=le(_0x537b83);return'newValue'==_0x31d6df?{'type':'format','content':o(_0x5531f2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31d6df?{'type':'format','content':o(_0x5531f2,'*Split:*\x20list\x20item')}:_0x900f06;}),_0x536ac5['model']['document']['registerPostFixer'](_0x1fbeb4=>this['listItemIdFixer'](_0x1fbeb4)),_0x536ac5['model']['document']['registerPostFixer'](_0x5168e3=>this['noTrackChangesFixer'](_0x5168e3)),_0x536ac5['model']['document']['registerPostFixer'](_0x4867fb=>this['assureChains'](_0x4867fb)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x694694){if(_0x694694['batch']['isUndo']||!_0x694694['batch']['isLocal'])return!0x1;let _0x465309=!0x1;const _0x2023a8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ec7b8=>_0x1ec7b8['data']&&'listItemId'==_0x1ec7b8['data']['key'])['filter'](_0x44010f=>_0x44010f['data']['newValue']&&_0x44010f['data']['oldValue']);for(const _0x713147 of _0x2023a8)le(_0x713147)||(_0x694694['removeMarker'](_0x713147['getFirstMarker']()),_0x465309=!0x0);return _0x465309;}['noTrackChangesFixer'](_0x584544){if(_0x584544['batch']['isUndo']||!_0x584544['batch']['isLocal'])return!0x1;const _0x5c3e9b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5c3e9b['trackChangesCommand']['value'])return!0x1;let _0x5509e6=!0x1;const _0x4870c8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x28b2bf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x586bf8=>'attribute'==_0x586bf8['type'])['filter'](_0x535b47=>_0x4870c8['includes'](_0x535b47['attributeKey']));if(0x0==_0x28b2bf['length'])return _0x5509e6;for(const _0x50f0d0 of _0x28b2bf){const _0x26f1c4=_0x5c3e9b['_findSuggestions'](_0x50f0d0['range'],'attribute')['filter'](_0x52593a=>!_0x52593a['meta']['isNextTo'])['map'](_0x7f0d17=>_0x7f0d17['suggestion'])['filter'](_0x3ec49d=>{const _0x1c7b68=_0x5c3e9b['_getAttributeKey'](_0x3ec49d);return _0x4870c8['includes'](_0x1c7b68);});if(_0x26f1c4['length']){for(const _0x50469c of _0x26f1c4)_0x584544['removeMarker'](_0x50469c['getFirstMarker']());_0x5509e6=!0x0;}}return _0x5509e6;}['assureChains'](_0x3c4782){if(_0x3c4782['batch']['isUndo']||!_0x3c4782['batch']['isLocal'])return!0x1;const _0x5058bd=this['editor']['plugins']['get']('TrackChangesEditing');let _0x52807c=!0x1;const _0x7139eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2f17d7 of _0x5058bd['getSuggestions']({'skipNotAttached':!0x0})){const _0x17497d=_0x5058bd['_findSuggestions'](_0x2f17d7['getFirstRange'](),'attribute')['map'](_0x3eb4a5=>_0x3eb4a5['suggestion'])['filter'](_0xea69bc=>_0xea69bc['data']&&_0x7139eb['includes'](_0xea69bc['data']['key']));if(!_0x17497d['length'])continue;const _0x13ba14=_0x17497d[0x0]['head']['attributes']['groupId'];if(!_0x17497d['every'](_0x50a67b=>_0x50a67b['attributes']['groupId']===_0x13ba14)){for(const _0x218c7f of _0x17497d)_0x359bde(_0x218c7f,_0x13ba14)&&(_0x52807c=!0x0);}}return _0x52807c;function _0x52060a(_0x54390c,_0x4e6a71){for(const _0x11dd80 of _0x5058bd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25bf7d=>'attribute'==_0x25bf7d['type']&&_0x25bf7d['attributes']['groupId']==_0x54390c))_0x11dd80['setAttribute']('groupId',_0x4e6a71);}function _0x359bde(_0x1277ad,_0x247cb0){let _0x4754b9=_0x1277ad['head'],_0x20b0d5=!0x1;for(;_0x4754b9;)_0x4754b9['attributes']['groupId']!=_0x247cb0&&(_0x52060a(_0x4754b9['attributes']['groupId'],_0x247cb0),_0x4754b9['setAttribute']('groupId',_0x247cb0),_0x20b0d5=!0x0),_0x4754b9=_0x4754b9['next'];return _0x20b0d5;}}['_supportLegacySuggestions'](){const _0x4466f5=this['editor'],_0x4a64b4=_0x4466f5['locale'],_0x593bff=_0x4466f5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x593bff['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x40bfa3,_0x137427){const _0x12e98a=[];for(let _0x30a854 of _0x40bfa3)_0x30a854['start']['nodeAfter']===_0x30a854['end']['parent']&&(_0x30a854=_0x4466f5['model']['createRange'](_0x4466f5['model']['createPositionAt'](_0x30a854['start']['nodeAfter'],0x0))),_0x12e98a['push'](_0x30a854);_0x4466f5['model']['change'](_0x3489b1=>{const _0x5b4f6c=_0x4466f5['model']['document']['selection'],_0x19866d=Array['from'](_0x5b4f6c['getRanges']())['map'](_0x4e9c8d=>_0x41bd9b['fromRange'](_0x4e9c8d));_0x3489b1['setSelection'](_0x12e98a),_0x4466f5['commands']['get'](_0x137427['commandName'])['refresh'](),_0x137427['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4466f5['execute'](_0x137427['commandName'],..._0x137427['commandParams']),_0x3489b1['setSelection'](_0x19866d);for(const _0x2b84ba of _0x19866d)_0x2b84ba['detach']();});}),_0x593bff['descriptionFactory']['registerElementLabel'](function(_0x53430c){const _0x5db149=!_0x4466f5['model']['schema']['isObject'](_0x53430c),_0x2294be=_0x53430c['previousSibling'],_0xe6cfbd=_0x53430c['nextSibling'],_0x1b8525=_0x53430c['getAttribute']('listItemId'),_0x5a327f=!_0x2294be||_0x2294be['getAttribute']('listItemId')!==_0x1b8525,_0x3cfa5d=!_0xe6cfbd||_0xe6cfbd['getAttribute']('listItemId')!==_0x1b8525;return _0x5db149&&Boolean(_0x1b8525)&&_0x5a327f&&_0x3cfa5d;},_0x4fff4e=>o(_0x4a64b4,'ELEMENT_LIST_ITEM',_0x4fff4e));}['_registerLegacyDescription'](){const _0x24a266=this['editor'],_0x3749d8=_0x24a266['locale'];function _0x40c704(_0xc65782){const _0x396611=_0x24a266['commands']['get']('bulletedList')['value'],_0x5a2eb5=_0x24a266['commands']['get']('numberedList')['value'];return'numberedList'===_0xc65782?_0x396611:_0x5a2eb5;}_0x24a266['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x535bec){if('formatBlock'!=_0x535bec['type'])return;const {data:_0xc81e2e}=_0x535bec;if(!_0xc81e2e)return;let _0x42ddbb,_0x22e5d0,_0x32f19f,_0x339e78;switch(_0xc81e2e['commandName']){case'bulletedList':_0x32f19f=_0xc81e2e['commandParams'][0x0]['forceValue'],_0x339e78=_0x40c704(_0xc81e2e['commandName']),_0x42ddbb=_0x32f19f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x339e78&&_0x24a266['config']['get']('list.multiBlock')||(_0x42ddbb='*Change\x20to:*\x20%0'),_0x22e5d0={'type':'format','content':o(_0x3749d8,_0x42ddbb,o(_0x3749d8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x32f19f=_0xc81e2e['commandParams'][0x0]['forceValue'],_0x339e78=_0x40c704(_0xc81e2e['commandName']),_0x42ddbb=_0x32f19f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x339e78&&_0x24a266['config']['get']('list.multiBlock')||(_0x42ddbb='*Change\x20to:*\x20%0'),_0x22e5d0={'type':'format','content':o(_0x3749d8,_0x42ddbb,o(_0x3749d8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x42ddbb='*Indent:*\x20%0',_0x22e5d0={'type':'format','content':o(_0x3749d8,_0x42ddbb,o(_0x3749d8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x42ddbb=function(_0x242b1a){const _0x108911=_0x242b1a['getFirstRange']();let _0xc25542=_0x108911['start']['nodeAfter'];for(;_0xc25542&&_0x108911['containsItem'](_0xc25542);){if(_0xc25542['getAttribute']('listIndent')>0x0)return!0x1;_0xc25542=_0xc25542['nextSibling'];}return!0x0;}(_0x535bec)?o(_0x3749d8,'*Format:*\x20remove\x20from\x20%0',o(_0x3749d8,function(_0x5477fe){return'ELEMENT_'+_0x5477fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x535bec))):o(_0x3749d8,'*Outdent:*\x20%0',o(_0x3749d8,'ELEMENT_LIST_ITEM')),_0x22e5d0={'type':'format','content':_0x42ddbb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc81e2e['multipleBlocks']&&(_0x42ddbb='*Merge:*\x20%0',_0x22e5d0={'type':'deletion','content':o(_0x3749d8,_0x42ddbb,o(_0x3749d8,'ELEMENT_LIST_ITEM'))});}return _0x22e5d0;});}}function le(_0xfdc7b){let _0x168e0f=_0xfdc7b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x168e0f;){const _0x460994=_0x168e0f['getAttribute']('listItemId');if(!_0x460994)return!0x1;if(_0x460994==_0xfdc7b['data']['newValue'])return'newValue';if(_0x460994==_0xfdc7b['data']['oldValue'])return'oldValue';_0x168e0f=_0x168e0f['previousSibling'];}return!0x1;}class ue extends _0x426b8a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x377683=this['editor']['config']['get']('list.properties'),_0x5d2979=this['editor']['plugins']['get']('TrackChangesEditing');_0x377683['styles']&&(_0x5d2979['enableDefaultAttributesIntegration']('listStyle'),_0x5d2979['registerBlockAttribute']('listStyle')),_0x377683['reversed']&&(_0x5d2979['enableDefaultAttributesIntegration']('listReversed'),_0x5d2979['registerBlockAttribute']('listReversed')),_0x377683['startIndex']&&(_0x5d2979['enableDefaultAttributesIntegration']('listStart'),_0x5d2979['registerBlockAttribute']('listStart'));const _0x4003d0={'type':'format','content':''};_0x5d2979['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x230c51=this['editor']['locale'];_0x5d2979['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x230c51,'FORMAT_LIST_REVERSED')),_0x5d2979['descriptionFactory']['registerDescriptionCallback'](_0x4fd18f=>{const {data:_0x483ed5}=_0x4fd18f;if(_0x483ed5&&'listReversed'==_0x483ed5['key'])return null==_0x483ed5['newValue']||0x0==_0x483ed5['newValue']&&null==_0x483ed5['oldValue']?_0x4003d0:void 0x0;}),_0x5d2979['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x230c51,'FORMAT_LIST_START')),_0x5d2979['descriptionFactory']['registerDescriptionCallback'](_0x203d25=>{const {data:_0x2c3ac9}=_0x203d25;if(_0x2c3ac9&&'listStart'==_0x2c3ac9['key'])return null==_0x2c3ac9['newValue']||0x1==_0x2c3ac9['newValue']&&null==_0x2c3ac9['oldValue']?_0x4003d0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f8f11=>{if(_0x2f8f11['batch']['isUndo'])return!0x1;let _0x4c96a4=!0x1;const _0x139b36=_0x5d2979['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34ada1=>{const _0x1d9852=_0x5d2979['_getAttributeKey'](_0x34ada1);return'listStart'==_0x1d9852||'listReversed'==_0x1d9852;});for(const _0x580b74 of _0x139b36){const _0x2f263f=_0x580b74['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2f263f||'customNumbered'==_0x2f263f)continue;_0x5d2979['_findSuggestions'](_0x580b74['getFirstRange'](),'attribute')['find'](_0x26ac1a=>'listType'==_0x5d2979['_getAttributeKey'](_0x26ac1a['suggestion']))||(_0x2f8f11['removeMarker'](_0x580b74['getFirstMarker']()),_0x4c96a4=!0x0);}return _0x4c96a4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3dc46f){const _0x23d985=this['editor']['locale'],{data:_0x331274}=_0x3dc46f,_0x5f4f53={'type':'format','content':''};if(!_0x331274||'listStyle'!=_0x331274['key'])return;if(!_0x331274['oldValue'])return'default'==_0x331274['newValue']?_0x5f4f53:{'type':'format','content':''+o(_0x23d985,'*Set\x20format:*\x20%0',o(_0x23d985,this['_getTranslationKeyForListStyle'](_0x331274['newValue'])))};if(!_0x331274['newValue']){if('default'==_0x331274['oldValue'])return _0x5f4f53;let _0x5d3643=_0x3dc46f['head'];for(;_0x5d3643;){if(_0x5d3643['data']&&'listType'==_0x5d3643['data']['key']&&_0x5d3643['data']['newValue'])return _0x5f4f53;_0x5d3643=_0x5d3643['next'];}return{'type':'format','content':''+o(_0x23d985,'*Remove\x20format:*\x20%0',o(_0x23d985,this['_getTranslationKeyForListStyle'](_0x331274['oldValue'])))};}if('default'!=_0x331274['newValue'])return{'type':'format','content':''+o(_0x23d985,'*Set\x20format:*\x20%0',o(_0x23d985,this['_getTranslationKeyForListStyle'](_0x331274['newValue'])))};let _0x4b87df=_0x3dc46f['head'];for(;_0x4b87df;){if(_0x4b87df['data']&&'listType'==_0x4b87df['data']['key']&&_0x4b87df['data']['newValue']&&_0x4b87df['data']['oldValue'])return _0x5f4f53;_0x4b87df=_0x4b87df['next'];}return{'type':'format','content':o(_0x23d985,'*Set\x20format:*\x20%0',o(_0x23d985,'ELEMENT_'+_0x3dc46f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ea4cb=this['editor'],_0x178165=_0x2ea4cb['locale'];_0x2ea4cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555deb=>{if('formatBlock'!=_0x555deb['type'])return;const {data:_0x56a695}=_0x555deb;if(!_0x56a695)return;let _0x416998,_0x38a04c;switch(_0x56a695['commandName']){case'listStyle':_0x416998='*Change\x20to:*\x20%0',_0x38a04c={'type':'format','content':o(_0x178165,_0x416998,o(_0x178165,this['_getTranslationKeyForListStyle'](_0x56a695['commandParams'][0x0]['type'])))};break;case'listReversed':_0x416998=_0x56a695['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38a04c={'type':'format','content':o(_0x178165,_0x416998)};break;case'listStart':_0x416998='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38a04c={'type':'format','content':o(_0x178165,_0x416998,_0x56a695['commandParams'][0x0]['startIndex'])};}return _0x38a04c;});}['_getTranslationKeyForListStyle'](_0x8f9449){return'ELEMENT_'+function(_0x1896bc){if(pe['includes'](_0x1896bc))return'bulleted';if(ye['includes'](_0x1896bc))return'numbered';return null;}(_0x8f9449)['toUpperCase']()+'_LIST_'+_0x8f9449['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x426b8a{static get['requires'](){return[_0x2f53ce];}['init'](){const _0x2be833=this['editor'],_0x4acd7c=_0x2be833['plugins']['get']('TrackChangesEditing'),_0x55c03b=_0x2be833['commands']['get']('enter');_0x4acd7c['enableCommand']('enter',()=>{_0x2be833['model']['change'](_0x271fe1=>{const _0x4e9d33=_0x2be833['model']['document']['selection'],_0xdb2fe9=_0x4e9d33['getFirstPosition'](),_0x547017=_0x41bd9b['fromRange'](_0x4e9d33['getFirstRange']());if(_0x55c03b['enterBlock'](_0x271fe1)){const _0x2bf8a1=_0x2be833['model']['createPositionAt'](_0xdb2fe9['parent']['nextSibling'],0x0),_0x55cae0=_0x271fe1['createRange'](_0xdb2fe9,_0x2bf8a1);_0x4acd7c['markInsertion'](_0x55cae0);}else _0x271fe1['setSelection'](_0x271fe1['createRange'](_0x547017['end']));_0x547017['detach'](),_0x55c03b['fire']('afterExecute',{'writer':_0x271fe1});});}),_0x2be833['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2be833,'split'),{'priority':'high'}),_0x2be833['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2e6c14,_0x5d3906,_0x4b30fa)=>{const _0x223660=_0x4b30fa['mapper']['markerNameToElements'](_0x5d3906['markerName']);if(_0x223660){for(const _0x49298f of _0x223660)_0x49298f['hasClass']('ck-suggestion-marker-split')&&(_0x4b30fa['mapper']['unbindElementFromMarkerName'](_0x49298f,_0x5d3906['markerName']),_0x4b30fa['writer']['remove'](_0x49298f));}},{'priority':'high'}),_0x2be833['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27e2f5,_0x5dc345,_0x2b2fc3)=>{_0x2b2fc3['options']['showSuggestionHighlights']&&_e(_0x2be833,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x27e2f5,_0x5dc345,_0x2b2fc3);},{'priority':'high'});}}class J extends _0x426b8a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc06b0a=this['editor']['plugins']['get']('TrackChangesEditing');_0xc06b0a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc06b0a['enableCommand']('findNext'),_0xc06b0a['enableCommand']('findPrevious'),_0xc06b0a['enableCommand']('replace'),_0xc06b0a['enableCommand']('replaceAll');}['handleFindCommand'](_0x3babea,_0x2568c6,_0x153f64={}){const _0x5d09df=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3babea(_0x48c6d8=>('string'==typeof _0x2568c6?_0x5d09df['findByTextCallback'](_0x2568c6,_0x153f64):_0x2568c6)(_0x48c6d8)['filter'](_0x27989a=>!0x1===this['_isInDeletionRange'](_0x27989a,_0x48c6d8['item'])),_0x153f64);}['_isInDeletionRange'](_0x2371ae,_0x5c50ec){const _0x41c08c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c50ec,_0x2371ae['start']),this['editor']['model']['createPositionAt'](_0x5c50ec,_0x2371ae['end']));for(const _0x5e7577 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x41c08c['getIntersection'](_0x5e7577['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 _0x426b8a{['afterInit'](){const _0x56f51d=this['editor']['locale'],_0x217e12=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x494cb8,commandName:_0x47db81}of ro)this['editor']['plugins']['has'](_0x494cb8)&&(_0x217e12['enableDefaultAttributesIntegration'](_0x47db81),_0x217e12['registerInlineAttribute'](_0x47db81));_0x56f51d['t'],_0x217e12['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x56f51d,'FORMAT_FONT_SIZE')),_0x217e12['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x56f51d,'FORMAT_FONT_FAMILY')),_0x217e12['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x56f51d,'FORMAT_FONT_COLOR')),_0x217e12['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x56f51d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cdaf5=this['editor'],_0x2be0e0=_0x2cdaf5['locale'];_0x2cdaf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c1e83=>{const _0x5ebab4=_0x2be0e0['t'];if('formatInline'!=_0x2c1e83['type'])return;const {data:_0x5e3f81}=_0x2c1e83;if(null!=_0x5e3f81){if('fontSize'==_0x5e3f81['commandName']){const _0x52dbfa=_0x5e3f81['commandParams'][0x0]['value'];if(_0x52dbfa){const _0x3ff72c=_0x5ebab4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2a0d3e=>_0x2a0d3e['model']==_0x52dbfa)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2be0e0,'*Set\x20font\x20size:*\x20%0',_0x3ff72c)};}return{'type':'format','content':o(_0x2be0e0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e3f81['commandName']){const _0x46d69d=_0x5e3f81['commandParams'][0x0]['value'];return _0x46d69d?{'type':'format','content':o(_0x2be0e0,'*Set\x20font\x20family:*\x20%0',_0x46d69d)}:{'type':'format','content':o(_0x2be0e0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e3f81['commandName']){const _0x1ea77d=_0x5e3f81['commandParams'][0x0]['value'];if(_0x1ea77d){const _0x4365c4=_0x2f2270(this['editor']['config']['get']('fontColor.colors'))['find'](_0x41fd7d=>_0x41fd7d['model']==_0x1ea77d);let _0xbd7de5=_0x1ea77d,_0x3c8f32='';return _0x4365c4&&(_0xbd7de5=_0x4365c4['label'],_0x3c8f32=_0x5ebab4(_0xbd7de5)['toLowerCase']()),{'type':'format','content':o(_0x2be0e0,'*Set\x20font\x20color:*\x20%0',_0x3c8f32)['trim'](),'color':{'value':_0x1ea77d,'title':_0x3c8f32||_0xbd7de5}};}return{'type':'format','content':o(_0x2be0e0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e3f81['commandName']){const _0x424528=_0x5e3f81['commandParams'][0x0]['value'];if(_0x424528){const _0x1598bd=_0x2f2270(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xdc3222=>_0xdc3222['model']==_0x424528);let _0xa0aabd=_0x424528,_0x1acdb2='';return _0x1598bd&&(_0xa0aabd=_0x1598bd['label'],_0x1acdb2=_0x5ebab4(_0xa0aabd)['toLowerCase']()),{'type':'format','content':o(_0x2be0e0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1acdb2)['trim'](),'color':{'value':_0x424528,'title':_0x1acdb2||_0xa0aabd}};}return{'type':'format','content':o(_0x2be0e0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x426b8a{['afterInit'](){const _0x4f46ad=this['editor'],_0x2ddb18=_0x4f46ad['plugins']['get']('TrackChangesEditing'),_0x150427=_0x4f46ad['commands']['get']('copyFormat'),_0x5b9624=_0x4f46ad['commands']['get']('pasteFormat');_0x150427&&_0x5b9624&&(_0x2ddb18['enableDefaultAttributesIntegration']('pasteFormat'),_0x2ddb18['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2670a2=this['editor'],_0x360506=_0x2670a2['locale'];_0x2670a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289360=>{if('formatBlock'!=_0x289360['type']&&'formatInline'!=_0x289360['type'])return;const {data:_0x359f9d}=_0x289360;if(_0x359f9d&&'pasteFormat'===_0x359f9d['commandName']){const _0x287879=[],_0xa8c881=_0x359f9d['commandParams'][0x0];for(const [_0xc210be,_0x32ff26]of Object['entries'](_0xa8c881))_0x287879['push'](so(_0x2670a2,_0xc210be,_0x32ff26));return _0x287879['length']?{'type':'format','content':o(_0x360506,'*Set\x20format\x20to:*\x20%0',_0x287879['join'](',\x20'))}:{'type':'format','content':o(_0x360506,'*Remove\x20all\x20formatting*')};}});}}function so(_0x539703,_0x21ad33,_0x35a567){const _0x36475f=_0x539703['locale']['t'],_0x5ca3f7=_0x21ad33['split'](/(?=[A-Z])/)['join']('\x20'),_0x20cd0b=_0x36475f(_0x5ca3f7['charAt'](0x0)['toUpperCase']()+_0x5ca3f7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x35a567)return _0x20cd0b;if('fontColor'===_0x21ad33||'fontBackgroundColor'===_0x21ad33){const _0x7221b7=_0x2f2270(_0x539703['config']['get']('fontColor.colors'))['find'](_0x1fa602=>_0x1fa602['model']==_0x35a567);return _0x20cd0b+'\x20('+(_0x7221b7?_0x36475f(_0x7221b7['label'])['toLowerCase']():_0x35a567)+')';}if('fontSize'===_0x21ad33&&isNaN(parseFloat(_0x35a567))){const _0x13d4c8=_0x539703['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x539703['config']['get']('fontSize.options'))['find'](_0x26859d=>_0x26859d['model']==_0x35a567);return _0x20cd0b+'\x20('+(_0x13d4c8?_0x36475f(_0x13d4c8['title'])['toLowerCase']():_0x35a567)+')';}return _0x20cd0b+'\x20('+_0x35a567+')';}class Y extends _0x426b8a{['_headingOptions'];['afterInit'](){const _0x485bd4=this['editor'];if(!_0x485bd4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x485bd4['config']['get']('heading.options');const _0x1934e2=_0x485bd4['locale'],_0x4ac115=_0x485bd4['plugins']['get']('TrackChangesEditing');_0x4ac115['enableDefaultAttributesIntegration']('heading');for(const _0x58b428 of this['_headingOptions'])'paragraph'!=_0x58b428['model']&&_0x4ac115['descriptionFactory']['registerElementLabel'](_0x58b428['model'],_0x13fe3b=>{const _0x4b8724=this['_getHeadingLevel'](_0x58b428['model']);return null!==_0x4b8724?_0x28b6be(_0x13fe3b,_0x4b8724):_0x4ca922(_0x13fe3b,_0x58b428['title']);});function _0x28b6be(_0x2dd9dc,_0x3a495c){return o(_0x1934e2,'ELEMENT_HEADING',[_0x2dd9dc,_0x3a495c]);}function _0x4ca922(_0x48273f,_0x36dcf7){return o(_0x1934e2,'ELEMENT_HEADING_CUSTOM',[_0x48273f,_0x36dcf7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5af1b3=this['editor'],_0x240d6b=_0x5af1b3['locale'];function _0x3f16ac(_0x557200,_0x416e65){return o(_0x240d6b,'ELEMENT_HEADING_CUSTOM',[_0x557200,_0x416e65]);}_0x5af1b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a4645=>{if('formatBlock'!=_0x3a4645['type'])return;const {data:_0x3116b0}=_0x3a4645;if(_0x3116b0&&'heading'==_0x3116b0['commandName']){const _0x3a6748=_0x3116b0['commandParams'][0x0]['value'],_0x1385c1=this['_getHeadingLevel'](_0x3a6748);if(null!==_0x1385c1)return{'type':'format','content':o(_0x240d6b,'*Change\x20to:*\x20%0',(_0x1c5031=0x1,_0x5f262c=_0x1385c1,o(_0x240d6b,'ELEMENT_HEADING',[_0x1c5031,_0x5f262c])))};const _0x2c18e4=this['_headingOptions']['find'](_0x424781=>_0x424781['model']===_0x3a6748)['title'];return{'type':'format','content':o(_0x240d6b,'*Change\x20to:*\x20%0',_0x3f16ac(0x1,_0x2c18e4))};}var _0x1c5031,_0x5f262c;});}['_getHeadingLevel'](_0x52b860){const _0x436f2f=_0x52b860['match'](/^heading(\d+)/);if(_0x436f2f)return _0x436f2f[0x1];const _0x459a86=this['_headingOptions']?.['find'](_0x5f055c=>_0x5f055c['model']==_0x52b860);if(_0x459a86&&_0x459a86['view']){const _0x19c698=_0x459a86['view'],_0x297b8a=(_0x19c698['name']??_0x19c698)['match'](/^h(\d+)/);if(_0x297b8a)return _0x297b8a[0x1];}return null;}}class Z extends _0x426b8a{['afterInit'](){const _0x2031fa=this['editor'];if(!_0x2031fa['plugins']['has']('HighlightEditing'))return;const _0x2832f5=_0x2031fa['plugins']['get']('TrackChangesEditing'),_0x338cbc=_0x2031fa['locale'];_0x2832f5['enableDefaultAttributesIntegration']('highlight'),_0x2832f5['registerInlineAttribute']('highlight'),_0x2832f5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x338cbc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x126c1f=this['editor'],_0x990839=_0x126c1f['locale'];_0x126c1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52b3dd=>{if('formatInline'!=_0x52b3dd['type'])return;const {data:_0x25de25}=_0x52b3dd;if(_0x25de25&&'highlight'==_0x25de25['commandName']){const _0x1e6699=_0x990839['t'],_0x344a4c=_0x25de25['commandParams'][0x0]['value'];if(_0x344a4c){const _0x482042=_0x126c1f['config']['get']('highlight.options')['find'](_0x617ea8=>_0x617ea8['model']==_0x344a4c),_0x4cdabd=_0x1e6699(_0x482042['title'])['toLowerCase']();return{'type':'format','content':o(_0x990839,'*Set\x20highlight:*\x20%0',_0x4cdabd),'color':{'value':_0x482042['color'],'title':_0x482042['title']}};}return{'type':'format','content':o(_0x990839,'*Remove\x20highlight*',o(_0x990839,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x426b8a{['afterInit'](){const _0x9257cc=this['editor'];if(!_0x9257cc['plugins']['has']('HorizontalLineEditing'))return;_0x9257cc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5f92fb=_0x9257cc['plugins']['get']('TrackChangesEditing'),_0x37a785=_0x9257cc['locale'];_0x5f92fb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4edf4c=>o(_0x37a785,'ELEMENT_HORIZONTAL_LINE',_0x4edf4c)),_0x9257cc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x26d3ad,{writer:_0x5b61e5,options:_0x1fde28})=>{if(!_0x1fde28['showSuggestionHighlights'])return null;const _0x4ef0b0=_0x5b61e5['createContainerElement']('div'),_0x173405=_0x5b61e5['createEmptyElement']('hr');return _0x5b61e5['addClass']('ck-horizontal-line',_0x4ef0b0),_0x5b61e5['insert'](_0x5b61e5['createPositionAt'](_0x4ef0b0,0x0),_0x173405),_0x4ef0b0;},'converterPriority':'high'});}}class et extends _0x426b8a{['afterInit'](){const _0x25ba00=this['editor'];if(!_0x25ba00['plugins']['has']('HtmlEmbed'))return;const _0x47bdad=_0x25ba00['plugins']['get']('TrackChangesEditing'),_0x1f1afe=_0x25ba00['locale'];_0x47bdad['descriptionFactory']['registerElementLabel']('rawHtml',_0x5be54e=>o(_0x1f1afe,'ELEMENT_HTML_EMBED',_0x5be54e)),_0x47bdad['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47bdad['registerBlockAttribute']('value'),_0x47bdad['descriptionFactory']['registerDescriptionCallback'](_0x5c1cab=>{if('attribute'!=_0x5c1cab['type'])return;const {data:_0x5c9542}=_0x5c1cab;if(_0x5c9542&&'value'==_0x5c9542['key']&&_0x5c1cab['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x583ca2=o(_0x1f1afe,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f1afe,'*Change\x20%0\x20content*',_0x583ca2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ad4af=this['editor'],_0x23468d=_0x4ad4af['locale'];_0x4ad4af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f70e7=>{if('formatBlock'!=_0x2f70e7['type'])return;const {data:_0x3dd8c7}=_0x2f70e7;if(_0x3dd8c7&&'htmlEmbed'==_0x3dd8c7['commandName']){const _0x5c3ced=o(_0x23468d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23468d,'*Change\x20%0\x20content*',_0x5c3ced)};}});}}class it extends _0x426b8a{['afterInit'](){const _0x4433fb=this['editor'];if(!_0x4433fb['plugins']['has']('ImageEditing'))return;const _0x7433b6=_0x4433fb['plugins']['get']('TrackChangesEditing'),_0x1311e5=_0x4433fb['plugins']['get']('ImageUtils'),_0x1ca462=_0x4433fb['locale'];_0x7433b6['enableCommand']('insertImage'),_0x7433b6['descriptionFactory']['registerElementLabel']('imageBlock',_0x384614=>o(_0x1ca462,'ELEMENT_IMAGE',_0x384614)),_0x7433b6['descriptionFactory']['registerElementLabel']('imageInline',_0x568160=>o(_0x1ca462,'ELEMENT_INLINE_IMAGE',_0x568160)),_0x7433b6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1ca462,'ELEMENT_CAPTION')),_0x4433fb['plugins']['has']('ImageUploadEditing')&&_0x7433b6['enableCommand']('uploadImage'),_0x4433fb['plugins']['has']('ImageBlockEditing')&&_0x4433fb['plugins']['has']('ImageInlineEditing')&&(_0x7433b6['enableCommand']('imageTypeInline',(_0x2d525b,_0xe6b356)=>{const _0x2ab0c5=_0x1311e5['getClosestSelectedImageElement'](_0x4433fb['model']['document']['selection']);_0x4433fb['model']['change'](()=>{_0x7433b6['markBlockFormat'](_0x2ab0c5,{'commandName':'imageTypeInline','commandParams':[_0xe6b356]},[],'convertBlockImageToInline');});}),_0x7433b6['enableCommand']('imageTypeBlock',(_0x11d812,_0x50a275)=>{_0x4433fb['model']['change'](_0x5f12c1=>{let _0x56630e=_0x1311e5['getClosestSelectedImageElement'](_0x4433fb['model']['document']['selection']),_0x4a1ecf=_0x5f12c1['createRangeOn'](_0x56630e);const _0x3057a9=_0x43dad7['fromPosition'](_0x4a1ecf['start'],'toPrevious'),_0x313b3e=_0x43dad7['fromPosition'](_0x4a1ecf['end'],'toNext');_0x7433b6['forceDefaultExecution'](()=>_0x11d812(_0x50a275)),_0x56630e=_0x1311e5['getClosestSelectedImageElement'](_0x4433fb['model']['document']['selection']),_0x4a1ecf=_0x5f12c1['createRangeOn'](_0x56630e);const _0x354833=_0x5f12c1['createRange'](_0x3057a9,_0x313b3e);_0x3057a9['detach'](),_0x313b3e['detach'](),_0x7433b6['markBlockFormat'](_0x56630e,{'commandName':'imageTypeInline','commandParams':[_0x50a275]},[],'convertInlineImageToBlock'),_0x354833['start']['isBefore'](_0x4a1ecf['start'])&&_0x7433b6['markInsertion'](_0x5f12c1['createRange'](_0x354833['start'],_0x4a1ecf['start']),'convertInlineImageToBlock'),_0x4a1ecf['end']['isBefore'](_0x354833['end'])&&_0x7433b6['markInsertion'](_0x5f12c1['createRange'](_0x4a1ecf['end'],_0x354833['end']),'convertInlineImageToBlock');});}),_0x7433b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x7433b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x7433b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x7433b6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x7433b6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x7433b6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5c8d8c])=>{const _0x3c84fd=_0x7433b6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x26e28=_0x5c8d8c['start'],_0x2570b2=_0x5c8d8c['end'];const _0x490ba8=_0x4433fb['model']['schema']['getNearestSelectionRange'](_0x26e28,'backward'),_0x50fb6c=_0x4433fb['model']['schema']['getNearestSelectionRange'](_0x2570b2,'forward');_0x490ba8['isCollapsed']&&(_0x26e28=_0x490ba8['start']),_0x50fb6c['isCollapsed']&&(_0x2570b2=_0x50fb6c['end']),_0x3c84fd([_0x4433fb['model']['createRange'](_0x26e28,_0x2570b2)]);}),_0x7433b6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x309c36),_0x7433b6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x309c36)),_0x4433fb['plugins']['has']('ImageCaptionEditing')&&(_0x7433b6['enableCommand']('toggleImageCaption',(_0x321fa0,_0x12f755)=>{const _0x4cdb60=_0x4433fb['plugins']['get']('ImageCaptionUtils');let _0x2a6d94=_0x1311e5['getClosestSelectedImageElement'](_0x4433fb['model']['document']['selection']),_0x420771=_0x4cdb60['getCaptionFromImageModelElement'](_0x2a6d94);_0x4433fb['model']['change'](()=>{if(_0x420771)return void _0x7433b6['markDeletion'](_0x4433fb['model']['createRangeOn'](_0x420771));const _0xf30a05=_0x1311e5['isBlockImage'](_0x2a6d94);_0x321fa0(_0x12f755),_0x2a6d94=_0x1311e5['getClosestSelectedImageElement'](_0x4433fb['model']['document']['selection']),_0x420771=_0x4cdb60['getCaptionFromImageModelElement'](_0x2a6d94),_0x7433b6['markInsertion'](_0x4433fb['model']['createRangeOn'](_0x420771),_0xf30a05?null:'imageCaption');});}),_0x7433b6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x309c36));const _0x4b6df4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e9611(_0x519f70,_0x5b3245){const _0x389fee=_0x4b6df4['findIndex'](({type:_0x3832d9,subType:_0x29ddc2})=>_0x519f70['type']==_0x3832d9&&_0x519f70['subType']==_0x29ddc2),_0xf10329=_0x4b6df4['findIndex'](({type:_0x5e851f,subType:_0x36c221})=>_0x5b3245['type']==_0x5e851f&&_0x5b3245['subType']==_0x36c221);if(_0x389fee<0x0||_0xf10329<0x0)return!0x1;const _0x4c6585=_0x519f70['getFirstRange'](),_0x2decd6=_0x5b3245['getFirstRange']();if((0x0==_0x389fee||0x1==_0x389fee)&&0x2==_0xf10329&&_0x4c6585['isIntersecting'](_0x2decd6))return!0x0;if(0x2==_0x389fee&&0x3==_0xf10329){const _0xf8ffb3=_0x7433b6['_findSuggestions'](_0x4c6585,'insertion')['filter'](({suggestion:_0x5ebc59,meta:_0x112bf2})=>_0x112bf2['isOwn']&&'convertInlineImageToBlock'==_0x5ebc59['subType']);if(_0xf8ffb3['length']>0x1&&_0x2decd6['end']['isEqual'](_0x4c6585['start']))return!0x0;if(0x1==_0xf8ffb3['length']&&(_0x4c6585['start']['isEqual'](_0x2decd6['end'])||_0x4c6585['end']['isEqual'](_0x2decd6['start'])))return!0x0;}if(0x3==_0x389fee&&0x3==_0xf10329&&_0x4c6585['start']['isBefore'](_0x2decd6['start'])){const _0x2f02a4=_0x4c6585['end']['nodeAfter'],_0x31f00c=_0x2decd6['start']['nodeBefore'];return _0x1311e5['isBlockImage'](_0x2f02a4)&&_0x2f02a4===_0x31f00c;}return!0x1;}function _0x309c36(_0xc9d36c,_0x10a978){return _0x1e9611(_0xc9d36c,_0x10a978)?[_0xc9d36c,_0x10a978]:_0x1e9611(_0x10a978,_0xc9d36c)?[_0x10a978,_0xc9d36c]:null;}_0x4433fb['plugins']['has']('ImageResize')&&(_0x7433b6['enableDefaultAttributesIntegration']('resizeImage'),_0x7433b6['registerBlockAttribute']('resizedWidth'),_0x7433b6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1ca462,'FORMAT_IMAGE_SIZE'))),_0x4433fb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x7433b6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x7433b6['registerBlockAttribute']('alt')),_0x7433b6['descriptionFactory']['registerDescriptionCallback'](_0x21366f=>{if(!!_0x4b6df4['find'](({type:_0x4689ac,subType:_0xd353a3})=>_0x21366f['type']==_0x4689ac&&_0x21366f['subType']==_0xd353a3))return _0x21366f['previous']?{}:void 0x0;}),_0x7433b6['descriptionFactory']['registerDescriptionCallback'](_0x2ae715=>{if('insertion'==_0x2ae715['type']||'deletion'==_0x2ae715['type']){const _0x1c6e63=_0x2ae715['getContainedElement']();if(_0x1c6e63&&_0x1c6e63['is']('element','caption'))return{'type':'insertion'==_0x2ae715['type']?'addObject':'removeObject','element':_0x1c6e63,'quantity':0x1};}}),_0x7433b6['descriptionFactory']['registerDescriptionCallback'](_0x26b4af=>'formatBlock'==_0x26b4af['type']&&'convertInlineImageToBlock'==_0x26b4af['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26b4af['type']&&'convertBlockImageToInline'==_0x26b4af['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x7433b6['descriptionFactory']['registerDescriptionCallback'](_0x4afb26=>{if('attribute'!=_0x4afb26['type'])return;const {data:_0x46f0d4}=_0x4afb26;if(!_0x46f0d4||'alt'!=_0x46f0d4['key'])return;const _0x5a08ad=_0x46f0d4['newValue'];return _0x5a08ad?{'type':'format','content':o(_0x1ca462,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a08ad+'\x22')}:{'type':'format','content':o(_0x1ca462,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2afa38=this['editor'],_0x1f1329=_0x2afa38['locale'];_0x2afa38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bc5ec=>{if('formatBlock'!=_0x2bc5ec['type']&&'formatInline'!=_0x2bc5ec['type'])return;const {data:_0x22680e}=_0x2bc5ec;if(_0x22680e){if('imageTextAlternative'==_0x22680e['commandName']){const _0x5e2aaa=_0x22680e['commandParams'][0x0]['newValue'];return _0x5e2aaa?{'type':'format','content':o(_0x1f1329,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5e2aaa+'\x22')}:{'type':'format','content':o(_0x1f1329,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x22680e['commandName']){const _0x553bbc=_0x22680e['commandParams'][0x0]['width'];return _0x553bbc?{'type':'format','content':o(_0x1f1329,'*Set\x20image\x20width:*\x20%0',_0x553bbc)}:{'type':'format','content':o(_0x1f1329,'*Reset\x20image\x20width*')};}}});}}class st extends _0x426b8a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x37361e=this['editor']['locale'],_0x55d57c=this['editor']['plugins']['get']('TrackChangesEditing');_0x55d57c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x55d57c['registerBlockAttribute']('src'),_0x55d57c['descriptionFactory']['registerDescriptionCallback'](_0x29816a=>{if('attribute'!=_0x29816a['type'])return;const {data:_0xa4035a}=_0x29816a;return _0xa4035a&&'src'==_0xa4035a['key']?_0xa4035a['newValue']&&_0xa4035a['oldValue']?{'type':'format','content':o(_0x37361e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x532035=this['editor']['plugins']['get']('TrackChangesEditing');_0x532035['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x532035['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532035['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x532035['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25f1b8=this['editor'],_0x2991b7=_0x25f1b8['locale'];_0x25f1b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120c90=>{if('formatBlock'!=_0x120c90['type']&&'formatInline'!=_0x120c90['type'])return;const {data:_0x3cb476}=_0x120c90;if(!_0x3cb476||'replaceImageSource'!=_0x3cb476['commandName'])return;return{'type':'format','content':o(_0x2991b7,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x426b8a{['afterInit'](){const _0x4b825d=this['editor'];if(!_0x4b825d['plugins']['has']('ImageStyleEditing'))return;const _0x514c25=_0x4b825d['plugins']['get']('TrackChangesEditing'),_0x6965d7=_0x4b825d['plugins']['get']('ImageUtils'),_0x1bf4b2={};_0x514c25['enableCommand']('imageStyle',(_0x5e882d,_0x1032b0)=>{const _0x32d492=_0x4b825d['plugins']['get']('Users')['me'],_0x139592=_0x4b825d['commands']['get']('imageStyle');let _0x2f8079=_0x6965d7['getClosestSelectedImageElement'](_0x4b825d['model']['document']['selection']),_0x102309=_0x4b825d['model']['createRangeOn'](_0x2f8079),_0x13f666=_0x139592['value'];if(_0x13f666==_0x1032b0['value'])return;const _0xea61bb={'commandName':'imageStyle','commandParams':[_0x1032b0],'formatGroupId':_0x28b84b()};_0x4b825d['model']['change'](()=>{if(_0x514c25['getSuggestions']()['filter'](_0x305bbb=>_0x305bbb['isInContent']&&_0x32d492==_0x305bbb['author']&&('formatBlock'==_0x305bbb['type']||'formatInline'==_0x305bbb['type'])&&('imageStylePreApply'==_0x305bbb['subType']||'imageStylePostApply'==_0x305bbb['subType'])&&_0x305bbb['getFirstRange']()['isEqual'](_0x102309))['forEach'](_0x414689=>_0x514c25['discardSuggestion'](_0x414689['head'])),_0x2f8079=_0x6965d7['getClosestSelectedImageElement'](_0x4b825d['model']['document']['selection']),_0x102309=_0x4b825d['model']['createRangeOn'](_0x2f8079),_0x139592['refresh'](),_0x4b825d['commands']['get']('imageTypeInline')['refresh'](),_0x4b825d['commands']['get']('imageTypeBlock')['refresh'](),_0x13f666=_0x139592['value'],_0x13f666!=_0x1032b0['value'])return _0x6965d7['isInlineImage'](_0x2f8079)&&_0x139592['shouldConvertImageType'](_0x1032b0['value'],_0x2f8079)?(_0x5e882d({..._0x1032b0,'setImageSizes':!0x1}),_0x2f8079=_0x6965d7['getClosestSelectedImageElement'](_0x4b825d['model']['document']['selection']),void _0x514c25['markBlockFormat'](_0x2f8079,{..._0xea61bb,'commandReversedParams':[{'value':_0x13f666||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6965d7['isBlockImage'](_0x2f8079)?_0x514c25['markBlockFormat'](_0x2f8079,_0xea61bb,[],'imageStylePostApply'):_0x514c25['markInlineFormat'](_0x102309,_0xea61bb,'imageStylePostApply'));});});for(const _0x14d992 of _0x4b825d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1bf4b2[_0x14d992['name']]=_0x14d992['title']['toLowerCase']();_0x514c25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x514c25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x514c25['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x514c25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52aa8b])=>{_0x6965d7['setImageNaturalSizeAttributes'](_0x52aa8b['getContainedElement']());}),_0x514c25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2dfb95,_0xc9b883)=>{_0x514c25['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2dfb95,{'commandName':_0xc9b883['commandName'],'commandParams':_0xc9b883['commandReversedParams']});}),_0x514c25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2925ba,_0x347947){if(_0x36ddd9(_0x2925ba,_0x347947))return[_0x2925ba,_0x347947];if(_0x36ddd9(_0x347947,_0x2925ba))return[_0x347947,_0x2925ba];return null;});const _0x8f2b38=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36ddd9(_0xddf4bc,_0x4f8443){const _0x50292d=_0x8f2b38['findIndex'](({type:_0x289b0d,subType:_0x458f7a})=>_0xddf4bc['type']==_0x289b0d&&_0xddf4bc['subType']==_0x458f7a),_0x443c71=_0x8f2b38['findIndex'](({type:_0x226449,subType:_0x579c3c})=>_0x4f8443['type']==_0x226449&&_0x4f8443['subType']==_0x579c3c);if(_0x50292d<0x0||_0x443c71<0x0)return!0x1;const _0x3a9314=_0xddf4bc['getFirstRange'](),_0x48ada4=_0x4f8443['getFirstRange']();if((0x0==_0x50292d||0x1==_0x50292d)&&0x2==_0x443c71&&_0x3a9314['isIntersecting'](_0x48ada4))return!0x0;if(0x2==_0x50292d&&0x3==_0x443c71){const _0x395383=_0x514c25['_findSuggestions'](_0x3a9314,'insertion')['filter'](({suggestion:_0x1f689d,meta:_0x26d963})=>_0x26d963['isOwn']&&'convertInlineImageToBlock'==_0x1f689d['subType']);if(_0x395383['length']>0x1&&_0x48ada4['end']['isEqual'](_0x3a9314['start']))return!0x0;if(0x1==_0x395383['length']&&(_0x3a9314['start']['isEqual'](_0x48ada4['end'])||_0x3a9314['end']['isEqual'](_0x48ada4['start'])))return!0x0;}if(0x3==_0x50292d&&0x3==_0x443c71&&_0x3a9314['start']['isBefore'](_0x48ada4['start'])){const _0x4ec6e2=_0x3a9314['end']['nodeAfter'],_0x413be9=_0x48ada4['start']['nodeBefore'];return _0x6965d7['isBlockImage'](_0x4ec6e2)&&_0x4ec6e2===_0x413be9;}return!0x1;}_0x4b825d['model']['document']['registerPostFixer'](()=>{let _0x52a55f=!0x1;const _0x5b2e63=Array['from'](_0x4b825d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e0b9a,data:_0x4530bb}of _0x5b2e63){const {group:_0x45d939,type:_0x4d05ad,subType:_0x154ed8,id:_0x2ade66}=_0x514c25['_splitMarkerName'](_0x3e0b9a);if('suggestion'==_0x45d939&&_0x514c25['hasSuggestion'](_0x2ade66)){if('formatBlock'==_0x4d05ad&&('imageStylePreApply'==_0x154ed8||'imageStylePostApply'==_0x154ed8)){const _0x5f4d96=_0x514c25['getSuggestion'](_0x2ade66);if(_0x4530bb['newRange']){const _0x55334e=_0x5f4d96['getFirstRange']()['getContainedElement']();if(_0x6965d7['isBlockImage'](_0x55334e))continue;_0x514c25['discardSuggestion'](_0x5f4d96),_0x52a55f=!0x0;}}if('insertion'==_0x4d05ad&&'imageCaption'==_0x154ed8&&!_0x4530bb['newRange']){const _0x699c49=_0x514c25['getSuggestion'](_0x2ade66);_0x699c49['next']&&_0x699c49['next']['isInContent']&&(_0x514c25['discardSuggestion'](_0x699c49['next']),_0x52a55f=!0x0);}}}return _0x52a55f;}),this['_registerLegacyDescription'](_0x1bf4b2);}['_registerLegacyDescription'](_0x25be23){const _0x4b2d78=this['editor'],_0x5a6df6=_0x4b2d78['locale'];_0x4b2d78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a8a63=>{if('formatBlock'!=_0x3a8a63['type']&&'formatInline'!=_0x3a8a63['type'])return;const {data:_0x9b5962}=_0x3a8a63;if(!_0x9b5962||'imageStyle'!=_0x9b5962['commandName'])return;const _0x2eb4cf=_0x9b5962['commandParams'][0x0]['value'];return _0xa9a1c1('side'===_0x2eb4cf?o(_0x5a6df6,'FORMAT_SIDE_IMAGE'):_0x25be23[_0x2eb4cf]||_0x2eb4cf);function _0xa9a1c1(_0x14be84){return{'type':'format','content':o(_0x5a6df6,'*Format:*\x20%0',_0x14be84)};}});}}class ot extends _0x426b8a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x234054){super(_0x234054),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x32415c=this['editor'],_0x18133a=_0x32415c['commands']['get']('importWord'),_0x282000=_0x32415c['commands']['get']('trackChanges');_0x18133a&&(_0x18133a['on']('execute',(_0x4bdba4,[,_0x8ea132])=>{this['_trackChangesValueDuringImport']=_0x282000['value'],_0x8ea132['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x18133a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x18133a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x282000['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x32415c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c1490,_0x3b82ad){const {suggestions:_0x1fcda8}=_0x3b82ad,_0x390ca0=this['editor']['commands']['get']('trackChanges'),_0x48f9f7=_0x390ca0['value'];this['_trackChangesValueDuringImport']!==_0x48f9f7&&(_0x390ca0['execute'](),this['_trackChangesExecuted']=!0x0),_0x1fcda8&&_0x1fcda8['forEach'](({id:_0x1edf0c,type:_0x18a349,author:_0x3506a9,created_at:_0x459f0c})=>{const _0x5c402e={'id':_0x1edf0c,'type':_0x18a349,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3506a9,'createdAt':_0x459f0c?new Date(_0x459f0c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c402e);});}}class rt extends _0x426b8a{['afterInit'](){const _0x471a9d=this['editor'],_0x1362ce=_0x471a9d['plugins']['get']('TrackChangesEditing');if(_0x471a9d['plugins']['has']('IndentEditing')&&(_0x1362ce['enableCommand']('indent'),_0x1362ce['enableCommand']('outdent')),_0x471a9d['plugins']['has']('IndentBlock')){for(const _0x496d0b of['indentBlock','outdentBlock'])_0x1362ce['enableDefaultAttributesIntegration'](_0x496d0b);}const _0x56eab9=_0x471a9d['locale'];_0x1362ce['registerBlockAttribute']('blockIndent'),_0x1362ce['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x56eab9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2898cf=this['editor'],_0x34ef5e=_0x2898cf['locale'],_0x423b6a=_0x2898cf['plugins']['get']('TrackChangesEditing');_0x423b6a['descriptionFactory']['registerDescriptionCallback'](_0x152c34=>{if('formatBlock'!=_0x152c34['type'])return;const {data:_0x2b374a}=_0x152c34;if(!_0x2b374a)return;if('indentBlock'!=_0x2b374a['commandName']&&'outdentBlock'!=_0x2b374a['commandName'])return;const _0x58bc32=_0x152c34['getItems']()[0x0],_0x1aa325=_0x423b6a['descriptionFactory']['getItemLabel'](_0x58bc32);return'indentBlock'==_0x2b374a['commandName']?{'type':'format','content':o(_0x34ef5e,'*Indent:*\x20%0',_0x1aa325)}:'outdentBlock'==_0x2b374a['commandName']?{'type':'format','content':o(_0x34ef5e,'*Outdent:*\x20%0',_0x1aa325)}:void 0x0;});}}class at extends _0x426b8a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x426b8a{['afterInit'](){const _0x506d6c=this['editor'];if(!_0x506d6c['plugins']['has']('LinkEditing'))return;const _0x3064ff=_0x506d6c['plugins']['get']('TrackChangesEditing'),_0x6d8040=_0x506d6c['commands']['get']('link');_0x3064ff['enableDefaultAttributesIntegration']('link'),_0x3064ff['enableDefaultAttributesIntegration']('unlink'),_0x3064ff['registerInlineAttribute']('linkHref');for(const _0x24c38a of _0x6d8040['manualDecorators'])_0x3064ff['registerInlineAttribute'](_0x24c38a['id']),_0x3064ff['descriptionFactory']['registerAttributeLabel'](_0x24c38a['id'],'link\x20('+_0x24c38a['label']['toLowerCase']()+')');_0x3064ff['descriptionFactory']['registerDescriptionCallback'](_0x5832a7=>{if('attribute'!=_0x5832a7['type'])return;const {data:_0x11bfa3}=_0x5832a7;if(!_0x11bfa3||'linkHref'!=_0x11bfa3['key'])return;const _0xcb370d=_0x11bfa3['newValue'],_0x34f804=_0x506d6c['locale'];return{'type':'format','content':null==_0xcb370d?o(_0x34f804,'*Remove\x20link*'):o(_0x34f804,'*Set\x20link:*\x20%0','\x22'+_0xcb370d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d2376=this['editor'],_0x1244ed=_0x4d2376['locale'];_0x4d2376['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c9bc=>{if('formatInline'!=_0x11c9bc['type'])return;const {data:_0x556ef4}=_0x11c9bc;if(_0x556ef4){if('link'==_0x556ef4['commandName']){const _0x59bc31=_0x556ef4['commandParams'][0x0];return{'type':'format','content':o(_0x1244ed,'*Set\x20link:*\x20%0','\x22'+_0x59bc31+'\x22')};}return'unlink'==_0x556ef4['commandName']?{'type':'format','content':o(_0x1244ed,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x426b8a{['afterInit'](){const _0xa2983b=this['editor'],_0x2b025a=_0xa2983b['locale'];if(!_0xa2983b['plugins']['has']('LegacyListEditing'))return;const _0x6b0850=_0xa2983b['plugins']['get']('TrackChangesEditing'),_0x39b287=_0xa2983b['plugins']['has']('LegacyTodoListEditing');function _0x39243e(_0x77648c){return()=>{const _0x155c16=_0xa2983b['model']['document']['selection'],_0x43b806=_0xa2983b['commands']['get'](_0x77648c);if(_0x43b806['value'])return void _0xa2983b['execute']('paragraph',{});const _0x1577b1=_0x77648c['slice'](0x0,-0x4),_0xfb5fcc=function(_0x2c9f27,_0x142abe,_0x52c92e){let _0x4d1c0a=Array['from'](_0x2c9f27)['filter'](_0xbdd966=>function(_0x497888,_0x322583){return _0x322583['checkChild'](_0x497888['parent'],'listItem')&&!_0x322583['isObject'](_0x497888);}(_0xbdd966,_0x52c92e));_0x4d1c0a=_0x4d1c0a['filter'](_0x5485b1=>!_0x5485b1['is']('element','listItem')||_0x5485b1['getAttribute']('listType')!=_0x142abe);const _0x4bc018=new Set();for(const _0xecde15 of _0x4d1c0a)_0xecde15['is']('element','listItem')?_0x4bc018['add'](me(_0xecde15)):_0x4bc018['add'](_0xecde15);return Array['from'](_0x4bc018);}(_0x155c16['getSelectedBlocks'](),_0x1577b1,_0xa2983b['model']['schema']);_0xa2983b['model']['change'](()=>{for(const _0x42ab0a of _0xfb5fcc)_0x6b0850['markBlockFormat'](_0x42ab0a,{'commandName':_0x77648c,'commandParams':[{'forceValue':!_0x43b806['value']}],'formatGroupId':'blockName'},fe(_0x42ab0a));});};}function _0xea06c2(_0x4bc386){return()=>{const _0x6ad894=function(_0x3efd79){let _0x4d48f4=Array['from'](_0x3efd79);const _0x5375ba=_0x4d48f4['findIndex'](_0x1167f0=>'listItem'!=_0x1167f0['name']);return _0x5375ba>-0x1&&(_0x4d48f4=_0x4d48f4['slice'](0x0,_0x5375ba)),_0x4d48f4;}(_0xa2983b['model']['document']['selection']['getSelectedBlocks']()),_0x20f5f7=_0xa2983b['model']['createRange'](_0xa2983b['model']['createPositionAt'](_0x6ad894[0x0],'before'),_0xa2983b['model']['createPositionAt'](_0x6ad894[_0x6ad894['length']-0x1],'end'));_0xa2983b['model']['change'](()=>{_0x6b0850['markBlockFormat'](_0x20f5f7,{'commandName':_0x4bc386,'commandParams':[],'formatGroupId':'listIndent'},function(_0x498a02){const _0x33def7=new Set();for(const _0x49f27b of _0x498a02){let _0x7d2d93=_0x49f27b['nextSibling'];for(;_0x7d2d93&&_0x7d2d93['getAttribute']('listIndent')>_0x49f27b['getAttribute']('listIndent');)_0x33def7['add'](_0x7d2d93),_0x7d2d93=_0x7d2d93['nextSibling'];}return Array['from'](_0x33def7);}(_0x6ad894));});};}_0x6b0850['enableCommand']('numberedList',_0x39243e('numberedList')),_0x6b0850['enableCommand']('bulletedList',_0x39243e('bulletedList')),_0x39b287&&_0x6b0850['enableCommand']('todoList',_0x39243e('todoList')),_0x6b0850['enableCommand']('indentList',_0xea06c2('indentList')),_0x6b0850['enableCommand']('outdentList',_0xea06c2('outdentList')),_0x39b287&&_0x6b0850['enableCommand']('checkTodoList',()=>{const _0x10a8e1=_0xa2983b['commands']['get']('checkTodoList'),_0x2b933c=Array['from'](_0x10a8e1['_selectedElements']);_0x2b933c['filter'](_0x3d468b=>_0x3d468b['getAttribute']('todoListChecked')!=_0x10a8e1['value']),_0xa2983b['model']['change'](()=>{for(const _0x40a065 of _0x2b933c)_0x6b0850['markBlockFormat'](_0x40a065,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x10a8e1['value']}]});});}),_0x6b0850['descriptionFactory']['registerElementLabel']('listItem',_0x4b8701=>o(_0x2b025a,'ELEMENT_LIST_ITEM',_0x4b8701)),_0x6b0850['descriptionFactory']['registerDescriptionCallback'](_0x3cfae4=>{if('formatBlock'!=_0x3cfae4['type']&&'formatInline'!=_0x3cfae4['type'])return;const {data:_0x2edc8d}=_0x3cfae4;if(_0x2edc8d){if('numberedList'==_0x2edc8d['commandName']||'bulletedList'==_0x2edc8d['commandName']||'todoList'==_0x2edc8d['commandName'])switch(_0x2edc8d['commandName']['replace']('List','')){case'bulleted':return _0x4fcb41(o(_0x2b025a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4fcb41(o(_0x2b025a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4fcb41(o(_0x2b025a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2edc8d['commandName'])return{'type':'format','content':o(_0x2b025a,'*Indent:*\x20%0',o(_0x2b025a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2edc8d['commandName'])return{'type':'format','content':o(_0x2b025a,'*Outdent:*\x20%0',o(_0x2b025a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2edc8d['commandName'])return _0x2edc8d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b025a,'*Check\x20item*')}:{'type':'format','content':o(_0x2b025a,'*Uncheck\x20item*')};}function _0x4fcb41(_0xb95591){return{'type':'format','content':o(_0x2b025a,'*Change\x20to:*\x20%0',_0xb95591)};}});}}function me(_0x516ab1){const _0x48ff6e=_0x516ab1['getAttribute']('listIndent');if(0x0==_0x48ff6e)return _0x516ab1;let _0x5e2ec1=_0x516ab1;for(;_0x516ab1['previousSibling']&&_0x516ab1['previousSibling']['is']('element','listItem');){const _0x3b15a7=_0x516ab1['previousSibling']['getAttribute']('listIndent');if(_0x3b15a7==_0x48ff6e)_0x5e2ec1=_0x516ab1['previousSibling'];else{if(_0x3b15a7<_0x48ff6e)break;}_0x516ab1=_0x516ab1['previousSibling'];}return _0x5e2ec1;}function fe(_0x33ed0a){const _0x474296=[];if(_0x33ed0a['is']('element','listItem')&&_0x33ed0a['getAttribute']('listIndent')>0x0){let _0x6dfa6f=_0x33ed0a['nextSibling'];for(;_0x6dfa6f&&'listItem'==_0x6dfa6f['name']&&_0x6dfa6f['getAttribute']('listIndent')==_0x33ed0a['getAttribute']('listIndent');)_0x474296['push'](_0x6dfa6f),_0x6dfa6f=_0x6dfa6f['nextSibling'];}return _0x474296;}class K extends _0x426b8a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x58fb42=this['editor']['config']['get']('list.properties'),_0x54f492=this['editor']['plugins']['get']('TrackChangesEditing');_0x58fb42['styles']&&_0x54f492['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x58fb42['reversed']&&_0x54f492['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x58fb42['startIndex']&&_0x54f492['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x54f492['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1339d9,_0x3ed811={}){const _0x3a21a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514002=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3a21a7['markMultiRangeBlockFormat'](_0x514002,{'commandName':'listStyle','commandParams':[{'type':_0x3ed811['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x9728b2,_0xa83852={}){const _0x1c7a64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b001=this['_getSuggestionBlocks'](_0x4d8600=>_0x4d8600['is']('element','listItem')&&'numbered'===_0x4d8600['getAttribute']('listType'));if(_0x34b001['length']<0x1)return;const _0x3f3690=_0x34b001['map'](_0x321e2c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x321e2c,'before'),this['editor']['model']['createPositionAt'](_0x321e2c,0x0)));this['editor']['model']['change'](()=>{_0x1c7a64['markMultiRangeBlockFormat'](_0x3f3690,{'commandName':'listReversed','commandParams':[{'reversed':_0xa83852['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5923e2,_0x5c72cb={}){const _0x5cb747=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27ae0f=this['_getSuggestionBlocks'](_0x41e303=>_0x41e303['is']('element','listItem')&&'numbered'===_0x41e303['getAttribute']('listType'));if(_0x27ae0f['length']<0x1)return;const _0x590113=_0x27ae0f['map'](_0x5231c6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5231c6,'before'),this['editor']['model']['createPositionAt'](_0x5231c6,0x0)));this['editor']['model']['change'](()=>{_0x5cb747['markMultiRangeBlockFormat'](_0x590113,{'commandName':'listStart','commandParams':[{'startIndex':_0x5c72cb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39f8ab){if('formatBlock'!=_0x39f8ab['type']&&'formatInline'!=_0x39f8ab['type'])return;const _0x40eafa=this['editor']['locale'],{data:_0x17753f}=_0x39f8ab;if(!_0x17753f)return;let _0x4c452a,_0x2cd67d;switch(_0x17753f['commandName']){case'listStyle':_0x4c452a='*Change\x20to:*\x20%0',_0x2cd67d={'type':'format','content':o(_0x40eafa,_0x4c452a,o(_0x40eafa,this['_getTranslationKeyForListStyle'](_0x17753f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c452a=_0x17753f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2cd67d={'type':'format','content':o(_0x40eafa,_0x4c452a)};break;case'listStart':_0x4c452a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2cd67d={'type':'format','content':o(_0x40eafa,_0x4c452a,_0x17753f['commandParams'][0x0]['startIndex'])};}return _0x2cd67d;}['_getSuggestionBlocksForListStyle'](){const _0xa7c9b9=this['editor']['plugins']['get']('LegacyListUtils');let _0x17c70c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x17c70c[0x0]?.['is']('element','listItem')&&_0x17c70c['unshift'](..._0xa7c9b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x17c70c[_0x17c70c['length']-0x1]?.['is']('element','listItem')&&_0x17c70c['push'](..._0xa7c9b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x17c70c=[...new Set(_0x17c70c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x17c70c=_0x17c70c['filter'](_0xca1773=>_0xca1773['is']('element','listItem'))),_0x17c70c;}['_getSuggestionBlocks'](_0x31481d){const _0x30ffc2=this['editor']['plugins']['get']('LegacyListUtils');let _0x2cd350=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x31481d)['map'](_0x4e483f=>{const _0x39f2bb=this['editor']['model']['createPositionAt'](_0x4e483f,0x0);return[..._0x30ffc2['getSiblingNodes'](_0x39f2bb,'backward'),..._0x30ffc2['getSiblingNodes'](_0x39f2bb,'forward')];})['flat']();return _0x2cd350=[...new Set(_0x2cd350)],_0x2cd350;}['_getTranslationKeyForListStyle'](_0x1204f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1204f)||'default')['toUpperCase']()+'_LIST_'+_0x1204f['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x426b8a{['afterInit'](){const _0x1524f8=this['editor'];if(!_0x1524f8['plugins']['has']('MediaEmbedEditing'))return;const _0x2614b8=_0x1524f8['plugins']['get']('TrackChangesEditing'),_0x440778=_0x1524f8['locale'];_0x2614b8['enableCommand']('mediaEmbed'),_0x2614b8['descriptionFactory']['registerElementLabel']('media',_0x2d90fc=>o(_0x440778,'ELEMENT_MEDIA',_0x2d90fc)),_0x1524f8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4fa9f,{writer:_0x554702,options:_0x592ce3})=>{if(_0x592ce3['showSuggestionHighlights'])return _0x554702['createEmptyElement']('div');},'converterPriority':'high'}),_0x1524f8['data']['downcastDispatcher']['on']('attribute:url:media',(_0xd7eb69,_0x28bd0f,_0x373961)=>{_0x373961['options']['showSuggestionHighlights']&&_0xd7eb69['stop']();},{'priority':'high'});}}class gt extends _0x426b8a{['afterInit'](){const _0x46f8c0=this['editor'];_0x46f8c0['plugins']['has']('MentionEditing')&&_0x46f8c0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x426b8a{['afterInit'](){const _0x2da7ba=this['editor'],_0x519240=_0x2da7ba['plugins']['get']('TrackChangesEditing');_0x2da7ba['plugins']['has']('MultiLevelList')&&(_0x519240['enableDefaultAttributesIntegration']('multiLevelList'),_0x519240['registerBlockAttribute']('listMarkerStyle'),_0x519240['descriptionFactory']['registerDescriptionCallback'](_0x1a3a9e=>this['handleDescriptions'](_0x1a3a9e)));}['handleDescriptions'](_0x260b84){const _0x39ccd0=this['editor']['locale'],{data:_0x57dcb9}=_0x260b84,_0x45566e={'type':'format','content':''};if(_0x57dcb9&&'listMarkerStyle'==_0x57dcb9['key']){if(!_0x57dcb9['oldValue'])return{'type':'format','content':o(_0x39ccd0,'*Set\x20format:*\x20%0',o(_0x39ccd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57dcb9['newValue']+')'};if(!_0x57dcb9['newValue']){let _0x25aca4=_0x260b84['head'];for(;_0x25aca4;){if(_0x25aca4['data']&&'listType'==_0x25aca4['data']['key']&&_0x25aca4['data']['newValue'])return _0x45566e;_0x25aca4=_0x25aca4['next'];}return{'type':'format','content':o(_0x39ccd0,'*Remove\x20format:*\x20%0',o(_0x39ccd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57dcb9['oldValue']+')'};}}}}class mt extends _0x426b8a{['afterInit'](){const _0x5032fe=this['editor'];if(!_0x5032fe['plugins']['has']('PageBreakEditing'))return;_0x5032fe['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e663c=_0x5032fe['plugins']['get']('TrackChangesEditing'),_0x218e17=_0x5032fe['locale'];_0x1e663c['descriptionFactory']['registerElementLabel']('pageBreak',_0x3cc43f=>o(_0x218e17,'ELEMENT_PAGE_BREAK',_0x3cc43f));}}class dt extends _0x426b8a{['afterInit'](){const _0x589d6f=this['editor'];if(!_0x589d6f['plugins']['has']('Paragraph'))return;const _0x5cbdd9=_0x589d6f['locale'],_0x267c6c=_0x589d6f['plugins']['get']('TrackChangesEditing');_0x267c6c['descriptionFactory']['registerElementLabel']('paragraph',_0x2ef7aa=>o(_0x5cbdd9,'ELEMENT_PARAGRAPH',_0x2ef7aa)),_0x267c6c['enableDefaultAttributesIntegration']('paragraph'),_0x267c6c['enableCommand']('insertParagraph'),_0x589d6f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x589d6f),{'priority':'highest'}),_0x589d6f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45503c,_0x4c372d,_0x3753f4)=>{_0x3753f4['options']['showSuggestionHighlights']&&nr(_0x589d6f,{'showActiveMarker':!0x1})(_0x45503c,_0x4c372d,_0x3753f4);},{'priority':'highest'});const _0x14b6db=_0x267c6c['descriptionFactory'];_0x14b6db['registerDescriptionCallback'](_0x470933=>{if('insertion'!==_0x470933['type'])return;const {start:_0x56717b,end:_0x2474dd}=_0x470933['getFirstRange']();if(!_0x56717b['isTouching'](_0x2474dd)||!_0x56717b['nodeAfter'])return;const _0x4e7c22=_0x589d6f['model']['schema'],_0x45a1a4=_0x56717b['nodeAfter'];return _0x4e7c22['isBlock'](_0x45a1a4)&&!_0x4e7c22['isLimit'](_0x45a1a4)&&_0x4e7c22['checkChild'](_0x45a1a4,'$text')?{'type':'insertion','content':o(_0x5cbdd9,'*Insert:*\x20%0',_0x14b6db['getItemLabel'](_0x45a1a4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c1ccc=this['editor'],_0x4f022e=_0x3c1ccc['locale'];_0x3c1ccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5205bd=>{if('formatBlock'!=_0x5205bd['type'])return;const {data:_0x563f73}=_0x5205bd;return _0x563f73&&'paragraph'==_0x563f73['commandName']?{'type':'format','content':o(_0x4f022e,'*Change\x20to:*\x20%0',o(_0x4f022e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x332077,{showActiveMarker:_0x597508=!0x0}={}){return(_0x37a1d4,_0x50068d,_0x5e9d06)=>{const _0x53dc24=_0x332077['plugins']['get']('TrackChangesEditing'),_0x31c8b1=_0x50068d['markerRange']['start'],_0x11152e=_0x50068d['markerRange']['end'],_0x232490=_0x332077['model']['schema'];if(!_0x31c8b1['isTouching'](_0x11152e)||!_0x31c8b1['nodeAfter'])return;const _0x4bae8c=_0x31c8b1['nodeAfter'];if(_0x232490['isBlock'](_0x4bae8c)&&!_0x232490['isLimit'](_0x4bae8c)&&_0x232490['checkChild'](_0x4bae8c,'$text')){if(!_0x5e9d06['consumable']['consume'](_0x50068d['markerRange'],_0x37a1d4['name']))return;const _0x278266=_0x5e9d06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2e4e6d=_0x5e9d06['mapper']['toViewPosition'](_0x11152e);_0x597508&&_0x53dc24['activeMarkers']['includes'](_0x50068d['markerName'])&&_0x5e9d06['writer']['addClass']('ck-suggestion-marker--active',_0x278266),_0x5e9d06['writer']['insert'](_0x2e4e6d,_0x278266),_0x5e9d06['mapper']['bindElementToMarker'](_0x278266,_0x50068d['markerName']);}};}class pt extends _0x426b8a{['afterInit'](){const _0x4d35aa=this['editor'];if(!_0x4d35aa['plugins']['has']('RemoveFormatEditing'))return;_0x4d35aa['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23c6b1=this['editor'];_0x23c6b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x732760=>{if('formatBlock'!=_0x732760['type']&&'formatInline'!=_0x732760['type'])return;const {data:_0x31fcfc}=_0x732760;return _0x31fcfc&&'removeFormat'==_0x31fcfc['commandName']?{'type':'format','content':o(_0x23c6b1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x426b8a{['afterInit'](){const _0xc6c603=this['editor'];if(!_0xc6c603['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2bfb57=_0xc6c603['plugins']['get']('TrackChangesEditing');_0x2bfb57['enableCommand']('goToPreviousRestrictedEditingException'),_0x2bfb57['enableCommand']('goToNextRestrictedEditingException');const _0xd3fd35=_0xc6c603['plugins']['get']('RestrictedEditingModeEditing');_0xd3fd35['enableCommand']('trackChanges'),_0xd3fd35['enableCommand']('acceptSuggestion'),_0xd3fd35['enableCommand']('discardSuggestion'),_0xd3fd35['enableCommand']('acceptAllSuggestions'),_0xd3fd35['enableCommand']('discardAllSuggestions'),_0xd3fd35['enableCommand']('acceptSelectedSuggestions'),_0xd3fd35['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x426b8a{static get['requires'](){return[_0x4b8178];}['init'](){const _0xa0d660=this['editor'],_0xbf2d1c=_0xa0d660['plugins']['get']('TrackChangesEditing');_0xbf2d1c['enableCommand']('shiftEnter'),_0xa0d660['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xa0d660),{'priority':'high'}),_0xa0d660['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xa0d660),{'priority':'high'}),_0xa0d660['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b4bbd,_0x381a16,_0x260c6b)=>{_0x260c6b['options']['showSuggestionHighlights']&&de(_0xa0d660,{'showActiveMarker':!0x1})(_0x1b4bbd,_0x381a16,_0x260c6b);}),_0xbf2d1c['descriptionFactory']['registerElementLabel']('softBreak',_0x391b12=>o(_0xa0d660['locale'],'ELEMENT_LINE_BREAK',_0x391b12));}}function de(_0x2a01a4,{showActiveMarker:_0x115fe9=!0x0}={}){return(_0x42b1cb,_0x27b260,_0x450425)=>{const _0x5a1210=_0x2a01a4['plugins']['get']('TrackChangesEditing');if(!_0x450425['consumable']['test'](_0x27b260['markerRange'],_0x42b1cb['name']))return;const _0x488896=_0x2a01a4['model'];for(const _0x1ec221 of _0x27b260['markerRange']['getItems']()){if(!_0x1ec221['is']('element','softBreak'))continue;const _0x492983='deletion'==_0x27b260['markerName']['split'](':')[0x1]?'merge':'split',_0x4d8a4d=_0x450425['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x492983}),_0xf20452=_0x450425['mapper']['toViewPosition'](_0x488896['createPositionBefore'](_0x1ec221));_0x115fe9&&_0x5a1210['activeMarkers']['includes'](_0x27b260['markerName'])&&_0x450425['writer']['addClass']('ck-suggestion-marker--active',_0x4d8a4d),_0x450425['writer']['insert'](_0xf20452,_0x4d8a4d),_0x450425['mapper']['bindElementToMarker'](_0x4d8a4d,_0x27b260['markerName']);}};}class wt extends _0x426b8a{['afterInit'](){const _0x33c975=this['editor'],_0x427d24=_0x33c975['model'],_0x37f0f8=_0x33c975['locale'];if(!_0x33c975['plugins']['has']('StandardEditingModeEditing'))return;const _0x54ed9c=_0x33c975['plugins']['get']('TrackChangesEditing'),_0x28741f='restrictedEditingException',_0x4ecdec=_0x33c975['commands']['get'](_0x28741f);_0x54ed9c['enableCommand'](_0x28741f,(_0x21dd8c,_0x325919={})=>{const _0xa54b0f=_0x427d24['document']['selection'];if(_0xa54b0f['isCollapsed'])return void _0x21dd8c(_0x325919);const _0x1a9f26=void 0x0!==_0x325919['forceValue']?_0x325919['forceValue']:!_0x4ecdec['value'];_0x427d24['change'](()=>{const _0x4d245d=Array['from'](_0xa54b0f['getRanges']());for(const _0x38c106 of _0x4d245d){const _0x505b3b=_0x1a9f26?[_0x38c106]:io(_0x28741f,_0x38c106,_0x427d24);for(const _0x57bda3 of _0x505b3b)_0x54ed9c['markInlineFormat'](_0x57bda3,{'commandName':_0x28741f,'commandParams':[{'forceValue':_0x1a9f26}]});}});}),_0x54ed9c['descriptionFactory']['registerDescriptionCallback'](_0x50d0f8=>{if('formatBlock'!=_0x50d0f8['type']&&'formatInline'!=_0x50d0f8['type'])return;const {data:_0x59da61}=_0x50d0f8;return _0x59da61&&_0x59da61['commandName']==_0x28741f?_0x59da61['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37f0f8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x37f0f8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x426b8a{['afterInit'](){const _0x32de68=this['editor'];if(!_0x32de68['plugins']['has']('Style')||!_0x32de68['plugins']['has']('DataSchema'))return;const _0x41423b=_0x32de68['plugins']['get']('TrackChangesEditing'),_0x2193cc=_0x32de68['locale'],_0x87ef1=_0x32de68['config']['get']('style')||{},_0x3fc3c9=_0x32de68['plugins']['get']('GeneralHtmlSupport'),_0x323664=_0x32de68['plugins']['get']('StyleUtils')['normalizeConfig'](_0x32de68['plugins']['get']('DataSchema'),_0x87ef1['definitions']);_0x41423b['enableDefaultAttributesIntegration']('style');const _0x71db65=new Set();for(const _0x4a4609 of _0x323664['block']){const _0x247a28=_0x3fc3c9['getGhsAttributeNameForElement'](_0x4a4609['element']);_0x71db65['add'](_0x247a28);}const _0x59f05a=new Set();for(const _0x361ec6 of _0x323664['inline']){const _0x47ff5f=_0x3fc3c9['getGhsAttributeNameForElement'](_0x361ec6['element']);_0x59f05a['add'](_0x47ff5f);for(const _0x2c78d9 of _0x361ec6['ghsAttributes'])_0x59f05a['add'](_0x2c78d9);}for(const _0x23f137 of _0x71db65)_0x41423b['registerBlockAttribute'](_0x23f137),_0x41423b['descriptionFactory']['registerAttributeLabel'](_0x23f137,o(_0x2193cc,'FORMAT_STYLE'));for(const _0x4edf5b of _0x59f05a)_0x41423b['registerInlineAttribute'](_0x4edf5b),_0x41423b['descriptionFactory']['registerAttributeLabel'](_0x4edf5b,o(_0x2193cc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41f40e=this['editor'],_0xe1007a=_0x41f40e['locale'];_0x41f40e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d5ca4=>{if('formatBlock'!=_0x2d5ca4['type']&&'formatInline'!=_0x2d5ca4['type'])return;const {data:_0x1c623d}=_0x2d5ca4;return _0x1c623d&&'style'===_0x1c623d['commandName']?_0x1c623d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe1007a,'*Set\x20format:*\x20%0',_0x1c623d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xe1007a,'*Remove\x20format:*\x20%0',_0x1c623d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x426b8a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b788e){super(_0x4b788e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x45cb79=this['editor'],_0x282d9e=_0x45cb79['model']['document']['selection'];if(!_0x45cb79['plugins']['has']('TableEditing'))return;const _0x4b400e=_0x45cb79['locale'],_0x2d551b=_0x45cb79['plugins']['get']('TrackChangesEditing'),_0x22236b=_0x45cb79['plugins']['get']('TableUtils');_0x2d551b['descriptionFactory']['registerElementLabel']('table',_0x19fd61=>o(_0x4b400e,'ELEMENT_TABLE',_0x19fd61)),this['_setupColumnsRowsFixing'](),_0x2d551b['enableCommand']('insertTable'),_0x2d551b['enableCommand']('selectTableRow'),_0x2d551b['enableCommand']('selectTableColumn');for(const _0x398a89 of['insertTableRowAbove','insertTableRowBelow']){const _0x2915ea=_0x45cb79['commands']['get'](_0x398a89);_0x2d551b['enableCommand'](_0x398a89,_0x53ae1b=>{_0x45cb79['model']['change'](_0x70e798=>{_0x53ae1b();const _0x56efe7='above'===_0x2915ea['order'],_0x112b54=_0x22236b['getSelectionAffectedTableCells'](_0x282d9e),_0x3752ff=_0x22236b['getRowIndexes'](_0x112b54),_0x4c95ba=_0x56efe7?_0x3752ff['first']-0x1:_0x3752ff['last']+0x1,_0x46f67e=_0x112b54[0x0]['findAncestor']('table'),_0x381214=_0x22236b['createTableWalker'](_0x46f67e,{'startRow':_0x4c95ba,'endRow':_0x4c95ba}),_0x2e1bf2=Array['from'](_0x381214)['map'](_0x1a70c5=>_0x70e798['createRangeOn'](_0x1a70c5['cell']));_0x2d551b['markMultiRangeInsertion'](_0x2e1bf2,'tableRow');});});}for(const _0x2151fa of['insertTableColumnLeft','insertTableColumnRight']){const _0x408088=_0x45cb79['commands']['get'](_0x2151fa);_0x2d551b['enableCommand'](_0x2151fa,_0xeaed93=>{_0x45cb79['model']['change'](_0x2bb466=>{_0xeaed93();const _0x5b1d7f='left'===_0x408088['order'],_0x450217=_0x22236b['getSelectionAffectedTableCells'](_0x282d9e),_0x26d266=_0x22236b['getColumnIndexes'](_0x450217),_0x8b4282=_0x5b1d7f?_0x26d266['first']-0x1:_0x26d266['last']+0x1,_0x121ef4=_0x450217[0x0]['findAncestor']('table'),_0x287c57=_0x22236b['createTableWalker'](_0x121ef4,{'startRow':0x0,'column':_0x8b4282,'includeAllSlots':!0x1}),_0x24d3c3=Array['from'](_0x287c57)['map'](_0x31404a=>_0x2bb466['createRangeOn'](_0x31404a['cell']));_0x2d551b['markMultiRangeInsertion'](_0x24d3c3,'tableColumn');});});}for(const _0x2b8138 of['removeTableRow','removeTableColumn']){const _0x162062=_0x2b8138['substr'](0xb),_0x246458=_0x162062['toLowerCase'](),_0x4cbb7d=_0x246458['substr'](0x0,0x3)+'span',_0x4e9dbf='table'+_0x162062,_0x58679f='min'+_0x162062,_0x357536='max'+_0x162062;_0x2d551b['enableCommand'](_0x2b8138,()=>{_0x45cb79['model']['change'](_0x48d802=>{const _0x17d02c=_0x22236b['getSelectionAffectedTableCells'](_0x282d9e),_0x5baf4b=_0x17d02c[0x0]['findAncestor']('table');let _0x3aa8f1;if('removeTableRow'==_0x2b8138){const _0x19169e=_0x22236b['getRowIndexes'](_0x17d02c);_0x3aa8f1={'startRow':_0x19169e['first'],'endRow':_0x19169e['last'],'includeAllSlots':!0x0};}else{const _0xf31f53=_0x22236b['getColumnIndexes'](_0x17d02c);_0x3aa8f1={'startColumn':_0xf31f53['first'],'endColumn':_0xf31f53['last'],'includeAllSlots':!0x0};}const _0x256266=_0x22236b['createTableWalker'](_0x5baf4b,_0x3aa8f1),_0xb00daa=Array['from'](_0x256266)['map'](({cell:_0x253de0})=>_0x253de0),_0x29e1c4=Ee(_0xb00daa['filter'](_0x387b71=>_0x387b71['hasAttribute'](_0x4cbb7d))),_0x3adde9=Ee(_0xb00daa['filter'](_0xca451a=>!_0xca451a['hasAttribute'](_0x4cbb7d)))['map'](_0x54e3f9=>_0x48d802['createRangeOn'](_0x54e3f9)),_0x2b2232=_0x2d551b['markMultiRangeDeletion'](_0x3adde9,_0x4e9dbf);if(_0x2b2232&&('tableRow'==_0x2b2232['subType']||'tableColumn'==_0x2b2232['subType'])){const _0xa40517=this['_getSuggestionCoords'](_0x2b2232);for(const _0x90fbd5 of _0x29e1c4){const _0x5e9fac=_0x48d802['createRangeOn'](_0x90fbd5),_0x34a546=_0x22236b['getCellLocation'](_0x90fbd5),_0x5743d9=_0x90fbd5['getAttribute'](_0x4cbb7d)-0x1,_0xbd5b7f=_0xa40517[_0x58679f],_0x4d269b=_0xa40517[_0x357536];_0xbd5b7f<=_0x34a546[_0x246458]&&_0x34a546[_0x246458]+_0x5743d9<=_0x4d269b&&_0x2b2232['addRange'](_0x5e9fac);}}});});}function _0x516299(_0x3b9b52){const _0x546519=Array['from'](_0x282d9e['getRanges']())['map'](_0x5ce405=>_0x41bd9b['fromRange'](_0x5ce405));_0x45cb79['model']['change'](_0x15c37d=>{const _0x18880e=_0x15c37d['batch'];_0x3b9b52=_0x3b9b52['filter'](_0xc56c84=>'$graveyard'!=_0xc56c84['root']['rootName']),_0x15c37d['setSelection'](_0x3b9b52),_0x45cb79['commands']['get']('removeTableRow')['refresh'](),_0x45cb79['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x45cb79['model']['enqueueChange'](()=>{_0x45cb79['model']['enqueueChange'](_0x18880e,_0x41858b=>{const _0x4a0d1b=_0x546519['filter'](_0x2a755e=>'$graveyard'!=_0x2a755e['root']['rootName']);_0x4a0d1b['length']>0x0&&_0x41858b['setSelection'](_0x4a0d1b);for(const _0x5814cf of _0x546519)_0x5814cf['detach']();});});});}function _0x1f64e6(_0x5178f0){_0x45cb79['model']['change'](_0x4f1b5a=>{const _0x3b57b3=Array['from'](_0x282d9e['getRanges']())['map'](_0x21a2c2=>_0x41bd9b['fromRange'](_0x21a2c2)),_0x48c44d=[];for(const _0x258ac3 of _0x5178f0)for(const _0x83eea0 of _0x258ac3['getItems']({'shallow':!0x0}))_0x48c44d['push'](_0x83eea0);for(const _0x435647 of _0x48c44d)'$graveyard'!=_0x435647['root']['rootName']&&(_0x4f1b5a['setSelection'](_0x4f1b5a['createPositionAt'](_0x435647,0x0)),_0x45cb79['commands']['get']('removeTableColumn')['refresh'](),_0x45cb79['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x550215=_0x3b57b3['filter'](_0x231cdb=>'$graveyard'!=_0x231cdb['root']['rootName']);_0x550215['length']>0x0&&_0x4f1b5a['setSelection'](_0x550215);for(const _0x4d67b8 of _0x3b57b3)_0x4d67b8['detach']();});}function _0x2dc9cf(_0x5525d9,_0x59aeac){return _0x59aeac['every'](_0x61a8d2=>_0x5525d9['some'](_0x277d3b=>_0x277d3b['end']['isEqual'](_0x61a8d2['start'])||_0x61a8d2['end']['isEqual'](_0x277d3b['start'])));}function _0xf61881(_0x1dfa1c,_0x29c78b){return!_0x1dfa1c['some'](_0x6a0d1f=>_0x29c78b['some'](_0x4bffa6=>_0x6a0d1f['isIntersecting'](_0x4bffa6)))&&_0x1dfa1c['some'](_0x471982=>_0x29c78b['some'](_0x353931=>_0x471982['end']['isTouching'](_0x353931['start'])));}_0x45cb79['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2511b9,_0x3625fb,_0x3374a5)=>{if(!_0x3374a5['options']['showSuggestionHighlights'])return;const _0x285e2b=_0x3625fb['item'];if(!_0x285e2b)return;const _0x1f4890=_0x3374a5['mapper']['toViewElement'](_0x285e2b);function _0x295efe(_0x7264d7){return Array['isArray'](_0x7264d7)?_0x7264d7:[_0x7264d7];}_0x1f4890&&'tableCell'===_0x285e2b['name']&&_0x5bb87d(_0x1f4890,_0x3374a5['writer'],(_0x3c8b5a,_0x343a90,_0x290b06)=>_0x290b06['addClass'](_0x295efe(_0x343a90['classes']),_0x3c8b5a),(_0x30f8b6,_0x203c8c,_0x38cf6c)=>_0x38cf6c['removeClass'](_0x295efe(_0x203c8c['classes']),_0x30f8b6));},{'priority':'highest'}),_0x2d551b['descriptionFactory']['registerDescriptionCallback'](_0x3a9019=>{if('insertion'!=_0x3a9019['type']&&'deletion'!=_0x3a9019['type'])return;const _0x2f5c35=_0x3a9019['getContainedElement']();if(null!=_0x2f5c35&&_0x2f5c35['is']('element','table')){if('insertion'==_0x3a9019['type']){const _0x5e34d7=_0x3a9019['getItems']()['filter'](_0x2bbb8e=>_0x2bbb8e['is']('$textProxy'))['map'](_0x55729f=>_0x55729f['data']);if(_0x5e34d7['length'])return{'type':'insertion','content':o(_0x4b400e,'*Insert:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e34d7['join']('\x20')+'\x22'))};}if('deletion'==_0x3a9019['type']){const _0x2ed963=_0x3a9019['getItems']()['filter'](_0x411587=>_0x411587['is']('$textProxy'))['map'](_0x426ad3=>_0x426ad3['data']);if(_0x2ed963['length'])return{'type':'deletion','content':o(_0x4b400e,'*Remove:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2ed963['join']('\x20')+'\x22'))};}}}),_0x2d551b['descriptionFactory']['registerDescriptionCallback'](_0x52667c=>{if('tableRow'==_0x52667c['subType']){const _0x40d17d=_0x52667c['getItems']()['filter'](_0x2039ac=>_0x2039ac['is']('$textProxy'))['map'](_0x660c52=>_0x660c52['data']),_0x3e95af=this['_getSuggestionCoords'](_0x52667c),_0x5a5743=_0x3e95af['maxRow']-_0x3e95af['minRow']+0x1;if('insertion'==_0x52667c['type'])return _0x40d17d['length']?{'type':'insertion','content':o(_0x4b400e,'*Insert:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a5743,'\x22'+_0x40d17d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4b400e,'*Insert:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_ROW',_0x5a5743))};if('deletion'==_0x52667c['type'])return _0x40d17d['length']?{'type':'deletion','content':o(_0x4b400e,'*Remove:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a5743,'\x22'+_0x40d17d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4b400e,'*Remove:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_ROW',_0x5a5743))};}if('tableColumn'==_0x52667c['subType']){const _0x30dd2e=_0x52667c['getItems']()['filter'](_0x28f919=>_0x28f919['is']('$textProxy'))['map'](_0xe938f7=>_0xe938f7['data']),_0x5ee261=this['_getSuggestionCoords'](_0x52667c),_0x4b3b1f=_0x5ee261['maxColumn']-_0x5ee261['minColumn']+0x1;if('insertion'==_0x52667c['type'])return _0x30dd2e['length']?{'type':'insertion','content':o(_0x4b400e,'*Insert:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b3b1f,'\x22'+_0x30dd2e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4b400e,'*Insert:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_COLUMN',_0x4b3b1f))};if('deletion'==_0x52667c['type'])return _0x30dd2e['length']?{'type':'deletion','content':o(_0x4b400e,'*Remove:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b3b1f,'\x22'+_0x30dd2e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4b400e,'*Remove:*\x20%0',o(_0x4b400e,'ELEMENT_TABLE_COLUMN',_0x4b3b1f))};}}),_0x2d551b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x516299),_0x2d551b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x516299),_0x2d551b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1f64e6),_0x2d551b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1f64e6),_0x2d551b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2dc9cf),_0x2d551b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2dc9cf),_0x2d551b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf61881),_0x2d551b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf61881);}['_acceptFormatSuggestionCallbackFactory'](){const _0x34a500=this['editor'],_0x34d16a=_0x34a500['model']['document']['selection'];return(_0x42a94e,_0x1d6c17)=>{_0x34a500['model']['change'](_0x34814b=>{const {commandName:_0x28684a,commandParams:_0x2a6f7e}=_0x1d6c17;let _0x1ccb0f=_0x42a94e[0x0]['end']['nodeBefore'];_0x2a6f7e&&_0x2a6f7e[0x0]&&!0x1===_0x2a6f7e[0x0]['forceValue']&&(_0x1ccb0f=_0x42a94e[0x0]['start']['nodeAfter']);const _0x99ea41=_0x34814b['createRangeIn'](_0x1ccb0f);if('$graveyard'==_0x99ea41['root']['rootName'])return;const _0x2eb7e5=Array['from'](_0x34d16a['getRanges']())['map'](_0x312ed9=>_0x41bd9b['fromRange'](_0x312ed9));_0x34814b['setSelection'](_0x99ea41),_0x34a500['commands']['get'](_0x28684a)['refresh'](),_0x2a6f7e['push']({'forceDefaultExecution':!0x0}),_0x34a500['execute'](_0x28684a,..._0x2a6f7e);const _0x476253=_0x2eb7e5['filter'](_0x1ed86d=>'$graveyard'!=_0x1ed86d['root']['rootName']);_0x476253['length']>0x0&&_0x34814b['setSelection'](_0x476253);for(const _0x2113a6 of _0x2eb7e5)_0x2113a6['detach']();});};}['_getCoordsForCells'](_0x27b13e){const _0xe146d3=this['editor']['plugins']['get']('TableUtils');let _0x5d8791=Number['MAX_SAFE_INTEGER'],_0x3e84d8=Number['MIN_SAFE_INTEGER'],_0x132280=Number['MAX_SAFE_INTEGER'],_0xeb45ad=Number['MIN_SAFE_INTEGER'];for(const _0x5ece97 of _0x27b13e){if('$graveyard'==_0x5ece97['root']['rootName'])continue;const {row:_0x576023,column:_0x293be4}=_0xe146d3['getCellLocation'](_0x5ece97),_0x262edc=_0x5ece97['hasAttribute']('rowspan')?_0x5ece97['getAttribute']('rowspan')-0x1:0x0,_0x5b4ec1=_0x5ece97['hasAttribute']('colspan')?_0x5ece97['getAttribute']('colspan')-0x1:0x0;_0x5d8791=_0x576023<_0x5d8791?_0x576023:_0x5d8791,_0x3e84d8=_0x576023+_0x262edc>_0x3e84d8?_0x576023+_0x262edc:_0x3e84d8,_0x132280=_0x293be4<_0x132280?_0x293be4:_0x132280,_0xeb45ad=_0x293be4+_0x5b4ec1>_0xeb45ad?_0x293be4+_0x5b4ec1:_0xeb45ad;}return{'minRow':_0x5d8791,'maxRow':_0x3e84d8,'minColumn':_0x132280,'maxColumn':_0xeb45ad};}['_setupColumnsRowsFixing'](){const _0x1fe886=this['editor'],_0x55a3b5=_0x1fe886['plugins']['get']('TrackChangesEditing'),_0xae48d1=_0x1fe886['plugins']['get']('TableUtils');_0x1fe886['model']['document']['on']('change:data',()=>{const _0x2883bc=Array['from'](_0x1fe886['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ea84b,data:_0x43c0fd}of _0x2883bc){const {group:_0x2b97d5,id:_0x56dc9a,subType:_0x26c36f}=_0x55a3b5['_splitMarkerName'](_0x4ea84b);if('suggestion'!=_0x2b97d5)continue;if(null!=_0x43c0fd['oldRange'])continue;const _0x188eb8=_0x55a3b5['getSuggestion'](_0x56dc9a);this['_tablePostFixingSubtypes']['includes'](_0x26c36f)&&this['_tableSuggestions']['add'](_0x188eb8);}},{'priority':'low'});const _0xd6999d=(_0x5a9fb7,_0x4601fc)=>{let _0x5586ce=!0x1;const _0x335e54=_0x4601fc['createRangeOn'](_0x5a9fb7),_0x21c98c=_0x5a9fb7['findAncestor']('table'),_0x55d90b=_0xae48d1['getCellLocation'](_0x5a9fb7);for(const _0x1e8f27 of this['_tableSuggestions']){const _0x32771a=_0x1e8f27['subType'],_0x3fc8d2=_0x32771a['startsWith']('tablePaste'),_0x4d87fd=_0x32771a['substr'](_0x3fc8d2?0xa:0x5),_0x45defe=_0x4d87fd['toLowerCase'](),_0x4ebb65=_0x45defe['substr'](0x0,0x3)+'span',_0x2b0147='min'+_0x4d87fd,_0x1d8668='max'+_0x4d87fd;if(!_0x1e8f27['isInContent'])continue;if(_0x21c98c!=_0x1e8f27['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e8f27['isIntersectingWithRange'](_0x335e54))continue;const _0x4aca6c=_0x5a9fb7['hasAttribute'](_0x4ebb65)?_0x5a9fb7['getAttribute'](_0x4ebb65)-0x1:0x0,_0x2490b4=this['_getSuggestionCoords'](_0x1e8f27),_0x36938d=_0x2490b4[_0x2b0147],_0x54b2b1=_0x2490b4[_0x1d8668];_0x36938d<=_0x55d90b[_0x45defe]&&_0x55d90b[_0x45defe]+_0x4aca6c<=_0x54b2b1&&(_0x1e8f27['addRange'](_0x335e54),_0x5586ce=!0x0);}return _0x5586ce;};_0x1fe886['model']['document']['registerPostFixer'](_0x58248b=>{let _0x5f2617=!0x1;for(const _0x182a23 of _0x1fe886['model']['document']['differ']['getChanges']())if('insert'==_0x182a23['type']){if('tableRow'==_0x182a23['name']){for(const _0x137d41 of _0x182a23['position']['nodeAfter']['getChildren']())_0x5f2617=_0x5f2617||_0xd6999d(_0x137d41,_0x58248b);}else'tableCell'==_0x182a23['name']&&(_0x5f2617=_0x5f2617||_0xd6999d(_0x182a23['position']['nodeAfter'],_0x58248b));}return _0x5f2617;});}['_getSuggestionCoords'](_0x32b3c8){return this['_getCoordsForCells'](_0x32b3c8['getRanges']()['map'](_0x31e633=>_0x31e633['start']['nodeAfter']));}}function Ee(_0x1ee2a2){return Array['from'](new Set(_0x1ee2a2)['values']());}class St extends _0x426b8a{static get['requires'](){return[jt];}['afterInit'](){const _0x5d41b4=this['editor'],_0x6d8d7e=_0x5d41b4['model']['document']['selection'],_0xad12a4=_0x5d41b4['locale'];if(!_0x5d41b4['plugins']['has']('TableEditing'))return;const _0x5e30e0=_0x5d41b4['plugins']['get']('TrackChangesEditing'),_0x4dc56f=_0x5d41b4['plugins']['get']('TableUtils'),_0xd1ed03=_0x5d41b4['plugins']['get'](jt);_0xd1ed03['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e30e0['enableCommand']('mergeTableCells',()=>{const _0x1063cb=_0x4dc56f['getSelectionAffectedTableCells'](_0x5d41b4['model']['document']['selection']);_0x5d41b4['model']['change'](()=>{_0x5e30e0['markMultiRangeBlockFormat'](_0x1063cb,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5d41b4['commands']['get']('mergeTableCells')['on']('execute',(_0x3b4faf,_0xde52fc)=>{_0x5d41b4['commands']['get']('trackChanges')['value']&&(_0xde52fc['length']>0x0&&_0xde52fc[_0xde52fc['length']-0x1]&&_0xde52fc[_0xde52fc['length']-0x1]['forceDefaultExecution']||_0x5e30e0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3b4faf['stop']());},{'priority':'highest'});for(const _0x380eb1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3622b6=_0x5d41b4['commands']['get'](_0x380eb1);_0x5e30e0['enableCommand'](_0x380eb1,()=>{const _0x248f17=_0x5d41b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53cfb7=>_0x53cfb7['is']('element','tableCell')),_0x1e75ae=_0x3622b6['value'];_0x5d41b4['model']['change'](()=>{_0x5e30e0['markMultiRangeBlockFormat']([_0x248f17,_0x1e75ae],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x167884 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4a8c26=_0x5d41b4['commands']['get'](_0x167884);_0x5e30e0['enableCommand'](_0x167884,()=>{const _0x394303=_0x4dc56f['getSelectionAffectedTableCells'](_0x5d41b4['model']['document']['selection'])[0x0],_0x35b66b=_0x394303['findAncestor']('table'),{column:_0x49034f,row:_0xcabb8f}=_0x4dc56f['getCellLocation'](_0x394303);let _0x3c0f87=[];if('horizontally'==_0x4a8c26['direction']){const _0x3c9dcc=_0x4dc56f['createTableWalker'](_0x35b66b,{'startRow':_0xcabb8f,'endRow':_0xcabb8f,'includeAllSlots':!0x0});_0x3c0f87=Array['from'](_0x3c9dcc)['map'](_0x166284=>_0x166284['cell']);}else{const _0x39e044=_0x4dc56f['createTableWalker'](_0x35b66b,{'column':_0x49034f,'includeAllSlots':!0x0});_0x3c0f87=Array['from'](_0x39e044)['map'](_0x4184ac=>_0x4184ac['cell']);}_0x5d41b4['model']['change'](_0x2fd2e2=>{_0x5e30e0['markBlockFormat'](_0x2fd2e2['createRangeOn'](_0x394303),{'commandName':_0x167884,'commandParams':[]},_0x3c0f87,_0x167884);});});}_0x5e30e0['descriptionFactory']['registerDescriptionCallback'](_0x477b62=>{if('formatBlock'!=_0x477b62['type']&&'formatInline'!=_0x477b62['type'])return;const {data:_0x4f169d}=_0x477b62;return _0x4f169d&&'mergeTableCells'==_0x4f169d['commandName']?{'type':'format','content':o(_0xad12a4,'*Merge\x20cells*')}:void 0x0;}),_0x5e30e0['descriptionFactory']['registerDescriptionCallback'](_0x27e96c=>{if('formatBlock'!=_0x27e96c['type']&&'formatInline'!=_0x27e96c['type'])return;const {data:_0x414e4e}=_0x27e96c;return _0x414e4e?'splitTableCellVertically'==_0x414e4e['commandName']?{'type':'format','content':o(_0xad12a4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x414e4e['commandName']?{'type':'format','content':o(_0xad12a4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1621bc=_0xd1ed03['_acceptFormatSuggestionCallbackFactory']();for(const _0x45210f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e30e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45210f,'accept',_0x1621bc);for(const _0x48b0b2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e30e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48b0b2,'accept',_0x1621bc);_0x5e30e0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x114b62=>{_0x5d41b4['model']['change'](_0x83ac6f=>{const _0x14d3ec=Array['from'](_0x6d8d7e['getRanges']())['map'](_0x34bdc2=>_0x41bd9b['fromRange'](_0x34bdc2));_0x83ac6f['setSelection'](_0x114b62),_0x5d41b4['commands']['get']('mergeTableCells')['refresh'](),_0x5d41b4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3db89b=_0x14d3ec['filter'](_0x3cd42f=>'$graveyard'!=_0x3cd42f['root']['rootName']);_0x3db89b['length']>0x0&&_0x83ac6f['setSelection'](_0x3db89b);for(const _0x5175fc of _0x14d3ec)_0x5175fc['detach']();});});for(const _0x3dfd8d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5569db=_0x5d41b4['commands']['get'](_0x3dfd8d);_0x5569db['on']('set:isEnabled',(_0x47a82c,_0x244a86,_0x48ad2b)=>{if(_0x48ad2b){const _0x4cc5bd=_0x5d41b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a30e2=>_0x3a30e2['is']('element','tableCell'));this['_areMergableCells'](_0x5569db['value'],_0x4cc5bd)||(_0x47a82c['return']=!0x1,_0x47a82c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x46268e=this['editor']['commands']['get']('mergeTableCells'),_0x3b862f=this['editor']['plugins']['get']('TableUtils');if(!_0x46268e['isEnabled'])return!0x1;const _0x44f11b=_0x3b862f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2de823 of _0x44f11b)for(const _0x213d81 of _0x44f11b)if(_0x2de823!=_0x213d81&&!this['_areMergableCells'](_0x2de823,_0x213d81))return!0x1;return!0x0;}['_areMergableCells'](_0xdd876f,_0x259c11){const _0x16e70f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e90d=this['editor']['model']['createRangeOn'](_0xdd876f),_0x12c730=this['editor']['model']['createRangeOn'](_0x259c11),_0x5a96b0=new Set(),_0x11c188=new Set();for(const _0x290e2b of _0x16e70f['getSuggestions']())if(('insertion'==_0x290e2b['type']||'deletion'==_0x290e2b['type']||'mergeTableCells'==_0x290e2b['subType'])&&_0x290e2b['isInContent']){for(const _0x3c4930 of _0x290e2b['getRanges']())_0x3c4930['containsRange'](_0x47e90d,!0x0)&&_0x5a96b0['add'](_0x290e2b['type']+':'+_0x290e2b['author']['id']),_0x3c4930['containsRange'](_0x12c730,!0x0)&&_0x11c188['add'](_0x290e2b['type']+':'+_0x290e2b['author']['id']);}if(_0x5a96b0['size']!=_0x11c188['size'])return!0x1;for(const _0x5a7816 of _0x5a96b0)if(!_0x11c188['has'](_0x5a7816))return!0x1;return!0x0;}}class At extends _0x426b8a{static get['requires'](){return[jt];}['afterInit'](){const _0x3d19c3=this['editor'];if(!_0x3d19c3['plugins']['has']('TableEditing'))return;const _0x37038a=_0x3d19c3['locale'],_0x13de77=_0x3d19c3['plugins']['get']('TrackChangesEditing');_0x13de77['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x13de77['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x13de77['registerBlockAttribute']('headingRows'),_0x13de77['registerBlockAttribute']('headingColumns'),_0x13de77['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x37038a,'FORMAT_HEADER_ROW')),_0x13de77['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x37038a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35ce5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c2222=this['editor']['plugins']['get']('TableUtils'),_0x1d7307=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3a8100({showActiveMarker:_0x143824=!0x0,setDataAttribute:_0x35ab35=!0x0}={}){return(_0x23a4bf,_0x47dffa,_0x55d012)=>{const {type:_0x213825,id:_0x13c6bb}=_0x35ce5b['_splitMarkerName'](_0x47dffa['markerName']),_0x2c9675=_0x35ce5b['getSuggestion'](_0x13c6bb),_0x22a8cc=_0x2c9675['data'];if('formatBlock'!=_0x2c9675['type']||!_0x22a8cc||'setTableColumnHeader'!=_0x22a8cc['commandName'])return;if(_0x47dffa['item'])return void _0x23a4bf['stop']();if(!_0x55d012['consumable']['consume'](_0x47dffa['markerRange'],_0x23a4bf['name']))return;const _0x480a41=_0x47dffa['markerRange']['start']['nodeAfter'],_0x417239=_0x47dffa['markerRange']['end']['nodeBefore'],_0x57c42b=_0x480a41['parent']['parent'],{column:_0x9dc123}=_0x5c2222['getCellLocation'](_0x480a41),{column:_0x2229e6}=_0x5c2222['getCellLocation'](_0x417239);for(let _0x175010=_0x9dc123;_0x175010<=_0x2229e6;_0x175010++){const _0x5b23e2=_0x5c2222['createTableWalker'](_0x57c42b,{'column':_0x175010,'includeAllSlots':!0x1});for(const _0x4811c4 of _0x5b23e2){const _0x4a2b45=_0x4811c4['cell'],_0x842066=_0x55d012['mapper']['toViewElement'](_0x4a2b45);_0x55d012['writer']['addClass']('ck-suggestion-marker-'+_0x213825,_0x842066),_0x35ab35&&_0x55d012['writer']['setAttribute']('data-suggestion',_0x13c6bb,_0x842066),_0x55d012['mapper']['bindElementToMarker'](_0x842066,_0x47dffa['markerName']),_0x143824&&(_0x35ce5b['activeMarkers']['includes'](_0x47dffa['markerName'])?_0x55d012['writer']['addClass']('ck-suggestion-marker--active',_0x842066):_0x55d012['writer']['removeClass']('ck-suggestion-marker--active',_0x842066));}}};}_0x35ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1d7307),_0x35ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1d7307),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3a8100(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x598dd1,_0x20dcb8,_0x10324b)=>{_0x10324b['options']['showSuggestionHighlights']&&_0x3a8100({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x598dd1,_0x20dcb8,_0x10324b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x36b374,_0x3205c6,_0x293076)=>{const {type:_0x368fcc,id:_0xacabcc}=_0x35ce5b['_splitMarkerName'](_0x3205c6['markerName']),_0x3e4eb4=_0x35ce5b['getSuggestion'](_0xacabcc),_0x4c8f15=_0x3e4eb4['data'];if('formatBlock'!=_0x3e4eb4['type']||!_0x4c8f15||'setTableColumnHeader'!=_0x4c8f15['commandName'])return;const _0x54725b=_0x293076['mapper']['markerNameToElements'](_0x3205c6['markerName']);if(_0x54725b){for(const _0x1886a6 of _0x54725b)_0x293076['writer']['removeClass']('ck-suggestion-marker-'+_0x368fcc,_0x1886a6),_0x293076['writer']['removeClass']('ck-suggestion-marker--active',_0x1886a6),_0x293076['writer']['removeAttribute']('data-suggestion',_0x1886a6),_0x293076['mapper']['unbindElementFromMarkerName'](_0x1886a6,_0x3205c6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ce37d=this['editor'],_0x5627f5=_0x1ce37d['locale'];function _0x2fec4e(_0x24fef3){return{'type':'format','content':o(_0x5627f5,'*Format:*\x20%0',_0x24fef3)};}_0x1ce37d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32eceb=>{if('formatBlock'!=_0x32eceb['type'])return;const {data:_0x379ac2}=_0x32eceb;if(_0x379ac2){if('setTableRowHeader'==_0x379ac2['commandName']){const _0x80bd32=_0x379ac2['commandParams'][0x0]['forceValue'];return _0x2fec4e(o(_0x5627f5,_0x80bd32?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x379ac2['commandName']){const _0xae52a3=_0x379ac2['commandParams'][0x0]['forceValue'];return _0x2fec4e(o(_0x5627f5,_0xae52a3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5d96db=>[_0x5d96db,null]));class It extends _0x426b8a{static get['requires'](){return[jt];}['afterInit'](){const _0x207eb3=this['editor'];if(!_0x207eb3['plugins']['has']('TableClipboard'))return;const _0x5e527c=_0x207eb3['plugins']['get']('TrackChangesEditing'),_0x553ed5=_0x207eb3['plugins']['get']('TableUtils'),_0x2ac0ce=_0x207eb3['plugins']['get'](jt),_0x26a4c9=_0x207eb3['plugins']['get']('TableClipboard');_0x2ac0ce['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x207eb3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x207eb3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x51557d=null;_0x207eb3['model']['on']('insertContent',(_0x1713da,_0x431d51)=>{const [_0x26085f,_0x5af54e]=_0x431d51,_0x16cb9e=_0x431d51[_0x431d51['length']-0x1];_0x16cb9e&&_0x16cb9e['forceDefaultExecution']||_0x5e527c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x51fc98,_0x415709,_0x5e529e,_0x55ed19,_0x3d3967){if(_0x415709&&!_0x415709['is']('documentSelection'))return!0x1;const _0x233e3b=_0x3d3967['getTableIfOnlyTableInContent'](_0x51fc98,_0x5e529e);if(!_0x233e3b||!he(_0x233e3b,void 0x0,_0x55ed19))return!0x1;const _0x522112=_0x55ed19['getSelectionAffectedTableCells'](_0x5e529e['document']['selection']);if(!_0x522112['length'])return!0x1;const _0x36f7a5=_0x522112[0x0]['findAncestor']('table'),_0x35dcac=_0x55ed19['getRowIndexes'](_0x522112),_0x37fb24=_0x55ed19['getColumnIndexes'](_0x522112),_0x5a212d={'startRow':_0x35dcac['first'],'endRow':_0x35dcac['last'],'startColumn':_0x37fb24['first'],'endColumn':_0x37fb24['last']};return 0x1==_0x522112['length']&&(_0x5a212d['endRow']+=_0x55ed19['getRows'](_0x233e3b)-0x1,_0x5a212d['endColumn']+=_0x55ed19['getColumns'](_0x233e3b)-0x1),he(_0x36f7a5,_0x5a212d,_0x55ed19);}(_0x26085f,_0x5af54e,_0x207eb3['model'],_0x553ed5,_0x26a4c9)&&(_0x1713da['stop'](),_0x51557d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x207eb3['model']['change'](()=>{_0x207eb3['model']['insertContent'](_0x431d51[0x0],_0x431d51[0x1],_0x431d51[0x2],{'forceDefaultExecution':!0x0});const _0x147a62=_0x28b84b(),{rowInsertionRanges:_0x590946,columnInsertionRanges:_0x45efb5,insertionRanges:_0x315779,deletionRanges:_0xeee274,cells:_0x441969}=_0x51557d;_0x590946['length']&&_0x5e527c['markMultiRangeInsertion'](_0x590946,'tablePasteRow',{'tablePasteChainId':_0x147a62}),_0x45efb5['length']&&_0x5e527c['markMultiRangeInsertion'](_0x45efb5,'tablePasteColumn',{'tablePasteChainId':_0x147a62}),_0x315779['length']&&(_0x5e527c['markMultiRangeInsertion'](_0x315779,'tablePaste',{'tablePasteChainId':_0x147a62,'skipNestingCheck':!0x0}),_0x315779['forEach'](_0x441cbe=>_0x441cbe['detach']?.())),_0xeee274['length']&&(_0x5e527c['markMultiRangeDeletion'](_0xeee274,'tablePaste',{'tablePasteChainId':_0x147a62,'skipNestingCheck':!0x0}),_0xeee274['forEach'](_0x5beb94=>_0x5beb94['detach']?.()));const _0x5b8a67=_0x5e527c['markMultiRangeBlockFormat'](_0x441969['map'](({element:_0x3e1b04})=>_0x3e1b04),{'formatGroupId':_0x28b84b()},[],'tablePasteCell',{'tablePasteChainId':_0x147a62});if(_0x5b8a67){const _0x3953c2=_0x5b8a67['getMarkers'](),_0x46f9d1=[];for(const {element:_0xe32ed,attributes:_0x1c63a0}of _0x441969){if(!_0x1c63a0)continue;const _0x29f01a=_0x207eb3['model']['createRangeOn'](_0xe32ed),_0x1147bc=_0x3953c2['find'](_0x53dbc5=>_0x53dbc5['getRange']()['isEqual'](_0x29f01a));_0x1147bc&&_0x46f9d1['push']([_0x1147bc['name'],_0x1c63a0]);}_0x46f9d1['length']&&_0x5b8a67['setAttribute']('markerAttributes',Object['fromEntries'](_0x46f9d1));}_0x51557d=null;}));},{'priority':_0x4c5522['high']+0xa}),_0x207eb3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x143785,_0x5afcc6)=>{const [_0x2785cc,_0x4cda5b,,_0x308f44]=_0x5afcc6;if(!_0x51557d)return;_0x143785['stop']();const _0x52b855=_0x2785cc['cell'],_0x5b8edd=_0x4cda5b,_0x3c475e=Pe(_0x52b855),_0x5db53c=Pe(_0x5b8edd);_0x143785['return']=_0x52b855;let _0xe96374=null,_0x4d8c72=null;if(_0x5db53c||_0x3c475e){if(_0x3c475e&&!_0x5db53c){_0x308f44['remove'](_0x52b855['getChild'](0x0));for(const _0x257880 of Array['from'](_0x5b8edd['getChildren']()))_0x308f44['insert'](_0x257880,_0x52b855,'end');const _0x4b3b66=_0x51557d['rowInsertionIndexes']['includes'](_0x2785cc['row']),_0xd774b0=_0x51557d['columnInsertionIndexes']['includes'](_0x2785cc['column']);_0x4b3b66||_0xd774b0||(_0xe96374=_0x41bd9b['fromRange'](_0x308f44['createRangeIn'](_0x52b855)));}else _0x5db53c&&!_0x3c475e&&(_0x4d8c72=_0x308f44['createRangeIn'](_0x52b855));}else{const _0x4151ff=_0x308f44['createElement']('tableCellSuggestion'),_0x5ade0d=_0x308f44['createElement']('tableCellSuggestion');_0x308f44['wrap'](_0x308f44['createRangeIn'](_0x52b855),_0x5ade0d),_0x308f44['insert'](_0x4151ff,_0x52b855,0x0);for(const _0x31e5a3 of Array['from'](_0x5b8edd['getChildren']()))_0x308f44['insert'](_0x31e5a3,_0x4151ff,'end');_0xe96374=_0x41bd9b['fromRange'](_0x308f44['createRangeOn'](_0x4151ff)),_0x4d8c72=_0x41bd9b['fromRange'](_0x308f44['createRangeOn'](_0x5ade0d));}const _0x4b1c8d=Array['from'](_0x5b8edd['getAttributes']())['filter'](([_0x4fdb2c])=>ge['includes'](_0x4fdb2c));_0x51557d['cells']['push']({'element':_0x52b855,'attributes':_0x4b1c8d['length']?Object['fromEntries'](_0x4b1c8d):null}),_0xe96374&&_0x51557d['insertionRanges']['push'](_0xe96374),_0x4d8c72&&_0x51557d['deletionRanges']['push'](_0x4d8c72);},{'priority':'high'}),_0x553ed5['on']('insertColumns',(_0x3f56e7,_0x50791f)=>{const [_0x508e96,_0xd9920f={}]=_0x50791f;if(!_0x51557d)return;const _0x2045a0=_0xd9920f['at']||0x0,_0x4ace24=_0xd9920f['columns']||0x1;_0x51557d['columnInsertionIndexes']=new Array(_0x4ace24)['fill'](_0x2045a0)['map']((_0x430a24,_0x4e3852)=>_0x430a24+_0x4e3852);for(const {cell:_0x2ea187}of _0x553ed5['createTableWalker'](_0x508e96,{'startColumn':_0x2045a0,'endColumn':_0x2045a0+_0x4ace24-0x1}))_0x51557d['columnInsertionRanges']['push'](_0x207eb3['model']['createRangeOn'](_0x2ea187));},{'priority':'low'}),_0x553ed5['on']('insertRows',(_0xf78c6f,_0x4cc240)=>{const [_0x37d972,_0x2743d4={}]=_0x4cc240;if(!_0x51557d)return;const _0x52e1e0=_0x2743d4['at']||0x0,_0x310a05=_0x2743d4['rows']||0x1;_0x51557d['rowInsertionIndexes']=new Array(_0x310a05)['fill'](_0x52e1e0)['map']((_0x2dff44,_0x4d81ef)=>_0x2dff44+_0x4d81ef);for(const {cell:_0x265310}of _0x553ed5['createTableWalker'](_0x37d972,{'startRow':_0x52e1e0,'endRow':_0x52e1e0+_0x310a05-0x1}))_0x51557d['rowInsertionRanges']['push'](_0x207eb3['model']['createRangeOn'](_0x265310));},{'priority':'low'}),_0x5e527c['descriptionFactory']['registerDescriptionCallback'](_0x5a97b0=>{if(_0x5a97b0['subType']&&_0x5a97b0['subType']['startsWith']('tablePaste'))return _0x5a97b0['previous']?{}:{'type':'insertion','content':o(_0x207eb3['locale'],'*Replace\x20table\x20cells*')};});const _0x488198=()=>!0x1;for(const _0x2449cf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5e527c['_suggestionFactory']['registerCustomCallback']('insertion',_0x2449cf,'join',_0x488198),_0x5e527c['_suggestionFactory']['registerCustomCallback']('deletion',_0x2449cf,'join',_0x488198),_0x5e527c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2449cf,'join',_0x488198);_0x5e527c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x488198),_0x5e527c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4305f6,_0xdde2c8,_0x227f98)=>{const _0x3ca31=_0x4305f6['map'](_0x5189d0=>_0x5189d0['getContainedElement']())['filter'](_0x58381a=>_0x58381a),_0x4fb3f9=new Map(_0x3ca31['map'](_0x4149f2=>[_0x4149f2,null]));if(_0x51557d){for(const {element:_0x129cf9,attributes:_0x54638b}of _0x51557d['cells'])_0x54638b&&_0x4fb3f9['set'](_0x129cf9,_0x54638b);}else{if(_0x227f98&&_0x227f98['markerAttributes'])for(const [_0x282bbd,_0x5159ad]of Object['entries'](_0x227f98['markerAttributes'])){const _0x454d53=_0x207eb3['model']['markers']['get'](_0x282bbd),_0x83df2a=_0x454d53?_0x454d53['getRange']()['getContainedElement']():null;_0x83df2a&&_0x4fb3f9['set'](_0x83df2a,_0x5159ad);}}_0x207eb3['model']['change'](_0x2d56ea=>{for(const [_0x461f90,_0x2a16fb]of _0x4fb3f9)_0x2d56ea['setAttributes']({...Ce,..._0x2a16fb},_0x461f90);});});const _0x346eff=(_0x3d5fc7,_0x2a578f)=>{_0x5e527c['_suggestionFactory']['registerCustomCallback'](_0x3d5fc7,'tablePaste',_0x2a578f,(_0x48677a,_0x334427,_0x5eb6b0)=>{_0x207eb3['model']['change'](_0x1f6ee7=>{const _0x5192b1=[];for(const _0x229c74 of _0x48677a){const _0x509613=_0x229c74['start']['nodeAfter'];_0x509613['is']('element','tableCellSuggestion')&&_0x5192b1['push'](_0x509613);}_0x5e527c['_suggestionFactory']['getSuggestionCallback'](_0x3d5fc7,null,_0x2a578f)(_0x48677a,_0x334427,_0x5eb6b0);for(const _0x1ff1ad of _0x5192b1)'$graveyard'!=_0x1ff1ad['root']['rootName']&&_0x1f6ee7['unwrap'](_0x1ff1ad);});});};_0x346eff('insertion','accept'),_0x346eff('insertion','discard'),_0x346eff('deletion','accept'),_0x346eff('deletion','discard'),_0x5e527c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3037c8=>{const _0x105831=_0x3037c8['map'](_0x386b94=>_0x386b94['getContainedElement']()),_0x3acaf0=_0x105831[0x0]['findAncestor']('table'),{minRow:_0x262fc1,maxRow:_0x1d11f4}=_0x2ac0ce['_getCoordsForCells'](_0x105831);_0x553ed5['removeRows'](_0x3acaf0,{'at':_0x262fc1,'rows':_0x1d11f4-_0x262fc1+0x1});}),_0x5e527c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x54bdbe=>{const _0x1d1109=_0x54bdbe['map'](_0x476018=>_0x476018['getContainedElement']()),_0x7df5d7=_0x1d1109[0x0]['findAncestor']('table'),{minColumn:_0x2cd3d3,maxColumn:_0x516fdf}=_0x2ac0ce['_getCoordsForCells'](_0x1d1109);_0x553ed5['removeColumns'](_0x7df5d7,{'at':_0x2cd3d3,'columns':_0x516fdf-_0x2cd3d3+0x1});});const _0x1d0be4=(_0x31603a,_0x25b6a3)=>{if(!_0x25b6a3['subType']||!_0x25b6a3['subType']['startsWith']('tablePaste'))return;const _0x2b5cf3=_0x25b6a3['attributes']['tablePasteChainId'],_0xfd5815=_0x5e527c['getSuggestions']()['filter'](_0x335e4d=>_0x335e4d['isInContent']&&_0x335e4d['attributes']&&_0x335e4d['attributes']['tablePasteChainId']==_0x2b5cf3);_0xfd5815['length']&&_0x25b6a3['getAllAdjacentSuggestions']()['length']!=_0xfd5815['length']&&_0xfd5815['reduce']((_0x3a33dd,_0x48a429)=>(_0x3a33dd['next']=_0x48a429,_0x48a429['previous']=_0x3a33dd,_0x48a429));};function _0x1f661f(_0x2a72b2,_0x4bcd75=!0x0){const {id:_0x54f2c8}=_0x5e527c['_splitMarkerName'](_0x2a72b2['markerName']),_0x56318f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x47bbfc=_0x5e527c['activeMarkers']['includes'](_0x2a72b2['markerName']);return _0x47bbfc&&_0x56318f['push']('ck-suggestion-marker--active'),{'classes':_0x56318f,'attributes':{'data-suggestion':_0x54f2c8},'priority':_0x47bbfc&&_0x4bcd75?0xbc2:0xbb8};}_0x5e527c['on']('suggestionLoaded',_0x1d0be4,{'priority':'high'}),_0x5e527c['on']('suggestionUnloaded',_0x1d0be4,{'priority':'high'}),_0x207eb3['model']['document']['registerPostFixer'](()=>{let _0x331f43=!0x1;const _0x3e056c=Array['from'](_0x207eb3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xac289a,data:_0x24a6ef}of _0x3e056c){const {group:_0x1819e1,type:_0x3a26b1,id:_0x3e278f}=_0x5e527c['_splitMarkerName'](_0xac289a);if('suggestion'!=_0x1819e1||'deletion'!=_0x3a26b1||_0x24a6ef['oldRange'])continue;if(!_0x5e527c['hasSuggestion'](_0x3e278f))continue;const _0x8eedf0=_0x5e527c['getSuggestion'](_0x3e278f)['getRanges'](),_0x366778=_0x207eb3['plugins']['get']('Users')['me'];for(const _0xbdb702 of _0x5e527c['getSuggestions']()){if(!_0xbdb702['isInContent']||_0xbdb702['author']!=_0x366778)continue;if('formatBlock'!=_0xbdb702['type']||'tablePasteCell'!=_0xbdb702['subType'])continue;if(_0xbdb702['getRanges']()['every'](_0xf294d5=>_0x8eedf0['some'](_0x2f131e=>_0x2f131e['containsRange'](_0xf294d5,!0x0)))){for(const _0x32d0f7 of _0xbdb702['getAllAdjacentSuggestions']())_0x32d0f7['isInContent']&&(_0x32d0f7['discard'](),_0x331f43=!0x0);}}}return _0x331f43;}),_0x207eb3['model']['document']['registerPostFixer'](_0x3f9fc4=>{const _0x531529=_0x207eb3['commands']['get']('redo');if(!_0x531529||!_0x531529['_createdBatches']['has'](_0x3f9fc4['batch']))return!0x1;let _0x2b9871=!0x1;const _0xc318bd=_0x207eb3['plugins']['get']('Users')['me'],_0x252a09=_0x207eb3['model']['document']['differ']['getChanges'](),_0x2501c3=Array['from'](_0x207eb3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2bbd11,data:_0x667961})=>{const {group:_0x49d0dc,subType:_0x257701,authorId:_0x38e870}=_0x5e527c['_splitMarkerName'](_0x2bbd11);return'suggestion'==_0x49d0dc&&'tablePaste'==_0x257701&&_0x38e870==_0xc318bd['id']&&!_0x667961['oldRange'];});for(const _0x3c23fb of _0x252a09){if('insert'!=_0x3c23fb['type']||'tableCellSuggestion'!=_0x3c23fb['name']||0x1!=_0x3c23fb['length'])continue;const _0x4f8434=_0x3f9fc4['createRange'](_0x3c23fb['position'],_0x3c23fb['position']['getShiftedBy'](0x1));if(!_0x2501c3['find'](({data:_0x2f81bb})=>_0x2f81bb['newRange']['isEqual'](_0x4f8434))){for(const {name:_0x115f58,data:_0x2bd4fe}of _0x2501c3)if(_0x4f8434['containsRange'](_0x2bd4fe['newRange'])){_0x3f9fc4['updateMarker'](_0x115f58,{'range':_0x4f8434}),_0x2b9871=!0x0;break;}}}return _0x2b9871;}),_0x207eb3['model']['document']['registerPostFixer'](_0x4e28b3=>{let _0xec9add=!0x1;const _0x1ac2e6=_0x207eb3['plugins']['get']('Users')['me'],_0x3e46ee=_0x5e527c['getSuggestions']()['filter'](_0x37bfc7=>_0x37bfc7['isInContent']&&_0x37bfc7['author']==_0x1ac2e6),_0x219ea9=new Set(),_0x232a46=new Set();for(const _0x4f07b0 of _0x3e46ee)if('tablePaste'==_0x4f07b0['subType'])for(const _0x47e705 of _0x4f07b0['getMarkers']()){const _0x5a81b=_0x47e705['getRange']()['getContainedElement']();if(_0x5a81b){if(_0x5a81b['is']('element','tableCellSuggestion')&&Pe(_0x5a81b)){_0x4f07b0['removeMarker'](_0x47e705['name']),_0x219ea9['add'](_0x5a81b),_0xec9add=!0x0;const _0x8b0b57=_0x5a81b['nextSibling'],_0x38926c=_0x5a81b['previousSibling'],_0x2eb87f=_0x8b0b57&&_0x8b0b57['is']('element','tableCellSuggestion'),_0x528d6e=_0x38926c&&_0x38926c['is']('element','tableCellSuggestion');_0x2eb87f&&!_0x219ea9['has'](_0x8b0b57)&&_0x232a46['add'](_0x8b0b57),_0x528d6e&&!_0x219ea9['has'](_0x38926c)&&_0x232a46['add'](_0x38926c);}else _0x5a81b['is']('element','paragraph')&&_0x5a81b['isEmpty']&&(_0x4f07b0['removeMarker'](_0x47e705['name']),_0xec9add=!0x0);}}else{if('tablePasteCell'==_0x4f07b0['subType']){if(!_0x4f07b0['attributes']||!_0x4f07b0['attributes']['tablePasteChainId'])continue;const _0x53e217=_0x4f07b0['attributes']['markerAttributes'];if(_0x53e217&&Object['keys'](_0x53e217)['length'])continue;const _0x52dd98=_0x4f07b0['attributes']['tablePasteChainId'];let _0x310695=!0x0,_0x107d4b=!0x0;for(const _0x3684f1 of _0x3e46ee)if(_0x3684f1['subType']&&_0x3684f1['subType']['startsWith']('tablePaste')){if(!_0x3684f1['attributes']['tablePasteChainId']){_0x107d4b=!0x1;break;}if(_0x3684f1['id']!=_0x4f07b0['id']&&_0x3684f1['attributes']['tablePasteChainId']==_0x52dd98){_0x310695=!0x1;break;}}_0x107d4b&&_0x310695&&(_0x4f07b0['removeMarkers'](),_0xec9add=!0x0);}}for(const _0x478fef of _0x219ea9)_0x4e28b3['remove'](_0x478fef);for(const _0x580f3e of _0x232a46)_0x4e28b3['unwrap'](_0x580f3e);return _0xec9add;}),_0x207eb3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c8bfb,_0x1127ee)=>_0x1f661f(_0x4c8bfb),'converterPriority':'high'}),_0x207eb3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d8480,_0x209a73)=>_0x209a73['options']['showSuggestionHighlights']?_0x1f661f(_0x2d8480,!0x1):null,'converterPriority':'high'});const _0x5d1fa2=_0x207eb3['editing']['view'];this['listenTo'](_0x5d1fa2['document'],'clipboardOutput',(_0x5ec5d6,_0x496c04)=>{const _0x54fc85=[];for(const _0x114d38 of _0x5d1fa2['createRangeIn'](_0x496c04['content'])['getItems']())_0x114d38['is']('element','suggestion-td')&&_0x54fc85['push'](_0x114d38);_0x5d1fa2['change'](_0xff44f2=>{for(const _0x53314c of _0x54fc85)_0xff44f2['move'](_0xff44f2['createRangeIn'](_0x53314c),_0xff44f2['createPositionBefore'](_0x53314c)),_0xff44f2['remove'](_0x53314c);});});}}function Pe(_0xc9ee3a){if(_0xc9ee3a['isEmpty'])return!0x0;const _0x2583bc=_0xc9ee3a['getChild'](0x0);return _0x2583bc['is']('element','paragraph')&&_0x2583bc['isEmpty'];}function he(_0x29f535,_0x4bb0a3={},_0x5589bd){for(const {isAnchor:_0x38e0d6,cellHeight:_0x294c57,cellWidth:_0x524762}of _0x5589bd['createTableWalker'](_0x29f535,{'includeAllSlots':!0x0,..._0x4bb0a3}))if(!_0x38e0d6||0x1!=_0x294c57||0x1!=_0x524762)return!0x1;return!0x0;}class vt extends _0x426b8a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x56f377=this['editor']['plugins']['get']('TrackChangesEditing');_0x56f377['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x56f377['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x56f377['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56f377['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x56f377['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x56f377['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x585532,_0x39a1dc){const _0x38f581=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fe1d5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x260b24=_0x39a1dc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30747d=_0x2fe1d5['getColumnGroupElement'](_0x260b24);let _0x262ca2=_0x30747d?_0x2fe1d5['getTableColumnsWidths'](_0x30747d):null,_0x4a5f1a=_0x260b24['getAttribute']('tableWidth')||null;const _0x224dfd=_0x39a1dc['tableWidth']||_0x4a5f1a,_0x432198=_0x39a1dc['columnWidths']||_0x262ca2,_0x8ec52b=this['editor']['plugins']['get']('Users')['me'];for(const _0x19a5cd of _0x38f581['getSuggestions']()){const _0x207d0a=_0x19a5cd['getContainedElement']();if('resizeTable'===_0x19a5cd['subType']&&_0x207d0a===_0x260b24){_0x19a5cd['author']!==_0x8ec52b&&_0x19a5cd['discard']();const _0x2a36ec=_0x19a5cd['data']['commandParams'];_0x4a5f1a=_0x2a36ec[0x0]['tableWidth'],_0x262ca2=_0x2a36ec[0x0]['columnWidths'];break;}}_0x585532({'table':_0x260b24,'tableWidth':_0x224dfd,'columnWidths':_0x432198}),_0x38f581['markBlockFormat'](_0x260b24,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4a5f1a,'columnWidths':_0x262ca2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e0051){if('formatBlock'!=_0x4e0051['type']&&'formatInline'!=_0x4e0051['type'])return;const {data:_0xdbc564}=_0x4e0051;if(_0xdbc564&&'resizeTable'===_0xdbc564['formatGroupId']){const _0x3aa63c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3aa63c)};}}}class Ct extends _0x426b8a{['afterInit'](){const _0x299fec=this['editor'];_0x299fec['plugins']['has']('Template')&&_0x299fec['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x426b8a{['afterInit'](){const _0x365bda=this['editor'];if(!_0x365bda['commands']['get']('insertTableOfContents'))return;_0x365bda['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5bf9c3=_0x365bda['plugins']['get']('TrackChangesEditing'),_0x5239df=_0x365bda['locale'];_0x5bf9c3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3d668e=>o(_0x5239df,'ELEMENT_TABLE_OF_CONTENTS',_0x3d668e));}}class Dt extends _0x426b8a{['afterInit'](){const _0x1bd1e5=this['editor'];if(!_0x1bd1e5['plugins']['has']('Title'))return;const _0x3ec8c8=_0x1bd1e5['plugins']['get']('TrackChangesEditing');_0x3ec8c8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1bd1e5['locale'],'ELEMENT_TITLE')),_0x1bd1e5['model']['document']['registerPostFixer'](_0x82dc7=>{let _0x40c91a=!0x1;const _0x4f8330=Array['from'](_0x1bd1e5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x504b8d,data:_0x1e7d23}of _0x4f8330){const {group:_0xfa4a59}=_0x3ec8c8['_splitMarkerName'](_0x504b8d);if('suggestion'!==_0xfa4a59||!_0x1e7d23['newRange'])continue;const _0x3d4c3a=_0x1e7d23['newRange'],_0x3bc045=_0x3d4c3a['end']['nodeBefore'];if(!_0x3bc045||!_0x3bc045['is']('element','title-content'))continue;if(!_0x3d4c3a['start']['isTouching'](_0x3d4c3a['end']))continue;const _0x4aa83c=_0x1bd1e5['model']['schema']['getNearestSelectionRange'](_0x3d4c3a['end'],'forward');if(_0x4aa83c&&_0x4aa83c['isCollapsed']){const _0x5dc7df=_0x82dc7['createRange'](_0x3d4c3a['start'],_0x4aa83c['start']);_0x5dc7df['isEqual'](_0x3d4c3a)||(_0x82dc7['updateMarker'](_0x504b8d,{'range':_0x5dc7df}),_0x40c91a=!0x0);}_0x40c91a||(_0x82dc7['removeMarker'](_0x504b8d),_0x40c91a=!0x0);}return _0x40c91a;});}}class Nt extends _0x426b8a{['afterInit'](){const _0x224176=this['editor'],_0x52f06b=_0x224176['plugins']['get']('TrackChangesEditing');_0x224176['plugins']['has']('UndoEditing')&&(_0x52f06b['enableCommand']('undo'),_0x52f06b['enableCommand']('redo'));}}class Mt extends _0x426b8a{static get['requires'](){return[jt];}['afterInit'](){const _0x8115ba=this['editor'];if(!_0x8115ba['plugins']['has']('TableCaptionEditing'))return;_0x8115ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x426b8a{['tableProperties'];['tableCellProperties'];constructor(_0x1a7c14){super(_0x1a7c14),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x466284=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x22027c of this['tableProperties'])_0x466284['enableCommand'](_0x22027c,(_0x417c03,_0x4f8652)=>{const _0x2cb098=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x22027c,[_0x2cb098],this['tableProperties'],'tableProperties',_0x417c03,_0x4f8652);});_0x466284['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x466284['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x466284['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2dd745,_0x1470e0)=>this['handleDiscardAction'](this['tableProperties'],_0x2dd745,_0x1470e0)),_0x466284['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x557796 of this['tableCellProperties'])_0x466284['enableCommand'](_0x557796,(_0x41762b,_0x3c4b23)=>{const _0x4a080b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x557796,_0x4a080b,this['tableCellProperties'],'tableCellProperties',_0x41762b,_0x3c4b23);});_0x466284['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x466284['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x466284['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2ddee5,_0x580a99)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2ddee5,_0x580a99)),_0x466284['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x466284['descriptionFactory']['registerDescriptionCallback'](_0x27db02=>this['handleSuggestionDescription'](_0x27db02));}['_handlePropertyChange'](_0x15cf18,_0x26d50e,_0x2e344d,_0x443a64,_0x522aba,_0x3eaa87){const _0x454e93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3eaa87['batch'],()=>{for(const _0x2732d3 of _0x26d50e){if(this['_getSuggestion'](_0x2732d3,_0x443a64))_0x522aba(_0x3eaa87);else{const _0x80c56a={};for(const _0x8ef146 of _0x2e344d){const _0x51a811=_0x2732d3['getAttribute'](_0x8ef146);void 0x0!==_0x51a811&&(_0x80c56a[_0x8ef146]=_0x51a811);}_0x522aba(_0x3eaa87),_0x454e93['markBlockFormat'](_0x2732d3,{'commandParams':[_0x80c56a]},[],_0x443a64);}}});}['handleDiscardAction'](_0x3a2eed,_0x42f829,_0x39a559){const _0x34e245=_0x42f829[0x0]['start']['nodeAfter'],_0x581d0e=_0x39a559['commandParams'][0x0];this['editor']['model']['change'](_0x1cee5f=>{for(const _0x559479 of _0x3a2eed)void 0x0!==_0x581d0e[_0x559479]?_0x1cee5f['setAttribute'](_0x559479,_0x581d0e[_0x559479],_0x34e245):_0x1cee5f['removeAttribute'](_0x559479,_0x34e245);});}['handleSuggestionDescription'](_0x8d56b5){if(_0x8d56b5['data'])switch(_0x8d56b5['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'](_0x55fed0,_0x9a504){const _0x8c9388=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x27a8d5 of _0x8c9388['getSuggestions']({'skipNotAttached':!0x0})){const _0x5471bd=_0x27a8d5['getContainedElement']();if(_0x27a8d5['subType']===_0x9a504&&_0x5471bd===_0x55fed0)return _0x27a8d5;}return null;}}const m='$elementName';class p extends _0x426b8a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2a96c3,_0x5f1d0b,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x75f67){function _0x3b932f(_0x4bb397){return _0x4bb397['map'](_0x16cbbc=>String['fromCharCode'](_0x16cbbc))['join']('');}super(_0x75f67),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x15a3aa,_0x1784ef,_0x11d22e,_0x558a62)=>{this['_model']['change'](()=>{for(const _0x47ffbe of[..._0x558a62,..._0x11d22e])this['_model']['markers']['has'](_0x47ffbe)&&_0x75f67['editing']['reconvertMarker'](_0x47ffbe);});}),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']=_0x75f67['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(),_0x75f67['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x75f67['config']['get']('trackChanges.trackFormatChanges'),_0x75f67['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x75f67['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x75f67,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3b932f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3b932f([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x34]);}['init'](){const _0x17fe99=this['editor'],_0x1ac1bf=(_0xe730a3,_0x59d849)=>{if('attribute'!=_0xe730a3)return'ck-suggestion-marker-'+_0xe730a3;const _0x26612c=_0x59d849['split']('|')[0x0];return this['_isBlockAttribute'](_0x26612c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x17fe99['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x387045=>{const {id:_0x7b5c1,type:_0x5197d6,subType:_0x17cc52}=this['_splitMarkerName'](_0x387045['markerName']),_0x2c9ede=['ck-suggestion-marker',_0x1ac1bf(_0x5197d6,_0x17cc52)];let _0x20c2b5=0xbb8;return this['activeMarkers']['includes'](_0x387045['markerName'])&&(_0x2c9ede['push']('ck-suggestion-marker--active'),_0x20c2b5=0xbc2),'deletion'==_0x5197d6&&(_0x20c2b5+=0x5),{'classes':_0x2c9ede,'attributes':{'data-suggestion':_0x7b5c1},'priority':_0x20c2b5};}}),_0x17fe99['conversion']['for']('dataDowncast')['add'](_0x356b73=>{_0x356b73['on']('addMarker:suggestion',(_0x4ac938,_0x225f06,_0x5438ff)=>{if(!_0x5438ff['options']['showSuggestionHighlights'])return;const _0x406930=_0x225f06['item'];if(!_0x406930)return;const _0x1fe3cc=_0x5438ff['mapper']['toViewElement'](_0x406930);_0x17fe99['model']['schema']['isObject'](_0x406930)&&_0x1fe3cc&&!_0x1fe3cc['getCustomProperty']('widget')&&_0x1fe3cc['is']('containerElement')&&_0x606f55(_0x1fe3cc,_0x5438ff['writer']);},{'priority':'high'});}),_0x17fe99['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x35e2d1,_0x398c95)=>{if(!_0x398c95['options']['showSuggestionHighlights'])return null;const {type:_0x40af04,subType:_0x49dd3f}=this['_splitMarkerName'](_0x35e2d1['markerName']);return{'classes':['ck-suggestion-marker',_0x1ac1bf(_0x40af04,_0x49dd3f)],'priority':0xbb8};}});const _0x30fe12=({showActiveMarkers:_0x247914=!0x0,isAttributeSuggestion:_0xa9bcf3=!0x1}={})=>(_0x5a32c4,_0x4ae66d,_0x1919a7)=>{if(!_0x4ae66d['item'])return;const {id:_0x2ebbfd}=this['_splitMarkerName'](_0x4ae66d['markerName']);if(_0xa9bcf3){const _0x2d1e9f=this['_suggestions']['get'](_0x2ebbfd),_0x253e16=this['_getAttributeKey'](_0x2d1e9f);if(!this['_isBlockAttribute'](_0x253e16))return;}if(_0x4ae66d['item']['is']('selection'))return void _0x1919a7['consumable']['consume'](_0x4ae66d['item'],_0x5a32c4['name']);const _0x6c7cfb=_0x1919a7['mapper']['toViewElement'](_0x4ae66d['item']);if(_0x4ae66d['item']['is']('element')&&_0x17fe99['model']['schema']['isBlock'](_0x4ae66d['item'])&&!_0x6c7cfb['getCustomProperty']('addHighlight')){_0x1919a7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x6c7cfb),_0x1919a7['writer']['setAttribute']('data-suggestion',_0x2ebbfd,_0x6c7cfb),_0x1919a7['mapper']['bindElementToMarker'](_0x6c7cfb,_0x4ae66d['markerName']),_0x247914&&(this['activeMarkers']['includes'](_0x4ae66d['markerName'])?_0x1919a7['writer']['addClass']('ck-suggestion-marker--active',_0x6c7cfb):_0x1919a7['writer']['removeClass']('ck-suggestion-marker--active',_0x6c7cfb));for(const _0x23bc42 of _0x17fe99['model']['createRangeIn'](_0x4ae66d['item'])['getItems']())_0x1919a7['consumable']['consume'](_0x23bc42,_0x5a32c4['name']);_0x1919a7['consumable']['consume'](_0x4ae66d['item'],_0x5a32c4['name']);}};_0x17fe99['conversion']['for']('dataDowncast')['add'](_0x42dff6=>{_0x42dff6['on']('addMarker:suggestion:formatBlock',(_0x5194f8,_0x57bb14,_0x265387)=>{_0x265387['options']['showSuggestionHighlights']&&_0x30fe12({'showActiveMarkers':!0x1})(_0x5194f8,_0x57bb14,_0x265387);},{'priority':'highest'});}),_0x17fe99['conversion']['for']('dataDowncast')['add'](_0x807a63=>{_0x807a63['on']('addMarker:suggestion:attribute',(_0x34fb74,_0x162e5c,_0x355d2f)=>{_0x355d2f['options']['showSuggestionHighlights']&&_0x30fe12({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x34fb74,_0x162e5c,_0x355d2f);},{'priority':'highest'});}),_0x17fe99['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fcc44,_0x4b3062)=>_0x4b3062['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fcc44['substr'](0xb)}}),_0x17fe99['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39f220,{writer:_0x33bb48})=>{let _0x3e82d7='suggestion:'+_0x39f220['getAttribute']('suggestion-type')+':'+_0x39f220['getAttribute']('id');return _0x39f220['getAttribute']('marker-count')&&(_0x3e82d7+=':'+_0x39f220['getAttribute']('marker-count')),_0x33bb48['createElement']('$marker',{'data-name':_0x3e82d7});}}),_0x17fe99['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x17fe99['conversion']['for']('editingDowncast')['add'](_0x7eaa31=>{_0x7eaa31['on']('addMarker:suggestion:formatBlock',_0x30fe12(),{'priority':'high'});}),_0x17fe99['conversion']['for']('editingDowncast')['add'](_0x5647e3=>{_0x5647e3['on']('addMarker:suggestion:attribute',_0x30fe12({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x17fe99['conversion']['for']('editingDowncast')['add'](_0x26d25f=>{_0x26d25f['on']('removeMarker:suggestion:formatBlock',(_0xb28aec,_0x1d7c9b,_0x461e61)=>{const _0x454658=_0x461e61['mapper']['markerNameToElements'](_0x1d7c9b['markerName']);if(_0x454658){for(const _0x24fc71 of _0x454658)_0x24fc71['getCustomProperty']('addHighlight')||(_0x461e61['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x24fc71),_0x461e61['writer']['removeAttribute']('data-suggestion',_0x24fc71),_0x461e61['mapper']['unbindElementFromMarkerName'](_0x24fc71,_0x1d7c9b['markerName']));}},{'priority':'high'});}),_0x17fe99['conversion']['for']('editingDowncast')['add'](_0x2ff9dc=>{_0x2ff9dc['on']('removeMarker:suggestion:attribute',(_0x172c72,_0x166be0,_0x36e993)=>{const _0x446233=_0x36e993['mapper']['markerNameToElements'](_0x166be0['markerName']);if(!_0x446233)return;const {id:_0x25ebe}=this['_splitMarkerName'](_0x166be0['markerName']),_0x511226=this['_suggestions']['get'](_0x25ebe),_0x515439=this['_getAttributeKey'](_0x511226);if(this['_isBlockAttribute'](_0x515439)){for(const _0x14f4bd of _0x446233)_0x14f4bd['getCustomProperty']('addHighlight')||(_0x36e993['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14f4bd),_0x36e993['writer']['removeAttribute']('data-suggestion',_0x14f4bd),_0x36e993['mapper']['unbindElementFromMarkerName'](_0x14f4bd,_0x166be0['markerName']));}},{'priority':'high'});}),_0x17fe99['model']['document']['registerPostFixer'](_0x2f9c77=>{let _0x20b4a0=!0x1;const _0x327a11=Array['from'](_0x17fe99['model']['document']['differ']['getChangedMarkers']()),_0x15834c=new Set();for(const {name:_0x21450c,data:_0x109c1c}of _0x327a11){const {group:_0xfcdd68,type:_0xd40f2c,subType:_0x2f94c8,id:_0x5983b1}=this['_splitMarkerName'](_0x21450c);if('suggestion'!==_0xfcdd68)continue;const _0x192233=this['_suggestions']['get'](_0x5983b1);if(null!=_0x109c1c['newRange']){'formatInline'==_0xd40f2c&&(_0x20b4a0=_0x20b4a0||Et(_0x109c1c['newRange'],_0x21450c,_0x2f9c77,_0x17fe99['model']['schema']));const _0x2e5d63='attribute'==_0xd40f2c&&this['_isBlockAttribute'](_0x2f94c8['split']('|')[0x0]);if(_0x109c1c['newRange']['isCollapsed']||'$graveyard'==_0x109c1c['newRange']['root']['rootName']||'formatBlock'==_0xd40f2c&&!Ut(_0x109c1c['newRange'])||_0x2e5d63&&!Ut(_0x109c1c['newRange'])||'deletion'==_0xd40f2c&&!(!Tt(_0x572293=_0x109c1c['newRange'])&&!function(_0x122ba8){return _0x122ba8['start']['parent']==_0x122ba8['end']['nodeBefore']&&_0x122ba8['start']['isAtEnd'];}(_0x572293)))_0x2f9c77['removeMarker'](_0x21450c),_0x20b4a0=!0x0;else{if(!_0x192233||!_0x192233['isInContent'])continue;_0x15834c['add'](_0x192233);}}}var _0x572293;return _0x15834c['size']>0x0&&(_0x20b4a0=!!this['_joinWithAdjacentSuggestions'](_0x15834c)||_0x20b4a0),_0x20b4a0;}),_0x17fe99['model']['document']['registerPostFixer'](_0x549959=>{let _0x212005=!0x1;for(const _0x5660d7 of _0x17fe99['model']['document']['differ']['getChanges']())if('insert'==_0x5660d7['type'])for(const _0xb388bd of this['_suggestions']['values']()){if(_0xb388bd['isMultiRange']||!_0xb388bd['isInContent'])continue;const _0x362fdd='formatBlock'==_0xb388bd['type'],_0x3f96f8=this['_getAttributeKey'](_0xb388bd),_0x23f207=_0x3f96f8&&this['_isBlockAttribute'](_0x3f96f8);if(!_0x362fdd&&!_0x23f207)continue;const _0x1e29b1=_0xb388bd['getFirstRange']();if(_0x1e29b1['start']['parent']!=_0x1e29b1['end']['parent']&&!_0x1e29b1['end']['isAtEnd']){const _0xddb703=_0x17fe99['model']['createPositionAt'](_0x1e29b1['start']['nodeAfter'],'end'),_0x1a6cf8=_0x17fe99['model']['createRange'](_0x1e29b1['start'],_0xddb703);_0x549959['updateMarker'](_0xb388bd['getFirstMarker'](),{'range':_0x1a6cf8}),_0x212005=!0x0;}}return _0x212005;}),_0x17fe99['model']['document']['registerPostFixer'](_0xf66e4e=>this['_processAttributeChanges'](_0xf66e4e)),_0x17fe99['model']['document']['registerPostFixer'](_0x213e68=>!_0x213e68['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x213e68)),_0x17fe99['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x17fe99['model']['document']['on']('change:data',(_0x5a2d07,_0x3a3e99)=>{if(!_0x3a3e99['isLocal']||_0x3a3e99['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x200063=_0x17fe99['model']['document']['differ']['getChanges']();if(0x0==_0x200063['length'])return;const _0x4d1d99=[],_0x43b0ce=_0x200063['filter'](_0xd9fd1=>'attribute'==_0xd9fd1['type']),_0x35a5ca=_0x200063['filter'](_0x49bab2=>'insert'==_0x49bab2['type']&&'$text'!=_0x49bab2['name']);for(const _0x52b96d of _0x43b0ce)this['_isRegisteredAttribute'](_0x52b96d['attributeKey'])&&_0x4d1d99['push']({'key':_0x52b96d['attributeKey'],'newValue':_0x52b96d['attributeNewValue'],'oldValue':_0x52b96d['attributeOldValue'],'range':Ot(_0x52b96d['range'],_0x17fe99['model'])});for(const _0x2ca240 of _0x35a5ca){if('rename'!=_0x2ca240['action']&&'refresh'!=_0x2ca240['action'])continue;const _0xc853cb=Gt(_0x2ca240['position']['nodeAfter'],_0x17fe99['model']),_0x4f23e2=_0x2ca240['before'];'rename'==_0x2ca240['action']&&_0x4d1d99['push']({'key':m,'newValue':_0x2ca240['name'],'oldValue':_0x4f23e2['name'],'range':_0xc853cb});for(const [_0x4ff16e,_0x50dad7]of _0x4f23e2['attributes']){if(!this['_isRegisteredAttribute'](_0x4ff16e))continue;const _0x2a9cfd=_0x2ca240['attributes']['get'](_0x4ff16e);_0x50dad7!==_0x2a9cfd&&_0x4d1d99['push']({'key':_0x4ff16e,'newValue':_0x2a9cfd,'oldValue':_0x50dad7,'range':_0xc853cb});}for(const [_0x339d25,_0x315c5a]of _0x2ca240['attributes'])this['_isRegisteredAttribute'](_0x339d25)&&(_0x4f23e2['attributes']['has'](_0x339d25)||_0x4d1d99['push']({'key':_0x339d25,'newValue':_0x315c5a,'oldValue':null,'range':_0xc853cb}));}0x0!=_0x4d1d99['length']&&_0x17fe99['model']['enqueueChange'](_0x3a3e99,_0x3adb4c=>{const _0x4918c3=_0x28b84b();for(const {range:_0xc59a01,key:_0x395069,oldValue:_0x758dc,newValue:_0x43ead7}of _0x4d1d99)this['markAttributeChange'](_0xc59a01,_0x395069,_0x758dc,_0x43ead7,{'groupId':_0x4918c3});this['_reduceExistingSuggestions'](_0x3adb4c,_0x4d1d99);});},{'priority':'lowest'}),_0x17fe99['model']['markers']['on']('update:suggestion',(_0x484cc5,_0x389628,_0x18a6b3)=>{if(null==_0x18a6b3){const {id:_0x236316}=this['_splitMarkerName'](_0x389628['name']),_0x41bfbb=this['_suggestions']['get'](_0x236316);_0x41bfbb&&_0x41bfbb['addMarkerName'](_0x389628['name']);}}),_0x17fe99['model']['document']['on']('change:data',()=>{const _0x2f865b=Array['from'](_0x17fe99['model']['document']['differ']['getChangedMarkers']())['filter'](_0xf0cae9=>'suggestion'===this['_splitMarkerName'](_0xf0cae9['name'])['group']);if(0x0===_0x2f865b['length'])return;_0x2f865b['sort']((_0x5c0b0e,_0x2936de)=>{const _0x9371ca=_0x5c0b0e['data']['oldRange'],_0x486686=_0x2936de['data']['oldRange'];return null===_0x9371ca&&null===_0x486686?0x0:null===_0x9371ca&&null!==_0x486686?-0x1:null!==_0x9371ca&&null===_0x486686?0x1:_0x9371ca['start']['isBefore'](_0x486686['start'])?-0x1:0x1;});const _0x45d27e=new Set(),_0x5b1313=new Set();for(const {name:_0x208214,data:_0x27159f}of _0x2f865b){const {id:_0x1b94c4}=this['_splitMarkerName'](_0x208214);if(null===_0x27159f['oldRange']){const _0x11800e=this['_handleNewSuggestionMarker'](_0x208214);_0x5b1313['add'](_0x11800e);}else{const _0x532f4c=this['_suggestions']['get'](_0x1b94c4);null!==_0x27159f['newRange']||_0x532f4c['isInContent']?(_0x45d27e['add'](_0x532f4c['head']),_0x5b1313['add'](_0x532f4c)):this['_removeSuggestion'](_0x532f4c);}}_0x5b1313['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b1313);for(const _0x48528f of _0x45d27e)this['fire']('suggestionChanged',_0x48528f);}),_0x17fe99['model']['on']('applyOperation',(_0x1f585d,_0x4a5ce1)=>{const _0x15d165=_0x4a5ce1[0x0];if(!this['_suggestions']['size'])return;if(!_0x15d165['isDocumentOperation'])return;if(_0x15d165['batch']['isUndo']||!_0x15d165['batch']['isLocal'])return;let _0x24278c,_0x17d7d3;switch(_0x15d165['type']){case'insert':_0x24278c=_0x17fe99['model']['createPositionAt'](_0x15d165['position']),_0x17d7d3=_0x24278c['getShiftedBy'](_0x15d165['howMany']);break;case'split':_0x24278c=_0x17fe99['model']['createPositionAt'](_0x15d165['splitPosition']),_0x17d7d3=_0x17fe99['model']['createPositionAt'](_0x15d165['moveTargetPosition']);break;case'move':_0x24278c=_0x17fe99['model']['createPositionAt'](_0x15d165['targetPosition']),_0x17d7d3=_0x24278c['getShiftedBy'](_0x15d165['howMany']);break;default:return;}const _0x448f0b=_0x17fe99['model']['createRange'](_0x24278c,_0x17d7d3);_0x17fe99['model']['change'](()=>{for(const {suggestion:_0x42942f,meta:_0x34d1e6}of this['_findSuggestions'](_0x448f0b)){if(_0x42942f['isMultiRange'])continue;if('formatInline'==_0x42942f['type'])continue;const _0x331540=this['_getAttributeKey'](_0x42942f);if(_0x331540&&this['_isBlockAttribute'](_0x331540)&&'split'!=_0x15d165['type'])continue;const _0x323f4f=_0x42942f['data']&&_0x42942f['data']['multipleBlocks'];('formatBlock'!=_0x42942f['type']||'split'==_0x15d165['type']&&!_0x323f4f)&&(_0x34d1e6['containsRangeInObject']||'insertion'==_0x42942f['type']&&_0x34d1e6['isOwn']||_0x42942f['getFirstRange']()['containsRange'](_0x448f0b)&&this['_breakSuggestionMarker'](_0x42942f,_0x24278c,_0x17d7d3));}});},{'priority':'lowest'}),_0x17fe99['model']['on']('deleteContent',(_0x49875f,_0x34e789)=>{const _0x384a18=_0x34e789[0x0],_0x1bf2d7=_0x34e789[0x1];if(_0x1bf2d7&&_0x1bf2d7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x384a18['isCollapsed'])return;const _0x5bbb8e=_0x17fe99['model']['schema'],{start:_0x2c38a3,end:_0x1ae711}=_0x384a18['getFirstRange'](),_0xaf14bd=_0x2c38a3['nodeAfter']&&_0x5bbb8e['isLimit'](_0x2c38a3['nodeAfter'])?null:_0x5bbb8e['getNearestSelectionRange'](_0x2c38a3,'forward'),_0x32cf00=_0x1ae711['nodeBefore']&&_0x5bbb8e['isLimit'](_0x1ae711['nodeBefore'])?null:_0x5bbb8e['getNearestSelectionRange'](_0x1ae711,'backward'),_0xd6bbe2=_0x17fe99['model']['createRange'](_0xaf14bd?_0xaf14bd['start']:_0x2c38a3,_0x32cf00?_0x32cf00['end']:_0x1ae711);_0x17fe99['model']['change'](_0x2e262a=>{this['markDeletion'](_0xd6bbe2);const _0x327f29=_0x17fe99['model']['schema']['getNearestSelectionRange'](_0xd6bbe2['start']);_0x384a18['is']('documentSelection')?_0x2e262a['setSelection'](_0x327f29):_0x384a18['setTo'](_0x327f29);}),_0x49875f['stop']();},{'priority':_0x4c5522['normal']+0xa}),_0x17fe99['model']['on']('insertContent',(_0x266a08,_0x4d4b98)=>{const _0x2d3eae=_0x4d4b98[_0x4d4b98['length']-0x1];_0x2d3eae&&_0x2d3eae['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x17fe99['model']['change'](()=>{let _0x1e8401=_0x17fe99['model']['insertContent'](_0x4d4b98[0x0],_0x4d4b98[0x1],_0x4d4b98[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e8401)return;_0x266a08['return']=_0x1e8401['clone']();const _0x79287c=_0x1e8401['end']['nodeBefore'],_0x1e85cf=_0x17fe99['model']['schema'];_0x79287c&&_0x1e85cf['isBlock'](_0x79287c)&&!_0x1e85cf['isObject'](_0x79287c)&&(_0x1e8401=_0x17fe99['model']['createRange'](_0x1e8401['start'],_0x17fe99['model']['createPositionAt'](_0x79287c,'end'))),this['markInsertion'](_0x1e8401);}),_0x266a08['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x351d31=new $(_0x17fe99,this['_suggestions']);_0x17fe99['commands']['add']('acceptSuggestion',_0x351d31),this['enableCommand']('acceptSuggestion');const _0x45c3d3=new B(_0x17fe99,this['_suggestions']);_0x17fe99['commands']['add']('discardSuggestion',_0x45c3d3),this['enableCommand']('discardSuggestion'),_0x17fe99['commands']['add']('acceptAllSuggestions',new x(_0x17fe99,_0x351d31,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x17fe99['commands']['add']('discardAllSuggestions',new x(_0x17fe99,_0x45c3d3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x17fe99['commands']['add']('acceptSelectedSuggestions',new R(_0x17fe99,_0x351d31,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x17fe99['commands']['add']('discardSelectedSuggestions',new R(_0x17fe99,_0x45c3d3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x85cd33=_0x17fe99['plugins']['get']('CommentsRepository');this['listenTo'](_0x85cd33,'addComment',(_0x443607,{threadId:_0x3a90c2})=>{const _0x37b5d6=this['_suggestions']['get'](_0x3a90c2);_0x37b5d6&&_0x37b5d6['commentThread']&&0x1===_0x37b5d6['commentThread']['length']&&this['_updateSuggestionData'](_0x3a90c2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x85cd33,'removeComment',(_0x512414,{threadId:_0x47ab61})=>{const _0x55cc71=this['_suggestions']['get'](_0x47ab61);_0x55cc71&&_0x55cc71['commentThread']&&!_0x55cc71['commentThread']['length']&&this['_updateSuggestionData'](_0x47ab61,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3e7099){if(this['_adapter'])throw new _0x14a443('track-changes-adapter-already-set',this);this['_adapter']=_0x3e7099;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5965e0=!0x1,toJSON:_0xf7d8ca=!0x1}={}){const _0x3bfcab=[];for(const _0xa428e of this['_suggestions']['values']())_0x5965e0&&!_0xa428e['isInContent']||_0x3bfcab['push'](_0xa428e);return _0xf7d8ca?_0x3bfcab['map'](_0x43339b=>_0x43339b['toJSON']()):_0x3bfcab;}['getSuggestion'](_0xefc0d4){const _0x13aad0=this['_suggestions']['get'](_0xefc0d4);if(!_0x13aad0)throw new _0x14a443('track-changes-suggestion-not-found',this);return _0x13aad0;}['hasSuggestion'](_0x3b54b6){return this['_suggestions']['has'](_0x3b54b6);}['addSuggestionData'](_0x24220d){const {authorId:_0x140c21,id:_0x4bad36,attributes:_0xfa38fd}=_0x24220d,[_0x56d902,_0x2537ab]=_0x24220d['type']['split'](':'),_0x4b95d4=this['_suggestions']['get'](_0x4bad36)||this['_createSuggestion'](_0x56d902,_0x2537ab,_0x4bad36,_0x140c21,_0xfa38fd);if(this['_addThreadToSuggestion'](_0x4b95d4),this['_checkSuggestionCorrectness'](_0x4b95d4,_0x56d902,_0x2537ab||null,_0x140c21),_0x4b95d4['createdAt']=_0x24220d['createdAt'],_0x4b95d4['_isDataLoaded']=!0x0,_0xfa38fd&&_0xfa38fd['@external']){const _0x5c31b5=_0xfa38fd['@external'],_0xad827f=this['_getExternalAuthor'](_0x5c31b5['authorName']);_0x4b95d4['authoredAt']=_0x5c31b5['createdAt'],_0x4b95d4['author']=_0xad827f,_0x4b95d4['isExternal']=!0x0;}else _0x4b95d4['authoredAt']=_0x24220d['createdAt'];switch(_0x24220d['data']&&(_0x4b95d4['data']=_0x24220d['data']),_0x24220d['attributes']&&(_0x4b95d4['attributes']=_0x24220d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4b95d4['_saved']=!0x0),this['_suggestionState']['get'](_0x4b95d4)){case'notReady':this['_suggestionState']['set'](_0x4b95d4,'dataReady');break;case'markerReady':_0x4b95d4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4b95d4])),this['_refreshSuggestionsChain'](new Set([_0x4b95d4])),this['_suggestionState']['set'](_0x4b95d4,'ready'),this['fire']('suggestionLoaded',_0x4b95d4)):this['_suggestionState']['set'](_0x4b95d4,'removed');}return _0x4b95d4;}['acceptSuggestion'](_0x26959c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x117488 of _0x26959c['getAllAdjacentSuggestions']())_0x117488['accept']();});});}['discardSuggestion'](_0x1ec62f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25b6dd of _0x1ec62f['getAllAdjacentSuggestions']())_0x25b6dd['discard']();});});}['enableCommand'](_0x27bf71,_0x1aef0d){const _0x4c38d8=this['editor']['commands']['get'](_0x27bf71);if(!_0x4c38d8)throw new _0x14a443('track-changes-command-not-found',this,{'commandName':_0x27bf71});if(this['_enabledCommands']['has'](_0x4c38d8))throw new _0x14a443('track-changes-enable-command-twice',this,{'commandName':_0x27bf71});this['_enabledCommands']['add'](_0x4c38d8),_0x1aef0d&&_0x4c38d8['on']('execute',(_0x1013e4,_0x2b09d7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2b09d7['length']>0x0&&_0x2b09d7[_0x2b09d7['length']-0x1]&&_0x2b09d7[_0x2b09d7['length']-0x1]['forceDefaultExecution']?_0x2b09d7['pop']():(_0x1013e4['return']=_0x1aef0d((..._0x562761)=>_0x4c38d8['execute'](..._0x562761,{'forceDefaultExecution':!0x0}),..._0x2b09d7),_0x1013e4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x57b0ba){let _0x1e0224,_0x55d5ad;const _0x428148=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e0224=_0x57b0ba();}catch(_0x360735){_0x55d5ad=_0x360735;}return _0x428148||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x55d5ad&&_0x14a443['rethrowUnexpectedError'](_0x55d5ad,this),_0x1e0224;}['markInsertion'](_0x1a5f6b,_0x55eed5=null,_0x440fae={}){if(_0x1a5f6b['isCollapsed'])return null;const _0x48518d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13eb8a,meta:_0x59a2b6}of this['_findSuggestions'](_0x1a5f6b,'insertion'))if(_0x59a2b6['isOwn']){if(!_0x59a2b6['isNextTo']){if(_0x59a2b6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x13eb8a,_0x440fae))continue;return _0x13eb8a;}if(Lt(_0x13eb8a,_0x440fae))return _0x13eb8a;this['_breakSuggestionMarker'](_0x13eb8a,_0x1a5f6b['start'],_0x1a5f6b['end']);break;}if(_0x55eed5==_0x13eb8a['subType']&&Lt(_0x13eb8a,_0x440fae)){const _0x43bf74=_0x13eb8a['getFirstRange']();return _0x43bf74['start']['isEqual'](_0x1a5f6b['end'])?this['_setSuggestionRange'](_0x13eb8a,this['_model']['createRange'](_0x1a5f6b['start'],_0x43bf74['end'])):this['_setSuggestionRange'](_0x13eb8a,this['_model']['createRange'](_0x43bf74['start'],_0x1a5f6b['end'])),_0x13eb8a;}}const _0x53a8c7=_0x28b84b(),_0x3f825f=_0x48518d['id'],_0xe30c0b=_0x55eed5?'insertion:'+_0x55eed5:'insertion',_0x304793=this['_setSuggestionData']({'id':_0x53a8c7,'type':_0xe30c0b,'createdAt':new Date(),'authorId':_0x3f825f,'attributes':_0x440fae});return this['_addSuggestionMarker'](_0xe30c0b,_0x53a8c7,_0x3f825f,_0x1a5f6b),_0x304793;}['markMultiRangeInsertion'](_0x1d3aa8,_0xdfd0d9='multi',_0x4e5635={}){const _0x29eda7=this['editor']['plugins']['get']('Users')['me'],_0x22744d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xdfd0d9,'join');for(const _0xdedc1c of this['getSuggestions']())if(_0xdedc1c['author']['id']==_0x29eda7['id']&&'insertion'==_0xdedc1c['type']&&_0xdedc1c['subType']==_0xdfd0d9&&Lt(_0xdedc1c,_0x4e5635)&&(_0x22744d(_0xdedc1c['getRanges'](),_0x1d3aa8)||_0x22744d(_0x1d3aa8,_0xdedc1c['getRanges']()))){for(const _0x3ba02e of _0x1d3aa8)_0xdedc1c['addRange'](_0x3ba02e);return _0xdedc1c;}for(const {suggestion:_0x47e1a1,meta:_0x93ec7}of this['_findSuggestions'](_0x1d3aa8,'insertion')){if(!_0x93ec7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x93ec7['containsRangeInObject'])continue;if(!Lt(_0x47e1a1,_0x4e5635))continue;let _0x2883b5=!0x0;for(const _0x981246 of _0x47e1a1['getRanges']())for(const _0x451918 of _0x1d3aa8)if(!_0x981246['containsRange'](_0x451918)){_0x2883b5=!0x1;break;}if(_0x2883b5)return _0x47e1a1;}const _0x10bf45=_0x28b84b(),_0x5905db=_0x29eda7['id'],_0x2cd8a5='insertion:'+_0xdfd0d9,_0x17f18f=this['_setSuggestionData']({'id':_0x10bf45,'type':_0x2cd8a5,'createdAt':new Date(),'authorId':_0x5905db,'attributes':_0x4e5635});for(const _0x37920d of _0x1d3aa8)this['_addSuggestionMarker'](_0x2cd8a5,_0x10bf45,_0x5905db,_0x37920d,u['getMultiRangeId']());return _0x17f18f;}['markInlineFormat'](_0x20e11a,_0x40b075,_0x5c2dc8=null,_0x2bd807={}){if(_0x5c2dc8=_0x5c2dc8||Vt(_0x40b075),_0x20e11a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3713e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c2dc8,'accept');return this['forceDefaultExecution'](()=>_0x3713e8([_0x20e11a],_0x40b075,_0x2bd807)),null;}const _0x3e09c2=this['editor']['plugins']['get']('Users')['me'],_0x1c4e3e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x16f32c,meta:_0x29d992}of this['_findSuggestions'](_0x20e11a,'insertion'))_0x29d992['isOwn']&&!_0x29d992['isInsideObject']&&_0x1c4e3e['push'](..._0x16f32c['getRanges']());}const _0x1e80fa=function(_0xd448e6,_0x5832d4){const _0x2894db=[];for(const _0x2e1525 of _0x5832d4){const _0x5c5c74=_0xd448e6['getIntersection'](_0x2e1525);_0x5c5c74&&_0x2894db['push'](_0x5c5c74);}return _0x2894db;}(_0x20e11a,_0x1c4e3e),_0x103b86=function(_0x40d4e7,_0x4cbca2){const _0x403a7c=[_0x40d4e7];for(const _0x2d0e1e of _0x4cbca2){let _0xd6b215=0x0;for(;_0xd6b215<_0x403a7c['length'];){const _0x5a514e=_0x403a7c[_0xd6b215]['getDifference'](_0x2d0e1e);_0x403a7c['splice'](_0xd6b215,0x1,..._0x5a514e),_0xd6b215+=_0x5a514e['length'];}}return _0x403a7c;}(_0x20e11a,_0x1c4e3e);_0x1e80fa['length']&&this['_model']['change'](()=>{for(const _0x1f7ca1 of _0x1e80fa){const _0x5eee56=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c2dc8,'accept');this['forceDefaultExecution'](()=>_0x5eee56([_0x1f7ca1],_0x40b075,_0x2bd807));}});for(const _0x4ffd54 of _0x103b86){let _0x2876e7=null,_0x590cdf=_0x4ffd54['start'],_0x16c920=_0x4ffd54['end'];for(const {suggestion:_0x2846a7,meta:_0x1bdf23}of this['_findSuggestions'](_0x4ffd54,'formatInline')){if(!_0x1bdf23['isOwn'])continue;if(_0x2846a7['subType']!=_0x5c2dc8)continue;if(!Lt(_0x2846a7,_0x2bd807))continue;const _0x4ec322=_0x2846a7['getFirstRange']();if(_0x4ec322['containsRange'](_0x4ffd54,!0x0))return null;_0x590cdf=_0x590cdf['isBefore'](_0x4ec322['start'])?_0x590cdf:_0x4ec322['start'],_0x16c920=_0x16c920['isAfter'](_0x4ec322['end'])?_0x16c920:_0x4ec322['end'],_0x2876e7?_0x4ec322['start']['isBefore'](_0x2876e7['getFirstRange']()['start'])?(_0x2876e7['removeMarkers'](),_0x2876e7=_0x2846a7):_0x2846a7['removeMarkers']():_0x2876e7=_0x2846a7;}const _0x17bc35=this['_model']['createRange'](_0x590cdf,_0x16c920);if(_0x2876e7)this['_setSuggestionRange'](_0x2876e7,_0x17bc35);else{const _0x1e96f6=_0x28b84b(),_0x316d47=_0x3e09c2['id'];this['_setSuggestionData']({'id':_0x1e96f6,'type':'formatInline:'+_0x5c2dc8,'data':_0x40b075,'createdAt':new Date(),'authorId':_0x316d47,'attributes':_0x2bd807}),this['_addSuggestionMarker']('formatInline:'+_0x5c2dc8,_0x1e96f6,_0x316d47,_0x17bc35);}}return null;}['markBlockFormat'](_0x26e202,_0x2d589c,_0x400a0d=[],_0x54c7d0=null,_0x114488={}){_0x2d589c['formatGroupId']||(_0x2d589c['formatGroupId']=_0x2d589c['commandName']),_0x2d589c['multipleBlocks']=_0x26e202['is']('range'),_0x54c7d0=_0x54c7d0||Vt(_0x2d589c);const _0x308a12=_0x400a0d['map'](_0x3ec229=>Gt(_0x3ec229,this['_model'])),_0x4abcd6=_0x26e202['is']('range')?_0x26e202:Gt(_0x26e202,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1dcef0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54c7d0,'accept');return this['forceDefaultExecution'](()=>_0x1dcef0([_0x4abcd6],_0x2d589c,_0x114488)),null;}_0x308a12['push'](_0x4abcd6);let _0x5b78cd=!0x0;for(const _0x3f27e6 of _0x308a12)if(!this['_rangeIsInLocalUserInsertion'](_0x3f27e6)){_0x5b78cd=!0x1;break;}if(_0x5b78cd&&'always'!==this['_trackFormatChanges']){const _0x5b48f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54c7d0,'accept');return this['forceDefaultExecution'](()=>_0x5b48f1([_0x4abcd6],_0x2d589c,_0x114488)),null;}let _0x289d2e=null,_0x266561=_0x4abcd6['start'],_0x59f807=_0x4abcd6['end'];for(const {suggestion:_0x598bca,meta:_0x835423}of this['_findSuggestions'](_0x4abcd6,'formatBlock')){if(!_0x835423['isOwn'])continue;if(_0x835423['isNextTo']||_0x835423['containsRangeInObject']||_0x835423['isInsideObject'])continue;if(_0x598bca['data']['formatGroupId']!=_0x2d589c['formatGroupId'])continue;if(!Lt(_0x598bca,_0x114488))continue;const _0x2a0795=_0x598bca['getFirstRange']();if(_0x598bca['subType']==_0x54c7d0){if(_0x2a0795['containsRange'](_0x4abcd6,!0x0))return null;_0x266561=_0x266561['isBefore'](_0x2a0795['start'])?_0x266561:_0x2a0795['start'],_0x59f807=_0x59f807['isAfter'](_0x2a0795['end'])?_0x59f807:_0x2a0795['end'],_0x289d2e?_0x2a0795['start']['isBefore'](_0x289d2e['getFirstRange']()['start'])?(_0x289d2e['removeMarkers'](),_0x289d2e=_0x598bca):_0x598bca['removeMarkers']():_0x289d2e=_0x598bca;}else{const _0x2fa888=_0x4abcd6['getIntersection'](_0x2a0795);this['_cutOutSuggestionMarker'](_0x598bca,_0x2fa888);}}const _0x3ea459=this['editor']['plugins']['get']('Users')['me'],_0x360790=_0x28b84b(),_0xaf4714=_0x3ea459['id'];if(_0x289d2e)return this['_setSuggestionRange'](_0x289d2e,this['_model']['createRange'](_0x266561,_0x59f807)),_0x289d2e;{const _0x27b1be=this['_setSuggestionData']({'id':_0x360790,'type':'formatBlock:'+_0x54c7d0,'data':_0x2d589c,'createdAt':new Date(),'authorId':_0xaf4714,'attributes':_0x114488});return this['_addSuggestionMarker']('formatBlock:'+_0x54c7d0,_0x360790,_0xaf4714,this['_model']['createRange'](_0x266561,_0x59f807)),_0x27b1be;}}['markMultiRangeBlockFormat'](_0x23771b,_0x979f5,_0x456099=[],_0x52e075=null,_0x10e3c2={}){_0x979f5['formatGroupId']||(_0x979f5['formatGroupId']=_0x979f5['commandName']);const _0x4a82cd=_0x23771b[0x0];_0x979f5['multipleBlocks']=_0x4a82cd['is']('range'),_0x52e075=_0x52e075||Vt(_0x979f5);const _0x37d5d2=_0x456099['map'](_0x4020b5=>Gt(_0x4020b5,this['_model'])),_0x40f6e9=_0x4a82cd['is']('range')?_0x23771b:_0x23771b['map'](_0x1d36e5=>Gt(_0x1d36e5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x59599c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52e075,'accept');return this['forceDefaultExecution'](()=>_0x59599c(_0x40f6e9,_0x979f5,_0x10e3c2)),null;}_0x37d5d2['push'](..._0x40f6e9);let _0x34404f=!0x0;for(const _0x20af97 of _0x37d5d2)if(!this['_rangeIsInLocalUserInsertion'](_0x20af97)){_0x34404f=!0x1;break;}if(_0x34404f&&'always'!==this['_trackFormatChanges']){const _0x54c11c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52e075,'accept');return this['forceDefaultExecution'](()=>_0x54c11c(_0x40f6e9,_0x979f5,_0x10e3c2)),null;}const _0x5e06b3=this['editor']['plugins']['get']('Users')['me'];for(const _0x2dcdef of this['getSuggestions']()){if(_0x2dcdef['author']['id']!=_0x5e06b3['id'])continue;if('formatBlock'!=_0x2dcdef['type']||_0x2dcdef['data']['formatGroupId']!=_0x979f5['formatGroupId'])continue;if(!Lt(_0x2dcdef,_0x10e3c2))continue;const _0x564e3c=_0x2dcdef['subType']==_0x52e075;for(let _0xc66f6d=0x0;_0xc66f6d<_0x40f6e9['length'];_0xc66f6d++){const _0x20bbbe=_0x40f6e9[_0xc66f6d];for(const _0x4756ac of _0x2dcdef['getMarkers']()){const _0x1dcdf6=_0x4756ac['getRange']();if(_0x20bbbe['isEqual'](_0x1dcdf6)){_0x564e3c?(_0x40f6e9['splice'](_0xc66f6d,0x1),_0xc66f6d--):_0x2dcdef['removeMarker'](_0x4756ac['name']);break;}}}}if(0x0==_0x40f6e9['length'])return null;const _0x31c49d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52e075,'join');for(const _0x6f5ef of this['getSuggestions']())if(_0x6f5ef['author']['id']==_0x5e06b3['id']&&'formatBlock'==_0x6f5ef['type']&&_0x6f5ef['data']['formatGroupId']==_0x979f5['formatGroupId']&&_0x6f5ef['subType']==_0x52e075&&Lt(_0x6f5ef,_0x10e3c2)&&(_0x31c49d(_0x6f5ef['getRanges'](),_0x40f6e9)||_0x31c49d(_0x40f6e9,_0x6f5ef['getRanges']()))){for(const _0x520751 of _0x40f6e9)_0x6f5ef['addRange'](_0x520751);return _0x6f5ef;}const _0x20121a=_0x28b84b(),_0x5ee7bf=_0x5e06b3['id'],_0x12f7b7='formatBlock:'+_0x52e075,_0x33345e=this['_setSuggestionData']({'id':_0x20121a,'type':_0x12f7b7,'data':_0x979f5,'createdAt':new Date(),'authorId':_0x5ee7bf,'attributes':_0x10e3c2});for(const _0x5bfc30 of _0x40f6e9)this['_addSuggestionMarker'](_0x12f7b7,_0x20121a,_0x5ee7bf,_0x5bfc30,u['getMultiRangeId']());return _0x33345e;}['markDeletion'](_0x38de6b,_0x166e14=null,_0xe7ad0b={}){if(_0x38de6b['isCollapsed'])return null;const _0x3c06ef=this['editor']['plugins']['get']('Users')['me'],_0x4604bf=new _0x41bd9b(_0x38de6b['start'],_0x38de6b['end']);for(const {suggestion:_0x156e99,meta:_0x377b2f}of this['_findSuggestions'](_0x4604bf,'insertion'))if(_0x377b2f['isOwn']&&!_0x377b2f['isNextTo']){if(_0x156e99['isMultiRange']){const _0xe2a88f=_0x156e99['getRanges']()['filter'](_0x3019d6=>'$graveyard'!=_0x3019d6['root']['rootName']);_0xe2a88f['every'](_0x2715b9=>_0x4604bf['containsRange'](_0x2715b9,!0x0))&&_0x156e99['discard']();if(_0xe2a88f['some'](_0x59af0f=>_0x59af0f['containsRange'](_0x4604bf,!0x0))){const _0x174f02=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x166e14,'accept');return this['forceDefaultExecution'](()=>_0x174f02([_0x4604bf],null,_0xe7ad0b)),null;}}else{const _0x4061f2=_0x4604bf['getIntersection'](_0x156e99['getFirstRange']());null!==_0x4061f2&&_0x156e99['_onDiscard']([_0x4061f2],null,_0xe7ad0b);}}if(_0x4604bf['detach'](),_0x4604bf['isCollapsed']||'$graveyard'==_0x4604bf['root']['rootName'])return null;let _0x173293=null,_0x586119=_0x4604bf['start'],_0x16467e=_0x4604bf['end'];const _0x22363f=this['_findSuggestions'](_0x4604bf,'deletion');for(const {suggestion:_0x41f421,meta:_0x3c268f}of _0x22363f){const _0x1f5361=this['_model']['createRange'](_0x586119,_0x16467e);if(_0x3c268f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c268f['containsRangeInObject']&&!_0x3c268f['isInsideObject'])){if(_0x41f421['isMultiRange']){if(!Lt(_0x41f421,_0xe7ad0b))continue;let _0x1b6754=!0x0;for(const _0x3f7b90 of _0x41f421['getRanges']()){if(_0x3f7b90['containsRange'](_0x1f5361,!0x0))return _0x41f421;_0x1f5361['containsRange'](_0x3f7b90)||(_0x1b6754=!0x1);}_0x1b6754&&_0x41f421['discard']();}else{const _0x28f80f=_0x41f421['getFirstRange']();if(_0x28f80f['containsRange'](_0x1f5361,!0x0))return _0x41f421;if(!Lt(_0x41f421,_0xe7ad0b)){_0x1f5361['containsRange'](_0x28f80f)?_0x41f421['removeMarkers']():_0x28f80f['containsPosition'](_0x586119)?_0x586119=_0x28f80f['end']:_0x28f80f['containsPosition'](_0x16467e)&&(_0x16467e=_0x28f80f['start']);continue;}_0x586119=_0x586119['isBefore'](_0x28f80f['start'])?_0x586119:_0x28f80f['start'],_0x16467e=_0x16467e['isAfter'](_0x28f80f['end'])?_0x16467e:_0x28f80f['end'],_0xe7ad0b=Object['assign']({},_0x41f421['attributes']),_0x173293?_0x28f80f['start']['isBefore'](_0x173293['getFirstRange']()['start'])?(_0x173293['removeMarkers'](),_0x173293=_0x41f421):_0x41f421['removeMarkers']():_0x173293=_0x41f421;}}}if(_0x173293)return this['_setSuggestionRange'](_0x173293,this['_model']['createRange'](_0x586119,_0x16467e)),_0x173293;{const _0x276306=_0x28b84b(),_0x5babe8=this['_model']['createRange'](_0x586119,_0x16467e),_0x22dddd=_0x3c06ef['id'],_0x224349=_0x166e14?'deletion:'+_0x166e14:'deletion',_0x408932=this['_setSuggestionData']({'id':_0x276306,'type':_0x224349,'createdAt':new Date(),'authorId':_0x22dddd,'attributes':_0xe7ad0b});return this['_addSuggestionMarker'](_0x224349,_0x276306,_0x22dddd,_0x5babe8),_0x408932;}}['markMultiRangeDeletion'](_0x215388,_0x401574='multi',_0x323c57={}){const _0x28df10=this['editor']['plugins']['get']('Users')['me'],_0x49be46=_0x215388['map'](_0x57dab8=>new _0x41bd9b(_0x57dab8['start'],_0x57dab8['end'])),_0x234ddf=new Set();for(const {suggestion:_0x4beff7,meta:_0x43bd6f}of this['_findSuggestions'](_0x49be46,'insertion'))_0x43bd6f['isOwn']&&!_0x43bd6f['isNextTo']&&_0x234ddf['add'](_0x4beff7);for(const _0xb183c2 of _0x234ddf)if(_0xb183c2['isMultiRange']){const _0x182e79=_0xb183c2['getRanges']();(!_0xb183c2['attributes']||!_0xb183c2['attributes']['skipNestingCheck'])&&(_0x182e79['every'](_0xdaf7f3=>_0x49be46['some'](_0x29b4fb=>_0x29b4fb['containsRange'](_0xdaf7f3,!0x0)))&&_0xb183c2['discard']());if(_0x49be46['every'](_0x53fdb9=>_0x182e79['some'](_0x290a89=>_0x290a89['containsRange'](_0x53fdb9,!0x0)))){const _0x576e23=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x401574,'accept');return this['forceDefaultExecution'](()=>_0x576e23(_0x215388,null,_0x323c57)),null;}}else{const _0x98b3b9=_0xb183c2['getFirstRange']();_0x49be46['some'](_0x237e1a=>_0x237e1a['containsRange'](_0x98b3b9,!0x0))&&_0xb183c2['discard']();if(_0x49be46['every'](_0x4e85e6=>_0x98b3b9['containsRange'](_0x4e85e6,!0x0))){const _0x3a8e92=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x401574,'accept');return this['forceDefaultExecution'](()=>_0x3a8e92(_0x49be46,null,_0x323c57)),null;}}const _0x4cdfce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x401574,'join');let _0x1f51ec=null;for(const _0x279d80 of this['getSuggestions']())if(_0x279d80['author']['id']==_0x28df10['id']&&_0x279d80['isInContent']&&'deletion'==_0x279d80['type']&&_0x279d80['subType']==_0x401574&&Lt(_0x279d80,_0x323c57)&&(_0x4cdfce(_0x279d80['getRanges'](),_0x49be46)||_0x4cdfce(_0x49be46,_0x279d80['getRanges']()))){if(_0x1f51ec){if(_0x279d80['commentThread']&&_0x279d80['commentThread']['length'])continue;for(const _0xc639d9 of _0x279d80['getRanges']())_0x1f51ec['isIntersectingWithRange'](_0xc639d9)||_0x1f51ec['addRange'](_0xc639d9);_0x279d80['removeMarkers']();}else{_0x1f51ec=_0x279d80;for(const _0x191692 of _0x49be46)_0x279d80['isIntersectingWithRange'](_0x191692)||_0x279d80['addRange'](_0x191692);}}if(_0x1f51ec)return _0x1f51ec;_0x234ddf['clear']();for(const {suggestion:_0x1f9ad1,meta:_0x492d65}of this['_findSuggestions'](_0x49be46,'deletion'))_0x492d65['isOwn']&&(this['_mergeNestedSuggestions']||!_0x492d65['containsRangeInObject']&&!_0x492d65['isInsideObject'])&&Lt(_0x1f9ad1,_0x323c57)&&_0x234ddf['add'](_0x1f9ad1);for(const _0x4a8329 of _0x234ddf){const _0x5b78a7=_0x4a8329['getRanges']();if(!_0x323c57||!_0x323c57['skipNestingCheck']){if(_0x49be46['every'](_0x40d60b=>_0x5b78a7['some'](_0x40d486=>_0x40d486['containsRange'](_0x40d60b,!0x0))))return _0x4a8329;}(!_0x4a8329['attributes']||!_0x4a8329['attributes']['skipNestingCheck'])&&(_0x5b78a7['every'](_0x1e70ff=>_0x49be46['some'](_0x13fcab=>_0x13fcab['containsRange'](_0x1e70ff,!0x0)))&&_0x4a8329['discard']());}const _0x17c71b=_0x28b84b(),_0xe25765=_0x28df10['id'],_0x1519c3='deletion:'+_0x401574,_0x3cdd9d=this['_setSuggestionData']({'id':_0x17c71b,'type':_0x1519c3,'createdAt':new Date(),'authorId':_0xe25765,'attributes':_0x323c57});for(const _0x2979de of _0x49be46)_0x2979de['detach'](),_0x2979de['isCollapsed']||'$graveyard'==_0x2979de['root']['rootName']||this['_addSuggestionMarker'](_0x1519c3,_0x17c71b,_0xe25765,_0x2979de,u['getMultiRangeId']());return _0x3cdd9d;}['markAttributeChange'](_0x42a4f5,_0xb98003,_0x5a1a48,_0x4ce7a8,_0x1ba881){if(_0x42a4f5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x377dc8=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c2764=Array['from'](this['_suggestions']['values']())['filter'](_0x21f923=>'attribute'==_0x21f923['type']&&_0x21f923['data']['key']==_0xb98003&&_0x21f923['isIntersectingWithRange'](_0x42a4f5));if('default'===this['_trackFormatChanges']){const _0x9839c4=this['_findSuggestions'](_0x42a4f5,'insertion')['filter'](({meta:_0x1109b6})=>_0x1109b6['isOwn']&&!_0x1109b6['isInsideObject']&&!_0x1109b6['isNextTo'])['map'](({suggestion:_0x52894e})=>_0x52894e);_0x3c2764['unshift'](..._0x9839c4);}const _0x243816=new Map([[_0x42a4f5,_0x5a1a48]]);for(const _0x45e2e1 of _0x3c2764){const _0x4407db='attribute'==_0x45e2e1['type']?_0x45e2e1['data']['oldValue']:void 0x0,_0x1e19db=_0x45e2e1['getFirstRange'](),_0x52c3de=Array['from'](_0x243816['keys']())['find'](_0x5b8cd2=>_0x5b8cd2['isIntersecting'](_0x1e19db));if(!_0x52c3de)continue;const _0x5ec642=_0x52c3de['getDifference'](_0x1e19db);this['_isBlockAttribute'](_0xb98003)&&'insertion'==_0x45e2e1['type']&&0x0!=_0x5ec642['length']||(_0x243816['delete'](_0x52c3de),_0x5ec642['forEach'](_0x2ec59c=>{_0x243816['set'](_0x2ec59c,_0x5a1a48);}),'insertion'!=_0x45e2e1['type']&&_0x4407db!=_0x4ce7a8&&_0x243816['set'](_0x52c3de['getIntersection'](_0x1e19db),_0x4407db));}const _0x13be77=[];for(const [_0x37f778,_0x5886f1]of _0x243816){const _0x3434a5=_0x28b84b(),_0x250a32={'key':_0xb98003,'oldValue':_0x5886f1,'newValue':_0x4ce7a8};_0xb98003['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':_0xb98003});const _0x50a983=('attribute:'+(_0xb98003+'|'+Vt({'newValue':_0x4ce7a8})))['substring'](0x0,0x3c),_0x272b2f=this['_setSuggestionData']({'id':_0x3434a5,'type':_0x50a983,'data':_0x250a32,'createdAt':new Date(),'authorId':_0x377dc8,'attributes':_0x1ba881});_0x13be77['push'](_0x272b2f),this['_addSuggestionMarker'](_0x50a983,_0x3434a5,_0x377dc8,_0x37f778);}return _0x13be77;}['enableDefaultAttributesIntegration'](_0x127c41){this['enableCommand'](_0x127c41,(_0x49d620,..._0x5c56f3)=>{this['_recordAttributeChanges'](()=>{_0x49d620(..._0x5c56f3);});});}['registerBlockAttribute'](_0x1a6d3d){this['_blockAttributeKeys']['add'](_0x1a6d3d);}['registerInlineAttribute'](_0x3f47bf){this['_inlineAttributeKeys']['add'](_0x3f47bf);}['_getAttributeKey'](_0x3ae357){return'attribute'==_0x3ae357['type']?_0x3ae357['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3dc21d,_0x1aedf4){const _0x27a70a=_0x3dc21d['getFirstMarker']();this['_model']['change'](_0x2bb53b=>{_0x2bb53b['updateMarker'](_0x27a70a,{'range':_0x1aedf4});});}['_addThreadToSuggestion'](_0x24c7a7){const _0x530333=_0x24c7a7['id'],_0x5f21df=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x530333)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f21df,'threadId':_0x530333,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x240782=this['_commentsRepository']['getCommentThread'](_0x530333);_0x240782['unbind']('isRemovable'),_0x240782['isRemovable']=!0x1,_0x24c7a7['commentThread']=_0x240782;}['_checkSuggestionCorrectness'](_0x589215,_0x40cebd,_0x4010ca,_0xa6618b){if(_0x589215['type']!=_0x40cebd||_0x589215['subType']!=_0x4010ca||_0x589215['creator']['id']!=_0xa6618b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x14a443('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x24a570,_0xdaed7b){const _0x40163e=_0x24a570['getFirstRange']();if(_0xdaed7b['isEqual'](_0x40163e))_0x24a570['removeMarkers']();else{if(_0x40163e['containsRange'](_0xdaed7b)){const _0x40222e=this['_model']['createPositionAt'](_0xdaed7b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24a570,this['_model']['createRange'](_0x40163e['start'],_0x40222e));const _0x6ba215=_0x28b84b(),_0x188a2a=_0x24a570['creator']['id'],_0x1336fc=_0x24a570['type']+':'+_0x24a570['subType'];this['_setSuggestionData']({'id':_0x6ba215,'type':_0x1336fc,'createdAt':new Date(),'authorId':_0x188a2a,'data':_0x24a570['data'],'attributes':_0x24a570['attributes']});const _0x2fb94e=this['_model']['createPositionAt'](_0xdaed7b['end']['parent'],'after'),_0x1c0879=this['_model']['createRange'](_0x2fb94e,_0x40163e['end']);this['_addSuggestionMarker'](_0x1336fc,_0x6ba215,_0x188a2a,_0x1c0879);}else{if(_0x40163e['containsPosition'](_0xdaed7b['start'])){const _0x5b0c1b=this['_model']['createPositionAt'](_0xdaed7b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24a570,this['_model']['createRange'](_0x40163e['start'],_0x5b0c1b));}else{const _0x33649c=this['_model']['createPositionAt'](_0xdaed7b['end']['parent'],'after');this['_setSuggestionRange'](_0x24a570,this['_model']['createRange'](_0x33649c,_0x40163e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13a3f5){for(const {suggestion:_0x16619e,meta:_0x8b7611}of this['_findSuggestions'](_0x13a3f5,'insertion')){if(!_0x8b7611['isOwn'])continue;const _0x549037=_0x16619e['getRanges']();for(const _0xc92787 of _0x549037)if(!_0x13a3f5['getDifference'](_0xc92787)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4fb78f){const _0x12a02e=this['editor']['plugins']['get']('Users')['getUser'](_0x4fb78f);if(!_0x12a02e)throw new _0x14a443('track-changes-user-not-found',this);return _0x12a02e;}['_getExternalAuthor'](_0x38403d){const _0xb0ff64=this['editor']['plugins']['get']('Users'),_0x17d77a=_0x3afda7('external:'+_0x38403d),_0x272100=_0xb0ff64['getUser'](_0x17d77a);return _0x272100||_0xb0ff64['addUser']({'id':_0x17d77a,'name':_0x38403d});}['_createSuggestion'](_0x1fb4ae,_0x5c7e59,_0xe63bb0,_0x3464c8,_0x2bc561){const _0x2aaecd=this['_getAuthorFromId'](_0x3464c8),_0xe2c92d=this['_suggestionFactory']['buildSuggestion'](_0x1fb4ae,_0x5c7e59,_0xe63bb0,_0x2aaecd,_0x2bc561,_0x806266=>{this['_updateSuggestionData'](_0xe63bb0,{'attributes':_0x806266});const _0x52cf3b=this['getSuggestion'](_0xe63bb0);this['_joinWithAdjacentSuggestions'](new Set([_0x52cf3b])),this['_refreshSuggestionsChain'](new Set([_0x52cf3b]));});return this['listenTo'](_0xe2c92d,'accept',()=>{this['_updateSuggestionData'](_0xe63bb0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xe2c92d,'discard',()=>{this['_updateSuggestionData'](_0xe63bb0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xe63bb0,_0xe2c92d),this['_suggestionState']['set'](_0xe2c92d,'notReady'),_0xe2c92d;}['_splitMarkerName'](_0x38a7ac){const _0x3eb7b2=_0x38a7ac['split'](':');return{'group':_0x3eb7b2[0x0],'type':_0x3eb7b2[0x1],'subType':_0x3eb7b2['length']>=0x5?_0x3eb7b2[0x2]:null,'id':_0x3eb7b2['length']<0x5?_0x3eb7b2[0x2]:_0x3eb7b2[0x3],'authorId':_0x3eb7b2['length']<0x5?_0x3eb7b2[0x3]:_0x3eb7b2[0x4],'markerCount':0x6==_0x3eb7b2['length']?_0x3eb7b2[0x5]:null};}['_breakSuggestionMarker'](_0x1a2ec4,_0x33aa45,_0x405e6c){const _0x3d872b=_0x1a2ec4['getFirstRange'](),_0x5311b5=_0x3d872b['start'],_0x476299=_0x3d872b['end'];this['_setSuggestionRange'](_0x1a2ec4,this['_model']['createRange'](_0x5311b5,_0x33aa45));const _0xf4c2f3=_0x28b84b(),_0x2238b4=_0x1a2ec4['creator']['id'],_0x5925b6=_0x1a2ec4['type']+(_0x1a2ec4['subType']?':'+_0x1a2ec4['subType']:'');this['_setSuggestionData']({'id':_0xf4c2f3,'type':_0x5925b6,'createdAt':new Date(),'authorId':_0x2238b4,'originalSuggestionId':_0x1a2ec4['id'],'attributes':_0x1a2ec4['attributes'],'data':_0x1a2ec4['data']});const _0x316cda=this['_getAttributeKey'](_0x1a2ec4);('formatBlock'==_0x1a2ec4['type']||_0x316cda&&this['_isBlockAttribute'](_0x316cda))&&(_0x405e6c=this['_model']['createPositionBefore'](_0x405e6c['parent'])),this['_addSuggestionMarker'](_0x5925b6,_0xf4c2f3,_0x2238b4,this['_model']['createRange'](_0x405e6c,_0x476299));}['_findSuggestions'](_0x2c80b0,_0x3285cf=null){const _0x57ea4b=[],_0x37d991=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2c80b0)||(_0x2c80b0=[_0x2c80b0]);for(const _0x2843e8 of this['getSuggestions']()){if(!_0x2843e8['isInContent'])continue;if(_0x3285cf&&_0x2843e8['type']!=_0x3285cf)continue;let _0x5366cb=!0x1;for(const _0x46aff1 of _0x2843e8['getRanges']()){for(const _0xc88015 of _0x2c80b0){const _0x58f66d=_0xc88015['start']['isEqual'](_0x46aff1['end'])||_0xc88015['end']['isEqual'](_0x46aff1['start']);if(_0x58f66d||_0xc88015['getIntersection'](_0x46aff1)){const _0x1d53da=_0xc88015['containsRange'](_0x46aff1)&&Rt(this['_model']['schema'],_0x46aff1['start'],_0xc88015),_0x303e23=_0x46aff1['containsRange'](_0xc88015)&&Rt(this['_model']['schema'],_0xc88015['start'],_0x46aff1);_0x57ea4b['push']({'suggestion':_0x2843e8,'meta':{'isOwn':_0x37d991==_0x2843e8['author'],'isNextTo':_0x58f66d,'isInsideObject':_0x1d53da,'containsRangeInObject':_0x303e23}}),_0x5366cb=!0x0;break;}}if(_0x5366cb)break;}}return _0x57ea4b;}['_addSuggestionMarker'](_0x17d346,_0xc15dda,_0x4f6410,_0x1f267f,_0x4e1986){this['_model']['change'](_0x472df6=>{let _0x21a495='suggestion:'+_0x17d346+':'+_0xc15dda+':'+_0x4f6410;_0x4e1986&&(_0x21a495=_0x21a495+':'+_0x4e1986),_0x472df6['addMarker'](_0x21a495,{'range':_0x1f267f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x58cb19){const _0x573e7d=_0x58cb19['previous'],_0x3f37e4=_0x58cb19['next'];_0x58cb19['previous']=null,_0x58cb19['next']=null,null!=_0x573e7d&&_0x573e7d['next']==_0x58cb19&&(_0x573e7d['next']=_0x3f37e4),null!=_0x3f37e4&&_0x3f37e4['previous']==_0x58cb19&&(_0x3f37e4['previous']=_0x573e7d),'ready'==this['_suggestionState']['get'](_0x58cb19)&&(this['_suggestionState']['set'](_0x58cb19,'removed'),this['fire']('suggestionUnloaded',_0x58cb19,_0x573e7d,_0x3f37e4));}['_setSuggestionData'](_0x413de8){const _0x68b922=_0x413de8['id'],_0x4e4122=this['addSuggestionData'](_0x413de8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f222e=this['editor']['plugins']['get']('PendingActions'),_0x242323=_0x4e4122['hasComments'],_0x295a30=_0x4e4122['subType']?_0x4e4122['type']+':'+_0x4e4122['subType']:_0x4e4122['type'],_0x4fba8f=this['editor']['locale'],_0x261da7=_0x1f222e['add'](o(_0x4fba8f,'PENDING_ACTION_SUGGESTION')),_0x207836={'id':_0x68b922,'type':_0x295a30,'hasComments':_0x242323,'data':_0x413de8['data']||null,'originalSuggestionId':_0x413de8['originalSuggestionId']||null,'attributes':_0x4e4122['attributes']};this['_adapter']['addSuggestion'](_0x207836)['then'](_0x5dfa3a=>{_0x4e4122['_saved']=!0x0,_0x1f222e['remove'](_0x261da7),_0x5dfa3a&&_0x5dfa3a['createdAt']&&(this['_suggestions']['get'](_0x68b922)['createdAt']=_0x5dfa3a['createdAt']);})['catch'](_0xcd7baa=>{throw _0x14d0a1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4e4122['discard']();}),_0x4e4122['stopListening'](),this['_suggestions']['delete'](_0x4e4122['id']),this['_suggestionState']['delete'](_0x4e4122),_0xcd7baa;});}return _0x4e4122;}['_isBlockAttribute'](_0x1d8a87){return this['_blockAttributeKeys']['has'](_0x1d8a87);}['_updateSuggestionData'](_0xa10eb9,_0x500cee){const _0x2b5ca5=this['editor']['plugins']['get']('PendingActions'),_0x537627=this['getSuggestion'](_0xa10eb9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x537627['_saved']){const _0x119593=_0x2b5ca5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xa10eb9,_0x500cee)['then'](()=>{_0x2b5ca5['remove'](_0x119593);});}else _0x537627['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xa10eb9,_0x500cee);});}}['_getSuggestionData'](_0x2d412a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x14a443('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d412a);}['_handleNewSuggestionMarker'](_0x4a1a3d){const {id:_0x461c16,type:_0x14c90d,subType:_0x5e2549,authorId:_0x401814}=this['_splitMarkerName'](_0x4a1a3d),_0x4fec3e=this['_suggestions']['get'](_0x461c16)||this['_createSuggestion'](_0x14c90d,_0x5e2549,_0x461c16,_0x401814,{});switch(this['_checkSuggestionCorrectness'](_0x4fec3e,_0x14c90d,_0x5e2549,_0x401814),this['_suggestionState']['get'](_0x4fec3e)){case'notReady':this['_getSuggestionData'](_0x461c16)['then'](_0x1293c7=>{let _0x14339c=Promise['resolve']();_0x1293c7['hasComments']&&(_0x14339c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x461c16})),_0x14339c['then'](()=>{this['addSuggestionData'](_0x1293c7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4fec3e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x461c16,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4fec3e,'ready'),this['fire']('suggestionLoaded',_0x4fec3e);break;case'ready':this['fire']('suggestionChanged',_0x4fec3e);}return _0x4fec3e['addMarkerName'](_0x4a1a3d),_0x4fec3e;}['_refreshSuggestionsChain'](_0xa7cf1e){const _0x529007=Array['from'](_0xa7cf1e),_0x4a0912=_0x529007['filter'](_0x3924c2=>'attribute'==_0x3924c2['type']);this['_refreshAttributeSuggestionsChain'](_0x4a0912);const _0x59bdf8=_0x529007['filter'](_0x4629f4=>!_0x4629f4['isMultiRange']&&'attribute'!=_0x4629f4['type']),_0x7ec92=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39d988=>!_0x39d988['isMultiRange']&&'attribute'!=_0x39d988['type']),_0x28e8b8=_0x7ec92['filter'](_0x2320f3=>!_0xa7cf1e['has'](_0x2320f3)),_0xd214dd=new Map(_0x7ec92['map'](_0x35a8c2=>[_0x35a8c2,this['_suggestionFactory']['getSuggestionCallback'](_0x35a8c2['type'],_0x35a8c2['subType'],'chain')])),_0x25852f=new Map(_0x7ec92['map'](_0x142abf=>[_0x142abf,_0x142abf['getFirstRange']()])),_0xe4c10=new Set(),_0x42b23f=new Set();for(let _0x1ac986=0x0;_0x1ac986<_0x59bdf8['length'];_0x1ac986++)_0x32cab8(_0x59bdf8[_0x1ac986],_0x59bdf8,_0x1ac986+0x1);for(let _0x497041=0x0;_0x497041<_0x59bdf8['length'];_0x497041++)_0x32cab8(_0x59bdf8[_0x497041],_0x28e8b8,0x0);const _0x2956e6=new Set();for(let _0x3a31b9=0x0;_0x3a31b9<_0x59bdf8['length'];_0x3a31b9++){const _0x3c1dcf=_0x59bdf8[_0x3a31b9];!_0x42b23f['has'](_0x3c1dcf)&&_0x3c1dcf['previous']&&(_0x2956e6['add'](_0x3c1dcf['previous']),_0x3c1dcf['previous']['next']===_0x3c1dcf&&(_0x3c1dcf['previous']['next']=null),_0x3c1dcf['previous']=null),!_0xe4c10['has'](_0x3c1dcf)&&_0x3c1dcf['next']&&(_0x2956e6['add'](_0x3c1dcf['next']),_0x3c1dcf['next']['previous']===_0x3c1dcf&&(_0x3c1dcf['next']['previous']=null),_0x3c1dcf['next']=null);}function _0x32cab8(_0x31c94b,_0x13616a,_0x4ad2b9){for(let _0x4dd3c4=_0x4ad2b9;_0x4dd3c4<_0x13616a['length'];_0x4dd3c4++){const _0x3611b3=_0xb99089(_0x31c94b,_0x13616a[_0x4dd3c4]);_0x3611b3&&(_0x3611b3[0x0]['next']=_0x3611b3[0x1],_0x3611b3[0x1]['previous']=_0x3611b3[0x0],_0xe4c10['add'](_0x3611b3[0x0]),_0x42b23f['add'](_0x3611b3[0x1]));}}function _0xb99089(_0xe8cc52,_0x2b026d){if(_0xe8cc52['author']['id']!==_0x2b026d['author']['id'])return null;const _0x3623b2=_0xd214dd['get'](_0xe8cc52)(_0xe8cc52,_0x2b026d,_0x25852f['get'](_0xe8cc52),_0x25852f['get'](_0x2b026d));if(!_0x3623b2)return null;return _0xd214dd['get'](_0x2b026d)(_0xe8cc52,_0x2b026d,_0x25852f['get'](_0xe8cc52),_0x25852f['get'](_0x2b026d))?_0x3623b2[0x1]['commentThread']&&_0x3623b2[0x1]['commentThread']['length']?null:_0x3623b2:null;}_0x2956e6['size']&&this['_refreshSuggestionsChain'](_0x2956e6);}['_refreshAttributeSuggestionsChain'](_0x2ec9cc){if(0x0==_0x2ec9cc['length'])return;const _0x466a10=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x368cd5=>'attribute'==_0x368cd5['type']&&_0x368cd5['_isDataLoaded']),_0x15c548=[],_0x433cca=new Map();for(const _0x5c7912 of _0x466a10){const _0x3af57f=_0x3afda7(_0x5c7912['attributes']);_0x433cca['has'](_0x3af57f)||(_0x433cca['set'](_0x3af57f,_0x15c548['length']),_0x15c548['push']([]));const _0x4092a4=_0x433cca['get'](_0x3af57f);_0x15c548[_0x4092a4]['push'](_0x5c7912);}!(function(){_0x15c548['sort']((_0x2f844f,_0x42e406)=>{const _0x279d7f=_0x2f844f[0x0]['createdAt'],_0x3f4e70=_0x42e406[0x0]['createdAt'];return _0x279d7f==_0x3f4e70?_0x2f844f[0x0]['attributes']['groupId']<_0x42e406[0x0]['attributes']['groupId']?-0x1:0x1:_0x279d7f<_0x3f4e70?-0x1:0x1;});for(const _0x2d1c7a of _0x15c548)_0x2d1c7a['sort']((_0x29f7b5,_0x61c6db)=>_0x29f7b5['id']<_0x61c6db['id']?-0x1:0x1);}());for(let _0x229b6a=0x0;_0x229b6a<_0x15c548['length'];_0x229b6a++){if(0x0==_0x15c548[_0x229b6a]['length'])continue;const _0x2d1752=[];for(let _0x220b5a=_0x229b6a+0x1;_0x220b5a<_0x15c548['length'];_0x220b5a++)0x0!=_0x15c548[_0x220b5a]['length']&&_0x43756f(_0x15c548[_0x229b6a],_0x15c548[_0x220b5a])&&_0x2d1752['push'](_0x220b5a);for(const _0x118325 of _0x2d1752)_0x15c548[_0x229b6a]=_0x15c548[_0x229b6a]['concat'](_0x15c548[_0x118325]),_0x15c548[_0x118325]=[];}for(const _0x5d91cd of _0x15c548)for(let _0xa838e8=0x0;_0xa838e8<_0x5d91cd['length'];_0xa838e8++)_0x5d91cd[_0xa838e8]['next']=_0x5d91cd[_0xa838e8+0x1]||null;for(const _0x2771ca of _0x15c548)for(let _0x2c41e0=0x0;_0x2c41e0<_0x2771ca['length'];_0x2c41e0++)_0x2771ca[_0x2c41e0]['previous']=_0x2771ca[_0x2c41e0-0x1]||null;function _0x43756f(_0x391644,_0x53350e){if(_0x391644[0x0]['attributes']['groupId']!==_0x53350e[0x0]['attributes']['groupId']&&_0x391644[0x0]['author']!==_0x53350e[0x0]['author'])return!0x1;if(!function(_0x1cc320,_0x35c9cd){if(!_0x1cc320['hasComments']&&!_0x35c9cd['hasComments'])return!0x0;if(_0x1cc320['hasComments']&&_0x35c9cd['hasComments'])return!0x1;if(_0x1cc320['hasComments']&&_0x35c9cd['createdAt']<_0x1cc320['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x35c9cd['hasComments']&&_0x1cc320['createdAt']<_0x35c9cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x391644[0x0],_0x53350e[0x0]))return!0x1;const _0x2c2721=Bt(_0x391644[0x0]['attributes'],'groupId'),_0x260ac4=Bt(_0x53350e[0x0]['attributes'],'groupId');if(!_0x4d68c9(_0x2c2721,_0x260ac4))return!0x1;return!!_0x391644['every'](_0x47462e=>_0x53350e['some'](_0x1dfa4b=>_0x47462e['getFirstRange']()['isEqual'](_0x1dfa4b['getFirstRange']())))&&_0x53350e['every'](_0x219c8b=>_0x391644['some'](_0x25499d=>_0x219c8b['getFirstRange']()['isEqual'](_0x25499d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x56cba6){const _0x3161ad=Array['from'](_0x56cba6),_0x573e4d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x222dbd=_0x573e4d['filter'](_0x35f586=>!_0x56cba6['has'](_0x35f586)),_0x8a2fd2=new Map(_0x3161ad['map'](_0x4ea079=>[_0x4ea079,this['_suggestionFactory']['getSuggestionCallback'](_0x4ea079['type'],_0x4ea079['subType'],'join')])),_0x563c35=new Map(_0x573e4d['map'](_0x1199fa=>[_0x1199fa,_0x1199fa['getRanges']()]));for(let _0x36fe44=0x0;_0x36fe44<_0x3161ad['length'];_0x36fe44++){if(_0x2cdef1(this,_0x3161ad[_0x36fe44],_0x3161ad,_0x36fe44+0x1))return!0x0;}for(let _0x2519ef=0x0;_0x2519ef<_0x3161ad['length'];_0x2519ef++){if(_0x2cdef1(this,_0x3161ad[_0x2519ef],_0x222dbd,0x0))return!0x0;}return!0x1;function _0x2cdef1(_0x207e6f,_0x4b64a5,_0x1f3c57,_0x4c2902){for(let _0x3d34f5=_0x4c2902;_0x3d34f5<_0x1f3c57['length'];_0x3d34f5++){const _0x1042ab=_0x1f3c57[_0x3d34f5];if(_0x1042ab['type']!==_0x4b64a5['type']||_0x1042ab['author']['id']!==_0x4b64a5['author']['id']||_0x1042ab['subType']!==_0x4b64a5['subType'])continue;if(!Pt(_0x4b64a5,_0x1042ab,['groupId']))continue;if('attribute'==_0x4b64a5['type']&&_0x4b64a5['data']['oldValue']!=_0x1042ab['data']['oldValue'])continue;if('attribute'==_0x4b64a5['type']&&_0x207e6f['_isBlockAttribute'](_0x4b64a5['data']['key']))continue;if('formatBlock'==_0x4b64a5['type']){const _0x388ca2=_0x207e6f['editor']['model'],_0x248048=_0x4b64a5['getContainedElement']();if(_0x248048&&(_0x388ca2['schema']['isObject'](_0x248048)||_0x388ca2['schema']['isLimit'](_0x248048)))continue;}const _0x14670e=_0x8a2fd2['get'](_0x4b64a5),_0x3b44ca=_0x563c35['get'](_0x4b64a5),_0x2f7482=_0x563c35['get'](_0x1042ab),_0x5195b4=_0x4b64a5['commentThread']&&_0x4b64a5['commentThread']['length'],_0x50d74c=_0x1042ab['commentThread']&&_0x1042ab['commentThread']['length'];if(!_0x5195b4&&_0x14670e(_0x2f7482,_0x3b44ca))return _0x207e6f['_joinSuggestions'](_0x1042ab,_0x4b64a5),_0x563c35['delete'](_0x4b64a5),!0x0;if(!_0x50d74c&&_0x14670e(_0x3b44ca,_0x2f7482))return _0x207e6f['_joinSuggestions'](_0x4b64a5,_0x1042ab),_0x563c35['delete'](_0x1042ab),!0x0;}return!0x1;}}['_joinSuggestions'](_0x425a7c,_0x19b2a5){if(_0x425a7c['isMultiRange']){for(const _0x1ae174 of _0x19b2a5['getRanges']())_0x425a7c['addRange'](_0x1ae174);}else{const _0x49e58e=_0x19b2a5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x425a7c,this['_model']['createRange'](_0x425a7c['getFirstRange']()['start'],_0x49e58e));}_0x19b2a5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x428949,_0xce001c){const _0x69fe07=_0x428949['startsWith']('format')||_0x428949['startsWith']('attribute')?'FORMATTING':_0x428949['toUpperCase']();return o(this['editor']['locale'],_0xce001c+'_'+_0x69fe07+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x47a9fb=this['editor'];if(!_0x47a9fb['ui'])return;const {ariaLiveAnnouncer:_0x1e4aa6}=_0x47a9fb['ui'];_0x4fa74d(this['_model'],({left:_0x398be5,entered:_0x113ec0})=>{for(const _0x341f13 of _0x398be5){const {group:_0x3df001,type:_0x465c1e}=this['_splitMarkerName'](_0x341f13['name']);if('suggestion'===_0x3df001){_0x1e4aa6['announce'](this['_getMarkerAnnouncementText'](_0x465c1e,'LEAVE'));break;}}for(const _0x5c703e of _0x113ec0){const {group:_0x4187c4,type:_0x137c24}=this['_splitMarkerName'](_0x5c703e['name']);if('suggestion'===_0x4187c4){_0x1e4aa6['announce'](this['_getMarkerAnnouncementText'](_0x137c24,'ENTER'));break;}}});}['_processAttributeChanges'](_0x344399){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a12af=this['editor'],_0x5debe6=_0x2a12af['model']['document']['differ']['getChanges']();if(0x0==_0x5debe6['length'])return!0x1;const _0x4f237f=[],_0x3a9afc=_0x5debe6['filter'](_0x392be5=>'attribute'==_0x392be5['type']),_0x344bac=_0x5debe6['filter'](_0x1f9817=>'insert'==_0x1f9817['type']&&'$text'!=_0x1f9817['name']),_0x3057be=_0x5debe6['filter'](_0x245e6c=>'remove'==_0x245e6c['type']&&'$text'!=_0x245e6c['name']);for(const _0x1d0fc2 of _0x3a9afc)_0x4f237f['push']({'key':_0x1d0fc2['attributeKey'],'newValue':_0x1d0fc2['attributeNewValue'],'oldValue':_0x1d0fc2['attributeOldValue'],'range':Ot(_0x1d0fc2['range'],_0x2a12af['model'])});for(const _0x5badb2 of _0x344bac){const _0x503450=_0x3057be['find'](_0x8bdfec=>_0x8bdfec['position']['isEqual'](_0x5badb2['position']));_0x503450&&_0x4f237f['push']({'key':m,'newValue':_0x5badb2['name'],'oldValue':_0x503450['name'],'range':_0x2a12af['model']['createRangeOn'](_0x5badb2['position']['nodeAfter'])});}return 0x0!=_0x4f237f['length']&&this['_reduceExistingSuggestions'](_0x344399,_0x4f237f);}['_processAttributeSuggestions'](_0xa8c5a2){let _0xd7aac1=!0x1;const _0x31f4a5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x516389=>_0x516389['data']['newRange']&&_0x516389['name']['startsWith']('suggestion:attribute:'));for(const _0x1e932d of _0x31f4a5){const {subType:_0x3532d2,id:_0x1eb693}=this['_splitMarkerName'](_0x1e932d['name']),_0x79fe07=_0x3532d2['split']('|')[0x0];for(const _0x1ee668 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1ee668['id']!=_0x1eb693&&'attribute'==_0x1ee668['type']&&_0x1ee668['data']&&_0x1ee668['data']['key']==_0x79fe07&&_0x1ee668['getFirstRange']()['isIntersecting'](_0x1e932d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1ee668,_0x1e932d['data']['newRange'],_0xa8c5a2),_0xd7aac1=!0x0);}return _0xd7aac1;}['_recordAttributeChanges'](_0x174ac3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x174ac3();}['_isRegisteredAttribute'](_0x4958ed){const _0x5bfa19=this['_isBlockAttribute'](_0x4958ed),_0x51f1d4=this['_inlineAttributeKeys']['has'](_0x4958ed);return _0x5bfa19||_0x51f1d4;}['_reduceExistingSuggestions'](_0x478a73,_0x463ac1){if(0x0==_0x463ac1['length'])return!0x1;let _0x1b194e=!0x1;for(const _0x193725 of _0x463ac1){const _0x4129e1=this['_findSuggestions'](_0x193725['range'],'attribute')['filter'](_0x436cd4=>!_0x436cd4['meta']['isNextTo'])['map'](_0x121fb2=>_0x121fb2['suggestion']),_0x5012d5=_0x3afda7({'newValue':_0x193725['newValue']});_0x4129e1['filter'](_0xb69321=>{const [_0x355453,_0x1aa021]=_0xb69321['subType']['split']('|');return _0x355453==_0x193725['key']&&_0x1aa021!=_0x5012d5;})['forEach'](_0x9d6442=>{this['_reduceSuggestionAttributeRange'](_0x9d6442,_0x193725['range'],_0x478a73),_0x1b194e=!0x0;});}return _0x1b194e;}['_reduceSuggestionAttributeRange'](_0x1b8376,_0x37efe5,_0xc0bec){const _0x1e91f2=_0x1b8376['getFirstRange']()['getDifference'](_0x37efe5);0x0!==_0x1e91f2['length']?0x1!==_0x1e91f2['length']?this['_breakSuggestionMarker'](_0x1b8376,_0x37efe5['start'],_0x37efe5['end']):this['_setSuggestionRange'](_0x1b8376,_0x1e91f2[0x0]):_0xc0bec['removeMarker'](_0x1b8376['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x33ab87){this['_editor']=_0x33ab87,this['_model']=_0x33ab87['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3ec500,_0x5c9e3a,_0xdf4f15,_0x203afc,_0x347a82,_0x5ef20e){return new u(this['_model'],{'type':_0x3ec500,'subType':_0x5c9e3a,'id':_0xdf4f15,'author':_0x203afc,'creator':_0x203afc,'attributes':_0x347a82,'onAttributesChange':_0x5ef20e,'onAccept':(..._0x1952c6)=>this['getSuggestionCallback'](_0x3ec500,_0x5c9e3a,'accept')(..._0x1952c6),'onDiscard':(..._0x3bda57)=>this['getSuggestionCallback'](_0x3ec500,_0x5c9e3a,'discard')(..._0x3bda57)});}['registerCustomCallback'](_0x373f8b,_0x5c938c,_0x145a62,_0x3402d8){const _0x3ceaa6=_0x373f8b+':'+_0x5c938c+':'+_0x145a62;this['_customCallbacks']['set'](_0x3ceaa6,_0x3402d8);}['getSuggestionCallback'](_0x18386e,_0x376d82,_0x3956de){const _0x4593f0=_0x18386e+':'+_0x376d82+':'+_0x3956de;return this['_customCallbacks']['get'](_0x4593f0)||this['_defaultCallbacks']['get'](_0x18386e+':'+_0x3956de);}['_registerDefaultCallbacks'](){const _0x4f10e2=()=>!0x1,_0x367754=_0x3605d0=>{_0x3605d0['sort']((_0x3db8b9,_0x1a1862)=>_0x3db8b9['start']['isBefore'](_0x1a1862['start'])?0x1:-0x1),this['_model']['change'](_0x23d17f=>{for(const _0x1176ad of _0x3605d0){let _0x42ec73;_0x42ec73=_0x1176ad['end']['isAtEnd']&&_0x1176ad['end']['parent']==_0x1176ad['start']['nodeAfter']?_0x23d17f['createSelection'](_0x1176ad['start']['nodeAfter'],'on'):_0x23d17f['createSelection'](_0x1176ad),this['_model']['deleteContent'](_0x42ec73,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5d776f=(_0xb9b443,_0x2c47bc)=>{_0x2c47bc&&this['_model']['change'](_0x9041b6=>{const {commandName:_0x44d34d,commandParams:_0xf071c5=[]}=_0x2c47bc,_0xe27c30=_0xb9b443['map'](_0x8bfd49=>(Tt(_0x8bfd49)&&(_0x8bfd49=this['_model']['createRange'](_0x8bfd49['end'])),_0x8bfd49))['filter'](_0x699a3a=>'$graveyard'!==_0x699a3a['root']['rootName']);if(_0xe27c30['length']<0x1)return;const _0x4e3377=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x48208b=>_0x41bd9b['fromRange'](_0x48208b));_0x9041b6['setSelection'](_0xe27c30);for(const _0x54672b of this['_editor']['commands']['commands']())_0x54672b['refresh']();_0xf071c5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x44d34d,..._0xf071c5);const _0x54cb44=_0x4e3377['filter'](_0x4237d7=>'$graveyard'!=_0x4237d7['root']['rootName']);_0x54cb44['length']>0x0&&_0x9041b6['setSelection'](_0x54cb44);for(const _0x4c7bfd of _0x4e3377)_0x4c7bfd['detach']();});},_0x310986=(_0x3f017a,_0x40f31c)=>0x1==_0x3f017a['length']&&0x1==_0x40f31c['length']&&_0x3f017a[0x0]['end']['isEqual'](_0x40f31c[0x0]['start']),_0x337325=(_0x2b6ed3,_0x503a1b,_0xfb64d4,_0xa91e73)=>Ft(_0x2b6ed3,_0x503a1b,_0xfb64d4,_0xa91e73,this['_model'])?[_0x2b6ed3,_0x503a1b]:Ft(_0x503a1b,_0x2b6ed3,_0xa91e73,_0xfb64d4,this['_model'])?[_0x503a1b,_0x2b6ed3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4f10e2),this['_defaultCallbacks']['set']('insertion:discard',_0x367754),this['_defaultCallbacks']['set']('insertion:join',_0x310986),this['_defaultCallbacks']['set']('insertion:chain',_0x337325),this['_defaultCallbacks']['set']('deletion:accept',_0x367754),this['_defaultCallbacks']['set']('deletion:discard',_0x4f10e2),this['_defaultCallbacks']['set']('deletion:join',_0x310986),this['_defaultCallbacks']['set']('deletion:chain',_0x337325),this['_defaultCallbacks']['set']('formatInline:accept',_0x5d776f),this['_defaultCallbacks']['set']('formatInline:discard',_0x4f10e2),this['_defaultCallbacks']['set']('formatInline:join',_0x310986),this['_defaultCallbacks']['set']('formatInline:chain',_0x4f10e2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5d776f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4f10e2),this['_defaultCallbacks']['set']('formatBlock:join',_0x310986),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4f10e2),this['_defaultCallbacks']['set']('attribute:accept',_0x4f10e2),this['_defaultCallbacks']['set']('attribute:discard',(_0x427ff5,_0x2b2735)=>{if(!_0x2b2735)return;const _0x2d1e1a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x19e0b8=>{if(_0x2b2735['key']==m)for(const _0x34de2e of _0x427ff5){const _0xb61a95=_0x34de2e['start']['nodeAfter'],_0x4e3ea2=_0x2b2735['oldValue'];_0x19e0b8['rename'](_0xb61a95,_0x4e3ea2);}else{if(_0x2d1e1a['_isBlockAttribute'](_0x2b2735['key'])){for(const _0x3840f0 of _0x427ff5)void 0x0!==_0x2b2735['oldValue']?_0x19e0b8['setAttribute'](_0x2b2735['key'],_0x2b2735['oldValue'],_0x3840f0['start']['nodeAfter']):_0x19e0b8['removeAttribute'](_0x2b2735['key'],_0x3840f0['start']['nodeAfter']);}else{for(const _0x386624 of _0x427ff5)_0x2b2735['oldValue']?_0x19e0b8['setAttribute'](_0x2b2735['key'],_0x2b2735['oldValue'],_0x386624):_0x19e0b8['removeAttribute'](_0x2b2735['key'],_0x386624);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x310986);}}function Rt(_0x4575e2,_0x1b9058,_0x524d22){for(const _0x54a024 of _0x1b9058['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x54a024['root']==_0x54a024)return!0x1;if(!_0x524d22['containsItem'](_0x54a024))return!0x1;if(_0x4575e2['isObject'](_0x54a024)||_0x4575e2['isLimit'](_0x54a024))return!0x0;}return!0x1;}function Tt(_0x5ee9dd){return _0x5ee9dd['end']['parent']==_0x5ee9dd['start']['nodeAfter']&&_0x5ee9dd['end']['isAtStart'];}function Et(_0x466cae,_0x3be4bd,_0x3166f4,_0x4ebe6e){const _0x179618=_0x2814e9=>!_0x2814e9['item']['is']('$textProxy')&&!_0x4ebe6e['isObject'](_0x2814e9['item']),_0x56e1e3=_0x466cae['start']['getLastMatchingPosition'](_0x179618),_0x55255e=_0x466cae['end']['getLastMatchingPosition'](_0x179618,{'direction':'backward'});return(!_0x466cae['start']['isEqual'](_0x56e1e3)||!_0x466cae['end']['isEqual'](_0x55255e))&&(_0x56e1e3['isBefore'](_0x55255e)?_0x3166f4['updateMarker'](_0x3be4bd,{'range':_0x3166f4['createRange'](_0x56e1e3,_0x55255e)}):_0x3166f4['removeMarker'](_0x3be4bd),!0x0);}function Vt(_0x1bcf1d){return _0x3afda7(_0x1bcf1d);}function Ut(_0x15cd9a){const _0xa2536c=_0x15cd9a['start']['nodeAfter'];return _0xa2536c&&_0xa2536c['is']('element');}function Ot(_0xe3ddc5,_0x453790){return null==_0xe3ddc5['end']['nodeBefore']&&_0xe3ddc5['end']['parent']==_0xe3ddc5['start']['nodeAfter']?Gt(_0xe3ddc5['start']['nodeAfter'],_0x453790):_0xe3ddc5;}function Gt(_0x1bc3f8,_0x508543){const _0x5abe36=_0x508543['schema']['isObject'](_0x1bc3f8)||_0x508543['schema']['isSelectable'](_0x1bc3f8);return _0x508543['createRange'](_0x508543['createPositionAt'](_0x1bc3f8,'before'),_0x5abe36?_0x508543['createPositionAfter'](_0x1bc3f8):_0x508543['createPositionAt'](_0x1bc3f8,'end'));}function Ft(_0x560d10,_0x507664,_0x470506,_0x47743a,_0x519cea){if(!Pt(_0x560d10,_0x507664))return!0x1;if(_0x470506['end']['isEqual'](_0x47743a['start']))return!0x0;if(_0x560d10['type']!=_0x507664['type'])return!0x1;if(!_0x470506['end']['isTouching'](_0x47743a['start']))return!0x1;const _0x84b522=_0x519cea['createRange'](_0x470506['end'],_0x47743a['start'])['getWalker']();for(const _0x48234c of _0x84b522)if(['elementStart','elementEnd']['includes'](_0x48234c['type'])&&_0x519cea['schema']['isLimit'](_0x48234c['item']))return!0x1;return!0x0;}function Pt(_0xf72526,_0x544ee1,_0x1f0a38=[]){return!(!_0xf72526['_isDataLoaded']||!_0x544ee1['_isDataLoaded'])&&_0x4d68c9(Bt(_0xf72526['attributes'],_0x1f0a38),Bt(_0x544ee1['attributes'],_0x1f0a38));}function Lt(_0x312bfd,_0x28a882){const _0x69e90c=Ht(_0x312bfd['attributes']),_0x2cdff0=Ht(_0x28a882);if(!_0x312bfd['_isDataLoaded'])return!0x1;for(const _0x28aaa0 of Object['keys'](_0x2cdff0))if(!_0x4d68c9(_0x69e90c[_0x28aaa0],_0x2cdff0[_0x28aaa0]))return!0x1;return!0x0;}function Ht(_0x481ab8){const _0x49ceec=Object['assign']({},_0x481ab8);return delete _0x49ceec['skipNestingCheck'],delete _0x49ceec['tablePasteChainId'],_0x49ceec;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xf13080(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x178aa6,_0x32a57a,_0xf22e5f,_0x111cc0){super(),this['model']=_0x32a57a,this['view']=_0xf22e5f,this['commentThreadController']=_0x111cc0,this['_editor']=_0x178aa6,this['_acceptCommand']=_0x178aa6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x178aa6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4e242d,_0x3b5427)=>_0x4e242d||_0x3b5427),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd52a4=>_0xd52a4&&this['_editor']['model']['canEditAt'](_0x32a57a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x185ef4=>_0x185ef4&&this['_editor']['model']['canEditAt'](_0x32a57a['getRanges']())),this['_pendingAction']=null,_0xf22e5f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf22e5f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf22e5f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf22e5f,'change:isDirty',()=>{_0xf22e5f['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x56bb33=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56bb33);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xf227a5{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3d3f77,_0x10a1e3,_0x2018fa,_0x38c35c){super(_0x3d3f77),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x10a1e3['authoredAt']),this['bind']('authoredAt')['to'](_0x10a1e3),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x10a1e3,this['_localUser']=_0x2018fa,this['_config']=_0x38c35c,_0x38c35c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3dce02}=this['_config'];this['commentsListView']=new _0x3dce02(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',_0x595101=>_0x595101+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2a1430,_0x25c030)=>_0x2a1430||!!_0x25c030);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x41c93c}=this['_config'],_0x1c6171=new _0x41c93c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x489850=_0x1c6171['commentInputView'];return _0x1c6171['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x489850,'value',(_0x5a2dd1,_0x321843,_0xb4dfa)=>!!_0xb4dfa||_0x5a2dd1&&!_0x321843),_0x489850['on']('submit',(_0x192ca5,_0x4e3a77)=>{this['fire']('addComment',_0x4e3a77),_0x489850['editor']['setData']('');}),_0x489850['on']('cancel',()=>this['focus']()),_0x489850['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c6171;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2aea14,_0x2557ab,_0x9103f7,_0x20945e){super(_0x2aea14,_0x2557ab,_0x9103f7,_0x20945e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1f1cf6=>_0x1f1cf6&&_0x1f1cf6[0x0]?_0x1f1cf6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x142686,_0x206928)=>{let _0x5593e2='';for(const _0x23d3b1 of _0x142686)_0x5593e2+='<p>'+ds(_0x23d3b1['content'],_0x23d3b1['color'])+'</p>';return _0x206928?_0x5593e2:_0x1b2c16(_0x5593e2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2aea14,'Accept\x20suggestion'),_0x4fa791['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2aea14,'Discard\x20suggestion'),_0x4fa791['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x17c415(_0x2aea14,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3baeb1=this['bindTemplate'],_0x3c50e3=[{'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':_0x3baeb1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3baeb1['to']('authoredAt',_0x12aebe=>this['_config']['formatDateTime'](_0x12aebe))}]}]},{'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']&&_0x3c50e3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x310a87={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3baeb1['if']('isActive','ck-suggestion-wrapper--active'),_0x3baeb1['to']('type',_0x4a86a0=>'ck-suggestion-'+_0x4a86a0),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':_0x3c50e3}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x310a87['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)),_0x310a87;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xdae010,_0x5ec478,_0x4b8902)=>{this['_descriptionElement']['innerHTML']=_0x4b8902;});}['_createButton'](_0x79157f,_0x4e7bf2,_0x4038cc,_0x5dd77f,_0x14a31){const _0x247fcf=new _0x267ca4(this['locale']);return _0x247fcf['set']({'label':_0x79157f,'icon':_0x4e7bf2,'tooltip':!0x0,'tooltipPosition':_0x14a31}),_0x247fcf['extendTemplate']({'attributes':{'class':_0x4038cc}}),_0x247fcf['on']('execute',()=>{this['fire'](_0x5dd77f,this['_model']['id']);}),_0x247fcf;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x486a40,_0x4252fa){let _0x1f6ae9='';return _0x1f6ae9+=_0x486a40['split']('*')['map']((_0x424f83,_0x1b642d)=>_0x1b642d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x424f83)+'</span>':us(_0x424f83))['join'](''),_0x4252fa&&(_0x1f6ae9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4252fa['value']+'\x22\x20title=\x22'+_0x4252fa['title']+'\x22></span>'),_0x1f6ae9;}function us(_0x54a460){const _0x15394a=document['createElement']('span');return _0x15394a['innerText']=_0x54a460,_0x15394a['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 _0x426b8a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2a96c3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2f864a){super(_0x2f864a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x39e02f=this['editor']['config'];_0x39e02f['define']('trackChanges.SuggestionThreadView',ne),_0x39e02f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x39e02f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x540384,_0x40d7b7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x26884b,_0x28e6e5]of this['_handleControllerBuffer']){const _0x3ec9ce=this['_suggestionToController']['has'](_0x26884b);_0x3ec9ce||_0x28e6e5?_0x3ec9ce&&_0x28e6e5&&this['_destroyController'](_0x26884b):this['_initializeController'](_0x26884b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x540384,_0x40d7b7);}['init'](){const _0x48efc9=this['editor'],_0x357ff1=_0x48efc9['plugins']['get']('TrackChangesEditing'),_0x4235c0=_0x48efc9['plugins']['get']('Annotations'),_0x16b10a=_0x48efc9['plugins']['get']('EditorAnnotations'),_0x51038f=_0x48efc9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16b10a['addSourceCollector'](()=>{const _0x2af53d=[];for(const [_0x5dceda,_0x277ac4]of Array['from'](this['_suggestionToController'])){const _0x3aa61c=_0x5dceda['getAllAdjacentSuggestions'](),_0x28f6b8=[];for(const _0x4a5a95 of _0x3aa61c){if(!_0x4a5a95['isInContent'])continue;if(_0x4a5a95['isMultiRange']){_0x28f6b8['push'](..._0x4a5a95['getRanges']());continue;}const _0x552faf=_0x4a5a95['getFirstRange']();if(_0x28f6b8['length']>0x0){const _0xf43c02=_0x28f6b8[0x0]['getJoined'](_0x552faf);if(_0xf43c02){_0x28f6b8[0x0]=_0xf43c02;continue;}}_0x28f6b8['push'](_0x552faf);}_0x2af53d['push']([_0x277ac4['view'],_0x28f6b8]);}return _0x2af53d;}),this['listenTo'](_0x357ff1,'suggestionLoaded',(_0x4eae6c,_0x2a3e90)=>{this['listenTo'](_0x2a3e90,'change:previous',(_0x1acd8d,_0x4211ff,_0x1c7342,_0x18ee9f)=>{_0x2a3e90['isInContent']&&(null==_0x1c7342?(this['_updateController'](_0x18ee9f['head']),this['_handleSuggestionControllerDelayed'](_0x2a3e90,!0x1)):(this['_updateController'](_0x1c7342['head']),null==_0x18ee9f&&this['_handleSuggestionControllerDelayed'](_0x2a3e90,!0x0)));}),null!==_0x2a3e90['previous']?this['_updateController'](_0x2a3e90['head']):this['_handleSuggestionControllerDelayed'](_0x2a3e90,!0x1);}),this['listenTo'](_0x357ff1,'suggestionUnloaded',(_0x39df00,_0x3d5450,_0x557a01)=>{this['stopListening'](_0x3d5450,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d5450),this['_suggestionToController']['has'](_0x3d5450)&&this['_destroyController'](_0x3d5450),_0x557a01&&this['_updateController'](_0x557a01['head']);}),this['listenTo'](_0x357ff1,'suggestionChanged',(_0xf65905,_0x25a720)=>{this['_updateController'](_0x25a720);}),this['listenTo'](_0x4235c0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x51038f,'addComment',(_0x16a5d6,{threadId:_0x48f39,isFromAdapter:_0x347437})=>{if(_0x347437||!_0x357ff1['hasSuggestion'](_0x48f39))return;const _0x18fec2=_0x357ff1['getSuggestion'](_0x48f39);this['_suggestionToController']['get'](_0x18fec2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5d9ea8=this['editor']['plugins']['get']('Annotations'),_0x2c97f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5209fd=Array['from'](_0x5d9ea8['activeAnnotations'],_0x2fe07d=>_0x2fe07d['innerView'])['filter'](_0x4d778d=>this['_viewToController']['has'](_0x4d778d)),_0x20a6fa=[];for(const _0x17e926 of _0x5209fd){const _0x19f5b9=this['_viewToController']['get'](_0x17e926)['model']['getAllAdjacentSuggestions']();_0x20a6fa['push'](..._0x19f5b9['reduce']((_0x3ebefc,_0x5bd97a)=>[..._0x3ebefc,..._0x5bd97a['getMarkerNames']()],[]));}_0x2c97f6['activeMarkers']=_0x20a6fa;}['_addUIComponentsToFactory'](){const _0x522dae=this['editor'],_0x1a056e=_0x522dae['locale'],_0x58ea72=o(_0x1a056e,'Track\x20changes'),_0x26c8e3=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x58ea72,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a056e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a056e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a056e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1a056e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5d96b0 of _0x26c8e3)if(ae(_0x5d96b0)){const _0x200af9=_0x522dae['commands']['get'](_0x5d96b0['model']['commandName']);_0x5d96b0['model']['bind']('isOn','isEnabled')['to'](_0x200af9,'value','isEnabled');}_0x522dae['ui']['componentFactory']['add']('trackChanges',_0x24d284=>this['_createToolbarButton'](_0x24d284,_0x26c8e3,_0x58ea72)),_0x522dae['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4419c3=>this['_createMenuBarMenu'](_0x4419c3,_0x26c8e3,_0x58ea72));}['_createToolbarButton'](_0x1af7cf,_0x28b847,_0x3ae033){const _0x1dad42=zt(_0x1af7cf,Zt),_0x3b343c=this['editor']['commands']['get']('trackChanges');_0x1dad42['buttonView']['set']({'tooltip':_0x3ae033,'label':_0x3ae033,'icon':ie}),_0x1dad42['buttonView']['bind']('isOn')['to'](_0x3b343c,'value'),_0x1dad42['buttonView']['on']('execute',()=>{_0x3b343c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1dad42,_0x28b847,{'role':'menu'});const _0x1c8ccd=[];for(const _0xf24dbd of _0x28b847)ae(_0xf24dbd)&&_0x1c8ccd['push'](this['editor']['commands']['get'](_0xf24dbd['model']['commandName']));const _0x1cd808=_0x1dad42['buttonView'];return _0x1cd808['actionView']['unbind']('isEnabled'),_0x1cd808['arrowView']['unbind']('isEnabled'),_0x1cd808['actionView']['bind']('isEnabled')['to'](_0x3b343c,'isEnabled'),_0x1cd808['arrowView']['bind']('isEnabled')['toMany'](_0x1c8ccd,'isEnabled',(..._0x36d0e2)=>_0x36d0e2['some'](_0x2595e9=>_0x2595e9)),_0x1dad42['on']('execute',_0x47eb06=>{this['editor']['execute'](_0x47eb06['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1dad42;}['_createMenuBarMenu'](_0x232139,_0x59e598,_0x33e19c){const _0x3d4d88=new Kt(_0x232139),_0x23d852=this['editor']['commands']['get']('trackChanges');_0x3d4d88['buttonView']['set']({'label':_0x33e19c,'icon':ie});const _0x289fb6=new Qt(_0x232139);for(const _0x359ce0 of _0x59e598){if('separator'==_0x359ce0['type']){_0x289fb6['items']['add'](new Jt(_0x232139));continue;}const _0x2821fe=new Xt(_0x232139,_0x3d4d88),_0x4b610b=new Yt(_0x232139),_0x4f21ab=_0x359ce0['model'];_0x4b610b['bind'](...Object['keys'](_0x4f21ab))['to'](_0x4f21ab),_0x4b610b['delegate']('execute')['to'](_0x3d4d88),_0x4b610b['on']('execute',()=>{this['editor']['execute'](_0x4f21ab['commandName']),this['editor']['editing']['view']['focus']();}),_0x2821fe['children']['add'](_0x4b610b),_0x289fb6['items']['add'](_0x2821fe);}return _0x3d4d88['bind']('isEnabled')['to'](_0x23d852,'isEnabled'),_0x3d4d88['panelView']['children']['add'](_0x289fb6),_0x3d4d88;}['_initializeController'](_0x2724da){const _0x8701c5=this['editor'],_0x156e92=_0x8701c5['config'],_0x9d9863=_0x8701c5['plugins']['get']('Annotations'),_0xa04881=_0x8701c5['plugins']['get']('CommentsRepository'),_0x1b3270=_0x8701c5['plugins']['get']('EditorAnnotations'),_0x458946=_0x8701c5['plugins']['get'](_0x2a96c3)['me'],_0x41b824=_0x156e92['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x12e475,CommentThreadInputView:_0x37e842}=_0x8701c5['plugins']['get']('CommentsUI');let _0x1ee3f8,_0x4f4557;this['_annotationViews']['has'](_0x2724da['id'])?(_0x4f4557=this['_annotationViews']['get'](_0x2724da['id']),_0x1ee3f8=_0x4f4557['mainView']):(_0x1ee3f8=new _0x41b824(_0x8701c5['locale'],_0x2724da,_0x458946,{'disableComments':this['_disableComments'],'editorConfig':_0x156e92['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x156e92['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x156e92['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x156e92['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x19083f(_0x156e92['get']('locale')),'CommentView':_0x156e92['get']('comments')['CommentView'],'CommentsListView':_0x12e475,'CommentThreadInputView':_0x37e842}),_0x1ee3f8['acceptButton']['on']('execute',()=>{_0x8701c5['editing']['view']['focus']();}),_0x1ee3f8['discardButton']['on']('execute',()=>{_0x8701c5['editing']['view']['focus']();}),_0x4f4557=_0x9d9863['createAnnotationView'](this['editor']['locale'],_0x1ee3f8),_0x4f4557['bind']('isDirty')['to'](_0x1ee3f8,'isDirty'),_0x4f4557['bind']('length')['to'](_0x1ee3f8),_0x4f4557['bind']('type')['to'](_0x1ee3f8,'type',_0x124096=>'suggestion-'+_0x124096),this['_annotationViews']['set'](_0x2724da['id'],_0x4f4557));const _0x4d7a98=_0xa04881['createCommentThreadController'](_0x2724da['commentThread'],_0x1ee3f8),_0xa82227=new oe(_0x8701c5,_0x2724da,_0x1ee3f8,_0x4d7a98),_0x5f5be1=_0x2724da['getAllAdjacentSuggestions']()['filter'](_0x37219e=>_0x37219e['isInContent']);_0x1ee3f8['descriptionParts']=_0x8701c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5f5be1),this['_suggestionToController']['set'](_0x2724da,_0xa82227),this['_viewToController']['set'](_0x1ee3f8,_0xa82227);const _0x2f45b0=_0x9d9863['createAnnotation']({'view':_0x4f4557,'target':()=>{const _0x507d99=[],_0x24ae94=_0x2724da['getAllAdjacentSuggestions']()['filter'](_0x2bc2dc=>_0x2bc2dc['isInContent']);for(const _0x5abc0a of _0x24ae94)_0x507d99['push'](..._0x5abc0a['getMarkers']());return _0x31892f(_0x8701c5['editing'],_0x507d99);},'type':()=>'suggestion-'+_0xa82227['view']['type']});_0xa04881['_bindAnnotationToEditors'](_0x1ee3f8,_0x2f45b0),_0x9d9863['add'](_0x2f45b0),_0x1b3270['registerAnnotation'](_0x2f45b0);}['_destroyController'](_0x346a7e){const _0x1e8ce0=this['editor']['plugins']['get']('CommentsRepository'),_0x298c8d=this['editor']['plugins']['get']('Annotations'),_0x5809fb=this['_suggestionToController']['get'](_0x346a7e),_0x44df2e=_0x5809fb['view'],_0x12d48=_0x298c8d['getByInnerView'](_0x44df2e);_0x1e8ce0['_unbindEditors'](_0x44df2e),_0x12d48&&_0x298c8d['remove'](_0x12d48),this['_suggestionToController']['delete'](_0x346a7e),this['_viewToController']['delete'](_0x44df2e),_0x5809fb['destroy']();}['_updateController'](_0x54b8d1){if(!_0x54b8d1['isInContent']||!this['_suggestionToController']['has'](_0x54b8d1))return;const _0x4f8fb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c59b5=this['_suggestionToController']['get'](_0x54b8d1),_0x5003f6=_0x54b8d1['getAllAdjacentSuggestions']();_0x4c59b5['view']['descriptionParts']=_0x4f8fb7['descriptionFactory']['getDescriptions'](_0x5003f6);}['destroy'](){for(const _0x2dbde3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2dbde3);for(const _0x429e83 of this['_annotationViews']['values']())_0x429e83['mainView']['destroy']();super['destroy']();}}function ae(_0x400a75){return'model'in _0x400a75;}class k extends _0x426b8a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4c677f){this['editor']['plugins']['get'](p)['adapter']=_0x4c677f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3f87d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3f87d4);}['getSuggestions']({skipNotAttached:_0x1fd31b=!0x1,toJSON:_0xfe1718=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1fd31b,'toJSON':_0xfe1718});}['getSuggestion'](_0x2fce41){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2fce41);}}const T=['Pagination'];class P extends _0x426b8a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xb06534=this['editor'];if(_0xb06534['config']['define']('trackChangesData.editorCreator',_0x5c585d=>{const _0x17d8a0=_0xb06534['model']['document']['getRootNames']()['reduce']((_0x14bad2,_0x493f70)=>(_0x14bad2[_0x493f70]='',_0x14bad2),{});return _0xb06534['constructor']['create'](_0x17d8a0,_0x5c585d);}),'function'!=typeof _0xb06534['config']['get']('trackChangesData')['editorCreator'])throw new _0x14a443('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xed8d8){return N(this['editor'],!0x0,_0xed8d8);}['getDataWithDiscardedSuggestions'](_0x57c303){return N(this['editor'],!0x1,_0x57c303);}}class D extends _0x426b8a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x319a01){super(_0x319a01),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x4fac26){return void 0x0!==_0x4fac26['getRootsAttributes'];}async function N(_0x5d4af9,_0x4445d9,_0x21f83a){const _0x38fe64=_0xbb4e8c(_0x5d4af9,T);_0x38fe64['plugins']['push'](p,D),_0x38fe64['rootsAttributes']=v(_0x5d4af9)?_0x5d4af9['getRootsAttributes']():void 0x0;const _0x3feadd=document['createDocumentFragment'](),_0xed9796=_0x5d4af9['config']['get']('trackChangesData')['editorCreator'],_0x37292d=await _0xed9796(_0x38fe64,()=>function(_0x3e3b5a){const _0xd87f95=document['createElement']('div');return _0x3e3b5a['appendChild'](_0xd87f95),_0xd87f95;}(_0x3feadd));!function(_0x358272,_0x172245){const _0x86acae=_0x358272['model']['document']['getRootNames']()['reduce']((_0x10b161,_0x1cfc1c)=>(_0x10b161[_0x1cfc1c]=_0x358272['data']['get']({'rootName':_0x1cfc1c}),_0x10b161),{}),_0xc9d4af=_0x358272['plugins']['get']('Users')['users']['map'](_0x46e318=>({'id':_0x46e318['id'],'name':_0x46e318['name']})),_0x3e6eae=_0x358272['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x51968f=_0x358272['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5ebe6a=_0x172245['plugins']['get']('Users'),_0x4f27cb=_0x172245['plugins']['get']('TrackChangesEditing'),_0x1c7e88=_0x172245['plugins']['get']('CommentsRepository');for(const _0x5d0ff3 of _0xc9d4af)_0x5ebe6a['getUser'](_0x5d0ff3['id'])||_0x5ebe6a['addUser'](_0x5d0ff3);_0x5ebe6a['me']||_0x5ebe6a['useAnonymousUser']();for(const _0x1de80 of _0x51968f)_0x1c7e88['addCommentThread'](_0x1de80);for(const _0x25f961 of _0x3e6eae)_0x4f27cb['addSuggestionData'](_0x25f961);_0x172245['data']['set'](_0x86acae);}(_0x5d4af9,_0x37292d),_0x37292d['execute'](_0x4445d9?'acceptAllSuggestions':'discardAllSuggestions');const _0x21d54e=v(_0x37292d)?_0x37292d['getFullData'](_0x21f83a):_0x37292d['data']['get'](_0x21f83a);return await _0x37292d['destroy'](),_0x21d54e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x43d92e,PendingActions as _0x1f91e4,icons as _0xa561ce}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x23a85a,ObservableMixin as _0x13f6f1,uid as _0x6192a1,insertToPriorityArray as _0x38b771,priorities as _0x2ee883,logWarning as _0x223c17,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xeef4a8,View as _0x42574f,ButtonView as _0x443b20,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 _0x1ad8ad,hashObject as _0x44a3ac,surroundingMarkersDetector as _0x1f58ed,trimHtml as _0x4bd8b5,UserView as _0x1f3379,getDateTimeFormatter as _0x31b71b,getAllMarkersDomElementsSorted as _0x1715b0,sanitizeEditorConfig as _0x53a97d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x30a754,LiveRange as _0x48a09a,LivePosition as _0x29181c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x51e3db,toWidget as _0x11aa07}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x186ddd,set as _0x3d228a,isEqual as _0x11068c,unset as _0x3eb8ab,omit as Bt}from'lodash-es';import{Delete as _0x33fb31,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x106f6d,ShiftEnter as _0x476124}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x369e70,_0x205052){super(_0x369e70),this['_enabledCommands']=_0x205052,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x1d0242 of this['editor']['commands']['commands']())_0x1d0242['affectsData']&&!this['_enabledCommands']['has'](_0x1d0242)&&_0x1d0242['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x99fb3d of this['editor']['commands']['commands']())_0x99fb3d['affectsData']&&!this['_enabledCommands']['has'](_0x99fb3d)&&_0x99fb3d['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x52159f,_0x5863cb){super(_0x52159f),this['_suggestions']=_0x5863cb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3de180){const _0x21d477=this['_suggestions']['get'](_0x3de180);if(!_0x21d477)throw new _0x23a85a('track-changes-accept-suggestion-not-found',this);const _0x1a9f6d=_0x21d477['getRanges']();this['editor']['model']['canEditAt'](_0x1a9f6d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x21d477);}}class B extends ts{['_suggestions'];constructor(_0xf49c43,_0x588f66){super(_0xf49c43),this['_suggestions']=_0x588f66,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x13f531){const _0x45c0e0=this['_suggestions']['get'](_0x13f531);if(!_0x45c0e0)throw new _0x23a85a('track-changes-discard-suggestion-not-found',this);const _0x397c35=_0x45c0e0['getRanges']();this['editor']['model']['canEditAt'](_0x397c35)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x45c0e0);}}function ss(_0x22e309){return _0x22e309['sort']((_0x2f174d,_0x5215af)=>'deletion'==_0x2f174d['type']&&'deletion'!=_0x5215af['type']?-0x1:'deletion'!=_0x2f174d['type']&&'deletion'==_0x5215af['type']?0x1:0x0);}function to(_0x39307a,_0x5c89e6){let _0xd2bc49,_0x47ba91=0x0;const _0x3c9597=[],_0x57dfb9=_0x5c89e6['schema'];for(;_0x47ba91<_0x39307a['length'];){const _0x17ca1b=_0x39307a[_0x47ba91],_0xe7bffa=_0x39307a[_0x47ba91+0x1];_0xd2bc49||(_0xd2bc49=_0x5c89e6['createPositionBefore'](_0x17ca1b)),co(_0x5c89e6,_0x17ca1b,_0xe7bffa)||(_0x3c9597['push'](_0x5c89e6['createRange'](_0xd2bc49,_0x57dfb9['isObject'](_0x17ca1b)?_0x5c89e6['createPositionAfter'](_0x17ca1b):_0x5c89e6['createPositionAt'](_0x17ca1b,'end'))),_0xd2bc49=null),_0x47ba91++;}return _0x3c9597;}function co(_0x13b682,_0x276263,_0x4462ac){if(!_0x4462ac)return!0x1;const _0x548a09=_0x13b682['createPositionAfter'](_0x276263),_0x4a70ee=_0x13b682['createPositionBefore'](_0x4462ac);return _0x548a09['isTouching'](_0x4a70ee);}function rs(_0x32ddb8,_0x3ebac6,_0x343765){for(;_0x343765['length'];){const _0x446117=_0x343765['splice'](0x0,0x64);_0x32ddb8['change'](()=>{for(const _0x38853e of _0x446117)_0x38853e['isInContent']&&_0x3ebac6['execute'](_0x38853e['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x57aae2,_0x8f3ccc,_0x4c2d6f){super(_0x57aae2),this['_command']=_0x8f3ccc,this['_suggestions']=_0x4c2d6f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2aa78e=Array['from'](this['_suggestions']['values']())['some'](_0x11e4c7=>_0x11e4c7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2aa78e;}['execute'](){const _0x21863c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x358ee7 of _0x21863c){const _0x43764a=_0x358ee7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x43764a))return;}rs(this['editor']['model'],this['_command'],_0x21863c);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x36e54a,_0x171fa0,_0x1db881){super(_0x36e54a),this['_command']=_0x171fa0,this['_suggestions']=_0x1db881,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14df56=this['editor']['model']['document']['selection'],_0x31b443=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2d4e9,_0x10ac56){const _0xba8d72=Array['from'](_0x2d4e9['getRanges']()),_0x47b817=new Set();for(const _0x1ca826 of _0x10ac56)if(_0x1ca826['isInContent']){for(const _0x1d6e23 of _0xba8d72)for(const _0x4f20a4 of _0x1ca826['getRanges']())(_0x1d6e23['isIntersecting'](_0x4f20a4)||_0x2d4e9['isCollapsed']&&!_0x1ca826['isMultiRange']&&_0x1ca826['next']&&_0x4f20a4['end']['isTouching'](_0x1d6e23['start']))&&_0x47b817['add'](_0x1ca826);}return _0x47b817;}(_0x14df56,_0x31b443),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xd0046e=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3f834b of _0xd0046e){const _0x13202f=_0x3f834b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13202f))return;}rs(this['editor']['model'],this['_command'],_0xd0046e);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x13f6f1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b2c68,_0x5139f3){super(),this['id']=_0x5139f3['id'],this['type']=_0x5139f3['type'],this['subType']=_0x5139f3['subType']||null,this['author']=_0x5139f3['author'],this['creator']=_0x5139f3['creator']||_0x5139f3['author'],this['isExternal']=Boolean(_0x5139f3['attributes']&&_0x5139f3['attributes']['@external']),this['data']=null,this['_model']=_0x3b2c68,this['_onAccept']=_0x5139f3['onAccept'],this['_onDiscard']=_0x5139f3['onDiscard'],this['_onAttributesChange']=_0x5139f3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5139f3['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x34dfc4=this;for(;_0x34dfc4['previous'];)_0x34dfc4=_0x34dfc4['previous'];return _0x34dfc4;}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'](_0x58e8e3){this['_markerNames']['add'](_0x58e8e3);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x55a3a1=>this['_model']['markers']['get'](_0x55a3a1))['filter'](_0x236849=>_0x236849);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1be90e=>{for(const _0x6305b of this['getMarkers']())_0x1be90e['removeMarker'](_0x6305b);}),this['_markerNames']['clear']();}['removeMarker'](_0x539441){this['_model']['change'](_0x35d0c3=>{_0x35d0c3['removeMarker'](_0x539441);}),this['_markerNames']['delete'](_0x539441);}['addRange'](_0x1f5ba2){const _0x15c759='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x15c759),this['_model']['change'](_0x322532=>{_0x322532['addMarker'](_0x15c759,{'range':_0x1f5ba2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xdc140c){for(const _0xd27abe of this['getRanges']())if(_0xd27abe['isIntersecting'](_0xdc140c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x12bddc=>_0x12bddc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1d64f4,_0x4928cc)=>[..._0x1d64f4,..._0x4928cc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5e1ceb=this['getRanges']();if(0x1!=_0x5e1ceb['length'])return null;const _0xc023f2=_0x5e1ceb[0x0],_0x5cd1f0=_0xc023f2['start']['nodeAfter'],_0x61a5d6=_0xc023f2['end']['nodeBefore'];return _0x5cd1f0 instanceof _0x30a754?_0x5cd1f0!=_0x61a5d6?null:_0x5cd1f0: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 _0x349cab=[];let _0x340809=this['head'];for(;_0x340809;)_0x349cab['push'](_0x340809),_0x340809=_0x340809['next'];return _0x349cab;}['setAttribute'](_0x806510,_0x4f769a){const _0x448ac6=_0x186ddd(this['attributes']);_0x3d228a(_0x448ac6,_0x806510,_0x4f769a),_0x11068c(_0x448ac6,this['attributes'])||(this['attributes']=_0x448ac6,this['_onAttributesChange'](_0x448ac6));}['removeAttribute'](_0x487163){const _0x6eef86=_0x186ddd(this['attributes']);_0x3eb8ab(_0x6eef86,_0x487163),_0x11068c(_0x6eef86,this['attributes'])||(this['attributes']=_0x6eef86,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 _0x6192a1()['substr'](0x1,0x5);}}function o(_0x190d1c,_0x313678,_0xbabb09){const t=_0x190d1c['t'];switch(_0x313678){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',_0xbabb09);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xbabb09);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xbabb09);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xbabb09);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xbabb09);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',_0xbabb09);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xbabb09);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',_0xbabb09);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xbabb09);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xbabb09);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xbabb09);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xbabb09);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xbabb09);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xbabb09);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xbabb09);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xbabb09);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xbabb09);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xbabb09);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xbabb09);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xbabb09);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xbabb09);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xbabb09);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xbabb09);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'},_0xbabb09);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xbabb09);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xbabb09);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xbabb09);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xbabb09);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xbabb09);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'},_0xbabb09);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xbabb09);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xbabb09);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xbabb09);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xbabb09);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xbabb09);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xbabb09);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'},_0xbabb09);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'},_0xbabb09);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xbabb09);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'},_0xbabb09);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xbabb09);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'},_0xbabb09);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xbabb09);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xbabb09);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'},_0xbabb09);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'},_0xbabb09);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 _0x313678;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x543797,_0x280078){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x543797,this['_locale']=_0x280078;}['getDescriptions'](_0x44f598){const _0x15b7a4=[],_0x1b6eb6=new Set(),_0x46321a=new Set();for(let _0x3759b1=0x0;_0x3759b1<_0x44f598['length'];_0x3759b1++){const _0x528a4d=_0x44f598[_0x3759b1];if(!_0x528a4d['isInContent'])continue;const _0x254394=this['_handleCustomCallbackDescription'](_0x528a4d);if(_0x254394){if(null!=_0x528a4d['subType']){if(_0x1b6eb6['has'](_0x528a4d['subType']))continue;_0x1b6eb6['add'](_0x528a4d['subType']);}_0x15b7a4['push'](_0x254394);}else{if('attribute'!=_0x528a4d['type'])'insertion'!=_0x528a4d['type']&&'deletion'!=_0x528a4d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15b7a4,_0x528a4d,_0x44f598[_0x3759b1+0x1]);else{const _0x3121d3=_0x528a4d['data']['key'];if(_0x46321a['has'](_0x3121d3))continue;_0x46321a['add'](_0x528a4d['data']['key']),_0x3121d3==m?this['_handleRenameSuggestionDescription'](_0x15b7a4,_0x528a4d):this['_handleAttributeSuggestionDescription'](_0x15b7a4,_0x528a4d);}}}return this['_resolveDescriptionItems'](_0x15b7a4);}['registerDescriptionCallback'](_0x33d92e){this['_customCallbacks']['push'](_0x33d92e);}['registerElementLabel'](_0x9f91d9,_0x2a65be,_0x58cbda=_0x2ee883['normal']){'function'==typeof _0x9f91d9?_0x38b771(this['_itemLabelsCallbacks'],{'matchingCallback':_0x9f91d9,'label':_0x2a65be,'priority':_0x58cbda}):this['_itemLabels']['set'](_0x9f91d9,_0x2a65be);}['registerAttributeLabel'](_0xd8f9e7,_0x4b6cf1){this['_attributeLabels']['set'](_0xd8f9e7,_0x4b6cf1);}['getItemLabel'](_0x274c5d,_0x317be2=0x1){let _0x35198d;for(const _0x58623c of this['_itemLabelsCallbacks'])if(_0x58623c['matchingCallback'](_0x274c5d)){_0x35198d=_0x58623c['label'];break;}return _0x35198d||(_0x35198d=this['_itemLabels']['get'](_0x274c5d['name'])),_0x35198d?_0x35198d(_0x317be2):0x1!==_0x317be2?_0x317be2+'\x20'+_0x274c5d['name']+'s':''+_0x274c5d['name'];}['_addDescriptionItems'](_0x507da5,_0x2557fb){const _0x350566=_0x2557fb['getFirstRange']()['getWalker'](),_0x2aabfc='insertion'==_0x2557fb['type']?'add':'remove';for(const _0x19b04c of _0x350566){const _0x348756=_0x19b04c['item'],_0x48154a=_0x507da5[_0x507da5['length']-0x1];if(_0x348756['is']('$textProxy'))_0x48154a&&_0x48154a['type']['indexOf']('Container')>-0x1&&_0x507da5['pop'](),_0x48154a&&'text'==_0x48154a['type']?_0x48154a[_0x2aabfc]+=_0x348756['data']:_0x507da5['push']({'type':'text','add':'add'==_0x2aabfc?_0x348756['data']:'','remove':'remove'==_0x2aabfc?_0x348756['data']:''});else{if(this['_schema']['isObject'](_0x348756)){const _0xb8eb4e=_0x348756;if(_0x48154a&&_0x48154a['type']['indexOf']('Container')>-0x1&&_0x507da5['pop'](),'elementEnd'==_0x19b04c['type'])continue;_0x48154a&&_0x48154a['type']==_0x2aabfc+'Object'&&_0x48154a['element']['name']==_0xb8eb4e['name']?_0x48154a['quantity']++:_0x507da5['push']({'type':_0x2aabfc+'Object','element':_0xb8eb4e,'quantity':0x1}),_0x350566['skip'](_0x295be5=>!('elementEnd'==_0x295be5['type']&&_0x295be5['item']==_0x348756));}else{if(this['_schema']['checkChild'](_0x348756,'$text')||_0x348756['is']('element','softBreak')){const _0x4380f0=_0x348756;if('add'==_0x2aabfc&&'elementStart'==_0x19b04c['type']||'remove'==_0x2aabfc&&'elementEnd'==_0x19b04c['type'])continue;if(_0x48154a&&-0x1==_0x48154a['type']['indexOf']('Container')){'text'==_0x48154a['type']&&(_0x48154a[_0x2aabfc]+='\x0a');continue;}let _0x3e6cc1;if(_0x3e6cc1='add'==_0x2aabfc?_0x4380f0['nextSibling']&&!this['_schema']['isObject'](_0x4380f0['nextSibling'])?_0x4380f0['nextSibling']:null:_0x4380f0['previousSibling']&&!this['_schema']['isObject'](_0x4380f0['previousSibling'])?_0x4380f0['previousSibling']:null,_0x4380f0['isEmpty']||_0x3e6cc1&&_0x3e6cc1['isEmpty']){const _0x51e13c=_0x3e6cc1&&_0x3e6cc1['isEmpty']?_0x3e6cc1:_0x4380f0;_0x48154a&&_0x48154a['type']==_0x2aabfc+'EmptyContainer'&&_0x48154a['element']['name']==_0x51e13c['name']?_0x48154a['quantity']++:_0x507da5['push']({'type':_0x2aabfc+'EmptyContainer','element':_0x51e13c,'quantity':0x1});}else _0x507da5['push']({'type':_0x2aabfc+'Container','element':_0x4380f0});}}}}}['_resolveDescriptionItems'](_0x38c13a){const _0x2b1c04=this['_locale'],_0x2360c0=[],_0x2269ed=[],_0x50dfa4=[];for(const _0x53df50 of _0x38c13a)switch(_0x53df50['type']){case'text':if(_0x53df50['add']=_0x53df50['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x53df50['remove']=_0x53df50['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x53df50['add']&&''!=_0x53df50['remove']){_0x2360c0['push']({'type':'replace','content':o(_0x2b1c04,'REPLACE_TEXT',['\x22'+_0x53df50['remove']+'\x22','\x22'+_0x53df50['add']+'\x22'])});continue;}if(null!=_0x53df50['add']['match'](/^ +$/)){_0x2360c0['push']({'type':'insertion','content':o(_0x2b1c04,'*Insert:*\x20%0',o(_0x2b1c04,'ELEMENT_SPACE',_0x53df50['add']['length']))});continue;}if(null!=_0x53df50['remove']['match'](/^ +$/)){_0x2360c0['push']({'type':'deletion','content':o(_0x2b1c04,'*Remove:*\x20%0',o(_0x2b1c04,'ELEMENT_SPACE',_0x53df50['remove']['length']))});continue;}if(''!=_0x53df50['add']){_0x2360c0['push']({'type':'insertion','content':o(_0x2b1c04,'*Insert:*\x20%0','\x22'+_0x53df50['add']+'\x22')});continue;}_0x2360c0['push']({'type':'deletion','content':o(_0x2b1c04,'*Remove:*\x20%0','\x22'+_0x53df50['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2360c0['push']({'type':'insertion','content':o(_0x2b1c04,'*Insert:*\x20%0',this['getItemLabel'](_0x53df50['element'],_0x53df50['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2360c0['push']({'type':'deletion','content':o(_0x2b1c04,'*Remove:*\x20%0',this['getItemLabel'](_0x53df50['element'],_0x53df50['quantity']))});continue;case'addContainer':_0x2360c0['push']({'type':'insertion','content':o(_0x2b1c04,'*Split:*\x20%0',this['getItemLabel'](_0x53df50['element'],_0x53df50['quantity']))});continue;case'removeContainer':_0x2360c0['push']({'type':'deletion','content':o(_0x2b1c04,'*Merge:*\x20%0',this['getItemLabel'](_0x53df50['element'],_0x53df50['quantity']))});continue;case'addFormat':_0x2269ed['push'](_0x53df50['key']);continue;case'removeFormat':_0x50dfa4['push'](_0x53df50['key']);continue;default:_0x2360c0['push'](_0x53df50);}if(_0x2269ed['length']){const _0x4833a2=_0x2269ed['map'](_0x22b1e6=>this['_attributeLabels']['has'](_0x22b1e6)?this['_attributeLabels']['get'](_0x22b1e6):_0x22b1e6)['join'](',\x20');_0x2360c0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4833a2)});}if(_0x50dfa4['length']){const _0x3519a7=_0x50dfa4['map'](_0x1270ac=>this['_attributeLabels']['has'](_0x1270ac)?this['_attributeLabels']['get'](_0x1270ac):_0x1270ac)['join'](',\x20');_0x2360c0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3519a7)});}return _0x2360c0;}['_handleCustomCallbackDescription'](_0x4eddc4){for(const _0xa2fee of this['_customCallbacks']){const _0x22425b=_0xa2fee(_0x4eddc4);if(_0x22425b&&'type'in _0x22425b)return _0x22425b;}}['_handleAttributeSuggestionDescription'](_0x2d7715,_0x1aeb8f){const _0x16c73f=_0x1aeb8f['data'],_0x17f998=void 0x0===_0x16c73f['newValue']?'removeFormat':'addFormat';_0x2d7715['push']({'type':_0x17f998,'key':_0x16c73f['key']});}['_handleRenameSuggestionDescription'](_0x49d041,_0x2a2fba){_0x49d041['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2a2fba['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f5402,_0x26a70b,_0x36dbe4){if(this['_addDescriptionItems'](_0x4f5402,_0x26a70b),_0x36dbe4&&_0x36dbe4['getFirstRange']()&&!_0x26a70b['getFirstRange']()['end']['isEqual'](_0x36dbe4['getFirstRange']()['start'])){const _0xf8b798=_0x4f5402[_0x4f5402['length']-0x1],_0x81ba54='insertion'==_0x26a70b['type']?'add':'remove';_0xf8b798&&'text'==_0xf8b798['type']&&(_0xf8b798[_0x81ba54]+='\x0a');}}}class E extends _0x43d92e{['afterInit'](){const _0x2f9edb=this['editor'],_0x2e7413=_0x2f9edb['plugins']['get']('TrackChangesEditing');_0x2f9edb['commands']['get']('showAIAssistant')&&_0x2e7413['enableCommand']('showAIAssistant');}}class V extends _0x43d92e{['afterInit'](){const _0x4d7fa3=this['editor'],_0x2a11b3=_0x4d7fa3['locale'];if(!_0x4d7fa3['plugins']['has']('AlignmentEditing'))return;const _0x19694a=_0x4d7fa3['plugins']['get']('TrackChangesEditing');_0x19694a['enableDefaultAttributesIntegration']('alignment'),_0x19694a['registerBlockAttribute']('alignment'),_0x19694a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2a11b3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f65d=this['editor'],_0x1ad28b=_0x32f65d['locale'];_0x32f65d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ba4fb=>{if('formatBlock'!=_0x1ba4fb['type'])return;const {data:_0x9a3ac2}=_0x1ba4fb;if(_0x9a3ac2&&'alignment'==_0x9a3ac2['commandName']){const _0x1e6371=_0x9a3ac2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1ad28b,'*Format:*\x20%0',function(_0x3da2f0){switch(_0x3da2f0){case'left':return o(_0x1ad28b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1ad28b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1ad28b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1ad28b,'FORMAT_JUSTIFY_TEXT');}}(_0x1e6371))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x43d92e{['afterInit'](){const _0x4941ce=this['editor'],_0x3be581=_0x4941ce['plugins']['get']('TrackChangesEditing'),_0x373525=_0x4941ce['locale'];for(const _0x13457d of ti){if(!_0x4941ce['plugins']['has'](_0x13457d))continue;const _0x45a818=_0x13457d['slice'](0x0,-0x7)['toLowerCase'](),_0x21b9f4='FORMAT_'+_0x45a818['toUpperCase']();_0x3be581['enableDefaultAttributesIntegration'](_0x45a818),_0x3be581['registerInlineAttribute'](_0x45a818),_0x3be581['descriptionFactory']['registerAttributeLabel'](_0x45a818,o(_0x373525,_0x21b9f4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b588f=this['editor'],_0x50eed0=_0x1b588f['locale'],_0x2eec92=_0x1b588f['plugins']['get']('TrackChangesEditing');function _0x57ccef(_0x25aa02,_0x2e4075){_0x2eec92['descriptionFactory']['registerDescriptionCallback'](_0x17c841=>{if('formatInline'!=_0x17c841['type'])return;const {data:_0x43d1a4}=_0x17c841;return _0x43d1a4&&_0x43d1a4['commandName']===_0x25aa02?_0x43d1a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50eed0,'*Format:*\x20%0',_0x2e4075)}:{'type':'format','content':o(_0x50eed0,'*Remove\x20format:*\x20%0',_0x2e4075)}:void 0x0;});}_0x57ccef('bold',o(_0x50eed0,'FORMAT_BOLD')),_0x57ccef('italic',o(_0x50eed0,'FORMAT_ITALIC')),_0x57ccef('underline',o(_0x50eed0,'FORMAT_UNDERLINE')),_0x57ccef('code',o(_0x50eed0,'FORMAT_CODE')),_0x57ccef('strikethrough',o(_0x50eed0,'FORMAT_STRIKETHROUGH')),_0x57ccef('subscript',o(_0x50eed0,'FORMAT_SUBSCRIPT')),_0x57ccef('superscript',o(_0x50eed0,'FORMAT_SUPERSCRIPT'));}}class O extends _0x43d92e{['afterInit'](){const _0x2ac797=this['editor'],_0x1760d0=_0x2ac797['locale'];if(!_0x2ac797['plugins']['has']('BlockQuoteEditing'))return;const _0x37071b=_0x2ac797['plugins']['get']('TrackChangesEditing'),_0x5de447=this['editor']['commands']['get']('blockQuote');_0x37071b['enableCommand']('blockQuote',(_0x50f10b,_0x7b55f1={})=>{const _0x20c9e7=this['editor']['model']['document']['selection'],_0x129a7b=_0x7b55f1&&void 0x0!==_0x7b55f1['forceValue']?_0x7b55f1['forceValue']:!_0x5de447['value'];let _0x2cb4fd=[];if(_0x129a7b){const _0x52ca76=Array['from'](_0x20c9e7['getSelectedBlocks']())['filter'](_0x45eff7=>oo(_0x45eff7)||function(_0x4534e7,_0x1fa127){const _0x205ef7=_0x1fa127['checkChild'](_0x4534e7['parent'],'blockQuote'),_0x5b9f8a=_0x1fa127['checkChild'](['$root','blockQuote'],_0x4534e7);return _0x205ef7&&_0x5b9f8a;}(_0x45eff7,this['editor']['model']['schema']));_0x2cb4fd=to(_0x52ca76,_0x2ac797['model']);}else{const _0x1929e1=Array['from'](_0x20c9e7['getSelectedBlocks']())['filter'](_0x21e091=>oo(_0x21e091));_0x2cb4fd=to(_0x1929e1,_0x2ac797['model']);}_0x2ac797['model']['change'](()=>{for(const _0x3ee66a of _0x2cb4fd)_0x37071b['markBlockFormat'](_0x3ee66a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x129a7b}]});});}),_0x37071b['descriptionFactory']['registerDescriptionCallback'](_0x3e1646=>{const {data:_0x278f1c}=_0x3e1646;if(_0x278f1c&&'blockQuote'==_0x278f1c['commandName']){const _0x7e56b9=o(_0x1760d0,'ELEMENT_BLOCK_QUOTE');return _0x278f1c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1760d0,'*Set\x20format:*\x20%0',_0x7e56b9)}:{'type':'format','content':o(_0x1760d0,'*Remove\x20format:*\x20%0',_0x7e56b9)};}});}}function oo(_0x38f201){return'blockQuote'==_0x38f201['parent']['name'];}class G extends _0x43d92e{['afterInit'](){const _0x468968=this['editor'];_0x468968['plugins']['has']('CaseChange')&&(_0x468968['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x468968['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x468968['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x43d92e{['afterInit'](){const _0x27cdd9=this['editor'];_0x27cdd9['commands']['get']('ckbox')&&_0x27cdd9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x43d92e{['afterInit'](){const _0x15120b=this['editor'];if(!_0x15120b['plugins']['has']('CodeBlock'))return;const _0x5ecfe2=_0x15120b['plugins']['get']('TrackChangesEditing'),_0x54cac2=_0x15120b['locale'],_0x596fd8=_0x15120b['config']['get']('codeBlock')['languages'],_0x3018b5=_0x15120b['commands']['get']('codeBlock');_0x5ecfe2['enableCommand']('indentCodeBlock'),_0x5ecfe2['enableCommand']('outdentCodeBlock'),_0x5ecfe2['enableCommand']('codeBlock',(_0x82f002,_0xa12c02={})=>{const _0x4f5ed7=_0x15120b['model'],_0x1d18e6=_0x15120b['model']['document']['selection'],_0x55b8ae=_0xa12c02&&void 0x0!==_0xa12c02['forceValue']?_0xa12c02['forceValue']:!_0x3018b5['value'];let _0x236d13;_0xa12c02['language']||(_0xa12c02['language']=_0x596fd8[0x0]['language']),_0x236d13=_0x55b8ae?Array['from'](_0x1d18e6['getSelectedBlocks']())['filter'](_0x1d06ce=>eo(_0x1d06ce)||function(_0x2496fa,_0x128e97){if(_0x2496fa['is']('rootElement')||_0x128e97['isLimit'](_0x2496fa))return!0x1;return _0x128e97['checkChild'](_0x2496fa['parent'],'codeBlock');}(_0x1d06ce,_0x4f5ed7['schema'])):Array['from'](_0x1d18e6['getSelectedBlocks']())['filter'](_0x435792=>eo(_0x435792));const _0x5754bf=to(_0x236d13,_0x4f5ed7);_0x4f5ed7['change'](()=>{for(const _0x39dd86 of _0x5754bf)_0x5ecfe2['markBlockFormat'](_0x39dd86,{'commandName':'codeBlock','commandParams':[{..._0xa12c02,'forceValue':_0x55b8ae}],'formatGroupId':'blockName'});});}),(_0x5ecfe2['descriptionFactory']['registerElementLabel']('codeBlock',_0x3c4f7a=>o(_0x54cac2,'ELEMENT_CODE_BLOCK',_0x3c4f7a)),_0x5ecfe2['descriptionFactory']['registerDescriptionCallback'](_0x332daa=>{if('formatBlock'!=_0x332daa['type'])return;const _0x38472b=_0x54cac2['t'],{data:_0x12dd97}=_0x332daa;if(!_0x12dd97||'codeBlock'!=_0x12dd97['commandName'])return;const _0x2457b2=_0x12dd97['commandParams'][0x0]['language'],_0x938392=_0x38472b(_0x596fd8['find'](_0x46cfc1=>_0x46cfc1['language']===_0x2457b2)['label'])['toLowerCase']();return _0x12dd97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54cac2,'*Set\x20format:*\x20%0',o(_0x54cac2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x938392+')')}:{'type':'format','content':o(_0x54cac2,'*Remove\x20format:*\x20%0',o(_0x54cac2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x30e49b){return'codeBlock'==_0x30e49b['name'];}class H extends _0x43d92e{['afterInit'](){const _0x3bf14b=this['editor'];if(!_0x3bf14b['plugins']['has']('CommentsEditing'))return;_0x3bf14b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3148f4,_0x137799,_0x402594){const _0x54767d=[];for(const _0x2d1f19 of _0x137799['getItems']())_0x2d1f19['hasAttribute'](_0x3148f4)&&_0x54767d['push'](_0x402594['createRangeOn'](_0x2d1f19));return _0x54767d;}function _e(_0x2e6715,_0xcff61f,{showActiveMarker:_0x46bf3b=!0x0}={}){const _0x2e1849=_0x2e6715['plugins']['get']('TrackChangesEditing');return(_0x35ccd4,_0x330f9e,_0x4f97fb)=>{if(!_0x4f97fb['consumable']['test'](_0x330f9e['markerRange'],_0x35ccd4['name']))return;const _0x58b5c0=_0x330f9e['markerRange']['getWalker'](),_0x557614=_0x330f9e['markerRange']['start'],_0x4ad480=_0x2e6715['model']['schema'];let _0x4639bc=null,_0x157c58=null,_0x29e562=!0x1,_0x56d27c=!0x1;for(const _0x38e418 of _0x58b5c0){const _0x3117ce=_0x38e418['item'];_0x29e562=_0x29e562||_0x4ad480['isContent'](_0x3117ce);const _0x556b8d=_0x4f97fb['mapper']['toViewElement'](_0x3117ce);if(_0x556b8d&&_0x556b8d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x38e418['type']&&(_0x4ad480['isBlock'](_0x3117ce)&&!_0x4ad480['isLimit'](_0x3117ce)&&(_0x3117ce['nextSibling']||_0x557614['isAtEnd']?_0x4639bc&&_0x4639bc['parent']==_0x3117ce||(_0x4639bc=_0x3117ce,_0x45232f(_0x38e418['previousPosition']),_0x56d27c=!0x0):_0x157c58=_0x157c58||_0x38e418['previousPosition']));}function _0x45232f(_0x149c5e){const _0xaf41f0=_0x4f97fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcff61f}),_0x5343f7=_0x4f97fb['mapper']['toViewPosition'](_0x149c5e);_0x46bf3b&&_0x2e1849['activeMarkers']['includes'](_0x330f9e['markerName'])&&_0x4f97fb['writer']['addClass']('ck-suggestion-marker--active',_0xaf41f0),_0x4f97fb['writer']['insert'](_0x5343f7,_0xaf41f0),_0x4f97fb['mapper']['bindElementToMarker'](_0xaf41f0,_0x330f9e['markerName']);}_0x29e562||_0x56d27c||!_0x157c58||_0x45232f(_0x157c58);};}class q extends _0x43d92e{static get['requires'](){return[_0x33fb31];}['init'](){const _0x1b7085=this['editor'],_0x33dcd4=_0x1b7085['plugins']['get']('TrackChangesEditing');_0x33dcd4['enableCommand']('delete');const _0x3cf598=_0x1b7085['commands']['get']('deleteForward');_0x33dcd4['enableCommand']('deleteForward',(_0x530d80,_0x270dad={})=>{const _0x425416=_0x1b7085['model']['createSelection'](_0x1b7085['model']['document']['selection']);_0x425416['isCollapsed']&&_0x1b7085['model']['modifySelection'](_0x425416,{'direction':'forward','unit':_0x270dad['unit']});const _0x4dbd34=_0x425416['getFirstRange'](),_0x444f3c=_0x48a09a['fromRange'](_0x4dbd34);let _0x253b10;_0x530d80(_0x270dad),_0x253b10='$graveyard'==_0x444f3c['root']['rootName']?_0x1b7085['model']['createRange'](_0x4dbd34['start']):_0x1b7085['model']['createRange'](_0x444f3c['start'],_0x444f3c['end']),_0x444f3c['detach'](),_0x1b7085['model']['enqueueChange'](_0x3cf598['buffer']['batch'],_0x44364e=>{_0x3cf598['buffer']['lock'](),_0x44364e['setSelection'](_0x44364e['createRange'](_0x253b10['end'])),_0x3cf598['buffer']['unlock']();});}),_0x1b7085['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1b7085,'merge'),{'priority':'high'}),_0x1b7085['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x48044a,_0x3ed0e0,_0x2f8911)=>{_0x2f8911['options']['showSuggestionHighlights']&&_e(_0x1b7085,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x48044a,_0x3ed0e0,_0x2f8911);},{'priority':'high'}),_0x1b7085['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3453ea,_0x3d0a18,_0x53bc6a)=>{const _0x38c6e6=_0x53bc6a['mapper']['markerNameToElements'](_0x3d0a18['markerName']);if(_0x38c6e6){for(const _0x1ab722 of _0x38c6e6)_0x1ab722['is']('uiElement')&&(_0x53bc6a['mapper']['unbindElementFromMarkerName'](_0x1ab722,_0x3d0a18['markerName']),_0x53bc6a['writer']['remove'](_0x1ab722));}},{'priority':'high'});}}class z extends _0x43d92e{['afterInit'](){const _0x1ae2af=this['editor'];if(!_0x1ae2af['plugins']['has']('ListEditing'))return;const _0x5e7c1a=_0x1ae2af['locale'],_0x1f3658=_0x1ae2af['plugins']['get']('TrackChangesEditing'),_0x1c2637=_0x1ae2af['plugins']['has']('TodoListEditing'),_0x22f76c=!!_0x1ae2af['config']['get']('list.multiBlock');function _0xf2f147(_0x2bb642){return{'type':'format','content':''+o(_0x5e7c1a,'*Set\x20format:*\x20%0',_0x2bb642)};}function _0x55c450(_0x255151){return{'type':'format','content':''+o(_0x5e7c1a,'*Remove\x20format:*\x20%0',_0x255151)};}_0x1f3658['enableDefaultAttributesIntegration']('numberedList'),_0x1f3658['enableDefaultAttributesIntegration']('bulletedList'),_0x1f3658['enableDefaultAttributesIntegration']('customNumberedList'),_0x1f3658['enableDefaultAttributesIntegration']('customBulletedList'),_0x1f3658['enableDefaultAttributesIntegration']('indentList'),_0x1f3658['enableDefaultAttributesIntegration']('outdentList'),_0x1f3658['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1f3658['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1f3658['registerBlockAttribute']('listItemId'),_0x1f3658['registerBlockAttribute']('listType'),_0x1f3658['registerBlockAttribute']('listIndent'),_0x22f76c&&(_0x1f3658['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1f3658['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1c2637&&(_0x1f3658['enableDefaultAttributesIntegration']('todoList'),_0x1f3658['enableDefaultAttributesIntegration']('checkTodoList'),_0x1f3658['registerBlockAttribute']('todoListChecked'),_0x1f3658['descriptionFactory']['registerDescriptionCallback'](_0x261d8b=>{const {data:_0x2c53d3}=_0x261d8b;if(_0x2c53d3&&'todoListChecked'==_0x2c53d3['key'])return{'type':'format','content':_0x2c53d3['newValue']?o(_0x5e7c1a,'*Check\x20item*'):o(_0x5e7c1a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36cdbb=>{if(_0x36cdbb['batch']['isUndo'])return!0x1;let _0x312f9d=!0x1;const _0x1b64da=_0x1f3658['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x293cf7=>'todoListChecked'===_0x1f3658['_getAttributeKey'](_0x293cf7));for(const _0x313981 of _0x1b64da){'todo'!=_0x313981['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1f3658['_findSuggestions'](_0x313981['getFirstRange'](),'attribute')['find'](_0x1ba5ff=>'listType'===_0x1f3658['_getAttributeKey'](_0x1ba5ff['suggestion']))||(_0x36cdbb['removeMarker'](_0x313981['getFirstMarker']()),_0x312f9d=!0x0));}return _0x312f9d;})),_0x1f3658['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5e7c1a,'FORMAT_INDENT'));const _0xde8f42={'type':'format','content':''};_0x1f3658['descriptionFactory']['registerDescriptionCallback'](_0x248384=>{const {data:_0x4cf7b1}=_0x248384;if(!_0x4cf7b1||'listType'!=_0x4cf7b1['key'])return;let _0x5e4eff=_0x248384['head'];for(;_0x5e4eff;){if(_0x5e4eff['data']&&(('listStyle'==_0x5e4eff['data']['key']||'listMarkerStyle'==_0x5e4eff['data']['key'])&&(_0x5e4eff['data']['newValue']&&'default'!=_0x5e4eff['data']['newValue']||'default'!=_0x5e4eff['data']['oldValue']&&!_0x4cf7b1['newValue'])||!_0x22f76c&&_0x5e4eff['data']['key']==m))return _0xde8f42;_0x5e4eff=_0x5e4eff['next'];}if(null==_0x4cf7b1['newValue'])switch(_0x4cf7b1['oldValue']){case'bulleted':return _0x55c450(o(_0x5e7c1a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55c450(o(_0x5e7c1a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55c450(o(_0x5e7c1a,'ELEMENT_TODO_LIST'));}switch(_0x4cf7b1['newValue']){case'bulleted':return _0xf2f147(o(_0x5e7c1a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf2f147(o(_0x5e7c1a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf2f147(o(_0x5e7c1a,'ELEMENT_TODO_LIST'));}}),_0x1f3658['descriptionFactory']['registerDescriptionCallback'](_0x9ea3d9=>{const {data:_0x2ff2d4}=_0x9ea3d9;if(_0x2ff2d4&&'listIndent'==_0x2ff2d4['key'])return null==_0x2ff2d4['newValue']||null==_0x2ff2d4['oldValue']&&0x0==_0x2ff2d4['newValue']?_0xde8f42:void 0x0;}),_0x1f3658['descriptionFactory']['registerDescriptionCallback'](_0x112ac3=>{if('attribute'!=_0x112ac3['type'])return;const {data:_0x556b98}=_0x112ac3;if(!_0x556b98||'listItemId'!=_0x556b98['key'])return;const _0x2f0b82=le(_0x112ac3);return'newValue'==_0x2f0b82?{'type':'format','content':o(_0x5e7c1a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2f0b82?{'type':'format','content':o(_0x5e7c1a,'*Split:*\x20list\x20item')}:_0xde8f42;}),_0x1ae2af['model']['document']['registerPostFixer'](_0x3d3b5a=>this['listItemIdFixer'](_0x3d3b5a)),_0x1ae2af['model']['document']['registerPostFixer'](_0x8fb639=>this['noTrackChangesFixer'](_0x8fb639)),_0x1ae2af['model']['document']['registerPostFixer'](_0x5d4fd0=>this['assureChains'](_0x5d4fd0)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x10c17b){if(_0x10c17b['batch']['isUndo']||!_0x10c17b['batch']['isLocal'])return!0x1;let _0x5a2529=!0x1;const _0x1da4c4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45a6c4=>_0x45a6c4['data']&&'listItemId'==_0x45a6c4['data']['key'])['filter'](_0x3ac257=>_0x3ac257['data']['newValue']&&_0x3ac257['data']['oldValue']);for(const _0x2969d5 of _0x1da4c4)le(_0x2969d5)||(_0x10c17b['removeMarker'](_0x2969d5['getFirstMarker']()),_0x5a2529=!0x0);return _0x5a2529;}['noTrackChangesFixer'](_0x1d2614){if(_0x1d2614['batch']['isUndo']||!_0x1d2614['batch']['isLocal'])return!0x1;const _0x2f3980=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2f3980['trackChangesCommand']['value'])return!0x1;let _0x1c5a10=!0x1;const _0x36a4e1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x100a5e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xaaad73=>'attribute'==_0xaaad73['type'])['filter'](_0x23d812=>_0x36a4e1['includes'](_0x23d812['attributeKey']));if(0x0==_0x100a5e['length'])return _0x1c5a10;for(const _0xa1c25d of _0x100a5e){const _0x5dc1c2=_0x2f3980['_findSuggestions'](_0xa1c25d['range'],'attribute')['filter'](_0x4e9503=>!_0x4e9503['meta']['isNextTo'])['map'](_0x59716d=>_0x59716d['suggestion'])['filter'](_0x3a071f=>{const _0x41e276=_0x2f3980['_getAttributeKey'](_0x3a071f);return _0x36a4e1['includes'](_0x41e276);});if(_0x5dc1c2['length']){for(const _0x563f17 of _0x5dc1c2)_0x1d2614['removeMarker'](_0x563f17['getFirstMarker']());_0x1c5a10=!0x0;}}return _0x1c5a10;}['assureChains'](_0x434d64){if(_0x434d64['batch']['isUndo']||!_0x434d64['batch']['isLocal'])return!0x1;const _0x18b89f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5c957c=!0x1;const _0x3d63ec=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x367d1d of _0x18b89f['getSuggestions']({'skipNotAttached':!0x0})){const _0x3beb0a=_0x18b89f['_findSuggestions'](_0x367d1d['getFirstRange'](),'attribute')['map'](_0x3535ae=>_0x3535ae['suggestion'])['filter'](_0x14efa9=>_0x14efa9['data']&&_0x3d63ec['includes'](_0x14efa9['data']['key']));if(!_0x3beb0a['length'])continue;const _0x8b5fc7=_0x3beb0a[0x0]['head']['attributes']['groupId'];if(!_0x3beb0a['every'](_0x4c44eb=>_0x4c44eb['attributes']['groupId']===_0x8b5fc7)){for(const _0x274df1 of _0x3beb0a)_0x1bbf47(_0x274df1,_0x8b5fc7)&&(_0x5c957c=!0x0);}}return _0x5c957c;function _0x5cb011(_0x111499,_0x3a0eb2){for(const _0x411fad of _0x18b89f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17fc41=>'attribute'==_0x17fc41['type']&&_0x17fc41['attributes']['groupId']==_0x111499))_0x411fad['setAttribute']('groupId',_0x3a0eb2);}function _0x1bbf47(_0x7cb9d,_0x127f84){let _0x1989cd=_0x7cb9d['head'],_0x12e73f=!0x1;for(;_0x1989cd;)_0x1989cd['attributes']['groupId']!=_0x127f84&&(_0x5cb011(_0x1989cd['attributes']['groupId'],_0x127f84),_0x1989cd['setAttribute']('groupId',_0x127f84),_0x12e73f=!0x0),_0x1989cd=_0x1989cd['next'];return _0x12e73f;}}['_supportLegacySuggestions'](){const _0x572a87=this['editor'],_0x191865=_0x572a87['locale'],_0xabad81=_0x572a87['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xabad81['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3448a4,_0x1bc935){const _0x91c2bb=[];for(let _0x4fba9a of _0x3448a4)_0x4fba9a['start']['nodeAfter']===_0x4fba9a['end']['parent']&&(_0x4fba9a=_0x572a87['model']['createRange'](_0x572a87['model']['createPositionAt'](_0x4fba9a['start']['nodeAfter'],0x0))),_0x91c2bb['push'](_0x4fba9a);_0x572a87['model']['change'](_0x4126ba=>{const _0x4eb274=_0x572a87['model']['document']['selection'],_0x300bd4=Array['from'](_0x4eb274['getRanges']())['map'](_0x5578f8=>_0x48a09a['fromRange'](_0x5578f8));_0x4126ba['setSelection'](_0x91c2bb),_0x572a87['commands']['get'](_0x1bc935['commandName'])['refresh'](),_0x1bc935['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x572a87['execute'](_0x1bc935['commandName'],..._0x1bc935['commandParams']),_0x4126ba['setSelection'](_0x300bd4);for(const _0xac2c9e of _0x300bd4)_0xac2c9e['detach']();});}),_0xabad81['descriptionFactory']['registerElementLabel'](function(_0x217c51){const _0x4bcd03=!_0x572a87['model']['schema']['isObject'](_0x217c51),_0x47b23b=_0x217c51['previousSibling'],_0x464a8f=_0x217c51['nextSibling'],_0x3533e3=_0x217c51['getAttribute']('listItemId'),_0x5f557b=!_0x47b23b||_0x47b23b['getAttribute']('listItemId')!==_0x3533e3,_0x499935=!_0x464a8f||_0x464a8f['getAttribute']('listItemId')!==_0x3533e3;return _0x4bcd03&&Boolean(_0x3533e3)&&_0x5f557b&&_0x499935;},_0x4c850d=>o(_0x191865,'ELEMENT_LIST_ITEM',_0x4c850d));}['_registerLegacyDescription'](){const _0xd3270a=this['editor'],_0xb72599=_0xd3270a['locale'];function _0x18c38b(_0x597f38){const _0x1eb5fa=_0xd3270a['commands']['get']('bulletedList')['value'],_0x5dddd2=_0xd3270a['commands']['get']('numberedList')['value'];return'numberedList'===_0x597f38?_0x1eb5fa:_0x5dddd2;}_0xd3270a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4af1c0){if('formatBlock'!=_0x4af1c0['type'])return;const {data:_0x3cb179}=_0x4af1c0;if(!_0x3cb179)return;let _0x4e08d4,_0x2db9bc,_0x1148f5,_0x3664ec;switch(_0x3cb179['commandName']){case'bulletedList':_0x1148f5=_0x3cb179['commandParams'][0x0]['forceValue'],_0x3664ec=_0x18c38b(_0x3cb179['commandName']),_0x4e08d4=_0x1148f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3664ec&&_0xd3270a['config']['get']('list.multiBlock')||(_0x4e08d4='*Change\x20to:*\x20%0'),_0x2db9bc={'type':'format','content':o(_0xb72599,_0x4e08d4,o(_0xb72599,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1148f5=_0x3cb179['commandParams'][0x0]['forceValue'],_0x3664ec=_0x18c38b(_0x3cb179['commandName']),_0x4e08d4=_0x1148f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3664ec&&_0xd3270a['config']['get']('list.multiBlock')||(_0x4e08d4='*Change\x20to:*\x20%0'),_0x2db9bc={'type':'format','content':o(_0xb72599,_0x4e08d4,o(_0xb72599,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e08d4='*Indent:*\x20%0',_0x2db9bc={'type':'format','content':o(_0xb72599,_0x4e08d4,o(_0xb72599,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e08d4=function(_0x4bdb9b){const _0x1574ef=_0x4bdb9b['getFirstRange']();let _0x2d5781=_0x1574ef['start']['nodeAfter'];for(;_0x2d5781&&_0x1574ef['containsItem'](_0x2d5781);){if(_0x2d5781['getAttribute']('listIndent')>0x0)return!0x1;_0x2d5781=_0x2d5781['nextSibling'];}return!0x0;}(_0x4af1c0)?o(_0xb72599,'*Format:*\x20remove\x20from\x20%0',o(_0xb72599,function(_0x5785cd){return'ELEMENT_'+_0x5785cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4af1c0))):o(_0xb72599,'*Outdent:*\x20%0',o(_0xb72599,'ELEMENT_LIST_ITEM')),_0x2db9bc={'type':'format','content':_0x4e08d4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3cb179['multipleBlocks']&&(_0x4e08d4='*Merge:*\x20%0',_0x2db9bc={'type':'deletion','content':o(_0xb72599,_0x4e08d4,o(_0xb72599,'ELEMENT_LIST_ITEM'))});}return _0x2db9bc;});}}function le(_0x29750a){let _0x4ed364=_0x29750a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4ed364;){const _0x3289ca=_0x4ed364['getAttribute']('listItemId');if(!_0x3289ca)return!0x1;if(_0x3289ca==_0x29750a['data']['newValue'])return'newValue';if(_0x3289ca==_0x29750a['data']['oldValue'])return'oldValue';_0x4ed364=_0x4ed364['previousSibling'];}return!0x1;}class ue extends _0x43d92e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x32178a=this['editor']['config']['get']('list.properties'),_0x2984e7=this['editor']['plugins']['get']('TrackChangesEditing');_0x32178a['styles']&&(_0x2984e7['enableDefaultAttributesIntegration']('listStyle'),_0x2984e7['registerBlockAttribute']('listStyle')),_0x32178a['reversed']&&(_0x2984e7['enableDefaultAttributesIntegration']('listReversed'),_0x2984e7['registerBlockAttribute']('listReversed')),_0x32178a['startIndex']&&(_0x2984e7['enableDefaultAttributesIntegration']('listStart'),_0x2984e7['registerBlockAttribute']('listStart'));const _0x228033={'type':'format','content':''};_0x2984e7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43060a=this['editor']['locale'];_0x2984e7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43060a,'FORMAT_LIST_REVERSED')),_0x2984e7['descriptionFactory']['registerDescriptionCallback'](_0xbc7d7b=>{const {data:_0xdb0a6f}=_0xbc7d7b;if(_0xdb0a6f&&'listReversed'==_0xdb0a6f['key'])return null==_0xdb0a6f['newValue']||0x0==_0xdb0a6f['newValue']&&null==_0xdb0a6f['oldValue']?_0x228033:void 0x0;}),_0x2984e7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43060a,'FORMAT_LIST_START')),_0x2984e7['descriptionFactory']['registerDescriptionCallback'](_0x3f67c8=>{const {data:_0x51db43}=_0x3f67c8;if(_0x51db43&&'listStart'==_0x51db43['key'])return null==_0x51db43['newValue']||0x1==_0x51db43['newValue']&&null==_0x51db43['oldValue']?_0x228033:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3bfbd8=>{if(_0x3bfbd8['batch']['isUndo'])return!0x1;let _0x2293b0=!0x1;const _0x58b08d=_0x2984e7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31884a=>{const _0x7b2dd3=_0x2984e7['_getAttributeKey'](_0x31884a);return'listStart'==_0x7b2dd3||'listReversed'==_0x7b2dd3;});for(const _0x57362f of _0x58b08d){const _0x1c730c=_0x57362f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1c730c||'customNumbered'==_0x1c730c)continue;_0x2984e7['_findSuggestions'](_0x57362f['getFirstRange'](),'attribute')['find'](_0x2c0fcd=>'listType'==_0x2984e7['_getAttributeKey'](_0x2c0fcd['suggestion']))||(_0x3bfbd8['removeMarker'](_0x57362f['getFirstMarker']()),_0x2293b0=!0x0);}return _0x2293b0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x47d8c0){const _0x15ef31=this['editor']['locale'],{data:_0x5a50a2}=_0x47d8c0,_0x15b296={'type':'format','content':''};if(!_0x5a50a2||'listStyle'!=_0x5a50a2['key'])return;if(!_0x5a50a2['oldValue'])return'default'==_0x5a50a2['newValue']?_0x15b296:{'type':'format','content':''+o(_0x15ef31,'*Set\x20format:*\x20%0',o(_0x15ef31,this['_getTranslationKeyForListStyle'](_0x5a50a2['newValue'])))};if(!_0x5a50a2['newValue']){if('default'==_0x5a50a2['oldValue'])return _0x15b296;let _0x2bb965=_0x47d8c0['head'];for(;_0x2bb965;){if(_0x2bb965['data']&&'listType'==_0x2bb965['data']['key']&&_0x2bb965['data']['newValue'])return _0x15b296;_0x2bb965=_0x2bb965['next'];}return{'type':'format','content':''+o(_0x15ef31,'*Remove\x20format:*\x20%0',o(_0x15ef31,this['_getTranslationKeyForListStyle'](_0x5a50a2['oldValue'])))};}if('default'!=_0x5a50a2['newValue'])return{'type':'format','content':''+o(_0x15ef31,'*Set\x20format:*\x20%0',o(_0x15ef31,this['_getTranslationKeyForListStyle'](_0x5a50a2['newValue'])))};let _0x24f8cf=_0x47d8c0['head'];for(;_0x24f8cf;){if(_0x24f8cf['data']&&'listType'==_0x24f8cf['data']['key']&&_0x24f8cf['data']['newValue']&&_0x24f8cf['data']['oldValue'])return _0x15b296;_0x24f8cf=_0x24f8cf['next'];}return{'type':'format','content':o(_0x15ef31,'*Set\x20format:*\x20%0',o(_0x15ef31,'ELEMENT_'+_0x47d8c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4825a6=this['editor'],_0x5762da=_0x4825a6['locale'];_0x4825a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cae81=>{if('formatBlock'!=_0x3cae81['type'])return;const {data:_0x4cda71}=_0x3cae81;if(!_0x4cda71)return;let _0x580d57,_0xcba85;switch(_0x4cda71['commandName']){case'listStyle':_0x580d57='*Change\x20to:*\x20%0',_0xcba85={'type':'format','content':o(_0x5762da,_0x580d57,o(_0x5762da,this['_getTranslationKeyForListStyle'](_0x4cda71['commandParams'][0x0]['type'])))};break;case'listReversed':_0x580d57=_0x4cda71['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xcba85={'type':'format','content':o(_0x5762da,_0x580d57)};break;case'listStart':_0x580d57='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xcba85={'type':'format','content':o(_0x5762da,_0x580d57,_0x4cda71['commandParams'][0x0]['startIndex'])};}return _0xcba85;});}['_getTranslationKeyForListStyle'](_0x28fa8b){return'ELEMENT_'+function(_0x43687b){if(pe['includes'](_0x43687b))return'bulleted';if(ye['includes'](_0x43687b))return'numbered';return null;}(_0x28fa8b)['toUpperCase']()+'_LIST_'+_0x28fa8b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x43d92e{static get['requires'](){return[_0x106f6d];}['init'](){const _0x35c6f0=this['editor'],_0x2fc51d=_0x35c6f0['plugins']['get']('TrackChangesEditing'),_0x57cb3c=_0x35c6f0['commands']['get']('enter');_0x2fc51d['enableCommand']('enter',()=>{_0x35c6f0['model']['change'](_0xcbc74d=>{const _0x1e8614=_0x35c6f0['model']['document']['selection'],_0x153f9b=_0x1e8614['getFirstPosition'](),_0x48610a=_0x48a09a['fromRange'](_0x1e8614['getFirstRange']());if(_0x57cb3c['enterBlock'](_0xcbc74d)){const _0x1888bb=_0x35c6f0['model']['createPositionAt'](_0x153f9b['parent']['nextSibling'],0x0),_0x2efd85=_0xcbc74d['createRange'](_0x153f9b,_0x1888bb);_0x2fc51d['markInsertion'](_0x2efd85);}else _0xcbc74d['setSelection'](_0xcbc74d['createRange'](_0x48610a['end']));_0x48610a['detach'](),_0x57cb3c['fire']('afterExecute',{'writer':_0xcbc74d});});}),_0x35c6f0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x35c6f0,'split'),{'priority':'high'}),_0x35c6f0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4fd6aa,_0x202396,_0xd04ba5)=>{const _0x52a7e2=_0xd04ba5['mapper']['markerNameToElements'](_0x202396['markerName']);if(_0x52a7e2){for(const _0x1d808f of _0x52a7e2)_0x1d808f['hasClass']('ck-suggestion-marker-split')&&(_0xd04ba5['mapper']['unbindElementFromMarkerName'](_0x1d808f,_0x202396['markerName']),_0xd04ba5['writer']['remove'](_0x1d808f));}},{'priority':'high'}),_0x35c6f0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19e280,_0x56c638,_0x3522ab)=>{_0x3522ab['options']['showSuggestionHighlights']&&_e(_0x35c6f0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x19e280,_0x56c638,_0x3522ab);},{'priority':'high'});}}class J extends _0x43d92e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x10e2a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x10e2a5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x10e2a5['enableCommand']('findNext'),_0x10e2a5['enableCommand']('findPrevious'),_0x10e2a5['enableCommand']('replace'),_0x10e2a5['enableCommand']('replaceAll');}['handleFindCommand'](_0x301e6c,_0x26a047,_0x5324a3={}){const _0x4fae6d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x301e6c(_0x16d4b3=>('string'==typeof _0x26a047?_0x4fae6d['findByTextCallback'](_0x26a047,_0x5324a3):_0x26a047)(_0x16d4b3)['filter'](_0x4970a3=>!0x1===this['_isInDeletionRange'](_0x4970a3,_0x16d4b3['item'])),_0x5324a3);}['_isInDeletionRange'](_0x28d793,_0x321815){const _0x59badd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x321815,_0x28d793['start']),this['editor']['model']['createPositionAt'](_0x321815,_0x28d793['end']));for(const _0xd854a5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x59badd['getIntersection'](_0xd854a5['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 _0x43d92e{['afterInit'](){const _0x38c390=this['editor']['locale'],_0x50f14f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x746d4,commandName:_0x2e59a2}of ro)this['editor']['plugins']['has'](_0x746d4)&&(_0x50f14f['enableDefaultAttributesIntegration'](_0x2e59a2),_0x50f14f['registerInlineAttribute'](_0x2e59a2));_0x38c390['t'],_0x50f14f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x38c390,'FORMAT_FONT_SIZE')),_0x50f14f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x38c390,'FORMAT_FONT_FAMILY')),_0x50f14f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x38c390,'FORMAT_FONT_COLOR')),_0x50f14f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x38c390,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2485ed=this['editor'],_0x1b6ed1=_0x2485ed['locale'];_0x2485ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22c45f=>{const _0x2a618f=_0x1b6ed1['t'];if('formatInline'!=_0x22c45f['type'])return;const {data:_0x28259f}=_0x22c45f;if(null!=_0x28259f){if('fontSize'==_0x28259f['commandName']){const _0x456846=_0x28259f['commandParams'][0x0]['value'];if(_0x456846){const _0x5dd7aa=_0x2a618f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3c5576=>_0x3c5576['model']==_0x456846)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b6ed1,'*Set\x20font\x20size:*\x20%0',_0x5dd7aa)};}return{'type':'format','content':o(_0x1b6ed1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x28259f['commandName']){const _0x3c904c=_0x28259f['commandParams'][0x0]['value'];return _0x3c904c?{'type':'format','content':o(_0x1b6ed1,'*Set\x20font\x20family:*\x20%0',_0x3c904c)}:{'type':'format','content':o(_0x1b6ed1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x28259f['commandName']){const _0x50bdfb=_0x28259f['commandParams'][0x0]['value'];if(_0x50bdfb){const _0x1f98a6=_0xeef4a8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4433c2=>_0x4433c2['model']==_0x50bdfb);let _0x3665e7=_0x50bdfb,_0x3bfaa0='';return _0x1f98a6&&(_0x3665e7=_0x1f98a6['label'],_0x3bfaa0=_0x2a618f(_0x3665e7)['toLowerCase']()),{'type':'format','content':o(_0x1b6ed1,'*Set\x20font\x20color:*\x20%0',_0x3bfaa0)['trim'](),'color':{'value':_0x50bdfb,'title':_0x3bfaa0||_0x3665e7}};}return{'type':'format','content':o(_0x1b6ed1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x28259f['commandName']){const _0xa533ce=_0x28259f['commandParams'][0x0]['value'];if(_0xa533ce){const _0x326006=_0xeef4a8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f7469=>_0x4f7469['model']==_0xa533ce);let _0x28a91b=_0xa533ce,_0x2bd63b='';return _0x326006&&(_0x28a91b=_0x326006['label'],_0x2bd63b=_0x2a618f(_0x28a91b)['toLowerCase']()),{'type':'format','content':o(_0x1b6ed1,'*Set\x20font\x20background\x20color:*\x20%0',_0x2bd63b)['trim'](),'color':{'value':_0xa533ce,'title':_0x2bd63b||_0x28a91b}};}return{'type':'format','content':o(_0x1b6ed1,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x43d92e{['afterInit'](){const _0x2fa051=this['editor'],_0x401c75=_0x2fa051['plugins']['get']('TrackChangesEditing'),_0x4ed9fa=_0x2fa051['commands']['get']('copyFormat'),_0x5671c7=_0x2fa051['commands']['get']('pasteFormat');_0x4ed9fa&&_0x5671c7&&(_0x401c75['enableDefaultAttributesIntegration']('pasteFormat'),_0x401c75['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3a4f4d=this['editor'],_0x234977=_0x3a4f4d['locale'];_0x3a4f4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40235d=>{if('formatBlock'!=_0x40235d['type']&&'formatInline'!=_0x40235d['type'])return;const {data:_0x4f7283}=_0x40235d;if(_0x4f7283&&'pasteFormat'===_0x4f7283['commandName']){const _0x1c4f78=[],_0x342af1=_0x4f7283['commandParams'][0x0];for(const [_0x3cedee,_0x56c381]of Object['entries'](_0x342af1))_0x1c4f78['push'](so(_0x3a4f4d,_0x3cedee,_0x56c381));return _0x1c4f78['length']?{'type':'format','content':o(_0x234977,'*Set\x20format\x20to:*\x20%0',_0x1c4f78['join'](',\x20'))}:{'type':'format','content':o(_0x234977,'*Remove\x20all\x20formatting*')};}});}}function so(_0x56ed92,_0x263628,_0x11d9c3){const _0x2e266b=_0x56ed92['locale']['t'],_0x4fc25d=_0x263628['split'](/(?=[A-Z])/)['join']('\x20'),_0x43a91b=_0x2e266b(_0x4fc25d['charAt'](0x0)['toUpperCase']()+_0x4fc25d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11d9c3)return _0x43a91b;if('fontColor'===_0x263628||'fontBackgroundColor'===_0x263628){const _0xeab90d=_0xeef4a8(_0x56ed92['config']['get']('fontColor.colors'))['find'](_0x434312=>_0x434312['model']==_0x11d9c3);return _0x43a91b+'\x20('+(_0xeab90d?_0x2e266b(_0xeab90d['label'])['toLowerCase']():_0x11d9c3)+')';}if('fontSize'===_0x263628&&isNaN(parseFloat(_0x11d9c3))){const _0x145d4f=_0x56ed92['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x56ed92['config']['get']('fontSize.options'))['find'](_0x3cedbb=>_0x3cedbb['model']==_0x11d9c3);return _0x43a91b+'\x20('+(_0x145d4f?_0x2e266b(_0x145d4f['title'])['toLowerCase']():_0x11d9c3)+')';}return _0x43a91b+'\x20('+_0x11d9c3+')';}class Y extends _0x43d92e{['_headingOptions'];['afterInit'](){const _0x1796cc=this['editor'];if(!_0x1796cc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1796cc['config']['get']('heading.options');const _0x5e37b2=_0x1796cc['locale'],_0x156cd9=_0x1796cc['plugins']['get']('TrackChangesEditing');_0x156cd9['enableDefaultAttributesIntegration']('heading');for(const _0x2d2dae of this['_headingOptions'])'paragraph'!=_0x2d2dae['model']&&_0x156cd9['descriptionFactory']['registerElementLabel'](_0x2d2dae['model'],_0x2e9f83=>{const _0x3b35d1=this['_getHeadingLevel'](_0x2d2dae['model']);return null!==_0x3b35d1?_0x3f8298(_0x2e9f83,_0x3b35d1):_0xf02038(_0x2e9f83,_0x2d2dae['title']);});function _0x3f8298(_0x50becf,_0x2b1623){return o(_0x5e37b2,'ELEMENT_HEADING',[_0x50becf,_0x2b1623]);}function _0xf02038(_0x1b97b0,_0x546d42){return o(_0x5e37b2,'ELEMENT_HEADING_CUSTOM',[_0x1b97b0,_0x546d42]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x252ed4=this['editor'],_0x130ddd=_0x252ed4['locale'];function _0x54e5a8(_0x4e1302,_0x3cb4aa){return o(_0x130ddd,'ELEMENT_HEADING_CUSTOM',[_0x4e1302,_0x3cb4aa]);}_0x252ed4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2fff=>{if('formatBlock'!=_0x1c2fff['type'])return;const {data:_0x24e798}=_0x1c2fff;if(_0x24e798&&'heading'==_0x24e798['commandName']){const _0x4d3fb8=_0x24e798['commandParams'][0x0]['value'],_0x27cb5a=this['_getHeadingLevel'](_0x4d3fb8);if(null!==_0x27cb5a)return{'type':'format','content':o(_0x130ddd,'*Change\x20to:*\x20%0',(_0x117104=0x1,_0x3588e6=_0x27cb5a,o(_0x130ddd,'ELEMENT_HEADING',[_0x117104,_0x3588e6])))};const _0xecb908=this['_headingOptions']['find'](_0x2c67c3=>_0x2c67c3['model']===_0x4d3fb8)['title'];return{'type':'format','content':o(_0x130ddd,'*Change\x20to:*\x20%0',_0x54e5a8(0x1,_0xecb908))};}var _0x117104,_0x3588e6;});}['_getHeadingLevel'](_0x423bd5){const _0x568b0f=_0x423bd5['match'](/^heading(\d+)/);if(_0x568b0f)return _0x568b0f[0x1];const _0x540f75=this['_headingOptions']?.['find'](_0xfd0881=>_0xfd0881['model']==_0x423bd5);if(_0x540f75&&_0x540f75['view']){const _0x429842=_0x540f75['view'],_0x502729=(_0x429842['name']??_0x429842)['match'](/^h(\d+)/);if(_0x502729)return _0x502729[0x1];}return null;}}class Z extends _0x43d92e{['afterInit'](){const _0x541301=this['editor'];if(!_0x541301['plugins']['has']('HighlightEditing'))return;const _0x163e71=_0x541301['plugins']['get']('TrackChangesEditing'),_0x1b5d5a=_0x541301['locale'];_0x163e71['enableDefaultAttributesIntegration']('highlight'),_0x163e71['registerInlineAttribute']('highlight'),_0x163e71['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b5d5a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46df8f=this['editor'],_0x40ee9f=_0x46df8f['locale'];_0x46df8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487d63=>{if('formatInline'!=_0x487d63['type'])return;const {data:_0x46a611}=_0x487d63;if(_0x46a611&&'highlight'==_0x46a611['commandName']){const _0x4348cf=_0x40ee9f['t'],_0x523c79=_0x46a611['commandParams'][0x0]['value'];if(_0x523c79){const _0x1c9b7b=_0x46df8f['config']['get']('highlight.options')['find'](_0x133924=>_0x133924['model']==_0x523c79),_0x337342=_0x4348cf(_0x1c9b7b['title'])['toLowerCase']();return{'type':'format','content':o(_0x40ee9f,'*Set\x20highlight:*\x20%0',_0x337342),'color':{'value':_0x1c9b7b['color'],'title':_0x1c9b7b['title']}};}return{'type':'format','content':o(_0x40ee9f,'*Remove\x20highlight*',o(_0x40ee9f,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x43d92e{['afterInit'](){const _0x1980b8=this['editor'];if(!_0x1980b8['plugins']['has']('HorizontalLineEditing'))return;_0x1980b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xabcde1=_0x1980b8['plugins']['get']('TrackChangesEditing'),_0x4dd98b=_0x1980b8['locale'];_0xabcde1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x137df8=>o(_0x4dd98b,'ELEMENT_HORIZONTAL_LINE',_0x137df8)),_0x1980b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x908412,{writer:_0x46c968,options:_0xc0a972})=>{if(!_0xc0a972['showSuggestionHighlights'])return null;const _0x1277d0=_0x46c968['createContainerElement']('div'),_0x44160b=_0x46c968['createEmptyElement']('hr');return _0x46c968['addClass']('ck-horizontal-line',_0x1277d0),_0x46c968['insert'](_0x46c968['createPositionAt'](_0x1277d0,0x0),_0x44160b),_0x1277d0;},'converterPriority':'high'});}}class et extends _0x43d92e{['afterInit'](){const _0x41720e=this['editor'];if(!_0x41720e['plugins']['has']('HtmlEmbed'))return;const _0x2ec780=_0x41720e['plugins']['get']('TrackChangesEditing'),_0x429297=_0x41720e['locale'];_0x2ec780['descriptionFactory']['registerElementLabel']('rawHtml',_0x48fcc7=>o(_0x429297,'ELEMENT_HTML_EMBED',_0x48fcc7)),_0x2ec780['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2ec780['registerBlockAttribute']('value'),_0x2ec780['descriptionFactory']['registerDescriptionCallback'](_0x53f445=>{if('attribute'!=_0x53f445['type'])return;const {data:_0x2bb2bb}=_0x53f445;if(_0x2bb2bb&&'value'==_0x2bb2bb['key']&&_0x53f445['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x24c399=o(_0x429297,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x429297,'*Change\x20%0\x20content*',_0x24c399)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaf7485=this['editor'],_0xb3719a=_0xaf7485['locale'];_0xaf7485['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x302aa7=>{if('formatBlock'!=_0x302aa7['type'])return;const {data:_0x3c9671}=_0x302aa7;if(_0x3c9671&&'htmlEmbed'==_0x3c9671['commandName']){const _0x5e3ac1=o(_0xb3719a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xb3719a,'*Change\x20%0\x20content*',_0x5e3ac1)};}});}}class it extends _0x43d92e{['afterInit'](){const _0x3cbdac=this['editor'];if(!_0x3cbdac['plugins']['has']('ImageEditing'))return;const _0x267e26=_0x3cbdac['plugins']['get']('TrackChangesEditing'),_0x6eac34=_0x3cbdac['plugins']['get']('ImageUtils'),_0x429c22=_0x3cbdac['locale'];_0x267e26['enableCommand']('insertImage'),_0x267e26['descriptionFactory']['registerElementLabel']('imageBlock',_0x3db656=>o(_0x429c22,'ELEMENT_IMAGE',_0x3db656)),_0x267e26['descriptionFactory']['registerElementLabel']('imageInline',_0x1ddaf9=>o(_0x429c22,'ELEMENT_INLINE_IMAGE',_0x1ddaf9)),_0x267e26['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x429c22,'ELEMENT_CAPTION')),_0x3cbdac['plugins']['has']('ImageUploadEditing')&&_0x267e26['enableCommand']('uploadImage'),_0x3cbdac['plugins']['has']('ImageBlockEditing')&&_0x3cbdac['plugins']['has']('ImageInlineEditing')&&(_0x267e26['enableCommand']('imageTypeInline',(_0x51a837,_0xbfebf4)=>{const _0x26bc38=_0x6eac34['getClosestSelectedImageElement'](_0x3cbdac['model']['document']['selection']);_0x3cbdac['model']['change'](()=>{_0x267e26['markBlockFormat'](_0x26bc38,{'commandName':'imageTypeInline','commandParams':[_0xbfebf4]},[],'convertBlockImageToInline');});}),_0x267e26['enableCommand']('imageTypeBlock',(_0x1c6398,_0x5add54)=>{_0x3cbdac['model']['change'](_0xcdd183=>{let _0x4aaadf=_0x6eac34['getClosestSelectedImageElement'](_0x3cbdac['model']['document']['selection']),_0x419f9e=_0xcdd183['createRangeOn'](_0x4aaadf);const _0x4d1d7d=_0x29181c['fromPosition'](_0x419f9e['start'],'toPrevious'),_0x39adfe=_0x29181c['fromPosition'](_0x419f9e['end'],'toNext');_0x267e26['forceDefaultExecution'](()=>_0x1c6398(_0x5add54)),_0x4aaadf=_0x6eac34['getClosestSelectedImageElement'](_0x3cbdac['model']['document']['selection']),_0x419f9e=_0xcdd183['createRangeOn'](_0x4aaadf);const _0x5c0c43=_0xcdd183['createRange'](_0x4d1d7d,_0x39adfe);_0x4d1d7d['detach'](),_0x39adfe['detach'](),_0x267e26['markBlockFormat'](_0x4aaadf,{'commandName':'imageTypeInline','commandParams':[_0x5add54]},[],'convertInlineImageToBlock'),_0x5c0c43['start']['isBefore'](_0x419f9e['start'])&&_0x267e26['markInsertion'](_0xcdd183['createRange'](_0x5c0c43['start'],_0x419f9e['start']),'convertInlineImageToBlock'),_0x419f9e['end']['isBefore'](_0x5c0c43['end'])&&_0x267e26['markInsertion'](_0xcdd183['createRange'](_0x419f9e['end'],_0x5c0c43['end']),'convertInlineImageToBlock');});}),_0x267e26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x267e26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x267e26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x267e26['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x267e26['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x267e26['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1fd5b9])=>{const _0xc76575=_0x267e26['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x43647b=_0x1fd5b9['start'],_0x46ea77=_0x1fd5b9['end'];const _0x347c18=_0x3cbdac['model']['schema']['getNearestSelectionRange'](_0x43647b,'backward'),_0x5a9e82=_0x3cbdac['model']['schema']['getNearestSelectionRange'](_0x46ea77,'forward');_0x347c18['isCollapsed']&&(_0x43647b=_0x347c18['start']),_0x5a9e82['isCollapsed']&&(_0x46ea77=_0x5a9e82['end']),_0xc76575([_0x3cbdac['model']['createRange'](_0x43647b,_0x46ea77)]);}),_0x267e26['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x11a915),_0x267e26['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x11a915)),_0x3cbdac['plugins']['has']('ImageCaptionEditing')&&(_0x267e26['enableCommand']('toggleImageCaption',(_0x4bc6dc,_0x1a9db8)=>{const _0x5eee2d=_0x3cbdac['plugins']['get']('ImageCaptionUtils');let _0x1c7129=_0x6eac34['getClosestSelectedImageElement'](_0x3cbdac['model']['document']['selection']),_0x3a0659=_0x5eee2d['getCaptionFromImageModelElement'](_0x1c7129);_0x3cbdac['model']['change'](()=>{if(_0x3a0659)return void _0x267e26['markDeletion'](_0x3cbdac['model']['createRangeOn'](_0x3a0659));const _0x59badc=_0x6eac34['isBlockImage'](_0x1c7129);_0x4bc6dc(_0x1a9db8),_0x1c7129=_0x6eac34['getClosestSelectedImageElement'](_0x3cbdac['model']['document']['selection']),_0x3a0659=_0x5eee2d['getCaptionFromImageModelElement'](_0x1c7129),_0x267e26['markInsertion'](_0x3cbdac['model']['createRangeOn'](_0x3a0659),_0x59badc?null:'imageCaption');});}),_0x267e26['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x11a915));const _0x260359=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdab65(_0x5e5a12,_0x403d3d){const _0x170fe2=_0x260359['findIndex'](({type:_0x5b6a41,subType:_0x5f223e})=>_0x5e5a12['type']==_0x5b6a41&&_0x5e5a12['subType']==_0x5f223e),_0x5156aa=_0x260359['findIndex'](({type:_0x138464,subType:_0x4d2e48})=>_0x403d3d['type']==_0x138464&&_0x403d3d['subType']==_0x4d2e48);if(_0x170fe2<0x0||_0x5156aa<0x0)return!0x1;const _0x48624f=_0x5e5a12['getFirstRange'](),_0x365d69=_0x403d3d['getFirstRange']();if((0x0==_0x170fe2||0x1==_0x170fe2)&&0x2==_0x5156aa&&_0x48624f['isIntersecting'](_0x365d69))return!0x0;if(0x2==_0x170fe2&&0x3==_0x5156aa){const _0x159c9f=_0x267e26['_findSuggestions'](_0x48624f,'insertion')['filter'](({suggestion:_0x35cec1,meta:_0x4799db})=>_0x4799db['isOwn']&&'convertInlineImageToBlock'==_0x35cec1['subType']);if(_0x159c9f['length']>0x1&&_0x365d69['end']['isEqual'](_0x48624f['start']))return!0x0;if(0x1==_0x159c9f['length']&&(_0x48624f['start']['isEqual'](_0x365d69['end'])||_0x48624f['end']['isEqual'](_0x365d69['start'])))return!0x0;}if(0x3==_0x170fe2&&0x3==_0x5156aa&&_0x48624f['start']['isBefore'](_0x365d69['start'])){const _0x585f1c=_0x48624f['end']['nodeAfter'],_0x2ab705=_0x365d69['start']['nodeBefore'];return _0x6eac34['isBlockImage'](_0x585f1c)&&_0x585f1c===_0x2ab705;}return!0x1;}function _0x11a915(_0x131928,_0x15ef02){return _0xdab65(_0x131928,_0x15ef02)?[_0x131928,_0x15ef02]:_0xdab65(_0x15ef02,_0x131928)?[_0x15ef02,_0x131928]:null;}_0x3cbdac['plugins']['has']('ImageResize')&&(_0x267e26['enableDefaultAttributesIntegration']('resizeImage'),_0x267e26['registerBlockAttribute']('resizedWidth'),_0x267e26['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x429c22,'FORMAT_IMAGE_SIZE'))),_0x3cbdac['plugins']['has']('ImageTextAlternativeEditing')&&(_0x267e26['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x267e26['registerBlockAttribute']('alt')),_0x267e26['descriptionFactory']['registerDescriptionCallback'](_0x2f818b=>{if(!!_0x260359['find'](({type:_0x489494,subType:_0x889936})=>_0x2f818b['type']==_0x489494&&_0x2f818b['subType']==_0x889936))return _0x2f818b['previous']?{}:void 0x0;}),_0x267e26['descriptionFactory']['registerDescriptionCallback'](_0x5a2b15=>{if('insertion'==_0x5a2b15['type']||'deletion'==_0x5a2b15['type']){const _0x4b64ce=_0x5a2b15['getContainedElement']();if(_0x4b64ce&&_0x4b64ce['is']('element','caption'))return{'type':'insertion'==_0x5a2b15['type']?'addObject':'removeObject','element':_0x4b64ce,'quantity':0x1};}}),_0x267e26['descriptionFactory']['registerDescriptionCallback'](_0x2e857b=>'formatBlock'==_0x2e857b['type']&&'convertInlineImageToBlock'==_0x2e857b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e857b['type']&&'convertBlockImageToInline'==_0x2e857b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x267e26['descriptionFactory']['registerDescriptionCallback'](_0x14a517=>{if('attribute'!=_0x14a517['type'])return;const {data:_0x1976d5}=_0x14a517;if(!_0x1976d5||'alt'!=_0x1976d5['key'])return;const _0x583a6b=_0x1976d5['newValue'];return _0x583a6b?{'type':'format','content':o(_0x429c22,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x583a6b+'\x22')}:{'type':'format','content':o(_0x429c22,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae1c1=this['editor'],_0x19509f=_0x4ae1c1['locale'];_0x4ae1c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2364da=>{if('formatBlock'!=_0x2364da['type']&&'formatInline'!=_0x2364da['type'])return;const {data:_0x30423a}=_0x2364da;if(_0x30423a){if('imageTextAlternative'==_0x30423a['commandName']){const _0x2c7985=_0x30423a['commandParams'][0x0]['newValue'];return _0x2c7985?{'type':'format','content':o(_0x19509f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c7985+'\x22')}:{'type':'format','content':o(_0x19509f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x30423a['commandName']){const _0x75527=_0x30423a['commandParams'][0x0]['width'];return _0x75527?{'type':'format','content':o(_0x19509f,'*Set\x20image\x20width:*\x20%0',_0x75527)}:{'type':'format','content':o(_0x19509f,'*Reset\x20image\x20width*')};}}});}}class st extends _0x43d92e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xac623d=this['editor']['locale'],_0x4960f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4960f1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4960f1['registerBlockAttribute']('src'),_0x4960f1['descriptionFactory']['registerDescriptionCallback'](_0x2429d5=>{if('attribute'!=_0x2429d5['type'])return;const {data:_0x44de39}=_0x2429d5;return _0x44de39&&'src'==_0x44de39['key']?_0x44de39['newValue']&&_0x44de39['oldValue']?{'type':'format','content':o(_0xac623d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4c2acb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c2acb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4c2acb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c2acb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4c2acb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x379fd5=this['editor'],_0x537a4e=_0x379fd5['locale'];_0x379fd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bd0ba=>{if('formatBlock'!=_0x5bd0ba['type']&&'formatInline'!=_0x5bd0ba['type'])return;const {data:_0x280225}=_0x5bd0ba;if(!_0x280225||'replaceImageSource'!=_0x280225['commandName'])return;return{'type':'format','content':o(_0x537a4e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x43d92e{['afterInit'](){const _0x3aec1c=this['editor'];if(!_0x3aec1c['plugins']['has']('ImageStyleEditing'))return;const _0xc1d315=_0x3aec1c['plugins']['get']('TrackChangesEditing'),_0x226b31=_0x3aec1c['plugins']['get']('ImageUtils'),_0x265bcb={};_0xc1d315['enableCommand']('imageStyle',(_0x2d60b8,_0x43b8c0)=>{const _0x52afba=_0x3aec1c['plugins']['get']('Users')['me'],_0x2af104=_0x3aec1c['commands']['get']('imageStyle');let _0x441acf=_0x226b31['getClosestSelectedImageElement'](_0x3aec1c['model']['document']['selection']),_0x4fceb3=_0x3aec1c['model']['createRangeOn'](_0x441acf),_0x170f0e=_0x2af104['value'];if(_0x170f0e==_0x43b8c0['value'])return;const _0x20633a={'commandName':'imageStyle','commandParams':[_0x43b8c0],'formatGroupId':_0x6192a1()};_0x3aec1c['model']['change'](()=>{if(_0xc1d315['getSuggestions']()['filter'](_0x17332e=>_0x17332e['isInContent']&&_0x52afba==_0x17332e['author']&&('formatBlock'==_0x17332e['type']||'formatInline'==_0x17332e['type'])&&('imageStylePreApply'==_0x17332e['subType']||'imageStylePostApply'==_0x17332e['subType'])&&_0x17332e['getFirstRange']()['isEqual'](_0x4fceb3))['forEach'](_0x36e609=>_0xc1d315['discardSuggestion'](_0x36e609['head'])),_0x441acf=_0x226b31['getClosestSelectedImageElement'](_0x3aec1c['model']['document']['selection']),_0x4fceb3=_0x3aec1c['model']['createRangeOn'](_0x441acf),_0x2af104['refresh'](),_0x3aec1c['commands']['get']('imageTypeInline')['refresh'](),_0x3aec1c['commands']['get']('imageTypeBlock')['refresh'](),_0x170f0e=_0x2af104['value'],_0x170f0e!=_0x43b8c0['value'])return _0x226b31['isInlineImage'](_0x441acf)&&_0x2af104['shouldConvertImageType'](_0x43b8c0['value'],_0x441acf)?(_0x2d60b8({..._0x43b8c0,'setImageSizes':!0x1}),_0x441acf=_0x226b31['getClosestSelectedImageElement'](_0x3aec1c['model']['document']['selection']),void _0xc1d315['markBlockFormat'](_0x441acf,{..._0x20633a,'commandReversedParams':[{'value':_0x170f0e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x226b31['isBlockImage'](_0x441acf)?_0xc1d315['markBlockFormat'](_0x441acf,_0x20633a,[],'imageStylePostApply'):_0xc1d315['markInlineFormat'](_0x4fceb3,_0x20633a,'imageStylePostApply'));});});for(const _0x364bb0 of _0x3aec1c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x265bcb[_0x364bb0['name']]=_0x364bb0['title']['toLowerCase']();_0xc1d315['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xc1d315['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xc1d315['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xc1d315['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4c2102])=>{_0x226b31['setImageNaturalSizeAttributes'](_0x4c2102['getContainedElement']());}),_0xc1d315['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x38d335,_0x251937)=>{_0xc1d315['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x38d335,{'commandName':_0x251937['commandName'],'commandParams':_0x251937['commandReversedParams']});}),_0xc1d315['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x32a7cb,_0x316cc2){if(_0x793fe6(_0x32a7cb,_0x316cc2))return[_0x32a7cb,_0x316cc2];if(_0x793fe6(_0x316cc2,_0x32a7cb))return[_0x316cc2,_0x32a7cb];return null;});const _0x451b54=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x793fe6(_0x5c8635,_0x420de6){const _0x1079db=_0x451b54['findIndex'](({type:_0x446d99,subType:_0x5a6aa4})=>_0x5c8635['type']==_0x446d99&&_0x5c8635['subType']==_0x5a6aa4),_0x21aded=_0x451b54['findIndex'](({type:_0x304807,subType:_0x9ee505})=>_0x420de6['type']==_0x304807&&_0x420de6['subType']==_0x9ee505);if(_0x1079db<0x0||_0x21aded<0x0)return!0x1;const _0x1ae78c=_0x5c8635['getFirstRange'](),_0x38f4a3=_0x420de6['getFirstRange']();if((0x0==_0x1079db||0x1==_0x1079db)&&0x2==_0x21aded&&_0x1ae78c['isIntersecting'](_0x38f4a3))return!0x0;if(0x2==_0x1079db&&0x3==_0x21aded){const _0x32f869=_0xc1d315['_findSuggestions'](_0x1ae78c,'insertion')['filter'](({suggestion:_0x3138c8,meta:_0x312bf8})=>_0x312bf8['isOwn']&&'convertInlineImageToBlock'==_0x3138c8['subType']);if(_0x32f869['length']>0x1&&_0x38f4a3['end']['isEqual'](_0x1ae78c['start']))return!0x0;if(0x1==_0x32f869['length']&&(_0x1ae78c['start']['isEqual'](_0x38f4a3['end'])||_0x1ae78c['end']['isEqual'](_0x38f4a3['start'])))return!0x0;}if(0x3==_0x1079db&&0x3==_0x21aded&&_0x1ae78c['start']['isBefore'](_0x38f4a3['start'])){const _0x3d870a=_0x1ae78c['end']['nodeAfter'],_0x323689=_0x38f4a3['start']['nodeBefore'];return _0x226b31['isBlockImage'](_0x3d870a)&&_0x3d870a===_0x323689;}return!0x1;}_0x3aec1c['model']['document']['registerPostFixer'](()=>{let _0x38f0ee=!0x1;const _0x4a713a=Array['from'](_0x3aec1c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x393390,data:_0x459b47}of _0x4a713a){const {group:_0x4725ed,type:_0x596dc0,subType:_0x15b6b4,id:_0x804e4e}=_0xc1d315['_splitMarkerName'](_0x393390);if('suggestion'==_0x4725ed&&_0xc1d315['hasSuggestion'](_0x804e4e)){if('formatBlock'==_0x596dc0&&('imageStylePreApply'==_0x15b6b4||'imageStylePostApply'==_0x15b6b4)){const _0x413a13=_0xc1d315['getSuggestion'](_0x804e4e);if(_0x459b47['newRange']){const _0xf2452f=_0x413a13['getFirstRange']()['getContainedElement']();if(_0x226b31['isBlockImage'](_0xf2452f))continue;_0xc1d315['discardSuggestion'](_0x413a13),_0x38f0ee=!0x0;}}if('insertion'==_0x596dc0&&'imageCaption'==_0x15b6b4&&!_0x459b47['newRange']){const _0x234856=_0xc1d315['getSuggestion'](_0x804e4e);_0x234856['next']&&_0x234856['next']['isInContent']&&(_0xc1d315['discardSuggestion'](_0x234856['next']),_0x38f0ee=!0x0);}}}return _0x38f0ee;}),this['_registerLegacyDescription'](_0x265bcb);}['_registerLegacyDescription'](_0x119ce4){const _0x515bbc=this['editor'],_0x34d56e=_0x515bbc['locale'];_0x515bbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdd11f=>{if('formatBlock'!=_0xdd11f['type']&&'formatInline'!=_0xdd11f['type'])return;const {data:_0x49769f}=_0xdd11f;if(!_0x49769f||'imageStyle'!=_0x49769f['commandName'])return;const _0x3729ef=_0x49769f['commandParams'][0x0]['value'];return _0x381915('side'===_0x3729ef?o(_0x34d56e,'FORMAT_SIDE_IMAGE'):_0x119ce4[_0x3729ef]||_0x3729ef);function _0x381915(_0xfec7c3){return{'type':'format','content':o(_0x34d56e,'*Format:*\x20%0',_0xfec7c3)};}});}}class ot extends _0x43d92e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xa9d4f4){super(_0xa9d4f4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2bcfc7=this['editor'],_0x17960f=_0x2bcfc7['commands']['get']('importWord'),_0x5a4477=_0x2bcfc7['commands']['get']('trackChanges');_0x17960f&&(_0x17960f['on']('execute',(_0x5398c9,[,_0x117a12])=>{this['_trackChangesValueDuringImport']=_0x5a4477['value'],_0x117a12['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x17960f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x17960f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5a4477['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bcfc7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x467526,_0x3f4df7){const {suggestions:_0x166624}=_0x3f4df7,_0x3b6964=this['editor']['commands']['get']('trackChanges'),_0x2874de=_0x3b6964['value'];this['_trackChangesValueDuringImport']!==_0x2874de&&(_0x3b6964['execute'](),this['_trackChangesExecuted']=!0x0),_0x166624&&_0x166624['forEach'](({id:_0x32d979,type:_0x46ac14,author:_0x4a77d0,created_at:_0x42d72a})=>{const _0x372023={'id':_0x32d979,'type':_0x46ac14,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4a77d0,'createdAt':_0x42d72a?new Date(_0x42d72a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x372023);});}}class rt extends _0x43d92e{['afterInit'](){const _0x636c28=this['editor'],_0x52011b=_0x636c28['plugins']['get']('TrackChangesEditing');if(_0x636c28['plugins']['has']('IndentEditing')&&(_0x52011b['enableCommand']('indent'),_0x52011b['enableCommand']('outdent')),_0x636c28['plugins']['has']('IndentBlock')){for(const _0x3b6bd2 of['indentBlock','outdentBlock'])_0x52011b['enableDefaultAttributesIntegration'](_0x3b6bd2);}const _0x54f468=_0x636c28['locale'];_0x52011b['registerBlockAttribute']('blockIndent'),_0x52011b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x54f468,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2df6f2=this['editor'],_0x28066b=_0x2df6f2['locale'],_0x439864=_0x2df6f2['plugins']['get']('TrackChangesEditing');_0x439864['descriptionFactory']['registerDescriptionCallback'](_0x1967f8=>{if('formatBlock'!=_0x1967f8['type'])return;const {data:_0x585fea}=_0x1967f8;if(!_0x585fea)return;if('indentBlock'!=_0x585fea['commandName']&&'outdentBlock'!=_0x585fea['commandName'])return;const _0x752ca4=_0x1967f8['getItems']()[0x0],_0x16035=_0x439864['descriptionFactory']['getItemLabel'](_0x752ca4);return'indentBlock'==_0x585fea['commandName']?{'type':'format','content':o(_0x28066b,'*Indent:*\x20%0',_0x16035)}:'outdentBlock'==_0x585fea['commandName']?{'type':'format','content':o(_0x28066b,'*Outdent:*\x20%0',_0x16035)}:void 0x0;});}}class at extends _0x43d92e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x43d92e{['afterInit'](){const _0x1b4111=this['editor'];if(!_0x1b4111['plugins']['has']('LinkEditing'))return;const _0x42f6bd=_0x1b4111['plugins']['get']('TrackChangesEditing'),_0xb156c1=_0x1b4111['commands']['get']('link');_0x42f6bd['enableDefaultAttributesIntegration']('link'),_0x42f6bd['enableDefaultAttributesIntegration']('unlink'),_0x42f6bd['registerInlineAttribute']('linkHref');for(const _0x32e4bc of _0xb156c1['manualDecorators'])_0x42f6bd['registerInlineAttribute'](_0x32e4bc['id']),_0x42f6bd['descriptionFactory']['registerAttributeLabel'](_0x32e4bc['id'],'link\x20('+_0x32e4bc['label']['toLowerCase']()+')');_0x42f6bd['descriptionFactory']['registerDescriptionCallback'](_0x3f41af=>{if('attribute'!=_0x3f41af['type'])return;const {data:_0x14aa3f}=_0x3f41af;if(!_0x14aa3f||'linkHref'!=_0x14aa3f['key'])return;const _0x472a77=_0x14aa3f['newValue'],_0x3903ea=_0x1b4111['locale'];return{'type':'format','content':null==_0x472a77?o(_0x3903ea,'*Remove\x20link*'):o(_0x3903ea,'*Set\x20link:*\x20%0','\x22'+_0x472a77+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe6392=this['editor'],_0x3b67b5=_0xe6392['locale'];_0xe6392['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54e52f=>{if('formatInline'!=_0x54e52f['type'])return;const {data:_0x1a1ba9}=_0x54e52f;if(_0x1a1ba9){if('link'==_0x1a1ba9['commandName']){const _0xff23ed=_0x1a1ba9['commandParams'][0x0];return{'type':'format','content':o(_0x3b67b5,'*Set\x20link:*\x20%0','\x22'+_0xff23ed+'\x22')};}return'unlink'==_0x1a1ba9['commandName']?{'type':'format','content':o(_0x3b67b5,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x43d92e{['afterInit'](){const _0xb3d505=this['editor'],_0x3fc2cb=_0xb3d505['locale'];if(!_0xb3d505['plugins']['has']('LegacyListEditing'))return;const _0x265f10=_0xb3d505['plugins']['get']('TrackChangesEditing'),_0x52fca2=_0xb3d505['plugins']['has']('LegacyTodoListEditing');function _0x51c4a1(_0xe988c2){return()=>{const _0x10111e=_0xb3d505['model']['document']['selection'],_0x233642=_0xb3d505['commands']['get'](_0xe988c2);if(_0x233642['value'])return void _0xb3d505['execute']('paragraph',{});const _0x2cce65=_0xe988c2['slice'](0x0,-0x4),_0x459436=function(_0xf1f23e,_0x58813f,_0x1b6b8b){let _0x33ae40=Array['from'](_0xf1f23e)['filter'](_0x3c9458=>function(_0x5c97bc,_0x566b80){return _0x566b80['checkChild'](_0x5c97bc['parent'],'listItem')&&!_0x566b80['isObject'](_0x5c97bc);}(_0x3c9458,_0x1b6b8b));_0x33ae40=_0x33ae40['filter'](_0x442bc7=>!_0x442bc7['is']('element','listItem')||_0x442bc7['getAttribute']('listType')!=_0x58813f);const _0x139922=new Set();for(const _0x50ff4b of _0x33ae40)_0x50ff4b['is']('element','listItem')?_0x139922['add'](me(_0x50ff4b)):_0x139922['add'](_0x50ff4b);return Array['from'](_0x139922);}(_0x10111e['getSelectedBlocks'](),_0x2cce65,_0xb3d505['model']['schema']);_0xb3d505['model']['change'](()=>{for(const _0x4ff64b of _0x459436)_0x265f10['markBlockFormat'](_0x4ff64b,{'commandName':_0xe988c2,'commandParams':[{'forceValue':!_0x233642['value']}],'formatGroupId':'blockName'},fe(_0x4ff64b));});};}function _0xd89251(_0x217673){return()=>{const _0x2df202=function(_0x37a814){let _0x30c83a=Array['from'](_0x37a814);const _0xf64de6=_0x30c83a['findIndex'](_0x2706d1=>'listItem'!=_0x2706d1['name']);return _0xf64de6>-0x1&&(_0x30c83a=_0x30c83a['slice'](0x0,_0xf64de6)),_0x30c83a;}(_0xb3d505['model']['document']['selection']['getSelectedBlocks']()),_0x503b80=_0xb3d505['model']['createRange'](_0xb3d505['model']['createPositionAt'](_0x2df202[0x0],'before'),_0xb3d505['model']['createPositionAt'](_0x2df202[_0x2df202['length']-0x1],'end'));_0xb3d505['model']['change'](()=>{_0x265f10['markBlockFormat'](_0x503b80,{'commandName':_0x217673,'commandParams':[],'formatGroupId':'listIndent'},function(_0x510a2e){const _0x4c841f=new Set();for(const _0xfce404 of _0x510a2e){let _0xe42ffd=_0xfce404['nextSibling'];for(;_0xe42ffd&&_0xe42ffd['getAttribute']('listIndent')>_0xfce404['getAttribute']('listIndent');)_0x4c841f['add'](_0xe42ffd),_0xe42ffd=_0xe42ffd['nextSibling'];}return Array['from'](_0x4c841f);}(_0x2df202));});};}_0x265f10['enableCommand']('numberedList',_0x51c4a1('numberedList')),_0x265f10['enableCommand']('bulletedList',_0x51c4a1('bulletedList')),_0x52fca2&&_0x265f10['enableCommand']('todoList',_0x51c4a1('todoList')),_0x265f10['enableCommand']('indentList',_0xd89251('indentList')),_0x265f10['enableCommand']('outdentList',_0xd89251('outdentList')),_0x52fca2&&_0x265f10['enableCommand']('checkTodoList',()=>{const _0x5b65a7=_0xb3d505['commands']['get']('checkTodoList'),_0x183ddd=Array['from'](_0x5b65a7['_selectedElements']);_0x183ddd['filter'](_0xe060e1=>_0xe060e1['getAttribute']('todoListChecked')!=_0x5b65a7['value']),_0xb3d505['model']['change'](()=>{for(const _0x3f50fb of _0x183ddd)_0x265f10['markBlockFormat'](_0x3f50fb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5b65a7['value']}]});});}),_0x265f10['descriptionFactory']['registerElementLabel']('listItem',_0xdf4a1f=>o(_0x3fc2cb,'ELEMENT_LIST_ITEM',_0xdf4a1f)),_0x265f10['descriptionFactory']['registerDescriptionCallback'](_0x1ab972=>{if('formatBlock'!=_0x1ab972['type']&&'formatInline'!=_0x1ab972['type'])return;const {data:_0x3394d8}=_0x1ab972;if(_0x3394d8){if('numberedList'==_0x3394d8['commandName']||'bulletedList'==_0x3394d8['commandName']||'todoList'==_0x3394d8['commandName'])switch(_0x3394d8['commandName']['replace']('List','')){case'bulleted':return _0x3acbd4(o(_0x3fc2cb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3acbd4(o(_0x3fc2cb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3acbd4(o(_0x3fc2cb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3394d8['commandName'])return{'type':'format','content':o(_0x3fc2cb,'*Indent:*\x20%0',o(_0x3fc2cb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3394d8['commandName'])return{'type':'format','content':o(_0x3fc2cb,'*Outdent:*\x20%0',o(_0x3fc2cb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3394d8['commandName'])return _0x3394d8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fc2cb,'*Check\x20item*')}:{'type':'format','content':o(_0x3fc2cb,'*Uncheck\x20item*')};}function _0x3acbd4(_0xb6a436){return{'type':'format','content':o(_0x3fc2cb,'*Change\x20to:*\x20%0',_0xb6a436)};}});}}function me(_0x590abc){const _0x26c077=_0x590abc['getAttribute']('listIndent');if(0x0==_0x26c077)return _0x590abc;let _0x12af62=_0x590abc;for(;_0x590abc['previousSibling']&&_0x590abc['previousSibling']['is']('element','listItem');){const _0x19a74d=_0x590abc['previousSibling']['getAttribute']('listIndent');if(_0x19a74d==_0x26c077)_0x12af62=_0x590abc['previousSibling'];else{if(_0x19a74d<_0x26c077)break;}_0x590abc=_0x590abc['previousSibling'];}return _0x12af62;}function fe(_0x2d88e8){const _0x5ef927=[];if(_0x2d88e8['is']('element','listItem')&&_0x2d88e8['getAttribute']('listIndent')>0x0){let _0x26e543=_0x2d88e8['nextSibling'];for(;_0x26e543&&'listItem'==_0x26e543['name']&&_0x26e543['getAttribute']('listIndent')==_0x2d88e8['getAttribute']('listIndent');)_0x5ef927['push'](_0x26e543),_0x26e543=_0x26e543['nextSibling'];}return _0x5ef927;}class K extends _0x43d92e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x576817=this['editor']['config']['get']('list.properties'),_0x51d0da=this['editor']['plugins']['get']('TrackChangesEditing');_0x576817['styles']&&_0x51d0da['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x576817['reversed']&&_0x51d0da['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x576817['startIndex']&&_0x51d0da['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x51d0da['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x15e021,_0x1148ba={}){const _0x2603c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23fb06=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2603c1['markMultiRangeBlockFormat'](_0x23fb06,{'commandName':'listStyle','commandParams':[{'type':_0x1148ba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x36d38c,_0x33de87={}){const _0x4b6659=this['editor']['plugins']['get']('TrackChangesEditing'),_0x525571=this['_getSuggestionBlocks'](_0x982143=>_0x982143['is']('element','listItem')&&'numbered'===_0x982143['getAttribute']('listType'));if(_0x525571['length']<0x1)return;const _0x53a88d=_0x525571['map'](_0x123683=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x123683,'before'),this['editor']['model']['createPositionAt'](_0x123683,0x0)));this['editor']['model']['change'](()=>{_0x4b6659['markMultiRangeBlockFormat'](_0x53a88d,{'commandName':'listReversed','commandParams':[{'reversed':_0x33de87['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x548c97,_0x383cdd={}){const _0xa01bc8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4e41=this['_getSuggestionBlocks'](_0x261a54=>_0x261a54['is']('element','listItem')&&'numbered'===_0x261a54['getAttribute']('listType'));if(_0x4b4e41['length']<0x1)return;const _0x70221d=_0x4b4e41['map'](_0x24c9e5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24c9e5,'before'),this['editor']['model']['createPositionAt'](_0x24c9e5,0x0)));this['editor']['model']['change'](()=>{_0xa01bc8['markMultiRangeBlockFormat'](_0x70221d,{'commandName':'listStart','commandParams':[{'startIndex':_0x383cdd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x42db1f){if('formatBlock'!=_0x42db1f['type']&&'formatInline'!=_0x42db1f['type'])return;const _0x576aa8=this['editor']['locale'],{data:_0x351b4c}=_0x42db1f;if(!_0x351b4c)return;let _0x4fbeda,_0x13f272;switch(_0x351b4c['commandName']){case'listStyle':_0x4fbeda='*Change\x20to:*\x20%0',_0x13f272={'type':'format','content':o(_0x576aa8,_0x4fbeda,o(_0x576aa8,this['_getTranslationKeyForListStyle'](_0x351b4c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4fbeda=_0x351b4c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x13f272={'type':'format','content':o(_0x576aa8,_0x4fbeda)};break;case'listStart':_0x4fbeda='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13f272={'type':'format','content':o(_0x576aa8,_0x4fbeda,_0x351b4c['commandParams'][0x0]['startIndex'])};}return _0x13f272;}['_getSuggestionBlocksForListStyle'](){const _0x6f4c64=this['editor']['plugins']['get']('LegacyListUtils');let _0x569c27=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x569c27[0x0]?.['is']('element','listItem')&&_0x569c27['unshift'](..._0x6f4c64['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x569c27[_0x569c27['length']-0x1]?.['is']('element','listItem')&&_0x569c27['push'](..._0x6f4c64['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x569c27=[...new Set(_0x569c27)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x569c27=_0x569c27['filter'](_0x2744d7=>_0x2744d7['is']('element','listItem'))),_0x569c27;}['_getSuggestionBlocks'](_0x370caf){const _0x1e5848=this['editor']['plugins']['get']('LegacyListUtils');let _0x42f3c5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x370caf)['map'](_0x479502=>{const _0x3d4bca=this['editor']['model']['createPositionAt'](_0x479502,0x0);return[..._0x1e5848['getSiblingNodes'](_0x3d4bca,'backward'),..._0x1e5848['getSiblingNodes'](_0x3d4bca,'forward')];})['flat']();return _0x42f3c5=[...new Set(_0x42f3c5)],_0x42f3c5;}['_getTranslationKeyForListStyle'](_0x5ec2f0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5ec2f0)||'default')['toUpperCase']()+'_LIST_'+_0x5ec2f0['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x43d92e{['afterInit'](){const _0x15a8d8=this['editor'];if(!_0x15a8d8['plugins']['has']('MediaEmbedEditing'))return;const _0x1e5cf9=_0x15a8d8['plugins']['get']('TrackChangesEditing'),_0x1d93d0=_0x15a8d8['locale'];_0x1e5cf9['enableCommand']('mediaEmbed'),_0x1e5cf9['descriptionFactory']['registerElementLabel']('media',_0x2728bb=>o(_0x1d93d0,'ELEMENT_MEDIA',_0x2728bb)),_0x15a8d8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x278dcf,{writer:_0x44ed97,options:_0xba8084})=>{if(_0xba8084['showSuggestionHighlights'])return _0x44ed97['createEmptyElement']('div');},'converterPriority':'high'}),_0x15a8d8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x182460,_0x3e1ce3,_0x26242f)=>{_0x26242f['options']['showSuggestionHighlights']&&_0x182460['stop']();},{'priority':'high'});}}class gt extends _0x43d92e{['afterInit'](){const _0x34ec49=this['editor'];_0x34ec49['plugins']['has']('MentionEditing')&&_0x34ec49['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x43d92e{['afterInit'](){const _0x55d428=this['editor'],_0x51a8d1=_0x55d428['plugins']['get']('TrackChangesEditing');_0x55d428['plugins']['has']('MultiLevelList')&&(_0x51a8d1['enableDefaultAttributesIntegration']('multiLevelList'),_0x51a8d1['registerBlockAttribute']('listMarkerStyle'),_0x51a8d1['descriptionFactory']['registerDescriptionCallback'](_0xbc84e2=>this['handleDescriptions'](_0xbc84e2)));}['handleDescriptions'](_0x5e7dc2){const _0x35c7c7=this['editor']['locale'],{data:_0x29e15c}=_0x5e7dc2,_0x19ece3={'type':'format','content':''};if(_0x29e15c&&'listMarkerStyle'==_0x29e15c['key']){if(!_0x29e15c['oldValue'])return{'type':'format','content':o(_0x35c7c7,'*Set\x20format:*\x20%0',o(_0x35c7c7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29e15c['newValue']+')'};if(!_0x29e15c['newValue']){let _0x182214=_0x5e7dc2['head'];for(;_0x182214;){if(_0x182214['data']&&'listType'==_0x182214['data']['key']&&_0x182214['data']['newValue'])return _0x19ece3;_0x182214=_0x182214['next'];}return{'type':'format','content':o(_0x35c7c7,'*Remove\x20format:*\x20%0',o(_0x35c7c7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29e15c['oldValue']+')'};}}}}class mt extends _0x43d92e{['afterInit'](){const _0x25aaed=this['editor'];if(!_0x25aaed['plugins']['has']('PageBreakEditing'))return;_0x25aaed['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x12797c=_0x25aaed['plugins']['get']('TrackChangesEditing'),_0x31f072=_0x25aaed['locale'];_0x12797c['descriptionFactory']['registerElementLabel']('pageBreak',_0x246ee4=>o(_0x31f072,'ELEMENT_PAGE_BREAK',_0x246ee4));}}class dt extends _0x43d92e{['afterInit'](){const _0x124cc1=this['editor'];if(!_0x124cc1['plugins']['has']('Paragraph'))return;const _0x11bfbd=_0x124cc1['locale'],_0x5d10e3=_0x124cc1['plugins']['get']('TrackChangesEditing');_0x5d10e3['descriptionFactory']['registerElementLabel']('paragraph',_0x48af5f=>o(_0x11bfbd,'ELEMENT_PARAGRAPH',_0x48af5f)),_0x5d10e3['enableDefaultAttributesIntegration']('paragraph'),_0x5d10e3['enableCommand']('insertParagraph'),_0x124cc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x124cc1),{'priority':'highest'}),_0x124cc1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15eef5,_0x4c200e,_0x2503c)=>{_0x2503c['options']['showSuggestionHighlights']&&nr(_0x124cc1,{'showActiveMarker':!0x1})(_0x15eef5,_0x4c200e,_0x2503c);},{'priority':'highest'});const _0xccb1a1=_0x5d10e3['descriptionFactory'];_0xccb1a1['registerDescriptionCallback'](_0x5328ae=>{if('insertion'!==_0x5328ae['type'])return;const {start:_0x2e2356,end:_0x509dc0}=_0x5328ae['getFirstRange']();if(!_0x2e2356['isTouching'](_0x509dc0)||!_0x2e2356['nodeAfter'])return;const _0x42f3cb=_0x124cc1['model']['schema'],_0x210f0f=_0x2e2356['nodeAfter'];return _0x42f3cb['isBlock'](_0x210f0f)&&!_0x42f3cb['isLimit'](_0x210f0f)&&_0x42f3cb['checkChild'](_0x210f0f,'$text')?{'type':'insertion','content':o(_0x11bfbd,'*Insert:*\x20%0',_0xccb1a1['getItemLabel'](_0x210f0f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4438eb=this['editor'],_0x9df54a=_0x4438eb['locale'];_0x4438eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36df93=>{if('formatBlock'!=_0x36df93['type'])return;const {data:_0x58292c}=_0x36df93;return _0x58292c&&'paragraph'==_0x58292c['commandName']?{'type':'format','content':o(_0x9df54a,'*Change\x20to:*\x20%0',o(_0x9df54a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f8962,{showActiveMarker:_0x33beb9=!0x0}={}){return(_0x5cd8f8,_0x4b35df,_0x50a33a)=>{const _0x49dc9f=_0x2f8962['plugins']['get']('TrackChangesEditing'),_0x314b77=_0x4b35df['markerRange']['start'],_0x558202=_0x4b35df['markerRange']['end'],_0x141c73=_0x2f8962['model']['schema'];if(!_0x314b77['isTouching'](_0x558202)||!_0x314b77['nodeAfter'])return;const _0x22e130=_0x314b77['nodeAfter'];if(_0x141c73['isBlock'](_0x22e130)&&!_0x141c73['isLimit'](_0x22e130)&&_0x141c73['checkChild'](_0x22e130,'$text')){if(!_0x50a33a['consumable']['consume'](_0x4b35df['markerRange'],_0x5cd8f8['name']))return;const _0x47f741=_0x50a33a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4f447e=_0x50a33a['mapper']['toViewPosition'](_0x558202);_0x33beb9&&_0x49dc9f['activeMarkers']['includes'](_0x4b35df['markerName'])&&_0x50a33a['writer']['addClass']('ck-suggestion-marker--active',_0x47f741),_0x50a33a['writer']['insert'](_0x4f447e,_0x47f741),_0x50a33a['mapper']['bindElementToMarker'](_0x47f741,_0x4b35df['markerName']);}};}class pt extends _0x43d92e{['afterInit'](){const _0x5a3bbe=this['editor'];if(!_0x5a3bbe['plugins']['has']('RemoveFormatEditing'))return;_0x5a3bbe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34612d=this['editor'];_0x34612d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbf65=>{if('formatBlock'!=_0x3dbf65['type']&&'formatInline'!=_0x3dbf65['type'])return;const {data:_0x37064f}=_0x3dbf65;return _0x37064f&&'removeFormat'==_0x37064f['commandName']?{'type':'format','content':o(_0x34612d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x43d92e{['afterInit'](){const _0x3bcf74=this['editor'];if(!_0x3bcf74['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x350ed7=_0x3bcf74['plugins']['get']('TrackChangesEditing');_0x350ed7['enableCommand']('goToPreviousRestrictedEditingException'),_0x350ed7['enableCommand']('goToNextRestrictedEditingException');const _0x32a20b=_0x3bcf74['plugins']['get']('RestrictedEditingModeEditing');_0x32a20b['enableCommand']('trackChanges'),_0x32a20b['enableCommand']('acceptSuggestion'),_0x32a20b['enableCommand']('discardSuggestion'),_0x32a20b['enableCommand']('acceptAllSuggestions'),_0x32a20b['enableCommand']('discardAllSuggestions'),_0x32a20b['enableCommand']('acceptSelectedSuggestions'),_0x32a20b['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x43d92e{static get['requires'](){return[_0x476124];}['init'](){const _0x1705e8=this['editor'],_0x20d8e4=_0x1705e8['plugins']['get']('TrackChangesEditing');_0x20d8e4['enableCommand']('shiftEnter'),_0x1705e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1705e8),{'priority':'high'}),_0x1705e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1705e8),{'priority':'high'}),_0x1705e8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x106dd8,_0x56e6f4,_0x75596c)=>{_0x75596c['options']['showSuggestionHighlights']&&de(_0x1705e8,{'showActiveMarker':!0x1})(_0x106dd8,_0x56e6f4,_0x75596c);}),_0x20d8e4['descriptionFactory']['registerElementLabel']('softBreak',_0x594f64=>o(_0x1705e8['locale'],'ELEMENT_LINE_BREAK',_0x594f64));}}function de(_0x20e5ce,{showActiveMarker:_0x56de8f=!0x0}={}){return(_0x16ea17,_0x5513b1,_0x4bc4c9)=>{const _0x3f3def=_0x20e5ce['plugins']['get']('TrackChangesEditing');if(!_0x4bc4c9['consumable']['test'](_0x5513b1['markerRange'],_0x16ea17['name']))return;const _0x2ae5ca=_0x20e5ce['model'];for(const _0x5a54a6 of _0x5513b1['markerRange']['getItems']()){if(!_0x5a54a6['is']('element','softBreak'))continue;const _0x14ceea='deletion'==_0x5513b1['markerName']['split'](':')[0x1]?'merge':'split',_0x5a096a=_0x4bc4c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14ceea}),_0x4a72ad=_0x4bc4c9['mapper']['toViewPosition'](_0x2ae5ca['createPositionBefore'](_0x5a54a6));_0x56de8f&&_0x3f3def['activeMarkers']['includes'](_0x5513b1['markerName'])&&_0x4bc4c9['writer']['addClass']('ck-suggestion-marker--active',_0x5a096a),_0x4bc4c9['writer']['insert'](_0x4a72ad,_0x5a096a),_0x4bc4c9['mapper']['bindElementToMarker'](_0x5a096a,_0x5513b1['markerName']);}};}class wt extends _0x43d92e{['afterInit'](){const _0x4a4bbb=this['editor'],_0x437e55=_0x4a4bbb['model'],_0x5e0246=_0x4a4bbb['locale'];if(!_0x4a4bbb['plugins']['has']('StandardEditingModeEditing'))return;const _0x3876e3=_0x4a4bbb['plugins']['get']('TrackChangesEditing'),_0x7b318='restrictedEditingException',_0x324364=_0x4a4bbb['commands']['get'](_0x7b318);_0x3876e3['enableCommand'](_0x7b318,(_0x101643,_0x3caff0={})=>{const _0x175682=_0x437e55['document']['selection'];if(_0x175682['isCollapsed'])return void _0x101643(_0x3caff0);const _0x5df4ec=void 0x0!==_0x3caff0['forceValue']?_0x3caff0['forceValue']:!_0x324364['value'];_0x437e55['change'](()=>{const _0x4410d1=Array['from'](_0x175682['getRanges']());for(const _0x73bd9b of _0x4410d1){const _0x51e849=_0x5df4ec?[_0x73bd9b]:io(_0x7b318,_0x73bd9b,_0x437e55);for(const _0x441501 of _0x51e849)_0x3876e3['markInlineFormat'](_0x441501,{'commandName':_0x7b318,'commandParams':[{'forceValue':_0x5df4ec}]});}});}),_0x3876e3['descriptionFactory']['registerDescriptionCallback'](_0x4a5ebe=>{if('formatBlock'!=_0x4a5ebe['type']&&'formatInline'!=_0x4a5ebe['type'])return;const {data:_0x3c0a2b}=_0x4a5ebe;return _0x3c0a2b&&_0x3c0a2b['commandName']==_0x7b318?_0x3c0a2b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e0246,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e0246,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x43d92e{['afterInit'](){const _0x592167=this['editor'];if(!_0x592167['plugins']['has']('Style')||!_0x592167['plugins']['has']('DataSchema'))return;const _0x4e7a9c=_0x592167['plugins']['get']('TrackChangesEditing'),_0x2ea4ef=_0x592167['locale'],_0x61a5=_0x592167['config']['get']('style')||{},_0x11b3b9=_0x592167['plugins']['get']('GeneralHtmlSupport'),_0x2dff62=_0x592167['plugins']['get']('StyleUtils')['normalizeConfig'](_0x592167['plugins']['get']('DataSchema'),_0x61a5['definitions']);_0x4e7a9c['enableDefaultAttributesIntegration']('style');const _0x5791e8=new Set();for(const _0x1b3b91 of _0x2dff62['block']){const _0x433444=_0x11b3b9['getGhsAttributeNameForElement'](_0x1b3b91['element']);_0x5791e8['add'](_0x433444);}const _0x3b170f=new Set();for(const _0x3a21b7 of _0x2dff62['inline']){const _0x32fa13=_0x11b3b9['getGhsAttributeNameForElement'](_0x3a21b7['element']);_0x3b170f['add'](_0x32fa13);for(const _0x4c690b of _0x3a21b7['ghsAttributes'])_0x3b170f['add'](_0x4c690b);}for(const _0x36a44d of _0x5791e8)_0x4e7a9c['registerBlockAttribute'](_0x36a44d),_0x4e7a9c['descriptionFactory']['registerAttributeLabel'](_0x36a44d,o(_0x2ea4ef,'FORMAT_STYLE'));for(const _0x17ec4d of _0x3b170f)_0x4e7a9c['registerInlineAttribute'](_0x17ec4d),_0x4e7a9c['descriptionFactory']['registerAttributeLabel'](_0x17ec4d,o(_0x2ea4ef,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x178ec9=this['editor'],_0x5b6756=_0x178ec9['locale'];_0x178ec9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27dc6a=>{if('formatBlock'!=_0x27dc6a['type']&&'formatInline'!=_0x27dc6a['type'])return;const {data:_0x324c68}=_0x27dc6a;return _0x324c68&&'style'===_0x324c68['commandName']?_0x324c68['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b6756,'*Set\x20format:*\x20%0',_0x324c68['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5b6756,'*Remove\x20format:*\x20%0',_0x324c68['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x43d92e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x33c595){super(_0x33c595),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xd0d754=this['editor'],_0x27edbd=_0xd0d754['model']['document']['selection'];if(!_0xd0d754['plugins']['has']('TableEditing'))return;const _0x519ed9=_0xd0d754['locale'],_0x381ca3=_0xd0d754['plugins']['get']('TrackChangesEditing'),_0x3dfcce=_0xd0d754['plugins']['get']('TableUtils');_0x381ca3['descriptionFactory']['registerElementLabel']('table',_0x5ec3e9=>o(_0x519ed9,'ELEMENT_TABLE',_0x5ec3e9)),this['_setupColumnsRowsFixing'](),_0x381ca3['enableCommand']('insertTable'),_0x381ca3['enableCommand']('selectTableRow'),_0x381ca3['enableCommand']('selectTableColumn');for(const _0x34a697 of['insertTableRowAbove','insertTableRowBelow']){const _0xcf23e3=_0xd0d754['commands']['get'](_0x34a697);_0x381ca3['enableCommand'](_0x34a697,_0x5b3188=>{_0xd0d754['model']['change'](_0x14ba8e=>{_0x5b3188();const _0x196d25='above'===_0xcf23e3['order'],_0x104822=_0x3dfcce['getSelectionAffectedTableCells'](_0x27edbd),_0x3f4682=_0x3dfcce['getRowIndexes'](_0x104822),_0x47cbf8=_0x196d25?_0x3f4682['first']-0x1:_0x3f4682['last']+0x1,_0x285017=_0x104822[0x0]['findAncestor']('table'),_0x36f8bc=_0x3dfcce['createTableWalker'](_0x285017,{'startRow':_0x47cbf8,'endRow':_0x47cbf8}),_0xc82fb4=Array['from'](_0x36f8bc)['map'](_0x336489=>_0x14ba8e['createRangeOn'](_0x336489['cell']));_0x381ca3['markMultiRangeInsertion'](_0xc82fb4,'tableRow');});});}for(const _0x4f09b1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4fccc2=_0xd0d754['commands']['get'](_0x4f09b1);_0x381ca3['enableCommand'](_0x4f09b1,_0x35e2bf=>{_0xd0d754['model']['change'](_0x3702e0=>{_0x35e2bf();const _0x2ccd1='left'===_0x4fccc2['order'],_0x5e3acd=_0x3dfcce['getSelectionAffectedTableCells'](_0x27edbd),_0x43daa4=_0x3dfcce['getColumnIndexes'](_0x5e3acd),_0x5190e9=_0x2ccd1?_0x43daa4['first']-0x1:_0x43daa4['last']+0x1,_0x5d7540=_0x5e3acd[0x0]['findAncestor']('table'),_0x4e5db7=_0x3dfcce['createTableWalker'](_0x5d7540,{'startRow':0x0,'column':_0x5190e9,'includeAllSlots':!0x1}),_0x340716=Array['from'](_0x4e5db7)['map'](_0x349dde=>_0x3702e0['createRangeOn'](_0x349dde['cell']));_0x381ca3['markMultiRangeInsertion'](_0x340716,'tableColumn');});});}for(const _0x2f2c1f of['removeTableRow','removeTableColumn']){const _0x418434=_0x2f2c1f['substr'](0xb),_0x523e56=_0x418434['toLowerCase'](),_0x59ac70=_0x523e56['substr'](0x0,0x3)+'span',_0x56c43f='table'+_0x418434,_0x472e7f='min'+_0x418434,_0x212f6f='max'+_0x418434;_0x381ca3['enableCommand'](_0x2f2c1f,()=>{_0xd0d754['model']['change'](_0x36264e=>{const _0x537e04=_0x3dfcce['getSelectionAffectedTableCells'](_0x27edbd),_0x5e955a=_0x537e04[0x0]['findAncestor']('table');let _0x4c2535;if('removeTableRow'==_0x2f2c1f){const _0x26a412=_0x3dfcce['getRowIndexes'](_0x537e04);_0x4c2535={'startRow':_0x26a412['first'],'endRow':_0x26a412['last'],'includeAllSlots':!0x0};}else{const _0xed4670=_0x3dfcce['getColumnIndexes'](_0x537e04);_0x4c2535={'startColumn':_0xed4670['first'],'endColumn':_0xed4670['last'],'includeAllSlots':!0x0};}const _0x454e65=_0x3dfcce['createTableWalker'](_0x5e955a,_0x4c2535),_0x12f439=Array['from'](_0x454e65)['map'](({cell:_0x131b1c})=>_0x131b1c),_0x58382f=Ee(_0x12f439['filter'](_0x31621c=>_0x31621c['hasAttribute'](_0x59ac70))),_0x43dd69=Ee(_0x12f439['filter'](_0x16d160=>!_0x16d160['hasAttribute'](_0x59ac70)))['map'](_0x49eee8=>_0x36264e['createRangeOn'](_0x49eee8)),_0x44dd57=_0x381ca3['markMultiRangeDeletion'](_0x43dd69,_0x56c43f);if(_0x44dd57&&('tableRow'==_0x44dd57['subType']||'tableColumn'==_0x44dd57['subType'])){const _0xe87a09=this['_getSuggestionCoords'](_0x44dd57);for(const _0x57fdd2 of _0x58382f){const _0x4903da=_0x36264e['createRangeOn'](_0x57fdd2),_0x3a6faf=_0x3dfcce['getCellLocation'](_0x57fdd2),_0x15b232=_0x57fdd2['getAttribute'](_0x59ac70)-0x1,_0x1bb42e=_0xe87a09[_0x472e7f],_0x13024e=_0xe87a09[_0x212f6f];_0x1bb42e<=_0x3a6faf[_0x523e56]&&_0x3a6faf[_0x523e56]+_0x15b232<=_0x13024e&&_0x44dd57['addRange'](_0x4903da);}}});});}function _0x203b72(_0x1c00c4){const _0x64685e=Array['from'](_0x27edbd['getRanges']())['map'](_0x2faeb2=>_0x48a09a['fromRange'](_0x2faeb2));_0xd0d754['model']['change'](_0x354c02=>{const _0x48b822=_0x354c02['batch'];_0x1c00c4=_0x1c00c4['filter'](_0x38ad91=>'$graveyard'!=_0x38ad91['root']['rootName']),_0x354c02['setSelection'](_0x1c00c4),_0xd0d754['commands']['get']('removeTableRow')['refresh'](),_0xd0d754['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xd0d754['model']['enqueueChange'](()=>{_0xd0d754['model']['enqueueChange'](_0x48b822,_0x4fec4d=>{const _0x5f1472=_0x64685e['filter'](_0x589c6b=>'$graveyard'!=_0x589c6b['root']['rootName']);_0x5f1472['length']>0x0&&_0x4fec4d['setSelection'](_0x5f1472);for(const _0x9cefa6 of _0x64685e)_0x9cefa6['detach']();});});});}function _0x385d8f(_0x4826a7){_0xd0d754['model']['change'](_0x4de0a6=>{const _0x4da009=Array['from'](_0x27edbd['getRanges']())['map'](_0x2064fc=>_0x48a09a['fromRange'](_0x2064fc)),_0x419f27=[];for(const _0x5e2274 of _0x4826a7)for(const _0x5445d3 of _0x5e2274['getItems']({'shallow':!0x0}))_0x419f27['push'](_0x5445d3);for(const _0x3dd4d2 of _0x419f27)'$graveyard'!=_0x3dd4d2['root']['rootName']&&(_0x4de0a6['setSelection'](_0x4de0a6['createPositionAt'](_0x3dd4d2,0x0)),_0xd0d754['commands']['get']('removeTableColumn')['refresh'](),_0xd0d754['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4daede=_0x4da009['filter'](_0x4e4eb8=>'$graveyard'!=_0x4e4eb8['root']['rootName']);_0x4daede['length']>0x0&&_0x4de0a6['setSelection'](_0x4daede);for(const _0x217349 of _0x4da009)_0x217349['detach']();});}function _0x4f623f(_0x242b5b,_0x479827){return _0x479827['every'](_0x134964=>_0x242b5b['some'](_0x39a3b5=>_0x39a3b5['end']['isEqual'](_0x134964['start'])||_0x134964['end']['isEqual'](_0x39a3b5['start'])));}function _0x1cc762(_0x4fd394,_0x412f2f){return!_0x4fd394['some'](_0x14eaf7=>_0x412f2f['some'](_0x38b6f0=>_0x14eaf7['isIntersecting'](_0x38b6f0)))&&_0x4fd394['some'](_0x8341ba=>_0x412f2f['some'](_0x32ce36=>_0x8341ba['end']['isTouching'](_0x32ce36['start'])));}_0xd0d754['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xed66a,_0x1cb8a6,_0x58002d)=>{if(!_0x58002d['options']['showSuggestionHighlights'])return;const _0x4d6cf7=_0x1cb8a6['item'];if(!_0x4d6cf7)return;const _0x1cbbf1=_0x58002d['mapper']['toViewElement'](_0x4d6cf7);function _0x5e6021(_0x292ad7){return Array['isArray'](_0x292ad7)?_0x292ad7:[_0x292ad7];}_0x1cbbf1&&'tableCell'===_0x4d6cf7['name']&&_0x51e3db(_0x1cbbf1,_0x58002d['writer'],(_0x2c463b,_0x38be3c,_0x296613)=>_0x296613['addClass'](_0x5e6021(_0x38be3c['classes']),_0x2c463b),(_0x248d7e,_0x1f1f4d,_0x528e85)=>_0x528e85['removeClass'](_0x5e6021(_0x1f1f4d['classes']),_0x248d7e));},{'priority':'highest'}),_0x381ca3['descriptionFactory']['registerDescriptionCallback'](_0x369428=>{if('insertion'!=_0x369428['type']&&'deletion'!=_0x369428['type'])return;const _0x484af0=_0x369428['getContainedElement']();if(null!=_0x484af0&&_0x484af0['is']('element','table')){if('insertion'==_0x369428['type']){const _0x1a4b7f=_0x369428['getItems']()['filter'](_0x34b84d=>_0x34b84d['is']('$textProxy'))['map'](_0x18df0=>_0x18df0['data']);if(_0x1a4b7f['length'])return{'type':'insertion','content':o(_0x519ed9,'*Insert:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a4b7f['join']('\x20')+'\x22'))};}if('deletion'==_0x369428['type']){const _0x432383=_0x369428['getItems']()['filter'](_0x2ffc03=>_0x2ffc03['is']('$textProxy'))['map'](_0x18016b=>_0x18016b['data']);if(_0x432383['length'])return{'type':'deletion','content':o(_0x519ed9,'*Remove:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x432383['join']('\x20')+'\x22'))};}}}),_0x381ca3['descriptionFactory']['registerDescriptionCallback'](_0x22b0af=>{if('tableRow'==_0x22b0af['subType']){const _0x1c3652=_0x22b0af['getItems']()['filter'](_0x266ea1=>_0x266ea1['is']('$textProxy'))['map'](_0x2a02de=>_0x2a02de['data']),_0x4ee95a=this['_getSuggestionCoords'](_0x22b0af),_0x5d7f37=_0x4ee95a['maxRow']-_0x4ee95a['minRow']+0x1;if('insertion'==_0x22b0af['type'])return _0x1c3652['length']?{'type':'insertion','content':o(_0x519ed9,'*Insert:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d7f37,'\x22'+_0x1c3652['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x519ed9,'*Insert:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_ROW',_0x5d7f37))};if('deletion'==_0x22b0af['type'])return _0x1c3652['length']?{'type':'deletion','content':o(_0x519ed9,'*Remove:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d7f37,'\x22'+_0x1c3652['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x519ed9,'*Remove:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_ROW',_0x5d7f37))};}if('tableColumn'==_0x22b0af['subType']){const _0x5be6c0=_0x22b0af['getItems']()['filter'](_0x3f43dc=>_0x3f43dc['is']('$textProxy'))['map'](_0x1f9174=>_0x1f9174['data']),_0x16cf4a=this['_getSuggestionCoords'](_0x22b0af),_0x5f2869=_0x16cf4a['maxColumn']-_0x16cf4a['minColumn']+0x1;if('insertion'==_0x22b0af['type'])return _0x5be6c0['length']?{'type':'insertion','content':o(_0x519ed9,'*Insert:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f2869,'\x22'+_0x5be6c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x519ed9,'*Insert:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_COLUMN',_0x5f2869))};if('deletion'==_0x22b0af['type'])return _0x5be6c0['length']?{'type':'deletion','content':o(_0x519ed9,'*Remove:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f2869,'\x22'+_0x5be6c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x519ed9,'*Remove:*\x20%0',o(_0x519ed9,'ELEMENT_TABLE_COLUMN',_0x5f2869))};}}),_0x381ca3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x203b72),_0x381ca3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x203b72),_0x381ca3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x385d8f),_0x381ca3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x385d8f),_0x381ca3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f623f),_0x381ca3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f623f),_0x381ca3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1cc762),_0x381ca3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1cc762);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3b8706=this['editor'],_0x41fb1a=_0x3b8706['model']['document']['selection'];return(_0x3af2af,_0x505c0c)=>{_0x3b8706['model']['change'](_0x4e654c=>{const {commandName:_0x485e80,commandParams:_0x48637e}=_0x505c0c;let _0x3d8e0b=_0x3af2af[0x0]['end']['nodeBefore'];_0x48637e&&_0x48637e[0x0]&&!0x1===_0x48637e[0x0]['forceValue']&&(_0x3d8e0b=_0x3af2af[0x0]['start']['nodeAfter']);const _0x34248b=_0x4e654c['createRangeIn'](_0x3d8e0b);if('$graveyard'==_0x34248b['root']['rootName'])return;const _0x2afc3b=Array['from'](_0x41fb1a['getRanges']())['map'](_0x16b92d=>_0x48a09a['fromRange'](_0x16b92d));_0x4e654c['setSelection'](_0x34248b),_0x3b8706['commands']['get'](_0x485e80)['refresh'](),_0x48637e['push']({'forceDefaultExecution':!0x0}),_0x3b8706['execute'](_0x485e80,..._0x48637e);const _0x537544=_0x2afc3b['filter'](_0x5b28ce=>'$graveyard'!=_0x5b28ce['root']['rootName']);_0x537544['length']>0x0&&_0x4e654c['setSelection'](_0x537544);for(const _0x341042 of _0x2afc3b)_0x341042['detach']();});};}['_getCoordsForCells'](_0xae41e4){const _0x37033a=this['editor']['plugins']['get']('TableUtils');let _0x5514c3=Number['MAX_SAFE_INTEGER'],_0x501969=Number['MIN_SAFE_INTEGER'],_0xd9d8b3=Number['MAX_SAFE_INTEGER'],_0x5a9602=Number['MIN_SAFE_INTEGER'];for(const _0x5bbac8 of _0xae41e4){if('$graveyard'==_0x5bbac8['root']['rootName'])continue;const {row:_0x3458c9,column:_0x10dc0d}=_0x37033a['getCellLocation'](_0x5bbac8),_0x1b8651=_0x5bbac8['hasAttribute']('rowspan')?_0x5bbac8['getAttribute']('rowspan')-0x1:0x0,_0x49a190=_0x5bbac8['hasAttribute']('colspan')?_0x5bbac8['getAttribute']('colspan')-0x1:0x0;_0x5514c3=_0x3458c9<_0x5514c3?_0x3458c9:_0x5514c3,_0x501969=_0x3458c9+_0x1b8651>_0x501969?_0x3458c9+_0x1b8651:_0x501969,_0xd9d8b3=_0x10dc0d<_0xd9d8b3?_0x10dc0d:_0xd9d8b3,_0x5a9602=_0x10dc0d+_0x49a190>_0x5a9602?_0x10dc0d+_0x49a190:_0x5a9602;}return{'minRow':_0x5514c3,'maxRow':_0x501969,'minColumn':_0xd9d8b3,'maxColumn':_0x5a9602};}['_setupColumnsRowsFixing'](){const _0x403faf=this['editor'],_0x5731cc=_0x403faf['plugins']['get']('TrackChangesEditing'),_0xc876b=_0x403faf['plugins']['get']('TableUtils');_0x403faf['model']['document']['on']('change:data',()=>{const _0x53cda2=Array['from'](_0x403faf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48db5e,data:_0x326019}of _0x53cda2){const {group:_0x2e419c,id:_0x4a97b8,subType:_0x5f210d}=_0x5731cc['_splitMarkerName'](_0x48db5e);if('suggestion'!=_0x2e419c)continue;if(null!=_0x326019['oldRange'])continue;const _0x32b32d=_0x5731cc['getSuggestion'](_0x4a97b8);this['_tablePostFixingSubtypes']['includes'](_0x5f210d)&&this['_tableSuggestions']['add'](_0x32b32d);}},{'priority':'low'});const _0x1d2429=(_0x15a579,_0x4fab02)=>{let _0x32d125=!0x1;const _0x2e9af9=_0x4fab02['createRangeOn'](_0x15a579),_0x25bf14=_0x15a579['findAncestor']('table'),_0x2044b5=_0xc876b['getCellLocation'](_0x15a579);for(const _0x2dddb6 of this['_tableSuggestions']){const _0x1617aa=_0x2dddb6['subType'],_0x4a4ce3=_0x1617aa['startsWith']('tablePaste'),_0x1803a5=_0x1617aa['substr'](_0x4a4ce3?0xa:0x5),_0x1604fb=_0x1803a5['toLowerCase'](),_0x1b16d5=_0x1604fb['substr'](0x0,0x3)+'span',_0x232466='min'+_0x1803a5,_0x3fdce3='max'+_0x1803a5;if(!_0x2dddb6['isInContent'])continue;if(_0x25bf14!=_0x2dddb6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2dddb6['isIntersectingWithRange'](_0x2e9af9))continue;const _0x3ad3c5=_0x15a579['hasAttribute'](_0x1b16d5)?_0x15a579['getAttribute'](_0x1b16d5)-0x1:0x0,_0x289e1e=this['_getSuggestionCoords'](_0x2dddb6),_0x4528de=_0x289e1e[_0x232466],_0x32b7f5=_0x289e1e[_0x3fdce3];_0x4528de<=_0x2044b5[_0x1604fb]&&_0x2044b5[_0x1604fb]+_0x3ad3c5<=_0x32b7f5&&(_0x2dddb6['addRange'](_0x2e9af9),_0x32d125=!0x0);}return _0x32d125;};_0x403faf['model']['document']['registerPostFixer'](_0x16ae47=>{let _0xe30736=!0x1;for(const _0x148e77 of _0x403faf['model']['document']['differ']['getChanges']())if('insert'==_0x148e77['type']){if('tableRow'==_0x148e77['name']){for(const _0x21dc91 of _0x148e77['position']['nodeAfter']['getChildren']())_0xe30736=_0xe30736||_0x1d2429(_0x21dc91,_0x16ae47);}else'tableCell'==_0x148e77['name']&&(_0xe30736=_0xe30736||_0x1d2429(_0x148e77['position']['nodeAfter'],_0x16ae47));}return _0xe30736;});}['_getSuggestionCoords'](_0x2deb74){return this['_getCoordsForCells'](_0x2deb74['getRanges']()['map'](_0x23cc0b=>_0x23cc0b['start']['nodeAfter']));}}function Ee(_0x43e261){return Array['from'](new Set(_0x43e261)['values']());}class St extends _0x43d92e{static get['requires'](){return[jt];}['afterInit'](){const _0x99446e=this['editor'],_0x3c7878=_0x99446e['model']['document']['selection'],_0x36dc6a=_0x99446e['locale'];if(!_0x99446e['plugins']['has']('TableEditing'))return;const _0x1ccadb=_0x99446e['plugins']['get']('TrackChangesEditing'),_0x52175a=_0x99446e['plugins']['get']('TableUtils'),_0x1e92ae=_0x99446e['plugins']['get'](jt);_0x1e92ae['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ccadb['enableCommand']('mergeTableCells',()=>{const _0x367988=_0x52175a['getSelectionAffectedTableCells'](_0x99446e['model']['document']['selection']);_0x99446e['model']['change'](()=>{_0x1ccadb['markMultiRangeBlockFormat'](_0x367988,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x99446e['commands']['get']('mergeTableCells')['on']('execute',(_0x3c897a,_0x54ace9)=>{_0x99446e['commands']['get']('trackChanges')['value']&&(_0x54ace9['length']>0x0&&_0x54ace9[_0x54ace9['length']-0x1]&&_0x54ace9[_0x54ace9['length']-0x1]['forceDefaultExecution']||_0x1ccadb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3c897a['stop']());},{'priority':'highest'});for(const _0x15d85d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3426af=_0x99446e['commands']['get'](_0x15d85d);_0x1ccadb['enableCommand'](_0x15d85d,()=>{const _0x27548b=_0x99446e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25498e=>_0x25498e['is']('element','tableCell')),_0x191cc1=_0x3426af['value'];_0x99446e['model']['change'](()=>{_0x1ccadb['markMultiRangeBlockFormat']([_0x27548b,_0x191cc1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31f217 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x169f28=_0x99446e['commands']['get'](_0x31f217);_0x1ccadb['enableCommand'](_0x31f217,()=>{const _0x462852=_0x52175a['getSelectionAffectedTableCells'](_0x99446e['model']['document']['selection'])[0x0],_0x416dae=_0x462852['findAncestor']('table'),{column:_0x5b11ef,row:_0x34f7c0}=_0x52175a['getCellLocation'](_0x462852);let _0x941f9d=[];if('horizontally'==_0x169f28['direction']){const _0xf69d7e=_0x52175a['createTableWalker'](_0x416dae,{'startRow':_0x34f7c0,'endRow':_0x34f7c0,'includeAllSlots':!0x0});_0x941f9d=Array['from'](_0xf69d7e)['map'](_0x479f13=>_0x479f13['cell']);}else{const _0x1b8d5f=_0x52175a['createTableWalker'](_0x416dae,{'column':_0x5b11ef,'includeAllSlots':!0x0});_0x941f9d=Array['from'](_0x1b8d5f)['map'](_0x5cd9f0=>_0x5cd9f0['cell']);}_0x99446e['model']['change'](_0x5ac917=>{_0x1ccadb['markBlockFormat'](_0x5ac917['createRangeOn'](_0x462852),{'commandName':_0x31f217,'commandParams':[]},_0x941f9d,_0x31f217);});});}_0x1ccadb['descriptionFactory']['registerDescriptionCallback'](_0x4b9897=>{if('formatBlock'!=_0x4b9897['type']&&'formatInline'!=_0x4b9897['type'])return;const {data:_0x1244f8}=_0x4b9897;return _0x1244f8&&'mergeTableCells'==_0x1244f8['commandName']?{'type':'format','content':o(_0x36dc6a,'*Merge\x20cells*')}:void 0x0;}),_0x1ccadb['descriptionFactory']['registerDescriptionCallback'](_0x1061db=>{if('formatBlock'!=_0x1061db['type']&&'formatInline'!=_0x1061db['type'])return;const {data:_0xe22b46}=_0x1061db;return _0xe22b46?'splitTableCellVertically'==_0xe22b46['commandName']?{'type':'format','content':o(_0x36dc6a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xe22b46['commandName']?{'type':'format','content':o(_0x36dc6a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x429b87=_0x1e92ae['_acceptFormatSuggestionCallbackFactory']();for(const _0x5c3f10 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ccadb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c3f10,'accept',_0x429b87);for(const _0x1e5f04 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ccadb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e5f04,'accept',_0x429b87);_0x1ccadb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x373094=>{_0x99446e['model']['change'](_0x4462b3=>{const _0x439f30=Array['from'](_0x3c7878['getRanges']())['map'](_0x4b2573=>_0x48a09a['fromRange'](_0x4b2573));_0x4462b3['setSelection'](_0x373094),_0x99446e['commands']['get']('mergeTableCells')['refresh'](),_0x99446e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5959c4=_0x439f30['filter'](_0x27513c=>'$graveyard'!=_0x27513c['root']['rootName']);_0x5959c4['length']>0x0&&_0x4462b3['setSelection'](_0x5959c4);for(const _0x431d40 of _0x439f30)_0x431d40['detach']();});});for(const _0x341ca2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2c0ca8=_0x99446e['commands']['get'](_0x341ca2);_0x2c0ca8['on']('set:isEnabled',(_0x48721a,_0x60a3a5,_0x3eb91c)=>{if(_0x3eb91c){const _0x1eb9be=_0x99446e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3796e1=>_0x3796e1['is']('element','tableCell'));this['_areMergableCells'](_0x2c0ca8['value'],_0x1eb9be)||(_0x48721a['return']=!0x1,_0x48721a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25da6e=this['editor']['commands']['get']('mergeTableCells'),_0x18fed2=this['editor']['plugins']['get']('TableUtils');if(!_0x25da6e['isEnabled'])return!0x1;const _0x4b5177=_0x18fed2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d594d of _0x4b5177)for(const _0x18c10c of _0x4b5177)if(_0x3d594d!=_0x18c10c&&!this['_areMergableCells'](_0x3d594d,_0x18c10c))return!0x1;return!0x0;}['_areMergableCells'](_0x4631b9,_0xee0c75){const _0x77c3bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16918f=this['editor']['model']['createRangeOn'](_0x4631b9),_0x19b7a9=this['editor']['model']['createRangeOn'](_0xee0c75),_0x5d23bc=new Set(),_0x4c4a8d=new Set();for(const _0x1bcb61 of _0x77c3bd['getSuggestions']())if(('insertion'==_0x1bcb61['type']||'deletion'==_0x1bcb61['type']||'mergeTableCells'==_0x1bcb61['subType'])&&_0x1bcb61['isInContent']){for(const _0x2aae77 of _0x1bcb61['getRanges']())_0x2aae77['containsRange'](_0x16918f,!0x0)&&_0x5d23bc['add'](_0x1bcb61['type']+':'+_0x1bcb61['author']['id']),_0x2aae77['containsRange'](_0x19b7a9,!0x0)&&_0x4c4a8d['add'](_0x1bcb61['type']+':'+_0x1bcb61['author']['id']);}if(_0x5d23bc['size']!=_0x4c4a8d['size'])return!0x1;for(const _0x3ccbfe of _0x5d23bc)if(!_0x4c4a8d['has'](_0x3ccbfe))return!0x1;return!0x0;}}class At extends _0x43d92e{static get['requires'](){return[jt];}['afterInit'](){const _0x5da12b=this['editor'];if(!_0x5da12b['plugins']['has']('TableEditing'))return;const _0x491d9f=_0x5da12b['locale'],_0x1fe830=_0x5da12b['plugins']['get']('TrackChangesEditing');_0x1fe830['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1fe830['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1fe830['registerBlockAttribute']('headingRows'),_0x1fe830['registerBlockAttribute']('headingColumns'),_0x1fe830['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x491d9f,'FORMAT_HEADER_ROW')),_0x1fe830['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x491d9f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d9e01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x105d45=this['editor']['plugins']['get']('TableUtils'),_0x35036c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x4d84b1({showActiveMarker:_0x618179=!0x0,setDataAttribute:_0x29a43c=!0x0}={}){return(_0x5d724e,_0x2eb8e8,_0x49d7d5)=>{const {type:_0x582d26,id:_0x431577}=_0x2d9e01['_splitMarkerName'](_0x2eb8e8['markerName']),_0x596d5d=_0x2d9e01['getSuggestion'](_0x431577),_0x1fe595=_0x596d5d['data'];if('formatBlock'!=_0x596d5d['type']||!_0x1fe595||'setTableColumnHeader'!=_0x1fe595['commandName'])return;if(_0x2eb8e8['item'])return void _0x5d724e['stop']();if(!_0x49d7d5['consumable']['consume'](_0x2eb8e8['markerRange'],_0x5d724e['name']))return;const _0x311e04=_0x2eb8e8['markerRange']['start']['nodeAfter'],_0x3af38c=_0x2eb8e8['markerRange']['end']['nodeBefore'],_0x592b55=_0x311e04['parent']['parent'],{column:_0x34b2a8}=_0x105d45['getCellLocation'](_0x311e04),{column:_0x1f461f}=_0x105d45['getCellLocation'](_0x3af38c);for(let _0x347c1a=_0x34b2a8;_0x347c1a<=_0x1f461f;_0x347c1a++){const _0x429745=_0x105d45['createTableWalker'](_0x592b55,{'column':_0x347c1a,'includeAllSlots':!0x1});for(const _0x43bc64 of _0x429745){const _0x12db20=_0x43bc64['cell'],_0x7c46a9=_0x49d7d5['mapper']['toViewElement'](_0x12db20);_0x49d7d5['writer']['addClass']('ck-suggestion-marker-'+_0x582d26,_0x7c46a9),_0x29a43c&&_0x49d7d5['writer']['setAttribute']('data-suggestion',_0x431577,_0x7c46a9),_0x49d7d5['mapper']['bindElementToMarker'](_0x7c46a9,_0x2eb8e8['markerName']),_0x618179&&(_0x2d9e01['activeMarkers']['includes'](_0x2eb8e8['markerName'])?_0x49d7d5['writer']['addClass']('ck-suggestion-marker--active',_0x7c46a9):_0x49d7d5['writer']['removeClass']('ck-suggestion-marker--active',_0x7c46a9));}}};}_0x2d9e01['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x35036c),_0x2d9e01['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x35036c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4d84b1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4be144,_0x3a756b,_0x5e2a62)=>{_0x5e2a62['options']['showSuggestionHighlights']&&_0x4d84b1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4be144,_0x3a756b,_0x5e2a62);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1bc657,_0x32bf7e,_0x194d74)=>{const {type:_0x559b08,id:_0x2c1df5}=_0x2d9e01['_splitMarkerName'](_0x32bf7e['markerName']),_0x409e65=_0x2d9e01['getSuggestion'](_0x2c1df5),_0x580cfb=_0x409e65['data'];if('formatBlock'!=_0x409e65['type']||!_0x580cfb||'setTableColumnHeader'!=_0x580cfb['commandName'])return;const _0x5460b0=_0x194d74['mapper']['markerNameToElements'](_0x32bf7e['markerName']);if(_0x5460b0){for(const _0x35b7ee of _0x5460b0)_0x194d74['writer']['removeClass']('ck-suggestion-marker-'+_0x559b08,_0x35b7ee),_0x194d74['writer']['removeClass']('ck-suggestion-marker--active',_0x35b7ee),_0x194d74['writer']['removeAttribute']('data-suggestion',_0x35b7ee),_0x194d74['mapper']['unbindElementFromMarkerName'](_0x35b7ee,_0x32bf7e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d179=this['editor'],_0x5d0570=_0x20d179['locale'];function _0x6b9266(_0x49d731){return{'type':'format','content':o(_0x5d0570,'*Format:*\x20%0',_0x49d731)};}_0x20d179['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bdcbc=>{if('formatBlock'!=_0x2bdcbc['type'])return;const {data:_0x4dc65d}=_0x2bdcbc;if(_0x4dc65d){if('setTableRowHeader'==_0x4dc65d['commandName']){const _0x14d9b9=_0x4dc65d['commandParams'][0x0]['forceValue'];return _0x6b9266(o(_0x5d0570,_0x14d9b9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4dc65d['commandName']){const _0x1c2cb2=_0x4dc65d['commandParams'][0x0]['forceValue'];return _0x6b9266(o(_0x5d0570,_0x1c2cb2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x58f21c=>[_0x58f21c,null]));class It extends _0x43d92e{static get['requires'](){return[jt];}['afterInit'](){const _0xa26ec4=this['editor'];if(!_0xa26ec4['plugins']['has']('TableClipboard'))return;const _0x110913=_0xa26ec4['plugins']['get']('TrackChangesEditing'),_0x6f6fa4=_0xa26ec4['plugins']['get']('TableUtils'),_0x222db6=_0xa26ec4['plugins']['get'](jt),_0x1c2dbe=_0xa26ec4['plugins']['get']('TableClipboard');_0x222db6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xa26ec4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xa26ec4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3724e2=null;_0xa26ec4['model']['on']('insertContent',(_0x3b2c8c,_0x19d8d2)=>{const [_0x1829bf,_0x16f5fe]=_0x19d8d2,_0x25abf9=_0x19d8d2[_0x19d8d2['length']-0x1];_0x25abf9&&_0x25abf9['forceDefaultExecution']||_0x110913['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5dc414,_0x23ec0c,_0x1906b3,_0x37ab41,_0x42ee98){if(_0x23ec0c&&!_0x23ec0c['is']('documentSelection'))return!0x1;const _0x286375=_0x42ee98['getTableIfOnlyTableInContent'](_0x5dc414,_0x1906b3);if(!_0x286375||!he(_0x286375,void 0x0,_0x37ab41))return!0x1;const _0x1d3b66=_0x37ab41['getSelectionAffectedTableCells'](_0x1906b3['document']['selection']);if(!_0x1d3b66['length'])return!0x1;const _0x3ec135=_0x1d3b66[0x0]['findAncestor']('table'),_0x2a044e=_0x37ab41['getRowIndexes'](_0x1d3b66),_0x4e41fa=_0x37ab41['getColumnIndexes'](_0x1d3b66),_0x441a47={'startRow':_0x2a044e['first'],'endRow':_0x2a044e['last'],'startColumn':_0x4e41fa['first'],'endColumn':_0x4e41fa['last']};return 0x1==_0x1d3b66['length']&&(_0x441a47['endRow']+=_0x37ab41['getRows'](_0x286375)-0x1,_0x441a47['endColumn']+=_0x37ab41['getColumns'](_0x286375)-0x1),he(_0x3ec135,_0x441a47,_0x37ab41);}(_0x1829bf,_0x16f5fe,_0xa26ec4['model'],_0x6f6fa4,_0x1c2dbe)&&(_0x3b2c8c['stop'](),_0x3724e2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xa26ec4['model']['change'](()=>{_0xa26ec4['model']['insertContent'](_0x19d8d2[0x0],_0x19d8d2[0x1],_0x19d8d2[0x2],{'forceDefaultExecution':!0x0});const _0x32b460=_0x6192a1(),{rowInsertionRanges:_0x1315a1,columnInsertionRanges:_0x219118,insertionRanges:_0x1e83a4,deletionRanges:_0x18b844,cells:_0x8dfa94}=_0x3724e2;_0x1315a1['length']&&_0x110913['markMultiRangeInsertion'](_0x1315a1,'tablePasteRow',{'tablePasteChainId':_0x32b460}),_0x219118['length']&&_0x110913['markMultiRangeInsertion'](_0x219118,'tablePasteColumn',{'tablePasteChainId':_0x32b460}),_0x1e83a4['length']&&(_0x110913['markMultiRangeInsertion'](_0x1e83a4,'tablePaste',{'tablePasteChainId':_0x32b460,'skipNestingCheck':!0x0}),_0x1e83a4['forEach'](_0x825818=>_0x825818['detach']?.())),_0x18b844['length']&&(_0x110913['markMultiRangeDeletion'](_0x18b844,'tablePaste',{'tablePasteChainId':_0x32b460,'skipNestingCheck':!0x0}),_0x18b844['forEach'](_0x6b5145=>_0x6b5145['detach']?.()));const _0x28aa73=_0x110913['markMultiRangeBlockFormat'](_0x8dfa94['map'](({element:_0x13d90a})=>_0x13d90a),{'formatGroupId':_0x6192a1()},[],'tablePasteCell',{'tablePasteChainId':_0x32b460});if(_0x28aa73){const _0x58e65a=_0x28aa73['getMarkers'](),_0xea2dd6=[];for(const {element:_0x3dccd5,attributes:_0x1b8acd}of _0x8dfa94){if(!_0x1b8acd)continue;const _0x503f5b=_0xa26ec4['model']['createRangeOn'](_0x3dccd5),_0x22f2c2=_0x58e65a['find'](_0x4e51cb=>_0x4e51cb['getRange']()['isEqual'](_0x503f5b));_0x22f2c2&&_0xea2dd6['push']([_0x22f2c2['name'],_0x1b8acd]);}_0xea2dd6['length']&&_0x28aa73['setAttribute']('markerAttributes',Object['fromEntries'](_0xea2dd6));}_0x3724e2=null;}));},{'priority':_0x2ee883['high']+0xa}),_0xa26ec4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x193d69,_0x40123d)=>{const [_0x5b6aae,_0xe1c59b,,_0x5806a4]=_0x40123d;if(!_0x3724e2)return;_0x193d69['stop']();const _0x37dc1e=_0x5b6aae['cell'],_0x488676=_0xe1c59b,_0x4df892=Pe(_0x37dc1e),_0x1ffcd4=Pe(_0x488676);_0x193d69['return']=_0x37dc1e;let _0xe99302=null,_0x476eb6=null;if(_0x1ffcd4||_0x4df892){if(_0x4df892&&!_0x1ffcd4){_0x5806a4['remove'](_0x37dc1e['getChild'](0x0));for(const _0x2d9dd7 of Array['from'](_0x488676['getChildren']()))_0x5806a4['insert'](_0x2d9dd7,_0x37dc1e,'end');const _0x45ee7c=_0x3724e2['rowInsertionIndexes']['includes'](_0x5b6aae['row']),_0x229eff=_0x3724e2['columnInsertionIndexes']['includes'](_0x5b6aae['column']);_0x45ee7c||_0x229eff||(_0xe99302=_0x48a09a['fromRange'](_0x5806a4['createRangeIn'](_0x37dc1e)));}else _0x1ffcd4&&!_0x4df892&&(_0x476eb6=_0x5806a4['createRangeIn'](_0x37dc1e));}else{const _0x373ba6=_0x5806a4['createElement']('tableCellSuggestion'),_0x3997b9=_0x5806a4['createElement']('tableCellSuggestion');_0x5806a4['wrap'](_0x5806a4['createRangeIn'](_0x37dc1e),_0x3997b9),_0x5806a4['insert'](_0x373ba6,_0x37dc1e,0x0);for(const _0xffbc0c of Array['from'](_0x488676['getChildren']()))_0x5806a4['insert'](_0xffbc0c,_0x373ba6,'end');_0xe99302=_0x48a09a['fromRange'](_0x5806a4['createRangeOn'](_0x373ba6)),_0x476eb6=_0x48a09a['fromRange'](_0x5806a4['createRangeOn'](_0x3997b9));}const _0xa0d2d4=Array['from'](_0x488676['getAttributes']())['filter'](([_0x511a5a])=>ge['includes'](_0x511a5a));_0x3724e2['cells']['push']({'element':_0x37dc1e,'attributes':_0xa0d2d4['length']?Object['fromEntries'](_0xa0d2d4):null}),_0xe99302&&_0x3724e2['insertionRanges']['push'](_0xe99302),_0x476eb6&&_0x3724e2['deletionRanges']['push'](_0x476eb6);},{'priority':'high'}),_0x6f6fa4['on']('insertColumns',(_0x23b308,_0x259c07)=>{const [_0x166a8f,_0xdaaeb9={}]=_0x259c07;if(!_0x3724e2)return;const _0x1c45c8=_0xdaaeb9['at']||0x0,_0x24f0ed=_0xdaaeb9['columns']||0x1;_0x3724e2['columnInsertionIndexes']=new Array(_0x24f0ed)['fill'](_0x1c45c8)['map']((_0x3a045d,_0x3a162c)=>_0x3a045d+_0x3a162c);for(const {cell:_0x16f804}of _0x6f6fa4['createTableWalker'](_0x166a8f,{'startColumn':_0x1c45c8,'endColumn':_0x1c45c8+_0x24f0ed-0x1}))_0x3724e2['columnInsertionRanges']['push'](_0xa26ec4['model']['createRangeOn'](_0x16f804));},{'priority':'low'}),_0x6f6fa4['on']('insertRows',(_0x4f2f71,_0x38f34e)=>{const [_0x51b405,_0x28dfb2={}]=_0x38f34e;if(!_0x3724e2)return;const _0x54c147=_0x28dfb2['at']||0x0,_0x73fe23=_0x28dfb2['rows']||0x1;_0x3724e2['rowInsertionIndexes']=new Array(_0x73fe23)['fill'](_0x54c147)['map']((_0x5924d4,_0x322426)=>_0x5924d4+_0x322426);for(const {cell:_0x2abcdd}of _0x6f6fa4['createTableWalker'](_0x51b405,{'startRow':_0x54c147,'endRow':_0x54c147+_0x73fe23-0x1}))_0x3724e2['rowInsertionRanges']['push'](_0xa26ec4['model']['createRangeOn'](_0x2abcdd));},{'priority':'low'}),_0x110913['descriptionFactory']['registerDescriptionCallback'](_0x3ecf9d=>{if(_0x3ecf9d['subType']&&_0x3ecf9d['subType']['startsWith']('tablePaste'))return _0x3ecf9d['previous']?{}:{'type':'insertion','content':o(_0xa26ec4['locale'],'*Replace\x20table\x20cells*')};});const _0x4ed40e=()=>!0x1;for(const _0x3d02af of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x110913['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d02af,'join',_0x4ed40e),_0x110913['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d02af,'join',_0x4ed40e),_0x110913['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d02af,'join',_0x4ed40e);_0x110913['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ed40e),_0x110913['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x25a9ad,_0x46bca9,_0x1f48c1)=>{const _0x134337=_0x25a9ad['map'](_0x70f4a7=>_0x70f4a7['getContainedElement']())['filter'](_0x267081=>_0x267081),_0x6fea82=new Map(_0x134337['map'](_0x13b825=>[_0x13b825,null]));if(_0x3724e2){for(const {element:_0xaec0db,attributes:_0x1f5132}of _0x3724e2['cells'])_0x1f5132&&_0x6fea82['set'](_0xaec0db,_0x1f5132);}else{if(_0x1f48c1&&_0x1f48c1['markerAttributes'])for(const [_0x442466,_0x5eb14c]of Object['entries'](_0x1f48c1['markerAttributes'])){const _0x5cbf60=_0xa26ec4['model']['markers']['get'](_0x442466),_0x2923e8=_0x5cbf60?_0x5cbf60['getRange']()['getContainedElement']():null;_0x2923e8&&_0x6fea82['set'](_0x2923e8,_0x5eb14c);}}_0xa26ec4['model']['change'](_0x5cb285=>{for(const [_0xa750b8,_0x13ad9b]of _0x6fea82)_0x5cb285['setAttributes']({...Ce,..._0x13ad9b},_0xa750b8);});});const _0x5bc4f0=(_0x26589d,_0x38cf3a)=>{_0x110913['_suggestionFactory']['registerCustomCallback'](_0x26589d,'tablePaste',_0x38cf3a,(_0x4cf763,_0x519f41,_0x50588a)=>{_0xa26ec4['model']['change'](_0xbca517=>{const _0x519569=[];for(const _0x5cb6e0 of _0x4cf763){const _0x2f3cbf=_0x5cb6e0['start']['nodeAfter'];_0x2f3cbf['is']('element','tableCellSuggestion')&&_0x519569['push'](_0x2f3cbf);}_0x110913['_suggestionFactory']['getSuggestionCallback'](_0x26589d,null,_0x38cf3a)(_0x4cf763,_0x519f41,_0x50588a);for(const _0x5d2a60 of _0x519569)'$graveyard'!=_0x5d2a60['root']['rootName']&&_0xbca517['unwrap'](_0x5d2a60);});});};_0x5bc4f0('insertion','accept'),_0x5bc4f0('insertion','discard'),_0x5bc4f0('deletion','accept'),_0x5bc4f0('deletion','discard'),_0x110913['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x267d12=>{const _0x1e0eaf=_0x267d12['map'](_0x195517=>_0x195517['getContainedElement']()),_0x40d60c=_0x1e0eaf[0x0]['findAncestor']('table'),{minRow:_0x3e75bf,maxRow:_0x57cf98}=_0x222db6['_getCoordsForCells'](_0x1e0eaf);_0x6f6fa4['removeRows'](_0x40d60c,{'at':_0x3e75bf,'rows':_0x57cf98-_0x3e75bf+0x1});}),_0x110913['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x296d6e=>{const _0x2f1277=_0x296d6e['map'](_0x22f8e3=>_0x22f8e3['getContainedElement']()),_0x2ea7f7=_0x2f1277[0x0]['findAncestor']('table'),{minColumn:_0x28dcf9,maxColumn:_0x2e2ade}=_0x222db6['_getCoordsForCells'](_0x2f1277);_0x6f6fa4['removeColumns'](_0x2ea7f7,{'at':_0x28dcf9,'columns':_0x2e2ade-_0x28dcf9+0x1});});const _0x281118=(_0x5315a9,_0x128631)=>{if(!_0x128631['subType']||!_0x128631['subType']['startsWith']('tablePaste'))return;const _0x3dfe4b=_0x128631['attributes']['tablePasteChainId'],_0x3a1868=_0x110913['getSuggestions']()['filter'](_0x1d7684=>_0x1d7684['isInContent']&&_0x1d7684['attributes']&&_0x1d7684['attributes']['tablePasteChainId']==_0x3dfe4b);_0x3a1868['length']&&_0x128631['getAllAdjacentSuggestions']()['length']!=_0x3a1868['length']&&_0x3a1868['reduce']((_0x3c377a,_0x8e42d3)=>(_0x3c377a['next']=_0x8e42d3,_0x8e42d3['previous']=_0x3c377a,_0x8e42d3));};function _0x3b6958(_0x292041,_0x7a2177=!0x0){const {id:_0x404c7a}=_0x110913['_splitMarkerName'](_0x292041['markerName']),_0x3bfa9d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xfe72f=_0x110913['activeMarkers']['includes'](_0x292041['markerName']);return _0xfe72f&&_0x3bfa9d['push']('ck-suggestion-marker--active'),{'classes':_0x3bfa9d,'attributes':{'data-suggestion':_0x404c7a},'priority':_0xfe72f&&_0x7a2177?0xbc2:0xbb8};}_0x110913['on']('suggestionLoaded',_0x281118,{'priority':'high'}),_0x110913['on']('suggestionUnloaded',_0x281118,{'priority':'high'}),_0xa26ec4['model']['document']['registerPostFixer'](()=>{let _0x1cc778=!0x1;const _0x39461d=Array['from'](_0xa26ec4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x426237,data:_0x569295}of _0x39461d){const {group:_0x3550ea,type:_0x589123,id:_0x4071b9}=_0x110913['_splitMarkerName'](_0x426237);if('suggestion'!=_0x3550ea||'deletion'!=_0x589123||_0x569295['oldRange'])continue;if(!_0x110913['hasSuggestion'](_0x4071b9))continue;const _0x2a2a52=_0x110913['getSuggestion'](_0x4071b9)['getRanges'](),_0x3a90f0=_0xa26ec4['plugins']['get']('Users')['me'];for(const _0x22c262 of _0x110913['getSuggestions']()){if(!_0x22c262['isInContent']||_0x22c262['author']!=_0x3a90f0)continue;if('formatBlock'!=_0x22c262['type']||'tablePasteCell'!=_0x22c262['subType'])continue;if(_0x22c262['getRanges']()['every'](_0x52f803=>_0x2a2a52['some'](_0x57b7a2=>_0x57b7a2['containsRange'](_0x52f803,!0x0)))){for(const _0x3feea0 of _0x22c262['getAllAdjacentSuggestions']())_0x3feea0['isInContent']&&(_0x3feea0['discard'](),_0x1cc778=!0x0);}}}return _0x1cc778;}),_0xa26ec4['model']['document']['registerPostFixer'](_0x1d37a3=>{const _0x155e85=_0xa26ec4['commands']['get']('redo');if(!_0x155e85||!_0x155e85['_createdBatches']['has'](_0x1d37a3['batch']))return!0x1;let _0x4428ed=!0x1;const _0x4b9c1a=_0xa26ec4['plugins']['get']('Users')['me'],_0x1857a2=_0xa26ec4['model']['document']['differ']['getChanges'](),_0x4014ed=Array['from'](_0xa26ec4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x33a3c0,data:_0x4a0bae})=>{const {group:_0x591ec2,subType:_0x41891a,authorId:_0x3ae8a1}=_0x110913['_splitMarkerName'](_0x33a3c0);return'suggestion'==_0x591ec2&&'tablePaste'==_0x41891a&&_0x3ae8a1==_0x4b9c1a['id']&&!_0x4a0bae['oldRange'];});for(const _0x8a2250 of _0x1857a2){if('insert'!=_0x8a2250['type']||'tableCellSuggestion'!=_0x8a2250['name']||0x1!=_0x8a2250['length'])continue;const _0x3c1a62=_0x1d37a3['createRange'](_0x8a2250['position'],_0x8a2250['position']['getShiftedBy'](0x1));if(!_0x4014ed['find'](({data:_0x103241})=>_0x103241['newRange']['isEqual'](_0x3c1a62))){for(const {name:_0x2165d8,data:_0x36e7f9}of _0x4014ed)if(_0x3c1a62['containsRange'](_0x36e7f9['newRange'])){_0x1d37a3['updateMarker'](_0x2165d8,{'range':_0x3c1a62}),_0x4428ed=!0x0;break;}}}return _0x4428ed;}),_0xa26ec4['model']['document']['registerPostFixer'](_0xc850e5=>{let _0x5a5d5e=!0x1;const _0x2689ee=_0xa26ec4['plugins']['get']('Users')['me'],_0x1d22ea=_0x110913['getSuggestions']()['filter'](_0x3f36bd=>_0x3f36bd['isInContent']&&_0x3f36bd['author']==_0x2689ee),_0x571848=new Set(),_0x4b1559=new Set();for(const _0x17ee88 of _0x1d22ea)if('tablePaste'==_0x17ee88['subType'])for(const _0x51a4db of _0x17ee88['getMarkers']()){const _0x4bc237=_0x51a4db['getRange']()['getContainedElement']();if(_0x4bc237){if(_0x4bc237['is']('element','tableCellSuggestion')&&Pe(_0x4bc237)){_0x17ee88['removeMarker'](_0x51a4db['name']),_0x571848['add'](_0x4bc237),_0x5a5d5e=!0x0;const _0xb1a2dc=_0x4bc237['nextSibling'],_0x974203=_0x4bc237['previousSibling'],_0x16aff2=_0xb1a2dc&&_0xb1a2dc['is']('element','tableCellSuggestion'),_0x309a90=_0x974203&&_0x974203['is']('element','tableCellSuggestion');_0x16aff2&&!_0x571848['has'](_0xb1a2dc)&&_0x4b1559['add'](_0xb1a2dc),_0x309a90&&!_0x571848['has'](_0x974203)&&_0x4b1559['add'](_0x974203);}else _0x4bc237['is']('element','paragraph')&&_0x4bc237['isEmpty']&&(_0x17ee88['removeMarker'](_0x51a4db['name']),_0x5a5d5e=!0x0);}}else{if('tablePasteCell'==_0x17ee88['subType']){if(!_0x17ee88['attributes']||!_0x17ee88['attributes']['tablePasteChainId'])continue;const _0x4005b9=_0x17ee88['attributes']['markerAttributes'];if(_0x4005b9&&Object['keys'](_0x4005b9)['length'])continue;const _0x5f4c19=_0x17ee88['attributes']['tablePasteChainId'];let _0x1b1735=!0x0,_0x1aba42=!0x0;for(const _0x2bf52d of _0x1d22ea)if(_0x2bf52d['subType']&&_0x2bf52d['subType']['startsWith']('tablePaste')){if(!_0x2bf52d['attributes']['tablePasteChainId']){_0x1aba42=!0x1;break;}if(_0x2bf52d['id']!=_0x17ee88['id']&&_0x2bf52d['attributes']['tablePasteChainId']==_0x5f4c19){_0x1b1735=!0x1;break;}}_0x1aba42&&_0x1b1735&&(_0x17ee88['removeMarkers'](),_0x5a5d5e=!0x0);}}for(const _0x4d3691 of _0x571848)_0xc850e5['remove'](_0x4d3691);for(const _0x237008 of _0x4b1559)_0xc850e5['unwrap'](_0x237008);return _0x5a5d5e;}),_0xa26ec4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xa8c4ec,_0x3ea812)=>_0x3b6958(_0xa8c4ec),'converterPriority':'high'}),_0xa26ec4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24b841,_0x53c268)=>_0x53c268['options']['showSuggestionHighlights']?_0x3b6958(_0x24b841,!0x1):null,'converterPriority':'high'});const _0x160e92=_0xa26ec4['editing']['view'];this['listenTo'](_0x160e92['document'],'clipboardOutput',(_0x3dca7d,_0x5e8e90)=>{const _0x51b26a=[];for(const _0x1f9c6f of _0x160e92['createRangeIn'](_0x5e8e90['content'])['getItems']())_0x1f9c6f['is']('element','suggestion-td')&&_0x51b26a['push'](_0x1f9c6f);_0x160e92['change'](_0x71f6fc=>{for(const _0x4788bc of _0x51b26a)_0x71f6fc['move'](_0x71f6fc['createRangeIn'](_0x4788bc),_0x71f6fc['createPositionBefore'](_0x4788bc)),_0x71f6fc['remove'](_0x4788bc);});});}}function Pe(_0x585074){if(_0x585074['isEmpty'])return!0x0;const _0x1b2b99=_0x585074['getChild'](0x0);return _0x1b2b99['is']('element','paragraph')&&_0x1b2b99['isEmpty'];}function he(_0xecefb,_0x7f19d2={},_0x3779ee){for(const {isAnchor:_0x54b102,cellHeight:_0xdd40d0,cellWidth:_0x43566c}of _0x3779ee['createTableWalker'](_0xecefb,{'includeAllSlots':!0x0,..._0x7f19d2}))if(!_0x54b102||0x1!=_0xdd40d0||0x1!=_0x43566c)return!0x1;return!0x0;}class vt extends _0x43d92e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x260ca3=this['editor']['plugins']['get']('TrackChangesEditing');_0x260ca3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x260ca3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x260ca3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260ca3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x260ca3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x260ca3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x290239,_0x184422){const _0x459997=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c60af=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x7c9160=_0x184422['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x26f200=_0x2c60af['getColumnGroupElement'](_0x7c9160);let _0x5f4344=_0x26f200?_0x2c60af['getTableColumnsWidths'](_0x26f200):null,_0x2bfee0=_0x7c9160['getAttribute']('tableWidth')||null;const _0x4e827e=_0x184422['tableWidth']||_0x2bfee0,_0x4b6603=_0x184422['columnWidths']||_0x5f4344,_0x518565=this['editor']['plugins']['get']('Users')['me'];for(const _0x144660 of _0x459997['getSuggestions']()){const _0x430cf4=_0x144660['getContainedElement']();if('resizeTable'===_0x144660['subType']&&_0x430cf4===_0x7c9160){_0x144660['author']!==_0x518565&&_0x144660['discard']();const _0x5bc993=_0x144660['data']['commandParams'];_0x2bfee0=_0x5bc993[0x0]['tableWidth'],_0x5f4344=_0x5bc993[0x0]['columnWidths'];break;}}_0x290239({'table':_0x7c9160,'tableWidth':_0x4e827e,'columnWidths':_0x4b6603}),_0x459997['markBlockFormat'](_0x7c9160,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2bfee0,'columnWidths':_0x5f4344}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x51b8bb){if('formatBlock'!=_0x51b8bb['type']&&'formatInline'!=_0x51b8bb['type'])return;const {data:_0x1c7fdb}=_0x51b8bb;if(_0x1c7fdb&&'resizeTable'===_0x1c7fdb['formatGroupId']){const _0x556371='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x556371)};}}}class Ct extends _0x43d92e{['afterInit'](){const _0x28078d=this['editor'];_0x28078d['plugins']['has']('Template')&&_0x28078d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x43d92e{['afterInit'](){const _0x1fcd03=this['editor'];if(!_0x1fcd03['commands']['get']('insertTableOfContents'))return;_0x1fcd03['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2e1e93=_0x1fcd03['plugins']['get']('TrackChangesEditing'),_0x43c180=_0x1fcd03['locale'];_0x2e1e93['descriptionFactory']['registerElementLabel']('tableOfContents',_0x41c56f=>o(_0x43c180,'ELEMENT_TABLE_OF_CONTENTS',_0x41c56f));}}class Dt extends _0x43d92e{['afterInit'](){const _0xc6d8e1=this['editor'];if(!_0xc6d8e1['plugins']['has']('Title'))return;const _0x2faf20=_0xc6d8e1['plugins']['get']('TrackChangesEditing');_0x2faf20['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xc6d8e1['locale'],'ELEMENT_TITLE')),_0xc6d8e1['model']['document']['registerPostFixer'](_0x1daea6=>{let _0x346c3d=!0x1;const _0x20e7f0=Array['from'](_0xc6d8e1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a9888,data:_0x39bca5}of _0x20e7f0){const {group:_0x4d9510}=_0x2faf20['_splitMarkerName'](_0x4a9888);if('suggestion'!==_0x4d9510||!_0x39bca5['newRange'])continue;const _0x533f0d=_0x39bca5['newRange'],_0x5e5c1b=_0x533f0d['end']['nodeBefore'];if(!_0x5e5c1b||!_0x5e5c1b['is']('element','title-content'))continue;if(!_0x533f0d['start']['isTouching'](_0x533f0d['end']))continue;const _0x5d77e9=_0xc6d8e1['model']['schema']['getNearestSelectionRange'](_0x533f0d['end'],'forward');if(_0x5d77e9&&_0x5d77e9['isCollapsed']){const _0x823d10=_0x1daea6['createRange'](_0x533f0d['start'],_0x5d77e9['start']);_0x823d10['isEqual'](_0x533f0d)||(_0x1daea6['updateMarker'](_0x4a9888,{'range':_0x823d10}),_0x346c3d=!0x0);}_0x346c3d||(_0x1daea6['removeMarker'](_0x4a9888),_0x346c3d=!0x0);}return _0x346c3d;});}}class Nt extends _0x43d92e{['afterInit'](){const _0x14afb1=this['editor'],_0x5e520c=_0x14afb1['plugins']['get']('TrackChangesEditing');_0x14afb1['plugins']['has']('UndoEditing')&&(_0x5e520c['enableCommand']('undo'),_0x5e520c['enableCommand']('redo'));}}class Mt extends _0x43d92e{static get['requires'](){return[jt];}['afterInit'](){const _0x222cc1=this['editor'];if(!_0x222cc1['plugins']['has']('TableCaptionEditing'))return;_0x222cc1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x43d92e{['tableProperties'];['tableCellProperties'];constructor(_0x3f8274){super(_0x3f8274),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x163ea1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4282a5 of this['tableProperties'])_0x163ea1['enableCommand'](_0x4282a5,(_0x3e35de,_0x39a56d)=>{const _0xebcb43=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4282a5,[_0xebcb43],this['tableProperties'],'tableProperties',_0x3e35de,_0x39a56d);});_0x163ea1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x163ea1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x163ea1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x8e0d4b,_0x4ad181)=>this['handleDiscardAction'](this['tableProperties'],_0x8e0d4b,_0x4ad181)),_0x163ea1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x83665 of this['tableCellProperties'])_0x163ea1['enableCommand'](_0x83665,(_0x5af030,_0xa5d262)=>{const _0x44066b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x83665,_0x44066b,this['tableCellProperties'],'tableCellProperties',_0x5af030,_0xa5d262);});_0x163ea1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x163ea1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x163ea1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x347200,_0x3210b7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x347200,_0x3210b7)),_0x163ea1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x163ea1['descriptionFactory']['registerDescriptionCallback'](_0xae0d07=>this['handleSuggestionDescription'](_0xae0d07));}['_handlePropertyChange'](_0x515abb,_0xdbf8f0,_0x256e81,_0x19930e,_0x255721,_0x4a0206){const _0x435081=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4a0206['batch'],()=>{for(const _0x4c0212 of _0xdbf8f0){if(this['_getSuggestion'](_0x4c0212,_0x19930e))_0x255721(_0x4a0206);else{const _0x10e0f1={};for(const _0x4cf6b9 of _0x256e81){const _0x2b3168=_0x4c0212['getAttribute'](_0x4cf6b9);void 0x0!==_0x2b3168&&(_0x10e0f1[_0x4cf6b9]=_0x2b3168);}_0x255721(_0x4a0206),_0x435081['markBlockFormat'](_0x4c0212,{'commandParams':[_0x10e0f1]},[],_0x19930e);}}});}['handleDiscardAction'](_0x2dde85,_0x410c3e,_0x56674e){const _0x13a96c=_0x410c3e[0x0]['start']['nodeAfter'],_0x5cc91b=_0x56674e['commandParams'][0x0];this['editor']['model']['change'](_0x5100b6=>{for(const _0x275fc8 of _0x2dde85)void 0x0!==_0x5cc91b[_0x275fc8]?_0x5100b6['setAttribute'](_0x275fc8,_0x5cc91b[_0x275fc8],_0x13a96c):_0x5100b6['removeAttribute'](_0x275fc8,_0x13a96c);});}['handleSuggestionDescription'](_0x15f444){if(_0x15f444['data'])switch(_0x15f444['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'](_0x500b58,_0x5a5613){const _0x20476c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5a8950 of _0x20476c['getSuggestions']({'skipNotAttached':!0x0})){const _0x4414b6=_0x5a8950['getContainedElement']();if(_0x5a8950['subType']===_0x5a5613&&_0x4414b6===_0x500b58)return _0x5a8950;}return null;}}const m='$elementName';class p extends _0x43d92e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1ad8ad,_0x1f91e4,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5c3403){function _0x4e6d85(_0x2a1328){return _0x2a1328['map'](_0x4014a8=>String['fromCharCode'](_0x4014a8))['join']('');}super(_0x5c3403),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x50b0fb,_0x18fab8,_0x5bbfc3,_0x3c43b7)=>{this['_model']['change'](()=>{for(const _0x169c7d of[..._0x3c43b7,..._0x5bbfc3])this['_model']['markers']['has'](_0x169c7d)&&_0x5c3403['editing']['reconvertMarker'](_0x169c7d);});}),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']=_0x5c3403['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(),_0x5c3403['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c3403['config']['get']('trackChanges.trackFormatChanges'),_0x5c3403['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c3403['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5c3403,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4e6d85([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4e6d85([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x38]);}['init'](){const _0x137b19=this['editor'],_0x860346=(_0x48bbf7,_0x3c3a36)=>{if('attribute'!=_0x48bbf7)return'ck-suggestion-marker-'+_0x48bbf7;const _0x43a138=_0x3c3a36['split']('|')[0x0];return this['_isBlockAttribute'](_0x43a138)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x137b19['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x28fd26=>{const {id:_0x234bee,type:_0x77e53a,subType:_0x3e8505}=this['_splitMarkerName'](_0x28fd26['markerName']),_0x3f6a98=['ck-suggestion-marker',_0x860346(_0x77e53a,_0x3e8505)];let _0xc211a5=0xbb8;return this['activeMarkers']['includes'](_0x28fd26['markerName'])&&(_0x3f6a98['push']('ck-suggestion-marker--active'),_0xc211a5=0xbc2),'deletion'==_0x77e53a&&(_0xc211a5+=0x5),{'classes':_0x3f6a98,'attributes':{'data-suggestion':_0x234bee},'priority':_0xc211a5};}}),_0x137b19['conversion']['for']('dataDowncast')['add'](_0x228441=>{_0x228441['on']('addMarker:suggestion',(_0x465b17,_0x259f0d,_0x1681c3)=>{if(!_0x1681c3['options']['showSuggestionHighlights'])return;const _0xa82e9=_0x259f0d['item'];if(!_0xa82e9)return;const _0x2d7ea2=_0x1681c3['mapper']['toViewElement'](_0xa82e9);_0x137b19['model']['schema']['isObject'](_0xa82e9)&&_0x2d7ea2&&!_0x2d7ea2['getCustomProperty']('widget')&&_0x2d7ea2['is']('containerElement')&&_0x11aa07(_0x2d7ea2,_0x1681c3['writer']);},{'priority':'high'});}),_0x137b19['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x373fc7,_0x5c7121)=>{if(!_0x5c7121['options']['showSuggestionHighlights'])return null;const {type:_0x9f9154,subType:_0x55e1b1}=this['_splitMarkerName'](_0x373fc7['markerName']);return{'classes':['ck-suggestion-marker',_0x860346(_0x9f9154,_0x55e1b1)],'priority':0xbb8};}});const _0x24c22f=({showActiveMarkers:_0x1f4c1d=!0x0,isAttributeSuggestion:_0x360ff0=!0x1}={})=>(_0x6746e8,_0xc77275,_0x54e381)=>{if(!_0xc77275['item'])return;const {id:_0x84c012}=this['_splitMarkerName'](_0xc77275['markerName']);if(_0x360ff0){const _0x408d39=this['_suggestions']['get'](_0x84c012),_0x22e873=this['_getAttributeKey'](_0x408d39);if(!this['_isBlockAttribute'](_0x22e873))return;}if(_0xc77275['item']['is']('selection'))return void _0x54e381['consumable']['consume'](_0xc77275['item'],_0x6746e8['name']);const _0x4129bb=_0x54e381['mapper']['toViewElement'](_0xc77275['item']);if(_0xc77275['item']['is']('element')&&_0x137b19['model']['schema']['isBlock'](_0xc77275['item'])&&!_0x4129bb['getCustomProperty']('addHighlight')){_0x54e381['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4129bb),_0x54e381['writer']['setAttribute']('data-suggestion',_0x84c012,_0x4129bb),_0x54e381['mapper']['bindElementToMarker'](_0x4129bb,_0xc77275['markerName']),_0x1f4c1d&&(this['activeMarkers']['includes'](_0xc77275['markerName'])?_0x54e381['writer']['addClass']('ck-suggestion-marker--active',_0x4129bb):_0x54e381['writer']['removeClass']('ck-suggestion-marker--active',_0x4129bb));for(const _0x200a1f of _0x137b19['model']['createRangeIn'](_0xc77275['item'])['getItems']())_0x54e381['consumable']['consume'](_0x200a1f,_0x6746e8['name']);_0x54e381['consumable']['consume'](_0xc77275['item'],_0x6746e8['name']);}};_0x137b19['conversion']['for']('dataDowncast')['add'](_0x43c1d1=>{_0x43c1d1['on']('addMarker:suggestion:formatBlock',(_0x98d354,_0x22a63d,_0x221f49)=>{_0x221f49['options']['showSuggestionHighlights']&&_0x24c22f({'showActiveMarkers':!0x1})(_0x98d354,_0x22a63d,_0x221f49);},{'priority':'highest'});}),_0x137b19['conversion']['for']('dataDowncast')['add'](_0x1f8559=>{_0x1f8559['on']('addMarker:suggestion:attribute',(_0x25c9c8,_0x399259,_0x213911)=>{_0x213911['options']['showSuggestionHighlights']&&_0x24c22f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x25c9c8,_0x399259,_0x213911);},{'priority':'highest'});}),_0x137b19['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x23d292,_0x110abd)=>_0x110abd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x23d292['substr'](0xb)}}),_0x137b19['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x12515c,{writer:_0x5a08a6})=>{let _0x5b4860='suggestion:'+_0x12515c['getAttribute']('suggestion-type')+':'+_0x12515c['getAttribute']('id');return _0x12515c['getAttribute']('marker-count')&&(_0x5b4860+=':'+_0x12515c['getAttribute']('marker-count')),_0x5a08a6['createElement']('$marker',{'data-name':_0x5b4860});}}),_0x137b19['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x137b19['conversion']['for']('editingDowncast')['add'](_0x27f311=>{_0x27f311['on']('addMarker:suggestion:formatBlock',_0x24c22f(),{'priority':'high'});}),_0x137b19['conversion']['for']('editingDowncast')['add'](_0x347429=>{_0x347429['on']('addMarker:suggestion:attribute',_0x24c22f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x137b19['conversion']['for']('editingDowncast')['add'](_0x593879=>{_0x593879['on']('removeMarker:suggestion:formatBlock',(_0xf3db22,_0x2cef1e,_0x133556)=>{const _0x10fab3=_0x133556['mapper']['markerNameToElements'](_0x2cef1e['markerName']);if(_0x10fab3){for(const _0x31f83b of _0x10fab3)_0x31f83b['getCustomProperty']('addHighlight')||(_0x133556['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x31f83b),_0x133556['writer']['removeAttribute']('data-suggestion',_0x31f83b),_0x133556['mapper']['unbindElementFromMarkerName'](_0x31f83b,_0x2cef1e['markerName']));}},{'priority':'high'});}),_0x137b19['conversion']['for']('editingDowncast')['add'](_0x20f78f=>{_0x20f78f['on']('removeMarker:suggestion:attribute',(_0x222de2,_0xa846be,_0x485bf3)=>{const _0xee6aa2=_0x485bf3['mapper']['markerNameToElements'](_0xa846be['markerName']);if(!_0xee6aa2)return;const {id:_0x4cb18f}=this['_splitMarkerName'](_0xa846be['markerName']),_0x4dab8f=this['_suggestions']['get'](_0x4cb18f),_0x4b1bad=this['_getAttributeKey'](_0x4dab8f);if(this['_isBlockAttribute'](_0x4b1bad)){for(const _0x3c2bf6 of _0xee6aa2)_0x3c2bf6['getCustomProperty']('addHighlight')||(_0x485bf3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c2bf6),_0x485bf3['writer']['removeAttribute']('data-suggestion',_0x3c2bf6),_0x485bf3['mapper']['unbindElementFromMarkerName'](_0x3c2bf6,_0xa846be['markerName']));}},{'priority':'high'});}),_0x137b19['model']['document']['registerPostFixer'](_0x104df7=>{let _0x342784=!0x1;const _0xa4755e=Array['from'](_0x137b19['model']['document']['differ']['getChangedMarkers']()),_0x3f158d=new Set();for(const {name:_0x17ca62,data:_0x18915a}of _0xa4755e){const {group:_0x527e29,type:_0x2b1225,subType:_0x51f74d,id:_0x1aa037}=this['_splitMarkerName'](_0x17ca62);if('suggestion'!==_0x527e29)continue;const _0x2785a3=this['_suggestions']['get'](_0x1aa037);if(null!=_0x18915a['newRange']){'formatInline'==_0x2b1225&&(_0x342784=_0x342784||Et(_0x18915a['newRange'],_0x17ca62,_0x104df7,_0x137b19['model']['schema']));const _0x2f199f='attribute'==_0x2b1225&&this['_isBlockAttribute'](_0x51f74d['split']('|')[0x0]);if(_0x18915a['newRange']['isCollapsed']||'$graveyard'==_0x18915a['newRange']['root']['rootName']||'formatBlock'==_0x2b1225&&!Ut(_0x18915a['newRange'])||_0x2f199f&&!Ut(_0x18915a['newRange'])||'deletion'==_0x2b1225&&!(!Tt(_0x2fdef0=_0x18915a['newRange'])&&!function(_0x238773){return _0x238773['start']['parent']==_0x238773['end']['nodeBefore']&&_0x238773['start']['isAtEnd'];}(_0x2fdef0)))_0x104df7['removeMarker'](_0x17ca62),_0x342784=!0x0;else{if(!_0x2785a3||!_0x2785a3['isInContent'])continue;_0x3f158d['add'](_0x2785a3);}}}var _0x2fdef0;return _0x3f158d['size']>0x0&&(_0x342784=!!this['_joinWithAdjacentSuggestions'](_0x3f158d)||_0x342784),_0x342784;}),_0x137b19['model']['document']['registerPostFixer'](_0x27296c=>{let _0xed948=!0x1;for(const _0x1e0c67 of _0x137b19['model']['document']['differ']['getChanges']())if('insert'==_0x1e0c67['type'])for(const _0xa60d20 of this['_suggestions']['values']()){if(_0xa60d20['isMultiRange']||!_0xa60d20['isInContent'])continue;const _0x2974c1='formatBlock'==_0xa60d20['type'],_0x24cc77=this['_getAttributeKey'](_0xa60d20),_0x5e70bc=_0x24cc77&&this['_isBlockAttribute'](_0x24cc77);if(!_0x2974c1&&!_0x5e70bc)continue;const _0x508a67=_0xa60d20['getFirstRange']();if(_0x508a67['start']['parent']!=_0x508a67['end']['parent']&&!_0x508a67['end']['isAtEnd']){const _0x311d2b=_0x137b19['model']['createPositionAt'](_0x508a67['start']['nodeAfter'],'end'),_0x29cd5f=_0x137b19['model']['createRange'](_0x508a67['start'],_0x311d2b);_0x27296c['updateMarker'](_0xa60d20['getFirstMarker'](),{'range':_0x29cd5f}),_0xed948=!0x0;}}return _0xed948;}),_0x137b19['model']['document']['registerPostFixer'](_0x4cf533=>this['_processAttributeChanges'](_0x4cf533)),_0x137b19['model']['document']['registerPostFixer'](_0x4bf989=>!_0x4bf989['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4bf989)),_0x137b19['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x137b19['model']['document']['on']('change:data',(_0x44e4b4,_0x28d5af)=>{if(!_0x28d5af['isLocal']||_0x28d5af['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2bb079=_0x137b19['model']['document']['differ']['getChanges']();if(0x0==_0x2bb079['length'])return;const _0x105e31=[],_0x3f08c1=_0x2bb079['filter'](_0x4fe304=>'attribute'==_0x4fe304['type']),_0x20da96=_0x2bb079['filter'](_0x1138e1=>'insert'==_0x1138e1['type']&&'$text'!=_0x1138e1['name']);for(const _0x976829 of _0x3f08c1)this['_isRegisteredAttribute'](_0x976829['attributeKey'])&&_0x105e31['push']({'key':_0x976829['attributeKey'],'newValue':_0x976829['attributeNewValue'],'oldValue':_0x976829['attributeOldValue'],'range':Ot(_0x976829['range'],_0x137b19['model'])});for(const _0x44f523 of _0x20da96){if('rename'!=_0x44f523['action']&&'refresh'!=_0x44f523['action'])continue;const _0x397c37=Gt(_0x44f523['position']['nodeAfter'],_0x137b19['model']),_0x3b83e2=_0x44f523['before'];'rename'==_0x44f523['action']&&_0x105e31['push']({'key':m,'newValue':_0x44f523['name'],'oldValue':_0x3b83e2['name'],'range':_0x397c37});for(const [_0x59226a,_0x1bd081]of _0x3b83e2['attributes']){if(!this['_isRegisteredAttribute'](_0x59226a))continue;const _0x4c7bfa=_0x44f523['attributes']['get'](_0x59226a);_0x1bd081!==_0x4c7bfa&&_0x105e31['push']({'key':_0x59226a,'newValue':_0x4c7bfa,'oldValue':_0x1bd081,'range':_0x397c37});}for(const [_0x5d7127,_0x2fe5ce]of _0x44f523['attributes'])this['_isRegisteredAttribute'](_0x5d7127)&&(_0x3b83e2['attributes']['has'](_0x5d7127)||_0x105e31['push']({'key':_0x5d7127,'newValue':_0x2fe5ce,'oldValue':null,'range':_0x397c37}));}0x0!=_0x105e31['length']&&_0x137b19['model']['enqueueChange'](_0x28d5af,_0x35aa48=>{const _0x38c3c4=_0x6192a1();for(const {range:_0x396d5d,key:_0x268f90,oldValue:_0x305abc,newValue:_0x1fb6e6}of _0x105e31)this['markAttributeChange'](_0x396d5d,_0x268f90,_0x305abc,_0x1fb6e6,{'groupId':_0x38c3c4});this['_reduceExistingSuggestions'](_0x35aa48,_0x105e31);});},{'priority':'lowest'}),_0x137b19['model']['markers']['on']('update:suggestion',(_0x5e167b,_0x3a5869,_0x2198c1)=>{if(null==_0x2198c1){const {id:_0xe6f303}=this['_splitMarkerName'](_0x3a5869['name']),_0x39947e=this['_suggestions']['get'](_0xe6f303);_0x39947e&&_0x39947e['addMarkerName'](_0x3a5869['name']);}}),_0x137b19['model']['document']['on']('change:data',()=>{const _0x3748a2=Array['from'](_0x137b19['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2e1324=>'suggestion'===this['_splitMarkerName'](_0x2e1324['name'])['group']);if(0x0===_0x3748a2['length'])return;_0x3748a2['sort']((_0x1e5a0b,_0x4f2e34)=>{const _0x5cf140=_0x1e5a0b['data']['oldRange'],_0x5096ef=_0x4f2e34['data']['oldRange'];return null===_0x5cf140&&null===_0x5096ef?0x0:null===_0x5cf140&&null!==_0x5096ef?-0x1:null!==_0x5cf140&&null===_0x5096ef?0x1:_0x5cf140['start']['isBefore'](_0x5096ef['start'])?-0x1:0x1;});const _0x214f06=new Set(),_0x4cc26f=new Set();for(const {name:_0x199893,data:_0x5bdb36}of _0x3748a2){const {id:_0xd52ae4}=this['_splitMarkerName'](_0x199893);if(null===_0x5bdb36['oldRange']){const _0x41dace=this['_handleNewSuggestionMarker'](_0x199893);_0x4cc26f['add'](_0x41dace);}else{const _0x21e962=this['_suggestions']['get'](_0xd52ae4);null!==_0x5bdb36['newRange']||_0x21e962['isInContent']?(_0x214f06['add'](_0x21e962['head']),_0x4cc26f['add'](_0x21e962)):this['_removeSuggestion'](_0x21e962);}}_0x4cc26f['size']>0x0&&this['_refreshSuggestionsChain'](_0x4cc26f);for(const _0xe4fcf6 of _0x214f06)this['fire']('suggestionChanged',_0xe4fcf6);}),_0x137b19['model']['on']('applyOperation',(_0x3b5287,_0x330177)=>{const _0x4c4994=_0x330177[0x0];if(!this['_suggestions']['size'])return;if(!_0x4c4994['isDocumentOperation'])return;if(_0x4c4994['batch']['isUndo']||!_0x4c4994['batch']['isLocal'])return;let _0x4dbe7b,_0x225995;switch(_0x4c4994['type']){case'insert':_0x4dbe7b=_0x137b19['model']['createPositionAt'](_0x4c4994['position']),_0x225995=_0x4dbe7b['getShiftedBy'](_0x4c4994['howMany']);break;case'split':_0x4dbe7b=_0x137b19['model']['createPositionAt'](_0x4c4994['splitPosition']),_0x225995=_0x137b19['model']['createPositionAt'](_0x4c4994['moveTargetPosition']);break;case'move':_0x4dbe7b=_0x137b19['model']['createPositionAt'](_0x4c4994['targetPosition']),_0x225995=_0x4dbe7b['getShiftedBy'](_0x4c4994['howMany']);break;default:return;}const _0x12891b=_0x137b19['model']['createRange'](_0x4dbe7b,_0x225995);_0x137b19['model']['change'](()=>{for(const {suggestion:_0x2d9b9a,meta:_0x25c71b}of this['_findSuggestions'](_0x12891b)){if(_0x2d9b9a['isMultiRange'])continue;if('formatInline'==_0x2d9b9a['type'])continue;const _0x56f413=this['_getAttributeKey'](_0x2d9b9a);if(_0x56f413&&this['_isBlockAttribute'](_0x56f413)&&'split'!=_0x4c4994['type'])continue;const _0x105198=_0x2d9b9a['data']&&_0x2d9b9a['data']['multipleBlocks'];('formatBlock'!=_0x2d9b9a['type']||'split'==_0x4c4994['type']&&!_0x105198)&&(_0x25c71b['containsRangeInObject']||'insertion'==_0x2d9b9a['type']&&_0x25c71b['isOwn']||_0x2d9b9a['getFirstRange']()['containsRange'](_0x12891b)&&this['_breakSuggestionMarker'](_0x2d9b9a,_0x4dbe7b,_0x225995));}});},{'priority':'lowest'}),_0x137b19['model']['on']('deleteContent',(_0x2f6f9c,_0x5d484f)=>{const _0x7f05c3=_0x5d484f[0x0],_0x2bee15=_0x5d484f[0x1];if(_0x2bee15&&_0x2bee15['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x7f05c3['isCollapsed'])return;const _0x1cc392=_0x137b19['model']['schema'],{start:_0x1fd9bb,end:_0x58755c}=_0x7f05c3['getFirstRange'](),_0xe35518=_0x1fd9bb['nodeAfter']&&_0x1cc392['isLimit'](_0x1fd9bb['nodeAfter'])?null:_0x1cc392['getNearestSelectionRange'](_0x1fd9bb,'forward'),_0x42e853=_0x58755c['nodeBefore']&&_0x1cc392['isLimit'](_0x58755c['nodeBefore'])?null:_0x1cc392['getNearestSelectionRange'](_0x58755c,'backward'),_0x13cf8d=_0x137b19['model']['createRange'](_0xe35518?_0xe35518['start']:_0x1fd9bb,_0x42e853?_0x42e853['end']:_0x58755c);_0x137b19['model']['change'](_0x5887aa=>{this['markDeletion'](_0x13cf8d);const _0x14769b=_0x137b19['model']['schema']['getNearestSelectionRange'](_0x13cf8d['start']);_0x7f05c3['is']('documentSelection')?_0x5887aa['setSelection'](_0x14769b):_0x7f05c3['setTo'](_0x14769b);}),_0x2f6f9c['stop']();},{'priority':_0x2ee883['normal']+0xa}),_0x137b19['model']['on']('insertContent',(_0x1a5b51,_0x316408)=>{const _0x24482d=_0x316408[_0x316408['length']-0x1];_0x24482d&&_0x24482d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x137b19['model']['change'](()=>{let _0x4ea60c=_0x137b19['model']['insertContent'](_0x316408[0x0],_0x316408[0x1],_0x316408[0x2],{'forceDefaultExecution':!0x0});if(!_0x4ea60c)return;_0x1a5b51['return']=_0x4ea60c['clone']();const _0x4071b2=_0x4ea60c['end']['nodeBefore'],_0x245a73=_0x137b19['model']['schema'];_0x4071b2&&_0x245a73['isBlock'](_0x4071b2)&&!_0x245a73['isObject'](_0x4071b2)&&(_0x4ea60c=_0x137b19['model']['createRange'](_0x4ea60c['start'],_0x137b19['model']['createPositionAt'](_0x4071b2,'end'))),this['markInsertion'](_0x4ea60c);}),_0x1a5b51['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x58b92d=new $(_0x137b19,this['_suggestions']);_0x137b19['commands']['add']('acceptSuggestion',_0x58b92d),this['enableCommand']('acceptSuggestion');const _0x112b28=new B(_0x137b19,this['_suggestions']);_0x137b19['commands']['add']('discardSuggestion',_0x112b28),this['enableCommand']('discardSuggestion'),_0x137b19['commands']['add']('acceptAllSuggestions',new x(_0x137b19,_0x58b92d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x137b19['commands']['add']('discardAllSuggestions',new x(_0x137b19,_0x112b28,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x137b19['commands']['add']('acceptSelectedSuggestions',new R(_0x137b19,_0x58b92d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x137b19['commands']['add']('discardSelectedSuggestions',new R(_0x137b19,_0x112b28,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2fdeae=_0x137b19['plugins']['get']('CommentsRepository');this['listenTo'](_0x2fdeae,'addComment',(_0x3ca254,{threadId:_0x533e45})=>{const _0x14bab3=this['_suggestions']['get'](_0x533e45);_0x14bab3&&_0x14bab3['commentThread']&&0x1===_0x14bab3['commentThread']['length']&&this['_updateSuggestionData'](_0x533e45,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2fdeae,'removeComment',(_0x404725,{threadId:_0x25c19d})=>{const _0x2e31d1=this['_suggestions']['get'](_0x25c19d);_0x2e31d1&&_0x2e31d1['commentThread']&&!_0x2e31d1['commentThread']['length']&&this['_updateSuggestionData'](_0x25c19d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4fd5e9){if(this['_adapter'])throw new _0x23a85a('track-changes-adapter-already-set',this);this['_adapter']=_0x4fd5e9;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x453429=!0x1,toJSON:_0x51ad8b=!0x1}={}){const _0x2f12eb=[];for(const _0x175345 of this['_suggestions']['values']())_0x453429&&!_0x175345['isInContent']||_0x2f12eb['push'](_0x175345);return _0x51ad8b?_0x2f12eb['map'](_0x42b950=>_0x42b950['toJSON']()):_0x2f12eb;}['getSuggestion'](_0x142ba8){const _0x1349d7=this['_suggestions']['get'](_0x142ba8);if(!_0x1349d7)throw new _0x23a85a('track-changes-suggestion-not-found',this);return _0x1349d7;}['hasSuggestion'](_0x48dff7){return this['_suggestions']['has'](_0x48dff7);}['addSuggestionData'](_0x1515fa){const {authorId:_0x1329d7,id:_0x3fb99b,attributes:_0x4dfe1e}=_0x1515fa,[_0x251e1d,_0x5eb42e]=_0x1515fa['type']['split'](':'),_0xe182cb=this['_suggestions']['get'](_0x3fb99b)||this['_createSuggestion'](_0x251e1d,_0x5eb42e,_0x3fb99b,_0x1329d7,_0x4dfe1e);if(this['_addThreadToSuggestion'](_0xe182cb),this['_checkSuggestionCorrectness'](_0xe182cb,_0x251e1d,_0x5eb42e||null,_0x1329d7),_0xe182cb['createdAt']=_0x1515fa['createdAt'],_0xe182cb['_isDataLoaded']=!0x0,_0x4dfe1e&&_0x4dfe1e['@external']){const _0x3b7fc2=_0x4dfe1e['@external'],_0x2f8536=this['_getExternalAuthor'](_0x3b7fc2['authorName']);_0xe182cb['authoredAt']=_0x3b7fc2['createdAt'],_0xe182cb['author']=_0x2f8536,_0xe182cb['isExternal']=!0x0;}else _0xe182cb['authoredAt']=_0x1515fa['createdAt'];switch(_0x1515fa['data']&&(_0xe182cb['data']=_0x1515fa['data']),_0x1515fa['attributes']&&(_0xe182cb['attributes']=_0x1515fa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xe182cb['_saved']=!0x0),this['_suggestionState']['get'](_0xe182cb)){case'notReady':this['_suggestionState']['set'](_0xe182cb,'dataReady');break;case'markerReady':_0xe182cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xe182cb])),this['_refreshSuggestionsChain'](new Set([_0xe182cb])),this['_suggestionState']['set'](_0xe182cb,'ready'),this['fire']('suggestionLoaded',_0xe182cb)):this['_suggestionState']['set'](_0xe182cb,'removed');}return _0xe182cb;}['acceptSuggestion'](_0x162730){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x94dec0 of _0x162730['getAllAdjacentSuggestions']())_0x94dec0['accept']();});});}['discardSuggestion'](_0x1542f1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x112c98 of _0x1542f1['getAllAdjacentSuggestions']())_0x112c98['discard']();});});}['enableCommand'](_0x13278b,_0x505dd8){const _0x487005=this['editor']['commands']['get'](_0x13278b);if(!_0x487005)throw new _0x23a85a('track-changes-command-not-found',this,{'commandName':_0x13278b});if(this['_enabledCommands']['has'](_0x487005))throw new _0x23a85a('track-changes-enable-command-twice',this,{'commandName':_0x13278b});this['_enabledCommands']['add'](_0x487005),_0x505dd8&&_0x487005['on']('execute',(_0x27816b,_0x1398dc)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1398dc['length']>0x0&&_0x1398dc[_0x1398dc['length']-0x1]&&_0x1398dc[_0x1398dc['length']-0x1]['forceDefaultExecution']?_0x1398dc['pop']():(_0x27816b['return']=_0x505dd8((..._0x429a0c)=>_0x487005['execute'](..._0x429a0c,{'forceDefaultExecution':!0x0}),..._0x1398dc),_0x27816b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3878c1){let _0x4e33bf,_0x37a666;const _0x40870=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e33bf=_0x3878c1();}catch(_0x1b77f5){_0x37a666=_0x1b77f5;}return _0x40870||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x37a666&&_0x23a85a['rethrowUnexpectedError'](_0x37a666,this),_0x4e33bf;}['markInsertion'](_0x16f51e,_0x23a75f=null,_0x90005a={}){if(_0x16f51e['isCollapsed'])return null;const _0x4f5f56=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2fae23,meta:_0x16047a}of this['_findSuggestions'](_0x16f51e,'insertion'))if(_0x16047a['isOwn']){if(!_0x16047a['isNextTo']){if(_0x16047a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2fae23,_0x90005a))continue;return _0x2fae23;}if(Lt(_0x2fae23,_0x90005a))return _0x2fae23;this['_breakSuggestionMarker'](_0x2fae23,_0x16f51e['start'],_0x16f51e['end']);break;}if(_0x23a75f==_0x2fae23['subType']&&Lt(_0x2fae23,_0x90005a)){const _0x5b7aa8=_0x2fae23['getFirstRange']();return _0x5b7aa8['start']['isEqual'](_0x16f51e['end'])?this['_setSuggestionRange'](_0x2fae23,this['_model']['createRange'](_0x16f51e['start'],_0x5b7aa8['end'])):this['_setSuggestionRange'](_0x2fae23,this['_model']['createRange'](_0x5b7aa8['start'],_0x16f51e['end'])),_0x2fae23;}}const _0x3eebc7=_0x6192a1(),_0x5b6292=_0x4f5f56['id'],_0x4d40a0=_0x23a75f?'insertion:'+_0x23a75f:'insertion',_0x4a28bc=this['_setSuggestionData']({'id':_0x3eebc7,'type':_0x4d40a0,'createdAt':new Date(),'authorId':_0x5b6292,'attributes':_0x90005a});return this['_addSuggestionMarker'](_0x4d40a0,_0x3eebc7,_0x5b6292,_0x16f51e),_0x4a28bc;}['markMultiRangeInsertion'](_0x54b0ed,_0x234988='multi',_0x31f371={}){const _0x478dc1=this['editor']['plugins']['get']('Users')['me'],_0x22bc82=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x234988,'join');for(const _0x33060c of this['getSuggestions']())if(_0x33060c['author']['id']==_0x478dc1['id']&&'insertion'==_0x33060c['type']&&_0x33060c['subType']==_0x234988&&Lt(_0x33060c,_0x31f371)&&(_0x22bc82(_0x33060c['getRanges'](),_0x54b0ed)||_0x22bc82(_0x54b0ed,_0x33060c['getRanges']()))){for(const _0x5d4998 of _0x54b0ed)_0x33060c['addRange'](_0x5d4998);return _0x33060c;}for(const {suggestion:_0x2023de,meta:_0x46d8f3}of this['_findSuggestions'](_0x54b0ed,'insertion')){if(!_0x46d8f3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x46d8f3['containsRangeInObject'])continue;if(!Lt(_0x2023de,_0x31f371))continue;let _0x3b5947=!0x0;for(const _0x1d0581 of _0x2023de['getRanges']())for(const _0x15e171 of _0x54b0ed)if(!_0x1d0581['containsRange'](_0x15e171)){_0x3b5947=!0x1;break;}if(_0x3b5947)return _0x2023de;}const _0x4ec434=_0x6192a1(),_0x3b14bf=_0x478dc1['id'],_0xbd0afa='insertion:'+_0x234988,_0x4561ab=this['_setSuggestionData']({'id':_0x4ec434,'type':_0xbd0afa,'createdAt':new Date(),'authorId':_0x3b14bf,'attributes':_0x31f371});for(const _0x332e2e of _0x54b0ed)this['_addSuggestionMarker'](_0xbd0afa,_0x4ec434,_0x3b14bf,_0x332e2e,u['getMultiRangeId']());return _0x4561ab;}['markInlineFormat'](_0x2a48bf,_0xae9b6,_0x965250=null,_0x34c5ee={}){if(_0x965250=_0x965250||Vt(_0xae9b6),_0x2a48bf['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5119ca=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x965250,'accept');return this['forceDefaultExecution'](()=>_0x5119ca([_0x2a48bf],_0xae9b6,_0x34c5ee)),null;}const _0x50be5d=this['editor']['plugins']['get']('Users')['me'],_0x536ae6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b92e4,meta:_0x2f2204}of this['_findSuggestions'](_0x2a48bf,'insertion'))_0x2f2204['isOwn']&&!_0x2f2204['isInsideObject']&&_0x536ae6['push'](..._0x3b92e4['getRanges']());}const _0x3556dc=function(_0x825b50,_0x4a6b59){const _0x49e8c7=[];for(const _0xe4aefb of _0x4a6b59){const _0xd76e0c=_0x825b50['getIntersection'](_0xe4aefb);_0xd76e0c&&_0x49e8c7['push'](_0xd76e0c);}return _0x49e8c7;}(_0x2a48bf,_0x536ae6),_0x59f06d=function(_0x2d1fff,_0x113734){const _0x218a1=[_0x2d1fff];for(const _0x54c933 of _0x113734){let _0x2aef69=0x0;for(;_0x2aef69<_0x218a1['length'];){const _0x2899b1=_0x218a1[_0x2aef69]['getDifference'](_0x54c933);_0x218a1['splice'](_0x2aef69,0x1,..._0x2899b1),_0x2aef69+=_0x2899b1['length'];}}return _0x218a1;}(_0x2a48bf,_0x536ae6);_0x3556dc['length']&&this['_model']['change'](()=>{for(const _0x4eed40 of _0x3556dc){const _0x3772d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x965250,'accept');this['forceDefaultExecution'](()=>_0x3772d6([_0x4eed40],_0xae9b6,_0x34c5ee));}});for(const _0x300b17 of _0x59f06d){let _0x45e140=null,_0x59ec2a=_0x300b17['start'],_0x40d337=_0x300b17['end'];for(const {suggestion:_0x5af10d,meta:_0x2a43c0}of this['_findSuggestions'](_0x300b17,'formatInline')){if(!_0x2a43c0['isOwn'])continue;if(_0x5af10d['subType']!=_0x965250)continue;if(!Lt(_0x5af10d,_0x34c5ee))continue;const _0x36fb84=_0x5af10d['getFirstRange']();if(_0x36fb84['containsRange'](_0x300b17,!0x0))return null;_0x59ec2a=_0x59ec2a['isBefore'](_0x36fb84['start'])?_0x59ec2a:_0x36fb84['start'],_0x40d337=_0x40d337['isAfter'](_0x36fb84['end'])?_0x40d337:_0x36fb84['end'],_0x45e140?_0x36fb84['start']['isBefore'](_0x45e140['getFirstRange']()['start'])?(_0x45e140['removeMarkers'](),_0x45e140=_0x5af10d):_0x5af10d['removeMarkers']():_0x45e140=_0x5af10d;}const _0x3d9e65=this['_model']['createRange'](_0x59ec2a,_0x40d337);if(_0x45e140)this['_setSuggestionRange'](_0x45e140,_0x3d9e65);else{const _0x75d965=_0x6192a1(),_0x2b1bf4=_0x50be5d['id'];this['_setSuggestionData']({'id':_0x75d965,'type':'formatInline:'+_0x965250,'data':_0xae9b6,'createdAt':new Date(),'authorId':_0x2b1bf4,'attributes':_0x34c5ee}),this['_addSuggestionMarker']('formatInline:'+_0x965250,_0x75d965,_0x2b1bf4,_0x3d9e65);}}return null;}['markBlockFormat'](_0x144b6f,_0xb3c449,_0x5b8ab2=[],_0x47fd72=null,_0x367f6e={}){_0xb3c449['formatGroupId']||(_0xb3c449['formatGroupId']=_0xb3c449['commandName']),_0xb3c449['multipleBlocks']=_0x144b6f['is']('range'),_0x47fd72=_0x47fd72||Vt(_0xb3c449);const _0x19c11f=_0x5b8ab2['map'](_0x783eeb=>Gt(_0x783eeb,this['_model'])),_0x4c2b2e=_0x144b6f['is']('range')?_0x144b6f:Gt(_0x144b6f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x23a9f3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47fd72,'accept');return this['forceDefaultExecution'](()=>_0x23a9f3([_0x4c2b2e],_0xb3c449,_0x367f6e)),null;}_0x19c11f['push'](_0x4c2b2e);let _0x2b8daa=!0x0;for(const _0x162999 of _0x19c11f)if(!this['_rangeIsInLocalUserInsertion'](_0x162999)){_0x2b8daa=!0x1;break;}if(_0x2b8daa&&'always'!==this['_trackFormatChanges']){const _0x12efe1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47fd72,'accept');return this['forceDefaultExecution'](()=>_0x12efe1([_0x4c2b2e],_0xb3c449,_0x367f6e)),null;}let _0x3b810d=null,_0x25e45b=_0x4c2b2e['start'],_0x5ccf63=_0x4c2b2e['end'];for(const {suggestion:_0x42f155,meta:_0xa9658a}of this['_findSuggestions'](_0x4c2b2e,'formatBlock')){if(!_0xa9658a['isOwn'])continue;if(_0xa9658a['isNextTo']||_0xa9658a['containsRangeInObject']||_0xa9658a['isInsideObject'])continue;if(_0x42f155['data']['formatGroupId']!=_0xb3c449['formatGroupId'])continue;if(!Lt(_0x42f155,_0x367f6e))continue;const _0x50facf=_0x42f155['getFirstRange']();if(_0x42f155['subType']==_0x47fd72){if(_0x50facf['containsRange'](_0x4c2b2e,!0x0))return null;_0x25e45b=_0x25e45b['isBefore'](_0x50facf['start'])?_0x25e45b:_0x50facf['start'],_0x5ccf63=_0x5ccf63['isAfter'](_0x50facf['end'])?_0x5ccf63:_0x50facf['end'],_0x3b810d?_0x50facf['start']['isBefore'](_0x3b810d['getFirstRange']()['start'])?(_0x3b810d['removeMarkers'](),_0x3b810d=_0x42f155):_0x42f155['removeMarkers']():_0x3b810d=_0x42f155;}else{const _0x3d6773=_0x4c2b2e['getIntersection'](_0x50facf);this['_cutOutSuggestionMarker'](_0x42f155,_0x3d6773);}}const _0x601409=this['editor']['plugins']['get']('Users')['me'],_0x1f4f83=_0x6192a1(),_0xe6518a=_0x601409['id'];if(_0x3b810d)return this['_setSuggestionRange'](_0x3b810d,this['_model']['createRange'](_0x25e45b,_0x5ccf63)),_0x3b810d;{const _0x2748db=this['_setSuggestionData']({'id':_0x1f4f83,'type':'formatBlock:'+_0x47fd72,'data':_0xb3c449,'createdAt':new Date(),'authorId':_0xe6518a,'attributes':_0x367f6e});return this['_addSuggestionMarker']('formatBlock:'+_0x47fd72,_0x1f4f83,_0xe6518a,this['_model']['createRange'](_0x25e45b,_0x5ccf63)),_0x2748db;}}['markMultiRangeBlockFormat'](_0x398ee2,_0x21468f,_0x345e9c=[],_0x3ef744=null,_0x1aaac8={}){_0x21468f['formatGroupId']||(_0x21468f['formatGroupId']=_0x21468f['commandName']);const _0x519a15=_0x398ee2[0x0];_0x21468f['multipleBlocks']=_0x519a15['is']('range'),_0x3ef744=_0x3ef744||Vt(_0x21468f);const _0x1afbb5=_0x345e9c['map'](_0x4a7e94=>Gt(_0x4a7e94,this['_model'])),_0x2d288d=_0x519a15['is']('range')?_0x398ee2:_0x398ee2['map'](_0x4d4877=>Gt(_0x4d4877,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4b2bcd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef744,'accept');return this['forceDefaultExecution'](()=>_0x4b2bcd(_0x2d288d,_0x21468f,_0x1aaac8)),null;}_0x1afbb5['push'](..._0x2d288d);let _0x5790be=!0x0;for(const _0x559396 of _0x1afbb5)if(!this['_rangeIsInLocalUserInsertion'](_0x559396)){_0x5790be=!0x1;break;}if(_0x5790be&&'always'!==this['_trackFormatChanges']){const _0x5c47c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef744,'accept');return this['forceDefaultExecution'](()=>_0x5c47c5(_0x2d288d,_0x21468f,_0x1aaac8)),null;}const _0xa07f2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x235e0e of this['getSuggestions']()){if(_0x235e0e['author']['id']!=_0xa07f2d['id'])continue;if('formatBlock'!=_0x235e0e['type']||_0x235e0e['data']['formatGroupId']!=_0x21468f['formatGroupId'])continue;if(!Lt(_0x235e0e,_0x1aaac8))continue;const _0x36e936=_0x235e0e['subType']==_0x3ef744;for(let _0xd5705=0x0;_0xd5705<_0x2d288d['length'];_0xd5705++){const _0x283bf7=_0x2d288d[_0xd5705];for(const _0x1a0e69 of _0x235e0e['getMarkers']()){const _0x1ad5b1=_0x1a0e69['getRange']();if(_0x283bf7['isEqual'](_0x1ad5b1)){_0x36e936?(_0x2d288d['splice'](_0xd5705,0x1),_0xd5705--):_0x235e0e['removeMarker'](_0x1a0e69['name']);break;}}}}if(0x0==_0x2d288d['length'])return null;const _0x2b6d18=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef744,'join');for(const _0x9aa7cd of this['getSuggestions']())if(_0x9aa7cd['author']['id']==_0xa07f2d['id']&&'formatBlock'==_0x9aa7cd['type']&&_0x9aa7cd['data']['formatGroupId']==_0x21468f['formatGroupId']&&_0x9aa7cd['subType']==_0x3ef744&&Lt(_0x9aa7cd,_0x1aaac8)&&(_0x2b6d18(_0x9aa7cd['getRanges'](),_0x2d288d)||_0x2b6d18(_0x2d288d,_0x9aa7cd['getRanges']()))){for(const _0x2f3cfb of _0x2d288d)_0x9aa7cd['addRange'](_0x2f3cfb);return _0x9aa7cd;}const _0x33049e=_0x6192a1(),_0x5a9fa5=_0xa07f2d['id'],_0x8f66b5='formatBlock:'+_0x3ef744,_0x18c96d=this['_setSuggestionData']({'id':_0x33049e,'type':_0x8f66b5,'data':_0x21468f,'createdAt':new Date(),'authorId':_0x5a9fa5,'attributes':_0x1aaac8});for(const _0x300f16 of _0x2d288d)this['_addSuggestionMarker'](_0x8f66b5,_0x33049e,_0x5a9fa5,_0x300f16,u['getMultiRangeId']());return _0x18c96d;}['markDeletion'](_0x56946e,_0x52ef04=null,_0x261ddf={}){if(_0x56946e['isCollapsed'])return null;const _0x5d0db2=this['editor']['plugins']['get']('Users')['me'],_0x3bbd32=new _0x48a09a(_0x56946e['start'],_0x56946e['end']);for(const {suggestion:_0x3d570f,meta:_0x27e109}of this['_findSuggestions'](_0x3bbd32,'insertion'))if(_0x27e109['isOwn']&&!_0x27e109['isNextTo']){if(_0x3d570f['isMultiRange']){const _0x217f63=_0x3d570f['getRanges']()['filter'](_0x5a3c4c=>'$graveyard'!=_0x5a3c4c['root']['rootName']);_0x217f63['every'](_0x4151a7=>_0x3bbd32['containsRange'](_0x4151a7,!0x0))&&_0x3d570f['discard']();if(_0x217f63['some'](_0x463641=>_0x463641['containsRange'](_0x3bbd32,!0x0))){const _0x4800e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52ef04,'accept');return this['forceDefaultExecution'](()=>_0x4800e5([_0x3bbd32],null,_0x261ddf)),null;}}else{const _0x2260ad=_0x3bbd32['getIntersection'](_0x3d570f['getFirstRange']());null!==_0x2260ad&&_0x3d570f['_onDiscard']([_0x2260ad],null,_0x261ddf);}}if(_0x3bbd32['detach'](),_0x3bbd32['isCollapsed']||'$graveyard'==_0x3bbd32['root']['rootName'])return null;let _0xa590a3=null,_0x5e1f2e=_0x3bbd32['start'],_0x4c1c69=_0x3bbd32['end'];const _0x3c5735=this['_findSuggestions'](_0x3bbd32,'deletion');for(const {suggestion:_0x507a21,meta:_0x3bc6bf}of _0x3c5735){const _0x493f43=this['_model']['createRange'](_0x5e1f2e,_0x4c1c69);if(_0x3bc6bf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3bc6bf['containsRangeInObject']&&!_0x3bc6bf['isInsideObject'])){if(_0x507a21['isMultiRange']){if(!Lt(_0x507a21,_0x261ddf))continue;let _0x41cb78=!0x0;for(const _0x316b36 of _0x507a21['getRanges']()){if(_0x316b36['containsRange'](_0x493f43,!0x0))return _0x507a21;_0x493f43['containsRange'](_0x316b36)||(_0x41cb78=!0x1);}_0x41cb78&&_0x507a21['discard']();}else{const _0x5b5e4c=_0x507a21['getFirstRange']();if(_0x5b5e4c['containsRange'](_0x493f43,!0x0))return _0x507a21;if(!Lt(_0x507a21,_0x261ddf)){_0x493f43['containsRange'](_0x5b5e4c)?_0x507a21['removeMarkers']():_0x5b5e4c['containsPosition'](_0x5e1f2e)?_0x5e1f2e=_0x5b5e4c['end']:_0x5b5e4c['containsPosition'](_0x4c1c69)&&(_0x4c1c69=_0x5b5e4c['start']);continue;}_0x5e1f2e=_0x5e1f2e['isBefore'](_0x5b5e4c['start'])?_0x5e1f2e:_0x5b5e4c['start'],_0x4c1c69=_0x4c1c69['isAfter'](_0x5b5e4c['end'])?_0x4c1c69:_0x5b5e4c['end'],_0x261ddf=Object['assign']({},_0x507a21['attributes']),_0xa590a3?_0x5b5e4c['start']['isBefore'](_0xa590a3['getFirstRange']()['start'])?(_0xa590a3['removeMarkers'](),_0xa590a3=_0x507a21):_0x507a21['removeMarkers']():_0xa590a3=_0x507a21;}}}if(_0xa590a3)return this['_setSuggestionRange'](_0xa590a3,this['_model']['createRange'](_0x5e1f2e,_0x4c1c69)),_0xa590a3;{const _0x1d1641=_0x6192a1(),_0xca9e20=this['_model']['createRange'](_0x5e1f2e,_0x4c1c69),_0x5535f4=_0x5d0db2['id'],_0x43d6c5=_0x52ef04?'deletion:'+_0x52ef04:'deletion',_0x189ff6=this['_setSuggestionData']({'id':_0x1d1641,'type':_0x43d6c5,'createdAt':new Date(),'authorId':_0x5535f4,'attributes':_0x261ddf});return this['_addSuggestionMarker'](_0x43d6c5,_0x1d1641,_0x5535f4,_0xca9e20),_0x189ff6;}}['markMultiRangeDeletion'](_0x59f753,_0x43c395='multi',_0x2a75f0={}){const _0x455216=this['editor']['plugins']['get']('Users')['me'],_0x3d4e2d=_0x59f753['map'](_0x2efaf3=>new _0x48a09a(_0x2efaf3['start'],_0x2efaf3['end'])),_0xc79942=new Set();for(const {suggestion:_0x8531fc,meta:_0x5d8e1a}of this['_findSuggestions'](_0x3d4e2d,'insertion'))_0x5d8e1a['isOwn']&&!_0x5d8e1a['isNextTo']&&_0xc79942['add'](_0x8531fc);for(const _0x4e95be of _0xc79942)if(_0x4e95be['isMultiRange']){const _0x44237a=_0x4e95be['getRanges']();(!_0x4e95be['attributes']||!_0x4e95be['attributes']['skipNestingCheck'])&&(_0x44237a['every'](_0x1d45c2=>_0x3d4e2d['some'](_0x2414bc=>_0x2414bc['containsRange'](_0x1d45c2,!0x0)))&&_0x4e95be['discard']());if(_0x3d4e2d['every'](_0x5e4fc6=>_0x44237a['some'](_0x544e9e=>_0x544e9e['containsRange'](_0x5e4fc6,!0x0)))){const _0x21811b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43c395,'accept');return this['forceDefaultExecution'](()=>_0x21811b(_0x59f753,null,_0x2a75f0)),null;}}else{const _0xc138c6=_0x4e95be['getFirstRange']();_0x3d4e2d['some'](_0x1a4cf9=>_0x1a4cf9['containsRange'](_0xc138c6,!0x0))&&_0x4e95be['discard']();if(_0x3d4e2d['every'](_0x5d9375=>_0xc138c6['containsRange'](_0x5d9375,!0x0))){const _0x2ac425=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43c395,'accept');return this['forceDefaultExecution'](()=>_0x2ac425(_0x3d4e2d,null,_0x2a75f0)),null;}}const _0x2cd34c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43c395,'join');let _0x54e795=null;for(const _0x108151 of this['getSuggestions']())if(_0x108151['author']['id']==_0x455216['id']&&_0x108151['isInContent']&&'deletion'==_0x108151['type']&&_0x108151['subType']==_0x43c395&&Lt(_0x108151,_0x2a75f0)&&(_0x2cd34c(_0x108151['getRanges'](),_0x3d4e2d)||_0x2cd34c(_0x3d4e2d,_0x108151['getRanges']()))){if(_0x54e795){if(_0x108151['commentThread']&&_0x108151['commentThread']['length'])continue;for(const _0xc67ba9 of _0x108151['getRanges']())_0x54e795['isIntersectingWithRange'](_0xc67ba9)||_0x54e795['addRange'](_0xc67ba9);_0x108151['removeMarkers']();}else{_0x54e795=_0x108151;for(const _0x239411 of _0x3d4e2d)_0x108151['isIntersectingWithRange'](_0x239411)||_0x108151['addRange'](_0x239411);}}if(_0x54e795)return _0x54e795;_0xc79942['clear']();for(const {suggestion:_0x10abd0,meta:_0x5b5124}of this['_findSuggestions'](_0x3d4e2d,'deletion'))_0x5b5124['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b5124['containsRangeInObject']&&!_0x5b5124['isInsideObject'])&&Lt(_0x10abd0,_0x2a75f0)&&_0xc79942['add'](_0x10abd0);for(const _0x441973 of _0xc79942){const _0x18e829=_0x441973['getRanges']();if(!_0x2a75f0||!_0x2a75f0['skipNestingCheck']){if(_0x3d4e2d['every'](_0x1dc334=>_0x18e829['some'](_0x2ac5f9=>_0x2ac5f9['containsRange'](_0x1dc334,!0x0))))return _0x441973;}(!_0x441973['attributes']||!_0x441973['attributes']['skipNestingCheck'])&&(_0x18e829['every'](_0x8a304d=>_0x3d4e2d['some'](_0x5a03dd=>_0x5a03dd['containsRange'](_0x8a304d,!0x0)))&&_0x441973['discard']());}const _0x1f02b4=_0x6192a1(),_0x3bf628=_0x455216['id'],_0x1fa049='deletion:'+_0x43c395,_0xc03e31=this['_setSuggestionData']({'id':_0x1f02b4,'type':_0x1fa049,'createdAt':new Date(),'authorId':_0x3bf628,'attributes':_0x2a75f0});for(const _0xeec82b of _0x3d4e2d)_0xeec82b['detach'](),_0xeec82b['isCollapsed']||'$graveyard'==_0xeec82b['root']['rootName']||this['_addSuggestionMarker'](_0x1fa049,_0x1f02b4,_0x3bf628,_0xeec82b,u['getMultiRangeId']());return _0xc03e31;}['markAttributeChange'](_0xcc7b5d,_0x5e547d,_0x1e996a,_0x1409c5,_0x2aa256){if(_0xcc7b5d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x378eb2=this['editor']['plugins']['get']('Users')['me']['id'],_0x567279=Array['from'](this['_suggestions']['values']())['filter'](_0x3b5902=>'attribute'==_0x3b5902['type']&&_0x3b5902['data']['key']==_0x5e547d&&_0x3b5902['isIntersectingWithRange'](_0xcc7b5d));if('default'===this['_trackFormatChanges']){const _0xd3682f=this['_findSuggestions'](_0xcc7b5d,'insertion')['filter'](({meta:_0x591e0e})=>_0x591e0e['isOwn']&&!_0x591e0e['isInsideObject']&&!_0x591e0e['isNextTo'])['map'](({suggestion:_0x1c8023})=>_0x1c8023);_0x567279['unshift'](..._0xd3682f);}const _0x1b9eee=new Map([[_0xcc7b5d,_0x1e996a]]);for(const _0x4aeff9 of _0x567279){const _0x239872='attribute'==_0x4aeff9['type']?_0x4aeff9['data']['oldValue']:void 0x0,_0x4e30f2=_0x4aeff9['getFirstRange'](),_0x57ea74=Array['from'](_0x1b9eee['keys']())['find'](_0x39fbe1=>_0x39fbe1['isIntersecting'](_0x4e30f2));if(!_0x57ea74)continue;const _0x5a07b5=_0x57ea74['getDifference'](_0x4e30f2);this['_isBlockAttribute'](_0x5e547d)&&'insertion'==_0x4aeff9['type']&&0x0!=_0x5a07b5['length']||(_0x1b9eee['delete'](_0x57ea74),_0x5a07b5['forEach'](_0x24fc52=>{_0x1b9eee['set'](_0x24fc52,_0x1e996a);}),'insertion'!=_0x4aeff9['type']&&_0x239872!=_0x1409c5&&_0x1b9eee['set'](_0x57ea74['getIntersection'](_0x4e30f2),_0x239872));}const _0x50d8ea=[];for(const [_0x474c41,_0x3e0f89]of _0x1b9eee){const _0x32646a=_0x6192a1(),_0x1cdb8c={'key':_0x5e547d,'oldValue':_0x3e0f89,'newValue':_0x1409c5};_0x5e547d['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':_0x5e547d});const _0x389de5=('attribute:'+(_0x5e547d+'|'+Vt({'newValue':_0x1409c5})))['substring'](0x0,0x3c),_0x94866b=this['_setSuggestionData']({'id':_0x32646a,'type':_0x389de5,'data':_0x1cdb8c,'createdAt':new Date(),'authorId':_0x378eb2,'attributes':_0x2aa256});_0x50d8ea['push'](_0x94866b),this['_addSuggestionMarker'](_0x389de5,_0x32646a,_0x378eb2,_0x474c41);}return _0x50d8ea;}['enableDefaultAttributesIntegration'](_0x58781a){this['enableCommand'](_0x58781a,(_0xbbe018,..._0x460188)=>{this['_recordAttributeChanges'](()=>{_0xbbe018(..._0x460188);});});}['registerBlockAttribute'](_0x537e97){this['_blockAttributeKeys']['add'](_0x537e97);}['registerInlineAttribute'](_0x444ad8){this['_inlineAttributeKeys']['add'](_0x444ad8);}['_getAttributeKey'](_0x48e30d){return'attribute'==_0x48e30d['type']?_0x48e30d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1ce4a7,_0x193830){const _0x1e35a7=_0x1ce4a7['getFirstMarker']();this['_model']['change'](_0x3c2af4=>{_0x3c2af4['updateMarker'](_0x1e35a7,{'range':_0x193830});});}['_addThreadToSuggestion'](_0x52eaec){const _0x2f7a1f=_0x52eaec['id'],_0x49837f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2f7a1f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x49837f,'threadId':_0x2f7a1f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bd49b=this['_commentsRepository']['getCommentThread'](_0x2f7a1f);_0x4bd49b['unbind']('isRemovable'),_0x4bd49b['isRemovable']=!0x1,_0x52eaec['commentThread']=_0x4bd49b;}['_checkSuggestionCorrectness'](_0x3c4c48,_0x1f2d53,_0x40bdb7,_0x2577a4){if(_0x3c4c48['type']!=_0x1f2d53||_0x3c4c48['subType']!=_0x40bdb7||_0x3c4c48['creator']['id']!=_0x2577a4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x23a85a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x480767,_0x4dcbfe){const _0x3f7e0c=_0x480767['getFirstRange']();if(_0x4dcbfe['isEqual'](_0x3f7e0c))_0x480767['removeMarkers']();else{if(_0x3f7e0c['containsRange'](_0x4dcbfe)){const _0x6f2ad6=this['_model']['createPositionAt'](_0x4dcbfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x480767,this['_model']['createRange'](_0x3f7e0c['start'],_0x6f2ad6));const _0x4d23da=_0x6192a1(),_0x1dbc74=_0x480767['creator']['id'],_0x22542c=_0x480767['type']+':'+_0x480767['subType'];this['_setSuggestionData']({'id':_0x4d23da,'type':_0x22542c,'createdAt':new Date(),'authorId':_0x1dbc74,'data':_0x480767['data'],'attributes':_0x480767['attributes']});const _0x4e95a5=this['_model']['createPositionAt'](_0x4dcbfe['end']['parent'],'after'),_0x39aacb=this['_model']['createRange'](_0x4e95a5,_0x3f7e0c['end']);this['_addSuggestionMarker'](_0x22542c,_0x4d23da,_0x1dbc74,_0x39aacb);}else{if(_0x3f7e0c['containsPosition'](_0x4dcbfe['start'])){const _0xe922a4=this['_model']['createPositionAt'](_0x4dcbfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x480767,this['_model']['createRange'](_0x3f7e0c['start'],_0xe922a4));}else{const _0xfb5ba4=this['_model']['createPositionAt'](_0x4dcbfe['end']['parent'],'after');this['_setSuggestionRange'](_0x480767,this['_model']['createRange'](_0xfb5ba4,_0x3f7e0c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4b4c9e){for(const {suggestion:_0x3bb49c,meta:_0x45c5d2}of this['_findSuggestions'](_0x4b4c9e,'insertion')){if(!_0x45c5d2['isOwn'])continue;const _0x11f2a2=_0x3bb49c['getRanges']();for(const _0x33570c of _0x11f2a2)if(!_0x4b4c9e['getDifference'](_0x33570c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc7ea1b){const _0x4f89bc=this['editor']['plugins']['get']('Users')['getUser'](_0xc7ea1b);if(!_0x4f89bc)throw new _0x23a85a('track-changes-user-not-found',this);return _0x4f89bc;}['_getExternalAuthor'](_0x274e31){const _0x384c60=this['editor']['plugins']['get']('Users'),_0x1bea01=_0x44a3ac('external:'+_0x274e31),_0x1bf8e2=_0x384c60['getUser'](_0x1bea01);return _0x1bf8e2||_0x384c60['addUser']({'id':_0x1bea01,'name':_0x274e31});}['_createSuggestion'](_0x19259a,_0x10bfd4,_0x4ae2d4,_0x1fabc5,_0x33a54d){const _0x319259=this['_getAuthorFromId'](_0x1fabc5),_0x3a53c3=this['_suggestionFactory']['buildSuggestion'](_0x19259a,_0x10bfd4,_0x4ae2d4,_0x319259,_0x33a54d,_0x39381c=>{this['_updateSuggestionData'](_0x4ae2d4,{'attributes':_0x39381c});const _0x38ee2a=this['getSuggestion'](_0x4ae2d4);this['_joinWithAdjacentSuggestions'](new Set([_0x38ee2a])),this['_refreshSuggestionsChain'](new Set([_0x38ee2a]));});return this['listenTo'](_0x3a53c3,'accept',()=>{this['_updateSuggestionData'](_0x4ae2d4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3a53c3,'discard',()=>{this['_updateSuggestionData'](_0x4ae2d4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ae2d4,_0x3a53c3),this['_suggestionState']['set'](_0x3a53c3,'notReady'),_0x3a53c3;}['_splitMarkerName'](_0x17d95e){const _0x492e1a=_0x17d95e['split'](':');return{'group':_0x492e1a[0x0],'type':_0x492e1a[0x1],'subType':_0x492e1a['length']>=0x5?_0x492e1a[0x2]:null,'id':_0x492e1a['length']<0x5?_0x492e1a[0x2]:_0x492e1a[0x3],'authorId':_0x492e1a['length']<0x5?_0x492e1a[0x3]:_0x492e1a[0x4],'markerCount':0x6==_0x492e1a['length']?_0x492e1a[0x5]:null};}['_breakSuggestionMarker'](_0x452b07,_0x338b60,_0x4dde52){const _0x40cda9=_0x452b07['getFirstRange'](),_0x3c52b6=_0x40cda9['start'],_0x4b67be=_0x40cda9['end'];this['_setSuggestionRange'](_0x452b07,this['_model']['createRange'](_0x3c52b6,_0x338b60));const _0x47157f=_0x6192a1(),_0x193024=_0x452b07['creator']['id'],_0x5a2bd3=_0x452b07['type']+(_0x452b07['subType']?':'+_0x452b07['subType']:'');this['_setSuggestionData']({'id':_0x47157f,'type':_0x5a2bd3,'createdAt':new Date(),'authorId':_0x193024,'originalSuggestionId':_0x452b07['id'],'attributes':_0x452b07['attributes'],'data':_0x452b07['data']});const _0x4e87a0=this['_getAttributeKey'](_0x452b07);('formatBlock'==_0x452b07['type']||_0x4e87a0&&this['_isBlockAttribute'](_0x4e87a0))&&(_0x4dde52=this['_model']['createPositionBefore'](_0x4dde52['parent'])),this['_addSuggestionMarker'](_0x5a2bd3,_0x47157f,_0x193024,this['_model']['createRange'](_0x4dde52,_0x4b67be));}['_findSuggestions'](_0x3aec38,_0x3161c9=null){const _0x42b140=[],_0x3e79dd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3aec38)||(_0x3aec38=[_0x3aec38]);for(const _0x4fc7b3 of this['getSuggestions']()){if(!_0x4fc7b3['isInContent'])continue;if(_0x3161c9&&_0x4fc7b3['type']!=_0x3161c9)continue;let _0x4c43b0=!0x1;for(const _0x32adbc of _0x4fc7b3['getRanges']()){for(const _0x48aa56 of _0x3aec38){const _0x3b7566=_0x48aa56['start']['isEqual'](_0x32adbc['end'])||_0x48aa56['end']['isEqual'](_0x32adbc['start']);if(_0x3b7566||_0x48aa56['getIntersection'](_0x32adbc)){const _0x12d822=_0x48aa56['containsRange'](_0x32adbc)&&Rt(this['_model']['schema'],_0x32adbc['start'],_0x48aa56),_0x47fb0b=_0x32adbc['containsRange'](_0x48aa56)&&Rt(this['_model']['schema'],_0x48aa56['start'],_0x32adbc);_0x42b140['push']({'suggestion':_0x4fc7b3,'meta':{'isOwn':_0x3e79dd==_0x4fc7b3['author'],'isNextTo':_0x3b7566,'isInsideObject':_0x12d822,'containsRangeInObject':_0x47fb0b}}),_0x4c43b0=!0x0;break;}}if(_0x4c43b0)break;}}return _0x42b140;}['_addSuggestionMarker'](_0xeb2191,_0x46da19,_0x52482c,_0xf5b816,_0x48516f){this['_model']['change'](_0x25bec0=>{let _0xa3bd97='suggestion:'+_0xeb2191+':'+_0x46da19+':'+_0x52482c;_0x48516f&&(_0xa3bd97=_0xa3bd97+':'+_0x48516f),_0x25bec0['addMarker'](_0xa3bd97,{'range':_0xf5b816,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f1096){const _0x1473f6=_0x4f1096['previous'],_0x796c63=_0x4f1096['next'];_0x4f1096['previous']=null,_0x4f1096['next']=null,null!=_0x1473f6&&_0x1473f6['next']==_0x4f1096&&(_0x1473f6['next']=_0x796c63),null!=_0x796c63&&_0x796c63['previous']==_0x4f1096&&(_0x796c63['previous']=_0x1473f6),'ready'==this['_suggestionState']['get'](_0x4f1096)&&(this['_suggestionState']['set'](_0x4f1096,'removed'),this['fire']('suggestionUnloaded',_0x4f1096,_0x1473f6,_0x796c63));}['_setSuggestionData'](_0x440998){const _0x3776b1=_0x440998['id'],_0x40c285=this['addSuggestionData'](_0x440998);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e4774=this['editor']['plugins']['get']('PendingActions'),_0x51f75b=_0x40c285['hasComments'],_0x589731=_0x40c285['subType']?_0x40c285['type']+':'+_0x40c285['subType']:_0x40c285['type'],_0x4a56d5=this['editor']['locale'],_0x1e1e54=_0x3e4774['add'](o(_0x4a56d5,'PENDING_ACTION_SUGGESTION')),_0x58241b={'id':_0x3776b1,'type':_0x589731,'hasComments':_0x51f75b,'data':_0x440998['data']||null,'originalSuggestionId':_0x440998['originalSuggestionId']||null,'attributes':_0x40c285['attributes']};this['_adapter']['addSuggestion'](_0x58241b)['then'](_0x1f6f5e=>{_0x40c285['_saved']=!0x0,_0x3e4774['remove'](_0x1e1e54),_0x1f6f5e&&_0x1f6f5e['createdAt']&&(this['_suggestions']['get'](_0x3776b1)['createdAt']=_0x1f6f5e['createdAt']);})['catch'](_0x31baa6=>{throw _0x223c17('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x40c285['discard']();}),_0x40c285['stopListening'](),this['_suggestions']['delete'](_0x40c285['id']),this['_suggestionState']['delete'](_0x40c285),_0x31baa6;});}return _0x40c285;}['_isBlockAttribute'](_0x2ed25f){return this['_blockAttributeKeys']['has'](_0x2ed25f);}['_updateSuggestionData'](_0x294bf1,_0x4a11cb){const _0x453cf2=this['editor']['plugins']['get']('PendingActions'),_0x1943be=this['getSuggestion'](_0x294bf1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1943be['_saved']){const _0x9a1e25=_0x453cf2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x294bf1,_0x4a11cb)['then'](()=>{_0x453cf2['remove'](_0x9a1e25);});}else _0x1943be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x294bf1,_0x4a11cb);});}}['_getSuggestionData'](_0x226b9c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x23a85a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x226b9c);}['_handleNewSuggestionMarker'](_0xa33e10){const {id:_0x15ecab,type:_0x1c1c4f,subType:_0x31b131,authorId:_0x526e5e}=this['_splitMarkerName'](_0xa33e10),_0x3074bb=this['_suggestions']['get'](_0x15ecab)||this['_createSuggestion'](_0x1c1c4f,_0x31b131,_0x15ecab,_0x526e5e,{});switch(this['_checkSuggestionCorrectness'](_0x3074bb,_0x1c1c4f,_0x31b131,_0x526e5e),this['_suggestionState']['get'](_0x3074bb)){case'notReady':this['_getSuggestionData'](_0x15ecab)['then'](_0x50cfac=>{let _0x5f2c77=Promise['resolve']();_0x50cfac['hasComments']&&(_0x5f2c77=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x15ecab})),_0x5f2c77['then'](()=>{this['addSuggestionData'](_0x50cfac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3074bb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x15ecab,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3074bb,'ready'),this['fire']('suggestionLoaded',_0x3074bb);break;case'ready':this['fire']('suggestionChanged',_0x3074bb);}return _0x3074bb['addMarkerName'](_0xa33e10),_0x3074bb;}['_refreshSuggestionsChain'](_0x461ff2){const _0x3e6512=Array['from'](_0x461ff2),_0x5621c4=_0x3e6512['filter'](_0x43bbaf=>'attribute'==_0x43bbaf['type']);this['_refreshAttributeSuggestionsChain'](_0x5621c4);const _0x5d62e3=_0x3e6512['filter'](_0x4a76a6=>!_0x4a76a6['isMultiRange']&&'attribute'!=_0x4a76a6['type']),_0x1669ef=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fab9e=>!_0x1fab9e['isMultiRange']&&'attribute'!=_0x1fab9e['type']),_0x8e3660=_0x1669ef['filter'](_0x5445ea=>!_0x461ff2['has'](_0x5445ea)),_0x5a98c5=new Map(_0x1669ef['map'](_0x35017d=>[_0x35017d,this['_suggestionFactory']['getSuggestionCallback'](_0x35017d['type'],_0x35017d['subType'],'chain')])),_0x1b0b3d=new Map(_0x1669ef['map'](_0x4fd507=>[_0x4fd507,_0x4fd507['getFirstRange']()])),_0x547052=new Set(),_0x47ef99=new Set();for(let _0x3cf444=0x0;_0x3cf444<_0x5d62e3['length'];_0x3cf444++)_0x184fa1(_0x5d62e3[_0x3cf444],_0x5d62e3,_0x3cf444+0x1);for(let _0x4253e8=0x0;_0x4253e8<_0x5d62e3['length'];_0x4253e8++)_0x184fa1(_0x5d62e3[_0x4253e8],_0x8e3660,0x0);const _0x23df5e=new Set();for(let _0x5693f2=0x0;_0x5693f2<_0x5d62e3['length'];_0x5693f2++){const _0x579793=_0x5d62e3[_0x5693f2];!_0x47ef99['has'](_0x579793)&&_0x579793['previous']&&(_0x23df5e['add'](_0x579793['previous']),_0x579793['previous']['next']===_0x579793&&(_0x579793['previous']['next']=null),_0x579793['previous']=null),!_0x547052['has'](_0x579793)&&_0x579793['next']&&(_0x23df5e['add'](_0x579793['next']),_0x579793['next']['previous']===_0x579793&&(_0x579793['next']['previous']=null),_0x579793['next']=null);}function _0x184fa1(_0x5a7fab,_0x67cd9c,_0x1d16f2){for(let _0x40e960=_0x1d16f2;_0x40e960<_0x67cd9c['length'];_0x40e960++){const _0x11e6cd=_0x507375(_0x5a7fab,_0x67cd9c[_0x40e960]);_0x11e6cd&&(_0x11e6cd[0x0]['next']=_0x11e6cd[0x1],_0x11e6cd[0x1]['previous']=_0x11e6cd[0x0],_0x547052['add'](_0x11e6cd[0x0]),_0x47ef99['add'](_0x11e6cd[0x1]));}}function _0x507375(_0x367655,_0x47a205){if(_0x367655['author']['id']!==_0x47a205['author']['id'])return null;const _0x45bf8c=_0x5a98c5['get'](_0x367655)(_0x367655,_0x47a205,_0x1b0b3d['get'](_0x367655),_0x1b0b3d['get'](_0x47a205));if(!_0x45bf8c)return null;return _0x5a98c5['get'](_0x47a205)(_0x367655,_0x47a205,_0x1b0b3d['get'](_0x367655),_0x1b0b3d['get'](_0x47a205))?_0x45bf8c[0x1]['commentThread']&&_0x45bf8c[0x1]['commentThread']['length']?null:_0x45bf8c:null;}_0x23df5e['size']&&this['_refreshSuggestionsChain'](_0x23df5e);}['_refreshAttributeSuggestionsChain'](_0x218694){if(0x0==_0x218694['length'])return;const _0x3d6db4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e5b9e=>'attribute'==_0x4e5b9e['type']&&_0x4e5b9e['_isDataLoaded']),_0x355d20=[],_0xfd5914=new Map();for(const _0x3d4dca of _0x3d6db4){const _0x1a25e2=_0x44a3ac(_0x3d4dca['attributes']);_0xfd5914['has'](_0x1a25e2)||(_0xfd5914['set'](_0x1a25e2,_0x355d20['length']),_0x355d20['push']([]));const _0x25368c=_0xfd5914['get'](_0x1a25e2);_0x355d20[_0x25368c]['push'](_0x3d4dca);}!(function(){_0x355d20['sort']((_0x1cfe42,_0x442e0e)=>{const _0x50b850=_0x1cfe42[0x0]['createdAt'],_0x53f994=_0x442e0e[0x0]['createdAt'];return _0x50b850==_0x53f994?_0x1cfe42[0x0]['attributes']['groupId']<_0x442e0e[0x0]['attributes']['groupId']?-0x1:0x1:_0x50b850<_0x53f994?-0x1:0x1;});for(const _0x5372b4 of _0x355d20)_0x5372b4['sort']((_0x46533b,_0x13c17e)=>_0x46533b['id']<_0x13c17e['id']?-0x1:0x1);}());for(let _0x1d5f66=0x0;_0x1d5f66<_0x355d20['length'];_0x1d5f66++){if(0x0==_0x355d20[_0x1d5f66]['length'])continue;const _0x2a0e97=[];for(let _0x582753=_0x1d5f66+0x1;_0x582753<_0x355d20['length'];_0x582753++)0x0!=_0x355d20[_0x582753]['length']&&_0x4fdb3c(_0x355d20[_0x1d5f66],_0x355d20[_0x582753])&&_0x2a0e97['push'](_0x582753);for(const _0x256cfc of _0x2a0e97)_0x355d20[_0x1d5f66]=_0x355d20[_0x1d5f66]['concat'](_0x355d20[_0x256cfc]),_0x355d20[_0x256cfc]=[];}for(const _0x5e33dd of _0x355d20)for(let _0x41dc24=0x0;_0x41dc24<_0x5e33dd['length'];_0x41dc24++)_0x5e33dd[_0x41dc24]['next']=_0x5e33dd[_0x41dc24+0x1]||null;for(const _0x12e932 of _0x355d20)for(let _0x4a40c0=0x0;_0x4a40c0<_0x12e932['length'];_0x4a40c0++)_0x12e932[_0x4a40c0]['previous']=_0x12e932[_0x4a40c0-0x1]||null;function _0x4fdb3c(_0x5d505a,_0x1fdad0){if(_0x5d505a[0x0]['attributes']['groupId']!==_0x1fdad0[0x0]['attributes']['groupId']&&_0x5d505a[0x0]['author']!==_0x1fdad0[0x0]['author'])return!0x1;if(!function(_0x284cb1,_0x346393){if(!_0x284cb1['hasComments']&&!_0x346393['hasComments'])return!0x0;if(_0x284cb1['hasComments']&&_0x346393['hasComments'])return!0x1;if(_0x284cb1['hasComments']&&_0x346393['createdAt']<_0x284cb1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x346393['hasComments']&&_0x284cb1['createdAt']<_0x346393['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5d505a[0x0],_0x1fdad0[0x0]))return!0x1;const _0x2c9b06=Bt(_0x5d505a[0x0]['attributes'],'groupId'),_0x5df747=Bt(_0x1fdad0[0x0]['attributes'],'groupId');if(!_0x11068c(_0x2c9b06,_0x5df747))return!0x1;return!!_0x5d505a['every'](_0x66386b=>_0x1fdad0['some'](_0x14dc4f=>_0x66386b['getFirstRange']()['isEqual'](_0x14dc4f['getFirstRange']())))&&_0x1fdad0['every'](_0x5269bf=>_0x5d505a['some'](_0x54cc8d=>_0x5269bf['getFirstRange']()['isEqual'](_0x54cc8d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x13ae77){const _0x12bad0=Array['from'](_0x13ae77),_0xa5f242=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4d2bf2=_0xa5f242['filter'](_0x4663b4=>!_0x13ae77['has'](_0x4663b4)),_0x127146=new Map(_0x12bad0['map'](_0x162a38=>[_0x162a38,this['_suggestionFactory']['getSuggestionCallback'](_0x162a38['type'],_0x162a38['subType'],'join')])),_0x2a0325=new Map(_0xa5f242['map'](_0x4343f9=>[_0x4343f9,_0x4343f9['getRanges']()]));for(let _0x263625=0x0;_0x263625<_0x12bad0['length'];_0x263625++){if(_0xd54f1c(this,_0x12bad0[_0x263625],_0x12bad0,_0x263625+0x1))return!0x0;}for(let _0x19312c=0x0;_0x19312c<_0x12bad0['length'];_0x19312c++){if(_0xd54f1c(this,_0x12bad0[_0x19312c],_0x4d2bf2,0x0))return!0x0;}return!0x1;function _0xd54f1c(_0x2452f9,_0x55c375,_0x278f07,_0x44315f){for(let _0x3e6444=_0x44315f;_0x3e6444<_0x278f07['length'];_0x3e6444++){const _0x5d42df=_0x278f07[_0x3e6444];if(_0x5d42df['type']!==_0x55c375['type']||_0x5d42df['author']['id']!==_0x55c375['author']['id']||_0x5d42df['subType']!==_0x55c375['subType'])continue;if(!Pt(_0x55c375,_0x5d42df,['groupId']))continue;if('attribute'==_0x55c375['type']&&_0x55c375['data']['oldValue']!=_0x5d42df['data']['oldValue'])continue;if('attribute'==_0x55c375['type']&&_0x2452f9['_isBlockAttribute'](_0x55c375['data']['key']))continue;if('formatBlock'==_0x55c375['type']){const _0x9c070c=_0x2452f9['editor']['model'],_0x50b608=_0x55c375['getContainedElement']();if(_0x50b608&&(_0x9c070c['schema']['isObject'](_0x50b608)||_0x9c070c['schema']['isLimit'](_0x50b608)))continue;}const _0x3978a6=_0x127146['get'](_0x55c375),_0x21e989=_0x2a0325['get'](_0x55c375),_0xb44f44=_0x2a0325['get'](_0x5d42df),_0x31a325=_0x55c375['commentThread']&&_0x55c375['commentThread']['length'],_0x20a42f=_0x5d42df['commentThread']&&_0x5d42df['commentThread']['length'];if(!_0x31a325&&_0x3978a6(_0xb44f44,_0x21e989))return _0x2452f9['_joinSuggestions'](_0x5d42df,_0x55c375),_0x2a0325['delete'](_0x55c375),!0x0;if(!_0x20a42f&&_0x3978a6(_0x21e989,_0xb44f44))return _0x2452f9['_joinSuggestions'](_0x55c375,_0x5d42df),_0x2a0325['delete'](_0x5d42df),!0x0;}return!0x1;}}['_joinSuggestions'](_0xc19a2b,_0x331e5b){if(_0xc19a2b['isMultiRange']){for(const _0x30ac5a of _0x331e5b['getRanges']())_0xc19a2b['addRange'](_0x30ac5a);}else{const _0x35834f=_0x331e5b['getFirstRange']()['end'];this['_setSuggestionRange'](_0xc19a2b,this['_model']['createRange'](_0xc19a2b['getFirstRange']()['start'],_0x35834f));}_0x331e5b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x34dbff,_0x201540){const _0x38c009=_0x34dbff['startsWith']('format')||_0x34dbff['startsWith']('attribute')?'FORMATTING':_0x34dbff['toUpperCase']();return o(this['editor']['locale'],_0x201540+'_'+_0x38c009+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x54a2dc=this['editor'];if(!_0x54a2dc['ui'])return;const {ariaLiveAnnouncer:_0x5b369b}=_0x54a2dc['ui'];_0x1f58ed(this['_model'],({left:_0xfb7ebd,entered:_0x22dc26})=>{for(const _0x33e490 of _0xfb7ebd){const {group:_0x33da1c,type:_0x368bc5}=this['_splitMarkerName'](_0x33e490['name']);if('suggestion'===_0x33da1c){_0x5b369b['announce'](this['_getMarkerAnnouncementText'](_0x368bc5,'LEAVE'));break;}}for(const _0x1de5e8 of _0x22dc26){const {group:_0x267ccc,type:_0x387a2b}=this['_splitMarkerName'](_0x1de5e8['name']);if('suggestion'===_0x267ccc){_0x5b369b['announce'](this['_getMarkerAnnouncementText'](_0x387a2b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x100b89){if(this['_recordAttributeSuggestions'])return!0x1;const _0x483f0f=this['editor'],_0xb9ed5d=_0x483f0f['model']['document']['differ']['getChanges']();if(0x0==_0xb9ed5d['length'])return!0x1;const _0x57142b=[],_0x4156d4=_0xb9ed5d['filter'](_0x32c932=>'attribute'==_0x32c932['type']),_0x1ae997=_0xb9ed5d['filter'](_0xcfb6ff=>'insert'==_0xcfb6ff['type']&&'$text'!=_0xcfb6ff['name']),_0x1e323e=_0xb9ed5d['filter'](_0x4e7b19=>'remove'==_0x4e7b19['type']&&'$text'!=_0x4e7b19['name']);for(const _0x4960a9 of _0x4156d4)_0x57142b['push']({'key':_0x4960a9['attributeKey'],'newValue':_0x4960a9['attributeNewValue'],'oldValue':_0x4960a9['attributeOldValue'],'range':Ot(_0x4960a9['range'],_0x483f0f['model'])});for(const _0x3b7f19 of _0x1ae997){const _0x50bc36=_0x1e323e['find'](_0x37cd53=>_0x37cd53['position']['isEqual'](_0x3b7f19['position']));_0x50bc36&&_0x57142b['push']({'key':m,'newValue':_0x3b7f19['name'],'oldValue':_0x50bc36['name'],'range':_0x483f0f['model']['createRangeOn'](_0x3b7f19['position']['nodeAfter'])});}return 0x0!=_0x57142b['length']&&this['_reduceExistingSuggestions'](_0x100b89,_0x57142b);}['_processAttributeSuggestions'](_0x53200c){let _0x45964b=!0x1;const _0x50bca2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x23ebbc=>_0x23ebbc['data']['newRange']&&_0x23ebbc['name']['startsWith']('suggestion:attribute:'));for(const _0x44dd29 of _0x50bca2){const {subType:_0x4ba522,id:_0x58ee55}=this['_splitMarkerName'](_0x44dd29['name']),_0x59bdf4=_0x4ba522['split']('|')[0x0];for(const _0x49be5e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x49be5e['id']!=_0x58ee55&&'attribute'==_0x49be5e['type']&&_0x49be5e['data']&&_0x49be5e['data']['key']==_0x59bdf4&&_0x49be5e['getFirstRange']()['isIntersecting'](_0x44dd29['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x49be5e,_0x44dd29['data']['newRange'],_0x53200c),_0x45964b=!0x0);}return _0x45964b;}['_recordAttributeChanges'](_0x307790){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x307790();}['_isRegisteredAttribute'](_0x483f50){const _0x133f61=this['_isBlockAttribute'](_0x483f50),_0x18a800=this['_inlineAttributeKeys']['has'](_0x483f50);return _0x133f61||_0x18a800;}['_reduceExistingSuggestions'](_0x2df688,_0x1615a2){if(0x0==_0x1615a2['length'])return!0x1;let _0x547396=!0x1;for(const _0x3172df of _0x1615a2){const _0x1db3e4=this['_findSuggestions'](_0x3172df['range'],'attribute')['filter'](_0x5cd960=>!_0x5cd960['meta']['isNextTo'])['map'](_0x358d3f=>_0x358d3f['suggestion']),_0x493828=_0x44a3ac({'newValue':_0x3172df['newValue']});_0x1db3e4['filter'](_0x2ca807=>{const [_0x135d68,_0x163807]=_0x2ca807['subType']['split']('|');return _0x135d68==_0x3172df['key']&&_0x163807!=_0x493828;})['forEach'](_0x55302d=>{this['_reduceSuggestionAttributeRange'](_0x55302d,_0x3172df['range'],_0x2df688),_0x547396=!0x0;});}return _0x547396;}['_reduceSuggestionAttributeRange'](_0x19b862,_0xae5221,_0xd391a3){const _0x41cdee=_0x19b862['getFirstRange']()['getDifference'](_0xae5221);0x0!==_0x41cdee['length']?0x1!==_0x41cdee['length']?this['_breakSuggestionMarker'](_0x19b862,_0xae5221['start'],_0xae5221['end']):this['_setSuggestionRange'](_0x19b862,_0x41cdee[0x0]):_0xd391a3['removeMarker'](_0x19b862['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x40923f){this['_editor']=_0x40923f,this['_model']=_0x40923f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1de7bc,_0x2244ae,_0x3e26c8,_0x320e43,_0xb06eb0,_0x2218bd){return new u(this['_model'],{'type':_0x1de7bc,'subType':_0x2244ae,'id':_0x3e26c8,'author':_0x320e43,'creator':_0x320e43,'attributes':_0xb06eb0,'onAttributesChange':_0x2218bd,'onAccept':(..._0x39a48d)=>this['getSuggestionCallback'](_0x1de7bc,_0x2244ae,'accept')(..._0x39a48d),'onDiscard':(..._0x46230e)=>this['getSuggestionCallback'](_0x1de7bc,_0x2244ae,'discard')(..._0x46230e)});}['registerCustomCallback'](_0x3822e9,_0x6231e6,_0x2a6a35,_0x37b248){const _0x2540bd=_0x3822e9+':'+_0x6231e6+':'+_0x2a6a35;this['_customCallbacks']['set'](_0x2540bd,_0x37b248);}['getSuggestionCallback'](_0x317d54,_0x2fc871,_0x6f7f5d){const _0x711f16=_0x317d54+':'+_0x2fc871+':'+_0x6f7f5d;return this['_customCallbacks']['get'](_0x711f16)||this['_defaultCallbacks']['get'](_0x317d54+':'+_0x6f7f5d);}['_registerDefaultCallbacks'](){const _0x4b94da=()=>!0x1,_0x4fddd8=_0x19fae7=>{_0x19fae7['sort']((_0x54a08a,_0x496e31)=>_0x54a08a['start']['isBefore'](_0x496e31['start'])?0x1:-0x1),this['_model']['change'](_0x2b09f9=>{for(const _0x4c47fb of _0x19fae7){let _0xd4dd36;_0xd4dd36=_0x4c47fb['end']['isAtEnd']&&_0x4c47fb['end']['parent']==_0x4c47fb['start']['nodeAfter']?_0x2b09f9['createSelection'](_0x4c47fb['start']['nodeAfter'],'on'):_0x2b09f9['createSelection'](_0x4c47fb),this['_model']['deleteContent'](_0xd4dd36,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5d63f7=(_0x424c51,_0x4832f9)=>{_0x4832f9&&this['_model']['change'](_0x401232=>{const {commandName:_0x3ee851,commandParams:_0x2a140c=[]}=_0x4832f9,_0x457097=_0x424c51['map'](_0x3c270f=>(Tt(_0x3c270f)&&(_0x3c270f=this['_model']['createRange'](_0x3c270f['end'])),_0x3c270f))['filter'](_0x429e9a=>'$graveyard'!==_0x429e9a['root']['rootName']);if(_0x457097['length']<0x1)return;const _0x3e4bb2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x40eb9d=>_0x48a09a['fromRange'](_0x40eb9d));_0x401232['setSelection'](_0x457097);for(const _0x3c3c9b of this['_editor']['commands']['commands']())_0x3c3c9b['refresh']();_0x2a140c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3ee851,..._0x2a140c);const _0x123b72=_0x3e4bb2['filter'](_0x25f433=>'$graveyard'!=_0x25f433['root']['rootName']);_0x123b72['length']>0x0&&_0x401232['setSelection'](_0x123b72);for(const _0x4faefd of _0x3e4bb2)_0x4faefd['detach']();});},_0x44f0b4=(_0x44084f,_0x3f35e5)=>0x1==_0x44084f['length']&&0x1==_0x3f35e5['length']&&_0x44084f[0x0]['end']['isEqual'](_0x3f35e5[0x0]['start']),_0x202791=(_0x506fd0,_0x50f3c3,_0xf3bc9,_0x443a30)=>Ft(_0x506fd0,_0x50f3c3,_0xf3bc9,_0x443a30,this['_model'])?[_0x506fd0,_0x50f3c3]:Ft(_0x50f3c3,_0x506fd0,_0x443a30,_0xf3bc9,this['_model'])?[_0x50f3c3,_0x506fd0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b94da),this['_defaultCallbacks']['set']('insertion:discard',_0x4fddd8),this['_defaultCallbacks']['set']('insertion:join',_0x44f0b4),this['_defaultCallbacks']['set']('insertion:chain',_0x202791),this['_defaultCallbacks']['set']('deletion:accept',_0x4fddd8),this['_defaultCallbacks']['set']('deletion:discard',_0x4b94da),this['_defaultCallbacks']['set']('deletion:join',_0x44f0b4),this['_defaultCallbacks']['set']('deletion:chain',_0x202791),this['_defaultCallbacks']['set']('formatInline:accept',_0x5d63f7),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b94da),this['_defaultCallbacks']['set']('formatInline:join',_0x44f0b4),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b94da),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5d63f7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b94da),this['_defaultCallbacks']['set']('formatBlock:join',_0x44f0b4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b94da),this['_defaultCallbacks']['set']('attribute:accept',_0x4b94da),this['_defaultCallbacks']['set']('attribute:discard',(_0x5e6a3c,_0x2cf5a4)=>{if(!_0x2cf5a4)return;const _0x11caaf=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5cd33c=>{if(_0x2cf5a4['key']==m)for(const _0x5686ff of _0x5e6a3c){const _0x52531f=_0x5686ff['start']['nodeAfter'],_0x4fe42f=_0x2cf5a4['oldValue'];_0x5cd33c['rename'](_0x52531f,_0x4fe42f);}else{if(_0x11caaf['_isBlockAttribute'](_0x2cf5a4['key'])){for(const _0x370d0b of _0x5e6a3c)void 0x0!==_0x2cf5a4['oldValue']?_0x5cd33c['setAttribute'](_0x2cf5a4['key'],_0x2cf5a4['oldValue'],_0x370d0b['start']['nodeAfter']):_0x5cd33c['removeAttribute'](_0x2cf5a4['key'],_0x370d0b['start']['nodeAfter']);}else{for(const _0x6d4170 of _0x5e6a3c)_0x2cf5a4['oldValue']?_0x5cd33c['setAttribute'](_0x2cf5a4['key'],_0x2cf5a4['oldValue'],_0x6d4170):_0x5cd33c['removeAttribute'](_0x2cf5a4['key'],_0x6d4170);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44f0b4);}}function Rt(_0x2eec0d,_0x43fb6a,_0x7e4923){for(const _0x42dc06 of _0x43fb6a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x42dc06['root']==_0x42dc06)return!0x1;if(!_0x7e4923['containsItem'](_0x42dc06))return!0x1;if(_0x2eec0d['isObject'](_0x42dc06)||_0x2eec0d['isLimit'](_0x42dc06))return!0x0;}return!0x1;}function Tt(_0x2a4a2b){return _0x2a4a2b['end']['parent']==_0x2a4a2b['start']['nodeAfter']&&_0x2a4a2b['end']['isAtStart'];}function Et(_0xd2f1ff,_0x5b90f6,_0x22da0e,_0x21b681){const _0x4803d8=_0x682d6b=>!_0x682d6b['item']['is']('$textProxy')&&!_0x21b681['isObject'](_0x682d6b['item']),_0x91c922=_0xd2f1ff['start']['getLastMatchingPosition'](_0x4803d8),_0x1c9e2c=_0xd2f1ff['end']['getLastMatchingPosition'](_0x4803d8,{'direction':'backward'});return(!_0xd2f1ff['start']['isEqual'](_0x91c922)||!_0xd2f1ff['end']['isEqual'](_0x1c9e2c))&&(_0x91c922['isBefore'](_0x1c9e2c)?_0x22da0e['updateMarker'](_0x5b90f6,{'range':_0x22da0e['createRange'](_0x91c922,_0x1c9e2c)}):_0x22da0e['removeMarker'](_0x5b90f6),!0x0);}function Vt(_0x3fd9dd){return _0x44a3ac(_0x3fd9dd);}function Ut(_0x3e8149){const _0x2ed8d5=_0x3e8149['start']['nodeAfter'];return _0x2ed8d5&&_0x2ed8d5['is']('element');}function Ot(_0x31f163,_0x3c769f){return null==_0x31f163['end']['nodeBefore']&&_0x31f163['end']['parent']==_0x31f163['start']['nodeAfter']?Gt(_0x31f163['start']['nodeAfter'],_0x3c769f):_0x31f163;}function Gt(_0xf4622c,_0x39c211){const _0x5787ca=_0x39c211['schema']['isObject'](_0xf4622c)||_0x39c211['schema']['isSelectable'](_0xf4622c);return _0x39c211['createRange'](_0x39c211['createPositionAt'](_0xf4622c,'before'),_0x5787ca?_0x39c211['createPositionAfter'](_0xf4622c):_0x39c211['createPositionAt'](_0xf4622c,'end'));}function Ft(_0x55e656,_0x5aecb1,_0x27b87f,_0x33b892,_0x49d22c){if(!Pt(_0x55e656,_0x5aecb1))return!0x1;if(_0x27b87f['end']['isEqual'](_0x33b892['start']))return!0x0;if(_0x55e656['type']!=_0x5aecb1['type'])return!0x1;if(!_0x27b87f['end']['isTouching'](_0x33b892['start']))return!0x1;const _0x9e45b6=_0x49d22c['createRange'](_0x27b87f['end'],_0x33b892['start'])['getWalker']();for(const _0x3d710c of _0x9e45b6)if(['elementStart','elementEnd']['includes'](_0x3d710c['type'])&&_0x49d22c['schema']['isLimit'](_0x3d710c['item']))return!0x1;return!0x0;}function Pt(_0x4e3c1e,_0x2a8fe6,_0x358e4c=[]){return!(!_0x4e3c1e['_isDataLoaded']||!_0x2a8fe6['_isDataLoaded'])&&_0x11068c(Bt(_0x4e3c1e['attributes'],_0x358e4c),Bt(_0x2a8fe6['attributes'],_0x358e4c));}function Lt(_0x1c4e54,_0x5acb13){const _0x43dc29=Ht(_0x1c4e54['attributes']),_0x1f79f7=Ht(_0x5acb13);if(!_0x1c4e54['_isDataLoaded'])return!0x1;for(const _0x3e7662 of Object['keys'](_0x1f79f7))if(!_0x11068c(_0x43dc29[_0x3e7662],_0x1f79f7[_0x3e7662]))return!0x1;return!0x0;}function Ht(_0x49fc21){const _0x432567=Object['assign']({},_0x49fc21);return delete _0x432567['skipNestingCheck'],delete _0x432567['tablePasteChainId'],_0x432567;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x13f6f1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x267624,_0x46bbd2,_0x33b718,_0x55ecc6){super(),this['model']=_0x46bbd2,this['view']=_0x33b718,this['commentThreadController']=_0x55ecc6,this['_editor']=_0x267624,this['_acceptCommand']=_0x267624['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x267624['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x465b21,_0x297360)=>_0x465b21||_0x297360),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x15113a=>_0x15113a&&this['_editor']['model']['canEditAt'](_0x46bbd2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x52ce56=>_0x52ce56&&this['_editor']['model']['canEditAt'](_0x46bbd2['getRanges']())),this['_pendingAction']=null,_0x33b718['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x33b718,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x33b718,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x33b718,'change:isDirty',()=>{_0x33b718['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x3e6e76=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3e6e76);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x42574f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x522470,_0x1cc340,_0x3c56e8,_0x4a3d7d){super(_0x522470),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x1cc340['authoredAt']),this['bind']('authoredAt')['to'](_0x1cc340),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x1cc340,this['_localUser']=_0x3c56e8,this['_config']=_0x4a3d7d,_0x4a3d7d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x547c77}=this['_config'];this['commentsListView']=new _0x547c77(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',_0x1b7f4a=>_0x1b7f4a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17e374,_0xce56ad)=>_0x17e374||!!_0xce56ad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5605c1}=this['_config'],_0x52fc4f=new _0x5605c1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x97ecc2=_0x52fc4f['commentInputView'];return _0x52fc4f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x97ecc2,'value',(_0x2192b3,_0x231405,_0x4b1e57)=>!!_0x4b1e57||_0x2192b3&&!_0x231405),_0x97ecc2['on']('submit',(_0x2dafbe,_0x354df6)=>{this['fire']('addComment',_0x354df6),_0x97ecc2['editor']['setData']('');}),_0x97ecc2['on']('cancel',()=>this['focus']()),_0x97ecc2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x52fc4f;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xe503c4,_0x55b9f1,_0x1d7d2f,_0x3f1a94){super(_0xe503c4,_0x55b9f1,_0x1d7d2f,_0x3f1a94),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x490621=>_0x490621&&_0x490621[0x0]?_0x490621[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59355e,_0x1136af)=>{let _0x5d3df4='';for(const _0x1a96bd of _0x59355e)_0x5d3df4+='<p>'+ds(_0x1a96bd['content'],_0x1a96bd['color'])+'</p>';return _0x1136af?_0x5d3df4:_0x4bd8b5(_0x5d3df4,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xe503c4,'Accept\x20suggestion'),_0xa561ce['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xe503c4,'Discard\x20suggestion'),_0xa561ce['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1f3379(_0xe503c4,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xb09bbd=this['bindTemplate'],_0x31f6bf=[{'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':_0xb09bbd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb09bbd['to']('authoredAt',_0x329cee=>this['_config']['formatDateTime'](_0x329cee))}]}]},{'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']&&_0x31f6bf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x233282={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xb09bbd['if']('isActive','ck-suggestion-wrapper--active'),_0xb09bbd['to']('type',_0x145c8b=>'ck-suggestion-'+_0x145c8b),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':_0x31f6bf}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x233282['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)),_0x233282;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x11339f,_0x3eb460,_0x72b039)=>{this['_descriptionElement']['innerHTML']=_0x72b039;});}['_createButton'](_0x503f29,_0x261ffe,_0x25e6f3,_0x40b8b9,_0x6d616d){const _0x441a3c=new _0x443b20(this['locale']);return _0x441a3c['set']({'label':_0x503f29,'icon':_0x261ffe,'tooltip':!0x0,'tooltipPosition':_0x6d616d}),_0x441a3c['extendTemplate']({'attributes':{'class':_0x25e6f3}}),_0x441a3c['on']('execute',()=>{this['fire'](_0x40b8b9,this['_model']['id']);}),_0x441a3c;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x2e5eaa,_0x501a7b){let _0x298015='';return _0x298015+=_0x2e5eaa['split']('*')['map']((_0x5a9d2d,_0x3a53d2)=>_0x3a53d2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5a9d2d)+'</span>':us(_0x5a9d2d))['join'](''),_0x501a7b&&(_0x298015+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x501a7b['value']+'\x22\x20title=\x22'+_0x501a7b['title']+'\x22></span>'),_0x298015;}function us(_0x5242e8){const _0x412a30=document['createElement']('span');return _0x412a30['innerText']=_0x5242e8,_0x412a30['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 _0x43d92e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1ad8ad,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x39dba4){super(_0x39dba4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4008df=this['editor']['config'];_0x4008df['define']('trackChanges.SuggestionThreadView',ne),_0x4008df['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4008df['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x283f7a,_0x4e9b17){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xbacfd9,_0x5aaa4b]of this['_handleControllerBuffer']){const _0x101329=this['_suggestionToController']['has'](_0xbacfd9);_0x101329||_0x5aaa4b?_0x101329&&_0x5aaa4b&&this['_destroyController'](_0xbacfd9):this['_initializeController'](_0xbacfd9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x283f7a,_0x4e9b17);}['init'](){const _0xc553e5=this['editor'],_0x15332d=_0xc553e5['plugins']['get']('TrackChangesEditing'),_0x45e5e0=_0xc553e5['plugins']['get']('Annotations'),_0x32a3c7=_0xc553e5['plugins']['get']('EditorAnnotations'),_0x2c2ea9=_0xc553e5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32a3c7['addSourceCollector'](()=>{const _0x3df6f3=[];for(const [_0x11b871,_0x12eb9f]of Array['from'](this['_suggestionToController'])){const _0x29689e=_0x11b871['getAllAdjacentSuggestions'](),_0x5ca675=[];for(const _0x520ce4 of _0x29689e){if(!_0x520ce4['isInContent'])continue;if(_0x520ce4['isMultiRange']){_0x5ca675['push'](..._0x520ce4['getRanges']());continue;}const _0x3770a5=_0x520ce4['getFirstRange']();if(_0x5ca675['length']>0x0){const _0x48a5b5=_0x5ca675[0x0]['getJoined'](_0x3770a5);if(_0x48a5b5){_0x5ca675[0x0]=_0x48a5b5;continue;}}_0x5ca675['push'](_0x3770a5);}_0x3df6f3['push']([_0x12eb9f['view'],_0x5ca675]);}return _0x3df6f3;}),this['listenTo'](_0x15332d,'suggestionLoaded',(_0x57884b,_0x3faefa)=>{this['listenTo'](_0x3faefa,'change:previous',(_0x2dabef,_0x11785f,_0x5dd694,_0x57c926)=>{_0x3faefa['isInContent']&&(null==_0x5dd694?(this['_updateController'](_0x57c926['head']),this['_handleSuggestionControllerDelayed'](_0x3faefa,!0x1)):(this['_updateController'](_0x5dd694['head']),null==_0x57c926&&this['_handleSuggestionControllerDelayed'](_0x3faefa,!0x0)));}),null!==_0x3faefa['previous']?this['_updateController'](_0x3faefa['head']):this['_handleSuggestionControllerDelayed'](_0x3faefa,!0x1);}),this['listenTo'](_0x15332d,'suggestionUnloaded',(_0x5db0e2,_0x2d11c1,_0x3df73b)=>{this['stopListening'](_0x2d11c1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d11c1),this['_suggestionToController']['has'](_0x2d11c1)&&this['_destroyController'](_0x2d11c1),_0x3df73b&&this['_updateController'](_0x3df73b['head']);}),this['listenTo'](_0x15332d,'suggestionChanged',(_0x4a1539,_0x675f2e)=>{this['_updateController'](_0x675f2e);}),this['listenTo'](_0x45e5e0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2c2ea9,'addComment',(_0xa5cf7,{threadId:_0x11c6a0,isFromAdapter:_0x26c27c})=>{if(_0x26c27c||!_0x15332d['hasSuggestion'](_0x11c6a0))return;const _0xbb7345=_0x15332d['getSuggestion'](_0x11c6a0);this['_suggestionToController']['get'](_0xbb7345)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x28a354=this['editor']['plugins']['get']('Annotations'),_0x51ddd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f3b74=Array['from'](_0x28a354['activeAnnotations'],_0x4aa466=>_0x4aa466['innerView'])['filter'](_0x217d63=>this['_viewToController']['has'](_0x217d63)),_0x3d6d38=[];for(const _0x5bd429 of _0x2f3b74){const _0x3f72e0=this['_viewToController']['get'](_0x5bd429)['model']['getAllAdjacentSuggestions']();_0x3d6d38['push'](..._0x3f72e0['reduce']((_0x361f02,_0x446eb8)=>[..._0x361f02,..._0x446eb8['getMarkerNames']()],[]));}_0x51ddd0['activeMarkers']=_0x3d6d38;}['_addUIComponentsToFactory'](){const _0x42d269=this['editor'],_0x1d7b0f=_0x42d269['locale'],_0x293190=o(_0x1d7b0f,'Track\x20changes'),_0x3bb80b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x293190,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d7b0f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d7b0f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d7b0f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1d7b0f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x328997 of _0x3bb80b)if(ae(_0x328997)){const _0x3f6647=_0x42d269['commands']['get'](_0x328997['model']['commandName']);_0x328997['model']['bind']('isOn','isEnabled')['to'](_0x3f6647,'value','isEnabled');}_0x42d269['ui']['componentFactory']['add']('trackChanges',_0x2350c7=>this['_createToolbarButton'](_0x2350c7,_0x3bb80b,_0x293190)),_0x42d269['ui']['componentFactory']['add']('menuBar:trackChanges',_0x20294d=>this['_createMenuBarMenu'](_0x20294d,_0x3bb80b,_0x293190));}['_createToolbarButton'](_0x2ad3ba,_0x109421,_0x13d7d9){const _0x164637=zt(_0x2ad3ba,Zt),_0x574746=this['editor']['commands']['get']('trackChanges');_0x164637['buttonView']['set']({'tooltip':_0x13d7d9,'label':_0x13d7d9,'icon':ie}),_0x164637['buttonView']['bind']('isOn')['to'](_0x574746,'value'),_0x164637['buttonView']['on']('execute',()=>{_0x574746['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x164637,_0x109421,{'role':'menu'});const _0x4154f1=[];for(const _0x27fcce of _0x109421)ae(_0x27fcce)&&_0x4154f1['push'](this['editor']['commands']['get'](_0x27fcce['model']['commandName']));const _0x5adb8e=_0x164637['buttonView'];return _0x5adb8e['actionView']['unbind']('isEnabled'),_0x5adb8e['arrowView']['unbind']('isEnabled'),_0x5adb8e['actionView']['bind']('isEnabled')['to'](_0x574746,'isEnabled'),_0x5adb8e['arrowView']['bind']('isEnabled')['toMany'](_0x4154f1,'isEnabled',(..._0x4193a4)=>_0x4193a4['some'](_0x10a345=>_0x10a345)),_0x164637['on']('execute',_0x3cb0f7=>{this['editor']['execute'](_0x3cb0f7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x164637;}['_createMenuBarMenu'](_0x907e07,_0x19563b,_0x4122dd){const _0x5c62e1=new Kt(_0x907e07),_0x4ab9c3=this['editor']['commands']['get']('trackChanges');_0x5c62e1['buttonView']['set']({'label':_0x4122dd,'icon':ie});const _0x3719b1=new Qt(_0x907e07);for(const _0x6bfca3 of _0x19563b){if('separator'==_0x6bfca3['type']){_0x3719b1['items']['add'](new Jt(_0x907e07));continue;}const _0x1113da=new Xt(_0x907e07,_0x5c62e1),_0x23a97d=new Yt(_0x907e07),_0x295d23=_0x6bfca3['model'];_0x23a97d['bind'](...Object['keys'](_0x295d23))['to'](_0x295d23),_0x23a97d['delegate']('execute')['to'](_0x5c62e1),_0x23a97d['on']('execute',()=>{this['editor']['execute'](_0x295d23['commandName']),this['editor']['editing']['view']['focus']();}),_0x1113da['children']['add'](_0x23a97d),_0x3719b1['items']['add'](_0x1113da);}return _0x5c62e1['bind']('isEnabled')['to'](_0x4ab9c3,'isEnabled'),_0x5c62e1['panelView']['children']['add'](_0x3719b1),_0x5c62e1;}['_initializeController'](_0x36d7e1){const _0x53e0c3=this['editor'],_0x20cb8d=_0x53e0c3['config'],_0x5a88d4=_0x53e0c3['plugins']['get']('Annotations'),_0x41f6f6=_0x53e0c3['plugins']['get']('CommentsRepository'),_0x8c6135=_0x53e0c3['plugins']['get']('EditorAnnotations'),_0x1c6cad=_0x53e0c3['plugins']['get'](_0x1ad8ad)['me'],_0x2693ee=_0x20cb8d['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3381b4,CommentThreadInputView:_0x451632}=_0x53e0c3['plugins']['get']('CommentsUI');let _0x3a1d4a,_0x1a9bc4;this['_annotationViews']['has'](_0x36d7e1['id'])?(_0x1a9bc4=this['_annotationViews']['get'](_0x36d7e1['id']),_0x3a1d4a=_0x1a9bc4['mainView']):(_0x3a1d4a=new _0x2693ee(_0x53e0c3['locale'],_0x36d7e1,_0x1c6cad,{'disableComments':this['_disableComments'],'editorConfig':_0x20cb8d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x20cb8d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x20cb8d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x20cb8d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31b71b(_0x20cb8d['get']('locale')),'CommentView':_0x20cb8d['get']('comments')['CommentView'],'CommentsListView':_0x3381b4,'CommentThreadInputView':_0x451632}),_0x3a1d4a['acceptButton']['on']('execute',()=>{_0x53e0c3['editing']['view']['focus']();}),_0x3a1d4a['discardButton']['on']('execute',()=>{_0x53e0c3['editing']['view']['focus']();}),_0x1a9bc4=_0x5a88d4['createAnnotationView'](this['editor']['locale'],_0x3a1d4a),_0x1a9bc4['bind']('isDirty')['to'](_0x3a1d4a,'isDirty'),_0x1a9bc4['bind']('length')['to'](_0x3a1d4a),_0x1a9bc4['bind']('type')['to'](_0x3a1d4a,'type',_0x1cc15d=>'suggestion-'+_0x1cc15d),this['_annotationViews']['set'](_0x36d7e1['id'],_0x1a9bc4));const _0x1ced62=_0x41f6f6['createCommentThreadController'](_0x36d7e1['commentThread'],_0x3a1d4a),_0x284c0d=new oe(_0x53e0c3,_0x36d7e1,_0x3a1d4a,_0x1ced62),_0x292413=_0x36d7e1['getAllAdjacentSuggestions']()['filter'](_0x490ecc=>_0x490ecc['isInContent']);_0x3a1d4a['descriptionParts']=_0x53e0c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x292413),this['_suggestionToController']['set'](_0x36d7e1,_0x284c0d),this['_viewToController']['set'](_0x3a1d4a,_0x284c0d);const _0x4e1df1=_0x5a88d4['createAnnotation']({'view':_0x1a9bc4,'target':()=>{const _0x3d9570=[],_0x50654a=_0x36d7e1['getAllAdjacentSuggestions']()['filter'](_0x360ce3=>_0x360ce3['isInContent']);for(const _0x374cdd of _0x50654a)_0x3d9570['push'](..._0x374cdd['getMarkers']());return _0x1715b0(_0x53e0c3['editing'],_0x3d9570);},'type':()=>'suggestion-'+_0x284c0d['view']['type']});_0x41f6f6['_bindAnnotationToEditors'](_0x3a1d4a,_0x4e1df1),_0x5a88d4['add'](_0x4e1df1),_0x8c6135['registerAnnotation'](_0x4e1df1);}['_destroyController'](_0x5aa55f){const _0x3748ce=this['editor']['plugins']['get']('CommentsRepository'),_0x2c239e=this['editor']['plugins']['get']('Annotations'),_0xfcdae2=this['_suggestionToController']['get'](_0x5aa55f),_0x5f08be=_0xfcdae2['view'],_0x3cb92c=_0x2c239e['getByInnerView'](_0x5f08be);_0x3748ce['_unbindEditors'](_0x5f08be),_0x3cb92c&&_0x2c239e['remove'](_0x3cb92c),this['_suggestionToController']['delete'](_0x5aa55f),this['_viewToController']['delete'](_0x5f08be),_0xfcdae2['destroy']();}['_updateController'](_0x57231e){if(!_0x57231e['isInContent']||!this['_suggestionToController']['has'](_0x57231e))return;const _0x308a69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49c2e9=this['_suggestionToController']['get'](_0x57231e),_0x539c4f=_0x57231e['getAllAdjacentSuggestions']();_0x49c2e9['view']['descriptionParts']=_0x308a69['descriptionFactory']['getDescriptions'](_0x539c4f);}['destroy'](){for(const _0x4f3ff5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4f3ff5);for(const _0x217f82 of this['_annotationViews']['values']())_0x217f82['mainView']['destroy']();super['destroy']();}}function ae(_0x212ec2){return'model'in _0x212ec2;}class k extends _0x43d92e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x310aa2){this['editor']['plugins']['get'](p)['adapter']=_0x310aa2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5d344e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5d344e);}['getSuggestions']({skipNotAttached:_0x5b90ef=!0x1,toJSON:_0x5d9a4e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5b90ef,'toJSON':_0x5d9a4e});}['getSuggestion'](_0x92ed91){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x92ed91);}}const T=['Pagination'];class P extends _0x43d92e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xa0d2ca=this['editor'];if(_0xa0d2ca['config']['define']('trackChangesData.editorCreator',_0x5f3214=>{const _0x55f5a3=_0xa0d2ca['model']['document']['getRootNames']()['reduce']((_0x1a3505,_0x35b33a)=>(_0x1a3505[_0x35b33a]='',_0x1a3505),{});return _0xa0d2ca['constructor']['create'](_0x55f5a3,_0x5f3214);}),'function'!=typeof _0xa0d2ca['config']['get']('trackChangesData')['editorCreator'])throw new _0x23a85a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x17e3a3){return N(this['editor'],!0x0,_0x17e3a3);}['getDataWithDiscardedSuggestions'](_0x5680af){return N(this['editor'],!0x1,_0x5680af);}}class D extends _0x43d92e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4065fe){super(_0x4065fe),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x394539){return void 0x0!==_0x394539['getRootsAttributes'];}async function N(_0xd5cd54,_0x4ff42e,_0x2635d0){const _0x27f957=_0x53a97d(_0xd5cd54,T);_0x27f957['plugins']['push'](p,D),_0x27f957['rootsAttributes']=v(_0xd5cd54)?_0xd5cd54['getRootsAttributes']():void 0x0;const _0xc1d0f2=document['createDocumentFragment'](),_0x3d9223=_0xd5cd54['config']['get']('trackChangesData')['editorCreator'],_0x37d055=await _0x3d9223(_0x27f957,()=>function(_0x4a630c){const _0x1f19d1=document['createElement']('div');return _0x4a630c['appendChild'](_0x1f19d1),_0x1f19d1;}(_0xc1d0f2));!function(_0x4a5612,_0x196fe5){const _0x1a916b=_0x4a5612['model']['document']['getRootNames']()['reduce']((_0x3ffb50,_0x3efa25)=>(_0x3ffb50[_0x3efa25]=_0x4a5612['data']['get']({'rootName':_0x3efa25}),_0x3ffb50),{}),_0x5dc0c2=_0x4a5612['plugins']['get']('Users')['users']['map'](_0x2cde16=>({'id':_0x2cde16['id'],'name':_0x2cde16['name']})),_0x58f0d0=_0x4a5612['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5cb800=_0x4a5612['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x408f7d=_0x196fe5['plugins']['get']('Users'),_0x3a7664=_0x196fe5['plugins']['get']('TrackChangesEditing'),_0xa88a80=_0x196fe5['plugins']['get']('CommentsRepository');for(const _0x2cca18 of _0x5dc0c2)_0x408f7d['getUser'](_0x2cca18['id'])||_0x408f7d['addUser'](_0x2cca18);_0x408f7d['me']||_0x408f7d['useAnonymousUser']();for(const _0xf97a3f of _0x5cb800)_0xa88a80['addCommentThread'](_0xf97a3f);for(const _0x55486a of _0x58f0d0)_0x3a7664['addSuggestionData'](_0x55486a);_0x196fe5['data']['set'](_0x1a916b);}(_0xd5cd54,_0x37d055),_0x37d055['execute'](_0x4ff42e?'acceptAllSuggestions':'discardAllSuggestions');const _0x338df6=v(_0x37d055)?_0x37d055['getFullData'](_0x2635d0):_0x37d055['data']['get'](_0x2635d0);return await _0x37d055['destroy'](),_0x338df6;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|