@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240627.0 → 0.0.0-nightly-20240629.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +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
|
-
_0x1080ab(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x21f365,_0x2fd633){super(),this['id']=_0x2fd633['id'],this['type']=_0x2fd633['type'],this['subType']=_0x2fd633['subType']||null,this['author']=_0x2fd633['author'],this['creator']=_0x2fd633['creator']||_0x2fd633['author'],this['isExternal']=Boolean(_0x2fd633['attributes']&&_0x2fd633['attributes']['@external']),this['data']=null,this['_model']=_0x21f365,this['_onAccept']=_0x2fd633['onAccept'],this['_onDiscard']=_0x2fd633['onDiscard'],this['_onAttributesChange']=_0x2fd633['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2fd633['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 _0x3e7c0c=this;for(;_0x3e7c0c['previous'];)_0x3e7c0c=_0x3e7c0c['previous'];return _0x3e7c0c;}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'](_0x13873c){this['_markerNames']['add'](_0x13873c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c5a2b=>this['_model']['markers']['get'](_0x1c5a2b))['filter'](_0x5aa074=>_0x5aa074);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x278075=>{for(const _0x109f6d of this['getMarkers']())_0x278075['removeMarker'](_0x109f6d);}),this['_markerNames']['clear']();}['removeMarker'](_0x3cdf6c){this['_model']['change'](_0x504cc6=>{_0x504cc6['removeMarker'](_0x3cdf6c);}),this['_markerNames']['delete'](_0x3cdf6c);}['addRange'](_0x5ee206){const _0x30f44b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x30f44b),this['_model']['change'](_0x40c104=>{_0x40c104['addMarker'](_0x30f44b,{'range':_0x5ee206,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x203dfd){for(const _0x143e05 of this['getRanges']())if(_0x143e05['isIntersecting'](_0x203dfd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x21438f=>_0x21438f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a96f4,_0x264c9f)=>[..._0x3a96f4,..._0x264c9f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37a7a4=this['getRanges']();if(0x1!=_0x37a7a4['length'])return null;const _0x4b581a=_0x37a7a4[0x0],_0x5c05f6=_0x4b581a['start']['nodeAfter'],_0x4d4c60=_0x4b581a['end']['nodeBefore'];return _0x5c05f6 instanceof _0xbbaf1a?_0x5c05f6!=_0x4d4c60?null:_0x5c05f6: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 _0x3e666c=[];let _0x2b366e=this['head'];for(;_0x2b366e;)_0x3e666c['push'](_0x2b366e),_0x2b366e=_0x2b366e['next'];return _0x3e666c;}['setAttribute'](_0xdde266,_0xee8b4b){const _0x51d49d=_0x425e58(this['attributes']);_0x5e0814(_0x51d49d,_0xdde266,_0xee8b4b),_0x24bab9(_0x51d49d,this['attributes'])||(this['attributes']=_0x51d49d,this['_onAttributesChange'](_0x51d49d));}['removeAttribute'](_0x1e3f79){const _0x2f5b6f=_0x425e58(this['attributes']);_0x1ee699(_0x2f5b6f,_0x1e3f79),_0x24bab9(_0x2f5b6f,this['attributes'])||(this['attributes']=_0x2f5b6f,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 _0x59f381()['substr'](0x1,0x5);}}function o(_0x27c04f,_0x6231c2,_0xcedf3){const t=_0x27c04f['t'];switch(_0x6231c2){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',_0xcedf3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xcedf3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xcedf3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xcedf3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xcedf3);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',_0xcedf3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xcedf3);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',_0xcedf3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xcedf3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xcedf3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xcedf3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xcedf3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xcedf3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xcedf3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xcedf3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xcedf3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xcedf3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xcedf3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xcedf3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xcedf3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xcedf3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xcedf3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xcedf3);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'},_0xcedf3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xcedf3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xcedf3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xcedf3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xcedf3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xcedf3);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'},_0xcedf3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xcedf3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xcedf3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xcedf3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xcedf3);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'},_0xcedf3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xcedf3);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'},_0xcedf3);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'},_0xcedf3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xcedf3);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'},_0xcedf3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xcedf3);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'},_0xcedf3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xcedf3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xcedf3);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'},_0xcedf3);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'},_0xcedf3);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 _0x6231c2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x150949,_0x59e231){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x150949,this['_locale']=_0x59e231;}['getDescriptions'](_0x3fe89c){const _0x446e5d=[],_0x4d0c55=new Set(),_0x2dc26c=new Set();for(let _0x314a96=0x0;_0x314a96<_0x3fe89c['length'];_0x314a96++){const _0x38c582=_0x3fe89c[_0x314a96];if(!_0x38c582['isInContent'])continue;const _0x19c36c=this['_handleCustomCallbackDescription'](_0x38c582);if(_0x19c36c){if(null!=_0x38c582['subType']){if(_0x4d0c55['has'](_0x38c582['subType']))continue;_0x4d0c55['add'](_0x38c582['subType']);}_0x446e5d['push'](_0x19c36c);}else{if('attribute'!=_0x38c582['type'])'insertion'!=_0x38c582['type']&&'deletion'!=_0x38c582['type']||this['_handleInsertRemoveSuggestionDescription'](_0x446e5d,_0x38c582,_0x3fe89c[_0x314a96+0x1]);else{const _0x2a8a3c=_0x38c582['data']['key'];if(_0x2dc26c['has'](_0x2a8a3c))continue;_0x2dc26c['add'](_0x38c582['data']['key']),_0x2a8a3c==m?this['_handleRenameSuggestionDescription'](_0x446e5d,_0x38c582):this['_handleAttributeSuggestionDescription'](_0x446e5d,_0x38c582);}}}return this['_resolveDescriptionItems'](_0x446e5d);}['registerDescriptionCallback'](_0x5f1ed0){this['_customCallbacks']['push'](_0x5f1ed0);}['registerElementLabel'](_0x5126ba,_0x1085ef,_0x27f4c2=_0x1d17d2['normal']){'function'==typeof _0x5126ba?_0x21312b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5126ba,'label':_0x1085ef,'priority':_0x27f4c2}):this['_itemLabels']['set'](_0x5126ba,_0x1085ef);}['registerAttributeLabel'](_0x197ff9,_0x1d3507){this['_attributeLabels']['set'](_0x197ff9,_0x1d3507);}['getItemLabel'](_0x4b72c,_0x2bbc18=0x1){let _0x21bb69;for(const _0x3017f7 of this['_itemLabelsCallbacks'])if(_0x3017f7['matchingCallback'](_0x4b72c)){_0x21bb69=_0x3017f7['label'];break;}return _0x21bb69||(_0x21bb69=this['_itemLabels']['get'](_0x4b72c['name'])),_0x21bb69?_0x21bb69(_0x2bbc18):0x1!==_0x2bbc18?_0x2bbc18+'\x20'+_0x4b72c['name']+'s':''+_0x4b72c['name'];}['_addDescriptionItems'](_0xba10c1,_0x59975c){const _0x467b41=_0x59975c['getFirstRange']()['getWalker'](),_0x41e252='insertion'==_0x59975c['type']?'add':'remove';for(const _0x3e594a of _0x467b41){const _0x363b06=_0x3e594a['item'],_0x2ad1a1=_0xba10c1[_0xba10c1['length']-0x1];if(_0x363b06['is']('$textProxy'))_0x2ad1a1&&_0x2ad1a1['type']['indexOf']('Container')>-0x1&&_0xba10c1['pop'](),_0x2ad1a1&&'text'==_0x2ad1a1['type']?_0x2ad1a1[_0x41e252]+=_0x363b06['data']:_0xba10c1['push']({'type':'text','add':'add'==_0x41e252?_0x363b06['data']:'','remove':'remove'==_0x41e252?_0x363b06['data']:''});else{if(this['_schema']['isObject'](_0x363b06)){const _0x4dce1e=_0x363b06;if(_0x2ad1a1&&_0x2ad1a1['type']['indexOf']('Container')>-0x1&&_0xba10c1['pop'](),'elementEnd'==_0x3e594a['type'])continue;_0x2ad1a1&&_0x2ad1a1['type']==_0x41e252+'Object'&&_0x2ad1a1['element']['name']==_0x4dce1e['name']?_0x2ad1a1['quantity']++:_0xba10c1['push']({'type':_0x41e252+'Object','element':_0x4dce1e,'quantity':0x1}),_0x467b41['skip'](_0x14d0ee=>!('elementEnd'==_0x14d0ee['type']&&_0x14d0ee['item']==_0x363b06));}else{if(this['_schema']['checkChild'](_0x363b06,'$text')||_0x363b06['is']('element','softBreak')){const _0x5d93ec=_0x363b06;if('add'==_0x41e252&&'elementStart'==_0x3e594a['type']||'remove'==_0x41e252&&'elementEnd'==_0x3e594a['type'])continue;if(_0x2ad1a1&&-0x1==_0x2ad1a1['type']['indexOf']('Container')){'text'==_0x2ad1a1['type']&&(_0x2ad1a1[_0x41e252]+='\x0a');continue;}let _0x23c89a;if(_0x23c89a='add'==_0x41e252?_0x5d93ec['nextSibling']&&!this['_schema']['isObject'](_0x5d93ec['nextSibling'])?_0x5d93ec['nextSibling']:null:_0x5d93ec['previousSibling']&&!this['_schema']['isObject'](_0x5d93ec['previousSibling'])?_0x5d93ec['previousSibling']:null,_0x5d93ec['isEmpty']||_0x23c89a&&_0x23c89a['isEmpty']){const _0xca9f6b=_0x23c89a&&_0x23c89a['isEmpty']?_0x23c89a:_0x5d93ec;_0x2ad1a1&&_0x2ad1a1['type']==_0x41e252+'EmptyContainer'&&_0x2ad1a1['element']['name']==_0xca9f6b['name']?_0x2ad1a1['quantity']++:_0xba10c1['push']({'type':_0x41e252+'EmptyContainer','element':_0xca9f6b,'quantity':0x1});}else _0xba10c1['push']({'type':_0x41e252+'Container','element':_0x5d93ec});}}}}}['_resolveDescriptionItems'](_0x32bca1){const _0x356fff=this['_locale'],_0x467a13=[],_0x1e7d54=[],_0x26a3b3=[];for(const _0x19022c of _0x32bca1)switch(_0x19022c['type']){case'text':if(_0x19022c['add']=_0x19022c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x19022c['remove']=_0x19022c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x19022c['add']&&''!=_0x19022c['remove']){_0x467a13['push']({'type':'replace','content':o(_0x356fff,'REPLACE_TEXT',['\x22'+_0x19022c['remove']+'\x22','\x22'+_0x19022c['add']+'\x22'])});continue;}if(null!=_0x19022c['add']['match'](/^ +$/)){_0x467a13['push']({'type':'insertion','content':o(_0x356fff,'*Insert:*\x20%0',o(_0x356fff,'ELEMENT_SPACE',_0x19022c['add']['length']))});continue;}if(null!=_0x19022c['remove']['match'](/^ +$/)){_0x467a13['push']({'type':'deletion','content':o(_0x356fff,'*Remove:*\x20%0',o(_0x356fff,'ELEMENT_SPACE',_0x19022c['remove']['length']))});continue;}if(''!=_0x19022c['add']){_0x467a13['push']({'type':'insertion','content':o(_0x356fff,'*Insert:*\x20%0','\x22'+_0x19022c['add']+'\x22')});continue;}_0x467a13['push']({'type':'deletion','content':o(_0x356fff,'*Remove:*\x20%0','\x22'+_0x19022c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x467a13['push']({'type':'insertion','content':o(_0x356fff,'*Insert:*\x20%0',this['getItemLabel'](_0x19022c['element'],_0x19022c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x467a13['push']({'type':'deletion','content':o(_0x356fff,'*Remove:*\x20%0',this['getItemLabel'](_0x19022c['element'],_0x19022c['quantity']))});continue;case'addContainer':_0x467a13['push']({'type':'insertion','content':o(_0x356fff,'*Split:*\x20%0',this['getItemLabel'](_0x19022c['element'],_0x19022c['quantity']))});continue;case'removeContainer':_0x467a13['push']({'type':'deletion','content':o(_0x356fff,'*Merge:*\x20%0',this['getItemLabel'](_0x19022c['element'],_0x19022c['quantity']))});continue;case'addFormat':_0x1e7d54['push'](_0x19022c['key']);continue;case'removeFormat':_0x26a3b3['push'](_0x19022c['key']);continue;default:_0x467a13['push'](_0x19022c);}if(_0x1e7d54['length']){const _0x5788ad=_0x1e7d54['map'](_0x510510=>this['_attributeLabels']['has'](_0x510510)?this['_attributeLabels']['get'](_0x510510):_0x510510)['join'](',\x20');_0x467a13['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5788ad)});}if(_0x26a3b3['length']){const _0x5ef063=_0x26a3b3['map'](_0x127cdb=>this['_attributeLabels']['has'](_0x127cdb)?this['_attributeLabels']['get'](_0x127cdb):_0x127cdb)['join'](',\x20');_0x467a13['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5ef063)});}return _0x467a13;}['_handleCustomCallbackDescription'](_0x5d0869){for(const _0x490bc5 of this['_customCallbacks']){const _0x198326=_0x490bc5(_0x5d0869);if(_0x198326&&'type'in _0x198326)return _0x198326;}}['_handleAttributeSuggestionDescription'](_0x31730b,_0x5014f2){const _0x14f718=_0x5014f2['data'],_0xba114b=void 0x0===_0x14f718['newValue']?'removeFormat':'addFormat';_0x31730b['push']({'type':_0xba114b,'key':_0x14f718['key']});}['_handleRenameSuggestionDescription'](_0x3aa254,_0x5e6416){_0x3aa254['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5e6416['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x42e8a9,_0x455fc7,_0x445d29){if(this['_addDescriptionItems'](_0x42e8a9,_0x455fc7),_0x445d29&&_0x445d29['getFirstRange']()&&!_0x455fc7['getFirstRange']()['end']['isEqual'](_0x445d29['getFirstRange']()['start'])){const _0x24ef83=_0x42e8a9[_0x42e8a9['length']-0x1],_0x373533='insertion'==_0x455fc7['type']?'add':'remove';_0x24ef83&&'text'==_0x24ef83['type']&&(_0x24ef83[_0x373533]+='\x0a');}}}class E extends _0x198c8f{['afterInit'](){const _0x72b6ca=this['editor'],_0x45025a=_0x72b6ca['plugins']['get']('TrackChangesEditing');_0x72b6ca['commands']['get']('showAIAssistant')&&_0x45025a['enableCommand']('showAIAssistant');}}class V extends _0x198c8f{['afterInit'](){const _0x3e933d=this['editor'],_0x87f412=_0x3e933d['locale'];if(!_0x3e933d['plugins']['has']('AlignmentEditing'))return;const _0x3dfbc1=_0x3e933d['plugins']['get']('TrackChangesEditing');_0x3dfbc1['enableDefaultAttributesIntegration']('alignment'),_0x3dfbc1['registerBlockAttribute']('alignment'),_0x3dfbc1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x87f412,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x572fd4=this['editor'],_0x21d1c5=_0x572fd4['locale'];_0x572fd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x483f27=>{if('formatBlock'!=_0x483f27['type'])return;const {data:_0x365a32}=_0x483f27;if(_0x365a32&&'alignment'==_0x365a32['commandName']){const _0x34525a=_0x365a32['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21d1c5,'*Format:*\x20%0',function(_0x3b2c09){switch(_0x3b2c09){case'left':return o(_0x21d1c5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21d1c5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21d1c5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21d1c5,'FORMAT_JUSTIFY_TEXT');}}(_0x34525a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x198c8f{['afterInit'](){const _0x1a223b=this['editor'],_0x4ac258=_0x1a223b['plugins']['get']('TrackChangesEditing'),_0x2380c5=_0x1a223b['locale'];for(const _0xb0b45f of ti){if(!_0x1a223b['plugins']['has'](_0xb0b45f))continue;const _0x43b218=_0xb0b45f['slice'](0x0,-0x7)['toLowerCase'](),_0xbebd39='FORMAT_'+_0x43b218['toUpperCase']();_0x4ac258['enableDefaultAttributesIntegration'](_0x43b218),_0x4ac258['registerInlineAttribute'](_0x43b218),_0x4ac258['descriptionFactory']['registerAttributeLabel'](_0x43b218,o(_0x2380c5,_0xbebd39));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574451=this['editor'],_0x117ac2=_0x574451['locale'],_0x3f845c=_0x574451['plugins']['get']('TrackChangesEditing');function _0x22e7ec(_0x54f65b,_0x90695b){_0x3f845c['descriptionFactory']['registerDescriptionCallback'](_0x4bb33c=>{if('formatInline'!=_0x4bb33c['type'])return;const {data:_0x388ee7}=_0x4bb33c;return _0x388ee7&&_0x388ee7['commandName']===_0x54f65b?_0x388ee7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x117ac2,'*Format:*\x20%0',_0x90695b)}:{'type':'format','content':o(_0x117ac2,'*Remove\x20format:*\x20%0',_0x90695b)}:void 0x0;});}_0x22e7ec('bold',o(_0x117ac2,'FORMAT_BOLD')),_0x22e7ec('italic',o(_0x117ac2,'FORMAT_ITALIC')),_0x22e7ec('underline',o(_0x117ac2,'FORMAT_UNDERLINE')),_0x22e7ec('code',o(_0x117ac2,'FORMAT_CODE')),_0x22e7ec('strikethrough',o(_0x117ac2,'FORMAT_STRIKETHROUGH')),_0x22e7ec('subscript',o(_0x117ac2,'FORMAT_SUBSCRIPT')),_0x22e7ec('superscript',o(_0x117ac2,'FORMAT_SUPERSCRIPT'));}}class O extends _0x198c8f{['afterInit'](){const _0x2ce5a8=this['editor'],_0x3791a1=_0x2ce5a8['locale'];if(!_0x2ce5a8['plugins']['has']('BlockQuoteEditing'))return;const _0x14b4c4=_0x2ce5a8['plugins']['get']('TrackChangesEditing'),_0x469b7d=this['editor']['commands']['get']('blockQuote');_0x14b4c4['enableCommand']('blockQuote',(_0x4f4c94,_0x13eb25={})=>{const _0xe0d5e3=this['editor']['model']['document']['selection'],_0x52bcd7=_0x13eb25&&void 0x0!==_0x13eb25['forceValue']?_0x13eb25['forceValue']:!_0x469b7d['value'];let _0x38e9a1=[];if(_0x52bcd7){const _0x4a014c=Array['from'](_0xe0d5e3['getSelectedBlocks']())['filter'](_0x2a9f18=>oo(_0x2a9f18)||function(_0x53ec1e,_0x17ed8a){const _0x197db8=_0x17ed8a['checkChild'](_0x53ec1e['parent'],'blockQuote'),_0x21d67c=_0x17ed8a['checkChild'](['$root','blockQuote'],_0x53ec1e);return _0x197db8&&_0x21d67c;}(_0x2a9f18,this['editor']['model']['schema']));_0x38e9a1=to(_0x4a014c,_0x2ce5a8['model']);}else{const _0x5dbc6d=Array['from'](_0xe0d5e3['getSelectedBlocks']())['filter'](_0x39ed8d=>oo(_0x39ed8d));_0x38e9a1=to(_0x5dbc6d,_0x2ce5a8['model']);}_0x2ce5a8['model']['change'](()=>{for(const _0x250cf7 of _0x38e9a1)_0x14b4c4['markBlockFormat'](_0x250cf7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x52bcd7}]});});}),_0x14b4c4['descriptionFactory']['registerDescriptionCallback'](_0x432c93=>{const {data:_0x15b668}=_0x432c93;if(_0x15b668&&'blockQuote'==_0x15b668['commandName']){const _0x101304=o(_0x3791a1,'ELEMENT_BLOCK_QUOTE');return _0x15b668['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3791a1,'*Set\x20format:*\x20%0',_0x101304)}:{'type':'format','content':o(_0x3791a1,'*Remove\x20format:*\x20%0',_0x101304)};}});}}function oo(_0x3a54cb){return'blockQuote'==_0x3a54cb['parent']['name'];}class G extends _0x198c8f{['afterInit'](){const _0x5d82b9=this['editor'];_0x5d82b9['plugins']['has']('CaseChange')&&(_0x5d82b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5d82b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5d82b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x198c8f{['afterInit'](){const _0x374aa6=this['editor'];_0x374aa6['commands']['get']('ckbox')&&_0x374aa6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x198c8f{['afterInit'](){const _0x33316c=this['editor'];if(!_0x33316c['plugins']['has']('CodeBlock'))return;const _0x4aa98b=_0x33316c['plugins']['get']('TrackChangesEditing'),_0xa4f90=_0x33316c['locale'],_0x59612d=_0x33316c['config']['get']('codeBlock')['languages'],_0x326361=_0x33316c['commands']['get']('codeBlock');_0x4aa98b['enableCommand']('indentCodeBlock'),_0x4aa98b['enableCommand']('outdentCodeBlock'),_0x4aa98b['enableCommand']('codeBlock',(_0x2a36a5,_0x1f1600={})=>{const _0x4ea63e=_0x33316c['model'],_0x3b2f2b=_0x33316c['model']['document']['selection'],_0xc82e02=_0x1f1600&&void 0x0!==_0x1f1600['forceValue']?_0x1f1600['forceValue']:!_0x326361['value'];let _0x295179;_0x1f1600['language']||(_0x1f1600['language']=_0x59612d[0x0]['language']),_0x295179=_0xc82e02?Array['from'](_0x3b2f2b['getSelectedBlocks']())['filter'](_0x52e6f0=>eo(_0x52e6f0)||function(_0x3d6a7e,_0x323df5){if(_0x3d6a7e['is']('rootElement')||_0x323df5['isLimit'](_0x3d6a7e))return!0x1;return _0x323df5['checkChild'](_0x3d6a7e['parent'],'codeBlock');}(_0x52e6f0,_0x4ea63e['schema'])):Array['from'](_0x3b2f2b['getSelectedBlocks']())['filter'](_0x467725=>eo(_0x467725));const _0x547e1d=to(_0x295179,_0x4ea63e);_0x4ea63e['change'](()=>{for(const _0x304410 of _0x547e1d)_0x4aa98b['markBlockFormat'](_0x304410,{'commandName':'codeBlock','commandParams':[{..._0x1f1600,'forceValue':_0xc82e02}],'formatGroupId':'blockName'});});}),(_0x4aa98b['descriptionFactory']['registerElementLabel']('codeBlock',_0x44c6e5=>o(_0xa4f90,'ELEMENT_CODE_BLOCK',_0x44c6e5)),_0x4aa98b['descriptionFactory']['registerDescriptionCallback'](_0x490c33=>{if('formatBlock'!=_0x490c33['type'])return;const _0x67b3c4=_0xa4f90['t'],{data:_0x5b1c01}=_0x490c33;if(!_0x5b1c01||'codeBlock'!=_0x5b1c01['commandName'])return;const _0x4f06ad=_0x5b1c01['commandParams'][0x0]['language'],_0x176a72=_0x67b3c4(_0x59612d['find'](_0x57b2a2=>_0x57b2a2['language']===_0x4f06ad)['label'])['toLowerCase']();return _0x5b1c01['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa4f90,'*Set\x20format:*\x20%0',o(_0xa4f90,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x176a72+')')}:{'type':'format','content':o(_0xa4f90,'*Remove\x20format:*\x20%0',o(_0xa4f90,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4f7ce5){return'codeBlock'==_0x4f7ce5['name'];}class H extends _0x198c8f{['afterInit'](){const _0x2dff30=this['editor'];if(!_0x2dff30['plugins']['has']('CommentsEditing'))return;_0x2dff30['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x9bf02f,_0xa4b435,_0x3101ec){const _0x3774ba=[];for(const _0x5ab231 of _0xa4b435['getItems']())_0x5ab231['hasAttribute'](_0x9bf02f)&&_0x3774ba['push'](_0x3101ec['createRangeOn'](_0x5ab231));return _0x3774ba;}function _e(_0xcf985f,_0xcdf465,{showActiveMarker:_0x2ca91a=!0x0}={}){const _0x5a6df1=_0xcf985f['plugins']['get']('TrackChangesEditing');return(_0x179e35,_0x2cb5cd,_0x1ef2d8)=>{if(!_0x1ef2d8['consumable']['test'](_0x2cb5cd['markerRange'],_0x179e35['name']))return;const _0x1e554b=_0x2cb5cd['markerRange']['getWalker'](),_0x5acf23=_0x2cb5cd['markerRange']['start'],_0x2583e8=_0xcf985f['model']['schema'];let _0x231198=null,_0x4e5838=null,_0x3cc39=!0x1,_0x52e38d=!0x1;for(const _0x538526 of _0x1e554b){const _0x4086c5=_0x538526['item'];_0x3cc39=_0x3cc39||_0x2583e8['isContent'](_0x4086c5);const _0x4ad78c=_0x1ef2d8['mapper']['toViewElement'](_0x4086c5);if(_0x4ad78c&&_0x4ad78c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x538526['type']&&(_0x2583e8['isBlock'](_0x4086c5)&&!_0x2583e8['isLimit'](_0x4086c5)&&(_0x4086c5['nextSibling']||_0x5acf23['isAtEnd']?_0x231198&&_0x231198['parent']==_0x4086c5||(_0x231198=_0x4086c5,_0x182f42(_0x538526['previousPosition']),_0x52e38d=!0x0):_0x4e5838=_0x4e5838||_0x538526['previousPosition']));}function _0x182f42(_0x5a2cee){const _0x8f321=_0x1ef2d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcdf465}),_0x391de8=_0x1ef2d8['mapper']['toViewPosition'](_0x5a2cee);_0x2ca91a&&_0x5a6df1['activeMarkers']['includes'](_0x2cb5cd['markerName'])&&_0x1ef2d8['writer']['addClass']('ck-suggestion-marker--active',_0x8f321),_0x1ef2d8['writer']['insert'](_0x391de8,_0x8f321),_0x1ef2d8['mapper']['bindElementToMarker'](_0x8f321,_0x2cb5cd['markerName']);}_0x3cc39||_0x52e38d||!_0x4e5838||_0x182f42(_0x4e5838);};}class q extends _0x198c8f{static get['requires'](){return[_0x458a5a];}['init'](){const _0x564d43=this['editor'],_0x3a7505=_0x564d43['plugins']['get']('TrackChangesEditing');_0x3a7505['enableCommand']('delete');const _0x4a7f71=_0x564d43['commands']['get']('deleteForward');_0x3a7505['enableCommand']('deleteForward',(_0x457dc4,_0x2efba0={})=>{const _0x1e0b87=_0x564d43['model']['createSelection'](_0x564d43['model']['document']['selection']);_0x1e0b87['isCollapsed']&&_0x564d43['model']['modifySelection'](_0x1e0b87,{'direction':'forward','unit':_0x2efba0['unit']});const _0x2c8ad2=_0x1e0b87['getFirstRange'](),_0x3d3f50=_0x3123fd['fromRange'](_0x2c8ad2);let _0x5cdd41;_0x457dc4(_0x2efba0),_0x5cdd41='$graveyard'==_0x3d3f50['root']['rootName']?_0x564d43['model']['createRange'](_0x2c8ad2['start']):_0x564d43['model']['createRange'](_0x3d3f50['start'],_0x3d3f50['end']),_0x3d3f50['detach'](),_0x564d43['model']['enqueueChange'](_0x4a7f71['buffer']['batch'],_0x5167d8=>{_0x4a7f71['buffer']['lock'](),_0x5167d8['setSelection'](_0x5167d8['createRange'](_0x5cdd41['end'])),_0x4a7f71['buffer']['unlock']();});}),_0x564d43['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x564d43,'merge'),{'priority':'high'}),_0x564d43['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x28d6e0,_0x86f7ca,_0x14959a)=>{_0x14959a['options']['showSuggestionHighlights']&&_e(_0x564d43,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x28d6e0,_0x86f7ca,_0x14959a);},{'priority':'high'}),_0x564d43['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d59ef,_0x577772,_0x3e459b)=>{const _0x571d37=_0x3e459b['mapper']['markerNameToElements'](_0x577772['markerName']);if(_0x571d37){for(const _0x473ea6 of _0x571d37)_0x473ea6['is']('uiElement')&&(_0x3e459b['mapper']['unbindElementFromMarkerName'](_0x473ea6,_0x577772['markerName']),_0x3e459b['writer']['remove'](_0x473ea6));}},{'priority':'high'});}}class z extends _0x198c8f{['afterInit'](){const _0x3c79d8=this['editor'];if(!_0x3c79d8['plugins']['has']('ListEditing'))return;const _0x178426=_0x3c79d8['locale'],_0x610c3d=_0x3c79d8['plugins']['get']('TrackChangesEditing'),_0x542586=_0x3c79d8['plugins']['has']('TodoListEditing'),_0x533608=!!_0x3c79d8['config']['get']('list.multiBlock');function _0x520fdb(_0x1fec4c){return{'type':'format','content':''+o(_0x178426,'*Set\x20format:*\x20%0',_0x1fec4c)};}function _0x3cdfa5(_0x1ea8d1){return{'type':'format','content':''+o(_0x178426,'*Remove\x20format:*\x20%0',_0x1ea8d1)};}_0x610c3d['enableDefaultAttributesIntegration']('numberedList'),_0x610c3d['enableDefaultAttributesIntegration']('bulletedList'),_0x610c3d['enableDefaultAttributesIntegration']('customNumberedList'),_0x610c3d['enableDefaultAttributesIntegration']('customBulletedList'),_0x610c3d['enableDefaultAttributesIntegration']('indentList'),_0x610c3d['enableDefaultAttributesIntegration']('outdentList'),_0x610c3d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x610c3d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x610c3d['registerBlockAttribute']('listItemId'),_0x610c3d['registerBlockAttribute']('listType'),_0x610c3d['registerBlockAttribute']('listIndent'),_0x533608&&(_0x610c3d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x610c3d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x542586&&(_0x610c3d['enableDefaultAttributesIntegration']('todoList'),_0x610c3d['enableDefaultAttributesIntegration']('checkTodoList'),_0x610c3d['registerBlockAttribute']('todoListChecked'),_0x610c3d['descriptionFactory']['registerDescriptionCallback'](_0x204576=>{const {data:_0x4fcba0}=_0x204576;if(_0x4fcba0&&'todoListChecked'==_0x4fcba0['key'])return{'type':'format','content':_0x4fcba0['newValue']?o(_0x178426,'*Check\x20item*'):o(_0x178426,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5f4f91=>{if(_0x5f4f91['batch']['isUndo'])return!0x1;let _0xd2d770=!0x1;const _0x410c8a=_0x610c3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d5f83=>'todoListChecked'===_0x610c3d['_getAttributeKey'](_0x1d5f83));for(const _0xd86fba of _0x410c8a){'todo'!=_0xd86fba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x610c3d['_findSuggestions'](_0xd86fba['getFirstRange'](),'attribute')['find'](_0x31e432=>'listType'===_0x610c3d['_getAttributeKey'](_0x31e432['suggestion']))||(_0x5f4f91['removeMarker'](_0xd86fba['getFirstMarker']()),_0xd2d770=!0x0));}return _0xd2d770;})),_0x610c3d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x178426,'FORMAT_INDENT'));const _0x531209={'type':'format','content':''};_0x610c3d['descriptionFactory']['registerDescriptionCallback'](_0x2afb31=>{const {data:_0x9f85fa}=_0x2afb31;if(!_0x9f85fa||'listType'!=_0x9f85fa['key'])return;let _0x16e481=_0x2afb31['head'];for(;_0x16e481;){if(_0x16e481['data']&&(('listStyle'==_0x16e481['data']['key']||'listMarkerStyle'==_0x16e481['data']['key'])&&(_0x16e481['data']['newValue']&&'default'!=_0x16e481['data']['newValue']||'default'!=_0x16e481['data']['oldValue']&&!_0x9f85fa['newValue'])||!_0x533608&&_0x16e481['data']['key']==m))return _0x531209;_0x16e481=_0x16e481['next'];}if(null==_0x9f85fa['newValue'])switch(_0x9f85fa['oldValue']){case'bulleted':return _0x3cdfa5(o(_0x178426,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cdfa5(o(_0x178426,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cdfa5(o(_0x178426,'ELEMENT_TODO_LIST'));}switch(_0x9f85fa['newValue']){case'bulleted':return _0x520fdb(o(_0x178426,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x520fdb(o(_0x178426,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x520fdb(o(_0x178426,'ELEMENT_TODO_LIST'));}}),_0x610c3d['descriptionFactory']['registerDescriptionCallback'](_0x405f04=>{const {data:_0x10bee3}=_0x405f04;if(_0x10bee3&&'listIndent'==_0x10bee3['key'])return null==_0x10bee3['newValue']||null==_0x10bee3['oldValue']&&0x0==_0x10bee3['newValue']?_0x531209:void 0x0;}),_0x610c3d['descriptionFactory']['registerDescriptionCallback'](_0x543888=>{if('attribute'!=_0x543888['type'])return;const {data:_0x17370f}=_0x543888;if(!_0x17370f||'listItemId'!=_0x17370f['key'])return;const _0x40c29d=le(_0x543888);return'newValue'==_0x40c29d?{'type':'format','content':o(_0x178426,'*Merge:*\x20list\x20item')}:'oldValue'==_0x40c29d?{'type':'format','content':o(_0x178426,'*Split:*\x20list\x20item')}:_0x531209;}),_0x3c79d8['model']['document']['registerPostFixer'](_0x5ada99=>this['listItemIdFixer'](_0x5ada99)),_0x3c79d8['model']['document']['registerPostFixer'](_0x318be8=>this['noTrackChangesFixer'](_0x318be8)),_0x3c79d8['model']['document']['registerPostFixer'](_0x126e86=>this['assureChains'](_0x126e86)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x164826){if(_0x164826['batch']['isUndo']||!_0x164826['batch']['isLocal'])return!0x1;let _0x314da3=!0x1;const _0x215558=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55da08=>_0x55da08['data']&&'listItemId'==_0x55da08['data']['key'])['filter'](_0x2902cb=>_0x2902cb['data']['newValue']&&_0x2902cb['data']['oldValue']);for(const _0x3026c3 of _0x215558)le(_0x3026c3)||(_0x164826['removeMarker'](_0x3026c3['getFirstMarker']()),_0x314da3=!0x0);return _0x314da3;}['noTrackChangesFixer'](_0x459ca3){if(_0x459ca3['batch']['isUndo']||!_0x459ca3['batch']['isLocal'])return!0x1;const _0x198322=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x198322['trackChangesCommand']['value'])return!0x1;let _0xe578b=!0x1;const _0x415f17=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1dff93=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x46d4ba=>'attribute'==_0x46d4ba['type'])['filter'](_0x1103c0=>_0x415f17['includes'](_0x1103c0['attributeKey']));if(0x0==_0x1dff93['length'])return _0xe578b;for(const _0x334279 of _0x1dff93){const _0x3c6350=_0x198322['_findSuggestions'](_0x334279['range'],'attribute')['filter'](_0xa29a44=>!_0xa29a44['meta']['isNextTo'])['map'](_0x4a611a=>_0x4a611a['suggestion'])['filter'](_0x2f41ea=>{const _0x5f578b=_0x198322['_getAttributeKey'](_0x2f41ea);return _0x415f17['includes'](_0x5f578b);});if(_0x3c6350['length']){for(const _0x2331d8 of _0x3c6350)_0x459ca3['removeMarker'](_0x2331d8['getFirstMarker']());_0xe578b=!0x0;}}return _0xe578b;}['assureChains'](_0x129c32){if(_0x129c32['batch']['isUndo']||!_0x129c32['batch']['isLocal'])return!0x1;const _0x287f3d=this['editor']['plugins']['get']('TrackChangesEditing');let _0x63db6a=!0x1;const _0x528146=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x43b864 of _0x287f3d['getSuggestions']({'skipNotAttached':!0x0})){const _0x4c2084=_0x287f3d['_findSuggestions'](_0x43b864['getFirstRange'](),'attribute')['map'](_0xae6bfc=>_0xae6bfc['suggestion'])['filter'](_0x62e6da=>_0x62e6da['data']&&_0x528146['includes'](_0x62e6da['data']['key']));if(!_0x4c2084['length'])continue;const _0x37730d=_0x4c2084[0x0]['head']['attributes']['groupId'];if(!_0x4c2084['every'](_0x423561=>_0x423561['attributes']['groupId']===_0x37730d)){for(const _0x502a47 of _0x4c2084)_0x50604f(_0x502a47,_0x37730d)&&(_0x63db6a=!0x0);}}return _0x63db6a;function _0x5533ae(_0x5620ed,_0x514d07){for(const _0xe0437a of _0x287f3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17266e=>'attribute'==_0x17266e['type']&&_0x17266e['attributes']['groupId']==_0x5620ed))_0xe0437a['setAttribute']('groupId',_0x514d07);}function _0x50604f(_0x16cc77,_0x1d7d51){let _0x3a635b=_0x16cc77['head'],_0x586c44=!0x1;for(;_0x3a635b;)_0x3a635b['attributes']['groupId']!=_0x1d7d51&&(_0x5533ae(_0x3a635b['attributes']['groupId'],_0x1d7d51),_0x3a635b['setAttribute']('groupId',_0x1d7d51),_0x586c44=!0x0),_0x3a635b=_0x3a635b['next'];return _0x586c44;}}['_supportLegacySuggestions'](){const _0xbfa077=this['editor'],_0x54ac36=_0xbfa077['locale'],_0x3f2822=_0xbfa077['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3f2822['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x23ddea,_0x56d63d){const _0x4ddd09=[];for(let _0x41773a of _0x23ddea)_0x41773a['start']['nodeAfter']===_0x41773a['end']['parent']&&(_0x41773a=_0xbfa077['model']['createRange'](_0xbfa077['model']['createPositionAt'](_0x41773a['start']['nodeAfter'],0x0))),_0x4ddd09['push'](_0x41773a);_0xbfa077['model']['change'](_0x55846b=>{const _0x4819e6=_0xbfa077['model']['document']['selection'],_0xb967c8=Array['from'](_0x4819e6['getRanges']())['map'](_0x52cc7e=>_0x3123fd['fromRange'](_0x52cc7e));_0x55846b['setSelection'](_0x4ddd09),_0xbfa077['commands']['get'](_0x56d63d['commandName'])['refresh'](),_0x56d63d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xbfa077['execute'](_0x56d63d['commandName'],..._0x56d63d['commandParams']),_0x55846b['setSelection'](_0xb967c8);for(const _0x16c326 of _0xb967c8)_0x16c326['detach']();});}),_0x3f2822['descriptionFactory']['registerElementLabel'](function(_0x23fd8d){const _0x32def2=!_0xbfa077['model']['schema']['isObject'](_0x23fd8d),_0x356e81=_0x23fd8d['previousSibling'],_0x10645a=_0x23fd8d['nextSibling'],_0x58f6c6=_0x23fd8d['getAttribute']('listItemId'),_0x579b28=!_0x356e81||_0x356e81['getAttribute']('listItemId')!==_0x58f6c6,_0x2260ee=!_0x10645a||_0x10645a['getAttribute']('listItemId')!==_0x58f6c6;return _0x32def2&&Boolean(_0x58f6c6)&&_0x579b28&&_0x2260ee;},_0x383b76=>o(_0x54ac36,'ELEMENT_LIST_ITEM',_0x383b76));}['_registerLegacyDescription'](){const _0x359306=this['editor'],_0xc67bc4=_0x359306['locale'];function _0x5e6e7d(_0x3a32de){const _0x413cff=_0x359306['commands']['get']('bulletedList')['value'],_0x535b56=_0x359306['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a32de?_0x413cff:_0x535b56;}_0x359306['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4cb3c4){if('formatBlock'!=_0x4cb3c4['type'])return;const {data:_0x246b06}=_0x4cb3c4;if(!_0x246b06)return;let _0x52b027,_0x5aa3f1,_0x3bff7d,_0x210dd0;switch(_0x246b06['commandName']){case'bulletedList':_0x3bff7d=_0x246b06['commandParams'][0x0]['forceValue'],_0x210dd0=_0x5e6e7d(_0x246b06['commandName']),_0x52b027=_0x3bff7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x210dd0&&_0x359306['config']['get']('list.multiBlock')||(_0x52b027='*Change\x20to:*\x20%0'),_0x5aa3f1={'type':'format','content':o(_0xc67bc4,_0x52b027,o(_0xc67bc4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3bff7d=_0x246b06['commandParams'][0x0]['forceValue'],_0x210dd0=_0x5e6e7d(_0x246b06['commandName']),_0x52b027=_0x3bff7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x210dd0&&_0x359306['config']['get']('list.multiBlock')||(_0x52b027='*Change\x20to:*\x20%0'),_0x5aa3f1={'type':'format','content':o(_0xc67bc4,_0x52b027,o(_0xc67bc4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x52b027='*Indent:*\x20%0',_0x5aa3f1={'type':'format','content':o(_0xc67bc4,_0x52b027,o(_0xc67bc4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x52b027=function(_0x5eadba){const _0x1f8764=_0x5eadba['getFirstRange']();let _0x2f5971=_0x1f8764['start']['nodeAfter'];for(;_0x2f5971&&_0x1f8764['containsItem'](_0x2f5971);){if(_0x2f5971['getAttribute']('listIndent')>0x0)return!0x1;_0x2f5971=_0x2f5971['nextSibling'];}return!0x0;}(_0x4cb3c4)?o(_0xc67bc4,'*Format:*\x20remove\x20from\x20%0',o(_0xc67bc4,function(_0x13c66a){return'ELEMENT_'+_0x13c66a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4cb3c4))):o(_0xc67bc4,'*Outdent:*\x20%0',o(_0xc67bc4,'ELEMENT_LIST_ITEM')),_0x5aa3f1={'type':'format','content':_0x52b027};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x246b06['multipleBlocks']&&(_0x52b027='*Merge:*\x20%0',_0x5aa3f1={'type':'deletion','content':o(_0xc67bc4,_0x52b027,o(_0xc67bc4,'ELEMENT_LIST_ITEM'))});}return _0x5aa3f1;});}}function le(_0x512788){let _0xb21e9a=_0x512788['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xb21e9a;){const _0x3435ce=_0xb21e9a['getAttribute']('listItemId');if(!_0x3435ce)return!0x1;if(_0x3435ce==_0x512788['data']['newValue'])return'newValue';if(_0x3435ce==_0x512788['data']['oldValue'])return'oldValue';_0xb21e9a=_0xb21e9a['previousSibling'];}return!0x1;}class ue extends _0x198c8f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xbc5fae=this['editor']['config']['get']('list.properties'),_0x2a6ee4=this['editor']['plugins']['get']('TrackChangesEditing');_0xbc5fae['styles']&&(_0x2a6ee4['enableDefaultAttributesIntegration']('listStyle'),_0x2a6ee4['registerBlockAttribute']('listStyle')),_0xbc5fae['reversed']&&(_0x2a6ee4['enableDefaultAttributesIntegration']('listReversed'),_0x2a6ee4['registerBlockAttribute']('listReversed')),_0xbc5fae['startIndex']&&(_0x2a6ee4['enableDefaultAttributesIntegration']('listStart'),_0x2a6ee4['registerBlockAttribute']('listStart'));const _0x3dfcd5={'type':'format','content':''};_0x2a6ee4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x32fc36=this['editor']['locale'];_0x2a6ee4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x32fc36,'FORMAT_LIST_REVERSED')),_0x2a6ee4['descriptionFactory']['registerDescriptionCallback'](_0x394a21=>{const {data:_0x23cde6}=_0x394a21;if(_0x23cde6&&'listReversed'==_0x23cde6['key'])return null==_0x23cde6['newValue']||0x0==_0x23cde6['newValue']&&null==_0x23cde6['oldValue']?_0x3dfcd5:void 0x0;}),_0x2a6ee4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x32fc36,'FORMAT_LIST_START')),_0x2a6ee4['descriptionFactory']['registerDescriptionCallback'](_0x539809=>{const {data:_0x1bc445}=_0x539809;if(_0x1bc445&&'listStart'==_0x1bc445['key'])return null==_0x1bc445['newValue']||0x1==_0x1bc445['newValue']&&null==_0x1bc445['oldValue']?_0x3dfcd5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x13fd90=>{if(_0x13fd90['batch']['isUndo'])return!0x1;let _0x31565c=!0x1;const _0xdec0d7=_0x2a6ee4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x503da9=>{const _0x11be6d=_0x2a6ee4['_getAttributeKey'](_0x503da9);return'listStart'==_0x11be6d||'listReversed'==_0x11be6d;});for(const _0x1b9414 of _0xdec0d7){const _0x301e9a=_0x1b9414['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x301e9a||'customNumbered'==_0x301e9a)continue;_0x2a6ee4['_findSuggestions'](_0x1b9414['getFirstRange'](),'attribute')['find'](_0x1b9712=>'listType'==_0x2a6ee4['_getAttributeKey'](_0x1b9712['suggestion']))||(_0x13fd90['removeMarker'](_0x1b9414['getFirstMarker']()),_0x31565c=!0x0);}return _0x31565c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e23be){const _0xc2aa19=this['editor']['locale'],{data:_0x52ee5b}=_0x5e23be,_0x37e816={'type':'format','content':''};if(!_0x52ee5b||'listStyle'!=_0x52ee5b['key'])return;if(!_0x52ee5b['oldValue'])return'default'==_0x52ee5b['newValue']?_0x37e816:{'type':'format','content':''+o(_0xc2aa19,'*Set\x20format:*\x20%0',o(_0xc2aa19,this['_getTranslationKeyForListStyle'](_0x52ee5b['newValue'])))};if(!_0x52ee5b['newValue']){if('default'==_0x52ee5b['oldValue'])return _0x37e816;let _0xd1af5=_0x5e23be['head'];for(;_0xd1af5;){if(_0xd1af5['data']&&'listType'==_0xd1af5['data']['key']&&_0xd1af5['data']['newValue'])return _0x37e816;_0xd1af5=_0xd1af5['next'];}return{'type':'format','content':''+o(_0xc2aa19,'*Remove\x20format:*\x20%0',o(_0xc2aa19,this['_getTranslationKeyForListStyle'](_0x52ee5b['oldValue'])))};}if('default'!=_0x52ee5b['newValue'])return{'type':'format','content':''+o(_0xc2aa19,'*Set\x20format:*\x20%0',o(_0xc2aa19,this['_getTranslationKeyForListStyle'](_0x52ee5b['newValue'])))};let _0x79ed2b=_0x5e23be['head'];for(;_0x79ed2b;){if(_0x79ed2b['data']&&'listType'==_0x79ed2b['data']['key']&&_0x79ed2b['data']['newValue']&&_0x79ed2b['data']['oldValue'])return _0x37e816;_0x79ed2b=_0x79ed2b['next'];}return{'type':'format','content':o(_0xc2aa19,'*Set\x20format:*\x20%0',o(_0xc2aa19,'ELEMENT_'+_0x5e23be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4e8fdf=this['editor'],_0x4bbc24=_0x4e8fdf['locale'];_0x4e8fdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x159451=>{if('formatBlock'!=_0x159451['type'])return;const {data:_0x36972c}=_0x159451;if(!_0x36972c)return;let _0x3c9bf1,_0x1af5c3;switch(_0x36972c['commandName']){case'listStyle':_0x3c9bf1='*Change\x20to:*\x20%0',_0x1af5c3={'type':'format','content':o(_0x4bbc24,_0x3c9bf1,o(_0x4bbc24,this['_getTranslationKeyForListStyle'](_0x36972c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c9bf1=_0x36972c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1af5c3={'type':'format','content':o(_0x4bbc24,_0x3c9bf1)};break;case'listStart':_0x3c9bf1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1af5c3={'type':'format','content':o(_0x4bbc24,_0x3c9bf1,_0x36972c['commandParams'][0x0]['startIndex'])};}return _0x1af5c3;});}['_getTranslationKeyForListStyle'](_0x2b4924){return'ELEMENT_'+function(_0xa2eee4){if(pe['includes'](_0xa2eee4))return'bulleted';if(ye['includes'](_0xa2eee4))return'numbered';return null;}(_0x2b4924)['toUpperCase']()+'_LIST_'+_0x2b4924['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x198c8f{static get['requires'](){return[_0x50901a];}['init'](){const _0xc6f81d=this['editor'],_0x5acaab=_0xc6f81d['plugins']['get']('TrackChangesEditing'),_0x3a2639=_0xc6f81d['commands']['get']('enter');_0x5acaab['enableCommand']('enter',()=>{_0xc6f81d['model']['change'](_0x23e587=>{const _0x5800b7=_0xc6f81d['model']['document']['selection'],_0x47b1b6=_0x5800b7['getFirstPosition'](),_0x292f17=_0x3123fd['fromRange'](_0x5800b7['getFirstRange']());if(_0x3a2639['enterBlock'](_0x23e587)){const _0x4a56a7=_0xc6f81d['model']['createPositionAt'](_0x47b1b6['parent']['nextSibling'],0x0),_0x51d823=_0x23e587['createRange'](_0x47b1b6,_0x4a56a7);_0x5acaab['markInsertion'](_0x51d823);}else _0x23e587['setSelection'](_0x23e587['createRange'](_0x292f17['end']));_0x292f17['detach'](),_0x3a2639['fire']('afterExecute',{'writer':_0x23e587});});}),_0xc6f81d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xc6f81d,'split'),{'priority':'high'}),_0xc6f81d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x224115,_0x52c04c,_0x1e965a)=>{const _0x1a23de=_0x1e965a['mapper']['markerNameToElements'](_0x52c04c['markerName']);if(_0x1a23de){for(const _0x3c5a64 of _0x1a23de)_0x3c5a64['hasClass']('ck-suggestion-marker-split')&&(_0x1e965a['mapper']['unbindElementFromMarkerName'](_0x3c5a64,_0x52c04c['markerName']),_0x1e965a['writer']['remove'](_0x3c5a64));}},{'priority':'high'}),_0xc6f81d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a5ebc,_0x26e43c,_0x1ea3fa)=>{_0x1ea3fa['options']['showSuggestionHighlights']&&_e(_0xc6f81d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3a5ebc,_0x26e43c,_0x1ea3fa);},{'priority':'high'});}}class J extends _0x198c8f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3a7404=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a7404['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3a7404['enableCommand']('findNext'),_0x3a7404['enableCommand']('findPrevious'),_0x3a7404['enableCommand']('replace'),_0x3a7404['enableCommand']('replaceAll');}['handleFindCommand'](_0x39d10c,_0x41cf38,_0x18d453={}){const _0x41b613=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x39d10c(_0x1db3cc=>('string'==typeof _0x41cf38?_0x41b613['findByTextCallback'](_0x41cf38,_0x18d453):_0x41cf38)(_0x1db3cc)['filter'](_0x514121=>!0x1===this['_isInDeletionRange'](_0x514121,_0x1db3cc['item'])),_0x18d453);}['_isInDeletionRange'](_0x19642e,_0x1f94f5){const _0x23dd29=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f94f5,_0x19642e['start']),this['editor']['model']['createPositionAt'](_0x1f94f5,_0x19642e['end']));for(const _0x44ab07 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23dd29['getIntersection'](_0x44ab07['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 _0x198c8f{['afterInit'](){const _0x36e6f6=this['editor']['locale'],_0xfcd727=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c536b,commandName:_0x3a68aa}of ro)this['editor']['plugins']['has'](_0x3c536b)&&(_0xfcd727['enableDefaultAttributesIntegration'](_0x3a68aa),_0xfcd727['registerInlineAttribute'](_0x3a68aa));_0xfcd727['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x36e6f6,'FORMAT_FONT_SIZE')),_0xfcd727['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x36e6f6,'FORMAT_FONT_FAMILY')),_0xfcd727['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x36e6f6,'FORMAT_FONT_COLOR')),_0xfcd727['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x36e6f6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x280e2a=this['editor'],_0x280a2a=_0x280e2a['locale'];_0x280e2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x286bce=>{const _0x1a7ec1=_0x280a2a['t'];if('formatInline'!=_0x286bce['type'])return;const {data:_0x481ad0}=_0x286bce;if(null!=_0x481ad0){if('fontSize'==_0x481ad0['commandName']){const _0x2a2bf3=_0x481ad0['commandParams'][0x0]['value'];if(_0x2a2bf3){const _0x1c400e=_0x1a7ec1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x10f035=>_0x10f035['model']==_0x2a2bf3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x280a2a,'*Set\x20font\x20size:*\x20%0',_0x1c400e)};}return{'type':'format','content':o(_0x280a2a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x481ad0['commandName']){const _0x1b34c6=_0x481ad0['commandParams'][0x0]['value'];return _0x1b34c6?{'type':'format','content':o(_0x280a2a,'*Set\x20font\x20family:*\x20%0',_0x1b34c6)}:{'type':'format','content':o(_0x280a2a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x481ad0['commandName']){const _0x200230=_0x481ad0['commandParams'][0x0]['value'];if(_0x200230){const _0x267c83=_0x5ce566(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a5310=>_0x4a5310['model']==_0x200230);let _0x2033bb=_0x200230,_0x4c654f='';return _0x267c83&&(_0x2033bb=_0x267c83['label'],_0x4c654f=_0x1a7ec1(_0x2033bb)['toLowerCase']()),{'type':'format','content':o(_0x280a2a,'*Set\x20font\x20color:*\x20%0',_0x4c654f)['trim'](),'color':{'value':_0x200230,'title':_0x4c654f||_0x2033bb}};}return{'type':'format','content':o(_0x280a2a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x481ad0['commandName']){const _0x20705=_0x481ad0['commandParams'][0x0]['value'];if(_0x20705){const _0x36e265=_0x5ce566(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2a3540=>_0x2a3540['model']==_0x20705);let _0x233632=_0x20705,_0x26504b='';return _0x36e265&&(_0x233632=_0x36e265['label'],_0x26504b=_0x1a7ec1(_0x233632)['toLowerCase']()),{'type':'format','content':o(_0x280a2a,'*Set\x20font\x20background\x20color:*\x20%0',_0x26504b)['trim'](),'color':{'value':_0x20705,'title':_0x26504b||_0x233632}};}return{'type':'format','content':o(_0x280a2a,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x198c8f{['afterInit'](){const _0x4586d7=this['editor'],_0x2acd70=_0x4586d7['plugins']['get']('TrackChangesEditing'),_0x537041=_0x4586d7['commands']['get']('copyFormat'),_0x1aab7a=_0x4586d7['commands']['get']('pasteFormat');_0x537041&&_0x1aab7a&&(_0x2acd70['enableDefaultAttributesIntegration']('pasteFormat'),_0x2acd70['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5f1e3c=this['editor'],_0x283db7=_0x5f1e3c['locale'];_0x5f1e3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d6309=>{if('formatBlock'!=_0x4d6309['type']&&'formatInline'!=_0x4d6309['type'])return;const {data:_0x34c8f3}=_0x4d6309;if(_0x34c8f3&&'pasteFormat'===_0x34c8f3['commandName']){const _0x3b3c49=[],_0x5e63d3=_0x34c8f3['commandParams'][0x0];for(const [_0x3df397,_0x533d06]of Object['entries'](_0x5e63d3))_0x3b3c49['push'](so(_0x5f1e3c,_0x3df397,_0x533d06));return _0x3b3c49['length']?{'type':'format','content':o(_0x283db7,'*Set\x20format\x20to:*\x20%0',_0x3b3c49['join'](',\x20'))}:{'type':'format','content':o(_0x283db7,'*Remove\x20all\x20formatting*')};}});}}function so(_0xdb3925,_0x875436,_0x3cfc04){const _0x16d5f2=_0xdb3925['locale']['t'],_0x4129f4=_0x875436['split'](/(?=[A-Z])/)['join']('\x20'),_0xf8ee4a=_0x16d5f2(_0x4129f4['charAt'](0x0)['toUpperCase']()+_0x4129f4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3cfc04)return _0xf8ee4a;if('fontColor'===_0x875436||'fontBackgroundColor'===_0x875436){const _0x1d0c93=_0x5ce566(_0xdb3925['config']['get']('fontColor.colors'))['find'](_0x147bb1=>_0x147bb1['model']==_0x3cfc04);return _0xf8ee4a+'\x20('+(_0x1d0c93?_0x16d5f2(_0x1d0c93['label'])['toLowerCase']():_0x3cfc04)+')';}if('fontSize'===_0x875436&&isNaN(parseFloat(_0x3cfc04))){const _0x1f3538=_0xdb3925['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xdb3925['config']['get']('fontSize.options'))['find'](_0x2be32c=>_0x2be32c['model']==_0x3cfc04);return _0xf8ee4a+'\x20('+(_0x1f3538?_0x16d5f2(_0x1f3538['title'])['toLowerCase']():_0x3cfc04)+')';}return _0xf8ee4a+'\x20('+_0x3cfc04+')';}class Y extends _0x198c8f{['_headingOptions'];['afterInit'](){const _0x1a6115=this['editor'];if(!_0x1a6115['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1a6115['config']['get']('heading.options');const _0x28df6f=_0x1a6115['locale'],_0x30eb40=_0x1a6115['plugins']['get']('TrackChangesEditing');_0x30eb40['enableDefaultAttributesIntegration']('heading');for(const _0x133425 of this['_headingOptions'])'paragraph'!=_0x133425['model']&&_0x30eb40['descriptionFactory']['registerElementLabel'](_0x133425['model'],_0x5c7ae5=>{const _0x3cff1f=this['_getHeadingLevel'](_0x133425['model']);return null!==_0x3cff1f?_0x381840(_0x5c7ae5,_0x3cff1f):_0x3203c9(_0x5c7ae5,_0x133425['title']);});function _0x381840(_0xa6f6a5,_0xbd7386){return o(_0x28df6f,'ELEMENT_HEADING',[_0xa6f6a5,_0xbd7386]);}function _0x3203c9(_0x2f6e84,_0x31b041){return o(_0x28df6f,'ELEMENT_HEADING_CUSTOM',[_0x2f6e84,_0x31b041]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34d278=this['editor'],_0x44aa85=_0x34d278['locale'];function _0x281c0c(_0x5249b3,_0x1358a3){return o(_0x44aa85,'ELEMENT_HEADING_CUSTOM',[_0x5249b3,_0x1358a3]);}_0x34d278['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x562194=>{if('formatBlock'!=_0x562194['type'])return;const {data:_0x4ce332}=_0x562194;if(_0x4ce332&&'heading'==_0x4ce332['commandName']){const _0xd2dfa1=_0x4ce332['commandParams'][0x0]['value'],_0x1c7a67=this['_getHeadingLevel'](_0xd2dfa1);if(null!==_0x1c7a67)return{'type':'format','content':o(_0x44aa85,'*Change\x20to:*\x20%0',(_0x16da00=0x1,_0x702f45=_0x1c7a67,o(_0x44aa85,'ELEMENT_HEADING',[_0x16da00,_0x702f45])))};const _0x4e7f35=this['_headingOptions']['find'](_0x1e2b56=>_0x1e2b56['model']===_0xd2dfa1)['title'];return{'type':'format','content':o(_0x44aa85,'*Change\x20to:*\x20%0',_0x281c0c(0x1,_0x4e7f35))};}var _0x16da00,_0x702f45;});}['_getHeadingLevel'](_0x38eba4){const _0x4979ad=_0x38eba4['match'](/^heading(\d+)/);if(_0x4979ad)return _0x4979ad[0x1];const _0x3c2b35=this['_headingOptions']?.['find'](_0x5da12a=>_0x5da12a['model']==_0x38eba4);if(_0x3c2b35&&_0x3c2b35['view']){const _0xa70657=_0x3c2b35['view'],_0x24f361=(_0xa70657['name']??_0xa70657)['match'](/^h(\d+)/);if(_0x24f361)return _0x24f361[0x1];}return null;}}class Z extends _0x198c8f{['afterInit'](){const _0x28ca1e=this['editor'];if(!_0x28ca1e['plugins']['has']('HighlightEditing'))return;const _0x2464e3=_0x28ca1e['plugins']['get']('TrackChangesEditing'),_0x5cdc56=_0x28ca1e['locale'];_0x2464e3['enableDefaultAttributesIntegration']('highlight'),_0x2464e3['registerInlineAttribute']('highlight'),_0x2464e3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5cdc56,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ff93b=this['editor'],_0x2f11b8=_0x2ff93b['locale'];_0x2ff93b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590451=>{if('formatInline'!=_0x590451['type'])return;const {data:_0x17609c}=_0x590451;if(_0x17609c&&'highlight'==_0x17609c['commandName']){const _0x1fe166=_0x2f11b8['t'],_0x3285b7=_0x17609c['commandParams'][0x0]['value'];if(_0x3285b7){const _0x325351=_0x2ff93b['config']['get']('highlight.options')['find'](_0x4ca0a7=>_0x4ca0a7['model']==_0x3285b7),_0x5ab1a5=_0x1fe166(_0x325351['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f11b8,'*Set\x20highlight:*\x20%0',_0x5ab1a5),'color':{'value':_0x325351['color'],'title':_0x325351['title']}};}return{'type':'format','content':o(_0x2f11b8,'*Remove\x20highlight*',o(_0x2f11b8,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x198c8f{['afterInit'](){const _0x28b9c4=this['editor'];if(!_0x28b9c4['plugins']['has']('HorizontalLineEditing'))return;_0x28b9c4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xfeab55=_0x28b9c4['plugins']['get']('TrackChangesEditing'),_0x3a3867=_0x28b9c4['locale'];_0xfeab55['descriptionFactory']['registerElementLabel']('horizontalLine',_0x10e42e=>o(_0x3a3867,'ELEMENT_HORIZONTAL_LINE',_0x10e42e)),_0x28b9c4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3b1ea0,{writer:_0x3406a2,options:_0x1dfddd})=>{if(!_0x1dfddd['showSuggestionHighlights'])return null;const _0x35c276=_0x3406a2['createContainerElement']('div'),_0x8fb5e5=_0x3406a2['createEmptyElement']('hr');return _0x3406a2['addClass']('ck-horizontal-line',_0x35c276),_0x3406a2['insert'](_0x3406a2['createPositionAt'](_0x35c276,0x0),_0x8fb5e5),_0x35c276;},'converterPriority':'high'});}}class et extends _0x198c8f{['afterInit'](){const _0x18e496=this['editor'];if(!_0x18e496['plugins']['has']('HtmlEmbed'))return;const _0x374be8=_0x18e496['plugins']['get']('TrackChangesEditing'),_0x3eb01e=_0x18e496['locale'];_0x374be8['descriptionFactory']['registerElementLabel']('rawHtml',_0x535321=>o(_0x3eb01e,'ELEMENT_HTML_EMBED',_0x535321)),_0x374be8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x374be8['registerBlockAttribute']('value'),_0x374be8['descriptionFactory']['registerDescriptionCallback'](_0x3bc5f0=>{if('attribute'!=_0x3bc5f0['type'])return;const {data:_0x5e3bd3}=_0x3bc5f0;if(_0x5e3bd3&&'value'==_0x5e3bd3['key']&&_0x3bc5f0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3bdb91=o(_0x3eb01e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3eb01e,'*Change\x20%0\x20content*',_0x3bdb91)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20ac3c=this['editor'],_0xc53375=_0x20ac3c['locale'];_0x20ac3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e67fa=>{if('formatBlock'!=_0x2e67fa['type'])return;const {data:_0x3afe34}=_0x2e67fa;if(_0x3afe34&&'htmlEmbed'==_0x3afe34['commandName']){const _0x5285ed=o(_0xc53375,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc53375,'*Change\x20%0\x20content*',_0x5285ed)};}});}}class it extends _0x198c8f{['afterInit'](){const _0x31c228=this['editor'];if(!_0x31c228['plugins']['has']('ImageEditing'))return;const _0x5be03f=_0x31c228['plugins']['get']('TrackChangesEditing'),_0x1d4659=_0x31c228['plugins']['get']('ImageUtils'),_0x306615=_0x31c228['locale'];_0x5be03f['enableCommand']('insertImage'),_0x5be03f['descriptionFactory']['registerElementLabel']('imageBlock',_0xcdde16=>o(_0x306615,'ELEMENT_IMAGE',_0xcdde16)),_0x5be03f['descriptionFactory']['registerElementLabel']('imageInline',_0x5cffdd=>o(_0x306615,'ELEMENT_INLINE_IMAGE',_0x5cffdd)),_0x5be03f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x306615,'ELEMENT_CAPTION')),_0x31c228['plugins']['has']('ImageUploadEditing')&&_0x5be03f['enableCommand']('uploadImage'),_0x31c228['plugins']['has']('ImageBlockEditing')&&_0x31c228['plugins']['has']('ImageInlineEditing')&&(_0x5be03f['enableCommand']('imageTypeInline',(_0x48ab08,_0x136940)=>{const _0x36dea9=_0x1d4659['getClosestSelectedImageElement'](_0x31c228['model']['document']['selection']);_0x31c228['model']['change'](()=>{_0x5be03f['markBlockFormat'](_0x36dea9,{'commandName':'imageTypeInline','commandParams':[_0x136940]},[],'convertBlockImageToInline');});}),_0x5be03f['enableCommand']('imageTypeBlock',(_0xcc33da,_0x327cd3)=>{_0x31c228['model']['change'](_0x1cb078=>{let _0x3604df=_0x1d4659['getClosestSelectedImageElement'](_0x31c228['model']['document']['selection']),_0x1e4bee=_0x1cb078['createRangeOn'](_0x3604df);const _0x1af28b=_0x1afadf['fromPosition'](_0x1e4bee['start'],'toPrevious'),_0x5b8d4e=_0x1afadf['fromPosition'](_0x1e4bee['end'],'toNext');_0x5be03f['forceDefaultExecution'](()=>_0xcc33da(_0x327cd3)),_0x3604df=_0x1d4659['getClosestSelectedImageElement'](_0x31c228['model']['document']['selection']),_0x1e4bee=_0x1cb078['createRangeOn'](_0x3604df);const _0x395457=_0x1cb078['createRange'](_0x1af28b,_0x5b8d4e);_0x1af28b['detach'](),_0x5b8d4e['detach'](),_0x5be03f['markBlockFormat'](_0x3604df,{'commandName':'imageTypeInline','commandParams':[_0x327cd3]},[],'convertInlineImageToBlock'),_0x395457['start']['isBefore'](_0x1e4bee['start'])&&_0x5be03f['markInsertion'](_0x1cb078['createRange'](_0x395457['start'],_0x1e4bee['start']),'convertInlineImageToBlock'),_0x1e4bee['end']['isBefore'](_0x395457['end'])&&_0x5be03f['markInsertion'](_0x1cb078['createRange'](_0x1e4bee['end'],_0x395457['end']),'convertInlineImageToBlock');});}),_0x5be03f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5be03f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5be03f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5be03f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5be03f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5be03f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x73ee2])=>{const _0x108b29=_0x5be03f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c54b0=_0x73ee2['start'],_0xdaea9d=_0x73ee2['end'];const _0x586c9e=_0x31c228['model']['schema']['getNearestSelectionRange'](_0x2c54b0,'backward'),_0x38fde5=_0x31c228['model']['schema']['getNearestSelectionRange'](_0xdaea9d,'forward');_0x586c9e['isCollapsed']&&(_0x2c54b0=_0x586c9e['start']),_0x38fde5['isCollapsed']&&(_0xdaea9d=_0x38fde5['end']),_0x108b29([_0x31c228['model']['createRange'](_0x2c54b0,_0xdaea9d)]);}),_0x5be03f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c37d6),_0x5be03f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c37d6)),_0x31c228['plugins']['has']('ImageCaptionEditing')&&(_0x5be03f['enableCommand']('toggleImageCaption',(_0x742bf9,_0x1cadb5)=>{const _0x8f4431=_0x31c228['plugins']['get']('ImageCaptionUtils');let _0x104c59=_0x1d4659['getClosestSelectedImageElement'](_0x31c228['model']['document']['selection']),_0x337784=_0x8f4431['getCaptionFromImageModelElement'](_0x104c59);_0x31c228['model']['change'](()=>{if(_0x337784)return void _0x5be03f['markDeletion'](_0x31c228['model']['createRangeOn'](_0x337784));const _0xb4b08a=_0x1d4659['isBlockImage'](_0x104c59);_0x742bf9(_0x1cadb5),_0x104c59=_0x1d4659['getClosestSelectedImageElement'](_0x31c228['model']['document']['selection']),_0x337784=_0x8f4431['getCaptionFromImageModelElement'](_0x104c59),_0x5be03f['markInsertion'](_0x31c228['model']['createRangeOn'](_0x337784),_0xb4b08a?null:'imageCaption');});}),_0x5be03f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c37d6));const _0x3e5f33=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c80c7(_0x1bf5cd,_0x343e9a){const _0x1b1874=_0x3e5f33['findIndex'](({type:_0x18e868,subType:_0x1f02d1})=>_0x1bf5cd['type']==_0x18e868&&_0x1bf5cd['subType']==_0x1f02d1),_0xb4f14f=_0x3e5f33['findIndex'](({type:_0x5dfb2c,subType:_0x49d32f})=>_0x343e9a['type']==_0x5dfb2c&&_0x343e9a['subType']==_0x49d32f);if(_0x1b1874<0x0||_0xb4f14f<0x0)return!0x1;const _0x5c5e08=_0x1bf5cd['getFirstRange'](),_0x49ed15=_0x343e9a['getFirstRange']();if((0x0==_0x1b1874||0x1==_0x1b1874)&&0x2==_0xb4f14f&&_0x5c5e08['isIntersecting'](_0x49ed15))return!0x0;if(0x2==_0x1b1874&&0x3==_0xb4f14f){const _0x241696=_0x5be03f['_findSuggestions'](_0x5c5e08,'insertion')['filter'](({suggestion:_0x5dd9b8,meta:_0x1b13f5})=>_0x1b13f5['isOwn']&&'convertInlineImageToBlock'==_0x5dd9b8['subType']);if(_0x241696['length']>0x1&&_0x49ed15['end']['isEqual'](_0x5c5e08['start']))return!0x0;if(0x1==_0x241696['length']&&(_0x5c5e08['start']['isEqual'](_0x49ed15['end'])||_0x5c5e08['end']['isEqual'](_0x49ed15['start'])))return!0x0;}if(0x3==_0x1b1874&&0x3==_0xb4f14f&&_0x5c5e08['start']['isBefore'](_0x49ed15['start'])){const _0xa06e9d=_0x5c5e08['end']['nodeAfter'],_0x8a99f6=_0x49ed15['start']['nodeBefore'];return _0x1d4659['isBlockImage'](_0xa06e9d)&&_0xa06e9d===_0x8a99f6;}return!0x1;}function _0x2c37d6(_0xbc4541,_0xf38c06){return _0x1c80c7(_0xbc4541,_0xf38c06)?[_0xbc4541,_0xf38c06]:_0x1c80c7(_0xf38c06,_0xbc4541)?[_0xf38c06,_0xbc4541]:null;}_0x31c228['plugins']['has']('ImageResize')&&(_0x5be03f['enableDefaultAttributesIntegration']('resizeImage'),_0x5be03f['registerBlockAttribute']('resizedWidth'),_0x5be03f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x306615,'FORMAT_IMAGE_SIZE'))),_0x31c228['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5be03f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5be03f['registerBlockAttribute']('alt')),_0x5be03f['descriptionFactory']['registerDescriptionCallback'](_0x4a9637=>{if(!!_0x3e5f33['find'](({type:_0x60c66f,subType:_0x1367b9})=>_0x4a9637['type']==_0x60c66f&&_0x4a9637['subType']==_0x1367b9))return _0x4a9637['previous']?{}:void 0x0;}),_0x5be03f['descriptionFactory']['registerDescriptionCallback'](_0x287870=>{if('insertion'==_0x287870['type']||'deletion'==_0x287870['type']){const _0x521592=_0x287870['getContainedElement']();if(_0x521592&&_0x521592['is']('element','caption'))return{'type':'insertion'==_0x287870['type']?'addObject':'removeObject','element':_0x521592,'quantity':0x1};}}),_0x5be03f['descriptionFactory']['registerDescriptionCallback'](_0xf8d347=>'formatBlock'==_0xf8d347['type']&&'convertInlineImageToBlock'==_0xf8d347['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xf8d347['type']&&'convertBlockImageToInline'==_0xf8d347['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5be03f['descriptionFactory']['registerDescriptionCallback'](_0x5e7aa0=>{if('attribute'!=_0x5e7aa0['type'])return;const {data:_0x5d86bd}=_0x5e7aa0;if(!_0x5d86bd||'alt'!=_0x5d86bd['key'])return;const _0x663d47=_0x5d86bd['newValue'];return _0x663d47?{'type':'format','content':o(_0x306615,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x663d47+'\x22')}:{'type':'format','content':o(_0x306615,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3de1=this['editor'],_0xa0416c=_0x2c3de1['locale'];_0x2c3de1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487901=>{if('formatBlock'!=_0x487901['type']&&'formatInline'!=_0x487901['type'])return;const {data:_0x34a931}=_0x487901;if(_0x34a931){if('imageTextAlternative'==_0x34a931['commandName']){const _0x361e2b=_0x34a931['commandParams'][0x0]['newValue'];return _0x361e2b?{'type':'format','content':o(_0xa0416c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x361e2b+'\x22')}:{'type':'format','content':o(_0xa0416c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34a931['commandName']){const _0xcd58ab=_0x34a931['commandParams'][0x0]['width'];return _0xcd58ab?{'type':'format','content':o(_0xa0416c,'*Set\x20image\x20width:*\x20%0',_0xcd58ab)}:{'type':'format','content':o(_0xa0416c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x198c8f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x39114f=this['editor']['locale'],_0x53e64d=this['editor']['plugins']['get']('TrackChangesEditing');_0x53e64d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53e64d['registerBlockAttribute']('src'),_0x53e64d['descriptionFactory']['registerDescriptionCallback'](_0x5a1986=>{if('attribute'!=_0x5a1986['type'])return;const {data:_0x44cb38}=_0x5a1986;return _0x44cb38&&'src'==_0x44cb38['key']?_0x44cb38['newValue']&&_0x44cb38['oldValue']?{'type':'format','content':o(_0x39114f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8c60c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x8c60c5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x8c60c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8c60c5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x8c60c5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeef878=this['editor'],_0x2a2e13=_0xeef878['locale'];_0xeef878['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e87f2=>{if('formatBlock'!=_0x2e87f2['type']&&'formatInline'!=_0x2e87f2['type'])return;const {data:_0x3f752e}=_0x2e87f2;if(!_0x3f752e||'replaceImageSource'!=_0x3f752e['commandName'])return;return{'type':'format','content':o(_0x2a2e13,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x198c8f{['afterInit'](){const _0x50f7b1=this['editor'];if(!_0x50f7b1['plugins']['has']('ImageStyleEditing'))return;const _0x58298b=_0x50f7b1['plugins']['get']('TrackChangesEditing'),_0x2dc33d=_0x50f7b1['plugins']['get']('ImageUtils'),_0x336668={};_0x58298b['enableCommand']('imageStyle',(_0x41f3c1,_0x37c098)=>{const _0x5b6b9b=_0x50f7b1['plugins']['get']('Users')['me'],_0x18da9b=_0x50f7b1['commands']['get']('imageStyle');let _0x309b6f=_0x2dc33d['getClosestSelectedImageElement'](_0x50f7b1['model']['document']['selection']),_0x5de613=_0x50f7b1['model']['createRangeOn'](_0x309b6f),_0xd898f9=_0x18da9b['value'];if(_0xd898f9==_0x37c098['value'])return;const _0x1ede7f={'commandName':'imageStyle','commandParams':[_0x37c098],'formatGroupId':_0x59f381()};_0x50f7b1['model']['change'](()=>{if(_0x58298b['getSuggestions']()['filter'](_0x59c83a=>_0x59c83a['isInContent']&&_0x5b6b9b==_0x59c83a['author']&&('formatBlock'==_0x59c83a['type']||'formatInline'==_0x59c83a['type'])&&('imageStylePreApply'==_0x59c83a['subType']||'imageStylePostApply'==_0x59c83a['subType'])&&_0x59c83a['getFirstRange']()['isEqual'](_0x5de613))['forEach'](_0x2329ec=>_0x58298b['discardSuggestion'](_0x2329ec['head'])),_0x309b6f=_0x2dc33d['getClosestSelectedImageElement'](_0x50f7b1['model']['document']['selection']),_0x5de613=_0x50f7b1['model']['createRangeOn'](_0x309b6f),_0x18da9b['refresh'](),_0x50f7b1['commands']['get']('imageTypeInline')['refresh'](),_0x50f7b1['commands']['get']('imageTypeBlock')['refresh'](),_0xd898f9=_0x18da9b['value'],_0xd898f9!=_0x37c098['value'])return _0x2dc33d['isInlineImage'](_0x309b6f)&&_0x18da9b['shouldConvertImageType'](_0x37c098['value'],_0x309b6f)?(_0x41f3c1({..._0x37c098,'setImageSizes':!0x1}),_0x309b6f=_0x2dc33d['getClosestSelectedImageElement'](_0x50f7b1['model']['document']['selection']),void _0x58298b['markBlockFormat'](_0x309b6f,{..._0x1ede7f,'commandReversedParams':[{'value':_0xd898f9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2dc33d['isBlockImage'](_0x309b6f)?_0x58298b['markBlockFormat'](_0x309b6f,_0x1ede7f,[],'imageStylePostApply'):_0x58298b['markInlineFormat'](_0x5de613,_0x1ede7f,'imageStylePostApply'));});});for(const _0x307560 of _0x50f7b1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x336668[_0x307560['name']]=_0x307560['title']['toLowerCase']();_0x58298b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x58298b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x58298b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x58298b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a994a])=>{_0x2dc33d['setImageNaturalSizeAttributes'](_0x1a994a['getContainedElement']());}),_0x58298b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x27b323,_0x47d328)=>{_0x58298b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x27b323,{'commandName':_0x47d328['commandName'],'commandParams':_0x47d328['commandReversedParams']});}),_0x58298b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30a16a,_0x3d28f7){if(_0x7c84e2(_0x30a16a,_0x3d28f7))return[_0x30a16a,_0x3d28f7];if(_0x7c84e2(_0x3d28f7,_0x30a16a))return[_0x3d28f7,_0x30a16a];return null;});const _0x237dfd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7c84e2(_0x5f40bb,_0x5ee9fe){const _0xf7e383=_0x237dfd['findIndex'](({type:_0x46685b,subType:_0x4cf1db})=>_0x5f40bb['type']==_0x46685b&&_0x5f40bb['subType']==_0x4cf1db),_0x114739=_0x237dfd['findIndex'](({type:_0x1c99d2,subType:_0x45805f})=>_0x5ee9fe['type']==_0x1c99d2&&_0x5ee9fe['subType']==_0x45805f);if(_0xf7e383<0x0||_0x114739<0x0)return!0x1;const _0x3d21fa=_0x5f40bb['getFirstRange'](),_0x573a81=_0x5ee9fe['getFirstRange']();if((0x0==_0xf7e383||0x1==_0xf7e383)&&0x2==_0x114739&&_0x3d21fa['isIntersecting'](_0x573a81))return!0x0;if(0x2==_0xf7e383&&0x3==_0x114739){const _0x17ff67=_0x58298b['_findSuggestions'](_0x3d21fa,'insertion')['filter'](({suggestion:_0x2257e9,meta:_0x414aa7})=>_0x414aa7['isOwn']&&'convertInlineImageToBlock'==_0x2257e9['subType']);if(_0x17ff67['length']>0x1&&_0x573a81['end']['isEqual'](_0x3d21fa['start']))return!0x0;if(0x1==_0x17ff67['length']&&(_0x3d21fa['start']['isEqual'](_0x573a81['end'])||_0x3d21fa['end']['isEqual'](_0x573a81['start'])))return!0x0;}if(0x3==_0xf7e383&&0x3==_0x114739&&_0x3d21fa['start']['isBefore'](_0x573a81['start'])){const _0x273433=_0x3d21fa['end']['nodeAfter'],_0x16b686=_0x573a81['start']['nodeBefore'];return _0x2dc33d['isBlockImage'](_0x273433)&&_0x273433===_0x16b686;}return!0x1;}_0x50f7b1['model']['document']['registerPostFixer'](()=>{let _0x39a85d=!0x1;const _0x45cf40=Array['from'](_0x50f7b1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c030d,data:_0x7abfe}of _0x45cf40){const {group:_0x2544d7,type:_0x18f61b,subType:_0x2dd65f,id:_0x4ffa58}=_0x58298b['_splitMarkerName'](_0x2c030d);if('suggestion'==_0x2544d7&&_0x58298b['hasSuggestion'](_0x4ffa58)){if('formatBlock'==_0x18f61b&&('imageStylePreApply'==_0x2dd65f||'imageStylePostApply'==_0x2dd65f)){const _0x1ca319=_0x58298b['getSuggestion'](_0x4ffa58);if(_0x7abfe['newRange']){const _0x37ac75=_0x1ca319['getFirstRange']()['getContainedElement']();if(_0x2dc33d['isBlockImage'](_0x37ac75))continue;_0x58298b['discardSuggestion'](_0x1ca319),_0x39a85d=!0x0;}}if('insertion'==_0x18f61b&&'imageCaption'==_0x2dd65f&&!_0x7abfe['newRange']){const _0x2b2dd2=_0x58298b['getSuggestion'](_0x4ffa58);_0x2b2dd2['next']&&_0x2b2dd2['next']['isInContent']&&(_0x58298b['discardSuggestion'](_0x2b2dd2['next']),_0x39a85d=!0x0);}}}return _0x39a85d;}),this['_registerLegacyDescription'](_0x336668);}['_registerLegacyDescription'](_0x49d904){const _0x70b83=this['editor'],_0x4b96b5=_0x70b83['locale'];_0x70b83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d7fdd=>{if('formatBlock'!=_0x4d7fdd['type']&&'formatInline'!=_0x4d7fdd['type'])return;const {data:_0x331d7d}=_0x4d7fdd;if(!_0x331d7d||'imageStyle'!=_0x331d7d['commandName'])return;const _0x193514=_0x331d7d['commandParams'][0x0]['value'];return _0x4491d3('side'===_0x193514?o(_0x4b96b5,'FORMAT_SIDE_IMAGE'):_0x49d904[_0x193514]||_0x193514);function _0x4491d3(_0x192688){return{'type':'format','content':o(_0x4b96b5,'*Format:*\x20%0',_0x192688)};}});}}class ot extends _0x198c8f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2a0e34){super(_0x2a0e34),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33ca25=this['editor'],_0x185e91=_0x33ca25['commands']['get']('importWord'),_0x53a8db=_0x33ca25['commands']['get']('trackChanges');_0x185e91&&(_0x185e91['on']('execute',(_0x2a2495,[,_0xa386a3])=>{this['_trackChangesValueDuringImport']=_0x53a8db['value'],_0xa386a3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x185e91,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x185e91,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x53a8db['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33ca25['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4ff874,_0x19123){const {suggestions:_0x30a7a7}=_0x19123,_0x32f079=this['editor']['commands']['get']('trackChanges'),_0x5bc186=_0x32f079['value'];this['_trackChangesValueDuringImport']!==_0x5bc186&&(_0x32f079['execute'](),this['_trackChangesExecuted']=!0x0),_0x30a7a7&&_0x30a7a7['forEach'](({id:_0x3675db,type:_0x2b971e,author:_0x4b14aa,created_at:_0x164541})=>{const _0x2422b2={'id':_0x3675db,'type':_0x2b971e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b14aa,'createdAt':_0x164541?new Date(_0x164541):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2422b2);});}}class rt extends _0x198c8f{['afterInit'](){const _0xff9112=this['editor'],_0xa69c0d=_0xff9112['plugins']['get']('TrackChangesEditing');if(_0xff9112['plugins']['has']('IndentEditing')&&(_0xa69c0d['enableCommand']('indent'),_0xa69c0d['enableCommand']('outdent')),_0xff9112['plugins']['has']('IndentBlock')){for(const _0x340e60 of['indentBlock','outdentBlock'])_0xa69c0d['enableDefaultAttributesIntegration'](_0x340e60);}const _0x2f0877=_0xff9112['locale'];_0xa69c0d['registerBlockAttribute']('blockIndent'),_0xa69c0d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2f0877,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2555da=this['editor'],_0x56279f=_0x2555da['locale'],_0x45abe9=_0x2555da['plugins']['get']('TrackChangesEditing');_0x45abe9['descriptionFactory']['registerDescriptionCallback'](_0x9f6537=>{if('formatBlock'!=_0x9f6537['type'])return;const {data:_0x5f32d6}=_0x9f6537;if(!_0x5f32d6)return;if('indentBlock'!=_0x5f32d6['commandName']&&'outdentBlock'!=_0x5f32d6['commandName'])return;const _0x1bd70c=_0x9f6537['getItems']()[0x0],_0x52369e=_0x45abe9['descriptionFactory']['getItemLabel'](_0x1bd70c);return'indentBlock'==_0x5f32d6['commandName']?{'type':'format','content':o(_0x56279f,'*Indent:*\x20%0',_0x52369e)}:'outdentBlock'==_0x5f32d6['commandName']?{'type':'format','content':o(_0x56279f,'*Outdent:*\x20%0',_0x52369e)}:void 0x0;});}}class at extends _0x198c8f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x198c8f{['afterInit'](){const _0x5878f3=this['editor'];if(!_0x5878f3['plugins']['has']('LinkEditing'))return;const _0x4841da=_0x5878f3['plugins']['get']('TrackChangesEditing'),_0x3493b7=_0x5878f3['commands']['get']('link');_0x4841da['enableDefaultAttributesIntegration']('link'),_0x4841da['enableDefaultAttributesIntegration']('unlink'),_0x4841da['registerInlineAttribute']('linkHref');for(const _0x392f0f of _0x3493b7['manualDecorators'])_0x4841da['registerInlineAttribute'](_0x392f0f['id']),_0x4841da['descriptionFactory']['registerAttributeLabel'](_0x392f0f['id'],'link\x20('+_0x392f0f['label']['toLowerCase']()+')');_0x4841da['descriptionFactory']['registerDescriptionCallback'](_0x4daeaa=>{if('attribute'!=_0x4daeaa['type'])return;const {data:_0x28c907}=_0x4daeaa;if(!_0x28c907||'linkHref'!=_0x28c907['key'])return;const _0x4ba25e=_0x28c907['newValue'],_0x523fd1=_0x5878f3['locale'];return{'type':'format','content':null==_0x4ba25e?o(_0x523fd1,'*Remove\x20link*'):o(_0x523fd1,'*Set\x20link:*\x20%0','\x22'+_0x4ba25e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21f2f6=this['editor'],_0x42721a=_0x21f2f6['locale'];_0x21f2f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30d171=>{if('formatInline'!=_0x30d171['type'])return;const {data:_0x906007}=_0x30d171;if(_0x906007){if('link'==_0x906007['commandName']){const _0x2cd7aa=_0x906007['commandParams'][0x0];return{'type':'format','content':o(_0x42721a,'*Set\x20link:*\x20%0','\x22'+_0x2cd7aa+'\x22')};}return'unlink'==_0x906007['commandName']?{'type':'format','content':o(_0x42721a,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x198c8f{['afterInit'](){const _0x4975e2=this['editor'],_0x15af54=_0x4975e2['locale'];if(!_0x4975e2['plugins']['has']('LegacyListEditing'))return;const _0x57647f=_0x4975e2['plugins']['get']('TrackChangesEditing'),_0x3914d0=_0x4975e2['plugins']['has']('LegacyTodoListEditing');function _0x2a0953(_0x3c8f25){return()=>{const _0x218033=_0x4975e2['model']['document']['selection'],_0xc412de=_0x4975e2['commands']['get'](_0x3c8f25);if(_0xc412de['value'])return void _0x4975e2['execute']('paragraph',{});const _0x3cf7c3=_0x3c8f25['slice'](0x0,-0x4),_0x4c1338=function(_0x5bc057,_0x454dcf,_0x4dac4a){let _0x114ba0=Array['from'](_0x5bc057)['filter'](_0x574ff4=>function(_0x3357a2,_0x53a5b9){return _0x53a5b9['checkChild'](_0x3357a2['parent'],'listItem')&&!_0x53a5b9['isObject'](_0x3357a2);}(_0x574ff4,_0x4dac4a));_0x114ba0=_0x114ba0['filter'](_0x4a9abb=>!_0x4a9abb['is']('element','listItem')||_0x4a9abb['getAttribute']('listType')!=_0x454dcf);const _0xe7740e=new Set();for(const _0x328333 of _0x114ba0)_0x328333['is']('element','listItem')?_0xe7740e['add'](me(_0x328333)):_0xe7740e['add'](_0x328333);return Array['from'](_0xe7740e);}(_0x218033['getSelectedBlocks'](),_0x3cf7c3,_0x4975e2['model']['schema']);_0x4975e2['model']['change'](()=>{for(const _0x448e82 of _0x4c1338)_0x57647f['markBlockFormat'](_0x448e82,{'commandName':_0x3c8f25,'commandParams':[{'forceValue':!_0xc412de['value']}],'formatGroupId':'blockName'},fe(_0x448e82));});};}function _0x55a548(_0x54f464){return()=>{const _0x38dfa0=function(_0x4bc9dc){let _0xb2dc7e=Array['from'](_0x4bc9dc);const _0x551764=_0xb2dc7e['findIndex'](_0x341e39=>'listItem'!=_0x341e39['name']);return _0x551764>-0x1&&(_0xb2dc7e=_0xb2dc7e['slice'](0x0,_0x551764)),_0xb2dc7e;}(_0x4975e2['model']['document']['selection']['getSelectedBlocks']()),_0x325b61=_0x4975e2['model']['createRange'](_0x4975e2['model']['createPositionAt'](_0x38dfa0[0x0],'before'),_0x4975e2['model']['createPositionAt'](_0x38dfa0[_0x38dfa0['length']-0x1],'end'));_0x4975e2['model']['change'](()=>{_0x57647f['markBlockFormat'](_0x325b61,{'commandName':_0x54f464,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b0eaf){const _0x43117c=new Set();for(const _0x15db19 of _0x2b0eaf){let _0x4ce448=_0x15db19['nextSibling'];for(;_0x4ce448&&_0x4ce448['getAttribute']('listIndent')>_0x15db19['getAttribute']('listIndent');)_0x43117c['add'](_0x4ce448),_0x4ce448=_0x4ce448['nextSibling'];}return Array['from'](_0x43117c);}(_0x38dfa0));});};}_0x57647f['enableCommand']('numberedList',_0x2a0953('numberedList')),_0x57647f['enableCommand']('bulletedList',_0x2a0953('bulletedList')),_0x3914d0&&_0x57647f['enableCommand']('todoList',_0x2a0953('todoList')),_0x57647f['enableCommand']('indentList',_0x55a548('indentList')),_0x57647f['enableCommand']('outdentList',_0x55a548('outdentList')),_0x3914d0&&_0x57647f['enableCommand']('checkTodoList',()=>{const _0x3b5488=_0x4975e2['commands']['get']('checkTodoList'),_0x51c316=Array['from'](_0x3b5488['_selectedElements']);_0x51c316['filter'](_0xb4a1ea=>_0xb4a1ea['getAttribute']('todoListChecked')!=_0x3b5488['value']),_0x4975e2['model']['change'](()=>{for(const _0x17f528 of _0x51c316)_0x57647f['markBlockFormat'](_0x17f528,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3b5488['value']}]});});}),_0x57647f['descriptionFactory']['registerElementLabel']('listItem',_0x20ce1d=>o(_0x15af54,'ELEMENT_LIST_ITEM',_0x20ce1d)),_0x57647f['descriptionFactory']['registerDescriptionCallback'](_0x338265=>{if('formatBlock'!=_0x338265['type']&&'formatInline'!=_0x338265['type'])return;const {data:_0x2ae31a}=_0x338265;if(_0x2ae31a){if('numberedList'==_0x2ae31a['commandName']||'bulletedList'==_0x2ae31a['commandName']||'todoList'==_0x2ae31a['commandName'])switch(_0x2ae31a['commandName']['replace']('List','')){case'bulleted':return _0x5039e7(o(_0x15af54,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5039e7(o(_0x15af54,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5039e7(o(_0x15af54,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2ae31a['commandName'])return{'type':'format','content':o(_0x15af54,'*Indent:*\x20%0',o(_0x15af54,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2ae31a['commandName'])return{'type':'format','content':o(_0x15af54,'*Outdent:*\x20%0',o(_0x15af54,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2ae31a['commandName'])return _0x2ae31a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15af54,'*Check\x20item*')}:{'type':'format','content':o(_0x15af54,'*Uncheck\x20item*')};}function _0x5039e7(_0x58b0cc){return{'type':'format','content':o(_0x15af54,'*Change\x20to:*\x20%0',_0x58b0cc)};}});}}function me(_0x48db4e){const _0x2f009d=_0x48db4e['getAttribute']('listIndent');if(0x0==_0x2f009d)return _0x48db4e;let _0x2fd575=_0x48db4e;for(;_0x48db4e['previousSibling']&&_0x48db4e['previousSibling']['is']('element','listItem');){const _0x1deb60=_0x48db4e['previousSibling']['getAttribute']('listIndent');if(_0x1deb60==_0x2f009d)_0x2fd575=_0x48db4e['previousSibling'];else{if(_0x1deb60<_0x2f009d)break;}_0x48db4e=_0x48db4e['previousSibling'];}return _0x2fd575;}function fe(_0x1a9b7e){const _0x337e9c=[];if(_0x1a9b7e['is']('element','listItem')&&_0x1a9b7e['getAttribute']('listIndent')>0x0){let _0x5dec3e=_0x1a9b7e['nextSibling'];for(;_0x5dec3e&&'listItem'==_0x5dec3e['name']&&_0x5dec3e['getAttribute']('listIndent')==_0x1a9b7e['getAttribute']('listIndent');)_0x337e9c['push'](_0x5dec3e),_0x5dec3e=_0x5dec3e['nextSibling'];}return _0x337e9c;}class K extends _0x198c8f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2e01a7=this['editor']['config']['get']('list.properties'),_0x226d1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e01a7['styles']&&_0x226d1d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2e01a7['reversed']&&_0x226d1d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2e01a7['startIndex']&&_0x226d1d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x226d1d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x172aba,_0x498cea={}){const _0x47d434=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc7a056=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47d434['markMultiRangeBlockFormat'](_0xc7a056,{'commandName':'listStyle','commandParams':[{'type':_0x498cea['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x320fcb,_0x445b38={}){const _0x3dd804=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38c822=this['_getSuggestionBlocks'](_0x520e95=>_0x520e95['is']('element','listItem')&&'numbered'===_0x520e95['getAttribute']('listType'));if(_0x38c822['length']<0x1)return;const _0x5ced7a=_0x38c822['map'](_0x505670=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x505670,'before'),this['editor']['model']['createPositionAt'](_0x505670,0x0)));this['editor']['model']['change'](()=>{_0x3dd804['markMultiRangeBlockFormat'](_0x5ced7a,{'commandName':'listReversed','commandParams':[{'reversed':_0x445b38['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xb27627,_0x472e73={}){const _0x688be5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34cc8f=this['_getSuggestionBlocks'](_0x51c06b=>_0x51c06b['is']('element','listItem')&&'numbered'===_0x51c06b['getAttribute']('listType'));if(_0x34cc8f['length']<0x1)return;const _0x4e668c=_0x34cc8f['map'](_0x1f0877=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f0877,'before'),this['editor']['model']['createPositionAt'](_0x1f0877,0x0)));this['editor']['model']['change'](()=>{_0x688be5['markMultiRangeBlockFormat'](_0x4e668c,{'commandName':'listStart','commandParams':[{'startIndex':_0x472e73['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a465c){if('formatBlock'!=_0x5a465c['type']&&'formatInline'!=_0x5a465c['type'])return;const _0x3fcc4f=this['editor']['locale'],{data:_0x308f67}=_0x5a465c;if(!_0x308f67)return;let _0x538d77,_0x59d744;switch(_0x308f67['commandName']){case'listStyle':_0x538d77='*Change\x20to:*\x20%0',_0x59d744={'type':'format','content':o(_0x3fcc4f,_0x538d77,o(_0x3fcc4f,this['_getTranslationKeyForListStyle'](_0x308f67['commandParams'][0x0]['type'])))};break;case'listReversed':_0x538d77=_0x308f67['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x59d744={'type':'format','content':o(_0x3fcc4f,_0x538d77)};break;case'listStart':_0x538d77='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x59d744={'type':'format','content':o(_0x3fcc4f,_0x538d77,_0x308f67['commandParams'][0x0]['startIndex'])};}return _0x59d744;}['_getSuggestionBlocksForListStyle'](){const _0x3f9425=this['editor']['plugins']['get']('LegacyListUtils');let _0x5939a8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5939a8[0x0]?.['is']('element','listItem')&&_0x5939a8['unshift'](..._0x3f9425['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5939a8[_0x5939a8['length']-0x1]?.['is']('element','listItem')&&_0x5939a8['push'](..._0x3f9425['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5939a8=[...new Set(_0x5939a8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5939a8=_0x5939a8['filter'](_0x412620=>_0x412620['is']('element','listItem'))),_0x5939a8;}['_getSuggestionBlocks'](_0x4e16b2){const _0x4986fc=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a347b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e16b2)['map'](_0xcf26f0=>{const _0x51379d=this['editor']['model']['createPositionAt'](_0xcf26f0,0x0);return[..._0x4986fc['getSiblingNodes'](_0x51379d,'backward'),..._0x4986fc['getSiblingNodes'](_0x51379d,'forward')];})['flat']();return _0x4a347b=[...new Set(_0x4a347b)],_0x4a347b;}['_getTranslationKeyForListStyle'](_0x11b2c8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x11b2c8)||'default')['toUpperCase']()+'_LIST_'+_0x11b2c8['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x198c8f{['afterInit'](){const _0x5b4b02=this['editor'];if(!_0x5b4b02['plugins']['has']('MediaEmbedEditing'))return;const _0x25be7e=_0x5b4b02['plugins']['get']('TrackChangesEditing'),_0x421b47=_0x5b4b02['locale'];_0x25be7e['enableCommand']('mediaEmbed'),_0x25be7e['descriptionFactory']['registerElementLabel']('media',_0x394024=>o(_0x421b47,'ELEMENT_MEDIA',_0x394024)),_0x5b4b02['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3424f4,{writer:_0xf7e9b6,options:_0x446d26})=>{if(_0x446d26['showSuggestionHighlights'])return _0xf7e9b6['createEmptyElement']('div');},'converterPriority':'high'}),_0x5b4b02['data']['downcastDispatcher']['on']('attribute:url:media',(_0x14008d,_0x2d6ec8,_0x5d47de)=>{_0x5d47de['options']['showSuggestionHighlights']&&_0x14008d['stop']();},{'priority':'high'});}}class gt extends _0x198c8f{['afterInit'](){const _0xe371e0=this['editor'];_0xe371e0['plugins']['has']('MentionEditing')&&_0xe371e0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x198c8f{['afterInit'](){const _0x234c72=this['editor'],_0x346b82=_0x234c72['plugins']['get']('TrackChangesEditing');_0x234c72['plugins']['has']('MultiLevelList')&&(_0x346b82['enableDefaultAttributesIntegration']('multiLevelList'),_0x346b82['registerBlockAttribute']('listMarkerStyle'),_0x346b82['descriptionFactory']['registerDescriptionCallback'](_0x8df05b=>this['handleDescriptions'](_0x8df05b)));}['handleDescriptions'](_0x59c034){const _0x281113=this['editor']['locale'],{data:_0x4c1dd5}=_0x59c034,_0x104dca={'type':'format','content':''};if(_0x4c1dd5&&'listMarkerStyle'==_0x4c1dd5['key']){if(!_0x4c1dd5['oldValue'])return{'type':'format','content':o(_0x281113,'*Set\x20format:*\x20%0',o(_0x281113,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c1dd5['newValue']+')'};if(!_0x4c1dd5['newValue']){let _0x372ef0=_0x59c034['head'];for(;_0x372ef0;){if(_0x372ef0['data']&&'listType'==_0x372ef0['data']['key']&&_0x372ef0['data']['newValue'])return _0x104dca;_0x372ef0=_0x372ef0['next'];}return{'type':'format','content':o(_0x281113,'*Remove\x20format:*\x20%0',o(_0x281113,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c1dd5['oldValue']+')'};}}}}class mt extends _0x198c8f{['afterInit'](){const _0x15148a=this['editor'];if(!_0x15148a['plugins']['has']('PageBreakEditing'))return;_0x15148a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2a6bbc=_0x15148a['plugins']['get']('TrackChangesEditing'),_0x40f826=_0x15148a['locale'];_0x2a6bbc['descriptionFactory']['registerElementLabel']('pageBreak',_0x33ad9e=>o(_0x40f826,'ELEMENT_PAGE_BREAK',_0x33ad9e));}}class dt extends _0x198c8f{['afterInit'](){const _0x4c12dd=this['editor'];if(!_0x4c12dd['plugins']['has']('Paragraph'))return;const _0x25254c=_0x4c12dd['locale'],_0x432177=_0x4c12dd['plugins']['get']('TrackChangesEditing');_0x432177['descriptionFactory']['registerElementLabel']('paragraph',_0x4d32cd=>o(_0x25254c,'ELEMENT_PARAGRAPH',_0x4d32cd)),_0x432177['enableDefaultAttributesIntegration']('paragraph'),_0x432177['enableCommand']('insertParagraph'),_0x4c12dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4c12dd),{'priority':'highest'}),_0x4c12dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15e316,_0x56d9a2,_0x11195d)=>{_0x11195d['options']['showSuggestionHighlights']&&nr(_0x4c12dd,{'showActiveMarker':!0x1})(_0x15e316,_0x56d9a2,_0x11195d);},{'priority':'highest'});const _0x30b06f=_0x432177['descriptionFactory'];_0x30b06f['registerDescriptionCallback'](_0x43d420=>{if('insertion'!==_0x43d420['type'])return;const {start:_0x28490c,end:_0xa5d82f}=_0x43d420['getFirstRange']();if(!_0x28490c['isTouching'](_0xa5d82f)||!_0x28490c['nodeAfter'])return;const _0x58212d=_0x4c12dd['model']['schema'],_0x496b8d=_0x28490c['nodeAfter'];return _0x58212d['isBlock'](_0x496b8d)&&!_0x58212d['isLimit'](_0x496b8d)&&_0x58212d['checkChild'](_0x496b8d,'$text')?{'type':'insertion','content':o(_0x25254c,'*Insert:*\x20%0',_0x30b06f['getItemLabel'](_0x496b8d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cb8c1=this['editor'],_0x4bcb6c=_0x3cb8c1['locale'];_0x3cb8c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c006d=>{if('formatBlock'!=_0x3c006d['type'])return;const {data:_0x1d80ef}=_0x3c006d;return _0x1d80ef&&'paragraph'==_0x1d80ef['commandName']?{'type':'format','content':o(_0x4bcb6c,'*Change\x20to:*\x20%0',o(_0x4bcb6c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x33187e,{showActiveMarker:_0x22ab78=!0x0}={}){return(_0x5e1d8f,_0x1a840b,_0x382b83)=>{const _0x411751=_0x33187e['plugins']['get']('TrackChangesEditing'),_0x2ff8ec=_0x1a840b['markerRange']['start'],_0x47b04f=_0x1a840b['markerRange']['end'],_0x360f5f=_0x33187e['model']['schema'];if(!_0x2ff8ec['isTouching'](_0x47b04f)||!_0x2ff8ec['nodeAfter'])return;const _0x1fb1c7=_0x2ff8ec['nodeAfter'];if(_0x360f5f['isBlock'](_0x1fb1c7)&&!_0x360f5f['isLimit'](_0x1fb1c7)&&_0x360f5f['checkChild'](_0x1fb1c7,'$text')){if(!_0x382b83['consumable']['consume'](_0x1a840b['markerRange'],_0x5e1d8f['name']))return;const _0x3c9546=_0x382b83['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xc4cd57=_0x382b83['mapper']['toViewPosition'](_0x47b04f);_0x22ab78&&_0x411751['activeMarkers']['includes'](_0x1a840b['markerName'])&&_0x382b83['writer']['addClass']('ck-suggestion-marker--active',_0x3c9546),_0x382b83['writer']['insert'](_0xc4cd57,_0x3c9546),_0x382b83['mapper']['bindElementToMarker'](_0x3c9546,_0x1a840b['markerName']);}};}class pt extends _0x198c8f{['afterInit'](){const _0x2d3d63=this['editor'];if(!_0x2d3d63['plugins']['has']('RemoveFormatEditing'))return;_0x2d3d63['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bffdf=this['editor'];_0x2bffdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xadb08a=>{if('formatBlock'!=_0xadb08a['type']&&'formatInline'!=_0xadb08a['type'])return;const {data:_0x1eb6ed}=_0xadb08a;return _0x1eb6ed&&'removeFormat'==_0x1eb6ed['commandName']?{'type':'format','content':o(_0x2bffdf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x198c8f{['afterInit'](){const _0x2cd026=this['editor'];if(!_0x2cd026['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4740dc=_0x2cd026['plugins']['get']('TrackChangesEditing');_0x4740dc['enableCommand']('goToPreviousRestrictedEditingException'),_0x4740dc['enableCommand']('goToNextRestrictedEditingException');const _0x28489a=_0x2cd026['plugins']['get']('RestrictedEditingModeEditing');_0x28489a['enableCommand']('trackChanges'),_0x28489a['enableCommand']('acceptSuggestion'),_0x28489a['enableCommand']('discardSuggestion'),_0x28489a['enableCommand']('acceptAllSuggestions'),_0x28489a['enableCommand']('discardAllSuggestions'),_0x28489a['enableCommand']('acceptSelectedSuggestions'),_0x28489a['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x198c8f{static get['requires'](){return[_0x32bb51];}['init'](){const _0x26949e=this['editor'],_0x574d4c=_0x26949e['plugins']['get']('TrackChangesEditing');_0x574d4c['enableCommand']('shiftEnter'),_0x26949e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x26949e),{'priority':'high'}),_0x26949e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x26949e),{'priority':'high'}),_0x26949e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d9457,_0x5e4c89,_0xd66e70)=>{_0xd66e70['options']['showSuggestionHighlights']&&de(_0x26949e,{'showActiveMarker':!0x1})(_0x2d9457,_0x5e4c89,_0xd66e70);}),_0x574d4c['descriptionFactory']['registerElementLabel']('softBreak',_0x3ba950=>o(_0x26949e['locale'],'ELEMENT_LINE_BREAK',_0x3ba950));}}function de(_0x3285b5,{showActiveMarker:_0x4aa5c5=!0x0}={}){return(_0x165db9,_0x50e752,_0xc6c4f5)=>{const _0x1c7f76=_0x3285b5['plugins']['get']('TrackChangesEditing');if(!_0xc6c4f5['consumable']['test'](_0x50e752['markerRange'],_0x165db9['name']))return;const _0x32fac2=_0x3285b5['model'];for(const _0x47f694 of _0x50e752['markerRange']['getItems']()){if(!_0x47f694['is']('element','softBreak'))continue;const _0x23e8cb='deletion'==_0x50e752['markerName']['split'](':')[0x1]?'merge':'split',_0x421768=_0xc6c4f5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23e8cb}),_0x19f50f=_0xc6c4f5['mapper']['toViewPosition'](_0x32fac2['createPositionBefore'](_0x47f694));_0x4aa5c5&&_0x1c7f76['activeMarkers']['includes'](_0x50e752['markerName'])&&_0xc6c4f5['writer']['addClass']('ck-suggestion-marker--active',_0x421768),_0xc6c4f5['writer']['insert'](_0x19f50f,_0x421768),_0xc6c4f5['mapper']['bindElementToMarker'](_0x421768,_0x50e752['markerName']);}};}class wt extends _0x198c8f{['afterInit'](){const _0x5bb031=this['editor'],_0x3c7dde=_0x5bb031['model'],_0xb99c49=_0x5bb031['locale'];if(!_0x5bb031['plugins']['has']('StandardEditingModeEditing'))return;const _0x43133a=_0x5bb031['plugins']['get']('TrackChangesEditing'),_0x34abb0='restrictedEditingException',_0x220e80=_0x5bb031['commands']['get'](_0x34abb0);_0x43133a['enableCommand'](_0x34abb0,(_0x3a4fc2,_0x582db9={})=>{const _0x41278a=_0x3c7dde['document']['selection'];if(_0x41278a['isCollapsed'])return void _0x3a4fc2(_0x582db9);const _0x35a3a7=void 0x0!==_0x582db9['forceValue']?_0x582db9['forceValue']:!_0x220e80['value'];_0x3c7dde['change'](()=>{const _0x2c4b12=Array['from'](_0x41278a['getRanges']());for(const _0x136e8f of _0x2c4b12){const _0x2f3131=_0x35a3a7?[_0x136e8f]:io(_0x34abb0,_0x136e8f,_0x3c7dde);for(const _0x41d5aa of _0x2f3131)_0x43133a['markInlineFormat'](_0x41d5aa,{'commandName':_0x34abb0,'commandParams':[{'forceValue':_0x35a3a7}]});}});}),_0x43133a['descriptionFactory']['registerDescriptionCallback'](_0x14c399=>{if('formatBlock'!=_0x14c399['type']&&'formatInline'!=_0x14c399['type'])return;const {data:_0xd6250}=_0x14c399;return _0xd6250&&_0xd6250['commandName']==_0x34abb0?_0xd6250['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb99c49,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb99c49,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x198c8f{['afterInit'](){const _0x177a57=this['editor'];if(!_0x177a57['plugins']['has']('Style')||!_0x177a57['plugins']['has']('DataSchema'))return;const _0x28214c=_0x177a57['plugins']['get']('TrackChangesEditing'),_0x35c0c7=_0x177a57['locale'],_0x45880f=_0x177a57['config']['get']('style')||{},_0x9ae24c=_0x177a57['plugins']['get']('GeneralHtmlSupport'),_0x4940fd=_0x177a57['plugins']['get']('StyleUtils')['normalizeConfig'](_0x177a57['plugins']['get']('DataSchema'),_0x45880f['definitions']);_0x28214c['enableDefaultAttributesIntegration']('style');const _0xab03e1=new Set();for(const _0x210913 of _0x4940fd['block']){const _0x105302=_0x9ae24c['getGhsAttributeNameForElement'](_0x210913['element']);_0xab03e1['add'](_0x105302);}const _0x18add6=new Set();for(const _0x45d9f7 of _0x4940fd['inline']){const _0x28b780=_0x9ae24c['getGhsAttributeNameForElement'](_0x45d9f7['element']);_0x18add6['add'](_0x28b780);for(const _0x112eae of _0x45d9f7['ghsAttributes'])_0x18add6['add'](_0x112eae);}for(const _0x5ba867 of _0xab03e1)_0x28214c['registerBlockAttribute'](_0x5ba867),_0x28214c['descriptionFactory']['registerAttributeLabel'](_0x5ba867,o(_0x35c0c7,'FORMAT_STYLE'));for(const _0x598703 of _0x18add6)_0x28214c['registerInlineAttribute'](_0x598703),_0x28214c['descriptionFactory']['registerAttributeLabel'](_0x598703,o(_0x35c0c7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17264f=this['editor'],_0x1fd34b=_0x17264f['locale'];_0x17264f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584b50=>{if('formatBlock'!=_0x584b50['type']&&'formatInline'!=_0x584b50['type'])return;const {data:_0x3c57e6}=_0x584b50;return _0x3c57e6&&'style'===_0x3c57e6['commandName']?_0x3c57e6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fd34b,'*Set\x20format:*\x20%0',_0x3c57e6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1fd34b,'*Remove\x20format:*\x20%0',_0x3c57e6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x198c8f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x38805d){super(_0x38805d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x332956=this['editor'],_0x4febf1=_0x332956['model']['document']['selection'];if(!_0x332956['plugins']['has']('TableEditing'))return;const _0x5e1332=_0x332956['locale'],_0x6a23f=_0x332956['plugins']['get']('TrackChangesEditing'),_0x64d4c6=_0x332956['plugins']['get']('TableUtils');_0x6a23f['descriptionFactory']['registerElementLabel']('table',_0x4d1b81=>o(_0x5e1332,'ELEMENT_TABLE',_0x4d1b81)),this['_setupColumnsRowsFixing'](),_0x6a23f['enableCommand']('insertTable'),_0x6a23f['enableCommand']('selectTableRow'),_0x6a23f['enableCommand']('selectTableColumn');for(const _0x45dc06 of['insertTableRowAbove','insertTableRowBelow']){const _0xcc7487=_0x332956['commands']['get'](_0x45dc06);_0x6a23f['enableCommand'](_0x45dc06,_0x53ce6b=>{_0x332956['model']['change'](_0x1d6c79=>{_0x53ce6b();const _0x2d670a='above'===_0xcc7487['order'],_0x1f18ab=_0x64d4c6['getSelectionAffectedTableCells'](_0x4febf1),_0x4409af=_0x64d4c6['getRowIndexes'](_0x1f18ab),_0x2f9dd2=_0x2d670a?_0x4409af['first']-0x1:_0x4409af['last']+0x1,_0x4c92cd=_0x1f18ab[0x0]['findAncestor']('table'),_0x1cac79=_0x64d4c6['createTableWalker'](_0x4c92cd,{'startRow':_0x2f9dd2,'endRow':_0x2f9dd2}),_0x89e1ff=Array['from'](_0x1cac79)['map'](_0x52e91f=>_0x1d6c79['createRangeOn'](_0x52e91f['cell']));_0x6a23f['markMultiRangeInsertion'](_0x89e1ff,'tableRow');});});}for(const _0x5e22db of['insertTableColumnLeft','insertTableColumnRight']){const _0x3176fc=_0x332956['commands']['get'](_0x5e22db);_0x6a23f['enableCommand'](_0x5e22db,_0x1ffea5=>{_0x332956['model']['change'](_0x5ede4a=>{_0x1ffea5();const _0x3f5c4c='left'===_0x3176fc['order'],_0x167cbb=_0x64d4c6['getSelectionAffectedTableCells'](_0x4febf1),_0x523d8a=_0x64d4c6['getColumnIndexes'](_0x167cbb),_0x5ee7d0=_0x3f5c4c?_0x523d8a['first']-0x1:_0x523d8a['last']+0x1,_0x1c4a4b=_0x167cbb[0x0]['findAncestor']('table'),_0x326e41=_0x64d4c6['createTableWalker'](_0x1c4a4b,{'startRow':0x0,'column':_0x5ee7d0,'includeAllSlots':!0x1}),_0x35bfa2=Array['from'](_0x326e41)['map'](_0xbee79=>_0x5ede4a['createRangeOn'](_0xbee79['cell']));_0x6a23f['markMultiRangeInsertion'](_0x35bfa2,'tableColumn');});});}for(const _0x569401 of['removeTableRow','removeTableColumn']){const _0x28ac6b=_0x569401['substr'](0xb),_0x3c752d=_0x28ac6b['toLowerCase'](),_0x2075c5=_0x3c752d['substr'](0x0,0x3)+'span',_0x11095a='table'+_0x28ac6b,_0x1e48d5='min'+_0x28ac6b,_0x34fde4='max'+_0x28ac6b;_0x6a23f['enableCommand'](_0x569401,()=>{_0x332956['model']['change'](_0x2da5ae=>{const _0x51c599=_0x64d4c6['getSelectionAffectedTableCells'](_0x4febf1),_0x401335=_0x51c599[0x0]['findAncestor']('table');let _0x4df663;if('removeTableRow'==_0x569401){const _0x3d4f56=_0x64d4c6['getRowIndexes'](_0x51c599);_0x4df663={'startRow':_0x3d4f56['first'],'endRow':_0x3d4f56['last'],'includeAllSlots':!0x0};}else{const _0x3cd8fa=_0x64d4c6['getColumnIndexes'](_0x51c599);_0x4df663={'startColumn':_0x3cd8fa['first'],'endColumn':_0x3cd8fa['last'],'includeAllSlots':!0x0};}const _0x1df944=_0x64d4c6['createTableWalker'](_0x401335,_0x4df663),_0x23cb18=Array['from'](_0x1df944)['map'](({cell:_0x141d57})=>_0x141d57),_0x229c4d=Ee(_0x23cb18['filter'](_0x28e871=>_0x28e871['hasAttribute'](_0x2075c5))),_0x128d18=Ee(_0x23cb18['filter'](_0x58ff62=>!_0x58ff62['hasAttribute'](_0x2075c5)))['map'](_0x1577c5=>_0x2da5ae['createRangeOn'](_0x1577c5)),_0x487634=_0x6a23f['markMultiRangeDeletion'](_0x128d18,_0x11095a);if(_0x487634&&('tableRow'==_0x487634['subType']||'tableColumn'==_0x487634['subType'])){const _0xe06c68=this['_getSuggestionCoords'](_0x487634);for(const _0x4e2c4e of _0x229c4d){const _0x43917f=_0x2da5ae['createRangeOn'](_0x4e2c4e),_0x31a87d=_0x64d4c6['getCellLocation'](_0x4e2c4e),_0x52c2b0=_0x4e2c4e['getAttribute'](_0x2075c5)-0x1,_0x4deb73=_0xe06c68[_0x1e48d5],_0x28d5ab=_0xe06c68[_0x34fde4];_0x4deb73<=_0x31a87d[_0x3c752d]&&_0x31a87d[_0x3c752d]+_0x52c2b0<=_0x28d5ab&&_0x487634['addRange'](_0x43917f);}}});});}function _0x32761b(_0x2edaba){const _0x577f20=Array['from'](_0x4febf1['getRanges']())['map'](_0x739263=>_0x3123fd['fromRange'](_0x739263));_0x332956['model']['change'](_0x3a1857=>{const _0x559ab9=_0x3a1857['batch'];_0x2edaba=_0x2edaba['filter'](_0x5419a9=>'$graveyard'!=_0x5419a9['root']['rootName']),_0x3a1857['setSelection'](_0x2edaba),_0x332956['commands']['get']('removeTableRow')['refresh'](),_0x332956['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x332956['model']['enqueueChange'](()=>{_0x332956['model']['enqueueChange'](_0x559ab9,_0x8c3a0=>{const _0x1d711e=_0x577f20['filter'](_0x30b4ad=>'$graveyard'!=_0x30b4ad['root']['rootName']);_0x1d711e['length']>0x0&&_0x8c3a0['setSelection'](_0x1d711e);for(const _0x5c130b of _0x577f20)_0x5c130b['detach']();});});});}function _0x25f231(_0x3a3c88){_0x332956['model']['change'](_0x3f4ac8=>{const _0x28f475=Array['from'](_0x4febf1['getRanges']())['map'](_0x2735ba=>_0x3123fd['fromRange'](_0x2735ba)),_0x302348=[];for(const _0x346ed2 of _0x3a3c88)for(const _0x529dfa of _0x346ed2['getItems']({'shallow':!0x0}))_0x302348['push'](_0x529dfa);for(const _0x21e022 of _0x302348)'$graveyard'!=_0x21e022['root']['rootName']&&(_0x3f4ac8['setSelection'](_0x3f4ac8['createPositionAt'](_0x21e022,0x0)),_0x332956['commands']['get']('removeTableColumn')['refresh'](),_0x332956['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1bfb77=_0x28f475['filter'](_0x194b4e=>'$graveyard'!=_0x194b4e['root']['rootName']);_0x1bfb77['length']>0x0&&_0x3f4ac8['setSelection'](_0x1bfb77);for(const _0x344c88 of _0x28f475)_0x344c88['detach']();});}function _0x26bdf0(_0x5e29f3,_0x14ac78){return _0x14ac78['every'](_0x395054=>_0x5e29f3['some'](_0x3deafc=>_0x3deafc['end']['isEqual'](_0x395054['start'])||_0x395054['end']['isEqual'](_0x3deafc['start'])));}function _0x1aee44(_0x3e3c5e,_0x27da1d){return!_0x3e3c5e['some'](_0x28b7ec=>_0x27da1d['some'](_0x3772f6=>_0x28b7ec['isIntersecting'](_0x3772f6)))&&_0x3e3c5e['some'](_0x3f4974=>_0x27da1d['some'](_0x48739c=>_0x3f4974['end']['isTouching'](_0x48739c['start'])));}_0x332956['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x763c46,_0x5f2402,_0x5ba327)=>{if(!_0x5ba327['options']['showSuggestionHighlights'])return;const _0x2eba04=_0x5f2402['item'];if(!_0x2eba04)return;const _0x590af9=_0x5ba327['mapper']['toViewElement'](_0x2eba04);function _0x389b86(_0x115ba9){return Array['isArray'](_0x115ba9)?_0x115ba9:[_0x115ba9];}_0x590af9&&'tableCell'===_0x2eba04['name']&&_0x247fcc(_0x590af9,_0x5ba327['writer'],(_0x9adca3,_0x34afd9,_0x5333f5)=>_0x5333f5['addClass'](_0x389b86(_0x34afd9['classes']),_0x9adca3),(_0xd4de99,_0xe04770,_0x1dffed)=>_0x1dffed['removeClass'](_0x389b86(_0xe04770['classes']),_0xd4de99));},{'priority':'highest'}),_0x6a23f['descriptionFactory']['registerDescriptionCallback'](_0x665b97=>{if('insertion'!=_0x665b97['type']&&'deletion'!=_0x665b97['type'])return;const _0x5347be=_0x665b97['getContainedElement']();if(null!=_0x5347be&&_0x5347be['is']('element','table')){if('insertion'==_0x665b97['type']){const _0x5bf049=_0x665b97['getItems']()['filter'](_0x53d696=>_0x53d696['is']('$textProxy'))['map'](_0x46e495=>_0x46e495['data']);if(_0x5bf049['length'])return{'type':'insertion','content':o(_0x5e1332,'*Insert:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bf049['join']('\x20')+'\x22'))};}if('deletion'==_0x665b97['type']){const _0x549352=_0x665b97['getItems']()['filter'](_0x5e92aa=>_0x5e92aa['is']('$textProxy'))['map'](_0x2dfc12=>_0x2dfc12['data']);if(_0x549352['length'])return{'type':'deletion','content':o(_0x5e1332,'*Remove:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x549352['join']('\x20')+'\x22'))};}}}),_0x6a23f['descriptionFactory']['registerDescriptionCallback'](_0x439984=>{if('tableRow'==_0x439984['subType']){const _0x24dbaa=_0x439984['getItems']()['filter'](_0x6584a8=>_0x6584a8['is']('$textProxy'))['map'](_0x30bd2c=>_0x30bd2c['data']),_0x2a48f3=this['_getSuggestionCoords'](_0x439984),_0x4f3e06=_0x2a48f3['maxRow']-_0x2a48f3['minRow']+0x1;if('insertion'==_0x439984['type'])return _0x24dbaa['length']?{'type':'insertion','content':o(_0x5e1332,'*Insert:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f3e06,'\x22'+_0x24dbaa['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e1332,'*Insert:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_ROW',_0x4f3e06))};if('deletion'==_0x439984['type'])return _0x24dbaa['length']?{'type':'deletion','content':o(_0x5e1332,'*Remove:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f3e06,'\x22'+_0x24dbaa['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e1332,'*Remove:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_ROW',_0x4f3e06))};}if('tableColumn'==_0x439984['subType']){const _0x543766=_0x439984['getItems']()['filter'](_0x4628bf=>_0x4628bf['is']('$textProxy'))['map'](_0x5bd751=>_0x5bd751['data']),_0x4d9046=this['_getSuggestionCoords'](_0x439984),_0x3a1260=_0x4d9046['maxColumn']-_0x4d9046['minColumn']+0x1;if('insertion'==_0x439984['type'])return _0x543766['length']?{'type':'insertion','content':o(_0x5e1332,'*Insert:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a1260,'\x22'+_0x543766['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e1332,'*Insert:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_COLUMN',_0x3a1260))};if('deletion'==_0x439984['type'])return _0x543766['length']?{'type':'deletion','content':o(_0x5e1332,'*Remove:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a1260,'\x22'+_0x543766['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e1332,'*Remove:*\x20%0',o(_0x5e1332,'ELEMENT_TABLE_COLUMN',_0x3a1260))};}}),_0x6a23f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32761b),_0x6a23f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32761b),_0x6a23f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25f231),_0x6a23f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25f231),_0x6a23f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x26bdf0),_0x6a23f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x26bdf0),_0x6a23f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1aee44),_0x6a23f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1aee44);}['_acceptFormatSuggestionCallbackFactory'](){const _0x338676=this['editor'],_0x4854f9=_0x338676['model']['document']['selection'];return(_0x520431,_0x49dbb8)=>{_0x338676['model']['change'](_0x32d206=>{const {commandName:_0x59a185,commandParams:_0x84d86d}=_0x49dbb8;let _0x41e33f=_0x520431[0x0]['end']['nodeBefore'];_0x84d86d&&_0x84d86d[0x0]&&!0x1===_0x84d86d[0x0]['forceValue']&&(_0x41e33f=_0x520431[0x0]['start']['nodeAfter']);const _0xf4c47a=_0x32d206['createRangeIn'](_0x41e33f);if('$graveyard'==_0xf4c47a['root']['rootName'])return;const _0x421d71=Array['from'](_0x4854f9['getRanges']())['map'](_0x29566e=>_0x3123fd['fromRange'](_0x29566e));_0x32d206['setSelection'](_0xf4c47a),_0x338676['commands']['get'](_0x59a185)['refresh'](),_0x84d86d['push']({'forceDefaultExecution':!0x0}),_0x338676['execute'](_0x59a185,..._0x84d86d);const _0x263355=_0x421d71['filter'](_0x188ecf=>'$graveyard'!=_0x188ecf['root']['rootName']);_0x263355['length']>0x0&&_0x32d206['setSelection'](_0x263355);for(const _0x3e0629 of _0x421d71)_0x3e0629['detach']();});};}['_getCoordsForCells'](_0x341049){const _0x603317=this['editor']['plugins']['get']('TableUtils');let _0x1f2d97=Number['MAX_SAFE_INTEGER'],_0xfc8773=Number['MIN_SAFE_INTEGER'],_0x3abe65=Number['MAX_SAFE_INTEGER'],_0x2bd70a=Number['MIN_SAFE_INTEGER'];for(const _0x45ad80 of _0x341049){if('$graveyard'==_0x45ad80['root']['rootName'])continue;const {row:_0x48bb93,column:_0x2c8fab}=_0x603317['getCellLocation'](_0x45ad80),_0x97d74d=_0x45ad80['hasAttribute']('rowspan')?_0x45ad80['getAttribute']('rowspan')-0x1:0x0,_0x150c7a=_0x45ad80['hasAttribute']('colspan')?_0x45ad80['getAttribute']('colspan')-0x1:0x0;_0x1f2d97=_0x48bb93<_0x1f2d97?_0x48bb93:_0x1f2d97,_0xfc8773=_0x48bb93+_0x97d74d>_0xfc8773?_0x48bb93+_0x97d74d:_0xfc8773,_0x3abe65=_0x2c8fab<_0x3abe65?_0x2c8fab:_0x3abe65,_0x2bd70a=_0x2c8fab+_0x150c7a>_0x2bd70a?_0x2c8fab+_0x150c7a:_0x2bd70a;}return{'minRow':_0x1f2d97,'maxRow':_0xfc8773,'minColumn':_0x3abe65,'maxColumn':_0x2bd70a};}['_setupColumnsRowsFixing'](){const _0x1e5082=this['editor'],_0x48cd3f=_0x1e5082['plugins']['get']('TrackChangesEditing'),_0x19bece=_0x1e5082['plugins']['get']('TableUtils');_0x1e5082['model']['document']['on']('change:data',()=>{const _0x30dc3e=Array['from'](_0x1e5082['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f5341,data:_0x25a42f}of _0x30dc3e){const {group:_0x652f12,id:_0x517545,subType:_0xdf23dd}=_0x48cd3f['_splitMarkerName'](_0x4f5341);if('suggestion'!=_0x652f12)continue;if(null!=_0x25a42f['oldRange'])continue;const _0x2d6bf4=_0x48cd3f['getSuggestion'](_0x517545);this['_tablePostFixingSubtypes']['includes'](_0xdf23dd)&&this['_tableSuggestions']['add'](_0x2d6bf4);}},{'priority':'low'});const _0x17b279=(_0x2a810f,_0x1191b2)=>{let _0x15478a=!0x1;const _0x180c85=_0x1191b2['createRangeOn'](_0x2a810f),_0x723001=_0x2a810f['findAncestor']('table'),_0x511c51=_0x19bece['getCellLocation'](_0x2a810f);for(const _0xdec8cd of this['_tableSuggestions']){const _0x34fd9f=_0xdec8cd['subType'],_0x2de5a8=_0x34fd9f['startsWith']('tablePaste'),_0x56e9f5=_0x34fd9f['substr'](_0x2de5a8?0xa:0x5),_0x11609f=_0x56e9f5['toLowerCase'](),_0x48a93f=_0x11609f['substr'](0x0,0x3)+'span',_0x42cc43='min'+_0x56e9f5,_0x3bfeb8='max'+_0x56e9f5;if(!_0xdec8cd['isInContent'])continue;if(_0x723001!=_0xdec8cd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xdec8cd['isIntersectingWithRange'](_0x180c85))continue;const _0x417586=_0x2a810f['hasAttribute'](_0x48a93f)?_0x2a810f['getAttribute'](_0x48a93f)-0x1:0x0,_0x426bbf=this['_getSuggestionCoords'](_0xdec8cd),_0x56cbe7=_0x426bbf[_0x42cc43],_0x489aec=_0x426bbf[_0x3bfeb8];_0x56cbe7<=_0x511c51[_0x11609f]&&_0x511c51[_0x11609f]+_0x417586<=_0x489aec&&(_0xdec8cd['addRange'](_0x180c85),_0x15478a=!0x0);}return _0x15478a;};_0x1e5082['model']['document']['registerPostFixer'](_0x25e7a7=>{let _0x436273=!0x1;for(const _0x275a17 of _0x1e5082['model']['document']['differ']['getChanges']())if('insert'==_0x275a17['type']){if('tableRow'==_0x275a17['name']){for(const _0x1424b7 of _0x275a17['position']['nodeAfter']['getChildren']())_0x436273=_0x436273||_0x17b279(_0x1424b7,_0x25e7a7);}else'tableCell'==_0x275a17['name']&&(_0x436273=_0x436273||_0x17b279(_0x275a17['position']['nodeAfter'],_0x25e7a7));}return _0x436273;});}['_getSuggestionCoords'](_0xc83abd){return this['_getCoordsForCells'](_0xc83abd['getRanges']()['map'](_0x575eab=>_0x575eab['start']['nodeAfter']));}}function Ee(_0x5afdcf){return Array['from'](new Set(_0x5afdcf)['values']());}class St extends _0x198c8f{static get['requires'](){return[jt];}['afterInit'](){const _0x3f8020=this['editor'],_0x210bbb=_0x3f8020['model']['document']['selection'],_0x5d9446=_0x3f8020['locale'];if(!_0x3f8020['plugins']['has']('TableEditing'))return;const _0x301fc3=_0x3f8020['plugins']['get']('TrackChangesEditing'),_0x244910=_0x3f8020['plugins']['get']('TableUtils'),_0x495ceb=_0x3f8020['plugins']['get'](jt);_0x495ceb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x301fc3['enableCommand']('mergeTableCells',()=>{const _0x5ce417=_0x244910['getSelectionAffectedTableCells'](_0x3f8020['model']['document']['selection']);_0x3f8020['model']['change'](()=>{_0x301fc3['markMultiRangeBlockFormat'](_0x5ce417,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3f8020['commands']['get']('mergeTableCells')['on']('execute',(_0x1ea46d,_0x30c467)=>{_0x3f8020['commands']['get']('trackChanges')['value']&&(_0x30c467['length']>0x0&&_0x30c467[_0x30c467['length']-0x1]&&_0x30c467[_0x30c467['length']-0x1]['forceDefaultExecution']||_0x301fc3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1ea46d['stop']());},{'priority':'highest'});for(const _0x14b6f8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x20ea6f=_0x3f8020['commands']['get'](_0x14b6f8);_0x301fc3['enableCommand'](_0x14b6f8,()=>{const _0x355aff=_0x3f8020['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f1725=>_0x3f1725['is']('element','tableCell')),_0x4c417e=_0x20ea6f['value'];_0x3f8020['model']['change'](()=>{_0x301fc3['markMultiRangeBlockFormat']([_0x355aff,_0x4c417e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2732dd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x45bb4a=_0x3f8020['commands']['get'](_0x2732dd);_0x301fc3['enableCommand'](_0x2732dd,()=>{const _0x2031d3=_0x244910['getSelectionAffectedTableCells'](_0x3f8020['model']['document']['selection'])[0x0],_0x1eab6e=_0x2031d3['findAncestor']('table'),{column:_0x3e5889,row:_0x1aef6c}=_0x244910['getCellLocation'](_0x2031d3);let _0xfd1abe=[];if('horizontally'==_0x45bb4a['direction']){const _0x3659cc=_0x244910['createTableWalker'](_0x1eab6e,{'startRow':_0x1aef6c,'endRow':_0x1aef6c,'includeAllSlots':!0x0});_0xfd1abe=Array['from'](_0x3659cc)['map'](_0x4d1562=>_0x4d1562['cell']);}else{const _0x570bd0=_0x244910['createTableWalker'](_0x1eab6e,{'column':_0x3e5889,'includeAllSlots':!0x0});_0xfd1abe=Array['from'](_0x570bd0)['map'](_0x3aa12d=>_0x3aa12d['cell']);}_0x3f8020['model']['change'](_0x346156=>{_0x301fc3['markBlockFormat'](_0x346156['createRangeOn'](_0x2031d3),{'commandName':_0x2732dd,'commandParams':[]},_0xfd1abe,_0x2732dd);});});}_0x301fc3['descriptionFactory']['registerDescriptionCallback'](_0x10577c=>{if('formatBlock'!=_0x10577c['type']&&'formatInline'!=_0x10577c['type'])return;const {data:_0x179793}=_0x10577c;return _0x179793&&'mergeTableCells'==_0x179793['commandName']?{'type':'format','content':o(_0x5d9446,'*Merge\x20cells*')}:void 0x0;}),_0x301fc3['descriptionFactory']['registerDescriptionCallback'](_0x596ca1=>{if('formatBlock'!=_0x596ca1['type']&&'formatInline'!=_0x596ca1['type'])return;const {data:_0x1461f9}=_0x596ca1;return _0x1461f9?'splitTableCellVertically'==_0x1461f9['commandName']?{'type':'format','content':o(_0x5d9446,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1461f9['commandName']?{'type':'format','content':o(_0x5d9446,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x321102=_0x495ceb['_acceptFormatSuggestionCallbackFactory']();for(const _0x2a602d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x301fc3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a602d,'accept',_0x321102);for(const _0x38b809 of['splitTableCellVertically','splitTableCellHorizontally'])_0x301fc3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38b809,'accept',_0x321102);_0x301fc3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b5f5a=>{_0x3f8020['model']['change'](_0x40101f=>{const _0x1f6afb=Array['from'](_0x210bbb['getRanges']())['map'](_0x401cf8=>_0x3123fd['fromRange'](_0x401cf8));_0x40101f['setSelection'](_0x1b5f5a),_0x3f8020['commands']['get']('mergeTableCells')['refresh'](),_0x3f8020['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x210de5=_0x1f6afb['filter'](_0x47cf9c=>'$graveyard'!=_0x47cf9c['root']['rootName']);_0x210de5['length']>0x0&&_0x40101f['setSelection'](_0x210de5);for(const _0x3c0ab7 of _0x1f6afb)_0x3c0ab7['detach']();});});for(const _0x4d73ae of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54295d=_0x3f8020['commands']['get'](_0x4d73ae);_0x54295d['on']('set:isEnabled',(_0x11374f,_0x434cdd,_0x176a9b)=>{if(_0x176a9b){const _0x255575=_0x3f8020['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c3b76=>_0x3c3b76['is']('element','tableCell'));this['_areMergableCells'](_0x54295d['value'],_0x255575)||(_0x11374f['return']=!0x1,_0x11374f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x186a3d=this['editor']['commands']['get']('mergeTableCells'),_0x172aa7=this['editor']['plugins']['get']('TableUtils');if(!_0x186a3d['isEnabled'])return!0x1;const _0xc29c9=_0x172aa7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5bfd6d of _0xc29c9)for(const _0x37cdc4 of _0xc29c9)if(_0x5bfd6d!=_0x37cdc4&&!this['_areMergableCells'](_0x5bfd6d,_0x37cdc4))return!0x1;return!0x0;}['_areMergableCells'](_0xf45f3e,_0xfb3d08){const _0x34bc52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58d739=this['editor']['model']['createRangeOn'](_0xf45f3e),_0x26fe7f=this['editor']['model']['createRangeOn'](_0xfb3d08),_0x50d949=new Set(),_0xe4cd5e=new Set();for(const _0x51448a of _0x34bc52['getSuggestions']())if(('insertion'==_0x51448a['type']||'deletion'==_0x51448a['type']||'mergeTableCells'==_0x51448a['subType'])&&_0x51448a['isInContent']){for(const _0x35bb75 of _0x51448a['getRanges']())_0x35bb75['containsRange'](_0x58d739,!0x0)&&_0x50d949['add'](_0x51448a['type']+':'+_0x51448a['author']['id']),_0x35bb75['containsRange'](_0x26fe7f,!0x0)&&_0xe4cd5e['add'](_0x51448a['type']+':'+_0x51448a['author']['id']);}if(_0x50d949['size']!=_0xe4cd5e['size'])return!0x1;for(const _0x476ad0 of _0x50d949)if(!_0xe4cd5e['has'](_0x476ad0))return!0x1;return!0x0;}}class At extends _0x198c8f{static get['requires'](){return[jt];}['afterInit'](){const _0x1547f1=this['editor'];if(!_0x1547f1['plugins']['has']('TableEditing'))return;const _0xccabc2=_0x1547f1['locale'],_0x2ec479=_0x1547f1['plugins']['get']('TrackChangesEditing');_0x2ec479['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2ec479['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2ec479['registerBlockAttribute']('headingRows'),_0x2ec479['registerBlockAttribute']('headingColumns'),_0x2ec479['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xccabc2,'FORMAT_HEADER_ROW')),_0x2ec479['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xccabc2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x29393f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x477b5b=this['editor']['plugins']['get']('TableUtils'),_0x1ff1f2=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x50a617({showActiveMarker:_0x2d1f07=!0x0,setDataAttribute:_0x5af212=!0x0}={}){return(_0xcecf93,_0x375e52,_0x4ac306)=>{const {type:_0x309976,id:_0x328cca}=_0x29393f['_splitMarkerName'](_0x375e52['markerName']),_0x3aacf5=_0x29393f['getSuggestion'](_0x328cca),_0x1d7d62=_0x3aacf5['data'];if('formatBlock'!=_0x3aacf5['type']||!_0x1d7d62||'setTableColumnHeader'!=_0x1d7d62['commandName'])return;if(_0x375e52['item'])return void _0xcecf93['stop']();if(!_0x4ac306['consumable']['consume'](_0x375e52['markerRange'],_0xcecf93['name']))return;const _0x2cde5f=_0x375e52['markerRange']['start']['nodeAfter'],_0x48f040=_0x375e52['markerRange']['end']['nodeBefore'],_0x16acf9=_0x2cde5f['parent']['parent'],{column:_0x488e77}=_0x477b5b['getCellLocation'](_0x2cde5f),{column:_0x2de5bd}=_0x477b5b['getCellLocation'](_0x48f040);for(let _0x2435fe=_0x488e77;_0x2435fe<=_0x2de5bd;_0x2435fe++){const _0x296e37=_0x477b5b['createTableWalker'](_0x16acf9,{'column':_0x2435fe,'includeAllSlots':!0x1});for(const _0x1c77e4 of _0x296e37){const _0x3fb43e=_0x1c77e4['cell'],_0x30167d=_0x4ac306['mapper']['toViewElement'](_0x3fb43e);_0x4ac306['writer']['addClass']('ck-suggestion-marker-'+_0x309976,_0x30167d),_0x5af212&&_0x4ac306['writer']['setAttribute']('data-suggestion',_0x328cca,_0x30167d),_0x4ac306['mapper']['bindElementToMarker'](_0x30167d,_0x375e52['markerName']),_0x2d1f07&&(_0x29393f['activeMarkers']['includes'](_0x375e52['markerName'])?_0x4ac306['writer']['addClass']('ck-suggestion-marker--active',_0x30167d):_0x4ac306['writer']['removeClass']('ck-suggestion-marker--active',_0x30167d));}}};}_0x29393f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1ff1f2),_0x29393f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1ff1f2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x50a617(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4525da,_0x4a207c,_0x89221c)=>{_0x89221c['options']['showSuggestionHighlights']&&_0x50a617({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4525da,_0x4a207c,_0x89221c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5dd75a,_0x1fedc0,_0x43a14d)=>{const {type:_0x2a3df4,id:_0x49acd2}=_0x29393f['_splitMarkerName'](_0x1fedc0['markerName']),_0x6f14d0=_0x29393f['getSuggestion'](_0x49acd2),_0x52425d=_0x6f14d0['data'];if('formatBlock'!=_0x6f14d0['type']||!_0x52425d||'setTableColumnHeader'!=_0x52425d['commandName'])return;const _0x4f0e8e=_0x43a14d['mapper']['markerNameToElements'](_0x1fedc0['markerName']);if(_0x4f0e8e){for(const _0x596f99 of _0x4f0e8e)_0x43a14d['writer']['removeClass']('ck-suggestion-marker-'+_0x2a3df4,_0x596f99),_0x43a14d['writer']['removeClass']('ck-suggestion-marker--active',_0x596f99),_0x43a14d['writer']['removeAttribute']('data-suggestion',_0x596f99),_0x43a14d['mapper']['unbindElementFromMarkerName'](_0x596f99,_0x1fedc0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x300899=this['editor'],_0x4cfba3=_0x300899['locale'];function _0x432621(_0x17d424){return{'type':'format','content':o(_0x4cfba3,'*Format:*\x20%0',_0x17d424)};}_0x300899['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de679=>{if('formatBlock'!=_0x3de679['type'])return;const {data:_0x3149e3}=_0x3de679;if(_0x3149e3){if('setTableRowHeader'==_0x3149e3['commandName']){const _0x3d94a0=_0x3149e3['commandParams'][0x0]['forceValue'];return _0x432621(o(_0x4cfba3,_0x3d94a0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3149e3['commandName']){const _0x5a9990=_0x3149e3['commandParams'][0x0]['forceValue'];return _0x432621(o(_0x4cfba3,_0x5a9990?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1c124e=>[_0x1c124e,null]));class It extends _0x198c8f{static get['requires'](){return[jt];}['afterInit'](){const _0x5e3615=this['editor'];if(!_0x5e3615['plugins']['has']('TableClipboard'))return;const _0x2c443c=_0x5e3615['plugins']['get']('TrackChangesEditing'),_0x3a32b9=_0x5e3615['plugins']['get']('TableUtils'),_0x34da67=_0x5e3615['plugins']['get'](jt),_0x54dcda=_0x5e3615['plugins']['get']('TableClipboard');_0x34da67['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5e3615['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5e3615['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x10ca0d=null;_0x5e3615['model']['on']('insertContent',(_0x274156,_0x127ce5)=>{const [_0x330ea2,_0x2b730c]=_0x127ce5,_0x22e6bd=_0x127ce5[_0x127ce5['length']-0x1];_0x22e6bd&&_0x22e6bd['forceDefaultExecution']||_0x2c443c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xff94f8,_0x5d049a,_0x12302b,_0x22579f,_0x3b20d5){if(_0x5d049a&&!_0x5d049a['is']('documentSelection'))return!0x1;const _0x19b2dd=_0x3b20d5['getTableIfOnlyTableInContent'](_0xff94f8,_0x12302b);if(!_0x19b2dd||!he(_0x19b2dd,void 0x0,_0x22579f))return!0x1;const _0x187ab8=_0x22579f['getSelectionAffectedTableCells'](_0x12302b['document']['selection']);if(!_0x187ab8['length'])return!0x1;const _0x563a40=_0x187ab8[0x0]['findAncestor']('table'),_0x44fa37=_0x22579f['getRowIndexes'](_0x187ab8),_0x8d8043=_0x22579f['getColumnIndexes'](_0x187ab8),_0x3666c2={'startRow':_0x44fa37['first'],'endRow':_0x44fa37['last'],'startColumn':_0x8d8043['first'],'endColumn':_0x8d8043['last']};return 0x1==_0x187ab8['length']&&(_0x3666c2['endRow']+=_0x22579f['getRows'](_0x19b2dd)-0x1,_0x3666c2['endColumn']+=_0x22579f['getColumns'](_0x19b2dd)-0x1),he(_0x563a40,_0x3666c2,_0x22579f);}(_0x330ea2,_0x2b730c,_0x5e3615['model'],_0x3a32b9,_0x54dcda)&&(_0x274156['stop'](),_0x10ca0d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5e3615['model']['change'](()=>{_0x5e3615['model']['insertContent'](_0x127ce5[0x0],_0x127ce5[0x1],_0x127ce5[0x2],{'forceDefaultExecution':!0x0});const _0x3dccb0=_0x59f381(),{rowInsertionRanges:_0xbd7fc9,columnInsertionRanges:_0x39b12b,insertionRanges:_0x309105,deletionRanges:_0x43e5da,cells:_0x147d1e}=_0x10ca0d;_0xbd7fc9['length']&&_0x2c443c['markMultiRangeInsertion'](_0xbd7fc9,'tablePasteRow',{'tablePasteChainId':_0x3dccb0}),_0x39b12b['length']&&_0x2c443c['markMultiRangeInsertion'](_0x39b12b,'tablePasteColumn',{'tablePasteChainId':_0x3dccb0}),_0x309105['length']&&(_0x2c443c['markMultiRangeInsertion'](_0x309105,'tablePaste',{'tablePasteChainId':_0x3dccb0,'skipNestingCheck':!0x0}),_0x309105['forEach'](_0x39a024=>_0x39a024['detach']?.())),_0x43e5da['length']&&(_0x2c443c['markMultiRangeDeletion'](_0x43e5da,'tablePaste',{'tablePasteChainId':_0x3dccb0,'skipNestingCheck':!0x0}),_0x43e5da['forEach'](_0x458162=>_0x458162['detach']?.()));const _0x50ab25=_0x2c443c['markMultiRangeBlockFormat'](_0x147d1e['map'](({element:_0x4b969a})=>_0x4b969a),{'formatGroupId':_0x59f381()},[],'tablePasteCell',{'tablePasteChainId':_0x3dccb0});if(_0x50ab25){const _0x25790b=_0x50ab25['getMarkers'](),_0x1b30de=[];for(const {element:_0x3527d9,attributes:_0x569d64}of _0x147d1e){if(!_0x569d64)continue;const _0x45644a=_0x5e3615['model']['createRangeOn'](_0x3527d9),_0x2fbadf=_0x25790b['find'](_0x123e80=>_0x123e80['getRange']()['isEqual'](_0x45644a));_0x2fbadf&&_0x1b30de['push']([_0x2fbadf['name'],_0x569d64]);}_0x1b30de['length']&&_0x50ab25['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b30de));}_0x10ca0d=null;}));},{'priority':_0x1d17d2['high']+0xa}),_0x5e3615['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f4a90,_0x9c518b)=>{const [_0x768ed0,_0x504d27,,_0x37c04b]=_0x9c518b;if(!_0x10ca0d)return;_0x3f4a90['stop']();const _0x451571=_0x768ed0['cell'],_0x32c970=_0x504d27,_0x22664a=Pe(_0x451571),_0x941a45=Pe(_0x32c970);_0x3f4a90['return']=_0x451571;let _0x47973e=null,_0xda49ad=null;if(_0x941a45||_0x22664a){if(_0x22664a&&!_0x941a45){_0x37c04b['remove'](_0x451571['getChild'](0x0));for(const _0x2153ae of Array['from'](_0x32c970['getChildren']()))_0x37c04b['insert'](_0x2153ae,_0x451571,'end');const _0x547ba4=_0x10ca0d['rowInsertionIndexes']['includes'](_0x768ed0['row']),_0x49d4ee=_0x10ca0d['columnInsertionIndexes']['includes'](_0x768ed0['column']);_0x547ba4||_0x49d4ee||(_0x47973e=_0x3123fd['fromRange'](_0x37c04b['createRangeIn'](_0x451571)));}else _0x941a45&&!_0x22664a&&(_0xda49ad=_0x37c04b['createRangeIn'](_0x451571));}else{const _0x23fdc=_0x37c04b['createElement']('tableCellSuggestion'),_0x432771=_0x37c04b['createElement']('tableCellSuggestion');_0x37c04b['wrap'](_0x37c04b['createRangeIn'](_0x451571),_0x432771),_0x37c04b['insert'](_0x23fdc,_0x451571,0x0);for(const _0x5b77a4 of Array['from'](_0x32c970['getChildren']()))_0x37c04b['insert'](_0x5b77a4,_0x23fdc,'end');_0x47973e=_0x3123fd['fromRange'](_0x37c04b['createRangeOn'](_0x23fdc)),_0xda49ad=_0x3123fd['fromRange'](_0x37c04b['createRangeOn'](_0x432771));}const _0x3836a1=Array['from'](_0x32c970['getAttributes']())['filter'](([_0x175e58])=>ge['includes'](_0x175e58));_0x10ca0d['cells']['push']({'element':_0x451571,'attributes':_0x3836a1['length']?Object['fromEntries'](_0x3836a1):null}),_0x47973e&&_0x10ca0d['insertionRanges']['push'](_0x47973e),_0xda49ad&&_0x10ca0d['deletionRanges']['push'](_0xda49ad);},{'priority':'high'}),_0x3a32b9['on']('insertColumns',(_0x980b6c,_0x3ba53e)=>{const [_0x56deec,_0x5aac27={}]=_0x3ba53e;if(!_0x10ca0d)return;const _0x5e7143=_0x5aac27['at']||0x0,_0x42b25d=_0x5aac27['columns']||0x1;_0x10ca0d['columnInsertionIndexes']=new Array(_0x42b25d)['fill'](_0x5e7143)['map']((_0x5964e0,_0x243ba2)=>_0x5964e0+_0x243ba2);for(const {cell:_0x2800f0}of _0x3a32b9['createTableWalker'](_0x56deec,{'startColumn':_0x5e7143,'endColumn':_0x5e7143+_0x42b25d-0x1}))_0x10ca0d['columnInsertionRanges']['push'](_0x5e3615['model']['createRangeOn'](_0x2800f0));},{'priority':'low'}),_0x3a32b9['on']('insertRows',(_0x1d5fc4,_0x70c9ae)=>{const [_0xaacc37,_0x215c80={}]=_0x70c9ae;if(!_0x10ca0d)return;const _0x3c275a=_0x215c80['at']||0x0,_0x2d8a03=_0x215c80['rows']||0x1;_0x10ca0d['rowInsertionIndexes']=new Array(_0x2d8a03)['fill'](_0x3c275a)['map']((_0x324756,_0xd9542b)=>_0x324756+_0xd9542b);for(const {cell:_0x455b99}of _0x3a32b9['createTableWalker'](_0xaacc37,{'startRow':_0x3c275a,'endRow':_0x3c275a+_0x2d8a03-0x1}))_0x10ca0d['rowInsertionRanges']['push'](_0x5e3615['model']['createRangeOn'](_0x455b99));},{'priority':'low'}),_0x2c443c['descriptionFactory']['registerDescriptionCallback'](_0x2728fe=>{if(_0x2728fe['subType']&&_0x2728fe['subType']['startsWith']('tablePaste'))return _0x2728fe['previous']?{}:{'type':'insertion','content':o(_0x5e3615['locale'],'*Replace\x20table\x20cells*')};});const _0xceec6=()=>!0x1;for(const _0x547ee5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c443c['_suggestionFactory']['registerCustomCallback']('insertion',_0x547ee5,'join',_0xceec6),_0x2c443c['_suggestionFactory']['registerCustomCallback']('deletion',_0x547ee5,'join',_0xceec6),_0x2c443c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x547ee5,'join',_0xceec6);_0x2c443c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xceec6),_0x2c443c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x26d28a,_0x548842,_0x3af7ff)=>{const _0x566ecf=_0x26d28a['map'](_0x3cbe65=>_0x3cbe65['getContainedElement']())['filter'](_0x5a829a=>_0x5a829a),_0x30a471=new Map(_0x566ecf['map'](_0x51f2ae=>[_0x51f2ae,null]));if(_0x10ca0d){for(const {element:_0x5d51ea,attributes:_0x10ebf0}of _0x10ca0d['cells'])_0x10ebf0&&_0x30a471['set'](_0x5d51ea,_0x10ebf0);}else{if(_0x3af7ff&&_0x3af7ff['markerAttributes'])for(const [_0x1bd72f,_0x29462c]of Object['entries'](_0x3af7ff['markerAttributes'])){const _0x1fe9ce=_0x5e3615['model']['markers']['get'](_0x1bd72f),_0x3b490f=_0x1fe9ce?_0x1fe9ce['getRange']()['getContainedElement']():null;_0x3b490f&&_0x30a471['set'](_0x3b490f,_0x29462c);}}_0x5e3615['model']['change'](_0x306e1c=>{for(const [_0xc8721d,_0x242d53]of _0x30a471)_0x306e1c['setAttributes']({...Ce,..._0x242d53},_0xc8721d);});});const _0x54a9fb=(_0x125f0d,_0x391014)=>{_0x2c443c['_suggestionFactory']['registerCustomCallback'](_0x125f0d,'tablePaste',_0x391014,(_0x4ea256,_0x5424b9,_0x4bccaa)=>{_0x5e3615['model']['change'](_0x333add=>{const _0x430d4c=[];for(const _0x54a013 of _0x4ea256){const _0x311315=_0x54a013['start']['nodeAfter'];_0x311315['is']('element','tableCellSuggestion')&&_0x430d4c['push'](_0x311315);}_0x2c443c['_suggestionFactory']['getSuggestionCallback'](_0x125f0d,null,_0x391014)(_0x4ea256,_0x5424b9,_0x4bccaa);for(const _0x1eea08 of _0x430d4c)'$graveyard'!=_0x1eea08['root']['rootName']&&_0x333add['unwrap'](_0x1eea08);});});};_0x54a9fb('insertion','accept'),_0x54a9fb('insertion','discard'),_0x54a9fb('deletion','accept'),_0x54a9fb('deletion','discard'),_0x2c443c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xa59477=>{const _0x42404a=_0xa59477['map'](_0x5e26a9=>_0x5e26a9['getContainedElement']()),_0x351194=_0x42404a[0x0]['findAncestor']('table'),{minRow:_0x46206a,maxRow:_0x1382e5}=_0x34da67['_getCoordsForCells'](_0x42404a);_0x3a32b9['removeRows'](_0x351194,{'at':_0x46206a,'rows':_0x1382e5-_0x46206a+0x1});}),_0x2c443c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x75401d=>{const _0x527a4b=_0x75401d['map'](_0x2b6bd9=>_0x2b6bd9['getContainedElement']()),_0x292893=_0x527a4b[0x0]['findAncestor']('table'),{minColumn:_0x36320a,maxColumn:_0x12e60f}=_0x34da67['_getCoordsForCells'](_0x527a4b);_0x3a32b9['removeColumns'](_0x292893,{'at':_0x36320a,'columns':_0x12e60f-_0x36320a+0x1});});const _0x1579ea=(_0x4fa05f,_0x889a5)=>{if(!_0x889a5['subType']||!_0x889a5['subType']['startsWith']('tablePaste'))return;const _0x3bc2ad=_0x889a5['attributes']['tablePasteChainId'],_0x45278e=_0x2c443c['getSuggestions']()['filter'](_0x4b77ad=>_0x4b77ad['isInContent']&&_0x4b77ad['attributes']&&_0x4b77ad['attributes']['tablePasteChainId']==_0x3bc2ad);_0x45278e['length']&&_0x889a5['getAllAdjacentSuggestions']()['length']!=_0x45278e['length']&&_0x45278e['reduce']((_0x56e477,_0x7fa9e2)=>(_0x56e477['next']=_0x7fa9e2,_0x7fa9e2['previous']=_0x56e477,_0x7fa9e2));};function _0xb831d3(_0x511baa,_0x22590e=!0x0){const {id:_0x3e8533}=_0x2c443c['_splitMarkerName'](_0x511baa['markerName']),_0x47fbfe=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x6ba5f9=_0x2c443c['activeMarkers']['includes'](_0x511baa['markerName']);return _0x6ba5f9&&_0x47fbfe['push']('ck-suggestion-marker--active'),{'classes':_0x47fbfe,'attributes':{'data-suggestion':_0x3e8533},'priority':_0x6ba5f9&&_0x22590e?0xbc2:0xbb8};}_0x2c443c['on']('suggestionLoaded',_0x1579ea,{'priority':'high'}),_0x2c443c['on']('suggestionUnloaded',_0x1579ea,{'priority':'high'}),_0x5e3615['model']['document']['registerPostFixer'](()=>{let _0x2336d3=!0x1;const _0x2c65ee=Array['from'](_0x5e3615['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fc3bd,data:_0x4ee6c5}of _0x2c65ee){const {group:_0x5975a3,type:_0x35e249,id:_0x3504d9}=_0x2c443c['_splitMarkerName'](_0x1fc3bd);if('suggestion'!=_0x5975a3||'deletion'!=_0x35e249||_0x4ee6c5['oldRange'])continue;if(!_0x2c443c['hasSuggestion'](_0x3504d9))continue;const _0x34c85e=_0x2c443c['getSuggestion'](_0x3504d9)['getRanges'](),_0x40f582=_0x5e3615['plugins']['get']('Users')['me'];for(const _0x185512 of _0x2c443c['getSuggestions']()){if(!_0x185512['isInContent']||_0x185512['author']!=_0x40f582)continue;if('formatBlock'!=_0x185512['type']||'tablePasteCell'!=_0x185512['subType'])continue;if(_0x185512['getRanges']()['every'](_0x13919c=>_0x34c85e['some'](_0x14602c=>_0x14602c['containsRange'](_0x13919c,!0x0)))){for(const _0xef813b of _0x185512['getAllAdjacentSuggestions']())_0xef813b['isInContent']&&(_0xef813b['discard'](),_0x2336d3=!0x0);}}}return _0x2336d3;}),_0x5e3615['model']['document']['registerPostFixer'](_0x4454ae=>{const _0x5b5813=_0x5e3615['commands']['get']('redo');if(!_0x5b5813||!_0x5b5813['_createdBatches']['has'](_0x4454ae['batch']))return!0x1;let _0x3f1e5f=!0x1;const _0x15a799=_0x5e3615['plugins']['get']('Users')['me'],_0x1b3b63=_0x5e3615['model']['document']['differ']['getChanges'](),_0x2cfb27=Array['from'](_0x5e3615['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2e44d6,data:_0x343cf9})=>{const {group:_0x1f5410,subType:_0x5b5531,authorId:_0xabbbe4}=_0x2c443c['_splitMarkerName'](_0x2e44d6);return'suggestion'==_0x1f5410&&'tablePaste'==_0x5b5531&&_0xabbbe4==_0x15a799['id']&&!_0x343cf9['oldRange'];});for(const _0xd6f19 of _0x1b3b63){if('insert'!=_0xd6f19['type']||'tableCellSuggestion'!=_0xd6f19['name']||0x1!=_0xd6f19['length'])continue;const _0x5b72d4=_0x4454ae['createRange'](_0xd6f19['position'],_0xd6f19['position']['getShiftedBy'](0x1));if(!_0x2cfb27['find'](({data:_0x370790})=>_0x370790['newRange']['isEqual'](_0x5b72d4))){for(const {name:_0x1e2a6e,data:_0x4d1d23}of _0x2cfb27)if(_0x5b72d4['containsRange'](_0x4d1d23['newRange'])){_0x4454ae['updateMarker'](_0x1e2a6e,{'range':_0x5b72d4}),_0x3f1e5f=!0x0;break;}}}return _0x3f1e5f;}),_0x5e3615['model']['document']['registerPostFixer'](_0x17fe00=>{let _0x1c4d52=!0x1;const _0x1d1927=_0x5e3615['plugins']['get']('Users')['me'],_0x85ca59=_0x2c443c['getSuggestions']()['filter'](_0x269baf=>_0x269baf['isInContent']&&_0x269baf['author']==_0x1d1927),_0x315579=new Set(),_0x32e88a=new Set();for(const _0x1956af of _0x85ca59)if('tablePaste'==_0x1956af['subType'])for(const _0xffceca of _0x1956af['getMarkers']()){const _0x152c9e=_0xffceca['getRange']()['getContainedElement']();if(_0x152c9e){if(_0x152c9e['is']('element','tableCellSuggestion')&&Pe(_0x152c9e)){_0x1956af['removeMarker'](_0xffceca['name']),_0x315579['add'](_0x152c9e),_0x1c4d52=!0x0;const _0x3ab520=_0x152c9e['nextSibling'],_0x470aaa=_0x152c9e['previousSibling'],_0x2c350b=_0x3ab520&&_0x3ab520['is']('element','tableCellSuggestion'),_0x481afa=_0x470aaa&&_0x470aaa['is']('element','tableCellSuggestion');_0x2c350b&&!_0x315579['has'](_0x3ab520)&&_0x32e88a['add'](_0x3ab520),_0x481afa&&!_0x315579['has'](_0x470aaa)&&_0x32e88a['add'](_0x470aaa);}else _0x152c9e['is']('element','paragraph')&&_0x152c9e['isEmpty']&&(_0x1956af['removeMarker'](_0xffceca['name']),_0x1c4d52=!0x0);}}else{if('tablePasteCell'==_0x1956af['subType']){if(!_0x1956af['attributes']||!_0x1956af['attributes']['tablePasteChainId'])continue;const _0x5a4809=_0x1956af['attributes']['markerAttributes'];if(_0x5a4809&&Object['keys'](_0x5a4809)['length'])continue;const _0x14e29e=_0x1956af['attributes']['tablePasteChainId'];let _0x10de81=!0x0,_0x5d4213=!0x0;for(const _0x257f8a of _0x85ca59)if(_0x257f8a['subType']&&_0x257f8a['subType']['startsWith']('tablePaste')){if(!_0x257f8a['attributes']['tablePasteChainId']){_0x5d4213=!0x1;break;}if(_0x257f8a['id']!=_0x1956af['id']&&_0x257f8a['attributes']['tablePasteChainId']==_0x14e29e){_0x10de81=!0x1;break;}}_0x5d4213&&_0x10de81&&(_0x1956af['removeMarkers'](),_0x1c4d52=!0x0);}}for(const _0x520061 of _0x315579)_0x17fe00['remove'](_0x520061);for(const _0x49cca0 of _0x32e88a)_0x17fe00['unwrap'](_0x49cca0);return _0x1c4d52;}),_0x5e3615['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x120aa4,_0x3ed68c)=>_0xb831d3(_0x120aa4),'converterPriority':'high'}),_0x5e3615['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x242943,_0x312eca)=>_0x312eca['options']['showSuggestionHighlights']?_0xb831d3(_0x242943,!0x1):null,'converterPriority':'high'});const _0x4c0667=_0x5e3615['editing']['view'];this['listenTo'](_0x4c0667['document'],'clipboardOutput',(_0x24702d,_0x4a02e3)=>{const _0x3b8118=[];for(const _0x53089d of _0x4c0667['createRangeIn'](_0x4a02e3['content'])['getItems']())_0x53089d['is']('element','suggestion-td')&&_0x3b8118['push'](_0x53089d);_0x4c0667['change'](_0x38dddd=>{for(const _0x71cf51 of _0x3b8118)_0x38dddd['move'](_0x38dddd['createRangeIn'](_0x71cf51),_0x38dddd['createPositionBefore'](_0x71cf51)),_0x38dddd['remove'](_0x71cf51);});});}}function Pe(_0x584466){if(_0x584466['isEmpty'])return!0x0;const _0x17180d=_0x584466['getChild'](0x0);return _0x17180d['is']('element','paragraph')&&_0x17180d['isEmpty'];}function he(_0x2e35b0,_0x5efa77={},_0xf2a9d6){for(const {isAnchor:_0x39f228,cellHeight:_0x1fd962,cellWidth:_0x58f0c8}of _0xf2a9d6['createTableWalker'](_0x2e35b0,{'includeAllSlots':!0x0,..._0x5efa77}))if(!_0x39f228||0x1!=_0x1fd962||0x1!=_0x58f0c8)return!0x1;return!0x0;}class vt extends _0x198c8f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xe79e82=this['editor']['plugins']['get']('TrackChangesEditing');_0xe79e82['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xe79e82['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xe79e82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe79e82['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xe79e82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xe79e82['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x375114,_0xa68fbb){const _0x423f33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22bf2e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x203c70=_0xa68fbb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f0c6d=_0x22bf2e['getColumnGroupElement'](_0x203c70);let _0x21f7d0=_0x3f0c6d?_0x22bf2e['getTableColumnsWidths'](_0x3f0c6d):null,_0x3d9cbf=_0x203c70['getAttribute']('tableWidth')||null;const _0x34eacb=_0xa68fbb['tableWidth']||_0x3d9cbf,_0x46117e=_0xa68fbb['columnWidths']||_0x21f7d0,_0x354224=this['editor']['plugins']['get']('Users')['me'];for(const _0x277949 of _0x423f33['getSuggestions']()){const _0x4dbf08=_0x277949['getContainedElement']();if('resizeTable'===_0x277949['subType']&&_0x4dbf08===_0x203c70){_0x277949['author']!==_0x354224&&_0x277949['discard']();const _0x125bfb=_0x277949['data']['commandParams'];_0x3d9cbf=_0x125bfb[0x0]['tableWidth'],_0x21f7d0=_0x125bfb[0x0]['columnWidths'];break;}}_0x375114({'table':_0x203c70,'tableWidth':_0x34eacb,'columnWidths':_0x46117e}),_0x423f33['markBlockFormat'](_0x203c70,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3d9cbf,'columnWidths':_0x21f7d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x326563){if('formatBlock'!=_0x326563['type']&&'formatInline'!=_0x326563['type'])return;const {data:_0x38f6ce}=_0x326563;if(_0x38f6ce&&'resizeTable'===_0x38f6ce['formatGroupId']){const _0x4740b1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4740b1)};}}}class Ct extends _0x198c8f{['afterInit'](){const _0x41a135=this['editor'];_0x41a135['plugins']['has']('Template')&&_0x41a135['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x198c8f{['afterInit'](){const _0x3cf70f=this['editor'];if(!_0x3cf70f['commands']['get']('insertTableOfContents'))return;_0x3cf70f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x524cc9=_0x3cf70f['plugins']['get']('TrackChangesEditing'),_0x208961=_0x3cf70f['locale'];_0x524cc9['descriptionFactory']['registerElementLabel']('tableOfContents',_0xed48b2=>o(_0x208961,'ELEMENT_TABLE_OF_CONTENTS',_0xed48b2));}}class Dt extends _0x198c8f{['afterInit'](){const _0x1754af=this['editor'];if(!_0x1754af['plugins']['has']('Title'))return;const _0x5bfc2=_0x1754af['plugins']['get']('TrackChangesEditing');_0x5bfc2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1754af['locale'],'ELEMENT_TITLE')),_0x1754af['model']['document']['registerPostFixer'](_0x2b67fb=>{let _0x5249e6=!0x1;const _0x53cf05=Array['from'](_0x1754af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d0d05,data:_0x592447}of _0x53cf05){const {group:_0x1052b0}=_0x5bfc2['_splitMarkerName'](_0x3d0d05);if('suggestion'!==_0x1052b0||!_0x592447['newRange'])continue;const _0x2e2671=_0x592447['newRange'],_0x996c69=_0x2e2671['end']['nodeBefore'];if(!_0x996c69||!_0x996c69['is']('element','title-content'))continue;if(!_0x2e2671['start']['isTouching'](_0x2e2671['end']))continue;const _0x19e0ff=_0x1754af['model']['schema']['getNearestSelectionRange'](_0x2e2671['end'],'forward');if(_0x19e0ff&&_0x19e0ff['isCollapsed']){const _0x5542d0=_0x2b67fb['createRange'](_0x2e2671['start'],_0x19e0ff['start']);_0x5542d0['isEqual'](_0x2e2671)||(_0x2b67fb['updateMarker'](_0x3d0d05,{'range':_0x5542d0}),_0x5249e6=!0x0);}_0x5249e6||(_0x2b67fb['removeMarker'](_0x3d0d05),_0x5249e6=!0x0);}return _0x5249e6;});}}class Nt extends _0x198c8f{['afterInit'](){const _0x2fc8fe=this['editor'],_0xfa5aff=_0x2fc8fe['plugins']['get']('TrackChangesEditing');_0x2fc8fe['plugins']['has']('UndoEditing')&&(_0xfa5aff['enableCommand']('undo'),_0xfa5aff['enableCommand']('redo'));}}class Mt extends _0x198c8f{static get['requires'](){return[jt];}['afterInit'](){const _0x220cd5=this['editor'];if(!_0x220cd5['plugins']['has']('TableCaptionEditing'))return;_0x220cd5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x198c8f{['tableProperties'];['tableCellProperties'];constructor(_0x5ce09a){super(_0x5ce09a),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 _0x5014d9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x330ef5 of this['tableProperties'])_0x5014d9['enableCommand'](_0x330ef5,(_0x568cee,_0x82c431)=>{const _0x407276=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x330ef5,[_0x407276],this['tableProperties'],'tableProperties',_0x568cee,_0x82c431);});_0x5014d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5014d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5014d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x33d247,_0x22d47c)=>this['handleDiscardAction'](this['tableProperties'],_0x33d247,_0x22d47c)),_0x5014d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ee6e8 of this['tableCellProperties'])_0x5014d9['enableCommand'](_0x2ee6e8,(_0x2feeb3,_0x2f5a74)=>{const _0x3235bb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ee6e8,_0x3235bb,this['tableCellProperties'],'tableCellProperties',_0x2feeb3,_0x2f5a74);});_0x5014d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5014d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5014d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x32cf42,_0x2513ce)=>this['handleDiscardAction'](this['tableCellProperties'],_0x32cf42,_0x2513ce)),_0x5014d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5014d9['descriptionFactory']['registerDescriptionCallback'](_0x4ba04d=>this['handleSuggestionDescription'](_0x4ba04d));}['_handlePropertyChange'](_0x1bf14c,_0xf4bf10,_0x8ac8b2,_0x100384,_0x3ce17e,_0x51b4de){const _0x564a18=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x51b4de['batch'],()=>{for(const _0x3ef0c9 of _0xf4bf10){if(this['_getSuggestion'](_0x3ef0c9,_0x100384))_0x3ce17e(_0x51b4de);else{const _0x2ea89b={};for(const _0x5642e9 of _0x8ac8b2){const _0x4cb4a4=_0x3ef0c9['getAttribute'](_0x5642e9);void 0x0!==_0x4cb4a4&&(_0x2ea89b[_0x5642e9]=_0x4cb4a4);}_0x3ce17e(_0x51b4de),_0x564a18['markBlockFormat'](_0x3ef0c9,{'commandParams':[_0x2ea89b]},[],_0x100384);}}});}['handleDiscardAction'](_0x2e06ec,_0x4efb14,_0xf97f9b){const _0x2fd5ae=_0x4efb14[0x0]['start']['nodeAfter'],_0x3fe6a5=_0xf97f9b['commandParams'][0x0];this['editor']['model']['change'](_0x5c8a31=>{for(const _0x58ecef of _0x2e06ec)void 0x0!==_0x3fe6a5[_0x58ecef]?_0x5c8a31['setAttribute'](_0x58ecef,_0x3fe6a5[_0x58ecef],_0x2fd5ae):_0x5c8a31['removeAttribute'](_0x58ecef,_0x2fd5ae);});}['handleSuggestionDescription'](_0x1b90cf){if(_0x1b90cf['data'])switch(_0x1b90cf['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'](_0x583bb2,_0x32498a){const _0x210358=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xe74bac of _0x210358['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ab5d9=_0xe74bac['getContainedElement']();if(_0xe74bac['subType']===_0x32498a&&_0x4ab5d9===_0x583bb2)return _0xe74bac;}return null;}}const m='$elementName';class p extends _0x198c8f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x182efd,_0x3220a5,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(_0x29f6bc){function _0x37c268(_0x4cb33f){return _0x4cb33f['map'](_0x5dcf19=>String['fromCharCode'](_0x5dcf19))['join']('');}super(_0x29f6bc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5121c2,_0x2b4120,_0x4556eb,_0x361970)=>{this['_model']['change'](()=>{for(const _0x447154 of[..._0x361970,..._0x4556eb])this['_model']['markers']['has'](_0x447154)&&_0x29f6bc['editing']['reconvertMarker'](_0x447154);});}),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']=_0x29f6bc['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(),_0x29f6bc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29f6bc['config']['get']('trackChanges.trackFormatChanges'),_0x29f6bc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29f6bc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x29f6bc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x37c268([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x37c268([0x34,0x30,0x34,0x38,0x31,0x32,0x35,0x34]);}['init'](){const _0x4e2a6a=this['editor'],_0x50e1e0=(_0x1414a1,_0x3d42eb)=>{if('attribute'!=_0x1414a1)return'ck-suggestion-marker-'+_0x1414a1;const _0x10d290=_0x3d42eb['split']('|')[0x0];return this['_isBlockAttribute'](_0x10d290)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e2a6a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3d4719=>{const {id:_0x11b591,type:_0x362ede,subType:_0x2c8123}=this['_splitMarkerName'](_0x3d4719['markerName']),_0x544ff1=['ck-suggestion-marker',_0x50e1e0(_0x362ede,_0x2c8123)];let _0x1cbcd7=0xbb8;return this['activeMarkers']['includes'](_0x3d4719['markerName'])&&(_0x544ff1['push']('ck-suggestion-marker--active'),_0x1cbcd7=0xbc2),'deletion'==_0x362ede&&(_0x1cbcd7+=0x5),{'classes':_0x544ff1,'attributes':{'data-suggestion':_0x11b591},'priority':_0x1cbcd7};}}),_0x4e2a6a['conversion']['for']('dataDowncast')['add'](_0x3258d6=>{_0x3258d6['on']('addMarker:suggestion',(_0x2afef7,_0x2470b9,_0xa3b27d)=>{if(!_0xa3b27d['options']['showSuggestionHighlights'])return;const _0x2e1c70=_0x2470b9['item'];if(!_0x2e1c70)return;const _0x23bb97=_0xa3b27d['mapper']['toViewElement'](_0x2e1c70);_0x4e2a6a['model']['schema']['isObject'](_0x2e1c70)&&_0x23bb97&&!_0x23bb97['getCustomProperty']('widget')&&_0x23bb97['is']('containerElement')&&_0x33945f(_0x23bb97,_0xa3b27d['writer']);},{'priority':'high'});}),_0x4e2a6a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3b4fa9,_0x26cd04)=>{if(!_0x26cd04['options']['showSuggestionHighlights'])return null;const {type:_0x50d371,subType:_0x2f8a9e}=this['_splitMarkerName'](_0x3b4fa9['markerName']);return{'classes':['ck-suggestion-marker',_0x50e1e0(_0x50d371,_0x2f8a9e)],'priority':0xbb8};}});const _0x270fb8=({showActiveMarkers:_0x4cce1c=!0x0,isAttributeSuggestion:_0x5be07d=!0x1}={})=>(_0x3ae68a,_0x271eae,_0x21af6f)=>{if(!_0x271eae['item'])return;const {id:_0x218ed6}=this['_splitMarkerName'](_0x271eae['markerName']);if(_0x5be07d){const _0x4ccd90=this['_suggestions']['get'](_0x218ed6),_0x273af1=this['_getAttributeKey'](_0x4ccd90);if(!this['_isBlockAttribute'](_0x273af1))return;}if(_0x271eae['item']['is']('selection'))return void _0x21af6f['consumable']['consume'](_0x271eae['item'],_0x3ae68a['name']);const _0x55ff10=_0x21af6f['mapper']['toViewElement'](_0x271eae['item']);if(_0x271eae['item']['is']('element')&&_0x4e2a6a['model']['schema']['isBlock'](_0x271eae['item'])&&!_0x55ff10['getCustomProperty']('addHighlight')){_0x21af6f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x55ff10),_0x21af6f['writer']['setAttribute']('data-suggestion',_0x218ed6,_0x55ff10),_0x21af6f['mapper']['bindElementToMarker'](_0x55ff10,_0x271eae['markerName']),_0x4cce1c&&(this['activeMarkers']['includes'](_0x271eae['markerName'])?_0x21af6f['writer']['addClass']('ck-suggestion-marker--active',_0x55ff10):_0x21af6f['writer']['removeClass']('ck-suggestion-marker--active',_0x55ff10));for(const _0x300de8 of _0x4e2a6a['model']['createRangeIn'](_0x271eae['item'])['getItems']())_0x21af6f['consumable']['consume'](_0x300de8,_0x3ae68a['name']);_0x21af6f['consumable']['consume'](_0x271eae['item'],_0x3ae68a['name']);}};_0x4e2a6a['conversion']['for']('dataDowncast')['add'](_0x29849f=>{_0x29849f['on']('addMarker:suggestion:formatBlock',(_0x2ef605,_0x397e5b,_0x4fd55c)=>{_0x4fd55c['options']['showSuggestionHighlights']&&_0x270fb8({'showActiveMarkers':!0x1})(_0x2ef605,_0x397e5b,_0x4fd55c);},{'priority':'highest'});}),_0x4e2a6a['conversion']['for']('dataDowncast')['add'](_0x212463=>{_0x212463['on']('addMarker:suggestion:attribute',(_0x4dcb53,_0x123429,_0x225459)=>{_0x225459['options']['showSuggestionHighlights']&&_0x270fb8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4dcb53,_0x123429,_0x225459);},{'priority':'highest'});}),_0x4e2a6a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3360ff,_0x5dd74f)=>_0x5dd74f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3360ff['substr'](0xb)}}),_0x4e2a6a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23b138,{writer:_0x36cda6})=>{let _0x34b2a9='suggestion:'+_0x23b138['getAttribute']('suggestion-type')+':'+_0x23b138['getAttribute']('id');return _0x23b138['getAttribute']('marker-count')&&(_0x34b2a9+=':'+_0x23b138['getAttribute']('marker-count')),_0x36cda6['createElement']('$marker',{'data-name':_0x34b2a9});}}),_0x4e2a6a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e2a6a['conversion']['for']('editingDowncast')['add'](_0x424c2e=>{_0x424c2e['on']('addMarker:suggestion:formatBlock',_0x270fb8(),{'priority':'high'});}),_0x4e2a6a['conversion']['for']('editingDowncast')['add'](_0x3539f2=>{_0x3539f2['on']('addMarker:suggestion:attribute',_0x270fb8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e2a6a['conversion']['for']('editingDowncast')['add'](_0x4f1632=>{_0x4f1632['on']('removeMarker:suggestion:formatBlock',(_0x5cf508,_0x518412,_0x38ff59)=>{const _0x2377d2=_0x38ff59['mapper']['markerNameToElements'](_0x518412['markerName']);if(_0x2377d2){for(const _0x4a55cf of _0x2377d2)_0x4a55cf['getCustomProperty']('addHighlight')||(_0x38ff59['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a55cf),_0x38ff59['writer']['removeAttribute']('data-suggestion',_0x4a55cf),_0x38ff59['mapper']['unbindElementFromMarkerName'](_0x4a55cf,_0x518412['markerName']));}},{'priority':'high'});}),_0x4e2a6a['conversion']['for']('editingDowncast')['add'](_0x4c6707=>{_0x4c6707['on']('removeMarker:suggestion:attribute',(_0x29e4e4,_0x115d6b,_0x3e5433)=>{const _0x364cb9=_0x3e5433['mapper']['markerNameToElements'](_0x115d6b['markerName']);if(!_0x364cb9)return;const {id:_0xecb5a6}=this['_splitMarkerName'](_0x115d6b['markerName']),_0x1345bc=this['_suggestions']['get'](_0xecb5a6),_0x1b5c66=this['_getAttributeKey'](_0x1345bc);if(this['_isBlockAttribute'](_0x1b5c66)){for(const _0x3b9e10 of _0x364cb9)_0x3b9e10['getCustomProperty']('addHighlight')||(_0x3e5433['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b9e10),_0x3e5433['writer']['removeAttribute']('data-suggestion',_0x3b9e10),_0x3e5433['mapper']['unbindElementFromMarkerName'](_0x3b9e10,_0x115d6b['markerName']));}},{'priority':'high'});}),_0x4e2a6a['model']['document']['registerPostFixer'](_0x390814=>{let _0x259659=!0x1;const _0x5ed3eb=Array['from'](_0x4e2a6a['model']['document']['differ']['getChangedMarkers']()),_0xf636ed=new Set();for(const {name:_0x3906a1,data:_0x3dafa5}of _0x5ed3eb){const {group:_0x4fe7f9,type:_0x51facd,subType:_0x256bce,id:_0xc9df2d}=this['_splitMarkerName'](_0x3906a1);if('suggestion'!==_0x4fe7f9)continue;const _0x1e091e=this['_suggestions']['get'](_0xc9df2d);if(null!=_0x3dafa5['newRange']){'formatInline'==_0x51facd&&(_0x259659=_0x259659||Et(_0x3dafa5['newRange'],_0x3906a1,_0x390814,_0x4e2a6a['model']['schema']));const _0x155eda='attribute'==_0x51facd&&this['_isBlockAttribute'](_0x256bce['split']('|')[0x0]);if(_0x3dafa5['newRange']['isCollapsed']||'$graveyard'==_0x3dafa5['newRange']['root']['rootName']||'formatBlock'==_0x51facd&&!Ut(_0x3dafa5['newRange'])||_0x155eda&&!Ut(_0x3dafa5['newRange'])||'deletion'==_0x51facd&&!(!Tt(_0x48a3bf=_0x3dafa5['newRange'])&&!function(_0x6598fe){return _0x6598fe['start']['parent']==_0x6598fe['end']['nodeBefore']&&_0x6598fe['start']['isAtEnd'];}(_0x48a3bf)))_0x390814['removeMarker'](_0x3906a1),_0x259659=!0x0;else{if(!_0x1e091e||!_0x1e091e['isInContent'])continue;_0xf636ed['add'](_0x1e091e);}}}var _0x48a3bf;return _0xf636ed['size']>0x0&&(_0x259659=!!this['_joinWithAdjacentSuggestions'](_0xf636ed)||_0x259659),_0x259659;}),_0x4e2a6a['model']['document']['registerPostFixer'](_0x49bcd8=>{let _0x120599=!0x1;for(const _0x2f1699 of _0x4e2a6a['model']['document']['differ']['getChanges']())if('insert'==_0x2f1699['type'])for(const _0x17fa3d of this['_suggestions']['values']()){if(_0x17fa3d['isMultiRange']||!_0x17fa3d['isInContent'])continue;const _0x2961d1='formatBlock'==_0x17fa3d['type'],_0x2e424e=this['_getAttributeKey'](_0x17fa3d),_0x1dad1f=_0x2e424e&&this['_isBlockAttribute'](_0x2e424e);if(!_0x2961d1&&!_0x1dad1f)continue;const _0x56723b=_0x17fa3d['getFirstRange']();if(_0x56723b['start']['parent']!=_0x56723b['end']['parent']&&!_0x56723b['end']['isAtEnd']){const _0x2a1aa7=_0x4e2a6a['model']['createPositionAt'](_0x56723b['start']['nodeAfter'],'end'),_0x13227b=_0x4e2a6a['model']['createRange'](_0x56723b['start'],_0x2a1aa7);_0x49bcd8['updateMarker'](_0x17fa3d['getFirstMarker'](),{'range':_0x13227b}),_0x120599=!0x0;}}return _0x120599;}),_0x4e2a6a['model']['document']['registerPostFixer'](_0x50335d=>this['_processAttributeChanges'](_0x50335d)),_0x4e2a6a['model']['document']['registerPostFixer'](_0x23f481=>!_0x23f481['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23f481)),_0x4e2a6a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e2a6a['model']['document']['on']('change:data',(_0x2f399c,_0x1b9e78)=>{if(!_0x1b9e78['isLocal']||_0x1b9e78['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2588ec=_0x4e2a6a['model']['document']['differ']['getChanges']();if(0x0==_0x2588ec['length'])return;const _0x345d9a=[],_0x3099ef=_0x2588ec['filter'](_0x24f5ae=>'attribute'==_0x24f5ae['type']),_0x221020=_0x2588ec['filter'](_0x4df29d=>'insert'==_0x4df29d['type']&&'$text'!=_0x4df29d['name']);for(const _0x50b653 of _0x3099ef)this['_isRegisteredAttribute'](_0x50b653['attributeKey'])&&_0x345d9a['push']({'key':_0x50b653['attributeKey'],'newValue':_0x50b653['attributeNewValue'],'oldValue':_0x50b653['attributeOldValue'],'range':Ot(_0x50b653['range'],_0x4e2a6a['model'])});for(const _0x1b5659 of _0x221020){if('rename'!=_0x1b5659['action']&&'refresh'!=_0x1b5659['action'])continue;const _0x52fa3e=Gt(_0x1b5659['position']['nodeAfter'],_0x4e2a6a['model']),_0x3ba398=_0x1b5659['before'];'rename'==_0x1b5659['action']&&_0x345d9a['push']({'key':m,'newValue':_0x1b5659['name'],'oldValue':_0x3ba398['name'],'range':_0x52fa3e});for(const [_0x2b93d1,_0xa5a4b7]of _0x3ba398['attributes']){if(!this['_isRegisteredAttribute'](_0x2b93d1))continue;const _0x4c8885=_0x1b5659['attributes']['get'](_0x2b93d1);_0xa5a4b7!==_0x4c8885&&_0x345d9a['push']({'key':_0x2b93d1,'newValue':_0x4c8885,'oldValue':_0xa5a4b7,'range':_0x52fa3e});}for(const [_0x2dc51c,_0x4c32e5]of _0x1b5659['attributes'])this['_isRegisteredAttribute'](_0x2dc51c)&&(_0x3ba398['attributes']['has'](_0x2dc51c)||_0x345d9a['push']({'key':_0x2dc51c,'newValue':_0x4c32e5,'oldValue':null,'range':_0x52fa3e}));}0x0!=_0x345d9a['length']&&_0x4e2a6a['model']['enqueueChange'](_0x1b9e78,_0x5f1071=>{const _0x299c77=_0x59f381();for(const {range:_0x19efe5,key:_0x5045b0,oldValue:_0xaa86fd,newValue:_0x18ed84}of _0x345d9a)this['markAttributeChange'](_0x19efe5,_0x5045b0,_0xaa86fd,_0x18ed84,{'groupId':_0x299c77});this['_reduceExistingSuggestions'](_0x5f1071,_0x345d9a);});},{'priority':'lowest'}),_0x4e2a6a['model']['markers']['on']('update:suggestion',(_0x43f6fc,_0x32e6bf,_0x9d5190)=>{if(null==_0x9d5190){const {id:_0x17186e}=this['_splitMarkerName'](_0x32e6bf['name']),_0x4e7774=this['_suggestions']['get'](_0x17186e);_0x4e7774&&_0x4e7774['addMarkerName'](_0x32e6bf['name']);}}),_0x4e2a6a['model']['document']['on']('change:data',()=>{const _0x5c9d23=Array['from'](_0x4e2a6a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x81437e=>'suggestion'===this['_splitMarkerName'](_0x81437e['name'])['group']);if(0x0===_0x5c9d23['length'])return;_0x5c9d23['sort']((_0x5c0ef0,_0x480d10)=>{const _0x446099=_0x5c0ef0['data']['oldRange'],_0x11cfee=_0x480d10['data']['oldRange'];return null===_0x446099&&null===_0x11cfee?0x0:null===_0x446099&&null!==_0x11cfee?-0x1:null!==_0x446099&&null===_0x11cfee?0x1:_0x446099['start']['isBefore'](_0x11cfee['start'])?-0x1:0x1;});const _0x218a1f=new Set(),_0x3a0f58=new Set();for(const {name:_0x326012,data:_0x5287e8}of _0x5c9d23){const {id:_0x26d79f}=this['_splitMarkerName'](_0x326012);if(null===_0x5287e8['oldRange']){const _0x4f117f=this['_handleNewSuggestionMarker'](_0x326012);_0x3a0f58['add'](_0x4f117f);}else{const _0x26cce7=this['_suggestions']['get'](_0x26d79f);null!==_0x5287e8['newRange']||_0x26cce7['isInContent']?(_0x218a1f['add'](_0x26cce7['head']),_0x3a0f58['add'](_0x26cce7)):this['_removeSuggestion'](_0x26cce7);}}_0x3a0f58['size']>0x0&&this['_refreshSuggestionsChain'](_0x3a0f58);for(const _0x47e097 of _0x218a1f)this['fire']('suggestionChanged',_0x47e097);}),_0x4e2a6a['model']['on']('applyOperation',(_0x1b0546,_0x1c1a8b)=>{const _0x5bbbbe=_0x1c1a8b[0x0];if(!this['_suggestions']['size'])return;if(!_0x5bbbbe['isDocumentOperation'])return;if(_0x5bbbbe['batch']['isUndo']||!_0x5bbbbe['batch']['isLocal'])return;let _0x12f41c,_0x1b7fdc;switch(_0x5bbbbe['type']){case'insert':_0x12f41c=_0x4e2a6a['model']['createPositionAt'](_0x5bbbbe['position']),_0x1b7fdc=_0x12f41c['getShiftedBy'](_0x5bbbbe['howMany']);break;case'split':_0x12f41c=_0x4e2a6a['model']['createPositionAt'](_0x5bbbbe['splitPosition']),_0x1b7fdc=_0x4e2a6a['model']['createPositionAt'](_0x5bbbbe['moveTargetPosition']);break;case'move':_0x12f41c=_0x4e2a6a['model']['createPositionAt'](_0x5bbbbe['targetPosition']),_0x1b7fdc=_0x12f41c['getShiftedBy'](_0x5bbbbe['howMany']);break;default:return;}const _0x516e51=_0x4e2a6a['model']['createRange'](_0x12f41c,_0x1b7fdc);_0x4e2a6a['model']['change'](()=>{for(const {suggestion:_0x271541,meta:_0x5c294c}of this['_findSuggestions'](_0x516e51)){if(_0x271541['isMultiRange'])continue;if('formatInline'==_0x271541['type'])continue;const _0x44a806=this['_getAttributeKey'](_0x271541);if(_0x44a806&&this['_isBlockAttribute'](_0x44a806)&&'split'!=_0x5bbbbe['type'])continue;const _0x5e7351=_0x271541['data']&&_0x271541['data']['multipleBlocks'];('formatBlock'!=_0x271541['type']||'split'==_0x5bbbbe['type']&&!_0x5e7351)&&(_0x5c294c['containsRangeInObject']||'insertion'==_0x271541['type']&&_0x5c294c['isOwn']||_0x271541['getFirstRange']()['containsRange'](_0x516e51)&&this['_breakSuggestionMarker'](_0x271541,_0x12f41c,_0x1b7fdc));}});},{'priority':'lowest'}),_0x4e2a6a['model']['on']('deleteContent',(_0x495444,_0x1fb3a1)=>{const _0x2b46b1=_0x1fb3a1[0x0],_0x3a67bd=_0x1fb3a1[0x1];if(_0x3a67bd&&_0x3a67bd['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2b46b1['isCollapsed'])return;const _0x51cb85=_0x4e2a6a['model']['schema'],{start:_0x30a3cf,end:_0x4dff89}=_0x2b46b1['getFirstRange'](),_0x5aeca1=_0x30a3cf['nodeAfter']&&_0x51cb85['isLimit'](_0x30a3cf['nodeAfter'])?null:_0x51cb85['getNearestSelectionRange'](_0x30a3cf,'forward'),_0x1832ba=_0x4dff89['nodeBefore']&&_0x51cb85['isLimit'](_0x4dff89['nodeBefore'])?null:_0x51cb85['getNearestSelectionRange'](_0x4dff89,'backward'),_0x25f832=_0x4e2a6a['model']['createRange'](_0x5aeca1?_0x5aeca1['start']:_0x30a3cf,_0x1832ba?_0x1832ba['end']:_0x4dff89);_0x4e2a6a['model']['change'](_0x285939=>{this['markDeletion'](_0x25f832);const _0x2c7658=_0x4e2a6a['model']['schema']['getNearestSelectionRange'](_0x25f832['start']);_0x2b46b1['is']('documentSelection')?_0x285939['setSelection'](_0x2c7658):_0x2b46b1['setTo'](_0x2c7658);}),_0x495444['stop']();},{'priority':_0x1d17d2['normal']+0xa}),_0x4e2a6a['model']['on']('insertContent',(_0x5ccdc0,_0x3878b4)=>{const _0x3e43a8=_0x3878b4[_0x3878b4['length']-0x1];_0x3e43a8&&_0x3e43a8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e2a6a['model']['change'](()=>{let _0xfc760=_0x4e2a6a['model']['insertContent'](_0x3878b4[0x0],_0x3878b4[0x1],_0x3878b4[0x2],{'forceDefaultExecution':!0x0});if(!_0xfc760)return;_0x5ccdc0['return']=_0xfc760['clone']();const _0x4b422c=_0xfc760['end']['nodeBefore'],_0xf2df89=_0x4e2a6a['model']['schema'];_0x4b422c&&_0xf2df89['isBlock'](_0x4b422c)&&!_0xf2df89['isObject'](_0x4b422c)&&(_0xfc760=_0x4e2a6a['model']['createRange'](_0xfc760['start'],_0x4e2a6a['model']['createPositionAt'](_0x4b422c,'end'))),this['markInsertion'](_0xfc760);}),_0x5ccdc0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b36a3=new $(_0x4e2a6a,this['_suggestions']);_0x4e2a6a['commands']['add']('acceptSuggestion',_0x2b36a3),this['enableCommand']('acceptSuggestion');const _0x3f1eb9=new B(_0x4e2a6a,this['_suggestions']);_0x4e2a6a['commands']['add']('discardSuggestion',_0x3f1eb9),this['enableCommand']('discardSuggestion'),_0x4e2a6a['commands']['add']('acceptAllSuggestions',new x(_0x4e2a6a,_0x2b36a3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e2a6a['commands']['add']('discardAllSuggestions',new x(_0x4e2a6a,_0x3f1eb9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e2a6a['commands']['add']('acceptSelectedSuggestions',new R(_0x4e2a6a,_0x2b36a3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e2a6a['commands']['add']('discardSelectedSuggestions',new R(_0x4e2a6a,_0x3f1eb9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xfaa3dd=_0x4e2a6a['plugins']['get']('CommentsRepository');this['listenTo'](_0xfaa3dd,'addComment',(_0x297f1e,{threadId:_0x4f4d9f})=>{const _0x2b00e9=this['_suggestions']['get'](_0x4f4d9f);_0x2b00e9&&_0x2b00e9['commentThread']&&0x1===_0x2b00e9['commentThread']['length']&&this['_updateSuggestionData'](_0x4f4d9f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xfaa3dd,'removeComment',(_0x2384d1,{threadId:_0x28efff})=>{const _0x46ce4c=this['_suggestions']['get'](_0x28efff);_0x46ce4c&&_0x46ce4c['commentThread']&&!_0x46ce4c['commentThread']['length']&&this['_updateSuggestionData'](_0x28efff,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4add55){if(this['_adapter'])throw new _0x343a15('track-changes-adapter-already-set',this);this['_adapter']=_0x4add55;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e3df5=!0x1,toJSON:_0x126c24=!0x1}={}){const _0x4b4b0e=[];for(const _0x1eced2 of this['_suggestions']['values']())_0x5e3df5&&!_0x1eced2['isInContent']||_0x4b4b0e['push'](_0x1eced2);return _0x126c24?_0x4b4b0e['map'](_0x40a07c=>_0x40a07c['toJSON']()):_0x4b4b0e;}['getSuggestion'](_0x5d4f48){const _0x1a7be6=this['_suggestions']['get'](_0x5d4f48);if(!_0x1a7be6)throw new _0x343a15('track-changes-suggestion-not-found',this);return _0x1a7be6;}['hasSuggestion'](_0x35ba55){return this['_suggestions']['has'](_0x35ba55);}['addSuggestionData'](_0x3282c4){const {authorId:_0xdc5a8,id:_0x467acb,attributes:_0x458779}=_0x3282c4,[_0x1451b2,_0x3c812]=_0x3282c4['type']['split'](':'),_0x1f86f5=this['_suggestions']['get'](_0x467acb)||this['_createSuggestion'](_0x1451b2,_0x3c812,_0x467acb,_0xdc5a8,_0x458779);if(this['_addThreadToSuggestion'](_0x1f86f5),this['_checkSuggestionCorrectness'](_0x1f86f5,_0x1451b2,_0x3c812||null,_0xdc5a8),_0x1f86f5['createdAt']=_0x3282c4['createdAt'],_0x1f86f5['_isDataLoaded']=!0x0,_0x458779&&_0x458779['@external']){const _0xed42d7=_0x458779['@external'],_0x1b5f0b=this['_getExternalAuthor'](_0xed42d7['authorName']);_0x1f86f5['authoredAt']=_0xed42d7['createdAt'],_0x1f86f5['author']=_0x1b5f0b,_0x1f86f5['isExternal']=!0x0;}else _0x1f86f5['authoredAt']=_0x3282c4['createdAt'];switch(_0x3282c4['data']&&(_0x1f86f5['data']=_0x3282c4['data']),_0x3282c4['attributes']&&(_0x1f86f5['attributes']=_0x3282c4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1f86f5['_saved']=!0x0),this['_suggestionState']['get'](_0x1f86f5)){case'notReady':this['_suggestionState']['set'](_0x1f86f5,'dataReady');break;case'markerReady':_0x1f86f5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1f86f5])),this['_refreshSuggestionsChain'](new Set([_0x1f86f5])),this['_suggestionState']['set'](_0x1f86f5,'ready'),this['fire']('suggestionLoaded',_0x1f86f5)):this['_suggestionState']['set'](_0x1f86f5,'removed');}return _0x1f86f5;}['acceptSuggestion'](_0x4a7317){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f373e of _0x4a7317['getAllAdjacentSuggestions']())_0x1f373e['accept']();});});}['discardSuggestion'](_0x2e9e0f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b6953 of _0x2e9e0f['getAllAdjacentSuggestions']())_0x1b6953['discard']();});});}['enableCommand'](_0x1dc4d3,_0x34f1eb){const _0x49a181=this['editor']['commands']['get'](_0x1dc4d3);if(!_0x49a181)throw new _0x343a15('track-changes-command-not-found',this,{'commandName':_0x1dc4d3});if(this['_enabledCommands']['has'](_0x49a181))throw new _0x343a15('track-changes-enable-command-twice',this,{'commandName':_0x1dc4d3});this['_enabledCommands']['add'](_0x49a181),_0x34f1eb&&_0x49a181['on']('execute',(_0x156b53,_0x767cd1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x767cd1['length']>0x0&&_0x767cd1[_0x767cd1['length']-0x1]&&_0x767cd1[_0x767cd1['length']-0x1]['forceDefaultExecution']?_0x767cd1['pop']():(_0x156b53['return']=_0x34f1eb((..._0x5ab853)=>_0x49a181['execute'](..._0x5ab853,{'forceDefaultExecution':!0x0}),..._0x767cd1),_0x156b53['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x29dae9){let _0xc8f0a,_0x5e90ff;const _0xea17eb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc8f0a=_0x29dae9();}catch(_0x2797c8){_0x5e90ff=_0x2797c8;}return _0xea17eb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e90ff&&_0x343a15['rethrowUnexpectedError'](_0x5e90ff,this),_0xc8f0a;}['markInsertion'](_0x1eefa3,_0x3d3e47=null,_0x48f79={}){if(_0x1eefa3['isCollapsed'])return null;const _0x304b91=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4a2e39,meta:_0x32d433}of this['_findSuggestions'](_0x1eefa3,'insertion'))if(_0x32d433['isOwn']){if(!_0x32d433['isNextTo']){if(_0x32d433['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x4a2e39,_0x48f79))continue;return _0x4a2e39;}if(Lt(_0x4a2e39,_0x48f79))return _0x4a2e39;this['_breakSuggestionMarker'](_0x4a2e39,_0x1eefa3['start'],_0x1eefa3['end']);break;}if(_0x3d3e47==_0x4a2e39['subType']&&Lt(_0x4a2e39,_0x48f79)){const _0x2a7b64=_0x4a2e39['getFirstRange']();return _0x2a7b64['start']['isEqual'](_0x1eefa3['end'])?this['_setSuggestionRange'](_0x4a2e39,this['_model']['createRange'](_0x1eefa3['start'],_0x2a7b64['end'])):this['_setSuggestionRange'](_0x4a2e39,this['_model']['createRange'](_0x2a7b64['start'],_0x1eefa3['end'])),_0x4a2e39;}}const _0x5dc55d=_0x59f381(),_0x38a2fe=_0x304b91['id'],_0x552dd9=_0x3d3e47?'insertion:'+_0x3d3e47:'insertion',_0x2209b=this['_setSuggestionData']({'id':_0x5dc55d,'type':_0x552dd9,'createdAt':new Date(),'authorId':_0x38a2fe,'attributes':_0x48f79});return this['_addSuggestionMarker'](_0x552dd9,_0x5dc55d,_0x38a2fe,_0x1eefa3),_0x2209b;}['markMultiRangeInsertion'](_0x463e46,_0x5eee66='multi',_0x104e63={}){const _0x56d5fa=this['editor']['plugins']['get']('Users')['me'],_0x4f5254=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5eee66,'join');for(const _0x29b3d1 of this['getSuggestions']())if(_0x29b3d1['author']['id']==_0x56d5fa['id']&&'insertion'==_0x29b3d1['type']&&_0x29b3d1['subType']==_0x5eee66&&Lt(_0x29b3d1,_0x104e63)&&(_0x4f5254(_0x29b3d1['getRanges'](),_0x463e46)||_0x4f5254(_0x463e46,_0x29b3d1['getRanges']()))){for(const _0x451efe of _0x463e46)_0x29b3d1['addRange'](_0x451efe);return _0x29b3d1;}for(const {suggestion:_0x54ec85,meta:_0x393a0f}of this['_findSuggestions'](_0x463e46,'insertion')){if(!_0x393a0f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x393a0f['containsRangeInObject'])continue;if(!Lt(_0x54ec85,_0x104e63))continue;let _0x2abdc2=!0x0;for(const _0x5346cd of _0x54ec85['getRanges']())for(const _0x57fa36 of _0x463e46)if(!_0x5346cd['containsRange'](_0x57fa36)){_0x2abdc2=!0x1;break;}if(_0x2abdc2)return _0x54ec85;}const _0x8eda9=_0x59f381(),_0x41fbb2=_0x56d5fa['id'],_0x1ba98b='insertion:'+_0x5eee66,_0x27f352=this['_setSuggestionData']({'id':_0x8eda9,'type':_0x1ba98b,'createdAt':new Date(),'authorId':_0x41fbb2,'attributes':_0x104e63});for(const _0x5093dd of _0x463e46)this['_addSuggestionMarker'](_0x1ba98b,_0x8eda9,_0x41fbb2,_0x5093dd,u['getMultiRangeId']());return _0x27f352;}['markInlineFormat'](_0x2a51ac,_0x43616f,_0x4afad0=null,_0x1c5fd6={}){if(_0x4afad0=_0x4afad0||Vt(_0x43616f),_0x2a51ac['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5e1c74=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4afad0,'accept');return this['forceDefaultExecution'](()=>_0x5e1c74([_0x2a51ac],_0x43616f,_0x1c5fd6)),null;}const _0x3d1a90=this['editor']['plugins']['get']('Users')['me'],_0xec8140=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x7fa876,meta:_0x4972bd}of this['_findSuggestions'](_0x2a51ac,'insertion'))_0x4972bd['isOwn']&&!_0x4972bd['isInsideObject']&&_0xec8140['push'](..._0x7fa876['getRanges']());}const _0x5ec663=function(_0x3c805b,_0x55a6a4){const _0x307b77=[];for(const _0x11db5b of _0x55a6a4){const _0x306a93=_0x3c805b['getIntersection'](_0x11db5b);_0x306a93&&_0x307b77['push'](_0x306a93);}return _0x307b77;}(_0x2a51ac,_0xec8140),_0x2c1e49=function(_0x5deab0,_0x2cd07c){const _0x1b12f2=[_0x5deab0];for(const _0x12279d of _0x2cd07c){let _0x5573d4=0x0;for(;_0x5573d4<_0x1b12f2['length'];){const _0x19113a=_0x1b12f2[_0x5573d4]['getDifference'](_0x12279d);_0x1b12f2['splice'](_0x5573d4,0x1,..._0x19113a),_0x5573d4+=_0x19113a['length'];}}return _0x1b12f2;}(_0x2a51ac,_0xec8140);_0x5ec663['length']&&this['_model']['change'](()=>{for(const _0xc4098b of _0x5ec663){const _0x102f6b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4afad0,'accept');this['forceDefaultExecution'](()=>_0x102f6b([_0xc4098b],_0x43616f,_0x1c5fd6));}});for(const _0x43005a of _0x2c1e49){let _0x156282=null,_0x236c8a=_0x43005a['start'],_0x12bdc4=_0x43005a['end'];for(const {suggestion:_0x5a9b14,meta:_0x559e01}of this['_findSuggestions'](_0x43005a,'formatInline')){if(!_0x559e01['isOwn'])continue;if(_0x5a9b14['subType']!=_0x4afad0)continue;if(!Lt(_0x5a9b14,_0x1c5fd6))continue;const _0x5e3d3a=_0x5a9b14['getFirstRange']();if(_0x5e3d3a['containsRange'](_0x43005a,!0x0))return null;_0x236c8a=_0x236c8a['isBefore'](_0x5e3d3a['start'])?_0x236c8a:_0x5e3d3a['start'],_0x12bdc4=_0x12bdc4['isAfter'](_0x5e3d3a['end'])?_0x12bdc4:_0x5e3d3a['end'],_0x156282?_0x5e3d3a['start']['isBefore'](_0x156282['getFirstRange']()['start'])?(_0x156282['removeMarkers'](),_0x156282=_0x5a9b14):_0x5a9b14['removeMarkers']():_0x156282=_0x5a9b14;}const _0x35af9c=this['_model']['createRange'](_0x236c8a,_0x12bdc4);if(_0x156282)this['_setSuggestionRange'](_0x156282,_0x35af9c);else{const _0x3662f7=_0x59f381(),_0x167135=_0x3d1a90['id'];this['_setSuggestionData']({'id':_0x3662f7,'type':'formatInline:'+_0x4afad0,'data':_0x43616f,'createdAt':new Date(),'authorId':_0x167135,'attributes':_0x1c5fd6}),this['_addSuggestionMarker']('formatInline:'+_0x4afad0,_0x3662f7,_0x167135,_0x35af9c);}}return null;}['markBlockFormat'](_0x35e394,_0x4b870f,_0x53a4d7=[],_0x37cddc=null,_0x54ede9={}){_0x4b870f['formatGroupId']||(_0x4b870f['formatGroupId']=_0x4b870f['commandName']),_0x4b870f['multipleBlocks']=_0x35e394['is']('range'),_0x37cddc=_0x37cddc||Vt(_0x4b870f);const _0x5f62a0=_0x53a4d7['map'](_0x35c70f=>Gt(_0x35c70f,this['_model'])),_0x86d9c1=_0x35e394['is']('range')?_0x35e394:Gt(_0x35e394,this['_model']);if('never'===this['_trackFormatChanges']){const _0xa7a7a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37cddc,'accept');return this['forceDefaultExecution'](()=>_0xa7a7a9([_0x86d9c1],_0x4b870f,_0x54ede9)),null;}_0x5f62a0['push'](_0x86d9c1);let _0x41248d=!0x0;for(const _0x43be5a of _0x5f62a0)if(!this['_rangeIsInLocalUserInsertion'](_0x43be5a)){_0x41248d=!0x1;break;}if(_0x41248d&&'always'!==this['_trackFormatChanges']){const _0xfe2892=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37cddc,'accept');return this['forceDefaultExecution'](()=>_0xfe2892([_0x86d9c1],_0x4b870f,_0x54ede9)),null;}let _0x2dcd6d=null,_0x1b76e1=_0x86d9c1['start'],_0x204175=_0x86d9c1['end'];for(const {suggestion:_0x5059c0,meta:_0x5c5770}of this['_findSuggestions'](_0x86d9c1,'formatBlock')){if(!_0x5c5770['isOwn'])continue;if(_0x5c5770['isNextTo']||_0x5c5770['containsRangeInObject']||_0x5c5770['isInsideObject'])continue;if(_0x5059c0['data']['formatGroupId']!=_0x4b870f['formatGroupId'])continue;if(!Lt(_0x5059c0,_0x54ede9))continue;const _0x1eeeff=_0x5059c0['getFirstRange']();if(_0x5059c0['subType']==_0x37cddc){if(_0x1eeeff['containsRange'](_0x86d9c1,!0x0))return null;_0x1b76e1=_0x1b76e1['isBefore'](_0x1eeeff['start'])?_0x1b76e1:_0x1eeeff['start'],_0x204175=_0x204175['isAfter'](_0x1eeeff['end'])?_0x204175:_0x1eeeff['end'],_0x2dcd6d?_0x1eeeff['start']['isBefore'](_0x2dcd6d['getFirstRange']()['start'])?(_0x2dcd6d['removeMarkers'](),_0x2dcd6d=_0x5059c0):_0x5059c0['removeMarkers']():_0x2dcd6d=_0x5059c0;}else{const _0x16317=_0x86d9c1['getIntersection'](_0x1eeeff);this['_cutOutSuggestionMarker'](_0x5059c0,_0x16317);}}const _0x4b4aef=this['editor']['plugins']['get']('Users')['me'],_0x20e8d0=_0x59f381(),_0x2b8047=_0x4b4aef['id'];if(_0x2dcd6d)return this['_setSuggestionRange'](_0x2dcd6d,this['_model']['createRange'](_0x1b76e1,_0x204175)),_0x2dcd6d;{const _0x559aa5=this['_setSuggestionData']({'id':_0x20e8d0,'type':'formatBlock:'+_0x37cddc,'data':_0x4b870f,'createdAt':new Date(),'authorId':_0x2b8047,'attributes':_0x54ede9});return this['_addSuggestionMarker']('formatBlock:'+_0x37cddc,_0x20e8d0,_0x2b8047,this['_model']['createRange'](_0x1b76e1,_0x204175)),_0x559aa5;}}['markMultiRangeBlockFormat'](_0x366984,_0xc9cea4,_0x342845=[],_0x2e1a13=null,_0x346e69={}){_0xc9cea4['formatGroupId']||(_0xc9cea4['formatGroupId']=_0xc9cea4['commandName']);const _0xfade5f=_0x366984[0x0];_0xc9cea4['multipleBlocks']=_0xfade5f['is']('range'),_0x2e1a13=_0x2e1a13||Vt(_0xc9cea4);const _0x1a841f=_0x342845['map'](_0x2e56f2=>Gt(_0x2e56f2,this['_model'])),_0x3d8223=_0xfade5f['is']('range')?_0x366984:_0x366984['map'](_0x3b8c14=>Gt(_0x3b8c14,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3b4243=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e1a13,'accept');return this['forceDefaultExecution'](()=>_0x3b4243(_0x3d8223,_0xc9cea4,_0x346e69)),null;}_0x1a841f['push'](..._0x3d8223);let _0x392094=!0x0;for(const _0x2afe10 of _0x1a841f)if(!this['_rangeIsInLocalUserInsertion'](_0x2afe10)){_0x392094=!0x1;break;}if(_0x392094&&'always'!==this['_trackFormatChanges']){const _0x278cb8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e1a13,'accept');return this['forceDefaultExecution'](()=>_0x278cb8(_0x3d8223,_0xc9cea4,_0x346e69)),null;}const _0x4a8ef4=this['editor']['plugins']['get']('Users')['me'];for(const _0x2d2f53 of this['getSuggestions']()){if(_0x2d2f53['author']['id']!=_0x4a8ef4['id'])continue;if('formatBlock'!=_0x2d2f53['type']||_0x2d2f53['data']['formatGroupId']!=_0xc9cea4['formatGroupId'])continue;if(!Lt(_0x2d2f53,_0x346e69))continue;const _0x4d7abe=_0x2d2f53['subType']==_0x2e1a13;for(let _0x1841f0=0x0;_0x1841f0<_0x3d8223['length'];_0x1841f0++){const _0x2d2516=_0x3d8223[_0x1841f0];for(const _0x2bd6af of _0x2d2f53['getMarkers']()){const _0x198164=_0x2bd6af['getRange']();if(_0x2d2516['isEqual'](_0x198164)){_0x4d7abe?(_0x3d8223['splice'](_0x1841f0,0x1),_0x1841f0--):_0x2d2f53['removeMarker'](_0x2bd6af['name']);break;}}}}if(0x0==_0x3d8223['length'])return null;const _0x45d34c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e1a13,'join');for(const _0x52ca0b of this['getSuggestions']())if(_0x52ca0b['author']['id']==_0x4a8ef4['id']&&'formatBlock'==_0x52ca0b['type']&&_0x52ca0b['data']['formatGroupId']==_0xc9cea4['formatGroupId']&&_0x52ca0b['subType']==_0x2e1a13&&Lt(_0x52ca0b,_0x346e69)&&(_0x45d34c(_0x52ca0b['getRanges'](),_0x3d8223)||_0x45d34c(_0x3d8223,_0x52ca0b['getRanges']()))){for(const _0x2c6a6d of _0x3d8223)_0x52ca0b['addRange'](_0x2c6a6d);return _0x52ca0b;}const _0x1aa218=_0x59f381(),_0x4d9409=_0x4a8ef4['id'],_0x2edf2b='formatBlock:'+_0x2e1a13,_0xfc3b09=this['_setSuggestionData']({'id':_0x1aa218,'type':_0x2edf2b,'data':_0xc9cea4,'createdAt':new Date(),'authorId':_0x4d9409,'attributes':_0x346e69});for(const _0x13db33 of _0x3d8223)this['_addSuggestionMarker'](_0x2edf2b,_0x1aa218,_0x4d9409,_0x13db33,u['getMultiRangeId']());return _0xfc3b09;}['markDeletion'](_0x351a70,_0x19fc3c=null,_0x4c7b8a={}){if(_0x351a70['isCollapsed'])return null;const _0x2b820c=this['editor']['plugins']['get']('Users')['me'],_0xe5c4d4=new _0x3123fd(_0x351a70['start'],_0x351a70['end']);for(const {suggestion:_0x661ea3,meta:_0x44e07e}of this['_findSuggestions'](_0xe5c4d4,'insertion'))if(_0x44e07e['isOwn']&&!_0x44e07e['isNextTo']){if(_0x661ea3['isMultiRange']){const _0x23f04a=_0x661ea3['getRanges']()['filter'](_0x4de7e0=>'$graveyard'!=_0x4de7e0['root']['rootName']);_0x23f04a['every'](_0x3d34ff=>_0xe5c4d4['containsRange'](_0x3d34ff,!0x0))&&_0x661ea3['discard']();if(_0x23f04a['some'](_0x3850ad=>_0x3850ad['containsRange'](_0xe5c4d4,!0x0))){const _0x3c81fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19fc3c,'accept');return this['forceDefaultExecution'](()=>_0x3c81fb([_0xe5c4d4],null,_0x4c7b8a)),null;}}else{const _0x241bdb=_0xe5c4d4['getIntersection'](_0x661ea3['getFirstRange']());null!==_0x241bdb&&_0x661ea3['_onDiscard']([_0x241bdb],null,_0x4c7b8a);}}if(_0xe5c4d4['detach'](),_0xe5c4d4['isCollapsed']||'$graveyard'==_0xe5c4d4['root']['rootName'])return null;let _0x16a4f3=null,_0x4a68c7=_0xe5c4d4['start'],_0x10ad39=_0xe5c4d4['end'];const _0x4b512c=this['_findSuggestions'](_0xe5c4d4,'deletion');for(const {suggestion:_0xa0638,meta:_0x23d42c}of _0x4b512c){const _0x39f842=this['_model']['createRange'](_0x4a68c7,_0x10ad39);if(_0x23d42c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23d42c['containsRangeInObject']&&!_0x23d42c['isInsideObject'])){if(_0xa0638['isMultiRange']){if(!Lt(_0xa0638,_0x4c7b8a))continue;let _0x57f257=!0x0;for(const _0x3c041a of _0xa0638['getRanges']()){if(_0x3c041a['containsRange'](_0x39f842,!0x0))return _0xa0638;_0x39f842['containsRange'](_0x3c041a)||(_0x57f257=!0x1);}_0x57f257&&_0xa0638['discard']();}else{const _0x325dfd=_0xa0638['getFirstRange']();if(_0x325dfd['containsRange'](_0x39f842,!0x0))return _0xa0638;if(!Lt(_0xa0638,_0x4c7b8a)){_0x39f842['containsRange'](_0x325dfd)?_0xa0638['removeMarkers']():_0x325dfd['containsPosition'](_0x4a68c7)?_0x4a68c7=_0x325dfd['end']:_0x325dfd['containsPosition'](_0x10ad39)&&(_0x10ad39=_0x325dfd['start']);continue;}_0x4a68c7=_0x4a68c7['isBefore'](_0x325dfd['start'])?_0x4a68c7:_0x325dfd['start'],_0x10ad39=_0x10ad39['isAfter'](_0x325dfd['end'])?_0x10ad39:_0x325dfd['end'],_0x4c7b8a=Object['assign']({},_0xa0638['attributes']),_0x16a4f3?_0x325dfd['start']['isBefore'](_0x16a4f3['getFirstRange']()['start'])?(_0x16a4f3['removeMarkers'](),_0x16a4f3=_0xa0638):_0xa0638['removeMarkers']():_0x16a4f3=_0xa0638;}}}if(_0x16a4f3)return this['_setSuggestionRange'](_0x16a4f3,this['_model']['createRange'](_0x4a68c7,_0x10ad39)),_0x16a4f3;{const _0x3df8a4=_0x59f381(),_0x352649=this['_model']['createRange'](_0x4a68c7,_0x10ad39),_0x33bd1b=_0x2b820c['id'],_0x4009e6=_0x19fc3c?'deletion:'+_0x19fc3c:'deletion',_0x3aa34a=this['_setSuggestionData']({'id':_0x3df8a4,'type':_0x4009e6,'createdAt':new Date(),'authorId':_0x33bd1b,'attributes':_0x4c7b8a});return this['_addSuggestionMarker'](_0x4009e6,_0x3df8a4,_0x33bd1b,_0x352649),_0x3aa34a;}}['markMultiRangeDeletion'](_0x246d83,_0x1edf7f='multi',_0x16c91f={}){const _0x5a0de2=this['editor']['plugins']['get']('Users')['me'],_0x5b1d6f=_0x246d83['map'](_0x4d50f8=>new _0x3123fd(_0x4d50f8['start'],_0x4d50f8['end'])),_0x34562b=new Set();for(const {suggestion:_0x54861d,meta:_0x50b760}of this['_findSuggestions'](_0x5b1d6f,'insertion'))_0x50b760['isOwn']&&!_0x50b760['isNextTo']&&_0x34562b['add'](_0x54861d);for(const _0x24afe2 of _0x34562b)if(_0x24afe2['isMultiRange']){const _0x5467d8=_0x24afe2['getRanges']();(!_0x24afe2['attributes']||!_0x24afe2['attributes']['skipNestingCheck'])&&(_0x5467d8['every'](_0x3d7695=>_0x5b1d6f['some'](_0x392baf=>_0x392baf['containsRange'](_0x3d7695,!0x0)))&&_0x24afe2['discard']());if(_0x5b1d6f['every'](_0x1de1ac=>_0x5467d8['some'](_0x403b4b=>_0x403b4b['containsRange'](_0x1de1ac,!0x0)))){const _0x557a4b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1edf7f,'accept');return this['forceDefaultExecution'](()=>_0x557a4b(_0x246d83,null,_0x16c91f)),null;}}else{const _0x1beb2b=_0x24afe2['getFirstRange']();_0x5b1d6f['some'](_0x181a16=>_0x181a16['containsRange'](_0x1beb2b,!0x0))&&_0x24afe2['discard']();if(_0x5b1d6f['every'](_0x41d31e=>_0x1beb2b['containsRange'](_0x41d31e,!0x0))){const _0x96c891=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1edf7f,'accept');return this['forceDefaultExecution'](()=>_0x96c891(_0x5b1d6f,null,_0x16c91f)),null;}}const _0x145282=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1edf7f,'join');let _0x5e1b8c=null;for(const _0x59a648 of this['getSuggestions']())if(_0x59a648['author']['id']==_0x5a0de2['id']&&_0x59a648['isInContent']&&'deletion'==_0x59a648['type']&&_0x59a648['subType']==_0x1edf7f&&Lt(_0x59a648,_0x16c91f)&&(_0x145282(_0x59a648['getRanges'](),_0x5b1d6f)||_0x145282(_0x5b1d6f,_0x59a648['getRanges']()))){if(_0x5e1b8c){if(_0x59a648['commentThread']&&_0x59a648['commentThread']['length'])continue;for(const _0x365cf1 of _0x59a648['getRanges']())_0x5e1b8c['isIntersectingWithRange'](_0x365cf1)||_0x5e1b8c['addRange'](_0x365cf1);_0x59a648['removeMarkers']();}else{_0x5e1b8c=_0x59a648;for(const _0x4a3be5 of _0x5b1d6f)_0x59a648['isIntersectingWithRange'](_0x4a3be5)||_0x59a648['addRange'](_0x4a3be5);}}if(_0x5e1b8c)return _0x5e1b8c;_0x34562b['clear']();for(const {suggestion:_0x12fcb8,meta:_0x3ba994}of this['_findSuggestions'](_0x5b1d6f,'deletion'))_0x3ba994['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ba994['containsRangeInObject']&&!_0x3ba994['isInsideObject'])&&Lt(_0x12fcb8,_0x16c91f)&&_0x34562b['add'](_0x12fcb8);for(const _0x68bd6 of _0x34562b){const _0x277222=_0x68bd6['getRanges']();if(!_0x16c91f||!_0x16c91f['skipNestingCheck']){if(_0x5b1d6f['every'](_0x41d6f9=>_0x277222['some'](_0x31eff0=>_0x31eff0['containsRange'](_0x41d6f9,!0x0))))return _0x68bd6;}(!_0x68bd6['attributes']||!_0x68bd6['attributes']['skipNestingCheck'])&&(_0x277222['every'](_0x31c2ec=>_0x5b1d6f['some'](_0x5e3057=>_0x5e3057['containsRange'](_0x31c2ec,!0x0)))&&_0x68bd6['discard']());}const _0x2e0fbc=_0x59f381(),_0x215aa9=_0x5a0de2['id'],_0x102be1='deletion:'+_0x1edf7f,_0x3fdbea=this['_setSuggestionData']({'id':_0x2e0fbc,'type':_0x102be1,'createdAt':new Date(),'authorId':_0x215aa9,'attributes':_0x16c91f});for(const _0x4dc3cd of _0x5b1d6f)_0x4dc3cd['detach'](),_0x4dc3cd['isCollapsed']||'$graveyard'==_0x4dc3cd['root']['rootName']||this['_addSuggestionMarker'](_0x102be1,_0x2e0fbc,_0x215aa9,_0x4dc3cd,u['getMultiRangeId']());return _0x3fdbea;}['markAttributeChange'](_0x264e31,_0x27d41a,_0x179b85,_0x37e84b,_0x37eddb){if(_0x264e31['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3e5464=this['editor']['plugins']['get']('Users')['me']['id'],_0x44f6c6=Array['from'](this['_suggestions']['values']())['filter'](_0x4c39bd=>'attribute'==_0x4c39bd['type']&&_0x4c39bd['data']['key']==_0x27d41a&&_0x4c39bd['isIntersectingWithRange'](_0x264e31));if('default'===this['_trackFormatChanges']){const _0x190e45=this['_findSuggestions'](_0x264e31,'insertion')['filter'](({meta:_0x545038})=>_0x545038['isOwn']&&!_0x545038['isInsideObject']&&!_0x545038['isNextTo'])['map'](({suggestion:_0x1ddf73})=>_0x1ddf73);_0x44f6c6['unshift'](..._0x190e45);}const _0x51f2c9=new Map([[_0x264e31,_0x179b85]]);for(const _0x3fa8ba of _0x44f6c6){const _0x4dd62a='attribute'==_0x3fa8ba['type']?_0x3fa8ba['data']['oldValue']:void 0x0,_0x2cf0ca=_0x3fa8ba['getFirstRange'](),_0x1021a9=Array['from'](_0x51f2c9['keys']())['find'](_0x5441a2=>_0x5441a2['isIntersecting'](_0x2cf0ca));if(!_0x1021a9)continue;const _0x536e1c=_0x1021a9['getDifference'](_0x2cf0ca);this['_isBlockAttribute'](_0x27d41a)&&'insertion'==_0x3fa8ba['type']&&0x0!=_0x536e1c['length']||(_0x51f2c9['delete'](_0x1021a9),_0x536e1c['forEach'](_0x3e6446=>{_0x51f2c9['set'](_0x3e6446,_0x179b85);}),'insertion'!=_0x3fa8ba['type']&&_0x4dd62a!=_0x37e84b&&_0x51f2c9['set'](_0x1021a9['getIntersection'](_0x2cf0ca),_0x4dd62a));}const _0x4129fe=[];for(const [_0x4d479f,_0x5b06de]of _0x51f2c9){const _0x2a1f1b=_0x59f381(),_0x1d17d0={'key':_0x27d41a,'oldValue':_0x5b06de,'newValue':_0x37e84b};_0x27d41a['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':_0x27d41a});const _0x15698c=('attribute:'+(_0x27d41a+'|'+Vt({'newValue':_0x37e84b})))['substring'](0x0,0x3c),_0x3ca53d=this['_setSuggestionData']({'id':_0x2a1f1b,'type':_0x15698c,'data':_0x1d17d0,'createdAt':new Date(),'authorId':_0x3e5464,'attributes':_0x37eddb});_0x4129fe['push'](_0x3ca53d),this['_addSuggestionMarker'](_0x15698c,_0x2a1f1b,_0x3e5464,_0x4d479f);}return _0x4129fe;}['enableDefaultAttributesIntegration'](_0x4b7307){this['enableCommand'](_0x4b7307,(_0x4217fe,..._0x3656aa)=>{this['_recordAttributeChanges'](()=>{_0x4217fe(..._0x3656aa);});});}['registerBlockAttribute'](_0x123191){this['_blockAttributeKeys']['add'](_0x123191);}['registerInlineAttribute'](_0x9932b5){this['_inlineAttributeKeys']['add'](_0x9932b5);}['_getAttributeKey'](_0x247a99){return'attribute'==_0x247a99['type']?_0x247a99['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x30b067,_0x49a15f){const _0x718124=_0x30b067['getFirstMarker']();this['_model']['change'](_0x82aa6d=>{_0x82aa6d['updateMarker'](_0x718124,{'range':_0x49a15f});});}['_addThreadToSuggestion'](_0x420a62){const _0x538d54=_0x420a62['id'],_0x32fb29=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x538d54)||this['_commentsRepository']['addCommentThread']({'channelId':_0x32fb29,'threadId':_0x538d54,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x92b52c=this['_commentsRepository']['getCommentThread'](_0x538d54);_0x92b52c['unbind']('isRemovable'),_0x92b52c['isRemovable']=!0x1,_0x420a62['commentThread']=_0x92b52c;}['_checkSuggestionCorrectness'](_0x2b7e3c,_0xf99604,_0x518ca7,_0x5861c8){if(_0x2b7e3c['type']!=_0xf99604||_0x2b7e3c['subType']!=_0x518ca7||_0x2b7e3c['creator']['id']!=_0x5861c8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x343a15('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x30dd9e,_0x5d2e7e){const _0x234a99=_0x30dd9e['getFirstRange']();if(_0x5d2e7e['isEqual'](_0x234a99))_0x30dd9e['removeMarkers']();else{if(_0x234a99['containsRange'](_0x5d2e7e)){const _0x496a8b=this['_model']['createPositionAt'](_0x5d2e7e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x30dd9e,this['_model']['createRange'](_0x234a99['start'],_0x496a8b));const _0x4a6cd=_0x59f381(),_0x585fc5=_0x30dd9e['creator']['id'],_0x425bc9=_0x30dd9e['type']+':'+_0x30dd9e['subType'];this['_setSuggestionData']({'id':_0x4a6cd,'type':_0x425bc9,'createdAt':new Date(),'authorId':_0x585fc5,'data':_0x30dd9e['data'],'attributes':_0x30dd9e['attributes']});const _0x1cfce3=this['_model']['createPositionAt'](_0x5d2e7e['end']['parent'],'after'),_0xbcddec=this['_model']['createRange'](_0x1cfce3,_0x234a99['end']);this['_addSuggestionMarker'](_0x425bc9,_0x4a6cd,_0x585fc5,_0xbcddec);}else{if(_0x234a99['containsPosition'](_0x5d2e7e['start'])){const _0x367669=this['_model']['createPositionAt'](_0x5d2e7e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x30dd9e,this['_model']['createRange'](_0x234a99['start'],_0x367669));}else{const _0xf36cc8=this['_model']['createPositionAt'](_0x5d2e7e['end']['parent'],'after');this['_setSuggestionRange'](_0x30dd9e,this['_model']['createRange'](_0xf36cc8,_0x234a99['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x18b6dd){for(const {suggestion:_0x5258e4,meta:_0x16c4c0}of this['_findSuggestions'](_0x18b6dd,'insertion')){if(!_0x16c4c0['isOwn'])continue;const _0x211ab4=_0x5258e4['getRanges']();for(const _0x4cf30b of _0x211ab4)if(!_0x18b6dd['getDifference'](_0x4cf30b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x53ee51){const _0xd7be2a=this['editor']['plugins']['get']('Users')['getUser'](_0x53ee51);if(!_0xd7be2a)throw new _0x343a15('track-changes-user-not-found',this);return _0xd7be2a;}['_getExternalAuthor'](_0x56b28f){const _0x3678fb=this['editor']['plugins']['get']('Users'),_0xeb823d=_0x317a87('external:'+_0x56b28f),_0x17f9af=_0x3678fb['getUser'](_0xeb823d);return _0x17f9af||_0x3678fb['addUser']({'id':_0xeb823d,'name':_0x56b28f});}['_createSuggestion'](_0x15b142,_0x52f832,_0x470982,_0x5cb5ae,_0x1ed374){const _0x3cff49=this['_getAuthorFromId'](_0x5cb5ae),_0x3d8358=this['_suggestionFactory']['buildSuggestion'](_0x15b142,_0x52f832,_0x470982,_0x3cff49,_0x1ed374,_0x4f1f48=>{this['_updateSuggestionData'](_0x470982,{'attributes':_0x4f1f48});const _0x1e48a7=this['getSuggestion'](_0x470982);this['_joinWithAdjacentSuggestions'](new Set([_0x1e48a7])),this['_refreshSuggestionsChain'](new Set([_0x1e48a7]));});return this['listenTo'](_0x3d8358,'accept',()=>{this['_updateSuggestionData'](_0x470982,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3d8358,'discard',()=>{this['_updateSuggestionData'](_0x470982,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x470982,_0x3d8358),this['_suggestionState']['set'](_0x3d8358,'notReady'),_0x3d8358;}['_splitMarkerName'](_0x575685){const _0x37fbda=_0x575685['split'](':');return{'group':_0x37fbda[0x0],'type':_0x37fbda[0x1],'subType':_0x37fbda['length']>=0x5?_0x37fbda[0x2]:null,'id':_0x37fbda['length']<0x5?_0x37fbda[0x2]:_0x37fbda[0x3],'authorId':_0x37fbda['length']<0x5?_0x37fbda[0x3]:_0x37fbda[0x4],'markerCount':0x6==_0x37fbda['length']?_0x37fbda[0x5]:null};}['_breakSuggestionMarker'](_0x4a44cb,_0x1f86ff,_0x4bfc47){const _0x33d187=_0x4a44cb['getFirstRange'](),_0x4afe04=_0x33d187['start'],_0x25c05a=_0x33d187['end'];this['_setSuggestionRange'](_0x4a44cb,this['_model']['createRange'](_0x4afe04,_0x1f86ff));const _0x3f50b2=_0x59f381(),_0x54c6ad=_0x4a44cb['creator']['id'],_0x474aa4=_0x4a44cb['type']+(_0x4a44cb['subType']?':'+_0x4a44cb['subType']:'');this['_setSuggestionData']({'id':_0x3f50b2,'type':_0x474aa4,'createdAt':new Date(),'authorId':_0x54c6ad,'originalSuggestionId':_0x4a44cb['id'],'attributes':_0x4a44cb['attributes'],'data':_0x4a44cb['data']});const _0x2953d5=this['_getAttributeKey'](_0x4a44cb);('formatBlock'==_0x4a44cb['type']||_0x2953d5&&this['_isBlockAttribute'](_0x2953d5))&&(_0x4bfc47=this['_model']['createPositionBefore'](_0x4bfc47['parent'])),this['_addSuggestionMarker'](_0x474aa4,_0x3f50b2,_0x54c6ad,this['_model']['createRange'](_0x4bfc47,_0x25c05a));}['_findSuggestions'](_0xde4a28,_0x52c50f=null){const _0x44dfd3=[],_0xae75a3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xde4a28)||(_0xde4a28=[_0xde4a28]);for(const _0x5f2e00 of this['getSuggestions']()){if(!_0x5f2e00['isInContent'])continue;if(_0x52c50f&&_0x5f2e00['type']!=_0x52c50f)continue;let _0x537ba3=!0x1;for(const _0xea74a of _0x5f2e00['getRanges']()){for(const _0x2cf475 of _0xde4a28){const _0x2bf0ce=_0x2cf475['start']['isEqual'](_0xea74a['end'])||_0x2cf475['end']['isEqual'](_0xea74a['start']);if(_0x2bf0ce||_0x2cf475['getIntersection'](_0xea74a)){const _0x59441b=_0x2cf475['containsRange'](_0xea74a)&&Rt(this['_model']['schema'],_0xea74a['start'],_0x2cf475),_0xa104eb=_0xea74a['containsRange'](_0x2cf475)&&Rt(this['_model']['schema'],_0x2cf475['start'],_0xea74a);_0x44dfd3['push']({'suggestion':_0x5f2e00,'meta':{'isOwn':_0xae75a3==_0x5f2e00['author'],'isNextTo':_0x2bf0ce,'isInsideObject':_0x59441b,'containsRangeInObject':_0xa104eb}}),_0x537ba3=!0x0;break;}}if(_0x537ba3)break;}}return _0x44dfd3;}['_addSuggestionMarker'](_0x469fb9,_0x3c69c3,_0x204961,_0x4f0f63,_0x12e468){this['_model']['change'](_0x4549f6=>{let _0x48f221='suggestion:'+_0x469fb9+':'+_0x3c69c3+':'+_0x204961;_0x12e468&&(_0x48f221=_0x48f221+':'+_0x12e468),_0x4549f6['addMarker'](_0x48f221,{'range':_0x4f0f63,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18ccac){const _0x4fcd28=_0x18ccac['previous'],_0x72aeff=_0x18ccac['next'];_0x18ccac['previous']=null,_0x18ccac['next']=null,null!=_0x4fcd28&&_0x4fcd28['next']==_0x18ccac&&(_0x4fcd28['next']=_0x72aeff),null!=_0x72aeff&&_0x72aeff['previous']==_0x18ccac&&(_0x72aeff['previous']=_0x4fcd28),'ready'==this['_suggestionState']['get'](_0x18ccac)&&(this['_suggestionState']['set'](_0x18ccac,'removed'),this['fire']('suggestionUnloaded',_0x18ccac,_0x4fcd28,_0x72aeff));}['_setSuggestionData'](_0xfebfd1){const _0x5ddb15=_0xfebfd1['id'],_0x2900a5=this['addSuggestionData'](_0xfebfd1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3149ed=this['editor']['plugins']['get']('PendingActions'),_0x5fb076=_0x2900a5['hasComments'],_0x5c50e7=_0x2900a5['subType']?_0x2900a5['type']+':'+_0x2900a5['subType']:_0x2900a5['type'],_0x2a05ae=this['editor']['locale'],_0x1ef7c1=_0x3149ed['add'](o(_0x2a05ae,'PENDING_ACTION_SUGGESTION')),_0x584e4d={'id':_0x5ddb15,'type':_0x5c50e7,'hasComments':_0x5fb076,'data':_0xfebfd1['data']||null,'originalSuggestionId':_0xfebfd1['originalSuggestionId']||null,'attributes':_0x2900a5['attributes']};this['_adapter']['addSuggestion'](_0x584e4d)['then'](_0x35ae2b=>{_0x2900a5['_saved']=!0x0,_0x3149ed['remove'](_0x1ef7c1),_0x35ae2b&&_0x35ae2b['createdAt']&&(this['_suggestions']['get'](_0x5ddb15)['createdAt']=_0x35ae2b['createdAt']);})['catch'](_0x558d4d=>{throw _0x4985b3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2900a5['discard']();}),_0x2900a5['stopListening'](),this['_suggestions']['delete'](_0x2900a5['id']),this['_suggestionState']['delete'](_0x2900a5),_0x558d4d;});}return _0x2900a5;}['_isBlockAttribute'](_0x24a48f){return this['_blockAttributeKeys']['has'](_0x24a48f);}['_updateSuggestionData'](_0x32aba8,_0x4fa512){const _0x55657e=this['editor']['plugins']['get']('PendingActions'),_0x57c1ae=this['getSuggestion'](_0x32aba8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x57c1ae['_saved']){const _0x6e20f=_0x55657e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32aba8,_0x4fa512)['then'](()=>{_0x55657e['remove'](_0x6e20f);});}else _0x57c1ae['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32aba8,_0x4fa512);});}}['_getSuggestionData'](_0x28870a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x343a15('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x28870a);}['_handleNewSuggestionMarker'](_0x4088d7){const {id:_0x2ee1e3,type:_0x4136ff,subType:_0x31ce75,authorId:_0x10097f}=this['_splitMarkerName'](_0x4088d7),_0x30818d=this['_suggestions']['get'](_0x2ee1e3)||this['_createSuggestion'](_0x4136ff,_0x31ce75,_0x2ee1e3,_0x10097f,{});switch(this['_checkSuggestionCorrectness'](_0x30818d,_0x4136ff,_0x31ce75,_0x10097f),this['_suggestionState']['get'](_0x30818d)){case'notReady':this['_getSuggestionData'](_0x2ee1e3)['then'](_0x2361d0=>{let _0xf5d193=Promise['resolve']();_0x2361d0['hasComments']&&(_0xf5d193=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ee1e3})),_0xf5d193['then'](()=>{this['addSuggestionData'](_0x2361d0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30818d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ee1e3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30818d,'ready'),this['fire']('suggestionLoaded',_0x30818d);break;case'ready':this['fire']('suggestionChanged',_0x30818d);}return _0x30818d['addMarkerName'](_0x4088d7),_0x30818d;}['_refreshSuggestionsChain'](_0x1871a9){const _0x1d413c=Array['from'](_0x1871a9),_0x5acea0=_0x1d413c['filter'](_0x3fddd8=>'attribute'==_0x3fddd8['type']);this['_refreshAttributeSuggestionsChain'](_0x5acea0);const _0x4d8315=_0x1d413c['filter'](_0x2942c3=>!_0x2942c3['isMultiRange']&&'attribute'!=_0x2942c3['type']),_0x571522=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5813d2=>!_0x5813d2['isMultiRange']&&'attribute'!=_0x5813d2['type']),_0x238932=_0x571522['filter'](_0x3c2b17=>!_0x1871a9['has'](_0x3c2b17)),_0x2bf7be=new Map(_0x571522['map'](_0x11e1b5=>[_0x11e1b5,this['_suggestionFactory']['getSuggestionCallback'](_0x11e1b5['type'],_0x11e1b5['subType'],'chain')])),_0x526a0b=new Map(_0x571522['map'](_0x200cc8=>[_0x200cc8,_0x200cc8['getFirstRange']()])),_0x44c19a=new Set(),_0x3a1d32=new Set();for(let _0x2e1a54=0x0;_0x2e1a54<_0x4d8315['length'];_0x2e1a54++)_0x45b25b(_0x4d8315[_0x2e1a54],_0x4d8315,_0x2e1a54+0x1);for(let _0x433e77=0x0;_0x433e77<_0x4d8315['length'];_0x433e77++)_0x45b25b(_0x4d8315[_0x433e77],_0x238932,0x0);const _0x531fc1=new Set();for(let _0x16447c=0x0;_0x16447c<_0x4d8315['length'];_0x16447c++){const _0x177540=_0x4d8315[_0x16447c];!_0x3a1d32['has'](_0x177540)&&_0x177540['previous']&&(_0x531fc1['add'](_0x177540['previous']),_0x177540['previous']['next']===_0x177540&&(_0x177540['previous']['next']=null),_0x177540['previous']=null),!_0x44c19a['has'](_0x177540)&&_0x177540['next']&&(_0x531fc1['add'](_0x177540['next']),_0x177540['next']['previous']===_0x177540&&(_0x177540['next']['previous']=null),_0x177540['next']=null);}function _0x45b25b(_0x5d100f,_0x3bee3d,_0xfa6f58){for(let _0x44830e=_0xfa6f58;_0x44830e<_0x3bee3d['length'];_0x44830e++){const _0x276b6e=_0x45d451(_0x5d100f,_0x3bee3d[_0x44830e]);_0x276b6e&&(_0x276b6e[0x0]['next']=_0x276b6e[0x1],_0x276b6e[0x1]['previous']=_0x276b6e[0x0],_0x44c19a['add'](_0x276b6e[0x0]),_0x3a1d32['add'](_0x276b6e[0x1]));}}function _0x45d451(_0x5e7843,_0x50b776){if(_0x5e7843['author']['id']!==_0x50b776['author']['id'])return null;const _0x470bb3=_0x2bf7be['get'](_0x5e7843)(_0x5e7843,_0x50b776,_0x526a0b['get'](_0x5e7843),_0x526a0b['get'](_0x50b776));if(!_0x470bb3)return null;return _0x2bf7be['get'](_0x50b776)(_0x5e7843,_0x50b776,_0x526a0b['get'](_0x5e7843),_0x526a0b['get'](_0x50b776))?_0x470bb3[0x1]['commentThread']&&_0x470bb3[0x1]['commentThread']['length']?null:_0x470bb3:null;}_0x531fc1['size']&&this['_refreshSuggestionsChain'](_0x531fc1);}['_refreshAttributeSuggestionsChain'](_0x93d0bd){if(0x0==_0x93d0bd['length'])return;const _0x36be0f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe66398=>'attribute'==_0xe66398['type']&&_0xe66398['_isDataLoaded']),_0x24f4ac=[],_0x2a7fb5=new Map();for(const _0x54f2b8 of _0x36be0f){const _0x12b206=_0x317a87(_0x54f2b8['attributes']);_0x2a7fb5['has'](_0x12b206)||(_0x2a7fb5['set'](_0x12b206,_0x24f4ac['length']),_0x24f4ac['push']([]));const _0x385535=_0x2a7fb5['get'](_0x12b206);_0x24f4ac[_0x385535]['push'](_0x54f2b8);}!(function(){_0x24f4ac['sort']((_0x1be1af,_0x526f1d)=>{const _0x4ec1f2=_0x1be1af[0x0]['createdAt'],_0x561c0a=_0x526f1d[0x0]['createdAt'];return _0x4ec1f2==_0x561c0a?_0x1be1af[0x0]['attributes']['groupId']<_0x526f1d[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ec1f2<_0x561c0a?-0x1:0x1;});for(const _0x1c2171 of _0x24f4ac)_0x1c2171['sort']((_0x419084,_0x2d31c4)=>_0x419084['id']<_0x2d31c4['id']?-0x1:0x1);}());for(let _0x3a96d6=0x0;_0x3a96d6<_0x24f4ac['length'];_0x3a96d6++){if(0x0==_0x24f4ac[_0x3a96d6]['length'])continue;const _0x11b7e0=[];for(let _0x52938b=_0x3a96d6+0x1;_0x52938b<_0x24f4ac['length'];_0x52938b++)0x0!=_0x24f4ac[_0x52938b]['length']&&_0x3daa46(_0x24f4ac[_0x3a96d6],_0x24f4ac[_0x52938b])&&_0x11b7e0['push'](_0x52938b);for(const _0x59ca6d of _0x11b7e0)_0x24f4ac[_0x3a96d6]=_0x24f4ac[_0x3a96d6]['concat'](_0x24f4ac[_0x59ca6d]),_0x24f4ac[_0x59ca6d]=[];}for(const _0x3c8e9f of _0x24f4ac)for(let _0x559a04=0x0;_0x559a04<_0x3c8e9f['length'];_0x559a04++)_0x3c8e9f[_0x559a04]['next']=_0x3c8e9f[_0x559a04+0x1]||null;for(const _0x335ed0 of _0x24f4ac)for(let _0x1d63af=0x0;_0x1d63af<_0x335ed0['length'];_0x1d63af++)_0x335ed0[_0x1d63af]['previous']=_0x335ed0[_0x1d63af-0x1]||null;function _0x3daa46(_0x39370d,_0x3cbfe5){if(_0x39370d[0x0]['attributes']['groupId']!==_0x3cbfe5[0x0]['attributes']['groupId']&&_0x39370d[0x0]['author']!==_0x3cbfe5[0x0]['author'])return!0x1;if(!function(_0x361ead,_0x1c6413){if(!_0x361ead['hasComments']&&!_0x1c6413['hasComments'])return!0x0;if(_0x361ead['hasComments']&&_0x1c6413['hasComments'])return!0x1;if(_0x361ead['hasComments']&&_0x1c6413['createdAt']<_0x361ead['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c6413['hasComments']&&_0x361ead['createdAt']<_0x1c6413['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x39370d[0x0],_0x3cbfe5[0x0]))return!0x1;const _0x3fba91=Bt(_0x39370d[0x0]['attributes'],'groupId'),_0xd7b22c=Bt(_0x3cbfe5[0x0]['attributes'],'groupId');if(!_0x24bab9(_0x3fba91,_0xd7b22c))return!0x1;return!!_0x39370d['every'](_0x49fb7e=>_0x3cbfe5['some'](_0x58b11c=>_0x49fb7e['getFirstRange']()['isEqual'](_0x58b11c['getFirstRange']())))&&_0x3cbfe5['every'](_0xbffc=>_0x39370d['some'](_0xa6ac4=>_0xbffc['getFirstRange']()['isEqual'](_0xa6ac4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x36fbd3){const _0x5a2865=Array['from'](_0x36fbd3),_0x44adf8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b8c2e=_0x44adf8['filter'](_0x25f66b=>!_0x36fbd3['has'](_0x25f66b)),_0x545377=new Map(_0x5a2865['map'](_0x1d0806=>[_0x1d0806,this['_suggestionFactory']['getSuggestionCallback'](_0x1d0806['type'],_0x1d0806['subType'],'join')])),_0x58e04b=new Map(_0x44adf8['map'](_0x5493d6=>[_0x5493d6,_0x5493d6['getRanges']()]));for(let _0x545ec0=0x0;_0x545ec0<_0x5a2865['length'];_0x545ec0++){if(_0x4285f5(this,_0x5a2865[_0x545ec0],_0x5a2865,_0x545ec0+0x1))return!0x0;}for(let _0x1f6437=0x0;_0x1f6437<_0x5a2865['length'];_0x1f6437++){if(_0x4285f5(this,_0x5a2865[_0x1f6437],_0x1b8c2e,0x0))return!0x0;}return!0x1;function _0x4285f5(_0x453420,_0x564bef,_0x54c84a,_0x32d672){for(let _0x3fb1ef=_0x32d672;_0x3fb1ef<_0x54c84a['length'];_0x3fb1ef++){const _0x4021fc=_0x54c84a[_0x3fb1ef];if(_0x4021fc['type']!==_0x564bef['type']||_0x4021fc['author']['id']!==_0x564bef['author']['id']||_0x4021fc['subType']!==_0x564bef['subType'])continue;if(!Pt(_0x564bef,_0x4021fc,['groupId']))continue;if('attribute'==_0x564bef['type']&&_0x564bef['data']['oldValue']!=_0x4021fc['data']['oldValue'])continue;if('attribute'==_0x564bef['type']&&_0x453420['_isBlockAttribute'](_0x564bef['data']['key']))continue;if('formatBlock'==_0x564bef['type']){const _0x2d3dac=_0x453420['editor']['model'],_0x4d1b4c=_0x564bef['getContainedElement']();if(_0x4d1b4c&&(_0x2d3dac['schema']['isObject'](_0x4d1b4c)||_0x2d3dac['schema']['isLimit'](_0x4d1b4c)))continue;}const _0xecd1e1=_0x545377['get'](_0x564bef),_0x4ddb1f=_0x58e04b['get'](_0x564bef),_0xf75e42=_0x58e04b['get'](_0x4021fc),_0x1c7cc7=_0x564bef['commentThread']&&_0x564bef['commentThread']['length'],_0x363d40=_0x4021fc['commentThread']&&_0x4021fc['commentThread']['length'];if(!_0x1c7cc7&&_0xecd1e1(_0xf75e42,_0x4ddb1f))return _0x453420['_joinSuggestions'](_0x4021fc,_0x564bef),_0x58e04b['delete'](_0x564bef),!0x0;if(!_0x363d40&&_0xecd1e1(_0x4ddb1f,_0xf75e42))return _0x453420['_joinSuggestions'](_0x564bef,_0x4021fc),_0x58e04b['delete'](_0x4021fc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x276218,_0x2251df){if(_0x276218['isMultiRange']){for(const _0x369b20 of _0x2251df['getRanges']())_0x276218['addRange'](_0x369b20);}else{const _0x20ed2e=_0x2251df['getFirstRange']()['end'];this['_setSuggestionRange'](_0x276218,this['_model']['createRange'](_0x276218['getFirstRange']()['start'],_0x20ed2e));}_0x2251df['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52fb0e,_0x595178){const _0x3d12b7=_0x52fb0e['startsWith']('format')||_0x52fb0e['startsWith']('attribute')?'FORMATTING':_0x52fb0e['toUpperCase']();return o(this['editor']['locale'],_0x595178+'_'+_0x3d12b7+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x14f3eb=this['editor'];if(!_0x14f3eb['ui'])return;const {ariaLiveAnnouncer:_0x558dd9}=_0x14f3eb['ui'];_0x3960cf(this['_model'],({left:_0x10044f,entered:_0x4022b7})=>{for(const _0x5abde9 of _0x10044f){const {group:_0x2de41b,type:_0x44a6ed}=this['_splitMarkerName'](_0x5abde9['name']);if('suggestion'===_0x2de41b){_0x558dd9['announce'](this['_getMarkerAnnouncementText'](_0x44a6ed,'LEAVE'));break;}}for(const _0x4397d2 of _0x4022b7){const {group:_0x19ac31,type:_0x8a6dfc}=this['_splitMarkerName'](_0x4397d2['name']);if('suggestion'===_0x19ac31){_0x558dd9['announce'](this['_getMarkerAnnouncementText'](_0x8a6dfc,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4b263d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x19943d=this['editor'],_0x1e2e0b=_0x19943d['model']['document']['differ']['getChanges']();if(0x0==_0x1e2e0b['length'])return!0x1;const _0x86a817=[],_0x2aba96=_0x1e2e0b['filter'](_0x33e5b6=>'attribute'==_0x33e5b6['type']),_0x1376aa=_0x1e2e0b['filter'](_0x5492f1=>'insert'==_0x5492f1['type']&&'$text'!=_0x5492f1['name']),_0x3ba505=_0x1e2e0b['filter'](_0x523ee8=>'remove'==_0x523ee8['type']&&'$text'!=_0x523ee8['name']);for(const _0x1e32a9 of _0x2aba96)_0x86a817['push']({'key':_0x1e32a9['attributeKey'],'newValue':_0x1e32a9['attributeNewValue'],'oldValue':_0x1e32a9['attributeOldValue'],'range':Ot(_0x1e32a9['range'],_0x19943d['model'])});for(const _0x348a92 of _0x1376aa){const _0x528e78=_0x3ba505['find'](_0x2b5b3f=>_0x2b5b3f['position']['isEqual'](_0x348a92['position']));_0x528e78&&_0x86a817['push']({'key':m,'newValue':_0x348a92['name'],'oldValue':_0x528e78['name'],'range':_0x19943d['model']['createRangeOn'](_0x348a92['position']['nodeAfter'])});}return 0x0!=_0x86a817['length']&&this['_reduceExistingSuggestions'](_0x4b263d,_0x86a817);}['_processAttributeSuggestions'](_0x3cfdcf){let _0x912d4f=!0x1;const _0x45c394=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d11fc=>_0x1d11fc['data']['newRange']&&_0x1d11fc['name']['startsWith']('suggestion:attribute:'));for(const _0x49b6e2 of _0x45c394){const {subType:_0x44279d,id:_0x1d540e}=this['_splitMarkerName'](_0x49b6e2['name']),_0x4c60b6=_0x44279d['split']('|')[0x0];for(const _0x5b0ca3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5b0ca3['id']!=_0x1d540e&&'attribute'==_0x5b0ca3['type']&&_0x5b0ca3['data']&&_0x5b0ca3['data']['key']==_0x4c60b6&&_0x5b0ca3['getFirstRange']()['isIntersecting'](_0x49b6e2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5b0ca3,_0x49b6e2['data']['newRange'],_0x3cfdcf),_0x912d4f=!0x0);}return _0x912d4f;}['_recordAttributeChanges'](_0x1bb41d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1bb41d();}['_isRegisteredAttribute'](_0x774cd1){const _0x49eccd=this['_isBlockAttribute'](_0x774cd1),_0x17b603=this['_inlineAttributeKeys']['has'](_0x774cd1);return _0x49eccd||_0x17b603;}['_reduceExistingSuggestions'](_0x132587,_0x4922c6){if(0x0==_0x4922c6['length'])return!0x1;let _0x261fc9=!0x1;for(const _0x35ec4e of _0x4922c6){const _0x11b0f8=this['_findSuggestions'](_0x35ec4e['range'],'attribute')['filter'](_0x47b3b3=>!_0x47b3b3['meta']['isNextTo'])['map'](_0x5b6631=>_0x5b6631['suggestion']),_0x2aadf3=_0x317a87({'newValue':_0x35ec4e['newValue']});_0x11b0f8['filter'](_0x82174e=>{const [_0x30be30,_0xa78f36]=_0x82174e['subType']['split']('|');return _0x30be30==_0x35ec4e['key']&&_0xa78f36!=_0x2aadf3;})['forEach'](_0x1003d1=>{this['_reduceSuggestionAttributeRange'](_0x1003d1,_0x35ec4e['range'],_0x132587),_0x261fc9=!0x0;});}return _0x261fc9;}['_reduceSuggestionAttributeRange'](_0x162acd,_0x2075d2,_0x3f01fd){const _0x1863f2=_0x162acd['getFirstRange']()['getDifference'](_0x2075d2);0x0!==_0x1863f2['length']?0x1!==_0x1863f2['length']?this['_breakSuggestionMarker'](_0x162acd,_0x2075d2['start'],_0x2075d2['end']):this['_setSuggestionRange'](_0x162acd,_0x1863f2[0x0]):_0x3f01fd['removeMarker'](_0x162acd['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5dcbb4){this['_editor']=_0x5dcbb4,this['_model']=_0x5dcbb4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x21c646,_0x4a2fff,_0x54e0de,_0x55aa54,_0x1c625f,_0x2ff5ce){return new u(this['_model'],{'type':_0x21c646,'subType':_0x4a2fff,'id':_0x54e0de,'author':_0x55aa54,'creator':_0x55aa54,'attributes':_0x1c625f,'onAttributesChange':_0x2ff5ce,'onAccept':(..._0x16c8ce)=>this['getSuggestionCallback'](_0x21c646,_0x4a2fff,'accept')(..._0x16c8ce),'onDiscard':(..._0x5da5df)=>this['getSuggestionCallback'](_0x21c646,_0x4a2fff,'discard')(..._0x5da5df)});}['registerCustomCallback'](_0x58cf69,_0x12ba9d,_0x363caa,_0x25e9ad){const _0x2bf8c3=_0x58cf69+':'+_0x12ba9d+':'+_0x363caa;this['_customCallbacks']['set'](_0x2bf8c3,_0x25e9ad);}['getSuggestionCallback'](_0x18d85d,_0x1669f2,_0x2e6652){const _0x1762d9=_0x18d85d+':'+_0x1669f2+':'+_0x2e6652;return this['_customCallbacks']['get'](_0x1762d9)||this['_defaultCallbacks']['get'](_0x18d85d+':'+_0x2e6652);}['_registerDefaultCallbacks'](){const _0x238018=()=>!0x1,_0x132f5f=_0x261490=>{_0x261490['sort']((_0x11b069,_0x37e218)=>_0x11b069['start']['isBefore'](_0x37e218['start'])?0x1:-0x1),this['_model']['change'](_0x1ce5fc=>{for(const _0x58ac57 of _0x261490){let _0x4a9843;_0x4a9843=_0x58ac57['end']['isAtEnd']&&_0x58ac57['end']['parent']==_0x58ac57['start']['nodeAfter']?_0x1ce5fc['createSelection'](_0x58ac57['start']['nodeAfter'],'on'):_0x1ce5fc['createSelection'](_0x58ac57),this['_model']['deleteContent'](_0x4a9843,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ddd05=(_0x19f91b,_0x41c568)=>{_0x41c568&&this['_model']['change'](_0x121f39=>{const {commandName:_0x2f0696,commandParams:_0x3d8b9b=[]}=_0x41c568,_0x279611=_0x19f91b['map'](_0x362590=>(Tt(_0x362590)&&(_0x362590=this['_model']['createRange'](_0x362590['end'])),_0x362590))['filter'](_0x19f1be=>'$graveyard'!==_0x19f1be['root']['rootName']);if(_0x279611['length']<0x1)return;const _0x52f444=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x35c6e8=>_0x3123fd['fromRange'](_0x35c6e8));_0x121f39['setSelection'](_0x279611);for(const _0x5909cc of this['_editor']['commands']['commands']())_0x5909cc['refresh']();_0x3d8b9b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2f0696,..._0x3d8b9b);const _0x39372d=_0x52f444['filter'](_0x1eee4f=>'$graveyard'!=_0x1eee4f['root']['rootName']);_0x39372d['length']>0x0&&_0x121f39['setSelection'](_0x39372d);for(const _0xb17f1 of _0x52f444)_0xb17f1['detach']();});},_0x3ae93a=(_0x4bea59,_0x3edec5)=>0x1==_0x4bea59['length']&&0x1==_0x3edec5['length']&&_0x4bea59[0x0]['end']['isEqual'](_0x3edec5[0x0]['start']),_0x3cf866=(_0x881835,_0x21509e,_0x32ddb1,_0x285021)=>Ft(_0x881835,_0x21509e,_0x32ddb1,_0x285021,this['_model'])?[_0x881835,_0x21509e]:Ft(_0x21509e,_0x881835,_0x285021,_0x32ddb1,this['_model'])?[_0x21509e,_0x881835]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x238018),this['_defaultCallbacks']['set']('insertion:discard',_0x132f5f),this['_defaultCallbacks']['set']('insertion:join',_0x3ae93a),this['_defaultCallbacks']['set']('insertion:chain',_0x3cf866),this['_defaultCallbacks']['set']('deletion:accept',_0x132f5f),this['_defaultCallbacks']['set']('deletion:discard',_0x238018),this['_defaultCallbacks']['set']('deletion:join',_0x3ae93a),this['_defaultCallbacks']['set']('deletion:chain',_0x3cf866),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ddd05),this['_defaultCallbacks']['set']('formatInline:discard',_0x238018),this['_defaultCallbacks']['set']('formatInline:join',_0x3ae93a),this['_defaultCallbacks']['set']('formatInline:chain',_0x238018),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ddd05),this['_defaultCallbacks']['set']('formatBlock:discard',_0x238018),this['_defaultCallbacks']['set']('formatBlock:join',_0x3ae93a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x238018),this['_defaultCallbacks']['set']('attribute:accept',_0x238018),this['_defaultCallbacks']['set']('attribute:discard',(_0x44416f,_0x3f3c83)=>{if(!_0x3f3c83)return;const _0x7f41e7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x124ab3=>{if(_0x3f3c83['key']==m)for(const _0x1bd9ec of _0x44416f){const _0x468f44=_0x1bd9ec['start']['nodeAfter'],_0x2b86c8=_0x3f3c83['oldValue'];_0x124ab3['rename'](_0x468f44,_0x2b86c8);}else{if(_0x7f41e7['_isBlockAttribute'](_0x3f3c83['key'])){for(const _0x63c97 of _0x44416f)void 0x0!==_0x3f3c83['oldValue']?_0x124ab3['setAttribute'](_0x3f3c83['key'],_0x3f3c83['oldValue'],_0x63c97['start']['nodeAfter']):_0x124ab3['removeAttribute'](_0x3f3c83['key'],_0x63c97['start']['nodeAfter']);}else{for(const _0x52e295 of _0x44416f)_0x3f3c83['oldValue']?_0x124ab3['setAttribute'](_0x3f3c83['key'],_0x3f3c83['oldValue'],_0x52e295):_0x124ab3['removeAttribute'](_0x3f3c83['key'],_0x52e295);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3ae93a);}}function Rt(_0x4624a3,_0x21e5b2,_0x3758b6){for(const _0x40a822 of _0x21e5b2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x40a822['root']==_0x40a822)return!0x1;if(!_0x3758b6['containsItem'](_0x40a822))return!0x1;if(_0x4624a3['isObject'](_0x40a822)||_0x4624a3['isLimit'](_0x40a822))return!0x0;}return!0x1;}function Tt(_0x331e50){return _0x331e50['end']['parent']==_0x331e50['start']['nodeAfter']&&_0x331e50['end']['isAtStart'];}function Et(_0x340ada,_0x56079c,_0x47b547,_0x5b755e){const _0x29298b=_0x39e84b=>!_0x39e84b['item']['is']('$textProxy')&&!_0x5b755e['isObject'](_0x39e84b['item']),_0x1757e4=_0x340ada['start']['getLastMatchingPosition'](_0x29298b),_0x121fe5=_0x340ada['end']['getLastMatchingPosition'](_0x29298b,{'direction':'backward'});return(!_0x340ada['start']['isEqual'](_0x1757e4)||!_0x340ada['end']['isEqual'](_0x121fe5))&&(_0x1757e4['isBefore'](_0x121fe5)?_0x47b547['updateMarker'](_0x56079c,{'range':_0x47b547['createRange'](_0x1757e4,_0x121fe5)}):_0x47b547['removeMarker'](_0x56079c),!0x0);}function Vt(_0x49a4e3){return _0x317a87(_0x49a4e3);}function Ut(_0x15f63e){const _0x55483a=_0x15f63e['start']['nodeAfter'];return _0x55483a&&_0x55483a['is']('element');}function Ot(_0x206fbe,_0x467e1a){return null==_0x206fbe['end']['nodeBefore']&&_0x206fbe['end']['parent']==_0x206fbe['start']['nodeAfter']?Gt(_0x206fbe['start']['nodeAfter'],_0x467e1a):_0x206fbe;}function Gt(_0x38cc11,_0x1c36be){const _0x1481aa=_0x1c36be['schema']['isObject'](_0x38cc11)||_0x1c36be['schema']['isSelectable'](_0x38cc11);return _0x1c36be['createRange'](_0x1c36be['createPositionAt'](_0x38cc11,'before'),_0x1481aa?_0x1c36be['createPositionAfter'](_0x38cc11):_0x1c36be['createPositionAt'](_0x38cc11,'end'));}function Ft(_0x2d920b,_0xbfe54e,_0x1816e3,_0x1fc52d,_0x3993fc){if(!Pt(_0x2d920b,_0xbfe54e))return!0x1;if(_0x1816e3['end']['isEqual'](_0x1fc52d['start']))return!0x0;if(_0x2d920b['type']!=_0xbfe54e['type'])return!0x1;if(!_0x1816e3['end']['isTouching'](_0x1fc52d['start']))return!0x1;const _0x3f3376=_0x3993fc['createRange'](_0x1816e3['end'],_0x1fc52d['start'])['getWalker']();for(const _0x4300a of _0x3f3376)if(['elementStart','elementEnd']['includes'](_0x4300a['type'])&&_0x3993fc['schema']['isLimit'](_0x4300a['item']))return!0x1;return!0x0;}function Pt(_0x4be4c8,_0x54dc38,_0x276214=[]){return!(!_0x4be4c8['_isDataLoaded']||!_0x54dc38['_isDataLoaded'])&&_0x24bab9(Bt(_0x4be4c8['attributes'],_0x276214),Bt(_0x54dc38['attributes'],_0x276214));}function Lt(_0x59739a,_0x4c4239){const _0x23e090=Ht(_0x59739a['attributes']),_0x558ac9=Ht(_0x4c4239);if(!_0x59739a['_isDataLoaded'])return!0x1;for(const _0x389be5 of Object['keys'](_0x558ac9))if(!_0x24bab9(_0x23e090[_0x389be5],_0x558ac9[_0x389be5]))return!0x1;return!0x0;}function Ht(_0x1ecc86){const _0x91f249=Object['assign']({},_0x1ecc86);return delete _0x91f249['skipNestingCheck'],delete _0x91f249['tablePasteChainId'],_0x91f249;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1080ab(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14b8d4,_0x3a0ab7,_0x400324,_0x21f9f1){super(),this['model']=_0x3a0ab7,this['view']=_0x400324,this['commentThreadController']=_0x21f9f1,this['_editor']=_0x14b8d4,this['_acceptCommand']=_0x14b8d4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14b8d4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xf7b0a9,_0x5791d3)=>_0xf7b0a9||_0x5791d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35ca70=>_0x35ca70&&this['_editor']['model']['canEditAt'](_0x3a0ab7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b7f9b=>_0x4b7f9b&&this['_editor']['model']['canEditAt'](_0x3a0ab7['getRanges']())),this['_pendingAction']=null,_0x400324['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x400324,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x400324,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x400324,'change:isDirty',()=>{_0x400324['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 _0x1f2341=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1f2341);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x361ff7{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x19fd44,_0x317521,_0x24f7ab,_0x25dd84){super(_0x19fd44),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x317521['authoredAt']),this['bind']('authoredAt')['to'](_0x317521),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x317521,this['_localUser']=_0x24f7ab,this['_config']=_0x25dd84,_0x25dd84['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:_0x404265}=this['_config'];this['commentsListView']=new _0x404265(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',_0x39389a=>_0x39389a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x405085,_0x148f2a)=>_0x405085||!!_0x148f2a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x9962a9}=this['_config'],_0xd0182=new _0x9962a9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x237087=_0xd0182['commentInputView'];return _0xd0182['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x237087,'value',(_0x1d9779,_0x2dff4f,_0x3c1595)=>!!_0x3c1595||_0x1d9779&&!_0x2dff4f),_0x237087['on']('submit',(_0x721e7f,_0x520746)=>{this['fire']('addComment',_0x520746),_0x237087['editor']['setData']('');}),_0x237087['on']('cancel',()=>this['focus']()),_0x237087['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd0182;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x8383ed,_0x3bbdf2,_0x25a2ba,_0x213e52){super(_0x8383ed,_0x3bbdf2,_0x25a2ba,_0x213e52),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4db966=>_0x4db966&&_0x4db966[0x0]?_0x4db966[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5d2553,_0x45f625)=>{let _0x3d07cf='';for(const _0x4a4573 of _0x5d2553)_0x3d07cf+='<p>'+ds(_0x4a4573['content'],_0x4a4573['color'])+'</p>';return _0x45f625?_0x3d07cf:_0x5d9049(_0x3d07cf,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x8383ed,'Accept\x20suggestion'),_0xf01ca4['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x8383ed,'Discard\x20suggestion'),_0xf01ca4['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2c5e4e(_0x8383ed,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2de20c=this['bindTemplate'],_0x446e78=[{'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':_0x2de20c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2de20c['to']('authoredAt',_0x1b32b4=>this['_config']['formatDateTime'](_0x1b32b4))}]}]},{'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']&&_0x446e78['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x593997={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2de20c['if']('isActive','ck-suggestion-wrapper--active'),_0x2de20c['to']('type',_0x166ea0=>'ck-suggestion-'+_0x166ea0),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':_0x446e78}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x593997['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)),_0x593997;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xf06c33,_0x1440d4,_0x56ffa4)=>{this['_descriptionElement']['innerHTML']=_0x56ffa4;});}['_createButton'](_0x17530c,_0x3b72db,_0x5cbf7a,_0x1b179b,_0x4bded9){const _0x28caa8=new _0x558b32(this['locale']);return _0x28caa8['set']({'label':_0x17530c,'icon':_0x3b72db,'tooltip':!0x0,'tooltipPosition':_0x4bded9}),_0x28caa8['extendTemplate']({'attributes':{'class':_0x5cbf7a}}),_0x28caa8['on']('execute',()=>{this['fire'](_0x1b179b,this['_model']['id']);}),_0x28caa8;}['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(_0x4c6ead,_0x2d86cf){let _0x236dbb='';return _0x236dbb+=_0x4c6ead['split']('*')['map']((_0x110d87,_0x1c72fa)=>_0x1c72fa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x110d87)+'</span>':us(_0x110d87))['join'](''),_0x2d86cf&&(_0x236dbb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2d86cf['value']+'\x22\x20title=\x22'+_0x2d86cf['title']+'\x22></span>'),_0x236dbb;}function us(_0x8db065){const _0x723028=document['createElement']('span');return _0x723028['innerText']=_0x8db065,_0x723028['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 _0x198c8f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x182efd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1d7eb3){super(_0x1d7eb3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x216c22=this['editor']['config'];_0x216c22['define']('trackChanges.SuggestionThreadView',ne),_0x216c22['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x216c22['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x586f04,_0x8c2ed3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x123395,_0x3cff20]of this['_handleControllerBuffer']){const _0x21ee9=this['_suggestionToController']['has'](_0x123395);_0x21ee9||_0x3cff20?_0x21ee9&&_0x3cff20&&this['_destroyController'](_0x123395):this['_initializeController'](_0x123395);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x586f04,_0x8c2ed3);}['init'](){const _0x2ae3f1=this['editor'],_0x45339f=_0x2ae3f1['plugins']['get']('TrackChangesEditing'),_0x17ba52=_0x2ae3f1['plugins']['get']('Annotations'),_0x34a5b8=_0x2ae3f1['plugins']['get']('EditorAnnotations'),_0xd2eae2=_0x2ae3f1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x34a5b8['addSourceCollector'](()=>{const _0xd718cd=[];for(const [_0x2a9fb1,_0x580661]of Array['from'](this['_suggestionToController'])){const _0x1f7924=_0x2a9fb1['getAllAdjacentSuggestions'](),_0x2c87e8=[];for(const _0x1ddadc of _0x1f7924){if(!_0x1ddadc['isInContent'])continue;if(_0x1ddadc['isMultiRange']){_0x2c87e8['push'](..._0x1ddadc['getRanges']());continue;}const _0x3697b6=_0x1ddadc['getFirstRange']();if(_0x2c87e8['length']>0x0){const _0x3aa98c=_0x2c87e8[0x0]['getJoined'](_0x3697b6);if(_0x3aa98c){_0x2c87e8[0x0]=_0x3aa98c;continue;}}_0x2c87e8['push'](_0x3697b6);}_0xd718cd['push']([_0x580661['view'],_0x2c87e8]);}return _0xd718cd;}),this['listenTo'](_0x45339f,'suggestionLoaded',(_0x3fc2f7,_0x2afab2)=>{this['listenTo'](_0x2afab2,'change:previous',(_0xadcad,_0x345f63,_0x4e9680,_0x54c720)=>{_0x2afab2['isInContent']&&(null==_0x4e9680?(this['_updateController'](_0x54c720['head']),this['_handleSuggestionControllerDelayed'](_0x2afab2,!0x1)):(this['_updateController'](_0x4e9680['head']),null==_0x54c720&&this['_handleSuggestionControllerDelayed'](_0x2afab2,!0x0)));}),null!==_0x2afab2['previous']?this['_updateController'](_0x2afab2['head']):this['_handleSuggestionControllerDelayed'](_0x2afab2,!0x1);}),this['listenTo'](_0x45339f,'suggestionUnloaded',(_0x24c285,_0x5508d0,_0x220b9)=>{this['stopListening'](_0x5508d0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5508d0),this['_suggestionToController']['has'](_0x5508d0)&&this['_destroyController'](_0x5508d0),_0x220b9&&this['_updateController'](_0x220b9['head']);}),this['listenTo'](_0x45339f,'suggestionChanged',(_0x163b56,_0x16317b)=>{this['_updateController'](_0x16317b);}),this['listenTo'](_0x17ba52,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xd2eae2,'addComment',(_0x4f3f28,{threadId:_0x33e13b,isFromAdapter:_0x14e264})=>{if(_0x14e264||!_0x45339f['hasSuggestion'](_0x33e13b))return;const _0x364a43=_0x45339f['getSuggestion'](_0x33e13b);this['_suggestionToController']['get'](_0x364a43)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5894b4=this['editor']['plugins']['get']('Annotations'),_0x1f3be1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5877b5=Array['from'](_0x5894b4['activeAnnotations'],_0x355ded=>_0x355ded['innerView'])['filter'](_0x47111d=>this['_viewToController']['has'](_0x47111d)),_0x3a3973=[];for(const _0x18c4b1 of _0x5877b5){const _0x20ea82=this['_viewToController']['get'](_0x18c4b1)['model']['getAllAdjacentSuggestions']();_0x3a3973['push'](..._0x20ea82['reduce']((_0x1b8e1d,_0x24462d)=>[..._0x1b8e1d,..._0x24462d['getMarkerNames']()],[]));}_0x1f3be1['activeMarkers']=_0x3a3973;}['_addUIComponentsToFactory'](){const _0x5a68fe=this['editor'],_0x5427e6=_0x5a68fe['locale'],_0x5b1bfd=o(_0x5427e6,'Track\x20changes'),_0x334f=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5b1bfd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5427e6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5427e6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5427e6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5427e6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x202f07 of _0x334f)if(ae(_0x202f07)){const _0x9c283a=_0x5a68fe['commands']['get'](_0x202f07['model']['commandName']);_0x202f07['model']['bind']('isOn','isEnabled')['to'](_0x9c283a,'value','isEnabled');}_0x5a68fe['ui']['componentFactory']['add']('trackChanges',_0x46fdf2=>this['_createToolbarButton'](_0x46fdf2,_0x334f,_0x5b1bfd)),_0x5a68fe['ui']['componentFactory']['add']('menuBar:trackChanges',_0x190904=>this['_createMenuBarMenu'](_0x190904,_0x334f,_0x5b1bfd));}['_createToolbarButton'](_0x5921ad,_0xfe0a82,_0x443803){const _0xcb082a=zt(_0x5921ad,Zt),_0x371d5a=this['editor']['commands']['get']('trackChanges');_0xcb082a['buttonView']['set']({'tooltip':_0x443803,'label':_0x443803,'icon':ie}),_0xcb082a['buttonView']['bind']('isOn')['to'](_0x371d5a,'value'),_0xcb082a['buttonView']['on']('execute',()=>{_0x371d5a['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xcb082a,_0xfe0a82,{'role':'menu'});const _0x4be889=[];for(const _0x1bfaff of _0xfe0a82)ae(_0x1bfaff)&&_0x4be889['push'](this['editor']['commands']['get'](_0x1bfaff['model']['commandName']));const _0x4ee879=_0xcb082a['buttonView'];return _0x4ee879['actionView']['unbind']('isEnabled'),_0x4ee879['arrowView']['unbind']('isEnabled'),_0x4ee879['actionView']['bind']('isEnabled')['to'](_0x371d5a,'isEnabled'),_0x4ee879['arrowView']['bind']('isEnabled')['toMany'](_0x4be889,'isEnabled',(..._0x23b682)=>_0x23b682['some'](_0x394bcd=>_0x394bcd)),_0xcb082a['on']('execute',_0x19cb30=>{this['editor']['execute'](_0x19cb30['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcb082a;}['_createMenuBarMenu'](_0xfa65cf,_0x53b2bd,_0x68e910){const _0x4d5921=new Kt(_0xfa65cf),_0x1da0db=this['editor']['commands']['get']('trackChanges');_0x4d5921['buttonView']['set']({'label':_0x68e910,'icon':ie});const _0x518ae8=new Qt(_0xfa65cf);for(const _0x3b36ff of _0x53b2bd){if('separator'==_0x3b36ff['type']){_0x518ae8['items']['add'](new Jt(_0xfa65cf));continue;}const _0x5195b7=new Xt(_0xfa65cf,_0x4d5921),_0x1e636c=new Yt(_0xfa65cf),_0x2b59dd=_0x3b36ff['model'];_0x1e636c['bind'](...Object['keys'](_0x2b59dd))['to'](_0x2b59dd),_0x1e636c['delegate']('execute')['to'](_0x4d5921),_0x1e636c['on']('execute',()=>{this['editor']['execute'](_0x2b59dd['commandName']),this['editor']['editing']['view']['focus']();}),_0x5195b7['children']['add'](_0x1e636c),_0x518ae8['items']['add'](_0x5195b7);}return _0x4d5921['bind']('isEnabled')['to'](_0x1da0db,'isEnabled'),_0x4d5921['panelView']['children']['add'](_0x518ae8),_0x4d5921;}['_initializeController'](_0xc83e5d){const _0x2a024e=this['editor'],_0x23e2df=_0x2a024e['config'],_0x16eb15=_0x2a024e['plugins']['get']('Annotations'),_0x4124b5=_0x2a024e['plugins']['get']('CommentsRepository'),_0x3e463d=_0x2a024e['plugins']['get']('EditorAnnotations'),_0x417f6d=_0x2a024e['plugins']['get'](_0x182efd)['me'],_0x4cea51=_0x23e2df['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3ae573,CommentThreadInputView:_0x50aa33}=_0x2a024e['plugins']['get']('CommentsUI');let _0x555203,_0x398bde;this['_annotationViews']['has'](_0xc83e5d['id'])?(_0x398bde=this['_annotationViews']['get'](_0xc83e5d['id']),_0x555203=_0x398bde['mainView']):(_0x555203=new _0x4cea51(_0x2a024e['locale'],_0xc83e5d,_0x417f6d,{'disableComments':this['_disableComments'],'editorConfig':_0x23e2df['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x23e2df['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x23e2df['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x23e2df['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3d367d(_0x23e2df['get']('locale')),'CommentView':_0x23e2df['get']('comments')['CommentView'],'CommentsListView':_0x3ae573,'CommentThreadInputView':_0x50aa33}),_0x555203['acceptButton']['on']('execute',()=>{_0x2a024e['editing']['view']['focus']();}),_0x555203['discardButton']['on']('execute',()=>{_0x2a024e['editing']['view']['focus']();}),_0x398bde=_0x16eb15['createAnnotationView'](this['editor']['locale'],_0x555203),_0x398bde['bind']('isDirty')['to'](_0x555203,'isDirty'),_0x398bde['bind']('length')['to'](_0x555203),_0x398bde['bind']('type')['to'](_0x555203,'type',_0x5b99dd=>'suggestion-'+_0x5b99dd),this['_annotationViews']['set'](_0xc83e5d['id'],_0x398bde));const _0x4ae38f=_0x4124b5['createCommentThreadController'](_0xc83e5d['commentThread'],_0x555203),_0x3a03a2=new oe(_0x2a024e,_0xc83e5d,_0x555203,_0x4ae38f),_0x3a3599=_0xc83e5d['getAllAdjacentSuggestions']()['filter'](_0x1edd0e=>_0x1edd0e['isInContent']);_0x555203['descriptionParts']=_0x2a024e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3a3599),this['_suggestionToController']['set'](_0xc83e5d,_0x3a03a2),this['_viewToController']['set'](_0x555203,_0x3a03a2);const _0x295883=_0x16eb15['createAnnotation']({'view':_0x398bde,'target':()=>{const _0xb69df5=[],_0x3ffbb1=_0xc83e5d['getAllAdjacentSuggestions']()['filter'](_0x5b9901=>_0x5b9901['isInContent']);for(const _0xf79221 of _0x3ffbb1)_0xb69df5['push'](..._0xf79221['getMarkers']());return _0x21ebdf(_0x2a024e['editing'],_0xb69df5);},'type':()=>'suggestion-'+_0x3a03a2['view']['type']});_0x4124b5['_bindAnnotationToEditors'](_0x555203,_0x295883),_0x16eb15['add'](_0x295883),_0x3e463d['registerAnnotation'](_0x295883);}['_destroyController'](_0x13ff19){const _0x57294e=this['editor']['plugins']['get']('CommentsRepository'),_0x585702=this['editor']['plugins']['get']('Annotations'),_0x105f42=this['_suggestionToController']['get'](_0x13ff19),_0x10fba9=_0x105f42['view'],_0x4b666d=_0x585702['getByInnerView'](_0x10fba9);_0x57294e['_unbindEditors'](_0x10fba9),_0x4b666d&&_0x585702['remove'](_0x4b666d),this['_suggestionToController']['delete'](_0x13ff19),this['_viewToController']['delete'](_0x10fba9),_0x105f42['destroy']();}['_updateController'](_0x19c50a){if(!_0x19c50a['isInContent']||!this['_suggestionToController']['has'](_0x19c50a))return;const _0x556c17=this['editor']['plugins']['get']('TrackChangesEditing'),_0x95434e=this['_suggestionToController']['get'](_0x19c50a),_0x4f0636=_0x19c50a['getAllAdjacentSuggestions']();_0x95434e['view']['descriptionParts']=_0x556c17['descriptionFactory']['getDescriptions'](_0x4f0636);}['destroy'](){for(const _0x3d0faa of this['_suggestionToController']['keys']())this['_destroyController'](_0x3d0faa);for(const _0x30bf79 of this['_annotationViews']['values']())_0x30bf79['mainView']['destroy']();super['destroy']();}}function ae(_0x587b17){return'model'in _0x587b17;}class k extends _0x198c8f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2bedd3){this['editor']['plugins']['get'](p)['adapter']=_0x2bedd3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3d41b5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3d41b5);}['getSuggestions']({skipNotAttached:_0x484f23=!0x1,toJSON:_0x7952cb=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x484f23,'toJSON':_0x7952cb});}['getSuggestion'](_0x1f4792){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f4792);}}const T=['Pagination'];class P extends _0x198c8f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x27adf3=this['editor'];if(_0x27adf3['config']['define']('trackChangesData.editorCreator',_0x510596=>{const _0xaaf889=_0x27adf3['model']['document']['getRootNames']()['reduce']((_0x15c160,_0x1ce46d)=>(_0x15c160[_0x1ce46d]='',_0x15c160),{});return _0x27adf3['constructor']['create'](_0xaaf889,_0x510596);}),'function'!=typeof _0x27adf3['config']['get']('trackChangesData')['editorCreator'])throw new _0x343a15('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5bc068){return N(this['editor'],!0x0,_0x5bc068);}['getDataWithDiscardedSuggestions'](_0xa2538c){return N(this['editor'],!0x1,_0xa2538c);}}class D extends _0x198c8f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x40e154){super(_0x40e154),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(_0x2b955d){return void 0x0!==_0x2b955d['getRootsAttributes'];}async function N(_0x56c9a9,_0x54a96d,_0x2c6fa3){const _0x275dc5=_0x329fdb(_0x56c9a9,T);_0x275dc5['plugins']['push'](p,D),_0x275dc5['rootsAttributes']=v(_0x56c9a9)?_0x56c9a9['getRootsAttributes']():void 0x0;const _0x4867f8=document['createDocumentFragment'](),_0x31cf3b=_0x56c9a9['config']['get']('trackChangesData')['editorCreator'],_0x559d51=await _0x31cf3b(_0x275dc5,()=>function(_0x3af16a){const _0x120d2a=document['createElement']('div');return _0x3af16a['appendChild'](_0x120d2a),_0x120d2a;}(_0x4867f8));!function(_0x2b7ef6,_0xb5022){const _0x2977a6=_0x2b7ef6['model']['document']['getRootNames']()['reduce']((_0x3e7493,_0x2ca72b)=>(_0x3e7493[_0x2ca72b]=_0x2b7ef6['data']['get']({'rootName':_0x2ca72b}),_0x3e7493),{}),_0xeb4aa1=_0x2b7ef6['plugins']['get']('Users')['users']['map'](_0x37ee32=>({'id':_0x37ee32['id'],'name':_0x37ee32['name']})),_0x41fc9b=_0x2b7ef6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x175e79=_0x2b7ef6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28ace9=_0xb5022['plugins']['get']('Users'),_0x375972=_0xb5022['plugins']['get']('TrackChangesEditing'),_0x1f7562=_0xb5022['plugins']['get']('CommentsRepository');for(const _0x314889 of _0xeb4aa1)_0x28ace9['getUser'](_0x314889['id'])||_0x28ace9['addUser'](_0x314889);_0x28ace9['me']||_0x28ace9['useAnonymousUser']();for(const _0x4c6733 of _0x175e79)_0x1f7562['addCommentThread'](_0x4c6733);for(const _0x151733 of _0x41fc9b)_0x375972['addSuggestionData'](_0x151733);_0xb5022['data']['set'](_0x2977a6);}(_0x56c9a9,_0x559d51),_0x559d51['execute'](_0x54a96d?'acceptAllSuggestions':'discardAllSuggestions');const _0x1bd9ba=v(_0x559d51)?_0x559d51['getFullData'](_0x2c6fa3):_0x559d51['data']['get'](_0x2c6fa3);return await _0x559d51['destroy'](),_0x1bd9ba;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x470f93,PendingActions as _0x1ae075,icons as _0x1d4a10}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4524f9,ObservableMixin as _0x4fa93a,uid as _0x336056,insertToPriorityArray as _0x2bfdb8,priorities as _0x1e623f,logWarning as _0x1c4769,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4b76ca,View as _0x385a1,ButtonView as _0x3786c0,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 _0x26cba0,hashObject as _0x326b5a,surroundingMarkersDetector as _0x59f9db,trimHtml as _0x1f62ea,UserView as _0x1ff3e0,getDateTimeFormatter as _0x3c0223,getAllMarkersDomElementsSorted as _0x741fd5,sanitizeEditorConfig as _0x486efe}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45d00e,LiveRange as _0x424176,LivePosition as _0x378777}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x141c2a,toWidget as _0x3676ef}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xaa375d,set as _0x472c2c,isEqual as _0x5767df,unset as _0x4ae41d,omit as Bt}from'lodash-es';import{Delete as _0x11ceb6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d515b,ShiftEnter as _0x393c11}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4efc92,_0x4b34b5){super(_0x4efc92),this['_enabledCommands']=_0x4b34b5,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 _0x5db89c of this['editor']['commands']['commands']())_0x5db89c['affectsData']&&!this['_enabledCommands']['has'](_0x5db89c)&&_0x5db89c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2150fb of this['editor']['commands']['commands']())_0x2150fb['affectsData']&&!this['_enabledCommands']['has'](_0x2150fb)&&_0x2150fb['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1b0566,_0x9ad92a){super(_0x1b0566),this['_suggestions']=_0x9ad92a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x120e33){const _0x3fa809=this['_suggestions']['get'](_0x120e33);if(!_0x3fa809)throw new _0x4524f9('track-changes-accept-suggestion-not-found',this);const _0xa98131=_0x3fa809['getRanges']();this['editor']['model']['canEditAt'](_0xa98131)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3fa809);}}class B extends ts{['_suggestions'];constructor(_0x2d0227,_0x2bef17){super(_0x2d0227),this['_suggestions']=_0x2bef17,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x455b8e){const _0x153340=this['_suggestions']['get'](_0x455b8e);if(!_0x153340)throw new _0x4524f9('track-changes-discard-suggestion-not-found',this);const _0x4a4596=_0x153340['getRanges']();this['editor']['model']['canEditAt'](_0x4a4596)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x153340);}}function ss(_0x577fbc){return _0x577fbc['sort']((_0x31d050,_0x400373)=>'deletion'==_0x31d050['type']&&'deletion'!=_0x400373['type']?-0x1:'deletion'!=_0x31d050['type']&&'deletion'==_0x400373['type']?0x1:0x0);}function to(_0x295250,_0x14d054){let _0x4ad699,_0x227b6a=0x0;const _0x3b0288=[],_0x312e8e=_0x14d054['schema'];for(;_0x227b6a<_0x295250['length'];){const _0x4d76ff=_0x295250[_0x227b6a],_0x34fd5a=_0x295250[_0x227b6a+0x1];_0x4ad699||(_0x4ad699=_0x14d054['createPositionBefore'](_0x4d76ff)),co(_0x14d054,_0x4d76ff,_0x34fd5a)||(_0x3b0288['push'](_0x14d054['createRange'](_0x4ad699,_0x312e8e['isObject'](_0x4d76ff)?_0x14d054['createPositionAfter'](_0x4d76ff):_0x14d054['createPositionAt'](_0x4d76ff,'end'))),_0x4ad699=null),_0x227b6a++;}return _0x3b0288;}function co(_0x1a436a,_0x2e9948,_0x54fa51){if(!_0x54fa51)return!0x1;const _0x4ac25d=_0x1a436a['createPositionAfter'](_0x2e9948),_0x5c9d4c=_0x1a436a['createPositionBefore'](_0x54fa51);return _0x4ac25d['isTouching'](_0x5c9d4c);}function rs(_0x321b03,_0x35bb19,_0x3ed0a9){for(;_0x3ed0a9['length'];){const _0x229c78=_0x3ed0a9['splice'](0x0,0x64);_0x321b03['change'](()=>{for(const _0x5f593e of _0x229c78)_0x5f593e['isInContent']&&_0x35bb19['execute'](_0x5f593e['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x856c78,_0x2237b9,_0x38b60e){super(_0x856c78),this['_command']=_0x2237b9,this['_suggestions']=_0x38b60e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xec9e8b=Array['from'](this['_suggestions']['values']())['some'](_0x30351a=>_0x30351a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xec9e8b;}['execute'](){const _0x5ee98c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3fdf07 of _0x5ee98c){const _0x5a6bdd=_0x3fdf07['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a6bdd))return;}rs(this['editor']['model'],this['_command'],_0x5ee98c);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3708de,_0x1692e1,_0x30449d){super(_0x3708de),this['_command']=_0x1692e1,this['_suggestions']=_0x30449d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fea01=this['editor']['model']['document']['selection'],_0x36891c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xf92f2e,_0x114f96){const _0x3cb9b5=Array['from'](_0xf92f2e['getRanges']()),_0x33f6ff=new Set();for(const _0x5eedd3 of _0x114f96)if(_0x5eedd3['isInContent']){for(const _0x544be0 of _0x3cb9b5)for(const _0x43efaf of _0x5eedd3['getRanges']())(_0x544be0['isIntersecting'](_0x43efaf)||_0xf92f2e['isCollapsed']&&!_0x5eedd3['isMultiRange']&&_0x5eedd3['next']&&_0x43efaf['end']['isTouching'](_0x544be0['start']))&&_0x33f6ff['add'](_0x5eedd3);}return _0x33f6ff;}(_0x4fea01,_0x36891c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5231c5=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4d9e62 of _0x5231c5){const _0x208be8=_0x4d9e62['getRanges']();if(!this['editor']['model']['canEditAt'](_0x208be8))return;}rs(this['editor']['model'],this['_command'],_0x5231c5);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4fa93a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c46f3,_0x1dc7f1){super(),this['id']=_0x1dc7f1['id'],this['type']=_0x1dc7f1['type'],this['subType']=_0x1dc7f1['subType']||null,this['author']=_0x1dc7f1['author'],this['creator']=_0x1dc7f1['creator']||_0x1dc7f1['author'],this['isExternal']=Boolean(_0x1dc7f1['attributes']&&_0x1dc7f1['attributes']['@external']),this['data']=null,this['_model']=_0x4c46f3,this['_onAccept']=_0x1dc7f1['onAccept'],this['_onDiscard']=_0x1dc7f1['onDiscard'],this['_onAttributesChange']=_0x1dc7f1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1dc7f1['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 _0x48b776=this;for(;_0x48b776['previous'];)_0x48b776=_0x48b776['previous'];return _0x48b776;}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'](_0x3f7d45){this['_markerNames']['add'](_0x3f7d45);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1cc20f=>this['_model']['markers']['get'](_0x1cc20f))['filter'](_0x3ac307=>_0x3ac307);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x158be7=>{for(const _0x5b2606 of this['getMarkers']())_0x158be7['removeMarker'](_0x5b2606);}),this['_markerNames']['clear']();}['removeMarker'](_0x511c4e){this['_model']['change'](_0x5b3986=>{_0x5b3986['removeMarker'](_0x511c4e);}),this['_markerNames']['delete'](_0x511c4e);}['addRange'](_0x2fd1fe){const _0xc486be='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xc486be),this['_model']['change'](_0x48274d=>{_0x48274d['addMarker'](_0xc486be,{'range':_0x2fd1fe,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x343c1c){for(const _0xffa3d3 of this['getRanges']())if(_0xffa3d3['isIntersecting'](_0x343c1c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3376ca=>_0x3376ca['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x24eae2,_0x461d2f)=>[..._0x24eae2,..._0x461d2f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x952cac=this['getRanges']();if(0x1!=_0x952cac['length'])return null;const _0x15fb24=_0x952cac[0x0],_0x370937=_0x15fb24['start']['nodeAfter'],_0xfefc6b=_0x15fb24['end']['nodeBefore'];return _0x370937 instanceof _0x45d00e?_0x370937!=_0xfefc6b?null:_0x370937: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 _0x1de387=[];let _0x2bc3ea=this['head'];for(;_0x2bc3ea;)_0x1de387['push'](_0x2bc3ea),_0x2bc3ea=_0x2bc3ea['next'];return _0x1de387;}['setAttribute'](_0x133dee,_0x3b7100){const _0x201d1f=_0xaa375d(this['attributes']);_0x472c2c(_0x201d1f,_0x133dee,_0x3b7100),_0x5767df(_0x201d1f,this['attributes'])||(this['attributes']=_0x201d1f,this['_onAttributesChange'](_0x201d1f));}['removeAttribute'](_0x3e7a24){const _0x2906ae=_0xaa375d(this['attributes']);_0x4ae41d(_0x2906ae,_0x3e7a24),_0x5767df(_0x2906ae,this['attributes'])||(this['attributes']=_0x2906ae,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 _0x336056()['substr'](0x1,0x5);}}function o(_0x459620,_0xf3516e,_0x722ef1){const t=_0x459620['t'];switch(_0xf3516e){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',_0x722ef1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x722ef1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x722ef1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x722ef1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x722ef1);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',_0x722ef1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x722ef1);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',_0x722ef1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x722ef1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x722ef1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x722ef1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x722ef1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x722ef1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x722ef1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x722ef1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x722ef1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x722ef1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x722ef1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x722ef1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x722ef1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x722ef1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x722ef1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x722ef1);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'},_0x722ef1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x722ef1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x722ef1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x722ef1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x722ef1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x722ef1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x722ef1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x722ef1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x722ef1);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'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x722ef1);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'},_0x722ef1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x722ef1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x722ef1);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'},_0x722ef1);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'},_0x722ef1);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 _0xf3516e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x45476b,_0x218ccd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x45476b,this['_locale']=_0x218ccd;}['getDescriptions'](_0x2635e7){const _0x2ac94e=[],_0xc62de3=new Set(),_0x26561f=new Set();for(let _0xfd3273=0x0;_0xfd3273<_0x2635e7['length'];_0xfd3273++){const _0x3004dc=_0x2635e7[_0xfd3273];if(!_0x3004dc['isInContent'])continue;const _0x1e83c6=this['_handleCustomCallbackDescription'](_0x3004dc);if(_0x1e83c6){if(null!=_0x3004dc['subType']){if(_0xc62de3['has'](_0x3004dc['subType']))continue;_0xc62de3['add'](_0x3004dc['subType']);}_0x2ac94e['push'](_0x1e83c6);}else{if('attribute'!=_0x3004dc['type'])'insertion'!=_0x3004dc['type']&&'deletion'!=_0x3004dc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2ac94e,_0x3004dc,_0x2635e7[_0xfd3273+0x1]);else{const _0x2a4fec=_0x3004dc['data']['key'];if(_0x26561f['has'](_0x2a4fec))continue;_0x26561f['add'](_0x3004dc['data']['key']),_0x2a4fec==m?this['_handleRenameSuggestionDescription'](_0x2ac94e,_0x3004dc):this['_handleAttributeSuggestionDescription'](_0x2ac94e,_0x3004dc);}}}return this['_resolveDescriptionItems'](_0x2ac94e);}['registerDescriptionCallback'](_0xfd5bc1){this['_customCallbacks']['push'](_0xfd5bc1);}['registerElementLabel'](_0x240bbd,_0x5c5bdd,_0x3a3ba0=_0x1e623f['normal']){'function'==typeof _0x240bbd?_0x2bfdb8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x240bbd,'label':_0x5c5bdd,'priority':_0x3a3ba0}):this['_itemLabels']['set'](_0x240bbd,_0x5c5bdd);}['registerAttributeLabel'](_0x2957af,_0x34ff2d){this['_attributeLabels']['set'](_0x2957af,_0x34ff2d);}['getItemLabel'](_0x25ac0d,_0x3e42c1=0x1){let _0x34c748;for(const _0x2584ba of this['_itemLabelsCallbacks'])if(_0x2584ba['matchingCallback'](_0x25ac0d)){_0x34c748=_0x2584ba['label'];break;}return _0x34c748||(_0x34c748=this['_itemLabels']['get'](_0x25ac0d['name'])),_0x34c748?_0x34c748(_0x3e42c1):0x1!==_0x3e42c1?_0x3e42c1+'\x20'+_0x25ac0d['name']+'s':''+_0x25ac0d['name'];}['_addDescriptionItems'](_0x2fde3f,_0x25ef05){const _0xee5f83=_0x25ef05['getFirstRange']()['getWalker'](),_0x2bd770='insertion'==_0x25ef05['type']?'add':'remove';for(const _0x4a49ae of _0xee5f83){const _0x5d9f53=_0x4a49ae['item'],_0x684cd4=_0x2fde3f[_0x2fde3f['length']-0x1];if(_0x5d9f53['is']('$textProxy'))_0x684cd4&&_0x684cd4['type']['indexOf']('Container')>-0x1&&_0x2fde3f['pop'](),_0x684cd4&&'text'==_0x684cd4['type']?_0x684cd4[_0x2bd770]+=_0x5d9f53['data']:_0x2fde3f['push']({'type':'text','add':'add'==_0x2bd770?_0x5d9f53['data']:'','remove':'remove'==_0x2bd770?_0x5d9f53['data']:''});else{if(this['_schema']['isObject'](_0x5d9f53)){const _0x2573cd=_0x5d9f53;if(_0x684cd4&&_0x684cd4['type']['indexOf']('Container')>-0x1&&_0x2fde3f['pop'](),'elementEnd'==_0x4a49ae['type'])continue;_0x684cd4&&_0x684cd4['type']==_0x2bd770+'Object'&&_0x684cd4['element']['name']==_0x2573cd['name']?_0x684cd4['quantity']++:_0x2fde3f['push']({'type':_0x2bd770+'Object','element':_0x2573cd,'quantity':0x1}),_0xee5f83['skip'](_0x139a0d=>!('elementEnd'==_0x139a0d['type']&&_0x139a0d['item']==_0x5d9f53));}else{if(this['_schema']['checkChild'](_0x5d9f53,'$text')||_0x5d9f53['is']('element','softBreak')){const _0x362a4e=_0x5d9f53;if('add'==_0x2bd770&&'elementStart'==_0x4a49ae['type']||'remove'==_0x2bd770&&'elementEnd'==_0x4a49ae['type'])continue;if(_0x684cd4&&-0x1==_0x684cd4['type']['indexOf']('Container')){'text'==_0x684cd4['type']&&(_0x684cd4[_0x2bd770]+='\x0a');continue;}let _0x15745a;if(_0x15745a='add'==_0x2bd770?_0x362a4e['nextSibling']&&!this['_schema']['isObject'](_0x362a4e['nextSibling'])?_0x362a4e['nextSibling']:null:_0x362a4e['previousSibling']&&!this['_schema']['isObject'](_0x362a4e['previousSibling'])?_0x362a4e['previousSibling']:null,_0x362a4e['isEmpty']||_0x15745a&&_0x15745a['isEmpty']){const _0x223bcf=_0x15745a&&_0x15745a['isEmpty']?_0x15745a:_0x362a4e;_0x684cd4&&_0x684cd4['type']==_0x2bd770+'EmptyContainer'&&_0x684cd4['element']['name']==_0x223bcf['name']?_0x684cd4['quantity']++:_0x2fde3f['push']({'type':_0x2bd770+'EmptyContainer','element':_0x223bcf,'quantity':0x1});}else _0x2fde3f['push']({'type':_0x2bd770+'Container','element':_0x362a4e});}}}}}['_resolveDescriptionItems'](_0x5eafd9){const _0x37e28c=this['_locale'],_0x36d45b=[],_0x2833c3=[],_0x3b32f0=[];for(const _0x398a4d of _0x5eafd9)switch(_0x398a4d['type']){case'text':if(_0x398a4d['add']=_0x398a4d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x398a4d['remove']=_0x398a4d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x398a4d['add']&&''!=_0x398a4d['remove']){_0x36d45b['push']({'type':'replace','content':o(_0x37e28c,'REPLACE_TEXT',['\x22'+_0x398a4d['remove']+'\x22','\x22'+_0x398a4d['add']+'\x22'])});continue;}if(null!=_0x398a4d['add']['match'](/^ +$/)){_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Insert:*\x20%0',o(_0x37e28c,'ELEMENT_SPACE',_0x398a4d['add']['length']))});continue;}if(null!=_0x398a4d['remove']['match'](/^ +$/)){_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Remove:*\x20%0',o(_0x37e28c,'ELEMENT_SPACE',_0x398a4d['remove']['length']))});continue;}if(''!=_0x398a4d['add']){_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Insert:*\x20%0','\x22'+_0x398a4d['add']+'\x22')});continue;}_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Remove:*\x20%0','\x22'+_0x398a4d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Insert:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Remove:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'addContainer':_0x36d45b['push']({'type':'insertion','content':o(_0x37e28c,'*Split:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'removeContainer':_0x36d45b['push']({'type':'deletion','content':o(_0x37e28c,'*Merge:*\x20%0',this['getItemLabel'](_0x398a4d['element'],_0x398a4d['quantity']))});continue;case'addFormat':_0x2833c3['push'](_0x398a4d['key']);continue;case'removeFormat':_0x3b32f0['push'](_0x398a4d['key']);continue;default:_0x36d45b['push'](_0x398a4d);}if(_0x2833c3['length']){const _0x4471ca=_0x2833c3['map'](_0xe8692e=>this['_attributeLabels']['has'](_0xe8692e)?this['_attributeLabels']['get'](_0xe8692e):_0xe8692e)['join'](',\x20');_0x36d45b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4471ca)});}if(_0x3b32f0['length']){const _0x351521=_0x3b32f0['map'](_0x4e831c=>this['_attributeLabels']['has'](_0x4e831c)?this['_attributeLabels']['get'](_0x4e831c):_0x4e831c)['join'](',\x20');_0x36d45b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x351521)});}return _0x36d45b;}['_handleCustomCallbackDescription'](_0x5dae92){for(const _0x103fa6 of this['_customCallbacks']){const _0xc29c8b=_0x103fa6(_0x5dae92);if(_0xc29c8b&&'type'in _0xc29c8b)return _0xc29c8b;}}['_handleAttributeSuggestionDescription'](_0xfab257,_0x1e7f17){const _0x1eae95=_0x1e7f17['data'],_0x1f4690=void 0x0===_0x1eae95['newValue']?'removeFormat':'addFormat';_0xfab257['push']({'type':_0x1f4690,'key':_0x1eae95['key']});}['_handleRenameSuggestionDescription'](_0x55b078,_0x2e557b){_0x55b078['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e557b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x30017d,_0x5a1364,_0x4a6182){if(this['_addDescriptionItems'](_0x30017d,_0x5a1364),_0x4a6182&&_0x4a6182['getFirstRange']()&&!_0x5a1364['getFirstRange']()['end']['isEqual'](_0x4a6182['getFirstRange']()['start'])){const _0x28599f=_0x30017d[_0x30017d['length']-0x1],_0x281416='insertion'==_0x5a1364['type']?'add':'remove';_0x28599f&&'text'==_0x28599f['type']&&(_0x28599f[_0x281416]+='\x0a');}}}class E extends _0x470f93{['afterInit'](){const _0x2448c1=this['editor'],_0x3c10b7=_0x2448c1['plugins']['get']('TrackChangesEditing');_0x2448c1['commands']['get']('showAIAssistant')&&_0x3c10b7['enableCommand']('showAIAssistant');}}class V extends _0x470f93{['afterInit'](){const _0x175e3d=this['editor'],_0x5909db=_0x175e3d['locale'];if(!_0x175e3d['plugins']['has']('AlignmentEditing'))return;const _0x26d348=_0x175e3d['plugins']['get']('TrackChangesEditing');_0x26d348['enableDefaultAttributesIntegration']('alignment'),_0x26d348['registerBlockAttribute']('alignment'),_0x26d348['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5909db,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9948=this['editor'],_0x489cb5=_0x4c9948['locale'];_0x4c9948['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8ab1=>{if('formatBlock'!=_0x2a8ab1['type'])return;const {data:_0x462e66}=_0x2a8ab1;if(_0x462e66&&'alignment'==_0x462e66['commandName']){const _0x5be438=_0x462e66['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x489cb5,'*Format:*\x20%0',function(_0x4d086a){switch(_0x4d086a){case'left':return o(_0x489cb5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x489cb5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x489cb5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x489cb5,'FORMAT_JUSTIFY_TEXT');}}(_0x5be438))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x470f93{['afterInit'](){const _0x1ed874=this['editor'],_0x2a33f3=_0x1ed874['plugins']['get']('TrackChangesEditing'),_0x44ad4e=_0x1ed874['locale'];for(const _0x21873d of ti){if(!_0x1ed874['plugins']['has'](_0x21873d))continue;const _0x3d8d2c=_0x21873d['slice'](0x0,-0x7)['toLowerCase'](),_0x53127f='FORMAT_'+_0x3d8d2c['toUpperCase']();_0x2a33f3['enableDefaultAttributesIntegration'](_0x3d8d2c),_0x2a33f3['registerInlineAttribute'](_0x3d8d2c),_0x2a33f3['descriptionFactory']['registerAttributeLabel'](_0x3d8d2c,o(_0x44ad4e,_0x53127f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ad61=this['editor'],_0x470d63=_0x50ad61['locale'],_0x228078=_0x50ad61['plugins']['get']('TrackChangesEditing');function _0x166ef5(_0x2ffa8c,_0x189d61){_0x228078['descriptionFactory']['registerDescriptionCallback'](_0x58d58c=>{if('formatInline'!=_0x58d58c['type'])return;const {data:_0x2d4fb7}=_0x58d58c;return _0x2d4fb7&&_0x2d4fb7['commandName']===_0x2ffa8c?_0x2d4fb7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x470d63,'*Format:*\x20%0',_0x189d61)}:{'type':'format','content':o(_0x470d63,'*Remove\x20format:*\x20%0',_0x189d61)}:void 0x0;});}_0x166ef5('bold',o(_0x470d63,'FORMAT_BOLD')),_0x166ef5('italic',o(_0x470d63,'FORMAT_ITALIC')),_0x166ef5('underline',o(_0x470d63,'FORMAT_UNDERLINE')),_0x166ef5('code',o(_0x470d63,'FORMAT_CODE')),_0x166ef5('strikethrough',o(_0x470d63,'FORMAT_STRIKETHROUGH')),_0x166ef5('subscript',o(_0x470d63,'FORMAT_SUBSCRIPT')),_0x166ef5('superscript',o(_0x470d63,'FORMAT_SUPERSCRIPT'));}}class O extends _0x470f93{['afterInit'](){const _0x5bc0d4=this['editor'],_0x2e9e4e=_0x5bc0d4['locale'];if(!_0x5bc0d4['plugins']['has']('BlockQuoteEditing'))return;const _0x1ffcd5=_0x5bc0d4['plugins']['get']('TrackChangesEditing'),_0x5a4e7f=this['editor']['commands']['get']('blockQuote');_0x1ffcd5['enableCommand']('blockQuote',(_0x487587,_0x509333={})=>{const _0x58e28b=this['editor']['model']['document']['selection'],_0x254ea9=_0x509333&&void 0x0!==_0x509333['forceValue']?_0x509333['forceValue']:!_0x5a4e7f['value'];let _0x2788c0=[];if(_0x254ea9){const _0x50efa2=Array['from'](_0x58e28b['getSelectedBlocks']())['filter'](_0x3e4693=>oo(_0x3e4693)||function(_0x2bdb57,_0x353d49){const _0x25f05a=_0x353d49['checkChild'](_0x2bdb57['parent'],'blockQuote'),_0x17e5dc=_0x353d49['checkChild'](['$root','blockQuote'],_0x2bdb57);return _0x25f05a&&_0x17e5dc;}(_0x3e4693,this['editor']['model']['schema']));_0x2788c0=to(_0x50efa2,_0x5bc0d4['model']);}else{const _0x3081ea=Array['from'](_0x58e28b['getSelectedBlocks']())['filter'](_0xc30cba=>oo(_0xc30cba));_0x2788c0=to(_0x3081ea,_0x5bc0d4['model']);}_0x5bc0d4['model']['change'](()=>{for(const _0x6d3a0c of _0x2788c0)_0x1ffcd5['markBlockFormat'](_0x6d3a0c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x254ea9}]});});}),_0x1ffcd5['descriptionFactory']['registerDescriptionCallback'](_0xabc8ed=>{const {data:_0x18abee}=_0xabc8ed;if(_0x18abee&&'blockQuote'==_0x18abee['commandName']){const _0x1f8660=o(_0x2e9e4e,'ELEMENT_BLOCK_QUOTE');return _0x18abee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e9e4e,'*Set\x20format:*\x20%0',_0x1f8660)}:{'type':'format','content':o(_0x2e9e4e,'*Remove\x20format:*\x20%0',_0x1f8660)};}});}}function oo(_0x3e23cd){return'blockQuote'==_0x3e23cd['parent']['name'];}class G extends _0x470f93{['afterInit'](){const _0xe830e=this['editor'];_0xe830e['plugins']['has']('CaseChange')&&(_0xe830e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe830e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe830e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x470f93{['afterInit'](){const _0x21e1e3=this['editor'];_0x21e1e3['commands']['get']('ckbox')&&_0x21e1e3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x470f93{['afterInit'](){const _0x2ab541=this['editor'];if(!_0x2ab541['plugins']['has']('CodeBlock'))return;const _0x54b07a=_0x2ab541['plugins']['get']('TrackChangesEditing'),_0x569959=_0x2ab541['locale'],_0x5910b4=_0x2ab541['config']['get']('codeBlock')['languages'],_0x324e17=_0x2ab541['commands']['get']('codeBlock');_0x54b07a['enableCommand']('indentCodeBlock'),_0x54b07a['enableCommand']('outdentCodeBlock'),_0x54b07a['enableCommand']('codeBlock',(_0x2c1285,_0x14463a={})=>{const _0x18f68f=_0x2ab541['model'],_0x13491e=_0x2ab541['model']['document']['selection'],_0x4cf16f=_0x14463a&&void 0x0!==_0x14463a['forceValue']?_0x14463a['forceValue']:!_0x324e17['value'];let _0x440d99;_0x14463a['language']||(_0x14463a['language']=_0x5910b4[0x0]['language']),_0x440d99=_0x4cf16f?Array['from'](_0x13491e['getSelectedBlocks']())['filter'](_0x27f747=>eo(_0x27f747)||function(_0x468cf2,_0x483755){if(_0x468cf2['is']('rootElement')||_0x483755['isLimit'](_0x468cf2))return!0x1;return _0x483755['checkChild'](_0x468cf2['parent'],'codeBlock');}(_0x27f747,_0x18f68f['schema'])):Array['from'](_0x13491e['getSelectedBlocks']())['filter'](_0x1eb475=>eo(_0x1eb475));const _0x3031d9=to(_0x440d99,_0x18f68f);_0x18f68f['change'](()=>{for(const _0x4dffea of _0x3031d9)_0x54b07a['markBlockFormat'](_0x4dffea,{'commandName':'codeBlock','commandParams':[{..._0x14463a,'forceValue':_0x4cf16f}],'formatGroupId':'blockName'});});}),(_0x54b07a['descriptionFactory']['registerElementLabel']('codeBlock',_0x4828cc=>o(_0x569959,'ELEMENT_CODE_BLOCK',_0x4828cc)),_0x54b07a['descriptionFactory']['registerDescriptionCallback'](_0x3f131f=>{if('formatBlock'!=_0x3f131f['type'])return;const _0x42d502=_0x569959['t'],{data:_0x11758c}=_0x3f131f;if(!_0x11758c||'codeBlock'!=_0x11758c['commandName'])return;const _0x30fb0f=_0x11758c['commandParams'][0x0]['language'],_0x2cf160=_0x42d502(_0x5910b4['find'](_0x424926=>_0x424926['language']===_0x30fb0f)['label'])['toLowerCase']();return _0x11758c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x569959,'*Set\x20format:*\x20%0',o(_0x569959,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2cf160+')')}:{'type':'format','content':o(_0x569959,'*Remove\x20format:*\x20%0',o(_0x569959,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x162888){return'codeBlock'==_0x162888['name'];}class H extends _0x470f93{['afterInit'](){const _0x468361=this['editor'];if(!_0x468361['plugins']['has']('CommentsEditing'))return;_0x468361['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xdca29a,_0x3c23d5,_0x2fda84){const _0xa35557=[];for(const _0x2a7f14 of _0x3c23d5['getItems']())_0x2a7f14['hasAttribute'](_0xdca29a)&&_0xa35557['push'](_0x2fda84['createRangeOn'](_0x2a7f14));return _0xa35557;}function _e(_0x25fb56,_0x55947f,{showActiveMarker:_0x474da1=!0x0}={}){const _0x2e407e=_0x25fb56['plugins']['get']('TrackChangesEditing');return(_0x11d13b,_0x422775,_0x44eb92)=>{if(!_0x44eb92['consumable']['test'](_0x422775['markerRange'],_0x11d13b['name']))return;const _0x526dbb=_0x422775['markerRange']['getWalker'](),_0x64154c=_0x422775['markerRange']['start'],_0x242733=_0x25fb56['model']['schema'];let _0x5e7e1d=null,_0x543267=null,_0x5252dc=!0x1,_0x8c49e9=!0x1;for(const _0x2fbae5 of _0x526dbb){const _0x9785e6=_0x2fbae5['item'];_0x5252dc=_0x5252dc||_0x242733['isContent'](_0x9785e6);const _0x31c7b4=_0x44eb92['mapper']['toViewElement'](_0x9785e6);if(_0x31c7b4&&_0x31c7b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fbae5['type']&&(_0x242733['isBlock'](_0x9785e6)&&!_0x242733['isLimit'](_0x9785e6)&&(_0x9785e6['nextSibling']||_0x64154c['isAtEnd']?_0x5e7e1d&&_0x5e7e1d['parent']==_0x9785e6||(_0x5e7e1d=_0x9785e6,_0x1238bf(_0x2fbae5['previousPosition']),_0x8c49e9=!0x0):_0x543267=_0x543267||_0x2fbae5['previousPosition']));}function _0x1238bf(_0x164dbf){const _0x12e959=_0x44eb92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55947f}),_0x1d7c14=_0x44eb92['mapper']['toViewPosition'](_0x164dbf);_0x474da1&&_0x2e407e['activeMarkers']['includes'](_0x422775['markerName'])&&_0x44eb92['writer']['addClass']('ck-suggestion-marker--active',_0x12e959),_0x44eb92['writer']['insert'](_0x1d7c14,_0x12e959),_0x44eb92['mapper']['bindElementToMarker'](_0x12e959,_0x422775['markerName']);}_0x5252dc||_0x8c49e9||!_0x543267||_0x1238bf(_0x543267);};}class q extends _0x470f93{static get['requires'](){return[_0x11ceb6];}['init'](){const _0x3bbc5d=this['editor'],_0x1343c8=_0x3bbc5d['plugins']['get']('TrackChangesEditing');_0x1343c8['enableCommand']('delete');const _0x34ffb4=_0x3bbc5d['commands']['get']('deleteForward');_0x1343c8['enableCommand']('deleteForward',(_0x37766b,_0x15548d={})=>{const _0x1397f8=_0x3bbc5d['model']['createSelection'](_0x3bbc5d['model']['document']['selection']);_0x1397f8['isCollapsed']&&_0x3bbc5d['model']['modifySelection'](_0x1397f8,{'direction':'forward','unit':_0x15548d['unit']});const _0x25b33c=_0x1397f8['getFirstRange'](),_0x4745ae=_0x424176['fromRange'](_0x25b33c);let _0x51cd17;_0x37766b(_0x15548d),_0x51cd17='$graveyard'==_0x4745ae['root']['rootName']?_0x3bbc5d['model']['createRange'](_0x25b33c['start']):_0x3bbc5d['model']['createRange'](_0x4745ae['start'],_0x4745ae['end']),_0x4745ae['detach'](),_0x3bbc5d['model']['enqueueChange'](_0x34ffb4['buffer']['batch'],_0x36041b=>{_0x34ffb4['buffer']['lock'](),_0x36041b['setSelection'](_0x36041b['createRange'](_0x51cd17['end'])),_0x34ffb4['buffer']['unlock']();});}),_0x3bbc5d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3bbc5d,'merge'),{'priority':'high'}),_0x3bbc5d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51c674,_0x393ba,_0x554e4a)=>{_0x554e4a['options']['showSuggestionHighlights']&&_e(_0x3bbc5d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51c674,_0x393ba,_0x554e4a);},{'priority':'high'}),_0x3bbc5d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4888d1,_0x8d3b69,_0x521eeb)=>{const _0x1ae2ff=_0x521eeb['mapper']['markerNameToElements'](_0x8d3b69['markerName']);if(_0x1ae2ff){for(const _0x24e64d of _0x1ae2ff)_0x24e64d['is']('uiElement')&&(_0x521eeb['mapper']['unbindElementFromMarkerName'](_0x24e64d,_0x8d3b69['markerName']),_0x521eeb['writer']['remove'](_0x24e64d));}},{'priority':'high'});}}class z extends _0x470f93{['afterInit'](){const _0x44bf18=this['editor'];if(!_0x44bf18['plugins']['has']('ListEditing'))return;const _0xbe89e3=_0x44bf18['locale'],_0x42cb2a=_0x44bf18['plugins']['get']('TrackChangesEditing'),_0x14d3ce=_0x44bf18['plugins']['has']('TodoListEditing'),_0x3af560=!!_0x44bf18['config']['get']('list.multiBlock');function _0x2134e8(_0x1da13f){return{'type':'format','content':''+o(_0xbe89e3,'*Set\x20format:*\x20%0',_0x1da13f)};}function _0x299422(_0x5808fe){return{'type':'format','content':''+o(_0xbe89e3,'*Remove\x20format:*\x20%0',_0x5808fe)};}_0x42cb2a['enableDefaultAttributesIntegration']('numberedList'),_0x42cb2a['enableDefaultAttributesIntegration']('bulletedList'),_0x42cb2a['enableDefaultAttributesIntegration']('customNumberedList'),_0x42cb2a['enableDefaultAttributesIntegration']('customBulletedList'),_0x42cb2a['enableDefaultAttributesIntegration']('indentList'),_0x42cb2a['enableDefaultAttributesIntegration']('outdentList'),_0x42cb2a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x42cb2a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x42cb2a['registerBlockAttribute']('listItemId'),_0x42cb2a['registerBlockAttribute']('listType'),_0x42cb2a['registerBlockAttribute']('listIndent'),_0x3af560&&(_0x42cb2a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x42cb2a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14d3ce&&(_0x42cb2a['enableDefaultAttributesIntegration']('todoList'),_0x42cb2a['enableDefaultAttributesIntegration']('checkTodoList'),_0x42cb2a['registerBlockAttribute']('todoListChecked'),_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x547d66=>{const {data:_0x5323a9}=_0x547d66;if(_0x5323a9&&'todoListChecked'==_0x5323a9['key'])return{'type':'format','content':_0x5323a9['newValue']?o(_0xbe89e3,'*Check\x20item*'):o(_0xbe89e3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x41015b=>{if(_0x41015b['batch']['isUndo'])return!0x1;let _0xb996ba=!0x1;const _0x381a10=_0x42cb2a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f3dbb=>'todoListChecked'===_0x42cb2a['_getAttributeKey'](_0x4f3dbb));for(const _0xee3d85 of _0x381a10){'todo'!=_0xee3d85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x42cb2a['_findSuggestions'](_0xee3d85['getFirstRange'](),'attribute')['find'](_0x43b392=>'listType'===_0x42cb2a['_getAttributeKey'](_0x43b392['suggestion']))||(_0x41015b['removeMarker'](_0xee3d85['getFirstMarker']()),_0xb996ba=!0x0));}return _0xb996ba;})),_0x42cb2a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xbe89e3,'FORMAT_INDENT'));const _0x406d7d={'type':'format','content':''};_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x3d81f6=>{const {data:_0x8fdec9}=_0x3d81f6;if(!_0x8fdec9||'listType'!=_0x8fdec9['key'])return;let _0x169b97=_0x3d81f6['head'];for(;_0x169b97;){if(_0x169b97['data']&&(('listStyle'==_0x169b97['data']['key']||'listMarkerStyle'==_0x169b97['data']['key'])&&(_0x169b97['data']['newValue']&&'default'!=_0x169b97['data']['newValue']||'default'!=_0x169b97['data']['oldValue']&&!_0x8fdec9['newValue'])||!_0x3af560&&_0x169b97['data']['key']==m))return _0x406d7d;_0x169b97=_0x169b97['next'];}if(null==_0x8fdec9['newValue'])switch(_0x8fdec9['oldValue']){case'bulleted':return _0x299422(o(_0xbe89e3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x299422(o(_0xbe89e3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x299422(o(_0xbe89e3,'ELEMENT_TODO_LIST'));}switch(_0x8fdec9['newValue']){case'bulleted':return _0x2134e8(o(_0xbe89e3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2134e8(o(_0xbe89e3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2134e8(o(_0xbe89e3,'ELEMENT_TODO_LIST'));}}),_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x3b1ab7=>{const {data:_0x30edee}=_0x3b1ab7;if(_0x30edee&&'listIndent'==_0x30edee['key'])return null==_0x30edee['newValue']||null==_0x30edee['oldValue']&&0x0==_0x30edee['newValue']?_0x406d7d:void 0x0;}),_0x42cb2a['descriptionFactory']['registerDescriptionCallback'](_0x3cc38c=>{if('attribute'!=_0x3cc38c['type'])return;const {data:_0x594f61}=_0x3cc38c;if(!_0x594f61||'listItemId'!=_0x594f61['key'])return;const _0x1973f3=le(_0x3cc38c);return'newValue'==_0x1973f3?{'type':'format','content':o(_0xbe89e3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1973f3?{'type':'format','content':o(_0xbe89e3,'*Split:*\x20list\x20item')}:_0x406d7d;}),_0x44bf18['model']['document']['registerPostFixer'](_0x373931=>this['listItemIdFixer'](_0x373931)),_0x44bf18['model']['document']['registerPostFixer'](_0x1dc964=>this['noTrackChangesFixer'](_0x1dc964)),_0x44bf18['model']['document']['registerPostFixer'](_0x5f01c4=>this['assureChains'](_0x5f01c4)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1e7b3e){if(_0x1e7b3e['batch']['isUndo']||!_0x1e7b3e['batch']['isLocal'])return!0x1;let _0x9fb5e9=!0x1;const _0x31634=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c961e=>_0x3c961e['data']&&'listItemId'==_0x3c961e['data']['key'])['filter'](_0x3f573e=>_0x3f573e['data']['newValue']&&_0x3f573e['data']['oldValue']);for(const _0x32f3de of _0x31634)le(_0x32f3de)||(_0x1e7b3e['removeMarker'](_0x32f3de['getFirstMarker']()),_0x9fb5e9=!0x0);return _0x9fb5e9;}['noTrackChangesFixer'](_0x5f2adc){if(_0x5f2adc['batch']['isUndo']||!_0x5f2adc['batch']['isLocal'])return!0x1;const _0x27fade=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27fade['trackChangesCommand']['value'])return!0x1;let _0x1a86d4=!0x1;const _0x170ea6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xdf554d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10722d=>'attribute'==_0x10722d['type'])['filter'](_0x541ae7=>_0x170ea6['includes'](_0x541ae7['attributeKey']));if(0x0==_0xdf554d['length'])return _0x1a86d4;for(const _0x47b2ff of _0xdf554d){const _0x5d2b90=_0x27fade['_findSuggestions'](_0x47b2ff['range'],'attribute')['filter'](_0x5ad281=>!_0x5ad281['meta']['isNextTo'])['map'](_0x3e175e=>_0x3e175e['suggestion'])['filter'](_0x1e81c8=>{const _0x51bb9a=_0x27fade['_getAttributeKey'](_0x1e81c8);return _0x170ea6['includes'](_0x51bb9a);});if(_0x5d2b90['length']){for(const _0x33b31e of _0x5d2b90)_0x5f2adc['removeMarker'](_0x33b31e['getFirstMarker']());_0x1a86d4=!0x0;}}return _0x1a86d4;}['assureChains'](_0x4c499d){if(_0x4c499d['batch']['isUndo']||!_0x4c499d['batch']['isLocal'])return!0x1;const _0x381aa8=this['editor']['plugins']['get']('TrackChangesEditing');let _0x214905=!0x1;const _0x58100e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1538fc of _0x381aa8['getSuggestions']({'skipNotAttached':!0x0})){const _0x18e701=_0x381aa8['_findSuggestions'](_0x1538fc['getFirstRange'](),'attribute')['map'](_0x3a84d5=>_0x3a84d5['suggestion'])['filter'](_0x3d28dc=>_0x3d28dc['data']&&_0x58100e['includes'](_0x3d28dc['data']['key']));if(!_0x18e701['length'])continue;const _0x141ca9=_0x18e701[0x0]['head']['attributes']['groupId'];if(!_0x18e701['every'](_0x456d52=>_0x456d52['attributes']['groupId']===_0x141ca9)){for(const _0x16d086 of _0x18e701)_0x375ebf(_0x16d086,_0x141ca9)&&(_0x214905=!0x0);}}return _0x214905;function _0xbcf8cf(_0x187f66,_0x3fecbe){for(const _0x42c5bc of _0x381aa8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x295730=>'attribute'==_0x295730['type']&&_0x295730['attributes']['groupId']==_0x187f66))_0x42c5bc['setAttribute']('groupId',_0x3fecbe);}function _0x375ebf(_0x3a7071,_0x23a36a){let _0x196a30=_0x3a7071['head'],_0x21708e=!0x1;for(;_0x196a30;)_0x196a30['attributes']['groupId']!=_0x23a36a&&(_0xbcf8cf(_0x196a30['attributes']['groupId'],_0x23a36a),_0x196a30['setAttribute']('groupId',_0x23a36a),_0x21708e=!0x0),_0x196a30=_0x196a30['next'];return _0x21708e;}}['_supportLegacySuggestions'](){const _0x1bab41=this['editor'],_0x11c949=_0x1bab41['locale'],_0xc93e5e=_0x1bab41['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc93e5e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xc60e19,_0x1568e4){const _0x30c2a8=[];for(let _0x4f45bd of _0xc60e19)_0x4f45bd['start']['nodeAfter']===_0x4f45bd['end']['parent']&&(_0x4f45bd=_0x1bab41['model']['createRange'](_0x1bab41['model']['createPositionAt'](_0x4f45bd['start']['nodeAfter'],0x0))),_0x30c2a8['push'](_0x4f45bd);_0x1bab41['model']['change'](_0x7c8dbe=>{const _0x19df7a=_0x1bab41['model']['document']['selection'],_0x290438=Array['from'](_0x19df7a['getRanges']())['map'](_0x6ad62=>_0x424176['fromRange'](_0x6ad62));_0x7c8dbe['setSelection'](_0x30c2a8),_0x1bab41['commands']['get'](_0x1568e4['commandName'])['refresh'](),_0x1568e4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1bab41['execute'](_0x1568e4['commandName'],..._0x1568e4['commandParams']),_0x7c8dbe['setSelection'](_0x290438);for(const _0x1d3c2d of _0x290438)_0x1d3c2d['detach']();});}),_0xc93e5e['descriptionFactory']['registerElementLabel'](function(_0x14ec2b){const _0x5eb9ad=!_0x1bab41['model']['schema']['isObject'](_0x14ec2b),_0x104b1d=_0x14ec2b['previousSibling'],_0x135e51=_0x14ec2b['nextSibling'],_0x3cac34=_0x14ec2b['getAttribute']('listItemId'),_0x1e9e2b=!_0x104b1d||_0x104b1d['getAttribute']('listItemId')!==_0x3cac34,_0x15a067=!_0x135e51||_0x135e51['getAttribute']('listItemId')!==_0x3cac34;return _0x5eb9ad&&Boolean(_0x3cac34)&&_0x1e9e2b&&_0x15a067;},_0xc50d9b=>o(_0x11c949,'ELEMENT_LIST_ITEM',_0xc50d9b));}['_registerLegacyDescription'](){const _0x2eb980=this['editor'],_0x91c346=_0x2eb980['locale'];function _0x59e5b3(_0x3b0503){const _0x2c68ca=_0x2eb980['commands']['get']('bulletedList')['value'],_0x1d39b6=_0x2eb980['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b0503?_0x2c68ca:_0x1d39b6;}_0x2eb980['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x32e04b){if('formatBlock'!=_0x32e04b['type'])return;const {data:_0x4ab01f}=_0x32e04b;if(!_0x4ab01f)return;let _0x583696,_0x1c4f92,_0x137140,_0x2031c4;switch(_0x4ab01f['commandName']){case'bulletedList':_0x137140=_0x4ab01f['commandParams'][0x0]['forceValue'],_0x2031c4=_0x59e5b3(_0x4ab01f['commandName']),_0x583696=_0x137140?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2031c4&&_0x2eb980['config']['get']('list.multiBlock')||(_0x583696='*Change\x20to:*\x20%0'),_0x1c4f92={'type':'format','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x137140=_0x4ab01f['commandParams'][0x0]['forceValue'],_0x2031c4=_0x59e5b3(_0x4ab01f['commandName']),_0x583696=_0x137140?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2031c4&&_0x2eb980['config']['get']('list.multiBlock')||(_0x583696='*Change\x20to:*\x20%0'),_0x1c4f92={'type':'format','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x583696='*Indent:*\x20%0',_0x1c4f92={'type':'format','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x583696=function(_0x5bd3cc){const _0x2894bc=_0x5bd3cc['getFirstRange']();let _0x38498f=_0x2894bc['start']['nodeAfter'];for(;_0x38498f&&_0x2894bc['containsItem'](_0x38498f);){if(_0x38498f['getAttribute']('listIndent')>0x0)return!0x1;_0x38498f=_0x38498f['nextSibling'];}return!0x0;}(_0x32e04b)?o(_0x91c346,'*Format:*\x20remove\x20from\x20%0',o(_0x91c346,function(_0x2d319c){return'ELEMENT_'+_0x2d319c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x32e04b))):o(_0x91c346,'*Outdent:*\x20%0',o(_0x91c346,'ELEMENT_LIST_ITEM')),_0x1c4f92={'type':'format','content':_0x583696};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4ab01f['multipleBlocks']&&(_0x583696='*Merge:*\x20%0',_0x1c4f92={'type':'deletion','content':o(_0x91c346,_0x583696,o(_0x91c346,'ELEMENT_LIST_ITEM'))});}return _0x1c4f92;});}}function le(_0x4d0c08){let _0x7141a9=_0x4d0c08['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x7141a9;){const _0x471bc8=_0x7141a9['getAttribute']('listItemId');if(!_0x471bc8)return!0x1;if(_0x471bc8==_0x4d0c08['data']['newValue'])return'newValue';if(_0x471bc8==_0x4d0c08['data']['oldValue'])return'oldValue';_0x7141a9=_0x7141a9['previousSibling'];}return!0x1;}class ue extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4957c=this['editor']['config']['get']('list.properties'),_0x43e5c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4957c['styles']&&(_0x43e5c8['enableDefaultAttributesIntegration']('listStyle'),_0x43e5c8['registerBlockAttribute']('listStyle')),_0x4957c['reversed']&&(_0x43e5c8['enableDefaultAttributesIntegration']('listReversed'),_0x43e5c8['registerBlockAttribute']('listReversed')),_0x4957c['startIndex']&&(_0x43e5c8['enableDefaultAttributesIntegration']('listStart'),_0x43e5c8['registerBlockAttribute']('listStart'));const _0x976f45={'type':'format','content':''};_0x43e5c8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x23391d=this['editor']['locale'];_0x43e5c8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x23391d,'FORMAT_LIST_REVERSED')),_0x43e5c8['descriptionFactory']['registerDescriptionCallback'](_0xffab39=>{const {data:_0x37b26b}=_0xffab39;if(_0x37b26b&&'listReversed'==_0x37b26b['key'])return null==_0x37b26b['newValue']||0x0==_0x37b26b['newValue']&&null==_0x37b26b['oldValue']?_0x976f45:void 0x0;}),_0x43e5c8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x23391d,'FORMAT_LIST_START')),_0x43e5c8['descriptionFactory']['registerDescriptionCallback'](_0x37746d=>{const {data:_0x1bd2d6}=_0x37746d;if(_0x1bd2d6&&'listStart'==_0x1bd2d6['key'])return null==_0x1bd2d6['newValue']||0x1==_0x1bd2d6['newValue']&&null==_0x1bd2d6['oldValue']?_0x976f45:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5afa55=>{if(_0x5afa55['batch']['isUndo'])return!0x1;let _0x5775cc=!0x1;const _0x264463=_0x43e5c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ff6f0=>{const _0x1614f9=_0x43e5c8['_getAttributeKey'](_0x4ff6f0);return'listStart'==_0x1614f9||'listReversed'==_0x1614f9;});for(const _0x32dc12 of _0x264463){const _0x5496cf=_0x32dc12['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5496cf||'customNumbered'==_0x5496cf)continue;_0x43e5c8['_findSuggestions'](_0x32dc12['getFirstRange'](),'attribute')['find'](_0x415742=>'listType'==_0x43e5c8['_getAttributeKey'](_0x415742['suggestion']))||(_0x5afa55['removeMarker'](_0x32dc12['getFirstMarker']()),_0x5775cc=!0x0);}return _0x5775cc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2ad9af){const _0x949e22=this['editor']['locale'],{data:_0x5366dd}=_0x2ad9af,_0x5cd134={'type':'format','content':''};if(!_0x5366dd||'listStyle'!=_0x5366dd['key'])return;if(!_0x5366dd['oldValue'])return'default'==_0x5366dd['newValue']?_0x5cd134:{'type':'format','content':''+o(_0x949e22,'*Set\x20format:*\x20%0',o(_0x949e22,this['_getTranslationKeyForListStyle'](_0x5366dd['newValue'])))};if(!_0x5366dd['newValue']){if('default'==_0x5366dd['oldValue'])return _0x5cd134;let _0x1d4340=_0x2ad9af['head'];for(;_0x1d4340;){if(_0x1d4340['data']&&'listType'==_0x1d4340['data']['key']&&_0x1d4340['data']['newValue'])return _0x5cd134;_0x1d4340=_0x1d4340['next'];}return{'type':'format','content':''+o(_0x949e22,'*Remove\x20format:*\x20%0',o(_0x949e22,this['_getTranslationKeyForListStyle'](_0x5366dd['oldValue'])))};}if('default'!=_0x5366dd['newValue'])return{'type':'format','content':''+o(_0x949e22,'*Set\x20format:*\x20%0',o(_0x949e22,this['_getTranslationKeyForListStyle'](_0x5366dd['newValue'])))};let _0x42dcc1=_0x2ad9af['head'];for(;_0x42dcc1;){if(_0x42dcc1['data']&&'listType'==_0x42dcc1['data']['key']&&_0x42dcc1['data']['newValue']&&_0x42dcc1['data']['oldValue'])return _0x5cd134;_0x42dcc1=_0x42dcc1['next'];}return{'type':'format','content':o(_0x949e22,'*Set\x20format:*\x20%0',o(_0x949e22,'ELEMENT_'+_0x2ad9af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xc52d07=this['editor'],_0x364374=_0xc52d07['locale'];_0xc52d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeac9d6=>{if('formatBlock'!=_0xeac9d6['type'])return;const {data:_0x104fb5}=_0xeac9d6;if(!_0x104fb5)return;let _0x57afc5,_0x175f8e;switch(_0x104fb5['commandName']){case'listStyle':_0x57afc5='*Change\x20to:*\x20%0',_0x175f8e={'type':'format','content':o(_0x364374,_0x57afc5,o(_0x364374,this['_getTranslationKeyForListStyle'](_0x104fb5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57afc5=_0x104fb5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x175f8e={'type':'format','content':o(_0x364374,_0x57afc5)};break;case'listStart':_0x57afc5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x175f8e={'type':'format','content':o(_0x364374,_0x57afc5,_0x104fb5['commandParams'][0x0]['startIndex'])};}return _0x175f8e;});}['_getTranslationKeyForListStyle'](_0x10794b){return'ELEMENT_'+function(_0x250aef){if(pe['includes'](_0x250aef))return'bulleted';if(ye['includes'](_0x250aef))return'numbered';return null;}(_0x10794b)['toUpperCase']()+'_LIST_'+_0x10794b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x470f93{static get['requires'](){return[_0x4d515b];}['init'](){const _0x6e3b2a=this['editor'],_0x202974=_0x6e3b2a['plugins']['get']('TrackChangesEditing'),_0x47262a=_0x6e3b2a['commands']['get']('enter');_0x202974['enableCommand']('enter',()=>{_0x6e3b2a['model']['change'](_0x101583=>{const _0x314926=_0x6e3b2a['model']['document']['selection'],_0x4ed558=_0x314926['getFirstPosition'](),_0x3503d3=_0x424176['fromRange'](_0x314926['getFirstRange']());if(_0x47262a['enterBlock'](_0x101583)){const _0x318e40=_0x6e3b2a['model']['createPositionAt'](_0x4ed558['parent']['nextSibling'],0x0),_0x1a3a55=_0x101583['createRange'](_0x4ed558,_0x318e40);_0x202974['markInsertion'](_0x1a3a55);}else _0x101583['setSelection'](_0x101583['createRange'](_0x3503d3['end']));_0x3503d3['detach'](),_0x47262a['fire']('afterExecute',{'writer':_0x101583});});}),_0x6e3b2a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x6e3b2a,'split'),{'priority':'high'}),_0x6e3b2a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2c2731,_0xe36455,_0x41959e)=>{const _0x2973fb=_0x41959e['mapper']['markerNameToElements'](_0xe36455['markerName']);if(_0x2973fb){for(const _0x1cf2fa of _0x2973fb)_0x1cf2fa['hasClass']('ck-suggestion-marker-split')&&(_0x41959e['mapper']['unbindElementFromMarkerName'](_0x1cf2fa,_0xe36455['markerName']),_0x41959e['writer']['remove'](_0x1cf2fa));}},{'priority':'high'}),_0x6e3b2a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x477182,_0x56a1ce,_0x49abe0)=>{_0x49abe0['options']['showSuggestionHighlights']&&_e(_0x6e3b2a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x477182,_0x56a1ce,_0x49abe0);},{'priority':'high'});}}class J extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x30b6e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x30b6e4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x30b6e4['enableCommand']('findNext'),_0x30b6e4['enableCommand']('findPrevious'),_0x30b6e4['enableCommand']('replace'),_0x30b6e4['enableCommand']('replaceAll');}['handleFindCommand'](_0x8ca8c0,_0x459170,_0x281564={}){const _0xf00ff4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x8ca8c0(_0x9f04f=>('string'==typeof _0x459170?_0xf00ff4['findByTextCallback'](_0x459170,_0x281564):_0x459170)(_0x9f04f)['filter'](_0x33656e=>!0x1===this['_isInDeletionRange'](_0x33656e,_0x9f04f['item'])),_0x281564);}['_isInDeletionRange'](_0x4b0b49,_0x4c46f0){const _0x395813=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c46f0,_0x4b0b49['start']),this['editor']['model']['createPositionAt'](_0x4c46f0,_0x4b0b49['end']));for(const _0x526c41 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x395813['getIntersection'](_0x526c41['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 _0x470f93{['afterInit'](){const _0x1df568=this['editor']['locale'],_0x5f0da4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x291175,commandName:_0x4218aa}of ro)this['editor']['plugins']['has'](_0x291175)&&(_0x5f0da4['enableDefaultAttributesIntegration'](_0x4218aa),_0x5f0da4['registerInlineAttribute'](_0x4218aa));_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1df568,'FORMAT_FONT_SIZE')),_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1df568,'FORMAT_FONT_FAMILY')),_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1df568,'FORMAT_FONT_COLOR')),_0x5f0da4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1df568,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x394b5d=this['editor'],_0x1b4df9=_0x394b5d['locale'];_0x394b5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c5cf5=>{const _0x471cf2=_0x1b4df9['t'];if('formatInline'!=_0x2c5cf5['type'])return;const {data:_0x110278}=_0x2c5cf5;if(null!=_0x110278){if('fontSize'==_0x110278['commandName']){const _0x9e17bf=_0x110278['commandParams'][0x0]['value'];if(_0x9e17bf){const _0x4a49bb=_0x471cf2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x103797=>_0x103797['model']==_0x9e17bf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20size:*\x20%0',_0x4a49bb)};}return{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x110278['commandName']){const _0x3ef121=_0x110278['commandParams'][0x0]['value'];return _0x3ef121?{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20family:*\x20%0',_0x3ef121)}:{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x110278['commandName']){const _0x42a91a=_0x110278['commandParams'][0x0]['value'];if(_0x42a91a){const _0x526538=_0x4b76ca(this['editor']['config']['get']('fontColor.colors'))['find'](_0x36d5fb=>_0x36d5fb['model']==_0x42a91a);let _0x927565=_0x42a91a,_0x43b297='';return _0x526538&&(_0x927565=_0x526538['label'],_0x43b297=_0x471cf2(_0x927565)['toLowerCase']()),{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20color:*\x20%0',_0x43b297)['trim'](),'color':{'value':_0x42a91a,'title':_0x43b297||_0x927565}};}return{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x110278['commandName']){const _0x1ceda1=_0x110278['commandParams'][0x0]['value'];if(_0x1ceda1){const _0x1bae65=_0x4b76ca(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3830be=>_0x3830be['model']==_0x1ceda1);let _0x2c3806=_0x1ceda1,_0x1210bf='';return _0x1bae65&&(_0x2c3806=_0x1bae65['label'],_0x1210bf=_0x471cf2(_0x2c3806)['toLowerCase']()),{'type':'format','content':o(_0x1b4df9,'*Set\x20font\x20background\x20color:*\x20%0',_0x1210bf)['trim'](),'color':{'value':_0x1ceda1,'title':_0x1210bf||_0x2c3806}};}return{'type':'format','content':o(_0x1b4df9,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x470f93{['afterInit'](){const _0x2b916b=this['editor'],_0x17c8bb=_0x2b916b['plugins']['get']('TrackChangesEditing'),_0x232145=_0x2b916b['commands']['get']('copyFormat'),_0x21e8ef=_0x2b916b['commands']['get']('pasteFormat');_0x232145&&_0x21e8ef&&(_0x17c8bb['enableDefaultAttributesIntegration']('pasteFormat'),_0x17c8bb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4ddb2a=this['editor'],_0x109d90=_0x4ddb2a['locale'];_0x4ddb2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27e86b=>{if('formatBlock'!=_0x27e86b['type']&&'formatInline'!=_0x27e86b['type'])return;const {data:_0x5549dd}=_0x27e86b;if(_0x5549dd&&'pasteFormat'===_0x5549dd['commandName']){const _0x22b1e0=[],_0x1f177c=_0x5549dd['commandParams'][0x0];for(const [_0x3bc476,_0x2a14b5]of Object['entries'](_0x1f177c))_0x22b1e0['push'](so(_0x4ddb2a,_0x3bc476,_0x2a14b5));return _0x22b1e0['length']?{'type':'format','content':o(_0x109d90,'*Set\x20format\x20to:*\x20%0',_0x22b1e0['join'](',\x20'))}:{'type':'format','content':o(_0x109d90,'*Remove\x20all\x20formatting*')};}});}}function so(_0xce058c,_0x4a76dd,_0x4aaf5a){const _0x31c374=_0xce058c['locale']['t'],_0x2765e8=_0x4a76dd['split'](/(?=[A-Z])/)['join']('\x20'),_0x8fbf52=_0x31c374(_0x2765e8['charAt'](0x0)['toUpperCase']()+_0x2765e8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4aaf5a)return _0x8fbf52;if('fontColor'===_0x4a76dd||'fontBackgroundColor'===_0x4a76dd){const _0x11ff28=_0x4b76ca(_0xce058c['config']['get']('fontColor.colors'))['find'](_0x5c251e=>_0x5c251e['model']==_0x4aaf5a);return _0x8fbf52+'\x20('+(_0x11ff28?_0x31c374(_0x11ff28['label'])['toLowerCase']():_0x4aaf5a)+')';}if('fontSize'===_0x4a76dd&&isNaN(parseFloat(_0x4aaf5a))){const _0x14f359=_0xce058c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xce058c['config']['get']('fontSize.options'))['find'](_0x5be6bc=>_0x5be6bc['model']==_0x4aaf5a);return _0x8fbf52+'\x20('+(_0x14f359?_0x31c374(_0x14f359['title'])['toLowerCase']():_0x4aaf5a)+')';}return _0x8fbf52+'\x20('+_0x4aaf5a+')';}class Y extends _0x470f93{['_headingOptions'];['afterInit'](){const _0x437649=this['editor'];if(!_0x437649['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x437649['config']['get']('heading.options');const _0x10dfe4=_0x437649['locale'],_0x13c2c2=_0x437649['plugins']['get']('TrackChangesEditing');_0x13c2c2['enableDefaultAttributesIntegration']('heading');for(const _0x357444 of this['_headingOptions'])'paragraph'!=_0x357444['model']&&_0x13c2c2['descriptionFactory']['registerElementLabel'](_0x357444['model'],_0x3c093e=>{const _0x21e517=this['_getHeadingLevel'](_0x357444['model']);return null!==_0x21e517?_0x187189(_0x3c093e,_0x21e517):_0x3851b1(_0x3c093e,_0x357444['title']);});function _0x187189(_0x59ed84,_0x156afb){return o(_0x10dfe4,'ELEMENT_HEADING',[_0x59ed84,_0x156afb]);}function _0x3851b1(_0xab0b7b,_0x271549){return o(_0x10dfe4,'ELEMENT_HEADING_CUSTOM',[_0xab0b7b,_0x271549]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b3863=this['editor'],_0x26aeae=_0x5b3863['locale'];function _0x351804(_0xb2cc70,_0xdd7582){return o(_0x26aeae,'ELEMENT_HEADING_CUSTOM',[_0xb2cc70,_0xdd7582]);}_0x5b3863['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b58cb=>{if('formatBlock'!=_0x2b58cb['type'])return;const {data:_0x49991c}=_0x2b58cb;if(_0x49991c&&'heading'==_0x49991c['commandName']){const _0x2cb601=_0x49991c['commandParams'][0x0]['value'],_0x2c305e=this['_getHeadingLevel'](_0x2cb601);if(null!==_0x2c305e)return{'type':'format','content':o(_0x26aeae,'*Change\x20to:*\x20%0',(_0x2794c8=0x1,_0x528e3b=_0x2c305e,o(_0x26aeae,'ELEMENT_HEADING',[_0x2794c8,_0x528e3b])))};const _0x580dbb=this['_headingOptions']['find'](_0x543dc6=>_0x543dc6['model']===_0x2cb601)['title'];return{'type':'format','content':o(_0x26aeae,'*Change\x20to:*\x20%0',_0x351804(0x1,_0x580dbb))};}var _0x2794c8,_0x528e3b;});}['_getHeadingLevel'](_0x590871){const _0x3b549c=_0x590871['match'](/^heading(\d+)/);if(_0x3b549c)return _0x3b549c[0x1];const _0x4be8fd=this['_headingOptions']?.['find'](_0x51fd5d=>_0x51fd5d['model']==_0x590871);if(_0x4be8fd&&_0x4be8fd['view']){const _0x3d4f3d=_0x4be8fd['view'],_0x20e8fb=(_0x3d4f3d['name']??_0x3d4f3d)['match'](/^h(\d+)/);if(_0x20e8fb)return _0x20e8fb[0x1];}return null;}}class Z extends _0x470f93{['afterInit'](){const _0x151356=this['editor'];if(!_0x151356['plugins']['has']('HighlightEditing'))return;const _0x349300=_0x151356['plugins']['get']('TrackChangesEditing'),_0x3b7fd7=_0x151356['locale'];_0x349300['enableDefaultAttributesIntegration']('highlight'),_0x349300['registerInlineAttribute']('highlight'),_0x349300['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3b7fd7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5198c9=this['editor'],_0x17af11=_0x5198c9['locale'];_0x5198c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49095d=>{if('formatInline'!=_0x49095d['type'])return;const {data:_0x4a03df}=_0x49095d;if(_0x4a03df&&'highlight'==_0x4a03df['commandName']){const _0xcfcd3a=_0x17af11['t'],_0x12f10f=_0x4a03df['commandParams'][0x0]['value'];if(_0x12f10f){const _0x1cfaa8=_0x5198c9['config']['get']('highlight.options')['find'](_0x4baecc=>_0x4baecc['model']==_0x12f10f),_0x2cc171=_0xcfcd3a(_0x1cfaa8['title'])['toLowerCase']();return{'type':'format','content':o(_0x17af11,'*Set\x20highlight:*\x20%0',_0x2cc171),'color':{'value':_0x1cfaa8['color'],'title':_0x1cfaa8['title']}};}return{'type':'format','content':o(_0x17af11,'*Remove\x20highlight*',o(_0x17af11,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x470f93{['afterInit'](){const _0x35216b=this['editor'];if(!_0x35216b['plugins']['has']('HorizontalLineEditing'))return;_0x35216b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3084cf=_0x35216b['plugins']['get']('TrackChangesEditing'),_0x1c0189=_0x35216b['locale'];_0x3084cf['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4fc1c3=>o(_0x1c0189,'ELEMENT_HORIZONTAL_LINE',_0x4fc1c3)),_0x35216b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x42e172,{writer:_0x53f95e,options:_0x5e4338})=>{if(!_0x5e4338['showSuggestionHighlights'])return null;const _0x249477=_0x53f95e['createContainerElement']('div'),_0x197c4a=_0x53f95e['createEmptyElement']('hr');return _0x53f95e['addClass']('ck-horizontal-line',_0x249477),_0x53f95e['insert'](_0x53f95e['createPositionAt'](_0x249477,0x0),_0x197c4a),_0x249477;},'converterPriority':'high'});}}class et extends _0x470f93{['afterInit'](){const _0x422aa7=this['editor'];if(!_0x422aa7['plugins']['has']('HtmlEmbed'))return;const _0x597072=_0x422aa7['plugins']['get']('TrackChangesEditing'),_0x2b3f2c=_0x422aa7['locale'];_0x597072['descriptionFactory']['registerElementLabel']('rawHtml',_0x41c039=>o(_0x2b3f2c,'ELEMENT_HTML_EMBED',_0x41c039)),_0x597072['enableDefaultAttributesIntegration']('htmlEmbed'),_0x597072['registerBlockAttribute']('value'),_0x597072['descriptionFactory']['registerDescriptionCallback'](_0x569021=>{if('attribute'!=_0x569021['type'])return;const {data:_0x45cbe7}=_0x569021;if(_0x45cbe7&&'value'==_0x45cbe7['key']&&_0x569021['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b2aed=o(_0x2b3f2c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b3f2c,'*Change\x20%0\x20content*',_0x2b2aed)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382dbf=this['editor'],_0x53f483=_0x382dbf['locale'];_0x382dbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x572aaf=>{if('formatBlock'!=_0x572aaf['type'])return;const {data:_0x19b5f5}=_0x572aaf;if(_0x19b5f5&&'htmlEmbed'==_0x19b5f5['commandName']){const _0x4a7307=o(_0x53f483,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53f483,'*Change\x20%0\x20content*',_0x4a7307)};}});}}class it extends _0x470f93{['afterInit'](){const _0x502e2f=this['editor'];if(!_0x502e2f['plugins']['has']('ImageEditing'))return;const _0x232a58=_0x502e2f['plugins']['get']('TrackChangesEditing'),_0xc74b8e=_0x502e2f['plugins']['get']('ImageUtils'),_0x42d597=_0x502e2f['locale'];_0x232a58['enableCommand']('insertImage'),_0x232a58['descriptionFactory']['registerElementLabel']('imageBlock',_0x557a0d=>o(_0x42d597,'ELEMENT_IMAGE',_0x557a0d)),_0x232a58['descriptionFactory']['registerElementLabel']('imageInline',_0x32b4fd=>o(_0x42d597,'ELEMENT_INLINE_IMAGE',_0x32b4fd)),_0x232a58['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x42d597,'ELEMENT_CAPTION')),_0x502e2f['plugins']['has']('ImageUploadEditing')&&_0x232a58['enableCommand']('uploadImage'),_0x502e2f['plugins']['has']('ImageBlockEditing')&&_0x502e2f['plugins']['has']('ImageInlineEditing')&&(_0x232a58['enableCommand']('imageTypeInline',(_0x5eb738,_0x27801c)=>{const _0x1b2737=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']);_0x502e2f['model']['change'](()=>{_0x232a58['markBlockFormat'](_0x1b2737,{'commandName':'imageTypeInline','commandParams':[_0x27801c]},[],'convertBlockImageToInline');});}),_0x232a58['enableCommand']('imageTypeBlock',(_0x41dc9b,_0x230908)=>{_0x502e2f['model']['change'](_0xe70550=>{let _0x623df2=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x320b52=_0xe70550['createRangeOn'](_0x623df2);const _0x4d66cf=_0x378777['fromPosition'](_0x320b52['start'],'toPrevious'),_0x2eb90f=_0x378777['fromPosition'](_0x320b52['end'],'toNext');_0x232a58['forceDefaultExecution'](()=>_0x41dc9b(_0x230908)),_0x623df2=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x320b52=_0xe70550['createRangeOn'](_0x623df2);const _0x58377a=_0xe70550['createRange'](_0x4d66cf,_0x2eb90f);_0x4d66cf['detach'](),_0x2eb90f['detach'](),_0x232a58['markBlockFormat'](_0x623df2,{'commandName':'imageTypeInline','commandParams':[_0x230908]},[],'convertInlineImageToBlock'),_0x58377a['start']['isBefore'](_0x320b52['start'])&&_0x232a58['markInsertion'](_0xe70550['createRange'](_0x58377a['start'],_0x320b52['start']),'convertInlineImageToBlock'),_0x320b52['end']['isBefore'](_0x58377a['end'])&&_0x232a58['markInsertion'](_0xe70550['createRange'](_0x320b52['end'],_0x58377a['end']),'convertInlineImageToBlock');});}),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x232a58['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2dcb05])=>{const _0x521ce8=_0x232a58['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4deb26=_0x2dcb05['start'],_0x3eaa08=_0x2dcb05['end'];const _0x45213a=_0x502e2f['model']['schema']['getNearestSelectionRange'](_0x4deb26,'backward'),_0x35b5e5=_0x502e2f['model']['schema']['getNearestSelectionRange'](_0x3eaa08,'forward');_0x45213a['isCollapsed']&&(_0x4deb26=_0x45213a['start']),_0x35b5e5['isCollapsed']&&(_0x3eaa08=_0x35b5e5['end']),_0x521ce8([_0x502e2f['model']['createRange'](_0x4deb26,_0x3eaa08)]);}),_0x232a58['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15ae30),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15ae30)),_0x502e2f['plugins']['has']('ImageCaptionEditing')&&(_0x232a58['enableCommand']('toggleImageCaption',(_0x55aafe,_0x10bd7d)=>{const _0x3b4538=_0x502e2f['plugins']['get']('ImageCaptionUtils');let _0x3a362a=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x2a20c6=_0x3b4538['getCaptionFromImageModelElement'](_0x3a362a);_0x502e2f['model']['change'](()=>{if(_0x2a20c6)return void _0x232a58['markDeletion'](_0x502e2f['model']['createRangeOn'](_0x2a20c6));const _0x25e2be=_0xc74b8e['isBlockImage'](_0x3a362a);_0x55aafe(_0x10bd7d),_0x3a362a=_0xc74b8e['getClosestSelectedImageElement'](_0x502e2f['model']['document']['selection']),_0x2a20c6=_0x3b4538['getCaptionFromImageModelElement'](_0x3a362a),_0x232a58['markInsertion'](_0x502e2f['model']['createRangeOn'](_0x2a20c6),_0x25e2be?null:'imageCaption');});}),_0x232a58['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15ae30));const _0x2eb557=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3078d1(_0x194256,_0x45a078){const _0x5847bd=_0x2eb557['findIndex'](({type:_0x1e90aa,subType:_0x5c1217})=>_0x194256['type']==_0x1e90aa&&_0x194256['subType']==_0x5c1217),_0x1948b3=_0x2eb557['findIndex'](({type:_0x225b8d,subType:_0x3b9fd7})=>_0x45a078['type']==_0x225b8d&&_0x45a078['subType']==_0x3b9fd7);if(_0x5847bd<0x0||_0x1948b3<0x0)return!0x1;const _0x4d1a8e=_0x194256['getFirstRange'](),_0x5a9a5d=_0x45a078['getFirstRange']();if((0x0==_0x5847bd||0x1==_0x5847bd)&&0x2==_0x1948b3&&_0x4d1a8e['isIntersecting'](_0x5a9a5d))return!0x0;if(0x2==_0x5847bd&&0x3==_0x1948b3){const _0x1eac65=_0x232a58['_findSuggestions'](_0x4d1a8e,'insertion')['filter'](({suggestion:_0x302e0b,meta:_0x139d8f})=>_0x139d8f['isOwn']&&'convertInlineImageToBlock'==_0x302e0b['subType']);if(_0x1eac65['length']>0x1&&_0x5a9a5d['end']['isEqual'](_0x4d1a8e['start']))return!0x0;if(0x1==_0x1eac65['length']&&(_0x4d1a8e['start']['isEqual'](_0x5a9a5d['end'])||_0x4d1a8e['end']['isEqual'](_0x5a9a5d['start'])))return!0x0;}if(0x3==_0x5847bd&&0x3==_0x1948b3&&_0x4d1a8e['start']['isBefore'](_0x5a9a5d['start'])){const _0x24dd58=_0x4d1a8e['end']['nodeAfter'],_0x8f6d91=_0x5a9a5d['start']['nodeBefore'];return _0xc74b8e['isBlockImage'](_0x24dd58)&&_0x24dd58===_0x8f6d91;}return!0x1;}function _0x15ae30(_0x4e6fb6,_0x11d80d){return _0x3078d1(_0x4e6fb6,_0x11d80d)?[_0x4e6fb6,_0x11d80d]:_0x3078d1(_0x11d80d,_0x4e6fb6)?[_0x11d80d,_0x4e6fb6]:null;}_0x502e2f['plugins']['has']('ImageResize')&&(_0x232a58['enableDefaultAttributesIntegration']('resizeImage'),_0x232a58['registerBlockAttribute']('resizedWidth'),_0x232a58['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x42d597,'FORMAT_IMAGE_SIZE'))),_0x502e2f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x232a58['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x232a58['registerBlockAttribute']('alt')),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x5e7925=>{if(!!_0x2eb557['find'](({type:_0x5cfc96,subType:_0x48e283})=>_0x5e7925['type']==_0x5cfc96&&_0x5e7925['subType']==_0x48e283))return _0x5e7925['previous']?{}:void 0x0;}),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x339388=>{if('insertion'==_0x339388['type']||'deletion'==_0x339388['type']){const _0x3e3f8b=_0x339388['getContainedElement']();if(_0x3e3f8b&&_0x3e3f8b['is']('element','caption'))return{'type':'insertion'==_0x339388['type']?'addObject':'removeObject','element':_0x3e3f8b,'quantity':0x1};}}),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x397ffb=>'formatBlock'==_0x397ffb['type']&&'convertInlineImageToBlock'==_0x397ffb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x397ffb['type']&&'convertBlockImageToInline'==_0x397ffb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x232a58['descriptionFactory']['registerDescriptionCallback'](_0x5abd9d=>{if('attribute'!=_0x5abd9d['type'])return;const {data:_0x17ee1a}=_0x5abd9d;if(!_0x17ee1a||'alt'!=_0x17ee1a['key'])return;const _0x486e92=_0x17ee1a['newValue'];return _0x486e92?{'type':'format','content':o(_0x42d597,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x486e92+'\x22')}:{'type':'format','content':o(_0x42d597,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbcdd81=this['editor'],_0x5a4f43=_0xbcdd81['locale'];_0xbcdd81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fa478=>{if('formatBlock'!=_0x1fa478['type']&&'formatInline'!=_0x1fa478['type'])return;const {data:_0x59ec19}=_0x1fa478;if(_0x59ec19){if('imageTextAlternative'==_0x59ec19['commandName']){const _0x39a2f3=_0x59ec19['commandParams'][0x0]['newValue'];return _0x39a2f3?{'type':'format','content':o(_0x5a4f43,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39a2f3+'\x22')}:{'type':'format','content':o(_0x5a4f43,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x59ec19['commandName']){const _0x366a6e=_0x59ec19['commandParams'][0x0]['width'];return _0x366a6e?{'type':'format','content':o(_0x5a4f43,'*Set\x20image\x20width:*\x20%0',_0x366a6e)}:{'type':'format','content':o(_0x5a4f43,'*Reset\x20image\x20width*')};}}});}}class st extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x32af56=this['editor']['locale'],_0x1573f2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1573f2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1573f2['registerBlockAttribute']('src'),_0x1573f2['descriptionFactory']['registerDescriptionCallback'](_0x3eddf6=>{if('attribute'!=_0x3eddf6['type'])return;const {data:_0x501850}=_0x3eddf6;return _0x501850&&'src'==_0x501850['key']?_0x501850['newValue']&&_0x501850['oldValue']?{'type':'format','content':o(_0x32af56,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e7050=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e7050['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5e7050['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e7050['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5e7050['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b29e=this['editor'],_0x78b89c=_0x16b29e['locale'];_0x16b29e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5427d6=>{if('formatBlock'!=_0x5427d6['type']&&'formatInline'!=_0x5427d6['type'])return;const {data:_0x43d5ed}=_0x5427d6;if(!_0x43d5ed||'replaceImageSource'!=_0x43d5ed['commandName'])return;return{'type':'format','content':o(_0x78b89c,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x470f93{['afterInit'](){const _0x2d14f4=this['editor'];if(!_0x2d14f4['plugins']['has']('ImageStyleEditing'))return;const _0x3ddba7=_0x2d14f4['plugins']['get']('TrackChangesEditing'),_0x5cdc1b=_0x2d14f4['plugins']['get']('ImageUtils'),_0x171bd3={};_0x3ddba7['enableCommand']('imageStyle',(_0x45fefc,_0x1b7a84)=>{const _0x2ae46d=_0x2d14f4['plugins']['get']('Users')['me'],_0x26f940=_0x2d14f4['commands']['get']('imageStyle');let _0x2b0e46=_0x5cdc1b['getClosestSelectedImageElement'](_0x2d14f4['model']['document']['selection']),_0x10739c=_0x2d14f4['model']['createRangeOn'](_0x2b0e46),_0x2099a2=_0x26f940['value'];if(_0x2099a2==_0x1b7a84['value'])return;const _0x23a875={'commandName':'imageStyle','commandParams':[_0x1b7a84],'formatGroupId':_0x336056()};_0x2d14f4['model']['change'](()=>{if(_0x3ddba7['getSuggestions']()['filter'](_0x43c021=>_0x43c021['isInContent']&&_0x2ae46d==_0x43c021['author']&&('formatBlock'==_0x43c021['type']||'formatInline'==_0x43c021['type'])&&('imageStylePreApply'==_0x43c021['subType']||'imageStylePostApply'==_0x43c021['subType'])&&_0x43c021['getFirstRange']()['isEqual'](_0x10739c))['forEach'](_0x4c679f=>_0x3ddba7['discardSuggestion'](_0x4c679f['head'])),_0x2b0e46=_0x5cdc1b['getClosestSelectedImageElement'](_0x2d14f4['model']['document']['selection']),_0x10739c=_0x2d14f4['model']['createRangeOn'](_0x2b0e46),_0x26f940['refresh'](),_0x2d14f4['commands']['get']('imageTypeInline')['refresh'](),_0x2d14f4['commands']['get']('imageTypeBlock')['refresh'](),_0x2099a2=_0x26f940['value'],_0x2099a2!=_0x1b7a84['value'])return _0x5cdc1b['isInlineImage'](_0x2b0e46)&&_0x26f940['shouldConvertImageType'](_0x1b7a84['value'],_0x2b0e46)?(_0x45fefc({..._0x1b7a84,'setImageSizes':!0x1}),_0x2b0e46=_0x5cdc1b['getClosestSelectedImageElement'](_0x2d14f4['model']['document']['selection']),void _0x3ddba7['markBlockFormat'](_0x2b0e46,{..._0x23a875,'commandReversedParams':[{'value':_0x2099a2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5cdc1b['isBlockImage'](_0x2b0e46)?_0x3ddba7['markBlockFormat'](_0x2b0e46,_0x23a875,[],'imageStylePostApply'):_0x3ddba7['markInlineFormat'](_0x10739c,_0x23a875,'imageStylePostApply'));});});for(const _0x1864c2 of _0x2d14f4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x171bd3[_0x1864c2['name']]=_0x1864c2['title']['toLowerCase']();_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x16e2fe])=>{_0x5cdc1b['setImageNaturalSizeAttributes'](_0x16e2fe['getContainedElement']());}),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x286b1d,_0x31ac8e)=>{_0x3ddba7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x286b1d,{'commandName':_0x31ac8e['commandName'],'commandParams':_0x31ac8e['commandReversedParams']});}),_0x3ddba7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x350c96,_0x4f579d){if(_0x241d5f(_0x350c96,_0x4f579d))return[_0x350c96,_0x4f579d];if(_0x241d5f(_0x4f579d,_0x350c96))return[_0x4f579d,_0x350c96];return null;});const _0x375938=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x241d5f(_0x3ccceb,_0x7c75b9){const _0x12d2d6=_0x375938['findIndex'](({type:_0x11dbc0,subType:_0xa5f220})=>_0x3ccceb['type']==_0x11dbc0&&_0x3ccceb['subType']==_0xa5f220),_0x3845fe=_0x375938['findIndex'](({type:_0x4b6411,subType:_0x1e9c22})=>_0x7c75b9['type']==_0x4b6411&&_0x7c75b9['subType']==_0x1e9c22);if(_0x12d2d6<0x0||_0x3845fe<0x0)return!0x1;const _0x5ea413=_0x3ccceb['getFirstRange'](),_0x31269f=_0x7c75b9['getFirstRange']();if((0x0==_0x12d2d6||0x1==_0x12d2d6)&&0x2==_0x3845fe&&_0x5ea413['isIntersecting'](_0x31269f))return!0x0;if(0x2==_0x12d2d6&&0x3==_0x3845fe){const _0x36f651=_0x3ddba7['_findSuggestions'](_0x5ea413,'insertion')['filter'](({suggestion:_0x4e61c4,meta:_0x409f22})=>_0x409f22['isOwn']&&'convertInlineImageToBlock'==_0x4e61c4['subType']);if(_0x36f651['length']>0x1&&_0x31269f['end']['isEqual'](_0x5ea413['start']))return!0x0;if(0x1==_0x36f651['length']&&(_0x5ea413['start']['isEqual'](_0x31269f['end'])||_0x5ea413['end']['isEqual'](_0x31269f['start'])))return!0x0;}if(0x3==_0x12d2d6&&0x3==_0x3845fe&&_0x5ea413['start']['isBefore'](_0x31269f['start'])){const _0x2d4c76=_0x5ea413['end']['nodeAfter'],_0x5bb5e3=_0x31269f['start']['nodeBefore'];return _0x5cdc1b['isBlockImage'](_0x2d4c76)&&_0x2d4c76===_0x5bb5e3;}return!0x1;}_0x2d14f4['model']['document']['registerPostFixer'](()=>{let _0x483331=!0x1;const _0x2d4f21=Array['from'](_0x2d14f4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12c7fc,data:_0xeb3037}of _0x2d4f21){const {group:_0x2e917b,type:_0x42cd1e,subType:_0x1212e2,id:_0x357bac}=_0x3ddba7['_splitMarkerName'](_0x12c7fc);if('suggestion'==_0x2e917b&&_0x3ddba7['hasSuggestion'](_0x357bac)){if('formatBlock'==_0x42cd1e&&('imageStylePreApply'==_0x1212e2||'imageStylePostApply'==_0x1212e2)){const _0x54741e=_0x3ddba7['getSuggestion'](_0x357bac);if(_0xeb3037['newRange']){const _0x43bb9f=_0x54741e['getFirstRange']()['getContainedElement']();if(_0x5cdc1b['isBlockImage'](_0x43bb9f))continue;_0x3ddba7['discardSuggestion'](_0x54741e),_0x483331=!0x0;}}if('insertion'==_0x42cd1e&&'imageCaption'==_0x1212e2&&!_0xeb3037['newRange']){const _0x35a738=_0x3ddba7['getSuggestion'](_0x357bac);_0x35a738['next']&&_0x35a738['next']['isInContent']&&(_0x3ddba7['discardSuggestion'](_0x35a738['next']),_0x483331=!0x0);}}}return _0x483331;}),this['_registerLegacyDescription'](_0x171bd3);}['_registerLegacyDescription'](_0x4690e3){const _0x2c8722=this['editor'],_0x1279e0=_0x2c8722['locale'];_0x2c8722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x345eae=>{if('formatBlock'!=_0x345eae['type']&&'formatInline'!=_0x345eae['type'])return;const {data:_0x5cd3f8}=_0x345eae;if(!_0x5cd3f8||'imageStyle'!=_0x5cd3f8['commandName'])return;const _0x531c92=_0x5cd3f8['commandParams'][0x0]['value'];return _0x127f20('side'===_0x531c92?o(_0x1279e0,'FORMAT_SIDE_IMAGE'):_0x4690e3[_0x531c92]||_0x531c92);function _0x127f20(_0x474173){return{'type':'format','content':o(_0x1279e0,'*Format:*\x20%0',_0x474173)};}});}}class ot extends _0x470f93{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4e2326){super(_0x4e2326),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1fe151=this['editor'],_0x331236=_0x1fe151['commands']['get']('importWord'),_0x5f0bf4=_0x1fe151['commands']['get']('trackChanges');_0x331236&&(_0x331236['on']('execute',(_0x20771e,[,_0xaf67c4])=>{this['_trackChangesValueDuringImport']=_0x5f0bf4['value'],_0xaf67c4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x331236,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x331236,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5f0bf4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1fe151['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e36ed,_0xafd8d8){const {suggestions:_0x431dd9}=_0xafd8d8,_0x49d8e9=this['editor']['commands']['get']('trackChanges'),_0x324550=_0x49d8e9['value'];this['_trackChangesValueDuringImport']!==_0x324550&&(_0x49d8e9['execute'](),this['_trackChangesExecuted']=!0x0),_0x431dd9&&_0x431dd9['forEach'](({id:_0x2da2d4,type:_0x4b02b6,author:_0x5af175,created_at:_0x2e6a66})=>{const _0x20b981={'id':_0x2da2d4,'type':_0x4b02b6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5af175,'createdAt':_0x2e6a66?new Date(_0x2e6a66):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x20b981);});}}class rt extends _0x470f93{['afterInit'](){const _0xee2387=this['editor'],_0x421e55=_0xee2387['plugins']['get']('TrackChangesEditing');if(_0xee2387['plugins']['has']('IndentEditing')&&(_0x421e55['enableCommand']('indent'),_0x421e55['enableCommand']('outdent')),_0xee2387['plugins']['has']('IndentBlock')){for(const _0x4e36ef of['indentBlock','outdentBlock'])_0x421e55['enableDefaultAttributesIntegration'](_0x4e36ef);}const _0x338683=_0xee2387['locale'];_0x421e55['registerBlockAttribute']('blockIndent'),_0x421e55['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x338683,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411cc7=this['editor'],_0x203b32=_0x411cc7['locale'],_0x5717fc=_0x411cc7['plugins']['get']('TrackChangesEditing');_0x5717fc['descriptionFactory']['registerDescriptionCallback'](_0x17063b=>{if('formatBlock'!=_0x17063b['type'])return;const {data:_0x4f296c}=_0x17063b;if(!_0x4f296c)return;if('indentBlock'!=_0x4f296c['commandName']&&'outdentBlock'!=_0x4f296c['commandName'])return;const _0x20ee83=_0x17063b['getItems']()[0x0],_0x2da51d=_0x5717fc['descriptionFactory']['getItemLabel'](_0x20ee83);return'indentBlock'==_0x4f296c['commandName']?{'type':'format','content':o(_0x203b32,'*Indent:*\x20%0',_0x2da51d)}:'outdentBlock'==_0x4f296c['commandName']?{'type':'format','content':o(_0x203b32,'*Outdent:*\x20%0',_0x2da51d)}:void 0x0;});}}class at extends _0x470f93{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x470f93{['afterInit'](){const _0x5af326=this['editor'];if(!_0x5af326['plugins']['has']('LinkEditing'))return;const _0x12f8e1=_0x5af326['plugins']['get']('TrackChangesEditing'),_0x2b13e1=_0x5af326['commands']['get']('link');_0x12f8e1['enableDefaultAttributesIntegration']('link'),_0x12f8e1['enableDefaultAttributesIntegration']('unlink'),_0x12f8e1['registerInlineAttribute']('linkHref');for(const _0x5bd1d7 of _0x2b13e1['manualDecorators'])_0x12f8e1['registerInlineAttribute'](_0x5bd1d7['id']),_0x12f8e1['descriptionFactory']['registerAttributeLabel'](_0x5bd1d7['id'],'link\x20('+_0x5bd1d7['label']['toLowerCase']()+')');_0x12f8e1['descriptionFactory']['registerDescriptionCallback'](_0xe9eb3f=>{if('attribute'!=_0xe9eb3f['type'])return;const {data:_0x2f1b18}=_0xe9eb3f;if(!_0x2f1b18||'linkHref'!=_0x2f1b18['key'])return;const _0x2a297d=_0x2f1b18['newValue'],_0x2e7792=_0x5af326['locale'];return{'type':'format','content':null==_0x2a297d?o(_0x2e7792,'*Remove\x20link*'):o(_0x2e7792,'*Set\x20link:*\x20%0','\x22'+_0x2a297d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b1124=this['editor'],_0x53819f=_0x4b1124['locale'];_0x4b1124['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465dc5=>{if('formatInline'!=_0x465dc5['type'])return;const {data:_0x439507}=_0x465dc5;if(_0x439507){if('link'==_0x439507['commandName']){const _0x45f572=_0x439507['commandParams'][0x0];return{'type':'format','content':o(_0x53819f,'*Set\x20link:*\x20%0','\x22'+_0x45f572+'\x22')};}return'unlink'==_0x439507['commandName']?{'type':'format','content':o(_0x53819f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x470f93{['afterInit'](){const _0x5759f6=this['editor'],_0x597d79=_0x5759f6['locale'];if(!_0x5759f6['plugins']['has']('LegacyListEditing'))return;const _0x15d39f=_0x5759f6['plugins']['get']('TrackChangesEditing'),_0x2aac7d=_0x5759f6['plugins']['has']('LegacyTodoListEditing');function _0x28bda4(_0x2ff035){return()=>{const _0x3204e0=_0x5759f6['model']['document']['selection'],_0x5f55b4=_0x5759f6['commands']['get'](_0x2ff035);if(_0x5f55b4['value'])return void _0x5759f6['execute']('paragraph',{});const _0x3cf166=_0x2ff035['slice'](0x0,-0x4),_0x52d8fe=function(_0x56a9bb,_0x1326dc,_0x1d4d5b){let _0x4d4248=Array['from'](_0x56a9bb)['filter'](_0x30deab=>function(_0x3f048b,_0x133f65){return _0x133f65['checkChild'](_0x3f048b['parent'],'listItem')&&!_0x133f65['isObject'](_0x3f048b);}(_0x30deab,_0x1d4d5b));_0x4d4248=_0x4d4248['filter'](_0x4a7fd8=>!_0x4a7fd8['is']('element','listItem')||_0x4a7fd8['getAttribute']('listType')!=_0x1326dc);const _0x1a7f4d=new Set();for(const _0x1a1153 of _0x4d4248)_0x1a1153['is']('element','listItem')?_0x1a7f4d['add'](me(_0x1a1153)):_0x1a7f4d['add'](_0x1a1153);return Array['from'](_0x1a7f4d);}(_0x3204e0['getSelectedBlocks'](),_0x3cf166,_0x5759f6['model']['schema']);_0x5759f6['model']['change'](()=>{for(const _0x323de0 of _0x52d8fe)_0x15d39f['markBlockFormat'](_0x323de0,{'commandName':_0x2ff035,'commandParams':[{'forceValue':!_0x5f55b4['value']}],'formatGroupId':'blockName'},fe(_0x323de0));});};}function _0x431f26(_0x23029c){return()=>{const _0x2166a1=function(_0x44cf69){let _0x83636=Array['from'](_0x44cf69);const _0x1129de=_0x83636['findIndex'](_0x39dd90=>'listItem'!=_0x39dd90['name']);return _0x1129de>-0x1&&(_0x83636=_0x83636['slice'](0x0,_0x1129de)),_0x83636;}(_0x5759f6['model']['document']['selection']['getSelectedBlocks']()),_0x59ef61=_0x5759f6['model']['createRange'](_0x5759f6['model']['createPositionAt'](_0x2166a1[0x0],'before'),_0x5759f6['model']['createPositionAt'](_0x2166a1[_0x2166a1['length']-0x1],'end'));_0x5759f6['model']['change'](()=>{_0x15d39f['markBlockFormat'](_0x59ef61,{'commandName':_0x23029c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2d2862){const _0x3bb292=new Set();for(const _0x4487b5 of _0x2d2862){let _0x2b25a7=_0x4487b5['nextSibling'];for(;_0x2b25a7&&_0x2b25a7['getAttribute']('listIndent')>_0x4487b5['getAttribute']('listIndent');)_0x3bb292['add'](_0x2b25a7),_0x2b25a7=_0x2b25a7['nextSibling'];}return Array['from'](_0x3bb292);}(_0x2166a1));});};}_0x15d39f['enableCommand']('numberedList',_0x28bda4('numberedList')),_0x15d39f['enableCommand']('bulletedList',_0x28bda4('bulletedList')),_0x2aac7d&&_0x15d39f['enableCommand']('todoList',_0x28bda4('todoList')),_0x15d39f['enableCommand']('indentList',_0x431f26('indentList')),_0x15d39f['enableCommand']('outdentList',_0x431f26('outdentList')),_0x2aac7d&&_0x15d39f['enableCommand']('checkTodoList',()=>{const _0x3425a3=_0x5759f6['commands']['get']('checkTodoList'),_0x5f102e=Array['from'](_0x3425a3['_selectedElements']);_0x5f102e['filter'](_0x174de2=>_0x174de2['getAttribute']('todoListChecked')!=_0x3425a3['value']),_0x5759f6['model']['change'](()=>{for(const _0x5d1661 of _0x5f102e)_0x15d39f['markBlockFormat'](_0x5d1661,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3425a3['value']}]});});}),_0x15d39f['descriptionFactory']['registerElementLabel']('listItem',_0x3fc937=>o(_0x597d79,'ELEMENT_LIST_ITEM',_0x3fc937)),_0x15d39f['descriptionFactory']['registerDescriptionCallback'](_0xf0c247=>{if('formatBlock'!=_0xf0c247['type']&&'formatInline'!=_0xf0c247['type'])return;const {data:_0x296e44}=_0xf0c247;if(_0x296e44){if('numberedList'==_0x296e44['commandName']||'bulletedList'==_0x296e44['commandName']||'todoList'==_0x296e44['commandName'])switch(_0x296e44['commandName']['replace']('List','')){case'bulleted':return _0x2641e0(o(_0x597d79,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2641e0(o(_0x597d79,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2641e0(o(_0x597d79,'ELEMENT_TODO_LIST'));}if('indentList'==_0x296e44['commandName'])return{'type':'format','content':o(_0x597d79,'*Indent:*\x20%0',o(_0x597d79,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x296e44['commandName'])return{'type':'format','content':o(_0x597d79,'*Outdent:*\x20%0',o(_0x597d79,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x296e44['commandName'])return _0x296e44['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x597d79,'*Check\x20item*')}:{'type':'format','content':o(_0x597d79,'*Uncheck\x20item*')};}function _0x2641e0(_0x139173){return{'type':'format','content':o(_0x597d79,'*Change\x20to:*\x20%0',_0x139173)};}});}}function me(_0x5b4486){const _0x1c91e5=_0x5b4486['getAttribute']('listIndent');if(0x0==_0x1c91e5)return _0x5b4486;let _0x2d40f4=_0x5b4486;for(;_0x5b4486['previousSibling']&&_0x5b4486['previousSibling']['is']('element','listItem');){const _0x21fb22=_0x5b4486['previousSibling']['getAttribute']('listIndent');if(_0x21fb22==_0x1c91e5)_0x2d40f4=_0x5b4486['previousSibling'];else{if(_0x21fb22<_0x1c91e5)break;}_0x5b4486=_0x5b4486['previousSibling'];}return _0x2d40f4;}function fe(_0x5c5169){const _0x2dea0a=[];if(_0x5c5169['is']('element','listItem')&&_0x5c5169['getAttribute']('listIndent')>0x0){let _0x2aa2c6=_0x5c5169['nextSibling'];for(;_0x2aa2c6&&'listItem'==_0x2aa2c6['name']&&_0x2aa2c6['getAttribute']('listIndent')==_0x5c5169['getAttribute']('listIndent');)_0x2dea0a['push'](_0x2aa2c6),_0x2aa2c6=_0x2aa2c6['nextSibling'];}return _0x2dea0a;}class K extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb20441=this['editor']['config']['get']('list.properties'),_0x53dda0=this['editor']['plugins']['get']('TrackChangesEditing');_0xb20441['styles']&&_0x53dda0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb20441['reversed']&&_0x53dda0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb20441['startIndex']&&_0x53dda0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x53dda0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x557116,_0x289748={}){const _0x4c952e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x503693=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c952e['markMultiRangeBlockFormat'](_0x503693,{'commandName':'listStyle','commandParams':[{'type':_0x289748['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f4922,_0xfabdb8={}){const _0x569bbe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ea16d=this['_getSuggestionBlocks'](_0x3ba148=>_0x3ba148['is']('element','listItem')&&'numbered'===_0x3ba148['getAttribute']('listType'));if(_0x2ea16d['length']<0x1)return;const _0x8dbcb5=_0x2ea16d['map'](_0x4a0376=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a0376,'before'),this['editor']['model']['createPositionAt'](_0x4a0376,0x0)));this['editor']['model']['change'](()=>{_0x569bbe['markMultiRangeBlockFormat'](_0x8dbcb5,{'commandName':'listReversed','commandParams':[{'reversed':_0xfabdb8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x56b6ae,_0x1f735c={}){const _0x2dcb1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15b88c=this['_getSuggestionBlocks'](_0x30d8b1=>_0x30d8b1['is']('element','listItem')&&'numbered'===_0x30d8b1['getAttribute']('listType'));if(_0x15b88c['length']<0x1)return;const _0xcf34e4=_0x15b88c['map'](_0x181f6f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x181f6f,'before'),this['editor']['model']['createPositionAt'](_0x181f6f,0x0)));this['editor']['model']['change'](()=>{_0x2dcb1a['markMultiRangeBlockFormat'](_0xcf34e4,{'commandName':'listStart','commandParams':[{'startIndex':_0x1f735c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5bc56a){if('formatBlock'!=_0x5bc56a['type']&&'formatInline'!=_0x5bc56a['type'])return;const _0xf0ee9e=this['editor']['locale'],{data:_0x6d4419}=_0x5bc56a;if(!_0x6d4419)return;let _0x1d0d3e,_0x46d1c0;switch(_0x6d4419['commandName']){case'listStyle':_0x1d0d3e='*Change\x20to:*\x20%0',_0x46d1c0={'type':'format','content':o(_0xf0ee9e,_0x1d0d3e,o(_0xf0ee9e,this['_getTranslationKeyForListStyle'](_0x6d4419['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d0d3e=_0x6d4419['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46d1c0={'type':'format','content':o(_0xf0ee9e,_0x1d0d3e)};break;case'listStart':_0x1d0d3e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46d1c0={'type':'format','content':o(_0xf0ee9e,_0x1d0d3e,_0x6d4419['commandParams'][0x0]['startIndex'])};}return _0x46d1c0;}['_getSuggestionBlocksForListStyle'](){const _0xfeafb0=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c0c5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4c0c5a[0x0]?.['is']('element','listItem')&&_0x4c0c5a['unshift'](..._0xfeafb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4c0c5a[_0x4c0c5a['length']-0x1]?.['is']('element','listItem')&&_0x4c0c5a['push'](..._0xfeafb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4c0c5a=[...new Set(_0x4c0c5a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4c0c5a=_0x4c0c5a['filter'](_0x3afa7a=>_0x3afa7a['is']('element','listItem'))),_0x4c0c5a;}['_getSuggestionBlocks'](_0x5dcc93){const _0x847baf=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e8fdf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5dcc93)['map'](_0x131236=>{const _0x2b8f83=this['editor']['model']['createPositionAt'](_0x131236,0x0);return[..._0x847baf['getSiblingNodes'](_0x2b8f83,'backward'),..._0x847baf['getSiblingNodes'](_0x2b8f83,'forward')];})['flat']();return _0x5e8fdf=[...new Set(_0x5e8fdf)],_0x5e8fdf;}['_getTranslationKeyForListStyle'](_0x4e360c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e360c)||'default')['toUpperCase']()+'_LIST_'+_0x4e360c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x470f93{['afterInit'](){const _0x209ee7=this['editor'];if(!_0x209ee7['plugins']['has']('MediaEmbedEditing'))return;const _0x2bba0a=_0x209ee7['plugins']['get']('TrackChangesEditing'),_0x2358da=_0x209ee7['locale'];_0x2bba0a['enableCommand']('mediaEmbed'),_0x2bba0a['descriptionFactory']['registerElementLabel']('media',_0x178514=>o(_0x2358da,'ELEMENT_MEDIA',_0x178514)),_0x209ee7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3dddbd,{writer:_0x50fbef,options:_0x444e63})=>{if(_0x444e63['showSuggestionHighlights'])return _0x50fbef['createEmptyElement']('div');},'converterPriority':'high'}),_0x209ee7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5d9efb,_0x14be8a,_0x4c02be)=>{_0x4c02be['options']['showSuggestionHighlights']&&_0x5d9efb['stop']();},{'priority':'high'});}}class gt extends _0x470f93{['afterInit'](){const _0xdd49ee=this['editor'];_0xdd49ee['plugins']['has']('MentionEditing')&&_0xdd49ee['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x470f93{['afterInit'](){const _0x44e154=this['editor'],_0x53f004=_0x44e154['plugins']['get']('TrackChangesEditing');_0x44e154['plugins']['has']('MultiLevelList')&&(_0x53f004['enableDefaultAttributesIntegration']('multiLevelList'),_0x53f004['registerBlockAttribute']('listMarkerStyle'),_0x53f004['descriptionFactory']['registerDescriptionCallback'](_0x4069cf=>this['handleDescriptions'](_0x4069cf)));}['handleDescriptions'](_0x17a445){const _0x499f36=this['editor']['locale'],{data:_0x5a09bb}=_0x17a445,_0x55cb80={'type':'format','content':''};if(_0x5a09bb&&'listMarkerStyle'==_0x5a09bb['key']){if(!_0x5a09bb['oldValue'])return{'type':'format','content':o(_0x499f36,'*Set\x20format:*\x20%0',o(_0x499f36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a09bb['newValue']+')'};if(!_0x5a09bb['newValue']){let _0x543c4e=_0x17a445['head'];for(;_0x543c4e;){if(_0x543c4e['data']&&'listType'==_0x543c4e['data']['key']&&_0x543c4e['data']['newValue'])return _0x55cb80;_0x543c4e=_0x543c4e['next'];}return{'type':'format','content':o(_0x499f36,'*Remove\x20format:*\x20%0',o(_0x499f36,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a09bb['oldValue']+')'};}}}}class mt extends _0x470f93{['afterInit'](){const _0x4f851c=this['editor'];if(!_0x4f851c['plugins']['has']('PageBreakEditing'))return;_0x4f851c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x39b814=_0x4f851c['plugins']['get']('TrackChangesEditing'),_0x14f2cf=_0x4f851c['locale'];_0x39b814['descriptionFactory']['registerElementLabel']('pageBreak',_0x277df1=>o(_0x14f2cf,'ELEMENT_PAGE_BREAK',_0x277df1));}}class dt extends _0x470f93{['afterInit'](){const _0x1b4ee7=this['editor'];if(!_0x1b4ee7['plugins']['has']('Paragraph'))return;const _0x3893dd=_0x1b4ee7['locale'],_0x12a5e6=_0x1b4ee7['plugins']['get']('TrackChangesEditing');_0x12a5e6['descriptionFactory']['registerElementLabel']('paragraph',_0x91fd9a=>o(_0x3893dd,'ELEMENT_PARAGRAPH',_0x91fd9a)),_0x12a5e6['enableDefaultAttributesIntegration']('paragraph'),_0x12a5e6['enableCommand']('insertParagraph'),_0x1b4ee7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b4ee7),{'priority':'highest'}),_0x1b4ee7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2db91c,_0x44014a,_0x1bfec6)=>{_0x1bfec6['options']['showSuggestionHighlights']&&nr(_0x1b4ee7,{'showActiveMarker':!0x1})(_0x2db91c,_0x44014a,_0x1bfec6);},{'priority':'highest'});const _0x403d4d=_0x12a5e6['descriptionFactory'];_0x403d4d['registerDescriptionCallback'](_0x49e445=>{if('insertion'!==_0x49e445['type'])return;const {start:_0x26053c,end:_0x377267}=_0x49e445['getFirstRange']();if(!_0x26053c['isTouching'](_0x377267)||!_0x26053c['nodeAfter'])return;const _0x436416=_0x1b4ee7['model']['schema'],_0x114944=_0x26053c['nodeAfter'];return _0x436416['isBlock'](_0x114944)&&!_0x436416['isLimit'](_0x114944)&&_0x436416['checkChild'](_0x114944,'$text')?{'type':'insertion','content':o(_0x3893dd,'*Insert:*\x20%0',_0x403d4d['getItemLabel'](_0x114944,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160fb9=this['editor'],_0x490fb9=_0x160fb9['locale'];_0x160fb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4b7c=>{if('formatBlock'!=_0x4b4b7c['type'])return;const {data:_0x1922e6}=_0x4b4b7c;return _0x1922e6&&'paragraph'==_0x1922e6['commandName']?{'type':'format','content':o(_0x490fb9,'*Change\x20to:*\x20%0',o(_0x490fb9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5de336,{showActiveMarker:_0x7e9668=!0x0}={}){return(_0x219b65,_0x39c8cf,_0x60a018)=>{const _0x4459ee=_0x5de336['plugins']['get']('TrackChangesEditing'),_0x2f332a=_0x39c8cf['markerRange']['start'],_0x1eb76b=_0x39c8cf['markerRange']['end'],_0x1931a1=_0x5de336['model']['schema'];if(!_0x2f332a['isTouching'](_0x1eb76b)||!_0x2f332a['nodeAfter'])return;const _0x143aa2=_0x2f332a['nodeAfter'];if(_0x1931a1['isBlock'](_0x143aa2)&&!_0x1931a1['isLimit'](_0x143aa2)&&_0x1931a1['checkChild'](_0x143aa2,'$text')){if(!_0x60a018['consumable']['consume'](_0x39c8cf['markerRange'],_0x219b65['name']))return;const _0x321a76=_0x60a018['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2350f4=_0x60a018['mapper']['toViewPosition'](_0x1eb76b);_0x7e9668&&_0x4459ee['activeMarkers']['includes'](_0x39c8cf['markerName'])&&_0x60a018['writer']['addClass']('ck-suggestion-marker--active',_0x321a76),_0x60a018['writer']['insert'](_0x2350f4,_0x321a76),_0x60a018['mapper']['bindElementToMarker'](_0x321a76,_0x39c8cf['markerName']);}};}class pt extends _0x470f93{['afterInit'](){const _0x83aa4f=this['editor'];if(!_0x83aa4f['plugins']['has']('RemoveFormatEditing'))return;_0x83aa4f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c2aef=this['editor'];_0x1c2aef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435548=>{if('formatBlock'!=_0x435548['type']&&'formatInline'!=_0x435548['type'])return;const {data:_0x3db367}=_0x435548;return _0x3db367&&'removeFormat'==_0x3db367['commandName']?{'type':'format','content':o(_0x1c2aef['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x470f93{['afterInit'](){const _0x2d18e2=this['editor'];if(!_0x2d18e2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5186ea=_0x2d18e2['plugins']['get']('TrackChangesEditing');_0x5186ea['enableCommand']('goToPreviousRestrictedEditingException'),_0x5186ea['enableCommand']('goToNextRestrictedEditingException');const _0x3e08c4=_0x2d18e2['plugins']['get']('RestrictedEditingModeEditing');_0x3e08c4['enableCommand']('trackChanges'),_0x3e08c4['enableCommand']('acceptSuggestion'),_0x3e08c4['enableCommand']('discardSuggestion'),_0x3e08c4['enableCommand']('acceptAllSuggestions'),_0x3e08c4['enableCommand']('discardAllSuggestions'),_0x3e08c4['enableCommand']('acceptSelectedSuggestions'),_0x3e08c4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x470f93{static get['requires'](){return[_0x393c11];}['init'](){const _0x2b1825=this['editor'],_0xf2b0c1=_0x2b1825['plugins']['get']('TrackChangesEditing');_0xf2b0c1['enableCommand']('shiftEnter'),_0x2b1825['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2b1825),{'priority':'high'}),_0x2b1825['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2b1825),{'priority':'high'}),_0x2b1825['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x803ee1,_0x47c840,_0x266ef8)=>{_0x266ef8['options']['showSuggestionHighlights']&&de(_0x2b1825,{'showActiveMarker':!0x1})(_0x803ee1,_0x47c840,_0x266ef8);}),_0xf2b0c1['descriptionFactory']['registerElementLabel']('softBreak',_0x595e23=>o(_0x2b1825['locale'],'ELEMENT_LINE_BREAK',_0x595e23));}}function de(_0x5c1164,{showActiveMarker:_0x352b95=!0x0}={}){return(_0x36b799,_0xf7e63f,_0x23ae11)=>{const _0x4ea107=_0x5c1164['plugins']['get']('TrackChangesEditing');if(!_0x23ae11['consumable']['test'](_0xf7e63f['markerRange'],_0x36b799['name']))return;const _0x43176c=_0x5c1164['model'];for(const _0x16ec10 of _0xf7e63f['markerRange']['getItems']()){if(!_0x16ec10['is']('element','softBreak'))continue;const _0x108f21='deletion'==_0xf7e63f['markerName']['split'](':')[0x1]?'merge':'split',_0x315265=_0x23ae11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x108f21}),_0x2e11ee=_0x23ae11['mapper']['toViewPosition'](_0x43176c['createPositionBefore'](_0x16ec10));_0x352b95&&_0x4ea107['activeMarkers']['includes'](_0xf7e63f['markerName'])&&_0x23ae11['writer']['addClass']('ck-suggestion-marker--active',_0x315265),_0x23ae11['writer']['insert'](_0x2e11ee,_0x315265),_0x23ae11['mapper']['bindElementToMarker'](_0x315265,_0xf7e63f['markerName']);}};}class wt extends _0x470f93{['afterInit'](){const _0x2e159f=this['editor'],_0x5e7c11=_0x2e159f['model'],_0xb2e8ef=_0x2e159f['locale'];if(!_0x2e159f['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f3bc8=_0x2e159f['plugins']['get']('TrackChangesEditing'),_0x25ef2f='restrictedEditingException',_0x467672=_0x2e159f['commands']['get'](_0x25ef2f);_0x4f3bc8['enableCommand'](_0x25ef2f,(_0x51c605,_0x35f911={})=>{const _0x122fd7=_0x5e7c11['document']['selection'];if(_0x122fd7['isCollapsed'])return void _0x51c605(_0x35f911);const _0x50e8bf=void 0x0!==_0x35f911['forceValue']?_0x35f911['forceValue']:!_0x467672['value'];_0x5e7c11['change'](()=>{const _0x48cb2f=Array['from'](_0x122fd7['getRanges']());for(const _0x380ecd of _0x48cb2f){const _0x40706e=_0x50e8bf?[_0x380ecd]:io(_0x25ef2f,_0x380ecd,_0x5e7c11);for(const _0x8224c0 of _0x40706e)_0x4f3bc8['markInlineFormat'](_0x8224c0,{'commandName':_0x25ef2f,'commandParams':[{'forceValue':_0x50e8bf}]});}});}),_0x4f3bc8['descriptionFactory']['registerDescriptionCallback'](_0xdf4466=>{if('formatBlock'!=_0xdf4466['type']&&'formatInline'!=_0xdf4466['type'])return;const {data:_0x47cbf3}=_0xdf4466;return _0x47cbf3&&_0x47cbf3['commandName']==_0x25ef2f?_0x47cbf3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb2e8ef,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb2e8ef,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x470f93{['afterInit'](){const _0x4c399f=this['editor'];if(!_0x4c399f['plugins']['has']('Style')||!_0x4c399f['plugins']['has']('DataSchema'))return;const _0x1cc913=_0x4c399f['plugins']['get']('TrackChangesEditing'),_0x5eb1aa=_0x4c399f['locale'],_0x101332=_0x4c399f['config']['get']('style')||{},_0x59ab05=_0x4c399f['plugins']['get']('GeneralHtmlSupport'),_0x6d648=_0x4c399f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4c399f['plugins']['get']('DataSchema'),_0x101332['definitions']);_0x1cc913['enableDefaultAttributesIntegration']('style');const _0x473c65=new Set();for(const _0x5735fd of _0x6d648['block']){const _0x5ce0b3=_0x59ab05['getGhsAttributeNameForElement'](_0x5735fd['element']);_0x473c65['add'](_0x5ce0b3);}const _0x12d1ad=new Set();for(const _0x1cb204 of _0x6d648['inline']){const _0x782486=_0x59ab05['getGhsAttributeNameForElement'](_0x1cb204['element']);_0x12d1ad['add'](_0x782486);for(const _0x227728 of _0x1cb204['ghsAttributes'])_0x12d1ad['add'](_0x227728);}for(const _0x2cd3f5 of _0x473c65)_0x1cc913['registerBlockAttribute'](_0x2cd3f5),_0x1cc913['descriptionFactory']['registerAttributeLabel'](_0x2cd3f5,o(_0x5eb1aa,'FORMAT_STYLE'));for(const _0x34dfd8 of _0x12d1ad)_0x1cc913['registerInlineAttribute'](_0x34dfd8),_0x1cc913['descriptionFactory']['registerAttributeLabel'](_0x34dfd8,o(_0x5eb1aa,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ddb61=this['editor'],_0x25785d=_0x4ddb61['locale'];_0x4ddb61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12ad23=>{if('formatBlock'!=_0x12ad23['type']&&'formatInline'!=_0x12ad23['type'])return;const {data:_0x5820c6}=_0x12ad23;return _0x5820c6&&'style'===_0x5820c6['commandName']?_0x5820c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25785d,'*Set\x20format:*\x20%0',_0x5820c6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x25785d,'*Remove\x20format:*\x20%0',_0x5820c6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x470f93{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ab47c){super(_0x3ab47c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2eb1da=this['editor'],_0x28d91e=_0x2eb1da['model']['document']['selection'];if(!_0x2eb1da['plugins']['has']('TableEditing'))return;const _0x36b5ea=_0x2eb1da['locale'],_0x2c0e0a=_0x2eb1da['plugins']['get']('TrackChangesEditing'),_0x39ba29=_0x2eb1da['plugins']['get']('TableUtils');_0x2c0e0a['descriptionFactory']['registerElementLabel']('table',_0x12eb85=>o(_0x36b5ea,'ELEMENT_TABLE',_0x12eb85)),this['_setupColumnsRowsFixing'](),_0x2c0e0a['enableCommand']('insertTable'),_0x2c0e0a['enableCommand']('selectTableRow'),_0x2c0e0a['enableCommand']('selectTableColumn');for(const _0x709a90 of['insertTableRowAbove','insertTableRowBelow']){const _0x575a2c=_0x2eb1da['commands']['get'](_0x709a90);_0x2c0e0a['enableCommand'](_0x709a90,_0x42dc29=>{_0x2eb1da['model']['change'](_0x5387d5=>{_0x42dc29();const _0x80b5c1='above'===_0x575a2c['order'],_0x1d16fd=_0x39ba29['getSelectionAffectedTableCells'](_0x28d91e),_0x495ff9=_0x39ba29['getRowIndexes'](_0x1d16fd),_0x56e9ae=_0x80b5c1?_0x495ff9['first']-0x1:_0x495ff9['last']+0x1,_0x4d75ba=_0x1d16fd[0x0]['findAncestor']('table'),_0x1db768=_0x39ba29['createTableWalker'](_0x4d75ba,{'startRow':_0x56e9ae,'endRow':_0x56e9ae}),_0x3cddf2=Array['from'](_0x1db768)['map'](_0x1170d5=>_0x5387d5['createRangeOn'](_0x1170d5['cell']));_0x2c0e0a['markMultiRangeInsertion'](_0x3cddf2,'tableRow');});});}for(const _0x3bca17 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b806a=_0x2eb1da['commands']['get'](_0x3bca17);_0x2c0e0a['enableCommand'](_0x3bca17,_0x44ecd3=>{_0x2eb1da['model']['change'](_0x286d7f=>{_0x44ecd3();const _0x490dda='left'===_0x2b806a['order'],_0x1b2b58=_0x39ba29['getSelectionAffectedTableCells'](_0x28d91e),_0x46b165=_0x39ba29['getColumnIndexes'](_0x1b2b58),_0x4a9311=_0x490dda?_0x46b165['first']-0x1:_0x46b165['last']+0x1,_0x24fb8f=_0x1b2b58[0x0]['findAncestor']('table'),_0x8ebdba=_0x39ba29['createTableWalker'](_0x24fb8f,{'startRow':0x0,'column':_0x4a9311,'includeAllSlots':!0x1}),_0xe29ae8=Array['from'](_0x8ebdba)['map'](_0x17951b=>_0x286d7f['createRangeOn'](_0x17951b['cell']));_0x2c0e0a['markMultiRangeInsertion'](_0xe29ae8,'tableColumn');});});}for(const _0x5ac9ef of['removeTableRow','removeTableColumn']){const _0x394043=_0x5ac9ef['substr'](0xb),_0x25794b=_0x394043['toLowerCase'](),_0x59fb8a=_0x25794b['substr'](0x0,0x3)+'span',_0x1215cf='table'+_0x394043,_0x4672ba='min'+_0x394043,_0x211e82='max'+_0x394043;_0x2c0e0a['enableCommand'](_0x5ac9ef,()=>{_0x2eb1da['model']['change'](_0x976f70=>{const _0x4274c7=_0x39ba29['getSelectionAffectedTableCells'](_0x28d91e),_0x55fd52=_0x4274c7[0x0]['findAncestor']('table');let _0x34468d;if('removeTableRow'==_0x5ac9ef){const _0x173ed8=_0x39ba29['getRowIndexes'](_0x4274c7);_0x34468d={'startRow':_0x173ed8['first'],'endRow':_0x173ed8['last'],'includeAllSlots':!0x0};}else{const _0x265ca0=_0x39ba29['getColumnIndexes'](_0x4274c7);_0x34468d={'startColumn':_0x265ca0['first'],'endColumn':_0x265ca0['last'],'includeAllSlots':!0x0};}const _0x593380=_0x39ba29['createTableWalker'](_0x55fd52,_0x34468d),_0x12813d=Array['from'](_0x593380)['map'](({cell:_0x200c3e})=>_0x200c3e),_0x1bd2c4=Ee(_0x12813d['filter'](_0x2621f7=>_0x2621f7['hasAttribute'](_0x59fb8a))),_0x53a71c=Ee(_0x12813d['filter'](_0x29cb4f=>!_0x29cb4f['hasAttribute'](_0x59fb8a)))['map'](_0x24d6fe=>_0x976f70['createRangeOn'](_0x24d6fe)),_0x4a186e=_0x2c0e0a['markMultiRangeDeletion'](_0x53a71c,_0x1215cf);if(_0x4a186e&&('tableRow'==_0x4a186e['subType']||'tableColumn'==_0x4a186e['subType'])){const _0x3f878a=this['_getSuggestionCoords'](_0x4a186e);for(const _0x43f354 of _0x1bd2c4){const _0x32f893=_0x976f70['createRangeOn'](_0x43f354),_0x56b14b=_0x39ba29['getCellLocation'](_0x43f354),_0x4bd007=_0x43f354['getAttribute'](_0x59fb8a)-0x1,_0x5533da=_0x3f878a[_0x4672ba],_0x7bd2e1=_0x3f878a[_0x211e82];_0x5533da<=_0x56b14b[_0x25794b]&&_0x56b14b[_0x25794b]+_0x4bd007<=_0x7bd2e1&&_0x4a186e['addRange'](_0x32f893);}}});});}function _0x4a179a(_0x420cf4){const _0x220128=Array['from'](_0x28d91e['getRanges']())['map'](_0x2aae82=>_0x424176['fromRange'](_0x2aae82));_0x2eb1da['model']['change'](_0x47d421=>{const _0x506ae3=_0x47d421['batch'];_0x420cf4=_0x420cf4['filter'](_0x4ad84c=>'$graveyard'!=_0x4ad84c['root']['rootName']),_0x47d421['setSelection'](_0x420cf4),_0x2eb1da['commands']['get']('removeTableRow')['refresh'](),_0x2eb1da['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2eb1da['model']['enqueueChange'](()=>{_0x2eb1da['model']['enqueueChange'](_0x506ae3,_0x11e150=>{const _0x1ed9af=_0x220128['filter'](_0x44e75e=>'$graveyard'!=_0x44e75e['root']['rootName']);_0x1ed9af['length']>0x0&&_0x11e150['setSelection'](_0x1ed9af);for(const _0x56b568 of _0x220128)_0x56b568['detach']();});});});}function _0x1344d4(_0x1d9bc2){_0x2eb1da['model']['change'](_0x19dc44=>{const _0x2d709e=Array['from'](_0x28d91e['getRanges']())['map'](_0x4d6b1f=>_0x424176['fromRange'](_0x4d6b1f)),_0x1be42e=[];for(const _0x55801d of _0x1d9bc2)for(const _0x4cd4d5 of _0x55801d['getItems']({'shallow':!0x0}))_0x1be42e['push'](_0x4cd4d5);for(const _0x508655 of _0x1be42e)'$graveyard'!=_0x508655['root']['rootName']&&(_0x19dc44['setSelection'](_0x19dc44['createPositionAt'](_0x508655,0x0)),_0x2eb1da['commands']['get']('removeTableColumn')['refresh'](),_0x2eb1da['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59ecd6=_0x2d709e['filter'](_0x3b949a=>'$graveyard'!=_0x3b949a['root']['rootName']);_0x59ecd6['length']>0x0&&_0x19dc44['setSelection'](_0x59ecd6);for(const _0x338f5b of _0x2d709e)_0x338f5b['detach']();});}function _0x1a2edc(_0x566c27,_0x13149f){return _0x13149f['every'](_0x319441=>_0x566c27['some'](_0x2909c2=>_0x2909c2['end']['isEqual'](_0x319441['start'])||_0x319441['end']['isEqual'](_0x2909c2['start'])));}function _0x5a92b6(_0x524bbe,_0x5d2f8a){return!_0x524bbe['some'](_0x5e6c78=>_0x5d2f8a['some'](_0x2474d5=>_0x5e6c78['isIntersecting'](_0x2474d5)))&&_0x524bbe['some'](_0x49d6d2=>_0x5d2f8a['some'](_0x143bf8=>_0x49d6d2['end']['isTouching'](_0x143bf8['start'])));}_0x2eb1da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a78ba,_0x4db231,_0x3d519c)=>{if(!_0x3d519c['options']['showSuggestionHighlights'])return;const _0x3bc42d=_0x4db231['item'];if(!_0x3bc42d)return;const _0x15a29b=_0x3d519c['mapper']['toViewElement'](_0x3bc42d);function _0x5eeb02(_0x282019){return Array['isArray'](_0x282019)?_0x282019:[_0x282019];}_0x15a29b&&'tableCell'===_0x3bc42d['name']&&_0x141c2a(_0x15a29b,_0x3d519c['writer'],(_0x3d89f1,_0x25fbbf,_0x42ff2f)=>_0x42ff2f['addClass'](_0x5eeb02(_0x25fbbf['classes']),_0x3d89f1),(_0x1e3245,_0x5c4498,_0x134685)=>_0x134685['removeClass'](_0x5eeb02(_0x5c4498['classes']),_0x1e3245));},{'priority':'highest'}),_0x2c0e0a['descriptionFactory']['registerDescriptionCallback'](_0x11d8ac=>{if('insertion'!=_0x11d8ac['type']&&'deletion'!=_0x11d8ac['type'])return;const _0x5dbc17=_0x11d8ac['getContainedElement']();if(null!=_0x5dbc17&&_0x5dbc17['is']('element','table')){if('insertion'==_0x11d8ac['type']){const _0x326c4b=_0x11d8ac['getItems']()['filter'](_0x2e7ab9=>_0x2e7ab9['is']('$textProxy'))['map'](_0x20a026=>_0x20a026['data']);if(_0x326c4b['length'])return{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x326c4b['join']('\x20')+'\x22'))};}if('deletion'==_0x11d8ac['type']){const _0x1d3b43=_0x11d8ac['getItems']()['filter'](_0x46b4c0=>_0x46b4c0['is']('$textProxy'))['map'](_0x4cfc28=>_0x4cfc28['data']);if(_0x1d3b43['length'])return{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d3b43['join']('\x20')+'\x22'))};}}}),_0x2c0e0a['descriptionFactory']['registerDescriptionCallback'](_0x572f7d=>{if('tableRow'==_0x572f7d['subType']){const _0x4660d5=_0x572f7d['getItems']()['filter'](_0x1d9bc1=>_0x1d9bc1['is']('$textProxy'))['map'](_0x3ec889=>_0x3ec889['data']),_0x5dd250=this['_getSuggestionCoords'](_0x572f7d),_0x506895=_0x5dd250['maxRow']-_0x5dd250['minRow']+0x1;if('insertion'==_0x572f7d['type'])return _0x4660d5['length']?{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x506895,'\x22'+_0x4660d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW',_0x506895))};if('deletion'==_0x572f7d['type'])return _0x4660d5['length']?{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x506895,'\x22'+_0x4660d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_ROW',_0x506895))};}if('tableColumn'==_0x572f7d['subType']){const _0x5c024b=_0x572f7d['getItems']()['filter'](_0x2111db=>_0x2111db['is']('$textProxy'))['map'](_0x100241=>_0x100241['data']),_0x5b164b=this['_getSuggestionCoords'](_0x572f7d),_0x1c27f1=_0x5b164b['maxColumn']-_0x5b164b['minColumn']+0x1;if('insertion'==_0x572f7d['type'])return _0x5c024b['length']?{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c27f1,'\x22'+_0x5c024b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36b5ea,'*Insert:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN',_0x1c27f1))};if('deletion'==_0x572f7d['type'])return _0x5c024b['length']?{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c27f1,'\x22'+_0x5c024b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36b5ea,'*Remove:*\x20%0',o(_0x36b5ea,'ELEMENT_TABLE_COLUMN',_0x1c27f1))};}}),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4a179a),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4a179a),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1344d4),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1344d4),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1a2edc),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1a2edc),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a92b6),_0x2c0e0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a92b6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18d636=this['editor'],_0x45daa2=_0x18d636['model']['document']['selection'];return(_0x446949,_0x562716)=>{_0x18d636['model']['change'](_0xabca9b=>{const {commandName:_0x5e763d,commandParams:_0x2a751c}=_0x562716;let _0x2668a8=_0x446949[0x0]['end']['nodeBefore'];_0x2a751c&&_0x2a751c[0x0]&&!0x1===_0x2a751c[0x0]['forceValue']&&(_0x2668a8=_0x446949[0x0]['start']['nodeAfter']);const _0x570ac6=_0xabca9b['createRangeIn'](_0x2668a8);if('$graveyard'==_0x570ac6['root']['rootName'])return;const _0x48f8a9=Array['from'](_0x45daa2['getRanges']())['map'](_0x568625=>_0x424176['fromRange'](_0x568625));_0xabca9b['setSelection'](_0x570ac6),_0x18d636['commands']['get'](_0x5e763d)['refresh'](),_0x2a751c['push']({'forceDefaultExecution':!0x0}),_0x18d636['execute'](_0x5e763d,..._0x2a751c);const _0x4de8c8=_0x48f8a9['filter'](_0x2bb29f=>'$graveyard'!=_0x2bb29f['root']['rootName']);_0x4de8c8['length']>0x0&&_0xabca9b['setSelection'](_0x4de8c8);for(const _0x26c202 of _0x48f8a9)_0x26c202['detach']();});};}['_getCoordsForCells'](_0x2ca4da){const _0x28fcbe=this['editor']['plugins']['get']('TableUtils');let _0x524523=Number['MAX_SAFE_INTEGER'],_0x21c328=Number['MIN_SAFE_INTEGER'],_0xddd99=Number['MAX_SAFE_INTEGER'],_0x50c87b=Number['MIN_SAFE_INTEGER'];for(const _0x4a9439 of _0x2ca4da){if('$graveyard'==_0x4a9439['root']['rootName'])continue;const {row:_0x25c880,column:_0x55a478}=_0x28fcbe['getCellLocation'](_0x4a9439),_0x12cb56=_0x4a9439['hasAttribute']('rowspan')?_0x4a9439['getAttribute']('rowspan')-0x1:0x0,_0x5caff9=_0x4a9439['hasAttribute']('colspan')?_0x4a9439['getAttribute']('colspan')-0x1:0x0;_0x524523=_0x25c880<_0x524523?_0x25c880:_0x524523,_0x21c328=_0x25c880+_0x12cb56>_0x21c328?_0x25c880+_0x12cb56:_0x21c328,_0xddd99=_0x55a478<_0xddd99?_0x55a478:_0xddd99,_0x50c87b=_0x55a478+_0x5caff9>_0x50c87b?_0x55a478+_0x5caff9:_0x50c87b;}return{'minRow':_0x524523,'maxRow':_0x21c328,'minColumn':_0xddd99,'maxColumn':_0x50c87b};}['_setupColumnsRowsFixing'](){const _0x150e75=this['editor'],_0x2b5923=_0x150e75['plugins']['get']('TrackChangesEditing'),_0xf41cc5=_0x150e75['plugins']['get']('TableUtils');_0x150e75['model']['document']['on']('change:data',()=>{const _0x2bd16d=Array['from'](_0x150e75['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x379062,data:_0x1bdf3b}of _0x2bd16d){const {group:_0x43bc77,id:_0x2e13e0,subType:_0x23e460}=_0x2b5923['_splitMarkerName'](_0x379062);if('suggestion'!=_0x43bc77)continue;if(null!=_0x1bdf3b['oldRange'])continue;const _0x2ce07e=_0x2b5923['getSuggestion'](_0x2e13e0);this['_tablePostFixingSubtypes']['includes'](_0x23e460)&&this['_tableSuggestions']['add'](_0x2ce07e);}},{'priority':'low'});const _0x3a5da3=(_0x3345f9,_0x3cc3bd)=>{let _0x58464a=!0x1;const _0x1ea032=_0x3cc3bd['createRangeOn'](_0x3345f9),_0x233916=_0x3345f9['findAncestor']('table'),_0x2849b5=_0xf41cc5['getCellLocation'](_0x3345f9);for(const _0x37e0eb of this['_tableSuggestions']){const _0x21d39a=_0x37e0eb['subType'],_0x217809=_0x21d39a['startsWith']('tablePaste'),_0x2d5e89=_0x21d39a['substr'](_0x217809?0xa:0x5),_0x112887=_0x2d5e89['toLowerCase'](),_0x164186=_0x112887['substr'](0x0,0x3)+'span',_0x24e483='min'+_0x2d5e89,_0x3535ce='max'+_0x2d5e89;if(!_0x37e0eb['isInContent'])continue;if(_0x233916!=_0x37e0eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x37e0eb['isIntersectingWithRange'](_0x1ea032))continue;const _0x485c0f=_0x3345f9['hasAttribute'](_0x164186)?_0x3345f9['getAttribute'](_0x164186)-0x1:0x0,_0x258c8b=this['_getSuggestionCoords'](_0x37e0eb),_0x2903be=_0x258c8b[_0x24e483],_0x39df49=_0x258c8b[_0x3535ce];_0x2903be<=_0x2849b5[_0x112887]&&_0x2849b5[_0x112887]+_0x485c0f<=_0x39df49&&(_0x37e0eb['addRange'](_0x1ea032),_0x58464a=!0x0);}return _0x58464a;};_0x150e75['model']['document']['registerPostFixer'](_0x107a84=>{let _0x8b7ddb=!0x1;for(const _0x25165b of _0x150e75['model']['document']['differ']['getChanges']())if('insert'==_0x25165b['type']){if('tableRow'==_0x25165b['name']){for(const _0x3c1757 of _0x25165b['position']['nodeAfter']['getChildren']())_0x8b7ddb=_0x8b7ddb||_0x3a5da3(_0x3c1757,_0x107a84);}else'tableCell'==_0x25165b['name']&&(_0x8b7ddb=_0x8b7ddb||_0x3a5da3(_0x25165b['position']['nodeAfter'],_0x107a84));}return _0x8b7ddb;});}['_getSuggestionCoords'](_0x360027){return this['_getCoordsForCells'](_0x360027['getRanges']()['map'](_0x3a8270=>_0x3a8270['start']['nodeAfter']));}}function Ee(_0x3a3393){return Array['from'](new Set(_0x3a3393)['values']());}class St extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x2261d6=this['editor'],_0x372599=_0x2261d6['model']['document']['selection'],_0x462cb7=_0x2261d6['locale'];if(!_0x2261d6['plugins']['has']('TableEditing'))return;const _0x4e52ec=_0x2261d6['plugins']['get']('TrackChangesEditing'),_0x2c2e3b=_0x2261d6['plugins']['get']('TableUtils'),_0x5f166f=_0x2261d6['plugins']['get'](jt);_0x5f166f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4e52ec['enableCommand']('mergeTableCells',()=>{const _0xbc3885=_0x2c2e3b['getSelectionAffectedTableCells'](_0x2261d6['model']['document']['selection']);_0x2261d6['model']['change'](()=>{_0x4e52ec['markMultiRangeBlockFormat'](_0xbc3885,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2261d6['commands']['get']('mergeTableCells')['on']('execute',(_0x5a3dfb,_0x3a6ff3)=>{_0x2261d6['commands']['get']('trackChanges')['value']&&(_0x3a6ff3['length']>0x0&&_0x3a6ff3[_0x3a6ff3['length']-0x1]&&_0x3a6ff3[_0x3a6ff3['length']-0x1]['forceDefaultExecution']||_0x4e52ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5a3dfb['stop']());},{'priority':'highest'});for(const _0x17901e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x105769=_0x2261d6['commands']['get'](_0x17901e);_0x4e52ec['enableCommand'](_0x17901e,()=>{const _0x1c1f6f=_0x2261d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fe918=>_0x2fe918['is']('element','tableCell')),_0x5f35c0=_0x105769['value'];_0x2261d6['model']['change'](()=>{_0x4e52ec['markMultiRangeBlockFormat']([_0x1c1f6f,_0x5f35c0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x28b24c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3efb4b=_0x2261d6['commands']['get'](_0x28b24c);_0x4e52ec['enableCommand'](_0x28b24c,()=>{const _0x4bab1c=_0x2c2e3b['getSelectionAffectedTableCells'](_0x2261d6['model']['document']['selection'])[0x0],_0xcc3f7f=_0x4bab1c['findAncestor']('table'),{column:_0x39ae05,row:_0x3fb4dd}=_0x2c2e3b['getCellLocation'](_0x4bab1c);let _0x256b84=[];if('horizontally'==_0x3efb4b['direction']){const _0x5601bc=_0x2c2e3b['createTableWalker'](_0xcc3f7f,{'startRow':_0x3fb4dd,'endRow':_0x3fb4dd,'includeAllSlots':!0x0});_0x256b84=Array['from'](_0x5601bc)['map'](_0x186ec3=>_0x186ec3['cell']);}else{const _0x2310fe=_0x2c2e3b['createTableWalker'](_0xcc3f7f,{'column':_0x39ae05,'includeAllSlots':!0x0});_0x256b84=Array['from'](_0x2310fe)['map'](_0x4434a5=>_0x4434a5['cell']);}_0x2261d6['model']['change'](_0x24724b=>{_0x4e52ec['markBlockFormat'](_0x24724b['createRangeOn'](_0x4bab1c),{'commandName':_0x28b24c,'commandParams':[]},_0x256b84,_0x28b24c);});});}_0x4e52ec['descriptionFactory']['registerDescriptionCallback'](_0x8bcacc=>{if('formatBlock'!=_0x8bcacc['type']&&'formatInline'!=_0x8bcacc['type'])return;const {data:_0x5caaa7}=_0x8bcacc;return _0x5caaa7&&'mergeTableCells'==_0x5caaa7['commandName']?{'type':'format','content':o(_0x462cb7,'*Merge\x20cells*')}:void 0x0;}),_0x4e52ec['descriptionFactory']['registerDescriptionCallback'](_0x13282d=>{if('formatBlock'!=_0x13282d['type']&&'formatInline'!=_0x13282d['type'])return;const {data:_0x515d11}=_0x13282d;return _0x515d11?'splitTableCellVertically'==_0x515d11['commandName']?{'type':'format','content':o(_0x462cb7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x515d11['commandName']?{'type':'format','content':o(_0x462cb7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xc5f61=_0x5f166f['_acceptFormatSuggestionCallbackFactory']();for(const _0x8649bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4e52ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8649bb,'accept',_0xc5f61);for(const _0x57c977 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4e52ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57c977,'accept',_0xc5f61);_0x4e52ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xdaaf8c=>{_0x2261d6['model']['change'](_0x5e4ff7=>{const _0x382917=Array['from'](_0x372599['getRanges']())['map'](_0x18807b=>_0x424176['fromRange'](_0x18807b));_0x5e4ff7['setSelection'](_0xdaaf8c),_0x2261d6['commands']['get']('mergeTableCells')['refresh'](),_0x2261d6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xd5ecc=_0x382917['filter'](_0x86b5a6=>'$graveyard'!=_0x86b5a6['root']['rootName']);_0xd5ecc['length']>0x0&&_0x5e4ff7['setSelection'](_0xd5ecc);for(const _0xf474ee of _0x382917)_0xf474ee['detach']();});});for(const _0x335dbf of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x246db8=_0x2261d6['commands']['get'](_0x335dbf);_0x246db8['on']('set:isEnabled',(_0x17da04,_0x23ee17,_0x54bf63)=>{if(_0x54bf63){const _0x5a3cda=_0x2261d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c8797=>_0x3c8797['is']('element','tableCell'));this['_areMergableCells'](_0x246db8['value'],_0x5a3cda)||(_0x17da04['return']=!0x1,_0x17da04['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd70f2e=this['editor']['commands']['get']('mergeTableCells'),_0x126c2f=this['editor']['plugins']['get']('TableUtils');if(!_0xd70f2e['isEnabled'])return!0x1;const _0x2d5636=_0x126c2f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x40c35d of _0x2d5636)for(const _0x1336c8 of _0x2d5636)if(_0x40c35d!=_0x1336c8&&!this['_areMergableCells'](_0x40c35d,_0x1336c8))return!0x1;return!0x0;}['_areMergableCells'](_0x120e30,_0x1bf71c){const _0x4f5d4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47cbd3=this['editor']['model']['createRangeOn'](_0x120e30),_0x53dfe9=this['editor']['model']['createRangeOn'](_0x1bf71c),_0x6a0a30=new Set(),_0xb1b8d5=new Set();for(const _0x1da999 of _0x4f5d4f['getSuggestions']())if(('insertion'==_0x1da999['type']||'deletion'==_0x1da999['type']||'mergeTableCells'==_0x1da999['subType'])&&_0x1da999['isInContent']){for(const _0x2e05e1 of _0x1da999['getRanges']())_0x2e05e1['containsRange'](_0x47cbd3,!0x0)&&_0x6a0a30['add'](_0x1da999['type']+':'+_0x1da999['author']['id']),_0x2e05e1['containsRange'](_0x53dfe9,!0x0)&&_0xb1b8d5['add'](_0x1da999['type']+':'+_0x1da999['author']['id']);}if(_0x6a0a30['size']!=_0xb1b8d5['size'])return!0x1;for(const _0x3411f5 of _0x6a0a30)if(!_0xb1b8d5['has'](_0x3411f5))return!0x1;return!0x0;}}class At extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x1565a0=this['editor'];if(!_0x1565a0['plugins']['has']('TableEditing'))return;const _0x4e0629=_0x1565a0['locale'],_0x367bcf=_0x1565a0['plugins']['get']('TrackChangesEditing');_0x367bcf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x367bcf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x367bcf['registerBlockAttribute']('headingRows'),_0x367bcf['registerBlockAttribute']('headingColumns'),_0x367bcf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4e0629,'FORMAT_HEADER_ROW')),_0x367bcf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4e0629,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x536120=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e50a9=this['editor']['plugins']['get']('TableUtils'),_0x53c863=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5003d7({showActiveMarker:_0x1be880=!0x0,setDataAttribute:_0x282985=!0x0}={}){return(_0x3a7714,_0x183c99,_0x142711)=>{const {type:_0x560265,id:_0x43e6fe}=_0x536120['_splitMarkerName'](_0x183c99['markerName']),_0x3cb70b=_0x536120['getSuggestion'](_0x43e6fe),_0x274255=_0x3cb70b['data'];if('formatBlock'!=_0x3cb70b['type']||!_0x274255||'setTableColumnHeader'!=_0x274255['commandName'])return;if(_0x183c99['item'])return void _0x3a7714['stop']();if(!_0x142711['consumable']['consume'](_0x183c99['markerRange'],_0x3a7714['name']))return;const _0x2c4d3c=_0x183c99['markerRange']['start']['nodeAfter'],_0x351bbc=_0x183c99['markerRange']['end']['nodeBefore'],_0x44ce6a=_0x2c4d3c['parent']['parent'],{column:_0xa259ac}=_0x2e50a9['getCellLocation'](_0x2c4d3c),{column:_0x336dbe}=_0x2e50a9['getCellLocation'](_0x351bbc);for(let _0x1cc4a1=_0xa259ac;_0x1cc4a1<=_0x336dbe;_0x1cc4a1++){const _0x5c308b=_0x2e50a9['createTableWalker'](_0x44ce6a,{'column':_0x1cc4a1,'includeAllSlots':!0x1});for(const _0x990a0c of _0x5c308b){const _0x5d8c86=_0x990a0c['cell'],_0x3a5848=_0x142711['mapper']['toViewElement'](_0x5d8c86);_0x142711['writer']['addClass']('ck-suggestion-marker-'+_0x560265,_0x3a5848),_0x282985&&_0x142711['writer']['setAttribute']('data-suggestion',_0x43e6fe,_0x3a5848),_0x142711['mapper']['bindElementToMarker'](_0x3a5848,_0x183c99['markerName']),_0x1be880&&(_0x536120['activeMarkers']['includes'](_0x183c99['markerName'])?_0x142711['writer']['addClass']('ck-suggestion-marker--active',_0x3a5848):_0x142711['writer']['removeClass']('ck-suggestion-marker--active',_0x3a5848));}}};}_0x536120['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x53c863),_0x536120['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x53c863),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5003d7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a0c2f,_0x52f0b1,_0x36b695)=>{_0x36b695['options']['showSuggestionHighlights']&&_0x5003d7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a0c2f,_0x52f0b1,_0x36b695);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x57d587,_0x28f2be,_0x315ea9)=>{const {type:_0x5ab5ed,id:_0x53b204}=_0x536120['_splitMarkerName'](_0x28f2be['markerName']),_0xe5ef7e=_0x536120['getSuggestion'](_0x53b204),_0x56b1e0=_0xe5ef7e['data'];if('formatBlock'!=_0xe5ef7e['type']||!_0x56b1e0||'setTableColumnHeader'!=_0x56b1e0['commandName'])return;const _0x5b8673=_0x315ea9['mapper']['markerNameToElements'](_0x28f2be['markerName']);if(_0x5b8673){for(const _0xeb531f of _0x5b8673)_0x315ea9['writer']['removeClass']('ck-suggestion-marker-'+_0x5ab5ed,_0xeb531f),_0x315ea9['writer']['removeClass']('ck-suggestion-marker--active',_0xeb531f),_0x315ea9['writer']['removeAttribute']('data-suggestion',_0xeb531f),_0x315ea9['mapper']['unbindElementFromMarkerName'](_0xeb531f,_0x28f2be['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x399323=this['editor'],_0x1c1239=_0x399323['locale'];function _0x40b015(_0x10e1bf){return{'type':'format','content':o(_0x1c1239,'*Format:*\x20%0',_0x10e1bf)};}_0x399323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57971b=>{if('formatBlock'!=_0x57971b['type'])return;const {data:_0x5612d4}=_0x57971b;if(_0x5612d4){if('setTableRowHeader'==_0x5612d4['commandName']){const _0x6e81dd=_0x5612d4['commandParams'][0x0]['forceValue'];return _0x40b015(o(_0x1c1239,_0x6e81dd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5612d4['commandName']){const _0x408b93=_0x5612d4['commandParams'][0x0]['forceValue'];return _0x40b015(o(_0x1c1239,_0x408b93?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x25b873=>[_0x25b873,null]));class It extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x1d6021=this['editor'];if(!_0x1d6021['plugins']['has']('TableClipboard'))return;const _0xe60a4=_0x1d6021['plugins']['get']('TrackChangesEditing'),_0x4655a6=_0x1d6021['plugins']['get']('TableUtils'),_0x427179=_0x1d6021['plugins']['get'](jt),_0x1e57a8=_0x1d6021['plugins']['get']('TableClipboard');_0x427179['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d6021['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d6021['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ce2e9=null;_0x1d6021['model']['on']('insertContent',(_0x40456b,_0x4b039c)=>{const [_0x7dfce9,_0x13b906]=_0x4b039c,_0xfdb3aa=_0x4b039c[_0x4b039c['length']-0x1];_0xfdb3aa&&_0xfdb3aa['forceDefaultExecution']||_0xe60a4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x327898,_0x1d3614,_0x5b46d6,_0x2fb24a,_0x190e3d){if(_0x1d3614&&!_0x1d3614['is']('documentSelection'))return!0x1;const _0x2f4ffe=_0x190e3d['getTableIfOnlyTableInContent'](_0x327898,_0x5b46d6);if(!_0x2f4ffe||!he(_0x2f4ffe,void 0x0,_0x2fb24a))return!0x1;const _0x37314e=_0x2fb24a['getSelectionAffectedTableCells'](_0x5b46d6['document']['selection']);if(!_0x37314e['length'])return!0x1;const _0x12b1d9=_0x37314e[0x0]['findAncestor']('table'),_0x5adf5f=_0x2fb24a['getRowIndexes'](_0x37314e),_0x57dad0=_0x2fb24a['getColumnIndexes'](_0x37314e),_0x388e3b={'startRow':_0x5adf5f['first'],'endRow':_0x5adf5f['last'],'startColumn':_0x57dad0['first'],'endColumn':_0x57dad0['last']};return 0x1==_0x37314e['length']&&(_0x388e3b['endRow']+=_0x2fb24a['getRows'](_0x2f4ffe)-0x1,_0x388e3b['endColumn']+=_0x2fb24a['getColumns'](_0x2f4ffe)-0x1),he(_0x12b1d9,_0x388e3b,_0x2fb24a);}(_0x7dfce9,_0x13b906,_0x1d6021['model'],_0x4655a6,_0x1e57a8)&&(_0x40456b['stop'](),_0x3ce2e9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d6021['model']['change'](()=>{_0x1d6021['model']['insertContent'](_0x4b039c[0x0],_0x4b039c[0x1],_0x4b039c[0x2],{'forceDefaultExecution':!0x0});const _0x3fd186=_0x336056(),{rowInsertionRanges:_0x3d7313,columnInsertionRanges:_0x1f65c5,insertionRanges:_0x7f43ad,deletionRanges:_0x2da675,cells:_0xf77396}=_0x3ce2e9;_0x3d7313['length']&&_0xe60a4['markMultiRangeInsertion'](_0x3d7313,'tablePasteRow',{'tablePasteChainId':_0x3fd186}),_0x1f65c5['length']&&_0xe60a4['markMultiRangeInsertion'](_0x1f65c5,'tablePasteColumn',{'tablePasteChainId':_0x3fd186}),_0x7f43ad['length']&&(_0xe60a4['markMultiRangeInsertion'](_0x7f43ad,'tablePaste',{'tablePasteChainId':_0x3fd186,'skipNestingCheck':!0x0}),_0x7f43ad['forEach'](_0xb5e6b5=>_0xb5e6b5['detach']?.())),_0x2da675['length']&&(_0xe60a4['markMultiRangeDeletion'](_0x2da675,'tablePaste',{'tablePasteChainId':_0x3fd186,'skipNestingCheck':!0x0}),_0x2da675['forEach'](_0x1e8f5a=>_0x1e8f5a['detach']?.()));const _0x295f69=_0xe60a4['markMultiRangeBlockFormat'](_0xf77396['map'](({element:_0x4dba6b})=>_0x4dba6b),{'formatGroupId':_0x336056()},[],'tablePasteCell',{'tablePasteChainId':_0x3fd186});if(_0x295f69){const _0x1e4cf2=_0x295f69['getMarkers'](),_0x3809a6=[];for(const {element:_0xf1a2f9,attributes:_0xe049ee}of _0xf77396){if(!_0xe049ee)continue;const _0x593aef=_0x1d6021['model']['createRangeOn'](_0xf1a2f9),_0x316b1c=_0x1e4cf2['find'](_0x2c43bf=>_0x2c43bf['getRange']()['isEqual'](_0x593aef));_0x316b1c&&_0x3809a6['push']([_0x316b1c['name'],_0xe049ee]);}_0x3809a6['length']&&_0x295f69['setAttribute']('markerAttributes',Object['fromEntries'](_0x3809a6));}_0x3ce2e9=null;}));},{'priority':_0x1e623f['high']+0xa}),_0x1d6021['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x358ed3,_0x4a3fe6)=>{const [_0x133506,_0x368110,,_0x385028]=_0x4a3fe6;if(!_0x3ce2e9)return;_0x358ed3['stop']();const _0x5bcbda=_0x133506['cell'],_0x39ae10=_0x368110,_0x4f89ab=Pe(_0x5bcbda),_0x26be42=Pe(_0x39ae10);_0x358ed3['return']=_0x5bcbda;let _0x40f3cf=null,_0x1e3f4b=null;if(_0x26be42||_0x4f89ab){if(_0x4f89ab&&!_0x26be42){_0x385028['remove'](_0x5bcbda['getChild'](0x0));for(const _0xb171b2 of Array['from'](_0x39ae10['getChildren']()))_0x385028['insert'](_0xb171b2,_0x5bcbda,'end');const _0x556902=_0x3ce2e9['rowInsertionIndexes']['includes'](_0x133506['row']),_0x299417=_0x3ce2e9['columnInsertionIndexes']['includes'](_0x133506['column']);_0x556902||_0x299417||(_0x40f3cf=_0x424176['fromRange'](_0x385028['createRangeIn'](_0x5bcbda)));}else _0x26be42&&!_0x4f89ab&&(_0x1e3f4b=_0x385028['createRangeIn'](_0x5bcbda));}else{const _0x21b3d0=_0x385028['createElement']('tableCellSuggestion'),_0x4ad3ab=_0x385028['createElement']('tableCellSuggestion');_0x385028['wrap'](_0x385028['createRangeIn'](_0x5bcbda),_0x4ad3ab),_0x385028['insert'](_0x21b3d0,_0x5bcbda,0x0);for(const _0x415e9 of Array['from'](_0x39ae10['getChildren']()))_0x385028['insert'](_0x415e9,_0x21b3d0,'end');_0x40f3cf=_0x424176['fromRange'](_0x385028['createRangeOn'](_0x21b3d0)),_0x1e3f4b=_0x424176['fromRange'](_0x385028['createRangeOn'](_0x4ad3ab));}const _0x3b0a8d=Array['from'](_0x39ae10['getAttributes']())['filter'](([_0x5e889c])=>ge['includes'](_0x5e889c));_0x3ce2e9['cells']['push']({'element':_0x5bcbda,'attributes':_0x3b0a8d['length']?Object['fromEntries'](_0x3b0a8d):null}),_0x40f3cf&&_0x3ce2e9['insertionRanges']['push'](_0x40f3cf),_0x1e3f4b&&_0x3ce2e9['deletionRanges']['push'](_0x1e3f4b);},{'priority':'high'}),_0x4655a6['on']('insertColumns',(_0xe58a1f,_0x2a2deb)=>{const [_0x283190,_0x5f503e={}]=_0x2a2deb;if(!_0x3ce2e9)return;const _0x2cec70=_0x5f503e['at']||0x0,_0x2e9383=_0x5f503e['columns']||0x1;_0x3ce2e9['columnInsertionIndexes']=new Array(_0x2e9383)['fill'](_0x2cec70)['map']((_0x442aef,_0x4307ac)=>_0x442aef+_0x4307ac);for(const {cell:_0x224fbb}of _0x4655a6['createTableWalker'](_0x283190,{'startColumn':_0x2cec70,'endColumn':_0x2cec70+_0x2e9383-0x1}))_0x3ce2e9['columnInsertionRanges']['push'](_0x1d6021['model']['createRangeOn'](_0x224fbb));},{'priority':'low'}),_0x4655a6['on']('insertRows',(_0x51048a,_0x1d00b9)=>{const [_0x2b5116,_0x59b815={}]=_0x1d00b9;if(!_0x3ce2e9)return;const _0x368aa5=_0x59b815['at']||0x0,_0x577dbc=_0x59b815['rows']||0x1;_0x3ce2e9['rowInsertionIndexes']=new Array(_0x577dbc)['fill'](_0x368aa5)['map']((_0x2860da,_0x382249)=>_0x2860da+_0x382249);for(const {cell:_0x5422c2}of _0x4655a6['createTableWalker'](_0x2b5116,{'startRow':_0x368aa5,'endRow':_0x368aa5+_0x577dbc-0x1}))_0x3ce2e9['rowInsertionRanges']['push'](_0x1d6021['model']['createRangeOn'](_0x5422c2));},{'priority':'low'}),_0xe60a4['descriptionFactory']['registerDescriptionCallback'](_0x4988e5=>{if(_0x4988e5['subType']&&_0x4988e5['subType']['startsWith']('tablePaste'))return _0x4988e5['previous']?{}:{'type':'insertion','content':o(_0x1d6021['locale'],'*Replace\x20table\x20cells*')};});const _0x3aa065=()=>!0x1;for(const _0x403024 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xe60a4['_suggestionFactory']['registerCustomCallback']('insertion',_0x403024,'join',_0x3aa065),_0xe60a4['_suggestionFactory']['registerCustomCallback']('deletion',_0x403024,'join',_0x3aa065),_0xe60a4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x403024,'join',_0x3aa065);_0xe60a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3aa065),_0xe60a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a1a56,_0x49ecc6,_0x151f68)=>{const _0x169b1b=_0x1a1a56['map'](_0x20dab7=>_0x20dab7['getContainedElement']())['filter'](_0x22eb6a=>_0x22eb6a),_0x55b98f=new Map(_0x169b1b['map'](_0x33f275=>[_0x33f275,null]));if(_0x3ce2e9){for(const {element:_0x25adbb,attributes:_0xd628b}of _0x3ce2e9['cells'])_0xd628b&&_0x55b98f['set'](_0x25adbb,_0xd628b);}else{if(_0x151f68&&_0x151f68['markerAttributes'])for(const [_0x116b03,_0x1261ef]of Object['entries'](_0x151f68['markerAttributes'])){const _0x265a87=_0x1d6021['model']['markers']['get'](_0x116b03),_0x418c58=_0x265a87?_0x265a87['getRange']()['getContainedElement']():null;_0x418c58&&_0x55b98f['set'](_0x418c58,_0x1261ef);}}_0x1d6021['model']['change'](_0x10bfea=>{for(const [_0x43512c,_0x34a281]of _0x55b98f)_0x10bfea['setAttributes']({...Ce,..._0x34a281},_0x43512c);});});const _0x2919e8=(_0x186292,_0x11f5f7)=>{_0xe60a4['_suggestionFactory']['registerCustomCallback'](_0x186292,'tablePaste',_0x11f5f7,(_0x34e5ca,_0x402d64,_0x26df4c)=>{_0x1d6021['model']['change'](_0x2c53e2=>{const _0x365ffc=[];for(const _0x231836 of _0x34e5ca){const _0x4b6566=_0x231836['start']['nodeAfter'];_0x4b6566['is']('element','tableCellSuggestion')&&_0x365ffc['push'](_0x4b6566);}_0xe60a4['_suggestionFactory']['getSuggestionCallback'](_0x186292,null,_0x11f5f7)(_0x34e5ca,_0x402d64,_0x26df4c);for(const _0x5bcca5 of _0x365ffc)'$graveyard'!=_0x5bcca5['root']['rootName']&&_0x2c53e2['unwrap'](_0x5bcca5);});});};_0x2919e8('insertion','accept'),_0x2919e8('insertion','discard'),_0x2919e8('deletion','accept'),_0x2919e8('deletion','discard'),_0xe60a4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x15c716=>{const _0x135c72=_0x15c716['map'](_0x529137=>_0x529137['getContainedElement']()),_0x2f825e=_0x135c72[0x0]['findAncestor']('table'),{minRow:_0x493e74,maxRow:_0x4dabae}=_0x427179['_getCoordsForCells'](_0x135c72);_0x4655a6['removeRows'](_0x2f825e,{'at':_0x493e74,'rows':_0x4dabae-_0x493e74+0x1});}),_0xe60a4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x42bfab=>{const _0x2e2c7b=_0x42bfab['map'](_0x372e4e=>_0x372e4e['getContainedElement']()),_0x4aa755=_0x2e2c7b[0x0]['findAncestor']('table'),{minColumn:_0x325812,maxColumn:_0x28c079}=_0x427179['_getCoordsForCells'](_0x2e2c7b);_0x4655a6['removeColumns'](_0x4aa755,{'at':_0x325812,'columns':_0x28c079-_0x325812+0x1});});const _0x516968=(_0x139034,_0x4c31e4)=>{if(!_0x4c31e4['subType']||!_0x4c31e4['subType']['startsWith']('tablePaste'))return;const _0x3c541c=_0x4c31e4['attributes']['tablePasteChainId'],_0x2a64d4=_0xe60a4['getSuggestions']()['filter'](_0x37fbda=>_0x37fbda['isInContent']&&_0x37fbda['attributes']&&_0x37fbda['attributes']['tablePasteChainId']==_0x3c541c);_0x2a64d4['length']&&_0x4c31e4['getAllAdjacentSuggestions']()['length']!=_0x2a64d4['length']&&_0x2a64d4['reduce']((_0x4dcb28,_0x33ce58)=>(_0x4dcb28['next']=_0x33ce58,_0x33ce58['previous']=_0x4dcb28,_0x33ce58));};function _0x1123c5(_0x54bae3,_0x250001=!0x0){const {id:_0x11f922}=_0xe60a4['_splitMarkerName'](_0x54bae3['markerName']),_0x1e2327=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4bccf7=_0xe60a4['activeMarkers']['includes'](_0x54bae3['markerName']);return _0x4bccf7&&_0x1e2327['push']('ck-suggestion-marker--active'),{'classes':_0x1e2327,'attributes':{'data-suggestion':_0x11f922},'priority':_0x4bccf7&&_0x250001?0xbc2:0xbb8};}_0xe60a4['on']('suggestionLoaded',_0x516968,{'priority':'high'}),_0xe60a4['on']('suggestionUnloaded',_0x516968,{'priority':'high'}),_0x1d6021['model']['document']['registerPostFixer'](()=>{let _0x59debd=!0x1;const _0x30c472=Array['from'](_0x1d6021['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b7a25,data:_0x23f3cc}of _0x30c472){const {group:_0x21292b,type:_0x562ece,id:_0x15b471}=_0xe60a4['_splitMarkerName'](_0x5b7a25);if('suggestion'!=_0x21292b||'deletion'!=_0x562ece||_0x23f3cc['oldRange'])continue;if(!_0xe60a4['hasSuggestion'](_0x15b471))continue;const _0x3ae0ec=_0xe60a4['getSuggestion'](_0x15b471)['getRanges'](),_0x391095=_0x1d6021['plugins']['get']('Users')['me'];for(const _0x8a7db3 of _0xe60a4['getSuggestions']()){if(!_0x8a7db3['isInContent']||_0x8a7db3['author']!=_0x391095)continue;if('formatBlock'!=_0x8a7db3['type']||'tablePasteCell'!=_0x8a7db3['subType'])continue;if(_0x8a7db3['getRanges']()['every'](_0x39998a=>_0x3ae0ec['some'](_0x4a5e16=>_0x4a5e16['containsRange'](_0x39998a,!0x0)))){for(const _0x232de0 of _0x8a7db3['getAllAdjacentSuggestions']())_0x232de0['isInContent']&&(_0x232de0['discard'](),_0x59debd=!0x0);}}}return _0x59debd;}),_0x1d6021['model']['document']['registerPostFixer'](_0x57e3e4=>{const _0x5c496f=_0x1d6021['commands']['get']('redo');if(!_0x5c496f||!_0x5c496f['_createdBatches']['has'](_0x57e3e4['batch']))return!0x1;let _0x7d25e4=!0x1;const _0x2b0e57=_0x1d6021['plugins']['get']('Users')['me'],_0x2d2f8e=_0x1d6021['model']['document']['differ']['getChanges'](),_0x152995=Array['from'](_0x1d6021['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x382d95,data:_0x377611})=>{const {group:_0x339cbe,subType:_0x34b0f9,authorId:_0x2a0912}=_0xe60a4['_splitMarkerName'](_0x382d95);return'suggestion'==_0x339cbe&&'tablePaste'==_0x34b0f9&&_0x2a0912==_0x2b0e57['id']&&!_0x377611['oldRange'];});for(const _0x1f47bf of _0x2d2f8e){if('insert'!=_0x1f47bf['type']||'tableCellSuggestion'!=_0x1f47bf['name']||0x1!=_0x1f47bf['length'])continue;const _0x29ca75=_0x57e3e4['createRange'](_0x1f47bf['position'],_0x1f47bf['position']['getShiftedBy'](0x1));if(!_0x152995['find'](({data:_0x1792fd})=>_0x1792fd['newRange']['isEqual'](_0x29ca75))){for(const {name:_0x3d8b43,data:_0x4b2adf}of _0x152995)if(_0x29ca75['containsRange'](_0x4b2adf['newRange'])){_0x57e3e4['updateMarker'](_0x3d8b43,{'range':_0x29ca75}),_0x7d25e4=!0x0;break;}}}return _0x7d25e4;}),_0x1d6021['model']['document']['registerPostFixer'](_0x4ea496=>{let _0x471910=!0x1;const _0x957ba=_0x1d6021['plugins']['get']('Users')['me'],_0x46d890=_0xe60a4['getSuggestions']()['filter'](_0x1450b9=>_0x1450b9['isInContent']&&_0x1450b9['author']==_0x957ba),_0x347223=new Set(),_0xca436d=new Set();for(const _0x5eeaa4 of _0x46d890)if('tablePaste'==_0x5eeaa4['subType'])for(const _0x1d938e of _0x5eeaa4['getMarkers']()){const _0x54d823=_0x1d938e['getRange']()['getContainedElement']();if(_0x54d823){if(_0x54d823['is']('element','tableCellSuggestion')&&Pe(_0x54d823)){_0x5eeaa4['removeMarker'](_0x1d938e['name']),_0x347223['add'](_0x54d823),_0x471910=!0x0;const _0x1da7da=_0x54d823['nextSibling'],_0x375047=_0x54d823['previousSibling'],_0xfaaa88=_0x1da7da&&_0x1da7da['is']('element','tableCellSuggestion'),_0x5d417b=_0x375047&&_0x375047['is']('element','tableCellSuggestion');_0xfaaa88&&!_0x347223['has'](_0x1da7da)&&_0xca436d['add'](_0x1da7da),_0x5d417b&&!_0x347223['has'](_0x375047)&&_0xca436d['add'](_0x375047);}else _0x54d823['is']('element','paragraph')&&_0x54d823['isEmpty']&&(_0x5eeaa4['removeMarker'](_0x1d938e['name']),_0x471910=!0x0);}}else{if('tablePasteCell'==_0x5eeaa4['subType']){if(!_0x5eeaa4['attributes']||!_0x5eeaa4['attributes']['tablePasteChainId'])continue;const _0x25e1a0=_0x5eeaa4['attributes']['markerAttributes'];if(_0x25e1a0&&Object['keys'](_0x25e1a0)['length'])continue;const _0x5e2810=_0x5eeaa4['attributes']['tablePasteChainId'];let _0x4d01c1=!0x0,_0x48e23f=!0x0;for(const _0x3aebac of _0x46d890)if(_0x3aebac['subType']&&_0x3aebac['subType']['startsWith']('tablePaste')){if(!_0x3aebac['attributes']['tablePasteChainId']){_0x48e23f=!0x1;break;}if(_0x3aebac['id']!=_0x5eeaa4['id']&&_0x3aebac['attributes']['tablePasteChainId']==_0x5e2810){_0x4d01c1=!0x1;break;}}_0x48e23f&&_0x4d01c1&&(_0x5eeaa4['removeMarkers'](),_0x471910=!0x0);}}for(const _0x1b726d of _0x347223)_0x4ea496['remove'](_0x1b726d);for(const _0x5e0a6f of _0xca436d)_0x4ea496['unwrap'](_0x5e0a6f);return _0x471910;}),_0x1d6021['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x495b4c,_0x3a14c5)=>_0x1123c5(_0x495b4c),'converterPriority':'high'}),_0x1d6021['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x128b9a,_0x2a8acc)=>_0x2a8acc['options']['showSuggestionHighlights']?_0x1123c5(_0x128b9a,!0x1):null,'converterPriority':'high'});const _0x161a80=_0x1d6021['editing']['view'];this['listenTo'](_0x161a80['document'],'clipboardOutput',(_0x5888ec,_0x163f23)=>{const _0x7e503e=[];for(const _0x5b8102 of _0x161a80['createRangeIn'](_0x163f23['content'])['getItems']())_0x5b8102['is']('element','suggestion-td')&&_0x7e503e['push'](_0x5b8102);_0x161a80['change'](_0x248647=>{for(const _0x3b9912 of _0x7e503e)_0x248647['move'](_0x248647['createRangeIn'](_0x3b9912),_0x248647['createPositionBefore'](_0x3b9912)),_0x248647['remove'](_0x3b9912);});});}}function Pe(_0x505f59){if(_0x505f59['isEmpty'])return!0x0;const _0x394f68=_0x505f59['getChild'](0x0);return _0x394f68['is']('element','paragraph')&&_0x394f68['isEmpty'];}function he(_0x17fe40,_0x137047={},_0x4bc6b0){for(const {isAnchor:_0x2c230c,cellHeight:_0x471008,cellWidth:_0x3dce7d}of _0x4bc6b0['createTableWalker'](_0x17fe40,{'includeAllSlots':!0x0,..._0x137047}))if(!_0x2c230c||0x1!=_0x471008||0x1!=_0x3dce7d)return!0x1;return!0x0;}class vt extends _0x470f93{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5bf6f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bf6f9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5bf6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5bf6f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bf6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5bf6f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5bf6f9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x58c5b4,_0x57ec21){const _0x9cf738=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56ed08=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x166c3c=_0x57ec21['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d84e4=_0x56ed08['getColumnGroupElement'](_0x166c3c);let _0x307cdb=_0x3d84e4?_0x56ed08['getTableColumnsWidths'](_0x3d84e4):null,_0x568fdd=_0x166c3c['getAttribute']('tableWidth')||null;const _0x273b64=_0x57ec21['tableWidth']||_0x568fdd,_0x92c65e=_0x57ec21['columnWidths']||_0x307cdb,_0x2e7848=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e19ec of _0x9cf738['getSuggestions']()){const _0x55642e=_0x4e19ec['getContainedElement']();if('resizeTable'===_0x4e19ec['subType']&&_0x55642e===_0x166c3c){_0x4e19ec['author']!==_0x2e7848&&_0x4e19ec['discard']();const _0x123685=_0x4e19ec['data']['commandParams'];_0x568fdd=_0x123685[0x0]['tableWidth'],_0x307cdb=_0x123685[0x0]['columnWidths'];break;}}_0x58c5b4({'table':_0x166c3c,'tableWidth':_0x273b64,'columnWidths':_0x92c65e}),_0x9cf738['markBlockFormat'](_0x166c3c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x568fdd,'columnWidths':_0x307cdb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x253374){if('formatBlock'!=_0x253374['type']&&'formatInline'!=_0x253374['type'])return;const {data:_0x39addc}=_0x253374;if(_0x39addc&&'resizeTable'===_0x39addc['formatGroupId']){const _0x2158cb='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2158cb)};}}}class Ct extends _0x470f93{['afterInit'](){const _0x36f3cc=this['editor'];_0x36f3cc['plugins']['has']('Template')&&_0x36f3cc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x470f93{['afterInit'](){const _0x268ca2=this['editor'];if(!_0x268ca2['commands']['get']('insertTableOfContents'))return;_0x268ca2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x247e55=_0x268ca2['plugins']['get']('TrackChangesEditing'),_0x1313da=_0x268ca2['locale'];_0x247e55['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1b72a8=>o(_0x1313da,'ELEMENT_TABLE_OF_CONTENTS',_0x1b72a8));}}class Dt extends _0x470f93{['afterInit'](){const _0x2e3c04=this['editor'];if(!_0x2e3c04['plugins']['has']('Title'))return;const _0x238ead=_0x2e3c04['plugins']['get']('TrackChangesEditing');_0x238ead['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e3c04['locale'],'ELEMENT_TITLE')),_0x2e3c04['model']['document']['registerPostFixer'](_0x3bf4b0=>{let _0x3c7d7a=!0x1;const _0x5bddec=Array['from'](_0x2e3c04['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x469520,data:_0xe640cb}of _0x5bddec){const {group:_0x10f285}=_0x238ead['_splitMarkerName'](_0x469520);if('suggestion'!==_0x10f285||!_0xe640cb['newRange'])continue;const _0x3701a2=_0xe640cb['newRange'],_0x32a107=_0x3701a2['end']['nodeBefore'];if(!_0x32a107||!_0x32a107['is']('element','title-content'))continue;if(!_0x3701a2['start']['isTouching'](_0x3701a2['end']))continue;const _0x4f5ec1=_0x2e3c04['model']['schema']['getNearestSelectionRange'](_0x3701a2['end'],'forward');if(_0x4f5ec1&&_0x4f5ec1['isCollapsed']){const _0x4e9545=_0x3bf4b0['createRange'](_0x3701a2['start'],_0x4f5ec1['start']);_0x4e9545['isEqual'](_0x3701a2)||(_0x3bf4b0['updateMarker'](_0x469520,{'range':_0x4e9545}),_0x3c7d7a=!0x0);}_0x3c7d7a||(_0x3bf4b0['removeMarker'](_0x469520),_0x3c7d7a=!0x0);}return _0x3c7d7a;});}}class Nt extends _0x470f93{['afterInit'](){const _0x2df684=this['editor'],_0x4c3c13=_0x2df684['plugins']['get']('TrackChangesEditing');_0x2df684['plugins']['has']('UndoEditing')&&(_0x4c3c13['enableCommand']('undo'),_0x4c3c13['enableCommand']('redo'));}}class Mt extends _0x470f93{static get['requires'](){return[jt];}['afterInit'](){const _0x50643e=this['editor'];if(!_0x50643e['plugins']['has']('TableCaptionEditing'))return;_0x50643e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x470f93{['tableProperties'];['tableCellProperties'];constructor(_0xe9a88c){super(_0xe9a88c),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 _0xf2f394=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xe04df3 of this['tableProperties'])_0xf2f394['enableCommand'](_0xe04df3,(_0x24383c,_0x4d41d0)=>{const _0x1c5adf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xe04df3,[_0x1c5adf],this['tableProperties'],'tableProperties',_0x24383c,_0x4d41d0);});_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xf2f394['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x525e06,_0x1cda1d)=>this['handleDiscardAction'](this['tableProperties'],_0x525e06,_0x1cda1d)),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x455b88 of this['tableCellProperties'])_0xf2f394['enableCommand'](_0x455b88,(_0x961832,_0x40b9fe)=>{const _0x4fdb28=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x455b88,_0x4fdb28,this['tableCellProperties'],'tableCellProperties',_0x961832,_0x40b9fe);});_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xf2f394['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f91ef,_0xdc97d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f91ef,_0xdc97d5)),_0xf2f394['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xf2f394['descriptionFactory']['registerDescriptionCallback'](_0x9676d4=>this['handleSuggestionDescription'](_0x9676d4));}['_handlePropertyChange'](_0x5418c5,_0x356ee7,_0x41b5e7,_0xb30dad,_0x4fadf5,_0x2865bd){const _0x4b2aef=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2865bd['batch'],()=>{for(const _0x5287b4 of _0x356ee7){if(this['_getSuggestion'](_0x5287b4,_0xb30dad))_0x4fadf5(_0x2865bd);else{const _0x2479ee={};for(const _0x49ae16 of _0x41b5e7){const _0x446413=_0x5287b4['getAttribute'](_0x49ae16);void 0x0!==_0x446413&&(_0x2479ee[_0x49ae16]=_0x446413);}_0x4fadf5(_0x2865bd),_0x4b2aef['markBlockFormat'](_0x5287b4,{'commandParams':[_0x2479ee]},[],_0xb30dad);}}});}['handleDiscardAction'](_0x59a7f2,_0x3e42b9,_0x1746fd){const _0x36e799=_0x3e42b9[0x0]['start']['nodeAfter'],_0x204ab8=_0x1746fd['commandParams'][0x0];this['editor']['model']['change'](_0x28df63=>{for(const _0x1341f8 of _0x59a7f2)void 0x0!==_0x204ab8[_0x1341f8]?_0x28df63['setAttribute'](_0x1341f8,_0x204ab8[_0x1341f8],_0x36e799):_0x28df63['removeAttribute'](_0x1341f8,_0x36e799);});}['handleSuggestionDescription'](_0x2dc541){if(_0x2dc541['data'])switch(_0x2dc541['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'](_0x320d25,_0x1749f1){const _0x466b05=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c4988 of _0x466b05['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a440a=_0x1c4988['getContainedElement']();if(_0x1c4988['subType']===_0x1749f1&&_0x1a440a===_0x320d25)return _0x1c4988;}return null;}}const m='$elementName';class p extends _0x470f93{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x26cba0,_0x1ae075,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(_0x344fad){function _0x40c8c6(_0x10c55b){return _0x10c55b['map'](_0x3e80ec=>String['fromCharCode'](_0x3e80ec))['join']('');}super(_0x344fad),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x51c086,_0x9a54a0,_0x385963,_0x4523fa)=>{this['_model']['change'](()=>{for(const _0x43a3f1 of[..._0x4523fa,..._0x385963])this['_model']['markers']['has'](_0x43a3f1)&&_0x344fad['editing']['reconvertMarker'](_0x43a3f1);});}),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']=_0x344fad['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(),_0x344fad['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x344fad['config']['get']('trackChanges.trackFormatChanges'),_0x344fad['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x344fad['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x344fad,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x40c8c6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x40c8c6([0x34,0x30,0x34,0x38,0x31,0x32,0x35,0x38]);}['init'](){const _0x2bc27b=this['editor'],_0x1443d1=(_0x50f3b2,_0x4845b8)=>{if('attribute'!=_0x50f3b2)return'ck-suggestion-marker-'+_0x50f3b2;const _0x59a91c=_0x4845b8['split']('|')[0x0];return this['_isBlockAttribute'](_0x59a91c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2bc27b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1db48a=>{const {id:_0x13d85a,type:_0x15e9e3,subType:_0x46e748}=this['_splitMarkerName'](_0x1db48a['markerName']),_0x205a9a=['ck-suggestion-marker',_0x1443d1(_0x15e9e3,_0x46e748)];let _0x1e3278=0xbb8;return this['activeMarkers']['includes'](_0x1db48a['markerName'])&&(_0x205a9a['push']('ck-suggestion-marker--active'),_0x1e3278=0xbc2),'deletion'==_0x15e9e3&&(_0x1e3278+=0x5),{'classes':_0x205a9a,'attributes':{'data-suggestion':_0x13d85a},'priority':_0x1e3278};}}),_0x2bc27b['conversion']['for']('dataDowncast')['add'](_0x47be85=>{_0x47be85['on']('addMarker:suggestion',(_0x5d2d55,_0x286277,_0x456e46)=>{if(!_0x456e46['options']['showSuggestionHighlights'])return;const _0x2b38ab=_0x286277['item'];if(!_0x2b38ab)return;const _0x522dee=_0x456e46['mapper']['toViewElement'](_0x2b38ab);_0x2bc27b['model']['schema']['isObject'](_0x2b38ab)&&_0x522dee&&!_0x522dee['getCustomProperty']('widget')&&_0x522dee['is']('containerElement')&&_0x3676ef(_0x522dee,_0x456e46['writer']);},{'priority':'high'});}),_0x2bc27b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xbc6ff2,_0x99ce16)=>{if(!_0x99ce16['options']['showSuggestionHighlights'])return null;const {type:_0x5eaac4,subType:_0x3c8351}=this['_splitMarkerName'](_0xbc6ff2['markerName']);return{'classes':['ck-suggestion-marker',_0x1443d1(_0x5eaac4,_0x3c8351)],'priority':0xbb8};}});const _0x3f5670=({showActiveMarkers:_0x481f1e=!0x0,isAttributeSuggestion:_0x3e5f7a=!0x1}={})=>(_0x29e435,_0xbee82d,_0x1585f6)=>{if(!_0xbee82d['item'])return;const {id:_0x1a6bf8}=this['_splitMarkerName'](_0xbee82d['markerName']);if(_0x3e5f7a){const _0x1d3f1b=this['_suggestions']['get'](_0x1a6bf8),_0x283962=this['_getAttributeKey'](_0x1d3f1b);if(!this['_isBlockAttribute'](_0x283962))return;}if(_0xbee82d['item']['is']('selection'))return void _0x1585f6['consumable']['consume'](_0xbee82d['item'],_0x29e435['name']);const _0x3bd236=_0x1585f6['mapper']['toViewElement'](_0xbee82d['item']);if(_0xbee82d['item']['is']('element')&&_0x2bc27b['model']['schema']['isBlock'](_0xbee82d['item'])&&!_0x3bd236['getCustomProperty']('addHighlight')){_0x1585f6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3bd236),_0x1585f6['writer']['setAttribute']('data-suggestion',_0x1a6bf8,_0x3bd236),_0x1585f6['mapper']['bindElementToMarker'](_0x3bd236,_0xbee82d['markerName']),_0x481f1e&&(this['activeMarkers']['includes'](_0xbee82d['markerName'])?_0x1585f6['writer']['addClass']('ck-suggestion-marker--active',_0x3bd236):_0x1585f6['writer']['removeClass']('ck-suggestion-marker--active',_0x3bd236));for(const _0x3f994f of _0x2bc27b['model']['createRangeIn'](_0xbee82d['item'])['getItems']())_0x1585f6['consumable']['consume'](_0x3f994f,_0x29e435['name']);_0x1585f6['consumable']['consume'](_0xbee82d['item'],_0x29e435['name']);}};_0x2bc27b['conversion']['for']('dataDowncast')['add'](_0x4c6c40=>{_0x4c6c40['on']('addMarker:suggestion:formatBlock',(_0x25c397,_0x51019f,_0x50c9e3)=>{_0x50c9e3['options']['showSuggestionHighlights']&&_0x3f5670({'showActiveMarkers':!0x1})(_0x25c397,_0x51019f,_0x50c9e3);},{'priority':'highest'});}),_0x2bc27b['conversion']['for']('dataDowncast')['add'](_0x17549c=>{_0x17549c['on']('addMarker:suggestion:attribute',(_0x11afcd,_0x5ae99b,_0x44ebfa)=>{_0x44ebfa['options']['showSuggestionHighlights']&&_0x3f5670({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x11afcd,_0x5ae99b,_0x44ebfa);},{'priority':'highest'});}),_0x2bc27b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x929b8e,_0x52b463)=>_0x52b463['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x929b8e['substr'](0xb)}}),_0x2bc27b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ab55d,{writer:_0x1d0e9d})=>{let _0x7f1c6f='suggestion:'+_0x5ab55d['getAttribute']('suggestion-type')+':'+_0x5ab55d['getAttribute']('id');return _0x5ab55d['getAttribute']('marker-count')&&(_0x7f1c6f+=':'+_0x5ab55d['getAttribute']('marker-count')),_0x1d0e9d['createElement']('$marker',{'data-name':_0x7f1c6f});}}),_0x2bc27b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x154320=>{_0x154320['on']('addMarker:suggestion:formatBlock',_0x3f5670(),{'priority':'high'});}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x3daf20=>{_0x3daf20['on']('addMarker:suggestion:attribute',_0x3f5670({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x528c7f=>{_0x528c7f['on']('removeMarker:suggestion:formatBlock',(_0x4df83d,_0x492e3a,_0x3e5ac6)=>{const _0xfb3034=_0x3e5ac6['mapper']['markerNameToElements'](_0x492e3a['markerName']);if(_0xfb3034){for(const _0x2686a5 of _0xfb3034)_0x2686a5['getCustomProperty']('addHighlight')||(_0x3e5ac6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2686a5),_0x3e5ac6['writer']['removeAttribute']('data-suggestion',_0x2686a5),_0x3e5ac6['mapper']['unbindElementFromMarkerName'](_0x2686a5,_0x492e3a['markerName']));}},{'priority':'high'});}),_0x2bc27b['conversion']['for']('editingDowncast')['add'](_0x58e9d0=>{_0x58e9d0['on']('removeMarker:suggestion:attribute',(_0x161a94,_0x42ec4f,_0x4ddbef)=>{const _0xa61561=_0x4ddbef['mapper']['markerNameToElements'](_0x42ec4f['markerName']);if(!_0xa61561)return;const {id:_0x23889b}=this['_splitMarkerName'](_0x42ec4f['markerName']),_0x883a30=this['_suggestions']['get'](_0x23889b),_0x52bca5=this['_getAttributeKey'](_0x883a30);if(this['_isBlockAttribute'](_0x52bca5)){for(const _0x1a5204 of _0xa61561)_0x1a5204['getCustomProperty']('addHighlight')||(_0x4ddbef['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a5204),_0x4ddbef['writer']['removeAttribute']('data-suggestion',_0x1a5204),_0x4ddbef['mapper']['unbindElementFromMarkerName'](_0x1a5204,_0x42ec4f['markerName']));}},{'priority':'high'});}),_0x2bc27b['model']['document']['registerPostFixer'](_0x5c4109=>{let _0x4f5727=!0x1;const _0x4219d1=Array['from'](_0x2bc27b['model']['document']['differ']['getChangedMarkers']()),_0x1e33be=new Set();for(const {name:_0x333677,data:_0x28d160}of _0x4219d1){const {group:_0x1ddbd3,type:_0x2c07dc,subType:_0x126c2a,id:_0xd5700}=this['_splitMarkerName'](_0x333677);if('suggestion'!==_0x1ddbd3)continue;const _0x4f4b31=this['_suggestions']['get'](_0xd5700);if(null!=_0x28d160['newRange']){'formatInline'==_0x2c07dc&&(_0x4f5727=_0x4f5727||Et(_0x28d160['newRange'],_0x333677,_0x5c4109,_0x2bc27b['model']['schema']));const _0xe03295='attribute'==_0x2c07dc&&this['_isBlockAttribute'](_0x126c2a['split']('|')[0x0]);if(_0x28d160['newRange']['isCollapsed']||'$graveyard'==_0x28d160['newRange']['root']['rootName']||'formatBlock'==_0x2c07dc&&!Ut(_0x28d160['newRange'])||_0xe03295&&!Ut(_0x28d160['newRange'])||'deletion'==_0x2c07dc&&!(!Tt(_0x5df2e1=_0x28d160['newRange'])&&!function(_0x587e6c){return _0x587e6c['start']['parent']==_0x587e6c['end']['nodeBefore']&&_0x587e6c['start']['isAtEnd'];}(_0x5df2e1)))_0x5c4109['removeMarker'](_0x333677),_0x4f5727=!0x0;else{if(!_0x4f4b31||!_0x4f4b31['isInContent'])continue;_0x1e33be['add'](_0x4f4b31);}}}var _0x5df2e1;return _0x1e33be['size']>0x0&&(_0x4f5727=!!this['_joinWithAdjacentSuggestions'](_0x1e33be)||_0x4f5727),_0x4f5727;}),_0x2bc27b['model']['document']['registerPostFixer'](_0x59b919=>{let _0x4cb92e=!0x1;for(const _0x5dcb47 of _0x2bc27b['model']['document']['differ']['getChanges']())if('insert'==_0x5dcb47['type'])for(const _0x514234 of this['_suggestions']['values']()){if(_0x514234['isMultiRange']||!_0x514234['isInContent'])continue;const _0x5167a='formatBlock'==_0x514234['type'],_0x2aa64f=this['_getAttributeKey'](_0x514234),_0x342da0=_0x2aa64f&&this['_isBlockAttribute'](_0x2aa64f);if(!_0x5167a&&!_0x342da0)continue;const _0x5d0010=_0x514234['getFirstRange']();if(_0x5d0010['start']['parent']!=_0x5d0010['end']['parent']&&!_0x5d0010['end']['isAtEnd']){const _0x2c0cd4=_0x2bc27b['model']['createPositionAt'](_0x5d0010['start']['nodeAfter'],'end'),_0x576f8e=_0x2bc27b['model']['createRange'](_0x5d0010['start'],_0x2c0cd4);_0x59b919['updateMarker'](_0x514234['getFirstMarker'](),{'range':_0x576f8e}),_0x4cb92e=!0x0;}}return _0x4cb92e;}),_0x2bc27b['model']['document']['registerPostFixer'](_0x2d2410=>this['_processAttributeChanges'](_0x2d2410)),_0x2bc27b['model']['document']['registerPostFixer'](_0x34c7ee=>!_0x34c7ee['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34c7ee)),_0x2bc27b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2bc27b['model']['document']['on']('change:data',(_0x45db11,_0x2dd1dc)=>{if(!_0x2dd1dc['isLocal']||_0x2dd1dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56bd1b=_0x2bc27b['model']['document']['differ']['getChanges']();if(0x0==_0x56bd1b['length'])return;const _0x552738=[],_0x3cd6ab=_0x56bd1b['filter'](_0x4d54f1=>'attribute'==_0x4d54f1['type']),_0x281935=_0x56bd1b['filter'](_0x592813=>'insert'==_0x592813['type']&&'$text'!=_0x592813['name']);for(const _0x286cbc of _0x3cd6ab)this['_isRegisteredAttribute'](_0x286cbc['attributeKey'])&&_0x552738['push']({'key':_0x286cbc['attributeKey'],'newValue':_0x286cbc['attributeNewValue'],'oldValue':_0x286cbc['attributeOldValue'],'range':Ot(_0x286cbc['range'],_0x2bc27b['model'])});for(const _0x12e67e of _0x281935){if('rename'!=_0x12e67e['action']&&'refresh'!=_0x12e67e['action'])continue;const _0x14649c=Gt(_0x12e67e['position']['nodeAfter'],_0x2bc27b['model']),_0x55167a=_0x12e67e['before'];'rename'==_0x12e67e['action']&&_0x552738['push']({'key':m,'newValue':_0x12e67e['name'],'oldValue':_0x55167a['name'],'range':_0x14649c});for(const [_0x2b0de2,_0x4f62eb]of _0x55167a['attributes']){if(!this['_isRegisteredAttribute'](_0x2b0de2))continue;const _0x55b51e=_0x12e67e['attributes']['get'](_0x2b0de2);_0x4f62eb!==_0x55b51e&&_0x552738['push']({'key':_0x2b0de2,'newValue':_0x55b51e,'oldValue':_0x4f62eb,'range':_0x14649c});}for(const [_0x51f034,_0x4d39d4]of _0x12e67e['attributes'])this['_isRegisteredAttribute'](_0x51f034)&&(_0x55167a['attributes']['has'](_0x51f034)||_0x552738['push']({'key':_0x51f034,'newValue':_0x4d39d4,'oldValue':null,'range':_0x14649c}));}0x0!=_0x552738['length']&&_0x2bc27b['model']['enqueueChange'](_0x2dd1dc,_0x2e75eb=>{const _0x4c44c7=_0x336056();for(const {range:_0x3a9155,key:_0x2f01f2,oldValue:_0x42276d,newValue:_0x111a01}of _0x552738)this['markAttributeChange'](_0x3a9155,_0x2f01f2,_0x42276d,_0x111a01,{'groupId':_0x4c44c7});this['_reduceExistingSuggestions'](_0x2e75eb,_0x552738);});},{'priority':'lowest'}),_0x2bc27b['model']['markers']['on']('update:suggestion',(_0x2ec83b,_0x28d30a,_0x207c0d)=>{if(null==_0x207c0d){const {id:_0x44fb0b}=this['_splitMarkerName'](_0x28d30a['name']),_0xf27b81=this['_suggestions']['get'](_0x44fb0b);_0xf27b81&&_0xf27b81['addMarkerName'](_0x28d30a['name']);}}),_0x2bc27b['model']['document']['on']('change:data',()=>{const _0x361f78=Array['from'](_0x2bc27b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x40023b=>'suggestion'===this['_splitMarkerName'](_0x40023b['name'])['group']);if(0x0===_0x361f78['length'])return;_0x361f78['sort']((_0x39d8c5,_0x87c225)=>{const _0x2358a1=_0x39d8c5['data']['oldRange'],_0x22c8ab=_0x87c225['data']['oldRange'];return null===_0x2358a1&&null===_0x22c8ab?0x0:null===_0x2358a1&&null!==_0x22c8ab?-0x1:null!==_0x2358a1&&null===_0x22c8ab?0x1:_0x2358a1['start']['isBefore'](_0x22c8ab['start'])?-0x1:0x1;});const _0x347553=new Set(),_0x20ed05=new Set();for(const {name:_0xf33df4,data:_0x46cdfe}of _0x361f78){const {id:_0x477d3d}=this['_splitMarkerName'](_0xf33df4);if(null===_0x46cdfe['oldRange']){const _0x3c4af0=this['_handleNewSuggestionMarker'](_0xf33df4);_0x20ed05['add'](_0x3c4af0);}else{const _0x230b68=this['_suggestions']['get'](_0x477d3d);null!==_0x46cdfe['newRange']||_0x230b68['isInContent']?(_0x347553['add'](_0x230b68['head']),_0x20ed05['add'](_0x230b68)):this['_removeSuggestion'](_0x230b68);}}_0x20ed05['size']>0x0&&this['_refreshSuggestionsChain'](_0x20ed05);for(const _0x2d2886 of _0x347553)this['fire']('suggestionChanged',_0x2d2886);}),_0x2bc27b['model']['on']('applyOperation',(_0x3ef83d,_0x4fe44e)=>{const _0x533254=_0x4fe44e[0x0];if(!this['_suggestions']['size'])return;if(!_0x533254['isDocumentOperation'])return;if(_0x533254['batch']['isUndo']||!_0x533254['batch']['isLocal'])return;let _0x1136cd,_0x452f86;switch(_0x533254['type']){case'insert':_0x1136cd=_0x2bc27b['model']['createPositionAt'](_0x533254['position']),_0x452f86=_0x1136cd['getShiftedBy'](_0x533254['howMany']);break;case'split':_0x1136cd=_0x2bc27b['model']['createPositionAt'](_0x533254['splitPosition']),_0x452f86=_0x2bc27b['model']['createPositionAt'](_0x533254['moveTargetPosition']);break;case'move':_0x1136cd=_0x2bc27b['model']['createPositionAt'](_0x533254['targetPosition']),_0x452f86=_0x1136cd['getShiftedBy'](_0x533254['howMany']);break;default:return;}const _0x2810b6=_0x2bc27b['model']['createRange'](_0x1136cd,_0x452f86);_0x2bc27b['model']['change'](()=>{for(const {suggestion:_0x47f2b3,meta:_0x3904c7}of this['_findSuggestions'](_0x2810b6)){if(_0x47f2b3['isMultiRange'])continue;if('formatInline'==_0x47f2b3['type'])continue;const _0xf1d53b=this['_getAttributeKey'](_0x47f2b3);if(_0xf1d53b&&this['_isBlockAttribute'](_0xf1d53b)&&'split'!=_0x533254['type'])continue;const _0x1a47bc=_0x47f2b3['data']&&_0x47f2b3['data']['multipleBlocks'];('formatBlock'!=_0x47f2b3['type']||'split'==_0x533254['type']&&!_0x1a47bc)&&(_0x3904c7['containsRangeInObject']||'insertion'==_0x47f2b3['type']&&_0x3904c7['isOwn']||_0x47f2b3['getFirstRange']()['containsRange'](_0x2810b6)&&this['_breakSuggestionMarker'](_0x47f2b3,_0x1136cd,_0x452f86));}});},{'priority':'lowest'}),_0x2bc27b['model']['on']('deleteContent',(_0x173015,_0x133439)=>{const _0x37f4de=_0x133439[0x0],_0x4f21a1=_0x133439[0x1];if(_0x4f21a1&&_0x4f21a1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x37f4de['isCollapsed'])return;const _0x3172fc=_0x2bc27b['model']['schema'],{start:_0x247ed4,end:_0x8e019a}=_0x37f4de['getFirstRange'](),_0x431854=_0x247ed4['nodeAfter']&&_0x3172fc['isLimit'](_0x247ed4['nodeAfter'])?null:_0x3172fc['getNearestSelectionRange'](_0x247ed4,'forward'),_0x6b2fb3=_0x8e019a['nodeBefore']&&_0x3172fc['isLimit'](_0x8e019a['nodeBefore'])?null:_0x3172fc['getNearestSelectionRange'](_0x8e019a,'backward'),_0x278f96=_0x2bc27b['model']['createRange'](_0x431854?_0x431854['start']:_0x247ed4,_0x6b2fb3?_0x6b2fb3['end']:_0x8e019a);_0x2bc27b['model']['change'](_0x4150be=>{this['markDeletion'](_0x278f96);const _0x53ef0e=_0x2bc27b['model']['schema']['getNearestSelectionRange'](_0x278f96['start']);_0x37f4de['is']('documentSelection')?_0x4150be['setSelection'](_0x53ef0e):_0x37f4de['setTo'](_0x53ef0e);}),_0x173015['stop']();},{'priority':_0x1e623f['normal']+0xa}),_0x2bc27b['model']['on']('insertContent',(_0x49fa58,_0x4a26e6)=>{const _0x3bf1cc=_0x4a26e6[_0x4a26e6['length']-0x1];_0x3bf1cc&&_0x3bf1cc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2bc27b['model']['change'](()=>{let _0x2234fc=_0x2bc27b['model']['insertContent'](_0x4a26e6[0x0],_0x4a26e6[0x1],_0x4a26e6[0x2],{'forceDefaultExecution':!0x0});if(!_0x2234fc)return;_0x49fa58['return']=_0x2234fc['clone']();const _0x21b5ef=_0x2234fc['end']['nodeBefore'],_0x184304=_0x2bc27b['model']['schema'];_0x21b5ef&&_0x184304['isBlock'](_0x21b5ef)&&!_0x184304['isObject'](_0x21b5ef)&&(_0x2234fc=_0x2bc27b['model']['createRange'](_0x2234fc['start'],_0x2bc27b['model']['createPositionAt'](_0x21b5ef,'end'))),this['markInsertion'](_0x2234fc);}),_0x49fa58['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x27364f=new $(_0x2bc27b,this['_suggestions']);_0x2bc27b['commands']['add']('acceptSuggestion',_0x27364f),this['enableCommand']('acceptSuggestion');const _0x4bdb1e=new B(_0x2bc27b,this['_suggestions']);_0x2bc27b['commands']['add']('discardSuggestion',_0x4bdb1e),this['enableCommand']('discardSuggestion'),_0x2bc27b['commands']['add']('acceptAllSuggestions',new x(_0x2bc27b,_0x27364f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2bc27b['commands']['add']('discardAllSuggestions',new x(_0x2bc27b,_0x4bdb1e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2bc27b['commands']['add']('acceptSelectedSuggestions',new R(_0x2bc27b,_0x27364f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2bc27b['commands']['add']('discardSelectedSuggestions',new R(_0x2bc27b,_0x4bdb1e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x46e6b7=_0x2bc27b['plugins']['get']('CommentsRepository');this['listenTo'](_0x46e6b7,'addComment',(_0x436eb1,{threadId:_0x867f67})=>{const _0x196e83=this['_suggestions']['get'](_0x867f67);_0x196e83&&_0x196e83['commentThread']&&0x1===_0x196e83['commentThread']['length']&&this['_updateSuggestionData'](_0x867f67,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x46e6b7,'removeComment',(_0x5c8ac3,{threadId:_0x5b2c3d})=>{const _0x2bb001=this['_suggestions']['get'](_0x5b2c3d);_0x2bb001&&_0x2bb001['commentThread']&&!_0x2bb001['commentThread']['length']&&this['_updateSuggestionData'](_0x5b2c3d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1fae49){if(this['_adapter'])throw new _0x4524f9('track-changes-adapter-already-set',this);this['_adapter']=_0x1fae49;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x355564=!0x1,toJSON:_0x1f0637=!0x1}={}){const _0x5e21e1=[];for(const _0x9b436d of this['_suggestions']['values']())_0x355564&&!_0x9b436d['isInContent']||_0x5e21e1['push'](_0x9b436d);return _0x1f0637?_0x5e21e1['map'](_0x4b719d=>_0x4b719d['toJSON']()):_0x5e21e1;}['getSuggestion'](_0x150aa9){const _0x3de598=this['_suggestions']['get'](_0x150aa9);if(!_0x3de598)throw new _0x4524f9('track-changes-suggestion-not-found',this);return _0x3de598;}['hasSuggestion'](_0x28033c){return this['_suggestions']['has'](_0x28033c);}['addSuggestionData'](_0x4341cd){const {authorId:_0x24b206,id:_0x3c3b00,attributes:_0x2704a2}=_0x4341cd,[_0x2dbe08,_0x50f7fe]=_0x4341cd['type']['split'](':'),_0x2c50a7=this['_suggestions']['get'](_0x3c3b00)||this['_createSuggestion'](_0x2dbe08,_0x50f7fe,_0x3c3b00,_0x24b206,_0x2704a2);if(this['_addThreadToSuggestion'](_0x2c50a7),this['_checkSuggestionCorrectness'](_0x2c50a7,_0x2dbe08,_0x50f7fe||null,_0x24b206),_0x2c50a7['createdAt']=_0x4341cd['createdAt'],_0x2c50a7['_isDataLoaded']=!0x0,_0x2704a2&&_0x2704a2['@external']){const _0x31047d=_0x2704a2['@external'],_0x10f1b5=this['_getExternalAuthor'](_0x31047d['authorName']);_0x2c50a7['authoredAt']=_0x31047d['createdAt'],_0x2c50a7['author']=_0x10f1b5,_0x2c50a7['isExternal']=!0x0;}else _0x2c50a7['authoredAt']=_0x4341cd['createdAt'];switch(_0x4341cd['data']&&(_0x2c50a7['data']=_0x4341cd['data']),_0x4341cd['attributes']&&(_0x2c50a7['attributes']=_0x4341cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2c50a7['_saved']=!0x0),this['_suggestionState']['get'](_0x2c50a7)){case'notReady':this['_suggestionState']['set'](_0x2c50a7,'dataReady');break;case'markerReady':_0x2c50a7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2c50a7])),this['_refreshSuggestionsChain'](new Set([_0x2c50a7])),this['_suggestionState']['set'](_0x2c50a7,'ready'),this['fire']('suggestionLoaded',_0x2c50a7)):this['_suggestionState']['set'](_0x2c50a7,'removed');}return _0x2c50a7;}['acceptSuggestion'](_0x47d36e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4514a8 of _0x47d36e['getAllAdjacentSuggestions']())_0x4514a8['accept']();});});}['discardSuggestion'](_0x3de92e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ee2f1 of _0x3de92e['getAllAdjacentSuggestions']())_0x2ee2f1['discard']();});});}['enableCommand'](_0x1bf7bc,_0x3f825e){const _0x4fffbf=this['editor']['commands']['get'](_0x1bf7bc);if(!_0x4fffbf)throw new _0x4524f9('track-changes-command-not-found',this,{'commandName':_0x1bf7bc});if(this['_enabledCommands']['has'](_0x4fffbf))throw new _0x4524f9('track-changes-enable-command-twice',this,{'commandName':_0x1bf7bc});this['_enabledCommands']['add'](_0x4fffbf),_0x3f825e&&_0x4fffbf['on']('execute',(_0x4c5dee,_0x18d362)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x18d362['length']>0x0&&_0x18d362[_0x18d362['length']-0x1]&&_0x18d362[_0x18d362['length']-0x1]['forceDefaultExecution']?_0x18d362['pop']():(_0x4c5dee['return']=_0x3f825e((..._0xa2200)=>_0x4fffbf['execute'](..._0xa2200,{'forceDefaultExecution':!0x0}),..._0x18d362),_0x4c5dee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x229cd0){let _0x16f343,_0xa5c0ce;const _0x5ae934=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16f343=_0x229cd0();}catch(_0x1183b4){_0xa5c0ce=_0x1183b4;}return _0x5ae934||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xa5c0ce&&_0x4524f9['rethrowUnexpectedError'](_0xa5c0ce,this),_0x16f343;}['markInsertion'](_0x46b5e5,_0x1d3fc0=null,_0x17f185={}){if(_0x46b5e5['isCollapsed'])return null;const _0x2d3004=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22fd8f,meta:_0x394c00}of this['_findSuggestions'](_0x46b5e5,'insertion'))if(_0x394c00['isOwn']){if(!_0x394c00['isNextTo']){if(_0x394c00['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x22fd8f,_0x17f185))continue;return _0x22fd8f;}if(Lt(_0x22fd8f,_0x17f185))return _0x22fd8f;this['_breakSuggestionMarker'](_0x22fd8f,_0x46b5e5['start'],_0x46b5e5['end']);break;}if(_0x1d3fc0==_0x22fd8f['subType']&&Lt(_0x22fd8f,_0x17f185)){const _0x96c88e=_0x22fd8f['getFirstRange']();return _0x96c88e['start']['isEqual'](_0x46b5e5['end'])?this['_setSuggestionRange'](_0x22fd8f,this['_model']['createRange'](_0x46b5e5['start'],_0x96c88e['end'])):this['_setSuggestionRange'](_0x22fd8f,this['_model']['createRange'](_0x96c88e['start'],_0x46b5e5['end'])),_0x22fd8f;}}const _0x1b42e1=_0x336056(),_0x57745c=_0x2d3004['id'],_0x531bb=_0x1d3fc0?'insertion:'+_0x1d3fc0:'insertion',_0x3b3551=this['_setSuggestionData']({'id':_0x1b42e1,'type':_0x531bb,'createdAt':new Date(),'authorId':_0x57745c,'attributes':_0x17f185});return this['_addSuggestionMarker'](_0x531bb,_0x1b42e1,_0x57745c,_0x46b5e5),_0x3b3551;}['markMultiRangeInsertion'](_0x288514,_0x4db32a='multi',_0x2a592f={}){const _0x143d82=this['editor']['plugins']['get']('Users')['me'],_0x3e3d20=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4db32a,'join');for(const _0xcdba1 of this['getSuggestions']())if(_0xcdba1['author']['id']==_0x143d82['id']&&'insertion'==_0xcdba1['type']&&_0xcdba1['subType']==_0x4db32a&&Lt(_0xcdba1,_0x2a592f)&&(_0x3e3d20(_0xcdba1['getRanges'](),_0x288514)||_0x3e3d20(_0x288514,_0xcdba1['getRanges']()))){for(const _0xf4acf0 of _0x288514)_0xcdba1['addRange'](_0xf4acf0);return _0xcdba1;}for(const {suggestion:_0x5b8a40,meta:_0x34189a}of this['_findSuggestions'](_0x288514,'insertion')){if(!_0x34189a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x34189a['containsRangeInObject'])continue;if(!Lt(_0x5b8a40,_0x2a592f))continue;let _0x1a2fea=!0x0;for(const _0x49a519 of _0x5b8a40['getRanges']())for(const _0x3778c4 of _0x288514)if(!_0x49a519['containsRange'](_0x3778c4)){_0x1a2fea=!0x1;break;}if(_0x1a2fea)return _0x5b8a40;}const _0x46c186=_0x336056(),_0x1fc5f6=_0x143d82['id'],_0x551613='insertion:'+_0x4db32a,_0x1a3ddc=this['_setSuggestionData']({'id':_0x46c186,'type':_0x551613,'createdAt':new Date(),'authorId':_0x1fc5f6,'attributes':_0x2a592f});for(const _0x4b8234 of _0x288514)this['_addSuggestionMarker'](_0x551613,_0x46c186,_0x1fc5f6,_0x4b8234,u['getMultiRangeId']());return _0x1a3ddc;}['markInlineFormat'](_0x39d862,_0x12b05f,_0x3e2ea3=null,_0x461022={}){if(_0x3e2ea3=_0x3e2ea3||Vt(_0x12b05f),_0x39d862['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x239e3d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e2ea3,'accept');return this['forceDefaultExecution'](()=>_0x239e3d([_0x39d862],_0x12b05f,_0x461022)),null;}const _0x470916=this['editor']['plugins']['get']('Users')['me'],_0x4f4cbf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x162b6c,meta:_0x41add5}of this['_findSuggestions'](_0x39d862,'insertion'))_0x41add5['isOwn']&&!_0x41add5['isInsideObject']&&_0x4f4cbf['push'](..._0x162b6c['getRanges']());}const _0x1e795b=function(_0x1831e7,_0x510dc7){const _0x1b0c64=[];for(const _0x280677 of _0x510dc7){const _0x5dff60=_0x1831e7['getIntersection'](_0x280677);_0x5dff60&&_0x1b0c64['push'](_0x5dff60);}return _0x1b0c64;}(_0x39d862,_0x4f4cbf),_0x25b09b=function(_0x26c0a2,_0x57c11b){const _0x607eea=[_0x26c0a2];for(const _0x475ec0 of _0x57c11b){let _0x4f6b05=0x0;for(;_0x4f6b05<_0x607eea['length'];){const _0x220281=_0x607eea[_0x4f6b05]['getDifference'](_0x475ec0);_0x607eea['splice'](_0x4f6b05,0x1,..._0x220281),_0x4f6b05+=_0x220281['length'];}}return _0x607eea;}(_0x39d862,_0x4f4cbf);_0x1e795b['length']&&this['_model']['change'](()=>{for(const _0x2c4657 of _0x1e795b){const _0x16ab16=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e2ea3,'accept');this['forceDefaultExecution'](()=>_0x16ab16([_0x2c4657],_0x12b05f,_0x461022));}});for(const _0x12a73c of _0x25b09b){let _0xc5a4a9=null,_0x28fb35=_0x12a73c['start'],_0x2ac6ea=_0x12a73c['end'];for(const {suggestion:_0x502130,meta:_0x59d4f7}of this['_findSuggestions'](_0x12a73c,'formatInline')){if(!_0x59d4f7['isOwn'])continue;if(_0x502130['subType']!=_0x3e2ea3)continue;if(!Lt(_0x502130,_0x461022))continue;const _0x5371c9=_0x502130['getFirstRange']();if(_0x5371c9['containsRange'](_0x12a73c,!0x0))return null;_0x28fb35=_0x28fb35['isBefore'](_0x5371c9['start'])?_0x28fb35:_0x5371c9['start'],_0x2ac6ea=_0x2ac6ea['isAfter'](_0x5371c9['end'])?_0x2ac6ea:_0x5371c9['end'],_0xc5a4a9?_0x5371c9['start']['isBefore'](_0xc5a4a9['getFirstRange']()['start'])?(_0xc5a4a9['removeMarkers'](),_0xc5a4a9=_0x502130):_0x502130['removeMarkers']():_0xc5a4a9=_0x502130;}const _0x199308=this['_model']['createRange'](_0x28fb35,_0x2ac6ea);if(_0xc5a4a9)this['_setSuggestionRange'](_0xc5a4a9,_0x199308);else{const _0xb4c93d=_0x336056(),_0x1d8951=_0x470916['id'];this['_setSuggestionData']({'id':_0xb4c93d,'type':'formatInline:'+_0x3e2ea3,'data':_0x12b05f,'createdAt':new Date(),'authorId':_0x1d8951,'attributes':_0x461022}),this['_addSuggestionMarker']('formatInline:'+_0x3e2ea3,_0xb4c93d,_0x1d8951,_0x199308);}}return null;}['markBlockFormat'](_0xf00a5f,_0x205565,_0x4eabc5=[],_0x4a35f7=null,_0x3a9966={}){_0x205565['formatGroupId']||(_0x205565['formatGroupId']=_0x205565['commandName']),_0x205565['multipleBlocks']=_0xf00a5f['is']('range'),_0x4a35f7=_0x4a35f7||Vt(_0x205565);const _0x385539=_0x4eabc5['map'](_0x407baf=>Gt(_0x407baf,this['_model'])),_0x4ce577=_0xf00a5f['is']('range')?_0xf00a5f:Gt(_0xf00a5f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x514318=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a35f7,'accept');return this['forceDefaultExecution'](()=>_0x514318([_0x4ce577],_0x205565,_0x3a9966)),null;}_0x385539['push'](_0x4ce577);let _0x33372f=!0x0;for(const _0x4da9ce of _0x385539)if(!this['_rangeIsInLocalUserInsertion'](_0x4da9ce)){_0x33372f=!0x1;break;}if(_0x33372f&&'always'!==this['_trackFormatChanges']){const _0x245793=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a35f7,'accept');return this['forceDefaultExecution'](()=>_0x245793([_0x4ce577],_0x205565,_0x3a9966)),null;}let _0x21306c=null,_0x2c7a70=_0x4ce577['start'],_0x1514ed=_0x4ce577['end'];for(const {suggestion:_0x838cd1,meta:_0x266f78}of this['_findSuggestions'](_0x4ce577,'formatBlock')){if(!_0x266f78['isOwn'])continue;if(_0x266f78['isNextTo']||_0x266f78['containsRangeInObject']||_0x266f78['isInsideObject'])continue;if(_0x838cd1['data']['formatGroupId']!=_0x205565['formatGroupId'])continue;if(!Lt(_0x838cd1,_0x3a9966))continue;const _0x56eac8=_0x838cd1['getFirstRange']();if(_0x838cd1['subType']==_0x4a35f7){if(_0x56eac8['containsRange'](_0x4ce577,!0x0))return null;_0x2c7a70=_0x2c7a70['isBefore'](_0x56eac8['start'])?_0x2c7a70:_0x56eac8['start'],_0x1514ed=_0x1514ed['isAfter'](_0x56eac8['end'])?_0x1514ed:_0x56eac8['end'],_0x21306c?_0x56eac8['start']['isBefore'](_0x21306c['getFirstRange']()['start'])?(_0x21306c['removeMarkers'](),_0x21306c=_0x838cd1):_0x838cd1['removeMarkers']():_0x21306c=_0x838cd1;}else{const _0x18ec15=_0x4ce577['getIntersection'](_0x56eac8);this['_cutOutSuggestionMarker'](_0x838cd1,_0x18ec15);}}const _0x403505=this['editor']['plugins']['get']('Users')['me'],_0x14fc6a=_0x336056(),_0x4ad45b=_0x403505['id'];if(_0x21306c)return this['_setSuggestionRange'](_0x21306c,this['_model']['createRange'](_0x2c7a70,_0x1514ed)),_0x21306c;{const _0x57912b=this['_setSuggestionData']({'id':_0x14fc6a,'type':'formatBlock:'+_0x4a35f7,'data':_0x205565,'createdAt':new Date(),'authorId':_0x4ad45b,'attributes':_0x3a9966});return this['_addSuggestionMarker']('formatBlock:'+_0x4a35f7,_0x14fc6a,_0x4ad45b,this['_model']['createRange'](_0x2c7a70,_0x1514ed)),_0x57912b;}}['markMultiRangeBlockFormat'](_0xa4ab6c,_0x197e63,_0x186c04=[],_0x4777cb=null,_0x31265f={}){_0x197e63['formatGroupId']||(_0x197e63['formatGroupId']=_0x197e63['commandName']);const _0x137678=_0xa4ab6c[0x0];_0x197e63['multipleBlocks']=_0x137678['is']('range'),_0x4777cb=_0x4777cb||Vt(_0x197e63);const _0x13ba9e=_0x186c04['map'](_0x4ecc69=>Gt(_0x4ecc69,this['_model'])),_0x52c84d=_0x137678['is']('range')?_0xa4ab6c:_0xa4ab6c['map'](_0x3dc723=>Gt(_0x3dc723,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1be287=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4777cb,'accept');return this['forceDefaultExecution'](()=>_0x1be287(_0x52c84d,_0x197e63,_0x31265f)),null;}_0x13ba9e['push'](..._0x52c84d);let _0x2094d6=!0x0;for(const _0x5e6119 of _0x13ba9e)if(!this['_rangeIsInLocalUserInsertion'](_0x5e6119)){_0x2094d6=!0x1;break;}if(_0x2094d6&&'always'!==this['_trackFormatChanges']){const _0x2afa9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4777cb,'accept');return this['forceDefaultExecution'](()=>_0x2afa9e(_0x52c84d,_0x197e63,_0x31265f)),null;}const _0x8a4f07=this['editor']['plugins']['get']('Users')['me'];for(const _0x1543bd of this['getSuggestions']()){if(_0x1543bd['author']['id']!=_0x8a4f07['id'])continue;if('formatBlock'!=_0x1543bd['type']||_0x1543bd['data']['formatGroupId']!=_0x197e63['formatGroupId'])continue;if(!Lt(_0x1543bd,_0x31265f))continue;const _0x439887=_0x1543bd['subType']==_0x4777cb;for(let _0x46b77a=0x0;_0x46b77a<_0x52c84d['length'];_0x46b77a++){const _0x2338cf=_0x52c84d[_0x46b77a];for(const _0x15343c of _0x1543bd['getMarkers']()){const _0x124828=_0x15343c['getRange']();if(_0x2338cf['isEqual'](_0x124828)){_0x439887?(_0x52c84d['splice'](_0x46b77a,0x1),_0x46b77a--):_0x1543bd['removeMarker'](_0x15343c['name']);break;}}}}if(0x0==_0x52c84d['length'])return null;const _0x2b4c47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4777cb,'join');for(const _0x809514 of this['getSuggestions']())if(_0x809514['author']['id']==_0x8a4f07['id']&&'formatBlock'==_0x809514['type']&&_0x809514['data']['formatGroupId']==_0x197e63['formatGroupId']&&_0x809514['subType']==_0x4777cb&&Lt(_0x809514,_0x31265f)&&(_0x2b4c47(_0x809514['getRanges'](),_0x52c84d)||_0x2b4c47(_0x52c84d,_0x809514['getRanges']()))){for(const _0x423324 of _0x52c84d)_0x809514['addRange'](_0x423324);return _0x809514;}const _0x820242=_0x336056(),_0xd7f105=_0x8a4f07['id'],_0x15910e='formatBlock:'+_0x4777cb,_0xf7a449=this['_setSuggestionData']({'id':_0x820242,'type':_0x15910e,'data':_0x197e63,'createdAt':new Date(),'authorId':_0xd7f105,'attributes':_0x31265f});for(const _0x38831e of _0x52c84d)this['_addSuggestionMarker'](_0x15910e,_0x820242,_0xd7f105,_0x38831e,u['getMultiRangeId']());return _0xf7a449;}['markDeletion'](_0x37f5d2,_0x1ba901=null,_0x34787d={}){if(_0x37f5d2['isCollapsed'])return null;const _0x26abe7=this['editor']['plugins']['get']('Users')['me'],_0x340961=new _0x424176(_0x37f5d2['start'],_0x37f5d2['end']);for(const {suggestion:_0x3faa49,meta:_0x454df2}of this['_findSuggestions'](_0x340961,'insertion'))if(_0x454df2['isOwn']&&!_0x454df2['isNextTo']){if(_0x3faa49['isMultiRange']){const _0x2fc0c7=_0x3faa49['getRanges']()['filter'](_0x25cf83=>'$graveyard'!=_0x25cf83['root']['rootName']);_0x2fc0c7['every'](_0x4610e9=>_0x340961['containsRange'](_0x4610e9,!0x0))&&_0x3faa49['discard']();if(_0x2fc0c7['some'](_0x29634d=>_0x29634d['containsRange'](_0x340961,!0x0))){const _0x5cac58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ba901,'accept');return this['forceDefaultExecution'](()=>_0x5cac58([_0x340961],null,_0x34787d)),null;}}else{const _0x1f6da8=_0x340961['getIntersection'](_0x3faa49['getFirstRange']());null!==_0x1f6da8&&_0x3faa49['_onDiscard']([_0x1f6da8],null,_0x34787d);}}if(_0x340961['detach'](),_0x340961['isCollapsed']||'$graveyard'==_0x340961['root']['rootName'])return null;let _0x4ce862=null,_0x2adc9e=_0x340961['start'],_0x553899=_0x340961['end'];const _0x20b9d6=this['_findSuggestions'](_0x340961,'deletion');for(const {suggestion:_0x3cc4a2,meta:_0x518a60}of _0x20b9d6){const _0x12a071=this['_model']['createRange'](_0x2adc9e,_0x553899);if(_0x518a60['isOwn']&&(this['_mergeNestedSuggestions']||!_0x518a60['containsRangeInObject']&&!_0x518a60['isInsideObject'])){if(_0x3cc4a2['isMultiRange']){if(!Lt(_0x3cc4a2,_0x34787d))continue;let _0x2c3c10=!0x0;for(const _0x50ae61 of _0x3cc4a2['getRanges']()){if(_0x50ae61['containsRange'](_0x12a071,!0x0))return _0x3cc4a2;_0x12a071['containsRange'](_0x50ae61)||(_0x2c3c10=!0x1);}_0x2c3c10&&_0x3cc4a2['discard']();}else{const _0x159abb=_0x3cc4a2['getFirstRange']();if(_0x159abb['containsRange'](_0x12a071,!0x0))return _0x3cc4a2;if(!Lt(_0x3cc4a2,_0x34787d)){_0x12a071['containsRange'](_0x159abb)?_0x3cc4a2['removeMarkers']():_0x159abb['containsPosition'](_0x2adc9e)?_0x2adc9e=_0x159abb['end']:_0x159abb['containsPosition'](_0x553899)&&(_0x553899=_0x159abb['start']);continue;}_0x2adc9e=_0x2adc9e['isBefore'](_0x159abb['start'])?_0x2adc9e:_0x159abb['start'],_0x553899=_0x553899['isAfter'](_0x159abb['end'])?_0x553899:_0x159abb['end'],_0x34787d=Object['assign']({},_0x3cc4a2['attributes']),_0x4ce862?_0x159abb['start']['isBefore'](_0x4ce862['getFirstRange']()['start'])?(_0x4ce862['removeMarkers'](),_0x4ce862=_0x3cc4a2):_0x3cc4a2['removeMarkers']():_0x4ce862=_0x3cc4a2;}}}if(_0x4ce862)return this['_setSuggestionRange'](_0x4ce862,this['_model']['createRange'](_0x2adc9e,_0x553899)),_0x4ce862;{const _0x9fbf2e=_0x336056(),_0x54e53d=this['_model']['createRange'](_0x2adc9e,_0x553899),_0x266faa=_0x26abe7['id'],_0x434514=_0x1ba901?'deletion:'+_0x1ba901:'deletion',_0xa25ea4=this['_setSuggestionData']({'id':_0x9fbf2e,'type':_0x434514,'createdAt':new Date(),'authorId':_0x266faa,'attributes':_0x34787d});return this['_addSuggestionMarker'](_0x434514,_0x9fbf2e,_0x266faa,_0x54e53d),_0xa25ea4;}}['markMultiRangeDeletion'](_0x5440f5,_0x3edca2='multi',_0x2aaa74={}){const _0xd97585=this['editor']['plugins']['get']('Users')['me'],_0xb0f830=_0x5440f5['map'](_0x919aec=>new _0x424176(_0x919aec['start'],_0x919aec['end'])),_0x8fbaee=new Set();for(const {suggestion:_0x1fc4bb,meta:_0x25125d}of this['_findSuggestions'](_0xb0f830,'insertion'))_0x25125d['isOwn']&&!_0x25125d['isNextTo']&&_0x8fbaee['add'](_0x1fc4bb);for(const _0x2076f2 of _0x8fbaee)if(_0x2076f2['isMultiRange']){const _0x58f687=_0x2076f2['getRanges']();(!_0x2076f2['attributes']||!_0x2076f2['attributes']['skipNestingCheck'])&&(_0x58f687['every'](_0xf17091=>_0xb0f830['some'](_0x1dd655=>_0x1dd655['containsRange'](_0xf17091,!0x0)))&&_0x2076f2['discard']());if(_0xb0f830['every'](_0x51cde3=>_0x58f687['some'](_0x5d468f=>_0x5d468f['containsRange'](_0x51cde3,!0x0)))){const _0x1a42db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edca2,'accept');return this['forceDefaultExecution'](()=>_0x1a42db(_0x5440f5,null,_0x2aaa74)),null;}}else{const _0x59f6e1=_0x2076f2['getFirstRange']();_0xb0f830['some'](_0x20be27=>_0x20be27['containsRange'](_0x59f6e1,!0x0))&&_0x2076f2['discard']();if(_0xb0f830['every'](_0x17ea12=>_0x59f6e1['containsRange'](_0x17ea12,!0x0))){const _0x5d7b92=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edca2,'accept');return this['forceDefaultExecution'](()=>_0x5d7b92(_0xb0f830,null,_0x2aaa74)),null;}}const _0x3e7c10=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edca2,'join');let _0x4c7e4d=null;for(const _0x19678a of this['getSuggestions']())if(_0x19678a['author']['id']==_0xd97585['id']&&_0x19678a['isInContent']&&'deletion'==_0x19678a['type']&&_0x19678a['subType']==_0x3edca2&&Lt(_0x19678a,_0x2aaa74)&&(_0x3e7c10(_0x19678a['getRanges'](),_0xb0f830)||_0x3e7c10(_0xb0f830,_0x19678a['getRanges']()))){if(_0x4c7e4d){if(_0x19678a['commentThread']&&_0x19678a['commentThread']['length'])continue;for(const _0xac0342 of _0x19678a['getRanges']())_0x4c7e4d['isIntersectingWithRange'](_0xac0342)||_0x4c7e4d['addRange'](_0xac0342);_0x19678a['removeMarkers']();}else{_0x4c7e4d=_0x19678a;for(const _0xedfd37 of _0xb0f830)_0x19678a['isIntersectingWithRange'](_0xedfd37)||_0x19678a['addRange'](_0xedfd37);}}if(_0x4c7e4d)return _0x4c7e4d;_0x8fbaee['clear']();for(const {suggestion:_0x446963,meta:_0x45091e}of this['_findSuggestions'](_0xb0f830,'deletion'))_0x45091e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45091e['containsRangeInObject']&&!_0x45091e['isInsideObject'])&&Lt(_0x446963,_0x2aaa74)&&_0x8fbaee['add'](_0x446963);for(const _0x292a7a of _0x8fbaee){const _0x2a9f1f=_0x292a7a['getRanges']();if(!_0x2aaa74||!_0x2aaa74['skipNestingCheck']){if(_0xb0f830['every'](_0x56159e=>_0x2a9f1f['some'](_0x50cd87=>_0x50cd87['containsRange'](_0x56159e,!0x0))))return _0x292a7a;}(!_0x292a7a['attributes']||!_0x292a7a['attributes']['skipNestingCheck'])&&(_0x2a9f1f['every'](_0x40bdb6=>_0xb0f830['some'](_0x2e1a0a=>_0x2e1a0a['containsRange'](_0x40bdb6,!0x0)))&&_0x292a7a['discard']());}const _0x46235a=_0x336056(),_0x3e41e0=_0xd97585['id'],_0x526faa='deletion:'+_0x3edca2,_0x5b7731=this['_setSuggestionData']({'id':_0x46235a,'type':_0x526faa,'createdAt':new Date(),'authorId':_0x3e41e0,'attributes':_0x2aaa74});for(const _0x515daa of _0xb0f830)_0x515daa['detach'](),_0x515daa['isCollapsed']||'$graveyard'==_0x515daa['root']['rootName']||this['_addSuggestionMarker'](_0x526faa,_0x46235a,_0x3e41e0,_0x515daa,u['getMultiRangeId']());return _0x5b7731;}['markAttributeChange'](_0x33b4a3,_0x520774,_0x50383c,_0x1ae551,_0x20982a){if(_0x33b4a3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4de21c=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b1cdb=Array['from'](this['_suggestions']['values']())['filter'](_0x2df8be=>'attribute'==_0x2df8be['type']&&_0x2df8be['data']['key']==_0x520774&&_0x2df8be['isIntersectingWithRange'](_0x33b4a3));if('default'===this['_trackFormatChanges']){const _0x40665f=this['_findSuggestions'](_0x33b4a3,'insertion')['filter'](({meta:_0x56b446})=>_0x56b446['isOwn']&&!_0x56b446['isInsideObject']&&!_0x56b446['isNextTo'])['map'](({suggestion:_0x4c7335})=>_0x4c7335);_0x4b1cdb['unshift'](..._0x40665f);}const _0x5df7be=new Map([[_0x33b4a3,_0x50383c]]);for(const _0x2b0c7e of _0x4b1cdb){const _0x31cdc8='attribute'==_0x2b0c7e['type']?_0x2b0c7e['data']['oldValue']:void 0x0,_0x18ff2b=_0x2b0c7e['getFirstRange'](),_0x1b43a9=Array['from'](_0x5df7be['keys']())['find'](_0xeab06c=>_0xeab06c['isIntersecting'](_0x18ff2b));if(!_0x1b43a9)continue;const _0x2b857f=_0x1b43a9['getDifference'](_0x18ff2b);this['_isBlockAttribute'](_0x520774)&&'insertion'==_0x2b0c7e['type']&&0x0!=_0x2b857f['length']||(_0x5df7be['delete'](_0x1b43a9),_0x2b857f['forEach'](_0x549ce8=>{_0x5df7be['set'](_0x549ce8,_0x50383c);}),'insertion'!=_0x2b0c7e['type']&&_0x31cdc8!=_0x1ae551&&_0x5df7be['set'](_0x1b43a9['getIntersection'](_0x18ff2b),_0x31cdc8));}const _0x185590=[];for(const [_0x4cb956,_0x4fa4ea]of _0x5df7be){const _0x1dee52=_0x336056(),_0x34265f={'key':_0x520774,'oldValue':_0x4fa4ea,'newValue':_0x1ae551};_0x520774['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':_0x520774});const _0x13a989=('attribute:'+(_0x520774+'|'+Vt({'newValue':_0x1ae551})))['substring'](0x0,0x3c),_0xfcf01d=this['_setSuggestionData']({'id':_0x1dee52,'type':_0x13a989,'data':_0x34265f,'createdAt':new Date(),'authorId':_0x4de21c,'attributes':_0x20982a});_0x185590['push'](_0xfcf01d),this['_addSuggestionMarker'](_0x13a989,_0x1dee52,_0x4de21c,_0x4cb956);}return _0x185590;}['enableDefaultAttributesIntegration'](_0x33dfd5){this['enableCommand'](_0x33dfd5,(_0x540ed5,..._0x58b060)=>{this['_recordAttributeChanges'](()=>{_0x540ed5(..._0x58b060);});});}['registerBlockAttribute'](_0x32ef77){this['_blockAttributeKeys']['add'](_0x32ef77);}['registerInlineAttribute'](_0x3c212e){this['_inlineAttributeKeys']['add'](_0x3c212e);}['_getAttributeKey'](_0x21459b){return'attribute'==_0x21459b['type']?_0x21459b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x397c2a,_0xdcfead){const _0x2e8659=_0x397c2a['getFirstMarker']();this['_model']['change'](_0x29ec2e=>{_0x29ec2e['updateMarker'](_0x2e8659,{'range':_0xdcfead});});}['_addThreadToSuggestion'](_0x15d19a){const _0x556fe6=_0x15d19a['id'],_0x5814f8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x556fe6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5814f8,'threadId':_0x556fe6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc8d8dc=this['_commentsRepository']['getCommentThread'](_0x556fe6);_0xc8d8dc['unbind']('isRemovable'),_0xc8d8dc['isRemovable']=!0x1,_0x15d19a['commentThread']=_0xc8d8dc;}['_checkSuggestionCorrectness'](_0x29225c,_0x3aa50c,_0x4df569,_0x2ce09f){if(_0x29225c['type']!=_0x3aa50c||_0x29225c['subType']!=_0x4df569||_0x29225c['creator']['id']!=_0x2ce09f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4524f9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x413133,_0x4c3497){const _0x3ea554=_0x413133['getFirstRange']();if(_0x4c3497['isEqual'](_0x3ea554))_0x413133['removeMarkers']();else{if(_0x3ea554['containsRange'](_0x4c3497)){const _0x1c3ab3=this['_model']['createPositionAt'](_0x4c3497['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x413133,this['_model']['createRange'](_0x3ea554['start'],_0x1c3ab3));const _0x334be7=_0x336056(),_0x391e88=_0x413133['creator']['id'],_0x1b83e2=_0x413133['type']+':'+_0x413133['subType'];this['_setSuggestionData']({'id':_0x334be7,'type':_0x1b83e2,'createdAt':new Date(),'authorId':_0x391e88,'data':_0x413133['data'],'attributes':_0x413133['attributes']});const _0x4e4378=this['_model']['createPositionAt'](_0x4c3497['end']['parent'],'after'),_0x1c5346=this['_model']['createRange'](_0x4e4378,_0x3ea554['end']);this['_addSuggestionMarker'](_0x1b83e2,_0x334be7,_0x391e88,_0x1c5346);}else{if(_0x3ea554['containsPosition'](_0x4c3497['start'])){const _0x2a2563=this['_model']['createPositionAt'](_0x4c3497['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x413133,this['_model']['createRange'](_0x3ea554['start'],_0x2a2563));}else{const _0x4d916d=this['_model']['createPositionAt'](_0x4c3497['end']['parent'],'after');this['_setSuggestionRange'](_0x413133,this['_model']['createRange'](_0x4d916d,_0x3ea554['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a89ce){for(const {suggestion:_0x14f346,meta:_0x1af70f}of this['_findSuggestions'](_0x1a89ce,'insertion')){if(!_0x1af70f['isOwn'])continue;const _0x2a4c7c=_0x14f346['getRanges']();for(const _0x193160 of _0x2a4c7c)if(!_0x1a89ce['getDifference'](_0x193160)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3dfc3d){const _0x1a8e41=this['editor']['plugins']['get']('Users')['getUser'](_0x3dfc3d);if(!_0x1a8e41)throw new _0x4524f9('track-changes-user-not-found',this);return _0x1a8e41;}['_getExternalAuthor'](_0x382362){const _0x2084ce=this['editor']['plugins']['get']('Users'),_0x405daa=_0x326b5a('external:'+_0x382362),_0x5e7cec=_0x2084ce['getUser'](_0x405daa);return _0x5e7cec||_0x2084ce['addUser']({'id':_0x405daa,'name':_0x382362});}['_createSuggestion'](_0x3bd472,_0x37e766,_0x5d6cb2,_0x2ab2fe,_0x82e028){const _0x92a1c4=this['_getAuthorFromId'](_0x2ab2fe),_0x5b0756=this['_suggestionFactory']['buildSuggestion'](_0x3bd472,_0x37e766,_0x5d6cb2,_0x92a1c4,_0x82e028,_0x2cd787=>{this['_updateSuggestionData'](_0x5d6cb2,{'attributes':_0x2cd787});const _0x2293ad=this['getSuggestion'](_0x5d6cb2);this['_joinWithAdjacentSuggestions'](new Set([_0x2293ad])),this['_refreshSuggestionsChain'](new Set([_0x2293ad]));});return this['listenTo'](_0x5b0756,'accept',()=>{this['_updateSuggestionData'](_0x5d6cb2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5b0756,'discard',()=>{this['_updateSuggestionData'](_0x5d6cb2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5d6cb2,_0x5b0756),this['_suggestionState']['set'](_0x5b0756,'notReady'),_0x5b0756;}['_splitMarkerName'](_0x427bfa){const _0x279c8e=_0x427bfa['split'](':');return{'group':_0x279c8e[0x0],'type':_0x279c8e[0x1],'subType':_0x279c8e['length']>=0x5?_0x279c8e[0x2]:null,'id':_0x279c8e['length']<0x5?_0x279c8e[0x2]:_0x279c8e[0x3],'authorId':_0x279c8e['length']<0x5?_0x279c8e[0x3]:_0x279c8e[0x4],'markerCount':0x6==_0x279c8e['length']?_0x279c8e[0x5]:null};}['_breakSuggestionMarker'](_0x4de28d,_0x19c8d7,_0x46cb8f){const _0x56b22b=_0x4de28d['getFirstRange'](),_0x1ea172=_0x56b22b['start'],_0x3e5901=_0x56b22b['end'];this['_setSuggestionRange'](_0x4de28d,this['_model']['createRange'](_0x1ea172,_0x19c8d7));const _0x35782a=_0x336056(),_0x11d0a7=_0x4de28d['creator']['id'],_0x1df632=_0x4de28d['type']+(_0x4de28d['subType']?':'+_0x4de28d['subType']:'');this['_setSuggestionData']({'id':_0x35782a,'type':_0x1df632,'createdAt':new Date(),'authorId':_0x11d0a7,'originalSuggestionId':_0x4de28d['id'],'attributes':_0x4de28d['attributes'],'data':_0x4de28d['data']});const _0x250e4a=this['_getAttributeKey'](_0x4de28d);('formatBlock'==_0x4de28d['type']||_0x250e4a&&this['_isBlockAttribute'](_0x250e4a))&&(_0x46cb8f=this['_model']['createPositionBefore'](_0x46cb8f['parent'])),this['_addSuggestionMarker'](_0x1df632,_0x35782a,_0x11d0a7,this['_model']['createRange'](_0x46cb8f,_0x3e5901));}['_findSuggestions'](_0x5d2645,_0x130d58=null){const _0x448464=[],_0xd8cdd0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5d2645)||(_0x5d2645=[_0x5d2645]);for(const _0x59b354 of this['getSuggestions']()){if(!_0x59b354['isInContent'])continue;if(_0x130d58&&_0x59b354['type']!=_0x130d58)continue;let _0x5c5b09=!0x1;for(const _0xb81126 of _0x59b354['getRanges']()){for(const _0x169b3d of _0x5d2645){const _0x42d250=_0x169b3d['start']['isEqual'](_0xb81126['end'])||_0x169b3d['end']['isEqual'](_0xb81126['start']);if(_0x42d250||_0x169b3d['getIntersection'](_0xb81126)){const _0x460e72=_0x169b3d['containsRange'](_0xb81126)&&Rt(this['_model']['schema'],_0xb81126['start'],_0x169b3d),_0x5d6d39=_0xb81126['containsRange'](_0x169b3d)&&Rt(this['_model']['schema'],_0x169b3d['start'],_0xb81126);_0x448464['push']({'suggestion':_0x59b354,'meta':{'isOwn':_0xd8cdd0==_0x59b354['author'],'isNextTo':_0x42d250,'isInsideObject':_0x460e72,'containsRangeInObject':_0x5d6d39}}),_0x5c5b09=!0x0;break;}}if(_0x5c5b09)break;}}return _0x448464;}['_addSuggestionMarker'](_0x1de231,_0x136a87,_0x5ef03b,_0x563435,_0x3f547e){this['_model']['change'](_0x1b22b9=>{let _0x3a6525='suggestion:'+_0x1de231+':'+_0x136a87+':'+_0x5ef03b;_0x3f547e&&(_0x3a6525=_0x3a6525+':'+_0x3f547e),_0x1b22b9['addMarker'](_0x3a6525,{'range':_0x563435,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xb0467){const _0x406fa7=_0xb0467['previous'],_0x3940e0=_0xb0467['next'];_0xb0467['previous']=null,_0xb0467['next']=null,null!=_0x406fa7&&_0x406fa7['next']==_0xb0467&&(_0x406fa7['next']=_0x3940e0),null!=_0x3940e0&&_0x3940e0['previous']==_0xb0467&&(_0x3940e0['previous']=_0x406fa7),'ready'==this['_suggestionState']['get'](_0xb0467)&&(this['_suggestionState']['set'](_0xb0467,'removed'),this['fire']('suggestionUnloaded',_0xb0467,_0x406fa7,_0x3940e0));}['_setSuggestionData'](_0x3fb1ec){const _0x402ec0=_0x3fb1ec['id'],_0xfbab43=this['addSuggestionData'](_0x3fb1ec);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x383f17=this['editor']['plugins']['get']('PendingActions'),_0x347771=_0xfbab43['hasComments'],_0x24f831=_0xfbab43['subType']?_0xfbab43['type']+':'+_0xfbab43['subType']:_0xfbab43['type'],_0x2c1c5f=this['editor']['locale'],_0x2fd29c=_0x383f17['add'](o(_0x2c1c5f,'PENDING_ACTION_SUGGESTION')),_0x50549b={'id':_0x402ec0,'type':_0x24f831,'hasComments':_0x347771,'data':_0x3fb1ec['data']||null,'originalSuggestionId':_0x3fb1ec['originalSuggestionId']||null,'attributes':_0xfbab43['attributes']};this['_adapter']['addSuggestion'](_0x50549b)['then'](_0x4b0a17=>{_0xfbab43['_saved']=!0x0,_0x383f17['remove'](_0x2fd29c),_0x4b0a17&&_0x4b0a17['createdAt']&&(this['_suggestions']['get'](_0x402ec0)['createdAt']=_0x4b0a17['createdAt']);})['catch'](_0x1a8467=>{throw _0x1c4769('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xfbab43['discard']();}),_0xfbab43['stopListening'](),this['_suggestions']['delete'](_0xfbab43['id']),this['_suggestionState']['delete'](_0xfbab43),_0x1a8467;});}return _0xfbab43;}['_isBlockAttribute'](_0x338318){return this['_blockAttributeKeys']['has'](_0x338318);}['_updateSuggestionData'](_0x45708a,_0x3819da){const _0x5922af=this['editor']['plugins']['get']('PendingActions'),_0x2f3365=this['getSuggestion'](_0x45708a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2f3365['_saved']){const _0x26afb2=_0x5922af['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x45708a,_0x3819da)['then'](()=>{_0x5922af['remove'](_0x26afb2);});}else _0x2f3365['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x45708a,_0x3819da);});}}['_getSuggestionData'](_0x190e5c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4524f9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x190e5c);}['_handleNewSuggestionMarker'](_0x303e63){const {id:_0x1c4c7a,type:_0x2722fc,subType:_0x5d8173,authorId:_0xca1427}=this['_splitMarkerName'](_0x303e63),_0x174641=this['_suggestions']['get'](_0x1c4c7a)||this['_createSuggestion'](_0x2722fc,_0x5d8173,_0x1c4c7a,_0xca1427,{});switch(this['_checkSuggestionCorrectness'](_0x174641,_0x2722fc,_0x5d8173,_0xca1427),this['_suggestionState']['get'](_0x174641)){case'notReady':this['_getSuggestionData'](_0x1c4c7a)['then'](_0x3bebf9=>{let _0x154856=Promise['resolve']();_0x3bebf9['hasComments']&&(_0x154856=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c4c7a})),_0x154856['then'](()=>{this['addSuggestionData'](_0x3bebf9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x174641,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c4c7a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x174641,'ready'),this['fire']('suggestionLoaded',_0x174641);break;case'ready':this['fire']('suggestionChanged',_0x174641);}return _0x174641['addMarkerName'](_0x303e63),_0x174641;}['_refreshSuggestionsChain'](_0x34a05d){const _0x2a9fe5=Array['from'](_0x34a05d),_0x16ad8b=_0x2a9fe5['filter'](_0x3b976d=>'attribute'==_0x3b976d['type']);this['_refreshAttributeSuggestionsChain'](_0x16ad8b);const _0x3a0247=_0x2a9fe5['filter'](_0xd8b287=>!_0xd8b287['isMultiRange']&&'attribute'!=_0xd8b287['type']),_0x2c02fe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40b181=>!_0x40b181['isMultiRange']&&'attribute'!=_0x40b181['type']),_0x91d6f8=_0x2c02fe['filter'](_0x2af0d3=>!_0x34a05d['has'](_0x2af0d3)),_0x20751e=new Map(_0x2c02fe['map'](_0xfca293=>[_0xfca293,this['_suggestionFactory']['getSuggestionCallback'](_0xfca293['type'],_0xfca293['subType'],'chain')])),_0x1d9915=new Map(_0x2c02fe['map'](_0x5e557a=>[_0x5e557a,_0x5e557a['getFirstRange']()])),_0x3818e2=new Set(),_0x1918c4=new Set();for(let _0x339c74=0x0;_0x339c74<_0x3a0247['length'];_0x339c74++)_0xcb3d84(_0x3a0247[_0x339c74],_0x3a0247,_0x339c74+0x1);for(let _0x59afde=0x0;_0x59afde<_0x3a0247['length'];_0x59afde++)_0xcb3d84(_0x3a0247[_0x59afde],_0x91d6f8,0x0);const _0x458be6=new Set();for(let _0x1fc3e7=0x0;_0x1fc3e7<_0x3a0247['length'];_0x1fc3e7++){const _0x2080c8=_0x3a0247[_0x1fc3e7];!_0x1918c4['has'](_0x2080c8)&&_0x2080c8['previous']&&(_0x458be6['add'](_0x2080c8['previous']),_0x2080c8['previous']['next']===_0x2080c8&&(_0x2080c8['previous']['next']=null),_0x2080c8['previous']=null),!_0x3818e2['has'](_0x2080c8)&&_0x2080c8['next']&&(_0x458be6['add'](_0x2080c8['next']),_0x2080c8['next']['previous']===_0x2080c8&&(_0x2080c8['next']['previous']=null),_0x2080c8['next']=null);}function _0xcb3d84(_0x5203da,_0x6fd37e,_0x48bf84){for(let _0x3d2b1f=_0x48bf84;_0x3d2b1f<_0x6fd37e['length'];_0x3d2b1f++){const _0x359f59=_0x136051(_0x5203da,_0x6fd37e[_0x3d2b1f]);_0x359f59&&(_0x359f59[0x0]['next']=_0x359f59[0x1],_0x359f59[0x1]['previous']=_0x359f59[0x0],_0x3818e2['add'](_0x359f59[0x0]),_0x1918c4['add'](_0x359f59[0x1]));}}function _0x136051(_0xcbaf17,_0x58ccc7){if(_0xcbaf17['author']['id']!==_0x58ccc7['author']['id'])return null;const _0x5266a8=_0x20751e['get'](_0xcbaf17)(_0xcbaf17,_0x58ccc7,_0x1d9915['get'](_0xcbaf17),_0x1d9915['get'](_0x58ccc7));if(!_0x5266a8)return null;return _0x20751e['get'](_0x58ccc7)(_0xcbaf17,_0x58ccc7,_0x1d9915['get'](_0xcbaf17),_0x1d9915['get'](_0x58ccc7))?_0x5266a8[0x1]['commentThread']&&_0x5266a8[0x1]['commentThread']['length']?null:_0x5266a8:null;}_0x458be6['size']&&this['_refreshSuggestionsChain'](_0x458be6);}['_refreshAttributeSuggestionsChain'](_0x9ea68a){if(0x0==_0x9ea68a['length'])return;const _0x3a394c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ad3a0=>'attribute'==_0x3ad3a0['type']&&_0x3ad3a0['_isDataLoaded']),_0x348c68=[],_0x91ad57=new Map();for(const _0x217899 of _0x3a394c){const _0x4fe768=_0x326b5a(_0x217899['attributes']);_0x91ad57['has'](_0x4fe768)||(_0x91ad57['set'](_0x4fe768,_0x348c68['length']),_0x348c68['push']([]));const _0x568a7d=_0x91ad57['get'](_0x4fe768);_0x348c68[_0x568a7d]['push'](_0x217899);}!(function(){_0x348c68['sort']((_0x19764b,_0x36a616)=>{const _0x573e51=_0x19764b[0x0]['createdAt'],_0x484724=_0x36a616[0x0]['createdAt'];return _0x573e51==_0x484724?_0x19764b[0x0]['attributes']['groupId']<_0x36a616[0x0]['attributes']['groupId']?-0x1:0x1:_0x573e51<_0x484724?-0x1:0x1;});for(const _0xaaf6e7 of _0x348c68)_0xaaf6e7['sort']((_0x266304,_0x55f817)=>_0x266304['id']<_0x55f817['id']?-0x1:0x1);}());for(let _0x5d1025=0x0;_0x5d1025<_0x348c68['length'];_0x5d1025++){if(0x0==_0x348c68[_0x5d1025]['length'])continue;const _0x4def2e=[];for(let _0x3cc0b0=_0x5d1025+0x1;_0x3cc0b0<_0x348c68['length'];_0x3cc0b0++)0x0!=_0x348c68[_0x3cc0b0]['length']&&_0x3b6634(_0x348c68[_0x5d1025],_0x348c68[_0x3cc0b0])&&_0x4def2e['push'](_0x3cc0b0);for(const _0x118eb1 of _0x4def2e)_0x348c68[_0x5d1025]=_0x348c68[_0x5d1025]['concat'](_0x348c68[_0x118eb1]),_0x348c68[_0x118eb1]=[];}for(const _0x54c0d1 of _0x348c68)for(let _0x374b51=0x0;_0x374b51<_0x54c0d1['length'];_0x374b51++)_0x54c0d1[_0x374b51]['next']=_0x54c0d1[_0x374b51+0x1]||null;for(const _0x3adc46 of _0x348c68)for(let _0x1d6ec5=0x0;_0x1d6ec5<_0x3adc46['length'];_0x1d6ec5++)_0x3adc46[_0x1d6ec5]['previous']=_0x3adc46[_0x1d6ec5-0x1]||null;function _0x3b6634(_0x5da374,_0x11b0e9){if(_0x5da374[0x0]['attributes']['groupId']!==_0x11b0e9[0x0]['attributes']['groupId']&&_0x5da374[0x0]['author']!==_0x11b0e9[0x0]['author'])return!0x1;if(!function(_0x3733c3,_0x42d4be){if(!_0x3733c3['hasComments']&&!_0x42d4be['hasComments'])return!0x0;if(_0x3733c3['hasComments']&&_0x42d4be['hasComments'])return!0x1;if(_0x3733c3['hasComments']&&_0x42d4be['createdAt']<_0x3733c3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x42d4be['hasComments']&&_0x3733c3['createdAt']<_0x42d4be['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5da374[0x0],_0x11b0e9[0x0]))return!0x1;const _0xf97d5d=Bt(_0x5da374[0x0]['attributes'],'groupId'),_0x3b0549=Bt(_0x11b0e9[0x0]['attributes'],'groupId');if(!_0x5767df(_0xf97d5d,_0x3b0549))return!0x1;return!!_0x5da374['every'](_0x4cf472=>_0x11b0e9['some'](_0x4195a2=>_0x4cf472['getFirstRange']()['isEqual'](_0x4195a2['getFirstRange']())))&&_0x11b0e9['every'](_0x218762=>_0x5da374['some'](_0x3ef741=>_0x218762['getFirstRange']()['isEqual'](_0x3ef741['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x41f594){const _0x87c401=Array['from'](_0x41f594),_0x5064d3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5c2fc0=_0x5064d3['filter'](_0x294da4=>!_0x41f594['has'](_0x294da4)),_0x293587=new Map(_0x87c401['map'](_0x210896=>[_0x210896,this['_suggestionFactory']['getSuggestionCallback'](_0x210896['type'],_0x210896['subType'],'join')])),_0x8a172b=new Map(_0x5064d3['map'](_0x3b1d5f=>[_0x3b1d5f,_0x3b1d5f['getRanges']()]));for(let _0x19c010=0x0;_0x19c010<_0x87c401['length'];_0x19c010++){if(_0x1ac8c4(this,_0x87c401[_0x19c010],_0x87c401,_0x19c010+0x1))return!0x0;}for(let _0x486856=0x0;_0x486856<_0x87c401['length'];_0x486856++){if(_0x1ac8c4(this,_0x87c401[_0x486856],_0x5c2fc0,0x0))return!0x0;}return!0x1;function _0x1ac8c4(_0x456e16,_0x5994c2,_0x5bce25,_0x4959c6){for(let _0x1a1810=_0x4959c6;_0x1a1810<_0x5bce25['length'];_0x1a1810++){const _0x760d59=_0x5bce25[_0x1a1810];if(_0x760d59['type']!==_0x5994c2['type']||_0x760d59['author']['id']!==_0x5994c2['author']['id']||_0x760d59['subType']!==_0x5994c2['subType'])continue;if(!Pt(_0x5994c2,_0x760d59,['groupId']))continue;if('attribute'==_0x5994c2['type']&&_0x5994c2['data']['oldValue']!=_0x760d59['data']['oldValue'])continue;if('attribute'==_0x5994c2['type']&&_0x456e16['_isBlockAttribute'](_0x5994c2['data']['key']))continue;if('formatBlock'==_0x5994c2['type']){const _0x4d43eb=_0x456e16['editor']['model'],_0x5b4c66=_0x5994c2['getContainedElement']();if(_0x5b4c66&&(_0x4d43eb['schema']['isObject'](_0x5b4c66)||_0x4d43eb['schema']['isLimit'](_0x5b4c66)))continue;}const _0x36d453=_0x293587['get'](_0x5994c2),_0x31d5d4=_0x8a172b['get'](_0x5994c2),_0x40a692=_0x8a172b['get'](_0x760d59),_0x37db13=_0x5994c2['commentThread']&&_0x5994c2['commentThread']['length'],_0x2a8b84=_0x760d59['commentThread']&&_0x760d59['commentThread']['length'];if(!_0x37db13&&_0x36d453(_0x40a692,_0x31d5d4))return _0x456e16['_joinSuggestions'](_0x760d59,_0x5994c2),_0x8a172b['delete'](_0x5994c2),!0x0;if(!_0x2a8b84&&_0x36d453(_0x31d5d4,_0x40a692))return _0x456e16['_joinSuggestions'](_0x5994c2,_0x760d59),_0x8a172b['delete'](_0x760d59),!0x0;}return!0x1;}}['_joinSuggestions'](_0x582d48,_0x192ac1){if(_0x582d48['isMultiRange']){for(const _0x1d4ef7 of _0x192ac1['getRanges']())_0x582d48['addRange'](_0x1d4ef7);}else{const _0x1212eb=_0x192ac1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x582d48,this['_model']['createRange'](_0x582d48['getFirstRange']()['start'],_0x1212eb));}_0x192ac1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x257a3a,_0xcc8a51){const _0x415d28=_0x257a3a['startsWith']('format')||_0x257a3a['startsWith']('attribute')?'FORMATTING':_0x257a3a['toUpperCase']();return o(this['editor']['locale'],_0xcc8a51+'_'+_0x415d28+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x1389b3=this['editor'];if(!_0x1389b3['ui'])return;const {ariaLiveAnnouncer:_0x3968b1}=_0x1389b3['ui'];_0x59f9db(this['_model'],({left:_0x54631c,entered:_0x24e4a1})=>{for(const _0x36e136 of _0x54631c){const {group:_0x34c31b,type:_0x390a07}=this['_splitMarkerName'](_0x36e136['name']);if('suggestion'===_0x34c31b){_0x3968b1['announce'](this['_getMarkerAnnouncementText'](_0x390a07,'LEAVE'));break;}}for(const _0x136a3c of _0x24e4a1){const {group:_0x2a52f8,type:_0x29906b}=this['_splitMarkerName'](_0x136a3c['name']);if('suggestion'===_0x2a52f8){_0x3968b1['announce'](this['_getMarkerAnnouncementText'](_0x29906b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x294b76){if(this['_recordAttributeSuggestions'])return!0x1;const _0x8c31e8=this['editor'],_0x53b3ee=_0x8c31e8['model']['document']['differ']['getChanges']();if(0x0==_0x53b3ee['length'])return!0x1;const _0x1a5d17=[],_0xaf9fb6=_0x53b3ee['filter'](_0x58cba0=>'attribute'==_0x58cba0['type']),_0x19c3c7=_0x53b3ee['filter'](_0x2fa01c=>'insert'==_0x2fa01c['type']&&'$text'!=_0x2fa01c['name']),_0x1297ed=_0x53b3ee['filter'](_0xff1e62=>'remove'==_0xff1e62['type']&&'$text'!=_0xff1e62['name']);for(const _0x247268 of _0xaf9fb6)_0x1a5d17['push']({'key':_0x247268['attributeKey'],'newValue':_0x247268['attributeNewValue'],'oldValue':_0x247268['attributeOldValue'],'range':Ot(_0x247268['range'],_0x8c31e8['model'])});for(const _0xcebfa7 of _0x19c3c7){const _0x1a2a31=_0x1297ed['find'](_0x1466c9=>_0x1466c9['position']['isEqual'](_0xcebfa7['position']));_0x1a2a31&&_0x1a5d17['push']({'key':m,'newValue':_0xcebfa7['name'],'oldValue':_0x1a2a31['name'],'range':_0x8c31e8['model']['createRangeOn'](_0xcebfa7['position']['nodeAfter'])});}return 0x0!=_0x1a5d17['length']&&this['_reduceExistingSuggestions'](_0x294b76,_0x1a5d17);}['_processAttributeSuggestions'](_0x3a9017){let _0x95ee0c=!0x1;const _0x2efa36=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26b715=>_0x26b715['data']['newRange']&&_0x26b715['name']['startsWith']('suggestion:attribute:'));for(const _0x53224d of _0x2efa36){const {subType:_0x1c52d0,id:_0x17557a}=this['_splitMarkerName'](_0x53224d['name']),_0x15383f=_0x1c52d0['split']('|')[0x0];for(const _0x18235a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18235a['id']!=_0x17557a&&'attribute'==_0x18235a['type']&&_0x18235a['data']&&_0x18235a['data']['key']==_0x15383f&&_0x18235a['getFirstRange']()['isIntersecting'](_0x53224d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18235a,_0x53224d['data']['newRange'],_0x3a9017),_0x95ee0c=!0x0);}return _0x95ee0c;}['_recordAttributeChanges'](_0x14e4b3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x14e4b3();}['_isRegisteredAttribute'](_0x4fbdf8){const _0x4483d1=this['_isBlockAttribute'](_0x4fbdf8),_0x2ec8f8=this['_inlineAttributeKeys']['has'](_0x4fbdf8);return _0x4483d1||_0x2ec8f8;}['_reduceExistingSuggestions'](_0x25280c,_0xcbcc80){if(0x0==_0xcbcc80['length'])return!0x1;let _0x1353e4=!0x1;for(const _0x2c45c1 of _0xcbcc80){const _0x289a12=this['_findSuggestions'](_0x2c45c1['range'],'attribute')['filter'](_0x134a85=>!_0x134a85['meta']['isNextTo'])['map'](_0x3e4738=>_0x3e4738['suggestion']),_0x565923=_0x326b5a({'newValue':_0x2c45c1['newValue']});_0x289a12['filter'](_0x405765=>{const [_0x2f2ada,_0x26a004]=_0x405765['subType']['split']('|');return _0x2f2ada==_0x2c45c1['key']&&_0x26a004!=_0x565923;})['forEach'](_0x5aba5a=>{this['_reduceSuggestionAttributeRange'](_0x5aba5a,_0x2c45c1['range'],_0x25280c),_0x1353e4=!0x0;});}return _0x1353e4;}['_reduceSuggestionAttributeRange'](_0x3678fd,_0x2b3016,_0x1af2cf){const _0x54165b=_0x3678fd['getFirstRange']()['getDifference'](_0x2b3016);0x0!==_0x54165b['length']?0x1!==_0x54165b['length']?this['_breakSuggestionMarker'](_0x3678fd,_0x2b3016['start'],_0x2b3016['end']):this['_setSuggestionRange'](_0x3678fd,_0x54165b[0x0]):_0x1af2cf['removeMarker'](_0x3678fd['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x32fa0c){this['_editor']=_0x32fa0c,this['_model']=_0x32fa0c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xbb7109,_0x33a8ee,_0x42c17f,_0x19c640,_0x68fb65,_0x58265e){return new u(this['_model'],{'type':_0xbb7109,'subType':_0x33a8ee,'id':_0x42c17f,'author':_0x19c640,'creator':_0x19c640,'attributes':_0x68fb65,'onAttributesChange':_0x58265e,'onAccept':(..._0x175135)=>this['getSuggestionCallback'](_0xbb7109,_0x33a8ee,'accept')(..._0x175135),'onDiscard':(..._0x4603af)=>this['getSuggestionCallback'](_0xbb7109,_0x33a8ee,'discard')(..._0x4603af)});}['registerCustomCallback'](_0x383660,_0x350eb3,_0x171329,_0x35ddd8){const _0x282f2a=_0x383660+':'+_0x350eb3+':'+_0x171329;this['_customCallbacks']['set'](_0x282f2a,_0x35ddd8);}['getSuggestionCallback'](_0x38a002,_0x480e09,_0x121934){const _0x5849a3=_0x38a002+':'+_0x480e09+':'+_0x121934;return this['_customCallbacks']['get'](_0x5849a3)||this['_defaultCallbacks']['get'](_0x38a002+':'+_0x121934);}['_registerDefaultCallbacks'](){const _0x4409b9=()=>!0x1,_0x16644c=_0x2842b4=>{_0x2842b4['sort']((_0x4ab892,_0x2ff355)=>_0x4ab892['start']['isBefore'](_0x2ff355['start'])?0x1:-0x1),this['_model']['change'](_0x91db59=>{for(const _0x433c49 of _0x2842b4){let _0x6e256;_0x6e256=_0x433c49['end']['isAtEnd']&&_0x433c49['end']['parent']==_0x433c49['start']['nodeAfter']?_0x91db59['createSelection'](_0x433c49['start']['nodeAfter'],'on'):_0x91db59['createSelection'](_0x433c49),this['_model']['deleteContent'](_0x6e256,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4d3713=(_0x4d68e8,_0x2820bb)=>{_0x2820bb&&this['_model']['change'](_0x7a0c2b=>{const {commandName:_0x471f3c,commandParams:_0x59b6ca=[]}=_0x2820bb,_0x13afb5=_0x4d68e8['map'](_0x1f4195=>(Tt(_0x1f4195)&&(_0x1f4195=this['_model']['createRange'](_0x1f4195['end'])),_0x1f4195))['filter'](_0x35cbf9=>'$graveyard'!==_0x35cbf9['root']['rootName']);if(_0x13afb5['length']<0x1)return;const _0x2c1136=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b8a4f=>_0x424176['fromRange'](_0x3b8a4f));_0x7a0c2b['setSelection'](_0x13afb5);for(const _0x40559b of this['_editor']['commands']['commands']())_0x40559b['refresh']();_0x59b6ca['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x471f3c,..._0x59b6ca);const _0x5a56ac=_0x2c1136['filter'](_0x31ed57=>'$graveyard'!=_0x31ed57['root']['rootName']);_0x5a56ac['length']>0x0&&_0x7a0c2b['setSelection'](_0x5a56ac);for(const _0x238dd8 of _0x2c1136)_0x238dd8['detach']();});},_0x3829a3=(_0x41056e,_0x561149)=>0x1==_0x41056e['length']&&0x1==_0x561149['length']&&_0x41056e[0x0]['end']['isEqual'](_0x561149[0x0]['start']),_0x28ae0d=(_0x1b565e,_0x392da5,_0x28e165,_0x50d061)=>Ft(_0x1b565e,_0x392da5,_0x28e165,_0x50d061,this['_model'])?[_0x1b565e,_0x392da5]:Ft(_0x392da5,_0x1b565e,_0x50d061,_0x28e165,this['_model'])?[_0x392da5,_0x1b565e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4409b9),this['_defaultCallbacks']['set']('insertion:discard',_0x16644c),this['_defaultCallbacks']['set']('insertion:join',_0x3829a3),this['_defaultCallbacks']['set']('insertion:chain',_0x28ae0d),this['_defaultCallbacks']['set']('deletion:accept',_0x16644c),this['_defaultCallbacks']['set']('deletion:discard',_0x4409b9),this['_defaultCallbacks']['set']('deletion:join',_0x3829a3),this['_defaultCallbacks']['set']('deletion:chain',_0x28ae0d),this['_defaultCallbacks']['set']('formatInline:accept',_0x4d3713),this['_defaultCallbacks']['set']('formatInline:discard',_0x4409b9),this['_defaultCallbacks']['set']('formatInline:join',_0x3829a3),this['_defaultCallbacks']['set']('formatInline:chain',_0x4409b9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4d3713),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4409b9),this['_defaultCallbacks']['set']('formatBlock:join',_0x3829a3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4409b9),this['_defaultCallbacks']['set']('attribute:accept',_0x4409b9),this['_defaultCallbacks']['set']('attribute:discard',(_0x56842f,_0x5684a7)=>{if(!_0x5684a7)return;const _0x390472=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2fd8dd=>{if(_0x5684a7['key']==m)for(const _0x33e382 of _0x56842f){const _0x2164d4=_0x33e382['start']['nodeAfter'],_0x327b0e=_0x5684a7['oldValue'];_0x2fd8dd['rename'](_0x2164d4,_0x327b0e);}else{if(_0x390472['_isBlockAttribute'](_0x5684a7['key'])){for(const _0x543486 of _0x56842f)void 0x0!==_0x5684a7['oldValue']?_0x2fd8dd['setAttribute'](_0x5684a7['key'],_0x5684a7['oldValue'],_0x543486['start']['nodeAfter']):_0x2fd8dd['removeAttribute'](_0x5684a7['key'],_0x543486['start']['nodeAfter']);}else{for(const _0x5323d6 of _0x56842f)_0x5684a7['oldValue']?_0x2fd8dd['setAttribute'](_0x5684a7['key'],_0x5684a7['oldValue'],_0x5323d6):_0x2fd8dd['removeAttribute'](_0x5684a7['key'],_0x5323d6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3829a3);}}function Rt(_0x40728a,_0x36dd4e,_0x2bd038){for(const _0x3b6885 of _0x36dd4e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b6885['root']==_0x3b6885)return!0x1;if(!_0x2bd038['containsItem'](_0x3b6885))return!0x1;if(_0x40728a['isObject'](_0x3b6885)||_0x40728a['isLimit'](_0x3b6885))return!0x0;}return!0x1;}function Tt(_0x3f7aa1){return _0x3f7aa1['end']['parent']==_0x3f7aa1['start']['nodeAfter']&&_0x3f7aa1['end']['isAtStart'];}function Et(_0x3b5b4c,_0x145c22,_0x319c1e,_0x5be46d){const _0x2b4f67=_0x1904c1=>!_0x1904c1['item']['is']('$textProxy')&&!_0x5be46d['isObject'](_0x1904c1['item']),_0x11a21a=_0x3b5b4c['start']['getLastMatchingPosition'](_0x2b4f67),_0x964713=_0x3b5b4c['end']['getLastMatchingPosition'](_0x2b4f67,{'direction':'backward'});return(!_0x3b5b4c['start']['isEqual'](_0x11a21a)||!_0x3b5b4c['end']['isEqual'](_0x964713))&&(_0x11a21a['isBefore'](_0x964713)?_0x319c1e['updateMarker'](_0x145c22,{'range':_0x319c1e['createRange'](_0x11a21a,_0x964713)}):_0x319c1e['removeMarker'](_0x145c22),!0x0);}function Vt(_0x1d0e94){return _0x326b5a(_0x1d0e94);}function Ut(_0x1b42a4){const _0x5a9279=_0x1b42a4['start']['nodeAfter'];return _0x5a9279&&_0x5a9279['is']('element');}function Ot(_0x4cddfc,_0x25addf){return null==_0x4cddfc['end']['nodeBefore']&&_0x4cddfc['end']['parent']==_0x4cddfc['start']['nodeAfter']?Gt(_0x4cddfc['start']['nodeAfter'],_0x25addf):_0x4cddfc;}function Gt(_0x1164e0,_0x2bfc67){const _0x29ed5a=_0x2bfc67['schema']['isObject'](_0x1164e0)||_0x2bfc67['schema']['isSelectable'](_0x1164e0);return _0x2bfc67['createRange'](_0x2bfc67['createPositionAt'](_0x1164e0,'before'),_0x29ed5a?_0x2bfc67['createPositionAfter'](_0x1164e0):_0x2bfc67['createPositionAt'](_0x1164e0,'end'));}function Ft(_0xa31486,_0x385394,_0x16a058,_0x3814ea,_0x5cc4e4){if(!Pt(_0xa31486,_0x385394))return!0x1;if(_0x16a058['end']['isEqual'](_0x3814ea['start']))return!0x0;if(_0xa31486['type']!=_0x385394['type'])return!0x1;if(!_0x16a058['end']['isTouching'](_0x3814ea['start']))return!0x1;const _0x59902a=_0x5cc4e4['createRange'](_0x16a058['end'],_0x3814ea['start'])['getWalker']();for(const _0x221d95 of _0x59902a)if(['elementStart','elementEnd']['includes'](_0x221d95['type'])&&_0x5cc4e4['schema']['isLimit'](_0x221d95['item']))return!0x1;return!0x0;}function Pt(_0x2d43b9,_0xfd1b5e,_0x4234ef=[]){return!(!_0x2d43b9['_isDataLoaded']||!_0xfd1b5e['_isDataLoaded'])&&_0x5767df(Bt(_0x2d43b9['attributes'],_0x4234ef),Bt(_0xfd1b5e['attributes'],_0x4234ef));}function Lt(_0x517347,_0x3d0811){const _0x52c1d1=Ht(_0x517347['attributes']),_0x2d35ad=Ht(_0x3d0811);if(!_0x517347['_isDataLoaded'])return!0x1;for(const _0x3f24a9 of Object['keys'](_0x2d35ad))if(!_0x5767df(_0x52c1d1[_0x3f24a9],_0x2d35ad[_0x3f24a9]))return!0x1;return!0x0;}function Ht(_0x43281f){const _0x38521a=Object['assign']({},_0x43281f);return delete _0x38521a['skipNestingCheck'],delete _0x38521a['tablePasteChainId'],_0x38521a;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4fa93a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3c397a,_0xe4ad88,_0x266dd2,_0x590f6e){super(),this['model']=_0xe4ad88,this['view']=_0x266dd2,this['commentThreadController']=_0x590f6e,this['_editor']=_0x3c397a,this['_acceptCommand']=_0x3c397a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3c397a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x82e76f,_0x2a4cec)=>_0x82e76f||_0x2a4cec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5992cf=>_0x5992cf&&this['_editor']['model']['canEditAt'](_0xe4ad88['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4079e6=>_0x4079e6&&this['_editor']['model']['canEditAt'](_0xe4ad88['getRanges']())),this['_pendingAction']=null,_0x266dd2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x266dd2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x266dd2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x266dd2,'change:isDirty',()=>{_0x266dd2['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 _0x1444d2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1444d2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x385a1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x36323c,_0x35977d,_0x1703cf,_0x1347cb){super(_0x36323c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x35977d['authoredAt']),this['bind']('authoredAt')['to'](_0x35977d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x35977d,this['_localUser']=_0x1703cf,this['_config']=_0x1347cb,_0x1347cb['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:_0x2f35ad}=this['_config'];this['commentsListView']=new _0x2f35ad(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',_0x3b0dbf=>_0x3b0dbf+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bf06b,_0x2c865a)=>_0x5bf06b||!!_0x2c865a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1bc757}=this['_config'],_0xd9d7a1=new _0x1bc757(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14bd39=_0xd9d7a1['commentInputView'];return _0xd9d7a1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14bd39,'value',(_0x312b23,_0x652646,_0x2dfa92)=>!!_0x2dfa92||_0x312b23&&!_0x652646),_0x14bd39['on']('submit',(_0x56c748,_0x1b1d80)=>{this['fire']('addComment',_0x1b1d80),_0x14bd39['editor']['setData']('');}),_0x14bd39['on']('cancel',()=>this['focus']()),_0x14bd39['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd9d7a1;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3a8125,_0x3670af,_0x303a6a,_0x46d103){super(_0x3a8125,_0x3670af,_0x303a6a,_0x46d103),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2cde4c=>_0x2cde4c&&_0x2cde4c[0x0]?_0x2cde4c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x174ce8,_0x3104cb)=>{let _0x13ef1a='';for(const _0x265de7 of _0x174ce8)_0x13ef1a+='<p>'+ds(_0x265de7['content'],_0x265de7['color'])+'</p>';return _0x3104cb?_0x13ef1a:_0x1f62ea(_0x13ef1a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3a8125,'Accept\x20suggestion'),_0x1d4a10['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3a8125,'Discard\x20suggestion'),_0x1d4a10['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1ff3e0(_0x3a8125,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4a0ff7=this['bindTemplate'],_0x4a3e7a=[{'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':_0x4a0ff7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a0ff7['to']('authoredAt',_0x263590=>this['_config']['formatDateTime'](_0x263590))}]}]},{'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']&&_0x4a3e7a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5dd37e={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4a0ff7['if']('isActive','ck-suggestion-wrapper--active'),_0x4a0ff7['to']('type',_0x4ed623=>'ck-suggestion-'+_0x4ed623),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':_0x4a3e7a}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5dd37e['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)),_0x5dd37e;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2c9365,_0x5caa5a,_0x1d1c96)=>{this['_descriptionElement']['innerHTML']=_0x1d1c96;});}['_createButton'](_0x69f2a2,_0x15d3f7,_0x15f584,_0x3115d3,_0x5ef583){const _0x31ce59=new _0x3786c0(this['locale']);return _0x31ce59['set']({'label':_0x69f2a2,'icon':_0x15d3f7,'tooltip':!0x0,'tooltipPosition':_0x5ef583}),_0x31ce59['extendTemplate']({'attributes':{'class':_0x15f584}}),_0x31ce59['on']('execute',()=>{this['fire'](_0x3115d3,this['_model']['id']);}),_0x31ce59;}['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(_0x33cddf,_0x321541){let _0x27c180='';return _0x27c180+=_0x33cddf['split']('*')['map']((_0x3ddf52,_0x2b19ce)=>_0x2b19ce%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3ddf52)+'</span>':us(_0x3ddf52))['join'](''),_0x321541&&(_0x27c180+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x321541['value']+'\x22\x20title=\x22'+_0x321541['title']+'\x22></span>'),_0x27c180;}function us(_0x26dced){const _0x58242e=document['createElement']('span');return _0x58242e['innerText']=_0x26dced,_0x58242e['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 _0x470f93{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x26cba0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x232d2a){super(_0x232d2a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x45db98=this['editor']['config'];_0x45db98['define']('trackChanges.SuggestionThreadView',ne),_0x45db98['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x45db98['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe2eebd,_0x2894c5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d9401,_0x419814]of this['_handleControllerBuffer']){const _0x45c503=this['_suggestionToController']['has'](_0x5d9401);_0x45c503||_0x419814?_0x45c503&&_0x419814&&this['_destroyController'](_0x5d9401):this['_initializeController'](_0x5d9401);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe2eebd,_0x2894c5);}['init'](){const _0x3e2adb=this['editor'],_0x32b871=_0x3e2adb['plugins']['get']('TrackChangesEditing'),_0x349a71=_0x3e2adb['plugins']['get']('Annotations'),_0x276aa3=_0x3e2adb['plugins']['get']('EditorAnnotations'),_0x246eb8=_0x3e2adb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x276aa3['addSourceCollector'](()=>{const _0x47ec70=[];for(const [_0x2b780c,_0x5b540a]of Array['from'](this['_suggestionToController'])){const _0xe3d6c9=_0x2b780c['getAllAdjacentSuggestions'](),_0x5d16da=[];for(const _0x393639 of _0xe3d6c9){if(!_0x393639['isInContent'])continue;if(_0x393639['isMultiRange']){_0x5d16da['push'](..._0x393639['getRanges']());continue;}const _0x34aa6e=_0x393639['getFirstRange']();if(_0x5d16da['length']>0x0){const _0x66512b=_0x5d16da[0x0]['getJoined'](_0x34aa6e);if(_0x66512b){_0x5d16da[0x0]=_0x66512b;continue;}}_0x5d16da['push'](_0x34aa6e);}_0x47ec70['push']([_0x5b540a['view'],_0x5d16da]);}return _0x47ec70;}),this['listenTo'](_0x32b871,'suggestionLoaded',(_0x45f6a7,_0x2102c6)=>{this['listenTo'](_0x2102c6,'change:previous',(_0xd44b08,_0x463ab6,_0x1d8b1d,_0x5a2d0f)=>{_0x2102c6['isInContent']&&(null==_0x1d8b1d?(this['_updateController'](_0x5a2d0f['head']),this['_handleSuggestionControllerDelayed'](_0x2102c6,!0x1)):(this['_updateController'](_0x1d8b1d['head']),null==_0x5a2d0f&&this['_handleSuggestionControllerDelayed'](_0x2102c6,!0x0)));}),null!==_0x2102c6['previous']?this['_updateController'](_0x2102c6['head']):this['_handleSuggestionControllerDelayed'](_0x2102c6,!0x1);}),this['listenTo'](_0x32b871,'suggestionUnloaded',(_0x363ad7,_0x231323,_0x438430)=>{this['stopListening'](_0x231323,'change:previous'),this['_handleControllerBuffer']['delete'](_0x231323),this['_suggestionToController']['has'](_0x231323)&&this['_destroyController'](_0x231323),_0x438430&&this['_updateController'](_0x438430['head']);}),this['listenTo'](_0x32b871,'suggestionChanged',(_0x510f1d,_0x3110cd)=>{this['_updateController'](_0x3110cd);}),this['listenTo'](_0x349a71,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x246eb8,'addComment',(_0x7ef4b2,{threadId:_0x44da40,isFromAdapter:_0x419250})=>{if(_0x419250||!_0x32b871['hasSuggestion'](_0x44da40))return;const _0x1f1786=_0x32b871['getSuggestion'](_0x44da40);this['_suggestionToController']['get'](_0x1f1786)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5916b8=this['editor']['plugins']['get']('Annotations'),_0x3d2b2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dd428=Array['from'](_0x5916b8['activeAnnotations'],_0x308ecd=>_0x308ecd['innerView'])['filter'](_0x37cb32=>this['_viewToController']['has'](_0x37cb32)),_0x1f282e=[];for(const _0x403c23 of _0x3dd428){const _0x2bc537=this['_viewToController']['get'](_0x403c23)['model']['getAllAdjacentSuggestions']();_0x1f282e['push'](..._0x2bc537['reduce']((_0x554ff3,_0x4f2af3)=>[..._0x554ff3,..._0x4f2af3['getMarkerNames']()],[]));}_0x3d2b2e['activeMarkers']=_0x1f282e;}['_addUIComponentsToFactory'](){const _0x26faf5=this['editor'],_0x1816ba=_0x26faf5['locale'],_0x20ca65=o(_0x1816ba,'Track\x20changes'),_0x459de1=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x20ca65,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1816ba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x305d56 of _0x459de1)if(ae(_0x305d56)){const _0x3bbfe3=_0x26faf5['commands']['get'](_0x305d56['model']['commandName']);_0x305d56['model']['bind']('isOn','isEnabled')['to'](_0x3bbfe3,'value','isEnabled');}_0x26faf5['ui']['componentFactory']['add']('trackChanges',_0x2a8024=>this['_createToolbarButton'](_0x2a8024,_0x459de1,_0x20ca65)),_0x26faf5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d526b=>this['_createMenuBarMenu'](_0x4d526b,_0x459de1,_0x20ca65));}['_createToolbarButton'](_0x3f8abb,_0x4dbf32,_0x412343){const _0x12760d=zt(_0x3f8abb,Zt),_0x218f90=this['editor']['commands']['get']('trackChanges');_0x12760d['buttonView']['set']({'tooltip':_0x412343,'label':_0x412343,'icon':ie}),_0x12760d['buttonView']['bind']('isOn')['to'](_0x218f90,'value'),_0x12760d['buttonView']['on']('execute',()=>{_0x218f90['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x12760d,_0x4dbf32,{'role':'menu'});const _0x3427bc=[];for(const _0x4e1b56 of _0x4dbf32)ae(_0x4e1b56)&&_0x3427bc['push'](this['editor']['commands']['get'](_0x4e1b56['model']['commandName']));const _0x5b6e78=_0x12760d['buttonView'];return _0x5b6e78['actionView']['unbind']('isEnabled'),_0x5b6e78['arrowView']['unbind']('isEnabled'),_0x5b6e78['actionView']['bind']('isEnabled')['to'](_0x218f90,'isEnabled'),_0x5b6e78['arrowView']['bind']('isEnabled')['toMany'](_0x3427bc,'isEnabled',(..._0x435bb6)=>_0x435bb6['some'](_0x1a7e9c=>_0x1a7e9c)),_0x12760d['on']('execute',_0x2ac7f6=>{this['editor']['execute'](_0x2ac7f6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12760d;}['_createMenuBarMenu'](_0x53b8a7,_0x37b1be,_0x75f6a4){const _0x74a154=new Kt(_0x53b8a7),_0x2d17fc=this['editor']['commands']['get']('trackChanges');_0x74a154['buttonView']['set']({'label':_0x75f6a4,'icon':ie});const _0x243e4a=new Qt(_0x53b8a7);for(const _0x177fd0 of _0x37b1be){if('separator'==_0x177fd0['type']){_0x243e4a['items']['add'](new Jt(_0x53b8a7));continue;}const _0x43cbcb=new Xt(_0x53b8a7,_0x74a154),_0x2769cd=new Yt(_0x53b8a7),_0x2c4e01=_0x177fd0['model'];_0x2769cd['bind'](...Object['keys'](_0x2c4e01))['to'](_0x2c4e01),_0x2769cd['delegate']('execute')['to'](_0x74a154),_0x2769cd['on']('execute',()=>{this['editor']['execute'](_0x2c4e01['commandName']),this['editor']['editing']['view']['focus']();}),_0x43cbcb['children']['add'](_0x2769cd),_0x243e4a['items']['add'](_0x43cbcb);}return _0x74a154['bind']('isEnabled')['to'](_0x2d17fc,'isEnabled'),_0x74a154['panelView']['children']['add'](_0x243e4a),_0x74a154;}['_initializeController'](_0x35aded){const _0xb85fd9=this['editor'],_0x1c95fb=_0xb85fd9['config'],_0x37ed11=_0xb85fd9['plugins']['get']('Annotations'),_0x369797=_0xb85fd9['plugins']['get']('CommentsRepository'),_0x48d30f=_0xb85fd9['plugins']['get']('EditorAnnotations'),_0x28033d=_0xb85fd9['plugins']['get'](_0x26cba0)['me'],_0x3cb5ab=_0x1c95fb['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x8f2f61,CommentThreadInputView:_0x4d1cdb}=_0xb85fd9['plugins']['get']('CommentsUI');let _0x4b2f20,_0x15215c;this['_annotationViews']['has'](_0x35aded['id'])?(_0x15215c=this['_annotationViews']['get'](_0x35aded['id']),_0x4b2f20=_0x15215c['mainView']):(_0x4b2f20=new _0x3cb5ab(_0xb85fd9['locale'],_0x35aded,_0x28033d,{'disableComments':this['_disableComments'],'editorConfig':_0x1c95fb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1c95fb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c95fb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c95fb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3c0223(_0x1c95fb['get']('locale')),'CommentView':_0x1c95fb['get']('comments')['CommentView'],'CommentsListView':_0x8f2f61,'CommentThreadInputView':_0x4d1cdb}),_0x4b2f20['acceptButton']['on']('execute',()=>{_0xb85fd9['editing']['view']['focus']();}),_0x4b2f20['discardButton']['on']('execute',()=>{_0xb85fd9['editing']['view']['focus']();}),_0x15215c=_0x37ed11['createAnnotationView'](this['editor']['locale'],_0x4b2f20),_0x15215c['bind']('isDirty')['to'](_0x4b2f20,'isDirty'),_0x15215c['bind']('length')['to'](_0x4b2f20),_0x15215c['bind']('type')['to'](_0x4b2f20,'type',_0x265fb0=>'suggestion-'+_0x265fb0),this['_annotationViews']['set'](_0x35aded['id'],_0x15215c));const _0x315108=_0x369797['createCommentThreadController'](_0x35aded['commentThread'],_0x4b2f20),_0x211f9f=new oe(_0xb85fd9,_0x35aded,_0x4b2f20,_0x315108),_0x4cfa6c=_0x35aded['getAllAdjacentSuggestions']()['filter'](_0xa5a332=>_0xa5a332['isInContent']);_0x4b2f20['descriptionParts']=_0xb85fd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4cfa6c),this['_suggestionToController']['set'](_0x35aded,_0x211f9f),this['_viewToController']['set'](_0x4b2f20,_0x211f9f);const _0x29b852=_0x37ed11['createAnnotation']({'view':_0x15215c,'target':()=>{const _0x13d940=[],_0x385bd9=_0x35aded['getAllAdjacentSuggestions']()['filter'](_0x2eb060=>_0x2eb060['isInContent']);for(const _0x561333 of _0x385bd9)_0x13d940['push'](..._0x561333['getMarkers']());return _0x741fd5(_0xb85fd9['editing'],_0x13d940);},'type':()=>'suggestion-'+_0x211f9f['view']['type']});_0x369797['_bindAnnotationToEditors'](_0x4b2f20,_0x29b852),_0x37ed11['add'](_0x29b852),_0x48d30f['registerAnnotation'](_0x29b852);}['_destroyController'](_0x38ff96){const _0x22c0bb=this['editor']['plugins']['get']('CommentsRepository'),_0x113475=this['editor']['plugins']['get']('Annotations'),_0x48fb9b=this['_suggestionToController']['get'](_0x38ff96),_0x369629=_0x48fb9b['view'],_0x2fa36d=_0x113475['getByInnerView'](_0x369629);_0x22c0bb['_unbindEditors'](_0x369629),_0x2fa36d&&_0x113475['remove'](_0x2fa36d),this['_suggestionToController']['delete'](_0x38ff96),this['_viewToController']['delete'](_0x369629),_0x48fb9b['destroy']();}['_updateController'](_0x56da39){if(!_0x56da39['isInContent']||!this['_suggestionToController']['has'](_0x56da39))return;const _0x4503fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3ca2=this['_suggestionToController']['get'](_0x56da39),_0x4d72e8=_0x56da39['getAllAdjacentSuggestions']();_0x2d3ca2['view']['descriptionParts']=_0x4503fe['descriptionFactory']['getDescriptions'](_0x4d72e8);}['destroy'](){for(const _0x21f50d of this['_suggestionToController']['keys']())this['_destroyController'](_0x21f50d);for(const _0x18fce1 of this['_annotationViews']['values']())_0x18fce1['mainView']['destroy']();super['destroy']();}}function ae(_0x550eac){return'model'in _0x550eac;}class k extends _0x470f93{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x430f36){this['editor']['plugins']['get'](p)['adapter']=_0x430f36;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x364c28){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x364c28);}['getSuggestions']({skipNotAttached:_0x18c43c=!0x1,toJSON:_0x408e3a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x18c43c,'toJSON':_0x408e3a});}['getSuggestion'](_0x50c1fa){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x50c1fa);}}const T=['Pagination'];class P extends _0x470f93{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x11bd7e=this['editor'];if(_0x11bd7e['config']['define']('trackChangesData.editorCreator',_0x15e87b=>{const _0x295b72=_0x11bd7e['model']['document']['getRootNames']()['reduce']((_0x172773,_0x140cbd)=>(_0x172773[_0x140cbd]='',_0x172773),{});return _0x11bd7e['constructor']['create'](_0x295b72,_0x15e87b);}),'function'!=typeof _0x11bd7e['config']['get']('trackChangesData')['editorCreator'])throw new _0x4524f9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53e0ad){return N(this['editor'],!0x0,_0x53e0ad);}['getDataWithDiscardedSuggestions'](_0x159458){return N(this['editor'],!0x1,_0x159458);}}class D extends _0x470f93{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x33c7f){super(_0x33c7f),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(_0x5808c2){return void 0x0!==_0x5808c2['getRootsAttributes'];}async function N(_0x2d9e90,_0x4e694a,_0x39eea7){const _0x3864dd=_0x486efe(_0x2d9e90,T);_0x3864dd['plugins']['push'](p,D),_0x3864dd['rootsAttributes']=v(_0x2d9e90)?_0x2d9e90['getRootsAttributes']():void 0x0;const _0x43e990=document['createDocumentFragment'](),_0x291cb5=_0x2d9e90['config']['get']('trackChangesData')['editorCreator'],_0x8ff5f1=await _0x291cb5(_0x3864dd,()=>function(_0x5c3563){const _0x540f28=document['createElement']('div');return _0x5c3563['appendChild'](_0x540f28),_0x540f28;}(_0x43e990));!function(_0x4429be,_0x16809f){const _0x90a166=_0x4429be['model']['document']['getRootNames']()['reduce']((_0x4c00c0,_0x220cf7)=>(_0x4c00c0[_0x220cf7]=_0x4429be['data']['get']({'rootName':_0x220cf7}),_0x4c00c0),{}),_0x418ce0=_0x4429be['plugins']['get']('Users')['users']['map'](_0x563c5c=>({'id':_0x563c5c['id'],'name':_0x563c5c['name']})),_0x4338e0=_0x4429be['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a640d=_0x4429be['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e3409=_0x16809f['plugins']['get']('Users'),_0x7de5c6=_0x16809f['plugins']['get']('TrackChangesEditing'),_0x5171e5=_0x16809f['plugins']['get']('CommentsRepository');for(const _0x1e6ced of _0x418ce0)_0x4e3409['getUser'](_0x1e6ced['id'])||_0x4e3409['addUser'](_0x1e6ced);_0x4e3409['me']||_0x4e3409['useAnonymousUser']();for(const _0x43a6c5 of _0x3a640d)_0x5171e5['addCommentThread'](_0x43a6c5);for(const _0x287d8f of _0x4338e0)_0x7de5c6['addSuggestionData'](_0x287d8f);_0x16809f['data']['set'](_0x90a166);}(_0x2d9e90,_0x8ff5f1),_0x8ff5f1['execute'](_0x4e694a?'acceptAllSuggestions':'discardAllSuggestions');const _0x9f5b55=v(_0x8ff5f1)?_0x8ff5f1['getFullData'](_0x39eea7):_0x8ff5f1['data']['get'](_0x39eea7);return await _0x8ff5f1['destroy'](),_0x9f5b55;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|