@ckeditor/ckeditor5-track-changes 42.0.0-alpha.11 → 42.0.0-alpha.12
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
|
-
_0x3e7508(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xf10c89,_0x49ae41){super(),this['id']=_0x49ae41['id'],this['type']=_0x49ae41['type'],this['subType']=_0x49ae41['subType']||null,this['author']=_0x49ae41['author'],this['creator']=_0x49ae41['creator']||_0x49ae41['author'],this['isExternal']=Boolean(_0x49ae41['attributes']&&_0x49ae41['attributes']['@external']),this['data']=null,this['_model']=_0xf10c89,this['_onAccept']=_0x49ae41['onAccept'],this['_onDiscard']=_0x49ae41['onDiscard'],this['_onAttributesChange']=_0x49ae41['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x49ae41['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 _0x3f0338=this;for(;_0x3f0338['previous'];)_0x3f0338=_0x3f0338['previous'];return _0x3f0338;}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'](_0x40b1f6){this['_markerNames']['add'](_0x40b1f6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x514f93=>this['_model']['markers']['get'](_0x514f93))['filter'](_0x222ca5=>_0x222ca5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4e37fe=>{for(const _0x294df6 of this['getMarkers']())_0x4e37fe['removeMarker'](_0x294df6);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e4894){this['_model']['change'](_0x46a245=>{_0x46a245['removeMarker'](_0x5e4894);}),this['_markerNames']['delete'](_0x5e4894);}['addRange'](_0x7e5039){const _0x118bfc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x118bfc),this['_model']['change'](_0x11f91c=>{_0x11f91c['addMarker'](_0x118bfc,{'range':_0x7e5039,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xa79da8){for(const _0x101d9c of this['getRanges']())if(_0x101d9c['isIntersecting'](_0xa79da8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x27c17f=>_0x27c17f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x58ea85,_0x25f285)=>[..._0x58ea85,..._0x25f285['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd898ff=this['getRanges']();if(0x1!=_0xd898ff['length'])return null;const _0x15b1ee=_0xd898ff[0x0],_0x137ab1=_0x15b1ee['start']['nodeAfter'],_0x449204=_0x15b1ee['end']['nodeBefore'];return _0x137ab1 instanceof _0x5798d3?_0x137ab1!=_0x449204?null:_0x137ab1: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 _0x1b24bb=[];let _0x5a2f1d=this['head'];for(;_0x5a2f1d;)_0x1b24bb['push'](_0x5a2f1d),_0x5a2f1d=_0x5a2f1d['next'];return _0x1b24bb;}['setAttribute'](_0x222ba0,_0x38f62e){const _0x20dbd9=_0x4bf222(this['attributes']);_0x332997(_0x20dbd9,_0x222ba0,_0x38f62e),_0x22c2ec(_0x20dbd9,this['attributes'])||(this['attributes']=_0x20dbd9,this['_onAttributesChange'](_0x20dbd9));}['removeAttribute'](_0x5e71a4){const _0x73c1e2=_0x4bf222(this['attributes']);_0x1c9605(_0x73c1e2,_0x5e71a4),_0x22c2ec(_0x73c1e2,this['attributes'])||(this['attributes']=_0x73c1e2,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 _0x3dae9a()['substr'](0x1,0x5);}}function o(_0x21b62f,_0x1b0ffb,_0x2ec647){const t=_0x21b62f['t'];switch(_0x1b0ffb){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',_0x2ec647);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2ec647);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2ec647);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2ec647);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2ec647);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',_0x2ec647);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2ec647);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',_0x2ec647);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2ec647);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2ec647);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2ec647);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2ec647);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2ec647);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2ec647);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2ec647);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2ec647);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2ec647);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2ec647);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2ec647);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2ec647);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2ec647);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2ec647);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2ec647);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'},_0x2ec647);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2ec647);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2ec647);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2ec647);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2ec647);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2ec647);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2ec647);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2ec647);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2ec647);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'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2ec647);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2ec647);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'},_0x2ec647);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'},_0x2ec647);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 _0x1b0ffb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x14bb94,_0x12dce7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14bb94,this['_locale']=_0x12dce7;}['getDescriptions'](_0x44f958){const _0x52ec34=[],_0x1bb915=new Set(),_0xb44874=new Set();for(let _0x3fdb75=0x0;_0x3fdb75<_0x44f958['length'];_0x3fdb75++){const _0x4a5784=_0x44f958[_0x3fdb75];if(!_0x4a5784['isInContent'])continue;const _0x5737ea=this['_handleCustomCallbackDescription'](_0x4a5784);if(_0x5737ea){if(null!=_0x4a5784['subType']){if(_0x1bb915['has'](_0x4a5784['subType']))continue;_0x1bb915['add'](_0x4a5784['subType']);}_0x52ec34['push'](_0x5737ea);}else{if('attribute'!=_0x4a5784['type'])'insertion'!=_0x4a5784['type']&&'deletion'!=_0x4a5784['type']||this['_handleInsertRemoveSuggestionDescription'](_0x52ec34,_0x4a5784,_0x44f958[_0x3fdb75+0x1]);else{const _0x14b76a=_0x4a5784['data']['key'];if(_0xb44874['has'](_0x14b76a))continue;_0xb44874['add'](_0x4a5784['data']['key']),_0x14b76a==m?this['_handleRenameSuggestionDescription'](_0x52ec34,_0x4a5784):this['_handleAttributeSuggestionDescription'](_0x52ec34,_0x4a5784);}}}return this['_resolveDescriptionItems'](_0x52ec34);}['registerDescriptionCallback'](_0x5af2d9){this['_customCallbacks']['push'](_0x5af2d9);}['registerElementLabel'](_0x11b9a3,_0x5e733a,_0x5799b3=_0x3ca1ca['normal']){'function'==typeof _0x11b9a3?_0xe1cb41(this['_itemLabelsCallbacks'],{'matchingCallback':_0x11b9a3,'label':_0x5e733a,'priority':_0x5799b3}):this['_itemLabels']['set'](_0x11b9a3,_0x5e733a);}['registerAttributeLabel'](_0x12bb7d,_0x57aa5f){this['_attributeLabels']['set'](_0x12bb7d,_0x57aa5f);}['getItemLabel'](_0x2815dc,_0x3ba6ec=0x1){let _0x805e26;for(const _0x4abbb4 of this['_itemLabelsCallbacks'])if(_0x4abbb4['matchingCallback'](_0x2815dc)){_0x805e26=_0x4abbb4['label'];break;}return _0x805e26||(_0x805e26=this['_itemLabels']['get'](_0x2815dc['name'])),_0x805e26?_0x805e26(_0x3ba6ec):0x1!==_0x3ba6ec?_0x3ba6ec+'\x20'+_0x2815dc['name']+'s':''+_0x2815dc['name'];}['_addDescriptionItems'](_0x50f3aa,_0x802bc2){const _0x47ee2b=_0x802bc2['getFirstRange']()['getWalker'](),_0x3f7223='insertion'==_0x802bc2['type']?'add':'remove';for(const _0xc7c25f of _0x47ee2b){const _0x5c4d11=_0xc7c25f['item'],_0x23cde5=_0x50f3aa[_0x50f3aa['length']-0x1];if(_0x5c4d11['is']('$textProxy'))_0x23cde5&&_0x23cde5['type']['indexOf']('Container')>-0x1&&_0x50f3aa['pop'](),_0x23cde5&&'text'==_0x23cde5['type']?_0x23cde5[_0x3f7223]+=_0x5c4d11['data']:_0x50f3aa['push']({'type':'text','add':'add'==_0x3f7223?_0x5c4d11['data']:'','remove':'remove'==_0x3f7223?_0x5c4d11['data']:''});else{if(this['_schema']['isObject'](_0x5c4d11)){const _0x3ddb96=_0x5c4d11;if(_0x23cde5&&_0x23cde5['type']['indexOf']('Container')>-0x1&&_0x50f3aa['pop'](),'elementEnd'==_0xc7c25f['type'])continue;_0x23cde5&&_0x23cde5['type']==_0x3f7223+'Object'&&_0x23cde5['element']['name']==_0x3ddb96['name']?_0x23cde5['quantity']++:_0x50f3aa['push']({'type':_0x3f7223+'Object','element':_0x3ddb96,'quantity':0x1}),_0x47ee2b['skip'](_0x107d03=>!('elementEnd'==_0x107d03['type']&&_0x107d03['item']==_0x5c4d11));}else{if(this['_schema']['checkChild'](_0x5c4d11,'$text')||_0x5c4d11['is']('element','softBreak')){const _0xc6cb0a=_0x5c4d11;if('add'==_0x3f7223&&'elementStart'==_0xc7c25f['type']||'remove'==_0x3f7223&&'elementEnd'==_0xc7c25f['type'])continue;if(_0x23cde5&&-0x1==_0x23cde5['type']['indexOf']('Container')){'text'==_0x23cde5['type']&&(_0x23cde5[_0x3f7223]+='\x0a');continue;}let _0x137a7a;if(_0x137a7a='add'==_0x3f7223?_0xc6cb0a['nextSibling']&&!this['_schema']['isObject'](_0xc6cb0a['nextSibling'])?_0xc6cb0a['nextSibling']:null:_0xc6cb0a['previousSibling']&&!this['_schema']['isObject'](_0xc6cb0a['previousSibling'])?_0xc6cb0a['previousSibling']:null,_0xc6cb0a['isEmpty']||_0x137a7a&&_0x137a7a['isEmpty']){const _0x42c848=_0x137a7a&&_0x137a7a['isEmpty']?_0x137a7a:_0xc6cb0a;_0x23cde5&&_0x23cde5['type']==_0x3f7223+'EmptyContainer'&&_0x23cde5['element']['name']==_0x42c848['name']?_0x23cde5['quantity']++:_0x50f3aa['push']({'type':_0x3f7223+'EmptyContainer','element':_0x42c848,'quantity':0x1});}else _0x50f3aa['push']({'type':_0x3f7223+'Container','element':_0xc6cb0a});}}}}}['_resolveDescriptionItems'](_0x598fb9){const _0x60d033=this['_locale'],_0xb72d29=[],_0x350e1f=[],_0x55801b=[];for(const _0x49dfd7 of _0x598fb9)switch(_0x49dfd7['type']){case'text':if(_0x49dfd7['add']=_0x49dfd7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49dfd7['remove']=_0x49dfd7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49dfd7['add']&&''!=_0x49dfd7['remove']){_0xb72d29['push']({'type':'replace','content':o(_0x60d033,'REPLACE_TEXT',['\x22'+_0x49dfd7['remove']+'\x22','\x22'+_0x49dfd7['add']+'\x22'])});continue;}if(null!=_0x49dfd7['add']['match'](/^ +$/)){_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Insert:*\x20%0',o(_0x60d033,'ELEMENT_SPACE',_0x49dfd7['add']['length']))});continue;}if(null!=_0x49dfd7['remove']['match'](/^ +$/)){_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Remove:*\x20%0',o(_0x60d033,'ELEMENT_SPACE',_0x49dfd7['remove']['length']))});continue;}if(''!=_0x49dfd7['add']){_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Insert:*\x20%0','\x22'+_0x49dfd7['add']+'\x22')});continue;}_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Remove:*\x20%0','\x22'+_0x49dfd7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Insert:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Remove:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'addContainer':_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Split:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'removeContainer':_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Merge:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'addFormat':_0x350e1f['push'](_0x49dfd7['key']);continue;case'removeFormat':_0x55801b['push'](_0x49dfd7['key']);continue;default:_0xb72d29['push'](_0x49dfd7);}if(_0x350e1f['length']){const _0x5e9377=_0x350e1f['map'](_0x576aef=>this['_attributeLabels']['has'](_0x576aef)?this['_attributeLabels']['get'](_0x576aef):_0x576aef)['join'](',\x20');_0xb72d29['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5e9377)});}if(_0x55801b['length']){const _0x5b410d=_0x55801b['map'](_0x39e030=>this['_attributeLabels']['has'](_0x39e030)?this['_attributeLabels']['get'](_0x39e030):_0x39e030)['join'](',\x20');_0xb72d29['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5b410d)});}return _0xb72d29;}['_handleCustomCallbackDescription'](_0x46a6db){for(const _0x528e70 of this['_customCallbacks']){const _0xab17ea=_0x528e70(_0x46a6db);if(_0xab17ea&&'type'in _0xab17ea)return _0xab17ea;}}['_handleAttributeSuggestionDescription'](_0x2c2717,_0x330a11){const _0x1015a4=_0x330a11['data'],_0xbf5ef1=void 0x0===_0x1015a4['newValue']?'removeFormat':'addFormat';_0x2c2717['push']({'type':_0xbf5ef1,'key':_0x1015a4['key']});}['_handleRenameSuggestionDescription'](_0x1e2053,_0x336750){_0x1e2053['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x336750['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2bf642,_0x8ce108,_0x3d6658){if(this['_addDescriptionItems'](_0x2bf642,_0x8ce108),_0x3d6658&&_0x3d6658['getFirstRange']()&&!_0x8ce108['getFirstRange']()['end']['isEqual'](_0x3d6658['getFirstRange']()['start'])){const _0x556223=_0x2bf642[_0x2bf642['length']-0x1],_0xa3517d='insertion'==_0x8ce108['type']?'add':'remove';_0x556223&&'text'==_0x556223['type']&&(_0x556223[_0xa3517d]+='\x0a');}}}class E extends _0x4f5a27{['afterInit'](){const _0x13a6d7=this['editor'],_0x24c61e=_0x13a6d7['plugins']['get']('TrackChangesEditing');_0x13a6d7['commands']['get']('showAIAssistant')&&_0x24c61e['enableCommand']('showAIAssistant');}}class V extends _0x4f5a27{['afterInit'](){const _0x463a0e=this['editor'],_0x494db2=_0x463a0e['locale'];if(!_0x463a0e['plugins']['has']('AlignmentEditing'))return;const _0x2585b4=_0x463a0e['plugins']['get']('TrackChangesEditing');_0x2585b4['enableDefaultAttributesIntegration']('alignment'),_0x2585b4['registerBlockAttribute']('alignment'),_0x2585b4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x494db2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x528694=this['editor'],_0x3f0b9f=_0x528694['locale'];_0x528694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c9e28=>{if('formatBlock'!=_0x2c9e28['type'])return;const {data:_0x3c81cd}=_0x2c9e28;if(_0x3c81cd&&'alignment'==_0x3c81cd['commandName']){const _0x368b10=_0x3c81cd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3f0b9f,'*Format:*\x20%0',function(_0x4d9cc4){switch(_0x4d9cc4){case'left':return o(_0x3f0b9f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3f0b9f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3f0b9f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3f0b9f,'FORMAT_JUSTIFY_TEXT');}}(_0x368b10))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4f5a27{['afterInit'](){const _0x30b629=this['editor'],_0xf50b1=_0x30b629['plugins']['get']('TrackChangesEditing'),_0x44ab9f=_0x30b629['locale'];for(const _0x2aa780 of ti){if(!_0x30b629['plugins']['has'](_0x2aa780))continue;const _0x28d20f=_0x2aa780['slice'](0x0,-0x7)['toLowerCase'](),_0x1b47e1='FORMAT_'+_0x28d20f['toUpperCase']();_0xf50b1['enableDefaultAttributesIntegration'](_0x28d20f),_0xf50b1['registerInlineAttribute'](_0x28d20f),_0xf50b1['descriptionFactory']['registerAttributeLabel'](_0x28d20f,o(_0x44ab9f,_0x1b47e1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398cd0=this['editor'],_0x1a4aff=_0x398cd0['locale'],_0xc22926=_0x398cd0['plugins']['get']('TrackChangesEditing');function _0x3687ea(_0x23cf4e,_0x54811b){_0xc22926['descriptionFactory']['registerDescriptionCallback'](_0x598a53=>{if('formatInline'!=_0x598a53['type'])return;const {data:_0x590118}=_0x598a53;return _0x590118&&_0x590118['commandName']===_0x23cf4e?_0x590118['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a4aff,'*Format:*\x20%0',_0x54811b)}:{'type':'format','content':o(_0x1a4aff,'*Remove\x20format:*\x20%0',_0x54811b)}:void 0x0;});}_0x3687ea('bold',o(_0x1a4aff,'FORMAT_BOLD')),_0x3687ea('italic',o(_0x1a4aff,'FORMAT_ITALIC')),_0x3687ea('underline',o(_0x1a4aff,'FORMAT_UNDERLINE')),_0x3687ea('code',o(_0x1a4aff,'FORMAT_CODE')),_0x3687ea('strikethrough',o(_0x1a4aff,'FORMAT_STRIKETHROUGH')),_0x3687ea('subscript',o(_0x1a4aff,'FORMAT_SUBSCRIPT')),_0x3687ea('superscript',o(_0x1a4aff,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4f5a27{['afterInit'](){const _0x11836b=this['editor'],_0x42c144=_0x11836b['locale'];if(!_0x11836b['plugins']['has']('BlockQuoteEditing'))return;const _0x1063a8=_0x11836b['plugins']['get']('TrackChangesEditing'),_0x1bdf43=this['editor']['commands']['get']('blockQuote');_0x1063a8['enableCommand']('blockQuote',(_0x56d2bd,_0x56c9d7={})=>{const _0x4c54c5=this['editor']['model']['document']['selection'],_0x5a7d34=_0x56c9d7&&void 0x0!==_0x56c9d7['forceValue']?_0x56c9d7['forceValue']:!_0x1bdf43['value'];let _0x1fa0ab=[];if(_0x5a7d34){const _0x50f275=Array['from'](_0x4c54c5['getSelectedBlocks']())['filter'](_0x2a2343=>oo(_0x2a2343)||function(_0x4190c4,_0x57321a){const _0x12efab=_0x57321a['checkChild'](_0x4190c4['parent'],'blockQuote'),_0x33358d=_0x57321a['checkChild'](['$root','blockQuote'],_0x4190c4);return _0x12efab&&_0x33358d;}(_0x2a2343,this['editor']['model']['schema']));_0x1fa0ab=to(_0x50f275,_0x11836b['model']);}else{const _0x7225d1=Array['from'](_0x4c54c5['getSelectedBlocks']())['filter'](_0x33858c=>oo(_0x33858c));_0x1fa0ab=to(_0x7225d1,_0x11836b['model']);}_0x11836b['model']['change'](()=>{for(const _0x7d855b of _0x1fa0ab)_0x1063a8['markBlockFormat'](_0x7d855b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5a7d34}]});});}),_0x1063a8['descriptionFactory']['registerDescriptionCallback'](_0x43c3d8=>{const {data:_0x5845ad}=_0x43c3d8;if(_0x5845ad&&'blockQuote'==_0x5845ad['commandName']){const _0x4ac1e7=o(_0x42c144,'ELEMENT_BLOCK_QUOTE');return _0x5845ad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42c144,'*Set\x20format:*\x20%0',_0x4ac1e7)}:{'type':'format','content':o(_0x42c144,'*Remove\x20format:*\x20%0',_0x4ac1e7)};}});}}function oo(_0x14bcad){return'blockQuote'==_0x14bcad['parent']['name'];}class G extends _0x4f5a27{['afterInit'](){const _0x53abc5=this['editor'];_0x53abc5['plugins']['has']('CaseChange')&&(_0x53abc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x53abc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x53abc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4f5a27{['afterInit'](){const _0x480c5f=this['editor'];_0x480c5f['commands']['get']('ckbox')&&_0x480c5f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4f5a27{['afterInit'](){const _0x2a364e=this['editor'];if(!_0x2a364e['plugins']['has']('CodeBlock'))return;const _0x585096=_0x2a364e['plugins']['get']('TrackChangesEditing'),_0x25b7ce=_0x2a364e['locale'],_0x641669=_0x2a364e['config']['get']('codeBlock')['languages'],_0x5ecc42=_0x2a364e['commands']['get']('codeBlock');_0x585096['enableCommand']('indentCodeBlock'),_0x585096['enableCommand']('outdentCodeBlock'),_0x585096['enableCommand']('codeBlock',(_0xa32372,_0x2e21c9={})=>{const _0x521d38=_0x2a364e['model'],_0x490482=_0x2a364e['model']['document']['selection'],_0x55019b=_0x2e21c9&&void 0x0!==_0x2e21c9['forceValue']?_0x2e21c9['forceValue']:!_0x5ecc42['value'];let _0x5c4c52;_0x2e21c9['language']||(_0x2e21c9['language']=_0x641669[0x0]['language']),_0x5c4c52=_0x55019b?Array['from'](_0x490482['getSelectedBlocks']())['filter'](_0xa14f52=>eo(_0xa14f52)||function(_0x44ef58,_0x576129){if(_0x44ef58['is']('rootElement')||_0x576129['isLimit'](_0x44ef58))return!0x1;return _0x576129['checkChild'](_0x44ef58['parent'],'codeBlock');}(_0xa14f52,_0x521d38['schema'])):Array['from'](_0x490482['getSelectedBlocks']())['filter'](_0x49ad3b=>eo(_0x49ad3b));const _0x2cacb8=to(_0x5c4c52,_0x521d38);_0x521d38['change'](()=>{for(const _0x1e88f3 of _0x2cacb8)_0x585096['markBlockFormat'](_0x1e88f3,{'commandName':'codeBlock','commandParams':[{..._0x2e21c9,'forceValue':_0x55019b}],'formatGroupId':'blockName'});});}),(_0x585096['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d822b=>o(_0x25b7ce,'ELEMENT_CODE_BLOCK',_0x3d822b)),_0x585096['descriptionFactory']['registerDescriptionCallback'](_0x439655=>{if('formatBlock'!=_0x439655['type'])return;const _0x44f0f0=_0x25b7ce['t'],{data:_0x4d018c}=_0x439655;if(!_0x4d018c||'codeBlock'!=_0x4d018c['commandName'])return;const _0x38426b=_0x4d018c['commandParams'][0x0]['language'],_0x576783=_0x44f0f0(_0x641669['find'](_0x472c6a=>_0x472c6a['language']===_0x38426b)['label'])['toLowerCase']();return _0x4d018c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25b7ce,'*Set\x20format:*\x20%0',o(_0x25b7ce,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x576783+')')}:{'type':'format','content':o(_0x25b7ce,'*Remove\x20format:*\x20%0',o(_0x25b7ce,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2473d7){return'codeBlock'==_0x2473d7['name'];}class H extends _0x4f5a27{['afterInit'](){const _0x1d5f7c=this['editor'];if(!_0x1d5f7c['plugins']['has']('CommentsEditing'))return;_0x1d5f7c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x18da80,_0x337ab3,_0x521202){const _0x1866da=[];for(const _0xeccf74 of _0x337ab3['getItems']())_0xeccf74['hasAttribute'](_0x18da80)&&_0x1866da['push'](_0x521202['createRangeOn'](_0xeccf74));return _0x1866da;}function _e(_0xe62250,_0x31d6c1,{showActiveMarker:_0x17efad=!0x0}={}){const _0x2da31f=_0xe62250['plugins']['get']('TrackChangesEditing');return(_0x4b653f,_0x4f33b6,_0x2fecd9)=>{if(!_0x2fecd9['consumable']['test'](_0x4f33b6['markerRange'],_0x4b653f['name']))return;const _0x4efbf2=_0x4f33b6['markerRange']['getWalker'](),_0xaf3c55=_0x4f33b6['markerRange']['start'],_0x372375=_0xe62250['model']['schema'];let _0xa78eb7=null,_0x2b87a1=null,_0x584304=!0x1,_0x350835=!0x1;for(const _0x1ed21d of _0x4efbf2){const _0x2f16dd=_0x1ed21d['item'];_0x584304=_0x584304||_0x372375['isContent'](_0x2f16dd);const _0x4982a2=_0x2fecd9['mapper']['toViewElement'](_0x2f16dd);if(_0x4982a2&&_0x4982a2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ed21d['type']&&(_0x372375['isBlock'](_0x2f16dd)&&!_0x372375['isLimit'](_0x2f16dd)&&(_0x2f16dd['nextSibling']||_0xaf3c55['isAtEnd']?_0xa78eb7&&_0xa78eb7['parent']==_0x2f16dd||(_0xa78eb7=_0x2f16dd,_0x5e4ad1(_0x1ed21d['previousPosition']),_0x350835=!0x0):_0x2b87a1=_0x2b87a1||_0x1ed21d['previousPosition']));}function _0x5e4ad1(_0x11a210){const _0x1e4de5=_0x2fecd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31d6c1}),_0x45b2c0=_0x2fecd9['mapper']['toViewPosition'](_0x11a210);_0x17efad&&_0x2da31f['activeMarkers']['includes'](_0x4f33b6['markerName'])&&_0x2fecd9['writer']['addClass']('ck-suggestion-marker--active',_0x1e4de5),_0x2fecd9['writer']['insert'](_0x45b2c0,_0x1e4de5),_0x2fecd9['mapper']['bindElementToMarker'](_0x1e4de5,_0x4f33b6['markerName']);}_0x584304||_0x350835||!_0x2b87a1||_0x5e4ad1(_0x2b87a1);};}class q extends _0x4f5a27{static get['requires'](){return[_0x44d923];}['init'](){const _0x5b2c9a=this['editor'],_0x5433c4=_0x5b2c9a['plugins']['get']('TrackChangesEditing');_0x5433c4['enableCommand']('delete');const _0x3fc834=_0x5b2c9a['commands']['get']('deleteForward');_0x5433c4['enableCommand']('deleteForward',(_0x473603,_0x2fde4b={})=>{const _0x303623=_0x5b2c9a['model']['createSelection'](_0x5b2c9a['model']['document']['selection']);_0x303623['isCollapsed']&&_0x5b2c9a['model']['modifySelection'](_0x303623,{'direction':'forward','unit':_0x2fde4b['unit']});const _0x2753dc=_0x303623['getFirstRange'](),_0x1804fe=_0x828bf8['fromRange'](_0x2753dc);let _0x35dfbb;_0x473603(_0x2fde4b),_0x35dfbb='$graveyard'==_0x1804fe['root']['rootName']?_0x5b2c9a['model']['createRange'](_0x2753dc['start']):_0x5b2c9a['model']['createRange'](_0x1804fe['start'],_0x1804fe['end']),_0x1804fe['detach'](),_0x5b2c9a['model']['enqueueChange'](_0x3fc834['buffer']['batch'],_0x5b6487=>{_0x3fc834['buffer']['lock'](),_0x5b6487['setSelection'](_0x5b6487['createRange'](_0x35dfbb['end'])),_0x3fc834['buffer']['unlock']();});}),_0x5b2c9a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5b2c9a,'merge'),{'priority':'high'}),_0x5b2c9a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5522cb,_0x19b721,_0x19eac4)=>{_0x19eac4['options']['showSuggestionHighlights']&&_e(_0x5b2c9a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5522cb,_0x19b721,_0x19eac4);},{'priority':'high'}),_0x5b2c9a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x508196,_0x14da1b,_0x49b165)=>{const _0x368f0c=_0x49b165['mapper']['markerNameToElements'](_0x14da1b['markerName']);if(_0x368f0c){for(const _0x2f3705 of _0x368f0c)_0x2f3705['is']('uiElement')&&(_0x49b165['mapper']['unbindElementFromMarkerName'](_0x2f3705,_0x14da1b['markerName']),_0x49b165['writer']['remove'](_0x2f3705));}},{'priority':'high'});}}class z extends _0x4f5a27{['afterInit'](){const _0x34fe5e=this['editor'];if(!_0x34fe5e['plugins']['has']('ListEditing'))return;const _0x277d45=_0x34fe5e['locale'],_0x245526=_0x34fe5e['plugins']['get']('TrackChangesEditing'),_0x2be123=_0x34fe5e['plugins']['has']('TodoListEditing'),_0x363b44=!!_0x34fe5e['config']['get']('list.multiBlock');function _0x37fd60(_0x2cda16){return{'type':'format','content':''+o(_0x277d45,'*Set\x20format:*\x20%0',_0x2cda16)};}function _0x2aebeb(_0x46de32){return{'type':'format','content':''+o(_0x277d45,'*Remove\x20format:*\x20%0',_0x46de32)};}_0x245526['enableDefaultAttributesIntegration']('numberedList'),_0x245526['enableDefaultAttributesIntegration']('bulletedList'),_0x245526['enableDefaultAttributesIntegration']('customNumberedList'),_0x245526['enableDefaultAttributesIntegration']('customBulletedList'),_0x245526['enableDefaultAttributesIntegration']('indentList'),_0x245526['enableDefaultAttributesIntegration']('outdentList'),_0x245526['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x245526['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x245526['registerBlockAttribute']('listItemId'),_0x245526['registerBlockAttribute']('listType'),_0x245526['registerBlockAttribute']('listIndent'),_0x363b44&&(_0x245526['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x245526['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2be123&&(_0x245526['enableDefaultAttributesIntegration']('todoList'),_0x245526['enableDefaultAttributesIntegration']('checkTodoList'),_0x245526['registerBlockAttribute']('todoListChecked'),_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x58492e=>{const {data:_0x15d915}=_0x58492e;if(_0x15d915&&'todoListChecked'==_0x15d915['key'])return{'type':'format','content':_0x15d915['newValue']?o(_0x277d45,'*Check\x20item*'):o(_0x277d45,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x256d71=>{if(_0x256d71['batch']['isUndo'])return!0x1;let _0x56003f=!0x1;const _0x13318d=_0x245526['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x111b51=>'todoListChecked'===_0x245526['_getAttributeKey'](_0x111b51));for(const _0x3a5280 of _0x13318d){'todo'!=_0x3a5280['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x245526['_findSuggestions'](_0x3a5280['getFirstRange'](),'attribute')['find'](_0xb8c8bb=>'listType'===_0x245526['_getAttributeKey'](_0xb8c8bb['suggestion']))||(_0x256d71['removeMarker'](_0x3a5280['getFirstMarker']()),_0x56003f=!0x0));}return _0x56003f;})),_0x245526['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x277d45,'FORMAT_INDENT'));const _0x34f46e={'type':'format','content':''};_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x552d78=>{const {data:_0xbd37e}=_0x552d78;if(!_0xbd37e||'listType'!=_0xbd37e['key'])return;let _0x25cb5d=_0x552d78['head'];for(;_0x25cb5d;){if(_0x25cb5d['data']&&(('listStyle'==_0x25cb5d['data']['key']||'listMarkerStyle'==_0x25cb5d['data']['key'])&&(_0x25cb5d['data']['newValue']&&'default'!=_0x25cb5d['data']['newValue']||'default'!=_0x25cb5d['data']['oldValue']&&!_0xbd37e['newValue'])||!_0x363b44&&_0x25cb5d['data']['key']==m))return _0x34f46e;_0x25cb5d=_0x25cb5d['next'];}if(null==_0xbd37e['newValue'])switch(_0xbd37e['oldValue']){case'bulleted':return _0x2aebeb(o(_0x277d45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2aebeb(o(_0x277d45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2aebeb(o(_0x277d45,'ELEMENT_TODO_LIST'));}switch(_0xbd37e['newValue']){case'bulleted':return _0x37fd60(o(_0x277d45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37fd60(o(_0x277d45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37fd60(o(_0x277d45,'ELEMENT_TODO_LIST'));}}),_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x3c1ad6=>{const {data:_0x9fbf63}=_0x3c1ad6;if(_0x9fbf63&&'listIndent'==_0x9fbf63['key'])return null==_0x9fbf63['newValue']||null==_0x9fbf63['oldValue']&&0x0==_0x9fbf63['newValue']?_0x34f46e:void 0x0;}),_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x33da4c=>{if('attribute'!=_0x33da4c['type'])return;const {data:_0x2d6a6c}=_0x33da4c;if(!_0x2d6a6c||'listItemId'!=_0x2d6a6c['key'])return;const _0x1672fb=le(_0x33da4c);return'newValue'==_0x1672fb?{'type':'format','content':o(_0x277d45,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1672fb?{'type':'format','content':o(_0x277d45,'*Split:*\x20list\x20item')}:_0x34f46e;}),_0x34fe5e['model']['document']['registerPostFixer'](_0x42d4a1=>this['listItemIdFixer'](_0x42d4a1)),_0x34fe5e['model']['document']['registerPostFixer'](_0x4f827d=>this['noTrackChangesFixer'](_0x4f827d)),_0x34fe5e['model']['document']['registerPostFixer'](_0x645b98=>this['assureChains'](_0x645b98)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x494c25){if(_0x494c25['batch']['isUndo']||!_0x494c25['batch']['isLocal'])return!0x1;let _0x34c020=!0x1;const _0x13e2bc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a9b74=>_0x4a9b74['data']&&'listItemId'==_0x4a9b74['data']['key'])['filter'](_0x2ecda6=>_0x2ecda6['data']['newValue']&&_0x2ecda6['data']['oldValue']);for(const _0xdc78e9 of _0x13e2bc)le(_0xdc78e9)||(_0x494c25['removeMarker'](_0xdc78e9['getFirstMarker']()),_0x34c020=!0x0);return _0x34c020;}['noTrackChangesFixer'](_0x82b2ff){if(_0x82b2ff['batch']['isUndo']||!_0x82b2ff['batch']['isLocal'])return!0x1;const _0x30ff5b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30ff5b['trackChangesCommand']['value'])return!0x1;let _0x32d695=!0x1;const _0xf85fd0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x168e29=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x92fb5e=>'attribute'==_0x92fb5e['type'])['filter'](_0x5a9c8c=>_0xf85fd0['includes'](_0x5a9c8c['attributeKey']));if(0x0==_0x168e29['length'])return _0x32d695;for(const _0x2cab1c of _0x168e29){const _0x4206e3=_0x30ff5b['_findSuggestions'](_0x2cab1c['range'],'attribute')['filter'](_0x3726f2=>!_0x3726f2['meta']['isNextTo'])['map'](_0x3e3d70=>_0x3e3d70['suggestion'])['filter'](_0x346cf0=>{const _0x19de58=_0x30ff5b['_getAttributeKey'](_0x346cf0);return _0xf85fd0['includes'](_0x19de58);});if(_0x4206e3['length']){for(const _0x2b95c8 of _0x4206e3)_0x82b2ff['removeMarker'](_0x2b95c8['getFirstMarker']());_0x32d695=!0x0;}}return _0x32d695;}['assureChains'](_0x576912){if(_0x576912['batch']['isUndo']||!_0x576912['batch']['isLocal'])return!0x1;const _0x1fb156=this['editor']['plugins']['get']('TrackChangesEditing');let _0x11c2a8=!0x1;const _0x881953=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x51ba47 of _0x1fb156['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ad521=_0x1fb156['_findSuggestions'](_0x51ba47['getFirstRange'](),'attribute')['map'](_0x53dfe3=>_0x53dfe3['suggestion'])['filter'](_0x40e4e1=>_0x40e4e1['data']&&_0x881953['includes'](_0x40e4e1['data']['key']));if(!_0x4ad521['length'])continue;const _0x4d2cd5=_0x4ad521[0x0]['head']['attributes']['groupId'];if(!_0x4ad521['every'](_0x258656=>_0x258656['attributes']['groupId']===_0x4d2cd5)){for(const _0x5d3fb6 of _0x4ad521)_0x1a5e77(_0x5d3fb6,_0x4d2cd5)&&(_0x11c2a8=!0x0);}}return _0x11c2a8;function _0x4bc75f(_0xce13a2,_0x1dfd4e){for(const _0x3c8b56 of _0x1fb156['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5858ee=>'attribute'==_0x5858ee['type']&&_0x5858ee['attributes']['groupId']==_0xce13a2))_0x3c8b56['setAttribute']('groupId',_0x1dfd4e);}function _0x1a5e77(_0x1e4126,_0x3eaba0){let _0x3bd999=_0x1e4126['head'],_0x25db44=!0x1;for(;_0x3bd999;)_0x3bd999['attributes']['groupId']!=_0x3eaba0&&(_0x4bc75f(_0x3bd999['attributes']['groupId'],_0x3eaba0),_0x3bd999['setAttribute']('groupId',_0x3eaba0),_0x25db44=!0x0),_0x3bd999=_0x3bd999['next'];return _0x25db44;}}['_supportLegacySuggestions'](){const _0x12ac6f=this['editor'],_0x54d9fb=_0x12ac6f['locale'],_0x49b687=_0x12ac6f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49b687['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x473c30,_0x1b2051){const _0x32fe9c=[];for(let _0x2afa34 of _0x473c30)_0x2afa34['start']['nodeAfter']===_0x2afa34['end']['parent']&&(_0x2afa34=_0x12ac6f['model']['createRange'](_0x12ac6f['model']['createPositionAt'](_0x2afa34['start']['nodeAfter'],0x0))),_0x32fe9c['push'](_0x2afa34);_0x12ac6f['model']['change'](_0x899e8c=>{const _0x27fe3e=_0x12ac6f['model']['document']['selection'],_0x208749=Array['from'](_0x27fe3e['getRanges']())['map'](_0x423032=>_0x828bf8['fromRange'](_0x423032));_0x899e8c['setSelection'](_0x32fe9c),_0x12ac6f['commands']['get'](_0x1b2051['commandName'])['refresh'](),_0x1b2051['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x12ac6f['execute'](_0x1b2051['commandName'],..._0x1b2051['commandParams']),_0x899e8c['setSelection'](_0x208749);for(const _0x5a19d4 of _0x208749)_0x5a19d4['detach']();});}),_0x49b687['descriptionFactory']['registerElementLabel'](function(_0x24b7d9){const _0xc85703=!_0x12ac6f['model']['schema']['isObject'](_0x24b7d9),_0x49a1ea=_0x24b7d9['previousSibling'],_0x4857a8=_0x24b7d9['nextSibling'],_0x122ab1=_0x24b7d9['getAttribute']('listItemId'),_0x132a35=!_0x49a1ea||_0x49a1ea['getAttribute']('listItemId')!==_0x122ab1,_0x5b4529=!_0x4857a8||_0x4857a8['getAttribute']('listItemId')!==_0x122ab1;return _0xc85703&&Boolean(_0x122ab1)&&_0x132a35&&_0x5b4529;},_0x334b3d=>o(_0x54d9fb,'ELEMENT_LIST_ITEM',_0x334b3d));}['_registerLegacyDescription'](){const _0x84f18f=this['editor'],_0x4fed47=_0x84f18f['locale'];function _0x4550dc(_0x5063c2){const _0x4d9411=_0x84f18f['commands']['get']('bulletedList')['value'],_0x3752fd=_0x84f18f['commands']['get']('numberedList')['value'];return'numberedList'===_0x5063c2?_0x4d9411:_0x3752fd;}_0x84f18f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x59b709){if('formatBlock'!=_0x59b709['type'])return;const {data:_0x2f6637}=_0x59b709;if(!_0x2f6637)return;let _0x5e4a2c,_0x5541da,_0x1c8ff7,_0x49ffa4;switch(_0x2f6637['commandName']){case'bulletedList':_0x1c8ff7=_0x2f6637['commandParams'][0x0]['forceValue'],_0x49ffa4=_0x4550dc(_0x2f6637['commandName']),_0x5e4a2c=_0x1c8ff7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49ffa4&&_0x84f18f['config']['get']('list.multiBlock')||(_0x5e4a2c='*Change\x20to:*\x20%0'),_0x5541da={'type':'format','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1c8ff7=_0x2f6637['commandParams'][0x0]['forceValue'],_0x49ffa4=_0x4550dc(_0x2f6637['commandName']),_0x5e4a2c=_0x1c8ff7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49ffa4&&_0x84f18f['config']['get']('list.multiBlock')||(_0x5e4a2c='*Change\x20to:*\x20%0'),_0x5541da={'type':'format','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5e4a2c='*Indent:*\x20%0',_0x5541da={'type':'format','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5e4a2c=function(_0x393c21){const _0x4f83c1=_0x393c21['getFirstRange']();let _0x9409ed=_0x4f83c1['start']['nodeAfter'];for(;_0x9409ed&&_0x4f83c1['containsItem'](_0x9409ed);){if(_0x9409ed['getAttribute']('listIndent')>0x0)return!0x1;_0x9409ed=_0x9409ed['nextSibling'];}return!0x0;}(_0x59b709)?o(_0x4fed47,'*Format:*\x20remove\x20from\x20%0',o(_0x4fed47,function(_0x16af07){return'ELEMENT_'+_0x16af07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x59b709))):o(_0x4fed47,'*Outdent:*\x20%0',o(_0x4fed47,'ELEMENT_LIST_ITEM')),_0x5541da={'type':'format','content':_0x5e4a2c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f6637['multipleBlocks']&&(_0x5e4a2c='*Merge:*\x20%0',_0x5541da={'type':'deletion','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_LIST_ITEM'))});}return _0x5541da;});}}function le(_0x4a447e){let _0x4e8ec9=_0x4a447e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e8ec9;){const _0x2145b3=_0x4e8ec9['getAttribute']('listItemId');if(!_0x2145b3)return!0x1;if(_0x2145b3==_0x4a447e['data']['newValue'])return'newValue';if(_0x2145b3==_0x4a447e['data']['oldValue'])return'oldValue';_0x4e8ec9=_0x4e8ec9['previousSibling'];}return!0x1;}class ue extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51c35d=this['editor']['config']['get']('list.properties'),_0x2f39a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x51c35d['styles']&&(_0x2f39a7['enableDefaultAttributesIntegration']('listStyle'),_0x2f39a7['registerBlockAttribute']('listStyle')),_0x51c35d['reversed']&&(_0x2f39a7['enableDefaultAttributesIntegration']('listReversed'),_0x2f39a7['registerBlockAttribute']('listReversed')),_0x51c35d['startIndex']&&(_0x2f39a7['enableDefaultAttributesIntegration']('listStart'),_0x2f39a7['registerBlockAttribute']('listStart'));const _0x138edc={'type':'format','content':''};_0x2f39a7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xcef5c0=this['editor']['locale'];_0x2f39a7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xcef5c0,'FORMAT_LIST_REVERSED')),_0x2f39a7['descriptionFactory']['registerDescriptionCallback'](_0x296c38=>{const {data:_0x2e2045}=_0x296c38;if(_0x2e2045&&'listReversed'==_0x2e2045['key'])return null==_0x2e2045['newValue']||0x0==_0x2e2045['newValue']&&null==_0x2e2045['oldValue']?_0x138edc:void 0x0;}),_0x2f39a7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xcef5c0,'FORMAT_LIST_START')),_0x2f39a7['descriptionFactory']['registerDescriptionCallback'](_0x4020b5=>{const {data:_0x2df8fc}=_0x4020b5;if(_0x2df8fc&&'listStart'==_0x2df8fc['key'])return null==_0x2df8fc['newValue']||0x1==_0x2df8fc['newValue']&&null==_0x2df8fc['oldValue']?_0x138edc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ad883=>{if(_0x1ad883['batch']['isUndo'])return!0x1;let _0x1a7f5b=!0x1;const _0x4233ab=_0x2f39a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x124204=>{const _0x429e17=_0x2f39a7['_getAttributeKey'](_0x124204);return'listStart'==_0x429e17||'listReversed'==_0x429e17;});for(const _0x378d0a of _0x4233ab){const _0x30f99d=_0x378d0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x30f99d||'customNumbered'==_0x30f99d)continue;_0x2f39a7['_findSuggestions'](_0x378d0a['getFirstRange'](),'attribute')['find'](_0x3fcdc2=>'listType'==_0x2f39a7['_getAttributeKey'](_0x3fcdc2['suggestion']))||(_0x1ad883['removeMarker'](_0x378d0a['getFirstMarker']()),_0x1a7f5b=!0x0);}return _0x1a7f5b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x122048){const _0x3134e4=this['editor']['locale'],{data:_0xe6e18b}=_0x122048,_0x2d5d30={'type':'format','content':''};if(!_0xe6e18b||'listStyle'!=_0xe6e18b['key'])return;if(!_0xe6e18b['oldValue'])return'default'==_0xe6e18b['newValue']?_0x2d5d30:{'type':'format','content':''+o(_0x3134e4,'*Set\x20format:*\x20%0',o(_0x3134e4,this['_getTranslationKeyForListStyle'](_0xe6e18b['newValue'])))};if(!_0xe6e18b['newValue']){if('default'==_0xe6e18b['oldValue'])return _0x2d5d30;let _0x14f764=_0x122048['head'];for(;_0x14f764;){if(_0x14f764['data']&&'listType'==_0x14f764['data']['key']&&_0x14f764['data']['newValue'])return _0x2d5d30;_0x14f764=_0x14f764['next'];}return{'type':'format','content':''+o(_0x3134e4,'*Remove\x20format:*\x20%0',o(_0x3134e4,this['_getTranslationKeyForListStyle'](_0xe6e18b['oldValue'])))};}if('default'!=_0xe6e18b['newValue'])return{'type':'format','content':''+o(_0x3134e4,'*Set\x20format:*\x20%0',o(_0x3134e4,this['_getTranslationKeyForListStyle'](_0xe6e18b['newValue'])))};let _0x20381f=_0x122048['head'];for(;_0x20381f;){if(_0x20381f['data']&&'listType'==_0x20381f['data']['key']&&_0x20381f['data']['newValue']&&_0x20381f['data']['oldValue'])return _0x2d5d30;_0x20381f=_0x20381f['next'];}return{'type':'format','content':o(_0x3134e4,'*Set\x20format:*\x20%0',o(_0x3134e4,'ELEMENT_'+_0x122048['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x266fd8=this['editor'],_0x1d0f99=_0x266fd8['locale'];_0x266fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31877a=>{if('formatBlock'!=_0x31877a['type'])return;const {data:_0x12f8a5}=_0x31877a;if(!_0x12f8a5)return;let _0x11a55b,_0x5533c0;switch(_0x12f8a5['commandName']){case'listStyle':_0x11a55b='*Change\x20to:*\x20%0',_0x5533c0={'type':'format','content':o(_0x1d0f99,_0x11a55b,o(_0x1d0f99,this['_getTranslationKeyForListStyle'](_0x12f8a5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11a55b=_0x12f8a5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5533c0={'type':'format','content':o(_0x1d0f99,_0x11a55b)};break;case'listStart':_0x11a55b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5533c0={'type':'format','content':o(_0x1d0f99,_0x11a55b,_0x12f8a5['commandParams'][0x0]['startIndex'])};}return _0x5533c0;});}['_getTranslationKeyForListStyle'](_0x557a6b){return'ELEMENT_'+function(_0x4aa9a2){if(pe['includes'](_0x4aa9a2))return'bulleted';if(ye['includes'](_0x4aa9a2))return'numbered';return null;}(_0x557a6b)['toUpperCase']()+'_LIST_'+_0x557a6b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4f5a27{static get['requires'](){return[_0x2577bf];}['init'](){const _0x2d6eda=this['editor'],_0x2d9fc8=_0x2d6eda['plugins']['get']('TrackChangesEditing'),_0x14de2d=_0x2d6eda['commands']['get']('enter');_0x2d9fc8['enableCommand']('enter',()=>{_0x2d6eda['model']['change'](_0x5a1bc2=>{const _0x50f08b=_0x2d6eda['model']['document']['selection'],_0x590e8d=_0x50f08b['getFirstPosition'](),_0x53f5e8=_0x828bf8['fromRange'](_0x50f08b['getFirstRange']());if(_0x14de2d['enterBlock'](_0x5a1bc2)){const _0x5d8577=_0x2d6eda['model']['createPositionAt'](_0x590e8d['parent']['nextSibling'],0x0),_0x3c2074=_0x5a1bc2['createRange'](_0x590e8d,_0x5d8577);_0x2d9fc8['markInsertion'](_0x3c2074);}else _0x5a1bc2['setSelection'](_0x5a1bc2['createRange'](_0x53f5e8['end']));_0x53f5e8['detach'](),_0x14de2d['fire']('afterExecute',{'writer':_0x5a1bc2});});}),_0x2d6eda['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2d6eda,'split'),{'priority':'high'}),_0x2d6eda['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4b3082,_0x5caf87,_0xfa5d78)=>{const _0x5a5867=_0xfa5d78['mapper']['markerNameToElements'](_0x5caf87['markerName']);if(_0x5a5867){for(const _0x104708 of _0x5a5867)_0x104708['hasClass']('ck-suggestion-marker-split')&&(_0xfa5d78['mapper']['unbindElementFromMarkerName'](_0x104708,_0x5caf87['markerName']),_0xfa5d78['writer']['remove'](_0x104708));}},{'priority':'high'}),_0x2d6eda['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1d0f93,_0x218b15,_0xe96d5a)=>{_0xe96d5a['options']['showSuggestionHighlights']&&_e(_0x2d6eda,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1d0f93,_0x218b15,_0xe96d5a);},{'priority':'high'});}}class J extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x50bbf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x50bbf2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x50bbf2['enableCommand']('findNext'),_0x50bbf2['enableCommand']('findPrevious'),_0x50bbf2['enableCommand']('replace'),_0x50bbf2['enableCommand']('replaceAll');}['handleFindCommand'](_0x352456,_0x2b1e67,_0x5afc46={}){const _0x410c79=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x352456(_0x4adf9f=>('string'==typeof _0x2b1e67?_0x410c79['findByTextCallback'](_0x2b1e67,_0x5afc46):_0x2b1e67)(_0x4adf9f)['filter'](_0x148c57=>!0x1===this['_isInDeletionRange'](_0x148c57,_0x4adf9f['item'])),_0x5afc46);}['_isInDeletionRange'](_0x41a54b,_0x535b02){const _0x38a2fe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x535b02,_0x41a54b['start']),this['editor']['model']['createPositionAt'](_0x535b02,_0x41a54b['end']));for(const _0x4cbe83 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38a2fe['getIntersection'](_0x4cbe83['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 _0x4f5a27{['afterInit'](){const _0x39c37b=this['editor']['locale'],_0x7e519d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x389e1f,commandName:_0x413c4c}of ro)this['editor']['plugins']['has'](_0x389e1f)&&(_0x7e519d['enableDefaultAttributesIntegration'](_0x413c4c),_0x7e519d['registerInlineAttribute'](_0x413c4c));_0x39c37b['t'],_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39c37b,'FORMAT_FONT_SIZE')),_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39c37b,'FORMAT_FONT_FAMILY')),_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39c37b,'FORMAT_FONT_COLOR')),_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39c37b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532b40=this['editor'],_0x20aec6=_0x532b40['locale'];_0x532b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da8d7=>{const _0x1c5d1f=_0x20aec6['t'];if('formatInline'!=_0x5da8d7['type'])return;const {data:_0x2d0a92}=_0x5da8d7;if(null!=_0x2d0a92){if('fontSize'==_0x2d0a92['commandName']){const _0x44ee17=_0x2d0a92['commandParams'][0x0]['value'];if(_0x44ee17){const _0x5b1b5a=_0x1c5d1f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x67842=>_0x67842['model']==_0x44ee17)['title'])['toLowerCase']();return{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20size:*\x20%0',_0x5b1b5a)};}return{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2d0a92['commandName']){const _0x3212e2=_0x2d0a92['commandParams'][0x0]['value'];return _0x3212e2?{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20family:*\x20%0',_0x3212e2)}:{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2d0a92['commandName']){const _0x166bb1=_0x2d0a92['commandParams'][0x0]['value'];if(_0x166bb1){const _0x46ae44=_0xa41901(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3a7c57=>_0x3a7c57['model']==_0x166bb1);let _0x203d61=_0x166bb1,_0x4e13df='';return _0x46ae44&&(_0x203d61=_0x46ae44['label'],_0x4e13df=_0x1c5d1f(_0x203d61)['toLowerCase']()),{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20color:*\x20%0',_0x4e13df)['trim'](),'color':{'value':_0x166bb1,'title':_0x4e13df||_0x203d61}};}return{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2d0a92['commandName']){const _0x596ba8=_0x2d0a92['commandParams'][0x0]['value'];if(_0x596ba8){const _0x3a0599=_0xa41901(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47eed4=>_0x47eed4['model']==_0x596ba8);let _0x1a1af8=_0x596ba8,_0x2520fd='';return _0x3a0599&&(_0x1a1af8=_0x3a0599['label'],_0x2520fd=_0x1c5d1f(_0x1a1af8)['toLowerCase']()),{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20background\x20color:*\x20%0',_0x2520fd)['trim'](),'color':{'value':_0x596ba8,'title':_0x2520fd||_0x1a1af8}};}return{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4f5a27{['afterInit'](){const _0x3fa478=this['editor'],_0x110700=_0x3fa478['plugins']['get']('TrackChangesEditing'),_0x253c91=_0x3fa478['commands']['get']('copyFormat'),_0x1ed7fb=_0x3fa478['commands']['get']('pasteFormat');_0x253c91&&_0x1ed7fb&&(_0x110700['enableDefaultAttributesIntegration']('pasteFormat'),_0x110700['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3eceda=this['editor'],_0x5aed93=_0x3eceda['locale'];_0x3eceda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4adda2=>{if('formatBlock'!=_0x4adda2['type']&&'formatInline'!=_0x4adda2['type'])return;const {data:_0x383018}=_0x4adda2;if(_0x383018&&'pasteFormat'===_0x383018['commandName']){const _0x1e61f7=[],_0x4171ad=_0x383018['commandParams'][0x0];for(const [_0x3e7aa4,_0xf4f55b]of Object['entries'](_0x4171ad))_0x1e61f7['push'](so(_0x3eceda,_0x3e7aa4,_0xf4f55b));return _0x1e61f7['length']?{'type':'format','content':o(_0x5aed93,'*Set\x20format\x20to:*\x20%0',_0x1e61f7['join'](',\x20'))}:{'type':'format','content':o(_0x5aed93,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1282ad,_0x92ac9b,_0xf783a8){const _0x270438=_0x1282ad['locale']['t'],_0x442abe=_0x92ac9b['split'](/(?=[A-Z])/)['join']('\x20'),_0x103f64=_0x270438(_0x442abe['charAt'](0x0)['toUpperCase']()+_0x442abe['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xf783a8)return _0x103f64;if('fontColor'===_0x92ac9b||'fontBackgroundColor'===_0x92ac9b){const _0x299db1=_0xa41901(_0x1282ad['config']['get']('fontColor.colors'))['find'](_0x8c591a=>_0x8c591a['model']==_0xf783a8);return _0x103f64+'\x20('+(_0x299db1?_0x270438(_0x299db1['label'])['toLowerCase']():_0xf783a8)+')';}if('fontSize'===_0x92ac9b&&isNaN(parseFloat(_0xf783a8))){const _0x17e497=_0x1282ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1282ad['config']['get']('fontSize.options'))['find'](_0x7fce76=>_0x7fce76['model']==_0xf783a8);return _0x103f64+'\x20('+(_0x17e497?_0x270438(_0x17e497['title'])['toLowerCase']():_0xf783a8)+')';}return _0x103f64+'\x20('+_0xf783a8+')';}class Y extends _0x4f5a27{['_headingOptions'];['afterInit'](){const _0x22ba07=this['editor'];if(!_0x22ba07['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x22ba07['config']['get']('heading.options');const _0x51cc82=_0x22ba07['locale'],_0x4d9193=_0x22ba07['plugins']['get']('TrackChangesEditing');_0x4d9193['enableDefaultAttributesIntegration']('heading');for(const _0x341fa6 of this['_headingOptions'])'paragraph'!=_0x341fa6['model']&&_0x4d9193['descriptionFactory']['registerElementLabel'](_0x341fa6['model'],_0x29057b=>{const _0x4bf998=this['_getHeadingLevel'](_0x341fa6['model']);return null!==_0x4bf998?_0x542855(_0x29057b,_0x4bf998):_0xd6c85d(_0x29057b,_0x341fa6['title']);});function _0x542855(_0x2193c2,_0x5bcbab){return o(_0x51cc82,'ELEMENT_HEADING',[_0x2193c2,_0x5bcbab]);}function _0xd6c85d(_0x25683c,_0x5725d1){return o(_0x51cc82,'ELEMENT_HEADING_CUSTOM',[_0x25683c,_0x5725d1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x634b63=this['editor'],_0x4ea064=_0x634b63['locale'];function _0x11ce55(_0x10c759,_0x30923e){return o(_0x4ea064,'ELEMENT_HEADING_CUSTOM',[_0x10c759,_0x30923e]);}_0x634b63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383fe0=>{if('formatBlock'!=_0x383fe0['type'])return;const {data:_0xf1ff63}=_0x383fe0;if(_0xf1ff63&&'heading'==_0xf1ff63['commandName']){const _0x1010b8=_0xf1ff63['commandParams'][0x0]['value'],_0x2cadcd=this['_getHeadingLevel'](_0x1010b8);if(null!==_0x2cadcd)return{'type':'format','content':o(_0x4ea064,'*Change\x20to:*\x20%0',(_0x70066d=0x1,_0x297bf8=_0x2cadcd,o(_0x4ea064,'ELEMENT_HEADING',[_0x70066d,_0x297bf8])))};const _0xd41509=this['_headingOptions']['find'](_0x330345=>_0x330345['model']===_0x1010b8)['title'];return{'type':'format','content':o(_0x4ea064,'*Change\x20to:*\x20%0',_0x11ce55(0x1,_0xd41509))};}var _0x70066d,_0x297bf8;});}['_getHeadingLevel'](_0x43cddd){const _0x10bfa5=_0x43cddd['match'](/^heading(\d+)/);if(_0x10bfa5)return _0x10bfa5[0x1];const _0x1aa530=this['_headingOptions']?.['find'](_0x30dfe3=>_0x30dfe3['model']==_0x43cddd);if(_0x1aa530&&_0x1aa530['view']){const _0x47f864=_0x1aa530['view'],_0x14480a=(_0x47f864['name']??_0x47f864)['match'](/^h(\d+)/);if(_0x14480a)return _0x14480a[0x1];}return null;}}class Z extends _0x4f5a27{['afterInit'](){const _0x455123=this['editor'];if(!_0x455123['plugins']['has']('HighlightEditing'))return;const _0x50fcd1=_0x455123['plugins']['get']('TrackChangesEditing'),_0x18e4ea=_0x455123['locale'];_0x50fcd1['enableDefaultAttributesIntegration']('highlight'),_0x50fcd1['registerInlineAttribute']('highlight'),_0x50fcd1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x18e4ea,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17eceb=this['editor'],_0x460317=_0x17eceb['locale'];_0x17eceb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ab013=>{if('formatInline'!=_0x5ab013['type'])return;const {data:_0x4e6af8}=_0x5ab013;if(_0x4e6af8&&'highlight'==_0x4e6af8['commandName']){const _0x210416=_0x460317['t'],_0x4ca36c=_0x4e6af8['commandParams'][0x0]['value'];if(_0x4ca36c){const _0x5e56b8=_0x17eceb['config']['get']('highlight.options')['find'](_0x446c2d=>_0x446c2d['model']==_0x4ca36c),_0x31298f=_0x210416(_0x5e56b8['title'])['toLowerCase']();return{'type':'format','content':o(_0x460317,'*Set\x20highlight:*\x20%0',_0x31298f),'color':{'value':_0x5e56b8['color'],'title':_0x5e56b8['title']}};}return{'type':'format','content':o(_0x460317,'*Remove\x20highlight*',o(_0x460317,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4f5a27{['afterInit'](){const _0x59d5f8=this['editor'];if(!_0x59d5f8['plugins']['has']('HorizontalLineEditing'))return;_0x59d5f8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x29e48a=_0x59d5f8['plugins']['get']('TrackChangesEditing'),_0x3cedf6=_0x59d5f8['locale'];_0x29e48a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x315148=>o(_0x3cedf6,'ELEMENT_HORIZONTAL_LINE',_0x315148)),_0x59d5f8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x316d97,{writer:_0x1867eb,options:_0x4f04aa})=>{if(!_0x4f04aa['showSuggestionHighlights'])return null;const _0x32eae2=_0x1867eb['createContainerElement']('div'),_0x12d05e=_0x1867eb['createEmptyElement']('hr');return _0x1867eb['addClass']('ck-horizontal-line',_0x32eae2),_0x1867eb['insert'](_0x1867eb['createPositionAt'](_0x32eae2,0x0),_0x12d05e),_0x32eae2;},'converterPriority':'high'});}}class et extends _0x4f5a27{['afterInit'](){const _0x1b1780=this['editor'];if(!_0x1b1780['plugins']['has']('HtmlEmbed'))return;const _0x17b08d=_0x1b1780['plugins']['get']('TrackChangesEditing'),_0x52b8e4=_0x1b1780['locale'];_0x17b08d['descriptionFactory']['registerElementLabel']('rawHtml',_0x5321e8=>o(_0x52b8e4,'ELEMENT_HTML_EMBED',_0x5321e8)),_0x17b08d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x17b08d['registerBlockAttribute']('value'),_0x17b08d['descriptionFactory']['registerDescriptionCallback'](_0x4162bb=>{if('attribute'!=_0x4162bb['type'])return;const {data:_0xb79355}=_0x4162bb;if(_0xb79355&&'value'==_0xb79355['key']&&_0x4162bb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d04bb=o(_0x52b8e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52b8e4,'*Change\x20%0\x20content*',_0x1d04bb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f1aea=this['editor'],_0x1da4e4=_0x5f1aea['locale'];_0x5f1aea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3245bf=>{if('formatBlock'!=_0x3245bf['type'])return;const {data:_0x3722a1}=_0x3245bf;if(_0x3722a1&&'htmlEmbed'==_0x3722a1['commandName']){const _0x4083e7=o(_0x1da4e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1da4e4,'*Change\x20%0\x20content*',_0x4083e7)};}});}}class it extends _0x4f5a27{['afterInit'](){const _0x5d0006=this['editor'];if(!_0x5d0006['plugins']['has']('ImageEditing'))return;const _0x1d7ea2=_0x5d0006['plugins']['get']('TrackChangesEditing'),_0x37c613=_0x5d0006['plugins']['get']('ImageUtils'),_0x1a9a7c=_0x5d0006['locale'];_0x1d7ea2['enableCommand']('insertImage'),_0x1d7ea2['descriptionFactory']['registerElementLabel']('imageBlock',_0x263dc1=>o(_0x1a9a7c,'ELEMENT_IMAGE',_0x263dc1)),_0x1d7ea2['descriptionFactory']['registerElementLabel']('imageInline',_0x122d4e=>o(_0x1a9a7c,'ELEMENT_INLINE_IMAGE',_0x122d4e)),_0x1d7ea2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1a9a7c,'ELEMENT_CAPTION')),_0x5d0006['plugins']['has']('ImageUploadEditing')&&_0x1d7ea2['enableCommand']('uploadImage'),_0x5d0006['plugins']['has']('ImageBlockEditing')&&_0x5d0006['plugins']['has']('ImageInlineEditing')&&(_0x1d7ea2['enableCommand']('imageTypeInline',(_0xfea71c,_0x3d4f43)=>{const _0x14e85c=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']);_0x5d0006['model']['change'](()=>{_0x1d7ea2['markBlockFormat'](_0x14e85c,{'commandName':'imageTypeInline','commandParams':[_0x3d4f43]},[],'convertBlockImageToInline');});}),_0x1d7ea2['enableCommand']('imageTypeBlock',(_0xf7f9d9,_0x269499)=>{_0x5d0006['model']['change'](_0x434ad5=>{let _0xeba3fd=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x46580c=_0x434ad5['createRangeOn'](_0xeba3fd);const _0x388d87=_0x4e2973['fromPosition'](_0x46580c['start'],'toPrevious'),_0x1dc076=_0x4e2973['fromPosition'](_0x46580c['end'],'toNext');_0x1d7ea2['forceDefaultExecution'](()=>_0xf7f9d9(_0x269499)),_0xeba3fd=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x46580c=_0x434ad5['createRangeOn'](_0xeba3fd);const _0x464614=_0x434ad5['createRange'](_0x388d87,_0x1dc076);_0x388d87['detach'](),_0x1dc076['detach'](),_0x1d7ea2['markBlockFormat'](_0xeba3fd,{'commandName':'imageTypeInline','commandParams':[_0x269499]},[],'convertInlineImageToBlock'),_0x464614['start']['isBefore'](_0x46580c['start'])&&_0x1d7ea2['markInsertion'](_0x434ad5['createRange'](_0x464614['start'],_0x46580c['start']),'convertInlineImageToBlock'),_0x46580c['end']['isBefore'](_0x464614['end'])&&_0x1d7ea2['markInsertion'](_0x434ad5['createRange'](_0x46580c['end'],_0x464614['end']),'convertInlineImageToBlock');});}),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1d7ea2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2da5a1])=>{const _0x335f6e=_0x1d7ea2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27dcaf=_0x2da5a1['start'],_0x2f06cd=_0x2da5a1['end'];const _0x563809=_0x5d0006['model']['schema']['getNearestSelectionRange'](_0x27dcaf,'backward'),_0x561711=_0x5d0006['model']['schema']['getNearestSelectionRange'](_0x2f06cd,'forward');_0x563809['isCollapsed']&&(_0x27dcaf=_0x563809['start']),_0x561711['isCollapsed']&&(_0x2f06cd=_0x561711['end']),_0x335f6e([_0x5d0006['model']['createRange'](_0x27dcaf,_0x2f06cd)]);}),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xda3d1a),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xda3d1a)),_0x5d0006['plugins']['has']('ImageCaptionEditing')&&(_0x1d7ea2['enableCommand']('toggleImageCaption',(_0x441c41,_0x386486)=>{const _0xd2f01a=_0x5d0006['plugins']['get']('ImageCaptionUtils');let _0x449fe3=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x47970f=_0xd2f01a['getCaptionFromImageModelElement'](_0x449fe3);_0x5d0006['model']['change'](()=>{if(_0x47970f)return void _0x1d7ea2['markDeletion'](_0x5d0006['model']['createRangeOn'](_0x47970f));const _0x787e14=_0x37c613['isBlockImage'](_0x449fe3);_0x441c41(_0x386486),_0x449fe3=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x47970f=_0xd2f01a['getCaptionFromImageModelElement'](_0x449fe3),_0x1d7ea2['markInsertion'](_0x5d0006['model']['createRangeOn'](_0x47970f),_0x787e14?null:'imageCaption');});}),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xda3d1a));const _0x25657d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x18dfac(_0x2d0a33,_0x299ba6){const _0x59affe=_0x25657d['findIndex'](({type:_0x4af2ea,subType:_0x1bb09b})=>_0x2d0a33['type']==_0x4af2ea&&_0x2d0a33['subType']==_0x1bb09b),_0x42f5ea=_0x25657d['findIndex'](({type:_0x230e3d,subType:_0x21b7ff})=>_0x299ba6['type']==_0x230e3d&&_0x299ba6['subType']==_0x21b7ff);if(_0x59affe<0x0||_0x42f5ea<0x0)return!0x1;const _0x26ac41=_0x2d0a33['getFirstRange'](),_0x306c7e=_0x299ba6['getFirstRange']();if((0x0==_0x59affe||0x1==_0x59affe)&&0x2==_0x42f5ea&&_0x26ac41['isIntersecting'](_0x306c7e))return!0x0;if(0x2==_0x59affe&&0x3==_0x42f5ea){const _0x2c78ac=_0x1d7ea2['_findSuggestions'](_0x26ac41,'insertion')['filter'](({suggestion:_0x365932,meta:_0x3d41f4})=>_0x3d41f4['isOwn']&&'convertInlineImageToBlock'==_0x365932['subType']);if(_0x2c78ac['length']>0x1&&_0x306c7e['end']['isEqual'](_0x26ac41['start']))return!0x0;if(0x1==_0x2c78ac['length']&&(_0x26ac41['start']['isEqual'](_0x306c7e['end'])||_0x26ac41['end']['isEqual'](_0x306c7e['start'])))return!0x0;}if(0x3==_0x59affe&&0x3==_0x42f5ea&&_0x26ac41['start']['isBefore'](_0x306c7e['start'])){const _0x31352e=_0x26ac41['end']['nodeAfter'],_0x1d62be=_0x306c7e['start']['nodeBefore'];return _0x37c613['isBlockImage'](_0x31352e)&&_0x31352e===_0x1d62be;}return!0x1;}function _0xda3d1a(_0x2cd3b1,_0x4d2b46){return _0x18dfac(_0x2cd3b1,_0x4d2b46)?[_0x2cd3b1,_0x4d2b46]:_0x18dfac(_0x4d2b46,_0x2cd3b1)?[_0x4d2b46,_0x2cd3b1]:null;}_0x5d0006['plugins']['has']('ImageResize')&&(_0x1d7ea2['enableDefaultAttributesIntegration']('resizeImage'),_0x1d7ea2['registerBlockAttribute']('resizedWidth'),_0x1d7ea2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1a9a7c,'FORMAT_IMAGE_SIZE'))),_0x5d0006['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1d7ea2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1d7ea2['registerBlockAttribute']('alt')),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x1d4603=>{if(!!_0x25657d['find'](({type:_0x2b1b08,subType:_0x298ea1})=>_0x1d4603['type']==_0x2b1b08&&_0x1d4603['subType']==_0x298ea1))return _0x1d4603['previous']?{}:void 0x0;}),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x3e785d=>{if('insertion'==_0x3e785d['type']||'deletion'==_0x3e785d['type']){const _0x31d7bd=_0x3e785d['getContainedElement']();if(_0x31d7bd&&_0x31d7bd['is']('element','caption'))return{'type':'insertion'==_0x3e785d['type']?'addObject':'removeObject','element':_0x31d7bd,'quantity':0x1};}}),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x26c5eb=>'formatBlock'==_0x26c5eb['type']&&'convertInlineImageToBlock'==_0x26c5eb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26c5eb['type']&&'convertBlockImageToInline'==_0x26c5eb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x563c2c=>{if('attribute'!=_0x563c2c['type'])return;const {data:_0x29e866}=_0x563c2c;if(!_0x29e866||'alt'!=_0x29e866['key'])return;const _0x45b050=_0x29e866['newValue'];return _0x45b050?{'type':'format','content':o(_0x1a9a7c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45b050+'\x22')}:{'type':'format','content':o(_0x1a9a7c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117c34=this['editor'],_0x2f55c3=_0x117c34['locale'];_0x117c34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9a6d=>{if('formatBlock'!=_0x3c9a6d['type']&&'formatInline'!=_0x3c9a6d['type'])return;const {data:_0x4a0438}=_0x3c9a6d;if(_0x4a0438){if('imageTextAlternative'==_0x4a0438['commandName']){const _0x126214=_0x4a0438['commandParams'][0x0]['newValue'];return _0x126214?{'type':'format','content':o(_0x2f55c3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x126214+'\x22')}:{'type':'format','content':o(_0x2f55c3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4a0438['commandName']){const _0x9cfe03=_0x4a0438['commandParams'][0x0]['width'];return _0x9cfe03?{'type':'format','content':o(_0x2f55c3,'*Set\x20image\x20width:*\x20%0',_0x9cfe03)}:{'type':'format','content':o(_0x2f55c3,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x367574=this['editor']['locale'],_0x43f56b=this['editor']['plugins']['get']('TrackChangesEditing');_0x43f56b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43f56b['registerBlockAttribute']('src'),_0x43f56b['descriptionFactory']['registerDescriptionCallback'](_0x14451c=>{if('attribute'!=_0x14451c['type'])return;const {data:_0xe26a53}=_0x14451c;return _0xe26a53&&'src'==_0xe26a53['key']?_0xe26a53['newValue']&&_0xe26a53['oldValue']?{'type':'format','content':o(_0x367574,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4289d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4289d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4289d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4289d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4289d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cce5b=this['editor'],_0x2f3318=_0x3cce5b['locale'];_0x3cce5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7fd5d1=>{if('formatBlock'!=_0x7fd5d1['type']&&'formatInline'!=_0x7fd5d1['type'])return;const {data:_0x21a80f}=_0x7fd5d1;if(!_0x21a80f||'replaceImageSource'!=_0x21a80f['commandName'])return;return{'type':'format','content':o(_0x2f3318,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4f5a27{['afterInit'](){const _0x2bdd20=this['editor'];if(!_0x2bdd20['plugins']['has']('ImageStyleEditing'))return;const _0x3932ff=_0x2bdd20['plugins']['get']('TrackChangesEditing'),_0x3d92cc=_0x2bdd20['plugins']['get']('ImageUtils'),_0x4e4a69={};_0x3932ff['enableCommand']('imageStyle',(_0x151258,_0x13def0)=>{const _0x135ca8=_0x2bdd20['plugins']['get']('Users')['me'],_0x3d7be3=_0x2bdd20['commands']['get']('imageStyle');let _0x304c0c=_0x3d92cc['getClosestSelectedImageElement'](_0x2bdd20['model']['document']['selection']),_0x18b284=_0x2bdd20['model']['createRangeOn'](_0x304c0c),_0x1c9d09=_0x3d7be3['value'];if(_0x1c9d09==_0x13def0['value'])return;const _0x141aa0={'commandName':'imageStyle','commandParams':[_0x13def0],'formatGroupId':_0x3dae9a()};_0x2bdd20['model']['change'](()=>{if(_0x3932ff['getSuggestions']()['filter'](_0x262bec=>_0x262bec['isInContent']&&_0x135ca8==_0x262bec['author']&&('formatBlock'==_0x262bec['type']||'formatInline'==_0x262bec['type'])&&('imageStylePreApply'==_0x262bec['subType']||'imageStylePostApply'==_0x262bec['subType'])&&_0x262bec['getFirstRange']()['isEqual'](_0x18b284))['forEach'](_0x487310=>_0x3932ff['discardSuggestion'](_0x487310['head'])),_0x304c0c=_0x3d92cc['getClosestSelectedImageElement'](_0x2bdd20['model']['document']['selection']),_0x18b284=_0x2bdd20['model']['createRangeOn'](_0x304c0c),_0x3d7be3['refresh'](),_0x2bdd20['commands']['get']('imageTypeInline')['refresh'](),_0x2bdd20['commands']['get']('imageTypeBlock')['refresh'](),_0x1c9d09=_0x3d7be3['value'],_0x1c9d09!=_0x13def0['value'])return _0x3d92cc['isInlineImage'](_0x304c0c)&&_0x3d7be3['shouldConvertImageType'](_0x13def0['value'],_0x304c0c)?(_0x151258({..._0x13def0,'setImageSizes':!0x1}),_0x304c0c=_0x3d92cc['getClosestSelectedImageElement'](_0x2bdd20['model']['document']['selection']),void _0x3932ff['markBlockFormat'](_0x304c0c,{..._0x141aa0,'commandReversedParams':[{'value':_0x1c9d09||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3d92cc['isBlockImage'](_0x304c0c)?_0x3932ff['markBlockFormat'](_0x304c0c,_0x141aa0,[],'imageStylePostApply'):_0x3932ff['markInlineFormat'](_0x18b284,_0x141aa0,'imageStylePostApply'));});});for(const _0x55f5c5 of _0x2bdd20['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4e4a69[_0x55f5c5['name']]=_0x55f5c5['title']['toLowerCase']();_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x304a85])=>{_0x3d92cc['setImageNaturalSizeAttributes'](_0x304a85['getContainedElement']());}),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3f20c8,_0x348e07)=>{_0x3932ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3f20c8,{'commandName':_0x348e07['commandName'],'commandParams':_0x348e07['commandReversedParams']});}),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f45ad,_0x1f6b19){if(_0x32641b(_0x1f45ad,_0x1f6b19))return[_0x1f45ad,_0x1f6b19];if(_0x32641b(_0x1f6b19,_0x1f45ad))return[_0x1f6b19,_0x1f45ad];return null;});const _0x33f10b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32641b(_0x52a8c8,_0x3ff351){const _0x267735=_0x33f10b['findIndex'](({type:_0x109fef,subType:_0xfa9585})=>_0x52a8c8['type']==_0x109fef&&_0x52a8c8['subType']==_0xfa9585),_0x1e5250=_0x33f10b['findIndex'](({type:_0x76ae24,subType:_0x193e7f})=>_0x3ff351['type']==_0x76ae24&&_0x3ff351['subType']==_0x193e7f);if(_0x267735<0x0||_0x1e5250<0x0)return!0x1;const _0x8a1fcf=_0x52a8c8['getFirstRange'](),_0x45de4d=_0x3ff351['getFirstRange']();if((0x0==_0x267735||0x1==_0x267735)&&0x2==_0x1e5250&&_0x8a1fcf['isIntersecting'](_0x45de4d))return!0x0;if(0x2==_0x267735&&0x3==_0x1e5250){const _0x2fcb0e=_0x3932ff['_findSuggestions'](_0x8a1fcf,'insertion')['filter'](({suggestion:_0x142fc7,meta:_0x35b684})=>_0x35b684['isOwn']&&'convertInlineImageToBlock'==_0x142fc7['subType']);if(_0x2fcb0e['length']>0x1&&_0x45de4d['end']['isEqual'](_0x8a1fcf['start']))return!0x0;if(0x1==_0x2fcb0e['length']&&(_0x8a1fcf['start']['isEqual'](_0x45de4d['end'])||_0x8a1fcf['end']['isEqual'](_0x45de4d['start'])))return!0x0;}if(0x3==_0x267735&&0x3==_0x1e5250&&_0x8a1fcf['start']['isBefore'](_0x45de4d['start'])){const _0xbafb44=_0x8a1fcf['end']['nodeAfter'],_0x30e57f=_0x45de4d['start']['nodeBefore'];return _0x3d92cc['isBlockImage'](_0xbafb44)&&_0xbafb44===_0x30e57f;}return!0x1;}_0x2bdd20['model']['document']['registerPostFixer'](()=>{let _0x5a7b87=!0x1;const _0x4acf85=Array['from'](_0x2bdd20['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fa12,data:_0x249ead}of _0x4acf85){const {group:_0x29bb70,type:_0x549098,subType:_0x4d52f2,id:_0x581daa}=_0x3932ff['_splitMarkerName'](_0x32fa12);if('suggestion'==_0x29bb70&&_0x3932ff['hasSuggestion'](_0x581daa)){if('formatBlock'==_0x549098&&('imageStylePreApply'==_0x4d52f2||'imageStylePostApply'==_0x4d52f2)){const _0x486cd7=_0x3932ff['getSuggestion'](_0x581daa);if(_0x249ead['newRange']){const _0x1a9748=_0x486cd7['getFirstRange']()['getContainedElement']();if(_0x3d92cc['isBlockImage'](_0x1a9748))continue;_0x3932ff['discardSuggestion'](_0x486cd7),_0x5a7b87=!0x0;}}if('insertion'==_0x549098&&'imageCaption'==_0x4d52f2&&!_0x249ead['newRange']){const _0x123b35=_0x3932ff['getSuggestion'](_0x581daa);_0x123b35['next']&&_0x123b35['next']['isInContent']&&(_0x3932ff['discardSuggestion'](_0x123b35['next']),_0x5a7b87=!0x0);}}}return _0x5a7b87;}),this['_registerLegacyDescription'](_0x4e4a69);}['_registerLegacyDescription'](_0x5d6361){const _0x1534b2=this['editor'],_0x5e436f=_0x1534b2['locale'];_0x1534b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf8652c=>{if('formatBlock'!=_0xf8652c['type']&&'formatInline'!=_0xf8652c['type'])return;const {data:_0x1bfb6f}=_0xf8652c;if(!_0x1bfb6f||'imageStyle'!=_0x1bfb6f['commandName'])return;const _0x689dcc=_0x1bfb6f['commandParams'][0x0]['value'];return _0x3b1a62('side'===_0x689dcc?o(_0x5e436f,'FORMAT_SIDE_IMAGE'):_0x5d6361[_0x689dcc]||_0x689dcc);function _0x3b1a62(_0x53c52d){return{'type':'format','content':o(_0x5e436f,'*Format:*\x20%0',_0x53c52d)};}});}}class ot extends _0x4f5a27{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5626a6){super(_0x5626a6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2fdfe0=this['editor'],_0xd94ee0=_0x2fdfe0['commands']['get']('importWord'),_0x4cbc6c=_0x2fdfe0['commands']['get']('trackChanges');_0xd94ee0&&(_0xd94ee0['on']('execute',(_0x2d444f,[,_0x5ab028])=>{this['_trackChangesValueDuringImport']=_0x4cbc6c['value'],_0x5ab028['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd94ee0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd94ee0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4cbc6c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fdfe0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2ac65d,_0x4e7a05){const {suggestions:_0x22813e}=_0x4e7a05,_0x3a0ea6=this['editor']['commands']['get']('trackChanges'),_0x26c1b2=_0x3a0ea6['value'];this['_trackChangesValueDuringImport']!==_0x26c1b2&&(_0x3a0ea6['execute'](),this['_trackChangesExecuted']=!0x0),_0x22813e&&_0x22813e['forEach'](({id:_0x12ad90,type:_0x133178,author:_0x5433df,created_at:_0xa362e})=>{const _0x2ccc4f={'id':_0x12ad90,'type':_0x133178,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5433df,'createdAt':_0xa362e?new Date(_0xa362e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ccc4f);});}}class rt extends _0x4f5a27{['afterInit'](){const _0x4a5bd8=this['editor'],_0x5aad07=_0x4a5bd8['plugins']['get']('TrackChangesEditing');if(_0x4a5bd8['plugins']['has']('IndentEditing')&&(_0x5aad07['enableCommand']('indent'),_0x5aad07['enableCommand']('outdent')),_0x4a5bd8['plugins']['has']('IndentBlock')){for(const _0x3554ce of['indentBlock','outdentBlock'])_0x5aad07['enableDefaultAttributesIntegration'](_0x3554ce);}const _0x247b92=_0x4a5bd8['locale'];_0x5aad07['registerBlockAttribute']('blockIndent'),_0x5aad07['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x247b92,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4319f9=this['editor'],_0x564d3d=_0x4319f9['locale'],_0x38a7f4=_0x4319f9['plugins']['get']('TrackChangesEditing');_0x38a7f4['descriptionFactory']['registerDescriptionCallback'](_0x1122be=>{if('formatBlock'!=_0x1122be['type'])return;const {data:_0x585aae}=_0x1122be;if(!_0x585aae)return;if('indentBlock'!=_0x585aae['commandName']&&'outdentBlock'!=_0x585aae['commandName'])return;const _0x1790d2=_0x1122be['getItems']()[0x0],_0x5b6bc7=_0x38a7f4['descriptionFactory']['getItemLabel'](_0x1790d2);return'indentBlock'==_0x585aae['commandName']?{'type':'format','content':o(_0x564d3d,'*Indent:*\x20%0',_0x5b6bc7)}:'outdentBlock'==_0x585aae['commandName']?{'type':'format','content':o(_0x564d3d,'*Outdent:*\x20%0',_0x5b6bc7)}:void 0x0;});}}class at extends _0x4f5a27{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4f5a27{['afterInit'](){const _0x423d72=this['editor'];if(!_0x423d72['plugins']['has']('LinkEditing'))return;const _0x2781a9=_0x423d72['plugins']['get']('TrackChangesEditing'),_0x6a2d3e=_0x423d72['commands']['get']('link');_0x2781a9['enableDefaultAttributesIntegration']('link'),_0x2781a9['enableDefaultAttributesIntegration']('unlink'),_0x2781a9['registerInlineAttribute']('linkHref');for(const _0xaeed16 of _0x6a2d3e['manualDecorators'])_0x2781a9['registerInlineAttribute'](_0xaeed16['id']),_0x2781a9['descriptionFactory']['registerAttributeLabel'](_0xaeed16['id'],'link\x20('+_0xaeed16['label']['toLowerCase']()+')');_0x2781a9['descriptionFactory']['registerDescriptionCallback'](_0x165b1b=>{if('attribute'!=_0x165b1b['type'])return;const {data:_0x4b2b01}=_0x165b1b;if(!_0x4b2b01||'linkHref'!=_0x4b2b01['key'])return;const _0x4a3f15=_0x4b2b01['newValue'],_0x383f14=_0x423d72['locale'];return{'type':'format','content':null==_0x4a3f15?o(_0x383f14,'*Remove\x20link*'):o(_0x383f14,'*Set\x20link:*\x20%0','\x22'+_0x4a3f15+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2397a8=this['editor'],_0x5ceba0=_0x2397a8['locale'];_0x2397a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x477813=>{if('formatInline'!=_0x477813['type'])return;const {data:_0x975dd4}=_0x477813;if(_0x975dd4){if('link'==_0x975dd4['commandName']){const _0x54af0c=_0x975dd4['commandParams'][0x0];return{'type':'format','content':o(_0x5ceba0,'*Set\x20link:*\x20%0','\x22'+_0x54af0c+'\x22')};}return'unlink'==_0x975dd4['commandName']?{'type':'format','content':o(_0x5ceba0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4f5a27{['afterInit'](){const _0x37e5a0=this['editor'],_0x5dd592=_0x37e5a0['locale'];if(!_0x37e5a0['plugins']['has']('LegacyListEditing'))return;const _0x579004=_0x37e5a0['plugins']['get']('TrackChangesEditing'),_0x2e1c54=_0x37e5a0['plugins']['has']('LegacyTodoListEditing');function _0x1620eb(_0x2ce4c4){return()=>{const _0x4cacf2=_0x37e5a0['model']['document']['selection'],_0x38b1d6=_0x37e5a0['commands']['get'](_0x2ce4c4);if(_0x38b1d6['value'])return void _0x37e5a0['execute']('paragraph',{});const _0x14cda3=_0x2ce4c4['slice'](0x0,-0x4),_0x3b41cf=function(_0x3b5f9e,_0xee8a6f,_0x50b11c){let _0x4654a6=Array['from'](_0x3b5f9e)['filter'](_0xaad819=>function(_0x5df4dc,_0x4354d6){return _0x4354d6['checkChild'](_0x5df4dc['parent'],'listItem')&&!_0x4354d6['isObject'](_0x5df4dc);}(_0xaad819,_0x50b11c));_0x4654a6=_0x4654a6['filter'](_0x1b2f96=>!_0x1b2f96['is']('element','listItem')||_0x1b2f96['getAttribute']('listType')!=_0xee8a6f);const _0x11baab=new Set();for(const _0x48c6dd of _0x4654a6)_0x48c6dd['is']('element','listItem')?_0x11baab['add'](me(_0x48c6dd)):_0x11baab['add'](_0x48c6dd);return Array['from'](_0x11baab);}(_0x4cacf2['getSelectedBlocks'](),_0x14cda3,_0x37e5a0['model']['schema']);_0x37e5a0['model']['change'](()=>{for(const _0x5b561a of _0x3b41cf)_0x579004['markBlockFormat'](_0x5b561a,{'commandName':_0x2ce4c4,'commandParams':[{'forceValue':!_0x38b1d6['value']}],'formatGroupId':'blockName'},fe(_0x5b561a));});};}function _0x350d24(_0x324e2f){return()=>{const _0x3db66f=function(_0x145b82){let _0x150b85=Array['from'](_0x145b82);const _0x3f9e78=_0x150b85['findIndex'](_0x337211=>'listItem'!=_0x337211['name']);return _0x3f9e78>-0x1&&(_0x150b85=_0x150b85['slice'](0x0,_0x3f9e78)),_0x150b85;}(_0x37e5a0['model']['document']['selection']['getSelectedBlocks']()),_0x1b7a95=_0x37e5a0['model']['createRange'](_0x37e5a0['model']['createPositionAt'](_0x3db66f[0x0],'before'),_0x37e5a0['model']['createPositionAt'](_0x3db66f[_0x3db66f['length']-0x1],'end'));_0x37e5a0['model']['change'](()=>{_0x579004['markBlockFormat'](_0x1b7a95,{'commandName':_0x324e2f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b7c4e){const _0x4571ee=new Set();for(const _0x58af32 of _0x2b7c4e){let _0x4587b0=_0x58af32['nextSibling'];for(;_0x4587b0&&_0x4587b0['getAttribute']('listIndent')>_0x58af32['getAttribute']('listIndent');)_0x4571ee['add'](_0x4587b0),_0x4587b0=_0x4587b0['nextSibling'];}return Array['from'](_0x4571ee);}(_0x3db66f));});};}_0x579004['enableCommand']('numberedList',_0x1620eb('numberedList')),_0x579004['enableCommand']('bulletedList',_0x1620eb('bulletedList')),_0x2e1c54&&_0x579004['enableCommand']('todoList',_0x1620eb('todoList')),_0x579004['enableCommand']('indentList',_0x350d24('indentList')),_0x579004['enableCommand']('outdentList',_0x350d24('outdentList')),_0x2e1c54&&_0x579004['enableCommand']('checkTodoList',()=>{const _0x17acd5=_0x37e5a0['commands']['get']('checkTodoList'),_0x20bb9e=Array['from'](_0x17acd5['_selectedElements']);_0x20bb9e['filter'](_0xbf6afe=>_0xbf6afe['getAttribute']('todoListChecked')!=_0x17acd5['value']),_0x37e5a0['model']['change'](()=>{for(const _0x238e8d of _0x20bb9e)_0x579004['markBlockFormat'](_0x238e8d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x17acd5['value']}]});});}),_0x579004['descriptionFactory']['registerElementLabel']('listItem',_0x482e25=>o(_0x5dd592,'ELEMENT_LIST_ITEM',_0x482e25)),_0x579004['descriptionFactory']['registerDescriptionCallback'](_0x1a4775=>{if('formatBlock'!=_0x1a4775['type']&&'formatInline'!=_0x1a4775['type'])return;const {data:_0x32452f}=_0x1a4775;if(_0x32452f){if('numberedList'==_0x32452f['commandName']||'bulletedList'==_0x32452f['commandName']||'todoList'==_0x32452f['commandName'])switch(_0x32452f['commandName']['replace']('List','')){case'bulleted':return _0x55ec19(o(_0x5dd592,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55ec19(o(_0x5dd592,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55ec19(o(_0x5dd592,'ELEMENT_TODO_LIST'));}if('indentList'==_0x32452f['commandName'])return{'type':'format','content':o(_0x5dd592,'*Indent:*\x20%0',o(_0x5dd592,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x32452f['commandName'])return{'type':'format','content':o(_0x5dd592,'*Outdent:*\x20%0',o(_0x5dd592,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x32452f['commandName'])return _0x32452f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dd592,'*Check\x20item*')}:{'type':'format','content':o(_0x5dd592,'*Uncheck\x20item*')};}function _0x55ec19(_0x57c8a5){return{'type':'format','content':o(_0x5dd592,'*Change\x20to:*\x20%0',_0x57c8a5)};}});}}function me(_0x274612){const _0x16856d=_0x274612['getAttribute']('listIndent');if(0x0==_0x16856d)return _0x274612;let _0x279bbf=_0x274612;for(;_0x274612['previousSibling']&&_0x274612['previousSibling']['is']('element','listItem');){const _0x5343ba=_0x274612['previousSibling']['getAttribute']('listIndent');if(_0x5343ba==_0x16856d)_0x279bbf=_0x274612['previousSibling'];else{if(_0x5343ba<_0x16856d)break;}_0x274612=_0x274612['previousSibling'];}return _0x279bbf;}function fe(_0x15dc26){const _0x582960=[];if(_0x15dc26['is']('element','listItem')&&_0x15dc26['getAttribute']('listIndent')>0x0){let _0x8c295a=_0x15dc26['nextSibling'];for(;_0x8c295a&&'listItem'==_0x8c295a['name']&&_0x8c295a['getAttribute']('listIndent')==_0x15dc26['getAttribute']('listIndent');)_0x582960['push'](_0x8c295a),_0x8c295a=_0x8c295a['nextSibling'];}return _0x582960;}class K extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x6f4ed2=this['editor']['config']['get']('list.properties'),_0x352b7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x6f4ed2['styles']&&_0x352b7a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x6f4ed2['reversed']&&_0x352b7a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x6f4ed2['startIndex']&&_0x352b7a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x352b7a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x46a405,_0x3fc84a={}){const _0x11458d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d2233=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x11458d['markMultiRangeBlockFormat'](_0x2d2233,{'commandName':'listStyle','commandParams':[{'type':_0x3fc84a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e21ec,_0x535bdc={}){const _0x9a6dc5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436a1a=this['_getSuggestionBlocks'](_0x128746=>_0x128746['is']('element','listItem')&&'numbered'===_0x128746['getAttribute']('listType'));if(_0x436a1a['length']<0x1)return;const _0x15e80b=_0x436a1a['map'](_0x3a3972=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a3972,'before'),this['editor']['model']['createPositionAt'](_0x3a3972,0x0)));this['editor']['model']['change'](()=>{_0x9a6dc5['markMultiRangeBlockFormat'](_0x15e80b,{'commandName':'listReversed','commandParams':[{'reversed':_0x535bdc['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3a9d7b,_0x2c894a={}){const _0x170e4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24149c=this['_getSuggestionBlocks'](_0x51e60b=>_0x51e60b['is']('element','listItem')&&'numbered'===_0x51e60b['getAttribute']('listType'));if(_0x24149c['length']<0x1)return;const _0x45296a=_0x24149c['map'](_0x25ab94=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25ab94,'before'),this['editor']['model']['createPositionAt'](_0x25ab94,0x0)));this['editor']['model']['change'](()=>{_0x170e4a['markMultiRangeBlockFormat'](_0x45296a,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c894a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x519bbf){if('formatBlock'!=_0x519bbf['type']&&'formatInline'!=_0x519bbf['type'])return;const _0x2ea0dd=this['editor']['locale'],{data:_0x501953}=_0x519bbf;if(!_0x501953)return;let _0x4b6233,_0x548d11;switch(_0x501953['commandName']){case'listStyle':_0x4b6233='*Change\x20to:*\x20%0',_0x548d11={'type':'format','content':o(_0x2ea0dd,_0x4b6233,o(_0x2ea0dd,this['_getTranslationKeyForListStyle'](_0x501953['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b6233=_0x501953['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x548d11={'type':'format','content':o(_0x2ea0dd,_0x4b6233)};break;case'listStart':_0x4b6233='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x548d11={'type':'format','content':o(_0x2ea0dd,_0x4b6233,_0x501953['commandParams'][0x0]['startIndex'])};}return _0x548d11;}['_getSuggestionBlocksForListStyle'](){const _0x4d4685=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b741d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2b741d[0x0]?.['is']('element','listItem')&&_0x2b741d['unshift'](..._0x4d4685['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2b741d[_0x2b741d['length']-0x1]?.['is']('element','listItem')&&_0x2b741d['push'](..._0x4d4685['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b741d=[...new Set(_0x2b741d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2b741d=_0x2b741d['filter'](_0x48404d=>_0x48404d['is']('element','listItem'))),_0x2b741d;}['_getSuggestionBlocks'](_0x3880fc){const _0x2e468e=this['editor']['plugins']['get']('LegacyListUtils');let _0xaba7f7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3880fc)['map'](_0x1bb929=>{const _0xfc2f71=this['editor']['model']['createPositionAt'](_0x1bb929,0x0);return[..._0x2e468e['getSiblingNodes'](_0xfc2f71,'backward'),..._0x2e468e['getSiblingNodes'](_0xfc2f71,'forward')];})['flat']();return _0xaba7f7=[...new Set(_0xaba7f7)],_0xaba7f7;}['_getTranslationKeyForListStyle'](_0x5bfb15){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5bfb15)||'default')['toUpperCase']()+'_LIST_'+_0x5bfb15['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4f5a27{['afterInit'](){const _0x53f173=this['editor'];if(!_0x53f173['plugins']['has']('MediaEmbedEditing'))return;const _0x23e7eb=_0x53f173['plugins']['get']('TrackChangesEditing'),_0x35e5d2=_0x53f173['locale'];_0x23e7eb['enableCommand']('mediaEmbed'),_0x23e7eb['descriptionFactory']['registerElementLabel']('media',_0x43da47=>o(_0x35e5d2,'ELEMENT_MEDIA',_0x43da47)),_0x53f173['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xc8ed12,{writer:_0x45c13a,options:_0x5b6bf8})=>{if(_0x5b6bf8['showSuggestionHighlights'])return _0x45c13a['createEmptyElement']('div');},'converterPriority':'high'}),_0x53f173['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7d428c,_0x259044,_0x23799c)=>{_0x23799c['options']['showSuggestionHighlights']&&_0x7d428c['stop']();},{'priority':'high'});}}class gt extends _0x4f5a27{['afterInit'](){const _0x5b8793=this['editor'];_0x5b8793['plugins']['has']('MentionEditing')&&_0x5b8793['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4f5a27{['afterInit'](){const _0x1f2de4=this['editor'],_0x4b0fe2=_0x1f2de4['plugins']['get']('TrackChangesEditing');_0x1f2de4['plugins']['has']('MultiLevelList')&&(_0x4b0fe2['enableDefaultAttributesIntegration']('multiLevelList'),_0x4b0fe2['registerBlockAttribute']('listMarkerStyle'),_0x4b0fe2['descriptionFactory']['registerDescriptionCallback'](_0x350e0d=>this['handleDescriptions'](_0x350e0d)));}['handleDescriptions'](_0x54245e){const _0x4b636d=this['editor']['locale'],{data:_0x1dfeb1}=_0x54245e,_0x330dd5={'type':'format','content':''};if(_0x1dfeb1&&'listMarkerStyle'==_0x1dfeb1['key']){if(!_0x1dfeb1['oldValue'])return{'type':'format','content':o(_0x4b636d,'*Set\x20format:*\x20%0',o(_0x4b636d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1dfeb1['newValue']+')'};if(!_0x1dfeb1['newValue']){let _0xb9f803=_0x54245e['head'];for(;_0xb9f803;){if(_0xb9f803['data']&&'listType'==_0xb9f803['data']['key']&&_0xb9f803['data']['newValue'])return _0x330dd5;_0xb9f803=_0xb9f803['next'];}return{'type':'format','content':o(_0x4b636d,'*Remove\x20format:*\x20%0',o(_0x4b636d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1dfeb1['oldValue']+')'};}}}}class mt extends _0x4f5a27{['afterInit'](){const _0xe3db2e=this['editor'];if(!_0xe3db2e['plugins']['has']('PageBreakEditing'))return;_0xe3db2e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x488e68=_0xe3db2e['plugins']['get']('TrackChangesEditing'),_0x111149=_0xe3db2e['locale'];_0x488e68['descriptionFactory']['registerElementLabel']('pageBreak',_0x542a06=>o(_0x111149,'ELEMENT_PAGE_BREAK',_0x542a06));}}class dt extends _0x4f5a27{['afterInit'](){const _0x2a7b99=this['editor'];if(!_0x2a7b99['plugins']['has']('Paragraph'))return;const _0x540c9d=_0x2a7b99['locale'],_0x13f0c6=_0x2a7b99['plugins']['get']('TrackChangesEditing');_0x13f0c6['descriptionFactory']['registerElementLabel']('paragraph',_0x77cf95=>o(_0x540c9d,'ELEMENT_PARAGRAPH',_0x77cf95)),_0x13f0c6['enableDefaultAttributesIntegration']('paragraph'),_0x13f0c6['enableCommand']('insertParagraph'),_0x2a7b99['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2a7b99),{'priority':'highest'}),_0x2a7b99['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f2aa9,_0x189bfb,_0x5d93a0)=>{_0x5d93a0['options']['showSuggestionHighlights']&&nr(_0x2a7b99,{'showActiveMarker':!0x1})(_0x4f2aa9,_0x189bfb,_0x5d93a0);},{'priority':'highest'});const _0x13ca7c=_0x13f0c6['descriptionFactory'];_0x13ca7c['registerDescriptionCallback'](_0x17663c=>{if('insertion'!==_0x17663c['type'])return;const {start:_0xc02c57,end:_0x189cf0}=_0x17663c['getFirstRange']();if(!_0xc02c57['isTouching'](_0x189cf0)||!_0xc02c57['nodeAfter'])return;const _0x345246=_0x2a7b99['model']['schema'],_0x176121=_0xc02c57['nodeAfter'];return _0x345246['isBlock'](_0x176121)&&!_0x345246['isLimit'](_0x176121)&&_0x345246['checkChild'](_0x176121,'$text')?{'type':'insertion','content':o(_0x540c9d,'*Insert:*\x20%0',_0x13ca7c['getItemLabel'](_0x176121,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37daf6=this['editor'],_0x2aa683=_0x37daf6['locale'];_0x37daf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cf175=>{if('formatBlock'!=_0x2cf175['type'])return;const {data:_0x254de2}=_0x2cf175;return _0x254de2&&'paragraph'==_0x254de2['commandName']?{'type':'format','content':o(_0x2aa683,'*Change\x20to:*\x20%0',o(_0x2aa683,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f009d,{showActiveMarker:_0x12736e=!0x0}={}){return(_0x269c2c,_0x4cfeb3,_0x5049c4)=>{const _0x355c36=_0x2f009d['plugins']['get']('TrackChangesEditing'),_0x1869b9=_0x4cfeb3['markerRange']['start'],_0x289c9f=_0x4cfeb3['markerRange']['end'],_0x19be67=_0x2f009d['model']['schema'];if(!_0x1869b9['isTouching'](_0x289c9f)||!_0x1869b9['nodeAfter'])return;const _0x338612=_0x1869b9['nodeAfter'];if(_0x19be67['isBlock'](_0x338612)&&!_0x19be67['isLimit'](_0x338612)&&_0x19be67['checkChild'](_0x338612,'$text')){if(!_0x5049c4['consumable']['consume'](_0x4cfeb3['markerRange'],_0x269c2c['name']))return;const _0x3c2f4a=_0x5049c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x522198=_0x5049c4['mapper']['toViewPosition'](_0x289c9f);_0x12736e&&_0x355c36['activeMarkers']['includes'](_0x4cfeb3['markerName'])&&_0x5049c4['writer']['addClass']('ck-suggestion-marker--active',_0x3c2f4a),_0x5049c4['writer']['insert'](_0x522198,_0x3c2f4a),_0x5049c4['mapper']['bindElementToMarker'](_0x3c2f4a,_0x4cfeb3['markerName']);}};}class pt extends _0x4f5a27{['afterInit'](){const _0x2c68ad=this['editor'];if(!_0x2c68ad['plugins']['has']('RemoveFormatEditing'))return;_0x2c68ad['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb0cef0=this['editor'];_0xb0cef0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2069dc=>{if('formatBlock'!=_0x2069dc['type']&&'formatInline'!=_0x2069dc['type'])return;const {data:_0x5c7335}=_0x2069dc;return _0x5c7335&&'removeFormat'==_0x5c7335['commandName']?{'type':'format','content':o(_0xb0cef0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4f5a27{['afterInit'](){const _0x21d7d6=this['editor'];if(!_0x21d7d6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x87444a=_0x21d7d6['plugins']['get']('TrackChangesEditing');_0x87444a['enableCommand']('goToPreviousRestrictedEditingException'),_0x87444a['enableCommand']('goToNextRestrictedEditingException');const _0x177b52=_0x21d7d6['plugins']['get']('RestrictedEditingModeEditing');_0x177b52['enableCommand']('trackChanges'),_0x177b52['enableCommand']('acceptSuggestion'),_0x177b52['enableCommand']('discardSuggestion'),_0x177b52['enableCommand']('acceptAllSuggestions'),_0x177b52['enableCommand']('discardAllSuggestions'),_0x177b52['enableCommand']('acceptSelectedSuggestions'),_0x177b52['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4f5a27{static get['requires'](){return[_0x7e37a9];}['init'](){const _0x592648=this['editor'],_0x18f830=_0x592648['plugins']['get']('TrackChangesEditing');_0x18f830['enableCommand']('shiftEnter'),_0x592648['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x592648),{'priority':'high'}),_0x592648['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x592648),{'priority':'high'}),_0x592648['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xcae93c,_0x2c5490,_0x59faa6)=>{_0x59faa6['options']['showSuggestionHighlights']&&de(_0x592648,{'showActiveMarker':!0x1})(_0xcae93c,_0x2c5490,_0x59faa6);}),_0x18f830['descriptionFactory']['registerElementLabel']('softBreak',_0x488c5a=>o(_0x592648['locale'],'ELEMENT_LINE_BREAK',_0x488c5a));}}function de(_0x8bc6e,{showActiveMarker:_0x5f1df5=!0x0}={}){return(_0x13b89d,_0x3ad6e6,_0x164c2f)=>{const _0x1f6b61=_0x8bc6e['plugins']['get']('TrackChangesEditing');if(!_0x164c2f['consumable']['test'](_0x3ad6e6['markerRange'],_0x13b89d['name']))return;const _0xf65d5d=_0x8bc6e['model'];for(const _0x1ca921 of _0x3ad6e6['markerRange']['getItems']()){if(!_0x1ca921['is']('element','softBreak'))continue;const _0x2ece42='deletion'==_0x3ad6e6['markerName']['split'](':')[0x1]?'merge':'split',_0x5aab2e=_0x164c2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ece42}),_0x5268c0=_0x164c2f['mapper']['toViewPosition'](_0xf65d5d['createPositionBefore'](_0x1ca921));_0x5f1df5&&_0x1f6b61['activeMarkers']['includes'](_0x3ad6e6['markerName'])&&_0x164c2f['writer']['addClass']('ck-suggestion-marker--active',_0x5aab2e),_0x164c2f['writer']['insert'](_0x5268c0,_0x5aab2e),_0x164c2f['mapper']['bindElementToMarker'](_0x5aab2e,_0x3ad6e6['markerName']);}};}class wt extends _0x4f5a27{['afterInit'](){const _0x9ee8c8=this['editor'],_0x18f240=_0x9ee8c8['model'],_0x3df14f=_0x9ee8c8['locale'];if(!_0x9ee8c8['plugins']['has']('StandardEditingModeEditing'))return;const _0x2c532c=_0x9ee8c8['plugins']['get']('TrackChangesEditing'),_0x56e0d0='restrictedEditingException',_0x4d27ef=_0x9ee8c8['commands']['get'](_0x56e0d0);_0x2c532c['enableCommand'](_0x56e0d0,(_0x4e3273,_0x2cf68d={})=>{const _0x4de22c=_0x18f240['document']['selection'];if(_0x4de22c['isCollapsed'])return void _0x4e3273(_0x2cf68d);const _0x23b445=void 0x0!==_0x2cf68d['forceValue']?_0x2cf68d['forceValue']:!_0x4d27ef['value'];_0x18f240['change'](()=>{const _0x59decb=Array['from'](_0x4de22c['getRanges']());for(const _0x39074e of _0x59decb){const _0x3d0941=_0x23b445?[_0x39074e]:io(_0x56e0d0,_0x39074e,_0x18f240);for(const _0x1478ad of _0x3d0941)_0x2c532c['markInlineFormat'](_0x1478ad,{'commandName':_0x56e0d0,'commandParams':[{'forceValue':_0x23b445}]});}});}),_0x2c532c['descriptionFactory']['registerDescriptionCallback'](_0x2c4849=>{if('formatBlock'!=_0x2c4849['type']&&'formatInline'!=_0x2c4849['type'])return;const {data:_0x197e09}=_0x2c4849;return _0x197e09&&_0x197e09['commandName']==_0x56e0d0?_0x197e09['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3df14f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3df14f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4f5a27{['afterInit'](){const _0x25125a=this['editor'];if(!_0x25125a['plugins']['has']('Style')||!_0x25125a['plugins']['has']('DataSchema'))return;const _0xcc6bf7=_0x25125a['plugins']['get']('TrackChangesEditing'),_0x5bfcce=_0x25125a['locale'],_0x17c1c3=_0x25125a['config']['get']('style')||{},_0x246faa=_0x25125a['plugins']['get']('GeneralHtmlSupport'),_0x5159db=_0x25125a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x25125a['plugins']['get']('DataSchema'),_0x17c1c3['definitions']);_0xcc6bf7['enableDefaultAttributesIntegration']('style');const _0x866e77=new Set();for(const _0x5b36eb of _0x5159db['block']){const _0x3dfd43=_0x246faa['getGhsAttributeNameForElement'](_0x5b36eb['element']);_0x866e77['add'](_0x3dfd43);}const _0x1bc515=new Set();for(const _0x11ebe1 of _0x5159db['inline']){const _0x310ee1=_0x246faa['getGhsAttributeNameForElement'](_0x11ebe1['element']);_0x1bc515['add'](_0x310ee1);for(const _0x14e3d7 of _0x11ebe1['ghsAttributes'])_0x1bc515['add'](_0x14e3d7);}for(const _0x458684 of _0x866e77)_0xcc6bf7['registerBlockAttribute'](_0x458684),_0xcc6bf7['descriptionFactory']['registerAttributeLabel'](_0x458684,o(_0x5bfcce,'FORMAT_STYLE'));for(const _0xa3e14b of _0x1bc515)_0xcc6bf7['registerInlineAttribute'](_0xa3e14b),_0xcc6bf7['descriptionFactory']['registerAttributeLabel'](_0xa3e14b,o(_0x5bfcce,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x288586=this['editor'],_0xad2c66=_0x288586['locale'];_0x288586['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47d1cd=>{if('formatBlock'!=_0x47d1cd['type']&&'formatInline'!=_0x47d1cd['type'])return;const {data:_0x33cb06}=_0x47d1cd;return _0x33cb06&&'style'===_0x33cb06['commandName']?_0x33cb06['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xad2c66,'*Set\x20format:*\x20%0',_0x33cb06['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xad2c66,'*Remove\x20format:*\x20%0',_0x33cb06['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4f5a27{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x184b06){super(_0x184b06),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x450f98=this['editor'],_0x4fc16b=_0x450f98['model']['document']['selection'];if(!_0x450f98['plugins']['has']('TableEditing'))return;const _0x5b6d17=_0x450f98['locale'],_0x333942=_0x450f98['plugins']['get']('TrackChangesEditing'),_0x177ceb=_0x450f98['plugins']['get']('TableUtils');_0x333942['descriptionFactory']['registerElementLabel']('table',_0x535dff=>o(_0x5b6d17,'ELEMENT_TABLE',_0x535dff)),this['_setupColumnsRowsFixing'](),_0x333942['enableCommand']('insertTable'),_0x333942['enableCommand']('selectTableRow'),_0x333942['enableCommand']('selectTableColumn');for(const _0x4f2314 of['insertTableRowAbove','insertTableRowBelow']){const _0x25358a=_0x450f98['commands']['get'](_0x4f2314);_0x333942['enableCommand'](_0x4f2314,_0x274b40=>{_0x450f98['model']['change'](_0x5a3c8c=>{_0x274b40();const _0x37c57c='above'===_0x25358a['order'],_0x1f0f43=_0x177ceb['getSelectionAffectedTableCells'](_0x4fc16b),_0x4b6c4a=_0x177ceb['getRowIndexes'](_0x1f0f43),_0x2f35f6=_0x37c57c?_0x4b6c4a['first']-0x1:_0x4b6c4a['last']+0x1,_0x3093e4=_0x1f0f43[0x0]['findAncestor']('table'),_0x4168a3=_0x177ceb['createTableWalker'](_0x3093e4,{'startRow':_0x2f35f6,'endRow':_0x2f35f6}),_0x1a9370=Array['from'](_0x4168a3)['map'](_0x50de6e=>_0x5a3c8c['createRangeOn'](_0x50de6e['cell']));_0x333942['markMultiRangeInsertion'](_0x1a9370,'tableRow');});});}for(const _0x57c373 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4bfbe7=_0x450f98['commands']['get'](_0x57c373);_0x333942['enableCommand'](_0x57c373,_0x104034=>{_0x450f98['model']['change'](_0x3ce555=>{_0x104034();const _0x29fb7b='left'===_0x4bfbe7['order'],_0x459ede=_0x177ceb['getSelectionAffectedTableCells'](_0x4fc16b),_0x292dc7=_0x177ceb['getColumnIndexes'](_0x459ede),_0x484e1e=_0x29fb7b?_0x292dc7['first']-0x1:_0x292dc7['last']+0x1,_0x545921=_0x459ede[0x0]['findAncestor']('table'),_0x35d472=_0x177ceb['createTableWalker'](_0x545921,{'startRow':0x0,'column':_0x484e1e,'includeAllSlots':!0x1}),_0x55932b=Array['from'](_0x35d472)['map'](_0x156f28=>_0x3ce555['createRangeOn'](_0x156f28['cell']));_0x333942['markMultiRangeInsertion'](_0x55932b,'tableColumn');});});}for(const _0x4632ad of['removeTableRow','removeTableColumn']){const _0x3df9c0=_0x4632ad['substr'](0xb),_0x3f7486=_0x3df9c0['toLowerCase'](),_0x148f1b=_0x3f7486['substr'](0x0,0x3)+'span',_0x32e054='table'+_0x3df9c0,_0x22236e='min'+_0x3df9c0,_0x19c437='max'+_0x3df9c0;_0x333942['enableCommand'](_0x4632ad,()=>{_0x450f98['model']['change'](_0x230306=>{const _0x2f432e=_0x177ceb['getSelectionAffectedTableCells'](_0x4fc16b),_0x5c5334=_0x2f432e[0x0]['findAncestor']('table');let _0x1e59cf;if('removeTableRow'==_0x4632ad){const _0x309541=_0x177ceb['getRowIndexes'](_0x2f432e);_0x1e59cf={'startRow':_0x309541['first'],'endRow':_0x309541['last'],'includeAllSlots':!0x0};}else{const _0x32284f=_0x177ceb['getColumnIndexes'](_0x2f432e);_0x1e59cf={'startColumn':_0x32284f['first'],'endColumn':_0x32284f['last'],'includeAllSlots':!0x0};}const _0x5bdd0e=_0x177ceb['createTableWalker'](_0x5c5334,_0x1e59cf),_0x41c917=Array['from'](_0x5bdd0e)['map'](({cell:_0x2625d6})=>_0x2625d6),_0x3a11bb=Ee(_0x41c917['filter'](_0x24e5af=>_0x24e5af['hasAttribute'](_0x148f1b))),_0x7dff93=Ee(_0x41c917['filter'](_0xa05079=>!_0xa05079['hasAttribute'](_0x148f1b)))['map'](_0x1d8e17=>_0x230306['createRangeOn'](_0x1d8e17)),_0x49f975=_0x333942['markMultiRangeDeletion'](_0x7dff93,_0x32e054);if(_0x49f975&&('tableRow'==_0x49f975['subType']||'tableColumn'==_0x49f975['subType'])){const _0xb1b070=this['_getSuggestionCoords'](_0x49f975);for(const _0x4ea917 of _0x3a11bb){const _0x18d3ad=_0x230306['createRangeOn'](_0x4ea917),_0x287c76=_0x177ceb['getCellLocation'](_0x4ea917),_0x4128d3=_0x4ea917['getAttribute'](_0x148f1b)-0x1,_0x11951a=_0xb1b070[_0x22236e],_0x42364c=_0xb1b070[_0x19c437];_0x11951a<=_0x287c76[_0x3f7486]&&_0x287c76[_0x3f7486]+_0x4128d3<=_0x42364c&&_0x49f975['addRange'](_0x18d3ad);}}});});}function _0x4d5155(_0x3aa149){const _0x33614a=Array['from'](_0x4fc16b['getRanges']())['map'](_0x104990=>_0x828bf8['fromRange'](_0x104990));_0x450f98['model']['change'](_0x2efccd=>{const _0x460fa4=_0x2efccd['batch'];_0x3aa149=_0x3aa149['filter'](_0x1d5e60=>'$graveyard'!=_0x1d5e60['root']['rootName']),_0x2efccd['setSelection'](_0x3aa149),_0x450f98['commands']['get']('removeTableRow')['refresh'](),_0x450f98['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x450f98['model']['enqueueChange'](()=>{_0x450f98['model']['enqueueChange'](_0x460fa4,_0x2cf62c=>{const _0x5070fa=_0x33614a['filter'](_0x253b1b=>'$graveyard'!=_0x253b1b['root']['rootName']);_0x5070fa['length']>0x0&&_0x2cf62c['setSelection'](_0x5070fa);for(const _0x1a43b0 of _0x33614a)_0x1a43b0['detach']();});});});}function _0x148252(_0x1cd745){_0x450f98['model']['change'](_0x346a44=>{const _0x2e91a5=Array['from'](_0x4fc16b['getRanges']())['map'](_0x26013b=>_0x828bf8['fromRange'](_0x26013b)),_0x55dc0e=[];for(const _0x2e3d66 of _0x1cd745)for(const _0x2f9d08 of _0x2e3d66['getItems']({'shallow':!0x0}))_0x55dc0e['push'](_0x2f9d08);for(const _0x2e29e7 of _0x55dc0e)'$graveyard'!=_0x2e29e7['root']['rootName']&&(_0x346a44['setSelection'](_0x346a44['createPositionAt'](_0x2e29e7,0x0)),_0x450f98['commands']['get']('removeTableColumn')['refresh'](),_0x450f98['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x72f5cb=_0x2e91a5['filter'](_0x456c80=>'$graveyard'!=_0x456c80['root']['rootName']);_0x72f5cb['length']>0x0&&_0x346a44['setSelection'](_0x72f5cb);for(const _0x1954f4 of _0x2e91a5)_0x1954f4['detach']();});}function _0x93c94(_0x18cfaf,_0x1374d2){return _0x1374d2['every'](_0x3214f6=>_0x18cfaf['some'](_0x1bce8f=>_0x1bce8f['end']['isEqual'](_0x3214f6['start'])||_0x3214f6['end']['isEqual'](_0x1bce8f['start'])));}function _0x290e18(_0x2114cd,_0x2c946e){return!_0x2114cd['some'](_0x444b87=>_0x2c946e['some'](_0x4e4b8c=>_0x444b87['isIntersecting'](_0x4e4b8c)))&&_0x2114cd['some'](_0x570b18=>_0x2c946e['some'](_0xc770ca=>_0x570b18['end']['isTouching'](_0xc770ca['start'])));}_0x450f98['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10b156,_0x6feaf1,_0x5af466)=>{if(!_0x5af466['options']['showSuggestionHighlights'])return;const _0x5e550c=_0x6feaf1['item'];if(!_0x5e550c)return;const _0x5e76e9=_0x5af466['mapper']['toViewElement'](_0x5e550c);function _0x3bd5a3(_0x43419f){return Array['isArray'](_0x43419f)?_0x43419f:[_0x43419f];}_0x5e76e9&&'tableCell'===_0x5e550c['name']&&_0x243104(_0x5e76e9,_0x5af466['writer'],(_0x552271,_0x3422bc,_0x51b57f)=>_0x51b57f['addClass'](_0x3bd5a3(_0x3422bc['classes']),_0x552271),(_0x2f79de,_0x5d65e5,_0x28566b)=>_0x28566b['removeClass'](_0x3bd5a3(_0x5d65e5['classes']),_0x2f79de));},{'priority':'highest'}),_0x333942['descriptionFactory']['registerDescriptionCallback'](_0x276740=>{if('insertion'!=_0x276740['type']&&'deletion'!=_0x276740['type'])return;const _0xc55182=_0x276740['getContainedElement']();if(null!=_0xc55182&&_0xc55182['is']('element','table')){if('insertion'==_0x276740['type']){const _0x19ea11=_0x276740['getItems']()['filter'](_0x3f8ca9=>_0x3f8ca9['is']('$textProxy'))['map'](_0x289310=>_0x289310['data']);if(_0x19ea11['length'])return{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19ea11['join']('\x20')+'\x22'))};}if('deletion'==_0x276740['type']){const _0x2de5b6=_0x276740['getItems']()['filter'](_0x54702d=>_0x54702d['is']('$textProxy'))['map'](_0x508bbe=>_0x508bbe['data']);if(_0x2de5b6['length'])return{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2de5b6['join']('\x20')+'\x22'))};}}}),_0x333942['descriptionFactory']['registerDescriptionCallback'](_0x4c8fbe=>{if('tableRow'==_0x4c8fbe['subType']){const _0x2902e0=_0x4c8fbe['getItems']()['filter'](_0x3ebc97=>_0x3ebc97['is']('$textProxy'))['map'](_0x3a08d9=>_0x3a08d9['data']),_0x3c3cc1=this['_getSuggestionCoords'](_0x4c8fbe),_0x12edc0=_0x3c3cc1['maxRow']-_0x3c3cc1['minRow']+0x1;if('insertion'==_0x4c8fbe['type'])return _0x2902e0['length']?{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12edc0,'\x22'+_0x2902e0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW',_0x12edc0))};if('deletion'==_0x4c8fbe['type'])return _0x2902e0['length']?{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12edc0,'\x22'+_0x2902e0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW',_0x12edc0))};}if('tableColumn'==_0x4c8fbe['subType']){const _0x19c591=_0x4c8fbe['getItems']()['filter'](_0x58e31d=>_0x58e31d['is']('$textProxy'))['map'](_0x32a6b6=>_0x32a6b6['data']),_0x1dd7d3=this['_getSuggestionCoords'](_0x4c8fbe),_0x113976=_0x1dd7d3['maxColumn']-_0x1dd7d3['minColumn']+0x1;if('insertion'==_0x4c8fbe['type'])return _0x19c591['length']?{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x113976,'\x22'+_0x19c591['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN',_0x113976))};if('deletion'==_0x4c8fbe['type'])return _0x19c591['length']?{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x113976,'\x22'+_0x19c591['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN',_0x113976))};}}),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d5155),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d5155),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x148252),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x148252),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x93c94),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x93c94),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x290e18),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x290e18);}['_acceptFormatSuggestionCallbackFactory'](){const _0x14fcfe=this['editor'],_0x3866b8=_0x14fcfe['model']['document']['selection'];return(_0x4eb138,_0x1f5403)=>{_0x14fcfe['model']['change'](_0x236287=>{const {commandName:_0x3e9b98,commandParams:_0x541094}=_0x1f5403;let _0x3561e9=_0x4eb138[0x0]['end']['nodeBefore'];_0x541094&&_0x541094[0x0]&&!0x1===_0x541094[0x0]['forceValue']&&(_0x3561e9=_0x4eb138[0x0]['start']['nodeAfter']);const _0x1989ea=_0x236287['createRangeIn'](_0x3561e9);if('$graveyard'==_0x1989ea['root']['rootName'])return;const _0x5e726c=Array['from'](_0x3866b8['getRanges']())['map'](_0x4b94be=>_0x828bf8['fromRange'](_0x4b94be));_0x236287['setSelection'](_0x1989ea),_0x14fcfe['commands']['get'](_0x3e9b98)['refresh'](),_0x541094['push']({'forceDefaultExecution':!0x0}),_0x14fcfe['execute'](_0x3e9b98,..._0x541094);const _0x56cc90=_0x5e726c['filter'](_0x581e6a=>'$graveyard'!=_0x581e6a['root']['rootName']);_0x56cc90['length']>0x0&&_0x236287['setSelection'](_0x56cc90);for(const _0x238d3e of _0x5e726c)_0x238d3e['detach']();});};}['_getCoordsForCells'](_0x454532){const _0x15a1f7=this['editor']['plugins']['get']('TableUtils');let _0x328535=Number['MAX_SAFE_INTEGER'],_0x36b27d=Number['MIN_SAFE_INTEGER'],_0x6c856c=Number['MAX_SAFE_INTEGER'],_0x41c96e=Number['MIN_SAFE_INTEGER'];for(const _0x59eabe of _0x454532){if('$graveyard'==_0x59eabe['root']['rootName'])continue;const {row:_0x31be53,column:_0x5d34c4}=_0x15a1f7['getCellLocation'](_0x59eabe),_0x21f224=_0x59eabe['hasAttribute']('rowspan')?_0x59eabe['getAttribute']('rowspan')-0x1:0x0,_0x2c4628=_0x59eabe['hasAttribute']('colspan')?_0x59eabe['getAttribute']('colspan')-0x1:0x0;_0x328535=_0x31be53<_0x328535?_0x31be53:_0x328535,_0x36b27d=_0x31be53+_0x21f224>_0x36b27d?_0x31be53+_0x21f224:_0x36b27d,_0x6c856c=_0x5d34c4<_0x6c856c?_0x5d34c4:_0x6c856c,_0x41c96e=_0x5d34c4+_0x2c4628>_0x41c96e?_0x5d34c4+_0x2c4628:_0x41c96e;}return{'minRow':_0x328535,'maxRow':_0x36b27d,'minColumn':_0x6c856c,'maxColumn':_0x41c96e};}['_setupColumnsRowsFixing'](){const _0x19ba90=this['editor'],_0x2aad64=_0x19ba90['plugins']['get']('TrackChangesEditing'),_0x1da0b6=_0x19ba90['plugins']['get']('TableUtils');_0x19ba90['model']['document']['on']('change:data',()=>{const _0x19fb2b=Array['from'](_0x19ba90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12bbf4,data:_0x32d94a}of _0x19fb2b){const {group:_0x4189a9,id:_0x59b252,subType:_0x2d8f24}=_0x2aad64['_splitMarkerName'](_0x12bbf4);if('suggestion'!=_0x4189a9)continue;if(null!=_0x32d94a['oldRange'])continue;const _0x158819=_0x2aad64['getSuggestion'](_0x59b252);this['_tablePostFixingSubtypes']['includes'](_0x2d8f24)&&this['_tableSuggestions']['add'](_0x158819);}},{'priority':'low'});const _0x108376=(_0x5cef6e,_0x5dc3c0)=>{let _0x4d5e15=!0x1;const _0x327713=_0x5dc3c0['createRangeOn'](_0x5cef6e),_0xf09162=_0x5cef6e['findAncestor']('table'),_0x5c1c95=_0x1da0b6['getCellLocation'](_0x5cef6e);for(const _0x133bf9 of this['_tableSuggestions']){const _0x22327b=_0x133bf9['subType'],_0x23fc6e=_0x22327b['startsWith']('tablePaste'),_0x593a84=_0x22327b['substr'](_0x23fc6e?0xa:0x5),_0x9e80ab=_0x593a84['toLowerCase'](),_0x2cb6cd=_0x9e80ab['substr'](0x0,0x3)+'span',_0x98ae56='min'+_0x593a84,_0x226625='max'+_0x593a84;if(!_0x133bf9['isInContent'])continue;if(_0xf09162!=_0x133bf9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x133bf9['isIntersectingWithRange'](_0x327713))continue;const _0x4e591e=_0x5cef6e['hasAttribute'](_0x2cb6cd)?_0x5cef6e['getAttribute'](_0x2cb6cd)-0x1:0x0,_0x466382=this['_getSuggestionCoords'](_0x133bf9),_0x13c321=_0x466382[_0x98ae56],_0x3f341e=_0x466382[_0x226625];_0x13c321<=_0x5c1c95[_0x9e80ab]&&_0x5c1c95[_0x9e80ab]+_0x4e591e<=_0x3f341e&&(_0x133bf9['addRange'](_0x327713),_0x4d5e15=!0x0);}return _0x4d5e15;};_0x19ba90['model']['document']['registerPostFixer'](_0x1f0215=>{let _0x41bfe5=!0x1;for(const _0x4ec77a of _0x19ba90['model']['document']['differ']['getChanges']())if('insert'==_0x4ec77a['type']){if('tableRow'==_0x4ec77a['name']){for(const _0x4b0ac0 of _0x4ec77a['position']['nodeAfter']['getChildren']())_0x41bfe5=_0x41bfe5||_0x108376(_0x4b0ac0,_0x1f0215);}else'tableCell'==_0x4ec77a['name']&&(_0x41bfe5=_0x41bfe5||_0x108376(_0x4ec77a['position']['nodeAfter'],_0x1f0215));}return _0x41bfe5;});}['_getSuggestionCoords'](_0x187e5f){return this['_getCoordsForCells'](_0x187e5f['getRanges']()['map'](_0x1fda8e=>_0x1fda8e['start']['nodeAfter']));}}function Ee(_0x115f9a){return Array['from'](new Set(_0x115f9a)['values']());}class St extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0x5b755d=this['editor'],_0x4d1c8d=_0x5b755d['model']['document']['selection'],_0xf646fb=_0x5b755d['locale'];if(!_0x5b755d['plugins']['has']('TableEditing'))return;const _0x3a5048=_0x5b755d['plugins']['get']('TrackChangesEditing'),_0x1651f9=_0x5b755d['plugins']['get']('TableUtils'),_0x520f31=_0x5b755d['plugins']['get'](jt);_0x520f31['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a5048['enableCommand']('mergeTableCells',()=>{const _0x43f309=_0x1651f9['getSelectionAffectedTableCells'](_0x5b755d['model']['document']['selection']);_0x5b755d['model']['change'](()=>{_0x3a5048['markMultiRangeBlockFormat'](_0x43f309,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b755d['commands']['get']('mergeTableCells')['on']('execute',(_0x113058,_0x27d43a)=>{_0x5b755d['commands']['get']('trackChanges')['value']&&(_0x27d43a['length']>0x0&&_0x27d43a[_0x27d43a['length']-0x1]&&_0x27d43a[_0x27d43a['length']-0x1]['forceDefaultExecution']||_0x3a5048['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x113058['stop']());},{'priority':'highest'});for(const _0x2944d8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x49caa1=_0x5b755d['commands']['get'](_0x2944d8);_0x3a5048['enableCommand'](_0x2944d8,()=>{const _0x135b8d=_0x5b755d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3717fc=>_0x3717fc['is']('element','tableCell')),_0x2e3385=_0x49caa1['value'];_0x5b755d['model']['change'](()=>{_0x3a5048['markMultiRangeBlockFormat']([_0x135b8d,_0x2e3385],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2247a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x33762a=_0x5b755d['commands']['get'](_0x2247a8);_0x3a5048['enableCommand'](_0x2247a8,()=>{const _0x4df394=_0x1651f9['getSelectionAffectedTableCells'](_0x5b755d['model']['document']['selection'])[0x0],_0x1bd8ca=_0x4df394['findAncestor']('table'),{column:_0x32b9a5,row:_0x57b993}=_0x1651f9['getCellLocation'](_0x4df394);let _0x525922=[];if('horizontally'==_0x33762a['direction']){const _0x4ba351=_0x1651f9['createTableWalker'](_0x1bd8ca,{'startRow':_0x57b993,'endRow':_0x57b993,'includeAllSlots':!0x0});_0x525922=Array['from'](_0x4ba351)['map'](_0x328ca3=>_0x328ca3['cell']);}else{const _0x479acb=_0x1651f9['createTableWalker'](_0x1bd8ca,{'column':_0x32b9a5,'includeAllSlots':!0x0});_0x525922=Array['from'](_0x479acb)['map'](_0x104065=>_0x104065['cell']);}_0x5b755d['model']['change'](_0x4cadb7=>{_0x3a5048['markBlockFormat'](_0x4cadb7['createRangeOn'](_0x4df394),{'commandName':_0x2247a8,'commandParams':[]},_0x525922,_0x2247a8);});});}_0x3a5048['descriptionFactory']['registerDescriptionCallback'](_0x216195=>{if('formatBlock'!=_0x216195['type']&&'formatInline'!=_0x216195['type'])return;const {data:_0xcd03ce}=_0x216195;return _0xcd03ce&&'mergeTableCells'==_0xcd03ce['commandName']?{'type':'format','content':o(_0xf646fb,'*Merge\x20cells*')}:void 0x0;}),_0x3a5048['descriptionFactory']['registerDescriptionCallback'](_0x5118a6=>{if('formatBlock'!=_0x5118a6['type']&&'formatInline'!=_0x5118a6['type'])return;const {data:_0x417dbd}=_0x5118a6;return _0x417dbd?'splitTableCellVertically'==_0x417dbd['commandName']?{'type':'format','content':o(_0xf646fb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x417dbd['commandName']?{'type':'format','content':o(_0xf646fb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4c2f12=_0x520f31['_acceptFormatSuggestionCallbackFactory']();for(const _0x550bad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a5048['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x550bad,'accept',_0x4c2f12);for(const _0x375cc1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a5048['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x375cc1,'accept',_0x4c2f12);_0x3a5048['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x20cdbb=>{_0x5b755d['model']['change'](_0x44e9ea=>{const _0x39e474=Array['from'](_0x4d1c8d['getRanges']())['map'](_0x31640d=>_0x828bf8['fromRange'](_0x31640d));_0x44e9ea['setSelection'](_0x20cdbb),_0x5b755d['commands']['get']('mergeTableCells')['refresh'](),_0x5b755d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c7848=_0x39e474['filter'](_0x48cbe6=>'$graveyard'!=_0x48cbe6['root']['rootName']);_0x5c7848['length']>0x0&&_0x44e9ea['setSelection'](_0x5c7848);for(const _0x27b5cb of _0x39e474)_0x27b5cb['detach']();});});for(const _0x5e3ec2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x158120=_0x5b755d['commands']['get'](_0x5e3ec2);_0x158120['on']('set:isEnabled',(_0x137cc1,_0x13e783,_0x4983ac)=>{if(_0x4983ac){const _0x5809a4=_0x5b755d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bae1b=>_0x5bae1b['is']('element','tableCell'));this['_areMergableCells'](_0x158120['value'],_0x5809a4)||(_0x137cc1['return']=!0x1,_0x137cc1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x802f1d=this['editor']['commands']['get']('mergeTableCells'),_0x2c798c=this['editor']['plugins']['get']('TableUtils');if(!_0x802f1d['isEnabled'])return!0x1;const _0x2885be=_0x2c798c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5946c1 of _0x2885be)for(const _0x41cd9a of _0x2885be)if(_0x5946c1!=_0x41cd9a&&!this['_areMergableCells'](_0x5946c1,_0x41cd9a))return!0x1;return!0x0;}['_areMergableCells'](_0x4db934,_0x1e7d54){const _0x2204a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c4cc3=this['editor']['model']['createRangeOn'](_0x4db934),_0x3fc48f=this['editor']['model']['createRangeOn'](_0x1e7d54),_0x446869=new Set(),_0x729ad7=new Set();for(const _0x3e8d49 of _0x2204a1['getSuggestions']())if(('insertion'==_0x3e8d49['type']||'deletion'==_0x3e8d49['type']||'mergeTableCells'==_0x3e8d49['subType'])&&_0x3e8d49['isInContent']){for(const _0x357e9e of _0x3e8d49['getRanges']())_0x357e9e['containsRange'](_0x2c4cc3,!0x0)&&_0x446869['add'](_0x3e8d49['type']+':'+_0x3e8d49['author']['id']),_0x357e9e['containsRange'](_0x3fc48f,!0x0)&&_0x729ad7['add'](_0x3e8d49['type']+':'+_0x3e8d49['author']['id']);}if(_0x446869['size']!=_0x729ad7['size'])return!0x1;for(const _0x48b6ee of _0x446869)if(!_0x729ad7['has'](_0x48b6ee))return!0x1;return!0x0;}}class At extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0x361744=this['editor'];if(!_0x361744['plugins']['has']('TableEditing'))return;const _0x4c9cf7=_0x361744['locale'],_0x4e17db=_0x361744['plugins']['get']('TrackChangesEditing');_0x4e17db['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e17db['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e17db['registerBlockAttribute']('headingRows'),_0x4e17db['registerBlockAttribute']('headingColumns'),_0x4e17db['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c9cf7,'FORMAT_HEADER_ROW')),_0x4e17db['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c9cf7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30a6d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30118a=this['editor']['plugins']['get']('TableUtils'),_0x43171d=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2412b1({showActiveMarker:_0x579efe=!0x0,setDataAttribute:_0x469004=!0x0}={}){return(_0x7722a3,_0x3a6f13,_0x4e3e5d)=>{const {type:_0x27070a,id:_0x270b9d}=_0x30a6d5['_splitMarkerName'](_0x3a6f13['markerName']),_0xb8cf17=_0x30a6d5['getSuggestion'](_0x270b9d),_0xb1cabf=_0xb8cf17['data'];if('formatBlock'!=_0xb8cf17['type']||!_0xb1cabf||'setTableColumnHeader'!=_0xb1cabf['commandName'])return;if(_0x3a6f13['item'])return void _0x7722a3['stop']();if(!_0x4e3e5d['consumable']['consume'](_0x3a6f13['markerRange'],_0x7722a3['name']))return;const _0x128be7=_0x3a6f13['markerRange']['start']['nodeAfter'],_0x1de884=_0x3a6f13['markerRange']['end']['nodeBefore'],_0x1dd9d9=_0x128be7['parent']['parent'],{column:_0x1feda3}=_0x30118a['getCellLocation'](_0x128be7),{column:_0x3fd4ba}=_0x30118a['getCellLocation'](_0x1de884);for(let _0x4d43f0=_0x1feda3;_0x4d43f0<=_0x3fd4ba;_0x4d43f0++){const _0x49dfd6=_0x30118a['createTableWalker'](_0x1dd9d9,{'column':_0x4d43f0,'includeAllSlots':!0x1});for(const _0x46084f of _0x49dfd6){const _0xdf6645=_0x46084f['cell'],_0xdb3677=_0x4e3e5d['mapper']['toViewElement'](_0xdf6645);_0x4e3e5d['writer']['addClass']('ck-suggestion-marker-'+_0x27070a,_0xdb3677),_0x469004&&_0x4e3e5d['writer']['setAttribute']('data-suggestion',_0x270b9d,_0xdb3677),_0x4e3e5d['mapper']['bindElementToMarker'](_0xdb3677,_0x3a6f13['markerName']),_0x579efe&&(_0x30a6d5['activeMarkers']['includes'](_0x3a6f13['markerName'])?_0x4e3e5d['writer']['addClass']('ck-suggestion-marker--active',_0xdb3677):_0x4e3e5d['writer']['removeClass']('ck-suggestion-marker--active',_0xdb3677));}}};}_0x30a6d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x43171d),_0x30a6d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x43171d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2412b1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xcb0109,_0x449bf9,_0x15dbdf)=>{_0x15dbdf['options']['showSuggestionHighlights']&&_0x2412b1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xcb0109,_0x449bf9,_0x15dbdf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2cc41a,_0x418796,_0x440cbd)=>{const {type:_0x2972d8,id:_0xac8560}=_0x30a6d5['_splitMarkerName'](_0x418796['markerName']),_0x16b500=_0x30a6d5['getSuggestion'](_0xac8560),_0x295f6d=_0x16b500['data'];if('formatBlock'!=_0x16b500['type']||!_0x295f6d||'setTableColumnHeader'!=_0x295f6d['commandName'])return;const _0x2bb939=_0x440cbd['mapper']['markerNameToElements'](_0x418796['markerName']);if(_0x2bb939){for(const _0x47e525 of _0x2bb939)_0x440cbd['writer']['removeClass']('ck-suggestion-marker-'+_0x2972d8,_0x47e525),_0x440cbd['writer']['removeClass']('ck-suggestion-marker--active',_0x47e525),_0x440cbd['writer']['removeAttribute']('data-suggestion',_0x47e525),_0x440cbd['mapper']['unbindElementFromMarkerName'](_0x47e525,_0x418796['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5afe8e=this['editor'],_0x2e8c87=_0x5afe8e['locale'];function _0x20e63a(_0x5ca216){return{'type':'format','content':o(_0x2e8c87,'*Format:*\x20%0',_0x5ca216)};}_0x5afe8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42bda4=>{if('formatBlock'!=_0x42bda4['type'])return;const {data:_0x24fea7}=_0x42bda4;if(_0x24fea7){if('setTableRowHeader'==_0x24fea7['commandName']){const _0x366937=_0x24fea7['commandParams'][0x0]['forceValue'];return _0x20e63a(o(_0x2e8c87,_0x366937?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x24fea7['commandName']){const _0x872919=_0x24fea7['commandParams'][0x0]['forceValue'];return _0x20e63a(o(_0x2e8c87,_0x872919?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x41b091=>[_0x41b091,null]));class It extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0x4480ac=this['editor'];if(!_0x4480ac['plugins']['has']('TableClipboard'))return;const _0x2c004b=_0x4480ac['plugins']['get']('TrackChangesEditing'),_0x42879f=_0x4480ac['plugins']['get']('TableUtils'),_0x1fb1b4=_0x4480ac['plugins']['get'](jt),_0x369395=_0x4480ac['plugins']['get']('TableClipboard');_0x1fb1b4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4480ac['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4480ac['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3fbc6d=null;_0x4480ac['model']['on']('insertContent',(_0x5d8755,_0x21934e)=>{const [_0x4e86e6,_0x5e5e58]=_0x21934e,_0x1971b5=_0x21934e[_0x21934e['length']-0x1];_0x1971b5&&_0x1971b5['forceDefaultExecution']||_0x2c004b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x539c99,_0x55a990,_0x342ee5,_0x270302,_0x3c0032){if(_0x55a990&&!_0x55a990['is']('documentSelection'))return!0x1;const _0x50e7c6=_0x3c0032['getTableIfOnlyTableInContent'](_0x539c99,_0x342ee5);if(!_0x50e7c6||!he(_0x50e7c6,void 0x0,_0x270302))return!0x1;const _0x309173=_0x270302['getSelectionAffectedTableCells'](_0x342ee5['document']['selection']);if(!_0x309173['length'])return!0x1;const _0x2ea457=_0x309173[0x0]['findAncestor']('table'),_0x26ee34=_0x270302['getRowIndexes'](_0x309173),_0x593b66=_0x270302['getColumnIndexes'](_0x309173),_0x388e1f={'startRow':_0x26ee34['first'],'endRow':_0x26ee34['last'],'startColumn':_0x593b66['first'],'endColumn':_0x593b66['last']};return 0x1==_0x309173['length']&&(_0x388e1f['endRow']+=_0x270302['getRows'](_0x50e7c6)-0x1,_0x388e1f['endColumn']+=_0x270302['getColumns'](_0x50e7c6)-0x1),he(_0x2ea457,_0x388e1f,_0x270302);}(_0x4e86e6,_0x5e5e58,_0x4480ac['model'],_0x42879f,_0x369395)&&(_0x5d8755['stop'](),_0x3fbc6d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4480ac['model']['change'](()=>{_0x4480ac['model']['insertContent'](_0x21934e[0x0],_0x21934e[0x1],_0x21934e[0x2],{'forceDefaultExecution':!0x0});const _0x13906a=_0x3dae9a(),{rowInsertionRanges:_0x1b7a8d,columnInsertionRanges:_0x4a4ca3,insertionRanges:_0x37bcbf,deletionRanges:_0x66ce3d,cells:_0x46ad2e}=_0x3fbc6d;_0x1b7a8d['length']&&_0x2c004b['markMultiRangeInsertion'](_0x1b7a8d,'tablePasteRow',{'tablePasteChainId':_0x13906a}),_0x4a4ca3['length']&&_0x2c004b['markMultiRangeInsertion'](_0x4a4ca3,'tablePasteColumn',{'tablePasteChainId':_0x13906a}),_0x37bcbf['length']&&(_0x2c004b['markMultiRangeInsertion'](_0x37bcbf,'tablePaste',{'tablePasteChainId':_0x13906a,'skipNestingCheck':!0x0}),_0x37bcbf['forEach'](_0x572751=>_0x572751['detach']?.())),_0x66ce3d['length']&&(_0x2c004b['markMultiRangeDeletion'](_0x66ce3d,'tablePaste',{'tablePasteChainId':_0x13906a,'skipNestingCheck':!0x0}),_0x66ce3d['forEach'](_0x553d72=>_0x553d72['detach']?.()));const _0x1c0638=_0x2c004b['markMultiRangeBlockFormat'](_0x46ad2e['map'](({element:_0x470b43})=>_0x470b43),{'formatGroupId':_0x3dae9a()},[],'tablePasteCell',{'tablePasteChainId':_0x13906a});if(_0x1c0638){const _0x14ed23=_0x1c0638['getMarkers'](),_0x1d2260=[];for(const {element:_0x26d498,attributes:_0x7096c}of _0x46ad2e){if(!_0x7096c)continue;const _0x4e925a=_0x4480ac['model']['createRangeOn'](_0x26d498),_0x21496e=_0x14ed23['find'](_0x24c45e=>_0x24c45e['getRange']()['isEqual'](_0x4e925a));_0x21496e&&_0x1d2260['push']([_0x21496e['name'],_0x7096c]);}_0x1d2260['length']&&_0x1c0638['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d2260));}_0x3fbc6d=null;}));},{'priority':_0x3ca1ca['high']+0xa}),_0x4480ac['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x121e8e,_0x400fb2)=>{const [_0x2253a6,_0x2f6e39,,_0x19d0ad]=_0x400fb2;if(!_0x3fbc6d)return;_0x121e8e['stop']();const _0x1657fc=_0x2253a6['cell'],_0x10a219=_0x2f6e39,_0x4f77e3=Pe(_0x1657fc),_0x306632=Pe(_0x10a219);_0x121e8e['return']=_0x1657fc;let _0x28b15f=null,_0xc48dcb=null;if(_0x306632||_0x4f77e3){if(_0x4f77e3&&!_0x306632){_0x19d0ad['remove'](_0x1657fc['getChild'](0x0));for(const _0x464397 of Array['from'](_0x10a219['getChildren']()))_0x19d0ad['insert'](_0x464397,_0x1657fc,'end');const _0x28ff1c=_0x3fbc6d['rowInsertionIndexes']['includes'](_0x2253a6['row']),_0x406aae=_0x3fbc6d['columnInsertionIndexes']['includes'](_0x2253a6['column']);_0x28ff1c||_0x406aae||(_0x28b15f=_0x828bf8['fromRange'](_0x19d0ad['createRangeIn'](_0x1657fc)));}else _0x306632&&!_0x4f77e3&&(_0xc48dcb=_0x19d0ad['createRangeIn'](_0x1657fc));}else{const _0x4e34ce=_0x19d0ad['createElement']('tableCellSuggestion'),_0x55f328=_0x19d0ad['createElement']('tableCellSuggestion');_0x19d0ad['wrap'](_0x19d0ad['createRangeIn'](_0x1657fc),_0x55f328),_0x19d0ad['insert'](_0x4e34ce,_0x1657fc,0x0);for(const _0x35c2c2 of Array['from'](_0x10a219['getChildren']()))_0x19d0ad['insert'](_0x35c2c2,_0x4e34ce,'end');_0x28b15f=_0x828bf8['fromRange'](_0x19d0ad['createRangeOn'](_0x4e34ce)),_0xc48dcb=_0x828bf8['fromRange'](_0x19d0ad['createRangeOn'](_0x55f328));}const _0x23208e=Array['from'](_0x10a219['getAttributes']())['filter'](([_0x446f6d])=>ge['includes'](_0x446f6d));_0x3fbc6d['cells']['push']({'element':_0x1657fc,'attributes':_0x23208e['length']?Object['fromEntries'](_0x23208e):null}),_0x28b15f&&_0x3fbc6d['insertionRanges']['push'](_0x28b15f),_0xc48dcb&&_0x3fbc6d['deletionRanges']['push'](_0xc48dcb);},{'priority':'high'}),_0x42879f['on']('insertColumns',(_0x4bc39d,_0x47b938)=>{const [_0x36fe7c,_0x284d53={}]=_0x47b938;if(!_0x3fbc6d)return;const _0x48eb54=_0x284d53['at']||0x0,_0x1c6054=_0x284d53['columns']||0x1;_0x3fbc6d['columnInsertionIndexes']=new Array(_0x1c6054)['fill'](_0x48eb54)['map']((_0x155968,_0x48b1d7)=>_0x155968+_0x48b1d7);for(const {cell:_0x14f4c9}of _0x42879f['createTableWalker'](_0x36fe7c,{'startColumn':_0x48eb54,'endColumn':_0x48eb54+_0x1c6054-0x1}))_0x3fbc6d['columnInsertionRanges']['push'](_0x4480ac['model']['createRangeOn'](_0x14f4c9));},{'priority':'low'}),_0x42879f['on']('insertRows',(_0x1d858c,_0x3dfe00)=>{const [_0x3ab495,_0x1d018b={}]=_0x3dfe00;if(!_0x3fbc6d)return;const _0x3d8db6=_0x1d018b['at']||0x0,_0x437263=_0x1d018b['rows']||0x1;_0x3fbc6d['rowInsertionIndexes']=new Array(_0x437263)['fill'](_0x3d8db6)['map']((_0x1050a2,_0x43d4c5)=>_0x1050a2+_0x43d4c5);for(const {cell:_0x13a809}of _0x42879f['createTableWalker'](_0x3ab495,{'startRow':_0x3d8db6,'endRow':_0x3d8db6+_0x437263-0x1}))_0x3fbc6d['rowInsertionRanges']['push'](_0x4480ac['model']['createRangeOn'](_0x13a809));},{'priority':'low'}),_0x2c004b['descriptionFactory']['registerDescriptionCallback'](_0x1dd122=>{if(_0x1dd122['subType']&&_0x1dd122['subType']['startsWith']('tablePaste'))return _0x1dd122['previous']?{}:{'type':'insertion','content':o(_0x4480ac['locale'],'*Replace\x20table\x20cells*')};});const _0x536113=()=>!0x1;for(const _0x2ecc39 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c004b['_suggestionFactory']['registerCustomCallback']('insertion',_0x2ecc39,'join',_0x536113),_0x2c004b['_suggestionFactory']['registerCustomCallback']('deletion',_0x2ecc39,'join',_0x536113),_0x2c004b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ecc39,'join',_0x536113);_0x2c004b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x536113),_0x2c004b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x25e398,_0x126381,_0x4421c9)=>{const _0x2b9fcf=_0x25e398['map'](_0x4a72bc=>_0x4a72bc['getContainedElement']())['filter'](_0x4b596f=>_0x4b596f),_0x900831=new Map(_0x2b9fcf['map'](_0x1101d1=>[_0x1101d1,null]));if(_0x3fbc6d){for(const {element:_0xd6f1a,attributes:_0x239a02}of _0x3fbc6d['cells'])_0x239a02&&_0x900831['set'](_0xd6f1a,_0x239a02);}else{if(_0x4421c9&&_0x4421c9['markerAttributes'])for(const [_0x437979,_0x4bb538]of Object['entries'](_0x4421c9['markerAttributes'])){const _0x10d84e=_0x4480ac['model']['markers']['get'](_0x437979),_0x6dbd19=_0x10d84e?_0x10d84e['getRange']()['getContainedElement']():null;_0x6dbd19&&_0x900831['set'](_0x6dbd19,_0x4bb538);}}_0x4480ac['model']['change'](_0x554899=>{for(const [_0x4002b6,_0x2aa176]of _0x900831)_0x554899['setAttributes']({...Ce,..._0x2aa176},_0x4002b6);});});const _0x5d2384=(_0x43e1a7,_0x529fa8)=>{_0x2c004b['_suggestionFactory']['registerCustomCallback'](_0x43e1a7,'tablePaste',_0x529fa8,(_0x512c97,_0x44f9aa,_0x4bf6c9)=>{_0x4480ac['model']['change'](_0x221496=>{const _0x15586b=[];for(const _0x50bd2c of _0x512c97){const _0x18d06c=_0x50bd2c['start']['nodeAfter'];_0x18d06c['is']('element','tableCellSuggestion')&&_0x15586b['push'](_0x18d06c);}_0x2c004b['_suggestionFactory']['getSuggestionCallback'](_0x43e1a7,null,_0x529fa8)(_0x512c97,_0x44f9aa,_0x4bf6c9);for(const _0x12464f of _0x15586b)'$graveyard'!=_0x12464f['root']['rootName']&&_0x221496['unwrap'](_0x12464f);});});};_0x5d2384('insertion','accept'),_0x5d2384('insertion','discard'),_0x5d2384('deletion','accept'),_0x5d2384('deletion','discard'),_0x2c004b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37115a=>{const _0x2a3e92=_0x37115a['map'](_0x113540=>_0x113540['getContainedElement']()),_0x7d4d63=_0x2a3e92[0x0]['findAncestor']('table'),{minRow:_0x353722,maxRow:_0x42265a}=_0x1fb1b4['_getCoordsForCells'](_0x2a3e92);_0x42879f['removeRows'](_0x7d4d63,{'at':_0x353722,'rows':_0x42265a-_0x353722+0x1});}),_0x2c004b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x482cf2=>{const _0x5c9df1=_0x482cf2['map'](_0x22fa9e=>_0x22fa9e['getContainedElement']()),_0x4480cc=_0x5c9df1[0x0]['findAncestor']('table'),{minColumn:_0x5d4cbb,maxColumn:_0x21edbb}=_0x1fb1b4['_getCoordsForCells'](_0x5c9df1);_0x42879f['removeColumns'](_0x4480cc,{'at':_0x5d4cbb,'columns':_0x21edbb-_0x5d4cbb+0x1});});const _0x5c1ea9=(_0x4a88db,_0x670bac)=>{if(!_0x670bac['subType']||!_0x670bac['subType']['startsWith']('tablePaste'))return;const _0x758bb2=_0x670bac['attributes']['tablePasteChainId'],_0x4f3f60=_0x2c004b['getSuggestions']()['filter'](_0x32b88b=>_0x32b88b['isInContent']&&_0x32b88b['attributes']&&_0x32b88b['attributes']['tablePasteChainId']==_0x758bb2);_0x4f3f60['length']&&_0x670bac['getAllAdjacentSuggestions']()['length']!=_0x4f3f60['length']&&_0x4f3f60['reduce']((_0x1eb302,_0x5c066f)=>(_0x1eb302['next']=_0x5c066f,_0x5c066f['previous']=_0x1eb302,_0x5c066f));};function _0x2ea29c(_0x4f3045,_0x438fcc=!0x0){const {id:_0x31a580}=_0x2c004b['_splitMarkerName'](_0x4f3045['markerName']),_0x4d9121=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e1650=_0x2c004b['activeMarkers']['includes'](_0x4f3045['markerName']);return _0x2e1650&&_0x4d9121['push']('ck-suggestion-marker--active'),{'classes':_0x4d9121,'attributes':{'data-suggestion':_0x31a580},'priority':_0x2e1650&&_0x438fcc?0xbc2:0xbb8};}_0x2c004b['on']('suggestionLoaded',_0x5c1ea9,{'priority':'high'}),_0x2c004b['on']('suggestionUnloaded',_0x5c1ea9,{'priority':'high'}),_0x4480ac['model']['document']['registerPostFixer'](()=>{let _0x46ad66=!0x1;const _0x289d57=Array['from'](_0x4480ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56a53c,data:_0xbb2f6d}of _0x289d57){const {group:_0x21690b,type:_0x49a330,id:_0x15e07b}=_0x2c004b['_splitMarkerName'](_0x56a53c);if('suggestion'!=_0x21690b||'deletion'!=_0x49a330||_0xbb2f6d['oldRange'])continue;if(!_0x2c004b['hasSuggestion'](_0x15e07b))continue;const _0x5ce9c3=_0x2c004b['getSuggestion'](_0x15e07b)['getRanges'](),_0x328cbd=_0x4480ac['plugins']['get']('Users')['me'];for(const _0x20e329 of _0x2c004b['getSuggestions']()){if(!_0x20e329['isInContent']||_0x20e329['author']!=_0x328cbd)continue;if('formatBlock'!=_0x20e329['type']||'tablePasteCell'!=_0x20e329['subType'])continue;if(_0x20e329['getRanges']()['every'](_0x2dd6c2=>_0x5ce9c3['some'](_0x288dcc=>_0x288dcc['containsRange'](_0x2dd6c2,!0x0)))){for(const _0x2d91fa of _0x20e329['getAllAdjacentSuggestions']())_0x2d91fa['isInContent']&&(_0x2d91fa['discard'](),_0x46ad66=!0x0);}}}return _0x46ad66;}),_0x4480ac['model']['document']['registerPostFixer'](_0x4c0acf=>{const _0x11973a=_0x4480ac['commands']['get']('redo');if(!_0x11973a||!_0x11973a['_createdBatches']['has'](_0x4c0acf['batch']))return!0x1;let _0x221d12=!0x1;const _0x3938b6=_0x4480ac['plugins']['get']('Users')['me'],_0x5d0e56=_0x4480ac['model']['document']['differ']['getChanges'](),_0x568820=Array['from'](_0x4480ac['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e1351,data:_0x1ee04e})=>{const {group:_0x4b8fa4,subType:_0x4f8533,authorId:_0x28e805}=_0x2c004b['_splitMarkerName'](_0x1e1351);return'suggestion'==_0x4b8fa4&&'tablePaste'==_0x4f8533&&_0x28e805==_0x3938b6['id']&&!_0x1ee04e['oldRange'];});for(const _0x252048 of _0x5d0e56){if('insert'!=_0x252048['type']||'tableCellSuggestion'!=_0x252048['name']||0x1!=_0x252048['length'])continue;const _0x474a21=_0x4c0acf['createRange'](_0x252048['position'],_0x252048['position']['getShiftedBy'](0x1));if(!_0x568820['find'](({data:_0x2c0a57})=>_0x2c0a57['newRange']['isEqual'](_0x474a21))){for(const {name:_0x51f753,data:_0x485f46}of _0x568820)if(_0x474a21['containsRange'](_0x485f46['newRange'])){_0x4c0acf['updateMarker'](_0x51f753,{'range':_0x474a21}),_0x221d12=!0x0;break;}}}return _0x221d12;}),_0x4480ac['model']['document']['registerPostFixer'](_0x1faf08=>{let _0x4ce517=!0x1;const _0x40e238=_0x4480ac['plugins']['get']('Users')['me'],_0x5c22df=_0x2c004b['getSuggestions']()['filter'](_0x1a9fe9=>_0x1a9fe9['isInContent']&&_0x1a9fe9['author']==_0x40e238),_0x55efb5=new Set(),_0x319ccc=new Set();for(const _0x36ba2f of _0x5c22df)if('tablePaste'==_0x36ba2f['subType'])for(const _0x3fd36a of _0x36ba2f['getMarkers']()){const _0x4dfcfb=_0x3fd36a['getRange']()['getContainedElement']();if(_0x4dfcfb){if(_0x4dfcfb['is']('element','tableCellSuggestion')&&Pe(_0x4dfcfb)){_0x36ba2f['removeMarker'](_0x3fd36a['name']),_0x55efb5['add'](_0x4dfcfb),_0x4ce517=!0x0;const _0x5c5921=_0x4dfcfb['nextSibling'],_0x21a2d7=_0x4dfcfb['previousSibling'],_0x3c7011=_0x5c5921&&_0x5c5921['is']('element','tableCellSuggestion'),_0x5161eb=_0x21a2d7&&_0x21a2d7['is']('element','tableCellSuggestion');_0x3c7011&&!_0x55efb5['has'](_0x5c5921)&&_0x319ccc['add'](_0x5c5921),_0x5161eb&&!_0x55efb5['has'](_0x21a2d7)&&_0x319ccc['add'](_0x21a2d7);}else _0x4dfcfb['is']('element','paragraph')&&_0x4dfcfb['isEmpty']&&(_0x36ba2f['removeMarker'](_0x3fd36a['name']),_0x4ce517=!0x0);}}else{if('tablePasteCell'==_0x36ba2f['subType']){if(!_0x36ba2f['attributes']||!_0x36ba2f['attributes']['tablePasteChainId'])continue;const _0x3fb6d2=_0x36ba2f['attributes']['markerAttributes'];if(_0x3fb6d2&&Object['keys'](_0x3fb6d2)['length'])continue;const _0xbeba82=_0x36ba2f['attributes']['tablePasteChainId'];let _0x4da54d=!0x0,_0x2cf6cc=!0x0;for(const _0x1ed9db of _0x5c22df)if(_0x1ed9db['subType']&&_0x1ed9db['subType']['startsWith']('tablePaste')){if(!_0x1ed9db['attributes']['tablePasteChainId']){_0x2cf6cc=!0x1;break;}if(_0x1ed9db['id']!=_0x36ba2f['id']&&_0x1ed9db['attributes']['tablePasteChainId']==_0xbeba82){_0x4da54d=!0x1;break;}}_0x2cf6cc&&_0x4da54d&&(_0x36ba2f['removeMarkers'](),_0x4ce517=!0x0);}}for(const _0xd76db5 of _0x55efb5)_0x1faf08['remove'](_0xd76db5);for(const _0x533e8f of _0x319ccc)_0x1faf08['unwrap'](_0x533e8f);return _0x4ce517;}),_0x4480ac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1071fd,_0x494a23)=>_0x2ea29c(_0x1071fd),'converterPriority':'high'}),_0x4480ac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28d8d,_0x3957c6)=>_0x3957c6['options']['showSuggestionHighlights']?_0x2ea29c(_0x28d8d,!0x1):null,'converterPriority':'high'});const _0x5aca45=_0x4480ac['editing']['view'];this['listenTo'](_0x5aca45['document'],'clipboardOutput',(_0x54d424,_0xd7a690)=>{const _0x5156ec=[];for(const _0x31c8d6 of _0x5aca45['createRangeIn'](_0xd7a690['content'])['getItems']())_0x31c8d6['is']('element','suggestion-td')&&_0x5156ec['push'](_0x31c8d6);_0x5aca45['change'](_0x5ed560=>{for(const _0x4e3c22 of _0x5156ec)_0x5ed560['move'](_0x5ed560['createRangeIn'](_0x4e3c22),_0x5ed560['createPositionBefore'](_0x4e3c22)),_0x5ed560['remove'](_0x4e3c22);});});}}function Pe(_0x422db7){if(_0x422db7['isEmpty'])return!0x0;const _0x211f6b=_0x422db7['getChild'](0x0);return _0x211f6b['is']('element','paragraph')&&_0x211f6b['isEmpty'];}function he(_0x218f23,_0x25aa19={},_0x3a59e8){for(const {isAnchor:_0x341fb9,cellHeight:_0x175f0a,cellWidth:_0x498fb2}of _0x3a59e8['createTableWalker'](_0x218f23,{'includeAllSlots':!0x0,..._0x25aa19}))if(!_0x341fb9||0x1!=_0x175f0a||0x1!=_0x498fb2)return!0x1;return!0x0;}class vt extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x29398b=this['editor']['plugins']['get']('TrackChangesEditing');_0x29398b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x29398b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x29398b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29398b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x29398b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x29398b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5bb8cd,_0x1d2450){const _0x54d735=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255f60=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16ecf8=_0x1d2450['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xedb840=_0x255f60['getColumnGroupElement'](_0x16ecf8);let _0xfb9ed3=_0xedb840?_0x255f60['getTableColumnsWidths'](_0xedb840):null,_0x2d6c81=_0x16ecf8['getAttribute']('tableWidth')||null;const _0x3d1ea5=_0x1d2450['tableWidth']||_0x2d6c81,_0x41f78f=_0x1d2450['columnWidths']||_0xfb9ed3,_0xf65193=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ee54c of _0x54d735['getSuggestions']()){const _0x15dcb4=_0x3ee54c['getContainedElement']();if('resizeTable'===_0x3ee54c['subType']&&_0x15dcb4===_0x16ecf8){_0x3ee54c['author']!==_0xf65193&&_0x3ee54c['discard']();const _0x4ff255=_0x3ee54c['data']['commandParams'];_0x2d6c81=_0x4ff255[0x0]['tableWidth'],_0xfb9ed3=_0x4ff255[0x0]['columnWidths'];break;}}_0x5bb8cd({'table':_0x16ecf8,'tableWidth':_0x3d1ea5,'columnWidths':_0x41f78f}),_0x54d735['markBlockFormat'](_0x16ecf8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d6c81,'columnWidths':_0xfb9ed3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4585df){if('formatBlock'!=_0x4585df['type']&&'formatInline'!=_0x4585df['type'])return;const {data:_0x1ba9c1}=_0x4585df;if(_0x1ba9c1&&'resizeTable'===_0x1ba9c1['formatGroupId']){const _0x4f9b4a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4f9b4a)};}}}class Ct extends _0x4f5a27{['afterInit'](){const _0x42df9b=this['editor'];_0x42df9b['plugins']['has']('Template')&&_0x42df9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4f5a27{['afterInit'](){const _0xd13a9b=this['editor'];if(!_0xd13a9b['commands']['get']('insertTableOfContents'))return;_0xd13a9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28d1ca=_0xd13a9b['plugins']['get']('TrackChangesEditing'),_0x30d39a=_0xd13a9b['locale'];_0x28d1ca['descriptionFactory']['registerElementLabel']('tableOfContents',_0x9bb887=>o(_0x30d39a,'ELEMENT_TABLE_OF_CONTENTS',_0x9bb887));}}class Dt extends _0x4f5a27{['afterInit'](){const _0x29c34c=this['editor'];if(!_0x29c34c['plugins']['has']('Title'))return;const _0x543d1a=_0x29c34c['plugins']['get']('TrackChangesEditing');_0x543d1a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x29c34c['locale'],'ELEMENT_TITLE')),_0x29c34c['model']['document']['registerPostFixer'](_0x2bcb42=>{let _0x1e70c6=!0x1;const _0x706ee0=Array['from'](_0x29c34c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fe8c7,data:_0x3b7dae}of _0x706ee0){const {group:_0x39b100}=_0x543d1a['_splitMarkerName'](_0x2fe8c7);if('suggestion'!==_0x39b100||!_0x3b7dae['newRange'])continue;const _0x5cfc47=_0x3b7dae['newRange'],_0x1b8fdc=_0x5cfc47['end']['nodeBefore'];if(!_0x1b8fdc||!_0x1b8fdc['is']('element','title-content'))continue;if(!_0x5cfc47['start']['isTouching'](_0x5cfc47['end']))continue;const _0x380b47=_0x29c34c['model']['schema']['getNearestSelectionRange'](_0x5cfc47['end'],'forward');if(_0x380b47&&_0x380b47['isCollapsed']){const _0x4a8d83=_0x2bcb42['createRange'](_0x5cfc47['start'],_0x380b47['start']);_0x4a8d83['isEqual'](_0x5cfc47)||(_0x2bcb42['updateMarker'](_0x2fe8c7,{'range':_0x4a8d83}),_0x1e70c6=!0x0);}_0x1e70c6||(_0x2bcb42['removeMarker'](_0x2fe8c7),_0x1e70c6=!0x0);}return _0x1e70c6;});}}class Nt extends _0x4f5a27{['afterInit'](){const _0x33148a=this['editor'],_0x5e32fc=_0x33148a['plugins']['get']('TrackChangesEditing');_0x33148a['plugins']['has']('UndoEditing')&&(_0x5e32fc['enableCommand']('undo'),_0x5e32fc['enableCommand']('redo'));}}class Mt extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0xe00d3=this['editor'];if(!_0xe00d3['plugins']['has']('TableCaptionEditing'))return;_0xe00d3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4f5a27{['tableProperties'];['tableCellProperties'];constructor(_0x435319){super(_0x435319),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 _0x31cc0f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2bed4a of this['tableProperties'])_0x31cc0f['enableCommand'](_0x2bed4a,(_0x4f78be,_0x324678)=>{const _0x171016=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2bed4a,[_0x171016],this['tableProperties'],'tableProperties',_0x4f78be,_0x324678);});_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x31cc0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d03b1,_0x47310f)=>this['handleDiscardAction'](this['tableProperties'],_0x2d03b1,_0x47310f)),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8236f9 of this['tableCellProperties'])_0x31cc0f['enableCommand'](_0x8236f9,(_0x2ca8de,_0x250031)=>{const _0x42001c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8236f9,_0x42001c,this['tableCellProperties'],'tableCellProperties',_0x2ca8de,_0x250031);});_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x31cc0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x153e05,_0x3cd827)=>this['handleDiscardAction'](this['tableCellProperties'],_0x153e05,_0x3cd827)),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x31cc0f['descriptionFactory']['registerDescriptionCallback'](_0x50f133=>this['handleSuggestionDescription'](_0x50f133));}['_handlePropertyChange'](_0x232fea,_0x257fd1,_0x4a476d,_0x54c9d1,_0x5e7d96,_0x50ad7e){const _0x302c01=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x50ad7e['batch'],()=>{for(const _0x592582 of _0x257fd1){if(this['_getSuggestion'](_0x592582,_0x54c9d1))_0x5e7d96(_0x50ad7e);else{const _0x148a90={};for(const _0x5b3c12 of _0x4a476d){const _0x2263a7=_0x592582['getAttribute'](_0x5b3c12);void 0x0!==_0x2263a7&&(_0x148a90[_0x5b3c12]=_0x2263a7);}_0x5e7d96(_0x50ad7e),_0x302c01['markBlockFormat'](_0x592582,{'commandParams':[_0x148a90]},[],_0x54c9d1);}}});}['handleDiscardAction'](_0x5288ef,_0x44027e,_0x102596){const _0x2407ff=_0x44027e[0x0]['start']['nodeAfter'],_0x166c00=_0x102596['commandParams'][0x0];this['editor']['model']['change'](_0x10d2d8=>{for(const _0x2b2443 of _0x5288ef)void 0x0!==_0x166c00[_0x2b2443]?_0x10d2d8['setAttribute'](_0x2b2443,_0x166c00[_0x2b2443],_0x2407ff):_0x10d2d8['removeAttribute'](_0x2b2443,_0x2407ff);});}['handleSuggestionDescription'](_0x1f79fa){if(_0x1f79fa['data'])switch(_0x1f79fa['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'](_0xedc8b9,_0x3aade2){const _0x896b40=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x177d59 of _0x896b40['getSuggestions']({'skipNotAttached':!0x0})){const _0x32dcb4=_0x177d59['getContainedElement']();if(_0x177d59['subType']===_0x3aade2&&_0x32dcb4===_0xedc8b9)return _0x177d59;}return null;}}const m='$elementName';class p extends _0x4f5a27{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5aeff2,_0x50a4a7,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(_0x5eda90){function _0x5bb058(_0x1c07fc){return _0x1c07fc['map'](_0x1887e3=>String['fromCharCode'](_0x1887e3))['join']('');}super(_0x5eda90),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1658d5,_0x2d26cc,_0x1f3362,_0x45db44)=>{this['_model']['change'](()=>{for(const _0x173c05 of[..._0x45db44,..._0x1f3362])this['_model']['markers']['has'](_0x173c05)&&_0x5eda90['editing']['reconvertMarker'](_0x173c05);});}),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']=_0x5eda90['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(),_0x5eda90['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5eda90['config']['get']('trackChanges.trackFormatChanges'),_0x5eda90['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5eda90['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5eda90,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5bb058([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5bb058([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x34]);}['init'](){const _0x11f0d6=this['editor'],_0x551693=(_0x30d682,_0x1a7509)=>{if('attribute'!=_0x30d682)return'ck-suggestion-marker-'+_0x30d682;const _0x1a0415=_0x1a7509['split']('|')[0x0];return this['_isBlockAttribute'](_0x1a0415)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x11f0d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x14118f=>{const {id:_0x2d3d23,type:_0x2b581e,subType:_0xd0af7f}=this['_splitMarkerName'](_0x14118f['markerName']),_0x9bc57e=['ck-suggestion-marker',_0x551693(_0x2b581e,_0xd0af7f)];let _0x5388c0=0xbb8;return this['activeMarkers']['includes'](_0x14118f['markerName'])&&(_0x9bc57e['push']('ck-suggestion-marker--active'),_0x5388c0=0xbc2),'deletion'==_0x2b581e&&(_0x5388c0+=0x5),{'classes':_0x9bc57e,'attributes':{'data-suggestion':_0x2d3d23},'priority':_0x5388c0};}}),_0x11f0d6['conversion']['for']('dataDowncast')['add'](_0x1a5b28=>{_0x1a5b28['on']('addMarker:suggestion',(_0x40690d,_0x452f30,_0x34416c)=>{if(!_0x34416c['options']['showSuggestionHighlights'])return;const _0x4f3a72=_0x452f30['item'];if(!_0x4f3a72)return;const _0x1f127f=_0x34416c['mapper']['toViewElement'](_0x4f3a72);_0x11f0d6['model']['schema']['isObject'](_0x4f3a72)&&_0x1f127f&&!_0x1f127f['getCustomProperty']('widget')&&_0x1f127f['is']('containerElement')&&_0x38640c(_0x1f127f,_0x34416c['writer']);},{'priority':'high'});}),_0x11f0d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd3b19a,_0x587827)=>{if(!_0x587827['options']['showSuggestionHighlights'])return null;const {type:_0x4bb3ea,subType:_0x1752ae}=this['_splitMarkerName'](_0xd3b19a['markerName']);return{'classes':['ck-suggestion-marker',_0x551693(_0x4bb3ea,_0x1752ae)],'priority':0xbb8};}});const _0x2f35ab=({showActiveMarkers:_0x267a9a=!0x0,isAttributeSuggestion:_0x13ac71=!0x1}={})=>(_0x3ed8ec,_0x1d69fa,_0x5b8e41)=>{if(!_0x1d69fa['item'])return;const {id:_0x199f60}=this['_splitMarkerName'](_0x1d69fa['markerName']);if(_0x13ac71){const _0x5c62d2=this['_suggestions']['get'](_0x199f60),_0x380e76=this['_getAttributeKey'](_0x5c62d2);if(!this['_isBlockAttribute'](_0x380e76))return;}if(_0x1d69fa['item']['is']('selection'))return void _0x5b8e41['consumable']['consume'](_0x1d69fa['item'],_0x3ed8ec['name']);const _0xc201e1=_0x5b8e41['mapper']['toViewElement'](_0x1d69fa['item']);if(_0x1d69fa['item']['is']('element')&&_0x11f0d6['model']['schema']['isBlock'](_0x1d69fa['item'])&&!_0xc201e1['getCustomProperty']('addHighlight')){_0x5b8e41['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xc201e1),_0x5b8e41['writer']['setAttribute']('data-suggestion',_0x199f60,_0xc201e1),_0x5b8e41['mapper']['bindElementToMarker'](_0xc201e1,_0x1d69fa['markerName']),_0x267a9a&&(this['activeMarkers']['includes'](_0x1d69fa['markerName'])?_0x5b8e41['writer']['addClass']('ck-suggestion-marker--active',_0xc201e1):_0x5b8e41['writer']['removeClass']('ck-suggestion-marker--active',_0xc201e1));for(const _0x24d8e4 of _0x11f0d6['model']['createRangeIn'](_0x1d69fa['item'])['getItems']())_0x5b8e41['consumable']['consume'](_0x24d8e4,_0x3ed8ec['name']);_0x5b8e41['consumable']['consume'](_0x1d69fa['item'],_0x3ed8ec['name']);}};_0x11f0d6['conversion']['for']('dataDowncast')['add'](_0x57ddc=>{_0x57ddc['on']('addMarker:suggestion:formatBlock',(_0x32db12,_0x5a7a49,_0x40dffa)=>{_0x40dffa['options']['showSuggestionHighlights']&&_0x2f35ab({'showActiveMarkers':!0x1})(_0x32db12,_0x5a7a49,_0x40dffa);},{'priority':'highest'});}),_0x11f0d6['conversion']['for']('dataDowncast')['add'](_0x592dfe=>{_0x592dfe['on']('addMarker:suggestion:attribute',(_0x4ae6dd,_0x3d6873,_0x1a7bc5)=>{_0x1a7bc5['options']['showSuggestionHighlights']&&_0x2f35ab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4ae6dd,_0x3d6873,_0x1a7bc5);},{'priority':'highest'});}),_0x11f0d6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ef470,_0x2d9eff)=>_0x2d9eff['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4ef470['substr'](0xb)}}),_0x11f0d6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe8504b,{writer:_0xd97e3e})=>{let _0x689aa5='suggestion:'+_0xe8504b['getAttribute']('suggestion-type')+':'+_0xe8504b['getAttribute']('id');return _0xe8504b['getAttribute']('marker-count')&&(_0x689aa5+=':'+_0xe8504b['getAttribute']('marker-count')),_0xd97e3e['createElement']('$marker',{'data-name':_0x689aa5});}}),_0x11f0d6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x56a304=>{_0x56a304['on']('addMarker:suggestion:formatBlock',_0x2f35ab(),{'priority':'high'});}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x1b78b7=>{_0x1b78b7['on']('addMarker:suggestion:attribute',_0x2f35ab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x3f4d09=>{_0x3f4d09['on']('removeMarker:suggestion:formatBlock',(_0x2c97e5,_0x1367c4,_0x4deaf7)=>{const _0x59f72b=_0x4deaf7['mapper']['markerNameToElements'](_0x1367c4['markerName']);if(_0x59f72b){for(const _0x532670 of _0x59f72b)_0x532670['getCustomProperty']('addHighlight')||(_0x4deaf7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x532670),_0x4deaf7['writer']['removeAttribute']('data-suggestion',_0x532670),_0x4deaf7['mapper']['unbindElementFromMarkerName'](_0x532670,_0x1367c4['markerName']));}},{'priority':'high'});}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x2ae07e=>{_0x2ae07e['on']('removeMarker:suggestion:attribute',(_0x4f80b8,_0x48228d,_0x289471)=>{const _0xafe155=_0x289471['mapper']['markerNameToElements'](_0x48228d['markerName']);if(!_0xafe155)return;const {id:_0x1efe6e}=this['_splitMarkerName'](_0x48228d['markerName']),_0x4a87f1=this['_suggestions']['get'](_0x1efe6e),_0x32c8d8=this['_getAttributeKey'](_0x4a87f1);if(this['_isBlockAttribute'](_0x32c8d8)){for(const _0x4937ce of _0xafe155)_0x4937ce['getCustomProperty']('addHighlight')||(_0x289471['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4937ce),_0x289471['writer']['removeAttribute']('data-suggestion',_0x4937ce),_0x289471['mapper']['unbindElementFromMarkerName'](_0x4937ce,_0x48228d['markerName']));}},{'priority':'high'});}),_0x11f0d6['model']['document']['registerPostFixer'](_0x630ef7=>{let _0x2e32a6=!0x1;const _0x4527fb=Array['from'](_0x11f0d6['model']['document']['differ']['getChangedMarkers']()),_0x25d142=new Set();for(const {name:_0x4b0345,data:_0xe1896}of _0x4527fb){const {group:_0x20987a,type:_0x17912f,subType:_0xb9e96e,id:_0x415dce}=this['_splitMarkerName'](_0x4b0345);if('suggestion'!==_0x20987a)continue;const _0x235da0=this['_suggestions']['get'](_0x415dce);if(null!=_0xe1896['newRange']){'formatInline'==_0x17912f&&(_0x2e32a6=_0x2e32a6||Et(_0xe1896['newRange'],_0x4b0345,_0x630ef7,_0x11f0d6['model']['schema']));const _0x388cb3='attribute'==_0x17912f&&this['_isBlockAttribute'](_0xb9e96e['split']('|')[0x0]);if(_0xe1896['newRange']['isCollapsed']||'$graveyard'==_0xe1896['newRange']['root']['rootName']||'formatBlock'==_0x17912f&&!Ut(_0xe1896['newRange'])||_0x388cb3&&!Ut(_0xe1896['newRange'])||'deletion'==_0x17912f&&!(!Tt(_0x3ee243=_0xe1896['newRange'])&&!function(_0x2d547e){return _0x2d547e['start']['parent']==_0x2d547e['end']['nodeBefore']&&_0x2d547e['start']['isAtEnd'];}(_0x3ee243)))_0x630ef7['removeMarker'](_0x4b0345),_0x2e32a6=!0x0;else{if(!_0x235da0||!_0x235da0['isInContent'])continue;_0x25d142['add'](_0x235da0);}}}var _0x3ee243;return _0x25d142['size']>0x0&&(_0x2e32a6=!!this['_joinWithAdjacentSuggestions'](_0x25d142)||_0x2e32a6),_0x2e32a6;}),_0x11f0d6['model']['document']['registerPostFixer'](_0x99e49f=>{let _0xe64b86=!0x1;for(const _0x2a04d4 of _0x11f0d6['model']['document']['differ']['getChanges']())if('insert'==_0x2a04d4['type'])for(const _0x491c5f of this['_suggestions']['values']()){if(_0x491c5f['isMultiRange']||!_0x491c5f['isInContent'])continue;const _0x35ed75='formatBlock'==_0x491c5f['type'],_0x1d9637=this['_getAttributeKey'](_0x491c5f),_0x21dc3f=_0x1d9637&&this['_isBlockAttribute'](_0x1d9637);if(!_0x35ed75&&!_0x21dc3f)continue;const _0x15a7ac=_0x491c5f['getFirstRange']();if(_0x15a7ac['start']['parent']!=_0x15a7ac['end']['parent']&&!_0x15a7ac['end']['isAtEnd']){const _0x2a3792=_0x11f0d6['model']['createPositionAt'](_0x15a7ac['start']['nodeAfter'],'end'),_0x1a01d6=_0x11f0d6['model']['createRange'](_0x15a7ac['start'],_0x2a3792);_0x99e49f['updateMarker'](_0x491c5f['getFirstMarker'](),{'range':_0x1a01d6}),_0xe64b86=!0x0;}}return _0xe64b86;}),_0x11f0d6['model']['document']['registerPostFixer'](_0x17d4dd=>this['_processAttributeChanges'](_0x17d4dd)),_0x11f0d6['model']['document']['registerPostFixer'](_0x2c2ba1=>!_0x2c2ba1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2c2ba1)),_0x11f0d6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x11f0d6['model']['document']['on']('change:data',(_0x211413,_0x47bd66)=>{if(!_0x47bd66['isLocal']||_0x47bd66['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x359c49=_0x11f0d6['model']['document']['differ']['getChanges']();if(0x0==_0x359c49['length'])return;const _0x2c5dea=[],_0x2453c2=_0x359c49['filter'](_0x4f2137=>'attribute'==_0x4f2137['type']),_0x4a199c=_0x359c49['filter'](_0x532f66=>'insert'==_0x532f66['type']&&'$text'!=_0x532f66['name']);for(const _0x20d563 of _0x2453c2)this['_isRegisteredAttribute'](_0x20d563['attributeKey'])&&_0x2c5dea['push']({'key':_0x20d563['attributeKey'],'newValue':_0x20d563['attributeNewValue'],'oldValue':_0x20d563['attributeOldValue'],'range':Ot(_0x20d563['range'],_0x11f0d6['model'])});for(const _0x408514 of _0x4a199c){if('rename'!=_0x408514['action']&&'refresh'!=_0x408514['action'])continue;const _0x3d8360=Gt(_0x408514['position']['nodeAfter'],_0x11f0d6['model']),_0x5f1c10=_0x408514['before'];'rename'==_0x408514['action']&&_0x2c5dea['push']({'key':m,'newValue':_0x408514['name'],'oldValue':_0x5f1c10['name'],'range':_0x3d8360});for(const [_0x7e6983,_0x206ab4]of _0x5f1c10['attributes']){if(!this['_isRegisteredAttribute'](_0x7e6983))continue;const _0x577ca7=_0x408514['attributes']['get'](_0x7e6983);_0x206ab4!==_0x577ca7&&_0x2c5dea['push']({'key':_0x7e6983,'newValue':_0x577ca7,'oldValue':_0x206ab4,'range':_0x3d8360});}for(const [_0x3aadd8,_0x2022e8]of _0x408514['attributes'])this['_isRegisteredAttribute'](_0x3aadd8)&&(_0x5f1c10['attributes']['has'](_0x3aadd8)||_0x2c5dea['push']({'key':_0x3aadd8,'newValue':_0x2022e8,'oldValue':null,'range':_0x3d8360}));}0x0!=_0x2c5dea['length']&&_0x11f0d6['model']['enqueueChange'](_0x47bd66,_0xc4cd02=>{const _0x2daa6e=_0x3dae9a();for(const {range:_0x4849c2,key:_0x19110,oldValue:_0x2f7cfe,newValue:_0x39f3cb}of _0x2c5dea)this['markAttributeChange'](_0x4849c2,_0x19110,_0x2f7cfe,_0x39f3cb,{'groupId':_0x2daa6e});this['_reduceExistingSuggestions'](_0xc4cd02,_0x2c5dea);});},{'priority':'lowest'}),_0x11f0d6['model']['markers']['on']('update:suggestion',(_0xdbf930,_0x4320d9,_0x47bca0)=>{if(null==_0x47bca0){const {id:_0x21d793}=this['_splitMarkerName'](_0x4320d9['name']),_0x4d38a3=this['_suggestions']['get'](_0x21d793);_0x4d38a3&&_0x4d38a3['addMarkerName'](_0x4320d9['name']);}}),_0x11f0d6['model']['document']['on']('change:data',()=>{const _0xbc7331=Array['from'](_0x11f0d6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d0000=>'suggestion'===this['_splitMarkerName'](_0x2d0000['name'])['group']);if(0x0===_0xbc7331['length'])return;_0xbc7331['sort']((_0x48ef15,_0x36863b)=>{const _0x499a9f=_0x48ef15['data']['oldRange'],_0x31d7b1=_0x36863b['data']['oldRange'];return null===_0x499a9f&&null===_0x31d7b1?0x0:null===_0x499a9f&&null!==_0x31d7b1?-0x1:null!==_0x499a9f&&null===_0x31d7b1?0x1:_0x499a9f['start']['isBefore'](_0x31d7b1['start'])?-0x1:0x1;});const _0xfc7923=new Set(),_0x435286=new Set();for(const {name:_0x13e8e6,data:_0x153630}of _0xbc7331){const {id:_0x5c91f0}=this['_splitMarkerName'](_0x13e8e6);if(null===_0x153630['oldRange']){const _0x36dda8=this['_handleNewSuggestionMarker'](_0x13e8e6);_0x435286['add'](_0x36dda8);}else{const _0x4446c8=this['_suggestions']['get'](_0x5c91f0);null!==_0x153630['newRange']||_0x4446c8['isInContent']?(_0xfc7923['add'](_0x4446c8['head']),_0x435286['add'](_0x4446c8)):this['_removeSuggestion'](_0x4446c8);}}_0x435286['size']>0x0&&this['_refreshSuggestionsChain'](_0x435286);for(const _0x3f48ab of _0xfc7923)this['fire']('suggestionChanged',_0x3f48ab);}),_0x11f0d6['model']['on']('applyOperation',(_0x253313,_0x190628)=>{const _0x4e2ab2=_0x190628[0x0];if(!this['_suggestions']['size'])return;if(!_0x4e2ab2['isDocumentOperation'])return;if(_0x4e2ab2['batch']['isUndo']||!_0x4e2ab2['batch']['isLocal'])return;let _0x4044c2,_0x1c674e;switch(_0x4e2ab2['type']){case'insert':_0x4044c2=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['position']),_0x1c674e=_0x4044c2['getShiftedBy'](_0x4e2ab2['howMany']);break;case'split':_0x4044c2=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['splitPosition']),_0x1c674e=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['moveTargetPosition']);break;case'move':_0x4044c2=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['targetPosition']),_0x1c674e=_0x4044c2['getShiftedBy'](_0x4e2ab2['howMany']);break;default:return;}const _0x22a0d6=_0x11f0d6['model']['createRange'](_0x4044c2,_0x1c674e);_0x11f0d6['model']['change'](()=>{for(const {suggestion:_0x3fa772,meta:_0x5c076}of this['_findSuggestions'](_0x22a0d6)){if(_0x3fa772['isMultiRange'])continue;if('formatInline'==_0x3fa772['type'])continue;const _0x248325=this['_getAttributeKey'](_0x3fa772);if(_0x248325&&this['_isBlockAttribute'](_0x248325)&&'split'!=_0x4e2ab2['type'])continue;const _0x3d8db2=_0x3fa772['data']&&_0x3fa772['data']['multipleBlocks'];('formatBlock'!=_0x3fa772['type']||'split'==_0x4e2ab2['type']&&!_0x3d8db2)&&(_0x5c076['containsRangeInObject']||'insertion'==_0x3fa772['type']&&_0x5c076['isOwn']||_0x3fa772['getFirstRange']()['containsRange'](_0x22a0d6)&&this['_breakSuggestionMarker'](_0x3fa772,_0x4044c2,_0x1c674e));}});},{'priority':'lowest'}),_0x11f0d6['model']['on']('deleteContent',(_0x1a162e,_0x3b1fda)=>{const _0x8a18c6=_0x3b1fda[0x0],_0xc07f65=_0x3b1fda[0x1];if(_0xc07f65&&_0xc07f65['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x8a18c6['isCollapsed'])return;const _0x17ef93=_0x11f0d6['model']['schema'],{start:_0x3e55ea,end:_0x199e7e}=_0x8a18c6['getFirstRange'](),_0x37746d=_0x3e55ea['nodeAfter']&&_0x17ef93['isLimit'](_0x3e55ea['nodeAfter'])?null:_0x17ef93['getNearestSelectionRange'](_0x3e55ea,'forward'),_0x175e7b=_0x199e7e['nodeBefore']&&_0x17ef93['isLimit'](_0x199e7e['nodeBefore'])?null:_0x17ef93['getNearestSelectionRange'](_0x199e7e,'backward'),_0x3a3360=_0x11f0d6['model']['createRange'](_0x37746d?_0x37746d['start']:_0x3e55ea,_0x175e7b?_0x175e7b['end']:_0x199e7e);_0x11f0d6['model']['change'](_0x21793b=>{this['markDeletion'](_0x3a3360);const _0x57ed30=_0x11f0d6['model']['schema']['getNearestSelectionRange'](_0x3a3360['start']);_0x8a18c6['is']('documentSelection')?_0x21793b['setSelection'](_0x57ed30):_0x8a18c6['setTo'](_0x57ed30);}),_0x1a162e['stop']();},{'priority':_0x3ca1ca['normal']+0xa}),_0x11f0d6['model']['on']('insertContent',(_0x670c31,_0x230ce7)=>{const _0x32b049=_0x230ce7[_0x230ce7['length']-0x1];_0x32b049&&_0x32b049['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x11f0d6['model']['change'](()=>{let _0x1bdfef=_0x11f0d6['model']['insertContent'](_0x230ce7[0x0],_0x230ce7[0x1],_0x230ce7[0x2],{'forceDefaultExecution':!0x0});if(!_0x1bdfef)return;_0x670c31['return']=_0x1bdfef['clone']();const _0x5f5b1c=_0x1bdfef['end']['nodeBefore'],_0x976bdf=_0x11f0d6['model']['schema'];_0x5f5b1c&&_0x976bdf['isBlock'](_0x5f5b1c)&&!_0x976bdf['isObject'](_0x5f5b1c)&&(_0x1bdfef=_0x11f0d6['model']['createRange'](_0x1bdfef['start'],_0x11f0d6['model']['createPositionAt'](_0x5f5b1c,'end'))),this['markInsertion'](_0x1bdfef);}),_0x670c31['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2adb40=new $(_0x11f0d6,this['_suggestions']);_0x11f0d6['commands']['add']('acceptSuggestion',_0x2adb40),this['enableCommand']('acceptSuggestion');const _0x52a811=new B(_0x11f0d6,this['_suggestions']);_0x11f0d6['commands']['add']('discardSuggestion',_0x52a811),this['enableCommand']('discardSuggestion'),_0x11f0d6['commands']['add']('acceptAllSuggestions',new x(_0x11f0d6,_0x2adb40,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x11f0d6['commands']['add']('discardAllSuggestions',new x(_0x11f0d6,_0x52a811,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x11f0d6['commands']['add']('acceptSelectedSuggestions',new R(_0x11f0d6,_0x2adb40,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x11f0d6['commands']['add']('discardSelectedSuggestions',new R(_0x11f0d6,_0x52a811,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x58c78d=_0x11f0d6['plugins']['get']('CommentsRepository');this['listenTo'](_0x58c78d,'addComment',(_0x311764,{threadId:_0x500843})=>{const _0x39e762=this['_suggestions']['get'](_0x500843);_0x39e762&&_0x39e762['commentThread']&&0x1===_0x39e762['commentThread']['length']&&this['_updateSuggestionData'](_0x500843,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x58c78d,'removeComment',(_0xf9e5a5,{threadId:_0x66327b})=>{const _0x550e45=this['_suggestions']['get'](_0x66327b);_0x550e45&&_0x550e45['commentThread']&&!_0x550e45['commentThread']['length']&&this['_updateSuggestionData'](_0x66327b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x113743){if(this['_adapter'])throw new _0x175af6('track-changes-adapter-already-set',this);this['_adapter']=_0x113743;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x54d059=!0x1,toJSON:_0x410728=!0x1}={}){const _0x1f5828=[];for(const _0x4d926a of this['_suggestions']['values']())_0x54d059&&!_0x4d926a['isInContent']||_0x1f5828['push'](_0x4d926a);return _0x410728?_0x1f5828['map'](_0x5c3cbe=>_0x5c3cbe['toJSON']()):_0x1f5828;}['getSuggestion'](_0x415cd8){const _0x4b2eac=this['_suggestions']['get'](_0x415cd8);if(!_0x4b2eac)throw new _0x175af6('track-changes-suggestion-not-found',this);return _0x4b2eac;}['hasSuggestion'](_0x5a49fe){return this['_suggestions']['has'](_0x5a49fe);}['addSuggestionData'](_0x26e89f){const {authorId:_0x1b7c1a,id:_0x5868ad,attributes:_0x2f62d3}=_0x26e89f,[_0x217ff3,_0x491927]=_0x26e89f['type']['split'](':'),_0x38220f=this['_suggestions']['get'](_0x5868ad)||this['_createSuggestion'](_0x217ff3,_0x491927,_0x5868ad,_0x1b7c1a,_0x2f62d3);if(this['_addThreadToSuggestion'](_0x38220f),this['_checkSuggestionCorrectness'](_0x38220f,_0x217ff3,_0x491927||null,_0x1b7c1a),_0x38220f['createdAt']=_0x26e89f['createdAt'],_0x38220f['_isDataLoaded']=!0x0,_0x2f62d3&&_0x2f62d3['@external']){const _0x1a3cdb=_0x2f62d3['@external'],_0x4a0794=this['_getExternalAuthor'](_0x1a3cdb['authorName']);_0x38220f['authoredAt']=_0x1a3cdb['createdAt'],_0x38220f['author']=_0x4a0794,_0x38220f['isExternal']=!0x0;}else _0x38220f['authoredAt']=_0x26e89f['createdAt'];switch(_0x26e89f['data']&&(_0x38220f['data']=_0x26e89f['data']),_0x26e89f['attributes']&&(_0x38220f['attributes']=_0x26e89f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x38220f['_saved']=!0x0),this['_suggestionState']['get'](_0x38220f)){case'notReady':this['_suggestionState']['set'](_0x38220f,'dataReady');break;case'markerReady':_0x38220f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x38220f])),this['_refreshSuggestionsChain'](new Set([_0x38220f])),this['_suggestionState']['set'](_0x38220f,'ready'),this['fire']('suggestionLoaded',_0x38220f)):this['_suggestionState']['set'](_0x38220f,'removed');}return _0x38220f;}['acceptSuggestion'](_0x28711f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f4368 of _0x28711f['getAllAdjacentSuggestions']())_0x1f4368['accept']();});});}['discardSuggestion'](_0x15f534){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4df2c1 of _0x15f534['getAllAdjacentSuggestions']())_0x4df2c1['discard']();});});}['enableCommand'](_0x3eb6be,_0x5bb6f5){const _0x4a65a4=this['editor']['commands']['get'](_0x3eb6be);if(!_0x4a65a4)throw new _0x175af6('track-changes-command-not-found',this,{'commandName':_0x3eb6be});if(this['_enabledCommands']['has'](_0x4a65a4))throw new _0x175af6('track-changes-enable-command-twice',this,{'commandName':_0x3eb6be});this['_enabledCommands']['add'](_0x4a65a4),_0x5bb6f5&&_0x4a65a4['on']('execute',(_0x5cc7d3,_0xb1b3d7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xb1b3d7['length']>0x0&&_0xb1b3d7[_0xb1b3d7['length']-0x1]&&_0xb1b3d7[_0xb1b3d7['length']-0x1]['forceDefaultExecution']?_0xb1b3d7['pop']():(_0x5cc7d3['return']=_0x5bb6f5((..._0x2d8bab)=>_0x4a65a4['execute'](..._0x2d8bab,{'forceDefaultExecution':!0x0}),..._0xb1b3d7),_0x5cc7d3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x467068){let _0x4a4124,_0xcacc8d;const _0x1858c3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a4124=_0x467068();}catch(_0x3d1456){_0xcacc8d=_0x3d1456;}return _0x1858c3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xcacc8d&&_0x175af6['rethrowUnexpectedError'](_0xcacc8d,this),_0x4a4124;}['markInsertion'](_0xd85ae0,_0x5d1ca0=null,_0x1ce1cf={}){if(_0xd85ae0['isCollapsed'])return null;const _0x31b96c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x53a73d,meta:_0x1ee24d}of this['_findSuggestions'](_0xd85ae0,'insertion'))if(_0x1ee24d['isOwn']){if(!_0x1ee24d['isNextTo']){if(_0x1ee24d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x53a73d,_0x1ce1cf))continue;return _0x53a73d;}if(Lt(_0x53a73d,_0x1ce1cf))return _0x53a73d;this['_breakSuggestionMarker'](_0x53a73d,_0xd85ae0['start'],_0xd85ae0['end']);break;}if(_0x5d1ca0==_0x53a73d['subType']&&Lt(_0x53a73d,_0x1ce1cf)){const _0xa104aa=_0x53a73d['getFirstRange']();return _0xa104aa['start']['isEqual'](_0xd85ae0['end'])?this['_setSuggestionRange'](_0x53a73d,this['_model']['createRange'](_0xd85ae0['start'],_0xa104aa['end'])):this['_setSuggestionRange'](_0x53a73d,this['_model']['createRange'](_0xa104aa['start'],_0xd85ae0['end'])),_0x53a73d;}}const _0x94017=_0x3dae9a(),_0x2211a4=_0x31b96c['id'],_0xc50ea6=_0x5d1ca0?'insertion:'+_0x5d1ca0:'insertion',_0xc7a685=this['_setSuggestionData']({'id':_0x94017,'type':_0xc50ea6,'createdAt':new Date(),'authorId':_0x2211a4,'attributes':_0x1ce1cf});return this['_addSuggestionMarker'](_0xc50ea6,_0x94017,_0x2211a4,_0xd85ae0),_0xc7a685;}['markMultiRangeInsertion'](_0x222072,_0x31ee56='multi',_0x451828={}){const _0x7c446c=this['editor']['plugins']['get']('Users')['me'],_0x2bebbd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31ee56,'join');for(const _0xcd7fbf of this['getSuggestions']())if(_0xcd7fbf['author']['id']==_0x7c446c['id']&&'insertion'==_0xcd7fbf['type']&&_0xcd7fbf['subType']==_0x31ee56&&Lt(_0xcd7fbf,_0x451828)&&(_0x2bebbd(_0xcd7fbf['getRanges'](),_0x222072)||_0x2bebbd(_0x222072,_0xcd7fbf['getRanges']()))){for(const _0x5cfd8b of _0x222072)_0xcd7fbf['addRange'](_0x5cfd8b);return _0xcd7fbf;}for(const {suggestion:_0x4bf09e,meta:_0x969c35}of this['_findSuggestions'](_0x222072,'insertion')){if(!_0x969c35['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x969c35['containsRangeInObject'])continue;if(!Lt(_0x4bf09e,_0x451828))continue;let _0x1427a7=!0x0;for(const _0x4b3f3b of _0x4bf09e['getRanges']())for(const _0x4f2e46 of _0x222072)if(!_0x4b3f3b['containsRange'](_0x4f2e46)){_0x1427a7=!0x1;break;}if(_0x1427a7)return _0x4bf09e;}const _0x31e4ba=_0x3dae9a(),_0x331fc8=_0x7c446c['id'],_0x1907f3='insertion:'+_0x31ee56,_0x2ff161=this['_setSuggestionData']({'id':_0x31e4ba,'type':_0x1907f3,'createdAt':new Date(),'authorId':_0x331fc8,'attributes':_0x451828});for(const _0xcd9f38 of _0x222072)this['_addSuggestionMarker'](_0x1907f3,_0x31e4ba,_0x331fc8,_0xcd9f38,u['getMultiRangeId']());return _0x2ff161;}['markInlineFormat'](_0x202e73,_0x142872,_0x3242c1=null,_0x40a720={}){if(_0x3242c1=_0x3242c1||Vt(_0x142872),_0x202e73['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1055fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3242c1,'accept');return this['forceDefaultExecution'](()=>_0x1055fd([_0x202e73],_0x142872,_0x40a720)),null;}const _0x448b2a=this['editor']['plugins']['get']('Users')['me'],_0x32795f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x361bb7,meta:_0x184af7}of this['_findSuggestions'](_0x202e73,'insertion'))_0x184af7['isOwn']&&!_0x184af7['isInsideObject']&&_0x32795f['push'](..._0x361bb7['getRanges']());}const _0x479ed6=function(_0x5f44b1,_0x26e494){const _0x131d6d=[];for(const _0x1fe399 of _0x26e494){const _0xd23019=_0x5f44b1['getIntersection'](_0x1fe399);_0xd23019&&_0x131d6d['push'](_0xd23019);}return _0x131d6d;}(_0x202e73,_0x32795f),_0x2b279f=function(_0x4d0d84,_0x1f5871){const _0x2c5da3=[_0x4d0d84];for(const _0x16deed of _0x1f5871){let _0x14899e=0x0;for(;_0x14899e<_0x2c5da3['length'];){const _0x45cc0b=_0x2c5da3[_0x14899e]['getDifference'](_0x16deed);_0x2c5da3['splice'](_0x14899e,0x1,..._0x45cc0b),_0x14899e+=_0x45cc0b['length'];}}return _0x2c5da3;}(_0x202e73,_0x32795f);_0x479ed6['length']&&this['_model']['change'](()=>{for(const _0x336296 of _0x479ed6){const _0x4aec25=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3242c1,'accept');this['forceDefaultExecution'](()=>_0x4aec25([_0x336296],_0x142872,_0x40a720));}});for(const _0x37f071 of _0x2b279f){let _0x427a46=null,_0x1d2392=_0x37f071['start'],_0x2b803d=_0x37f071['end'];for(const {suggestion:_0x3fc951,meta:_0x2a3adf}of this['_findSuggestions'](_0x37f071,'formatInline')){if(!_0x2a3adf['isOwn'])continue;if(_0x3fc951['subType']!=_0x3242c1)continue;if(!Lt(_0x3fc951,_0x40a720))continue;const _0x80c53f=_0x3fc951['getFirstRange']();if(_0x80c53f['containsRange'](_0x37f071,!0x0))return null;_0x1d2392=_0x1d2392['isBefore'](_0x80c53f['start'])?_0x1d2392:_0x80c53f['start'],_0x2b803d=_0x2b803d['isAfter'](_0x80c53f['end'])?_0x2b803d:_0x80c53f['end'],_0x427a46?_0x80c53f['start']['isBefore'](_0x427a46['getFirstRange']()['start'])?(_0x427a46['removeMarkers'](),_0x427a46=_0x3fc951):_0x3fc951['removeMarkers']():_0x427a46=_0x3fc951;}const _0x1a468e=this['_model']['createRange'](_0x1d2392,_0x2b803d);if(_0x427a46)this['_setSuggestionRange'](_0x427a46,_0x1a468e);else{const _0x11aee1=_0x3dae9a(),_0x4aaf33=_0x448b2a['id'];this['_setSuggestionData']({'id':_0x11aee1,'type':'formatInline:'+_0x3242c1,'data':_0x142872,'createdAt':new Date(),'authorId':_0x4aaf33,'attributes':_0x40a720}),this['_addSuggestionMarker']('formatInline:'+_0x3242c1,_0x11aee1,_0x4aaf33,_0x1a468e);}}return null;}['markBlockFormat'](_0x534905,_0x46c2e3,_0x590cd1=[],_0x4ae5c6=null,_0x2006fa={}){_0x46c2e3['formatGroupId']||(_0x46c2e3['formatGroupId']=_0x46c2e3['commandName']),_0x46c2e3['multipleBlocks']=_0x534905['is']('range'),_0x4ae5c6=_0x4ae5c6||Vt(_0x46c2e3);const _0x3e2e38=_0x590cd1['map'](_0x4a38fa=>Gt(_0x4a38fa,this['_model'])),_0x1fe728=_0x534905['is']('range')?_0x534905:Gt(_0x534905,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1e09b6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae5c6,'accept');return this['forceDefaultExecution'](()=>_0x1e09b6([_0x1fe728],_0x46c2e3,_0x2006fa)),null;}_0x3e2e38['push'](_0x1fe728);let _0x5028e0=!0x0;for(const _0x5dc57c of _0x3e2e38)if(!this['_rangeIsInLocalUserInsertion'](_0x5dc57c)){_0x5028e0=!0x1;break;}if(_0x5028e0&&'always'!==this['_trackFormatChanges']){const _0x2ba014=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae5c6,'accept');return this['forceDefaultExecution'](()=>_0x2ba014([_0x1fe728],_0x46c2e3,_0x2006fa)),null;}let _0x1b9bbb=null,_0x3461ac=_0x1fe728['start'],_0x12a8b0=_0x1fe728['end'];for(const {suggestion:_0x1a3d64,meta:_0x19becc}of this['_findSuggestions'](_0x1fe728,'formatBlock')){if(!_0x19becc['isOwn'])continue;if(_0x19becc['isNextTo']||_0x19becc['containsRangeInObject']||_0x19becc['isInsideObject'])continue;if(_0x1a3d64['data']['formatGroupId']!=_0x46c2e3['formatGroupId'])continue;if(!Lt(_0x1a3d64,_0x2006fa))continue;const _0x1c45d2=_0x1a3d64['getFirstRange']();if(_0x1a3d64['subType']==_0x4ae5c6){if(_0x1c45d2['containsRange'](_0x1fe728,!0x0))return null;_0x3461ac=_0x3461ac['isBefore'](_0x1c45d2['start'])?_0x3461ac:_0x1c45d2['start'],_0x12a8b0=_0x12a8b0['isAfter'](_0x1c45d2['end'])?_0x12a8b0:_0x1c45d2['end'],_0x1b9bbb?_0x1c45d2['start']['isBefore'](_0x1b9bbb['getFirstRange']()['start'])?(_0x1b9bbb['removeMarkers'](),_0x1b9bbb=_0x1a3d64):_0x1a3d64['removeMarkers']():_0x1b9bbb=_0x1a3d64;}else{const _0x5140be=_0x1fe728['getIntersection'](_0x1c45d2);this['_cutOutSuggestionMarker'](_0x1a3d64,_0x5140be);}}const _0x304d0e=this['editor']['plugins']['get']('Users')['me'],_0x5ad2d8=_0x3dae9a(),_0x4731f0=_0x304d0e['id'];if(_0x1b9bbb)return this['_setSuggestionRange'](_0x1b9bbb,this['_model']['createRange'](_0x3461ac,_0x12a8b0)),_0x1b9bbb;{const _0x422d07=this['_setSuggestionData']({'id':_0x5ad2d8,'type':'formatBlock:'+_0x4ae5c6,'data':_0x46c2e3,'createdAt':new Date(),'authorId':_0x4731f0,'attributes':_0x2006fa});return this['_addSuggestionMarker']('formatBlock:'+_0x4ae5c6,_0x5ad2d8,_0x4731f0,this['_model']['createRange'](_0x3461ac,_0x12a8b0)),_0x422d07;}}['markMultiRangeBlockFormat'](_0x29c164,_0x24a55f,_0x206eef=[],_0x527727=null,_0x39ec3b={}){_0x24a55f['formatGroupId']||(_0x24a55f['formatGroupId']=_0x24a55f['commandName']);const _0x12f908=_0x29c164[0x0];_0x24a55f['multipleBlocks']=_0x12f908['is']('range'),_0x527727=_0x527727||Vt(_0x24a55f);const _0x5d1a7f=_0x206eef['map'](_0xd7d044=>Gt(_0xd7d044,this['_model'])),_0xe04cd7=_0x12f908['is']('range')?_0x29c164:_0x29c164['map'](_0x12f31f=>Gt(_0x12f31f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x8f4b1f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527727,'accept');return this['forceDefaultExecution'](()=>_0x8f4b1f(_0xe04cd7,_0x24a55f,_0x39ec3b)),null;}_0x5d1a7f['push'](..._0xe04cd7);let _0x19216c=!0x0;for(const _0x22906c of _0x5d1a7f)if(!this['_rangeIsInLocalUserInsertion'](_0x22906c)){_0x19216c=!0x1;break;}if(_0x19216c&&'always'!==this['_trackFormatChanges']){const _0x51b5be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527727,'accept');return this['forceDefaultExecution'](()=>_0x51b5be(_0xe04cd7,_0x24a55f,_0x39ec3b)),null;}const _0x241d1a=this['editor']['plugins']['get']('Users')['me'];for(const _0x50c2a7 of this['getSuggestions']()){if(_0x50c2a7['author']['id']!=_0x241d1a['id'])continue;if('formatBlock'!=_0x50c2a7['type']||_0x50c2a7['data']['formatGroupId']!=_0x24a55f['formatGroupId'])continue;if(!Lt(_0x50c2a7,_0x39ec3b))continue;const _0x5bb1ef=_0x50c2a7['subType']==_0x527727;for(let _0x52d08d=0x0;_0x52d08d<_0xe04cd7['length'];_0x52d08d++){const _0x34ad69=_0xe04cd7[_0x52d08d];for(const _0x59374f of _0x50c2a7['getMarkers']()){const _0x97fa0d=_0x59374f['getRange']();if(_0x34ad69['isEqual'](_0x97fa0d)){_0x5bb1ef?(_0xe04cd7['splice'](_0x52d08d,0x1),_0x52d08d--):_0x50c2a7['removeMarker'](_0x59374f['name']);break;}}}}if(0x0==_0xe04cd7['length'])return null;const _0x2a0066=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527727,'join');for(const _0x12c063 of this['getSuggestions']())if(_0x12c063['author']['id']==_0x241d1a['id']&&'formatBlock'==_0x12c063['type']&&_0x12c063['data']['formatGroupId']==_0x24a55f['formatGroupId']&&_0x12c063['subType']==_0x527727&&Lt(_0x12c063,_0x39ec3b)&&(_0x2a0066(_0x12c063['getRanges'](),_0xe04cd7)||_0x2a0066(_0xe04cd7,_0x12c063['getRanges']()))){for(const _0x477195 of _0xe04cd7)_0x12c063['addRange'](_0x477195);return _0x12c063;}const _0x121d58=_0x3dae9a(),_0x27df81=_0x241d1a['id'],_0x5b7903='formatBlock:'+_0x527727,_0x3351eb=this['_setSuggestionData']({'id':_0x121d58,'type':_0x5b7903,'data':_0x24a55f,'createdAt':new Date(),'authorId':_0x27df81,'attributes':_0x39ec3b});for(const _0x196b1b of _0xe04cd7)this['_addSuggestionMarker'](_0x5b7903,_0x121d58,_0x27df81,_0x196b1b,u['getMultiRangeId']());return _0x3351eb;}['markDeletion'](_0x3986d4,_0x1f31df=null,_0x612d99={}){if(_0x3986d4['isCollapsed'])return null;const _0x71921c=this['editor']['plugins']['get']('Users')['me'],_0x2206d6=new _0x828bf8(_0x3986d4['start'],_0x3986d4['end']);for(const {suggestion:_0x53fb7e,meta:_0x356dff}of this['_findSuggestions'](_0x2206d6,'insertion'))if(_0x356dff['isOwn']&&!_0x356dff['isNextTo']){if(_0x53fb7e['isMultiRange']){const _0x4c0804=_0x53fb7e['getRanges']()['filter'](_0x5b8dbd=>'$graveyard'!=_0x5b8dbd['root']['rootName']);_0x4c0804['every'](_0xea1764=>_0x2206d6['containsRange'](_0xea1764,!0x0))&&_0x53fb7e['discard']();if(_0x4c0804['some'](_0x1544a1=>_0x1544a1['containsRange'](_0x2206d6,!0x0))){const _0x579349=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f31df,'accept');return this['forceDefaultExecution'](()=>_0x579349([_0x2206d6],null,_0x612d99)),null;}}else{const _0x5d99c0=_0x2206d6['getIntersection'](_0x53fb7e['getFirstRange']());null!==_0x5d99c0&&_0x53fb7e['_onDiscard']([_0x5d99c0],null,_0x612d99);}}if(_0x2206d6['detach'](),_0x2206d6['isCollapsed']||'$graveyard'==_0x2206d6['root']['rootName'])return null;let _0x5b64fb=null,_0x453bcf=_0x2206d6['start'],_0x550e54=_0x2206d6['end'];const _0x3559e3=this['_findSuggestions'](_0x2206d6,'deletion');for(const {suggestion:_0x7522c2,meta:_0x22442f}of _0x3559e3){const _0x49b36c=this['_model']['createRange'](_0x453bcf,_0x550e54);if(_0x22442f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x22442f['containsRangeInObject']&&!_0x22442f['isInsideObject'])){if(_0x7522c2['isMultiRange']){if(!Lt(_0x7522c2,_0x612d99))continue;let _0x26d044=!0x0;for(const _0x39e546 of _0x7522c2['getRanges']()){if(_0x39e546['containsRange'](_0x49b36c,!0x0))return _0x7522c2;_0x49b36c['containsRange'](_0x39e546)||(_0x26d044=!0x1);}_0x26d044&&_0x7522c2['discard']();}else{const _0x507e44=_0x7522c2['getFirstRange']();if(_0x507e44['containsRange'](_0x49b36c,!0x0))return _0x7522c2;if(!Lt(_0x7522c2,_0x612d99)){_0x49b36c['containsRange'](_0x507e44)?_0x7522c2['removeMarkers']():_0x507e44['containsPosition'](_0x453bcf)?_0x453bcf=_0x507e44['end']:_0x507e44['containsPosition'](_0x550e54)&&(_0x550e54=_0x507e44['start']);continue;}_0x453bcf=_0x453bcf['isBefore'](_0x507e44['start'])?_0x453bcf:_0x507e44['start'],_0x550e54=_0x550e54['isAfter'](_0x507e44['end'])?_0x550e54:_0x507e44['end'],_0x612d99=Object['assign']({},_0x7522c2['attributes']),_0x5b64fb?_0x507e44['start']['isBefore'](_0x5b64fb['getFirstRange']()['start'])?(_0x5b64fb['removeMarkers'](),_0x5b64fb=_0x7522c2):_0x7522c2['removeMarkers']():_0x5b64fb=_0x7522c2;}}}if(_0x5b64fb)return this['_setSuggestionRange'](_0x5b64fb,this['_model']['createRange'](_0x453bcf,_0x550e54)),_0x5b64fb;{const _0x4ad559=_0x3dae9a(),_0x1960ed=this['_model']['createRange'](_0x453bcf,_0x550e54),_0x30b056=_0x71921c['id'],_0x5c1379=_0x1f31df?'deletion:'+_0x1f31df:'deletion',_0x2472fc=this['_setSuggestionData']({'id':_0x4ad559,'type':_0x5c1379,'createdAt':new Date(),'authorId':_0x30b056,'attributes':_0x612d99});return this['_addSuggestionMarker'](_0x5c1379,_0x4ad559,_0x30b056,_0x1960ed),_0x2472fc;}}['markMultiRangeDeletion'](_0x3aadf6,_0x2d2fce='multi',_0xcc9a99={}){const _0x1985f6=this['editor']['plugins']['get']('Users')['me'],_0x323ea6=_0x3aadf6['map'](_0x3da837=>new _0x828bf8(_0x3da837['start'],_0x3da837['end'])),_0x7cddac=new Set();for(const {suggestion:_0x675fe0,meta:_0x5aa60e}of this['_findSuggestions'](_0x323ea6,'insertion'))_0x5aa60e['isOwn']&&!_0x5aa60e['isNextTo']&&_0x7cddac['add'](_0x675fe0);for(const _0x2c245e of _0x7cddac)if(_0x2c245e['isMultiRange']){const _0xc3e18e=_0x2c245e['getRanges']();(!_0x2c245e['attributes']||!_0x2c245e['attributes']['skipNestingCheck'])&&(_0xc3e18e['every'](_0x3f00f6=>_0x323ea6['some'](_0xa8c836=>_0xa8c836['containsRange'](_0x3f00f6,!0x0)))&&_0x2c245e['discard']());if(_0x323ea6['every'](_0x23a1e7=>_0xc3e18e['some'](_0x260880=>_0x260880['containsRange'](_0x23a1e7,!0x0)))){const _0x3af417=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d2fce,'accept');return this['forceDefaultExecution'](()=>_0x3af417(_0x3aadf6,null,_0xcc9a99)),null;}}else{const _0x4483d2=_0x2c245e['getFirstRange']();_0x323ea6['some'](_0x508f5a=>_0x508f5a['containsRange'](_0x4483d2,!0x0))&&_0x2c245e['discard']();if(_0x323ea6['every'](_0xa66540=>_0x4483d2['containsRange'](_0xa66540,!0x0))){const _0xd588a0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d2fce,'accept');return this['forceDefaultExecution'](()=>_0xd588a0(_0x323ea6,null,_0xcc9a99)),null;}}const _0x42e89d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d2fce,'join');let _0x4b1292=null;for(const _0x118e01 of this['getSuggestions']())if(_0x118e01['author']['id']==_0x1985f6['id']&&_0x118e01['isInContent']&&'deletion'==_0x118e01['type']&&_0x118e01['subType']==_0x2d2fce&&Lt(_0x118e01,_0xcc9a99)&&(_0x42e89d(_0x118e01['getRanges'](),_0x323ea6)||_0x42e89d(_0x323ea6,_0x118e01['getRanges']()))){if(_0x4b1292){if(_0x118e01['commentThread']&&_0x118e01['commentThread']['length'])continue;for(const _0x28c118 of _0x118e01['getRanges']())_0x4b1292['isIntersectingWithRange'](_0x28c118)||_0x4b1292['addRange'](_0x28c118);_0x118e01['removeMarkers']();}else{_0x4b1292=_0x118e01;for(const _0x12ea9b of _0x323ea6)_0x118e01['isIntersectingWithRange'](_0x12ea9b)||_0x118e01['addRange'](_0x12ea9b);}}if(_0x4b1292)return _0x4b1292;_0x7cddac['clear']();for(const {suggestion:_0xc5ae8,meta:_0x1d27fe}of this['_findSuggestions'](_0x323ea6,'deletion'))_0x1d27fe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d27fe['containsRangeInObject']&&!_0x1d27fe['isInsideObject'])&&Lt(_0xc5ae8,_0xcc9a99)&&_0x7cddac['add'](_0xc5ae8);for(const _0x3d28af of _0x7cddac){const _0x2b0683=_0x3d28af['getRanges']();if(!_0xcc9a99||!_0xcc9a99['skipNestingCheck']){if(_0x323ea6['every'](_0x70b402=>_0x2b0683['some'](_0x128536=>_0x128536['containsRange'](_0x70b402,!0x0))))return _0x3d28af;}(!_0x3d28af['attributes']||!_0x3d28af['attributes']['skipNestingCheck'])&&(_0x2b0683['every'](_0xb4d167=>_0x323ea6['some'](_0x268791=>_0x268791['containsRange'](_0xb4d167,!0x0)))&&_0x3d28af['discard']());}const _0xc340fb=_0x3dae9a(),_0x2c9ccc=_0x1985f6['id'],_0x5e5d89='deletion:'+_0x2d2fce,_0x409d2b=this['_setSuggestionData']({'id':_0xc340fb,'type':_0x5e5d89,'createdAt':new Date(),'authorId':_0x2c9ccc,'attributes':_0xcc9a99});for(const _0x33acc4 of _0x323ea6)_0x33acc4['detach'](),_0x33acc4['isCollapsed']||'$graveyard'==_0x33acc4['root']['rootName']||this['_addSuggestionMarker'](_0x5e5d89,_0xc340fb,_0x2c9ccc,_0x33acc4,u['getMultiRangeId']());return _0x409d2b;}['markAttributeChange'](_0x61b74a,_0x2c2d4f,_0x3e0525,_0x4d798e,_0x448ecd){if(_0x61b74a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2deaf9=this['editor']['plugins']['get']('Users')['me']['id'],_0x45fc7c=Array['from'](this['_suggestions']['values']())['filter'](_0x5f3b02=>'attribute'==_0x5f3b02['type']&&_0x5f3b02['data']['key']==_0x2c2d4f&&_0x5f3b02['isIntersectingWithRange'](_0x61b74a));if('default'===this['_trackFormatChanges']){const _0x34f980=this['_findSuggestions'](_0x61b74a,'insertion')['filter'](({meta:_0x47d908})=>_0x47d908['isOwn']&&!_0x47d908['isInsideObject']&&!_0x47d908['isNextTo'])['map'](({suggestion:_0x3f1d09})=>_0x3f1d09);_0x45fc7c['unshift'](..._0x34f980);}const _0x2e213e=new Map([[_0x61b74a,_0x3e0525]]);for(const _0x3778a0 of _0x45fc7c){const _0x1ff5d4='attribute'==_0x3778a0['type']?_0x3778a0['data']['oldValue']:void 0x0,_0x55197c=_0x3778a0['getFirstRange'](),_0xa1f19e=Array['from'](_0x2e213e['keys']())['find'](_0x2863f4=>_0x2863f4['isIntersecting'](_0x55197c));if(!_0xa1f19e)continue;const _0x4867eb=_0xa1f19e['getDifference'](_0x55197c);this['_isBlockAttribute'](_0x2c2d4f)&&'insertion'==_0x3778a0['type']&&0x0!=_0x4867eb['length']||(_0x2e213e['delete'](_0xa1f19e),_0x4867eb['forEach'](_0x101f57=>{_0x2e213e['set'](_0x101f57,_0x3e0525);}),'insertion'!=_0x3778a0['type']&&_0x1ff5d4!=_0x4d798e&&_0x2e213e['set'](_0xa1f19e['getIntersection'](_0x55197c),_0x1ff5d4));}const _0x3286e7=[];for(const [_0x49ce40,_0x185bdb]of _0x2e213e){const _0x42bb81=_0x3dae9a(),_0x2911a4={'key':_0x2c2d4f,'oldValue':_0x185bdb,'newValue':_0x4d798e};_0x2c2d4f['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':_0x2c2d4f});const _0x2857a7=('attribute:'+(_0x2c2d4f+'|'+Vt({'newValue':_0x4d798e})))['substring'](0x0,0x3c),_0x154176=this['_setSuggestionData']({'id':_0x42bb81,'type':_0x2857a7,'data':_0x2911a4,'createdAt':new Date(),'authorId':_0x2deaf9,'attributes':_0x448ecd});_0x3286e7['push'](_0x154176),this['_addSuggestionMarker'](_0x2857a7,_0x42bb81,_0x2deaf9,_0x49ce40);}return _0x3286e7;}['enableDefaultAttributesIntegration'](_0x4db4a1){this['enableCommand'](_0x4db4a1,(_0x6c7577,..._0x5806c3)=>{this['_recordAttributeChanges'](()=>{_0x6c7577(..._0x5806c3);});});}['registerBlockAttribute'](_0x5345b4){this['_blockAttributeKeys']['add'](_0x5345b4);}['registerInlineAttribute'](_0x214d8e){this['_inlineAttributeKeys']['add'](_0x214d8e);}['_getAttributeKey'](_0x423ae6){return'attribute'==_0x423ae6['type']?_0x423ae6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x141165,_0x2e6683){const _0x400b8e=_0x141165['getFirstMarker']();this['_model']['change'](_0x52f8d8=>{_0x52f8d8['updateMarker'](_0x400b8e,{'range':_0x2e6683});});}['_addThreadToSuggestion'](_0x456c23){const _0x46c496=_0x456c23['id'],_0x217c3e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46c496)||this['_commentsRepository']['addCommentThread']({'channelId':_0x217c3e,'threadId':_0x46c496,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x40028a=this['_commentsRepository']['getCommentThread'](_0x46c496);_0x40028a['unbind']('isRemovable'),_0x40028a['isRemovable']=!0x1,_0x456c23['commentThread']=_0x40028a;}['_checkSuggestionCorrectness'](_0x27a0bd,_0x34d068,_0x38bd85,_0x4b0094){if(_0x27a0bd['type']!=_0x34d068||_0x27a0bd['subType']!=_0x38bd85||_0x27a0bd['creator']['id']!=_0x4b0094)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x175af6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x19fb88,_0x31ac7c){const _0x469a1d=_0x19fb88['getFirstRange']();if(_0x31ac7c['isEqual'](_0x469a1d))_0x19fb88['removeMarkers']();else{if(_0x469a1d['containsRange'](_0x31ac7c)){const _0x573de9=this['_model']['createPositionAt'](_0x31ac7c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x19fb88,this['_model']['createRange'](_0x469a1d['start'],_0x573de9));const _0x40cbfc=_0x3dae9a(),_0x25a2d2=_0x19fb88['creator']['id'],_0xa6b1af=_0x19fb88['type']+':'+_0x19fb88['subType'];this['_setSuggestionData']({'id':_0x40cbfc,'type':_0xa6b1af,'createdAt':new Date(),'authorId':_0x25a2d2,'data':_0x19fb88['data'],'attributes':_0x19fb88['attributes']});const _0x18b774=this['_model']['createPositionAt'](_0x31ac7c['end']['parent'],'after'),_0x220547=this['_model']['createRange'](_0x18b774,_0x469a1d['end']);this['_addSuggestionMarker'](_0xa6b1af,_0x40cbfc,_0x25a2d2,_0x220547);}else{if(_0x469a1d['containsPosition'](_0x31ac7c['start'])){const _0x141e5d=this['_model']['createPositionAt'](_0x31ac7c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x19fb88,this['_model']['createRange'](_0x469a1d['start'],_0x141e5d));}else{const _0x13a040=this['_model']['createPositionAt'](_0x31ac7c['end']['parent'],'after');this['_setSuggestionRange'](_0x19fb88,this['_model']['createRange'](_0x13a040,_0x469a1d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xdc6d47){for(const {suggestion:_0x462496,meta:_0xbb13af}of this['_findSuggestions'](_0xdc6d47,'insertion')){if(!_0xbb13af['isOwn'])continue;const _0x4780a8=_0x462496['getRanges']();for(const _0x5908c9 of _0x4780a8)if(!_0xdc6d47['getDifference'](_0x5908c9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x25cb3a){const _0x447e0d=this['editor']['plugins']['get']('Users')['getUser'](_0x25cb3a);if(!_0x447e0d)throw new _0x175af6('track-changes-user-not-found',this);return _0x447e0d;}['_getExternalAuthor'](_0x2dee32){const _0x5e289d=this['editor']['plugins']['get']('Users'),_0x390671=_0x4b9707('external:'+_0x2dee32),_0x3cfb6e=_0x5e289d['getUser'](_0x390671);return _0x3cfb6e||_0x5e289d['addUser']({'id':_0x390671,'name':_0x2dee32});}['_createSuggestion'](_0x48425e,_0x4542ab,_0x4f7e3a,_0xd60c8c,_0xa39365){const _0x4a3f6c=this['_getAuthorFromId'](_0xd60c8c),_0x3e8ec0=this['_suggestionFactory']['buildSuggestion'](_0x48425e,_0x4542ab,_0x4f7e3a,_0x4a3f6c,_0xa39365,_0x24ede0=>{this['_updateSuggestionData'](_0x4f7e3a,{'attributes':_0x24ede0});const _0x23fbc6=this['getSuggestion'](_0x4f7e3a);this['_joinWithAdjacentSuggestions'](new Set([_0x23fbc6])),this['_refreshSuggestionsChain'](new Set([_0x23fbc6]));});return this['listenTo'](_0x3e8ec0,'accept',()=>{this['_updateSuggestionData'](_0x4f7e3a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e8ec0,'discard',()=>{this['_updateSuggestionData'](_0x4f7e3a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4f7e3a,_0x3e8ec0),this['_suggestionState']['set'](_0x3e8ec0,'notReady'),_0x3e8ec0;}['_splitMarkerName'](_0x3e78fb){const _0x2a05df=_0x3e78fb['split'](':');return{'group':_0x2a05df[0x0],'type':_0x2a05df[0x1],'subType':_0x2a05df['length']>=0x5?_0x2a05df[0x2]:null,'id':_0x2a05df['length']<0x5?_0x2a05df[0x2]:_0x2a05df[0x3],'authorId':_0x2a05df['length']<0x5?_0x2a05df[0x3]:_0x2a05df[0x4],'markerCount':0x6==_0x2a05df['length']?_0x2a05df[0x5]:null};}['_breakSuggestionMarker'](_0xeb266a,_0x2ae702,_0x483e50){const _0x1ab84d=_0xeb266a['getFirstRange'](),_0x3fca9b=_0x1ab84d['start'],_0x19a46f=_0x1ab84d['end'];this['_setSuggestionRange'](_0xeb266a,this['_model']['createRange'](_0x3fca9b,_0x2ae702));const _0x27c4fc=_0x3dae9a(),_0x1cacbc=_0xeb266a['creator']['id'],_0x445c05=_0xeb266a['type']+(_0xeb266a['subType']?':'+_0xeb266a['subType']:'');this['_setSuggestionData']({'id':_0x27c4fc,'type':_0x445c05,'createdAt':new Date(),'authorId':_0x1cacbc,'originalSuggestionId':_0xeb266a['id'],'attributes':_0xeb266a['attributes'],'data':_0xeb266a['data']});const _0x351fd2=this['_getAttributeKey'](_0xeb266a);('formatBlock'==_0xeb266a['type']||_0x351fd2&&this['_isBlockAttribute'](_0x351fd2))&&(_0x483e50=this['_model']['createPositionBefore'](_0x483e50['parent'])),this['_addSuggestionMarker'](_0x445c05,_0x27c4fc,_0x1cacbc,this['_model']['createRange'](_0x483e50,_0x19a46f));}['_findSuggestions'](_0x103148,_0x338a99=null){const _0x21d7d7=[],_0x28af49=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x103148)||(_0x103148=[_0x103148]);for(const _0x21208b of this['getSuggestions']()){if(!_0x21208b['isInContent'])continue;if(_0x338a99&&_0x21208b['type']!=_0x338a99)continue;let _0x5a51de=!0x1;for(const _0x28cce4 of _0x21208b['getRanges']()){for(const _0x17aa20 of _0x103148){const _0x141c66=_0x17aa20['start']['isEqual'](_0x28cce4['end'])||_0x17aa20['end']['isEqual'](_0x28cce4['start']);if(_0x141c66||_0x17aa20['getIntersection'](_0x28cce4)){const _0x491be3=_0x17aa20['containsRange'](_0x28cce4)&&Rt(this['_model']['schema'],_0x28cce4['start'],_0x17aa20),_0x4987b9=_0x28cce4['containsRange'](_0x17aa20)&&Rt(this['_model']['schema'],_0x17aa20['start'],_0x28cce4);_0x21d7d7['push']({'suggestion':_0x21208b,'meta':{'isOwn':_0x28af49==_0x21208b['author'],'isNextTo':_0x141c66,'isInsideObject':_0x491be3,'containsRangeInObject':_0x4987b9}}),_0x5a51de=!0x0;break;}}if(_0x5a51de)break;}}return _0x21d7d7;}['_addSuggestionMarker'](_0x594bba,_0x49bfae,_0x40a45,_0x133012,_0x3a0b1a){this['_model']['change'](_0x4c8927=>{let _0x57c1ae='suggestion:'+_0x594bba+':'+_0x49bfae+':'+_0x40a45;_0x3a0b1a&&(_0x57c1ae=_0x57c1ae+':'+_0x3a0b1a),_0x4c8927['addMarker'](_0x57c1ae,{'range':_0x133012,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x750a03){const _0x1c339a=_0x750a03['previous'],_0x1c55d2=_0x750a03['next'];_0x750a03['previous']=null,_0x750a03['next']=null,null!=_0x1c339a&&_0x1c339a['next']==_0x750a03&&(_0x1c339a['next']=_0x1c55d2),null!=_0x1c55d2&&_0x1c55d2['previous']==_0x750a03&&(_0x1c55d2['previous']=_0x1c339a),'ready'==this['_suggestionState']['get'](_0x750a03)&&(this['_suggestionState']['set'](_0x750a03,'removed'),this['fire']('suggestionUnloaded',_0x750a03,_0x1c339a,_0x1c55d2));}['_setSuggestionData'](_0x1561b4){const _0x17c0ab=_0x1561b4['id'],_0x418e2a=this['addSuggestionData'](_0x1561b4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4741cb=this['editor']['plugins']['get']('PendingActions'),_0x14241b=_0x418e2a['hasComments'],_0x236279=_0x418e2a['subType']?_0x418e2a['type']+':'+_0x418e2a['subType']:_0x418e2a['type'],_0x1c0774=this['editor']['locale'],_0x3d0ac5=_0x4741cb['add'](o(_0x1c0774,'PENDING_ACTION_SUGGESTION')),_0x11a367={'id':_0x17c0ab,'type':_0x236279,'hasComments':_0x14241b,'data':_0x1561b4['data']||null,'originalSuggestionId':_0x1561b4['originalSuggestionId']||null,'attributes':_0x418e2a['attributes']};this['_adapter']['addSuggestion'](_0x11a367)['then'](_0x50a0af=>{_0x418e2a['_saved']=!0x0,_0x4741cb['remove'](_0x3d0ac5),_0x50a0af&&_0x50a0af['createdAt']&&(this['_suggestions']['get'](_0x17c0ab)['createdAt']=_0x50a0af['createdAt']);})['catch'](_0x43fa26=>{throw _0x351a3b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x418e2a['discard']();}),_0x418e2a['stopListening'](),this['_suggestions']['delete'](_0x418e2a['id']),this['_suggestionState']['delete'](_0x418e2a),_0x43fa26;});}return _0x418e2a;}['_isBlockAttribute'](_0x405767){return this['_blockAttributeKeys']['has'](_0x405767);}['_updateSuggestionData'](_0x5d37d3,_0x79d870){const _0x4516db=this['editor']['plugins']['get']('PendingActions'),_0x5107a9=this['getSuggestion'](_0x5d37d3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5107a9['_saved']){const _0x1b645b=_0x4516db['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d37d3,_0x79d870)['then'](()=>{_0x4516db['remove'](_0x1b645b);});}else _0x5107a9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d37d3,_0x79d870);});}}['_getSuggestionData'](_0x379753){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x175af6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x379753);}['_handleNewSuggestionMarker'](_0x411d5d){const {id:_0x29233c,type:_0x24797c,subType:_0xbc8b4,authorId:_0x2b8c7c}=this['_splitMarkerName'](_0x411d5d),_0x5bf594=this['_suggestions']['get'](_0x29233c)||this['_createSuggestion'](_0x24797c,_0xbc8b4,_0x29233c,_0x2b8c7c,{});switch(this['_checkSuggestionCorrectness'](_0x5bf594,_0x24797c,_0xbc8b4,_0x2b8c7c),this['_suggestionState']['get'](_0x5bf594)){case'notReady':this['_getSuggestionData'](_0x29233c)['then'](_0x46a355=>{let _0x10f225=Promise['resolve']();_0x46a355['hasComments']&&(_0x10f225=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x29233c})),_0x10f225['then'](()=>{this['addSuggestionData'](_0x46a355)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5bf594,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x29233c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5bf594,'ready'),this['fire']('suggestionLoaded',_0x5bf594);break;case'ready':this['fire']('suggestionChanged',_0x5bf594);}return _0x5bf594['addMarkerName'](_0x411d5d),_0x5bf594;}['_refreshSuggestionsChain'](_0x1d1213){const _0x3c9a30=Array['from'](_0x1d1213),_0x22550b=_0x3c9a30['filter'](_0x289502=>'attribute'==_0x289502['type']);this['_refreshAttributeSuggestionsChain'](_0x22550b);const _0x45a3b1=_0x3c9a30['filter'](_0x304917=>!_0x304917['isMultiRange']&&'attribute'!=_0x304917['type']),_0x187c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ecccc=>!_0x1ecccc['isMultiRange']&&'attribute'!=_0x1ecccc['type']),_0x3b0ab1=_0x187c8['filter'](_0x1a5d5f=>!_0x1d1213['has'](_0x1a5d5f)),_0x1cd78b=new Map(_0x187c8['map'](_0x22c067=>[_0x22c067,this['_suggestionFactory']['getSuggestionCallback'](_0x22c067['type'],_0x22c067['subType'],'chain')])),_0x18e89c=new Map(_0x187c8['map'](_0xad8fea=>[_0xad8fea,_0xad8fea['getFirstRange']()])),_0x4b080e=new Set(),_0x4c176a=new Set();for(let _0x3e9f84=0x0;_0x3e9f84<_0x45a3b1['length'];_0x3e9f84++)_0x4cd1df(_0x45a3b1[_0x3e9f84],_0x45a3b1,_0x3e9f84+0x1);for(let _0x1afb71=0x0;_0x1afb71<_0x45a3b1['length'];_0x1afb71++)_0x4cd1df(_0x45a3b1[_0x1afb71],_0x3b0ab1,0x0);const _0x3c5f30=new Set();for(let _0x554bb9=0x0;_0x554bb9<_0x45a3b1['length'];_0x554bb9++){const _0x407f51=_0x45a3b1[_0x554bb9];!_0x4c176a['has'](_0x407f51)&&_0x407f51['previous']&&(_0x3c5f30['add'](_0x407f51['previous']),_0x407f51['previous']['next']===_0x407f51&&(_0x407f51['previous']['next']=null),_0x407f51['previous']=null),!_0x4b080e['has'](_0x407f51)&&_0x407f51['next']&&(_0x3c5f30['add'](_0x407f51['next']),_0x407f51['next']['previous']===_0x407f51&&(_0x407f51['next']['previous']=null),_0x407f51['next']=null);}function _0x4cd1df(_0x1f1cf1,_0x227cff,_0x1324ba){for(let _0x3ab015=_0x1324ba;_0x3ab015<_0x227cff['length'];_0x3ab015++){const _0x5d389e=_0x27254a(_0x1f1cf1,_0x227cff[_0x3ab015]);_0x5d389e&&(_0x5d389e[0x0]['next']=_0x5d389e[0x1],_0x5d389e[0x1]['previous']=_0x5d389e[0x0],_0x4b080e['add'](_0x5d389e[0x0]),_0x4c176a['add'](_0x5d389e[0x1]));}}function _0x27254a(_0x2de045,_0x45be3d){if(_0x2de045['author']['id']!==_0x45be3d['author']['id'])return null;const _0x2d7178=_0x1cd78b['get'](_0x2de045)(_0x2de045,_0x45be3d,_0x18e89c['get'](_0x2de045),_0x18e89c['get'](_0x45be3d));if(!_0x2d7178)return null;return _0x1cd78b['get'](_0x45be3d)(_0x2de045,_0x45be3d,_0x18e89c['get'](_0x2de045),_0x18e89c['get'](_0x45be3d))?_0x2d7178[0x1]['commentThread']&&_0x2d7178[0x1]['commentThread']['length']?null:_0x2d7178:null;}_0x3c5f30['size']&&this['_refreshSuggestionsChain'](_0x3c5f30);}['_refreshAttributeSuggestionsChain'](_0x26ef0f){if(0x0==_0x26ef0f['length'])return;const _0x211e59=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x265085=>'attribute'==_0x265085['type']&&_0x265085['_isDataLoaded']),_0x83da06=[],_0x3efef1=new Map();for(const _0x93f3ef of _0x211e59){const _0x5c8b10=_0x4b9707(_0x93f3ef['attributes']);_0x3efef1['has'](_0x5c8b10)||(_0x3efef1['set'](_0x5c8b10,_0x83da06['length']),_0x83da06['push']([]));const _0x3c892b=_0x3efef1['get'](_0x5c8b10);_0x83da06[_0x3c892b]['push'](_0x93f3ef);}!(function(){_0x83da06['sort']((_0x2b31ff,_0xe76421)=>{const _0x5ee23a=_0x2b31ff[0x0]['createdAt'],_0x34a793=_0xe76421[0x0]['createdAt'];return _0x5ee23a==_0x34a793?_0x2b31ff[0x0]['attributes']['groupId']<_0xe76421[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ee23a<_0x34a793?-0x1:0x1;});for(const _0x251d92 of _0x83da06)_0x251d92['sort']((_0x7b1869,_0x419fd6)=>_0x7b1869['id']<_0x419fd6['id']?-0x1:0x1);}());for(let _0x3502be=0x0;_0x3502be<_0x83da06['length'];_0x3502be++){if(0x0==_0x83da06[_0x3502be]['length'])continue;const _0x5f4a40=[];for(let _0x3e7271=_0x3502be+0x1;_0x3e7271<_0x83da06['length'];_0x3e7271++)0x0!=_0x83da06[_0x3e7271]['length']&&_0x1d6f59(_0x83da06[_0x3502be],_0x83da06[_0x3e7271])&&_0x5f4a40['push'](_0x3e7271);for(const _0x48c4e3 of _0x5f4a40)_0x83da06[_0x3502be]=_0x83da06[_0x3502be]['concat'](_0x83da06[_0x48c4e3]),_0x83da06[_0x48c4e3]=[];}for(const _0x33d5fa of _0x83da06)for(let _0xd91b14=0x0;_0xd91b14<_0x33d5fa['length'];_0xd91b14++)_0x33d5fa[_0xd91b14]['next']=_0x33d5fa[_0xd91b14+0x1]||null;for(const _0x190197 of _0x83da06)for(let _0x45622d=0x0;_0x45622d<_0x190197['length'];_0x45622d++)_0x190197[_0x45622d]['previous']=_0x190197[_0x45622d-0x1]||null;function _0x1d6f59(_0x439d9a,_0x219b48){if(_0x439d9a[0x0]['attributes']['groupId']!==_0x219b48[0x0]['attributes']['groupId']&&_0x439d9a[0x0]['author']!==_0x219b48[0x0]['author'])return!0x1;if(!function(_0x4e6acf,_0x52c003){if(!_0x4e6acf['hasComments']&&!_0x52c003['hasComments'])return!0x0;if(_0x4e6acf['hasComments']&&_0x52c003['hasComments'])return!0x1;if(_0x4e6acf['hasComments']&&_0x52c003['createdAt']<_0x4e6acf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x52c003['hasComments']&&_0x4e6acf['createdAt']<_0x52c003['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x439d9a[0x0],_0x219b48[0x0]))return!0x1;const _0x3a5d0b=Bt(_0x439d9a[0x0]['attributes'],'groupId'),_0x415ca3=Bt(_0x219b48[0x0]['attributes'],'groupId');if(!_0x22c2ec(_0x3a5d0b,_0x415ca3))return!0x1;return!!_0x439d9a['every'](_0xed0b1f=>_0x219b48['some'](_0x170a59=>_0xed0b1f['getFirstRange']()['isEqual'](_0x170a59['getFirstRange']())))&&_0x219b48['every'](_0x39df37=>_0x439d9a['some'](_0x16f02e=>_0x39df37['getFirstRange']()['isEqual'](_0x16f02e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x27a3d6){const _0x5798f1=Array['from'](_0x27a3d6),_0x4d9f9c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38214e=_0x4d9f9c['filter'](_0x27dbee=>!_0x27a3d6['has'](_0x27dbee)),_0x46f620=new Map(_0x5798f1['map'](_0x17b1ef=>[_0x17b1ef,this['_suggestionFactory']['getSuggestionCallback'](_0x17b1ef['type'],_0x17b1ef['subType'],'join')])),_0x5a4bea=new Map(_0x4d9f9c['map'](_0x1a58ed=>[_0x1a58ed,_0x1a58ed['getRanges']()]));for(let _0x33506f=0x0;_0x33506f<_0x5798f1['length'];_0x33506f++){if(_0x449407(this,_0x5798f1[_0x33506f],_0x5798f1,_0x33506f+0x1))return!0x0;}for(let _0x4ed963=0x0;_0x4ed963<_0x5798f1['length'];_0x4ed963++){if(_0x449407(this,_0x5798f1[_0x4ed963],_0x38214e,0x0))return!0x0;}return!0x1;function _0x449407(_0x4f9d06,_0x2bf2ca,_0x4356b1,_0x4690b2){for(let _0xff2228=_0x4690b2;_0xff2228<_0x4356b1['length'];_0xff2228++){const _0x2e665f=_0x4356b1[_0xff2228];if(_0x2e665f['type']!==_0x2bf2ca['type']||_0x2e665f['author']['id']!==_0x2bf2ca['author']['id']||_0x2e665f['subType']!==_0x2bf2ca['subType'])continue;if(!Pt(_0x2bf2ca,_0x2e665f,['groupId']))continue;if('attribute'==_0x2bf2ca['type']&&_0x2bf2ca['data']['oldValue']!=_0x2e665f['data']['oldValue'])continue;if('attribute'==_0x2bf2ca['type']&&_0x4f9d06['_isBlockAttribute'](_0x2bf2ca['data']['key']))continue;if('formatBlock'==_0x2bf2ca['type']){const _0x241221=_0x4f9d06['editor']['model'],_0x357f37=_0x2bf2ca['getContainedElement']();if(_0x357f37&&(_0x241221['schema']['isObject'](_0x357f37)||_0x241221['schema']['isLimit'](_0x357f37)))continue;}const _0x134908=_0x46f620['get'](_0x2bf2ca),_0x3b13a9=_0x5a4bea['get'](_0x2bf2ca),_0x369a41=_0x5a4bea['get'](_0x2e665f),_0x189308=_0x2bf2ca['commentThread']&&_0x2bf2ca['commentThread']['length'],_0x572417=_0x2e665f['commentThread']&&_0x2e665f['commentThread']['length'];if(!_0x189308&&_0x134908(_0x369a41,_0x3b13a9))return _0x4f9d06['_joinSuggestions'](_0x2e665f,_0x2bf2ca),_0x5a4bea['delete'](_0x2bf2ca),!0x0;if(!_0x572417&&_0x134908(_0x3b13a9,_0x369a41))return _0x4f9d06['_joinSuggestions'](_0x2bf2ca,_0x2e665f),_0x5a4bea['delete'](_0x2e665f),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa08068,_0x85638d){if(_0xa08068['isMultiRange']){for(const _0x4b3e3b of _0x85638d['getRanges']())_0xa08068['addRange'](_0x4b3e3b);}else{const _0x284497=_0x85638d['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa08068,this['_model']['createRange'](_0xa08068['getFirstRange']()['start'],_0x284497));}_0x85638d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b9922,_0x5ab082){const _0x2bbea4=_0x3b9922['startsWith']('format')||_0x3b9922['startsWith']('attribute')?'FORMATTING':_0x3b9922['toUpperCase']();return o(this['editor']['locale'],_0x5ab082+'_'+_0x2bbea4+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4ee38f=this['editor'];if(!_0x4ee38f['ui'])return;const {ariaLiveAnnouncer:_0x1452ab}=_0x4ee38f['ui'];_0x2dea51(this['_model'],({left:_0x55938e,entered:_0x28f47a})=>{for(const _0x553b7c of _0x55938e){const {group:_0xe693c1,type:_0x3cc91e}=this['_splitMarkerName'](_0x553b7c['name']);if('suggestion'===_0xe693c1){_0x1452ab['announce'](this['_getMarkerAnnouncementText'](_0x3cc91e,'LEAVE'));break;}}for(const _0x319c2 of _0x28f47a){const {group:_0x5b8521,type:_0x26f1a8}=this['_splitMarkerName'](_0x319c2['name']);if('suggestion'===_0x5b8521){_0x1452ab['announce'](this['_getMarkerAnnouncementText'](_0x26f1a8,'ENTER'));break;}}});}['_processAttributeChanges'](_0x47e625){if(this['_recordAttributeSuggestions'])return!0x1;const _0x23d27a=this['editor'],_0x1a5d13=_0x23d27a['model']['document']['differ']['getChanges']();if(0x0==_0x1a5d13['length'])return!0x1;const _0x4b93a6=[],_0x393e70=_0x1a5d13['filter'](_0xfa3bea=>'attribute'==_0xfa3bea['type']),_0x5646d5=_0x1a5d13['filter'](_0x596e06=>'insert'==_0x596e06['type']&&'$text'!=_0x596e06['name']),_0x17feda=_0x1a5d13['filter'](_0x165ab8=>'remove'==_0x165ab8['type']&&'$text'!=_0x165ab8['name']);for(const _0x474b67 of _0x393e70)_0x4b93a6['push']({'key':_0x474b67['attributeKey'],'newValue':_0x474b67['attributeNewValue'],'oldValue':_0x474b67['attributeOldValue'],'range':Ot(_0x474b67['range'],_0x23d27a['model'])});for(const _0x436f53 of _0x5646d5){const _0x8ee4e0=_0x17feda['find'](_0x269774=>_0x269774['position']['isEqual'](_0x436f53['position']));_0x8ee4e0&&_0x4b93a6['push']({'key':m,'newValue':_0x436f53['name'],'oldValue':_0x8ee4e0['name'],'range':_0x23d27a['model']['createRangeOn'](_0x436f53['position']['nodeAfter'])});}return 0x0!=_0x4b93a6['length']&&this['_reduceExistingSuggestions'](_0x47e625,_0x4b93a6);}['_processAttributeSuggestions'](_0x469974){let _0x2c0214=!0x1;const _0x27aa1f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c8c7a=>_0x1c8c7a['data']['newRange']&&_0x1c8c7a['name']['startsWith']('suggestion:attribute:'));for(const _0x361b84 of _0x27aa1f){const {subType:_0x7dd8f3,id:_0x5af166}=this['_splitMarkerName'](_0x361b84['name']),_0x4d0daa=_0x7dd8f3['split']('|')[0x0];for(const _0x127fbd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x127fbd['id']!=_0x5af166&&'attribute'==_0x127fbd['type']&&_0x127fbd['data']&&_0x127fbd['data']['key']==_0x4d0daa&&_0x127fbd['getFirstRange']()['isIntersecting'](_0x361b84['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x127fbd,_0x361b84['data']['newRange'],_0x469974),_0x2c0214=!0x0);}return _0x2c0214;}['_recordAttributeChanges'](_0x2b7f73){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2b7f73();}['_isRegisteredAttribute'](_0x32c885){const _0x55f44=this['_isBlockAttribute'](_0x32c885),_0x5d9e24=this['_inlineAttributeKeys']['has'](_0x32c885);return _0x55f44||_0x5d9e24;}['_reduceExistingSuggestions'](_0x2ed598,_0x4d0542){if(0x0==_0x4d0542['length'])return!0x1;let _0x5e2fd6=!0x1;for(const _0x189d24 of _0x4d0542){const _0x2bfb12=this['_findSuggestions'](_0x189d24['range'],'attribute')['filter'](_0x4d2b05=>!_0x4d2b05['meta']['isNextTo'])['map'](_0x436dcf=>_0x436dcf['suggestion']),_0x5d5d8a=_0x4b9707({'newValue':_0x189d24['newValue']});_0x2bfb12['filter'](_0x1f6ed2=>{const [_0xe08260,_0x4faeb4]=_0x1f6ed2['subType']['split']('|');return _0xe08260==_0x189d24['key']&&_0x4faeb4!=_0x5d5d8a;})['forEach'](_0x2071af=>{this['_reduceSuggestionAttributeRange'](_0x2071af,_0x189d24['range'],_0x2ed598),_0x5e2fd6=!0x0;});}return _0x5e2fd6;}['_reduceSuggestionAttributeRange'](_0x2b853e,_0x2aeda3,_0x164916){const _0x1c5c8e=_0x2b853e['getFirstRange']()['getDifference'](_0x2aeda3);0x0!==_0x1c5c8e['length']?0x1!==_0x1c5c8e['length']?this['_breakSuggestionMarker'](_0x2b853e,_0x2aeda3['start'],_0x2aeda3['end']):this['_setSuggestionRange'](_0x2b853e,_0x1c5c8e[0x0]):_0x164916['removeMarker'](_0x2b853e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x435cf8){this['_editor']=_0x435cf8,this['_model']=_0x435cf8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a4f67,_0x460336,_0x5d685d,_0x56bde7,_0x52dde9,_0x4fff36){return new u(this['_model'],{'type':_0x2a4f67,'subType':_0x460336,'id':_0x5d685d,'author':_0x56bde7,'creator':_0x56bde7,'attributes':_0x52dde9,'onAttributesChange':_0x4fff36,'onAccept':(..._0x44d0d8)=>this['getSuggestionCallback'](_0x2a4f67,_0x460336,'accept')(..._0x44d0d8),'onDiscard':(..._0x4a2efb)=>this['getSuggestionCallback'](_0x2a4f67,_0x460336,'discard')(..._0x4a2efb)});}['registerCustomCallback'](_0x1570ba,_0x159bb9,_0x66abad,_0x3764c1){const _0x54e5d7=_0x1570ba+':'+_0x159bb9+':'+_0x66abad;this['_customCallbacks']['set'](_0x54e5d7,_0x3764c1);}['getSuggestionCallback'](_0x24394b,_0x2ac9d9,_0x3d60e3){const _0x2e01cb=_0x24394b+':'+_0x2ac9d9+':'+_0x3d60e3;return this['_customCallbacks']['get'](_0x2e01cb)||this['_defaultCallbacks']['get'](_0x24394b+':'+_0x3d60e3);}['_registerDefaultCallbacks'](){const _0xf57579=()=>!0x1,_0x5196dc=_0x56e28a=>{_0x56e28a['sort']((_0x13716c,_0x581981)=>_0x13716c['start']['isBefore'](_0x581981['start'])?0x1:-0x1),this['_model']['change'](_0x3c40e0=>{for(const _0x1bb9e8 of _0x56e28a){let _0x1bb600;_0x1bb600=_0x1bb9e8['end']['isAtEnd']&&_0x1bb9e8['end']['parent']==_0x1bb9e8['start']['nodeAfter']?_0x3c40e0['createSelection'](_0x1bb9e8['start']['nodeAfter'],'on'):_0x3c40e0['createSelection'](_0x1bb9e8),this['_model']['deleteContent'](_0x1bb600,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x17a2c1=(_0xd91c06,_0xa59515)=>{_0xa59515&&this['_model']['change'](_0x39056b=>{const {commandName:_0x2be3fb,commandParams:_0x2facba=[]}=_0xa59515,_0x863a3a=_0xd91c06['map'](_0x198769=>(Tt(_0x198769)&&(_0x198769=this['_model']['createRange'](_0x198769['end'])),_0x198769))['filter'](_0x562041=>'$graveyard'!==_0x562041['root']['rootName']);if(_0x863a3a['length']<0x1)return;const _0x5ddd4e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd571cb=>_0x828bf8['fromRange'](_0xd571cb));_0x39056b['setSelection'](_0x863a3a);for(const _0xeca737 of this['_editor']['commands']['commands']())_0xeca737['refresh']();_0x2facba['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2be3fb,..._0x2facba);const _0x1c70cd=_0x5ddd4e['filter'](_0x11aa74=>'$graveyard'!=_0x11aa74['root']['rootName']);_0x1c70cd['length']>0x0&&_0x39056b['setSelection'](_0x1c70cd);for(const _0xf5c2ca of _0x5ddd4e)_0xf5c2ca['detach']();});},_0x24d2e0=(_0x145dba,_0xe61a8f)=>0x1==_0x145dba['length']&&0x1==_0xe61a8f['length']&&_0x145dba[0x0]['end']['isEqual'](_0xe61a8f[0x0]['start']),_0x335cc8=(_0x3608c0,_0x633de2,_0x4122fe,_0x27a313)=>Ft(_0x3608c0,_0x633de2,_0x4122fe,_0x27a313,this['_model'])?[_0x3608c0,_0x633de2]:Ft(_0x633de2,_0x3608c0,_0x27a313,_0x4122fe,this['_model'])?[_0x633de2,_0x3608c0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf57579),this['_defaultCallbacks']['set']('insertion:discard',_0x5196dc),this['_defaultCallbacks']['set']('insertion:join',_0x24d2e0),this['_defaultCallbacks']['set']('insertion:chain',_0x335cc8),this['_defaultCallbacks']['set']('deletion:accept',_0x5196dc),this['_defaultCallbacks']['set']('deletion:discard',_0xf57579),this['_defaultCallbacks']['set']('deletion:join',_0x24d2e0),this['_defaultCallbacks']['set']('deletion:chain',_0x335cc8),this['_defaultCallbacks']['set']('formatInline:accept',_0x17a2c1),this['_defaultCallbacks']['set']('formatInline:discard',_0xf57579),this['_defaultCallbacks']['set']('formatInline:join',_0x24d2e0),this['_defaultCallbacks']['set']('formatInline:chain',_0xf57579),this['_defaultCallbacks']['set']('formatBlock:accept',_0x17a2c1),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf57579),this['_defaultCallbacks']['set']('formatBlock:join',_0x24d2e0),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf57579),this['_defaultCallbacks']['set']('attribute:accept',_0xf57579),this['_defaultCallbacks']['set']('attribute:discard',(_0x215189,_0x270ca5)=>{if(!_0x270ca5)return;const _0x4e20d7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5732ad=>{if(_0x270ca5['key']==m)for(const _0x5a1f14 of _0x215189){const _0x31d238=_0x5a1f14['start']['nodeAfter'],_0x2cf579=_0x270ca5['oldValue'];_0x5732ad['rename'](_0x31d238,_0x2cf579);}else{if(_0x4e20d7['_isBlockAttribute'](_0x270ca5['key'])){for(const _0x52fb95 of _0x215189)void 0x0!==_0x270ca5['oldValue']?_0x5732ad['setAttribute'](_0x270ca5['key'],_0x270ca5['oldValue'],_0x52fb95['start']['nodeAfter']):_0x5732ad['removeAttribute'](_0x270ca5['key'],_0x52fb95['start']['nodeAfter']);}else{for(const _0x43a240 of _0x215189)_0x270ca5['oldValue']?_0x5732ad['setAttribute'](_0x270ca5['key'],_0x270ca5['oldValue'],_0x43a240):_0x5732ad['removeAttribute'](_0x270ca5['key'],_0x43a240);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24d2e0);}}function Rt(_0x15a1d0,_0x2a44e7,_0xd14bac){for(const _0x305aa7 of _0x2a44e7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x305aa7['root']==_0x305aa7)return!0x1;if(!_0xd14bac['containsItem'](_0x305aa7))return!0x1;if(_0x15a1d0['isObject'](_0x305aa7)||_0x15a1d0['isLimit'](_0x305aa7))return!0x0;}return!0x1;}function Tt(_0xfda3df){return _0xfda3df['end']['parent']==_0xfda3df['start']['nodeAfter']&&_0xfda3df['end']['isAtStart'];}function Et(_0x5a1217,_0x163df2,_0x47a942,_0xc6fc1c){const _0x4fd6b4=_0x145332=>!_0x145332['item']['is']('$textProxy')&&!_0xc6fc1c['isObject'](_0x145332['item']),_0x23e9a7=_0x5a1217['start']['getLastMatchingPosition'](_0x4fd6b4),_0x4ce9e1=_0x5a1217['end']['getLastMatchingPosition'](_0x4fd6b4,{'direction':'backward'});return(!_0x5a1217['start']['isEqual'](_0x23e9a7)||!_0x5a1217['end']['isEqual'](_0x4ce9e1))&&(_0x23e9a7['isBefore'](_0x4ce9e1)?_0x47a942['updateMarker'](_0x163df2,{'range':_0x47a942['createRange'](_0x23e9a7,_0x4ce9e1)}):_0x47a942['removeMarker'](_0x163df2),!0x0);}function Vt(_0x27d4f8){return _0x4b9707(_0x27d4f8);}function Ut(_0x292deb){const _0x15a310=_0x292deb['start']['nodeAfter'];return _0x15a310&&_0x15a310['is']('element');}function Ot(_0x381c8d,_0x390e2f){return null==_0x381c8d['end']['nodeBefore']&&_0x381c8d['end']['parent']==_0x381c8d['start']['nodeAfter']?Gt(_0x381c8d['start']['nodeAfter'],_0x390e2f):_0x381c8d;}function Gt(_0x51c460,_0x4ffe85){const _0x59c5b9=_0x4ffe85['schema']['isObject'](_0x51c460)||_0x4ffe85['schema']['isSelectable'](_0x51c460);return _0x4ffe85['createRange'](_0x4ffe85['createPositionAt'](_0x51c460,'before'),_0x59c5b9?_0x4ffe85['createPositionAfter'](_0x51c460):_0x4ffe85['createPositionAt'](_0x51c460,'end'));}function Ft(_0x48652c,_0x5317bf,_0xe9f76a,_0x798877,_0x2842de){if(!Pt(_0x48652c,_0x5317bf))return!0x1;if(_0xe9f76a['end']['isEqual'](_0x798877['start']))return!0x0;if(_0x48652c['type']!=_0x5317bf['type'])return!0x1;if(!_0xe9f76a['end']['isTouching'](_0x798877['start']))return!0x1;const _0x971e3b=_0x2842de['createRange'](_0xe9f76a['end'],_0x798877['start'])['getWalker']();for(const _0x360494 of _0x971e3b)if(['elementStart','elementEnd']['includes'](_0x360494['type'])&&_0x2842de['schema']['isLimit'](_0x360494['item']))return!0x1;return!0x0;}function Pt(_0x37a605,_0x18c6c3,_0x5cb753=[]){return!(!_0x37a605['_isDataLoaded']||!_0x18c6c3['_isDataLoaded'])&&_0x22c2ec(Bt(_0x37a605['attributes'],_0x5cb753),Bt(_0x18c6c3['attributes'],_0x5cb753));}function Lt(_0x45230d,_0x2a37ea){const _0xfa5ac0=Ht(_0x45230d['attributes']),_0x442e7f=Ht(_0x2a37ea);if(!_0x45230d['_isDataLoaded'])return!0x1;for(const _0x183407 of Object['keys'](_0x442e7f))if(!_0x22c2ec(_0xfa5ac0[_0x183407],_0x442e7f[_0x183407]))return!0x1;return!0x0;}function Ht(_0x5caca5){const _0x5ac59c=Object['assign']({},_0x5caca5);return delete _0x5ac59c['skipNestingCheck'],delete _0x5ac59c['tablePasteChainId'],_0x5ac59c;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3e7508(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3887e7,_0x4eb334,_0x4526a7,_0x584d66){super(),this['model']=_0x4eb334,this['view']=_0x4526a7,this['commentThreadController']=_0x584d66,this['_editor']=_0x3887e7,this['_acceptCommand']=_0x3887e7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3887e7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x9592de,_0x451fe9)=>_0x9592de||_0x451fe9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xcfa71=>_0xcfa71&&this['_editor']['model']['canEditAt'](_0x4eb334['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa4b43f=>_0xa4b43f&&this['_editor']['model']['canEditAt'](_0x4eb334['getRanges']())),this['_pendingAction']=null,_0x4526a7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4526a7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4526a7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4526a7,'change:isDirty',()=>{_0x4526a7['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 _0x5349a7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5349a7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5f0a0f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x361f56,_0x48c48d,_0x69471d,_0x5284e5){super(_0x361f56),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x48c48d['authoredAt']),this['bind']('authoredAt')['to'](_0x48c48d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x48c48d,this['_localUser']=_0x69471d,this['_config']=_0x5284e5,_0x5284e5['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:_0x5cd925}=this['_config'];this['commentsListView']=new _0x5cd925(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',_0x2f311d=>_0x2f311d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a64ed,_0x462ca7)=>_0x3a64ed||!!_0x462ca7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xc12577}=this['_config'],_0x261ba5=new _0xc12577(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x566d43=_0x261ba5['commentInputView'];return _0x261ba5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x566d43,'value',(_0x339049,_0x4056de,_0x529a91)=>!!_0x529a91||_0x339049&&!_0x4056de),_0x566d43['on']('submit',(_0xe3af8b,_0x2ed1a0)=>{this['fire']('addComment',_0x2ed1a0),_0x566d43['editor']['setData']('');}),_0x566d43['on']('cancel',()=>this['focus']()),_0x566d43['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x261ba5;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x21b972,_0x5308d9,_0x15aa61,_0x270590){super(_0x21b972,_0x5308d9,_0x15aa61,_0x270590),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x83dfb6=>_0x83dfb6&&_0x83dfb6[0x0]?_0x83dfb6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3943f3,_0x4ad0c7)=>{let _0xdc5cf6='';for(const _0x1da355 of _0x3943f3)_0xdc5cf6+='<p>'+ds(_0x1da355['content'],_0x1da355['color'])+'</p>';return _0x4ad0c7?_0xdc5cf6:_0x297855(_0xdc5cf6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x21b972,'Accept\x20suggestion'),_0x300afb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x21b972,'Discard\x20suggestion'),_0x300afb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2b0c55(_0x21b972,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x449b76=this['bindTemplate'],_0x207dec=[{'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':_0x449b76['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x449b76['to']('authoredAt',_0x204b7e=>this['_config']['formatDateTime'](_0x204b7e))}]}]},{'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']&&_0x207dec['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5bc826={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x449b76['if']('isActive','ck-suggestion-wrapper--active'),_0x449b76['to']('type',_0x1631a2=>'ck-suggestion-'+_0x1631a2),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':_0x207dec}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5bc826['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)),_0x5bc826;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x8c2d33,_0x511de1,_0x3b3af1)=>{this['_descriptionElement']['innerHTML']=_0x3b3af1;});}['_createButton'](_0x4d00cb,_0x3936d9,_0x1b0feb,_0x3c021d,_0xd8e5d7){const _0x44294d=new _0x563aa5(this['locale']);return _0x44294d['set']({'label':_0x4d00cb,'icon':_0x3936d9,'tooltip':!0x0,'tooltipPosition':_0xd8e5d7}),_0x44294d['extendTemplate']({'attributes':{'class':_0x1b0feb}}),_0x44294d['on']('execute',()=>{this['fire'](_0x3c021d,this['_model']['id']);}),_0x44294d;}['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(_0x125ebb,_0x529d3a){let _0x1bb529='';return _0x1bb529+=_0x125ebb['split']('*')['map']((_0x162dfa,_0x3c51d8)=>_0x3c51d8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x162dfa)+'</span>':us(_0x162dfa))['join'](''),_0x529d3a&&(_0x1bb529+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x529d3a['value']+'\x22\x20title=\x22'+_0x529d3a['title']+'\x22></span>'),_0x1bb529;}function us(_0x1c686a){const _0x149047=document['createElement']('span');return _0x149047['innerText']=_0x1c686a,_0x149047['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 _0x4f5a27{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5aeff2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x357968){super(_0x357968),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5b4760=this['editor']['config'];_0x5b4760['define']('trackChanges.SuggestionThreadView',ne),_0x5b4760['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5b4760['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36d23f,_0x2fdb59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e9163,_0x283773]of this['_handleControllerBuffer']){const _0x54147f=this['_suggestionToController']['has'](_0x5e9163);_0x54147f||_0x283773?_0x54147f&&_0x283773&&this['_destroyController'](_0x5e9163):this['_initializeController'](_0x5e9163);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36d23f,_0x2fdb59);}['init'](){const _0x4c9f81=this['editor'],_0x16f2aa=_0x4c9f81['plugins']['get']('TrackChangesEditing'),_0x32546a=_0x4c9f81['plugins']['get']('Annotations'),_0x5f0bac=_0x4c9f81['plugins']['get']('EditorAnnotations'),_0x4e6367=_0x4c9f81['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5f0bac['addSourceCollector'](()=>{const _0x166e1a=[];for(const [_0x3ffb54,_0x58f28e]of Array['from'](this['_suggestionToController'])){const _0x1b0d1c=_0x3ffb54['getAllAdjacentSuggestions'](),_0x2faab0=[];for(const _0x6c60ce of _0x1b0d1c){if(!_0x6c60ce['isInContent'])continue;if(_0x6c60ce['isMultiRange']){_0x2faab0['push'](..._0x6c60ce['getRanges']());continue;}const _0x44d53a=_0x6c60ce['getFirstRange']();if(_0x2faab0['length']>0x0){const _0x5ae2d7=_0x2faab0[0x0]['getJoined'](_0x44d53a);if(_0x5ae2d7){_0x2faab0[0x0]=_0x5ae2d7;continue;}}_0x2faab0['push'](_0x44d53a);}_0x166e1a['push']([_0x58f28e['view'],_0x2faab0]);}return _0x166e1a;}),this['listenTo'](_0x16f2aa,'suggestionLoaded',(_0x4509fd,_0x10a232)=>{this['listenTo'](_0x10a232,'change:previous',(_0x452d3b,_0xc8f5f5,_0x1bc4ef,_0x1bfef3)=>{_0x10a232['isInContent']&&(null==_0x1bc4ef?(this['_updateController'](_0x1bfef3['head']),this['_handleSuggestionControllerDelayed'](_0x10a232,!0x1)):(this['_updateController'](_0x1bc4ef['head']),null==_0x1bfef3&&this['_handleSuggestionControllerDelayed'](_0x10a232,!0x0)));}),null!==_0x10a232['previous']?this['_updateController'](_0x10a232['head']):this['_handleSuggestionControllerDelayed'](_0x10a232,!0x1);}),this['listenTo'](_0x16f2aa,'suggestionUnloaded',(_0x27deec,_0x49ceac,_0x3e3b4f)=>{this['stopListening'](_0x49ceac,'change:previous'),this['_handleControllerBuffer']['delete'](_0x49ceac),this['_suggestionToController']['has'](_0x49ceac)&&this['_destroyController'](_0x49ceac),_0x3e3b4f&&this['_updateController'](_0x3e3b4f['head']);}),this['listenTo'](_0x16f2aa,'suggestionChanged',(_0x5d450c,_0x183496)=>{this['_updateController'](_0x183496);}),this['listenTo'](_0x32546a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e6367,'addComment',(_0x4f6c98,{threadId:_0x376e30,isFromAdapter:_0x1d074f})=>{if(_0x1d074f||!_0x16f2aa['hasSuggestion'](_0x376e30))return;const _0x101783=_0x16f2aa['getSuggestion'](_0x376e30);this['_suggestionToController']['get'](_0x101783)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3fe909=this['editor']['plugins']['get']('Annotations'),_0x88bae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a355d=Array['from'](_0x3fe909['activeAnnotations'],_0x559693=>_0x559693['innerView'])['filter'](_0x338430=>this['_viewToController']['has'](_0x338430)),_0x122d0c=[];for(const _0x1c9667 of _0x1a355d){const _0x9a6103=this['_viewToController']['get'](_0x1c9667)['model']['getAllAdjacentSuggestions']();_0x122d0c['push'](..._0x9a6103['reduce']((_0x272016,_0x191263)=>[..._0x272016,..._0x191263['getMarkerNames']()],[]));}_0x88bae['activeMarkers']=_0x122d0c;}['_addUIComponentsToFactory'](){const _0x281c36=this['editor'],_0x51c944=_0x281c36['locale'],_0x9d19bd=o(_0x51c944,'Track\x20changes'),_0x32035b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x9d19bd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1bc751 of _0x32035b)if(ae(_0x1bc751)){const _0xb8d5a5=_0x281c36['commands']['get'](_0x1bc751['model']['commandName']);_0x1bc751['model']['bind']('isOn','isEnabled')['to'](_0xb8d5a5,'value','isEnabled');}_0x281c36['ui']['componentFactory']['add']('trackChanges',_0x3d7296=>this['_createToolbarButton'](_0x3d7296,_0x32035b,_0x9d19bd)),_0x281c36['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15416f=>this['_createMenuBarMenu'](_0x15416f,_0x32035b,_0x9d19bd));}['_createToolbarButton'](_0x1da32d,_0x2d6169,_0x1c1066){const _0x2d7dc0=zt(_0x1da32d,Zt),_0x4cb13d=this['editor']['commands']['get']('trackChanges');_0x2d7dc0['buttonView']['set']({'tooltip':_0x1c1066,'label':_0x1c1066,'icon':ie}),_0x2d7dc0['buttonView']['bind']('isOn')['to'](_0x4cb13d,'value'),_0x2d7dc0['buttonView']['on']('execute',()=>{_0x4cb13d['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2d7dc0,_0x2d6169,{'role':'menu'});const _0x2de74a=[];for(const _0x2e37fd of _0x2d6169)ae(_0x2e37fd)&&_0x2de74a['push'](this['editor']['commands']['get'](_0x2e37fd['model']['commandName']));const _0x4134c2=_0x2d7dc0['buttonView'];return _0x4134c2['actionView']['unbind']('isEnabled'),_0x4134c2['arrowView']['unbind']('isEnabled'),_0x4134c2['actionView']['bind']('isEnabled')['to'](_0x4cb13d,'isEnabled'),_0x4134c2['arrowView']['bind']('isEnabled')['toMany'](_0x2de74a,'isEnabled',(..._0x1fab9d)=>_0x1fab9d['some'](_0x5730b6=>_0x5730b6)),_0x2d7dc0['on']('execute',_0x4e67ae=>{this['editor']['execute'](_0x4e67ae['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d7dc0;}['_createMenuBarMenu'](_0x64e3ff,_0x1772d5,_0x10464a){const _0x2075ad=new Kt(_0x64e3ff),_0x52f084=this['editor']['commands']['get']('trackChanges');_0x2075ad['buttonView']['set']({'label':_0x10464a,'icon':ie});const _0x3d2537=new Qt(_0x64e3ff);for(const _0x17d118 of _0x1772d5){if('separator'==_0x17d118['type']){_0x3d2537['items']['add'](new Jt(_0x64e3ff));continue;}const _0x288bb0=new Xt(_0x64e3ff,_0x2075ad),_0x32482e=new Yt(_0x64e3ff),_0x3817cf=_0x17d118['model'];_0x32482e['bind'](...Object['keys'](_0x3817cf))['to'](_0x3817cf),_0x32482e['delegate']('execute')['to'](_0x2075ad),_0x32482e['on']('execute',()=>{this['editor']['execute'](_0x3817cf['commandName']),this['editor']['editing']['view']['focus']();}),_0x288bb0['children']['add'](_0x32482e),_0x3d2537['items']['add'](_0x288bb0);}return _0x2075ad['bind']('isEnabled')['to'](_0x52f084,'isEnabled'),_0x2075ad['panelView']['children']['add'](_0x3d2537),_0x2075ad;}['_initializeController'](_0xbc9f51){const _0x476e77=this['editor'],_0x275c41=_0x476e77['config'],_0x1e9ec3=_0x476e77['plugins']['get']('Annotations'),_0x2a0f46=_0x476e77['plugins']['get']('CommentsRepository'),_0x5a50cd=_0x476e77['plugins']['get']('EditorAnnotations'),_0x228125=_0x476e77['plugins']['get'](_0x5aeff2)['me'],_0x16ef06=_0x275c41['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x38fe61,CommentThreadInputView:_0xd4e260}=_0x476e77['plugins']['get']('CommentsUI');let _0x40c3fe,_0xe762ad;this['_annotationViews']['has'](_0xbc9f51['id'])?(_0xe762ad=this['_annotationViews']['get'](_0xbc9f51['id']),_0x40c3fe=_0xe762ad['mainView']):(_0x40c3fe=new _0x16ef06(_0x476e77['locale'],_0xbc9f51,_0x228125,{'disableComments':this['_disableComments'],'editorConfig':_0x275c41['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x275c41['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x275c41['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x275c41['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x160ec9(_0x275c41['get']('locale')),'CommentView':_0x275c41['get']('comments')['CommentView'],'CommentsListView':_0x38fe61,'CommentThreadInputView':_0xd4e260}),_0x40c3fe['acceptButton']['on']('execute',()=>{_0x476e77['editing']['view']['focus']();}),_0x40c3fe['discardButton']['on']('execute',()=>{_0x476e77['editing']['view']['focus']();}),_0xe762ad=_0x1e9ec3['createAnnotationView'](this['editor']['locale'],_0x40c3fe),_0xe762ad['bind']('isDirty')['to'](_0x40c3fe,'isDirty'),_0xe762ad['bind']('length')['to'](_0x40c3fe),_0xe762ad['bind']('type')['to'](_0x40c3fe,'type',_0x3afa27=>'suggestion-'+_0x3afa27),this['_annotationViews']['set'](_0xbc9f51['id'],_0xe762ad));const _0x4a4622=_0x2a0f46['createCommentThreadController'](_0xbc9f51['commentThread'],_0x40c3fe),_0x459b64=new oe(_0x476e77,_0xbc9f51,_0x40c3fe,_0x4a4622),_0x10cd50=_0xbc9f51['getAllAdjacentSuggestions']()['filter'](_0xfa8860=>_0xfa8860['isInContent']);_0x40c3fe['descriptionParts']=_0x476e77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x10cd50),this['_suggestionToController']['set'](_0xbc9f51,_0x459b64),this['_viewToController']['set'](_0x40c3fe,_0x459b64);const _0x1bc03b=_0x1e9ec3['createAnnotation']({'view':_0xe762ad,'target':()=>{const _0x1254fb=[],_0x13ff04=_0xbc9f51['getAllAdjacentSuggestions']()['filter'](_0x319f54=>_0x319f54['isInContent']);for(const _0x1f2077 of _0x13ff04)_0x1254fb['push'](..._0x1f2077['getMarkers']());return _0x7165d0(_0x476e77['editing'],_0x1254fb);},'type':()=>'suggestion-'+_0x459b64['view']['type']});_0x2a0f46['_bindAnnotationToEditors'](_0x40c3fe,_0x1bc03b),_0x1e9ec3['add'](_0x1bc03b),_0x5a50cd['registerAnnotation'](_0x1bc03b);}['_destroyController'](_0x99453f){const _0x5f5acb=this['editor']['plugins']['get']('CommentsRepository'),_0x285fdb=this['editor']['plugins']['get']('Annotations'),_0x57747f=this['_suggestionToController']['get'](_0x99453f),_0x1004e2=_0x57747f['view'],_0xc2cec5=_0x285fdb['getByInnerView'](_0x1004e2);_0x5f5acb['_unbindEditors'](_0x1004e2),_0xc2cec5&&_0x285fdb['remove'](_0xc2cec5),this['_suggestionToController']['delete'](_0x99453f),this['_viewToController']['delete'](_0x1004e2),_0x57747f['destroy']();}['_updateController'](_0x52d14c){if(!_0x52d14c['isInContent']||!this['_suggestionToController']['has'](_0x52d14c))return;const _0x5345a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fd057=this['_suggestionToController']['get'](_0x52d14c),_0x1fc405=_0x52d14c['getAllAdjacentSuggestions']();_0x1fd057['view']['descriptionParts']=_0x5345a0['descriptionFactory']['getDescriptions'](_0x1fc405);}['destroy'](){for(const _0x44a0c0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x44a0c0);for(const _0x1b6958 of this['_annotationViews']['values']())_0x1b6958['mainView']['destroy']();super['destroy']();}}function ae(_0x42b1a9){return'model'in _0x42b1a9;}class k extends _0x4f5a27{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x353f49){this['editor']['plugins']['get'](p)['adapter']=_0x353f49;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x14e082){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x14e082);}['getSuggestions']({skipNotAttached:_0x444e6a=!0x1,toJSON:_0xe43b44=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x444e6a,'toJSON':_0xe43b44});}['getSuggestion'](_0x95855c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x95855c);}}const T=['Pagination'];class P extends _0x4f5a27{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x44f905=this['editor'];if(_0x44f905['config']['define']('trackChangesData.editorCreator',_0x531663=>{const _0x2e1d5f=_0x44f905['model']['document']['getRootNames']()['reduce']((_0x3dd804,_0x4acb7a)=>(_0x3dd804[_0x4acb7a]='',_0x3dd804),{});return _0x44f905['constructor']['create'](_0x2e1d5f,_0x531663);}),'function'!=typeof _0x44f905['config']['get']('trackChangesData')['editorCreator'])throw new _0x175af6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1227da){return N(this['editor'],!0x0,_0x1227da);}['getDataWithDiscardedSuggestions'](_0x340fab){return N(this['editor'],!0x1,_0x340fab);}}class D extends _0x4f5a27{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x94f153){super(_0x94f153),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(_0x4dc125){return void 0x0!==_0x4dc125['getRootsAttributes'];}async function N(_0x90ef6e,_0x54d8a,_0x4fa797){const _0x1f4e18=_0x25fe9b(_0x90ef6e,T);_0x1f4e18['plugins']['push'](p,D),_0x1f4e18['rootsAttributes']=v(_0x90ef6e)?_0x90ef6e['getRootsAttributes']():void 0x0;const _0x1531b6=document['createDocumentFragment'](),_0x4ebbf9=_0x90ef6e['config']['get']('trackChangesData')['editorCreator'],_0x4336c3=await _0x4ebbf9(_0x1f4e18,()=>function(_0x216cc5){const _0x485deb=document['createElement']('div');return _0x216cc5['appendChild'](_0x485deb),_0x485deb;}(_0x1531b6));!function(_0x3971fa,_0x9a2005){const _0xad4a45=_0x3971fa['model']['document']['getRootNames']()['reduce']((_0x4d3f05,_0x24cb72)=>(_0x4d3f05[_0x24cb72]=_0x3971fa['data']['get']({'rootName':_0x24cb72}),_0x4d3f05),{}),_0x12e870=_0x3971fa['plugins']['get']('Users')['users']['map'](_0xd0ebec=>({'id':_0xd0ebec['id'],'name':_0xd0ebec['name']})),_0x4e3117=_0x3971fa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x308c44=_0x3971fa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b7cf9=_0x9a2005['plugins']['get']('Users'),_0x48214c=_0x9a2005['plugins']['get']('TrackChangesEditing'),_0x4a7b77=_0x9a2005['plugins']['get']('CommentsRepository');for(const _0x19055c of _0x12e870)_0x1b7cf9['getUser'](_0x19055c['id'])||_0x1b7cf9['addUser'](_0x19055c);_0x1b7cf9['me']||_0x1b7cf9['useAnonymousUser']();for(const _0x3da404 of _0x308c44)_0x4a7b77['addCommentThread'](_0x3da404);for(const _0xb4447c of _0x4e3117)_0x48214c['addSuggestionData'](_0xb4447c);_0x9a2005['data']['set'](_0xad4a45);}(_0x90ef6e,_0x4336c3),_0x4336c3['execute'](_0x54d8a?'acceptAllSuggestions':'discardAllSuggestions');const _0x177536=v(_0x4336c3)?_0x4336c3['getFullData'](_0x4fa797):_0x4336c3['data']['get'](_0x4fa797);return await _0x4336c3['destroy'](),_0x177536;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x3b57f6,PendingActions as _0x5c81e6,icons as _0x55c165}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x144d61,ObservableMixin as _0x50b673,uid as _0x386e7f,insertToPriorityArray as _0x2a62b1,priorities as _0x3ed224,logWarning as _0x57e9f2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x44a005,View as _0x18a39e,ButtonView as _0x37aa4e,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 _0x17c546,hashObject as _0xf37622,surroundingMarkersDetector as _0x461911,trimHtml as _0x1eb056,UserView as _0x321001,getDateTimeFormatter as _0x2022c8,getAllMarkersDomElementsSorted as _0x357ffb,sanitizeEditorConfig as _0x5469e8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x435467,LiveRange as _0x2e923c,LivePosition as _0x30dd34}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x588271,toWidget as _0x5055e8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x6e103,set as _0x42a622,isEqual as _0x1b166e,unset as _0x3e75d8,omit as Bt}from'lodash-es';import{Delete as _0x421719,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xe252d7,ShiftEnter as _0x152eab}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1dd139,_0x1b8992){super(_0x1dd139),this['_enabledCommands']=_0x1b8992,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 _0x38d295 of this['editor']['commands']['commands']())_0x38d295['affectsData']&&!this['_enabledCommands']['has'](_0x38d295)&&_0x38d295['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1e8c25 of this['editor']['commands']['commands']())_0x1e8c25['affectsData']&&!this['_enabledCommands']['has'](_0x1e8c25)&&_0x1e8c25['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x3807dc,_0x753127){super(_0x3807dc),this['_suggestions']=_0x753127,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x179595){const _0x4c0cfc=this['_suggestions']['get'](_0x179595);if(!_0x4c0cfc)throw new _0x144d61('track-changes-accept-suggestion-not-found',this);const _0x1a3ae3=_0x4c0cfc['getRanges']();this['editor']['model']['canEditAt'](_0x1a3ae3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4c0cfc);}}class B extends ts{['_suggestions'];constructor(_0x1c1dc0,_0x18bda3){super(_0x1c1dc0),this['_suggestions']=_0x18bda3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3162be){const _0x238d24=this['_suggestions']['get'](_0x3162be);if(!_0x238d24)throw new _0x144d61('track-changes-discard-suggestion-not-found',this);const _0x490f05=_0x238d24['getRanges']();this['editor']['model']['canEditAt'](_0x490f05)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x238d24);}}function ss(_0x5a6346){return _0x5a6346['sort']((_0xb9fbfa,_0x2ac516)=>'deletion'==_0xb9fbfa['type']&&'deletion'!=_0x2ac516['type']?-0x1:'deletion'!=_0xb9fbfa['type']&&'deletion'==_0x2ac516['type']?0x1:0x0);}function to(_0x4b3508,_0x5c9bce){let _0x308967,_0x20ddcb=0x0;const _0x5f29c2=[],_0x2fa9aa=_0x5c9bce['schema'];for(;_0x20ddcb<_0x4b3508['length'];){const _0x220cff=_0x4b3508[_0x20ddcb],_0x2ebbf3=_0x4b3508[_0x20ddcb+0x1];_0x308967||(_0x308967=_0x5c9bce['createPositionBefore'](_0x220cff)),co(_0x5c9bce,_0x220cff,_0x2ebbf3)||(_0x5f29c2['push'](_0x5c9bce['createRange'](_0x308967,_0x2fa9aa['isObject'](_0x220cff)?_0x5c9bce['createPositionAfter'](_0x220cff):_0x5c9bce['createPositionAt'](_0x220cff,'end'))),_0x308967=null),_0x20ddcb++;}return _0x5f29c2;}function co(_0x4ab674,_0x44d37c,_0xe0a832){if(!_0xe0a832)return!0x1;const _0x1384a0=_0x4ab674['createPositionAfter'](_0x44d37c),_0x104e88=_0x4ab674['createPositionBefore'](_0xe0a832);return _0x1384a0['isTouching'](_0x104e88);}function rs(_0x3519b7,_0x3fe351,_0x29ab44){for(;_0x29ab44['length'];){const _0x37b1d9=_0x29ab44['splice'](0x0,0x64);_0x3519b7['change'](()=>{for(const _0x5e84cf of _0x37b1d9)_0x5e84cf['isInContent']&&_0x3fe351['execute'](_0x5e84cf['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5ed916,_0x511a28,_0x345bad){super(_0x5ed916),this['_command']=_0x511a28,this['_suggestions']=_0x345bad,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4112c7=Array['from'](this['_suggestions']['values']())['some'](_0x3f6a48=>_0x3f6a48['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4112c7;}['execute'](){const _0x245e8d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x160a8d of _0x245e8d){const _0x2f0044=_0x160a8d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f0044))return;}rs(this['editor']['model'],this['_command'],_0x245e8d);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5bb883,_0x1653c7,_0x1bbc1a){super(_0x5bb883),this['_command']=_0x1653c7,this['_suggestions']=_0x1bbc1a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2689dc=this['editor']['model']['document']['selection'],_0x1dd754=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x79c4a0,_0x25b0f4){const _0x3fbdf5=Array['from'](_0x79c4a0['getRanges']()),_0x203a1a=new Set();for(const _0x3288a9 of _0x25b0f4)if(_0x3288a9['isInContent']){for(const _0x1a3a50 of _0x3fbdf5)for(const _0xffda53 of _0x3288a9['getRanges']())(_0x1a3a50['isIntersecting'](_0xffda53)||_0x79c4a0['isCollapsed']&&!_0x3288a9['isMultiRange']&&_0x3288a9['next']&&_0xffda53['end']['isTouching'](_0x1a3a50['start']))&&_0x203a1a['add'](_0x3288a9);}return _0x203a1a;}(_0x2689dc,_0x1dd754),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x311e4d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2e8b35 of _0x311e4d){const _0x439026=_0x2e8b35['getRanges']();if(!this['editor']['model']['canEditAt'](_0x439026))return;}rs(this['editor']['model'],this['_command'],_0x311e4d);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x50b673(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4de33d,_0x43cab1){super(),this['id']=_0x43cab1['id'],this['type']=_0x43cab1['type'],this['subType']=_0x43cab1['subType']||null,this['author']=_0x43cab1['author'],this['creator']=_0x43cab1['creator']||_0x43cab1['author'],this['isExternal']=Boolean(_0x43cab1['attributes']&&_0x43cab1['attributes']['@external']),this['data']=null,this['_model']=_0x4de33d,this['_onAccept']=_0x43cab1['onAccept'],this['_onDiscard']=_0x43cab1['onDiscard'],this['_onAttributesChange']=_0x43cab1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x43cab1['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1365e9=this;for(;_0x1365e9['previous'];)_0x1365e9=_0x1365e9['previous'];return _0x1365e9;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2e3e2e){this['_markerNames']['add'](_0x2e3e2e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3787f6=>this['_model']['markers']['get'](_0x3787f6))['filter'](_0x564c0e=>_0x564c0e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x317ad0=>{for(const _0x5c7674 of this['getMarkers']())_0x317ad0['removeMarker'](_0x5c7674);}),this['_markerNames']['clear']();}['removeMarker'](_0x5144d9){this['_model']['change'](_0x89bf76=>{_0x89bf76['removeMarker'](_0x5144d9);}),this['_markerNames']['delete'](_0x5144d9);}['addRange'](_0x1c213f){const _0x1fb609='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1fb609),this['_model']['change'](_0xa020c9=>{_0xa020c9['addMarker'](_0x1fb609,{'range':_0x1c213f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x435bdc){for(const _0x3b840b of this['getRanges']())if(_0x3b840b['isIntersecting'](_0x435bdc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x168998=>_0x168998['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x26b2d0,_0x6697da)=>[..._0x26b2d0,..._0x6697da['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ee85f=this['getRanges']();if(0x1!=_0x2ee85f['length'])return null;const _0xc213f2=_0x2ee85f[0x0],_0xe222e7=_0xc213f2['start']['nodeAfter'],_0x4e48f5=_0xc213f2['end']['nodeBefore'];return _0xe222e7 instanceof _0x435467?_0xe222e7!=_0x4e48f5?null:_0xe222e7:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x483e38=[];let _0x18f74e=this['head'];for(;_0x18f74e;)_0x483e38['push'](_0x18f74e),_0x18f74e=_0x18f74e['next'];return _0x483e38;}['setAttribute'](_0x48a5d3,_0x23c62d){const _0x4d098c=_0x6e103(this['attributes']);_0x42a622(_0x4d098c,_0x48a5d3,_0x23c62d),_0x1b166e(_0x4d098c,this['attributes'])||(this['attributes']=_0x4d098c,this['_onAttributesChange'](_0x4d098c));}['removeAttribute'](_0x1ffa58){const _0x32dc3c=_0x6e103(this['attributes']);_0x3e75d8(_0x32dc3c,_0x1ffa58),_0x1b166e(_0x32dc3c,this['attributes'])||(this['attributes']=_0x32dc3c,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x386e7f()['substr'](0x1,0x5);}}function o(_0x2fd93b,_0x589a04,_0x54b495){const t=_0x2fd93b['t'];switch(_0x589a04){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x54b495);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x54b495);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x54b495);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x54b495);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x54b495);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x54b495);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x54b495);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54b495);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x54b495);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x54b495);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x54b495);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x54b495);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x54b495);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x54b495);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x54b495);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x54b495);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x54b495);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x54b495);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x54b495);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x54b495);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x54b495);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x54b495);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x54b495);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x54b495);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x54b495);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x54b495);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x54b495);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x54b495);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x54b495);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x54b495);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x54b495);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x54b495);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x54b495);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x54b495);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x54b495);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x54b495);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x54b495);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x54b495);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x54b495);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x54b495);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x54b495);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x54b495);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x54b495);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x54b495);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x54b495);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x54b495);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x589a04;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5df118,_0x1f2763){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5df118,this['_locale']=_0x1f2763;}['getDescriptions'](_0x8d7a9e){const _0xa8ea4b=[],_0xeccd59=new Set(),_0x58e3ff=new Set();for(let _0x57866a=0x0;_0x57866a<_0x8d7a9e['length'];_0x57866a++){const _0x493476=_0x8d7a9e[_0x57866a];if(!_0x493476['isInContent'])continue;const _0x1e7006=this['_handleCustomCallbackDescription'](_0x493476);if(_0x1e7006){if(null!=_0x493476['subType']){if(_0xeccd59['has'](_0x493476['subType']))continue;_0xeccd59['add'](_0x493476['subType']);}_0xa8ea4b['push'](_0x1e7006);}else{if('attribute'!=_0x493476['type'])'insertion'!=_0x493476['type']&&'deletion'!=_0x493476['type']||this['_handleInsertRemoveSuggestionDescription'](_0xa8ea4b,_0x493476,_0x8d7a9e[_0x57866a+0x1]);else{const _0x17966e=_0x493476['data']['key'];if(_0x58e3ff['has'](_0x17966e))continue;_0x58e3ff['add'](_0x493476['data']['key']),_0x17966e==m?this['_handleRenameSuggestionDescription'](_0xa8ea4b,_0x493476):this['_handleAttributeSuggestionDescription'](_0xa8ea4b,_0x493476);}}}return this['_resolveDescriptionItems'](_0xa8ea4b);}['registerDescriptionCallback'](_0x1fa449){this['_customCallbacks']['push'](_0x1fa449);}['registerElementLabel'](_0x3de0cc,_0x4c2929,_0x179427=_0x3ed224['normal']){'function'==typeof _0x3de0cc?_0x2a62b1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3de0cc,'label':_0x4c2929,'priority':_0x179427}):this['_itemLabels']['set'](_0x3de0cc,_0x4c2929);}['registerAttributeLabel'](_0x1c2708,_0x2e8ba2){this['_attributeLabels']['set'](_0x1c2708,_0x2e8ba2);}['getItemLabel'](_0x49a4f7,_0x4ddfe6=0x1){let _0x524b4d;for(const _0x180d09 of this['_itemLabelsCallbacks'])if(_0x180d09['matchingCallback'](_0x49a4f7)){_0x524b4d=_0x180d09['label'];break;}return _0x524b4d||(_0x524b4d=this['_itemLabels']['get'](_0x49a4f7['name'])),_0x524b4d?_0x524b4d(_0x4ddfe6):0x1!==_0x4ddfe6?_0x4ddfe6+'\x20'+_0x49a4f7['name']+'s':''+_0x49a4f7['name'];}['_addDescriptionItems'](_0x408a32,_0x3d266b){const _0xb38d79=_0x3d266b['getFirstRange']()['getWalker'](),_0x213a66='insertion'==_0x3d266b['type']?'add':'remove';for(const _0x7be4c3 of _0xb38d79){const _0x5d658d=_0x7be4c3['item'],_0x401903=_0x408a32[_0x408a32['length']-0x1];if(_0x5d658d['is']('$textProxy'))_0x401903&&_0x401903['type']['indexOf']('Container')>-0x1&&_0x408a32['pop'](),_0x401903&&'text'==_0x401903['type']?_0x401903[_0x213a66]+=_0x5d658d['data']:_0x408a32['push']({'type':'text','add':'add'==_0x213a66?_0x5d658d['data']:'','remove':'remove'==_0x213a66?_0x5d658d['data']:''});else{if(this['_schema']['isObject'](_0x5d658d)){const _0x1b9310=_0x5d658d;if(_0x401903&&_0x401903['type']['indexOf']('Container')>-0x1&&_0x408a32['pop'](),'elementEnd'==_0x7be4c3['type'])continue;_0x401903&&_0x401903['type']==_0x213a66+'Object'&&_0x401903['element']['name']==_0x1b9310['name']?_0x401903['quantity']++:_0x408a32['push']({'type':_0x213a66+'Object','element':_0x1b9310,'quantity':0x1}),_0xb38d79['skip'](_0x2e289f=>!('elementEnd'==_0x2e289f['type']&&_0x2e289f['item']==_0x5d658d));}else{if(this['_schema']['checkChild'](_0x5d658d,'$text')||_0x5d658d['is']('element','softBreak')){const _0x4e2516=_0x5d658d;if('add'==_0x213a66&&'elementStart'==_0x7be4c3['type']||'remove'==_0x213a66&&'elementEnd'==_0x7be4c3['type'])continue;if(_0x401903&&-0x1==_0x401903['type']['indexOf']('Container')){'text'==_0x401903['type']&&(_0x401903[_0x213a66]+='\x0a');continue;}let _0x51027f;if(_0x51027f='add'==_0x213a66?_0x4e2516['nextSibling']&&!this['_schema']['isObject'](_0x4e2516['nextSibling'])?_0x4e2516['nextSibling']:null:_0x4e2516['previousSibling']&&!this['_schema']['isObject'](_0x4e2516['previousSibling'])?_0x4e2516['previousSibling']:null,_0x4e2516['isEmpty']||_0x51027f&&_0x51027f['isEmpty']){const _0x1ddd1b=_0x51027f&&_0x51027f['isEmpty']?_0x51027f:_0x4e2516;_0x401903&&_0x401903['type']==_0x213a66+'EmptyContainer'&&_0x401903['element']['name']==_0x1ddd1b['name']?_0x401903['quantity']++:_0x408a32['push']({'type':_0x213a66+'EmptyContainer','element':_0x1ddd1b,'quantity':0x1});}else _0x408a32['push']({'type':_0x213a66+'Container','element':_0x4e2516});}}}}}['_resolveDescriptionItems'](_0x3932d9){const _0x230784=this['_locale'],_0x4fe946=[],_0x43694f=[],_0x344909=[];for(const _0x2b428d of _0x3932d9)switch(_0x2b428d['type']){case'text':if(_0x2b428d['add']=_0x2b428d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2b428d['remove']=_0x2b428d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2b428d['add']&&''!=_0x2b428d['remove']){_0x4fe946['push']({'type':'replace','content':o(_0x230784,'REPLACE_TEXT',['\x22'+_0x2b428d['remove']+'\x22','\x22'+_0x2b428d['add']+'\x22'])});continue;}if(null!=_0x2b428d['add']['match'](/^ +$/)){_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Insert:*\x20%0',o(_0x230784,'ELEMENT_SPACE',_0x2b428d['add']['length']))});continue;}if(null!=_0x2b428d['remove']['match'](/^ +$/)){_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Remove:*\x20%0',o(_0x230784,'ELEMENT_SPACE',_0x2b428d['remove']['length']))});continue;}if(''!=_0x2b428d['add']){_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Insert:*\x20%0','\x22'+_0x2b428d['add']+'\x22')});continue;}_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Remove:*\x20%0','\x22'+_0x2b428d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Insert:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Remove:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'addContainer':_0x4fe946['push']({'type':'insertion','content':o(_0x230784,'*Split:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'removeContainer':_0x4fe946['push']({'type':'deletion','content':o(_0x230784,'*Merge:*\x20%0',this['getItemLabel'](_0x2b428d['element'],_0x2b428d['quantity']))});continue;case'addFormat':_0x43694f['push'](_0x2b428d['key']);continue;case'removeFormat':_0x344909['push'](_0x2b428d['key']);continue;default:_0x4fe946['push'](_0x2b428d);}if(_0x43694f['length']){const _0x13996d=_0x43694f['map'](_0x79251c=>this['_attributeLabels']['has'](_0x79251c)?this['_attributeLabels']['get'](_0x79251c):_0x79251c)['join'](',\x20');_0x4fe946['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13996d)});}if(_0x344909['length']){const _0x19109d=_0x344909['map'](_0xdbeac4=>this['_attributeLabels']['has'](_0xdbeac4)?this['_attributeLabels']['get'](_0xdbeac4):_0xdbeac4)['join'](',\x20');_0x4fe946['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x19109d)});}return _0x4fe946;}['_handleCustomCallbackDescription'](_0x5553d8){for(const _0x36f544 of this['_customCallbacks']){const _0x29f1cc=_0x36f544(_0x5553d8);if(_0x29f1cc&&'type'in _0x29f1cc)return _0x29f1cc;}}['_handleAttributeSuggestionDescription'](_0x13f108,_0x308afe){const _0x45e945=_0x308afe['data'],_0x5ebdce=void 0x0===_0x45e945['newValue']?'removeFormat':'addFormat';_0x13f108['push']({'type':_0x5ebdce,'key':_0x45e945['key']});}['_handleRenameSuggestionDescription'](_0x3aae96,_0x2e233f){_0x3aae96['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e233f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a9344,_0x10bbd3,_0x373cf9){if(this['_addDescriptionItems'](_0x2a9344,_0x10bbd3),_0x373cf9&&_0x373cf9['getFirstRange']()&&!_0x10bbd3['getFirstRange']()['end']['isEqual'](_0x373cf9['getFirstRange']()['start'])){const _0x115e52=_0x2a9344[_0x2a9344['length']-0x1],_0x191aca='insertion'==_0x10bbd3['type']?'add':'remove';_0x115e52&&'text'==_0x115e52['type']&&(_0x115e52[_0x191aca]+='\x0a');}}}class E extends _0x3b57f6{['afterInit'](){const _0x9f07d9=this['editor'],_0x2c563a=_0x9f07d9['plugins']['get']('TrackChangesEditing');_0x9f07d9['commands']['get']('showAIAssistant')&&_0x2c563a['enableCommand']('showAIAssistant');}}class V extends _0x3b57f6{['afterInit'](){const _0x10f9e7=this['editor'],_0x4a32a6=_0x10f9e7['locale'];if(!_0x10f9e7['plugins']['has']('AlignmentEditing'))return;const _0x20939c=_0x10f9e7['plugins']['get']('TrackChangesEditing');_0x20939c['enableDefaultAttributesIntegration']('alignment'),_0x20939c['registerBlockAttribute']('alignment'),_0x20939c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a32a6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e322b=this['editor'],_0x1c240f=_0x1e322b['locale'];_0x1e322b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aa597=>{if('formatBlock'!=_0x3aa597['type'])return;const {data:_0x4cf063}=_0x3aa597;if(_0x4cf063&&'alignment'==_0x4cf063['commandName']){const _0xbc48d2=_0x4cf063['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c240f,'*Format:*\x20%0',function(_0x4b449d){switch(_0x4b449d){case'left':return o(_0x1c240f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c240f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c240f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c240f,'FORMAT_JUSTIFY_TEXT');}}(_0xbc48d2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x3b57f6{['afterInit'](){const _0x22c11d=this['editor'],_0x30710f=_0x22c11d['plugins']['get']('TrackChangesEditing'),_0x25f940=_0x22c11d['locale'];for(const _0xd9d147 of ti){if(!_0x22c11d['plugins']['has'](_0xd9d147))continue;const _0xd2d06b=_0xd9d147['slice'](0x0,-0x7)['toLowerCase'](),_0x1f5ba5='FORMAT_'+_0xd2d06b['toUpperCase']();_0x30710f['enableDefaultAttributesIntegration'](_0xd2d06b),_0x30710f['registerInlineAttribute'](_0xd2d06b),_0x30710f['descriptionFactory']['registerAttributeLabel'](_0xd2d06b,o(_0x25f940,_0x1f5ba5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28a2df=this['editor'],_0x402f43=_0x28a2df['locale'],_0x1d3b21=_0x28a2df['plugins']['get']('TrackChangesEditing');function _0x28d0e2(_0x1055e8,_0x478816){_0x1d3b21['descriptionFactory']['registerDescriptionCallback'](_0x421445=>{if('formatInline'!=_0x421445['type'])return;const {data:_0x3fa32a}=_0x421445;return _0x3fa32a&&_0x3fa32a['commandName']===_0x1055e8?_0x3fa32a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x402f43,'*Format:*\x20%0',_0x478816)}:{'type':'format','content':o(_0x402f43,'*Remove\x20format:*\x20%0',_0x478816)}:void 0x0;});}_0x28d0e2('bold',o(_0x402f43,'FORMAT_BOLD')),_0x28d0e2('italic',o(_0x402f43,'FORMAT_ITALIC')),_0x28d0e2('underline',o(_0x402f43,'FORMAT_UNDERLINE')),_0x28d0e2('code',o(_0x402f43,'FORMAT_CODE')),_0x28d0e2('strikethrough',o(_0x402f43,'FORMAT_STRIKETHROUGH')),_0x28d0e2('subscript',o(_0x402f43,'FORMAT_SUBSCRIPT')),_0x28d0e2('superscript',o(_0x402f43,'FORMAT_SUPERSCRIPT'));}}class O extends _0x3b57f6{['afterInit'](){const _0x5af884=this['editor'],_0x51d40f=_0x5af884['locale'];if(!_0x5af884['plugins']['has']('BlockQuoteEditing'))return;const _0x332595=_0x5af884['plugins']['get']('TrackChangesEditing'),_0x38ed28=this['editor']['commands']['get']('blockQuote');_0x332595['enableCommand']('blockQuote',(_0x2aff56,_0x1ff48b={})=>{const _0x2a7ff1=this['editor']['model']['document']['selection'],_0x541457=_0x1ff48b&&void 0x0!==_0x1ff48b['forceValue']?_0x1ff48b['forceValue']:!_0x38ed28['value'];let _0xd33038=[];if(_0x541457){const _0x39c64e=Array['from'](_0x2a7ff1['getSelectedBlocks']())['filter'](_0x222e0c=>oo(_0x222e0c)||function(_0x3754d2,_0x4fe9fa){const _0xd9ff5c=_0x4fe9fa['checkChild'](_0x3754d2['parent'],'blockQuote'),_0x5534f9=_0x4fe9fa['checkChild'](['$root','blockQuote'],_0x3754d2);return _0xd9ff5c&&_0x5534f9;}(_0x222e0c,this['editor']['model']['schema']));_0xd33038=to(_0x39c64e,_0x5af884['model']);}else{const _0x50a87e=Array['from'](_0x2a7ff1['getSelectedBlocks']())['filter'](_0x288b0b=>oo(_0x288b0b));_0xd33038=to(_0x50a87e,_0x5af884['model']);}_0x5af884['model']['change'](()=>{for(const _0x1a6440 of _0xd33038)_0x332595['markBlockFormat'](_0x1a6440,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x541457}]});});}),_0x332595['descriptionFactory']['registerDescriptionCallback'](_0x488470=>{const {data:_0xd3d4a5}=_0x488470;if(_0xd3d4a5&&'blockQuote'==_0xd3d4a5['commandName']){const _0x3656b6=o(_0x51d40f,'ELEMENT_BLOCK_QUOTE');return _0xd3d4a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51d40f,'*Set\x20format:*\x20%0',_0x3656b6)}:{'type':'format','content':o(_0x51d40f,'*Remove\x20format:*\x20%0',_0x3656b6)};}});}}function oo(_0x170a1e){return'blockQuote'==_0x170a1e['parent']['name'];}class G extends _0x3b57f6{['afterInit'](){const _0x1339f6=this['editor'];_0x1339f6['plugins']['has']('CaseChange')&&(_0x1339f6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1339f6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1339f6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x3b57f6{['afterInit'](){const _0x5ee19e=this['editor'];_0x5ee19e['commands']['get']('ckbox')&&_0x5ee19e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3b57f6{['afterInit'](){const _0x3ea101=this['editor'];if(!_0x3ea101['plugins']['has']('CodeBlock'))return;const _0x5ac323=_0x3ea101['plugins']['get']('TrackChangesEditing'),_0x3b30f3=_0x3ea101['locale'],_0x1bede5=_0x3ea101['config']['get']('codeBlock')['languages'],_0x3edfa8=_0x3ea101['commands']['get']('codeBlock');_0x5ac323['enableCommand']('indentCodeBlock'),_0x5ac323['enableCommand']('outdentCodeBlock'),_0x5ac323['enableCommand']('codeBlock',(_0x5d3449,_0x3c5deb={})=>{const _0x263fad=_0x3ea101['model'],_0x1332f6=_0x3ea101['model']['document']['selection'],_0x36641e=_0x3c5deb&&void 0x0!==_0x3c5deb['forceValue']?_0x3c5deb['forceValue']:!_0x3edfa8['value'];let _0x598da4;_0x3c5deb['language']||(_0x3c5deb['language']=_0x1bede5[0x0]['language']),_0x598da4=_0x36641e?Array['from'](_0x1332f6['getSelectedBlocks']())['filter'](_0x885921=>eo(_0x885921)||function(_0x104017,_0x5406a1){if(_0x104017['is']('rootElement')||_0x5406a1['isLimit'](_0x104017))return!0x1;return _0x5406a1['checkChild'](_0x104017['parent'],'codeBlock');}(_0x885921,_0x263fad['schema'])):Array['from'](_0x1332f6['getSelectedBlocks']())['filter'](_0x2a4b59=>eo(_0x2a4b59));const _0x477b6f=to(_0x598da4,_0x263fad);_0x263fad['change'](()=>{for(const _0x7c1f3 of _0x477b6f)_0x5ac323['markBlockFormat'](_0x7c1f3,{'commandName':'codeBlock','commandParams':[{..._0x3c5deb,'forceValue':_0x36641e}],'formatGroupId':'blockName'});});}),(_0x5ac323['descriptionFactory']['registerElementLabel']('codeBlock',_0x4662a7=>o(_0x3b30f3,'ELEMENT_CODE_BLOCK',_0x4662a7)),_0x5ac323['descriptionFactory']['registerDescriptionCallback'](_0x1cd59e=>{if('formatBlock'!=_0x1cd59e['type'])return;const _0x1b4f7b=_0x3b30f3['t'],{data:_0x2975b7}=_0x1cd59e;if(!_0x2975b7||'codeBlock'!=_0x2975b7['commandName'])return;const _0x465bac=_0x2975b7['commandParams'][0x0]['language'],_0x1ef17a=_0x1b4f7b(_0x1bede5['find'](_0x4f1e65=>_0x4f1e65['language']===_0x465bac)['label'])['toLowerCase']();return _0x2975b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b30f3,'*Set\x20format:*\x20%0',o(_0x3b30f3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1ef17a+')')}:{'type':'format','content':o(_0x3b30f3,'*Remove\x20format:*\x20%0',o(_0x3b30f3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34bf7){return'codeBlock'==_0x34bf7['name'];}class H extends _0x3b57f6{['afterInit'](){const _0x59eb81=this['editor'];if(!_0x59eb81['plugins']['has']('CommentsEditing'))return;_0x59eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1ac5c3,_0x279cb2,_0x1c1b0a){const _0x5c750d=[];for(const _0x1d9370 of _0x279cb2['getItems']())_0x1d9370['hasAttribute'](_0x1ac5c3)&&_0x5c750d['push'](_0x1c1b0a['createRangeOn'](_0x1d9370));return _0x5c750d;}function _e(_0x30106e,_0x2dc60f,{showActiveMarker:_0x19fa0d=!0x0}={}){const _0x21a759=_0x30106e['plugins']['get']('TrackChangesEditing');return(_0x158273,_0x353747,_0x2ace86)=>{if(!_0x2ace86['consumable']['test'](_0x353747['markerRange'],_0x158273['name']))return;const _0x1145fc=_0x353747['markerRange']['getWalker'](),_0x529f9e=_0x353747['markerRange']['start'],_0x5e04ea=_0x30106e['model']['schema'];let _0xe4fd6c=null,_0x3aeedc=null,_0x25b74b=!0x1,_0x54e758=!0x1;for(const _0x30e012 of _0x1145fc){const _0x52a793=_0x30e012['item'];_0x25b74b=_0x25b74b||_0x5e04ea['isContent'](_0x52a793);const _0x3c580e=_0x2ace86['mapper']['toViewElement'](_0x52a793);if(_0x3c580e&&_0x3c580e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30e012['type']&&(_0x5e04ea['isBlock'](_0x52a793)&&!_0x5e04ea['isLimit'](_0x52a793)&&(_0x52a793['nextSibling']||_0x529f9e['isAtEnd']?_0xe4fd6c&&_0xe4fd6c['parent']==_0x52a793||(_0xe4fd6c=_0x52a793,_0xdd5f26(_0x30e012['previousPosition']),_0x54e758=!0x0):_0x3aeedc=_0x3aeedc||_0x30e012['previousPosition']));}function _0xdd5f26(_0x8845b6){const _0x23a7e5=_0x2ace86['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2dc60f}),_0x85eab8=_0x2ace86['mapper']['toViewPosition'](_0x8845b6);_0x19fa0d&&_0x21a759['activeMarkers']['includes'](_0x353747['markerName'])&&_0x2ace86['writer']['addClass']('ck-suggestion-marker--active',_0x23a7e5),_0x2ace86['writer']['insert'](_0x85eab8,_0x23a7e5),_0x2ace86['mapper']['bindElementToMarker'](_0x23a7e5,_0x353747['markerName']);}_0x25b74b||_0x54e758||!_0x3aeedc||_0xdd5f26(_0x3aeedc);};}class q extends _0x3b57f6{static get['requires'](){return[_0x421719];}['init'](){const _0x2f7db4=this['editor'],_0x418e34=_0x2f7db4['plugins']['get']('TrackChangesEditing');_0x418e34['enableCommand']('delete');const _0x24109a=_0x2f7db4['commands']['get']('deleteForward');_0x418e34['enableCommand']('deleteForward',(_0x35cc8b,_0x78ab5a={})=>{const _0x360ab9=_0x2f7db4['model']['createSelection'](_0x2f7db4['model']['document']['selection']);_0x360ab9['isCollapsed']&&_0x2f7db4['model']['modifySelection'](_0x360ab9,{'direction':'forward','unit':_0x78ab5a['unit']});const _0x51ef71=_0x360ab9['getFirstRange'](),_0x36830b=_0x2e923c['fromRange'](_0x51ef71);let _0x1e77cd;_0x35cc8b(_0x78ab5a),_0x1e77cd='$graveyard'==_0x36830b['root']['rootName']?_0x2f7db4['model']['createRange'](_0x51ef71['start']):_0x2f7db4['model']['createRange'](_0x36830b['start'],_0x36830b['end']),_0x36830b['detach'](),_0x2f7db4['model']['enqueueChange'](_0x24109a['buffer']['batch'],_0x19fcb6=>{_0x24109a['buffer']['lock'](),_0x19fcb6['setSelection'](_0x19fcb6['createRange'](_0x1e77cd['end'])),_0x24109a['buffer']['unlock']();});}),_0x2f7db4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2f7db4,'merge'),{'priority':'high'}),_0x2f7db4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e50f3,_0x17f424,_0x532227)=>{_0x532227['options']['showSuggestionHighlights']&&_e(_0x2f7db4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3e50f3,_0x17f424,_0x532227);},{'priority':'high'}),_0x2f7db4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33b4c2,_0x3fafb4,_0x5a470e)=>{const _0x554b63=_0x5a470e['mapper']['markerNameToElements'](_0x3fafb4['markerName']);if(_0x554b63){for(const _0x170d05 of _0x554b63)_0x170d05['is']('uiElement')&&(_0x5a470e['mapper']['unbindElementFromMarkerName'](_0x170d05,_0x3fafb4['markerName']),_0x5a470e['writer']['remove'](_0x170d05));}},{'priority':'high'});}}class z extends _0x3b57f6{['afterInit'](){const _0x5dd837=this['editor'];if(!_0x5dd837['plugins']['has']('ListEditing'))return;const _0x59bcdc=_0x5dd837['locale'],_0x4e7bde=_0x5dd837['plugins']['get']('TrackChangesEditing'),_0x41af25=_0x5dd837['plugins']['has']('TodoListEditing'),_0xfd26e5=!!_0x5dd837['config']['get']('list.multiBlock');function _0x588fd2(_0x36550a){return{'type':'format','content':''+o(_0x59bcdc,'*Set\x20format:*\x20%0',_0x36550a)};}function _0x8dfd1b(_0x2c2026){return{'type':'format','content':''+o(_0x59bcdc,'*Remove\x20format:*\x20%0',_0x2c2026)};}_0x4e7bde['enableDefaultAttributesIntegration']('numberedList'),_0x4e7bde['enableDefaultAttributesIntegration']('bulletedList'),_0x4e7bde['enableDefaultAttributesIntegration']('customNumberedList'),_0x4e7bde['enableDefaultAttributesIntegration']('customBulletedList'),_0x4e7bde['enableDefaultAttributesIntegration']('indentList'),_0x4e7bde['enableDefaultAttributesIntegration']('outdentList'),_0x4e7bde['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4e7bde['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4e7bde['registerBlockAttribute']('listItemId'),_0x4e7bde['registerBlockAttribute']('listType'),_0x4e7bde['registerBlockAttribute']('listIndent'),_0xfd26e5&&(_0x4e7bde['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4e7bde['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x41af25&&(_0x4e7bde['enableDefaultAttributesIntegration']('todoList'),_0x4e7bde['enableDefaultAttributesIntegration']('checkTodoList'),_0x4e7bde['registerBlockAttribute']('todoListChecked'),_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x364f6f=>{const {data:_0x3c98cc}=_0x364f6f;if(_0x3c98cc&&'todoListChecked'==_0x3c98cc['key'])return{'type':'format','content':_0x3c98cc['newValue']?o(_0x59bcdc,'*Check\x20item*'):o(_0x59bcdc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x240734=>{if(_0x240734['batch']['isUndo'])return!0x1;let _0xcee1a3=!0x1;const _0x329293=_0x4e7bde['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e726d=>'todoListChecked'===_0x4e7bde['_getAttributeKey'](_0x1e726d));for(const _0x1fbfeb of _0x329293){'todo'!=_0x1fbfeb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4e7bde['_findSuggestions'](_0x1fbfeb['getFirstRange'](),'attribute')['find'](_0x38fa46=>'listType'===_0x4e7bde['_getAttributeKey'](_0x38fa46['suggestion']))||(_0x240734['removeMarker'](_0x1fbfeb['getFirstMarker']()),_0xcee1a3=!0x0));}return _0xcee1a3;})),_0x4e7bde['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x59bcdc,'FORMAT_INDENT'));const _0x5724ca={'type':'format','content':''};_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x16efd3=>{const {data:_0x7af159}=_0x16efd3;if(!_0x7af159||'listType'!=_0x7af159['key'])return;let _0x3c91b5=_0x16efd3['head'];for(;_0x3c91b5;){if(_0x3c91b5['data']&&(('listStyle'==_0x3c91b5['data']['key']||'listMarkerStyle'==_0x3c91b5['data']['key'])&&(_0x3c91b5['data']['newValue']&&'default'!=_0x3c91b5['data']['newValue']||'default'!=_0x3c91b5['data']['oldValue']&&!_0x7af159['newValue'])||!_0xfd26e5&&_0x3c91b5['data']['key']==m))return _0x5724ca;_0x3c91b5=_0x3c91b5['next'];}if(null==_0x7af159['newValue'])switch(_0x7af159['oldValue']){case'bulleted':return _0x8dfd1b(o(_0x59bcdc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8dfd1b(o(_0x59bcdc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8dfd1b(o(_0x59bcdc,'ELEMENT_TODO_LIST'));}switch(_0x7af159['newValue']){case'bulleted':return _0x588fd2(o(_0x59bcdc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x588fd2(o(_0x59bcdc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x588fd2(o(_0x59bcdc,'ELEMENT_TODO_LIST'));}}),_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x1b3c6d=>{const {data:_0x43c7b8}=_0x1b3c6d;if(_0x43c7b8&&'listIndent'==_0x43c7b8['key'])return null==_0x43c7b8['newValue']||null==_0x43c7b8['oldValue']&&0x0==_0x43c7b8['newValue']?_0x5724ca:void 0x0;}),_0x4e7bde['descriptionFactory']['registerDescriptionCallback'](_0x5c2b6b=>{if('attribute'!=_0x5c2b6b['type'])return;const {data:_0x3e8832}=_0x5c2b6b;if(!_0x3e8832||'listItemId'!=_0x3e8832['key'])return;const _0x55e739=le(_0x5c2b6b);return'newValue'==_0x55e739?{'type':'format','content':o(_0x59bcdc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x55e739?{'type':'format','content':o(_0x59bcdc,'*Split:*\x20list\x20item')}:_0x5724ca;}),_0x5dd837['model']['document']['registerPostFixer'](_0x1a4ba4=>this['listItemIdFixer'](_0x1a4ba4)),_0x5dd837['model']['document']['registerPostFixer'](_0xd99022=>this['noTrackChangesFixer'](_0xd99022)),_0x5dd837['model']['document']['registerPostFixer'](_0x64f6b8=>this['assureChains'](_0x64f6b8)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x842a20){if(_0x842a20['batch']['isUndo']||!_0x842a20['batch']['isLocal'])return!0x1;let _0x5e600d=!0x1;const _0x22d977=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc09e6e=>_0xc09e6e['data']&&'listItemId'==_0xc09e6e['data']['key'])['filter'](_0x395a1c=>_0x395a1c['data']['newValue']&&_0x395a1c['data']['oldValue']);for(const _0x5c38c4 of _0x22d977)le(_0x5c38c4)||(_0x842a20['removeMarker'](_0x5c38c4['getFirstMarker']()),_0x5e600d=!0x0);return _0x5e600d;}['noTrackChangesFixer'](_0x449310){if(_0x449310['batch']['isUndo']||!_0x449310['batch']['isLocal'])return!0x1;const _0x26d8d4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x26d8d4['trackChangesCommand']['value'])return!0x1;let _0x57b3bf=!0x1;const _0x42268c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2d8146=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b2cb0=>'attribute'==_0x1b2cb0['type'])['filter'](_0x19bf50=>_0x42268c['includes'](_0x19bf50['attributeKey']));if(0x0==_0x2d8146['length'])return _0x57b3bf;for(const _0x306221 of _0x2d8146){const _0x4dd576=_0x26d8d4['_findSuggestions'](_0x306221['range'],'attribute')['filter'](_0xbfea84=>!_0xbfea84['meta']['isNextTo'])['map'](_0x32c7b5=>_0x32c7b5['suggestion'])['filter'](_0x45fea9=>{const _0x56cf2e=_0x26d8d4['_getAttributeKey'](_0x45fea9);return _0x42268c['includes'](_0x56cf2e);});if(_0x4dd576['length']){for(const _0xe9d6d9 of _0x4dd576)_0x449310['removeMarker'](_0xe9d6d9['getFirstMarker']());_0x57b3bf=!0x0;}}return _0x57b3bf;}['assureChains'](_0x584cbf){if(_0x584cbf['batch']['isUndo']||!_0x584cbf['batch']['isLocal'])return!0x1;const _0x10f272=this['editor']['plugins']['get']('TrackChangesEditing');let _0x6d97fa=!0x1;const _0x401c6b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x203bb5 of _0x10f272['getSuggestions']({'skipNotAttached':!0x0})){const _0x59ac8a=_0x10f272['_findSuggestions'](_0x203bb5['getFirstRange'](),'attribute')['map'](_0x12799a=>_0x12799a['suggestion'])['filter'](_0x3bfdf4=>_0x3bfdf4['data']&&_0x401c6b['includes'](_0x3bfdf4['data']['key']));if(!_0x59ac8a['length'])continue;const _0x1d9c5b=_0x59ac8a[0x0]['head']['attributes']['groupId'];if(!_0x59ac8a['every'](_0x1afa5c=>_0x1afa5c['attributes']['groupId']===_0x1d9c5b)){for(const _0x2e1742 of _0x59ac8a)_0xacc34e(_0x2e1742,_0x1d9c5b)&&(_0x6d97fa=!0x0);}}return _0x6d97fa;function _0x1069cc(_0x5e6d4a,_0x10ca8e){for(const _0x4371f4 of _0x10f272['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50960e=>'attribute'==_0x50960e['type']&&_0x50960e['attributes']['groupId']==_0x5e6d4a))_0x4371f4['setAttribute']('groupId',_0x10ca8e);}function _0xacc34e(_0x9812ac,_0x1b7e0d){let _0x56f787=_0x9812ac['head'],_0x3b907e=!0x1;for(;_0x56f787;)_0x56f787['attributes']['groupId']!=_0x1b7e0d&&(_0x1069cc(_0x56f787['attributes']['groupId'],_0x1b7e0d),_0x56f787['setAttribute']('groupId',_0x1b7e0d),_0x3b907e=!0x0),_0x56f787=_0x56f787['next'];return _0x3b907e;}}['_supportLegacySuggestions'](){const _0x5ced7f=this['editor'],_0xa9b0c8=_0x5ced7f['locale'],_0x4e22c4=_0x5ced7f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e22c4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a4000,_0x161b89){const _0x43ba87=[];for(let _0x1aadbf of _0x2a4000)_0x1aadbf['start']['nodeAfter']===_0x1aadbf['end']['parent']&&(_0x1aadbf=_0x5ced7f['model']['createRange'](_0x5ced7f['model']['createPositionAt'](_0x1aadbf['start']['nodeAfter'],0x0))),_0x43ba87['push'](_0x1aadbf);_0x5ced7f['model']['change'](_0x5882fe=>{const _0x292bbe=_0x5ced7f['model']['document']['selection'],_0x2d4ed5=Array['from'](_0x292bbe['getRanges']())['map'](_0xecdd73=>_0x2e923c['fromRange'](_0xecdd73));_0x5882fe['setSelection'](_0x43ba87),_0x5ced7f['commands']['get'](_0x161b89['commandName'])['refresh'](),_0x161b89['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5ced7f['execute'](_0x161b89['commandName'],..._0x161b89['commandParams']),_0x5882fe['setSelection'](_0x2d4ed5);for(const _0x50be20 of _0x2d4ed5)_0x50be20['detach']();});}),_0x4e22c4['descriptionFactory']['registerElementLabel'](function(_0x4bc0b2){const _0x394af8=!_0x5ced7f['model']['schema']['isObject'](_0x4bc0b2),_0x46103c=_0x4bc0b2['previousSibling'],_0x209999=_0x4bc0b2['nextSibling'],_0x17627d=_0x4bc0b2['getAttribute']('listItemId'),_0x279060=!_0x46103c||_0x46103c['getAttribute']('listItemId')!==_0x17627d,_0x41de88=!_0x209999||_0x209999['getAttribute']('listItemId')!==_0x17627d;return _0x394af8&&Boolean(_0x17627d)&&_0x279060&&_0x41de88;},_0x299f67=>o(_0xa9b0c8,'ELEMENT_LIST_ITEM',_0x299f67));}['_registerLegacyDescription'](){const _0x31c746=this['editor'],_0x4259c5=_0x31c746['locale'];function _0x39b5e4(_0x54cfc7){const _0x1054ed=_0x31c746['commands']['get']('bulletedList')['value'],_0x5e9975=_0x31c746['commands']['get']('numberedList')['value'];return'numberedList'===_0x54cfc7?_0x1054ed:_0x5e9975;}_0x31c746['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x55f546){if('formatBlock'!=_0x55f546['type'])return;const {data:_0x175c5f}=_0x55f546;if(!_0x175c5f)return;let _0x26b5b6,_0x10125a,_0x418408,_0x550dc9;switch(_0x175c5f['commandName']){case'bulletedList':_0x418408=_0x175c5f['commandParams'][0x0]['forceValue'],_0x550dc9=_0x39b5e4(_0x175c5f['commandName']),_0x26b5b6=_0x418408?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x550dc9&&_0x31c746['config']['get']('list.multiBlock')||(_0x26b5b6='*Change\x20to:*\x20%0'),_0x10125a={'type':'format','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x418408=_0x175c5f['commandParams'][0x0]['forceValue'],_0x550dc9=_0x39b5e4(_0x175c5f['commandName']),_0x26b5b6=_0x418408?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x550dc9&&_0x31c746['config']['get']('list.multiBlock')||(_0x26b5b6='*Change\x20to:*\x20%0'),_0x10125a={'type':'format','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x26b5b6='*Indent:*\x20%0',_0x10125a={'type':'format','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x26b5b6=function(_0x2dafdd){const _0x57d70a=_0x2dafdd['getFirstRange']();let _0x259b0a=_0x57d70a['start']['nodeAfter'];for(;_0x259b0a&&_0x57d70a['containsItem'](_0x259b0a);){if(_0x259b0a['getAttribute']('listIndent')>0x0)return!0x1;_0x259b0a=_0x259b0a['nextSibling'];}return!0x0;}(_0x55f546)?o(_0x4259c5,'*Format:*\x20remove\x20from\x20%0',o(_0x4259c5,function(_0x101370){return'ELEMENT_'+_0x101370['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x55f546))):o(_0x4259c5,'*Outdent:*\x20%0',o(_0x4259c5,'ELEMENT_LIST_ITEM')),_0x10125a={'type':'format','content':_0x26b5b6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x175c5f['multipleBlocks']&&(_0x26b5b6='*Merge:*\x20%0',_0x10125a={'type':'deletion','content':o(_0x4259c5,_0x26b5b6,o(_0x4259c5,'ELEMENT_LIST_ITEM'))});}return _0x10125a;});}}function le(_0x18ce57){let _0x45d64f=_0x18ce57['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x45d64f;){const _0x5d5a78=_0x45d64f['getAttribute']('listItemId');if(!_0x5d5a78)return!0x1;if(_0x5d5a78==_0x18ce57['data']['newValue'])return'newValue';if(_0x5d5a78==_0x18ce57['data']['oldValue'])return'oldValue';_0x45d64f=_0x45d64f['previousSibling'];}return!0x1;}class ue extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x520fd4=this['editor']['config']['get']('list.properties'),_0x922bd3=this['editor']['plugins']['get']('TrackChangesEditing');_0x520fd4['styles']&&(_0x922bd3['enableDefaultAttributesIntegration']('listStyle'),_0x922bd3['registerBlockAttribute']('listStyle')),_0x520fd4['reversed']&&(_0x922bd3['enableDefaultAttributesIntegration']('listReversed'),_0x922bd3['registerBlockAttribute']('listReversed')),_0x520fd4['startIndex']&&(_0x922bd3['enableDefaultAttributesIntegration']('listStart'),_0x922bd3['registerBlockAttribute']('listStart'));const _0x297fb3={'type':'format','content':''};_0x922bd3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1efb1f=this['editor']['locale'];_0x922bd3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1efb1f,'FORMAT_LIST_REVERSED')),_0x922bd3['descriptionFactory']['registerDescriptionCallback'](_0x1d9ba3=>{const {data:_0x351637}=_0x1d9ba3;if(_0x351637&&'listReversed'==_0x351637['key'])return null==_0x351637['newValue']||0x0==_0x351637['newValue']&&null==_0x351637['oldValue']?_0x297fb3:void 0x0;}),_0x922bd3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1efb1f,'FORMAT_LIST_START')),_0x922bd3['descriptionFactory']['registerDescriptionCallback'](_0x2a5dd8=>{const {data:_0x517248}=_0x2a5dd8;if(_0x517248&&'listStart'==_0x517248['key'])return null==_0x517248['newValue']||0x1==_0x517248['newValue']&&null==_0x517248['oldValue']?_0x297fb3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x18ee55=>{if(_0x18ee55['batch']['isUndo'])return!0x1;let _0x3cbedd=!0x1;const _0x5564a5=_0x922bd3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x139cb6=>{const _0x42cb20=_0x922bd3['_getAttributeKey'](_0x139cb6);return'listStart'==_0x42cb20||'listReversed'==_0x42cb20;});for(const _0x43ef5e of _0x5564a5){const _0x565037=_0x43ef5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x565037||'customNumbered'==_0x565037)continue;_0x922bd3['_findSuggestions'](_0x43ef5e['getFirstRange'](),'attribute')['find'](_0x244184=>'listType'==_0x922bd3['_getAttributeKey'](_0x244184['suggestion']))||(_0x18ee55['removeMarker'](_0x43ef5e['getFirstMarker']()),_0x3cbedd=!0x0);}return _0x3cbedd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5559cd){const _0x42df2b=this['editor']['locale'],{data:_0x39a7fc}=_0x5559cd,_0x5a80b8={'type':'format','content':''};if(!_0x39a7fc||'listStyle'!=_0x39a7fc['key'])return;if(!_0x39a7fc['oldValue'])return'default'==_0x39a7fc['newValue']?_0x5a80b8:{'type':'format','content':''+o(_0x42df2b,'*Set\x20format:*\x20%0',o(_0x42df2b,this['_getTranslationKeyForListStyle'](_0x39a7fc['newValue'])))};if(!_0x39a7fc['newValue']){if('default'==_0x39a7fc['oldValue'])return _0x5a80b8;let _0x47451d=_0x5559cd['head'];for(;_0x47451d;){if(_0x47451d['data']&&'listType'==_0x47451d['data']['key']&&_0x47451d['data']['newValue'])return _0x5a80b8;_0x47451d=_0x47451d['next'];}return{'type':'format','content':''+o(_0x42df2b,'*Remove\x20format:*\x20%0',o(_0x42df2b,this['_getTranslationKeyForListStyle'](_0x39a7fc['oldValue'])))};}if('default'!=_0x39a7fc['newValue'])return{'type':'format','content':''+o(_0x42df2b,'*Set\x20format:*\x20%0',o(_0x42df2b,this['_getTranslationKeyForListStyle'](_0x39a7fc['newValue'])))};let _0x3f2d33=_0x5559cd['head'];for(;_0x3f2d33;){if(_0x3f2d33['data']&&'listType'==_0x3f2d33['data']['key']&&_0x3f2d33['data']['newValue']&&_0x3f2d33['data']['oldValue'])return _0x5a80b8;_0x3f2d33=_0x3f2d33['next'];}return{'type':'format','content':o(_0x42df2b,'*Set\x20format:*\x20%0',o(_0x42df2b,'ELEMENT_'+_0x5559cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x465a6e=this['editor'],_0x5a9a95=_0x465a6e['locale'];_0x465a6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21d9a7=>{if('formatBlock'!=_0x21d9a7['type'])return;const {data:_0x45a52c}=_0x21d9a7;if(!_0x45a52c)return;let _0x3b8e96,_0x38d139;switch(_0x45a52c['commandName']){case'listStyle':_0x3b8e96='*Change\x20to:*\x20%0',_0x38d139={'type':'format','content':o(_0x5a9a95,_0x3b8e96,o(_0x5a9a95,this['_getTranslationKeyForListStyle'](_0x45a52c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b8e96=_0x45a52c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38d139={'type':'format','content':o(_0x5a9a95,_0x3b8e96)};break;case'listStart':_0x3b8e96='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38d139={'type':'format','content':o(_0x5a9a95,_0x3b8e96,_0x45a52c['commandParams'][0x0]['startIndex'])};}return _0x38d139;});}['_getTranslationKeyForListStyle'](_0x3a9103){return'ELEMENT_'+function(_0x15f2a7){if(pe['includes'](_0x15f2a7))return'bulleted';if(ye['includes'](_0x15f2a7))return'numbered';return null;}(_0x3a9103)['toUpperCase']()+'_LIST_'+_0x3a9103['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x3b57f6{static get['requires'](){return[_0xe252d7];}['init'](){const _0x29f95c=this['editor'],_0x2fb3bf=_0x29f95c['plugins']['get']('TrackChangesEditing'),_0x1bd9ed=_0x29f95c['commands']['get']('enter');_0x2fb3bf['enableCommand']('enter',()=>{_0x29f95c['model']['change'](_0x3d67a9=>{const _0x148917=_0x29f95c['model']['document']['selection'],_0x5a81da=_0x148917['getFirstPosition'](),_0x29a0f0=_0x2e923c['fromRange'](_0x148917['getFirstRange']());if(_0x1bd9ed['enterBlock'](_0x3d67a9)){const _0x17b87d=_0x29f95c['model']['createPositionAt'](_0x5a81da['parent']['nextSibling'],0x0),_0x1db752=_0x3d67a9['createRange'](_0x5a81da,_0x17b87d);_0x2fb3bf['markInsertion'](_0x1db752);}else _0x3d67a9['setSelection'](_0x3d67a9['createRange'](_0x29a0f0['end']));_0x29a0f0['detach'](),_0x1bd9ed['fire']('afterExecute',{'writer':_0x3d67a9});});}),_0x29f95c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x29f95c,'split'),{'priority':'high'}),_0x29f95c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4f2d1f,_0x572414,_0x5439de)=>{const _0x361693=_0x5439de['mapper']['markerNameToElements'](_0x572414['markerName']);if(_0x361693){for(const _0x394c63 of _0x361693)_0x394c63['hasClass']('ck-suggestion-marker-split')&&(_0x5439de['mapper']['unbindElementFromMarkerName'](_0x394c63,_0x572414['markerName']),_0x5439de['writer']['remove'](_0x394c63));}},{'priority':'high'}),_0x29f95c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5857a7,_0x110542,_0x114398)=>{_0x114398['options']['showSuggestionHighlights']&&_e(_0x29f95c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5857a7,_0x110542,_0x114398);},{'priority':'high'});}}class J extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39edec=this['editor']['plugins']['get']('TrackChangesEditing');_0x39edec['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39edec['enableCommand']('findNext'),_0x39edec['enableCommand']('findPrevious'),_0x39edec['enableCommand']('replace'),_0x39edec['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a7488,_0x1e2569,_0x3ce634={}){const _0x30d018=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a7488(_0x297934=>('string'==typeof _0x1e2569?_0x30d018['findByTextCallback'](_0x1e2569,_0x3ce634):_0x1e2569)(_0x297934)['filter'](_0x5ee9a8=>!0x1===this['_isInDeletionRange'](_0x5ee9a8,_0x297934['item'])),_0x3ce634);}['_isInDeletionRange'](_0x58171b,_0xa1577d){const _0x3b8824=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa1577d,_0x58171b['start']),this['editor']['model']['createPositionAt'](_0xa1577d,_0x58171b['end']));for(const _0x2fee11 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b8824['getIntersection'](_0x2fee11['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x3b57f6{['afterInit'](){const _0x3586bd=this['editor']['locale'],_0x5aeb2c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c7bd1,commandName:_0x1928a9}of ro)this['editor']['plugins']['has'](_0x3c7bd1)&&(_0x5aeb2c['enableDefaultAttributesIntegration'](_0x1928a9),_0x5aeb2c['registerInlineAttribute'](_0x1928a9));_0x3586bd['t'],_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3586bd,'FORMAT_FONT_SIZE')),_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3586bd,'FORMAT_FONT_FAMILY')),_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3586bd,'FORMAT_FONT_COLOR')),_0x5aeb2c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3586bd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x395c03=this['editor'],_0x2bbcb0=_0x395c03['locale'];_0x395c03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4463c1=>{const _0x443db=_0x2bbcb0['t'];if('formatInline'!=_0x4463c1['type'])return;const {data:_0x4ae08c}=_0x4463c1;if(null!=_0x4ae08c){if('fontSize'==_0x4ae08c['commandName']){const _0xb7c590=_0x4ae08c['commandParams'][0x0]['value'];if(_0xb7c590){const _0x154a38=_0x443db(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x55a37c=>_0x55a37c['model']==_0xb7c590)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20size:*\x20%0',_0x154a38)};}return{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4ae08c['commandName']){const _0x27a0ec=_0x4ae08c['commandParams'][0x0]['value'];return _0x27a0ec?{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20family:*\x20%0',_0x27a0ec)}:{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4ae08c['commandName']){const _0x39f15a=_0x4ae08c['commandParams'][0x0]['value'];if(_0x39f15a){const _0x35edb8=_0x44a005(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21ca23=>_0x21ca23['model']==_0x39f15a);let _0x575b1a=_0x39f15a,_0x2909d3='';return _0x35edb8&&(_0x575b1a=_0x35edb8['label'],_0x2909d3=_0x443db(_0x575b1a)['toLowerCase']()),{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20color:*\x20%0',_0x2909d3)['trim'](),'color':{'value':_0x39f15a,'title':_0x2909d3||_0x575b1a}};}return{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4ae08c['commandName']){const _0x269f43=_0x4ae08c['commandParams'][0x0]['value'];if(_0x269f43){const _0x10db33=_0x44a005(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1a8bbe=>_0x1a8bbe['model']==_0x269f43);let _0xbecfc2=_0x269f43,_0x1736b5='';return _0x10db33&&(_0xbecfc2=_0x10db33['label'],_0x1736b5=_0x443db(_0xbecfc2)['toLowerCase']()),{'type':'format','content':o(_0x2bbcb0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1736b5)['trim'](),'color':{'value':_0x269f43,'title':_0x1736b5||_0xbecfc2}};}return{'type':'format','content':o(_0x2bbcb0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3b57f6{['afterInit'](){const _0x5e8f3f=this['editor'],_0xa9bc72=_0x5e8f3f['plugins']['get']('TrackChangesEditing'),_0x44c31c=_0x5e8f3f['commands']['get']('copyFormat'),_0x11baf5=_0x5e8f3f['commands']['get']('pasteFormat');_0x44c31c&&_0x11baf5&&(_0xa9bc72['enableDefaultAttributesIntegration']('pasteFormat'),_0xa9bc72['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4eb612=this['editor'],_0x311139=_0x4eb612['locale'];_0x4eb612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb225=>{if('formatBlock'!=_0x2bb225['type']&&'formatInline'!=_0x2bb225['type'])return;const {data:_0x57daf2}=_0x2bb225;if(_0x57daf2&&'pasteFormat'===_0x57daf2['commandName']){const _0x5773ea=[],_0x252361=_0x57daf2['commandParams'][0x0];for(const [_0x55b7d1,_0x1e8c26]of Object['entries'](_0x252361))_0x5773ea['push'](so(_0x4eb612,_0x55b7d1,_0x1e8c26));return _0x5773ea['length']?{'type':'format','content':o(_0x311139,'*Set\x20format\x20to:*\x20%0',_0x5773ea['join'](',\x20'))}:{'type':'format','content':o(_0x311139,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4efd25,_0x2ec3e9,_0x1167e0){const _0x2ba5a5=_0x4efd25['locale']['t'],_0xd76e23=_0x2ec3e9['split'](/(?=[A-Z])/)['join']('\x20'),_0x1cbaa6=_0x2ba5a5(_0xd76e23['charAt'](0x0)['toUpperCase']()+_0xd76e23['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1167e0)return _0x1cbaa6;if('fontColor'===_0x2ec3e9||'fontBackgroundColor'===_0x2ec3e9){const _0x429d08=_0x44a005(_0x4efd25['config']['get']('fontColor.colors'))['find'](_0x4a62df=>_0x4a62df['model']==_0x1167e0);return _0x1cbaa6+'\x20('+(_0x429d08?_0x2ba5a5(_0x429d08['label'])['toLowerCase']():_0x1167e0)+')';}if('fontSize'===_0x2ec3e9&&isNaN(parseFloat(_0x1167e0))){const _0x5de73c=_0x4efd25['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4efd25['config']['get']('fontSize.options'))['find'](_0x1e94f1=>_0x1e94f1['model']==_0x1167e0);return _0x1cbaa6+'\x20('+(_0x5de73c?_0x2ba5a5(_0x5de73c['title'])['toLowerCase']():_0x1167e0)+')';}return _0x1cbaa6+'\x20('+_0x1167e0+')';}class Y extends _0x3b57f6{['_headingOptions'];['afterInit'](){const _0x2bb2a8=this['editor'];if(!_0x2bb2a8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2bb2a8['config']['get']('heading.options');const _0x2cb703=_0x2bb2a8['locale'],_0x3d76bf=_0x2bb2a8['plugins']['get']('TrackChangesEditing');_0x3d76bf['enableDefaultAttributesIntegration']('heading');for(const _0x250caa of this['_headingOptions'])'paragraph'!=_0x250caa['model']&&_0x3d76bf['descriptionFactory']['registerElementLabel'](_0x250caa['model'],_0x26fd97=>{const _0x17d48f=this['_getHeadingLevel'](_0x250caa['model']);return null!==_0x17d48f?_0x35a245(_0x26fd97,_0x17d48f):_0x3dda8b(_0x26fd97,_0x250caa['title']);});function _0x35a245(_0x5181f1,_0x40f9db){return o(_0x2cb703,'ELEMENT_HEADING',[_0x5181f1,_0x40f9db]);}function _0x3dda8b(_0x7c2894,_0xd8ac9d){return o(_0x2cb703,'ELEMENT_HEADING_CUSTOM',[_0x7c2894,_0xd8ac9d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57e2c8=this['editor'],_0x1f340e=_0x57e2c8['locale'];function _0x549c2d(_0x105fbc,_0x25ba0b){return o(_0x1f340e,'ELEMENT_HEADING_CUSTOM',[_0x105fbc,_0x25ba0b]);}_0x57e2c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313c1e=>{if('formatBlock'!=_0x313c1e['type'])return;const {data:_0x201e5c}=_0x313c1e;if(_0x201e5c&&'heading'==_0x201e5c['commandName']){const _0x55c9c3=_0x201e5c['commandParams'][0x0]['value'],_0x3afccb=this['_getHeadingLevel'](_0x55c9c3);if(null!==_0x3afccb)return{'type':'format','content':o(_0x1f340e,'*Change\x20to:*\x20%0',(_0x1773af=0x1,_0x493289=_0x3afccb,o(_0x1f340e,'ELEMENT_HEADING',[_0x1773af,_0x493289])))};const _0x158ae9=this['_headingOptions']['find'](_0x4f2ad5=>_0x4f2ad5['model']===_0x55c9c3)['title'];return{'type':'format','content':o(_0x1f340e,'*Change\x20to:*\x20%0',_0x549c2d(0x1,_0x158ae9))};}var _0x1773af,_0x493289;});}['_getHeadingLevel'](_0x2cff54){const _0x22a4e0=_0x2cff54['match'](/^heading(\d+)/);if(_0x22a4e0)return _0x22a4e0[0x1];const _0x3aa52f=this['_headingOptions']?.['find'](_0x19ce3f=>_0x19ce3f['model']==_0x2cff54);if(_0x3aa52f&&_0x3aa52f['view']){const _0x105ab5=_0x3aa52f['view'],_0x2e580f=(_0x105ab5['name']??_0x105ab5)['match'](/^h(\d+)/);if(_0x2e580f)return _0x2e580f[0x1];}return null;}}class Z extends _0x3b57f6{['afterInit'](){const _0x1bd778=this['editor'];if(!_0x1bd778['plugins']['has']('HighlightEditing'))return;const _0x34a684=_0x1bd778['plugins']['get']('TrackChangesEditing'),_0x3bcefa=_0x1bd778['locale'];_0x34a684['enableDefaultAttributesIntegration']('highlight'),_0x34a684['registerInlineAttribute']('highlight'),_0x34a684['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3bcefa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c439=this['editor'],_0x2ece49=_0x44c439['locale'];_0x44c439['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e53ac=>{if('formatInline'!=_0x7e53ac['type'])return;const {data:_0xc938e6}=_0x7e53ac;if(_0xc938e6&&'highlight'==_0xc938e6['commandName']){const _0x3a8449=_0x2ece49['t'],_0x3c6cd1=_0xc938e6['commandParams'][0x0]['value'];if(_0x3c6cd1){const _0x5306b3=_0x44c439['config']['get']('highlight.options')['find'](_0x5674f4=>_0x5674f4['model']==_0x3c6cd1),_0x47c1a9=_0x3a8449(_0x5306b3['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ece49,'*Set\x20highlight:*\x20%0',_0x47c1a9),'color':{'value':_0x5306b3['color'],'title':_0x5306b3['title']}};}return{'type':'format','content':o(_0x2ece49,'*Remove\x20highlight*',o(_0x2ece49,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3b57f6{['afterInit'](){const _0x5c21c2=this['editor'];if(!_0x5c21c2['plugins']['has']('HorizontalLineEditing'))return;_0x5c21c2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x60e641=_0x5c21c2['plugins']['get']('TrackChangesEditing'),_0x237a36=_0x5c21c2['locale'];_0x60e641['descriptionFactory']['registerElementLabel']('horizontalLine',_0x425f14=>o(_0x237a36,'ELEMENT_HORIZONTAL_LINE',_0x425f14)),_0x5c21c2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c37bc,{writer:_0x351045,options:_0x32ad0b})=>{if(!_0x32ad0b['showSuggestionHighlights'])return null;const _0x284cdf=_0x351045['createContainerElement']('div'),_0x4002fa=_0x351045['createEmptyElement']('hr');return _0x351045['addClass']('ck-horizontal-line',_0x284cdf),_0x351045['insert'](_0x351045['createPositionAt'](_0x284cdf,0x0),_0x4002fa),_0x284cdf;},'converterPriority':'high'});}}class et extends _0x3b57f6{['afterInit'](){const _0x4bb529=this['editor'];if(!_0x4bb529['plugins']['has']('HtmlEmbed'))return;const _0xca690=_0x4bb529['plugins']['get']('TrackChangesEditing'),_0x9ab2fa=_0x4bb529['locale'];_0xca690['descriptionFactory']['registerElementLabel']('rawHtml',_0x227357=>o(_0x9ab2fa,'ELEMENT_HTML_EMBED',_0x227357)),_0xca690['enableDefaultAttributesIntegration']('htmlEmbed'),_0xca690['registerBlockAttribute']('value'),_0xca690['descriptionFactory']['registerDescriptionCallback'](_0x2da9e4=>{if('attribute'!=_0x2da9e4['type'])return;const {data:_0x16a4d3}=_0x2da9e4;if(_0x16a4d3&&'value'==_0x16a4d3['key']&&_0x2da9e4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4d18ed=o(_0x9ab2fa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x9ab2fa,'*Change\x20%0\x20content*',_0x4d18ed)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba361=this['editor'],_0x5c44a4=_0x2ba361['locale'];_0x2ba361['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab3fd=>{if('formatBlock'!=_0x2ab3fd['type'])return;const {data:_0x10c74b}=_0x2ab3fd;if(_0x10c74b&&'htmlEmbed'==_0x10c74b['commandName']){const _0x4c055c=o(_0x5c44a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c44a4,'*Change\x20%0\x20content*',_0x4c055c)};}});}}class it extends _0x3b57f6{['afterInit'](){const _0x2ad2fc=this['editor'];if(!_0x2ad2fc['plugins']['has']('ImageEditing'))return;const _0x23aec1=_0x2ad2fc['plugins']['get']('TrackChangesEditing'),_0x343367=_0x2ad2fc['plugins']['get']('ImageUtils'),_0x247732=_0x2ad2fc['locale'];_0x23aec1['enableCommand']('insertImage'),_0x23aec1['descriptionFactory']['registerElementLabel']('imageBlock',_0x7c50b2=>o(_0x247732,'ELEMENT_IMAGE',_0x7c50b2)),_0x23aec1['descriptionFactory']['registerElementLabel']('imageInline',_0x3153a7=>o(_0x247732,'ELEMENT_INLINE_IMAGE',_0x3153a7)),_0x23aec1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x247732,'ELEMENT_CAPTION')),_0x2ad2fc['plugins']['has']('ImageUploadEditing')&&_0x23aec1['enableCommand']('uploadImage'),_0x2ad2fc['plugins']['has']('ImageBlockEditing')&&_0x2ad2fc['plugins']['has']('ImageInlineEditing')&&(_0x23aec1['enableCommand']('imageTypeInline',(_0x2c3994,_0x22acf0)=>{const _0x55e6c0=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']);_0x2ad2fc['model']['change'](()=>{_0x23aec1['markBlockFormat'](_0x55e6c0,{'commandName':'imageTypeInline','commandParams':[_0x22acf0]},[],'convertBlockImageToInline');});}),_0x23aec1['enableCommand']('imageTypeBlock',(_0x3c1b6f,_0x376ab5)=>{_0x2ad2fc['model']['change'](_0x1b0123=>{let _0x3e8fd6=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x55b2da=_0x1b0123['createRangeOn'](_0x3e8fd6);const _0x404438=_0x30dd34['fromPosition'](_0x55b2da['start'],'toPrevious'),_0x5f406b=_0x30dd34['fromPosition'](_0x55b2da['end'],'toNext');_0x23aec1['forceDefaultExecution'](()=>_0x3c1b6f(_0x376ab5)),_0x3e8fd6=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x55b2da=_0x1b0123['createRangeOn'](_0x3e8fd6);const _0x1b8cdd=_0x1b0123['createRange'](_0x404438,_0x5f406b);_0x404438['detach'](),_0x5f406b['detach'](),_0x23aec1['markBlockFormat'](_0x3e8fd6,{'commandName':'imageTypeInline','commandParams':[_0x376ab5]},[],'convertInlineImageToBlock'),_0x1b8cdd['start']['isBefore'](_0x55b2da['start'])&&_0x23aec1['markInsertion'](_0x1b0123['createRange'](_0x1b8cdd['start'],_0x55b2da['start']),'convertInlineImageToBlock'),_0x55b2da['end']['isBefore'](_0x1b8cdd['end'])&&_0x23aec1['markInsertion'](_0x1b0123['createRange'](_0x55b2da['end'],_0x1b8cdd['end']),'convertInlineImageToBlock');});}),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x23aec1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5cbfbd])=>{const _0x3bf444=_0x23aec1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4e7c1d=_0x5cbfbd['start'],_0x32285a=_0x5cbfbd['end'];const _0x536243=_0x2ad2fc['model']['schema']['getNearestSelectionRange'](_0x4e7c1d,'backward'),_0x567066=_0x2ad2fc['model']['schema']['getNearestSelectionRange'](_0x32285a,'forward');_0x536243['isCollapsed']&&(_0x4e7c1d=_0x536243['start']),_0x567066['isCollapsed']&&(_0x32285a=_0x567066['end']),_0x3bf444([_0x2ad2fc['model']['createRange'](_0x4e7c1d,_0x32285a)]);}),_0x23aec1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x21c3a1),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x21c3a1)),_0x2ad2fc['plugins']['has']('ImageCaptionEditing')&&(_0x23aec1['enableCommand']('toggleImageCaption',(_0x53c560,_0x239dbc)=>{const _0x4ada07=_0x2ad2fc['plugins']['get']('ImageCaptionUtils');let _0x352b33=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x4f5d6c=_0x4ada07['getCaptionFromImageModelElement'](_0x352b33);_0x2ad2fc['model']['change'](()=>{if(_0x4f5d6c)return void _0x23aec1['markDeletion'](_0x2ad2fc['model']['createRangeOn'](_0x4f5d6c));const _0x4b242a=_0x343367['isBlockImage'](_0x352b33);_0x53c560(_0x239dbc),_0x352b33=_0x343367['getClosestSelectedImageElement'](_0x2ad2fc['model']['document']['selection']),_0x4f5d6c=_0x4ada07['getCaptionFromImageModelElement'](_0x352b33),_0x23aec1['markInsertion'](_0x2ad2fc['model']['createRangeOn'](_0x4f5d6c),_0x4b242a?null:'imageCaption');});}),_0x23aec1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x21c3a1));const _0x5bb299=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5091cf(_0x3e72f1,_0x4fb161){const _0x2eb1bf=_0x5bb299['findIndex'](({type:_0x32464c,subType:_0x5604a9})=>_0x3e72f1['type']==_0x32464c&&_0x3e72f1['subType']==_0x5604a9),_0x487c5e=_0x5bb299['findIndex'](({type:_0x11e17b,subType:_0x211a5d})=>_0x4fb161['type']==_0x11e17b&&_0x4fb161['subType']==_0x211a5d);if(_0x2eb1bf<0x0||_0x487c5e<0x0)return!0x1;const _0xa25434=_0x3e72f1['getFirstRange'](),_0x175b3b=_0x4fb161['getFirstRange']();if((0x0==_0x2eb1bf||0x1==_0x2eb1bf)&&0x2==_0x487c5e&&_0xa25434['isIntersecting'](_0x175b3b))return!0x0;if(0x2==_0x2eb1bf&&0x3==_0x487c5e){const _0x910973=_0x23aec1['_findSuggestions'](_0xa25434,'insertion')['filter'](({suggestion:_0x9260c9,meta:_0x38e1ee})=>_0x38e1ee['isOwn']&&'convertInlineImageToBlock'==_0x9260c9['subType']);if(_0x910973['length']>0x1&&_0x175b3b['end']['isEqual'](_0xa25434['start']))return!0x0;if(0x1==_0x910973['length']&&(_0xa25434['start']['isEqual'](_0x175b3b['end'])||_0xa25434['end']['isEqual'](_0x175b3b['start'])))return!0x0;}if(0x3==_0x2eb1bf&&0x3==_0x487c5e&&_0xa25434['start']['isBefore'](_0x175b3b['start'])){const _0x764b94=_0xa25434['end']['nodeAfter'],_0x545881=_0x175b3b['start']['nodeBefore'];return _0x343367['isBlockImage'](_0x764b94)&&_0x764b94===_0x545881;}return!0x1;}function _0x21c3a1(_0x41b34f,_0xf79009){return _0x5091cf(_0x41b34f,_0xf79009)?[_0x41b34f,_0xf79009]:_0x5091cf(_0xf79009,_0x41b34f)?[_0xf79009,_0x41b34f]:null;}_0x2ad2fc['plugins']['has']('ImageResize')&&(_0x23aec1['enableDefaultAttributesIntegration']('resizeImage'),_0x23aec1['registerBlockAttribute']('resizedWidth'),_0x23aec1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x247732,'FORMAT_IMAGE_SIZE'))),_0x2ad2fc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x23aec1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x23aec1['registerBlockAttribute']('alt')),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x2d2cdc=>{if(!!_0x5bb299['find'](({type:_0x1d132a,subType:_0x10889f})=>_0x2d2cdc['type']==_0x1d132a&&_0x2d2cdc['subType']==_0x10889f))return _0x2d2cdc['previous']?{}:void 0x0;}),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x226b8f=>{if('insertion'==_0x226b8f['type']||'deletion'==_0x226b8f['type']){const _0x342dd4=_0x226b8f['getContainedElement']();if(_0x342dd4&&_0x342dd4['is']('element','caption'))return{'type':'insertion'==_0x226b8f['type']?'addObject':'removeObject','element':_0x342dd4,'quantity':0x1};}}),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x1bd167=>'formatBlock'==_0x1bd167['type']&&'convertInlineImageToBlock'==_0x1bd167['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1bd167['type']&&'convertBlockImageToInline'==_0x1bd167['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x23aec1['descriptionFactory']['registerDescriptionCallback'](_0x127f91=>{if('attribute'!=_0x127f91['type'])return;const {data:_0x38bf7d}=_0x127f91;if(!_0x38bf7d||'alt'!=_0x38bf7d['key'])return;const _0x403d6f=_0x38bf7d['newValue'];return _0x403d6f?{'type':'format','content':o(_0x247732,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x403d6f+'\x22')}:{'type':'format','content':o(_0x247732,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5405d5=this['editor'],_0x155a30=_0x5405d5['locale'];_0x5405d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x807c39=>{if('formatBlock'!=_0x807c39['type']&&'formatInline'!=_0x807c39['type'])return;const {data:_0x1b17d5}=_0x807c39;if(_0x1b17d5){if('imageTextAlternative'==_0x1b17d5['commandName']){const _0x496ac8=_0x1b17d5['commandParams'][0x0]['newValue'];return _0x496ac8?{'type':'format','content':o(_0x155a30,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x496ac8+'\x22')}:{'type':'format','content':o(_0x155a30,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1b17d5['commandName']){const _0x3481a3=_0x1b17d5['commandParams'][0x0]['width'];return _0x3481a3?{'type':'format','content':o(_0x155a30,'*Set\x20image\x20width:*\x20%0',_0x3481a3)}:{'type':'format','content':o(_0x155a30,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x473f54=this['editor']['locale'],_0x23ef0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x23ef0f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x23ef0f['registerBlockAttribute']('src'),_0x23ef0f['descriptionFactory']['registerDescriptionCallback'](_0x3d5a3f=>{if('attribute'!=_0x3d5a3f['type'])return;const {data:_0x217eec}=_0x3d5a3f;return _0x217eec&&'src'==_0x217eec['key']?_0x217eec['newValue']&&_0x217eec['oldValue']?{'type':'format','content':o(_0x473f54,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5257a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5257a9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5257a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5257a9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5257a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2299b=this['editor'],_0x195672=_0xe2299b['locale'];_0xe2299b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19265e=>{if('formatBlock'!=_0x19265e['type']&&'formatInline'!=_0x19265e['type'])return;const {data:_0x32d0f7}=_0x19265e;if(!_0x32d0f7||'replaceImageSource'!=_0x32d0f7['commandName'])return;return{'type':'format','content':o(_0x195672,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3b57f6{['afterInit'](){const _0x167928=this['editor'];if(!_0x167928['plugins']['has']('ImageStyleEditing'))return;const _0x4e9d89=_0x167928['plugins']['get']('TrackChangesEditing'),_0x213085=_0x167928['plugins']['get']('ImageUtils'),_0x37554c={};_0x4e9d89['enableCommand']('imageStyle',(_0x19b92f,_0x2ab485)=>{const _0x4b23d2=_0x167928['plugins']['get']('Users')['me'],_0x5e706d=_0x167928['commands']['get']('imageStyle');let _0x336ed3=_0x213085['getClosestSelectedImageElement'](_0x167928['model']['document']['selection']),_0x444700=_0x167928['model']['createRangeOn'](_0x336ed3),_0x38cdab=_0x5e706d['value'];if(_0x38cdab==_0x2ab485['value'])return;const _0x23c369={'commandName':'imageStyle','commandParams':[_0x2ab485],'formatGroupId':_0x386e7f()};_0x167928['model']['change'](()=>{if(_0x4e9d89['getSuggestions']()['filter'](_0x2f7249=>_0x2f7249['isInContent']&&_0x4b23d2==_0x2f7249['author']&&('formatBlock'==_0x2f7249['type']||'formatInline'==_0x2f7249['type'])&&('imageStylePreApply'==_0x2f7249['subType']||'imageStylePostApply'==_0x2f7249['subType'])&&_0x2f7249['getFirstRange']()['isEqual'](_0x444700))['forEach'](_0x9b8872=>_0x4e9d89['discardSuggestion'](_0x9b8872['head'])),_0x336ed3=_0x213085['getClosestSelectedImageElement'](_0x167928['model']['document']['selection']),_0x444700=_0x167928['model']['createRangeOn'](_0x336ed3),_0x5e706d['refresh'](),_0x167928['commands']['get']('imageTypeInline')['refresh'](),_0x167928['commands']['get']('imageTypeBlock')['refresh'](),_0x38cdab=_0x5e706d['value'],_0x38cdab!=_0x2ab485['value'])return _0x213085['isInlineImage'](_0x336ed3)&&_0x5e706d['shouldConvertImageType'](_0x2ab485['value'],_0x336ed3)?(_0x19b92f({..._0x2ab485,'setImageSizes':!0x1}),_0x336ed3=_0x213085['getClosestSelectedImageElement'](_0x167928['model']['document']['selection']),void _0x4e9d89['markBlockFormat'](_0x336ed3,{..._0x23c369,'commandReversedParams':[{'value':_0x38cdab||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x213085['isBlockImage'](_0x336ed3)?_0x4e9d89['markBlockFormat'](_0x336ed3,_0x23c369,[],'imageStylePostApply'):_0x4e9d89['markInlineFormat'](_0x444700,_0x23c369,'imageStylePostApply'));});});for(const _0xab62d8 of _0x167928['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37554c[_0xab62d8['name']]=_0xab62d8['title']['toLowerCase']();_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f1120])=>{_0x213085['setImageNaturalSizeAttributes'](_0x4f1120['getContainedElement']());}),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3756eb,_0x32097f)=>{_0x4e9d89['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3756eb,{'commandName':_0x32097f['commandName'],'commandParams':_0x32097f['commandReversedParams']});}),_0x4e9d89['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b38a4,_0x34837d){if(_0x3910b9(_0x2b38a4,_0x34837d))return[_0x2b38a4,_0x34837d];if(_0x3910b9(_0x34837d,_0x2b38a4))return[_0x34837d,_0x2b38a4];return null;});const _0x39d485=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3910b9(_0x1faab4,_0x2405ec){const _0x5b3fe4=_0x39d485['findIndex'](({type:_0x3836b8,subType:_0x4a0ef0})=>_0x1faab4['type']==_0x3836b8&&_0x1faab4['subType']==_0x4a0ef0),_0x1405f9=_0x39d485['findIndex'](({type:_0x2c93aa,subType:_0x5233c3})=>_0x2405ec['type']==_0x2c93aa&&_0x2405ec['subType']==_0x5233c3);if(_0x5b3fe4<0x0||_0x1405f9<0x0)return!0x1;const _0xffbd8c=_0x1faab4['getFirstRange'](),_0x18ed86=_0x2405ec['getFirstRange']();if((0x0==_0x5b3fe4||0x1==_0x5b3fe4)&&0x2==_0x1405f9&&_0xffbd8c['isIntersecting'](_0x18ed86))return!0x0;if(0x2==_0x5b3fe4&&0x3==_0x1405f9){const _0x382b2b=_0x4e9d89['_findSuggestions'](_0xffbd8c,'insertion')['filter'](({suggestion:_0x5cac98,meta:_0x1b95f8})=>_0x1b95f8['isOwn']&&'convertInlineImageToBlock'==_0x5cac98['subType']);if(_0x382b2b['length']>0x1&&_0x18ed86['end']['isEqual'](_0xffbd8c['start']))return!0x0;if(0x1==_0x382b2b['length']&&(_0xffbd8c['start']['isEqual'](_0x18ed86['end'])||_0xffbd8c['end']['isEqual'](_0x18ed86['start'])))return!0x0;}if(0x3==_0x5b3fe4&&0x3==_0x1405f9&&_0xffbd8c['start']['isBefore'](_0x18ed86['start'])){const _0x1303df=_0xffbd8c['end']['nodeAfter'],_0x37d715=_0x18ed86['start']['nodeBefore'];return _0x213085['isBlockImage'](_0x1303df)&&_0x1303df===_0x37d715;}return!0x1;}_0x167928['model']['document']['registerPostFixer'](()=>{let _0x4961ff=!0x1;const _0x4af2aa=Array['from'](_0x167928['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12d79a,data:_0x7b7fbf}of _0x4af2aa){const {group:_0x3ab32c,type:_0x25045b,subType:_0x18df8c,id:_0x219e52}=_0x4e9d89['_splitMarkerName'](_0x12d79a);if('suggestion'==_0x3ab32c&&_0x4e9d89['hasSuggestion'](_0x219e52)){if('formatBlock'==_0x25045b&&('imageStylePreApply'==_0x18df8c||'imageStylePostApply'==_0x18df8c)){const _0x4dffd0=_0x4e9d89['getSuggestion'](_0x219e52);if(_0x7b7fbf['newRange']){const _0x532ae7=_0x4dffd0['getFirstRange']()['getContainedElement']();if(_0x213085['isBlockImage'](_0x532ae7))continue;_0x4e9d89['discardSuggestion'](_0x4dffd0),_0x4961ff=!0x0;}}if('insertion'==_0x25045b&&'imageCaption'==_0x18df8c&&!_0x7b7fbf['newRange']){const _0x3de3bd=_0x4e9d89['getSuggestion'](_0x219e52);_0x3de3bd['next']&&_0x3de3bd['next']['isInContent']&&(_0x4e9d89['discardSuggestion'](_0x3de3bd['next']),_0x4961ff=!0x0);}}}return _0x4961ff;}),this['_registerLegacyDescription'](_0x37554c);}['_registerLegacyDescription'](_0x444c92){const _0xce3fbf=this['editor'],_0x542535=_0xce3fbf['locale'];_0xce3fbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1417a9=>{if('formatBlock'!=_0x1417a9['type']&&'formatInline'!=_0x1417a9['type'])return;const {data:_0x19dfad}=_0x1417a9;if(!_0x19dfad||'imageStyle'!=_0x19dfad['commandName'])return;const _0x462d22=_0x19dfad['commandParams'][0x0]['value'];return _0x40ba1a('side'===_0x462d22?o(_0x542535,'FORMAT_SIDE_IMAGE'):_0x444c92[_0x462d22]||_0x462d22);function _0x40ba1a(_0x48295f){return{'type':'format','content':o(_0x542535,'*Format:*\x20%0',_0x48295f)};}});}}class ot extends _0x3b57f6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1da97d){super(_0x1da97d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2fffa5=this['editor'],_0x36e576=_0x2fffa5['commands']['get']('importWord'),_0x59298d=_0x2fffa5['commands']['get']('trackChanges');_0x36e576&&(_0x36e576['on']('execute',(_0x3129d8,[,_0x48ab9b])=>{this['_trackChangesValueDuringImport']=_0x59298d['value'],_0x48ab9b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x36e576,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x36e576,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59298d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fffa5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3e757c,_0x45445a){const {suggestions:_0x2736fa}=_0x45445a,_0x3be5e3=this['editor']['commands']['get']('trackChanges'),_0x27f64a=_0x3be5e3['value'];this['_trackChangesValueDuringImport']!==_0x27f64a&&(_0x3be5e3['execute'](),this['_trackChangesExecuted']=!0x0),_0x2736fa&&_0x2736fa['forEach'](({id:_0x3c28ec,type:_0x3158c6,author:_0x95b44d,created_at:_0x695468})=>{const _0x2a428c={'id':_0x3c28ec,'type':_0x3158c6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x95b44d,'createdAt':_0x695468?new Date(_0x695468):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a428c);});}}class rt extends _0x3b57f6{['afterInit'](){const _0x3c8e14=this['editor'],_0x48932d=_0x3c8e14['plugins']['get']('TrackChangesEditing');if(_0x3c8e14['plugins']['has']('IndentEditing')&&(_0x48932d['enableCommand']('indent'),_0x48932d['enableCommand']('outdent')),_0x3c8e14['plugins']['has']('IndentBlock')){for(const _0x4b0fb3 of['indentBlock','outdentBlock'])_0x48932d['enableDefaultAttributesIntegration'](_0x4b0fb3);}const _0x374bcb=_0x3c8e14['locale'];_0x48932d['registerBlockAttribute']('blockIndent'),_0x48932d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x374bcb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2f21=this['editor'],_0xd05c4c=_0x2c2f21['locale'],_0x59bce4=_0x2c2f21['plugins']['get']('TrackChangesEditing');_0x59bce4['descriptionFactory']['registerDescriptionCallback'](_0x481aa3=>{if('formatBlock'!=_0x481aa3['type'])return;const {data:_0x59d705}=_0x481aa3;if(!_0x59d705)return;if('indentBlock'!=_0x59d705['commandName']&&'outdentBlock'!=_0x59d705['commandName'])return;const _0x17cbf0=_0x481aa3['getItems']()[0x0],_0x348b8a=_0x59bce4['descriptionFactory']['getItemLabel'](_0x17cbf0);return'indentBlock'==_0x59d705['commandName']?{'type':'format','content':o(_0xd05c4c,'*Indent:*\x20%0',_0x348b8a)}:'outdentBlock'==_0x59d705['commandName']?{'type':'format','content':o(_0xd05c4c,'*Outdent:*\x20%0',_0x348b8a)}:void 0x0;});}}class at extends _0x3b57f6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3b57f6{['afterInit'](){const _0x59805b=this['editor'];if(!_0x59805b['plugins']['has']('LinkEditing'))return;const _0x2cb3f7=_0x59805b['plugins']['get']('TrackChangesEditing'),_0x261f38=_0x59805b['commands']['get']('link');_0x2cb3f7['enableDefaultAttributesIntegration']('link'),_0x2cb3f7['enableDefaultAttributesIntegration']('unlink'),_0x2cb3f7['registerInlineAttribute']('linkHref');for(const _0x1f5296 of _0x261f38['manualDecorators'])_0x2cb3f7['registerInlineAttribute'](_0x1f5296['id']),_0x2cb3f7['descriptionFactory']['registerAttributeLabel'](_0x1f5296['id'],'link\x20('+_0x1f5296['label']['toLowerCase']()+')');_0x2cb3f7['descriptionFactory']['registerDescriptionCallback'](_0x5ac637=>{if('attribute'!=_0x5ac637['type'])return;const {data:_0x1b2d57}=_0x5ac637;if(!_0x1b2d57||'linkHref'!=_0x1b2d57['key'])return;const _0x18dd4b=_0x1b2d57['newValue'],_0x31b5af=_0x59805b['locale'];return{'type':'format','content':null==_0x18dd4b?o(_0x31b5af,'*Remove\x20link*'):o(_0x31b5af,'*Set\x20link:*\x20%0','\x22'+_0x18dd4b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3aa59=this['editor'],_0x4b563c=_0xd3aa59['locale'];_0xd3aa59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x522a64=>{if('formatInline'!=_0x522a64['type'])return;const {data:_0x3159bb}=_0x522a64;if(_0x3159bb){if('link'==_0x3159bb['commandName']){const _0x22daf6=_0x3159bb['commandParams'][0x0];return{'type':'format','content':o(_0x4b563c,'*Set\x20link:*\x20%0','\x22'+_0x22daf6+'\x22')};}return'unlink'==_0x3159bb['commandName']?{'type':'format','content':o(_0x4b563c,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3b57f6{['afterInit'](){const _0x29a711=this['editor'],_0x5d6cf8=_0x29a711['locale'];if(!_0x29a711['plugins']['has']('LegacyListEditing'))return;const _0x3ba956=_0x29a711['plugins']['get']('TrackChangesEditing'),_0x32c600=_0x29a711['plugins']['has']('LegacyTodoListEditing');function _0x46f209(_0x3f0071){return()=>{const _0x59c105=_0x29a711['model']['document']['selection'],_0x20ba54=_0x29a711['commands']['get'](_0x3f0071);if(_0x20ba54['value'])return void _0x29a711['execute']('paragraph',{});const _0x2484ea=_0x3f0071['slice'](0x0,-0x4),_0x99cb83=function(_0x58afc4,_0x18089b,_0x147e77){let _0x4ecf0e=Array['from'](_0x58afc4)['filter'](_0xeca08e=>function(_0x38b561,_0x38fb43){return _0x38fb43['checkChild'](_0x38b561['parent'],'listItem')&&!_0x38fb43['isObject'](_0x38b561);}(_0xeca08e,_0x147e77));_0x4ecf0e=_0x4ecf0e['filter'](_0x3be8a4=>!_0x3be8a4['is']('element','listItem')||_0x3be8a4['getAttribute']('listType')!=_0x18089b);const _0xf59e0c=new Set();for(const _0x42257c of _0x4ecf0e)_0x42257c['is']('element','listItem')?_0xf59e0c['add'](me(_0x42257c)):_0xf59e0c['add'](_0x42257c);return Array['from'](_0xf59e0c);}(_0x59c105['getSelectedBlocks'](),_0x2484ea,_0x29a711['model']['schema']);_0x29a711['model']['change'](()=>{for(const _0x1b63fc of _0x99cb83)_0x3ba956['markBlockFormat'](_0x1b63fc,{'commandName':_0x3f0071,'commandParams':[{'forceValue':!_0x20ba54['value']}],'formatGroupId':'blockName'},fe(_0x1b63fc));});};}function _0x3abe0d(_0x3c3584){return()=>{const _0x26d230=function(_0xe2f4c1){let _0x4df599=Array['from'](_0xe2f4c1);const _0x335e32=_0x4df599['findIndex'](_0xa237e7=>'listItem'!=_0xa237e7['name']);return _0x335e32>-0x1&&(_0x4df599=_0x4df599['slice'](0x0,_0x335e32)),_0x4df599;}(_0x29a711['model']['document']['selection']['getSelectedBlocks']()),_0x5bc582=_0x29a711['model']['createRange'](_0x29a711['model']['createPositionAt'](_0x26d230[0x0],'before'),_0x29a711['model']['createPositionAt'](_0x26d230[_0x26d230['length']-0x1],'end'));_0x29a711['model']['change'](()=>{_0x3ba956['markBlockFormat'](_0x5bc582,{'commandName':_0x3c3584,'commandParams':[],'formatGroupId':'listIndent'},function(_0x22c3d9){const _0x286c3b=new Set();for(const _0x4f56d3 of _0x22c3d9){let _0x33be4b=_0x4f56d3['nextSibling'];for(;_0x33be4b&&_0x33be4b['getAttribute']('listIndent')>_0x4f56d3['getAttribute']('listIndent');)_0x286c3b['add'](_0x33be4b),_0x33be4b=_0x33be4b['nextSibling'];}return Array['from'](_0x286c3b);}(_0x26d230));});};}_0x3ba956['enableCommand']('numberedList',_0x46f209('numberedList')),_0x3ba956['enableCommand']('bulletedList',_0x46f209('bulletedList')),_0x32c600&&_0x3ba956['enableCommand']('todoList',_0x46f209('todoList')),_0x3ba956['enableCommand']('indentList',_0x3abe0d('indentList')),_0x3ba956['enableCommand']('outdentList',_0x3abe0d('outdentList')),_0x32c600&&_0x3ba956['enableCommand']('checkTodoList',()=>{const _0x53d92a=_0x29a711['commands']['get']('checkTodoList'),_0x55e563=Array['from'](_0x53d92a['_selectedElements']);_0x55e563['filter'](_0x21e5c2=>_0x21e5c2['getAttribute']('todoListChecked')!=_0x53d92a['value']),_0x29a711['model']['change'](()=>{for(const _0x339538 of _0x55e563)_0x3ba956['markBlockFormat'](_0x339538,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x53d92a['value']}]});});}),_0x3ba956['descriptionFactory']['registerElementLabel']('listItem',_0x30cb0e=>o(_0x5d6cf8,'ELEMENT_LIST_ITEM',_0x30cb0e)),_0x3ba956['descriptionFactory']['registerDescriptionCallback'](_0x3819fb=>{if('formatBlock'!=_0x3819fb['type']&&'formatInline'!=_0x3819fb['type'])return;const {data:_0x126162}=_0x3819fb;if(_0x126162){if('numberedList'==_0x126162['commandName']||'bulletedList'==_0x126162['commandName']||'todoList'==_0x126162['commandName'])switch(_0x126162['commandName']['replace']('List','')){case'bulleted':return _0x2c86c7(o(_0x5d6cf8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c86c7(o(_0x5d6cf8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c86c7(o(_0x5d6cf8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x126162['commandName'])return{'type':'format','content':o(_0x5d6cf8,'*Indent:*\x20%0',o(_0x5d6cf8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x126162['commandName'])return{'type':'format','content':o(_0x5d6cf8,'*Outdent:*\x20%0',o(_0x5d6cf8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x126162['commandName'])return _0x126162['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d6cf8,'*Check\x20item*')}:{'type':'format','content':o(_0x5d6cf8,'*Uncheck\x20item*')};}function _0x2c86c7(_0x5eca9c){return{'type':'format','content':o(_0x5d6cf8,'*Change\x20to:*\x20%0',_0x5eca9c)};}});}}function me(_0x14df8f){const _0xfe14ea=_0x14df8f['getAttribute']('listIndent');if(0x0==_0xfe14ea)return _0x14df8f;let _0x1fb1ee=_0x14df8f;for(;_0x14df8f['previousSibling']&&_0x14df8f['previousSibling']['is']('element','listItem');){const _0x337f2c=_0x14df8f['previousSibling']['getAttribute']('listIndent');if(_0x337f2c==_0xfe14ea)_0x1fb1ee=_0x14df8f['previousSibling'];else{if(_0x337f2c<_0xfe14ea)break;}_0x14df8f=_0x14df8f['previousSibling'];}return _0x1fb1ee;}function fe(_0x273ecc){const _0x3ddfa2=[];if(_0x273ecc['is']('element','listItem')&&_0x273ecc['getAttribute']('listIndent')>0x0){let _0x5d01fd=_0x273ecc['nextSibling'];for(;_0x5d01fd&&'listItem'==_0x5d01fd['name']&&_0x5d01fd['getAttribute']('listIndent')==_0x273ecc['getAttribute']('listIndent');)_0x3ddfa2['push'](_0x5d01fd),_0x5d01fd=_0x5d01fd['nextSibling'];}return _0x3ddfa2;}class K extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x42f917=this['editor']['config']['get']('list.properties'),_0x48a4c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x42f917['styles']&&_0x48a4c4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x42f917['reversed']&&_0x48a4c4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x42f917['startIndex']&&_0x48a4c4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48a4c4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cd2f8,_0x1bcb95={}){const _0xcf5147=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3346e2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xcf5147['markMultiRangeBlockFormat'](_0x3346e2,{'commandName':'listStyle','commandParams':[{'type':_0x1bcb95['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x396b54,_0x5d1c13={}){const _0x25e356=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ef6a6=this['_getSuggestionBlocks'](_0x1e895b=>_0x1e895b['is']('element','listItem')&&'numbered'===_0x1e895b['getAttribute']('listType'));if(_0x2ef6a6['length']<0x1)return;const _0x29a2ec=_0x2ef6a6['map'](_0x23f3e8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23f3e8,'before'),this['editor']['model']['createPositionAt'](_0x23f3e8,0x0)));this['editor']['model']['change'](()=>{_0x25e356['markMultiRangeBlockFormat'](_0x29a2ec,{'commandName':'listReversed','commandParams':[{'reversed':_0x5d1c13['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35d3ae,_0x4b0bb5={}){const _0x567009=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39e66d=this['_getSuggestionBlocks'](_0x2fca41=>_0x2fca41['is']('element','listItem')&&'numbered'===_0x2fca41['getAttribute']('listType'));if(_0x39e66d['length']<0x1)return;const _0x46f597=_0x39e66d['map'](_0x4a2cf8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a2cf8,'before'),this['editor']['model']['createPositionAt'](_0x4a2cf8,0x0)));this['editor']['model']['change'](()=>{_0x567009['markMultiRangeBlockFormat'](_0x46f597,{'commandName':'listStart','commandParams':[{'startIndex':_0x4b0bb5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x35ed75){if('formatBlock'!=_0x35ed75['type']&&'formatInline'!=_0x35ed75['type'])return;const _0x47e954=this['editor']['locale'],{data:_0x11c3f1}=_0x35ed75;if(!_0x11c3f1)return;let _0xeb8ca3,_0xeab21c;switch(_0x11c3f1['commandName']){case'listStyle':_0xeb8ca3='*Change\x20to:*\x20%0',_0xeab21c={'type':'format','content':o(_0x47e954,_0xeb8ca3,o(_0x47e954,this['_getTranslationKeyForListStyle'](_0x11c3f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0xeb8ca3=_0x11c3f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xeab21c={'type':'format','content':o(_0x47e954,_0xeb8ca3)};break;case'listStart':_0xeb8ca3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xeab21c={'type':'format','content':o(_0x47e954,_0xeb8ca3,_0x11c3f1['commandParams'][0x0]['startIndex'])};}return _0xeab21c;}['_getSuggestionBlocksForListStyle'](){const _0x4256c9=this['editor']['plugins']['get']('LegacyListUtils');let _0x308e1b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x308e1b[0x0]?.['is']('element','listItem')&&_0x308e1b['unshift'](..._0x4256c9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x308e1b[_0x308e1b['length']-0x1]?.['is']('element','listItem')&&_0x308e1b['push'](..._0x4256c9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x308e1b=[...new Set(_0x308e1b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x308e1b=_0x308e1b['filter'](_0x2d28ac=>_0x2d28ac['is']('element','listItem'))),_0x308e1b;}['_getSuggestionBlocks'](_0x59e517){const _0x4c79b5=this['editor']['plugins']['get']('LegacyListUtils');let _0x55b20f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x59e517)['map'](_0x25e08a=>{const _0x4e8872=this['editor']['model']['createPositionAt'](_0x25e08a,0x0);return[..._0x4c79b5['getSiblingNodes'](_0x4e8872,'backward'),..._0x4c79b5['getSiblingNodes'](_0x4e8872,'forward')];})['flat']();return _0x55b20f=[...new Set(_0x55b20f)],_0x55b20f;}['_getTranslationKeyForListStyle'](_0x5b0c46){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b0c46)||'default')['toUpperCase']()+'_LIST_'+_0x5b0c46['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3b57f6{['afterInit'](){const _0x210681=this['editor'];if(!_0x210681['plugins']['has']('MediaEmbedEditing'))return;const _0x47e98f=_0x210681['plugins']['get']('TrackChangesEditing'),_0x5eb0ef=_0x210681['locale'];_0x47e98f['enableCommand']('mediaEmbed'),_0x47e98f['descriptionFactory']['registerElementLabel']('media',_0x70fbe6=>o(_0x5eb0ef,'ELEMENT_MEDIA',_0x70fbe6)),_0x210681['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fd859,{writer:_0x534e8e,options:_0x7e91c1})=>{if(_0x7e91c1['showSuggestionHighlights'])return _0x534e8e['createEmptyElement']('div');},'converterPriority':'high'}),_0x210681['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26d3ee,_0x3f3502,_0xefb0b8)=>{_0xefb0b8['options']['showSuggestionHighlights']&&_0x26d3ee['stop']();},{'priority':'high'});}}class gt extends _0x3b57f6{['afterInit'](){const _0x58d254=this['editor'];_0x58d254['plugins']['has']('MentionEditing')&&_0x58d254['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3b57f6{['afterInit'](){const _0x3b74e5=this['editor'],_0x364f30=_0x3b74e5['plugins']['get']('TrackChangesEditing');_0x3b74e5['plugins']['has']('MultiLevelList')&&(_0x364f30['enableDefaultAttributesIntegration']('multiLevelList'),_0x364f30['registerBlockAttribute']('listMarkerStyle'),_0x364f30['descriptionFactory']['registerDescriptionCallback'](_0x57dfd6=>this['handleDescriptions'](_0x57dfd6)));}['handleDescriptions'](_0x337138){const _0x1ae9f1=this['editor']['locale'],{data:_0x3d3124}=_0x337138,_0x67592e={'type':'format','content':''};if(_0x3d3124&&'listMarkerStyle'==_0x3d3124['key']){if(!_0x3d3124['oldValue'])return{'type':'format','content':o(_0x1ae9f1,'*Set\x20format:*\x20%0',o(_0x1ae9f1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d3124['newValue']+')'};if(!_0x3d3124['newValue']){let _0x54750d=_0x337138['head'];for(;_0x54750d;){if(_0x54750d['data']&&'listType'==_0x54750d['data']['key']&&_0x54750d['data']['newValue'])return _0x67592e;_0x54750d=_0x54750d['next'];}return{'type':'format','content':o(_0x1ae9f1,'*Remove\x20format:*\x20%0',o(_0x1ae9f1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d3124['oldValue']+')'};}}}}class mt extends _0x3b57f6{['afterInit'](){const _0x394bb3=this['editor'];if(!_0x394bb3['plugins']['has']('PageBreakEditing'))return;_0x394bb3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4d0971=_0x394bb3['plugins']['get']('TrackChangesEditing'),_0x586bcc=_0x394bb3['locale'];_0x4d0971['descriptionFactory']['registerElementLabel']('pageBreak',_0x568a63=>o(_0x586bcc,'ELEMENT_PAGE_BREAK',_0x568a63));}}class dt extends _0x3b57f6{['afterInit'](){const _0x497e8c=this['editor'];if(!_0x497e8c['plugins']['has']('Paragraph'))return;const _0x50abd2=_0x497e8c['locale'],_0x31800e=_0x497e8c['plugins']['get']('TrackChangesEditing');_0x31800e['descriptionFactory']['registerElementLabel']('paragraph',_0x257840=>o(_0x50abd2,'ELEMENT_PARAGRAPH',_0x257840)),_0x31800e['enableDefaultAttributesIntegration']('paragraph'),_0x31800e['enableCommand']('insertParagraph'),_0x497e8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x497e8c),{'priority':'highest'}),_0x497e8c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28be05,_0x3e25b2,_0xe7931b)=>{_0xe7931b['options']['showSuggestionHighlights']&&nr(_0x497e8c,{'showActiveMarker':!0x1})(_0x28be05,_0x3e25b2,_0xe7931b);},{'priority':'highest'});const _0x43d786=_0x31800e['descriptionFactory'];_0x43d786['registerDescriptionCallback'](_0x2bd9fe=>{if('insertion'!==_0x2bd9fe['type'])return;const {start:_0x46a983,end:_0x13f3b7}=_0x2bd9fe['getFirstRange']();if(!_0x46a983['isTouching'](_0x13f3b7)||!_0x46a983['nodeAfter'])return;const _0x47cc5e=_0x497e8c['model']['schema'],_0x462a78=_0x46a983['nodeAfter'];return _0x47cc5e['isBlock'](_0x462a78)&&!_0x47cc5e['isLimit'](_0x462a78)&&_0x47cc5e['checkChild'](_0x462a78,'$text')?{'type':'insertion','content':o(_0x50abd2,'*Insert:*\x20%0',_0x43d786['getItemLabel'](_0x462a78,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c0e77=this['editor'],_0x23a24a=_0x5c0e77['locale'];_0x5c0e77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45a16d=>{if('formatBlock'!=_0x45a16d['type'])return;const {data:_0x54686b}=_0x45a16d;return _0x54686b&&'paragraph'==_0x54686b['commandName']?{'type':'format','content':o(_0x23a24a,'*Change\x20to:*\x20%0',o(_0x23a24a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4efbff,{showActiveMarker:_0x395fb9=!0x0}={}){return(_0x193375,_0x1252c5,_0x10212d)=>{const _0x38afe7=_0x4efbff['plugins']['get']('TrackChangesEditing'),_0xe48cb=_0x1252c5['markerRange']['start'],_0x2aab73=_0x1252c5['markerRange']['end'],_0x1f2c96=_0x4efbff['model']['schema'];if(!_0xe48cb['isTouching'](_0x2aab73)||!_0xe48cb['nodeAfter'])return;const _0x29b564=_0xe48cb['nodeAfter'];if(_0x1f2c96['isBlock'](_0x29b564)&&!_0x1f2c96['isLimit'](_0x29b564)&&_0x1f2c96['checkChild'](_0x29b564,'$text')){if(!_0x10212d['consumable']['consume'](_0x1252c5['markerRange'],_0x193375['name']))return;const _0x555fc3=_0x10212d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2b9d71=_0x10212d['mapper']['toViewPosition'](_0x2aab73);_0x395fb9&&_0x38afe7['activeMarkers']['includes'](_0x1252c5['markerName'])&&_0x10212d['writer']['addClass']('ck-suggestion-marker--active',_0x555fc3),_0x10212d['writer']['insert'](_0x2b9d71,_0x555fc3),_0x10212d['mapper']['bindElementToMarker'](_0x555fc3,_0x1252c5['markerName']);}};}class pt extends _0x3b57f6{['afterInit'](){const _0x14ca76=this['editor'];if(!_0x14ca76['plugins']['has']('RemoveFormatEditing'))return;_0x14ca76['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ab226=this['editor'];_0x1ab226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x183a46=>{if('formatBlock'!=_0x183a46['type']&&'formatInline'!=_0x183a46['type'])return;const {data:_0x31348d}=_0x183a46;return _0x31348d&&'removeFormat'==_0x31348d['commandName']?{'type':'format','content':o(_0x1ab226['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3b57f6{['afterInit'](){const _0x26a426=this['editor'];if(!_0x26a426['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d4e5c=_0x26a426['plugins']['get']('TrackChangesEditing');_0x4d4e5c['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d4e5c['enableCommand']('goToNextRestrictedEditingException');const _0x82b95f=_0x26a426['plugins']['get']('RestrictedEditingModeEditing');_0x82b95f['enableCommand']('trackChanges'),_0x82b95f['enableCommand']('acceptSuggestion'),_0x82b95f['enableCommand']('discardSuggestion'),_0x82b95f['enableCommand']('acceptAllSuggestions'),_0x82b95f['enableCommand']('discardAllSuggestions'),_0x82b95f['enableCommand']('acceptSelectedSuggestions'),_0x82b95f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3b57f6{static get['requires'](){return[_0x152eab];}['init'](){const _0x3fa331=this['editor'],_0x53d028=_0x3fa331['plugins']['get']('TrackChangesEditing');_0x53d028['enableCommand']('shiftEnter'),_0x3fa331['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3fa331),{'priority':'high'}),_0x3fa331['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3fa331),{'priority':'high'}),_0x3fa331['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x12c13a,_0x506834,_0x279697)=>{_0x279697['options']['showSuggestionHighlights']&&de(_0x3fa331,{'showActiveMarker':!0x1})(_0x12c13a,_0x506834,_0x279697);}),_0x53d028['descriptionFactory']['registerElementLabel']('softBreak',_0x13b7a0=>o(_0x3fa331['locale'],'ELEMENT_LINE_BREAK',_0x13b7a0));}}function de(_0x3d0e00,{showActiveMarker:_0x542d75=!0x0}={}){return(_0x22e9bd,_0x22e86e,_0x5cee3d)=>{const _0x5cb31f=_0x3d0e00['plugins']['get']('TrackChangesEditing');if(!_0x5cee3d['consumable']['test'](_0x22e86e['markerRange'],_0x22e9bd['name']))return;const _0x513104=_0x3d0e00['model'];for(const _0x276861 of _0x22e86e['markerRange']['getItems']()){if(!_0x276861['is']('element','softBreak'))continue;const _0x1c5f65='deletion'==_0x22e86e['markerName']['split'](':')[0x1]?'merge':'split',_0x212129=_0x5cee3d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c5f65}),_0x58001d=_0x5cee3d['mapper']['toViewPosition'](_0x513104['createPositionBefore'](_0x276861));_0x542d75&&_0x5cb31f['activeMarkers']['includes'](_0x22e86e['markerName'])&&_0x5cee3d['writer']['addClass']('ck-suggestion-marker--active',_0x212129),_0x5cee3d['writer']['insert'](_0x58001d,_0x212129),_0x5cee3d['mapper']['bindElementToMarker'](_0x212129,_0x22e86e['markerName']);}};}class wt extends _0x3b57f6{['afterInit'](){const _0x36d48e=this['editor'],_0x1221a2=_0x36d48e['model'],_0x37e5db=_0x36d48e['locale'];if(!_0x36d48e['plugins']['has']('StandardEditingModeEditing'))return;const _0x2604e3=_0x36d48e['plugins']['get']('TrackChangesEditing'),_0x43ca1d='restrictedEditingException',_0x3fc5b3=_0x36d48e['commands']['get'](_0x43ca1d);_0x2604e3['enableCommand'](_0x43ca1d,(_0x1dbd76,_0x5ebd3e={})=>{const _0x19b554=_0x1221a2['document']['selection'];if(_0x19b554['isCollapsed'])return void _0x1dbd76(_0x5ebd3e);const _0x40a66e=void 0x0!==_0x5ebd3e['forceValue']?_0x5ebd3e['forceValue']:!_0x3fc5b3['value'];_0x1221a2['change'](()=>{const _0x5d94ed=Array['from'](_0x19b554['getRanges']());for(const _0x3b8e1b of _0x5d94ed){const _0x1d6c05=_0x40a66e?[_0x3b8e1b]:io(_0x43ca1d,_0x3b8e1b,_0x1221a2);for(const _0x362a69 of _0x1d6c05)_0x2604e3['markInlineFormat'](_0x362a69,{'commandName':_0x43ca1d,'commandParams':[{'forceValue':_0x40a66e}]});}});}),_0x2604e3['descriptionFactory']['registerDescriptionCallback'](_0x176ce1=>{if('formatBlock'!=_0x176ce1['type']&&'formatInline'!=_0x176ce1['type'])return;const {data:_0x3575cd}=_0x176ce1;return _0x3575cd&&_0x3575cd['commandName']==_0x43ca1d?_0x3575cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37e5db,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x37e5db,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3b57f6{['afterInit'](){const _0x4e82ca=this['editor'];if(!_0x4e82ca['plugins']['has']('Style')||!_0x4e82ca['plugins']['has']('DataSchema'))return;const _0x39fa3a=_0x4e82ca['plugins']['get']('TrackChangesEditing'),_0x36e879=_0x4e82ca['locale'],_0x399de7=_0x4e82ca['config']['get']('style')||{},_0x54564d=_0x4e82ca['plugins']['get']('GeneralHtmlSupport'),_0x37731f=_0x4e82ca['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4e82ca['plugins']['get']('DataSchema'),_0x399de7['definitions']);_0x39fa3a['enableDefaultAttributesIntegration']('style');const _0x3899ee=new Set();for(const _0x5accec of _0x37731f['block']){const _0x28aa78=_0x54564d['getGhsAttributeNameForElement'](_0x5accec['element']);_0x3899ee['add'](_0x28aa78);}const _0x49de78=new Set();for(const _0x50c085 of _0x37731f['inline']){const _0x1686f2=_0x54564d['getGhsAttributeNameForElement'](_0x50c085['element']);_0x49de78['add'](_0x1686f2);for(const _0x247bc5 of _0x50c085['ghsAttributes'])_0x49de78['add'](_0x247bc5);}for(const _0x2864ca of _0x3899ee)_0x39fa3a['registerBlockAttribute'](_0x2864ca),_0x39fa3a['descriptionFactory']['registerAttributeLabel'](_0x2864ca,o(_0x36e879,'FORMAT_STYLE'));for(const _0x13f4b0 of _0x49de78)_0x39fa3a['registerInlineAttribute'](_0x13f4b0),_0x39fa3a['descriptionFactory']['registerAttributeLabel'](_0x13f4b0,o(_0x36e879,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x525895=this['editor'],_0x3517a3=_0x525895['locale'];_0x525895['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x459b68=>{if('formatBlock'!=_0x459b68['type']&&'formatInline'!=_0x459b68['type'])return;const {data:_0x254cf0}=_0x459b68;return _0x254cf0&&'style'===_0x254cf0['commandName']?_0x254cf0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3517a3,'*Set\x20format:*\x20%0',_0x254cf0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3517a3,'*Remove\x20format:*\x20%0',_0x254cf0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3b57f6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x220df8){super(_0x220df8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4c1929=this['editor'],_0x1f6e60=_0x4c1929['model']['document']['selection'];if(!_0x4c1929['plugins']['has']('TableEditing'))return;const _0x492381=_0x4c1929['locale'],_0x211ffa=_0x4c1929['plugins']['get']('TrackChangesEditing'),_0x3becdb=_0x4c1929['plugins']['get']('TableUtils');_0x211ffa['descriptionFactory']['registerElementLabel']('table',_0x18560f=>o(_0x492381,'ELEMENT_TABLE',_0x18560f)),this['_setupColumnsRowsFixing'](),_0x211ffa['enableCommand']('insertTable'),_0x211ffa['enableCommand']('selectTableRow'),_0x211ffa['enableCommand']('selectTableColumn');for(const _0x2ed614 of['insertTableRowAbove','insertTableRowBelow']){const _0x35ed87=_0x4c1929['commands']['get'](_0x2ed614);_0x211ffa['enableCommand'](_0x2ed614,_0x1fd945=>{_0x4c1929['model']['change'](_0x5d23f7=>{_0x1fd945();const _0x1c9789='above'===_0x35ed87['order'],_0x11ccc7=_0x3becdb['getSelectionAffectedTableCells'](_0x1f6e60),_0x32b66a=_0x3becdb['getRowIndexes'](_0x11ccc7),_0x27472b=_0x1c9789?_0x32b66a['first']-0x1:_0x32b66a['last']+0x1,_0x5c65d6=_0x11ccc7[0x0]['findAncestor']('table'),_0x55490b=_0x3becdb['createTableWalker'](_0x5c65d6,{'startRow':_0x27472b,'endRow':_0x27472b}),_0x5cb612=Array['from'](_0x55490b)['map'](_0x46050e=>_0x5d23f7['createRangeOn'](_0x46050e['cell']));_0x211ffa['markMultiRangeInsertion'](_0x5cb612,'tableRow');});});}for(const _0x41bd8e of['insertTableColumnLeft','insertTableColumnRight']){const _0x6c8ca8=_0x4c1929['commands']['get'](_0x41bd8e);_0x211ffa['enableCommand'](_0x41bd8e,_0x12d244=>{_0x4c1929['model']['change'](_0x1b9ac0=>{_0x12d244();const _0xb87e7d='left'===_0x6c8ca8['order'],_0x3c1aaa=_0x3becdb['getSelectionAffectedTableCells'](_0x1f6e60),_0x165add=_0x3becdb['getColumnIndexes'](_0x3c1aaa),_0x47a520=_0xb87e7d?_0x165add['first']-0x1:_0x165add['last']+0x1,_0x498c9f=_0x3c1aaa[0x0]['findAncestor']('table'),_0x1841fb=_0x3becdb['createTableWalker'](_0x498c9f,{'startRow':0x0,'column':_0x47a520,'includeAllSlots':!0x1}),_0x3620eb=Array['from'](_0x1841fb)['map'](_0x1e47eb=>_0x1b9ac0['createRangeOn'](_0x1e47eb['cell']));_0x211ffa['markMultiRangeInsertion'](_0x3620eb,'tableColumn');});});}for(const _0x34b6b8 of['removeTableRow','removeTableColumn']){const _0x319945=_0x34b6b8['substr'](0xb),_0x4ba7f6=_0x319945['toLowerCase'](),_0x499485=_0x4ba7f6['substr'](0x0,0x3)+'span',_0x2d31bd='table'+_0x319945,_0x5986cd='min'+_0x319945,_0x30b2f3='max'+_0x319945;_0x211ffa['enableCommand'](_0x34b6b8,()=>{_0x4c1929['model']['change'](_0x3d1f4d=>{const _0x1f0a28=_0x3becdb['getSelectionAffectedTableCells'](_0x1f6e60),_0xe86e02=_0x1f0a28[0x0]['findAncestor']('table');let _0x3019e2;if('removeTableRow'==_0x34b6b8){const _0x32fd83=_0x3becdb['getRowIndexes'](_0x1f0a28);_0x3019e2={'startRow':_0x32fd83['first'],'endRow':_0x32fd83['last'],'includeAllSlots':!0x0};}else{const _0x25dc56=_0x3becdb['getColumnIndexes'](_0x1f0a28);_0x3019e2={'startColumn':_0x25dc56['first'],'endColumn':_0x25dc56['last'],'includeAllSlots':!0x0};}const _0x5bd40c=_0x3becdb['createTableWalker'](_0xe86e02,_0x3019e2),_0x5b9933=Array['from'](_0x5bd40c)['map'](({cell:_0x1ba6f5})=>_0x1ba6f5),_0x14ade2=Ee(_0x5b9933['filter'](_0x57d6f1=>_0x57d6f1['hasAttribute'](_0x499485))),_0x5cb78b=Ee(_0x5b9933['filter'](_0x5bfa44=>!_0x5bfa44['hasAttribute'](_0x499485)))['map'](_0x430b4b=>_0x3d1f4d['createRangeOn'](_0x430b4b)),_0x8bfbd5=_0x211ffa['markMultiRangeDeletion'](_0x5cb78b,_0x2d31bd);if(_0x8bfbd5&&('tableRow'==_0x8bfbd5['subType']||'tableColumn'==_0x8bfbd5['subType'])){const _0x568124=this['_getSuggestionCoords'](_0x8bfbd5);for(const _0x5beded of _0x14ade2){const _0x35bfab=_0x3d1f4d['createRangeOn'](_0x5beded),_0x56776a=_0x3becdb['getCellLocation'](_0x5beded),_0x3533a8=_0x5beded['getAttribute'](_0x499485)-0x1,_0x34acc9=_0x568124[_0x5986cd],_0x20dc53=_0x568124[_0x30b2f3];_0x34acc9<=_0x56776a[_0x4ba7f6]&&_0x56776a[_0x4ba7f6]+_0x3533a8<=_0x20dc53&&_0x8bfbd5['addRange'](_0x35bfab);}}});});}function _0x5ab567(_0x54b49b){const _0x963b1f=Array['from'](_0x1f6e60['getRanges']())['map'](_0x3c46c5=>_0x2e923c['fromRange'](_0x3c46c5));_0x4c1929['model']['change'](_0x5a8fb7=>{const _0x3847fb=_0x5a8fb7['batch'];_0x54b49b=_0x54b49b['filter'](_0x5f4036=>'$graveyard'!=_0x5f4036['root']['rootName']),_0x5a8fb7['setSelection'](_0x54b49b),_0x4c1929['commands']['get']('removeTableRow')['refresh'](),_0x4c1929['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4c1929['model']['enqueueChange'](()=>{_0x4c1929['model']['enqueueChange'](_0x3847fb,_0x4dda8b=>{const _0x2edb21=_0x963b1f['filter'](_0x255615=>'$graveyard'!=_0x255615['root']['rootName']);_0x2edb21['length']>0x0&&_0x4dda8b['setSelection'](_0x2edb21);for(const _0x5a8f33 of _0x963b1f)_0x5a8f33['detach']();});});});}function _0x41577a(_0x66911){_0x4c1929['model']['change'](_0x22f121=>{const _0x1b8ae0=Array['from'](_0x1f6e60['getRanges']())['map'](_0x4512f6=>_0x2e923c['fromRange'](_0x4512f6)),_0x53424e=[];for(const _0x10a745 of _0x66911)for(const _0x6abc0b of _0x10a745['getItems']({'shallow':!0x0}))_0x53424e['push'](_0x6abc0b);for(const _0x782be7 of _0x53424e)'$graveyard'!=_0x782be7['root']['rootName']&&(_0x22f121['setSelection'](_0x22f121['createPositionAt'](_0x782be7,0x0)),_0x4c1929['commands']['get']('removeTableColumn')['refresh'](),_0x4c1929['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23728f=_0x1b8ae0['filter'](_0x3f1d83=>'$graveyard'!=_0x3f1d83['root']['rootName']);_0x23728f['length']>0x0&&_0x22f121['setSelection'](_0x23728f);for(const _0x3ce14a of _0x1b8ae0)_0x3ce14a['detach']();});}function _0x339ba6(_0xd469d6,_0x50f082){return _0x50f082['every'](_0x426738=>_0xd469d6['some'](_0x50866c=>_0x50866c['end']['isEqual'](_0x426738['start'])||_0x426738['end']['isEqual'](_0x50866c['start'])));}function _0x8a740a(_0x3a266e,_0x2e9c21){return!_0x3a266e['some'](_0x2db0a6=>_0x2e9c21['some'](_0x5ba5fd=>_0x2db0a6['isIntersecting'](_0x5ba5fd)))&&_0x3a266e['some'](_0x5dff28=>_0x2e9c21['some'](_0x7bbda9=>_0x5dff28['end']['isTouching'](_0x7bbda9['start'])));}_0x4c1929['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb90b0f,_0x3d9f8e,_0x4acbb3)=>{if(!_0x4acbb3['options']['showSuggestionHighlights'])return;const _0x12e10d=_0x3d9f8e['item'];if(!_0x12e10d)return;const _0xd25ada=_0x4acbb3['mapper']['toViewElement'](_0x12e10d);function _0x56b568(_0x436d25){return Array['isArray'](_0x436d25)?_0x436d25:[_0x436d25];}_0xd25ada&&'tableCell'===_0x12e10d['name']&&_0x588271(_0xd25ada,_0x4acbb3['writer'],(_0x594e8e,_0x25253e,_0x3c11f5)=>_0x3c11f5['addClass'](_0x56b568(_0x25253e['classes']),_0x594e8e),(_0x3c6241,_0x529473,_0x552cc2)=>_0x552cc2['removeClass'](_0x56b568(_0x529473['classes']),_0x3c6241));},{'priority':'highest'}),_0x211ffa['descriptionFactory']['registerDescriptionCallback'](_0x32f302=>{if('insertion'!=_0x32f302['type']&&'deletion'!=_0x32f302['type'])return;const _0x4b0a41=_0x32f302['getContainedElement']();if(null!=_0x4b0a41&&_0x4b0a41['is']('element','table')){if('insertion'==_0x32f302['type']){const _0x1d1140=_0x32f302['getItems']()['filter'](_0x3cf705=>_0x3cf705['is']('$textProxy'))['map'](_0x5c8bcc=>_0x5c8bcc['data']);if(_0x1d1140['length'])return{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d1140['join']('\x20')+'\x22'))};}if('deletion'==_0x32f302['type']){const _0x51d6af=_0x32f302['getItems']()['filter'](_0x5cf78c=>_0x5cf78c['is']('$textProxy'))['map'](_0x3368a4=>_0x3368a4['data']);if(_0x51d6af['length'])return{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51d6af['join']('\x20')+'\x22'))};}}}),_0x211ffa['descriptionFactory']['registerDescriptionCallback'](_0x14ec4f=>{if('tableRow'==_0x14ec4f['subType']){const _0x19c3da=_0x14ec4f['getItems']()['filter'](_0x57df33=>_0x57df33['is']('$textProxy'))['map'](_0x3e2727=>_0x3e2727['data']),_0xd25e10=this['_getSuggestionCoords'](_0x14ec4f),_0x284bc8=_0xd25e10['maxRow']-_0xd25e10['minRow']+0x1;if('insertion'==_0x14ec4f['type'])return _0x19c3da['length']?{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x284bc8,'\x22'+_0x19c3da['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW',_0x284bc8))};if('deletion'==_0x14ec4f['type'])return _0x19c3da['length']?{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x284bc8,'\x22'+_0x19c3da['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_ROW',_0x284bc8))};}if('tableColumn'==_0x14ec4f['subType']){const _0x35ce05=_0x14ec4f['getItems']()['filter'](_0x5a2e05=>_0x5a2e05['is']('$textProxy'))['map'](_0x2dd7c2=>_0x2dd7c2['data']),_0x52be69=this['_getSuggestionCoords'](_0x14ec4f),_0x23c206=_0x52be69['maxColumn']-_0x52be69['minColumn']+0x1;if('insertion'==_0x14ec4f['type'])return _0x35ce05['length']?{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23c206,'\x22'+_0x35ce05['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x492381,'*Insert:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN',_0x23c206))};if('deletion'==_0x14ec4f['type'])return _0x35ce05['length']?{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23c206,'\x22'+_0x35ce05['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x492381,'*Remove:*\x20%0',o(_0x492381,'ELEMENT_TABLE_COLUMN',_0x23c206))};}}),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ab567),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ab567),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x41577a),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x41577a),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x339ba6),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x339ba6),_0x211ffa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8a740a),_0x211ffa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8a740a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1519d=this['editor'],_0x578f2b=_0x1519d['model']['document']['selection'];return(_0x58ebbd,_0x17d8f2)=>{_0x1519d['model']['change'](_0x1c4711=>{const {commandName:_0x15ae44,commandParams:_0x118bee}=_0x17d8f2;let _0x162c0b=_0x58ebbd[0x0]['end']['nodeBefore'];_0x118bee&&_0x118bee[0x0]&&!0x1===_0x118bee[0x0]['forceValue']&&(_0x162c0b=_0x58ebbd[0x0]['start']['nodeAfter']);const _0x384160=_0x1c4711['createRangeIn'](_0x162c0b);if('$graveyard'==_0x384160['root']['rootName'])return;const _0x457dae=Array['from'](_0x578f2b['getRanges']())['map'](_0x257dbb=>_0x2e923c['fromRange'](_0x257dbb));_0x1c4711['setSelection'](_0x384160),_0x1519d['commands']['get'](_0x15ae44)['refresh'](),_0x118bee['push']({'forceDefaultExecution':!0x0}),_0x1519d['execute'](_0x15ae44,..._0x118bee);const _0x2d14ff=_0x457dae['filter'](_0x185d6=>'$graveyard'!=_0x185d6['root']['rootName']);_0x2d14ff['length']>0x0&&_0x1c4711['setSelection'](_0x2d14ff);for(const _0x16eca5 of _0x457dae)_0x16eca5['detach']();});};}['_getCoordsForCells'](_0x75405e){const _0x57f17d=this['editor']['plugins']['get']('TableUtils');let _0x17bf27=Number['MAX_SAFE_INTEGER'],_0x20f5c6=Number['MIN_SAFE_INTEGER'],_0x1b99db=Number['MAX_SAFE_INTEGER'],_0x17a692=Number['MIN_SAFE_INTEGER'];for(const _0x3cbfc4 of _0x75405e){if('$graveyard'==_0x3cbfc4['root']['rootName'])continue;const {row:_0x5dcc39,column:_0x2a8152}=_0x57f17d['getCellLocation'](_0x3cbfc4),_0x26c7d9=_0x3cbfc4['hasAttribute']('rowspan')?_0x3cbfc4['getAttribute']('rowspan')-0x1:0x0,_0x314ac4=_0x3cbfc4['hasAttribute']('colspan')?_0x3cbfc4['getAttribute']('colspan')-0x1:0x0;_0x17bf27=_0x5dcc39<_0x17bf27?_0x5dcc39:_0x17bf27,_0x20f5c6=_0x5dcc39+_0x26c7d9>_0x20f5c6?_0x5dcc39+_0x26c7d9:_0x20f5c6,_0x1b99db=_0x2a8152<_0x1b99db?_0x2a8152:_0x1b99db,_0x17a692=_0x2a8152+_0x314ac4>_0x17a692?_0x2a8152+_0x314ac4:_0x17a692;}return{'minRow':_0x17bf27,'maxRow':_0x20f5c6,'minColumn':_0x1b99db,'maxColumn':_0x17a692};}['_setupColumnsRowsFixing'](){const _0x150789=this['editor'],_0xa77ed8=_0x150789['plugins']['get']('TrackChangesEditing'),_0x59454e=_0x150789['plugins']['get']('TableUtils');_0x150789['model']['document']['on']('change:data',()=>{const _0xba035c=Array['from'](_0x150789['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ac356,data:_0x13a2b2}of _0xba035c){const {group:_0xea9634,id:_0x489efe,subType:_0x3d2041}=_0xa77ed8['_splitMarkerName'](_0x4ac356);if('suggestion'!=_0xea9634)continue;if(null!=_0x13a2b2['oldRange'])continue;const _0xad5d1f=_0xa77ed8['getSuggestion'](_0x489efe);this['_tablePostFixingSubtypes']['includes'](_0x3d2041)&&this['_tableSuggestions']['add'](_0xad5d1f);}},{'priority':'low'});const _0x2cf091=(_0x580b7b,_0x78bb4e)=>{let _0x33ba52=!0x1;const _0x170375=_0x78bb4e['createRangeOn'](_0x580b7b),_0x19e4eb=_0x580b7b['findAncestor']('table'),_0x4cf86f=_0x59454e['getCellLocation'](_0x580b7b);for(const _0x5aab53 of this['_tableSuggestions']){const _0x534f6d=_0x5aab53['subType'],_0x2f2517=_0x534f6d['startsWith']('tablePaste'),_0x33d753=_0x534f6d['substr'](_0x2f2517?0xa:0x5),_0xc22e03=_0x33d753['toLowerCase'](),_0x1ee32e=_0xc22e03['substr'](0x0,0x3)+'span',_0x541391='min'+_0x33d753,_0xc0e80a='max'+_0x33d753;if(!_0x5aab53['isInContent'])continue;if(_0x19e4eb!=_0x5aab53['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5aab53['isIntersectingWithRange'](_0x170375))continue;const _0x432cba=_0x580b7b['hasAttribute'](_0x1ee32e)?_0x580b7b['getAttribute'](_0x1ee32e)-0x1:0x0,_0x4ccbb9=this['_getSuggestionCoords'](_0x5aab53),_0x3ca6f0=_0x4ccbb9[_0x541391],_0xeb7fcb=_0x4ccbb9[_0xc0e80a];_0x3ca6f0<=_0x4cf86f[_0xc22e03]&&_0x4cf86f[_0xc22e03]+_0x432cba<=_0xeb7fcb&&(_0x5aab53['addRange'](_0x170375),_0x33ba52=!0x0);}return _0x33ba52;};_0x150789['model']['document']['registerPostFixer'](_0x3e1da4=>{let _0x15b0f8=!0x1;for(const _0x1bb71f of _0x150789['model']['document']['differ']['getChanges']())if('insert'==_0x1bb71f['type']){if('tableRow'==_0x1bb71f['name']){for(const _0x2c9d57 of _0x1bb71f['position']['nodeAfter']['getChildren']())_0x15b0f8=_0x15b0f8||_0x2cf091(_0x2c9d57,_0x3e1da4);}else'tableCell'==_0x1bb71f['name']&&(_0x15b0f8=_0x15b0f8||_0x2cf091(_0x1bb71f['position']['nodeAfter'],_0x3e1da4));}return _0x15b0f8;});}['_getSuggestionCoords'](_0x10babd){return this['_getCoordsForCells'](_0x10babd['getRanges']()['map'](_0x40eebe=>_0x40eebe['start']['nodeAfter']));}}function Ee(_0x20fef3){return Array['from'](new Set(_0x20fef3)['values']());}class St extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0x3d02a4=this['editor'],_0x10f5bd=_0x3d02a4['model']['document']['selection'],_0xce5be1=_0x3d02a4['locale'];if(!_0x3d02a4['plugins']['has']('TableEditing'))return;const _0xecf2cd=_0x3d02a4['plugins']['get']('TrackChangesEditing'),_0x549fd4=_0x3d02a4['plugins']['get']('TableUtils'),_0x2767ed=_0x3d02a4['plugins']['get'](jt);_0x2767ed['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xecf2cd['enableCommand']('mergeTableCells',()=>{const _0x1282ce=_0x549fd4['getSelectionAffectedTableCells'](_0x3d02a4['model']['document']['selection']);_0x3d02a4['model']['change'](()=>{_0xecf2cd['markMultiRangeBlockFormat'](_0x1282ce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3d02a4['commands']['get']('mergeTableCells')['on']('execute',(_0x4bbf0e,_0x2fe77d)=>{_0x3d02a4['commands']['get']('trackChanges')['value']&&(_0x2fe77d['length']>0x0&&_0x2fe77d[_0x2fe77d['length']-0x1]&&_0x2fe77d[_0x2fe77d['length']-0x1]['forceDefaultExecution']||_0xecf2cd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4bbf0e['stop']());},{'priority':'highest'});for(const _0x1234e9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x147ad5=_0x3d02a4['commands']['get'](_0x1234e9);_0xecf2cd['enableCommand'](_0x1234e9,()=>{const _0x49c100=_0x3d02a4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59a8a1=>_0x59a8a1['is']('element','tableCell')),_0x33541b=_0x147ad5['value'];_0x3d02a4['model']['change'](()=>{_0xecf2cd['markMultiRangeBlockFormat']([_0x49c100,_0x33541b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x757010 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5de317=_0x3d02a4['commands']['get'](_0x757010);_0xecf2cd['enableCommand'](_0x757010,()=>{const _0x16dabb=_0x549fd4['getSelectionAffectedTableCells'](_0x3d02a4['model']['document']['selection'])[0x0],_0x45bc84=_0x16dabb['findAncestor']('table'),{column:_0x1e4bbc,row:_0x53d5e4}=_0x549fd4['getCellLocation'](_0x16dabb);let _0x466945=[];if('horizontally'==_0x5de317['direction']){const _0x43b145=_0x549fd4['createTableWalker'](_0x45bc84,{'startRow':_0x53d5e4,'endRow':_0x53d5e4,'includeAllSlots':!0x0});_0x466945=Array['from'](_0x43b145)['map'](_0x36b047=>_0x36b047['cell']);}else{const _0x8dbd47=_0x549fd4['createTableWalker'](_0x45bc84,{'column':_0x1e4bbc,'includeAllSlots':!0x0});_0x466945=Array['from'](_0x8dbd47)['map'](_0x383d79=>_0x383d79['cell']);}_0x3d02a4['model']['change'](_0xda0552=>{_0xecf2cd['markBlockFormat'](_0xda0552['createRangeOn'](_0x16dabb),{'commandName':_0x757010,'commandParams':[]},_0x466945,_0x757010);});});}_0xecf2cd['descriptionFactory']['registerDescriptionCallback'](_0x11ca51=>{if('formatBlock'!=_0x11ca51['type']&&'formatInline'!=_0x11ca51['type'])return;const {data:_0x2cf9ff}=_0x11ca51;return _0x2cf9ff&&'mergeTableCells'==_0x2cf9ff['commandName']?{'type':'format','content':o(_0xce5be1,'*Merge\x20cells*')}:void 0x0;}),_0xecf2cd['descriptionFactory']['registerDescriptionCallback'](_0x44ccd3=>{if('formatBlock'!=_0x44ccd3['type']&&'formatInline'!=_0x44ccd3['type'])return;const {data:_0x9350a}=_0x44ccd3;return _0x9350a?'splitTableCellVertically'==_0x9350a['commandName']?{'type':'format','content':o(_0xce5be1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x9350a['commandName']?{'type':'format','content':o(_0xce5be1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e2109=_0x2767ed['_acceptFormatSuggestionCallbackFactory']();for(const _0x45d1b4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xecf2cd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45d1b4,'accept',_0x3e2109);for(const _0xb46478 of['splitTableCellVertically','splitTableCellHorizontally'])_0xecf2cd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb46478,'accept',_0x3e2109);_0xecf2cd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13ccbf=>{_0x3d02a4['model']['change'](_0x1c2b6d=>{const _0x33b354=Array['from'](_0x10f5bd['getRanges']())['map'](_0x40d1e9=>_0x2e923c['fromRange'](_0x40d1e9));_0x1c2b6d['setSelection'](_0x13ccbf),_0x3d02a4['commands']['get']('mergeTableCells')['refresh'](),_0x3d02a4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xf1a56f=_0x33b354['filter'](_0xca1250=>'$graveyard'!=_0xca1250['root']['rootName']);_0xf1a56f['length']>0x0&&_0x1c2b6d['setSelection'](_0xf1a56f);for(const _0x6aa996 of _0x33b354)_0x6aa996['detach']();});});for(const _0x23e0eb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x319a87=_0x3d02a4['commands']['get'](_0x23e0eb);_0x319a87['on']('set:isEnabled',(_0x3d5603,_0x259901,_0x3e1c10)=>{if(_0x3e1c10){const _0x35f9dd=_0x3d02a4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bb50d=>_0x3bb50d['is']('element','tableCell'));this['_areMergableCells'](_0x319a87['value'],_0x35f9dd)||(_0x3d5603['return']=!0x1,_0x3d5603['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x372b39=this['editor']['commands']['get']('mergeTableCells'),_0x572075=this['editor']['plugins']['get']('TableUtils');if(!_0x372b39['isEnabled'])return!0x1;const _0x2d997d=_0x572075['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x976d5b of _0x2d997d)for(const _0xda3ef2 of _0x2d997d)if(_0x976d5b!=_0xda3ef2&&!this['_areMergableCells'](_0x976d5b,_0xda3ef2))return!0x1;return!0x0;}['_areMergableCells'](_0x17559e,_0x5657b4){const _0x37c7f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46977b=this['editor']['model']['createRangeOn'](_0x17559e),_0x88e321=this['editor']['model']['createRangeOn'](_0x5657b4),_0x5ae088=new Set(),_0x4b7188=new Set();for(const _0x3420a0 of _0x37c7f0['getSuggestions']())if(('insertion'==_0x3420a0['type']||'deletion'==_0x3420a0['type']||'mergeTableCells'==_0x3420a0['subType'])&&_0x3420a0['isInContent']){for(const _0x34e9ee of _0x3420a0['getRanges']())_0x34e9ee['containsRange'](_0x46977b,!0x0)&&_0x5ae088['add'](_0x3420a0['type']+':'+_0x3420a0['author']['id']),_0x34e9ee['containsRange'](_0x88e321,!0x0)&&_0x4b7188['add'](_0x3420a0['type']+':'+_0x3420a0['author']['id']);}if(_0x5ae088['size']!=_0x4b7188['size'])return!0x1;for(const _0x377810 of _0x5ae088)if(!_0x4b7188['has'](_0x377810))return!0x1;return!0x0;}}class At extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0xe14c4f=this['editor'];if(!_0xe14c4f['plugins']['has']('TableEditing'))return;const _0x1dec7e=_0xe14c4f['locale'],_0x4cc2b9=_0xe14c4f['plugins']['get']('TrackChangesEditing');_0x4cc2b9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4cc2b9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4cc2b9['registerBlockAttribute']('headingRows'),_0x4cc2b9['registerBlockAttribute']('headingColumns'),_0x4cc2b9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1dec7e,'FORMAT_HEADER_ROW')),_0x4cc2b9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1dec7e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x6d4720=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3de53b=this['editor']['plugins']['get']('TableUtils'),_0x3375ee=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3aba86({showActiveMarker:_0x2d8a4b=!0x0,setDataAttribute:_0x4b9a9c=!0x0}={}){return(_0x3a616d,_0x2f28f8,_0x4de8e6)=>{const {type:_0x2c9b4c,id:_0x3cbcbe}=_0x6d4720['_splitMarkerName'](_0x2f28f8['markerName']),_0xbccc68=_0x6d4720['getSuggestion'](_0x3cbcbe),_0x1a5db5=_0xbccc68['data'];if('formatBlock'!=_0xbccc68['type']||!_0x1a5db5||'setTableColumnHeader'!=_0x1a5db5['commandName'])return;if(_0x2f28f8['item'])return void _0x3a616d['stop']();if(!_0x4de8e6['consumable']['consume'](_0x2f28f8['markerRange'],_0x3a616d['name']))return;const _0xc28fd2=_0x2f28f8['markerRange']['start']['nodeAfter'],_0x1a1438=_0x2f28f8['markerRange']['end']['nodeBefore'],_0x8ba571=_0xc28fd2['parent']['parent'],{column:_0x512c87}=_0x3de53b['getCellLocation'](_0xc28fd2),{column:_0x37debc}=_0x3de53b['getCellLocation'](_0x1a1438);for(let _0x45cb9d=_0x512c87;_0x45cb9d<=_0x37debc;_0x45cb9d++){const _0x5647e8=_0x3de53b['createTableWalker'](_0x8ba571,{'column':_0x45cb9d,'includeAllSlots':!0x1});for(const _0x489d31 of _0x5647e8){const _0x332867=_0x489d31['cell'],_0x485f6d=_0x4de8e6['mapper']['toViewElement'](_0x332867);_0x4de8e6['writer']['addClass']('ck-suggestion-marker-'+_0x2c9b4c,_0x485f6d),_0x4b9a9c&&_0x4de8e6['writer']['setAttribute']('data-suggestion',_0x3cbcbe,_0x485f6d),_0x4de8e6['mapper']['bindElementToMarker'](_0x485f6d,_0x2f28f8['markerName']),_0x2d8a4b&&(_0x6d4720['activeMarkers']['includes'](_0x2f28f8['markerName'])?_0x4de8e6['writer']['addClass']('ck-suggestion-marker--active',_0x485f6d):_0x4de8e6['writer']['removeClass']('ck-suggestion-marker--active',_0x485f6d));}}};}_0x6d4720['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3375ee),_0x6d4720['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3375ee),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3aba86(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15df23,_0x5bb6a1,_0x4f6266)=>{_0x4f6266['options']['showSuggestionHighlights']&&_0x3aba86({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x15df23,_0x5bb6a1,_0x4f6266);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x221026,_0x16c54d,_0x15071f)=>{const {type:_0x256fb8,id:_0x5aca3a}=_0x6d4720['_splitMarkerName'](_0x16c54d['markerName']),_0xf45640=_0x6d4720['getSuggestion'](_0x5aca3a),_0x3df9f6=_0xf45640['data'];if('formatBlock'!=_0xf45640['type']||!_0x3df9f6||'setTableColumnHeader'!=_0x3df9f6['commandName'])return;const _0x26884d=_0x15071f['mapper']['markerNameToElements'](_0x16c54d['markerName']);if(_0x26884d){for(const _0x5849ce of _0x26884d)_0x15071f['writer']['removeClass']('ck-suggestion-marker-'+_0x256fb8,_0x5849ce),_0x15071f['writer']['removeClass']('ck-suggestion-marker--active',_0x5849ce),_0x15071f['writer']['removeAttribute']('data-suggestion',_0x5849ce),_0x15071f['mapper']['unbindElementFromMarkerName'](_0x5849ce,_0x16c54d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x233076=this['editor'],_0x575102=_0x233076['locale'];function _0xf52a9e(_0x45262a){return{'type':'format','content':o(_0x575102,'*Format:*\x20%0',_0x45262a)};}_0x233076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x515073=>{if('formatBlock'!=_0x515073['type'])return;const {data:_0x293e61}=_0x515073;if(_0x293e61){if('setTableRowHeader'==_0x293e61['commandName']){const _0x254f02=_0x293e61['commandParams'][0x0]['forceValue'];return _0xf52a9e(o(_0x575102,_0x254f02?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x293e61['commandName']){const _0x2b1788=_0x293e61['commandParams'][0x0]['forceValue'];return _0xf52a9e(o(_0x575102,_0x2b1788?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x37bf5a=>[_0x37bf5a,null]));class It extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0x19777a=this['editor'];if(!_0x19777a['plugins']['has']('TableClipboard'))return;const _0x5e35b2=_0x19777a['plugins']['get']('TrackChangesEditing'),_0x537a65=_0x19777a['plugins']['get']('TableUtils'),_0x563996=_0x19777a['plugins']['get'](jt),_0x352177=_0x19777a['plugins']['get']('TableClipboard');_0x563996['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x19777a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x19777a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xbcff4=null;_0x19777a['model']['on']('insertContent',(_0x126bc1,_0x2df358)=>{const [_0x1dee6b,_0x5468a6]=_0x2df358,_0x22a797=_0x2df358[_0x2df358['length']-0x1];_0x22a797&&_0x22a797['forceDefaultExecution']||_0x5e35b2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x422073,_0x250511,_0x1d8eab,_0x230014,_0x5e4866){if(_0x250511&&!_0x250511['is']('documentSelection'))return!0x1;const _0x8a0357=_0x5e4866['getTableIfOnlyTableInContent'](_0x422073,_0x1d8eab);if(!_0x8a0357||!he(_0x8a0357,void 0x0,_0x230014))return!0x1;const _0x4565a0=_0x230014['getSelectionAffectedTableCells'](_0x1d8eab['document']['selection']);if(!_0x4565a0['length'])return!0x1;const _0x331c12=_0x4565a0[0x0]['findAncestor']('table'),_0x253f66=_0x230014['getRowIndexes'](_0x4565a0),_0x1e9c83=_0x230014['getColumnIndexes'](_0x4565a0),_0x2a4622={'startRow':_0x253f66['first'],'endRow':_0x253f66['last'],'startColumn':_0x1e9c83['first'],'endColumn':_0x1e9c83['last']};return 0x1==_0x4565a0['length']&&(_0x2a4622['endRow']+=_0x230014['getRows'](_0x8a0357)-0x1,_0x2a4622['endColumn']+=_0x230014['getColumns'](_0x8a0357)-0x1),he(_0x331c12,_0x2a4622,_0x230014);}(_0x1dee6b,_0x5468a6,_0x19777a['model'],_0x537a65,_0x352177)&&(_0x126bc1['stop'](),_0xbcff4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x19777a['model']['change'](()=>{_0x19777a['model']['insertContent'](_0x2df358[0x0],_0x2df358[0x1],_0x2df358[0x2],{'forceDefaultExecution':!0x0});const _0x308de5=_0x386e7f(),{rowInsertionRanges:_0x1a99f4,columnInsertionRanges:_0xe6b02a,insertionRanges:_0xf5272d,deletionRanges:_0x484e93,cells:_0x3149cf}=_0xbcff4;_0x1a99f4['length']&&_0x5e35b2['markMultiRangeInsertion'](_0x1a99f4,'tablePasteRow',{'tablePasteChainId':_0x308de5}),_0xe6b02a['length']&&_0x5e35b2['markMultiRangeInsertion'](_0xe6b02a,'tablePasteColumn',{'tablePasteChainId':_0x308de5}),_0xf5272d['length']&&(_0x5e35b2['markMultiRangeInsertion'](_0xf5272d,'tablePaste',{'tablePasteChainId':_0x308de5,'skipNestingCheck':!0x0}),_0xf5272d['forEach'](_0x82e56c=>_0x82e56c['detach']?.())),_0x484e93['length']&&(_0x5e35b2['markMultiRangeDeletion'](_0x484e93,'tablePaste',{'tablePasteChainId':_0x308de5,'skipNestingCheck':!0x0}),_0x484e93['forEach'](_0x38f519=>_0x38f519['detach']?.()));const _0x3004e6=_0x5e35b2['markMultiRangeBlockFormat'](_0x3149cf['map'](({element:_0x217447})=>_0x217447),{'formatGroupId':_0x386e7f()},[],'tablePasteCell',{'tablePasteChainId':_0x308de5});if(_0x3004e6){const _0x457cf4=_0x3004e6['getMarkers'](),_0x306e32=[];for(const {element:_0x40205e,attributes:_0x305a5c}of _0x3149cf){if(!_0x305a5c)continue;const _0x5df2b0=_0x19777a['model']['createRangeOn'](_0x40205e),_0x3bc5e3=_0x457cf4['find'](_0x49fc72=>_0x49fc72['getRange']()['isEqual'](_0x5df2b0));_0x3bc5e3&&_0x306e32['push']([_0x3bc5e3['name'],_0x305a5c]);}_0x306e32['length']&&_0x3004e6['setAttribute']('markerAttributes',Object['fromEntries'](_0x306e32));}_0xbcff4=null;}));},{'priority':_0x3ed224['high']+0xa}),_0x19777a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2cb27c,_0x1b002b)=>{const [_0x351b29,_0x288eb9,,_0x4bc844]=_0x1b002b;if(!_0xbcff4)return;_0x2cb27c['stop']();const _0x3c1846=_0x351b29['cell'],_0x53df07=_0x288eb9,_0x24a19c=Pe(_0x3c1846),_0x1d1fd6=Pe(_0x53df07);_0x2cb27c['return']=_0x3c1846;let _0x34558d=null,_0x593e68=null;if(_0x1d1fd6||_0x24a19c){if(_0x24a19c&&!_0x1d1fd6){_0x4bc844['remove'](_0x3c1846['getChild'](0x0));for(const _0x5e1b1f of Array['from'](_0x53df07['getChildren']()))_0x4bc844['insert'](_0x5e1b1f,_0x3c1846,'end');const _0x2da6a9=_0xbcff4['rowInsertionIndexes']['includes'](_0x351b29['row']),_0x3ee998=_0xbcff4['columnInsertionIndexes']['includes'](_0x351b29['column']);_0x2da6a9||_0x3ee998||(_0x34558d=_0x2e923c['fromRange'](_0x4bc844['createRangeIn'](_0x3c1846)));}else _0x1d1fd6&&!_0x24a19c&&(_0x593e68=_0x4bc844['createRangeIn'](_0x3c1846));}else{const _0x29ee59=_0x4bc844['createElement']('tableCellSuggestion'),_0xf6a5d5=_0x4bc844['createElement']('tableCellSuggestion');_0x4bc844['wrap'](_0x4bc844['createRangeIn'](_0x3c1846),_0xf6a5d5),_0x4bc844['insert'](_0x29ee59,_0x3c1846,0x0);for(const _0x40319c of Array['from'](_0x53df07['getChildren']()))_0x4bc844['insert'](_0x40319c,_0x29ee59,'end');_0x34558d=_0x2e923c['fromRange'](_0x4bc844['createRangeOn'](_0x29ee59)),_0x593e68=_0x2e923c['fromRange'](_0x4bc844['createRangeOn'](_0xf6a5d5));}const _0x485b58=Array['from'](_0x53df07['getAttributes']())['filter'](([_0x4cac17])=>ge['includes'](_0x4cac17));_0xbcff4['cells']['push']({'element':_0x3c1846,'attributes':_0x485b58['length']?Object['fromEntries'](_0x485b58):null}),_0x34558d&&_0xbcff4['insertionRanges']['push'](_0x34558d),_0x593e68&&_0xbcff4['deletionRanges']['push'](_0x593e68);},{'priority':'high'}),_0x537a65['on']('insertColumns',(_0x35ab3e,_0x26cfcc)=>{const [_0x54f60d,_0x250b09={}]=_0x26cfcc;if(!_0xbcff4)return;const _0x493109=_0x250b09['at']||0x0,_0x4bc75a=_0x250b09['columns']||0x1;_0xbcff4['columnInsertionIndexes']=new Array(_0x4bc75a)['fill'](_0x493109)['map']((_0x27755e,_0x3ba6ae)=>_0x27755e+_0x3ba6ae);for(const {cell:_0x577b7b}of _0x537a65['createTableWalker'](_0x54f60d,{'startColumn':_0x493109,'endColumn':_0x493109+_0x4bc75a-0x1}))_0xbcff4['columnInsertionRanges']['push'](_0x19777a['model']['createRangeOn'](_0x577b7b));},{'priority':'low'}),_0x537a65['on']('insertRows',(_0x2992b4,_0x30e67c)=>{const [_0x13d69c,_0x58aece={}]=_0x30e67c;if(!_0xbcff4)return;const _0x547e44=_0x58aece['at']||0x0,_0x53835c=_0x58aece['rows']||0x1;_0xbcff4['rowInsertionIndexes']=new Array(_0x53835c)['fill'](_0x547e44)['map']((_0x3657d5,_0x402eb8)=>_0x3657d5+_0x402eb8);for(const {cell:_0x2eb189}of _0x537a65['createTableWalker'](_0x13d69c,{'startRow':_0x547e44,'endRow':_0x547e44+_0x53835c-0x1}))_0xbcff4['rowInsertionRanges']['push'](_0x19777a['model']['createRangeOn'](_0x2eb189));},{'priority':'low'}),_0x5e35b2['descriptionFactory']['registerDescriptionCallback'](_0x398171=>{if(_0x398171['subType']&&_0x398171['subType']['startsWith']('tablePaste'))return _0x398171['previous']?{}:{'type':'insertion','content':o(_0x19777a['locale'],'*Replace\x20table\x20cells*')};});const _0x45fa9d=()=>!0x1;for(const _0x4a504c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5e35b2['_suggestionFactory']['registerCustomCallback']('insertion',_0x4a504c,'join',_0x45fa9d),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('deletion',_0x4a504c,'join',_0x45fa9d),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a504c,'join',_0x45fa9d);_0x5e35b2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x45fa9d),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x428fb1,_0x5c4e61,_0x112290)=>{const _0x588dc8=_0x428fb1['map'](_0x49be6d=>_0x49be6d['getContainedElement']())['filter'](_0x15076a=>_0x15076a),_0x1fc70c=new Map(_0x588dc8['map'](_0x22614a=>[_0x22614a,null]));if(_0xbcff4){for(const {element:_0x12bde3,attributes:_0x4c471e}of _0xbcff4['cells'])_0x4c471e&&_0x1fc70c['set'](_0x12bde3,_0x4c471e);}else{if(_0x112290&&_0x112290['markerAttributes'])for(const [_0x31a577,_0x515a46]of Object['entries'](_0x112290['markerAttributes'])){const _0x4c854a=_0x19777a['model']['markers']['get'](_0x31a577),_0x1b9b63=_0x4c854a?_0x4c854a['getRange']()['getContainedElement']():null;_0x1b9b63&&_0x1fc70c['set'](_0x1b9b63,_0x515a46);}}_0x19777a['model']['change'](_0xbb7714=>{for(const [_0x4dc6ff,_0x88fe58]of _0x1fc70c)_0xbb7714['setAttributes']({...Ce,..._0x88fe58},_0x4dc6ff);});});const _0x74e7ce=(_0x215705,_0xcb0d2a)=>{_0x5e35b2['_suggestionFactory']['registerCustomCallback'](_0x215705,'tablePaste',_0xcb0d2a,(_0x730a72,_0x39a825,_0x3ebc13)=>{_0x19777a['model']['change'](_0x58e7d1=>{const _0x2ef099=[];for(const _0x429320 of _0x730a72){const _0xa7c48d=_0x429320['start']['nodeAfter'];_0xa7c48d['is']('element','tableCellSuggestion')&&_0x2ef099['push'](_0xa7c48d);}_0x5e35b2['_suggestionFactory']['getSuggestionCallback'](_0x215705,null,_0xcb0d2a)(_0x730a72,_0x39a825,_0x3ebc13);for(const _0x3919ce of _0x2ef099)'$graveyard'!=_0x3919ce['root']['rootName']&&_0x58e7d1['unwrap'](_0x3919ce);});});};_0x74e7ce('insertion','accept'),_0x74e7ce('insertion','discard'),_0x74e7ce('deletion','accept'),_0x74e7ce('deletion','discard'),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x430150=>{const _0x51aa1d=_0x430150['map'](_0x3bff22=>_0x3bff22['getContainedElement']()),_0x2d68d5=_0x51aa1d[0x0]['findAncestor']('table'),{minRow:_0x5e3281,maxRow:_0x30dc6c}=_0x563996['_getCoordsForCells'](_0x51aa1d);_0x537a65['removeRows'](_0x2d68d5,{'at':_0x5e3281,'rows':_0x30dc6c-_0x5e3281+0x1});}),_0x5e35b2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x592519=>{const _0x19d0a8=_0x592519['map'](_0x392658=>_0x392658['getContainedElement']()),_0x2bd34b=_0x19d0a8[0x0]['findAncestor']('table'),{minColumn:_0x73277e,maxColumn:_0x5c016e}=_0x563996['_getCoordsForCells'](_0x19d0a8);_0x537a65['removeColumns'](_0x2bd34b,{'at':_0x73277e,'columns':_0x5c016e-_0x73277e+0x1});});const _0x4f6507=(_0x42eae3,_0x2f8db4)=>{if(!_0x2f8db4['subType']||!_0x2f8db4['subType']['startsWith']('tablePaste'))return;const _0x8d0859=_0x2f8db4['attributes']['tablePasteChainId'],_0x38aa86=_0x5e35b2['getSuggestions']()['filter'](_0xf6de8d=>_0xf6de8d['isInContent']&&_0xf6de8d['attributes']&&_0xf6de8d['attributes']['tablePasteChainId']==_0x8d0859);_0x38aa86['length']&&_0x2f8db4['getAllAdjacentSuggestions']()['length']!=_0x38aa86['length']&&_0x38aa86['reduce']((_0x4f6c47,_0x2ef17f)=>(_0x4f6c47['next']=_0x2ef17f,_0x2ef17f['previous']=_0x4f6c47,_0x2ef17f));};function _0x5c5a2d(_0x435b57,_0x10de64=!0x0){const {id:_0x53ec46}=_0x5e35b2['_splitMarkerName'](_0x435b57['markerName']),_0x5105f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d400a=_0x5e35b2['activeMarkers']['includes'](_0x435b57['markerName']);return _0x1d400a&&_0x5105f5['push']('ck-suggestion-marker--active'),{'classes':_0x5105f5,'attributes':{'data-suggestion':_0x53ec46},'priority':_0x1d400a&&_0x10de64?0xbc2:0xbb8};}_0x5e35b2['on']('suggestionLoaded',_0x4f6507,{'priority':'high'}),_0x5e35b2['on']('suggestionUnloaded',_0x4f6507,{'priority':'high'}),_0x19777a['model']['document']['registerPostFixer'](()=>{let _0x4ffe5e=!0x1;const _0x267673=Array['from'](_0x19777a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35750d,data:_0x5bb12f}of _0x267673){const {group:_0xfa8395,type:_0x493398,id:_0x2c7839}=_0x5e35b2['_splitMarkerName'](_0x35750d);if('suggestion'!=_0xfa8395||'deletion'!=_0x493398||_0x5bb12f['oldRange'])continue;if(!_0x5e35b2['hasSuggestion'](_0x2c7839))continue;const _0x5a1b4b=_0x5e35b2['getSuggestion'](_0x2c7839)['getRanges'](),_0xcd32ac=_0x19777a['plugins']['get']('Users')['me'];for(const _0x1d7e2d of _0x5e35b2['getSuggestions']()){if(!_0x1d7e2d['isInContent']||_0x1d7e2d['author']!=_0xcd32ac)continue;if('formatBlock'!=_0x1d7e2d['type']||'tablePasteCell'!=_0x1d7e2d['subType'])continue;if(_0x1d7e2d['getRanges']()['every'](_0x4cec4e=>_0x5a1b4b['some'](_0x219ecf=>_0x219ecf['containsRange'](_0x4cec4e,!0x0)))){for(const _0x2f93d0 of _0x1d7e2d['getAllAdjacentSuggestions']())_0x2f93d0['isInContent']&&(_0x2f93d0['discard'](),_0x4ffe5e=!0x0);}}}return _0x4ffe5e;}),_0x19777a['model']['document']['registerPostFixer'](_0x377f47=>{const _0x5411f8=_0x19777a['commands']['get']('redo');if(!_0x5411f8||!_0x5411f8['_createdBatches']['has'](_0x377f47['batch']))return!0x1;let _0x577d6f=!0x1;const _0x3aa450=_0x19777a['plugins']['get']('Users')['me'],_0x196770=_0x19777a['model']['document']['differ']['getChanges'](),_0x235d23=Array['from'](_0x19777a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x91cbda,data:_0x3825cc})=>{const {group:_0x1b14b3,subType:_0x534000,authorId:_0x5996b1}=_0x5e35b2['_splitMarkerName'](_0x91cbda);return'suggestion'==_0x1b14b3&&'tablePaste'==_0x534000&&_0x5996b1==_0x3aa450['id']&&!_0x3825cc['oldRange'];});for(const _0x30a642 of _0x196770){if('insert'!=_0x30a642['type']||'tableCellSuggestion'!=_0x30a642['name']||0x1!=_0x30a642['length'])continue;const _0x8a885f=_0x377f47['createRange'](_0x30a642['position'],_0x30a642['position']['getShiftedBy'](0x1));if(!_0x235d23['find'](({data:_0x56d328})=>_0x56d328['newRange']['isEqual'](_0x8a885f))){for(const {name:_0x237c54,data:_0x71cbc8}of _0x235d23)if(_0x8a885f['containsRange'](_0x71cbc8['newRange'])){_0x377f47['updateMarker'](_0x237c54,{'range':_0x8a885f}),_0x577d6f=!0x0;break;}}}return _0x577d6f;}),_0x19777a['model']['document']['registerPostFixer'](_0x4f2b3e=>{let _0x49b64c=!0x1;const _0x253589=_0x19777a['plugins']['get']('Users')['me'],_0x2188ff=_0x5e35b2['getSuggestions']()['filter'](_0x4f5b8e=>_0x4f5b8e['isInContent']&&_0x4f5b8e['author']==_0x253589),_0x92e574=new Set(),_0x430f6e=new Set();for(const _0x19d1cf of _0x2188ff)if('tablePaste'==_0x19d1cf['subType'])for(const _0x10677d of _0x19d1cf['getMarkers']()){const _0x15cd9d=_0x10677d['getRange']()['getContainedElement']();if(_0x15cd9d){if(_0x15cd9d['is']('element','tableCellSuggestion')&&Pe(_0x15cd9d)){_0x19d1cf['removeMarker'](_0x10677d['name']),_0x92e574['add'](_0x15cd9d),_0x49b64c=!0x0;const _0x1f690e=_0x15cd9d['nextSibling'],_0x1c2d07=_0x15cd9d['previousSibling'],_0x2b714f=_0x1f690e&&_0x1f690e['is']('element','tableCellSuggestion'),_0x37f308=_0x1c2d07&&_0x1c2d07['is']('element','tableCellSuggestion');_0x2b714f&&!_0x92e574['has'](_0x1f690e)&&_0x430f6e['add'](_0x1f690e),_0x37f308&&!_0x92e574['has'](_0x1c2d07)&&_0x430f6e['add'](_0x1c2d07);}else _0x15cd9d['is']('element','paragraph')&&_0x15cd9d['isEmpty']&&(_0x19d1cf['removeMarker'](_0x10677d['name']),_0x49b64c=!0x0);}}else{if('tablePasteCell'==_0x19d1cf['subType']){if(!_0x19d1cf['attributes']||!_0x19d1cf['attributes']['tablePasteChainId'])continue;const _0xa794e8=_0x19d1cf['attributes']['markerAttributes'];if(_0xa794e8&&Object['keys'](_0xa794e8)['length'])continue;const _0x31d7e9=_0x19d1cf['attributes']['tablePasteChainId'];let _0xfc29c1=!0x0,_0xd78ce6=!0x0;for(const _0x15761b of _0x2188ff)if(_0x15761b['subType']&&_0x15761b['subType']['startsWith']('tablePaste')){if(!_0x15761b['attributes']['tablePasteChainId']){_0xd78ce6=!0x1;break;}if(_0x15761b['id']!=_0x19d1cf['id']&&_0x15761b['attributes']['tablePasteChainId']==_0x31d7e9){_0xfc29c1=!0x1;break;}}_0xd78ce6&&_0xfc29c1&&(_0x19d1cf['removeMarkers'](),_0x49b64c=!0x0);}}for(const _0x30bda2 of _0x92e574)_0x4f2b3e['remove'](_0x30bda2);for(const _0x43e456 of _0x430f6e)_0x4f2b3e['unwrap'](_0x43e456);return _0x49b64c;}),_0x19777a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31b88a,_0x534a61)=>_0x5c5a2d(_0x31b88a),'converterPriority':'high'}),_0x19777a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3960a8,_0x566745)=>_0x566745['options']['showSuggestionHighlights']?_0x5c5a2d(_0x3960a8,!0x1):null,'converterPriority':'high'});const _0x394df1=_0x19777a['editing']['view'];this['listenTo'](_0x394df1['document'],'clipboardOutput',(_0x22420d,_0x1768ba)=>{const _0x142506=[];for(const _0x5aa320 of _0x394df1['createRangeIn'](_0x1768ba['content'])['getItems']())_0x5aa320['is']('element','suggestion-td')&&_0x142506['push'](_0x5aa320);_0x394df1['change'](_0x114175=>{for(const _0x1d7da1 of _0x142506)_0x114175['move'](_0x114175['createRangeIn'](_0x1d7da1),_0x114175['createPositionBefore'](_0x1d7da1)),_0x114175['remove'](_0x1d7da1);});});}}function Pe(_0x1a4577){if(_0x1a4577['isEmpty'])return!0x0;const _0x36bc91=_0x1a4577['getChild'](0x0);return _0x36bc91['is']('element','paragraph')&&_0x36bc91['isEmpty'];}function he(_0x3c94f6,_0xaf961a={},_0x2bf331){for(const {isAnchor:_0x6fa870,cellHeight:_0x441874,cellWidth:_0x2c67fc}of _0x2bf331['createTableWalker'](_0x3c94f6,{'includeAllSlots':!0x0,..._0xaf961a}))if(!_0x6fa870||0x1!=_0x441874||0x1!=_0x2c67fc)return!0x1;return!0x0;}class vt extends _0x3b57f6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3bdfb6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bdfb6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3bdfb6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3bdfb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bdfb6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3bdfb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3bdfb6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x497b3c,_0x48740e){const _0x594e43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c1d43=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8006ba=_0x48740e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d421c=_0x4c1d43['getColumnGroupElement'](_0x8006ba);let _0x3298a0=_0x4d421c?_0x4c1d43['getTableColumnsWidths'](_0x4d421c):null,_0x59d51f=_0x8006ba['getAttribute']('tableWidth')||null;const _0x2f143e=_0x48740e['tableWidth']||_0x59d51f,_0x4e3685=_0x48740e['columnWidths']||_0x3298a0,_0x4c6f7f=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d7f6a of _0x594e43['getSuggestions']()){const _0x4a696a=_0x1d7f6a['getContainedElement']();if('resizeTable'===_0x1d7f6a['subType']&&_0x4a696a===_0x8006ba){_0x1d7f6a['author']!==_0x4c6f7f&&_0x1d7f6a['discard']();const _0x41deff=_0x1d7f6a['data']['commandParams'];_0x59d51f=_0x41deff[0x0]['tableWidth'],_0x3298a0=_0x41deff[0x0]['columnWidths'];break;}}_0x497b3c({'table':_0x8006ba,'tableWidth':_0x2f143e,'columnWidths':_0x4e3685}),_0x594e43['markBlockFormat'](_0x8006ba,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x59d51f,'columnWidths':_0x3298a0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1ed837){if('formatBlock'!=_0x1ed837['type']&&'formatInline'!=_0x1ed837['type'])return;const {data:_0x39f0b4}=_0x1ed837;if(_0x39f0b4&&'resizeTable'===_0x39f0b4['formatGroupId']){const _0x57aede='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x57aede)};}}}class Ct extends _0x3b57f6{['afterInit'](){const _0x311182=this['editor'];_0x311182['plugins']['has']('Template')&&_0x311182['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x3b57f6{['afterInit'](){const _0x3acfb8=this['editor'];if(!_0x3acfb8['commands']['get']('insertTableOfContents'))return;_0x3acfb8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc2a8a1=_0x3acfb8['plugins']['get']('TrackChangesEditing'),_0x364bae=_0x3acfb8['locale'];_0xc2a8a1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x39f4f0=>o(_0x364bae,'ELEMENT_TABLE_OF_CONTENTS',_0x39f4f0));}}class Dt extends _0x3b57f6{['afterInit'](){const _0x24add4=this['editor'];if(!_0x24add4['plugins']['has']('Title'))return;const _0x32025b=_0x24add4['plugins']['get']('TrackChangesEditing');_0x32025b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x24add4['locale'],'ELEMENT_TITLE')),_0x24add4['model']['document']['registerPostFixer'](_0x31d41a=>{let _0x201415=!0x1;const _0x59e4fb=Array['from'](_0x24add4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c03fa,data:_0x44f218}of _0x59e4fb){const {group:_0x2de6c0}=_0x32025b['_splitMarkerName'](_0x5c03fa);if('suggestion'!==_0x2de6c0||!_0x44f218['newRange'])continue;const _0x272e78=_0x44f218['newRange'],_0x2b5476=_0x272e78['end']['nodeBefore'];if(!_0x2b5476||!_0x2b5476['is']('element','title-content'))continue;if(!_0x272e78['start']['isTouching'](_0x272e78['end']))continue;const _0x4479c4=_0x24add4['model']['schema']['getNearestSelectionRange'](_0x272e78['end'],'forward');if(_0x4479c4&&_0x4479c4['isCollapsed']){const _0x229119=_0x31d41a['createRange'](_0x272e78['start'],_0x4479c4['start']);_0x229119['isEqual'](_0x272e78)||(_0x31d41a['updateMarker'](_0x5c03fa,{'range':_0x229119}),_0x201415=!0x0);}_0x201415||(_0x31d41a['removeMarker'](_0x5c03fa),_0x201415=!0x0);}return _0x201415;});}}class Nt extends _0x3b57f6{['afterInit'](){const _0x51e658=this['editor'],_0x77f36f=_0x51e658['plugins']['get']('TrackChangesEditing');_0x51e658['plugins']['has']('UndoEditing')&&(_0x77f36f['enableCommand']('undo'),_0x77f36f['enableCommand']('redo'));}}class Mt extends _0x3b57f6{static get['requires'](){return[jt];}['afterInit'](){const _0x4399a2=this['editor'];if(!_0x4399a2['plugins']['has']('TableCaptionEditing'))return;_0x4399a2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3b57f6{['tableProperties'];['tableCellProperties'];constructor(_0x59bc43){super(_0x59bc43),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x5ed3f9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4eae87 of this['tableProperties'])_0x5ed3f9['enableCommand'](_0x4eae87,(_0x524bc7,_0x415fc2)=>{const _0x2d2b99=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4eae87,[_0x2d2b99],this['tableProperties'],'tableProperties',_0x524bc7,_0x415fc2);});_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5ed3f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2edb50,_0x4001ad)=>this['handleDiscardAction'](this['tableProperties'],_0x2edb50,_0x4001ad)),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x36809f of this['tableCellProperties'])_0x5ed3f9['enableCommand'](_0x36809f,(_0x6b8280,_0x5b4d03)=>{const _0x2bd8df=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x36809f,_0x2bd8df,this['tableCellProperties'],'tableCellProperties',_0x6b8280,_0x5b4d03);});_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5ed3f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x557ab2,_0x47435a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x557ab2,_0x47435a)),_0x5ed3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5ed3f9['descriptionFactory']['registerDescriptionCallback'](_0x2ce363=>this['handleSuggestionDescription'](_0x2ce363));}['_handlePropertyChange'](_0x28fdfb,_0x343f78,_0x4603f0,_0xfac003,_0x26e103,_0x30debc){const _0x57ab4a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30debc['batch'],()=>{for(const _0x4edf5c of _0x343f78){if(this['_getSuggestion'](_0x4edf5c,_0xfac003))_0x26e103(_0x30debc);else{const _0x36e5c0={};for(const _0x2c595c of _0x4603f0){const _0x404ca6=_0x4edf5c['getAttribute'](_0x2c595c);void 0x0!==_0x404ca6&&(_0x36e5c0[_0x2c595c]=_0x404ca6);}_0x26e103(_0x30debc),_0x57ab4a['markBlockFormat'](_0x4edf5c,{'commandParams':[_0x36e5c0]},[],_0xfac003);}}});}['handleDiscardAction'](_0x57826a,_0x139d45,_0x47dbc8){const _0x233072=_0x139d45[0x0]['start']['nodeAfter'],_0x3a203b=_0x47dbc8['commandParams'][0x0];this['editor']['model']['change'](_0x2aa5ec=>{for(const _0x9b5176 of _0x57826a)void 0x0!==_0x3a203b[_0x9b5176]?_0x2aa5ec['setAttribute'](_0x9b5176,_0x3a203b[_0x9b5176],_0x233072):_0x2aa5ec['removeAttribute'](_0x9b5176,_0x233072);});}['handleSuggestionDescription'](_0x402548){if(_0x402548['data'])switch(_0x402548['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3e311d,_0x43323b){const _0x48c8d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f81f8 of _0x48c8d8['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e2561=_0x1f81f8['getContainedElement']();if(_0x1f81f8['subType']===_0x43323b&&_0x5e2561===_0x3e311d)return _0x1f81f8;}return null;}}const m='$elementName';class p extends _0x3b57f6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x17c546,_0x5c81e6,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x251b4c){function _0x4f275d(_0x4d5ced){return _0x4d5ced['map'](_0x31ebca=>String['fromCharCode'](_0x31ebca))['join']('');}super(_0x251b4c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5610b5,_0x336062,_0x230606,_0x20e141)=>{this['_model']['change'](()=>{for(const _0x318692 of[..._0x20e141,..._0x230606])this['_model']['markers']['has'](_0x318692)&&_0x251b4c['editing']['reconvertMarker'](_0x318692);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x251b4c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x251b4c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x251b4c['config']['get']('trackChanges.trackFormatChanges'),_0x251b4c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x251b4c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x251b4c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4f275d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4f275d([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x36]);}['init'](){const _0x5f1308=this['editor'],_0x459466=(_0x1f216b,_0x12a86c)=>{if('attribute'!=_0x1f216b)return'ck-suggestion-marker-'+_0x1f216b;const _0x2253d0=_0x12a86c['split']('|')[0x0];return this['_isBlockAttribute'](_0x2253d0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f1308['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x708806=>{const {id:_0x29f8f7,type:_0x129a5e,subType:_0x6753c}=this['_splitMarkerName'](_0x708806['markerName']),_0x62d5a4=['ck-suggestion-marker',_0x459466(_0x129a5e,_0x6753c)];let _0x265093=0xbb8;return this['activeMarkers']['includes'](_0x708806['markerName'])&&(_0x62d5a4['push']('ck-suggestion-marker--active'),_0x265093=0xbc2),'deletion'==_0x129a5e&&(_0x265093+=0x5),{'classes':_0x62d5a4,'attributes':{'data-suggestion':_0x29f8f7},'priority':_0x265093};}}),_0x5f1308['conversion']['for']('dataDowncast')['add'](_0x5bcd0a=>{_0x5bcd0a['on']('addMarker:suggestion',(_0x30ca8d,_0x269a2e,_0x3ec2e0)=>{if(!_0x3ec2e0['options']['showSuggestionHighlights'])return;const _0x414beb=_0x269a2e['item'];if(!_0x414beb)return;const _0x4bc994=_0x3ec2e0['mapper']['toViewElement'](_0x414beb);_0x5f1308['model']['schema']['isObject'](_0x414beb)&&_0x4bc994&&!_0x4bc994['getCustomProperty']('widget')&&_0x4bc994['is']('containerElement')&&_0x5055e8(_0x4bc994,_0x3ec2e0['writer']);},{'priority':'high'});}),_0x5f1308['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x160fd3,_0x161945)=>{if(!_0x161945['options']['showSuggestionHighlights'])return null;const {type:_0x12f948,subType:_0x25f9fa}=this['_splitMarkerName'](_0x160fd3['markerName']);return{'classes':['ck-suggestion-marker',_0x459466(_0x12f948,_0x25f9fa)],'priority':0xbb8};}});const _0x39d0e2=({showActiveMarkers:_0xe68c13=!0x0,isAttributeSuggestion:_0x3a64cd=!0x1}={})=>(_0x1be5d1,_0x4bb174,_0x5d446f)=>{if(!_0x4bb174['item'])return;const {id:_0x205bb3}=this['_splitMarkerName'](_0x4bb174['markerName']);if(_0x3a64cd){const _0x28ef83=this['_suggestions']['get'](_0x205bb3),_0x974dd9=this['_getAttributeKey'](_0x28ef83);if(!this['_isBlockAttribute'](_0x974dd9))return;}if(_0x4bb174['item']['is']('selection'))return void _0x5d446f['consumable']['consume'](_0x4bb174['item'],_0x1be5d1['name']);const _0x3112ba=_0x5d446f['mapper']['toViewElement'](_0x4bb174['item']);if(_0x4bb174['item']['is']('element')&&_0x5f1308['model']['schema']['isBlock'](_0x4bb174['item'])&&!_0x3112ba['getCustomProperty']('addHighlight')){_0x5d446f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3112ba),_0x5d446f['writer']['setAttribute']('data-suggestion',_0x205bb3,_0x3112ba),_0x5d446f['mapper']['bindElementToMarker'](_0x3112ba,_0x4bb174['markerName']),_0xe68c13&&(this['activeMarkers']['includes'](_0x4bb174['markerName'])?_0x5d446f['writer']['addClass']('ck-suggestion-marker--active',_0x3112ba):_0x5d446f['writer']['removeClass']('ck-suggestion-marker--active',_0x3112ba));for(const _0x5a6615 of _0x5f1308['model']['createRangeIn'](_0x4bb174['item'])['getItems']())_0x5d446f['consumable']['consume'](_0x5a6615,_0x1be5d1['name']);_0x5d446f['consumable']['consume'](_0x4bb174['item'],_0x1be5d1['name']);}};_0x5f1308['conversion']['for']('dataDowncast')['add'](_0x350589=>{_0x350589['on']('addMarker:suggestion:formatBlock',(_0x2a8c26,_0x540e34,_0xac3d51)=>{_0xac3d51['options']['showSuggestionHighlights']&&_0x39d0e2({'showActiveMarkers':!0x1})(_0x2a8c26,_0x540e34,_0xac3d51);},{'priority':'highest'});}),_0x5f1308['conversion']['for']('dataDowncast')['add'](_0x46ef50=>{_0x46ef50['on']('addMarker:suggestion:attribute',(_0x14407f,_0x2526c9,_0xba958b)=>{_0xba958b['options']['showSuggestionHighlights']&&_0x39d0e2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x14407f,_0x2526c9,_0xba958b);},{'priority':'highest'});}),_0x5f1308['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24310b,_0x204908)=>_0x204908['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24310b['substr'](0xb)}}),_0x5f1308['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ed6fe,{writer:_0x5a672f})=>{let _0x3e07c2='suggestion:'+_0x1ed6fe['getAttribute']('suggestion-type')+':'+_0x1ed6fe['getAttribute']('id');return _0x1ed6fe['getAttribute']('marker-count')&&(_0x3e07c2+=':'+_0x1ed6fe['getAttribute']('marker-count')),_0x5a672f['createElement']('$marker',{'data-name':_0x3e07c2});}}),_0x5f1308['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0x5dc417=>{_0x5dc417['on']('addMarker:suggestion:formatBlock',_0x39d0e2(),{'priority':'high'});}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0xa622b6=>{_0xa622b6['on']('addMarker:suggestion:attribute',_0x39d0e2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0x421094=>{_0x421094['on']('removeMarker:suggestion:formatBlock',(_0x44c472,_0x3d7aa9,_0x305eb6)=>{const _0x5d9713=_0x305eb6['mapper']['markerNameToElements'](_0x3d7aa9['markerName']);if(_0x5d9713){for(const _0x8c334b of _0x5d9713)_0x8c334b['getCustomProperty']('addHighlight')||(_0x305eb6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x8c334b),_0x305eb6['writer']['removeAttribute']('data-suggestion',_0x8c334b),_0x305eb6['mapper']['unbindElementFromMarkerName'](_0x8c334b,_0x3d7aa9['markerName']));}},{'priority':'high'});}),_0x5f1308['conversion']['for']('editingDowncast')['add'](_0x22adb5=>{_0x22adb5['on']('removeMarker:suggestion:attribute',(_0x491b27,_0x142026,_0x163f52)=>{const _0x140d28=_0x163f52['mapper']['markerNameToElements'](_0x142026['markerName']);if(!_0x140d28)return;const {id:_0x198e1c}=this['_splitMarkerName'](_0x142026['markerName']),_0x1a4c45=this['_suggestions']['get'](_0x198e1c),_0x4389b5=this['_getAttributeKey'](_0x1a4c45);if(this['_isBlockAttribute'](_0x4389b5)){for(const _0x10f0fd of _0x140d28)_0x10f0fd['getCustomProperty']('addHighlight')||(_0x163f52['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x10f0fd),_0x163f52['writer']['removeAttribute']('data-suggestion',_0x10f0fd),_0x163f52['mapper']['unbindElementFromMarkerName'](_0x10f0fd,_0x142026['markerName']));}},{'priority':'high'});}),_0x5f1308['model']['document']['registerPostFixer'](_0x6c66a9=>{let _0x51bfef=!0x1;const _0x4dd9fc=Array['from'](_0x5f1308['model']['document']['differ']['getChangedMarkers']()),_0x581dfa=new Set();for(const {name:_0x39b7fa,data:_0x31136a}of _0x4dd9fc){const {group:_0x142a46,type:_0x389bcd,subType:_0x6467fc,id:_0x35854f}=this['_splitMarkerName'](_0x39b7fa);if('suggestion'!==_0x142a46)continue;const _0x5e9a0d=this['_suggestions']['get'](_0x35854f);if(null!=_0x31136a['newRange']){'formatInline'==_0x389bcd&&(_0x51bfef=_0x51bfef||Et(_0x31136a['newRange'],_0x39b7fa,_0x6c66a9,_0x5f1308['model']['schema']));const _0x39aff4='attribute'==_0x389bcd&&this['_isBlockAttribute'](_0x6467fc['split']('|')[0x0]);if(_0x31136a['newRange']['isCollapsed']||'$graveyard'==_0x31136a['newRange']['root']['rootName']||'formatBlock'==_0x389bcd&&!Ut(_0x31136a['newRange'])||_0x39aff4&&!Ut(_0x31136a['newRange'])||'deletion'==_0x389bcd&&!(!Tt(_0x361ffd=_0x31136a['newRange'])&&!function(_0x415799){return _0x415799['start']['parent']==_0x415799['end']['nodeBefore']&&_0x415799['start']['isAtEnd'];}(_0x361ffd)))_0x6c66a9['removeMarker'](_0x39b7fa),_0x51bfef=!0x0;else{if(!_0x5e9a0d||!_0x5e9a0d['isInContent'])continue;_0x581dfa['add'](_0x5e9a0d);}}}var _0x361ffd;return _0x581dfa['size']>0x0&&(_0x51bfef=!!this['_joinWithAdjacentSuggestions'](_0x581dfa)||_0x51bfef),_0x51bfef;}),_0x5f1308['model']['document']['registerPostFixer'](_0x5d7a75=>{let _0x43710c=!0x1;for(const _0x1cee96 of _0x5f1308['model']['document']['differ']['getChanges']())if('insert'==_0x1cee96['type'])for(const _0x168da8 of this['_suggestions']['values']()){if(_0x168da8['isMultiRange']||!_0x168da8['isInContent'])continue;const _0x416237='formatBlock'==_0x168da8['type'],_0x5f3b41=this['_getAttributeKey'](_0x168da8),_0x232d60=_0x5f3b41&&this['_isBlockAttribute'](_0x5f3b41);if(!_0x416237&&!_0x232d60)continue;const _0x33c452=_0x168da8['getFirstRange']();if(_0x33c452['start']['parent']!=_0x33c452['end']['parent']&&!_0x33c452['end']['isAtEnd']){const _0xcd1d19=_0x5f1308['model']['createPositionAt'](_0x33c452['start']['nodeAfter'],'end'),_0x5bf328=_0x5f1308['model']['createRange'](_0x33c452['start'],_0xcd1d19);_0x5d7a75['updateMarker'](_0x168da8['getFirstMarker'](),{'range':_0x5bf328}),_0x43710c=!0x0;}}return _0x43710c;}),_0x5f1308['model']['document']['registerPostFixer'](_0x3ab5d3=>this['_processAttributeChanges'](_0x3ab5d3)),_0x5f1308['model']['document']['registerPostFixer'](_0x25ac53=>!_0x25ac53['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x25ac53)),_0x5f1308['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f1308['model']['document']['on']('change:data',(_0x115a97,_0x4e63ae)=>{if(!_0x4e63ae['isLocal']||_0x4e63ae['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x27e1ad=_0x5f1308['model']['document']['differ']['getChanges']();if(0x0==_0x27e1ad['length'])return;const _0x45fd29=[],_0x316901=_0x27e1ad['filter'](_0x278cd4=>'attribute'==_0x278cd4['type']),_0x35306e=_0x27e1ad['filter'](_0x50358c=>'insert'==_0x50358c['type']&&'$text'!=_0x50358c['name']);for(const _0x681491 of _0x316901)this['_isRegisteredAttribute'](_0x681491['attributeKey'])&&_0x45fd29['push']({'key':_0x681491['attributeKey'],'newValue':_0x681491['attributeNewValue'],'oldValue':_0x681491['attributeOldValue'],'range':Ot(_0x681491['range'],_0x5f1308['model'])});for(const _0x4f10fe of _0x35306e){if('rename'!=_0x4f10fe['action']&&'refresh'!=_0x4f10fe['action'])continue;const _0x2019fd=Gt(_0x4f10fe['position']['nodeAfter'],_0x5f1308['model']),_0x1b6912=_0x4f10fe['before'];'rename'==_0x4f10fe['action']&&_0x45fd29['push']({'key':m,'newValue':_0x4f10fe['name'],'oldValue':_0x1b6912['name'],'range':_0x2019fd});for(const [_0x211833,_0x5211b7]of _0x1b6912['attributes']){if(!this['_isRegisteredAttribute'](_0x211833))continue;const _0xfa782=_0x4f10fe['attributes']['get'](_0x211833);_0x5211b7!==_0xfa782&&_0x45fd29['push']({'key':_0x211833,'newValue':_0xfa782,'oldValue':_0x5211b7,'range':_0x2019fd});}for(const [_0x3e3773,_0x474c5a]of _0x4f10fe['attributes'])this['_isRegisteredAttribute'](_0x3e3773)&&(_0x1b6912['attributes']['has'](_0x3e3773)||_0x45fd29['push']({'key':_0x3e3773,'newValue':_0x474c5a,'oldValue':null,'range':_0x2019fd}));}0x0!=_0x45fd29['length']&&_0x5f1308['model']['enqueueChange'](_0x4e63ae,_0xa85d2d=>{const _0x2d1612=_0x386e7f();for(const {range:_0x5da722,key:_0x549401,oldValue:_0x4a600b,newValue:_0x52fb0e}of _0x45fd29)this['markAttributeChange'](_0x5da722,_0x549401,_0x4a600b,_0x52fb0e,{'groupId':_0x2d1612});this['_reduceExistingSuggestions'](_0xa85d2d,_0x45fd29);});},{'priority':'lowest'}),_0x5f1308['model']['markers']['on']('update:suggestion',(_0x103724,_0x5504b0,_0xbd6055)=>{if(null==_0xbd6055){const {id:_0x41dbe5}=this['_splitMarkerName'](_0x5504b0['name']),_0x3ede4f=this['_suggestions']['get'](_0x41dbe5);_0x3ede4f&&_0x3ede4f['addMarkerName'](_0x5504b0['name']);}}),_0x5f1308['model']['document']['on']('change:data',()=>{const _0x143fdc=Array['from'](_0x5f1308['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ffc65=>'suggestion'===this['_splitMarkerName'](_0x3ffc65['name'])['group']);if(0x0===_0x143fdc['length'])return;_0x143fdc['sort']((_0x38926a,_0x2b99ed)=>{const _0x39f7ba=_0x38926a['data']['oldRange'],_0x2588a4=_0x2b99ed['data']['oldRange'];return null===_0x39f7ba&&null===_0x2588a4?0x0:null===_0x39f7ba&&null!==_0x2588a4?-0x1:null!==_0x39f7ba&&null===_0x2588a4?0x1:_0x39f7ba['start']['isBefore'](_0x2588a4['start'])?-0x1:0x1;});const _0x44e25c=new Set(),_0x23e8e4=new Set();for(const {name:_0x3a14c6,data:_0x1f7f1d}of _0x143fdc){const {id:_0x3df7b6}=this['_splitMarkerName'](_0x3a14c6);if(null===_0x1f7f1d['oldRange']){const _0x278247=this['_handleNewSuggestionMarker'](_0x3a14c6);_0x23e8e4['add'](_0x278247);}else{const _0x37a5eb=this['_suggestions']['get'](_0x3df7b6);null!==_0x1f7f1d['newRange']||_0x37a5eb['isInContent']?(_0x44e25c['add'](_0x37a5eb['head']),_0x23e8e4['add'](_0x37a5eb)):this['_removeSuggestion'](_0x37a5eb);}}_0x23e8e4['size']>0x0&&this['_refreshSuggestionsChain'](_0x23e8e4);for(const _0x13f121 of _0x44e25c)this['fire']('suggestionChanged',_0x13f121);}),_0x5f1308['model']['on']('applyOperation',(_0x1a74e2,_0xa0e932)=>{const _0x445a71=_0xa0e932[0x0];if(!this['_suggestions']['size'])return;if(!_0x445a71['isDocumentOperation'])return;if(_0x445a71['batch']['isUndo']||!_0x445a71['batch']['isLocal'])return;let _0x1740be,_0x10fb63;switch(_0x445a71['type']){case'insert':_0x1740be=_0x5f1308['model']['createPositionAt'](_0x445a71['position']),_0x10fb63=_0x1740be['getShiftedBy'](_0x445a71['howMany']);break;case'split':_0x1740be=_0x5f1308['model']['createPositionAt'](_0x445a71['splitPosition']),_0x10fb63=_0x5f1308['model']['createPositionAt'](_0x445a71['moveTargetPosition']);break;case'move':_0x1740be=_0x5f1308['model']['createPositionAt'](_0x445a71['targetPosition']),_0x10fb63=_0x1740be['getShiftedBy'](_0x445a71['howMany']);break;default:return;}const _0x26d9f6=_0x5f1308['model']['createRange'](_0x1740be,_0x10fb63);_0x5f1308['model']['change'](()=>{for(const {suggestion:_0x27396c,meta:_0x1e4e37}of this['_findSuggestions'](_0x26d9f6)){if(_0x27396c['isMultiRange'])continue;if('formatInline'==_0x27396c['type'])continue;const _0x33803c=this['_getAttributeKey'](_0x27396c);if(_0x33803c&&this['_isBlockAttribute'](_0x33803c)&&'split'!=_0x445a71['type'])continue;const _0x4f3003=_0x27396c['data']&&_0x27396c['data']['multipleBlocks'];('formatBlock'!=_0x27396c['type']||'split'==_0x445a71['type']&&!_0x4f3003)&&(_0x1e4e37['containsRangeInObject']||'insertion'==_0x27396c['type']&&_0x1e4e37['isOwn']||_0x27396c['getFirstRange']()['containsRange'](_0x26d9f6)&&this['_breakSuggestionMarker'](_0x27396c,_0x1740be,_0x10fb63));}});},{'priority':'lowest'}),_0x5f1308['model']['on']('deleteContent',(_0x1459bd,_0x10727d)=>{const _0x2ca94e=_0x10727d[0x0],_0x5c4e4a=_0x10727d[0x1];if(_0x5c4e4a&&_0x5c4e4a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2ca94e['isCollapsed'])return;const _0x579f6d=_0x5f1308['model']['schema'],{start:_0x2ed47a,end:_0x366859}=_0x2ca94e['getFirstRange'](),_0x4452f7=_0x2ed47a['nodeAfter']&&_0x579f6d['isLimit'](_0x2ed47a['nodeAfter'])?null:_0x579f6d['getNearestSelectionRange'](_0x2ed47a,'forward'),_0x3ccb43=_0x366859['nodeBefore']&&_0x579f6d['isLimit'](_0x366859['nodeBefore'])?null:_0x579f6d['getNearestSelectionRange'](_0x366859,'backward'),_0x673338=_0x5f1308['model']['createRange'](_0x4452f7?_0x4452f7['start']:_0x2ed47a,_0x3ccb43?_0x3ccb43['end']:_0x366859);_0x5f1308['model']['change'](_0x4c3eef=>{this['markDeletion'](_0x673338);const _0x1f09ca=_0x5f1308['model']['schema']['getNearestSelectionRange'](_0x673338['start']);_0x2ca94e['is']('documentSelection')?_0x4c3eef['setSelection'](_0x1f09ca):_0x2ca94e['setTo'](_0x1f09ca);}),_0x1459bd['stop']();},{'priority':_0x3ed224['normal']+0xa}),_0x5f1308['model']['on']('insertContent',(_0x39dd90,_0x426f8f)=>{const _0xf6aea=_0x426f8f[_0x426f8f['length']-0x1];_0xf6aea&&_0xf6aea['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f1308['model']['change'](()=>{let _0x2b49ef=_0x5f1308['model']['insertContent'](_0x426f8f[0x0],_0x426f8f[0x1],_0x426f8f[0x2],{'forceDefaultExecution':!0x0});if(!_0x2b49ef)return;_0x39dd90['return']=_0x2b49ef['clone']();const _0x2ab849=_0x2b49ef['end']['nodeBefore'],_0x121f36=_0x5f1308['model']['schema'];_0x2ab849&&_0x121f36['isBlock'](_0x2ab849)&&!_0x121f36['isObject'](_0x2ab849)&&(_0x2b49ef=_0x5f1308['model']['createRange'](_0x2b49ef['start'],_0x5f1308['model']['createPositionAt'](_0x2ab849,'end'))),this['markInsertion'](_0x2b49ef);}),_0x39dd90['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x57c570=new $(_0x5f1308,this['_suggestions']);_0x5f1308['commands']['add']('acceptSuggestion',_0x57c570),this['enableCommand']('acceptSuggestion');const _0x4fdbab=new B(_0x5f1308,this['_suggestions']);_0x5f1308['commands']['add']('discardSuggestion',_0x4fdbab),this['enableCommand']('discardSuggestion'),_0x5f1308['commands']['add']('acceptAllSuggestions',new x(_0x5f1308,_0x57c570,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f1308['commands']['add']('discardAllSuggestions',new x(_0x5f1308,_0x4fdbab,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f1308['commands']['add']('acceptSelectedSuggestions',new R(_0x5f1308,_0x57c570,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f1308['commands']['add']('discardSelectedSuggestions',new R(_0x5f1308,_0x4fdbab,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4f0ab5=_0x5f1308['plugins']['get']('CommentsRepository');this['listenTo'](_0x4f0ab5,'addComment',(_0x4695d4,{threadId:_0x53f70e})=>{const _0x43c669=this['_suggestions']['get'](_0x53f70e);_0x43c669&&_0x43c669['commentThread']&&0x1===_0x43c669['commentThread']['length']&&this['_updateSuggestionData'](_0x53f70e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4f0ab5,'removeComment',(_0x207283,{threadId:_0x47cbff})=>{const _0x4c8cbc=this['_suggestions']['get'](_0x47cbff);_0x4c8cbc&&_0x4c8cbc['commentThread']&&!_0x4c8cbc['commentThread']['length']&&this['_updateSuggestionData'](_0x47cbff,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3334aa){if(this['_adapter'])throw new _0x144d61('track-changes-adapter-already-set',this);this['_adapter']=_0x3334aa;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x352cf3=!0x1,toJSON:_0x4354db=!0x1}={}){const _0x4f09e5=[];for(const _0x1faf56 of this['_suggestions']['values']())_0x352cf3&&!_0x1faf56['isInContent']||_0x4f09e5['push'](_0x1faf56);return _0x4354db?_0x4f09e5['map'](_0x3a1a41=>_0x3a1a41['toJSON']()):_0x4f09e5;}['getSuggestion'](_0x519a88){const _0x4b2e23=this['_suggestions']['get'](_0x519a88);if(!_0x4b2e23)throw new _0x144d61('track-changes-suggestion-not-found',this);return _0x4b2e23;}['hasSuggestion'](_0x399f0c){return this['_suggestions']['has'](_0x399f0c);}['addSuggestionData'](_0x36cfda){const {authorId:_0x23734d,id:_0x1c1c6b,attributes:_0x44a160}=_0x36cfda,[_0x1742a0,_0x53f897]=_0x36cfda['type']['split'](':'),_0x2edd83=this['_suggestions']['get'](_0x1c1c6b)||this['_createSuggestion'](_0x1742a0,_0x53f897,_0x1c1c6b,_0x23734d,_0x44a160);if(this['_addThreadToSuggestion'](_0x2edd83),this['_checkSuggestionCorrectness'](_0x2edd83,_0x1742a0,_0x53f897||null,_0x23734d),_0x2edd83['createdAt']=_0x36cfda['createdAt'],_0x2edd83['_isDataLoaded']=!0x0,_0x44a160&&_0x44a160['@external']){const _0x1a487e=_0x44a160['@external'],_0x901230=this['_getExternalAuthor'](_0x1a487e['authorName']);_0x2edd83['authoredAt']=_0x1a487e['createdAt'],_0x2edd83['author']=_0x901230,_0x2edd83['isExternal']=!0x0;}else _0x2edd83['authoredAt']=_0x36cfda['createdAt'];switch(_0x36cfda['data']&&(_0x2edd83['data']=_0x36cfda['data']),_0x36cfda['attributes']&&(_0x2edd83['attributes']=_0x36cfda['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2edd83['_saved']=!0x0),this['_suggestionState']['get'](_0x2edd83)){case'notReady':this['_suggestionState']['set'](_0x2edd83,'dataReady');break;case'markerReady':_0x2edd83['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2edd83])),this['_refreshSuggestionsChain'](new Set([_0x2edd83])),this['_suggestionState']['set'](_0x2edd83,'ready'),this['fire']('suggestionLoaded',_0x2edd83)):this['_suggestionState']['set'](_0x2edd83,'removed');}return _0x2edd83;}['acceptSuggestion'](_0x21bffd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a57ec of _0x21bffd['getAllAdjacentSuggestions']())_0x2a57ec['accept']();});});}['discardSuggestion'](_0x2926b2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d562c of _0x2926b2['getAllAdjacentSuggestions']())_0x1d562c['discard']();});});}['enableCommand'](_0x178af3,_0x3595a6){const _0x2263dc=this['editor']['commands']['get'](_0x178af3);if(!_0x2263dc)throw new _0x144d61('track-changes-command-not-found',this,{'commandName':_0x178af3});if(this['_enabledCommands']['has'](_0x2263dc))throw new _0x144d61('track-changes-enable-command-twice',this,{'commandName':_0x178af3});this['_enabledCommands']['add'](_0x2263dc),_0x3595a6&&_0x2263dc['on']('execute',(_0x4e39d0,_0x4502ba)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4502ba['length']>0x0&&_0x4502ba[_0x4502ba['length']-0x1]&&_0x4502ba[_0x4502ba['length']-0x1]['forceDefaultExecution']?_0x4502ba['pop']():(_0x4e39d0['return']=_0x3595a6((..._0x5835c0)=>_0x2263dc['execute'](..._0x5835c0,{'forceDefaultExecution':!0x0}),..._0x4502ba),_0x4e39d0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d5dea){let _0x134dcd,_0x29d0aa;const _0x483ed3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x134dcd=_0x5d5dea();}catch(_0x1dd452){_0x29d0aa=_0x1dd452;}return _0x483ed3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29d0aa&&_0x144d61['rethrowUnexpectedError'](_0x29d0aa,this),_0x134dcd;}['markInsertion'](_0x532e69,_0x266477=null,_0x31daf2={}){if(_0x532e69['isCollapsed'])return null;const _0x11ecdc=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3426c2,meta:_0x5cb03d}of this['_findSuggestions'](_0x532e69,'insertion'))if(_0x5cb03d['isOwn']){if(!_0x5cb03d['isNextTo']){if(_0x5cb03d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3426c2,_0x31daf2))continue;return _0x3426c2;}if(Lt(_0x3426c2,_0x31daf2))return _0x3426c2;this['_breakSuggestionMarker'](_0x3426c2,_0x532e69['start'],_0x532e69['end']);break;}if(_0x266477==_0x3426c2['subType']&&Lt(_0x3426c2,_0x31daf2)){const _0x408b0c=_0x3426c2['getFirstRange']();return _0x408b0c['start']['isEqual'](_0x532e69['end'])?this['_setSuggestionRange'](_0x3426c2,this['_model']['createRange'](_0x532e69['start'],_0x408b0c['end'])):this['_setSuggestionRange'](_0x3426c2,this['_model']['createRange'](_0x408b0c['start'],_0x532e69['end'])),_0x3426c2;}}const _0x3ec0f5=_0x386e7f(),_0x50c71c=_0x11ecdc['id'],_0xe2fb8f=_0x266477?'insertion:'+_0x266477:'insertion',_0x11903a=this['_setSuggestionData']({'id':_0x3ec0f5,'type':_0xe2fb8f,'createdAt':new Date(),'authorId':_0x50c71c,'attributes':_0x31daf2});return this['_addSuggestionMarker'](_0xe2fb8f,_0x3ec0f5,_0x50c71c,_0x532e69),_0x11903a;}['markMultiRangeInsertion'](_0x59e29b,_0x4553da='multi',_0x163736={}){const _0x3bf3a5=this['editor']['plugins']['get']('Users')['me'],_0x3592fd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4553da,'join');for(const _0x48d7bf of this['getSuggestions']())if(_0x48d7bf['author']['id']==_0x3bf3a5['id']&&'insertion'==_0x48d7bf['type']&&_0x48d7bf['subType']==_0x4553da&&Lt(_0x48d7bf,_0x163736)&&(_0x3592fd(_0x48d7bf['getRanges'](),_0x59e29b)||_0x3592fd(_0x59e29b,_0x48d7bf['getRanges']()))){for(const _0x400b59 of _0x59e29b)_0x48d7bf['addRange'](_0x400b59);return _0x48d7bf;}for(const {suggestion:_0x22363a,meta:_0x53613b}of this['_findSuggestions'](_0x59e29b,'insertion')){if(!_0x53613b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53613b['containsRangeInObject'])continue;if(!Lt(_0x22363a,_0x163736))continue;let _0xdb7e90=!0x0;for(const _0x11641e of _0x22363a['getRanges']())for(const _0x48ae87 of _0x59e29b)if(!_0x11641e['containsRange'](_0x48ae87)){_0xdb7e90=!0x1;break;}if(_0xdb7e90)return _0x22363a;}const _0x4d9778=_0x386e7f(),_0x31082e=_0x3bf3a5['id'],_0x26901e='insertion:'+_0x4553da,_0x19a7c9=this['_setSuggestionData']({'id':_0x4d9778,'type':_0x26901e,'createdAt':new Date(),'authorId':_0x31082e,'attributes':_0x163736});for(const _0x34fc79 of _0x59e29b)this['_addSuggestionMarker'](_0x26901e,_0x4d9778,_0x31082e,_0x34fc79,u['getMultiRangeId']());return _0x19a7c9;}['markInlineFormat'](_0x3c19f6,_0x203c79,_0x2b4999=null,_0x275182={}){if(_0x2b4999=_0x2b4999||Vt(_0x203c79),_0x3c19f6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1d725f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b4999,'accept');return this['forceDefaultExecution'](()=>_0x1d725f([_0x3c19f6],_0x203c79,_0x275182)),null;}const _0x586359=this['editor']['plugins']['get']('Users')['me'],_0x27bd96=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xea67d1,meta:_0x2c68ad}of this['_findSuggestions'](_0x3c19f6,'insertion'))_0x2c68ad['isOwn']&&!_0x2c68ad['isInsideObject']&&_0x27bd96['push'](..._0xea67d1['getRanges']());}const _0x553cd4=function(_0x2b163f,_0x41755d){const _0x2fc89e=[];for(const _0x54049c of _0x41755d){const _0x502a33=_0x2b163f['getIntersection'](_0x54049c);_0x502a33&&_0x2fc89e['push'](_0x502a33);}return _0x2fc89e;}(_0x3c19f6,_0x27bd96),_0x2a5671=function(_0x27d6eb,_0x3fd3e3){const _0x359fd8=[_0x27d6eb];for(const _0x330910 of _0x3fd3e3){let _0x342586=0x0;for(;_0x342586<_0x359fd8['length'];){const _0x5f3274=_0x359fd8[_0x342586]['getDifference'](_0x330910);_0x359fd8['splice'](_0x342586,0x1,..._0x5f3274),_0x342586+=_0x5f3274['length'];}}return _0x359fd8;}(_0x3c19f6,_0x27bd96);_0x553cd4['length']&&this['_model']['change'](()=>{for(const _0x17ed03 of _0x553cd4){const _0x356e9a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b4999,'accept');this['forceDefaultExecution'](()=>_0x356e9a([_0x17ed03],_0x203c79,_0x275182));}});for(const _0x167c76 of _0x2a5671){let _0x442c61=null,_0x367bf9=_0x167c76['start'],_0x50c639=_0x167c76['end'];for(const {suggestion:_0x4a5c94,meta:_0x26cf3c}of this['_findSuggestions'](_0x167c76,'formatInline')){if(!_0x26cf3c['isOwn'])continue;if(_0x4a5c94['subType']!=_0x2b4999)continue;if(!Lt(_0x4a5c94,_0x275182))continue;const _0x1ef384=_0x4a5c94['getFirstRange']();if(_0x1ef384['containsRange'](_0x167c76,!0x0))return null;_0x367bf9=_0x367bf9['isBefore'](_0x1ef384['start'])?_0x367bf9:_0x1ef384['start'],_0x50c639=_0x50c639['isAfter'](_0x1ef384['end'])?_0x50c639:_0x1ef384['end'],_0x442c61?_0x1ef384['start']['isBefore'](_0x442c61['getFirstRange']()['start'])?(_0x442c61['removeMarkers'](),_0x442c61=_0x4a5c94):_0x4a5c94['removeMarkers']():_0x442c61=_0x4a5c94;}const _0xcf16da=this['_model']['createRange'](_0x367bf9,_0x50c639);if(_0x442c61)this['_setSuggestionRange'](_0x442c61,_0xcf16da);else{const _0x43b217=_0x386e7f(),_0x232b51=_0x586359['id'];this['_setSuggestionData']({'id':_0x43b217,'type':'formatInline:'+_0x2b4999,'data':_0x203c79,'createdAt':new Date(),'authorId':_0x232b51,'attributes':_0x275182}),this['_addSuggestionMarker']('formatInline:'+_0x2b4999,_0x43b217,_0x232b51,_0xcf16da);}}return null;}['markBlockFormat'](_0x583cf0,_0x310d71,_0x58aa03=[],_0xbb6ac5=null,_0x4e9c3f={}){_0x310d71['formatGroupId']||(_0x310d71['formatGroupId']=_0x310d71['commandName']),_0x310d71['multipleBlocks']=_0x583cf0['is']('range'),_0xbb6ac5=_0xbb6ac5||Vt(_0x310d71);const _0xfab5bf=_0x58aa03['map'](_0x23115d=>Gt(_0x23115d,this['_model'])),_0x444d44=_0x583cf0['is']('range')?_0x583cf0:Gt(_0x583cf0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5d7b36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbb6ac5,'accept');return this['forceDefaultExecution'](()=>_0x5d7b36([_0x444d44],_0x310d71,_0x4e9c3f)),null;}_0xfab5bf['push'](_0x444d44);let _0x3132df=!0x0;for(const _0x39fe65 of _0xfab5bf)if(!this['_rangeIsInLocalUserInsertion'](_0x39fe65)){_0x3132df=!0x1;break;}if(_0x3132df&&'always'!==this['_trackFormatChanges']){const _0x416a75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbb6ac5,'accept');return this['forceDefaultExecution'](()=>_0x416a75([_0x444d44],_0x310d71,_0x4e9c3f)),null;}let _0x5e7175=null,_0x1a257a=_0x444d44['start'],_0x2e3c43=_0x444d44['end'];for(const {suggestion:_0x4ccaa7,meta:_0x32dd9a}of this['_findSuggestions'](_0x444d44,'formatBlock')){if(!_0x32dd9a['isOwn'])continue;if(_0x32dd9a['isNextTo']||_0x32dd9a['containsRangeInObject']||_0x32dd9a['isInsideObject'])continue;if(_0x4ccaa7['data']['formatGroupId']!=_0x310d71['formatGroupId'])continue;if(!Lt(_0x4ccaa7,_0x4e9c3f))continue;const _0x3bd3e7=_0x4ccaa7['getFirstRange']();if(_0x4ccaa7['subType']==_0xbb6ac5){if(_0x3bd3e7['containsRange'](_0x444d44,!0x0))return null;_0x1a257a=_0x1a257a['isBefore'](_0x3bd3e7['start'])?_0x1a257a:_0x3bd3e7['start'],_0x2e3c43=_0x2e3c43['isAfter'](_0x3bd3e7['end'])?_0x2e3c43:_0x3bd3e7['end'],_0x5e7175?_0x3bd3e7['start']['isBefore'](_0x5e7175['getFirstRange']()['start'])?(_0x5e7175['removeMarkers'](),_0x5e7175=_0x4ccaa7):_0x4ccaa7['removeMarkers']():_0x5e7175=_0x4ccaa7;}else{const _0x26ed55=_0x444d44['getIntersection'](_0x3bd3e7);this['_cutOutSuggestionMarker'](_0x4ccaa7,_0x26ed55);}}const _0x1ea6a3=this['editor']['plugins']['get']('Users')['me'],_0x50eb86=_0x386e7f(),_0x56b515=_0x1ea6a3['id'];if(_0x5e7175)return this['_setSuggestionRange'](_0x5e7175,this['_model']['createRange'](_0x1a257a,_0x2e3c43)),_0x5e7175;{const _0x18f2cd=this['_setSuggestionData']({'id':_0x50eb86,'type':'formatBlock:'+_0xbb6ac5,'data':_0x310d71,'createdAt':new Date(),'authorId':_0x56b515,'attributes':_0x4e9c3f});return this['_addSuggestionMarker']('formatBlock:'+_0xbb6ac5,_0x50eb86,_0x56b515,this['_model']['createRange'](_0x1a257a,_0x2e3c43)),_0x18f2cd;}}['markMultiRangeBlockFormat'](_0x47926b,_0xa6552c,_0x429f27=[],_0x9197ea=null,_0x5cf2f2={}){_0xa6552c['formatGroupId']||(_0xa6552c['formatGroupId']=_0xa6552c['commandName']);const _0x372cb0=_0x47926b[0x0];_0xa6552c['multipleBlocks']=_0x372cb0['is']('range'),_0x9197ea=_0x9197ea||Vt(_0xa6552c);const _0x298cb8=_0x429f27['map'](_0x28a891=>Gt(_0x28a891,this['_model'])),_0x4bdc3f=_0x372cb0['is']('range')?_0x47926b:_0x47926b['map'](_0x5a240f=>Gt(_0x5a240f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x265fd1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9197ea,'accept');return this['forceDefaultExecution'](()=>_0x265fd1(_0x4bdc3f,_0xa6552c,_0x5cf2f2)),null;}_0x298cb8['push'](..._0x4bdc3f);let _0x2002dd=!0x0;for(const _0x12f99c of _0x298cb8)if(!this['_rangeIsInLocalUserInsertion'](_0x12f99c)){_0x2002dd=!0x1;break;}if(_0x2002dd&&'always'!==this['_trackFormatChanges']){const _0x5f179e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9197ea,'accept');return this['forceDefaultExecution'](()=>_0x5f179e(_0x4bdc3f,_0xa6552c,_0x5cf2f2)),null;}const _0x26048b=this['editor']['plugins']['get']('Users')['me'];for(const _0x54fbbc of this['getSuggestions']()){if(_0x54fbbc['author']['id']!=_0x26048b['id'])continue;if('formatBlock'!=_0x54fbbc['type']||_0x54fbbc['data']['formatGroupId']!=_0xa6552c['formatGroupId'])continue;if(!Lt(_0x54fbbc,_0x5cf2f2))continue;const _0x21c7aa=_0x54fbbc['subType']==_0x9197ea;for(let _0x37c630=0x0;_0x37c630<_0x4bdc3f['length'];_0x37c630++){const _0x34a5ea=_0x4bdc3f[_0x37c630];for(const _0x50b9a6 of _0x54fbbc['getMarkers']()){const _0xb6750f=_0x50b9a6['getRange']();if(_0x34a5ea['isEqual'](_0xb6750f)){_0x21c7aa?(_0x4bdc3f['splice'](_0x37c630,0x1),_0x37c630--):_0x54fbbc['removeMarker'](_0x50b9a6['name']);break;}}}}if(0x0==_0x4bdc3f['length'])return null;const _0x41dec2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9197ea,'join');for(const _0x2eabee of this['getSuggestions']())if(_0x2eabee['author']['id']==_0x26048b['id']&&'formatBlock'==_0x2eabee['type']&&_0x2eabee['data']['formatGroupId']==_0xa6552c['formatGroupId']&&_0x2eabee['subType']==_0x9197ea&&Lt(_0x2eabee,_0x5cf2f2)&&(_0x41dec2(_0x2eabee['getRanges'](),_0x4bdc3f)||_0x41dec2(_0x4bdc3f,_0x2eabee['getRanges']()))){for(const _0x35448b of _0x4bdc3f)_0x2eabee['addRange'](_0x35448b);return _0x2eabee;}const _0x554f7b=_0x386e7f(),_0x561980=_0x26048b['id'],_0x317bb1='formatBlock:'+_0x9197ea,_0x5e143a=this['_setSuggestionData']({'id':_0x554f7b,'type':_0x317bb1,'data':_0xa6552c,'createdAt':new Date(),'authorId':_0x561980,'attributes':_0x5cf2f2});for(const _0x44abf6 of _0x4bdc3f)this['_addSuggestionMarker'](_0x317bb1,_0x554f7b,_0x561980,_0x44abf6,u['getMultiRangeId']());return _0x5e143a;}['markDeletion'](_0x3b8530,_0x1db4d0=null,_0x124dfa={}){if(_0x3b8530['isCollapsed'])return null;const _0x226b29=this['editor']['plugins']['get']('Users')['me'],_0x3db405=new _0x2e923c(_0x3b8530['start'],_0x3b8530['end']);for(const {suggestion:_0x26b85f,meta:_0x4dd170}of this['_findSuggestions'](_0x3db405,'insertion'))if(_0x4dd170['isOwn']&&!_0x4dd170['isNextTo']){if(_0x26b85f['isMultiRange']){const _0x51b155=_0x26b85f['getRanges']()['filter'](_0x122927=>'$graveyard'!=_0x122927['root']['rootName']);_0x51b155['every'](_0x374b67=>_0x3db405['containsRange'](_0x374b67,!0x0))&&_0x26b85f['discard']();if(_0x51b155['some'](_0x4107e6=>_0x4107e6['containsRange'](_0x3db405,!0x0))){const _0x3944f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1db4d0,'accept');return this['forceDefaultExecution'](()=>_0x3944f1([_0x3db405],null,_0x124dfa)),null;}}else{const _0x15cb32=_0x3db405['getIntersection'](_0x26b85f['getFirstRange']());null!==_0x15cb32&&_0x26b85f['_onDiscard']([_0x15cb32],null,_0x124dfa);}}if(_0x3db405['detach'](),_0x3db405['isCollapsed']||'$graveyard'==_0x3db405['root']['rootName'])return null;let _0x196494=null,_0x3e9837=_0x3db405['start'],_0x3db36a=_0x3db405['end'];const _0x46ad0d=this['_findSuggestions'](_0x3db405,'deletion');for(const {suggestion:_0x5da826,meta:_0x336686}of _0x46ad0d){const _0x5149f5=this['_model']['createRange'](_0x3e9837,_0x3db36a);if(_0x336686['isOwn']&&(this['_mergeNestedSuggestions']||!_0x336686['containsRangeInObject']&&!_0x336686['isInsideObject'])){if(_0x5da826['isMultiRange']){if(!Lt(_0x5da826,_0x124dfa))continue;let _0xbd5365=!0x0;for(const _0x50c820 of _0x5da826['getRanges']()){if(_0x50c820['containsRange'](_0x5149f5,!0x0))return _0x5da826;_0x5149f5['containsRange'](_0x50c820)||(_0xbd5365=!0x1);}_0xbd5365&&_0x5da826['discard']();}else{const _0x14f4e0=_0x5da826['getFirstRange']();if(_0x14f4e0['containsRange'](_0x5149f5,!0x0))return _0x5da826;if(!Lt(_0x5da826,_0x124dfa)){_0x5149f5['containsRange'](_0x14f4e0)?_0x5da826['removeMarkers']():_0x14f4e0['containsPosition'](_0x3e9837)?_0x3e9837=_0x14f4e0['end']:_0x14f4e0['containsPosition'](_0x3db36a)&&(_0x3db36a=_0x14f4e0['start']);continue;}_0x3e9837=_0x3e9837['isBefore'](_0x14f4e0['start'])?_0x3e9837:_0x14f4e0['start'],_0x3db36a=_0x3db36a['isAfter'](_0x14f4e0['end'])?_0x3db36a:_0x14f4e0['end'],_0x124dfa=Object['assign']({},_0x5da826['attributes']),_0x196494?_0x14f4e0['start']['isBefore'](_0x196494['getFirstRange']()['start'])?(_0x196494['removeMarkers'](),_0x196494=_0x5da826):_0x5da826['removeMarkers']():_0x196494=_0x5da826;}}}if(_0x196494)return this['_setSuggestionRange'](_0x196494,this['_model']['createRange'](_0x3e9837,_0x3db36a)),_0x196494;{const _0x1e4b6a=_0x386e7f(),_0x34fb62=this['_model']['createRange'](_0x3e9837,_0x3db36a),_0x5e3fe0=_0x226b29['id'],_0x43359c=_0x1db4d0?'deletion:'+_0x1db4d0:'deletion',_0xa8a162=this['_setSuggestionData']({'id':_0x1e4b6a,'type':_0x43359c,'createdAt':new Date(),'authorId':_0x5e3fe0,'attributes':_0x124dfa});return this['_addSuggestionMarker'](_0x43359c,_0x1e4b6a,_0x5e3fe0,_0x34fb62),_0xa8a162;}}['markMultiRangeDeletion'](_0x5e71b9,_0x5f1239='multi',_0x54e02f={}){const _0x41f02a=this['editor']['plugins']['get']('Users')['me'],_0x17ad41=_0x5e71b9['map'](_0x34b2d6=>new _0x2e923c(_0x34b2d6['start'],_0x34b2d6['end'])),_0x3c77ab=new Set();for(const {suggestion:_0x31ea7b,meta:_0x33cbac}of this['_findSuggestions'](_0x17ad41,'insertion'))_0x33cbac['isOwn']&&!_0x33cbac['isNextTo']&&_0x3c77ab['add'](_0x31ea7b);for(const _0x204e22 of _0x3c77ab)if(_0x204e22['isMultiRange']){const _0x89db1c=_0x204e22['getRanges']();(!_0x204e22['attributes']||!_0x204e22['attributes']['skipNestingCheck'])&&(_0x89db1c['every'](_0x4c0d88=>_0x17ad41['some'](_0x277b58=>_0x277b58['containsRange'](_0x4c0d88,!0x0)))&&_0x204e22['discard']());if(_0x17ad41['every'](_0x421667=>_0x89db1c['some'](_0x54ff05=>_0x54ff05['containsRange'](_0x421667,!0x0)))){const _0x568427=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f1239,'accept');return this['forceDefaultExecution'](()=>_0x568427(_0x5e71b9,null,_0x54e02f)),null;}}else{const _0x157858=_0x204e22['getFirstRange']();_0x17ad41['some'](_0x44d895=>_0x44d895['containsRange'](_0x157858,!0x0))&&_0x204e22['discard']();if(_0x17ad41['every'](_0x304f67=>_0x157858['containsRange'](_0x304f67,!0x0))){const _0x1f2964=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f1239,'accept');return this['forceDefaultExecution'](()=>_0x1f2964(_0x17ad41,null,_0x54e02f)),null;}}const _0x1fa90f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f1239,'join');let _0x452d68=null;for(const _0x595433 of this['getSuggestions']())if(_0x595433['author']['id']==_0x41f02a['id']&&_0x595433['isInContent']&&'deletion'==_0x595433['type']&&_0x595433['subType']==_0x5f1239&&Lt(_0x595433,_0x54e02f)&&(_0x1fa90f(_0x595433['getRanges'](),_0x17ad41)||_0x1fa90f(_0x17ad41,_0x595433['getRanges']()))){if(_0x452d68){if(_0x595433['commentThread']&&_0x595433['commentThread']['length'])continue;for(const _0x227020 of _0x595433['getRanges']())_0x452d68['isIntersectingWithRange'](_0x227020)||_0x452d68['addRange'](_0x227020);_0x595433['removeMarkers']();}else{_0x452d68=_0x595433;for(const _0x4e2261 of _0x17ad41)_0x595433['isIntersectingWithRange'](_0x4e2261)||_0x595433['addRange'](_0x4e2261);}}if(_0x452d68)return _0x452d68;_0x3c77ab['clear']();for(const {suggestion:_0x1f2f9a,meta:_0x1770e8}of this['_findSuggestions'](_0x17ad41,'deletion'))_0x1770e8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1770e8['containsRangeInObject']&&!_0x1770e8['isInsideObject'])&&Lt(_0x1f2f9a,_0x54e02f)&&_0x3c77ab['add'](_0x1f2f9a);for(const _0x169828 of _0x3c77ab){const _0x1f3c8e=_0x169828['getRanges']();if(!_0x54e02f||!_0x54e02f['skipNestingCheck']){if(_0x17ad41['every'](_0x3e68e3=>_0x1f3c8e['some'](_0x1f44c4=>_0x1f44c4['containsRange'](_0x3e68e3,!0x0))))return _0x169828;}(!_0x169828['attributes']||!_0x169828['attributes']['skipNestingCheck'])&&(_0x1f3c8e['every'](_0x5b9bf0=>_0x17ad41['some'](_0x5c37ce=>_0x5c37ce['containsRange'](_0x5b9bf0,!0x0)))&&_0x169828['discard']());}const _0x116e66=_0x386e7f(),_0x2a4395=_0x41f02a['id'],_0x446ea0='deletion:'+_0x5f1239,_0x5b1fd5=this['_setSuggestionData']({'id':_0x116e66,'type':_0x446ea0,'createdAt':new Date(),'authorId':_0x2a4395,'attributes':_0x54e02f});for(const _0x5b5095 of _0x17ad41)_0x5b5095['detach'](),_0x5b5095['isCollapsed']||'$graveyard'==_0x5b5095['root']['rootName']||this['_addSuggestionMarker'](_0x446ea0,_0x116e66,_0x2a4395,_0x5b5095,u['getMultiRangeId']());return _0x5b1fd5;}['markAttributeChange'](_0x256aa2,_0x2c9915,_0x19813f,_0x351257,_0x27481e){if(_0x256aa2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f0750=this['editor']['plugins']['get']('Users')['me']['id'],_0x22544b=Array['from'](this['_suggestions']['values']())['filter'](_0x26e927=>'attribute'==_0x26e927['type']&&_0x26e927['data']['key']==_0x2c9915&&_0x26e927['isIntersectingWithRange'](_0x256aa2));if('default'===this['_trackFormatChanges']){const _0x398e59=this['_findSuggestions'](_0x256aa2,'insertion')['filter'](({meta:_0x5e0d54})=>_0x5e0d54['isOwn']&&!_0x5e0d54['isInsideObject']&&!_0x5e0d54['isNextTo'])['map'](({suggestion:_0x5d3309})=>_0x5d3309);_0x22544b['unshift'](..._0x398e59);}const _0x1fac0d=new Map([[_0x256aa2,_0x19813f]]);for(const _0x219a00 of _0x22544b){const _0x452c53='attribute'==_0x219a00['type']?_0x219a00['data']['oldValue']:void 0x0,_0x579b96=_0x219a00['getFirstRange'](),_0x543432=Array['from'](_0x1fac0d['keys']())['find'](_0xa2bee=>_0xa2bee['isIntersecting'](_0x579b96));if(!_0x543432)continue;const _0x3a9a62=_0x543432['getDifference'](_0x579b96);this['_isBlockAttribute'](_0x2c9915)&&'insertion'==_0x219a00['type']&&0x0!=_0x3a9a62['length']||(_0x1fac0d['delete'](_0x543432),_0x3a9a62['forEach'](_0x1b6f51=>{_0x1fac0d['set'](_0x1b6f51,_0x19813f);}),'insertion'!=_0x219a00['type']&&_0x452c53!=_0x351257&&_0x1fac0d['set'](_0x543432['getIntersection'](_0x579b96),_0x452c53));}const _0x378f23=[];for(const [_0x5e760f,_0x919734]of _0x1fac0d){const _0xe78c7b=_0x386e7f(),_0x7b681f={'key':_0x2c9915,'oldValue':_0x919734,'newValue':_0x351257};_0x2c9915['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x2c9915});const _0x400422=('attribute:'+(_0x2c9915+'|'+Vt({'newValue':_0x351257})))['substring'](0x0,0x3c),_0x507bb0=this['_setSuggestionData']({'id':_0xe78c7b,'type':_0x400422,'data':_0x7b681f,'createdAt':new Date(),'authorId':_0x2f0750,'attributes':_0x27481e});_0x378f23['push'](_0x507bb0),this['_addSuggestionMarker'](_0x400422,_0xe78c7b,_0x2f0750,_0x5e760f);}return _0x378f23;}['enableDefaultAttributesIntegration'](_0x1afcbc){this['enableCommand'](_0x1afcbc,(_0x496206,..._0x2442d4)=>{this['_recordAttributeChanges'](()=>{_0x496206(..._0x2442d4);});});}['registerBlockAttribute'](_0x207cdb){this['_blockAttributeKeys']['add'](_0x207cdb);}['registerInlineAttribute'](_0x14b58c){this['_inlineAttributeKeys']['add'](_0x14b58c);}['_getAttributeKey'](_0x915cd0){return'attribute'==_0x915cd0['type']?_0x915cd0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b8052,_0x3ac289){const _0x386ad8=_0x1b8052['getFirstMarker']();this['_model']['change'](_0x3e8d30=>{_0x3e8d30['updateMarker'](_0x386ad8,{'range':_0x3ac289});});}['_addThreadToSuggestion'](_0x1b7e42){const _0x3b2bf5=_0x1b7e42['id'],_0x5904ff=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3b2bf5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5904ff,'threadId':_0x3b2bf5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x598447=this['_commentsRepository']['getCommentThread'](_0x3b2bf5);_0x598447['unbind']('isRemovable'),_0x598447['isRemovable']=!0x1,_0x1b7e42['commentThread']=_0x598447;}['_checkSuggestionCorrectness'](_0x5a8f3d,_0x3fd2e5,_0x20a50e,_0x5c34bc){if(_0x5a8f3d['type']!=_0x3fd2e5||_0x5a8f3d['subType']!=_0x20a50e||_0x5a8f3d['creator']['id']!=_0x5c34bc)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x144d61('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x9f6763,_0x46680f){const _0x43cdee=_0x9f6763['getFirstRange']();if(_0x46680f['isEqual'](_0x43cdee))_0x9f6763['removeMarkers']();else{if(_0x43cdee['containsRange'](_0x46680f)){const _0x437c58=this['_model']['createPositionAt'](_0x46680f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9f6763,this['_model']['createRange'](_0x43cdee['start'],_0x437c58));const _0x375d08=_0x386e7f(),_0x1a4ea5=_0x9f6763['creator']['id'],_0x18fdeb=_0x9f6763['type']+':'+_0x9f6763['subType'];this['_setSuggestionData']({'id':_0x375d08,'type':_0x18fdeb,'createdAt':new Date(),'authorId':_0x1a4ea5,'data':_0x9f6763['data'],'attributes':_0x9f6763['attributes']});const _0x10b935=this['_model']['createPositionAt'](_0x46680f['end']['parent'],'after'),_0x44cb54=this['_model']['createRange'](_0x10b935,_0x43cdee['end']);this['_addSuggestionMarker'](_0x18fdeb,_0x375d08,_0x1a4ea5,_0x44cb54);}else{if(_0x43cdee['containsPosition'](_0x46680f['start'])){const _0x389c08=this['_model']['createPositionAt'](_0x46680f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9f6763,this['_model']['createRange'](_0x43cdee['start'],_0x389c08));}else{const _0x2f32da=this['_model']['createPositionAt'](_0x46680f['end']['parent'],'after');this['_setSuggestionRange'](_0x9f6763,this['_model']['createRange'](_0x2f32da,_0x43cdee['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x40ef4e){for(const {suggestion:_0x5e3a57,meta:_0x16b687}of this['_findSuggestions'](_0x40ef4e,'insertion')){if(!_0x16b687['isOwn'])continue;const _0x47a2e9=_0x5e3a57['getRanges']();for(const _0x454113 of _0x47a2e9)if(!_0x40ef4e['getDifference'](_0x454113)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xa49fef){const _0x11eb06=this['editor']['plugins']['get']('Users')['getUser'](_0xa49fef);if(!_0x11eb06)throw new _0x144d61('track-changes-user-not-found',this);return _0x11eb06;}['_getExternalAuthor'](_0x2e519c){const _0x270e3a=this['editor']['plugins']['get']('Users'),_0x3a18f1=_0xf37622('external:'+_0x2e519c),_0x230abd=_0x270e3a['getUser'](_0x3a18f1);return _0x230abd||_0x270e3a['addUser']({'id':_0x3a18f1,'name':_0x2e519c});}['_createSuggestion'](_0x9daed4,_0x446049,_0x198253,_0x299061,_0x38a347){const _0x5d6228=this['_getAuthorFromId'](_0x299061),_0x2fcec4=this['_suggestionFactory']['buildSuggestion'](_0x9daed4,_0x446049,_0x198253,_0x5d6228,_0x38a347,_0x43e36f=>{this['_updateSuggestionData'](_0x198253,{'attributes':_0x43e36f});const _0x4473a1=this['getSuggestion'](_0x198253);this['_joinWithAdjacentSuggestions'](new Set([_0x4473a1])),this['_refreshSuggestionsChain'](new Set([_0x4473a1]));});return this['listenTo'](_0x2fcec4,'accept',()=>{this['_updateSuggestionData'](_0x198253,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2fcec4,'discard',()=>{this['_updateSuggestionData'](_0x198253,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x198253,_0x2fcec4),this['_suggestionState']['set'](_0x2fcec4,'notReady'),_0x2fcec4;}['_splitMarkerName'](_0x73b5f6){const _0x7f770d=_0x73b5f6['split'](':');return{'group':_0x7f770d[0x0],'type':_0x7f770d[0x1],'subType':_0x7f770d['length']>=0x5?_0x7f770d[0x2]:null,'id':_0x7f770d['length']<0x5?_0x7f770d[0x2]:_0x7f770d[0x3],'authorId':_0x7f770d['length']<0x5?_0x7f770d[0x3]:_0x7f770d[0x4],'markerCount':0x6==_0x7f770d['length']?_0x7f770d[0x5]:null};}['_breakSuggestionMarker'](_0x11e05e,_0x5e84b5,_0x115077){const _0x5b02aa=_0x11e05e['getFirstRange'](),_0x51dde3=_0x5b02aa['start'],_0xd6da31=_0x5b02aa['end'];this['_setSuggestionRange'](_0x11e05e,this['_model']['createRange'](_0x51dde3,_0x5e84b5));const _0xddd5c4=_0x386e7f(),_0x16f2d1=_0x11e05e['creator']['id'],_0x1d165c=_0x11e05e['type']+(_0x11e05e['subType']?':'+_0x11e05e['subType']:'');this['_setSuggestionData']({'id':_0xddd5c4,'type':_0x1d165c,'createdAt':new Date(),'authorId':_0x16f2d1,'originalSuggestionId':_0x11e05e['id'],'attributes':_0x11e05e['attributes'],'data':_0x11e05e['data']});const _0x1d0373=this['_getAttributeKey'](_0x11e05e);('formatBlock'==_0x11e05e['type']||_0x1d0373&&this['_isBlockAttribute'](_0x1d0373))&&(_0x115077=this['_model']['createPositionBefore'](_0x115077['parent'])),this['_addSuggestionMarker'](_0x1d165c,_0xddd5c4,_0x16f2d1,this['_model']['createRange'](_0x115077,_0xd6da31));}['_findSuggestions'](_0x4e4686,_0x2b48d6=null){const _0x43bbba=[],_0x2abfa0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4e4686)||(_0x4e4686=[_0x4e4686]);for(const _0x1e00ad of this['getSuggestions']()){if(!_0x1e00ad['isInContent'])continue;if(_0x2b48d6&&_0x1e00ad['type']!=_0x2b48d6)continue;let _0x437c04=!0x1;for(const _0x4855c8 of _0x1e00ad['getRanges']()){for(const _0xbb2191 of _0x4e4686){const _0x1d8668=_0xbb2191['start']['isEqual'](_0x4855c8['end'])||_0xbb2191['end']['isEqual'](_0x4855c8['start']);if(_0x1d8668||_0xbb2191['getIntersection'](_0x4855c8)){const _0x530ee9=_0xbb2191['containsRange'](_0x4855c8)&&Rt(this['_model']['schema'],_0x4855c8['start'],_0xbb2191),_0x13f50d=_0x4855c8['containsRange'](_0xbb2191)&&Rt(this['_model']['schema'],_0xbb2191['start'],_0x4855c8);_0x43bbba['push']({'suggestion':_0x1e00ad,'meta':{'isOwn':_0x2abfa0==_0x1e00ad['author'],'isNextTo':_0x1d8668,'isInsideObject':_0x530ee9,'containsRangeInObject':_0x13f50d}}),_0x437c04=!0x0;break;}}if(_0x437c04)break;}}return _0x43bbba;}['_addSuggestionMarker'](_0x2466f0,_0x61fa4a,_0x1cd94e,_0x3d11b3,_0x4bd222){this['_model']['change'](_0x4c84a3=>{let _0x5edea1='suggestion:'+_0x2466f0+':'+_0x61fa4a+':'+_0x1cd94e;_0x4bd222&&(_0x5edea1=_0x5edea1+':'+_0x4bd222),_0x4c84a3['addMarker'](_0x5edea1,{'range':_0x3d11b3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x532e8d){const _0x289eb4=_0x532e8d['previous'],_0x38bb6d=_0x532e8d['next'];_0x532e8d['previous']=null,_0x532e8d['next']=null,null!=_0x289eb4&&_0x289eb4['next']==_0x532e8d&&(_0x289eb4['next']=_0x38bb6d),null!=_0x38bb6d&&_0x38bb6d['previous']==_0x532e8d&&(_0x38bb6d['previous']=_0x289eb4),'ready'==this['_suggestionState']['get'](_0x532e8d)&&(this['_suggestionState']['set'](_0x532e8d,'removed'),this['fire']('suggestionUnloaded',_0x532e8d,_0x289eb4,_0x38bb6d));}['_setSuggestionData'](_0x28e94b){const _0xdd2fa8=_0x28e94b['id'],_0x1c5929=this['addSuggestionData'](_0x28e94b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x96059c=this['editor']['plugins']['get']('PendingActions'),_0x582b80=_0x1c5929['hasComments'],_0x684c22=_0x1c5929['subType']?_0x1c5929['type']+':'+_0x1c5929['subType']:_0x1c5929['type'],_0x43fd16=this['editor']['locale'],_0x57bc4e=_0x96059c['add'](o(_0x43fd16,'PENDING_ACTION_SUGGESTION')),_0x5e2962={'id':_0xdd2fa8,'type':_0x684c22,'hasComments':_0x582b80,'data':_0x28e94b['data']||null,'originalSuggestionId':_0x28e94b['originalSuggestionId']||null,'attributes':_0x1c5929['attributes']};this['_adapter']['addSuggestion'](_0x5e2962)['then'](_0x4ba437=>{_0x1c5929['_saved']=!0x0,_0x96059c['remove'](_0x57bc4e),_0x4ba437&&_0x4ba437['createdAt']&&(this['_suggestions']['get'](_0xdd2fa8)['createdAt']=_0x4ba437['createdAt']);})['catch'](_0x36a4c8=>{throw _0x57e9f2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1c5929['discard']();}),_0x1c5929['stopListening'](),this['_suggestions']['delete'](_0x1c5929['id']),this['_suggestionState']['delete'](_0x1c5929),_0x36a4c8;});}return _0x1c5929;}['_isBlockAttribute'](_0x5a5c82){return this['_blockAttributeKeys']['has'](_0x5a5c82);}['_updateSuggestionData'](_0x460f4e,_0x3e7cee){const _0x398cf1=this['editor']['plugins']['get']('PendingActions'),_0x4a4b73=this['getSuggestion'](_0x460f4e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a4b73['_saved']){const _0x48c04f=_0x398cf1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x460f4e,_0x3e7cee)['then'](()=>{_0x398cf1['remove'](_0x48c04f);});}else _0x4a4b73['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x460f4e,_0x3e7cee);});}}['_getSuggestionData'](_0x4ac39d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x144d61('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ac39d);}['_handleNewSuggestionMarker'](_0x10bd18){const {id:_0x166dcc,type:_0x35ba77,subType:_0x16bb40,authorId:_0x1511b9}=this['_splitMarkerName'](_0x10bd18),_0x2636bf=this['_suggestions']['get'](_0x166dcc)||this['_createSuggestion'](_0x35ba77,_0x16bb40,_0x166dcc,_0x1511b9,{});switch(this['_checkSuggestionCorrectness'](_0x2636bf,_0x35ba77,_0x16bb40,_0x1511b9),this['_suggestionState']['get'](_0x2636bf)){case'notReady':this['_getSuggestionData'](_0x166dcc)['then'](_0x79cd6f=>{let _0x4119bf=Promise['resolve']();_0x79cd6f['hasComments']&&(_0x4119bf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x166dcc})),_0x4119bf['then'](()=>{this['addSuggestionData'](_0x79cd6f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2636bf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x166dcc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2636bf,'ready'),this['fire']('suggestionLoaded',_0x2636bf);break;case'ready':this['fire']('suggestionChanged',_0x2636bf);}return _0x2636bf['addMarkerName'](_0x10bd18),_0x2636bf;}['_refreshSuggestionsChain'](_0x41d7f5){const _0x311636=Array['from'](_0x41d7f5),_0x38efd9=_0x311636['filter'](_0x5a809e=>'attribute'==_0x5a809e['type']);this['_refreshAttributeSuggestionsChain'](_0x38efd9);const _0x53d655=_0x311636['filter'](_0x4448ec=>!_0x4448ec['isMultiRange']&&'attribute'!=_0x4448ec['type']),_0x44ddbd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f1c93=>!_0x1f1c93['isMultiRange']&&'attribute'!=_0x1f1c93['type']),_0x4ad134=_0x44ddbd['filter'](_0x4a6107=>!_0x41d7f5['has'](_0x4a6107)),_0x344179=new Map(_0x44ddbd['map'](_0xa80e42=>[_0xa80e42,this['_suggestionFactory']['getSuggestionCallback'](_0xa80e42['type'],_0xa80e42['subType'],'chain')])),_0x19a47b=new Map(_0x44ddbd['map'](_0x456a83=>[_0x456a83,_0x456a83['getFirstRange']()])),_0x11f5f8=new Set(),_0x561710=new Set();for(let _0x4a9664=0x0;_0x4a9664<_0x53d655['length'];_0x4a9664++)_0x32998d(_0x53d655[_0x4a9664],_0x53d655,_0x4a9664+0x1);for(let _0x28e135=0x0;_0x28e135<_0x53d655['length'];_0x28e135++)_0x32998d(_0x53d655[_0x28e135],_0x4ad134,0x0);const _0x376fa1=new Set();for(let _0x4d8514=0x0;_0x4d8514<_0x53d655['length'];_0x4d8514++){const _0x37a662=_0x53d655[_0x4d8514];!_0x561710['has'](_0x37a662)&&_0x37a662['previous']&&(_0x376fa1['add'](_0x37a662['previous']),_0x37a662['previous']['next']===_0x37a662&&(_0x37a662['previous']['next']=null),_0x37a662['previous']=null),!_0x11f5f8['has'](_0x37a662)&&_0x37a662['next']&&(_0x376fa1['add'](_0x37a662['next']),_0x37a662['next']['previous']===_0x37a662&&(_0x37a662['next']['previous']=null),_0x37a662['next']=null);}function _0x32998d(_0xf109d0,_0x499df0,_0x2e543e){for(let _0x68f488=_0x2e543e;_0x68f488<_0x499df0['length'];_0x68f488++){const _0x547857=_0x521efb(_0xf109d0,_0x499df0[_0x68f488]);_0x547857&&(_0x547857[0x0]['next']=_0x547857[0x1],_0x547857[0x1]['previous']=_0x547857[0x0],_0x11f5f8['add'](_0x547857[0x0]),_0x561710['add'](_0x547857[0x1]));}}function _0x521efb(_0x408fca,_0x333c0d){if(_0x408fca['author']['id']!==_0x333c0d['author']['id'])return null;const _0x4c7295=_0x344179['get'](_0x408fca)(_0x408fca,_0x333c0d,_0x19a47b['get'](_0x408fca),_0x19a47b['get'](_0x333c0d));if(!_0x4c7295)return null;return _0x344179['get'](_0x333c0d)(_0x408fca,_0x333c0d,_0x19a47b['get'](_0x408fca),_0x19a47b['get'](_0x333c0d))?_0x4c7295[0x1]['commentThread']&&_0x4c7295[0x1]['commentThread']['length']?null:_0x4c7295:null;}_0x376fa1['size']&&this['_refreshSuggestionsChain'](_0x376fa1);}['_refreshAttributeSuggestionsChain'](_0x15409b){if(0x0==_0x15409b['length'])return;const _0x5b3532=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1594c6=>'attribute'==_0x1594c6['type']&&_0x1594c6['_isDataLoaded']),_0x3c2112=[],_0x3cb150=new Map();for(const _0x126f7b of _0x5b3532){const _0x42039d=_0xf37622(_0x126f7b['attributes']);_0x3cb150['has'](_0x42039d)||(_0x3cb150['set'](_0x42039d,_0x3c2112['length']),_0x3c2112['push']([]));const _0x5a16ac=_0x3cb150['get'](_0x42039d);_0x3c2112[_0x5a16ac]['push'](_0x126f7b);}!(function(){_0x3c2112['sort']((_0x2f390b,_0x11530d)=>{const _0x195b7f=_0x2f390b[0x0]['createdAt'],_0x4ed4dc=_0x11530d[0x0]['createdAt'];return _0x195b7f==_0x4ed4dc?_0x2f390b[0x0]['attributes']['groupId']<_0x11530d[0x0]['attributes']['groupId']?-0x1:0x1:_0x195b7f<_0x4ed4dc?-0x1:0x1;});for(const _0x464bb0 of _0x3c2112)_0x464bb0['sort']((_0x3e239e,_0x2500dd)=>_0x3e239e['id']<_0x2500dd['id']?-0x1:0x1);}());for(let _0x547702=0x0;_0x547702<_0x3c2112['length'];_0x547702++){if(0x0==_0x3c2112[_0x547702]['length'])continue;const _0x92943e=[];for(let _0x404a41=_0x547702+0x1;_0x404a41<_0x3c2112['length'];_0x404a41++)0x0!=_0x3c2112[_0x404a41]['length']&&_0x2ad901(_0x3c2112[_0x547702],_0x3c2112[_0x404a41])&&_0x92943e['push'](_0x404a41);for(const _0x5895e6 of _0x92943e)_0x3c2112[_0x547702]=_0x3c2112[_0x547702]['concat'](_0x3c2112[_0x5895e6]),_0x3c2112[_0x5895e6]=[];}for(const _0x187829 of _0x3c2112)for(let _0xb7067=0x0;_0xb7067<_0x187829['length'];_0xb7067++)_0x187829[_0xb7067]['next']=_0x187829[_0xb7067+0x1]||null;for(const _0x2a1bf1 of _0x3c2112)for(let _0x4320b9=0x0;_0x4320b9<_0x2a1bf1['length'];_0x4320b9++)_0x2a1bf1[_0x4320b9]['previous']=_0x2a1bf1[_0x4320b9-0x1]||null;function _0x2ad901(_0x69e622,_0x120f53){if(_0x69e622[0x0]['attributes']['groupId']!==_0x120f53[0x0]['attributes']['groupId']&&_0x69e622[0x0]['author']!==_0x120f53[0x0]['author'])return!0x1;if(!function(_0x29cf00,_0x4bd187){if(!_0x29cf00['hasComments']&&!_0x4bd187['hasComments'])return!0x0;if(_0x29cf00['hasComments']&&_0x4bd187['hasComments'])return!0x1;if(_0x29cf00['hasComments']&&_0x4bd187['createdAt']<_0x29cf00['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4bd187['hasComments']&&_0x29cf00['createdAt']<_0x4bd187['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x69e622[0x0],_0x120f53[0x0]))return!0x1;const _0x31644f=Bt(_0x69e622[0x0]['attributes'],'groupId'),_0x164c7e=Bt(_0x120f53[0x0]['attributes'],'groupId');if(!_0x1b166e(_0x31644f,_0x164c7e))return!0x1;return!!_0x69e622['every'](_0x96350=>_0x120f53['some'](_0x206e31=>_0x96350['getFirstRange']()['isEqual'](_0x206e31['getFirstRange']())))&&_0x120f53['every'](_0x244879=>_0x69e622['some'](_0xa729ac=>_0x244879['getFirstRange']()['isEqual'](_0xa729ac['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5751b6){const _0x16a349=Array['from'](_0x5751b6),_0x3cb396=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a1893=_0x3cb396['filter'](_0x4c4032=>!_0x5751b6['has'](_0x4c4032)),_0x232518=new Map(_0x16a349['map'](_0x458352=>[_0x458352,this['_suggestionFactory']['getSuggestionCallback'](_0x458352['type'],_0x458352['subType'],'join')])),_0x59c74f=new Map(_0x3cb396['map'](_0x566fe5=>[_0x566fe5,_0x566fe5['getRanges']()]));for(let _0x3a4bbc=0x0;_0x3a4bbc<_0x16a349['length'];_0x3a4bbc++){if(_0x4c4ed5(this,_0x16a349[_0x3a4bbc],_0x16a349,_0x3a4bbc+0x1))return!0x0;}for(let _0x318c7e=0x0;_0x318c7e<_0x16a349['length'];_0x318c7e++){if(_0x4c4ed5(this,_0x16a349[_0x318c7e],_0x4a1893,0x0))return!0x0;}return!0x1;function _0x4c4ed5(_0x4bcaa6,_0x114b36,_0x4ced05,_0x3716bf){for(let _0x3d5607=_0x3716bf;_0x3d5607<_0x4ced05['length'];_0x3d5607++){const _0x295c63=_0x4ced05[_0x3d5607];if(_0x295c63['type']!==_0x114b36['type']||_0x295c63['author']['id']!==_0x114b36['author']['id']||_0x295c63['subType']!==_0x114b36['subType'])continue;if(!Pt(_0x114b36,_0x295c63,['groupId']))continue;if('attribute'==_0x114b36['type']&&_0x114b36['data']['oldValue']!=_0x295c63['data']['oldValue'])continue;if('attribute'==_0x114b36['type']&&_0x4bcaa6['_isBlockAttribute'](_0x114b36['data']['key']))continue;if('formatBlock'==_0x114b36['type']){const _0x5a68d7=_0x4bcaa6['editor']['model'],_0x11cb14=_0x114b36['getContainedElement']();if(_0x11cb14&&(_0x5a68d7['schema']['isObject'](_0x11cb14)||_0x5a68d7['schema']['isLimit'](_0x11cb14)))continue;}const _0x48c1b5=_0x232518['get'](_0x114b36),_0x39846b=_0x59c74f['get'](_0x114b36),_0x53d7a1=_0x59c74f['get'](_0x295c63),_0x3d7563=_0x114b36['commentThread']&&_0x114b36['commentThread']['length'],_0x474211=_0x295c63['commentThread']&&_0x295c63['commentThread']['length'];if(!_0x3d7563&&_0x48c1b5(_0x53d7a1,_0x39846b))return _0x4bcaa6['_joinSuggestions'](_0x295c63,_0x114b36),_0x59c74f['delete'](_0x114b36),!0x0;if(!_0x474211&&_0x48c1b5(_0x39846b,_0x53d7a1))return _0x4bcaa6['_joinSuggestions'](_0x114b36,_0x295c63),_0x59c74f['delete'](_0x295c63),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1cf51f,_0xa54aa1){if(_0x1cf51f['isMultiRange']){for(const _0xb186b of _0xa54aa1['getRanges']())_0x1cf51f['addRange'](_0xb186b);}else{const _0x1b1d85=_0xa54aa1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1cf51f,this['_model']['createRange'](_0x1cf51f['getFirstRange']()['start'],_0x1b1d85));}_0xa54aa1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3df145,_0x3d45fa){const _0x47badf=_0x3df145['startsWith']('format')||_0x3df145['startsWith']('attribute')?'FORMATTING':_0x3df145['toUpperCase']();return o(this['editor']['locale'],_0x3d45fa+'_'+_0x47badf+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x13f045=this['editor'];if(!_0x13f045['ui'])return;const {ariaLiveAnnouncer:_0xb1d283}=_0x13f045['ui'];_0x461911(this['_model'],({left:_0x5d2e2c,entered:_0x39ca30})=>{for(const _0x25ac86 of _0x5d2e2c){const {group:_0x1e2c23,type:_0x23276f}=this['_splitMarkerName'](_0x25ac86['name']);if('suggestion'===_0x1e2c23){_0xb1d283['announce'](this['_getMarkerAnnouncementText'](_0x23276f,'LEAVE'));break;}}for(const _0x546979 of _0x39ca30){const {group:_0x5270ca,type:_0x5f480c}=this['_splitMarkerName'](_0x546979['name']);if('suggestion'===_0x5270ca){_0xb1d283['announce'](this['_getMarkerAnnouncementText'](_0x5f480c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x530f8d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x416545=this['editor'],_0x250177=_0x416545['model']['document']['differ']['getChanges']();if(0x0==_0x250177['length'])return!0x1;const _0x3c0894=[],_0x3ea580=_0x250177['filter'](_0x6ca64e=>'attribute'==_0x6ca64e['type']),_0x4c45bc=_0x250177['filter'](_0x288b23=>'insert'==_0x288b23['type']&&'$text'!=_0x288b23['name']),_0x24864f=_0x250177['filter'](_0x6b9dba=>'remove'==_0x6b9dba['type']&&'$text'!=_0x6b9dba['name']);for(const _0x32a4c1 of _0x3ea580)_0x3c0894['push']({'key':_0x32a4c1['attributeKey'],'newValue':_0x32a4c1['attributeNewValue'],'oldValue':_0x32a4c1['attributeOldValue'],'range':Ot(_0x32a4c1['range'],_0x416545['model'])});for(const _0x2c8760 of _0x4c45bc){const _0x2175d7=_0x24864f['find'](_0x1280b1=>_0x1280b1['position']['isEqual'](_0x2c8760['position']));_0x2175d7&&_0x3c0894['push']({'key':m,'newValue':_0x2c8760['name'],'oldValue':_0x2175d7['name'],'range':_0x416545['model']['createRangeOn'](_0x2c8760['position']['nodeAfter'])});}return 0x0!=_0x3c0894['length']&&this['_reduceExistingSuggestions'](_0x530f8d,_0x3c0894);}['_processAttributeSuggestions'](_0x58e634){let _0x3539bd=!0x1;const _0x24d07f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49a696=>_0x49a696['data']['newRange']&&_0x49a696['name']['startsWith']('suggestion:attribute:'));for(const _0x2250aa of _0x24d07f){const {subType:_0x5edf85,id:_0x183104}=this['_splitMarkerName'](_0x2250aa['name']),_0xf964f1=_0x5edf85['split']('|')[0x0];for(const _0x21363e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x21363e['id']!=_0x183104&&'attribute'==_0x21363e['type']&&_0x21363e['data']&&_0x21363e['data']['key']==_0xf964f1&&_0x21363e['getFirstRange']()['isIntersecting'](_0x2250aa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x21363e,_0x2250aa['data']['newRange'],_0x58e634),_0x3539bd=!0x0);}return _0x3539bd;}['_recordAttributeChanges'](_0x20b571){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x20b571();}['_isRegisteredAttribute'](_0x4a2bcd){const _0x222a0a=this['_isBlockAttribute'](_0x4a2bcd),_0x5a93c2=this['_inlineAttributeKeys']['has'](_0x4a2bcd);return _0x222a0a||_0x5a93c2;}['_reduceExistingSuggestions'](_0x2ca477,_0x5330a9){if(0x0==_0x5330a9['length'])return!0x1;let _0x3ff38d=!0x1;for(const _0x57aec2 of _0x5330a9){const _0x3f084f=this['_findSuggestions'](_0x57aec2['range'],'attribute')['filter'](_0x1031b6=>!_0x1031b6['meta']['isNextTo'])['map'](_0x3d68d8=>_0x3d68d8['suggestion']),_0x3ff1cf=_0xf37622({'newValue':_0x57aec2['newValue']});_0x3f084f['filter'](_0x5ee1fa=>{const [_0x410e56,_0x38b357]=_0x5ee1fa['subType']['split']('|');return _0x410e56==_0x57aec2['key']&&_0x38b357!=_0x3ff1cf;})['forEach'](_0x4a374c=>{this['_reduceSuggestionAttributeRange'](_0x4a374c,_0x57aec2['range'],_0x2ca477),_0x3ff38d=!0x0;});}return _0x3ff38d;}['_reduceSuggestionAttributeRange'](_0x1f3bca,_0x532e9a,_0x50c785){const _0x5ae4ea=_0x1f3bca['getFirstRange']()['getDifference'](_0x532e9a);0x0!==_0x5ae4ea['length']?0x1!==_0x5ae4ea['length']?this['_breakSuggestionMarker'](_0x1f3bca,_0x532e9a['start'],_0x532e9a['end']):this['_setSuggestionRange'](_0x1f3bca,_0x5ae4ea[0x0]):_0x50c785['removeMarker'](_0x1f3bca['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ba688){this['_editor']=_0x5ba688,this['_model']=_0x5ba688['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x15d4f6,_0x2225e8,_0x254887,_0x17052f,_0x21b97d,_0x177807){return new u(this['_model'],{'type':_0x15d4f6,'subType':_0x2225e8,'id':_0x254887,'author':_0x17052f,'creator':_0x17052f,'attributes':_0x21b97d,'onAttributesChange':_0x177807,'onAccept':(..._0x40a72f)=>this['getSuggestionCallback'](_0x15d4f6,_0x2225e8,'accept')(..._0x40a72f),'onDiscard':(..._0x59c3f6)=>this['getSuggestionCallback'](_0x15d4f6,_0x2225e8,'discard')(..._0x59c3f6)});}['registerCustomCallback'](_0x1b2093,_0x55202a,_0x4274b3,_0x2e1703){const _0x59aa12=_0x1b2093+':'+_0x55202a+':'+_0x4274b3;this['_customCallbacks']['set'](_0x59aa12,_0x2e1703);}['getSuggestionCallback'](_0x3ef4b6,_0xe819c8,_0x55d80f){const _0xf3ee9b=_0x3ef4b6+':'+_0xe819c8+':'+_0x55d80f;return this['_customCallbacks']['get'](_0xf3ee9b)||this['_defaultCallbacks']['get'](_0x3ef4b6+':'+_0x55d80f);}['_registerDefaultCallbacks'](){const _0x1ecc06=()=>!0x1,_0x20ef0c=_0x4464b8=>{_0x4464b8['sort']((_0xf97649,_0x135ec5)=>_0xf97649['start']['isBefore'](_0x135ec5['start'])?0x1:-0x1),this['_model']['change'](_0x1f6748=>{for(const _0xb8aa6a of _0x4464b8){let _0x43d722;_0x43d722=_0xb8aa6a['end']['isAtEnd']&&_0xb8aa6a['end']['parent']==_0xb8aa6a['start']['nodeAfter']?_0x1f6748['createSelection'](_0xb8aa6a['start']['nodeAfter'],'on'):_0x1f6748['createSelection'](_0xb8aa6a),this['_model']['deleteContent'](_0x43d722,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f0d08=(_0x17dcdd,_0x480a71)=>{_0x480a71&&this['_model']['change'](_0x454edf=>{const {commandName:_0x274c57,commandParams:_0x4c7264=[]}=_0x480a71,_0x66f102=_0x17dcdd['map'](_0x5ba1b8=>(Tt(_0x5ba1b8)&&(_0x5ba1b8=this['_model']['createRange'](_0x5ba1b8['end'])),_0x5ba1b8))['filter'](_0x43e6ef=>'$graveyard'!==_0x43e6ef['root']['rootName']);if(_0x66f102['length']<0x1)return;const _0x1bb375=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x29ae35=>_0x2e923c['fromRange'](_0x29ae35));_0x454edf['setSelection'](_0x66f102);for(const _0x4f779d of this['_editor']['commands']['commands']())_0x4f779d['refresh']();_0x4c7264['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x274c57,..._0x4c7264);const _0x11142b=_0x1bb375['filter'](_0xbf7cd7=>'$graveyard'!=_0xbf7cd7['root']['rootName']);_0x11142b['length']>0x0&&_0x454edf['setSelection'](_0x11142b);for(const _0xc5193a of _0x1bb375)_0xc5193a['detach']();});},_0x588770=(_0x5706e2,_0x3e5cf2)=>0x1==_0x5706e2['length']&&0x1==_0x3e5cf2['length']&&_0x5706e2[0x0]['end']['isEqual'](_0x3e5cf2[0x0]['start']),_0x39df47=(_0x3c106e,_0x33b2a6,_0x2ef42c,_0x536b0d)=>Ft(_0x3c106e,_0x33b2a6,_0x2ef42c,_0x536b0d,this['_model'])?[_0x3c106e,_0x33b2a6]:Ft(_0x33b2a6,_0x3c106e,_0x536b0d,_0x2ef42c,this['_model'])?[_0x33b2a6,_0x3c106e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1ecc06),this['_defaultCallbacks']['set']('insertion:discard',_0x20ef0c),this['_defaultCallbacks']['set']('insertion:join',_0x588770),this['_defaultCallbacks']['set']('insertion:chain',_0x39df47),this['_defaultCallbacks']['set']('deletion:accept',_0x20ef0c),this['_defaultCallbacks']['set']('deletion:discard',_0x1ecc06),this['_defaultCallbacks']['set']('deletion:join',_0x588770),this['_defaultCallbacks']['set']('deletion:chain',_0x39df47),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f0d08),this['_defaultCallbacks']['set']('formatInline:discard',_0x1ecc06),this['_defaultCallbacks']['set']('formatInline:join',_0x588770),this['_defaultCallbacks']['set']('formatInline:chain',_0x1ecc06),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f0d08),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1ecc06),this['_defaultCallbacks']['set']('formatBlock:join',_0x588770),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1ecc06),this['_defaultCallbacks']['set']('attribute:accept',_0x1ecc06),this['_defaultCallbacks']['set']('attribute:discard',(_0x1a9009,_0x275aca)=>{if(!_0x275aca)return;const _0x39a23e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x10a455=>{if(_0x275aca['key']==m)for(const _0x45b676 of _0x1a9009){const _0x520136=_0x45b676['start']['nodeAfter'],_0x3397ea=_0x275aca['oldValue'];_0x10a455['rename'](_0x520136,_0x3397ea);}else{if(_0x39a23e['_isBlockAttribute'](_0x275aca['key'])){for(const _0x22bc4e of _0x1a9009)void 0x0!==_0x275aca['oldValue']?_0x10a455['setAttribute'](_0x275aca['key'],_0x275aca['oldValue'],_0x22bc4e['start']['nodeAfter']):_0x10a455['removeAttribute'](_0x275aca['key'],_0x22bc4e['start']['nodeAfter']);}else{for(const _0x3e5dee of _0x1a9009)_0x275aca['oldValue']?_0x10a455['setAttribute'](_0x275aca['key'],_0x275aca['oldValue'],_0x3e5dee):_0x10a455['removeAttribute'](_0x275aca['key'],_0x3e5dee);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x588770);}}function Rt(_0x312b7c,_0x48e265,_0x1e0853){for(const _0x5f47a4 of _0x48e265['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f47a4['root']==_0x5f47a4)return!0x1;if(!_0x1e0853['containsItem'](_0x5f47a4))return!0x1;if(_0x312b7c['isObject'](_0x5f47a4)||_0x312b7c['isLimit'](_0x5f47a4))return!0x0;}return!0x1;}function Tt(_0x1b3ab6){return _0x1b3ab6['end']['parent']==_0x1b3ab6['start']['nodeAfter']&&_0x1b3ab6['end']['isAtStart'];}function Et(_0x359b8d,_0x139b76,_0x4aaaa1,_0x1de66d){const _0x80d4fe=_0x5a3457=>!_0x5a3457['item']['is']('$textProxy')&&!_0x1de66d['isObject'](_0x5a3457['item']),_0x3ed86e=_0x359b8d['start']['getLastMatchingPosition'](_0x80d4fe),_0x5a9014=_0x359b8d['end']['getLastMatchingPosition'](_0x80d4fe,{'direction':'backward'});return(!_0x359b8d['start']['isEqual'](_0x3ed86e)||!_0x359b8d['end']['isEqual'](_0x5a9014))&&(_0x3ed86e['isBefore'](_0x5a9014)?_0x4aaaa1['updateMarker'](_0x139b76,{'range':_0x4aaaa1['createRange'](_0x3ed86e,_0x5a9014)}):_0x4aaaa1['removeMarker'](_0x139b76),!0x0);}function Vt(_0x527119){return _0xf37622(_0x527119);}function Ut(_0xee4ec2){const _0x5f4274=_0xee4ec2['start']['nodeAfter'];return _0x5f4274&&_0x5f4274['is']('element');}function Ot(_0x4e5307,_0x3d981d){return null==_0x4e5307['end']['nodeBefore']&&_0x4e5307['end']['parent']==_0x4e5307['start']['nodeAfter']?Gt(_0x4e5307['start']['nodeAfter'],_0x3d981d):_0x4e5307;}function Gt(_0x5347d4,_0x1e241d){const _0x1ba736=_0x1e241d['schema']['isObject'](_0x5347d4)||_0x1e241d['schema']['isSelectable'](_0x5347d4);return _0x1e241d['createRange'](_0x1e241d['createPositionAt'](_0x5347d4,'before'),_0x1ba736?_0x1e241d['createPositionAfter'](_0x5347d4):_0x1e241d['createPositionAt'](_0x5347d4,'end'));}function Ft(_0x3fe82f,_0x8d4f6f,_0x236b9d,_0x216ec5,_0x2eeedb){if(!Pt(_0x3fe82f,_0x8d4f6f))return!0x1;if(_0x236b9d['end']['isEqual'](_0x216ec5['start']))return!0x0;if(_0x3fe82f['type']!=_0x8d4f6f['type'])return!0x1;if(!_0x236b9d['end']['isTouching'](_0x216ec5['start']))return!0x1;const _0x47f8be=_0x2eeedb['createRange'](_0x236b9d['end'],_0x216ec5['start'])['getWalker']();for(const _0x3e6e04 of _0x47f8be)if(['elementStart','elementEnd']['includes'](_0x3e6e04['type'])&&_0x2eeedb['schema']['isLimit'](_0x3e6e04['item']))return!0x1;return!0x0;}function Pt(_0x2eef8d,_0x55fa5d,_0x4e3f25=[]){return!(!_0x2eef8d['_isDataLoaded']||!_0x55fa5d['_isDataLoaded'])&&_0x1b166e(Bt(_0x2eef8d['attributes'],_0x4e3f25),Bt(_0x55fa5d['attributes'],_0x4e3f25));}function Lt(_0x2a0f83,_0x56741d){const _0x84b800=Ht(_0x2a0f83['attributes']),_0x251b3e=Ht(_0x56741d);if(!_0x2a0f83['_isDataLoaded'])return!0x1;for(const _0x56ab81 of Object['keys'](_0x251b3e))if(!_0x1b166e(_0x84b800[_0x56ab81],_0x251b3e[_0x56ab81]))return!0x1;return!0x0;}function Ht(_0xa509df){const _0x2ff3ab=Object['assign']({},_0xa509df);return delete _0x2ff3ab['skipNestingCheck'],delete _0x2ff3ab['tablePasteChainId'],_0x2ff3ab;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x50b673(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x11a3fc,_0x32738c,_0x445615,_0x3db181){super(),this['model']=_0x32738c,this['view']=_0x445615,this['commentThreadController']=_0x3db181,this['_editor']=_0x11a3fc,this['_acceptCommand']=_0x11a3fc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x11a3fc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x83d821,_0x2de122)=>_0x83d821||_0x2de122),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3eede6=>_0x3eede6&&this['_editor']['model']['canEditAt'](_0x32738c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d1125=>_0x2d1125&&this['_editor']['model']['canEditAt'](_0x32738c['getRanges']())),this['_pendingAction']=null,_0x445615['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x445615,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x445615,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x445615,'change:isDirty',()=>{_0x445615['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x272599=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x272599);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x18a39e{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2189a8,_0x11c2eb,_0x2c3d05,_0x58e520){super(_0x2189a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x11c2eb['authoredAt']),this['bind']('authoredAt')['to'](_0x11c2eb),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x11c2eb,this['_localUser']=_0x2c3d05,this['_config']=_0x58e520,_0x58e520['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3c4b2d}=this['_config'];this['commentsListView']=new _0x3c4b2d(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x47e42e=>_0x47e42e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x282d94,_0x40c00a)=>_0x282d94||!!_0x40c00a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d7204}=this['_config'],_0x46abf9=new _0x1d7204(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4981b8=_0x46abf9['commentInputView'];return _0x46abf9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4981b8,'value',(_0x29a154,_0x347da0,_0xcf9ec8)=>!!_0xcf9ec8||_0x29a154&&!_0x347da0),_0x4981b8['on']('submit',(_0x54c4e6,_0x13ab71)=>{this['fire']('addComment',_0x13ab71),_0x4981b8['editor']['setData']('');}),_0x4981b8['on']('cancel',()=>this['focus']()),_0x4981b8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x46abf9;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x167844,_0x3ea4ba,_0x35f7f9,_0x54cc4e){super(_0x167844,_0x3ea4ba,_0x35f7f9,_0x54cc4e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5b05b1=>_0x5b05b1&&_0x5b05b1[0x0]?_0x5b05b1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x27af6f,_0x55cf5d)=>{let _0x2fca8c='';for(const _0x277584 of _0x27af6f)_0x2fca8c+='<p>'+ds(_0x277584['content'],_0x277584['color'])+'</p>';return _0x55cf5d?_0x2fca8c:_0x1eb056(_0x2fca8c,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x167844,'Accept\x20suggestion'),_0x55c165['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x167844,'Discard\x20suggestion'),_0x55c165['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x321001(_0x167844,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2ae477=this['bindTemplate'],_0x596aed=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2ae477['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ae477['to']('authoredAt',_0x11f99f=>this['_config']['formatDateTime'](_0x11f99f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x596aed['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5575f0={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2ae477['if']('isActive','ck-suggestion-wrapper--active'),_0x2ae477['to']('type',_0x3297ef=>'ck-suggestion-'+_0x3297ef),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x596aed}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5575f0['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x5575f0;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x36c5cd,_0xad13a5,_0x217bc)=>{this['_descriptionElement']['innerHTML']=_0x217bc;});}['_createButton'](_0x3c8969,_0x4205a2,_0x3e7dd8,_0xef0ee1,_0x3499be){const _0x1fc5ce=new _0x37aa4e(this['locale']);return _0x1fc5ce['set']({'label':_0x3c8969,'icon':_0x4205a2,'tooltip':!0x0,'tooltipPosition':_0x3499be}),_0x1fc5ce['extendTemplate']({'attributes':{'class':_0x3e7dd8}}),_0x1fc5ce['on']('execute',()=>{this['fire'](_0xef0ee1,this['_model']['id']);}),_0x1fc5ce;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x5e42eb,_0x38a96f){let _0x3da075='';return _0x3da075+=_0x5e42eb['split']('*')['map']((_0x18c434,_0x4d1eef)=>_0x4d1eef%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x18c434)+'</span>':us(_0x18c434))['join'](''),_0x38a96f&&(_0x3da075+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x38a96f['value']+'\x22\x20title=\x22'+_0x38a96f['title']+'\x22></span>'),_0x3da075;}function us(_0x7ef063){const _0x12003b=document['createElement']('span');return _0x12003b['innerText']=_0x7ef063,_0x12003b['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x3b57f6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x17c546,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xfe842b){super(_0xfe842b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f96b0=this['editor']['config'];_0x3f96b0['define']('trackChanges.SuggestionThreadView',ne),_0x3f96b0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f96b0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f59ee,_0x2e0d34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x417e80,_0x60e281]of this['_handleControllerBuffer']){const _0x1754c6=this['_suggestionToController']['has'](_0x417e80);_0x1754c6||_0x60e281?_0x1754c6&&_0x60e281&&this['_destroyController'](_0x417e80):this['_initializeController'](_0x417e80);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f59ee,_0x2e0d34);}['init'](){const _0x16b763=this['editor'],_0x10f15c=_0x16b763['plugins']['get']('TrackChangesEditing'),_0x31bd7a=_0x16b763['plugins']['get']('Annotations'),_0x1f55c1=_0x16b763['plugins']['get']('EditorAnnotations'),_0x4ad49d=_0x16b763['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f55c1['addSourceCollector'](()=>{const _0x2b1572=[];for(const [_0x184f14,_0x4b4a27]of Array['from'](this['_suggestionToController'])){const _0x23b1c4=_0x184f14['getAllAdjacentSuggestions'](),_0x15d874=[];for(const _0x23f6ea of _0x23b1c4){if(!_0x23f6ea['isInContent'])continue;if(_0x23f6ea['isMultiRange']){_0x15d874['push'](..._0x23f6ea['getRanges']());continue;}const _0x3a1611=_0x23f6ea['getFirstRange']();if(_0x15d874['length']>0x0){const _0x48cf89=_0x15d874[0x0]['getJoined'](_0x3a1611);if(_0x48cf89){_0x15d874[0x0]=_0x48cf89;continue;}}_0x15d874['push'](_0x3a1611);}_0x2b1572['push']([_0x4b4a27['view'],_0x15d874]);}return _0x2b1572;}),this['listenTo'](_0x10f15c,'suggestionLoaded',(_0x57d604,_0x18a7d3)=>{this['listenTo'](_0x18a7d3,'change:previous',(_0x4dcec3,_0x32c6d1,_0x504c76,_0x2d372b)=>{_0x18a7d3['isInContent']&&(null==_0x504c76?(this['_updateController'](_0x2d372b['head']),this['_handleSuggestionControllerDelayed'](_0x18a7d3,!0x1)):(this['_updateController'](_0x504c76['head']),null==_0x2d372b&&this['_handleSuggestionControllerDelayed'](_0x18a7d3,!0x0)));}),null!==_0x18a7d3['previous']?this['_updateController'](_0x18a7d3['head']):this['_handleSuggestionControllerDelayed'](_0x18a7d3,!0x1);}),this['listenTo'](_0x10f15c,'suggestionUnloaded',(_0x352823,_0x2d6a0e,_0x1f1edd)=>{this['stopListening'](_0x2d6a0e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d6a0e),this['_suggestionToController']['has'](_0x2d6a0e)&&this['_destroyController'](_0x2d6a0e),_0x1f1edd&&this['_updateController'](_0x1f1edd['head']);}),this['listenTo'](_0x10f15c,'suggestionChanged',(_0x40c1cf,_0x50fcdd)=>{this['_updateController'](_0x50fcdd);}),this['listenTo'](_0x31bd7a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ad49d,'addComment',(_0x3aff1d,{threadId:_0xa8485d,isFromAdapter:_0x3f24e0})=>{if(_0x3f24e0||!_0x10f15c['hasSuggestion'](_0xa8485d))return;const _0x3308e0=_0x10f15c['getSuggestion'](_0xa8485d);this['_suggestionToController']['get'](_0x3308e0)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x40821f=this['editor']['plugins']['get']('Annotations'),_0x2dad04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x262e21=Array['from'](_0x40821f['activeAnnotations'],_0x162d99=>_0x162d99['innerView'])['filter'](_0x3a3535=>this['_viewToController']['has'](_0x3a3535)),_0x282bd1=[];for(const _0x545901 of _0x262e21){const _0xdf3083=this['_viewToController']['get'](_0x545901)['model']['getAllAdjacentSuggestions']();_0x282bd1['push'](..._0xdf3083['reduce']((_0x5611e7,_0x27d23b)=>[..._0x5611e7,..._0x27d23b['getMarkerNames']()],[]));}_0x2dad04['activeMarkers']=_0x282bd1;}['_addUIComponentsToFactory'](){const _0xe1a703=this['editor'],_0x575e58=_0xe1a703['locale'],_0x40a4c4=o(_0x575e58,'Track\x20changes'),_0x62cf6c=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x40a4c4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x575e58,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2bc501 of _0x62cf6c)if(ae(_0x2bc501)){const _0x190c9d=_0xe1a703['commands']['get'](_0x2bc501['model']['commandName']);_0x2bc501['model']['bind']('isOn','isEnabled')['to'](_0x190c9d,'value','isEnabled');}_0xe1a703['ui']['componentFactory']['add']('trackChanges',_0x4c6768=>this['_createToolbarButton'](_0x4c6768,_0x62cf6c,_0x40a4c4)),_0xe1a703['ui']['componentFactory']['add']('menuBar:trackChanges',_0x41eb80=>this['_createMenuBarMenu'](_0x41eb80,_0x62cf6c,_0x40a4c4));}['_createToolbarButton'](_0x5274fe,_0x396e6d,_0x5eed33){const _0x375e47=zt(_0x5274fe,Zt),_0xdf1b5e=this['editor']['commands']['get']('trackChanges');_0x375e47['buttonView']['set']({'tooltip':_0x5eed33,'label':_0x5eed33,'icon':ie}),_0x375e47['buttonView']['bind']('isOn')['to'](_0xdf1b5e,'value'),_0x375e47['buttonView']['on']('execute',()=>{_0xdf1b5e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x375e47,_0x396e6d,{'role':'menu'});const _0x42a404=[];for(const _0x2db04e of _0x396e6d)ae(_0x2db04e)&&_0x42a404['push'](this['editor']['commands']['get'](_0x2db04e['model']['commandName']));const _0x280569=_0x375e47['buttonView'];return _0x280569['actionView']['unbind']('isEnabled'),_0x280569['arrowView']['unbind']('isEnabled'),_0x280569['actionView']['bind']('isEnabled')['to'](_0xdf1b5e,'isEnabled'),_0x280569['arrowView']['bind']('isEnabled')['toMany'](_0x42a404,'isEnabled',(..._0x354c9d)=>_0x354c9d['some'](_0x12d8dd=>_0x12d8dd)),_0x375e47['on']('execute',_0xe70b89=>{this['editor']['execute'](_0xe70b89['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x375e47;}['_createMenuBarMenu'](_0x1bd0ad,_0x383cfd,_0x1958f2){const _0x369694=new Kt(_0x1bd0ad),_0x1413d7=this['editor']['commands']['get']('trackChanges');_0x369694['buttonView']['set']({'label':_0x1958f2,'icon':ie});const _0x3741e7=new Qt(_0x1bd0ad);for(const _0xf58027 of _0x383cfd){if('separator'==_0xf58027['type']){_0x3741e7['items']['add'](new Jt(_0x1bd0ad));continue;}const _0x32e643=new Xt(_0x1bd0ad,_0x369694),_0x2ed996=new Yt(_0x1bd0ad),_0x4dab81=_0xf58027['model'];_0x2ed996['bind'](...Object['keys'](_0x4dab81))['to'](_0x4dab81),_0x2ed996['delegate']('execute')['to'](_0x369694),_0x2ed996['on']('execute',()=>{this['editor']['execute'](_0x4dab81['commandName']),this['editor']['editing']['view']['focus']();}),_0x32e643['children']['add'](_0x2ed996),_0x3741e7['items']['add'](_0x32e643);}return _0x369694['bind']('isEnabled')['to'](_0x1413d7,'isEnabled'),_0x369694['panelView']['children']['add'](_0x3741e7),_0x369694;}['_initializeController'](_0x5a0616){const _0x144540=this['editor'],_0x27746c=_0x144540['config'],_0x492544=_0x144540['plugins']['get']('Annotations'),_0x1ca49a=_0x144540['plugins']['get']('CommentsRepository'),_0x3be44b=_0x144540['plugins']['get']('EditorAnnotations'),_0x392e85=_0x144540['plugins']['get'](_0x17c546)['me'],_0x354448=_0x27746c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x759fac,CommentThreadInputView:_0x3cc315}=_0x144540['plugins']['get']('CommentsUI');let _0x3c0f11,_0x7fe903;this['_annotationViews']['has'](_0x5a0616['id'])?(_0x7fe903=this['_annotationViews']['get'](_0x5a0616['id']),_0x3c0f11=_0x7fe903['mainView']):(_0x3c0f11=new _0x354448(_0x144540['locale'],_0x5a0616,_0x392e85,{'disableComments':this['_disableComments'],'editorConfig':_0x27746c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x27746c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27746c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27746c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2022c8(_0x27746c['get']('locale')),'CommentView':_0x27746c['get']('comments')['CommentView'],'CommentsListView':_0x759fac,'CommentThreadInputView':_0x3cc315}),_0x3c0f11['acceptButton']['on']('execute',()=>{_0x144540['editing']['view']['focus']();}),_0x3c0f11['discardButton']['on']('execute',()=>{_0x144540['editing']['view']['focus']();}),_0x7fe903=_0x492544['createAnnotationView'](this['editor']['locale'],_0x3c0f11),_0x7fe903['bind']('isDirty')['to'](_0x3c0f11,'isDirty'),_0x7fe903['bind']('length')['to'](_0x3c0f11),_0x7fe903['bind']('type')['to'](_0x3c0f11,'type',_0xde9249=>'suggestion-'+_0xde9249),this['_annotationViews']['set'](_0x5a0616['id'],_0x7fe903));const _0x3079b8=_0x1ca49a['createCommentThreadController'](_0x5a0616['commentThread'],_0x3c0f11),_0x39cf4a=new oe(_0x144540,_0x5a0616,_0x3c0f11,_0x3079b8),_0x2fff7d=_0x5a0616['getAllAdjacentSuggestions']()['filter'](_0x136242=>_0x136242['isInContent']);_0x3c0f11['descriptionParts']=_0x144540['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2fff7d),this['_suggestionToController']['set'](_0x5a0616,_0x39cf4a),this['_viewToController']['set'](_0x3c0f11,_0x39cf4a);const _0x2a599f=_0x492544['createAnnotation']({'view':_0x7fe903,'target':()=>{const _0x3ac414=[],_0x370655=_0x5a0616['getAllAdjacentSuggestions']()['filter'](_0x473049=>_0x473049['isInContent']);for(const _0x4d9de6 of _0x370655)_0x3ac414['push'](..._0x4d9de6['getMarkers']());return _0x357ffb(_0x144540['editing'],_0x3ac414);},'type':()=>'suggestion-'+_0x39cf4a['view']['type']});_0x1ca49a['_bindAnnotationToEditors'](_0x3c0f11,_0x2a599f),_0x492544['add'](_0x2a599f),_0x3be44b['registerAnnotation'](_0x2a599f);}['_destroyController'](_0x855571){const _0x52c66d=this['editor']['plugins']['get']('CommentsRepository'),_0x93867b=this['editor']['plugins']['get']('Annotations'),_0x39176d=this['_suggestionToController']['get'](_0x855571),_0x7cdda1=_0x39176d['view'],_0x4abd76=_0x93867b['getByInnerView'](_0x7cdda1);_0x52c66d['_unbindEditors'](_0x7cdda1),_0x4abd76&&_0x93867b['remove'](_0x4abd76),this['_suggestionToController']['delete'](_0x855571),this['_viewToController']['delete'](_0x7cdda1),_0x39176d['destroy']();}['_updateController'](_0x52ce76){if(!_0x52ce76['isInContent']||!this['_suggestionToController']['has'](_0x52ce76))return;const _0xb24bc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4005d5=this['_suggestionToController']['get'](_0x52ce76),_0x1b9a7d=_0x52ce76['getAllAdjacentSuggestions']();_0x4005d5['view']['descriptionParts']=_0xb24bc4['descriptionFactory']['getDescriptions'](_0x1b9a7d);}['destroy'](){for(const _0x39f518 of this['_suggestionToController']['keys']())this['_destroyController'](_0x39f518);for(const _0x8b7afe of this['_annotationViews']['values']())_0x8b7afe['mainView']['destroy']();super['destroy']();}}function ae(_0x2d4fce){return'model'in _0x2d4fce;}class k extends _0x3b57f6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xa277e9){this['editor']['plugins']['get'](p)['adapter']=_0xa277e9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x501095){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x501095);}['getSuggestions']({skipNotAttached:_0xcf6606=!0x1,toJSON:_0x2dbf0c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xcf6606,'toJSON':_0x2dbf0c});}['getSuggestion'](_0x58473e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x58473e);}}const T=['Pagination'];class P extends _0x3b57f6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x48cbe0=this['editor'];if(_0x48cbe0['config']['define']('trackChangesData.editorCreator',_0x5af644=>{const _0x3a8fe2=_0x48cbe0['model']['document']['getRootNames']()['reduce']((_0x3072aa,_0x3b62c2)=>(_0x3072aa[_0x3b62c2]='',_0x3072aa),{});return _0x48cbe0['constructor']['create'](_0x3a8fe2,_0x5af644);}),'function'!=typeof _0x48cbe0['config']['get']('trackChangesData')['editorCreator'])throw new _0x144d61('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b630c){return N(this['editor'],!0x0,_0x5b630c);}['getDataWithDiscardedSuggestions'](_0xd3015e){return N(this['editor'],!0x1,_0xd3015e);}}class D extends _0x3b57f6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x510104){super(_0x510104),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x19106d){return void 0x0!==_0x19106d['getRootsAttributes'];}async function N(_0x1bd8c3,_0x46b60b,_0x5ed0aa){const _0x5c30de=_0x5469e8(_0x1bd8c3,T);_0x5c30de['plugins']['push'](p,D),_0x5c30de['rootsAttributes']=v(_0x1bd8c3)?_0x1bd8c3['getRootsAttributes']():void 0x0;const _0x1715fd=document['createDocumentFragment'](),_0x3af428=_0x1bd8c3['config']['get']('trackChangesData')['editorCreator'],_0x1c9ae7=await _0x3af428(_0x5c30de,()=>function(_0x1e9d99){const _0x2cbec6=document['createElement']('div');return _0x1e9d99['appendChild'](_0x2cbec6),_0x2cbec6;}(_0x1715fd));!function(_0x2140f3,_0x3d9800){const _0x558e1e=_0x2140f3['model']['document']['getRootNames']()['reduce']((_0x4d7ad2,_0x3a8203)=>(_0x4d7ad2[_0x3a8203]=_0x2140f3['data']['get']({'rootName':_0x3a8203}),_0x4d7ad2),{}),_0x3fabe=_0x2140f3['plugins']['get']('Users')['users']['map'](_0xebc0a2=>({'id':_0xebc0a2['id'],'name':_0xebc0a2['name']})),_0x10a590=_0x2140f3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45774a=_0x2140f3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfbde90=_0x3d9800['plugins']['get']('Users'),_0x4e3434=_0x3d9800['plugins']['get']('TrackChangesEditing'),_0xeecdbb=_0x3d9800['plugins']['get']('CommentsRepository');for(const _0x4633bc of _0x3fabe)_0xfbde90['getUser'](_0x4633bc['id'])||_0xfbde90['addUser'](_0x4633bc);_0xfbde90['me']||_0xfbde90['useAnonymousUser']();for(const _0x3e0733 of _0x45774a)_0xeecdbb['addCommentThread'](_0x3e0733);for(const _0x35d405 of _0x10a590)_0x4e3434['addSuggestionData'](_0x35d405);_0x3d9800['data']['set'](_0x558e1e);}(_0x1bd8c3,_0x1c9ae7),_0x1c9ae7['execute'](_0x46b60b?'acceptAllSuggestions':'discardAllSuggestions');const _0x398f02=v(_0x1c9ae7)?_0x1c9ae7['getFullData'](_0x5ed0aa):_0x1c9ae7['data']['get'](_0x5ed0aa);return await _0x1c9ae7['destroy'](),_0x398f02;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|