@ckeditor/ckeditor5-track-changes 42.0.0-alpha.12 → 42.0.0-alpha.14
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
|
-
_0x50b673(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4de33d,_0x43cab1){super(),this['id']=_0x43cab1['id'],this['type']=_0x43cab1['type'],this['subType']=_0x43cab1['subType']||null,this['author']=_0x43cab1['author'],this['creator']=_0x43cab1['creator']||_0x43cab1['author'],this['isExternal']=Boolean(_0x43cab1['attributes']&&_0x43cab1['attributes']['@external']),this['data']=null,this['_model']=_0x4de33d,this['_onAccept']=_0x43cab1['onAccept'],this['_onDiscard']=_0x43cab1['onDiscard'],this['_onAttributesChange']=_0x43cab1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x43cab1['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 _0x1365e9=this;for(;_0x1365e9['previous'];)_0x1365e9=_0x1365e9['previous'];return _0x1365e9;}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'](_0x2e3e2e){this['_markerNames']['add'](_0x2e3e2e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3787f6=>this['_model']['markers']['get'](_0x3787f6))['filter'](_0x564c0e=>_0x564c0e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x317ad0=>{for(const _0x5c7674 of this['getMarkers']())_0x317ad0['removeMarker'](_0x5c7674);}),this['_markerNames']['clear']();}['removeMarker'](_0x5144d9){this['_model']['change'](_0x89bf76=>{_0x89bf76['removeMarker'](_0x5144d9);}),this['_markerNames']['delete'](_0x5144d9);}['addRange'](_0x1c213f){const _0x1fb609='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1fb609),this['_model']['change'](_0xa020c9=>{_0xa020c9['addMarker'](_0x1fb609,{'range':_0x1c213f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x435bdc){for(const _0x3b840b of this['getRanges']())if(_0x3b840b['isIntersecting'](_0x435bdc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x168998=>_0x168998['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x26b2d0,_0x6697da)=>[..._0x26b2d0,..._0x6697da['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ee85f=this['getRanges']();if(0x1!=_0x2ee85f['length'])return null;const _0xc213f2=_0x2ee85f[0x0],_0xe222e7=_0xc213f2['start']['nodeAfter'],_0x4e48f5=_0xc213f2['end']['nodeBefore'];return _0xe222e7 instanceof _0x435467?_0xe222e7!=_0x4e48f5?null:_0xe222e7: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 _0x483e38=[];let _0x18f74e=this['head'];for(;_0x18f74e;)_0x483e38['push'](_0x18f74e),_0x18f74e=_0x18f74e['next'];return _0x483e38;}['setAttribute'](_0x48a5d3,_0x23c62d){const _0x4d098c=_0x6e103(this['attributes']);_0x42a622(_0x4d098c,_0x48a5d3,_0x23c62d),_0x1b166e(_0x4d098c,this['attributes'])||(this['attributes']=_0x4d098c,this['_onAttributesChange'](_0x4d098c));}['removeAttribute'](_0x1ffa58){const _0x32dc3c=_0x6e103(this['attributes']);_0x3e75d8(_0x32dc3c,_0x1ffa58),_0x1b166e(_0x32dc3c,this['attributes'])||(this['attributes']=_0x32dc3c,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 _0x386e7f()['substr'](0x1,0x5);}}function o(_0x2fd93b,_0x589a04,_0x54b495){const t=_0x2fd93b['t'];switch(_0x589a04){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',_0x54b495);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x54b495);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x54b495);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x54b495);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x54b495);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',_0x54b495);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x54b495);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',_0x54b495);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x54b495);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x54b495);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x54b495);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x54b495);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x54b495);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x54b495);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x54b495);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x54b495);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x54b495);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x54b495);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x54b495);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x54b495);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x54b495);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x54b495);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x54b495);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'},_0x54b495);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x54b495);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x54b495);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x54b495);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x54b495);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x54b495);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'},_0x54b495);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x54b495);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x54b495);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x54b495);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x54b495);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'},_0x54b495);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x54b495);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'},_0x54b495);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'},_0x54b495);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x54b495);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'},_0x54b495);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x54b495);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'},_0x54b495);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x54b495);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x54b495);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'},_0x54b495);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'},_0x54b495);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 _0x589a04;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5df118,_0x1f2763){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5df118,this['_locale']=_0x1f2763;}['getDescriptions'](_0x8d7a9e){const _0xa8ea4b=[],_0xeccd59=new Set(),_0x58e3ff=new Set();for(let _0x57866a=0x0;_0x57866a<_0x8d7a9e['length'];_0x57866a++){const _0x493476=_0x8d7a9e[_0x57866a];if(!_0x493476['isInContent'])continue;const _0x1e7006=this['_handleCustomCallbackDescription'](_0x493476);if(_0x1e7006){if(null!=_0x493476['subType']){if(_0xeccd59['has'](_0x493476['subType']))continue;_0xeccd59['add'](_0x493476['subType']);}_0xa8ea4b['push'](_0x1e7006);}else{if('attribute'!=_0x493476['type'])'insertion'!=_0x493476['type']&&'deletion'!=_0x493476['type']||this['_handleInsertRemoveSuggestionDescription'](_0xa8ea4b,_0x493476,_0x8d7a9e[_0x57866a+0x1]);else{const _0x17966e=_0x493476['data']['key'];if(_0x58e3ff['has'](_0x17966e))continue;_0x58e3ff['add'](_0x493476['data']['key']),_0x17966e==m?this['_handleRenameSuggestionDescription'](_0xa8ea4b,_0x493476):this['_handleAttributeSuggestionDescription'](_0xa8ea4b,_0x493476);}}}return this['_resolveDescriptionItems'](_0xa8ea4b);}['registerDescriptionCallback'](_0x1fa449){this['_customCallbacks']['push'](_0x1fa449);}['registerElementLabel'](_0x3de0cc,_0x4c2929,_0x179427=_0x3ed224['normal']){'function'==typeof _0x3de0cc?_0x2a62b1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3de0cc,'label':_0x4c2929,'priority':_0x179427}):this['_itemLabels']['set'](_0x3de0cc,_0x4c2929);}['registerAttributeLabel'](_0x1c2708,_0x2e8ba2){this['_attributeLabels']['set'](_0x1c2708,_0x2e8ba2);}['getItemLabel'](_0x49a4f7,_0x4ddfe6=0x1){let _0x524b4d;for(const _0x180d09 of this['_itemLabelsCallbacks'])if(_0x180d09['matchingCallback'](_0x49a4f7)){_0x524b4d=_0x180d09['label'];break;}return _0x524b4d||(_0x524b4d=this['_itemLabels']['get'](_0x49a4f7['name'])),_0x524b4d?_0x524b4d(_0x4ddfe6):0x1!==_0x4ddfe6?_0x4ddfe6+'\x20'+_0x49a4f7['name']+'s':''+_0x49a4f7['name'];}['_addDescriptionItems'](_0x408a32,_0x3d266b){const _0xb38d79=_0x3d266b['getFirstRange']()['getWalker'](),_0x213a66='insertion'==_0x3d266b['type']?'add':'remove';for(const _0x7be4c3 of _0xb38d79){const _0x5d658d=_0x7be4c3['item'],_0x401903=_0x408a32[_0x408a32['length']-0x1];if(_0x5d658d['is']('$textProxy'))_0x401903&&_0x401903['type']['indexOf']('Container')>-0x1&&_0x408a32['pop'](),_0x401903&&'text'==_0x401903['type']?_0x401903[_0x213a66]+=_0x5d658d['data']:_0x408a32['push']({'type':'text','add':'add'==_0x213a66?_0x5d658d['data']:'','remove':'remove'==_0x213a66?_0x5d658d['data']:''});else{if(this['_schema']['isObject'](_0x5d658d)){const _0x1b9310=_0x5d658d;if(_0x401903&&_0x401903['type']['indexOf']('Container')>-0x1&&_0x408a32['pop'](),'elementEnd'==_0x7be4c3['type'])continue;_0x401903&&_0x401903['type']==_0x213a66+'Object'&&_0x401903['element']['name']==_0x1b9310['name']?_0x401903['quantity']++:_0x408a32['push']({'type':_0x213a66+'Object','element':_0x1b9310,'quantity':0x1}),_0xb38d79['skip'](_0x2e289f=>!('elementEnd'==_0x2e289f['type']&&_0x2e289f['item']==_0x5d658d));}else{if(this['_schema']['checkChild'](_0x5d658d,'$text')||_0x5d658d['is']('element','softBreak')){const _0x4e2516=_0x5d658d;if('add'==_0x213a66&&'elementStart'==_0x7be4c3['type']||'remove'==_0x213a66&&'elementEnd'==_0x7be4c3['type'])continue;if(_0x401903&&-0x1==_0x401903['type']['indexOf']('Container')){'text'==_0x401903['type']&&(_0x401903[_0x213a66]+='\x0a');continue;}let _0x51027f;if(_0x51027f='add'==_0x213a66?_0x4e2516['nextSibling']&&!this['_schema']['isObject'](_0x4e2516['nextSibling'])?_0x4e2516['nextSibling']:null:_0x4e2516['previousSibling']&&!this['_schema']['isObject'](_0x4e2516['previousSibling'])?_0x4e2516['previousSibling']:null,_0x4e2516['isEmpty']||_0x51027f&&_0x51027f['isEmpty']){const _0x1ddd1b=_0x51027f&&_0x51027f['isEmpty']?_0x51027f:_0x4e2516;_0x401903&&_0x401903['type']==_0x213a66+'EmptyContainer'&&_0x401903['element']['name']==_0x1ddd1b['name']?_0x401903['quantity']++:_0x408a32['push']({'type':_0x213a66+'EmptyContainer','element':_0x1ddd1b,'quantity':0x1});}else _0x408a32['push']({'type':_0x213a66+'Container','element':_0x4e2516});}}}}}['_resolveDescriptionItems'](_0x3932d9){const _0x230784=this['_locale'],_0x4fe946=[],_0x43694f=[],_0x344909=[];for(const _0x2b428d of _0x3932d9)switch(_0x2b428d['type']){case'text':if(_0x2b428d['add']=_0x2b428d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2b428d['remove']=_0x2b428d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2b428d['add']&&''!=_0x2b428d['remove']){_0x4fe946['push']({'type':'replace','content':o(_0x230784,'REPLACE_TEXT',['\x22'+_0x2b428d['remove']+'\x22','\x22'+_0x2b428d['add']+'\x22'])});continue;}if(null!=_0x2b428d['add']['match'](/^ +$/)){_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Insert:*\x20%0',o(_0x230784,'ELEMENT_SPACE',_0x2b428d['add']['length']))});continue;}if(null!=_0x2b428d['remove']['match'](/^ +$/)){_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Remove:*\x20%0',o(_0x230784,'ELEMENT_SPACE',_0x2b428d['remove']['length']))});continue;}if(''!=_0x2b428d['add']){_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Insert:*\x20%0','\x22'+_0x2b428d['add']+'\x22')});continue;}_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Remove:*\x20%0','\x22'+_0x2b428d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Insert:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Remove:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'addContainer':_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Split:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'removeContainer':_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Merge:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'addFormat':_0x43694f['push'](_0x2b428d['key']);continue;case'removeFormat':_0x344909['push'](_0x2b428d['key']);continue;default:_0x4fe946['push'](_0x2b428d);}if(_0x43694f['length']){const _0x13996d=_0x43694f['map'](_0x79251c=>this['_attributeLabels']['has'](_0x79251c)?this['_attributeLabels']['get'](_0x79251c):_0x79251c)['join'](',\x20');_0x4fe946['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13996d)});}if(_0x344909['length']){const _0x19109d=_0x344909['map'](_0xdbeac4=>this['_attributeLabels']['has'](_0xdbeac4)?this['_attributeLabels']['get'](_0xdbeac4):_0xdbeac4)['join'](',\x20');_0x4fe946['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x19109d)});}return _0x4fe946;}['_handleCustomCallbackDescription'](_0x5553d8){for(const _0x36f544 of this['_customCallbacks']){const _0x29f1cc=_0x36f544(_0x5553d8);if(_0x29f1cc&&'type'in _0x29f1cc)return _0x29f1cc;}}['_handleAttributeSuggestionDescription'](_0x13f108,_0x308afe){const _0x45e945=_0x308afe['data'],_0x5ebdce=void 0x0===_0x45e945['newValue']?'removeFormat':'addFormat';_0x13f108['push']({'type':_0x5ebdce,'key':_0x45e945['key']});}['_handleRenameSuggestionDescription'](_0x3aae96,_0x2e233f){_0x3aae96['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e233f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a9344,_0x10bbd3,_0x373cf9){if(this['_addDescriptionItems'](_0x2a9344,_0x10bbd3),_0x373cf9&&_0x373cf9['getFirstRange']()&&!_0x10bbd3['getFirstRange']()['end']['isEqual'](_0x373cf9['getFirstRange']()['start'])){const _0x115e52=_0x2a9344[_0x2a9344['length']-0x1],_0x191aca='insertion'==_0x10bbd3['type']?'add':'remove';_0x115e52&&'text'==_0x115e52['type']&&(_0x115e52[_0x191aca]+='\x0a');}}}class E extends _0x3b57f6{['afterInit'](){const _0x9f07d9=this['editor'],_0x2c563a=_0x9f07d9['plugins']['get']('TrackChangesEditing');_0x9f07d9['commands']['get']('showAIAssistant')&&_0x2c563a['enableCommand']('showAIAssistant');}}class V extends _0x3b57f6{['afterInit'](){const _0x10f9e7=this['editor'],_0x4a32a6=_0x10f9e7['locale'];if(!_0x10f9e7['plugins']['has']('AlignmentEditing'))return;const _0x20939c=_0x10f9e7['plugins']['get']('TrackChangesEditing');_0x20939c['enableDefaultAttributesIntegration']('alignment'),_0x20939c['registerBlockAttribute']('alignment'),_0x20939c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a32a6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e322b=this['editor'],_0x1c240f=_0x1e322b['locale'];_0x1e322b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aa597=>{if('formatBlock'!=_0x3aa597['type'])return;const {data:_0x4cf063}=_0x3aa597;if(_0x4cf063&&'alignment'==_0x4cf063['commandName']){const _0xbc48d2=_0x4cf063['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c240f,'*Format:*\x20%0',function(_0x4b449d){switch(_0x4b449d){case'left':return o(_0x1c240f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c240f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c240f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c240f,'FORMAT_JUSTIFY_TEXT');}}(_0xbc48d2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x3b57f6{['afterInit'](){const _0x22c11d=this['editor'],_0x30710f=_0x22c11d['plugins']['get']('TrackChangesEditing'),_0x25f940=_0x22c11d['locale'];for(const _0xd9d147 of ti){if(!_0x22c11d['plugins']['has'](_0xd9d147))continue;const _0xd2d06b=_0xd9d147['slice'](0x0,-0x7)['toLowerCase'](),_0x1f5ba5='FORMAT_'+_0xd2d06b['toUpperCase']();_0x30710f['enableDefaultAttributesIntegration'](_0xd2d06b),_0x30710f['registerInlineAttribute'](_0xd2d06b),_0x30710f['descriptionFactory']['registerAttributeLabel'](_0xd2d06b,o(_0x25f940,_0x1f5ba5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28a2df=this['editor'],_0x402f43=_0x28a2df['locale'],_0x1d3b21=_0x28a2df['plugins']['get']('TrackChangesEditing');function _0x28d0e2(_0x1055e8,_0x478816){_0x1d3b21['descriptionFactory']['registerDescriptionCallback'](_0x421445=>{if('formatInline'!=_0x421445['type'])return;const {data:_0x3fa32a}=_0x421445;return _0x3fa32a&&_0x3fa32a['commandName']===_0x1055e8?_0x3fa32a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x402f43,'*Format:*\x20%0',_0x478816)}:{'type':'format','content':o(_0x402f43,'*Remove\x20format:*\x20%0',_0x478816)}:void 0x0;});}_0x28d0e2('bold',o(_0x402f43,'FORMAT_BOLD')),_0x28d0e2('italic',o(_0x402f43,'FORMAT_ITALIC')),_0x28d0e2('underline',o(_0x402f43,'FORMAT_UNDERLINE')),_0x28d0e2('code',o(_0x402f43,'FORMAT_CODE')),_0x28d0e2('strikethrough',o(_0x402f43,'FORMAT_STRIKETHROUGH')),_0x28d0e2('subscript',o(_0x402f43,'FORMAT_SUBSCRIPT')),_0x28d0e2('superscript',o(_0x402f43,'FORMAT_SUPERSCRIPT'));}}class O extends _0x3b57f6{['afterInit'](){const _0x5af884=this['editor'],_0x51d40f=_0x5af884['locale'];if(!_0x5af884['plugins']['has']('BlockQuoteEditing'))return;const _0x332595=_0x5af884['plugins']['get']('TrackChangesEditing'),_0x38ed28=this['editor']['commands']['get']('blockQuote');_0x332595['enableCommand']('blockQuote',(_0x2aff56,_0x1ff48b={})=>{const _0x2a7ff1=this['editor']['model']['document']['selection'],_0x541457=_0x1ff48b&&void 0x0!==_0x1ff48b['forceValue']?_0x1ff48b['forceValue']:!_0x38ed28['value'];let _0xd33038=[];if(_0x541457){const _0x39c64e=Array['from'](_0x2a7ff1['getSelectedBlocks']())['filter'](_0x222e0c=>oo(_0x222e0c)||function(_0x3754d2,_0x4fe9fa){const _0xd9ff5c=_0x4fe9fa['checkChild'](_0x3754d2['parent'],'blockQuote'),_0x5534f9=_0x4fe9fa['checkChild'](['$root','blockQuote'],_0x3754d2);return _0xd9ff5c&&_0x5534f9;}(_0x222e0c,this['editor']['model']['schema']));_0xd33038=to(_0x39c64e,_0x5af884['model']);}else{const _0x50a87e=Array['from'](_0x2a7ff1['getSelectedBlocks']())['filter'](_0x288b0b=>oo(_0x288b0b));_0xd33038=to(_0x50a87e,_0x5af884['model']);}_0x5af884['model']['change'](()=>{for(const _0x1a6440 of _0xd33038)_0x332595['markBlockFormat'](_0x1a6440,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x541457}]});});}),_0x332595['descriptionFactory']['registerDescriptionCallback'](_0x488470=>{const {data:_0xd3d4a5}=_0x488470;if(_0xd3d4a5&&'blockQuote'==_0xd3d4a5['commandName']){const _0x3656b6=o(_0x51d40f,'ELEMENT_BLOCK_QUOTE');return _0xd3d4a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51d40f,'*Set\x20format:*\x20%0',_0x3656b6)}:{'type':'format','content':o(_0x51d40f,'*Remove\x20format:*\x20%0',_0x3656b6)};}});}}function oo(_0x170a1e){return'blockQuote'==_0x170a1e['parent']['name'];}class G extends _0x3b57f6{['afterInit'](){const _0x1339f6=this['editor'];_0x1339f6['plugins']['has']('CaseChange')&&(_0x1339f6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1339f6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1339f6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x3b57f6{['afterInit'](){const _0x5ee19e=this['editor'];_0x5ee19e['commands']['get']('ckbox')&&_0x5ee19e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3b57f6{['afterInit'](){const _0x3ea101=this['editor'];if(!_0x3ea101['plugins']['has']('CodeBlock'))return;const _0x5ac323=_0x3ea101['plugins']['get']('TrackChangesEditing'),_0x3b30f3=_0x3ea101['locale'],_0x1bede5=_0x3ea101['config']['get']('codeBlock')['languages'],_0x3edfa8=_0x3ea101['commands']['get']('codeBlock');_0x5ac323['enableCommand']('indentCodeBlock'),_0x5ac323['enableCommand']('outdentCodeBlock'),_0x5ac323['enableCommand']('codeBlock',(_0x5d3449,_0x3c5deb={})=>{const _0x263fad=_0x3ea101['model'],_0x1332f6=_0x3ea101['model']['document']['selection'],_0x36641e=_0x3c5deb&&void 0x0!==_0x3c5deb['forceValue']?_0x3c5deb['forceValue']:!_0x3edfa8['value'];let _0x598da4;_0x3c5deb['language']||(_0x3c5deb['language']=_0x1bede5[0x0]['language']),_0x598da4=_0x36641e?Array['from'](_0x1332f6['getSelectedBlocks']())['filter'](_0x885921=>eo(_0x885921)||function(_0x104017,_0x5406a1){if(_0x104017['is']('rootElement')||_0x5406a1['isLimit'](_0x104017))return!0x1;return _0x5406a1['checkChild'](_0x104017['parent'],'codeBlock');}(_0x885921,_0x263fad['schema'])):Array['from'](_0x1332f6['getSelectedBlocks']())['filter'](_0x2a4b59=>eo(_0x2a4b59));const _0x477b6f=to(_0x598da4,_0x263fad);_0x263fad['change'](()=>{for(const _0x7c1f3 of _0x477b6f)_0x5ac323['markBlockFormat'](_0x7c1f3,{'commandName':'codeBlock','commandParams':[{..._0x3c5deb,'forceValue':_0x36641e}],'formatGroupId':'blockName'});});}),(_0x5ac323['descriptionFactory']['registerElementLabel']('codeBlock',_0x4662a7=>o(_0x3b30f3,'ELEMENT_CODE_BLOCK',_0x4662a7)),_0x5ac323['descriptionFactory']['registerDescriptionCallback'](_0x1cd59e=>{if('formatBlock'!=_0x1cd59e['type'])return;const _0x1b4f7b=_0x3b30f3['t'],{data:_0x2975b7}=_0x1cd59e;if(!_0x2975b7||'codeBlock'!=_0x2975b7['commandName'])return;const _0x465bac=_0x2975b7['commandParams'][0x0]['language'],_0x1ef17a=_0x1b4f7b(_0x1bede5['find'](_0x4f1e65=>_0x4f1e65['language']===_0x465bac)['label'])['toLowerCase']();return _0x2975b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b30f3,'*Set\x20format:*\x20%0',o(_0x3b30f3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1ef17a+')')}:{'type':'format','content':o(_0x3b30f3,'*Remove\x20format:*\x20%0',o(_0x3b30f3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34bf7){return'codeBlock'==_0x34bf7['name'];}class H extends _0x3b57f6{['afterInit'](){const _0x59eb81=this['editor'];if(!_0x59eb81['plugins']['has']('CommentsEditing'))return;_0x59eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1ac5c3,_0x279cb2,_0x1c1b0a){const _0x5c750d=[];for(const _0x1d9370 of _0x279cb2['getItems']())_0x1d9370['hasAttribute'](_0x1ac5c3)&&_0x5c750d['push'](_0x1c1b0a['createRangeOn'](_0x1d9370));return _0x5c750d;}function _e(_0x30106e,_0x2dc60f,{showActiveMarker:_0x19fa0d=!0x0}={}){const _0x21a759=_0x30106e['plugins']['get']('TrackChangesEditing');return(_0x158273,_0x353747,_0x2ace86)=>{if(!_0x2ace86['consumable']['test'](_0x353747['markerRange'],_0x158273['name']))return;const _0x1145fc=_0x353747['markerRange']['getWalker'](),_0x529f9e=_0x353747['markerRange']['start'],_0x5e04ea=_0x30106e['model']['schema'];let _0xe4fd6c=null,_0x3aeedc=null,_0x25b74b=!0x1,_0x54e758=!0x1;for(const _0x30e012 of _0x1145fc){const _0x52a793=_0x30e012['item'];_0x25b74b=_0x25b74b||_0x5e04ea['isContent'](_0x52a793);const _0x3c580e=_0x2ace86['mapper']['toViewElement'](_0x52a793);if(_0x3c580e&&_0x3c580e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30e012['type']&&(_0x5e04ea['isBlock'](_0x52a793)&&!_0x5e04ea['isLimit'](_0x52a793)&&(_0x52a793['nextSibling']||_0x529f9e['isAtEnd']?_0xe4fd6c&&_0xe4fd6c['parent']==_0x52a793||(_0xe4fd6c=_0x52a793,_0xdd5f26(_0x30e012['previousPosition']),_0x54e758=!0x0):_0x3aeedc=_0x3aeedc||_0x30e012['previousPosition']));}function _0xdd5f26(_0x8845b6){const _0x23a7e5=_0x2ace86['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2dc60f}),_0x85eab8=_0x2ace86['mapper']['toViewPosition'](_0x8845b6);_0x19fa0d&&_0x21a759['activeMarkers']['includes'](_0x353747['markerName'])&&_0x2ace86['writer']['addClass']('ck-suggestion-marker--active',_0x23a7e5),_0x2ace86['writer']['insert'](_0x85eab8,_0x23a7e5),_0x2ace86['mapper']['bindElementToMarker'](_0x23a7e5,_0x353747['markerName']);}_0x25b74b||_0x54e758||!_0x3aeedc||_0xdd5f26(_0x3aeedc);};}class q extends _0x3b57f6{static get['requires'](){return[_0x421719];}['init'](){const _0x2f7db4=this['editor'],_0x418e34=_0x2f7db4['plugins']['get']('TrackChangesEditing');_0x418e34['enableCommand']('delete');const _0x24109a=_0x2f7db4['commands']['get']('deleteForward');_0x418e34['enableCommand']('deleteForward',(_0x35cc8b,_0x78ab5a={})=>{const _0x360ab9=_0x2f7db4['model']['createSelection'](_0x2f7db4['model']['document']['selection']);_0x360ab9['isCollapsed']&&_0x2f7db4['model']['modifySelection'](_0x360ab9,{'direction':'forward','unit':_0x78ab5a['unit']});const _0x51ef71=_0x360ab9['getFirstRange'](),_0x36830b=_0x2e923c['fromRange'](_0x51ef71);let _0x1e77cd;_0x35cc8b(_0x78ab5a),_0x1e77cd='$graveyard'==_0x36830b['root']['rootName']?_0x2f7db4['model']['createRange'](_0x51ef71['start']):_0x2f7db4['model']['createRange'](_0x36830b['start'],_0x36830b['end']),_0x36830b['detach'](),_0x2f7db4['model']['enqueueChange'](_0x24109a['buffer']['batch'],_0x19fcb6=>{_0x24109a['buffer']['lock'](),_0x19fcb6['setSelection'](_0x19fcb6['createRange'](_0x1e77cd['end'])),_0x24109a['buffer']['unlock']();});}),_0x2f7db4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2f7db4,'merge'),{'priority':'high'}),_0x2f7db4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e50f3,_0x17f424,_0x532227)=>{_0x532227['options']['showSuggestionHighlights']&&_e(_0x2f7db4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3e50f3,_0x17f424,_0x532227);},{'priority':'high'}),_0x2f7db4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33b4c2,_0x3fafb4,_0x5a470e)=>{const _0x554b63=_0x5a470e['mapper']['markerNameToElements'](_0x3fafb4['markerName']);if(_0x554b63){for(const _0x170d05 of _0x554b63)_0x170d05['is']('uiElement')&&(_0x5a470e['mapper']['unbindElementFromMarkerName'](_0x170d05,_0x3fafb4['markerName']),_0x5a470e['writer']['remove'](_0x170d05));}},{'priority':'high'});}}class z extends _0x3b57f6{['afterInit'](){const _0x5dd837=this['editor'];if(!_0x5dd837['plugins']['has']('ListEditing'))return;const _0x59bcdc=_0x5dd837['locale'],_0x4e7bde=_0x5dd837['plugins']['get']('TrackChangesEditing'),_0x41af25=_0x5dd837['plugins']['has']('TodoListEditing'),_0xfd26e5=!!_0x5dd837['config']['get']('list.multiBlock');function _0x588fd2(_0x36550a){return{'type':'format','content':''+o(_0x59bcdc,'*Set\x20format:*\x20%0',_0x36550a)};}function _0x8dfd1b(_0x2c2026){return{'type':'format','content':''+o(_0x59bcdc,'*Remove\x20format:*\x20%0',_0x2c2026)};}_0x4e7bde['enableDefaultAttributesIntegration']('numberedList'),_0x4e7bde['enableDefaultAttributesIntegration']('bulletedList'),_0x4e7bde['enableDefaultAttributesIntegration']('customNumberedList'),_0x4e7bde['enableDefaultAttributesIntegration']('customBulletedList'),_0x4e7bde['enableDefaultAttributesIntegration']('indentList'),_0x4e7bde['enableDefaultAttributesIntegration']('outdentList'),_0x4e7bde['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4e7bde['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4e7bde['registerBlockAttribute']('listItemId'),_0x4e7bde['registerBlockAttribute']('listType'),_0x4e7bde['registerBlockAttribute']('listIndent'),_0xfd26e5&&(_0x4e7bde['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4e7bde['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x41af25&&(_0x4e7bde['enableDefaultAttributesIntegration']('todoList'),_0x4e7bde['enableDefaultAttributesIntegration']('checkTodoList'),_0x4e7bde['registerBlockAttribute']('todoListChecked'),_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x364f6f=>{const {data:_0x3c98cc}=_0x364f6f;if(_0x3c98cc&&'todoListChecked'==_0x3c98cc['key'])return{'type':'format','content':_0x3c98cc['newValue']?o(_0x59bcdc,'*Check\x20item*'):o(_0x59bcdc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x240734=>{if(_0x240734['batch']['isUndo'])return!0x1;let _0xcee1a3=!0x1;const _0x329293=_0x4e7bde['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e726d=>'todoListChecked'===_0x4e7bde['_getAttributeKey'](_0x1e726d));for(const _0x1fbfeb of _0x329293){'todo'!=_0x1fbfeb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4e7bde['_findSuggestions'](_0x1fbfeb['getFirstRange'](),'attribute')['find'](_0x38fa46=>'listType'===_0x4e7bde['_getAttributeKey'](_0x38fa46['suggestion']))||(_0x240734['removeMarker'](_0x1fbfeb['getFirstMarker']()),_0xcee1a3=!0x0));}return _0xcee1a3;})),_0x4e7bde['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x59bcdc,'FORMAT_INDENT'));const _0x5724ca={'type':'format','content':''};_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x16efd3=>{const {data:_0x7af159}=_0x16efd3;if(!_0x7af159||'listType'!=_0x7af159['key'])return;let _0x3c91b5=_0x16efd3['head'];for(;_0x3c91b5;){if(_0x3c91b5['data']&&(('listStyle'==_0x3c91b5['data']['key']||'listMarkerStyle'==_0x3c91b5['data']['key'])&&(_0x3c91b5['data']['newValue']&&'default'!=_0x3c91b5['data']['newValue']||'default'!=_0x3c91b5['data']['oldValue']&&!_0x7af159['newValue'])||!_0xfd26e5&&_0x3c91b5['data']['key']==m))return _0x5724ca;_0x3c91b5=_0x3c91b5['next'];}if(null==_0x7af159['newValue'])switch(_0x7af159['oldValue']){case'bulleted':return _0x8dfd1b(o(_0x59bcdc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8dfd1b(o(_0x59bcdc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8dfd1b(o(_0x59bcdc,'ELEMENT_TODO_LIST'));}switch(_0x7af159['newValue']){case'bulleted':return _0x588fd2(o(_0x59bcdc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x588fd2(o(_0x59bcdc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x588fd2(o(_0x59bcdc,'ELEMENT_TODO_LIST'));}}),_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x1b3c6d=>{const {data:_0x43c7b8}=_0x1b3c6d;if(_0x43c7b8&&'listIndent'==_0x43c7b8['key'])return null==_0x43c7b8['newValue']||null==_0x43c7b8['oldValue']&&0x0==_0x43c7b8['newValue']?_0x5724ca:void 0x0;}),_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x5c2b6b=>{if('attribute'!=_0x5c2b6b['type'])return;const {data:_0x3e8832}=_0x5c2b6b;if(!_0x3e8832||'listItemId'!=_0x3e8832['key'])return;const _0x55e739=le(_0x5c2b6b);return'newValue'==_0x55e739?{'type':'format','content':o(_0x59bcdc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x55e739?{'type':'format','content':o(_0x59bcdc,'*Split:*\x20list\x20item')}:_0x5724ca;}),_0x5dd837['model']['document']['registerPostFixer'](_0x1a4ba4=>this['listItemIdFixer'](_0x1a4ba4)),_0x5dd837['model']['document']['registerPostFixer'](_0xd99022=>this['noTrackChangesFixer'](_0xd99022)),_0x5dd837['model']['document']['registerPostFixer'](_0x64f6b8=>this['assureChains'](_0x64f6b8)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x842a20){if(_0x842a20['batch']['isUndo']||!_0x842a20['batch']['isLocal'])return!0x1;let _0x5e600d=!0x1;const _0x22d977=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc09e6e=>_0xc09e6e['data']&&'listItemId'==_0xc09e6e['data']['key'])['filter'](_0x395a1c=>_0x395a1c['data']['newValue']&&_0x395a1c['data']['oldValue']);for(const _0x5c38c4 of _0x22d977)le(_0x5c38c4)||(_0x842a20['removeMarker'](_0x5c38c4['getFirstMarker']()),_0x5e600d=!0x0);return _0x5e600d;}['noTrackChangesFixer'](_0x449310){if(_0x449310['batch']['isUndo']||!_0x449310['batch']['isLocal'])return!0x1;const _0x26d8d4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x26d8d4['trackChangesCommand']['value'])return!0x1;let _0x57b3bf=!0x1;const _0x42268c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d8146=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b2cb0=>'attribute'==_0x1b2cb0['type'])['filter'](_0x19bf50=>_0x42268c['includes'](_0x19bf50['attributeKey']));if(0x0==_0x2d8146['length'])return _0x57b3bf;for(const _0x306221 of _0x2d8146){const _0x4dd576=_0x26d8d4['_findSuggestions'](_0x306221['range'],'attribute')['filter'](_0xbfea84=>!_0xbfea84['meta']['isNextTo'])['map'](_0x32c7b5=>_0x32c7b5['suggestion'])['filter'](_0x45fea9=>{const _0x56cf2e=_0x26d8d4['_getAttributeKey'](_0x45fea9);return _0x42268c['includes'](_0x56cf2e);});if(_0x4dd576['length']){for(const _0xe9d6d9 of _0x4dd576)_0x449310['removeMarker'](_0xe9d6d9['getFirstMarker']());_0x57b3bf=!0x0;}}return _0x57b3bf;}['assureChains'](_0x584cbf){if(_0x584cbf['batch']['isUndo']||!_0x584cbf['batch']['isLocal'])return!0x1;const _0x10f272=this['editor']['plugins']['get']('TrackChangesEditing');let _0x6d97fa=!0x1;const _0x401c6b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x203bb5 of _0x10f272['getSuggestions']({'skipNotAttached':!0x0})){const _0x59ac8a=_0x10f272['_findSuggestions'](_0x203bb5['getFirstRange'](),'attribute')['map'](_0x12799a=>_0x12799a['suggestion'])['filter'](_0x3bfdf4=>_0x3bfdf4['data']&&_0x401c6b['includes'](_0x3bfdf4['data']['key']));if(!_0x59ac8a['length'])continue;const _0x1d9c5b=_0x59ac8a[0x0]['head']['attributes']['groupId'];if(!_0x59ac8a['every'](_0x1afa5c=>_0x1afa5c['attributes']['groupId']===_0x1d9c5b)){for(const _0x2e1742 of _0x59ac8a)_0xacc34e(_0x2e1742,_0x1d9c5b)&&(_0x6d97fa=!0x0);}}return _0x6d97fa;function _0x1069cc(_0x5e6d4a,_0x10ca8e){for(const _0x4371f4 of _0x10f272['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50960e=>'attribute'==_0x50960e['type']&&_0x50960e['attributes']['groupId']==_0x5e6d4a))_0x4371f4['setAttribute']('groupId',_0x10ca8e);}function _0xacc34e(_0x9812ac,_0x1b7e0d){let _0x56f787=_0x9812ac['head'],_0x3b907e=!0x1;for(;_0x56f787;)_0x56f787['attributes']['groupId']!=_0x1b7e0d&&(_0x1069cc(_0x56f787['attributes']['groupId'],_0x1b7e0d),_0x56f787['setAttribute']('groupId',_0x1b7e0d),_0x3b907e=!0x0),_0x56f787=_0x56f787['next'];return _0x3b907e;}}['_supportLegacySuggestions'](){const _0x5ced7f=this['editor'],_0xa9b0c8=_0x5ced7f['locale'],_0x4e22c4=_0x5ced7f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e22c4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a4000,_0x161b89){const _0x43ba87=[];for(let _0x1aadbf of _0x2a4000)_0x1aadbf['start']['nodeAfter']===_0x1aadbf['end']['parent']&&(_0x1aadbf=_0x5ced7f['model']['createRange'](_0x5ced7f['model']['createPositionAt'](_0x1aadbf['start']['nodeAfter'],0x0))),_0x43ba87['push'](_0x1aadbf);_0x5ced7f['model']['change'](_0x5882fe=>{const _0x292bbe=_0x5ced7f['model']['document']['selection'],_0x2d4ed5=Array['from'](_0x292bbe['getRanges']())['map'](_0xecdd73=>_0x2e923c['fromRange'](_0xecdd73));_0x5882fe['setSelection'](_0x43ba87),_0x5ced7f['commands']['get'](_0x161b89['commandName'])['refresh'](),_0x161b89['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5ced7f['execute'](_0x161b89['commandName'],..._0x161b89['commandParams']),_0x5882fe['setSelection'](_0x2d4ed5);for(const _0x50be20 of _0x2d4ed5)_0x50be20['detach']();});}),_0x4e22c4['descriptionFactory']['registerElementLabel'](function(_0x4bc0b2){const _0x394af8=!_0x5ced7f['model']['schema']['isObject'](_0x4bc0b2),_0x46103c=_0x4bc0b2['previousSibling'],_0x209999=_0x4bc0b2['nextSibling'],_0x17627d=_0x4bc0b2['getAttribute']('listItemId'),_0x279060=!_0x46103c||_0x46103c['getAttribute']('listItemId')!==_0x17627d,_0x41de88=!_0x209999||_0x209999['getAttribute']('listItemId')!==_0x17627d;return _0x394af8&&Boolean(_0x17627d)&&_0x279060&&_0x41de88;},_0x299f67=>o(_0xa9b0c8,'ELEMENT_LIST_ITEM',_0x299f67));}['_registerLegacyDescription'](){const _0x31c746=this['editor'],_0x4259c5=_0x31c746['locale'];function _0x39b5e4(_0x54cfc7){const _0x1054ed=_0x31c746['commands']['get']('bulletedList')['value'],_0x5e9975=_0x31c746['commands']['get']('numberedList')['value'];return'numberedList'===_0x54cfc7?_0x1054ed:_0x5e9975;}_0x31c746['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x55f546){if('formatBlock'!=_0x55f546['type'])return;const {data:_0x175c5f}=_0x55f546;if(!_0x175c5f)return;let _0x26b5b6,_0x10125a,_0x418408,_0x550dc9;switch(_0x175c5f['commandName']){case'bulletedList':_0x418408=_0x175c5f['commandParams'][0x0]['forceValue'],_0x550dc9=_0x39b5e4(_0x175c5f['commandName']),_0x26b5b6=_0x418408?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x550dc9&&_0x31c746['config']['get']('list.multiBlock')||(_0x26b5b6='*Change\x20to:*\x20%0'),_0x10125a={'type':'format','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x418408=_0x175c5f['commandParams'][0x0]['forceValue'],_0x550dc9=_0x39b5e4(_0x175c5f['commandName']),_0x26b5b6=_0x418408?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x550dc9&&_0x31c746['config']['get']('list.multiBlock')||(_0x26b5b6='*Change\x20to:*\x20%0'),_0x10125a={'type':'format','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x26b5b6='*Indent:*\x20%0',_0x10125a={'type':'format','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x26b5b6=function(_0x2dafdd){const _0x57d70a=_0x2dafdd['getFirstRange']();let _0x259b0a=_0x57d70a['start']['nodeAfter'];for(;_0x259b0a&&_0x57d70a['containsItem'](_0x259b0a);){if(_0x259b0a['getAttribute']('listIndent')>0x0)return!0x1;_0x259b0a=_0x259b0a['nextSibling'];}return!0x0;}(_0x55f546)?o(_0x4259c5,'*Format:*\x20remove\x20from\x20%0',o(_0x4259c5,function(_0x101370){return'ELEMENT_'+_0x101370['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x55f546))):o(_0x4259c5,'*Outdent:*\x20%0',o(_0x4259c5,'ELEMENT_LIST_ITEM')),_0x10125a={'type':'format','content':_0x26b5b6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x175c5f['multipleBlocks']&&(_0x26b5b6='*Merge:*\x20%0',_0x10125a={'type':'deletion','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_LIST_ITEM'))});}return _0x10125a;});}}function le(_0x18ce57){let _0x45d64f=_0x18ce57['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x45d64f;){const _0x5d5a78=_0x45d64f['getAttribute']('listItemId');if(!_0x5d5a78)return!0x1;if(_0x5d5a78==_0x18ce57['data']['newValue'])return'newValue';if(_0x5d5a78==_0x18ce57['data']['oldValue'])return'oldValue';_0x45d64f=_0x45d64f['previousSibling'];}return!0x1;}class ue extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x520fd4=this['editor']['config']['get']('list.properties'),_0x922bd3=this['editor']['plugins']['get']('TrackChangesEditing');_0x520fd4['styles']&&(_0x922bd3['enableDefaultAttributesIntegration']('listStyle'),_0x922bd3['registerBlockAttribute']('listStyle')),_0x520fd4['reversed']&&(_0x922bd3['enableDefaultAttributesIntegration']('listReversed'),_0x922bd3['registerBlockAttribute']('listReversed')),_0x520fd4['startIndex']&&(_0x922bd3['enableDefaultAttributesIntegration']('listStart'),_0x922bd3['registerBlockAttribute']('listStart'));const _0x297fb3={'type':'format','content':''};_0x922bd3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1efb1f=this['editor']['locale'];_0x922bd3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1efb1f,'FORMAT_LIST_REVERSED')),_0x922bd3['descriptionFactory']['registerDescriptionCallback'](_0x1d9ba3=>{const {data:_0x351637}=_0x1d9ba3;if(_0x351637&&'listReversed'==_0x351637['key'])return null==_0x351637['newValue']||0x0==_0x351637['newValue']&&null==_0x351637['oldValue']?_0x297fb3:void 0x0;}),_0x922bd3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1efb1f,'FORMAT_LIST_START')),_0x922bd3['descriptionFactory']['registerDescriptionCallback'](_0x2a5dd8=>{const {data:_0x517248}=_0x2a5dd8;if(_0x517248&&'listStart'==_0x517248['key'])return null==_0x517248['newValue']||0x1==_0x517248['newValue']&&null==_0x517248['oldValue']?_0x297fb3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x18ee55=>{if(_0x18ee55['batch']['isUndo'])return!0x1;let _0x3cbedd=!0x1;const _0x5564a5=_0x922bd3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x139cb6=>{const _0x42cb20=_0x922bd3['_getAttributeKey'](_0x139cb6);return'listStart'==_0x42cb20||'listReversed'==_0x42cb20;});for(const _0x43ef5e of _0x5564a5){const _0x565037=_0x43ef5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x565037||'customNumbered'==_0x565037)continue;_0x922bd3['_findSuggestions'](_0x43ef5e['getFirstRange'](),'attribute')['find'](_0x244184=>'listType'==_0x922bd3['_getAttributeKey'](_0x244184['suggestion']))||(_0x18ee55['removeMarker'](_0x43ef5e['getFirstMarker']()),_0x3cbedd=!0x0);}return _0x3cbedd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5559cd){const _0x42df2b=this['editor']['locale'],{data:_0x39a7fc}=_0x5559cd,_0x5a80b8={'type':'format','content':''};if(!_0x39a7fc||'listStyle'!=_0x39a7fc['key'])return;if(!_0x39a7fc['oldValue'])return'default'==_0x39a7fc['newValue']?_0x5a80b8:{'type':'format','content':''+o(_0x42df2b,'*Set\x20format:*\x20%0',o(_0x42df2b,this['_getTranslationKeyForListStyle'](_0x39a7fc['newValue'])))};if(!_0x39a7fc['newValue']){if('default'==_0x39a7fc['oldValue'])return _0x5a80b8;let _0x47451d=_0x5559cd['head'];for(;_0x47451d;){if(_0x47451d['data']&&'listType'==_0x47451d['data']['key']&&_0x47451d['data']['newValue'])return _0x5a80b8;_0x47451d=_0x47451d['next'];}return{'type':'format','content':''+o(_0x42df2b,'*Remove\x20format:*\x20%0',o(_0x42df2b,this['_getTranslationKeyForListStyle'](_0x39a7fc['oldValue'])))};}if('default'!=_0x39a7fc['newValue'])return{'type':'format','content':''+o(_0x42df2b,'*Set\x20format:*\x20%0',o(_0x42df2b,this['_getTranslationKeyForListStyle'](_0x39a7fc['newValue'])))};let _0x3f2d33=_0x5559cd['head'];for(;_0x3f2d33;){if(_0x3f2d33['data']&&'listType'==_0x3f2d33['data']['key']&&_0x3f2d33['data']['newValue']&&_0x3f2d33['data']['oldValue'])return _0x5a80b8;_0x3f2d33=_0x3f2d33['next'];}return{'type':'format','content':o(_0x42df2b,'*Set\x20format:*\x20%0',o(_0x42df2b,'ELEMENT_'+_0x5559cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x465a6e=this['editor'],_0x5a9a95=_0x465a6e['locale'];_0x465a6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21d9a7=>{if('formatBlock'!=_0x21d9a7['type'])return;const {data:_0x45a52c}=_0x21d9a7;if(!_0x45a52c)return;let _0x3b8e96,_0x38d139;switch(_0x45a52c['commandName']){case'listStyle':_0x3b8e96='*Change\x20to:*\x20%0',_0x38d139={'type':'format','content':o(_0x5a9a95,_0x3b8e96,o(_0x5a9a95,this['_getTranslationKeyForListStyle'](_0x45a52c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b8e96=_0x45a52c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38d139={'type':'format','content':o(_0x5a9a95,_0x3b8e96)};break;case'listStart':_0x3b8e96='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38d139={'type':'format','content':o(_0x5a9a95,_0x3b8e96,_0x45a52c['commandParams'][0x0]['startIndex'])};}return _0x38d139;});}['_getTranslationKeyForListStyle'](_0x3a9103){return'ELEMENT_'+function(_0x15f2a7){if(pe['includes'](_0x15f2a7))return'bulleted';if(ye['includes'](_0x15f2a7))return'numbered';return null;}(_0x3a9103)['toUpperCase']()+'_LIST_'+_0x3a9103['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x3b57f6{static get['requires'](){return[_0xe252d7];}['init'](){const _0x29f95c=this['editor'],_0x2fb3bf=_0x29f95c['plugins']['get']('TrackChangesEditing'),_0x1bd9ed=_0x29f95c['commands']['get']('enter');_0x2fb3bf['enableCommand']('enter',()=>{_0x29f95c['model']['change'](_0x3d67a9=>{const _0x148917=_0x29f95c['model']['document']['selection'],_0x5a81da=_0x148917['getFirstPosition'](),_0x29a0f0=_0x2e923c['fromRange'](_0x148917['getFirstRange']());if(_0x1bd9ed['enterBlock'](_0x3d67a9)){const _0x17b87d=_0x29f95c['model']['createPositionAt'](_0x5a81da['parent']['nextSibling'],0x0),_0x1db752=_0x3d67a9['createRange'](_0x5a81da,_0x17b87d);_0x2fb3bf['markInsertion'](_0x1db752);}else _0x3d67a9['setSelection'](_0x3d67a9['createRange'](_0x29a0f0['end']));_0x29a0f0['detach'](),_0x1bd9ed['fire']('afterExecute',{'writer':_0x3d67a9});});}),_0x29f95c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x29f95c,'split'),{'priority':'high'}),_0x29f95c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4f2d1f,_0x572414,_0x5439de)=>{const _0x361693=_0x5439de['mapper']['markerNameToElements'](_0x572414['markerName']);if(_0x361693){for(const _0x394c63 of _0x361693)_0x394c63['hasClass']('ck-suggestion-marker-split')&&(_0x5439de['mapper']['unbindElementFromMarkerName'](_0x394c63,_0x572414['markerName']),_0x5439de['writer']['remove'](_0x394c63));}},{'priority':'high'}),_0x29f95c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5857a7,_0x110542,_0x114398)=>{_0x114398['options']['showSuggestionHighlights']&&_e(_0x29f95c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5857a7,_0x110542,_0x114398);},{'priority':'high'});}}class J extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39edec=this['editor']['plugins']['get']('TrackChangesEditing');_0x39edec['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39edec['enableCommand']('findNext'),_0x39edec['enableCommand']('findPrevious'),_0x39edec['enableCommand']('replace'),_0x39edec['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a7488,_0x1e2569,_0x3ce634={}){const _0x30d018=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a7488(_0x297934=>('string'==typeof _0x1e2569?_0x30d018['findByTextCallback'](_0x1e2569,_0x3ce634):_0x1e2569)(_0x297934)['filter'](_0x5ee9a8=>!0x1===this['_isInDeletionRange'](_0x5ee9a8,_0x297934['item'])),_0x3ce634);}['_isInDeletionRange'](_0x58171b,_0xa1577d){const _0x3b8824=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa1577d,_0x58171b['start']),this['editor']['model']['createPositionAt'](_0xa1577d,_0x58171b['end']));for(const _0x2fee11 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b8824['getIntersection'](_0x2fee11['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 _0x3b57f6{['afterInit'](){const _0x3586bd=this['editor']['locale'],_0x5aeb2c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c7bd1,commandName:_0x1928a9}of ro)this['editor']['plugins']['has'](_0x3c7bd1)&&(_0x5aeb2c['enableDefaultAttributesIntegration'](_0x1928a9),_0x5aeb2c['registerInlineAttribute'](_0x1928a9));_0x3586bd['t'],_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3586bd,'FORMAT_FONT_SIZE')),_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3586bd,'FORMAT_FONT_FAMILY')),_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3586bd,'FORMAT_FONT_COLOR')),_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3586bd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x395c03=this['editor'],_0x2bbcb0=_0x395c03['locale'];_0x395c03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4463c1=>{const _0x443db=_0x2bbcb0['t'];if('formatInline'!=_0x4463c1['type'])return;const {data:_0x4ae08c}=_0x4463c1;if(null!=_0x4ae08c){if('fontSize'==_0x4ae08c['commandName']){const _0xb7c590=_0x4ae08c['commandParams'][0x0]['value'];if(_0xb7c590){const _0x154a38=_0x443db(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x55a37c=>_0x55a37c['model']==_0xb7c590)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20size:*\x20%0',_0x154a38)};}return{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4ae08c['commandName']){const _0x27a0ec=_0x4ae08c['commandParams'][0x0]['value'];return _0x27a0ec?{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20family:*\x20%0',_0x27a0ec)}:{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4ae08c['commandName']){const _0x39f15a=_0x4ae08c['commandParams'][0x0]['value'];if(_0x39f15a){const _0x35edb8=_0x44a005(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21ca23=>_0x21ca23['model']==_0x39f15a);let _0x575b1a=_0x39f15a,_0x2909d3='';return _0x35edb8&&(_0x575b1a=_0x35edb8['label'],_0x2909d3=_0x443db(_0x575b1a)['toLowerCase']()),{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20color:*\x20%0',_0x2909d3)['trim'](),'color':{'value':_0x39f15a,'title':_0x2909d3||_0x575b1a}};}return{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4ae08c['commandName']){const _0x269f43=_0x4ae08c['commandParams'][0x0]['value'];if(_0x269f43){const _0x10db33=_0x44a005(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1a8bbe=>_0x1a8bbe['model']==_0x269f43);let _0xbecfc2=_0x269f43,_0x1736b5='';return _0x10db33&&(_0xbecfc2=_0x10db33['label'],_0x1736b5=_0x443db(_0xbecfc2)['toLowerCase']()),{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1736b5)['trim'](),'color':{'value':_0x269f43,'title':_0x1736b5||_0xbecfc2}};}return{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3b57f6{['afterInit'](){const _0x5e8f3f=this['editor'],_0xa9bc72=_0x5e8f3f['plugins']['get']('TrackChangesEditing'),_0x44c31c=_0x5e8f3f['commands']['get']('copyFormat'),_0x11baf5=_0x5e8f3f['commands']['get']('pasteFormat');_0x44c31c&&_0x11baf5&&(_0xa9bc72['enableDefaultAttributesIntegration']('pasteFormat'),_0xa9bc72['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4eb612=this['editor'],_0x311139=_0x4eb612['locale'];_0x4eb612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb225=>{if('formatBlock'!=_0x2bb225['type']&&'formatInline'!=_0x2bb225['type'])return;const {data:_0x57daf2}=_0x2bb225;if(_0x57daf2&&'pasteFormat'===_0x57daf2['commandName']){const _0x5773ea=[],_0x252361=_0x57daf2['commandParams'][0x0];for(const [_0x55b7d1,_0x1e8c26]of Object['entries'](_0x252361))_0x5773ea['push'](so(_0x4eb612,_0x55b7d1,_0x1e8c26));return _0x5773ea['length']?{'type':'format','content':o(_0x311139,'*Set\x20format\x20to:*\x20%0',_0x5773ea['join'](',\x20'))}:{'type':'format','content':o(_0x311139,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4efd25,_0x2ec3e9,_0x1167e0){const _0x2ba5a5=_0x4efd25['locale']['t'],_0xd76e23=_0x2ec3e9['split'](/(?=[A-Z])/)['join']('\x20'),_0x1cbaa6=_0x2ba5a5(_0xd76e23['charAt'](0x0)['toUpperCase']()+_0xd76e23['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1167e0)return _0x1cbaa6;if('fontColor'===_0x2ec3e9||'fontBackgroundColor'===_0x2ec3e9){const _0x429d08=_0x44a005(_0x4efd25['config']['get']('fontColor.colors'))['find'](_0x4a62df=>_0x4a62df['model']==_0x1167e0);return _0x1cbaa6+'\x20('+(_0x429d08?_0x2ba5a5(_0x429d08['label'])['toLowerCase']():_0x1167e0)+')';}if('fontSize'===_0x2ec3e9&&isNaN(parseFloat(_0x1167e0))){const _0x5de73c=_0x4efd25['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4efd25['config']['get']('fontSize.options'))['find'](_0x1e94f1=>_0x1e94f1['model']==_0x1167e0);return _0x1cbaa6+'\x20('+(_0x5de73c?_0x2ba5a5(_0x5de73c['title'])['toLowerCase']():_0x1167e0)+')';}return _0x1cbaa6+'\x20('+_0x1167e0+')';}class Y extends _0x3b57f6{['_headingOptions'];['afterInit'](){const _0x2bb2a8=this['editor'];if(!_0x2bb2a8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2bb2a8['config']['get']('heading.options');const _0x2cb703=_0x2bb2a8['locale'],_0x3d76bf=_0x2bb2a8['plugins']['get']('TrackChangesEditing');_0x3d76bf['enableDefaultAttributesIntegration']('heading');for(const _0x250caa of this['_headingOptions'])'paragraph'!=_0x250caa['model']&&_0x3d76bf['descriptionFactory']['registerElementLabel'](_0x250caa['model'],_0x26fd97=>{const _0x17d48f=this['_getHeadingLevel'](_0x250caa['model']);return null!==_0x17d48f?_0x35a245(_0x26fd97,_0x17d48f):_0x3dda8b(_0x26fd97,_0x250caa['title']);});function _0x35a245(_0x5181f1,_0x40f9db){return o(_0x2cb703,'ELEMENT_HEADING',[_0x5181f1,_0x40f9db]);}function _0x3dda8b(_0x7c2894,_0xd8ac9d){return o(_0x2cb703,'ELEMENT_HEADING_CUSTOM',[_0x7c2894,_0xd8ac9d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57e2c8=this['editor'],_0x1f340e=_0x57e2c8['locale'];function _0x549c2d(_0x105fbc,_0x25ba0b){return o(_0x1f340e,'ELEMENT_HEADING_CUSTOM',[_0x105fbc,_0x25ba0b]);}_0x57e2c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313c1e=>{if('formatBlock'!=_0x313c1e['type'])return;const {data:_0x201e5c}=_0x313c1e;if(_0x201e5c&&'heading'==_0x201e5c['commandName']){const _0x55c9c3=_0x201e5c['commandParams'][0x0]['value'],_0x3afccb=this['_getHeadingLevel'](_0x55c9c3);if(null!==_0x3afccb)return{'type':'format','content':o(_0x1f340e,'*Change\x20to:*\x20%0',(_0x1773af=0x1,_0x493289=_0x3afccb,o(_0x1f340e,'ELEMENT_HEADING',[_0x1773af,_0x493289])))};const _0x158ae9=this['_headingOptions']['find'](_0x4f2ad5=>_0x4f2ad5['model']===_0x55c9c3)['title'];return{'type':'format','content':o(_0x1f340e,'*Change\x20to:*\x20%0',_0x549c2d(0x1,_0x158ae9))};}var _0x1773af,_0x493289;});}['_getHeadingLevel'](_0x2cff54){const _0x22a4e0=_0x2cff54['match'](/^heading(\d+)/);if(_0x22a4e0)return _0x22a4e0[0x1];const _0x3aa52f=this['_headingOptions']?.['find'](_0x19ce3f=>_0x19ce3f['model']==_0x2cff54);if(_0x3aa52f&&_0x3aa52f['view']){const _0x105ab5=_0x3aa52f['view'],_0x2e580f=(_0x105ab5['name']??_0x105ab5)['match'](/^h(\d+)/);if(_0x2e580f)return _0x2e580f[0x1];}return null;}}class Z extends _0x3b57f6{['afterInit'](){const _0x1bd778=this['editor'];if(!_0x1bd778['plugins']['has']('HighlightEditing'))return;const _0x34a684=_0x1bd778['plugins']['get']('TrackChangesEditing'),_0x3bcefa=_0x1bd778['locale'];_0x34a684['enableDefaultAttributesIntegration']('highlight'),_0x34a684['registerInlineAttribute']('highlight'),_0x34a684['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3bcefa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c439=this['editor'],_0x2ece49=_0x44c439['locale'];_0x44c439['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e53ac=>{if('formatInline'!=_0x7e53ac['type'])return;const {data:_0xc938e6}=_0x7e53ac;if(_0xc938e6&&'highlight'==_0xc938e6['commandName']){const _0x3a8449=_0x2ece49['t'],_0x3c6cd1=_0xc938e6['commandParams'][0x0]['value'];if(_0x3c6cd1){const _0x5306b3=_0x44c439['config']['get']('highlight.options')['find'](_0x5674f4=>_0x5674f4['model']==_0x3c6cd1),_0x47c1a9=_0x3a8449(_0x5306b3['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ece49,'*Set\x20highlight:*\x20%0',_0x47c1a9),'color':{'value':_0x5306b3['color'],'title':_0x5306b3['title']}};}return{'type':'format','content':o(_0x2ece49,'*Remove\x20highlight*',o(_0x2ece49,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3b57f6{['afterInit'](){const _0x5c21c2=this['editor'];if(!_0x5c21c2['plugins']['has']('HorizontalLineEditing'))return;_0x5c21c2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x60e641=_0x5c21c2['plugins']['get']('TrackChangesEditing'),_0x237a36=_0x5c21c2['locale'];_0x60e641['descriptionFactory']['registerElementLabel']('horizontalLine',_0x425f14=>o(_0x237a36,'ELEMENT_HORIZONTAL_LINE',_0x425f14)),_0x5c21c2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c37bc,{writer:_0x351045,options:_0x32ad0b})=>{if(!_0x32ad0b['showSuggestionHighlights'])return null;const _0x284cdf=_0x351045['createContainerElement']('div'),_0x4002fa=_0x351045['createEmptyElement']('hr');return _0x351045['addClass']('ck-horizontal-line',_0x284cdf),_0x351045['insert'](_0x351045['createPositionAt'](_0x284cdf,0x0),_0x4002fa),_0x284cdf;},'converterPriority':'high'});}}class et extends _0x3b57f6{['afterInit'](){const _0x4bb529=this['editor'];if(!_0x4bb529['plugins']['has']('HtmlEmbed'))return;const _0xca690=_0x4bb529['plugins']['get']('TrackChangesEditing'),_0x9ab2fa=_0x4bb529['locale'];_0xca690['descriptionFactory']['registerElementLabel']('rawHtml',_0x227357=>o(_0x9ab2fa,'ELEMENT_HTML_EMBED',_0x227357)),_0xca690['enableDefaultAttributesIntegration']('htmlEmbed'),_0xca690['registerBlockAttribute']('value'),_0xca690['descriptionFactory']['registerDescriptionCallback'](_0x2da9e4=>{if('attribute'!=_0x2da9e4['type'])return;const {data:_0x16a4d3}=_0x2da9e4;if(_0x16a4d3&&'value'==_0x16a4d3['key']&&_0x2da9e4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4d18ed=o(_0x9ab2fa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x9ab2fa,'*Change\x20%0\x20content*',_0x4d18ed)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba361=this['editor'],_0x5c44a4=_0x2ba361['locale'];_0x2ba361['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab3fd=>{if('formatBlock'!=_0x2ab3fd['type'])return;const {data:_0x10c74b}=_0x2ab3fd;if(_0x10c74b&&'htmlEmbed'==_0x10c74b['commandName']){const _0x4c055c=o(_0x5c44a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c44a4,'*Change\x20%0\x20content*',_0x4c055c)};}});}}class it extends _0x3b57f6{['afterInit'](){const _0x2ad2fc=this['editor'];if(!_0x2ad2fc['plugins']['has']('ImageEditing'))return;const _0x23aec1=_0x2ad2fc['plugins']['get']('TrackChangesEditing'),_0x343367=_0x2ad2fc['plugins']['get']('ImageUtils'),_0x247732=_0x2ad2fc['locale'];_0x23aec1['enableCommand']('insertImage'),_0x23aec1['descriptionFactory']['registerElementLabel']('imageBlock',_0x7c50b2=>o(_0x247732,'ELEMENT_IMAGE',_0x7c50b2)),_0x23aec1['descriptionFactory']['registerElementLabel']('imageInline',_0x3153a7=>o(_0x247732,'ELEMENT_INLINE_IMAGE',_0x3153a7)),_0x23aec1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x247732,'ELEMENT_CAPTION')),_0x2ad2fc['plugins']['has']('ImageUploadEditing')&&_0x23aec1['enableCommand']('uploadImage'),_0x2ad2fc['plugins']['has']('ImageBlockEditing')&&_0x2ad2fc['plugins']['has']('ImageInlineEditing')&&(_0x23aec1['enableCommand']('imageTypeInline',(_0x2c3994,_0x22acf0)=>{const _0x55e6c0=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']);_0x2ad2fc['model']['change'](()=>{_0x23aec1['markBlockFormat'](_0x55e6c0,{'commandName':'imageTypeInline','commandParams':[_0x22acf0]},[],'convertBlockImageToInline');});}),_0x23aec1['enableCommand']('imageTypeBlock',(_0x3c1b6f,_0x376ab5)=>{_0x2ad2fc['model']['change'](_0x1b0123=>{let _0x3e8fd6=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x55b2da=_0x1b0123['createRangeOn'](_0x3e8fd6);const _0x404438=_0x30dd34['fromPosition'](_0x55b2da['start'],'toPrevious'),_0x5f406b=_0x30dd34['fromPosition'](_0x55b2da['end'],'toNext');_0x23aec1['forceDefaultExecution'](()=>_0x3c1b6f(_0x376ab5)),_0x3e8fd6=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x55b2da=_0x1b0123['createRangeOn'](_0x3e8fd6);const _0x1b8cdd=_0x1b0123['createRange'](_0x404438,_0x5f406b);_0x404438['detach'](),_0x5f406b['detach'](),_0x23aec1['markBlockFormat'](_0x3e8fd6,{'commandName':'imageTypeInline','commandParams':[_0x376ab5]},[],'convertInlineImageToBlock'),_0x1b8cdd['start']['isBefore'](_0x55b2da['start'])&&_0x23aec1['markInsertion'](_0x1b0123['createRange'](_0x1b8cdd['start'],_0x55b2da['start']),'convertInlineImageToBlock'),_0x55b2da['end']['isBefore'](_0x1b8cdd['end'])&&_0x23aec1['markInsertion'](_0x1b0123['createRange'](_0x55b2da['end'],_0x1b8cdd['end']),'convertInlineImageToBlock');});}),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x23aec1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5cbfbd])=>{const _0x3bf444=_0x23aec1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4e7c1d=_0x5cbfbd['start'],_0x32285a=_0x5cbfbd['end'];const _0x536243=_0x2ad2fc['model']['schema']['getNearestSelectionRange'](_0x4e7c1d,'backward'),_0x567066=_0x2ad2fc['model']['schema']['getNearestSelectionRange'](_0x32285a,'forward');_0x536243['isCollapsed']&&(_0x4e7c1d=_0x536243['start']),_0x567066['isCollapsed']&&(_0x32285a=_0x567066['end']),_0x3bf444([_0x2ad2fc['model']['createRange'](_0x4e7c1d,_0x32285a)]);}),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x21c3a1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x21c3a1)),_0x2ad2fc['plugins']['has']('ImageCaptionEditing')&&(_0x23aec1['enableCommand']('toggleImageCaption',(_0x53c560,_0x239dbc)=>{const _0x4ada07=_0x2ad2fc['plugins']['get']('ImageCaptionUtils');let _0x352b33=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x4f5d6c=_0x4ada07['getCaptionFromImageModelElement'](_0x352b33);_0x2ad2fc['model']['change'](()=>{if(_0x4f5d6c)return void _0x23aec1['markDeletion'](_0x2ad2fc['model']['createRangeOn'](_0x4f5d6c));const _0x4b242a=_0x343367['isBlockImage'](_0x352b33);_0x53c560(_0x239dbc),_0x352b33=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x4f5d6c=_0x4ada07['getCaptionFromImageModelElement'](_0x352b33),_0x23aec1['markInsertion'](_0x2ad2fc['model']['createRangeOn'](_0x4f5d6c),_0x4b242a?null:'imageCaption');});}),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x21c3a1));const _0x5bb299=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5091cf(_0x3e72f1,_0x4fb161){const _0x2eb1bf=_0x5bb299['findIndex'](({type:_0x32464c,subType:_0x5604a9})=>_0x3e72f1['type']==_0x32464c&&_0x3e72f1['subType']==_0x5604a9),_0x487c5e=_0x5bb299['findIndex'](({type:_0x11e17b,subType:_0x211a5d})=>_0x4fb161['type']==_0x11e17b&&_0x4fb161['subType']==_0x211a5d);if(_0x2eb1bf<0x0||_0x487c5e<0x0)return!0x1;const _0xa25434=_0x3e72f1['getFirstRange'](),_0x175b3b=_0x4fb161['getFirstRange']();if((0x0==_0x2eb1bf||0x1==_0x2eb1bf)&&0x2==_0x487c5e&&_0xa25434['isIntersecting'](_0x175b3b))return!0x0;if(0x2==_0x2eb1bf&&0x3==_0x487c5e){const _0x910973=_0x23aec1['_findSuggestions'](_0xa25434,'insertion')['filter'](({suggestion:_0x9260c9,meta:_0x38e1ee})=>_0x38e1ee['isOwn']&&'convertInlineImageToBlock'==_0x9260c9['subType']);if(_0x910973['length']>0x1&&_0x175b3b['end']['isEqual'](_0xa25434['start']))return!0x0;if(0x1==_0x910973['length']&&(_0xa25434['start']['isEqual'](_0x175b3b['end'])||_0xa25434['end']['isEqual'](_0x175b3b['start'])))return!0x0;}if(0x3==_0x2eb1bf&&0x3==_0x487c5e&&_0xa25434['start']['isBefore'](_0x175b3b['start'])){const _0x764b94=_0xa25434['end']['nodeAfter'],_0x545881=_0x175b3b['start']['nodeBefore'];return _0x343367['isBlockImage'](_0x764b94)&&_0x764b94===_0x545881;}return!0x1;}function _0x21c3a1(_0x41b34f,_0xf79009){return _0x5091cf(_0x41b34f,_0xf79009)?[_0x41b34f,_0xf79009]:_0x5091cf(_0xf79009,_0x41b34f)?[_0xf79009,_0x41b34f]:null;}_0x2ad2fc['plugins']['has']('ImageResize')&&(_0x23aec1['enableDefaultAttributesIntegration']('resizeImage'),_0x23aec1['registerBlockAttribute']('resizedWidth'),_0x23aec1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x247732,'FORMAT_IMAGE_SIZE'))),_0x2ad2fc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x23aec1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x23aec1['registerBlockAttribute']('alt')),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x2d2cdc=>{if(!!_0x5bb299['find'](({type:_0x1d132a,subType:_0x10889f})=>_0x2d2cdc['type']==_0x1d132a&&_0x2d2cdc['subType']==_0x10889f))return _0x2d2cdc['previous']?{}:void 0x0;}),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x226b8f=>{if('insertion'==_0x226b8f['type']||'deletion'==_0x226b8f['type']){const _0x342dd4=_0x226b8f['getContainedElement']();if(_0x342dd4&&_0x342dd4['is']('element','caption'))return{'type':'insertion'==_0x226b8f['type']?'addObject':'removeObject','element':_0x342dd4,'quantity':0x1};}}),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x1bd167=>'formatBlock'==_0x1bd167['type']&&'convertInlineImageToBlock'==_0x1bd167['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1bd167['type']&&'convertBlockImageToInline'==_0x1bd167['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x127f91=>{if('attribute'!=_0x127f91['type'])return;const {data:_0x38bf7d}=_0x127f91;if(!_0x38bf7d||'alt'!=_0x38bf7d['key'])return;const _0x403d6f=_0x38bf7d['newValue'];return _0x403d6f?{'type':'format','content':o(_0x247732,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x403d6f+'\x22')}:{'type':'format','content':o(_0x247732,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5405d5=this['editor'],_0x155a30=_0x5405d5['locale'];_0x5405d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x807c39=>{if('formatBlock'!=_0x807c39['type']&&'formatInline'!=_0x807c39['type'])return;const {data:_0x1b17d5}=_0x807c39;if(_0x1b17d5){if('imageTextAlternative'==_0x1b17d5['commandName']){const _0x496ac8=_0x1b17d5['commandParams'][0x0]['newValue'];return _0x496ac8?{'type':'format','content':o(_0x155a30,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x496ac8+'\x22')}:{'type':'format','content':o(_0x155a30,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1b17d5['commandName']){const _0x3481a3=_0x1b17d5['commandParams'][0x0]['width'];return _0x3481a3?{'type':'format','content':o(_0x155a30,'*Set\x20image\x20width:*\x20%0',_0x3481a3)}:{'type':'format','content':o(_0x155a30,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x473f54=this['editor']['locale'],_0x23ef0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x23ef0f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x23ef0f['registerBlockAttribute']('src'),_0x23ef0f['descriptionFactory']['registerDescriptionCallback'](_0x3d5a3f=>{if('attribute'!=_0x3d5a3f['type'])return;const {data:_0x217eec}=_0x3d5a3f;return _0x217eec&&'src'==_0x217eec['key']?_0x217eec['newValue']&&_0x217eec['oldValue']?{'type':'format','content':o(_0x473f54,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5257a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5257a9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5257a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5257a9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5257a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2299b=this['editor'],_0x195672=_0xe2299b['locale'];_0xe2299b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19265e=>{if('formatBlock'!=_0x19265e['type']&&'formatInline'!=_0x19265e['type'])return;const {data:_0x32d0f7}=_0x19265e;if(!_0x32d0f7||'replaceImageSource'!=_0x32d0f7['commandName'])return;return{'type':'format','content':o(_0x195672,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3b57f6{['afterInit'](){const _0x167928=this['editor'];if(!_0x167928['plugins']['has']('ImageStyleEditing'))return;const _0x4e9d89=_0x167928['plugins']['get']('TrackChangesEditing'),_0x213085=_0x167928['plugins']['get']('ImageUtils'),_0x37554c={};_0x4e9d89['enableCommand']('imageStyle',(_0x19b92f,_0x2ab485)=>{const _0x4b23d2=_0x167928['plugins']['get']('Users')['me'],_0x5e706d=_0x167928['commands']['get']('imageStyle');let _0x336ed3=_0x213085['getClosestSelectedImageElement'](_0x167928['model']['document']['selection']),_0x444700=_0x167928['model']['createRangeOn'](_0x336ed3),_0x38cdab=_0x5e706d['value'];if(_0x38cdab==_0x2ab485['value'])return;const _0x23c369={'commandName':'imageStyle','commandParams':[_0x2ab485],'formatGroupId':_0x386e7f()};_0x167928['model']['change'](()=>{if(_0x4e9d89['getSuggestions']()['filter'](_0x2f7249=>_0x2f7249['isInContent']&&_0x4b23d2==_0x2f7249['author']&&('formatBlock'==_0x2f7249['type']||'formatInline'==_0x2f7249['type'])&&('imageStylePreApply'==_0x2f7249['subType']||'imageStylePostApply'==_0x2f7249['subType'])&&_0x2f7249['getFirstRange']()['isEqual'](_0x444700))['forEach'](_0x9b8872=>_0x4e9d89['discardSuggestion'](_0x9b8872['head'])),_0x336ed3=_0x213085['getClosestSelectedImageElement'](_0x167928['model']['document']['selection']),_0x444700=_0x167928['model']['createRangeOn'](_0x336ed3),_0x5e706d['refresh'](),_0x167928['commands']['get']('imageTypeInline')['refresh'](),_0x167928['commands']['get']('imageTypeBlock')['refresh'](),_0x38cdab=_0x5e706d['value'],_0x38cdab!=_0x2ab485['value'])return _0x213085['isInlineImage'](_0x336ed3)&&_0x5e706d['shouldConvertImageType'](_0x2ab485['value'],_0x336ed3)?(_0x19b92f({..._0x2ab485,'setImageSizes':!0x1}),_0x336ed3=_0x213085['getClosestSelectedImageElement'](_0x167928['model']['document']['selection']),void _0x4e9d89['markBlockFormat'](_0x336ed3,{..._0x23c369,'commandReversedParams':[{'value':_0x38cdab||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x213085['isBlockImage'](_0x336ed3)?_0x4e9d89['markBlockFormat'](_0x336ed3,_0x23c369,[],'imageStylePostApply'):_0x4e9d89['markInlineFormat'](_0x444700,_0x23c369,'imageStylePostApply'));});});for(const _0xab62d8 of _0x167928['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37554c[_0xab62d8['name']]=_0xab62d8['title']['toLowerCase']();_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f1120])=>{_0x213085['setImageNaturalSizeAttributes'](_0x4f1120['getContainedElement']());}),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3756eb,_0x32097f)=>{_0x4e9d89['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3756eb,{'commandName':_0x32097f['commandName'],'commandParams':_0x32097f['commandReversedParams']});}),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b38a4,_0x34837d){if(_0x3910b9(_0x2b38a4,_0x34837d))return[_0x2b38a4,_0x34837d];if(_0x3910b9(_0x34837d,_0x2b38a4))return[_0x34837d,_0x2b38a4];return null;});const _0x39d485=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3910b9(_0x1faab4,_0x2405ec){const _0x5b3fe4=_0x39d485['findIndex'](({type:_0x3836b8,subType:_0x4a0ef0})=>_0x1faab4['type']==_0x3836b8&&_0x1faab4['subType']==_0x4a0ef0),_0x1405f9=_0x39d485['findIndex'](({type:_0x2c93aa,subType:_0x5233c3})=>_0x2405ec['type']==_0x2c93aa&&_0x2405ec['subType']==_0x5233c3);if(_0x5b3fe4<0x0||_0x1405f9<0x0)return!0x1;const _0xffbd8c=_0x1faab4['getFirstRange'](),_0x18ed86=_0x2405ec['getFirstRange']();if((0x0==_0x5b3fe4||0x1==_0x5b3fe4)&&0x2==_0x1405f9&&_0xffbd8c['isIntersecting'](_0x18ed86))return!0x0;if(0x2==_0x5b3fe4&&0x3==_0x1405f9){const _0x382b2b=_0x4e9d89['_findSuggestions'](_0xffbd8c,'insertion')['filter'](({suggestion:_0x5cac98,meta:_0x1b95f8})=>_0x1b95f8['isOwn']&&'convertInlineImageToBlock'==_0x5cac98['subType']);if(_0x382b2b['length']>0x1&&_0x18ed86['end']['isEqual'](_0xffbd8c['start']))return!0x0;if(0x1==_0x382b2b['length']&&(_0xffbd8c['start']['isEqual'](_0x18ed86['end'])||_0xffbd8c['end']['isEqual'](_0x18ed86['start'])))return!0x0;}if(0x3==_0x5b3fe4&&0x3==_0x1405f9&&_0xffbd8c['start']['isBefore'](_0x18ed86['start'])){const _0x1303df=_0xffbd8c['end']['nodeAfter'],_0x37d715=_0x18ed86['start']['nodeBefore'];return _0x213085['isBlockImage'](_0x1303df)&&_0x1303df===_0x37d715;}return!0x1;}_0x167928['model']['document']['registerPostFixer'](()=>{let _0x4961ff=!0x1;const _0x4af2aa=Array['from'](_0x167928['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12d79a,data:_0x7b7fbf}of _0x4af2aa){const {group:_0x3ab32c,type:_0x25045b,subType:_0x18df8c,id:_0x219e52}=_0x4e9d89['_splitMarkerName'](_0x12d79a);if('suggestion'==_0x3ab32c&&_0x4e9d89['hasSuggestion'](_0x219e52)){if('formatBlock'==_0x25045b&&('imageStylePreApply'==_0x18df8c||'imageStylePostApply'==_0x18df8c)){const _0x4dffd0=_0x4e9d89['getSuggestion'](_0x219e52);if(_0x7b7fbf['newRange']){const _0x532ae7=_0x4dffd0['getFirstRange']()['getContainedElement']();if(_0x213085['isBlockImage'](_0x532ae7))continue;_0x4e9d89['discardSuggestion'](_0x4dffd0),_0x4961ff=!0x0;}}if('insertion'==_0x25045b&&'imageCaption'==_0x18df8c&&!_0x7b7fbf['newRange']){const _0x3de3bd=_0x4e9d89['getSuggestion'](_0x219e52);_0x3de3bd['next']&&_0x3de3bd['next']['isInContent']&&(_0x4e9d89['discardSuggestion'](_0x3de3bd['next']),_0x4961ff=!0x0);}}}return _0x4961ff;}),this['_registerLegacyDescription'](_0x37554c);}['_registerLegacyDescription'](_0x444c92){const _0xce3fbf=this['editor'],_0x542535=_0xce3fbf['locale'];_0xce3fbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1417a9=>{if('formatBlock'!=_0x1417a9['type']&&'formatInline'!=_0x1417a9['type'])return;const {data:_0x19dfad}=_0x1417a9;if(!_0x19dfad||'imageStyle'!=_0x19dfad['commandName'])return;const _0x462d22=_0x19dfad['commandParams'][0x0]['value'];return _0x40ba1a('side'===_0x462d22?o(_0x542535,'FORMAT_SIDE_IMAGE'):_0x444c92[_0x462d22]||_0x462d22);function _0x40ba1a(_0x48295f){return{'type':'format','content':o(_0x542535,'*Format:*\x20%0',_0x48295f)};}});}}class ot extends _0x3b57f6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1da97d){super(_0x1da97d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2fffa5=this['editor'],_0x36e576=_0x2fffa5['commands']['get']('importWord'),_0x59298d=_0x2fffa5['commands']['get']('trackChanges');_0x36e576&&(_0x36e576['on']('execute',(_0x3129d8,[,_0x48ab9b])=>{this['_trackChangesValueDuringImport']=_0x59298d['value'],_0x48ab9b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x36e576,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x36e576,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59298d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fffa5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3e757c,_0x45445a){const {suggestions:_0x2736fa}=_0x45445a,_0x3be5e3=this['editor']['commands']['get']('trackChanges'),_0x27f64a=_0x3be5e3['value'];this['_trackChangesValueDuringImport']!==_0x27f64a&&(_0x3be5e3['execute'](),this['_trackChangesExecuted']=!0x0),_0x2736fa&&_0x2736fa['forEach'](({id:_0x3c28ec,type:_0x3158c6,author:_0x95b44d,created_at:_0x695468})=>{const _0x2a428c={'id':_0x3c28ec,'type':_0x3158c6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x95b44d,'createdAt':_0x695468?new Date(_0x695468):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a428c);});}}class rt extends _0x3b57f6{['afterInit'](){const _0x3c8e14=this['editor'],_0x48932d=_0x3c8e14['plugins']['get']('TrackChangesEditing');if(_0x3c8e14['plugins']['has']('IndentEditing')&&(_0x48932d['enableCommand']('indent'),_0x48932d['enableCommand']('outdent')),_0x3c8e14['plugins']['has']('IndentBlock')){for(const _0x4b0fb3 of['indentBlock','outdentBlock'])_0x48932d['enableDefaultAttributesIntegration'](_0x4b0fb3);}const _0x374bcb=_0x3c8e14['locale'];_0x48932d['registerBlockAttribute']('blockIndent'),_0x48932d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x374bcb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2f21=this['editor'],_0xd05c4c=_0x2c2f21['locale'],_0x59bce4=_0x2c2f21['plugins']['get']('TrackChangesEditing');_0x59bce4['descriptionFactory']['registerDescriptionCallback'](_0x481aa3=>{if('formatBlock'!=_0x481aa3['type'])return;const {data:_0x59d705}=_0x481aa3;if(!_0x59d705)return;if('indentBlock'!=_0x59d705['commandName']&&'outdentBlock'!=_0x59d705['commandName'])return;const _0x17cbf0=_0x481aa3['getItems']()[0x0],_0x348b8a=_0x59bce4['descriptionFactory']['getItemLabel'](_0x17cbf0);return'indentBlock'==_0x59d705['commandName']?{'type':'format','content':o(_0xd05c4c,'*Indent:*\x20%0',_0x348b8a)}:'outdentBlock'==_0x59d705['commandName']?{'type':'format','content':o(_0xd05c4c,'*Outdent:*\x20%0',_0x348b8a)}:void 0x0;});}}class at extends _0x3b57f6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3b57f6{['afterInit'](){const _0x59805b=this['editor'];if(!_0x59805b['plugins']['has']('LinkEditing'))return;const _0x2cb3f7=_0x59805b['plugins']['get']('TrackChangesEditing'),_0x261f38=_0x59805b['commands']['get']('link');_0x2cb3f7['enableDefaultAttributesIntegration']('link'),_0x2cb3f7['enableDefaultAttributesIntegration']('unlink'),_0x2cb3f7['registerInlineAttribute']('linkHref');for(const _0x1f5296 of _0x261f38['manualDecorators'])_0x2cb3f7['registerInlineAttribute'](_0x1f5296['id']),_0x2cb3f7['descriptionFactory']['registerAttributeLabel'](_0x1f5296['id'],'link\x20('+_0x1f5296['label']['toLowerCase']()+')');_0x2cb3f7['descriptionFactory']['registerDescriptionCallback'](_0x5ac637=>{if('attribute'!=_0x5ac637['type'])return;const {data:_0x1b2d57}=_0x5ac637;if(!_0x1b2d57||'linkHref'!=_0x1b2d57['key'])return;const _0x18dd4b=_0x1b2d57['newValue'],_0x31b5af=_0x59805b['locale'];return{'type':'format','content':null==_0x18dd4b?o(_0x31b5af,'*Remove\x20link*'):o(_0x31b5af,'*Set\x20link:*\x20%0','\x22'+_0x18dd4b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3aa59=this['editor'],_0x4b563c=_0xd3aa59['locale'];_0xd3aa59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x522a64=>{if('formatInline'!=_0x522a64['type'])return;const {data:_0x3159bb}=_0x522a64;if(_0x3159bb){if('link'==_0x3159bb['commandName']){const _0x22daf6=_0x3159bb['commandParams'][0x0];return{'type':'format','content':o(_0x4b563c,'*Set\x20link:*\x20%0','\x22'+_0x22daf6+'\x22')};}return'unlink'==_0x3159bb['commandName']?{'type':'format','content':o(_0x4b563c,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3b57f6{['afterInit'](){const _0x29a711=this['editor'],_0x5d6cf8=_0x29a711['locale'];if(!_0x29a711['plugins']['has']('LegacyListEditing'))return;const _0x3ba956=_0x29a711['plugins']['get']('TrackChangesEditing'),_0x32c600=_0x29a711['plugins']['has']('LegacyTodoListEditing');function _0x46f209(_0x3f0071){return()=>{const _0x59c105=_0x29a711['model']['document']['selection'],_0x20ba54=_0x29a711['commands']['get'](_0x3f0071);if(_0x20ba54['value'])return void _0x29a711['execute']('paragraph',{});const _0x2484ea=_0x3f0071['slice'](0x0,-0x4),_0x99cb83=function(_0x58afc4,_0x18089b,_0x147e77){let _0x4ecf0e=Array['from'](_0x58afc4)['filter'](_0xeca08e=>function(_0x38b561,_0x38fb43){return _0x38fb43['checkChild'](_0x38b561['parent'],'listItem')&&!_0x38fb43['isObject'](_0x38b561);}(_0xeca08e,_0x147e77));_0x4ecf0e=_0x4ecf0e['filter'](_0x3be8a4=>!_0x3be8a4['is']('element','listItem')||_0x3be8a4['getAttribute']('listType')!=_0x18089b);const _0xf59e0c=new Set();for(const _0x42257c of _0x4ecf0e)_0x42257c['is']('element','listItem')?_0xf59e0c['add'](me(_0x42257c)):_0xf59e0c['add'](_0x42257c);return Array['from'](_0xf59e0c);}(_0x59c105['getSelectedBlocks'](),_0x2484ea,_0x29a711['model']['schema']);_0x29a711['model']['change'](()=>{for(const _0x1b63fc of _0x99cb83)_0x3ba956['markBlockFormat'](_0x1b63fc,{'commandName':_0x3f0071,'commandParams':[{'forceValue':!_0x20ba54['value']}],'formatGroupId':'blockName'},fe(_0x1b63fc));});};}function _0x3abe0d(_0x3c3584){return()=>{const _0x26d230=function(_0xe2f4c1){let _0x4df599=Array['from'](_0xe2f4c1);const _0x335e32=_0x4df599['findIndex'](_0xa237e7=>'listItem'!=_0xa237e7['name']);return _0x335e32>-0x1&&(_0x4df599=_0x4df599['slice'](0x0,_0x335e32)),_0x4df599;}(_0x29a711['model']['document']['selection']['getSelectedBlocks']()),_0x5bc582=_0x29a711['model']['createRange'](_0x29a711['model']['createPositionAt'](_0x26d230[0x0],'before'),_0x29a711['model']['createPositionAt'](_0x26d230[_0x26d230['length']-0x1],'end'));_0x29a711['model']['change'](()=>{_0x3ba956['markBlockFormat'](_0x5bc582,{'commandName':_0x3c3584,'commandParams':[],'formatGroupId':'listIndent'},function(_0x22c3d9){const _0x286c3b=new Set();for(const _0x4f56d3 of _0x22c3d9){let _0x33be4b=_0x4f56d3['nextSibling'];for(;_0x33be4b&&_0x33be4b['getAttribute']('listIndent')>_0x4f56d3['getAttribute']('listIndent');)_0x286c3b['add'](_0x33be4b),_0x33be4b=_0x33be4b['nextSibling'];}return Array['from'](_0x286c3b);}(_0x26d230));});};}_0x3ba956['enableCommand']('numberedList',_0x46f209('numberedList')),_0x3ba956['enableCommand']('bulletedList',_0x46f209('bulletedList')),_0x32c600&&_0x3ba956['enableCommand']('todoList',_0x46f209('todoList')),_0x3ba956['enableCommand']('indentList',_0x3abe0d('indentList')),_0x3ba956['enableCommand']('outdentList',_0x3abe0d('outdentList')),_0x32c600&&_0x3ba956['enableCommand']('checkTodoList',()=>{const _0x53d92a=_0x29a711['commands']['get']('checkTodoList'),_0x55e563=Array['from'](_0x53d92a['_selectedElements']);_0x55e563['filter'](_0x21e5c2=>_0x21e5c2['getAttribute']('todoListChecked')!=_0x53d92a['value']),_0x29a711['model']['change'](()=>{for(const _0x339538 of _0x55e563)_0x3ba956['markBlockFormat'](_0x339538,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x53d92a['value']}]});});}),_0x3ba956['descriptionFactory']['registerElementLabel']('listItem',_0x30cb0e=>o(_0x5d6cf8,'ELEMENT_LIST_ITEM',_0x30cb0e)),_0x3ba956['descriptionFactory']['registerDescriptionCallback'](_0x3819fb=>{if('formatBlock'!=_0x3819fb['type']&&'formatInline'!=_0x3819fb['type'])return;const {data:_0x126162}=_0x3819fb;if(_0x126162){if('numberedList'==_0x126162['commandName']||'bulletedList'==_0x126162['commandName']||'todoList'==_0x126162['commandName'])switch(_0x126162['commandName']['replace']('List','')){case'bulleted':return _0x2c86c7(o(_0x5d6cf8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c86c7(o(_0x5d6cf8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c86c7(o(_0x5d6cf8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x126162['commandName'])return{'type':'format','content':o(_0x5d6cf8,'*Indent:*\x20%0',o(_0x5d6cf8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x126162['commandName'])return{'type':'format','content':o(_0x5d6cf8,'*Outdent:*\x20%0',o(_0x5d6cf8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x126162['commandName'])return _0x126162['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d6cf8,'*Check\x20item*')}:{'type':'format','content':o(_0x5d6cf8,'*Uncheck\x20item*')};}function _0x2c86c7(_0x5eca9c){return{'type':'format','content':o(_0x5d6cf8,'*Change\x20to:*\x20%0',_0x5eca9c)};}});}}function me(_0x14df8f){const _0xfe14ea=_0x14df8f['getAttribute']('listIndent');if(0x0==_0xfe14ea)return _0x14df8f;let _0x1fb1ee=_0x14df8f;for(;_0x14df8f['previousSibling']&&_0x14df8f['previousSibling']['is']('element','listItem');){const _0x337f2c=_0x14df8f['previousSibling']['getAttribute']('listIndent');if(_0x337f2c==_0xfe14ea)_0x1fb1ee=_0x14df8f['previousSibling'];else{if(_0x337f2c<_0xfe14ea)break;}_0x14df8f=_0x14df8f['previousSibling'];}return _0x1fb1ee;}function fe(_0x273ecc){const _0x3ddfa2=[];if(_0x273ecc['is']('element','listItem')&&_0x273ecc['getAttribute']('listIndent')>0x0){let _0x5d01fd=_0x273ecc['nextSibling'];for(;_0x5d01fd&&'listItem'==_0x5d01fd['name']&&_0x5d01fd['getAttribute']('listIndent')==_0x273ecc['getAttribute']('listIndent');)_0x3ddfa2['push'](_0x5d01fd),_0x5d01fd=_0x5d01fd['nextSibling'];}return _0x3ddfa2;}class K extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x42f917=this['editor']['config']['get']('list.properties'),_0x48a4c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x42f917['styles']&&_0x48a4c4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x42f917['reversed']&&_0x48a4c4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x42f917['startIndex']&&_0x48a4c4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48a4c4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cd2f8,_0x1bcb95={}){const _0xcf5147=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3346e2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xcf5147['markMultiRangeBlockFormat'](_0x3346e2,{'commandName':'listStyle','commandParams':[{'type':_0x1bcb95['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x396b54,_0x5d1c13={}){const _0x25e356=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ef6a6=this['_getSuggestionBlocks'](_0x1e895b=>_0x1e895b['is']('element','listItem')&&'numbered'===_0x1e895b['getAttribute']('listType'));if(_0x2ef6a6['length']<0x1)return;const _0x29a2ec=_0x2ef6a6['map'](_0x23f3e8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23f3e8,'before'),this['editor']['model']['createPositionAt'](_0x23f3e8,0x0)));this['editor']['model']['change'](()=>{_0x25e356['markMultiRangeBlockFormat'](_0x29a2ec,{'commandName':'listReversed','commandParams':[{'reversed':_0x5d1c13['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35d3ae,_0x4b0bb5={}){const _0x567009=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39e66d=this['_getSuggestionBlocks'](_0x2fca41=>_0x2fca41['is']('element','listItem')&&'numbered'===_0x2fca41['getAttribute']('listType'));if(_0x39e66d['length']<0x1)return;const _0x46f597=_0x39e66d['map'](_0x4a2cf8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a2cf8,'before'),this['editor']['model']['createPositionAt'](_0x4a2cf8,0x0)));this['editor']['model']['change'](()=>{_0x567009['markMultiRangeBlockFormat'](_0x46f597,{'commandName':'listStart','commandParams':[{'startIndex':_0x4b0bb5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x35ed75){if('formatBlock'!=_0x35ed75['type']&&'formatInline'!=_0x35ed75['type'])return;const _0x47e954=this['editor']['locale'],{data:_0x11c3f1}=_0x35ed75;if(!_0x11c3f1)return;let _0xeb8ca3,_0xeab21c;switch(_0x11c3f1['commandName']){case'listStyle':_0xeb8ca3='*Change\x20to:*\x20%0',_0xeab21c={'type':'format','content':o(_0x47e954,_0xeb8ca3,o(_0x47e954,this['_getTranslationKeyForListStyle'](_0x11c3f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0xeb8ca3=_0x11c3f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xeab21c={'type':'format','content':o(_0x47e954,_0xeb8ca3)};break;case'listStart':_0xeb8ca3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xeab21c={'type':'format','content':o(_0x47e954,_0xeb8ca3,_0x11c3f1['commandParams'][0x0]['startIndex'])};}return _0xeab21c;}['_getSuggestionBlocksForListStyle'](){const _0x4256c9=this['editor']['plugins']['get']('LegacyListUtils');let _0x308e1b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x308e1b[0x0]?.['is']('element','listItem')&&_0x308e1b['unshift'](..._0x4256c9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x308e1b[_0x308e1b['length']-0x1]?.['is']('element','listItem')&&_0x308e1b['push'](..._0x4256c9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x308e1b=[...new Set(_0x308e1b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x308e1b=_0x308e1b['filter'](_0x2d28ac=>_0x2d28ac['is']('element','listItem'))),_0x308e1b;}['_getSuggestionBlocks'](_0x59e517){const _0x4c79b5=this['editor']['plugins']['get']('LegacyListUtils');let _0x55b20f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x59e517)['map'](_0x25e08a=>{const _0x4e8872=this['editor']['model']['createPositionAt'](_0x25e08a,0x0);return[..._0x4c79b5['getSiblingNodes'](_0x4e8872,'backward'),..._0x4c79b5['getSiblingNodes'](_0x4e8872,'forward')];})['flat']();return _0x55b20f=[...new Set(_0x55b20f)],_0x55b20f;}['_getTranslationKeyForListStyle'](_0x5b0c46){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b0c46)||'default')['toUpperCase']()+'_LIST_'+_0x5b0c46['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3b57f6{['afterInit'](){const _0x210681=this['editor'];if(!_0x210681['plugins']['has']('MediaEmbedEditing'))return;const _0x47e98f=_0x210681['plugins']['get']('TrackChangesEditing'),_0x5eb0ef=_0x210681['locale'];_0x47e98f['enableCommand']('mediaEmbed'),_0x47e98f['descriptionFactory']['registerElementLabel']('media',_0x70fbe6=>o(_0x5eb0ef,'ELEMENT_MEDIA',_0x70fbe6)),_0x210681['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fd859,{writer:_0x534e8e,options:_0x7e91c1})=>{if(_0x7e91c1['showSuggestionHighlights'])return _0x534e8e['createEmptyElement']('div');},'converterPriority':'high'}),_0x210681['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26d3ee,_0x3f3502,_0xefb0b8)=>{_0xefb0b8['options']['showSuggestionHighlights']&&_0x26d3ee['stop']();},{'priority':'high'});}}class gt extends _0x3b57f6{['afterInit'](){const _0x58d254=this['editor'];_0x58d254['plugins']['has']('MentionEditing')&&_0x58d254['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3b57f6{['afterInit'](){const _0x3b74e5=this['editor'],_0x364f30=_0x3b74e5['plugins']['get']('TrackChangesEditing');_0x3b74e5['plugins']['has']('MultiLevelList')&&(_0x364f30['enableDefaultAttributesIntegration']('multiLevelList'),_0x364f30['registerBlockAttribute']('listMarkerStyle'),_0x364f30['descriptionFactory']['registerDescriptionCallback'](_0x57dfd6=>this['handleDescriptions'](_0x57dfd6)));}['handleDescriptions'](_0x337138){const _0x1ae9f1=this['editor']['locale'],{data:_0x3d3124}=_0x337138,_0x67592e={'type':'format','content':''};if(_0x3d3124&&'listMarkerStyle'==_0x3d3124['key']){if(!_0x3d3124['oldValue'])return{'type':'format','content':o(_0x1ae9f1,'*Set\x20format:*\x20%0',o(_0x1ae9f1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d3124['newValue']+')'};if(!_0x3d3124['newValue']){let _0x54750d=_0x337138['head'];for(;_0x54750d;){if(_0x54750d['data']&&'listType'==_0x54750d['data']['key']&&_0x54750d['data']['newValue'])return _0x67592e;_0x54750d=_0x54750d['next'];}return{'type':'format','content':o(_0x1ae9f1,'*Remove\x20format:*\x20%0',o(_0x1ae9f1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d3124['oldValue']+')'};}}}}class mt extends _0x3b57f6{['afterInit'](){const _0x394bb3=this['editor'];if(!_0x394bb3['plugins']['has']('PageBreakEditing'))return;_0x394bb3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4d0971=_0x394bb3['plugins']['get']('TrackChangesEditing'),_0x586bcc=_0x394bb3['locale'];_0x4d0971['descriptionFactory']['registerElementLabel']('pageBreak',_0x568a63=>o(_0x586bcc,'ELEMENT_PAGE_BREAK',_0x568a63));}}class dt extends _0x3b57f6{['afterInit'](){const _0x497e8c=this['editor'];if(!_0x497e8c['plugins']['has']('Paragraph'))return;const _0x50abd2=_0x497e8c['locale'],_0x31800e=_0x497e8c['plugins']['get']('TrackChangesEditing');_0x31800e['descriptionFactory']['registerElementLabel']('paragraph',_0x257840=>o(_0x50abd2,'ELEMENT_PARAGRAPH',_0x257840)),_0x31800e['enableDefaultAttributesIntegration']('paragraph'),_0x31800e['enableCommand']('insertParagraph'),_0x497e8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x497e8c),{'priority':'highest'}),_0x497e8c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28be05,_0x3e25b2,_0xe7931b)=>{_0xe7931b['options']['showSuggestionHighlights']&&nr(_0x497e8c,{'showActiveMarker':!0x1})(_0x28be05,_0x3e25b2,_0xe7931b);},{'priority':'highest'});const _0x43d786=_0x31800e['descriptionFactory'];_0x43d786['registerDescriptionCallback'](_0x2bd9fe=>{if('insertion'!==_0x2bd9fe['type'])return;const {start:_0x46a983,end:_0x13f3b7}=_0x2bd9fe['getFirstRange']();if(!_0x46a983['isTouching'](_0x13f3b7)||!_0x46a983['nodeAfter'])return;const _0x47cc5e=_0x497e8c['model']['schema'],_0x462a78=_0x46a983['nodeAfter'];return _0x47cc5e['isBlock'](_0x462a78)&&!_0x47cc5e['isLimit'](_0x462a78)&&_0x47cc5e['checkChild'](_0x462a78,'$text')?{'type':'insertion','content':o(_0x50abd2,'*Insert:*\x20%0',_0x43d786['getItemLabel'](_0x462a78,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c0e77=this['editor'],_0x23a24a=_0x5c0e77['locale'];_0x5c0e77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45a16d=>{if('formatBlock'!=_0x45a16d['type'])return;const {data:_0x54686b}=_0x45a16d;return _0x54686b&&'paragraph'==_0x54686b['commandName']?{'type':'format','content':o(_0x23a24a,'*Change\x20to:*\x20%0',o(_0x23a24a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4efbff,{showActiveMarker:_0x395fb9=!0x0}={}){return(_0x193375,_0x1252c5,_0x10212d)=>{const _0x38afe7=_0x4efbff['plugins']['get']('TrackChangesEditing'),_0xe48cb=_0x1252c5['markerRange']['start'],_0x2aab73=_0x1252c5['markerRange']['end'],_0x1f2c96=_0x4efbff['model']['schema'];if(!_0xe48cb['isTouching'](_0x2aab73)||!_0xe48cb['nodeAfter'])return;const _0x29b564=_0xe48cb['nodeAfter'];if(_0x1f2c96['isBlock'](_0x29b564)&&!_0x1f2c96['isLimit'](_0x29b564)&&_0x1f2c96['checkChild'](_0x29b564,'$text')){if(!_0x10212d['consumable']['consume'](_0x1252c5['markerRange'],_0x193375['name']))return;const _0x555fc3=_0x10212d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2b9d71=_0x10212d['mapper']['toViewPosition'](_0x2aab73);_0x395fb9&&_0x38afe7['activeMarkers']['includes'](_0x1252c5['markerName'])&&_0x10212d['writer']['addClass']('ck-suggestion-marker--active',_0x555fc3),_0x10212d['writer']['insert'](_0x2b9d71,_0x555fc3),_0x10212d['mapper']['bindElementToMarker'](_0x555fc3,_0x1252c5['markerName']);}};}class pt extends _0x3b57f6{['afterInit'](){const _0x14ca76=this['editor'];if(!_0x14ca76['plugins']['has']('RemoveFormatEditing'))return;_0x14ca76['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ab226=this['editor'];_0x1ab226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x183a46=>{if('formatBlock'!=_0x183a46['type']&&'formatInline'!=_0x183a46['type'])return;const {data:_0x31348d}=_0x183a46;return _0x31348d&&'removeFormat'==_0x31348d['commandName']?{'type':'format','content':o(_0x1ab226['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3b57f6{['afterInit'](){const _0x26a426=this['editor'];if(!_0x26a426['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d4e5c=_0x26a426['plugins']['get']('TrackChangesEditing');_0x4d4e5c['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d4e5c['enableCommand']('goToNextRestrictedEditingException');const _0x82b95f=_0x26a426['plugins']['get']('RestrictedEditingModeEditing');_0x82b95f['enableCommand']('trackChanges'),_0x82b95f['enableCommand']('acceptSuggestion'),_0x82b95f['enableCommand']('discardSuggestion'),_0x82b95f['enableCommand']('acceptAllSuggestions'),_0x82b95f['enableCommand']('discardAllSuggestions'),_0x82b95f['enableCommand']('acceptSelectedSuggestions'),_0x82b95f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3b57f6{static get['requires'](){return[_0x152eab];}['init'](){const _0x3fa331=this['editor'],_0x53d028=_0x3fa331['plugins']['get']('TrackChangesEditing');_0x53d028['enableCommand']('shiftEnter'),_0x3fa331['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3fa331),{'priority':'high'}),_0x3fa331['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3fa331),{'priority':'high'}),_0x3fa331['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x12c13a,_0x506834,_0x279697)=>{_0x279697['options']['showSuggestionHighlights']&&de(_0x3fa331,{'showActiveMarker':!0x1})(_0x12c13a,_0x506834,_0x279697);}),_0x53d028['descriptionFactory']['registerElementLabel']('softBreak',_0x13b7a0=>o(_0x3fa331['locale'],'ELEMENT_LINE_BREAK',_0x13b7a0));}}function de(_0x3d0e00,{showActiveMarker:_0x542d75=!0x0}={}){return(_0x22e9bd,_0x22e86e,_0x5cee3d)=>{const _0x5cb31f=_0x3d0e00['plugins']['get']('TrackChangesEditing');if(!_0x5cee3d['consumable']['test'](_0x22e86e['markerRange'],_0x22e9bd['name']))return;const _0x513104=_0x3d0e00['model'];for(const _0x276861 of _0x22e86e['markerRange']['getItems']()){if(!_0x276861['is']('element','softBreak'))continue;const _0x1c5f65='deletion'==_0x22e86e['markerName']['split'](':')[0x1]?'merge':'split',_0x212129=_0x5cee3d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c5f65}),_0x58001d=_0x5cee3d['mapper']['toViewPosition'](_0x513104['createPositionBefore'](_0x276861));_0x542d75&&_0x5cb31f['activeMarkers']['includes'](_0x22e86e['markerName'])&&_0x5cee3d['writer']['addClass']('ck-suggestion-marker--active',_0x212129),_0x5cee3d['writer']['insert'](_0x58001d,_0x212129),_0x5cee3d['mapper']['bindElementToMarker'](_0x212129,_0x22e86e['markerName']);}};}class wt extends _0x3b57f6{['afterInit'](){const _0x36d48e=this['editor'],_0x1221a2=_0x36d48e['model'],_0x37e5db=_0x36d48e['locale'];if(!_0x36d48e['plugins']['has']('StandardEditingModeEditing'))return;const _0x2604e3=_0x36d48e['plugins']['get']('TrackChangesEditing'),_0x43ca1d='restrictedEditingException',_0x3fc5b3=_0x36d48e['commands']['get'](_0x43ca1d);_0x2604e3['enableCommand'](_0x43ca1d,(_0x1dbd76,_0x5ebd3e={})=>{const _0x19b554=_0x1221a2['document']['selection'];if(_0x19b554['isCollapsed'])return void _0x1dbd76(_0x5ebd3e);const _0x40a66e=void 0x0!==_0x5ebd3e['forceValue']?_0x5ebd3e['forceValue']:!_0x3fc5b3['value'];_0x1221a2['change'](()=>{const _0x5d94ed=Array['from'](_0x19b554['getRanges']());for(const _0x3b8e1b of _0x5d94ed){const _0x1d6c05=_0x40a66e?[_0x3b8e1b]:io(_0x43ca1d,_0x3b8e1b,_0x1221a2);for(const _0x362a69 of _0x1d6c05)_0x2604e3['markInlineFormat'](_0x362a69,{'commandName':_0x43ca1d,'commandParams':[{'forceValue':_0x40a66e}]});}});}),_0x2604e3['descriptionFactory']['registerDescriptionCallback'](_0x176ce1=>{if('formatBlock'!=_0x176ce1['type']&&'formatInline'!=_0x176ce1['type'])return;const {data:_0x3575cd}=_0x176ce1;return _0x3575cd&&_0x3575cd['commandName']==_0x43ca1d?_0x3575cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37e5db,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x37e5db,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3b57f6{['afterInit'](){const _0x4e82ca=this['editor'];if(!_0x4e82ca['plugins']['has']('Style')||!_0x4e82ca['plugins']['has']('DataSchema'))return;const _0x39fa3a=_0x4e82ca['plugins']['get']('TrackChangesEditing'),_0x36e879=_0x4e82ca['locale'],_0x399de7=_0x4e82ca['config']['get']('style')||{},_0x54564d=_0x4e82ca['plugins']['get']('GeneralHtmlSupport'),_0x37731f=_0x4e82ca['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4e82ca['plugins']['get']('DataSchema'),_0x399de7['definitions']);_0x39fa3a['enableDefaultAttributesIntegration']('style');const _0x3899ee=new Set();for(const _0x5accec of _0x37731f['block']){const _0x28aa78=_0x54564d['getGhsAttributeNameForElement'](_0x5accec['element']);_0x3899ee['add'](_0x28aa78);}const _0x49de78=new Set();for(const _0x50c085 of _0x37731f['inline']){const _0x1686f2=_0x54564d['getGhsAttributeNameForElement'](_0x50c085['element']);_0x49de78['add'](_0x1686f2);for(const _0x247bc5 of _0x50c085['ghsAttributes'])_0x49de78['add'](_0x247bc5);}for(const _0x2864ca of _0x3899ee)_0x39fa3a['registerBlockAttribute'](_0x2864ca),_0x39fa3a['descriptionFactory']['registerAttributeLabel'](_0x2864ca,o(_0x36e879,'FORMAT_STYLE'));for(const _0x13f4b0 of _0x49de78)_0x39fa3a['registerInlineAttribute'](_0x13f4b0),_0x39fa3a['descriptionFactory']['registerAttributeLabel'](_0x13f4b0,o(_0x36e879,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x525895=this['editor'],_0x3517a3=_0x525895['locale'];_0x525895['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x459b68=>{if('formatBlock'!=_0x459b68['type']&&'formatInline'!=_0x459b68['type'])return;const {data:_0x254cf0}=_0x459b68;return _0x254cf0&&'style'===_0x254cf0['commandName']?_0x254cf0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3517a3,'*Set\x20format:*\x20%0',_0x254cf0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3517a3,'*Remove\x20format:*\x20%0',_0x254cf0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3b57f6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x220df8){super(_0x220df8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4c1929=this['editor'],_0x1f6e60=_0x4c1929['model']['document']['selection'];if(!_0x4c1929['plugins']['has']('TableEditing'))return;const _0x492381=_0x4c1929['locale'],_0x211ffa=_0x4c1929['plugins']['get']('TrackChangesEditing'),_0x3becdb=_0x4c1929['plugins']['get']('TableUtils');_0x211ffa['descriptionFactory']['registerElementLabel']('table',_0x18560f=>o(_0x492381,'ELEMENT_TABLE',_0x18560f)),this['_setupColumnsRowsFixing'](),_0x211ffa['enableCommand']('insertTable'),_0x211ffa['enableCommand']('selectTableRow'),_0x211ffa['enableCommand']('selectTableColumn');for(const _0x2ed614 of['insertTableRowAbove','insertTableRowBelow']){const _0x35ed87=_0x4c1929['commands']['get'](_0x2ed614);_0x211ffa['enableCommand'](_0x2ed614,_0x1fd945=>{_0x4c1929['model']['change'](_0x5d23f7=>{_0x1fd945();const _0x1c9789='above'===_0x35ed87['order'],_0x11ccc7=_0x3becdb['getSelectionAffectedTableCells'](_0x1f6e60),_0x32b66a=_0x3becdb['getRowIndexes'](_0x11ccc7),_0x27472b=_0x1c9789?_0x32b66a['first']-0x1:_0x32b66a['last']+0x1,_0x5c65d6=_0x11ccc7[0x0]['findAncestor']('table'),_0x55490b=_0x3becdb['createTableWalker'](_0x5c65d6,{'startRow':_0x27472b,'endRow':_0x27472b}),_0x5cb612=Array['from'](_0x55490b)['map'](_0x46050e=>_0x5d23f7['createRangeOn'](_0x46050e['cell']));_0x211ffa['markMultiRangeInsertion'](_0x5cb612,'tableRow');});});}for(const _0x41bd8e of['insertTableColumnLeft','insertTableColumnRight']){const _0x6c8ca8=_0x4c1929['commands']['get'](_0x41bd8e);_0x211ffa['enableCommand'](_0x41bd8e,_0x12d244=>{_0x4c1929['model']['change'](_0x1b9ac0=>{_0x12d244();const _0xb87e7d='left'===_0x6c8ca8['order'],_0x3c1aaa=_0x3becdb['getSelectionAffectedTableCells'](_0x1f6e60),_0x165add=_0x3becdb['getColumnIndexes'](_0x3c1aaa),_0x47a520=_0xb87e7d?_0x165add['first']-0x1:_0x165add['last']+0x1,_0x498c9f=_0x3c1aaa[0x0]['findAncestor']('table'),_0x1841fb=_0x3becdb['createTableWalker'](_0x498c9f,{'startRow':0x0,'column':_0x47a520,'includeAllSlots':!0x1}),_0x3620eb=Array['from'](_0x1841fb)['map'](_0x1e47eb=>_0x1b9ac0['createRangeOn'](_0x1e47eb['cell']));_0x211ffa['markMultiRangeInsertion'](_0x3620eb,'tableColumn');});});}for(const _0x34b6b8 of['removeTableRow','removeTableColumn']){const _0x319945=_0x34b6b8['substr'](0xb),_0x4ba7f6=_0x319945['toLowerCase'](),_0x499485=_0x4ba7f6['substr'](0x0,0x3)+'span',_0x2d31bd='table'+_0x319945,_0x5986cd='min'+_0x319945,_0x30b2f3='max'+_0x319945;_0x211ffa['enableCommand'](_0x34b6b8,()=>{_0x4c1929['model']['change'](_0x3d1f4d=>{const _0x1f0a28=_0x3becdb['getSelectionAffectedTableCells'](_0x1f6e60),_0xe86e02=_0x1f0a28[0x0]['findAncestor']('table');let _0x3019e2;if('removeTableRow'==_0x34b6b8){const _0x32fd83=_0x3becdb['getRowIndexes'](_0x1f0a28);_0x3019e2={'startRow':_0x32fd83['first'],'endRow':_0x32fd83['last'],'includeAllSlots':!0x0};}else{const _0x25dc56=_0x3becdb['getColumnIndexes'](_0x1f0a28);_0x3019e2={'startColumn':_0x25dc56['first'],'endColumn':_0x25dc56['last'],'includeAllSlots':!0x0};}const _0x5bd40c=_0x3becdb['createTableWalker'](_0xe86e02,_0x3019e2),_0x5b9933=Array['from'](_0x5bd40c)['map'](({cell:_0x1ba6f5})=>_0x1ba6f5),_0x14ade2=Ee(_0x5b9933['filter'](_0x57d6f1=>_0x57d6f1['hasAttribute'](_0x499485))),_0x5cb78b=Ee(_0x5b9933['filter'](_0x5bfa44=>!_0x5bfa44['hasAttribute'](_0x499485)))['map'](_0x430b4b=>_0x3d1f4d['createRangeOn'](_0x430b4b)),_0x8bfbd5=_0x211ffa['markMultiRangeDeletion'](_0x5cb78b,_0x2d31bd);if(_0x8bfbd5&&('tableRow'==_0x8bfbd5['subType']||'tableColumn'==_0x8bfbd5['subType'])){const _0x568124=this['_getSuggestionCoords'](_0x8bfbd5);for(const _0x5beded of _0x14ade2){const _0x35bfab=_0x3d1f4d['createRangeOn'](_0x5beded),_0x56776a=_0x3becdb['getCellLocation'](_0x5beded),_0x3533a8=_0x5beded['getAttribute'](_0x499485)-0x1,_0x34acc9=_0x568124[_0x5986cd],_0x20dc53=_0x568124[_0x30b2f3];_0x34acc9<=_0x56776a[_0x4ba7f6]&&_0x56776a[_0x4ba7f6]+_0x3533a8<=_0x20dc53&&_0x8bfbd5['addRange'](_0x35bfab);}}});});}function _0x5ab567(_0x54b49b){const _0x963b1f=Array['from'](_0x1f6e60['getRanges']())['map'](_0x3c46c5=>_0x2e923c['fromRange'](_0x3c46c5));_0x4c1929['model']['change'](_0x5a8fb7=>{const _0x3847fb=_0x5a8fb7['batch'];_0x54b49b=_0x54b49b['filter'](_0x5f4036=>'$graveyard'!=_0x5f4036['root']['rootName']),_0x5a8fb7['setSelection'](_0x54b49b),_0x4c1929['commands']['get']('removeTableRow')['refresh'](),_0x4c1929['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4c1929['model']['enqueueChange'](()=>{_0x4c1929['model']['enqueueChange'](_0x3847fb,_0x4dda8b=>{const _0x2edb21=_0x963b1f['filter'](_0x255615=>'$graveyard'!=_0x255615['root']['rootName']);_0x2edb21['length']>0x0&&_0x4dda8b['setSelection'](_0x2edb21);for(const _0x5a8f33 of _0x963b1f)_0x5a8f33['detach']();});});});}function _0x41577a(_0x66911){_0x4c1929['model']['change'](_0x22f121=>{const _0x1b8ae0=Array['from'](_0x1f6e60['getRanges']())['map'](_0x4512f6=>_0x2e923c['fromRange'](_0x4512f6)),_0x53424e=[];for(const _0x10a745 of _0x66911)for(const _0x6abc0b of _0x10a745['getItems']({'shallow':!0x0}))_0x53424e['push'](_0x6abc0b);for(const _0x782be7 of _0x53424e)'$graveyard'!=_0x782be7['root']['rootName']&&(_0x22f121['setSelection'](_0x22f121['createPositionAt'](_0x782be7,0x0)),_0x4c1929['commands']['get']('removeTableColumn')['refresh'](),_0x4c1929['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23728f=_0x1b8ae0['filter'](_0x3f1d83=>'$graveyard'!=_0x3f1d83['root']['rootName']);_0x23728f['length']>0x0&&_0x22f121['setSelection'](_0x23728f);for(const _0x3ce14a of _0x1b8ae0)_0x3ce14a['detach']();});}function _0x339ba6(_0xd469d6,_0x50f082){return _0x50f082['every'](_0x426738=>_0xd469d6['some'](_0x50866c=>_0x50866c['end']['isEqual'](_0x426738['start'])||_0x426738['end']['isEqual'](_0x50866c['start'])));}function _0x8a740a(_0x3a266e,_0x2e9c21){return!_0x3a266e['some'](_0x2db0a6=>_0x2e9c21['some'](_0x5ba5fd=>_0x2db0a6['isIntersecting'](_0x5ba5fd)))&&_0x3a266e['some'](_0x5dff28=>_0x2e9c21['some'](_0x7bbda9=>_0x5dff28['end']['isTouching'](_0x7bbda9['start'])));}_0x4c1929['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb90b0f,_0x3d9f8e,_0x4acbb3)=>{if(!_0x4acbb3['options']['showSuggestionHighlights'])return;const _0x12e10d=_0x3d9f8e['item'];if(!_0x12e10d)return;const _0xd25ada=_0x4acbb3['mapper']['toViewElement'](_0x12e10d);function _0x56b568(_0x436d25){return Array['isArray'](_0x436d25)?_0x436d25:[_0x436d25];}_0xd25ada&&'tableCell'===_0x12e10d['name']&&_0x588271(_0xd25ada,_0x4acbb3['writer'],(_0x594e8e,_0x25253e,_0x3c11f5)=>_0x3c11f5['addClass'](_0x56b568(_0x25253e['classes']),_0x594e8e),(_0x3c6241,_0x529473,_0x552cc2)=>_0x552cc2['removeClass'](_0x56b568(_0x529473['classes']),_0x3c6241));},{'priority':'highest'}),_0x211ffa['descriptionFactory']['registerDescriptionCallback'](_0x32f302=>{if('insertion'!=_0x32f302['type']&&'deletion'!=_0x32f302['type'])return;const _0x4b0a41=_0x32f302['getContainedElement']();if(null!=_0x4b0a41&&_0x4b0a41['is']('element','table')){if('insertion'==_0x32f302['type']){const _0x1d1140=_0x32f302['getItems']()['filter'](_0x3cf705=>_0x3cf705['is']('$textProxy'))['map'](_0x5c8bcc=>_0x5c8bcc['data']);if(_0x1d1140['length'])return{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d1140['join']('\x20')+'\x22'))};}if('deletion'==_0x32f302['type']){const _0x51d6af=_0x32f302['getItems']()['filter'](_0x5cf78c=>_0x5cf78c['is']('$textProxy'))['map'](_0x3368a4=>_0x3368a4['data']);if(_0x51d6af['length'])return{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51d6af['join']('\x20')+'\x22'))};}}}),_0x211ffa['descriptionFactory']['registerDescriptionCallback'](_0x14ec4f=>{if('tableRow'==_0x14ec4f['subType']){const _0x19c3da=_0x14ec4f['getItems']()['filter'](_0x57df33=>_0x57df33['is']('$textProxy'))['map'](_0x3e2727=>_0x3e2727['data']),_0xd25e10=this['_getSuggestionCoords'](_0x14ec4f),_0x284bc8=_0xd25e10['maxRow']-_0xd25e10['minRow']+0x1;if('insertion'==_0x14ec4f['type'])return _0x19c3da['length']?{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x284bc8,'\x22'+_0x19c3da['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW',_0x284bc8))};if('deletion'==_0x14ec4f['type'])return _0x19c3da['length']?{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x284bc8,'\x22'+_0x19c3da['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW',_0x284bc8))};}if('tableColumn'==_0x14ec4f['subType']){const _0x35ce05=_0x14ec4f['getItems']()['filter'](_0x5a2e05=>_0x5a2e05['is']('$textProxy'))['map'](_0x2dd7c2=>_0x2dd7c2['data']),_0x52be69=this['_getSuggestionCoords'](_0x14ec4f),_0x23c206=_0x52be69['maxColumn']-_0x52be69['minColumn']+0x1;if('insertion'==_0x14ec4f['type'])return _0x35ce05['length']?{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23c206,'\x22'+_0x35ce05['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN',_0x23c206))};if('deletion'==_0x14ec4f['type'])return _0x35ce05['length']?{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23c206,'\x22'+_0x35ce05['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN',_0x23c206))};}}),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ab567),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ab567),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x41577a),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x41577a),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x339ba6),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x339ba6),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8a740a),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8a740a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1519d=this['editor'],_0x578f2b=_0x1519d['model']['document']['selection'];return(_0x58ebbd,_0x17d8f2)=>{_0x1519d['model']['change'](_0x1c4711=>{const {commandName:_0x15ae44,commandParams:_0x118bee}=_0x17d8f2;let _0x162c0b=_0x58ebbd[0x0]['end']['nodeBefore'];_0x118bee&&_0x118bee[0x0]&&!0x1===_0x118bee[0x0]['forceValue']&&(_0x162c0b=_0x58ebbd[0x0]['start']['nodeAfter']);const _0x384160=_0x1c4711['createRangeIn'](_0x162c0b);if('$graveyard'==_0x384160['root']['rootName'])return;const _0x457dae=Array['from'](_0x578f2b['getRanges']())['map'](_0x257dbb=>_0x2e923c['fromRange'](_0x257dbb));_0x1c4711['setSelection'](_0x384160),_0x1519d['commands']['get'](_0x15ae44)['refresh'](),_0x118bee['push']({'forceDefaultExecution':!0x0}),_0x1519d['execute'](_0x15ae44,..._0x118bee);const _0x2d14ff=_0x457dae['filter'](_0x185d6=>'$graveyard'!=_0x185d6['root']['rootName']);_0x2d14ff['length']>0x0&&_0x1c4711['setSelection'](_0x2d14ff);for(const _0x16eca5 of _0x457dae)_0x16eca5['detach']();});};}['_getCoordsForCells'](_0x75405e){const _0x57f17d=this['editor']['plugins']['get']('TableUtils');let _0x17bf27=Number['MAX_SAFE_INTEGER'],_0x20f5c6=Number['MIN_SAFE_INTEGER'],_0x1b99db=Number['MAX_SAFE_INTEGER'],_0x17a692=Number['MIN_SAFE_INTEGER'];for(const _0x3cbfc4 of _0x75405e){if('$graveyard'==_0x3cbfc4['root']['rootName'])continue;const {row:_0x5dcc39,column:_0x2a8152}=_0x57f17d['getCellLocation'](_0x3cbfc4),_0x26c7d9=_0x3cbfc4['hasAttribute']('rowspan')?_0x3cbfc4['getAttribute']('rowspan')-0x1:0x0,_0x314ac4=_0x3cbfc4['hasAttribute']('colspan')?_0x3cbfc4['getAttribute']('colspan')-0x1:0x0;_0x17bf27=_0x5dcc39<_0x17bf27?_0x5dcc39:_0x17bf27,_0x20f5c6=_0x5dcc39+_0x26c7d9>_0x20f5c6?_0x5dcc39+_0x26c7d9:_0x20f5c6,_0x1b99db=_0x2a8152<_0x1b99db?_0x2a8152:_0x1b99db,_0x17a692=_0x2a8152+_0x314ac4>_0x17a692?_0x2a8152+_0x314ac4:_0x17a692;}return{'minRow':_0x17bf27,'maxRow':_0x20f5c6,'minColumn':_0x1b99db,'maxColumn':_0x17a692};}['_setupColumnsRowsFixing'](){const _0x150789=this['editor'],_0xa77ed8=_0x150789['plugins']['get']('TrackChangesEditing'),_0x59454e=_0x150789['plugins']['get']('TableUtils');_0x150789['model']['document']['on']('change:data',()=>{const _0xba035c=Array['from'](_0x150789['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ac356,data:_0x13a2b2}of _0xba035c){const {group:_0xea9634,id:_0x489efe,subType:_0x3d2041}=_0xa77ed8['_splitMarkerName'](_0x4ac356);if('suggestion'!=_0xea9634)continue;if(null!=_0x13a2b2['oldRange'])continue;const _0xad5d1f=_0xa77ed8['getSuggestion'](_0x489efe);this['_tablePostFixingSubtypes']['includes'](_0x3d2041)&&this['_tableSuggestions']['add'](_0xad5d1f);}},{'priority':'low'});const _0x2cf091=(_0x580b7b,_0x78bb4e)=>{let _0x33ba52=!0x1;const _0x170375=_0x78bb4e['createRangeOn'](_0x580b7b),_0x19e4eb=_0x580b7b['findAncestor']('table'),_0x4cf86f=_0x59454e['getCellLocation'](_0x580b7b);for(const _0x5aab53 of this['_tableSuggestions']){const _0x534f6d=_0x5aab53['subType'],_0x2f2517=_0x534f6d['startsWith']('tablePaste'),_0x33d753=_0x534f6d['substr'](_0x2f2517?0xa:0x5),_0xc22e03=_0x33d753['toLowerCase'](),_0x1ee32e=_0xc22e03['substr'](0x0,0x3)+'span',_0x541391='min'+_0x33d753,_0xc0e80a='max'+_0x33d753;if(!_0x5aab53['isInContent'])continue;if(_0x19e4eb!=_0x5aab53['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5aab53['isIntersectingWithRange'](_0x170375))continue;const _0x432cba=_0x580b7b['hasAttribute'](_0x1ee32e)?_0x580b7b['getAttribute'](_0x1ee32e)-0x1:0x0,_0x4ccbb9=this['_getSuggestionCoords'](_0x5aab53),_0x3ca6f0=_0x4ccbb9[_0x541391],_0xeb7fcb=_0x4ccbb9[_0xc0e80a];_0x3ca6f0<=_0x4cf86f[_0xc22e03]&&_0x4cf86f[_0xc22e03]+_0x432cba<=_0xeb7fcb&&(_0x5aab53['addRange'](_0x170375),_0x33ba52=!0x0);}return _0x33ba52;};_0x150789['model']['document']['registerPostFixer'](_0x3e1da4=>{let _0x15b0f8=!0x1;for(const _0x1bb71f of _0x150789['model']['document']['differ']['getChanges']())if('insert'==_0x1bb71f['type']){if('tableRow'==_0x1bb71f['name']){for(const _0x2c9d57 of _0x1bb71f['position']['nodeAfter']['getChildren']())_0x15b0f8=_0x15b0f8||_0x2cf091(_0x2c9d57,_0x3e1da4);}else'tableCell'==_0x1bb71f['name']&&(_0x15b0f8=_0x15b0f8||_0x2cf091(_0x1bb71f['position']['nodeAfter'],_0x3e1da4));}return _0x15b0f8;});}['_getSuggestionCoords'](_0x10babd){return this['_getCoordsForCells'](_0x10babd['getRanges']()['map'](_0x40eebe=>_0x40eebe['start']['nodeAfter']));}}function Ee(_0x20fef3){return Array['from'](new Set(_0x20fef3)['values']());}class St extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0x3d02a4=this['editor'],_0x10f5bd=_0x3d02a4['model']['document']['selection'],_0xce5be1=_0x3d02a4['locale'];if(!_0x3d02a4['plugins']['has']('TableEditing'))return;const _0xecf2cd=_0x3d02a4['plugins']['get']('TrackChangesEditing'),_0x549fd4=_0x3d02a4['plugins']['get']('TableUtils'),_0x2767ed=_0x3d02a4['plugins']['get'](jt);_0x2767ed['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xecf2cd['enableCommand']('mergeTableCells',()=>{const _0x1282ce=_0x549fd4['getSelectionAffectedTableCells'](_0x3d02a4['model']['document']['selection']);_0x3d02a4['model']['change'](()=>{_0xecf2cd['markMultiRangeBlockFormat'](_0x1282ce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3d02a4['commands']['get']('mergeTableCells')['on']('execute',(_0x4bbf0e,_0x2fe77d)=>{_0x3d02a4['commands']['get']('trackChanges')['value']&&(_0x2fe77d['length']>0x0&&_0x2fe77d[_0x2fe77d['length']-0x1]&&_0x2fe77d[_0x2fe77d['length']-0x1]['forceDefaultExecution']||_0xecf2cd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4bbf0e['stop']());},{'priority':'highest'});for(const _0x1234e9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x147ad5=_0x3d02a4['commands']['get'](_0x1234e9);_0xecf2cd['enableCommand'](_0x1234e9,()=>{const _0x49c100=_0x3d02a4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59a8a1=>_0x59a8a1['is']('element','tableCell')),_0x33541b=_0x147ad5['value'];_0x3d02a4['model']['change'](()=>{_0xecf2cd['markMultiRangeBlockFormat']([_0x49c100,_0x33541b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x757010 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5de317=_0x3d02a4['commands']['get'](_0x757010);_0xecf2cd['enableCommand'](_0x757010,()=>{const _0x16dabb=_0x549fd4['getSelectionAffectedTableCells'](_0x3d02a4['model']['document']['selection'])[0x0],_0x45bc84=_0x16dabb['findAncestor']('table'),{column:_0x1e4bbc,row:_0x53d5e4}=_0x549fd4['getCellLocation'](_0x16dabb);let _0x466945=[];if('horizontally'==_0x5de317['direction']){const _0x43b145=_0x549fd4['createTableWalker'](_0x45bc84,{'startRow':_0x53d5e4,'endRow':_0x53d5e4,'includeAllSlots':!0x0});_0x466945=Array['from'](_0x43b145)['map'](_0x36b047=>_0x36b047['cell']);}else{const _0x8dbd47=_0x549fd4['createTableWalker'](_0x45bc84,{'column':_0x1e4bbc,'includeAllSlots':!0x0});_0x466945=Array['from'](_0x8dbd47)['map'](_0x383d79=>_0x383d79['cell']);}_0x3d02a4['model']['change'](_0xda0552=>{_0xecf2cd['markBlockFormat'](_0xda0552['createRangeOn'](_0x16dabb),{'commandName':_0x757010,'commandParams':[]},_0x466945,_0x757010);});});}_0xecf2cd['descriptionFactory']['registerDescriptionCallback'](_0x11ca51=>{if('formatBlock'!=_0x11ca51['type']&&'formatInline'!=_0x11ca51['type'])return;const {data:_0x2cf9ff}=_0x11ca51;return _0x2cf9ff&&'mergeTableCells'==_0x2cf9ff['commandName']?{'type':'format','content':o(_0xce5be1,'*Merge\x20cells*')}:void 0x0;}),_0xecf2cd['descriptionFactory']['registerDescriptionCallback'](_0x44ccd3=>{if('formatBlock'!=_0x44ccd3['type']&&'formatInline'!=_0x44ccd3['type'])return;const {data:_0x9350a}=_0x44ccd3;return _0x9350a?'splitTableCellVertically'==_0x9350a['commandName']?{'type':'format','content':o(_0xce5be1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x9350a['commandName']?{'type':'format','content':o(_0xce5be1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e2109=_0x2767ed['_acceptFormatSuggestionCallbackFactory']();for(const _0x45d1b4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xecf2cd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45d1b4,'accept',_0x3e2109);for(const _0xb46478 of['splitTableCellVertically','splitTableCellHorizontally'])_0xecf2cd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb46478,'accept',_0x3e2109);_0xecf2cd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13ccbf=>{_0x3d02a4['model']['change'](_0x1c2b6d=>{const _0x33b354=Array['from'](_0x10f5bd['getRanges']())['map'](_0x40d1e9=>_0x2e923c['fromRange'](_0x40d1e9));_0x1c2b6d['setSelection'](_0x13ccbf),_0x3d02a4['commands']['get']('mergeTableCells')['refresh'](),_0x3d02a4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xf1a56f=_0x33b354['filter'](_0xca1250=>'$graveyard'!=_0xca1250['root']['rootName']);_0xf1a56f['length']>0x0&&_0x1c2b6d['setSelection'](_0xf1a56f);for(const _0x6aa996 of _0x33b354)_0x6aa996['detach']();});});for(const _0x23e0eb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x319a87=_0x3d02a4['commands']['get'](_0x23e0eb);_0x319a87['on']('set:isEnabled',(_0x3d5603,_0x259901,_0x3e1c10)=>{if(_0x3e1c10){const _0x35f9dd=_0x3d02a4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bb50d=>_0x3bb50d['is']('element','tableCell'));this['_areMergableCells'](_0x319a87['value'],_0x35f9dd)||(_0x3d5603['return']=!0x1,_0x3d5603['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x372b39=this['editor']['commands']['get']('mergeTableCells'),_0x572075=this['editor']['plugins']['get']('TableUtils');if(!_0x372b39['isEnabled'])return!0x1;const _0x2d997d=_0x572075['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x976d5b of _0x2d997d)for(const _0xda3ef2 of _0x2d997d)if(_0x976d5b!=_0xda3ef2&&!this['_areMergableCells'](_0x976d5b,_0xda3ef2))return!0x1;return!0x0;}['_areMergableCells'](_0x17559e,_0x5657b4){const _0x37c7f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46977b=this['editor']['model']['createRangeOn'](_0x17559e),_0x88e321=this['editor']['model']['createRangeOn'](_0x5657b4),_0x5ae088=new Set(),_0x4b7188=new Set();for(const _0x3420a0 of _0x37c7f0['getSuggestions']())if(('insertion'==_0x3420a0['type']||'deletion'==_0x3420a0['type']||'mergeTableCells'==_0x3420a0['subType'])&&_0x3420a0['isInContent']){for(const _0x34e9ee of _0x3420a0['getRanges']())_0x34e9ee['containsRange'](_0x46977b,!0x0)&&_0x5ae088['add'](_0x3420a0['type']+':'+_0x3420a0['author']['id']),_0x34e9ee['containsRange'](_0x88e321,!0x0)&&_0x4b7188['add'](_0x3420a0['type']+':'+_0x3420a0['author']['id']);}if(_0x5ae088['size']!=_0x4b7188['size'])return!0x1;for(const _0x377810 of _0x5ae088)if(!_0x4b7188['has'](_0x377810))return!0x1;return!0x0;}}class At extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0xe14c4f=this['editor'];if(!_0xe14c4f['plugins']['has']('TableEditing'))return;const _0x1dec7e=_0xe14c4f['locale'],_0x4cc2b9=_0xe14c4f['plugins']['get']('TrackChangesEditing');_0x4cc2b9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4cc2b9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4cc2b9['registerBlockAttribute']('headingRows'),_0x4cc2b9['registerBlockAttribute']('headingColumns'),_0x4cc2b9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1dec7e,'FORMAT_HEADER_ROW')),_0x4cc2b9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1dec7e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x6d4720=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3de53b=this['editor']['plugins']['get']('TableUtils'),_0x3375ee=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3aba86({showActiveMarker:_0x2d8a4b=!0x0,setDataAttribute:_0x4b9a9c=!0x0}={}){return(_0x3a616d,_0x2f28f8,_0x4de8e6)=>{const {type:_0x2c9b4c,id:_0x3cbcbe}=_0x6d4720['_splitMarkerName'](_0x2f28f8['markerName']),_0xbccc68=_0x6d4720['getSuggestion'](_0x3cbcbe),_0x1a5db5=_0xbccc68['data'];if('formatBlock'!=_0xbccc68['type']||!_0x1a5db5||'setTableColumnHeader'!=_0x1a5db5['commandName'])return;if(_0x2f28f8['item'])return void _0x3a616d['stop']();if(!_0x4de8e6['consumable']['consume'](_0x2f28f8['markerRange'],_0x3a616d['name']))return;const _0xc28fd2=_0x2f28f8['markerRange']['start']['nodeAfter'],_0x1a1438=_0x2f28f8['markerRange']['end']['nodeBefore'],_0x8ba571=_0xc28fd2['parent']['parent'],{column:_0x512c87}=_0x3de53b['getCellLocation'](_0xc28fd2),{column:_0x37debc}=_0x3de53b['getCellLocation'](_0x1a1438);for(let _0x45cb9d=_0x512c87;_0x45cb9d<=_0x37debc;_0x45cb9d++){const _0x5647e8=_0x3de53b['createTableWalker'](_0x8ba571,{'column':_0x45cb9d,'includeAllSlots':!0x1});for(const _0x489d31 of _0x5647e8){const _0x332867=_0x489d31['cell'],_0x485f6d=_0x4de8e6['mapper']['toViewElement'](_0x332867);_0x4de8e6['writer']['addClass']('ck-suggestion-marker-'+_0x2c9b4c,_0x485f6d),_0x4b9a9c&&_0x4de8e6['writer']['setAttribute']('data-suggestion',_0x3cbcbe,_0x485f6d),_0x4de8e6['mapper']['bindElementToMarker'](_0x485f6d,_0x2f28f8['markerName']),_0x2d8a4b&&(_0x6d4720['activeMarkers']['includes'](_0x2f28f8['markerName'])?_0x4de8e6['writer']['addClass']('ck-suggestion-marker--active',_0x485f6d):_0x4de8e6['writer']['removeClass']('ck-suggestion-marker--active',_0x485f6d));}}};}_0x6d4720['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3375ee),_0x6d4720['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3375ee),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3aba86(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15df23,_0x5bb6a1,_0x4f6266)=>{_0x4f6266['options']['showSuggestionHighlights']&&_0x3aba86({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x15df23,_0x5bb6a1,_0x4f6266);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x221026,_0x16c54d,_0x15071f)=>{const {type:_0x256fb8,id:_0x5aca3a}=_0x6d4720['_splitMarkerName'](_0x16c54d['markerName']),_0xf45640=_0x6d4720['getSuggestion'](_0x5aca3a),_0x3df9f6=_0xf45640['data'];if('formatBlock'!=_0xf45640['type']||!_0x3df9f6||'setTableColumnHeader'!=_0x3df9f6['commandName'])return;const _0x26884d=_0x15071f['mapper']['markerNameToElements'](_0x16c54d['markerName']);if(_0x26884d){for(const _0x5849ce of _0x26884d)_0x15071f['writer']['removeClass']('ck-suggestion-marker-'+_0x256fb8,_0x5849ce),_0x15071f['writer']['removeClass']('ck-suggestion-marker--active',_0x5849ce),_0x15071f['writer']['removeAttribute']('data-suggestion',_0x5849ce),_0x15071f['mapper']['unbindElementFromMarkerName'](_0x5849ce,_0x16c54d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x233076=this['editor'],_0x575102=_0x233076['locale'];function _0xf52a9e(_0x45262a){return{'type':'format','content':o(_0x575102,'*Format:*\x20%0',_0x45262a)};}_0x233076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x515073=>{if('formatBlock'!=_0x515073['type'])return;const {data:_0x293e61}=_0x515073;if(_0x293e61){if('setTableRowHeader'==_0x293e61['commandName']){const _0x254f02=_0x293e61['commandParams'][0x0]['forceValue'];return _0xf52a9e(o(_0x575102,_0x254f02?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x293e61['commandName']){const _0x2b1788=_0x293e61['commandParams'][0x0]['forceValue'];return _0xf52a9e(o(_0x575102,_0x2b1788?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x37bf5a=>[_0x37bf5a,null]));class It extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0x19777a=this['editor'];if(!_0x19777a['plugins']['has']('TableClipboard'))return;const _0x5e35b2=_0x19777a['plugins']['get']('TrackChangesEditing'),_0x537a65=_0x19777a['plugins']['get']('TableUtils'),_0x563996=_0x19777a['plugins']['get'](jt),_0x352177=_0x19777a['plugins']['get']('TableClipboard');_0x563996['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x19777a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x19777a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xbcff4=null;_0x19777a['model']['on']('insertContent',(_0x126bc1,_0x2df358)=>{const [_0x1dee6b,_0x5468a6]=_0x2df358,_0x22a797=_0x2df358[_0x2df358['length']-0x1];_0x22a797&&_0x22a797['forceDefaultExecution']||_0x5e35b2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x422073,_0x250511,_0x1d8eab,_0x230014,_0x5e4866){if(_0x250511&&!_0x250511['is']('documentSelection'))return!0x1;const _0x8a0357=_0x5e4866['getTableIfOnlyTableInContent'](_0x422073,_0x1d8eab);if(!_0x8a0357||!he(_0x8a0357,void 0x0,_0x230014))return!0x1;const _0x4565a0=_0x230014['getSelectionAffectedTableCells'](_0x1d8eab['document']['selection']);if(!_0x4565a0['length'])return!0x1;const _0x331c12=_0x4565a0[0x0]['findAncestor']('table'),_0x253f66=_0x230014['getRowIndexes'](_0x4565a0),_0x1e9c83=_0x230014['getColumnIndexes'](_0x4565a0),_0x2a4622={'startRow':_0x253f66['first'],'endRow':_0x253f66['last'],'startColumn':_0x1e9c83['first'],'endColumn':_0x1e9c83['last']};return 0x1==_0x4565a0['length']&&(_0x2a4622['endRow']+=_0x230014['getRows'](_0x8a0357)-0x1,_0x2a4622['endColumn']+=_0x230014['getColumns'](_0x8a0357)-0x1),he(_0x331c12,_0x2a4622,_0x230014);}(_0x1dee6b,_0x5468a6,_0x19777a['model'],_0x537a65,_0x352177)&&(_0x126bc1['stop'](),_0xbcff4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x19777a['model']['change'](()=>{_0x19777a['model']['insertContent'](_0x2df358[0x0],_0x2df358[0x1],_0x2df358[0x2],{'forceDefaultExecution':!0x0});const _0x308de5=_0x386e7f(),{rowInsertionRanges:_0x1a99f4,columnInsertionRanges:_0xe6b02a,insertionRanges:_0xf5272d,deletionRanges:_0x484e93,cells:_0x3149cf}=_0xbcff4;_0x1a99f4['length']&&_0x5e35b2['markMultiRangeInsertion'](_0x1a99f4,'tablePasteRow',{'tablePasteChainId':_0x308de5}),_0xe6b02a['length']&&_0x5e35b2['markMultiRangeInsertion'](_0xe6b02a,'tablePasteColumn',{'tablePasteChainId':_0x308de5}),_0xf5272d['length']&&(_0x5e35b2['markMultiRangeInsertion'](_0xf5272d,'tablePaste',{'tablePasteChainId':_0x308de5,'skipNestingCheck':!0x0}),_0xf5272d['forEach'](_0x82e56c=>_0x82e56c['detach']?.())),_0x484e93['length']&&(_0x5e35b2['markMultiRangeDeletion'](_0x484e93,'tablePaste',{'tablePasteChainId':_0x308de5,'skipNestingCheck':!0x0}),_0x484e93['forEach'](_0x38f519=>_0x38f519['detach']?.()));const _0x3004e6=_0x5e35b2['markMultiRangeBlockFormat'](_0x3149cf['map'](({element:_0x217447})=>_0x217447),{'formatGroupId':_0x386e7f()},[],'tablePasteCell',{'tablePasteChainId':_0x308de5});if(_0x3004e6){const _0x457cf4=_0x3004e6['getMarkers'](),_0x306e32=[];for(const {element:_0x40205e,attributes:_0x305a5c}of _0x3149cf){if(!_0x305a5c)continue;const _0x5df2b0=_0x19777a['model']['createRangeOn'](_0x40205e),_0x3bc5e3=_0x457cf4['find'](_0x49fc72=>_0x49fc72['getRange']()['isEqual'](_0x5df2b0));_0x3bc5e3&&_0x306e32['push']([_0x3bc5e3['name'],_0x305a5c]);}_0x306e32['length']&&_0x3004e6['setAttribute']('markerAttributes',Object['fromEntries'](_0x306e32));}_0xbcff4=null;}));},{'priority':_0x3ed224['high']+0xa}),_0x19777a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2cb27c,_0x1b002b)=>{const [_0x351b29,_0x288eb9,,_0x4bc844]=_0x1b002b;if(!_0xbcff4)return;_0x2cb27c['stop']();const _0x3c1846=_0x351b29['cell'],_0x53df07=_0x288eb9,_0x24a19c=Pe(_0x3c1846),_0x1d1fd6=Pe(_0x53df07);_0x2cb27c['return']=_0x3c1846;let _0x34558d=null,_0x593e68=null;if(_0x1d1fd6||_0x24a19c){if(_0x24a19c&&!_0x1d1fd6){_0x4bc844['remove'](_0x3c1846['getChild'](0x0));for(const _0x5e1b1f of Array['from'](_0x53df07['getChildren']()))_0x4bc844['insert'](_0x5e1b1f,_0x3c1846,'end');const _0x2da6a9=_0xbcff4['rowInsertionIndexes']['includes'](_0x351b29['row']),_0x3ee998=_0xbcff4['columnInsertionIndexes']['includes'](_0x351b29['column']);_0x2da6a9||_0x3ee998||(_0x34558d=_0x2e923c['fromRange'](_0x4bc844['createRangeIn'](_0x3c1846)));}else _0x1d1fd6&&!_0x24a19c&&(_0x593e68=_0x4bc844['createRangeIn'](_0x3c1846));}else{const _0x29ee59=_0x4bc844['createElement']('tableCellSuggestion'),_0xf6a5d5=_0x4bc844['createElement']('tableCellSuggestion');_0x4bc844['wrap'](_0x4bc844['createRangeIn'](_0x3c1846),_0xf6a5d5),_0x4bc844['insert'](_0x29ee59,_0x3c1846,0x0);for(const _0x40319c of Array['from'](_0x53df07['getChildren']()))_0x4bc844['insert'](_0x40319c,_0x29ee59,'end');_0x34558d=_0x2e923c['fromRange'](_0x4bc844['createRangeOn'](_0x29ee59)),_0x593e68=_0x2e923c['fromRange'](_0x4bc844['createRangeOn'](_0xf6a5d5));}const _0x485b58=Array['from'](_0x53df07['getAttributes']())['filter'](([_0x4cac17])=>ge['includes'](_0x4cac17));_0xbcff4['cells']['push']({'element':_0x3c1846,'attributes':_0x485b58['length']?Object['fromEntries'](_0x485b58):null}),_0x34558d&&_0xbcff4['insertionRanges']['push'](_0x34558d),_0x593e68&&_0xbcff4['deletionRanges']['push'](_0x593e68);},{'priority':'high'}),_0x537a65['on']('insertColumns',(_0x35ab3e,_0x26cfcc)=>{const [_0x54f60d,_0x250b09={}]=_0x26cfcc;if(!_0xbcff4)return;const _0x493109=_0x250b09['at']||0x0,_0x4bc75a=_0x250b09['columns']||0x1;_0xbcff4['columnInsertionIndexes']=new Array(_0x4bc75a)['fill'](_0x493109)['map']((_0x27755e,_0x3ba6ae)=>_0x27755e+_0x3ba6ae);for(const {cell:_0x577b7b}of _0x537a65['createTableWalker'](_0x54f60d,{'startColumn':_0x493109,'endColumn':_0x493109+_0x4bc75a-0x1}))_0xbcff4['columnInsertionRanges']['push'](_0x19777a['model']['createRangeOn'](_0x577b7b));},{'priority':'low'}),_0x537a65['on']('insertRows',(_0x2992b4,_0x30e67c)=>{const [_0x13d69c,_0x58aece={}]=_0x30e67c;if(!_0xbcff4)return;const _0x547e44=_0x58aece['at']||0x0,_0x53835c=_0x58aece['rows']||0x1;_0xbcff4['rowInsertionIndexes']=new Array(_0x53835c)['fill'](_0x547e44)['map']((_0x3657d5,_0x402eb8)=>_0x3657d5+_0x402eb8);for(const {cell:_0x2eb189}of _0x537a65['createTableWalker'](_0x13d69c,{'startRow':_0x547e44,'endRow':_0x547e44+_0x53835c-0x1}))_0xbcff4['rowInsertionRanges']['push'](_0x19777a['model']['createRangeOn'](_0x2eb189));},{'priority':'low'}),_0x5e35b2['descriptionFactory']['registerDescriptionCallback'](_0x398171=>{if(_0x398171['subType']&&_0x398171['subType']['startsWith']('tablePaste'))return _0x398171['previous']?{}:{'type':'insertion','content':o(_0x19777a['locale'],'*Replace\x20table\x20cells*')};});const _0x45fa9d=()=>!0x1;for(const _0x4a504c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5e35b2['_suggestionFactory']['registerCustomCallback']('insertion',_0x4a504c,'join',_0x45fa9d),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('deletion',_0x4a504c,'join',_0x45fa9d),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a504c,'join',_0x45fa9d);_0x5e35b2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x45fa9d),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x428fb1,_0x5c4e61,_0x112290)=>{const _0x588dc8=_0x428fb1['map'](_0x49be6d=>_0x49be6d['getContainedElement']())['filter'](_0x15076a=>_0x15076a),_0x1fc70c=new Map(_0x588dc8['map'](_0x22614a=>[_0x22614a,null]));if(_0xbcff4){for(const {element:_0x12bde3,attributes:_0x4c471e}of _0xbcff4['cells'])_0x4c471e&&_0x1fc70c['set'](_0x12bde3,_0x4c471e);}else{if(_0x112290&&_0x112290['markerAttributes'])for(const [_0x31a577,_0x515a46]of Object['entries'](_0x112290['markerAttributes'])){const _0x4c854a=_0x19777a['model']['markers']['get'](_0x31a577),_0x1b9b63=_0x4c854a?_0x4c854a['getRange']()['getContainedElement']():null;_0x1b9b63&&_0x1fc70c['set'](_0x1b9b63,_0x515a46);}}_0x19777a['model']['change'](_0xbb7714=>{for(const [_0x4dc6ff,_0x88fe58]of _0x1fc70c)_0xbb7714['setAttributes']({...Ce,..._0x88fe58},_0x4dc6ff);});});const _0x74e7ce=(_0x215705,_0xcb0d2a)=>{_0x5e35b2['_suggestionFactory']['registerCustomCallback'](_0x215705,'tablePaste',_0xcb0d2a,(_0x730a72,_0x39a825,_0x3ebc13)=>{_0x19777a['model']['change'](_0x58e7d1=>{const _0x2ef099=[];for(const _0x429320 of _0x730a72){const _0xa7c48d=_0x429320['start']['nodeAfter'];_0xa7c48d['is']('element','tableCellSuggestion')&&_0x2ef099['push'](_0xa7c48d);}_0x5e35b2['_suggestionFactory']['getSuggestionCallback'](_0x215705,null,_0xcb0d2a)(_0x730a72,_0x39a825,_0x3ebc13);for(const _0x3919ce of _0x2ef099)'$graveyard'!=_0x3919ce['root']['rootName']&&_0x58e7d1['unwrap'](_0x3919ce);});});};_0x74e7ce('insertion','accept'),_0x74e7ce('insertion','discard'),_0x74e7ce('deletion','accept'),_0x74e7ce('deletion','discard'),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x430150=>{const _0x51aa1d=_0x430150['map'](_0x3bff22=>_0x3bff22['getContainedElement']()),_0x2d68d5=_0x51aa1d[0x0]['findAncestor']('table'),{minRow:_0x5e3281,maxRow:_0x30dc6c}=_0x563996['_getCoordsForCells'](_0x51aa1d);_0x537a65['removeRows'](_0x2d68d5,{'at':_0x5e3281,'rows':_0x30dc6c-_0x5e3281+0x1});}),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x592519=>{const _0x19d0a8=_0x592519['map'](_0x392658=>_0x392658['getContainedElement']()),_0x2bd34b=_0x19d0a8[0x0]['findAncestor']('table'),{minColumn:_0x73277e,maxColumn:_0x5c016e}=_0x563996['_getCoordsForCells'](_0x19d0a8);_0x537a65['removeColumns'](_0x2bd34b,{'at':_0x73277e,'columns':_0x5c016e-_0x73277e+0x1});});const _0x4f6507=(_0x42eae3,_0x2f8db4)=>{if(!_0x2f8db4['subType']||!_0x2f8db4['subType']['startsWith']('tablePaste'))return;const _0x8d0859=_0x2f8db4['attributes']['tablePasteChainId'],_0x38aa86=_0x5e35b2['getSuggestions']()['filter'](_0xf6de8d=>_0xf6de8d['isInContent']&&_0xf6de8d['attributes']&&_0xf6de8d['attributes']['tablePasteChainId']==_0x8d0859);_0x38aa86['length']&&_0x2f8db4['getAllAdjacentSuggestions']()['length']!=_0x38aa86['length']&&_0x38aa86['reduce']((_0x4f6c47,_0x2ef17f)=>(_0x4f6c47['next']=_0x2ef17f,_0x2ef17f['previous']=_0x4f6c47,_0x2ef17f));};function _0x5c5a2d(_0x435b57,_0x10de64=!0x0){const {id:_0x53ec46}=_0x5e35b2['_splitMarkerName'](_0x435b57['markerName']),_0x5105f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d400a=_0x5e35b2['activeMarkers']['includes'](_0x435b57['markerName']);return _0x1d400a&&_0x5105f5['push']('ck-suggestion-marker--active'),{'classes':_0x5105f5,'attributes':{'data-suggestion':_0x53ec46},'priority':_0x1d400a&&_0x10de64?0xbc2:0xbb8};}_0x5e35b2['on']('suggestionLoaded',_0x4f6507,{'priority':'high'}),_0x5e35b2['on']('suggestionUnloaded',_0x4f6507,{'priority':'high'}),_0x19777a['model']['document']['registerPostFixer'](()=>{let _0x4ffe5e=!0x1;const _0x267673=Array['from'](_0x19777a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35750d,data:_0x5bb12f}of _0x267673){const {group:_0xfa8395,type:_0x493398,id:_0x2c7839}=_0x5e35b2['_splitMarkerName'](_0x35750d);if('suggestion'!=_0xfa8395||'deletion'!=_0x493398||_0x5bb12f['oldRange'])continue;if(!_0x5e35b2['hasSuggestion'](_0x2c7839))continue;const _0x5a1b4b=_0x5e35b2['getSuggestion'](_0x2c7839)['getRanges'](),_0xcd32ac=_0x19777a['plugins']['get']('Users')['me'];for(const _0x1d7e2d of _0x5e35b2['getSuggestions']()){if(!_0x1d7e2d['isInContent']||_0x1d7e2d['author']!=_0xcd32ac)continue;if('formatBlock'!=_0x1d7e2d['type']||'tablePasteCell'!=_0x1d7e2d['subType'])continue;if(_0x1d7e2d['getRanges']()['every'](_0x4cec4e=>_0x5a1b4b['some'](_0x219ecf=>_0x219ecf['containsRange'](_0x4cec4e,!0x0)))){for(const _0x2f93d0 of _0x1d7e2d['getAllAdjacentSuggestions']())_0x2f93d0['isInContent']&&(_0x2f93d0['discard'](),_0x4ffe5e=!0x0);}}}return _0x4ffe5e;}),_0x19777a['model']['document']['registerPostFixer'](_0x377f47=>{const _0x5411f8=_0x19777a['commands']['get']('redo');if(!_0x5411f8||!_0x5411f8['_createdBatches']['has'](_0x377f47['batch']))return!0x1;let _0x577d6f=!0x1;const _0x3aa450=_0x19777a['plugins']['get']('Users')['me'],_0x196770=_0x19777a['model']['document']['differ']['getChanges'](),_0x235d23=Array['from'](_0x19777a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x91cbda,data:_0x3825cc})=>{const {group:_0x1b14b3,subType:_0x534000,authorId:_0x5996b1}=_0x5e35b2['_splitMarkerName'](_0x91cbda);return'suggestion'==_0x1b14b3&&'tablePaste'==_0x534000&&_0x5996b1==_0x3aa450['id']&&!_0x3825cc['oldRange'];});for(const _0x30a642 of _0x196770){if('insert'!=_0x30a642['type']||'tableCellSuggestion'!=_0x30a642['name']||0x1!=_0x30a642['length'])continue;const _0x8a885f=_0x377f47['createRange'](_0x30a642['position'],_0x30a642['position']['getShiftedBy'](0x1));if(!_0x235d23['find'](({data:_0x56d328})=>_0x56d328['newRange']['isEqual'](_0x8a885f))){for(const {name:_0x237c54,data:_0x71cbc8}of _0x235d23)if(_0x8a885f['containsRange'](_0x71cbc8['newRange'])){_0x377f47['updateMarker'](_0x237c54,{'range':_0x8a885f}),_0x577d6f=!0x0;break;}}}return _0x577d6f;}),_0x19777a['model']['document']['registerPostFixer'](_0x4f2b3e=>{let _0x49b64c=!0x1;const _0x253589=_0x19777a['plugins']['get']('Users')['me'],_0x2188ff=_0x5e35b2['getSuggestions']()['filter'](_0x4f5b8e=>_0x4f5b8e['isInContent']&&_0x4f5b8e['author']==_0x253589),_0x92e574=new Set(),_0x430f6e=new Set();for(const _0x19d1cf of _0x2188ff)if('tablePaste'==_0x19d1cf['subType'])for(const _0x10677d of _0x19d1cf['getMarkers']()){const _0x15cd9d=_0x10677d['getRange']()['getContainedElement']();if(_0x15cd9d){if(_0x15cd9d['is']('element','tableCellSuggestion')&&Pe(_0x15cd9d)){_0x19d1cf['removeMarker'](_0x10677d['name']),_0x92e574['add'](_0x15cd9d),_0x49b64c=!0x0;const _0x1f690e=_0x15cd9d['nextSibling'],_0x1c2d07=_0x15cd9d['previousSibling'],_0x2b714f=_0x1f690e&&_0x1f690e['is']('element','tableCellSuggestion'),_0x37f308=_0x1c2d07&&_0x1c2d07['is']('element','tableCellSuggestion');_0x2b714f&&!_0x92e574['has'](_0x1f690e)&&_0x430f6e['add'](_0x1f690e),_0x37f308&&!_0x92e574['has'](_0x1c2d07)&&_0x430f6e['add'](_0x1c2d07);}else _0x15cd9d['is']('element','paragraph')&&_0x15cd9d['isEmpty']&&(_0x19d1cf['removeMarker'](_0x10677d['name']),_0x49b64c=!0x0);}}else{if('tablePasteCell'==_0x19d1cf['subType']){if(!_0x19d1cf['attributes']||!_0x19d1cf['attributes']['tablePasteChainId'])continue;const _0xa794e8=_0x19d1cf['attributes']['markerAttributes'];if(_0xa794e8&&Object['keys'](_0xa794e8)['length'])continue;const _0x31d7e9=_0x19d1cf['attributes']['tablePasteChainId'];let _0xfc29c1=!0x0,_0xd78ce6=!0x0;for(const _0x15761b of _0x2188ff)if(_0x15761b['subType']&&_0x15761b['subType']['startsWith']('tablePaste')){if(!_0x15761b['attributes']['tablePasteChainId']){_0xd78ce6=!0x1;break;}if(_0x15761b['id']!=_0x19d1cf['id']&&_0x15761b['attributes']['tablePasteChainId']==_0x31d7e9){_0xfc29c1=!0x1;break;}}_0xd78ce6&&_0xfc29c1&&(_0x19d1cf['removeMarkers'](),_0x49b64c=!0x0);}}for(const _0x30bda2 of _0x92e574)_0x4f2b3e['remove'](_0x30bda2);for(const _0x43e456 of _0x430f6e)_0x4f2b3e['unwrap'](_0x43e456);return _0x49b64c;}),_0x19777a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31b88a,_0x534a61)=>_0x5c5a2d(_0x31b88a),'converterPriority':'high'}),_0x19777a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3960a8,_0x566745)=>_0x566745['options']['showSuggestionHighlights']?_0x5c5a2d(_0x3960a8,!0x1):null,'converterPriority':'high'});const _0x394df1=_0x19777a['editing']['view'];this['listenTo'](_0x394df1['document'],'clipboardOutput',(_0x22420d,_0x1768ba)=>{const _0x142506=[];for(const _0x5aa320 of _0x394df1['createRangeIn'](_0x1768ba['content'])['getItems']())_0x5aa320['is']('element','suggestion-td')&&_0x142506['push'](_0x5aa320);_0x394df1['change'](_0x114175=>{for(const _0x1d7da1 of _0x142506)_0x114175['move'](_0x114175['createRangeIn'](_0x1d7da1),_0x114175['createPositionBefore'](_0x1d7da1)),_0x114175['remove'](_0x1d7da1);});});}}function Pe(_0x1a4577){if(_0x1a4577['isEmpty'])return!0x0;const _0x36bc91=_0x1a4577['getChild'](0x0);return _0x36bc91['is']('element','paragraph')&&_0x36bc91['isEmpty'];}function he(_0x3c94f6,_0xaf961a={},_0x2bf331){for(const {isAnchor:_0x6fa870,cellHeight:_0x441874,cellWidth:_0x2c67fc}of _0x2bf331['createTableWalker'](_0x3c94f6,{'includeAllSlots':!0x0,..._0xaf961a}))if(!_0x6fa870||0x1!=_0x441874||0x1!=_0x2c67fc)return!0x1;return!0x0;}class vt extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3bdfb6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bdfb6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3bdfb6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3bdfb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bdfb6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3bdfb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3bdfb6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x497b3c,_0x48740e){const _0x594e43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c1d43=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8006ba=_0x48740e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d421c=_0x4c1d43['getColumnGroupElement'](_0x8006ba);let _0x3298a0=_0x4d421c?_0x4c1d43['getTableColumnsWidths'](_0x4d421c):null,_0x59d51f=_0x8006ba['getAttribute']('tableWidth')||null;const _0x2f143e=_0x48740e['tableWidth']||_0x59d51f,_0x4e3685=_0x48740e['columnWidths']||_0x3298a0,_0x4c6f7f=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d7f6a of _0x594e43['getSuggestions']()){const _0x4a696a=_0x1d7f6a['getContainedElement']();if('resizeTable'===_0x1d7f6a['subType']&&_0x4a696a===_0x8006ba){_0x1d7f6a['author']!==_0x4c6f7f&&_0x1d7f6a['discard']();const _0x41deff=_0x1d7f6a['data']['commandParams'];_0x59d51f=_0x41deff[0x0]['tableWidth'],_0x3298a0=_0x41deff[0x0]['columnWidths'];break;}}_0x497b3c({'table':_0x8006ba,'tableWidth':_0x2f143e,'columnWidths':_0x4e3685}),_0x594e43['markBlockFormat'](_0x8006ba,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x59d51f,'columnWidths':_0x3298a0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1ed837){if('formatBlock'!=_0x1ed837['type']&&'formatInline'!=_0x1ed837['type'])return;const {data:_0x39f0b4}=_0x1ed837;if(_0x39f0b4&&'resizeTable'===_0x39f0b4['formatGroupId']){const _0x57aede='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x57aede)};}}}class Ct extends _0x3b57f6{['afterInit'](){const _0x311182=this['editor'];_0x311182['plugins']['has']('Template')&&_0x311182['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x3b57f6{['afterInit'](){const _0x3acfb8=this['editor'];if(!_0x3acfb8['commands']['get']('insertTableOfContents'))return;_0x3acfb8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc2a8a1=_0x3acfb8['plugins']['get']('TrackChangesEditing'),_0x364bae=_0x3acfb8['locale'];_0xc2a8a1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x39f4f0=>o(_0x364bae,'ELEMENT_TABLE_OF_CONTENTS',_0x39f4f0));}}class Dt extends _0x3b57f6{['afterInit'](){const _0x24add4=this['editor'];if(!_0x24add4['plugins']['has']('Title'))return;const _0x32025b=_0x24add4['plugins']['get']('TrackChangesEditing');_0x32025b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x24add4['locale'],'ELEMENT_TITLE')),_0x24add4['model']['document']['registerPostFixer'](_0x31d41a=>{let _0x201415=!0x1;const _0x59e4fb=Array['from'](_0x24add4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c03fa,data:_0x44f218}of _0x59e4fb){const {group:_0x2de6c0}=_0x32025b['_splitMarkerName'](_0x5c03fa);if('suggestion'!==_0x2de6c0||!_0x44f218['newRange'])continue;const _0x272e78=_0x44f218['newRange'],_0x2b5476=_0x272e78['end']['nodeBefore'];if(!_0x2b5476||!_0x2b5476['is']('element','title-content'))continue;if(!_0x272e78['start']['isTouching'](_0x272e78['end']))continue;const _0x4479c4=_0x24add4['model']['schema']['getNearestSelectionRange'](_0x272e78['end'],'forward');if(_0x4479c4&&_0x4479c4['isCollapsed']){const _0x229119=_0x31d41a['createRange'](_0x272e78['start'],_0x4479c4['start']);_0x229119['isEqual'](_0x272e78)||(_0x31d41a['updateMarker'](_0x5c03fa,{'range':_0x229119}),_0x201415=!0x0);}_0x201415||(_0x31d41a['removeMarker'](_0x5c03fa),_0x201415=!0x0);}return _0x201415;});}}class Nt extends _0x3b57f6{['afterInit'](){const _0x51e658=this['editor'],_0x77f36f=_0x51e658['plugins']['get']('TrackChangesEditing');_0x51e658['plugins']['has']('UndoEditing')&&(_0x77f36f['enableCommand']('undo'),_0x77f36f['enableCommand']('redo'));}}class Mt extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0x4399a2=this['editor'];if(!_0x4399a2['plugins']['has']('TableCaptionEditing'))return;_0x4399a2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3b57f6{['tableProperties'];['tableCellProperties'];constructor(_0x59bc43){super(_0x59bc43),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 _0x5ed3f9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4eae87 of this['tableProperties'])_0x5ed3f9['enableCommand'](_0x4eae87,(_0x524bc7,_0x415fc2)=>{const _0x2d2b99=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4eae87,[_0x2d2b99],this['tableProperties'],'tableProperties',_0x524bc7,_0x415fc2);});_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5ed3f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2edb50,_0x4001ad)=>this['handleDiscardAction'](this['tableProperties'],_0x2edb50,_0x4001ad)),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x36809f of this['tableCellProperties'])_0x5ed3f9['enableCommand'](_0x36809f,(_0x6b8280,_0x5b4d03)=>{const _0x2bd8df=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x36809f,_0x2bd8df,this['tableCellProperties'],'tableCellProperties',_0x6b8280,_0x5b4d03);});_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5ed3f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x557ab2,_0x47435a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x557ab2,_0x47435a)),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5ed3f9['descriptionFactory']['registerDescriptionCallback'](_0x2ce363=>this['handleSuggestionDescription'](_0x2ce363));}['_handlePropertyChange'](_0x28fdfb,_0x343f78,_0x4603f0,_0xfac003,_0x26e103,_0x30debc){const _0x57ab4a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30debc['batch'],()=>{for(const _0x4edf5c of _0x343f78){if(this['_getSuggestion'](_0x4edf5c,_0xfac003))_0x26e103(_0x30debc);else{const _0x36e5c0={};for(const _0x2c595c of _0x4603f0){const _0x404ca6=_0x4edf5c['getAttribute'](_0x2c595c);void 0x0!==_0x404ca6&&(_0x36e5c0[_0x2c595c]=_0x404ca6);}_0x26e103(_0x30debc),_0x57ab4a['markBlockFormat'](_0x4edf5c,{'commandParams':[_0x36e5c0]},[],_0xfac003);}}});}['handleDiscardAction'](_0x57826a,_0x139d45,_0x47dbc8){const _0x233072=_0x139d45[0x0]['start']['nodeAfter'],_0x3a203b=_0x47dbc8['commandParams'][0x0];this['editor']['model']['change'](_0x2aa5ec=>{for(const _0x9b5176 of _0x57826a)void 0x0!==_0x3a203b[_0x9b5176]?_0x2aa5ec['setAttribute'](_0x9b5176,_0x3a203b[_0x9b5176],_0x233072):_0x2aa5ec['removeAttribute'](_0x9b5176,_0x233072);});}['handleSuggestionDescription'](_0x402548){if(_0x402548['data'])switch(_0x402548['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'](_0x3e311d,_0x43323b){const _0x48c8d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f81f8 of _0x48c8d8['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e2561=_0x1f81f8['getContainedElement']();if(_0x1f81f8['subType']===_0x43323b&&_0x5e2561===_0x3e311d)return _0x1f81f8;}return null;}}const m='$elementName';class p extends _0x3b57f6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x17c546,_0x5c81e6,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(_0x251b4c){function _0x4f275d(_0x4d5ced){return _0x4d5ced['map'](_0x31ebca=>String['fromCharCode'](_0x31ebca))['join']('');}super(_0x251b4c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5610b5,_0x336062,_0x230606,_0x20e141)=>{this['_model']['change'](()=>{for(const _0x318692 of[..._0x20e141,..._0x230606])this['_model']['markers']['has'](_0x318692)&&_0x251b4c['editing']['reconvertMarker'](_0x318692);});}),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']=_0x251b4c['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(),_0x251b4c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x251b4c['config']['get']('trackChanges.trackFormatChanges'),_0x251b4c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x251b4c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x251b4c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4f275d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4f275d([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x36]);}['init'](){const _0x5f1308=this['editor'],_0x459466=(_0x1f216b,_0x12a86c)=>{if('attribute'!=_0x1f216b)return'ck-suggestion-marker-'+_0x1f216b;const _0x2253d0=_0x12a86c['split']('|')[0x0];return this['_isBlockAttribute'](_0x2253d0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f1308['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x708806=>{const {id:_0x29f8f7,type:_0x129a5e,subType:_0x6753c}=this['_splitMarkerName'](_0x708806['markerName']),_0x62d5a4=['ck-suggestion-marker',_0x459466(_0x129a5e,_0x6753c)];let _0x265093=0xbb8;return this['activeMarkers']['includes'](_0x708806['markerName'])&&(_0x62d5a4['push']('ck-suggestion-marker--active'),_0x265093=0xbc2),'deletion'==_0x129a5e&&(_0x265093+=0x5),{'classes':_0x62d5a4,'attributes':{'data-suggestion':_0x29f8f7},'priority':_0x265093};}}),_0x5f1308['conversion']['for']('dataDowncast')['add'](_0x5bcd0a=>{_0x5bcd0a['on']('addMarker:suggestion',(_0x30ca8d,_0x269a2e,_0x3ec2e0)=>{if(!_0x3ec2e0['options']['showSuggestionHighlights'])return;const _0x414beb=_0x269a2e['item'];if(!_0x414beb)return;const _0x4bc994=_0x3ec2e0['mapper']['toViewElement'](_0x414beb);_0x5f1308['model']['schema']['isObject'](_0x414beb)&&_0x4bc994&&!_0x4bc994['getCustomProperty']('widget')&&_0x4bc994['is']('containerElement')&&_0x5055e8(_0x4bc994,_0x3ec2e0['writer']);},{'priority':'high'});}),_0x5f1308['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x160fd3,_0x161945)=>{if(!_0x161945['options']['showSuggestionHighlights'])return null;const {type:_0x12f948,subType:_0x25f9fa}=this['_splitMarkerName'](_0x160fd3['markerName']);return{'classes':['ck-suggestion-marker',_0x459466(_0x12f948,_0x25f9fa)],'priority':0xbb8};}});const _0x39d0e2=({showActiveMarkers:_0xe68c13=!0x0,isAttributeSuggestion:_0x3a64cd=!0x1}={})=>(_0x1be5d1,_0x4bb174,_0x5d446f)=>{if(!_0x4bb174['item'])return;const {id:_0x205bb3}=this['_splitMarkerName'](_0x4bb174['markerName']);if(_0x3a64cd){const _0x28ef83=this['_suggestions']['get'](_0x205bb3),_0x974dd9=this['_getAttributeKey'](_0x28ef83);if(!this['_isBlockAttribute'](_0x974dd9))return;}if(_0x4bb174['item']['is']('selection'))return void _0x5d446f['consumable']['consume'](_0x4bb174['item'],_0x1be5d1['name']);const _0x3112ba=_0x5d446f['mapper']['toViewElement'](_0x4bb174['item']);if(_0x4bb174['item']['is']('element')&&_0x5f1308['model']['schema']['isBlock'](_0x4bb174['item'])&&!_0x3112ba['getCustomProperty']('addHighlight')){_0x5d446f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3112ba),_0x5d446f['writer']['setAttribute']('data-suggestion',_0x205bb3,_0x3112ba),_0x5d446f['mapper']['bindElementToMarker'](_0x3112ba,_0x4bb174['markerName']),_0xe68c13&&(this['activeMarkers']['includes'](_0x4bb174['markerName'])?_0x5d446f['writer']['addClass']('ck-suggestion-marker--active',_0x3112ba):_0x5d446f['writer']['removeClass']('ck-suggestion-marker--active',_0x3112ba));for(const _0x5a6615 of _0x5f1308['model']['createRangeIn'](_0x4bb174['item'])['getItems']())_0x5d446f['consumable']['consume'](_0x5a6615,_0x1be5d1['name']);_0x5d446f['consumable']['consume'](_0x4bb174['item'],_0x1be5d1['name']);}};_0x5f1308['conversion']['for']('dataDowncast')['add'](_0x350589=>{_0x350589['on']('addMarker:suggestion:formatBlock',(_0x2a8c26,_0x540e34,_0xac3d51)=>{_0xac3d51['options']['showSuggestionHighlights']&&_0x39d0e2({'showActiveMarkers':!0x1})(_0x2a8c26,_0x540e34,_0xac3d51);},{'priority':'highest'});}),_0x5f1308['conversion']['for']('dataDowncast')['add'](_0x46ef50=>{_0x46ef50['on']('addMarker:suggestion:attribute',(_0x14407f,_0x2526c9,_0xba958b)=>{_0xba958b['options']['showSuggestionHighlights']&&_0x39d0e2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x14407f,_0x2526c9,_0xba958b);},{'priority':'highest'});}),_0x5f1308['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24310b,_0x204908)=>_0x204908['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24310b['substr'](0xb)}}),_0x5f1308['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ed6fe,{writer:_0x5a672f})=>{let _0x3e07c2='suggestion:'+_0x1ed6fe['getAttribute']('suggestion-type')+':'+_0x1ed6fe['getAttribute']('id');return _0x1ed6fe['getAttribute']('marker-count')&&(_0x3e07c2+=':'+_0x1ed6fe['getAttribute']('marker-count')),_0x5a672f['createElement']('$marker',{'data-name':_0x3e07c2});}}),_0x5f1308['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0x5dc417=>{_0x5dc417['on']('addMarker:suggestion:formatBlock',_0x39d0e2(),{'priority':'high'});}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0xa622b6=>{_0xa622b6['on']('addMarker:suggestion:attribute',_0x39d0e2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0x421094=>{_0x421094['on']('removeMarker:suggestion:formatBlock',(_0x44c472,_0x3d7aa9,_0x305eb6)=>{const _0x5d9713=_0x305eb6['mapper']['markerNameToElements'](_0x3d7aa9['markerName']);if(_0x5d9713){for(const _0x8c334b of _0x5d9713)_0x8c334b['getCustomProperty']('addHighlight')||(_0x305eb6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x8c334b),_0x305eb6['writer']['removeAttribute']('data-suggestion',_0x8c334b),_0x305eb6['mapper']['unbindElementFromMarkerName'](_0x8c334b,_0x3d7aa9['markerName']));}},{'priority':'high'});}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0x22adb5=>{_0x22adb5['on']('removeMarker:suggestion:attribute',(_0x491b27,_0x142026,_0x163f52)=>{const _0x140d28=_0x163f52['mapper']['markerNameToElements'](_0x142026['markerName']);if(!_0x140d28)return;const {id:_0x198e1c}=this['_splitMarkerName'](_0x142026['markerName']),_0x1a4c45=this['_suggestions']['get'](_0x198e1c),_0x4389b5=this['_getAttributeKey'](_0x1a4c45);if(this['_isBlockAttribute'](_0x4389b5)){for(const _0x10f0fd of _0x140d28)_0x10f0fd['getCustomProperty']('addHighlight')||(_0x163f52['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x10f0fd),_0x163f52['writer']['removeAttribute']('data-suggestion',_0x10f0fd),_0x163f52['mapper']['unbindElementFromMarkerName'](_0x10f0fd,_0x142026['markerName']));}},{'priority':'high'});}),_0x5f1308['model']['document']['registerPostFixer'](_0x6c66a9=>{let _0x51bfef=!0x1;const _0x4dd9fc=Array['from'](_0x5f1308['model']['document']['differ']['getChangedMarkers']()),_0x581dfa=new Set();for(const {name:_0x39b7fa,data:_0x31136a}of _0x4dd9fc){const {group:_0x142a46,type:_0x389bcd,subType:_0x6467fc,id:_0x35854f}=this['_splitMarkerName'](_0x39b7fa);if('suggestion'!==_0x142a46)continue;const _0x5e9a0d=this['_suggestions']['get'](_0x35854f);if(null!=_0x31136a['newRange']){'formatInline'==_0x389bcd&&(_0x51bfef=_0x51bfef||Et(_0x31136a['newRange'],_0x39b7fa,_0x6c66a9,_0x5f1308['model']['schema']));const _0x39aff4='attribute'==_0x389bcd&&this['_isBlockAttribute'](_0x6467fc['split']('|')[0x0]);if(_0x31136a['newRange']['isCollapsed']||'$graveyard'==_0x31136a['newRange']['root']['rootName']||'formatBlock'==_0x389bcd&&!Ut(_0x31136a['newRange'])||_0x39aff4&&!Ut(_0x31136a['newRange'])||'deletion'==_0x389bcd&&!(!Tt(_0x361ffd=_0x31136a['newRange'])&&!function(_0x415799){return _0x415799['start']['parent']==_0x415799['end']['nodeBefore']&&_0x415799['start']['isAtEnd'];}(_0x361ffd)))_0x6c66a9['removeMarker'](_0x39b7fa),_0x51bfef=!0x0;else{if(!_0x5e9a0d||!_0x5e9a0d['isInContent'])continue;_0x581dfa['add'](_0x5e9a0d);}}}var _0x361ffd;return _0x581dfa['size']>0x0&&(_0x51bfef=!!this['_joinWithAdjacentSuggestions'](_0x581dfa)||_0x51bfef),_0x51bfef;}),_0x5f1308['model']['document']['registerPostFixer'](_0x5d7a75=>{let _0x43710c=!0x1;for(const _0x1cee96 of _0x5f1308['model']['document']['differ']['getChanges']())if('insert'==_0x1cee96['type'])for(const _0x168da8 of this['_suggestions']['values']()){if(_0x168da8['isMultiRange']||!_0x168da8['isInContent'])continue;const _0x416237='formatBlock'==_0x168da8['type'],_0x5f3b41=this['_getAttributeKey'](_0x168da8),_0x232d60=_0x5f3b41&&this['_isBlockAttribute'](_0x5f3b41);if(!_0x416237&&!_0x232d60)continue;const _0x33c452=_0x168da8['getFirstRange']();if(_0x33c452['start']['parent']!=_0x33c452['end']['parent']&&!_0x33c452['end']['isAtEnd']){const _0xcd1d19=_0x5f1308['model']['createPositionAt'](_0x33c452['start']['nodeAfter'],'end'),_0x5bf328=_0x5f1308['model']['createRange'](_0x33c452['start'],_0xcd1d19);_0x5d7a75['updateMarker'](_0x168da8['getFirstMarker'](),{'range':_0x5bf328}),_0x43710c=!0x0;}}return _0x43710c;}),_0x5f1308['model']['document']['registerPostFixer'](_0x3ab5d3=>this['_processAttributeChanges'](_0x3ab5d3)),_0x5f1308['model']['document']['registerPostFixer'](_0x25ac53=>!_0x25ac53['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x25ac53)),_0x5f1308['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f1308['model']['document']['on']('change:data',(_0x115a97,_0x4e63ae)=>{if(!_0x4e63ae['isLocal']||_0x4e63ae['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x27e1ad=_0x5f1308['model']['document']['differ']['getChanges']();if(0x0==_0x27e1ad['length'])return;const _0x45fd29=[],_0x316901=_0x27e1ad['filter'](_0x278cd4=>'attribute'==_0x278cd4['type']),_0x35306e=_0x27e1ad['filter'](_0x50358c=>'insert'==_0x50358c['type']&&'$text'!=_0x50358c['name']);for(const _0x681491 of _0x316901)this['_isRegisteredAttribute'](_0x681491['attributeKey'])&&_0x45fd29['push']({'key':_0x681491['attributeKey'],'newValue':_0x681491['attributeNewValue'],'oldValue':_0x681491['attributeOldValue'],'range':Ot(_0x681491['range'],_0x5f1308['model'])});for(const _0x4f10fe of _0x35306e){if('rename'!=_0x4f10fe['action']&&'refresh'!=_0x4f10fe['action'])continue;const _0x2019fd=Gt(_0x4f10fe['position']['nodeAfter'],_0x5f1308['model']),_0x1b6912=_0x4f10fe['before'];'rename'==_0x4f10fe['action']&&_0x45fd29['push']({'key':m,'newValue':_0x4f10fe['name'],'oldValue':_0x1b6912['name'],'range':_0x2019fd});for(const [_0x211833,_0x5211b7]of _0x1b6912['attributes']){if(!this['_isRegisteredAttribute'](_0x211833))continue;const _0xfa782=_0x4f10fe['attributes']['get'](_0x211833);_0x5211b7!==_0xfa782&&_0x45fd29['push']({'key':_0x211833,'newValue':_0xfa782,'oldValue':_0x5211b7,'range':_0x2019fd});}for(const [_0x3e3773,_0x474c5a]of _0x4f10fe['attributes'])this['_isRegisteredAttribute'](_0x3e3773)&&(_0x1b6912['attributes']['has'](_0x3e3773)||_0x45fd29['push']({'key':_0x3e3773,'newValue':_0x474c5a,'oldValue':null,'range':_0x2019fd}));}0x0!=_0x45fd29['length']&&_0x5f1308['model']['enqueueChange'](_0x4e63ae,_0xa85d2d=>{const _0x2d1612=_0x386e7f();for(const {range:_0x5da722,key:_0x549401,oldValue:_0x4a600b,newValue:_0x52fb0e}of _0x45fd29)this['markAttributeChange'](_0x5da722,_0x549401,_0x4a600b,_0x52fb0e,{'groupId':_0x2d1612});this['_reduceExistingSuggestions'](_0xa85d2d,_0x45fd29);});},{'priority':'lowest'}),_0x5f1308['model']['markers']['on']('update:suggestion',(_0x103724,_0x5504b0,_0xbd6055)=>{if(null==_0xbd6055){const {id:_0x41dbe5}=this['_splitMarkerName'](_0x5504b0['name']),_0x3ede4f=this['_suggestions']['get'](_0x41dbe5);_0x3ede4f&&_0x3ede4f['addMarkerName'](_0x5504b0['name']);}}),_0x5f1308['model']['document']['on']('change:data',()=>{const _0x143fdc=Array['from'](_0x5f1308['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ffc65=>'suggestion'===this['_splitMarkerName'](_0x3ffc65['name'])['group']);if(0x0===_0x143fdc['length'])return;_0x143fdc['sort']((_0x38926a,_0x2b99ed)=>{const _0x39f7ba=_0x38926a['data']['oldRange'],_0x2588a4=_0x2b99ed['data']['oldRange'];return null===_0x39f7ba&&null===_0x2588a4?0x0:null===_0x39f7ba&&null!==_0x2588a4?-0x1:null!==_0x39f7ba&&null===_0x2588a4?0x1:_0x39f7ba['start']['isBefore'](_0x2588a4['start'])?-0x1:0x1;});const _0x44e25c=new Set(),_0x23e8e4=new Set();for(const {name:_0x3a14c6,data:_0x1f7f1d}of _0x143fdc){const {id:_0x3df7b6}=this['_splitMarkerName'](_0x3a14c6);if(null===_0x1f7f1d['oldRange']){const _0x278247=this['_handleNewSuggestionMarker'](_0x3a14c6);_0x23e8e4['add'](_0x278247);}else{const _0x37a5eb=this['_suggestions']['get'](_0x3df7b6);null!==_0x1f7f1d['newRange']||_0x37a5eb['isInContent']?(_0x44e25c['add'](_0x37a5eb['head']),_0x23e8e4['add'](_0x37a5eb)):this['_removeSuggestion'](_0x37a5eb);}}_0x23e8e4['size']>0x0&&this['_refreshSuggestionsChain'](_0x23e8e4);for(const _0x13f121 of _0x44e25c)this['fire']('suggestionChanged',_0x13f121);}),_0x5f1308['model']['on']('applyOperation',(_0x1a74e2,_0xa0e932)=>{const _0x445a71=_0xa0e932[0x0];if(!this['_suggestions']['size'])return;if(!_0x445a71['isDocumentOperation'])return;if(_0x445a71['batch']['isUndo']||!_0x445a71['batch']['isLocal'])return;let _0x1740be,_0x10fb63;switch(_0x445a71['type']){case'insert':_0x1740be=_0x5f1308['model']['createPositionAt'](_0x445a71['position']),_0x10fb63=_0x1740be['getShiftedBy'](_0x445a71['howMany']);break;case'split':_0x1740be=_0x5f1308['model']['createPositionAt'](_0x445a71['splitPosition']),_0x10fb63=_0x5f1308['model']['createPositionAt'](_0x445a71['moveTargetPosition']);break;case'move':_0x1740be=_0x5f1308['model']['createPositionAt'](_0x445a71['targetPosition']),_0x10fb63=_0x1740be['getShiftedBy'](_0x445a71['howMany']);break;default:return;}const _0x26d9f6=_0x5f1308['model']['createRange'](_0x1740be,_0x10fb63);_0x5f1308['model']['change'](()=>{for(const {suggestion:_0x27396c,meta:_0x1e4e37}of this['_findSuggestions'](_0x26d9f6)){if(_0x27396c['isMultiRange'])continue;if('formatInline'==_0x27396c['type'])continue;const _0x33803c=this['_getAttributeKey'](_0x27396c);if(_0x33803c&&this['_isBlockAttribute'](_0x33803c)&&'split'!=_0x445a71['type'])continue;const _0x4f3003=_0x27396c['data']&&_0x27396c['data']['multipleBlocks'];('formatBlock'!=_0x27396c['type']||'split'==_0x445a71['type']&&!_0x4f3003)&&(_0x1e4e37['containsRangeInObject']||'insertion'==_0x27396c['type']&&_0x1e4e37['isOwn']||_0x27396c['getFirstRange']()['containsRange'](_0x26d9f6)&&this['_breakSuggestionMarker'](_0x27396c,_0x1740be,_0x10fb63));}});},{'priority':'lowest'}),_0x5f1308['model']['on']('deleteContent',(_0x1459bd,_0x10727d)=>{const _0x2ca94e=_0x10727d[0x0],_0x5c4e4a=_0x10727d[0x1];if(_0x5c4e4a&&_0x5c4e4a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2ca94e['isCollapsed'])return;const _0x579f6d=_0x5f1308['model']['schema'],{start:_0x2ed47a,end:_0x366859}=_0x2ca94e['getFirstRange'](),_0x4452f7=_0x2ed47a['nodeAfter']&&_0x579f6d['isLimit'](_0x2ed47a['nodeAfter'])?null:_0x579f6d['getNearestSelectionRange'](_0x2ed47a,'forward'),_0x3ccb43=_0x366859['nodeBefore']&&_0x579f6d['isLimit'](_0x366859['nodeBefore'])?null:_0x579f6d['getNearestSelectionRange'](_0x366859,'backward'),_0x673338=_0x5f1308['model']['createRange'](_0x4452f7?_0x4452f7['start']:_0x2ed47a,_0x3ccb43?_0x3ccb43['end']:_0x366859);_0x5f1308['model']['change'](_0x4c3eef=>{this['markDeletion'](_0x673338);const _0x1f09ca=_0x5f1308['model']['schema']['getNearestSelectionRange'](_0x673338['start']);_0x2ca94e['is']('documentSelection')?_0x4c3eef['setSelection'](_0x1f09ca):_0x2ca94e['setTo'](_0x1f09ca);}),_0x1459bd['stop']();},{'priority':_0x3ed224['normal']+0xa}),_0x5f1308['model']['on']('insertContent',(_0x39dd90,_0x426f8f)=>{const _0xf6aea=_0x426f8f[_0x426f8f['length']-0x1];_0xf6aea&&_0xf6aea['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f1308['model']['change'](()=>{let _0x2b49ef=_0x5f1308['model']['insertContent'](_0x426f8f[0x0],_0x426f8f[0x1],_0x426f8f[0x2],{'forceDefaultExecution':!0x0});if(!_0x2b49ef)return;_0x39dd90['return']=_0x2b49ef['clone']();const _0x2ab849=_0x2b49ef['end']['nodeBefore'],_0x121f36=_0x5f1308['model']['schema'];_0x2ab849&&_0x121f36['isBlock'](_0x2ab849)&&!_0x121f36['isObject'](_0x2ab849)&&(_0x2b49ef=_0x5f1308['model']['createRange'](_0x2b49ef['start'],_0x5f1308['model']['createPositionAt'](_0x2ab849,'end'))),this['markInsertion'](_0x2b49ef);}),_0x39dd90['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x57c570=new $(_0x5f1308,this['_suggestions']);_0x5f1308['commands']['add']('acceptSuggestion',_0x57c570),this['enableCommand']('acceptSuggestion');const _0x4fdbab=new B(_0x5f1308,this['_suggestions']);_0x5f1308['commands']['add']('discardSuggestion',_0x4fdbab),this['enableCommand']('discardSuggestion'),_0x5f1308['commands']['add']('acceptAllSuggestions',new x(_0x5f1308,_0x57c570,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f1308['commands']['add']('discardAllSuggestions',new x(_0x5f1308,_0x4fdbab,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f1308['commands']['add']('acceptSelectedSuggestions',new R(_0x5f1308,_0x57c570,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f1308['commands']['add']('discardSelectedSuggestions',new R(_0x5f1308,_0x4fdbab,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4f0ab5=_0x5f1308['plugins']['get']('CommentsRepository');this['listenTo'](_0x4f0ab5,'addComment',(_0x4695d4,{threadId:_0x53f70e})=>{const _0x43c669=this['_suggestions']['get'](_0x53f70e);_0x43c669&&_0x43c669['commentThread']&&0x1===_0x43c669['commentThread']['length']&&this['_updateSuggestionData'](_0x53f70e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4f0ab5,'removeComment',(_0x207283,{threadId:_0x47cbff})=>{const _0x4c8cbc=this['_suggestions']['get'](_0x47cbff);_0x4c8cbc&&_0x4c8cbc['commentThread']&&!_0x4c8cbc['commentThread']['length']&&this['_updateSuggestionData'](_0x47cbff,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3334aa){if(this['_adapter'])throw new _0x144d61('track-changes-adapter-already-set',this);this['_adapter']=_0x3334aa;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x352cf3=!0x1,toJSON:_0x4354db=!0x1}={}){const _0x4f09e5=[];for(const _0x1faf56 of this['_suggestions']['values']())_0x352cf3&&!_0x1faf56['isInContent']||_0x4f09e5['push'](_0x1faf56);return _0x4354db?_0x4f09e5['map'](_0x3a1a41=>_0x3a1a41['toJSON']()):_0x4f09e5;}['getSuggestion'](_0x519a88){const _0x4b2e23=this['_suggestions']['get'](_0x519a88);if(!_0x4b2e23)throw new _0x144d61('track-changes-suggestion-not-found',this);return _0x4b2e23;}['hasSuggestion'](_0x399f0c){return this['_suggestions']['has'](_0x399f0c);}['addSuggestionData'](_0x36cfda){const {authorId:_0x23734d,id:_0x1c1c6b,attributes:_0x44a160}=_0x36cfda,[_0x1742a0,_0x53f897]=_0x36cfda['type']['split'](':'),_0x2edd83=this['_suggestions']['get'](_0x1c1c6b)||this['_createSuggestion'](_0x1742a0,_0x53f897,_0x1c1c6b,_0x23734d,_0x44a160);if(this['_addThreadToSuggestion'](_0x2edd83),this['_checkSuggestionCorrectness'](_0x2edd83,_0x1742a0,_0x53f897||null,_0x23734d),_0x2edd83['createdAt']=_0x36cfda['createdAt'],_0x2edd83['_isDataLoaded']=!0x0,_0x44a160&&_0x44a160['@external']){const _0x1a487e=_0x44a160['@external'],_0x901230=this['_getExternalAuthor'](_0x1a487e['authorName']);_0x2edd83['authoredAt']=_0x1a487e['createdAt'],_0x2edd83['author']=_0x901230,_0x2edd83['isExternal']=!0x0;}else _0x2edd83['authoredAt']=_0x36cfda['createdAt'];switch(_0x36cfda['data']&&(_0x2edd83['data']=_0x36cfda['data']),_0x36cfda['attributes']&&(_0x2edd83['attributes']=_0x36cfda['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2edd83['_saved']=!0x0),this['_suggestionState']['get'](_0x2edd83)){case'notReady':this['_suggestionState']['set'](_0x2edd83,'dataReady');break;case'markerReady':_0x2edd83['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2edd83])),this['_refreshSuggestionsChain'](new Set([_0x2edd83])),this['_suggestionState']['set'](_0x2edd83,'ready'),this['fire']('suggestionLoaded',_0x2edd83)):this['_suggestionState']['set'](_0x2edd83,'removed');}return _0x2edd83;}['acceptSuggestion'](_0x21bffd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a57ec of _0x21bffd['getAllAdjacentSuggestions']())_0x2a57ec['accept']();});});}['discardSuggestion'](_0x2926b2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d562c of _0x2926b2['getAllAdjacentSuggestions']())_0x1d562c['discard']();});});}['enableCommand'](_0x178af3,_0x3595a6){const _0x2263dc=this['editor']['commands']['get'](_0x178af3);if(!_0x2263dc)throw new _0x144d61('track-changes-command-not-found',this,{'commandName':_0x178af3});if(this['_enabledCommands']['has'](_0x2263dc))throw new _0x144d61('track-changes-enable-command-twice',this,{'commandName':_0x178af3});this['_enabledCommands']['add'](_0x2263dc),_0x3595a6&&_0x2263dc['on']('execute',(_0x4e39d0,_0x4502ba)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4502ba['length']>0x0&&_0x4502ba[_0x4502ba['length']-0x1]&&_0x4502ba[_0x4502ba['length']-0x1]['forceDefaultExecution']?_0x4502ba['pop']():(_0x4e39d0['return']=_0x3595a6((..._0x5835c0)=>_0x2263dc['execute'](..._0x5835c0,{'forceDefaultExecution':!0x0}),..._0x4502ba),_0x4e39d0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d5dea){let _0x134dcd,_0x29d0aa;const _0x483ed3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x134dcd=_0x5d5dea();}catch(_0x1dd452){_0x29d0aa=_0x1dd452;}return _0x483ed3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29d0aa&&_0x144d61['rethrowUnexpectedError'](_0x29d0aa,this),_0x134dcd;}['markInsertion'](_0x532e69,_0x266477=null,_0x31daf2={}){if(_0x532e69['isCollapsed'])return null;const _0x11ecdc=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3426c2,meta:_0x5cb03d}of this['_findSuggestions'](_0x532e69,'insertion'))if(_0x5cb03d['isOwn']){if(!_0x5cb03d['isNextTo']){if(_0x5cb03d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3426c2,_0x31daf2))continue;return _0x3426c2;}if(Lt(_0x3426c2,_0x31daf2))return _0x3426c2;this['_breakSuggestionMarker'](_0x3426c2,_0x532e69['start'],_0x532e69['end']);break;}if(_0x266477==_0x3426c2['subType']&&Lt(_0x3426c2,_0x31daf2)){const _0x408b0c=_0x3426c2['getFirstRange']();return _0x408b0c['start']['isEqual'](_0x532e69['end'])?this['_setSuggestionRange'](_0x3426c2,this['_model']['createRange'](_0x532e69['start'],_0x408b0c['end'])):this['_setSuggestionRange'](_0x3426c2,this['_model']['createRange'](_0x408b0c['start'],_0x532e69['end'])),_0x3426c2;}}const _0x3ec0f5=_0x386e7f(),_0x50c71c=_0x11ecdc['id'],_0xe2fb8f=_0x266477?'insertion:'+_0x266477:'insertion',_0x11903a=this['_setSuggestionData']({'id':_0x3ec0f5,'type':_0xe2fb8f,'createdAt':new Date(),'authorId':_0x50c71c,'attributes':_0x31daf2});return this['_addSuggestionMarker'](_0xe2fb8f,_0x3ec0f5,_0x50c71c,_0x532e69),_0x11903a;}['markMultiRangeInsertion'](_0x59e29b,_0x4553da='multi',_0x163736={}){const _0x3bf3a5=this['editor']['plugins']['get']('Users')['me'],_0x3592fd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4553da,'join');for(const _0x48d7bf of this['getSuggestions']())if(_0x48d7bf['author']['id']==_0x3bf3a5['id']&&'insertion'==_0x48d7bf['type']&&_0x48d7bf['subType']==_0x4553da&&Lt(_0x48d7bf,_0x163736)&&(_0x3592fd(_0x48d7bf['getRanges'](),_0x59e29b)||_0x3592fd(_0x59e29b,_0x48d7bf['getRanges']()))){for(const _0x400b59 of _0x59e29b)_0x48d7bf['addRange'](_0x400b59);return _0x48d7bf;}for(const {suggestion:_0x22363a,meta:_0x53613b}of this['_findSuggestions'](_0x59e29b,'insertion')){if(!_0x53613b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53613b['containsRangeInObject'])continue;if(!Lt(_0x22363a,_0x163736))continue;let _0xdb7e90=!0x0;for(const _0x11641e of _0x22363a['getRanges']())for(const _0x48ae87 of _0x59e29b)if(!_0x11641e['containsRange'](_0x48ae87)){_0xdb7e90=!0x1;break;}if(_0xdb7e90)return _0x22363a;}const _0x4d9778=_0x386e7f(),_0x31082e=_0x3bf3a5['id'],_0x26901e='insertion:'+_0x4553da,_0x19a7c9=this['_setSuggestionData']({'id':_0x4d9778,'type':_0x26901e,'createdAt':new Date(),'authorId':_0x31082e,'attributes':_0x163736});for(const _0x34fc79 of _0x59e29b)this['_addSuggestionMarker'](_0x26901e,_0x4d9778,_0x31082e,_0x34fc79,u['getMultiRangeId']());return _0x19a7c9;}['markInlineFormat'](_0x3c19f6,_0x203c79,_0x2b4999=null,_0x275182={}){if(_0x2b4999=_0x2b4999||Vt(_0x203c79),_0x3c19f6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1d725f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b4999,'accept');return this['forceDefaultExecution'](()=>_0x1d725f([_0x3c19f6],_0x203c79,_0x275182)),null;}const _0x586359=this['editor']['plugins']['get']('Users')['me'],_0x27bd96=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xea67d1,meta:_0x2c68ad}of this['_findSuggestions'](_0x3c19f6,'insertion'))_0x2c68ad['isOwn']&&!_0x2c68ad['isInsideObject']&&_0x27bd96['push'](..._0xea67d1['getRanges']());}const _0x553cd4=function(_0x2b163f,_0x41755d){const _0x2fc89e=[];for(const _0x54049c of _0x41755d){const _0x502a33=_0x2b163f['getIntersection'](_0x54049c);_0x502a33&&_0x2fc89e['push'](_0x502a33);}return _0x2fc89e;}(_0x3c19f6,_0x27bd96),_0x2a5671=function(_0x27d6eb,_0x3fd3e3){const _0x359fd8=[_0x27d6eb];for(const _0x330910 of _0x3fd3e3){let _0x342586=0x0;for(;_0x342586<_0x359fd8['length'];){const _0x5f3274=_0x359fd8[_0x342586]['getDifference'](_0x330910);_0x359fd8['splice'](_0x342586,0x1,..._0x5f3274),_0x342586+=_0x5f3274['length'];}}return _0x359fd8;}(_0x3c19f6,_0x27bd96);_0x553cd4['length']&&this['_model']['change'](()=>{for(const _0x17ed03 of _0x553cd4){const _0x356e9a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b4999,'accept');this['forceDefaultExecution'](()=>_0x356e9a([_0x17ed03],_0x203c79,_0x275182));}});for(const _0x167c76 of _0x2a5671){let _0x442c61=null,_0x367bf9=_0x167c76['start'],_0x50c639=_0x167c76['end'];for(const {suggestion:_0x4a5c94,meta:_0x26cf3c}of this['_findSuggestions'](_0x167c76,'formatInline')){if(!_0x26cf3c['isOwn'])continue;if(_0x4a5c94['subType']!=_0x2b4999)continue;if(!Lt(_0x4a5c94,_0x275182))continue;const _0x1ef384=_0x4a5c94['getFirstRange']();if(_0x1ef384['containsRange'](_0x167c76,!0x0))return null;_0x367bf9=_0x367bf9['isBefore'](_0x1ef384['start'])?_0x367bf9:_0x1ef384['start'],_0x50c639=_0x50c639['isAfter'](_0x1ef384['end'])?_0x50c639:_0x1ef384['end'],_0x442c61?_0x1ef384['start']['isBefore'](_0x442c61['getFirstRange']()['start'])?(_0x442c61['removeMarkers'](),_0x442c61=_0x4a5c94):_0x4a5c94['removeMarkers']():_0x442c61=_0x4a5c94;}const _0xcf16da=this['_model']['createRange'](_0x367bf9,_0x50c639);if(_0x442c61)this['_setSuggestionRange'](_0x442c61,_0xcf16da);else{const _0x43b217=_0x386e7f(),_0x232b51=_0x586359['id'];this['_setSuggestionData']({'id':_0x43b217,'type':'formatInline:'+_0x2b4999,'data':_0x203c79,'createdAt':new Date(),'authorId':_0x232b51,'attributes':_0x275182}),this['_addSuggestionMarker']('formatInline:'+_0x2b4999,_0x43b217,_0x232b51,_0xcf16da);}}return null;}['markBlockFormat'](_0x583cf0,_0x310d71,_0x58aa03=[],_0xbb6ac5=null,_0x4e9c3f={}){_0x310d71['formatGroupId']||(_0x310d71['formatGroupId']=_0x310d71['commandName']),_0x310d71['multipleBlocks']=_0x583cf0['is']('range'),_0xbb6ac5=_0xbb6ac5||Vt(_0x310d71);const _0xfab5bf=_0x58aa03['map'](_0x23115d=>Gt(_0x23115d,this['_model'])),_0x444d44=_0x583cf0['is']('range')?_0x583cf0:Gt(_0x583cf0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5d7b36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbb6ac5,'accept');return this['forceDefaultExecution'](()=>_0x5d7b36([_0x444d44],_0x310d71,_0x4e9c3f)),null;}_0xfab5bf['push'](_0x444d44);let _0x3132df=!0x0;for(const _0x39fe65 of _0xfab5bf)if(!this['_rangeIsInLocalUserInsertion'](_0x39fe65)){_0x3132df=!0x1;break;}if(_0x3132df&&'always'!==this['_trackFormatChanges']){const _0x416a75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbb6ac5,'accept');return this['forceDefaultExecution'](()=>_0x416a75([_0x444d44],_0x310d71,_0x4e9c3f)),null;}let _0x5e7175=null,_0x1a257a=_0x444d44['start'],_0x2e3c43=_0x444d44['end'];for(const {suggestion:_0x4ccaa7,meta:_0x32dd9a}of this['_findSuggestions'](_0x444d44,'formatBlock')){if(!_0x32dd9a['isOwn'])continue;if(_0x32dd9a['isNextTo']||_0x32dd9a['containsRangeInObject']||_0x32dd9a['isInsideObject'])continue;if(_0x4ccaa7['data']['formatGroupId']!=_0x310d71['formatGroupId'])continue;if(!Lt(_0x4ccaa7,_0x4e9c3f))continue;const _0x3bd3e7=_0x4ccaa7['getFirstRange']();if(_0x4ccaa7['subType']==_0xbb6ac5){if(_0x3bd3e7['containsRange'](_0x444d44,!0x0))return null;_0x1a257a=_0x1a257a['isBefore'](_0x3bd3e7['start'])?_0x1a257a:_0x3bd3e7['start'],_0x2e3c43=_0x2e3c43['isAfter'](_0x3bd3e7['end'])?_0x2e3c43:_0x3bd3e7['end'],_0x5e7175?_0x3bd3e7['start']['isBefore'](_0x5e7175['getFirstRange']()['start'])?(_0x5e7175['removeMarkers'](),_0x5e7175=_0x4ccaa7):_0x4ccaa7['removeMarkers']():_0x5e7175=_0x4ccaa7;}else{const _0x26ed55=_0x444d44['getIntersection'](_0x3bd3e7);this['_cutOutSuggestionMarker'](_0x4ccaa7,_0x26ed55);}}const _0x1ea6a3=this['editor']['plugins']['get']('Users')['me'],_0x50eb86=_0x386e7f(),_0x56b515=_0x1ea6a3['id'];if(_0x5e7175)return this['_setSuggestionRange'](_0x5e7175,this['_model']['createRange'](_0x1a257a,_0x2e3c43)),_0x5e7175;{const _0x18f2cd=this['_setSuggestionData']({'id':_0x50eb86,'type':'formatBlock:'+_0xbb6ac5,'data':_0x310d71,'createdAt':new Date(),'authorId':_0x56b515,'attributes':_0x4e9c3f});return this['_addSuggestionMarker']('formatBlock:'+_0xbb6ac5,_0x50eb86,_0x56b515,this['_model']['createRange'](_0x1a257a,_0x2e3c43)),_0x18f2cd;}}['markMultiRangeBlockFormat'](_0x47926b,_0xa6552c,_0x429f27=[],_0x9197ea=null,_0x5cf2f2={}){_0xa6552c['formatGroupId']||(_0xa6552c['formatGroupId']=_0xa6552c['commandName']);const _0x372cb0=_0x47926b[0x0];_0xa6552c['multipleBlocks']=_0x372cb0['is']('range'),_0x9197ea=_0x9197ea||Vt(_0xa6552c);const _0x298cb8=_0x429f27['map'](_0x28a891=>Gt(_0x28a891,this['_model'])),_0x4bdc3f=_0x372cb0['is']('range')?_0x47926b:_0x47926b['map'](_0x5a240f=>Gt(_0x5a240f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x265fd1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9197ea,'accept');return this['forceDefaultExecution'](()=>_0x265fd1(_0x4bdc3f,_0xa6552c,_0x5cf2f2)),null;}_0x298cb8['push'](..._0x4bdc3f);let _0x2002dd=!0x0;for(const _0x12f99c of _0x298cb8)if(!this['_rangeIsInLocalUserInsertion'](_0x12f99c)){_0x2002dd=!0x1;break;}if(_0x2002dd&&'always'!==this['_trackFormatChanges']){const _0x5f179e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9197ea,'accept');return this['forceDefaultExecution'](()=>_0x5f179e(_0x4bdc3f,_0xa6552c,_0x5cf2f2)),null;}const _0x26048b=this['editor']['plugins']['get']('Users')['me'];for(const _0x54fbbc of this['getSuggestions']()){if(_0x54fbbc['author']['id']!=_0x26048b['id'])continue;if('formatBlock'!=_0x54fbbc['type']||_0x54fbbc['data']['formatGroupId']!=_0xa6552c['formatGroupId'])continue;if(!Lt(_0x54fbbc,_0x5cf2f2))continue;const _0x21c7aa=_0x54fbbc['subType']==_0x9197ea;for(let _0x37c630=0x0;_0x37c630<_0x4bdc3f['length'];_0x37c630++){const _0x34a5ea=_0x4bdc3f[_0x37c630];for(const _0x50b9a6 of _0x54fbbc['getMarkers']()){const _0xb6750f=_0x50b9a6['getRange']();if(_0x34a5ea['isEqual'](_0xb6750f)){_0x21c7aa?(_0x4bdc3f['splice'](_0x37c630,0x1),_0x37c630--):_0x54fbbc['removeMarker'](_0x50b9a6['name']);break;}}}}if(0x0==_0x4bdc3f['length'])return null;const _0x41dec2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9197ea,'join');for(const _0x2eabee of this['getSuggestions']())if(_0x2eabee['author']['id']==_0x26048b['id']&&'formatBlock'==_0x2eabee['type']&&_0x2eabee['data']['formatGroupId']==_0xa6552c['formatGroupId']&&_0x2eabee['subType']==_0x9197ea&&Lt(_0x2eabee,_0x5cf2f2)&&(_0x41dec2(_0x2eabee['getRanges'](),_0x4bdc3f)||_0x41dec2(_0x4bdc3f,_0x2eabee['getRanges']()))){for(const _0x35448b of _0x4bdc3f)_0x2eabee['addRange'](_0x35448b);return _0x2eabee;}const _0x554f7b=_0x386e7f(),_0x561980=_0x26048b['id'],_0x317bb1='formatBlock:'+_0x9197ea,_0x5e143a=this['_setSuggestionData']({'id':_0x554f7b,'type':_0x317bb1,'data':_0xa6552c,'createdAt':new Date(),'authorId':_0x561980,'attributes':_0x5cf2f2});for(const _0x44abf6 of _0x4bdc3f)this['_addSuggestionMarker'](_0x317bb1,_0x554f7b,_0x561980,_0x44abf6,u['getMultiRangeId']());return _0x5e143a;}['markDeletion'](_0x3b8530,_0x1db4d0=null,_0x124dfa={}){if(_0x3b8530['isCollapsed'])return null;const _0x226b29=this['editor']['plugins']['get']('Users')['me'],_0x3db405=new _0x2e923c(_0x3b8530['start'],_0x3b8530['end']);for(const {suggestion:_0x26b85f,meta:_0x4dd170}of this['_findSuggestions'](_0x3db405,'insertion'))if(_0x4dd170['isOwn']&&!_0x4dd170['isNextTo']){if(_0x26b85f['isMultiRange']){const _0x51b155=_0x26b85f['getRanges']()['filter'](_0x122927=>'$graveyard'!=_0x122927['root']['rootName']);_0x51b155['every'](_0x374b67=>_0x3db405['containsRange'](_0x374b67,!0x0))&&_0x26b85f['discard']();if(_0x51b155['some'](_0x4107e6=>_0x4107e6['containsRange'](_0x3db405,!0x0))){const _0x3944f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1db4d0,'accept');return this['forceDefaultExecution'](()=>_0x3944f1([_0x3db405],null,_0x124dfa)),null;}}else{const _0x15cb32=_0x3db405['getIntersection'](_0x26b85f['getFirstRange']());null!==_0x15cb32&&_0x26b85f['_onDiscard']([_0x15cb32],null,_0x124dfa);}}if(_0x3db405['detach'](),_0x3db405['isCollapsed']||'$graveyard'==_0x3db405['root']['rootName'])return null;let _0x196494=null,_0x3e9837=_0x3db405['start'],_0x3db36a=_0x3db405['end'];const _0x46ad0d=this['_findSuggestions'](_0x3db405,'deletion');for(const {suggestion:_0x5da826,meta:_0x336686}of _0x46ad0d){const _0x5149f5=this['_model']['createRange'](_0x3e9837,_0x3db36a);if(_0x336686['isOwn']&&(this['_mergeNestedSuggestions']||!_0x336686['containsRangeInObject']&&!_0x336686['isInsideObject'])){if(_0x5da826['isMultiRange']){if(!Lt(_0x5da826,_0x124dfa))continue;let _0xbd5365=!0x0;for(const _0x50c820 of _0x5da826['getRanges']()){if(_0x50c820['containsRange'](_0x5149f5,!0x0))return _0x5da826;_0x5149f5['containsRange'](_0x50c820)||(_0xbd5365=!0x1);}_0xbd5365&&_0x5da826['discard']();}else{const _0x14f4e0=_0x5da826['getFirstRange']();if(_0x14f4e0['containsRange'](_0x5149f5,!0x0))return _0x5da826;if(!Lt(_0x5da826,_0x124dfa)){_0x5149f5['containsRange'](_0x14f4e0)?_0x5da826['removeMarkers']():_0x14f4e0['containsPosition'](_0x3e9837)?_0x3e9837=_0x14f4e0['end']:_0x14f4e0['containsPosition'](_0x3db36a)&&(_0x3db36a=_0x14f4e0['start']);continue;}_0x3e9837=_0x3e9837['isBefore'](_0x14f4e0['start'])?_0x3e9837:_0x14f4e0['start'],_0x3db36a=_0x3db36a['isAfter'](_0x14f4e0['end'])?_0x3db36a:_0x14f4e0['end'],_0x124dfa=Object['assign']({},_0x5da826['attributes']),_0x196494?_0x14f4e0['start']['isBefore'](_0x196494['getFirstRange']()['start'])?(_0x196494['removeMarkers'](),_0x196494=_0x5da826):_0x5da826['removeMarkers']():_0x196494=_0x5da826;}}}if(_0x196494)return this['_setSuggestionRange'](_0x196494,this['_model']['createRange'](_0x3e9837,_0x3db36a)),_0x196494;{const _0x1e4b6a=_0x386e7f(),_0x34fb62=this['_model']['createRange'](_0x3e9837,_0x3db36a),_0x5e3fe0=_0x226b29['id'],_0x43359c=_0x1db4d0?'deletion:'+_0x1db4d0:'deletion',_0xa8a162=this['_setSuggestionData']({'id':_0x1e4b6a,'type':_0x43359c,'createdAt':new Date(),'authorId':_0x5e3fe0,'attributes':_0x124dfa});return this['_addSuggestionMarker'](_0x43359c,_0x1e4b6a,_0x5e3fe0,_0x34fb62),_0xa8a162;}}['markMultiRangeDeletion'](_0x5e71b9,_0x5f1239='multi',_0x54e02f={}){const _0x41f02a=this['editor']['plugins']['get']('Users')['me'],_0x17ad41=_0x5e71b9['map'](_0x34b2d6=>new _0x2e923c(_0x34b2d6['start'],_0x34b2d6['end'])),_0x3c77ab=new Set();for(const {suggestion:_0x31ea7b,meta:_0x33cbac}of this['_findSuggestions'](_0x17ad41,'insertion'))_0x33cbac['isOwn']&&!_0x33cbac['isNextTo']&&_0x3c77ab['add'](_0x31ea7b);for(const _0x204e22 of _0x3c77ab)if(_0x204e22['isMultiRange']){const _0x89db1c=_0x204e22['getRanges']();(!_0x204e22['attributes']||!_0x204e22['attributes']['skipNestingCheck'])&&(_0x89db1c['every'](_0x4c0d88=>_0x17ad41['some'](_0x277b58=>_0x277b58['containsRange'](_0x4c0d88,!0x0)))&&_0x204e22['discard']());if(_0x17ad41['every'](_0x421667=>_0x89db1c['some'](_0x54ff05=>_0x54ff05['containsRange'](_0x421667,!0x0)))){const _0x568427=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f1239,'accept');return this['forceDefaultExecution'](()=>_0x568427(_0x5e71b9,null,_0x54e02f)),null;}}else{const _0x157858=_0x204e22['getFirstRange']();_0x17ad41['some'](_0x44d895=>_0x44d895['containsRange'](_0x157858,!0x0))&&_0x204e22['discard']();if(_0x17ad41['every'](_0x304f67=>_0x157858['containsRange'](_0x304f67,!0x0))){const _0x1f2964=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f1239,'accept');return this['forceDefaultExecution'](()=>_0x1f2964(_0x17ad41,null,_0x54e02f)),null;}}const _0x1fa90f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f1239,'join');let _0x452d68=null;for(const _0x595433 of this['getSuggestions']())if(_0x595433['author']['id']==_0x41f02a['id']&&_0x595433['isInContent']&&'deletion'==_0x595433['type']&&_0x595433['subType']==_0x5f1239&&Lt(_0x595433,_0x54e02f)&&(_0x1fa90f(_0x595433['getRanges'](),_0x17ad41)||_0x1fa90f(_0x17ad41,_0x595433['getRanges']()))){if(_0x452d68){if(_0x595433['commentThread']&&_0x595433['commentThread']['length'])continue;for(const _0x227020 of _0x595433['getRanges']())_0x452d68['isIntersectingWithRange'](_0x227020)||_0x452d68['addRange'](_0x227020);_0x595433['removeMarkers']();}else{_0x452d68=_0x595433;for(const _0x4e2261 of _0x17ad41)_0x595433['isIntersectingWithRange'](_0x4e2261)||_0x595433['addRange'](_0x4e2261);}}if(_0x452d68)return _0x452d68;_0x3c77ab['clear']();for(const {suggestion:_0x1f2f9a,meta:_0x1770e8}of this['_findSuggestions'](_0x17ad41,'deletion'))_0x1770e8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1770e8['containsRangeInObject']&&!_0x1770e8['isInsideObject'])&&Lt(_0x1f2f9a,_0x54e02f)&&_0x3c77ab['add'](_0x1f2f9a);for(const _0x169828 of _0x3c77ab){const _0x1f3c8e=_0x169828['getRanges']();if(!_0x54e02f||!_0x54e02f['skipNestingCheck']){if(_0x17ad41['every'](_0x3e68e3=>_0x1f3c8e['some'](_0x1f44c4=>_0x1f44c4['containsRange'](_0x3e68e3,!0x0))))return _0x169828;}(!_0x169828['attributes']||!_0x169828['attributes']['skipNestingCheck'])&&(_0x1f3c8e['every'](_0x5b9bf0=>_0x17ad41['some'](_0x5c37ce=>_0x5c37ce['containsRange'](_0x5b9bf0,!0x0)))&&_0x169828['discard']());}const _0x116e66=_0x386e7f(),_0x2a4395=_0x41f02a['id'],_0x446ea0='deletion:'+_0x5f1239,_0x5b1fd5=this['_setSuggestionData']({'id':_0x116e66,'type':_0x446ea0,'createdAt':new Date(),'authorId':_0x2a4395,'attributes':_0x54e02f});for(const _0x5b5095 of _0x17ad41)_0x5b5095['detach'](),_0x5b5095['isCollapsed']||'$graveyard'==_0x5b5095['root']['rootName']||this['_addSuggestionMarker'](_0x446ea0,_0x116e66,_0x2a4395,_0x5b5095,u['getMultiRangeId']());return _0x5b1fd5;}['markAttributeChange'](_0x256aa2,_0x2c9915,_0x19813f,_0x351257,_0x27481e){if(_0x256aa2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f0750=this['editor']['plugins']['get']('Users')['me']['id'],_0x22544b=Array['from'](this['_suggestions']['values']())['filter'](_0x26e927=>'attribute'==_0x26e927['type']&&_0x26e927['data']['key']==_0x2c9915&&_0x26e927['isIntersectingWithRange'](_0x256aa2));if('default'===this['_trackFormatChanges']){const _0x398e59=this['_findSuggestions'](_0x256aa2,'insertion')['filter'](({meta:_0x5e0d54})=>_0x5e0d54['isOwn']&&!_0x5e0d54['isInsideObject']&&!_0x5e0d54['isNextTo'])['map'](({suggestion:_0x5d3309})=>_0x5d3309);_0x22544b['unshift'](..._0x398e59);}const _0x1fac0d=new Map([[_0x256aa2,_0x19813f]]);for(const _0x219a00 of _0x22544b){const _0x452c53='attribute'==_0x219a00['type']?_0x219a00['data']['oldValue']:void 0x0,_0x579b96=_0x219a00['getFirstRange'](),_0x543432=Array['from'](_0x1fac0d['keys']())['find'](_0xa2bee=>_0xa2bee['isIntersecting'](_0x579b96));if(!_0x543432)continue;const _0x3a9a62=_0x543432['getDifference'](_0x579b96);this['_isBlockAttribute'](_0x2c9915)&&'insertion'==_0x219a00['type']&&0x0!=_0x3a9a62['length']||(_0x1fac0d['delete'](_0x543432),_0x3a9a62['forEach'](_0x1b6f51=>{_0x1fac0d['set'](_0x1b6f51,_0x19813f);}),'insertion'!=_0x219a00['type']&&_0x452c53!=_0x351257&&_0x1fac0d['set'](_0x543432['getIntersection'](_0x579b96),_0x452c53));}const _0x378f23=[];for(const [_0x5e760f,_0x919734]of _0x1fac0d){const _0xe78c7b=_0x386e7f(),_0x7b681f={'key':_0x2c9915,'oldValue':_0x919734,'newValue':_0x351257};_0x2c9915['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':_0x2c9915});const _0x400422=('attribute:'+(_0x2c9915+'|'+Vt({'newValue':_0x351257})))['substring'](0x0,0x3c),_0x507bb0=this['_setSuggestionData']({'id':_0xe78c7b,'type':_0x400422,'data':_0x7b681f,'createdAt':new Date(),'authorId':_0x2f0750,'attributes':_0x27481e});_0x378f23['push'](_0x507bb0),this['_addSuggestionMarker'](_0x400422,_0xe78c7b,_0x2f0750,_0x5e760f);}return _0x378f23;}['enableDefaultAttributesIntegration'](_0x1afcbc){this['enableCommand'](_0x1afcbc,(_0x496206,..._0x2442d4)=>{this['_recordAttributeChanges'](()=>{_0x496206(..._0x2442d4);});});}['registerBlockAttribute'](_0x207cdb){this['_blockAttributeKeys']['add'](_0x207cdb);}['registerInlineAttribute'](_0x14b58c){this['_inlineAttributeKeys']['add'](_0x14b58c);}['_getAttributeKey'](_0x915cd0){return'attribute'==_0x915cd0['type']?_0x915cd0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b8052,_0x3ac289){const _0x386ad8=_0x1b8052['getFirstMarker']();this['_model']['change'](_0x3e8d30=>{_0x3e8d30['updateMarker'](_0x386ad8,{'range':_0x3ac289});});}['_addThreadToSuggestion'](_0x1b7e42){const _0x3b2bf5=_0x1b7e42['id'],_0x5904ff=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3b2bf5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5904ff,'threadId':_0x3b2bf5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x598447=this['_commentsRepository']['getCommentThread'](_0x3b2bf5);_0x598447['unbind']('isRemovable'),_0x598447['isRemovable']=!0x1,_0x1b7e42['commentThread']=_0x598447;}['_checkSuggestionCorrectness'](_0x5a8f3d,_0x3fd2e5,_0x20a50e,_0x5c34bc){if(_0x5a8f3d['type']!=_0x3fd2e5||_0x5a8f3d['subType']!=_0x20a50e||_0x5a8f3d['creator']['id']!=_0x5c34bc)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x144d61('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x9f6763,_0x46680f){const _0x43cdee=_0x9f6763['getFirstRange']();if(_0x46680f['isEqual'](_0x43cdee))_0x9f6763['removeMarkers']();else{if(_0x43cdee['containsRange'](_0x46680f)){const _0x437c58=this['_model']['createPositionAt'](_0x46680f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9f6763,this['_model']['createRange'](_0x43cdee['start'],_0x437c58));const _0x375d08=_0x386e7f(),_0x1a4ea5=_0x9f6763['creator']['id'],_0x18fdeb=_0x9f6763['type']+':'+_0x9f6763['subType'];this['_setSuggestionData']({'id':_0x375d08,'type':_0x18fdeb,'createdAt':new Date(),'authorId':_0x1a4ea5,'data':_0x9f6763['data'],'attributes':_0x9f6763['attributes']});const _0x10b935=this['_model']['createPositionAt'](_0x46680f['end']['parent'],'after'),_0x44cb54=this['_model']['createRange'](_0x10b935,_0x43cdee['end']);this['_addSuggestionMarker'](_0x18fdeb,_0x375d08,_0x1a4ea5,_0x44cb54);}else{if(_0x43cdee['containsPosition'](_0x46680f['start'])){const _0x389c08=this['_model']['createPositionAt'](_0x46680f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9f6763,this['_model']['createRange'](_0x43cdee['start'],_0x389c08));}else{const _0x2f32da=this['_model']['createPositionAt'](_0x46680f['end']['parent'],'after');this['_setSuggestionRange'](_0x9f6763,this['_model']['createRange'](_0x2f32da,_0x43cdee['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x40ef4e){for(const {suggestion:_0x5e3a57,meta:_0x16b687}of this['_findSuggestions'](_0x40ef4e,'insertion')){if(!_0x16b687['isOwn'])continue;const _0x47a2e9=_0x5e3a57['getRanges']();for(const _0x454113 of _0x47a2e9)if(!_0x40ef4e['getDifference'](_0x454113)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xa49fef){const _0x11eb06=this['editor']['plugins']['get']('Users')['getUser'](_0xa49fef);if(!_0x11eb06)throw new _0x144d61('track-changes-user-not-found',this);return _0x11eb06;}['_getExternalAuthor'](_0x2e519c){const _0x270e3a=this['editor']['plugins']['get']('Users'),_0x3a18f1=_0xf37622('external:'+_0x2e519c),_0x230abd=_0x270e3a['getUser'](_0x3a18f1);return _0x230abd||_0x270e3a['addUser']({'id':_0x3a18f1,'name':_0x2e519c});}['_createSuggestion'](_0x9daed4,_0x446049,_0x198253,_0x299061,_0x38a347){const _0x5d6228=this['_getAuthorFromId'](_0x299061),_0x2fcec4=this['_suggestionFactory']['buildSuggestion'](_0x9daed4,_0x446049,_0x198253,_0x5d6228,_0x38a347,_0x43e36f=>{this['_updateSuggestionData'](_0x198253,{'attributes':_0x43e36f});const _0x4473a1=this['getSuggestion'](_0x198253);this['_joinWithAdjacentSuggestions'](new Set([_0x4473a1])),this['_refreshSuggestionsChain'](new Set([_0x4473a1]));});return this['listenTo'](_0x2fcec4,'accept',()=>{this['_updateSuggestionData'](_0x198253,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2fcec4,'discard',()=>{this['_updateSuggestionData'](_0x198253,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x198253,_0x2fcec4),this['_suggestionState']['set'](_0x2fcec4,'notReady'),_0x2fcec4;}['_splitMarkerName'](_0x73b5f6){const _0x7f770d=_0x73b5f6['split'](':');return{'group':_0x7f770d[0x0],'type':_0x7f770d[0x1],'subType':_0x7f770d['length']>=0x5?_0x7f770d[0x2]:null,'id':_0x7f770d['length']<0x5?_0x7f770d[0x2]:_0x7f770d[0x3],'authorId':_0x7f770d['length']<0x5?_0x7f770d[0x3]:_0x7f770d[0x4],'markerCount':0x6==_0x7f770d['length']?_0x7f770d[0x5]:null};}['_breakSuggestionMarker'](_0x11e05e,_0x5e84b5,_0x115077){const _0x5b02aa=_0x11e05e['getFirstRange'](),_0x51dde3=_0x5b02aa['start'],_0xd6da31=_0x5b02aa['end'];this['_setSuggestionRange'](_0x11e05e,this['_model']['createRange'](_0x51dde3,_0x5e84b5));const _0xddd5c4=_0x386e7f(),_0x16f2d1=_0x11e05e['creator']['id'],_0x1d165c=_0x11e05e['type']+(_0x11e05e['subType']?':'+_0x11e05e['subType']:'');this['_setSuggestionData']({'id':_0xddd5c4,'type':_0x1d165c,'createdAt':new Date(),'authorId':_0x16f2d1,'originalSuggestionId':_0x11e05e['id'],'attributes':_0x11e05e['attributes'],'data':_0x11e05e['data']});const _0x1d0373=this['_getAttributeKey'](_0x11e05e);('formatBlock'==_0x11e05e['type']||_0x1d0373&&this['_isBlockAttribute'](_0x1d0373))&&(_0x115077=this['_model']['createPositionBefore'](_0x115077['parent'])),this['_addSuggestionMarker'](_0x1d165c,_0xddd5c4,_0x16f2d1,this['_model']['createRange'](_0x115077,_0xd6da31));}['_findSuggestions'](_0x4e4686,_0x2b48d6=null){const _0x43bbba=[],_0x2abfa0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4e4686)||(_0x4e4686=[_0x4e4686]);for(const _0x1e00ad of this['getSuggestions']()){if(!_0x1e00ad['isInContent'])continue;if(_0x2b48d6&&_0x1e00ad['type']!=_0x2b48d6)continue;let _0x437c04=!0x1;for(const _0x4855c8 of _0x1e00ad['getRanges']()){for(const _0xbb2191 of _0x4e4686){const _0x1d8668=_0xbb2191['start']['isEqual'](_0x4855c8['end'])||_0xbb2191['end']['isEqual'](_0x4855c8['start']);if(_0x1d8668||_0xbb2191['getIntersection'](_0x4855c8)){const _0x530ee9=_0xbb2191['containsRange'](_0x4855c8)&&Rt(this['_model']['schema'],_0x4855c8['start'],_0xbb2191),_0x13f50d=_0x4855c8['containsRange'](_0xbb2191)&&Rt(this['_model']['schema'],_0xbb2191['start'],_0x4855c8);_0x43bbba['push']({'suggestion':_0x1e00ad,'meta':{'isOwn':_0x2abfa0==_0x1e00ad['author'],'isNextTo':_0x1d8668,'isInsideObject':_0x530ee9,'containsRangeInObject':_0x13f50d}}),_0x437c04=!0x0;break;}}if(_0x437c04)break;}}return _0x43bbba;}['_addSuggestionMarker'](_0x2466f0,_0x61fa4a,_0x1cd94e,_0x3d11b3,_0x4bd222){this['_model']['change'](_0x4c84a3=>{let _0x5edea1='suggestion:'+_0x2466f0+':'+_0x61fa4a+':'+_0x1cd94e;_0x4bd222&&(_0x5edea1=_0x5edea1+':'+_0x4bd222),_0x4c84a3['addMarker'](_0x5edea1,{'range':_0x3d11b3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x532e8d){const _0x289eb4=_0x532e8d['previous'],_0x38bb6d=_0x532e8d['next'];_0x532e8d['previous']=null,_0x532e8d['next']=null,null!=_0x289eb4&&_0x289eb4['next']==_0x532e8d&&(_0x289eb4['next']=_0x38bb6d),null!=_0x38bb6d&&_0x38bb6d['previous']==_0x532e8d&&(_0x38bb6d['previous']=_0x289eb4),'ready'==this['_suggestionState']['get'](_0x532e8d)&&(this['_suggestionState']['set'](_0x532e8d,'removed'),this['fire']('suggestionUnloaded',_0x532e8d,_0x289eb4,_0x38bb6d));}['_setSuggestionData'](_0x28e94b){const _0xdd2fa8=_0x28e94b['id'],_0x1c5929=this['addSuggestionData'](_0x28e94b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x96059c=this['editor']['plugins']['get']('PendingActions'),_0x582b80=_0x1c5929['hasComments'],_0x684c22=_0x1c5929['subType']?_0x1c5929['type']+':'+_0x1c5929['subType']:_0x1c5929['type'],_0x43fd16=this['editor']['locale'],_0x57bc4e=_0x96059c['add'](o(_0x43fd16,'PENDING_ACTION_SUGGESTION')),_0x5e2962={'id':_0xdd2fa8,'type':_0x684c22,'hasComments':_0x582b80,'data':_0x28e94b['data']||null,'originalSuggestionId':_0x28e94b['originalSuggestionId']||null,'attributes':_0x1c5929['attributes']};this['_adapter']['addSuggestion'](_0x5e2962)['then'](_0x4ba437=>{_0x1c5929['_saved']=!0x0,_0x96059c['remove'](_0x57bc4e),_0x4ba437&&_0x4ba437['createdAt']&&(this['_suggestions']['get'](_0xdd2fa8)['createdAt']=_0x4ba437['createdAt']);})['catch'](_0x36a4c8=>{throw _0x57e9f2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1c5929['discard']();}),_0x1c5929['stopListening'](),this['_suggestions']['delete'](_0x1c5929['id']),this['_suggestionState']['delete'](_0x1c5929),_0x36a4c8;});}return _0x1c5929;}['_isBlockAttribute'](_0x5a5c82){return this['_blockAttributeKeys']['has'](_0x5a5c82);}['_updateSuggestionData'](_0x460f4e,_0x3e7cee){const _0x398cf1=this['editor']['plugins']['get']('PendingActions'),_0x4a4b73=this['getSuggestion'](_0x460f4e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a4b73['_saved']){const _0x48c04f=_0x398cf1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x460f4e,_0x3e7cee)['then'](()=>{_0x398cf1['remove'](_0x48c04f);});}else _0x4a4b73['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x460f4e,_0x3e7cee);});}}['_getSuggestionData'](_0x4ac39d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x144d61('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ac39d);}['_handleNewSuggestionMarker'](_0x10bd18){const {id:_0x166dcc,type:_0x35ba77,subType:_0x16bb40,authorId:_0x1511b9}=this['_splitMarkerName'](_0x10bd18),_0x2636bf=this['_suggestions']['get'](_0x166dcc)||this['_createSuggestion'](_0x35ba77,_0x16bb40,_0x166dcc,_0x1511b9,{});switch(this['_checkSuggestionCorrectness'](_0x2636bf,_0x35ba77,_0x16bb40,_0x1511b9),this['_suggestionState']['get'](_0x2636bf)){case'notReady':this['_getSuggestionData'](_0x166dcc)['then'](_0x79cd6f=>{let _0x4119bf=Promise['resolve']();_0x79cd6f['hasComments']&&(_0x4119bf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x166dcc})),_0x4119bf['then'](()=>{this['addSuggestionData'](_0x79cd6f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2636bf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x166dcc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2636bf,'ready'),this['fire']('suggestionLoaded',_0x2636bf);break;case'ready':this['fire']('suggestionChanged',_0x2636bf);}return _0x2636bf['addMarkerName'](_0x10bd18),_0x2636bf;}['_refreshSuggestionsChain'](_0x41d7f5){const _0x311636=Array['from'](_0x41d7f5),_0x38efd9=_0x311636['filter'](_0x5a809e=>'attribute'==_0x5a809e['type']);this['_refreshAttributeSuggestionsChain'](_0x38efd9);const _0x53d655=_0x311636['filter'](_0x4448ec=>!_0x4448ec['isMultiRange']&&'attribute'!=_0x4448ec['type']),_0x44ddbd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f1c93=>!_0x1f1c93['isMultiRange']&&'attribute'!=_0x1f1c93['type']),_0x4ad134=_0x44ddbd['filter'](_0x4a6107=>!_0x41d7f5['has'](_0x4a6107)),_0x344179=new Map(_0x44ddbd['map'](_0xa80e42=>[_0xa80e42,this['_suggestionFactory']['getSuggestionCallback'](_0xa80e42['type'],_0xa80e42['subType'],'chain')])),_0x19a47b=new Map(_0x44ddbd['map'](_0x456a83=>[_0x456a83,_0x456a83['getFirstRange']()])),_0x11f5f8=new Set(),_0x561710=new Set();for(let _0x4a9664=0x0;_0x4a9664<_0x53d655['length'];_0x4a9664++)_0x32998d(_0x53d655[_0x4a9664],_0x53d655,_0x4a9664+0x1);for(let _0x28e135=0x0;_0x28e135<_0x53d655['length'];_0x28e135++)_0x32998d(_0x53d655[_0x28e135],_0x4ad134,0x0);const _0x376fa1=new Set();for(let _0x4d8514=0x0;_0x4d8514<_0x53d655['length'];_0x4d8514++){const _0x37a662=_0x53d655[_0x4d8514];!_0x561710['has'](_0x37a662)&&_0x37a662['previous']&&(_0x376fa1['add'](_0x37a662['previous']),_0x37a662['previous']['next']===_0x37a662&&(_0x37a662['previous']['next']=null),_0x37a662['previous']=null),!_0x11f5f8['has'](_0x37a662)&&_0x37a662['next']&&(_0x376fa1['add'](_0x37a662['next']),_0x37a662['next']['previous']===_0x37a662&&(_0x37a662['next']['previous']=null),_0x37a662['next']=null);}function _0x32998d(_0xf109d0,_0x499df0,_0x2e543e){for(let _0x68f488=_0x2e543e;_0x68f488<_0x499df0['length'];_0x68f488++){const _0x547857=_0x521efb(_0xf109d0,_0x499df0[_0x68f488]);_0x547857&&(_0x547857[0x0]['next']=_0x547857[0x1],_0x547857[0x1]['previous']=_0x547857[0x0],_0x11f5f8['add'](_0x547857[0x0]),_0x561710['add'](_0x547857[0x1]));}}function _0x521efb(_0x408fca,_0x333c0d){if(_0x408fca['author']['id']!==_0x333c0d['author']['id'])return null;const _0x4c7295=_0x344179['get'](_0x408fca)(_0x408fca,_0x333c0d,_0x19a47b['get'](_0x408fca),_0x19a47b['get'](_0x333c0d));if(!_0x4c7295)return null;return _0x344179['get'](_0x333c0d)(_0x408fca,_0x333c0d,_0x19a47b['get'](_0x408fca),_0x19a47b['get'](_0x333c0d))?_0x4c7295[0x1]['commentThread']&&_0x4c7295[0x1]['commentThread']['length']?null:_0x4c7295:null;}_0x376fa1['size']&&this['_refreshSuggestionsChain'](_0x376fa1);}['_refreshAttributeSuggestionsChain'](_0x15409b){if(0x0==_0x15409b['length'])return;const _0x5b3532=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1594c6=>'attribute'==_0x1594c6['type']&&_0x1594c6['_isDataLoaded']),_0x3c2112=[],_0x3cb150=new Map();for(const _0x126f7b of _0x5b3532){const _0x42039d=_0xf37622(_0x126f7b['attributes']);_0x3cb150['has'](_0x42039d)||(_0x3cb150['set'](_0x42039d,_0x3c2112['length']),_0x3c2112['push']([]));const _0x5a16ac=_0x3cb150['get'](_0x42039d);_0x3c2112[_0x5a16ac]['push'](_0x126f7b);}!(function(){_0x3c2112['sort']((_0x2f390b,_0x11530d)=>{const _0x195b7f=_0x2f390b[0x0]['createdAt'],_0x4ed4dc=_0x11530d[0x0]['createdAt'];return _0x195b7f==_0x4ed4dc?_0x2f390b[0x0]['attributes']['groupId']<_0x11530d[0x0]['attributes']['groupId']?-0x1:0x1:_0x195b7f<_0x4ed4dc?-0x1:0x1;});for(const _0x464bb0 of _0x3c2112)_0x464bb0['sort']((_0x3e239e,_0x2500dd)=>_0x3e239e['id']<_0x2500dd['id']?-0x1:0x1);}());for(let _0x547702=0x0;_0x547702<_0x3c2112['length'];_0x547702++){if(0x0==_0x3c2112[_0x547702]['length'])continue;const _0x92943e=[];for(let _0x404a41=_0x547702+0x1;_0x404a41<_0x3c2112['length'];_0x404a41++)0x0!=_0x3c2112[_0x404a41]['length']&&_0x2ad901(_0x3c2112[_0x547702],_0x3c2112[_0x404a41])&&_0x92943e['push'](_0x404a41);for(const _0x5895e6 of _0x92943e)_0x3c2112[_0x547702]=_0x3c2112[_0x547702]['concat'](_0x3c2112[_0x5895e6]),_0x3c2112[_0x5895e6]=[];}for(const _0x187829 of _0x3c2112)for(let _0xb7067=0x0;_0xb7067<_0x187829['length'];_0xb7067++)_0x187829[_0xb7067]['next']=_0x187829[_0xb7067+0x1]||null;for(const _0x2a1bf1 of _0x3c2112)for(let _0x4320b9=0x0;_0x4320b9<_0x2a1bf1['length'];_0x4320b9++)_0x2a1bf1[_0x4320b9]['previous']=_0x2a1bf1[_0x4320b9-0x1]||null;function _0x2ad901(_0x69e622,_0x120f53){if(_0x69e622[0x0]['attributes']['groupId']!==_0x120f53[0x0]['attributes']['groupId']&&_0x69e622[0x0]['author']!==_0x120f53[0x0]['author'])return!0x1;if(!function(_0x29cf00,_0x4bd187){if(!_0x29cf00['hasComments']&&!_0x4bd187['hasComments'])return!0x0;if(_0x29cf00['hasComments']&&_0x4bd187['hasComments'])return!0x1;if(_0x29cf00['hasComments']&&_0x4bd187['createdAt']<_0x29cf00['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4bd187['hasComments']&&_0x29cf00['createdAt']<_0x4bd187['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x69e622[0x0],_0x120f53[0x0]))return!0x1;const _0x31644f=Bt(_0x69e622[0x0]['attributes'],'groupId'),_0x164c7e=Bt(_0x120f53[0x0]['attributes'],'groupId');if(!_0x1b166e(_0x31644f,_0x164c7e))return!0x1;return!!_0x69e622['every'](_0x96350=>_0x120f53['some'](_0x206e31=>_0x96350['getFirstRange']()['isEqual'](_0x206e31['getFirstRange']())))&&_0x120f53['every'](_0x244879=>_0x69e622['some'](_0xa729ac=>_0x244879['getFirstRange']()['isEqual'](_0xa729ac['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5751b6){const _0x16a349=Array['from'](_0x5751b6),_0x3cb396=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a1893=_0x3cb396['filter'](_0x4c4032=>!_0x5751b6['has'](_0x4c4032)),_0x232518=new Map(_0x16a349['map'](_0x458352=>[_0x458352,this['_suggestionFactory']['getSuggestionCallback'](_0x458352['type'],_0x458352['subType'],'join')])),_0x59c74f=new Map(_0x3cb396['map'](_0x566fe5=>[_0x566fe5,_0x566fe5['getRanges']()]));for(let _0x3a4bbc=0x0;_0x3a4bbc<_0x16a349['length'];_0x3a4bbc++){if(_0x4c4ed5(this,_0x16a349[_0x3a4bbc],_0x16a349,_0x3a4bbc+0x1))return!0x0;}for(let _0x318c7e=0x0;_0x318c7e<_0x16a349['length'];_0x318c7e++){if(_0x4c4ed5(this,_0x16a349[_0x318c7e],_0x4a1893,0x0))return!0x0;}return!0x1;function _0x4c4ed5(_0x4bcaa6,_0x114b36,_0x4ced05,_0x3716bf){for(let _0x3d5607=_0x3716bf;_0x3d5607<_0x4ced05['length'];_0x3d5607++){const _0x295c63=_0x4ced05[_0x3d5607];if(_0x295c63['type']!==_0x114b36['type']||_0x295c63['author']['id']!==_0x114b36['author']['id']||_0x295c63['subType']!==_0x114b36['subType'])continue;if(!Pt(_0x114b36,_0x295c63,['groupId']))continue;if('attribute'==_0x114b36['type']&&_0x114b36['data']['oldValue']!=_0x295c63['data']['oldValue'])continue;if('attribute'==_0x114b36['type']&&_0x4bcaa6['_isBlockAttribute'](_0x114b36['data']['key']))continue;if('formatBlock'==_0x114b36['type']){const _0x5a68d7=_0x4bcaa6['editor']['model'],_0x11cb14=_0x114b36['getContainedElement']();if(_0x11cb14&&(_0x5a68d7['schema']['isObject'](_0x11cb14)||_0x5a68d7['schema']['isLimit'](_0x11cb14)))continue;}const _0x48c1b5=_0x232518['get'](_0x114b36),_0x39846b=_0x59c74f['get'](_0x114b36),_0x53d7a1=_0x59c74f['get'](_0x295c63),_0x3d7563=_0x114b36['commentThread']&&_0x114b36['commentThread']['length'],_0x474211=_0x295c63['commentThread']&&_0x295c63['commentThread']['length'];if(!_0x3d7563&&_0x48c1b5(_0x53d7a1,_0x39846b))return _0x4bcaa6['_joinSuggestions'](_0x295c63,_0x114b36),_0x59c74f['delete'](_0x114b36),!0x0;if(!_0x474211&&_0x48c1b5(_0x39846b,_0x53d7a1))return _0x4bcaa6['_joinSuggestions'](_0x114b36,_0x295c63),_0x59c74f['delete'](_0x295c63),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1cf51f,_0xa54aa1){if(_0x1cf51f['isMultiRange']){for(const _0xb186b of _0xa54aa1['getRanges']())_0x1cf51f['addRange'](_0xb186b);}else{const _0x1b1d85=_0xa54aa1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1cf51f,this['_model']['createRange'](_0x1cf51f['getFirstRange']()['start'],_0x1b1d85));}_0xa54aa1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3df145,_0x3d45fa){const _0x47badf=_0x3df145['startsWith']('format')||_0x3df145['startsWith']('attribute')?'FORMATTING':_0x3df145['toUpperCase']();return o(this['editor']['locale'],_0x3d45fa+'_'+_0x47badf+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x13f045=this['editor'];if(!_0x13f045['ui'])return;const {ariaLiveAnnouncer:_0xb1d283}=_0x13f045['ui'];_0x461911(this['_model'],({left:_0x5d2e2c,entered:_0x39ca30})=>{for(const _0x25ac86 of _0x5d2e2c){const {group:_0x1e2c23,type:_0x23276f}=this['_splitMarkerName'](_0x25ac86['name']);if('suggestion'===_0x1e2c23){_0xb1d283['announce'](this['_getMarkerAnnouncementText'](_0x23276f,'LEAVE'));break;}}for(const _0x546979 of _0x39ca30){const {group:_0x5270ca,type:_0x5f480c}=this['_splitMarkerName'](_0x546979['name']);if('suggestion'===_0x5270ca){_0xb1d283['announce'](this['_getMarkerAnnouncementText'](_0x5f480c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x530f8d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x416545=this['editor'],_0x250177=_0x416545['model']['document']['differ']['getChanges']();if(0x0==_0x250177['length'])return!0x1;const _0x3c0894=[],_0x3ea580=_0x250177['filter'](_0x6ca64e=>'attribute'==_0x6ca64e['type']),_0x4c45bc=_0x250177['filter'](_0x288b23=>'insert'==_0x288b23['type']&&'$text'!=_0x288b23['name']),_0x24864f=_0x250177['filter'](_0x6b9dba=>'remove'==_0x6b9dba['type']&&'$text'!=_0x6b9dba['name']);for(const _0x32a4c1 of _0x3ea580)_0x3c0894['push']({'key':_0x32a4c1['attributeKey'],'newValue':_0x32a4c1['attributeNewValue'],'oldValue':_0x32a4c1['attributeOldValue'],'range':Ot(_0x32a4c1['range'],_0x416545['model'])});for(const _0x2c8760 of _0x4c45bc){const _0x2175d7=_0x24864f['find'](_0x1280b1=>_0x1280b1['position']['isEqual'](_0x2c8760['position']));_0x2175d7&&_0x3c0894['push']({'key':m,'newValue':_0x2c8760['name'],'oldValue':_0x2175d7['name'],'range':_0x416545['model']['createRangeOn'](_0x2c8760['position']['nodeAfter'])});}return 0x0!=_0x3c0894['length']&&this['_reduceExistingSuggestions'](_0x530f8d,_0x3c0894);}['_processAttributeSuggestions'](_0x58e634){let _0x3539bd=!0x1;const _0x24d07f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49a696=>_0x49a696['data']['newRange']&&_0x49a696['name']['startsWith']('suggestion:attribute:'));for(const _0x2250aa of _0x24d07f){const {subType:_0x5edf85,id:_0x183104}=this['_splitMarkerName'](_0x2250aa['name']),_0xf964f1=_0x5edf85['split']('|')[0x0];for(const _0x21363e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x21363e['id']!=_0x183104&&'attribute'==_0x21363e['type']&&_0x21363e['data']&&_0x21363e['data']['key']==_0xf964f1&&_0x21363e['getFirstRange']()['isIntersecting'](_0x2250aa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x21363e,_0x2250aa['data']['newRange'],_0x58e634),_0x3539bd=!0x0);}return _0x3539bd;}['_recordAttributeChanges'](_0x20b571){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x20b571();}['_isRegisteredAttribute'](_0x4a2bcd){const _0x222a0a=this['_isBlockAttribute'](_0x4a2bcd),_0x5a93c2=this['_inlineAttributeKeys']['has'](_0x4a2bcd);return _0x222a0a||_0x5a93c2;}['_reduceExistingSuggestions'](_0x2ca477,_0x5330a9){if(0x0==_0x5330a9['length'])return!0x1;let _0x3ff38d=!0x1;for(const _0x57aec2 of _0x5330a9){const _0x3f084f=this['_findSuggestions'](_0x57aec2['range'],'attribute')['filter'](_0x1031b6=>!_0x1031b6['meta']['isNextTo'])['map'](_0x3d68d8=>_0x3d68d8['suggestion']),_0x3ff1cf=_0xf37622({'newValue':_0x57aec2['newValue']});_0x3f084f['filter'](_0x5ee1fa=>{const [_0x410e56,_0x38b357]=_0x5ee1fa['subType']['split']('|');return _0x410e56==_0x57aec2['key']&&_0x38b357!=_0x3ff1cf;})['forEach'](_0x4a374c=>{this['_reduceSuggestionAttributeRange'](_0x4a374c,_0x57aec2['range'],_0x2ca477),_0x3ff38d=!0x0;});}return _0x3ff38d;}['_reduceSuggestionAttributeRange'](_0x1f3bca,_0x532e9a,_0x50c785){const _0x5ae4ea=_0x1f3bca['getFirstRange']()['getDifference'](_0x532e9a);0x0!==_0x5ae4ea['length']?0x1!==_0x5ae4ea['length']?this['_breakSuggestionMarker'](_0x1f3bca,_0x532e9a['start'],_0x532e9a['end']):this['_setSuggestionRange'](_0x1f3bca,_0x5ae4ea[0x0]):_0x50c785['removeMarker'](_0x1f3bca['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ba688){this['_editor']=_0x5ba688,this['_model']=_0x5ba688['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x15d4f6,_0x2225e8,_0x254887,_0x17052f,_0x21b97d,_0x177807){return new u(this['_model'],{'type':_0x15d4f6,'subType':_0x2225e8,'id':_0x254887,'author':_0x17052f,'creator':_0x17052f,'attributes':_0x21b97d,'onAttributesChange':_0x177807,'onAccept':(..._0x40a72f)=>this['getSuggestionCallback'](_0x15d4f6,_0x2225e8,'accept')(..._0x40a72f),'onDiscard':(..._0x59c3f6)=>this['getSuggestionCallback'](_0x15d4f6,_0x2225e8,'discard')(..._0x59c3f6)});}['registerCustomCallback'](_0x1b2093,_0x55202a,_0x4274b3,_0x2e1703){const _0x59aa12=_0x1b2093+':'+_0x55202a+':'+_0x4274b3;this['_customCallbacks']['set'](_0x59aa12,_0x2e1703);}['getSuggestionCallback'](_0x3ef4b6,_0xe819c8,_0x55d80f){const _0xf3ee9b=_0x3ef4b6+':'+_0xe819c8+':'+_0x55d80f;return this['_customCallbacks']['get'](_0xf3ee9b)||this['_defaultCallbacks']['get'](_0x3ef4b6+':'+_0x55d80f);}['_registerDefaultCallbacks'](){const _0x1ecc06=()=>!0x1,_0x20ef0c=_0x4464b8=>{_0x4464b8['sort']((_0xf97649,_0x135ec5)=>_0xf97649['start']['isBefore'](_0x135ec5['start'])?0x1:-0x1),this['_model']['change'](_0x1f6748=>{for(const _0xb8aa6a of _0x4464b8){let _0x43d722;_0x43d722=_0xb8aa6a['end']['isAtEnd']&&_0xb8aa6a['end']['parent']==_0xb8aa6a['start']['nodeAfter']?_0x1f6748['createSelection'](_0xb8aa6a['start']['nodeAfter'],'on'):_0x1f6748['createSelection'](_0xb8aa6a),this['_model']['deleteContent'](_0x43d722,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f0d08=(_0x17dcdd,_0x480a71)=>{_0x480a71&&this['_model']['change'](_0x454edf=>{const {commandName:_0x274c57,commandParams:_0x4c7264=[]}=_0x480a71,_0x66f102=_0x17dcdd['map'](_0x5ba1b8=>(Tt(_0x5ba1b8)&&(_0x5ba1b8=this['_model']['createRange'](_0x5ba1b8['end'])),_0x5ba1b8))['filter'](_0x43e6ef=>'$graveyard'!==_0x43e6ef['root']['rootName']);if(_0x66f102['length']<0x1)return;const _0x1bb375=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x29ae35=>_0x2e923c['fromRange'](_0x29ae35));_0x454edf['setSelection'](_0x66f102);for(const _0x4f779d of this['_editor']['commands']['commands']())_0x4f779d['refresh']();_0x4c7264['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x274c57,..._0x4c7264);const _0x11142b=_0x1bb375['filter'](_0xbf7cd7=>'$graveyard'!=_0xbf7cd7['root']['rootName']);_0x11142b['length']>0x0&&_0x454edf['setSelection'](_0x11142b);for(const _0xc5193a of _0x1bb375)_0xc5193a['detach']();});},_0x588770=(_0x5706e2,_0x3e5cf2)=>0x1==_0x5706e2['length']&&0x1==_0x3e5cf2['length']&&_0x5706e2[0x0]['end']['isEqual'](_0x3e5cf2[0x0]['start']),_0x39df47=(_0x3c106e,_0x33b2a6,_0x2ef42c,_0x536b0d)=>Ft(_0x3c106e,_0x33b2a6,_0x2ef42c,_0x536b0d,this['_model'])?[_0x3c106e,_0x33b2a6]:Ft(_0x33b2a6,_0x3c106e,_0x536b0d,_0x2ef42c,this['_model'])?[_0x33b2a6,_0x3c106e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1ecc06),this['_defaultCallbacks']['set']('insertion:discard',_0x20ef0c),this['_defaultCallbacks']['set']('insertion:join',_0x588770),this['_defaultCallbacks']['set']('insertion:chain',_0x39df47),this['_defaultCallbacks']['set']('deletion:accept',_0x20ef0c),this['_defaultCallbacks']['set']('deletion:discard',_0x1ecc06),this['_defaultCallbacks']['set']('deletion:join',_0x588770),this['_defaultCallbacks']['set']('deletion:chain',_0x39df47),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f0d08),this['_defaultCallbacks']['set']('formatInline:discard',_0x1ecc06),this['_defaultCallbacks']['set']('formatInline:join',_0x588770),this['_defaultCallbacks']['set']('formatInline:chain',_0x1ecc06),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f0d08),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1ecc06),this['_defaultCallbacks']['set']('formatBlock:join',_0x588770),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1ecc06),this['_defaultCallbacks']['set']('attribute:accept',_0x1ecc06),this['_defaultCallbacks']['set']('attribute:discard',(_0x1a9009,_0x275aca)=>{if(!_0x275aca)return;const _0x39a23e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x10a455=>{if(_0x275aca['key']==m)for(const _0x45b676 of _0x1a9009){const _0x520136=_0x45b676['start']['nodeAfter'],_0x3397ea=_0x275aca['oldValue'];_0x10a455['rename'](_0x520136,_0x3397ea);}else{if(_0x39a23e['_isBlockAttribute'](_0x275aca['key'])){for(const _0x22bc4e of _0x1a9009)void 0x0!==_0x275aca['oldValue']?_0x10a455['setAttribute'](_0x275aca['key'],_0x275aca['oldValue'],_0x22bc4e['start']['nodeAfter']):_0x10a455['removeAttribute'](_0x275aca['key'],_0x22bc4e['start']['nodeAfter']);}else{for(const _0x3e5dee of _0x1a9009)_0x275aca['oldValue']?_0x10a455['setAttribute'](_0x275aca['key'],_0x275aca['oldValue'],_0x3e5dee):_0x10a455['removeAttribute'](_0x275aca['key'],_0x3e5dee);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x588770);}}function Rt(_0x312b7c,_0x48e265,_0x1e0853){for(const _0x5f47a4 of _0x48e265['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f47a4['root']==_0x5f47a4)return!0x1;if(!_0x1e0853['containsItem'](_0x5f47a4))return!0x1;if(_0x312b7c['isObject'](_0x5f47a4)||_0x312b7c['isLimit'](_0x5f47a4))return!0x0;}return!0x1;}function Tt(_0x1b3ab6){return _0x1b3ab6['end']['parent']==_0x1b3ab6['start']['nodeAfter']&&_0x1b3ab6['end']['isAtStart'];}function Et(_0x359b8d,_0x139b76,_0x4aaaa1,_0x1de66d){const _0x80d4fe=_0x5a3457=>!_0x5a3457['item']['is']('$textProxy')&&!_0x1de66d['isObject'](_0x5a3457['item']),_0x3ed86e=_0x359b8d['start']['getLastMatchingPosition'](_0x80d4fe),_0x5a9014=_0x359b8d['end']['getLastMatchingPosition'](_0x80d4fe,{'direction':'backward'});return(!_0x359b8d['start']['isEqual'](_0x3ed86e)||!_0x359b8d['end']['isEqual'](_0x5a9014))&&(_0x3ed86e['isBefore'](_0x5a9014)?_0x4aaaa1['updateMarker'](_0x139b76,{'range':_0x4aaaa1['createRange'](_0x3ed86e,_0x5a9014)}):_0x4aaaa1['removeMarker'](_0x139b76),!0x0);}function Vt(_0x527119){return _0xf37622(_0x527119);}function Ut(_0xee4ec2){const _0x5f4274=_0xee4ec2['start']['nodeAfter'];return _0x5f4274&&_0x5f4274['is']('element');}function Ot(_0x4e5307,_0x3d981d){return null==_0x4e5307['end']['nodeBefore']&&_0x4e5307['end']['parent']==_0x4e5307['start']['nodeAfter']?Gt(_0x4e5307['start']['nodeAfter'],_0x3d981d):_0x4e5307;}function Gt(_0x5347d4,_0x1e241d){const _0x1ba736=_0x1e241d['schema']['isObject'](_0x5347d4)||_0x1e241d['schema']['isSelectable'](_0x5347d4);return _0x1e241d['createRange'](_0x1e241d['createPositionAt'](_0x5347d4,'before'),_0x1ba736?_0x1e241d['createPositionAfter'](_0x5347d4):_0x1e241d['createPositionAt'](_0x5347d4,'end'));}function Ft(_0x3fe82f,_0x8d4f6f,_0x236b9d,_0x216ec5,_0x2eeedb){if(!Pt(_0x3fe82f,_0x8d4f6f))return!0x1;if(_0x236b9d['end']['isEqual'](_0x216ec5['start']))return!0x0;if(_0x3fe82f['type']!=_0x8d4f6f['type'])return!0x1;if(!_0x236b9d['end']['isTouching'](_0x216ec5['start']))return!0x1;const _0x47f8be=_0x2eeedb['createRange'](_0x236b9d['end'],_0x216ec5['start'])['getWalker']();for(const _0x3e6e04 of _0x47f8be)if(['elementStart','elementEnd']['includes'](_0x3e6e04['type'])&&_0x2eeedb['schema']['isLimit'](_0x3e6e04['item']))return!0x1;return!0x0;}function Pt(_0x2eef8d,_0x55fa5d,_0x4e3f25=[]){return!(!_0x2eef8d['_isDataLoaded']||!_0x55fa5d['_isDataLoaded'])&&_0x1b166e(Bt(_0x2eef8d['attributes'],_0x4e3f25),Bt(_0x55fa5d['attributes'],_0x4e3f25));}function Lt(_0x2a0f83,_0x56741d){const _0x84b800=Ht(_0x2a0f83['attributes']),_0x251b3e=Ht(_0x56741d);if(!_0x2a0f83['_isDataLoaded'])return!0x1;for(const _0x56ab81 of Object['keys'](_0x251b3e))if(!_0x1b166e(_0x84b800[_0x56ab81],_0x251b3e[_0x56ab81]))return!0x1;return!0x0;}function Ht(_0xa509df){const _0x2ff3ab=Object['assign']({},_0xa509df);return delete _0x2ff3ab['skipNestingCheck'],delete _0x2ff3ab['tablePasteChainId'],_0x2ff3ab;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x50b673(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x11a3fc,_0x32738c,_0x445615,_0x3db181){super(),this['model']=_0x32738c,this['view']=_0x445615,this['commentThreadController']=_0x3db181,this['_editor']=_0x11a3fc,this['_acceptCommand']=_0x11a3fc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x11a3fc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x83d821,_0x2de122)=>_0x83d821||_0x2de122),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3eede6=>_0x3eede6&&this['_editor']['model']['canEditAt'](_0x32738c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d1125=>_0x2d1125&&this['_editor']['model']['canEditAt'](_0x32738c['getRanges']())),this['_pendingAction']=null,_0x445615['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x445615,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x445615,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x445615,'change:isDirty',()=>{_0x445615['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 _0x272599=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x272599);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x18a39e{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2189a8,_0x11c2eb,_0x2c3d05,_0x58e520){super(_0x2189a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x11c2eb['authoredAt']),this['bind']('authoredAt')['to'](_0x11c2eb),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x11c2eb,this['_localUser']=_0x2c3d05,this['_config']=_0x58e520,_0x58e520['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:_0x3c4b2d}=this['_config'];this['commentsListView']=new _0x3c4b2d(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',_0x47e42e=>_0x47e42e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x282d94,_0x40c00a)=>_0x282d94||!!_0x40c00a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d7204}=this['_config'],_0x46abf9=new _0x1d7204(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4981b8=_0x46abf9['commentInputView'];return _0x46abf9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4981b8,'value',(_0x29a154,_0x347da0,_0xcf9ec8)=>!!_0xcf9ec8||_0x29a154&&!_0x347da0),_0x4981b8['on']('submit',(_0x54c4e6,_0x13ab71)=>{this['fire']('addComment',_0x13ab71),_0x4981b8['editor']['setData']('');}),_0x4981b8['on']('cancel',()=>this['focus']()),_0x4981b8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x46abf9;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x167844,_0x3ea4ba,_0x35f7f9,_0x54cc4e){super(_0x167844,_0x3ea4ba,_0x35f7f9,_0x54cc4e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5b05b1=>_0x5b05b1&&_0x5b05b1[0x0]?_0x5b05b1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x27af6f,_0x55cf5d)=>{let _0x2fca8c='';for(const _0x277584 of _0x27af6f)_0x2fca8c+='<p>'+ds(_0x277584['content'],_0x277584['color'])+'</p>';return _0x55cf5d?_0x2fca8c:_0x1eb056(_0x2fca8c,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x167844,'Accept\x20suggestion'),_0x55c165['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x167844,'Discard\x20suggestion'),_0x55c165['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x321001(_0x167844,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2ae477=this['bindTemplate'],_0x596aed=[{'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':_0x2ae477['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ae477['to']('authoredAt',_0x11f99f=>this['_config']['formatDateTime'](_0x11f99f))}]}]},{'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']&&_0x596aed['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5575f0={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2ae477['if']('isActive','ck-suggestion-wrapper--active'),_0x2ae477['to']('type',_0x3297ef=>'ck-suggestion-'+_0x3297ef),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':_0x596aed}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5575f0['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)),_0x5575f0;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x36c5cd,_0xad13a5,_0x217bc)=>{this['_descriptionElement']['innerHTML']=_0x217bc;});}['_createButton'](_0x3c8969,_0x4205a2,_0x3e7dd8,_0xef0ee1,_0x3499be){const _0x1fc5ce=new _0x37aa4e(this['locale']);return _0x1fc5ce['set']({'label':_0x3c8969,'icon':_0x4205a2,'tooltip':!0x0,'tooltipPosition':_0x3499be}),_0x1fc5ce['extendTemplate']({'attributes':{'class':_0x3e7dd8}}),_0x1fc5ce['on']('execute',()=>{this['fire'](_0xef0ee1,this['_model']['id']);}),_0x1fc5ce;}['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(_0x5e42eb,_0x38a96f){let _0x3da075='';return _0x3da075+=_0x5e42eb['split']('*')['map']((_0x18c434,_0x4d1eef)=>_0x4d1eef%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x18c434)+'</span>':us(_0x18c434))['join'](''),_0x38a96f&&(_0x3da075+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x38a96f['value']+'\x22\x20title=\x22'+_0x38a96f['title']+'\x22></span>'),_0x3da075;}function us(_0x7ef063){const _0x12003b=document['createElement']('span');return _0x12003b['innerText']=_0x7ef063,_0x12003b['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 _0x3b57f6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x17c546,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xfe842b){super(_0xfe842b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f96b0=this['editor']['config'];_0x3f96b0['define']('trackChanges.SuggestionThreadView',ne),_0x3f96b0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f96b0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f59ee,_0x2e0d34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x417e80,_0x60e281]of this['_handleControllerBuffer']){const _0x1754c6=this['_suggestionToController']['has'](_0x417e80);_0x1754c6||_0x60e281?_0x1754c6&&_0x60e281&&this['_destroyController'](_0x417e80):this['_initializeController'](_0x417e80);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f59ee,_0x2e0d34);}['init'](){const _0x16b763=this['editor'],_0x10f15c=_0x16b763['plugins']['get']('TrackChangesEditing'),_0x31bd7a=_0x16b763['plugins']['get']('Annotations'),_0x1f55c1=_0x16b763['plugins']['get']('EditorAnnotations'),_0x4ad49d=_0x16b763['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f55c1['addSourceCollector'](()=>{const _0x2b1572=[];for(const [_0x184f14,_0x4b4a27]of Array['from'](this['_suggestionToController'])){const _0x23b1c4=_0x184f14['getAllAdjacentSuggestions'](),_0x15d874=[];for(const _0x23f6ea of _0x23b1c4){if(!_0x23f6ea['isInContent'])continue;if(_0x23f6ea['isMultiRange']){_0x15d874['push'](..._0x23f6ea['getRanges']());continue;}const _0x3a1611=_0x23f6ea['getFirstRange']();if(_0x15d874['length']>0x0){const _0x48cf89=_0x15d874[0x0]['getJoined'](_0x3a1611);if(_0x48cf89){_0x15d874[0x0]=_0x48cf89;continue;}}_0x15d874['push'](_0x3a1611);}_0x2b1572['push']([_0x4b4a27['view'],_0x15d874]);}return _0x2b1572;}),this['listenTo'](_0x10f15c,'suggestionLoaded',(_0x57d604,_0x18a7d3)=>{this['listenTo'](_0x18a7d3,'change:previous',(_0x4dcec3,_0x32c6d1,_0x504c76,_0x2d372b)=>{_0x18a7d3['isInContent']&&(null==_0x504c76?(this['_updateController'](_0x2d372b['head']),this['_handleSuggestionControllerDelayed'](_0x18a7d3,!0x1)):(this['_updateController'](_0x504c76['head']),null==_0x2d372b&&this['_handleSuggestionControllerDelayed'](_0x18a7d3,!0x0)));}),null!==_0x18a7d3['previous']?this['_updateController'](_0x18a7d3['head']):this['_handleSuggestionControllerDelayed'](_0x18a7d3,!0x1);}),this['listenTo'](_0x10f15c,'suggestionUnloaded',(_0x352823,_0x2d6a0e,_0x1f1edd)=>{this['stopListening'](_0x2d6a0e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d6a0e),this['_suggestionToController']['has'](_0x2d6a0e)&&this['_destroyController'](_0x2d6a0e),_0x1f1edd&&this['_updateController'](_0x1f1edd['head']);}),this['listenTo'](_0x10f15c,'suggestionChanged',(_0x40c1cf,_0x50fcdd)=>{this['_updateController'](_0x50fcdd);}),this['listenTo'](_0x31bd7a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ad49d,'addComment',(_0x3aff1d,{threadId:_0xa8485d,isFromAdapter:_0x3f24e0})=>{if(_0x3f24e0||!_0x10f15c['hasSuggestion'](_0xa8485d))return;const _0x3308e0=_0x10f15c['getSuggestion'](_0xa8485d);this['_suggestionToController']['get'](_0x3308e0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x40821f=this['editor']['plugins']['get']('Annotations'),_0x2dad04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x262e21=Array['from'](_0x40821f['activeAnnotations'],_0x162d99=>_0x162d99['innerView'])['filter'](_0x3a3535=>this['_viewToController']['has'](_0x3a3535)),_0x282bd1=[];for(const _0x545901 of _0x262e21){const _0xdf3083=this['_viewToController']['get'](_0x545901)['model']['getAllAdjacentSuggestions']();_0x282bd1['push'](..._0xdf3083['reduce']((_0x5611e7,_0x27d23b)=>[..._0x5611e7,..._0x27d23b['getMarkerNames']()],[]));}_0x2dad04['activeMarkers']=_0x282bd1;}['_addUIComponentsToFactory'](){const _0xe1a703=this['editor'],_0x575e58=_0xe1a703['locale'],_0x40a4c4=o(_0x575e58,'Track\x20changes'),_0x62cf6c=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x40a4c4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2bc501 of _0x62cf6c)if(ae(_0x2bc501)){const _0x190c9d=_0xe1a703['commands']['get'](_0x2bc501['model']['commandName']);_0x2bc501['model']['bind']('isOn','isEnabled')['to'](_0x190c9d,'value','isEnabled');}_0xe1a703['ui']['componentFactory']['add']('trackChanges',_0x4c6768=>this['_createToolbarButton'](_0x4c6768,_0x62cf6c,_0x40a4c4)),_0xe1a703['ui']['componentFactory']['add']('menuBar:trackChanges',_0x41eb80=>this['_createMenuBarMenu'](_0x41eb80,_0x62cf6c,_0x40a4c4));}['_createToolbarButton'](_0x5274fe,_0x396e6d,_0x5eed33){const _0x375e47=zt(_0x5274fe,Zt),_0xdf1b5e=this['editor']['commands']['get']('trackChanges');_0x375e47['buttonView']['set']({'tooltip':_0x5eed33,'label':_0x5eed33,'icon':ie}),_0x375e47['buttonView']['bind']('isOn')['to'](_0xdf1b5e,'value'),_0x375e47['buttonView']['on']('execute',()=>{_0xdf1b5e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x375e47,_0x396e6d,{'role':'menu'});const _0x42a404=[];for(const _0x2db04e of _0x396e6d)ae(_0x2db04e)&&_0x42a404['push'](this['editor']['commands']['get'](_0x2db04e['model']['commandName']));const _0x280569=_0x375e47['buttonView'];return _0x280569['actionView']['unbind']('isEnabled'),_0x280569['arrowView']['unbind']('isEnabled'),_0x280569['actionView']['bind']('isEnabled')['to'](_0xdf1b5e,'isEnabled'),_0x280569['arrowView']['bind']('isEnabled')['toMany'](_0x42a404,'isEnabled',(..._0x354c9d)=>_0x354c9d['some'](_0x12d8dd=>_0x12d8dd)),_0x375e47['on']('execute',_0xe70b89=>{this['editor']['execute'](_0xe70b89['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x375e47;}['_createMenuBarMenu'](_0x1bd0ad,_0x383cfd,_0x1958f2){const _0x369694=new Kt(_0x1bd0ad),_0x1413d7=this['editor']['commands']['get']('trackChanges');_0x369694['buttonView']['set']({'label':_0x1958f2,'icon':ie});const _0x3741e7=new Qt(_0x1bd0ad);for(const _0xf58027 of _0x383cfd){if('separator'==_0xf58027['type']){_0x3741e7['items']['add'](new Jt(_0x1bd0ad));continue;}const _0x32e643=new Xt(_0x1bd0ad,_0x369694),_0x2ed996=new Yt(_0x1bd0ad),_0x4dab81=_0xf58027['model'];_0x2ed996['bind'](...Object['keys'](_0x4dab81))['to'](_0x4dab81),_0x2ed996['delegate']('execute')['to'](_0x369694),_0x2ed996['on']('execute',()=>{this['editor']['execute'](_0x4dab81['commandName']),this['editor']['editing']['view']['focus']();}),_0x32e643['children']['add'](_0x2ed996),_0x3741e7['items']['add'](_0x32e643);}return _0x369694['bind']('isEnabled')['to'](_0x1413d7,'isEnabled'),_0x369694['panelView']['children']['add'](_0x3741e7),_0x369694;}['_initializeController'](_0x5a0616){const _0x144540=this['editor'],_0x27746c=_0x144540['config'],_0x492544=_0x144540['plugins']['get']('Annotations'),_0x1ca49a=_0x144540['plugins']['get']('CommentsRepository'),_0x3be44b=_0x144540['plugins']['get']('EditorAnnotations'),_0x392e85=_0x144540['plugins']['get'](_0x17c546)['me'],_0x354448=_0x27746c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x759fac,CommentThreadInputView:_0x3cc315}=_0x144540['plugins']['get']('CommentsUI');let _0x3c0f11,_0x7fe903;this['_annotationViews']['has'](_0x5a0616['id'])?(_0x7fe903=this['_annotationViews']['get'](_0x5a0616['id']),_0x3c0f11=_0x7fe903['mainView']):(_0x3c0f11=new _0x354448(_0x144540['locale'],_0x5a0616,_0x392e85,{'disableComments':this['_disableComments'],'editorConfig':_0x27746c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x27746c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27746c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27746c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2022c8(_0x27746c['get']('locale')),'CommentView':_0x27746c['get']('comments')['CommentView'],'CommentsListView':_0x759fac,'CommentThreadInputView':_0x3cc315}),_0x3c0f11['acceptButton']['on']('execute',()=>{_0x144540['editing']['view']['focus']();}),_0x3c0f11['discardButton']['on']('execute',()=>{_0x144540['editing']['view']['focus']();}),_0x7fe903=_0x492544['createAnnotationView'](this['editor']['locale'],_0x3c0f11),_0x7fe903['bind']('isDirty')['to'](_0x3c0f11,'isDirty'),_0x7fe903['bind']('length')['to'](_0x3c0f11),_0x7fe903['bind']('type')['to'](_0x3c0f11,'type',_0xde9249=>'suggestion-'+_0xde9249),this['_annotationViews']['set'](_0x5a0616['id'],_0x7fe903));const _0x3079b8=_0x1ca49a['createCommentThreadController'](_0x5a0616['commentThread'],_0x3c0f11),_0x39cf4a=new oe(_0x144540,_0x5a0616,_0x3c0f11,_0x3079b8),_0x2fff7d=_0x5a0616['getAllAdjacentSuggestions']()['filter'](_0x136242=>_0x136242['isInContent']);_0x3c0f11['descriptionParts']=_0x144540['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2fff7d),this['_suggestionToController']['set'](_0x5a0616,_0x39cf4a),this['_viewToController']['set'](_0x3c0f11,_0x39cf4a);const _0x2a599f=_0x492544['createAnnotation']({'view':_0x7fe903,'target':()=>{const _0x3ac414=[],_0x370655=_0x5a0616['getAllAdjacentSuggestions']()['filter'](_0x473049=>_0x473049['isInContent']);for(const _0x4d9de6 of _0x370655)_0x3ac414['push'](..._0x4d9de6['getMarkers']());return _0x357ffb(_0x144540['editing'],_0x3ac414);},'type':()=>'suggestion-'+_0x39cf4a['view']['type']});_0x1ca49a['_bindAnnotationToEditors'](_0x3c0f11,_0x2a599f),_0x492544['add'](_0x2a599f),_0x3be44b['registerAnnotation'](_0x2a599f);}['_destroyController'](_0x855571){const _0x52c66d=this['editor']['plugins']['get']('CommentsRepository'),_0x93867b=this['editor']['plugins']['get']('Annotations'),_0x39176d=this['_suggestionToController']['get'](_0x855571),_0x7cdda1=_0x39176d['view'],_0x4abd76=_0x93867b['getByInnerView'](_0x7cdda1);_0x52c66d['_unbindEditors'](_0x7cdda1),_0x4abd76&&_0x93867b['remove'](_0x4abd76),this['_suggestionToController']['delete'](_0x855571),this['_viewToController']['delete'](_0x7cdda1),_0x39176d['destroy']();}['_updateController'](_0x52ce76){if(!_0x52ce76['isInContent']||!this['_suggestionToController']['has'](_0x52ce76))return;const _0xb24bc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4005d5=this['_suggestionToController']['get'](_0x52ce76),_0x1b9a7d=_0x52ce76['getAllAdjacentSuggestions']();_0x4005d5['view']['descriptionParts']=_0xb24bc4['descriptionFactory']['getDescriptions'](_0x1b9a7d);}['destroy'](){for(const _0x39f518 of this['_suggestionToController']['keys']())this['_destroyController'](_0x39f518);for(const _0x8b7afe of this['_annotationViews']['values']())_0x8b7afe['mainView']['destroy']();super['destroy']();}}function ae(_0x2d4fce){return'model'in _0x2d4fce;}class k extends _0x3b57f6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xa277e9){this['editor']['plugins']['get'](p)['adapter']=_0xa277e9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x501095){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x501095);}['getSuggestions']({skipNotAttached:_0xcf6606=!0x1,toJSON:_0x2dbf0c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xcf6606,'toJSON':_0x2dbf0c});}['getSuggestion'](_0x58473e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x58473e);}}const T=['Pagination'];class P extends _0x3b57f6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x48cbe0=this['editor'];if(_0x48cbe0['config']['define']('trackChangesData.editorCreator',_0x5af644=>{const _0x3a8fe2=_0x48cbe0['model']['document']['getRootNames']()['reduce']((_0x3072aa,_0x3b62c2)=>(_0x3072aa[_0x3b62c2]='',_0x3072aa),{});return _0x48cbe0['constructor']['create'](_0x3a8fe2,_0x5af644);}),'function'!=typeof _0x48cbe0['config']['get']('trackChangesData')['editorCreator'])throw new _0x144d61('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b630c){return N(this['editor'],!0x0,_0x5b630c);}['getDataWithDiscardedSuggestions'](_0xd3015e){return N(this['editor'],!0x1,_0xd3015e);}}class D extends _0x3b57f6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x510104){super(_0x510104),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(_0x19106d){return void 0x0!==_0x19106d['getRootsAttributes'];}async function N(_0x1bd8c3,_0x46b60b,_0x5ed0aa){const _0x5c30de=_0x5469e8(_0x1bd8c3,T);_0x5c30de['plugins']['push'](p,D),_0x5c30de['rootsAttributes']=v(_0x1bd8c3)?_0x1bd8c3['getRootsAttributes']():void 0x0;const _0x1715fd=document['createDocumentFragment'](),_0x3af428=_0x1bd8c3['config']['get']('trackChangesData')['editorCreator'],_0x1c9ae7=await _0x3af428(_0x5c30de,()=>function(_0x1e9d99){const _0x2cbec6=document['createElement']('div');return _0x1e9d99['appendChild'](_0x2cbec6),_0x2cbec6;}(_0x1715fd));!function(_0x2140f3,_0x3d9800){const _0x558e1e=_0x2140f3['model']['document']['getRootNames']()['reduce']((_0x4d7ad2,_0x3a8203)=>(_0x4d7ad2[_0x3a8203]=_0x2140f3['data']['get']({'rootName':_0x3a8203}),_0x4d7ad2),{}),_0x3fabe=_0x2140f3['plugins']['get']('Users')['users']['map'](_0xebc0a2=>({'id':_0xebc0a2['id'],'name':_0xebc0a2['name']})),_0x10a590=_0x2140f3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45774a=_0x2140f3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfbde90=_0x3d9800['plugins']['get']('Users'),_0x4e3434=_0x3d9800['plugins']['get']('TrackChangesEditing'),_0xeecdbb=_0x3d9800['plugins']['get']('CommentsRepository');for(const _0x4633bc of _0x3fabe)_0xfbde90['getUser'](_0x4633bc['id'])||_0xfbde90['addUser'](_0x4633bc);_0xfbde90['me']||_0xfbde90['useAnonymousUser']();for(const _0x3e0733 of _0x45774a)_0xeecdbb['addCommentThread'](_0x3e0733);for(const _0x35d405 of _0x10a590)_0x4e3434['addSuggestionData'](_0x35d405);_0x3d9800['data']['set'](_0x558e1e);}(_0x1bd8c3,_0x1c9ae7),_0x1c9ae7['execute'](_0x46b60b?'acceptAllSuggestions':'discardAllSuggestions');const _0x398f02=v(_0x1c9ae7)?_0x1c9ae7['getFullData'](_0x5ed0aa):_0x1c9ae7['data']['get'](_0x5ed0aa);return await _0x1c9ae7['destroy'](),_0x398f02;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1f7250,PendingActions as _0x1f9269,icons as _0x4dc69a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x58dd81,ObservableMixin as _0x31c48b,uid as _0x1d2ed9,insertToPriorityArray as _0x2b8036,priorities as _0x2c4957,logWarning as _0x472ac3,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4fa766,View as _0x889846,ButtonView as _0x3b9884,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 _0x174f94,hashObject as _0x5a58d5,surroundingMarkersDetector as _0xc7f910,trimHtml as _0x54358f,UserView as _0x365062,getDateTimeFormatter as _0x2d8248,getAllMarkersDomElementsSorted as _0x1d6625,sanitizeEditorConfig as _0x1e158a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3e603f,LiveRange as _0x248c8e,LivePosition as _0x561d7a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4a9ca4,toWidget as _0x54de2a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x496554,set as _0x5867fc,isEqual as _0x59d8ff,unset as _0x3e88e1,omit as Bt}from'lodash-es';import{Delete as _0x118190,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5cc779,ShiftEnter as _0x10b14b}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x133567,_0x34da04){super(_0x133567),this['_enabledCommands']=_0x34da04,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 _0x46223c of this['editor']['commands']['commands']())_0x46223c['affectsData']&&!this['_enabledCommands']['has'](_0x46223c)&&_0x46223c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x51c11a of this['editor']['commands']['commands']())_0x51c11a['affectsData']&&!this['_enabledCommands']['has'](_0x51c11a)&&_0x51c11a['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x52ef73,_0x456eea){super(_0x52ef73),this['_suggestions']=_0x456eea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3a9bfd){const _0x338912=this['_suggestions']['get'](_0x3a9bfd);if(!_0x338912)throw new _0x58dd81('track-changes-accept-suggestion-not-found',this);const _0x635909=_0x338912['getRanges']();this['editor']['model']['canEditAt'](_0x635909)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x338912);}}class B extends ts{['_suggestions'];constructor(_0x38dbfa,_0x533522){super(_0x38dbfa),this['_suggestions']=_0x533522,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1dc780){const _0x510f43=this['_suggestions']['get'](_0x1dc780);if(!_0x510f43)throw new _0x58dd81('track-changes-discard-suggestion-not-found',this);const _0x251683=_0x510f43['getRanges']();this['editor']['model']['canEditAt'](_0x251683)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x510f43);}}function ss(_0x4a3ed2){return _0x4a3ed2['sort']((_0x93b976,_0x59be44)=>'deletion'==_0x93b976['type']&&'deletion'!=_0x59be44['type']?-0x1:'deletion'!=_0x93b976['type']&&'deletion'==_0x59be44['type']?0x1:0x0);}function to(_0x143a92,_0x2e6ec2){let _0x37237e,_0x599d03=0x0;const _0x1c580c=[],_0x1bcb28=_0x2e6ec2['schema'];for(;_0x599d03<_0x143a92['length'];){const _0x346b9f=_0x143a92[_0x599d03],_0x3b32ef=_0x143a92[_0x599d03+0x1];_0x37237e||(_0x37237e=_0x2e6ec2['createPositionBefore'](_0x346b9f)),co(_0x2e6ec2,_0x346b9f,_0x3b32ef)||(_0x1c580c['push'](_0x2e6ec2['createRange'](_0x37237e,_0x1bcb28['isObject'](_0x346b9f)?_0x2e6ec2['createPositionAfter'](_0x346b9f):_0x2e6ec2['createPositionAt'](_0x346b9f,'end'))),_0x37237e=null),_0x599d03++;}return _0x1c580c;}function co(_0x2bad59,_0x1ee232,_0x19f667){if(!_0x19f667)return!0x1;const _0x32eea0=_0x2bad59['createPositionAfter'](_0x1ee232),_0xaee932=_0x2bad59['createPositionBefore'](_0x19f667);return _0x32eea0['isTouching'](_0xaee932);}function rs(_0x2b8d72,_0x3d49ec,_0x806034){for(;_0x806034['length'];){const _0x5a8ebe=_0x806034['splice'](0x0,0x64);_0x2b8d72['change'](()=>{for(const _0x398dfc of _0x5a8ebe)_0x398dfc['isInContent']&&_0x3d49ec['execute'](_0x398dfc['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5a3ad9,_0xbbeddf,_0x37f832){super(_0x5a3ad9),this['_command']=_0xbbeddf,this['_suggestions']=_0x37f832,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5619bb=Array['from'](this['_suggestions']['values']())['some'](_0x3b8a22=>_0x3b8a22['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5619bb;}['execute'](){const _0x58fdcd=ss(Array['from'](this['_suggestions']['values']()));for(const _0x160825 of _0x58fdcd){const _0x3267e8=_0x160825['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3267e8))return;}rs(this['editor']['model'],this['_command'],_0x58fdcd);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x36542c,_0x489e94,_0x3fe93e){super(_0x36542c),this['_command']=_0x489e94,this['_suggestions']=_0x3fe93e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x439bd3=this['editor']['model']['document']['selection'],_0x6e1dd7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5a3927,_0x5bfb36){const _0x306c03=Array['from'](_0x5a3927['getRanges']()),_0x1c5459=new Set();for(const _0x34227c of _0x5bfb36)if(_0x34227c['isInContent']){for(const _0x3e40bb of _0x306c03)for(const _0x2e11ed of _0x34227c['getRanges']())(_0x3e40bb['isIntersecting'](_0x2e11ed)||_0x5a3927['isCollapsed']&&!_0x34227c['isMultiRange']&&_0x34227c['next']&&_0x2e11ed['end']['isTouching'](_0x3e40bb['start']))&&_0x1c5459['add'](_0x34227c);}return _0x1c5459;}(_0x439bd3,_0x6e1dd7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xdb9676=ss(Array['from'](this['_selectedSuggestions']));for(const _0x50ee84 of _0xdb9676){const _0x52988e=_0x50ee84['getRanges']();if(!this['editor']['model']['canEditAt'](_0x52988e))return;}rs(this['editor']['model'],this['_command'],_0xdb9676);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31c48b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x173def,_0x98c65b){super(),this['id']=_0x98c65b['id'],this['type']=_0x98c65b['type'],this['subType']=_0x98c65b['subType']||null,this['author']=_0x98c65b['author'],this['creator']=_0x98c65b['creator']||_0x98c65b['author'],this['isExternal']=Boolean(_0x98c65b['attributes']&&_0x98c65b['attributes']['@external']),this['data']=null,this['_model']=_0x173def,this['_onAccept']=_0x98c65b['onAccept'],this['_onDiscard']=_0x98c65b['onDiscard'],this['_onAttributesChange']=_0x98c65b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x98c65b['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 _0x5c85a2=this;for(;_0x5c85a2['previous'];)_0x5c85a2=_0x5c85a2['previous'];return _0x5c85a2;}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'](_0x343b83){this['_markerNames']['add'](_0x343b83);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x11f0d0=>this['_model']['markers']['get'](_0x11f0d0))['filter'](_0x5150cf=>_0x5150cf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b895e=>{for(const _0x1d0bfd of this['getMarkers']())_0x3b895e['removeMarker'](_0x1d0bfd);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d39b7){this['_model']['change'](_0x540198=>{_0x540198['removeMarker'](_0x1d39b7);}),this['_markerNames']['delete'](_0x1d39b7);}['addRange'](_0x1c0a22){const _0x16f410='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x16f410),this['_model']['change'](_0x5f2767=>{_0x5f2767['addMarker'](_0x16f410,{'range':_0x1c0a22,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x381b2a){for(const _0x2008f0 of this['getRanges']())if(_0x2008f0['isIntersecting'](_0x381b2a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x19f764=>_0x19f764['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x470e90,_0x520bc9)=>[..._0x470e90,..._0x520bc9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4418af=this['getRanges']();if(0x1!=_0x4418af['length'])return null;const _0x1381e4=_0x4418af[0x0],_0x386d4a=_0x1381e4['start']['nodeAfter'],_0x2d44a0=_0x1381e4['end']['nodeBefore'];return _0x386d4a instanceof _0x3e603f?_0x386d4a!=_0x2d44a0?null:_0x386d4a: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 _0x1af332=[];let _0x2bf0fb=this['head'];for(;_0x2bf0fb;)_0x1af332['push'](_0x2bf0fb),_0x2bf0fb=_0x2bf0fb['next'];return _0x1af332;}['setAttribute'](_0x20429a,_0xa70dfd){const _0x3d76ca=_0x496554(this['attributes']);_0x5867fc(_0x3d76ca,_0x20429a,_0xa70dfd),_0x59d8ff(_0x3d76ca,this['attributes'])||(this['attributes']=_0x3d76ca,this['_onAttributesChange'](_0x3d76ca));}['removeAttribute'](_0x4ad617){const _0x241905=_0x496554(this['attributes']);_0x3e88e1(_0x241905,_0x4ad617),_0x59d8ff(_0x241905,this['attributes'])||(this['attributes']=_0x241905,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 _0x1d2ed9()['substr'](0x1,0x5);}}function o(_0x9da212,_0x596ce5,_0x5936ec){const t=_0x9da212['t'];switch(_0x596ce5){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',_0x5936ec);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5936ec);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5936ec);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5936ec);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5936ec);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',_0x5936ec);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5936ec);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',_0x5936ec);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5936ec);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5936ec);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5936ec);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5936ec);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5936ec);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5936ec);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5936ec);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5936ec);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5936ec);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5936ec);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5936ec);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5936ec);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5936ec);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5936ec);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5936ec);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'},_0x5936ec);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5936ec);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5936ec);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5936ec);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5936ec);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5936ec);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'},_0x5936ec);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5936ec);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5936ec);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5936ec);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5936ec);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'},_0x5936ec);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5936ec);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'},_0x5936ec);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'},_0x5936ec);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5936ec);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'},_0x5936ec);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5936ec);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'},_0x5936ec);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5936ec);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5936ec);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'},_0x5936ec);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'},_0x5936ec);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 _0x596ce5;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x13d797,_0x2dca80){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x13d797,this['_locale']=_0x2dca80;}['getDescriptions'](_0x34bf80){const _0x32c51c=[],_0x2aa6b=new Set(),_0x18c046=new Set();for(let _0x561aa3=0x0;_0x561aa3<_0x34bf80['length'];_0x561aa3++){const _0xa79aef=_0x34bf80[_0x561aa3];if(!_0xa79aef['isInContent'])continue;const _0x89c3c4=this['_handleCustomCallbackDescription'](_0xa79aef);if(_0x89c3c4){if(null!=_0xa79aef['subType']){if(_0x2aa6b['has'](_0xa79aef['subType']))continue;_0x2aa6b['add'](_0xa79aef['subType']);}_0x32c51c['push'](_0x89c3c4);}else{if('attribute'!=_0xa79aef['type'])'insertion'!=_0xa79aef['type']&&'deletion'!=_0xa79aef['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32c51c,_0xa79aef,_0x34bf80[_0x561aa3+0x1]);else{const _0x1da51a=_0xa79aef['data']['key'];if(_0x18c046['has'](_0x1da51a))continue;_0x18c046['add'](_0xa79aef['data']['key']),_0x1da51a==m?this['_handleRenameSuggestionDescription'](_0x32c51c,_0xa79aef):this['_handleAttributeSuggestionDescription'](_0x32c51c,_0xa79aef);}}}return this['_resolveDescriptionItems'](_0x32c51c);}['registerDescriptionCallback'](_0x371a8e){this['_customCallbacks']['push'](_0x371a8e);}['registerElementLabel'](_0x13c832,_0x1db1e7,_0x43268d=_0x2c4957['normal']){'function'==typeof _0x13c832?_0x2b8036(this['_itemLabelsCallbacks'],{'matchingCallback':_0x13c832,'label':_0x1db1e7,'priority':_0x43268d}):this['_itemLabels']['set'](_0x13c832,_0x1db1e7);}['registerAttributeLabel'](_0x4823e7,_0x5be944){this['_attributeLabels']['set'](_0x4823e7,_0x5be944);}['getItemLabel'](_0x33cdba,_0x347390=0x1){let _0x23f822;for(const _0x35f592 of this['_itemLabelsCallbacks'])if(_0x35f592['matchingCallback'](_0x33cdba)){_0x23f822=_0x35f592['label'];break;}return _0x23f822||(_0x23f822=this['_itemLabels']['get'](_0x33cdba['name'])),_0x23f822?_0x23f822(_0x347390):0x1!==_0x347390?_0x347390+'\x20'+_0x33cdba['name']+'s':''+_0x33cdba['name'];}['_addDescriptionItems'](_0x281762,_0x5db605){const _0x172300=_0x5db605['getFirstRange']()['getWalker'](),_0x29cd7e='insertion'==_0x5db605['type']?'add':'remove';for(const _0x39ffe8 of _0x172300){const _0xfb2d59=_0x39ffe8['item'],_0x53b6fd=_0x281762[_0x281762['length']-0x1];if(_0xfb2d59['is']('$textProxy'))_0x53b6fd&&_0x53b6fd['type']['indexOf']('Container')>-0x1&&_0x281762['pop'](),_0x53b6fd&&'text'==_0x53b6fd['type']?_0x53b6fd[_0x29cd7e]+=_0xfb2d59['data']:_0x281762['push']({'type':'text','add':'add'==_0x29cd7e?_0xfb2d59['data']:'','remove':'remove'==_0x29cd7e?_0xfb2d59['data']:''});else{if(this['_schema']['isObject'](_0xfb2d59)){const _0x352631=_0xfb2d59;if(_0x53b6fd&&_0x53b6fd['type']['indexOf']('Container')>-0x1&&_0x281762['pop'](),'elementEnd'==_0x39ffe8['type'])continue;_0x53b6fd&&_0x53b6fd['type']==_0x29cd7e+'Object'&&_0x53b6fd['element']['name']==_0x352631['name']?_0x53b6fd['quantity']++:_0x281762['push']({'type':_0x29cd7e+'Object','element':_0x352631,'quantity':0x1}),_0x172300['skip'](_0x2e790e=>!('elementEnd'==_0x2e790e['type']&&_0x2e790e['item']==_0xfb2d59));}else{if(this['_schema']['checkChild'](_0xfb2d59,'$text')||_0xfb2d59['is']('element','softBreak')){const _0x201974=_0xfb2d59;if('add'==_0x29cd7e&&'elementStart'==_0x39ffe8['type']||'remove'==_0x29cd7e&&'elementEnd'==_0x39ffe8['type'])continue;if(_0x53b6fd&&-0x1==_0x53b6fd['type']['indexOf']('Container')){'text'==_0x53b6fd['type']&&(_0x53b6fd[_0x29cd7e]+='\x0a');continue;}let _0x47eb72;if(_0x47eb72='add'==_0x29cd7e?_0x201974['nextSibling']&&!this['_schema']['isObject'](_0x201974['nextSibling'])?_0x201974['nextSibling']:null:_0x201974['previousSibling']&&!this['_schema']['isObject'](_0x201974['previousSibling'])?_0x201974['previousSibling']:null,_0x201974['isEmpty']||_0x47eb72&&_0x47eb72['isEmpty']){const _0xdea06f=_0x47eb72&&_0x47eb72['isEmpty']?_0x47eb72:_0x201974;_0x53b6fd&&_0x53b6fd['type']==_0x29cd7e+'EmptyContainer'&&_0x53b6fd['element']['name']==_0xdea06f['name']?_0x53b6fd['quantity']++:_0x281762['push']({'type':_0x29cd7e+'EmptyContainer','element':_0xdea06f,'quantity':0x1});}else _0x281762['push']({'type':_0x29cd7e+'Container','element':_0x201974});}}}}}['_resolveDescriptionItems'](_0x40c070){const _0x29f343=this['_locale'],_0x5a0c1c=[],_0x166732=[],_0x5aa094=[];for(const _0x586929 of _0x40c070)switch(_0x586929['type']){case'text':if(_0x586929['add']=_0x586929['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x586929['remove']=_0x586929['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x586929['add']&&''!=_0x586929['remove']){_0x5a0c1c['push']({'type':'replace','content':o(_0x29f343,'REPLACE_TEXT',['\x22'+_0x586929['remove']+'\x22','\x22'+_0x586929['add']+'\x22'])});continue;}if(null!=_0x586929['add']['match'](/^ +$/)){_0x5a0c1c['push']({'type':'insertion','content':o(_0x29f343,'*Insert:*\x20%0',o(_0x29f343,'ELEMENT_SPACE',_0x586929['add']['length']))});continue;}if(null!=_0x586929['remove']['match'](/^ +$/)){_0x5a0c1c['push']({'type':'deletion','content':o(_0x29f343,'*Remove:*\x20%0',o(_0x29f343,'ELEMENT_SPACE',_0x586929['remove']['length']))});continue;}if(''!=_0x586929['add']){_0x5a0c1c['push']({'type':'insertion','content':o(_0x29f343,'*Insert:*\x20%0','\x22'+_0x586929['add']+'\x22')});continue;}_0x5a0c1c['push']({'type':'deletion','content':o(_0x29f343,'*Remove:*\x20%0','\x22'+_0x586929['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5a0c1c['push']({'type':'insertion','content':o(_0x29f343,'*Insert:*\x20%0',this['getItemLabel'](_0x586929['element'],_0x586929['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5a0c1c['push']({'type':'deletion','content':o(_0x29f343,'*Remove:*\x20%0',this['getItemLabel'](_0x586929['element'],_0x586929['quantity']))});continue;case'addContainer':_0x5a0c1c['push']({'type':'insertion','content':o(_0x29f343,'*Split:*\x20%0',this['getItemLabel'](_0x586929['element'],_0x586929['quantity']))});continue;case'removeContainer':_0x5a0c1c['push']({'type':'deletion','content':o(_0x29f343,'*Merge:*\x20%0',this['getItemLabel'](_0x586929['element'],_0x586929['quantity']))});continue;case'addFormat':_0x166732['push'](_0x586929['key']);continue;case'removeFormat':_0x5aa094['push'](_0x586929['key']);continue;default:_0x5a0c1c['push'](_0x586929);}if(_0x166732['length']){const _0xa1c53b=_0x166732['map'](_0x51b9de=>this['_attributeLabels']['has'](_0x51b9de)?this['_attributeLabels']['get'](_0x51b9de):_0x51b9de)['join'](',\x20');_0x5a0c1c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xa1c53b)});}if(_0x5aa094['length']){const _0x4c0ad9=_0x5aa094['map'](_0x75f979=>this['_attributeLabels']['has'](_0x75f979)?this['_attributeLabels']['get'](_0x75f979):_0x75f979)['join'](',\x20');_0x5a0c1c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c0ad9)});}return _0x5a0c1c;}['_handleCustomCallbackDescription'](_0x89f7bb){for(const _0xe0af49 of this['_customCallbacks']){const _0x46f294=_0xe0af49(_0x89f7bb);if(_0x46f294&&'type'in _0x46f294)return _0x46f294;}}['_handleAttributeSuggestionDescription'](_0x1e4821,_0x4dbbea){const _0x56dc9f=_0x4dbbea['data'],_0x22ccf9=void 0x0===_0x56dc9f['newValue']?'removeFormat':'addFormat';_0x1e4821['push']({'type':_0x22ccf9,'key':_0x56dc9f['key']});}['_handleRenameSuggestionDescription'](_0x2da57c,_0x690b91){_0x2da57c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x690b91['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2583ad,_0x7226c9,_0x2fe69d){if(this['_addDescriptionItems'](_0x2583ad,_0x7226c9),_0x2fe69d&&_0x2fe69d['getFirstRange']()&&!_0x7226c9['getFirstRange']()['end']['isEqual'](_0x2fe69d['getFirstRange']()['start'])){const _0x4da5bd=_0x2583ad[_0x2583ad['length']-0x1],_0x4b1855='insertion'==_0x7226c9['type']?'add':'remove';_0x4da5bd&&'text'==_0x4da5bd['type']&&(_0x4da5bd[_0x4b1855]+='\x0a');}}}class E extends _0x1f7250{['afterInit'](){const _0x452286=this['editor'],_0x1d6574=_0x452286['plugins']['get']('TrackChangesEditing');_0x452286['commands']['get']('showAIAssistant')&&_0x1d6574['enableCommand']('showAIAssistant');}}class V extends _0x1f7250{['afterInit'](){const _0x28fce=this['editor'],_0x2dc091=_0x28fce['locale'];if(!_0x28fce['plugins']['has']('AlignmentEditing'))return;const _0x4ace7d=_0x28fce['plugins']['get']('TrackChangesEditing');_0x4ace7d['enableDefaultAttributesIntegration']('alignment'),_0x4ace7d['registerBlockAttribute']('alignment'),_0x4ace7d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2dc091,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ef01=this['editor'],_0x1637ae=_0x37ef01['locale'];_0x37ef01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52f45f=>{if('formatBlock'!=_0x52f45f['type'])return;const {data:_0x4aaea1}=_0x52f45f;if(_0x4aaea1&&'alignment'==_0x4aaea1['commandName']){const _0x5cda88=_0x4aaea1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1637ae,'*Format:*\x20%0',function(_0x57e6c6){switch(_0x57e6c6){case'left':return o(_0x1637ae,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1637ae,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1637ae,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1637ae,'FORMAT_JUSTIFY_TEXT');}}(_0x5cda88))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1f7250{['afterInit'](){const _0x39b138=this['editor'],_0x5c69c4=_0x39b138['plugins']['get']('TrackChangesEditing'),_0x3c8164=_0x39b138['locale'];for(const _0x3557d8 of ti){if(!_0x39b138['plugins']['has'](_0x3557d8))continue;const _0x153ea6=_0x3557d8['slice'](0x0,-0x7)['toLowerCase'](),_0x529e96='FORMAT_'+_0x153ea6['toUpperCase']();_0x5c69c4['enableDefaultAttributesIntegration'](_0x153ea6),_0x5c69c4['registerInlineAttribute'](_0x153ea6),_0x5c69c4['descriptionFactory']['registerAttributeLabel'](_0x153ea6,o(_0x3c8164,_0x529e96));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d7ab0=this['editor'],_0x4b9fc0=_0x4d7ab0['locale'],_0x4eb82e=_0x4d7ab0['plugins']['get']('TrackChangesEditing');function _0x274d9c(_0x22f19c,_0x6dc3ce){_0x4eb82e['descriptionFactory']['registerDescriptionCallback'](_0xe050b8=>{if('formatInline'!=_0xe050b8['type'])return;const {data:_0x106c4d}=_0xe050b8;return _0x106c4d&&_0x106c4d['commandName']===_0x22f19c?_0x106c4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b9fc0,'*Format:*\x20%0',_0x6dc3ce)}:{'type':'format','content':o(_0x4b9fc0,'*Remove\x20format:*\x20%0',_0x6dc3ce)}:void 0x0;});}_0x274d9c('bold',o(_0x4b9fc0,'FORMAT_BOLD')),_0x274d9c('italic',o(_0x4b9fc0,'FORMAT_ITALIC')),_0x274d9c('underline',o(_0x4b9fc0,'FORMAT_UNDERLINE')),_0x274d9c('code',o(_0x4b9fc0,'FORMAT_CODE')),_0x274d9c('strikethrough',o(_0x4b9fc0,'FORMAT_STRIKETHROUGH')),_0x274d9c('subscript',o(_0x4b9fc0,'FORMAT_SUBSCRIPT')),_0x274d9c('superscript',o(_0x4b9fc0,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1f7250{['afterInit'](){const _0x13ef28=this['editor'],_0x54e795=_0x13ef28['locale'];if(!_0x13ef28['plugins']['has']('BlockQuoteEditing'))return;const _0xe4621c=_0x13ef28['plugins']['get']('TrackChangesEditing'),_0x1997b3=this['editor']['commands']['get']('blockQuote');_0xe4621c['enableCommand']('blockQuote',(_0xf335f3,_0x42f0ef={})=>{const _0x32a6ba=this['editor']['model']['document']['selection'],_0x335b29=_0x42f0ef&&void 0x0!==_0x42f0ef['forceValue']?_0x42f0ef['forceValue']:!_0x1997b3['value'];let _0x5c588d=[];if(_0x335b29){const _0x2c0f7e=Array['from'](_0x32a6ba['getSelectedBlocks']())['filter'](_0x3fb7b0=>oo(_0x3fb7b0)||function(_0x45c509,_0x58a676){const _0x2758b9=_0x58a676['checkChild'](_0x45c509['parent'],'blockQuote'),_0x48c7b1=_0x58a676['checkChild'](['$root','blockQuote'],_0x45c509);return _0x2758b9&&_0x48c7b1;}(_0x3fb7b0,this['editor']['model']['schema']));_0x5c588d=to(_0x2c0f7e,_0x13ef28['model']);}else{const _0x227530=Array['from'](_0x32a6ba['getSelectedBlocks']())['filter'](_0x4edf09=>oo(_0x4edf09));_0x5c588d=to(_0x227530,_0x13ef28['model']);}_0x13ef28['model']['change'](()=>{for(const _0x42b9e0 of _0x5c588d)_0xe4621c['markBlockFormat'](_0x42b9e0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x335b29}]});});}),_0xe4621c['descriptionFactory']['registerDescriptionCallback'](_0x5cd541=>{const {data:_0x5a3aed}=_0x5cd541;if(_0x5a3aed&&'blockQuote'==_0x5a3aed['commandName']){const _0x5553e9=o(_0x54e795,'ELEMENT_BLOCK_QUOTE');return _0x5a3aed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54e795,'*Set\x20format:*\x20%0',_0x5553e9)}:{'type':'format','content':o(_0x54e795,'*Remove\x20format:*\x20%0',_0x5553e9)};}});}}function oo(_0x2bb348){return'blockQuote'==_0x2bb348['parent']['name'];}class G extends _0x1f7250{['afterInit'](){const _0x1e8732=this['editor'];_0x1e8732['plugins']['has']('CaseChange')&&(_0x1e8732['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e8732['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e8732['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1f7250{['afterInit'](){const _0x4249f5=this['editor'];_0x4249f5['commands']['get']('ckbox')&&_0x4249f5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1f7250{['afterInit'](){const _0x2b32d5=this['editor'];if(!_0x2b32d5['plugins']['has']('CodeBlock'))return;const _0xc3d654=_0x2b32d5['plugins']['get']('TrackChangesEditing'),_0x550e1e=_0x2b32d5['locale'],_0x5d72f7=_0x2b32d5['config']['get']('codeBlock')['languages'],_0x2ec4a4=_0x2b32d5['commands']['get']('codeBlock');_0xc3d654['enableCommand']('indentCodeBlock'),_0xc3d654['enableCommand']('outdentCodeBlock'),_0xc3d654['enableCommand']('codeBlock',(_0x4a6d2e,_0x2c4476={})=>{const _0x408827=_0x2b32d5['model'],_0x23b172=_0x2b32d5['model']['document']['selection'],_0x3d3f0b=_0x2c4476&&void 0x0!==_0x2c4476['forceValue']?_0x2c4476['forceValue']:!_0x2ec4a4['value'];let _0x471535;_0x2c4476['language']||(_0x2c4476['language']=_0x5d72f7[0x0]['language']),_0x471535=_0x3d3f0b?Array['from'](_0x23b172['getSelectedBlocks']())['filter'](_0x3432af=>eo(_0x3432af)||function(_0x47ffa8,_0x54bac2){if(_0x47ffa8['is']('rootElement')||_0x54bac2['isLimit'](_0x47ffa8))return!0x1;return _0x54bac2['checkChild'](_0x47ffa8['parent'],'codeBlock');}(_0x3432af,_0x408827['schema'])):Array['from'](_0x23b172['getSelectedBlocks']())['filter'](_0x1a2e43=>eo(_0x1a2e43));const _0x29cc94=to(_0x471535,_0x408827);_0x408827['change'](()=>{for(const _0x5a6627 of _0x29cc94)_0xc3d654['markBlockFormat'](_0x5a6627,{'commandName':'codeBlock','commandParams':[{..._0x2c4476,'forceValue':_0x3d3f0b}],'formatGroupId':'blockName'});});}),(_0xc3d654['descriptionFactory']['registerElementLabel']('codeBlock',_0x1c89fc=>o(_0x550e1e,'ELEMENT_CODE_BLOCK',_0x1c89fc)),_0xc3d654['descriptionFactory']['registerDescriptionCallback'](_0x55dc07=>{if('formatBlock'!=_0x55dc07['type'])return;const _0x362ab6=_0x550e1e['t'],{data:_0x4f8d50}=_0x55dc07;if(!_0x4f8d50||'codeBlock'!=_0x4f8d50['commandName'])return;const _0x54588e=_0x4f8d50['commandParams'][0x0]['language'],_0x2aed1a=_0x362ab6(_0x5d72f7['find'](_0x4c0f10=>_0x4c0f10['language']===_0x54588e)['label'])['toLowerCase']();return _0x4f8d50['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x550e1e,'*Set\x20format:*\x20%0',o(_0x550e1e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2aed1a+')')}:{'type':'format','content':o(_0x550e1e,'*Remove\x20format:*\x20%0',o(_0x550e1e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x308662){return'codeBlock'==_0x308662['name'];}class H extends _0x1f7250{['afterInit'](){const _0x2123bf=this['editor'];if(!_0x2123bf['plugins']['has']('CommentsEditing'))return;_0x2123bf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x28dacf,_0x406b4c,_0x514e6d){const _0x4114cc=[];for(const _0x27a270 of _0x406b4c['getItems']())_0x27a270['hasAttribute'](_0x28dacf)&&_0x4114cc['push'](_0x514e6d['createRangeOn'](_0x27a270));return _0x4114cc;}function _e(_0x5e3fd9,_0x29bdc0,{showActiveMarker:_0x65e0f4=!0x0}={}){const _0x45d336=_0x5e3fd9['plugins']['get']('TrackChangesEditing');return(_0x49a7ea,_0xdeb301,_0x5b0b54)=>{if(!_0x5b0b54['consumable']['test'](_0xdeb301['markerRange'],_0x49a7ea['name']))return;const _0x160ef0=_0xdeb301['markerRange']['getWalker'](),_0x217a1a=_0xdeb301['markerRange']['start'],_0x26da4f=_0x5e3fd9['model']['schema'];let _0xda6080=null,_0x35d789=null,_0x53fa0b=!0x1,_0x40e728=!0x1;for(const _0x23c8e2 of _0x160ef0){const _0x4cb2d4=_0x23c8e2['item'];_0x53fa0b=_0x53fa0b||_0x26da4f['isContent'](_0x4cb2d4);const _0x5ae3ab=_0x5b0b54['mapper']['toViewElement'](_0x4cb2d4);if(_0x5ae3ab&&_0x5ae3ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23c8e2['type']&&(_0x26da4f['isBlock'](_0x4cb2d4)&&!_0x26da4f['isLimit'](_0x4cb2d4)&&(_0x4cb2d4['nextSibling']||_0x217a1a['isAtEnd']?_0xda6080&&_0xda6080['parent']==_0x4cb2d4||(_0xda6080=_0x4cb2d4,_0x3b4800(_0x23c8e2['previousPosition']),_0x40e728=!0x0):_0x35d789=_0x35d789||_0x23c8e2['previousPosition']));}function _0x3b4800(_0x2c9ee0){const _0x32006d=_0x5b0b54['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x29bdc0}),_0x5cf128=_0x5b0b54['mapper']['toViewPosition'](_0x2c9ee0);_0x65e0f4&&_0x45d336['activeMarkers']['includes'](_0xdeb301['markerName'])&&_0x5b0b54['writer']['addClass']('ck-suggestion-marker--active',_0x32006d),_0x5b0b54['writer']['insert'](_0x5cf128,_0x32006d),_0x5b0b54['mapper']['bindElementToMarker'](_0x32006d,_0xdeb301['markerName']);}_0x53fa0b||_0x40e728||!_0x35d789||_0x3b4800(_0x35d789);};}class q extends _0x1f7250{static get['requires'](){return[_0x118190];}['init'](){const _0xc0993f=this['editor'],_0x450308=_0xc0993f['plugins']['get']('TrackChangesEditing');_0x450308['enableCommand']('delete');const _0x306151=_0xc0993f['commands']['get']('deleteForward');_0x450308['enableCommand']('deleteForward',(_0x2ea29b,_0x5d9c15={})=>{const _0x285e28=_0xc0993f['model']['createSelection'](_0xc0993f['model']['document']['selection']);_0x285e28['isCollapsed']&&_0xc0993f['model']['modifySelection'](_0x285e28,{'direction':'forward','unit':_0x5d9c15['unit']});const _0x2e1676=_0x285e28['getFirstRange'](),_0x7ae082=_0x248c8e['fromRange'](_0x2e1676);let _0x2b1904;_0x2ea29b(_0x5d9c15),_0x2b1904='$graveyard'==_0x7ae082['root']['rootName']?_0xc0993f['model']['createRange'](_0x2e1676['start']):_0xc0993f['model']['createRange'](_0x7ae082['start'],_0x7ae082['end']),_0x7ae082['detach'](),_0xc0993f['model']['enqueueChange'](_0x306151['buffer']['batch'],_0x2240de=>{_0x306151['buffer']['lock'](),_0x2240de['setSelection'](_0x2240de['createRange'](_0x2b1904['end'])),_0x306151['buffer']['unlock']();});}),_0xc0993f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xc0993f,'merge'),{'priority':'high'}),_0xc0993f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44a960,_0x31a36a,_0x102a49)=>{_0x102a49['options']['showSuggestionHighlights']&&_e(_0xc0993f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x44a960,_0x31a36a,_0x102a49);},{'priority':'high'}),_0xc0993f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x467498,_0x40633d,_0x3412f9)=>{const _0x7b89b7=_0x3412f9['mapper']['markerNameToElements'](_0x40633d['markerName']);if(_0x7b89b7){for(const _0x5d8a01 of _0x7b89b7)_0x5d8a01['is']('uiElement')&&(_0x3412f9['mapper']['unbindElementFromMarkerName'](_0x5d8a01,_0x40633d['markerName']),_0x3412f9['writer']['remove'](_0x5d8a01));}},{'priority':'high'});}}class z extends _0x1f7250{['afterInit'](){const _0xe36efc=this['editor'];if(!_0xe36efc['plugins']['has']('ListEditing'))return;const _0x1b65b8=_0xe36efc['locale'],_0x158512=_0xe36efc['plugins']['get']('TrackChangesEditing'),_0x44885a=_0xe36efc['plugins']['has']('TodoListEditing'),_0x149b35=!!_0xe36efc['config']['get']('list.multiBlock');function _0x3946a9(_0x36de53){return{'type':'format','content':''+o(_0x1b65b8,'*Set\x20format:*\x20%0',_0x36de53)};}function _0xc0d73b(_0x191f7a){return{'type':'format','content':''+o(_0x1b65b8,'*Remove\x20format:*\x20%0',_0x191f7a)};}_0x158512['enableDefaultAttributesIntegration']('numberedList'),_0x158512['enableDefaultAttributesIntegration']('bulletedList'),_0x158512['enableDefaultAttributesIntegration']('customNumberedList'),_0x158512['enableDefaultAttributesIntegration']('customBulletedList'),_0x158512['enableDefaultAttributesIntegration']('indentList'),_0x158512['enableDefaultAttributesIntegration']('outdentList'),_0x158512['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x158512['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x158512['registerBlockAttribute']('listItemId'),_0x158512['registerBlockAttribute']('listType'),_0x158512['registerBlockAttribute']('listIndent'),_0x149b35&&(_0x158512['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x158512['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x44885a&&(_0x158512['enableDefaultAttributesIntegration']('todoList'),_0x158512['enableDefaultAttributesIntegration']('checkTodoList'),_0x158512['registerBlockAttribute']('todoListChecked'),_0x158512['descriptionFactory']['registerDescriptionCallback'](_0x28da89=>{const {data:_0x5b7090}=_0x28da89;if(_0x5b7090&&'todoListChecked'==_0x5b7090['key'])return{'type':'format','content':_0x5b7090['newValue']?o(_0x1b65b8,'*Check\x20item*'):o(_0x1b65b8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x276ab3=>{if(_0x276ab3['batch']['isUndo'])return!0x1;let _0x1ad0c7=!0x1;const _0x184d71=_0x158512['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x382a90=>'todoListChecked'===_0x158512['_getAttributeKey'](_0x382a90));for(const _0x321df7 of _0x184d71){'todo'!=_0x321df7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x158512['_findSuggestions'](_0x321df7['getFirstRange'](),'attribute')['find'](_0x202215=>'listType'===_0x158512['_getAttributeKey'](_0x202215['suggestion']))||(_0x276ab3['removeMarker'](_0x321df7['getFirstMarker']()),_0x1ad0c7=!0x0));}return _0x1ad0c7;})),_0x158512['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1b65b8,'FORMAT_INDENT'));const _0x3d61b6={'type':'format','content':''};_0x158512['descriptionFactory']['registerDescriptionCallback'](_0x1f6ad8=>{const {data:_0xe0d40b}=_0x1f6ad8;if(!_0xe0d40b||'listType'!=_0xe0d40b['key'])return;let _0x160523=_0x1f6ad8['head'];for(;_0x160523;){if(_0x160523['data']&&(('listStyle'==_0x160523['data']['key']||'listMarkerStyle'==_0x160523['data']['key'])&&(_0x160523['data']['newValue']&&'default'!=_0x160523['data']['newValue']||'default'!=_0x160523['data']['oldValue']&&!_0xe0d40b['newValue'])||!_0x149b35&&_0x160523['data']['key']==m))return _0x3d61b6;_0x160523=_0x160523['next'];}if(null==_0xe0d40b['newValue'])switch(_0xe0d40b['oldValue']){case'bulleted':return _0xc0d73b(o(_0x1b65b8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc0d73b(o(_0x1b65b8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc0d73b(o(_0x1b65b8,'ELEMENT_TODO_LIST'));}switch(_0xe0d40b['newValue']){case'bulleted':return _0x3946a9(o(_0x1b65b8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3946a9(o(_0x1b65b8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3946a9(o(_0x1b65b8,'ELEMENT_TODO_LIST'));}}),_0x158512['descriptionFactory']['registerDescriptionCallback'](_0x3fc2a5=>{const {data:_0x17fb4d}=_0x3fc2a5;if(_0x17fb4d&&'listIndent'==_0x17fb4d['key'])return null==_0x17fb4d['newValue']||null==_0x17fb4d['oldValue']&&0x0==_0x17fb4d['newValue']?_0x3d61b6:void 0x0;}),_0x158512['descriptionFactory']['registerDescriptionCallback'](_0x26d7df=>{if('attribute'!=_0x26d7df['type'])return;const {data:_0x3fa673}=_0x26d7df;if(!_0x3fa673||'listItemId'!=_0x3fa673['key'])return;const _0x16b6ed=le(_0x26d7df);return'newValue'==_0x16b6ed?{'type':'format','content':o(_0x1b65b8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x16b6ed?{'type':'format','content':o(_0x1b65b8,'*Split:*\x20list\x20item')}:_0x3d61b6;}),_0xe36efc['model']['document']['registerPostFixer'](_0x41605e=>this['listItemIdFixer'](_0x41605e)),_0xe36efc['model']['document']['registerPostFixer'](_0x2f48d9=>this['noTrackChangesFixer'](_0x2f48d9)),_0xe36efc['model']['document']['registerPostFixer'](_0x7b1426=>this['assureChains'](_0x7b1426)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2790e9){if(_0x2790e9['batch']['isUndo']||!_0x2790e9['batch']['isLocal'])return!0x1;let _0x3169ad=!0x1;const _0x377ab3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1603e8=>_0x1603e8['data']&&'listItemId'==_0x1603e8['data']['key'])['filter'](_0x5a572f=>_0x5a572f['data']['newValue']&&_0x5a572f['data']['oldValue']);for(const _0x41c8ce of _0x377ab3)le(_0x41c8ce)||(_0x2790e9['removeMarker'](_0x41c8ce['getFirstMarker']()),_0x3169ad=!0x0);return _0x3169ad;}['noTrackChangesFixer'](_0x459152){if(_0x459152['batch']['isUndo']||!_0x459152['batch']['isLocal'])return!0x1;const _0x1f846a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1f846a['trackChangesCommand']['value'])return!0x1;let _0x489c9d=!0x1;const _0x1bd41e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x36b024=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x313f90=>'attribute'==_0x313f90['type'])['filter'](_0x12bf44=>_0x1bd41e['includes'](_0x12bf44['attributeKey']));if(0x0==_0x36b024['length'])return _0x489c9d;for(const _0x24f768 of _0x36b024){const _0x30f72d=_0x1f846a['_findSuggestions'](_0x24f768['range'],'attribute')['filter'](_0x541a09=>!_0x541a09['meta']['isNextTo'])['map'](_0x119d96=>_0x119d96['suggestion'])['filter'](_0x9c4dcc=>{const _0x52b06c=_0x1f846a['_getAttributeKey'](_0x9c4dcc);return _0x1bd41e['includes'](_0x52b06c);});if(_0x30f72d['length']){for(const _0x8b8237 of _0x30f72d)_0x459152['removeMarker'](_0x8b8237['getFirstMarker']());_0x489c9d=!0x0;}}return _0x489c9d;}['assureChains'](_0x410e1d){if(_0x410e1d['batch']['isUndo']||!_0x410e1d['batch']['isLocal'])return!0x1;const _0x158a92=this['editor']['plugins']['get']('TrackChangesEditing');let _0x77bbb7=!0x1;const _0x555d35=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x38cc53 of _0x158a92['getSuggestions']({'skipNotAttached':!0x0})){const _0x53a615=_0x158a92['_findSuggestions'](_0x38cc53['getFirstRange'](),'attribute')['map'](_0x569576=>_0x569576['suggestion'])['filter'](_0x526a9d=>_0x526a9d['data']&&_0x555d35['includes'](_0x526a9d['data']['key']));if(!_0x53a615['length'])continue;const _0x869b09=_0x53a615[0x0]['head']['attributes']['groupId'];if(!_0x53a615['every'](_0xd59fd=>_0xd59fd['attributes']['groupId']===_0x869b09)){for(const _0x50975e of _0x53a615)_0x494af2(_0x50975e,_0x869b09)&&(_0x77bbb7=!0x0);}}return _0x77bbb7;function _0x1d8573(_0x3b475c,_0x3f6114){for(const _0x431a69 of _0x158a92['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f2622=>'attribute'==_0x3f2622['type']&&_0x3f2622['attributes']['groupId']==_0x3b475c))_0x431a69['setAttribute']('groupId',_0x3f6114);}function _0x494af2(_0x5a6227,_0x48ed8b){let _0x16ece0=_0x5a6227['head'],_0x19cb33=!0x1;for(;_0x16ece0;)_0x16ece0['attributes']['groupId']!=_0x48ed8b&&(_0x1d8573(_0x16ece0['attributes']['groupId'],_0x48ed8b),_0x16ece0['setAttribute']('groupId',_0x48ed8b),_0x19cb33=!0x0),_0x16ece0=_0x16ece0['next'];return _0x19cb33;}}['_supportLegacySuggestions'](){const _0x46c488=this['editor'],_0x344dd6=_0x46c488['locale'],_0x5c8b7b=_0x46c488['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c8b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4c5d79,_0x150584){const _0xa766a3=[];for(let _0x54b9a6 of _0x4c5d79)_0x54b9a6['start']['nodeAfter']===_0x54b9a6['end']['parent']&&(_0x54b9a6=_0x46c488['model']['createRange'](_0x46c488['model']['createPositionAt'](_0x54b9a6['start']['nodeAfter'],0x0))),_0xa766a3['push'](_0x54b9a6);_0x46c488['model']['change'](_0x14463b=>{const _0x5c346e=_0x46c488['model']['document']['selection'],_0x480d8d=Array['from'](_0x5c346e['getRanges']())['map'](_0x5181c9=>_0x248c8e['fromRange'](_0x5181c9));_0x14463b['setSelection'](_0xa766a3),_0x46c488['commands']['get'](_0x150584['commandName'])['refresh'](),_0x150584['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46c488['execute'](_0x150584['commandName'],..._0x150584['commandParams']),_0x14463b['setSelection'](_0x480d8d);for(const _0x5c9dd3 of _0x480d8d)_0x5c9dd3['detach']();});}),_0x5c8b7b['descriptionFactory']['registerElementLabel'](function(_0x242841){const _0x2bc7b1=!_0x46c488['model']['schema']['isObject'](_0x242841),_0x41b1bf=_0x242841['previousSibling'],_0x4fc4e0=_0x242841['nextSibling'],_0x2e1c95=_0x242841['getAttribute']('listItemId'),_0x115530=!_0x41b1bf||_0x41b1bf['getAttribute']('listItemId')!==_0x2e1c95,_0x3472eb=!_0x4fc4e0||_0x4fc4e0['getAttribute']('listItemId')!==_0x2e1c95;return _0x2bc7b1&&Boolean(_0x2e1c95)&&_0x115530&&_0x3472eb;},_0x5f44e4=>o(_0x344dd6,'ELEMENT_LIST_ITEM',_0x5f44e4));}['_registerLegacyDescription'](){const _0x5de891=this['editor'],_0x58fbf2=_0x5de891['locale'];function _0x347347(_0x375e8b){const _0x3774ed=_0x5de891['commands']['get']('bulletedList')['value'],_0x2698e1=_0x5de891['commands']['get']('numberedList')['value'];return'numberedList'===_0x375e8b?_0x3774ed:_0x2698e1;}_0x5de891['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x58ec09){if('formatBlock'!=_0x58ec09['type'])return;const {data:_0x107b98}=_0x58ec09;if(!_0x107b98)return;let _0x4c8ea1,_0x43b0d0,_0x2026dc,_0x5813bd;switch(_0x107b98['commandName']){case'bulletedList':_0x2026dc=_0x107b98['commandParams'][0x0]['forceValue'],_0x5813bd=_0x347347(_0x107b98['commandName']),_0x4c8ea1=_0x2026dc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5813bd&&_0x5de891['config']['get']('list.multiBlock')||(_0x4c8ea1='*Change\x20to:*\x20%0'),_0x43b0d0={'type':'format','content':o(_0x58fbf2,_0x4c8ea1,o(_0x58fbf2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2026dc=_0x107b98['commandParams'][0x0]['forceValue'],_0x5813bd=_0x347347(_0x107b98['commandName']),_0x4c8ea1=_0x2026dc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5813bd&&_0x5de891['config']['get']('list.multiBlock')||(_0x4c8ea1='*Change\x20to:*\x20%0'),_0x43b0d0={'type':'format','content':o(_0x58fbf2,_0x4c8ea1,o(_0x58fbf2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c8ea1='*Indent:*\x20%0',_0x43b0d0={'type':'format','content':o(_0x58fbf2,_0x4c8ea1,o(_0x58fbf2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c8ea1=function(_0x491e41){const _0x41ceff=_0x491e41['getFirstRange']();let _0x19ebaf=_0x41ceff['start']['nodeAfter'];for(;_0x19ebaf&&_0x41ceff['containsItem'](_0x19ebaf);){if(_0x19ebaf['getAttribute']('listIndent')>0x0)return!0x1;_0x19ebaf=_0x19ebaf['nextSibling'];}return!0x0;}(_0x58ec09)?o(_0x58fbf2,'*Format:*\x20remove\x20from\x20%0',o(_0x58fbf2,function(_0x1a1990){return'ELEMENT_'+_0x1a1990['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x58ec09))):o(_0x58fbf2,'*Outdent:*\x20%0',o(_0x58fbf2,'ELEMENT_LIST_ITEM')),_0x43b0d0={'type':'format','content':_0x4c8ea1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x107b98['multipleBlocks']&&(_0x4c8ea1='*Merge:*\x20%0',_0x43b0d0={'type':'deletion','content':o(_0x58fbf2,_0x4c8ea1,o(_0x58fbf2,'ELEMENT_LIST_ITEM'))});}return _0x43b0d0;});}}function le(_0x8bd6c8){let _0x3b7ecb=_0x8bd6c8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b7ecb;){const _0x3f66ac=_0x3b7ecb['getAttribute']('listItemId');if(!_0x3f66ac)return!0x1;if(_0x3f66ac==_0x8bd6c8['data']['newValue'])return'newValue';if(_0x3f66ac==_0x8bd6c8['data']['oldValue'])return'oldValue';_0x3b7ecb=_0x3b7ecb['previousSibling'];}return!0x1;}class ue extends _0x1f7250{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d53bd=this['editor']['config']['get']('list.properties'),_0x51d02b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d53bd['styles']&&(_0x51d02b['enableDefaultAttributesIntegration']('listStyle'),_0x51d02b['registerBlockAttribute']('listStyle')),_0x1d53bd['reversed']&&(_0x51d02b['enableDefaultAttributesIntegration']('listReversed'),_0x51d02b['registerBlockAttribute']('listReversed')),_0x1d53bd['startIndex']&&(_0x51d02b['enableDefaultAttributesIntegration']('listStart'),_0x51d02b['registerBlockAttribute']('listStart'));const _0x5681df={'type':'format','content':''};_0x51d02b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x120433=this['editor']['locale'];_0x51d02b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x120433,'FORMAT_LIST_REVERSED')),_0x51d02b['descriptionFactory']['registerDescriptionCallback'](_0x232672=>{const {data:_0x262c93}=_0x232672;if(_0x262c93&&'listReversed'==_0x262c93['key'])return null==_0x262c93['newValue']||0x0==_0x262c93['newValue']&&null==_0x262c93['oldValue']?_0x5681df:void 0x0;}),_0x51d02b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x120433,'FORMAT_LIST_START')),_0x51d02b['descriptionFactory']['registerDescriptionCallback'](_0xed6e8b=>{const {data:_0x47199c}=_0xed6e8b;if(_0x47199c&&'listStart'==_0x47199c['key'])return null==_0x47199c['newValue']||0x1==_0x47199c['newValue']&&null==_0x47199c['oldValue']?_0x5681df:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2c83e2=>{if(_0x2c83e2['batch']['isUndo'])return!0x1;let _0x4458ee=!0x1;const _0x1566bd=_0x51d02b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ccbcc=>{const _0x22c0f0=_0x51d02b['_getAttributeKey'](_0x2ccbcc);return'listStart'==_0x22c0f0||'listReversed'==_0x22c0f0;});for(const _0x19e5af of _0x1566bd){const _0x110fb6=_0x19e5af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x110fb6||'customNumbered'==_0x110fb6)continue;_0x51d02b['_findSuggestions'](_0x19e5af['getFirstRange'](),'attribute')['find'](_0x4db83b=>'listType'==_0x51d02b['_getAttributeKey'](_0x4db83b['suggestion']))||(_0x2c83e2['removeMarker'](_0x19e5af['getFirstMarker']()),_0x4458ee=!0x0);}return _0x4458ee;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x209efa){const _0x196a66=this['editor']['locale'],{data:_0xaed0df}=_0x209efa,_0x18a32e={'type':'format','content':''};if(!_0xaed0df||'listStyle'!=_0xaed0df['key'])return;if(!_0xaed0df['oldValue'])return'default'==_0xaed0df['newValue']?_0x18a32e:{'type':'format','content':''+o(_0x196a66,'*Set\x20format:*\x20%0',o(_0x196a66,this['_getTranslationKeyForListStyle'](_0xaed0df['newValue'])))};if(!_0xaed0df['newValue']){if('default'==_0xaed0df['oldValue'])return _0x18a32e;let _0x5a547a=_0x209efa['head'];for(;_0x5a547a;){if(_0x5a547a['data']&&'listType'==_0x5a547a['data']['key']&&_0x5a547a['data']['newValue'])return _0x18a32e;_0x5a547a=_0x5a547a['next'];}return{'type':'format','content':''+o(_0x196a66,'*Remove\x20format:*\x20%0',o(_0x196a66,this['_getTranslationKeyForListStyle'](_0xaed0df['oldValue'])))};}if('default'!=_0xaed0df['newValue'])return{'type':'format','content':''+o(_0x196a66,'*Set\x20format:*\x20%0',o(_0x196a66,this['_getTranslationKeyForListStyle'](_0xaed0df['newValue'])))};let _0xd32acf=_0x209efa['head'];for(;_0xd32acf;){if(_0xd32acf['data']&&'listType'==_0xd32acf['data']['key']&&_0xd32acf['data']['newValue']&&_0xd32acf['data']['oldValue'])return _0x18a32e;_0xd32acf=_0xd32acf['next'];}return{'type':'format','content':o(_0x196a66,'*Set\x20format:*\x20%0',o(_0x196a66,'ELEMENT_'+_0x209efa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x367a3a=this['editor'],_0x36db35=_0x367a3a['locale'];_0x367a3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353710=>{if('formatBlock'!=_0x353710['type'])return;const {data:_0x4f2863}=_0x353710;if(!_0x4f2863)return;let _0xf7a9c4,_0x30cbcc;switch(_0x4f2863['commandName']){case'listStyle':_0xf7a9c4='*Change\x20to:*\x20%0',_0x30cbcc={'type':'format','content':o(_0x36db35,_0xf7a9c4,o(_0x36db35,this['_getTranslationKeyForListStyle'](_0x4f2863['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf7a9c4=_0x4f2863['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30cbcc={'type':'format','content':o(_0x36db35,_0xf7a9c4)};break;case'listStart':_0xf7a9c4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30cbcc={'type':'format','content':o(_0x36db35,_0xf7a9c4,_0x4f2863['commandParams'][0x0]['startIndex'])};}return _0x30cbcc;});}['_getTranslationKeyForListStyle'](_0x5ddb97){return'ELEMENT_'+function(_0x1b2c89){if(pe['includes'](_0x1b2c89))return'bulleted';if(ye['includes'](_0x1b2c89))return'numbered';return null;}(_0x5ddb97)['toUpperCase']()+'_LIST_'+_0x5ddb97['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1f7250{static get['requires'](){return[_0x5cc779];}['init'](){const _0x11c187=this['editor'],_0x4057c3=_0x11c187['plugins']['get']('TrackChangesEditing'),_0x5bd142=_0x11c187['commands']['get']('enter');_0x4057c3['enableCommand']('enter',()=>{_0x11c187['model']['change'](_0x51c620=>{const _0x2ecf5c=_0x11c187['model']['document']['selection'],_0x49cfc7=_0x2ecf5c['getFirstPosition'](),_0xd6ac18=_0x248c8e['fromRange'](_0x2ecf5c['getFirstRange']());if(_0x5bd142['enterBlock'](_0x51c620)){const _0xf092b0=_0x11c187['model']['createPositionAt'](_0x49cfc7['parent']['nextSibling'],0x0),_0xca964b=_0x51c620['createRange'](_0x49cfc7,_0xf092b0);_0x4057c3['markInsertion'](_0xca964b);}else _0x51c620['setSelection'](_0x51c620['createRange'](_0xd6ac18['end']));_0xd6ac18['detach'](),_0x5bd142['fire']('afterExecute',{'writer':_0x51c620});});}),_0x11c187['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x11c187,'split'),{'priority':'high'}),_0x11c187['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xe79b61,_0x40e6cb,_0x1b2633)=>{const _0x1d3fba=_0x1b2633['mapper']['markerNameToElements'](_0x40e6cb['markerName']);if(_0x1d3fba){for(const _0xea6d1f of _0x1d3fba)_0xea6d1f['hasClass']('ck-suggestion-marker-split')&&(_0x1b2633['mapper']['unbindElementFromMarkerName'](_0xea6d1f,_0x40e6cb['markerName']),_0x1b2633['writer']['remove'](_0xea6d1f));}},{'priority':'high'}),_0x11c187['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ace4a,_0x21106e,_0x412cc1)=>{_0x412cc1['options']['showSuggestionHighlights']&&_e(_0x11c187,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ace4a,_0x21106e,_0x412cc1);},{'priority':'high'});}}class J extends _0x1f7250{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x210c50=this['editor']['plugins']['get']('TrackChangesEditing');_0x210c50['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x210c50['enableCommand']('findNext'),_0x210c50['enableCommand']('findPrevious'),_0x210c50['enableCommand']('replace'),_0x210c50['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e39a5,_0x2b5023,_0x2e0880={}){const _0xa3f8ed=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e39a5(_0x1ca9b3=>('string'==typeof _0x2b5023?_0xa3f8ed['findByTextCallback'](_0x2b5023,_0x2e0880):_0x2b5023)(_0x1ca9b3)['filter'](_0x462e48=>!0x1===this['_isInDeletionRange'](_0x462e48,_0x1ca9b3['item'])),_0x2e0880);}['_isInDeletionRange'](_0x5dfb54,_0x4d474e){const _0x9067d2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d474e,_0x5dfb54['start']),this['editor']['model']['createPositionAt'](_0x4d474e,_0x5dfb54['end']));for(const _0x4d2bd9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9067d2['getIntersection'](_0x4d2bd9['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 _0x1f7250{['afterInit'](){const _0x4a1198=this['editor']['locale'],_0x26b9f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c74e5,commandName:_0x482a64}of ro)this['editor']['plugins']['has'](_0x4c74e5)&&(_0x26b9f2['enableDefaultAttributesIntegration'](_0x482a64),_0x26b9f2['registerInlineAttribute'](_0x482a64));_0x4a1198['t'],_0x26b9f2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4a1198,'FORMAT_FONT_SIZE')),_0x26b9f2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4a1198,'FORMAT_FONT_FAMILY')),_0x26b9f2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4a1198,'FORMAT_FONT_COLOR')),_0x26b9f2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4a1198,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3124d5=this['editor'],_0x4845d7=_0x3124d5['locale'];_0x3124d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42a4b0=>{const _0x3906b9=_0x4845d7['t'];if('formatInline'!=_0x42a4b0['type'])return;const {data:_0x51cffc}=_0x42a4b0;if(null!=_0x51cffc){if('fontSize'==_0x51cffc['commandName']){const _0xfaafa=_0x51cffc['commandParams'][0x0]['value'];if(_0xfaafa){const _0x56d70e=_0x3906b9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ee3cf=>_0x2ee3cf['model']==_0xfaafa)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4845d7,'*Set\x20font\x20size:*\x20%0',_0x56d70e)};}return{'type':'format','content':o(_0x4845d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x51cffc['commandName']){const _0x819be7=_0x51cffc['commandParams'][0x0]['value'];return _0x819be7?{'type':'format','content':o(_0x4845d7,'*Set\x20font\x20family:*\x20%0',_0x819be7)}:{'type':'format','content':o(_0x4845d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x51cffc['commandName']){const _0x132774=_0x51cffc['commandParams'][0x0]['value'];if(_0x132774){const _0x142259=_0x4fa766(this['editor']['config']['get']('fontColor.colors'))['find'](_0x26f8e3=>_0x26f8e3['model']==_0x132774);let _0x3fa3b2=_0x132774,_0x2388e5='';return _0x142259&&(_0x3fa3b2=_0x142259['label'],_0x2388e5=_0x3906b9(_0x3fa3b2)['toLowerCase']()),{'type':'format','content':o(_0x4845d7,'*Set\x20font\x20color:*\x20%0',_0x2388e5)['trim'](),'color':{'value':_0x132774,'title':_0x2388e5||_0x3fa3b2}};}return{'type':'format','content':o(_0x4845d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x51cffc['commandName']){const _0x190ff8=_0x51cffc['commandParams'][0x0]['value'];if(_0x190ff8){const _0x281343=_0x4fa766(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xc0fe7=>_0xc0fe7['model']==_0x190ff8);let _0x4b6df7=_0x190ff8,_0x179bb1='';return _0x281343&&(_0x4b6df7=_0x281343['label'],_0x179bb1=_0x3906b9(_0x4b6df7)['toLowerCase']()),{'type':'format','content':o(_0x4845d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x179bb1)['trim'](),'color':{'value':_0x190ff8,'title':_0x179bb1||_0x4b6df7}};}return{'type':'format','content':o(_0x4845d7,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1f7250{['afterInit'](){const _0x524cdd=this['editor'],_0x580831=_0x524cdd['plugins']['get']('TrackChangesEditing'),_0x317ed1=_0x524cdd['commands']['get']('copyFormat'),_0x4a0d57=_0x524cdd['commands']['get']('pasteFormat');_0x317ed1&&_0x4a0d57&&(_0x580831['enableDefaultAttributesIntegration']('pasteFormat'),_0x580831['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x385927=this['editor'],_0x5ed2d2=_0x385927['locale'];_0x385927['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f858d=>{if('formatBlock'!=_0x2f858d['type']&&'formatInline'!=_0x2f858d['type'])return;const {data:_0x341e4c}=_0x2f858d;if(_0x341e4c&&'pasteFormat'===_0x341e4c['commandName']){const _0x1f39c7=[],_0xbb7849=_0x341e4c['commandParams'][0x0];for(const [_0x2fb927,_0x4a4493]of Object['entries'](_0xbb7849))_0x1f39c7['push'](so(_0x385927,_0x2fb927,_0x4a4493));return _0x1f39c7['length']?{'type':'format','content':o(_0x5ed2d2,'*Set\x20format\x20to:*\x20%0',_0x1f39c7['join'](',\x20'))}:{'type':'format','content':o(_0x5ed2d2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x160907,_0x173c9e,_0x4ddc4c){const _0x4982f1=_0x160907['locale']['t'],_0x1b76f2=_0x173c9e['split'](/(?=[A-Z])/)['join']('\x20'),_0x3e52f9=_0x4982f1(_0x1b76f2['charAt'](0x0)['toUpperCase']()+_0x1b76f2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4ddc4c)return _0x3e52f9;if('fontColor'===_0x173c9e||'fontBackgroundColor'===_0x173c9e){const _0x110115=_0x4fa766(_0x160907['config']['get']('fontColor.colors'))['find'](_0x5f5250=>_0x5f5250['model']==_0x4ddc4c);return _0x3e52f9+'\x20('+(_0x110115?_0x4982f1(_0x110115['label'])['toLowerCase']():_0x4ddc4c)+')';}if('fontSize'===_0x173c9e&&isNaN(parseFloat(_0x4ddc4c))){const _0x1d65e6=_0x160907['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x160907['config']['get']('fontSize.options'))['find'](_0x100bbc=>_0x100bbc['model']==_0x4ddc4c);return _0x3e52f9+'\x20('+(_0x1d65e6?_0x4982f1(_0x1d65e6['title'])['toLowerCase']():_0x4ddc4c)+')';}return _0x3e52f9+'\x20('+_0x4ddc4c+')';}class Y extends _0x1f7250{['_headingOptions'];['afterInit'](){const _0x4f0132=this['editor'];if(!_0x4f0132['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f0132['config']['get']('heading.options');const _0x1f1939=_0x4f0132['locale'],_0x478118=_0x4f0132['plugins']['get']('TrackChangesEditing');_0x478118['enableDefaultAttributesIntegration']('heading');for(const _0x1b559e of this['_headingOptions'])'paragraph'!=_0x1b559e['model']&&_0x478118['descriptionFactory']['registerElementLabel'](_0x1b559e['model'],_0x28cd8d=>{const _0x103e0a=this['_getHeadingLevel'](_0x1b559e['model']);return null!==_0x103e0a?_0x4b03e3(_0x28cd8d,_0x103e0a):_0x2d3cb0(_0x28cd8d,_0x1b559e['title']);});function _0x4b03e3(_0x4070eb,_0x4d5a67){return o(_0x1f1939,'ELEMENT_HEADING',[_0x4070eb,_0x4d5a67]);}function _0x2d3cb0(_0x57dac2,_0x40707c){return o(_0x1f1939,'ELEMENT_HEADING_CUSTOM',[_0x57dac2,_0x40707c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bca21=this['editor'],_0x3d949a=_0x3bca21['locale'];function _0x4003e8(_0x2b947a,_0x1d6c29){return o(_0x3d949a,'ELEMENT_HEADING_CUSTOM',[_0x2b947a,_0x1d6c29]);}_0x3bca21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8a36=>{if('formatBlock'!=_0x2a8a36['type'])return;const {data:_0x32e1ec}=_0x2a8a36;if(_0x32e1ec&&'heading'==_0x32e1ec['commandName']){const _0x42c975=_0x32e1ec['commandParams'][0x0]['value'],_0x32d780=this['_getHeadingLevel'](_0x42c975);if(null!==_0x32d780)return{'type':'format','content':o(_0x3d949a,'*Change\x20to:*\x20%0',(_0x5933e8=0x1,_0x489459=_0x32d780,o(_0x3d949a,'ELEMENT_HEADING',[_0x5933e8,_0x489459])))};const _0x537b15=this['_headingOptions']['find'](_0x2a6c47=>_0x2a6c47['model']===_0x42c975)['title'];return{'type':'format','content':o(_0x3d949a,'*Change\x20to:*\x20%0',_0x4003e8(0x1,_0x537b15))};}var _0x5933e8,_0x489459;});}['_getHeadingLevel'](_0x2716a7){const _0xefebf2=_0x2716a7['match'](/^heading(\d+)/);if(_0xefebf2)return _0xefebf2[0x1];const _0x3b0a70=this['_headingOptions']?.['find'](_0x3bf880=>_0x3bf880['model']==_0x2716a7);if(_0x3b0a70&&_0x3b0a70['view']){const _0x57ab32=_0x3b0a70['view'],_0x16ff02=(_0x57ab32['name']??_0x57ab32)['match'](/^h(\d+)/);if(_0x16ff02)return _0x16ff02[0x1];}return null;}}class Z extends _0x1f7250{['afterInit'](){const _0x571283=this['editor'];if(!_0x571283['plugins']['has']('HighlightEditing'))return;const _0x51f0bb=_0x571283['plugins']['get']('TrackChangesEditing'),_0x1cd60d=_0x571283['locale'];_0x51f0bb['enableDefaultAttributesIntegration']('highlight'),_0x51f0bb['registerInlineAttribute']('highlight'),_0x51f0bb['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1cd60d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcb0a=this['editor'],_0x47d2fa=_0x1fcb0a['locale'];_0x1fcb0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39b5ba=>{if('formatInline'!=_0x39b5ba['type'])return;const {data:_0x308359}=_0x39b5ba;if(_0x308359&&'highlight'==_0x308359['commandName']){const _0x3b3824=_0x47d2fa['t'],_0x5858d2=_0x308359['commandParams'][0x0]['value'];if(_0x5858d2){const _0x5dc315=_0x1fcb0a['config']['get']('highlight.options')['find'](_0x2031e5=>_0x2031e5['model']==_0x5858d2),_0x534316=_0x3b3824(_0x5dc315['title'])['toLowerCase']();return{'type':'format','content':o(_0x47d2fa,'*Set\x20highlight:*\x20%0',_0x534316),'color':{'value':_0x5dc315['color'],'title':_0x5dc315['title']}};}return{'type':'format','content':o(_0x47d2fa,'*Remove\x20highlight*',o(_0x47d2fa,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1f7250{['afterInit'](){const _0x421286=this['editor'];if(!_0x421286['plugins']['has']('HorizontalLineEditing'))return;_0x421286['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa60a3c=_0x421286['plugins']['get']('TrackChangesEditing'),_0x5ad858=_0x421286['locale'];_0xa60a3c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x43cc52=>o(_0x5ad858,'ELEMENT_HORIZONTAL_LINE',_0x43cc52)),_0x421286['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x545b83,{writer:_0x767c59,options:_0x4a494a})=>{if(!_0x4a494a['showSuggestionHighlights'])return null;const _0x872d24=_0x767c59['createContainerElement']('div'),_0x210f3b=_0x767c59['createEmptyElement']('hr');return _0x767c59['addClass']('ck-horizontal-line',_0x872d24),_0x767c59['insert'](_0x767c59['createPositionAt'](_0x872d24,0x0),_0x210f3b),_0x872d24;},'converterPriority':'high'});}}class et extends _0x1f7250{['afterInit'](){const _0x2e7383=this['editor'];if(!_0x2e7383['plugins']['has']('HtmlEmbed'))return;const _0x5cbc3e=_0x2e7383['plugins']['get']('TrackChangesEditing'),_0x35ce86=_0x2e7383['locale'];_0x5cbc3e['descriptionFactory']['registerElementLabel']('rawHtml',_0x331f21=>o(_0x35ce86,'ELEMENT_HTML_EMBED',_0x331f21)),_0x5cbc3e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5cbc3e['registerBlockAttribute']('value'),_0x5cbc3e['descriptionFactory']['registerDescriptionCallback'](_0x10bc59=>{if('attribute'!=_0x10bc59['type'])return;const {data:_0x3f856e}=_0x10bc59;if(_0x3f856e&&'value'==_0x3f856e['key']&&_0x10bc59['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x531ec3=o(_0x35ce86,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x35ce86,'*Change\x20%0\x20content*',_0x531ec3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29af64=this['editor'],_0x5dfa99=_0x29af64['locale'];_0x29af64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x248365=>{if('formatBlock'!=_0x248365['type'])return;const {data:_0xd471c0}=_0x248365;if(_0xd471c0&&'htmlEmbed'==_0xd471c0['commandName']){const _0x1ab560=o(_0x5dfa99,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5dfa99,'*Change\x20%0\x20content*',_0x1ab560)};}});}}class it extends _0x1f7250{['afterInit'](){const _0x2c6b71=this['editor'];if(!_0x2c6b71['plugins']['has']('ImageEditing'))return;const _0x26b4ea=_0x2c6b71['plugins']['get']('TrackChangesEditing'),_0x259a9c=_0x2c6b71['plugins']['get']('ImageUtils'),_0x43748d=_0x2c6b71['locale'];_0x26b4ea['enableCommand']('insertImage'),_0x26b4ea['descriptionFactory']['registerElementLabel']('imageBlock',_0x209056=>o(_0x43748d,'ELEMENT_IMAGE',_0x209056)),_0x26b4ea['descriptionFactory']['registerElementLabel']('imageInline',_0x172ff7=>o(_0x43748d,'ELEMENT_INLINE_IMAGE',_0x172ff7)),_0x26b4ea['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x43748d,'ELEMENT_CAPTION')),_0x2c6b71['plugins']['has']('ImageUploadEditing')&&_0x26b4ea['enableCommand']('uploadImage'),_0x2c6b71['plugins']['has']('ImageBlockEditing')&&_0x2c6b71['plugins']['has']('ImageInlineEditing')&&(_0x26b4ea['enableCommand']('imageTypeInline',(_0x2133f1,_0x27827e)=>{const _0x45e57f=_0x259a9c['getClosestSelectedImageElement'](_0x2c6b71['model']['document']['selection']);_0x2c6b71['model']['change'](()=>{_0x26b4ea['markBlockFormat'](_0x45e57f,{'commandName':'imageTypeInline','commandParams':[_0x27827e]},[],'convertBlockImageToInline');});}),_0x26b4ea['enableCommand']('imageTypeBlock',(_0x51dcfb,_0x2b7af3)=>{_0x2c6b71['model']['change'](_0x3030f7=>{let _0x10e2d1=_0x259a9c['getClosestSelectedImageElement'](_0x2c6b71['model']['document']['selection']),_0x44cba4=_0x3030f7['createRangeOn'](_0x10e2d1);const _0x11b779=_0x561d7a['fromPosition'](_0x44cba4['start'],'toPrevious'),_0x14056c=_0x561d7a['fromPosition'](_0x44cba4['end'],'toNext');_0x26b4ea['forceDefaultExecution'](()=>_0x51dcfb(_0x2b7af3)),_0x10e2d1=_0x259a9c['getClosestSelectedImageElement'](_0x2c6b71['model']['document']['selection']),_0x44cba4=_0x3030f7['createRangeOn'](_0x10e2d1);const _0x134e11=_0x3030f7['createRange'](_0x11b779,_0x14056c);_0x11b779['detach'](),_0x14056c['detach'](),_0x26b4ea['markBlockFormat'](_0x10e2d1,{'commandName':'imageTypeInline','commandParams':[_0x2b7af3]},[],'convertInlineImageToBlock'),_0x134e11['start']['isBefore'](_0x44cba4['start'])&&_0x26b4ea['markInsertion'](_0x3030f7['createRange'](_0x134e11['start'],_0x44cba4['start']),'convertInlineImageToBlock'),_0x44cba4['end']['isBefore'](_0x134e11['end'])&&_0x26b4ea['markInsertion'](_0x3030f7['createRange'](_0x44cba4['end'],_0x134e11['end']),'convertInlineImageToBlock');});}),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26b4ea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10ba4c])=>{const _0x4727a3=_0x26b4ea['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5027f9=_0x10ba4c['start'],_0x5d833f=_0x10ba4c['end'];const _0x2dfca3=_0x2c6b71['model']['schema']['getNearestSelectionRange'](_0x5027f9,'backward'),_0x2f80f0=_0x2c6b71['model']['schema']['getNearestSelectionRange'](_0x5d833f,'forward');_0x2dfca3['isCollapsed']&&(_0x5027f9=_0x2dfca3['start']),_0x2f80f0['isCollapsed']&&(_0x5d833f=_0x2f80f0['end']),_0x4727a3([_0x2c6b71['model']['createRange'](_0x5027f9,_0x5d833f)]);}),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x57e1d2),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x57e1d2)),_0x2c6b71['plugins']['has']('ImageCaptionEditing')&&(_0x26b4ea['enableCommand']('toggleImageCaption',(_0x40443c,_0x595211)=>{const _0x545383=_0x2c6b71['plugins']['get']('ImageCaptionUtils');let _0x3cb674=_0x259a9c['getClosestSelectedImageElement'](_0x2c6b71['model']['document']['selection']),_0x58c5da=_0x545383['getCaptionFromImageModelElement'](_0x3cb674);_0x2c6b71['model']['change'](()=>{if(_0x58c5da)return void _0x26b4ea['markDeletion'](_0x2c6b71['model']['createRangeOn'](_0x58c5da));const _0x5ac511=_0x259a9c['isBlockImage'](_0x3cb674);_0x40443c(_0x595211),_0x3cb674=_0x259a9c['getClosestSelectedImageElement'](_0x2c6b71['model']['document']['selection']),_0x58c5da=_0x545383['getCaptionFromImageModelElement'](_0x3cb674),_0x26b4ea['markInsertion'](_0x2c6b71['model']['createRangeOn'](_0x58c5da),_0x5ac511?null:'imageCaption');});}),_0x26b4ea['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x57e1d2));const _0x28198=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49d6d6(_0x19c373,_0x336598){const _0x205701=_0x28198['findIndex'](({type:_0x3c72ef,subType:_0x327f4f})=>_0x19c373['type']==_0x3c72ef&&_0x19c373['subType']==_0x327f4f),_0x4a82fa=_0x28198['findIndex'](({type:_0x5baac1,subType:_0x230b06})=>_0x336598['type']==_0x5baac1&&_0x336598['subType']==_0x230b06);if(_0x205701<0x0||_0x4a82fa<0x0)return!0x1;const _0xd6656=_0x19c373['getFirstRange'](),_0x169120=_0x336598['getFirstRange']();if((0x0==_0x205701||0x1==_0x205701)&&0x2==_0x4a82fa&&_0xd6656['isIntersecting'](_0x169120))return!0x0;if(0x2==_0x205701&&0x3==_0x4a82fa){const _0x415df6=_0x26b4ea['_findSuggestions'](_0xd6656,'insertion')['filter'](({suggestion:_0x4cd670,meta:_0x2313df})=>_0x2313df['isOwn']&&'convertInlineImageToBlock'==_0x4cd670['subType']);if(_0x415df6['length']>0x1&&_0x169120['end']['isEqual'](_0xd6656['start']))return!0x0;if(0x1==_0x415df6['length']&&(_0xd6656['start']['isEqual'](_0x169120['end'])||_0xd6656['end']['isEqual'](_0x169120['start'])))return!0x0;}if(0x3==_0x205701&&0x3==_0x4a82fa&&_0xd6656['start']['isBefore'](_0x169120['start'])){const _0x3f15fd=_0xd6656['end']['nodeAfter'],_0x46e9e1=_0x169120['start']['nodeBefore'];return _0x259a9c['isBlockImage'](_0x3f15fd)&&_0x3f15fd===_0x46e9e1;}return!0x1;}function _0x57e1d2(_0x98e986,_0x51c4d1){return _0x49d6d6(_0x98e986,_0x51c4d1)?[_0x98e986,_0x51c4d1]:_0x49d6d6(_0x51c4d1,_0x98e986)?[_0x51c4d1,_0x98e986]:null;}_0x2c6b71['plugins']['has']('ImageResize')&&(_0x26b4ea['enableDefaultAttributesIntegration']('resizeImage'),_0x26b4ea['registerBlockAttribute']('resizedWidth'),_0x26b4ea['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x43748d,'FORMAT_IMAGE_SIZE'))),_0x2c6b71['plugins']['has']('ImageTextAlternativeEditing')&&(_0x26b4ea['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x26b4ea['registerBlockAttribute']('alt')),_0x26b4ea['descriptionFactory']['registerDescriptionCallback'](_0x5e68b7=>{if(!!_0x28198['find'](({type:_0x349226,subType:_0x11fc62})=>_0x5e68b7['type']==_0x349226&&_0x5e68b7['subType']==_0x11fc62))return _0x5e68b7['previous']?{}:void 0x0;}),_0x26b4ea['descriptionFactory']['registerDescriptionCallback'](_0x337d4d=>{if('insertion'==_0x337d4d['type']||'deletion'==_0x337d4d['type']){const _0x403f2a=_0x337d4d['getContainedElement']();if(_0x403f2a&&_0x403f2a['is']('element','caption'))return{'type':'insertion'==_0x337d4d['type']?'addObject':'removeObject','element':_0x403f2a,'quantity':0x1};}}),_0x26b4ea['descriptionFactory']['registerDescriptionCallback'](_0x34053e=>'formatBlock'==_0x34053e['type']&&'convertInlineImageToBlock'==_0x34053e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34053e['type']&&'convertBlockImageToInline'==_0x34053e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26b4ea['descriptionFactory']['registerDescriptionCallback'](_0x220b53=>{if('attribute'!=_0x220b53['type'])return;const {data:_0x263c46}=_0x220b53;if(!_0x263c46||'alt'!=_0x263c46['key'])return;const _0x14610a=_0x263c46['newValue'];return _0x14610a?{'type':'format','content':o(_0x43748d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14610a+'\x22')}:{'type':'format','content':o(_0x43748d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dceb7=this['editor'],_0x129e4e=_0x4dceb7['locale'];_0x4dceb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4df7dd=>{if('formatBlock'!=_0x4df7dd['type']&&'formatInline'!=_0x4df7dd['type'])return;const {data:_0x102e49}=_0x4df7dd;if(_0x102e49){if('imageTextAlternative'==_0x102e49['commandName']){const _0x96d45c=_0x102e49['commandParams'][0x0]['newValue'];return _0x96d45c?{'type':'format','content':o(_0x129e4e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x96d45c+'\x22')}:{'type':'format','content':o(_0x129e4e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x102e49['commandName']){const _0x14d5b2=_0x102e49['commandParams'][0x0]['width'];return _0x14d5b2?{'type':'format','content':o(_0x129e4e,'*Set\x20image\x20width:*\x20%0',_0x14d5b2)}:{'type':'format','content':o(_0x129e4e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1f7250{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x370c3d=this['editor']['locale'],_0x434623=this['editor']['plugins']['get']('TrackChangesEditing');_0x434623['enableDefaultAttributesIntegration']('replaceImageSource'),_0x434623['registerBlockAttribute']('src'),_0x434623['descriptionFactory']['registerDescriptionCallback'](_0x91f3f=>{if('attribute'!=_0x91f3f['type'])return;const {data:_0x3cca5f}=_0x91f3f;return _0x3cca5f&&'src'==_0x3cca5f['key']?_0x3cca5f['newValue']&&_0x3cca5f['oldValue']?{'type':'format','content':o(_0x370c3d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x374b74=this['editor']['plugins']['get']('TrackChangesEditing');_0x374b74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x374b74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x374b74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x374b74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6841d=this['editor'],_0x1cbe4c=_0xb6841d['locale'];_0xb6841d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bbc12=>{if('formatBlock'!=_0x5bbc12['type']&&'formatInline'!=_0x5bbc12['type'])return;const {data:_0x5357af}=_0x5bbc12;if(!_0x5357af||'replaceImageSource'!=_0x5357af['commandName'])return;return{'type':'format','content':o(_0x1cbe4c,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1f7250{['afterInit'](){const _0x5ef39c=this['editor'];if(!_0x5ef39c['plugins']['has']('ImageStyleEditing'))return;const _0x5894b0=_0x5ef39c['plugins']['get']('TrackChangesEditing'),_0xb2f2c7=_0x5ef39c['plugins']['get']('ImageUtils'),_0x4f72e9={};_0x5894b0['enableCommand']('imageStyle',(_0x7bba56,_0x55c5ad)=>{const _0x1f9bd3=_0x5ef39c['plugins']['get']('Users')['me'],_0x2875d0=_0x5ef39c['commands']['get']('imageStyle');let _0x2d2c8a=_0xb2f2c7['getClosestSelectedImageElement'](_0x5ef39c['model']['document']['selection']),_0x4c64e3=_0x5ef39c['model']['createRangeOn'](_0x2d2c8a),_0x5b40d9=_0x2875d0['value'];if(_0x5b40d9==_0x55c5ad['value'])return;const _0x346e8f={'commandName':'imageStyle','commandParams':[_0x55c5ad],'formatGroupId':_0x1d2ed9()};_0x5ef39c['model']['change'](()=>{if(_0x5894b0['getSuggestions']()['filter'](_0x10c557=>_0x10c557['isInContent']&&_0x1f9bd3==_0x10c557['author']&&('formatBlock'==_0x10c557['type']||'formatInline'==_0x10c557['type'])&&('imageStylePreApply'==_0x10c557['subType']||'imageStylePostApply'==_0x10c557['subType'])&&_0x10c557['getFirstRange']()['isEqual'](_0x4c64e3))['forEach'](_0x5a7c6d=>_0x5894b0['discardSuggestion'](_0x5a7c6d['head'])),_0x2d2c8a=_0xb2f2c7['getClosestSelectedImageElement'](_0x5ef39c['model']['document']['selection']),_0x4c64e3=_0x5ef39c['model']['createRangeOn'](_0x2d2c8a),_0x2875d0['refresh'](),_0x5ef39c['commands']['get']('imageTypeInline')['refresh'](),_0x5ef39c['commands']['get']('imageTypeBlock')['refresh'](),_0x5b40d9=_0x2875d0['value'],_0x5b40d9!=_0x55c5ad['value'])return _0xb2f2c7['isInlineImage'](_0x2d2c8a)&&_0x2875d0['shouldConvertImageType'](_0x55c5ad['value'],_0x2d2c8a)?(_0x7bba56({..._0x55c5ad,'setImageSizes':!0x1}),_0x2d2c8a=_0xb2f2c7['getClosestSelectedImageElement'](_0x5ef39c['model']['document']['selection']),void _0x5894b0['markBlockFormat'](_0x2d2c8a,{..._0x346e8f,'commandReversedParams':[{'value':_0x5b40d9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xb2f2c7['isBlockImage'](_0x2d2c8a)?_0x5894b0['markBlockFormat'](_0x2d2c8a,_0x346e8f,[],'imageStylePostApply'):_0x5894b0['markInlineFormat'](_0x4c64e3,_0x346e8f,'imageStylePostApply'));});});for(const _0x3159f4 of _0x5ef39c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f72e9[_0x3159f4['name']]=_0x3159f4['title']['toLowerCase']();_0x5894b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5894b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5894b0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5894b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1bea99])=>{_0xb2f2c7['setImageNaturalSizeAttributes'](_0x1bea99['getContainedElement']());}),_0x5894b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2e10ec,_0x51c196)=>{_0x5894b0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2e10ec,{'commandName':_0x51c196['commandName'],'commandParams':_0x51c196['commandReversedParams']});}),_0x5894b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x22c63f,_0x9951ed){if(_0x1f29da(_0x22c63f,_0x9951ed))return[_0x22c63f,_0x9951ed];if(_0x1f29da(_0x9951ed,_0x22c63f))return[_0x9951ed,_0x22c63f];return null;});const _0x51eefc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f29da(_0x87a5c8,_0x5da2fa){const _0xd56fab=_0x51eefc['findIndex'](({type:_0x282801,subType:_0x10b17c})=>_0x87a5c8['type']==_0x282801&&_0x87a5c8['subType']==_0x10b17c),_0x1e4a09=_0x51eefc['findIndex'](({type:_0x4394a1,subType:_0x1579c1})=>_0x5da2fa['type']==_0x4394a1&&_0x5da2fa['subType']==_0x1579c1);if(_0xd56fab<0x0||_0x1e4a09<0x0)return!0x1;const _0x872807=_0x87a5c8['getFirstRange'](),_0xc11423=_0x5da2fa['getFirstRange']();if((0x0==_0xd56fab||0x1==_0xd56fab)&&0x2==_0x1e4a09&&_0x872807['isIntersecting'](_0xc11423))return!0x0;if(0x2==_0xd56fab&&0x3==_0x1e4a09){const _0x5b8662=_0x5894b0['_findSuggestions'](_0x872807,'insertion')['filter'](({suggestion:_0x5244fa,meta:_0x1a6f33})=>_0x1a6f33['isOwn']&&'convertInlineImageToBlock'==_0x5244fa['subType']);if(_0x5b8662['length']>0x1&&_0xc11423['end']['isEqual'](_0x872807['start']))return!0x0;if(0x1==_0x5b8662['length']&&(_0x872807['start']['isEqual'](_0xc11423['end'])||_0x872807['end']['isEqual'](_0xc11423['start'])))return!0x0;}if(0x3==_0xd56fab&&0x3==_0x1e4a09&&_0x872807['start']['isBefore'](_0xc11423['start'])){const _0x4efea2=_0x872807['end']['nodeAfter'],_0x1dba6d=_0xc11423['start']['nodeBefore'];return _0xb2f2c7['isBlockImage'](_0x4efea2)&&_0x4efea2===_0x1dba6d;}return!0x1;}_0x5ef39c['model']['document']['registerPostFixer'](()=>{let _0x5e73b8=!0x1;const _0x3c7e74=Array['from'](_0x5ef39c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c562d,data:_0x4be6e5}of _0x3c7e74){const {group:_0xb99669,type:_0x259114,subType:_0x18d165,id:_0x3c7824}=_0x5894b0['_splitMarkerName'](_0x3c562d);if('suggestion'==_0xb99669&&_0x5894b0['hasSuggestion'](_0x3c7824)){if('formatBlock'==_0x259114&&('imageStylePreApply'==_0x18d165||'imageStylePostApply'==_0x18d165)){const _0x516648=_0x5894b0['getSuggestion'](_0x3c7824);if(_0x4be6e5['newRange']){const _0x59b728=_0x516648['getFirstRange']()['getContainedElement']();if(_0xb2f2c7['isBlockImage'](_0x59b728))continue;_0x5894b0['discardSuggestion'](_0x516648),_0x5e73b8=!0x0;}}if('insertion'==_0x259114&&'imageCaption'==_0x18d165&&!_0x4be6e5['newRange']){const _0x21d09c=_0x5894b0['getSuggestion'](_0x3c7824);_0x21d09c['next']&&_0x21d09c['next']['isInContent']&&(_0x5894b0['discardSuggestion'](_0x21d09c['next']),_0x5e73b8=!0x0);}}}return _0x5e73b8;}),this['_registerLegacyDescription'](_0x4f72e9);}['_registerLegacyDescription'](_0x300167){const _0x2e51e7=this['editor'],_0xab6fe0=_0x2e51e7['locale'];_0x2e51e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38dbcd=>{if('formatBlock'!=_0x38dbcd['type']&&'formatInline'!=_0x38dbcd['type'])return;const {data:_0x33245b}=_0x38dbcd;if(!_0x33245b||'imageStyle'!=_0x33245b['commandName'])return;const _0x38bef7=_0x33245b['commandParams'][0x0]['value'];return _0x296db2('side'===_0x38bef7?o(_0xab6fe0,'FORMAT_SIDE_IMAGE'):_0x300167[_0x38bef7]||_0x38bef7);function _0x296db2(_0x550398){return{'type':'format','content':o(_0xab6fe0,'*Format:*\x20%0',_0x550398)};}});}}class ot extends _0x1f7250{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24bf80){super(_0x24bf80),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x43fe4b=this['editor'],_0xd7b1ed=_0x43fe4b['commands']['get']('importWord'),_0x5e04e0=_0x43fe4b['commands']['get']('trackChanges');_0xd7b1ed&&(_0xd7b1ed['on']('execute',(_0x44c09a,[,_0x531bf8])=>{this['_trackChangesValueDuringImport']=_0x5e04e0['value'],_0x531bf8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd7b1ed,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd7b1ed,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5e04e0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x43fe4b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x160dd2,_0x16e3e7){const {suggestions:_0x2d7ee6}=_0x16e3e7,_0x51ebce=this['editor']['commands']['get']('trackChanges'),_0x4d0053=_0x51ebce['value'];this['_trackChangesValueDuringImport']!==_0x4d0053&&(_0x51ebce['execute'](),this['_trackChangesExecuted']=!0x0),_0x2d7ee6&&_0x2d7ee6['forEach'](({id:_0x1a2fea,type:_0x2a08b4,author:_0x117e67,created_at:_0x279621})=>{const _0x3a44d1={'id':_0x1a2fea,'type':_0x2a08b4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x117e67,'createdAt':_0x279621?new Date(_0x279621):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3a44d1);});}}class rt extends _0x1f7250{['afterInit'](){const _0x30edb3=this['editor'],_0x35ce0a=_0x30edb3['plugins']['get']('TrackChangesEditing');if(_0x30edb3['plugins']['has']('IndentEditing')&&(_0x35ce0a['enableCommand']('indent'),_0x35ce0a['enableCommand']('outdent')),_0x30edb3['plugins']['has']('IndentBlock')){for(const _0x4a6eb9 of['indentBlock','outdentBlock'])_0x35ce0a['enableDefaultAttributesIntegration'](_0x4a6eb9);}const _0x1be7c9=_0x30edb3['locale'];_0x35ce0a['registerBlockAttribute']('blockIndent'),_0x35ce0a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1be7c9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9806=this['editor'],_0x54d9c2=_0x3b9806['locale'],_0x54c002=_0x3b9806['plugins']['get']('TrackChangesEditing');_0x54c002['descriptionFactory']['registerDescriptionCallback'](_0xdde7e7=>{if('formatBlock'!=_0xdde7e7['type'])return;const {data:_0x318bb6}=_0xdde7e7;if(!_0x318bb6)return;if('indentBlock'!=_0x318bb6['commandName']&&'outdentBlock'!=_0x318bb6['commandName'])return;const _0x44d69c=_0xdde7e7['getItems']()[0x0],_0x17938e=_0x54c002['descriptionFactory']['getItemLabel'](_0x44d69c);return'indentBlock'==_0x318bb6['commandName']?{'type':'format','content':o(_0x54d9c2,'*Indent:*\x20%0',_0x17938e)}:'outdentBlock'==_0x318bb6['commandName']?{'type':'format','content':o(_0x54d9c2,'*Outdent:*\x20%0',_0x17938e)}:void 0x0;});}}class at extends _0x1f7250{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1f7250{['afterInit'](){const _0x288796=this['editor'];if(!_0x288796['plugins']['has']('LinkEditing'))return;const _0x54c447=_0x288796['plugins']['get']('TrackChangesEditing'),_0x45373d=_0x288796['commands']['get']('link');_0x54c447['enableDefaultAttributesIntegration']('link'),_0x54c447['enableDefaultAttributesIntegration']('unlink'),_0x54c447['registerInlineAttribute']('linkHref');for(const _0x4e8867 of _0x45373d['manualDecorators'])_0x54c447['registerInlineAttribute'](_0x4e8867['id']),_0x54c447['descriptionFactory']['registerAttributeLabel'](_0x4e8867['id'],'link\x20('+_0x4e8867['label']['toLowerCase']()+')');_0x54c447['descriptionFactory']['registerDescriptionCallback'](_0x6b52c5=>{if('attribute'!=_0x6b52c5['type'])return;const {data:_0x50f283}=_0x6b52c5;if(!_0x50f283||'linkHref'!=_0x50f283['key'])return;const _0x52b45b=_0x50f283['newValue'],_0x3c657d=_0x288796['locale'];return{'type':'format','content':null==_0x52b45b?o(_0x3c657d,'*Remove\x20link*'):o(_0x3c657d,'*Set\x20link:*\x20%0','\x22'+_0x52b45b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x136fee=this['editor'],_0x33f57b=_0x136fee['locale'];_0x136fee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f9739=>{if('formatInline'!=_0x4f9739['type'])return;const {data:_0x3ce97c}=_0x4f9739;if(_0x3ce97c){if('link'==_0x3ce97c['commandName']){const _0x4db4d3=_0x3ce97c['commandParams'][0x0];return{'type':'format','content':o(_0x33f57b,'*Set\x20link:*\x20%0','\x22'+_0x4db4d3+'\x22')};}return'unlink'==_0x3ce97c['commandName']?{'type':'format','content':o(_0x33f57b,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1f7250{['afterInit'](){const _0x3584af=this['editor'],_0x346e39=_0x3584af['locale'];if(!_0x3584af['plugins']['has']('LegacyListEditing'))return;const _0x5ecefa=_0x3584af['plugins']['get']('TrackChangesEditing'),_0x1f6aee=_0x3584af['plugins']['has']('LegacyTodoListEditing');function _0x290e26(_0x23bd2e){return()=>{const _0x5d1d56=_0x3584af['model']['document']['selection'],_0x1f752c=_0x3584af['commands']['get'](_0x23bd2e);if(_0x1f752c['value'])return void _0x3584af['execute']('paragraph',{});const _0x18f1e5=_0x23bd2e['slice'](0x0,-0x4),_0x6e9301=function(_0x4a841f,_0x388950,_0x3c9623){let _0x186c3e=Array['from'](_0x4a841f)['filter'](_0x43f219=>function(_0x5b9e6c,_0xa37c5c){return _0xa37c5c['checkChild'](_0x5b9e6c['parent'],'listItem')&&!_0xa37c5c['isObject'](_0x5b9e6c);}(_0x43f219,_0x3c9623));_0x186c3e=_0x186c3e['filter'](_0x1e516f=>!_0x1e516f['is']('element','listItem')||_0x1e516f['getAttribute']('listType')!=_0x388950);const _0x4ef606=new Set();for(const _0x1061c4 of _0x186c3e)_0x1061c4['is']('element','listItem')?_0x4ef606['add'](me(_0x1061c4)):_0x4ef606['add'](_0x1061c4);return Array['from'](_0x4ef606);}(_0x5d1d56['getSelectedBlocks'](),_0x18f1e5,_0x3584af['model']['schema']);_0x3584af['model']['change'](()=>{for(const _0x95a746 of _0x6e9301)_0x5ecefa['markBlockFormat'](_0x95a746,{'commandName':_0x23bd2e,'commandParams':[{'forceValue':!_0x1f752c['value']}],'formatGroupId':'blockName'},fe(_0x95a746));});};}function _0x334791(_0x16d9f6){return()=>{const _0x6fb822=function(_0x241a39){let _0x593458=Array['from'](_0x241a39);const _0x16acf6=_0x593458['findIndex'](_0x462b1d=>'listItem'!=_0x462b1d['name']);return _0x16acf6>-0x1&&(_0x593458=_0x593458['slice'](0x0,_0x16acf6)),_0x593458;}(_0x3584af['model']['document']['selection']['getSelectedBlocks']()),_0x5d970e=_0x3584af['model']['createRange'](_0x3584af['model']['createPositionAt'](_0x6fb822[0x0],'before'),_0x3584af['model']['createPositionAt'](_0x6fb822[_0x6fb822['length']-0x1],'end'));_0x3584af['model']['change'](()=>{_0x5ecefa['markBlockFormat'](_0x5d970e,{'commandName':_0x16d9f6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e10f3){const _0xcdd835=new Set();for(const _0x2e742a of _0x4e10f3){let _0x57e0df=_0x2e742a['nextSibling'];for(;_0x57e0df&&_0x57e0df['getAttribute']('listIndent')>_0x2e742a['getAttribute']('listIndent');)_0xcdd835['add'](_0x57e0df),_0x57e0df=_0x57e0df['nextSibling'];}return Array['from'](_0xcdd835);}(_0x6fb822));});};}_0x5ecefa['enableCommand']('numberedList',_0x290e26('numberedList')),_0x5ecefa['enableCommand']('bulletedList',_0x290e26('bulletedList')),_0x1f6aee&&_0x5ecefa['enableCommand']('todoList',_0x290e26('todoList')),_0x5ecefa['enableCommand']('indentList',_0x334791('indentList')),_0x5ecefa['enableCommand']('outdentList',_0x334791('outdentList')),_0x1f6aee&&_0x5ecefa['enableCommand']('checkTodoList',()=>{const _0x433d2b=_0x3584af['commands']['get']('checkTodoList'),_0x352121=Array['from'](_0x433d2b['_selectedElements']);_0x352121['filter'](_0x8ec589=>_0x8ec589['getAttribute']('todoListChecked')!=_0x433d2b['value']),_0x3584af['model']['change'](()=>{for(const _0x1d01c2 of _0x352121)_0x5ecefa['markBlockFormat'](_0x1d01c2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x433d2b['value']}]});});}),_0x5ecefa['descriptionFactory']['registerElementLabel']('listItem',_0x1bb735=>o(_0x346e39,'ELEMENT_LIST_ITEM',_0x1bb735)),_0x5ecefa['descriptionFactory']['registerDescriptionCallback'](_0x2453f4=>{if('formatBlock'!=_0x2453f4['type']&&'formatInline'!=_0x2453f4['type'])return;const {data:_0x189829}=_0x2453f4;if(_0x189829){if('numberedList'==_0x189829['commandName']||'bulletedList'==_0x189829['commandName']||'todoList'==_0x189829['commandName'])switch(_0x189829['commandName']['replace']('List','')){case'bulleted':return _0x666985(o(_0x346e39,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x666985(o(_0x346e39,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x666985(o(_0x346e39,'ELEMENT_TODO_LIST'));}if('indentList'==_0x189829['commandName'])return{'type':'format','content':o(_0x346e39,'*Indent:*\x20%0',o(_0x346e39,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x189829['commandName'])return{'type':'format','content':o(_0x346e39,'*Outdent:*\x20%0',o(_0x346e39,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x189829['commandName'])return _0x189829['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x346e39,'*Check\x20item*')}:{'type':'format','content':o(_0x346e39,'*Uncheck\x20item*')};}function _0x666985(_0x563913){return{'type':'format','content':o(_0x346e39,'*Change\x20to:*\x20%0',_0x563913)};}});}}function me(_0x344d5a){const _0x487cd7=_0x344d5a['getAttribute']('listIndent');if(0x0==_0x487cd7)return _0x344d5a;let _0x1148a0=_0x344d5a;for(;_0x344d5a['previousSibling']&&_0x344d5a['previousSibling']['is']('element','listItem');){const _0x5603a1=_0x344d5a['previousSibling']['getAttribute']('listIndent');if(_0x5603a1==_0x487cd7)_0x1148a0=_0x344d5a['previousSibling'];else{if(_0x5603a1<_0x487cd7)break;}_0x344d5a=_0x344d5a['previousSibling'];}return _0x1148a0;}function fe(_0x33742d){const _0x4c5987=[];if(_0x33742d['is']('element','listItem')&&_0x33742d['getAttribute']('listIndent')>0x0){let _0x303a2c=_0x33742d['nextSibling'];for(;_0x303a2c&&'listItem'==_0x303a2c['name']&&_0x303a2c['getAttribute']('listIndent')==_0x33742d['getAttribute']('listIndent');)_0x4c5987['push'](_0x303a2c),_0x303a2c=_0x303a2c['nextSibling'];}return _0x4c5987;}class K extends _0x1f7250{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2e8ef5=this['editor']['config']['get']('list.properties'),_0x5962d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e8ef5['styles']&&_0x5962d4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2e8ef5['reversed']&&_0x5962d4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2e8ef5['startIndex']&&_0x5962d4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5962d4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d1971,_0x2eab68={}){const _0x2036b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe7d915=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2036b4['markMultiRangeBlockFormat'](_0xe7d915,{'commandName':'listStyle','commandParams':[{'type':_0x2eab68['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xfc366f,_0x13643a={}){const _0x6bf7e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ca952=this['_getSuggestionBlocks'](_0xb96b2d=>_0xb96b2d['is']('element','listItem')&&'numbered'===_0xb96b2d['getAttribute']('listType'));if(_0x4ca952['length']<0x1)return;const _0x892a0e=_0x4ca952['map'](_0x1323e6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1323e6,'before'),this['editor']['model']['createPositionAt'](_0x1323e6,0x0)));this['editor']['model']['change'](()=>{_0x6bf7e8['markMultiRangeBlockFormat'](_0x892a0e,{'commandName':'listReversed','commandParams':[{'reversed':_0x13643a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5a49ec,_0x232eed={}){const _0x2ac8b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b2e32=this['_getSuggestionBlocks'](_0x369712=>_0x369712['is']('element','listItem')&&'numbered'===_0x369712['getAttribute']('listType'));if(_0x5b2e32['length']<0x1)return;const _0x11a72a=_0x5b2e32['map'](_0x4ad064=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ad064,'before'),this['editor']['model']['createPositionAt'](_0x4ad064,0x0)));this['editor']['model']['change'](()=>{_0x2ac8b3['markMultiRangeBlockFormat'](_0x11a72a,{'commandName':'listStart','commandParams':[{'startIndex':_0x232eed['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3c3ac7){if('formatBlock'!=_0x3c3ac7['type']&&'formatInline'!=_0x3c3ac7['type'])return;const _0x20ba4e=this['editor']['locale'],{data:_0x8eba7f}=_0x3c3ac7;if(!_0x8eba7f)return;let _0x30043f,_0x5d917f;switch(_0x8eba7f['commandName']){case'listStyle':_0x30043f='*Change\x20to:*\x20%0',_0x5d917f={'type':'format','content':o(_0x20ba4e,_0x30043f,o(_0x20ba4e,this['_getTranslationKeyForListStyle'](_0x8eba7f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x30043f=_0x8eba7f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d917f={'type':'format','content':o(_0x20ba4e,_0x30043f)};break;case'listStart':_0x30043f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d917f={'type':'format','content':o(_0x20ba4e,_0x30043f,_0x8eba7f['commandParams'][0x0]['startIndex'])};}return _0x5d917f;}['_getSuggestionBlocksForListStyle'](){const _0xe2dfe1=this['editor']['plugins']['get']('LegacyListUtils');let _0x50824d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x50824d[0x0]?.['is']('element','listItem')&&_0x50824d['unshift'](..._0xe2dfe1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x50824d[_0x50824d['length']-0x1]?.['is']('element','listItem')&&_0x50824d['push'](..._0xe2dfe1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x50824d=[...new Set(_0x50824d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x50824d=_0x50824d['filter'](_0x47f43f=>_0x47f43f['is']('element','listItem'))),_0x50824d;}['_getSuggestionBlocks'](_0x1b1d9a){const _0x297ef9=this['editor']['plugins']['get']('LegacyListUtils');let _0x4bc61c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b1d9a)['map'](_0x19deed=>{const _0x3b28cf=this['editor']['model']['createPositionAt'](_0x19deed,0x0);return[..._0x297ef9['getSiblingNodes'](_0x3b28cf,'backward'),..._0x297ef9['getSiblingNodes'](_0x3b28cf,'forward')];})['flat']();return _0x4bc61c=[...new Set(_0x4bc61c)],_0x4bc61c;}['_getTranslationKeyForListStyle'](_0x4c0c22){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c0c22)||'default')['toUpperCase']()+'_LIST_'+_0x4c0c22['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1f7250{['afterInit'](){const _0x18f325=this['editor'];if(!_0x18f325['plugins']['has']('MediaEmbedEditing'))return;const _0xd4f9ca=_0x18f325['plugins']['get']('TrackChangesEditing'),_0x56cc95=_0x18f325['locale'];_0xd4f9ca['enableCommand']('mediaEmbed'),_0xd4f9ca['descriptionFactory']['registerElementLabel']('media',_0x17ed49=>o(_0x56cc95,'ELEMENT_MEDIA',_0x17ed49)),_0x18f325['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x425fea,{writer:_0x5d0bb9,options:_0x5080b6})=>{if(_0x5080b6['showSuggestionHighlights'])return _0x5d0bb9['createEmptyElement']('div');},'converterPriority':'high'}),_0x18f325['data']['downcastDispatcher']['on']('attribute:url:media',(_0x554ddb,_0x2705c6,_0x18359b)=>{_0x18359b['options']['showSuggestionHighlights']&&_0x554ddb['stop']();},{'priority':'high'});}}class gt extends _0x1f7250{['afterInit'](){const _0x3f651c=this['editor'];_0x3f651c['plugins']['has']('MentionEditing')&&_0x3f651c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1f7250{['afterInit'](){const _0x147b20=this['editor'],_0x39f686=_0x147b20['plugins']['get']('TrackChangesEditing');_0x147b20['plugins']['has']('MultiLevelList')&&(_0x39f686['enableDefaultAttributesIntegration']('multiLevelList'),_0x39f686['registerBlockAttribute']('listMarkerStyle'),_0x39f686['descriptionFactory']['registerDescriptionCallback'](_0x2d6527=>this['handleDescriptions'](_0x2d6527)));}['handleDescriptions'](_0x4845d8){const _0x93177d=this['editor']['locale'],{data:_0x3e3b7b}=_0x4845d8,_0x4497d0={'type':'format','content':''};if(_0x3e3b7b&&'listMarkerStyle'==_0x3e3b7b['key']){if(!_0x3e3b7b['oldValue'])return{'type':'format','content':o(_0x93177d,'*Set\x20format:*\x20%0',o(_0x93177d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e3b7b['newValue']+')'};if(!_0x3e3b7b['newValue']){let _0x23ecdb=_0x4845d8['head'];for(;_0x23ecdb;){if(_0x23ecdb['data']&&'listType'==_0x23ecdb['data']['key']&&_0x23ecdb['data']['newValue'])return _0x4497d0;_0x23ecdb=_0x23ecdb['next'];}return{'type':'format','content':o(_0x93177d,'*Remove\x20format:*\x20%0',o(_0x93177d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3e3b7b['oldValue']+')'};}}}}class mt extends _0x1f7250{['afterInit'](){const _0x5d9ebd=this['editor'];if(!_0x5d9ebd['plugins']['has']('PageBreakEditing'))return;_0x5d9ebd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d3f2c=_0x5d9ebd['plugins']['get']('TrackChangesEditing'),_0x2fad2a=_0x5d9ebd['locale'];_0x3d3f2c['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c7a63=>o(_0x2fad2a,'ELEMENT_PAGE_BREAK',_0x2c7a63));}}class dt extends _0x1f7250{['afterInit'](){const _0x472e86=this['editor'];if(!_0x472e86['plugins']['has']('Paragraph'))return;const _0x1546c0=_0x472e86['locale'],_0x216cdf=_0x472e86['plugins']['get']('TrackChangesEditing');_0x216cdf['descriptionFactory']['registerElementLabel']('paragraph',_0x313197=>o(_0x1546c0,'ELEMENT_PARAGRAPH',_0x313197)),_0x216cdf['enableDefaultAttributesIntegration']('paragraph'),_0x216cdf['enableCommand']('insertParagraph'),_0x472e86['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x472e86),{'priority':'highest'}),_0x472e86['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x553cc4,_0x2e0bf7,_0x2df2c8)=>{_0x2df2c8['options']['showSuggestionHighlights']&&nr(_0x472e86,{'showActiveMarker':!0x1})(_0x553cc4,_0x2e0bf7,_0x2df2c8);},{'priority':'highest'});const _0x1a0343=_0x216cdf['descriptionFactory'];_0x1a0343['registerDescriptionCallback'](_0x1cce41=>{if('insertion'!==_0x1cce41['type'])return;const {start:_0x161187,end:_0xa0b4a1}=_0x1cce41['getFirstRange']();if(!_0x161187['isTouching'](_0xa0b4a1)||!_0x161187['nodeAfter'])return;const _0x183f7b=_0x472e86['model']['schema'],_0x5b22aa=_0x161187['nodeAfter'];return _0x183f7b['isBlock'](_0x5b22aa)&&!_0x183f7b['isLimit'](_0x5b22aa)&&_0x183f7b['checkChild'](_0x5b22aa,'$text')?{'type':'insertion','content':o(_0x1546c0,'*Insert:*\x20%0',_0x1a0343['getItemLabel'](_0x5b22aa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5056ba=this['editor'],_0x17fbaf=_0x5056ba['locale'];_0x5056ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de37e=>{if('formatBlock'!=_0x3de37e['type'])return;const {data:_0x4a8378}=_0x3de37e;return _0x4a8378&&'paragraph'==_0x4a8378['commandName']?{'type':'format','content':o(_0x17fbaf,'*Change\x20to:*\x20%0',o(_0x17fbaf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x140e4c,{showActiveMarker:_0x585fa1=!0x0}={}){return(_0x1f353c,_0x1b958d,_0x34dd15)=>{const _0x307047=_0x140e4c['plugins']['get']('TrackChangesEditing'),_0x31ea46=_0x1b958d['markerRange']['start'],_0x562bc2=_0x1b958d['markerRange']['end'],_0x424bf1=_0x140e4c['model']['schema'];if(!_0x31ea46['isTouching'](_0x562bc2)||!_0x31ea46['nodeAfter'])return;const _0x1f5f80=_0x31ea46['nodeAfter'];if(_0x424bf1['isBlock'](_0x1f5f80)&&!_0x424bf1['isLimit'](_0x1f5f80)&&_0x424bf1['checkChild'](_0x1f5f80,'$text')){if(!_0x34dd15['consumable']['consume'](_0x1b958d['markerRange'],_0x1f353c['name']))return;const _0x559b7d=_0x34dd15['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1ae1a6=_0x34dd15['mapper']['toViewPosition'](_0x562bc2);_0x585fa1&&_0x307047['activeMarkers']['includes'](_0x1b958d['markerName'])&&_0x34dd15['writer']['addClass']('ck-suggestion-marker--active',_0x559b7d),_0x34dd15['writer']['insert'](_0x1ae1a6,_0x559b7d),_0x34dd15['mapper']['bindElementToMarker'](_0x559b7d,_0x1b958d['markerName']);}};}class pt extends _0x1f7250{['afterInit'](){const _0x4f88c6=this['editor'];if(!_0x4f88c6['plugins']['has']('RemoveFormatEditing'))return;_0x4f88c6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b3f5=this['editor'];_0x17b3f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497b1d=>{if('formatBlock'!=_0x497b1d['type']&&'formatInline'!=_0x497b1d['type'])return;const {data:_0x2afe1a}=_0x497b1d;return _0x2afe1a&&'removeFormat'==_0x2afe1a['commandName']?{'type':'format','content':o(_0x17b3f5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1f7250{['afterInit'](){const _0xe002b2=this['editor'];if(!_0xe002b2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x22e64a=_0xe002b2['plugins']['get']('TrackChangesEditing');_0x22e64a['enableCommand']('goToPreviousRestrictedEditingException'),_0x22e64a['enableCommand']('goToNextRestrictedEditingException');const _0x362f02=_0xe002b2['plugins']['get']('RestrictedEditingModeEditing');_0x362f02['enableCommand']('trackChanges'),_0x362f02['enableCommand']('acceptSuggestion'),_0x362f02['enableCommand']('discardSuggestion'),_0x362f02['enableCommand']('acceptAllSuggestions'),_0x362f02['enableCommand']('discardAllSuggestions'),_0x362f02['enableCommand']('acceptSelectedSuggestions'),_0x362f02['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1f7250{static get['requires'](){return[_0x10b14b];}['init'](){const _0x5ace07=this['editor'],_0x19947a=_0x5ace07['plugins']['get']('TrackChangesEditing');_0x19947a['enableCommand']('shiftEnter'),_0x5ace07['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5ace07),{'priority':'high'}),_0x5ace07['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5ace07),{'priority':'high'}),_0x5ace07['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x590c93,_0x16fe0d,_0x43f4ea)=>{_0x43f4ea['options']['showSuggestionHighlights']&&de(_0x5ace07,{'showActiveMarker':!0x1})(_0x590c93,_0x16fe0d,_0x43f4ea);}),_0x19947a['descriptionFactory']['registerElementLabel']('softBreak',_0x1e406f=>o(_0x5ace07['locale'],'ELEMENT_LINE_BREAK',_0x1e406f));}}function de(_0x4ef540,{showActiveMarker:_0x4208bc=!0x0}={}){return(_0x3ddb08,_0xcd1a39,_0x4f5ae5)=>{const _0x1b1a76=_0x4ef540['plugins']['get']('TrackChangesEditing');if(!_0x4f5ae5['consumable']['test'](_0xcd1a39['markerRange'],_0x3ddb08['name']))return;const _0x5bffe4=_0x4ef540['model'];for(const _0x32db93 of _0xcd1a39['markerRange']['getItems']()){if(!_0x32db93['is']('element','softBreak'))continue;const _0x47fc46='deletion'==_0xcd1a39['markerName']['split'](':')[0x1]?'merge':'split',_0x577eef=_0x4f5ae5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47fc46}),_0x37d8dc=_0x4f5ae5['mapper']['toViewPosition'](_0x5bffe4['createPositionBefore'](_0x32db93));_0x4208bc&&_0x1b1a76['activeMarkers']['includes'](_0xcd1a39['markerName'])&&_0x4f5ae5['writer']['addClass']('ck-suggestion-marker--active',_0x577eef),_0x4f5ae5['writer']['insert'](_0x37d8dc,_0x577eef),_0x4f5ae5['mapper']['bindElementToMarker'](_0x577eef,_0xcd1a39['markerName']);}};}class wt extends _0x1f7250{['afterInit'](){const _0x2d2fc8=this['editor'],_0x17a535=_0x2d2fc8['model'],_0xf95e6f=_0x2d2fc8['locale'];if(!_0x2d2fc8['plugins']['has']('StandardEditingModeEditing'))return;const _0x45f915=_0x2d2fc8['plugins']['get']('TrackChangesEditing'),_0x31577e='restrictedEditingException',_0xbd22b3=_0x2d2fc8['commands']['get'](_0x31577e);_0x45f915['enableCommand'](_0x31577e,(_0x1673cc,_0xfe3cab={})=>{const _0x4974ca=_0x17a535['document']['selection'];if(_0x4974ca['isCollapsed'])return void _0x1673cc(_0xfe3cab);const _0x42153b=void 0x0!==_0xfe3cab['forceValue']?_0xfe3cab['forceValue']:!_0xbd22b3['value'];_0x17a535['change'](()=>{const _0x508d52=Array['from'](_0x4974ca['getRanges']());for(const _0x8be1 of _0x508d52){const _0x9b6a7c=_0x42153b?[_0x8be1]:io(_0x31577e,_0x8be1,_0x17a535);for(const _0x53ae4f of _0x9b6a7c)_0x45f915['markInlineFormat'](_0x53ae4f,{'commandName':_0x31577e,'commandParams':[{'forceValue':_0x42153b}]});}});}),_0x45f915['descriptionFactory']['registerDescriptionCallback'](_0x4e8540=>{if('formatBlock'!=_0x4e8540['type']&&'formatInline'!=_0x4e8540['type'])return;const {data:_0xff1e27}=_0x4e8540;return _0xff1e27&&_0xff1e27['commandName']==_0x31577e?_0xff1e27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf95e6f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xf95e6f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1f7250{['afterInit'](){const _0x49e1c0=this['editor'];if(!_0x49e1c0['plugins']['has']('Style')||!_0x49e1c0['plugins']['has']('DataSchema'))return;const _0x365c92=_0x49e1c0['plugins']['get']('TrackChangesEditing'),_0x3653f6=_0x49e1c0['locale'],_0x1e2e5d=_0x49e1c0['config']['get']('style')||{},_0x53bae5=_0x49e1c0['plugins']['get']('GeneralHtmlSupport'),_0x131269=_0x49e1c0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x49e1c0['plugins']['get']('DataSchema'),_0x1e2e5d['definitions']);_0x365c92['enableDefaultAttributesIntegration']('style');const _0x66360=new Set();for(const _0x128234 of _0x131269['block']){const _0x45e793=_0x53bae5['getGhsAttributeNameForElement'](_0x128234['element']);_0x66360['add'](_0x45e793);}const _0x578339=new Set();for(const _0x1de6f7 of _0x131269['inline']){const _0xc7a52=_0x53bae5['getGhsAttributeNameForElement'](_0x1de6f7['element']);_0x578339['add'](_0xc7a52);for(const _0x545b6f of _0x1de6f7['ghsAttributes'])_0x578339['add'](_0x545b6f);}for(const _0x27b878 of _0x66360)_0x365c92['registerBlockAttribute'](_0x27b878),_0x365c92['descriptionFactory']['registerAttributeLabel'](_0x27b878,o(_0x3653f6,'FORMAT_STYLE'));for(const _0x429834 of _0x578339)_0x365c92['registerInlineAttribute'](_0x429834),_0x365c92['descriptionFactory']['registerAttributeLabel'](_0x429834,o(_0x3653f6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x653f60=this['editor'],_0x29be08=_0x653f60['locale'];_0x653f60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x449f21=>{if('formatBlock'!=_0x449f21['type']&&'formatInline'!=_0x449f21['type'])return;const {data:_0x266bc2}=_0x449f21;return _0x266bc2&&'style'===_0x266bc2['commandName']?_0x266bc2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29be08,'*Set\x20format:*\x20%0',_0x266bc2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x29be08,'*Remove\x20format:*\x20%0',_0x266bc2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1f7250{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xa40f27){super(_0xa40f27),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d5fbe=this['editor'],_0x420185=_0x4d5fbe['model']['document']['selection'];if(!_0x4d5fbe['plugins']['has']('TableEditing'))return;const _0x28f8b0=_0x4d5fbe['locale'],_0x49f473=_0x4d5fbe['plugins']['get']('TrackChangesEditing'),_0x4cccd4=_0x4d5fbe['plugins']['get']('TableUtils');_0x49f473['descriptionFactory']['registerElementLabel']('table',_0x2071b1=>o(_0x28f8b0,'ELEMENT_TABLE',_0x2071b1)),this['_setupColumnsRowsFixing'](),_0x49f473['enableCommand']('insertTable'),_0x49f473['enableCommand']('selectTableRow'),_0x49f473['enableCommand']('selectTableColumn');for(const _0x581ed5 of['insertTableRowAbove','insertTableRowBelow']){const _0x514eef=_0x4d5fbe['commands']['get'](_0x581ed5);_0x49f473['enableCommand'](_0x581ed5,_0x36afc2=>{_0x4d5fbe['model']['change'](_0x583541=>{_0x36afc2();const _0x3e0179='above'===_0x514eef['order'],_0x5b6691=_0x4cccd4['getSelectionAffectedTableCells'](_0x420185),_0x180535=_0x4cccd4['getRowIndexes'](_0x5b6691),_0x21bbee=_0x3e0179?_0x180535['first']-0x1:_0x180535['last']+0x1,_0x334eb7=_0x5b6691[0x0]['findAncestor']('table'),_0x2407eb=_0x4cccd4['createTableWalker'](_0x334eb7,{'startRow':_0x21bbee,'endRow':_0x21bbee}),_0xe9681d=Array['from'](_0x2407eb)['map'](_0x2a7f34=>_0x583541['createRangeOn'](_0x2a7f34['cell']));_0x49f473['markMultiRangeInsertion'](_0xe9681d,'tableRow');});});}for(const _0x253bc7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x36a420=_0x4d5fbe['commands']['get'](_0x253bc7);_0x49f473['enableCommand'](_0x253bc7,_0x29aac2=>{_0x4d5fbe['model']['change'](_0x2b27a0=>{_0x29aac2();const _0x4de978='left'===_0x36a420['order'],_0x1c5060=_0x4cccd4['getSelectionAffectedTableCells'](_0x420185),_0x3cb89a=_0x4cccd4['getColumnIndexes'](_0x1c5060),_0x1feb30=_0x4de978?_0x3cb89a['first']-0x1:_0x3cb89a['last']+0x1,_0x48c5a2=_0x1c5060[0x0]['findAncestor']('table'),_0x226044=_0x4cccd4['createTableWalker'](_0x48c5a2,{'startRow':0x0,'column':_0x1feb30,'includeAllSlots':!0x1}),_0x56fa10=Array['from'](_0x226044)['map'](_0x2149f3=>_0x2b27a0['createRangeOn'](_0x2149f3['cell']));_0x49f473['markMultiRangeInsertion'](_0x56fa10,'tableColumn');});});}for(const _0xec4254 of['removeTableRow','removeTableColumn']){const _0x4d9b3e=_0xec4254['substr'](0xb),_0x7d717=_0x4d9b3e['toLowerCase'](),_0x42c037=_0x7d717['substr'](0x0,0x3)+'span',_0x597bb7='table'+_0x4d9b3e,_0x517b07='min'+_0x4d9b3e,_0x41c165='max'+_0x4d9b3e;_0x49f473['enableCommand'](_0xec4254,()=>{_0x4d5fbe['model']['change'](_0x333b0b=>{const _0x4e976f=_0x4cccd4['getSelectionAffectedTableCells'](_0x420185),_0x2add77=_0x4e976f[0x0]['findAncestor']('table');let _0x516cdd;if('removeTableRow'==_0xec4254){const _0x1f047e=_0x4cccd4['getRowIndexes'](_0x4e976f);_0x516cdd={'startRow':_0x1f047e['first'],'endRow':_0x1f047e['last'],'includeAllSlots':!0x0};}else{const _0x256ed0=_0x4cccd4['getColumnIndexes'](_0x4e976f);_0x516cdd={'startColumn':_0x256ed0['first'],'endColumn':_0x256ed0['last'],'includeAllSlots':!0x0};}const _0x32ac2f=_0x4cccd4['createTableWalker'](_0x2add77,_0x516cdd),_0x445d78=Array['from'](_0x32ac2f)['map'](({cell:_0x3b1762})=>_0x3b1762),_0x933f49=Ee(_0x445d78['filter'](_0x27f803=>_0x27f803['hasAttribute'](_0x42c037))),_0x2d1138=Ee(_0x445d78['filter'](_0x47f629=>!_0x47f629['hasAttribute'](_0x42c037)))['map'](_0x420e56=>_0x333b0b['createRangeOn'](_0x420e56)),_0x3a5229=_0x49f473['markMultiRangeDeletion'](_0x2d1138,_0x597bb7);if(_0x3a5229&&('tableRow'==_0x3a5229['subType']||'tableColumn'==_0x3a5229['subType'])){const _0x33fa82=this['_getSuggestionCoords'](_0x3a5229);for(const _0x1c6919 of _0x933f49){const _0x5c763a=_0x333b0b['createRangeOn'](_0x1c6919),_0x5f31ef=_0x4cccd4['getCellLocation'](_0x1c6919),_0x2cc895=_0x1c6919['getAttribute'](_0x42c037)-0x1,_0x2e7b54=_0x33fa82[_0x517b07],_0x39ab6f=_0x33fa82[_0x41c165];_0x2e7b54<=_0x5f31ef[_0x7d717]&&_0x5f31ef[_0x7d717]+_0x2cc895<=_0x39ab6f&&_0x3a5229['addRange'](_0x5c763a);}}});});}function _0x3a6347(_0x29ee7d){const _0x37319e=Array['from'](_0x420185['getRanges']())['map'](_0x2a1b34=>_0x248c8e['fromRange'](_0x2a1b34));_0x4d5fbe['model']['change'](_0x49f4f4=>{const _0x3084b1=_0x49f4f4['batch'];_0x29ee7d=_0x29ee7d['filter'](_0x6e296e=>'$graveyard'!=_0x6e296e['root']['rootName']),_0x49f4f4['setSelection'](_0x29ee7d),_0x4d5fbe['commands']['get']('removeTableRow')['refresh'](),_0x4d5fbe['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d5fbe['model']['enqueueChange'](()=>{_0x4d5fbe['model']['enqueueChange'](_0x3084b1,_0x477386=>{const _0x341c30=_0x37319e['filter'](_0x3fc46e=>'$graveyard'!=_0x3fc46e['root']['rootName']);_0x341c30['length']>0x0&&_0x477386['setSelection'](_0x341c30);for(const _0x523195 of _0x37319e)_0x523195['detach']();});});});}function _0x2705da(_0xbcf823){_0x4d5fbe['model']['change'](_0x1e3b84=>{const _0x287e18=Array['from'](_0x420185['getRanges']())['map'](_0x5b06d8=>_0x248c8e['fromRange'](_0x5b06d8)),_0x4d4f65=[];for(const _0x4dd8e4 of _0xbcf823)for(const _0x3e64e6 of _0x4dd8e4['getItems']({'shallow':!0x0}))_0x4d4f65['push'](_0x3e64e6);for(const _0x1473cb of _0x4d4f65)'$graveyard'!=_0x1473cb['root']['rootName']&&(_0x1e3b84['setSelection'](_0x1e3b84['createPositionAt'](_0x1473cb,0x0)),_0x4d5fbe['commands']['get']('removeTableColumn')['refresh'](),_0x4d5fbe['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3b2262=_0x287e18['filter'](_0x2b1510=>'$graveyard'!=_0x2b1510['root']['rootName']);_0x3b2262['length']>0x0&&_0x1e3b84['setSelection'](_0x3b2262);for(const _0x5314e8 of _0x287e18)_0x5314e8['detach']();});}function _0x581845(_0xb2f28,_0x183be6){return _0x183be6['every'](_0xdacb6d=>_0xb2f28['some'](_0x18949b=>_0x18949b['end']['isEqual'](_0xdacb6d['start'])||_0xdacb6d['end']['isEqual'](_0x18949b['start'])));}function _0x234006(_0x45360a,_0x5a5479){return!_0x45360a['some'](_0x253ae5=>_0x5a5479['some'](_0x274fdc=>_0x253ae5['isIntersecting'](_0x274fdc)))&&_0x45360a['some'](_0x2fe783=>_0x5a5479['some'](_0x45cae7=>_0x2fe783['end']['isTouching'](_0x45cae7['start'])));}_0x4d5fbe['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x250ac1,_0x15a075,_0x28eda4)=>{if(!_0x28eda4['options']['showSuggestionHighlights'])return;const _0x48d26e=_0x15a075['item'];if(!_0x48d26e)return;const _0xba5623=_0x28eda4['mapper']['toViewElement'](_0x48d26e);function _0x2168e7(_0x510c4b){return Array['isArray'](_0x510c4b)?_0x510c4b:[_0x510c4b];}_0xba5623&&'tableCell'===_0x48d26e['name']&&_0x4a9ca4(_0xba5623,_0x28eda4['writer'],(_0x4f168b,_0xd86573,_0x364cdf)=>_0x364cdf['addClass'](_0x2168e7(_0xd86573['classes']),_0x4f168b),(_0x368383,_0x56feee,_0x3da59b)=>_0x3da59b['removeClass'](_0x2168e7(_0x56feee['classes']),_0x368383));},{'priority':'highest'}),_0x49f473['descriptionFactory']['registerDescriptionCallback'](_0x35336a=>{if('insertion'!=_0x35336a['type']&&'deletion'!=_0x35336a['type'])return;const _0xe1bba4=_0x35336a['getContainedElement']();if(null!=_0xe1bba4&&_0xe1bba4['is']('element','table')){if('insertion'==_0x35336a['type']){const _0x33bf85=_0x35336a['getItems']()['filter'](_0x2a4875=>_0x2a4875['is']('$textProxy'))['map'](_0x44024b=>_0x44024b['data']);if(_0x33bf85['length'])return{'type':'insertion','content':o(_0x28f8b0,'*Insert:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33bf85['join']('\x20')+'\x22'))};}if('deletion'==_0x35336a['type']){const _0x1e45a1=_0x35336a['getItems']()['filter'](_0x245456=>_0x245456['is']('$textProxy'))['map'](_0x1e6c08=>_0x1e6c08['data']);if(_0x1e45a1['length'])return{'type':'deletion','content':o(_0x28f8b0,'*Remove:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e45a1['join']('\x20')+'\x22'))};}}}),_0x49f473['descriptionFactory']['registerDescriptionCallback'](_0x3fbd04=>{if('tableRow'==_0x3fbd04['subType']){const _0x36a71f=_0x3fbd04['getItems']()['filter'](_0x5f15bd=>_0x5f15bd['is']('$textProxy'))['map'](_0x4f086d=>_0x4f086d['data']),_0x1db4ae=this['_getSuggestionCoords'](_0x3fbd04),_0x58782b=_0x1db4ae['maxRow']-_0x1db4ae['minRow']+0x1;if('insertion'==_0x3fbd04['type'])return _0x36a71f['length']?{'type':'insertion','content':o(_0x28f8b0,'*Insert:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58782b,'\x22'+_0x36a71f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f8b0,'*Insert:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_ROW',_0x58782b))};if('deletion'==_0x3fbd04['type'])return _0x36a71f['length']?{'type':'deletion','content':o(_0x28f8b0,'*Remove:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58782b,'\x22'+_0x36a71f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f8b0,'*Remove:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_ROW',_0x58782b))};}if('tableColumn'==_0x3fbd04['subType']){const _0x321654=_0x3fbd04['getItems']()['filter'](_0x472d75=>_0x472d75['is']('$textProxy'))['map'](_0x444d82=>_0x444d82['data']),_0x222abd=this['_getSuggestionCoords'](_0x3fbd04),_0x20b00f=_0x222abd['maxColumn']-_0x222abd['minColumn']+0x1;if('insertion'==_0x3fbd04['type'])return _0x321654['length']?{'type':'insertion','content':o(_0x28f8b0,'*Insert:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20b00f,'\x22'+_0x321654['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f8b0,'*Insert:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_COLUMN',_0x20b00f))};if('deletion'==_0x3fbd04['type'])return _0x321654['length']?{'type':'deletion','content':o(_0x28f8b0,'*Remove:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20b00f,'\x22'+_0x321654['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f8b0,'*Remove:*\x20%0',o(_0x28f8b0,'ELEMENT_TABLE_COLUMN',_0x20b00f))};}}),_0x49f473['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3a6347),_0x49f473['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3a6347),_0x49f473['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2705da),_0x49f473['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2705da),_0x49f473['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x581845),_0x49f473['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x581845),_0x49f473['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x234006),_0x49f473['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x234006);}['_acceptFormatSuggestionCallbackFactory'](){const _0x491fed=this['editor'],_0x1015d4=_0x491fed['model']['document']['selection'];return(_0x4051ce,_0x375c2f)=>{_0x491fed['model']['change'](_0x29aa3e=>{const {commandName:_0x34fea4,commandParams:_0x3a403b}=_0x375c2f;let _0x217ccf=_0x4051ce[0x0]['end']['nodeBefore'];_0x3a403b&&_0x3a403b[0x0]&&!0x1===_0x3a403b[0x0]['forceValue']&&(_0x217ccf=_0x4051ce[0x0]['start']['nodeAfter']);const _0x28f9ec=_0x29aa3e['createRangeIn'](_0x217ccf);if('$graveyard'==_0x28f9ec['root']['rootName'])return;const _0x1bf6a0=Array['from'](_0x1015d4['getRanges']())['map'](_0x5d1b33=>_0x248c8e['fromRange'](_0x5d1b33));_0x29aa3e['setSelection'](_0x28f9ec),_0x491fed['commands']['get'](_0x34fea4)['refresh'](),_0x3a403b['push']({'forceDefaultExecution':!0x0}),_0x491fed['execute'](_0x34fea4,..._0x3a403b);const _0x241977=_0x1bf6a0['filter'](_0x13d988=>'$graveyard'!=_0x13d988['root']['rootName']);_0x241977['length']>0x0&&_0x29aa3e['setSelection'](_0x241977);for(const _0x10ca6f of _0x1bf6a0)_0x10ca6f['detach']();});};}['_getCoordsForCells'](_0x3e3317){const _0x6eaab5=this['editor']['plugins']['get']('TableUtils');let _0x21d3c1=Number['MAX_SAFE_INTEGER'],_0x287026=Number['MIN_SAFE_INTEGER'],_0x1eac07=Number['MAX_SAFE_INTEGER'],_0x8f65e1=Number['MIN_SAFE_INTEGER'];for(const _0x3a1ee0 of _0x3e3317){if('$graveyard'==_0x3a1ee0['root']['rootName'])continue;const {row:_0x3e5e2b,column:_0x2cd42c}=_0x6eaab5['getCellLocation'](_0x3a1ee0),_0x15dfc7=_0x3a1ee0['hasAttribute']('rowspan')?_0x3a1ee0['getAttribute']('rowspan')-0x1:0x0,_0x1d2cc8=_0x3a1ee0['hasAttribute']('colspan')?_0x3a1ee0['getAttribute']('colspan')-0x1:0x0;_0x21d3c1=_0x3e5e2b<_0x21d3c1?_0x3e5e2b:_0x21d3c1,_0x287026=_0x3e5e2b+_0x15dfc7>_0x287026?_0x3e5e2b+_0x15dfc7:_0x287026,_0x1eac07=_0x2cd42c<_0x1eac07?_0x2cd42c:_0x1eac07,_0x8f65e1=_0x2cd42c+_0x1d2cc8>_0x8f65e1?_0x2cd42c+_0x1d2cc8:_0x8f65e1;}return{'minRow':_0x21d3c1,'maxRow':_0x287026,'minColumn':_0x1eac07,'maxColumn':_0x8f65e1};}['_setupColumnsRowsFixing'](){const _0xec59bf=this['editor'],_0x563e3a=_0xec59bf['plugins']['get']('TrackChangesEditing'),_0x945550=_0xec59bf['plugins']['get']('TableUtils');_0xec59bf['model']['document']['on']('change:data',()=>{const _0x2c2fe5=Array['from'](_0xec59bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x384767,data:_0x4cb0c2}of _0x2c2fe5){const {group:_0x4c6e5f,id:_0x59f390,subType:_0x14c7d1}=_0x563e3a['_splitMarkerName'](_0x384767);if('suggestion'!=_0x4c6e5f)continue;if(null!=_0x4cb0c2['oldRange'])continue;const _0x9978a1=_0x563e3a['getSuggestion'](_0x59f390);this['_tablePostFixingSubtypes']['includes'](_0x14c7d1)&&this['_tableSuggestions']['add'](_0x9978a1);}},{'priority':'low'});const _0x38bfe1=(_0x3b8718,_0x540fa4)=>{let _0x52d870=!0x1;const _0x8096e5=_0x540fa4['createRangeOn'](_0x3b8718),_0x7793b4=_0x3b8718['findAncestor']('table'),_0x32a48f=_0x945550['getCellLocation'](_0x3b8718);for(const _0x1eb453 of this['_tableSuggestions']){const _0x2cd1a7=_0x1eb453['subType'],_0x2d552c=_0x2cd1a7['startsWith']('tablePaste'),_0x56a2fb=_0x2cd1a7['substr'](_0x2d552c?0xa:0x5),_0x2a4933=_0x56a2fb['toLowerCase'](),_0x1216bf=_0x2a4933['substr'](0x0,0x3)+'span',_0x5249a3='min'+_0x56a2fb,_0x41dff5='max'+_0x56a2fb;if(!_0x1eb453['isInContent'])continue;if(_0x7793b4!=_0x1eb453['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1eb453['isIntersectingWithRange'](_0x8096e5))continue;const _0x33303a=_0x3b8718['hasAttribute'](_0x1216bf)?_0x3b8718['getAttribute'](_0x1216bf)-0x1:0x0,_0xfca280=this['_getSuggestionCoords'](_0x1eb453),_0x362b13=_0xfca280[_0x5249a3],_0x218d8a=_0xfca280[_0x41dff5];_0x362b13<=_0x32a48f[_0x2a4933]&&_0x32a48f[_0x2a4933]+_0x33303a<=_0x218d8a&&(_0x1eb453['addRange'](_0x8096e5),_0x52d870=!0x0);}return _0x52d870;};_0xec59bf['model']['document']['registerPostFixer'](_0x40e6d9=>{let _0xe5d6db=!0x1;for(const _0x54f5dd of _0xec59bf['model']['document']['differ']['getChanges']())if('insert'==_0x54f5dd['type']){if('tableRow'==_0x54f5dd['name']){for(const _0x4daad6 of _0x54f5dd['position']['nodeAfter']['getChildren']())_0xe5d6db=_0xe5d6db||_0x38bfe1(_0x4daad6,_0x40e6d9);}else'tableCell'==_0x54f5dd['name']&&(_0xe5d6db=_0xe5d6db||_0x38bfe1(_0x54f5dd['position']['nodeAfter'],_0x40e6d9));}return _0xe5d6db;});}['_getSuggestionCoords'](_0x47f420){return this['_getCoordsForCells'](_0x47f420['getRanges']()['map'](_0x476f51=>_0x476f51['start']['nodeAfter']));}}function Ee(_0x1e6cad){return Array['from'](new Set(_0x1e6cad)['values']());}class St extends _0x1f7250{static get['requires'](){return[jt];}['afterInit'](){const _0x189145=this['editor'],_0x21ed7b=_0x189145['model']['document']['selection'],_0x139980=_0x189145['locale'];if(!_0x189145['plugins']['has']('TableEditing'))return;const _0x1c5215=_0x189145['plugins']['get']('TrackChangesEditing'),_0x25472c=_0x189145['plugins']['get']('TableUtils'),_0x5384d9=_0x189145['plugins']['get'](jt);_0x5384d9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c5215['enableCommand']('mergeTableCells',()=>{const _0x10c251=_0x25472c['getSelectionAffectedTableCells'](_0x189145['model']['document']['selection']);_0x189145['model']['change'](()=>{_0x1c5215['markMultiRangeBlockFormat'](_0x10c251,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x189145['commands']['get']('mergeTableCells')['on']('execute',(_0x1a6555,_0x463c3e)=>{_0x189145['commands']['get']('trackChanges')['value']&&(_0x463c3e['length']>0x0&&_0x463c3e[_0x463c3e['length']-0x1]&&_0x463c3e[_0x463c3e['length']-0x1]['forceDefaultExecution']||_0x1c5215['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a6555['stop']());},{'priority':'highest'});for(const _0x4f3658 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x54b2ec=_0x189145['commands']['get'](_0x4f3658);_0x1c5215['enableCommand'](_0x4f3658,()=>{const _0xdc1678=_0x189145['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3eab22=>_0x3eab22['is']('element','tableCell')),_0x2d598c=_0x54b2ec['value'];_0x189145['model']['change'](()=>{_0x1c5215['markMultiRangeBlockFormat']([_0xdc1678,_0x2d598c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ef892 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xa16842=_0x189145['commands']['get'](_0x3ef892);_0x1c5215['enableCommand'](_0x3ef892,()=>{const _0x58758d=_0x25472c['getSelectionAffectedTableCells'](_0x189145['model']['document']['selection'])[0x0],_0x19038e=_0x58758d['findAncestor']('table'),{column:_0x38624d,row:_0x2fed11}=_0x25472c['getCellLocation'](_0x58758d);let _0x25cf22=[];if('horizontally'==_0xa16842['direction']){const _0x13b0fa=_0x25472c['createTableWalker'](_0x19038e,{'startRow':_0x2fed11,'endRow':_0x2fed11,'includeAllSlots':!0x0});_0x25cf22=Array['from'](_0x13b0fa)['map'](_0xc9b178=>_0xc9b178['cell']);}else{const _0x1862dc=_0x25472c['createTableWalker'](_0x19038e,{'column':_0x38624d,'includeAllSlots':!0x0});_0x25cf22=Array['from'](_0x1862dc)['map'](_0x244339=>_0x244339['cell']);}_0x189145['model']['change'](_0x34597f=>{_0x1c5215['markBlockFormat'](_0x34597f['createRangeOn'](_0x58758d),{'commandName':_0x3ef892,'commandParams':[]},_0x25cf22,_0x3ef892);});});}_0x1c5215['descriptionFactory']['registerDescriptionCallback'](_0x19f2ee=>{if('formatBlock'!=_0x19f2ee['type']&&'formatInline'!=_0x19f2ee['type'])return;const {data:_0x2694d7}=_0x19f2ee;return _0x2694d7&&'mergeTableCells'==_0x2694d7['commandName']?{'type':'format','content':o(_0x139980,'*Merge\x20cells*')}:void 0x0;}),_0x1c5215['descriptionFactory']['registerDescriptionCallback'](_0x10866e=>{if('formatBlock'!=_0x10866e['type']&&'formatInline'!=_0x10866e['type'])return;const {data:_0x2422ff}=_0x10866e;return _0x2422ff?'splitTableCellVertically'==_0x2422ff['commandName']?{'type':'format','content':o(_0x139980,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2422ff['commandName']?{'type':'format','content':o(_0x139980,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3c04b7=_0x5384d9['_acceptFormatSuggestionCallbackFactory']();for(const _0x1679f1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c5215['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1679f1,'accept',_0x3c04b7);for(const _0x15831c of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c5215['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15831c,'accept',_0x3c04b7);_0x1c5215['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3c2814=>{_0x189145['model']['change'](_0x1d0cb8=>{const _0xafed9b=Array['from'](_0x21ed7b['getRanges']())['map'](_0x4b3b73=>_0x248c8e['fromRange'](_0x4b3b73));_0x1d0cb8['setSelection'](_0x3c2814),_0x189145['commands']['get']('mergeTableCells')['refresh'](),_0x189145['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xf2c457=_0xafed9b['filter'](_0x3b1738=>'$graveyard'!=_0x3b1738['root']['rootName']);_0xf2c457['length']>0x0&&_0x1d0cb8['setSelection'](_0xf2c457);for(const _0x202cd5 of _0xafed9b)_0x202cd5['detach']();});});for(const _0x5b8a21 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2d9197=_0x189145['commands']['get'](_0x5b8a21);_0x2d9197['on']('set:isEnabled',(_0x209ee0,_0x5dc245,_0xb4728)=>{if(_0xb4728){const _0x518f01=_0x189145['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46078c=>_0x46078c['is']('element','tableCell'));this['_areMergableCells'](_0x2d9197['value'],_0x518f01)||(_0x209ee0['return']=!0x1,_0x209ee0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x39d572=this['editor']['commands']['get']('mergeTableCells'),_0x1cfd13=this['editor']['plugins']['get']('TableUtils');if(!_0x39d572['isEnabled'])return!0x1;const _0x161e55=_0x1cfd13['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x7adeb2 of _0x161e55)for(const _0x5e43f5 of _0x161e55)if(_0x7adeb2!=_0x5e43f5&&!this['_areMergableCells'](_0x7adeb2,_0x5e43f5))return!0x1;return!0x0;}['_areMergableCells'](_0x3bbece,_0x562b10){const _0xa463ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x304592=this['editor']['model']['createRangeOn'](_0x3bbece),_0x196db8=this['editor']['model']['createRangeOn'](_0x562b10),_0xdd8ce9=new Set(),_0x298042=new Set();for(const _0x211b41 of _0xa463ca['getSuggestions']())if(('insertion'==_0x211b41['type']||'deletion'==_0x211b41['type']||'mergeTableCells'==_0x211b41['subType'])&&_0x211b41['isInContent']){for(const _0x442a24 of _0x211b41['getRanges']())_0x442a24['containsRange'](_0x304592,!0x0)&&_0xdd8ce9['add'](_0x211b41['type']+':'+_0x211b41['author']['id']),_0x442a24['containsRange'](_0x196db8,!0x0)&&_0x298042['add'](_0x211b41['type']+':'+_0x211b41['author']['id']);}if(_0xdd8ce9['size']!=_0x298042['size'])return!0x1;for(const _0x317f72 of _0xdd8ce9)if(!_0x298042['has'](_0x317f72))return!0x1;return!0x0;}}class At extends _0x1f7250{static get['requires'](){return[jt];}['afterInit'](){const _0x215bc7=this['editor'];if(!_0x215bc7['plugins']['has']('TableEditing'))return;const _0x4b8181=_0x215bc7['locale'],_0x23753a=_0x215bc7['plugins']['get']('TrackChangesEditing');_0x23753a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x23753a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x23753a['registerBlockAttribute']('headingRows'),_0x23753a['registerBlockAttribute']('headingColumns'),_0x23753a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4b8181,'FORMAT_HEADER_ROW')),_0x23753a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4b8181,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12dadb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x162871=this['editor']['plugins']['get']('TableUtils'),_0xd974da=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2ff34e({showActiveMarker:_0x54fe57=!0x0,setDataAttribute:_0x53c4b2=!0x0}={}){return(_0x5e112e,_0x5a3e91,_0x5a474a)=>{const {type:_0x600a1b,id:_0x6acbd9}=_0x12dadb['_splitMarkerName'](_0x5a3e91['markerName']),_0x5b5b67=_0x12dadb['getSuggestion'](_0x6acbd9),_0x286e58=_0x5b5b67['data'];if('formatBlock'!=_0x5b5b67['type']||!_0x286e58||'setTableColumnHeader'!=_0x286e58['commandName'])return;if(_0x5a3e91['item'])return void _0x5e112e['stop']();if(!_0x5a474a['consumable']['consume'](_0x5a3e91['markerRange'],_0x5e112e['name']))return;const _0x2a8531=_0x5a3e91['markerRange']['start']['nodeAfter'],_0x2b35cc=_0x5a3e91['markerRange']['end']['nodeBefore'],_0x11a6d2=_0x2a8531['parent']['parent'],{column:_0x26f230}=_0x162871['getCellLocation'](_0x2a8531),{column:_0xac5f82}=_0x162871['getCellLocation'](_0x2b35cc);for(let _0x1281e9=_0x26f230;_0x1281e9<=_0xac5f82;_0x1281e9++){const _0x122d81=_0x162871['createTableWalker'](_0x11a6d2,{'column':_0x1281e9,'includeAllSlots':!0x1});for(const _0x4475a5 of _0x122d81){const _0x267ce1=_0x4475a5['cell'],_0x777b97=_0x5a474a['mapper']['toViewElement'](_0x267ce1);_0x5a474a['writer']['addClass']('ck-suggestion-marker-'+_0x600a1b,_0x777b97),_0x53c4b2&&_0x5a474a['writer']['setAttribute']('data-suggestion',_0x6acbd9,_0x777b97),_0x5a474a['mapper']['bindElementToMarker'](_0x777b97,_0x5a3e91['markerName']),_0x54fe57&&(_0x12dadb['activeMarkers']['includes'](_0x5a3e91['markerName'])?_0x5a474a['writer']['addClass']('ck-suggestion-marker--active',_0x777b97):_0x5a474a['writer']['removeClass']('ck-suggestion-marker--active',_0x777b97));}}};}_0x12dadb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xd974da),_0x12dadb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xd974da),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ff34e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x316842,_0x3ad77f,_0x5b4996)=>{_0x5b4996['options']['showSuggestionHighlights']&&_0x2ff34e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x316842,_0x3ad77f,_0x5b4996);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xcb9e85,_0x476857,_0x167d07)=>{const {type:_0x5df4e7,id:_0x3e05a7}=_0x12dadb['_splitMarkerName'](_0x476857['markerName']),_0x4447fe=_0x12dadb['getSuggestion'](_0x3e05a7),_0x523358=_0x4447fe['data'];if('formatBlock'!=_0x4447fe['type']||!_0x523358||'setTableColumnHeader'!=_0x523358['commandName'])return;const _0x183798=_0x167d07['mapper']['markerNameToElements'](_0x476857['markerName']);if(_0x183798){for(const _0x2c6ad7 of _0x183798)_0x167d07['writer']['removeClass']('ck-suggestion-marker-'+_0x5df4e7,_0x2c6ad7),_0x167d07['writer']['removeClass']('ck-suggestion-marker--active',_0x2c6ad7),_0x167d07['writer']['removeAttribute']('data-suggestion',_0x2c6ad7),_0x167d07['mapper']['unbindElementFromMarkerName'](_0x2c6ad7,_0x476857['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bed2c=this['editor'],_0x5c7638=_0x1bed2c['locale'];function _0x18766f(_0x1ff724){return{'type':'format','content':o(_0x5c7638,'*Format:*\x20%0',_0x1ff724)};}_0x1bed2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x188280=>{if('formatBlock'!=_0x188280['type'])return;const {data:_0x26f014}=_0x188280;if(_0x26f014){if('setTableRowHeader'==_0x26f014['commandName']){const _0x2ffd0d=_0x26f014['commandParams'][0x0]['forceValue'];return _0x18766f(o(_0x5c7638,_0x2ffd0d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26f014['commandName']){const _0x3292be=_0x26f014['commandParams'][0x0]['forceValue'];return _0x18766f(o(_0x5c7638,_0x3292be?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x902973=>[_0x902973,null]));class It extends _0x1f7250{static get['requires'](){return[jt];}['afterInit'](){const _0x266b27=this['editor'];if(!_0x266b27['plugins']['has']('TableClipboard'))return;const _0x25bc04=_0x266b27['plugins']['get']('TrackChangesEditing'),_0x21876c=_0x266b27['plugins']['get']('TableUtils'),_0x3406b5=_0x266b27['plugins']['get'](jt),_0x5a3cc8=_0x266b27['plugins']['get']('TableClipboard');_0x3406b5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x266b27['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x266b27['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4c545e=null;_0x266b27['model']['on']('insertContent',(_0x5a8a7b,_0xa7b210)=>{const [_0x3b9c14,_0x300556]=_0xa7b210,_0x25ac69=_0xa7b210[_0xa7b210['length']-0x1];_0x25ac69&&_0x25ac69['forceDefaultExecution']||_0x25bc04['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc89a6b,_0x2b3c83,_0x2a4b0e,_0x18c800,_0x4cc2de){if(_0x2b3c83&&!_0x2b3c83['is']('documentSelection'))return!0x1;const _0xf44e1c=_0x4cc2de['getTableIfOnlyTableInContent'](_0xc89a6b,_0x2a4b0e);if(!_0xf44e1c||!he(_0xf44e1c,void 0x0,_0x18c800))return!0x1;const _0x417d65=_0x18c800['getSelectionAffectedTableCells'](_0x2a4b0e['document']['selection']);if(!_0x417d65['length'])return!0x1;const _0x1c045c=_0x417d65[0x0]['findAncestor']('table'),_0x3fdd54=_0x18c800['getRowIndexes'](_0x417d65),_0x31a5ee=_0x18c800['getColumnIndexes'](_0x417d65),_0x452205={'startRow':_0x3fdd54['first'],'endRow':_0x3fdd54['last'],'startColumn':_0x31a5ee['first'],'endColumn':_0x31a5ee['last']};return 0x1==_0x417d65['length']&&(_0x452205['endRow']+=_0x18c800['getRows'](_0xf44e1c)-0x1,_0x452205['endColumn']+=_0x18c800['getColumns'](_0xf44e1c)-0x1),he(_0x1c045c,_0x452205,_0x18c800);}(_0x3b9c14,_0x300556,_0x266b27['model'],_0x21876c,_0x5a3cc8)&&(_0x5a8a7b['stop'](),_0x4c545e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x266b27['model']['change'](()=>{_0x266b27['model']['insertContent'](_0xa7b210[0x0],_0xa7b210[0x1],_0xa7b210[0x2],{'forceDefaultExecution':!0x0});const _0x302b52=_0x1d2ed9(),{rowInsertionRanges:_0x57532a,columnInsertionRanges:_0x47db47,insertionRanges:_0x4524a2,deletionRanges:_0x178b39,cells:_0xbede16}=_0x4c545e;_0x57532a['length']&&_0x25bc04['markMultiRangeInsertion'](_0x57532a,'tablePasteRow',{'tablePasteChainId':_0x302b52}),_0x47db47['length']&&_0x25bc04['markMultiRangeInsertion'](_0x47db47,'tablePasteColumn',{'tablePasteChainId':_0x302b52}),_0x4524a2['length']&&(_0x25bc04['markMultiRangeInsertion'](_0x4524a2,'tablePaste',{'tablePasteChainId':_0x302b52,'skipNestingCheck':!0x0}),_0x4524a2['forEach'](_0x2e38c6=>_0x2e38c6['detach']?.())),_0x178b39['length']&&(_0x25bc04['markMultiRangeDeletion'](_0x178b39,'tablePaste',{'tablePasteChainId':_0x302b52,'skipNestingCheck':!0x0}),_0x178b39['forEach'](_0x4a8d32=>_0x4a8d32['detach']?.()));const _0x337c44=_0x25bc04['markMultiRangeBlockFormat'](_0xbede16['map'](({element:_0x32f71b})=>_0x32f71b),{'formatGroupId':_0x1d2ed9()},[],'tablePasteCell',{'tablePasteChainId':_0x302b52});if(_0x337c44){const _0x205c26=_0x337c44['getMarkers'](),_0x24ba8e=[];for(const {element:_0x33b7dc,attributes:_0x280a7a}of _0xbede16){if(!_0x280a7a)continue;const _0x2bb66e=_0x266b27['model']['createRangeOn'](_0x33b7dc),_0x2c588e=_0x205c26['find'](_0x17271e=>_0x17271e['getRange']()['isEqual'](_0x2bb66e));_0x2c588e&&_0x24ba8e['push']([_0x2c588e['name'],_0x280a7a]);}_0x24ba8e['length']&&_0x337c44['setAttribute']('markerAttributes',Object['fromEntries'](_0x24ba8e));}_0x4c545e=null;}));},{'priority':_0x2c4957['high']+0xa}),_0x266b27['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x81158a,_0x19c53a)=>{const [_0x3267cd,_0x25d4f6,,_0x2f4d22]=_0x19c53a;if(!_0x4c545e)return;_0x81158a['stop']();const _0x49a7ef=_0x3267cd['cell'],_0x148aa7=_0x25d4f6,_0x129ef5=Pe(_0x49a7ef),_0x53c6c0=Pe(_0x148aa7);_0x81158a['return']=_0x49a7ef;let _0x2672c7=null,_0x358175=null;if(_0x53c6c0||_0x129ef5){if(_0x129ef5&&!_0x53c6c0){_0x2f4d22['remove'](_0x49a7ef['getChild'](0x0));for(const _0x541d92 of Array['from'](_0x148aa7['getChildren']()))_0x2f4d22['insert'](_0x541d92,_0x49a7ef,'end');const _0x10388e=_0x4c545e['rowInsertionIndexes']['includes'](_0x3267cd['row']),_0x2be89a=_0x4c545e['columnInsertionIndexes']['includes'](_0x3267cd['column']);_0x10388e||_0x2be89a||(_0x2672c7=_0x248c8e['fromRange'](_0x2f4d22['createRangeIn'](_0x49a7ef)));}else _0x53c6c0&&!_0x129ef5&&(_0x358175=_0x2f4d22['createRangeIn'](_0x49a7ef));}else{const _0xc20ce=_0x2f4d22['createElement']('tableCellSuggestion'),_0x1a835f=_0x2f4d22['createElement']('tableCellSuggestion');_0x2f4d22['wrap'](_0x2f4d22['createRangeIn'](_0x49a7ef),_0x1a835f),_0x2f4d22['insert'](_0xc20ce,_0x49a7ef,0x0);for(const _0x39dffd of Array['from'](_0x148aa7['getChildren']()))_0x2f4d22['insert'](_0x39dffd,_0xc20ce,'end');_0x2672c7=_0x248c8e['fromRange'](_0x2f4d22['createRangeOn'](_0xc20ce)),_0x358175=_0x248c8e['fromRange'](_0x2f4d22['createRangeOn'](_0x1a835f));}const _0x274641=Array['from'](_0x148aa7['getAttributes']())['filter'](([_0x2fd344])=>ge['includes'](_0x2fd344));_0x4c545e['cells']['push']({'element':_0x49a7ef,'attributes':_0x274641['length']?Object['fromEntries'](_0x274641):null}),_0x2672c7&&_0x4c545e['insertionRanges']['push'](_0x2672c7),_0x358175&&_0x4c545e['deletionRanges']['push'](_0x358175);},{'priority':'high'}),_0x21876c['on']('insertColumns',(_0x3b93fa,_0x5d097e)=>{const [_0x354fc2,_0x5ac6f9={}]=_0x5d097e;if(!_0x4c545e)return;const _0x4ee337=_0x5ac6f9['at']||0x0,_0x3806fa=_0x5ac6f9['columns']||0x1;_0x4c545e['columnInsertionIndexes']=new Array(_0x3806fa)['fill'](_0x4ee337)['map']((_0x5c1360,_0x5c52a7)=>_0x5c1360+_0x5c52a7);for(const {cell:_0x37cde0}of _0x21876c['createTableWalker'](_0x354fc2,{'startColumn':_0x4ee337,'endColumn':_0x4ee337+_0x3806fa-0x1}))_0x4c545e['columnInsertionRanges']['push'](_0x266b27['model']['createRangeOn'](_0x37cde0));},{'priority':'low'}),_0x21876c['on']('insertRows',(_0x96992c,_0x7d67d3)=>{const [_0x87357b,_0x41ccba={}]=_0x7d67d3;if(!_0x4c545e)return;const _0x13e0c6=_0x41ccba['at']||0x0,_0x18b9d5=_0x41ccba['rows']||0x1;_0x4c545e['rowInsertionIndexes']=new Array(_0x18b9d5)['fill'](_0x13e0c6)['map']((_0x1ab801,_0x458f10)=>_0x1ab801+_0x458f10);for(const {cell:_0x505bfd}of _0x21876c['createTableWalker'](_0x87357b,{'startRow':_0x13e0c6,'endRow':_0x13e0c6+_0x18b9d5-0x1}))_0x4c545e['rowInsertionRanges']['push'](_0x266b27['model']['createRangeOn'](_0x505bfd));},{'priority':'low'}),_0x25bc04['descriptionFactory']['registerDescriptionCallback'](_0x4bcbb7=>{if(_0x4bcbb7['subType']&&_0x4bcbb7['subType']['startsWith']('tablePaste'))return _0x4bcbb7['previous']?{}:{'type':'insertion','content':o(_0x266b27['locale'],'*Replace\x20table\x20cells*')};});const _0x37f07b=()=>!0x1;for(const _0x1b83a4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x25bc04['_suggestionFactory']['registerCustomCallback']('insertion',_0x1b83a4,'join',_0x37f07b),_0x25bc04['_suggestionFactory']['registerCustomCallback']('deletion',_0x1b83a4,'join',_0x37f07b),_0x25bc04['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b83a4,'join',_0x37f07b);_0x25bc04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x37f07b),_0x25bc04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x14204c,_0x2879e7,_0x4a3cc0)=>{const _0xcbc76b=_0x14204c['map'](_0x338e39=>_0x338e39['getContainedElement']())['filter'](_0x36e639=>_0x36e639),_0x147784=new Map(_0xcbc76b['map'](_0x35bf34=>[_0x35bf34,null]));if(_0x4c545e){for(const {element:_0x825c1f,attributes:_0x51e0d3}of _0x4c545e['cells'])_0x51e0d3&&_0x147784['set'](_0x825c1f,_0x51e0d3);}else{if(_0x4a3cc0&&_0x4a3cc0['markerAttributes'])for(const [_0x533ad4,_0x2791a1]of Object['entries'](_0x4a3cc0['markerAttributes'])){const _0x54f9f0=_0x266b27['model']['markers']['get'](_0x533ad4),_0x3094fd=_0x54f9f0?_0x54f9f0['getRange']()['getContainedElement']():null;_0x3094fd&&_0x147784['set'](_0x3094fd,_0x2791a1);}}_0x266b27['model']['change'](_0x2e04a0=>{for(const [_0x2b82e2,_0xdba808]of _0x147784)_0x2e04a0['setAttributes']({...Ce,..._0xdba808},_0x2b82e2);});});const _0x50f69b=(_0x1b31ca,_0x5f1e27)=>{_0x25bc04['_suggestionFactory']['registerCustomCallback'](_0x1b31ca,'tablePaste',_0x5f1e27,(_0x3bdc26,_0x557579,_0x230f0d)=>{_0x266b27['model']['change'](_0x453f61=>{const _0x363549=[];for(const _0x37d98c of _0x3bdc26){const _0x51b683=_0x37d98c['start']['nodeAfter'];_0x51b683['is']('element','tableCellSuggestion')&&_0x363549['push'](_0x51b683);}_0x25bc04['_suggestionFactory']['getSuggestionCallback'](_0x1b31ca,null,_0x5f1e27)(_0x3bdc26,_0x557579,_0x230f0d);for(const _0x41b5a7 of _0x363549)'$graveyard'!=_0x41b5a7['root']['rootName']&&_0x453f61['unwrap'](_0x41b5a7);});});};_0x50f69b('insertion','accept'),_0x50f69b('insertion','discard'),_0x50f69b('deletion','accept'),_0x50f69b('deletion','discard'),_0x25bc04['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4eea8d=>{const _0x52f05b=_0x4eea8d['map'](_0x36c0be=>_0x36c0be['getContainedElement']()),_0x4f1952=_0x52f05b[0x0]['findAncestor']('table'),{minRow:_0x465ada,maxRow:_0x4292ed}=_0x3406b5['_getCoordsForCells'](_0x52f05b);_0x21876c['removeRows'](_0x4f1952,{'at':_0x465ada,'rows':_0x4292ed-_0x465ada+0x1});}),_0x25bc04['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xcaccc2=>{const _0x2ec54a=_0xcaccc2['map'](_0x4683f0=>_0x4683f0['getContainedElement']()),_0x40bebc=_0x2ec54a[0x0]['findAncestor']('table'),{minColumn:_0x3c6773,maxColumn:_0x5b9037}=_0x3406b5['_getCoordsForCells'](_0x2ec54a);_0x21876c['removeColumns'](_0x40bebc,{'at':_0x3c6773,'columns':_0x5b9037-_0x3c6773+0x1});});const _0x47ff6e=(_0x120675,_0x4578ed)=>{if(!_0x4578ed['subType']||!_0x4578ed['subType']['startsWith']('tablePaste'))return;const _0xaa4ac5=_0x4578ed['attributes']['tablePasteChainId'],_0x182d22=_0x25bc04['getSuggestions']()['filter'](_0x5e00c4=>_0x5e00c4['isInContent']&&_0x5e00c4['attributes']&&_0x5e00c4['attributes']['tablePasteChainId']==_0xaa4ac5);_0x182d22['length']&&_0x4578ed['getAllAdjacentSuggestions']()['length']!=_0x182d22['length']&&_0x182d22['reduce']((_0x57e845,_0x21eaef)=>(_0x57e845['next']=_0x21eaef,_0x21eaef['previous']=_0x57e845,_0x21eaef));};function _0x1a798d(_0x466446,_0x273d48=!0x0){const {id:_0x1ea28b}=_0x25bc04['_splitMarkerName'](_0x466446['markerName']),_0x5244c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1f6723=_0x25bc04['activeMarkers']['includes'](_0x466446['markerName']);return _0x1f6723&&_0x5244c2['push']('ck-suggestion-marker--active'),{'classes':_0x5244c2,'attributes':{'data-suggestion':_0x1ea28b},'priority':_0x1f6723&&_0x273d48?0xbc2:0xbb8};}_0x25bc04['on']('suggestionLoaded',_0x47ff6e,{'priority':'high'}),_0x25bc04['on']('suggestionUnloaded',_0x47ff6e,{'priority':'high'}),_0x266b27['model']['document']['registerPostFixer'](()=>{let _0x2928ff=!0x1;const _0x25b757=Array['from'](_0x266b27['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd50024,data:_0x3ae987}of _0x25b757){const {group:_0x3cf419,type:_0x241035,id:_0x3fcdff}=_0x25bc04['_splitMarkerName'](_0xd50024);if('suggestion'!=_0x3cf419||'deletion'!=_0x241035||_0x3ae987['oldRange'])continue;if(!_0x25bc04['hasSuggestion'](_0x3fcdff))continue;const _0xc9772d=_0x25bc04['getSuggestion'](_0x3fcdff)['getRanges'](),_0x1e036e=_0x266b27['plugins']['get']('Users')['me'];for(const _0x294d26 of _0x25bc04['getSuggestions']()){if(!_0x294d26['isInContent']||_0x294d26['author']!=_0x1e036e)continue;if('formatBlock'!=_0x294d26['type']||'tablePasteCell'!=_0x294d26['subType'])continue;if(_0x294d26['getRanges']()['every'](_0x1efd35=>_0xc9772d['some'](_0x185776=>_0x185776['containsRange'](_0x1efd35,!0x0)))){for(const _0x1ca8d6 of _0x294d26['getAllAdjacentSuggestions']())_0x1ca8d6['isInContent']&&(_0x1ca8d6['discard'](),_0x2928ff=!0x0);}}}return _0x2928ff;}),_0x266b27['model']['document']['registerPostFixer'](_0x5af952=>{const _0x12a05c=_0x266b27['commands']['get']('redo');if(!_0x12a05c||!_0x12a05c['_createdBatches']['has'](_0x5af952['batch']))return!0x1;let _0xf71ad=!0x1;const _0x4c5077=_0x266b27['plugins']['get']('Users')['me'],_0x433582=_0x266b27['model']['document']['differ']['getChanges'](),_0x2a4a3b=Array['from'](_0x266b27['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x464313,data:_0x320954})=>{const {group:_0x5b3916,subType:_0x3b50a6,authorId:_0x458e19}=_0x25bc04['_splitMarkerName'](_0x464313);return'suggestion'==_0x5b3916&&'tablePaste'==_0x3b50a6&&_0x458e19==_0x4c5077['id']&&!_0x320954['oldRange'];});for(const _0x3f339e of _0x433582){if('insert'!=_0x3f339e['type']||'tableCellSuggestion'!=_0x3f339e['name']||0x1!=_0x3f339e['length'])continue;const _0x4dd121=_0x5af952['createRange'](_0x3f339e['position'],_0x3f339e['position']['getShiftedBy'](0x1));if(!_0x2a4a3b['find'](({data:_0x15896f})=>_0x15896f['newRange']['isEqual'](_0x4dd121))){for(const {name:_0x27e9bf,data:_0x1549ca}of _0x2a4a3b)if(_0x4dd121['containsRange'](_0x1549ca['newRange'])){_0x5af952['updateMarker'](_0x27e9bf,{'range':_0x4dd121}),_0xf71ad=!0x0;break;}}}return _0xf71ad;}),_0x266b27['model']['document']['registerPostFixer'](_0x2111c0=>{let _0x76e39a=!0x1;const _0x5102d2=_0x266b27['plugins']['get']('Users')['me'],_0x529099=_0x25bc04['getSuggestions']()['filter'](_0xb7d4a8=>_0xb7d4a8['isInContent']&&_0xb7d4a8['author']==_0x5102d2),_0x55d674=new Set(),_0x4ccf02=new Set();for(const _0xc6395f of _0x529099)if('tablePaste'==_0xc6395f['subType'])for(const _0x173c26 of _0xc6395f['getMarkers']()){const _0xc2e1a9=_0x173c26['getRange']()['getContainedElement']();if(_0xc2e1a9){if(_0xc2e1a9['is']('element','tableCellSuggestion')&&Pe(_0xc2e1a9)){_0xc6395f['removeMarker'](_0x173c26['name']),_0x55d674['add'](_0xc2e1a9),_0x76e39a=!0x0;const _0x11ea51=_0xc2e1a9['nextSibling'],_0x4e75a7=_0xc2e1a9['previousSibling'],_0x1d7f8d=_0x11ea51&&_0x11ea51['is']('element','tableCellSuggestion'),_0x4545e4=_0x4e75a7&&_0x4e75a7['is']('element','tableCellSuggestion');_0x1d7f8d&&!_0x55d674['has'](_0x11ea51)&&_0x4ccf02['add'](_0x11ea51),_0x4545e4&&!_0x55d674['has'](_0x4e75a7)&&_0x4ccf02['add'](_0x4e75a7);}else _0xc2e1a9['is']('element','paragraph')&&_0xc2e1a9['isEmpty']&&(_0xc6395f['removeMarker'](_0x173c26['name']),_0x76e39a=!0x0);}}else{if('tablePasteCell'==_0xc6395f['subType']){if(!_0xc6395f['attributes']||!_0xc6395f['attributes']['tablePasteChainId'])continue;const _0xaf5027=_0xc6395f['attributes']['markerAttributes'];if(_0xaf5027&&Object['keys'](_0xaf5027)['length'])continue;const _0x926ea7=_0xc6395f['attributes']['tablePasteChainId'];let _0x11e6e3=!0x0,_0x1bcdf9=!0x0;for(const _0xb1676c of _0x529099)if(_0xb1676c['subType']&&_0xb1676c['subType']['startsWith']('tablePaste')){if(!_0xb1676c['attributes']['tablePasteChainId']){_0x1bcdf9=!0x1;break;}if(_0xb1676c['id']!=_0xc6395f['id']&&_0xb1676c['attributes']['tablePasteChainId']==_0x926ea7){_0x11e6e3=!0x1;break;}}_0x1bcdf9&&_0x11e6e3&&(_0xc6395f['removeMarkers'](),_0x76e39a=!0x0);}}for(const _0x2f5ed5 of _0x55d674)_0x2111c0['remove'](_0x2f5ed5);for(const _0x413740 of _0x4ccf02)_0x2111c0['unwrap'](_0x413740);return _0x76e39a;}),_0x266b27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2112ca,_0x1fdf42)=>_0x1a798d(_0x2112ca),'converterPriority':'high'}),_0x266b27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x593ec2,_0x18da52)=>_0x18da52['options']['showSuggestionHighlights']?_0x1a798d(_0x593ec2,!0x1):null,'converterPriority':'high'});const _0xd7898e=_0x266b27['editing']['view'];this['listenTo'](_0xd7898e['document'],'clipboardOutput',(_0x508fe5,_0x54e024)=>{const _0x1b5e4a=[];for(const _0x2011ab of _0xd7898e['createRangeIn'](_0x54e024['content'])['getItems']())_0x2011ab['is']('element','suggestion-td')&&_0x1b5e4a['push'](_0x2011ab);_0xd7898e['change'](_0x30b638=>{for(const _0x2408bf of _0x1b5e4a)_0x30b638['move'](_0x30b638['createRangeIn'](_0x2408bf),_0x30b638['createPositionBefore'](_0x2408bf)),_0x30b638['remove'](_0x2408bf);});});}}function Pe(_0x3a66bf){if(_0x3a66bf['isEmpty'])return!0x0;const _0x492109=_0x3a66bf['getChild'](0x0);return _0x492109['is']('element','paragraph')&&_0x492109['isEmpty'];}function he(_0x417100,_0x30d2e1={},_0x296e12){for(const {isAnchor:_0x5b97a4,cellHeight:_0x85db53,cellWidth:_0x5b1d00}of _0x296e12['createTableWalker'](_0x417100,{'includeAllSlots':!0x0,..._0x30d2e1}))if(!_0x5b97a4||0x1!=_0x85db53||0x1!=_0x5b1d00)return!0x1;return!0x0;}class vt extends _0x1f7250{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5d4ab9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d4ab9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5d4ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5d4ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d4ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5d4ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5d4ab9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x20c38b,_0xec2df4){const _0x5acaed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5abea5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3dd29d=_0xec2df4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x484eda=_0x5abea5['getColumnGroupElement'](_0x3dd29d);let _0x2802c8=_0x484eda?_0x5abea5['getTableColumnsWidths'](_0x484eda):null,_0x11974f=_0x3dd29d['getAttribute']('tableWidth')||null;const _0x500dbb=_0xec2df4['tableWidth']||_0x11974f,_0x38f305=_0xec2df4['columnWidths']||_0x2802c8,_0x7ba3f5=this['editor']['plugins']['get']('Users')['me'];for(const _0x44197d of _0x5acaed['getSuggestions']()){const _0xaa25cd=_0x44197d['getContainedElement']();if('resizeTable'===_0x44197d['subType']&&_0xaa25cd===_0x3dd29d){_0x44197d['author']!==_0x7ba3f5&&_0x44197d['discard']();const _0x51ee3b=_0x44197d['data']['commandParams'];_0x11974f=_0x51ee3b[0x0]['tableWidth'],_0x2802c8=_0x51ee3b[0x0]['columnWidths'];break;}}_0x20c38b({'table':_0x3dd29d,'tableWidth':_0x500dbb,'columnWidths':_0x38f305}),_0x5acaed['markBlockFormat'](_0x3dd29d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11974f,'columnWidths':_0x2802c8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f3860){if('formatBlock'!=_0x2f3860['type']&&'formatInline'!=_0x2f3860['type'])return;const {data:_0x2676b1}=_0x2f3860;if(_0x2676b1&&'resizeTable'===_0x2676b1['formatGroupId']){const _0x56fc8c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x56fc8c)};}}}class Ct extends _0x1f7250{['afterInit'](){const _0x29fafa=this['editor'];_0x29fafa['plugins']['has']('Template')&&_0x29fafa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1f7250{['afterInit'](){const _0x3928b5=this['editor'];if(!_0x3928b5['commands']['get']('insertTableOfContents'))return;_0x3928b5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40a00b=_0x3928b5['plugins']['get']('TrackChangesEditing'),_0x229650=_0x3928b5['locale'];_0x40a00b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x88dc5f=>o(_0x229650,'ELEMENT_TABLE_OF_CONTENTS',_0x88dc5f));}}class Dt extends _0x1f7250{['afterInit'](){const _0x45c009=this['editor'];if(!_0x45c009['plugins']['has']('Title'))return;const _0x6eaf08=_0x45c009['plugins']['get']('TrackChangesEditing');_0x6eaf08['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x45c009['locale'],'ELEMENT_TITLE')),_0x45c009['model']['document']['registerPostFixer'](_0x22f95f=>{let _0x17b81d=!0x1;const _0xa550ab=Array['from'](_0x45c009['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x52c4f2,data:_0x9e17f1}of _0xa550ab){const {group:_0xf8a8a7}=_0x6eaf08['_splitMarkerName'](_0x52c4f2);if('suggestion'!==_0xf8a8a7||!_0x9e17f1['newRange'])continue;const _0x2687c8=_0x9e17f1['newRange'],_0x1fcc26=_0x2687c8['end']['nodeBefore'];if(!_0x1fcc26||!_0x1fcc26['is']('element','title-content'))continue;if(!_0x2687c8['start']['isTouching'](_0x2687c8['end']))continue;const _0x228f42=_0x45c009['model']['schema']['getNearestSelectionRange'](_0x2687c8['end'],'forward');if(_0x228f42&&_0x228f42['isCollapsed']){const _0x12340f=_0x22f95f['createRange'](_0x2687c8['start'],_0x228f42['start']);_0x12340f['isEqual'](_0x2687c8)||(_0x22f95f['updateMarker'](_0x52c4f2,{'range':_0x12340f}),_0x17b81d=!0x0);}_0x17b81d||(_0x22f95f['removeMarker'](_0x52c4f2),_0x17b81d=!0x0);}return _0x17b81d;});}}class Nt extends _0x1f7250{['afterInit'](){const _0xcad3e7=this['editor'],_0x1d751f=_0xcad3e7['plugins']['get']('TrackChangesEditing');_0xcad3e7['plugins']['has']('UndoEditing')&&(_0x1d751f['enableCommand']('undo'),_0x1d751f['enableCommand']('redo'));}}class Mt extends _0x1f7250{static get['requires'](){return[jt];}['afterInit'](){const _0x4b5c70=this['editor'];if(!_0x4b5c70['plugins']['has']('TableCaptionEditing'))return;_0x4b5c70['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1f7250{['tableProperties'];['tableCellProperties'];constructor(_0x374df4){super(_0x374df4),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 _0x259a76=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51c1b5 of this['tableProperties'])_0x259a76['enableCommand'](_0x51c1b5,(_0x216835,_0x4871ca)=>{const _0x23e63a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51c1b5,[_0x23e63a],this['tableProperties'],'tableProperties',_0x216835,_0x4871ca);});_0x259a76['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x259a76['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x259a76['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x552f4f,_0x4e5911)=>this['handleDiscardAction'](this['tableProperties'],_0x552f4f,_0x4e5911)),_0x259a76['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8e844d of this['tableCellProperties'])_0x259a76['enableCommand'](_0x8e844d,(_0x59dfd9,_0x2d07cb)=>{const _0x35f8b1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8e844d,_0x35f8b1,this['tableCellProperties'],'tableCellProperties',_0x59dfd9,_0x2d07cb);});_0x259a76['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x259a76['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x259a76['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x382b93,_0x19eea7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x382b93,_0x19eea7)),_0x259a76['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x259a76['descriptionFactory']['registerDescriptionCallback'](_0x556459=>this['handleSuggestionDescription'](_0x556459));}['_handlePropertyChange'](_0x2067bf,_0x3c9d90,_0x110cb1,_0x2e3d49,_0x2af307,_0x15a412){const _0x1623f3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x15a412['batch'],()=>{for(const _0x116875 of _0x3c9d90){if(this['_getSuggestion'](_0x116875,_0x2e3d49))_0x2af307(_0x15a412);else{const _0x86cdae={};for(const _0x3a800d of _0x110cb1){const _0x248b29=_0x116875['getAttribute'](_0x3a800d);void 0x0!==_0x248b29&&(_0x86cdae[_0x3a800d]=_0x248b29);}_0x2af307(_0x15a412),_0x1623f3['markBlockFormat'](_0x116875,{'commandParams':[_0x86cdae]},[],_0x2e3d49);}}});}['handleDiscardAction'](_0x1f42d8,_0x2c400c,_0x9f1a74){const _0x1538ad=_0x2c400c[0x0]['start']['nodeAfter'],_0x26ad51=_0x9f1a74['commandParams'][0x0];this['editor']['model']['change'](_0xe1e033=>{for(const _0x104951 of _0x1f42d8)void 0x0!==_0x26ad51[_0x104951]?_0xe1e033['setAttribute'](_0x104951,_0x26ad51[_0x104951],_0x1538ad):_0xe1e033['removeAttribute'](_0x104951,_0x1538ad);});}['handleSuggestionDescription'](_0x59e525){if(_0x59e525['data'])switch(_0x59e525['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'](_0x7a1daa,_0x3460fc){const _0x1229f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x44f026 of _0x1229f5['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f1231=_0x44f026['getContainedElement']();if(_0x44f026['subType']===_0x3460fc&&_0x2f1231===_0x7a1daa)return _0x44f026;}return null;}}const m='$elementName';class p extends _0x1f7250{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x174f94,_0x1f9269,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(_0x4cfb06){function _0x3d17d0(_0x271a43){return _0x271a43['map'](_0x580f1e=>String['fromCharCode'](_0x580f1e))['join']('');}super(_0x4cfb06),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2e01fe,_0x16ea03,_0x4369a1,_0x4dc5e7)=>{this['_model']['change'](()=>{for(const _0x3d7f93 of[..._0x4dc5e7,..._0x4369a1])this['_model']['markers']['has'](_0x3d7f93)&&_0x4cfb06['editing']['reconvertMarker'](_0x3d7f93);});}),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']=_0x4cfb06['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(),_0x4cfb06['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4cfb06['config']['get']('trackChanges.trackFormatChanges'),_0x4cfb06['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4cfb06['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4cfb06,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3d17d0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3d17d0([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x38]);}['init'](){const _0x924983=this['editor'],_0x132ef7=(_0x51c340,_0x50a3a9)=>{if('attribute'!=_0x51c340)return'ck-suggestion-marker-'+_0x51c340;const _0x140ec2=_0x50a3a9['split']('|')[0x0];return this['_isBlockAttribute'](_0x140ec2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x924983['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x7d81e7=>{const {id:_0x35e20b,type:_0x4062db,subType:_0x13198a}=this['_splitMarkerName'](_0x7d81e7['markerName']),_0x75a489=['ck-suggestion-marker',_0x132ef7(_0x4062db,_0x13198a)];let _0x3b0983=0xbb8;return this['activeMarkers']['includes'](_0x7d81e7['markerName'])&&(_0x75a489['push']('ck-suggestion-marker--active'),_0x3b0983=0xbc2),'deletion'==_0x4062db&&(_0x3b0983+=0x5),{'classes':_0x75a489,'attributes':{'data-suggestion':_0x35e20b},'priority':_0x3b0983};}}),_0x924983['conversion']['for']('dataDowncast')['add'](_0x3ec804=>{_0x3ec804['on']('addMarker:suggestion',(_0x23f548,_0x26384b,_0x4ac9ca)=>{if(!_0x4ac9ca['options']['showSuggestionHighlights'])return;const _0xafc6a4=_0x26384b['item'];if(!_0xafc6a4)return;const _0xd5c617=_0x4ac9ca['mapper']['toViewElement'](_0xafc6a4);_0x924983['model']['schema']['isObject'](_0xafc6a4)&&_0xd5c617&&!_0xd5c617['getCustomProperty']('widget')&&_0xd5c617['is']('containerElement')&&_0x54de2a(_0xd5c617,_0x4ac9ca['writer']);},{'priority':'high'});}),_0x924983['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5f1a15,_0x6912a6)=>{if(!_0x6912a6['options']['showSuggestionHighlights'])return null;const {type:_0x413aac,subType:_0x1ede0e}=this['_splitMarkerName'](_0x5f1a15['markerName']);return{'classes':['ck-suggestion-marker',_0x132ef7(_0x413aac,_0x1ede0e)],'priority':0xbb8};}});const _0x4c4f77=({showActiveMarkers:_0x47d006=!0x0,isAttributeSuggestion:_0x38a606=!0x1}={})=>(_0x473aff,_0x4e7121,_0x50bcd0)=>{if(!_0x4e7121['item'])return;const {id:_0x1666f0}=this['_splitMarkerName'](_0x4e7121['markerName']);if(_0x38a606){const _0x374c6c=this['_suggestions']['get'](_0x1666f0),_0x230694=this['_getAttributeKey'](_0x374c6c);if(!this['_isBlockAttribute'](_0x230694))return;}if(_0x4e7121['item']['is']('selection'))return void _0x50bcd0['consumable']['consume'](_0x4e7121['item'],_0x473aff['name']);const _0x64db18=_0x50bcd0['mapper']['toViewElement'](_0x4e7121['item']);if(_0x4e7121['item']['is']('element')&&_0x924983['model']['schema']['isBlock'](_0x4e7121['item'])&&!_0x64db18['getCustomProperty']('addHighlight')){_0x50bcd0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x64db18),_0x50bcd0['writer']['setAttribute']('data-suggestion',_0x1666f0,_0x64db18),_0x50bcd0['mapper']['bindElementToMarker'](_0x64db18,_0x4e7121['markerName']),_0x47d006&&(this['activeMarkers']['includes'](_0x4e7121['markerName'])?_0x50bcd0['writer']['addClass']('ck-suggestion-marker--active',_0x64db18):_0x50bcd0['writer']['removeClass']('ck-suggestion-marker--active',_0x64db18));for(const _0x52df3d of _0x924983['model']['createRangeIn'](_0x4e7121['item'])['getItems']())_0x50bcd0['consumable']['consume'](_0x52df3d,_0x473aff['name']);_0x50bcd0['consumable']['consume'](_0x4e7121['item'],_0x473aff['name']);}};_0x924983['conversion']['for']('dataDowncast')['add'](_0x39a614=>{_0x39a614['on']('addMarker:suggestion:formatBlock',(_0x8d4a4d,_0x5b01f5,_0x48f0fc)=>{_0x48f0fc['options']['showSuggestionHighlights']&&_0x4c4f77({'showActiveMarkers':!0x1})(_0x8d4a4d,_0x5b01f5,_0x48f0fc);},{'priority':'highest'});}),_0x924983['conversion']['for']('dataDowncast')['add'](_0x505cf2=>{_0x505cf2['on']('addMarker:suggestion:attribute',(_0x53aa7d,_0x3c73c2,_0x5d35b9)=>{_0x5d35b9['options']['showSuggestionHighlights']&&_0x4c4f77({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x53aa7d,_0x3c73c2,_0x5d35b9);},{'priority':'highest'});}),_0x924983['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x51b2ff,_0x39f08b)=>_0x39f08b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x51b2ff['substr'](0xb)}}),_0x924983['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3675a2,{writer:_0x5e9202})=>{let _0x38dc97='suggestion:'+_0x3675a2['getAttribute']('suggestion-type')+':'+_0x3675a2['getAttribute']('id');return _0x3675a2['getAttribute']('marker-count')&&(_0x38dc97+=':'+_0x3675a2['getAttribute']('marker-count')),_0x5e9202['createElement']('$marker',{'data-name':_0x38dc97});}}),_0x924983['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x924983['conversion']['for']('editingDowncast')['add'](_0x2bcbb4=>{_0x2bcbb4['on']('addMarker:suggestion:formatBlock',_0x4c4f77(),{'priority':'high'});}),_0x924983['conversion']['for']('editingDowncast')['add'](_0x1ecd69=>{_0x1ecd69['on']('addMarker:suggestion:attribute',_0x4c4f77({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x924983['conversion']['for']('editingDowncast')['add'](_0x3fa315=>{_0x3fa315['on']('removeMarker:suggestion:formatBlock',(_0x1648ed,_0x125d2f,_0x2f8ec7)=>{const _0x462547=_0x2f8ec7['mapper']['markerNameToElements'](_0x125d2f['markerName']);if(_0x462547){for(const _0x394e5d of _0x462547)_0x394e5d['getCustomProperty']('addHighlight')||(_0x2f8ec7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x394e5d),_0x2f8ec7['writer']['removeAttribute']('data-suggestion',_0x394e5d),_0x2f8ec7['mapper']['unbindElementFromMarkerName'](_0x394e5d,_0x125d2f['markerName']));}},{'priority':'high'});}),_0x924983['conversion']['for']('editingDowncast')['add'](_0xcc1e58=>{_0xcc1e58['on']('removeMarker:suggestion:attribute',(_0x204e87,_0x40ecfa,_0x5d9ace)=>{const _0x559140=_0x5d9ace['mapper']['markerNameToElements'](_0x40ecfa['markerName']);if(!_0x559140)return;const {id:_0x1606e1}=this['_splitMarkerName'](_0x40ecfa['markerName']),_0x16e193=this['_suggestions']['get'](_0x1606e1),_0x4d562b=this['_getAttributeKey'](_0x16e193);if(this['_isBlockAttribute'](_0x4d562b)){for(const _0x13f40e of _0x559140)_0x13f40e['getCustomProperty']('addHighlight')||(_0x5d9ace['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x13f40e),_0x5d9ace['writer']['removeAttribute']('data-suggestion',_0x13f40e),_0x5d9ace['mapper']['unbindElementFromMarkerName'](_0x13f40e,_0x40ecfa['markerName']));}},{'priority':'high'});}),_0x924983['model']['document']['registerPostFixer'](_0x1c5426=>{let _0x53cbe1=!0x1;const _0x19531d=Array['from'](_0x924983['model']['document']['differ']['getChangedMarkers']()),_0x40233a=new Set();for(const {name:_0x51b829,data:_0xba85ef}of _0x19531d){const {group:_0x1df91c,type:_0x3c11c5,subType:_0x45137d,id:_0xc8a2b2}=this['_splitMarkerName'](_0x51b829);if('suggestion'!==_0x1df91c)continue;const _0x16df72=this['_suggestions']['get'](_0xc8a2b2);if(null!=_0xba85ef['newRange']){'formatInline'==_0x3c11c5&&(_0x53cbe1=_0x53cbe1||Et(_0xba85ef['newRange'],_0x51b829,_0x1c5426,_0x924983['model']['schema']));const _0x158c01='attribute'==_0x3c11c5&&this['_isBlockAttribute'](_0x45137d['split']('|')[0x0]);if(_0xba85ef['newRange']['isCollapsed']||'$graveyard'==_0xba85ef['newRange']['root']['rootName']||'formatBlock'==_0x3c11c5&&!Ut(_0xba85ef['newRange'])||_0x158c01&&!Ut(_0xba85ef['newRange'])||'deletion'==_0x3c11c5&&!(!Tt(_0x6e985d=_0xba85ef['newRange'])&&!function(_0x20d1b1){return _0x20d1b1['start']['parent']==_0x20d1b1['end']['nodeBefore']&&_0x20d1b1['start']['isAtEnd'];}(_0x6e985d)))_0x1c5426['removeMarker'](_0x51b829),_0x53cbe1=!0x0;else{if(!_0x16df72||!_0x16df72['isInContent'])continue;_0x40233a['add'](_0x16df72);}}}var _0x6e985d;return _0x40233a['size']>0x0&&(_0x53cbe1=!!this['_joinWithAdjacentSuggestions'](_0x40233a)||_0x53cbe1),_0x53cbe1;}),_0x924983['model']['document']['registerPostFixer'](_0x16fa3a=>{let _0x3ea015=!0x1;for(const _0x3a2c19 of _0x924983['model']['document']['differ']['getChanges']())if('insert'==_0x3a2c19['type'])for(const _0x165184 of this['_suggestions']['values']()){if(_0x165184['isMultiRange']||!_0x165184['isInContent'])continue;const _0x3ca162='formatBlock'==_0x165184['type'],_0x16568a=this['_getAttributeKey'](_0x165184),_0x2c3211=_0x16568a&&this['_isBlockAttribute'](_0x16568a);if(!_0x3ca162&&!_0x2c3211)continue;const _0x10be93=_0x165184['getFirstRange']();if(_0x10be93['start']['parent']!=_0x10be93['end']['parent']&&!_0x10be93['end']['isAtEnd']){const _0x17be1e=_0x924983['model']['createPositionAt'](_0x10be93['start']['nodeAfter'],'end'),_0x36bec2=_0x924983['model']['createRange'](_0x10be93['start'],_0x17be1e);_0x16fa3a['updateMarker'](_0x165184['getFirstMarker'](),{'range':_0x36bec2}),_0x3ea015=!0x0;}}return _0x3ea015;}),_0x924983['model']['document']['registerPostFixer'](_0x40b4f2=>this['_processAttributeChanges'](_0x40b4f2)),_0x924983['model']['document']['registerPostFixer'](_0x5a0d77=>!_0x5a0d77['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a0d77)),_0x924983['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x924983['model']['document']['on']('change:data',(_0x2f65c5,_0x38ee28)=>{if(!_0x38ee28['isLocal']||_0x38ee28['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x10cd39=_0x924983['model']['document']['differ']['getChanges']();if(0x0==_0x10cd39['length'])return;const _0x2f9c21=[],_0x3cf73c=_0x10cd39['filter'](_0x5d6a23=>'attribute'==_0x5d6a23['type']),_0x25e300=_0x10cd39['filter'](_0x183e84=>'insert'==_0x183e84['type']&&'$text'!=_0x183e84['name']);for(const _0x320387 of _0x3cf73c)this['_isRegisteredAttribute'](_0x320387['attributeKey'])&&_0x2f9c21['push']({'key':_0x320387['attributeKey'],'newValue':_0x320387['attributeNewValue'],'oldValue':_0x320387['attributeOldValue'],'range':Ot(_0x320387['range'],_0x924983['model'])});for(const _0x4e305e of _0x25e300){if('rename'!=_0x4e305e['action']&&'refresh'!=_0x4e305e['action'])continue;const _0x248ab2=Gt(_0x4e305e['position']['nodeAfter'],_0x924983['model']),_0x652428=_0x4e305e['before'];'rename'==_0x4e305e['action']&&_0x2f9c21['push']({'key':m,'newValue':_0x4e305e['name'],'oldValue':_0x652428['name'],'range':_0x248ab2});for(const [_0xcee77c,_0x187ca0]of _0x652428['attributes']){if(!this['_isRegisteredAttribute'](_0xcee77c))continue;const _0x3e778c=_0x4e305e['attributes']['get'](_0xcee77c);_0x187ca0!==_0x3e778c&&_0x2f9c21['push']({'key':_0xcee77c,'newValue':_0x3e778c,'oldValue':_0x187ca0,'range':_0x248ab2});}for(const [_0x583543,_0x267f86]of _0x4e305e['attributes'])this['_isRegisteredAttribute'](_0x583543)&&(_0x652428['attributes']['has'](_0x583543)||_0x2f9c21['push']({'key':_0x583543,'newValue':_0x267f86,'oldValue':null,'range':_0x248ab2}));}0x0!=_0x2f9c21['length']&&_0x924983['model']['enqueueChange'](_0x38ee28,_0x5daf12=>{const _0x1b0146=_0x1d2ed9();for(const {range:_0x498035,key:_0x329395,oldValue:_0x14a4b3,newValue:_0x308715}of _0x2f9c21)this['markAttributeChange'](_0x498035,_0x329395,_0x14a4b3,_0x308715,{'groupId':_0x1b0146});this['_reduceExistingSuggestions'](_0x5daf12,_0x2f9c21);});},{'priority':'lowest'}),_0x924983['model']['markers']['on']('update:suggestion',(_0x5bca4a,_0x400acb,_0x1c5b81)=>{if(null==_0x1c5b81){const {id:_0xf192f}=this['_splitMarkerName'](_0x400acb['name']),_0x5becc4=this['_suggestions']['get'](_0xf192f);_0x5becc4&&_0x5becc4['addMarkerName'](_0x400acb['name']);}}),_0x924983['model']['document']['on']('change:data',()=>{const _0x53195a=Array['from'](_0x924983['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1dbda5=>'suggestion'===this['_splitMarkerName'](_0x1dbda5['name'])['group']);if(0x0===_0x53195a['length'])return;_0x53195a['sort']((_0x208d5d,_0x3503e3)=>{const _0x2f6626=_0x208d5d['data']['oldRange'],_0x45d626=_0x3503e3['data']['oldRange'];return null===_0x2f6626&&null===_0x45d626?0x0:null===_0x2f6626&&null!==_0x45d626?-0x1:null!==_0x2f6626&&null===_0x45d626?0x1:_0x2f6626['start']['isBefore'](_0x45d626['start'])?-0x1:0x1;});const _0x1afcbd=new Set(),_0x5c9d91=new Set();for(const {name:_0x216756,data:_0x1eba8a}of _0x53195a){const {id:_0x15c4b0}=this['_splitMarkerName'](_0x216756);if(null===_0x1eba8a['oldRange']){const _0x24a1a3=this['_handleNewSuggestionMarker'](_0x216756);_0x5c9d91['add'](_0x24a1a3);}else{const _0x42d202=this['_suggestions']['get'](_0x15c4b0);null!==_0x1eba8a['newRange']||_0x42d202['isInContent']?(_0x1afcbd['add'](_0x42d202['head']),_0x5c9d91['add'](_0x42d202)):this['_removeSuggestion'](_0x42d202);}}_0x5c9d91['size']>0x0&&this['_refreshSuggestionsChain'](_0x5c9d91);for(const _0x1b785c of _0x1afcbd)this['fire']('suggestionChanged',_0x1b785c);}),_0x924983['model']['on']('applyOperation',(_0x46140d,_0x4389eb)=>{const _0x4bde20=_0x4389eb[0x0];if(!this['_suggestions']['size'])return;if(!_0x4bde20['isDocumentOperation'])return;if(_0x4bde20['batch']['isUndo']||!_0x4bde20['batch']['isLocal'])return;let _0x4db0f4,_0x274b4c;switch(_0x4bde20['type']){case'insert':_0x4db0f4=_0x924983['model']['createPositionAt'](_0x4bde20['position']),_0x274b4c=_0x4db0f4['getShiftedBy'](_0x4bde20['howMany']);break;case'split':_0x4db0f4=_0x924983['model']['createPositionAt'](_0x4bde20['splitPosition']),_0x274b4c=_0x924983['model']['createPositionAt'](_0x4bde20['moveTargetPosition']);break;case'move':_0x4db0f4=_0x924983['model']['createPositionAt'](_0x4bde20['targetPosition']),_0x274b4c=_0x4db0f4['getShiftedBy'](_0x4bde20['howMany']);break;default:return;}const _0x17caaa=_0x924983['model']['createRange'](_0x4db0f4,_0x274b4c);_0x924983['model']['change'](()=>{for(const {suggestion:_0x4e6509,meta:_0x288640}of this['_findSuggestions'](_0x17caaa)){if(_0x4e6509['isMultiRange'])continue;if('formatInline'==_0x4e6509['type'])continue;const _0x342afe=this['_getAttributeKey'](_0x4e6509);if(_0x342afe&&this['_isBlockAttribute'](_0x342afe)&&'split'!=_0x4bde20['type'])continue;const _0x449c7a=_0x4e6509['data']&&_0x4e6509['data']['multipleBlocks'];('formatBlock'!=_0x4e6509['type']||'split'==_0x4bde20['type']&&!_0x449c7a)&&(_0x288640['containsRangeInObject']||'insertion'==_0x4e6509['type']&&_0x288640['isOwn']||_0x4e6509['getFirstRange']()['containsRange'](_0x17caaa)&&this['_breakSuggestionMarker'](_0x4e6509,_0x4db0f4,_0x274b4c));}});},{'priority':'lowest'}),_0x924983['model']['on']('deleteContent',(_0xa6d745,_0x2adbb5)=>{const _0x28a52c=_0x2adbb5[0x0],_0x1545d0=_0x2adbb5[0x1];if(_0x1545d0&&_0x1545d0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x28a52c['isCollapsed'])return;const _0x2dbb7c=_0x924983['model']['schema'],{start:_0x1f67b3,end:_0xd84da}=_0x28a52c['getFirstRange'](),_0x25b7ef=_0x1f67b3['nodeAfter']&&_0x2dbb7c['isLimit'](_0x1f67b3['nodeAfter'])?null:_0x2dbb7c['getNearestSelectionRange'](_0x1f67b3,'forward'),_0x5bad6e=_0xd84da['nodeBefore']&&_0x2dbb7c['isLimit'](_0xd84da['nodeBefore'])?null:_0x2dbb7c['getNearestSelectionRange'](_0xd84da,'backward'),_0x79e49=_0x924983['model']['createRange'](_0x25b7ef?_0x25b7ef['start']:_0x1f67b3,_0x5bad6e?_0x5bad6e['end']:_0xd84da);_0x924983['model']['change'](_0x3cf7d4=>{this['markDeletion'](_0x79e49);const _0x8e40f4=_0x924983['model']['schema']['getNearestSelectionRange'](_0x79e49['start']);_0x28a52c['is']('documentSelection')?_0x3cf7d4['setSelection'](_0x8e40f4):_0x28a52c['setTo'](_0x8e40f4);}),_0xa6d745['stop']();},{'priority':_0x2c4957['normal']+0xa}),_0x924983['model']['on']('insertContent',(_0x3c9f08,_0x3429e3)=>{const _0x48afe3=_0x3429e3[_0x3429e3['length']-0x1];_0x48afe3&&_0x48afe3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x924983['model']['change'](()=>{let _0x4f5259=_0x924983['model']['insertContent'](_0x3429e3[0x0],_0x3429e3[0x1],_0x3429e3[0x2],{'forceDefaultExecution':!0x0});if(!_0x4f5259)return;_0x3c9f08['return']=_0x4f5259['clone']();const _0x57bf87=_0x4f5259['end']['nodeBefore'],_0x100630=_0x924983['model']['schema'];_0x57bf87&&_0x100630['isBlock'](_0x57bf87)&&!_0x100630['isObject'](_0x57bf87)&&(_0x4f5259=_0x924983['model']['createRange'](_0x4f5259['start'],_0x924983['model']['createPositionAt'](_0x57bf87,'end'))),this['markInsertion'](_0x4f5259);}),_0x3c9f08['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1dcca0=new $(_0x924983,this['_suggestions']);_0x924983['commands']['add']('acceptSuggestion',_0x1dcca0),this['enableCommand']('acceptSuggestion');const _0x58a157=new B(_0x924983,this['_suggestions']);_0x924983['commands']['add']('discardSuggestion',_0x58a157),this['enableCommand']('discardSuggestion'),_0x924983['commands']['add']('acceptAllSuggestions',new x(_0x924983,_0x1dcca0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x924983['commands']['add']('discardAllSuggestions',new x(_0x924983,_0x58a157,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x924983['commands']['add']('acceptSelectedSuggestions',new R(_0x924983,_0x1dcca0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x924983['commands']['add']('discardSelectedSuggestions',new R(_0x924983,_0x58a157,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x36a68b=_0x924983['plugins']['get']('CommentsRepository');this['listenTo'](_0x36a68b,'addComment',(_0x2ef727,{threadId:_0x464d0c})=>{const _0x211329=this['_suggestions']['get'](_0x464d0c);_0x211329&&_0x211329['commentThread']&&0x1===_0x211329['commentThread']['length']&&this['_updateSuggestionData'](_0x464d0c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x36a68b,'removeComment',(_0x19d3ef,{threadId:_0xdb6ad6})=>{const _0x11a955=this['_suggestions']['get'](_0xdb6ad6);_0x11a955&&_0x11a955['commentThread']&&!_0x11a955['commentThread']['length']&&this['_updateSuggestionData'](_0xdb6ad6,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1b11d7){if(this['_adapter'])throw new _0x58dd81('track-changes-adapter-already-set',this);this['_adapter']=_0x1b11d7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x363f8b=!0x1,toJSON:_0x89706c=!0x1}={}){const _0x1eab55=[];for(const _0x2bfecb of this['_suggestions']['values']())_0x363f8b&&!_0x2bfecb['isInContent']||_0x1eab55['push'](_0x2bfecb);return _0x89706c?_0x1eab55['map'](_0x4a3b59=>_0x4a3b59['toJSON']()):_0x1eab55;}['getSuggestion'](_0x29bc75){const _0x4f0c62=this['_suggestions']['get'](_0x29bc75);if(!_0x4f0c62)throw new _0x58dd81('track-changes-suggestion-not-found',this);return _0x4f0c62;}['hasSuggestion'](_0xacfab){return this['_suggestions']['has'](_0xacfab);}['addSuggestionData'](_0x3997ee){const {authorId:_0x20f717,id:_0x2485d4,attributes:_0x208dbb}=_0x3997ee,[_0x33b544,_0x29bd8a]=_0x3997ee['type']['split'](':'),_0x1d0b27=this['_suggestions']['get'](_0x2485d4)||this['_createSuggestion'](_0x33b544,_0x29bd8a,_0x2485d4,_0x20f717,_0x208dbb);if(this['_addThreadToSuggestion'](_0x1d0b27),this['_checkSuggestionCorrectness'](_0x1d0b27,_0x33b544,_0x29bd8a||null,_0x20f717),_0x1d0b27['createdAt']=_0x3997ee['createdAt'],_0x1d0b27['_isDataLoaded']=!0x0,_0x208dbb&&_0x208dbb['@external']){const _0x2d5b7d=_0x208dbb['@external'],_0x7243cd=this['_getExternalAuthor'](_0x2d5b7d['authorName']);_0x1d0b27['authoredAt']=_0x2d5b7d['createdAt'],_0x1d0b27['author']=_0x7243cd,_0x1d0b27['isExternal']=!0x0;}else _0x1d0b27['authoredAt']=_0x3997ee['createdAt'];switch(_0x3997ee['data']&&(_0x1d0b27['data']=_0x3997ee['data']),_0x3997ee['attributes']&&(_0x1d0b27['attributes']=_0x3997ee['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d0b27['_saved']=!0x0),this['_suggestionState']['get'](_0x1d0b27)){case'notReady':this['_suggestionState']['set'](_0x1d0b27,'dataReady');break;case'markerReady':_0x1d0b27['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d0b27])),this['_refreshSuggestionsChain'](new Set([_0x1d0b27])),this['_suggestionState']['set'](_0x1d0b27,'ready'),this['fire']('suggestionLoaded',_0x1d0b27)):this['_suggestionState']['set'](_0x1d0b27,'removed');}return _0x1d0b27;}['acceptSuggestion'](_0x3f09de){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30697b of _0x3f09de['getAllAdjacentSuggestions']())_0x30697b['accept']();});});}['discardSuggestion'](_0x55098b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x47915c of _0x55098b['getAllAdjacentSuggestions']())_0x47915c['discard']();});});}['enableCommand'](_0x1a0284,_0x510ff3){const _0x31837a=this['editor']['commands']['get'](_0x1a0284);if(!_0x31837a)throw new _0x58dd81('track-changes-command-not-found',this,{'commandName':_0x1a0284});if(this['_enabledCommands']['has'](_0x31837a))throw new _0x58dd81('track-changes-enable-command-twice',this,{'commandName':_0x1a0284});this['_enabledCommands']['add'](_0x31837a),_0x510ff3&&_0x31837a['on']('execute',(_0x119863,_0x15e24d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x15e24d['length']>0x0&&_0x15e24d[_0x15e24d['length']-0x1]&&_0x15e24d[_0x15e24d['length']-0x1]['forceDefaultExecution']?_0x15e24d['pop']():(_0x119863['return']=_0x510ff3((..._0x2dd67f)=>_0x31837a['execute'](..._0x2dd67f,{'forceDefaultExecution':!0x0}),..._0x15e24d),_0x119863['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x135e19){let _0x2ae5fe,_0x4841b3;const _0x31fd62=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2ae5fe=_0x135e19();}catch(_0x4cc5d9){_0x4841b3=_0x4cc5d9;}return _0x31fd62||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4841b3&&_0x58dd81['rethrowUnexpectedError'](_0x4841b3,this),_0x2ae5fe;}['markInsertion'](_0x514c5d,_0x4c6612=null,_0x3e886a={}){if(_0x514c5d['isCollapsed'])return null;const _0x28bcdb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x333b08,meta:_0x2a5e71}of this['_findSuggestions'](_0x514c5d,'insertion'))if(_0x2a5e71['isOwn']){if(!_0x2a5e71['isNextTo']){if(_0x2a5e71['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x333b08,_0x3e886a))continue;return _0x333b08;}if(Lt(_0x333b08,_0x3e886a))return _0x333b08;this['_breakSuggestionMarker'](_0x333b08,_0x514c5d['start'],_0x514c5d['end']);break;}if(_0x4c6612==_0x333b08['subType']&&Lt(_0x333b08,_0x3e886a)){const _0x3e9c20=_0x333b08['getFirstRange']();return _0x3e9c20['start']['isEqual'](_0x514c5d['end'])?this['_setSuggestionRange'](_0x333b08,this['_model']['createRange'](_0x514c5d['start'],_0x3e9c20['end'])):this['_setSuggestionRange'](_0x333b08,this['_model']['createRange'](_0x3e9c20['start'],_0x514c5d['end'])),_0x333b08;}}const _0x49d950=_0x1d2ed9(),_0x214c0f=_0x28bcdb['id'],_0x2f0da1=_0x4c6612?'insertion:'+_0x4c6612:'insertion',_0x102f0b=this['_setSuggestionData']({'id':_0x49d950,'type':_0x2f0da1,'createdAt':new Date(),'authorId':_0x214c0f,'attributes':_0x3e886a});return this['_addSuggestionMarker'](_0x2f0da1,_0x49d950,_0x214c0f,_0x514c5d),_0x102f0b;}['markMultiRangeInsertion'](_0x568109,_0x46c1c8='multi',_0x5f337b={}){const _0x2ab786=this['editor']['plugins']['get']('Users')['me'],_0x31c6aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x46c1c8,'join');for(const _0x38e595 of this['getSuggestions']())if(_0x38e595['author']['id']==_0x2ab786['id']&&'insertion'==_0x38e595['type']&&_0x38e595['subType']==_0x46c1c8&&Lt(_0x38e595,_0x5f337b)&&(_0x31c6aa(_0x38e595['getRanges'](),_0x568109)||_0x31c6aa(_0x568109,_0x38e595['getRanges']()))){for(const _0x4da7e2 of _0x568109)_0x38e595['addRange'](_0x4da7e2);return _0x38e595;}for(const {suggestion:_0x127ae0,meta:_0x3bea0e}of this['_findSuggestions'](_0x568109,'insertion')){if(!_0x3bea0e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3bea0e['containsRangeInObject'])continue;if(!Lt(_0x127ae0,_0x5f337b))continue;let _0x3ffc94=!0x0;for(const _0x58af38 of _0x127ae0['getRanges']())for(const _0x3749e of _0x568109)if(!_0x58af38['containsRange'](_0x3749e)){_0x3ffc94=!0x1;break;}if(_0x3ffc94)return _0x127ae0;}const _0x5997fd=_0x1d2ed9(),_0x5e7a4f=_0x2ab786['id'],_0x54b19e='insertion:'+_0x46c1c8,_0x52d9f7=this['_setSuggestionData']({'id':_0x5997fd,'type':_0x54b19e,'createdAt':new Date(),'authorId':_0x5e7a4f,'attributes':_0x5f337b});for(const _0x4f5b63 of _0x568109)this['_addSuggestionMarker'](_0x54b19e,_0x5997fd,_0x5e7a4f,_0x4f5b63,u['getMultiRangeId']());return _0x52d9f7;}['markInlineFormat'](_0xcfc745,_0x11aea3,_0x35ddac=null,_0x2f69a2={}){if(_0x35ddac=_0x35ddac||Vt(_0x11aea3),_0xcfc745['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x563773=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x35ddac,'accept');return this['forceDefaultExecution'](()=>_0x563773([_0xcfc745],_0x11aea3,_0x2f69a2)),null;}const _0x850a46=this['editor']['plugins']['get']('Users')['me'],_0x302593=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x47c30f,meta:_0x2886b7}of this['_findSuggestions'](_0xcfc745,'insertion'))_0x2886b7['isOwn']&&!_0x2886b7['isInsideObject']&&_0x302593['push'](..._0x47c30f['getRanges']());}const _0x2e85cc=function(_0x3d1e3e,_0x23f141){const _0x1cec14=[];for(const _0x209b5e of _0x23f141){const _0x53b654=_0x3d1e3e['getIntersection'](_0x209b5e);_0x53b654&&_0x1cec14['push'](_0x53b654);}return _0x1cec14;}(_0xcfc745,_0x302593),_0x44806b=function(_0x376337,_0x97bf1b){const _0x18f23d=[_0x376337];for(const _0xea08e9 of _0x97bf1b){let _0x1af02f=0x0;for(;_0x1af02f<_0x18f23d['length'];){const _0x6825bd=_0x18f23d[_0x1af02f]['getDifference'](_0xea08e9);_0x18f23d['splice'](_0x1af02f,0x1,..._0x6825bd),_0x1af02f+=_0x6825bd['length'];}}return _0x18f23d;}(_0xcfc745,_0x302593);_0x2e85cc['length']&&this['_model']['change'](()=>{for(const _0x5f1a6b of _0x2e85cc){const _0x45df3e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x35ddac,'accept');this['forceDefaultExecution'](()=>_0x45df3e([_0x5f1a6b],_0x11aea3,_0x2f69a2));}});for(const _0x4291ac of _0x44806b){let _0x4f612b=null,_0x4a7c13=_0x4291ac['start'],_0x1c065e=_0x4291ac['end'];for(const {suggestion:_0x2695af,meta:_0x2db7c5}of this['_findSuggestions'](_0x4291ac,'formatInline')){if(!_0x2db7c5['isOwn'])continue;if(_0x2695af['subType']!=_0x35ddac)continue;if(!Lt(_0x2695af,_0x2f69a2))continue;const _0x2dac70=_0x2695af['getFirstRange']();if(_0x2dac70['containsRange'](_0x4291ac,!0x0))return null;_0x4a7c13=_0x4a7c13['isBefore'](_0x2dac70['start'])?_0x4a7c13:_0x2dac70['start'],_0x1c065e=_0x1c065e['isAfter'](_0x2dac70['end'])?_0x1c065e:_0x2dac70['end'],_0x4f612b?_0x2dac70['start']['isBefore'](_0x4f612b['getFirstRange']()['start'])?(_0x4f612b['removeMarkers'](),_0x4f612b=_0x2695af):_0x2695af['removeMarkers']():_0x4f612b=_0x2695af;}const _0x332cbd=this['_model']['createRange'](_0x4a7c13,_0x1c065e);if(_0x4f612b)this['_setSuggestionRange'](_0x4f612b,_0x332cbd);else{const _0x654138=_0x1d2ed9(),_0x5ea4f3=_0x850a46['id'];this['_setSuggestionData']({'id':_0x654138,'type':'formatInline:'+_0x35ddac,'data':_0x11aea3,'createdAt':new Date(),'authorId':_0x5ea4f3,'attributes':_0x2f69a2}),this['_addSuggestionMarker']('formatInline:'+_0x35ddac,_0x654138,_0x5ea4f3,_0x332cbd);}}return null;}['markBlockFormat'](_0x235cd8,_0x3bffc9,_0x54145a=[],_0x1705c0=null,_0x189da5={}){_0x3bffc9['formatGroupId']||(_0x3bffc9['formatGroupId']=_0x3bffc9['commandName']),_0x3bffc9['multipleBlocks']=_0x235cd8['is']('range'),_0x1705c0=_0x1705c0||Vt(_0x3bffc9);const _0x1f666f=_0x54145a['map'](_0x470490=>Gt(_0x470490,this['_model'])),_0x508eb2=_0x235cd8['is']('range')?_0x235cd8:Gt(_0x235cd8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5b022e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1705c0,'accept');return this['forceDefaultExecution'](()=>_0x5b022e([_0x508eb2],_0x3bffc9,_0x189da5)),null;}_0x1f666f['push'](_0x508eb2);let _0x53271d=!0x0;for(const _0x5c302b of _0x1f666f)if(!this['_rangeIsInLocalUserInsertion'](_0x5c302b)){_0x53271d=!0x1;break;}if(_0x53271d&&'always'!==this['_trackFormatChanges']){const _0x45ae86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1705c0,'accept');return this['forceDefaultExecution'](()=>_0x45ae86([_0x508eb2],_0x3bffc9,_0x189da5)),null;}let _0x2fb58f=null,_0x286455=_0x508eb2['start'],_0x5118f6=_0x508eb2['end'];for(const {suggestion:_0x3cd494,meta:_0x3c5d66}of this['_findSuggestions'](_0x508eb2,'formatBlock')){if(!_0x3c5d66['isOwn'])continue;if(_0x3c5d66['isNextTo']||_0x3c5d66['containsRangeInObject']||_0x3c5d66['isInsideObject'])continue;if(_0x3cd494['data']['formatGroupId']!=_0x3bffc9['formatGroupId'])continue;if(!Lt(_0x3cd494,_0x189da5))continue;const _0x4306af=_0x3cd494['getFirstRange']();if(_0x3cd494['subType']==_0x1705c0){if(_0x4306af['containsRange'](_0x508eb2,!0x0))return null;_0x286455=_0x286455['isBefore'](_0x4306af['start'])?_0x286455:_0x4306af['start'],_0x5118f6=_0x5118f6['isAfter'](_0x4306af['end'])?_0x5118f6:_0x4306af['end'],_0x2fb58f?_0x4306af['start']['isBefore'](_0x2fb58f['getFirstRange']()['start'])?(_0x2fb58f['removeMarkers'](),_0x2fb58f=_0x3cd494):_0x3cd494['removeMarkers']():_0x2fb58f=_0x3cd494;}else{const _0x77273b=_0x508eb2['getIntersection'](_0x4306af);this['_cutOutSuggestionMarker'](_0x3cd494,_0x77273b);}}const _0x4bb9f2=this['editor']['plugins']['get']('Users')['me'],_0x113fd3=_0x1d2ed9(),_0x13e438=_0x4bb9f2['id'];if(_0x2fb58f)return this['_setSuggestionRange'](_0x2fb58f,this['_model']['createRange'](_0x286455,_0x5118f6)),_0x2fb58f;{const _0x102de2=this['_setSuggestionData']({'id':_0x113fd3,'type':'formatBlock:'+_0x1705c0,'data':_0x3bffc9,'createdAt':new Date(),'authorId':_0x13e438,'attributes':_0x189da5});return this['_addSuggestionMarker']('formatBlock:'+_0x1705c0,_0x113fd3,_0x13e438,this['_model']['createRange'](_0x286455,_0x5118f6)),_0x102de2;}}['markMultiRangeBlockFormat'](_0xb7d3d8,_0x525159,_0x5bd697=[],_0x11c199=null,_0x31a662={}){_0x525159['formatGroupId']||(_0x525159['formatGroupId']=_0x525159['commandName']);const _0x52dea6=_0xb7d3d8[0x0];_0x525159['multipleBlocks']=_0x52dea6['is']('range'),_0x11c199=_0x11c199||Vt(_0x525159);const _0x23d988=_0x5bd697['map'](_0x458732=>Gt(_0x458732,this['_model'])),_0x59fa0d=_0x52dea6['is']('range')?_0xb7d3d8:_0xb7d3d8['map'](_0x23a930=>Gt(_0x23a930,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5dd879=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c199,'accept');return this['forceDefaultExecution'](()=>_0x5dd879(_0x59fa0d,_0x525159,_0x31a662)),null;}_0x23d988['push'](..._0x59fa0d);let _0x140f77=!0x0;for(const _0x21ec1d of _0x23d988)if(!this['_rangeIsInLocalUserInsertion'](_0x21ec1d)){_0x140f77=!0x1;break;}if(_0x140f77&&'always'!==this['_trackFormatChanges']){const _0x38da60=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c199,'accept');return this['forceDefaultExecution'](()=>_0x38da60(_0x59fa0d,_0x525159,_0x31a662)),null;}const _0x55eeec=this['editor']['plugins']['get']('Users')['me'];for(const _0x19f3ac of this['getSuggestions']()){if(_0x19f3ac['author']['id']!=_0x55eeec['id'])continue;if('formatBlock'!=_0x19f3ac['type']||_0x19f3ac['data']['formatGroupId']!=_0x525159['formatGroupId'])continue;if(!Lt(_0x19f3ac,_0x31a662))continue;const _0x4ea098=_0x19f3ac['subType']==_0x11c199;for(let _0x4a6ecc=0x0;_0x4a6ecc<_0x59fa0d['length'];_0x4a6ecc++){const _0x53aaeb=_0x59fa0d[_0x4a6ecc];for(const _0x42ae52 of _0x19f3ac['getMarkers']()){const _0x47855b=_0x42ae52['getRange']();if(_0x53aaeb['isEqual'](_0x47855b)){_0x4ea098?(_0x59fa0d['splice'](_0x4a6ecc,0x1),_0x4a6ecc--):_0x19f3ac['removeMarker'](_0x42ae52['name']);break;}}}}if(0x0==_0x59fa0d['length'])return null;const _0x2586fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c199,'join');for(const _0x567821 of this['getSuggestions']())if(_0x567821['author']['id']==_0x55eeec['id']&&'formatBlock'==_0x567821['type']&&_0x567821['data']['formatGroupId']==_0x525159['formatGroupId']&&_0x567821['subType']==_0x11c199&&Lt(_0x567821,_0x31a662)&&(_0x2586fa(_0x567821['getRanges'](),_0x59fa0d)||_0x2586fa(_0x59fa0d,_0x567821['getRanges']()))){for(const _0x5a30db of _0x59fa0d)_0x567821['addRange'](_0x5a30db);return _0x567821;}const _0x1128bb=_0x1d2ed9(),_0x368eb2=_0x55eeec['id'],_0x957f9e='formatBlock:'+_0x11c199,_0x1eca77=this['_setSuggestionData']({'id':_0x1128bb,'type':_0x957f9e,'data':_0x525159,'createdAt':new Date(),'authorId':_0x368eb2,'attributes':_0x31a662});for(const _0x53800b of _0x59fa0d)this['_addSuggestionMarker'](_0x957f9e,_0x1128bb,_0x368eb2,_0x53800b,u['getMultiRangeId']());return _0x1eca77;}['markDeletion'](_0x451bdd,_0x24121b=null,_0x23bda7={}){if(_0x451bdd['isCollapsed'])return null;const _0x3c9fb7=this['editor']['plugins']['get']('Users')['me'],_0x58cfa7=new _0x248c8e(_0x451bdd['start'],_0x451bdd['end']);for(const {suggestion:_0x22ffe3,meta:_0x50a9c6}of this['_findSuggestions'](_0x58cfa7,'insertion'))if(_0x50a9c6['isOwn']&&!_0x50a9c6['isNextTo']){if(_0x22ffe3['isMultiRange']){const _0x21097b=_0x22ffe3['getRanges']()['filter'](_0x5ee459=>'$graveyard'!=_0x5ee459['root']['rootName']);_0x21097b['every'](_0x48fc6a=>_0x58cfa7['containsRange'](_0x48fc6a,!0x0))&&_0x22ffe3['discard']();if(_0x21097b['some'](_0x4ac48d=>_0x4ac48d['containsRange'](_0x58cfa7,!0x0))){const _0x17d5f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24121b,'accept');return this['forceDefaultExecution'](()=>_0x17d5f0([_0x58cfa7],null,_0x23bda7)),null;}}else{const _0x4c172c=_0x58cfa7['getIntersection'](_0x22ffe3['getFirstRange']());null!==_0x4c172c&&_0x22ffe3['_onDiscard']([_0x4c172c],null,_0x23bda7);}}if(_0x58cfa7['detach'](),_0x58cfa7['isCollapsed']||'$graveyard'==_0x58cfa7['root']['rootName'])return null;let _0x5a8d7f=null,_0x51db53=_0x58cfa7['start'],_0x36d28e=_0x58cfa7['end'];const _0x586f00=this['_findSuggestions'](_0x58cfa7,'deletion');for(const {suggestion:_0x13c1e8,meta:_0x468306}of _0x586f00){const _0x28d40c=this['_model']['createRange'](_0x51db53,_0x36d28e);if(_0x468306['isOwn']&&(this['_mergeNestedSuggestions']||!_0x468306['containsRangeInObject']&&!_0x468306['isInsideObject'])){if(_0x13c1e8['isMultiRange']){if(!Lt(_0x13c1e8,_0x23bda7))continue;let _0x2c315c=!0x0;for(const _0x4a7c34 of _0x13c1e8['getRanges']()){if(_0x4a7c34['containsRange'](_0x28d40c,!0x0))return _0x13c1e8;_0x28d40c['containsRange'](_0x4a7c34)||(_0x2c315c=!0x1);}_0x2c315c&&_0x13c1e8['discard']();}else{const _0x7e60b1=_0x13c1e8['getFirstRange']();if(_0x7e60b1['containsRange'](_0x28d40c,!0x0))return _0x13c1e8;if(!Lt(_0x13c1e8,_0x23bda7)){_0x28d40c['containsRange'](_0x7e60b1)?_0x13c1e8['removeMarkers']():_0x7e60b1['containsPosition'](_0x51db53)?_0x51db53=_0x7e60b1['end']:_0x7e60b1['containsPosition'](_0x36d28e)&&(_0x36d28e=_0x7e60b1['start']);continue;}_0x51db53=_0x51db53['isBefore'](_0x7e60b1['start'])?_0x51db53:_0x7e60b1['start'],_0x36d28e=_0x36d28e['isAfter'](_0x7e60b1['end'])?_0x36d28e:_0x7e60b1['end'],_0x23bda7=Object['assign']({},_0x13c1e8['attributes']),_0x5a8d7f?_0x7e60b1['start']['isBefore'](_0x5a8d7f['getFirstRange']()['start'])?(_0x5a8d7f['removeMarkers'](),_0x5a8d7f=_0x13c1e8):_0x13c1e8['removeMarkers']():_0x5a8d7f=_0x13c1e8;}}}if(_0x5a8d7f)return this['_setSuggestionRange'](_0x5a8d7f,this['_model']['createRange'](_0x51db53,_0x36d28e)),_0x5a8d7f;{const _0x431d0d=_0x1d2ed9(),_0x4e8c63=this['_model']['createRange'](_0x51db53,_0x36d28e),_0x4470f0=_0x3c9fb7['id'],_0x147d77=_0x24121b?'deletion:'+_0x24121b:'deletion',_0x1c55af=this['_setSuggestionData']({'id':_0x431d0d,'type':_0x147d77,'createdAt':new Date(),'authorId':_0x4470f0,'attributes':_0x23bda7});return this['_addSuggestionMarker'](_0x147d77,_0x431d0d,_0x4470f0,_0x4e8c63),_0x1c55af;}}['markMultiRangeDeletion'](_0xfeba20,_0x560d3d='multi',_0xb8cd2d={}){const _0x200077=this['editor']['plugins']['get']('Users')['me'],_0x4a778b=_0xfeba20['map'](_0x1a784a=>new _0x248c8e(_0x1a784a['start'],_0x1a784a['end'])),_0x1490f2=new Set();for(const {suggestion:_0x5be17b,meta:_0x1e90e1}of this['_findSuggestions'](_0x4a778b,'insertion'))_0x1e90e1['isOwn']&&!_0x1e90e1['isNextTo']&&_0x1490f2['add'](_0x5be17b);for(const _0x20d0d4 of _0x1490f2)if(_0x20d0d4['isMultiRange']){const _0x1cfea1=_0x20d0d4['getRanges']();(!_0x20d0d4['attributes']||!_0x20d0d4['attributes']['skipNestingCheck'])&&(_0x1cfea1['every'](_0x33e7ce=>_0x4a778b['some'](_0x430c5d=>_0x430c5d['containsRange'](_0x33e7ce,!0x0)))&&_0x20d0d4['discard']());if(_0x4a778b['every'](_0x5cb9d2=>_0x1cfea1['some'](_0xf7d60f=>_0xf7d60f['containsRange'](_0x5cb9d2,!0x0)))){const _0x42588f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x560d3d,'accept');return this['forceDefaultExecution'](()=>_0x42588f(_0xfeba20,null,_0xb8cd2d)),null;}}else{const _0x27170=_0x20d0d4['getFirstRange']();_0x4a778b['some'](_0x10badc=>_0x10badc['containsRange'](_0x27170,!0x0))&&_0x20d0d4['discard']();if(_0x4a778b['every'](_0x4adba3=>_0x27170['containsRange'](_0x4adba3,!0x0))){const _0x310505=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x560d3d,'accept');return this['forceDefaultExecution'](()=>_0x310505(_0x4a778b,null,_0xb8cd2d)),null;}}const _0xa13420=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x560d3d,'join');let _0x57c3ab=null;for(const _0x329eb3 of this['getSuggestions']())if(_0x329eb3['author']['id']==_0x200077['id']&&_0x329eb3['isInContent']&&'deletion'==_0x329eb3['type']&&_0x329eb3['subType']==_0x560d3d&&Lt(_0x329eb3,_0xb8cd2d)&&(_0xa13420(_0x329eb3['getRanges'](),_0x4a778b)||_0xa13420(_0x4a778b,_0x329eb3['getRanges']()))){if(_0x57c3ab){if(_0x329eb3['commentThread']&&_0x329eb3['commentThread']['length'])continue;for(const _0x13f18a of _0x329eb3['getRanges']())_0x57c3ab['isIntersectingWithRange'](_0x13f18a)||_0x57c3ab['addRange'](_0x13f18a);_0x329eb3['removeMarkers']();}else{_0x57c3ab=_0x329eb3;for(const _0x421f4b of _0x4a778b)_0x329eb3['isIntersectingWithRange'](_0x421f4b)||_0x329eb3['addRange'](_0x421f4b);}}if(_0x57c3ab)return _0x57c3ab;_0x1490f2['clear']();for(const {suggestion:_0x1c8bf2,meta:_0x150042}of this['_findSuggestions'](_0x4a778b,'deletion'))_0x150042['isOwn']&&(this['_mergeNestedSuggestions']||!_0x150042['containsRangeInObject']&&!_0x150042['isInsideObject'])&&Lt(_0x1c8bf2,_0xb8cd2d)&&_0x1490f2['add'](_0x1c8bf2);for(const _0x295175 of _0x1490f2){const _0x4185f8=_0x295175['getRanges']();if(!_0xb8cd2d||!_0xb8cd2d['skipNestingCheck']){if(_0x4a778b['every'](_0x5233e2=>_0x4185f8['some'](_0x4e312d=>_0x4e312d['containsRange'](_0x5233e2,!0x0))))return _0x295175;}(!_0x295175['attributes']||!_0x295175['attributes']['skipNestingCheck'])&&(_0x4185f8['every'](_0x17152d=>_0x4a778b['some'](_0x3c0fe3=>_0x3c0fe3['containsRange'](_0x17152d,!0x0)))&&_0x295175['discard']());}const _0x14d3ed=_0x1d2ed9(),_0x38a54e=_0x200077['id'],_0x437369='deletion:'+_0x560d3d,_0x3bb60c=this['_setSuggestionData']({'id':_0x14d3ed,'type':_0x437369,'createdAt':new Date(),'authorId':_0x38a54e,'attributes':_0xb8cd2d});for(const _0x4536a2 of _0x4a778b)_0x4536a2['detach'](),_0x4536a2['isCollapsed']||'$graveyard'==_0x4536a2['root']['rootName']||this['_addSuggestionMarker'](_0x437369,_0x14d3ed,_0x38a54e,_0x4536a2,u['getMultiRangeId']());return _0x3bb60c;}['markAttributeChange'](_0x6db61,_0x2a3eb1,_0x147cc0,_0x267696,_0x173511){if(_0x6db61['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ad282=this['editor']['plugins']['get']('Users')['me']['id'],_0x43fb91=Array['from'](this['_suggestions']['values']())['filter'](_0x162496=>'attribute'==_0x162496['type']&&_0x162496['data']['key']==_0x2a3eb1&&_0x162496['isIntersectingWithRange'](_0x6db61));if('default'===this['_trackFormatChanges']){const _0x5915b0=this['_findSuggestions'](_0x6db61,'insertion')['filter'](({meta:_0x14ff26})=>_0x14ff26['isOwn']&&!_0x14ff26['isInsideObject']&&!_0x14ff26['isNextTo'])['map'](({suggestion:_0x461d59})=>_0x461d59);_0x43fb91['unshift'](..._0x5915b0);}const _0x6c219b=new Map([[_0x6db61,_0x147cc0]]);for(const _0x1b90d0 of _0x43fb91){const _0x473e32='attribute'==_0x1b90d0['type']?_0x1b90d0['data']['oldValue']:void 0x0,_0x283435=_0x1b90d0['getFirstRange'](),_0x1dd8d8=Array['from'](_0x6c219b['keys']())['find'](_0x405522=>_0x405522['isIntersecting'](_0x283435));if(!_0x1dd8d8)continue;const _0x12562d=_0x1dd8d8['getDifference'](_0x283435);this['_isBlockAttribute'](_0x2a3eb1)&&'insertion'==_0x1b90d0['type']&&0x0!=_0x12562d['length']||(_0x6c219b['delete'](_0x1dd8d8),_0x12562d['forEach'](_0x61b44e=>{_0x6c219b['set'](_0x61b44e,_0x147cc0);}),'insertion'!=_0x1b90d0['type']&&_0x473e32!=_0x267696&&_0x6c219b['set'](_0x1dd8d8['getIntersection'](_0x283435),_0x473e32));}const _0x59858b=[];for(const [_0x312174,_0x3178a8]of _0x6c219b){const _0x3b17d2=_0x1d2ed9(),_0x499c03={'key':_0x2a3eb1,'oldValue':_0x3178a8,'newValue':_0x267696};_0x2a3eb1['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':_0x2a3eb1});const _0x322368=('attribute:'+(_0x2a3eb1+'|'+Vt({'newValue':_0x267696})))['substring'](0x0,0x3c),_0x279b53=this['_setSuggestionData']({'id':_0x3b17d2,'type':_0x322368,'data':_0x499c03,'createdAt':new Date(),'authorId':_0x5ad282,'attributes':_0x173511});_0x59858b['push'](_0x279b53),this['_addSuggestionMarker'](_0x322368,_0x3b17d2,_0x5ad282,_0x312174);}return _0x59858b;}['enableDefaultAttributesIntegration'](_0x2f55e2){this['enableCommand'](_0x2f55e2,(_0x48c906,..._0x2aa562)=>{this['_recordAttributeChanges'](()=>{_0x48c906(..._0x2aa562);});});}['registerBlockAttribute'](_0x13f481){this['_blockAttributeKeys']['add'](_0x13f481);}['registerInlineAttribute'](_0x5b869b){this['_inlineAttributeKeys']['add'](_0x5b869b);}['_getAttributeKey'](_0x2554bf){return'attribute'==_0x2554bf['type']?_0x2554bf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4b7a68,_0x5ee7f4){const _0xab5ae=_0x4b7a68['getFirstMarker']();this['_model']['change'](_0x1e3838=>{_0x1e3838['updateMarker'](_0xab5ae,{'range':_0x5ee7f4});});}['_addThreadToSuggestion'](_0x50b13b){const _0x3dabfb=_0x50b13b['id'],_0x598bf3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3dabfb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x598bf3,'threadId':_0x3dabfb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xfa051f=this['_commentsRepository']['getCommentThread'](_0x3dabfb);_0xfa051f['unbind']('isRemovable'),_0xfa051f['isRemovable']=!0x1,_0x50b13b['commentThread']=_0xfa051f;}['_checkSuggestionCorrectness'](_0xb2de0e,_0x4887f,_0x449e2a,_0x274505){if(_0xb2de0e['type']!=_0x4887f||_0xb2de0e['subType']!=_0x449e2a||_0xb2de0e['creator']['id']!=_0x274505)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x58dd81('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c8c8e,_0x1d80c7){const _0x2b4fe3=_0x1c8c8e['getFirstRange']();if(_0x1d80c7['isEqual'](_0x2b4fe3))_0x1c8c8e['removeMarkers']();else{if(_0x2b4fe3['containsRange'](_0x1d80c7)){const _0x4fa31d=this['_model']['createPositionAt'](_0x1d80c7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c8c8e,this['_model']['createRange'](_0x2b4fe3['start'],_0x4fa31d));const _0x1389c1=_0x1d2ed9(),_0xc4f215=_0x1c8c8e['creator']['id'],_0x4dbc13=_0x1c8c8e['type']+':'+_0x1c8c8e['subType'];this['_setSuggestionData']({'id':_0x1389c1,'type':_0x4dbc13,'createdAt':new Date(),'authorId':_0xc4f215,'data':_0x1c8c8e['data'],'attributes':_0x1c8c8e['attributes']});const _0x2b64a7=this['_model']['createPositionAt'](_0x1d80c7['end']['parent'],'after'),_0x428578=this['_model']['createRange'](_0x2b64a7,_0x2b4fe3['end']);this['_addSuggestionMarker'](_0x4dbc13,_0x1389c1,_0xc4f215,_0x428578);}else{if(_0x2b4fe3['containsPosition'](_0x1d80c7['start'])){const _0x9d7b22=this['_model']['createPositionAt'](_0x1d80c7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c8c8e,this['_model']['createRange'](_0x2b4fe3['start'],_0x9d7b22));}else{const _0x10f0fb=this['_model']['createPositionAt'](_0x1d80c7['end']['parent'],'after');this['_setSuggestionRange'](_0x1c8c8e,this['_model']['createRange'](_0x10f0fb,_0x2b4fe3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3c555b){for(const {suggestion:_0x296554,meta:_0x4bd362}of this['_findSuggestions'](_0x3c555b,'insertion')){if(!_0x4bd362['isOwn'])continue;const _0x5f2983=_0x296554['getRanges']();for(const _0x333b5b of _0x5f2983)if(!_0x3c555b['getDifference'](_0x333b5b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5cec9d){const _0x54a78d=this['editor']['plugins']['get']('Users')['getUser'](_0x5cec9d);if(!_0x54a78d)throw new _0x58dd81('track-changes-user-not-found',this);return _0x54a78d;}['_getExternalAuthor'](_0x709aed){const _0x5c322e=this['editor']['plugins']['get']('Users'),_0x12ae20=_0x5a58d5('external:'+_0x709aed),_0x2fb8d3=_0x5c322e['getUser'](_0x12ae20);return _0x2fb8d3||_0x5c322e['addUser']({'id':_0x12ae20,'name':_0x709aed});}['_createSuggestion'](_0x22ab0c,_0x2d2ac8,_0x1d875f,_0x2b3ef0,_0x4fdf9f){const _0x42f66a=this['_getAuthorFromId'](_0x2b3ef0),_0xbb727b=this['_suggestionFactory']['buildSuggestion'](_0x22ab0c,_0x2d2ac8,_0x1d875f,_0x42f66a,_0x4fdf9f,_0x19c768=>{this['_updateSuggestionData'](_0x1d875f,{'attributes':_0x19c768});const _0x5a2b2e=this['getSuggestion'](_0x1d875f);this['_joinWithAdjacentSuggestions'](new Set([_0x5a2b2e])),this['_refreshSuggestionsChain'](new Set([_0x5a2b2e]));});return this['listenTo'](_0xbb727b,'accept',()=>{this['_updateSuggestionData'](_0x1d875f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xbb727b,'discard',()=>{this['_updateSuggestionData'](_0x1d875f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d875f,_0xbb727b),this['_suggestionState']['set'](_0xbb727b,'notReady'),_0xbb727b;}['_splitMarkerName'](_0x110805){const _0x39d7f3=_0x110805['split'](':');return{'group':_0x39d7f3[0x0],'type':_0x39d7f3[0x1],'subType':_0x39d7f3['length']>=0x5?_0x39d7f3[0x2]:null,'id':_0x39d7f3['length']<0x5?_0x39d7f3[0x2]:_0x39d7f3[0x3],'authorId':_0x39d7f3['length']<0x5?_0x39d7f3[0x3]:_0x39d7f3[0x4],'markerCount':0x6==_0x39d7f3['length']?_0x39d7f3[0x5]:null};}['_breakSuggestionMarker'](_0x4b9d9c,_0x21b094,_0x32230f){const _0x10feeb=_0x4b9d9c['getFirstRange'](),_0x4bc6c8=_0x10feeb['start'],_0x3dbce7=_0x10feeb['end'];this['_setSuggestionRange'](_0x4b9d9c,this['_model']['createRange'](_0x4bc6c8,_0x21b094));const _0x1deb04=_0x1d2ed9(),_0x388a6e=_0x4b9d9c['creator']['id'],_0x2673cf=_0x4b9d9c['type']+(_0x4b9d9c['subType']?':'+_0x4b9d9c['subType']:'');this['_setSuggestionData']({'id':_0x1deb04,'type':_0x2673cf,'createdAt':new Date(),'authorId':_0x388a6e,'originalSuggestionId':_0x4b9d9c['id'],'attributes':_0x4b9d9c['attributes'],'data':_0x4b9d9c['data']});const _0x5af48f=this['_getAttributeKey'](_0x4b9d9c);('formatBlock'==_0x4b9d9c['type']||_0x5af48f&&this['_isBlockAttribute'](_0x5af48f))&&(_0x32230f=this['_model']['createPositionBefore'](_0x32230f['parent'])),this['_addSuggestionMarker'](_0x2673cf,_0x1deb04,_0x388a6e,this['_model']['createRange'](_0x32230f,_0x3dbce7));}['_findSuggestions'](_0x27d60a,_0x11fdc0=null){const _0x1dd5b9=[],_0x4a3f1e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27d60a)||(_0x27d60a=[_0x27d60a]);for(const _0x57439e of this['getSuggestions']()){if(!_0x57439e['isInContent'])continue;if(_0x11fdc0&&_0x57439e['type']!=_0x11fdc0)continue;let _0x16b0af=!0x1;for(const _0x4dd22c of _0x57439e['getRanges']()){for(const _0x187751 of _0x27d60a){const _0x52ad36=_0x187751['start']['isEqual'](_0x4dd22c['end'])||_0x187751['end']['isEqual'](_0x4dd22c['start']);if(_0x52ad36||_0x187751['getIntersection'](_0x4dd22c)){const _0x49ee3d=_0x187751['containsRange'](_0x4dd22c)&&Rt(this['_model']['schema'],_0x4dd22c['start'],_0x187751),_0x5a7175=_0x4dd22c['containsRange'](_0x187751)&&Rt(this['_model']['schema'],_0x187751['start'],_0x4dd22c);_0x1dd5b9['push']({'suggestion':_0x57439e,'meta':{'isOwn':_0x4a3f1e==_0x57439e['author'],'isNextTo':_0x52ad36,'isInsideObject':_0x49ee3d,'containsRangeInObject':_0x5a7175}}),_0x16b0af=!0x0;break;}}if(_0x16b0af)break;}}return _0x1dd5b9;}['_addSuggestionMarker'](_0x38a190,_0x1ef8dd,_0x3cb072,_0x4c9a57,_0x2e5389){this['_model']['change'](_0x70818e=>{let _0x264f97='suggestion:'+_0x38a190+':'+_0x1ef8dd+':'+_0x3cb072;_0x2e5389&&(_0x264f97=_0x264f97+':'+_0x2e5389),_0x70818e['addMarker'](_0x264f97,{'range':_0x4c9a57,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4e499a){const _0x233538=_0x4e499a['previous'],_0x360621=_0x4e499a['next'];_0x4e499a['previous']=null,_0x4e499a['next']=null,null!=_0x233538&&_0x233538['next']==_0x4e499a&&(_0x233538['next']=_0x360621),null!=_0x360621&&_0x360621['previous']==_0x4e499a&&(_0x360621['previous']=_0x233538),'ready'==this['_suggestionState']['get'](_0x4e499a)&&(this['_suggestionState']['set'](_0x4e499a,'removed'),this['fire']('suggestionUnloaded',_0x4e499a,_0x233538,_0x360621));}['_setSuggestionData'](_0x237e9e){const _0x16473a=_0x237e9e['id'],_0x5d07e0=this['addSuggestionData'](_0x237e9e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x17b60e=this['editor']['plugins']['get']('PendingActions'),_0x14416a=_0x5d07e0['hasComments'],_0x5b6220=_0x5d07e0['subType']?_0x5d07e0['type']+':'+_0x5d07e0['subType']:_0x5d07e0['type'],_0x277cbc=this['editor']['locale'],_0xaed929=_0x17b60e['add'](o(_0x277cbc,'PENDING_ACTION_SUGGESTION')),_0x5a6f09={'id':_0x16473a,'type':_0x5b6220,'hasComments':_0x14416a,'data':_0x237e9e['data']||null,'originalSuggestionId':_0x237e9e['originalSuggestionId']||null,'attributes':_0x5d07e0['attributes']};this['_adapter']['addSuggestion'](_0x5a6f09)['then'](_0x2580fd=>{_0x5d07e0['_saved']=!0x0,_0x17b60e['remove'](_0xaed929),_0x2580fd&&_0x2580fd['createdAt']&&(this['_suggestions']['get'](_0x16473a)['createdAt']=_0x2580fd['createdAt']);})['catch'](_0x5cbfe9=>{throw _0x472ac3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5d07e0['discard']();}),_0x5d07e0['stopListening'](),this['_suggestions']['delete'](_0x5d07e0['id']),this['_suggestionState']['delete'](_0x5d07e0),_0x5cbfe9;});}return _0x5d07e0;}['_isBlockAttribute'](_0x8c2edb){return this['_blockAttributeKeys']['has'](_0x8c2edb);}['_updateSuggestionData'](_0x348c0e,_0x33eefe){const _0x3c0e18=this['editor']['plugins']['get']('PendingActions'),_0x4d90fb=this['getSuggestion'](_0x348c0e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4d90fb['_saved']){const _0x583210=_0x3c0e18['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x348c0e,_0x33eefe)['then'](()=>{_0x3c0e18['remove'](_0x583210);});}else _0x4d90fb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x348c0e,_0x33eefe);});}}['_getSuggestionData'](_0x53bc85){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x58dd81('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53bc85);}['_handleNewSuggestionMarker'](_0x5b3e82){const {id:_0x2c48c3,type:_0x274c69,subType:_0x37cb35,authorId:_0x1d0a3b}=this['_splitMarkerName'](_0x5b3e82),_0x264d66=this['_suggestions']['get'](_0x2c48c3)||this['_createSuggestion'](_0x274c69,_0x37cb35,_0x2c48c3,_0x1d0a3b,{});switch(this['_checkSuggestionCorrectness'](_0x264d66,_0x274c69,_0x37cb35,_0x1d0a3b),this['_suggestionState']['get'](_0x264d66)){case'notReady':this['_getSuggestionData'](_0x2c48c3)['then'](_0x54d0d0=>{let _0x1dd733=Promise['resolve']();_0x54d0d0['hasComments']&&(_0x1dd733=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2c48c3})),_0x1dd733['then'](()=>{this['addSuggestionData'](_0x54d0d0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x264d66,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2c48c3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x264d66,'ready'),this['fire']('suggestionLoaded',_0x264d66);break;case'ready':this['fire']('suggestionChanged',_0x264d66);}return _0x264d66['addMarkerName'](_0x5b3e82),_0x264d66;}['_refreshSuggestionsChain'](_0x1c7802){const _0x4a2889=Array['from'](_0x1c7802),_0x1d31a1=_0x4a2889['filter'](_0x29c3ec=>'attribute'==_0x29c3ec['type']);this['_refreshAttributeSuggestionsChain'](_0x1d31a1);const _0x1ef893=_0x4a2889['filter'](_0x3af44a=>!_0x3af44a['isMultiRange']&&'attribute'!=_0x3af44a['type']),_0x18c3d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317bba=>!_0x317bba['isMultiRange']&&'attribute'!=_0x317bba['type']),_0x4c5de0=_0x18c3d6['filter'](_0x54b122=>!_0x1c7802['has'](_0x54b122)),_0x3eae3e=new Map(_0x18c3d6['map'](_0x33cc9d=>[_0x33cc9d,this['_suggestionFactory']['getSuggestionCallback'](_0x33cc9d['type'],_0x33cc9d['subType'],'chain')])),_0xd320d5=new Map(_0x18c3d6['map'](_0x55c42c=>[_0x55c42c,_0x55c42c['getFirstRange']()])),_0x49680f=new Set(),_0x3a8f3a=new Set();for(let _0x1d6294=0x0;_0x1d6294<_0x1ef893['length'];_0x1d6294++)_0x4d1ba1(_0x1ef893[_0x1d6294],_0x1ef893,_0x1d6294+0x1);for(let _0x145219=0x0;_0x145219<_0x1ef893['length'];_0x145219++)_0x4d1ba1(_0x1ef893[_0x145219],_0x4c5de0,0x0);const _0x145cf3=new Set();for(let _0x1c3163=0x0;_0x1c3163<_0x1ef893['length'];_0x1c3163++){const _0x2a596e=_0x1ef893[_0x1c3163];!_0x3a8f3a['has'](_0x2a596e)&&_0x2a596e['previous']&&(_0x145cf3['add'](_0x2a596e['previous']),_0x2a596e['previous']['next']===_0x2a596e&&(_0x2a596e['previous']['next']=null),_0x2a596e['previous']=null),!_0x49680f['has'](_0x2a596e)&&_0x2a596e['next']&&(_0x145cf3['add'](_0x2a596e['next']),_0x2a596e['next']['previous']===_0x2a596e&&(_0x2a596e['next']['previous']=null),_0x2a596e['next']=null);}function _0x4d1ba1(_0x75b7c0,_0x5c8ea5,_0x408210){for(let _0x1b3a3f=_0x408210;_0x1b3a3f<_0x5c8ea5['length'];_0x1b3a3f++){const _0x1fccdc=_0x5050b4(_0x75b7c0,_0x5c8ea5[_0x1b3a3f]);_0x1fccdc&&(_0x1fccdc[0x0]['next']=_0x1fccdc[0x1],_0x1fccdc[0x1]['previous']=_0x1fccdc[0x0],_0x49680f['add'](_0x1fccdc[0x0]),_0x3a8f3a['add'](_0x1fccdc[0x1]));}}function _0x5050b4(_0x21c711,_0x119996){if(_0x21c711['author']['id']!==_0x119996['author']['id'])return null;const _0x3e3f80=_0x3eae3e['get'](_0x21c711)(_0x21c711,_0x119996,_0xd320d5['get'](_0x21c711),_0xd320d5['get'](_0x119996));if(!_0x3e3f80)return null;return _0x3eae3e['get'](_0x119996)(_0x21c711,_0x119996,_0xd320d5['get'](_0x21c711),_0xd320d5['get'](_0x119996))?_0x3e3f80[0x1]['commentThread']&&_0x3e3f80[0x1]['commentThread']['length']?null:_0x3e3f80:null;}_0x145cf3['size']&&this['_refreshSuggestionsChain'](_0x145cf3);}['_refreshAttributeSuggestionsChain'](_0x119dc7){if(0x0==_0x119dc7['length'])return;const _0x347531=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d7059=>'attribute'==_0x2d7059['type']&&_0x2d7059['_isDataLoaded']),_0x57272e=[],_0x19e327=new Map();for(const _0x868ea6 of _0x347531){const _0x26d706=_0x5a58d5(_0x868ea6['attributes']);_0x19e327['has'](_0x26d706)||(_0x19e327['set'](_0x26d706,_0x57272e['length']),_0x57272e['push']([]));const _0x3a7e6d=_0x19e327['get'](_0x26d706);_0x57272e[_0x3a7e6d]['push'](_0x868ea6);}!(function(){_0x57272e['sort']((_0xf01c75,_0x22a1fe)=>{const _0x580779=_0xf01c75[0x0]['createdAt'],_0x1a39e5=_0x22a1fe[0x0]['createdAt'];return _0x580779==_0x1a39e5?_0xf01c75[0x0]['attributes']['groupId']<_0x22a1fe[0x0]['attributes']['groupId']?-0x1:0x1:_0x580779<_0x1a39e5?-0x1:0x1;});for(const _0x12d597 of _0x57272e)_0x12d597['sort']((_0x1d4623,_0x488304)=>_0x1d4623['id']<_0x488304['id']?-0x1:0x1);}());for(let _0x1c8b2c=0x0;_0x1c8b2c<_0x57272e['length'];_0x1c8b2c++){if(0x0==_0x57272e[_0x1c8b2c]['length'])continue;const _0x48171a=[];for(let _0x339c91=_0x1c8b2c+0x1;_0x339c91<_0x57272e['length'];_0x339c91++)0x0!=_0x57272e[_0x339c91]['length']&&_0x4951c0(_0x57272e[_0x1c8b2c],_0x57272e[_0x339c91])&&_0x48171a['push'](_0x339c91);for(const _0x563371 of _0x48171a)_0x57272e[_0x1c8b2c]=_0x57272e[_0x1c8b2c]['concat'](_0x57272e[_0x563371]),_0x57272e[_0x563371]=[];}for(const _0x332bfc of _0x57272e)for(let _0x446f72=0x0;_0x446f72<_0x332bfc['length'];_0x446f72++)_0x332bfc[_0x446f72]['next']=_0x332bfc[_0x446f72+0x1]||null;for(const _0x134668 of _0x57272e)for(let _0x5437da=0x0;_0x5437da<_0x134668['length'];_0x5437da++)_0x134668[_0x5437da]['previous']=_0x134668[_0x5437da-0x1]||null;function _0x4951c0(_0x2dd27c,_0xbc0cf2){if(_0x2dd27c[0x0]['attributes']['groupId']!==_0xbc0cf2[0x0]['attributes']['groupId']&&_0x2dd27c[0x0]['author']!==_0xbc0cf2[0x0]['author'])return!0x1;if(!function(_0x22fef4,_0x3e3a99){if(!_0x22fef4['hasComments']&&!_0x3e3a99['hasComments'])return!0x0;if(_0x22fef4['hasComments']&&_0x3e3a99['hasComments'])return!0x1;if(_0x22fef4['hasComments']&&_0x3e3a99['createdAt']<_0x22fef4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e3a99['hasComments']&&_0x22fef4['createdAt']<_0x3e3a99['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2dd27c[0x0],_0xbc0cf2[0x0]))return!0x1;const _0xad424b=Bt(_0x2dd27c[0x0]['attributes'],'groupId'),_0x5409b5=Bt(_0xbc0cf2[0x0]['attributes'],'groupId');if(!_0x59d8ff(_0xad424b,_0x5409b5))return!0x1;return!!_0x2dd27c['every'](_0x2f2998=>_0xbc0cf2['some'](_0x3aee9f=>_0x2f2998['getFirstRange']()['isEqual'](_0x3aee9f['getFirstRange']())))&&_0xbc0cf2['every'](_0x2f7945=>_0x2dd27c['some'](_0x3d316d=>_0x2f7945['getFirstRange']()['isEqual'](_0x3d316d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5f57ba){const _0x2096b0=Array['from'](_0x5f57ba),_0x5f3f9d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2a4053=_0x5f3f9d['filter'](_0x35e1fd=>!_0x5f57ba['has'](_0x35e1fd)),_0x303f3f=new Map(_0x2096b0['map'](_0x1e2371=>[_0x1e2371,this['_suggestionFactory']['getSuggestionCallback'](_0x1e2371['type'],_0x1e2371['subType'],'join')])),_0x1f8f5e=new Map(_0x5f3f9d['map'](_0x2fd0f3=>[_0x2fd0f3,_0x2fd0f3['getRanges']()]));for(let _0x54cae0=0x0;_0x54cae0<_0x2096b0['length'];_0x54cae0++){if(_0x74acd8(this,_0x2096b0[_0x54cae0],_0x2096b0,_0x54cae0+0x1))return!0x0;}for(let _0x3a12f4=0x0;_0x3a12f4<_0x2096b0['length'];_0x3a12f4++){if(_0x74acd8(this,_0x2096b0[_0x3a12f4],_0x2a4053,0x0))return!0x0;}return!0x1;function _0x74acd8(_0x2bb31a,_0x3b8b3e,_0x109170,_0x51dfea){for(let _0x25cfae=_0x51dfea;_0x25cfae<_0x109170['length'];_0x25cfae++){const _0x191a8f=_0x109170[_0x25cfae];if(_0x191a8f['type']!==_0x3b8b3e['type']||_0x191a8f['author']['id']!==_0x3b8b3e['author']['id']||_0x191a8f['subType']!==_0x3b8b3e['subType'])continue;if(!Pt(_0x3b8b3e,_0x191a8f,['groupId']))continue;if('attribute'==_0x3b8b3e['type']&&_0x3b8b3e['data']['oldValue']!=_0x191a8f['data']['oldValue'])continue;if('attribute'==_0x3b8b3e['type']&&_0x2bb31a['_isBlockAttribute'](_0x3b8b3e['data']['key']))continue;if('formatBlock'==_0x3b8b3e['type']){const _0x378f08=_0x2bb31a['editor']['model'],_0x294a6b=_0x3b8b3e['getContainedElement']();if(_0x294a6b&&(_0x378f08['schema']['isObject'](_0x294a6b)||_0x378f08['schema']['isLimit'](_0x294a6b)))continue;}const _0x562d2d=_0x303f3f['get'](_0x3b8b3e),_0x54194e=_0x1f8f5e['get'](_0x3b8b3e),_0x34e1dc=_0x1f8f5e['get'](_0x191a8f),_0x1c8e42=_0x3b8b3e['commentThread']&&_0x3b8b3e['commentThread']['length'],_0x2be2b2=_0x191a8f['commentThread']&&_0x191a8f['commentThread']['length'];if(!_0x1c8e42&&_0x562d2d(_0x34e1dc,_0x54194e))return _0x2bb31a['_joinSuggestions'](_0x191a8f,_0x3b8b3e),_0x1f8f5e['delete'](_0x3b8b3e),!0x0;if(!_0x2be2b2&&_0x562d2d(_0x54194e,_0x34e1dc))return _0x2bb31a['_joinSuggestions'](_0x3b8b3e,_0x191a8f),_0x1f8f5e['delete'](_0x191a8f),!0x0;}return!0x1;}}['_joinSuggestions'](_0xe9aac1,_0x43ae13){if(_0xe9aac1['isMultiRange']){for(const _0x5c87c8 of _0x43ae13['getRanges']())_0xe9aac1['addRange'](_0x5c87c8);}else{const _0xf6bb0f=_0x43ae13['getFirstRange']()['end'];this['_setSuggestionRange'](_0xe9aac1,this['_model']['createRange'](_0xe9aac1['getFirstRange']()['start'],_0xf6bb0f));}_0x43ae13['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2886be,_0x1bf8d4){const _0x5be97b=_0x2886be['startsWith']('format')||_0x2886be['startsWith']('attribute')?'FORMATTING':_0x2886be['toUpperCase']();return o(this['editor']['locale'],_0x1bf8d4+'_'+_0x5be97b+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5f6c72=this['editor'];if(!_0x5f6c72['ui'])return;const {ariaLiveAnnouncer:_0x4e44d5}=_0x5f6c72['ui'];_0xc7f910(this['_model'],({left:_0x450e9e,entered:_0x107876})=>{for(const _0x3cf3f9 of _0x450e9e){const {group:_0x5d0e0e,type:_0x205626}=this['_splitMarkerName'](_0x3cf3f9['name']);if('suggestion'===_0x5d0e0e){_0x4e44d5['announce'](this['_getMarkerAnnouncementText'](_0x205626,'LEAVE'));break;}}for(const _0x23a342 of _0x107876){const {group:_0x1fd38b,type:_0x449098}=this['_splitMarkerName'](_0x23a342['name']);if('suggestion'===_0x1fd38b){_0x4e44d5['announce'](this['_getMarkerAnnouncementText'](_0x449098,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2e6987){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f6bf5=this['editor'],_0xc8d23a=_0x1f6bf5['model']['document']['differ']['getChanges']();if(0x0==_0xc8d23a['length'])return!0x1;const _0x55c0f6=[],_0x1bc6b7=_0xc8d23a['filter'](_0x43ab7b=>'attribute'==_0x43ab7b['type']),_0x2b1ed2=_0xc8d23a['filter'](_0x499a49=>'insert'==_0x499a49['type']&&'$text'!=_0x499a49['name']),_0x53e5a6=_0xc8d23a['filter'](_0x5478f9=>'remove'==_0x5478f9['type']&&'$text'!=_0x5478f9['name']);for(const _0x48cba9 of _0x1bc6b7)_0x55c0f6['push']({'key':_0x48cba9['attributeKey'],'newValue':_0x48cba9['attributeNewValue'],'oldValue':_0x48cba9['attributeOldValue'],'range':Ot(_0x48cba9['range'],_0x1f6bf5['model'])});for(const _0x530830 of _0x2b1ed2){const _0x54adb1=_0x53e5a6['find'](_0x52ea13=>_0x52ea13['position']['isEqual'](_0x530830['position']));_0x54adb1&&_0x55c0f6['push']({'key':m,'newValue':_0x530830['name'],'oldValue':_0x54adb1['name'],'range':_0x1f6bf5['model']['createRangeOn'](_0x530830['position']['nodeAfter'])});}return 0x0!=_0x55c0f6['length']&&this['_reduceExistingSuggestions'](_0x2e6987,_0x55c0f6);}['_processAttributeSuggestions'](_0x185946){let _0x2bd5c7=!0x1;const _0x12465a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x9eb832=>_0x9eb832['data']['newRange']&&_0x9eb832['name']['startsWith']('suggestion:attribute:'));for(const _0x6b2de7 of _0x12465a){const {subType:_0x13ea9b,id:_0x1dc58f}=this['_splitMarkerName'](_0x6b2de7['name']),_0x3b6d8a=_0x13ea9b['split']('|')[0x0];for(const _0x321ef2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x321ef2['id']!=_0x1dc58f&&'attribute'==_0x321ef2['type']&&_0x321ef2['data']&&_0x321ef2['data']['key']==_0x3b6d8a&&_0x321ef2['getFirstRange']()['isIntersecting'](_0x6b2de7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x321ef2,_0x6b2de7['data']['newRange'],_0x185946),_0x2bd5c7=!0x0);}return _0x2bd5c7;}['_recordAttributeChanges'](_0x258381){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x258381();}['_isRegisteredAttribute'](_0x47f33b){const _0x2556a0=this['_isBlockAttribute'](_0x47f33b),_0x27ea18=this['_inlineAttributeKeys']['has'](_0x47f33b);return _0x2556a0||_0x27ea18;}['_reduceExistingSuggestions'](_0x5b1e91,_0xd6308c){if(0x0==_0xd6308c['length'])return!0x1;let _0x43ee55=!0x1;for(const _0x46d02f of _0xd6308c){const _0xb69883=this['_findSuggestions'](_0x46d02f['range'],'attribute')['filter'](_0x2677da=>!_0x2677da['meta']['isNextTo'])['map'](_0x326078=>_0x326078['suggestion']),_0x42ccde=_0x5a58d5({'newValue':_0x46d02f['newValue']});_0xb69883['filter'](_0x374648=>{const [_0x2c41d0,_0x51f02e]=_0x374648['subType']['split']('|');return _0x2c41d0==_0x46d02f['key']&&_0x51f02e!=_0x42ccde;})['forEach'](_0x55051c=>{this['_reduceSuggestionAttributeRange'](_0x55051c,_0x46d02f['range'],_0x5b1e91),_0x43ee55=!0x0;});}return _0x43ee55;}['_reduceSuggestionAttributeRange'](_0x93517b,_0x24dfe0,_0x35ea84){const _0x3bf4bd=_0x93517b['getFirstRange']()['getDifference'](_0x24dfe0);0x0!==_0x3bf4bd['length']?0x1!==_0x3bf4bd['length']?this['_breakSuggestionMarker'](_0x93517b,_0x24dfe0['start'],_0x24dfe0['end']):this['_setSuggestionRange'](_0x93517b,_0x3bf4bd[0x0]):_0x35ea84['removeMarker'](_0x93517b['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x59d4d3){this['_editor']=_0x59d4d3,this['_model']=_0x59d4d3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b61df,_0x1dc821,_0x403d4f,_0x2716f8,_0x58313d,_0x1c2531){return new u(this['_model'],{'type':_0x5b61df,'subType':_0x1dc821,'id':_0x403d4f,'author':_0x2716f8,'creator':_0x2716f8,'attributes':_0x58313d,'onAttributesChange':_0x1c2531,'onAccept':(..._0x30af0e)=>this['getSuggestionCallback'](_0x5b61df,_0x1dc821,'accept')(..._0x30af0e),'onDiscard':(..._0x2fc02c)=>this['getSuggestionCallback'](_0x5b61df,_0x1dc821,'discard')(..._0x2fc02c)});}['registerCustomCallback'](_0x46b517,_0x1d196e,_0x10a016,_0x7c6846){const _0x2bd37c=_0x46b517+':'+_0x1d196e+':'+_0x10a016;this['_customCallbacks']['set'](_0x2bd37c,_0x7c6846);}['getSuggestionCallback'](_0x1e44c2,_0x393d56,_0x58a91a){const _0x16915d=_0x1e44c2+':'+_0x393d56+':'+_0x58a91a;return this['_customCallbacks']['get'](_0x16915d)||this['_defaultCallbacks']['get'](_0x1e44c2+':'+_0x58a91a);}['_registerDefaultCallbacks'](){const _0x2b123=()=>!0x1,_0x5e5b87=_0x2c7a14=>{_0x2c7a14['sort']((_0x337dab,_0x186d94)=>_0x337dab['start']['isBefore'](_0x186d94['start'])?0x1:-0x1),this['_model']['change'](_0x3c951f=>{for(const _0xb70fcc of _0x2c7a14){let _0x4c6254;_0x4c6254=_0xb70fcc['end']['isAtEnd']&&_0xb70fcc['end']['parent']==_0xb70fcc['start']['nodeAfter']?_0x3c951f['createSelection'](_0xb70fcc['start']['nodeAfter'],'on'):_0x3c951f['createSelection'](_0xb70fcc),this['_model']['deleteContent'](_0x4c6254,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a0377=(_0x2182f5,_0x34cb07)=>{_0x34cb07&&this['_model']['change'](_0x778b5a=>{const {commandName:_0x5edba9,commandParams:_0x5172af=[]}=_0x34cb07,_0x29fb3c=_0x2182f5['map'](_0x14b72f=>(Tt(_0x14b72f)&&(_0x14b72f=this['_model']['createRange'](_0x14b72f['end'])),_0x14b72f))['filter'](_0x3cec2c=>'$graveyard'!==_0x3cec2c['root']['rootName']);if(_0x29fb3c['length']<0x1)return;const _0x200c7f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x366b9e=>_0x248c8e['fromRange'](_0x366b9e));_0x778b5a['setSelection'](_0x29fb3c);for(const _0x359fb8 of this['_editor']['commands']['commands']())_0x359fb8['refresh']();_0x5172af['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5edba9,..._0x5172af);const _0x4c94b6=_0x200c7f['filter'](_0x418445=>'$graveyard'!=_0x418445['root']['rootName']);_0x4c94b6['length']>0x0&&_0x778b5a['setSelection'](_0x4c94b6);for(const _0x26421b of _0x200c7f)_0x26421b['detach']();});},_0x476876=(_0x5c62ac,_0x5ced20)=>0x1==_0x5c62ac['length']&&0x1==_0x5ced20['length']&&_0x5c62ac[0x0]['end']['isEqual'](_0x5ced20[0x0]['start']),_0x55f230=(_0x547e58,_0x33760c,_0x34d8a0,_0x3cf675)=>Ft(_0x547e58,_0x33760c,_0x34d8a0,_0x3cf675,this['_model'])?[_0x547e58,_0x33760c]:Ft(_0x33760c,_0x547e58,_0x3cf675,_0x34d8a0,this['_model'])?[_0x33760c,_0x547e58]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b123),this['_defaultCallbacks']['set']('insertion:discard',_0x5e5b87),this['_defaultCallbacks']['set']('insertion:join',_0x476876),this['_defaultCallbacks']['set']('insertion:chain',_0x55f230),this['_defaultCallbacks']['set']('deletion:accept',_0x5e5b87),this['_defaultCallbacks']['set']('deletion:discard',_0x2b123),this['_defaultCallbacks']['set']('deletion:join',_0x476876),this['_defaultCallbacks']['set']('deletion:chain',_0x55f230),this['_defaultCallbacks']['set']('formatInline:accept',_0x2a0377),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b123),this['_defaultCallbacks']['set']('formatInline:join',_0x476876),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b123),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2a0377),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b123),this['_defaultCallbacks']['set']('formatBlock:join',_0x476876),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b123),this['_defaultCallbacks']['set']('attribute:accept',_0x2b123),this['_defaultCallbacks']['set']('attribute:discard',(_0x57edf4,_0x180fd7)=>{if(!_0x180fd7)return;const _0x453b74=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3fdb0b=>{if(_0x180fd7['key']==m)for(const _0x161e5a of _0x57edf4){const _0x3ad2e7=_0x161e5a['start']['nodeAfter'],_0x5a966c=_0x180fd7['oldValue'];_0x3fdb0b['rename'](_0x3ad2e7,_0x5a966c);}else{if(_0x453b74['_isBlockAttribute'](_0x180fd7['key'])){for(const _0x387bd0 of _0x57edf4)void 0x0!==_0x180fd7['oldValue']?_0x3fdb0b['setAttribute'](_0x180fd7['key'],_0x180fd7['oldValue'],_0x387bd0['start']['nodeAfter']):_0x3fdb0b['removeAttribute'](_0x180fd7['key'],_0x387bd0['start']['nodeAfter']);}else{for(const _0x224132 of _0x57edf4)_0x180fd7['oldValue']?_0x3fdb0b['setAttribute'](_0x180fd7['key'],_0x180fd7['oldValue'],_0x224132):_0x3fdb0b['removeAttribute'](_0x180fd7['key'],_0x224132);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x476876);}}function Rt(_0x3fb694,_0x57a497,_0x589882){for(const _0x103da8 of _0x57a497['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x103da8['root']==_0x103da8)return!0x1;if(!_0x589882['containsItem'](_0x103da8))return!0x1;if(_0x3fb694['isObject'](_0x103da8)||_0x3fb694['isLimit'](_0x103da8))return!0x0;}return!0x1;}function Tt(_0x154661){return _0x154661['end']['parent']==_0x154661['start']['nodeAfter']&&_0x154661['end']['isAtStart'];}function Et(_0x1c431b,_0x599ee5,_0x28a3f0,_0x27a545){const _0x321c05=_0xb2d9af=>!_0xb2d9af['item']['is']('$textProxy')&&!_0x27a545['isObject'](_0xb2d9af['item']),_0x1d386d=_0x1c431b['start']['getLastMatchingPosition'](_0x321c05),_0x63b8de=_0x1c431b['end']['getLastMatchingPosition'](_0x321c05,{'direction':'backward'});return(!_0x1c431b['start']['isEqual'](_0x1d386d)||!_0x1c431b['end']['isEqual'](_0x63b8de))&&(_0x1d386d['isBefore'](_0x63b8de)?_0x28a3f0['updateMarker'](_0x599ee5,{'range':_0x28a3f0['createRange'](_0x1d386d,_0x63b8de)}):_0x28a3f0['removeMarker'](_0x599ee5),!0x0);}function Vt(_0x3ac3f8){return _0x5a58d5(_0x3ac3f8);}function Ut(_0x250817){const _0x278559=_0x250817['start']['nodeAfter'];return _0x278559&&_0x278559['is']('element');}function Ot(_0x13de5f,_0x425cfd){return null==_0x13de5f['end']['nodeBefore']&&_0x13de5f['end']['parent']==_0x13de5f['start']['nodeAfter']?Gt(_0x13de5f['start']['nodeAfter'],_0x425cfd):_0x13de5f;}function Gt(_0x1662bd,_0x45922d){const _0x34864f=_0x45922d['schema']['isObject'](_0x1662bd)||_0x45922d['schema']['isSelectable'](_0x1662bd);return _0x45922d['createRange'](_0x45922d['createPositionAt'](_0x1662bd,'before'),_0x34864f?_0x45922d['createPositionAfter'](_0x1662bd):_0x45922d['createPositionAt'](_0x1662bd,'end'));}function Ft(_0x375c02,_0x2f4580,_0xe10fce,_0x22370b,_0x1cd78e){if(!Pt(_0x375c02,_0x2f4580))return!0x1;if(_0xe10fce['end']['isEqual'](_0x22370b['start']))return!0x0;if(_0x375c02['type']!=_0x2f4580['type'])return!0x1;if(!_0xe10fce['end']['isTouching'](_0x22370b['start']))return!0x1;const _0x11cd19=_0x1cd78e['createRange'](_0xe10fce['end'],_0x22370b['start'])['getWalker']();for(const _0x5ea4f0 of _0x11cd19)if(['elementStart','elementEnd']['includes'](_0x5ea4f0['type'])&&_0x1cd78e['schema']['isLimit'](_0x5ea4f0['item']))return!0x1;return!0x0;}function Pt(_0x6732a9,_0x200dc1,_0x15ccd0=[]){return!(!_0x6732a9['_isDataLoaded']||!_0x200dc1['_isDataLoaded'])&&_0x59d8ff(Bt(_0x6732a9['attributes'],_0x15ccd0),Bt(_0x200dc1['attributes'],_0x15ccd0));}function Lt(_0x3c7171,_0x19b219){const _0x30cbfb=Ht(_0x3c7171['attributes']),_0x285b56=Ht(_0x19b219);if(!_0x3c7171['_isDataLoaded'])return!0x1;for(const _0x3914c9 of Object['keys'](_0x285b56))if(!_0x59d8ff(_0x30cbfb[_0x3914c9],_0x285b56[_0x3914c9]))return!0x1;return!0x0;}function Ht(_0xaec944){const _0x44fda0=Object['assign']({},_0xaec944);return delete _0x44fda0['skipNestingCheck'],delete _0x44fda0['tablePasteChainId'],_0x44fda0;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x31c48b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5a0d22,_0x5c1da6,_0x7f4840,_0x551ce7){super(),this['model']=_0x5c1da6,this['view']=_0x7f4840,this['commentThreadController']=_0x551ce7,this['_editor']=_0x5a0d22,this['_acceptCommand']=_0x5a0d22['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5a0d22['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x71f0ab,_0x3c2eec)=>_0x71f0ab||_0x3c2eec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x223eeb=>_0x223eeb&&this['_editor']['model']['canEditAt'](_0x5c1da6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x222729=>_0x222729&&this['_editor']['model']['canEditAt'](_0x5c1da6['getRanges']())),this['_pendingAction']=null,_0x7f4840['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x7f4840,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x7f4840,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x7f4840,'change:isDirty',()=>{_0x7f4840['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 _0x42ed33=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x42ed33);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x889846{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x439758,_0x176a56,_0x40b0d3,_0x2f143f){super(_0x439758),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x176a56['authoredAt']),this['bind']('authoredAt')['to'](_0x176a56),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x176a56,this['_localUser']=_0x40b0d3,this['_config']=_0x2f143f,_0x2f143f['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:_0x4cd659}=this['_config'];this['commentsListView']=new _0x4cd659(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',_0x1a9c64=>_0x1a9c64+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ac6a4,_0x5d3d5f)=>_0x1ac6a4||!!_0x5d3d5f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3642f9}=this['_config'],_0x7bac5e=new _0x3642f9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5797cf=_0x7bac5e['commentInputView'];return _0x7bac5e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5797cf,'value',(_0x35c409,_0x316451,_0x152160)=>!!_0x152160||_0x35c409&&!_0x316451),_0x5797cf['on']('submit',(_0x305a6b,_0x58b831)=>{this['fire']('addComment',_0x58b831),_0x5797cf['editor']['setData']('');}),_0x5797cf['on']('cancel',()=>this['focus']()),_0x5797cf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7bac5e;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x462032,_0x552cce,_0x496b15,_0x5c8c84){super(_0x462032,_0x552cce,_0x496b15,_0x5c8c84),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3feda1=>_0x3feda1&&_0x3feda1[0x0]?_0x3feda1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x38e9cb,_0x3f28e0)=>{let _0x109ecf='';for(const _0x59c450 of _0x38e9cb)_0x109ecf+='<p>'+ds(_0x59c450['content'],_0x59c450['color'])+'</p>';return _0x3f28e0?_0x109ecf:_0x54358f(_0x109ecf,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x462032,'Accept\x20suggestion'),_0x4dc69a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x462032,'Discard\x20suggestion'),_0x4dc69a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x365062(_0x462032,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x62c21b=this['bindTemplate'],_0x4411ea=[{'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':_0x62c21b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x62c21b['to']('authoredAt',_0x1a65eb=>this['_config']['formatDateTime'](_0x1a65eb))}]}]},{'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']&&_0x4411ea['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x518036={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x62c21b['if']('isActive','ck-suggestion-wrapper--active'),_0x62c21b['to']('type',_0x2d38bf=>'ck-suggestion-'+_0x2d38bf),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':_0x4411ea}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x518036['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)),_0x518036;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5cfe69,_0x3e8594,_0x46324b)=>{this['_descriptionElement']['innerHTML']=_0x46324b;});}['_createButton'](_0x42f8b1,_0x3f38c6,_0x27eb99,_0x225e7f,_0x8d334a){const _0x560759=new _0x3b9884(this['locale']);return _0x560759['set']({'label':_0x42f8b1,'icon':_0x3f38c6,'tooltip':!0x0,'tooltipPosition':_0x8d334a}),_0x560759['extendTemplate']({'attributes':{'class':_0x27eb99}}),_0x560759['on']('execute',()=>{this['fire'](_0x225e7f,this['_model']['id']);}),_0x560759;}['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(_0x28e21c,_0x1e5845){let _0x161a59='';return _0x161a59+=_0x28e21c['split']('*')['map']((_0x38bce1,_0x405fa1)=>_0x405fa1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x38bce1)+'</span>':us(_0x38bce1))['join'](''),_0x1e5845&&(_0x161a59+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1e5845['value']+'\x22\x20title=\x22'+_0x1e5845['title']+'\x22></span>'),_0x161a59;}function us(_0x30312a){const _0x4ad049=document['createElement']('span');return _0x4ad049['innerText']=_0x30312a,_0x4ad049['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 _0x1f7250{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x174f94,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2ecee9){super(_0x2ecee9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4ef54c=this['editor']['config'];_0x4ef54c['define']('trackChanges.SuggestionThreadView',ne),_0x4ef54c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4ef54c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x304859,_0x395ec8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa15856,_0x4cca0e]of this['_handleControllerBuffer']){const _0x325cc2=this['_suggestionToController']['has'](_0xa15856);_0x325cc2||_0x4cca0e?_0x325cc2&&_0x4cca0e&&this['_destroyController'](_0xa15856):this['_initializeController'](_0xa15856);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x304859,_0x395ec8);}['init'](){const _0x37bf30=this['editor'],_0x5753e2=_0x37bf30['plugins']['get']('TrackChangesEditing'),_0x544374=_0x37bf30['plugins']['get']('Annotations'),_0x53cdb2=_0x37bf30['plugins']['get']('EditorAnnotations'),_0x39de83=_0x37bf30['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x53cdb2['addSourceCollector'](()=>{const _0x366271=[];for(const [_0x59da6b,_0x212ec8]of Array['from'](this['_suggestionToController'])){const _0x516c4c=_0x59da6b['getAllAdjacentSuggestions'](),_0x50c039=[];for(const _0x2fac0e of _0x516c4c){if(!_0x2fac0e['isInContent'])continue;if(_0x2fac0e['isMultiRange']){_0x50c039['push'](..._0x2fac0e['getRanges']());continue;}const _0x37f562=_0x2fac0e['getFirstRange']();if(_0x50c039['length']>0x0){const _0x25ff77=_0x50c039[0x0]['getJoined'](_0x37f562);if(_0x25ff77){_0x50c039[0x0]=_0x25ff77;continue;}}_0x50c039['push'](_0x37f562);}_0x366271['push']([_0x212ec8['view'],_0x50c039]);}return _0x366271;}),this['listenTo'](_0x5753e2,'suggestionLoaded',(_0x4321ea,_0x2dd7d8)=>{this['listenTo'](_0x2dd7d8,'change:previous',(_0x585f6f,_0x1fb44c,_0x501fc8,_0x26da39)=>{_0x2dd7d8['isInContent']&&(null==_0x501fc8?(this['_updateController'](_0x26da39['head']),this['_handleSuggestionControllerDelayed'](_0x2dd7d8,!0x1)):(this['_updateController'](_0x501fc8['head']),null==_0x26da39&&this['_handleSuggestionControllerDelayed'](_0x2dd7d8,!0x0)));}),null!==_0x2dd7d8['previous']?this['_updateController'](_0x2dd7d8['head']):this['_handleSuggestionControllerDelayed'](_0x2dd7d8,!0x1);}),this['listenTo'](_0x5753e2,'suggestionUnloaded',(_0x1acfbf,_0x2ca84a,_0x65ba76)=>{this['stopListening'](_0x2ca84a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ca84a),this['_suggestionToController']['has'](_0x2ca84a)&&this['_destroyController'](_0x2ca84a),_0x65ba76&&this['_updateController'](_0x65ba76['head']);}),this['listenTo'](_0x5753e2,'suggestionChanged',(_0x301230,_0xf66beb)=>{this['_updateController'](_0xf66beb);}),this['listenTo'](_0x544374,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39de83,'addComment',(_0x175fe3,{threadId:_0x3f2a13,isFromAdapter:_0x5e0440})=>{if(_0x5e0440||!_0x5753e2['hasSuggestion'](_0x3f2a13))return;const _0x1b436a=_0x5753e2['getSuggestion'](_0x3f2a13);this['_suggestionToController']['get'](_0x1b436a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3657d6=this['editor']['plugins']['get']('Annotations'),_0xa3f583=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1678e0=Array['from'](_0x3657d6['activeAnnotations'],_0x56e06e=>_0x56e06e['innerView'])['filter'](_0x51727b=>this['_viewToController']['has'](_0x51727b)),_0x43af02=[];for(const _0x3f4062 of _0x1678e0){const _0x3780c0=this['_viewToController']['get'](_0x3f4062)['model']['getAllAdjacentSuggestions']();_0x43af02['push'](..._0x3780c0['reduce']((_0x9595a0,_0x30c194)=>[..._0x9595a0,..._0x30c194['getMarkerNames']()],[]));}_0xa3f583['activeMarkers']=_0x43af02;}['_addUIComponentsToFactory'](){const _0x4e70ee=this['editor'],_0x2836cf=_0x4e70ee['locale'],_0x26548e=o(_0x2836cf,'Track\x20changes'),_0x2ca969=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x26548e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2836cf,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2836cf,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2836cf,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2836cf,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x129f88 of _0x2ca969)if(ae(_0x129f88)){const _0x1e210a=_0x4e70ee['commands']['get'](_0x129f88['model']['commandName']);_0x129f88['model']['bind']('isOn','isEnabled')['to'](_0x1e210a,'value','isEnabled');}_0x4e70ee['ui']['componentFactory']['add']('trackChanges',_0x314be2=>this['_createToolbarButton'](_0x314be2,_0x2ca969,_0x26548e)),_0x4e70ee['ui']['componentFactory']['add']('menuBar:trackChanges',_0x414e7a=>this['_createMenuBarMenu'](_0x414e7a,_0x2ca969,_0x26548e));}['_createToolbarButton'](_0x41261a,_0x3d673d,_0x5af87c){const _0x8f3ae8=zt(_0x41261a,Zt),_0x454b08=this['editor']['commands']['get']('trackChanges');_0x8f3ae8['buttonView']['set']({'tooltip':_0x5af87c,'label':_0x5af87c,'icon':ie}),_0x8f3ae8['buttonView']['bind']('isOn')['to'](_0x454b08,'value'),_0x8f3ae8['buttonView']['on']('execute',()=>{_0x454b08['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x8f3ae8,_0x3d673d,{'role':'menu'});const _0x2eafa=[];for(const _0x490e90 of _0x3d673d)ae(_0x490e90)&&_0x2eafa['push'](this['editor']['commands']['get'](_0x490e90['model']['commandName']));const _0x390101=_0x8f3ae8['buttonView'];return _0x390101['actionView']['unbind']('isEnabled'),_0x390101['arrowView']['unbind']('isEnabled'),_0x390101['actionView']['bind']('isEnabled')['to'](_0x454b08,'isEnabled'),_0x390101['arrowView']['bind']('isEnabled')['toMany'](_0x2eafa,'isEnabled',(..._0xf7c619)=>_0xf7c619['some'](_0xb76ab=>_0xb76ab)),_0x8f3ae8['on']('execute',_0x41f4ed=>{this['editor']['execute'](_0x41f4ed['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x8f3ae8;}['_createMenuBarMenu'](_0x1ddbb6,_0x37a537,_0x1d1d04){const _0x5423f4=new Kt(_0x1ddbb6),_0x36c9c8=this['editor']['commands']['get']('trackChanges');_0x5423f4['buttonView']['set']({'label':_0x1d1d04,'icon':ie});const _0x440218=new Qt(_0x1ddbb6);for(const _0x4f0255 of _0x37a537){if('separator'==_0x4f0255['type']){_0x440218['items']['add'](new Jt(_0x1ddbb6));continue;}const _0x21186d=new Xt(_0x1ddbb6,_0x5423f4),_0x1ec43f=new Yt(_0x1ddbb6),_0x377b1c=_0x4f0255['model'];_0x1ec43f['bind'](...Object['keys'](_0x377b1c))['to'](_0x377b1c),_0x1ec43f['delegate']('execute')['to'](_0x5423f4),_0x1ec43f['on']('execute',()=>{this['editor']['execute'](_0x377b1c['commandName']),this['editor']['editing']['view']['focus']();}),_0x21186d['children']['add'](_0x1ec43f),_0x440218['items']['add'](_0x21186d);}return _0x5423f4['bind']('isEnabled')['to'](_0x36c9c8,'isEnabled'),_0x5423f4['panelView']['children']['add'](_0x440218),_0x5423f4;}['_initializeController'](_0x3044cb){const _0x4b6806=this['editor'],_0x1cc252=_0x4b6806['config'],_0x3ec8ca=_0x4b6806['plugins']['get']('Annotations'),_0x43ed43=_0x4b6806['plugins']['get']('CommentsRepository'),_0x19da0a=_0x4b6806['plugins']['get']('EditorAnnotations'),_0x1c2bde=_0x4b6806['plugins']['get'](_0x174f94)['me'],_0x17d94a=_0x1cc252['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3e72c3,CommentThreadInputView:_0x169520}=_0x4b6806['plugins']['get']('CommentsUI');let _0x48f35e,_0x3b0928;this['_annotationViews']['has'](_0x3044cb['id'])?(_0x3b0928=this['_annotationViews']['get'](_0x3044cb['id']),_0x48f35e=_0x3b0928['mainView']):(_0x48f35e=new _0x17d94a(_0x4b6806['locale'],_0x3044cb,_0x1c2bde,{'disableComments':this['_disableComments'],'editorConfig':_0x1cc252['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1cc252['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1cc252['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1cc252['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d8248(_0x1cc252['get']('locale')),'CommentView':_0x1cc252['get']('comments')['CommentView'],'CommentsListView':_0x3e72c3,'CommentThreadInputView':_0x169520}),_0x48f35e['acceptButton']['on']('execute',()=>{_0x4b6806['editing']['view']['focus']();}),_0x48f35e['discardButton']['on']('execute',()=>{_0x4b6806['editing']['view']['focus']();}),_0x3b0928=_0x3ec8ca['createAnnotationView'](this['editor']['locale'],_0x48f35e),_0x3b0928['bind']('isDirty')['to'](_0x48f35e,'isDirty'),_0x3b0928['bind']('length')['to'](_0x48f35e),_0x3b0928['bind']('type')['to'](_0x48f35e,'type',_0x439004=>'suggestion-'+_0x439004),this['_annotationViews']['set'](_0x3044cb['id'],_0x3b0928));const _0x47054b=_0x43ed43['createCommentThreadController'](_0x3044cb['commentThread'],_0x48f35e),_0x55d1f9=new oe(_0x4b6806,_0x3044cb,_0x48f35e,_0x47054b),_0x2d526f=_0x3044cb['getAllAdjacentSuggestions']()['filter'](_0x160f43=>_0x160f43['isInContent']);_0x48f35e['descriptionParts']=_0x4b6806['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d526f),this['_suggestionToController']['set'](_0x3044cb,_0x55d1f9),this['_viewToController']['set'](_0x48f35e,_0x55d1f9);const _0x1c740b=_0x3ec8ca['createAnnotation']({'view':_0x3b0928,'target':()=>{const _0x376f86=[],_0x3453dd=_0x3044cb['getAllAdjacentSuggestions']()['filter'](_0x20c140=>_0x20c140['isInContent']);for(const _0x441e5a of _0x3453dd)_0x376f86['push'](..._0x441e5a['getMarkers']());return _0x1d6625(_0x4b6806['editing'],_0x376f86);},'type':()=>'suggestion-'+_0x55d1f9['view']['type']});_0x43ed43['_bindAnnotationToEditors'](_0x48f35e,_0x1c740b),_0x3ec8ca['add'](_0x1c740b),_0x19da0a['registerAnnotation'](_0x1c740b);}['_destroyController'](_0x2d343a){const _0x111e3c=this['editor']['plugins']['get']('CommentsRepository'),_0x24b0fd=this['editor']['plugins']['get']('Annotations'),_0x309ac5=this['_suggestionToController']['get'](_0x2d343a),_0x4393cc=_0x309ac5['view'],_0x3ec5bc=_0x24b0fd['getByInnerView'](_0x4393cc);_0x111e3c['_unbindEditors'](_0x4393cc),_0x3ec5bc&&_0x24b0fd['remove'](_0x3ec5bc),this['_suggestionToController']['delete'](_0x2d343a),this['_viewToController']['delete'](_0x4393cc),_0x309ac5['destroy']();}['_updateController'](_0x3681d6){if(!_0x3681d6['isInContent']||!this['_suggestionToController']['has'](_0x3681d6))return;const _0xb86349=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1abd36=this['_suggestionToController']['get'](_0x3681d6),_0x1c62e3=_0x3681d6['getAllAdjacentSuggestions']();_0x1abd36['view']['descriptionParts']=_0xb86349['descriptionFactory']['getDescriptions'](_0x1c62e3);}['destroy'](){for(const _0x1dcd0e of this['_suggestionToController']['keys']())this['_destroyController'](_0x1dcd0e);for(const _0x38c8b0 of this['_annotationViews']['values']())_0x38c8b0['mainView']['destroy']();super['destroy']();}}function ae(_0x463ca6){return'model'in _0x463ca6;}class k extends _0x1f7250{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39adf7){this['editor']['plugins']['get'](p)['adapter']=_0x39adf7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x449a8f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x449a8f);}['getSuggestions']({skipNotAttached:_0x19fdaf=!0x1,toJSON:_0x256835=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x19fdaf,'toJSON':_0x256835});}['getSuggestion'](_0x2e70b2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2e70b2);}}const T=['Pagination'];class P extends _0x1f7250{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x35a743=this['editor'];if(_0x35a743['config']['define']('trackChangesData.editorCreator',_0x296e32=>{const _0x5b6c22=_0x35a743['model']['document']['getRootNames']()['reduce']((_0x58a453,_0x405cce)=>(_0x58a453[_0x405cce]='',_0x58a453),{});return _0x35a743['constructor']['create'](_0x5b6c22,_0x296e32);}),'function'!=typeof _0x35a743['config']['get']('trackChangesData')['editorCreator'])throw new _0x58dd81('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3c884b){return N(this['editor'],!0x0,_0x3c884b);}['getDataWithDiscardedSuggestions'](_0xcbfd2f){return N(this['editor'],!0x1,_0xcbfd2f);}}class D extends _0x1f7250{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x437a2a){super(_0x437a2a),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(_0x20a0b8){return void 0x0!==_0x20a0b8['getRootsAttributes'];}async function N(_0x52c38e,_0x7391b1,_0x25492e){const _0xc3c6ef=_0x1e158a(_0x52c38e,T);_0xc3c6ef['plugins']['push'](p,D),_0xc3c6ef['rootsAttributes']=v(_0x52c38e)?_0x52c38e['getRootsAttributes']():void 0x0;const _0x352f57=document['createDocumentFragment'](),_0x37ceaf=_0x52c38e['config']['get']('trackChangesData')['editorCreator'],_0x426eaf=await _0x37ceaf(_0xc3c6ef,()=>function(_0x450fd2){const _0x407e03=document['createElement']('div');return _0x450fd2['appendChild'](_0x407e03),_0x407e03;}(_0x352f57));!function(_0x5d18ca,_0x261675){const _0x36fe02=_0x5d18ca['model']['document']['getRootNames']()['reduce']((_0xcf61ea,_0x288619)=>(_0xcf61ea[_0x288619]=_0x5d18ca['data']['get']({'rootName':_0x288619}),_0xcf61ea),{}),_0x4cd092=_0x5d18ca['plugins']['get']('Users')['users']['map'](_0x7a1850=>({'id':_0x7a1850['id'],'name':_0x7a1850['name']})),_0x48c112=_0x5d18ca['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5bc551=_0x5d18ca['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd3f700=_0x261675['plugins']['get']('Users'),_0x142b86=_0x261675['plugins']['get']('TrackChangesEditing'),_0x5648f0=_0x261675['plugins']['get']('CommentsRepository');for(const _0x432929 of _0x4cd092)_0xd3f700['getUser'](_0x432929['id'])||_0xd3f700['addUser'](_0x432929);_0xd3f700['me']||_0xd3f700['useAnonymousUser']();for(const _0x35af62 of _0x5bc551)_0x5648f0['addCommentThread'](_0x35af62);for(const _0x3e28a8 of _0x48c112)_0x142b86['addSuggestionData'](_0x3e28a8);_0x261675['data']['set'](_0x36fe02);}(_0x52c38e,_0x426eaf),_0x426eaf['execute'](_0x7391b1?'acceptAllSuggestions':'discardAllSuggestions');const _0x3f807f=v(_0x426eaf)?_0x426eaf['getFullData'](_0x25492e):_0x426eaf['data']['get'](_0x25492e);return await _0x426eaf['destroy'](),_0x3f807f;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|