@ckeditor/ckeditor5-track-changes 43.2.0-alpha.1 → 43.2.0-alpha.2
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 +10 -10
- 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/mergefields.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/ui/view/suggestionview.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
|
-
_0x59481e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x58356d,_0x17e61c){super(),this['id']=_0x17e61c['id'],this['type']=_0x17e61c['type'],this['subType']=_0x17e61c['subType']||null,this['author']=_0x17e61c['author'],this['creator']=_0x17e61c['creator']||_0x17e61c['author'],this['isExternal']=Boolean(_0x17e61c['attributes']&&_0x17e61c['attributes']['@external']),this['data']=null,this['_model']=_0x58356d,this['_onAccept']=_0x17e61c['onAccept'],this['_onDiscard']=_0x17e61c['onDiscard'],this['_onAttributesChange']=_0x17e61c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17e61c['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 _0x35bac3=this;for(;_0x35bac3['previous'];)_0x35bac3=_0x35bac3['previous'];return _0x35bac3;}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'](_0x3031e0){this['_markerNames']['add'](_0x3031e0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x26b091=>this['_model']['markers']['get'](_0x26b091))['filter'](_0x153304=>_0x153304);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e1e2d=>{for(const _0x2618ec of this['getMarkers']())_0x2e1e2d['removeMarker'](_0x2618ec);}),this['_markerNames']['clear']();}['removeMarker'](_0x4d93df){this['_model']['change'](_0x1d620d=>{_0x1d620d['removeMarker'](_0x4d93df);}),this['_markerNames']['delete'](_0x4d93df);}['addRange'](_0x493a1f){const _0x58a412='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x58a412),this['_model']['change'](_0xa9993c=>{_0xa9993c['addMarker'](_0x58a412,{'range':_0x493a1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x20f763){for(const _0xcd5289 of this['getRanges']())if(_0xcd5289['isIntersecting'](_0x20f763))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3bb91b=>_0x3bb91b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x7c5a86,_0xbf036c)=>[..._0x7c5a86,..._0xbf036c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6a3973=this['getRanges']();if(0x1!=_0x6a3973['length'])return null;const _0x184b10=_0x6a3973[0x0],_0x1e565a=_0x184b10['start']['nodeAfter'],_0x4883e9=_0x184b10['end']['nodeBefore'];return _0x1e565a instanceof _0x3a3755?_0x1e565a!=_0x4883e9?null:_0x1e565a: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 _0x33bdee=[];let _0x23ccad=this['head'];for(;_0x23ccad;)_0x33bdee['push'](_0x23ccad),_0x23ccad=_0x23ccad['next'];return _0x33bdee;}['setAttribute'](_0x55623a,_0x4caa63){const _0x30ced6=_0x8033cf(this['attributes']);_0x120868(_0x30ced6,_0x55623a,_0x4caa63),_0x47c0f7(_0x30ced6,this['attributes'])||(this['attributes']=_0x30ced6,this['_onAttributesChange'](_0x30ced6));}['removeAttribute'](_0xc4a300){const _0x58369d=_0x8033cf(this['attributes']);_0x38c83a(_0x58369d,_0xc4a300),_0x47c0f7(_0x58369d,this['attributes'])||(this['attributes']=_0x58369d,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 _0x5790ee()['substr'](0x1,0x5);}}function o(_0x57a8be,_0x368923,_0x584658){const t=_0x57a8be['t'];switch(_0x368923){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',_0x584658);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x584658);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x584658);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x584658);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x584658);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',_0x584658);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x584658);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',_0x584658);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x584658);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x584658);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x584658);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x584658);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x584658);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x584658);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x584658);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x584658);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x584658);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x584658);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x584658);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x584658);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x584658);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x584658);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x584658);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'},_0x584658);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x584658);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x584658);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x584658);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x584658);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x584658);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'},_0x584658);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x584658);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x584658);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x584658);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x584658);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'},_0x584658);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x584658);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'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x584658);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'},_0x584658);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x584658);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x584658);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x584658);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'},_0x584658);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'},_0x584658);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x584658);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x584658);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x584658);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x584658);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x368923;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2fbbfa,_0x5b3541){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2fbbfa,this['_locale']=_0x5b3541;}['getDescriptions'](_0x131e10){const _0x2c4afc=[],_0x39c4e6=new Set(),_0x485276=new Set();for(let _0x2d9853=0x0;_0x2d9853<_0x131e10['length'];_0x2d9853++){const _0x1722ea=_0x131e10[_0x2d9853];if(!_0x1722ea['isInContent'])continue;const _0x2b4da7=this['_handleCustomCallbackDescription'](_0x1722ea);if(_0x2b4da7){if(null!=_0x1722ea['subType']){if(_0x39c4e6['has'](_0x1722ea['subType']))continue;_0x39c4e6['add'](_0x1722ea['subType']);}_0x2c4afc['push'](_0x2b4da7);}else{if('attribute'!=_0x1722ea['type'])'insertion'!=_0x1722ea['type']&&'deletion'!=_0x1722ea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c4afc,_0x1722ea,_0x131e10[_0x2d9853+0x1]);else{const _0x4510aa=_0x1722ea['data']['key'];if(_0x485276['has'](_0x4510aa))continue;_0x485276['add'](_0x1722ea['data']['key']),_0x4510aa==m?this['_handleRenameSuggestionDescription'](_0x2c4afc,_0x1722ea):this['_handleAttributeSuggestionDescription'](_0x2c4afc,_0x1722ea);}}}return this['_resolveDescriptionItems'](_0x2c4afc);}['registerDescriptionCallback'](_0x8d1781){this['_customCallbacks']['push'](_0x8d1781);}['registerElementLabel'](_0x3e970b,_0x31e1ea,_0x1c1ff8=_0x3ff64e['normal']){'function'==typeof _0x3e970b?_0x4cd18a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e970b,'label':_0x31e1ea,'priority':_0x1c1ff8}):this['_itemLabels']['set'](_0x3e970b,_0x31e1ea);}['registerAttributeLabel'](_0x4ceac4,_0x3ae31e){this['_attributeLabels']['set'](_0x4ceac4,_0x3ae31e);}['getItemLabel'](_0x375b25,_0x8d87be=0x1){let _0x436e30;for(const _0x466d47 of this['_itemLabelsCallbacks'])if(_0x466d47['matchingCallback'](_0x375b25)){_0x436e30=_0x466d47['label'];break;}return _0x436e30||(_0x436e30=this['_itemLabels']['get'](_0x375b25['name'])),_0x436e30?_0x436e30(_0x8d87be):0x1!==_0x8d87be?_0x8d87be+'\x20'+_0x375b25['name']+'s':''+_0x375b25['name'];}['_addDescriptionItems'](_0x319983,_0x55dffb){const _0x35b3e7=_0x55dffb['getFirstRange']()['getWalker'](),_0x28c2fd='insertion'==_0x55dffb['type']?'add':'remove';for(const _0x29ea62 of _0x35b3e7){const _0x1a8f5f=_0x29ea62['item'],_0x2472ec=_0x319983[_0x319983['length']-0x1];if(_0x1a8f5f['is']('$textProxy'))_0x2472ec&&_0x2472ec['type']['indexOf']('Container')>-0x1&&_0x319983['pop'](),_0x2472ec&&'text'==_0x2472ec['type']?_0x2472ec[_0x28c2fd]+=_0x1a8f5f['data']:_0x319983['push']({'type':'text','add':'add'==_0x28c2fd?_0x1a8f5f['data']:'','remove':'remove'==_0x28c2fd?_0x1a8f5f['data']:''});else{if(this['_schema']['isObject'](_0x1a8f5f)){const _0x28639f=_0x1a8f5f;if(_0x2472ec&&_0x2472ec['type']['indexOf']('Container')>-0x1&&_0x319983['pop'](),'elementEnd'==_0x29ea62['type'])continue;_0x2472ec&&_0x2472ec['type']==_0x28c2fd+'Object'&&_0x2472ec['element']['name']==_0x28639f['name']?_0x2472ec['quantity']++:_0x319983['push']({'type':_0x28c2fd+'Object','element':_0x28639f,'quantity':0x1}),_0x35b3e7['skip'](_0x46eb17=>!('elementEnd'==_0x46eb17['type']&&_0x46eb17['item']==_0x1a8f5f));}else{if(this['_schema']['checkChild'](_0x1a8f5f,'$text')||_0x1a8f5f['is']('element','softBreak')){const _0x3fa371=_0x1a8f5f;if('add'==_0x28c2fd&&'elementStart'==_0x29ea62['type']||'remove'==_0x28c2fd&&'elementEnd'==_0x29ea62['type'])continue;if(_0x2472ec&&-0x1==_0x2472ec['type']['indexOf']('Container')){'text'==_0x2472ec['type']&&(_0x2472ec[_0x28c2fd]+='\x0a');continue;}let _0x59bf94;if(_0x59bf94='add'==_0x28c2fd?_0x3fa371['nextSibling']&&!this['_schema']['isObject'](_0x3fa371['nextSibling'])?_0x3fa371['nextSibling']:null:_0x3fa371['previousSibling']&&!this['_schema']['isObject'](_0x3fa371['previousSibling'])?_0x3fa371['previousSibling']:null,_0x3fa371['isEmpty']||_0x59bf94&&_0x59bf94['isEmpty']){const _0x3fee98=_0x59bf94&&_0x59bf94['isEmpty']?_0x59bf94:_0x3fa371;_0x2472ec&&_0x2472ec['type']==_0x28c2fd+'EmptyContainer'&&_0x2472ec['element']['name']==_0x3fee98['name']?_0x2472ec['quantity']++:_0x319983['push']({'type':_0x28c2fd+'EmptyContainer','element':_0x3fee98,'quantity':0x1});}else _0x319983['push']({'type':_0x28c2fd+'Container','element':_0x3fa371});}}}}}['_resolveDescriptionItems'](_0x1743f6){const _0x417e2a=this['_locale'],_0x50e68d=[],_0xcc067e=[],_0x16d380=[];for(const _0x4701ff of _0x1743f6)switch(_0x4701ff['type']){case'text':if(_0x4701ff['add']=_0x4701ff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4701ff['remove']=_0x4701ff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4701ff['add']&&''!=_0x4701ff['remove']){_0x50e68d['push']({'type':'replace','content':o(_0x417e2a,'REPLACE_TEXT',['\x22'+_0x4701ff['remove']+'\x22','\x22'+_0x4701ff['add']+'\x22'])});continue;}if(null!=_0x4701ff['add']['match'](/^ +$/)){_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0',o(_0x417e2a,'ELEMENT_SPACE',_0x4701ff['add']['length']))});continue;}if(null!=_0x4701ff['remove']['match'](/^ +$/)){_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0',o(_0x417e2a,'ELEMENT_SPACE',_0x4701ff['remove']['length']))});continue;}if(''!=_0x4701ff['add']){_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0','\x22'+_0x4701ff['add']+'\x22')});continue;}_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0','\x22'+_0x4701ff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Insert:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Remove:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'addContainer':_0x50e68d['push']({'type':'insertion','content':o(_0x417e2a,'*Split:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'removeContainer':_0x50e68d['push']({'type':'deletion','content':o(_0x417e2a,'*Merge:*\x20%0',this['getItemLabel'](_0x4701ff['element'],_0x4701ff['quantity']))});continue;case'addFormat':_0xcc067e['push'](_0x4701ff['key']);continue;case'removeFormat':_0x16d380['push'](_0x4701ff['key']);continue;default:_0x50e68d['push'](_0x4701ff);}if(_0xcc067e['length']){const _0x7d2998=_0xcc067e['map'](_0x1a4d5a=>this['_attributeLabels']['has'](_0x1a4d5a)?this['_attributeLabels']['get'](_0x1a4d5a):_0x1a4d5a)['join'](',\x20');_0x50e68d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x7d2998)});}if(_0x16d380['length']){const _0x1c4521=_0x16d380['map'](_0x4cb7cf=>this['_attributeLabels']['has'](_0x4cb7cf)?this['_attributeLabels']['get'](_0x4cb7cf):_0x4cb7cf)['join'](',\x20');_0x50e68d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c4521)});}return _0x50e68d;}['_handleCustomCallbackDescription'](_0x3811db){for(const _0x5057a3 of this['_customCallbacks']){const _0x219ac0=_0x5057a3(_0x3811db);if(_0x219ac0&&'type'in _0x219ac0)return _0x219ac0;}}['_handleAttributeSuggestionDescription'](_0x49cc32,_0x33aae5){const _0x4ea360=_0x33aae5['data'],_0xc7e884=void 0x0===_0x4ea360['newValue']?'removeFormat':'addFormat';_0x49cc32['push']({'type':_0xc7e884,'key':_0x4ea360['key']});}['_handleRenameSuggestionDescription'](_0x10d343,_0x3d2978){_0x10d343['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d2978['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4c6985,_0x56b025,_0x23105f){if(this['_addDescriptionItems'](_0x4c6985,_0x56b025),_0x23105f&&_0x23105f['getFirstRange']()&&!_0x56b025['getFirstRange']()['end']['isEqual'](_0x23105f['getFirstRange']()['start'])){const _0x4ea8e5=_0x4c6985[_0x4c6985['length']-0x1],_0x13b562='insertion'==_0x56b025['type']?'add':'remove';_0x4ea8e5&&'text'==_0x4ea8e5['type']&&(_0x4ea8e5[_0x13b562]+='\x0a');}}}class V extends _0x48c5b5{['afterInit'](){const _0xa84f0d=this['editor'],_0x40bbf0=_0xa84f0d['plugins']['get']('TrackChangesEditing');_0xa84f0d['commands']['get']('showAIAssistant')&&_0x40bbf0['enableCommand']('showAIAssistant');}}class U extends _0x48c5b5{['afterInit'](){const _0x114b16=this['editor'],_0x25a18b=_0x114b16['locale'];if(!_0x114b16['plugins']['has']('AlignmentEditing'))return;const _0x3cd9a7=_0x114b16['plugins']['get']('TrackChangesEditing');_0x3cd9a7['enableDefaultAttributesIntegration']('alignment'),_0x3cd9a7['registerBlockAttribute']('alignment'),_0x3cd9a7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x25a18b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c2495=this['editor'],_0x202d2f=_0x3c2495['locale'];_0x3c2495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34f141=>{if('formatBlock'!=_0x34f141['type'])return;const {data:_0x5017cb}=_0x34f141;if(_0x5017cb&&'alignment'==_0x5017cb['commandName']){const _0x5c99bf=_0x5017cb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x202d2f,'*Format:*\x20%0',function(_0x314b09){switch(_0x314b09){case'left':return o(_0x202d2f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x202d2f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x202d2f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x202d2f,'FORMAT_JUSTIFY_TEXT');}}(_0x5c99bf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x48c5b5{['afterInit'](){const _0x11ecf5=this['editor'],_0xb6ec9c=_0x11ecf5['plugins']['get']('TrackChangesEditing'),_0x22b761=_0x11ecf5['locale'];for(const _0x3c31d5 of ti){if(!_0x11ecf5['plugins']['has'](_0x3c31d5))continue;const _0x395c49=_0x3c31d5['slice'](0x0,-0x7)['toLowerCase'](),_0x193163='FORMAT_'+_0x395c49['toUpperCase']();_0xb6ec9c['enableDefaultAttributesIntegration'](_0x395c49),_0xb6ec9c['registerInlineAttribute'](_0x395c49),_0xb6ec9c['descriptionFactory']['registerAttributeLabel'](_0x395c49,o(_0x22b761,_0x193163));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ff1aa=this['editor'],_0x213e78=_0x8ff1aa['locale'],_0x6aa84=_0x8ff1aa['plugins']['get']('TrackChangesEditing');function _0x315c68(_0x396c8f,_0x1d83c5){_0x6aa84['descriptionFactory']['registerDescriptionCallback'](_0xdfbedb=>{if('formatInline'!=_0xdfbedb['type'])return;const {data:_0x27562b}=_0xdfbedb;return _0x27562b&&_0x27562b['commandName']===_0x396c8f?_0x27562b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x213e78,'*Format:*\x20%0',_0x1d83c5)}:{'type':'format','content':o(_0x213e78,'*Remove\x20format:*\x20%0',_0x1d83c5)}:void 0x0;});}_0x315c68('bold',o(_0x213e78,'FORMAT_BOLD')),_0x315c68('italic',o(_0x213e78,'FORMAT_ITALIC')),_0x315c68('underline',o(_0x213e78,'FORMAT_UNDERLINE')),_0x315c68('code',o(_0x213e78,'FORMAT_CODE')),_0x315c68('strikethrough',o(_0x213e78,'FORMAT_STRIKETHROUGH')),_0x315c68('subscript',o(_0x213e78,'FORMAT_SUBSCRIPT')),_0x315c68('superscript',o(_0x213e78,'FORMAT_SUPERSCRIPT'));}}class F extends _0x48c5b5{['afterInit'](){const _0x38cb4e=this['editor'],_0x4f61e4=_0x38cb4e['locale'];if(!_0x38cb4e['plugins']['has']('BlockQuoteEditing'))return;const _0x3d4df8=_0x38cb4e['plugins']['get']('TrackChangesEditing'),_0x5de0f8=this['editor']['commands']['get']('blockQuote');_0x3d4df8['enableCommand']('blockQuote',(_0x3534ad,_0x2e1c21={})=>{const _0x2d19f7=this['editor']['model']['document']['selection'],_0x2d9481=_0x2e1c21&&void 0x0!==_0x2e1c21['forceValue']?_0x2e1c21['forceValue']:!_0x5de0f8['value'];let _0x26cd71=[];if(_0x2d9481){const _0x1e2637=Array['from'](_0x2d19f7['getSelectedBlocks']())['filter'](_0x1d0d8b=>oo(_0x1d0d8b)||function(_0x46ec0b,_0x19cf79){const _0x48ff70=_0x19cf79['checkChild'](_0x46ec0b['parent'],'blockQuote'),_0x18579e=_0x19cf79['checkChild'](['$root','blockQuote'],_0x46ec0b);return _0x48ff70&&_0x18579e;}(_0x1d0d8b,this['editor']['model']['schema']));_0x26cd71=to(_0x1e2637,_0x38cb4e['model']);}else{const _0x293300=Array['from'](_0x2d19f7['getSelectedBlocks']())['filter'](_0x7075ee=>oo(_0x7075ee));_0x26cd71=to(_0x293300,_0x38cb4e['model']);}_0x38cb4e['model']['change'](()=>{for(const _0x466066 of _0x26cd71)_0x3d4df8['markBlockFormat'](_0x466066,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d9481}]});});}),_0x3d4df8['descriptionFactory']['registerDescriptionCallback'](_0x1205d2=>{const {data:_0x57daa9}=_0x1205d2;if(_0x57daa9&&'blockQuote'==_0x57daa9['commandName']){const _0x526489=o(_0x4f61e4,'ELEMENT_BLOCK_QUOTE');return _0x57daa9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f61e4,'*Set\x20format:*\x20%0',_0x526489)}:{'type':'format','content':o(_0x4f61e4,'*Remove\x20format:*\x20%0',_0x526489)};}});}}function oo(_0x127d14){return'blockQuote'==_0x127d14['parent']['name'];}class L extends _0x48c5b5{['afterInit'](){const _0x5c8a50=this['editor'];_0x5c8a50['plugins']['has']('CaseChange')&&(_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c8a50['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x48c5b5{['afterInit'](){const _0x2d3911=this['editor'];_0x2d3911['commands']['get']('ckbox')&&_0x2d3911['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48c5b5{['afterInit'](){const _0x2e8489=this['editor'];if(!_0x2e8489['plugins']['has']('CodeBlock'))return;const _0x56b41b=_0x2e8489['plugins']['get']('TrackChangesEditing'),_0x394885=_0x2e8489['locale'],_0x50ec9e=_0x2e8489['config']['get']('codeBlock')['languages'],_0x2e0f53=_0x2e8489['commands']['get']('codeBlock');_0x56b41b['enableCommand']('indentCodeBlock'),_0x56b41b['enableCommand']('outdentCodeBlock'),_0x56b41b['enableCommand']('codeBlock',(_0x2d60f8,_0x525a8c={})=>{const _0x36367a=_0x2e8489['model'],_0x2315e6=_0x2e8489['model']['document']['selection'],_0x2076d6=_0x525a8c&&void 0x0!==_0x525a8c['forceValue']?_0x525a8c['forceValue']:!_0x2e0f53['value'];let _0x241ba9;_0x525a8c['language']||(_0x525a8c['language']=_0x50ec9e[0x0]['language']),_0x241ba9=_0x2076d6?Array['from'](_0x2315e6['getSelectedBlocks']())['filter'](_0x281357=>eo(_0x281357)||function(_0x204867,_0x577963){if(_0x204867['is']('rootElement')||_0x577963['isLimit'](_0x204867))return!0x1;return _0x577963['checkChild'](_0x204867['parent'],'codeBlock');}(_0x281357,_0x36367a['schema'])):Array['from'](_0x2315e6['getSelectedBlocks']())['filter'](_0x2dfe73=>eo(_0x2dfe73));const _0x18531b=to(_0x241ba9,_0x36367a);_0x36367a['change'](()=>{for(const _0x37479b of _0x18531b)_0x56b41b['markBlockFormat'](_0x37479b,{'commandName':'codeBlock','commandParams':[{..._0x525a8c,'forceValue':_0x2076d6}],'formatGroupId':'blockName'});});}),(_0x56b41b['descriptionFactory']['registerElementLabel']('codeBlock',_0x240dc4=>o(_0x394885,'ELEMENT_CODE_BLOCK',_0x240dc4)),_0x56b41b['descriptionFactory']['registerDescriptionCallback'](_0x84f2d7=>{if('formatBlock'!=_0x84f2d7['type'])return;const _0x4ef27b=_0x394885['t'],{data:_0x38d8a7}=_0x84f2d7;if(!_0x38d8a7||'codeBlock'!=_0x38d8a7['commandName'])return;const _0x2642e9=_0x38d8a7['commandParams'][0x0]['language'],_0x5a2c0e=_0x4ef27b(_0x50ec9e['find'](_0x35d122=>_0x35d122['language']===_0x2642e9)['label'])['toLowerCase']();return _0x38d8a7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394885,'*Set\x20format:*\x20%0',o(_0x394885,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5a2c0e+')')}:{'type':'format','content':o(_0x394885,'*Remove\x20format:*\x20%0',o(_0x394885,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2b1db1){return'codeBlock'==_0x2b1db1['name'];}class q extends _0x48c5b5{['afterInit'](){const _0x55eb67=this['editor'];if(!_0x55eb67['plugins']['has']('CommentsEditing'))return;_0x55eb67['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x9666aa,_0x43c7cb,_0x530631){const _0x9007cd=[];for(const _0x30f8f0 of _0x43c7cb['getItems']())_0x30f8f0['hasAttribute'](_0x9666aa)&&_0x9007cd['push'](_0x530631['createRangeOn'](_0x30f8f0));return _0x9007cd;}function _e(_0x40de8f,_0x329018,{showActiveMarker:_0x32ee0a=!0x0}={}){const _0xf95286=_0x40de8f['plugins']['get']('TrackChangesEditing');return(_0x5f4c69,_0x32b0e9,_0x1e363e)=>{if(!_0x1e363e['consumable']['test'](_0x32b0e9['markerRange'],_0x5f4c69['name']))return;const _0x15c9f5=_0x32b0e9['markerRange']['getWalker'](),_0x2cf8ab=_0x32b0e9['markerRange']['start'],_0x243478=_0x40de8f['model']['schema'];let _0xdb62e3=null,_0x515103=null,_0x374450=!0x1,_0x18aaac=!0x1;for(const _0x7c2b29 of _0x15c9f5){const _0x1c8443=_0x7c2b29['item'];_0x374450=_0x374450||_0x243478['isContent'](_0x1c8443);const _0x4948c7=_0x1e363e['mapper']['toViewElement'](_0x1c8443);if(_0x4948c7&&_0x4948c7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7c2b29['type']&&(_0x243478['isBlock'](_0x1c8443)&&!_0x243478['isLimit'](_0x1c8443)&&(_0x1c8443['nextSibling']||_0x2cf8ab['isAtEnd']?_0xdb62e3&&_0xdb62e3['parent']==_0x1c8443||(_0xdb62e3=_0x1c8443,_0x589e4d(_0x7c2b29['previousPosition']),_0x18aaac=!0x0):_0x515103=_0x515103||_0x7c2b29['previousPosition']));}function _0x589e4d(_0x14e78a){const {authorId:_0xad21d3}=_0xf95286['_splitMarkerName'](_0x32b0e9['markerName']),_0x3ccad2=_0x1e363e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x329018,'data-author-id':_0xad21d3}),_0x52110b=_0x1e363e['mapper']['toViewPosition'](_0x14e78a);_0x32ee0a&&_0xf95286['activeMarkers']['includes'](_0x32b0e9['markerName'])&&_0x1e363e['writer']['addClass']('ck-suggestion-marker--active',_0x3ccad2),_0x1e363e['writer']['insert'](_0x52110b,_0x3ccad2),_0x1e363e['mapper']['bindElementToMarker'](_0x3ccad2,_0x32b0e9['markerName']);}_0x374450||_0x18aaac||!_0x515103||_0x589e4d(_0x515103);};}class z extends _0x48c5b5{static get['requires'](){return[_0x2067fa];}['init'](){const _0x3b4552=this['editor'],_0x2084ae=_0x3b4552['plugins']['get']('TrackChangesEditing');_0x2084ae['enableCommand']('delete');const _0x7f5cb6=_0x3b4552['commands']['get']('deleteForward');_0x2084ae['enableCommand']('deleteForward',(_0x26f448,_0x4fb2ee={})=>{const _0x4ace1c=_0x3b4552['model']['createSelection'](_0x3b4552['model']['document']['selection']);_0x4ace1c['isCollapsed']&&_0x3b4552['model']['modifySelection'](_0x4ace1c,{'direction':'forward','unit':_0x4fb2ee['unit']});const _0x2bf077=_0x4ace1c['getFirstRange'](),_0x3b1304=_0x3bc28a['fromRange'](_0x2bf077);let _0x2761ab;_0x26f448(_0x4fb2ee),_0x2761ab='$graveyard'==_0x3b1304['root']['rootName']?_0x3b4552['model']['createRange'](_0x2bf077['start']):_0x3b4552['model']['createRange'](_0x3b1304['start'],_0x3b1304['end']),_0x3b1304['detach'](),_0x3b4552['model']['enqueueChange'](_0x7f5cb6['buffer']['batch'],_0x5dc039=>{_0x7f5cb6['buffer']['lock'](),_0x5dc039['setSelection'](_0x5dc039['createRange'](_0x2761ab['end'])),_0x7f5cb6['buffer']['unlock']();});}),_0x3b4552['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3b4552,'merge'),{'priority':'high'}),_0x3b4552['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x339f67,_0x458810,_0x39462d)=>{_0x39462d['options']['showSuggestionHighlights']&&_e(_0x3b4552,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x339f67,_0x458810,_0x39462d);},{'priority':'high'}),_0x3b4552['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2f6a4b,_0x2d9722,_0x5691f7)=>{const _0xfce261=_0x5691f7['mapper']['markerNameToElements'](_0x2d9722['markerName']);if(_0xfce261){for(const _0x2fd20d of _0xfce261)_0x2fd20d['is']('uiElement')&&(_0x5691f7['mapper']['unbindElementFromMarkerName'](_0x2fd20d,_0x2d9722['markerName']),_0x5691f7['writer']['remove'](_0x2fd20d));}},{'priority':'high'});}}class K extends _0x48c5b5{['afterInit'](){const _0xce02a0=this['editor'];if(!_0xce02a0['plugins']['has']('ListEditing'))return;const _0x57291d=_0xce02a0['locale'],_0xf79c55=_0xce02a0['plugins']['get']('TrackChangesEditing'),_0x298e60=_0xce02a0['plugins']['has']('TodoListEditing'),_0x18847f=!!_0xce02a0['config']['get']('list.multiBlock');function _0x311f37(_0xfe92e5){return{'type':'format','content':''+o(_0x57291d,'*Set\x20format:*\x20%0',_0xfe92e5)};}function _0x2f8fb7(_0x3efc4a){return{'type':'format','content':''+o(_0x57291d,'*Remove\x20format:*\x20%0',_0x3efc4a)};}_0xf79c55['enableDefaultAttributesIntegration']('numberedList'),_0xf79c55['enableDefaultAttributesIntegration']('bulletedList'),_0xf79c55['enableDefaultAttributesIntegration']('customNumberedList'),_0xf79c55['enableDefaultAttributesIntegration']('customBulletedList'),_0xf79c55['enableDefaultAttributesIntegration']('indentList'),_0xf79c55['enableDefaultAttributesIntegration']('outdentList'),_0xf79c55['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf79c55['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf79c55['registerBlockAttribute']('listItemId'),_0xf79c55['registerBlockAttribute']('listType'),_0xf79c55['registerBlockAttribute']('listIndent'),_0x18847f&&(_0xf79c55['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf79c55['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x298e60&&(_0xf79c55['enableDefaultAttributesIntegration']('todoList'),_0xf79c55['enableDefaultAttributesIntegration']('checkTodoList'),_0xf79c55['registerBlockAttribute']('todoListChecked'),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x4f35e5=>{const {data:_0x3e95d2}=_0x4f35e5;if(_0x3e95d2&&'todoListChecked'==_0x3e95d2['key'])return{'type':'format','content':_0x3e95d2['newValue']?o(_0x57291d,'*Check\x20item*'):o(_0x57291d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe4b434=>{if(_0xe4b434['batch']['isUndo'])return!0x1;let _0x1f16b9=!0x1;const _0x14c01c=_0xf79c55['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x264d34=>'todoListChecked'===_0xf79c55['_getAttributeKey'](_0x264d34));for(const _0x5255ba of _0x14c01c){'todo'!=_0x5255ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf79c55['_findSuggestions'](_0x5255ba['getFirstRange'](),'attribute')['find'](_0xcd9514=>'listType'===_0xf79c55['_getAttributeKey'](_0xcd9514['suggestion']))||(_0xe4b434['removeMarker'](_0x5255ba['getFirstMarker']()),_0x1f16b9=!0x0));}return _0x1f16b9;})),_0xf79c55['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x57291d,'FORMAT_INDENT'));const _0x30e9bb={'type':'format','content':''};_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x3cd9d5=>{const {data:_0x4451c0}=_0x3cd9d5;if(!_0x4451c0||'listType'!=_0x4451c0['key'])return;let _0x145da6=_0x3cd9d5['head'];for(;_0x145da6;){if(_0x145da6['data']&&(('listStyle'==_0x145da6['data']['key']||'listMarkerStyle'==_0x145da6['data']['key'])&&(_0x145da6['data']['newValue']&&'default'!=_0x145da6['data']['newValue']||'default'!=_0x145da6['data']['oldValue']&&!_0x4451c0['newValue'])||!_0x18847f&&_0x145da6['data']['key']==m))return _0x30e9bb;_0x145da6=_0x145da6['next'];}if(null==_0x4451c0['newValue'])switch(_0x4451c0['oldValue']){case'bulleted':return _0x2f8fb7(o(_0x57291d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f8fb7(o(_0x57291d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f8fb7(o(_0x57291d,'ELEMENT_TODO_LIST'));}switch(_0x4451c0['newValue']){case'bulleted':return _0x311f37(o(_0x57291d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x311f37(o(_0x57291d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x311f37(o(_0x57291d,'ELEMENT_TODO_LIST'));}}),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x27e415=>{const {data:_0x21156b}=_0x27e415;if(_0x21156b&&'listIndent'==_0x21156b['key'])return null==_0x21156b['newValue']||null==_0x21156b['oldValue']&&0x0==_0x21156b['newValue']?_0x30e9bb:void 0x0;}),_0xf79c55['descriptionFactory']['registerDescriptionCallback'](_0x55f677=>{if('attribute'!=_0x55f677['type'])return;const {data:_0x3e80b5}=_0x55f677;if(!_0x3e80b5||'listItemId'!=_0x3e80b5['key'])return;const _0x547f76=Ee(_0x55f677);return'newValue'==_0x547f76?{'type':'format','content':o(_0x57291d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x547f76?{'type':'format','content':o(_0x57291d,'*Split:*\x20list\x20item')}:_0x30e9bb;}),_0xce02a0['model']['document']['registerPostFixer'](_0x46a242=>this['listItemIdFixer'](_0x46a242)),_0xce02a0['model']['document']['registerPostFixer'](_0x2cd98b=>this['noTrackChangesFixer'](_0x2cd98b)),_0xce02a0['model']['document']['on']('change:data',(_0x5ca29c,_0x39b92c)=>{if(_0x39b92c['isUndo']||!_0x39b92c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6cb6ae){if(_0x6cb6ae['batch']['isUndo']||!_0x6cb6ae['batch']['isLocal'])return!0x1;let _0x1108ac=!0x1;const _0x399299=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16236a=>_0x16236a['data']&&'listItemId'==_0x16236a['data']['key'])['filter'](_0x3d3304=>_0x3d3304['data']['newValue']&&_0x3d3304['data']['oldValue']);for(const _0x4637af of _0x399299)Ee(_0x4637af)||(_0x6cb6ae['removeMarker'](_0x4637af['getFirstMarker']()),_0x1108ac=!0x0);return _0x1108ac;}['noTrackChangesFixer'](_0x3fa832){if(_0x3fa832['batch']['isUndo']||!_0x3fa832['batch']['isLocal'])return!0x1;const _0x21f97c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x21f97c['trackChangesCommand']['value'])return!0x1;let _0xd545f7=!0x1;const _0x120f65=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x165b72=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x21e5be=>'attribute'==_0x21e5be['type'])['filter'](_0x3b6d37=>_0x120f65['includes'](_0x3b6d37['attributeKey']));if(0x0==_0x165b72['length'])return _0xd545f7;for(const _0x337b54 of _0x165b72){const _0x1d0529=_0x21f97c['_findSuggestions'](_0x337b54['range'],'attribute')['filter'](_0xcdfcb9=>!_0xcdfcb9['meta']['isNextTo'])['map'](_0x1f3542=>_0x1f3542['suggestion'])['filter'](_0xea0569=>{const _0x171a7b=_0x21f97c['_getAttributeKey'](_0xea0569);return _0x120f65['includes'](_0x171a7b);});if(_0x1d0529['length']){for(const _0x3e60cc of _0x1d0529)_0x3fa832['removeMarker'](_0x3e60cc['getFirstMarker']());_0xd545f7=!0x0;}}return _0xd545f7;}['assureChains'](){const _0x5af9f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38d2dd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x7296dd;const _0x36e858=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bc351=>{if(_0x4bc351['data']['oldRange']||!_0x4bc351['data']['newRange'])return null;if(!_0x4bc351['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa1f184}=_0x5af9f4['_splitMarkerName'](_0x4bc351['name']);if(!_0x5af9f4['hasSuggestion'](_0xa1f184))return null;const _0x2e1658=_0x5af9f4['getSuggestion'](_0xa1f184);return _0x38d2dd['includes'](_0x2e1658['data']['key']);})['map'](_0x3efc48=>{const {id:_0x2043c6}=_0x5af9f4['_splitMarkerName'](_0x3efc48['name']),_0x16214e=_0x5af9f4['getSuggestion'](_0x2043c6);return _0x7296dd=_0x16214e['attributes']['groupId'],_0x16214e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x36e858['size'])return;const _0x1c382d=_0x5af9f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cb70d=>'attribute'==_0x2cb70d['type']&&_0x2cb70d['data']&&_0x38d2dd['includes'](_0x2cb70d['data']['key'])&&_0x2cb70d['attributes']['groupId']!=_0x7296dd)['map'](_0x25f1c7=>({'listItem':_0x25f1c7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x25f1c7['attributes']['groupId']})),_0x4201ee=new Set();for(const {groupId:_0x87fc6c,listItem:_0x9f84de}of _0x1c382d)_0x36e858['has'](_0x9f84de)&&_0x4201ee['add'](_0x87fc6c);for(const _0x273b2c of _0x5af9f4['getSuggestions']())_0x4201ee['has'](_0x273b2c['attributes']['groupId'])&&_0x273b2c['setAttribute']('groupId',_0x7296dd);}['_supportLegacySuggestions'](){const _0x4e1886=this['editor'],_0x45639e=_0x4e1886['locale'],_0x169117=_0x4e1886['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x169117['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xdf5006,_0x118121){const _0x40d54c=[];for(let _0x375039 of _0xdf5006)_0x375039['start']['nodeAfter']===_0x375039['end']['parent']&&(_0x375039=_0x4e1886['model']['createRange'](_0x4e1886['model']['createPositionAt'](_0x375039['start']['nodeAfter'],0x0))),_0x40d54c['push'](_0x375039);_0x4e1886['model']['change'](_0x3f45f1=>{const _0x207d3b=_0x4e1886['model']['document']['selection'],_0x6ff649=Array['from'](_0x207d3b['getRanges']())['map'](_0x56a330=>_0x3bc28a['fromRange'](_0x56a330));_0x3f45f1['setSelection'](_0x40d54c),_0x4e1886['commands']['get'](_0x118121['commandName'])['refresh'](),_0x118121['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e1886['execute'](_0x118121['commandName'],..._0x118121['commandParams']),_0x3f45f1['setSelection'](_0x6ff649);for(const _0x5ecf74 of _0x6ff649)_0x5ecf74['detach']();});}),_0x169117['descriptionFactory']['registerElementLabel'](function(_0x422a6a){const _0xade428=!_0x4e1886['model']['schema']['isObject'](_0x422a6a),_0x4c3742=_0x422a6a['previousSibling'],_0x4b3441=_0x422a6a['nextSibling'],_0x19787f=_0x422a6a['getAttribute']('listItemId'),_0x21425e=!_0x4c3742||_0x4c3742['getAttribute']('listItemId')!==_0x19787f,_0x20047c=!_0x4b3441||_0x4b3441['getAttribute']('listItemId')!==_0x19787f;return _0xade428&&Boolean(_0x19787f)&&_0x21425e&&_0x20047c;},_0x1fd690=>o(_0x45639e,'ELEMENT_LIST_ITEM',_0x1fd690));}['_registerLegacyDescription'](){const _0x50c230=this['editor'],_0x15994d=_0x50c230['locale'];function _0x4e5078(_0x5b3b97){const _0x4928db=_0x50c230['commands']['get']('bulletedList')['value'],_0x20fc70=_0x50c230['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b3b97?_0x4928db:_0x20fc70;}_0x50c230['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2526bb){if('formatBlock'!=_0x2526bb['type'])return;const {data:_0x57207f}=_0x2526bb;if(!_0x57207f)return;let _0x22f9df,_0x25b456,_0x3f451f,_0x54d299;switch(_0x57207f['commandName']){case'bulletedList':_0x3f451f=_0x57207f['commandParams'][0x0]['forceValue'],_0x54d299=_0x4e5078(_0x57207f['commandName']),_0x22f9df=_0x3f451f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x54d299&&_0x50c230['config']['get']('list.multiBlock')||(_0x22f9df='*Change\x20to:*\x20%0'),_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3f451f=_0x57207f['commandParams'][0x0]['forceValue'],_0x54d299=_0x4e5078(_0x57207f['commandName']),_0x22f9df=_0x3f451f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x54d299&&_0x50c230['config']['get']('list.multiBlock')||(_0x22f9df='*Change\x20to:*\x20%0'),_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x22f9df='*Indent:*\x20%0',_0x25b456={'type':'format','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x22f9df=function(_0x4f0c30){const _0x5d9123=_0x4f0c30['getFirstRange']();let _0x413aac=_0x5d9123['start']['nodeAfter'];for(;_0x413aac&&_0x5d9123['containsItem'](_0x413aac);){if(_0x413aac['getAttribute']('listIndent')>0x0)return!0x1;_0x413aac=_0x413aac['nextSibling'];}return!0x0;}(_0x2526bb)?o(_0x15994d,'*Format:*\x20remove\x20from\x20%0',o(_0x15994d,function(_0x28f6ad){return'ELEMENT_'+_0x28f6ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2526bb))):o(_0x15994d,'*Outdent:*\x20%0',o(_0x15994d,'ELEMENT_LIST_ITEM')),_0x25b456={'type':'format','content':_0x22f9df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x57207f['multipleBlocks']&&(_0x22f9df='*Merge:*\x20%0',_0x25b456={'type':'deletion','content':o(_0x15994d,_0x22f9df,o(_0x15994d,'ELEMENT_LIST_ITEM'))});}return _0x25b456;});}}function Ee(_0x3df855){let _0x1d55a1=_0x3df855['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d55a1;){const _0x4aa565=_0x1d55a1['getAttribute']('listItemId');if(!_0x4aa565)return!0x1;if(_0x4aa565==_0x3df855['data']['newValue'])return'newValue';if(_0x4aa565==_0x3df855['data']['oldValue'])return'oldValue';_0x1d55a1=_0x1d55a1['previousSibling'];}return!0x1;}class pe extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x285be4=this['editor']['config']['get']('list.properties'),_0x14f73b=this['editor']['plugins']['get']('TrackChangesEditing');_0x285be4['styles']&&(_0x14f73b['enableDefaultAttributesIntegration']('listStyle'),_0x14f73b['registerBlockAttribute']('listStyle')),_0x285be4['reversed']&&(_0x14f73b['enableDefaultAttributesIntegration']('listReversed'),_0x14f73b['registerBlockAttribute']('listReversed')),_0x285be4['startIndex']&&(_0x14f73b['enableDefaultAttributesIntegration']('listStart'),_0x14f73b['registerBlockAttribute']('listStart'));const _0x1bdbdc={'type':'format','content':''};_0x14f73b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ca84d=this['editor']['locale'];_0x14f73b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ca84d,'FORMAT_LIST_REVERSED')),_0x14f73b['descriptionFactory']['registerDescriptionCallback'](_0x247ea5=>{const {data:_0x1f7006}=_0x247ea5;if(_0x1f7006&&'listReversed'==_0x1f7006['key'])return null==_0x1f7006['newValue']||0x0==_0x1f7006['newValue']&&null==_0x1f7006['oldValue']?_0x1bdbdc:void 0x0;}),_0x14f73b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ca84d,'FORMAT_LIST_START')),_0x14f73b['descriptionFactory']['registerDescriptionCallback'](_0x3073ca=>{const {data:_0x2f2073}=_0x3073ca;if(_0x2f2073&&'listStart'==_0x2f2073['key'])return null==_0x2f2073['newValue']||0x1==_0x2f2073['newValue']&&null==_0x2f2073['oldValue']?_0x1bdbdc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5684dd=>{if(_0x5684dd['batch']['isUndo'])return!0x1;let _0x409f5a=!0x1;const _0x141f14=_0x14f73b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f6ef5=>{const _0x572ce5=_0x14f73b['_getAttributeKey'](_0x1f6ef5);return'listStart'==_0x572ce5||'listReversed'==_0x572ce5;});for(const _0x16178a of _0x141f14){const _0x4896ef=_0x16178a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4896ef||'customNumbered'==_0x4896ef)continue;_0x14f73b['_findSuggestions'](_0x16178a['getFirstRange'](),'attribute')['find'](_0x56e070=>'listType'==_0x14f73b['_getAttributeKey'](_0x56e070['suggestion']))||(_0x5684dd['removeMarker'](_0x16178a['getFirstMarker']()),_0x409f5a=!0x0);}return _0x409f5a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42caac){const _0x1efe55=this['editor']['locale'],{data:_0x48c45b}=_0x42caac,_0x3c7a43={'type':'format','content':''};if(!_0x48c45b||'listStyle'!=_0x48c45b['key'])return;if(!_0x48c45b['oldValue'])return'default'==_0x48c45b['newValue']?_0x3c7a43:{'type':'format','content':''+o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['newValue'])))};if(!_0x48c45b['newValue']){if('default'==_0x48c45b['oldValue'])return _0x3c7a43;let _0x3ae646=_0x42caac['head'];for(;_0x3ae646;){if(_0x3ae646['data']&&'listType'==_0x3ae646['data']['key']&&_0x3ae646['data']['newValue'])return _0x3c7a43;_0x3ae646=_0x3ae646['next'];}return{'type':'format','content':''+o(_0x1efe55,'*Remove\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['oldValue'])))};}if('default'!=_0x48c45b['newValue'])return{'type':'format','content':''+o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,this['_getTranslationKeyForListStyle'](_0x48c45b['newValue'])))};let _0x10586d=_0x42caac['head'];for(;_0x10586d;){if(_0x10586d['data']&&'listType'==_0x10586d['data']['key']&&_0x10586d['data']['newValue']&&_0x10586d['data']['oldValue'])return _0x3c7a43;_0x10586d=_0x10586d['next'];}return{'type':'format','content':o(_0x1efe55,'*Set\x20format:*\x20%0',o(_0x1efe55,'ELEMENT_'+_0x42caac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1acd49=this['editor'],_0x46ef15=_0x1acd49['locale'];_0x1acd49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270e79=>{if('formatBlock'!=_0x270e79['type'])return;const {data:_0x2dbc77}=_0x270e79;if(!_0x2dbc77)return;let _0x545ec0,_0xe5c850;switch(_0x2dbc77['commandName']){case'listStyle':_0x545ec0='*Change\x20to:*\x20%0',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0,o(_0x46ef15,this['_getTranslationKeyForListStyle'](_0x2dbc77['commandParams'][0x0]['type'])))};break;case'listReversed':_0x545ec0=_0x2dbc77['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0)};break;case'listStart':_0x545ec0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe5c850={'type':'format','content':o(_0x46ef15,_0x545ec0,_0x2dbc77['commandParams'][0x0]['startIndex'])};}return _0xe5c850;});}['_getTranslationKeyForListStyle'](_0x2ab3fa){return'ELEMENT_'+function(_0x2c7b10){if(ye['includes'](_0x2c7b10))return'bulleted';if(Se['includes'](_0x2c7b10))return'numbered';return null;}(_0x2ab3fa)['toUpperCase']()+'_LIST_'+_0x2ab3fa['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x48c5b5{static get['requires'](){return[_0x435002];}['init'](){const _0x338954=this['editor'],_0x583789=_0x338954['plugins']['get']('TrackChangesEditing'),_0x448301=_0x338954['commands']['get']('enter');_0x583789['enableCommand']('enter',()=>{_0x338954['model']['change'](_0x496980=>{const _0x4c3756=_0x338954['model']['document']['selection'],_0x340807=_0x4c3756['getFirstPosition'](),_0x1aaa91=_0x3bc28a['fromRange'](_0x4c3756['getFirstRange']());if(_0x448301['enterBlock'](_0x496980)){const _0x147184=_0x338954['model']['createPositionAt'](_0x340807['parent']['nextSibling'],0x0),_0x62c814=_0x496980['createRange'](_0x340807,_0x147184);_0x583789['markInsertion'](_0x62c814);}else _0x496980['setSelection'](_0x496980['createRange'](_0x1aaa91['end']));_0x1aaa91['detach'](),_0x448301['fire']('afterExecute',{'writer':_0x496980});});}),_0x338954['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x338954,'split'),{'priority':'high'}),_0x338954['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ecc3b,_0x571ae3,_0x500bbb)=>{const _0x6b8982=_0x500bbb['mapper']['markerNameToElements'](_0x571ae3['markerName']);if(_0x6b8982){for(const _0x48721b of _0x6b8982)_0x48721b['hasClass']('ck-suggestion-marker-split')&&(_0x500bbb['mapper']['unbindElementFromMarkerName'](_0x48721b,_0x571ae3['markerName']),_0x500bbb['writer']['remove'](_0x48721b));}},{'priority':'high'}),_0x338954['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d0f26,_0x266fef,_0x59a1d3)=>{_0x59a1d3['options']['showSuggestionHighlights']&&_e(_0x338954,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3d0f26,_0x266fef,_0x59a1d3);},{'priority':'high'});}}class X extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3dd192=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd192['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3dd192['enableCommand']('findNext'),_0x3dd192['enableCommand']('findPrevious'),_0x3dd192['enableCommand']('replace'),_0x3dd192['enableCommand']('replaceAll');}['handleFindCommand'](_0x1711b6,_0x2d7526,_0xae3397={}){const _0x5bf261=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1711b6(_0x40aa5e=>{let _0x35c79c=('string'==typeof _0x2d7526?_0x5bf261['findByTextCallback'](_0x2d7526,_0xae3397):_0x2d7526)(_0x40aa5e);Array['isArray'](_0x35c79c)&&(_0x35c79c={'results':_0x35c79c,'searchText':'string'==typeof _0x2d7526?_0x2d7526:''});const _0x12c929=_0x35c79c['results']['filter'](_0x1e472d=>!0x1===this['_isInDeletionRange'](_0x1e472d,_0x40aa5e['item']));return{..._0x35c79c,'results':_0x12c929};},_0xae3397);}['_isInDeletionRange'](_0x4eba6b,_0x597548){const _0x169ec6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x597548,_0x4eba6b['start']),this['editor']['model']['createPositionAt'](_0x597548,_0x4eba6b['end']));for(const _0x11896e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x169ec6['getIntersection'](_0x11896e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x48c5b5{['afterInit'](){const _0x6f3fde=this['editor']['locale'],_0x4bef0b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x58e93b,commandName:_0x4a51ca}of ro)this['editor']['plugins']['has'](_0x58e93b)&&(_0x4bef0b['enableDefaultAttributesIntegration'](_0x4a51ca),_0x4bef0b['registerInlineAttribute'](_0x4a51ca));_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x6f3fde,'FORMAT_FONT_SIZE')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x6f3fde,'FORMAT_FONT_FAMILY')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x6f3fde,'FORMAT_FONT_COLOR')),_0x4bef0b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x6f3fde,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c834f=this['editor'],_0x10549d=_0x4c834f['locale'];_0x4c834f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x522c7c=>{const _0x1c39f9=_0x10549d['t'];if('formatInline'!=_0x522c7c['type'])return;const {data:_0x21ebb5}=_0x522c7c;if(null!=_0x21ebb5){if('fontSize'==_0x21ebb5['commandName']){const _0x84d75f=_0x21ebb5['commandParams'][0x0]['value'];if(_0x84d75f){const _0x5680d3=_0x1c39f9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x480fa3=>_0x480fa3['model']==_0x84d75f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10549d,'*Set\x20font\x20size:*\x20%0',_0x5680d3)};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21ebb5['commandName']){const _0x5e50b6=_0x21ebb5['commandParams'][0x0]['value'];return _0x5e50b6?{'type':'format','content':o(_0x10549d,'*Set\x20font\x20family:*\x20%0',_0x5e50b6)}:{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21ebb5['commandName']){const _0x1ed37f=_0x21ebb5['commandParams'][0x0]['value'];if(_0x1ed37f){const _0x46700f=_0x5ee7db(this['editor']['config']['get']('fontColor.colors'))['find'](_0x207005=>_0x207005['model']==_0x1ed37f);let _0x1cf793=_0x1ed37f,_0x10f90e='';return _0x46700f&&(_0x1cf793=_0x46700f['label'],_0x10f90e=_0x1c39f9(_0x1cf793)['toLowerCase']()),{'type':'format','content':o(_0x10549d,'*Set\x20font\x20color:*\x20%0',_0x10f90e)['trim'](),'color':{'value':_0x1ed37f,'title':_0x10f90e||_0x1cf793}};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21ebb5['commandName']){const _0xfd5c82=_0x21ebb5['commandParams'][0x0]['value'];if(_0xfd5c82){const _0xf5dc44=_0x5ee7db(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x39aa5b=>_0x39aa5b['model']==_0xfd5c82);let _0x1c0bdd=_0xfd5c82,_0x1f877a='';return _0xf5dc44&&(_0x1c0bdd=_0xf5dc44['label'],_0x1f877a=_0x1c39f9(_0x1c0bdd)['toLowerCase']()),{'type':'format','content':o(_0x10549d,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f877a)['trim'](),'color':{'value':_0xfd5c82,'title':_0x1f877a||_0x1c0bdd}};}return{'type':'format','content':o(_0x10549d,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48c5b5{['afterInit'](){const _0x1a02db=this['editor'],_0x3ee989=_0x1a02db['plugins']['get']('TrackChangesEditing'),_0x46fd6b=_0x1a02db['commands']['get']('copyFormat'),_0x32f43b=_0x1a02db['commands']['get']('pasteFormat');_0x46fd6b&&_0x32f43b&&(_0x3ee989['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ee989['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14018a=this['editor'],_0x16bf42=_0x14018a['locale'];_0x14018a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c586=>{if('formatBlock'!=_0x25c586['type']&&'formatInline'!=_0x25c586['type'])return;const {data:_0x16700d}=_0x25c586;if(_0x16700d&&'pasteFormat'===_0x16700d['commandName']){const _0x5bc5f5=[],_0x30963c=_0x16700d['commandParams'][0x0];for(const [_0xc33b0e,_0x1f6ce0]of Object['entries'](_0x30963c))_0x5bc5f5['push'](so(_0x14018a,_0xc33b0e,_0x1f6ce0));return _0x5bc5f5['length']?{'type':'format','content':o(_0x16bf42,'*Set\x20format\x20to:*\x20%0',_0x5bc5f5['join'](',\x20'))}:{'type':'format','content':o(_0x16bf42,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5e7f0f,_0x210d52,_0x134c95){const _0x355761=_0x5e7f0f['locale']['t'],_0x525921=_0x210d52['split'](/(?=[A-Z])/)['join']('\x20'),_0xb51a9c=_0x355761(_0x525921['charAt'](0x0)['toUpperCase']()+_0x525921['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x134c95)return _0xb51a9c;if('fontColor'===_0x210d52||'fontBackgroundColor'===_0x210d52){const _0xa16b35=_0x5ee7db(_0x5e7f0f['config']['get']('fontColor.colors'))['find'](_0x15563=>_0x15563['model']==_0x134c95);return _0xb51a9c+'\x20('+(_0xa16b35?_0x355761(_0xa16b35['label'])['toLowerCase']():_0x134c95)+')';}if('fontSize'===_0x210d52&&isNaN(parseFloat(_0x134c95))){const _0x2f2895=_0x5e7f0f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e7f0f['config']['get']('fontSize.options'))['find'](_0x3a1f45=>_0x3a1f45['model']==_0x134c95);return _0xb51a9c+'\x20('+(_0x2f2895?_0x355761(_0x2f2895['title'])['toLowerCase']():_0x134c95)+')';}return _0xb51a9c+'\x20('+_0x134c95+')';}class tt extends _0x48c5b5{['_headingOptions'];['afterInit'](){const _0x46b61d=this['editor'];if(!_0x46b61d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x46b61d['config']['get']('heading.options');const _0x1b0347=_0x46b61d['locale'],_0x52dcff=_0x46b61d['plugins']['get']('TrackChangesEditing');_0x52dcff['enableDefaultAttributesIntegration']('heading');for(const _0x1cc4e0 of this['_headingOptions'])'paragraph'!=_0x1cc4e0['model']&&_0x52dcff['descriptionFactory']['registerElementLabel'](_0x1cc4e0['model'],_0x1f1410=>{const _0x50e8c9=this['_getHeadingLevel'](_0x1cc4e0['model']);return null!==_0x50e8c9?_0x30879e(_0x1f1410,_0x50e8c9):_0x505478(_0x1f1410,_0x1cc4e0['title']);});function _0x30879e(_0x1dbd14,_0x38ccbf){return o(_0x1b0347,'ELEMENT_HEADING',[_0x1dbd14,_0x38ccbf]);}function _0x505478(_0x42d558,_0x1a3109){return o(_0x1b0347,'ELEMENT_HEADING_CUSTOM',[_0x42d558,_0x1a3109]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41ffa7=this['editor'],_0x30f6aa=_0x41ffa7['locale'];function _0x248e8b(_0x2600fb,_0x3f4236){return o(_0x30f6aa,'ELEMENT_HEADING_CUSTOM',[_0x2600fb,_0x3f4236]);}_0x41ffa7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34104f=>{if('formatBlock'!=_0x34104f['type'])return;const {data:_0x558b6b}=_0x34104f;if(_0x558b6b&&'heading'==_0x558b6b['commandName']){const _0x3fc3f9=_0x558b6b['commandParams'][0x0]['value'],_0x35c5ee=this['_getHeadingLevel'](_0x3fc3f9);if(null!==_0x35c5ee)return{'type':'format','content':o(_0x30f6aa,'*Change\x20to:*\x20%0',(_0x51d55f=0x1,_0x266f0c=_0x35c5ee,o(_0x30f6aa,'ELEMENT_HEADING',[_0x51d55f,_0x266f0c])))};const _0x457c66=this['_headingOptions']['find'](_0x27042d=>_0x27042d['model']===_0x3fc3f9)['title'];return{'type':'format','content':o(_0x30f6aa,'*Change\x20to:*\x20%0',_0x248e8b(0x1,_0x457c66))};}var _0x51d55f,_0x266f0c;});}['_getHeadingLevel'](_0x5d3393){const _0x2a3692=_0x5d3393['match'](/^heading(\d+)/);if(_0x2a3692)return _0x2a3692[0x1];const _0x5ee3ec=this['_headingOptions']?.['find'](_0xe2ee5c=>_0xe2ee5c['model']==_0x5d3393);if(_0x5ee3ec&&_0x5ee3ec['view']){const _0x3c782f=_0x5ee3ec['view'],_0x6c78b=(_0x3c782f['name']??_0x3c782f)['match'](/^h(\d+)/);if(_0x6c78b)return _0x6c78b[0x1];}return null;}}class et extends _0x48c5b5{['afterInit'](){const _0x9b67be=this['editor'];if(!_0x9b67be['plugins']['has']('HighlightEditing'))return;const _0xb577e0=_0x9b67be['plugins']['get']('TrackChangesEditing'),_0x483976=_0x9b67be['locale'];_0xb577e0['enableDefaultAttributesIntegration']('highlight'),_0xb577e0['registerInlineAttribute']('highlight'),_0xb577e0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x483976,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e3305=this['editor'],_0x332fc9=_0x4e3305['locale'];_0x4e3305['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3730c1=>{if('formatInline'!=_0x3730c1['type'])return;const {data:_0x3503e1}=_0x3730c1;if(_0x3503e1&&'highlight'==_0x3503e1['commandName']){const _0x2f532a=_0x332fc9['t'],_0x4aad0e=_0x3503e1['commandParams'][0x0]['value'];if(_0x4aad0e){const _0x82802f=_0x4e3305['config']['get']('highlight.options')['find'](_0x19136f=>_0x19136f['model']==_0x4aad0e),_0x148e54=_0x2f532a(_0x82802f['title'])['toLowerCase']();return{'type':'format','content':o(_0x332fc9,'*Set\x20highlight:*\x20%0',_0x148e54),'color':{'value':_0x82802f['color'],'title':_0x82802f['title']}};}return{'type':'format','content':o(_0x332fc9,'*Remove\x20highlight*',o(_0x332fc9,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x48c5b5{['afterInit'](){const _0x4b4901=this['editor'];if(!_0x4b4901['plugins']['has']('HorizontalLineEditing'))return;_0x4b4901['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2b7562=_0x4b4901['plugins']['get']('TrackChangesEditing'),_0x162bd5=_0x4b4901['locale'];_0x2b7562['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c2cfe=>o(_0x162bd5,'ELEMENT_HORIZONTAL_LINE',_0x1c2cfe)),_0x4b4901['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b6ab3,{writer:_0x284bdd,options:_0x442888})=>{if(!_0x442888['showSuggestionHighlights'])return null;const _0x2215b4=_0x284bdd['createContainerElement']('div'),_0x50604a=_0x284bdd['createEmptyElement']('hr');return _0x284bdd['addClass']('ck-horizontal-line',_0x2215b4),_0x284bdd['insert'](_0x284bdd['createPositionAt'](_0x2215b4,0x0),_0x50604a),_0x2215b4;},'converterPriority':'high'});}}class st extends _0x48c5b5{['afterInit'](){const _0xc566fc=this['editor'];if(!_0xc566fc['plugins']['has']('HtmlEmbed'))return;const _0x1fcadb=_0xc566fc['plugins']['get']('TrackChangesEditing'),_0x45d208=_0xc566fc['locale'];_0x1fcadb['descriptionFactory']['registerElementLabel']('rawHtml',_0x497928=>o(_0x45d208,'ELEMENT_HTML_EMBED',_0x497928)),_0x1fcadb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1fcadb['registerBlockAttribute']('value'),_0x1fcadb['descriptionFactory']['registerDescriptionCallback'](_0x2c6f5d=>{if('attribute'!=_0x2c6f5d['type'])return;const {data:_0x15831c}=_0x2c6f5d;if(_0x15831c&&'value'==_0x15831c['key']&&_0x2c6f5d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56f339=o(_0x45d208,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45d208,'*Change\x20%0\x20content*',_0x56f339)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x203b5e=this['editor'],_0x219515=_0x203b5e['locale'];_0x203b5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42cf4e=>{if('formatBlock'!=_0x42cf4e['type'])return;const {data:_0xfb408f}=_0x42cf4e;if(_0xfb408f&&'htmlEmbed'==_0xfb408f['commandName']){const _0x384d6b=o(_0x219515,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x219515,'*Change\x20%0\x20content*',_0x384d6b)};}});}}class nt extends _0x48c5b5{['afterInit'](){const _0x209402=this['editor'];if(!_0x209402['plugins']['has']('ImageEditing'))return;const _0x12ba09=_0x209402['plugins']['get']('TrackChangesEditing'),_0xafc7ac=_0x209402['plugins']['get']('ImageUtils'),_0x42075e=_0x209402['locale'];_0x12ba09['enableCommand']('insertImage'),_0x12ba09['descriptionFactory']['registerElementLabel']('imageBlock',_0x44984e=>o(_0x42075e,'ELEMENT_IMAGE',_0x44984e)),_0x12ba09['descriptionFactory']['registerElementLabel']('imageInline',_0x410685=>o(_0x42075e,'ELEMENT_INLINE_IMAGE',_0x410685)),_0x12ba09['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x42075e,'ELEMENT_CAPTION')),_0x209402['plugins']['has']('ImageUploadEditing')&&_0x12ba09['enableCommand']('uploadImage'),_0x209402['plugins']['has']('ImageBlockEditing')&&_0x209402['plugins']['has']('ImageInlineEditing')&&(_0x12ba09['enableCommand']('imageTypeInline',(_0x546e0c,_0x40c087)=>{const _0x486568=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']);_0x209402['model']['change'](()=>{_0x12ba09['markBlockFormat'](_0x486568,{'commandName':'imageTypeInline','commandParams':[_0x40c087]},[],'convertBlockImageToInline');});}),_0x12ba09['enableCommand']('imageTypeBlock',(_0x535885,_0x530d54)=>{_0x209402['model']['change'](_0x426c02=>{let _0x9dc489=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x2b5f2d=_0x426c02['createRangeOn'](_0x9dc489);const _0x464c24=_0x46360e['fromPosition'](_0x2b5f2d['start'],'toPrevious'),_0xef7b58=_0x46360e['fromPosition'](_0x2b5f2d['end'],'toNext');_0x12ba09['forceDefaultExecution'](()=>_0x535885(_0x530d54)),_0x9dc489=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x2b5f2d=_0x426c02['createRangeOn'](_0x9dc489);const _0x10a26d=_0x426c02['createRange'](_0x464c24,_0xef7b58);_0x464c24['detach'](),_0xef7b58['detach'](),_0x12ba09['markBlockFormat'](_0x9dc489,{'commandName':'imageTypeInline','commandParams':[_0x530d54]},[],'convertInlineImageToBlock'),_0x10a26d['start']['isBefore'](_0x2b5f2d['start'])&&_0x12ba09['markInsertion'](_0x426c02['createRange'](_0x10a26d['start'],_0x2b5f2d['start']),'convertInlineImageToBlock'),_0x2b5f2d['end']['isBefore'](_0x10a26d['end'])&&_0x12ba09['markInsertion'](_0x426c02['createRange'](_0x2b5f2d['end'],_0x10a26d['end']),'convertInlineImageToBlock');});}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x12ba09['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c19e2])=>{const _0x421775=_0x12ba09['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5dca4f=_0x3c19e2['start'],_0x21140f=_0x3c19e2['end'];const _0x372d68=_0x209402['model']['schema']['getNearestSelectionRange'](_0x5dca4f,'backward'),_0x3d990e=_0x209402['model']['schema']['getNearestSelectionRange'](_0x21140f,'forward');_0x372d68['isCollapsed']&&(_0x5dca4f=_0x372d68['start']),_0x3d990e['isCollapsed']&&(_0x21140f=_0x3d990e['end']),_0x421775([_0x209402['model']['createRange'](_0x5dca4f,_0x21140f)]);}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xe70e96),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xe70e96)),_0x209402['plugins']['has']('ImageCaptionEditing')&&(_0x12ba09['enableCommand']('toggleImageCaption',(_0x27848c,_0x390071)=>{const _0x4aba1b=_0x209402['plugins']['get']('ImageCaptionUtils');let _0x24c526=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x4aa147=_0x4aba1b['getCaptionFromImageModelElement'](_0x24c526);_0x209402['model']['change'](()=>{if(_0x4aa147)return void _0x12ba09['markDeletion'](_0x209402['model']['createRangeOn'](_0x4aa147));const _0x50b502=_0xafc7ac['isBlockImage'](_0x24c526);_0x27848c(_0x390071),_0x24c526=_0xafc7ac['getClosestSelectedImageElement'](_0x209402['model']['document']['selection']),_0x4aa147=_0x4aba1b['getCaptionFromImageModelElement'](_0x24c526),_0x12ba09['markInsertion'](_0x209402['model']['createRangeOn'](_0x4aa147),_0x50b502?null:'imageCaption');});}),_0x12ba09['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xe70e96));const _0x14b626=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7375a3(_0x4ac498,_0x3b354b){const _0x28ca0c=_0x14b626['findIndex'](({type:_0x5c7049,subType:_0xb8ff35})=>_0x4ac498['type']==_0x5c7049&&_0x4ac498['subType']==_0xb8ff35),_0x3d9f85=_0x14b626['findIndex'](({type:_0x2aaa57,subType:_0x122305})=>_0x3b354b['type']==_0x2aaa57&&_0x3b354b['subType']==_0x122305);if(_0x28ca0c<0x0||_0x3d9f85<0x0)return!0x1;const _0x122fe3=_0x4ac498['getFirstRange'](),_0x204771=_0x3b354b['getFirstRange']();if((0x0==_0x28ca0c||0x1==_0x28ca0c)&&0x2==_0x3d9f85&&_0x122fe3['isIntersecting'](_0x204771))return!0x0;if(0x2==_0x28ca0c&&0x3==_0x3d9f85){const _0x21f6ee=_0x12ba09['_findSuggestions'](_0x122fe3,'insertion')['filter'](({suggestion:_0x5b26e1,meta:_0x27b8f8})=>_0x27b8f8['isOwn']&&'convertInlineImageToBlock'==_0x5b26e1['subType']);if(_0x21f6ee['length']>0x1&&_0x204771['end']['isEqual'](_0x122fe3['start']))return!0x0;if(0x1==_0x21f6ee['length']&&(_0x122fe3['start']['isEqual'](_0x204771['end'])||_0x122fe3['end']['isEqual'](_0x204771['start'])))return!0x0;}if(0x3==_0x28ca0c&&0x3==_0x3d9f85&&_0x122fe3['start']['isBefore'](_0x204771['start'])){const _0x494735=_0x122fe3['end']['nodeAfter'],_0x16f88f=_0x204771['start']['nodeBefore'];return _0xafc7ac['isBlockImage'](_0x494735)&&_0x494735===_0x16f88f;}return!0x1;}function _0xe70e96(_0x2f1ff8,_0x4fa3f8){return _0x7375a3(_0x2f1ff8,_0x4fa3f8)?[_0x2f1ff8,_0x4fa3f8]:_0x7375a3(_0x4fa3f8,_0x2f1ff8)?[_0x4fa3f8,_0x2f1ff8]:null;}_0x209402['plugins']['has']('ImageResize')&&(_0x12ba09['enableDefaultAttributesIntegration']('resizeImage'),_0x12ba09['registerBlockAttribute']('resizedWidth'),_0x12ba09['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x42075e,'FORMAT_IMAGE_SIZE'))),_0x209402['plugins']['has']('ImageTextAlternativeEditing')&&(_0x12ba09['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x12ba09['registerBlockAttribute']('alt')),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x5b5c12=>{if(!!_0x14b626['find'](({type:_0x3f02f8,subType:_0x548e87})=>_0x5b5c12['type']==_0x3f02f8&&_0x5b5c12['subType']==_0x548e87))return _0x5b5c12['previous']?{}:void 0x0;}),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x105d00=>{if('insertion'==_0x105d00['type']||'deletion'==_0x105d00['type']){const _0x1b395d=_0x105d00['getContainedElement']();if(_0x1b395d&&_0x1b395d['is']('element','caption'))return{'type':'insertion'==_0x105d00['type']?'addObject':'removeObject','element':_0x1b395d,'quantity':0x1};}}),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x499ce7=>'formatBlock'==_0x499ce7['type']&&'convertInlineImageToBlock'==_0x499ce7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x499ce7['type']&&'convertBlockImageToInline'==_0x499ce7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x12ba09['descriptionFactory']['registerDescriptionCallback'](_0x137beb=>{if('attribute'!=_0x137beb['type'])return;const {data:_0x5ea6c2}=_0x137beb;if(!_0x5ea6c2||'alt'!=_0x5ea6c2['key'])return;const _0x33a723=_0x5ea6c2['newValue'];return _0x33a723?{'type':'format','content':o(_0x42075e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33a723+'\x22')}:{'type':'format','content':o(_0x42075e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5918=this['editor'],_0x401ebd=_0x1c5918['locale'];_0x1c5918['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e22a1=>{if('formatBlock'!=_0x3e22a1['type']&&'formatInline'!=_0x3e22a1['type'])return;const {data:_0x9b701}=_0x3e22a1;if(_0x9b701){if('imageTextAlternative'==_0x9b701['commandName']){const _0x563a93=_0x9b701['commandParams'][0x0]['newValue'];return _0x563a93?{'type':'format','content':o(_0x401ebd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x563a93+'\x22')}:{'type':'format','content':o(_0x401ebd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x9b701['commandName']){const _0x3cf36a=_0x9b701['commandParams'][0x0]['width'];return _0x3cf36a?{'type':'format','content':o(_0x401ebd,'*Set\x20image\x20width:*\x20%0',_0x3cf36a)}:{'type':'format','content':o(_0x401ebd,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30aac0=this['editor']['locale'],_0x3eb2df=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eb2df['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3eb2df['registerBlockAttribute']('src'),_0x3eb2df['descriptionFactory']['registerDescriptionCallback'](_0x5af5ef=>{if('attribute'!=_0x5af5ef['type'])return;const {data:_0x5b3cb8}=_0x5af5ef;return _0x5b3cb8&&'src'==_0x5b3cb8['key']?_0x5b3cb8['newValue']&&_0x5b3cb8['oldValue']?{'type':'format','content':o(_0x30aac0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26ce4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x26ce4c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x26ce4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26ce4c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x26ce4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e5458=this['editor'],_0x59bc3c=_0x2e5458['locale'];_0x2e5458['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9c94=>{if('formatBlock'!=_0x5a9c94['type']&&'formatInline'!=_0x5a9c94['type'])return;const {data:_0x2ef5f0}=_0x5a9c94;if(!_0x2ef5f0||'replaceImageSource'!=_0x2ef5f0['commandName'])return;return{'type':'format','content':o(_0x59bc3c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48c5b5{['afterInit'](){const _0x1825e4=this['editor'];if(!_0x1825e4['plugins']['has']('ImageStyleEditing'))return;const _0xb64974=_0x1825e4['plugins']['get']('TrackChangesEditing'),_0x379888=_0x1825e4['plugins']['get']('ImageUtils'),_0x5a28a5={};_0xb64974['enableCommand']('imageStyle',(_0x20b62d,_0x380715)=>{const _0x44cf46=_0x1825e4['plugins']['get']('Users')['me'],_0xf3ebc7=_0x1825e4['commands']['get']('imageStyle');let _0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),_0x562df4=_0x1825e4['model']['createRangeOn'](_0x1d4b07),_0x9bd763=_0xf3ebc7['value'];if(_0x9bd763==_0x380715['value'])return;const _0x33c00d={'commandName':'imageStyle','commandParams':[_0x380715],'formatGroupId':_0x5790ee()};_0x1825e4['model']['change'](()=>{if(_0xb64974['getSuggestions']()['filter'](_0x365302=>_0x365302['isInContent']&&_0x44cf46==_0x365302['author']&&('formatBlock'==_0x365302['type']||'formatInline'==_0x365302['type'])&&('imageStylePreApply'==_0x365302['subType']||'imageStylePostApply'==_0x365302['subType'])&&_0x365302['getFirstRange']()['isEqual'](_0x562df4))['forEach'](_0x27a61a=>_0xb64974['discardSuggestion'](_0x27a61a['head'])),_0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),_0x562df4=_0x1825e4['model']['createRangeOn'](_0x1d4b07),_0xf3ebc7['refresh'](),_0x1825e4['commands']['get']('imageTypeInline')['refresh'](),_0x1825e4['commands']['get']('imageTypeBlock')['refresh'](),_0x9bd763=_0xf3ebc7['value'],_0x9bd763!=_0x380715['value'])return _0x379888['isInlineImage'](_0x1d4b07)&&_0xf3ebc7['shouldConvertImageType'](_0x380715['value'],_0x1d4b07)?(_0x20b62d({..._0x380715,'setImageSizes':!0x1}),_0x1d4b07=_0x379888['getClosestSelectedImageElement'](_0x1825e4['model']['document']['selection']),void _0xb64974['markBlockFormat'](_0x1d4b07,{..._0x33c00d,'commandReversedParams':[{'value':_0x9bd763||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x379888['isBlockImage'](_0x1d4b07)?_0xb64974['markBlockFormat'](_0x1d4b07,_0x33c00d,[],'imageStylePostApply'):_0xb64974['markInlineFormat'](_0x562df4,_0x33c00d,'imageStylePostApply'));});});for(const _0xf2d107 of _0x1825e4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5a28a5[_0xf2d107['name']]=_0xf2d107['title']['toLowerCase']();_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c5c4e])=>{_0x379888['setImageNaturalSizeAttributes'](_0x5c5c4e['getContainedElement']());}),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a1f5c,_0x15b0ff)=>{_0xb64974['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a1f5c,{'commandName':_0x15b0ff['commandName'],'commandParams':_0x15b0ff['commandReversedParams']});}),_0xb64974['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52f081,_0x24fc38){if(_0x107c97(_0x52f081,_0x24fc38))return[_0x52f081,_0x24fc38];if(_0x107c97(_0x24fc38,_0x52f081))return[_0x24fc38,_0x52f081];return null;});const _0x27ae9e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x107c97(_0x1ab8d1,_0x3f1de3){const _0x556bbf=_0x27ae9e['findIndex'](({type:_0x2e6efb,subType:_0x224429})=>_0x1ab8d1['type']==_0x2e6efb&&_0x1ab8d1['subType']==_0x224429),_0x59ffe4=_0x27ae9e['findIndex'](({type:_0xf90113,subType:_0xc26bf1})=>_0x3f1de3['type']==_0xf90113&&_0x3f1de3['subType']==_0xc26bf1);if(_0x556bbf<0x0||_0x59ffe4<0x0)return!0x1;const _0x4fc2db=_0x1ab8d1['getFirstRange'](),_0x547293=_0x3f1de3['getFirstRange']();if((0x0==_0x556bbf||0x1==_0x556bbf)&&0x2==_0x59ffe4&&_0x4fc2db['isIntersecting'](_0x547293))return!0x0;if(0x2==_0x556bbf&&0x3==_0x59ffe4){const _0x13fd5c=_0xb64974['_findSuggestions'](_0x4fc2db,'insertion')['filter'](({suggestion:_0x3e9474,meta:_0x35ebf9})=>_0x35ebf9['isOwn']&&'convertInlineImageToBlock'==_0x3e9474['subType']);if(_0x13fd5c['length']>0x1&&_0x547293['end']['isEqual'](_0x4fc2db['start']))return!0x0;if(0x1==_0x13fd5c['length']&&(_0x4fc2db['start']['isEqual'](_0x547293['end'])||_0x4fc2db['end']['isEqual'](_0x547293['start'])))return!0x0;}if(0x3==_0x556bbf&&0x3==_0x59ffe4&&_0x4fc2db['start']['isBefore'](_0x547293['start'])){const _0x5a60cc=_0x4fc2db['end']['nodeAfter'],_0x1e2ba5=_0x547293['start']['nodeBefore'];return _0x379888['isBlockImage'](_0x5a60cc)&&_0x5a60cc===_0x1e2ba5;}return!0x1;}_0x1825e4['model']['document']['registerPostFixer'](()=>{let _0x567f5d=!0x1;const _0x3e0131=Array['from'](_0x1825e4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597601,data:_0x57242a}of _0x3e0131){const {group:_0x5ed5c9,type:_0x2bf92f,subType:_0x42bf51,id:_0x24989c}=_0xb64974['_splitMarkerName'](_0x597601);if('suggestion'==_0x5ed5c9&&_0xb64974['hasSuggestion'](_0x24989c)){if('formatBlock'==_0x2bf92f&&('imageStylePreApply'==_0x42bf51||'imageStylePostApply'==_0x42bf51)){const _0x40c14f=_0xb64974['getSuggestion'](_0x24989c);if(_0x57242a['newRange']){const _0x42ac9e=_0x40c14f['getFirstRange']()['getContainedElement']();if(_0x379888['isBlockImage'](_0x42ac9e))continue;_0xb64974['discardSuggestion'](_0x40c14f),_0x567f5d=!0x0;}}if('insertion'==_0x2bf92f&&'imageCaption'==_0x42bf51&&!_0x57242a['newRange']){const _0x41f3c7=_0xb64974['getSuggestion'](_0x24989c);_0x41f3c7['next']&&_0x41f3c7['next']['isInContent']&&(_0xb64974['discardSuggestion'](_0x41f3c7['next']),_0x567f5d=!0x0);}}}return _0x567f5d;}),this['_registerLegacyDescription'](_0x5a28a5);}['_registerLegacyDescription'](_0x17adb7){const _0x541484=this['editor'],_0x375a84=_0x541484['locale'];_0x541484['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9c55f8=>{if('formatBlock'!=_0x9c55f8['type']&&'formatInline'!=_0x9c55f8['type'])return;const {data:_0x347ec9}=_0x9c55f8;if(!_0x347ec9||'imageStyle'!=_0x347ec9['commandName'])return;const _0x3e76dd=_0x347ec9['commandParams'][0x0]['value'];return _0x1ad072('side'===_0x3e76dd?o(_0x375a84,'FORMAT_SIDE_IMAGE'):_0x17adb7[_0x3e76dd]||_0x3e76dd);function _0x1ad072(_0x3e6544){return{'type':'format','content':o(_0x375a84,'*Format:*\x20%0',_0x3e6544)};}});}}class at extends _0x48c5b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x15012b){super(_0x15012b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x14fd3e=this['editor'],_0x1ef048=_0x14fd3e['commands']['get']('importWord'),_0x521120=_0x14fd3e['commands']['get']('trackChanges');_0x1ef048&&(_0x1ef048['on']('execute',(_0x12086c,[,_0x22cde7])=>{this['_trackChangesValueDuringImport']=_0x521120['value'],_0x22cde7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ef048,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ef048,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x521120['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x14fd3e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x51c0f7,_0x44ae24){const {suggestions:_0x10731c}=_0x44ae24,_0x146026=this['editor']['commands']['get']('trackChanges'),_0x1b04bc=_0x146026['value'];this['_trackChangesValueDuringImport']!==_0x1b04bc&&(_0x146026['execute'](),this['_trackChangesExecuted']=!0x0),_0x10731c&&_0x10731c['forEach'](({id:_0x3b1c82,type:_0x42c988,author:_0x3f334e,created_at:_0x13b1db})=>{const _0x63b573={'id':_0x3b1c82,'type':_0x42c988,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f334e,'createdAt':_0x13b1db?new Date(_0x13b1db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x63b573);});}}class ct extends _0x48c5b5{['afterInit'](){const _0x3dc954=this['editor'],_0xfe3b0f=_0x3dc954['plugins']['get']('TrackChangesEditing');if(_0x3dc954['plugins']['has']('IndentEditing')&&(_0xfe3b0f['enableCommand']('indent'),_0xfe3b0f['enableCommand']('outdent')),_0x3dc954['plugins']['has']('IndentBlock')){for(const _0x70e399 of['indentBlock','outdentBlock'])_0xfe3b0f['enableDefaultAttributesIntegration'](_0x70e399);}const _0x164610=_0x3dc954['locale'];_0xfe3b0f['registerBlockAttribute']('blockIndent'),_0xfe3b0f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x164610,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238622=this['editor'],_0x48a313=_0x238622['locale'],_0x1b5446=_0x238622['plugins']['get']('TrackChangesEditing');_0x1b5446['descriptionFactory']['registerDescriptionCallback'](_0x3556eb=>{if('formatBlock'!=_0x3556eb['type'])return;const {data:_0x5142e7}=_0x3556eb;if(!_0x5142e7)return;if('indentBlock'!=_0x5142e7['commandName']&&'outdentBlock'!=_0x5142e7['commandName'])return;const _0x422a8b=_0x3556eb['getItems']()[0x0],_0x549375=_0x1b5446['descriptionFactory']['getItemLabel'](_0x422a8b);return'indentBlock'==_0x5142e7['commandName']?{'type':'format','content':o(_0x48a313,'*Indent:*\x20%0',_0x549375)}:'outdentBlock'==_0x5142e7['commandName']?{'type':'format','content':o(_0x48a313,'*Outdent:*\x20%0',_0x549375)}:void 0x0;});}}class ut extends _0x48c5b5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x48c5b5{['afterInit'](){const _0x1ae590=this['editor'];if(!_0x1ae590['plugins']['has']('LinkEditing'))return;const _0x12a5e9=_0x1ae590['plugins']['get']('TrackChangesEditing'),_0x2053bd=_0x1ae590['commands']['get']('link');_0x12a5e9['enableDefaultAttributesIntegration']('link'),_0x12a5e9['enableDefaultAttributesIntegration']('unlink'),_0x12a5e9['registerInlineAttribute']('linkHref');for(const _0x3caca5 of _0x2053bd['manualDecorators'])_0x12a5e9['registerInlineAttribute'](_0x3caca5['id']),_0x12a5e9['descriptionFactory']['registerAttributeLabel'](_0x3caca5['id'],'link\x20('+_0x3caca5['label']['toLowerCase']()+')');_0x12a5e9['descriptionFactory']['registerDescriptionCallback'](_0x2cb9eb=>{if('attribute'!=_0x2cb9eb['type'])return;const {data:_0x1dfa2f}=_0x2cb9eb;if(!_0x1dfa2f||'linkHref'!=_0x1dfa2f['key'])return;const _0x672856=_0x1dfa2f['newValue'],_0x585cbb=_0x1ae590['locale'];return{'type':'format','content':null==_0x672856?o(_0x585cbb,'*Remove\x20link*'):o(_0x585cbb,'*Set\x20link:*\x20%0','\x22'+_0x672856+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e94d2=this['editor'],_0x2a06b5=_0x2e94d2['locale'];_0x2e94d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x250034=>{if('formatInline'!=_0x250034['type'])return;const {data:_0x30448b}=_0x250034;if(_0x30448b){if('link'==_0x30448b['commandName']){const _0x3266a6=_0x30448b['commandParams'][0x0];return{'type':'format','content':o(_0x2a06b5,'*Set\x20link:*\x20%0','\x22'+_0x3266a6+'\x22')};}return'unlink'==_0x30448b['commandName']?{'type':'format','content':o(_0x2a06b5,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x48c5b5{['afterInit'](){const _0x2705aa=this['editor'],_0x563d54=_0x2705aa['locale'];if(!_0x2705aa['plugins']['has']('LegacyListEditing'))return;const _0x54bd3f=_0x2705aa['plugins']['get']('TrackChangesEditing'),_0x2b5dc1=_0x2705aa['plugins']['has']('LegacyTodoListEditing');function _0x44fe55(_0x3d51a5){return()=>{const _0x5ec894=_0x2705aa['model']['document']['selection'],_0x461b50=_0x2705aa['commands']['get'](_0x3d51a5);if(_0x461b50['value'])return void _0x2705aa['execute']('paragraph',{});const _0x44e39b=_0x3d51a5['slice'](0x0,-0x4),_0x11d062=function(_0x44e3f7,_0x33513b,_0x49bd49){let _0x563a19=Array['from'](_0x44e3f7)['filter'](_0x242380=>function(_0x2ab2d2,_0x2decf8){return _0x2decf8['checkChild'](_0x2ab2d2['parent'],'listItem')&&!_0x2decf8['isObject'](_0x2ab2d2);}(_0x242380,_0x49bd49));_0x563a19=_0x563a19['filter'](_0x3fdd1d=>!_0x3fdd1d['is']('element','listItem')||_0x3fdd1d['getAttribute']('listType')!=_0x33513b);const _0x145b7b=new Set();for(const _0x3f2af2 of _0x563a19)_0x3f2af2['is']('element','listItem')?_0x145b7b['add'](fe(_0x3f2af2)):_0x145b7b['add'](_0x3f2af2);return Array['from'](_0x145b7b);}(_0x5ec894['getSelectedBlocks'](),_0x44e39b,_0x2705aa['model']['schema']);_0x2705aa['model']['change'](()=>{for(const _0x1c8e70 of _0x11d062)_0x54bd3f['markBlockFormat'](_0x1c8e70,{'commandName':_0x3d51a5,'commandParams':[{'forceValue':!_0x461b50['value']}],'formatGroupId':'blockName'},ue(_0x1c8e70));});};}function _0x3e3eaf(_0x14477a){return()=>{const _0x1d53c8=function(_0x1854a7){let _0x3812a8=Array['from'](_0x1854a7);const _0x777924=_0x3812a8['findIndex'](_0x335a99=>'listItem'!=_0x335a99['name']);return _0x777924>-0x1&&(_0x3812a8=_0x3812a8['slice'](0x0,_0x777924)),_0x3812a8;}(_0x2705aa['model']['document']['selection']['getSelectedBlocks']()),_0x3f861c=_0x2705aa['model']['createRange'](_0x2705aa['model']['createPositionAt'](_0x1d53c8[0x0],'before'),_0x2705aa['model']['createPositionAt'](_0x1d53c8[_0x1d53c8['length']-0x1],'end'));_0x2705aa['model']['change'](()=>{_0x54bd3f['markBlockFormat'](_0x3f861c,{'commandName':_0x14477a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b68b3){const _0x2fe769=new Set();for(const _0x4913f8 of _0x5b68b3){let _0x2643b9=_0x4913f8['nextSibling'];for(;_0x2643b9&&_0x2643b9['getAttribute']('listIndent')>_0x4913f8['getAttribute']('listIndent');)_0x2fe769['add'](_0x2643b9),_0x2643b9=_0x2643b9['nextSibling'];}return Array['from'](_0x2fe769);}(_0x1d53c8));});};}_0x54bd3f['enableCommand']('numberedList',_0x44fe55('numberedList')),_0x54bd3f['enableCommand']('bulletedList',_0x44fe55('bulletedList')),_0x2b5dc1&&_0x54bd3f['enableCommand']('todoList',_0x44fe55('todoList')),_0x54bd3f['enableCommand']('indentList',_0x3e3eaf('indentList')),_0x54bd3f['enableCommand']('outdentList',_0x3e3eaf('outdentList')),_0x2b5dc1&&_0x54bd3f['enableCommand']('checkTodoList',()=>{const _0x43e99b=_0x2705aa['commands']['get']('checkTodoList'),_0x490767=Array['from'](_0x43e99b['_selectedElements']);_0x490767['filter'](_0x4c19ab=>_0x4c19ab['getAttribute']('todoListChecked')!=_0x43e99b['value']),_0x2705aa['model']['change'](()=>{for(const _0x535898 of _0x490767)_0x54bd3f['markBlockFormat'](_0x535898,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x43e99b['value']}]});});}),_0x54bd3f['descriptionFactory']['registerElementLabel']('listItem',_0x183733=>o(_0x563d54,'ELEMENT_LIST_ITEM',_0x183733)),_0x54bd3f['descriptionFactory']['registerDescriptionCallback'](_0x243e90=>{if('formatBlock'!=_0x243e90['type']&&'formatInline'!=_0x243e90['type'])return;const {data:_0x52abdf}=_0x243e90;if(_0x52abdf){if('numberedList'==_0x52abdf['commandName']||'bulletedList'==_0x52abdf['commandName']||'todoList'==_0x52abdf['commandName'])switch(_0x52abdf['commandName']['replace']('List','')){case'bulleted':return _0xdeeb2(o(_0x563d54,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xdeeb2(o(_0x563d54,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xdeeb2(o(_0x563d54,'ELEMENT_TODO_LIST'));}if('indentList'==_0x52abdf['commandName'])return{'type':'format','content':o(_0x563d54,'*Indent:*\x20%0',o(_0x563d54,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x52abdf['commandName'])return{'type':'format','content':o(_0x563d54,'*Outdent:*\x20%0',o(_0x563d54,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x52abdf['commandName'])return _0x52abdf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x563d54,'*Check\x20item*')}:{'type':'format','content':o(_0x563d54,'*Uncheck\x20item*')};}function _0xdeeb2(_0x2bdece){return{'type':'format','content':o(_0x563d54,'*Change\x20to:*\x20%0',_0x2bdece)};}});}}function fe(_0x29110d){const _0x521bcc=_0x29110d['getAttribute']('listIndent');if(0x0==_0x521bcc)return _0x29110d;let _0x54af99=_0x29110d;for(;_0x29110d['previousSibling']&&_0x29110d['previousSibling']['is']('element','listItem');){const _0x33c1c6=_0x29110d['previousSibling']['getAttribute']('listIndent');if(_0x33c1c6==_0x521bcc)_0x54af99=_0x29110d['previousSibling'];else{if(_0x33c1c6<_0x521bcc)break;}_0x29110d=_0x29110d['previousSibling'];}return _0x54af99;}function ue(_0xb492d0){const _0x1c5cb4=[];if(_0xb492d0['is']('element','listItem')&&_0xb492d0['getAttribute']('listIndent')>0x0){let _0x30e2de=_0xb492d0['nextSibling'];for(;_0x30e2de&&'listItem'==_0x30e2de['name']&&_0x30e2de['getAttribute']('listIndent')==_0xb492d0['getAttribute']('listIndent');)_0x1c5cb4['push'](_0x30e2de),_0x30e2de=_0x30e2de['nextSibling'];}return _0x1c5cb4;}class W extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x461215=this['editor']['config']['get']('list.properties'),_0x47e209=this['editor']['plugins']['get']('TrackChangesEditing');_0x461215['styles']&&_0x47e209['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x461215['reversed']&&_0x47e209['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x461215['startIndex']&&_0x47e209['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47e209['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x25a2a3,_0x32bf19={}){const _0x54e682=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f0096=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54e682['markMultiRangeBlockFormat'](_0x4f0096,{'commandName':'listStyle','commandParams':[{'type':_0x32bf19['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x355c7b,_0x31c6f1={}){const _0x29e9d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21819d=this['_getSuggestionBlocks'](_0x3943b0=>_0x3943b0['is']('element','listItem')&&'numbered'===_0x3943b0['getAttribute']('listType'));if(_0x21819d['length']<0x1)return;const _0x44ef28=_0x21819d['map'](_0x5c7f51=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c7f51,'before'),this['editor']['model']['createPositionAt'](_0x5c7f51,0x0)));this['editor']['model']['change'](()=>{_0x29e9d5['markMultiRangeBlockFormat'](_0x44ef28,{'commandName':'listReversed','commandParams':[{'reversed':_0x31c6f1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x352a98,_0x8ab579={}){const _0x457664=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc3add0=this['_getSuggestionBlocks'](_0xdcd079=>_0xdcd079['is']('element','listItem')&&'numbered'===_0xdcd079['getAttribute']('listType'));if(_0xc3add0['length']<0x1)return;const _0x25d225=_0xc3add0['map'](_0x1e049b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e049b,'before'),this['editor']['model']['createPositionAt'](_0x1e049b,0x0)));this['editor']['model']['change'](()=>{_0x457664['markMultiRangeBlockFormat'](_0x25d225,{'commandName':'listStart','commandParams':[{'startIndex':_0x8ab579['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4d9caf){if('formatBlock'!=_0x4d9caf['type']&&'formatInline'!=_0x4d9caf['type'])return;const _0x2fefaf=this['editor']['locale'],{data:_0x106dae}=_0x4d9caf;if(!_0x106dae)return;let _0x3c7031,_0x30bfdb;switch(_0x106dae['commandName']){case'listStyle':_0x3c7031='*Change\x20to:*\x20%0',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031,o(_0x2fefaf,this['_getTranslationKeyForListStyle'](_0x106dae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c7031=_0x106dae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031)};break;case'listStart':_0x3c7031='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30bfdb={'type':'format','content':o(_0x2fefaf,_0x3c7031,_0x106dae['commandParams'][0x0]['startIndex'])};}return _0x30bfdb;}['_getSuggestionBlocksForListStyle'](){const _0x459b3a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1854b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1854b1[0x0]?.['is']('element','listItem')&&_0x1854b1['unshift'](..._0x459b3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1854b1[_0x1854b1['length']-0x1]?.['is']('element','listItem')&&_0x1854b1['push'](..._0x459b3a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1854b1=[...new Set(_0x1854b1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1854b1=_0x1854b1['filter'](_0x3f3c38=>_0x3f3c38['is']('element','listItem'))),_0x1854b1;}['_getSuggestionBlocks'](_0x20e847){const _0x17af24=this['editor']['plugins']['get']('LegacyListUtils');let _0x32f2d5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x20e847)['map'](_0x2e7803=>{const _0x1b0c05=this['editor']['model']['createPositionAt'](_0x2e7803,0x0);return[..._0x17af24['getSiblingNodes'](_0x1b0c05,'backward'),..._0x17af24['getSiblingNodes'](_0x1b0c05,'forward')];})['flat']();return _0x32f2d5=[...new Set(_0x32f2d5)],_0x32f2d5;}['_getTranslationKeyForListStyle'](_0x6d1de4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6d1de4)||'default')['toUpperCase']()+'_LIST_'+_0x6d1de4['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48c5b5{['afterInit'](){const _0x441e18=this['editor'];if(!_0x441e18['plugins']['has']('MediaEmbedEditing'))return;const _0x2cb483=_0x441e18['plugins']['get']('TrackChangesEditing'),_0x446d65=_0x441e18['locale'];_0x2cb483['enableCommand']('mediaEmbed'),_0x2cb483['descriptionFactory']['registerElementLabel']('media',_0x5ecb34=>o(_0x446d65,'ELEMENT_MEDIA',_0x5ecb34)),_0x441e18['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5df96d,{writer:_0x4cf853,options:_0xd1097d})=>{if(_0xd1097d['showSuggestionHighlights'])return _0x4cf853['createEmptyElement']('div');},'converterPriority':'high'}),_0x441e18['data']['downcastDispatcher']['on']('attribute:url:media',(_0x337ac6,_0x1e4a0c,_0x10ac49)=>{_0x10ac49['options']['showSuggestionHighlights']&&_0x337ac6['stop']();},{'priority':'high'});}}class mt extends _0x48c5b5{['afterInit'](){const _0x3e038f=this['editor'];_0x3e038f['plugins']['has']('MentionEditing')&&_0x3e038f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x48c5b5{['afterInit'](){const _0xd06dff=this['editor'];if(!_0xd06dff['plugins']['has']('MergeFieldsEditing'))return;_0xd06dff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xd06dff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5e7286=_0xd06dff['plugins']['get']('TrackChangesEditing'),_0x234c89=_0xd06dff['locale'];_0x5e7286['descriptionFactory']['registerElementLabel']('mergeField',_0x1c05dc=>o(_0x234c89,'ELEMENT_MERGE_FIELD',_0x1c05dc)),_0x5e7286['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15b16a=>o(_0x234c89,'ELEMENT_MERGE_FIELD',_0x15b16a)),_0x5e7286['descriptionFactory']['registerDescriptionCallback'](_0x290036=>{if('insertion'!=_0x290036['type']&&'deletion'!=_0x290036['type'])return;const _0x290663=_0x290036['getContainedElement']();if(null==_0x290663)return;if(!_0x290663['is']('element','mergeField')&&!_0x290663['is']('element','mergeFieldBlock'))return;const _0x4bcb17=_0xd06dff['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x290663['getAttribute']('id'));return'insertion'==_0x290036['type']?{'type':'insertion','content':o(_0x234c89,'*Insert:*\x20%0','\x22'+_0x4bcb17+'\x22\x20'+o(_0x234c89,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x234c89,'*Remove:*\x20%0','\x22'+_0x4bcb17+'\x22\x20'+o(_0x234c89,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48c5b5{['afterInit'](){const _0x25ec19=this['editor'],_0x3cac63=_0x25ec19['plugins']['get']('TrackChangesEditing');_0x25ec19['plugins']['has']('MultiLevelList')&&(_0x3cac63['enableDefaultAttributesIntegration']('multiLevelList'),_0x3cac63['registerBlockAttribute']('listMarkerStyle'),_0x3cac63['descriptionFactory']['registerDescriptionCallback'](_0x387d5f=>this['handleDescriptions'](_0x387d5f)));}['handleDescriptions'](_0x430f09){const _0x325aec=this['editor']['locale'],{data:_0x234478}=_0x430f09,_0x1c92b6={'type':'format','content':''};if(_0x234478&&'listMarkerStyle'==_0x234478['key']){if(!_0x234478['oldValue'])return{'type':'format','content':o(_0x325aec,'*Set\x20format:*\x20%0',o(_0x325aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x234478['newValue']+')'};if(!_0x234478['newValue']){let _0x44667d=_0x430f09['head'];for(;_0x44667d;){if(_0x44667d['data']&&'listType'==_0x44667d['data']['key']&&_0x44667d['data']['newValue'])return _0x1c92b6;_0x44667d=_0x44667d['next'];}return{'type':'format','content':o(_0x325aec,'*Remove\x20format:*\x20%0',o(_0x325aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x234478['oldValue']+')'};}}}}class kt extends _0x48c5b5{['afterInit'](){const _0x724abb=this['editor'];if(!_0x724abb['plugins']['has']('PageBreakEditing'))return;_0x724abb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1793a0=_0x724abb['plugins']['get']('TrackChangesEditing'),_0x4465fc=_0x724abb['locale'];_0x1793a0['descriptionFactory']['registerElementLabel']('pageBreak',_0x449dae=>o(_0x4465fc,'ELEMENT_PAGE_BREAK',_0x449dae));}}class bt extends _0x48c5b5{['afterInit'](){const _0x4faa16=this['editor'];if(!_0x4faa16['plugins']['has']('Paragraph'))return;const _0x26c33d=_0x4faa16['locale'],_0x4243b7=_0x4faa16['plugins']['get']('TrackChangesEditing');_0x4243b7['descriptionFactory']['registerElementLabel']('paragraph',_0x5d9365=>o(_0x26c33d,'ELEMENT_PARAGRAPH',_0x5d9365)),_0x4243b7['enableDefaultAttributesIntegration']('paragraph'),_0x4243b7['enableCommand']('insertParagraph'),_0x4faa16['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4faa16),{'priority':'highest'}),_0x4faa16['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x362455,_0x5040e1,_0x3af2ac)=>{_0x3af2ac['options']['showSuggestionHighlights']&&nr(_0x4faa16,{'showActiveMarker':!0x1})(_0x362455,_0x5040e1,_0x3af2ac);},{'priority':'highest'});const _0x356bed=_0x4243b7['descriptionFactory'];_0x356bed['registerDescriptionCallback'](_0x2f1151=>{if('insertion'!==_0x2f1151['type'])return;const {start:_0x1e0986,end:_0x423f7e}=_0x2f1151['getFirstRange']();if(!_0x1e0986['isTouching'](_0x423f7e)||!_0x1e0986['nodeAfter'])return;const _0x1ac431=_0x4faa16['model']['schema'],_0x32df8b=_0x1e0986['nodeAfter'];return _0x1ac431['isBlock'](_0x32df8b)&&!_0x1ac431['isLimit'](_0x32df8b)&&_0x1ac431['checkChild'](_0x32df8b,'$text')?{'type':'insertion','content':o(_0x26c33d,'*Insert:*\x20%0',_0x356bed['getItemLabel'](_0x32df8b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5ef3=this['editor'],_0x11af95=_0x1b5ef3['locale'];_0x1b5ef3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b322b=>{if('formatBlock'!=_0x3b322b['type'])return;const {data:_0x1d4da1}=_0x3b322b;return _0x1d4da1&&'paragraph'==_0x1d4da1['commandName']?{'type':'format','content':o(_0x11af95,'*Change\x20to:*\x20%0',o(_0x11af95,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4a6379,{showActiveMarker:_0x34589f=!0x0}={}){return(_0x148f01,_0x1046bd,_0x2c2099)=>{const _0x15f6d2=_0x4a6379['plugins']['get']('TrackChangesEditing'),_0xb0aa0e=_0x1046bd['markerRange']['start'],_0x14a0c5=_0x1046bd['markerRange']['end'],_0x4853d4=_0x4a6379['model']['schema'];if(!_0xb0aa0e['isTouching'](_0x14a0c5)||!_0xb0aa0e['nodeAfter'])return;const _0x85011b=_0xb0aa0e['nodeAfter'];if(_0x4853d4['isBlock'](_0x85011b)&&!_0x4853d4['isLimit'](_0x85011b)&&_0x4853d4['checkChild'](_0x85011b,'$text')){if(!_0x2c2099['consumable']['consume'](_0x1046bd['markerRange'],_0x148f01['name']))return;const {authorId:_0x321b6f}=_0x15f6d2['_splitMarkerName'](_0x1046bd['markerName']),_0x50120a=_0x2c2099['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x321b6f}),_0xe813d4=_0x2c2099['mapper']['toViewPosition'](_0x14a0c5);_0x34589f&&_0x15f6d2['activeMarkers']['includes'](_0x1046bd['markerName'])&&_0x2c2099['writer']['addClass']('ck-suggestion-marker--active',_0x50120a),_0x2c2099['writer']['insert'](_0xe813d4,_0x50120a),_0x2c2099['mapper']['bindElementToMarker'](_0x50120a,_0x1046bd['markerName']);}};}class wt extends _0x48c5b5{['afterInit'](){const _0x3ff477=this['editor'];if(!_0x3ff477['plugins']['has']('RemoveFormatEditing'))return;_0x3ff477['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e4e3f=this['editor'];_0x3e4e3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fdd2f=>{if('formatBlock'!=_0x1fdd2f['type']&&'formatInline'!=_0x1fdd2f['type'])return;const {data:_0x59f106}=_0x1fdd2f;return _0x59f106&&'removeFormat'==_0x59f106['commandName']?{'type':'format','content':o(_0x3e4e3f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x48c5b5{['afterInit'](){const _0x5bd55e=this['editor'];if(!_0x5bd55e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x24d0f8=_0x5bd55e['plugins']['get']('TrackChangesEditing');_0x24d0f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x24d0f8['enableCommand']('goToNextRestrictedEditingException');const _0x39ea96=_0x5bd55e['plugins']['get']('RestrictedEditingModeEditing');_0x39ea96['enableCommand']('trackChanges'),_0x39ea96['enableCommand']('acceptSuggestion'),_0x39ea96['enableCommand']('discardSuggestion'),_0x39ea96['enableCommand']('acceptAllSuggestions'),_0x39ea96['enableCommand']('discardAllSuggestions'),_0x39ea96['enableCommand']('acceptSelectedSuggestions'),_0x39ea96['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48c5b5{static get['requires'](){return[_0x7d8e06];}['init'](){const _0x4b40c2=this['editor'],_0x1101e6=_0x4b40c2['plugins']['get']('TrackChangesEditing');_0x1101e6['enableCommand']('shiftEnter'),_0x4b40c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4b40c2),{'priority':'high'}),_0x4b40c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4b40c2),{'priority':'high'}),_0x4b40c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c4a0c,_0x26df93,_0x3109e1)=>{_0x3109e1['options']['showSuggestionHighlights']&&ge(_0x4b40c2,{'showActiveMarker':!0x1})(_0x3c4a0c,_0x26df93,_0x3109e1);}),_0x1101e6['descriptionFactory']['registerElementLabel']('softBreak',_0x1ee677=>o(_0x4b40c2['locale'],'ELEMENT_LINE_BREAK',_0x1ee677));}}function ge(_0x5398a6,{showActiveMarker:_0x15b423=!0x0}={}){return(_0x9b6a6,_0x2a8934,_0x4c0025)=>{const _0x434d0b=_0x5398a6['plugins']['get']('TrackChangesEditing');if(!_0x4c0025['consumable']['test'](_0x2a8934['markerRange'],_0x9b6a6['name']))return;const _0x2c8589=_0x5398a6['model'];for(const _0x50c827 of _0x2a8934['markerRange']['getItems']()){if(!_0x50c827['is']('element','softBreak'))continue;const _0xd4f8ce='deletion'==_0x2a8934['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1fcc79}=_0x434d0b['_splitMarkerName'](_0x2a8934['markerName']),_0xb4f876=_0x4c0025['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd4f8ce,'data-author-id':_0x1fcc79}),_0x1927a0=_0x4c0025['mapper']['toViewPosition'](_0x2c8589['createPositionBefore'](_0x50c827));_0x15b423&&_0x434d0b['activeMarkers']['includes'](_0x2a8934['markerName'])&&_0x4c0025['writer']['addClass']('ck-suggestion-marker--active',_0xb4f876),_0x4c0025['writer']['insert'](_0x1927a0,_0xb4f876),_0x4c0025['mapper']['bindElementToMarker'](_0xb4f876,_0x2a8934['markerName']);}};}class St extends _0x48c5b5{['afterInit'](){const _0x3f7007=this['editor'],_0x5f403a=_0x3f7007['model'],_0x4cd0b9=_0x3f7007['locale'];if(!_0x3f7007['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c8f75=_0x3f7007['plugins']['get']('TrackChangesEditing'),_0xcfca33='restrictedEditingException',_0x3c1316=_0x3f7007['commands']['get'](_0xcfca33);_0x5c8f75['enableCommand'](_0xcfca33,(_0x5a425c,_0x126a95={})=>{const _0x15be91=_0x5f403a['document']['selection'];if(_0x15be91['isCollapsed'])return void _0x5a425c(_0x126a95);const _0x5a63e7=void 0x0!==_0x126a95['forceValue']?_0x126a95['forceValue']:!_0x3c1316['value'];_0x5f403a['change'](()=>{const _0x13b9dc=Array['from'](_0x15be91['getRanges']());for(const _0x3dd548 of _0x13b9dc){const _0x41cf87=_0x5a63e7?[_0x3dd548]:io(_0xcfca33,_0x3dd548,_0x5f403a);for(const _0x52ac97 of _0x41cf87)_0x5c8f75['markInlineFormat'](_0x52ac97,{'commandName':_0xcfca33,'commandParams':[{'forceValue':_0x5a63e7}]});}});}),_0x5c8f75['descriptionFactory']['registerDescriptionCallback'](_0x46ee43=>{if('formatBlock'!=_0x46ee43['type']&&'formatInline'!=_0x46ee43['type'])return;const {data:_0x24d09e}=_0x46ee43;return _0x24d09e&&_0x24d09e['commandName']==_0xcfca33?_0x24d09e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cd0b9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4cd0b9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48c5b5{['afterInit'](){const _0x58d62f=this['editor'];if(!_0x58d62f['plugins']['has']('Style')||!_0x58d62f['plugins']['has']('DataSchema'))return;const _0x1de721=_0x58d62f['plugins']['get']('TrackChangesEditing'),_0x5d3f04=_0x58d62f['locale'],_0x2686e1=_0x58d62f['config']['get']('style')||{},_0x3105df=_0x58d62f['plugins']['get']('GeneralHtmlSupport'),_0x33689c=_0x58d62f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58d62f['plugins']['get']('DataSchema'),_0x2686e1['definitions']);_0x1de721['enableDefaultAttributesIntegration']('style');const _0x46c0e9=new Set();for(const _0x5bd5bd of _0x33689c['block']){const _0xf6daf2=_0x3105df['getGhsAttributeNameForElement'](_0x5bd5bd['element']);_0x46c0e9['add'](_0xf6daf2);}const _0x5eb84b=new Set();for(const _0x424499 of _0x33689c['inline']){const _0x3b7655=_0x3105df['getGhsAttributeNameForElement'](_0x424499['element']);_0x5eb84b['add'](_0x3b7655);for(const _0x4d3e43 of _0x424499['ghsAttributes'])_0x5eb84b['add'](_0x4d3e43);}for(const _0x52dfb4 of _0x46c0e9)_0x1de721['registerBlockAttribute'](_0x52dfb4),_0x1de721['descriptionFactory']['registerAttributeLabel'](_0x52dfb4,o(_0x5d3f04,'FORMAT_STYLE'));for(const _0xe5b4c of _0x5eb84b)_0x1de721['registerInlineAttribute'](_0xe5b4c),_0x1de721['descriptionFactory']['registerAttributeLabel'](_0xe5b4c,o(_0x5d3f04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cd3c=this['editor'],_0x4653f3=_0x56cd3c['locale'];_0x56cd3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281780=>{if('formatBlock'!=_0x281780['type']&&'formatInline'!=_0x281780['type'])return;const {data:_0x2c9ebd}=_0x281780;return _0x2c9ebd&&'style'===_0x2c9ebd['commandName']?_0x2c9ebd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4653f3,'*Set\x20format:*\x20%0',_0x2c9ebd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4653f3,'*Remove\x20format:*\x20%0',_0x2c9ebd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x48c5b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x14ddc5){super(_0x14ddc5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x45917a=this['editor'],_0x38d832=_0x45917a['model']['document']['selection'];if(!_0x45917a['plugins']['has']('TableEditing'))return;const _0x1b1d0e=_0x45917a['locale'],_0x1f3a21=_0x45917a['plugins']['get']('TrackChangesEditing'),_0x35fb15=_0x45917a['plugins']['get']('TableUtils');_0x1f3a21['descriptionFactory']['registerElementLabel']('table',_0xdd13db=>o(_0x1b1d0e,'ELEMENT_TABLE',_0xdd13db)),this['_setupColumnsRowsFixing'](),_0x1f3a21['enableCommand']('insertTable'),_0x1f3a21['enableCommand']('selectTableRow'),_0x1f3a21['enableCommand']('selectTableColumn');for(const _0x478f09 of['insertTableRowAbove','insertTableRowBelow']){const _0x300def=_0x45917a['commands']['get'](_0x478f09);_0x1f3a21['enableCommand'](_0x478f09,_0x4e7b97=>{_0x45917a['model']['change'](_0x26b8da=>{_0x4e7b97();const _0x13761f='above'===_0x300def['order'],_0x29bcfd=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x17be03=_0x35fb15['getRowIndexes'](_0x29bcfd),_0x2f7c74=_0x13761f?_0x17be03['first']-0x1:_0x17be03['last']+0x1,_0x1fb664=_0x29bcfd[0x0]['findAncestor']('table'),_0x1888ca=_0x35fb15['createTableWalker'](_0x1fb664,{'startRow':_0x2f7c74,'endRow':_0x2f7c74}),_0xac9877=Array['from'](_0x1888ca)['map'](_0x4d655c=>_0x26b8da['createRangeOn'](_0x4d655c['cell']));_0x1f3a21['markMultiRangeInsertion'](_0xac9877,'tableRow');});});}for(const _0x29e53a of['insertTableColumnLeft','insertTableColumnRight']){const _0x426d3e=_0x45917a['commands']['get'](_0x29e53a);_0x1f3a21['enableCommand'](_0x29e53a,_0x42dab5=>{_0x45917a['model']['change'](_0x2375ac=>{_0x42dab5();const _0x32d2dd='left'===_0x426d3e['order'],_0x1a92d0=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x573141=_0x35fb15['getColumnIndexes'](_0x1a92d0),_0x31d633=_0x32d2dd?_0x573141['first']-0x1:_0x573141['last']+0x1,_0x113318=_0x1a92d0[0x0]['findAncestor']('table'),_0x13c2e5=_0x35fb15['createTableWalker'](_0x113318,{'startRow':0x0,'column':_0x31d633,'includeAllSlots':!0x1}),_0x5838be=Array['from'](_0x13c2e5)['map'](_0x569961=>_0x2375ac['createRangeOn'](_0x569961['cell']));_0x1f3a21['markMultiRangeInsertion'](_0x5838be,'tableColumn');});});}for(const _0xd1a36e of['removeTableRow','removeTableColumn']){const _0x12f08d=_0xd1a36e['substr'](0xb),_0x5e20a3=_0x12f08d['toLowerCase'](),_0x2027b0=_0x5e20a3['substr'](0x0,0x3)+'span',_0x1dc546='table'+_0x12f08d,_0x2d8f2f='min'+_0x12f08d,_0x2ee91a='max'+_0x12f08d;_0x1f3a21['enableCommand'](_0xd1a36e,()=>{_0x45917a['model']['change'](_0x577405=>{const _0x154158=_0x35fb15['getSelectionAffectedTableCells'](_0x38d832),_0x1e4b35=_0x154158[0x0]['findAncestor']('table');let _0x2948b7;if('removeTableRow'==_0xd1a36e){const _0x11ae07=_0x35fb15['getRowIndexes'](_0x154158);_0x2948b7={'startRow':_0x11ae07['first'],'endRow':_0x11ae07['last'],'includeAllSlots':!0x0};}else{const _0x553582=_0x35fb15['getColumnIndexes'](_0x154158);_0x2948b7={'startColumn':_0x553582['first'],'endColumn':_0x553582['last'],'includeAllSlots':!0x0};}const _0x29c477=_0x35fb15['createTableWalker'](_0x1e4b35,_0x2948b7),_0x5de71a=Array['from'](_0x29c477)['map'](({cell:_0x1c51cc})=>_0x1c51cc),_0x564061=be(_0x5de71a['filter'](_0x213478=>_0x213478['hasAttribute'](_0x2027b0))),_0xacc814=be(_0x5de71a['filter'](_0x219b8f=>!_0x219b8f['hasAttribute'](_0x2027b0)))['map'](_0x4916e7=>_0x577405['createRangeOn'](_0x4916e7)),_0x564825=_0x1f3a21['markMultiRangeDeletion'](_0xacc814,_0x1dc546);if(_0x564825&&('tableRow'==_0x564825['subType']||'tableColumn'==_0x564825['subType'])){const _0x24738c=this['_getSuggestionCoords'](_0x564825);for(const _0x4b2720 of _0x564061){const _0x486427=_0x577405['createRangeOn'](_0x4b2720),_0x2153ca=_0x35fb15['getCellLocation'](_0x4b2720),_0x2ef14a=_0x4b2720['getAttribute'](_0x2027b0)-0x1,_0xaaab49=_0x24738c[_0x2d8f2f],_0x5524b6=_0x24738c[_0x2ee91a];_0xaaab49<=_0x2153ca[_0x5e20a3]&&_0x2153ca[_0x5e20a3]+_0x2ef14a<=_0x5524b6&&_0x564825['addRange'](_0x486427);}}});});}function _0x56dbc6(_0x4dfde6){const _0x3b7fac=Array['from'](_0x38d832['getRanges']())['map'](_0x49b109=>_0x3bc28a['fromRange'](_0x49b109));_0x45917a['model']['change'](_0x4cc871=>{const _0x59d47e=_0x4cc871['batch'];_0x4dfde6=_0x4dfde6['filter'](_0x105efa=>'$graveyard'!=_0x105efa['root']['rootName']),_0x4cc871['setSelection'](_0x4dfde6),_0x45917a['commands']['get']('removeTableRow')['refresh'](),_0x45917a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x45917a['model']['enqueueChange'](()=>{_0x45917a['model']['enqueueChange'](_0x59d47e,_0x415380=>{const _0x2a10d8=_0x3b7fac['filter'](_0x31aad0=>'$graveyard'!=_0x31aad0['root']['rootName']);_0x2a10d8['length']>0x0&&_0x415380['setSelection'](_0x2a10d8);for(const _0x32e7f7 of _0x3b7fac)_0x32e7f7['detach']();});});});}function _0x2538f7(_0x3862dd){_0x45917a['model']['change'](_0x10ee17=>{const _0x573fba=Array['from'](_0x38d832['getRanges']())['map'](_0x477ff1=>_0x3bc28a['fromRange'](_0x477ff1)),_0x42899f=[];for(const _0x2debe5 of _0x3862dd)for(const _0x138f6b of _0x2debe5['getItems']({'shallow':!0x0}))_0x42899f['push'](_0x138f6b);for(const _0x534e1c of _0x42899f)'$graveyard'!=_0x534e1c['root']['rootName']&&(_0x10ee17['setSelection'](_0x10ee17['createPositionAt'](_0x534e1c,0x0)),_0x45917a['commands']['get']('removeTableColumn')['refresh'](),_0x45917a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4ea123=_0x573fba['filter'](_0x3ac712=>'$graveyard'!=_0x3ac712['root']['rootName']);_0x4ea123['length']>0x0&&_0x10ee17['setSelection'](_0x4ea123);for(const _0x16175c of _0x573fba)_0x16175c['detach']();});}function _0x591ccf(_0x417a28,_0x1beaa2){return _0x1beaa2['every'](_0x30ae3f=>_0x417a28['some'](_0x31a593=>_0x31a593['end']['isEqual'](_0x30ae3f['start'])||_0x30ae3f['end']['isEqual'](_0x31a593['start'])));}function _0x5780d7(_0x3aa85c,_0x1ca354){return!_0x3aa85c['some'](_0x3240ea=>_0x1ca354['some'](_0x1aec19=>_0x3240ea['isIntersecting'](_0x1aec19)))&&_0x3aa85c['some'](_0x1e6dbe=>_0x1ca354['some'](_0x596d6d=>_0x1e6dbe['end']['isTouching'](_0x596d6d['start'])));}_0x45917a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x493dc9,_0x18fd74,_0x4e6925)=>{if(!_0x4e6925['options']['showSuggestionHighlights'])return;const _0x170d13=_0x18fd74['item'];if(!_0x170d13)return;const _0x37c055=_0x4e6925['mapper']['toViewElement'](_0x170d13);function _0x30465d(_0x414607){return Array['isArray'](_0x414607)?_0x414607:[_0x414607];}_0x37c055&&'tableCell'===_0x170d13['name']&&_0x4ed66a(_0x37c055,_0x4e6925['writer'],(_0x44c29f,_0x50f40,_0x2bc36f)=>_0x2bc36f['addClass'](_0x30465d(_0x50f40['classes']),_0x44c29f),(_0x1179b4,_0x476891,_0x4238a8)=>_0x4238a8['removeClass'](_0x30465d(_0x476891['classes']),_0x1179b4));},{'priority':'highest'}),_0x1f3a21['descriptionFactory']['registerDescriptionCallback'](_0x4036a3=>{if('insertion'!=_0x4036a3['type']&&'deletion'!=_0x4036a3['type'])return;const _0x86c255=_0x4036a3['getContainedElement']();if(null!=_0x86c255&&_0x86c255['is']('element','table')){if('insertion'==_0x4036a3['type']){const _0x26d272=_0x4036a3['getItems']()['filter'](_0x375124=>_0x375124['is']('$textProxy'))['map'](_0x3e3632=>_0x3e3632['data']);if(_0x26d272['length'])return{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26d272['join']('\x20')+'\x22'))};}if('deletion'==_0x4036a3['type']){const _0x532a55=_0x4036a3['getItems']()['filter'](_0x313ac1=>_0x313ac1['is']('$textProxy'))['map'](_0xa54483=>_0xa54483['data']);if(_0x532a55['length'])return{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x532a55['join']('\x20')+'\x22'))};}}}),_0x1f3a21['descriptionFactory']['registerDescriptionCallback'](_0x3f40ce=>{if('tableRow'==_0x3f40ce['subType']){const _0x44cfea=_0x3f40ce['getItems']()['filter'](_0x2b1691=>_0x2b1691['is']('$textProxy'))['map'](_0x22267d=>_0x22267d['data']),_0x545c8d=this['_getSuggestionCoords'](_0x3f40ce),_0x169558=_0x545c8d['maxRow']-_0x545c8d['minRow']+0x1;if('insertion'==_0x3f40ce['type'])return _0x44cfea['length']?{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x169558,'\x22'+_0x44cfea['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW',_0x169558))};if('deletion'==_0x3f40ce['type'])return _0x44cfea['length']?{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x169558,'\x22'+_0x44cfea['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_ROW',_0x169558))};}if('tableColumn'==_0x3f40ce['subType']){const _0x4497ef=_0x3f40ce['getItems']()['filter'](_0x3f8d2c=>_0x3f8d2c['is']('$textProxy'))['map'](_0x542415=>_0x542415['data']),_0x4bcaad=this['_getSuggestionCoords'](_0x3f40ce),_0x58d66c=_0x4bcaad['maxColumn']-_0x4bcaad['minColumn']+0x1;if('insertion'==_0x3f40ce['type'])return _0x4497ef['length']?{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58d66c,'\x22'+_0x4497ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1d0e,'*Insert:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN',_0x58d66c))};if('deletion'==_0x3f40ce['type'])return _0x4497ef['length']?{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58d66c,'\x22'+_0x4497ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1d0e,'*Remove:*\x20%0',o(_0x1b1d0e,'ELEMENT_TABLE_COLUMN',_0x58d66c))};}}),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x56dbc6),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x56dbc6),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2538f7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2538f7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x591ccf),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x591ccf),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5780d7),_0x1f3a21['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5780d7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x14366f=this['editor'],_0x18f71b=_0x14366f['model']['document']['selection'];return(_0x2f521c,_0xb6d877)=>{_0x14366f['model']['change'](_0x521394=>{const {commandName:_0x309e2d,commandParams:_0x34eb19}=_0xb6d877;let _0x32758d=_0x2f521c[0x0]['end']['nodeBefore'];_0x34eb19&&_0x34eb19[0x0]&&!0x1===_0x34eb19[0x0]['forceValue']&&(_0x32758d=_0x2f521c[0x0]['start']['nodeAfter']);const _0x4c4d6e=_0x521394['createRangeIn'](_0x32758d);if('$graveyard'==_0x4c4d6e['root']['rootName'])return;const _0x2672ec=Array['from'](_0x18f71b['getRanges']())['map'](_0x3e1dbe=>_0x3bc28a['fromRange'](_0x3e1dbe));_0x521394['setSelection'](_0x4c4d6e),_0x14366f['commands']['get'](_0x309e2d)['refresh'](),_0x34eb19['push']({'forceDefaultExecution':!0x0}),_0x14366f['execute'](_0x309e2d,..._0x34eb19);const _0x505347=_0x2672ec['filter'](_0x12c22f=>'$graveyard'!=_0x12c22f['root']['rootName']);_0x505347['length']>0x0&&_0x521394['setSelection'](_0x505347);for(const _0x19317f of _0x2672ec)_0x19317f['detach']();});};}['_getCoordsForCells'](_0x386d60){const _0x41b0b3=this['editor']['plugins']['get']('TableUtils');let _0x56cc6c=Number['MAX_SAFE_INTEGER'],_0x94dc72=Number['MIN_SAFE_INTEGER'],_0x56d7cb=Number['MAX_SAFE_INTEGER'],_0x35b467=Number['MIN_SAFE_INTEGER'];for(const _0x80a0c6 of _0x386d60){if('$graveyard'==_0x80a0c6['root']['rootName'])continue;const {row:_0x312a35,column:_0x2f81f9}=_0x41b0b3['getCellLocation'](_0x80a0c6),_0x50d779=_0x80a0c6['hasAttribute']('rowspan')?_0x80a0c6['getAttribute']('rowspan')-0x1:0x0,_0x385dd2=_0x80a0c6['hasAttribute']('colspan')?_0x80a0c6['getAttribute']('colspan')-0x1:0x0;_0x56cc6c=_0x312a35<_0x56cc6c?_0x312a35:_0x56cc6c,_0x94dc72=_0x312a35+_0x50d779>_0x94dc72?_0x312a35+_0x50d779:_0x94dc72,_0x56d7cb=_0x2f81f9<_0x56d7cb?_0x2f81f9:_0x56d7cb,_0x35b467=_0x2f81f9+_0x385dd2>_0x35b467?_0x2f81f9+_0x385dd2:_0x35b467;}return{'minRow':_0x56cc6c,'maxRow':_0x94dc72,'minColumn':_0x56d7cb,'maxColumn':_0x35b467};}['_setupColumnsRowsFixing'](){const _0x312ab3=this['editor'],_0x20947a=_0x312ab3['plugins']['get']('TrackChangesEditing'),_0xad62a1=_0x312ab3['plugins']['get']('TableUtils');_0x312ab3['model']['document']['on']('change:data',()=>{const _0x3617d6=Array['from'](_0x312ab3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b1910,data:_0x2f2e42}of _0x3617d6){const {group:_0x2a190a,id:_0x1a4c88,subType:_0x333b16}=_0x20947a['_splitMarkerName'](_0x5b1910);if('suggestion'!=_0x2a190a)continue;if(null!=_0x2f2e42['oldRange'])continue;const _0xf5da31=_0x20947a['getSuggestion'](_0x1a4c88);this['_tablePostFixingSubtypes']['includes'](_0x333b16)&&this['_tableSuggestions']['add'](_0xf5da31);}},{'priority':'low'});const _0x42b1ff=(_0xe3e0b9,_0x4096d3)=>{let _0x114609=!0x1;const _0x566462=_0x4096d3['createRangeOn'](_0xe3e0b9),_0x22a481=_0xe3e0b9['findAncestor']('table'),_0x5a0057=_0xad62a1['getCellLocation'](_0xe3e0b9);for(const _0x29b9e1 of this['_tableSuggestions']){const _0x9469ab=_0x29b9e1['subType'],_0x439e2c=_0x9469ab['startsWith']('tablePaste'),_0x7cd42=_0x9469ab['substr'](_0x439e2c?0xa:0x5),_0x4271f6=_0x7cd42['toLowerCase'](),_0x23dba3=_0x4271f6['substr'](0x0,0x3)+'span',_0x19e2fd='min'+_0x7cd42,_0x52a0fb='max'+_0x7cd42;if(!_0x29b9e1['isInContent'])continue;if(_0x22a481!=_0x29b9e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x29b9e1['isIntersectingWithRange'](_0x566462))continue;const _0x148b73=_0xe3e0b9['hasAttribute'](_0x23dba3)?_0xe3e0b9['getAttribute'](_0x23dba3)-0x1:0x0,_0x506c2c=this['_getSuggestionCoords'](_0x29b9e1),_0x1f8303=_0x506c2c[_0x19e2fd],_0x9d0e91=_0x506c2c[_0x52a0fb];_0x1f8303<=_0x5a0057[_0x4271f6]&&_0x5a0057[_0x4271f6]+_0x148b73<=_0x9d0e91&&(_0x29b9e1['addRange'](_0x566462),_0x114609=!0x0);}return _0x114609;};_0x312ab3['model']['document']['registerPostFixer'](_0x200f32=>{let _0x27cf63=!0x1;for(const _0x31a7a3 of _0x312ab3['model']['document']['differ']['getChanges']())if('insert'==_0x31a7a3['type']){if('tableRow'==_0x31a7a3['name']){for(const _0x45cfad of _0x31a7a3['position']['nodeAfter']['getChildren']())_0x27cf63=_0x27cf63||_0x42b1ff(_0x45cfad,_0x200f32);}else'tableCell'==_0x31a7a3['name']&&(_0x27cf63=_0x27cf63||_0x42b1ff(_0x31a7a3['position']['nodeAfter'],_0x200f32));}return _0x27cf63;});}['_getSuggestionCoords'](_0x12e506){return this['_getCoordsForCells'](_0x12e506['getRanges']()['map'](_0x4ab8cb=>_0x4ab8cb['start']['nodeAfter']));}}function be(_0x15c851){return Array['from'](new Set(_0x15c851)['values']());}class vt extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x42d94f=this['editor'],_0x34be34=_0x42d94f['model']['document']['selection'],_0x4f5afa=_0x42d94f['locale'];if(!_0x42d94f['plugins']['has']('TableEditing'))return;const _0x16652f=_0x42d94f['plugins']['get']('TrackChangesEditing'),_0x584ce1=_0x42d94f['plugins']['get']('TableUtils'),_0x2deddf=_0x42d94f['plugins']['get'](It);_0x2deddf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x16652f['enableCommand']('mergeTableCells',()=>{const _0x57376c=_0x584ce1['getSelectionAffectedTableCells'](_0x42d94f['model']['document']['selection']);_0x42d94f['model']['change'](()=>{_0x16652f['markMultiRangeBlockFormat'](_0x57376c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x42d94f['commands']['get']('mergeTableCells')['on']('execute',(_0x52c52b,_0x58684)=>{_0x42d94f['commands']['get']('trackChanges')['value']&&(_0x58684['length']>0x0&&_0x58684[_0x58684['length']-0x1]&&_0x58684[_0x58684['length']-0x1]['forceDefaultExecution']||_0x16652f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x52c52b['stop']());},{'priority':'highest'});for(const _0x5b6b5d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3587d2=_0x42d94f['commands']['get'](_0x5b6b5d);_0x16652f['enableCommand'](_0x5b6b5d,()=>{const _0x4e7ef5=_0x42d94f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13d8ab=>_0x13d8ab['is']('element','tableCell')),_0x117e05=_0x3587d2['value'];_0x42d94f['model']['change'](()=>{_0x16652f['markMultiRangeBlockFormat']([_0x4e7ef5,_0x117e05],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x9fc505 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x28878b=_0x42d94f['commands']['get'](_0x9fc505);_0x16652f['enableCommand'](_0x9fc505,()=>{const _0xec74ea=_0x584ce1['getSelectionAffectedTableCells'](_0x42d94f['model']['document']['selection'])[0x0],_0xb9a8c8=_0xec74ea['findAncestor']('table'),{column:_0x57a140,row:_0x1f6ec6}=_0x584ce1['getCellLocation'](_0xec74ea);let _0x596ffb=[];if('horizontally'==_0x28878b['direction']){const _0x53bc38=_0x584ce1['createTableWalker'](_0xb9a8c8,{'startRow':_0x1f6ec6,'endRow':_0x1f6ec6,'includeAllSlots':!0x0});_0x596ffb=Array['from'](_0x53bc38)['map'](_0x2d9ac6=>_0x2d9ac6['cell']);}else{const _0x2910ea=_0x584ce1['createTableWalker'](_0xb9a8c8,{'column':_0x57a140,'includeAllSlots':!0x0});_0x596ffb=Array['from'](_0x2910ea)['map'](_0x2e8858=>_0x2e8858['cell']);}_0x42d94f['model']['change'](_0x536303=>{_0x16652f['markBlockFormat'](_0x536303['createRangeOn'](_0xec74ea),{'commandName':_0x9fc505,'commandParams':[]},_0x596ffb,_0x9fc505);});});}_0x16652f['descriptionFactory']['registerDescriptionCallback'](_0x3c1030=>{if('formatBlock'!=_0x3c1030['type']&&'formatInline'!=_0x3c1030['type'])return;const {data:_0x3b8476}=_0x3c1030;return _0x3b8476&&'mergeTableCells'==_0x3b8476['commandName']?{'type':'format','content':o(_0x4f5afa,'*Merge\x20cells*')}:void 0x0;}),_0x16652f['descriptionFactory']['registerDescriptionCallback'](_0x31a8f7=>{if('formatBlock'!=_0x31a8f7['type']&&'formatInline'!=_0x31a8f7['type'])return;const {data:_0x2571b7}=_0x31a8f7;return _0x2571b7?'splitTableCellVertically'==_0x2571b7['commandName']?{'type':'format','content':o(_0x4f5afa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2571b7['commandName']?{'type':'format','content':o(_0x4f5afa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x504006=_0x2deddf['_acceptFormatSuggestionCallbackFactory']();for(const _0x5e60e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e60e7,'accept',_0x504006);for(const _0x3595de of['splitTableCellVertically','splitTableCellHorizontally'])_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3595de,'accept',_0x504006);_0x16652f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xff0d12=>{_0x42d94f['model']['change'](_0x586287=>{const _0x189a5a=Array['from'](_0x34be34['getRanges']())['map'](_0x54b62d=>_0x3bc28a['fromRange'](_0x54b62d));_0x586287['setSelection'](_0xff0d12),_0x42d94f['commands']['get']('mergeTableCells')['refresh'](),_0x42d94f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3e5dcf=_0x189a5a['filter'](_0x1e0578=>'$graveyard'!=_0x1e0578['root']['rootName']);_0x3e5dcf['length']>0x0&&_0x586287['setSelection'](_0x3e5dcf);for(const _0x5be302 of _0x189a5a)_0x5be302['detach']();});});for(const _0x5a2850 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5d882c=_0x42d94f['commands']['get'](_0x5a2850);_0x5d882c['on']('set:isEnabled',(_0x43c9b8,_0x4955bc,_0x2c5f95)=>{if(_0x2c5f95){const _0x156e93=_0x42d94f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11b312=>_0x11b312['is']('element','tableCell'));this['_areMergableCells'](_0x5d882c['value'],_0x156e93)||(_0x43c9b8['return']=!0x1,_0x43c9b8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x422b25=this['editor']['commands']['get']('mergeTableCells'),_0x5ca83e=this['editor']['plugins']['get']('TableUtils');if(!_0x422b25['isEnabled'])return!0x1;const _0x430b48=_0x5ca83e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x21844e of _0x430b48)for(const _0x5783cf of _0x430b48)if(_0x21844e!=_0x5783cf&&!this['_areMergableCells'](_0x21844e,_0x5783cf))return!0x1;return!0x0;}['_areMergableCells'](_0x101d98,_0x4bc7b2){const _0x1dfb7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3686ce=this['editor']['model']['createRangeOn'](_0x101d98),_0xc0a89a=this['editor']['model']['createRangeOn'](_0x4bc7b2),_0x125caf=new Set(),_0x3fbe46=new Set();for(const _0x2a1a46 of _0x1dfb7b['getSuggestions']())if(('insertion'==_0x2a1a46['type']||'deletion'==_0x2a1a46['type']||'mergeTableCells'==_0x2a1a46['subType'])&&_0x2a1a46['isInContent']){for(const _0x5469d7 of _0x2a1a46['getRanges']())_0x5469d7['containsRange'](_0x3686ce,!0x0)&&_0x125caf['add'](_0x2a1a46['type']+':'+_0x2a1a46['author']['id']),_0x5469d7['containsRange'](_0xc0a89a,!0x0)&&_0x3fbe46['add'](_0x2a1a46['type']+':'+_0x2a1a46['author']['id']);}if(_0x125caf['size']!=_0x3fbe46['size'])return!0x1;for(const _0x371027 of _0x125caf)if(!_0x3fbe46['has'](_0x371027))return!0x1;return!0x0;}}class Ct extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x194f8c=this['editor'];if(!_0x194f8c['plugins']['has']('TableEditing'))return;const _0x5ed19b=_0x194f8c['locale'],_0x137a39=_0x194f8c['plugins']['get']('TrackChangesEditing');_0x137a39['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x137a39['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x137a39['registerBlockAttribute']('headingRows'),_0x137a39['registerBlockAttribute']('headingColumns'),_0x137a39['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5ed19b,'FORMAT_HEADER_ROW')),_0x137a39['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5ed19b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27a947=this['editor']['plugins']['get']('TrackChangesEditing'),_0x476398=this['editor']['plugins']['get']('TableUtils'),_0x236ddd=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x451b9d({showActiveMarker:_0x46e84c=!0x0,setDataAttribute:_0x2a15af=!0x0}={}){return(_0x416665,_0x1129a8,_0x12f293)=>{const {type:_0x3f90bd,id:_0x497eee}=_0x27a947['_splitMarkerName'](_0x1129a8['markerName']),_0x474396=_0x27a947['getSuggestion'](_0x497eee),_0x594977=_0x474396['data'];if('formatBlock'!=_0x474396['type']||!_0x594977||'setTableColumnHeader'!=_0x594977['commandName'])return;if(_0x1129a8['item'])return void _0x416665['stop']();if(!_0x12f293['consumable']['consume'](_0x1129a8['markerRange'],_0x416665['name']))return;const _0x45e06b=_0x1129a8['markerRange']['start']['nodeAfter'],_0xf0464b=_0x1129a8['markerRange']['end']['nodeBefore'],_0x3b9d8e=_0x45e06b['parent']['parent'],{column:_0x104f1b}=_0x476398['getCellLocation'](_0x45e06b),{column:_0x86f2a6}=_0x476398['getCellLocation'](_0xf0464b);for(let _0x3ff5fe=_0x104f1b;_0x3ff5fe<=_0x86f2a6;_0x3ff5fe++){const _0x2f6988=_0x476398['createTableWalker'](_0x3b9d8e,{'column':_0x3ff5fe,'includeAllSlots':!0x1});for(const _0x433485 of _0x2f6988){const _0x1e613d=_0x433485['cell'],_0x1abfc4=_0x12f293['mapper']['toViewElement'](_0x1e613d);_0x12f293['writer']['addClass']('ck-suggestion-marker-'+_0x3f90bd,_0x1abfc4),_0x2a15af&&_0x12f293['writer']['setAttribute']('data-suggestion',_0x497eee,_0x1abfc4),_0x12f293['mapper']['bindElementToMarker'](_0x1abfc4,_0x1129a8['markerName']),_0x46e84c&&(_0x27a947['activeMarkers']['includes'](_0x1129a8['markerName'])?_0x12f293['writer']['addClass']('ck-suggestion-marker--active',_0x1abfc4):_0x12f293['writer']['removeClass']('ck-suggestion-marker--active',_0x1abfc4));}}};}_0x27a947['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x236ddd),_0x27a947['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x236ddd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x451b9d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ce7c2,_0x214a3b,_0x5da2b0)=>{_0x5da2b0['options']['showSuggestionHighlights']&&_0x451b9d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1ce7c2,_0x214a3b,_0x5da2b0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3592c1,_0x1d7e56,_0x3b8426)=>{const {type:_0x2bc34e,id:_0x460757}=_0x27a947['_splitMarkerName'](_0x1d7e56['markerName']),_0x9f0bf5=_0x27a947['getSuggestion'](_0x460757),_0x434707=_0x9f0bf5['data'];if('formatBlock'!=_0x9f0bf5['type']||!_0x434707||'setTableColumnHeader'!=_0x434707['commandName'])return;const _0x33929a=_0x3b8426['mapper']['markerNameToElements'](_0x1d7e56['markerName']);if(_0x33929a){for(const _0x1b9e10 of _0x33929a)_0x3b8426['writer']['removeClass']('ck-suggestion-marker-'+_0x2bc34e,_0x1b9e10),_0x3b8426['writer']['removeClass']('ck-suggestion-marker--active',_0x1b9e10),_0x3b8426['writer']['removeAttribute']('data-suggestion',_0x1b9e10),_0x3b8426['mapper']['unbindElementFromMarkerName'](_0x1b9e10,_0x1d7e56['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2269f8=this['editor'],_0x175328=_0x2269f8['locale'];function _0x4e8272(_0x24be00){return{'type':'format','content':o(_0x175328,'*Format:*\x20%0',_0x24be00)};}_0x2269f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4069=>{if('formatBlock'!=_0x5a4069['type'])return;const {data:_0x1a5db8}=_0x5a4069;if(_0x1a5db8){if('setTableRowHeader'==_0x1a5db8['commandName']){const _0x59f84=_0x1a5db8['commandParams'][0x0]['forceValue'];return _0x4e8272(o(_0x175328,_0x59f84?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a5db8['commandName']){const _0x3a283a=_0x1a5db8['commandParams'][0x0]['forceValue'];return _0x4e8272(o(_0x175328,_0x3a283a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x28b441=>[_0x28b441,null]));class _t extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x4bc24e=this['editor'];if(!_0x4bc24e['plugins']['has']('TableClipboard'))return;const _0x7c24dd=_0x4bc24e['plugins']['get']('TrackChangesEditing'),_0x3dafb5=_0x4bc24e['plugins']['get']('TableUtils'),_0x4dbd4e=_0x4bc24e['plugins']['get'](It),_0x76dc5c=_0x4bc24e['plugins']['get']('TableClipboard');_0x4dbd4e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4bc24e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4bc24e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2827c7=null;_0x4bc24e['model']['on']('insertContent',(_0x5bdf37,_0xedaaa5)=>{const [_0x11ebaa,_0x52a4b9]=_0xedaaa5,_0x288b7d=_0xedaaa5[_0xedaaa5['length']-0x1];_0x288b7d&&_0x288b7d['forceDefaultExecution']||_0x7c24dd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xa39e75,_0x2a17dc,_0x33c1c1,_0xf12567,_0x1c2135){if(_0x2a17dc&&!_0x2a17dc['is']('documentSelection'))return!0x1;const _0x53fa53=_0x1c2135['getTableIfOnlyTableInContent'](_0xa39e75,_0x33c1c1);if(!_0x53fa53||!Re(_0x53fa53,void 0x0,_0xf12567))return!0x1;const _0x243068=_0xf12567['getSelectionAffectedTableCells'](_0x33c1c1['document']['selection']);if(!_0x243068['length'])return!0x1;const _0x63315=_0x243068[0x0]['findAncestor']('table'),_0x3da1dc=_0xf12567['getRowIndexes'](_0x243068),_0x1f2eed=_0xf12567['getColumnIndexes'](_0x243068),_0x2fe1cc={'startRow':_0x3da1dc['first'],'endRow':_0x3da1dc['last'],'startColumn':_0x1f2eed['first'],'endColumn':_0x1f2eed['last']};return 0x1==_0x243068['length']&&(_0x2fe1cc['endRow']+=_0xf12567['getRows'](_0x53fa53)-0x1,_0x2fe1cc['endColumn']+=_0xf12567['getColumns'](_0x53fa53)-0x1),Re(_0x63315,_0x2fe1cc,_0xf12567);}(_0x11ebaa,_0x52a4b9,_0x4bc24e['model'],_0x3dafb5,_0x76dc5c)&&(_0x5bdf37['stop'](),_0x2827c7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4bc24e['model']['change'](()=>{_0x4bc24e['model']['insertContent'](_0xedaaa5[0x0],_0xedaaa5[0x1],_0xedaaa5[0x2],{'forceDefaultExecution':!0x0});const _0x5663ad=_0x5790ee(),{rowInsertionRanges:_0x2669df,columnInsertionRanges:_0x1c7ba3,insertionRanges:_0x2321f5,deletionRanges:_0x222067,cells:_0x2e9415}=_0x2827c7;_0x2669df['length']&&_0x7c24dd['markMultiRangeInsertion'](_0x2669df,'tablePasteRow',{'tablePasteChainId':_0x5663ad}),_0x1c7ba3['length']&&_0x7c24dd['markMultiRangeInsertion'](_0x1c7ba3,'tablePasteColumn',{'tablePasteChainId':_0x5663ad}),_0x2321f5['length']&&(_0x7c24dd['markMultiRangeInsertion'](_0x2321f5,'tablePaste',{'tablePasteChainId':_0x5663ad,'skipNestingCheck':!0x0}),_0x2321f5['forEach'](_0x3dcda2=>_0x3dcda2['detach']?.())),_0x222067['length']&&(_0x7c24dd['markMultiRangeDeletion'](_0x222067,'tablePaste',{'tablePasteChainId':_0x5663ad,'skipNestingCheck':!0x0}),_0x222067['forEach'](_0x136fe7=>_0x136fe7['detach']?.()));const _0x4bf971=_0x7c24dd['markMultiRangeBlockFormat'](_0x2e9415['map'](({element:_0xc07f29})=>_0xc07f29),{'formatGroupId':_0x5790ee()},[],'tablePasteCell',{'tablePasteChainId':_0x5663ad});if(_0x4bf971){const _0x4c510f=_0x4bf971['getMarkers'](),_0x469026=[];for(const {element:_0x2ba93c,attributes:_0x517655}of _0x2e9415){if(!_0x517655)continue;const _0x351068=_0x4bc24e['model']['createRangeOn'](_0x2ba93c),_0x1af9b1=_0x4c510f['find'](_0x294609=>_0x294609['getRange']()['isEqual'](_0x351068));_0x1af9b1&&_0x469026['push']([_0x1af9b1['name'],_0x517655]);}_0x469026['length']&&_0x4bf971['setAttribute']('markerAttributes',Object['fromEntries'](_0x469026));}_0x2827c7=null;}));},{'priority':_0x3ff64e['high']+0xa}),_0x4bc24e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa97bf,_0x5d7414)=>{const [_0x4ea10c,_0x2aad33,,_0x573312]=_0x5d7414;if(!_0x2827c7)return;_0xa97bf['stop']();const _0x35cbc7=_0x4ea10c['cell'],_0x4472d7=_0x2aad33,_0xcb3d95=ke(_0x35cbc7),_0x46a5e9=ke(_0x4472d7);_0xa97bf['return']=_0x35cbc7;let _0x10c4b2=null,_0x238952=null;if(_0x46a5e9||_0xcb3d95){if(_0xcb3d95&&!_0x46a5e9){_0x573312['remove'](_0x35cbc7['getChild'](0x0));for(const _0x7b000a of Array['from'](_0x4472d7['getChildren']()))_0x573312['insert'](_0x7b000a,_0x35cbc7,'end');const _0x518f2b=_0x2827c7['rowInsertionIndexes']['includes'](_0x4ea10c['row']),_0x304d41=_0x2827c7['columnInsertionIndexes']['includes'](_0x4ea10c['column']);_0x518f2b||_0x304d41||(_0x10c4b2=_0x3bc28a['fromRange'](_0x573312['createRangeIn'](_0x35cbc7)));}else _0x46a5e9&&!_0xcb3d95&&(_0x238952=_0x573312['createRangeIn'](_0x35cbc7));}else{const _0x898933=_0x573312['createElement']('tableCellSuggestion'),_0x1f77fc=_0x573312['createElement']('tableCellSuggestion');_0x573312['wrap'](_0x573312['createRangeIn'](_0x35cbc7),_0x1f77fc),_0x573312['insert'](_0x898933,_0x35cbc7,0x0);for(const _0x5582e0 of Array['from'](_0x4472d7['getChildren']()))_0x573312['insert'](_0x5582e0,_0x898933,'end');_0x10c4b2=_0x3bc28a['fromRange'](_0x573312['createRangeOn'](_0x898933)),_0x238952=_0x3bc28a['fromRange'](_0x573312['createRangeOn'](_0x1f77fc));}const _0x417274=Array['from'](_0x4472d7['getAttributes']())['filter'](([_0x43fb50])=>Pe['includes'](_0x43fb50));_0x2827c7['cells']['push']({'element':_0x35cbc7,'attributes':_0x417274['length']?Object['fromEntries'](_0x417274):null}),_0x10c4b2&&_0x2827c7['insertionRanges']['push'](_0x10c4b2),_0x238952&&_0x2827c7['deletionRanges']['push'](_0x238952);},{'priority':'high'}),_0x3dafb5['on']('insertColumns',(_0x50d90d,_0x50d8eb)=>{const [_0x5d6800,_0x4556d1={}]=_0x50d8eb;if(!_0x2827c7)return;const _0x304f9e=_0x4556d1['at']||0x0,_0x51b3fa=_0x4556d1['columns']||0x1;_0x2827c7['columnInsertionIndexes']=new Array(_0x51b3fa)['fill'](_0x304f9e)['map']((_0x4d80f4,_0x911b9d)=>_0x4d80f4+_0x911b9d);for(const {cell:_0xa0ae12}of _0x3dafb5['createTableWalker'](_0x5d6800,{'startColumn':_0x304f9e,'endColumn':_0x304f9e+_0x51b3fa-0x1}))_0x2827c7['columnInsertionRanges']['push'](_0x4bc24e['model']['createRangeOn'](_0xa0ae12));},{'priority':'low'}),_0x3dafb5['on']('insertRows',(_0xd37815,_0x53225c)=>{const [_0x5f4910,_0x47dd68={}]=_0x53225c;if(!_0x2827c7)return;const _0x2148dd=_0x47dd68['at']||0x0,_0x2912fa=_0x47dd68['rows']||0x1;_0x2827c7['rowInsertionIndexes']=new Array(_0x2912fa)['fill'](_0x2148dd)['map']((_0x552894,_0x3b438b)=>_0x552894+_0x3b438b);for(const {cell:_0x9ea16b}of _0x3dafb5['createTableWalker'](_0x5f4910,{'startRow':_0x2148dd,'endRow':_0x2148dd+_0x2912fa-0x1}))_0x2827c7['rowInsertionRanges']['push'](_0x4bc24e['model']['createRangeOn'](_0x9ea16b));},{'priority':'low'}),_0x7c24dd['descriptionFactory']['registerDescriptionCallback'](_0x2a2132=>{if(_0x2a2132['subType']&&_0x2a2132['subType']['startsWith']('tablePaste'))return _0x2a2132['previous']?{}:{'type':'insertion','content':o(_0x4bc24e['locale'],'*Replace\x20table\x20cells*')};});const _0x5a761f=()=>!0x1;for(const _0xd1a4f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion',_0xd1a4f2,'join',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('deletion',_0xd1a4f2,'join',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd1a4f2,'join',_0x5a761f);_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a761f),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x37dd4e,_0x476bac,_0x1cb1fa)=>{const _0x5bb305=_0x37dd4e['map'](_0x429316=>_0x429316['getContainedElement']())['filter'](_0x515776=>_0x515776),_0xa194d0=new Map(_0x5bb305['map'](_0x2ccc77=>[_0x2ccc77,null]));if(_0x2827c7){for(const {element:_0x4702f4,attributes:_0x246d6a}of _0x2827c7['cells'])_0x246d6a&&_0xa194d0['set'](_0x4702f4,_0x246d6a);}else{if(_0x1cb1fa&&_0x1cb1fa['markerAttributes'])for(const [_0x5ebb6e,_0x56c3d7]of Object['entries'](_0x1cb1fa['markerAttributes'])){const _0x33899d=_0x4bc24e['model']['markers']['get'](_0x5ebb6e),_0x321d69=_0x33899d?_0x33899d['getRange']()['getContainedElement']():null;_0x321d69&&_0xa194d0['set'](_0x321d69,_0x56c3d7);}}_0x4bc24e['model']['change'](_0x41c790=>{for(const [_0x44dcd8,_0x52e921]of _0xa194d0)_0x41c790['setAttributes']({...we,..._0x52e921},_0x44dcd8);});});const _0x7984d7=(_0x3e3511,_0x2a8689)=>{_0x7c24dd['_suggestionFactory']['registerCustomCallback'](_0x3e3511,'tablePaste',_0x2a8689,(_0x388932,_0x1a913c,_0x1f649b)=>{_0x4bc24e['model']['change'](_0x479c42=>{const _0x411bf3=[];for(const _0x4ad8ca of _0x388932){const _0x42b56a=_0x4ad8ca['start']['nodeAfter'];_0x42b56a['is']('element','tableCellSuggestion')&&_0x411bf3['push'](_0x42b56a);}_0x7c24dd['_suggestionFactory']['getSuggestionCallback'](_0x3e3511,null,_0x2a8689)(_0x388932,_0x1a913c,_0x1f649b);for(const _0x2bb9f2 of _0x411bf3)'$graveyard'!=_0x2bb9f2['root']['rootName']&&_0x479c42['unwrap'](_0x2bb9f2);});});};_0x7984d7('insertion','accept'),_0x7984d7('insertion','discard'),_0x7984d7('deletion','accept'),_0x7984d7('deletion','discard'),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ef5e0=>{const _0x41abaa=_0x1ef5e0['map'](_0x5500d1=>_0x5500d1['getContainedElement']()),_0x407f78=_0x41abaa[0x0]['findAncestor']('table'),{minRow:_0x78dd8c,maxRow:_0x44c2f3}=_0x4dbd4e['_getCoordsForCells'](_0x41abaa);_0x3dafb5['removeRows'](_0x407f78,{'at':_0x78dd8c,'rows':_0x44c2f3-_0x78dd8c+0x1});}),_0x7c24dd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2f088d=>{const _0x1f0b11=_0x2f088d['map'](_0x1742a3=>_0x1742a3['getContainedElement']()),_0x302d8f=_0x1f0b11[0x0]['findAncestor']('table'),{minColumn:_0x417f6f,maxColumn:_0xc8372b}=_0x4dbd4e['_getCoordsForCells'](_0x1f0b11);_0x3dafb5['removeColumns'](_0x302d8f,{'at':_0x417f6f,'columns':_0xc8372b-_0x417f6f+0x1});});const _0x181f61=(_0x31a976,_0xe1ea3a)=>{if(!_0xe1ea3a['subType']||!_0xe1ea3a['subType']['startsWith']('tablePaste'))return;const _0x49a77b=_0xe1ea3a['attributes']['tablePasteChainId'],_0x31ee87=_0x7c24dd['getSuggestions']()['filter'](_0x493113=>_0x493113['isInContent']&&_0x493113['attributes']&&_0x493113['attributes']['tablePasteChainId']==_0x49a77b);_0x31ee87['length']&&_0xe1ea3a['getAllAdjacentSuggestions']()['length']!=_0x31ee87['length']&&_0x31ee87['reduce']((_0x445913,_0x31216f)=>(_0x445913['next']=_0x31216f,_0x31216f['previous']=_0x445913,_0x31216f));};function _0x54640a(_0x1da889,_0x577d9f=!0x0){const {id:_0x3b1e16,authorId:_0x4b35a8}=_0x7c24dd['_splitMarkerName'](_0x1da889['markerName']),_0x40e842=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1dc435=_0x7c24dd['activeMarkers']['includes'](_0x1da889['markerName']);return _0x1dc435&&_0x40e842['push']('ck-suggestion-marker--active'),{'classes':_0x40e842,'attributes':{'data-suggestion':_0x3b1e16,'data-author-id':_0x4b35a8},'priority':_0x1dc435&&_0x577d9f?0xbc2:0xbb8};}_0x7c24dd['on']('suggestionLoaded',_0x181f61,{'priority':'high'}),_0x7c24dd['on']('suggestionUnloaded',_0x181f61,{'priority':'high'}),_0x4bc24e['model']['document']['registerPostFixer'](()=>{let _0x31e6be=!0x1;const _0x1bcc8f=Array['from'](_0x4bc24e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x246e95,data:_0x23c1a1}of _0x1bcc8f){const {group:_0x544991,type:_0xb00fdc,id:_0x57ffca}=_0x7c24dd['_splitMarkerName'](_0x246e95);if('suggestion'!=_0x544991||'deletion'!=_0xb00fdc||_0x23c1a1['oldRange'])continue;if(!_0x7c24dd['hasSuggestion'](_0x57ffca))continue;const _0x27305b=_0x7c24dd['getSuggestion'](_0x57ffca)['getRanges'](),_0x2cce0e=_0x4bc24e['plugins']['get']('Users')['me'];for(const _0x2ad4b2 of _0x7c24dd['getSuggestions']()){if(!_0x2ad4b2['isInContent']||_0x2ad4b2['author']!=_0x2cce0e)continue;if('formatBlock'!=_0x2ad4b2['type']||'tablePasteCell'!=_0x2ad4b2['subType'])continue;if(_0x2ad4b2['getRanges']()['every'](_0x44efe7=>_0x27305b['some'](_0x1dfb10=>_0x1dfb10['containsRange'](_0x44efe7,!0x0)))){for(const _0x2c2c9b of _0x2ad4b2['getAllAdjacentSuggestions']())_0x2c2c9b['isInContent']&&(_0x2c2c9b['discard'](),_0x31e6be=!0x0);}}}return _0x31e6be;}),_0x4bc24e['model']['document']['registerPostFixer'](_0xea12f0=>{const _0x371434=_0x4bc24e['commands']['get']('redo');if(!_0x371434||!_0x371434['_createdBatches']['has'](_0xea12f0['batch']))return!0x1;let _0x15616a=!0x1;const _0x15327a=_0x4bc24e['plugins']['get']('Users')['me'],_0x15ad41=_0x4bc24e['model']['document']['differ']['getChanges'](),_0x328d96=Array['from'](_0x4bc24e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x475dfb,data:_0x5507c8})=>{const {group:_0x93f67d,subType:_0x143c51,authorId:_0x32e0b5}=_0x7c24dd['_splitMarkerName'](_0x475dfb);return'suggestion'==_0x93f67d&&'tablePaste'==_0x143c51&&_0x32e0b5==_0x15327a['id']&&!_0x5507c8['oldRange'];});for(const _0x2c2a25 of _0x15ad41){if('insert'!=_0x2c2a25['type']||'tableCellSuggestion'!=_0x2c2a25['name']||0x1!=_0x2c2a25['length'])continue;const _0x3bc476=_0xea12f0['createRange'](_0x2c2a25['position'],_0x2c2a25['position']['getShiftedBy'](0x1));if(!_0x328d96['find'](({data:_0x2ba416})=>_0x2ba416['newRange']['isEqual'](_0x3bc476))){for(const {name:_0x35f43a,data:_0x3f7a7e}of _0x328d96)if(_0x3bc476['containsRange'](_0x3f7a7e['newRange'])){_0xea12f0['updateMarker'](_0x35f43a,{'range':_0x3bc476}),_0x15616a=!0x0;break;}}}return _0x15616a;}),_0x4bc24e['model']['document']['registerPostFixer'](_0x4c7eea=>{let _0x4904bd=!0x1;const _0x189ef9=_0x4bc24e['plugins']['get']('Users')['me'],_0x5d18c3=_0x7c24dd['getSuggestions']()['filter'](_0x426a77=>_0x426a77['isInContent']&&_0x426a77['author']==_0x189ef9),_0x38f94f=new Set(),_0x47aa6b=new Set();for(const _0x23f22e of _0x5d18c3)if('tablePaste'==_0x23f22e['subType'])for(const _0x13393c of _0x23f22e['getMarkers']()){const _0x25879f=_0x13393c['getRange']()['getContainedElement']();if(_0x25879f){if(_0x25879f['is']('element','tableCellSuggestion')&&ke(_0x25879f)){_0x23f22e['removeMarker'](_0x13393c['name']),_0x38f94f['add'](_0x25879f),_0x4904bd=!0x0;const _0x2a9b37=_0x25879f['nextSibling'],_0x1a2828=_0x25879f['previousSibling'],_0x1044d0=_0x2a9b37&&_0x2a9b37['is']('element','tableCellSuggestion'),_0x3b887f=_0x1a2828&&_0x1a2828['is']('element','tableCellSuggestion');_0x1044d0&&!_0x38f94f['has'](_0x2a9b37)&&_0x47aa6b['add'](_0x2a9b37),_0x3b887f&&!_0x38f94f['has'](_0x1a2828)&&_0x47aa6b['add'](_0x1a2828);}else _0x25879f['is']('element','paragraph')&&_0x25879f['isEmpty']&&(_0x23f22e['removeMarker'](_0x13393c['name']),_0x4904bd=!0x0);}}else{if('tablePasteCell'==_0x23f22e['subType']){if(!_0x23f22e['attributes']||!_0x23f22e['attributes']['tablePasteChainId'])continue;const _0x5e2946=_0x23f22e['attributes']['markerAttributes'];if(_0x5e2946&&Object['keys'](_0x5e2946)['length'])continue;const _0x1f7aee=_0x23f22e['attributes']['tablePasteChainId'];let _0x111404=!0x0,_0x58391d=!0x0;for(const _0x50c319 of _0x5d18c3)if(_0x50c319['subType']&&_0x50c319['subType']['startsWith']('tablePaste')){if(!_0x50c319['attributes']['tablePasteChainId']){_0x58391d=!0x1;break;}if(_0x50c319['id']!=_0x23f22e['id']&&_0x50c319['attributes']['tablePasteChainId']==_0x1f7aee){_0x111404=!0x1;break;}}_0x58391d&&_0x111404&&(_0x23f22e['removeMarkers'](),_0x4904bd=!0x0);}}for(const _0x5f80b1 of _0x38f94f)_0x4c7eea['remove'](_0x5f80b1);for(const _0xd1c899 of _0x47aa6b)_0x4c7eea['unwrap'](_0xd1c899);return _0x4904bd;}),_0x4bc24e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1cae4e=>_0x54640a(_0x1cae4e),'converterPriority':'high'}),_0x4bc24e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4b0f4e,_0x4b6435)=>_0x4b6435['options']['showSuggestionHighlights']?_0x54640a(_0x4b0f4e,!0x1):null,'converterPriority':'high'});const _0x5b7ed5=_0x4bc24e['editing']['view'];this['listenTo'](_0x5b7ed5['document'],'clipboardOutput',(_0x465383,_0x1be5ac)=>{const _0x4128ef=[];for(const _0x3a029e of _0x5b7ed5['createRangeIn'](_0x1be5ac['content'])['getItems']())_0x3a029e['is']('element','suggestion-td')&&_0x4128ef['push'](_0x3a029e);_0x5b7ed5['change'](_0x5bf5b9=>{for(const _0x5d9d46 of _0x4128ef)_0x5bf5b9['move'](_0x5bf5b9['createRangeIn'](_0x5d9d46),_0x5bf5b9['createPositionBefore'](_0x5d9d46)),_0x5bf5b9['remove'](_0x5d9d46);});});}}function ke(_0x21781){if(_0x21781['isEmpty'])return!0x0;const _0x4f487d=_0x21781['getChild'](0x0);return _0x4f487d['is']('element','paragraph')&&_0x4f487d['isEmpty'];}function Re(_0xe3e6b7,_0x13f41d={},_0x5b4324){for(const {isAnchor:_0x4893ca,cellHeight:_0x1ca8a0,cellWidth:_0xc208ee}of _0x5b4324['createTableWalker'](_0xe3e6b7,{'includeAllSlots':!0x0,..._0x13f41d}))if(!_0x4893ca||0x1!=_0x1ca8a0||0x1!=_0xc208ee)return!0x1;return!0x0;}class Nt extends _0x48c5b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x42ea6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x42ea6e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x42ea6e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x42ea6e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42ea6e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x42ea6e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x42ea6e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12ae0e,_0x4bc84c){const _0x3d232b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba8be=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ea60a=_0x4bc84c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xec4135=_0x2ba8be['getColumnGroupElement'](_0x4ea60a);let _0x25f845=_0xec4135?_0x2ba8be['getTableColumnsWidths'](_0xec4135):null,_0x5be1aa=_0x4ea60a['getAttribute']('tableWidth')||null;const _0x6795f4=_0x4bc84c['tableWidth']||_0x5be1aa,_0xb34b56=_0x4bc84c['columnWidths']||_0x25f845,_0x4d65ad=this['editor']['plugins']['get']('Users')['me'];for(const _0x314977 of _0x3d232b['getSuggestions']()){const _0x164e40=_0x314977['getContainedElement']();if('resizeTable'===_0x314977['subType']&&_0x164e40===_0x4ea60a){_0x314977['author']!==_0x4d65ad&&_0x314977['discard']();const _0x4d5035=_0x314977['data']['commandParams'];_0x5be1aa=_0x4d5035[0x0]['tableWidth'],_0x25f845=_0x4d5035[0x0]['columnWidths'];break;}}_0x12ae0e({'table':_0x4ea60a,'tableWidth':_0x6795f4,'columnWidths':_0xb34b56}),_0x3d232b['markBlockFormat'](_0x4ea60a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5be1aa,'columnWidths':_0x25f845}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50b11b){if('formatBlock'!=_0x50b11b['type']&&'formatInline'!=_0x50b11b['type'])return;const {data:_0x5055b6}=_0x50b11b;if(_0x5055b6&&'resizeTable'===_0x5055b6['formatGroupId']){const _0x4a24c7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4a24c7)};}}}class Dt extends _0x48c5b5{['afterInit'](){const _0xd4ae79=this['editor'];_0xd4ae79['plugins']['has']('Template')&&_0xd4ae79['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x48c5b5{['afterInit'](){const _0x4108bb=this['editor'];if(!_0x4108bb['commands']['get']('insertTableOfContents'))return;_0x4108bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x250ba6=_0x4108bb['plugins']['get']('TrackChangesEditing'),_0x2e64b6=_0x4108bb['locale'];_0x250ba6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12cd1b=>o(_0x2e64b6,'ELEMENT_TABLE_OF_CONTENTS',_0x12cd1b));}}class $t extends _0x48c5b5{['afterInit'](){const _0x12e7b0=this['editor'];if(!_0x12e7b0['plugins']['has']('Title'))return;const _0x2d82a9=_0x12e7b0['plugins']['get']('TrackChangesEditing');_0x2d82a9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12e7b0['locale'],'ELEMENT_TITLE')),_0x12e7b0['model']['document']['registerPostFixer'](_0x5db56d=>{let _0x1ebc9f=!0x1;const _0x5e7e4a=Array['from'](_0x12e7b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25c719,data:_0xb8a4a0}of _0x5e7e4a){const {group:_0x2210c0}=_0x2d82a9['_splitMarkerName'](_0x25c719);if('suggestion'!==_0x2210c0||!_0xb8a4a0['newRange'])continue;const _0x209bbe=_0xb8a4a0['newRange'],_0x1ba8ef=_0x209bbe['end']['nodeBefore'];if(!_0x1ba8ef||!_0x1ba8ef['is']('element','title-content'))continue;if(!_0x209bbe['start']['isTouching'](_0x209bbe['end']))continue;const _0x2af5ae=_0x12e7b0['model']['schema']['getNearestSelectionRange'](_0x209bbe['end'],'forward');if(_0x2af5ae&&_0x2af5ae['isCollapsed']){const _0x1d7dd0=_0x5db56d['createRange'](_0x209bbe['start'],_0x2af5ae['start']);_0x1d7dd0['isEqual'](_0x209bbe)||(_0x5db56d['updateMarker'](_0x25c719,{'range':_0x1d7dd0}),_0x1ebc9f=!0x0);}_0x1ebc9f||(_0x5db56d['removeMarker'](_0x25c719),_0x1ebc9f=!0x0);}return _0x1ebc9f;});}}class Bt extends _0x48c5b5{['afterInit'](){const _0x47e11f=this['editor'],_0x227ad7=_0x47e11f['plugins']['get']('TrackChangesEditing');_0x47e11f['plugins']['has']('UndoEditing')&&(_0x227ad7['enableCommand']('undo'),_0x227ad7['enableCommand']('redo'));}}class xt extends _0x48c5b5{static get['requires'](){return[It];}['afterInit'](){const _0x4f452a=this['editor'];if(!_0x4f452a['plugins']['has']('TableCaptionEditing'))return;_0x4f452a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x48c5b5{['tableProperties'];['tableCellProperties'];constructor(_0x521f6c){super(_0x521f6c),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 _0x42de83=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x462ab0 of this['tableProperties'])_0x42de83['enableCommand'](_0x462ab0,(_0xf929aa,_0x13b865)=>{const _0x1ca87d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x462ab0,[_0x1ca87d],this['tableProperties'],'tableProperties',_0xf929aa,_0x13b865);});_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x42de83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x199e9a,_0x58673f)=>this['handleDiscardAction'](this['tableProperties'],_0x199e9a,_0x58673f)),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x59cc0d of this['tableCellProperties'])_0x42de83['enableCommand'](_0x59cc0d,(_0x5f3bc6,_0x286989)=>{const _0x64ab72=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x59cc0d,_0x64ab72,this['tableCellProperties'],'tableCellProperties',_0x5f3bc6,_0x286989);});_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x42de83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x458c9f,_0x2218a7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x458c9f,_0x2218a7)),_0x42de83['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x42de83['descriptionFactory']['registerDescriptionCallback'](_0x5435a2=>this['handleSuggestionDescription'](_0x5435a2));}['_handlePropertyChange'](_0x229f23,_0x218fd9,_0x5be324,_0x582d64,_0x4e8be5,_0x318ac3){const _0x2a0f30=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x318ac3['batch'],()=>{for(const _0x7b129d of _0x218fd9){if(this['_getSuggestion'](_0x7b129d,_0x582d64))_0x4e8be5(_0x318ac3);else{const _0x55acce={};for(const _0x3b0dad of _0x5be324){const _0x1d6410=_0x7b129d['getAttribute'](_0x3b0dad);void 0x0!==_0x1d6410&&(_0x55acce[_0x3b0dad]=_0x1d6410);}_0x4e8be5(_0x318ac3),_0x2a0f30['markBlockFormat'](_0x7b129d,{'commandParams':[_0x55acce]},[],_0x582d64);}}});}['handleDiscardAction'](_0x5bdc71,_0x697441,_0x4328e3){const _0x43dd36=_0x697441[0x0]['start']['nodeAfter'],_0x1f883f=_0x4328e3['commandParams'][0x0];this['editor']['model']['change'](_0x53fd6b=>{for(const _0x155b58 of _0x5bdc71)void 0x0!==_0x1f883f[_0x155b58]?_0x53fd6b['setAttribute'](_0x155b58,_0x1f883f[_0x155b58],_0x43dd36):_0x53fd6b['removeAttribute'](_0x155b58,_0x43dd36);});}['handleSuggestionDescription'](_0xf91d9e){if(_0xf91d9e['data'])switch(_0xf91d9e['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'](_0x5d961f,_0x2c62fe){const _0x4b231b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x88ca8e of _0x4b231b['getSuggestions']({'skipNotAttached':!0x0})){const _0x53856c=_0x88ca8e['getContainedElement']();if(_0x88ca8e['subType']===_0x2c62fe&&_0x53856c===_0x5d961f)return _0x88ca8e;}return null;}}const m='$elementName';class p extends _0x48c5b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x47d1f4,_0x37f635,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x107579){function _0x24b96f(_0x274a06){return _0x274a06['map'](_0x3e378f=>String['fromCharCode'](_0x3e378f))['join']('');}super(_0x107579),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5ac9b9,_0x3bbb25,_0x482dc1,_0x3acb5b)=>{this['_model']['change'](()=>{for(const _0x3e85f2 of[..._0x3acb5b,..._0x482dc1])this['_model']['markers']['has'](_0x3e85f2)&&_0x107579['editing']['reconvertMarker'](_0x3e85f2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x107579['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(),_0x107579['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x107579['config']['get']('trackChanges.trackFormatChanges'),_0x107579['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x107579['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x107579,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x24b96f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x24b96f([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x32]);}['init'](){const _0x4da539=this['editor'],_0x251858=(_0x3dd8d5,_0x53fc27)=>{if('attribute'!=_0x3dd8d5)return'ck-suggestion-marker-'+_0x3dd8d5;const _0x19f54b=_0x53fc27['split']('|')[0x0];return this['_isBlockAttribute'](_0x19f54b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4da539['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4e91ab=>{const {id:_0x561ce7,authorId:_0x34fb7c,type:_0x19c79f,subType:_0x24d3a2}=this['_splitMarkerName'](_0x4e91ab['markerName']),_0x4c9dfb=['ck-suggestion-marker',_0x251858(_0x19c79f,_0x24d3a2)];let _0x5497ec=0xbb8;return this['activeMarkers']['includes'](_0x4e91ab['markerName'])&&(_0x4c9dfb['push']('ck-suggestion-marker--active'),_0x5497ec=0xbc2),'deletion'==_0x19c79f&&(_0x5497ec+=0x5),{'classes':_0x4c9dfb,'attributes':{'data-suggestion':_0x561ce7,'data-author-id':_0x34fb7c},'priority':_0x5497ec};}}),_0x4da539['conversion']['for']('dataDowncast')['add'](_0x297ff4=>{_0x297ff4['on']('addMarker:suggestion',(_0x2e9c1b,_0x1fcc33,_0x2a6f3f)=>{if(!_0x2a6f3f['options']['showSuggestionHighlights'])return;const _0x18b450=_0x1fcc33['item'];if(!_0x18b450)return;const _0x558206=_0x2a6f3f['mapper']['toViewElement'](_0x18b450);_0x4da539['model']['schema']['isObject'](_0x18b450)&&_0x558206&&!_0x558206['getCustomProperty']('widget')&&_0x558206['is']('containerElement')&&_0xb539ea(_0x558206,_0x2a6f3f['writer']);},{'priority':'high'});}),_0x4da539['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x30b8f2,_0x42bf5b)=>{if(!_0x42bf5b['options']['showSuggestionHighlights'])return null;const {type:_0x35b9e0,subType:_0x34cd9f}=this['_splitMarkerName'](_0x30b8f2['markerName']);return{'classes':['ck-suggestion-marker',_0x251858(_0x35b9e0,_0x34cd9f)],'priority':0xbb8};}});const _0x4c8431=({showActiveMarkers:_0x5adee2=!0x0,isAttributeSuggestion:_0x5df11b=!0x1}={})=>(_0x4a4812,_0x355f63,_0x471e75)=>{if(!_0x355f63['item'])return;const {id:_0xef9b4c,authorId:_0x311169}=this['_splitMarkerName'](_0x355f63['markerName']);if(_0x5df11b){const _0x101f37=this['_suggestions']['get'](_0xef9b4c),_0xae2781=this['_getAttributeKey'](_0x101f37);if(!this['_isBlockAttribute'](_0xae2781))return;}if(_0x355f63['item']['is']('selection'))return void _0x471e75['consumable']['consume'](_0x355f63['item'],_0x4a4812['name']);const _0x310529=_0x471e75['mapper']['toViewElement'](_0x355f63['item']);if(_0x355f63['item']['is']('element')&&_0x4da539['model']['schema']['isBlock'](_0x355f63['item'])&&!_0x310529['getCustomProperty']('addHighlight')){_0x471e75['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x310529),_0x471e75['writer']['setAttribute']('data-suggestion',_0xef9b4c,_0x310529),_0x471e75['writer']['setAttribute']('data-author-id',_0x311169,_0x310529),_0x471e75['mapper']['bindElementToMarker'](_0x310529,_0x355f63['markerName']),_0x5adee2&&(this['activeMarkers']['includes'](_0x355f63['markerName'])?_0x471e75['writer']['addClass']('ck-suggestion-marker--active',_0x310529):_0x471e75['writer']['removeClass']('ck-suggestion-marker--active',_0x310529));for(const _0x9b2425 of _0x4da539['model']['createRangeIn'](_0x355f63['item'])['getItems']())_0x471e75['consumable']['consume'](_0x9b2425,_0x4a4812['name']);_0x471e75['consumable']['consume'](_0x355f63['item'],_0x4a4812['name']);}};_0x4da539['conversion']['for']('dataDowncast')['add'](_0x5e0187=>{_0x5e0187['on']('addMarker:suggestion:formatBlock',(_0x366ca2,_0xbfa9c6,_0x20139b)=>{_0x20139b['options']['showSuggestionHighlights']&&_0x4c8431({'showActiveMarkers':!0x1})(_0x366ca2,_0xbfa9c6,_0x20139b);},{'priority':'highest'});}),_0x4da539['conversion']['for']('dataDowncast')['add'](_0x53f170=>{_0x53f170['on']('addMarker:suggestion:attribute',(_0x46a5c3,_0x1d2d40,_0x1a3a26)=>{_0x1a3a26['options']['showSuggestionHighlights']&&_0x4c8431({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x46a5c3,_0x1d2d40,_0x1a3a26);},{'priority':'highest'});}),_0x4da539['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5b71cf,_0x482b41)=>_0x482b41['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5b71cf['substr'](0xb)}}),_0x4da539['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39483d,{writer:_0x4f735f})=>{let _0x1d296a='suggestion:'+_0x39483d['getAttribute']('suggestion-type')+':'+_0x39483d['getAttribute']('id');return _0x39483d['getAttribute']('marker-count')&&(_0x1d296a+=':'+_0x39483d['getAttribute']('marker-count')),_0x4f735f['createElement']('$marker',{'data-name':_0x1d296a});}}),_0x4da539['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x184998=>{_0x184998['on']('addMarker:suggestion:formatBlock',_0x4c8431(),{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x2a6b88=>{_0x2a6b88['on']('addMarker:suggestion:attribute',_0x4c8431({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0xfc4381=>{_0xfc4381['on']('removeMarker:suggestion:formatBlock',(_0x4b9f32,_0x33ab25,_0x1e0062)=>{const _0x46ab09=_0x1e0062['mapper']['markerNameToElements'](_0x33ab25['markerName']);if(_0x46ab09){for(const _0x26fe09 of _0x46ab09)_0x26fe09['getCustomProperty']('addHighlight')||(_0x1e0062['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26fe09),_0x1e0062['writer']['removeAttribute']('data-suggestion',_0x26fe09),_0x1e0062['writer']['removeAttribute']('data-author-id',_0x26fe09),_0x1e0062['mapper']['unbindElementFromMarkerName'](_0x26fe09,_0x33ab25['markerName']));}},{'priority':'high'});}),_0x4da539['conversion']['for']('editingDowncast')['add'](_0x176fcd=>{_0x176fcd['on']('removeMarker:suggestion:attribute',(_0x3c378d,_0x13bd8c,_0x44f4d8)=>{const _0x5cd739=_0x44f4d8['mapper']['markerNameToElements'](_0x13bd8c['markerName']);if(!_0x5cd739)return;const {id:_0x32780f}=this['_splitMarkerName'](_0x13bd8c['markerName']),_0x16c15d=this['_suggestions']['get'](_0x32780f),_0x37808e=this['_getAttributeKey'](_0x16c15d);if(this['_isBlockAttribute'](_0x37808e)){for(const _0x5d9826 of _0x5cd739)_0x5d9826['getCustomProperty']('addHighlight')||(_0x44f4d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d9826),_0x44f4d8['writer']['removeAttribute']('data-suggestion',_0x5d9826),_0x44f4d8['writer']['removeAttribute']('data-author-id',_0x5d9826),_0x44f4d8['mapper']['unbindElementFromMarkerName'](_0x5d9826,_0x13bd8c['markerName']));}},{'priority':'high'});}),_0x4da539['model']['document']['registerPostFixer'](_0x345e64=>{let _0x27d0d7=!0x1;const _0x4bd40d=Array['from'](_0x4da539['model']['document']['differ']['getChangedMarkers']()),_0x154094=new Set();for(const {name:_0x4b2739,data:_0x71d1c4}of _0x4bd40d){const {group:_0x1eb163,type:_0x19a0bf,subType:_0x195368,id:_0xce311d}=this['_splitMarkerName'](_0x4b2739);if('suggestion'!==_0x1eb163)continue;const _0x1bf395=this['_suggestions']['get'](_0xce311d);if(null!=_0x71d1c4['newRange']){'formatInline'==_0x19a0bf&&(_0x27d0d7=_0x27d0d7||Ut(_0x71d1c4['newRange'],_0x4b2739,_0x345e64,_0x4da539['model']['schema']));const _0x41b450='attribute'==_0x19a0bf&&this['_isBlockAttribute'](_0x195368['split']('|')[0x0]);if(_0x71d1c4['newRange']['isCollapsed']||'$graveyard'==_0x71d1c4['newRange']['root']['rootName']||'formatBlock'==_0x19a0bf&&!Ft(_0x71d1c4['newRange'])||_0x41b450&&!Ft(_0x71d1c4['newRange'])||'deletion'==_0x19a0bf&&!(!Vt(_0x4ccee7=_0x71d1c4['newRange'])&&!function(_0x9e69ce){return _0x9e69ce['start']['parent']==_0x9e69ce['end']['nodeBefore']&&_0x9e69ce['start']['isAtEnd'];}(_0x4ccee7)))_0x345e64['removeMarker'](_0x4b2739),_0x27d0d7=!0x0;else{if(!_0x1bf395||!_0x1bf395['isInContent'])continue;if(_0x71d1c4['newRange']&&_0x71d1c4['oldRange']&&_0x71d1c4['newRange']['isEqual'](_0x71d1c4['oldRange']))continue;_0x154094['add'](_0x1bf395);}}}var _0x4ccee7;return _0x154094['size']>0x0&&(_0x27d0d7=!!this['_joinWithAdjacentSuggestions'](_0x154094)||_0x27d0d7),_0x27d0d7;}),_0x4da539['model']['document']['registerPostFixer'](_0x17a038=>{let _0x198716=!0x1;for(const _0x19fab9 of _0x4da539['model']['document']['differ']['getChanges']())if('insert'==_0x19fab9['type'])for(const _0x2178b3 of this['_suggestions']['values']()){if(_0x2178b3['isMultiRange']||!_0x2178b3['isInContent'])continue;const _0x3446b1='formatBlock'==_0x2178b3['type'],_0x44cfab=this['_getAttributeKey'](_0x2178b3),_0x134b8a=_0x44cfab&&this['_isBlockAttribute'](_0x44cfab);if(!_0x3446b1&&!_0x134b8a)continue;const _0x31bf2a=_0x2178b3['getFirstRange']();if(_0x31bf2a['start']['parent']!=_0x31bf2a['end']['parent']&&!_0x31bf2a['end']['isAtEnd']){const _0x257515=_0x4da539['model']['createPositionAt'](_0x31bf2a['start']['nodeAfter'],'end'),_0x2e5c98=_0x4da539['model']['createRange'](_0x31bf2a['start'],_0x257515);_0x17a038['updateMarker'](_0x2178b3['getFirstMarker'](),{'range':_0x2e5c98}),_0x198716=!0x0;}}return _0x198716;}),_0x4da539['model']['document']['registerPostFixer'](_0x19f3a3=>this['_processAttributeChanges'](_0x19f3a3)),_0x4da539['model']['document']['registerPostFixer'](_0x5a68c9=>!_0x5a68c9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a68c9)),_0x4da539['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4da539['model']['document']['on']('change:data',(_0x2cd65a,_0x4ed995)=>{if(!_0x4ed995['isLocal']||_0x4ed995['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x474dac=_0x4da539['model']['document']['differ']['getChanges']();if(0x0==_0x474dac['length'])return;const _0x18550b=[],_0x34315f=_0x474dac['filter'](_0x519179=>'attribute'==_0x519179['type']),_0x127ffb=_0x474dac['filter'](_0x384303=>'insert'==_0x384303['type']&&'$text'!=_0x384303['name']);for(const _0x215620 of _0x34315f)this['_isRegisteredAttribute'](_0x215620['attributeKey'])&&_0x18550b['push']({'key':_0x215620['attributeKey'],'newValue':_0x215620['attributeNewValue'],'oldValue':_0x215620['attributeOldValue'],'range':Pt(_0x215620['range'],_0x4da539['model'])});for(const _0x4eec56 of _0x127ffb){if('rename'!=_0x4eec56['action']&&'refresh'!=_0x4eec56['action'])continue;const _0x1ac58c=Lt(_0x4eec56['position']['nodeAfter'],_0x4da539['model']),_0x1c6bd7=_0x4eec56['before'];'rename'==_0x4eec56['action']&&_0x18550b['push']({'key':m,'newValue':_0x4eec56['name'],'oldValue':_0x1c6bd7['name'],'range':_0x1ac58c});for(const [_0x4d4e4e,_0x11a9b3]of _0x1c6bd7['attributes']){if(!this['_isRegisteredAttribute'](_0x4d4e4e))continue;const _0x48c3b8=_0x4eec56['attributes']['get'](_0x4d4e4e);_0x11a9b3!==_0x48c3b8&&_0x18550b['push']({'key':_0x4d4e4e,'newValue':_0x48c3b8,'oldValue':_0x11a9b3,'range':_0x1ac58c});}for(const [_0x343945,_0x4572bd]of _0x4eec56['attributes'])this['_isRegisteredAttribute'](_0x343945)&&(_0x1c6bd7['attributes']['has'](_0x343945)||_0x18550b['push']({'key':_0x343945,'newValue':_0x4572bd,'oldValue':null,'range':_0x1ac58c}));}0x0!=_0x18550b['length']&&_0x4da539['model']['enqueueChange'](_0x4ed995,_0x10752d=>{const _0x3de68a=_0x5790ee();for(const {range:_0x1f620f,key:_0x2d3278,oldValue:_0x489061,newValue:_0x4e99ae}of _0x18550b)this['markAttributeChange'](_0x1f620f,_0x2d3278,_0x489061,_0x4e99ae,{'groupId':_0x3de68a});this['_reduceExistingSuggestions'](_0x10752d,_0x18550b);});},{'priority':'lowest'}),_0x4da539['model']['markers']['on']('update:suggestion',(_0x20d90a,_0x2af74a,_0x28cb50)=>{if(null==_0x28cb50){const {id:_0xaac6cc}=this['_splitMarkerName'](_0x2af74a['name']),_0x51f22c=this['_suggestions']['get'](_0xaac6cc);_0x51f22c&&_0x51f22c['addMarkerName'](_0x2af74a['name']);}}),_0x4da539['model']['document']['on']('change:data',()=>{const _0x321313=Array['from'](_0x4da539['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2101a5=>'suggestion'===this['_splitMarkerName'](_0x2101a5['name'])['group']);if(0x0===_0x321313['length'])return;_0x321313['sort']((_0x409e2e,_0x33d601)=>{const _0x155e2b=_0x409e2e['data']['oldRange'],_0x2cfa4d=_0x33d601['data']['oldRange'];return null===_0x155e2b&&null===_0x2cfa4d?0x0:null===_0x155e2b&&null!==_0x2cfa4d?-0x1:null!==_0x155e2b&&null===_0x2cfa4d?0x1:_0x155e2b['start']['isBefore'](_0x2cfa4d['start'])?-0x1:0x1;});const _0x991d99=new Set(),_0x3d1994=new Set();for(const {name:_0x4e7ddb,data:_0x1c0203}of _0x321313){const {id:_0x262b41}=this['_splitMarkerName'](_0x4e7ddb);if(null===_0x1c0203['oldRange']){const _0x46e382=this['_handleNewSuggestionMarker'](_0x4e7ddb);_0x3d1994['add'](_0x46e382);}else{const _0x513a1b=this['_suggestions']['get'](_0x262b41);null!==_0x1c0203['newRange']||_0x513a1b['isInContent']?(_0x991d99['add'](_0x513a1b['head']),_0x3d1994['add'](_0x513a1b)):this['_removeSuggestion'](_0x513a1b);}}_0x3d1994['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d1994);for(const _0x472f8e of _0x991d99)this['fire']('suggestionChanged',_0x472f8e);}),_0x4da539['model']['on']('applyOperation',(_0x20ac5a,_0x330cd2)=>{const _0xfbccaf=_0x330cd2[0x0];if(!this['_suggestions']['size'])return;if(!_0xfbccaf['isDocumentOperation'])return;if(_0xfbccaf['batch']['isUndo']||!_0xfbccaf['batch']['isLocal'])return;let _0x38fca1,_0x36c486;switch(_0xfbccaf['type']){case'insert':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['position']),_0x36c486=_0x38fca1['getShiftedBy'](_0xfbccaf['howMany']);break;case'split':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['splitPosition']),_0x36c486=_0x4da539['model']['createPositionAt'](_0xfbccaf['moveTargetPosition']);break;case'move':_0x38fca1=_0x4da539['model']['createPositionAt'](_0xfbccaf['targetPosition']),_0x36c486=_0x38fca1['getShiftedBy'](_0xfbccaf['howMany']);break;default:return;}const _0x34940d=_0x4da539['model']['createRange'](_0x38fca1,_0x36c486);_0x4da539['model']['change'](()=>{for(const {suggestion:_0x172bcb,meta:_0x187a4b}of this['_findSuggestions'](_0x34940d)){if(_0x172bcb['isMultiRange'])continue;if('formatInline'==_0x172bcb['type'])continue;const _0x3f1299=this['_getAttributeKey'](_0x172bcb);if(_0x3f1299&&this['_isBlockAttribute'](_0x3f1299)&&'split'!=_0xfbccaf['type'])continue;const _0x233b71=_0x172bcb['data']&&_0x172bcb['data']['multipleBlocks'];('formatBlock'!=_0x172bcb['type']||'split'==_0xfbccaf['type']&&!_0x233b71)&&(_0x187a4b['containsRangeInObject']||'insertion'==_0x172bcb['type']&&_0x187a4b['isOwn']||_0x172bcb['getFirstRange']()['containsRange'](_0x34940d)&&this['_breakSuggestionMarker'](_0x172bcb,_0x38fca1,_0x36c486));}});},{'priority':'lowest'}),_0x4da539['model']['on']('deleteContent',(_0x4c0bb2,_0x50068f)=>{const _0x353285=_0x50068f[0x0],_0x3726a3=_0x50068f[0x1];if(_0x3726a3&&_0x3726a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x353285['isCollapsed'])return;const _0x788934=_0x4da539['model']['schema'],{start:_0x535887,end:_0x20188d}=_0x353285['getFirstRange'](),_0x37cde5=_0x535887['nodeAfter']&&_0x788934['isLimit'](_0x535887['nodeAfter'])?null:_0x788934['getNearestSelectionRange'](_0x535887,'forward'),_0x4ed606=_0x20188d['nodeBefore']&&_0x788934['isLimit'](_0x20188d['nodeBefore'])?null:_0x788934['getNearestSelectionRange'](_0x20188d,'backward'),_0x1eb936=_0x4da539['model']['createRange'](_0x37cde5?_0x37cde5['start']:_0x535887,_0x4ed606?_0x4ed606['end']:_0x20188d);_0x4da539['model']['change'](_0x35e8f6=>{this['markDeletion'](_0x1eb936);const _0x111251=_0x4da539['model']['schema']['getNearestSelectionRange'](_0x1eb936['start']);_0x353285['is']('documentSelection')?_0x35e8f6['setSelection'](_0x111251):_0x353285['setTo'](_0x111251);}),_0x4c0bb2['stop']();},{'priority':_0x3ff64e['normal']+0xa}),_0x4da539['model']['on']('insertContent',(_0x2bfa57,_0x3ddbc7)=>{const _0x24eda8=_0x3ddbc7[_0x3ddbc7['length']-0x1];_0x24eda8&&_0x24eda8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4da539['model']['change'](()=>{let _0x540c87=_0x4da539['model']['insertContent'](_0x3ddbc7[0x0],_0x3ddbc7[0x1],_0x3ddbc7[0x2],{'forceDefaultExecution':!0x0});if(!_0x540c87)return;_0x2bfa57['return']=_0x540c87['clone']();const _0x58a97c=_0x540c87['end']['nodeBefore'],_0x553ced=_0x4da539['model']['schema'];_0x58a97c&&_0x553ced['isBlock'](_0x58a97c)&&!_0x553ced['isObject'](_0x58a97c)&&(_0x540c87=_0x4da539['model']['createRange'](_0x540c87['start'],_0x4da539['model']['createPositionAt'](_0x58a97c,'end'))),this['markInsertion'](_0x540c87);}),_0x2bfa57['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1e848b=new x(_0x4da539,this['_suggestions']);_0x4da539['commands']['add']('acceptSuggestion',_0x1e848b),this['enableCommand']('acceptSuggestion');const _0x56d640=new R(_0x4da539,this['_suggestions']);_0x4da539['commands']['add']('discardSuggestion',_0x56d640),this['enableCommand']('discardSuggestion'),_0x4da539['commands']['add']('acceptAllSuggestions',new E(_0x4da539,_0x1e848b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4da539['commands']['add']('discardAllSuggestions',new E(_0x4da539,_0x56d640,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4da539['commands']['add']('acceptSelectedSuggestions',new O(_0x4da539,_0x1e848b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4da539['commands']['add']('discardSelectedSuggestions',new O(_0x4da539,_0x56d640,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4a1125=_0x4da539['plugins']['get']('CommentsRepository');this['listenTo'](_0x4a1125,'addComment',(_0x502c83,{threadId:_0x4b7fe0})=>{const _0x154160=this['_suggestions']['get'](_0x4b7fe0);_0x154160&&_0x154160['commentThread']&&0x1===_0x154160['commentThread']['length']&&this['_updateSuggestionData'](_0x4b7fe0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4a1125,'removeComment',(_0x551bf1,{threadId:_0x261c4d})=>{const _0x10ee13=this['_suggestions']['get'](_0x261c4d);_0x10ee13&&_0x10ee13['commentThread']&&!_0x10ee13['commentThread']['length']&&this['_updateSuggestionData'](_0x261c4d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48822d){if(this['_adapter'])throw new _0x4f63a0('track-changes-adapter-already-set',this);this['_adapter']=_0x48822d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2e2ab1=!0x1,toJSON:_0x2a1ab8=!0x1}={}){const _0x5cb705=[];for(const _0x445562 of this['_suggestions']['values']())_0x2e2ab1&&!_0x445562['isInContent']||_0x5cb705['push'](_0x445562);return _0x2a1ab8?_0x5cb705['map'](_0x5f01bd=>_0x5f01bd['toJSON']()):_0x5cb705;}['getSuggestion'](_0xe62655){const _0x2b329d=this['_suggestions']['get'](_0xe62655);if(!_0x2b329d)throw new _0x4f63a0('track-changes-suggestion-not-found',this);return _0x2b329d;}['hasSuggestion'](_0x124eea){return this['_suggestions']['has'](_0x124eea);}['addSuggestionData'](_0x1a6b49){const {authorId:_0x468abe,id:_0x4966a0,attributes:_0x518f2c}=_0x1a6b49,[_0x1fcbab,_0xba0008]=_0x1a6b49['type']['split'](':'),_0x55b0ab=this['_suggestions']['get'](_0x4966a0)||this['_createSuggestion'](_0x1fcbab,_0xba0008,_0x4966a0,_0x468abe,_0x518f2c);if(this['_addThreadToSuggestion'](_0x55b0ab),this['_checkSuggestionCorrectness'](_0x55b0ab,_0x1fcbab,_0xba0008||null,_0x468abe),_0x55b0ab['createdAt']=_0x1a6b49['createdAt'],_0x55b0ab['_isDataLoaded']=!0x0,_0x518f2c&&_0x518f2c['@external']){const _0x58c4f1=_0x518f2c['@external'],_0x2b77ff=this['_getExternalAuthor'](_0x58c4f1['authorName']);_0x55b0ab['authoredAt']=_0x58c4f1['createdAt'],_0x55b0ab['author']=_0x2b77ff,_0x55b0ab['isExternal']=!0x0;}else _0x55b0ab['authoredAt']=_0x1a6b49['createdAt'];switch(_0x1a6b49['data']&&(_0x55b0ab['data']=_0x1a6b49['data']),_0x1a6b49['attributes']&&(_0x55b0ab['attributes']=_0x1a6b49['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x55b0ab['_saved']=!0x0),this['_suggestionState']['get'](_0x55b0ab)){case'notReady':this['_suggestionState']['set'](_0x55b0ab,'dataReady');break;case'markerReady':_0x55b0ab['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x55b0ab])),this['_refreshSuggestionsChain'](new Set([_0x55b0ab])),this['_suggestionState']['set'](_0x55b0ab,'ready'),this['fire']('suggestionLoaded',_0x55b0ab)):this['_suggestionState']['set'](_0x55b0ab,'removed');}return _0x55b0ab;}['acceptSuggestion'](_0x1971b1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3df35f of _0x1971b1['getAllAdjacentSuggestions']())_0x3df35f['accept']();});});}['discardSuggestion'](_0x963bc4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f43f0 of _0x963bc4['getAllAdjacentSuggestions']())_0x2f43f0['discard']();});});}['enableCommand'](_0x197474,_0x2551d5){const _0x42fefc=this['editor']['commands']['get'](_0x197474);if(!_0x42fefc)throw new _0x4f63a0('track-changes-command-not-found',this,{'commandName':_0x197474});if(this['_enabledCommands']['has'](_0x42fefc))throw new _0x4f63a0('track-changes-enable-command-twice',this,{'commandName':_0x197474});this['_enabledCommands']['add'](_0x42fefc),_0x2551d5&&_0x42fefc['on']('execute',(_0x88d51f,_0x9b576a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x9b576a['length']>0x0&&_0x9b576a[_0x9b576a['length']-0x1]&&_0x9b576a[_0x9b576a['length']-0x1]['forceDefaultExecution']?_0x9b576a['pop']():(_0x88d51f['return']=_0x2551d5((..._0x581312)=>_0x42fefc['execute'](..._0x581312,{'forceDefaultExecution':!0x0}),..._0x9b576a),_0x88d51f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x506791){let _0x4df7e5,_0x5564e6;const _0x58398a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4df7e5=_0x506791();}catch(_0x5e0dfc){_0x5564e6=_0x5e0dfc;}return _0x58398a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5564e6&&_0x4f63a0['rethrowUnexpectedError'](_0x5564e6,this),_0x4df7e5;}['markInsertion'](_0x258bb5,_0x41b069=null,_0x1ec193={}){if(_0x258bb5['isCollapsed'])return null;const _0x3836ab=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4a91be,meta:_0x26353c}of this['_findSuggestions'](_0x258bb5,'insertion'))if(_0x26353c['isOwn']){if(!_0x26353c['isNextTo']){if(_0x26353c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4a91be,_0x1ec193))continue;return _0x4a91be;}if(qt(_0x4a91be,_0x1ec193))return _0x4a91be;this['_breakSuggestionMarker'](_0x4a91be,_0x258bb5['start'],_0x258bb5['end']);break;}if(_0x41b069==_0x4a91be['subType']&&qt(_0x4a91be,_0x1ec193)){const _0x5ddda8=_0x4a91be['getFirstRange']();return _0x5ddda8['start']['isEqual'](_0x258bb5['end'])?this['_setSuggestionRange'](_0x4a91be,this['_model']['createRange'](_0x258bb5['start'],_0x5ddda8['end'])):this['_setSuggestionRange'](_0x4a91be,this['_model']['createRange'](_0x5ddda8['start'],_0x258bb5['end'])),_0x4a91be;}}const _0x2d1ca0=_0x5790ee(),_0x180b69=_0x3836ab['id'],_0x3a144c=_0x41b069?'insertion:'+_0x41b069:'insertion',_0x1335c5=this['_setSuggestionData']({'id':_0x2d1ca0,'type':_0x3a144c,'createdAt':new Date(),'authorId':_0x180b69,'attributes':_0x1ec193});return this['_addSuggestionMarker'](_0x3a144c,_0x2d1ca0,_0x180b69,_0x258bb5),_0x1335c5;}['markMultiRangeInsertion'](_0x17a5f1,_0x339bea='multi',_0x26ca96={}){const _0x443a24=this['editor']['plugins']['get']('Users')['me'],_0x3b199c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x339bea,'join');for(const _0x573f0b of this['getSuggestions']())if(_0x573f0b['author']['id']==_0x443a24['id']&&'insertion'==_0x573f0b['type']&&_0x573f0b['subType']==_0x339bea&&qt(_0x573f0b,_0x26ca96)&&(_0x3b199c(_0x573f0b['getRanges'](),_0x17a5f1)||_0x3b199c(_0x17a5f1,_0x573f0b['getRanges']()))){for(const _0x126987 of _0x17a5f1)_0x573f0b['addRange'](_0x126987);return _0x573f0b;}for(const {suggestion:_0x227f3b,meta:_0x1bfdfd}of this['_findSuggestions'](_0x17a5f1,'insertion')){if(!_0x1bfdfd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1bfdfd['containsRangeInObject'])continue;if(!qt(_0x227f3b,_0x26ca96))continue;let _0x148ad9=!0x0;for(const _0x56e2ee of _0x227f3b['getRanges']())for(const _0x2859a8 of _0x17a5f1)if(!_0x56e2ee['containsRange'](_0x2859a8)){_0x148ad9=!0x1;break;}if(_0x148ad9)return _0x227f3b;}const _0xef53b6=_0x5790ee(),_0x22e8f5=_0x443a24['id'],_0x5bfe50='insertion:'+_0x339bea,_0x2ccf97=this['_setSuggestionData']({'id':_0xef53b6,'type':_0x5bfe50,'createdAt':new Date(),'authorId':_0x22e8f5,'attributes':_0x26ca96});for(const _0x2878fa of _0x17a5f1)this['_addSuggestionMarker'](_0x5bfe50,_0xef53b6,_0x22e8f5,_0x2878fa,u['getMultiRangeId']());return _0x2ccf97;}['markInlineFormat'](_0x144e07,_0x4a6c12,_0x33af4d=null,_0x363721={}){if(_0x33af4d=_0x33af4d||Gt(_0x4a6c12),_0x144e07['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d1c37=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33af4d,'accept');return this['forceDefaultExecution'](()=>_0x2d1c37([_0x144e07],_0x4a6c12,_0x363721)),null;}const _0x4ea496=this['editor']['plugins']['get']('Users')['me'],_0x25b118=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x42b24f,meta:_0x4d47fd}of this['_findSuggestions'](_0x144e07,'insertion'))_0x4d47fd['isOwn']&&!_0x4d47fd['isInsideObject']&&_0x25b118['push'](..._0x42b24f['getRanges']());}const _0x303b73=function(_0x67ea8b,_0x560b77){const _0x6a3e4c=[];for(const _0x21ce3d of _0x560b77){const _0x3ad6af=_0x67ea8b['getIntersection'](_0x21ce3d);_0x3ad6af&&_0x6a3e4c['push'](_0x3ad6af);}return _0x6a3e4c;}(_0x144e07,_0x25b118),_0x58f2e2=function(_0x50979b,_0xaa80f3){const _0x565eaf=[_0x50979b];for(const _0x2b8f19 of _0xaa80f3){let _0x1e68ad=0x0;for(;_0x1e68ad<_0x565eaf['length'];){const _0x2e0307=_0x565eaf[_0x1e68ad]['getDifference'](_0x2b8f19);_0x565eaf['splice'](_0x1e68ad,0x1,..._0x2e0307),_0x1e68ad+=_0x2e0307['length'];}}return _0x565eaf;}(_0x144e07,_0x25b118);_0x303b73['length']&&this['_model']['change'](()=>{for(const _0x239547 of _0x303b73){const _0x12b620=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33af4d,'accept');this['forceDefaultExecution'](()=>_0x12b620([_0x239547],_0x4a6c12,_0x363721));}});for(const _0x2c2f87 of _0x58f2e2){let _0xacbecf=null,_0x1032f5=_0x2c2f87['start'],_0x41ff31=_0x2c2f87['end'];for(const {suggestion:_0x518b91,meta:_0x5624b7}of this['_findSuggestions'](_0x2c2f87,'formatInline')){if(!_0x5624b7['isOwn'])continue;if(_0x518b91['subType']!=_0x33af4d)continue;if(!qt(_0x518b91,_0x363721))continue;const _0x72db1=_0x518b91['getFirstRange']();if(_0x72db1['containsRange'](_0x2c2f87,!0x0))return null;_0x1032f5=_0x1032f5['isBefore'](_0x72db1['start'])?_0x1032f5:_0x72db1['start'],_0x41ff31=_0x41ff31['isAfter'](_0x72db1['end'])?_0x41ff31:_0x72db1['end'],_0xacbecf?_0x72db1['start']['isBefore'](_0xacbecf['getFirstRange']()['start'])?(_0xacbecf['removeMarkers'](),_0xacbecf=_0x518b91):_0x518b91['removeMarkers']():_0xacbecf=_0x518b91;}const _0x382b05=this['_model']['createRange'](_0x1032f5,_0x41ff31);if(_0xacbecf)this['_setSuggestionRange'](_0xacbecf,_0x382b05);else{const _0x29b085=_0x5790ee(),_0x2f9931=_0x4ea496['id'];this['_setSuggestionData']({'id':_0x29b085,'type':'formatInline:'+_0x33af4d,'data':_0x4a6c12,'createdAt':new Date(),'authorId':_0x2f9931,'attributes':_0x363721}),this['_addSuggestionMarker']('formatInline:'+_0x33af4d,_0x29b085,_0x2f9931,_0x382b05);}}return null;}['markBlockFormat'](_0x544e39,_0x9b8404,_0x5eac30=[],_0x2ad793=null,_0x2cd2ed={}){_0x9b8404['formatGroupId']||(_0x9b8404['formatGroupId']=_0x9b8404['commandName']),_0x9b8404['multipleBlocks']=_0x544e39['is']('range'),_0x2ad793=_0x2ad793||Gt(_0x9b8404);const _0x4ebe39=_0x5eac30['map'](_0x13c096=>Lt(_0x13c096,this['_model'])),_0x5154df=_0x544e39['is']('range')?_0x544e39:Lt(_0x544e39,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1ba6c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ad793,'accept');return this['forceDefaultExecution'](()=>_0x1ba6c1([_0x5154df],_0x9b8404,_0x2cd2ed)),null;}_0x4ebe39['push'](_0x5154df);let _0x47c71d=!0x0;for(const _0x3eea1e of _0x4ebe39)if(!this['_rangeIsInLocalUserInsertion'](_0x3eea1e)){_0x47c71d=!0x1;break;}if(_0x47c71d&&'always'!==this['_trackFormatChanges']){const _0x23d045=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ad793,'accept');return this['forceDefaultExecution'](()=>_0x23d045([_0x5154df],_0x9b8404,_0x2cd2ed)),null;}let _0x52736d=null,_0x11bb6b=_0x5154df['start'],_0x120d12=_0x5154df['end'];for(const {suggestion:_0x5a8397,meta:_0x435435}of this['_findSuggestions'](_0x5154df,'formatBlock')){if(!_0x435435['isOwn'])continue;if(_0x435435['isNextTo']||_0x435435['containsRangeInObject']||_0x435435['isInsideObject'])continue;if(_0x5a8397['data']['formatGroupId']!=_0x9b8404['formatGroupId'])continue;if(!qt(_0x5a8397,_0x2cd2ed))continue;const _0x2a90e8=_0x5a8397['getFirstRange']();if(_0x5a8397['subType']==_0x2ad793){if(_0x2a90e8['containsRange'](_0x5154df,!0x0))return null;_0x11bb6b=_0x11bb6b['isBefore'](_0x2a90e8['start'])?_0x11bb6b:_0x2a90e8['start'],_0x120d12=_0x120d12['isAfter'](_0x2a90e8['end'])?_0x120d12:_0x2a90e8['end'],_0x52736d?_0x2a90e8['start']['isBefore'](_0x52736d['getFirstRange']()['start'])?(_0x52736d['removeMarkers'](),_0x52736d=_0x5a8397):_0x5a8397['removeMarkers']():_0x52736d=_0x5a8397;}else{const _0x360d3=_0x5154df['getIntersection'](_0x2a90e8);this['_cutOutSuggestionMarker'](_0x5a8397,_0x360d3);}}const _0x303707=this['editor']['plugins']['get']('Users')['me'],_0x4e3c21=_0x5790ee(),_0xd1a388=_0x303707['id'];if(_0x52736d)return this['_setSuggestionRange'](_0x52736d,this['_model']['createRange'](_0x11bb6b,_0x120d12)),_0x52736d;{const _0x378363=this['_setSuggestionData']({'id':_0x4e3c21,'type':'formatBlock:'+_0x2ad793,'data':_0x9b8404,'createdAt':new Date(),'authorId':_0xd1a388,'attributes':_0x2cd2ed});return this['_addSuggestionMarker']('formatBlock:'+_0x2ad793,_0x4e3c21,_0xd1a388,this['_model']['createRange'](_0x11bb6b,_0x120d12)),_0x378363;}}['markMultiRangeBlockFormat'](_0x1132da,_0x470dea,_0x493e8d=[],_0x496288=null,_0x141ee2={}){_0x470dea['formatGroupId']||(_0x470dea['formatGroupId']=_0x470dea['commandName']);const _0x3cbeff=_0x1132da[0x0];_0x470dea['multipleBlocks']=_0x3cbeff['is']('range'),_0x496288=_0x496288||Gt(_0x470dea);const _0x5116b3=_0x493e8d['map'](_0x2c7557=>Lt(_0x2c7557,this['_model'])),_0x36b1c0=_0x3cbeff['is']('range')?_0x1132da:_0x1132da['map'](_0x968691=>Lt(_0x968691,this['_model']));if('never'===this['_trackFormatChanges']){const _0x433211=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'accept');return this['forceDefaultExecution'](()=>_0x433211(_0x36b1c0,_0x470dea,_0x141ee2)),null;}_0x5116b3['push'](..._0x36b1c0);let _0x20b51e=!0x0;for(const _0x57e1fe of _0x5116b3)if(!this['_rangeIsInLocalUserInsertion'](_0x57e1fe)){_0x20b51e=!0x1;break;}if(_0x20b51e&&'always'!==this['_trackFormatChanges']){const _0x35662d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'accept');return this['forceDefaultExecution'](()=>_0x35662d(_0x36b1c0,_0x470dea,_0x141ee2)),null;}const _0x294362=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a601e of this['getSuggestions']()){if(_0x2a601e['author']['id']!=_0x294362['id'])continue;if('formatBlock'!=_0x2a601e['type']||_0x2a601e['data']['formatGroupId']!=_0x470dea['formatGroupId'])continue;if(!qt(_0x2a601e,_0x141ee2))continue;const _0xc09fdb=_0x2a601e['subType']==_0x496288;for(let _0x219109=0x0;_0x219109<_0x36b1c0['length'];_0x219109++){const _0x10dc7d=_0x36b1c0[_0x219109];for(const _0x4331a4 of _0x2a601e['getMarkers']()){const _0x2f24e9=_0x4331a4['getRange']();if(_0x10dc7d['isEqual'](_0x2f24e9)){_0xc09fdb?(_0x36b1c0['splice'](_0x219109,0x1),_0x219109--):_0x2a601e['removeMarker'](_0x4331a4['name']);break;}}}}if(0x0==_0x36b1c0['length'])return null;const _0xc1c70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x496288,'join');for(const _0x3430e4 of this['getSuggestions']())if(_0x3430e4['author']['id']==_0x294362['id']&&'formatBlock'==_0x3430e4['type']&&_0x3430e4['data']['formatGroupId']==_0x470dea['formatGroupId']&&_0x3430e4['subType']==_0x496288&&qt(_0x3430e4,_0x141ee2)&&(_0xc1c70(_0x3430e4['getRanges'](),_0x36b1c0)||_0xc1c70(_0x36b1c0,_0x3430e4['getRanges']()))){for(const _0x23c7dd of _0x36b1c0)_0x3430e4['addRange'](_0x23c7dd);return _0x3430e4;}const _0x4882a0=_0x5790ee(),_0x56a497=_0x294362['id'],_0x2c208c='formatBlock:'+_0x496288,_0x1f577a=this['_setSuggestionData']({'id':_0x4882a0,'type':_0x2c208c,'data':_0x470dea,'createdAt':new Date(),'authorId':_0x56a497,'attributes':_0x141ee2});for(const _0x2a8c9a of _0x36b1c0)this['_addSuggestionMarker'](_0x2c208c,_0x4882a0,_0x56a497,_0x2a8c9a,u['getMultiRangeId']());return _0x1f577a;}['markDeletion'](_0x2c87d6,_0x582d9a=null,_0x393eb6={}){if(_0x2c87d6['isCollapsed'])return null;const _0x5f6a6d=this['editor']['plugins']['get']('Users')['me'],_0x405746=new _0x3bc28a(_0x2c87d6['start'],_0x2c87d6['end']);for(const {suggestion:_0x27adf7,meta:_0x425957}of this['_findSuggestions'](_0x405746,'insertion'))if(_0x425957['isOwn']&&!_0x425957['isNextTo']){if(_0x27adf7['isMultiRange']){const _0x254e36=_0x27adf7['getRanges']()['filter'](_0x30a152=>'$graveyard'!=_0x30a152['root']['rootName']);_0x254e36['every'](_0xe378e6=>_0x405746['containsRange'](_0xe378e6,!0x0))&&_0x27adf7['discard']();if(_0x254e36['some'](_0x1c7521=>_0x1c7521['containsRange'](_0x405746,!0x0))){const _0x34462d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x582d9a,'accept');return this['forceDefaultExecution'](()=>_0x34462d([_0x405746],null,_0x393eb6)),null;}}else{const _0x52b0e5=_0x405746['getIntersection'](_0x27adf7['getFirstRange']());null!==_0x52b0e5&&_0x27adf7['_onDiscard']([_0x52b0e5],null,_0x393eb6);}}if(_0x405746['detach'](),_0x405746['isCollapsed']||'$graveyard'==_0x405746['root']['rootName'])return null;let _0x4f5935=null,_0x2727f8=_0x405746['start'],_0x800db7=_0x405746['end'];const _0x43c503=this['_findSuggestions'](_0x405746,'deletion');for(const {suggestion:_0x553e97,meta:_0x1f8dfe}of _0x43c503){const _0x17393e=this['_model']['createRange'](_0x2727f8,_0x800db7);if(_0x1f8dfe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f8dfe['containsRangeInObject']&&!_0x1f8dfe['isInsideObject'])){if(_0x553e97['isMultiRange']){if(!qt(_0x553e97,_0x393eb6))continue;let _0x3ff690=!0x0;for(const _0x30b7b4 of _0x553e97['getRanges']()){if(_0x30b7b4['containsRange'](_0x17393e,!0x0))return _0x553e97;_0x17393e['containsRange'](_0x30b7b4)||(_0x3ff690=!0x1);}_0x3ff690&&_0x553e97['discard']();}else{const _0x366932=_0x553e97['getFirstRange']();if(_0x366932['containsRange'](_0x17393e,!0x0))return _0x553e97;if(!qt(_0x553e97,_0x393eb6)){_0x17393e['containsRange'](_0x366932)?_0x553e97['removeMarkers']():_0x366932['containsPosition'](_0x2727f8)?_0x2727f8=_0x366932['end']:_0x366932['containsPosition'](_0x800db7)&&(_0x800db7=_0x366932['start']);continue;}_0x2727f8=_0x2727f8['isBefore'](_0x366932['start'])?_0x2727f8:_0x366932['start'],_0x800db7=_0x800db7['isAfter'](_0x366932['end'])?_0x800db7:_0x366932['end'],_0x393eb6=Object['assign']({},_0x553e97['attributes']),_0x4f5935?_0x366932['start']['isBefore'](_0x4f5935['getFirstRange']()['start'])?(_0x4f5935['removeMarkers'](),_0x4f5935=_0x553e97):_0x553e97['removeMarkers']():_0x4f5935=_0x553e97;}}}if(_0x4f5935)return this['_setSuggestionRange'](_0x4f5935,this['_model']['createRange'](_0x2727f8,_0x800db7)),_0x4f5935;{const _0x277a0a=_0x5790ee(),_0x40d9bc=this['_model']['createRange'](_0x2727f8,_0x800db7),_0x8fafb=_0x5f6a6d['id'],_0x780fc0=_0x582d9a?'deletion:'+_0x582d9a:'deletion',_0x560892=this['_setSuggestionData']({'id':_0x277a0a,'type':_0x780fc0,'createdAt':new Date(),'authorId':_0x8fafb,'attributes':_0x393eb6});return this['_addSuggestionMarker'](_0x780fc0,_0x277a0a,_0x8fafb,_0x40d9bc),_0x560892;}}['markMultiRangeDeletion'](_0x18c13c,_0x138d03='multi',_0x1f8add={}){const _0x5337da=this['editor']['plugins']['get']('Users')['me'],_0x3ca5fd=_0x18c13c['map'](_0x2a6304=>new _0x3bc28a(_0x2a6304['start'],_0x2a6304['end'])),_0x199412=new Set();for(const {suggestion:_0x36cb07,meta:_0x348224}of this['_findSuggestions'](_0x3ca5fd,'insertion'))_0x348224['isOwn']&&!_0x348224['isNextTo']&&_0x199412['add'](_0x36cb07);for(const _0x313368 of _0x199412)if(_0x313368['isMultiRange']){const _0x4191d8=_0x313368['getRanges']();(!_0x313368['attributes']||!_0x313368['attributes']['skipNestingCheck'])&&(_0x4191d8['every'](_0x441276=>_0x3ca5fd['some'](_0x5f4c1c=>_0x5f4c1c['containsRange'](_0x441276,!0x0)))&&_0x313368['discard']());if(_0x3ca5fd['every'](_0x2aef54=>_0x4191d8['some'](_0x8c51f4=>_0x8c51f4['containsRange'](_0x2aef54,!0x0)))){const _0x4b9dc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'accept');return this['forceDefaultExecution'](()=>_0x4b9dc6(_0x18c13c,null,_0x1f8add)),null;}}else{const _0x344bcc=_0x313368['getFirstRange']();_0x3ca5fd['some'](_0x2b155e=>_0x2b155e['containsRange'](_0x344bcc,!0x0))&&_0x313368['discard']();if(_0x3ca5fd['every'](_0x2bf54a=>_0x344bcc['containsRange'](_0x2bf54a,!0x0))){const _0x4a5840=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'accept');return this['forceDefaultExecution'](()=>_0x4a5840(_0x3ca5fd,null,_0x1f8add)),null;}}const _0x2c3c79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x138d03,'join');let _0xbf9256=null;for(const _0x382a85 of this['getSuggestions']())if(_0x382a85['author']['id']==_0x5337da['id']&&_0x382a85['isInContent']&&'deletion'==_0x382a85['type']&&_0x382a85['subType']==_0x138d03&&qt(_0x382a85,_0x1f8add)&&(_0x2c3c79(_0x382a85['getRanges'](),_0x3ca5fd)||_0x2c3c79(_0x3ca5fd,_0x382a85['getRanges']()))){if(_0xbf9256){if(_0x382a85['commentThread']&&_0x382a85['commentThread']['length'])continue;for(const _0x13a70c of _0x382a85['getRanges']())_0xbf9256['isIntersectingWithRange'](_0x13a70c)||_0xbf9256['addRange'](_0x13a70c);_0x382a85['removeMarkers']();}else{_0xbf9256=_0x382a85;for(const _0x49bdc4 of _0x3ca5fd)_0x382a85['isIntersectingWithRange'](_0x49bdc4)||_0x382a85['addRange'](_0x49bdc4);}}if(_0xbf9256)return _0xbf9256;_0x199412['clear']();for(const {suggestion:_0x3798d6,meta:_0x206968}of this['_findSuggestions'](_0x3ca5fd,'deletion'))_0x206968['isOwn']&&(this['_mergeNestedSuggestions']||!_0x206968['containsRangeInObject']&&!_0x206968['isInsideObject'])&&qt(_0x3798d6,_0x1f8add)&&_0x199412['add'](_0x3798d6);for(const _0x3b999d of _0x199412){const _0x5c5064=_0x3b999d['getRanges']();if(!_0x1f8add||!_0x1f8add['skipNestingCheck']){if(_0x3ca5fd['every'](_0x967597=>_0x5c5064['some'](_0x456aa0=>_0x456aa0['containsRange'](_0x967597,!0x0))))return _0x3b999d;}(!_0x3b999d['attributes']||!_0x3b999d['attributes']['skipNestingCheck'])&&(_0x5c5064['every'](_0x237196=>_0x3ca5fd['some'](_0x13b11e=>_0x13b11e['containsRange'](_0x237196,!0x0)))&&_0x3b999d['discard']());}const _0x36d59a=_0x5790ee(),_0x41d7ab=_0x5337da['id'],_0x1e3f26='deletion:'+_0x138d03,_0x5b130c=this['_setSuggestionData']({'id':_0x36d59a,'type':_0x1e3f26,'createdAt':new Date(),'authorId':_0x41d7ab,'attributes':_0x1f8add});for(const _0x455d44 of _0x3ca5fd)_0x455d44['detach'](),_0x455d44['isCollapsed']||'$graveyard'==_0x455d44['root']['rootName']||this['_addSuggestionMarker'](_0x1e3f26,_0x36d59a,_0x41d7ab,_0x455d44,u['getMultiRangeId']());return _0x5b130c;}['markAttributeChange'](_0x4402c9,_0x49dc37,_0x4d5d1b,_0x3be275,_0x12f108){if(_0x4402c9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa5778d=this['editor']['plugins']['get']('Users')['me']['id'],_0x286dab=Array['from'](this['_suggestions']['values']())['filter'](_0x3d6529=>'attribute'==_0x3d6529['type']&&_0x3d6529['data']['key']==_0x49dc37&&_0x3d6529['isIntersectingWithRange'](_0x4402c9));if('default'===this['_trackFormatChanges']){const _0x51358c=this['_findSuggestions'](_0x4402c9,'insertion')['filter'](({meta:_0xf22815})=>_0xf22815['isOwn']&&!_0xf22815['isInsideObject']&&!_0xf22815['isNextTo'])['map'](({suggestion:_0x3cc616})=>_0x3cc616);_0x286dab['unshift'](..._0x51358c);}const _0x3fe408=new Map([[_0x4402c9,_0x4d5d1b]]);for(const _0x6e4281 of _0x286dab){const _0x59ab4e='attribute'==_0x6e4281['type']?_0x6e4281['data']['oldValue']:void 0x0,_0x52d5d3=_0x6e4281['getFirstRange'](),_0x56a3a3=Array['from'](_0x3fe408['keys']())['find'](_0x17129e=>_0x17129e['isIntersecting'](_0x52d5d3));if(!_0x56a3a3)continue;const _0x52e805=_0x56a3a3['getDifference'](_0x52d5d3);this['_isBlockAttribute'](_0x49dc37)&&'insertion'==_0x6e4281['type']&&0x0!=_0x52e805['length']||(_0x3fe408['delete'](_0x56a3a3),_0x52e805['forEach'](_0x242cd2=>{_0x3fe408['set'](_0x242cd2,_0x4d5d1b);}),'insertion'!=_0x6e4281['type']&&_0x59ab4e!=_0x3be275&&_0x3fe408['set'](_0x56a3a3['getIntersection'](_0x52d5d3),_0x59ab4e));}const _0x41c904=[];for(const [_0x3fe050,_0x588ff9]of _0x3fe408){const _0x2fbcd9=_0x5790ee(),_0x1cecf4={'key':_0x49dc37,'oldValue':_0x588ff9,'newValue':_0x3be275};_0x49dc37['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':_0x49dc37});const _0x2228a5=('attribute:'+(_0x49dc37+'|'+Gt({'newValue':_0x3be275})))['substring'](0x0,0x3c),_0x47e85c=this['_setSuggestionData']({'id':_0x2fbcd9,'type':_0x2228a5,'data':_0x1cecf4,'createdAt':new Date(),'authorId':_0xa5778d,'attributes':_0x12f108});_0x41c904['push'](_0x47e85c),this['_addSuggestionMarker'](_0x2228a5,_0x2fbcd9,_0xa5778d,_0x3fe050);}return _0x41c904;}['enableDefaultAttributesIntegration'](_0x195e36){this['enableCommand'](_0x195e36,(_0x43d06e,..._0x537aaa)=>{this['_recordAttributeChanges'](()=>{_0x43d06e(..._0x537aaa);});});}['registerBlockAttribute'](_0x17ce94){this['_blockAttributeKeys']['add'](_0x17ce94);}['registerInlineAttribute'](_0x61d66b){this['_inlineAttributeKeys']['add'](_0x61d66b);}['_getAttributeKey'](_0x4814c1){return'attribute'==_0x4814c1['type']?_0x4814c1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4dfc36,_0x4f9070){const _0x2a4718=_0x4dfc36['getFirstMarker']();this['_model']['change'](_0x2ecaed=>{_0x2ecaed['updateMarker'](_0x2a4718,{'range':_0x4f9070});});}['_addThreadToSuggestion'](_0x55a67f){const _0x526292=_0x55a67f['id'],_0x476e4c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x526292)||this['_commentsRepository']['addCommentThread']({'channelId':_0x476e4c,'threadId':_0x526292,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4eb819=this['_commentsRepository']['getCommentThread'](_0x526292);_0x4eb819['unbind']('isRemovable'),_0x4eb819['isRemovable']=!0x1,_0x55a67f['commentThread']=_0x4eb819;}['_checkSuggestionCorrectness'](_0x752583,_0x41b7a0,_0x514f75,_0x2e60f3){if(_0x752583['type']!=_0x41b7a0||_0x752583['subType']!=_0x514f75||_0x752583['creator']['id']!=_0x2e60f3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f63a0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59d51e,_0x1fb7e1){const _0x5d0078=_0x59d51e['getFirstRange']();if(_0x1fb7e1['isEqual'](_0x5d0078))_0x59d51e['removeMarkers']();else{if(_0x5d0078['containsRange'](_0x1fb7e1)){const _0xad8395=this['_model']['createPositionAt'](_0x1fb7e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x5d0078['start'],_0xad8395));const _0x5110f0=_0x5790ee(),_0x362d8d=_0x59d51e['creator']['id'],_0x44a9b7=_0x59d51e['type']+':'+_0x59d51e['subType'];this['_setSuggestionData']({'id':_0x5110f0,'type':_0x44a9b7,'createdAt':new Date(),'authorId':_0x362d8d,'data':_0x59d51e['data'],'attributes':_0x59d51e['attributes']});const _0xbb7403=this['_model']['createPositionAt'](_0x1fb7e1['end']['parent'],'after'),_0x4d13ce=this['_model']['createRange'](_0xbb7403,_0x5d0078['end']);this['_addSuggestionMarker'](_0x44a9b7,_0x5110f0,_0x362d8d,_0x4d13ce);}else{if(_0x5d0078['containsPosition'](_0x1fb7e1['start'])){const _0x3ee406=this['_model']['createPositionAt'](_0x1fb7e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x5d0078['start'],_0x3ee406));}else{const _0x1498ff=this['_model']['createPositionAt'](_0x1fb7e1['end']['parent'],'after');this['_setSuggestionRange'](_0x59d51e,this['_model']['createRange'](_0x1498ff,_0x5d0078['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x36a777){for(const {suggestion:_0x34f296,meta:_0x27137f}of this['_findSuggestions'](_0x36a777,'insertion')){if(!_0x27137f['isOwn'])continue;const _0x25ecb3=_0x34f296['getRanges']();for(const _0x238789 of _0x25ecb3)if(!_0x36a777['getDifference'](_0x238789)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2253b1){const _0x7363c3=this['editor']['plugins']['get']('Users')['getUser'](_0x2253b1);if(!_0x7363c3)throw new _0x4f63a0('track-changes-user-not-found',this);return _0x7363c3;}['_getExternalAuthor'](_0x29af5e){const _0x2e68eb=this['editor']['plugins']['get']('Users'),_0x40db2d=_0x59a68d('external:'+_0x29af5e),_0x4ff360=_0x2e68eb['getUser'](_0x40db2d);return _0x4ff360||_0x2e68eb['addUser']({'id':_0x40db2d,'name':_0x29af5e});}['_createSuggestion'](_0x1b4309,_0x47ce84,_0x2fe84f,_0x370bd0,_0x4338f0){const _0x492ac7=this['_getAuthorFromId'](_0x370bd0),_0xfb8124=this['_suggestionFactory']['buildSuggestion'](_0x1b4309,_0x47ce84,_0x2fe84f,_0x492ac7,_0x4338f0,_0x34fbf9=>{this['_updateSuggestionData'](_0x2fe84f,{'attributes':_0x34fbf9});const _0x11adc3=this['getSuggestion'](_0x2fe84f);this['_joinWithAdjacentSuggestions'](new Set([_0x11adc3])),this['_refreshSuggestionsChain'](new Set([_0x11adc3]));});return this['listenTo'](_0xfb8124,'accept',()=>{this['_updateSuggestionData'](_0x2fe84f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xfb8124,'discard',()=>{this['_updateSuggestionData'](_0x2fe84f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fe84f,_0xfb8124),this['_suggestionState']['set'](_0xfb8124,'notReady'),_0xfb8124;}['_splitMarkerName'](_0x410ebc){const _0x488b07=_0x410ebc['split'](':');return{'group':_0x488b07[0x0],'type':_0x488b07[0x1],'subType':_0x488b07['length']>=0x5?_0x488b07[0x2]:null,'id':_0x488b07['length']<0x5?_0x488b07[0x2]:_0x488b07[0x3],'authorId':_0x488b07['length']<0x5?_0x488b07[0x3]:_0x488b07[0x4],'markerCount':0x6==_0x488b07['length']?_0x488b07[0x5]:null};}['_breakSuggestionMarker'](_0x243cce,_0x19e2c5,_0x5082e8){const _0x3d6a80=_0x243cce['getFirstRange'](),_0x2c5c19=_0x3d6a80['start'],_0x4fdade=_0x3d6a80['end'];this['_setSuggestionRange'](_0x243cce,this['_model']['createRange'](_0x2c5c19,_0x19e2c5));const _0x5887be=_0x5790ee(),_0x52dd48=_0x243cce['creator']['id'],_0x197349=_0x243cce['type']+(_0x243cce['subType']?':'+_0x243cce['subType']:'');this['_setSuggestionData']({'id':_0x5887be,'type':_0x197349,'createdAt':new Date(),'authorId':_0x52dd48,'originalSuggestionId':_0x243cce['id'],'attributes':_0x243cce['attributes'],'data':_0x243cce['data']});const _0x117456=this['_getAttributeKey'](_0x243cce);('formatBlock'==_0x243cce['type']||_0x117456&&this['_isBlockAttribute'](_0x117456))&&(_0x5082e8=this['_model']['createPositionBefore'](_0x5082e8['parent'])),this['_addSuggestionMarker'](_0x197349,_0x5887be,_0x52dd48,this['_model']['createRange'](_0x5082e8,_0x4fdade));}['_findSuggestions'](_0x5e4fc0,_0x441193=null){const _0x27a2c9=[],_0x5b51f6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5e4fc0)||(_0x5e4fc0=[_0x5e4fc0]);for(const _0x54754f of this['getSuggestions']()){if(!_0x54754f['isInContent'])continue;if(_0x441193&&_0x54754f['type']!=_0x441193)continue;let _0x77efe8=!0x1;for(const _0x37bbff of _0x54754f['getRanges']()){for(const _0x21d310 of _0x5e4fc0){const _0x56e6b9=_0x21d310['start']['isEqual'](_0x37bbff['end'])||_0x21d310['end']['isEqual'](_0x37bbff['start']);if(_0x56e6b9||_0x21d310['getIntersection'](_0x37bbff)){const _0x2113e0=_0x21d310['containsRange'](_0x37bbff)&&Ot(this['_model']['schema'],_0x37bbff['start'],_0x21d310),_0x43bee7=_0x37bbff['containsRange'](_0x21d310)&&Ot(this['_model']['schema'],_0x21d310['start'],_0x37bbff);_0x27a2c9['push']({'suggestion':_0x54754f,'meta':{'isOwn':_0x5b51f6==_0x54754f['author'],'isNextTo':_0x56e6b9,'isInsideObject':_0x2113e0,'containsRangeInObject':_0x43bee7}}),_0x77efe8=!0x0;break;}}if(_0x77efe8)break;}}return _0x27a2c9;}['_addSuggestionMarker'](_0x429bcc,_0x5cba86,_0x55afae,_0x3751f1,_0x3aeea7){this['_model']['change'](_0x44bcca=>{let _0x465006='suggestion:'+_0x429bcc+':'+_0x5cba86+':'+_0x55afae;_0x3aeea7&&(_0x465006=_0x465006+':'+_0x3aeea7),_0x44bcca['addMarker'](_0x465006,{'range':_0x3751f1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3abae6){const _0x3e89a3=_0x3abae6['previous'],_0x357b48=_0x3abae6['next'];_0x3abae6['previous']=null,_0x3abae6['next']=null,null!=_0x3e89a3&&_0x3e89a3['next']==_0x3abae6&&(_0x3e89a3['next']=_0x357b48),null!=_0x357b48&&_0x357b48['previous']==_0x3abae6&&(_0x357b48['previous']=_0x3e89a3),'ready'==this['_suggestionState']['get'](_0x3abae6)&&(this['_suggestionState']['set'](_0x3abae6,'removed'),this['fire']('suggestionUnloaded',_0x3abae6,_0x3e89a3,_0x357b48));}['_setSuggestionData'](_0x94f316){const _0x2b68f3=_0x94f316['id'],_0x1925aa=this['addSuggestionData'](_0x94f316);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5aeb2f=this['editor']['plugins']['get']('PendingActions'),_0x54a40e=_0x1925aa['hasComments'],_0x4c3639=_0x1925aa['subType']?_0x1925aa['type']+':'+_0x1925aa['subType']:_0x1925aa['type'],_0x251b85=this['editor']['locale'],_0x393013=_0x5aeb2f['add'](o(_0x251b85,'PENDING_ACTION_SUGGESTION')),_0xabd830={'id':_0x2b68f3,'type':_0x4c3639,'hasComments':_0x54a40e,'data':_0x94f316['data']||null,'originalSuggestionId':_0x94f316['originalSuggestionId']||null,'attributes':_0x1925aa['attributes']};this['_adapter']['addSuggestion'](_0xabd830)['then'](_0x54040d=>{_0x1925aa['_saved']=!0x0,_0x5aeb2f['remove'](_0x393013),_0x54040d&&_0x54040d['createdAt']&&(this['_suggestions']['get'](_0x2b68f3)['createdAt']=_0x54040d['createdAt']);})['catch'](_0x295c92=>{throw _0xc584fe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1925aa['discard']();}),_0x1925aa['stopListening'](),this['_suggestions']['delete'](_0x1925aa['id']),this['_suggestionState']['delete'](_0x1925aa),_0x295c92;});}return _0x1925aa;}['_isBlockAttribute'](_0x3acca3){return this['_blockAttributeKeys']['has'](_0x3acca3);}['_updateSuggestionData'](_0x15205d,_0x1c7ae2){const _0x43e791=this['editor']['plugins']['get']('PendingActions'),_0x557936=this['getSuggestion'](_0x15205d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x557936['_saved']){const _0x3a2bf3=_0x43e791['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15205d,_0x1c7ae2)['then'](()=>{_0x43e791['remove'](_0x3a2bf3);});}else _0x557936['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15205d,_0x1c7ae2);});}}['_getSuggestionData'](_0x2a348f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4f63a0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a348f);}['_handleNewSuggestionMarker'](_0x56df2c){const {id:_0x1cdd3d,type:_0xcb5b49,subType:_0x4f4a8e,authorId:_0x101f75}=this['_splitMarkerName'](_0x56df2c),_0x2c4dd8=this['_suggestions']['get'](_0x1cdd3d)||this['_createSuggestion'](_0xcb5b49,_0x4f4a8e,_0x1cdd3d,_0x101f75,{});switch(this['_checkSuggestionCorrectness'](_0x2c4dd8,_0xcb5b49,_0x4f4a8e,_0x101f75),this['_suggestionState']['get'](_0x2c4dd8)){case'notReady':this['_getSuggestionData'](_0x1cdd3d)['then'](_0x1326b1=>{let _0xed3d41=Promise['resolve']();_0x1326b1['hasComments']&&(_0xed3d41=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1cdd3d})),_0xed3d41['then'](()=>{this['addSuggestionData'](_0x1326b1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c4dd8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1cdd3d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c4dd8,'ready'),this['fire']('suggestionLoaded',_0x2c4dd8);break;case'ready':this['fire']('suggestionChanged',_0x2c4dd8);}return _0x2c4dd8['addMarkerName'](_0x56df2c),_0x2c4dd8;}['_refreshSuggestionsChain'](_0xad3f46){const _0x5d0c34=Array['from'](_0xad3f46),_0x2ea0a0=_0x5d0c34['filter'](_0x5a8312=>'attribute'==_0x5a8312['type']);this['_refreshAttributeSuggestionsChain'](_0x2ea0a0);const _0x3466fb=_0x5d0c34['filter'](_0x408e7a=>!_0x408e7a['isMultiRange']&&'attribute'!=_0x408e7a['type']),_0x1500e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f9d52=>!_0x4f9d52['isMultiRange']&&'attribute'!=_0x4f9d52['type']),_0x5de32f=_0x1500e4['filter'](_0xc19198=>!_0xad3f46['has'](_0xc19198)),_0x2be7ae=new Map(_0x1500e4['map'](_0x44ce81=>[_0x44ce81,this['_suggestionFactory']['getSuggestionCallback'](_0x44ce81['type'],_0x44ce81['subType'],'chain')])),_0x27af06=new Map(_0x1500e4['map'](_0x1f904c=>[_0x1f904c,_0x1f904c['getFirstRange']()])),_0xa110b6=new Set(),_0x11cef1=new Set();for(let _0x372640=0x0;_0x372640<_0x3466fb['length'];_0x372640++)_0x4cdbe2(_0x3466fb[_0x372640],_0x3466fb,_0x372640+0x1);for(let _0x174b64=0x0;_0x174b64<_0x3466fb['length'];_0x174b64++)_0x4cdbe2(_0x3466fb[_0x174b64],_0x5de32f,0x0);const _0x3eff47=new Set();for(let _0x1dfff9=0x0;_0x1dfff9<_0x3466fb['length'];_0x1dfff9++){const _0x2a961d=_0x3466fb[_0x1dfff9];!_0x11cef1['has'](_0x2a961d)&&_0x2a961d['previous']&&(_0x3eff47['add'](_0x2a961d['previous']),_0x2a961d['previous']['next']===_0x2a961d&&(_0x2a961d['previous']['next']=null),_0x2a961d['previous']=null),!_0xa110b6['has'](_0x2a961d)&&_0x2a961d['next']&&(_0x3eff47['add'](_0x2a961d['next']),_0x2a961d['next']['previous']===_0x2a961d&&(_0x2a961d['next']['previous']=null),_0x2a961d['next']=null);}function _0x4cdbe2(_0x5b75b8,_0xd0afc1,_0x10afd0){for(let _0x16d90a=_0x10afd0;_0x16d90a<_0xd0afc1['length'];_0x16d90a++){const _0x53a951=_0x665266(_0x5b75b8,_0xd0afc1[_0x16d90a]);_0x53a951&&(_0x53a951[0x0]['next']=_0x53a951[0x1],_0x53a951[0x1]['previous']=_0x53a951[0x0],_0xa110b6['add'](_0x53a951[0x0]),_0x11cef1['add'](_0x53a951[0x1]));}}function _0x665266(_0x5e3806,_0x418ee6){if(_0x5e3806['author']['id']!==_0x418ee6['author']['id'])return null;const _0x3c5051=_0x2be7ae['get'](_0x5e3806)(_0x5e3806,_0x418ee6,_0x27af06['get'](_0x5e3806),_0x27af06['get'](_0x418ee6));if(!_0x3c5051)return null;return _0x2be7ae['get'](_0x418ee6)(_0x5e3806,_0x418ee6,_0x27af06['get'](_0x5e3806),_0x27af06['get'](_0x418ee6))?_0x3c5051[0x1]['commentThread']&&_0x3c5051[0x1]['commentThread']['length']?null:_0x3c5051:null;}_0x3eff47['size']&&this['_refreshSuggestionsChain'](_0x3eff47);}['_refreshAttributeSuggestionsChain'](_0xaee3c5){if(0x0==_0xaee3c5['length'])return;const _0x1bef7a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48f6a0=>'attribute'==_0x48f6a0['type']&&_0x48f6a0['_isDataLoaded']),_0x1e5018=[],_0x4bdf03=new Map();for(const _0x14398d of _0x1bef7a){const _0x19cbe6=_0x59a68d(_0x14398d['attributes']);_0x4bdf03['has'](_0x19cbe6)||(_0x4bdf03['set'](_0x19cbe6,_0x1e5018['length']),_0x1e5018['push']([]));const _0x4f1a24=_0x4bdf03['get'](_0x19cbe6);_0x1e5018[_0x4f1a24]['push'](_0x14398d);}!(function(){_0x1e5018['sort']((_0x574b65,_0x266ea0)=>{const _0x15ddf2=_0x574b65[0x0]['createdAt'],_0x1812c1=_0x266ea0[0x0]['createdAt'];return _0x15ddf2==_0x1812c1?_0x574b65[0x0]['attributes']['groupId']<_0x266ea0[0x0]['attributes']['groupId']?-0x1:0x1:_0x15ddf2<_0x1812c1?-0x1:0x1;});for(const _0x34b174 of _0x1e5018)_0x34b174['sort']((_0x21c8f3,_0x3d61ea)=>_0x21c8f3['id']<_0x3d61ea['id']?-0x1:0x1);}());for(let _0x290dac=0x0;_0x290dac<_0x1e5018['length'];_0x290dac++){if(0x0==_0x1e5018[_0x290dac]['length'])continue;const _0x565e20=[];for(let _0x227d18=_0x290dac+0x1;_0x227d18<_0x1e5018['length'];_0x227d18++)0x0!=_0x1e5018[_0x227d18]['length']&&_0x4d9471(_0x1e5018[_0x290dac],_0x1e5018[_0x227d18])&&_0x565e20['push'](_0x227d18);for(const _0x503620 of _0x565e20)_0x1e5018[_0x290dac]=_0x1e5018[_0x290dac]['concat'](_0x1e5018[_0x503620]),_0x1e5018[_0x503620]=[];}for(const _0x2094a1 of _0x1e5018)for(let _0x46d212=0x0;_0x46d212<_0x2094a1['length'];_0x46d212++){const _0x124f28=_0x2094a1[_0x46d212+0x1]||null;_0x2094a1[_0x46d212]['next']!==_0x124f28&&(_0x2094a1[_0x46d212]['next']=_0x124f28);}for(const _0x28d53e of _0x1e5018)for(let _0x48ff6f=0x0;_0x48ff6f<_0x28d53e['length'];_0x48ff6f++){const _0x262f07=_0x28d53e[_0x48ff6f-0x1]||null;_0x28d53e[_0x48ff6f]['previous']!==_0x262f07&&(_0x28d53e[_0x48ff6f]['previous']=_0x262f07);}function _0x4d9471(_0x1daffc,_0x3ddb4b){if(_0x1daffc[0x0]['attributes']['groupId']!==_0x3ddb4b[0x0]['attributes']['groupId']&&_0x1daffc[0x0]['author']!==_0x3ddb4b[0x0]['author'])return!0x1;if(!function(_0x524f56,_0x4590d0){if(!_0x524f56['hasComments']&&!_0x4590d0['hasComments'])return!0x0;if(_0x524f56['hasComments']&&_0x4590d0['hasComments'])return!0x1;if(_0x524f56['hasComments']&&_0x4590d0['createdAt']<_0x524f56['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4590d0['hasComments']&&_0x524f56['createdAt']<_0x4590d0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1daffc[0x0],_0x3ddb4b[0x0]))return!0x1;const _0x5f0d7e=Tt(_0x1daffc[0x0]['attributes'],'groupId'),_0x42f344=Tt(_0x3ddb4b[0x0]['attributes'],'groupId');if(!_0x47c0f7(_0x5f0d7e,_0x42f344))return!0x1;return!!_0x1daffc['every'](_0x2fdc16=>_0x3ddb4b['some'](_0x17ceb5=>_0x2fdc16['getFirstRange']()['isEqual'](_0x17ceb5['getFirstRange']())))&&_0x3ddb4b['every'](_0x27d477=>_0x1daffc['some'](_0x3e8c92=>_0x27d477['getFirstRange']()['isEqual'](_0x3e8c92['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4808d7){const _0x1b2903=Array['from'](_0x4808d7),_0x18cf2a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x527229=_0x18cf2a['filter'](_0x28bc7e=>!_0x4808d7['has'](_0x28bc7e)),_0x4ff385=new Map(_0x1b2903['map'](_0xe10495=>[_0xe10495,this['_suggestionFactory']['getSuggestionCallback'](_0xe10495['type'],_0xe10495['subType'],'join')])),_0x636f10=new Map(_0x18cf2a['map'](_0x3e6587=>[_0x3e6587,_0x3e6587['getRanges']()]));for(let _0x1f6a67=0x0;_0x1f6a67<_0x1b2903['length'];_0x1f6a67++){if(_0x190e2a(this,_0x1b2903[_0x1f6a67],_0x1b2903,_0x1f6a67+0x1))return!0x0;}for(let _0x13dec8=0x0;_0x13dec8<_0x1b2903['length'];_0x13dec8++){if(_0x190e2a(this,_0x1b2903[_0x13dec8],_0x527229,0x0))return!0x0;}return!0x1;function _0x190e2a(_0x4e3fce,_0x3bf9f1,_0x409d05,_0x12911c){for(let _0x41bfae=_0x12911c;_0x41bfae<_0x409d05['length'];_0x41bfae++){const _0x258c95=_0x409d05[_0x41bfae];if(_0x258c95['type']!==_0x3bf9f1['type']||_0x258c95['author']['id']!==_0x3bf9f1['author']['id']||_0x258c95['subType']!==_0x3bf9f1['subType'])continue;if(!Jt(_0x3bf9f1,_0x258c95))continue;if('attribute'==_0x3bf9f1['type']&&_0x3bf9f1['data']['oldValue']!=_0x258c95['data']['oldValue'])continue;if('attribute'==_0x3bf9f1['type']&&_0x4e3fce['_isBlockAttribute'](_0x3bf9f1['data']['key']))continue;if('formatBlock'==_0x3bf9f1['type']){const _0x1320c8=_0x4e3fce['editor']['model'],_0x5c52a1=_0x3bf9f1['getContainedElement']();if(_0x5c52a1&&(_0x1320c8['schema']['isObject'](_0x5c52a1)||_0x1320c8['schema']['isLimit'](_0x5c52a1)))continue;}const _0x32e2a3=_0x4ff385['get'](_0x3bf9f1),_0x2069d3=_0x636f10['get'](_0x3bf9f1),_0x3f29d4=_0x636f10['get'](_0x258c95),_0xc62717=_0x3bf9f1['commentThread']&&_0x3bf9f1['commentThread']['length'],_0x11d437=_0x258c95['commentThread']&&_0x258c95['commentThread']['length'];if(!_0xc62717&&_0x32e2a3(_0x3f29d4,_0x2069d3))return _0x4e3fce['_joinSuggestions'](_0x258c95,_0x3bf9f1),_0x636f10['delete'](_0x3bf9f1),!0x0;if(!_0x11d437&&_0x32e2a3(_0x2069d3,_0x3f29d4))return _0x4e3fce['_joinSuggestions'](_0x3bf9f1,_0x258c95),_0x636f10['delete'](_0x258c95),!0x0;}return!0x1;}}['_joinSuggestions'](_0x11c500,_0x538114){if(_0x11c500['isMultiRange']){for(const _0x18e5f3 of _0x538114['getRanges']())_0x11c500['addRange'](_0x18e5f3);}else{const _0x37711a=_0x538114['getFirstRange']()['end'];this['_setSuggestionRange'](_0x11c500,this['_model']['createRange'](_0x11c500['getFirstRange']()['start'],_0x37711a));}_0x538114['removeMarkers']();}['_getMarkerAnnouncementText'](_0x292689,_0x280979,_0x502a3b){const _0x233619=_0x292689['startsWith']('format')||_0x292689['startsWith']('attribute')?'FORMATTING':_0x292689['toUpperCase']();return o(this['editor']['locale'],_0x280979+'_'+_0x233619+'_SUGGESTION_ANNOUNCEMENT',_0x502a3b);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f6f07=this['editor'];if(!_0x2f6f07['ui'])return;const {ariaLiveAnnouncer:_0x1bfdda}=_0x2f6f07['ui'];_0x44dd52(this['_model'],({left:_0x32aba9,entered:_0x397f4b})=>{for(const _0x9e10f8 of _0x32aba9){const {group:_0x59183a,type:_0x435716}=this['_splitMarkerName'](_0x9e10f8['name']);if('suggestion'===_0x59183a){_0x1bfdda['announce'](this['_getMarkerAnnouncementText'](_0x435716,'LEAVE'));break;}}for(const _0x3da00e of _0x397f4b){const {group:_0x37c585,type:_0x4bb6ed}=this['_splitMarkerName'](_0x3da00e['name']);if('suggestion'===_0x37c585){_0x1bfdda['announce'](this['_getMarkerAnnouncementText'](_0x4bb6ed,'ENTER',_0x31f961(_0x20d347)));break;}}});}['_processAttributeChanges'](_0x464521){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3329bf=this['editor'],_0x5278b5=_0x3329bf['model']['document']['differ']['getChanges']();if(0x0==_0x5278b5['length'])return!0x1;const _0x2b80c2=[],_0x452e7f=_0x5278b5['filter'](_0x249556=>'attribute'==_0x249556['type']),_0x36c463=_0x5278b5['filter'](_0x3d2336=>'insert'==_0x3d2336['type']&&'$text'!=_0x3d2336['name']),_0x567aab=_0x5278b5['filter'](_0x528e1f=>'remove'==_0x528e1f['type']&&'$text'!=_0x528e1f['name']);for(const _0x2685ea of _0x452e7f)_0x2b80c2['push']({'key':_0x2685ea['attributeKey'],'newValue':_0x2685ea['attributeNewValue'],'oldValue':_0x2685ea['attributeOldValue'],'range':Pt(_0x2685ea['range'],_0x3329bf['model'])});for(const _0x33c76d of _0x36c463){const _0x565ca9=_0x567aab['find'](_0x34bbcc=>_0x34bbcc['position']['isEqual'](_0x33c76d['position']));_0x565ca9&&_0x2b80c2['push']({'key':m,'newValue':_0x33c76d['name'],'oldValue':_0x565ca9['name'],'range':_0x3329bf['model']['createRangeOn'](_0x33c76d['position']['nodeAfter'])});}return 0x0!=_0x2b80c2['length']&&this['_reduceExistingSuggestions'](_0x464521,_0x2b80c2);}['_processAttributeSuggestions'](_0x1eb017){let _0x4f014e=!0x1;const _0x3dd601=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a5da5=>_0x2a5da5['data']['newRange']&&_0x2a5da5['name']['startsWith']('suggestion:attribute:'));for(const _0x157f00 of _0x3dd601){const {subType:_0x3a6717,id:_0x11231a}=this['_splitMarkerName'](_0x157f00['name']),_0x4690bd=_0x3a6717['split']('|')[0x0];for(const _0x7b2513 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x7b2513['id']!=_0x11231a&&'attribute'==_0x7b2513['type']&&_0x7b2513['data']&&_0x7b2513['data']['key']==_0x4690bd&&_0x7b2513['getFirstRange']()['isIntersecting'](_0x157f00['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x7b2513,_0x157f00['data']['newRange'],_0x1eb017),_0x4f014e=!0x0);}return _0x4f014e;}['_recordAttributeChanges'](_0x1ba7cf){this['_recordAttributeSuggestions']=!0x0,_0x1ba7cf();}['_isRegisteredAttribute'](_0x254443){const _0x3c8fc4=this['_isBlockAttribute'](_0x254443),_0x5c7e55=this['_inlineAttributeKeys']['has'](_0x254443);return _0x3c8fc4||_0x5c7e55;}['_reduceExistingSuggestions'](_0x19f883,_0x5acf30){if(0x0==_0x5acf30['length'])return!0x1;let _0x381586=!0x1;for(const _0x387221 of _0x5acf30){const _0xdd9c99=this['_findSuggestions'](_0x387221['range'],'attribute')['filter'](_0x1d557c=>!_0x1d557c['meta']['isNextTo'])['map'](_0x37513a=>_0x37513a['suggestion']),_0x556e33=_0x59a68d({'newValue':_0x387221['newValue']});_0xdd9c99['filter'](_0x435312=>{const [_0x5a7d45,_0x2874b5]=_0x435312['subType']['split']('|');return _0x5a7d45==_0x387221['key']&&_0x2874b5!=_0x556e33;})['forEach'](_0x5a9b66=>{this['_reduceSuggestionAttributeRange'](_0x5a9b66,_0x387221['range'],_0x19f883),_0x381586=!0x0;});}return _0x381586;}['_reduceSuggestionAttributeRange'](_0x38fddd,_0x27b801,_0x230a0a){const _0xfeb305=_0x38fddd['getFirstRange']()['getDifference'](_0x27b801);0x0!==_0xfeb305['length']?0x1!==_0xfeb305['length']?this['_breakSuggestionMarker'](_0x38fddd,_0x27b801['start'],_0x27b801['end']):this['_setSuggestionRange'](_0x38fddd,_0xfeb305[0x0]):_0x230a0a['removeMarker'](_0x38fddd['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27fabd){this['_editor']=_0x27fabd,this['_model']=_0x27fabd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd5f2b,_0x5e471b,_0x23f18e,_0x5eeecc,_0x2aded2,_0x20987c){return new u(this['_model'],{'type':_0xd5f2b,'subType':_0x5e471b,'id':_0x23f18e,'author':_0x5eeecc,'creator':_0x5eeecc,'attributes':_0x2aded2,'onAttributesChange':_0x20987c,'onAccept':(..._0x220363)=>this['getSuggestionCallback'](_0xd5f2b,_0x5e471b,'accept')(..._0x220363),'onDiscard':(..._0x2803f5)=>this['getSuggestionCallback'](_0xd5f2b,_0x5e471b,'discard')(..._0x2803f5)});}['registerCustomCallback'](_0x144215,_0x926183,_0x86fb46,_0x583db4){const _0x14e1b9=_0x144215+':'+_0x926183+':'+_0x86fb46;this['_customCallbacks']['set'](_0x14e1b9,_0x583db4);}['getSuggestionCallback'](_0x157f07,_0x31b2b8,_0x53d1a2){const _0x1b9956=_0x157f07+':'+_0x31b2b8+':'+_0x53d1a2;return this['_customCallbacks']['get'](_0x1b9956)||this['_defaultCallbacks']['get'](_0x157f07+':'+_0x53d1a2);}['_registerDefaultCallbacks'](){const _0x3bdcbc=()=>!0x1,_0x20b900=_0xf0ca2f=>{_0xf0ca2f['sort']((_0x4d937f,_0x1a14cd)=>_0x4d937f['start']['isBefore'](_0x1a14cd['start'])?0x1:-0x1),this['_model']['change'](_0x45f696=>{for(const _0x26d5be of _0xf0ca2f){let _0x4104d5;_0x4104d5=_0x26d5be['end']['isAtEnd']&&_0x26d5be['end']['parent']==_0x26d5be['start']['nodeAfter']?_0x45f696['createSelection'](_0x26d5be['start']['nodeAfter'],'on'):_0x45f696['createSelection'](_0x26d5be),this['_model']['deleteContent'](_0x4104d5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4c0a34=(_0x2ae318,_0x3c3da5)=>{_0x3c3da5&&this['_model']['change'](_0x23e02d=>{const {commandName:_0x31970b,commandParams:_0x3f150c=[]}=_0x3c3da5,_0x45de48=_0x2ae318['map'](_0xc12610=>(Vt(_0xc12610)&&(_0xc12610=this['_model']['createRange'](_0xc12610['end'])),_0xc12610))['filter'](_0x5b2662=>'$graveyard'!==_0x5b2662['root']['rootName']);if(_0x45de48['length']<0x1)return;const _0x118101=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3461ac=>_0x3bc28a['fromRange'](_0x3461ac));_0x23e02d['setSelection'](_0x45de48);for(const _0x13a2de of this['_editor']['commands']['commands']())_0x13a2de['refresh']();_0x3f150c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31970b,..._0x3f150c);const _0x137ab6=_0x118101['filter'](_0x4fc83b=>'$graveyard'!=_0x4fc83b['root']['rootName']);_0x137ab6['length']>0x0&&_0x23e02d['setSelection'](_0x137ab6);for(const _0x2071b8 of _0x118101)_0x2071b8['detach']();});},_0x1311ca=(_0x1a32e8,_0x295d35)=>0x1==_0x1a32e8['length']&&0x1==_0x295d35['length']&&_0x1a32e8[0x0]['end']['isEqual'](_0x295d35[0x0]['start']),_0x1734d2=(_0x47f78a,_0x3b97c0,_0xf79686,_0xcf3bab)=>Ht(_0x47f78a,_0x3b97c0,_0xf79686,_0xcf3bab,this['_model'])?[_0x47f78a,_0x3b97c0]:Ht(_0x3b97c0,_0x47f78a,_0xcf3bab,_0xf79686,this['_model'])?[_0x3b97c0,_0x47f78a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3bdcbc),this['_defaultCallbacks']['set']('insertion:discard',_0x20b900),this['_defaultCallbacks']['set']('insertion:join',_0x1311ca),this['_defaultCallbacks']['set']('insertion:chain',_0x1734d2),this['_defaultCallbacks']['set']('deletion:accept',_0x20b900),this['_defaultCallbacks']['set']('deletion:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('deletion:join',_0x1311ca),this['_defaultCallbacks']['set']('deletion:chain',_0x1734d2),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c0a34),this['_defaultCallbacks']['set']('formatInline:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('formatInline:join',_0x1311ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x3bdcbc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c0a34),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3bdcbc),this['_defaultCallbacks']['set']('formatBlock:join',_0x1311ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3bdcbc),this['_defaultCallbacks']['set']('attribute:accept',_0x3bdcbc),this['_defaultCallbacks']['set']('attribute:discard',(_0x52b5c2,_0x1855ba)=>{if(!_0x1855ba)return;const _0x332f36=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x7a5abb=>{if(_0x1855ba['key']==m)for(const _0x538e68 of _0x52b5c2){const _0x28e694=_0x538e68['start']['nodeAfter'],_0x515d2d=_0x1855ba['oldValue'];_0x7a5abb['rename'](_0x28e694,_0x515d2d);}else{if(_0x332f36['_isBlockAttribute'](_0x1855ba['key'])){for(const _0x4d3217 of _0x52b5c2)void 0x0!==_0x1855ba['oldValue']?_0x7a5abb['setAttribute'](_0x1855ba['key'],_0x1855ba['oldValue'],_0x4d3217['start']['nodeAfter']):_0x7a5abb['removeAttribute'](_0x1855ba['key'],_0x4d3217['start']['nodeAfter']);}else{for(const _0x345fef of _0x52b5c2)_0x1855ba['oldValue']?_0x7a5abb['setAttribute'](_0x1855ba['key'],_0x1855ba['oldValue'],_0x345fef):_0x7a5abb['removeAttribute'](_0x1855ba['key'],_0x345fef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1311ca);}}function Ot(_0x258d10,_0x3d4237,_0x5120f5){for(const _0x59da9e of _0x3d4237['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59da9e['root']==_0x59da9e)return!0x1;if(!_0x5120f5['containsItem'](_0x59da9e))return!0x1;if(_0x258d10['isObject'](_0x59da9e)||_0x258d10['isLimit'](_0x59da9e))return!0x0;}return!0x1;}function Vt(_0x341252){return _0x341252['end']['parent']==_0x341252['start']['nodeAfter']&&_0x341252['end']['isAtStart'];}function Ut(_0x2f187b,_0x2bfb0e,_0x16cd00,_0x58db2a){const _0x41766d=_0x303559=>!_0x303559['item']['is']('$textProxy')&&!_0x58db2a['isObject'](_0x303559['item']),_0x2a35a3=_0x2f187b['start']['getLastMatchingPosition'](_0x41766d),_0x1b4976=_0x2f187b['end']['getLastMatchingPosition'](_0x41766d,{'direction':'backward'});return(!_0x2f187b['start']['isEqual'](_0x2a35a3)||!_0x2f187b['end']['isEqual'](_0x1b4976))&&(_0x2a35a3['isBefore'](_0x1b4976)?_0x16cd00['updateMarker'](_0x2bfb0e,{'range':_0x16cd00['createRange'](_0x2a35a3,_0x1b4976)}):_0x16cd00['removeMarker'](_0x2bfb0e),!0x0);}function Gt(_0x1f3224){return _0x59a68d(_0x1f3224);}function Ft(_0x210147){const _0x83fa21=_0x210147['start']['nodeAfter'];return _0x83fa21&&_0x83fa21['is']('element');}function Pt(_0x222522,_0x493274){return null==_0x222522['end']['nodeBefore']&&_0x222522['end']['parent']==_0x222522['start']['nodeAfter']?Lt(_0x222522['start']['nodeAfter'],_0x493274):_0x222522;}function Lt(_0x44af46,_0x12991a){const _0x34a4db=_0x12991a['schema']['isObject'](_0x44af46)||_0x12991a['schema']['isSelectable'](_0x44af46);return _0x12991a['createRange'](_0x12991a['createPositionAt'](_0x44af46,'before'),_0x34a4db?_0x12991a['createPositionAfter'](_0x44af46):_0x12991a['createPositionAt'](_0x44af46,'end'));}function Ht(_0x2a2a75,_0x4740da,_0x215b05,_0x50a5d2,_0x54bb55){if(_0x2a2a75['next'])return!0x1;if(!Jt(_0x2a2a75,_0x4740da))return!0x1;if(_0x215b05['end']['isEqual'](_0x50a5d2['start']))return!0x0;if(_0x2a2a75['type']!=_0x4740da['type'])return!0x1;if(!_0x215b05['end']['isTouching'](_0x50a5d2['start']))return!0x1;const _0x5db05c=_0x54bb55['createRange'](_0x215b05['end'],_0x50a5d2['start'])['getWalker']();for(const _0x16395d of _0x5db05c)if(['elementStart','elementEnd']['includes'](_0x16395d['type'])&&_0x54bb55['schema']['isLimit'](_0x16395d['item']))return!0x1;return!0x0;}function Jt(_0x536677,_0x5d177c){if(!_0x536677['_isDataLoaded']||!_0x5d177c['_isDataLoaded'])return!0x1;const _0x35b741=new Set(Object['keys'](_0x536677['attributes'])),_0x50bfaa=new Set(Object['keys'](_0x5d177c['attributes']));if(_0x35b741['delete']('groupId'),_0x50bfaa['delete']('groupId'),0x0==_0x35b741['size']&&0x0==_0x50bfaa['size'])return!0x0;if(_0x35b741['size']!=_0x50bfaa['size'])return!0x1;const _0x1d54ee={..._0x536677['attributes']},_0x2fcc75={..._0x5d177c['attributes']};return delete _0x1d54ee['groupId'],delete _0x2fcc75['groupId'],JSON['stringify'](_0x1d54ee)==JSON['stringify'](_0x2fcc75);}function qt(_0x4259f0,_0x54a463){const _0x3c7247=zt(_0x4259f0['attributes']),_0x54ce0e=zt(_0x54a463);if(!_0x4259f0['_isDataLoaded'])return!0x1;for(const _0x5e6f6d of Object['keys'](_0x54ce0e))if(!_0x47c0f7(_0x3c7247[_0x5e6f6d],_0x54ce0e[_0x5e6f6d]))return!0x1;return!0x0;}function zt(_0x2b609a){const _0xb9bec9=Object['assign']({},_0x2b609a);return delete _0xb9bec9['skipNestingCheck'],delete _0xb9bec9['tablePasteChainId'],_0xb9bec9;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x59481e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5e613b,_0x3f251f,_0x572bf8,_0x3e1d12){super(),this['model']=_0x3f251f,this['view']=_0x572bf8,this['commentThreadController']=_0x3e1d12,this['_editor']=_0x5e613b,this['_acceptCommand']=_0x5e613b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5e613b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x6fcc05,_0x1f336d)=>_0x6fcc05||_0x1f336d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1efb28=>_0x1efb28&&this['_editor']['model']['canEditAt'](_0x3f251f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x521c28=>_0x521c28&&this['_editor']['model']['canEditAt'](_0x3f251f['getRanges']())),this['_pendingAction']=null,_0x572bf8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x572bf8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x572bf8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x572bf8,'change:isDirty',()=>{_0x572bf8['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 _0x1a3ccb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1a3ccb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x45a339{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f0692,_0x1345fd,_0x3dafb6,_0x34a90d){super(_0x1f0692),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1249b0(_0x1f0692,o(_0x1f0692,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1345fd['authoredAt']),this['bind']('authoredAt')['to'](_0x1345fd),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1345fd,'authoredAt',this,'descriptionParts',(_0x2c9169,_0x56a89d,_0x5ed44a)=>{const _0x464ed1=_0x5ed44a['map'](_0x45dd0d=>ls(_0x45dd0d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c9169-0x1,_0x1345fd['author']['name'],_0x56a89d?_0x34a90d['formatDateTime'](_0x56a89d):'',new DOMParser()['parseFromString'](_0x464ed1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x269b0e(),this['focusTracker']=new _0x4d488c(),this['keystrokes']=new _0x452cad(),this['focusCycler']=new _0x5a7f21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x176ff3=>_0x176ff3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1345fd,this['_localUser']=_0x3dafb6,this['_config']=_0x34a90d,_0x34a90d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1ed323(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2215e8}=this['_config'];this['commentsListView']=new _0x2215e8(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',_0x2a3068=>_0x2a3068+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xba49ab,_0x57f81f)=>_0xba49ab||!!_0x57f81f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a1d19}=this['_config'],_0x27db13=new _0x2a1d19(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14c72f=_0x27db13['commentInputView'];return _0x27db13['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14c72f,'value',(_0x3feffa,_0x29011a,_0x1bdb64)=>!!_0x1bdb64||_0x3feffa&&!_0x29011a),_0x14c72f['on']('submit',(_0x17e97d,_0x18c9ff)=>{this['fire']('addComment',_0x18c9ff),_0x14c72f['editor']['setData']('');}),_0x14c72f['on']('cancel',()=>this['focus']()),_0x14c72f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27db13;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x403201,_0x597f67,_0x68e4f4,_0x290e3c){super(_0x403201,_0x597f67,_0x68e4f4,_0x290e3c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x256db7=>_0x256db7&&_0x256db7[0x0]?_0x256db7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3374c9,_0x18ac21)=>{let _0x4f7bdc='';for(const _0x80d26e of _0x3374c9)_0x4f7bdc+='<p>'+ls(_0x80d26e['content'],_0x80d26e['color'])+'</p>';return _0x18ac21?_0x4f7bdc:_0x2a1180(_0x4f7bdc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x290e3c['SuggestionView'](_0x403201,_0x597f67,{'formatDateTime':_0x290e3c['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x19386e=this['bindTemplate'],_0x32c816=[this['suggestionView']];return this['commentsListView']&&_0x32c816['push'](this['commentsListView']),this['commentThreadInputView']&&_0x32c816['push'](this['commentThreadInputView']),_0x32c816['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x19386e['if']('isActive','ck-suggestion-wrapper--active'),_0x19386e['to']('type',_0x548436=>'ck-suggestion-'+_0x548436),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':0x0,'role':'listitem','aria-label':_0x19386e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x32c816};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x45a339{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3da503,_0x12ea2f,_0x21b6fa){super(_0x3da503),this['_model']=_0x12ea2f,this['_config']=_0x21b6fa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12ea2f),this['acceptButton']=this['_createButton'](o(_0x3da503,'Accept\x20suggestion'),_0x5a67df['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3da503,'Discard\x20suggestion'),_0x5a67df['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1d85c2(_0x3da503,_0x12ea2f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x269b0e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d488c(),this['keystrokes']=new _0x452cad(),this['focusCycler']=new _0x5a7f21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d984d=>_0x5d984d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48eaf5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48eaf5['innerHTML']=this['description'],this['on']('change:description',(_0x2dadc6,_0x20cf69,_0x208206)=>{_0x48eaf5['innerHTML']=_0x208206;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x13c80b=this['bindTemplate'],_0x2707f8=[{'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':_0x13c80b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13c80b['to']('authoredAt',_0x973013=>this['_config']['formatDateTime'](_0x973013))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2707f8['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2707f8}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5b73bf,_0x1d6658,_0x4c18dd,_0x36351e,_0x6896b7){const _0x484b85=new _0x4ca81e(this['locale']);return _0x484b85['set']({'label':_0x5b73bf,'icon':_0x1d6658,'tooltip':!0x0,'tooltipPosition':_0x6896b7}),_0x484b85['extendTemplate']({'attributes':{'class':_0x4c18dd}}),_0x484b85['on']('execute',()=>{this['fire'](_0x36351e,this['_model']['id']);}),_0x484b85;}['_setupKeyboardNavigation'](){const _0x5dc985=this['element'];this['keystrokes']['listenTo'](_0x5dc985);for(const _0x48dff5 of this['focusables'])this['focusTracker']['add'](_0x48dff5['element']),this['keystrokes']['listenTo'](_0x48dff5['element']);this['keystrokes']['set']('enter',(_0x356d1b,_0x3733b4)=>{_0x5dc985===_0x356d1b['target']&&(this['focusCycler']['focusFirst'](),_0x3733b4());}),this['keystrokes']['set']('esc',(_0x589633,_0x5e8ba5)=>{_0x5dc985!==_0x589633['target']&&(this['focus'](),_0x5e8ba5());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x48c5b5{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x47d1f4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x3aaa66){super(_0x3aaa66),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x18f1a4=this['editor']['config'];_0x18f1a4['define']('trackChanges.SuggestionThreadView',re),_0x18f1a4['define']('trackChanges.SuggestionView',ce),_0x18f1a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x18f1a4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x46db5a,_0x34c13f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39cbf5,_0xe4afca]of this['_handleControllerBuffer']){const _0x43c8d0=this['_suggestionToController']['has'](_0x39cbf5);_0x43c8d0||_0xe4afca?_0x43c8d0&&_0xe4afca&&this['_destroyController'](_0x39cbf5):this['_initializeController'](_0x39cbf5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x46db5a,_0x34c13f);}['init'](){const _0x36f713=this['editor'],_0x560ab9=_0x36f713['plugins']['get']('TrackChangesEditing'),_0xe4adc7=_0x36f713['plugins']['get']('Annotations'),_0x1fa8ff=_0x36f713['plugins']['get']('EditorAnnotations'),_0x4f628b=_0x36f713['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1fa8ff['addSourceCollector'](()=>{const _0xbcbadb=[];for(const [_0x178c89,_0x285558]of Array['from'](this['_suggestionToController'])){const _0xae365a=_0x178c89['getAllAdjacentSuggestions'](),_0x168c18=[];for(const _0x1f07cd of _0xae365a){if(!_0x1f07cd['isInContent'])continue;if(_0x1f07cd['isMultiRange']){_0x168c18['push'](..._0x1f07cd['getRanges']());continue;}const _0x16cb61=_0x1f07cd['getFirstRange']();if(_0x168c18['length']>0x0){const _0x5b8200=_0x168c18[0x0]['getJoined'](_0x16cb61);if(_0x5b8200){_0x168c18[0x0]=_0x5b8200;continue;}}_0x168c18['push'](_0x16cb61);}_0xbcbadb['push']([_0x285558['view'],_0x168c18]);}return _0xbcbadb;}),this['listenTo'](_0x560ab9,'suggestionLoaded',(_0x42a60e,_0x745dcf)=>{this['listenTo'](_0x745dcf,'change:previous',(_0x1f006d,_0x16ceef,_0x30acf9,_0x37fe36)=>{_0x745dcf['isInContent']&&(null==_0x30acf9?(this['_updateController'](_0x37fe36['head']),this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x1)):(this['_updateController'](_0x30acf9['head']),null==_0x37fe36&&this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x0)));}),null!==_0x745dcf['previous']?this['_updateController'](_0x745dcf['head']):this['_handleSuggestionControllerDelayed'](_0x745dcf,!0x1);}),this['listenTo'](_0x560ab9,'suggestionUnloaded',(_0x4e2199,_0x4b24d7,_0x3477b1)=>{this['stopListening'](_0x4b24d7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b24d7),this['_suggestionToController']['has'](_0x4b24d7)&&this['_destroyController'](_0x4b24d7),_0x3477b1&&this['_updateController'](_0x3477b1['head']);}),this['listenTo'](_0x560ab9,'suggestionChanged',(_0x3a69fa,_0x16f7a5)=>{this['_updateController'](_0x16f7a5);}),this['listenTo'](_0xe4adc7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f628b,'addComment',(_0x1d1bf3,{threadId:_0x4963b2,isFromAdapter:_0x490ee1})=>{if(_0x490ee1||!_0x560ab9['hasSuggestion'](_0x4963b2))return;const _0x2dd179=_0x560ab9['getSuggestion'](_0x4963b2);this['_suggestionToController']['get'](_0x2dd179)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4821a9=this['editor']['plugins']['get']('Annotations'),_0x146821=this['editor']['plugins']['get']('TrackChangesEditing'),_0x226dba=Array['from'](_0x4821a9['activeAnnotations'],_0x5d34a3=>_0x5d34a3['innerView'])['filter'](_0x12ba1c=>this['_viewToController']['has'](_0x12ba1c)),_0x159fd2=[];for(const _0x1dea01 of _0x226dba){const _0x47f187=this['_viewToController']['get'](_0x1dea01)['model']['getAllAdjacentSuggestions']();_0x159fd2['push'](..._0x47f187['reduce']((_0x3ea1e6,_0x2c4a0f)=>[..._0x3ea1e6,..._0x2c4a0f['getMarkerNames']()],[]));}_0x146821['activeMarkers']=_0x159fd2;}['_addUIComponentsToFactory'](){const _0x3b576b=this['editor'],_0x1707af=_0x3b576b['locale'],_0xbbadcd=o(_0x1707af,'Track\x20changes'),_0x3c2b6a=new Wt([{'type':'switchbutton','model':new _0x3fd37c({'withText':!0x0,'isToggleable':!0x0,'label':_0xbbadcd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3fd37c({'withText':!0x0,'label':o(_0x1707af,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x299862 of _0x3c2b6a)if(me(_0x299862)){const _0x3c7749=_0x3b576b['commands']['get'](_0x299862['model']['commandName']);_0x299862['model']['bind']('isOn','isEnabled')['to'](_0x3c7749,'value','isEnabled');}_0x3b576b['ui']['componentFactory']['add']('trackChanges',_0x51bcc1=>this['_createToolbarButton'](_0x51bcc1,_0x3c2b6a,_0xbbadcd)),_0x3b576b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18e4c6=>this['_createMenuBarMenu'](_0x18e4c6,_0x3c2b6a,_0xbbadcd));}['_createToolbarButton'](_0x3e1e68,_0x491c8f,_0x59b1f7){const _0xfced0f=Qt(_0x3e1e68,_0x3cc44d),_0x4a5953=this['editor']['commands']['get']('trackChanges');_0xfced0f['buttonView']['set']({'tooltip':_0x59b1f7,'label':_0x59b1f7,'icon':he}),_0xfced0f['buttonView']['bind']('isOn')['to'](_0x4a5953,'value'),_0xfced0f['buttonView']['on']('execute',()=>{_0x4a5953['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xfced0f,_0x491c8f,{'role':'menu'});const _0x1cb9a4=[];for(const _0x507413 of _0x491c8f)me(_0x507413)&&_0x1cb9a4['push'](this['editor']['commands']['get'](_0x507413['model']['commandName']));const _0x1e3f30=_0xfced0f['buttonView'];return _0x1e3f30['actionView']['unbind']('isEnabled'),_0x1e3f30['arrowView']['unbind']('isEnabled'),_0x1e3f30['actionView']['bind']('isEnabled')['to'](_0x4a5953,'isEnabled'),_0x1e3f30['arrowView']['bind']('isEnabled')['toMany'](_0x1cb9a4,'isEnabled',(..._0x38edca)=>_0x38edca['some'](_0x56ca89=>_0x56ca89)),_0xfced0f['on']('execute',_0x4539ea=>{this['editor']['execute'](_0x4539ea['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfced0f;}['_createMenuBarMenu'](_0xcc612e,_0x368792,_0x102314){const _0x43efa5=new Yt(_0xcc612e),_0x3e1ae9=this['editor']['commands']['get']('trackChanges');_0x43efa5['buttonView']['set']({'label':_0x102314,'icon':he});const _0x51436a=new Zt(_0xcc612e);for(const _0x2f09e0 of _0x368792){if('separator'==_0x2f09e0['type']){_0x51436a['items']['add'](new Xt(_0xcc612e));continue;}const _0x3b923b=new te(_0xcc612e,_0x43efa5),_0x26df15=new _0x2c5493(_0xcc612e),_0x4bd520=_0x2f09e0['model'];_0x26df15['bind'](...Object['keys'](_0x4bd520))['to'](_0x4bd520),_0x26df15['delegate']('execute')['to'](_0x43efa5),_0x26df15['on']('execute',()=>{this['editor']['execute'](_0x4bd520['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b923b['children']['add'](_0x26df15),_0x51436a['items']['add'](_0x3b923b);}return _0x43efa5['bind']('isEnabled')['to'](_0x3e1ae9,'isEnabled'),_0x43efa5['panelView']['children']['add'](_0x51436a),_0x43efa5;}['_initializeController'](_0x1e4961){const _0x43d559=this['editor'],_0xb4ee0=_0x43d559['config'],_0x359fc0=_0x43d559['plugins']['get']('Annotations'),_0x12d582=_0x43d559['plugins']['get']('CommentsRepository'),_0x41bf56=_0x43d559['plugins']['get']('EditorAnnotations'),_0x5ee613=_0x43d559['plugins']['get'](_0x47d1f4)['me'],_0x4aed60=_0xb4ee0['get']('trackChanges')['SuggestionThreadView'],_0x3e28af=_0xb4ee0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d9e41,CommentThreadInputView:_0x439e3c}=_0x43d559['plugins']['get']('CommentsUI');let _0x3d92fd,_0x19c770,_0x54c715;this['_annotationViews']['has'](_0x1e4961['id'])?(_0x19c770=this['_annotationViews']['get'](_0x1e4961['id']),_0x3d92fd=_0x19c770['mainView']):(_0x3d92fd=new _0x4aed60(_0x43d559['locale'],_0x1e4961,_0x5ee613,{'disableComments':this['_disableComments'],'editorConfig':_0xb4ee0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xb4ee0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb4ee0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb4ee0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5412e2(_0xb4ee0['get']('locale')),'CommentView':_0xb4ee0['get']('comments')['CommentView'],'CommentsListView':_0x4d9e41,'CommentThreadInputView':_0x439e3c,'SuggestionView':_0x3e28af}),_0x3d92fd['suggestionView']['acceptButton']['on']('execute',()=>{_0x43d559['editing']['view']['focus']();}),_0x3d92fd['suggestionView']['discardButton']['on']('execute',()=>{_0x43d559['editing']['view']['focus']();}),_0x19c770=_0x359fc0['createAnnotationView'](this['editor']['locale'],_0x3d92fd),_0x19c770['bind']('isDirty')['to'](_0x3d92fd,'isDirty'),_0x19c770['bind']('length')['to'](_0x3d92fd),_0x19c770['bind']('type')['to'](_0x3d92fd,'type',_0x18cbdf=>'suggestion-'+_0x18cbdf),_0x3d92fd['on']('escape',()=>{_0x54c715['fire']('escape');}),this['_annotationViews']['set'](_0x1e4961['id'],_0x19c770));const _0x29de68=_0x12d582['createCommentThreadController'](_0x1e4961['commentThread'],_0x3d92fd),_0xa16cac=new ae(_0x43d559,_0x1e4961,_0x3d92fd,_0x29de68),_0x24a741=_0x1e4961['getAllAdjacentSuggestions']()['filter'](_0x4344ac=>_0x4344ac['isInContent']);_0x3d92fd['descriptionParts']=_0x43d559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24a741),this['_suggestionToController']['set'](_0x1e4961,_0xa16cac),this['_viewToController']['set'](_0x3d92fd,_0xa16cac),_0x54c715=_0x359fc0['createAnnotation']({'view':_0x19c770,'target':()=>{const _0x3d9d1a=[],_0x253a00=_0x1e4961['getAllAdjacentSuggestions']()['filter'](_0x1fd4e4=>_0x1fd4e4['isInContent']);for(const _0x38bf17 of _0x253a00)_0x3d9d1a['push'](..._0x38bf17['getMarkers']());return _0x5b0cdd(_0x43d559['editing'],_0x3d9d1a);},'type':()=>'suggestion-'+_0xa16cac['view']['type']}),_0x12d582['_bindAnnotationToEditors'](_0x3d92fd,_0x54c715),_0x359fc0['add'](_0x54c715),_0x41bf56['registerAnnotation'](_0x54c715);}['_destroyController'](_0x2b4071){const _0x12bd47=this['editor']['plugins']['get']('CommentsRepository'),_0x3a0eba=this['editor']['plugins']['get']('Annotations'),_0x532ff7=this['_suggestionToController']['get'](_0x2b4071),_0x529de7=_0x532ff7['view'],_0x41aa49=_0x3a0eba['getByInnerView'](_0x529de7);_0x12bd47['_unbindEditors'](_0x529de7),_0x41aa49&&_0x3a0eba['remove'](_0x41aa49),this['_suggestionToController']['delete'](_0x2b4071),this['_viewToController']['delete'](_0x529de7),_0x532ff7['destroy']();}['_updateController'](_0x27b3c6){if(!_0x27b3c6['isInContent']||!this['_suggestionToController']['has'](_0x27b3c6))return;const _0xec0707=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49f6ce=this['_suggestionToController']['get'](_0x27b3c6),_0x3f5c6c=_0x27b3c6['getAllAdjacentSuggestions']();_0x49f6ce['view']['descriptionParts']=_0xec0707['descriptionFactory']['getDescriptions'](_0x3f5c6c);}['destroy'](){for(const _0xb58a17 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb58a17);for(const _0x3685ea of this['_annotationViews']['values']())_0x3685ea['mainView']['destroy']();super['destroy']();}}function me(_0x52b1d2){return'model'in _0x52b1d2;}class k extends _0x48c5b5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x37ddfd){this['editor']['plugins']['get'](p)['adapter']=_0x37ddfd;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d992c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d992c);}['getSuggestions']({skipNotAttached:_0x1a482d=!0x1,toJSON:_0x4b1bea=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1a482d,'toJSON':_0x4b1bea});}['getSuggestion'](_0x340a77){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x340a77);}}const T=['Pagination'];class P extends _0x48c5b5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4a2885=this['editor'];if(_0x4a2885['config']['define']('trackChangesData.editorCreator',_0x5df44c=>{const _0x17063a=_0x4a2885['model']['document']['getRootNames']()['reduce']((_0x58b383,_0xeeb5e)=>(_0x58b383[_0xeeb5e]='',_0x58b383),{});return _0x4a2885['constructor']['create'](_0x17063a,_0x5df44c);}),'function'!=typeof _0x4a2885['config']['get']('trackChangesData')['editorCreator'])throw new _0x4f63a0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x351c15){return N(this['editor'],!0x0,_0x351c15);}['getDataWithDiscardedSuggestions'](_0x476d98){return N(this['editor'],!0x1,_0x476d98);}}class D extends _0x48c5b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x149053){super(_0x149053),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(_0x3b7fdc){return void 0x0!==_0x3b7fdc['getRootsAttributes'];}async function N(_0x32c1fc,_0x5e64a4,_0x34f4dc){const _0x3d58de=_0x38a4f7(_0x32c1fc,T);_0x3d58de['plugins']['push'](p,D),_0x3d58de['rootsAttributes']=v(_0x32c1fc)?_0x32c1fc['getRootsAttributes']():void 0x0;const _0x237b77=document['createDocumentFragment'](),_0x578439=_0x32c1fc['config']['get']('trackChangesData')['editorCreator'],_0x3267b6=await _0x578439(_0x3d58de,()=>function(_0x4617d7){const _0x1a6270=document['createElement']('div');return _0x4617d7['appendChild'](_0x1a6270),_0x1a6270;}(_0x237b77));!function(_0x1e1be4,_0xb6da3a){const _0x3ce2d7=_0x1e1be4['model']['document']['getRootNames']()['reduce']((_0x360828,_0x54d1cd)=>(_0x360828[_0x54d1cd]=_0x1e1be4['data']['get']({'rootName':_0x54d1cd}),_0x360828),{}),_0x3e078e=_0x1e1be4['plugins']['get']('Users')['users']['map'](_0x1409db=>({'id':_0x1409db['id'],'name':_0x1409db['name']})),_0x5069a7=_0x1e1be4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54db23=_0x1e1be4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x332a97=_0xb6da3a['plugins']['get']('Users'),_0x5548f5=_0xb6da3a['plugins']['get']('TrackChangesEditing'),_0x2d2f33=_0xb6da3a['plugins']['get']('CommentsRepository');for(const _0x17d338 of _0x2d2f33['getCommentThreads']())_0x17d338['remove']();for(const _0x50b49a of _0x3e078e)_0x332a97['getUser'](_0x50b49a['id'])||_0x332a97['addUser'](_0x50b49a);_0x332a97['me']||_0x332a97['useAnonymousUser']();for(const _0x2c0b61 of _0x54db23)_0x2d2f33['addCommentThread'](_0x2c0b61);for(const _0x535c90 of _0x5069a7)_0x5548f5['addSuggestionData'](_0x535c90);_0xb6da3a['data']['set'](_0x3ce2d7);}(_0x32c1fc,_0x3267b6),_0x3267b6['execute'](_0x5e64a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x123db4=v(_0x3267b6)?_0x3267b6['getFullData'](_0x34f4dc):_0x3267b6['data']['get'](_0x34f4dc);return await _0x3267b6['destroy'](),_0x123db4;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x58a0bc,PendingActions as _0xb7ca76,icons as _0x1d5681}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4ee7fd,ObservableMixin as _0x1ca92d,uid as _0x546e08,insertToPriorityArray as _0x188a5a,priorities as _0x44834d,logWarning as _0x4639c6,getEnvKeystrokeText as _0x1ca498,FocusTracker as _0x5423cf,KeystrokeHandler as _0x4ec4fb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2f7d63,View as _0xa93036,ViewCollection as _0x3a64bc,FocusCycler as _0x261d2c,ViewModel as _0x590c00,createDropdown as Qt,SplitButtonView as _0x530bd8,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x397c51}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5983d1,hashObject as _0x4bbe82,surroundingMarkersDetector as _0x4f11ef,FOCUS_ANNOTATION_KEYSTROKE as _0x2e5bcc,AriaDescriptionView as _0x2f9985,setupThreadKeyboardNavigation as _0x3e3d09,trimHtml as _0x260589,UserView as _0xd53404,LateFocusButtonView as _0x55410d,getDateTimeFormatter as _0x2fcf1,getAllMarkersDomElementsSorted as _0x4d4b32,sanitizeEditorConfig as _0x4f17fa}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x15e4c1,LiveRange as _0x1ac7bd,LivePosition as _0x3a1667}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x325294,toWidget as _0x3601d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x15bc28,set as _0x75b7dd,isEqual as _0x11af30,unset as _0x47beff,omit as Tt}from'lodash-es';import{Delete as _0x45edbc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d33f4,ShiftEnter as _0x210491}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x19a794,_0x55ca76){super(_0x19a794),this['_enabledCommands']=_0x55ca76,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 _0x1b9f71 of this['editor']['commands']['commands']())_0x1b9f71['affectsData']&&!this['_enabledCommands']['has'](_0x1b9f71)&&_0x1b9f71['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b5e69 of this['editor']['commands']['commands']())_0x3b5e69['affectsData']&&!this['_enabledCommands']['has'](_0x3b5e69)&&_0x3b5e69['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4027c6,_0x7ea2a7){super(_0x4027c6),this['_suggestions']=_0x7ea2a7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x545188){const _0x4d8cad=this['_suggestions']['get'](_0x545188);if(!_0x4d8cad)throw new _0x4ee7fd('track-changes-accept-suggestion-not-found',this);const _0x14a77b=_0x4d8cad['getRanges']();this['editor']['model']['canEditAt'](_0x14a77b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4d8cad);}}class R extends ts{['_suggestions'];constructor(_0x2f88b6,_0x19e7ea){super(_0x2f88b6),this['_suggestions']=_0x19e7ea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x353f43){const _0x537aa4=this['_suggestions']['get'](_0x353f43);if(!_0x537aa4)throw new _0x4ee7fd('track-changes-discard-suggestion-not-found',this);const _0x3b7543=_0x537aa4['getRanges']();this['editor']['model']['canEditAt'](_0x3b7543)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x537aa4);}}function ls(_0x4e5485,_0x2ca970){let _0x47a2aa='';return _0x47a2aa+=_0x4e5485['split']('*')['map']((_0x33324a,_0x4af6fb)=>_0x4af6fb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x33324a)+'</span>':nn(_0x33324a))['join'](''),_0x2ca970&&(_0x47a2aa+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ca970['value']+'\x22\x20title=\x22'+_0x2ca970['title']+'\x22></span>'),_0x47a2aa;}function nn(_0x466ed6){const _0x22fea3=document['createElement']('span');return _0x22fea3['innerText']=_0x466ed6,_0x22fea3['innerHTML'];}function ss(_0x31db2b){return _0x31db2b['sort']((_0x46b3d3,_0x4d88d4)=>'deletion'==_0x46b3d3['type']&&'deletion'!=_0x4d88d4['type']?-0x1:'deletion'!=_0x46b3d3['type']&&'deletion'==_0x4d88d4['type']?0x1:0x0);}function to(_0x2c60db,_0x17aac5){let _0x5b3915,_0x414cb9=0x0;const _0x131dc5=[],_0x5c396a=_0x17aac5['schema'];for(;_0x414cb9<_0x2c60db['length'];){const _0x6edc32=_0x2c60db[_0x414cb9],_0x3242b6=_0x2c60db[_0x414cb9+0x1];_0x5b3915||(_0x5b3915=_0x17aac5['createPositionBefore'](_0x6edc32)),on(_0x17aac5,_0x6edc32,_0x3242b6)||(_0x131dc5['push'](_0x17aac5['createRange'](_0x5b3915,_0x5c396a['isObject'](_0x6edc32)?_0x17aac5['createPositionAfter'](_0x6edc32):_0x17aac5['createPositionAt'](_0x6edc32,'end'))),_0x5b3915=null),_0x414cb9++;}return _0x131dc5;}function on(_0x4107ad,_0x321cf0,_0x394894){if(!_0x394894)return!0x1;const _0x33732b=_0x4107ad['createPositionAfter'](_0x321cf0),_0x269e82=_0x4107ad['createPositionBefore'](_0x394894);return _0x33732b['isTouching'](_0x269e82);}function rs(_0x4dcec4,_0x3a5d11,_0x3e1f4a){for(;_0x3e1f4a['length'];){const _0x4d9e5e=_0x3e1f4a['splice'](0x0,0x64);_0x4dcec4['change'](()=>{for(const _0x209e66 of _0x4d9e5e)_0x209e66['isInContent']&&_0x3a5d11['execute'](_0x209e66['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1fe229,_0x58e409,_0x1fa61a){super(_0x1fe229),this['_command']=_0x58e409,this['_suggestions']=_0x1fa61a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b3c57=Array['from'](this['_suggestions']['values']())['some'](_0x4d7e1f=>_0x4d7e1f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5b3c57;}['execute'](){const _0x349b0c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1106da of _0x349b0c){const _0x67d9f5=_0x1106da['getRanges']();if(!this['editor']['model']['canEditAt'](_0x67d9f5))return;}rs(this['editor']['model'],this['_command'],_0x349b0c);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5e20f1,_0x6ad0ed,_0x1935e9){super(_0x5e20f1),this['_command']=_0x6ad0ed,this['_suggestions']=_0x1935e9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37ca43=this['editor']['model']['document']['selection'],_0x3e39a4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54c3cd,_0x16f7e9){const _0xa63681=Array['from'](_0x54c3cd['getRanges']()),_0x32c66b=new Set();for(const _0x147807 of _0x16f7e9)if(_0x147807['isInContent']){for(const _0x14acb3 of _0xa63681)for(const _0x2d6e01 of _0x147807['getRanges']())(_0x14acb3['isIntersecting'](_0x2d6e01)||_0x54c3cd['isCollapsed']&&!_0x147807['isMultiRange']&&_0x147807['next']&&_0x2d6e01['end']['isTouching'](_0x14acb3['start']))&&_0x32c66b['add'](_0x147807);}return _0x32c66b;}(_0x37ca43,_0x3e39a4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x133041=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4134a7 of _0x133041){const _0x2b5b21=_0x4134a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b5b21))return;}rs(this['editor']['model'],this['_command'],_0x133041);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1ca92d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x71b965,_0x72a87f){super(),this['id']=_0x72a87f['id'],this['type']=_0x72a87f['type'],this['subType']=_0x72a87f['subType']||null,this['author']=_0x72a87f['author'],this['creator']=_0x72a87f['creator']||_0x72a87f['author'],this['isExternal']=Boolean(_0x72a87f['attributes']&&_0x72a87f['attributes']['@external']),this['data']=null,this['_model']=_0x71b965,this['_onAccept']=_0x72a87f['onAccept'],this['_onDiscard']=_0x72a87f['onDiscard'],this['_onAttributesChange']=_0x72a87f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x72a87f['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 _0xaa51ad=this;for(;_0xaa51ad['previous'];)_0xaa51ad=_0xaa51ad['previous'];return _0xaa51ad;}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'](_0x40f225){this['_markerNames']['add'](_0x40f225);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x211b4f=>this['_model']['markers']['get'](_0x211b4f))['filter'](_0x545405=>_0x545405);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f914c=>{for(const _0x1bfce6 of this['getMarkers']())_0x2f914c['removeMarker'](_0x1bfce6);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ae5ca){this['_model']['change'](_0x145958=>{_0x145958['removeMarker'](_0x3ae5ca);}),this['_markerNames']['delete'](_0x3ae5ca);}['addRange'](_0x579033){const _0x4cd47b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4cd47b),this['_model']['change'](_0x5660b1=>{_0x5660b1['addMarker'](_0x4cd47b,{'range':_0x579033,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x380769){for(const _0x574021 of this['getRanges']())if(_0x574021['isIntersecting'](_0x380769))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb934f3=>_0xb934f3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fac57,_0x2878a6)=>[..._0x2fac57,..._0x2878a6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x314569=this['getRanges']();if(0x1!=_0x314569['length'])return null;const _0x234ffa=_0x314569[0x0],_0x193d98=_0x234ffa['start']['nodeAfter'],_0x1ff95f=_0x234ffa['end']['nodeBefore'];return _0x193d98 instanceof _0x15e4c1?_0x193d98!=_0x1ff95f?null:_0x193d98: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 _0x4c3537=[];let _0x5a149d=this['head'];for(;_0x5a149d;)_0x4c3537['push'](_0x5a149d),_0x5a149d=_0x5a149d['next'];return _0x4c3537;}['setAttribute'](_0x2d4635,_0x324d21){const _0x5c9877=_0x15bc28(this['attributes']);_0x75b7dd(_0x5c9877,_0x2d4635,_0x324d21),_0x11af30(_0x5c9877,this['attributes'])||(this['attributes']=_0x5c9877,this['_onAttributesChange'](_0x5c9877));}['removeAttribute'](_0x42b55f){const _0x3bf159=_0x15bc28(this['attributes']);_0x47beff(_0x3bf159,_0x42b55f),_0x11af30(_0x3bf159,this['attributes'])||(this['attributes']=_0x3bf159,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 _0x546e08()['substr'](0x1,0x5);}}function o(_0x24a8e5,_0x3858c7,_0x23cd92){const t=_0x24a8e5['t'];switch(_0x3858c7){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',_0x23cd92);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23cd92);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23cd92);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23cd92);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23cd92);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',_0x23cd92);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23cd92);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',_0x23cd92);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23cd92);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23cd92);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23cd92);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23cd92);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23cd92);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23cd92);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23cd92);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23cd92);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23cd92);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23cd92);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23cd92);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23cd92);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23cd92);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23cd92);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23cd92);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'},_0x23cd92);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23cd92);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23cd92);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23cd92);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23cd92);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23cd92);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23cd92);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23cd92);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23cd92);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23cd92);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23cd92);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x23cd92);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x23cd92);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x23cd92);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3858c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1279db,_0x2ad7cb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1279db,this['_locale']=_0x2ad7cb;}['getDescriptions'](_0xdd88b9){const _0x151792=[],_0x304f18=new Set(),_0x43fb86=new Set();for(let _0x53aa6b=0x0;_0x53aa6b<_0xdd88b9['length'];_0x53aa6b++){const _0x540429=_0xdd88b9[_0x53aa6b];if(!_0x540429['isInContent'])continue;const _0x42a73e=this['_handleCustomCallbackDescription'](_0x540429);if(_0x42a73e){if(null!=_0x540429['subType']){if(_0x304f18['has'](_0x540429['subType']))continue;_0x304f18['add'](_0x540429['subType']);}_0x151792['push'](_0x42a73e);}else{if('attribute'!=_0x540429['type'])'insertion'!=_0x540429['type']&&'deletion'!=_0x540429['type']||this['_handleInsertRemoveSuggestionDescription'](_0x151792,_0x540429,_0xdd88b9[_0x53aa6b+0x1]);else{const _0x450465=_0x540429['data']['key'];if(_0x43fb86['has'](_0x450465))continue;_0x43fb86['add'](_0x540429['data']['key']),_0x450465==m?this['_handleRenameSuggestionDescription'](_0x151792,_0x540429):this['_handleAttributeSuggestionDescription'](_0x151792,_0x540429);}}}return this['_resolveDescriptionItems'](_0x151792);}['registerDescriptionCallback'](_0x1a5803){this['_customCallbacks']['push'](_0x1a5803);}['registerElementLabel'](_0x46df27,_0x3bfe99,_0x304c61=_0x44834d['normal']){'function'==typeof _0x46df27?_0x188a5a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46df27,'label':_0x3bfe99,'priority':_0x304c61}):this['_itemLabels']['set'](_0x46df27,_0x3bfe99);}['registerAttributeLabel'](_0x531620,_0x484ddb){this['_attributeLabels']['set'](_0x531620,_0x484ddb);}['getItemLabel'](_0x40638b,_0xa9fc6a=0x1){let _0x47b007;for(const _0x31137b of this['_itemLabelsCallbacks'])if(_0x31137b['matchingCallback'](_0x40638b)){_0x47b007=_0x31137b['label'];break;}return _0x47b007||(_0x47b007=this['_itemLabels']['get'](_0x40638b['name'])),_0x47b007?_0x47b007(_0xa9fc6a):0x1!==_0xa9fc6a?_0xa9fc6a+'\x20'+_0x40638b['name']+'s':''+_0x40638b['name'];}['_addDescriptionItems'](_0x59df06,_0x1e98c9){const _0x4185ad=_0x1e98c9['getFirstRange']()['getWalker'](),_0x3a10e6='insertion'==_0x1e98c9['type']?'add':'remove';for(const _0x2467c2 of _0x4185ad){const _0x5ee7ce=_0x2467c2['item'],_0x2a8ce5=_0x59df06[_0x59df06['length']-0x1];if(_0x5ee7ce['is']('$textProxy'))_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),_0x2a8ce5&&'text'==_0x2a8ce5['type']?_0x2a8ce5[_0x3a10e6]+=_0x5ee7ce['data']:_0x59df06['push']({'type':'text','add':'add'==_0x3a10e6?_0x5ee7ce['data']:'','remove':'remove'==_0x3a10e6?_0x5ee7ce['data']:''});else{if(this['_schema']['isObject'](_0x5ee7ce)){const _0x16af4c=_0x5ee7ce;if(_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),'elementEnd'==_0x2467c2['type'])continue;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'Object'&&_0x2a8ce5['element']['name']==_0x16af4c['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'Object','element':_0x16af4c,'quantity':0x1}),_0x4185ad['skip'](_0x309b50=>!('elementEnd'==_0x309b50['type']&&_0x309b50['item']==_0x5ee7ce));}else{if(this['_schema']['checkChild'](_0x5ee7ce,'$text')||_0x5ee7ce['is']('element','softBreak')){const _0x4a82e5=_0x5ee7ce;if('add'==_0x3a10e6&&'elementStart'==_0x2467c2['type']||'remove'==_0x3a10e6&&'elementEnd'==_0x2467c2['type'])continue;if(_0x2a8ce5&&-0x1==_0x2a8ce5['type']['indexOf']('Container')){'text'==_0x2a8ce5['type']&&(_0x2a8ce5[_0x3a10e6]+='\x0a');continue;}let _0x5d363f;if(_0x5d363f='add'==_0x3a10e6?_0x4a82e5['nextSibling']&&!this['_schema']['isObject'](_0x4a82e5['nextSibling'])?_0x4a82e5['nextSibling']:null:_0x4a82e5['previousSibling']&&!this['_schema']['isObject'](_0x4a82e5['previousSibling'])?_0x4a82e5['previousSibling']:null,_0x4a82e5['isEmpty']||_0x5d363f&&_0x5d363f['isEmpty']){const _0x33cf9a=_0x5d363f&&_0x5d363f['isEmpty']?_0x5d363f:_0x4a82e5;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'EmptyContainer'&&_0x2a8ce5['element']['name']==_0x33cf9a['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'EmptyContainer','element':_0x33cf9a,'quantity':0x1});}else _0x59df06['push']({'type':_0x3a10e6+'Container','element':_0x4a82e5});}}}}}['_resolveDescriptionItems'](_0x2f3744){const _0x113d17=this['_locale'],_0x48d606=[],_0x1cf903=[],_0xe839=[];for(const _0x17b5f5 of _0x2f3744)switch(_0x17b5f5['type']){case'text':if(_0x17b5f5['add']=_0x17b5f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17b5f5['remove']=_0x17b5f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17b5f5['add']&&''!=_0x17b5f5['remove']){_0x48d606['push']({'type':'replace','content':o(_0x113d17,'REPLACE_TEXT',['\x22'+_0x17b5f5['remove']+'\x22','\x22'+_0x17b5f5['add']+'\x22'])});continue;}if(null!=_0x17b5f5['add']['match'](/^ +$/)){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['add']['length']))});continue;}if(null!=_0x17b5f5['remove']['match'](/^ +$/)){_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['remove']['length']))});continue;}if(''!=_0x17b5f5['add']){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0','\x22'+_0x17b5f5['add']+'\x22')});continue;}_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0','\x22'+_0x17b5f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addContainer':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Split:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeContainer':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Merge:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addFormat':_0x1cf903['push'](_0x17b5f5['key']);continue;case'removeFormat':_0xe839['push'](_0x17b5f5['key']);continue;default:_0x48d606['push'](_0x17b5f5);}if(_0x1cf903['length']){const _0x1f3bf4=_0x1cf903['map'](_0x43d59f=>this['_attributeLabels']['has'](_0x43d59f)?this['_attributeLabels']['get'](_0x43d59f):_0x43d59f)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f3bf4)});}if(_0xe839['length']){const _0x4e9c36=_0xe839['map'](_0x40110a=>this['_attributeLabels']['has'](_0x40110a)?this['_attributeLabels']['get'](_0x40110a):_0x40110a)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e9c36)});}return _0x48d606;}['_handleCustomCallbackDescription'](_0x2a2d95){for(const _0x1e4527 of this['_customCallbacks']){const _0x2fb77c=_0x1e4527(_0x2a2d95);if(_0x2fb77c&&'type'in _0x2fb77c)return _0x2fb77c;}}['_handleAttributeSuggestionDescription'](_0x3a9b3f,_0x4b6656){const _0x515333=_0x4b6656['data'],_0x56f218=void 0x0===_0x515333['newValue']?'removeFormat':'addFormat';_0x3a9b3f['push']({'type':_0x56f218,'key':_0x515333['key']});}['_handleRenameSuggestionDescription'](_0x3ed151,_0xd9ac6a){_0x3ed151['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xd9ac6a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x36ad53,_0x52d379,_0x11937f){if(this['_addDescriptionItems'](_0x36ad53,_0x52d379),_0x11937f&&_0x11937f['getFirstRange']()&&!_0x52d379['getFirstRange']()['end']['isEqual'](_0x11937f['getFirstRange']()['start'])){const _0x4cb727=_0x36ad53[_0x36ad53['length']-0x1],_0x2e306f='insertion'==_0x52d379['type']?'add':'remove';_0x4cb727&&'text'==_0x4cb727['type']&&(_0x4cb727[_0x2e306f]+='\x0a');}}}class V extends _0x58a0bc{['afterInit'](){const _0xd79203=this['editor'],_0x345393=_0xd79203['plugins']['get']('TrackChangesEditing');_0xd79203['commands']['get']('showAIAssistant')&&_0x345393['enableCommand']('showAIAssistant');}}class U extends _0x58a0bc{['afterInit'](){const _0x9190c7=this['editor'],_0x375159=_0x9190c7['locale'];if(!_0x9190c7['plugins']['has']('AlignmentEditing'))return;const _0x5d054f=_0x9190c7['plugins']['get']('TrackChangesEditing');_0x5d054f['enableDefaultAttributesIntegration']('alignment'),_0x5d054f['registerBlockAttribute']('alignment'),_0x5d054f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x375159,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f0ef5=this['editor'],_0x45b0=_0x1f0ef5['locale'];_0x1f0ef5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350549=>{if('formatBlock'!=_0x350549['type'])return;const {data:_0x3bff25}=_0x350549;if(_0x3bff25&&'alignment'==_0x3bff25['commandName']){const _0x1d2fdd=_0x3bff25['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x45b0,'*Format:*\x20%0',function(_0x16464a){switch(_0x16464a){case'left':return o(_0x45b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x45b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x45b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x45b0,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2fdd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x58a0bc{['afterInit'](){const _0x378933=this['editor'],_0x520339=_0x378933['plugins']['get']('TrackChangesEditing'),_0x42c18a=_0x378933['locale'];for(const _0xe3a9a of ti){if(!_0x378933['plugins']['has'](_0xe3a9a))continue;const _0x4c8403=_0xe3a9a['slice'](0x0,-0x7)['toLowerCase'](),_0x385e88='FORMAT_'+_0x4c8403['toUpperCase']();_0x520339['enableDefaultAttributesIntegration'](_0x4c8403),_0x520339['registerInlineAttribute'](_0x4c8403),_0x520339['descriptionFactory']['registerAttributeLabel'](_0x4c8403,o(_0x42c18a,_0x385e88));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4372cc=this['editor'],_0x4f7661=_0x4372cc['locale'],_0x17fc04=_0x4372cc['plugins']['get']('TrackChangesEditing');function _0x1caca7(_0x32be58,_0x1ea323){_0x17fc04['descriptionFactory']['registerDescriptionCallback'](_0x5e1fde=>{if('formatInline'!=_0x5e1fde['type'])return;const {data:_0x2f34f7}=_0x5e1fde;return _0x2f34f7&&_0x2f34f7['commandName']===_0x32be58?_0x2f34f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f7661,'*Format:*\x20%0',_0x1ea323)}:{'type':'format','content':o(_0x4f7661,'*Remove\x20format:*\x20%0',_0x1ea323)}:void 0x0;});}_0x1caca7('bold',o(_0x4f7661,'FORMAT_BOLD')),_0x1caca7('italic',o(_0x4f7661,'FORMAT_ITALIC')),_0x1caca7('underline',o(_0x4f7661,'FORMAT_UNDERLINE')),_0x1caca7('code',o(_0x4f7661,'FORMAT_CODE')),_0x1caca7('strikethrough',o(_0x4f7661,'FORMAT_STRIKETHROUGH')),_0x1caca7('subscript',o(_0x4f7661,'FORMAT_SUBSCRIPT')),_0x1caca7('superscript',o(_0x4f7661,'FORMAT_SUPERSCRIPT'));}}class F extends _0x58a0bc{['afterInit'](){const _0x4a6d5f=this['editor'],_0x5f4053=_0x4a6d5f['locale'];if(!_0x4a6d5f['plugins']['has']('BlockQuoteEditing'))return;const _0x35fed7=_0x4a6d5f['plugins']['get']('TrackChangesEditing'),_0x59062f=this['editor']['commands']['get']('blockQuote');_0x35fed7['enableCommand']('blockQuote',(_0x2956a7,_0x427a32={})=>{const _0x52db7d=this['editor']['model']['document']['selection'],_0x14a35b=_0x427a32&&void 0x0!==_0x427a32['forceValue']?_0x427a32['forceValue']:!_0x59062f['value'];let _0x4144f3=[];if(_0x14a35b){const _0x2e35c7=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x29e544=>oo(_0x29e544)||function(_0x17bf17,_0x15a128){const _0x63b312=_0x15a128['checkChild'](_0x17bf17['parent'],'blockQuote'),_0x430262=_0x15a128['checkChild'](['$root','blockQuote'],_0x17bf17);return _0x63b312&&_0x430262;}(_0x29e544,this['editor']['model']['schema']));_0x4144f3=to(_0x2e35c7,_0x4a6d5f['model']);}else{const _0x4a3480=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x195323=>oo(_0x195323));_0x4144f3=to(_0x4a3480,_0x4a6d5f['model']);}_0x4a6d5f['model']['change'](()=>{for(const _0x4de5f5 of _0x4144f3)_0x35fed7['markBlockFormat'](_0x4de5f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14a35b}]});});}),_0x35fed7['descriptionFactory']['registerDescriptionCallback'](_0x25fe1f=>{const {data:_0xdf65fb}=_0x25fe1f;if(_0xdf65fb&&'blockQuote'==_0xdf65fb['commandName']){const _0x2f7335=o(_0x5f4053,'ELEMENT_BLOCK_QUOTE');return _0xdf65fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f4053,'*Set\x20format:*\x20%0',_0x2f7335)}:{'type':'format','content':o(_0x5f4053,'*Remove\x20format:*\x20%0',_0x2f7335)};}});}}function oo(_0x26c9be){return'blockQuote'==_0x26c9be['parent']['name'];}class L extends _0x58a0bc{['afterInit'](){const _0x12eb81=this['editor'];_0x12eb81['plugins']['has']('CaseChange')&&(_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x58a0bc{['afterInit'](){const _0x3760cc=this['editor'];_0x3760cc['commands']['get']('ckbox')&&_0x3760cc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x58a0bc{['afterInit'](){const _0x42fa55=this['editor'];if(!_0x42fa55['plugins']['has']('CodeBlock'))return;const _0x4ead98=_0x42fa55['plugins']['get']('TrackChangesEditing'),_0x1c7df4=_0x42fa55['locale'],_0x4723c6=_0x42fa55['config']['get']('codeBlock')['languages'],_0x397923=_0x42fa55['commands']['get']('codeBlock');_0x4ead98['enableCommand']('indentCodeBlock'),_0x4ead98['enableCommand']('outdentCodeBlock'),_0x4ead98['enableCommand']('codeBlock',(_0x33bf1a,_0x3e92d1={})=>{const _0x4f654a=_0x42fa55['model'],_0x597344=_0x42fa55['model']['document']['selection'],_0x209480=_0x3e92d1&&void 0x0!==_0x3e92d1['forceValue']?_0x3e92d1['forceValue']:!_0x397923['value'];let _0x1d9bc2;_0x3e92d1['language']||(_0x3e92d1['language']=_0x4723c6[0x0]['language']),_0x1d9bc2=_0x209480?Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x165f2c=>eo(_0x165f2c)||function(_0x753208,_0x16ae15){if(_0x753208['is']('rootElement')||_0x16ae15['isLimit'](_0x753208))return!0x1;return _0x16ae15['checkChild'](_0x753208['parent'],'codeBlock');}(_0x165f2c,_0x4f654a['schema'])):Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x277cc0=>eo(_0x277cc0));const _0x51f6e7=to(_0x1d9bc2,_0x4f654a);_0x4f654a['change'](()=>{for(const _0x277e82 of _0x51f6e7)_0x4ead98['markBlockFormat'](_0x277e82,{'commandName':'codeBlock','commandParams':[{..._0x3e92d1,'forceValue':_0x209480}],'formatGroupId':'blockName'});});}),(_0x4ead98['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d81a7=>o(_0x1c7df4,'ELEMENT_CODE_BLOCK',_0x3d81a7)),_0x4ead98['descriptionFactory']['registerDescriptionCallback'](_0x375b33=>{if('formatBlock'!=_0x375b33['type'])return;const _0x43dc96=_0x1c7df4['t'],{data:_0x150a63}=_0x375b33;if(!_0x150a63||'codeBlock'!=_0x150a63['commandName'])return;const _0x33f7af=_0x150a63['commandParams'][0x0]['language'],_0x46e22c=_0x43dc96(_0x4723c6['find'](_0x3695d8=>_0x3695d8['language']===_0x33f7af)['label'])['toLowerCase']();return _0x150a63['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c7df4,'*Set\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x46e22c+')')}:{'type':'format','content':o(_0x1c7df4,'*Remove\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4fc702){return'codeBlock'==_0x4fc702['name'];}class q extends _0x58a0bc{['afterInit'](){const _0x745fb0=this['editor'];if(!_0x745fb0['plugins']['has']('CommentsEditing'))return;_0x745fb0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55d811,_0xce3274,_0x176aca){const _0x3061d1=[];for(const _0x172b3c of _0xce3274['getItems']())_0x172b3c['hasAttribute'](_0x55d811)&&_0x3061d1['push'](_0x176aca['createRangeOn'](_0x172b3c));return _0x3061d1;}function _e(_0x13812b,_0x4b32b8,{showActiveMarker:_0x5e0e93=!0x0}={}){const _0x251455=_0x13812b['plugins']['get']('TrackChangesEditing');return(_0x485aea,_0x383596,_0x5b0918)=>{if(!_0x5b0918['consumable']['test'](_0x383596['markerRange'],_0x485aea['name']))return;const _0x582e5a=_0x383596['markerRange']['getWalker'](),_0x24bf9e=_0x383596['markerRange']['start'],_0x5b31c1=_0x13812b['model']['schema'];let _0x3c65d5=null,_0x45970c=null,_0x4e0b3b=!0x1,_0x51747b=!0x1;for(const _0x459942 of _0x582e5a){const _0x21f7d7=_0x459942['item'];_0x4e0b3b=_0x4e0b3b||_0x5b31c1['isContent'](_0x21f7d7);const _0x3db6ad=_0x5b0918['mapper']['toViewElement'](_0x21f7d7);if(_0x3db6ad&&_0x3db6ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x459942['type']&&(_0x5b31c1['isBlock'](_0x21f7d7)&&!_0x5b31c1['isLimit'](_0x21f7d7)&&(_0x21f7d7['nextSibling']||_0x24bf9e['isAtEnd']?_0x3c65d5&&_0x3c65d5['parent']==_0x21f7d7||(_0x3c65d5=_0x21f7d7,_0x166791(_0x459942['previousPosition']),_0x51747b=!0x0):_0x45970c=_0x45970c||_0x459942['previousPosition']));}function _0x166791(_0xb5d08a){const {authorId:_0x49cf5c}=_0x251455['_splitMarkerName'](_0x383596['markerName']),_0x231066=_0x5b0918['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b32b8,'data-author-id':_0x49cf5c}),_0x4a7bb5=_0x5b0918['mapper']['toViewPosition'](_0xb5d08a);_0x5e0e93&&_0x251455['activeMarkers']['includes'](_0x383596['markerName'])&&_0x5b0918['writer']['addClass']('ck-suggestion-marker--active',_0x231066),_0x5b0918['writer']['insert'](_0x4a7bb5,_0x231066),_0x5b0918['mapper']['bindElementToMarker'](_0x231066,_0x383596['markerName']);}_0x4e0b3b||_0x51747b||!_0x45970c||_0x166791(_0x45970c);};}class z extends _0x58a0bc{static get['requires'](){return[_0x45edbc];}['init'](){const _0x52a80f=this['editor'],_0x4b0b88=_0x52a80f['plugins']['get']('TrackChangesEditing');_0x4b0b88['enableCommand']('delete');const _0x36ae8d=_0x52a80f['commands']['get']('deleteForward');_0x4b0b88['enableCommand']('deleteForward',(_0x1a5908,_0x9d55f6={})=>{const _0x48de2b=_0x52a80f['model']['createSelection'](_0x52a80f['model']['document']['selection']);_0x48de2b['isCollapsed']&&_0x52a80f['model']['modifySelection'](_0x48de2b,{'direction':'forward','unit':_0x9d55f6['unit']});const _0x5a5535=_0x48de2b['getFirstRange'](),_0x4475f3=_0x1ac7bd['fromRange'](_0x5a5535);let _0x3fb167;_0x1a5908(_0x9d55f6),_0x3fb167='$graveyard'==_0x4475f3['root']['rootName']?_0x52a80f['model']['createRange'](_0x5a5535['start']):_0x52a80f['model']['createRange'](_0x4475f3['start'],_0x4475f3['end']),_0x4475f3['detach'](),_0x52a80f['model']['enqueueChange'](_0x36ae8d['buffer']['batch'],_0x1dda4f=>{_0x36ae8d['buffer']['lock'](),_0x1dda4f['setSelection'](_0x1dda4f['createRange'](_0x3fb167['end'])),_0x36ae8d['buffer']['unlock']();});}),_0x52a80f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x52a80f,'merge'),{'priority':'high'}),_0x52a80f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x546d5e,_0x3d7dd8,_0x33a2fd)=>{_0x33a2fd['options']['showSuggestionHighlights']&&_e(_0x52a80f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x546d5e,_0x3d7dd8,_0x33a2fd);},{'priority':'high'}),_0x52a80f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1237e6,_0x29594a,_0x4c3ff0)=>{const _0x919f0a=_0x4c3ff0['mapper']['markerNameToElements'](_0x29594a['markerName']);if(_0x919f0a){for(const _0x5aa409 of _0x919f0a)_0x5aa409['is']('uiElement')&&(_0x4c3ff0['mapper']['unbindElementFromMarkerName'](_0x5aa409,_0x29594a['markerName']),_0x4c3ff0['writer']['remove'](_0x5aa409));}},{'priority':'high'});}}class K extends _0x58a0bc{['afterInit'](){const _0x4ffa3a=this['editor'];if(!_0x4ffa3a['plugins']['has']('ListEditing'))return;const _0xd4ca3e=_0x4ffa3a['locale'],_0x1c28a7=_0x4ffa3a['plugins']['get']('TrackChangesEditing'),_0x4dbd49=_0x4ffa3a['plugins']['has']('TodoListEditing'),_0x5d5b78=!!_0x4ffa3a['config']['get']('list.multiBlock');function _0xfc5e40(_0x7eede1){return{'type':'format','content':''+o(_0xd4ca3e,'*Set\x20format:*\x20%0',_0x7eede1)};}function _0x7afb95(_0x52dba6){return{'type':'format','content':''+o(_0xd4ca3e,'*Remove\x20format:*\x20%0',_0x52dba6)};}_0x1c28a7['enableDefaultAttributesIntegration']('numberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('bulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customNumberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customBulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('indentList'),_0x1c28a7['enableDefaultAttributesIntegration']('outdentList'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c28a7['registerBlockAttribute']('listItemId'),_0x1c28a7['registerBlockAttribute']('listType'),_0x1c28a7['registerBlockAttribute']('listIndent'),_0x5d5b78&&(_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4dbd49&&(_0x1c28a7['enableDefaultAttributesIntegration']('todoList'),_0x1c28a7['enableDefaultAttributesIntegration']('checkTodoList'),_0x1c28a7['registerBlockAttribute']('todoListChecked'),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x305348=>{const {data:_0x2faf2f}=_0x305348;if(_0x2faf2f&&'todoListChecked'==_0x2faf2f['key'])return{'type':'format','content':_0x2faf2f['newValue']?o(_0xd4ca3e,'*Check\x20item*'):o(_0xd4ca3e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x24a979=>{if(_0x24a979['batch']['isUndo'])return!0x1;let _0x898d42=!0x1;const _0x44803a=_0x1c28a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f6e1c=>'todoListChecked'===_0x1c28a7['_getAttributeKey'](_0x4f6e1c));for(const _0x4283c9 of _0x44803a){'todo'!=_0x4283c9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c28a7['_findSuggestions'](_0x4283c9['getFirstRange'](),'attribute')['find'](_0x242260=>'listType'===_0x1c28a7['_getAttributeKey'](_0x242260['suggestion']))||(_0x24a979['removeMarker'](_0x4283c9['getFirstMarker']()),_0x898d42=!0x0));}return _0x898d42;})),_0x1c28a7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd4ca3e,'FORMAT_INDENT'));const _0x4fe24f={'type':'format','content':''};_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x2ec71e=>{const {data:_0x17fb25}=_0x2ec71e;if(!_0x17fb25||'listType'!=_0x17fb25['key'])return;let _0x445e61=_0x2ec71e['head'];for(;_0x445e61;){if(_0x445e61['data']&&(('listStyle'==_0x445e61['data']['key']||'listMarkerStyle'==_0x445e61['data']['key'])&&(_0x445e61['data']['newValue']&&'default'!=_0x445e61['data']['newValue']||'default'!=_0x445e61['data']['oldValue']&&!_0x17fb25['newValue'])||!_0x5d5b78&&_0x445e61['data']['key']==m))return _0x4fe24f;_0x445e61=_0x445e61['next'];}if(null==_0x17fb25['newValue'])switch(_0x17fb25['oldValue']){case'bulleted':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}switch(_0x17fb25['newValue']){case'bulleted':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x384b47=>{const {data:_0x2c3032}=_0x384b47;if(_0x2c3032&&'listIndent'==_0x2c3032['key'])return null==_0x2c3032['newValue']||null==_0x2c3032['oldValue']&&0x0==_0x2c3032['newValue']?_0x4fe24f:void 0x0;}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x73d2ea=>{if('attribute'!=_0x73d2ea['type'])return;const {data:_0x7756c9}=_0x73d2ea;if(!_0x7756c9||'listItemId'!=_0x7756c9['key'])return;const _0x1c79bd=Ee(_0x73d2ea);return'newValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Split:*\x20list\x20item')}:_0x4fe24f;}),_0x4ffa3a['model']['document']['registerPostFixer'](_0xbd9645=>this['listItemIdFixer'](_0xbd9645)),_0x4ffa3a['model']['document']['registerPostFixer'](_0x15513a=>this['noTrackChangesFixer'](_0x15513a)),_0x4ffa3a['model']['document']['on']('change:data',(_0x486ad3,_0x544831)=>{if(_0x544831['isUndo']||!_0x544831['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3caf58){if(_0x3caf58['batch']['isUndo']||!_0x3caf58['batch']['isLocal'])return!0x1;let _0x4eeeab=!0x1;const _0x2ce525=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e23dc=>_0x2e23dc['data']&&'listItemId'==_0x2e23dc['data']['key'])['filter'](_0x16c6a3=>_0x16c6a3['data']['newValue']&&_0x16c6a3['data']['oldValue']);for(const _0x752c59 of _0x2ce525)Ee(_0x752c59)||(_0x3caf58['removeMarker'](_0x752c59['getFirstMarker']()),_0x4eeeab=!0x0);return _0x4eeeab;}['noTrackChangesFixer'](_0x26a5b0){if(_0x26a5b0['batch']['isUndo']||!_0x26a5b0['batch']['isLocal'])return!0x1;const _0x38ff30=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38ff30['trackChangesCommand']['value'])return!0x1;let _0x433a4b=!0x1;const _0x46db94=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3af897=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10df70=>'attribute'==_0x10df70['type'])['filter'](_0x383734=>_0x46db94['includes'](_0x383734['attributeKey']));if(0x0==_0x3af897['length'])return _0x433a4b;for(const _0x419b59 of _0x3af897){const _0x224a7b=_0x38ff30['_findSuggestions'](_0x419b59['range'],'attribute')['filter'](_0x28b3aa=>!_0x28b3aa['meta']['isNextTo'])['map'](_0x48ea7b=>_0x48ea7b['suggestion'])['filter'](_0x114d80=>{const _0xe5b75c=_0x38ff30['_getAttributeKey'](_0x114d80);return _0x46db94['includes'](_0xe5b75c);});if(_0x224a7b['length']){for(const _0x1b8654 of _0x224a7b)_0x26a5b0['removeMarker'](_0x1b8654['getFirstMarker']());_0x433a4b=!0x0;}}return _0x433a4b;}['assureChains'](){const _0x5489b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa09ce8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6615e3;const _0x31cf79=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45d6cd=>{if(_0x45d6cd['data']['oldRange']||!_0x45d6cd['data']['newRange'])return null;if(!_0x45d6cd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1917a8}=_0x5489b9['_splitMarkerName'](_0x45d6cd['name']);if(!_0x5489b9['hasSuggestion'](_0x1917a8))return null;const _0x182ee5=_0x5489b9['getSuggestion'](_0x1917a8);return _0xa09ce8['includes'](_0x182ee5['data']['key']);})['map'](_0x5169d8=>{const {id:_0x33d994}=_0x5489b9['_splitMarkerName'](_0x5169d8['name']),_0x17be25=_0x5489b9['getSuggestion'](_0x33d994);return _0x6615e3=_0x17be25['attributes']['groupId'],_0x17be25['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x31cf79['size'])return;const _0x471be3=_0x5489b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x254897=>'attribute'==_0x254897['type']&&_0x254897['data']&&_0xa09ce8['includes'](_0x254897['data']['key'])&&_0x254897['attributes']['groupId']!=_0x6615e3)['map'](_0x1e3cae=>({'listItem':_0x1e3cae['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e3cae['attributes']['groupId']})),_0x59ee3f=new Set();for(const {groupId:_0x45c348,listItem:_0x3ef5fa}of _0x471be3)_0x31cf79['has'](_0x3ef5fa)&&_0x59ee3f['add'](_0x45c348);for(const _0x402444 of _0x5489b9['getSuggestions']())_0x59ee3f['has'](_0x402444['attributes']['groupId'])&&_0x402444['setAttribute']('groupId',_0x6615e3);}['_supportLegacySuggestions'](){const _0x3d4a3c=this['editor'],_0x2edfab=_0x3d4a3c['locale'],_0x33af0f=_0x3d4a3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x33af0f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x377117,_0xcbf6e5){const _0x47dab9=[];for(let _0x1aef17 of _0x377117)_0x1aef17['start']['nodeAfter']===_0x1aef17['end']['parent']&&(_0x1aef17=_0x3d4a3c['model']['createRange'](_0x3d4a3c['model']['createPositionAt'](_0x1aef17['start']['nodeAfter'],0x0))),_0x47dab9['push'](_0x1aef17);_0x3d4a3c['model']['change'](_0x37d0ff=>{const _0x4ee64c=_0x3d4a3c['model']['document']['selection'],_0x23369d=Array['from'](_0x4ee64c['getRanges']())['map'](_0x3139dc=>_0x1ac7bd['fromRange'](_0x3139dc));_0x37d0ff['setSelection'](_0x47dab9),_0x3d4a3c['commands']['get'](_0xcbf6e5['commandName'])['refresh'](),_0xcbf6e5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d4a3c['execute'](_0xcbf6e5['commandName'],..._0xcbf6e5['commandParams']),_0x37d0ff['setSelection'](_0x23369d);for(const _0x4fecb5 of _0x23369d)_0x4fecb5['detach']();});}),_0x33af0f['descriptionFactory']['registerElementLabel'](function(_0x22360e){const _0x3f641d=!_0x3d4a3c['model']['schema']['isObject'](_0x22360e),_0x433e77=_0x22360e['previousSibling'],_0x117c48=_0x22360e['nextSibling'],_0x14ac0b=_0x22360e['getAttribute']('listItemId'),_0x5aa4a8=!_0x433e77||_0x433e77['getAttribute']('listItemId')!==_0x14ac0b,_0x27021a=!_0x117c48||_0x117c48['getAttribute']('listItemId')!==_0x14ac0b;return _0x3f641d&&Boolean(_0x14ac0b)&&_0x5aa4a8&&_0x27021a;},_0x59e561=>o(_0x2edfab,'ELEMENT_LIST_ITEM',_0x59e561));}['_registerLegacyDescription'](){const _0x447122=this['editor'],_0x56309c=_0x447122['locale'];function _0xf64ae1(_0x1f6b28){const _0x5bfb55=_0x447122['commands']['get']('bulletedList')['value'],_0x466d1e=_0x447122['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f6b28?_0x5bfb55:_0x466d1e;}_0x447122['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3977cd){if('formatBlock'!=_0x3977cd['type'])return;const {data:_0x5a9a7d}=_0x3977cd;if(!_0x5a9a7d)return;let _0x4999d3,_0x408efe,_0x48ce04,_0x2a1cb2;switch(_0x5a9a7d['commandName']){case'bulletedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4999d3='*Indent:*\x20%0',_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4999d3=function(_0x5a04e3){const _0x5364f6=_0x5a04e3['getFirstRange']();let _0x393e80=_0x5364f6['start']['nodeAfter'];for(;_0x393e80&&_0x5364f6['containsItem'](_0x393e80);){if(_0x393e80['getAttribute']('listIndent')>0x0)return!0x1;_0x393e80=_0x393e80['nextSibling'];}return!0x0;}(_0x3977cd)?o(_0x56309c,'*Format:*\x20remove\x20from\x20%0',o(_0x56309c,function(_0x3e2fc3){return'ELEMENT_'+_0x3e2fc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3977cd))):o(_0x56309c,'*Outdent:*\x20%0',o(_0x56309c,'ELEMENT_LIST_ITEM')),_0x408efe={'type':'format','content':_0x4999d3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a9a7d['multipleBlocks']&&(_0x4999d3='*Merge:*\x20%0',_0x408efe={'type':'deletion','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))});}return _0x408efe;});}}function Ee(_0x3a507e){let _0x38b7b3=_0x3a507e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38b7b3;){const _0x26d8a7=_0x38b7b3['getAttribute']('listItemId');if(!_0x26d8a7)return!0x1;if(_0x26d8a7==_0x3a507e['data']['newValue'])return'newValue';if(_0x26d8a7==_0x3a507e['data']['oldValue'])return'oldValue';_0x38b7b3=_0x38b7b3['previousSibling'];}return!0x1;}class pe extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c8bbc=this['editor']['config']['get']('list.properties'),_0x54733e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c8bbc['styles']&&(_0x54733e['enableDefaultAttributesIntegration']('listStyle'),_0x54733e['registerBlockAttribute']('listStyle')),_0x4c8bbc['reversed']&&(_0x54733e['enableDefaultAttributesIntegration']('listReversed'),_0x54733e['registerBlockAttribute']('listReversed')),_0x4c8bbc['startIndex']&&(_0x54733e['enableDefaultAttributesIntegration']('listStart'),_0x54733e['registerBlockAttribute']('listStart'));const _0x2dfafa={'type':'format','content':''};_0x54733e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15daf5=this['editor']['locale'];_0x54733e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x15daf5,'FORMAT_LIST_REVERSED')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x1d7d97=>{const {data:_0x52247f}=_0x1d7d97;if(_0x52247f&&'listReversed'==_0x52247f['key'])return null==_0x52247f['newValue']||0x0==_0x52247f['newValue']&&null==_0x52247f['oldValue']?_0x2dfafa:void 0x0;}),_0x54733e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x15daf5,'FORMAT_LIST_START')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x43ba27=>{const {data:_0x530963}=_0x43ba27;if(_0x530963&&'listStart'==_0x530963['key'])return null==_0x530963['newValue']||0x1==_0x530963['newValue']&&null==_0x530963['oldValue']?_0x2dfafa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x465877=>{if(_0x465877['batch']['isUndo'])return!0x1;let _0x502a3c=!0x1;const _0x25b495=_0x54733e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x427f07=>{const _0x1628f1=_0x54733e['_getAttributeKey'](_0x427f07);return'listStart'==_0x1628f1||'listReversed'==_0x1628f1;});for(const _0x45afd6 of _0x25b495){const _0x29e525=_0x45afd6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x29e525||'customNumbered'==_0x29e525)continue;_0x54733e['_findSuggestions'](_0x45afd6['getFirstRange'](),'attribute')['find'](_0x25d33b=>'listType'==_0x54733e['_getAttributeKey'](_0x25d33b['suggestion']))||(_0x465877['removeMarker'](_0x45afd6['getFirstMarker']()),_0x502a3c=!0x0);}return _0x502a3c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x360fb8){const _0xd55629=this['editor']['locale'],{data:_0x5904e8}=_0x360fb8,_0x2b5a43={'type':'format','content':''};if(!_0x5904e8||'listStyle'!=_0x5904e8['key'])return;if(!_0x5904e8['oldValue'])return'default'==_0x5904e8['newValue']?_0x2b5a43:{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};if(!_0x5904e8['newValue']){if('default'==_0x5904e8['oldValue'])return _0x2b5a43;let _0x384245=_0x360fb8['head'];for(;_0x384245;){if(_0x384245['data']&&'listType'==_0x384245['data']['key']&&_0x384245['data']['newValue'])return _0x2b5a43;_0x384245=_0x384245['next'];}return{'type':'format','content':''+o(_0xd55629,'*Remove\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['oldValue'])))};}if('default'!=_0x5904e8['newValue'])return{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};let _0x1c88ff=_0x360fb8['head'];for(;_0x1c88ff;){if(_0x1c88ff['data']&&'listType'==_0x1c88ff['data']['key']&&_0x1c88ff['data']['newValue']&&_0x1c88ff['data']['oldValue'])return _0x2b5a43;_0x1c88ff=_0x1c88ff['next'];}return{'type':'format','content':o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,'ELEMENT_'+_0x360fb8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x48b694=this['editor'],_0x5dfca2=_0x48b694['locale'];_0x48b694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130c08=>{if('formatBlock'!=_0x130c08['type'])return;const {data:_0x5c0de5}=_0x130c08;if(!_0x5c0de5)return;let _0x43a72b,_0x17628a;switch(_0x5c0de5['commandName']){case'listStyle':_0x43a72b='*Change\x20to:*\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,o(_0x5dfca2,this['_getTranslationKeyForListStyle'](_0x5c0de5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43a72b=_0x5c0de5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b)};break;case'listStart':_0x43a72b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,_0x5c0de5['commandParams'][0x0]['startIndex'])};}return _0x17628a;});}['_getTranslationKeyForListStyle'](_0x300cbc){return'ELEMENT_'+function(_0x2d8ec6){if(ye['includes'](_0x2d8ec6))return'bulleted';if(Se['includes'](_0x2d8ec6))return'numbered';return null;}(_0x300cbc)['toUpperCase']()+'_LIST_'+_0x300cbc['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x58a0bc{static get['requires'](){return[_0x4d33f4];}['init'](){const _0x4864bc=this['editor'],_0x3b963a=_0x4864bc['plugins']['get']('TrackChangesEditing'),_0x86c816=_0x4864bc['commands']['get']('enter');_0x3b963a['enableCommand']('enter',()=>{_0x4864bc['model']['change'](_0xfd5390=>{const _0x5f5d5f=_0x4864bc['model']['document']['selection'],_0x16de63=_0x5f5d5f['getFirstPosition'](),_0x450883=_0x1ac7bd['fromRange'](_0x5f5d5f['getFirstRange']());if(_0x86c816['enterBlock'](_0xfd5390)){const _0x158232=_0x4864bc['model']['createPositionAt'](_0x16de63['parent']['nextSibling'],0x0),_0x1bd0fc=_0xfd5390['createRange'](_0x16de63,_0x158232);_0x3b963a['markInsertion'](_0x1bd0fc);}else _0xfd5390['setSelection'](_0xfd5390['createRange'](_0x450883['end']));_0x450883['detach'](),_0x86c816['fire']('afterExecute',{'writer':_0xfd5390});});}),_0x4864bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4864bc,'split'),{'priority':'high'}),_0x4864bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c1a1e,_0x2d682d,_0x506b5a)=>{const _0x44b669=_0x506b5a['mapper']['markerNameToElements'](_0x2d682d['markerName']);if(_0x44b669){for(const _0x16fce9 of _0x44b669)_0x16fce9['hasClass']('ck-suggestion-marker-split')&&(_0x506b5a['mapper']['unbindElementFromMarkerName'](_0x16fce9,_0x2d682d['markerName']),_0x506b5a['writer']['remove'](_0x16fce9));}},{'priority':'high'}),_0x4864bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35aa2a,_0x10cb34,_0x43720c)=>{_0x43720c['options']['showSuggestionHighlights']&&_e(_0x4864bc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35aa2a,_0x10cb34,_0x43720c);},{'priority':'high'});}}class X extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x348305=this['editor']['plugins']['get']('TrackChangesEditing');_0x348305['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x348305['enableCommand']('findNext'),_0x348305['enableCommand']('findPrevious'),_0x348305['enableCommand']('replace'),_0x348305['enableCommand']('replaceAll');}['handleFindCommand'](_0x646684,_0xb35d3a,_0x2eeb6b={}){const _0x58b54d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x646684(_0x414d22=>{let _0x5dab04=('string'==typeof _0xb35d3a?_0x58b54d['findByTextCallback'](_0xb35d3a,_0x2eeb6b):_0xb35d3a)(_0x414d22);Array['isArray'](_0x5dab04)&&(_0x5dab04={'results':_0x5dab04,'searchText':'string'==typeof _0xb35d3a?_0xb35d3a:''});const _0x4ec505=_0x5dab04['results']['filter'](_0x175ff7=>!0x1===this['_isInDeletionRange'](_0x175ff7,_0x414d22['item']));return{..._0x5dab04,'results':_0x4ec505};},_0x2eeb6b);}['_isInDeletionRange'](_0x2c3386,_0x11fb6b){const _0xfb3774=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['start']),this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['end']));for(const _0x4db150 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfb3774['getIntersection'](_0x4db150['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x58a0bc{['afterInit'](){const _0x168185=this['editor']['locale'],_0xbaa744=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16bcb1,commandName:_0x2b7243}of ro)this['editor']['plugins']['has'](_0x16bcb1)&&(_0xbaa744['enableDefaultAttributesIntegration'](_0x2b7243),_0xbaa744['registerInlineAttribute'](_0x2b7243));_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x168185,'FORMAT_FONT_SIZE')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x168185,'FORMAT_FONT_FAMILY')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x168185,'FORMAT_FONT_COLOR')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x168185,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18aaf4=this['editor'],_0x553679=_0x18aaf4['locale'];_0x18aaf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bcd59=>{const _0x1d6d42=_0x553679['t'];if('formatInline'!=_0x3bcd59['type'])return;const {data:_0x1d890b}=_0x3bcd59;if(null!=_0x1d890b){if('fontSize'==_0x1d890b['commandName']){const _0x48f6bb=_0x1d890b['commandParams'][0x0]['value'];if(_0x48f6bb){const _0x521caa=_0x1d6d42(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe6c120=>_0xe6c120['model']==_0x48f6bb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x553679,'*Set\x20font\x20size:*\x20%0',_0x521caa)};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d890b['commandName']){const _0x403955=_0x1d890b['commandParams'][0x0]['value'];return _0x403955?{'type':'format','content':o(_0x553679,'*Set\x20font\x20family:*\x20%0',_0x403955)}:{'type':'format','content':o(_0x553679,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d890b['commandName']){const _0x91bfcd=_0x1d890b['commandParams'][0x0]['value'];if(_0x91bfcd){const _0x4b0585=_0x2f7d63(this['editor']['config']['get']('fontColor.colors'))['find'](_0x216c0c=>_0x216c0c['model']==_0x91bfcd);let _0xe7f8cb=_0x91bfcd,_0x1fed99='';return _0x4b0585&&(_0xe7f8cb=_0x4b0585['label'],_0x1fed99=_0x1d6d42(_0xe7f8cb)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20color:*\x20%0',_0x1fed99)['trim'](),'color':{'value':_0x91bfcd,'title':_0x1fed99||_0xe7f8cb}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d890b['commandName']){const _0x11ef99=_0x1d890b['commandParams'][0x0]['value'];if(_0x11ef99){const _0x545304=_0x2f7d63(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x18e07f=>_0x18e07f['model']==_0x11ef99);let _0x2ffbcd=_0x11ef99,_0x15f6eb='';return _0x545304&&(_0x2ffbcd=_0x545304['label'],_0x15f6eb=_0x1d6d42(_0x2ffbcd)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20background\x20color:*\x20%0',_0x15f6eb)['trim'](),'color':{'value':_0x11ef99,'title':_0x15f6eb||_0x2ffbcd}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x58a0bc{['afterInit'](){const _0xe7fe86=this['editor'],_0x1e0e9d=_0xe7fe86['plugins']['get']('TrackChangesEditing'),_0x4a92bf=_0xe7fe86['commands']['get']('copyFormat'),_0x3adece=_0xe7fe86['commands']['get']('pasteFormat');_0x4a92bf&&_0x3adece&&(_0x1e0e9d['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e0e9d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x269320=this['editor'],_0x29606f=_0x269320['locale'];_0x269320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538f43=>{if('formatBlock'!=_0x538f43['type']&&'formatInline'!=_0x538f43['type'])return;const {data:_0x5ae346}=_0x538f43;if(_0x5ae346&&'pasteFormat'===_0x5ae346['commandName']){const _0x29caed=[],_0x5df0c0=_0x5ae346['commandParams'][0x0];for(const [_0x284da6,_0x2689fb]of Object['entries'](_0x5df0c0))_0x29caed['push'](so(_0x269320,_0x284da6,_0x2689fb));return _0x29caed['length']?{'type':'format','content':o(_0x29606f,'*Set\x20format\x20to:*\x20%0',_0x29caed['join'](',\x20'))}:{'type':'format','content':o(_0x29606f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59889a,_0x32412c,_0x269df5){const _0x4cdf06=_0x59889a['locale']['t'],_0x3b8e54=_0x32412c['split'](/(?=[A-Z])/)['join']('\x20'),_0x23d0ee=_0x4cdf06(_0x3b8e54['charAt'](0x0)['toUpperCase']()+_0x3b8e54['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x269df5)return _0x23d0ee;if('fontColor'===_0x32412c||'fontBackgroundColor'===_0x32412c){const _0x2c2ce3=_0x2f7d63(_0x59889a['config']['get']('fontColor.colors'))['find'](_0x355b9c=>_0x355b9c['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x2c2ce3?_0x4cdf06(_0x2c2ce3['label'])['toLowerCase']():_0x269df5)+')';}if('fontSize'===_0x32412c&&isNaN(parseFloat(_0x269df5))){const _0x5f5b11=_0x59889a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59889a['config']['get']('fontSize.options'))['find'](_0x495ccc=>_0x495ccc['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x5f5b11?_0x4cdf06(_0x5f5b11['title'])['toLowerCase']():_0x269df5)+')';}return _0x23d0ee+'\x20('+_0x269df5+')';}class tt extends _0x58a0bc{['_headingOptions'];['afterInit'](){const _0x31e1e4=this['editor'];if(!_0x31e1e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31e1e4['config']['get']('heading.options');const _0x2812f4=_0x31e1e4['locale'],_0x74b517=_0x31e1e4['plugins']['get']('TrackChangesEditing');_0x74b517['enableDefaultAttributesIntegration']('heading');for(const _0x145bb9 of this['_headingOptions'])'paragraph'!=_0x145bb9['model']&&_0x74b517['descriptionFactory']['registerElementLabel'](_0x145bb9['model'],_0x45ceb0=>{const _0x52778b=this['_getHeadingLevel'](_0x145bb9['model']);return null!==_0x52778b?_0x13ada8(_0x45ceb0,_0x52778b):_0xc03af3(_0x45ceb0,_0x145bb9['title']);});function _0x13ada8(_0x5dd479,_0x3bbacc){return o(_0x2812f4,'ELEMENT_HEADING',[_0x5dd479,_0x3bbacc]);}function _0xc03af3(_0x1cafb5,_0x507f20){return o(_0x2812f4,'ELEMENT_HEADING_CUSTOM',[_0x1cafb5,_0x507f20]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36406f=this['editor'],_0x5142a3=_0x36406f['locale'];function _0x5255b7(_0x3d03af,_0x1219ec){return o(_0x5142a3,'ELEMENT_HEADING_CUSTOM',[_0x3d03af,_0x1219ec]);}_0x36406f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa8af41=>{if('formatBlock'!=_0xa8af41['type'])return;const {data:_0x561d88}=_0xa8af41;if(_0x561d88&&'heading'==_0x561d88['commandName']){const _0x4fcf6d=_0x561d88['commandParams'][0x0]['value'],_0x56e2cb=this['_getHeadingLevel'](_0x4fcf6d);if(null!==_0x56e2cb)return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',(_0x6818ca=0x1,_0x16ba9d=_0x56e2cb,o(_0x5142a3,'ELEMENT_HEADING',[_0x6818ca,_0x16ba9d])))};const _0x121bbc=this['_headingOptions']['find'](_0x4df3af=>_0x4df3af['model']===_0x4fcf6d)['title'];return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',_0x5255b7(0x1,_0x121bbc))};}var _0x6818ca,_0x16ba9d;});}['_getHeadingLevel'](_0x2ebf45){const _0x4ab606=_0x2ebf45['match'](/^heading(\d+)/);if(_0x4ab606)return _0x4ab606[0x1];const _0x16501e=this['_headingOptions']?.['find'](_0x3661c6=>_0x3661c6['model']==_0x2ebf45);if(_0x16501e&&_0x16501e['view']){const _0xdc5d7d=_0x16501e['view'],_0x5d6db5=(_0xdc5d7d['name']??_0xdc5d7d)['match'](/^h(\d+)/);if(_0x5d6db5)return _0x5d6db5[0x1];}return null;}}class et extends _0x58a0bc{['afterInit'](){const _0x4daeb3=this['editor'];if(!_0x4daeb3['plugins']['has']('HighlightEditing'))return;const _0x23ce56=_0x4daeb3['plugins']['get']('TrackChangesEditing'),_0x5542cd=_0x4daeb3['locale'];_0x23ce56['enableDefaultAttributesIntegration']('highlight'),_0x23ce56['registerInlineAttribute']('highlight'),_0x23ce56['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5542cd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3670e4=this['editor'],_0x499564=_0x3670e4['locale'];_0x3670e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x525c4f=>{if('formatInline'!=_0x525c4f['type'])return;const {data:_0x238e23}=_0x525c4f;if(_0x238e23&&'highlight'==_0x238e23['commandName']){const _0x5624af=_0x499564['t'],_0x4dfe3e=_0x238e23['commandParams'][0x0]['value'];if(_0x4dfe3e){const _0x400a2a=_0x3670e4['config']['get']('highlight.options')['find'](_0x465198=>_0x465198['model']==_0x4dfe3e),_0x41819a=_0x5624af(_0x400a2a['title'])['toLowerCase']();return{'type':'format','content':o(_0x499564,'*Set\x20highlight:*\x20%0',_0x41819a),'color':{'value':_0x400a2a['color'],'title':_0x400a2a['title']}};}return{'type':'format','content':o(_0x499564,'*Remove\x20highlight*',o(_0x499564,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x58a0bc{['afterInit'](){const _0x333570=this['editor'];if(!_0x333570['plugins']['has']('HorizontalLineEditing'))return;_0x333570['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d083d=_0x333570['plugins']['get']('TrackChangesEditing'),_0x4d670a=_0x333570['locale'];_0x2d083d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x550365=>o(_0x4d670a,'ELEMENT_HORIZONTAL_LINE',_0x550365)),_0x333570['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2563a7,{writer:_0x4a5d0c,options:_0x58f088})=>{if(!_0x58f088['showSuggestionHighlights'])return null;const _0x5c48d8=_0x4a5d0c['createContainerElement']('div'),_0x580899=_0x4a5d0c['createEmptyElement']('hr');return _0x4a5d0c['addClass']('ck-horizontal-line',_0x5c48d8),_0x4a5d0c['insert'](_0x4a5d0c['createPositionAt'](_0x5c48d8,0x0),_0x580899),_0x5c48d8;},'converterPriority':'high'});}}class st extends _0x58a0bc{['afterInit'](){const _0x3d94c5=this['editor'];if(!_0x3d94c5['plugins']['has']('HtmlEmbed'))return;const _0x50be0f=_0x3d94c5['plugins']['get']('TrackChangesEditing'),_0x39fa3e=_0x3d94c5['locale'];_0x50be0f['descriptionFactory']['registerElementLabel']('rawHtml',_0x15317c=>o(_0x39fa3e,'ELEMENT_HTML_EMBED',_0x15317c)),_0x50be0f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50be0f['registerBlockAttribute']('value'),_0x50be0f['descriptionFactory']['registerDescriptionCallback'](_0x17079c=>{if('attribute'!=_0x17079c['type'])return;const {data:_0x43fcc4}=_0x17079c;if(_0x43fcc4&&'value'==_0x43fcc4['key']&&_0x17079c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18bd57=o(_0x39fa3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x39fa3e,'*Change\x20%0\x20content*',_0x18bd57)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3031e2=this['editor'],_0x462be7=_0x3031e2['locale'];_0x3031e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a727=>{if('formatBlock'!=_0x34a727['type'])return;const {data:_0x32d909}=_0x34a727;if(_0x32d909&&'htmlEmbed'==_0x32d909['commandName']){const _0x3aa3f0=o(_0x462be7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x462be7,'*Change\x20%0\x20content*',_0x3aa3f0)};}});}}class nt extends _0x58a0bc{['afterInit'](){const _0xd55b62=this['editor'];if(!_0xd55b62['plugins']['has']('ImageEditing'))return;const _0x3e7d79=_0xd55b62['plugins']['get']('TrackChangesEditing'),_0x53961f=_0xd55b62['plugins']['get']('ImageUtils'),_0x236b99=_0xd55b62['locale'];_0x3e7d79['enableCommand']('insertImage'),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageBlock',_0x542940=>o(_0x236b99,'ELEMENT_IMAGE',_0x542940)),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageInline',_0x346142=>o(_0x236b99,'ELEMENT_INLINE_IMAGE',_0x346142)),_0x3e7d79['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x236b99,'ELEMENT_CAPTION')),_0xd55b62['plugins']['has']('ImageUploadEditing')&&_0x3e7d79['enableCommand']('uploadImage'),_0xd55b62['plugins']['has']('ImageBlockEditing')&&_0xd55b62['plugins']['has']('ImageInlineEditing')&&(_0x3e7d79['enableCommand']('imageTypeInline',(_0x383915,_0x237365)=>{const _0x31c52c=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']);_0xd55b62['model']['change'](()=>{_0x3e7d79['markBlockFormat'](_0x31c52c,{'commandName':'imageTypeInline','commandParams':[_0x237365]},[],'convertBlockImageToInline');});}),_0x3e7d79['enableCommand']('imageTypeBlock',(_0x1e000a,_0x445b24)=>{_0xd55b62['model']['change'](_0x3d97fd=>{let _0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x47de15=_0x3a1667['fromPosition'](_0x56796e['start'],'toPrevious'),_0x10e0f1=_0x3a1667['fromPosition'](_0x56796e['end'],'toNext');_0x3e7d79['forceDefaultExecution'](()=>_0x1e000a(_0x445b24)),_0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x52d098=_0x3d97fd['createRange'](_0x47de15,_0x10e0f1);_0x47de15['detach'](),_0x10e0f1['detach'](),_0x3e7d79['markBlockFormat'](_0x17befb,{'commandName':'imageTypeInline','commandParams':[_0x445b24]},[],'convertInlineImageToBlock'),_0x52d098['start']['isBefore'](_0x56796e['start'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x52d098['start'],_0x56796e['start']),'convertInlineImageToBlock'),_0x56796e['end']['isBefore'](_0x52d098['end'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x56796e['end'],_0x52d098['end']),'convertInlineImageToBlock');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3938ad])=>{const _0x391cfd=_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x54c389=_0x3938ad['start'],_0xfb69db=_0x3938ad['end'];const _0x50ed7f=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0x54c389,'backward'),_0x4c8644=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0xfb69db,'forward');_0x50ed7f['isCollapsed']&&(_0x54c389=_0x50ed7f['start']),_0x4c8644['isCollapsed']&&(_0xfb69db=_0x4c8644['end']),_0x391cfd([_0xd55b62['model']['createRange'](_0x54c389,_0xfb69db)]);}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x781ec3),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x781ec3)),_0xd55b62['plugins']['has']('ImageCaptionEditing')&&(_0x3e7d79['enableCommand']('toggleImageCaption',(_0x267f31,_0x48bfb4)=>{const _0x500750=_0xd55b62['plugins']['get']('ImageCaptionUtils');let _0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0);_0xd55b62['model']['change'](()=>{if(_0x2b14c5)return void _0x3e7d79['markDeletion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5));const _0x4d64ce=_0x53961f['isBlockImage'](_0x335cd0);_0x267f31(_0x48bfb4),_0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0),_0x3e7d79['markInsertion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5),_0x4d64ce?null:'imageCaption');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x781ec3));const _0xa0e3ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fc53f(_0xfbd7c0,_0x1a4961){const _0x25eb54=_0xa0e3ea['findIndex'](({type:_0x126624,subType:_0xd88d87})=>_0xfbd7c0['type']==_0x126624&&_0xfbd7c0['subType']==_0xd88d87),_0x266271=_0xa0e3ea['findIndex'](({type:_0x2fe0b6,subType:_0x55954e})=>_0x1a4961['type']==_0x2fe0b6&&_0x1a4961['subType']==_0x55954e);if(_0x25eb54<0x0||_0x266271<0x0)return!0x1;const _0x59db56=_0xfbd7c0['getFirstRange'](),_0x4c670a=_0x1a4961['getFirstRange']();if((0x0==_0x25eb54||0x1==_0x25eb54)&&0x2==_0x266271&&_0x59db56['isIntersecting'](_0x4c670a))return!0x0;if(0x2==_0x25eb54&&0x3==_0x266271){const _0x2b9b48=_0x3e7d79['_findSuggestions'](_0x59db56,'insertion')['filter'](({suggestion:_0x4151ce,meta:_0x1c18c4})=>_0x1c18c4['isOwn']&&'convertInlineImageToBlock'==_0x4151ce['subType']);if(_0x2b9b48['length']>0x1&&_0x4c670a['end']['isEqual'](_0x59db56['start']))return!0x0;if(0x1==_0x2b9b48['length']&&(_0x59db56['start']['isEqual'](_0x4c670a['end'])||_0x59db56['end']['isEqual'](_0x4c670a['start'])))return!0x0;}if(0x3==_0x25eb54&&0x3==_0x266271&&_0x59db56['start']['isBefore'](_0x4c670a['start'])){const _0x4ffd6c=_0x59db56['end']['nodeAfter'],_0x22b90a=_0x4c670a['start']['nodeBefore'];return _0x53961f['isBlockImage'](_0x4ffd6c)&&_0x4ffd6c===_0x22b90a;}return!0x1;}function _0x781ec3(_0x5eea4d,_0x53a1a5){return _0x2fc53f(_0x5eea4d,_0x53a1a5)?[_0x5eea4d,_0x53a1a5]:_0x2fc53f(_0x53a1a5,_0x5eea4d)?[_0x53a1a5,_0x5eea4d]:null;}_0xd55b62['plugins']['has']('ImageResize')&&(_0x3e7d79['enableDefaultAttributesIntegration']('resizeImage'),_0x3e7d79['registerBlockAttribute']('resizedWidth'),_0x3e7d79['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x236b99,'FORMAT_IMAGE_SIZE'))),_0xd55b62['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3e7d79['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e7d79['registerBlockAttribute']('alt')),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x36e51c=>{if(!!_0xa0e3ea['find'](({type:_0x6191ac,subType:_0x2161ba})=>_0x36e51c['type']==_0x6191ac&&_0x36e51c['subType']==_0x2161ba))return _0x36e51c['previous']?{}:void 0x0;}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x233ff5=>{if('insertion'==_0x233ff5['type']||'deletion'==_0x233ff5['type']){const _0x35c4b6=_0x233ff5['getContainedElement']();if(_0x35c4b6&&_0x35c4b6['is']('element','caption'))return{'type':'insertion'==_0x233ff5['type']?'addObject':'removeObject','element':_0x35c4b6,'quantity':0x1};}}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x3c60e0=>'formatBlock'==_0x3c60e0['type']&&'convertInlineImageToBlock'==_0x3c60e0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c60e0['type']&&'convertBlockImageToInline'==_0x3c60e0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x57d405=>{if('attribute'!=_0x57d405['type'])return;const {data:_0x22484f}=_0x57d405;if(!_0x22484f||'alt'!=_0x22484f['key'])return;const _0x3324f8=_0x22484f['newValue'];return _0x3324f8?{'type':'format','content':o(_0x236b99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3324f8+'\x22')}:{'type':'format','content':o(_0x236b99,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521549=this['editor'],_0x21bec5=_0x521549['locale'];_0x521549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a075b=>{if('formatBlock'!=_0x2a075b['type']&&'formatInline'!=_0x2a075b['type'])return;const {data:_0x3ddf6b}=_0x2a075b;if(_0x3ddf6b){if('imageTextAlternative'==_0x3ddf6b['commandName']){const _0x61a815=_0x3ddf6b['commandParams'][0x0]['newValue'];return _0x61a815?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x61a815+'\x22')}:{'type':'format','content':o(_0x21bec5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ddf6b['commandName']){const _0x3365ab=_0x3ddf6b['commandParams'][0x0]['width'];return _0x3365ab?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20width:*\x20%0',_0x3365ab)}:{'type':'format','content':o(_0x21bec5,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x334a0f=this['editor']['locale'],_0x553a07=this['editor']['plugins']['get']('TrackChangesEditing');_0x553a07['enableDefaultAttributesIntegration']('replaceImageSource'),_0x553a07['registerBlockAttribute']('src'),_0x553a07['descriptionFactory']['registerDescriptionCallback'](_0x11ad29=>{if('attribute'!=_0x11ad29['type'])return;const {data:_0xade7d6}=_0x11ad29;return _0xade7d6&&'src'==_0xade7d6['key']?_0xade7d6['newValue']&&_0xade7d6['oldValue']?{'type':'format','content':o(_0x334a0f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x813352=this['editor']['plugins']['get']('TrackChangesEditing');_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac94bd=this['editor'],_0x16c28b=_0xac94bd['locale'];_0xac94bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dff68=>{if('formatBlock'!=_0x3dff68['type']&&'formatInline'!=_0x3dff68['type'])return;const {data:_0x51e6cf}=_0x3dff68;if(!_0x51e6cf||'replaceImageSource'!=_0x51e6cf['commandName'])return;return{'type':'format','content':o(_0x16c28b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x58a0bc{['afterInit'](){const _0x1746f7=this['editor'];if(!_0x1746f7['plugins']['has']('ImageStyleEditing'))return;const _0xfe5a7f=_0x1746f7['plugins']['get']('TrackChangesEditing'),_0x5a0edc=_0x1746f7['plugins']['get']('ImageUtils'),_0x110f41={};_0xfe5a7f['enableCommand']('imageStyle',(_0x238baa,_0x4afe7e)=>{const _0x26bc1d=_0x1746f7['plugins']['get']('Users')['me'],_0x1a3fb2=_0x1746f7['commands']['get']('imageStyle');let _0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x530000=_0x1a3fb2['value'];if(_0x530000==_0x4afe7e['value'])return;const _0x6594c5={'commandName':'imageStyle','commandParams':[_0x4afe7e],'formatGroupId':_0x546e08()};_0x1746f7['model']['change'](()=>{if(_0xfe5a7f['getSuggestions']()['filter'](_0x27664a=>_0x27664a['isInContent']&&_0x26bc1d==_0x27664a['author']&&('formatBlock'==_0x27664a['type']||'formatInline'==_0x27664a['type'])&&('imageStylePreApply'==_0x27664a['subType']||'imageStylePostApply'==_0x27664a['subType'])&&_0x27664a['getFirstRange']()['isEqual'](_0x478ae3))['forEach'](_0x1fb40e=>_0xfe5a7f['discardSuggestion'](_0x1fb40e['head'])),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x1a3fb2['refresh'](),_0x1746f7['commands']['get']('imageTypeInline')['refresh'](),_0x1746f7['commands']['get']('imageTypeBlock')['refresh'](),_0x530000=_0x1a3fb2['value'],_0x530000!=_0x4afe7e['value'])return _0x5a0edc['isInlineImage'](_0x4835fb)&&_0x1a3fb2['shouldConvertImageType'](_0x4afe7e['value'],_0x4835fb)?(_0x238baa({..._0x4afe7e,'setImageSizes':!0x1}),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),void _0xfe5a7f['markBlockFormat'](_0x4835fb,{..._0x6594c5,'commandReversedParams':[{'value':_0x530000||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a0edc['isBlockImage'](_0x4835fb)?_0xfe5a7f['markBlockFormat'](_0x4835fb,_0x6594c5,[],'imageStylePostApply'):_0xfe5a7f['markInlineFormat'](_0x478ae3,_0x6594c5,'imageStylePostApply'));});});for(const _0x1556aa of _0x1746f7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x110f41[_0x1556aa['name']]=_0x1556aa['title']['toLowerCase']();_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5236e1])=>{_0x5a0edc['setImageNaturalSizeAttributes'](_0x5236e1['getContainedElement']());}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xaebc9,_0x521093)=>{_0xfe5a7f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xaebc9,{'commandName':_0x521093['commandName'],'commandParams':_0x521093['commandReversedParams']});}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x386d19,_0x2fd5c7){if(_0x329237(_0x386d19,_0x2fd5c7))return[_0x386d19,_0x2fd5c7];if(_0x329237(_0x2fd5c7,_0x386d19))return[_0x2fd5c7,_0x386d19];return null;});const _0xe952e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x329237(_0x484297,_0x50491d){const _0xb6f312=_0xe952e4['findIndex'](({type:_0x866077,subType:_0x21868a})=>_0x484297['type']==_0x866077&&_0x484297['subType']==_0x21868a),_0x4298fb=_0xe952e4['findIndex'](({type:_0x1eb9a8,subType:_0x1c1903})=>_0x50491d['type']==_0x1eb9a8&&_0x50491d['subType']==_0x1c1903);if(_0xb6f312<0x0||_0x4298fb<0x0)return!0x1;const _0x3b85af=_0x484297['getFirstRange'](),_0x585e80=_0x50491d['getFirstRange']();if((0x0==_0xb6f312||0x1==_0xb6f312)&&0x2==_0x4298fb&&_0x3b85af['isIntersecting'](_0x585e80))return!0x0;if(0x2==_0xb6f312&&0x3==_0x4298fb){const _0x15e7e8=_0xfe5a7f['_findSuggestions'](_0x3b85af,'insertion')['filter'](({suggestion:_0xd4e47a,meta:_0x40bb77})=>_0x40bb77['isOwn']&&'convertInlineImageToBlock'==_0xd4e47a['subType']);if(_0x15e7e8['length']>0x1&&_0x585e80['end']['isEqual'](_0x3b85af['start']))return!0x0;if(0x1==_0x15e7e8['length']&&(_0x3b85af['start']['isEqual'](_0x585e80['end'])||_0x3b85af['end']['isEqual'](_0x585e80['start'])))return!0x0;}if(0x3==_0xb6f312&&0x3==_0x4298fb&&_0x3b85af['start']['isBefore'](_0x585e80['start'])){const _0xe04d5c=_0x3b85af['end']['nodeAfter'],_0x44adf2=_0x585e80['start']['nodeBefore'];return _0x5a0edc['isBlockImage'](_0xe04d5c)&&_0xe04d5c===_0x44adf2;}return!0x1;}_0x1746f7['model']['document']['registerPostFixer'](()=>{let _0x146cc5=!0x1;const _0x58d727=Array['from'](_0x1746f7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x285171,data:_0x50e345}of _0x58d727){const {group:_0x1a3f81,type:_0x13b3ad,subType:_0x505cef,id:_0x23c4c1}=_0xfe5a7f['_splitMarkerName'](_0x285171);if('suggestion'==_0x1a3f81&&_0xfe5a7f['hasSuggestion'](_0x23c4c1)){if('formatBlock'==_0x13b3ad&&('imageStylePreApply'==_0x505cef||'imageStylePostApply'==_0x505cef)){const _0x1cc085=_0xfe5a7f['getSuggestion'](_0x23c4c1);if(_0x50e345['newRange']){const _0x30783a=_0x1cc085['getFirstRange']()['getContainedElement']();if(_0x5a0edc['isBlockImage'](_0x30783a))continue;_0xfe5a7f['discardSuggestion'](_0x1cc085),_0x146cc5=!0x0;}}if('insertion'==_0x13b3ad&&'imageCaption'==_0x505cef&&!_0x50e345['newRange']){const _0x3b1ea8=_0xfe5a7f['getSuggestion'](_0x23c4c1);_0x3b1ea8['next']&&_0x3b1ea8['next']['isInContent']&&(_0xfe5a7f['discardSuggestion'](_0x3b1ea8['next']),_0x146cc5=!0x0);}}}return _0x146cc5;}),this['_registerLegacyDescription'](_0x110f41);}['_registerLegacyDescription'](_0x9258c9){const _0x1e5dc3=this['editor'],_0x53d4b7=_0x1e5dc3['locale'];_0x1e5dc3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0a66=>{if('formatBlock'!=_0x2a0a66['type']&&'formatInline'!=_0x2a0a66['type'])return;const {data:_0x4fe6c4}=_0x2a0a66;if(!_0x4fe6c4||'imageStyle'!=_0x4fe6c4['commandName'])return;const _0x2ac869=_0x4fe6c4['commandParams'][0x0]['value'];return _0x58845a('side'===_0x2ac869?o(_0x53d4b7,'FORMAT_SIDE_IMAGE'):_0x9258c9[_0x2ac869]||_0x2ac869);function _0x58845a(_0x5b9723){return{'type':'format','content':o(_0x53d4b7,'*Format:*\x20%0',_0x5b9723)};}});}}class at extends _0x58a0bc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8a27fb){super(_0x8a27fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58f5f1=this['editor'],_0x5a4233=_0x58f5f1['commands']['get']('importWord'),_0x429a4d=_0x58f5f1['commands']['get']('trackChanges');_0x5a4233&&(_0x5a4233['on']('execute',(_0x17bf5a,[,_0x2212be])=>{this['_trackChangesValueDuringImport']=_0x429a4d['value'],_0x2212be['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a4233,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a4233,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x429a4d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58f5f1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xef55cc,_0x199406){const {suggestions:_0x468e6e}=_0x199406,_0x5b3394=this['editor']['commands']['get']('trackChanges'),_0x3a4ded=_0x5b3394['value'];this['_trackChangesValueDuringImport']!==_0x3a4ded&&(_0x5b3394['execute'](),this['_trackChangesExecuted']=!0x0),_0x468e6e&&_0x468e6e['forEach'](({id:_0x2f765c,type:_0x26aebc,author:_0x12ba1c,created_at:_0x4ad53e})=>{const _0x501aa8={'id':_0x2f765c,'type':_0x26aebc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x12ba1c,'createdAt':_0x4ad53e?new Date(_0x4ad53e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x501aa8);});}}class ct extends _0x58a0bc{['afterInit'](){const _0xb17b20=this['editor'],_0x338316=_0xb17b20['plugins']['get']('TrackChangesEditing');if(_0xb17b20['plugins']['has']('IndentEditing')&&(_0x338316['enableCommand']('indent'),_0x338316['enableCommand']('outdent')),_0xb17b20['plugins']['has']('IndentBlock')){for(const _0x2b7b07 of['indentBlock','outdentBlock'])_0x338316['enableDefaultAttributesIntegration'](_0x2b7b07);}const _0x34ff7b=_0xb17b20['locale'];_0x338316['registerBlockAttribute']('blockIndent'),_0x338316['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x34ff7b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5647fc=this['editor'],_0x11bcec=_0x5647fc['locale'],_0x28e3f5=_0x5647fc['plugins']['get']('TrackChangesEditing');_0x28e3f5['descriptionFactory']['registerDescriptionCallback'](_0x34c79a=>{if('formatBlock'!=_0x34c79a['type'])return;const {data:_0x59537f}=_0x34c79a;if(!_0x59537f)return;if('indentBlock'!=_0x59537f['commandName']&&'outdentBlock'!=_0x59537f['commandName'])return;const _0x184176=_0x34c79a['getItems']()[0x0],_0x77fe51=_0x28e3f5['descriptionFactory']['getItemLabel'](_0x184176);return'indentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Indent:*\x20%0',_0x77fe51)}:'outdentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Outdent:*\x20%0',_0x77fe51)}:void 0x0;});}}class ut extends _0x58a0bc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x58a0bc{['afterInit'](){const _0x12de99=this['editor'];if(!_0x12de99['plugins']['has']('LinkEditing'))return;const _0x329297=_0x12de99['plugins']['get']('TrackChangesEditing'),_0x4386e6=_0x12de99['commands']['get']('link');_0x329297['enableDefaultAttributesIntegration']('link'),_0x329297['enableDefaultAttributesIntegration']('unlink'),_0x329297['registerInlineAttribute']('linkHref');for(const _0x51e350 of _0x4386e6['manualDecorators'])_0x329297['registerInlineAttribute'](_0x51e350['id']),_0x329297['descriptionFactory']['registerAttributeLabel'](_0x51e350['id'],'link\x20('+_0x51e350['label']['toLowerCase']()+')');_0x329297['descriptionFactory']['registerDescriptionCallback'](_0x3b1f61=>{if('attribute'!=_0x3b1f61['type'])return;const {data:_0x209a63}=_0x3b1f61;if(!_0x209a63||'linkHref'!=_0x209a63['key'])return;const _0x4a5be3=_0x209a63['newValue'],_0x5c8b83=_0x12de99['locale'];return{'type':'format','content':null==_0x4a5be3?o(_0x5c8b83,'*Remove\x20link*'):o(_0x5c8b83,'*Set\x20link:*\x20%0','\x22'+_0x4a5be3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19694a=this['editor'],_0x2c5fdd=_0x19694a['locale'];_0x19694a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f168=>{if('formatInline'!=_0x38f168['type'])return;const {data:_0x123d4b}=_0x38f168;if(_0x123d4b){if('link'==_0x123d4b['commandName']){const _0xcb2c80=_0x123d4b['commandParams'][0x0];return{'type':'format','content':o(_0x2c5fdd,'*Set\x20link:*\x20%0','\x22'+_0xcb2c80+'\x22')};}return'unlink'==_0x123d4b['commandName']?{'type':'format','content':o(_0x2c5fdd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x58a0bc{['afterInit'](){const _0xc0ea6a=this['editor'],_0xf4601d=_0xc0ea6a['locale'];if(!_0xc0ea6a['plugins']['has']('LegacyListEditing'))return;const _0x542059=_0xc0ea6a['plugins']['get']('TrackChangesEditing'),_0x6a8c71=_0xc0ea6a['plugins']['has']('LegacyTodoListEditing');function _0x19c954(_0x3c9f7f){return()=>{const _0x30a7fd=_0xc0ea6a['model']['document']['selection'],_0x5d5907=_0xc0ea6a['commands']['get'](_0x3c9f7f);if(_0x5d5907['value'])return void _0xc0ea6a['execute']('paragraph',{});const _0x2f6cbd=_0x3c9f7f['slice'](0x0,-0x4),_0x421656=function(_0x58a2fc,_0x90ae6d,_0x515ff2){let _0x3c9c83=Array['from'](_0x58a2fc)['filter'](_0x4a313e=>function(_0x2a1036,_0x51322f){return _0x51322f['checkChild'](_0x2a1036['parent'],'listItem')&&!_0x51322f['isObject'](_0x2a1036);}(_0x4a313e,_0x515ff2));_0x3c9c83=_0x3c9c83['filter'](_0x10e1d6=>!_0x10e1d6['is']('element','listItem')||_0x10e1d6['getAttribute']('listType')!=_0x90ae6d);const _0x24f132=new Set();for(const _0x414a73 of _0x3c9c83)_0x414a73['is']('element','listItem')?_0x24f132['add'](fe(_0x414a73)):_0x24f132['add'](_0x414a73);return Array['from'](_0x24f132);}(_0x30a7fd['getSelectedBlocks'](),_0x2f6cbd,_0xc0ea6a['model']['schema']);_0xc0ea6a['model']['change'](()=>{for(const _0x578ac5 of _0x421656)_0x542059['markBlockFormat'](_0x578ac5,{'commandName':_0x3c9f7f,'commandParams':[{'forceValue':!_0x5d5907['value']}],'formatGroupId':'blockName'},ue(_0x578ac5));});};}function _0x49ed59(_0x5cbe86){return()=>{const _0x3c7a59=function(_0x506ee2){let _0x3e0257=Array['from'](_0x506ee2);const _0x4f2910=_0x3e0257['findIndex'](_0x2a9ec3=>'listItem'!=_0x2a9ec3['name']);return _0x4f2910>-0x1&&(_0x3e0257=_0x3e0257['slice'](0x0,_0x4f2910)),_0x3e0257;}(_0xc0ea6a['model']['document']['selection']['getSelectedBlocks']()),_0x49751d=_0xc0ea6a['model']['createRange'](_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[0x0],'before'),_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[_0x3c7a59['length']-0x1],'end'));_0xc0ea6a['model']['change'](()=>{_0x542059['markBlockFormat'](_0x49751d,{'commandName':_0x5cbe86,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3aacf4){const _0x196d58=new Set();for(const _0x5f0864 of _0x3aacf4){let _0x1f17c4=_0x5f0864['nextSibling'];for(;_0x1f17c4&&_0x1f17c4['getAttribute']('listIndent')>_0x5f0864['getAttribute']('listIndent');)_0x196d58['add'](_0x1f17c4),_0x1f17c4=_0x1f17c4['nextSibling'];}return Array['from'](_0x196d58);}(_0x3c7a59));});};}_0x542059['enableCommand']('numberedList',_0x19c954('numberedList')),_0x542059['enableCommand']('bulletedList',_0x19c954('bulletedList')),_0x6a8c71&&_0x542059['enableCommand']('todoList',_0x19c954('todoList')),_0x542059['enableCommand']('indentList',_0x49ed59('indentList')),_0x542059['enableCommand']('outdentList',_0x49ed59('outdentList')),_0x6a8c71&&_0x542059['enableCommand']('checkTodoList',()=>{const _0x5476b1=_0xc0ea6a['commands']['get']('checkTodoList'),_0x513d53=Array['from'](_0x5476b1['_selectedElements']);_0x513d53['filter'](_0x15c059=>_0x15c059['getAttribute']('todoListChecked')!=_0x5476b1['value']),_0xc0ea6a['model']['change'](()=>{for(const _0x1097f0 of _0x513d53)_0x542059['markBlockFormat'](_0x1097f0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5476b1['value']}]});});}),_0x542059['descriptionFactory']['registerElementLabel']('listItem',_0x5b33b4=>o(_0xf4601d,'ELEMENT_LIST_ITEM',_0x5b33b4)),_0x542059['descriptionFactory']['registerDescriptionCallback'](_0x34d17e=>{if('formatBlock'!=_0x34d17e['type']&&'formatInline'!=_0x34d17e['type'])return;const {data:_0x5a02ee}=_0x34d17e;if(_0x5a02ee){if('numberedList'==_0x5a02ee['commandName']||'bulletedList'==_0x5a02ee['commandName']||'todoList'==_0x5a02ee['commandName'])switch(_0x5a02ee['commandName']['replace']('List','')){case'bulleted':return _0x32256d(o(_0xf4601d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32256d(o(_0xf4601d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32256d(o(_0xf4601d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Indent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Outdent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a02ee['commandName'])return _0x5a02ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf4601d,'*Check\x20item*')}:{'type':'format','content':o(_0xf4601d,'*Uncheck\x20item*')};}function _0x32256d(_0xa4fa3a){return{'type':'format','content':o(_0xf4601d,'*Change\x20to:*\x20%0',_0xa4fa3a)};}});}}function fe(_0x378d83){const _0x154495=_0x378d83['getAttribute']('listIndent');if(0x0==_0x154495)return _0x378d83;let _0x4e82ef=_0x378d83;for(;_0x378d83['previousSibling']&&_0x378d83['previousSibling']['is']('element','listItem');){const _0x5b6f40=_0x378d83['previousSibling']['getAttribute']('listIndent');if(_0x5b6f40==_0x154495)_0x4e82ef=_0x378d83['previousSibling'];else{if(_0x5b6f40<_0x154495)break;}_0x378d83=_0x378d83['previousSibling'];}return _0x4e82ef;}function ue(_0x2949b1){const _0x398314=[];if(_0x2949b1['is']('element','listItem')&&_0x2949b1['getAttribute']('listIndent')>0x0){let _0x1a84f1=_0x2949b1['nextSibling'];for(;_0x1a84f1&&'listItem'==_0x1a84f1['name']&&_0x1a84f1['getAttribute']('listIndent')==_0x2949b1['getAttribute']('listIndent');)_0x398314['push'](_0x1a84f1),_0x1a84f1=_0x1a84f1['nextSibling'];}return _0x398314;}class W extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1c6da2=this['editor']['config']['get']('list.properties'),_0x504b88=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6da2['styles']&&_0x504b88['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1c6da2['reversed']&&_0x504b88['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1c6da2['startIndex']&&_0x504b88['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x504b88['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x402adf,_0xfd8ba0={}){const _0x3ae3ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247b29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3ae3ba['markMultiRangeBlockFormat'](_0x247b29,{'commandName':'listStyle','commandParams':[{'type':_0xfd8ba0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261f59,_0x2f0906={}){const _0x40fd29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376bde=this['_getSuggestionBlocks'](_0x151575=>_0x151575['is']('element','listItem')&&'numbered'===_0x151575['getAttribute']('listType'));if(_0x376bde['length']<0x1)return;const _0x3aba83=_0x376bde['map'](_0x59f48b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59f48b,'before'),this['editor']['model']['createPositionAt'](_0x59f48b,0x0)));this['editor']['model']['change'](()=>{_0x40fd29['markMultiRangeBlockFormat'](_0x3aba83,{'commandName':'listReversed','commandParams':[{'reversed':_0x2f0906['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35fda2,_0x45e31e={}){const _0x3652a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a1fa=this['_getSuggestionBlocks'](_0x2954f4=>_0x2954f4['is']('element','listItem')&&'numbered'===_0x2954f4['getAttribute']('listType'));if(_0x17a1fa['length']<0x1)return;const _0x4f0e4c=_0x17a1fa['map'](_0x5abe85=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abe85,'before'),this['editor']['model']['createPositionAt'](_0x5abe85,0x0)));this['editor']['model']['change'](()=>{_0x3652a5['markMultiRangeBlockFormat'](_0x4f0e4c,{'commandName':'listStart','commandParams':[{'startIndex':_0x45e31e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xbbc23f){if('formatBlock'!=_0xbbc23f['type']&&'formatInline'!=_0xbbc23f['type'])return;const _0x25c0b1=this['editor']['locale'],{data:_0x23bcc0}=_0xbbc23f;if(!_0x23bcc0)return;let _0x488053,_0x2e7b2e;switch(_0x23bcc0['commandName']){case'listStyle':_0x488053='*Change\x20to:*\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,o(_0x25c0b1,this['_getTranslationKeyForListStyle'](_0x23bcc0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x488053=_0x23bcc0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053)};break;case'listStart':_0x488053='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,_0x23bcc0['commandParams'][0x0]['startIndex'])};}return _0x2e7b2e;}['_getSuggestionBlocksForListStyle'](){const _0x1da697=this['editor']['plugins']['get']('LegacyListUtils');let _0x31a409=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31a409[0x0]?.['is']('element','listItem')&&_0x31a409['unshift'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31a409[_0x31a409['length']-0x1]?.['is']('element','listItem')&&_0x31a409['push'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31a409=[...new Set(_0x31a409)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31a409=_0x31a409['filter'](_0x1fb1f4=>_0x1fb1f4['is']('element','listItem'))),_0x31a409;}['_getSuggestionBlocks'](_0x219b16){const _0x1c4750=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f2c49=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x219b16)['map'](_0x77a183=>{const _0x4f06b0=this['editor']['model']['createPositionAt'](_0x77a183,0x0);return[..._0x1c4750['getSiblingNodes'](_0x4f06b0,'backward'),..._0x1c4750['getSiblingNodes'](_0x4f06b0,'forward')];})['flat']();return _0x5f2c49=[...new Set(_0x5f2c49)],_0x5f2c49;}['_getTranslationKeyForListStyle'](_0x5773de){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5773de)||'default')['toUpperCase']()+'_LIST_'+_0x5773de['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x58a0bc{['afterInit'](){const _0x401716=this['editor'];if(!_0x401716['plugins']['has']('MediaEmbedEditing'))return;const _0xaf250a=_0x401716['plugins']['get']('TrackChangesEditing'),_0xcb7402=_0x401716['locale'];_0xaf250a['enableCommand']('mediaEmbed'),_0xaf250a['descriptionFactory']['registerElementLabel']('media',_0x2deb6b=>o(_0xcb7402,'ELEMENT_MEDIA',_0x2deb6b)),_0x401716['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x14bf00,{writer:_0x43725c,options:_0x32fba9})=>{if(_0x32fba9['showSuggestionHighlights'])return _0x43725c['createEmptyElement']('div');},'converterPriority':'high'}),_0x401716['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3bd1d7,_0x308a70,_0xe54e39)=>{_0xe54e39['options']['showSuggestionHighlights']&&_0x3bd1d7['stop']();},{'priority':'high'});}}class mt extends _0x58a0bc{['afterInit'](){const _0x27bb8a=this['editor'];_0x27bb8a['plugins']['has']('MentionEditing')&&_0x27bb8a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x58a0bc{['afterInit'](){const _0x591d4a=this['editor'];if(!_0x591d4a['plugins']['has']('MergeFieldsEditing'))return;_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x26ef07=_0x591d4a['plugins']['get']('TrackChangesEditing'),_0x133461=_0x591d4a['locale'];_0x26ef07['descriptionFactory']['registerElementLabel']('mergeField',_0x24b161=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x24b161)),_0x26ef07['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29301a=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x29301a)),_0x26ef07['descriptionFactory']['registerDescriptionCallback'](_0x39ea15=>{if('insertion'!=_0x39ea15['type']&&'deletion'!=_0x39ea15['type'])return;const _0x31040b=_0x39ea15['getContainedElement']();if(null==_0x31040b)return;if(!_0x31040b['is']('element','mergeField')&&!_0x31040b['is']('element','mergeFieldBlock'))return;const _0x35c289=_0x591d4a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x31040b['getAttribute']('id'));return'insertion'==_0x39ea15['type']?{'type':'insertion','content':o(_0x133461,'*Insert:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x133461,'*Remove:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x58a0bc{['afterInit'](){const _0x336ffa=this['editor'],_0x187544=_0x336ffa['plugins']['get']('TrackChangesEditing');_0x336ffa['plugins']['has']('MultiLevelList')&&(_0x187544['enableDefaultAttributesIntegration']('multiLevelList'),_0x187544['registerBlockAttribute']('listMarkerStyle'),_0x187544['descriptionFactory']['registerDescriptionCallback'](_0x232d2f=>this['handleDescriptions'](_0x232d2f)));}['handleDescriptions'](_0x585620){const _0x15642c=this['editor']['locale'],{data:_0x3fa22d}=_0x585620,_0x2dd72f={'type':'format','content':''};if(_0x3fa22d&&'listMarkerStyle'==_0x3fa22d['key']){if(!_0x3fa22d['oldValue'])return{'type':'format','content':o(_0x15642c,'*Set\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['newValue']+')'};if(!_0x3fa22d['newValue']){let _0x1ffb89=_0x585620['head'];for(;_0x1ffb89;){if(_0x1ffb89['data']&&'listType'==_0x1ffb89['data']['key']&&_0x1ffb89['data']['newValue'])return _0x2dd72f;_0x1ffb89=_0x1ffb89['next'];}return{'type':'format','content':o(_0x15642c,'*Remove\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['oldValue']+')'};}}}}class kt extends _0x58a0bc{['afterInit'](){const _0x27e9b1=this['editor'];if(!_0x27e9b1['plugins']['has']('PageBreakEditing'))return;_0x27e9b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d1b81=_0x27e9b1['plugins']['get']('TrackChangesEditing'),_0xe40d53=_0x27e9b1['locale'];_0x3d1b81['descriptionFactory']['registerElementLabel']('pageBreak',_0x389a66=>o(_0xe40d53,'ELEMENT_PAGE_BREAK',_0x389a66));}}class bt extends _0x58a0bc{['afterInit'](){const _0x4f7be5=this['editor'];if(!_0x4f7be5['plugins']['has']('Paragraph'))return;const _0x11dd5f=_0x4f7be5['locale'],_0x78f442=_0x4f7be5['plugins']['get']('TrackChangesEditing');_0x78f442['descriptionFactory']['registerElementLabel']('paragraph',_0xfadafe=>o(_0x11dd5f,'ELEMENT_PARAGRAPH',_0xfadafe)),_0x78f442['enableDefaultAttributesIntegration']('paragraph'),_0x78f442['enableCommand']('insertParagraph'),_0x4f7be5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4f7be5),{'priority':'highest'}),_0x4f7be5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32837e,_0x27fe37,_0x4c4d7a)=>{_0x4c4d7a['options']['showSuggestionHighlights']&&nr(_0x4f7be5,{'showActiveMarker':!0x1})(_0x32837e,_0x27fe37,_0x4c4d7a);},{'priority':'highest'});const _0x3874d3=_0x78f442['descriptionFactory'];_0x3874d3['registerDescriptionCallback'](_0x5ef6b2=>{if('insertion'!==_0x5ef6b2['type'])return;const {start:_0x495531,end:_0x4e4207}=_0x5ef6b2['getFirstRange']();if(!_0x495531['isTouching'](_0x4e4207)||!_0x495531['nodeAfter'])return;const _0x38a40e=_0x4f7be5['model']['schema'],_0x1a08cf=_0x495531['nodeAfter'];return _0x38a40e['isBlock'](_0x1a08cf)&&!_0x38a40e['isLimit'](_0x1a08cf)&&_0x38a40e['checkChild'](_0x1a08cf,'$text')?{'type':'insertion','content':o(_0x11dd5f,'*Insert:*\x20%0',_0x3874d3['getItemLabel'](_0x1a08cf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a218c=this['editor'],_0xd4905d=_0x3a218c['locale'];_0x3a218c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338a0d=>{if('formatBlock'!=_0x338a0d['type'])return;const {data:_0x4f0597}=_0x338a0d;return _0x4f0597&&'paragraph'==_0x4f0597['commandName']?{'type':'format','content':o(_0xd4905d,'*Change\x20to:*\x20%0',o(_0xd4905d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x220457,{showActiveMarker:_0x27d0df=!0x0}={}){return(_0x152b7d,_0x2a72bc,_0x5e447a)=>{const _0x3dd61f=_0x220457['plugins']['get']('TrackChangesEditing'),_0x297762=_0x2a72bc['markerRange']['start'],_0x348922=_0x2a72bc['markerRange']['end'],_0x503f2d=_0x220457['model']['schema'];if(!_0x297762['isTouching'](_0x348922)||!_0x297762['nodeAfter'])return;const _0x1e00c5=_0x297762['nodeAfter'];if(_0x503f2d['isBlock'](_0x1e00c5)&&!_0x503f2d['isLimit'](_0x1e00c5)&&_0x503f2d['checkChild'](_0x1e00c5,'$text')){if(!_0x5e447a['consumable']['consume'](_0x2a72bc['markerRange'],_0x152b7d['name']))return;const {authorId:_0x410898}=_0x3dd61f['_splitMarkerName'](_0x2a72bc['markerName']),_0x38eebe=_0x5e447a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x410898}),_0x3922b6=_0x5e447a['mapper']['toViewPosition'](_0x348922);_0x27d0df&&_0x3dd61f['activeMarkers']['includes'](_0x2a72bc['markerName'])&&_0x5e447a['writer']['addClass']('ck-suggestion-marker--active',_0x38eebe),_0x5e447a['writer']['insert'](_0x3922b6,_0x38eebe),_0x5e447a['mapper']['bindElementToMarker'](_0x38eebe,_0x2a72bc['markerName']);}};}class wt extends _0x58a0bc{['afterInit'](){const _0x5679fd=this['editor'];if(!_0x5679fd['plugins']['has']('RemoveFormatEditing'))return;_0x5679fd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x102cb6=this['editor'];_0x102cb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f9e7=>{if('formatBlock'!=_0x37f9e7['type']&&'formatInline'!=_0x37f9e7['type'])return;const {data:_0x54c107}=_0x37f9e7;return _0x54c107&&'removeFormat'==_0x54c107['commandName']?{'type':'format','content':o(_0x102cb6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x58a0bc{['afterInit'](){const _0x4dfa63=this['editor'];if(!_0x4dfa63['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1b53f2=_0x4dfa63['plugins']['get']('TrackChangesEditing');_0x1b53f2['enableCommand']('goToPreviousRestrictedEditingException'),_0x1b53f2['enableCommand']('goToNextRestrictedEditingException');const _0x535ef6=_0x4dfa63['plugins']['get']('RestrictedEditingModeEditing');_0x535ef6['enableCommand']('trackChanges'),_0x535ef6['enableCommand']('acceptSuggestion'),_0x535ef6['enableCommand']('discardSuggestion'),_0x535ef6['enableCommand']('acceptAllSuggestions'),_0x535ef6['enableCommand']('discardAllSuggestions'),_0x535ef6['enableCommand']('acceptSelectedSuggestions'),_0x535ef6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x58a0bc{static get['requires'](){return[_0x210491];}['init'](){const _0x104ba5=this['editor'],_0x1f9260=_0x104ba5['plugins']['get']('TrackChangesEditing');_0x1f9260['enableCommand']('shiftEnter'),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x326650,_0x118f2c,_0xe29e32)=>{_0xe29e32['options']['showSuggestionHighlights']&&ge(_0x104ba5,{'showActiveMarker':!0x1})(_0x326650,_0x118f2c,_0xe29e32);}),_0x1f9260['descriptionFactory']['registerElementLabel']('softBreak',_0x4e40d9=>o(_0x104ba5['locale'],'ELEMENT_LINE_BREAK',_0x4e40d9));}}function ge(_0xefd499,{showActiveMarker:_0x3e76ce=!0x0}={}){return(_0x555419,_0x349435,_0x57afc8)=>{const _0x3e42bd=_0xefd499['plugins']['get']('TrackChangesEditing');if(!_0x57afc8['consumable']['test'](_0x349435['markerRange'],_0x555419['name']))return;const _0x2857c3=_0xefd499['model'];for(const _0x95df84 of _0x349435['markerRange']['getItems']()){if(!_0x95df84['is']('element','softBreak'))continue;const _0x2d1bf2='deletion'==_0x349435['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x49496b}=_0x3e42bd['_splitMarkerName'](_0x349435['markerName']),_0x343605=_0x57afc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d1bf2,'data-author-id':_0x49496b}),_0x4bf886=_0x57afc8['mapper']['toViewPosition'](_0x2857c3['createPositionBefore'](_0x95df84));_0x3e76ce&&_0x3e42bd['activeMarkers']['includes'](_0x349435['markerName'])&&_0x57afc8['writer']['addClass']('ck-suggestion-marker--active',_0x343605),_0x57afc8['writer']['insert'](_0x4bf886,_0x343605),_0x57afc8['mapper']['bindElementToMarker'](_0x343605,_0x349435['markerName']);}};}class St extends _0x58a0bc{['afterInit'](){const _0x1e633c=this['editor'],_0x4d3569=_0x1e633c['model'],_0x5c610b=_0x1e633c['locale'];if(!_0x1e633c['plugins']['has']('StandardEditingModeEditing'))return;const _0x16b5c4=_0x1e633c['plugins']['get']('TrackChangesEditing'),_0xa126c3='restrictedEditingException',_0x406f93=_0x1e633c['commands']['get'](_0xa126c3);_0x16b5c4['enableCommand'](_0xa126c3,(_0x167d48,_0x37df7b={})=>{const _0xed20b5=_0x4d3569['document']['selection'];if(_0xed20b5['isCollapsed'])return void _0x167d48(_0x37df7b);const _0x1eedb2=void 0x0!==_0x37df7b['forceValue']?_0x37df7b['forceValue']:!_0x406f93['value'];_0x4d3569['change'](()=>{const _0x290d63=Array['from'](_0xed20b5['getRanges']());for(const _0x4912dc of _0x290d63){const _0x55c293=_0x1eedb2?[_0x4912dc]:io(_0xa126c3,_0x4912dc,_0x4d3569);for(const _0x282262 of _0x55c293)_0x16b5c4['markInlineFormat'](_0x282262,{'commandName':_0xa126c3,'commandParams':[{'forceValue':_0x1eedb2}]});}});}),_0x16b5c4['descriptionFactory']['registerDescriptionCallback'](_0x51affe=>{if('formatBlock'!=_0x51affe['type']&&'formatInline'!=_0x51affe['type'])return;const {data:_0x41da8f}=_0x51affe;return _0x41da8f&&_0x41da8f['commandName']==_0xa126c3?_0x41da8f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x58a0bc{['afterInit'](){const _0x3d8908=this['editor'];if(!_0x3d8908['plugins']['has']('Style')||!_0x3d8908['plugins']['has']('DataSchema'))return;const _0x53c4e3=_0x3d8908['plugins']['get']('TrackChangesEditing'),_0x597606=_0x3d8908['locale'],_0x46731d=_0x3d8908['config']['get']('style')||{},_0x356bd6=_0x3d8908['plugins']['get']('GeneralHtmlSupport'),_0xa3bd6b=_0x3d8908['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3d8908['plugins']['get']('DataSchema'),_0x46731d['definitions']);_0x53c4e3['enableDefaultAttributesIntegration']('style');const _0x119c5b=new Set();for(const _0x4f1c50 of _0xa3bd6b['block']){const _0x46bb72=_0x356bd6['getGhsAttributeNameForElement'](_0x4f1c50['element']);_0x119c5b['add'](_0x46bb72);}const _0x8e9147=new Set();for(const _0x87b8ee of _0xa3bd6b['inline']){const _0x306e93=_0x356bd6['getGhsAttributeNameForElement'](_0x87b8ee['element']);_0x8e9147['add'](_0x306e93);for(const _0x3dffa3 of _0x87b8ee['ghsAttributes'])_0x8e9147['add'](_0x3dffa3);}for(const _0x2c66d9 of _0x119c5b)_0x53c4e3['registerBlockAttribute'](_0x2c66d9),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2c66d9,o(_0x597606,'FORMAT_STYLE'));for(const _0x2213c8 of _0x8e9147)_0x53c4e3['registerInlineAttribute'](_0x2213c8),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2213c8,o(_0x597606,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc0fc=this['editor'],_0x2cc712=_0x1dc0fc['locale'];_0x1dc0fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178141=>{if('formatBlock'!=_0x178141['type']&&'formatInline'!=_0x178141['type'])return;const {data:_0x28d05d}=_0x178141;return _0x28d05d&&'style'===_0x28d05d['commandName']?_0x28d05d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cc712,'*Set\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2cc712,'*Remove\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x58a0bc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ed687){super(_0x1ed687),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44ee26=this['editor'],_0x592ded=_0x44ee26['model']['document']['selection'];if(!_0x44ee26['plugins']['has']('TableEditing'))return;const _0x4e66ca=_0x44ee26['locale'],_0x15439c=_0x44ee26['plugins']['get']('TrackChangesEditing'),_0x45dec2=_0x44ee26['plugins']['get']('TableUtils');_0x15439c['descriptionFactory']['registerElementLabel']('table',_0x1f199d=>o(_0x4e66ca,'ELEMENT_TABLE',_0x1f199d)),this['_setupColumnsRowsFixing'](),_0x15439c['enableCommand']('insertTable'),_0x15439c['enableCommand']('selectTableRow'),_0x15439c['enableCommand']('selectTableColumn');for(const _0x261a2b of['insertTableRowAbove','insertTableRowBelow']){const _0x46b58f=_0x44ee26['commands']['get'](_0x261a2b);_0x15439c['enableCommand'](_0x261a2b,_0x59929e=>{_0x44ee26['model']['change'](_0x113ee4=>{_0x59929e();const _0x33f987='above'===_0x46b58f['order'],_0x50459d=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x52f093=_0x45dec2['getRowIndexes'](_0x50459d),_0x4c9d63=_0x33f987?_0x52f093['first']-0x1:_0x52f093['last']+0x1,_0x5f51a2=_0x50459d[0x0]['findAncestor']('table'),_0x3d1eb3=_0x45dec2['createTableWalker'](_0x5f51a2,{'startRow':_0x4c9d63,'endRow':_0x4c9d63}),_0x4f0a0f=Array['from'](_0x3d1eb3)['map'](_0x1e2709=>_0x113ee4['createRangeOn'](_0x1e2709['cell']));_0x15439c['markMultiRangeInsertion'](_0x4f0a0f,'tableRow');});});}for(const _0x455d76 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a0aa8=_0x44ee26['commands']['get'](_0x455d76);_0x15439c['enableCommand'](_0x455d76,_0x3f2e5c=>{_0x44ee26['model']['change'](_0x4bf33b=>{_0x3f2e5c();const _0x502c06='left'===_0x2a0aa8['order'],_0x34db84=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x10971b=_0x45dec2['getColumnIndexes'](_0x34db84),_0x72f355=_0x502c06?_0x10971b['first']-0x1:_0x10971b['last']+0x1,_0x2ba8cc=_0x34db84[0x0]['findAncestor']('table'),_0x137de1=_0x45dec2['createTableWalker'](_0x2ba8cc,{'startRow':0x0,'column':_0x72f355,'includeAllSlots':!0x1}),_0x4bb676=Array['from'](_0x137de1)['map'](_0x46ff0b=>_0x4bf33b['createRangeOn'](_0x46ff0b['cell']));_0x15439c['markMultiRangeInsertion'](_0x4bb676,'tableColumn');});});}for(const _0x39d104 of['removeTableRow','removeTableColumn']){const _0x171449=_0x39d104['substr'](0xb),_0x3af4f7=_0x171449['toLowerCase'](),_0x239697=_0x3af4f7['substr'](0x0,0x3)+'span',_0x2daf89='table'+_0x171449,_0x598aa0='min'+_0x171449,_0x3e14cd='max'+_0x171449;_0x15439c['enableCommand'](_0x39d104,()=>{_0x44ee26['model']['change'](_0x13b246=>{const _0x27e50a=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x124360=_0x27e50a[0x0]['findAncestor']('table');let _0x335c22;if('removeTableRow'==_0x39d104){const _0x5f3e6f=_0x45dec2['getRowIndexes'](_0x27e50a);_0x335c22={'startRow':_0x5f3e6f['first'],'endRow':_0x5f3e6f['last'],'includeAllSlots':!0x0};}else{const _0x4ff554=_0x45dec2['getColumnIndexes'](_0x27e50a);_0x335c22={'startColumn':_0x4ff554['first'],'endColumn':_0x4ff554['last'],'includeAllSlots':!0x0};}const _0x1945e2=_0x45dec2['createTableWalker'](_0x124360,_0x335c22),_0x1fd7fa=Array['from'](_0x1945e2)['map'](({cell:_0x190831})=>_0x190831),_0xcd0fd1=be(_0x1fd7fa['filter'](_0x27b200=>_0x27b200['hasAttribute'](_0x239697))),_0x24bab3=be(_0x1fd7fa['filter'](_0xd18afd=>!_0xd18afd['hasAttribute'](_0x239697)))['map'](_0x3a0a2c=>_0x13b246['createRangeOn'](_0x3a0a2c)),_0xedc187=_0x15439c['markMultiRangeDeletion'](_0x24bab3,_0x2daf89);if(_0xedc187&&('tableRow'==_0xedc187['subType']||'tableColumn'==_0xedc187['subType'])){const _0x2c7c60=this['_getSuggestionCoords'](_0xedc187);for(const _0x23959c of _0xcd0fd1){const _0x402548=_0x13b246['createRangeOn'](_0x23959c),_0x4e2349=_0x45dec2['getCellLocation'](_0x23959c),_0x12839a=_0x23959c['getAttribute'](_0x239697)-0x1,_0x153939=_0x2c7c60[_0x598aa0],_0x457fd2=_0x2c7c60[_0x3e14cd];_0x153939<=_0x4e2349[_0x3af4f7]&&_0x4e2349[_0x3af4f7]+_0x12839a<=_0x457fd2&&_0xedc187['addRange'](_0x402548);}}});});}function _0x3c9945(_0x2919ec){const _0x381f14=Array['from'](_0x592ded['getRanges']())['map'](_0x57f544=>_0x1ac7bd['fromRange'](_0x57f544));_0x44ee26['model']['change'](_0x1b9cb4=>{const _0x4ebe0e=_0x1b9cb4['batch'];_0x2919ec=_0x2919ec['filter'](_0x538577=>'$graveyard'!=_0x538577['root']['rootName']),_0x1b9cb4['setSelection'](_0x2919ec),_0x44ee26['commands']['get']('removeTableRow')['refresh'](),_0x44ee26['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44ee26['model']['enqueueChange'](()=>{_0x44ee26['model']['enqueueChange'](_0x4ebe0e,_0xa006df=>{const _0x5411a8=_0x381f14['filter'](_0x3a8f2c=>'$graveyard'!=_0x3a8f2c['root']['rootName']);_0x5411a8['length']>0x0&&_0xa006df['setSelection'](_0x5411a8);for(const _0x5d5851 of _0x381f14)_0x5d5851['detach']();});});});}function _0x1c0b7c(_0x3a1a47){_0x44ee26['model']['change'](_0xbc2cb=>{const _0x22e1ab=Array['from'](_0x592ded['getRanges']())['map'](_0xcf48fe=>_0x1ac7bd['fromRange'](_0xcf48fe)),_0x4fdc89=[];for(const _0x35c3c0 of _0x3a1a47)for(const _0x29ce41 of _0x35c3c0['getItems']({'shallow':!0x0}))_0x4fdc89['push'](_0x29ce41);for(const _0x5ee79d of _0x4fdc89)'$graveyard'!=_0x5ee79d['root']['rootName']&&(_0xbc2cb['setSelection'](_0xbc2cb['createPositionAt'](_0x5ee79d,0x0)),_0x44ee26['commands']['get']('removeTableColumn')['refresh'](),_0x44ee26['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x486aa7=_0x22e1ab['filter'](_0x446abf=>'$graveyard'!=_0x446abf['root']['rootName']);_0x486aa7['length']>0x0&&_0xbc2cb['setSelection'](_0x486aa7);for(const _0x50d32b of _0x22e1ab)_0x50d32b['detach']();});}function _0x50cbcf(_0x4881da,_0x16bf97){return _0x16bf97['every'](_0x2d1555=>_0x4881da['some'](_0x10e9a5=>_0x10e9a5['end']['isEqual'](_0x2d1555['start'])||_0x2d1555['end']['isEqual'](_0x10e9a5['start'])));}function _0x41d1ea(_0x286dab,_0x45fc15){return!_0x286dab['some'](_0x2de629=>_0x45fc15['some'](_0x337774=>_0x2de629['isIntersecting'](_0x337774)))&&_0x286dab['some'](_0x2fc23d=>_0x45fc15['some'](_0x2dc993=>_0x2fc23d['end']['isTouching'](_0x2dc993['start'])));}_0x44ee26['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ad933,_0x53e061,_0x54c6af)=>{if(!_0x54c6af['options']['showSuggestionHighlights'])return;const _0x169a44=_0x53e061['item'];if(!_0x169a44)return;const _0x1b10f9=_0x54c6af['mapper']['toViewElement'](_0x169a44);function _0x4588c7(_0x487231){return Array['isArray'](_0x487231)?_0x487231:[_0x487231];}_0x1b10f9&&'tableCell'===_0x169a44['name']&&_0x325294(_0x1b10f9,_0x54c6af['writer'],(_0x3242a1,_0x22fc59,_0x5c9de8)=>_0x5c9de8['addClass'](_0x4588c7(_0x22fc59['classes']),_0x3242a1),(_0x509e9d,_0x519eb4,_0x3b5eb8)=>_0x3b5eb8['removeClass'](_0x4588c7(_0x519eb4['classes']),_0x509e9d));},{'priority':'highest'}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x532caf=>{if('insertion'!=_0x532caf['type']&&'deletion'!=_0x532caf['type'])return;const _0x2c9c54=_0x532caf['getContainedElement']();if(null!=_0x2c9c54&&_0x2c9c54['is']('element','table')){if('insertion'==_0x532caf['type']){const _0x40d909=_0x532caf['getItems']()['filter'](_0x1d329f=>_0x1d329f['is']('$textProxy'))['map'](_0x26ed78=>_0x26ed78['data']);if(_0x40d909['length'])return{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d909['join']('\x20')+'\x22'))};}if('deletion'==_0x532caf['type']){const _0x44a191=_0x532caf['getItems']()['filter'](_0x27d004=>_0x27d004['is']('$textProxy'))['map'](_0x3985fc=>_0x3985fc['data']);if(_0x44a191['length'])return{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44a191['join']('\x20')+'\x22'))};}}}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x48779d=>{if('tableRow'==_0x48779d['subType']){const _0x296216=_0x48779d['getItems']()['filter'](_0x271c18=>_0x271c18['is']('$textProxy'))['map'](_0x57a56c=>_0x57a56c['data']),_0x5be800=this['_getSuggestionCoords'](_0x48779d),_0x44fa92=_0x5be800['maxRow']-_0x5be800['minRow']+0x1;if('insertion'==_0x48779d['type'])return _0x296216['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};if('deletion'==_0x48779d['type'])return _0x296216['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};}if('tableColumn'==_0x48779d['subType']){const _0x4ea6da=_0x48779d['getItems']()['filter'](_0x20cc08=>_0x20cc08['is']('$textProxy'))['map'](_0x5a832e=>_0x5a832e['data']),_0x4a9a3f=this['_getSuggestionCoords'](_0x48779d),_0x1e4381=_0x4a9a3f['maxColumn']-_0x4a9a3f['minColumn']+0x1;if('insertion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};if('deletion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};}}),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41d1ea),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41d1ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24f8ab=this['editor'],_0x2e333a=_0x24f8ab['model']['document']['selection'];return(_0x1b7bb1,_0x54d87a)=>{_0x24f8ab['model']['change'](_0x5d1ee3=>{const {commandName:_0x5f0477,commandParams:_0x21b91f}=_0x54d87a;let _0x631518=_0x1b7bb1[0x0]['end']['nodeBefore'];_0x21b91f&&_0x21b91f[0x0]&&!0x1===_0x21b91f[0x0]['forceValue']&&(_0x631518=_0x1b7bb1[0x0]['start']['nodeAfter']);const _0x239bf4=_0x5d1ee3['createRangeIn'](_0x631518);if('$graveyard'==_0x239bf4['root']['rootName'])return;const _0x4fb99d=Array['from'](_0x2e333a['getRanges']())['map'](_0x4cbcc3=>_0x1ac7bd['fromRange'](_0x4cbcc3));_0x5d1ee3['setSelection'](_0x239bf4),_0x24f8ab['commands']['get'](_0x5f0477)['refresh'](),_0x21b91f['push']({'forceDefaultExecution':!0x0}),_0x24f8ab['execute'](_0x5f0477,..._0x21b91f);const _0x38d8c6=_0x4fb99d['filter'](_0x1e569c=>'$graveyard'!=_0x1e569c['root']['rootName']);_0x38d8c6['length']>0x0&&_0x5d1ee3['setSelection'](_0x38d8c6);for(const _0x1ab956 of _0x4fb99d)_0x1ab956['detach']();});};}['_getCoordsForCells'](_0x38e806){const _0x50d4dd=this['editor']['plugins']['get']('TableUtils');let _0x4f18b5=Number['MAX_SAFE_INTEGER'],_0x11cbda=Number['MIN_SAFE_INTEGER'],_0x147402=Number['MAX_SAFE_INTEGER'],_0x10cdd8=Number['MIN_SAFE_INTEGER'];for(const _0x55e04d of _0x38e806){if('$graveyard'==_0x55e04d['root']['rootName'])continue;const {row:_0x445b32,column:_0x4e7027}=_0x50d4dd['getCellLocation'](_0x55e04d),_0x2bb864=_0x55e04d['hasAttribute']('rowspan')?_0x55e04d['getAttribute']('rowspan')-0x1:0x0,_0x1423b4=_0x55e04d['hasAttribute']('colspan')?_0x55e04d['getAttribute']('colspan')-0x1:0x0;_0x4f18b5=_0x445b32<_0x4f18b5?_0x445b32:_0x4f18b5,_0x11cbda=_0x445b32+_0x2bb864>_0x11cbda?_0x445b32+_0x2bb864:_0x11cbda,_0x147402=_0x4e7027<_0x147402?_0x4e7027:_0x147402,_0x10cdd8=_0x4e7027+_0x1423b4>_0x10cdd8?_0x4e7027+_0x1423b4:_0x10cdd8;}return{'minRow':_0x4f18b5,'maxRow':_0x11cbda,'minColumn':_0x147402,'maxColumn':_0x10cdd8};}['_setupColumnsRowsFixing'](){const _0xffbf2e=this['editor'],_0x31adfe=_0xffbf2e['plugins']['get']('TrackChangesEditing'),_0xdb8e01=_0xffbf2e['plugins']['get']('TableUtils');_0xffbf2e['model']['document']['on']('change:data',()=>{const _0xc4e56c=Array['from'](_0xffbf2e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc6e0,data:_0x444b0e}of _0xc4e56c){const {group:_0x456630,id:_0x205174,subType:_0x7774d1}=_0x31adfe['_splitMarkerName'](_0x3fc6e0);if('suggestion'!=_0x456630)continue;if(null!=_0x444b0e['oldRange'])continue;const _0x2323fb=_0x31adfe['getSuggestion'](_0x205174);this['_tablePostFixingSubtypes']['includes'](_0x7774d1)&&this['_tableSuggestions']['add'](_0x2323fb);}},{'priority':'low'});const _0x47725a=(_0x2916d7,_0x308710)=>{let _0x5d0cf7=!0x1;const _0x54deae=_0x308710['createRangeOn'](_0x2916d7),_0x5c37bf=_0x2916d7['findAncestor']('table'),_0x3d19aa=_0xdb8e01['getCellLocation'](_0x2916d7);for(const _0x47d20c of this['_tableSuggestions']){const _0x469cc4=_0x47d20c['subType'],_0x562764=_0x469cc4['startsWith']('tablePaste'),_0x22691c=_0x469cc4['substr'](_0x562764?0xa:0x5),_0x75b909=_0x22691c['toLowerCase'](),_0x387338=_0x75b909['substr'](0x0,0x3)+'span',_0x562c47='min'+_0x22691c,_0x5c1bee='max'+_0x22691c;if(!_0x47d20c['isInContent'])continue;if(_0x5c37bf!=_0x47d20c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47d20c['isIntersectingWithRange'](_0x54deae))continue;const _0x3e1c9f=_0x2916d7['hasAttribute'](_0x387338)?_0x2916d7['getAttribute'](_0x387338)-0x1:0x0,_0x1702c4=this['_getSuggestionCoords'](_0x47d20c),_0x5b43db=_0x1702c4[_0x562c47],_0x122fb0=_0x1702c4[_0x5c1bee];_0x5b43db<=_0x3d19aa[_0x75b909]&&_0x3d19aa[_0x75b909]+_0x3e1c9f<=_0x122fb0&&(_0x47d20c['addRange'](_0x54deae),_0x5d0cf7=!0x0);}return _0x5d0cf7;};_0xffbf2e['model']['document']['registerPostFixer'](_0x2d0086=>{let _0x5323c2=!0x1;for(const _0x35e850 of _0xffbf2e['model']['document']['differ']['getChanges']())if('insert'==_0x35e850['type']){if('tableRow'==_0x35e850['name']){for(const _0x269eaa of _0x35e850['position']['nodeAfter']['getChildren']())_0x5323c2=_0x5323c2||_0x47725a(_0x269eaa,_0x2d0086);}else'tableCell'==_0x35e850['name']&&(_0x5323c2=_0x5323c2||_0x47725a(_0x35e850['position']['nodeAfter'],_0x2d0086));}return _0x5323c2;});}['_getSuggestionCoords'](_0x1ea51f){return this['_getCoordsForCells'](_0x1ea51f['getRanges']()['map'](_0x8c1241=>_0x8c1241['start']['nodeAfter']));}}function be(_0x4f65a3){return Array['from'](new Set(_0x4f65a3)['values']());}class vt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4a29d0=this['editor'],_0x5aa2=_0x4a29d0['model']['document']['selection'],_0x1911af=_0x4a29d0['locale'];if(!_0x4a29d0['plugins']['has']('TableEditing'))return;const _0x3e4ae7=_0x4a29d0['plugins']['get']('TrackChangesEditing'),_0x5422bb=_0x4a29d0['plugins']['get']('TableUtils'),_0x4b18be=_0x4a29d0['plugins']['get'](It);_0x4b18be['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3e4ae7['enableCommand']('mergeTableCells',()=>{const _0x121a62=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection']);_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat'](_0x121a62,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4a29d0['commands']['get']('mergeTableCells')['on']('execute',(_0x5c77ae,_0x335b8c)=>{_0x4a29d0['commands']['get']('trackChanges')['value']&&(_0x335b8c['length']>0x0&&_0x335b8c[_0x335b8c['length']-0x1]&&_0x335b8c[_0x335b8c['length']-0x1]['forceDefaultExecution']||_0x3e4ae7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c77ae['stop']());},{'priority':'highest'});for(const _0x12d5e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2317c1=_0x4a29d0['commands']['get'](_0x12d5e0);_0x3e4ae7['enableCommand'](_0x12d5e0,()=>{const _0x4efb6b=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33aec6=>_0x33aec6['is']('element','tableCell')),_0x12d56d=_0x2317c1['value'];_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat']([_0x4efb6b,_0x12d56d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d1db4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54aa26=_0x4a29d0['commands']['get'](_0x4d1db4);_0x3e4ae7['enableCommand'](_0x4d1db4,()=>{const _0x21a27b=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection'])[0x0],_0x2ee604=_0x21a27b['findAncestor']('table'),{column:_0x567048,row:_0x2da829}=_0x5422bb['getCellLocation'](_0x21a27b);let _0xdb2ff=[];if('horizontally'==_0x54aa26['direction']){const _0x22ce65=_0x5422bb['createTableWalker'](_0x2ee604,{'startRow':_0x2da829,'endRow':_0x2da829,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x22ce65)['map'](_0x149efb=>_0x149efb['cell']);}else{const _0x55e8e2=_0x5422bb['createTableWalker'](_0x2ee604,{'column':_0x567048,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x55e8e2)['map'](_0xd5e3d1=>_0xd5e3d1['cell']);}_0x4a29d0['model']['change'](_0x2134d4=>{_0x3e4ae7['markBlockFormat'](_0x2134d4['createRangeOn'](_0x21a27b),{'commandName':_0x4d1db4,'commandParams':[]},_0xdb2ff,_0x4d1db4);});});}_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0xc9f9ef=>{if('formatBlock'!=_0xc9f9ef['type']&&'formatInline'!=_0xc9f9ef['type'])return;const {data:_0x346b70}=_0xc9f9ef;return _0x346b70&&'mergeTableCells'==_0x346b70['commandName']?{'type':'format','content':o(_0x1911af,'*Merge\x20cells*')}:void 0x0;}),_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0x4914b6=>{if('formatBlock'!=_0x4914b6['type']&&'formatInline'!=_0x4914b6['type'])return;const {data:_0x1afe72}=_0x4914b6;return _0x1afe72?'splitTableCellVertically'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x49f124=_0x4b18be['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bda4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bda4,'accept',_0x49f124);for(const _0x5c2cae of['splitTableCellVertically','splitTableCellHorizontally'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c2cae,'accept',_0x49f124);_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2140c1=>{_0x4a29d0['model']['change'](_0x4664f3=>{const _0x11b62e=Array['from'](_0x5aa2['getRanges']())['map'](_0x174188=>_0x1ac7bd['fromRange'](_0x174188));_0x4664f3['setSelection'](_0x2140c1),_0x4a29d0['commands']['get']('mergeTableCells')['refresh'](),_0x4a29d0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23fc11=_0x11b62e['filter'](_0x3d7919=>'$graveyard'!=_0x3d7919['root']['rootName']);_0x23fc11['length']>0x0&&_0x4664f3['setSelection'](_0x23fc11);for(const _0x3d8a5a of _0x11b62e)_0x3d8a5a['detach']();});});for(const _0x3c3f68 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa5df0c=_0x4a29d0['commands']['get'](_0x3c3f68);_0xa5df0c['on']('set:isEnabled',(_0x2f9cca,_0x891bd8,_0x164d41)=>{if(_0x164d41){const _0x285f38=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x555875=>_0x555875['is']('element','tableCell'));this['_areMergableCells'](_0xa5df0c['value'],_0x285f38)||(_0x2f9cca['return']=!0x1,_0x2f9cca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1f9423=this['editor']['commands']['get']('mergeTableCells'),_0x4e71b2=this['editor']['plugins']['get']('TableUtils');if(!_0x1f9423['isEnabled'])return!0x1;const _0x30577f=_0x4e71b2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3787fc of _0x30577f)for(const _0x5c4dc3 of _0x30577f)if(_0x3787fc!=_0x5c4dc3&&!this['_areMergableCells'](_0x3787fc,_0x5c4dc3))return!0x1;return!0x0;}['_areMergableCells'](_0x4f510e,_0x554b29){const _0x2472f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa58560=this['editor']['model']['createRangeOn'](_0x4f510e),_0x3fc5f4=this['editor']['model']['createRangeOn'](_0x554b29),_0x1945c1=new Set(),_0x2977a8=new Set();for(const _0x6c6a60 of _0x2472f0['getSuggestions']())if(('insertion'==_0x6c6a60['type']||'deletion'==_0x6c6a60['type']||'mergeTableCells'==_0x6c6a60['subType'])&&_0x6c6a60['isInContent']){for(const _0x41c2db of _0x6c6a60['getRanges']())_0x41c2db['containsRange'](_0xa58560,!0x0)&&_0x1945c1['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']),_0x41c2db['containsRange'](_0x3fc5f4,!0x0)&&_0x2977a8['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']);}if(_0x1945c1['size']!=_0x2977a8['size'])return!0x1;for(const _0x34018d of _0x1945c1)if(!_0x2977a8['has'](_0x34018d))return!0x1;return!0x0;}}class Ct extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x28bdea=this['editor'];if(!_0x28bdea['plugins']['has']('TableEditing'))return;const _0x25da88=_0x28bdea['locale'],_0x332617=_0x28bdea['plugins']['get']('TrackChangesEditing');_0x332617['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x332617['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x332617['registerBlockAttribute']('headingRows'),_0x332617['registerBlockAttribute']('headingColumns'),_0x332617['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25da88,'FORMAT_HEADER_ROW')),_0x332617['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25da88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d78b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32106d=this['editor']['plugins']['get']('TableUtils'),_0x300377=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4bb37c({showActiveMarker:_0x446c83=!0x0,setDataAttribute:_0x55e4e7=!0x0}={}){return(_0x20f5c6,_0x355bf5,_0x23d665)=>{const {type:_0x4e6ceb,id:_0x5574fe}=_0x2d78b7['_splitMarkerName'](_0x355bf5['markerName']),_0x19d5a0=_0x2d78b7['getSuggestion'](_0x5574fe),_0x4458e8=_0x19d5a0['data'];if('formatBlock'!=_0x19d5a0['type']||!_0x4458e8||'setTableColumnHeader'!=_0x4458e8['commandName'])return;if(_0x355bf5['item'])return void _0x20f5c6['stop']();if(!_0x23d665['consumable']['consume'](_0x355bf5['markerRange'],_0x20f5c6['name']))return;const _0x2ababf=_0x355bf5['markerRange']['start']['nodeAfter'],_0x568e3e=_0x355bf5['markerRange']['end']['nodeBefore'],_0x194997=_0x2ababf['parent']['parent'],{column:_0x107125}=_0x32106d['getCellLocation'](_0x2ababf),{column:_0x5f0289}=_0x32106d['getCellLocation'](_0x568e3e);for(let _0x2cef86=_0x107125;_0x2cef86<=_0x5f0289;_0x2cef86++){const _0x1c64b1=_0x32106d['createTableWalker'](_0x194997,{'column':_0x2cef86,'includeAllSlots':!0x1});for(const _0x257c8a of _0x1c64b1){const _0x29fe6c=_0x257c8a['cell'],_0x5180ba=_0x23d665['mapper']['toViewElement'](_0x29fe6c);_0x23d665['writer']['addClass']('ck-suggestion-marker-'+_0x4e6ceb,_0x5180ba),_0x55e4e7&&_0x23d665['writer']['setAttribute']('data-suggestion',_0x5574fe,_0x5180ba),_0x23d665['mapper']['bindElementToMarker'](_0x5180ba,_0x355bf5['markerName']),_0x446c83&&(_0x2d78b7['activeMarkers']['includes'](_0x355bf5['markerName'])?_0x23d665['writer']['addClass']('ck-suggestion-marker--active',_0x5180ba):_0x23d665['writer']['removeClass']('ck-suggestion-marker--active',_0x5180ba));}}};}_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x300377),_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x300377),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4bb37c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cd98f,_0x546154,_0x146b4e)=>{_0x146b4e['options']['showSuggestionHighlights']&&_0x4bb37c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3cd98f,_0x546154,_0x146b4e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4cc152,_0x262188,_0x485661)=>{const {type:_0x37790e,id:_0x4ba1e6}=_0x2d78b7['_splitMarkerName'](_0x262188['markerName']),_0x13c487=_0x2d78b7['getSuggestion'](_0x4ba1e6),_0x3d6526=_0x13c487['data'];if('formatBlock'!=_0x13c487['type']||!_0x3d6526||'setTableColumnHeader'!=_0x3d6526['commandName'])return;const _0x202de7=_0x485661['mapper']['markerNameToElements'](_0x262188['markerName']);if(_0x202de7){for(const _0x506ce2 of _0x202de7)_0x485661['writer']['removeClass']('ck-suggestion-marker-'+_0x37790e,_0x506ce2),_0x485661['writer']['removeClass']('ck-suggestion-marker--active',_0x506ce2),_0x485661['writer']['removeAttribute']('data-suggestion',_0x506ce2),_0x485661['mapper']['unbindElementFromMarkerName'](_0x506ce2,_0x262188['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d43e3=this['editor'],_0x1467db=_0x3d43e3['locale'];function _0x15a434(_0x15c5e5){return{'type':'format','content':o(_0x1467db,'*Format:*\x20%0',_0x15c5e5)};}_0x3d43e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ecfe=>{if('formatBlock'!=_0x20ecfe['type'])return;const {data:_0x33c6f9}=_0x20ecfe;if(_0x33c6f9){if('setTableRowHeader'==_0x33c6f9['commandName']){const _0x3c8c70=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x3c8c70?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x33c6f9['commandName']){const _0x244f75=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x244f75?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x283c19=>[_0x283c19,null]));class _t extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x5177a3=this['editor'];if(!_0x5177a3['plugins']['has']('TableClipboard'))return;const _0x2c9b06=_0x5177a3['plugins']['get']('TrackChangesEditing'),_0x40a8a0=_0x5177a3['plugins']['get']('TableUtils'),_0x2f727f=_0x5177a3['plugins']['get'](It),_0x1918b5=_0x5177a3['plugins']['get']('TableClipboard');_0x2f727f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5177a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5177a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xdf71b=null;_0x5177a3['model']['on']('insertContent',(_0x2cb8d4,_0x3c1fbf)=>{const [_0x9c755a,_0x4dff8f]=_0x3c1fbf,_0x419ecc=_0x3c1fbf[_0x3c1fbf['length']-0x1];_0x419ecc&&_0x419ecc['forceDefaultExecution']||_0x2c9b06['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x203740,_0x1388d8,_0x2890e3,_0x436aee,_0x59e6f0){if(_0x1388d8&&!_0x1388d8['is']('documentSelection'))return!0x1;const _0x8620ba=_0x59e6f0['getTableIfOnlyTableInContent'](_0x203740,_0x2890e3);if(!_0x8620ba||!Re(_0x8620ba,void 0x0,_0x436aee))return!0x1;const _0x258be7=_0x436aee['getSelectionAffectedTableCells'](_0x2890e3['document']['selection']);if(!_0x258be7['length'])return!0x1;const _0x53e1f5=_0x258be7[0x0]['findAncestor']('table'),_0xcfee03=_0x436aee['getRowIndexes'](_0x258be7),_0x15d3a6=_0x436aee['getColumnIndexes'](_0x258be7),_0x1f91e6={'startRow':_0xcfee03['first'],'endRow':_0xcfee03['last'],'startColumn':_0x15d3a6['first'],'endColumn':_0x15d3a6['last']};return 0x1==_0x258be7['length']&&(_0x1f91e6['endRow']+=_0x436aee['getRows'](_0x8620ba)-0x1,_0x1f91e6['endColumn']+=_0x436aee['getColumns'](_0x8620ba)-0x1),Re(_0x53e1f5,_0x1f91e6,_0x436aee);}(_0x9c755a,_0x4dff8f,_0x5177a3['model'],_0x40a8a0,_0x1918b5)&&(_0x2cb8d4['stop'](),_0xdf71b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5177a3['model']['change'](()=>{_0x5177a3['model']['insertContent'](_0x3c1fbf[0x0],_0x3c1fbf[0x1],_0x3c1fbf[0x2],{'forceDefaultExecution':!0x0});const _0x444564=_0x546e08(),{rowInsertionRanges:_0x26a401,columnInsertionRanges:_0x45bd42,insertionRanges:_0x45a47a,deletionRanges:_0xea8e3b,cells:_0xe19a0e}=_0xdf71b;_0x26a401['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x26a401,'tablePasteRow',{'tablePasteChainId':_0x444564}),_0x45bd42['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x45bd42,'tablePasteColumn',{'tablePasteChainId':_0x444564}),_0x45a47a['length']&&(_0x2c9b06['markMultiRangeInsertion'](_0x45a47a,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0x45a47a['forEach'](_0x408e56=>_0x408e56['detach']?.())),_0xea8e3b['length']&&(_0x2c9b06['markMultiRangeDeletion'](_0xea8e3b,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0xea8e3b['forEach'](_0x450968=>_0x450968['detach']?.()));const _0x43e7ca=_0x2c9b06['markMultiRangeBlockFormat'](_0xe19a0e['map'](({element:_0x5e9255})=>_0x5e9255),{'formatGroupId':_0x546e08()},[],'tablePasteCell',{'tablePasteChainId':_0x444564});if(_0x43e7ca){const _0x4287c5=_0x43e7ca['getMarkers'](),_0x1d1608=[];for(const {element:_0x6eb79f,attributes:_0x45dc2d}of _0xe19a0e){if(!_0x45dc2d)continue;const _0x271b67=_0x5177a3['model']['createRangeOn'](_0x6eb79f),_0x21e462=_0x4287c5['find'](_0x5935da=>_0x5935da['getRange']()['isEqual'](_0x271b67));_0x21e462&&_0x1d1608['push']([_0x21e462['name'],_0x45dc2d]);}_0x1d1608['length']&&_0x43e7ca['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d1608));}_0xdf71b=null;}));},{'priority':_0x44834d['high']+0xa}),_0x5177a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3839ff,_0x2945b7)=>{const [_0x4842cb,_0x1579f7,,_0x230db5]=_0x2945b7;if(!_0xdf71b)return;_0x3839ff['stop']();const _0x19d060=_0x4842cb['cell'],_0x1220d6=_0x1579f7,_0x128646=ke(_0x19d060),_0x3dbac7=ke(_0x1220d6);_0x3839ff['return']=_0x19d060;let _0x21fd64=null,_0x9918a3=null;if(_0x3dbac7||_0x128646){if(_0x128646&&!_0x3dbac7){_0x230db5['remove'](_0x19d060['getChild'](0x0));for(const _0x1f2c5d of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x1f2c5d,_0x19d060,'end');const _0x27a7d8=_0xdf71b['rowInsertionIndexes']['includes'](_0x4842cb['row']),_0x4b3230=_0xdf71b['columnInsertionIndexes']['includes'](_0x4842cb['column']);_0x27a7d8||_0x4b3230||(_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeIn'](_0x19d060)));}else _0x3dbac7&&!_0x128646&&(_0x9918a3=_0x230db5['createRangeIn'](_0x19d060));}else{const _0x2e7bc0=_0x230db5['createElement']('tableCellSuggestion'),_0x255af1=_0x230db5['createElement']('tableCellSuggestion');_0x230db5['wrap'](_0x230db5['createRangeIn'](_0x19d060),_0x255af1),_0x230db5['insert'](_0x2e7bc0,_0x19d060,0x0);for(const _0x891dbe of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x891dbe,_0x2e7bc0,'end');_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x2e7bc0)),_0x9918a3=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x255af1));}const _0xa9112=Array['from'](_0x1220d6['getAttributes']())['filter'](([_0x463244])=>Pe['includes'](_0x463244));_0xdf71b['cells']['push']({'element':_0x19d060,'attributes':_0xa9112['length']?Object['fromEntries'](_0xa9112):null}),_0x21fd64&&_0xdf71b['insertionRanges']['push'](_0x21fd64),_0x9918a3&&_0xdf71b['deletionRanges']['push'](_0x9918a3);},{'priority':'high'}),_0x40a8a0['on']('insertColumns',(_0xc8553c,_0x556edb)=>{const [_0x1ed29e,_0x2c521f={}]=_0x556edb;if(!_0xdf71b)return;const _0x1ab445=_0x2c521f['at']||0x0,_0xf1045a=_0x2c521f['columns']||0x1;_0xdf71b['columnInsertionIndexes']=new Array(_0xf1045a)['fill'](_0x1ab445)['map']((_0x9babea,_0x1bd780)=>_0x9babea+_0x1bd780);for(const {cell:_0x19e36e}of _0x40a8a0['createTableWalker'](_0x1ed29e,{'startColumn':_0x1ab445,'endColumn':_0x1ab445+_0xf1045a-0x1}))_0xdf71b['columnInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x19e36e));},{'priority':'low'}),_0x40a8a0['on']('insertRows',(_0x201497,_0xb9ec95)=>{const [_0x1aeac8,_0x21a4ac={}]=_0xb9ec95;if(!_0xdf71b)return;const _0x8b8094=_0x21a4ac['at']||0x0,_0x106899=_0x21a4ac['rows']||0x1;_0xdf71b['rowInsertionIndexes']=new Array(_0x106899)['fill'](_0x8b8094)['map']((_0x294a73,_0x48ec6c)=>_0x294a73+_0x48ec6c);for(const {cell:_0x1915f7}of _0x40a8a0['createTableWalker'](_0x1aeac8,{'startRow':_0x8b8094,'endRow':_0x8b8094+_0x106899-0x1}))_0xdf71b['rowInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x1915f7));},{'priority':'low'}),_0x2c9b06['descriptionFactory']['registerDescriptionCallback'](_0xb4f3ff=>{if(_0xb4f3ff['subType']&&_0xb4f3ff['subType']['startsWith']('tablePaste'))return _0xb4f3ff['previous']?{}:{'type':'insertion','content':o(_0x5177a3['locale'],'*Replace\x20table\x20cells*')};});const _0x43b7cb=()=>!0x1;for(const _0x3d5e7d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d5e7d,'join',_0x43b7cb);_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc72f4e,_0x1f7697,_0xd6ffc6)=>{const _0x234759=_0xc72f4e['map'](_0x386af5=>_0x386af5['getContainedElement']())['filter'](_0x3915cb=>_0x3915cb),_0x17c386=new Map(_0x234759['map'](_0x3a9433=>[_0x3a9433,null]));if(_0xdf71b){for(const {element:_0x1bef52,attributes:_0x5a3d2b}of _0xdf71b['cells'])_0x5a3d2b&&_0x17c386['set'](_0x1bef52,_0x5a3d2b);}else{if(_0xd6ffc6&&_0xd6ffc6['markerAttributes'])for(const [_0x387ae8,_0xbde9f8]of Object['entries'](_0xd6ffc6['markerAttributes'])){const _0x4d5f72=_0x5177a3['model']['markers']['get'](_0x387ae8),_0x4ab436=_0x4d5f72?_0x4d5f72['getRange']()['getContainedElement']():null;_0x4ab436&&_0x17c386['set'](_0x4ab436,_0xbde9f8);}}_0x5177a3['model']['change'](_0x5acd33=>{for(const [_0x1f6868,_0x33d098]of _0x17c386)_0x5acd33['setAttributes']({...we,..._0x33d098},_0x1f6868);});});const _0x3e0ea9=(_0x239f37,_0x21686a)=>{_0x2c9b06['_suggestionFactory']['registerCustomCallback'](_0x239f37,'tablePaste',_0x21686a,(_0x4648ea,_0x3a7cb4,_0x1f415c)=>{_0x5177a3['model']['change'](_0x566716=>{const _0x1b8628=[];for(const _0x49fcc5 of _0x4648ea){const _0x55e5d1=_0x49fcc5['start']['nodeAfter'];_0x55e5d1['is']('element','tableCellSuggestion')&&_0x1b8628['push'](_0x55e5d1);}_0x2c9b06['_suggestionFactory']['getSuggestionCallback'](_0x239f37,null,_0x21686a)(_0x4648ea,_0x3a7cb4,_0x1f415c);for(const _0x4132ca of _0x1b8628)'$graveyard'!=_0x4132ca['root']['rootName']&&_0x566716['unwrap'](_0x4132ca);});});};_0x3e0ea9('insertion','accept'),_0x3e0ea9('insertion','discard'),_0x3e0ea9('deletion','accept'),_0x3e0ea9('deletion','discard'),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x277fc5=>{const _0x106f37=_0x277fc5['map'](_0x53f199=>_0x53f199['getContainedElement']()),_0x1478f3=_0x106f37[0x0]['findAncestor']('table'),{minRow:_0x3bf7a1,maxRow:_0x1c0c25}=_0x2f727f['_getCoordsForCells'](_0x106f37);_0x40a8a0['removeRows'](_0x1478f3,{'at':_0x3bf7a1,'rows':_0x1c0c25-_0x3bf7a1+0x1});}),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8fdff0=>{const _0x308288=_0x8fdff0['map'](_0x14d71f=>_0x14d71f['getContainedElement']()),_0x4777b6=_0x308288[0x0]['findAncestor']('table'),{minColumn:_0x44ab2e,maxColumn:_0x3aa2cf}=_0x2f727f['_getCoordsForCells'](_0x308288);_0x40a8a0['removeColumns'](_0x4777b6,{'at':_0x44ab2e,'columns':_0x3aa2cf-_0x44ab2e+0x1});});const _0x1f8a36=(_0x573b27,_0x18f5f8)=>{if(!_0x18f5f8['subType']||!_0x18f5f8['subType']['startsWith']('tablePaste'))return;const _0x40e6d8=_0x18f5f8['attributes']['tablePasteChainId'],_0x2116d6=_0x2c9b06['getSuggestions']()['filter'](_0x5c5971=>_0x5c5971['isInContent']&&_0x5c5971['attributes']&&_0x5c5971['attributes']['tablePasteChainId']==_0x40e6d8);_0x2116d6['length']&&_0x18f5f8['getAllAdjacentSuggestions']()['length']!=_0x2116d6['length']&&_0x2116d6['reduce']((_0x48f581,_0x24c739)=>(_0x48f581['next']=_0x24c739,_0x24c739['previous']=_0x48f581,_0x24c739));};function _0x486b39(_0x2290e2,_0x329979=!0x0){const {id:_0x4c60ba,authorId:_0x20f199}=_0x2c9b06['_splitMarkerName'](_0x2290e2['markerName']),_0x4ebbca=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3c5597=_0x2c9b06['activeMarkers']['includes'](_0x2290e2['markerName']);return _0x3c5597&&_0x4ebbca['push']('ck-suggestion-marker--active'),{'classes':_0x4ebbca,'attributes':{'data-suggestion':_0x4c60ba,'data-author-id':_0x20f199},'priority':_0x3c5597&&_0x329979?0xbc2:0xbb8};}_0x2c9b06['on']('suggestionLoaded',_0x1f8a36,{'priority':'high'}),_0x2c9b06['on']('suggestionUnloaded',_0x1f8a36,{'priority':'high'}),_0x5177a3['model']['document']['registerPostFixer'](()=>{let _0x36595a=!0x1;const _0x576338=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x561583,data:_0x2340ae}of _0x576338){const {group:_0xf4cba2,type:_0x18d563,id:_0xfa8c3a}=_0x2c9b06['_splitMarkerName'](_0x561583);if('suggestion'!=_0xf4cba2||'deletion'!=_0x18d563||_0x2340ae['oldRange'])continue;if(!_0x2c9b06['hasSuggestion'](_0xfa8c3a))continue;const _0x1625b9=_0x2c9b06['getSuggestion'](_0xfa8c3a)['getRanges'](),_0x193722=_0x5177a3['plugins']['get']('Users')['me'];for(const _0x1af384 of _0x2c9b06['getSuggestions']()){if(!_0x1af384['isInContent']||_0x1af384['author']!=_0x193722)continue;if('formatBlock'!=_0x1af384['type']||'tablePasteCell'!=_0x1af384['subType'])continue;if(_0x1af384['getRanges']()['every'](_0xd43d0c=>_0x1625b9['some'](_0x900348=>_0x900348['containsRange'](_0xd43d0c,!0x0)))){for(const _0x39e5e0 of _0x1af384['getAllAdjacentSuggestions']())_0x39e5e0['isInContent']&&(_0x39e5e0['discard'](),_0x36595a=!0x0);}}}return _0x36595a;}),_0x5177a3['model']['document']['registerPostFixer'](_0x45ab04=>{const _0x3ce2e4=_0x5177a3['commands']['get']('redo');if(!_0x3ce2e4||!_0x3ce2e4['_createdBatches']['has'](_0x45ab04['batch']))return!0x1;let _0x37dfe0=!0x1;const _0x5e8c99=_0x5177a3['plugins']['get']('Users')['me'],_0x22cf0c=_0x5177a3['model']['document']['differ']['getChanges'](),_0x458421=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2df796,data:_0x135119})=>{const {group:_0x5730d1,subType:_0x3fb31b,authorId:_0x128b84}=_0x2c9b06['_splitMarkerName'](_0x2df796);return'suggestion'==_0x5730d1&&'tablePaste'==_0x3fb31b&&_0x128b84==_0x5e8c99['id']&&!_0x135119['oldRange'];});for(const _0x5bc6ec of _0x22cf0c){if('insert'!=_0x5bc6ec['type']||'tableCellSuggestion'!=_0x5bc6ec['name']||0x1!=_0x5bc6ec['length'])continue;const _0x59fe56=_0x45ab04['createRange'](_0x5bc6ec['position'],_0x5bc6ec['position']['getShiftedBy'](0x1));if(!_0x458421['find'](({data:_0x38574f})=>_0x38574f['newRange']['isEqual'](_0x59fe56))){for(const {name:_0x489bb4,data:_0x51c289}of _0x458421)if(_0x59fe56['containsRange'](_0x51c289['newRange'])){_0x45ab04['updateMarker'](_0x489bb4,{'range':_0x59fe56}),_0x37dfe0=!0x0;break;}}}return _0x37dfe0;}),_0x5177a3['model']['document']['registerPostFixer'](_0x40438c=>{let _0x222717=!0x1;const _0x271642=_0x5177a3['plugins']['get']('Users')['me'],_0xa7792a=_0x2c9b06['getSuggestions']()['filter'](_0x2adf9c=>_0x2adf9c['isInContent']&&_0x2adf9c['author']==_0x271642),_0x318ed2=new Set(),_0x502e8f=new Set();for(const _0x298d6c of _0xa7792a)if('tablePaste'==_0x298d6c['subType'])for(const _0x4a5005 of _0x298d6c['getMarkers']()){const _0x208f33=_0x4a5005['getRange']()['getContainedElement']();if(_0x208f33){if(_0x208f33['is']('element','tableCellSuggestion')&&ke(_0x208f33)){_0x298d6c['removeMarker'](_0x4a5005['name']),_0x318ed2['add'](_0x208f33),_0x222717=!0x0;const _0x504ae4=_0x208f33['nextSibling'],_0x3814c0=_0x208f33['previousSibling'],_0x17d477=_0x504ae4&&_0x504ae4['is']('element','tableCellSuggestion'),_0x4e41d6=_0x3814c0&&_0x3814c0['is']('element','tableCellSuggestion');_0x17d477&&!_0x318ed2['has'](_0x504ae4)&&_0x502e8f['add'](_0x504ae4),_0x4e41d6&&!_0x318ed2['has'](_0x3814c0)&&_0x502e8f['add'](_0x3814c0);}else _0x208f33['is']('element','paragraph')&&_0x208f33['isEmpty']&&(_0x298d6c['removeMarker'](_0x4a5005['name']),_0x222717=!0x0);}}else{if('tablePasteCell'==_0x298d6c['subType']){if(!_0x298d6c['attributes']||!_0x298d6c['attributes']['tablePasteChainId'])continue;const _0x29c6fd=_0x298d6c['attributes']['markerAttributes'];if(_0x29c6fd&&Object['keys'](_0x29c6fd)['length'])continue;const _0x5e6aed=_0x298d6c['attributes']['tablePasteChainId'];let _0x4557bf=!0x0,_0x1c5a6b=!0x0;for(const _0x57a2b5 of _0xa7792a)if(_0x57a2b5['subType']&&_0x57a2b5['subType']['startsWith']('tablePaste')){if(!_0x57a2b5['attributes']['tablePasteChainId']){_0x1c5a6b=!0x1;break;}if(_0x57a2b5['id']!=_0x298d6c['id']&&_0x57a2b5['attributes']['tablePasteChainId']==_0x5e6aed){_0x4557bf=!0x1;break;}}_0x1c5a6b&&_0x4557bf&&(_0x298d6c['removeMarkers'](),_0x222717=!0x0);}}for(const _0x162913 of _0x318ed2)_0x40438c['remove'](_0x162913);for(const _0x188695 of _0x502e8f)_0x40438c['unwrap'](_0x188695);return _0x222717;}),_0x5177a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd482ac=>_0x486b39(_0xd482ac),'converterPriority':'high'}),_0x5177a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x625917,_0x529a5b)=>_0x529a5b['options']['showSuggestionHighlights']?_0x486b39(_0x625917,!0x1):null,'converterPriority':'high'});const _0x2b364e=_0x5177a3['editing']['view'];this['listenTo'](_0x2b364e['document'],'clipboardOutput',(_0x2bbca9,_0x4dc075)=>{const _0x4e3540=[];for(const _0x176089 of _0x2b364e['createRangeIn'](_0x4dc075['content'])['getItems']())_0x176089['is']('element','suggestion-td')&&_0x4e3540['push'](_0x176089);_0x2b364e['change'](_0x5bc843=>{for(const _0x55f2f5 of _0x4e3540)_0x5bc843['move'](_0x5bc843['createRangeIn'](_0x55f2f5),_0x5bc843['createPositionBefore'](_0x55f2f5)),_0x5bc843['remove'](_0x55f2f5);});});}}function ke(_0x5eb66f){if(_0x5eb66f['isEmpty'])return!0x0;const _0xf30be9=_0x5eb66f['getChild'](0x0);return _0xf30be9['is']('element','paragraph')&&_0xf30be9['isEmpty'];}function Re(_0x334d49,_0x502c77={},_0x6010de){for(const {isAnchor:_0x56fe6e,cellHeight:_0x456ccd,cellWidth:_0x37a77a}of _0x6010de['createTableWalker'](_0x334d49,{'includeAllSlots':!0x0,..._0x502c77}))if(!_0x56fe6e||0x1!=_0x456ccd||0x1!=_0x37a77a)return!0x1;return!0x0;}class Nt extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32891a=this['editor']['plugins']['get']('TrackChangesEditing');_0x32891a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32891a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11336b,_0x2f4eb3){const _0x31111a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4be552=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x472576=_0x2f4eb3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28298a=_0x4be552['getColumnGroupElement'](_0x472576);let _0x118485=_0x28298a?_0x4be552['getTableColumnsWidths'](_0x28298a):null,_0x11eb0c=_0x472576['getAttribute']('tableWidth')||null;const _0x1c12f6=_0x2f4eb3['tableWidth']||_0x11eb0c,_0x501d2a=_0x2f4eb3['columnWidths']||_0x118485,_0x43db7b=this['editor']['plugins']['get']('Users')['me'];for(const _0xa7d48 of _0x31111a['getSuggestions']()){const _0x17f6a7=_0xa7d48['getContainedElement']();if('resizeTable'===_0xa7d48['subType']&&_0x17f6a7===_0x472576){_0xa7d48['author']!==_0x43db7b&&_0xa7d48['discard']();const _0xb1c952=_0xa7d48['data']['commandParams'];_0x11eb0c=_0xb1c952[0x0]['tableWidth'],_0x118485=_0xb1c952[0x0]['columnWidths'];break;}}_0x11336b({'table':_0x472576,'tableWidth':_0x1c12f6,'columnWidths':_0x501d2a}),_0x31111a['markBlockFormat'](_0x472576,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11eb0c,'columnWidths':_0x118485}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x327f5a){if('formatBlock'!=_0x327f5a['type']&&'formatInline'!=_0x327f5a['type'])return;const {data:_0x98e8f5}=_0x327f5a;if(_0x98e8f5&&'resizeTable'===_0x98e8f5['formatGroupId']){const _0x47805b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x47805b)};}}}class Dt extends _0x58a0bc{['afterInit'](){const _0x1172ce=this['editor'];_0x1172ce['plugins']['has']('Template')&&_0x1172ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x58a0bc{['afterInit'](){const _0x32f262=this['editor'];if(!_0x32f262['commands']['get']('insertTableOfContents'))return;_0x32f262['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa01781=_0x32f262['plugins']['get']('TrackChangesEditing'),_0xb0808f=_0x32f262['locale'];_0xa01781['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2723b2=>o(_0xb0808f,'ELEMENT_TABLE_OF_CONTENTS',_0x2723b2));}}class $t extends _0x58a0bc{['afterInit'](){const _0x132a6e=this['editor'];if(!_0x132a6e['plugins']['has']('Title'))return;const _0x210539=_0x132a6e['plugins']['get']('TrackChangesEditing');_0x210539['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x132a6e['locale'],'ELEMENT_TITLE')),_0x132a6e['model']['document']['registerPostFixer'](_0x500998=>{let _0x300cb6=!0x1;const _0x281a4a=Array['from'](_0x132a6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59a7ed,data:_0x5e45f9}of _0x281a4a){const {group:_0x15aeb3}=_0x210539['_splitMarkerName'](_0x59a7ed);if('suggestion'!==_0x15aeb3||!_0x5e45f9['newRange'])continue;const _0x4e1e4d=_0x5e45f9['newRange'],_0x4772f1=_0x4e1e4d['end']['nodeBefore'];if(!_0x4772f1||!_0x4772f1['is']('element','title-content'))continue;if(!_0x4e1e4d['start']['isTouching'](_0x4e1e4d['end']))continue;const _0x3b4bbd=_0x132a6e['model']['schema']['getNearestSelectionRange'](_0x4e1e4d['end'],'forward');if(_0x3b4bbd&&_0x3b4bbd['isCollapsed']){const _0x59e97c=_0x500998['createRange'](_0x4e1e4d['start'],_0x3b4bbd['start']);_0x59e97c['isEqual'](_0x4e1e4d)||(_0x500998['updateMarker'](_0x59a7ed,{'range':_0x59e97c}),_0x300cb6=!0x0);}_0x300cb6||(_0x500998['removeMarker'](_0x59a7ed),_0x300cb6=!0x0);}return _0x300cb6;});}}class Bt extends _0x58a0bc{['afterInit'](){const _0x2d86ef=this['editor'],_0x243457=_0x2d86ef['plugins']['get']('TrackChangesEditing');_0x2d86ef['plugins']['has']('UndoEditing')&&(_0x243457['enableCommand']('undo'),_0x243457['enableCommand']('redo'));}}class xt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4df322=this['editor'];if(!_0x4df322['plugins']['has']('TableCaptionEditing'))return;_0x4df322['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x58a0bc{['tableProperties'];['tableCellProperties'];constructor(_0x453a0c){super(_0x453a0c),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 _0xb14700=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xb4b3d7 of this['tableProperties'])_0xb14700['enableCommand'](_0xb4b3d7,(_0x159ee7,_0x9b88a5)=>{const _0x267052=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xb4b3d7,[_0x267052],this['tableProperties'],'tableProperties',_0x159ee7,_0x9b88a5);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21f576,_0x2585be)=>this['handleDiscardAction'](this['tableProperties'],_0x21f576,_0x2585be)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x16a07e of this['tableCellProperties'])_0xb14700['enableCommand'](_0x16a07e,(_0x25b0f3,_0x865cc2)=>{const _0x3ec2f3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x16a07e,_0x3ec2f3,this['tableCellProperties'],'tableCellProperties',_0x25b0f3,_0x865cc2);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4fea0c,_0x477894)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4fea0c,_0x477894)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb14700['descriptionFactory']['registerDescriptionCallback'](_0x3ede64=>this['handleSuggestionDescription'](_0x3ede64));}['_handlePropertyChange'](_0x3399e7,_0x306bc9,_0x3fa48a,_0x47a287,_0x388260,_0x35b27f){const _0x3a5cfd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35b27f['batch'],()=>{for(const _0x223e81 of _0x306bc9){if(this['_getSuggestion'](_0x223e81,_0x47a287))_0x388260(_0x35b27f);else{const _0x2e5b6b={};for(const _0x23b202 of _0x3fa48a){const _0x4c5719=_0x223e81['getAttribute'](_0x23b202);void 0x0!==_0x4c5719&&(_0x2e5b6b[_0x23b202]=_0x4c5719);}_0x388260(_0x35b27f),_0x3a5cfd['markBlockFormat'](_0x223e81,{'commandParams':[_0x2e5b6b]},[],_0x47a287);}}});}['handleDiscardAction'](_0x23dbef,_0xda3e71,_0x25b416){const _0x23078a=_0xda3e71[0x0]['start']['nodeAfter'],_0x53a0b7=_0x25b416['commandParams'][0x0];this['editor']['model']['change'](_0x37c55d=>{for(const _0x5ed35a of _0x23dbef)void 0x0!==_0x53a0b7[_0x5ed35a]?_0x37c55d['setAttribute'](_0x5ed35a,_0x53a0b7[_0x5ed35a],_0x23078a):_0x37c55d['removeAttribute'](_0x5ed35a,_0x23078a);});}['handleSuggestionDescription'](_0x23f491){if(_0x23f491['data'])switch(_0x23f491['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'](_0x3afb01,_0x45d2d9){const _0x42966b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x228c99 of _0x42966b['getSuggestions']({'skipNotAttached':!0x0})){const _0x3fd677=_0x228c99['getContainedElement']();if(_0x228c99['subType']===_0x45d2d9&&_0x3fd677===_0x3afb01)return _0x228c99;}return null;}}const m='$elementName';class p extends _0x58a0bc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5983d1,_0xb7ca76,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1c0e3f){function _0x2e5a14(_0x22efd1){return _0x22efd1['map'](_0x485c83=>String['fromCharCode'](_0x485c83))['join']('');}super(_0x1c0e3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ba390,_0x363fb4,_0x5f02c6,_0x3ef873)=>{this['_model']['change'](()=>{for(const _0x241d80 of[..._0x3ef873,..._0x5f02c6])this['_model']['markers']['has'](_0x241d80)&&_0x1c0e3f['editing']['reconvertMarker'](_0x241d80);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1c0e3f['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(),_0x1c0e3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1c0e3f['config']['get']('trackChanges.trackFormatChanges'),_0x1c0e3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1c0e3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1c0e3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2e5a14([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2e5a14([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x34]);}['init'](){const _0x93664=this['editor'],_0x3db84a=(_0x4f3e1a,_0x453be4)=>{if('attribute'!=_0x4f3e1a)return'ck-suggestion-marker-'+_0x4f3e1a;const _0x4ac2a0=_0x453be4['split']('|')[0x0];return this['_isBlockAttribute'](_0x4ac2a0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x93664['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4788ad=>{const {id:_0x19900c,authorId:_0x239e78,type:_0xea588b,subType:_0x2530ca}=this['_splitMarkerName'](_0x4788ad['markerName']),_0x395842=['ck-suggestion-marker',_0x3db84a(_0xea588b,_0x2530ca)];let _0x1e9147=0xbb8;return this['activeMarkers']['includes'](_0x4788ad['markerName'])&&(_0x395842['push']('ck-suggestion-marker--active'),_0x1e9147=0xbc2),'deletion'==_0xea588b&&(_0x1e9147+=0x5),{'classes':_0x395842,'attributes':{'data-suggestion':_0x19900c,'data-author-id':_0x239e78},'priority':_0x1e9147};}}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3e09d2=>{_0x3e09d2['on']('addMarker:suggestion',(_0x35a362,_0x2e40e1,_0x9f1765)=>{if(!_0x9f1765['options']['showSuggestionHighlights'])return;const _0xea57ce=_0x2e40e1['item'];if(!_0xea57ce)return;const _0x587315=_0x9f1765['mapper']['toViewElement'](_0xea57ce);_0x93664['model']['schema']['isObject'](_0xea57ce)&&_0x587315&&!_0x587315['getCustomProperty']('widget')&&_0x587315['is']('containerElement')&&_0x3601d(_0x587315,_0x9f1765['writer']);},{'priority':'high'});}),_0x93664['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc4bba7,_0x91ae9c)=>{if(!_0x91ae9c['options']['showSuggestionHighlights'])return null;const {type:_0x9d4f3b,subType:_0x493231}=this['_splitMarkerName'](_0xc4bba7['markerName']);return{'classes':['ck-suggestion-marker',_0x3db84a(_0x9d4f3b,_0x493231)],'priority':0xbb8};}});const _0x2995ee=({showActiveMarkers:_0x203d99=!0x0,isAttributeSuggestion:_0x1ef91a=!0x1}={})=>(_0x5d0b3c,_0x22d411,_0x5e1479)=>{if(!_0x22d411['item'])return;const {id:_0x359fce,authorId:_0x3c11e7}=this['_splitMarkerName'](_0x22d411['markerName']);if(_0x1ef91a){const _0x368ff1=this['_suggestions']['get'](_0x359fce),_0x31e441=this['_getAttributeKey'](_0x368ff1);if(!this['_isBlockAttribute'](_0x31e441))return;}if(_0x22d411['item']['is']('selection'))return void _0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);const _0x25635f=_0x5e1479['mapper']['toViewElement'](_0x22d411['item']);if(_0x22d411['item']['is']('element')&&_0x93664['model']['schema']['isBlock'](_0x22d411['item'])&&!_0x25635f['getCustomProperty']('addHighlight')){_0x5e1479['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25635f),_0x5e1479['writer']['setAttribute']('data-suggestion',_0x359fce,_0x25635f),_0x5e1479['writer']['setAttribute']('data-author-id',_0x3c11e7,_0x25635f),_0x5e1479['mapper']['bindElementToMarker'](_0x25635f,_0x22d411['markerName']),_0x203d99&&(this['activeMarkers']['includes'](_0x22d411['markerName'])?_0x5e1479['writer']['addClass']('ck-suggestion-marker--active',_0x25635f):_0x5e1479['writer']['removeClass']('ck-suggestion-marker--active',_0x25635f));for(const _0x5aa396 of _0x93664['model']['createRangeIn'](_0x22d411['item'])['getItems']())_0x5e1479['consumable']['consume'](_0x5aa396,_0x5d0b3c['name']);_0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);}};_0x93664['conversion']['for']('dataDowncast')['add'](_0x476b23=>{_0x476b23['on']('addMarker:suggestion:formatBlock',(_0x2354b0,_0x30218c,_0x35f648)=>{_0x35f648['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1})(_0x2354b0,_0x30218c,_0x35f648);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3989cf=>{_0x3989cf['on']('addMarker:suggestion:attribute',(_0x4481a4,_0x5b92d7,_0x64838d)=>{_0x64838d['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4481a4,_0x5b92d7,_0x64838d);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x412ed5,_0x556b09)=>_0x556b09['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x412ed5['substr'](0xb)}}),_0x93664['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x316caa,{writer:_0x190ea6})=>{let _0x512da6='suggestion:'+_0x316caa['getAttribute']('suggestion-type')+':'+_0x316caa['getAttribute']('id');return _0x316caa['getAttribute']('marker-count')&&(_0x512da6+=':'+_0x316caa['getAttribute']('marker-count')),_0x190ea6['createElement']('$marker',{'data-name':_0x512da6});}}),_0x93664['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x30aa84=>{_0x30aa84['on']('addMarker:suggestion:formatBlock',_0x2995ee(),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x3b006c=>{_0x3b006c['on']('addMarker:suggestion:attribute',_0x2995ee({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0xc12469=>{_0xc12469['on']('removeMarker:suggestion:formatBlock',(_0x57b61d,_0x40916f,_0x2eb805)=>{const _0x2168d1=_0x2eb805['mapper']['markerNameToElements'](_0x40916f['markerName']);if(_0x2168d1){for(const _0x4d8ef2 of _0x2168d1)_0x4d8ef2['getCustomProperty']('addHighlight')||(_0x2eb805['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-suggestion',_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-author-id',_0x4d8ef2),_0x2eb805['mapper']['unbindElementFromMarkerName'](_0x4d8ef2,_0x40916f['markerName']));}},{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x36e674=>{_0x36e674['on']('removeMarker:suggestion:attribute',(_0x2483ab,_0x49f8a6,_0x3886f5)=>{const _0x13f01d=_0x3886f5['mapper']['markerNameToElements'](_0x49f8a6['markerName']);if(!_0x13f01d)return;const {id:_0x25726f}=this['_splitMarkerName'](_0x49f8a6['markerName']),_0x48a27d=this['_suggestions']['get'](_0x25726f),_0x458e3a=this['_getAttributeKey'](_0x48a27d);if(this['_isBlockAttribute'](_0x458e3a)){for(const _0x40e6cb of _0x13f01d)_0x40e6cb['getCustomProperty']('addHighlight')||(_0x3886f5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-suggestion',_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-author-id',_0x40e6cb),_0x3886f5['mapper']['unbindElementFromMarkerName'](_0x40e6cb,_0x49f8a6['markerName']));}},{'priority':'high'});}),_0x93664['model']['document']['registerPostFixer'](_0x497b79=>{let _0x5ecbbc=!0x1;const _0x38d59d=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']()),_0x1c3916=new Set();for(const {name:_0x1b718e,data:_0x22813e}of _0x38d59d){const {group:_0x3c158b,type:_0x21c3cb,subType:_0xbbed5e,id:_0x530dca}=this['_splitMarkerName'](_0x1b718e);if('suggestion'!==_0x3c158b)continue;const _0x552941=this['_suggestions']['get'](_0x530dca);if(null!=_0x22813e['newRange']){'formatInline'==_0x21c3cb&&(_0x5ecbbc=_0x5ecbbc||Ut(_0x22813e['newRange'],_0x1b718e,_0x497b79,_0x93664['model']['schema']));const _0x29f6bd='attribute'==_0x21c3cb&&this['_isBlockAttribute'](_0xbbed5e['split']('|')[0x0]);if(_0x22813e['newRange']['isCollapsed']||'$graveyard'==_0x22813e['newRange']['root']['rootName']||'formatBlock'==_0x21c3cb&&!Ft(_0x22813e['newRange'])||_0x29f6bd&&!Ft(_0x22813e['newRange'])||'deletion'==_0x21c3cb&&!(!Vt(_0x4e7cda=_0x22813e['newRange'])&&!function(_0x26cad6){return _0x26cad6['start']['parent']==_0x26cad6['end']['nodeBefore']&&_0x26cad6['start']['isAtEnd'];}(_0x4e7cda)))_0x497b79['removeMarker'](_0x1b718e),_0x5ecbbc=!0x0;else{if(!_0x552941||!_0x552941['isInContent'])continue;if(_0x22813e['newRange']&&_0x22813e['oldRange']&&_0x22813e['newRange']['isEqual'](_0x22813e['oldRange']))continue;_0x1c3916['add'](_0x552941);}}}var _0x4e7cda;return _0x1c3916['size']>0x0&&(_0x5ecbbc=!!this['_joinWithAdjacentSuggestions'](_0x1c3916)||_0x5ecbbc),_0x5ecbbc;}),_0x93664['model']['document']['registerPostFixer'](_0x37cd95=>{let _0x46c042=!0x1;for(const _0x9de49b of _0x93664['model']['document']['differ']['getChanges']())if('insert'==_0x9de49b['type'])for(const _0x24bfca of this['_suggestions']['values']()){if(_0x24bfca['isMultiRange']||!_0x24bfca['isInContent'])continue;const _0x44d3b8='formatBlock'==_0x24bfca['type'],_0x312629=this['_getAttributeKey'](_0x24bfca),_0x47a433=_0x312629&&this['_isBlockAttribute'](_0x312629);if(!_0x44d3b8&&!_0x47a433)continue;const _0x5545a5=_0x24bfca['getFirstRange']();if(_0x5545a5['start']['parent']!=_0x5545a5['end']['parent']&&!_0x5545a5['end']['isAtEnd']){const _0x3c412f=_0x93664['model']['createPositionAt'](_0x5545a5['start']['nodeAfter'],'end'),_0x1e3b62=_0x93664['model']['createRange'](_0x5545a5['start'],_0x3c412f);_0x37cd95['updateMarker'](_0x24bfca['getFirstMarker'](),{'range':_0x1e3b62}),_0x46c042=!0x0;}}return _0x46c042;}),_0x93664['model']['document']['registerPostFixer'](_0x21ce4d=>this['_processAttributeChanges'](_0x21ce4d)),_0x93664['model']['document']['registerPostFixer'](_0x3958b3=>!_0x3958b3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3958b3)),_0x93664['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x93664['model']['document']['on']('change:data',(_0x85198a,_0xb5c8d1)=>{if(!_0xb5c8d1['isLocal']||_0xb5c8d1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b72ec=_0x93664['model']['document']['differ']['getChanges']();if(0x0==_0x4b72ec['length'])return;const _0x24992a=[],_0x995e81=_0x4b72ec['filter'](_0x4a9407=>'attribute'==_0x4a9407['type']),_0x577055=_0x4b72ec['filter'](_0x5d6625=>'insert'==_0x5d6625['type']&&'$text'!=_0x5d6625['name']);for(const _0x1099e5 of _0x995e81)this['_isRegisteredAttribute'](_0x1099e5['attributeKey'])&&_0x24992a['push']({'key':_0x1099e5['attributeKey'],'newValue':_0x1099e5['attributeNewValue'],'oldValue':_0x1099e5['attributeOldValue'],'range':Pt(_0x1099e5['range'],_0x93664['model'])});for(const _0x9471dd of _0x577055){if('rename'!=_0x9471dd['action']&&'refresh'!=_0x9471dd['action'])continue;const _0x33f204=Lt(_0x9471dd['position']['nodeAfter'],_0x93664['model']),_0x32bc93=_0x9471dd['before'];'rename'==_0x9471dd['action']&&_0x24992a['push']({'key':m,'newValue':_0x9471dd['name'],'oldValue':_0x32bc93['name'],'range':_0x33f204});for(const [_0x39385f,_0x5f5b4c]of _0x32bc93['attributes']){if(!this['_isRegisteredAttribute'](_0x39385f))continue;const _0x1e383c=_0x9471dd['attributes']['get'](_0x39385f);_0x5f5b4c!==_0x1e383c&&_0x24992a['push']({'key':_0x39385f,'newValue':_0x1e383c,'oldValue':_0x5f5b4c,'range':_0x33f204});}for(const [_0x282b60,_0x17fb21]of _0x9471dd['attributes'])this['_isRegisteredAttribute'](_0x282b60)&&(_0x32bc93['attributes']['has'](_0x282b60)||_0x24992a['push']({'key':_0x282b60,'newValue':_0x17fb21,'oldValue':null,'range':_0x33f204}));}0x0!=_0x24992a['length']&&_0x93664['model']['enqueueChange'](_0xb5c8d1,_0x5d5e6f=>{const _0x3e8361=_0x546e08();for(const {range:_0x742c00,key:_0x49edf2,oldValue:_0x23cf55,newValue:_0x46e9a1}of _0x24992a)this['markAttributeChange'](_0x742c00,_0x49edf2,_0x23cf55,_0x46e9a1,{'groupId':_0x3e8361});this['_reduceExistingSuggestions'](_0x5d5e6f,_0x24992a);});},{'priority':'lowest'}),_0x93664['model']['markers']['on']('update:suggestion',(_0x13e70e,_0x57fd7b,_0x1c60b8)=>{if(null==_0x1c60b8){const {id:_0x1e9268}=this['_splitMarkerName'](_0x57fd7b['name']),_0x4753c9=this['_suggestions']['get'](_0x1e9268);_0x4753c9&&_0x4753c9['addMarkerName'](_0x57fd7b['name']);}}),_0x93664['model']['document']['on']('change:data',()=>{const _0x2a5862=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']())['filter'](_0x414cd7=>'suggestion'===this['_splitMarkerName'](_0x414cd7['name'])['group']);if(0x0===_0x2a5862['length'])return;_0x2a5862['sort']((_0x27c88c,_0x264d43)=>{const _0x2e8dcc=_0x27c88c['data']['oldRange'],_0x1f8079=_0x264d43['data']['oldRange'];return null===_0x2e8dcc&&null===_0x1f8079?0x0:null===_0x2e8dcc&&null!==_0x1f8079?-0x1:null!==_0x2e8dcc&&null===_0x1f8079?0x1:_0x2e8dcc['start']['isBefore'](_0x1f8079['start'])?-0x1:0x1;});const _0xb2b4ab=new Set(),_0x5b827b=new Set();for(const {name:_0x14616f,data:_0x8db754}of _0x2a5862){const {id:_0x30a971}=this['_splitMarkerName'](_0x14616f);if(null===_0x8db754['oldRange']){const _0x3cd933=this['_handleNewSuggestionMarker'](_0x14616f);_0x5b827b['add'](_0x3cd933);}else{const _0x5bfc41=this['_suggestions']['get'](_0x30a971);null!==_0x8db754['newRange']||_0x5bfc41['isInContent']?(_0xb2b4ab['add'](_0x5bfc41['head']),_0x5b827b['add'](_0x5bfc41)):this['_removeSuggestion'](_0x5bfc41);}}_0x5b827b['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b827b);for(const _0x192a81 of _0xb2b4ab)this['fire']('suggestionChanged',_0x192a81);}),_0x93664['model']['on']('applyOperation',(_0x564e65,_0xb6ae6f)=>{const _0xe66e0a=_0xb6ae6f[0x0];if(!this['_suggestions']['size'])return;if(!_0xe66e0a['isDocumentOperation'])return;if(_0xe66e0a['batch']['isUndo']||!_0xe66e0a['batch']['isLocal'])return;let _0x4a2ae0,_0xc8b8e;switch(_0xe66e0a['type']){case'insert':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['position']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;case'split':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['splitPosition']),_0xc8b8e=_0x93664['model']['createPositionAt'](_0xe66e0a['moveTargetPosition']);break;case'move':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['targetPosition']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;default:return;}const _0xce8363=_0x93664['model']['createRange'](_0x4a2ae0,_0xc8b8e);_0x93664['model']['change'](()=>{for(const {suggestion:_0x57864b,meta:_0x8d1b83}of this['_findSuggestions'](_0xce8363)){if(_0x57864b['isMultiRange'])continue;if('formatInline'==_0x57864b['type'])continue;const _0x5963f8=this['_getAttributeKey'](_0x57864b);if(_0x5963f8&&this['_isBlockAttribute'](_0x5963f8)&&'split'!=_0xe66e0a['type'])continue;const _0x5b9568=_0x57864b['data']&&_0x57864b['data']['multipleBlocks'];('formatBlock'!=_0x57864b['type']||'split'==_0xe66e0a['type']&&!_0x5b9568)&&(_0x8d1b83['containsRangeInObject']||'insertion'==_0x57864b['type']&&_0x8d1b83['isOwn']||_0x57864b['getFirstRange']()['containsRange'](_0xce8363)&&this['_breakSuggestionMarker'](_0x57864b,_0x4a2ae0,_0xc8b8e));}});},{'priority':'lowest'}),_0x93664['model']['on']('deleteContent',(_0x379058,_0x2c9c98)=>{const _0x118c46=_0x2c9c98[0x0],_0x294d8a=_0x2c9c98[0x1];if(_0x294d8a&&_0x294d8a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x118c46['isCollapsed'])return;const _0x5caae4=_0x93664['model']['schema'],{start:_0x18907c,end:_0x1cd0d7}=_0x118c46['getFirstRange'](),_0x5ab9ac=_0x18907c['nodeAfter']&&_0x5caae4['isLimit'](_0x18907c['nodeAfter'])?null:_0x5caae4['getNearestSelectionRange'](_0x18907c,'forward'),_0x547714=_0x1cd0d7['nodeBefore']&&_0x5caae4['isLimit'](_0x1cd0d7['nodeBefore'])?null:_0x5caae4['getNearestSelectionRange'](_0x1cd0d7,'backward'),_0x41612a=_0x93664['model']['createRange'](_0x5ab9ac?_0x5ab9ac['start']:_0x18907c,_0x547714?_0x547714['end']:_0x1cd0d7);_0x93664['model']['change'](_0x28e186=>{this['markDeletion'](_0x41612a);const _0x2b0846=_0x93664['model']['schema']['getNearestSelectionRange'](_0x41612a['start']);_0x118c46['is']('documentSelection')?_0x28e186['setSelection'](_0x2b0846):_0x118c46['setTo'](_0x2b0846);}),_0x379058['stop']();},{'priority':_0x44834d['normal']+0xa}),_0x93664['model']['on']('insertContent',(_0x18c3e0,_0x3fa0c1)=>{const _0x35876f=_0x3fa0c1[_0x3fa0c1['length']-0x1];_0x35876f&&_0x35876f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x93664['model']['change'](()=>{let _0x213623=_0x93664['model']['insertContent'](_0x3fa0c1[0x0],_0x3fa0c1[0x1],_0x3fa0c1[0x2],{'forceDefaultExecution':!0x0});if(!_0x213623)return;_0x18c3e0['return']=_0x213623['clone']();const _0xc31289=_0x213623['end']['nodeBefore'],_0x32af26=_0x93664['model']['schema'];_0xc31289&&_0x32af26['isBlock'](_0xc31289)&&!_0x32af26['isObject'](_0xc31289)&&(_0x213623=_0x93664['model']['createRange'](_0x213623['start'],_0x93664['model']['createPositionAt'](_0xc31289,'end'))),this['markInsertion'](_0x213623);}),_0x18c3e0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6af541=new x(_0x93664,this['_suggestions']);_0x93664['commands']['add']('acceptSuggestion',_0x6af541),this['enableCommand']('acceptSuggestion');const _0x33d084=new R(_0x93664,this['_suggestions']);_0x93664['commands']['add']('discardSuggestion',_0x33d084),this['enableCommand']('discardSuggestion'),_0x93664['commands']['add']('acceptAllSuggestions',new E(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x93664['commands']['add']('discardAllSuggestions',new E(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x93664['commands']['add']('acceptSelectedSuggestions',new O(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x93664['commands']['add']('discardSelectedSuggestions',new O(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x16f29c=_0x93664['plugins']['get']('CommentsRepository');this['listenTo'](_0x16f29c,'addComment',(_0x2c4abc,{threadId:_0xd92d3b})=>{const _0x22805d=this['_suggestions']['get'](_0xd92d3b);_0x22805d&&_0x22805d['commentThread']&&0x1===_0x22805d['commentThread']['length']&&this['_updateSuggestionData'](_0xd92d3b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x16f29c,'removeComment',(_0x18cdf6,{threadId:_0x2e58ce})=>{const _0x423742=this['_suggestions']['get'](_0x2e58ce);_0x423742&&_0x423742['commentThread']&&!_0x423742['commentThread']['length']&&this['_updateSuggestionData'](_0x2e58ce,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x17283d){if(this['_adapter'])throw new _0x4ee7fd('track-changes-adapter-already-set',this);this['_adapter']=_0x17283d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19db39=!0x1,toJSON:_0x311f39=!0x1}={}){const _0x42a1f2=[];for(const _0xb91945 of this['_suggestions']['values']())_0x19db39&&!_0xb91945['isInContent']||_0x42a1f2['push'](_0xb91945);return _0x311f39?_0x42a1f2['map'](_0x2df00b=>_0x2df00b['toJSON']()):_0x42a1f2;}['getSuggestion'](_0xb62e9e){const _0xfea7=this['_suggestions']['get'](_0xb62e9e);if(!_0xfea7)throw new _0x4ee7fd('track-changes-suggestion-not-found',this);return _0xfea7;}['hasSuggestion'](_0x31d852){return this['_suggestions']['has'](_0x31d852);}['addSuggestionData'](_0x306566){const {authorId:_0x182852,id:_0x275324,attributes:_0x43f843}=_0x306566,[_0xc1ee51,_0x199ebd]=_0x306566['type']['split'](':'),_0x1b5dd6=this['_suggestions']['get'](_0x275324)||this['_createSuggestion'](_0xc1ee51,_0x199ebd,_0x275324,_0x182852,_0x43f843);if(this['_addThreadToSuggestion'](_0x1b5dd6),this['_checkSuggestionCorrectness'](_0x1b5dd6,_0xc1ee51,_0x199ebd||null,_0x182852),_0x1b5dd6['createdAt']=_0x306566['createdAt'],_0x1b5dd6['_isDataLoaded']=!0x0,_0x43f843&&_0x43f843['@external']){const _0x589b8c=_0x43f843['@external'],_0x152754=this['_getExternalAuthor'](_0x589b8c['authorName']);_0x1b5dd6['authoredAt']=_0x589b8c['createdAt'],_0x1b5dd6['author']=_0x152754,_0x1b5dd6['isExternal']=!0x0;}else _0x1b5dd6['authoredAt']=_0x306566['createdAt'];switch(_0x306566['data']&&(_0x1b5dd6['data']=_0x306566['data']),_0x306566['attributes']&&(_0x1b5dd6['attributes']=_0x306566['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1b5dd6['_saved']=!0x0),this['_suggestionState']['get'](_0x1b5dd6)){case'notReady':this['_suggestionState']['set'](_0x1b5dd6,'dataReady');break;case'markerReady':_0x1b5dd6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1b5dd6])),this['_refreshSuggestionsChain'](new Set([_0x1b5dd6])),this['_suggestionState']['set'](_0x1b5dd6,'ready'),this['fire']('suggestionLoaded',_0x1b5dd6)):this['_suggestionState']['set'](_0x1b5dd6,'removed');}return _0x1b5dd6;}['acceptSuggestion'](_0xe06385){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a6bc8 of _0xe06385['getAllAdjacentSuggestions']())_0x4a6bc8['accept']();});});}['discardSuggestion'](_0x595b71){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58d3e1 of _0x595b71['getAllAdjacentSuggestions']())_0x58d3e1['discard']();});});}['enableCommand'](_0x3f5658,_0x12281e){const _0x3175a5=this['editor']['commands']['get'](_0x3f5658);if(!_0x3175a5)throw new _0x4ee7fd('track-changes-command-not-found',this,{'commandName':_0x3f5658});if(this['_enabledCommands']['has'](_0x3175a5))throw new _0x4ee7fd('track-changes-enable-command-twice',this,{'commandName':_0x3f5658});this['_enabledCommands']['add'](_0x3175a5),_0x12281e&&_0x3175a5['on']('execute',(_0x588dc1,_0x36e9c3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x36e9c3['length']>0x0&&_0x36e9c3[_0x36e9c3['length']-0x1]&&_0x36e9c3[_0x36e9c3['length']-0x1]['forceDefaultExecution']?_0x36e9c3['pop']():(_0x588dc1['return']=_0x12281e((..._0x340436)=>_0x3175a5['execute'](..._0x340436,{'forceDefaultExecution':!0x0}),..._0x36e9c3),_0x588dc1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf82e4d){let _0x36f956,_0x139d0b;const _0x55a5ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x36f956=_0xf82e4d();}catch(_0x34b062){_0x139d0b=_0x34b062;}return _0x55a5ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x139d0b&&_0x4ee7fd['rethrowUnexpectedError'](_0x139d0b,this),_0x36f956;}['markInsertion'](_0x2c1981,_0x23dc30=null,_0x1df190={}){if(_0x2c1981['isCollapsed'])return null;const _0x454729=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ebcac,meta:_0x248753}of this['_findSuggestions'](_0x2c1981,'insertion'))if(_0x248753['isOwn']){if(!_0x248753['isNextTo']){if(_0x248753['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ebcac,_0x1df190))continue;return _0x5ebcac;}if(qt(_0x5ebcac,_0x1df190))return _0x5ebcac;this['_breakSuggestionMarker'](_0x5ebcac,_0x2c1981['start'],_0x2c1981['end']);break;}if(_0x23dc30==_0x5ebcac['subType']&&qt(_0x5ebcac,_0x1df190)){const _0x1ec9c3=_0x5ebcac['getFirstRange']();return _0x1ec9c3['start']['isEqual'](_0x2c1981['end'])?this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x2c1981['start'],_0x1ec9c3['end'])):this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x1ec9c3['start'],_0x2c1981['end'])),_0x5ebcac;}}const _0x47d15a=_0x546e08(),_0x5588bb=_0x454729['id'],_0x1d72f5=_0x23dc30?'insertion:'+_0x23dc30:'insertion',_0x1bb88c=this['_setSuggestionData']({'id':_0x47d15a,'type':_0x1d72f5,'createdAt':new Date(),'authorId':_0x5588bb,'attributes':_0x1df190});return this['_addSuggestionMarker'](_0x1d72f5,_0x47d15a,_0x5588bb,_0x2c1981),_0x1bb88c;}['markMultiRangeInsertion'](_0x39ca88,_0x737dcc='multi',_0x557f70={}){const _0x15663a=this['editor']['plugins']['get']('Users')['me'],_0x3113fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x737dcc,'join');for(const _0x2f2938 of this['getSuggestions']())if(_0x2f2938['author']['id']==_0x15663a['id']&&'insertion'==_0x2f2938['type']&&_0x2f2938['subType']==_0x737dcc&&qt(_0x2f2938,_0x557f70)&&(_0x3113fe(_0x2f2938['getRanges'](),_0x39ca88)||_0x3113fe(_0x39ca88,_0x2f2938['getRanges']()))){for(const _0x566623 of _0x39ca88)_0x2f2938['addRange'](_0x566623);return _0x2f2938;}for(const {suggestion:_0x4245e3,meta:_0x4e5747}of this['_findSuggestions'](_0x39ca88,'insertion')){if(!_0x4e5747['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e5747['containsRangeInObject'])continue;if(!qt(_0x4245e3,_0x557f70))continue;let _0x19b687=!0x0;for(const _0x4da519 of _0x4245e3['getRanges']())for(const _0x4d4ca9 of _0x39ca88)if(!_0x4da519['containsRange'](_0x4d4ca9)){_0x19b687=!0x1;break;}if(_0x19b687)return _0x4245e3;}const _0x39057c=_0x546e08(),_0x2eda31=_0x15663a['id'],_0xe6a58c='insertion:'+_0x737dcc,_0x45b71c=this['_setSuggestionData']({'id':_0x39057c,'type':_0xe6a58c,'createdAt':new Date(),'authorId':_0x2eda31,'attributes':_0x557f70});for(const _0x21a965 of _0x39ca88)this['_addSuggestionMarker'](_0xe6a58c,_0x39057c,_0x2eda31,_0x21a965,u['getMultiRangeId']());return _0x45b71c;}['markInlineFormat'](_0x10b66c,_0x4f8483,_0x2f484d=null,_0x1d9fb6={}){if(_0x2f484d=_0x2f484d||Gt(_0x4f8483),_0x10b66c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd504c9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');return this['forceDefaultExecution'](()=>_0xd504c9([_0x10b66c],_0x4f8483,_0x1d9fb6)),null;}const _0x24ed79=this['editor']['plugins']['get']('Users')['me'],_0x4f69f0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3feb11,meta:_0x298e78}of this['_findSuggestions'](_0x10b66c,'insertion'))_0x298e78['isOwn']&&!_0x298e78['isInsideObject']&&_0x4f69f0['push'](..._0x3feb11['getRanges']());}const _0xb98759=function(_0x235b45,_0x2eb81f){const _0x59db38=[];for(const _0x354b07 of _0x2eb81f){const _0x1db97a=_0x235b45['getIntersection'](_0x354b07);_0x1db97a&&_0x59db38['push'](_0x1db97a);}return _0x59db38;}(_0x10b66c,_0x4f69f0),_0x58ad74=function(_0x12992a,_0x302223){const _0x410bf6=[_0x12992a];for(const _0x3c89c0 of _0x302223){let _0x897208=0x0;for(;_0x897208<_0x410bf6['length'];){const _0x3d07e4=_0x410bf6[_0x897208]['getDifference'](_0x3c89c0);_0x410bf6['splice'](_0x897208,0x1,..._0x3d07e4),_0x897208+=_0x3d07e4['length'];}}return _0x410bf6;}(_0x10b66c,_0x4f69f0);_0xb98759['length']&&this['_model']['change'](()=>{for(const _0xc83220 of _0xb98759){const _0x2aa2f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');this['forceDefaultExecution'](()=>_0x2aa2f2([_0xc83220],_0x4f8483,_0x1d9fb6));}});for(const _0x550e9e of _0x58ad74){let _0x4620bd=null,_0x51d2e3=_0x550e9e['start'],_0x52624b=_0x550e9e['end'];for(const {suggestion:_0x47cfaf,meta:_0x368210}of this['_findSuggestions'](_0x550e9e,'formatInline')){if(!_0x368210['isOwn'])continue;if(_0x47cfaf['subType']!=_0x2f484d)continue;if(!qt(_0x47cfaf,_0x1d9fb6))continue;const _0x143c95=_0x47cfaf['getFirstRange']();if(_0x143c95['containsRange'](_0x550e9e,!0x0))return null;_0x51d2e3=_0x51d2e3['isBefore'](_0x143c95['start'])?_0x51d2e3:_0x143c95['start'],_0x52624b=_0x52624b['isAfter'](_0x143c95['end'])?_0x52624b:_0x143c95['end'],_0x4620bd?_0x143c95['start']['isBefore'](_0x4620bd['getFirstRange']()['start'])?(_0x4620bd['removeMarkers'](),_0x4620bd=_0x47cfaf):_0x47cfaf['removeMarkers']():_0x4620bd=_0x47cfaf;}const _0x2a74d7=this['_model']['createRange'](_0x51d2e3,_0x52624b);if(_0x4620bd)this['_setSuggestionRange'](_0x4620bd,_0x2a74d7);else{const _0x142c4b=_0x546e08(),_0x152000=_0x24ed79['id'];this['_setSuggestionData']({'id':_0x142c4b,'type':'formatInline:'+_0x2f484d,'data':_0x4f8483,'createdAt':new Date(),'authorId':_0x152000,'attributes':_0x1d9fb6}),this['_addSuggestionMarker']('formatInline:'+_0x2f484d,_0x142c4b,_0x152000,_0x2a74d7);}}return null;}['markBlockFormat'](_0x4e72b0,_0x4b06be,_0x52dd55=[],_0x4dc31f=null,_0x21423b={}){_0x4b06be['formatGroupId']||(_0x4b06be['formatGroupId']=_0x4b06be['commandName']),_0x4b06be['multipleBlocks']=_0x4e72b0['is']('range'),_0x4dc31f=_0x4dc31f||Gt(_0x4b06be);const _0x1443f8=_0x52dd55['map'](_0x974bad=>Lt(_0x974bad,this['_model'])),_0x5a2491=_0x4e72b0['is']('range')?_0x4e72b0:Lt(_0x4e72b0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x501cd7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x501cd7([_0x5a2491],_0x4b06be,_0x21423b)),null;}_0x1443f8['push'](_0x5a2491);let _0x28aafe=!0x0;for(const _0x1b6950 of _0x1443f8)if(!this['_rangeIsInLocalUserInsertion'](_0x1b6950)){_0x28aafe=!0x1;break;}if(_0x28aafe&&'always'!==this['_trackFormatChanges']){const _0x5808bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x5808bf([_0x5a2491],_0x4b06be,_0x21423b)),null;}let _0x1599ac=null,_0x1a61b8=_0x5a2491['start'],_0x297904=_0x5a2491['end'];for(const {suggestion:_0x4a2412,meta:_0x2645c1}of this['_findSuggestions'](_0x5a2491,'formatBlock')){if(!_0x2645c1['isOwn'])continue;if(_0x2645c1['isNextTo']||_0x2645c1['containsRangeInObject']||_0x2645c1['isInsideObject'])continue;if(_0x4a2412['data']['formatGroupId']!=_0x4b06be['formatGroupId'])continue;if(!qt(_0x4a2412,_0x21423b))continue;const _0x833f69=_0x4a2412['getFirstRange']();if(_0x4a2412['subType']==_0x4dc31f){if(_0x833f69['containsRange'](_0x5a2491,!0x0))return null;_0x1a61b8=_0x1a61b8['isBefore'](_0x833f69['start'])?_0x1a61b8:_0x833f69['start'],_0x297904=_0x297904['isAfter'](_0x833f69['end'])?_0x297904:_0x833f69['end'],_0x1599ac?_0x833f69['start']['isBefore'](_0x1599ac['getFirstRange']()['start'])?(_0x1599ac['removeMarkers'](),_0x1599ac=_0x4a2412):_0x4a2412['removeMarkers']():_0x1599ac=_0x4a2412;}else{const _0x4494b5=_0x5a2491['getIntersection'](_0x833f69);this['_cutOutSuggestionMarker'](_0x4a2412,_0x4494b5);}}const _0x123022=this['editor']['plugins']['get']('Users')['me'],_0x4f5be5=_0x546e08(),_0x25eba5=_0x123022['id'];if(_0x1599ac)return this['_setSuggestionRange'](_0x1599ac,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0x1599ac;{const _0xcaafcf=this['_setSuggestionData']({'id':_0x4f5be5,'type':'formatBlock:'+_0x4dc31f,'data':_0x4b06be,'createdAt':new Date(),'authorId':_0x25eba5,'attributes':_0x21423b});return this['_addSuggestionMarker']('formatBlock:'+_0x4dc31f,_0x4f5be5,_0x25eba5,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0xcaafcf;}}['markMultiRangeBlockFormat'](_0x4575a4,_0x501210,_0x3fd6ee=[],_0x798e43=null,_0x37d50b={}){_0x501210['formatGroupId']||(_0x501210['formatGroupId']=_0x501210['commandName']);const _0x48c239=_0x4575a4[0x0];_0x501210['multipleBlocks']=_0x48c239['is']('range'),_0x798e43=_0x798e43||Gt(_0x501210);const _0x2ae3bd=_0x3fd6ee['map'](_0x704829=>Lt(_0x704829,this['_model'])),_0x117d33=_0x48c239['is']('range')?_0x4575a4:_0x4575a4['map'](_0x18a58e=>Lt(_0x18a58e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3deaba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x3deaba(_0x117d33,_0x501210,_0x37d50b)),null;}_0x2ae3bd['push'](..._0x117d33);let _0x73ca5c=!0x0;for(const _0x3c86c4 of _0x2ae3bd)if(!this['_rangeIsInLocalUserInsertion'](_0x3c86c4)){_0x73ca5c=!0x1;break;}if(_0x73ca5c&&'always'!==this['_trackFormatChanges']){const _0x98ed85=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x98ed85(_0x117d33,_0x501210,_0x37d50b)),null;}const _0x59800e=this['editor']['plugins']['get']('Users')['me'];for(const _0x46b5bb of this['getSuggestions']()){if(_0x46b5bb['author']['id']!=_0x59800e['id'])continue;if('formatBlock'!=_0x46b5bb['type']||_0x46b5bb['data']['formatGroupId']!=_0x501210['formatGroupId'])continue;if(!qt(_0x46b5bb,_0x37d50b))continue;const _0x4458ff=_0x46b5bb['subType']==_0x798e43;for(let _0x1db6dc=0x0;_0x1db6dc<_0x117d33['length'];_0x1db6dc++){const _0x1a02ff=_0x117d33[_0x1db6dc];for(const _0xe0aaad of _0x46b5bb['getMarkers']()){const _0x2c84d0=_0xe0aaad['getRange']();if(_0x1a02ff['isEqual'](_0x2c84d0)){_0x4458ff?(_0x117d33['splice'](_0x1db6dc,0x1),_0x1db6dc--):_0x46b5bb['removeMarker'](_0xe0aaad['name']);break;}}}}if(0x0==_0x117d33['length'])return null;const _0x319fb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'join');for(const _0x925261 of this['getSuggestions']())if(_0x925261['author']['id']==_0x59800e['id']&&'formatBlock'==_0x925261['type']&&_0x925261['data']['formatGroupId']==_0x501210['formatGroupId']&&_0x925261['subType']==_0x798e43&&qt(_0x925261,_0x37d50b)&&(_0x319fb6(_0x925261['getRanges'](),_0x117d33)||_0x319fb6(_0x117d33,_0x925261['getRanges']()))){for(const _0x366eb9 of _0x117d33)_0x925261['addRange'](_0x366eb9);return _0x925261;}const _0x2b941c=_0x546e08(),_0x46e2af=_0x59800e['id'],_0x20a7ad='formatBlock:'+_0x798e43,_0x19fcae=this['_setSuggestionData']({'id':_0x2b941c,'type':_0x20a7ad,'data':_0x501210,'createdAt':new Date(),'authorId':_0x46e2af,'attributes':_0x37d50b});for(const _0x464c04 of _0x117d33)this['_addSuggestionMarker'](_0x20a7ad,_0x2b941c,_0x46e2af,_0x464c04,u['getMultiRangeId']());return _0x19fcae;}['markDeletion'](_0x1c6977,_0x495281=null,_0x11c6dc={}){if(_0x1c6977['isCollapsed'])return null;const _0x140be4=this['editor']['plugins']['get']('Users')['me'],_0x266e8b=new _0x1ac7bd(_0x1c6977['start'],_0x1c6977['end']);for(const {suggestion:_0x4abef9,meta:_0x451c8a}of this['_findSuggestions'](_0x266e8b,'insertion'))if(_0x451c8a['isOwn']&&!_0x451c8a['isNextTo']){if(_0x4abef9['isMultiRange']){const _0x54c1c7=_0x4abef9['getRanges']()['filter'](_0x11000c=>'$graveyard'!=_0x11000c['root']['rootName']);_0x54c1c7['every'](_0x1d59c8=>_0x266e8b['containsRange'](_0x1d59c8,!0x0))&&_0x4abef9['discard']();if(_0x54c1c7['some'](_0x3a0b91=>_0x3a0b91['containsRange'](_0x266e8b,!0x0))){const _0x58ecee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x495281,'accept');return this['forceDefaultExecution'](()=>_0x58ecee([_0x266e8b],null,_0x11c6dc)),null;}}else{const _0x13c93c=_0x266e8b['getIntersection'](_0x4abef9['getFirstRange']());null!==_0x13c93c&&_0x4abef9['_onDiscard']([_0x13c93c],null,_0x11c6dc);}}if(_0x266e8b['detach'](),_0x266e8b['isCollapsed']||'$graveyard'==_0x266e8b['root']['rootName'])return null;let _0xcd8a58=null,_0x49df57=_0x266e8b['start'],_0x4550fa=_0x266e8b['end'];const _0x5b94cb=this['_findSuggestions'](_0x266e8b,'deletion');for(const {suggestion:_0x2e0be3,meta:_0x2f891d}of _0x5b94cb){const _0x1ed36=this['_model']['createRange'](_0x49df57,_0x4550fa);if(_0x2f891d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f891d['containsRangeInObject']&&!_0x2f891d['isInsideObject'])){if(_0x2e0be3['isMultiRange']){if(!qt(_0x2e0be3,_0x11c6dc))continue;let _0x347eb0=!0x0;for(const _0x368e7f of _0x2e0be3['getRanges']()){if(_0x368e7f['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;_0x1ed36['containsRange'](_0x368e7f)||(_0x347eb0=!0x1);}_0x347eb0&&_0x2e0be3['discard']();}else{const _0x2859a7=_0x2e0be3['getFirstRange']();if(_0x2859a7['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;if(!qt(_0x2e0be3,_0x11c6dc)){_0x1ed36['containsRange'](_0x2859a7)?_0x2e0be3['removeMarkers']():_0x2859a7['containsPosition'](_0x49df57)?_0x49df57=_0x2859a7['end']:_0x2859a7['containsPosition'](_0x4550fa)&&(_0x4550fa=_0x2859a7['start']);continue;}_0x49df57=_0x49df57['isBefore'](_0x2859a7['start'])?_0x49df57:_0x2859a7['start'],_0x4550fa=_0x4550fa['isAfter'](_0x2859a7['end'])?_0x4550fa:_0x2859a7['end'],_0x11c6dc=Object['assign']({},_0x2e0be3['attributes']),_0xcd8a58?_0x2859a7['start']['isBefore'](_0xcd8a58['getFirstRange']()['start'])?(_0xcd8a58['removeMarkers'](),_0xcd8a58=_0x2e0be3):_0x2e0be3['removeMarkers']():_0xcd8a58=_0x2e0be3;}}}if(_0xcd8a58)return this['_setSuggestionRange'](_0xcd8a58,this['_model']['createRange'](_0x49df57,_0x4550fa)),_0xcd8a58;{const _0x244435=_0x546e08(),_0x4217b9=this['_model']['createRange'](_0x49df57,_0x4550fa),_0x28679c=_0x140be4['id'],_0x339112=_0x495281?'deletion:'+_0x495281:'deletion',_0xb31888=this['_setSuggestionData']({'id':_0x244435,'type':_0x339112,'createdAt':new Date(),'authorId':_0x28679c,'attributes':_0x11c6dc});return this['_addSuggestionMarker'](_0x339112,_0x244435,_0x28679c,_0x4217b9),_0xb31888;}}['markMultiRangeDeletion'](_0x4e654e,_0xefd25b='multi',_0x22929e={}){const _0x3d5972=this['editor']['plugins']['get']('Users')['me'],_0x22a87f=_0x4e654e['map'](_0x368b9e=>new _0x1ac7bd(_0x368b9e['start'],_0x368b9e['end'])),_0x36a922=new Set();for(const {suggestion:_0x5b3be8,meta:_0x5a9978}of this['_findSuggestions'](_0x22a87f,'insertion'))_0x5a9978['isOwn']&&!_0x5a9978['isNextTo']&&_0x36a922['add'](_0x5b3be8);for(const _0x26eeab of _0x36a922)if(_0x26eeab['isMultiRange']){const _0xeae78c=_0x26eeab['getRanges']();(!_0x26eeab['attributes']||!_0x26eeab['attributes']['skipNestingCheck'])&&(_0xeae78c['every'](_0x412075=>_0x22a87f['some'](_0x126443=>_0x126443['containsRange'](_0x412075,!0x0)))&&_0x26eeab['discard']());if(_0x22a87f['every'](_0x28604d=>_0xeae78c['some'](_0x15505f=>_0x15505f['containsRange'](_0x28604d,!0x0)))){const _0x17e5ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0x17e5ba(_0x4e654e,null,_0x22929e)),null;}}else{const _0x106ea=_0x26eeab['getFirstRange']();_0x22a87f['some'](_0x3f0858=>_0x3f0858['containsRange'](_0x106ea,!0x0))&&_0x26eeab['discard']();if(_0x22a87f['every'](_0xb29a78=>_0x106ea['containsRange'](_0xb29a78,!0x0))){const _0xda8f66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0xda8f66(_0x22a87f,null,_0x22929e)),null;}}const _0x26d8dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'join');let _0xce5ce=null;for(const _0x180dc8 of this['getSuggestions']())if(_0x180dc8['author']['id']==_0x3d5972['id']&&_0x180dc8['isInContent']&&'deletion'==_0x180dc8['type']&&_0x180dc8['subType']==_0xefd25b&&qt(_0x180dc8,_0x22929e)&&(_0x26d8dd(_0x180dc8['getRanges'](),_0x22a87f)||_0x26d8dd(_0x22a87f,_0x180dc8['getRanges']()))){if(_0xce5ce){if(_0x180dc8['commentThread']&&_0x180dc8['commentThread']['length'])continue;for(const _0x84761b of _0x180dc8['getRanges']())_0xce5ce['isIntersectingWithRange'](_0x84761b)||_0xce5ce['addRange'](_0x84761b);_0x180dc8['removeMarkers']();}else{_0xce5ce=_0x180dc8;for(const _0x3e8bc7 of _0x22a87f)_0x180dc8['isIntersectingWithRange'](_0x3e8bc7)||_0x180dc8['addRange'](_0x3e8bc7);}}if(_0xce5ce)return _0xce5ce;_0x36a922['clear']();for(const {suggestion:_0x4260cd,meta:_0x543011}of this['_findSuggestions'](_0x22a87f,'deletion'))_0x543011['isOwn']&&(this['_mergeNestedSuggestions']||!_0x543011['containsRangeInObject']&&!_0x543011['isInsideObject'])&&qt(_0x4260cd,_0x22929e)&&_0x36a922['add'](_0x4260cd);for(const _0x6aab5e of _0x36a922){const _0x19901a=_0x6aab5e['getRanges']();if(!_0x22929e||!_0x22929e['skipNestingCheck']){if(_0x22a87f['every'](_0x54788c=>_0x19901a['some'](_0x4a0e2d=>_0x4a0e2d['containsRange'](_0x54788c,!0x0))))return _0x6aab5e;}(!_0x6aab5e['attributes']||!_0x6aab5e['attributes']['skipNestingCheck'])&&(_0x19901a['every'](_0xb4ee10=>_0x22a87f['some'](_0x10e06d=>_0x10e06d['containsRange'](_0xb4ee10,!0x0)))&&_0x6aab5e['discard']());}const _0x27af77=_0x546e08(),_0x52041c=_0x3d5972['id'],_0x53c37b='deletion:'+_0xefd25b,_0x47b3c1=this['_setSuggestionData']({'id':_0x27af77,'type':_0x53c37b,'createdAt':new Date(),'authorId':_0x52041c,'attributes':_0x22929e});for(const _0x246460 of _0x22a87f)_0x246460['detach'](),_0x246460['isCollapsed']||'$graveyard'==_0x246460['root']['rootName']||this['_addSuggestionMarker'](_0x53c37b,_0x27af77,_0x52041c,_0x246460,u['getMultiRangeId']());return _0x47b3c1;}['markAttributeChange'](_0x1aae48,_0x98c35a,_0x768b46,_0x27a9fd,_0xfc4a7){if(_0x1aae48['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1749ac=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b4c74=Array['from'](this['_suggestions']['values']())['filter'](_0x32a31f=>'attribute'==_0x32a31f['type']&&_0x32a31f['data']['key']==_0x98c35a&&_0x32a31f['isIntersectingWithRange'](_0x1aae48));if('default'===this['_trackFormatChanges']){const _0xfd4aac=this['_findSuggestions'](_0x1aae48,'insertion')['filter'](({meta:_0x4689a5})=>_0x4689a5['isOwn']&&!_0x4689a5['isInsideObject']&&!_0x4689a5['isNextTo'])['map'](({suggestion:_0x35b7bb})=>_0x35b7bb);_0x3b4c74['unshift'](..._0xfd4aac);}const _0x308827=new Map([[_0x1aae48,_0x768b46]]);for(const _0x4c5bad of _0x3b4c74){const _0x1c1b8d='attribute'==_0x4c5bad['type']?_0x4c5bad['data']['oldValue']:void 0x0,_0x568940=_0x4c5bad['getFirstRange'](),_0x2f9560=Array['from'](_0x308827['keys']())['find'](_0x12f8b8=>_0x12f8b8['isIntersecting'](_0x568940));if(!_0x2f9560)continue;const _0x12f5f1=_0x2f9560['getDifference'](_0x568940);this['_isBlockAttribute'](_0x98c35a)&&'insertion'==_0x4c5bad['type']&&0x0!=_0x12f5f1['length']||(_0x308827['delete'](_0x2f9560),_0x12f5f1['forEach'](_0x2edd14=>{_0x308827['set'](_0x2edd14,_0x768b46);}),'insertion'!=_0x4c5bad['type']&&_0x1c1b8d!=_0x27a9fd&&_0x308827['set'](_0x2f9560['getIntersection'](_0x568940),_0x1c1b8d));}const _0x235354=[];for(const [_0x532f96,_0xd42de9]of _0x308827){const _0x59205c=_0x546e08(),_0x2535d3={'key':_0x98c35a,'oldValue':_0xd42de9,'newValue':_0x27a9fd};_0x98c35a['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':_0x98c35a});const _0x3e0c83=('attribute:'+(_0x98c35a+'|'+Gt({'newValue':_0x27a9fd})))['substring'](0x0,0x3c),_0x459061=this['_setSuggestionData']({'id':_0x59205c,'type':_0x3e0c83,'data':_0x2535d3,'createdAt':new Date(),'authorId':_0x1749ac,'attributes':_0xfc4a7});_0x235354['push'](_0x459061),this['_addSuggestionMarker'](_0x3e0c83,_0x59205c,_0x1749ac,_0x532f96);}return _0x235354;}['enableDefaultAttributesIntegration'](_0x46bfdb){this['enableCommand'](_0x46bfdb,(_0x110403,..._0x1fbdb9)=>{this['_recordAttributeChanges'](()=>{_0x110403(..._0x1fbdb9);});});}['registerBlockAttribute'](_0x143935){this['_blockAttributeKeys']['add'](_0x143935);}['registerInlineAttribute'](_0x55a84e){this['_inlineAttributeKeys']['add'](_0x55a84e);}['_getAttributeKey'](_0x2739f7){return'attribute'==_0x2739f7['type']?_0x2739f7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57fb27,_0x4fb7f6){const _0x2c7fda=_0x57fb27['getFirstMarker']();this['_model']['change'](_0x4ff37d=>{_0x4ff37d['updateMarker'](_0x2c7fda,{'range':_0x4fb7f6});});}['_addThreadToSuggestion'](_0x34db6c){const _0x3d9072=_0x34db6c['id'],_0x40057d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3d9072)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40057d,'threadId':_0x3d9072,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2dde39=this['_commentsRepository']['getCommentThread'](_0x3d9072);_0x2dde39['unbind']('isRemovable'),_0x2dde39['isRemovable']=!0x1,_0x34db6c['commentThread']=_0x2dde39;}['_checkSuggestionCorrectness'](_0x2d8d98,_0x31932d,_0x4ea82a,_0x16824a){if(_0x2d8d98['type']!=_0x31932d||_0x2d8d98['subType']!=_0x4ea82a||_0x2d8d98['creator']['id']!=_0x16824a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ee7fd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1e11c7,_0x5a8500){const _0x47dfaf=_0x1e11c7['getFirstRange']();if(_0x5a8500['isEqual'](_0x47dfaf))_0x1e11c7['removeMarkers']();else{if(_0x47dfaf['containsRange'](_0x5a8500)){const _0x436408=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x436408));const _0x19ba49=_0x546e08(),_0x2d510f=_0x1e11c7['creator']['id'],_0xb9c08e=_0x1e11c7['type']+':'+_0x1e11c7['subType'];this['_setSuggestionData']({'id':_0x19ba49,'type':_0xb9c08e,'createdAt':new Date(),'authorId':_0x2d510f,'data':_0x1e11c7['data'],'attributes':_0x1e11c7['attributes']});const _0x2bd2d4=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after'),_0x177e48=this['_model']['createRange'](_0x2bd2d4,_0x47dfaf['end']);this['_addSuggestionMarker'](_0xb9c08e,_0x19ba49,_0x2d510f,_0x177e48);}else{if(_0x47dfaf['containsPosition'](_0x5a8500['start'])){const _0x5c5369=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x5c5369));}else{const _0x267053=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x267053,_0x47dfaf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe99f07){for(const {suggestion:_0x5ac2d9,meta:_0x272be0}of this['_findSuggestions'](_0xe99f07,'insertion')){if(!_0x272be0['isOwn'])continue;const _0x127897=_0x5ac2d9['getRanges']();for(const _0x1d605c of _0x127897)if(!_0xe99f07['getDifference'](_0x1d605c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x35c70b){const _0x26a055=this['editor']['plugins']['get']('Users')['getUser'](_0x35c70b);if(!_0x26a055)throw new _0x4ee7fd('track-changes-user-not-found',this);return _0x26a055;}['_getExternalAuthor'](_0x284101){const _0x2894e8=this['editor']['plugins']['get']('Users'),_0x244a7b=_0x4bbe82('external:'+_0x284101),_0xeb8cc1=_0x2894e8['getUser'](_0x244a7b);return _0xeb8cc1||_0x2894e8['addUser']({'id':_0x244a7b,'name':_0x284101});}['_createSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x5281a9,_0x14b928){const _0x1fdb5a=this['_getAuthorFromId'](_0x5281a9),_0x195a2d=this['_suggestionFactory']['buildSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x1fdb5a,_0x14b928,_0x58f347=>{this['_updateSuggestionData'](_0x5865ee,{'attributes':_0x58f347});const _0x72018c=this['getSuggestion'](_0x5865ee);this['_joinWithAdjacentSuggestions'](new Set([_0x72018c])),this['_refreshSuggestionsChain'](new Set([_0x72018c]));});return this['listenTo'](_0x195a2d,'accept',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x195a2d,'discard',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5865ee,_0x195a2d),this['_suggestionState']['set'](_0x195a2d,'notReady'),_0x195a2d;}['_splitMarkerName'](_0x57a3a6){const _0xfe81e1=_0x57a3a6['split'](':');return{'group':_0xfe81e1[0x0],'type':_0xfe81e1[0x1],'subType':_0xfe81e1['length']>=0x5?_0xfe81e1[0x2]:null,'id':_0xfe81e1['length']<0x5?_0xfe81e1[0x2]:_0xfe81e1[0x3],'authorId':_0xfe81e1['length']<0x5?_0xfe81e1[0x3]:_0xfe81e1[0x4],'markerCount':0x6==_0xfe81e1['length']?_0xfe81e1[0x5]:null};}['_breakSuggestionMarker'](_0x36a94c,_0x1ae112,_0x1ed9a7){const _0x366f2b=_0x36a94c['getFirstRange'](),_0x1c6ec6=_0x366f2b['start'],_0x46adcb=_0x366f2b['end'];this['_setSuggestionRange'](_0x36a94c,this['_model']['createRange'](_0x1c6ec6,_0x1ae112));const _0x275cbd=_0x546e08(),_0x38cb25=_0x36a94c['creator']['id'],_0x36e1ba=_0x36a94c['type']+(_0x36a94c['subType']?':'+_0x36a94c['subType']:'');this['_setSuggestionData']({'id':_0x275cbd,'type':_0x36e1ba,'createdAt':new Date(),'authorId':_0x38cb25,'originalSuggestionId':_0x36a94c['id'],'attributes':_0x36a94c['attributes'],'data':_0x36a94c['data']});const _0x2ea4a2=this['_getAttributeKey'](_0x36a94c);('formatBlock'==_0x36a94c['type']||_0x2ea4a2&&this['_isBlockAttribute'](_0x2ea4a2))&&(_0x1ed9a7=this['_model']['createPositionBefore'](_0x1ed9a7['parent'])),this['_addSuggestionMarker'](_0x36e1ba,_0x275cbd,_0x38cb25,this['_model']['createRange'](_0x1ed9a7,_0x46adcb));}['_findSuggestions'](_0x51c3a9,_0x2aad3f=null){const _0x3ad251=[],_0x11a52b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x51c3a9)||(_0x51c3a9=[_0x51c3a9]);for(const _0xfc0cfc of this['getSuggestions']()){if(!_0xfc0cfc['isInContent'])continue;if(_0x2aad3f&&_0xfc0cfc['type']!=_0x2aad3f)continue;let _0x5dbeec=!0x1;for(const _0x19d1f of _0xfc0cfc['getRanges']()){for(const _0x56d6f5 of _0x51c3a9){const _0x39c848=_0x56d6f5['start']['isEqual'](_0x19d1f['end'])||_0x56d6f5['end']['isEqual'](_0x19d1f['start']);if(_0x39c848||_0x56d6f5['getIntersection'](_0x19d1f)){const _0x487e1f=_0x56d6f5['containsRange'](_0x19d1f)&&Ot(this['_model']['schema'],_0x19d1f['start'],_0x56d6f5),_0x2cd468=_0x19d1f['containsRange'](_0x56d6f5)&&Ot(this['_model']['schema'],_0x56d6f5['start'],_0x19d1f);_0x3ad251['push']({'suggestion':_0xfc0cfc,'meta':{'isOwn':_0x11a52b==_0xfc0cfc['author'],'isNextTo':_0x39c848,'isInsideObject':_0x487e1f,'containsRangeInObject':_0x2cd468}}),_0x5dbeec=!0x0;break;}}if(_0x5dbeec)break;}}return _0x3ad251;}['_addSuggestionMarker'](_0x5531ad,_0x1a9264,_0x2d5d40,_0x3b2934,_0x5da893){this['_model']['change'](_0xa41882=>{let _0x4440cc='suggestion:'+_0x5531ad+':'+_0x1a9264+':'+_0x2d5d40;_0x5da893&&(_0x4440cc=_0x4440cc+':'+_0x5da893),_0xa41882['addMarker'](_0x4440cc,{'range':_0x3b2934,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x197975){const _0x541cf9=_0x197975['previous'],_0x5a1795=_0x197975['next'];_0x197975['previous']=null,_0x197975['next']=null,null!=_0x541cf9&&_0x541cf9['next']==_0x197975&&(_0x541cf9['next']=_0x5a1795),null!=_0x5a1795&&_0x5a1795['previous']==_0x197975&&(_0x5a1795['previous']=_0x541cf9),'ready'==this['_suggestionState']['get'](_0x197975)&&(this['_suggestionState']['set'](_0x197975,'removed'),this['fire']('suggestionUnloaded',_0x197975,_0x541cf9,_0x5a1795));}['_setSuggestionData'](_0x3c3337){const _0x7bd63b=_0x3c3337['id'],_0x2cdd2c=this['addSuggestionData'](_0x3c3337);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x465c53=this['editor']['plugins']['get']('PendingActions'),_0x2a3402=_0x2cdd2c['hasComments'],_0x2faff0=_0x2cdd2c['subType']?_0x2cdd2c['type']+':'+_0x2cdd2c['subType']:_0x2cdd2c['type'],_0x20cf87=this['editor']['locale'],_0x47b5e3=_0x465c53['add'](o(_0x20cf87,'PENDING_ACTION_SUGGESTION')),_0x548ddd={'id':_0x7bd63b,'type':_0x2faff0,'hasComments':_0x2a3402,'data':_0x3c3337['data']||null,'originalSuggestionId':_0x3c3337['originalSuggestionId']||null,'attributes':_0x2cdd2c['attributes']};this['_adapter']['addSuggestion'](_0x548ddd)['then'](_0x36ea1e=>{_0x2cdd2c['_saved']=!0x0,_0x465c53['remove'](_0x47b5e3),_0x36ea1e&&_0x36ea1e['createdAt']&&(this['_suggestions']['get'](_0x7bd63b)['createdAt']=_0x36ea1e['createdAt']);})['catch'](_0x559f01=>{throw _0x4639c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2cdd2c['discard']();}),_0x2cdd2c['stopListening'](),this['_suggestions']['delete'](_0x2cdd2c['id']),this['_suggestionState']['delete'](_0x2cdd2c),_0x559f01;});}return _0x2cdd2c;}['_isBlockAttribute'](_0x566485){return this['_blockAttributeKeys']['has'](_0x566485);}['_updateSuggestionData'](_0x429122,_0x47a31f){const _0x1a2c73=this['editor']['plugins']['get']('PendingActions'),_0x582eb0=this['getSuggestion'](_0x429122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x582eb0['_saved']){const _0x2da2ea=_0x1a2c73['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x429122,_0x47a31f)['then'](()=>{_0x1a2c73['remove'](_0x2da2ea);});}else _0x582eb0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x429122,_0x47a31f);});}}['_getSuggestionData'](_0x3e76ea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ee7fd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e76ea);}['_handleNewSuggestionMarker'](_0x4de0be){const {id:_0x364501,type:_0x135c24,subType:_0xabe19b,authorId:_0x4fd53d}=this['_splitMarkerName'](_0x4de0be),_0x51231e=this['_suggestions']['get'](_0x364501)||this['_createSuggestion'](_0x135c24,_0xabe19b,_0x364501,_0x4fd53d,{});switch(this['_checkSuggestionCorrectness'](_0x51231e,_0x135c24,_0xabe19b,_0x4fd53d),this['_suggestionState']['get'](_0x51231e)){case'notReady':this['_getSuggestionData'](_0x364501)['then'](_0x3ba1e2=>{let _0x24b8c7=Promise['resolve']();_0x3ba1e2['hasComments']&&(_0x24b8c7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x364501})),_0x24b8c7['then'](()=>{this['addSuggestionData'](_0x3ba1e2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51231e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x364501,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51231e,'ready'),this['fire']('suggestionLoaded',_0x51231e);break;case'ready':this['fire']('suggestionChanged',_0x51231e);}return _0x51231e['addMarkerName'](_0x4de0be),_0x51231e;}['_refreshSuggestionsChain'](_0x213d27){const _0x11065e=Array['from'](_0x213d27),_0x1e78f1=_0x11065e['filter'](_0x587407=>'attribute'==_0x587407['type']);this['_refreshAttributeSuggestionsChain'](_0x1e78f1);const _0x5d1c1d=_0x11065e['filter'](_0x276ca4=>!_0x276ca4['isMultiRange']&&'attribute'!=_0x276ca4['type']),_0x3b0354=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2bfb5=>!_0xc2bfb5['isMultiRange']&&'attribute'!=_0xc2bfb5['type']),_0x3855f8=_0x3b0354['filter'](_0x205adb=>!_0x213d27['has'](_0x205adb)),_0x530c52=new Map(_0x3b0354['map'](_0x4ecf25=>[_0x4ecf25,this['_suggestionFactory']['getSuggestionCallback'](_0x4ecf25['type'],_0x4ecf25['subType'],'chain')])),_0xc3c749=new Map(_0x3b0354['map'](_0x3dda7f=>[_0x3dda7f,_0x3dda7f['getFirstRange']()])),_0x1bf7cd=new Set(),_0x45e27b=new Set();for(let _0x2addb2=0x0;_0x2addb2<_0x5d1c1d['length'];_0x2addb2++)_0x91b33d(_0x5d1c1d[_0x2addb2],_0x5d1c1d,_0x2addb2+0x1);for(let _0x31fc5a=0x0;_0x31fc5a<_0x5d1c1d['length'];_0x31fc5a++)_0x91b33d(_0x5d1c1d[_0x31fc5a],_0x3855f8,0x0);const _0x55b994=new Set();for(let _0x5560cf=0x0;_0x5560cf<_0x5d1c1d['length'];_0x5560cf++){const _0x304f73=_0x5d1c1d[_0x5560cf];!_0x45e27b['has'](_0x304f73)&&_0x304f73['previous']&&(_0x55b994['add'](_0x304f73['previous']),_0x304f73['previous']['next']===_0x304f73&&(_0x304f73['previous']['next']=null),_0x304f73['previous']=null),!_0x1bf7cd['has'](_0x304f73)&&_0x304f73['next']&&(_0x55b994['add'](_0x304f73['next']),_0x304f73['next']['previous']===_0x304f73&&(_0x304f73['next']['previous']=null),_0x304f73['next']=null);}function _0x91b33d(_0x26a3ad,_0x5d7b14,_0x49437d){for(let _0x47f9d9=_0x49437d;_0x47f9d9<_0x5d7b14['length'];_0x47f9d9++){const _0x3ea18e=_0x2b6ccb(_0x26a3ad,_0x5d7b14[_0x47f9d9]);_0x3ea18e&&(_0x3ea18e[0x0]['next']=_0x3ea18e[0x1],_0x3ea18e[0x1]['previous']=_0x3ea18e[0x0],_0x1bf7cd['add'](_0x3ea18e[0x0]),_0x45e27b['add'](_0x3ea18e[0x1]));}}function _0x2b6ccb(_0x3ac6fb,_0x4eec77){if(_0x3ac6fb['author']['id']!==_0x4eec77['author']['id'])return null;const _0x56a0e0=_0x530c52['get'](_0x3ac6fb)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77));if(!_0x56a0e0)return null;return _0x530c52['get'](_0x4eec77)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77))?_0x56a0e0[0x1]['commentThread']&&_0x56a0e0[0x1]['commentThread']['length']?null:_0x56a0e0:null;}_0x55b994['size']&&this['_refreshSuggestionsChain'](_0x55b994);}['_refreshAttributeSuggestionsChain'](_0x1e07ce){if(0x0==_0x1e07ce['length'])return;const _0x243297=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45e8d5=>'attribute'==_0x45e8d5['type']&&_0x45e8d5['_isDataLoaded']),_0x4a985c=[],_0x44cfb7=new Map();for(const _0x53e889 of _0x243297){const _0x16d887=_0x4bbe82(_0x53e889['attributes']);_0x44cfb7['has'](_0x16d887)||(_0x44cfb7['set'](_0x16d887,_0x4a985c['length']),_0x4a985c['push']([]));const _0x5cb38c=_0x44cfb7['get'](_0x16d887);_0x4a985c[_0x5cb38c]['push'](_0x53e889);}!(function(){_0x4a985c['sort']((_0x175656,_0xd43869)=>{const _0x543a07=_0x175656[0x0]['createdAt'],_0x118df5=_0xd43869[0x0]['createdAt'];return _0x543a07==_0x118df5?_0x175656[0x0]['attributes']['groupId']<_0xd43869[0x0]['attributes']['groupId']?-0x1:0x1:_0x543a07<_0x118df5?-0x1:0x1;});for(const _0x1f445a of _0x4a985c)_0x1f445a['sort']((_0x50bf98,_0x20120e)=>_0x50bf98['id']<_0x20120e['id']?-0x1:0x1);}());for(let _0x227226=0x0;_0x227226<_0x4a985c['length'];_0x227226++){if(0x0==_0x4a985c[_0x227226]['length'])continue;const _0x942332=[];for(let _0x27673f=_0x227226+0x1;_0x27673f<_0x4a985c['length'];_0x27673f++)0x0!=_0x4a985c[_0x27673f]['length']&&_0x151123(_0x4a985c[_0x227226],_0x4a985c[_0x27673f])&&_0x942332['push'](_0x27673f);for(const _0x3e31ab of _0x942332)_0x4a985c[_0x227226]=_0x4a985c[_0x227226]['concat'](_0x4a985c[_0x3e31ab]),_0x4a985c[_0x3e31ab]=[];}for(const _0x188d13 of _0x4a985c)for(let _0xf83b=0x0;_0xf83b<_0x188d13['length'];_0xf83b++){const _0x1f7a62=_0x188d13[_0xf83b+0x1]||null;_0x188d13[_0xf83b]['next']!==_0x1f7a62&&(_0x188d13[_0xf83b]['next']=_0x1f7a62);}for(const _0x4fbe09 of _0x4a985c)for(let _0x4fa6df=0x0;_0x4fa6df<_0x4fbe09['length'];_0x4fa6df++){const _0xffbc5=_0x4fbe09[_0x4fa6df-0x1]||null;_0x4fbe09[_0x4fa6df]['previous']!==_0xffbc5&&(_0x4fbe09[_0x4fa6df]['previous']=_0xffbc5);}function _0x151123(_0x2160b7,_0x5bedd7){if(_0x2160b7[0x0]['attributes']['groupId']!==_0x5bedd7[0x0]['attributes']['groupId']&&_0x2160b7[0x0]['author']!==_0x5bedd7[0x0]['author'])return!0x1;if(!function(_0x188900,_0xe783c6){if(!_0x188900['hasComments']&&!_0xe783c6['hasComments'])return!0x0;if(_0x188900['hasComments']&&_0xe783c6['hasComments'])return!0x1;if(_0x188900['hasComments']&&_0xe783c6['createdAt']<_0x188900['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe783c6['hasComments']&&_0x188900['createdAt']<_0xe783c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2160b7[0x0],_0x5bedd7[0x0]))return!0x1;const _0x444f0e=Tt(_0x2160b7[0x0]['attributes'],'groupId'),_0x31cbfe=Tt(_0x5bedd7[0x0]['attributes'],'groupId');if(!_0x11af30(_0x444f0e,_0x31cbfe))return!0x1;return!!_0x2160b7['every'](_0xb5c1c6=>_0x5bedd7['some'](_0x180aa9=>_0xb5c1c6['getFirstRange']()['isEqual'](_0x180aa9['getFirstRange']())))&&_0x5bedd7['every'](_0x21c423=>_0x2160b7['some'](_0x14524b=>_0x21c423['getFirstRange']()['isEqual'](_0x14524b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42af53){const _0x1be0e7=Array['from'](_0x42af53),_0x43968b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5535c2=_0x43968b['filter'](_0x1dde22=>!_0x42af53['has'](_0x1dde22)),_0x54e3d7=new Map(_0x1be0e7['map'](_0x5078f6=>[_0x5078f6,this['_suggestionFactory']['getSuggestionCallback'](_0x5078f6['type'],_0x5078f6['subType'],'join')])),_0xf371ff=new Map(_0x43968b['map'](_0x4d1d13=>[_0x4d1d13,_0x4d1d13['getRanges']()]));for(let _0x39ee57=0x0;_0x39ee57<_0x1be0e7['length'];_0x39ee57++){if(_0x2914d6(this,_0x1be0e7[_0x39ee57],_0x1be0e7,_0x39ee57+0x1))return!0x0;}for(let _0x28ccdd=0x0;_0x28ccdd<_0x1be0e7['length'];_0x28ccdd++){if(_0x2914d6(this,_0x1be0e7[_0x28ccdd],_0x5535c2,0x0))return!0x0;}return!0x1;function _0x2914d6(_0x4b9b35,_0x33f7a3,_0x13a770,_0x875bbe){for(let _0x2bca5d=_0x875bbe;_0x2bca5d<_0x13a770['length'];_0x2bca5d++){const _0x46902a=_0x13a770[_0x2bca5d];if(_0x46902a['type']!==_0x33f7a3['type']||_0x46902a['author']['id']!==_0x33f7a3['author']['id']||_0x46902a['subType']!==_0x33f7a3['subType'])continue;if(!Jt(_0x33f7a3,_0x46902a))continue;if('attribute'==_0x33f7a3['type']&&_0x33f7a3['data']['oldValue']!=_0x46902a['data']['oldValue'])continue;if('attribute'==_0x33f7a3['type']&&_0x4b9b35['_isBlockAttribute'](_0x33f7a3['data']['key']))continue;if('formatBlock'==_0x33f7a3['type']){const _0x43aa6a=_0x4b9b35['editor']['model'],_0x5e424a=_0x33f7a3['getContainedElement']();if(_0x5e424a&&(_0x43aa6a['schema']['isObject'](_0x5e424a)||_0x43aa6a['schema']['isLimit'](_0x5e424a)))continue;}const _0x4d2261=_0x54e3d7['get'](_0x33f7a3),_0x84905d=_0xf371ff['get'](_0x33f7a3),_0x95ed52=_0xf371ff['get'](_0x46902a),_0x4e5e93=_0x33f7a3['commentThread']&&_0x33f7a3['commentThread']['length'],_0x25ba30=_0x46902a['commentThread']&&_0x46902a['commentThread']['length'];if(!_0x4e5e93&&_0x4d2261(_0x95ed52,_0x84905d))return _0x4b9b35['_joinSuggestions'](_0x46902a,_0x33f7a3),_0xf371ff['delete'](_0x33f7a3),!0x0;if(!_0x25ba30&&_0x4d2261(_0x84905d,_0x95ed52))return _0x4b9b35['_joinSuggestions'](_0x33f7a3,_0x46902a),_0xf371ff['delete'](_0x46902a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46bc8b,_0xbaebe){if(_0x46bc8b['isMultiRange']){for(const _0x198216 of _0xbaebe['getRanges']())_0x46bc8b['addRange'](_0x198216);}else{const _0x2a85d0=_0xbaebe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46bc8b,this['_model']['createRange'](_0x46bc8b['getFirstRange']()['start'],_0x2a85d0));}_0xbaebe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x327275,_0x325515,_0x8a40d5){const _0x61f472=_0x327275['startsWith']('format')||_0x327275['startsWith']('attribute')?'FORMATTING':_0x327275['toUpperCase']();return o(this['editor']['locale'],_0x325515+'_'+_0x61f472+'_SUGGESTION_ANNOUNCEMENT',_0x8a40d5);}['_initAriaMarkerChangeAnnouncements'](){const _0x19c706=this['editor'];if(!_0x19c706['ui'])return;const {ariaLiveAnnouncer:_0x4fa14e}=_0x19c706['ui'];_0x4f11ef(this['_model'],({left:_0x1c5ede,entered:_0x5b6380})=>{for(const _0x319506 of _0x1c5ede){const {group:_0x346dd8,type:_0x2419bf}=this['_splitMarkerName'](_0x319506['name']);if('suggestion'===_0x346dd8){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x2419bf,'LEAVE'));break;}}for(const _0x16477e of _0x5b6380){const {group:_0x4b2885,type:_0x416860}=this['_splitMarkerName'](_0x16477e['name']);if('suggestion'===_0x4b2885){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x416860,'ENTER',_0x1ca498(_0x2e5bcc)));break;}}});}['_processAttributeChanges'](_0x228f2b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d92cb=this['editor'],_0x4a6082=_0x4d92cb['model']['document']['differ']['getChanges']();if(0x0==_0x4a6082['length'])return!0x1;const _0x521628=[],_0x9591ad=_0x4a6082['filter'](_0x2849bd=>'attribute'==_0x2849bd['type']),_0x48afd6=_0x4a6082['filter'](_0x43b9a4=>'insert'==_0x43b9a4['type']&&'$text'!=_0x43b9a4['name']),_0x502225=_0x4a6082['filter'](_0x316847=>'remove'==_0x316847['type']&&'$text'!=_0x316847['name']);for(const _0x74117f of _0x9591ad)_0x521628['push']({'key':_0x74117f['attributeKey'],'newValue':_0x74117f['attributeNewValue'],'oldValue':_0x74117f['attributeOldValue'],'range':Pt(_0x74117f['range'],_0x4d92cb['model'])});for(const _0x3edccd of _0x48afd6){const _0x7a4278=_0x502225['find'](_0x2b6dfb=>_0x2b6dfb['position']['isEqual'](_0x3edccd['position']));_0x7a4278&&_0x521628['push']({'key':m,'newValue':_0x3edccd['name'],'oldValue':_0x7a4278['name'],'range':_0x4d92cb['model']['createRangeOn'](_0x3edccd['position']['nodeAfter'])});}return 0x0!=_0x521628['length']&&this['_reduceExistingSuggestions'](_0x228f2b,_0x521628);}['_processAttributeSuggestions'](_0xf8243){let _0xb09222=!0x1;const _0x2503a2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x252a29=>_0x252a29['data']['newRange']&&_0x252a29['name']['startsWith']('suggestion:attribute:'));for(const _0x1e6958 of _0x2503a2){const {subType:_0x4bc2b3,id:_0x212a5a}=this['_splitMarkerName'](_0x1e6958['name']),_0x5a67ce=_0x4bc2b3['split']('|')[0x0];for(const _0x5935af of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5935af['id']!=_0x212a5a&&'attribute'==_0x5935af['type']&&_0x5935af['data']&&_0x5935af['data']['key']==_0x5a67ce&&_0x5935af['getFirstRange']()['isIntersecting'](_0x1e6958['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5935af,_0x1e6958['data']['newRange'],_0xf8243),_0xb09222=!0x0);}return _0xb09222;}['_recordAttributeChanges'](_0xaa83fa){this['_recordAttributeSuggestions']=!0x0,_0xaa83fa();}['_isRegisteredAttribute'](_0x167be6){const _0x135cb3=this['_isBlockAttribute'](_0x167be6),_0xfc61ad=this['_inlineAttributeKeys']['has'](_0x167be6);return _0x135cb3||_0xfc61ad;}['_reduceExistingSuggestions'](_0x5297b6,_0x47a5e1){if(0x0==_0x47a5e1['length'])return!0x1;let _0x513ce1=!0x1;for(const _0x238ef0 of _0x47a5e1){const _0x25fea8=this['_findSuggestions'](_0x238ef0['range'],'attribute')['filter'](_0x1e0926=>!_0x1e0926['meta']['isNextTo'])['map'](_0x14ba5c=>_0x14ba5c['suggestion']),_0x3e820c=_0x4bbe82({'newValue':_0x238ef0['newValue']});_0x25fea8['filter'](_0x3796be=>{const [_0x3ea1e9,_0x48dc25]=_0x3796be['subType']['split']('|');return _0x3ea1e9==_0x238ef0['key']&&_0x48dc25!=_0x3e820c;})['forEach'](_0x599435=>{this['_reduceSuggestionAttributeRange'](_0x599435,_0x238ef0['range'],_0x5297b6),_0x513ce1=!0x0;});}return _0x513ce1;}['_reduceSuggestionAttributeRange'](_0x323f4b,_0x527b07,_0x49fc63){const _0x57cb70=_0x323f4b['getFirstRange']()['getDifference'](_0x527b07);0x0!==_0x57cb70['length']?0x1!==_0x57cb70['length']?this['_breakSuggestionMarker'](_0x323f4b,_0x527b07['start'],_0x527b07['end']):this['_setSuggestionRange'](_0x323f4b,_0x57cb70[0x0]):_0x49fc63['removeMarker'](_0x323f4b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4ba9f8){this['_editor']=_0x4ba9f8,this['_model']=_0x4ba9f8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2298a8,_0x274a6b,_0x41a6a1,_0x38081a,_0xaa0d4d,_0x46b9c4){return new u(this['_model'],{'type':_0x2298a8,'subType':_0x274a6b,'id':_0x41a6a1,'author':_0x38081a,'creator':_0x38081a,'attributes':_0xaa0d4d,'onAttributesChange':_0x46b9c4,'onAccept':(..._0x526a07)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'accept')(..._0x526a07),'onDiscard':(..._0x57431c)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'discard')(..._0x57431c)});}['registerCustomCallback'](_0x4e548f,_0x4905d2,_0x344f49,_0x3d9930){const _0xb16781=_0x4e548f+':'+_0x4905d2+':'+_0x344f49;this['_customCallbacks']['set'](_0xb16781,_0x3d9930);}['getSuggestionCallback'](_0x334e17,_0x28a020,_0xa9b4b5){const _0x1a99d8=_0x334e17+':'+_0x28a020+':'+_0xa9b4b5;return this['_customCallbacks']['get'](_0x1a99d8)||this['_defaultCallbacks']['get'](_0x334e17+':'+_0xa9b4b5);}['_registerDefaultCallbacks'](){const _0x58a252=()=>!0x1,_0x2a8cbf=_0x1b0a3a=>{_0x1b0a3a['sort']((_0x5da7d6,_0x5949d2)=>_0x5da7d6['start']['isBefore'](_0x5949d2['start'])?0x1:-0x1),this['_model']['change'](_0x2c0f31=>{for(const _0xa208fa of _0x1b0a3a){let _0xd93cd7;_0xd93cd7=_0xa208fa['end']['isAtEnd']&&_0xa208fa['end']['parent']==_0xa208fa['start']['nodeAfter']?_0x2c0f31['createSelection'](_0xa208fa['start']['nodeAfter'],'on'):_0x2c0f31['createSelection'](_0xa208fa),this['_model']['deleteContent'](_0xd93cd7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x259b43=(_0x253da2,_0x399221)=>{_0x399221&&this['_model']['change'](_0x444f8b=>{const {commandName:_0x1474c2,commandParams:_0x351fda=[]}=_0x399221,_0x14979b=_0x253da2['map'](_0x18d2e4=>(Vt(_0x18d2e4)&&(_0x18d2e4=this['_model']['createRange'](_0x18d2e4['end'])),_0x18d2e4))['filter'](_0x5b8694=>'$graveyard'!==_0x5b8694['root']['rootName']);if(_0x14979b['length']<0x1)return;const _0x27d2fb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49ce25=>_0x1ac7bd['fromRange'](_0x49ce25));_0x444f8b['setSelection'](_0x14979b);for(const _0x3a6ab4 of this['_editor']['commands']['commands']())_0x3a6ab4['refresh']();_0x351fda['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1474c2,..._0x351fda);const _0x492598=_0x27d2fb['filter'](_0x246636=>'$graveyard'!=_0x246636['root']['rootName']);_0x492598['length']>0x0&&_0x444f8b['setSelection'](_0x492598);for(const _0x4e9e7a of _0x27d2fb)_0x4e9e7a['detach']();});},_0x27be88=(_0x26f64d,_0x4700fd)=>0x1==_0x26f64d['length']&&0x1==_0x4700fd['length']&&_0x26f64d[0x0]['end']['isEqual'](_0x4700fd[0x0]['start']),_0x24d5a0=(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d)=>Ht(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d,this['_model'])?[_0x2bf9fc,_0x24b0d4]:Ht(_0x24b0d4,_0x2bf9fc,_0xf073d,_0x267ed8,this['_model'])?[_0x24b0d4,_0x2bf9fc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x58a252),this['_defaultCallbacks']['set']('insertion:discard',_0x2a8cbf),this['_defaultCallbacks']['set']('insertion:join',_0x27be88),this['_defaultCallbacks']['set']('insertion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('deletion:accept',_0x2a8cbf),this['_defaultCallbacks']['set']('deletion:discard',_0x58a252),this['_defaultCallbacks']['set']('deletion:join',_0x27be88),this['_defaultCallbacks']['set']('deletion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('formatInline:accept',_0x259b43),this['_defaultCallbacks']['set']('formatInline:discard',_0x58a252),this['_defaultCallbacks']['set']('formatInline:join',_0x27be88),this['_defaultCallbacks']['set']('formatInline:chain',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:accept',_0x259b43),this['_defaultCallbacks']['set']('formatBlock:discard',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:join',_0x27be88),this['_defaultCallbacks']['set']('formatBlock:chain',_0x58a252),this['_defaultCallbacks']['set']('attribute:accept',_0x58a252),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d1266,_0x1ce3e7)=>{if(!_0x1ce3e7)return;const _0x3ab4fb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xd39420=>{if(_0x1ce3e7['key']==m)for(const _0x546d0c of _0x5d1266){const _0x1931d3=_0x546d0c['start']['nodeAfter'],_0x1c44fa=_0x1ce3e7['oldValue'];_0xd39420['rename'](_0x1931d3,_0x1c44fa);}else{if(_0x3ab4fb['_isBlockAttribute'](_0x1ce3e7['key'])){for(const _0x1ea7ab of _0x5d1266)void 0x0!==_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x1ea7ab['start']['nodeAfter']):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x1ea7ab['start']['nodeAfter']);}else{for(const _0x35052b of _0x5d1266)_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x35052b):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x35052b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x27be88);}}function Ot(_0x504e7c,_0x4a3c76,_0xa61175){for(const _0x4410da of _0x4a3c76['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4410da['root']==_0x4410da)return!0x1;if(!_0xa61175['containsItem'](_0x4410da))return!0x1;if(_0x504e7c['isObject'](_0x4410da)||_0x504e7c['isLimit'](_0x4410da))return!0x0;}return!0x1;}function Vt(_0x273687){return _0x273687['end']['parent']==_0x273687['start']['nodeAfter']&&_0x273687['end']['isAtStart'];}function Ut(_0x32e960,_0x525055,_0x4ddfba,_0x388a26){const _0x59a53a=_0x18bef3=>!_0x18bef3['item']['is']('$textProxy')&&!_0x388a26['isObject'](_0x18bef3['item']),_0x1e95c2=_0x32e960['start']['getLastMatchingPosition'](_0x59a53a),_0x45e81b=_0x32e960['end']['getLastMatchingPosition'](_0x59a53a,{'direction':'backward'});return(!_0x32e960['start']['isEqual'](_0x1e95c2)||!_0x32e960['end']['isEqual'](_0x45e81b))&&(_0x1e95c2['isBefore'](_0x45e81b)?_0x4ddfba['updateMarker'](_0x525055,{'range':_0x4ddfba['createRange'](_0x1e95c2,_0x45e81b)}):_0x4ddfba['removeMarker'](_0x525055),!0x0);}function Gt(_0x3adaf2){return _0x4bbe82(_0x3adaf2);}function Ft(_0x4a3101){const _0x4a7f62=_0x4a3101['start']['nodeAfter'];return _0x4a7f62&&_0x4a7f62['is']('element');}function Pt(_0x3deef7,_0x438bb1){return null==_0x3deef7['end']['nodeBefore']&&_0x3deef7['end']['parent']==_0x3deef7['start']['nodeAfter']?Lt(_0x3deef7['start']['nodeAfter'],_0x438bb1):_0x3deef7;}function Lt(_0x5f4645,_0x4b4b33){const _0xe9c9a=_0x4b4b33['schema']['isObject'](_0x5f4645)||_0x4b4b33['schema']['isSelectable'](_0x5f4645);return _0x4b4b33['createRange'](_0x4b4b33['createPositionAt'](_0x5f4645,'before'),_0xe9c9a?_0x4b4b33['createPositionAfter'](_0x5f4645):_0x4b4b33['createPositionAt'](_0x5f4645,'end'));}function Ht(_0x55508e,_0x430175,_0x104a13,_0x2d9b18,_0xfed64e){if(_0x55508e['next'])return!0x1;if(!Jt(_0x55508e,_0x430175))return!0x1;if(_0x104a13['end']['isEqual'](_0x2d9b18['start']))return!0x0;if(_0x55508e['type']!=_0x430175['type'])return!0x1;if(!_0x104a13['end']['isTouching'](_0x2d9b18['start']))return!0x1;const _0x3a2ca3=_0xfed64e['createRange'](_0x104a13['end'],_0x2d9b18['start'])['getWalker']();for(const _0xe2e11a of _0x3a2ca3)if(['elementStart','elementEnd']['includes'](_0xe2e11a['type'])&&_0xfed64e['schema']['isLimit'](_0xe2e11a['item']))return!0x1;return!0x0;}function Jt(_0x252f35,_0xb79ac0){if(!_0x252f35['_isDataLoaded']||!_0xb79ac0['_isDataLoaded'])return!0x1;const _0x48a509=new Set(Object['keys'](_0x252f35['attributes'])),_0x55809a=new Set(Object['keys'](_0xb79ac0['attributes']));if(_0x48a509['delete']('groupId'),_0x55809a['delete']('groupId'),0x0==_0x48a509['size']&&0x0==_0x55809a['size'])return!0x0;if(_0x48a509['size']!=_0x55809a['size'])return!0x1;const _0x169f38={..._0x252f35['attributes']},_0x87a57f={..._0xb79ac0['attributes']};return delete _0x169f38['groupId'],delete _0x87a57f['groupId'],JSON['stringify'](_0x169f38)==JSON['stringify'](_0x87a57f);}function qt(_0x5f135b,_0x56c339){const _0x4402e0=zt(_0x5f135b['attributes']),_0x19d001=zt(_0x56c339);if(!_0x5f135b['_isDataLoaded'])return!0x1;for(const _0x3143e4 of Object['keys'](_0x19d001))if(!_0x11af30(_0x4402e0[_0x3143e4],_0x19d001[_0x3143e4]))return!0x1;return!0x0;}function zt(_0x67a1d5){const _0x4a4d28=Object['assign']({},_0x67a1d5);return delete _0x4a4d28['skipNestingCheck'],delete _0x4a4d28['tablePasteChainId'],_0x4a4d28;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1ca92d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x106a7e,_0x35078e,_0x48cce7,_0xdfcf59){super(),this['model']=_0x35078e,this['view']=_0x48cce7,this['commentThreadController']=_0xdfcf59,this['_editor']=_0x106a7e,this['_acceptCommand']=_0x106a7e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x106a7e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x277c80,_0x20958a)=>_0x277c80||_0x20958a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x11400f=>_0x11400f&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xd09068=>_0xd09068&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['_pendingAction']=null,_0x48cce7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x48cce7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x48cce7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x48cce7,'change:isDirty',()=>{_0x48cce7['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 _0x231a46=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x231a46);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xa93036{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1dd139,_0x54d8c9,_0x43e0be,_0x3a0907){super(_0x1dd139),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f9985(_0x1dd139,o(_0x1dd139,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x54d8c9['authoredAt']),this['bind']('authoredAt')['to'](_0x54d8c9),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x54d8c9,'authoredAt',this,'descriptionParts',(_0x26480c,_0x4cfe9a,_0x551289)=>{const _0x48130d=_0x551289['map'](_0x1dec1f=>ls(_0x1dec1f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x26480c-0x1,_0x54d8c9['author']['name'],_0x4cfe9a?_0x3a0907['formatDateTime'](_0x4cfe9a):'',new DOMParser()['parseFromString'](_0x48130d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3a64bc(),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2c460b=>_0x2c460b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x54d8c9,this['_localUser']=_0x43e0be,this['_config']=_0x3a0907,_0x3a0907['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e3d09(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x338ebc}=this['_config'];this['commentsListView']=new _0x338ebc(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',_0x3833ef=>_0x3833ef+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e2d61,_0x34ad54)=>_0x4e2d61||!!_0x34ad54);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xaf9fe1}=this['_config'],_0x549fc1=new _0xaf9fe1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13a2d9=_0x549fc1['commentInputView'];return _0x549fc1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13a2d9,'value',(_0x98d1f8,_0x5e92e3,_0x2f6eaa)=>!!_0x2f6eaa||_0x98d1f8&&!_0x5e92e3),_0x13a2d9['on']('submit',(_0x554d31,_0x32da81)=>{this['fire']('addComment',_0x32da81),_0x13a2d9['editor']['setData']('');}),_0x13a2d9['on']('cancel',()=>this['focus']()),_0x13a2d9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x549fc1;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x267ca9,_0x132fef,_0x49972a,_0x33181d){super(_0x267ca9,_0x132fef,_0x49972a,_0x33181d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5abdc1=>_0x5abdc1&&_0x5abdc1[0x0]?_0x5abdc1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x45de27,_0x3c623e)=>{let _0x1d0f90='';for(const _0x1a022c of _0x45de27)_0x1d0f90+='<p>'+ls(_0x1a022c['content'],_0x1a022c['color'])+'</p>';return _0x3c623e?_0x1d0f90:_0x260589(_0x1d0f90,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33181d['SuggestionView'](_0x267ca9,_0x132fef,{'formatDateTime':_0x33181d['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1f6955=this['bindTemplate'],_0x4c72ff=[this['suggestionView']];return this['commentsListView']&&_0x4c72ff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c72ff['push'](this['commentThreadInputView']),_0x4c72ff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1f6955['if']('isActive','ck-suggestion-wrapper--active'),_0x1f6955['to']('type',_0x34eef8=>'ck-suggestion-'+_0x34eef8),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':0x0,'role':'listitem','aria-label':_0x1f6955['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c72ff};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0xa93036{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa65ddc,_0x50f623,_0x381185){super(_0xa65ddc),this['_model']=_0x50f623,this['_config']=_0x381185,this['set']('description',''),this['bind']('authoredAt')['to'](_0x50f623),this['acceptButton']=this['_createButton'](o(_0xa65ddc,'Accept\x20suggestion'),_0x1d5681['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa65ddc,'Discard\x20suggestion'),_0x1d5681['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xd53404(_0xa65ddc,_0x50f623['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3a64bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4f71f3=>_0x4f71f3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50b55b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50b55b['innerHTML']=this['description'],this['on']('change:description',(_0x297ec5,_0x2de049,_0x2c849c)=>{_0x50b55b['innerHTML']=_0x2c849c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5224f0=this['bindTemplate'],_0x342cad=[{'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':_0x5224f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5224f0['to']('authoredAt',_0x4461cb=>this['_config']['formatDateTime'](_0x4461cb))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x342cad['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x342cad}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2ff8ad,_0x1fbd88,_0x193c53,_0x524e45,_0x589e59){const _0x216c06=new _0x55410d(this['locale']);return _0x216c06['set']({'label':_0x2ff8ad,'icon':_0x1fbd88,'tooltip':!0x0,'tooltipPosition':_0x589e59}),_0x216c06['extendTemplate']({'attributes':{'class':_0x193c53}}),_0x216c06['on']('execute',()=>{this['fire'](_0x524e45,this['_model']['id']);}),_0x216c06;}['_setupKeyboardNavigation'](){const _0x26f0ae=this['element'];this['keystrokes']['listenTo'](_0x26f0ae);for(const _0x4fd66c of this['focusables'])this['focusTracker']['add'](_0x4fd66c['element']),this['keystrokes']['listenTo'](_0x4fd66c['element']);this['keystrokes']['set']('enter',(_0x8ab4ec,_0x45521c)=>{_0x26f0ae===_0x8ab4ec['target']&&(this['focusCycler']['focusFirst'](),_0x45521c());}),this['keystrokes']['set']('esc',(_0x5169f4,_0x164b99)=>{_0x26f0ae!==_0x5169f4['target']&&(this['focus'](),_0x164b99());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x58a0bc{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5983d1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1bb86d){super(_0x1bb86d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15a466=this['editor']['config'];_0x15a466['define']('trackChanges.SuggestionThreadView',re),_0x15a466['define']('trackChanges.SuggestionView',ce),_0x15a466['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15a466['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x187673,_0x480658){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xe83021,_0x4d3c34]of this['_handleControllerBuffer']){const _0x271995=this['_suggestionToController']['has'](_0xe83021);_0x271995||_0x4d3c34?_0x271995&&_0x4d3c34&&this['_destroyController'](_0xe83021):this['_initializeController'](_0xe83021);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x187673,_0x480658);}['init'](){const _0x5e12f7=this['editor'],_0x2d7d5f=_0x5e12f7['plugins']['get']('TrackChangesEditing'),_0x42509f=_0x5e12f7['plugins']['get']('Annotations'),_0x3f419e=_0x5e12f7['plugins']['get']('EditorAnnotations'),_0x35af6d=_0x5e12f7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f419e['addSourceCollector'](()=>{const _0x22d4a2=[];for(const [_0x2631d8,_0x1fa5bb]of Array['from'](this['_suggestionToController'])){const _0xa941a2=_0x2631d8['getAllAdjacentSuggestions'](),_0x441b71=[];for(const _0x4644b9 of _0xa941a2){if(!_0x4644b9['isInContent'])continue;if(_0x4644b9['isMultiRange']){_0x441b71['push'](..._0x4644b9['getRanges']());continue;}const _0x54517c=_0x4644b9['getFirstRange']();if(_0x441b71['length']>0x0){const _0x24bbfa=_0x441b71[0x0]['getJoined'](_0x54517c);if(_0x24bbfa){_0x441b71[0x0]=_0x24bbfa;continue;}}_0x441b71['push'](_0x54517c);}_0x22d4a2['push']([_0x1fa5bb['view'],_0x441b71]);}return _0x22d4a2;}),this['listenTo'](_0x2d7d5f,'suggestionLoaded',(_0x44a26a,_0x2d0151)=>{this['listenTo'](_0x2d0151,'change:previous',(_0x227f7d,_0x1d0cc4,_0x159bb7,_0x29b9af)=>{_0x2d0151['isInContent']&&(null==_0x159bb7?(this['_updateController'](_0x29b9af['head']),this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1)):(this['_updateController'](_0x159bb7['head']),null==_0x29b9af&&this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x0)));}),null!==_0x2d0151['previous']?this['_updateController'](_0x2d0151['head']):this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1);}),this['listenTo'](_0x2d7d5f,'suggestionUnloaded',(_0x2f208f,_0x395203,_0x386cab)=>{this['stopListening'](_0x395203,'change:previous'),this['_handleControllerBuffer']['delete'](_0x395203),this['_suggestionToController']['has'](_0x395203)&&this['_destroyController'](_0x395203),_0x386cab&&this['_updateController'](_0x386cab['head']);}),this['listenTo'](_0x2d7d5f,'suggestionChanged',(_0x308139,_0x915d95)=>{this['_updateController'](_0x915d95);}),this['listenTo'](_0x42509f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35af6d,'addComment',(_0x361713,{threadId:_0x17d410,isFromAdapter:_0x2551b1})=>{if(_0x2551b1||!_0x2d7d5f['hasSuggestion'](_0x17d410))return;const _0x3089d8=_0x2d7d5f['getSuggestion'](_0x17d410);this['_suggestionToController']['get'](_0x3089d8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x40d064=this['editor']['plugins']['get']('Annotations'),_0x231616=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c903f=Array['from'](_0x40d064['activeAnnotations'],_0x167d4b=>_0x167d4b['innerView'])['filter'](_0x5123cb=>this['_viewToController']['has'](_0x5123cb)),_0xc51385=[];for(const _0x435c1c of _0x1c903f){const _0x1552c8=this['_viewToController']['get'](_0x435c1c)['model']['getAllAdjacentSuggestions']();_0xc51385['push'](..._0x1552c8['reduce']((_0x18f3f,_0x39719c)=>[..._0x18f3f,..._0x39719c['getMarkerNames']()],[]));}_0x231616['activeMarkers']=_0xc51385;}['_addUIComponentsToFactory'](){const _0x5bd407=this['editor'],_0x413514=_0x5bd407['locale'],_0x2582fb=o(_0x413514,'Track\x20changes'),_0x2b9063=new Wt([{'type':'switchbutton','model':new _0x590c00({'withText':!0x0,'isToggleable':!0x0,'label':_0x2582fb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x551a0a of _0x2b9063)if(me(_0x551a0a)){const _0xe3359d=_0x5bd407['commands']['get'](_0x551a0a['model']['commandName']);_0x551a0a['model']['bind']('isOn','isEnabled')['to'](_0xe3359d,'value','isEnabled');}_0x5bd407['ui']['componentFactory']['add']('trackChanges',_0x2e83d6=>this['_createToolbarButton'](_0x2e83d6,_0x2b9063,_0x2582fb)),_0x5bd407['ui']['componentFactory']['add']('menuBar:trackChanges',_0x503e6d=>this['_createMenuBarMenu'](_0x503e6d,_0x2b9063,_0x2582fb));}['_createToolbarButton'](_0x130431,_0x583121,_0x243eac){const _0x55b241=Qt(_0x130431,_0x530bd8),_0x8ceea3=this['editor']['commands']['get']('trackChanges');_0x55b241['buttonView']['set']({'tooltip':_0x243eac,'label':_0x243eac,'icon':he}),_0x55b241['buttonView']['bind']('isOn')['to'](_0x8ceea3,'value'),_0x55b241['buttonView']['on']('execute',()=>{_0x8ceea3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x55b241,_0x583121,{'role':'menu'});const _0x124d61=[];for(const _0x16df26 of _0x583121)me(_0x16df26)&&_0x124d61['push'](this['editor']['commands']['get'](_0x16df26['model']['commandName']));const _0x11e5ff=_0x55b241['buttonView'];return _0x11e5ff['actionView']['unbind']('isEnabled'),_0x11e5ff['arrowView']['unbind']('isEnabled'),_0x11e5ff['actionView']['bind']('isEnabled')['to'](_0x8ceea3,'isEnabled'),_0x11e5ff['arrowView']['bind']('isEnabled')['toMany'](_0x124d61,'isEnabled',(..._0x294fee)=>_0x294fee['some'](_0x176f5a=>_0x176f5a)),_0x55b241['on']('execute',_0x527e5f=>{this['editor']['execute'](_0x527e5f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x55b241;}['_createMenuBarMenu'](_0x276bb4,_0x2805c9,_0x380515){const _0x364773=new Yt(_0x276bb4),_0x8c6740=this['editor']['commands']['get']('trackChanges');_0x364773['buttonView']['set']({'label':_0x380515,'icon':he});const _0x532a18=new Zt(_0x276bb4);for(const _0x44c153 of _0x2805c9){if('separator'==_0x44c153['type']){_0x532a18['items']['add'](new Xt(_0x276bb4));continue;}const _0x593b12=new te(_0x276bb4,_0x364773),_0x57b4b4=new _0x397c51(_0x276bb4),_0x15beb8=_0x44c153['model'];_0x57b4b4['bind'](...Object['keys'](_0x15beb8))['to'](_0x15beb8),_0x57b4b4['delegate']('execute')['to'](_0x364773),_0x57b4b4['on']('execute',()=>{this['editor']['execute'](_0x15beb8['commandName']),this['editor']['editing']['view']['focus']();}),_0x593b12['children']['add'](_0x57b4b4),_0x532a18['items']['add'](_0x593b12);}return _0x364773['bind']('isEnabled')['to'](_0x8c6740,'isEnabled'),_0x364773['panelView']['children']['add'](_0x532a18),_0x364773;}['_initializeController'](_0x17bc29){const _0x5be430=this['editor'],_0x2b7a12=_0x5be430['config'],_0x2457a1=_0x5be430['plugins']['get']('Annotations'),_0x2c7d98=_0x5be430['plugins']['get']('CommentsRepository'),_0x4107c5=_0x5be430['plugins']['get']('EditorAnnotations'),_0x4d8123=_0x5be430['plugins']['get'](_0x5983d1)['me'],_0x5e8302=_0x2b7a12['get']('trackChanges')['SuggestionThreadView'],_0x22d68e=_0x2b7a12['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3a215b,CommentThreadInputView:_0x472c0e}=_0x5be430['plugins']['get']('CommentsUI');let _0x3bd8eb,_0x34231f,_0x2add01;this['_annotationViews']['has'](_0x17bc29['id'])?(_0x34231f=this['_annotationViews']['get'](_0x17bc29['id']),_0x3bd8eb=_0x34231f['mainView']):(_0x3bd8eb=new _0x5e8302(_0x5be430['locale'],_0x17bc29,_0x4d8123,{'disableComments':this['_disableComments'],'editorConfig':_0x2b7a12['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b7a12['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2fcf1(_0x2b7a12['get']('locale')),'CommentView':_0x2b7a12['get']('comments')['CommentView'],'CommentsListView':_0x3a215b,'CommentThreadInputView':_0x472c0e,'SuggestionView':_0x22d68e}),_0x3bd8eb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x3bd8eb['suggestionView']['discardButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x34231f=_0x2457a1['createAnnotationView'](this['editor']['locale'],_0x3bd8eb),_0x34231f['bind']('isDirty')['to'](_0x3bd8eb,'isDirty'),_0x34231f['bind']('length')['to'](_0x3bd8eb),_0x34231f['bind']('type')['to'](_0x3bd8eb,'type',_0x14851a=>'suggestion-'+_0x14851a),_0x3bd8eb['on']('escape',()=>{_0x2add01['fire']('escape');}),this['_annotationViews']['set'](_0x17bc29['id'],_0x34231f));const _0x106093=_0x2c7d98['createCommentThreadController'](_0x17bc29['commentThread'],_0x3bd8eb),_0x2cfc57=new ae(_0x5be430,_0x17bc29,_0x3bd8eb,_0x106093),_0x2201f2=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x99e336=>_0x99e336['isInContent']);_0x3bd8eb['descriptionParts']=_0x5be430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2201f2),this['_suggestionToController']['set'](_0x17bc29,_0x2cfc57),this['_viewToController']['set'](_0x3bd8eb,_0x2cfc57),_0x2add01=_0x2457a1['createAnnotation']({'view':_0x34231f,'target':()=>{const _0x55502c=[],_0x543ea1=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x4ba5c9=>_0x4ba5c9['isInContent']);for(const _0x12867f of _0x543ea1)_0x55502c['push'](..._0x12867f['getMarkers']());return _0x4d4b32(_0x5be430['editing'],_0x55502c);},'type':()=>'suggestion-'+_0x2cfc57['view']['type']}),_0x2c7d98['_bindAnnotationToEditors'](_0x3bd8eb,_0x2add01),_0x2457a1['add'](_0x2add01),_0x4107c5['registerAnnotation'](_0x2add01);}['_destroyController'](_0x308ddd){const _0x79d3a5=this['editor']['plugins']['get']('CommentsRepository'),_0x4baaf8=this['editor']['plugins']['get']('Annotations'),_0x38b52d=this['_suggestionToController']['get'](_0x308ddd),_0x3e862a=_0x38b52d['view'],_0x37f47f=_0x4baaf8['getByInnerView'](_0x3e862a);_0x79d3a5['_unbindEditors'](_0x3e862a),_0x37f47f&&_0x4baaf8['remove'](_0x37f47f),this['_suggestionToController']['delete'](_0x308ddd),this['_viewToController']['delete'](_0x3e862a),_0x38b52d['destroy']();}['_updateController'](_0x5ddcc0){if(!_0x5ddcc0['isInContent']||!this['_suggestionToController']['has'](_0x5ddcc0))return;const _0x19ab56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387fb7=this['_suggestionToController']['get'](_0x5ddcc0),_0x2a3e35=_0x5ddcc0['getAllAdjacentSuggestions']();_0x387fb7['view']['descriptionParts']=_0x19ab56['descriptionFactory']['getDescriptions'](_0x2a3e35);}['destroy'](){for(const _0xb72456 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb72456);for(const _0x55004a of this['_annotationViews']['values']())_0x55004a['mainView']['destroy']();super['destroy']();}}function me(_0x38c5e){return'model'in _0x38c5e;}class k extends _0x58a0bc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x44dcd0){this['editor']['plugins']['get'](p)['adapter']=_0x44dcd0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x11c8b5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x11c8b5);}['getSuggestions']({skipNotAttached:_0x195b40=!0x1,toJSON:_0x20c296=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x195b40,'toJSON':_0x20c296});}['getSuggestion'](_0x53ce69){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x53ce69);}}const T=['Pagination'];class P extends _0x58a0bc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f2eef=this['editor'];if(_0x4f2eef['config']['define']('trackChangesData.editorCreator',_0x2e1ac0=>{const _0xc399ee=_0x4f2eef['model']['document']['getRootNames']()['reduce']((_0x240d01,_0x47aa6f)=>(_0x240d01[_0x47aa6f]='',_0x240d01),{});return _0x4f2eef['constructor']['create'](_0xc399ee,_0x2e1ac0);}),'function'!=typeof _0x4f2eef['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ee7fd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ba9df){return N(this['editor'],!0x0,_0x2ba9df);}['getDataWithDiscardedSuggestions'](_0x475904){return N(this['editor'],!0x1,_0x475904);}}class D extends _0x58a0bc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x106abe){super(_0x106abe),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(_0x15f1f4){return void 0x0!==_0x15f1f4['getRootsAttributes'];}async function N(_0x47f191,_0x9b6ab2,_0x22eea0){const _0x1172e5=_0x4f17fa(_0x47f191,T);_0x1172e5['plugins']['push'](p,D),_0x1172e5['rootsAttributes']=v(_0x47f191)?_0x47f191['getRootsAttributes']():void 0x0;const _0x4a5e9a=document['createDocumentFragment'](),_0x1fe845=_0x47f191['config']['get']('trackChangesData')['editorCreator'],_0x57e437=await _0x1fe845(_0x1172e5,()=>function(_0x36b25f){const _0x1af75b=document['createElement']('div');return _0x36b25f['appendChild'](_0x1af75b),_0x1af75b;}(_0x4a5e9a));!function(_0x20cf04,_0x31b7ef){const _0x1a73e5=_0x20cf04['model']['document']['getRootNames']()['reduce']((_0x235535,_0x1196f1)=>(_0x235535[_0x1196f1]=_0x20cf04['data']['get']({'rootName':_0x1196f1}),_0x235535),{}),_0x1ddb3c=_0x20cf04['plugins']['get']('Users')['users']['map'](_0x47d2eb=>({'id':_0x47d2eb['id'],'name':_0x47d2eb['name']})),_0x3ce849=_0x20cf04['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1bba73=_0x20cf04['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x341cae=_0x31b7ef['plugins']['get']('Users'),_0x43597e=_0x31b7ef['plugins']['get']('TrackChangesEditing'),_0xcde51b=_0x31b7ef['plugins']['get']('CommentsRepository');for(const _0x472209 of _0xcde51b['getCommentThreads']())_0x472209['remove']();for(const _0x442b27 of _0x1ddb3c)_0x341cae['getUser'](_0x442b27['id'])||_0x341cae['addUser'](_0x442b27);_0x341cae['me']||_0x341cae['useAnonymousUser']();for(const _0x5b9436 of _0x1bba73)_0xcde51b['addCommentThread'](_0x5b9436);for(const _0xba5e3c of _0x3ce849)_0x43597e['addSuggestionData'](_0xba5e3c);_0x31b7ef['data']['set'](_0x1a73e5);}(_0x47f191,_0x57e437),_0x57e437['execute'](_0x9b6ab2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a873f=v(_0x57e437)?_0x57e437['getFullData'](_0x22eea0):_0x57e437['data']['get'](_0x22eea0);return await _0x57e437['destroy'](),_0x3a873f;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|