@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240721.0 → 0.0.0-nightly-20240723.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/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/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
|
-
_0x463fbe(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xd0c9ed,_0x4e787a){super(),this['id']=_0x4e787a['id'],this['type']=_0x4e787a['type'],this['subType']=_0x4e787a['subType']||null,this['author']=_0x4e787a['author'],this['creator']=_0x4e787a['creator']||_0x4e787a['author'],this['isExternal']=Boolean(_0x4e787a['attributes']&&_0x4e787a['attributes']['@external']),this['data']=null,this['_model']=_0xd0c9ed,this['_onAccept']=_0x4e787a['onAccept'],this['_onDiscard']=_0x4e787a['onDiscard'],this['_onAttributesChange']=_0x4e787a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e787a['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 _0x58a976=this;for(;_0x58a976['previous'];)_0x58a976=_0x58a976['previous'];return _0x58a976;}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'](_0x1b521c){this['_markerNames']['add'](_0x1b521c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc591a2=>this['_model']['markers']['get'](_0xc591a2))['filter'](_0x1cf261=>_0x1cf261);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34423a=>{for(const _0xc65858 of this['getMarkers']())_0x34423a['removeMarker'](_0xc65858);}),this['_markerNames']['clear']();}['removeMarker'](_0x5015dd){this['_model']['change'](_0x458182=>{_0x458182['removeMarker'](_0x5015dd);}),this['_markerNames']['delete'](_0x5015dd);}['addRange'](_0x3ecb6f){const _0x2a299f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2a299f),this['_model']['change'](_0x334f9c=>{_0x334f9c['addMarker'](_0x2a299f,{'range':_0x3ecb6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46f48a){for(const _0x2f7473 of this['getRanges']())if(_0x2f7473['isIntersecting'](_0x46f48a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x339359=>_0x339359['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c6276,_0x1bb604)=>[..._0x4c6276,..._0x1bb604['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2b2627=this['getRanges']();if(0x1!=_0x2b2627['length'])return null;const _0x1aa695=_0x2b2627[0x0],_0x4b36eb=_0x1aa695['start']['nodeAfter'],_0x53d784=_0x1aa695['end']['nodeBefore'];return _0x4b36eb instanceof _0x43f31b?_0x4b36eb!=_0x53d784?null:_0x4b36eb: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 _0xa1f324=[];let _0x5a9269=this['head'];for(;_0x5a9269;)_0xa1f324['push'](_0x5a9269),_0x5a9269=_0x5a9269['next'];return _0xa1f324;}['setAttribute'](_0x4f2e9c,_0x1adfb1){const _0x4634ef=_0x4a84a2(this['attributes']);_0x1839cf(_0x4634ef,_0x4f2e9c,_0x1adfb1),_0x4390ae(_0x4634ef,this['attributes'])||(this['attributes']=_0x4634ef,this['_onAttributesChange'](_0x4634ef));}['removeAttribute'](_0x109650){const _0x995ed7=_0x4a84a2(this['attributes']);_0x53e386(_0x995ed7,_0x109650),_0x4390ae(_0x995ed7,this['attributes'])||(this['attributes']=_0x995ed7,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 _0x5d1950()['substr'](0x1,0x5);}}function o(_0x4751fa,_0x5644c7,_0x1de817){const t=_0x4751fa['t'];switch(_0x5644c7){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',_0x1de817);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1de817);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1de817);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1de817);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1de817);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',_0x1de817);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1de817);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',_0x1de817);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1de817);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1de817);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1de817);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1de817);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1de817);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1de817);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1de817);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1de817);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1de817);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1de817);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1de817);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1de817);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1de817);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1de817);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1de817);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'},_0x1de817);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1de817);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1de817);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1de817);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1de817);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1de817);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'},_0x1de817);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1de817);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1de817);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1de817);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1de817);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'},_0x1de817);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1de817);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'},_0x1de817);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'},_0x1de817);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1de817);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'},_0x1de817);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1de817);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'},_0x1de817);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1de817);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1de817);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'},_0x1de817);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'},_0x1de817);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'},_0x1de817);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x5644c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x240beb,_0x838951){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x240beb,this['_locale']=_0x838951;}['getDescriptions'](_0x399b55){const _0xed1726=[],_0x4b4805=new Set(),_0x322e5c=new Set();for(let _0x3bd234=0x0;_0x3bd234<_0x399b55['length'];_0x3bd234++){const _0x359cb4=_0x399b55[_0x3bd234];if(!_0x359cb4['isInContent'])continue;const _0x59c5d6=this['_handleCustomCallbackDescription'](_0x359cb4);if(_0x59c5d6){if(null!=_0x359cb4['subType']){if(_0x4b4805['has'](_0x359cb4['subType']))continue;_0x4b4805['add'](_0x359cb4['subType']);}_0xed1726['push'](_0x59c5d6);}else{if('attribute'!=_0x359cb4['type'])'insertion'!=_0x359cb4['type']&&'deletion'!=_0x359cb4['type']||this['_handleInsertRemoveSuggestionDescription'](_0xed1726,_0x359cb4,_0x399b55[_0x3bd234+0x1]);else{const _0xb45738=_0x359cb4['data']['key'];if(_0x322e5c['has'](_0xb45738))continue;_0x322e5c['add'](_0x359cb4['data']['key']),_0xb45738==m?this['_handleRenameSuggestionDescription'](_0xed1726,_0x359cb4):this['_handleAttributeSuggestionDescription'](_0xed1726,_0x359cb4);}}}return this['_resolveDescriptionItems'](_0xed1726);}['registerDescriptionCallback'](_0x959a79){this['_customCallbacks']['push'](_0x959a79);}['registerElementLabel'](_0x5a90dd,_0xc5c1c7,_0xaf2d4c=_0xd9177a['normal']){'function'==typeof _0x5a90dd?_0x2c6016(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5a90dd,'label':_0xc5c1c7,'priority':_0xaf2d4c}):this['_itemLabels']['set'](_0x5a90dd,_0xc5c1c7);}['registerAttributeLabel'](_0x151b40,_0x88d32){this['_attributeLabels']['set'](_0x151b40,_0x88d32);}['getItemLabel'](_0xc4e492,_0x4876d0=0x1){let _0x307752;for(const _0x400b4f of this['_itemLabelsCallbacks'])if(_0x400b4f['matchingCallback'](_0xc4e492)){_0x307752=_0x400b4f['label'];break;}return _0x307752||(_0x307752=this['_itemLabels']['get'](_0xc4e492['name'])),_0x307752?_0x307752(_0x4876d0):0x1!==_0x4876d0?_0x4876d0+'\x20'+_0xc4e492['name']+'s':''+_0xc4e492['name'];}['_addDescriptionItems'](_0x2765a1,_0x1704a4){const _0x518419=_0x1704a4['getFirstRange']()['getWalker'](),_0x20b23f='insertion'==_0x1704a4['type']?'add':'remove';for(const _0x25112d of _0x518419){const _0x320225=_0x25112d['item'],_0x409ed2=_0x2765a1[_0x2765a1['length']-0x1];if(_0x320225['is']('$textProxy'))_0x409ed2&&_0x409ed2['type']['indexOf']('Container')>-0x1&&_0x2765a1['pop'](),_0x409ed2&&'text'==_0x409ed2['type']?_0x409ed2[_0x20b23f]+=_0x320225['data']:_0x2765a1['push']({'type':'text','add':'add'==_0x20b23f?_0x320225['data']:'','remove':'remove'==_0x20b23f?_0x320225['data']:''});else{if(this['_schema']['isObject'](_0x320225)){const _0x38c729=_0x320225;if(_0x409ed2&&_0x409ed2['type']['indexOf']('Container')>-0x1&&_0x2765a1['pop'](),'elementEnd'==_0x25112d['type'])continue;_0x409ed2&&_0x409ed2['type']==_0x20b23f+'Object'&&_0x409ed2['element']['name']==_0x38c729['name']?_0x409ed2['quantity']++:_0x2765a1['push']({'type':_0x20b23f+'Object','element':_0x38c729,'quantity':0x1}),_0x518419['skip'](_0x4f95a2=>!('elementEnd'==_0x4f95a2['type']&&_0x4f95a2['item']==_0x320225));}else{if(this['_schema']['checkChild'](_0x320225,'$text')||_0x320225['is']('element','softBreak')){const _0x253170=_0x320225;if('add'==_0x20b23f&&'elementStart'==_0x25112d['type']||'remove'==_0x20b23f&&'elementEnd'==_0x25112d['type'])continue;if(_0x409ed2&&-0x1==_0x409ed2['type']['indexOf']('Container')){'text'==_0x409ed2['type']&&(_0x409ed2[_0x20b23f]+='\x0a');continue;}let _0x26edec;if(_0x26edec='add'==_0x20b23f?_0x253170['nextSibling']&&!this['_schema']['isObject'](_0x253170['nextSibling'])?_0x253170['nextSibling']:null:_0x253170['previousSibling']&&!this['_schema']['isObject'](_0x253170['previousSibling'])?_0x253170['previousSibling']:null,_0x253170['isEmpty']||_0x26edec&&_0x26edec['isEmpty']){const _0x5b1e01=_0x26edec&&_0x26edec['isEmpty']?_0x26edec:_0x253170;_0x409ed2&&_0x409ed2['type']==_0x20b23f+'EmptyContainer'&&_0x409ed2['element']['name']==_0x5b1e01['name']?_0x409ed2['quantity']++:_0x2765a1['push']({'type':_0x20b23f+'EmptyContainer','element':_0x5b1e01,'quantity':0x1});}else _0x2765a1['push']({'type':_0x20b23f+'Container','element':_0x253170});}}}}}['_resolveDescriptionItems'](_0x1dc094){const _0x57b068=this['_locale'],_0x6c143a=[],_0x523a52=[],_0x8437be=[];for(const _0x32ac44 of _0x1dc094)switch(_0x32ac44['type']){case'text':if(_0x32ac44['add']=_0x32ac44['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x32ac44['remove']=_0x32ac44['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x32ac44['add']&&''!=_0x32ac44['remove']){_0x6c143a['push']({'type':'replace','content':o(_0x57b068,'REPLACE_TEXT',['\x22'+_0x32ac44['remove']+'\x22','\x22'+_0x32ac44['add']+'\x22'])});continue;}if(null!=_0x32ac44['add']['match'](/^ +$/)){_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Insert:*\x20%0',o(_0x57b068,'ELEMENT_SPACE',_0x32ac44['add']['length']))});continue;}if(null!=_0x32ac44['remove']['match'](/^ +$/)){_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Remove:*\x20%0',o(_0x57b068,'ELEMENT_SPACE',_0x32ac44['remove']['length']))});continue;}if(''!=_0x32ac44['add']){_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Insert:*\x20%0','\x22'+_0x32ac44['add']+'\x22')});continue;}_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Remove:*\x20%0','\x22'+_0x32ac44['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Insert:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Remove:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'addContainer':_0x6c143a['push']({'type':'insertion','content':o(_0x57b068,'*Split:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'removeContainer':_0x6c143a['push']({'type':'deletion','content':o(_0x57b068,'*Merge:*\x20%0',this['getItemLabel'](_0x32ac44['element'],_0x32ac44['quantity']))});continue;case'addFormat':_0x523a52['push'](_0x32ac44['key']);continue;case'removeFormat':_0x8437be['push'](_0x32ac44['key']);continue;default:_0x6c143a['push'](_0x32ac44);}if(_0x523a52['length']){const _0x3c7883=_0x523a52['map'](_0x34bb61=>this['_attributeLabels']['has'](_0x34bb61)?this['_attributeLabels']['get'](_0x34bb61):_0x34bb61)['join'](',\x20');_0x6c143a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3c7883)});}if(_0x8437be['length']){const _0x49683d=_0x8437be['map'](_0x322a3a=>this['_attributeLabels']['has'](_0x322a3a)?this['_attributeLabels']['get'](_0x322a3a):_0x322a3a)['join'](',\x20');_0x6c143a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x49683d)});}return _0x6c143a;}['_handleCustomCallbackDescription'](_0x1add57){for(const _0x1209b9 of this['_customCallbacks']){const _0x1bdb53=_0x1209b9(_0x1add57);if(_0x1bdb53&&'type'in _0x1bdb53)return _0x1bdb53;}}['_handleAttributeSuggestionDescription'](_0x5dd194,_0x595a67){const _0x54df54=_0x595a67['data'],_0x5aa705=void 0x0===_0x54df54['newValue']?'removeFormat':'addFormat';_0x5dd194['push']({'type':_0x5aa705,'key':_0x54df54['key']});}['_handleRenameSuggestionDescription'](_0x1b8e0c,_0x19621c){_0x1b8e0c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19621c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x28210a,_0x5240d1,_0x4adaa6){if(this['_addDescriptionItems'](_0x28210a,_0x5240d1),_0x4adaa6&&_0x4adaa6['getFirstRange']()&&!_0x5240d1['getFirstRange']()['end']['isEqual'](_0x4adaa6['getFirstRange']()['start'])){const _0xda8f7a=_0x28210a[_0x28210a['length']-0x1],_0x1aed34='insertion'==_0x5240d1['type']?'add':'remove';_0xda8f7a&&'text'==_0xda8f7a['type']&&(_0xda8f7a[_0x1aed34]+='\x0a');}}}class E extends _0x20fe95{['afterInit'](){const _0x2620bc=this['editor'],_0x1a5828=_0x2620bc['plugins']['get']('TrackChangesEditing');_0x2620bc['commands']['get']('showAIAssistant')&&_0x1a5828['enableCommand']('showAIAssistant');}}class V extends _0x20fe95{['afterInit'](){const _0x28d002=this['editor'],_0x3a61e1=_0x28d002['locale'];if(!_0x28d002['plugins']['has']('AlignmentEditing'))return;const _0x532938=_0x28d002['plugins']['get']('TrackChangesEditing');_0x532938['enableDefaultAttributesIntegration']('alignment'),_0x532938['registerBlockAttribute']('alignment'),_0x532938['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3a61e1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d5a3=this['editor'],_0x1c2a22=_0x13d5a3['locale'];_0x13d5a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ccb1f=>{if('formatBlock'!=_0x3ccb1f['type'])return;const {data:_0x1abe2a}=_0x3ccb1f;if(_0x1abe2a&&'alignment'==_0x1abe2a['commandName']){const _0x125d22=_0x1abe2a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c2a22,'*Format:*\x20%0',function(_0x4a3683){switch(_0x4a3683){case'left':return o(_0x1c2a22,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c2a22,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c2a22,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c2a22,'FORMAT_JUSTIFY_TEXT');}}(_0x125d22))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x20fe95{['afterInit'](){const _0x3d4f82=this['editor'],_0x372d6b=_0x3d4f82['plugins']['get']('TrackChangesEditing'),_0x59e383=_0x3d4f82['locale'];for(const _0x134e42 of ti){if(!_0x3d4f82['plugins']['has'](_0x134e42))continue;const _0x270a27=_0x134e42['slice'](0x0,-0x7)['toLowerCase'](),_0x3f11b7='FORMAT_'+_0x270a27['toUpperCase']();_0x372d6b['enableDefaultAttributesIntegration'](_0x270a27),_0x372d6b['registerInlineAttribute'](_0x270a27),_0x372d6b['descriptionFactory']['registerAttributeLabel'](_0x270a27,o(_0x59e383,_0x3f11b7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a735e=this['editor'],_0x4f2468=_0x5a735e['locale'],_0x4c7f28=_0x5a735e['plugins']['get']('TrackChangesEditing');function _0x4466ed(_0x3d5c2a,_0x2bcc9e){_0x4c7f28['descriptionFactory']['registerDescriptionCallback'](_0x4756c5=>{if('formatInline'!=_0x4756c5['type'])return;const {data:_0x1c08d6}=_0x4756c5;return _0x1c08d6&&_0x1c08d6['commandName']===_0x3d5c2a?_0x1c08d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f2468,'*Format:*\x20%0',_0x2bcc9e)}:{'type':'format','content':o(_0x4f2468,'*Remove\x20format:*\x20%0',_0x2bcc9e)}:void 0x0;});}_0x4466ed('bold',o(_0x4f2468,'FORMAT_BOLD')),_0x4466ed('italic',o(_0x4f2468,'FORMAT_ITALIC')),_0x4466ed('underline',o(_0x4f2468,'FORMAT_UNDERLINE')),_0x4466ed('code',o(_0x4f2468,'FORMAT_CODE')),_0x4466ed('strikethrough',o(_0x4f2468,'FORMAT_STRIKETHROUGH')),_0x4466ed('subscript',o(_0x4f2468,'FORMAT_SUBSCRIPT')),_0x4466ed('superscript',o(_0x4f2468,'FORMAT_SUPERSCRIPT'));}}class O extends _0x20fe95{['afterInit'](){const _0x3a6573=this['editor'],_0x4ee699=_0x3a6573['locale'];if(!_0x3a6573['plugins']['has']('BlockQuoteEditing'))return;const _0x53bcb5=_0x3a6573['plugins']['get']('TrackChangesEditing'),_0x4e890c=this['editor']['commands']['get']('blockQuote');_0x53bcb5['enableCommand']('blockQuote',(_0x38b784,_0x11d045={})=>{const _0x145c8e=this['editor']['model']['document']['selection'],_0x897ae5=_0x11d045&&void 0x0!==_0x11d045['forceValue']?_0x11d045['forceValue']:!_0x4e890c['value'];let _0x460ae3=[];if(_0x897ae5){const _0x3ee768=Array['from'](_0x145c8e['getSelectedBlocks']())['filter'](_0x2c1cff=>oo(_0x2c1cff)||function(_0x328036,_0x33efdd){const _0x57512a=_0x33efdd['checkChild'](_0x328036['parent'],'blockQuote'),_0x4f1ae5=_0x33efdd['checkChild'](['$root','blockQuote'],_0x328036);return _0x57512a&&_0x4f1ae5;}(_0x2c1cff,this['editor']['model']['schema']));_0x460ae3=to(_0x3ee768,_0x3a6573['model']);}else{const _0xbcaa5e=Array['from'](_0x145c8e['getSelectedBlocks']())['filter'](_0x46761b=>oo(_0x46761b));_0x460ae3=to(_0xbcaa5e,_0x3a6573['model']);}_0x3a6573['model']['change'](()=>{for(const _0x1ca6db of _0x460ae3)_0x53bcb5['markBlockFormat'](_0x1ca6db,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x897ae5}]});});}),_0x53bcb5['descriptionFactory']['registerDescriptionCallback'](_0x22ed4d=>{const {data:_0x1395d9}=_0x22ed4d;if(_0x1395d9&&'blockQuote'==_0x1395d9['commandName']){const _0x488ced=o(_0x4ee699,'ELEMENT_BLOCK_QUOTE');return _0x1395d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ee699,'*Set\x20format:*\x20%0',_0x488ced)}:{'type':'format','content':o(_0x4ee699,'*Remove\x20format:*\x20%0',_0x488ced)};}});}}function oo(_0x242c59){return'blockQuote'==_0x242c59['parent']['name'];}class G extends _0x20fe95{['afterInit'](){const _0x1ed7a7=this['editor'];_0x1ed7a7['plugins']['has']('CaseChange')&&(_0x1ed7a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ed7a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ed7a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x20fe95{['afterInit'](){const _0x34b6c8=this['editor'];_0x34b6c8['commands']['get']('ckbox')&&_0x34b6c8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x20fe95{['afterInit'](){const _0x38dfde=this['editor'];if(!_0x38dfde['plugins']['has']('CodeBlock'))return;const _0x16b41c=_0x38dfde['plugins']['get']('TrackChangesEditing'),_0x291d2a=_0x38dfde['locale'],_0x5db719=_0x38dfde['config']['get']('codeBlock')['languages'],_0x52ed26=_0x38dfde['commands']['get']('codeBlock');_0x16b41c['enableCommand']('indentCodeBlock'),_0x16b41c['enableCommand']('outdentCodeBlock'),_0x16b41c['enableCommand']('codeBlock',(_0xf36b,_0x446d81={})=>{const _0x294a32=_0x38dfde['model'],_0x41fa8c=_0x38dfde['model']['document']['selection'],_0x1bd23d=_0x446d81&&void 0x0!==_0x446d81['forceValue']?_0x446d81['forceValue']:!_0x52ed26['value'];let _0x5f320b;_0x446d81['language']||(_0x446d81['language']=_0x5db719[0x0]['language']),_0x5f320b=_0x1bd23d?Array['from'](_0x41fa8c['getSelectedBlocks']())['filter'](_0x3d3476=>eo(_0x3d3476)||function(_0x47e799,_0x4107f6){if(_0x47e799['is']('rootElement')||_0x4107f6['isLimit'](_0x47e799))return!0x1;return _0x4107f6['checkChild'](_0x47e799['parent'],'codeBlock');}(_0x3d3476,_0x294a32['schema'])):Array['from'](_0x41fa8c['getSelectedBlocks']())['filter'](_0x52c229=>eo(_0x52c229));const _0x311d6c=to(_0x5f320b,_0x294a32);_0x294a32['change'](()=>{for(const _0xb55a86 of _0x311d6c)_0x16b41c['markBlockFormat'](_0xb55a86,{'commandName':'codeBlock','commandParams':[{..._0x446d81,'forceValue':_0x1bd23d}],'formatGroupId':'blockName'});});}),(_0x16b41c['descriptionFactory']['registerElementLabel']('codeBlock',_0x49d8ad=>o(_0x291d2a,'ELEMENT_CODE_BLOCK',_0x49d8ad)),_0x16b41c['descriptionFactory']['registerDescriptionCallback'](_0x500cc4=>{if('formatBlock'!=_0x500cc4['type'])return;const _0x5a3c81=_0x291d2a['t'],{data:_0x40e00d}=_0x500cc4;if(!_0x40e00d||'codeBlock'!=_0x40e00d['commandName'])return;const _0x53050f=_0x40e00d['commandParams'][0x0]['language'],_0x526fd4=_0x5a3c81(_0x5db719['find'](_0x52a9dd=>_0x52a9dd['language']===_0x53050f)['label'])['toLowerCase']();return _0x40e00d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x291d2a,'*Set\x20format:*\x20%0',o(_0x291d2a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x526fd4+')')}:{'type':'format','content':o(_0x291d2a,'*Remove\x20format:*\x20%0',o(_0x291d2a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x33a9ab){return'codeBlock'==_0x33a9ab['name'];}class H extends _0x20fe95{['afterInit'](){const _0x35e99c=this['editor'];if(!_0x35e99c['plugins']['has']('CommentsEditing'))return;_0x35e99c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4d6b7c,_0x4aed56,_0x47c3ac){const _0x14bcb9=[];for(const _0x11a135 of _0x4aed56['getItems']())_0x11a135['hasAttribute'](_0x4d6b7c)&&_0x14bcb9['push'](_0x47c3ac['createRangeOn'](_0x11a135));return _0x14bcb9;}function _e(_0x2b8156,_0x210ca6,{showActiveMarker:_0x58be90=!0x0}={}){const _0x25f92d=_0x2b8156['plugins']['get']('TrackChangesEditing');return(_0x525a74,_0x20a49c,_0x26bbf1)=>{if(!_0x26bbf1['consumable']['test'](_0x20a49c['markerRange'],_0x525a74['name']))return;const _0x1277cf=_0x20a49c['markerRange']['getWalker'](),_0xd388a5=_0x20a49c['markerRange']['start'],_0xa65f49=_0x2b8156['model']['schema'];let _0x1f206a=null,_0x21c0b7=null,_0x2725f8=!0x1,_0x1b1c3e=!0x1;for(const _0x14860a of _0x1277cf){const _0x4517d4=_0x14860a['item'];_0x2725f8=_0x2725f8||_0xa65f49['isContent'](_0x4517d4);const _0x295bb8=_0x26bbf1['mapper']['toViewElement'](_0x4517d4);if(_0x295bb8&&_0x295bb8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x14860a['type']&&(_0xa65f49['isBlock'](_0x4517d4)&&!_0xa65f49['isLimit'](_0x4517d4)&&(_0x4517d4['nextSibling']||_0xd388a5['isAtEnd']?_0x1f206a&&_0x1f206a['parent']==_0x4517d4||(_0x1f206a=_0x4517d4,_0x338726(_0x14860a['previousPosition']),_0x1b1c3e=!0x0):_0x21c0b7=_0x21c0b7||_0x14860a['previousPosition']));}function _0x338726(_0x65cb4c){const _0x1ef11f=_0x26bbf1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x210ca6}),_0x2020a2=_0x26bbf1['mapper']['toViewPosition'](_0x65cb4c);_0x58be90&&_0x25f92d['activeMarkers']['includes'](_0x20a49c['markerName'])&&_0x26bbf1['writer']['addClass']('ck-suggestion-marker--active',_0x1ef11f),_0x26bbf1['writer']['insert'](_0x2020a2,_0x1ef11f),_0x26bbf1['mapper']['bindElementToMarker'](_0x1ef11f,_0x20a49c['markerName']);}_0x2725f8||_0x1b1c3e||!_0x21c0b7||_0x338726(_0x21c0b7);};}class q extends _0x20fe95{static get['requires'](){return[_0x452c45];}['init'](){const _0xd96364=this['editor'],_0x47f45d=_0xd96364['plugins']['get']('TrackChangesEditing');_0x47f45d['enableCommand']('delete');const _0x2ca1de=_0xd96364['commands']['get']('deleteForward');_0x47f45d['enableCommand']('deleteForward',(_0x2db19b,_0x1c20ba={})=>{const _0x552ec1=_0xd96364['model']['createSelection'](_0xd96364['model']['document']['selection']);_0x552ec1['isCollapsed']&&_0xd96364['model']['modifySelection'](_0x552ec1,{'direction':'forward','unit':_0x1c20ba['unit']});const _0x5cb3fe=_0x552ec1['getFirstRange'](),_0x2c3408=_0x49277e['fromRange'](_0x5cb3fe);let _0x58ab6e;_0x2db19b(_0x1c20ba),_0x58ab6e='$graveyard'==_0x2c3408['root']['rootName']?_0xd96364['model']['createRange'](_0x5cb3fe['start']):_0xd96364['model']['createRange'](_0x2c3408['start'],_0x2c3408['end']),_0x2c3408['detach'](),_0xd96364['model']['enqueueChange'](_0x2ca1de['buffer']['batch'],_0x15c8a8=>{_0x2ca1de['buffer']['lock'](),_0x15c8a8['setSelection'](_0x15c8a8['createRange'](_0x58ab6e['end'])),_0x2ca1de['buffer']['unlock']();});}),_0xd96364['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xd96364,'merge'),{'priority':'high'}),_0xd96364['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x14dbde,_0x4d1c18,_0x5032bb)=>{_0x5032bb['options']['showSuggestionHighlights']&&_e(_0xd96364,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x14dbde,_0x4d1c18,_0x5032bb);},{'priority':'high'}),_0xd96364['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xc9f9d3,_0x370986,_0x4c1969)=>{const _0x33e8d1=_0x4c1969['mapper']['markerNameToElements'](_0x370986['markerName']);if(_0x33e8d1){for(const _0x10a290 of _0x33e8d1)_0x10a290['is']('uiElement')&&(_0x4c1969['mapper']['unbindElementFromMarkerName'](_0x10a290,_0x370986['markerName']),_0x4c1969['writer']['remove'](_0x10a290));}},{'priority':'high'});}}class z extends _0x20fe95{['afterInit'](){const _0x5e1786=this['editor'];if(!_0x5e1786['plugins']['has']('ListEditing'))return;const _0x100ace=_0x5e1786['locale'],_0x2c6a02=_0x5e1786['plugins']['get']('TrackChangesEditing'),_0x1af310=_0x5e1786['plugins']['has']('TodoListEditing'),_0x8120e9=!!_0x5e1786['config']['get']('list.multiBlock');function _0x4c6482(_0x4c5c95){return{'type':'format','content':''+o(_0x100ace,'*Set\x20format:*\x20%0',_0x4c5c95)};}function _0x104039(_0x46d2ef){return{'type':'format','content':''+o(_0x100ace,'*Remove\x20format:*\x20%0',_0x46d2ef)};}_0x2c6a02['enableDefaultAttributesIntegration']('numberedList'),_0x2c6a02['enableDefaultAttributesIntegration']('bulletedList'),_0x2c6a02['enableDefaultAttributesIntegration']('customNumberedList'),_0x2c6a02['enableDefaultAttributesIntegration']('customBulletedList'),_0x2c6a02['enableDefaultAttributesIntegration']('indentList'),_0x2c6a02['enableDefaultAttributesIntegration']('outdentList'),_0x2c6a02['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2c6a02['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2c6a02['registerBlockAttribute']('listItemId'),_0x2c6a02['registerBlockAttribute']('listType'),_0x2c6a02['registerBlockAttribute']('listIndent'),_0x8120e9&&(_0x2c6a02['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2c6a02['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1af310&&(_0x2c6a02['enableDefaultAttributesIntegration']('todoList'),_0x2c6a02['enableDefaultAttributesIntegration']('checkTodoList'),_0x2c6a02['registerBlockAttribute']('todoListChecked'),_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x559d5f=>{const {data:_0x315520}=_0x559d5f;if(_0x315520&&'todoListChecked'==_0x315520['key'])return{'type':'format','content':_0x315520['newValue']?o(_0x100ace,'*Check\x20item*'):o(_0x100ace,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3622dd=>{if(_0x3622dd['batch']['isUndo'])return!0x1;let _0x571aa2=!0x1;const _0x277606=_0x2c6a02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3abcf1=>'todoListChecked'===_0x2c6a02['_getAttributeKey'](_0x3abcf1));for(const _0x22e089 of _0x277606){'todo'!=_0x22e089['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2c6a02['_findSuggestions'](_0x22e089['getFirstRange'](),'attribute')['find'](_0x21030d=>'listType'===_0x2c6a02['_getAttributeKey'](_0x21030d['suggestion']))||(_0x3622dd['removeMarker'](_0x22e089['getFirstMarker']()),_0x571aa2=!0x0));}return _0x571aa2;})),_0x2c6a02['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x100ace,'FORMAT_INDENT'));const _0x54b80a={'type':'format','content':''};_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x273982=>{const {data:_0x72b86f}=_0x273982;if(!_0x72b86f||'listType'!=_0x72b86f['key'])return;let _0x38c566=_0x273982['head'];for(;_0x38c566;){if(_0x38c566['data']&&(('listStyle'==_0x38c566['data']['key']||'listMarkerStyle'==_0x38c566['data']['key'])&&(_0x38c566['data']['newValue']&&'default'!=_0x38c566['data']['newValue']||'default'!=_0x38c566['data']['oldValue']&&!_0x72b86f['newValue'])||!_0x8120e9&&_0x38c566['data']['key']==m))return _0x54b80a;_0x38c566=_0x38c566['next'];}if(null==_0x72b86f['newValue'])switch(_0x72b86f['oldValue']){case'bulleted':return _0x104039(o(_0x100ace,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x104039(o(_0x100ace,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x104039(o(_0x100ace,'ELEMENT_TODO_LIST'));}switch(_0x72b86f['newValue']){case'bulleted':return _0x4c6482(o(_0x100ace,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c6482(o(_0x100ace,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c6482(o(_0x100ace,'ELEMENT_TODO_LIST'));}}),_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x3c63d6=>{const {data:_0x27aa19}=_0x3c63d6;if(_0x27aa19&&'listIndent'==_0x27aa19['key'])return null==_0x27aa19['newValue']||null==_0x27aa19['oldValue']&&0x0==_0x27aa19['newValue']?_0x54b80a:void 0x0;}),_0x2c6a02['descriptionFactory']['registerDescriptionCallback'](_0x3a667c=>{if('attribute'!=_0x3a667c['type'])return;const {data:_0x5c5c69}=_0x3a667c;if(!_0x5c5c69||'listItemId'!=_0x5c5c69['key'])return;const _0x4c853e=le(_0x3a667c);return'newValue'==_0x4c853e?{'type':'format','content':o(_0x100ace,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4c853e?{'type':'format','content':o(_0x100ace,'*Split:*\x20list\x20item')}:_0x54b80a;}),_0x5e1786['model']['document']['registerPostFixer'](_0x3a2156=>this['listItemIdFixer'](_0x3a2156)),_0x5e1786['model']['document']['registerPostFixer'](_0x130e57=>this['noTrackChangesFixer'](_0x130e57)),_0x5e1786['model']['document']['registerPostFixer'](_0x56f950=>this['assureChains'](_0x56f950)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x367a87){if(_0x367a87['batch']['isUndo']||!_0x367a87['batch']['isLocal'])return!0x1;let _0x46a77a=!0x1;const _0x4d4a15=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f222b=>_0x3f222b['data']&&'listItemId'==_0x3f222b['data']['key'])['filter'](_0xd15733=>_0xd15733['data']['newValue']&&_0xd15733['data']['oldValue']);for(const _0x178382 of _0x4d4a15)le(_0x178382)||(_0x367a87['removeMarker'](_0x178382['getFirstMarker']()),_0x46a77a=!0x0);return _0x46a77a;}['noTrackChangesFixer'](_0x1e3b39){if(_0x1e3b39['batch']['isUndo']||!_0x1e3b39['batch']['isLocal'])return!0x1;const _0x48e546=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48e546['trackChangesCommand']['value'])return!0x1;let _0x162bc6=!0x1;const _0x134f51=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3bcc14=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4d2602=>'attribute'==_0x4d2602['type'])['filter'](_0x2f081e=>_0x134f51['includes'](_0x2f081e['attributeKey']));if(0x0==_0x3bcc14['length'])return _0x162bc6;for(const _0x4be39b of _0x3bcc14){const _0x595d91=_0x48e546['_findSuggestions'](_0x4be39b['range'],'attribute')['filter'](_0x5d3dab=>!_0x5d3dab['meta']['isNextTo'])['map'](_0x1667a7=>_0x1667a7['suggestion'])['filter'](_0x19e483=>{const _0x3b9e7c=_0x48e546['_getAttributeKey'](_0x19e483);return _0x134f51['includes'](_0x3b9e7c);});if(_0x595d91['length']){for(const _0x2f306d of _0x595d91)_0x1e3b39['removeMarker'](_0x2f306d['getFirstMarker']());_0x162bc6=!0x0;}}return _0x162bc6;}['assureChains'](_0x842a23){if(_0x842a23['batch']['isUndo']||!_0x842a23['batch']['isLocal'])return!0x1;const _0x5cc4e4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x243822=!0x1;const _0x4f24d9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4e8b97 of _0x5cc4e4['getSuggestions']({'skipNotAttached':!0x0})){const _0x4fcac6=_0x5cc4e4['_findSuggestions'](_0x4e8b97['getFirstRange'](),'attribute')['map'](_0x22b0b9=>_0x22b0b9['suggestion'])['filter'](_0x1d5223=>_0x1d5223['data']&&_0x4f24d9['includes'](_0x1d5223['data']['key']));if(!_0x4fcac6['length'])continue;const _0x2cd682=_0x4fcac6[0x0]['head']['attributes']['groupId'];if(!_0x4fcac6['every'](_0x397f56=>_0x397f56['attributes']['groupId']===_0x2cd682)){for(const _0x4e99bc of _0x4fcac6)_0x58be93(_0x4e99bc,_0x2cd682)&&(_0x243822=!0x0);}}return _0x243822;function _0x378774(_0x4d2b2c,_0x59cc25){for(const _0x29f2a4 of _0x5cc4e4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x998433=>'attribute'==_0x998433['type']&&_0x998433['attributes']['groupId']==_0x4d2b2c))_0x29f2a4['setAttribute']('groupId',_0x59cc25);}function _0x58be93(_0x630d6f,_0x27b76b){let _0x221699=_0x630d6f['head'],_0x3ce32b=!0x1;for(;_0x221699;)_0x221699['attributes']['groupId']!=_0x27b76b&&(_0x378774(_0x221699['attributes']['groupId'],_0x27b76b),_0x221699['setAttribute']('groupId',_0x27b76b),_0x3ce32b=!0x0),_0x221699=_0x221699['next'];return _0x3ce32b;}}['_supportLegacySuggestions'](){const _0x13154d=this['editor'],_0x18d3d1=_0x13154d['locale'],_0x418e58=_0x13154d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x418e58['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4954c9,_0x2342b3){const _0x149f56=[];for(let _0x2601ec of _0x4954c9)_0x2601ec['start']['nodeAfter']===_0x2601ec['end']['parent']&&(_0x2601ec=_0x13154d['model']['createRange'](_0x13154d['model']['createPositionAt'](_0x2601ec['start']['nodeAfter'],0x0))),_0x149f56['push'](_0x2601ec);_0x13154d['model']['change'](_0x5eb619=>{const _0x550ec1=_0x13154d['model']['document']['selection'],_0x4475ce=Array['from'](_0x550ec1['getRanges']())['map'](_0x2d1421=>_0x49277e['fromRange'](_0x2d1421));_0x5eb619['setSelection'](_0x149f56),_0x13154d['commands']['get'](_0x2342b3['commandName'])['refresh'](),_0x2342b3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13154d['execute'](_0x2342b3['commandName'],..._0x2342b3['commandParams']),_0x5eb619['setSelection'](_0x4475ce);for(const _0x374c95 of _0x4475ce)_0x374c95['detach']();});}),_0x418e58['descriptionFactory']['registerElementLabel'](function(_0x5e69ed){const _0x2aac79=!_0x13154d['model']['schema']['isObject'](_0x5e69ed),_0x59a0d2=_0x5e69ed['previousSibling'],_0x2e2e2b=_0x5e69ed['nextSibling'],_0x25ff15=_0x5e69ed['getAttribute']('listItemId'),_0x345d58=!_0x59a0d2||_0x59a0d2['getAttribute']('listItemId')!==_0x25ff15,_0x5cdd1e=!_0x2e2e2b||_0x2e2e2b['getAttribute']('listItemId')!==_0x25ff15;return _0x2aac79&&Boolean(_0x25ff15)&&_0x345d58&&_0x5cdd1e;},_0x5c911e=>o(_0x18d3d1,'ELEMENT_LIST_ITEM',_0x5c911e));}['_registerLegacyDescription'](){const _0x5c9d33=this['editor'],_0x4d0b77=_0x5c9d33['locale'];function _0x2e4068(_0x21c008){const _0x4245a7=_0x5c9d33['commands']['get']('bulletedList')['value'],_0x432c49=_0x5c9d33['commands']['get']('numberedList')['value'];return'numberedList'===_0x21c008?_0x4245a7:_0x432c49;}_0x5c9d33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a237d){if('formatBlock'!=_0x2a237d['type'])return;const {data:_0x1c7bed}=_0x2a237d;if(!_0x1c7bed)return;let _0x52b356,_0x726cd4,_0x39b346,_0x7b528a;switch(_0x1c7bed['commandName']){case'bulletedList':_0x39b346=_0x1c7bed['commandParams'][0x0]['forceValue'],_0x7b528a=_0x2e4068(_0x1c7bed['commandName']),_0x52b356=_0x39b346?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x7b528a&&_0x5c9d33['config']['get']('list.multiBlock')||(_0x52b356='*Change\x20to:*\x20%0'),_0x726cd4={'type':'format','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x39b346=_0x1c7bed['commandParams'][0x0]['forceValue'],_0x7b528a=_0x2e4068(_0x1c7bed['commandName']),_0x52b356=_0x39b346?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x7b528a&&_0x5c9d33['config']['get']('list.multiBlock')||(_0x52b356='*Change\x20to:*\x20%0'),_0x726cd4={'type':'format','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x52b356='*Indent:*\x20%0',_0x726cd4={'type':'format','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x52b356=function(_0xff5b25){const _0x2f5d13=_0xff5b25['getFirstRange']();let _0x55f452=_0x2f5d13['start']['nodeAfter'];for(;_0x55f452&&_0x2f5d13['containsItem'](_0x55f452);){if(_0x55f452['getAttribute']('listIndent')>0x0)return!0x1;_0x55f452=_0x55f452['nextSibling'];}return!0x0;}(_0x2a237d)?o(_0x4d0b77,'*Format:*\x20remove\x20from\x20%0',o(_0x4d0b77,function(_0x130920){return'ELEMENT_'+_0x130920['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a237d))):o(_0x4d0b77,'*Outdent:*\x20%0',o(_0x4d0b77,'ELEMENT_LIST_ITEM')),_0x726cd4={'type':'format','content':_0x52b356};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c7bed['multipleBlocks']&&(_0x52b356='*Merge:*\x20%0',_0x726cd4={'type':'deletion','content':o(_0x4d0b77,_0x52b356,o(_0x4d0b77,'ELEMENT_LIST_ITEM'))});}return _0x726cd4;});}}function le(_0x2bfa66){let _0x3b8ad0=_0x2bfa66['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b8ad0;){const _0x196474=_0x3b8ad0['getAttribute']('listItemId');if(!_0x196474)return!0x1;if(_0x196474==_0x2bfa66['data']['newValue'])return'newValue';if(_0x196474==_0x2bfa66['data']['oldValue'])return'oldValue';_0x3b8ad0=_0x3b8ad0['previousSibling'];}return!0x1;}class pe extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x29f868=this['editor']['config']['get']('list.properties'),_0x6f8424=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f868['styles']&&(_0x6f8424['enableDefaultAttributesIntegration']('listStyle'),_0x6f8424['registerBlockAttribute']('listStyle')),_0x29f868['reversed']&&(_0x6f8424['enableDefaultAttributesIntegration']('listReversed'),_0x6f8424['registerBlockAttribute']('listReversed')),_0x29f868['startIndex']&&(_0x6f8424['enableDefaultAttributesIntegration']('listStart'),_0x6f8424['registerBlockAttribute']('listStart'));const _0x5df383={'type':'format','content':''};_0x6f8424['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3a7d09=this['editor']['locale'];_0x6f8424['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3a7d09,'FORMAT_LIST_REVERSED')),_0x6f8424['descriptionFactory']['registerDescriptionCallback'](_0x2ac69e=>{const {data:_0x587f03}=_0x2ac69e;if(_0x587f03&&'listReversed'==_0x587f03['key'])return null==_0x587f03['newValue']||0x0==_0x587f03['newValue']&&null==_0x587f03['oldValue']?_0x5df383:void 0x0;}),_0x6f8424['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3a7d09,'FORMAT_LIST_START')),_0x6f8424['descriptionFactory']['registerDescriptionCallback'](_0x1556dc=>{const {data:_0x16812d}=_0x1556dc;if(_0x16812d&&'listStart'==_0x16812d['key'])return null==_0x16812d['newValue']||0x1==_0x16812d['newValue']&&null==_0x16812d['oldValue']?_0x5df383:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4cb59c=>{if(_0x4cb59c['batch']['isUndo'])return!0x1;let _0x32a6b8=!0x1;const _0x182f3b=_0x6f8424['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a0173=>{const _0xaaf527=_0x6f8424['_getAttributeKey'](_0x2a0173);return'listStart'==_0xaaf527||'listReversed'==_0xaaf527;});for(const _0x20baf9 of _0x182f3b){const _0x2adede=_0x20baf9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2adede||'customNumbered'==_0x2adede)continue;_0x6f8424['_findSuggestions'](_0x20baf9['getFirstRange'](),'attribute')['find'](_0x3c2ecc=>'listType'==_0x6f8424['_getAttributeKey'](_0x3c2ecc['suggestion']))||(_0x4cb59c['removeMarker'](_0x20baf9['getFirstMarker']()),_0x32a6b8=!0x0);}return _0x32a6b8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x170b1a){const _0x5e15c1=this['editor']['locale'],{data:_0x2a36c0}=_0x170b1a,_0x11701b={'type':'format','content':''};if(!_0x2a36c0||'listStyle'!=_0x2a36c0['key'])return;if(!_0x2a36c0['oldValue'])return'default'==_0x2a36c0['newValue']?_0x11701b:{'type':'format','content':''+o(_0x5e15c1,'*Set\x20format:*\x20%0',o(_0x5e15c1,this['_getTranslationKeyForListStyle'](_0x2a36c0['newValue'])))};if(!_0x2a36c0['newValue']){if('default'==_0x2a36c0['oldValue'])return _0x11701b;let _0x45edf4=_0x170b1a['head'];for(;_0x45edf4;){if(_0x45edf4['data']&&'listType'==_0x45edf4['data']['key']&&_0x45edf4['data']['newValue'])return _0x11701b;_0x45edf4=_0x45edf4['next'];}return{'type':'format','content':''+o(_0x5e15c1,'*Remove\x20format:*\x20%0',o(_0x5e15c1,this['_getTranslationKeyForListStyle'](_0x2a36c0['oldValue'])))};}if('default'!=_0x2a36c0['newValue'])return{'type':'format','content':''+o(_0x5e15c1,'*Set\x20format:*\x20%0',o(_0x5e15c1,this['_getTranslationKeyForListStyle'](_0x2a36c0['newValue'])))};let _0x261604=_0x170b1a['head'];for(;_0x261604;){if(_0x261604['data']&&'listType'==_0x261604['data']['key']&&_0x261604['data']['newValue']&&_0x261604['data']['oldValue'])return _0x11701b;_0x261604=_0x261604['next'];}return{'type':'format','content':o(_0x5e15c1,'*Set\x20format:*\x20%0',o(_0x5e15c1,'ELEMENT_'+_0x170b1a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x272ca1=this['editor'],_0x5e8b3f=_0x272ca1['locale'];_0x272ca1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8aa6=>{if('formatBlock'!=_0x2a8aa6['type'])return;const {data:_0x56f31e}=_0x2a8aa6;if(!_0x56f31e)return;let _0x594bd1,_0x548b44;switch(_0x56f31e['commandName']){case'listStyle':_0x594bd1='*Change\x20to:*\x20%0',_0x548b44={'type':'format','content':o(_0x5e8b3f,_0x594bd1,o(_0x5e8b3f,this['_getTranslationKeyForListStyle'](_0x56f31e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x594bd1=_0x56f31e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x548b44={'type':'format','content':o(_0x5e8b3f,_0x594bd1)};break;case'listStart':_0x594bd1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x548b44={'type':'format','content':o(_0x5e8b3f,_0x594bd1,_0x56f31e['commandParams'][0x0]['startIndex'])};}return _0x548b44;});}['_getTranslationKeyForListStyle'](_0x32d6d3){return'ELEMENT_'+function(_0x20f918){if(ye['includes'](_0x20f918))return'bulleted';if(he['includes'](_0x20f918))return'numbered';return null;}(_0x32d6d3)['toUpperCase']()+'_LIST_'+_0x32d6d3['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x20fe95{static get['requires'](){return[_0x206631];}['init'](){const _0x4cd776=this['editor'],_0x235745=_0x4cd776['plugins']['get']('TrackChangesEditing'),_0x53c293=_0x4cd776['commands']['get']('enter');_0x235745['enableCommand']('enter',()=>{_0x4cd776['model']['change'](_0x426a3=>{const _0x5690ac=_0x4cd776['model']['document']['selection'],_0x2987e4=_0x5690ac['getFirstPosition'](),_0x2357c6=_0x49277e['fromRange'](_0x5690ac['getFirstRange']());if(_0x53c293['enterBlock'](_0x426a3)){const _0x325ab5=_0x4cd776['model']['createPositionAt'](_0x2987e4['parent']['nextSibling'],0x0),_0x4357b6=_0x426a3['createRange'](_0x2987e4,_0x325ab5);_0x235745['markInsertion'](_0x4357b6);}else _0x426a3['setSelection'](_0x426a3['createRange'](_0x2357c6['end']));_0x2357c6['detach'](),_0x53c293['fire']('afterExecute',{'writer':_0x426a3});});}),_0x4cd776['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4cd776,'split'),{'priority':'high'}),_0x4cd776['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x177a07,_0x131477,_0x2e37e1)=>{const _0x22807e=_0x2e37e1['mapper']['markerNameToElements'](_0x131477['markerName']);if(_0x22807e){for(const _0x3557b9 of _0x22807e)_0x3557b9['hasClass']('ck-suggestion-marker-split')&&(_0x2e37e1['mapper']['unbindElementFromMarkerName'](_0x3557b9,_0x131477['markerName']),_0x2e37e1['writer']['remove'](_0x3557b9));}},{'priority':'high'}),_0x4cd776['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x9f9170,_0x1875f3,_0x30e199)=>{_0x30e199['options']['showSuggestionHighlights']&&_e(_0x4cd776,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x9f9170,_0x1875f3,_0x30e199);},{'priority':'high'});}}class J extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5791a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x5791a2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5791a2['enableCommand']('findNext'),_0x5791a2['enableCommand']('findPrevious'),_0x5791a2['enableCommand']('replace'),_0x5791a2['enableCommand']('replaceAll');}['handleFindCommand'](_0x432e16,_0x45ff26,_0x2b1949={}){const _0x26c045=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x432e16(_0x409bf4=>{let _0x164fe4=('string'==typeof _0x45ff26?_0x26c045['findByTextCallback'](_0x45ff26,_0x2b1949):_0x45ff26)(_0x409bf4);Array['isArray'](_0x164fe4)&&(_0x164fe4={'results':_0x164fe4,'searchText':'string'==typeof _0x45ff26?_0x45ff26:''});const _0x31be60=_0x164fe4['results']['filter'](_0x4df8ae=>!0x1===this['_isInDeletionRange'](_0x4df8ae,_0x409bf4['item']));return{..._0x164fe4,'results':_0x31be60};},_0x2b1949);}['_isInDeletionRange'](_0x5767b3,_0x252450){const _0x362879=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x252450,_0x5767b3['start']),this['editor']['model']['createPositionAt'](_0x252450,_0x5767b3['end']));for(const _0x54dc12 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x362879['getIntersection'](_0x54dc12['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x20fe95{['afterInit'](){const _0x5cd9cb=this['editor']['locale'],_0x1b9287=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a7f86,commandName:_0x44b18d}of ro)this['editor']['plugins']['has'](_0x4a7f86)&&(_0x1b9287['enableDefaultAttributesIntegration'](_0x44b18d),_0x1b9287['registerInlineAttribute'](_0x44b18d));_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5cd9cb,'FORMAT_FONT_SIZE')),_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5cd9cb,'FORMAT_FONT_FAMILY')),_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5cd9cb,'FORMAT_FONT_COLOR')),_0x1b9287['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5cd9cb,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x444023=this['editor'],_0x3f10d6=_0x444023['locale'];_0x444023['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x133daf=>{const _0x41a111=_0x3f10d6['t'];if('formatInline'!=_0x133daf['type'])return;const {data:_0x2881ec}=_0x133daf;if(null!=_0x2881ec){if('fontSize'==_0x2881ec['commandName']){const _0x23e73f=_0x2881ec['commandParams'][0x0]['value'];if(_0x23e73f){const _0x49ed00=_0x41a111(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x52f734=>_0x52f734['model']==_0x23e73f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20size:*\x20%0',_0x49ed00)};}return{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2881ec['commandName']){const _0x12c25d=_0x2881ec['commandParams'][0x0]['value'];return _0x12c25d?{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20family:*\x20%0',_0x12c25d)}:{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2881ec['commandName']){const _0x1e4681=_0x2881ec['commandParams'][0x0]['value'];if(_0x1e4681){const _0x81d4bc=_0x197f90(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3b44f8=>_0x3b44f8['model']==_0x1e4681);let _0xb94a42=_0x1e4681,_0x294424='';return _0x81d4bc&&(_0xb94a42=_0x81d4bc['label'],_0x294424=_0x41a111(_0xb94a42)['toLowerCase']()),{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20color:*\x20%0',_0x294424)['trim'](),'color':{'value':_0x1e4681,'title':_0x294424||_0xb94a42}};}return{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2881ec['commandName']){const _0x22c894=_0x2881ec['commandParams'][0x0]['value'];if(_0x22c894){const _0xcbfe06=_0x197f90(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x57c0f4=>_0x57c0f4['model']==_0x22c894);let _0x191be8=_0x22c894,_0x315ed6='';return _0xcbfe06&&(_0x191be8=_0xcbfe06['label'],_0x315ed6=_0x41a111(_0x191be8)['toLowerCase']()),{'type':'format','content':o(_0x3f10d6,'*Set\x20font\x20background\x20color:*\x20%0',_0x315ed6)['trim'](),'color':{'value':_0x22c894,'title':_0x315ed6||_0x191be8}};}return{'type':'format','content':o(_0x3f10d6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x20fe95{['afterInit'](){const _0x27b550=this['editor'],_0x15ffd3=_0x27b550['plugins']['get']('TrackChangesEditing'),_0x457839=_0x27b550['commands']['get']('copyFormat'),_0xa9efdf=_0x27b550['commands']['get']('pasteFormat');_0x457839&&_0xa9efdf&&(_0x15ffd3['enableDefaultAttributesIntegration']('pasteFormat'),_0x15ffd3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc282b6=this['editor'],_0x1a0db0=_0xc282b6['locale'];_0xc282b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1a00=>{if('formatBlock'!=_0x1a1a00['type']&&'formatInline'!=_0x1a1a00['type'])return;const {data:_0x3fcd73}=_0x1a1a00;if(_0x3fcd73&&'pasteFormat'===_0x3fcd73['commandName']){const _0x54fc52=[],_0x4d9d1f=_0x3fcd73['commandParams'][0x0];for(const [_0x2cece6,_0x3cd656]of Object['entries'](_0x4d9d1f))_0x54fc52['push'](so(_0xc282b6,_0x2cece6,_0x3cd656));return _0x54fc52['length']?{'type':'format','content':o(_0x1a0db0,'*Set\x20format\x20to:*\x20%0',_0x54fc52['join'](',\x20'))}:{'type':'format','content':o(_0x1a0db0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2390b3,_0x1b5114,_0x3642df){const _0x40dee5=_0x2390b3['locale']['t'],_0x12be3c=_0x1b5114['split'](/(?=[A-Z])/)['join']('\x20'),_0x5cbc39=_0x40dee5(_0x12be3c['charAt'](0x0)['toUpperCase']()+_0x12be3c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3642df)return _0x5cbc39;if('fontColor'===_0x1b5114||'fontBackgroundColor'===_0x1b5114){const _0x1644ba=_0x197f90(_0x2390b3['config']['get']('fontColor.colors'))['find'](_0x159cea=>_0x159cea['model']==_0x3642df);return _0x5cbc39+'\x20('+(_0x1644ba?_0x40dee5(_0x1644ba['label'])['toLowerCase']():_0x3642df)+')';}if('fontSize'===_0x1b5114&&isNaN(parseFloat(_0x3642df))){const _0x36ae84=_0x2390b3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2390b3['config']['get']('fontSize.options'))['find'](_0x3c4bcd=>_0x3c4bcd['model']==_0x3642df);return _0x5cbc39+'\x20('+(_0x36ae84?_0x40dee5(_0x36ae84['title'])['toLowerCase']():_0x3642df)+')';}return _0x5cbc39+'\x20('+_0x3642df+')';}class Y extends _0x20fe95{['_headingOptions'];['afterInit'](){const _0x1dda75=this['editor'];if(!_0x1dda75['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1dda75['config']['get']('heading.options');const _0x253db7=_0x1dda75['locale'],_0xb231f9=_0x1dda75['plugins']['get']('TrackChangesEditing');_0xb231f9['enableDefaultAttributesIntegration']('heading');for(const _0x4ccf86 of this['_headingOptions'])'paragraph'!=_0x4ccf86['model']&&_0xb231f9['descriptionFactory']['registerElementLabel'](_0x4ccf86['model'],_0x146f04=>{const _0x3c45df=this['_getHeadingLevel'](_0x4ccf86['model']);return null!==_0x3c45df?_0x28addf(_0x146f04,_0x3c45df):_0x2cf8fd(_0x146f04,_0x4ccf86['title']);});function _0x28addf(_0x758139,_0x39da82){return o(_0x253db7,'ELEMENT_HEADING',[_0x758139,_0x39da82]);}function _0x2cf8fd(_0x2d61c6,_0x1d39d4){return o(_0x253db7,'ELEMENT_HEADING_CUSTOM',[_0x2d61c6,_0x1d39d4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1671ff=this['editor'],_0x17a1c7=_0x1671ff['locale'];function _0x2bbba0(_0x27c940,_0x3e7a57){return o(_0x17a1c7,'ELEMENT_HEADING_CUSTOM',[_0x27c940,_0x3e7a57]);}_0x1671ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdc22aa=>{if('formatBlock'!=_0xdc22aa['type'])return;const {data:_0x4fb399}=_0xdc22aa;if(_0x4fb399&&'heading'==_0x4fb399['commandName']){const _0x28a1d9=_0x4fb399['commandParams'][0x0]['value'],_0x22f6dd=this['_getHeadingLevel'](_0x28a1d9);if(null!==_0x22f6dd)return{'type':'format','content':o(_0x17a1c7,'*Change\x20to:*\x20%0',(_0x36476e=0x1,_0x23a16c=_0x22f6dd,o(_0x17a1c7,'ELEMENT_HEADING',[_0x36476e,_0x23a16c])))};const _0x1f2abb=this['_headingOptions']['find'](_0x3b7a53=>_0x3b7a53['model']===_0x28a1d9)['title'];return{'type':'format','content':o(_0x17a1c7,'*Change\x20to:*\x20%0',_0x2bbba0(0x1,_0x1f2abb))};}var _0x36476e,_0x23a16c;});}['_getHeadingLevel'](_0x442cbd){const _0x2023a2=_0x442cbd['match'](/^heading(\d+)/);if(_0x2023a2)return _0x2023a2[0x1];const _0x3929d8=this['_headingOptions']?.['find'](_0x3587ea=>_0x3587ea['model']==_0x442cbd);if(_0x3929d8&&_0x3929d8['view']){const _0x3ed59d=_0x3929d8['view'],_0x386f0a=(_0x3ed59d['name']??_0x3ed59d)['match'](/^h(\d+)/);if(_0x386f0a)return _0x386f0a[0x1];}return null;}}class Z extends _0x20fe95{['afterInit'](){const _0x362b6f=this['editor'];if(!_0x362b6f['plugins']['has']('HighlightEditing'))return;const _0x1c5e11=_0x362b6f['plugins']['get']('TrackChangesEditing'),_0x542aa1=_0x362b6f['locale'];_0x1c5e11['enableDefaultAttributesIntegration']('highlight'),_0x1c5e11['registerInlineAttribute']('highlight'),_0x1c5e11['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x542aa1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b6a4c=this['editor'],_0x26c827=_0x3b6a4c['locale'];_0x3b6a4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f861=>{if('formatInline'!=_0x30f861['type'])return;const {data:_0x252bc4}=_0x30f861;if(_0x252bc4&&'highlight'==_0x252bc4['commandName']){const _0x404165=_0x26c827['t'],_0x35b464=_0x252bc4['commandParams'][0x0]['value'];if(_0x35b464){const _0x3d1da5=_0x3b6a4c['config']['get']('highlight.options')['find'](_0x5024e2=>_0x5024e2['model']==_0x35b464),_0x107dee=_0x404165(_0x3d1da5['title'])['toLowerCase']();return{'type':'format','content':o(_0x26c827,'*Set\x20highlight:*\x20%0',_0x107dee),'color':{'value':_0x3d1da5['color'],'title':_0x3d1da5['title']}};}return{'type':'format','content':o(_0x26c827,'*Remove\x20highlight*',o(_0x26c827,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x20fe95{['afterInit'](){const _0x51572b=this['editor'];if(!_0x51572b['plugins']['has']('HorizontalLineEditing'))return;_0x51572b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x58336d=_0x51572b['plugins']['get']('TrackChangesEditing'),_0x375cc2=_0x51572b['locale'];_0x58336d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x290a55=>o(_0x375cc2,'ELEMENT_HORIZONTAL_LINE',_0x290a55)),_0x51572b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d514e,{writer:_0x46d191,options:_0x843dee})=>{if(!_0x843dee['showSuggestionHighlights'])return null;const _0x3a33c3=_0x46d191['createContainerElement']('div'),_0x3c8bbf=_0x46d191['createEmptyElement']('hr');return _0x46d191['addClass']('ck-horizontal-line',_0x3a33c3),_0x46d191['insert'](_0x46d191['createPositionAt'](_0x3a33c3,0x0),_0x3c8bbf),_0x3a33c3;},'converterPriority':'high'});}}class et extends _0x20fe95{['afterInit'](){const _0x380cf3=this['editor'];if(!_0x380cf3['plugins']['has']('HtmlEmbed'))return;const _0x3250ca=_0x380cf3['plugins']['get']('TrackChangesEditing'),_0x3f3f89=_0x380cf3['locale'];_0x3250ca['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e0182=>o(_0x3f3f89,'ELEMENT_HTML_EMBED',_0x4e0182)),_0x3250ca['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3250ca['registerBlockAttribute']('value'),_0x3250ca['descriptionFactory']['registerDescriptionCallback'](_0x4089e2=>{if('attribute'!=_0x4089e2['type'])return;const {data:_0x30e63a}=_0x4089e2;if(_0x30e63a&&'value'==_0x30e63a['key']&&_0x4089e2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1ad24b=o(_0x3f3f89,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f3f89,'*Change\x20%0\x20content*',_0x1ad24b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a1710=this['editor'],_0x168eaa=_0x5a1710['locale'];_0x5a1710['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdb1716=>{if('formatBlock'!=_0xdb1716['type'])return;const {data:_0x43c3ad}=_0xdb1716;if(_0x43c3ad&&'htmlEmbed'==_0x43c3ad['commandName']){const _0x383278=o(_0x168eaa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x168eaa,'*Change\x20%0\x20content*',_0x383278)};}});}}class it extends _0x20fe95{['afterInit'](){const _0x43de08=this['editor'];if(!_0x43de08['plugins']['has']('ImageEditing'))return;const _0x369032=_0x43de08['plugins']['get']('TrackChangesEditing'),_0x5eef2a=_0x43de08['plugins']['get']('ImageUtils'),_0x4cba8d=_0x43de08['locale'];_0x369032['enableCommand']('insertImage'),_0x369032['descriptionFactory']['registerElementLabel']('imageBlock',_0x592d1d=>o(_0x4cba8d,'ELEMENT_IMAGE',_0x592d1d)),_0x369032['descriptionFactory']['registerElementLabel']('imageInline',_0x2612ac=>o(_0x4cba8d,'ELEMENT_INLINE_IMAGE',_0x2612ac)),_0x369032['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4cba8d,'ELEMENT_CAPTION')),_0x43de08['plugins']['has']('ImageUploadEditing')&&_0x369032['enableCommand']('uploadImage'),_0x43de08['plugins']['has']('ImageBlockEditing')&&_0x43de08['plugins']['has']('ImageInlineEditing')&&(_0x369032['enableCommand']('imageTypeInline',(_0x87bc96,_0x10c2af)=>{const _0xd58506=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']);_0x43de08['model']['change'](()=>{_0x369032['markBlockFormat'](_0xd58506,{'commandName':'imageTypeInline','commandParams':[_0x10c2af]},[],'convertBlockImageToInline');});}),_0x369032['enableCommand']('imageTypeBlock',(_0x5222e6,_0xc4fa78)=>{_0x43de08['model']['change'](_0xa6dfcb=>{let _0x9bc71e=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x48b4e5=_0xa6dfcb['createRangeOn'](_0x9bc71e);const _0x2cf36d=_0x397273['fromPosition'](_0x48b4e5['start'],'toPrevious'),_0x3e3195=_0x397273['fromPosition'](_0x48b4e5['end'],'toNext');_0x369032['forceDefaultExecution'](()=>_0x5222e6(_0xc4fa78)),_0x9bc71e=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x48b4e5=_0xa6dfcb['createRangeOn'](_0x9bc71e);const _0x1c371d=_0xa6dfcb['createRange'](_0x2cf36d,_0x3e3195);_0x2cf36d['detach'](),_0x3e3195['detach'](),_0x369032['markBlockFormat'](_0x9bc71e,{'commandName':'imageTypeInline','commandParams':[_0xc4fa78]},[],'convertInlineImageToBlock'),_0x1c371d['start']['isBefore'](_0x48b4e5['start'])&&_0x369032['markInsertion'](_0xa6dfcb['createRange'](_0x1c371d['start'],_0x48b4e5['start']),'convertInlineImageToBlock'),_0x48b4e5['end']['isBefore'](_0x1c371d['end'])&&_0x369032['markInsertion'](_0xa6dfcb['createRange'](_0x48b4e5['end'],_0x1c371d['end']),'convertInlineImageToBlock');});}),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x369032['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4ae501])=>{const _0x25555f=_0x369032['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x211d30=_0x4ae501['start'],_0x41f812=_0x4ae501['end'];const _0x3d2368=_0x43de08['model']['schema']['getNearestSelectionRange'](_0x211d30,'backward'),_0x15d091=_0x43de08['model']['schema']['getNearestSelectionRange'](_0x41f812,'forward');_0x3d2368['isCollapsed']&&(_0x211d30=_0x3d2368['start']),_0x15d091['isCollapsed']&&(_0x41f812=_0x15d091['end']),_0x25555f([_0x43de08['model']['createRange'](_0x211d30,_0x41f812)]);}),_0x369032['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x404f78),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x404f78)),_0x43de08['plugins']['has']('ImageCaptionEditing')&&(_0x369032['enableCommand']('toggleImageCaption',(_0x39cb5a,_0x5a2355)=>{const _0x47316a=_0x43de08['plugins']['get']('ImageCaptionUtils');let _0x5503fd=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x2f6d05=_0x47316a['getCaptionFromImageModelElement'](_0x5503fd);_0x43de08['model']['change'](()=>{if(_0x2f6d05)return void _0x369032['markDeletion'](_0x43de08['model']['createRangeOn'](_0x2f6d05));const _0x993b3f=_0x5eef2a['isBlockImage'](_0x5503fd);_0x39cb5a(_0x5a2355),_0x5503fd=_0x5eef2a['getClosestSelectedImageElement'](_0x43de08['model']['document']['selection']),_0x2f6d05=_0x47316a['getCaptionFromImageModelElement'](_0x5503fd),_0x369032['markInsertion'](_0x43de08['model']['createRangeOn'](_0x2f6d05),_0x993b3f?null:'imageCaption');});}),_0x369032['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x404f78));const _0x2a4082=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ad155(_0x159e7b,_0x376ce6){const _0x35a4a9=_0x2a4082['findIndex'](({type:_0x52b196,subType:_0x1991a8})=>_0x159e7b['type']==_0x52b196&&_0x159e7b['subType']==_0x1991a8),_0x57a4b1=_0x2a4082['findIndex'](({type:_0x556f1e,subType:_0x73f36})=>_0x376ce6['type']==_0x556f1e&&_0x376ce6['subType']==_0x73f36);if(_0x35a4a9<0x0||_0x57a4b1<0x0)return!0x1;const _0x1c26db=_0x159e7b['getFirstRange'](),_0x4f77fd=_0x376ce6['getFirstRange']();if((0x0==_0x35a4a9||0x1==_0x35a4a9)&&0x2==_0x57a4b1&&_0x1c26db['isIntersecting'](_0x4f77fd))return!0x0;if(0x2==_0x35a4a9&&0x3==_0x57a4b1){const _0x152091=_0x369032['_findSuggestions'](_0x1c26db,'insertion')['filter'](({suggestion:_0xd2e071,meta:_0x17f20b})=>_0x17f20b['isOwn']&&'convertInlineImageToBlock'==_0xd2e071['subType']);if(_0x152091['length']>0x1&&_0x4f77fd['end']['isEqual'](_0x1c26db['start']))return!0x0;if(0x1==_0x152091['length']&&(_0x1c26db['start']['isEqual'](_0x4f77fd['end'])||_0x1c26db['end']['isEqual'](_0x4f77fd['start'])))return!0x0;}if(0x3==_0x35a4a9&&0x3==_0x57a4b1&&_0x1c26db['start']['isBefore'](_0x4f77fd['start'])){const _0x1f739=_0x1c26db['end']['nodeAfter'],_0x1a37d8=_0x4f77fd['start']['nodeBefore'];return _0x5eef2a['isBlockImage'](_0x1f739)&&_0x1f739===_0x1a37d8;}return!0x1;}function _0x404f78(_0x5340af,_0x24c2b2){return _0x2ad155(_0x5340af,_0x24c2b2)?[_0x5340af,_0x24c2b2]:_0x2ad155(_0x24c2b2,_0x5340af)?[_0x24c2b2,_0x5340af]:null;}_0x43de08['plugins']['has']('ImageResize')&&(_0x369032['enableDefaultAttributesIntegration']('resizeImage'),_0x369032['registerBlockAttribute']('resizedWidth'),_0x369032['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4cba8d,'FORMAT_IMAGE_SIZE'))),_0x43de08['plugins']['has']('ImageTextAlternativeEditing')&&(_0x369032['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x369032['registerBlockAttribute']('alt')),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x519652=>{if(!!_0x2a4082['find'](({type:_0x3c37c7,subType:_0x57ed92})=>_0x519652['type']==_0x3c37c7&&_0x519652['subType']==_0x57ed92))return _0x519652['previous']?{}:void 0x0;}),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x170c5f=>{if('insertion'==_0x170c5f['type']||'deletion'==_0x170c5f['type']){const _0x127183=_0x170c5f['getContainedElement']();if(_0x127183&&_0x127183['is']('element','caption'))return{'type':'insertion'==_0x170c5f['type']?'addObject':'removeObject','element':_0x127183,'quantity':0x1};}}),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x547459=>'formatBlock'==_0x547459['type']&&'convertInlineImageToBlock'==_0x547459['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x547459['type']&&'convertBlockImageToInline'==_0x547459['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x369032['descriptionFactory']['registerDescriptionCallback'](_0x13209a=>{if('attribute'!=_0x13209a['type'])return;const {data:_0x368484}=_0x13209a;if(!_0x368484||'alt'!=_0x368484['key'])return;const _0x30086b=_0x368484['newValue'];return _0x30086b?{'type':'format','content':o(_0x4cba8d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30086b+'\x22')}:{'type':'format','content':o(_0x4cba8d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4719c6=this['editor'],_0x4ffaee=_0x4719c6['locale'];_0x4719c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46a13a=>{if('formatBlock'!=_0x46a13a['type']&&'formatInline'!=_0x46a13a['type'])return;const {data:_0x4d0464}=_0x46a13a;if(_0x4d0464){if('imageTextAlternative'==_0x4d0464['commandName']){const _0x2dc966=_0x4d0464['commandParams'][0x0]['newValue'];return _0x2dc966?{'type':'format','content':o(_0x4ffaee,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2dc966+'\x22')}:{'type':'format','content':o(_0x4ffaee,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4d0464['commandName']){const _0x1d95f5=_0x4d0464['commandParams'][0x0]['width'];return _0x1d95f5?{'type':'format','content':o(_0x4ffaee,'*Set\x20image\x20width:*\x20%0',_0x1d95f5)}:{'type':'format','content':o(_0x4ffaee,'*Reset\x20image\x20width*')};}}});}}class st extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x239915=this['editor']['locale'],_0x26d7c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x26d7c5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26d7c5['registerBlockAttribute']('src'),_0x26d7c5['descriptionFactory']['registerDescriptionCallback'](_0x27a080=>{if('attribute'!=_0x27a080['type'])return;const {data:_0x53009d}=_0x27a080;return _0x53009d&&'src'==_0x53009d['key']?_0x53009d['newValue']&&_0x53009d['oldValue']?{'type':'format','content':o(_0x239915,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x112607=this['editor']['plugins']['get']('TrackChangesEditing');_0x112607['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x112607['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x112607['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x112607['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e89d=this['editor'],_0x28107d=_0x38e89d['locale'];_0x38e89d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x449ca2=>{if('formatBlock'!=_0x449ca2['type']&&'formatInline'!=_0x449ca2['type'])return;const {data:_0x5c9c1c}=_0x449ca2;if(!_0x5c9c1c||'replaceImageSource'!=_0x5c9c1c['commandName'])return;return{'type':'format','content':o(_0x28107d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x20fe95{['afterInit'](){const _0x46fc70=this['editor'];if(!_0x46fc70['plugins']['has']('ImageStyleEditing'))return;const _0x5663ec=_0x46fc70['plugins']['get']('TrackChangesEditing'),_0x44f8e2=_0x46fc70['plugins']['get']('ImageUtils'),_0x154d46={};_0x5663ec['enableCommand']('imageStyle',(_0x55ec2f,_0x31c0e7)=>{const _0x404da8=_0x46fc70['plugins']['get']('Users')['me'],_0x26fc80=_0x46fc70['commands']['get']('imageStyle');let _0x43ce42=_0x44f8e2['getClosestSelectedImageElement'](_0x46fc70['model']['document']['selection']),_0x2ccb50=_0x46fc70['model']['createRangeOn'](_0x43ce42),_0x4aecd5=_0x26fc80['value'];if(_0x4aecd5==_0x31c0e7['value'])return;const _0x218765={'commandName':'imageStyle','commandParams':[_0x31c0e7],'formatGroupId':_0x5d1950()};_0x46fc70['model']['change'](()=>{if(_0x5663ec['getSuggestions']()['filter'](_0x21dfc1=>_0x21dfc1['isInContent']&&_0x404da8==_0x21dfc1['author']&&('formatBlock'==_0x21dfc1['type']||'formatInline'==_0x21dfc1['type'])&&('imageStylePreApply'==_0x21dfc1['subType']||'imageStylePostApply'==_0x21dfc1['subType'])&&_0x21dfc1['getFirstRange']()['isEqual'](_0x2ccb50))['forEach'](_0x1b1fb1=>_0x5663ec['discardSuggestion'](_0x1b1fb1['head'])),_0x43ce42=_0x44f8e2['getClosestSelectedImageElement'](_0x46fc70['model']['document']['selection']),_0x2ccb50=_0x46fc70['model']['createRangeOn'](_0x43ce42),_0x26fc80['refresh'](),_0x46fc70['commands']['get']('imageTypeInline')['refresh'](),_0x46fc70['commands']['get']('imageTypeBlock')['refresh'](),_0x4aecd5=_0x26fc80['value'],_0x4aecd5!=_0x31c0e7['value'])return _0x44f8e2['isInlineImage'](_0x43ce42)&&_0x26fc80['shouldConvertImageType'](_0x31c0e7['value'],_0x43ce42)?(_0x55ec2f({..._0x31c0e7,'setImageSizes':!0x1}),_0x43ce42=_0x44f8e2['getClosestSelectedImageElement'](_0x46fc70['model']['document']['selection']),void _0x5663ec['markBlockFormat'](_0x43ce42,{..._0x218765,'commandReversedParams':[{'value':_0x4aecd5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44f8e2['isBlockImage'](_0x43ce42)?_0x5663ec['markBlockFormat'](_0x43ce42,_0x218765,[],'imageStylePostApply'):_0x5663ec['markInlineFormat'](_0x2ccb50,_0x218765,'imageStylePostApply'));});});for(const _0x35ec95 of _0x46fc70['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x154d46[_0x35ec95['name']]=_0x35ec95['title']['toLowerCase']();_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2aa837])=>{_0x44f8e2['setImageNaturalSizeAttributes'](_0x2aa837['getContainedElement']());}),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3a2679,_0x3dd327)=>{_0x5663ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3a2679,{'commandName':_0x3dd327['commandName'],'commandParams':_0x3dd327['commandReversedParams']});}),_0x5663ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2a5351,_0x434e1f){if(_0x44a4d6(_0x2a5351,_0x434e1f))return[_0x2a5351,_0x434e1f];if(_0x44a4d6(_0x434e1f,_0x2a5351))return[_0x434e1f,_0x2a5351];return null;});const _0x3c3755=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44a4d6(_0x224eb6,_0x4b4307){const _0x13cbe6=_0x3c3755['findIndex'](({type:_0x976979,subType:_0x3783fc})=>_0x224eb6['type']==_0x976979&&_0x224eb6['subType']==_0x3783fc),_0x3c624d=_0x3c3755['findIndex'](({type:_0x3dc969,subType:_0x2ad139})=>_0x4b4307['type']==_0x3dc969&&_0x4b4307['subType']==_0x2ad139);if(_0x13cbe6<0x0||_0x3c624d<0x0)return!0x1;const _0xebeb3f=_0x224eb6['getFirstRange'](),_0x3f8d72=_0x4b4307['getFirstRange']();if((0x0==_0x13cbe6||0x1==_0x13cbe6)&&0x2==_0x3c624d&&_0xebeb3f['isIntersecting'](_0x3f8d72))return!0x0;if(0x2==_0x13cbe6&&0x3==_0x3c624d){const _0x48f9b9=_0x5663ec['_findSuggestions'](_0xebeb3f,'insertion')['filter'](({suggestion:_0x2e3ae7,meta:_0xc20f71})=>_0xc20f71['isOwn']&&'convertInlineImageToBlock'==_0x2e3ae7['subType']);if(_0x48f9b9['length']>0x1&&_0x3f8d72['end']['isEqual'](_0xebeb3f['start']))return!0x0;if(0x1==_0x48f9b9['length']&&(_0xebeb3f['start']['isEqual'](_0x3f8d72['end'])||_0xebeb3f['end']['isEqual'](_0x3f8d72['start'])))return!0x0;}if(0x3==_0x13cbe6&&0x3==_0x3c624d&&_0xebeb3f['start']['isBefore'](_0x3f8d72['start'])){const _0x2b9558=_0xebeb3f['end']['nodeAfter'],_0x578fae=_0x3f8d72['start']['nodeBefore'];return _0x44f8e2['isBlockImage'](_0x2b9558)&&_0x2b9558===_0x578fae;}return!0x1;}_0x46fc70['model']['document']['registerPostFixer'](()=>{let _0x224052=!0x1;const _0x1f8423=Array['from'](_0x46fc70['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27ac67,data:_0x588a52}of _0x1f8423){const {group:_0x29e58c,type:_0x1b0eb8,subType:_0x3d61ab,id:_0x4605c1}=_0x5663ec['_splitMarkerName'](_0x27ac67);if('suggestion'==_0x29e58c&&_0x5663ec['hasSuggestion'](_0x4605c1)){if('formatBlock'==_0x1b0eb8&&('imageStylePreApply'==_0x3d61ab||'imageStylePostApply'==_0x3d61ab)){const _0x2b9e4c=_0x5663ec['getSuggestion'](_0x4605c1);if(_0x588a52['newRange']){const _0x12a040=_0x2b9e4c['getFirstRange']()['getContainedElement']();if(_0x44f8e2['isBlockImage'](_0x12a040))continue;_0x5663ec['discardSuggestion'](_0x2b9e4c),_0x224052=!0x0;}}if('insertion'==_0x1b0eb8&&'imageCaption'==_0x3d61ab&&!_0x588a52['newRange']){const _0x1f28ed=_0x5663ec['getSuggestion'](_0x4605c1);_0x1f28ed['next']&&_0x1f28ed['next']['isInContent']&&(_0x5663ec['discardSuggestion'](_0x1f28ed['next']),_0x224052=!0x0);}}}return _0x224052;}),this['_registerLegacyDescription'](_0x154d46);}['_registerLegacyDescription'](_0x474fab){const _0x33517d=this['editor'],_0x2a0e81=_0x33517d['locale'];_0x33517d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ce024=>{if('formatBlock'!=_0x3ce024['type']&&'formatInline'!=_0x3ce024['type'])return;const {data:_0x4e7481}=_0x3ce024;if(!_0x4e7481||'imageStyle'!=_0x4e7481['commandName'])return;const _0x3dc4f6=_0x4e7481['commandParams'][0x0]['value'];return _0x107047('side'===_0x3dc4f6?o(_0x2a0e81,'FORMAT_SIDE_IMAGE'):_0x474fab[_0x3dc4f6]||_0x3dc4f6);function _0x107047(_0x1fbec3){return{'type':'format','content':o(_0x2a0e81,'*Format:*\x20%0',_0x1fbec3)};}});}}class ot extends _0x20fe95{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xff984){super(_0xff984),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1cdcc1=this['editor'],_0x49a4d6=_0x1cdcc1['commands']['get']('importWord'),_0x50aa22=_0x1cdcc1['commands']['get']('trackChanges');_0x49a4d6&&(_0x49a4d6['on']('execute',(_0x413a6c,[,_0x302c02])=>{this['_trackChangesValueDuringImport']=_0x50aa22['value'],_0x302c02['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49a4d6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49a4d6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x50aa22['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1cdcc1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25c13b,_0x271d80){const {suggestions:_0x5b3270}=_0x271d80,_0x5a429c=this['editor']['commands']['get']('trackChanges'),_0xdd781f=_0x5a429c['value'];this['_trackChangesValueDuringImport']!==_0xdd781f&&(_0x5a429c['execute'](),this['_trackChangesExecuted']=!0x0),_0x5b3270&&_0x5b3270['forEach'](({id:_0x540bb4,type:_0x2e9fe7,author:_0x445125,created_at:_0x1ac147})=>{const _0x121c5c={'id':_0x540bb4,'type':_0x2e9fe7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x445125,'createdAt':_0x1ac147?new Date(_0x1ac147):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x121c5c);});}}class rt extends _0x20fe95{['afterInit'](){const _0x2949c8=this['editor'],_0x49a75c=_0x2949c8['plugins']['get']('TrackChangesEditing');if(_0x2949c8['plugins']['has']('IndentEditing')&&(_0x49a75c['enableCommand']('indent'),_0x49a75c['enableCommand']('outdent')),_0x2949c8['plugins']['has']('IndentBlock')){for(const _0x3c3516 of['indentBlock','outdentBlock'])_0x49a75c['enableDefaultAttributesIntegration'](_0x3c3516);}const _0x64c64d=_0x2949c8['locale'];_0x49a75c['registerBlockAttribute']('blockIndent'),_0x49a75c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x64c64d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bb9c7=this['editor'],_0x3f1c59=_0x3bb9c7['locale'],_0xb173ef=_0x3bb9c7['plugins']['get']('TrackChangesEditing');_0xb173ef['descriptionFactory']['registerDescriptionCallback'](_0x306a65=>{if('formatBlock'!=_0x306a65['type'])return;const {data:_0xc05d8a}=_0x306a65;if(!_0xc05d8a)return;if('indentBlock'!=_0xc05d8a['commandName']&&'outdentBlock'!=_0xc05d8a['commandName'])return;const _0x30378e=_0x306a65['getItems']()[0x0],_0x181cad=_0xb173ef['descriptionFactory']['getItemLabel'](_0x30378e);return'indentBlock'==_0xc05d8a['commandName']?{'type':'format','content':o(_0x3f1c59,'*Indent:*\x20%0',_0x181cad)}:'outdentBlock'==_0xc05d8a['commandName']?{'type':'format','content':o(_0x3f1c59,'*Outdent:*\x20%0',_0x181cad)}:void 0x0;});}}class at extends _0x20fe95{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x20fe95{['afterInit'](){const _0x311445=this['editor'];if(!_0x311445['plugins']['has']('LinkEditing'))return;const _0x41ca33=_0x311445['plugins']['get']('TrackChangesEditing'),_0x5257ed=_0x311445['commands']['get']('link');_0x41ca33['enableDefaultAttributesIntegration']('link'),_0x41ca33['enableDefaultAttributesIntegration']('unlink'),_0x41ca33['registerInlineAttribute']('linkHref');for(const _0x5add86 of _0x5257ed['manualDecorators'])_0x41ca33['registerInlineAttribute'](_0x5add86['id']),_0x41ca33['descriptionFactory']['registerAttributeLabel'](_0x5add86['id'],'link\x20('+_0x5add86['label']['toLowerCase']()+')');_0x41ca33['descriptionFactory']['registerDescriptionCallback'](_0x260ba9=>{if('attribute'!=_0x260ba9['type'])return;const {data:_0x2aaf85}=_0x260ba9;if(!_0x2aaf85||'linkHref'!=_0x2aaf85['key'])return;const _0x14caf3=_0x2aaf85['newValue'],_0x449af6=_0x311445['locale'];return{'type':'format','content':null==_0x14caf3?o(_0x449af6,'*Remove\x20link*'):o(_0x449af6,'*Set\x20link:*\x20%0','\x22'+_0x14caf3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd119c0=this['editor'],_0x24b824=_0xd119c0['locale'];_0xd119c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13075d=>{if('formatInline'!=_0x13075d['type'])return;const {data:_0x1367af}=_0x13075d;if(_0x1367af){if('link'==_0x1367af['commandName']){const _0x427731=_0x1367af['commandParams'][0x0];return{'type':'format','content':o(_0x24b824,'*Set\x20link:*\x20%0','\x22'+_0x427731+'\x22')};}return'unlink'==_0x1367af['commandName']?{'type':'format','content':o(_0x24b824,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x20fe95{['afterInit'](){const _0x8d5f42=this['editor'],_0x1afa22=_0x8d5f42['locale'];if(!_0x8d5f42['plugins']['has']('LegacyListEditing'))return;const _0x6369da=_0x8d5f42['plugins']['get']('TrackChangesEditing'),_0x5df59d=_0x8d5f42['plugins']['has']('LegacyTodoListEditing');function _0x296cca(_0x3b0637){return()=>{const _0x1d044f=_0x8d5f42['model']['document']['selection'],_0xb6a13a=_0x8d5f42['commands']['get'](_0x3b0637);if(_0xb6a13a['value'])return void _0x8d5f42['execute']('paragraph',{});const _0x33407c=_0x3b0637['slice'](0x0,-0x4),_0x38df74=function(_0x40e164,_0x49e8f6,_0x211506){let _0x320bff=Array['from'](_0x40e164)['filter'](_0x356b9e=>function(_0x339ac0,_0x37ede4){return _0x37ede4['checkChild'](_0x339ac0['parent'],'listItem')&&!_0x37ede4['isObject'](_0x339ac0);}(_0x356b9e,_0x211506));_0x320bff=_0x320bff['filter'](_0x449502=>!_0x449502['is']('element','listItem')||_0x449502['getAttribute']('listType')!=_0x49e8f6);const _0x3dd11d=new Set();for(const _0x1e1f8f of _0x320bff)_0x1e1f8f['is']('element','listItem')?_0x3dd11d['add'](fe(_0x1e1f8f)):_0x3dd11d['add'](_0x1e1f8f);return Array['from'](_0x3dd11d);}(_0x1d044f['getSelectedBlocks'](),_0x33407c,_0x8d5f42['model']['schema']);_0x8d5f42['model']['change'](()=>{for(const _0x1b1c99 of _0x38df74)_0x6369da['markBlockFormat'](_0x1b1c99,{'commandName':_0x3b0637,'commandParams':[{'forceValue':!_0xb6a13a['value']}],'formatGroupId':'blockName'},ue(_0x1b1c99));});};}function _0x446eb5(_0xf01269){return()=>{const _0x3d0fe9=function(_0x47844b){let _0x1ff917=Array['from'](_0x47844b);const _0x81b943=_0x1ff917['findIndex'](_0xb4b529=>'listItem'!=_0xb4b529['name']);return _0x81b943>-0x1&&(_0x1ff917=_0x1ff917['slice'](0x0,_0x81b943)),_0x1ff917;}(_0x8d5f42['model']['document']['selection']['getSelectedBlocks']()),_0x53d47e=_0x8d5f42['model']['createRange'](_0x8d5f42['model']['createPositionAt'](_0x3d0fe9[0x0],'before'),_0x8d5f42['model']['createPositionAt'](_0x3d0fe9[_0x3d0fe9['length']-0x1],'end'));_0x8d5f42['model']['change'](()=>{_0x6369da['markBlockFormat'](_0x53d47e,{'commandName':_0xf01269,'commandParams':[],'formatGroupId':'listIndent'},function(_0x92108){const _0x1b561d=new Set();for(const _0x427a03 of _0x92108){let _0x41ea5d=_0x427a03['nextSibling'];for(;_0x41ea5d&&_0x41ea5d['getAttribute']('listIndent')>_0x427a03['getAttribute']('listIndent');)_0x1b561d['add'](_0x41ea5d),_0x41ea5d=_0x41ea5d['nextSibling'];}return Array['from'](_0x1b561d);}(_0x3d0fe9));});};}_0x6369da['enableCommand']('numberedList',_0x296cca('numberedList')),_0x6369da['enableCommand']('bulletedList',_0x296cca('bulletedList')),_0x5df59d&&_0x6369da['enableCommand']('todoList',_0x296cca('todoList')),_0x6369da['enableCommand']('indentList',_0x446eb5('indentList')),_0x6369da['enableCommand']('outdentList',_0x446eb5('outdentList')),_0x5df59d&&_0x6369da['enableCommand']('checkTodoList',()=>{const _0x34d171=_0x8d5f42['commands']['get']('checkTodoList'),_0x263fc3=Array['from'](_0x34d171['_selectedElements']);_0x263fc3['filter'](_0xc907b4=>_0xc907b4['getAttribute']('todoListChecked')!=_0x34d171['value']),_0x8d5f42['model']['change'](()=>{for(const _0x3896fe of _0x263fc3)_0x6369da['markBlockFormat'](_0x3896fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34d171['value']}]});});}),_0x6369da['descriptionFactory']['registerElementLabel']('listItem',_0x5b96cf=>o(_0x1afa22,'ELEMENT_LIST_ITEM',_0x5b96cf)),_0x6369da['descriptionFactory']['registerDescriptionCallback'](_0x3eec12=>{if('formatBlock'!=_0x3eec12['type']&&'formatInline'!=_0x3eec12['type'])return;const {data:_0x20ebe8}=_0x3eec12;if(_0x20ebe8){if('numberedList'==_0x20ebe8['commandName']||'bulletedList'==_0x20ebe8['commandName']||'todoList'==_0x20ebe8['commandName'])switch(_0x20ebe8['commandName']['replace']('List','')){case'bulleted':return _0x5a894e(o(_0x1afa22,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a894e(o(_0x1afa22,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a894e(o(_0x1afa22,'ELEMENT_TODO_LIST'));}if('indentList'==_0x20ebe8['commandName'])return{'type':'format','content':o(_0x1afa22,'*Indent:*\x20%0',o(_0x1afa22,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x20ebe8['commandName'])return{'type':'format','content':o(_0x1afa22,'*Outdent:*\x20%0',o(_0x1afa22,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x20ebe8['commandName'])return _0x20ebe8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1afa22,'*Check\x20item*')}:{'type':'format','content':o(_0x1afa22,'*Uncheck\x20item*')};}function _0x5a894e(_0x2e1579){return{'type':'format','content':o(_0x1afa22,'*Change\x20to:*\x20%0',_0x2e1579)};}});}}function fe(_0x103968){const _0xf92547=_0x103968['getAttribute']('listIndent');if(0x0==_0xf92547)return _0x103968;let _0x3f7d9e=_0x103968;for(;_0x103968['previousSibling']&&_0x103968['previousSibling']['is']('element','listItem');){const _0x9c93b=_0x103968['previousSibling']['getAttribute']('listIndent');if(_0x9c93b==_0xf92547)_0x3f7d9e=_0x103968['previousSibling'];else{if(_0x9c93b<_0xf92547)break;}_0x103968=_0x103968['previousSibling'];}return _0x3f7d9e;}function ue(_0x3420b4){const _0x2c6d0f=[];if(_0x3420b4['is']('element','listItem')&&_0x3420b4['getAttribute']('listIndent')>0x0){let _0x233da9=_0x3420b4['nextSibling'];for(;_0x233da9&&'listItem'==_0x233da9['name']&&_0x233da9['getAttribute']('listIndent')==_0x3420b4['getAttribute']('listIndent');)_0x2c6d0f['push'](_0x233da9),_0x233da9=_0x233da9['nextSibling'];}return _0x2c6d0f;}class K extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x39744f=this['editor']['config']['get']('list.properties'),_0x47bf14=this['editor']['plugins']['get']('TrackChangesEditing');_0x39744f['styles']&&_0x47bf14['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x39744f['reversed']&&_0x47bf14['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x39744f['startIndex']&&_0x47bf14['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47bf14['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x543426,_0x17d2ba={}){const _0x25f225=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f4af0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x25f225['markMultiRangeBlockFormat'](_0x5f4af0,{'commandName':'listStyle','commandParams':[{'type':_0x17d2ba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1cf57c,_0x34ded4={}){const _0x1132d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4938db=this['_getSuggestionBlocks'](_0x581fa8=>_0x581fa8['is']('element','listItem')&&'numbered'===_0x581fa8['getAttribute']('listType'));if(_0x4938db['length']<0x1)return;const _0xd6525f=_0x4938db['map'](_0x91ca96=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x91ca96,'before'),this['editor']['model']['createPositionAt'](_0x91ca96,0x0)));this['editor']['model']['change'](()=>{_0x1132d3['markMultiRangeBlockFormat'](_0xd6525f,{'commandName':'listReversed','commandParams':[{'reversed':_0x34ded4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4335b9,_0x86935c={}){const _0x5640b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21be13=this['_getSuggestionBlocks'](_0x4e19e7=>_0x4e19e7['is']('element','listItem')&&'numbered'===_0x4e19e7['getAttribute']('listType'));if(_0x21be13['length']<0x1)return;const _0x45b2c6=_0x21be13['map'](_0x27c622=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27c622,'before'),this['editor']['model']['createPositionAt'](_0x27c622,0x0)));this['editor']['model']['change'](()=>{_0x5640b5['markMultiRangeBlockFormat'](_0x45b2c6,{'commandName':'listStart','commandParams':[{'startIndex':_0x86935c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4f8ce0){if('formatBlock'!=_0x4f8ce0['type']&&'formatInline'!=_0x4f8ce0['type'])return;const _0x227107=this['editor']['locale'],{data:_0x5ba341}=_0x4f8ce0;if(!_0x5ba341)return;let _0x506bce,_0x197e36;switch(_0x5ba341['commandName']){case'listStyle':_0x506bce='*Change\x20to:*\x20%0',_0x197e36={'type':'format','content':o(_0x227107,_0x506bce,o(_0x227107,this['_getTranslationKeyForListStyle'](_0x5ba341['commandParams'][0x0]['type'])))};break;case'listReversed':_0x506bce=_0x5ba341['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x197e36={'type':'format','content':o(_0x227107,_0x506bce)};break;case'listStart':_0x506bce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x197e36={'type':'format','content':o(_0x227107,_0x506bce,_0x5ba341['commandParams'][0x0]['startIndex'])};}return _0x197e36;}['_getSuggestionBlocksForListStyle'](){const _0x4cde40=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a865f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1a865f[0x0]?.['is']('element','listItem')&&_0x1a865f['unshift'](..._0x4cde40['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1a865f[_0x1a865f['length']-0x1]?.['is']('element','listItem')&&_0x1a865f['push'](..._0x4cde40['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1a865f=[...new Set(_0x1a865f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1a865f=_0x1a865f['filter'](_0x3bdc12=>_0x3bdc12['is']('element','listItem'))),_0x1a865f;}['_getSuggestionBlocks'](_0x5a01f7){const _0x37144d=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b514b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a01f7)['map'](_0x20c614=>{const _0x42eeb4=this['editor']['model']['createPositionAt'](_0x20c614,0x0);return[..._0x37144d['getSiblingNodes'](_0x42eeb4,'backward'),..._0x37144d['getSiblingNodes'](_0x42eeb4,'forward')];})['flat']();return _0x4b514b=[...new Set(_0x4b514b)],_0x4b514b;}['_getTranslationKeyForListStyle'](_0x3221e5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3221e5)||'default')['toUpperCase']()+'_LIST_'+_0x3221e5['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x20fe95{['afterInit'](){const _0x3b3051=this['editor'];if(!_0x3b3051['plugins']['has']('MediaEmbedEditing'))return;const _0x1e772d=_0x3b3051['plugins']['get']('TrackChangesEditing'),_0xf94648=_0x3b3051['locale'];_0x1e772d['enableCommand']('mediaEmbed'),_0x1e772d['descriptionFactory']['registerElementLabel']('media',_0x84439b=>o(_0xf94648,'ELEMENT_MEDIA',_0x84439b)),_0x3b3051['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd1b5d,{writer:_0x5c0f2a,options:_0x4181e2})=>{if(_0x4181e2['showSuggestionHighlights'])return _0x5c0f2a['createEmptyElement']('div');},'converterPriority':'high'}),_0x3b3051['data']['downcastDispatcher']['on']('attribute:url:media',(_0x49cf48,_0x5f5610,_0x4d905c)=>{_0x4d905c['options']['showSuggestionHighlights']&&_0x49cf48['stop']();},{'priority':'high'});}}class gt extends _0x20fe95{['afterInit'](){const _0x5885b0=this['editor'];_0x5885b0['plugins']['has']('MentionEditing')&&_0x5885b0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x20fe95{['afterInit'](){const _0x6bd53a=this['editor'];if(!_0x6bd53a['commands']['get']('insertMergeField'))return;_0x6bd53a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x2fa3f3=_0x6bd53a['plugins']['get']('TrackChangesEditing'),_0x1d2124=_0x6bd53a['locale'];_0x2fa3f3['descriptionFactory']['registerElementLabel']('mergeField',_0x1ac3d2=>o(_0x1d2124,'ELEMENT_MERGE_FIELD',_0x1ac3d2)),_0x2fa3f3['descriptionFactory']['registerDescriptionCallback'](_0x2a1c3c=>{if('insertion'!=_0x2a1c3c['type']&&'deletion'!=_0x2a1c3c['type'])return;const _0x3a9ae2=_0x2a1c3c['getContainedElement']();if(null==_0x3a9ae2)return;if(!_0x3a9ae2['is']('element','mergeField'))return;const _0x3e31eb=_0x6bd53a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3a9ae2['getAttribute']('id'));return'insertion'==_0x2a1c3c['type']?{'type':'insertion','content':o(_0x1d2124,'*Insert:*\x20%0','\x22'+_0x3e31eb+'\x22\x20'+o(_0x1d2124,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1d2124,'*Remove:*\x20%0','\x22'+_0x3e31eb+'\x22\x20'+o(_0x1d2124,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x20fe95{['afterInit'](){const _0x514d1c=this['editor'],_0x5e5bd0=_0x514d1c['plugins']['get']('TrackChangesEditing');_0x514d1c['plugins']['has']('MultiLevelList')&&(_0x5e5bd0['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e5bd0['registerBlockAttribute']('listMarkerStyle'),_0x5e5bd0['descriptionFactory']['registerDescriptionCallback'](_0xcb7468=>this['handleDescriptions'](_0xcb7468)));}['handleDescriptions'](_0x18eb98){const _0x517b6a=this['editor']['locale'],{data:_0x54746d}=_0x18eb98,_0x203083={'type':'format','content':''};if(_0x54746d&&'listMarkerStyle'==_0x54746d['key']){if(!_0x54746d['oldValue'])return{'type':'format','content':o(_0x517b6a,'*Set\x20format:*\x20%0',o(_0x517b6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54746d['newValue']+')'};if(!_0x54746d['newValue']){let _0x27c25e=_0x18eb98['head'];for(;_0x27c25e;){if(_0x27c25e['data']&&'listType'==_0x27c25e['data']['key']&&_0x27c25e['data']['newValue'])return _0x203083;_0x27c25e=_0x27c25e['next'];}return{'type':'format','content':o(_0x517b6a,'*Remove\x20format:*\x20%0',o(_0x517b6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54746d['oldValue']+')'};}}}}class dt extends _0x20fe95{['afterInit'](){const _0x452d97=this['editor'];if(!_0x452d97['plugins']['has']('PageBreakEditing'))return;_0x452d97['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27f212=_0x452d97['plugins']['get']('TrackChangesEditing'),_0x3e3937=_0x452d97['locale'];_0x27f212['descriptionFactory']['registerElementLabel']('pageBreak',_0x2933fc=>o(_0x3e3937,'ELEMENT_PAGE_BREAK',_0x2933fc));}}class pt extends _0x20fe95{['afterInit'](){const _0xdcd5f2=this['editor'];if(!_0xdcd5f2['plugins']['has']('Paragraph'))return;const _0xf3de78=_0xdcd5f2['locale'],_0x15789c=_0xdcd5f2['plugins']['get']('TrackChangesEditing');_0x15789c['descriptionFactory']['registerElementLabel']('paragraph',_0x454045=>o(_0xf3de78,'ELEMENT_PARAGRAPH',_0x454045)),_0x15789c['enableDefaultAttributesIntegration']('paragraph'),_0x15789c['enableCommand']('insertParagraph'),_0xdcd5f2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xdcd5f2),{'priority':'highest'}),_0xdcd5f2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2d069b,_0x4263ad,_0x39d708)=>{_0x39d708['options']['showSuggestionHighlights']&&nr(_0xdcd5f2,{'showActiveMarker':!0x1})(_0x2d069b,_0x4263ad,_0x39d708);},{'priority':'highest'});const _0x4ac7c1=_0x15789c['descriptionFactory'];_0x4ac7c1['registerDescriptionCallback'](_0x43b0c0=>{if('insertion'!==_0x43b0c0['type'])return;const {start:_0x782aa8,end:_0xc28530}=_0x43b0c0['getFirstRange']();if(!_0x782aa8['isTouching'](_0xc28530)||!_0x782aa8['nodeAfter'])return;const _0x4d5eed=_0xdcd5f2['model']['schema'],_0x3c1d29=_0x782aa8['nodeAfter'];return _0x4d5eed['isBlock'](_0x3c1d29)&&!_0x4d5eed['isLimit'](_0x3c1d29)&&_0x4d5eed['checkChild'](_0x3c1d29,'$text')?{'type':'insertion','content':o(_0xf3de78,'*Insert:*\x20%0',_0x4ac7c1['getItemLabel'](_0x3c1d29,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d289a=this['editor'],_0x1551e3=_0x1d289a['locale'];_0x1d289a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x569658=>{if('formatBlock'!=_0x569658['type'])return;const {data:_0x5e35a4}=_0x569658;return _0x5e35a4&&'paragraph'==_0x5e35a4['commandName']?{'type':'format','content':o(_0x1551e3,'*Change\x20to:*\x20%0',o(_0x1551e3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xc53520,{showActiveMarker:_0x2f5b44=!0x0}={}){return(_0x1e5876,_0x56cf12,_0x5e7494)=>{const _0x2889d0=_0xc53520['plugins']['get']('TrackChangesEditing'),_0x1e1b2d=_0x56cf12['markerRange']['start'],_0x47b954=_0x56cf12['markerRange']['end'],_0x3cd4cd=_0xc53520['model']['schema'];if(!_0x1e1b2d['isTouching'](_0x47b954)||!_0x1e1b2d['nodeAfter'])return;const _0x504125=_0x1e1b2d['nodeAfter'];if(_0x3cd4cd['isBlock'](_0x504125)&&!_0x3cd4cd['isLimit'](_0x504125)&&_0x3cd4cd['checkChild'](_0x504125,'$text')){if(!_0x5e7494['consumable']['consume'](_0x56cf12['markerRange'],_0x1e5876['name']))return;const _0x3c128e=_0x5e7494['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4c4e9b=_0x5e7494['mapper']['toViewPosition'](_0x47b954);_0x2f5b44&&_0x2889d0['activeMarkers']['includes'](_0x56cf12['markerName'])&&_0x5e7494['writer']['addClass']('ck-suggestion-marker--active',_0x3c128e),_0x5e7494['writer']['insert'](_0x4c4e9b,_0x3c128e),_0x5e7494['mapper']['bindElementToMarker'](_0x3c128e,_0x56cf12['markerName']);}};}class kt extends _0x20fe95{['afterInit'](){const _0x15d869=this['editor'];if(!_0x15d869['plugins']['has']('RemoveFormatEditing'))return;_0x15d869['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17730b=this['editor'];_0x17730b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ecdd=>{if('formatBlock'!=_0x17ecdd['type']&&'formatInline'!=_0x17ecdd['type'])return;const {data:_0x3c484e}=_0x17ecdd;return _0x3c484e&&'removeFormat'==_0x3c484e['commandName']?{'type':'format','content':o(_0x17730b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x20fe95{['afterInit'](){const _0x321ca0=this['editor'];if(!_0x321ca0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x420f19=_0x321ca0['plugins']['get']('TrackChangesEditing');_0x420f19['enableCommand']('goToPreviousRestrictedEditingException'),_0x420f19['enableCommand']('goToNextRestrictedEditingException');const _0x300a32=_0x321ca0['plugins']['get']('RestrictedEditingModeEditing');_0x300a32['enableCommand']('trackChanges'),_0x300a32['enableCommand']('acceptSuggestion'),_0x300a32['enableCommand']('discardSuggestion'),_0x300a32['enableCommand']('acceptAllSuggestions'),_0x300a32['enableCommand']('discardAllSuggestions'),_0x300a32['enableCommand']('acceptSelectedSuggestions'),_0x300a32['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x20fe95{static get['requires'](){return[_0x52c367];}['init'](){const _0x4751e3=this['editor'],_0x35c5bc=_0x4751e3['plugins']['get']('TrackChangesEditing');_0x35c5bc['enableCommand']('shiftEnter'),_0x4751e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x4751e3),{'priority':'high'}),_0x4751e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x4751e3),{'priority':'high'}),_0x4751e3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f715e,_0x17be02,_0x40d665)=>{_0x40d665['options']['showSuggestionHighlights']&&ce(_0x4751e3,{'showActiveMarker':!0x1})(_0x1f715e,_0x17be02,_0x40d665);}),_0x35c5bc['descriptionFactory']['registerElementLabel']('softBreak',_0x2fad21=>o(_0x4751e3['locale'],'ELEMENT_LINE_BREAK',_0x2fad21));}}function ce(_0x9dc31f,{showActiveMarker:_0x524956=!0x0}={}){return(_0x312ccf,_0x35558b,_0x494cd4)=>{const _0x3d0c20=_0x9dc31f['plugins']['get']('TrackChangesEditing');if(!_0x494cd4['consumable']['test'](_0x35558b['markerRange'],_0x312ccf['name']))return;const _0x1b6878=_0x9dc31f['model'];for(const _0x2d76b7 of _0x35558b['markerRange']['getItems']()){if(!_0x2d76b7['is']('element','softBreak'))continue;const _0x2c073d='deletion'==_0x35558b['markerName']['split'](':')[0x1]?'merge':'split',_0x2290e7=_0x494cd4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c073d}),_0x525dc6=_0x494cd4['mapper']['toViewPosition'](_0x1b6878['createPositionBefore'](_0x2d76b7));_0x524956&&_0x3d0c20['activeMarkers']['includes'](_0x35558b['markerName'])&&_0x494cd4['writer']['addClass']('ck-suggestion-marker--active',_0x2290e7),_0x494cd4['writer']['insert'](_0x525dc6,_0x2290e7),_0x494cd4['mapper']['bindElementToMarker'](_0x2290e7,_0x35558b['markerName']);}};}class yt extends _0x20fe95{['afterInit'](){const _0x406815=this['editor'],_0xc50549=_0x406815['model'],_0x46e9af=_0x406815['locale'];if(!_0x406815['plugins']['has']('StandardEditingModeEditing'))return;const _0x23e0b8=_0x406815['plugins']['get']('TrackChangesEditing'),_0x6e20b1='restrictedEditingException',_0x445b42=_0x406815['commands']['get'](_0x6e20b1);_0x23e0b8['enableCommand'](_0x6e20b1,(_0x8b1452,_0x17dcb4={})=>{const _0x4ac881=_0xc50549['document']['selection'];if(_0x4ac881['isCollapsed'])return void _0x8b1452(_0x17dcb4);const _0x51352b=void 0x0!==_0x17dcb4['forceValue']?_0x17dcb4['forceValue']:!_0x445b42['value'];_0xc50549['change'](()=>{const _0xf4870f=Array['from'](_0x4ac881['getRanges']());for(const _0x4a5b09 of _0xf4870f){const _0x4f81e4=_0x51352b?[_0x4a5b09]:io(_0x6e20b1,_0x4a5b09,_0xc50549);for(const _0x4bd51e of _0x4f81e4)_0x23e0b8['markInlineFormat'](_0x4bd51e,{'commandName':_0x6e20b1,'commandParams':[{'forceValue':_0x51352b}]});}});}),_0x23e0b8['descriptionFactory']['registerDescriptionCallback'](_0xb31416=>{if('formatBlock'!=_0xb31416['type']&&'formatInline'!=_0xb31416['type'])return;const {data:_0x150480}=_0xb31416;return _0x150480&&_0x150480['commandName']==_0x6e20b1?_0x150480['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46e9af,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x46e9af,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x20fe95{['afterInit'](){const _0x172eb7=this['editor'];if(!_0x172eb7['plugins']['has']('Style')||!_0x172eb7['plugins']['has']('DataSchema'))return;const _0x26d48e=_0x172eb7['plugins']['get']('TrackChangesEditing'),_0x25459f=_0x172eb7['locale'],_0x290f98=_0x172eb7['config']['get']('style')||{},_0x5bf85e=_0x172eb7['plugins']['get']('GeneralHtmlSupport'),_0x329197=_0x172eb7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x172eb7['plugins']['get']('DataSchema'),_0x290f98['definitions']);_0x26d48e['enableDefaultAttributesIntegration']('style');const _0x42069a=new Set();for(const _0xc869f3 of _0x329197['block']){const _0x2adbda=_0x5bf85e['getGhsAttributeNameForElement'](_0xc869f3['element']);_0x42069a['add'](_0x2adbda);}const _0x57f3f2=new Set();for(const _0x2ca1ba of _0x329197['inline']){const _0x2f0de1=_0x5bf85e['getGhsAttributeNameForElement'](_0x2ca1ba['element']);_0x57f3f2['add'](_0x2f0de1);for(const _0xad565d of _0x2ca1ba['ghsAttributes'])_0x57f3f2['add'](_0xad565d);}for(const _0x128a6d of _0x42069a)_0x26d48e['registerBlockAttribute'](_0x128a6d),_0x26d48e['descriptionFactory']['registerAttributeLabel'](_0x128a6d,o(_0x25459f,'FORMAT_STYLE'));for(const _0x3fc57e of _0x57f3f2)_0x26d48e['registerInlineAttribute'](_0x3fc57e),_0x26d48e['descriptionFactory']['registerAttributeLabel'](_0x3fc57e,o(_0x25459f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5402f2=this['editor'],_0x4c3aca=_0x5402f2['locale'];_0x5402f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1de1dc=>{if('formatBlock'!=_0x1de1dc['type']&&'formatInline'!=_0x1de1dc['type'])return;const {data:_0x1622f3}=_0x1de1dc;return _0x1622f3&&'style'===_0x1622f3['commandName']?_0x1622f3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c3aca,'*Set\x20format:*\x20%0',_0x1622f3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4c3aca,'*Remove\x20format:*\x20%0',_0x1622f3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x20fe95{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x261f15){super(_0x261f15),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b6beb=this['editor'],_0x486c38=_0x2b6beb['model']['document']['selection'];if(!_0x2b6beb['plugins']['has']('TableEditing'))return;const _0x4c1ad4=_0x2b6beb['locale'],_0x55e3ea=_0x2b6beb['plugins']['get']('TrackChangesEditing'),_0x2c5e19=_0x2b6beb['plugins']['get']('TableUtils');_0x55e3ea['descriptionFactory']['registerElementLabel']('table',_0x462b51=>o(_0x4c1ad4,'ELEMENT_TABLE',_0x462b51)),this['_setupColumnsRowsFixing'](),_0x55e3ea['enableCommand']('insertTable'),_0x55e3ea['enableCommand']('selectTableRow'),_0x55e3ea['enableCommand']('selectTableColumn');for(const _0x56a755 of['insertTableRowAbove','insertTableRowBelow']){const _0x774bbc=_0x2b6beb['commands']['get'](_0x56a755);_0x55e3ea['enableCommand'](_0x56a755,_0x4dbf54=>{_0x2b6beb['model']['change'](_0x50a4eb=>{_0x4dbf54();const _0xc87b5d='above'===_0x774bbc['order'],_0x449210=_0x2c5e19['getSelectionAffectedTableCells'](_0x486c38),_0x2c5e6a=_0x2c5e19['getRowIndexes'](_0x449210),_0x5afdf4=_0xc87b5d?_0x2c5e6a['first']-0x1:_0x2c5e6a['last']+0x1,_0x29a777=_0x449210[0x0]['findAncestor']('table'),_0x282e10=_0x2c5e19['createTableWalker'](_0x29a777,{'startRow':_0x5afdf4,'endRow':_0x5afdf4}),_0x15069c=Array['from'](_0x282e10)['map'](_0x28f0cf=>_0x50a4eb['createRangeOn'](_0x28f0cf['cell']));_0x55e3ea['markMultiRangeInsertion'](_0x15069c,'tableRow');});});}for(const _0x5d3430 of['insertTableColumnLeft','insertTableColumnRight']){const _0x112fd5=_0x2b6beb['commands']['get'](_0x5d3430);_0x55e3ea['enableCommand'](_0x5d3430,_0x552df4=>{_0x2b6beb['model']['change'](_0x4b6330=>{_0x552df4();const _0x1a2f52='left'===_0x112fd5['order'],_0x3fc241=_0x2c5e19['getSelectionAffectedTableCells'](_0x486c38),_0xea5095=_0x2c5e19['getColumnIndexes'](_0x3fc241),_0x48c0ff=_0x1a2f52?_0xea5095['first']-0x1:_0xea5095['last']+0x1,_0x4a6d82=_0x3fc241[0x0]['findAncestor']('table'),_0x391de2=_0x2c5e19['createTableWalker'](_0x4a6d82,{'startRow':0x0,'column':_0x48c0ff,'includeAllSlots':!0x1}),_0x43326e=Array['from'](_0x391de2)['map'](_0x468afa=>_0x4b6330['createRangeOn'](_0x468afa['cell']));_0x55e3ea['markMultiRangeInsertion'](_0x43326e,'tableColumn');});});}for(const _0x4db3db of['removeTableRow','removeTableColumn']){const _0x5c492=_0x4db3db['substr'](0xb),_0x50dfe4=_0x5c492['toLowerCase'](),_0x4a7686=_0x50dfe4['substr'](0x0,0x3)+'span',_0x337126='table'+_0x5c492,_0x288e73='min'+_0x5c492,_0x5c35b6='max'+_0x5c492;_0x55e3ea['enableCommand'](_0x4db3db,()=>{_0x2b6beb['model']['change'](_0x47614a=>{const _0x161623=_0x2c5e19['getSelectionAffectedTableCells'](_0x486c38),_0x1de56f=_0x161623[0x0]['findAncestor']('table');let _0x523023;if('removeTableRow'==_0x4db3db){const _0x138728=_0x2c5e19['getRowIndexes'](_0x161623);_0x523023={'startRow':_0x138728['first'],'endRow':_0x138728['last'],'includeAllSlots':!0x0};}else{const _0x436d10=_0x2c5e19['getColumnIndexes'](_0x161623);_0x523023={'startColumn':_0x436d10['first'],'endColumn':_0x436d10['last'],'includeAllSlots':!0x0};}const _0x5a0d45=_0x2c5e19['createTableWalker'](_0x1de56f,_0x523023),_0x16f914=Array['from'](_0x5a0d45)['map'](({cell:_0x17a9ad})=>_0x17a9ad),_0x43a60f=Ee(_0x16f914['filter'](_0x44ebb9=>_0x44ebb9['hasAttribute'](_0x4a7686))),_0x201aa8=Ee(_0x16f914['filter'](_0x355ec6=>!_0x355ec6['hasAttribute'](_0x4a7686)))['map'](_0x4a24e6=>_0x47614a['createRangeOn'](_0x4a24e6)),_0x4fa4fd=_0x55e3ea['markMultiRangeDeletion'](_0x201aa8,_0x337126);if(_0x4fa4fd&&('tableRow'==_0x4fa4fd['subType']||'tableColumn'==_0x4fa4fd['subType'])){const _0x5c4351=this['_getSuggestionCoords'](_0x4fa4fd);for(const _0x4310b6 of _0x43a60f){const _0x3306aa=_0x47614a['createRangeOn'](_0x4310b6),_0x132bfa=_0x2c5e19['getCellLocation'](_0x4310b6),_0xdfcdc2=_0x4310b6['getAttribute'](_0x4a7686)-0x1,_0x4f9274=_0x5c4351[_0x288e73],_0x5126be=_0x5c4351[_0x5c35b6];_0x4f9274<=_0x132bfa[_0x50dfe4]&&_0x132bfa[_0x50dfe4]+_0xdfcdc2<=_0x5126be&&_0x4fa4fd['addRange'](_0x3306aa);}}});});}function _0x33d6c1(_0x47cf46){const _0x2845f0=Array['from'](_0x486c38['getRanges']())['map'](_0x33a103=>_0x49277e['fromRange'](_0x33a103));_0x2b6beb['model']['change'](_0x5d405f=>{const _0x254cc9=_0x5d405f['batch'];_0x47cf46=_0x47cf46['filter'](_0x56136d=>'$graveyard'!=_0x56136d['root']['rootName']),_0x5d405f['setSelection'](_0x47cf46),_0x2b6beb['commands']['get']('removeTableRow')['refresh'](),_0x2b6beb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b6beb['model']['enqueueChange'](()=>{_0x2b6beb['model']['enqueueChange'](_0x254cc9,_0x2f2fca=>{const _0x1053c5=_0x2845f0['filter'](_0x327ca9=>'$graveyard'!=_0x327ca9['root']['rootName']);_0x1053c5['length']>0x0&&_0x2f2fca['setSelection'](_0x1053c5);for(const _0x95ad41 of _0x2845f0)_0x95ad41['detach']();});});});}function _0x51bddb(_0xe2d279){_0x2b6beb['model']['change'](_0x4f5313=>{const _0x3baa49=Array['from'](_0x486c38['getRanges']())['map'](_0x9db92a=>_0x49277e['fromRange'](_0x9db92a)),_0x2e649e=[];for(const _0x19dba2 of _0xe2d279)for(const _0x95ef5a of _0x19dba2['getItems']({'shallow':!0x0}))_0x2e649e['push'](_0x95ef5a);for(const _0xda9bb1 of _0x2e649e)'$graveyard'!=_0xda9bb1['root']['rootName']&&(_0x4f5313['setSelection'](_0x4f5313['createPositionAt'](_0xda9bb1,0x0)),_0x2b6beb['commands']['get']('removeTableColumn')['refresh'](),_0x2b6beb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33bfcd=_0x3baa49['filter'](_0x57ef8b=>'$graveyard'!=_0x57ef8b['root']['rootName']);_0x33bfcd['length']>0x0&&_0x4f5313['setSelection'](_0x33bfcd);for(const _0x66e5a4 of _0x3baa49)_0x66e5a4['detach']();});}function _0x846b0b(_0x2da2ef,_0x2914f5){return _0x2914f5['every'](_0x7634dc=>_0x2da2ef['some'](_0x5d8930=>_0x5d8930['end']['isEqual'](_0x7634dc['start'])||_0x7634dc['end']['isEqual'](_0x5d8930['start'])));}function _0x26764f(_0x3b576c,_0xc33ac7){return!_0x3b576c['some'](_0x35c3ba=>_0xc33ac7['some'](_0x40327d=>_0x35c3ba['isIntersecting'](_0x40327d)))&&_0x3b576c['some'](_0x4ee754=>_0xc33ac7['some'](_0x4490ab=>_0x4ee754['end']['isTouching'](_0x4490ab['start'])));}_0x2b6beb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47b2ce,_0x2edcc6,_0x37a2bc)=>{if(!_0x37a2bc['options']['showSuggestionHighlights'])return;const _0xde05f2=_0x2edcc6['item'];if(!_0xde05f2)return;const _0x785720=_0x37a2bc['mapper']['toViewElement'](_0xde05f2);function _0x9d64de(_0xa21665){return Array['isArray'](_0xa21665)?_0xa21665:[_0xa21665];}_0x785720&&'tableCell'===_0xde05f2['name']&&_0x2460fa(_0x785720,_0x37a2bc['writer'],(_0x5599df,_0x2e4c2e,_0x82476c)=>_0x82476c['addClass'](_0x9d64de(_0x2e4c2e['classes']),_0x5599df),(_0xd13192,_0x5f2e8c,_0x46b67d)=>_0x46b67d['removeClass'](_0x9d64de(_0x5f2e8c['classes']),_0xd13192));},{'priority':'highest'}),_0x55e3ea['descriptionFactory']['registerDescriptionCallback'](_0x38112d=>{if('insertion'!=_0x38112d['type']&&'deletion'!=_0x38112d['type'])return;const _0x3cbc0e=_0x38112d['getContainedElement']();if(null!=_0x3cbc0e&&_0x3cbc0e['is']('element','table')){if('insertion'==_0x38112d['type']){const _0x2d2c03=_0x38112d['getItems']()['filter'](_0x1b7efb=>_0x1b7efb['is']('$textProxy'))['map'](_0x3ce3a0=>_0x3ce3a0['data']);if(_0x2d2c03['length'])return{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d2c03['join']('\x20')+'\x22'))};}if('deletion'==_0x38112d['type']){const _0x1bbf88=_0x38112d['getItems']()['filter'](_0x336e97=>_0x336e97['is']('$textProxy'))['map'](_0x46dd67=>_0x46dd67['data']);if(_0x1bbf88['length'])return{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1bbf88['join']('\x20')+'\x22'))};}}}),_0x55e3ea['descriptionFactory']['registerDescriptionCallback'](_0x2ab2c1=>{if('tableRow'==_0x2ab2c1['subType']){const _0xcd0778=_0x2ab2c1['getItems']()['filter'](_0x34f817=>_0x34f817['is']('$textProxy'))['map'](_0x59ca3a=>_0x59ca3a['data']),_0x8cf05=this['_getSuggestionCoords'](_0x2ab2c1),_0x4626c2=_0x8cf05['maxRow']-_0x8cf05['minRow']+0x1;if('insertion'==_0x2ab2c1['type'])return _0xcd0778['length']?{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4626c2,'\x22'+_0xcd0778['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW',_0x4626c2))};if('deletion'==_0x2ab2c1['type'])return _0xcd0778['length']?{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4626c2,'\x22'+_0xcd0778['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_ROW',_0x4626c2))};}if('tableColumn'==_0x2ab2c1['subType']){const _0x39866b=_0x2ab2c1['getItems']()['filter'](_0x3ed100=>_0x3ed100['is']('$textProxy'))['map'](_0x986beb=>_0x986beb['data']),_0x2c1970=this['_getSuggestionCoords'](_0x2ab2c1),_0x4b1c75=_0x2c1970['maxColumn']-_0x2c1970['minColumn']+0x1;if('insertion'==_0x2ab2c1['type'])return _0x39866b['length']?{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b1c75,'\x22'+_0x39866b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c1ad4,'*Insert:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN',_0x4b1c75))};if('deletion'==_0x2ab2c1['type'])return _0x39866b['length']?{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b1c75,'\x22'+_0x39866b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c1ad4,'*Remove:*\x20%0',o(_0x4c1ad4,'ELEMENT_TABLE_COLUMN',_0x4b1c75))};}}),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x33d6c1),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x33d6c1),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x51bddb),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x51bddb),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x846b0b),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x846b0b),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x26764f),_0x55e3ea['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x26764f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4acce6=this['editor'],_0x4086aa=_0x4acce6['model']['document']['selection'];return(_0x5d0c3a,_0x22238f)=>{_0x4acce6['model']['change'](_0x3cfd78=>{const {commandName:_0x457adb,commandParams:_0x1469ed}=_0x22238f;let _0x2f907b=_0x5d0c3a[0x0]['end']['nodeBefore'];_0x1469ed&&_0x1469ed[0x0]&&!0x1===_0x1469ed[0x0]['forceValue']&&(_0x2f907b=_0x5d0c3a[0x0]['start']['nodeAfter']);const _0xb92467=_0x3cfd78['createRangeIn'](_0x2f907b);if('$graveyard'==_0xb92467['root']['rootName'])return;const _0x2568bd=Array['from'](_0x4086aa['getRanges']())['map'](_0x4721a2=>_0x49277e['fromRange'](_0x4721a2));_0x3cfd78['setSelection'](_0xb92467),_0x4acce6['commands']['get'](_0x457adb)['refresh'](),_0x1469ed['push']({'forceDefaultExecution':!0x0}),_0x4acce6['execute'](_0x457adb,..._0x1469ed);const _0xc7f2=_0x2568bd['filter'](_0x3aaaec=>'$graveyard'!=_0x3aaaec['root']['rootName']);_0xc7f2['length']>0x0&&_0x3cfd78['setSelection'](_0xc7f2);for(const _0x3eb179 of _0x2568bd)_0x3eb179['detach']();});};}['_getCoordsForCells'](_0x54264e){const _0x374285=this['editor']['plugins']['get']('TableUtils');let _0x56be0f=Number['MAX_SAFE_INTEGER'],_0x27be33=Number['MIN_SAFE_INTEGER'],_0x237762=Number['MAX_SAFE_INTEGER'],_0x2a94c2=Number['MIN_SAFE_INTEGER'];for(const _0x54f31c of _0x54264e){if('$graveyard'==_0x54f31c['root']['rootName'])continue;const {row:_0x1ea238,column:_0x53a4ae}=_0x374285['getCellLocation'](_0x54f31c),_0x1337fc=_0x54f31c['hasAttribute']('rowspan')?_0x54f31c['getAttribute']('rowspan')-0x1:0x0,_0x21483c=_0x54f31c['hasAttribute']('colspan')?_0x54f31c['getAttribute']('colspan')-0x1:0x0;_0x56be0f=_0x1ea238<_0x56be0f?_0x1ea238:_0x56be0f,_0x27be33=_0x1ea238+_0x1337fc>_0x27be33?_0x1ea238+_0x1337fc:_0x27be33,_0x237762=_0x53a4ae<_0x237762?_0x53a4ae:_0x237762,_0x2a94c2=_0x53a4ae+_0x21483c>_0x2a94c2?_0x53a4ae+_0x21483c:_0x2a94c2;}return{'minRow':_0x56be0f,'maxRow':_0x27be33,'minColumn':_0x237762,'maxColumn':_0x2a94c2};}['_setupColumnsRowsFixing'](){const _0x5d0240=this['editor'],_0x3817df=_0x5d0240['plugins']['get']('TrackChangesEditing'),_0x31ae20=_0x5d0240['plugins']['get']('TableUtils');_0x5d0240['model']['document']['on']('change:data',()=>{const _0x594381=Array['from'](_0x5d0240['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28e50c,data:_0x416e78}of _0x594381){const {group:_0x42e5f9,id:_0x12c8d4,subType:_0x489006}=_0x3817df['_splitMarkerName'](_0x28e50c);if('suggestion'!=_0x42e5f9)continue;if(null!=_0x416e78['oldRange'])continue;const _0xd04e58=_0x3817df['getSuggestion'](_0x12c8d4);this['_tablePostFixingSubtypes']['includes'](_0x489006)&&this['_tableSuggestions']['add'](_0xd04e58);}},{'priority':'low'});const _0x35a3ec=(_0x2442bb,_0xda1647)=>{let _0x444ea0=!0x1;const _0xa7ac1c=_0xda1647['createRangeOn'](_0x2442bb),_0x334723=_0x2442bb['findAncestor']('table'),_0x580be6=_0x31ae20['getCellLocation'](_0x2442bb);for(const _0x2b3ce5 of this['_tableSuggestions']){const _0x935f91=_0x2b3ce5['subType'],_0x163d83=_0x935f91['startsWith']('tablePaste'),_0x302361=_0x935f91['substr'](_0x163d83?0xa:0x5),_0x1ecc56=_0x302361['toLowerCase'](),_0x24866a=_0x1ecc56['substr'](0x0,0x3)+'span',_0x5ebeee='min'+_0x302361,_0x2b9462='max'+_0x302361;if(!_0x2b3ce5['isInContent'])continue;if(_0x334723!=_0x2b3ce5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2b3ce5['isIntersectingWithRange'](_0xa7ac1c))continue;const _0x33b892=_0x2442bb['hasAttribute'](_0x24866a)?_0x2442bb['getAttribute'](_0x24866a)-0x1:0x0,_0x8c41e0=this['_getSuggestionCoords'](_0x2b3ce5),_0x5d9829=_0x8c41e0[_0x5ebeee],_0x2c545a=_0x8c41e0[_0x2b9462];_0x5d9829<=_0x580be6[_0x1ecc56]&&_0x580be6[_0x1ecc56]+_0x33b892<=_0x2c545a&&(_0x2b3ce5['addRange'](_0xa7ac1c),_0x444ea0=!0x0);}return _0x444ea0;};_0x5d0240['model']['document']['registerPostFixer'](_0x3f430d=>{let _0x51d440=!0x1;for(const _0x4d2d52 of _0x5d0240['model']['document']['differ']['getChanges']())if('insert'==_0x4d2d52['type']){if('tableRow'==_0x4d2d52['name']){for(const _0x3a83db of _0x4d2d52['position']['nodeAfter']['getChildren']())_0x51d440=_0x51d440||_0x35a3ec(_0x3a83db,_0x3f430d);}else'tableCell'==_0x4d2d52['name']&&(_0x51d440=_0x51d440||_0x35a3ec(_0x4d2d52['position']['nodeAfter'],_0x3f430d));}return _0x51d440;});}['_getSuggestionCoords'](_0x474b4c){return this['_getCoordsForCells'](_0x474b4c['getRanges']()['map'](_0x514a4f=>_0x514a4f['start']['nodeAfter']));}}function Ee(_0x4e0955){return Array['from'](new Set(_0x4e0955)['values']());}class At extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0x331eda=this['editor'],_0x5592f8=_0x331eda['model']['document']['selection'],_0x200b65=_0x331eda['locale'];if(!_0x331eda['plugins']['has']('TableEditing'))return;const _0x5e74d1=_0x331eda['plugins']['get']('TrackChangesEditing'),_0x170559=_0x331eda['plugins']['get']('TableUtils'),_0x5162cf=_0x331eda['plugins']['get'](St);_0x5162cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e74d1['enableCommand']('mergeTableCells',()=>{const _0x4b6bef=_0x170559['getSelectionAffectedTableCells'](_0x331eda['model']['document']['selection']);_0x331eda['model']['change'](()=>{_0x5e74d1['markMultiRangeBlockFormat'](_0x4b6bef,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x331eda['commands']['get']('mergeTableCells')['on']('execute',(_0x1a1640,_0x380c84)=>{_0x331eda['commands']['get']('trackChanges')['value']&&(_0x380c84['length']>0x0&&_0x380c84[_0x380c84['length']-0x1]&&_0x380c84[_0x380c84['length']-0x1]['forceDefaultExecution']||_0x5e74d1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a1640['stop']());},{'priority':'highest'});for(const _0x3eac41 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1f8b57=_0x331eda['commands']['get'](_0x3eac41);_0x5e74d1['enableCommand'](_0x3eac41,()=>{const _0xfff6fa=_0x331eda['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ee727=>_0x2ee727['is']('element','tableCell')),_0x3cffbd=_0x1f8b57['value'];_0x331eda['model']['change'](()=>{_0x5e74d1['markMultiRangeBlockFormat']([_0xfff6fa,_0x3cffbd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29b335 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x146272=_0x331eda['commands']['get'](_0x29b335);_0x5e74d1['enableCommand'](_0x29b335,()=>{const _0x38a1bb=_0x170559['getSelectionAffectedTableCells'](_0x331eda['model']['document']['selection'])[0x0],_0x524456=_0x38a1bb['findAncestor']('table'),{column:_0x5eeba5,row:_0x325780}=_0x170559['getCellLocation'](_0x38a1bb);let _0x4d1fc4=[];if('horizontally'==_0x146272['direction']){const _0x413ac3=_0x170559['createTableWalker'](_0x524456,{'startRow':_0x325780,'endRow':_0x325780,'includeAllSlots':!0x0});_0x4d1fc4=Array['from'](_0x413ac3)['map'](_0x4b0aeb=>_0x4b0aeb['cell']);}else{const _0x114a1d=_0x170559['createTableWalker'](_0x524456,{'column':_0x5eeba5,'includeAllSlots':!0x0});_0x4d1fc4=Array['from'](_0x114a1d)['map'](_0x201716=>_0x201716['cell']);}_0x331eda['model']['change'](_0x403d39=>{_0x5e74d1['markBlockFormat'](_0x403d39['createRangeOn'](_0x38a1bb),{'commandName':_0x29b335,'commandParams':[]},_0x4d1fc4,_0x29b335);});});}_0x5e74d1['descriptionFactory']['registerDescriptionCallback'](_0x43550e=>{if('formatBlock'!=_0x43550e['type']&&'formatInline'!=_0x43550e['type'])return;const {data:_0x58c082}=_0x43550e;return _0x58c082&&'mergeTableCells'==_0x58c082['commandName']?{'type':'format','content':o(_0x200b65,'*Merge\x20cells*')}:void 0x0;}),_0x5e74d1['descriptionFactory']['registerDescriptionCallback'](_0x5e0e46=>{if('formatBlock'!=_0x5e0e46['type']&&'formatInline'!=_0x5e0e46['type'])return;const {data:_0x2c2fef}=_0x5e0e46;return _0x2c2fef?'splitTableCellVertically'==_0x2c2fef['commandName']?{'type':'format','content':o(_0x200b65,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c2fef['commandName']?{'type':'format','content':o(_0x200b65,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x55e8e8=_0x5162cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x3ac87f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e74d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ac87f,'accept',_0x55e8e8);for(const _0x8bd546 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e74d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8bd546,'accept',_0x55e8e8);_0x5e74d1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x90aa5e=>{_0x331eda['model']['change'](_0x265206=>{const _0x550a45=Array['from'](_0x5592f8['getRanges']())['map'](_0x561f3d=>_0x49277e['fromRange'](_0x561f3d));_0x265206['setSelection'](_0x90aa5e),_0x331eda['commands']['get']('mergeTableCells')['refresh'](),_0x331eda['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1965cc=_0x550a45['filter'](_0x3265cc=>'$graveyard'!=_0x3265cc['root']['rootName']);_0x1965cc['length']>0x0&&_0x265206['setSelection'](_0x1965cc);for(const _0x34b75a of _0x550a45)_0x34b75a['detach']();});});for(const _0x43be90 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8a33c2=_0x331eda['commands']['get'](_0x43be90);_0x8a33c2['on']('set:isEnabled',(_0x2dbb4e,_0xff3485,_0x4e4bee)=>{if(_0x4e4bee){const _0x57211a=_0x331eda['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x12908e=>_0x12908e['is']('element','tableCell'));this['_areMergableCells'](_0x8a33c2['value'],_0x57211a)||(_0x2dbb4e['return']=!0x1,_0x2dbb4e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5d124b=this['editor']['commands']['get']('mergeTableCells'),_0x4d9b7c=this['editor']['plugins']['get']('TableUtils');if(!_0x5d124b['isEnabled'])return!0x1;const _0x25d72d=_0x4d9b7c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xb89a52 of _0x25d72d)for(const _0xb177c2 of _0x25d72d)if(_0xb89a52!=_0xb177c2&&!this['_areMergableCells'](_0xb89a52,_0xb177c2))return!0x1;return!0x0;}['_areMergableCells'](_0x2e3134,_0xd94fea){const _0x5b874c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ce03a=this['editor']['model']['createRangeOn'](_0x2e3134),_0xc43dbd=this['editor']['model']['createRangeOn'](_0xd94fea),_0x3f17d9=new Set(),_0x233211=new Set();for(const _0x1b4836 of _0x5b874c['getSuggestions']())if(('insertion'==_0x1b4836['type']||'deletion'==_0x1b4836['type']||'mergeTableCells'==_0x1b4836['subType'])&&_0x1b4836['isInContent']){for(const _0x269eab of _0x1b4836['getRanges']())_0x269eab['containsRange'](_0x2ce03a,!0x0)&&_0x3f17d9['add'](_0x1b4836['type']+':'+_0x1b4836['author']['id']),_0x269eab['containsRange'](_0xc43dbd,!0x0)&&_0x233211['add'](_0x1b4836['type']+':'+_0x1b4836['author']['id']);}if(_0x3f17d9['size']!=_0x233211['size'])return!0x1;for(const _0x44be15 of _0x3f17d9)if(!_0x233211['has'](_0x44be15))return!0x1;return!0x0;}}class It extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0x39b4d7=this['editor'];if(!_0x39b4d7['plugins']['has']('TableEditing'))return;const _0x82065f=_0x39b4d7['locale'],_0x4e7504=_0x39b4d7['plugins']['get']('TrackChangesEditing');_0x4e7504['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e7504['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e7504['registerBlockAttribute']('headingRows'),_0x4e7504['registerBlockAttribute']('headingColumns'),_0x4e7504['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x82065f,'FORMAT_HEADER_ROW')),_0x4e7504['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x82065f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55c058=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bab3a=this['editor']['plugins']['get']('TableUtils'),_0x415529=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x2908fc({showActiveMarker:_0x9208c7=!0x0,setDataAttribute:_0x32e694=!0x0}={}){return(_0x5c9887,_0xb47ebf,_0x248059)=>{const {type:_0x163bb7,id:_0x302f1e}=_0x55c058['_splitMarkerName'](_0xb47ebf['markerName']),_0xc5db7f=_0x55c058['getSuggestion'](_0x302f1e),_0x460651=_0xc5db7f['data'];if('formatBlock'!=_0xc5db7f['type']||!_0x460651||'setTableColumnHeader'!=_0x460651['commandName'])return;if(_0xb47ebf['item'])return void _0x5c9887['stop']();if(!_0x248059['consumable']['consume'](_0xb47ebf['markerRange'],_0x5c9887['name']))return;const _0x4fbf38=_0xb47ebf['markerRange']['start']['nodeAfter'],_0x4aed54=_0xb47ebf['markerRange']['end']['nodeBefore'],_0x4bce0d=_0x4fbf38['parent']['parent'],{column:_0x9427f8}=_0x1bab3a['getCellLocation'](_0x4fbf38),{column:_0x4f7a8e}=_0x1bab3a['getCellLocation'](_0x4aed54);for(let _0x2757db=_0x9427f8;_0x2757db<=_0x4f7a8e;_0x2757db++){const _0x43c308=_0x1bab3a['createTableWalker'](_0x4bce0d,{'column':_0x2757db,'includeAllSlots':!0x1});for(const _0x3fc294 of _0x43c308){const _0x13175f=_0x3fc294['cell'],_0x1b37c1=_0x248059['mapper']['toViewElement'](_0x13175f);_0x248059['writer']['addClass']('ck-suggestion-marker-'+_0x163bb7,_0x1b37c1),_0x32e694&&_0x248059['writer']['setAttribute']('data-suggestion',_0x302f1e,_0x1b37c1),_0x248059['mapper']['bindElementToMarker'](_0x1b37c1,_0xb47ebf['markerName']),_0x9208c7&&(_0x55c058['activeMarkers']['includes'](_0xb47ebf['markerName'])?_0x248059['writer']['addClass']('ck-suggestion-marker--active',_0x1b37c1):_0x248059['writer']['removeClass']('ck-suggestion-marker--active',_0x1b37c1));}}};}_0x55c058['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x415529),_0x55c058['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x415529),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2908fc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42c034,_0x1b2463,_0x45a577)=>{_0x45a577['options']['showSuggestionHighlights']&&_0x2908fc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x42c034,_0x1b2463,_0x45a577);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x231098,_0x25d125,_0x35b9ac)=>{const {type:_0x1f1ac2,id:_0x191164}=_0x55c058['_splitMarkerName'](_0x25d125['markerName']),_0xbb8534=_0x55c058['getSuggestion'](_0x191164),_0x5b32aa=_0xbb8534['data'];if('formatBlock'!=_0xbb8534['type']||!_0x5b32aa||'setTableColumnHeader'!=_0x5b32aa['commandName'])return;const _0x155b88=_0x35b9ac['mapper']['markerNameToElements'](_0x25d125['markerName']);if(_0x155b88){for(const _0x59df40 of _0x155b88)_0x35b9ac['writer']['removeClass']('ck-suggestion-marker-'+_0x1f1ac2,_0x59df40),_0x35b9ac['writer']['removeClass']('ck-suggestion-marker--active',_0x59df40),_0x35b9ac['writer']['removeAttribute']('data-suggestion',_0x59df40),_0x35b9ac['mapper']['unbindElementFromMarkerName'](_0x59df40,_0x25d125['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44585c=this['editor'],_0x1b6e1d=_0x44585c['locale'];function _0x86e430(_0x295f02){return{'type':'format','content':o(_0x1b6e1d,'*Format:*\x20%0',_0x295f02)};}_0x44585c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136cb8=>{if('formatBlock'!=_0x136cb8['type'])return;const {data:_0x105037}=_0x136cb8;if(_0x105037){if('setTableRowHeader'==_0x105037['commandName']){const _0x533303=_0x105037['commandParams'][0x0]['forceValue'];return _0x86e430(o(_0x1b6e1d,_0x533303?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x105037['commandName']){const _0x4719cc=_0x105037['commandParams'][0x0]['forceValue'];return _0x86e430(o(_0x1b6e1d,_0x4719cc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xac1b9c=>[_0xac1b9c,null]));class vt extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0x3a8588=this['editor'];if(!_0x3a8588['plugins']['has']('TableClipboard'))return;const _0x7ca91a=_0x3a8588['plugins']['get']('TrackChangesEditing'),_0x8f3a1b=_0x3a8588['plugins']['get']('TableUtils'),_0x1d8b19=_0x3a8588['plugins']['get'](St),_0x1d6a94=_0x3a8588['plugins']['get']('TableClipboard');_0x1d8b19['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a8588['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a8588['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1aa5b1=null;_0x3a8588['model']['on']('insertContent',(_0x341492,_0x33f274)=>{const [_0x3b19ff,_0x513efa]=_0x33f274,_0x3f6f91=_0x33f274[_0x33f274['length']-0x1];_0x3f6f91&&_0x3f6f91['forceDefaultExecution']||_0x7ca91a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x9c0d63,_0x5e25bb,_0x1c464e,_0x49c178,_0x4bdb00){if(_0x5e25bb&&!_0x5e25bb['is']('documentSelection'))return!0x1;const _0x517886=_0x4bdb00['getTableIfOnlyTableInContent'](_0x9c0d63,_0x1c464e);if(!_0x517886||!we(_0x517886,void 0x0,_0x49c178))return!0x1;const _0x313c6a=_0x49c178['getSelectionAffectedTableCells'](_0x1c464e['document']['selection']);if(!_0x313c6a['length'])return!0x1;const _0xd0f6b9=_0x313c6a[0x0]['findAncestor']('table'),_0x56852f=_0x49c178['getRowIndexes'](_0x313c6a),_0x1c9388=_0x49c178['getColumnIndexes'](_0x313c6a),_0x56b6ae={'startRow':_0x56852f['first'],'endRow':_0x56852f['last'],'startColumn':_0x1c9388['first'],'endColumn':_0x1c9388['last']};return 0x1==_0x313c6a['length']&&(_0x56b6ae['endRow']+=_0x49c178['getRows'](_0x517886)-0x1,_0x56b6ae['endColumn']+=_0x49c178['getColumns'](_0x517886)-0x1),we(_0xd0f6b9,_0x56b6ae,_0x49c178);}(_0x3b19ff,_0x513efa,_0x3a8588['model'],_0x8f3a1b,_0x1d6a94)&&(_0x341492['stop'](),_0x1aa5b1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a8588['model']['change'](()=>{_0x3a8588['model']['insertContent'](_0x33f274[0x0],_0x33f274[0x1],_0x33f274[0x2],{'forceDefaultExecution':!0x0});const _0x5ee469=_0x5d1950(),{rowInsertionRanges:_0x2b6cbe,columnInsertionRanges:_0x5be140,insertionRanges:_0x172f8b,deletionRanges:_0x1051b0,cells:_0x4572ff}=_0x1aa5b1;_0x2b6cbe['length']&&_0x7ca91a['markMultiRangeInsertion'](_0x2b6cbe,'tablePasteRow',{'tablePasteChainId':_0x5ee469}),_0x5be140['length']&&_0x7ca91a['markMultiRangeInsertion'](_0x5be140,'tablePasteColumn',{'tablePasteChainId':_0x5ee469}),_0x172f8b['length']&&(_0x7ca91a['markMultiRangeInsertion'](_0x172f8b,'tablePaste',{'tablePasteChainId':_0x5ee469,'skipNestingCheck':!0x0}),_0x172f8b['forEach'](_0x1096ed=>_0x1096ed['detach']?.())),_0x1051b0['length']&&(_0x7ca91a['markMultiRangeDeletion'](_0x1051b0,'tablePaste',{'tablePasteChainId':_0x5ee469,'skipNestingCheck':!0x0}),_0x1051b0['forEach'](_0x13bcef=>_0x13bcef['detach']?.()));const _0x4fd1ad=_0x7ca91a['markMultiRangeBlockFormat'](_0x4572ff['map'](({element:_0x5cb637})=>_0x5cb637),{'formatGroupId':_0x5d1950()},[],'tablePasteCell',{'tablePasteChainId':_0x5ee469});if(_0x4fd1ad){const _0x407aae=_0x4fd1ad['getMarkers'](),_0x16afb1=[];for(const {element:_0x4de9ef,attributes:_0x553402}of _0x4572ff){if(!_0x553402)continue;const _0x1a6490=_0x3a8588['model']['createRangeOn'](_0x4de9ef),_0x30f756=_0x407aae['find'](_0x36a3f8=>_0x36a3f8['getRange']()['isEqual'](_0x1a6490));_0x30f756&&_0x16afb1['push']([_0x30f756['name'],_0x553402]);}_0x16afb1['length']&&_0x4fd1ad['setAttribute']('markerAttributes',Object['fromEntries'](_0x16afb1));}_0x1aa5b1=null;}));},{'priority':_0xd9177a['high']+0xa}),_0x3a8588['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x191620,_0x2e5133)=>{const [_0x462028,_0x45ffd8,,_0x3cf4e3]=_0x2e5133;if(!_0x1aa5b1)return;_0x191620['stop']();const _0x50ad8e=_0x462028['cell'],_0x2c30dd=_0x45ffd8,_0x35328d=Pe(_0x50ad8e),_0x3e5ccb=Pe(_0x2c30dd);_0x191620['return']=_0x50ad8e;let _0x5d3375=null,_0x349234=null;if(_0x3e5ccb||_0x35328d){if(_0x35328d&&!_0x3e5ccb){_0x3cf4e3['remove'](_0x50ad8e['getChild'](0x0));for(const _0x27e314 of Array['from'](_0x2c30dd['getChildren']()))_0x3cf4e3['insert'](_0x27e314,_0x50ad8e,'end');const _0x48a5f1=_0x1aa5b1['rowInsertionIndexes']['includes'](_0x462028['row']),_0x18d4d9=_0x1aa5b1['columnInsertionIndexes']['includes'](_0x462028['column']);_0x48a5f1||_0x18d4d9||(_0x5d3375=_0x49277e['fromRange'](_0x3cf4e3['createRangeIn'](_0x50ad8e)));}else _0x3e5ccb&&!_0x35328d&&(_0x349234=_0x3cf4e3['createRangeIn'](_0x50ad8e));}else{const _0x1b90f1=_0x3cf4e3['createElement']('tableCellSuggestion'),_0x16f96e=_0x3cf4e3['createElement']('tableCellSuggestion');_0x3cf4e3['wrap'](_0x3cf4e3['createRangeIn'](_0x50ad8e),_0x16f96e),_0x3cf4e3['insert'](_0x1b90f1,_0x50ad8e,0x0);for(const _0x24db9f of Array['from'](_0x2c30dd['getChildren']()))_0x3cf4e3['insert'](_0x24db9f,_0x1b90f1,'end');_0x5d3375=_0x49277e['fromRange'](_0x3cf4e3['createRangeOn'](_0x1b90f1)),_0x349234=_0x49277e['fromRange'](_0x3cf4e3['createRangeOn'](_0x16f96e));}const _0x5b9555=Array['from'](_0x2c30dd['getAttributes']())['filter'](([_0x4aa105])=>ge['includes'](_0x4aa105));_0x1aa5b1['cells']['push']({'element':_0x50ad8e,'attributes':_0x5b9555['length']?Object['fromEntries'](_0x5b9555):null}),_0x5d3375&&_0x1aa5b1['insertionRanges']['push'](_0x5d3375),_0x349234&&_0x1aa5b1['deletionRanges']['push'](_0x349234);},{'priority':'high'}),_0x8f3a1b['on']('insertColumns',(_0x2baf95,_0x424ac3)=>{const [_0x468dd6,_0x4a61fa={}]=_0x424ac3;if(!_0x1aa5b1)return;const _0x4c2a49=_0x4a61fa['at']||0x0,_0x70162d=_0x4a61fa['columns']||0x1;_0x1aa5b1['columnInsertionIndexes']=new Array(_0x70162d)['fill'](_0x4c2a49)['map']((_0x54fd72,_0x3e868b)=>_0x54fd72+_0x3e868b);for(const {cell:_0x1c0b0d}of _0x8f3a1b['createTableWalker'](_0x468dd6,{'startColumn':_0x4c2a49,'endColumn':_0x4c2a49+_0x70162d-0x1}))_0x1aa5b1['columnInsertionRanges']['push'](_0x3a8588['model']['createRangeOn'](_0x1c0b0d));},{'priority':'low'}),_0x8f3a1b['on']('insertRows',(_0x1a6cf6,_0x30eb92)=>{const [_0x259b62,_0x2a4474={}]=_0x30eb92;if(!_0x1aa5b1)return;const _0x1aad14=_0x2a4474['at']||0x0,_0x57d6df=_0x2a4474['rows']||0x1;_0x1aa5b1['rowInsertionIndexes']=new Array(_0x57d6df)['fill'](_0x1aad14)['map']((_0x5edec6,_0x55faf7)=>_0x5edec6+_0x55faf7);for(const {cell:_0x413f85}of _0x8f3a1b['createTableWalker'](_0x259b62,{'startRow':_0x1aad14,'endRow':_0x1aad14+_0x57d6df-0x1}))_0x1aa5b1['rowInsertionRanges']['push'](_0x3a8588['model']['createRangeOn'](_0x413f85));},{'priority':'low'}),_0x7ca91a['descriptionFactory']['registerDescriptionCallback'](_0x4dbd97=>{if(_0x4dbd97['subType']&&_0x4dbd97['subType']['startsWith']('tablePaste'))return _0x4dbd97['previous']?{}:{'type':'insertion','content':o(_0x3a8588['locale'],'*Replace\x20table\x20cells*')};});const _0x3a6b8f=()=>!0x1;for(const _0x3f10e5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7ca91a['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f10e5,'join',_0x3a6b8f),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f10e5,'join',_0x3a6b8f),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f10e5,'join',_0x3a6b8f);_0x7ca91a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3a6b8f),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x90003c,_0x5b8837,_0x46db5e)=>{const _0x21cb07=_0x90003c['map'](_0x19fa57=>_0x19fa57['getContainedElement']())['filter'](_0x4fe13b=>_0x4fe13b),_0x5502bf=new Map(_0x21cb07['map'](_0x75718b=>[_0x75718b,null]));if(_0x1aa5b1){for(const {element:_0x38c2d3,attributes:_0xa9163}of _0x1aa5b1['cells'])_0xa9163&&_0x5502bf['set'](_0x38c2d3,_0xa9163);}else{if(_0x46db5e&&_0x46db5e['markerAttributes'])for(const [_0x7322b0,_0x68a2c]of Object['entries'](_0x46db5e['markerAttributes'])){const _0x5359ee=_0x3a8588['model']['markers']['get'](_0x7322b0),_0x4905f1=_0x5359ee?_0x5359ee['getRange']()['getContainedElement']():null;_0x4905f1&&_0x5502bf['set'](_0x4905f1,_0x68a2c);}}_0x3a8588['model']['change'](_0x1a8cfe=>{for(const [_0x3b4bfc,_0x16c85e]of _0x5502bf)_0x1a8cfe['setAttributes']({...Ce,..._0x16c85e},_0x3b4bfc);});});const _0x338276=(_0x1429f3,_0x262d55)=>{_0x7ca91a['_suggestionFactory']['registerCustomCallback'](_0x1429f3,'tablePaste',_0x262d55,(_0x439492,_0x2f1d5b,_0x1f29d4)=>{_0x3a8588['model']['change'](_0x2188f2=>{const _0x248e23=[];for(const _0x30425 of _0x439492){const _0x55294e=_0x30425['start']['nodeAfter'];_0x55294e['is']('element','tableCellSuggestion')&&_0x248e23['push'](_0x55294e);}_0x7ca91a['_suggestionFactory']['getSuggestionCallback'](_0x1429f3,null,_0x262d55)(_0x439492,_0x2f1d5b,_0x1f29d4);for(const _0x459c82 of _0x248e23)'$graveyard'!=_0x459c82['root']['rootName']&&_0x2188f2['unwrap'](_0x459c82);});});};_0x338276('insertion','accept'),_0x338276('insertion','discard'),_0x338276('deletion','accept'),_0x338276('deletion','discard'),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x544300=>{const _0x4f5f8a=_0x544300['map'](_0xd203bd=>_0xd203bd['getContainedElement']()),_0x5a748d=_0x4f5f8a[0x0]['findAncestor']('table'),{minRow:_0x19cbe5,maxRow:_0x5201d6}=_0x1d8b19['_getCoordsForCells'](_0x4f5f8a);_0x8f3a1b['removeRows'](_0x5a748d,{'at':_0x19cbe5,'rows':_0x5201d6-_0x19cbe5+0x1});}),_0x7ca91a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x20082f=>{const _0x312eaf=_0x20082f['map'](_0x2a9036=>_0x2a9036['getContainedElement']()),_0x433134=_0x312eaf[0x0]['findAncestor']('table'),{minColumn:_0x2c5434,maxColumn:_0x2d9e02}=_0x1d8b19['_getCoordsForCells'](_0x312eaf);_0x8f3a1b['removeColumns'](_0x433134,{'at':_0x2c5434,'columns':_0x2d9e02-_0x2c5434+0x1});});const _0x575ba6=(_0x270bca,_0x20b938)=>{if(!_0x20b938['subType']||!_0x20b938['subType']['startsWith']('tablePaste'))return;const _0x176954=_0x20b938['attributes']['tablePasteChainId'],_0x28dee6=_0x7ca91a['getSuggestions']()['filter'](_0x11a3b2=>_0x11a3b2['isInContent']&&_0x11a3b2['attributes']&&_0x11a3b2['attributes']['tablePasteChainId']==_0x176954);_0x28dee6['length']&&_0x20b938['getAllAdjacentSuggestions']()['length']!=_0x28dee6['length']&&_0x28dee6['reduce']((_0x2277de,_0x3119c8)=>(_0x2277de['next']=_0x3119c8,_0x3119c8['previous']=_0x2277de,_0x3119c8));};function _0x2ba7f7(_0x57c0dd,_0x3dc3a9=!0x0){const {id:_0x47e794}=_0x7ca91a['_splitMarkerName'](_0x57c0dd['markerName']),_0x35efa3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a8ba7=_0x7ca91a['activeMarkers']['includes'](_0x57c0dd['markerName']);return _0x1a8ba7&&_0x35efa3['push']('ck-suggestion-marker--active'),{'classes':_0x35efa3,'attributes':{'data-suggestion':_0x47e794},'priority':_0x1a8ba7&&_0x3dc3a9?0xbc2:0xbb8};}_0x7ca91a['on']('suggestionLoaded',_0x575ba6,{'priority':'high'}),_0x7ca91a['on']('suggestionUnloaded',_0x575ba6,{'priority':'high'}),_0x3a8588['model']['document']['registerPostFixer'](()=>{let _0x10000e=!0x1;const _0x12ade7=Array['from'](_0x3a8588['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf70e13,data:_0x32b580}of _0x12ade7){const {group:_0x5212b1,type:_0x561124,id:_0x1aee66}=_0x7ca91a['_splitMarkerName'](_0xf70e13);if('suggestion'!=_0x5212b1||'deletion'!=_0x561124||_0x32b580['oldRange'])continue;if(!_0x7ca91a['hasSuggestion'](_0x1aee66))continue;const _0x52e334=_0x7ca91a['getSuggestion'](_0x1aee66)['getRanges'](),_0x3e91aa=_0x3a8588['plugins']['get']('Users')['me'];for(const _0xb3c9c of _0x7ca91a['getSuggestions']()){if(!_0xb3c9c['isInContent']||_0xb3c9c['author']!=_0x3e91aa)continue;if('formatBlock'!=_0xb3c9c['type']||'tablePasteCell'!=_0xb3c9c['subType'])continue;if(_0xb3c9c['getRanges']()['every'](_0x160c1b=>_0x52e334['some'](_0x5d8a7=>_0x5d8a7['containsRange'](_0x160c1b,!0x0)))){for(const _0x4f06a5 of _0xb3c9c['getAllAdjacentSuggestions']())_0x4f06a5['isInContent']&&(_0x4f06a5['discard'](),_0x10000e=!0x0);}}}return _0x10000e;}),_0x3a8588['model']['document']['registerPostFixer'](_0x19541e=>{const _0x5d04e8=_0x3a8588['commands']['get']('redo');if(!_0x5d04e8||!_0x5d04e8['_createdBatches']['has'](_0x19541e['batch']))return!0x1;let _0x49d854=!0x1;const _0x252f7e=_0x3a8588['plugins']['get']('Users')['me'],_0x318995=_0x3a8588['model']['document']['differ']['getChanges'](),_0x31bcf6=Array['from'](_0x3a8588['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cbae8,data:_0x1f8ccc})=>{const {group:_0xb7ae8,subType:_0x35d8d1,authorId:_0x15a850}=_0x7ca91a['_splitMarkerName'](_0x3cbae8);return'suggestion'==_0xb7ae8&&'tablePaste'==_0x35d8d1&&_0x15a850==_0x252f7e['id']&&!_0x1f8ccc['oldRange'];});for(const _0x4e4b57 of _0x318995){if('insert'!=_0x4e4b57['type']||'tableCellSuggestion'!=_0x4e4b57['name']||0x1!=_0x4e4b57['length'])continue;const _0x376fec=_0x19541e['createRange'](_0x4e4b57['position'],_0x4e4b57['position']['getShiftedBy'](0x1));if(!_0x31bcf6['find'](({data:_0x5c162d})=>_0x5c162d['newRange']['isEqual'](_0x376fec))){for(const {name:_0x5356df,data:_0x3f9138}of _0x31bcf6)if(_0x376fec['containsRange'](_0x3f9138['newRange'])){_0x19541e['updateMarker'](_0x5356df,{'range':_0x376fec}),_0x49d854=!0x0;break;}}}return _0x49d854;}),_0x3a8588['model']['document']['registerPostFixer'](_0x1d2bf7=>{let _0x1a9a70=!0x1;const _0x4fc401=_0x3a8588['plugins']['get']('Users')['me'],_0x1bba31=_0x7ca91a['getSuggestions']()['filter'](_0x4585e1=>_0x4585e1['isInContent']&&_0x4585e1['author']==_0x4fc401),_0xbf17d8=new Set(),_0x484877=new Set();for(const _0x25ceaa of _0x1bba31)if('tablePaste'==_0x25ceaa['subType'])for(const _0x5a2e60 of _0x25ceaa['getMarkers']()){const _0x3e5c87=_0x5a2e60['getRange']()['getContainedElement']();if(_0x3e5c87){if(_0x3e5c87['is']('element','tableCellSuggestion')&&Pe(_0x3e5c87)){_0x25ceaa['removeMarker'](_0x5a2e60['name']),_0xbf17d8['add'](_0x3e5c87),_0x1a9a70=!0x0;const _0x497f7e=_0x3e5c87['nextSibling'],_0x2e0a7d=_0x3e5c87['previousSibling'],_0x507f14=_0x497f7e&&_0x497f7e['is']('element','tableCellSuggestion'),_0x2c01c2=_0x2e0a7d&&_0x2e0a7d['is']('element','tableCellSuggestion');_0x507f14&&!_0xbf17d8['has'](_0x497f7e)&&_0x484877['add'](_0x497f7e),_0x2c01c2&&!_0xbf17d8['has'](_0x2e0a7d)&&_0x484877['add'](_0x2e0a7d);}else _0x3e5c87['is']('element','paragraph')&&_0x3e5c87['isEmpty']&&(_0x25ceaa['removeMarker'](_0x5a2e60['name']),_0x1a9a70=!0x0);}}else{if('tablePasteCell'==_0x25ceaa['subType']){if(!_0x25ceaa['attributes']||!_0x25ceaa['attributes']['tablePasteChainId'])continue;const _0x2b49d7=_0x25ceaa['attributes']['markerAttributes'];if(_0x2b49d7&&Object['keys'](_0x2b49d7)['length'])continue;const _0x481f0d=_0x25ceaa['attributes']['tablePasteChainId'];let _0x30ee10=!0x0,_0x14a25f=!0x0;for(const _0x2f79a3 of _0x1bba31)if(_0x2f79a3['subType']&&_0x2f79a3['subType']['startsWith']('tablePaste')){if(!_0x2f79a3['attributes']['tablePasteChainId']){_0x14a25f=!0x1;break;}if(_0x2f79a3['id']!=_0x25ceaa['id']&&_0x2f79a3['attributes']['tablePasteChainId']==_0x481f0d){_0x30ee10=!0x1;break;}}_0x14a25f&&_0x30ee10&&(_0x25ceaa['removeMarkers'](),_0x1a9a70=!0x0);}}for(const _0x24046c of _0xbf17d8)_0x1d2bf7['remove'](_0x24046c);for(const _0x5e6bad of _0x484877)_0x1d2bf7['unwrap'](_0x5e6bad);return _0x1a9a70;}),_0x3a8588['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x265bf2,_0x509e5d)=>_0x2ba7f7(_0x265bf2),'converterPriority':'high'}),_0x3a8588['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4bfa31,_0x49256f)=>_0x49256f['options']['showSuggestionHighlights']?_0x2ba7f7(_0x4bfa31,!0x1):null,'converterPriority':'high'});const _0x1c8eb0=_0x3a8588['editing']['view'];this['listenTo'](_0x1c8eb0['document'],'clipboardOutput',(_0x510dde,_0x3e461e)=>{const _0x517776=[];for(const _0x59b3a0 of _0x1c8eb0['createRangeIn'](_0x3e461e['content'])['getItems']())_0x59b3a0['is']('element','suggestion-td')&&_0x517776['push'](_0x59b3a0);_0x1c8eb0['change'](_0x391d01=>{for(const _0x5965e9 of _0x517776)_0x391d01['move'](_0x391d01['createRangeIn'](_0x5965e9),_0x391d01['createPositionBefore'](_0x5965e9)),_0x391d01['remove'](_0x5965e9);});});}}function Pe(_0x5e3abb){if(_0x5e3abb['isEmpty'])return!0x0;const _0x5c54f8=_0x5e3abb['getChild'](0x0);return _0x5c54f8['is']('element','paragraph')&&_0x5c54f8['isEmpty'];}function we(_0x5dcc77,_0x53690e={},_0x502024){for(const {isAnchor:_0x4c9215,cellHeight:_0x53ac75,cellWidth:_0x2c459d}of _0x502024['createTableWalker'](_0x5dcc77,{'includeAllSlots':!0x0,..._0x53690e}))if(!_0x4c9215||0x1!=_0x53ac75||0x1!=_0x2c459d)return!0x1;return!0x0;}class Ct extends _0x20fe95{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4902cb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4902cb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4902cb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4902cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4902cb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4902cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4902cb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ae714,_0x2c5d98){const _0x43baea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27d056=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8a3517=_0x2c5d98['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5bbfbb=_0x27d056['getColumnGroupElement'](_0x8a3517);let _0x489cca=_0x5bbfbb?_0x27d056['getTableColumnsWidths'](_0x5bbfbb):null,_0xae7b9c=_0x8a3517['getAttribute']('tableWidth')||null;const _0x338743=_0x2c5d98['tableWidth']||_0xae7b9c,_0x29acff=_0x2c5d98['columnWidths']||_0x489cca,_0x6ca65d=this['editor']['plugins']['get']('Users')['me'];for(const _0x209d1f of _0x43baea['getSuggestions']()){const _0x20bacb=_0x209d1f['getContainedElement']();if('resizeTable'===_0x209d1f['subType']&&_0x20bacb===_0x8a3517){_0x209d1f['author']!==_0x6ca65d&&_0x209d1f['discard']();const _0x5baf7b=_0x209d1f['data']['commandParams'];_0xae7b9c=_0x5baf7b[0x0]['tableWidth'],_0x489cca=_0x5baf7b[0x0]['columnWidths'];break;}}_0x2ae714({'table':_0x8a3517,'tableWidth':_0x338743,'columnWidths':_0x29acff}),_0x43baea['markBlockFormat'](_0x8a3517,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xae7b9c,'columnWidths':_0x489cca}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10c48e){if('formatBlock'!=_0x10c48e['type']&&'formatInline'!=_0x10c48e['type'])return;const {data:_0x34fa83}=_0x10c48e;if(_0x34fa83&&'resizeTable'===_0x34fa83['formatGroupId']){const _0x1836b6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1836b6)};}}}class _t extends _0x20fe95{['afterInit'](){const _0x485a05=this['editor'];_0x485a05['plugins']['has']('Template')&&_0x485a05['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x20fe95{['afterInit'](){const _0x941c72=this['editor'];if(!_0x941c72['commands']['get']('insertTableOfContents'))return;_0x941c72['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x423d31=_0x941c72['plugins']['get']('TrackChangesEditing'),_0x154072=_0x941c72['locale'];_0x423d31['descriptionFactory']['registerElementLabel']('tableOfContents',_0x211bbd=>o(_0x154072,'ELEMENT_TABLE_OF_CONTENTS',_0x211bbd));}}class Nt extends _0x20fe95{['afterInit'](){const _0x21bb12=this['editor'];if(!_0x21bb12['plugins']['has']('Title'))return;const _0xb56800=_0x21bb12['plugins']['get']('TrackChangesEditing');_0xb56800['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x21bb12['locale'],'ELEMENT_TITLE')),_0x21bb12['model']['document']['registerPostFixer'](_0x1e399f=>{let _0x9ac4dd=!0x1;const _0x234117=Array['from'](_0x21bb12['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31e5ac,data:_0x3535ff}of _0x234117){const {group:_0x25d7fa}=_0xb56800['_splitMarkerName'](_0x31e5ac);if('suggestion'!==_0x25d7fa||!_0x3535ff['newRange'])continue;const _0x1e8acf=_0x3535ff['newRange'],_0x2be0fa=_0x1e8acf['end']['nodeBefore'];if(!_0x2be0fa||!_0x2be0fa['is']('element','title-content'))continue;if(!_0x1e8acf['start']['isTouching'](_0x1e8acf['end']))continue;const _0x3045db=_0x21bb12['model']['schema']['getNearestSelectionRange'](_0x1e8acf['end'],'forward');if(_0x3045db&&_0x3045db['isCollapsed']){const _0x31f9ad=_0x1e399f['createRange'](_0x1e8acf['start'],_0x3045db['start']);_0x31f9ad['isEqual'](_0x1e8acf)||(_0x1e399f['updateMarker'](_0x31e5ac,{'range':_0x31f9ad}),_0x9ac4dd=!0x0);}_0x9ac4dd||(_0x1e399f['removeMarker'](_0x31e5ac),_0x9ac4dd=!0x0);}return _0x9ac4dd;});}}class Mt extends _0x20fe95{['afterInit'](){const _0x23ef6a=this['editor'],_0x1dcd35=_0x23ef6a['plugins']['get']('TrackChangesEditing');_0x23ef6a['plugins']['has']('UndoEditing')&&(_0x1dcd35['enableCommand']('undo'),_0x1dcd35['enableCommand']('redo'));}}class $t extends _0x20fe95{static get['requires'](){return[St];}['afterInit'](){const _0xec3a20=this['editor'];if(!_0xec3a20['plugins']['has']('TableCaptionEditing'))return;_0xec3a20['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x20fe95{['tableProperties'];['tableCellProperties'];constructor(_0x14fbb5){super(_0x14fbb5),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 _0x18751b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x8887aa of this['tableProperties'])_0x18751b['enableCommand'](_0x8887aa,(_0x2d4411,_0x456e69)=>{const _0x513b46=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x8887aa,[_0x513b46],this['tableProperties'],'tableProperties',_0x2d4411,_0x456e69);});_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x18751b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x408bcd,_0x2975ec)=>this['handleDiscardAction'](this['tableProperties'],_0x408bcd,_0x2975ec)),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b66e0 of this['tableCellProperties'])_0x18751b['enableCommand'](_0x2b66e0,(_0x233d07,_0x3dd728)=>{const _0x13c449=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b66e0,_0x13c449,this['tableCellProperties'],'tableCellProperties',_0x233d07,_0x3dd728);});_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x18751b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x178ae8,_0x405dd8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x178ae8,_0x405dd8)),_0x18751b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x18751b['descriptionFactory']['registerDescriptionCallback'](_0x1ad281=>this['handleSuggestionDescription'](_0x1ad281));}['_handlePropertyChange'](_0x382605,_0x1168f4,_0x3d2fac,_0x5ab267,_0x2e849f,_0x31efa2){const _0x4aa35b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31efa2['batch'],()=>{for(const _0x39a266 of _0x1168f4){if(this['_getSuggestion'](_0x39a266,_0x5ab267))_0x2e849f(_0x31efa2);else{const _0x45c7a8={};for(const _0x5e171d of _0x3d2fac){const _0x3bff7b=_0x39a266['getAttribute'](_0x5e171d);void 0x0!==_0x3bff7b&&(_0x45c7a8[_0x5e171d]=_0x3bff7b);}_0x2e849f(_0x31efa2),_0x4aa35b['markBlockFormat'](_0x39a266,{'commandParams':[_0x45c7a8]},[],_0x5ab267);}}});}['handleDiscardAction'](_0x124a49,_0x3dc277,_0x29572){const _0x3a35b9=_0x3dc277[0x0]['start']['nodeAfter'],_0x45e9b1=_0x29572['commandParams'][0x0];this['editor']['model']['change'](_0x257a7f=>{for(const _0x354548 of _0x124a49)void 0x0!==_0x45e9b1[_0x354548]?_0x257a7f['setAttribute'](_0x354548,_0x45e9b1[_0x354548],_0x3a35b9):_0x257a7f['removeAttribute'](_0x354548,_0x3a35b9);});}['handleSuggestionDescription'](_0x356e14){if(_0x356e14['data'])switch(_0x356e14['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'](_0x206791,_0x1ddd6b){const _0x4ef625=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e18ca of _0x4ef625['getSuggestions']({'skipNotAttached':!0x0})){const _0x41fa41=_0x3e18ca['getContainedElement']();if(_0x3e18ca['subType']===_0x1ddd6b&&_0x41fa41===_0x206791)return _0x3e18ca;}return null;}}const m='$elementName';class p extends _0x20fe95{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21c972,_0xbbd475,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x335a62){function _0x260bbc(_0x1911e8){return _0x1911e8['map'](_0x2c06f2=>String['fromCharCode'](_0x2c06f2))['join']('');}super(_0x335a62),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a1b63,_0x174bc4,_0x3520dc,_0x1107bc)=>{this['_model']['change'](()=>{for(const _0x1ba8b1 of[..._0x1107bc,..._0x3520dc])this['_model']['markers']['has'](_0x1ba8b1)&&_0x335a62['editing']['reconvertMarker'](_0x1ba8b1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x335a62['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(),_0x335a62['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x335a62['config']['get']('trackChanges.trackFormatChanges'),_0x335a62['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x335a62['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x335a62,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x260bbc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x260bbc([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x32]);}['init'](){const _0x23c968=this['editor'],_0x319cf9=(_0x5bf719,_0x36a0a2)=>{if('attribute'!=_0x5bf719)return'ck-suggestion-marker-'+_0x5bf719;const _0x4512b1=_0x36a0a2['split']('|')[0x0];return this['_isBlockAttribute'](_0x4512b1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23c968['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x490b26=>{const {id:_0x13e6c1,type:_0x2f7968,subType:_0x330fb3}=this['_splitMarkerName'](_0x490b26['markerName']),_0x3e38c0=['ck-suggestion-marker',_0x319cf9(_0x2f7968,_0x330fb3)];let _0x1fb7b1=0xbb8;return this['activeMarkers']['includes'](_0x490b26['markerName'])&&(_0x3e38c0['push']('ck-suggestion-marker--active'),_0x1fb7b1=0xbc2),'deletion'==_0x2f7968&&(_0x1fb7b1+=0x5),{'classes':_0x3e38c0,'attributes':{'data-suggestion':_0x13e6c1},'priority':_0x1fb7b1};}}),_0x23c968['conversion']['for']('dataDowncast')['add'](_0x26ec43=>{_0x26ec43['on']('addMarker:suggestion',(_0xde75ce,_0x59d055,_0x1b6b90)=>{if(!_0x1b6b90['options']['showSuggestionHighlights'])return;const _0x59784e=_0x59d055['item'];if(!_0x59784e)return;const _0x11665d=_0x1b6b90['mapper']['toViewElement'](_0x59784e);_0x23c968['model']['schema']['isObject'](_0x59784e)&&_0x11665d&&!_0x11665d['getCustomProperty']('widget')&&_0x11665d['is']('containerElement')&&_0x481bff(_0x11665d,_0x1b6b90['writer']);},{'priority':'high'});}),_0x23c968['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x284b18,_0x1ce91e)=>{if(!_0x1ce91e['options']['showSuggestionHighlights'])return null;const {type:_0x435be6,subType:_0x84e155}=this['_splitMarkerName'](_0x284b18['markerName']);return{'classes':['ck-suggestion-marker',_0x319cf9(_0x435be6,_0x84e155)],'priority':0xbb8};}});const _0x28dab6=({showActiveMarkers:_0x2457a1=!0x0,isAttributeSuggestion:_0xfbaf79=!0x1}={})=>(_0x370480,_0x114b21,_0x5105d1)=>{if(!_0x114b21['item'])return;const {id:_0x73ea43}=this['_splitMarkerName'](_0x114b21['markerName']);if(_0xfbaf79){const _0x53b603=this['_suggestions']['get'](_0x73ea43),_0x18633a=this['_getAttributeKey'](_0x53b603);if(!this['_isBlockAttribute'](_0x18633a))return;}if(_0x114b21['item']['is']('selection'))return void _0x5105d1['consumable']['consume'](_0x114b21['item'],_0x370480['name']);const _0x53f377=_0x5105d1['mapper']['toViewElement'](_0x114b21['item']);if(_0x114b21['item']['is']('element')&&_0x23c968['model']['schema']['isBlock'](_0x114b21['item'])&&!_0x53f377['getCustomProperty']('addHighlight')){_0x5105d1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x53f377),_0x5105d1['writer']['setAttribute']('data-suggestion',_0x73ea43,_0x53f377),_0x5105d1['mapper']['bindElementToMarker'](_0x53f377,_0x114b21['markerName']),_0x2457a1&&(this['activeMarkers']['includes'](_0x114b21['markerName'])?_0x5105d1['writer']['addClass']('ck-suggestion-marker--active',_0x53f377):_0x5105d1['writer']['removeClass']('ck-suggestion-marker--active',_0x53f377));for(const _0x479726 of _0x23c968['model']['createRangeIn'](_0x114b21['item'])['getItems']())_0x5105d1['consumable']['consume'](_0x479726,_0x370480['name']);_0x5105d1['consumable']['consume'](_0x114b21['item'],_0x370480['name']);}};_0x23c968['conversion']['for']('dataDowncast')['add'](_0x5da9b7=>{_0x5da9b7['on']('addMarker:suggestion:formatBlock',(_0x584b2b,_0x3ccc1b,_0x3afc6d)=>{_0x3afc6d['options']['showSuggestionHighlights']&&_0x28dab6({'showActiveMarkers':!0x1})(_0x584b2b,_0x3ccc1b,_0x3afc6d);},{'priority':'highest'});}),_0x23c968['conversion']['for']('dataDowncast')['add'](_0x495d8b=>{_0x495d8b['on']('addMarker:suggestion:attribute',(_0x5a35d4,_0x34fe60,_0xd9d0e0)=>{_0xd9d0e0['options']['showSuggestionHighlights']&&_0x28dab6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a35d4,_0x34fe60,_0xd9d0e0);},{'priority':'highest'});}),_0x23c968['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x57446b,_0xb710e0)=>_0xb710e0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x57446b['substr'](0xb)}}),_0x23c968['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18adbd,{writer:_0x47cc20})=>{let _0x42ffb1='suggestion:'+_0x18adbd['getAttribute']('suggestion-type')+':'+_0x18adbd['getAttribute']('id');return _0x18adbd['getAttribute']('marker-count')&&(_0x42ffb1+=':'+_0x18adbd['getAttribute']('marker-count')),_0x47cc20['createElement']('$marker',{'data-name':_0x42ffb1});}}),_0x23c968['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0x3c1577=>{_0x3c1577['on']('addMarker:suggestion:formatBlock',_0x28dab6(),{'priority':'high'});}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0xf844bc=>{_0xf844bc['on']('addMarker:suggestion:attribute',_0x28dab6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0x150171=>{_0x150171['on']('removeMarker:suggestion:formatBlock',(_0x5ce2cd,_0x2eb884,_0xdd0155)=>{const _0x347f93=_0xdd0155['mapper']['markerNameToElements'](_0x2eb884['markerName']);if(_0x347f93){for(const _0x240f2c of _0x347f93)_0x240f2c['getCustomProperty']('addHighlight')||(_0xdd0155['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x240f2c),_0xdd0155['writer']['removeAttribute']('data-suggestion',_0x240f2c),_0xdd0155['mapper']['unbindElementFromMarkerName'](_0x240f2c,_0x2eb884['markerName']));}},{'priority':'high'});}),_0x23c968['conversion']['for']('editingDowncast')['add'](_0x5157d8=>{_0x5157d8['on']('removeMarker:suggestion:attribute',(_0xd9fef7,_0x2cefe3,_0x10366f)=>{const _0x43f1a9=_0x10366f['mapper']['markerNameToElements'](_0x2cefe3['markerName']);if(!_0x43f1a9)return;const {id:_0xf09416}=this['_splitMarkerName'](_0x2cefe3['markerName']),_0x165eef=this['_suggestions']['get'](_0xf09416),_0x5283f8=this['_getAttributeKey'](_0x165eef);if(this['_isBlockAttribute'](_0x5283f8)){for(const _0x41566d of _0x43f1a9)_0x41566d['getCustomProperty']('addHighlight')||(_0x10366f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x41566d),_0x10366f['writer']['removeAttribute']('data-suggestion',_0x41566d),_0x10366f['mapper']['unbindElementFromMarkerName'](_0x41566d,_0x2cefe3['markerName']));}},{'priority':'high'});}),_0x23c968['model']['document']['registerPostFixer'](_0x5310d2=>{let _0x2fff33=!0x1;const _0x47cfd5=Array['from'](_0x23c968['model']['document']['differ']['getChangedMarkers']()),_0x388c21=new Set();for(const {name:_0x17388a,data:_0x476583}of _0x47cfd5){const {group:_0x141d78,type:_0x267b9c,subType:_0x2c79b1,id:_0x4d271c}=this['_splitMarkerName'](_0x17388a);if('suggestion'!==_0x141d78)continue;const _0xb3554b=this['_suggestions']['get'](_0x4d271c);if(null!=_0x476583['newRange']){'formatInline'==_0x267b9c&&(_0x2fff33=_0x2fff33||Vt(_0x476583['newRange'],_0x17388a,_0x5310d2,_0x23c968['model']['schema']));const _0x59f876='attribute'==_0x267b9c&&this['_isBlockAttribute'](_0x2c79b1['split']('|')[0x0]);if(_0x476583['newRange']['isCollapsed']||'$graveyard'==_0x476583['newRange']['root']['rootName']||'formatBlock'==_0x267b9c&&!Ot(_0x476583['newRange'])||_0x59f876&&!Ot(_0x476583['newRange'])||'deletion'==_0x267b9c&&!(!Et(_0x5181c3=_0x476583['newRange'])&&!function(_0x5bdb98){return _0x5bdb98['start']['parent']==_0x5bdb98['end']['nodeBefore']&&_0x5bdb98['start']['isAtEnd'];}(_0x5181c3)))_0x5310d2['removeMarker'](_0x17388a),_0x2fff33=!0x0;else{if(!_0xb3554b||!_0xb3554b['isInContent'])continue;_0x388c21['add'](_0xb3554b);}}}var _0x5181c3;return _0x388c21['size']>0x0&&(_0x2fff33=!!this['_joinWithAdjacentSuggestions'](_0x388c21)||_0x2fff33),_0x2fff33;}),_0x23c968['model']['document']['registerPostFixer'](_0x4d8dbf=>{let _0x18d6e2=!0x1;for(const _0x32f64b of _0x23c968['model']['document']['differ']['getChanges']())if('insert'==_0x32f64b['type'])for(const _0x28afa5 of this['_suggestions']['values']()){if(_0x28afa5['isMultiRange']||!_0x28afa5['isInContent'])continue;const _0x641729='formatBlock'==_0x28afa5['type'],_0x8b4188=this['_getAttributeKey'](_0x28afa5),_0x2a83a6=_0x8b4188&&this['_isBlockAttribute'](_0x8b4188);if(!_0x641729&&!_0x2a83a6)continue;const _0x3bb8e4=_0x28afa5['getFirstRange']();if(_0x3bb8e4['start']['parent']!=_0x3bb8e4['end']['parent']&&!_0x3bb8e4['end']['isAtEnd']){const _0x426232=_0x23c968['model']['createPositionAt'](_0x3bb8e4['start']['nodeAfter'],'end'),_0x14bec0=_0x23c968['model']['createRange'](_0x3bb8e4['start'],_0x426232);_0x4d8dbf['updateMarker'](_0x28afa5['getFirstMarker'](),{'range':_0x14bec0}),_0x18d6e2=!0x0;}}return _0x18d6e2;}),_0x23c968['model']['document']['registerPostFixer'](_0x562d39=>this['_processAttributeChanges'](_0x562d39)),_0x23c968['model']['document']['registerPostFixer'](_0x2637fa=>!_0x2637fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2637fa)),_0x23c968['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23c968['model']['document']['on']('change:data',(_0x3ae5c1,_0x5b72c6)=>{if(!_0x5b72c6['isLocal']||_0x5b72c6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x26ba1e=_0x23c968['model']['document']['differ']['getChanges']();if(0x0==_0x26ba1e['length'])return;const _0x666328=[],_0x4b6c87=_0x26ba1e['filter'](_0x1c532f=>'attribute'==_0x1c532f['type']),_0x1236c1=_0x26ba1e['filter'](_0x192d20=>'insert'==_0x192d20['type']&&'$text'!=_0x192d20['name']);for(const _0x497829 of _0x4b6c87)this['_isRegisteredAttribute'](_0x497829['attributeKey'])&&_0x666328['push']({'key':_0x497829['attributeKey'],'newValue':_0x497829['attributeNewValue'],'oldValue':_0x497829['attributeOldValue'],'range':Gt(_0x497829['range'],_0x23c968['model'])});for(const _0x27545c of _0x1236c1){if('rename'!=_0x27545c['action']&&'refresh'!=_0x27545c['action'])continue;const _0x386244=Ft(_0x27545c['position']['nodeAfter'],_0x23c968['model']),_0x8b0315=_0x27545c['before'];'rename'==_0x27545c['action']&&_0x666328['push']({'key':m,'newValue':_0x27545c['name'],'oldValue':_0x8b0315['name'],'range':_0x386244});for(const [_0x1daf98,_0x5cc9b2]of _0x8b0315['attributes']){if(!this['_isRegisteredAttribute'](_0x1daf98))continue;const _0xafdeaa=_0x27545c['attributes']['get'](_0x1daf98);_0x5cc9b2!==_0xafdeaa&&_0x666328['push']({'key':_0x1daf98,'newValue':_0xafdeaa,'oldValue':_0x5cc9b2,'range':_0x386244});}for(const [_0x512497,_0x3faab4]of _0x27545c['attributes'])this['_isRegisteredAttribute'](_0x512497)&&(_0x8b0315['attributes']['has'](_0x512497)||_0x666328['push']({'key':_0x512497,'newValue':_0x3faab4,'oldValue':null,'range':_0x386244}));}0x0!=_0x666328['length']&&_0x23c968['model']['enqueueChange'](_0x5b72c6,_0x407ee7=>{const _0x4d80a1=_0x5d1950();for(const {range:_0x4d649c,key:_0x3d81f0,oldValue:_0x5f4ff7,newValue:_0x2f2a4b}of _0x666328)this['markAttributeChange'](_0x4d649c,_0x3d81f0,_0x5f4ff7,_0x2f2a4b,{'groupId':_0x4d80a1});this['_reduceExistingSuggestions'](_0x407ee7,_0x666328);});},{'priority':'lowest'}),_0x23c968['model']['markers']['on']('update:suggestion',(_0x16c665,_0x253113,_0x315bc4)=>{if(null==_0x315bc4){const {id:_0x58ed47}=this['_splitMarkerName'](_0x253113['name']),_0x2be36a=this['_suggestions']['get'](_0x58ed47);_0x2be36a&&_0x2be36a['addMarkerName'](_0x253113['name']);}}),_0x23c968['model']['document']['on']('change:data',()=>{const _0x52c0bc=Array['from'](_0x23c968['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f6962=>'suggestion'===this['_splitMarkerName'](_0x4f6962['name'])['group']);if(0x0===_0x52c0bc['length'])return;_0x52c0bc['sort']((_0x562f70,_0x240c6f)=>{const _0x7084bf=_0x562f70['data']['oldRange'],_0x23ff82=_0x240c6f['data']['oldRange'];return null===_0x7084bf&&null===_0x23ff82?0x0:null===_0x7084bf&&null!==_0x23ff82?-0x1:null!==_0x7084bf&&null===_0x23ff82?0x1:_0x7084bf['start']['isBefore'](_0x23ff82['start'])?-0x1:0x1;});const _0x573fa0=new Set(),_0x2d38f3=new Set();for(const {name:_0x2832ec,data:_0x2e0029}of _0x52c0bc){const {id:_0x5f50df}=this['_splitMarkerName'](_0x2832ec);if(null===_0x2e0029['oldRange']){const _0x1673e8=this['_handleNewSuggestionMarker'](_0x2832ec);_0x2d38f3['add'](_0x1673e8);}else{const _0x3d9178=this['_suggestions']['get'](_0x5f50df);null!==_0x2e0029['newRange']||_0x3d9178['isInContent']?(_0x573fa0['add'](_0x3d9178['head']),_0x2d38f3['add'](_0x3d9178)):this['_removeSuggestion'](_0x3d9178);}}_0x2d38f3['size']>0x0&&this['_refreshSuggestionsChain'](_0x2d38f3);for(const _0x5a8d05 of _0x573fa0)this['fire']('suggestionChanged',_0x5a8d05);}),_0x23c968['model']['on']('applyOperation',(_0x4c6d40,_0xd1781)=>{const _0x103b94=_0xd1781[0x0];if(!this['_suggestions']['size'])return;if(!_0x103b94['isDocumentOperation'])return;if(_0x103b94['batch']['isUndo']||!_0x103b94['batch']['isLocal'])return;let _0x5d3708,_0x61787f;switch(_0x103b94['type']){case'insert':_0x5d3708=_0x23c968['model']['createPositionAt'](_0x103b94['position']),_0x61787f=_0x5d3708['getShiftedBy'](_0x103b94['howMany']);break;case'split':_0x5d3708=_0x23c968['model']['createPositionAt'](_0x103b94['splitPosition']),_0x61787f=_0x23c968['model']['createPositionAt'](_0x103b94['moveTargetPosition']);break;case'move':_0x5d3708=_0x23c968['model']['createPositionAt'](_0x103b94['targetPosition']),_0x61787f=_0x5d3708['getShiftedBy'](_0x103b94['howMany']);break;default:return;}const _0x10a304=_0x23c968['model']['createRange'](_0x5d3708,_0x61787f);_0x23c968['model']['change'](()=>{for(const {suggestion:_0x38f329,meta:_0x23fa98}of this['_findSuggestions'](_0x10a304)){if(_0x38f329['isMultiRange'])continue;if('formatInline'==_0x38f329['type'])continue;const _0x268d46=this['_getAttributeKey'](_0x38f329);if(_0x268d46&&this['_isBlockAttribute'](_0x268d46)&&'split'!=_0x103b94['type'])continue;const _0xd0d745=_0x38f329['data']&&_0x38f329['data']['multipleBlocks'];('formatBlock'!=_0x38f329['type']||'split'==_0x103b94['type']&&!_0xd0d745)&&(_0x23fa98['containsRangeInObject']||'insertion'==_0x38f329['type']&&_0x23fa98['isOwn']||_0x38f329['getFirstRange']()['containsRange'](_0x10a304)&&this['_breakSuggestionMarker'](_0x38f329,_0x5d3708,_0x61787f));}});},{'priority':'lowest'}),_0x23c968['model']['on']('deleteContent',(_0x55b1a9,_0x2bfa9a)=>{const _0x5d8236=_0x2bfa9a[0x0],_0x1eb9fa=_0x2bfa9a[0x1];if(_0x1eb9fa&&_0x1eb9fa['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5d8236['isCollapsed'])return;const _0x1d895b=_0x23c968['model']['schema'],{start:_0x375ded,end:_0x1f7540}=_0x5d8236['getFirstRange'](),_0x196d13=_0x375ded['nodeAfter']&&_0x1d895b['isLimit'](_0x375ded['nodeAfter'])?null:_0x1d895b['getNearestSelectionRange'](_0x375ded,'forward'),_0x46fafe=_0x1f7540['nodeBefore']&&_0x1d895b['isLimit'](_0x1f7540['nodeBefore'])?null:_0x1d895b['getNearestSelectionRange'](_0x1f7540,'backward'),_0x19b9e4=_0x23c968['model']['createRange'](_0x196d13?_0x196d13['start']:_0x375ded,_0x46fafe?_0x46fafe['end']:_0x1f7540);_0x23c968['model']['change'](_0x3f39a5=>{this['markDeletion'](_0x19b9e4);const _0x3f7b60=_0x23c968['model']['schema']['getNearestSelectionRange'](_0x19b9e4['start']);_0x5d8236['is']('documentSelection')?_0x3f39a5['setSelection'](_0x3f7b60):_0x5d8236['setTo'](_0x3f7b60);}),_0x55b1a9['stop']();},{'priority':_0xd9177a['normal']+0xa}),_0x23c968['model']['on']('insertContent',(_0x3743cb,_0x4bf0ac)=>{const _0x431b88=_0x4bf0ac[_0x4bf0ac['length']-0x1];_0x431b88&&_0x431b88['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23c968['model']['change'](()=>{let _0x9c6d79=_0x23c968['model']['insertContent'](_0x4bf0ac[0x0],_0x4bf0ac[0x1],_0x4bf0ac[0x2],{'forceDefaultExecution':!0x0});if(!_0x9c6d79)return;_0x3743cb['return']=_0x9c6d79['clone']();const _0x495edd=_0x9c6d79['end']['nodeBefore'],_0x246f79=_0x23c968['model']['schema'];_0x495edd&&_0x246f79['isBlock'](_0x495edd)&&!_0x246f79['isObject'](_0x495edd)&&(_0x9c6d79=_0x23c968['model']['createRange'](_0x9c6d79['start'],_0x23c968['model']['createPositionAt'](_0x495edd,'end'))),this['markInsertion'](_0x9c6d79);}),_0x3743cb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c1dac=new $(_0x23c968,this['_suggestions']);_0x23c968['commands']['add']('acceptSuggestion',_0x4c1dac),this['enableCommand']('acceptSuggestion');const _0x42096a=new B(_0x23c968,this['_suggestions']);_0x23c968['commands']['add']('discardSuggestion',_0x42096a),this['enableCommand']('discardSuggestion'),_0x23c968['commands']['add']('acceptAllSuggestions',new x(_0x23c968,_0x4c1dac,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23c968['commands']['add']('discardAllSuggestions',new x(_0x23c968,_0x42096a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23c968['commands']['add']('acceptSelectedSuggestions',new R(_0x23c968,_0x4c1dac,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23c968['commands']['add']('discardSelectedSuggestions',new R(_0x23c968,_0x42096a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3c126d=_0x23c968['plugins']['get']('CommentsRepository');this['listenTo'](_0x3c126d,'addComment',(_0x11c681,{threadId:_0x2f6846})=>{const _0x34afec=this['_suggestions']['get'](_0x2f6846);_0x34afec&&_0x34afec['commentThread']&&0x1===_0x34afec['commentThread']['length']&&this['_updateSuggestionData'](_0x2f6846,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3c126d,'removeComment',(_0xfa231a,{threadId:_0x34288b})=>{const _0x382efd=this['_suggestions']['get'](_0x34288b);_0x382efd&&_0x382efd['commentThread']&&!_0x382efd['commentThread']['length']&&this['_updateSuggestionData'](_0x34288b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x21e3a4){if(this['_adapter'])throw new _0x4d0924('track-changes-adapter-already-set',this);this['_adapter']=_0x21e3a4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5a554a=!0x1,toJSON:_0xa7c046=!0x1}={}){const _0x3002b6=[];for(const _0x446e80 of this['_suggestions']['values']())_0x5a554a&&!_0x446e80['isInContent']||_0x3002b6['push'](_0x446e80);return _0xa7c046?_0x3002b6['map'](_0x26d558=>_0x26d558['toJSON']()):_0x3002b6;}['getSuggestion'](_0x1a1d5c){const _0x6e53c2=this['_suggestions']['get'](_0x1a1d5c);if(!_0x6e53c2)throw new _0x4d0924('track-changes-suggestion-not-found',this);return _0x6e53c2;}['hasSuggestion'](_0x1d051b){return this['_suggestions']['has'](_0x1d051b);}['addSuggestionData'](_0x58a51f){const {authorId:_0x4a29cf,id:_0x54a9fc,attributes:_0x404d44}=_0x58a51f,[_0x17c78c,_0x1883d2]=_0x58a51f['type']['split'](':'),_0xc7f171=this['_suggestions']['get'](_0x54a9fc)||this['_createSuggestion'](_0x17c78c,_0x1883d2,_0x54a9fc,_0x4a29cf,_0x404d44);if(this['_addThreadToSuggestion'](_0xc7f171),this['_checkSuggestionCorrectness'](_0xc7f171,_0x17c78c,_0x1883d2||null,_0x4a29cf),_0xc7f171['createdAt']=_0x58a51f['createdAt'],_0xc7f171['_isDataLoaded']=!0x0,_0x404d44&&_0x404d44['@external']){const _0xb7f499=_0x404d44['@external'],_0x195474=this['_getExternalAuthor'](_0xb7f499['authorName']);_0xc7f171['authoredAt']=_0xb7f499['createdAt'],_0xc7f171['author']=_0x195474,_0xc7f171['isExternal']=!0x0;}else _0xc7f171['authoredAt']=_0x58a51f['createdAt'];switch(_0x58a51f['data']&&(_0xc7f171['data']=_0x58a51f['data']),_0x58a51f['attributes']&&(_0xc7f171['attributes']=_0x58a51f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xc7f171['_saved']=!0x0),this['_suggestionState']['get'](_0xc7f171)){case'notReady':this['_suggestionState']['set'](_0xc7f171,'dataReady');break;case'markerReady':_0xc7f171['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xc7f171])),this['_refreshSuggestionsChain'](new Set([_0xc7f171])),this['_suggestionState']['set'](_0xc7f171,'ready'),this['fire']('suggestionLoaded',_0xc7f171)):this['_suggestionState']['set'](_0xc7f171,'removed');}return _0xc7f171;}['acceptSuggestion'](_0x135ae7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30e4b0 of _0x135ae7['getAllAdjacentSuggestions']())_0x30e4b0['accept']();});});}['discardSuggestion'](_0x53fbb3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ffc47 of _0x53fbb3['getAllAdjacentSuggestions']())_0x1ffc47['discard']();});});}['enableCommand'](_0xaa59a6,_0x234de1){const _0x4ce5a9=this['editor']['commands']['get'](_0xaa59a6);if(!_0x4ce5a9)throw new _0x4d0924('track-changes-command-not-found',this,{'commandName':_0xaa59a6});if(this['_enabledCommands']['has'](_0x4ce5a9))throw new _0x4d0924('track-changes-enable-command-twice',this,{'commandName':_0xaa59a6});this['_enabledCommands']['add'](_0x4ce5a9),_0x234de1&&_0x4ce5a9['on']('execute',(_0x2ea0ce,_0x2cc0d7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2cc0d7['length']>0x0&&_0x2cc0d7[_0x2cc0d7['length']-0x1]&&_0x2cc0d7[_0x2cc0d7['length']-0x1]['forceDefaultExecution']?_0x2cc0d7['pop']():(_0x2ea0ce['return']=_0x234de1((..._0x8f2aba)=>_0x4ce5a9['execute'](..._0x8f2aba,{'forceDefaultExecution':!0x0}),..._0x2cc0d7),_0x2ea0ce['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x43129b){let _0x5f73c6,_0x1249c6;const _0x34b759=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5f73c6=_0x43129b();}catch(_0xad6149){_0x1249c6=_0xad6149;}return _0x34b759||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1249c6&&_0x4d0924['rethrowUnexpectedError'](_0x1249c6,this),_0x5f73c6;}['markInsertion'](_0x286f17,_0x28f94c=null,_0x5d70c5={}){if(_0x286f17['isCollapsed'])return null;const _0x73b64c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x233d3e,meta:_0xb08b7}of this['_findSuggestions'](_0x286f17,'insertion'))if(_0xb08b7['isOwn']){if(!_0xb08b7['isNextTo']){if(_0xb08b7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x233d3e,_0x5d70c5))continue;return _0x233d3e;}if(Ht(_0x233d3e,_0x5d70c5))return _0x233d3e;this['_breakSuggestionMarker'](_0x233d3e,_0x286f17['start'],_0x286f17['end']);break;}if(_0x28f94c==_0x233d3e['subType']&&Ht(_0x233d3e,_0x5d70c5)){const _0x1bd26a=_0x233d3e['getFirstRange']();return _0x1bd26a['start']['isEqual'](_0x286f17['end'])?this['_setSuggestionRange'](_0x233d3e,this['_model']['createRange'](_0x286f17['start'],_0x1bd26a['end'])):this['_setSuggestionRange'](_0x233d3e,this['_model']['createRange'](_0x1bd26a['start'],_0x286f17['end'])),_0x233d3e;}}const _0xdac949=_0x5d1950(),_0x3edfc0=_0x73b64c['id'],_0x56cacf=_0x28f94c?'insertion:'+_0x28f94c:'insertion',_0x4ef22e=this['_setSuggestionData']({'id':_0xdac949,'type':_0x56cacf,'createdAt':new Date(),'authorId':_0x3edfc0,'attributes':_0x5d70c5});return this['_addSuggestionMarker'](_0x56cacf,_0xdac949,_0x3edfc0,_0x286f17),_0x4ef22e;}['markMultiRangeInsertion'](_0x420d57,_0x565c60='multi',_0x158bf8={}){const _0x1737a9=this['editor']['plugins']['get']('Users')['me'],_0x436943=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x565c60,'join');for(const _0x177b74 of this['getSuggestions']())if(_0x177b74['author']['id']==_0x1737a9['id']&&'insertion'==_0x177b74['type']&&_0x177b74['subType']==_0x565c60&&Ht(_0x177b74,_0x158bf8)&&(_0x436943(_0x177b74['getRanges'](),_0x420d57)||_0x436943(_0x420d57,_0x177b74['getRanges']()))){for(const _0xba7b5e of _0x420d57)_0x177b74['addRange'](_0xba7b5e);return _0x177b74;}for(const {suggestion:_0x14df99,meta:_0x297703}of this['_findSuggestions'](_0x420d57,'insertion')){if(!_0x297703['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x297703['containsRangeInObject'])continue;if(!Ht(_0x14df99,_0x158bf8))continue;let _0x51923d=!0x0;for(const _0x1dd042 of _0x14df99['getRanges']())for(const _0x5a3315 of _0x420d57)if(!_0x1dd042['containsRange'](_0x5a3315)){_0x51923d=!0x1;break;}if(_0x51923d)return _0x14df99;}const _0x1000ff=_0x5d1950(),_0x4c1b82=_0x1737a9['id'],_0x3c38c7='insertion:'+_0x565c60,_0x3f3ee2=this['_setSuggestionData']({'id':_0x1000ff,'type':_0x3c38c7,'createdAt':new Date(),'authorId':_0x4c1b82,'attributes':_0x158bf8});for(const _0x213084 of _0x420d57)this['_addSuggestionMarker'](_0x3c38c7,_0x1000ff,_0x4c1b82,_0x213084,u['getMultiRangeId']());return _0x3f3ee2;}['markInlineFormat'](_0xbb761f,_0x297019,_0x564032=null,_0x1cc895={}){if(_0x564032=_0x564032||Ut(_0x297019),_0xbb761f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x156573=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x564032,'accept');return this['forceDefaultExecution'](()=>_0x156573([_0xbb761f],_0x297019,_0x1cc895)),null;}const _0x5e31f9=this['editor']['plugins']['get']('Users')['me'],_0x588665=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5779d3,meta:_0x3ae80f}of this['_findSuggestions'](_0xbb761f,'insertion'))_0x3ae80f['isOwn']&&!_0x3ae80f['isInsideObject']&&_0x588665['push'](..._0x5779d3['getRanges']());}const _0x6850b5=function(_0x2b42a0,_0x1e45c7){const _0x4f4270=[];for(const _0x1ab453 of _0x1e45c7){const _0x3588cf=_0x2b42a0['getIntersection'](_0x1ab453);_0x3588cf&&_0x4f4270['push'](_0x3588cf);}return _0x4f4270;}(_0xbb761f,_0x588665),_0x304edb=function(_0x28685d,_0x19374c){const _0x1dbbb1=[_0x28685d];for(const _0x5b0f4b of _0x19374c){let _0x543dae=0x0;for(;_0x543dae<_0x1dbbb1['length'];){const _0x4a7da0=_0x1dbbb1[_0x543dae]['getDifference'](_0x5b0f4b);_0x1dbbb1['splice'](_0x543dae,0x1,..._0x4a7da0),_0x543dae+=_0x4a7da0['length'];}}return _0x1dbbb1;}(_0xbb761f,_0x588665);_0x6850b5['length']&&this['_model']['change'](()=>{for(const _0x47733e of _0x6850b5){const _0x35f10f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x564032,'accept');this['forceDefaultExecution'](()=>_0x35f10f([_0x47733e],_0x297019,_0x1cc895));}});for(const _0x1dac50 of _0x304edb){let _0x21c8a0=null,_0x192f49=_0x1dac50['start'],_0x7a9a99=_0x1dac50['end'];for(const {suggestion:_0x16407a,meta:_0x519686}of this['_findSuggestions'](_0x1dac50,'formatInline')){if(!_0x519686['isOwn'])continue;if(_0x16407a['subType']!=_0x564032)continue;if(!Ht(_0x16407a,_0x1cc895))continue;const _0x111f9b=_0x16407a['getFirstRange']();if(_0x111f9b['containsRange'](_0x1dac50,!0x0))return null;_0x192f49=_0x192f49['isBefore'](_0x111f9b['start'])?_0x192f49:_0x111f9b['start'],_0x7a9a99=_0x7a9a99['isAfter'](_0x111f9b['end'])?_0x7a9a99:_0x111f9b['end'],_0x21c8a0?_0x111f9b['start']['isBefore'](_0x21c8a0['getFirstRange']()['start'])?(_0x21c8a0['removeMarkers'](),_0x21c8a0=_0x16407a):_0x16407a['removeMarkers']():_0x21c8a0=_0x16407a;}const _0x2a8b52=this['_model']['createRange'](_0x192f49,_0x7a9a99);if(_0x21c8a0)this['_setSuggestionRange'](_0x21c8a0,_0x2a8b52);else{const _0x4973d4=_0x5d1950(),_0x1e00d2=_0x5e31f9['id'];this['_setSuggestionData']({'id':_0x4973d4,'type':'formatInline:'+_0x564032,'data':_0x297019,'createdAt':new Date(),'authorId':_0x1e00d2,'attributes':_0x1cc895}),this['_addSuggestionMarker']('formatInline:'+_0x564032,_0x4973d4,_0x1e00d2,_0x2a8b52);}}return null;}['markBlockFormat'](_0x2180e7,_0x24da4b,_0x5661d8=[],_0x4f2225=null,_0x39f134={}){_0x24da4b['formatGroupId']||(_0x24da4b['formatGroupId']=_0x24da4b['commandName']),_0x24da4b['multipleBlocks']=_0x2180e7['is']('range'),_0x4f2225=_0x4f2225||Ut(_0x24da4b);const _0x1282d2=_0x5661d8['map'](_0x18bfcc=>Ft(_0x18bfcc,this['_model'])),_0x55dbde=_0x2180e7['is']('range')?_0x2180e7:Ft(_0x2180e7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x530f0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2225,'accept');return this['forceDefaultExecution'](()=>_0x530f0b([_0x55dbde],_0x24da4b,_0x39f134)),null;}_0x1282d2['push'](_0x55dbde);let _0x85c301=!0x0;for(const _0x5adc2e of _0x1282d2)if(!this['_rangeIsInLocalUserInsertion'](_0x5adc2e)){_0x85c301=!0x1;break;}if(_0x85c301&&'always'!==this['_trackFormatChanges']){const _0x184310=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f2225,'accept');return this['forceDefaultExecution'](()=>_0x184310([_0x55dbde],_0x24da4b,_0x39f134)),null;}let _0x20d301=null,_0x346ecc=_0x55dbde['start'],_0x2d9bf3=_0x55dbde['end'];for(const {suggestion:_0x525a24,meta:_0x2ce337}of this['_findSuggestions'](_0x55dbde,'formatBlock')){if(!_0x2ce337['isOwn'])continue;if(_0x2ce337['isNextTo']||_0x2ce337['containsRangeInObject']||_0x2ce337['isInsideObject'])continue;if(_0x525a24['data']['formatGroupId']!=_0x24da4b['formatGroupId'])continue;if(!Ht(_0x525a24,_0x39f134))continue;const _0x1aab9d=_0x525a24['getFirstRange']();if(_0x525a24['subType']==_0x4f2225){if(_0x1aab9d['containsRange'](_0x55dbde,!0x0))return null;_0x346ecc=_0x346ecc['isBefore'](_0x1aab9d['start'])?_0x346ecc:_0x1aab9d['start'],_0x2d9bf3=_0x2d9bf3['isAfter'](_0x1aab9d['end'])?_0x2d9bf3:_0x1aab9d['end'],_0x20d301?_0x1aab9d['start']['isBefore'](_0x20d301['getFirstRange']()['start'])?(_0x20d301['removeMarkers'](),_0x20d301=_0x525a24):_0x525a24['removeMarkers']():_0x20d301=_0x525a24;}else{const _0x1c1265=_0x55dbde['getIntersection'](_0x1aab9d);this['_cutOutSuggestionMarker'](_0x525a24,_0x1c1265);}}const _0x3d3d97=this['editor']['plugins']['get']('Users')['me'],_0xc71ca1=_0x5d1950(),_0x245c5a=_0x3d3d97['id'];if(_0x20d301)return this['_setSuggestionRange'](_0x20d301,this['_model']['createRange'](_0x346ecc,_0x2d9bf3)),_0x20d301;{const _0x3d181a=this['_setSuggestionData']({'id':_0xc71ca1,'type':'formatBlock:'+_0x4f2225,'data':_0x24da4b,'createdAt':new Date(),'authorId':_0x245c5a,'attributes':_0x39f134});return this['_addSuggestionMarker']('formatBlock:'+_0x4f2225,_0xc71ca1,_0x245c5a,this['_model']['createRange'](_0x346ecc,_0x2d9bf3)),_0x3d181a;}}['markMultiRangeBlockFormat'](_0xbc98fe,_0x21ac4b,_0x1dde98=[],_0x445e19=null,_0x3484cb={}){_0x21ac4b['formatGroupId']||(_0x21ac4b['formatGroupId']=_0x21ac4b['commandName']);const _0x2e91f5=_0xbc98fe[0x0];_0x21ac4b['multipleBlocks']=_0x2e91f5['is']('range'),_0x445e19=_0x445e19||Ut(_0x21ac4b);const _0x3d081a=_0x1dde98['map'](_0x5a4603=>Ft(_0x5a4603,this['_model'])),_0x27d165=_0x2e91f5['is']('range')?_0xbc98fe:_0xbc98fe['map'](_0x389885=>Ft(_0x389885,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5ec9fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x445e19,'accept');return this['forceDefaultExecution'](()=>_0x5ec9fb(_0x27d165,_0x21ac4b,_0x3484cb)),null;}_0x3d081a['push'](..._0x27d165);let _0x1415b0=!0x0;for(const _0x821160 of _0x3d081a)if(!this['_rangeIsInLocalUserInsertion'](_0x821160)){_0x1415b0=!0x1;break;}if(_0x1415b0&&'always'!==this['_trackFormatChanges']){const _0x456b96=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x445e19,'accept');return this['forceDefaultExecution'](()=>_0x456b96(_0x27d165,_0x21ac4b,_0x3484cb)),null;}const _0xc366a0=this['editor']['plugins']['get']('Users')['me'];for(const _0x94fa7 of this['getSuggestions']()){if(_0x94fa7['author']['id']!=_0xc366a0['id'])continue;if('formatBlock'!=_0x94fa7['type']||_0x94fa7['data']['formatGroupId']!=_0x21ac4b['formatGroupId'])continue;if(!Ht(_0x94fa7,_0x3484cb))continue;const _0x26a730=_0x94fa7['subType']==_0x445e19;for(let _0x64f646=0x0;_0x64f646<_0x27d165['length'];_0x64f646++){const _0x446f8e=_0x27d165[_0x64f646];for(const _0x128dba of _0x94fa7['getMarkers']()){const _0xbc2d08=_0x128dba['getRange']();if(_0x446f8e['isEqual'](_0xbc2d08)){_0x26a730?(_0x27d165['splice'](_0x64f646,0x1),_0x64f646--):_0x94fa7['removeMarker'](_0x128dba['name']);break;}}}}if(0x0==_0x27d165['length'])return null;const _0x1f0520=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x445e19,'join');for(const _0x47e59e of this['getSuggestions']())if(_0x47e59e['author']['id']==_0xc366a0['id']&&'formatBlock'==_0x47e59e['type']&&_0x47e59e['data']['formatGroupId']==_0x21ac4b['formatGroupId']&&_0x47e59e['subType']==_0x445e19&&Ht(_0x47e59e,_0x3484cb)&&(_0x1f0520(_0x47e59e['getRanges'](),_0x27d165)||_0x1f0520(_0x27d165,_0x47e59e['getRanges']()))){for(const _0x49013d of _0x27d165)_0x47e59e['addRange'](_0x49013d);return _0x47e59e;}const _0x22d7ad=_0x5d1950(),_0x5dc54c=_0xc366a0['id'],_0x3bcad7='formatBlock:'+_0x445e19,_0x3d7197=this['_setSuggestionData']({'id':_0x22d7ad,'type':_0x3bcad7,'data':_0x21ac4b,'createdAt':new Date(),'authorId':_0x5dc54c,'attributes':_0x3484cb});for(const _0x306d3d of _0x27d165)this['_addSuggestionMarker'](_0x3bcad7,_0x22d7ad,_0x5dc54c,_0x306d3d,u['getMultiRangeId']());return _0x3d7197;}['markDeletion'](_0x396e64,_0xc98c52=null,_0x30aedf={}){if(_0x396e64['isCollapsed'])return null;const _0xc02223=this['editor']['plugins']['get']('Users')['me'],_0x1ae7fd=new _0x49277e(_0x396e64['start'],_0x396e64['end']);for(const {suggestion:_0x3f627f,meta:_0x27e6be}of this['_findSuggestions'](_0x1ae7fd,'insertion'))if(_0x27e6be['isOwn']&&!_0x27e6be['isNextTo']){if(_0x3f627f['isMultiRange']){const _0x4debaf=_0x3f627f['getRanges']()['filter'](_0x5c0b2a=>'$graveyard'!=_0x5c0b2a['root']['rootName']);_0x4debaf['every'](_0x3937b8=>_0x1ae7fd['containsRange'](_0x3937b8,!0x0))&&_0x3f627f['discard']();if(_0x4debaf['some'](_0x26c888=>_0x26c888['containsRange'](_0x1ae7fd,!0x0))){const _0x3474a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc98c52,'accept');return this['forceDefaultExecution'](()=>_0x3474a3([_0x1ae7fd],null,_0x30aedf)),null;}}else{const _0x25c83a=_0x1ae7fd['getIntersection'](_0x3f627f['getFirstRange']());null!==_0x25c83a&&_0x3f627f['_onDiscard']([_0x25c83a],null,_0x30aedf);}}if(_0x1ae7fd['detach'](),_0x1ae7fd['isCollapsed']||'$graveyard'==_0x1ae7fd['root']['rootName'])return null;let _0x34e56c=null,_0x1bff34=_0x1ae7fd['start'],_0xf9c901=_0x1ae7fd['end'];const _0xeadaac=this['_findSuggestions'](_0x1ae7fd,'deletion');for(const {suggestion:_0x5d06f5,meta:_0x127c10}of _0xeadaac){const _0x72121f=this['_model']['createRange'](_0x1bff34,_0xf9c901);if(_0x127c10['isOwn']&&(this['_mergeNestedSuggestions']||!_0x127c10['containsRangeInObject']&&!_0x127c10['isInsideObject'])){if(_0x5d06f5['isMultiRange']){if(!Ht(_0x5d06f5,_0x30aedf))continue;let _0x3485d6=!0x0;for(const _0x44934c of _0x5d06f5['getRanges']()){if(_0x44934c['containsRange'](_0x72121f,!0x0))return _0x5d06f5;_0x72121f['containsRange'](_0x44934c)||(_0x3485d6=!0x1);}_0x3485d6&&_0x5d06f5['discard']();}else{const _0x53a031=_0x5d06f5['getFirstRange']();if(_0x53a031['containsRange'](_0x72121f,!0x0))return _0x5d06f5;if(!Ht(_0x5d06f5,_0x30aedf)){_0x72121f['containsRange'](_0x53a031)?_0x5d06f5['removeMarkers']():_0x53a031['containsPosition'](_0x1bff34)?_0x1bff34=_0x53a031['end']:_0x53a031['containsPosition'](_0xf9c901)&&(_0xf9c901=_0x53a031['start']);continue;}_0x1bff34=_0x1bff34['isBefore'](_0x53a031['start'])?_0x1bff34:_0x53a031['start'],_0xf9c901=_0xf9c901['isAfter'](_0x53a031['end'])?_0xf9c901:_0x53a031['end'],_0x30aedf=Object['assign']({},_0x5d06f5['attributes']),_0x34e56c?_0x53a031['start']['isBefore'](_0x34e56c['getFirstRange']()['start'])?(_0x34e56c['removeMarkers'](),_0x34e56c=_0x5d06f5):_0x5d06f5['removeMarkers']():_0x34e56c=_0x5d06f5;}}}if(_0x34e56c)return this['_setSuggestionRange'](_0x34e56c,this['_model']['createRange'](_0x1bff34,_0xf9c901)),_0x34e56c;{const _0x9ef3db=_0x5d1950(),_0x4da1c7=this['_model']['createRange'](_0x1bff34,_0xf9c901),_0x4fda97=_0xc02223['id'],_0x2546ca=_0xc98c52?'deletion:'+_0xc98c52:'deletion',_0x3ebce3=this['_setSuggestionData']({'id':_0x9ef3db,'type':_0x2546ca,'createdAt':new Date(),'authorId':_0x4fda97,'attributes':_0x30aedf});return this['_addSuggestionMarker'](_0x2546ca,_0x9ef3db,_0x4fda97,_0x4da1c7),_0x3ebce3;}}['markMultiRangeDeletion'](_0x271b05,_0x3d1b97='multi',_0x140b06={}){const _0x73c7e8=this['editor']['plugins']['get']('Users')['me'],_0x52a515=_0x271b05['map'](_0x1bb7f3=>new _0x49277e(_0x1bb7f3['start'],_0x1bb7f3['end'])),_0x3ccda2=new Set();for(const {suggestion:_0x58b259,meta:_0x1faf6d}of this['_findSuggestions'](_0x52a515,'insertion'))_0x1faf6d['isOwn']&&!_0x1faf6d['isNextTo']&&_0x3ccda2['add'](_0x58b259);for(const _0x403a03 of _0x3ccda2)if(_0x403a03['isMultiRange']){const _0x4c2755=_0x403a03['getRanges']();(!_0x403a03['attributes']||!_0x403a03['attributes']['skipNestingCheck'])&&(_0x4c2755['every'](_0x394903=>_0x52a515['some'](_0x1aa92b=>_0x1aa92b['containsRange'](_0x394903,!0x0)))&&_0x403a03['discard']());if(_0x52a515['every'](_0x44f350=>_0x4c2755['some'](_0x438a22=>_0x438a22['containsRange'](_0x44f350,!0x0)))){const _0x3e7548=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d1b97,'accept');return this['forceDefaultExecution'](()=>_0x3e7548(_0x271b05,null,_0x140b06)),null;}}else{const _0x47852d=_0x403a03['getFirstRange']();_0x52a515['some'](_0x23e99c=>_0x23e99c['containsRange'](_0x47852d,!0x0))&&_0x403a03['discard']();if(_0x52a515['every'](_0x33ce9d=>_0x47852d['containsRange'](_0x33ce9d,!0x0))){const _0x1f5d2b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d1b97,'accept');return this['forceDefaultExecution'](()=>_0x1f5d2b(_0x52a515,null,_0x140b06)),null;}}const _0x3476fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d1b97,'join');let _0x212e01=null;for(const _0x38d94b of this['getSuggestions']())if(_0x38d94b['author']['id']==_0x73c7e8['id']&&_0x38d94b['isInContent']&&'deletion'==_0x38d94b['type']&&_0x38d94b['subType']==_0x3d1b97&&Ht(_0x38d94b,_0x140b06)&&(_0x3476fb(_0x38d94b['getRanges'](),_0x52a515)||_0x3476fb(_0x52a515,_0x38d94b['getRanges']()))){if(_0x212e01){if(_0x38d94b['commentThread']&&_0x38d94b['commentThread']['length'])continue;for(const _0x117d10 of _0x38d94b['getRanges']())_0x212e01['isIntersectingWithRange'](_0x117d10)||_0x212e01['addRange'](_0x117d10);_0x38d94b['removeMarkers']();}else{_0x212e01=_0x38d94b;for(const _0x2a3586 of _0x52a515)_0x38d94b['isIntersectingWithRange'](_0x2a3586)||_0x38d94b['addRange'](_0x2a3586);}}if(_0x212e01)return _0x212e01;_0x3ccda2['clear']();for(const {suggestion:_0x23f4b2,meta:_0x5256c5}of this['_findSuggestions'](_0x52a515,'deletion'))_0x5256c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5256c5['containsRangeInObject']&&!_0x5256c5['isInsideObject'])&&Ht(_0x23f4b2,_0x140b06)&&_0x3ccda2['add'](_0x23f4b2);for(const _0x3a5b87 of _0x3ccda2){const _0x44e3af=_0x3a5b87['getRanges']();if(!_0x140b06||!_0x140b06['skipNestingCheck']){if(_0x52a515['every'](_0x3a598f=>_0x44e3af['some'](_0x5f3c28=>_0x5f3c28['containsRange'](_0x3a598f,!0x0))))return _0x3a5b87;}(!_0x3a5b87['attributes']||!_0x3a5b87['attributes']['skipNestingCheck'])&&(_0x44e3af['every'](_0x3cfd4a=>_0x52a515['some'](_0x57e994=>_0x57e994['containsRange'](_0x3cfd4a,!0x0)))&&_0x3a5b87['discard']());}const _0x19c97c=_0x5d1950(),_0x221455=_0x73c7e8['id'],_0x1753c9='deletion:'+_0x3d1b97,_0x29866e=this['_setSuggestionData']({'id':_0x19c97c,'type':_0x1753c9,'createdAt':new Date(),'authorId':_0x221455,'attributes':_0x140b06});for(const _0x38299a of _0x52a515)_0x38299a['detach'](),_0x38299a['isCollapsed']||'$graveyard'==_0x38299a['root']['rootName']||this['_addSuggestionMarker'](_0x1753c9,_0x19c97c,_0x221455,_0x38299a,u['getMultiRangeId']());return _0x29866e;}['markAttributeChange'](_0x4dc659,_0x418feb,_0x4c007e,_0x4b6a50,_0x419b48){if(_0x4dc659['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c3895=this['editor']['plugins']['get']('Users')['me']['id'],_0x56ebd9=Array['from'](this['_suggestions']['values']())['filter'](_0xacc157=>'attribute'==_0xacc157['type']&&_0xacc157['data']['key']==_0x418feb&&_0xacc157['isIntersectingWithRange'](_0x4dc659));if('default'===this['_trackFormatChanges']){const _0x553f8d=this['_findSuggestions'](_0x4dc659,'insertion')['filter'](({meta:_0x17d3c0})=>_0x17d3c0['isOwn']&&!_0x17d3c0['isInsideObject']&&!_0x17d3c0['isNextTo'])['map'](({suggestion:_0xda37ea})=>_0xda37ea);_0x56ebd9['unshift'](..._0x553f8d);}const _0x49ac0d=new Map([[_0x4dc659,_0x4c007e]]);for(const _0x311056 of _0x56ebd9){const _0x1f5925='attribute'==_0x311056['type']?_0x311056['data']['oldValue']:void 0x0,_0x3da60c=_0x311056['getFirstRange'](),_0x56f70a=Array['from'](_0x49ac0d['keys']())['find'](_0x3f3031=>_0x3f3031['isIntersecting'](_0x3da60c));if(!_0x56f70a)continue;const _0x3c3e98=_0x56f70a['getDifference'](_0x3da60c);this['_isBlockAttribute'](_0x418feb)&&'insertion'==_0x311056['type']&&0x0!=_0x3c3e98['length']||(_0x49ac0d['delete'](_0x56f70a),_0x3c3e98['forEach'](_0x4e260b=>{_0x49ac0d['set'](_0x4e260b,_0x4c007e);}),'insertion'!=_0x311056['type']&&_0x1f5925!=_0x4b6a50&&_0x49ac0d['set'](_0x56f70a['getIntersection'](_0x3da60c),_0x1f5925));}const _0x1bf503=[];for(const [_0x488a00,_0x5cdd6f]of _0x49ac0d){const _0x3e814d=_0x5d1950(),_0x49c834={'key':_0x418feb,'oldValue':_0x5cdd6f,'newValue':_0x4b6a50};_0x418feb['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':_0x418feb});const _0x3832d6=('attribute:'+(_0x418feb+'|'+Ut({'newValue':_0x4b6a50})))['substring'](0x0,0x3c),_0x1ebf3e=this['_setSuggestionData']({'id':_0x3e814d,'type':_0x3832d6,'data':_0x49c834,'createdAt':new Date(),'authorId':_0x4c3895,'attributes':_0x419b48});_0x1bf503['push'](_0x1ebf3e),this['_addSuggestionMarker'](_0x3832d6,_0x3e814d,_0x4c3895,_0x488a00);}return _0x1bf503;}['enableDefaultAttributesIntegration'](_0x2f9df7){this['enableCommand'](_0x2f9df7,(_0x583663,..._0x53daea)=>{this['_recordAttributeChanges'](()=>{_0x583663(..._0x53daea);});});}['registerBlockAttribute'](_0x37bd2c){this['_blockAttributeKeys']['add'](_0x37bd2c);}['registerInlineAttribute'](_0x2f3b53){this['_inlineAttributeKeys']['add'](_0x2f3b53);}['_getAttributeKey'](_0x45b7d6){return'attribute'==_0x45b7d6['type']?_0x45b7d6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4b28b5,_0x30d6d5){const _0x3da3be=_0x4b28b5['getFirstMarker']();this['_model']['change'](_0x1b3867=>{_0x1b3867['updateMarker'](_0x3da3be,{'range':_0x30d6d5});});}['_addThreadToSuggestion'](_0x34ad62){const _0x49b2ef=_0x34ad62['id'],_0x4760d0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x49b2ef)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4760d0,'threadId':_0x49b2ef,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x537dfb=this['_commentsRepository']['getCommentThread'](_0x49b2ef);_0x537dfb['unbind']('isRemovable'),_0x537dfb['isRemovable']=!0x1,_0x34ad62['commentThread']=_0x537dfb;}['_checkSuggestionCorrectness'](_0x39daf0,_0x51696e,_0x16b819,_0x74122f){if(_0x39daf0['type']!=_0x51696e||_0x39daf0['subType']!=_0x16b819||_0x39daf0['creator']['id']!=_0x74122f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4d0924('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3eb81d,_0x4b0c02){const _0x625363=_0x3eb81d['getFirstRange']();if(_0x4b0c02['isEqual'](_0x625363))_0x3eb81d['removeMarkers']();else{if(_0x625363['containsRange'](_0x4b0c02)){const _0x58633e=this['_model']['createPositionAt'](_0x4b0c02['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3eb81d,this['_model']['createRange'](_0x625363['start'],_0x58633e));const _0x293d13=_0x5d1950(),_0x4cd5c2=_0x3eb81d['creator']['id'],_0x5201ad=_0x3eb81d['type']+':'+_0x3eb81d['subType'];this['_setSuggestionData']({'id':_0x293d13,'type':_0x5201ad,'createdAt':new Date(),'authorId':_0x4cd5c2,'data':_0x3eb81d['data'],'attributes':_0x3eb81d['attributes']});const _0x44d3e7=this['_model']['createPositionAt'](_0x4b0c02['end']['parent'],'after'),_0x3544f2=this['_model']['createRange'](_0x44d3e7,_0x625363['end']);this['_addSuggestionMarker'](_0x5201ad,_0x293d13,_0x4cd5c2,_0x3544f2);}else{if(_0x625363['containsPosition'](_0x4b0c02['start'])){const _0x4d6963=this['_model']['createPositionAt'](_0x4b0c02['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3eb81d,this['_model']['createRange'](_0x625363['start'],_0x4d6963));}else{const _0x3872da=this['_model']['createPositionAt'](_0x4b0c02['end']['parent'],'after');this['_setSuggestionRange'](_0x3eb81d,this['_model']['createRange'](_0x3872da,_0x625363['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4d2a12){for(const {suggestion:_0x1b23f8,meta:_0x1bfe74}of this['_findSuggestions'](_0x4d2a12,'insertion')){if(!_0x1bfe74['isOwn'])continue;const _0x29288b=_0x1b23f8['getRanges']();for(const _0x247093 of _0x29288b)if(!_0x4d2a12['getDifference'](_0x247093)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x297bfa){const _0x1f0e80=this['editor']['plugins']['get']('Users')['getUser'](_0x297bfa);if(!_0x1f0e80)throw new _0x4d0924('track-changes-user-not-found',this);return _0x1f0e80;}['_getExternalAuthor'](_0x162bfb){const _0x92c3fc=this['editor']['plugins']['get']('Users'),_0x23e1cb=_0x45301d('external:'+_0x162bfb),_0x5e8473=_0x92c3fc['getUser'](_0x23e1cb);return _0x5e8473||_0x92c3fc['addUser']({'id':_0x23e1cb,'name':_0x162bfb});}['_createSuggestion'](_0x891193,_0x38d6fd,_0x387af6,_0x451f50,_0x2daadd){const _0x294ec2=this['_getAuthorFromId'](_0x451f50),_0x3120cf=this['_suggestionFactory']['buildSuggestion'](_0x891193,_0x38d6fd,_0x387af6,_0x294ec2,_0x2daadd,_0x32f6fc=>{this['_updateSuggestionData'](_0x387af6,{'attributes':_0x32f6fc});const _0x53140b=this['getSuggestion'](_0x387af6);this['_joinWithAdjacentSuggestions'](new Set([_0x53140b])),this['_refreshSuggestionsChain'](new Set([_0x53140b]));});return this['listenTo'](_0x3120cf,'accept',()=>{this['_updateSuggestionData'](_0x387af6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3120cf,'discard',()=>{this['_updateSuggestionData'](_0x387af6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x387af6,_0x3120cf),this['_suggestionState']['set'](_0x3120cf,'notReady'),_0x3120cf;}['_splitMarkerName'](_0x1211c3){const _0x57f25e=_0x1211c3['split'](':');return{'group':_0x57f25e[0x0],'type':_0x57f25e[0x1],'subType':_0x57f25e['length']>=0x5?_0x57f25e[0x2]:null,'id':_0x57f25e['length']<0x5?_0x57f25e[0x2]:_0x57f25e[0x3],'authorId':_0x57f25e['length']<0x5?_0x57f25e[0x3]:_0x57f25e[0x4],'markerCount':0x6==_0x57f25e['length']?_0x57f25e[0x5]:null};}['_breakSuggestionMarker'](_0x77133,_0x27453c,_0x37da50){const _0x5b376b=_0x77133['getFirstRange'](),_0x408110=_0x5b376b['start'],_0x2d52b4=_0x5b376b['end'];this['_setSuggestionRange'](_0x77133,this['_model']['createRange'](_0x408110,_0x27453c));const _0x396ade=_0x5d1950(),_0x228f99=_0x77133['creator']['id'],_0x51b4a9=_0x77133['type']+(_0x77133['subType']?':'+_0x77133['subType']:'');this['_setSuggestionData']({'id':_0x396ade,'type':_0x51b4a9,'createdAt':new Date(),'authorId':_0x228f99,'originalSuggestionId':_0x77133['id'],'attributes':_0x77133['attributes'],'data':_0x77133['data']});const _0x2009d6=this['_getAttributeKey'](_0x77133);('formatBlock'==_0x77133['type']||_0x2009d6&&this['_isBlockAttribute'](_0x2009d6))&&(_0x37da50=this['_model']['createPositionBefore'](_0x37da50['parent'])),this['_addSuggestionMarker'](_0x51b4a9,_0x396ade,_0x228f99,this['_model']['createRange'](_0x37da50,_0x2d52b4));}['_findSuggestions'](_0x348dfd,_0x29a703=null){const _0x12a45f=[],_0x15742d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x348dfd)||(_0x348dfd=[_0x348dfd]);for(const _0x5e2eb7 of this['getSuggestions']()){if(!_0x5e2eb7['isInContent'])continue;if(_0x29a703&&_0x5e2eb7['type']!=_0x29a703)continue;let _0x34b59c=!0x1;for(const _0x4964bb of _0x5e2eb7['getRanges']()){for(const _0x52e7d3 of _0x348dfd){const _0x10a0d3=_0x52e7d3['start']['isEqual'](_0x4964bb['end'])||_0x52e7d3['end']['isEqual'](_0x4964bb['start']);if(_0x10a0d3||_0x52e7d3['getIntersection'](_0x4964bb)){const _0x351203=_0x52e7d3['containsRange'](_0x4964bb)&&Tt(this['_model']['schema'],_0x4964bb['start'],_0x52e7d3),_0x1a2298=_0x4964bb['containsRange'](_0x52e7d3)&&Tt(this['_model']['schema'],_0x52e7d3['start'],_0x4964bb);_0x12a45f['push']({'suggestion':_0x5e2eb7,'meta':{'isOwn':_0x15742d==_0x5e2eb7['author'],'isNextTo':_0x10a0d3,'isInsideObject':_0x351203,'containsRangeInObject':_0x1a2298}}),_0x34b59c=!0x0;break;}}if(_0x34b59c)break;}}return _0x12a45f;}['_addSuggestionMarker'](_0x428e2a,_0x24b2e3,_0xca5bfe,_0x3bd111,_0x492d24){this['_model']['change'](_0x430d84=>{let _0x242db0='suggestion:'+_0x428e2a+':'+_0x24b2e3+':'+_0xca5bfe;_0x492d24&&(_0x242db0=_0x242db0+':'+_0x492d24),_0x430d84['addMarker'](_0x242db0,{'range':_0x3bd111,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xdfe474){const _0x10439c=_0xdfe474['previous'],_0x28263a=_0xdfe474['next'];_0xdfe474['previous']=null,_0xdfe474['next']=null,null!=_0x10439c&&_0x10439c['next']==_0xdfe474&&(_0x10439c['next']=_0x28263a),null!=_0x28263a&&_0x28263a['previous']==_0xdfe474&&(_0x28263a['previous']=_0x10439c),'ready'==this['_suggestionState']['get'](_0xdfe474)&&(this['_suggestionState']['set'](_0xdfe474,'removed'),this['fire']('suggestionUnloaded',_0xdfe474,_0x10439c,_0x28263a));}['_setSuggestionData'](_0x282e01){const _0x56aa55=_0x282e01['id'],_0x316518=this['addSuggestionData'](_0x282e01);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xcd3d43=this['editor']['plugins']['get']('PendingActions'),_0x34d180=_0x316518['hasComments'],_0x7bd722=_0x316518['subType']?_0x316518['type']+':'+_0x316518['subType']:_0x316518['type'],_0x420628=this['editor']['locale'],_0x10532a=_0xcd3d43['add'](o(_0x420628,'PENDING_ACTION_SUGGESTION')),_0x3d709a={'id':_0x56aa55,'type':_0x7bd722,'hasComments':_0x34d180,'data':_0x282e01['data']||null,'originalSuggestionId':_0x282e01['originalSuggestionId']||null,'attributes':_0x316518['attributes']};this['_adapter']['addSuggestion'](_0x3d709a)['then'](_0x3dd3a9=>{_0x316518['_saved']=!0x0,_0xcd3d43['remove'](_0x10532a),_0x3dd3a9&&_0x3dd3a9['createdAt']&&(this['_suggestions']['get'](_0x56aa55)['createdAt']=_0x3dd3a9['createdAt']);})['catch'](_0x5aecaf=>{throw _0x28c92d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x316518['discard']();}),_0x316518['stopListening'](),this['_suggestions']['delete'](_0x316518['id']),this['_suggestionState']['delete'](_0x316518),_0x5aecaf;});}return _0x316518;}['_isBlockAttribute'](_0x46c88a){return this['_blockAttributeKeys']['has'](_0x46c88a);}['_updateSuggestionData'](_0x1218de,_0x14a51b){const _0x32df63=this['editor']['plugins']['get']('PendingActions'),_0x1bef88=this['getSuggestion'](_0x1218de);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1bef88['_saved']){const _0x4873f6=_0x32df63['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1218de,_0x14a51b)['then'](()=>{_0x32df63['remove'](_0x4873f6);});}else _0x1bef88['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1218de,_0x14a51b);});}}['_getSuggestionData'](_0x3a6298){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4d0924('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a6298);}['_handleNewSuggestionMarker'](_0x304923){const {id:_0x4abeee,type:_0x304655,subType:_0x2e1ae5,authorId:_0x2a9f6a}=this['_splitMarkerName'](_0x304923),_0x75996b=this['_suggestions']['get'](_0x4abeee)||this['_createSuggestion'](_0x304655,_0x2e1ae5,_0x4abeee,_0x2a9f6a,{});switch(this['_checkSuggestionCorrectness'](_0x75996b,_0x304655,_0x2e1ae5,_0x2a9f6a),this['_suggestionState']['get'](_0x75996b)){case'notReady':this['_getSuggestionData'](_0x4abeee)['then'](_0x366e98=>{let _0x1541c2=Promise['resolve']();_0x366e98['hasComments']&&(_0x1541c2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4abeee})),_0x1541c2['then'](()=>{this['addSuggestionData'](_0x366e98)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x75996b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4abeee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x75996b,'ready'),this['fire']('suggestionLoaded',_0x75996b);break;case'ready':this['fire']('suggestionChanged',_0x75996b);}return _0x75996b['addMarkerName'](_0x304923),_0x75996b;}['_refreshSuggestionsChain'](_0x141f86){const _0x209e4e=Array['from'](_0x141f86),_0x8d8833=_0x209e4e['filter'](_0xf1ea2e=>'attribute'==_0xf1ea2e['type']);this['_refreshAttributeSuggestionsChain'](_0x8d8833);const _0x377d62=_0x209e4e['filter'](_0x44a319=>!_0x44a319['isMultiRange']&&'attribute'!=_0x44a319['type']),_0xa36b34=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f356e=>!_0x2f356e['isMultiRange']&&'attribute'!=_0x2f356e['type']),_0x3f9ee7=_0xa36b34['filter'](_0x3e523e=>!_0x141f86['has'](_0x3e523e)),_0x3455a7=new Map(_0xa36b34['map'](_0x24f546=>[_0x24f546,this['_suggestionFactory']['getSuggestionCallback'](_0x24f546['type'],_0x24f546['subType'],'chain')])),_0x2668ed=new Map(_0xa36b34['map'](_0x52db98=>[_0x52db98,_0x52db98['getFirstRange']()])),_0x2768b4=new Set(),_0x238e16=new Set();for(let _0x25f970=0x0;_0x25f970<_0x377d62['length'];_0x25f970++)_0x177f95(_0x377d62[_0x25f970],_0x377d62,_0x25f970+0x1);for(let _0x1e9229=0x0;_0x1e9229<_0x377d62['length'];_0x1e9229++)_0x177f95(_0x377d62[_0x1e9229],_0x3f9ee7,0x0);const _0xe58daa=new Set();for(let _0x34664b=0x0;_0x34664b<_0x377d62['length'];_0x34664b++){const _0x4c176c=_0x377d62[_0x34664b];!_0x238e16['has'](_0x4c176c)&&_0x4c176c['previous']&&(_0xe58daa['add'](_0x4c176c['previous']),_0x4c176c['previous']['next']===_0x4c176c&&(_0x4c176c['previous']['next']=null),_0x4c176c['previous']=null),!_0x2768b4['has'](_0x4c176c)&&_0x4c176c['next']&&(_0xe58daa['add'](_0x4c176c['next']),_0x4c176c['next']['previous']===_0x4c176c&&(_0x4c176c['next']['previous']=null),_0x4c176c['next']=null);}function _0x177f95(_0x2a2d6d,_0x31de83,_0x5c9fbb){for(let _0x2544c5=_0x5c9fbb;_0x2544c5<_0x31de83['length'];_0x2544c5++){const _0x92854e=_0x3d34c2(_0x2a2d6d,_0x31de83[_0x2544c5]);_0x92854e&&(_0x92854e[0x0]['next']=_0x92854e[0x1],_0x92854e[0x1]['previous']=_0x92854e[0x0],_0x2768b4['add'](_0x92854e[0x0]),_0x238e16['add'](_0x92854e[0x1]));}}function _0x3d34c2(_0xa0dbe3,_0x22a828){if(_0xa0dbe3['author']['id']!==_0x22a828['author']['id'])return null;const _0x1fbff1=_0x3455a7['get'](_0xa0dbe3)(_0xa0dbe3,_0x22a828,_0x2668ed['get'](_0xa0dbe3),_0x2668ed['get'](_0x22a828));if(!_0x1fbff1)return null;return _0x3455a7['get'](_0x22a828)(_0xa0dbe3,_0x22a828,_0x2668ed['get'](_0xa0dbe3),_0x2668ed['get'](_0x22a828))?_0x1fbff1[0x1]['commentThread']&&_0x1fbff1[0x1]['commentThread']['length']?null:_0x1fbff1:null;}_0xe58daa['size']&&this['_refreshSuggestionsChain'](_0xe58daa);}['_refreshAttributeSuggestionsChain'](_0x35e0e1){if(0x0==_0x35e0e1['length'])return;const _0x119557=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8440=>'attribute'==_0x3d8440['type']&&_0x3d8440['_isDataLoaded']),_0x11ea74=[],_0x327c2a=new Map();for(const _0x324230 of _0x119557){const _0x83ddfe=_0x45301d(_0x324230['attributes']);_0x327c2a['has'](_0x83ddfe)||(_0x327c2a['set'](_0x83ddfe,_0x11ea74['length']),_0x11ea74['push']([]));const _0x15478=_0x327c2a['get'](_0x83ddfe);_0x11ea74[_0x15478]['push'](_0x324230);}!(function(){_0x11ea74['sort']((_0x18f2d2,_0x643127)=>{const _0x1d871a=_0x18f2d2[0x0]['createdAt'],_0x55dae8=_0x643127[0x0]['createdAt'];return _0x1d871a==_0x55dae8?_0x18f2d2[0x0]['attributes']['groupId']<_0x643127[0x0]['attributes']['groupId']?-0x1:0x1:_0x1d871a<_0x55dae8?-0x1:0x1;});for(const _0x51a2f2 of _0x11ea74)_0x51a2f2['sort']((_0x346b99,_0x40860d)=>_0x346b99['id']<_0x40860d['id']?-0x1:0x1);}());for(let _0x1bf82a=0x0;_0x1bf82a<_0x11ea74['length'];_0x1bf82a++){if(0x0==_0x11ea74[_0x1bf82a]['length'])continue;const _0x4764ed=[];for(let _0x5c7e91=_0x1bf82a+0x1;_0x5c7e91<_0x11ea74['length'];_0x5c7e91++)0x0!=_0x11ea74[_0x5c7e91]['length']&&_0x38134d(_0x11ea74[_0x1bf82a],_0x11ea74[_0x5c7e91])&&_0x4764ed['push'](_0x5c7e91);for(const _0x1e23f8 of _0x4764ed)_0x11ea74[_0x1bf82a]=_0x11ea74[_0x1bf82a]['concat'](_0x11ea74[_0x1e23f8]),_0x11ea74[_0x1e23f8]=[];}for(const _0x14c56e of _0x11ea74)for(let _0x89c9ce=0x0;_0x89c9ce<_0x14c56e['length'];_0x89c9ce++)_0x14c56e[_0x89c9ce]['next']=_0x14c56e[_0x89c9ce+0x1]||null;for(const _0x4002ce of _0x11ea74)for(let _0x2dd4ba=0x0;_0x2dd4ba<_0x4002ce['length'];_0x2dd4ba++)_0x4002ce[_0x2dd4ba]['previous']=_0x4002ce[_0x2dd4ba-0x1]||null;function _0x38134d(_0x35cbd0,_0x251fbf){if(_0x35cbd0[0x0]['attributes']['groupId']!==_0x251fbf[0x0]['attributes']['groupId']&&_0x35cbd0[0x0]['author']!==_0x251fbf[0x0]['author'])return!0x1;if(!function(_0x2020a8,_0x53b7a4){if(!_0x2020a8['hasComments']&&!_0x53b7a4['hasComments'])return!0x0;if(_0x2020a8['hasComments']&&_0x53b7a4['hasComments'])return!0x1;if(_0x2020a8['hasComments']&&_0x53b7a4['createdAt']<_0x2020a8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x53b7a4['hasComments']&&_0x2020a8['createdAt']<_0x53b7a4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x35cbd0[0x0],_0x251fbf[0x0]))return!0x1;const _0x3d2430=xt(_0x35cbd0[0x0]['attributes'],'groupId'),_0xf6d0ea=xt(_0x251fbf[0x0]['attributes'],'groupId');if(!_0x4390ae(_0x3d2430,_0xf6d0ea))return!0x1;return!!_0x35cbd0['every'](_0x185656=>_0x251fbf['some'](_0x718c54=>_0x185656['getFirstRange']()['isEqual'](_0x718c54['getFirstRange']())))&&_0x251fbf['every'](_0x35fb29=>_0x35cbd0['some'](_0x253d2c=>_0x35fb29['getFirstRange']()['isEqual'](_0x253d2c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x475732){const _0x42ba55=Array['from'](_0x475732),_0x5382dd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x37626c=_0x5382dd['filter'](_0x30f0f3=>!_0x475732['has'](_0x30f0f3)),_0x45a41c=new Map(_0x42ba55['map'](_0x201b25=>[_0x201b25,this['_suggestionFactory']['getSuggestionCallback'](_0x201b25['type'],_0x201b25['subType'],'join')])),_0x591674=new Map(_0x5382dd['map'](_0x1d7d49=>[_0x1d7d49,_0x1d7d49['getRanges']()]));for(let _0x316a63=0x0;_0x316a63<_0x42ba55['length'];_0x316a63++){if(_0x52de65(this,_0x42ba55[_0x316a63],_0x42ba55,_0x316a63+0x1))return!0x0;}for(let _0x38d4c2=0x0;_0x38d4c2<_0x42ba55['length'];_0x38d4c2++){if(_0x52de65(this,_0x42ba55[_0x38d4c2],_0x37626c,0x0))return!0x0;}return!0x1;function _0x52de65(_0x23b5e7,_0x527243,_0x27ea3f,_0x1c8135){for(let _0xbb1497=_0x1c8135;_0xbb1497<_0x27ea3f['length'];_0xbb1497++){const _0xf14ac8=_0x27ea3f[_0xbb1497];if(_0xf14ac8['type']!==_0x527243['type']||_0xf14ac8['author']['id']!==_0x527243['author']['id']||_0xf14ac8['subType']!==_0x527243['subType'])continue;if(!Lt(_0x527243,_0xf14ac8,['groupId']))continue;if('attribute'==_0x527243['type']&&_0x527243['data']['oldValue']!=_0xf14ac8['data']['oldValue'])continue;if('attribute'==_0x527243['type']&&_0x23b5e7['_isBlockAttribute'](_0x527243['data']['key']))continue;if('formatBlock'==_0x527243['type']){const _0x1ef0c7=_0x23b5e7['editor']['model'],_0x53003f=_0x527243['getContainedElement']();if(_0x53003f&&(_0x1ef0c7['schema']['isObject'](_0x53003f)||_0x1ef0c7['schema']['isLimit'](_0x53003f)))continue;}const _0x37daac=_0x45a41c['get'](_0x527243),_0x5cdba1=_0x591674['get'](_0x527243),_0x475a75=_0x591674['get'](_0xf14ac8),_0x5dd265=_0x527243['commentThread']&&_0x527243['commentThread']['length'],_0x5f3e27=_0xf14ac8['commentThread']&&_0xf14ac8['commentThread']['length'];if(!_0x5dd265&&_0x37daac(_0x475a75,_0x5cdba1))return _0x23b5e7['_joinSuggestions'](_0xf14ac8,_0x527243),_0x591674['delete'](_0x527243),!0x0;if(!_0x5f3e27&&_0x37daac(_0x5cdba1,_0x475a75))return _0x23b5e7['_joinSuggestions'](_0x527243,_0xf14ac8),_0x591674['delete'](_0xf14ac8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x56477a,_0x4ee0c2){if(_0x56477a['isMultiRange']){for(const _0x4bce5a of _0x4ee0c2['getRanges']())_0x56477a['addRange'](_0x4bce5a);}else{const _0x23da03=_0x4ee0c2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x56477a,this['_model']['createRange'](_0x56477a['getFirstRange']()['start'],_0x23da03));}_0x4ee0c2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27524a,_0xc5e468){const _0x1c105c=_0x27524a['startsWith']('format')||_0x27524a['startsWith']('attribute')?'FORMATTING':_0x27524a['toUpperCase']();return o(this['editor']['locale'],_0xc5e468+'_'+_0x1c105c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4d6723=this['editor'];if(!_0x4d6723['ui'])return;const {ariaLiveAnnouncer:_0x4f6876}=_0x4d6723['ui'];_0x128997(this['_model'],({left:_0x8cdcd9,entered:_0x26c1e8})=>{for(const _0x3731f6 of _0x8cdcd9){const {group:_0x357cac,type:_0x2a2cd8}=this['_splitMarkerName'](_0x3731f6['name']);if('suggestion'===_0x357cac){_0x4f6876['announce'](this['_getMarkerAnnouncementText'](_0x2a2cd8,'LEAVE'));break;}}for(const _0x1d62cf of _0x26c1e8){const {group:_0x289c7,type:_0x5996ba}=this['_splitMarkerName'](_0x1d62cf['name']);if('suggestion'===_0x289c7){_0x4f6876['announce'](this['_getMarkerAnnouncementText'](_0x5996ba,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1abd83){if(this['_recordAttributeSuggestions'])return!0x1;const _0x28ef25=this['editor'],_0x1074bb=_0x28ef25['model']['document']['differ']['getChanges']();if(0x0==_0x1074bb['length'])return!0x1;const _0x24679a=[],_0xe4a1cb=_0x1074bb['filter'](_0x3a022c=>'attribute'==_0x3a022c['type']),_0x4f8509=_0x1074bb['filter'](_0x5ad26d=>'insert'==_0x5ad26d['type']&&'$text'!=_0x5ad26d['name']),_0x5c1d41=_0x1074bb['filter'](_0x534ae0=>'remove'==_0x534ae0['type']&&'$text'!=_0x534ae0['name']);for(const _0x12cb2a of _0xe4a1cb)_0x24679a['push']({'key':_0x12cb2a['attributeKey'],'newValue':_0x12cb2a['attributeNewValue'],'oldValue':_0x12cb2a['attributeOldValue'],'range':Gt(_0x12cb2a['range'],_0x28ef25['model'])});for(const _0x150154 of _0x4f8509){const _0x29f8ef=_0x5c1d41['find'](_0x1e4ab2=>_0x1e4ab2['position']['isEqual'](_0x150154['position']));_0x29f8ef&&_0x24679a['push']({'key':m,'newValue':_0x150154['name'],'oldValue':_0x29f8ef['name'],'range':_0x28ef25['model']['createRangeOn'](_0x150154['position']['nodeAfter'])});}return 0x0!=_0x24679a['length']&&this['_reduceExistingSuggestions'](_0x1abd83,_0x24679a);}['_processAttributeSuggestions'](_0x24885b){let _0x39f3ef=!0x1;const _0x114555=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b7db0=>_0x1b7db0['data']['newRange']&&_0x1b7db0['name']['startsWith']('suggestion:attribute:'));for(const _0x35891d of _0x114555){const {subType:_0x6547a4,id:_0x1ff401}=this['_splitMarkerName'](_0x35891d['name']),_0x533d21=_0x6547a4['split']('|')[0x0];for(const _0x22206a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x22206a['id']!=_0x1ff401&&'attribute'==_0x22206a['type']&&_0x22206a['data']&&_0x22206a['data']['key']==_0x533d21&&_0x22206a['getFirstRange']()['isIntersecting'](_0x35891d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x22206a,_0x35891d['data']['newRange'],_0x24885b),_0x39f3ef=!0x0);}return _0x39f3ef;}['_recordAttributeChanges'](_0x473078){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x473078();}['_isRegisteredAttribute'](_0x28cc8){const _0x1ebe70=this['_isBlockAttribute'](_0x28cc8),_0x133dd7=this['_inlineAttributeKeys']['has'](_0x28cc8);return _0x1ebe70||_0x133dd7;}['_reduceExistingSuggestions'](_0x3a25b9,_0x393f8f){if(0x0==_0x393f8f['length'])return!0x1;let _0x27b164=!0x1;for(const _0x9f126e of _0x393f8f){const _0x55a2c7=this['_findSuggestions'](_0x9f126e['range'],'attribute')['filter'](_0x2389b1=>!_0x2389b1['meta']['isNextTo'])['map'](_0xec3399=>_0xec3399['suggestion']),_0x3b0560=_0x45301d({'newValue':_0x9f126e['newValue']});_0x55a2c7['filter'](_0x5633d8=>{const [_0x317d98,_0xb2aac1]=_0x5633d8['subType']['split']('|');return _0x317d98==_0x9f126e['key']&&_0xb2aac1!=_0x3b0560;})['forEach'](_0x283d8d=>{this['_reduceSuggestionAttributeRange'](_0x283d8d,_0x9f126e['range'],_0x3a25b9),_0x27b164=!0x0;});}return _0x27b164;}['_reduceSuggestionAttributeRange'](_0x284da0,_0xb0f627,_0x494904){const _0x3b4376=_0x284da0['getFirstRange']()['getDifference'](_0xb0f627);0x0!==_0x3b4376['length']?0x1!==_0x3b4376['length']?this['_breakSuggestionMarker'](_0x284da0,_0xb0f627['start'],_0xb0f627['end']):this['_setSuggestionRange'](_0x284da0,_0x3b4376[0x0]):_0x494904['removeMarker'](_0x284da0['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x233775){this['_editor']=_0x233775,this['_model']=_0x233775['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x45089e,_0x348232,_0x1334b3,_0x5eade9,_0x30ef5c,_0x39cdb1){return new u(this['_model'],{'type':_0x45089e,'subType':_0x348232,'id':_0x1334b3,'author':_0x5eade9,'creator':_0x5eade9,'attributes':_0x30ef5c,'onAttributesChange':_0x39cdb1,'onAccept':(..._0x179ce7)=>this['getSuggestionCallback'](_0x45089e,_0x348232,'accept')(..._0x179ce7),'onDiscard':(..._0x549894)=>this['getSuggestionCallback'](_0x45089e,_0x348232,'discard')(..._0x549894)});}['registerCustomCallback'](_0x106b9f,_0xee63d8,_0x5c2748,_0x5ba6df){const _0x1fac5e=_0x106b9f+':'+_0xee63d8+':'+_0x5c2748;this['_customCallbacks']['set'](_0x1fac5e,_0x5ba6df);}['getSuggestionCallback'](_0x340631,_0x23b872,_0x58e561){const _0x55aa00=_0x340631+':'+_0x23b872+':'+_0x58e561;return this['_customCallbacks']['get'](_0x55aa00)||this['_defaultCallbacks']['get'](_0x340631+':'+_0x58e561);}['_registerDefaultCallbacks'](){const _0x4a57ed=()=>!0x1,_0x3a760b=_0x48936f=>{_0x48936f['sort']((_0x16ed12,_0x22b82f)=>_0x16ed12['start']['isBefore'](_0x22b82f['start'])?0x1:-0x1),this['_model']['change'](_0x53b0e5=>{for(const _0x544cb4 of _0x48936f){let _0x201ba8;_0x201ba8=_0x544cb4['end']['isAtEnd']&&_0x544cb4['end']['parent']==_0x544cb4['start']['nodeAfter']?_0x53b0e5['createSelection'](_0x544cb4['start']['nodeAfter'],'on'):_0x53b0e5['createSelection'](_0x544cb4),this['_model']['deleteContent'](_0x201ba8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ea77c=(_0x2471a9,_0x2c95b1)=>{_0x2c95b1&&this['_model']['change'](_0x2ae199=>{const {commandName:_0x195c7a,commandParams:_0x564dfa=[]}=_0x2c95b1,_0x1331ef=_0x2471a9['map'](_0x1936e3=>(Et(_0x1936e3)&&(_0x1936e3=this['_model']['createRange'](_0x1936e3['end'])),_0x1936e3))['filter'](_0x53d7f6=>'$graveyard'!==_0x53d7f6['root']['rootName']);if(_0x1331ef['length']<0x1)return;const _0x227ea9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x7c2142=>_0x49277e['fromRange'](_0x7c2142));_0x2ae199['setSelection'](_0x1331ef);for(const _0x23d164 of this['_editor']['commands']['commands']())_0x23d164['refresh']();_0x564dfa['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x195c7a,..._0x564dfa);const _0x8172aa=_0x227ea9['filter'](_0x396a01=>'$graveyard'!=_0x396a01['root']['rootName']);_0x8172aa['length']>0x0&&_0x2ae199['setSelection'](_0x8172aa);for(const _0x5454d8 of _0x227ea9)_0x5454d8['detach']();});},_0x128c6d=(_0xc893c1,_0x2acd84)=>0x1==_0xc893c1['length']&&0x1==_0x2acd84['length']&&_0xc893c1[0x0]['end']['isEqual'](_0x2acd84[0x0]['start']),_0x265f10=(_0x58ff7e,_0x169cd7,_0x13de27,_0x4975c5)=>Pt(_0x58ff7e,_0x169cd7,_0x13de27,_0x4975c5,this['_model'])?[_0x58ff7e,_0x169cd7]:Pt(_0x169cd7,_0x58ff7e,_0x4975c5,_0x13de27,this['_model'])?[_0x169cd7,_0x58ff7e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a57ed),this['_defaultCallbacks']['set']('insertion:discard',_0x3a760b),this['_defaultCallbacks']['set']('insertion:join',_0x128c6d),this['_defaultCallbacks']['set']('insertion:chain',_0x265f10),this['_defaultCallbacks']['set']('deletion:accept',_0x3a760b),this['_defaultCallbacks']['set']('deletion:discard',_0x4a57ed),this['_defaultCallbacks']['set']('deletion:join',_0x128c6d),this['_defaultCallbacks']['set']('deletion:chain',_0x265f10),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ea77c),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a57ed),this['_defaultCallbacks']['set']('formatInline:join',_0x128c6d),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a57ed),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ea77c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a57ed),this['_defaultCallbacks']['set']('formatBlock:join',_0x128c6d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a57ed),this['_defaultCallbacks']['set']('attribute:accept',_0x4a57ed),this['_defaultCallbacks']['set']('attribute:discard',(_0x34387b,_0x499d31)=>{if(!_0x499d31)return;const _0x3e0e64=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x46b10f=>{if(_0x499d31['key']==m)for(const _0x34a7d9 of _0x34387b){const _0x5c5ffa=_0x34a7d9['start']['nodeAfter'],_0x356d5d=_0x499d31['oldValue'];_0x46b10f['rename'](_0x5c5ffa,_0x356d5d);}else{if(_0x3e0e64['_isBlockAttribute'](_0x499d31['key'])){for(const _0xad2bd1 of _0x34387b)void 0x0!==_0x499d31['oldValue']?_0x46b10f['setAttribute'](_0x499d31['key'],_0x499d31['oldValue'],_0xad2bd1['start']['nodeAfter']):_0x46b10f['removeAttribute'](_0x499d31['key'],_0xad2bd1['start']['nodeAfter']);}else{for(const _0x581ec5 of _0x34387b)_0x499d31['oldValue']?_0x46b10f['setAttribute'](_0x499d31['key'],_0x499d31['oldValue'],_0x581ec5):_0x46b10f['removeAttribute'](_0x499d31['key'],_0x581ec5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x128c6d);}}function Tt(_0x17e696,_0x32e61e,_0x4e55e2){for(const _0x950b7 of _0x32e61e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x950b7['root']==_0x950b7)return!0x1;if(!_0x4e55e2['containsItem'](_0x950b7))return!0x1;if(_0x17e696['isObject'](_0x950b7)||_0x17e696['isLimit'](_0x950b7))return!0x0;}return!0x1;}function Et(_0x4118cc){return _0x4118cc['end']['parent']==_0x4118cc['start']['nodeAfter']&&_0x4118cc['end']['isAtStart'];}function Vt(_0x4f9a9d,_0x681642,_0x3fd413,_0x18f186){const _0x2f9b05=_0x381a0d=>!_0x381a0d['item']['is']('$textProxy')&&!_0x18f186['isObject'](_0x381a0d['item']),_0xf3ebba=_0x4f9a9d['start']['getLastMatchingPosition'](_0x2f9b05),_0x190dae=_0x4f9a9d['end']['getLastMatchingPosition'](_0x2f9b05,{'direction':'backward'});return(!_0x4f9a9d['start']['isEqual'](_0xf3ebba)||!_0x4f9a9d['end']['isEqual'](_0x190dae))&&(_0xf3ebba['isBefore'](_0x190dae)?_0x3fd413['updateMarker'](_0x681642,{'range':_0x3fd413['createRange'](_0xf3ebba,_0x190dae)}):_0x3fd413['removeMarker'](_0x681642),!0x0);}function Ut(_0x4cc13d){return _0x45301d(_0x4cc13d);}function Ot(_0x19470a){const _0xe4a26e=_0x19470a['start']['nodeAfter'];return _0xe4a26e&&_0xe4a26e['is']('element');}function Gt(_0x2bb1d8,_0x379eb0){return null==_0x2bb1d8['end']['nodeBefore']&&_0x2bb1d8['end']['parent']==_0x2bb1d8['start']['nodeAfter']?Ft(_0x2bb1d8['start']['nodeAfter'],_0x379eb0):_0x2bb1d8;}function Ft(_0x2ed15a,_0x16cd8f){const _0x468a72=_0x16cd8f['schema']['isObject'](_0x2ed15a)||_0x16cd8f['schema']['isSelectable'](_0x2ed15a);return _0x16cd8f['createRange'](_0x16cd8f['createPositionAt'](_0x2ed15a,'before'),_0x468a72?_0x16cd8f['createPositionAfter'](_0x2ed15a):_0x16cd8f['createPositionAt'](_0x2ed15a,'end'));}function Pt(_0x526550,_0x3a1f22,_0x2f9a10,_0x49cedb,_0x39c332){if(!Lt(_0x526550,_0x3a1f22))return!0x1;if(_0x2f9a10['end']['isEqual'](_0x49cedb['start']))return!0x0;if(_0x526550['type']!=_0x3a1f22['type'])return!0x1;if(!_0x2f9a10['end']['isTouching'](_0x49cedb['start']))return!0x1;const _0x5427d1=_0x39c332['createRange'](_0x2f9a10['end'],_0x49cedb['start'])['getWalker']();for(const _0x338e2a of _0x5427d1)if(['elementStart','elementEnd']['includes'](_0x338e2a['type'])&&_0x39c332['schema']['isLimit'](_0x338e2a['item']))return!0x1;return!0x0;}function Lt(_0x2b7b1c,_0x4b4e39,_0x4f847e=[]){return!(!_0x2b7b1c['_isDataLoaded']||!_0x4b4e39['_isDataLoaded'])&&_0x4390ae(xt(_0x2b7b1c['attributes'],_0x4f847e),xt(_0x4b4e39['attributes'],_0x4f847e));}function Ht(_0x3a0896,_0x50455f){const _0x3684dc=qt(_0x3a0896['attributes']),_0x467321=qt(_0x50455f);if(!_0x3a0896['_isDataLoaded'])return!0x1;for(const _0x5c481e of Object['keys'](_0x467321))if(!_0x4390ae(_0x3684dc[_0x5c481e],_0x467321[_0x5c481e]))return!0x1;return!0x0;}function qt(_0x1d54e2){const _0x27d611=Object['assign']({},_0x1d54e2);return delete _0x27d611['skipNestingCheck'],delete _0x27d611['tablePasteChainId'],_0x27d611;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x463fbe(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x622aa0,_0x1d828,_0x26a3aa,_0x4dab1e){super(),this['model']=_0x1d828,this['view']=_0x26a3aa,this['commentThreadController']=_0x4dab1e,this['_editor']=_0x622aa0,this['_acceptCommand']=_0x622aa0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x622aa0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4124d7,_0x58fdd7)=>_0x4124d7||_0x58fdd7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b86fa=>_0x1b86fa&&this['_editor']['model']['canEditAt'](_0x1d828['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c21eb=>_0x3c21eb&&this['_editor']['model']['canEditAt'](_0x1d828['getRanges']())),this['_pendingAction']=null,_0x26a3aa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x26a3aa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x26a3aa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x26a3aa,'change:isDirty',()=>{_0x26a3aa['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 _0x118b43=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x118b43);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x63de3d{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xf3b851,_0x3bb8c8,_0x255b9a,_0x381f91){super(_0xf3b851),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3bb8c8['authoredAt']),this['bind']('authoredAt')['to'](_0x3bb8c8),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3bb8c8,this['_localUser']=_0x255b9a,this['_config']=_0x381f91,_0x381f91['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xa1d8fb}=this['_config'];this['commentsListView']=new _0xa1d8fb(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',_0x5083d3=>_0x5083d3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51edfc,_0x56ea7e)=>_0x51edfc||!!_0x56ea7e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1b83fa}=this['_config'],_0x28c1da=new _0x1b83fa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x103e3c=_0x28c1da['commentInputView'];return _0x28c1da['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x103e3c,'value',(_0x5956c2,_0x4f994d,_0x164abe)=>!!_0x164abe||_0x5956c2&&!_0x4f994d),_0x103e3c['on']('submit',(_0x30524e,_0xac452e)=>{this['fire']('addComment',_0xac452e),_0x103e3c['editor']['setData']('');}),_0x103e3c['on']('cancel',()=>this['focus']()),_0x103e3c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28c1da;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2e8e6b,_0x343f48,_0x2a3a6d,_0x1be6ee){super(_0x2e8e6b,_0x343f48,_0x2a3a6d,_0x1be6ee),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xeb387c=>_0xeb387c&&_0xeb387c[0x0]?_0xeb387c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xf6713f,_0x31ea5e)=>{let _0x181b39='';for(const _0x4b3e24 of _0xf6713f)_0x181b39+='<p>'+ds(_0x4b3e24['content'],_0x4b3e24['color'])+'</p>';return _0x31ea5e?_0x181b39:_0x42a722(_0x181b39,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2e8e6b,'Accept\x20suggestion'),_0x50e253['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2e8e6b,'Discard\x20suggestion'),_0x50e253['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x898e2b(_0x2e8e6b,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x187162=this['bindTemplate'],_0x1e48dd=[{'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':_0x187162['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x187162['to']('authoredAt',_0x2d8dc5=>this['_config']['formatDateTime'](_0x2d8dc5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x1e48dd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xfb1eb7={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x187162['if']('isActive','ck-suggestion-wrapper--active'),_0x187162['to']('type',_0x40dc73=>'ck-suggestion-'+_0x40dc73),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x1e48dd}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xfb1eb7['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0xfb1eb7;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x42c5b4,_0x11216e,_0x2d6e7b)=>{this['_descriptionElement']['innerHTML']=_0x2d6e7b;});}['_createButton'](_0x23aed1,_0x56b460,_0x376237,_0x4acded,_0x4e3058){const _0x4678c6=new _0x6d21b9(this['locale']);return _0x4678c6['set']({'label':_0x23aed1,'icon':_0x56b460,'tooltip':!0x0,'tooltipPosition':_0x4e3058}),_0x4678c6['extendTemplate']({'attributes':{'class':_0x376237}}),_0x4678c6['on']('execute',()=>{this['fire'](_0x4acded,this['_model']['id']);}),_0x4678c6;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x1e37e1,_0x3c73d8){let _0x477d74='';return _0x477d74+=_0x1e37e1['split']('*')['map']((_0x71c26,_0x3fcf69)=>_0x3fcf69%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x71c26)+'</span>':us(_0x71c26))['join'](''),_0x3c73d8&&(_0x477d74+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3c73d8['value']+'\x22\x20title=\x22'+_0x3c73d8['title']+'\x22></span>'),_0x477d74;}function us(_0x3b2205){const _0x246e3e=document['createElement']('span');return _0x246e3e['innerText']=_0x3b2205,_0x246e3e['innerHTML'];}var ae='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x20fe95{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21c972,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x594167){super(_0x594167),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x367e5a=this['editor']['config'];_0x367e5a['define']('trackChanges.SuggestionThreadView',ie),_0x367e5a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x367e5a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2a5375,_0x5593d8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5367f3,_0x3e2d89]of this['_handleControllerBuffer']){const _0x24678a=this['_suggestionToController']['has'](_0x5367f3);_0x24678a||_0x3e2d89?_0x24678a&&_0x3e2d89&&this['_destroyController'](_0x5367f3):this['_initializeController'](_0x5367f3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2a5375,_0x5593d8);}['init'](){const _0x3a31df=this['editor'],_0x287717=_0x3a31df['plugins']['get']('TrackChangesEditing'),_0x41328a=_0x3a31df['plugins']['get']('Annotations'),_0x553929=_0x3a31df['plugins']['get']('EditorAnnotations'),_0x53591c=_0x3a31df['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x553929['addSourceCollector'](()=>{const _0x2724c2=[];for(const [_0x335f43,_0x114798]of Array['from'](this['_suggestionToController'])){const _0x50eeba=_0x335f43['getAllAdjacentSuggestions'](),_0x40f6c7=[];for(const _0x2034f6 of _0x50eeba){if(!_0x2034f6['isInContent'])continue;if(_0x2034f6['isMultiRange']){_0x40f6c7['push'](..._0x2034f6['getRanges']());continue;}const _0x325f16=_0x2034f6['getFirstRange']();if(_0x40f6c7['length']>0x0){const _0x2dc1da=_0x40f6c7[0x0]['getJoined'](_0x325f16);if(_0x2dc1da){_0x40f6c7[0x0]=_0x2dc1da;continue;}}_0x40f6c7['push'](_0x325f16);}_0x2724c2['push']([_0x114798['view'],_0x40f6c7]);}return _0x2724c2;}),this['listenTo'](_0x287717,'suggestionLoaded',(_0x266a29,_0x9e9475)=>{this['listenTo'](_0x9e9475,'change:previous',(_0x38a7af,_0x45e874,_0x489a0a,_0x22d11b)=>{_0x9e9475['isInContent']&&(null==_0x489a0a?(this['_updateController'](_0x22d11b['head']),this['_handleSuggestionControllerDelayed'](_0x9e9475,!0x1)):(this['_updateController'](_0x489a0a['head']),null==_0x22d11b&&this['_handleSuggestionControllerDelayed'](_0x9e9475,!0x0)));}),null!==_0x9e9475['previous']?this['_updateController'](_0x9e9475['head']):this['_handleSuggestionControllerDelayed'](_0x9e9475,!0x1);}),this['listenTo'](_0x287717,'suggestionUnloaded',(_0x2ae158,_0x123bef,_0x48e12a)=>{this['stopListening'](_0x123bef,'change:previous'),this['_handleControllerBuffer']['delete'](_0x123bef),this['_suggestionToController']['has'](_0x123bef)&&this['_destroyController'](_0x123bef),_0x48e12a&&this['_updateController'](_0x48e12a['head']);}),this['listenTo'](_0x287717,'suggestionChanged',(_0x2ef5a3,_0x370223)=>{this['_updateController'](_0x370223);}),this['listenTo'](_0x41328a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x53591c,'addComment',(_0x14f53a,{threadId:_0x20ee14,isFromAdapter:_0x4d401c})=>{if(_0x4d401c||!_0x287717['hasSuggestion'](_0x20ee14))return;const _0x2ae0b9=_0x287717['getSuggestion'](_0x20ee14);this['_suggestionToController']['get'](_0x2ae0b9)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42dd9d=this['editor']['plugins']['get']('Annotations'),_0x2e20be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f7d59=Array['from'](_0x42dd9d['activeAnnotations'],_0x926193=>_0x926193['innerView'])['filter'](_0xa006f8=>this['_viewToController']['has'](_0xa006f8)),_0x21b07d=[];for(const _0x13b564 of _0x4f7d59){const _0x572ac1=this['_viewToController']['get'](_0x13b564)['model']['getAllAdjacentSuggestions']();_0x21b07d['push'](..._0x572ac1['reduce']((_0x5021e6,_0x507373)=>[..._0x5021e6,..._0x507373['getMarkerNames']()],[]));}_0x2e20be['activeMarkers']=_0x21b07d;}['_addUIComponentsToFactory'](){const _0x33b550=this['editor'],_0x4d2744=_0x33b550['locale'],_0xf4380c=o(_0x4d2744,'Track\x20changes'),_0xe4fed9=new Wt([{'type':'switchbutton','model':new _0x5cfa23({'withText':!0x0,'isToggleable':!0x0,'label':_0xf4380c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cfa23({'withText':!0x0,'label':o(_0x4d2744,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xc7cf91 of _0xe4fed9)if(re(_0xc7cf91)){const _0x27be06=_0x33b550['commands']['get'](_0xc7cf91['model']['commandName']);_0xc7cf91['model']['bind']('isOn','isEnabled')['to'](_0x27be06,'value','isEnabled');}_0x33b550['ui']['componentFactory']['add']('trackChanges',_0x4418b5=>this['_createToolbarButton'](_0x4418b5,_0xe4fed9,_0xf4380c)),_0x33b550['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f1800=>this['_createMenuBarMenu'](_0x1f1800,_0xe4fed9,_0xf4380c));}['_createToolbarButton'](_0x1d246b,_0x475c65,_0x230957){const _0x1efd1f=Jt(_0x1d246b,te),_0x20546f=this['editor']['commands']['get']('trackChanges');_0x1efd1f['buttonView']['set']({'tooltip':_0x230957,'label':_0x230957,'icon':ae}),_0x1efd1f['buttonView']['bind']('isOn')['to'](_0x20546f,'value'),_0x1efd1f['buttonView']['on']('execute',()=>{_0x20546f['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x1efd1f,_0x475c65,{'role':'menu'});const _0x9067f9=[];for(const _0x3aefac of _0x475c65)re(_0x3aefac)&&_0x9067f9['push'](this['editor']['commands']['get'](_0x3aefac['model']['commandName']));const _0x23e36a=_0x1efd1f['buttonView'];return _0x23e36a['actionView']['unbind']('isEnabled'),_0x23e36a['arrowView']['unbind']('isEnabled'),_0x23e36a['actionView']['bind']('isEnabled')['to'](_0x20546f,'isEnabled'),_0x23e36a['arrowView']['bind']('isEnabled')['toMany'](_0x9067f9,'isEnabled',(..._0x5cff64)=>_0x5cff64['some'](_0x5c27b1=>_0x5c27b1)),_0x1efd1f['on']('execute',_0x184130=>{this['editor']['execute'](_0x184130['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1efd1f;}['_createMenuBarMenu'](_0x15d9e1,_0x4d924c,_0x3286de){const _0x21a4dc=new Qt(_0x15d9e1),_0x1ec63d=this['editor']['commands']['get']('trackChanges');_0x21a4dc['buttonView']['set']({'label':_0x3286de,'icon':ae});const _0x485f67=new Xt(_0x15d9e1);for(const _0x2d7552 of _0x4d924c){if('separator'==_0x2d7552['type']){_0x485f67['items']['add'](new Kt(_0x15d9e1));continue;}const _0x5a6e73=new Yt(_0x15d9e1,_0x21a4dc),_0x384004=new Zt(_0x15d9e1),_0x47debb=_0x2d7552['model'];_0x384004['bind'](...Object['keys'](_0x47debb))['to'](_0x47debb),_0x384004['delegate']('execute')['to'](_0x21a4dc),_0x384004['on']('execute',()=>{this['editor']['execute'](_0x47debb['commandName']),this['editor']['editing']['view']['focus']();}),_0x5a6e73['children']['add'](_0x384004),_0x485f67['items']['add'](_0x5a6e73);}return _0x21a4dc['bind']('isEnabled')['to'](_0x1ec63d,'isEnabled'),_0x21a4dc['panelView']['children']['add'](_0x485f67),_0x21a4dc;}['_initializeController'](_0x52c89a){const _0x104c10=this['editor'],_0x4305ef=_0x104c10['config'],_0x41e1a0=_0x104c10['plugins']['get']('Annotations'),_0x44d0bc=_0x104c10['plugins']['get']('CommentsRepository'),_0x4cf189=_0x104c10['plugins']['get']('EditorAnnotations'),_0x1cba3a=_0x104c10['plugins']['get'](_0x21c972)['me'],_0x35fe6c=_0x4305ef['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4c88cc,CommentThreadInputView:_0x3527d3}=_0x104c10['plugins']['get']('CommentsUI');let _0x495acd,_0x14e18b;this['_annotationViews']['has'](_0x52c89a['id'])?(_0x14e18b=this['_annotationViews']['get'](_0x52c89a['id']),_0x495acd=_0x14e18b['mainView']):(_0x495acd=new _0x35fe6c(_0x104c10['locale'],_0x52c89a,_0x1cba3a,{'disableComments':this['_disableComments'],'editorConfig':_0x4305ef['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4305ef['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4305ef['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4305ef['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40266d(_0x4305ef['get']('locale')),'CommentView':_0x4305ef['get']('comments')['CommentView'],'CommentsListView':_0x4c88cc,'CommentThreadInputView':_0x3527d3}),_0x495acd['acceptButton']['on']('execute',()=>{_0x104c10['editing']['view']['focus']();}),_0x495acd['discardButton']['on']('execute',()=>{_0x104c10['editing']['view']['focus']();}),_0x14e18b=_0x41e1a0['createAnnotationView'](this['editor']['locale'],_0x495acd),_0x14e18b['bind']('isDirty')['to'](_0x495acd,'isDirty'),_0x14e18b['bind']('length')['to'](_0x495acd),_0x14e18b['bind']('type')['to'](_0x495acd,'type',_0x1d8941=>'suggestion-'+_0x1d8941),this['_annotationViews']['set'](_0x52c89a['id'],_0x14e18b));const _0xa03bb6=_0x44d0bc['createCommentThreadController'](_0x52c89a['commentThread'],_0x495acd),_0x1d5e84=new ne(_0x104c10,_0x52c89a,_0x495acd,_0xa03bb6),_0x4fc18b=_0x52c89a['getAllAdjacentSuggestions']()['filter'](_0x2bbdcf=>_0x2bbdcf['isInContent']);_0x495acd['descriptionParts']=_0x104c10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4fc18b),this['_suggestionToController']['set'](_0x52c89a,_0x1d5e84),this['_viewToController']['set'](_0x495acd,_0x1d5e84);const _0x5315f2=_0x41e1a0['createAnnotation']({'view':_0x14e18b,'target':()=>{const _0x2e0341=[],_0x5ea1d8=_0x52c89a['getAllAdjacentSuggestions']()['filter'](_0x2e152a=>_0x2e152a['isInContent']);for(const _0x62c617 of _0x5ea1d8)_0x2e0341['push'](..._0x62c617['getMarkers']());return _0x4f030c(_0x104c10['editing'],_0x2e0341);},'type':()=>'suggestion-'+_0x1d5e84['view']['type']});_0x44d0bc['_bindAnnotationToEditors'](_0x495acd,_0x5315f2),_0x41e1a0['add'](_0x5315f2),_0x4cf189['registerAnnotation'](_0x5315f2);}['_destroyController'](_0x17e008){const _0x4ad8d2=this['editor']['plugins']['get']('CommentsRepository'),_0x2c114a=this['editor']['plugins']['get']('Annotations'),_0x4310b0=this['_suggestionToController']['get'](_0x17e008),_0x402e48=_0x4310b0['view'],_0x17c771=_0x2c114a['getByInnerView'](_0x402e48);_0x4ad8d2['_unbindEditors'](_0x402e48),_0x17c771&&_0x2c114a['remove'](_0x17c771),this['_suggestionToController']['delete'](_0x17e008),this['_viewToController']['delete'](_0x402e48),_0x4310b0['destroy']();}['_updateController'](_0x9f156f){if(!_0x9f156f['isInContent']||!this['_suggestionToController']['has'](_0x9f156f))return;const _0x529f9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x309ecc=this['_suggestionToController']['get'](_0x9f156f),_0x2d3380=_0x9f156f['getAllAdjacentSuggestions']();_0x309ecc['view']['descriptionParts']=_0x529f9a['descriptionFactory']['getDescriptions'](_0x2d3380);}['destroy'](){for(const _0x640fd1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x640fd1);for(const _0x2cbbf1 of this['_annotationViews']['values']())_0x2cbbf1['mainView']['destroy']();super['destroy']();}}function re(_0x244215){return'model'in _0x244215;}class k extends _0x20fe95{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5d4f43){this['editor']['plugins']['get'](p)['adapter']=_0x5d4f43;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x39570d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x39570d);}['getSuggestions']({skipNotAttached:_0x3de30a=!0x1,toJSON:_0x7fbb6a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3de30a,'toJSON':_0x7fbb6a});}['getSuggestion'](_0x545493){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x545493);}}const T=['Pagination'];class P extends _0x20fe95{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x149c25=this['editor'];if(_0x149c25['config']['define']('trackChangesData.editorCreator',_0x15f6df=>{const _0x42d4f2=_0x149c25['model']['document']['getRootNames']()['reduce']((_0x3b4c4d,_0x39142f)=>(_0x3b4c4d[_0x39142f]='',_0x3b4c4d),{});return _0x149c25['constructor']['create'](_0x42d4f2,_0x15f6df);}),'function'!=typeof _0x149c25['config']['get']('trackChangesData')['editorCreator'])throw new _0x4d0924('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e922f){return N(this['editor'],!0x0,_0x2e922f);}['getDataWithDiscardedSuggestions'](_0x2e8862){return N(this['editor'],!0x1,_0x2e8862);}}class D extends _0x20fe95{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x35c0b9){super(_0x35c0b9),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(_0x2ba987){return void 0x0!==_0x2ba987['getRootsAttributes'];}async function N(_0x4ede89,_0x212d41,_0x5a7756){const _0x4d53a6=_0x30e326(_0x4ede89,T);_0x4d53a6['plugins']['push'](p,D),_0x4d53a6['rootsAttributes']=v(_0x4ede89)?_0x4ede89['getRootsAttributes']():void 0x0;const _0x1c0788=document['createDocumentFragment'](),_0x36488a=_0x4ede89['config']['get']('trackChangesData')['editorCreator'],_0x5190ec=await _0x36488a(_0x4d53a6,()=>function(_0x1a2e20){const _0x4162dc=document['createElement']('div');return _0x1a2e20['appendChild'](_0x4162dc),_0x4162dc;}(_0x1c0788));!function(_0xd10c8,_0x3ccb12){const _0x2ba49b=_0xd10c8['model']['document']['getRootNames']()['reduce']((_0x4ef216,_0x6ed1d8)=>(_0x4ef216[_0x6ed1d8]=_0xd10c8['data']['get']({'rootName':_0x6ed1d8}),_0x4ef216),{}),_0x55e078=_0xd10c8['plugins']['get']('Users')['users']['map'](_0x3fc786=>({'id':_0x3fc786['id'],'name':_0x3fc786['name']})),_0x1f74c9=_0xd10c8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x163689=_0xd10c8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2eae90=_0x3ccb12['plugins']['get']('Users'),_0x410acb=_0x3ccb12['plugins']['get']('TrackChangesEditing'),_0x4fb22a=_0x3ccb12['plugins']['get']('CommentsRepository');for(const _0x5f5671 of _0x55e078)_0x2eae90['getUser'](_0x5f5671['id'])||_0x2eae90['addUser'](_0x5f5671);_0x2eae90['me']||_0x2eae90['useAnonymousUser']();for(const _0xb83e2e of _0x163689)_0x4fb22a['addCommentThread'](_0xb83e2e);for(const _0xb6c036 of _0x1f74c9)_0x410acb['addSuggestionData'](_0xb6c036);_0x3ccb12['data']['set'](_0x2ba49b);}(_0x4ede89,_0x5190ec),_0x5190ec['execute'](_0x212d41?'acceptAllSuggestions':'discardAllSuggestions');const _0x36f5a6=v(_0x5190ec)?_0x5190ec['getFullData'](_0x5a7756):_0x5190ec['data']['get'](_0x5a7756);return await _0x5190ec['destroy'](),_0x36f5a6;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x506527,PendingActions as _0x1e7b39,icons as _0x24e0d1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a730a,ObservableMixin as _0x1d0c56,uid as _0x4f07c9,insertToPriorityArray as _0xa198f6,priorities as _0x26da40,logWarning as _0x1c79fa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5e1bf2,View as _0x5b241e,ButtonView as _0x546385,ViewModel as _0xf10af4,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x19687d,hashObject as _0x3e10fd,surroundingMarkersDetector as _0x386029,trimHtml as _0x34f4f8,UserView as _0x34a0dc,getDateTimeFormatter as _0x585f3f,getAllMarkersDomElementsSorted as _0x218287,sanitizeEditorConfig as _0x548b32}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2e64a8,LiveRange as _0x53f8a1,LivePosition as _0x2e2801}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x22a95a,toWidget as _0x4332cc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x55234e,set as _0x5df443,isEqual as _0x135414,unset as _0x1991b7,omit as xt}from'lodash-es';import{Delete as _0x359dfa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4bcc1d,ShiftEnter as _0x51028d}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x48a1f9,_0x1dfde8){super(_0x48a1f9),this['_enabledCommands']=_0x1dfde8,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 _0x3a8950 of this['editor']['commands']['commands']())_0x3a8950['affectsData']&&!this['_enabledCommands']['has'](_0x3a8950)&&_0x3a8950['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x21037e of this['editor']['commands']['commands']())_0x21037e['affectsData']&&!this['_enabledCommands']['has'](_0x21037e)&&_0x21037e['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x539ab3,_0x31b558){super(_0x539ab3),this['_suggestions']=_0x31b558,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4aeea6){const _0x311bcc=this['_suggestions']['get'](_0x4aeea6);if(!_0x311bcc)throw new _0x2a730a('track-changes-accept-suggestion-not-found',this);const _0x3ed50d=_0x311bcc['getRanges']();this['editor']['model']['canEditAt'](_0x3ed50d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x311bcc);}}class B extends ts{['_suggestions'];constructor(_0x2d0303,_0x19eb8b){super(_0x2d0303),this['_suggestions']=_0x19eb8b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa89436){const _0x5cb49d=this['_suggestions']['get'](_0xa89436);if(!_0x5cb49d)throw new _0x2a730a('track-changes-discard-suggestion-not-found',this);const _0x41ccea=_0x5cb49d['getRanges']();this['editor']['model']['canEditAt'](_0x41ccea)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5cb49d);}}function ss(_0x20594c){return _0x20594c['sort']((_0x5b6f5d,_0x2c6020)=>'deletion'==_0x5b6f5d['type']&&'deletion'!=_0x2c6020['type']?-0x1:'deletion'!=_0x5b6f5d['type']&&'deletion'==_0x2c6020['type']?0x1:0x0);}function to(_0x4eba61,_0xadc770){let _0x29405a,_0x278303=0x0;const _0x5bee01=[],_0x21963e=_0xadc770['schema'];for(;_0x278303<_0x4eba61['length'];){const _0x5273d4=_0x4eba61[_0x278303],_0x3c31e5=_0x4eba61[_0x278303+0x1];_0x29405a||(_0x29405a=_0xadc770['createPositionBefore'](_0x5273d4)),co(_0xadc770,_0x5273d4,_0x3c31e5)||(_0x5bee01['push'](_0xadc770['createRange'](_0x29405a,_0x21963e['isObject'](_0x5273d4)?_0xadc770['createPositionAfter'](_0x5273d4):_0xadc770['createPositionAt'](_0x5273d4,'end'))),_0x29405a=null),_0x278303++;}return _0x5bee01;}function co(_0x2a9fce,_0xd2305,_0x185ab9){if(!_0x185ab9)return!0x1;const _0x440706=_0x2a9fce['createPositionAfter'](_0xd2305),_0x32308c=_0x2a9fce['createPositionBefore'](_0x185ab9);return _0x440706['isTouching'](_0x32308c);}function rs(_0x48025e,_0x4490ce,_0x526329){for(;_0x526329['length'];){const _0x9e7e65=_0x526329['splice'](0x0,0x64);_0x48025e['change'](()=>{for(const _0x12bb6f of _0x9e7e65)_0x12bb6f['isInContent']&&_0x4490ce['execute'](_0x12bb6f['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xdded84,_0x1ddc71,_0x263758){super(_0xdded84),this['_command']=_0x1ddc71,this['_suggestions']=_0x263758,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x32e43d=Array['from'](this['_suggestions']['values']())['some'](_0x28e49a=>_0x28e49a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x32e43d;}['execute'](){const _0xd4962d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x47d157 of _0xd4962d){const _0x2e8bf6=_0x47d157['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e8bf6))return;}rs(this['editor']['model'],this['_command'],_0xd4962d);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1bd931,_0x41df89,_0x21f9cd){super(_0x1bd931),this['_command']=_0x41df89,this['_suggestions']=_0x21f9cd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf3025f=this['editor']['model']['document']['selection'],_0x351fab=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10616d,_0xf36e4a){const _0xe47a66=Array['from'](_0x10616d['getRanges']()),_0x188e5d=new Set();for(const _0x2ac520 of _0xf36e4a)if(_0x2ac520['isInContent']){for(const _0x303728 of _0xe47a66)for(const _0x216db7 of _0x2ac520['getRanges']())(_0x303728['isIntersecting'](_0x216db7)||_0x10616d['isCollapsed']&&!_0x2ac520['isMultiRange']&&_0x2ac520['next']&&_0x216db7['end']['isTouching'](_0x303728['start']))&&_0x188e5d['add'](_0x2ac520);}return _0x188e5d;}(_0xf3025f,_0x351fab),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xfd37f9=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4f49a9 of _0xfd37f9){const _0x1a8679=_0x4f49a9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a8679))return;}rs(this['editor']['model'],this['_command'],_0xfd37f9);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1d0c56(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x13997f,_0x17aa5a){super(),this['id']=_0x17aa5a['id'],this['type']=_0x17aa5a['type'],this['subType']=_0x17aa5a['subType']||null,this['author']=_0x17aa5a['author'],this['creator']=_0x17aa5a['creator']||_0x17aa5a['author'],this['isExternal']=Boolean(_0x17aa5a['attributes']&&_0x17aa5a['attributes']['@external']),this['data']=null,this['_model']=_0x13997f,this['_onAccept']=_0x17aa5a['onAccept'],this['_onDiscard']=_0x17aa5a['onDiscard'],this['_onAttributesChange']=_0x17aa5a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17aa5a['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 _0x237e12=this;for(;_0x237e12['previous'];)_0x237e12=_0x237e12['previous'];return _0x237e12;}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'](_0x20a530){this['_markerNames']['add'](_0x20a530);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x592017=>this['_model']['markers']['get'](_0x592017))['filter'](_0x237902=>_0x237902);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x331d81=>{for(const _0xa34c45 of this['getMarkers']())_0x331d81['removeMarker'](_0xa34c45);}),this['_markerNames']['clear']();}['removeMarker'](_0x5ab2d7){this['_model']['change'](_0x3e9899=>{_0x3e9899['removeMarker'](_0x5ab2d7);}),this['_markerNames']['delete'](_0x5ab2d7);}['addRange'](_0x4716b3){const _0x2c37a3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2c37a3),this['_model']['change'](_0x5803f1=>{_0x5803f1['addMarker'](_0x2c37a3,{'range':_0x4716b3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x27b196){for(const _0x451652 of this['getRanges']())if(_0x451652['isIntersecting'](_0x27b196))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x439703=>_0x439703['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x33dd8f,_0x590c49)=>[..._0x33dd8f,..._0x590c49['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x850446=this['getRanges']();if(0x1!=_0x850446['length'])return null;const _0x5c1c77=_0x850446[0x0],_0x46050d=_0x5c1c77['start']['nodeAfter'],_0x219e95=_0x5c1c77['end']['nodeBefore'];return _0x46050d instanceof _0x2e64a8?_0x46050d!=_0x219e95?null:_0x46050d: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 _0x501e1d=[];let _0x25a35c=this['head'];for(;_0x25a35c;)_0x501e1d['push'](_0x25a35c),_0x25a35c=_0x25a35c['next'];return _0x501e1d;}['setAttribute'](_0x56e1c9,_0xe1abe8){const _0x1a64db=_0x55234e(this['attributes']);_0x5df443(_0x1a64db,_0x56e1c9,_0xe1abe8),_0x135414(_0x1a64db,this['attributes'])||(this['attributes']=_0x1a64db,this['_onAttributesChange'](_0x1a64db));}['removeAttribute'](_0xe76db8){const _0x1f9878=_0x55234e(this['attributes']);_0x1991b7(_0x1f9878,_0xe76db8),_0x135414(_0x1f9878,this['attributes'])||(this['attributes']=_0x1f9878,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 _0x4f07c9()['substr'](0x1,0x5);}}function o(_0x4d4a6f,_0x1e243f,_0x1eecb8){const t=_0x4d4a6f['t'];switch(_0x1e243f){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',_0x1eecb8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1eecb8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1eecb8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1eecb8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1eecb8);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',_0x1eecb8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1eecb8);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',_0x1eecb8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1eecb8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1eecb8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1eecb8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1eecb8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1eecb8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1eecb8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1eecb8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1eecb8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1eecb8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1eecb8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1eecb8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1eecb8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1eecb8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1eecb8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1eecb8);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'},_0x1eecb8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1eecb8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1eecb8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1eecb8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1eecb8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1eecb8);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'},_0x1eecb8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1eecb8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1eecb8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1eecb8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1eecb8);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'},_0x1eecb8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1eecb8);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'},_0x1eecb8);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'},_0x1eecb8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1eecb8);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'},_0x1eecb8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1eecb8);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'},_0x1eecb8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1eecb8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1eecb8);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'},_0x1eecb8);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'},_0x1eecb8);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'},_0x1eecb8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1e243f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x531664,_0x447188){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x531664,this['_locale']=_0x447188;}['getDescriptions'](_0x569c6b){const _0x51b8ad=[],_0x53e444=new Set(),_0x41680d=new Set();for(let _0x2d97c0=0x0;_0x2d97c0<_0x569c6b['length'];_0x2d97c0++){const _0x2522a1=_0x569c6b[_0x2d97c0];if(!_0x2522a1['isInContent'])continue;const _0x6fefae=this['_handleCustomCallbackDescription'](_0x2522a1);if(_0x6fefae){if(null!=_0x2522a1['subType']){if(_0x53e444['has'](_0x2522a1['subType']))continue;_0x53e444['add'](_0x2522a1['subType']);}_0x51b8ad['push'](_0x6fefae);}else{if('attribute'!=_0x2522a1['type'])'insertion'!=_0x2522a1['type']&&'deletion'!=_0x2522a1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x51b8ad,_0x2522a1,_0x569c6b[_0x2d97c0+0x1]);else{const _0x4efc9f=_0x2522a1['data']['key'];if(_0x41680d['has'](_0x4efc9f))continue;_0x41680d['add'](_0x2522a1['data']['key']),_0x4efc9f==m?this['_handleRenameSuggestionDescription'](_0x51b8ad,_0x2522a1):this['_handleAttributeSuggestionDescription'](_0x51b8ad,_0x2522a1);}}}return this['_resolveDescriptionItems'](_0x51b8ad);}['registerDescriptionCallback'](_0x1d606d){this['_customCallbacks']['push'](_0x1d606d);}['registerElementLabel'](_0x4b41b4,_0x5c1d45,_0x1d2d30=_0x26da40['normal']){'function'==typeof _0x4b41b4?_0xa198f6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b41b4,'label':_0x5c1d45,'priority':_0x1d2d30}):this['_itemLabels']['set'](_0x4b41b4,_0x5c1d45);}['registerAttributeLabel'](_0x421939,_0x2b2e99){this['_attributeLabels']['set'](_0x421939,_0x2b2e99);}['getItemLabel'](_0x4136d9,_0x520c68=0x1){let _0x39a5bf;for(const _0xbb22ce of this['_itemLabelsCallbacks'])if(_0xbb22ce['matchingCallback'](_0x4136d9)){_0x39a5bf=_0xbb22ce['label'];break;}return _0x39a5bf||(_0x39a5bf=this['_itemLabels']['get'](_0x4136d9['name'])),_0x39a5bf?_0x39a5bf(_0x520c68):0x1!==_0x520c68?_0x520c68+'\x20'+_0x4136d9['name']+'s':''+_0x4136d9['name'];}['_addDescriptionItems'](_0xb31543,_0x4b3f00){const _0x2aedf5=_0x4b3f00['getFirstRange']()['getWalker'](),_0x20e832='insertion'==_0x4b3f00['type']?'add':'remove';for(const _0x49abff of _0x2aedf5){const _0xd0fe71=_0x49abff['item'],_0x363af6=_0xb31543[_0xb31543['length']-0x1];if(_0xd0fe71['is']('$textProxy'))_0x363af6&&_0x363af6['type']['indexOf']('Container')>-0x1&&_0xb31543['pop'](),_0x363af6&&'text'==_0x363af6['type']?_0x363af6[_0x20e832]+=_0xd0fe71['data']:_0xb31543['push']({'type':'text','add':'add'==_0x20e832?_0xd0fe71['data']:'','remove':'remove'==_0x20e832?_0xd0fe71['data']:''});else{if(this['_schema']['isObject'](_0xd0fe71)){const _0x5bb0f4=_0xd0fe71;if(_0x363af6&&_0x363af6['type']['indexOf']('Container')>-0x1&&_0xb31543['pop'](),'elementEnd'==_0x49abff['type'])continue;_0x363af6&&_0x363af6['type']==_0x20e832+'Object'&&_0x363af6['element']['name']==_0x5bb0f4['name']?_0x363af6['quantity']++:_0xb31543['push']({'type':_0x20e832+'Object','element':_0x5bb0f4,'quantity':0x1}),_0x2aedf5['skip'](_0x14d5c2=>!('elementEnd'==_0x14d5c2['type']&&_0x14d5c2['item']==_0xd0fe71));}else{if(this['_schema']['checkChild'](_0xd0fe71,'$text')||_0xd0fe71['is']('element','softBreak')){const _0xf94c48=_0xd0fe71;if('add'==_0x20e832&&'elementStart'==_0x49abff['type']||'remove'==_0x20e832&&'elementEnd'==_0x49abff['type'])continue;if(_0x363af6&&-0x1==_0x363af6['type']['indexOf']('Container')){'text'==_0x363af6['type']&&(_0x363af6[_0x20e832]+='\x0a');continue;}let _0x259ae2;if(_0x259ae2='add'==_0x20e832?_0xf94c48['nextSibling']&&!this['_schema']['isObject'](_0xf94c48['nextSibling'])?_0xf94c48['nextSibling']:null:_0xf94c48['previousSibling']&&!this['_schema']['isObject'](_0xf94c48['previousSibling'])?_0xf94c48['previousSibling']:null,_0xf94c48['isEmpty']||_0x259ae2&&_0x259ae2['isEmpty']){const _0x49a2c0=_0x259ae2&&_0x259ae2['isEmpty']?_0x259ae2:_0xf94c48;_0x363af6&&_0x363af6['type']==_0x20e832+'EmptyContainer'&&_0x363af6['element']['name']==_0x49a2c0['name']?_0x363af6['quantity']++:_0xb31543['push']({'type':_0x20e832+'EmptyContainer','element':_0x49a2c0,'quantity':0x1});}else _0xb31543['push']({'type':_0x20e832+'Container','element':_0xf94c48});}}}}}['_resolveDescriptionItems'](_0x358a42){const _0x17f1b0=this['_locale'],_0x190f0b=[],_0x4f2dd0=[],_0x4e725d=[];for(const _0x570471 of _0x358a42)switch(_0x570471['type']){case'text':if(_0x570471['add']=_0x570471['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x570471['remove']=_0x570471['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x570471['add']&&''!=_0x570471['remove']){_0x190f0b['push']({'type':'replace','content':o(_0x17f1b0,'REPLACE_TEXT',['\x22'+_0x570471['remove']+'\x22','\x22'+_0x570471['add']+'\x22'])});continue;}if(null!=_0x570471['add']['match'](/^ +$/)){_0x190f0b['push']({'type':'insertion','content':o(_0x17f1b0,'*Insert:*\x20%0',o(_0x17f1b0,'ELEMENT_SPACE',_0x570471['add']['length']))});continue;}if(null!=_0x570471['remove']['match'](/^ +$/)){_0x190f0b['push']({'type':'deletion','content':o(_0x17f1b0,'*Remove:*\x20%0',o(_0x17f1b0,'ELEMENT_SPACE',_0x570471['remove']['length']))});continue;}if(''!=_0x570471['add']){_0x190f0b['push']({'type':'insertion','content':o(_0x17f1b0,'*Insert:*\x20%0','\x22'+_0x570471['add']+'\x22')});continue;}_0x190f0b['push']({'type':'deletion','content':o(_0x17f1b0,'*Remove:*\x20%0','\x22'+_0x570471['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x190f0b['push']({'type':'insertion','content':o(_0x17f1b0,'*Insert:*\x20%0',this['getItemLabel'](_0x570471['element'],_0x570471['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x190f0b['push']({'type':'deletion','content':o(_0x17f1b0,'*Remove:*\x20%0',this['getItemLabel'](_0x570471['element'],_0x570471['quantity']))});continue;case'addContainer':_0x190f0b['push']({'type':'insertion','content':o(_0x17f1b0,'*Split:*\x20%0',this['getItemLabel'](_0x570471['element'],_0x570471['quantity']))});continue;case'removeContainer':_0x190f0b['push']({'type':'deletion','content':o(_0x17f1b0,'*Merge:*\x20%0',this['getItemLabel'](_0x570471['element'],_0x570471['quantity']))});continue;case'addFormat':_0x4f2dd0['push'](_0x570471['key']);continue;case'removeFormat':_0x4e725d['push'](_0x570471['key']);continue;default:_0x190f0b['push'](_0x570471);}if(_0x4f2dd0['length']){const _0xf1c559=_0x4f2dd0['map'](_0x1b7b03=>this['_attributeLabels']['has'](_0x1b7b03)?this['_attributeLabels']['get'](_0x1b7b03):_0x1b7b03)['join'](',\x20');_0x190f0b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xf1c559)});}if(_0x4e725d['length']){const _0x4bb624=_0x4e725d['map'](_0x4c0f60=>this['_attributeLabels']['has'](_0x4c0f60)?this['_attributeLabels']['get'](_0x4c0f60):_0x4c0f60)['join'](',\x20');_0x190f0b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4bb624)});}return _0x190f0b;}['_handleCustomCallbackDescription'](_0x28444b){for(const _0x271574 of this['_customCallbacks']){const _0x8972a2=_0x271574(_0x28444b);if(_0x8972a2&&'type'in _0x8972a2)return _0x8972a2;}}['_handleAttributeSuggestionDescription'](_0x2db6ad,_0xb0bee1){const _0x3fa89f=_0xb0bee1['data'],_0x2a1a10=void 0x0===_0x3fa89f['newValue']?'removeFormat':'addFormat';_0x2db6ad['push']({'type':_0x2a1a10,'key':_0x3fa89f['key']});}['_handleRenameSuggestionDescription'](_0x1545e6,_0x50fe5b){_0x1545e6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50fe5b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x45bc09,_0x1b7cd7,_0x29daba){if(this['_addDescriptionItems'](_0x45bc09,_0x1b7cd7),_0x29daba&&_0x29daba['getFirstRange']()&&!_0x1b7cd7['getFirstRange']()['end']['isEqual'](_0x29daba['getFirstRange']()['start'])){const _0x3c4a70=_0x45bc09[_0x45bc09['length']-0x1],_0x2b734c='insertion'==_0x1b7cd7['type']?'add':'remove';_0x3c4a70&&'text'==_0x3c4a70['type']&&(_0x3c4a70[_0x2b734c]+='\x0a');}}}class E extends _0x506527{['afterInit'](){const _0xb02df8=this['editor'],_0x3be56c=_0xb02df8['plugins']['get']('TrackChangesEditing');_0xb02df8['commands']['get']('showAIAssistant')&&_0x3be56c['enableCommand']('showAIAssistant');}}class V extends _0x506527{['afterInit'](){const _0x4252e2=this['editor'],_0x492098=_0x4252e2['locale'];if(!_0x4252e2['plugins']['has']('AlignmentEditing'))return;const _0x2d235f=_0x4252e2['plugins']['get']('TrackChangesEditing');_0x2d235f['enableDefaultAttributesIntegration']('alignment'),_0x2d235f['registerBlockAttribute']('alignment'),_0x2d235f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x492098,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3449a4=this['editor'],_0x404e94=_0x3449a4['locale'];_0x3449a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x471396=>{if('formatBlock'!=_0x471396['type'])return;const {data:_0x1f65e3}=_0x471396;if(_0x1f65e3&&'alignment'==_0x1f65e3['commandName']){const _0x44e34d=_0x1f65e3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x404e94,'*Format:*\x20%0',function(_0x20d67e){switch(_0x20d67e){case'left':return o(_0x404e94,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x404e94,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x404e94,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x404e94,'FORMAT_JUSTIFY_TEXT');}}(_0x44e34d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x506527{['afterInit'](){const _0x3b0137=this['editor'],_0x5ae116=_0x3b0137['plugins']['get']('TrackChangesEditing'),_0x1da050=_0x3b0137['locale'];for(const _0x46c46c of ti){if(!_0x3b0137['plugins']['has'](_0x46c46c))continue;const _0x5d1c9f=_0x46c46c['slice'](0x0,-0x7)['toLowerCase'](),_0x37bfae='FORMAT_'+_0x5d1c9f['toUpperCase']();_0x5ae116['enableDefaultAttributesIntegration'](_0x5d1c9f),_0x5ae116['registerInlineAttribute'](_0x5d1c9f),_0x5ae116['descriptionFactory']['registerAttributeLabel'](_0x5d1c9f,o(_0x1da050,_0x37bfae));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3999ac=this['editor'],_0x35525b=_0x3999ac['locale'],_0x259251=_0x3999ac['plugins']['get']('TrackChangesEditing');function _0x3a950d(_0x4d6a8b,_0x26d0b8){_0x259251['descriptionFactory']['registerDescriptionCallback'](_0x5e6186=>{if('formatInline'!=_0x5e6186['type'])return;const {data:_0x79d6d0}=_0x5e6186;return _0x79d6d0&&_0x79d6d0['commandName']===_0x4d6a8b?_0x79d6d0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35525b,'*Format:*\x20%0',_0x26d0b8)}:{'type':'format','content':o(_0x35525b,'*Remove\x20format:*\x20%0',_0x26d0b8)}:void 0x0;});}_0x3a950d('bold',o(_0x35525b,'FORMAT_BOLD')),_0x3a950d('italic',o(_0x35525b,'FORMAT_ITALIC')),_0x3a950d('underline',o(_0x35525b,'FORMAT_UNDERLINE')),_0x3a950d('code',o(_0x35525b,'FORMAT_CODE')),_0x3a950d('strikethrough',o(_0x35525b,'FORMAT_STRIKETHROUGH')),_0x3a950d('subscript',o(_0x35525b,'FORMAT_SUBSCRIPT')),_0x3a950d('superscript',o(_0x35525b,'FORMAT_SUPERSCRIPT'));}}class O extends _0x506527{['afterInit'](){const _0x124aba=this['editor'],_0x593a47=_0x124aba['locale'];if(!_0x124aba['plugins']['has']('BlockQuoteEditing'))return;const _0x58b64d=_0x124aba['plugins']['get']('TrackChangesEditing'),_0x5d5b02=this['editor']['commands']['get']('blockQuote');_0x58b64d['enableCommand']('blockQuote',(_0x5e6257,_0x5c3b29={})=>{const _0xde7b64=this['editor']['model']['document']['selection'],_0x4907fe=_0x5c3b29&&void 0x0!==_0x5c3b29['forceValue']?_0x5c3b29['forceValue']:!_0x5d5b02['value'];let _0x4d329c=[];if(_0x4907fe){const _0x3a3cae=Array['from'](_0xde7b64['getSelectedBlocks']())['filter'](_0x3ad9e5=>oo(_0x3ad9e5)||function(_0x2e5c22,_0x53b938){const _0x4143ec=_0x53b938['checkChild'](_0x2e5c22['parent'],'blockQuote'),_0x219f24=_0x53b938['checkChild'](['$root','blockQuote'],_0x2e5c22);return _0x4143ec&&_0x219f24;}(_0x3ad9e5,this['editor']['model']['schema']));_0x4d329c=to(_0x3a3cae,_0x124aba['model']);}else{const _0x531352=Array['from'](_0xde7b64['getSelectedBlocks']())['filter'](_0xbc56e2=>oo(_0xbc56e2));_0x4d329c=to(_0x531352,_0x124aba['model']);}_0x124aba['model']['change'](()=>{for(const _0x14159e of _0x4d329c)_0x58b64d['markBlockFormat'](_0x14159e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4907fe}]});});}),_0x58b64d['descriptionFactory']['registerDescriptionCallback'](_0x17d3d2=>{const {data:_0x50f905}=_0x17d3d2;if(_0x50f905&&'blockQuote'==_0x50f905['commandName']){const _0x4aa13d=o(_0x593a47,'ELEMENT_BLOCK_QUOTE');return _0x50f905['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x593a47,'*Set\x20format:*\x20%0',_0x4aa13d)}:{'type':'format','content':o(_0x593a47,'*Remove\x20format:*\x20%0',_0x4aa13d)};}});}}function oo(_0x43e32c){return'blockQuote'==_0x43e32c['parent']['name'];}class G extends _0x506527{['afterInit'](){const _0x352e98=this['editor'];_0x352e98['plugins']['has']('CaseChange')&&(_0x352e98['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x352e98['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x352e98['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x506527{['afterInit'](){const _0x4396e0=this['editor'];_0x4396e0['commands']['get']('ckbox')&&_0x4396e0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x506527{['afterInit'](){const _0x343345=this['editor'];if(!_0x343345['plugins']['has']('CodeBlock'))return;const _0x54a8d7=_0x343345['plugins']['get']('TrackChangesEditing'),_0x384ebc=_0x343345['locale'],_0x3b70ac=_0x343345['config']['get']('codeBlock')['languages'],_0xda8890=_0x343345['commands']['get']('codeBlock');_0x54a8d7['enableCommand']('indentCodeBlock'),_0x54a8d7['enableCommand']('outdentCodeBlock'),_0x54a8d7['enableCommand']('codeBlock',(_0x20d104,_0x476fa0={})=>{const _0x744927=_0x343345['model'],_0x1669c3=_0x343345['model']['document']['selection'],_0x3466d9=_0x476fa0&&void 0x0!==_0x476fa0['forceValue']?_0x476fa0['forceValue']:!_0xda8890['value'];let _0x4017d1;_0x476fa0['language']||(_0x476fa0['language']=_0x3b70ac[0x0]['language']),_0x4017d1=_0x3466d9?Array['from'](_0x1669c3['getSelectedBlocks']())['filter'](_0x49ad17=>eo(_0x49ad17)||function(_0x46a826,_0x560741){if(_0x46a826['is']('rootElement')||_0x560741['isLimit'](_0x46a826))return!0x1;return _0x560741['checkChild'](_0x46a826['parent'],'codeBlock');}(_0x49ad17,_0x744927['schema'])):Array['from'](_0x1669c3['getSelectedBlocks']())['filter'](_0x38de4e=>eo(_0x38de4e));const _0x4ff60f=to(_0x4017d1,_0x744927);_0x744927['change'](()=>{for(const _0x10e9fa of _0x4ff60f)_0x54a8d7['markBlockFormat'](_0x10e9fa,{'commandName':'codeBlock','commandParams':[{..._0x476fa0,'forceValue':_0x3466d9}],'formatGroupId':'blockName'});});}),(_0x54a8d7['descriptionFactory']['registerElementLabel']('codeBlock',_0x2e3ce1=>o(_0x384ebc,'ELEMENT_CODE_BLOCK',_0x2e3ce1)),_0x54a8d7['descriptionFactory']['registerDescriptionCallback'](_0x4b07dc=>{if('formatBlock'!=_0x4b07dc['type'])return;const _0x40cf96=_0x384ebc['t'],{data:_0x3b8a19}=_0x4b07dc;if(!_0x3b8a19||'codeBlock'!=_0x3b8a19['commandName'])return;const _0x2a39e8=_0x3b8a19['commandParams'][0x0]['language'],_0x15e230=_0x40cf96(_0x3b70ac['find'](_0x30cf71=>_0x30cf71['language']===_0x2a39e8)['label'])['toLowerCase']();return _0x3b8a19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x384ebc,'*Set\x20format:*\x20%0',o(_0x384ebc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15e230+')')}:{'type':'format','content':o(_0x384ebc,'*Remove\x20format:*\x20%0',o(_0x384ebc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5041d9){return'codeBlock'==_0x5041d9['name'];}class H extends _0x506527{['afterInit'](){const _0x1e4173=this['editor'];if(!_0x1e4173['plugins']['has']('CommentsEditing'))return;_0x1e4173['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1837df,_0x4d3499,_0x214b2d){const _0x11277d=[];for(const _0x4ff593 of _0x4d3499['getItems']())_0x4ff593['hasAttribute'](_0x1837df)&&_0x11277d['push'](_0x214b2d['createRangeOn'](_0x4ff593));return _0x11277d;}function _e(_0xbda217,_0x329ae1,{showActiveMarker:_0x5af9b1=!0x0}={}){const _0x45001b=_0xbda217['plugins']['get']('TrackChangesEditing');return(_0x5e4f34,_0x52caf3,_0x2f3842)=>{if(!_0x2f3842['consumable']['test'](_0x52caf3['markerRange'],_0x5e4f34['name']))return;const _0x2b0c91=_0x52caf3['markerRange']['getWalker'](),_0x48e786=_0x52caf3['markerRange']['start'],_0x5608be=_0xbda217['model']['schema'];let _0x190d0b=null,_0x227f7b=null,_0x893c12=!0x1,_0x5732c8=!0x1;for(const _0x4d0d41 of _0x2b0c91){const _0x32d1c4=_0x4d0d41['item'];_0x893c12=_0x893c12||_0x5608be['isContent'](_0x32d1c4);const _0x299a74=_0x2f3842['mapper']['toViewElement'](_0x32d1c4);if(_0x299a74&&_0x299a74['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4d0d41['type']&&(_0x5608be['isBlock'](_0x32d1c4)&&!_0x5608be['isLimit'](_0x32d1c4)&&(_0x32d1c4['nextSibling']||_0x48e786['isAtEnd']?_0x190d0b&&_0x190d0b['parent']==_0x32d1c4||(_0x190d0b=_0x32d1c4,_0x43d432(_0x4d0d41['previousPosition']),_0x5732c8=!0x0):_0x227f7b=_0x227f7b||_0x4d0d41['previousPosition']));}function _0x43d432(_0x420b69){const _0xbaeeb6=_0x2f3842['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x329ae1}),_0x246972=_0x2f3842['mapper']['toViewPosition'](_0x420b69);_0x5af9b1&&_0x45001b['activeMarkers']['includes'](_0x52caf3['markerName'])&&_0x2f3842['writer']['addClass']('ck-suggestion-marker--active',_0xbaeeb6),_0x2f3842['writer']['insert'](_0x246972,_0xbaeeb6),_0x2f3842['mapper']['bindElementToMarker'](_0xbaeeb6,_0x52caf3['markerName']);}_0x893c12||_0x5732c8||!_0x227f7b||_0x43d432(_0x227f7b);};}class q extends _0x506527{static get['requires'](){return[_0x359dfa];}['init'](){const _0x25131c=this['editor'],_0x2dfa5a=_0x25131c['plugins']['get']('TrackChangesEditing');_0x2dfa5a['enableCommand']('delete');const _0x51fc70=_0x25131c['commands']['get']('deleteForward');_0x2dfa5a['enableCommand']('deleteForward',(_0x1b5ba3,_0x33a410={})=>{const _0x245f4c=_0x25131c['model']['createSelection'](_0x25131c['model']['document']['selection']);_0x245f4c['isCollapsed']&&_0x25131c['model']['modifySelection'](_0x245f4c,{'direction':'forward','unit':_0x33a410['unit']});const _0x586775=_0x245f4c['getFirstRange'](),_0x2e68be=_0x53f8a1['fromRange'](_0x586775);let _0x5c161c;_0x1b5ba3(_0x33a410),_0x5c161c='$graveyard'==_0x2e68be['root']['rootName']?_0x25131c['model']['createRange'](_0x586775['start']):_0x25131c['model']['createRange'](_0x2e68be['start'],_0x2e68be['end']),_0x2e68be['detach'](),_0x25131c['model']['enqueueChange'](_0x51fc70['buffer']['batch'],_0x2731a2=>{_0x51fc70['buffer']['lock'](),_0x2731a2['setSelection'](_0x2731a2['createRange'](_0x5c161c['end'])),_0x51fc70['buffer']['unlock']();});}),_0x25131c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x25131c,'merge'),{'priority':'high'}),_0x25131c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4638a2,_0x660998,_0x56a2e8)=>{_0x56a2e8['options']['showSuggestionHighlights']&&_e(_0x25131c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4638a2,_0x660998,_0x56a2e8);},{'priority':'high'}),_0x25131c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x30e212,_0xf422b7,_0x5b7773)=>{const _0x57c714=_0x5b7773['mapper']['markerNameToElements'](_0xf422b7['markerName']);if(_0x57c714){for(const _0x532814 of _0x57c714)_0x532814['is']('uiElement')&&(_0x5b7773['mapper']['unbindElementFromMarkerName'](_0x532814,_0xf422b7['markerName']),_0x5b7773['writer']['remove'](_0x532814));}},{'priority':'high'});}}class z extends _0x506527{['afterInit'](){const _0x14e980=this['editor'];if(!_0x14e980['plugins']['has']('ListEditing'))return;const _0x58d651=_0x14e980['locale'],_0x1aaf41=_0x14e980['plugins']['get']('TrackChangesEditing'),_0x456ced=_0x14e980['plugins']['has']('TodoListEditing'),_0x3c3d0f=!!_0x14e980['config']['get']('list.multiBlock');function _0x57b462(_0x378961){return{'type':'format','content':''+o(_0x58d651,'*Set\x20format:*\x20%0',_0x378961)};}function _0x3d800f(_0x35a575){return{'type':'format','content':''+o(_0x58d651,'*Remove\x20format:*\x20%0',_0x35a575)};}_0x1aaf41['enableDefaultAttributesIntegration']('numberedList'),_0x1aaf41['enableDefaultAttributesIntegration']('bulletedList'),_0x1aaf41['enableDefaultAttributesIntegration']('customNumberedList'),_0x1aaf41['enableDefaultAttributesIntegration']('customBulletedList'),_0x1aaf41['enableDefaultAttributesIntegration']('indentList'),_0x1aaf41['enableDefaultAttributesIntegration']('outdentList'),_0x1aaf41['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1aaf41['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1aaf41['registerBlockAttribute']('listItemId'),_0x1aaf41['registerBlockAttribute']('listType'),_0x1aaf41['registerBlockAttribute']('listIndent'),_0x3c3d0f&&(_0x1aaf41['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1aaf41['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x456ced&&(_0x1aaf41['enableDefaultAttributesIntegration']('todoList'),_0x1aaf41['enableDefaultAttributesIntegration']('checkTodoList'),_0x1aaf41['registerBlockAttribute']('todoListChecked'),_0x1aaf41['descriptionFactory']['registerDescriptionCallback'](_0x4e3d2e=>{const {data:_0x5e4e1f}=_0x4e3d2e;if(_0x5e4e1f&&'todoListChecked'==_0x5e4e1f['key'])return{'type':'format','content':_0x5e4e1f['newValue']?o(_0x58d651,'*Check\x20item*'):o(_0x58d651,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x224ab7=>{if(_0x224ab7['batch']['isUndo'])return!0x1;let _0x574f39=!0x1;const _0x1f6021=_0x1aaf41['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11c6f1=>'todoListChecked'===_0x1aaf41['_getAttributeKey'](_0x11c6f1));for(const _0x9706e9 of _0x1f6021){'todo'!=_0x9706e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1aaf41['_findSuggestions'](_0x9706e9['getFirstRange'](),'attribute')['find'](_0x36425e=>'listType'===_0x1aaf41['_getAttributeKey'](_0x36425e['suggestion']))||(_0x224ab7['removeMarker'](_0x9706e9['getFirstMarker']()),_0x574f39=!0x0));}return _0x574f39;})),_0x1aaf41['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x58d651,'FORMAT_INDENT'));const _0x5e9ce2={'type':'format','content':''};_0x1aaf41['descriptionFactory']['registerDescriptionCallback'](_0x3fb9dc=>{const {data:_0x7b81d5}=_0x3fb9dc;if(!_0x7b81d5||'listType'!=_0x7b81d5['key'])return;let _0x11684d=_0x3fb9dc['head'];for(;_0x11684d;){if(_0x11684d['data']&&(('listStyle'==_0x11684d['data']['key']||'listMarkerStyle'==_0x11684d['data']['key'])&&(_0x11684d['data']['newValue']&&'default'!=_0x11684d['data']['newValue']||'default'!=_0x11684d['data']['oldValue']&&!_0x7b81d5['newValue'])||!_0x3c3d0f&&_0x11684d['data']['key']==m))return _0x5e9ce2;_0x11684d=_0x11684d['next'];}if(null==_0x7b81d5['newValue'])switch(_0x7b81d5['oldValue']){case'bulleted':return _0x3d800f(o(_0x58d651,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d800f(o(_0x58d651,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d800f(o(_0x58d651,'ELEMENT_TODO_LIST'));}switch(_0x7b81d5['newValue']){case'bulleted':return _0x57b462(o(_0x58d651,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57b462(o(_0x58d651,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57b462(o(_0x58d651,'ELEMENT_TODO_LIST'));}}),_0x1aaf41['descriptionFactory']['registerDescriptionCallback'](_0x4c2daf=>{const {data:_0x26dc18}=_0x4c2daf;if(_0x26dc18&&'listIndent'==_0x26dc18['key'])return null==_0x26dc18['newValue']||null==_0x26dc18['oldValue']&&0x0==_0x26dc18['newValue']?_0x5e9ce2:void 0x0;}),_0x1aaf41['descriptionFactory']['registerDescriptionCallback'](_0x3b6219=>{if('attribute'!=_0x3b6219['type'])return;const {data:_0x2e7768}=_0x3b6219;if(!_0x2e7768||'listItemId'!=_0x2e7768['key'])return;const _0x2e9471=le(_0x3b6219);return'newValue'==_0x2e9471?{'type':'format','content':o(_0x58d651,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2e9471?{'type':'format','content':o(_0x58d651,'*Split:*\x20list\x20item')}:_0x5e9ce2;}),_0x14e980['model']['document']['registerPostFixer'](_0x204566=>this['listItemIdFixer'](_0x204566)),_0x14e980['model']['document']['registerPostFixer'](_0x19c28b=>this['noTrackChangesFixer'](_0x19c28b)),_0x14e980['model']['document']['registerPostFixer'](_0x88f3bb=>this['assureChains'](_0x88f3bb)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3846d2){if(_0x3846d2['batch']['isUndo']||!_0x3846d2['batch']['isLocal'])return!0x1;let _0x393404=!0x1;const _0x433fe1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eff74=>_0x1eff74['data']&&'listItemId'==_0x1eff74['data']['key'])['filter'](_0x2c252d=>_0x2c252d['data']['newValue']&&_0x2c252d['data']['oldValue']);for(const _0x5161ae of _0x433fe1)le(_0x5161ae)||(_0x3846d2['removeMarker'](_0x5161ae['getFirstMarker']()),_0x393404=!0x0);return _0x393404;}['noTrackChangesFixer'](_0x5dbdad){if(_0x5dbdad['batch']['isUndo']||!_0x5dbdad['batch']['isLocal'])return!0x1;const _0x274d6a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x274d6a['trackChangesCommand']['value'])return!0x1;let _0x2a3b9d=!0x1;const _0x54bbd8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x43a095=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x198937=>'attribute'==_0x198937['type'])['filter'](_0x4d006c=>_0x54bbd8['includes'](_0x4d006c['attributeKey']));if(0x0==_0x43a095['length'])return _0x2a3b9d;for(const _0x4ede96 of _0x43a095){const _0x3325d6=_0x274d6a['_findSuggestions'](_0x4ede96['range'],'attribute')['filter'](_0xd2d9cc=>!_0xd2d9cc['meta']['isNextTo'])['map'](_0x213100=>_0x213100['suggestion'])['filter'](_0x432437=>{const _0x3abd63=_0x274d6a['_getAttributeKey'](_0x432437);return _0x54bbd8['includes'](_0x3abd63);});if(_0x3325d6['length']){for(const _0x48123f of _0x3325d6)_0x5dbdad['removeMarker'](_0x48123f['getFirstMarker']());_0x2a3b9d=!0x0;}}return _0x2a3b9d;}['assureChains'](_0xdeadc8){if(_0xdeadc8['batch']['isUndo']||!_0xdeadc8['batch']['isLocal'])return!0x1;const _0x348a05=this['editor']['plugins']['get']('TrackChangesEditing');let _0x39f480=!0x1;const _0x2a0579=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4b6ab1 of _0x348a05['getSuggestions']({'skipNotAttached':!0x0})){const _0x994e06=_0x348a05['_findSuggestions'](_0x4b6ab1['getFirstRange'](),'attribute')['map'](_0x37e51e=>_0x37e51e['suggestion'])['filter'](_0x194e31=>_0x194e31['data']&&_0x2a0579['includes'](_0x194e31['data']['key']));if(!_0x994e06['length'])continue;const _0x24f6ae=_0x994e06[0x0]['head']['attributes']['groupId'];if(!_0x994e06['every'](_0x1550a5=>_0x1550a5['attributes']['groupId']===_0x24f6ae)){for(const _0x3e4fce of _0x994e06)_0x250650(_0x3e4fce,_0x24f6ae)&&(_0x39f480=!0x0);}}return _0x39f480;function _0x50ed6b(_0x1fe97a,_0x506089){for(const _0x50dd96 of _0x348a05['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c143c=>'attribute'==_0x4c143c['type']&&_0x4c143c['attributes']['groupId']==_0x1fe97a))_0x50dd96['setAttribute']('groupId',_0x506089);}function _0x250650(_0x3c6cd5,_0x20597f){let _0x15b61b=_0x3c6cd5['head'],_0xd2cb6e=!0x1;for(;_0x15b61b;)_0x15b61b['attributes']['groupId']!=_0x20597f&&(_0x50ed6b(_0x15b61b['attributes']['groupId'],_0x20597f),_0x15b61b['setAttribute']('groupId',_0x20597f),_0xd2cb6e=!0x0),_0x15b61b=_0x15b61b['next'];return _0xd2cb6e;}}['_supportLegacySuggestions'](){const _0xfe1ce=this['editor'],_0x350c21=_0xfe1ce['locale'],_0x152794=_0xfe1ce['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x152794['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x331389,_0x3ad6a2){const _0x3c717b=[];for(let _0x3ad32f of _0x331389)_0x3ad32f['start']['nodeAfter']===_0x3ad32f['end']['parent']&&(_0x3ad32f=_0xfe1ce['model']['createRange'](_0xfe1ce['model']['createPositionAt'](_0x3ad32f['start']['nodeAfter'],0x0))),_0x3c717b['push'](_0x3ad32f);_0xfe1ce['model']['change'](_0x46b9da=>{const _0x442bc5=_0xfe1ce['model']['document']['selection'],_0x3243f7=Array['from'](_0x442bc5['getRanges']())['map'](_0x62ce03=>_0x53f8a1['fromRange'](_0x62ce03));_0x46b9da['setSelection'](_0x3c717b),_0xfe1ce['commands']['get'](_0x3ad6a2['commandName'])['refresh'](),_0x3ad6a2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xfe1ce['execute'](_0x3ad6a2['commandName'],..._0x3ad6a2['commandParams']),_0x46b9da['setSelection'](_0x3243f7);for(const _0x271462 of _0x3243f7)_0x271462['detach']();});}),_0x152794['descriptionFactory']['registerElementLabel'](function(_0x554195){const _0x20ef27=!_0xfe1ce['model']['schema']['isObject'](_0x554195),_0x54eb85=_0x554195['previousSibling'],_0x2f4ff4=_0x554195['nextSibling'],_0x4dbf65=_0x554195['getAttribute']('listItemId'),_0x382079=!_0x54eb85||_0x54eb85['getAttribute']('listItemId')!==_0x4dbf65,_0x9b3c98=!_0x2f4ff4||_0x2f4ff4['getAttribute']('listItemId')!==_0x4dbf65;return _0x20ef27&&Boolean(_0x4dbf65)&&_0x382079&&_0x9b3c98;},_0x5a1862=>o(_0x350c21,'ELEMENT_LIST_ITEM',_0x5a1862));}['_registerLegacyDescription'](){const _0x5cec4f=this['editor'],_0x170394=_0x5cec4f['locale'];function _0x2af0dc(_0x155af9){const _0x570a4e=_0x5cec4f['commands']['get']('bulletedList')['value'],_0x4f51aa=_0x5cec4f['commands']['get']('numberedList')['value'];return'numberedList'===_0x155af9?_0x570a4e:_0x4f51aa;}_0x5cec4f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d9e3b){if('formatBlock'!=_0x2d9e3b['type'])return;const {data:_0x2d43ef}=_0x2d9e3b;if(!_0x2d43ef)return;let _0x21f2a7,_0x3653a5,_0x497e35,_0x452d14;switch(_0x2d43ef['commandName']){case'bulletedList':_0x497e35=_0x2d43ef['commandParams'][0x0]['forceValue'],_0x452d14=_0x2af0dc(_0x2d43ef['commandName']),_0x21f2a7=_0x497e35?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x452d14&&_0x5cec4f['config']['get']('list.multiBlock')||(_0x21f2a7='*Change\x20to:*\x20%0'),_0x3653a5={'type':'format','content':o(_0x170394,_0x21f2a7,o(_0x170394,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x497e35=_0x2d43ef['commandParams'][0x0]['forceValue'],_0x452d14=_0x2af0dc(_0x2d43ef['commandName']),_0x21f2a7=_0x497e35?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x452d14&&_0x5cec4f['config']['get']('list.multiBlock')||(_0x21f2a7='*Change\x20to:*\x20%0'),_0x3653a5={'type':'format','content':o(_0x170394,_0x21f2a7,o(_0x170394,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21f2a7='*Indent:*\x20%0',_0x3653a5={'type':'format','content':o(_0x170394,_0x21f2a7,o(_0x170394,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21f2a7=function(_0x1dbbe9){const _0x54e821=_0x1dbbe9['getFirstRange']();let _0x2c4d72=_0x54e821['start']['nodeAfter'];for(;_0x2c4d72&&_0x54e821['containsItem'](_0x2c4d72);){if(_0x2c4d72['getAttribute']('listIndent')>0x0)return!0x1;_0x2c4d72=_0x2c4d72['nextSibling'];}return!0x0;}(_0x2d9e3b)?o(_0x170394,'*Format:*\x20remove\x20from\x20%0',o(_0x170394,function(_0x3a4c31){return'ELEMENT_'+_0x3a4c31['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d9e3b))):o(_0x170394,'*Outdent:*\x20%0',o(_0x170394,'ELEMENT_LIST_ITEM')),_0x3653a5={'type':'format','content':_0x21f2a7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2d43ef['multipleBlocks']&&(_0x21f2a7='*Merge:*\x20%0',_0x3653a5={'type':'deletion','content':o(_0x170394,_0x21f2a7,o(_0x170394,'ELEMENT_LIST_ITEM'))});}return _0x3653a5;});}}function le(_0x52cf55){let _0x48b33f=_0x52cf55['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x48b33f;){const _0x3e98bb=_0x48b33f['getAttribute']('listItemId');if(!_0x3e98bb)return!0x1;if(_0x3e98bb==_0x52cf55['data']['newValue'])return'newValue';if(_0x3e98bb==_0x52cf55['data']['oldValue'])return'oldValue';_0x48b33f=_0x48b33f['previousSibling'];}return!0x1;}class pe extends _0x506527{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a1d5a=this['editor']['config']['get']('list.properties'),_0x413ca9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a1d5a['styles']&&(_0x413ca9['enableDefaultAttributesIntegration']('listStyle'),_0x413ca9['registerBlockAttribute']('listStyle')),_0x4a1d5a['reversed']&&(_0x413ca9['enableDefaultAttributesIntegration']('listReversed'),_0x413ca9['registerBlockAttribute']('listReversed')),_0x4a1d5a['startIndex']&&(_0x413ca9['enableDefaultAttributesIntegration']('listStart'),_0x413ca9['registerBlockAttribute']('listStart'));const _0x3fc0a8={'type':'format','content':''};_0x413ca9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x24ade8=this['editor']['locale'];_0x413ca9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x24ade8,'FORMAT_LIST_REVERSED')),_0x413ca9['descriptionFactory']['registerDescriptionCallback'](_0x4f76d6=>{const {data:_0x16b8aa}=_0x4f76d6;if(_0x16b8aa&&'listReversed'==_0x16b8aa['key'])return null==_0x16b8aa['newValue']||0x0==_0x16b8aa['newValue']&&null==_0x16b8aa['oldValue']?_0x3fc0a8:void 0x0;}),_0x413ca9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x24ade8,'FORMAT_LIST_START')),_0x413ca9['descriptionFactory']['registerDescriptionCallback'](_0x438213=>{const {data:_0x456ba6}=_0x438213;if(_0x456ba6&&'listStart'==_0x456ba6['key'])return null==_0x456ba6['newValue']||0x1==_0x456ba6['newValue']&&null==_0x456ba6['oldValue']?_0x3fc0a8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x527aed=>{if(_0x527aed['batch']['isUndo'])return!0x1;let _0x549018=!0x1;const _0x2cdc4c=_0x413ca9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5959a9=>{const _0x473d9c=_0x413ca9['_getAttributeKey'](_0x5959a9);return'listStart'==_0x473d9c||'listReversed'==_0x473d9c;});for(const _0x4a3946 of _0x2cdc4c){const _0x1bf712=_0x4a3946['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1bf712||'customNumbered'==_0x1bf712)continue;_0x413ca9['_findSuggestions'](_0x4a3946['getFirstRange'](),'attribute')['find'](_0x37f146=>'listType'==_0x413ca9['_getAttributeKey'](_0x37f146['suggestion']))||(_0x527aed['removeMarker'](_0x4a3946['getFirstMarker']()),_0x549018=!0x0);}return _0x549018;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3841ff){const _0x5a2662=this['editor']['locale'],{data:_0x15b2d5}=_0x3841ff,_0xeaf43a={'type':'format','content':''};if(!_0x15b2d5||'listStyle'!=_0x15b2d5['key'])return;if(!_0x15b2d5['oldValue'])return'default'==_0x15b2d5['newValue']?_0xeaf43a:{'type':'format','content':''+o(_0x5a2662,'*Set\x20format:*\x20%0',o(_0x5a2662,this['_getTranslationKeyForListStyle'](_0x15b2d5['newValue'])))};if(!_0x15b2d5['newValue']){if('default'==_0x15b2d5['oldValue'])return _0xeaf43a;let _0x36bc9b=_0x3841ff['head'];for(;_0x36bc9b;){if(_0x36bc9b['data']&&'listType'==_0x36bc9b['data']['key']&&_0x36bc9b['data']['newValue'])return _0xeaf43a;_0x36bc9b=_0x36bc9b['next'];}return{'type':'format','content':''+o(_0x5a2662,'*Remove\x20format:*\x20%0',o(_0x5a2662,this['_getTranslationKeyForListStyle'](_0x15b2d5['oldValue'])))};}if('default'!=_0x15b2d5['newValue'])return{'type':'format','content':''+o(_0x5a2662,'*Set\x20format:*\x20%0',o(_0x5a2662,this['_getTranslationKeyForListStyle'](_0x15b2d5['newValue'])))};let _0x2bb33b=_0x3841ff['head'];for(;_0x2bb33b;){if(_0x2bb33b['data']&&'listType'==_0x2bb33b['data']['key']&&_0x2bb33b['data']['newValue']&&_0x2bb33b['data']['oldValue'])return _0xeaf43a;_0x2bb33b=_0x2bb33b['next'];}return{'type':'format','content':o(_0x5a2662,'*Set\x20format:*\x20%0',o(_0x5a2662,'ELEMENT_'+_0x3841ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xcf461e=this['editor'],_0x931b1a=_0xcf461e['locale'];_0xcf461e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x371201=>{if('formatBlock'!=_0x371201['type'])return;const {data:_0x544a53}=_0x371201;if(!_0x544a53)return;let _0x56a35c,_0x273a42;switch(_0x544a53['commandName']){case'listStyle':_0x56a35c='*Change\x20to:*\x20%0',_0x273a42={'type':'format','content':o(_0x931b1a,_0x56a35c,o(_0x931b1a,this['_getTranslationKeyForListStyle'](_0x544a53['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56a35c=_0x544a53['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x273a42={'type':'format','content':o(_0x931b1a,_0x56a35c)};break;case'listStart':_0x56a35c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x273a42={'type':'format','content':o(_0x931b1a,_0x56a35c,_0x544a53['commandParams'][0x0]['startIndex'])};}return _0x273a42;});}['_getTranslationKeyForListStyle'](_0x201397){return'ELEMENT_'+function(_0x56da63){if(ye['includes'](_0x56da63))return'bulleted';if(he['includes'](_0x56da63))return'numbered';return null;}(_0x201397)['toUpperCase']()+'_LIST_'+_0x201397['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x506527{static get['requires'](){return[_0x4bcc1d];}['init'](){const _0x573554=this['editor'],_0x5c5081=_0x573554['plugins']['get']('TrackChangesEditing'),_0x259859=_0x573554['commands']['get']('enter');_0x5c5081['enableCommand']('enter',()=>{_0x573554['model']['change'](_0xdba561=>{const _0x3079c1=_0x573554['model']['document']['selection'],_0x23c31a=_0x3079c1['getFirstPosition'](),_0x4e54fe=_0x53f8a1['fromRange'](_0x3079c1['getFirstRange']());if(_0x259859['enterBlock'](_0xdba561)){const _0x29b039=_0x573554['model']['createPositionAt'](_0x23c31a['parent']['nextSibling'],0x0),_0x520747=_0xdba561['createRange'](_0x23c31a,_0x29b039);_0x5c5081['markInsertion'](_0x520747);}else _0xdba561['setSelection'](_0xdba561['createRange'](_0x4e54fe['end']));_0x4e54fe['detach'](),_0x259859['fire']('afterExecute',{'writer':_0xdba561});});}),_0x573554['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x573554,'split'),{'priority':'high'}),_0x573554['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4e6a45,_0x54ba0d,_0x541000)=>{const _0x48adc7=_0x541000['mapper']['markerNameToElements'](_0x54ba0d['markerName']);if(_0x48adc7){for(const _0x535d48 of _0x48adc7)_0x535d48['hasClass']('ck-suggestion-marker-split')&&(_0x541000['mapper']['unbindElementFromMarkerName'](_0x535d48,_0x54ba0d['markerName']),_0x541000['writer']['remove'](_0x535d48));}},{'priority':'high'}),_0x573554['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc6a1be,_0x2d3891,_0x389967)=>{_0x389967['options']['showSuggestionHighlights']&&_e(_0x573554,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xc6a1be,_0x2d3891,_0x389967);},{'priority':'high'});}}class J extends _0x506527{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x6fc0ba=this['editor']['plugins']['get']('TrackChangesEditing');_0x6fc0ba['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x6fc0ba['enableCommand']('findNext'),_0x6fc0ba['enableCommand']('findPrevious'),_0x6fc0ba['enableCommand']('replace'),_0x6fc0ba['enableCommand']('replaceAll');}['handleFindCommand'](_0x3debb3,_0x122f41,_0x18acd5={}){const _0x425e3f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3debb3(_0x30713f=>{let _0x1dafa0=('string'==typeof _0x122f41?_0x425e3f['findByTextCallback'](_0x122f41,_0x18acd5):_0x122f41)(_0x30713f);Array['isArray'](_0x1dafa0)&&(_0x1dafa0={'results':_0x1dafa0,'searchText':'string'==typeof _0x122f41?_0x122f41:''});const _0x1cff85=_0x1dafa0['results']['filter'](_0x2d4cd3=>!0x1===this['_isInDeletionRange'](_0x2d4cd3,_0x30713f['item']));return{..._0x1dafa0,'results':_0x1cff85};},_0x18acd5);}['_isInDeletionRange'](_0x52ed0d,_0x73fc62){const _0x1bb1bb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x73fc62,_0x52ed0d['start']),this['editor']['model']['createPositionAt'](_0x73fc62,_0x52ed0d['end']));for(const _0x54f4cf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1bb1bb['getIntersection'](_0x54f4cf['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x506527{['afterInit'](){const _0x32c39a=this['editor']['locale'],_0x2088d7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x52ecb7,commandName:_0x3df934}of ro)this['editor']['plugins']['has'](_0x52ecb7)&&(_0x2088d7['enableDefaultAttributesIntegration'](_0x3df934),_0x2088d7['registerInlineAttribute'](_0x3df934));_0x2088d7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x32c39a,'FORMAT_FONT_SIZE')),_0x2088d7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x32c39a,'FORMAT_FONT_FAMILY')),_0x2088d7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x32c39a,'FORMAT_FONT_COLOR')),_0x2088d7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x32c39a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27a835=this['editor'],_0x5b85e7=_0x27a835['locale'];_0x27a835['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19df4d=>{const _0x29b387=_0x5b85e7['t'];if('formatInline'!=_0x19df4d['type'])return;const {data:_0x53d8b0}=_0x19df4d;if(null!=_0x53d8b0){if('fontSize'==_0x53d8b0['commandName']){const _0x245dfe=_0x53d8b0['commandParams'][0x0]['value'];if(_0x245dfe){const _0x42c200=_0x29b387(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2b6fdc=>_0x2b6fdc['model']==_0x245dfe)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b85e7,'*Set\x20font\x20size:*\x20%0',_0x42c200)};}return{'type':'format','content':o(_0x5b85e7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53d8b0['commandName']){const _0x1f04ed=_0x53d8b0['commandParams'][0x0]['value'];return _0x1f04ed?{'type':'format','content':o(_0x5b85e7,'*Set\x20font\x20family:*\x20%0',_0x1f04ed)}:{'type':'format','content':o(_0x5b85e7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53d8b0['commandName']){const _0x58b8da=_0x53d8b0['commandParams'][0x0]['value'];if(_0x58b8da){const _0x4b3e3d=_0x5e1bf2(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb9a0d1=>_0xb9a0d1['model']==_0x58b8da);let _0x128297=_0x58b8da,_0x2ba965='';return _0x4b3e3d&&(_0x128297=_0x4b3e3d['label'],_0x2ba965=_0x29b387(_0x128297)['toLowerCase']()),{'type':'format','content':o(_0x5b85e7,'*Set\x20font\x20color:*\x20%0',_0x2ba965)['trim'](),'color':{'value':_0x58b8da,'title':_0x2ba965||_0x128297}};}return{'type':'format','content':o(_0x5b85e7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53d8b0['commandName']){const _0x5756db=_0x53d8b0['commandParams'][0x0]['value'];if(_0x5756db){const _0x1a3c61=_0x5e1bf2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4e2cbe=>_0x4e2cbe['model']==_0x5756db);let _0x1703bf=_0x5756db,_0x3ca5ba='';return _0x1a3c61&&(_0x1703bf=_0x1a3c61['label'],_0x3ca5ba=_0x29b387(_0x1703bf)['toLowerCase']()),{'type':'format','content':o(_0x5b85e7,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ca5ba)['trim'](),'color':{'value':_0x5756db,'title':_0x3ca5ba||_0x1703bf}};}return{'type':'format','content':o(_0x5b85e7,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x506527{['afterInit'](){const _0x1f4e8a=this['editor'],_0xb1f4ea=_0x1f4e8a['plugins']['get']('TrackChangesEditing'),_0x5ed02c=_0x1f4e8a['commands']['get']('copyFormat'),_0x210826=_0x1f4e8a['commands']['get']('pasteFormat');_0x5ed02c&&_0x210826&&(_0xb1f4ea['enableDefaultAttributesIntegration']('pasteFormat'),_0xb1f4ea['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x274972=this['editor'],_0x1f948e=_0x274972['locale'];_0x274972['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x204ef3=>{if('formatBlock'!=_0x204ef3['type']&&'formatInline'!=_0x204ef3['type'])return;const {data:_0x132584}=_0x204ef3;if(_0x132584&&'pasteFormat'===_0x132584['commandName']){const _0x5492b1=[],_0x3bec05=_0x132584['commandParams'][0x0];for(const [_0x22fd34,_0xf0d4d3]of Object['entries'](_0x3bec05))_0x5492b1['push'](so(_0x274972,_0x22fd34,_0xf0d4d3));return _0x5492b1['length']?{'type':'format','content':o(_0x1f948e,'*Set\x20format\x20to:*\x20%0',_0x5492b1['join'](',\x20'))}:{'type':'format','content':o(_0x1f948e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4ef56b,_0x1154ba,_0x535ee5){const _0x5dbb79=_0x4ef56b['locale']['t'],_0x402405=_0x1154ba['split'](/(?=[A-Z])/)['join']('\x20'),_0x274d83=_0x5dbb79(_0x402405['charAt'](0x0)['toUpperCase']()+_0x402405['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x535ee5)return _0x274d83;if('fontColor'===_0x1154ba||'fontBackgroundColor'===_0x1154ba){const _0x5e868b=_0x5e1bf2(_0x4ef56b['config']['get']('fontColor.colors'))['find'](_0xee5d82=>_0xee5d82['model']==_0x535ee5);return _0x274d83+'\x20('+(_0x5e868b?_0x5dbb79(_0x5e868b['label'])['toLowerCase']():_0x535ee5)+')';}if('fontSize'===_0x1154ba&&isNaN(parseFloat(_0x535ee5))){const _0x1c53a3=_0x4ef56b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4ef56b['config']['get']('fontSize.options'))['find'](_0x26aeea=>_0x26aeea['model']==_0x535ee5);return _0x274d83+'\x20('+(_0x1c53a3?_0x5dbb79(_0x1c53a3['title'])['toLowerCase']():_0x535ee5)+')';}return _0x274d83+'\x20('+_0x535ee5+')';}class Y extends _0x506527{['_headingOptions'];['afterInit'](){const _0x11d154=this['editor'];if(!_0x11d154['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11d154['config']['get']('heading.options');const _0x26916f=_0x11d154['locale'],_0x5a7f18=_0x11d154['plugins']['get']('TrackChangesEditing');_0x5a7f18['enableDefaultAttributesIntegration']('heading');for(const _0x521ade of this['_headingOptions'])'paragraph'!=_0x521ade['model']&&_0x5a7f18['descriptionFactory']['registerElementLabel'](_0x521ade['model'],_0x3d8026=>{const _0x53c8a5=this['_getHeadingLevel'](_0x521ade['model']);return null!==_0x53c8a5?_0x29fb8e(_0x3d8026,_0x53c8a5):_0x2bd560(_0x3d8026,_0x521ade['title']);});function _0x29fb8e(_0xdfb073,_0x5d1a1f){return o(_0x26916f,'ELEMENT_HEADING',[_0xdfb073,_0x5d1a1f]);}function _0x2bd560(_0x44f77a,_0x16f883){return o(_0x26916f,'ELEMENT_HEADING_CUSTOM',[_0x44f77a,_0x16f883]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb44153=this['editor'],_0x4113e3=_0xb44153['locale'];function _0x2c10a7(_0x140c6b,_0xdccb38){return o(_0x4113e3,'ELEMENT_HEADING_CUSTOM',[_0x140c6b,_0xdccb38]);}_0xb44153['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2c6a=>{if('formatBlock'!=_0x1b2c6a['type'])return;const {data:_0x9cbd7}=_0x1b2c6a;if(_0x9cbd7&&'heading'==_0x9cbd7['commandName']){const _0x34eb1b=_0x9cbd7['commandParams'][0x0]['value'],_0x487eaa=this['_getHeadingLevel'](_0x34eb1b);if(null!==_0x487eaa)return{'type':'format','content':o(_0x4113e3,'*Change\x20to:*\x20%0',(_0x51e6ab=0x1,_0x5bb734=_0x487eaa,o(_0x4113e3,'ELEMENT_HEADING',[_0x51e6ab,_0x5bb734])))};const _0x2f6dea=this['_headingOptions']['find'](_0x415b7b=>_0x415b7b['model']===_0x34eb1b)['title'];return{'type':'format','content':o(_0x4113e3,'*Change\x20to:*\x20%0',_0x2c10a7(0x1,_0x2f6dea))};}var _0x51e6ab,_0x5bb734;});}['_getHeadingLevel'](_0x4c50ce){const _0x21a050=_0x4c50ce['match'](/^heading(\d+)/);if(_0x21a050)return _0x21a050[0x1];const _0x17c3ed=this['_headingOptions']?.['find'](_0x140c95=>_0x140c95['model']==_0x4c50ce);if(_0x17c3ed&&_0x17c3ed['view']){const _0x16fe69=_0x17c3ed['view'],_0x46d6a0=(_0x16fe69['name']??_0x16fe69)['match'](/^h(\d+)/);if(_0x46d6a0)return _0x46d6a0[0x1];}return null;}}class Z extends _0x506527{['afterInit'](){const _0x52c782=this['editor'];if(!_0x52c782['plugins']['has']('HighlightEditing'))return;const _0x519186=_0x52c782['plugins']['get']('TrackChangesEditing'),_0x558421=_0x52c782['locale'];_0x519186['enableDefaultAttributesIntegration']('highlight'),_0x519186['registerInlineAttribute']('highlight'),_0x519186['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x558421,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d781c=this['editor'],_0x557d16=_0x1d781c['locale'];_0x1d781c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x518b57=>{if('formatInline'!=_0x518b57['type'])return;const {data:_0x4a5f31}=_0x518b57;if(_0x4a5f31&&'highlight'==_0x4a5f31['commandName']){const _0x1ccb17=_0x557d16['t'],_0x36ce21=_0x4a5f31['commandParams'][0x0]['value'];if(_0x36ce21){const _0x35c675=_0x1d781c['config']['get']('highlight.options')['find'](_0x1edc2f=>_0x1edc2f['model']==_0x36ce21),_0x187c7e=_0x1ccb17(_0x35c675['title'])['toLowerCase']();return{'type':'format','content':o(_0x557d16,'*Set\x20highlight:*\x20%0',_0x187c7e),'color':{'value':_0x35c675['color'],'title':_0x35c675['title']}};}return{'type':'format','content':o(_0x557d16,'*Remove\x20highlight*',o(_0x557d16,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x506527{['afterInit'](){const _0x57f972=this['editor'];if(!_0x57f972['plugins']['has']('HorizontalLineEditing'))return;_0x57f972['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4b0556=_0x57f972['plugins']['get']('TrackChangesEditing'),_0xc8f82e=_0x57f972['locale'];_0x4b0556['descriptionFactory']['registerElementLabel']('horizontalLine',_0x42726e=>o(_0xc8f82e,'ELEMENT_HORIZONTAL_LINE',_0x42726e)),_0x57f972['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1af490,{writer:_0x16e84b,options:_0x532130})=>{if(!_0x532130['showSuggestionHighlights'])return null;const _0x52aa0c=_0x16e84b['createContainerElement']('div'),_0x25a76e=_0x16e84b['createEmptyElement']('hr');return _0x16e84b['addClass']('ck-horizontal-line',_0x52aa0c),_0x16e84b['insert'](_0x16e84b['createPositionAt'](_0x52aa0c,0x0),_0x25a76e),_0x52aa0c;},'converterPriority':'high'});}}class et extends _0x506527{['afterInit'](){const _0x57142c=this['editor'];if(!_0x57142c['plugins']['has']('HtmlEmbed'))return;const _0x46cd21=_0x57142c['plugins']['get']('TrackChangesEditing'),_0x267d4b=_0x57142c['locale'];_0x46cd21['descriptionFactory']['registerElementLabel']('rawHtml',_0x49366b=>o(_0x267d4b,'ELEMENT_HTML_EMBED',_0x49366b)),_0x46cd21['enableDefaultAttributesIntegration']('htmlEmbed'),_0x46cd21['registerBlockAttribute']('value'),_0x46cd21['descriptionFactory']['registerDescriptionCallback'](_0x121eb3=>{if('attribute'!=_0x121eb3['type'])return;const {data:_0x1bdc98}=_0x121eb3;if(_0x1bdc98&&'value'==_0x1bdc98['key']&&_0x121eb3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4ba4c1=o(_0x267d4b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x267d4b,'*Change\x20%0\x20content*',_0x4ba4c1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35ea18=this['editor'],_0x423981=_0x35ea18['locale'];_0x35ea18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x330d32=>{if('formatBlock'!=_0x330d32['type'])return;const {data:_0xac05f}=_0x330d32;if(_0xac05f&&'htmlEmbed'==_0xac05f['commandName']){const _0xe57dc2=o(_0x423981,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x423981,'*Change\x20%0\x20content*',_0xe57dc2)};}});}}class it extends _0x506527{['afterInit'](){const _0x5b2209=this['editor'];if(!_0x5b2209['plugins']['has']('ImageEditing'))return;const _0x449587=_0x5b2209['plugins']['get']('TrackChangesEditing'),_0x44e2ee=_0x5b2209['plugins']['get']('ImageUtils'),_0x345048=_0x5b2209['locale'];_0x449587['enableCommand']('insertImage'),_0x449587['descriptionFactory']['registerElementLabel']('imageBlock',_0x5c1404=>o(_0x345048,'ELEMENT_IMAGE',_0x5c1404)),_0x449587['descriptionFactory']['registerElementLabel']('imageInline',_0x39bc08=>o(_0x345048,'ELEMENT_INLINE_IMAGE',_0x39bc08)),_0x449587['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x345048,'ELEMENT_CAPTION')),_0x5b2209['plugins']['has']('ImageUploadEditing')&&_0x449587['enableCommand']('uploadImage'),_0x5b2209['plugins']['has']('ImageBlockEditing')&&_0x5b2209['plugins']['has']('ImageInlineEditing')&&(_0x449587['enableCommand']('imageTypeInline',(_0x2e4062,_0x2f861c)=>{const _0x276ea7=_0x44e2ee['getClosestSelectedImageElement'](_0x5b2209['model']['document']['selection']);_0x5b2209['model']['change'](()=>{_0x449587['markBlockFormat'](_0x276ea7,{'commandName':'imageTypeInline','commandParams':[_0x2f861c]},[],'convertBlockImageToInline');});}),_0x449587['enableCommand']('imageTypeBlock',(_0x57ee39,_0x32b64b)=>{_0x5b2209['model']['change'](_0x17392d=>{let _0x3ca301=_0x44e2ee['getClosestSelectedImageElement'](_0x5b2209['model']['document']['selection']),_0x10c923=_0x17392d['createRangeOn'](_0x3ca301);const _0x395fee=_0x2e2801['fromPosition'](_0x10c923['start'],'toPrevious'),_0x4d4011=_0x2e2801['fromPosition'](_0x10c923['end'],'toNext');_0x449587['forceDefaultExecution'](()=>_0x57ee39(_0x32b64b)),_0x3ca301=_0x44e2ee['getClosestSelectedImageElement'](_0x5b2209['model']['document']['selection']),_0x10c923=_0x17392d['createRangeOn'](_0x3ca301);const _0x143d05=_0x17392d['createRange'](_0x395fee,_0x4d4011);_0x395fee['detach'](),_0x4d4011['detach'](),_0x449587['markBlockFormat'](_0x3ca301,{'commandName':'imageTypeInline','commandParams':[_0x32b64b]},[],'convertInlineImageToBlock'),_0x143d05['start']['isBefore'](_0x10c923['start'])&&_0x449587['markInsertion'](_0x17392d['createRange'](_0x143d05['start'],_0x10c923['start']),'convertInlineImageToBlock'),_0x10c923['end']['isBefore'](_0x143d05['end'])&&_0x449587['markInsertion'](_0x17392d['createRange'](_0x10c923['end'],_0x143d05['end']),'convertInlineImageToBlock');});}),_0x449587['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x449587['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x449587['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x449587['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x449587['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x449587['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1950a0])=>{const _0x39ce1b=_0x449587['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10668f=_0x1950a0['start'],_0x5505f6=_0x1950a0['end'];const _0x547426=_0x5b2209['model']['schema']['getNearestSelectionRange'](_0x10668f,'backward'),_0x3615c0=_0x5b2209['model']['schema']['getNearestSelectionRange'](_0x5505f6,'forward');_0x547426['isCollapsed']&&(_0x10668f=_0x547426['start']),_0x3615c0['isCollapsed']&&(_0x5505f6=_0x3615c0['end']),_0x39ce1b([_0x5b2209['model']['createRange'](_0x10668f,_0x5505f6)]);}),_0x449587['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb01402),_0x449587['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb01402)),_0x5b2209['plugins']['has']('ImageCaptionEditing')&&(_0x449587['enableCommand']('toggleImageCaption',(_0x37f7f0,_0x1eab27)=>{const _0x3f3086=_0x5b2209['plugins']['get']('ImageCaptionUtils');let _0x5dcd98=_0x44e2ee['getClosestSelectedImageElement'](_0x5b2209['model']['document']['selection']),_0x5209a5=_0x3f3086['getCaptionFromImageModelElement'](_0x5dcd98);_0x5b2209['model']['change'](()=>{if(_0x5209a5)return void _0x449587['markDeletion'](_0x5b2209['model']['createRangeOn'](_0x5209a5));const _0x3f01eb=_0x44e2ee['isBlockImage'](_0x5dcd98);_0x37f7f0(_0x1eab27),_0x5dcd98=_0x44e2ee['getClosestSelectedImageElement'](_0x5b2209['model']['document']['selection']),_0x5209a5=_0x3f3086['getCaptionFromImageModelElement'](_0x5dcd98),_0x449587['markInsertion'](_0x5b2209['model']['createRangeOn'](_0x5209a5),_0x3f01eb?null:'imageCaption');});}),_0x449587['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb01402));const _0xa2a4e1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b0ecd(_0x5e9747,_0xae8470){const _0x3a46b5=_0xa2a4e1['findIndex'](({type:_0x5bfc69,subType:_0x1cae6a})=>_0x5e9747['type']==_0x5bfc69&&_0x5e9747['subType']==_0x1cae6a),_0xcce4e0=_0xa2a4e1['findIndex'](({type:_0x495b93,subType:_0x357134})=>_0xae8470['type']==_0x495b93&&_0xae8470['subType']==_0x357134);if(_0x3a46b5<0x0||_0xcce4e0<0x0)return!0x1;const _0x41b27d=_0x5e9747['getFirstRange'](),_0x180d1f=_0xae8470['getFirstRange']();if((0x0==_0x3a46b5||0x1==_0x3a46b5)&&0x2==_0xcce4e0&&_0x41b27d['isIntersecting'](_0x180d1f))return!0x0;if(0x2==_0x3a46b5&&0x3==_0xcce4e0){const _0x453ec3=_0x449587['_findSuggestions'](_0x41b27d,'insertion')['filter'](({suggestion:_0x576be3,meta:_0x346737})=>_0x346737['isOwn']&&'convertInlineImageToBlock'==_0x576be3['subType']);if(_0x453ec3['length']>0x1&&_0x180d1f['end']['isEqual'](_0x41b27d['start']))return!0x0;if(0x1==_0x453ec3['length']&&(_0x41b27d['start']['isEqual'](_0x180d1f['end'])||_0x41b27d['end']['isEqual'](_0x180d1f['start'])))return!0x0;}if(0x3==_0x3a46b5&&0x3==_0xcce4e0&&_0x41b27d['start']['isBefore'](_0x180d1f['start'])){const _0xe85adb=_0x41b27d['end']['nodeAfter'],_0x251e85=_0x180d1f['start']['nodeBefore'];return _0x44e2ee['isBlockImage'](_0xe85adb)&&_0xe85adb===_0x251e85;}return!0x1;}function _0xb01402(_0xaa5e08,_0x1f1737){return _0x1b0ecd(_0xaa5e08,_0x1f1737)?[_0xaa5e08,_0x1f1737]:_0x1b0ecd(_0x1f1737,_0xaa5e08)?[_0x1f1737,_0xaa5e08]:null;}_0x5b2209['plugins']['has']('ImageResize')&&(_0x449587['enableDefaultAttributesIntegration']('resizeImage'),_0x449587['registerBlockAttribute']('resizedWidth'),_0x449587['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x345048,'FORMAT_IMAGE_SIZE'))),_0x5b2209['plugins']['has']('ImageTextAlternativeEditing')&&(_0x449587['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x449587['registerBlockAttribute']('alt')),_0x449587['descriptionFactory']['registerDescriptionCallback'](_0x38d5a=>{if(!!_0xa2a4e1['find'](({type:_0xb423e,subType:_0x15d1f1})=>_0x38d5a['type']==_0xb423e&&_0x38d5a['subType']==_0x15d1f1))return _0x38d5a['previous']?{}:void 0x0;}),_0x449587['descriptionFactory']['registerDescriptionCallback'](_0x1d5d3f=>{if('insertion'==_0x1d5d3f['type']||'deletion'==_0x1d5d3f['type']){const _0x19ab4b=_0x1d5d3f['getContainedElement']();if(_0x19ab4b&&_0x19ab4b['is']('element','caption'))return{'type':'insertion'==_0x1d5d3f['type']?'addObject':'removeObject','element':_0x19ab4b,'quantity':0x1};}}),_0x449587['descriptionFactory']['registerDescriptionCallback'](_0x44cad6=>'formatBlock'==_0x44cad6['type']&&'convertInlineImageToBlock'==_0x44cad6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44cad6['type']&&'convertBlockImageToInline'==_0x44cad6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x449587['descriptionFactory']['registerDescriptionCallback'](_0x3383d9=>{if('attribute'!=_0x3383d9['type'])return;const {data:_0x432729}=_0x3383d9;if(!_0x432729||'alt'!=_0x432729['key'])return;const _0x511a44=_0x432729['newValue'];return _0x511a44?{'type':'format','content':o(_0x345048,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x511a44+'\x22')}:{'type':'format','content':o(_0x345048,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xee709a=this['editor'],_0x34a2b9=_0xee709a['locale'];_0xee709a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c615f=>{if('formatBlock'!=_0x1c615f['type']&&'formatInline'!=_0x1c615f['type'])return;const {data:_0x43edcb}=_0x1c615f;if(_0x43edcb){if('imageTextAlternative'==_0x43edcb['commandName']){const _0x29a28d=_0x43edcb['commandParams'][0x0]['newValue'];return _0x29a28d?{'type':'format','content':o(_0x34a2b9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29a28d+'\x22')}:{'type':'format','content':o(_0x34a2b9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x43edcb['commandName']){const _0x563fdf=_0x43edcb['commandParams'][0x0]['width'];return _0x563fdf?{'type':'format','content':o(_0x34a2b9,'*Set\x20image\x20width:*\x20%0',_0x563fdf)}:{'type':'format','content':o(_0x34a2b9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x506527{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x158601=this['editor']['locale'],_0x4b3513=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b3513['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b3513['registerBlockAttribute']('src'),_0x4b3513['descriptionFactory']['registerDescriptionCallback'](_0x9344bd=>{if('attribute'!=_0x9344bd['type'])return;const {data:_0x5392b2}=_0x9344bd;return _0x5392b2&&'src'==_0x5392b2['key']?_0x5392b2['newValue']&&_0x5392b2['oldValue']?{'type':'format','content':o(_0x158601,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55c698=this['editor']['plugins']['get']('TrackChangesEditing');_0x55c698['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x55c698['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55c698['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x55c698['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x443981=this['editor'],_0xed5c56=_0x443981['locale'];_0x443981['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263666=>{if('formatBlock'!=_0x263666['type']&&'formatInline'!=_0x263666['type'])return;const {data:_0x285fee}=_0x263666;if(!_0x285fee||'replaceImageSource'!=_0x285fee['commandName'])return;return{'type':'format','content':o(_0xed5c56,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x506527{['afterInit'](){const _0x21d4d5=this['editor'];if(!_0x21d4d5['plugins']['has']('ImageStyleEditing'))return;const _0x5f3baf=_0x21d4d5['plugins']['get']('TrackChangesEditing'),_0x44ca8d=_0x21d4d5['plugins']['get']('ImageUtils'),_0x390269={};_0x5f3baf['enableCommand']('imageStyle',(_0x3f7ce8,_0x2cf91b)=>{const _0x4aa51b=_0x21d4d5['plugins']['get']('Users')['me'],_0x5f1f32=_0x21d4d5['commands']['get']('imageStyle');let _0x363ab8=_0x44ca8d['getClosestSelectedImageElement'](_0x21d4d5['model']['document']['selection']),_0x355f4f=_0x21d4d5['model']['createRangeOn'](_0x363ab8),_0x4ee389=_0x5f1f32['value'];if(_0x4ee389==_0x2cf91b['value'])return;const _0x11d7bd={'commandName':'imageStyle','commandParams':[_0x2cf91b],'formatGroupId':_0x4f07c9()};_0x21d4d5['model']['change'](()=>{if(_0x5f3baf['getSuggestions']()['filter'](_0x2e9bbe=>_0x2e9bbe['isInContent']&&_0x4aa51b==_0x2e9bbe['author']&&('formatBlock'==_0x2e9bbe['type']||'formatInline'==_0x2e9bbe['type'])&&('imageStylePreApply'==_0x2e9bbe['subType']||'imageStylePostApply'==_0x2e9bbe['subType'])&&_0x2e9bbe['getFirstRange']()['isEqual'](_0x355f4f))['forEach'](_0x13a18d=>_0x5f3baf['discardSuggestion'](_0x13a18d['head'])),_0x363ab8=_0x44ca8d['getClosestSelectedImageElement'](_0x21d4d5['model']['document']['selection']),_0x355f4f=_0x21d4d5['model']['createRangeOn'](_0x363ab8),_0x5f1f32['refresh'](),_0x21d4d5['commands']['get']('imageTypeInline')['refresh'](),_0x21d4d5['commands']['get']('imageTypeBlock')['refresh'](),_0x4ee389=_0x5f1f32['value'],_0x4ee389!=_0x2cf91b['value'])return _0x44ca8d['isInlineImage'](_0x363ab8)&&_0x5f1f32['shouldConvertImageType'](_0x2cf91b['value'],_0x363ab8)?(_0x3f7ce8({..._0x2cf91b,'setImageSizes':!0x1}),_0x363ab8=_0x44ca8d['getClosestSelectedImageElement'](_0x21d4d5['model']['document']['selection']),void _0x5f3baf['markBlockFormat'](_0x363ab8,{..._0x11d7bd,'commandReversedParams':[{'value':_0x4ee389||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44ca8d['isBlockImage'](_0x363ab8)?_0x5f3baf['markBlockFormat'](_0x363ab8,_0x11d7bd,[],'imageStylePostApply'):_0x5f3baf['markInlineFormat'](_0x355f4f,_0x11d7bd,'imageStylePostApply'));});});for(const _0x1ec76f of _0x21d4d5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x390269[_0x1ec76f['name']]=_0x1ec76f['title']['toLowerCase']();_0x5f3baf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5f3baf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5f3baf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5f3baf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x59d2ff])=>{_0x44ca8d['setImageNaturalSizeAttributes'](_0x59d2ff['getContainedElement']());}),_0x5f3baf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x307b46,_0x4727b2)=>{_0x5f3baf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x307b46,{'commandName':_0x4727b2['commandName'],'commandParams':_0x4727b2['commandReversedParams']});}),_0x5f3baf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b0b6f,_0x5c886a){if(_0x4d7764(_0x2b0b6f,_0x5c886a))return[_0x2b0b6f,_0x5c886a];if(_0x4d7764(_0x5c886a,_0x2b0b6f))return[_0x5c886a,_0x2b0b6f];return null;});const _0x554754=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d7764(_0x246eaf,_0x739060){const _0x1dc683=_0x554754['findIndex'](({type:_0x25570,subType:_0x545864})=>_0x246eaf['type']==_0x25570&&_0x246eaf['subType']==_0x545864),_0x267d27=_0x554754['findIndex'](({type:_0x23639a,subType:_0x542a3d})=>_0x739060['type']==_0x23639a&&_0x739060['subType']==_0x542a3d);if(_0x1dc683<0x0||_0x267d27<0x0)return!0x1;const _0x30a3be=_0x246eaf['getFirstRange'](),_0x21c2d0=_0x739060['getFirstRange']();if((0x0==_0x1dc683||0x1==_0x1dc683)&&0x2==_0x267d27&&_0x30a3be['isIntersecting'](_0x21c2d0))return!0x0;if(0x2==_0x1dc683&&0x3==_0x267d27){const _0x2de695=_0x5f3baf['_findSuggestions'](_0x30a3be,'insertion')['filter'](({suggestion:_0x3b088e,meta:_0x2a7338})=>_0x2a7338['isOwn']&&'convertInlineImageToBlock'==_0x3b088e['subType']);if(_0x2de695['length']>0x1&&_0x21c2d0['end']['isEqual'](_0x30a3be['start']))return!0x0;if(0x1==_0x2de695['length']&&(_0x30a3be['start']['isEqual'](_0x21c2d0['end'])||_0x30a3be['end']['isEqual'](_0x21c2d0['start'])))return!0x0;}if(0x3==_0x1dc683&&0x3==_0x267d27&&_0x30a3be['start']['isBefore'](_0x21c2d0['start'])){const _0x11bcb8=_0x30a3be['end']['nodeAfter'],_0x46a5aa=_0x21c2d0['start']['nodeBefore'];return _0x44ca8d['isBlockImage'](_0x11bcb8)&&_0x11bcb8===_0x46a5aa;}return!0x1;}_0x21d4d5['model']['document']['registerPostFixer'](()=>{let _0x2bc6cc=!0x1;const _0x1661af=Array['from'](_0x21d4d5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5848e4,data:_0x1e6f65}of _0x1661af){const {group:_0x4ab3b5,type:_0x53687b,subType:_0x605179,id:_0x17421f}=_0x5f3baf['_splitMarkerName'](_0x5848e4);if('suggestion'==_0x4ab3b5&&_0x5f3baf['hasSuggestion'](_0x17421f)){if('formatBlock'==_0x53687b&&('imageStylePreApply'==_0x605179||'imageStylePostApply'==_0x605179)){const _0x3b9220=_0x5f3baf['getSuggestion'](_0x17421f);if(_0x1e6f65['newRange']){const _0x5a6237=_0x3b9220['getFirstRange']()['getContainedElement']();if(_0x44ca8d['isBlockImage'](_0x5a6237))continue;_0x5f3baf['discardSuggestion'](_0x3b9220),_0x2bc6cc=!0x0;}}if('insertion'==_0x53687b&&'imageCaption'==_0x605179&&!_0x1e6f65['newRange']){const _0x396da5=_0x5f3baf['getSuggestion'](_0x17421f);_0x396da5['next']&&_0x396da5['next']['isInContent']&&(_0x5f3baf['discardSuggestion'](_0x396da5['next']),_0x2bc6cc=!0x0);}}}return _0x2bc6cc;}),this['_registerLegacyDescription'](_0x390269);}['_registerLegacyDescription'](_0x1b9f74){const _0xa7115=this['editor'],_0x5d13d9=_0xa7115['locale'];_0xa7115['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x61b554=>{if('formatBlock'!=_0x61b554['type']&&'formatInline'!=_0x61b554['type'])return;const {data:_0x302909}=_0x61b554;if(!_0x302909||'imageStyle'!=_0x302909['commandName'])return;const _0x109b0b=_0x302909['commandParams'][0x0]['value'];return _0x4a4d60('side'===_0x109b0b?o(_0x5d13d9,'FORMAT_SIDE_IMAGE'):_0x1b9f74[_0x109b0b]||_0x109b0b);function _0x4a4d60(_0xeb5072){return{'type':'format','content':o(_0x5d13d9,'*Format:*\x20%0',_0xeb5072)};}});}}class ot extends _0x506527{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x26ad09){super(_0x26ad09),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x38a95b=this['editor'],_0x2041a3=_0x38a95b['commands']['get']('importWord'),_0x477f5b=_0x38a95b['commands']['get']('trackChanges');_0x2041a3&&(_0x2041a3['on']('execute',(_0x3f8fc0,[,_0x10d782])=>{this['_trackChangesValueDuringImport']=_0x477f5b['value'],_0x10d782['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2041a3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2041a3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x477f5b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x38a95b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xcf8812,_0x41f273){const {suggestions:_0x1a741c}=_0x41f273,_0x4aa759=this['editor']['commands']['get']('trackChanges'),_0xa3046f=_0x4aa759['value'];this['_trackChangesValueDuringImport']!==_0xa3046f&&(_0x4aa759['execute'](),this['_trackChangesExecuted']=!0x0),_0x1a741c&&_0x1a741c['forEach'](({id:_0x46358c,type:_0x1b7bb9,author:_0x5984f8,created_at:_0x27ba3b})=>{const _0x10948e={'id':_0x46358c,'type':_0x1b7bb9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5984f8,'createdAt':_0x27ba3b?new Date(_0x27ba3b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x10948e);});}}class rt extends _0x506527{['afterInit'](){const _0x422fbe=this['editor'],_0x34e3c1=_0x422fbe['plugins']['get']('TrackChangesEditing');if(_0x422fbe['plugins']['has']('IndentEditing')&&(_0x34e3c1['enableCommand']('indent'),_0x34e3c1['enableCommand']('outdent')),_0x422fbe['plugins']['has']('IndentBlock')){for(const _0x4654fd of['indentBlock','outdentBlock'])_0x34e3c1['enableDefaultAttributesIntegration'](_0x4654fd);}const _0x4f02d5=_0x422fbe['locale'];_0x34e3c1['registerBlockAttribute']('blockIndent'),_0x34e3c1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4f02d5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16554d=this['editor'],_0xd7f37=_0x16554d['locale'],_0x4549ca=_0x16554d['plugins']['get']('TrackChangesEditing');_0x4549ca['descriptionFactory']['registerDescriptionCallback'](_0x24aca5=>{if('formatBlock'!=_0x24aca5['type'])return;const {data:_0x1b283f}=_0x24aca5;if(!_0x1b283f)return;if('indentBlock'!=_0x1b283f['commandName']&&'outdentBlock'!=_0x1b283f['commandName'])return;const _0x55962d=_0x24aca5['getItems']()[0x0],_0x118942=_0x4549ca['descriptionFactory']['getItemLabel'](_0x55962d);return'indentBlock'==_0x1b283f['commandName']?{'type':'format','content':o(_0xd7f37,'*Indent:*\x20%0',_0x118942)}:'outdentBlock'==_0x1b283f['commandName']?{'type':'format','content':o(_0xd7f37,'*Outdent:*\x20%0',_0x118942)}:void 0x0;});}}class at extends _0x506527{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x506527{['afterInit'](){const _0xdb94e0=this['editor'];if(!_0xdb94e0['plugins']['has']('LinkEditing'))return;const _0x2ecc9f=_0xdb94e0['plugins']['get']('TrackChangesEditing'),_0x33405e=_0xdb94e0['commands']['get']('link');_0x2ecc9f['enableDefaultAttributesIntegration']('link'),_0x2ecc9f['enableDefaultAttributesIntegration']('unlink'),_0x2ecc9f['registerInlineAttribute']('linkHref');for(const _0x18dd8a of _0x33405e['manualDecorators'])_0x2ecc9f['registerInlineAttribute'](_0x18dd8a['id']),_0x2ecc9f['descriptionFactory']['registerAttributeLabel'](_0x18dd8a['id'],'link\x20('+_0x18dd8a['label']['toLowerCase']()+')');_0x2ecc9f['descriptionFactory']['registerDescriptionCallback'](_0x786ef5=>{if('attribute'!=_0x786ef5['type'])return;const {data:_0x2721e5}=_0x786ef5;if(!_0x2721e5||'linkHref'!=_0x2721e5['key'])return;const _0x9c723e=_0x2721e5['newValue'],_0x233652=_0xdb94e0['locale'];return{'type':'format','content':null==_0x9c723e?o(_0x233652,'*Remove\x20link*'):o(_0x233652,'*Set\x20link:*\x20%0','\x22'+_0x9c723e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1424d2=this['editor'],_0x83f811=_0x1424d2['locale'];_0x1424d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3567df=>{if('formatInline'!=_0x3567df['type'])return;const {data:_0x1260a3}=_0x3567df;if(_0x1260a3){if('link'==_0x1260a3['commandName']){const _0x531943=_0x1260a3['commandParams'][0x0];return{'type':'format','content':o(_0x83f811,'*Set\x20link:*\x20%0','\x22'+_0x531943+'\x22')};}return'unlink'==_0x1260a3['commandName']?{'type':'format','content':o(_0x83f811,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x506527{['afterInit'](){const _0x8b73c9=this['editor'],_0x407574=_0x8b73c9['locale'];if(!_0x8b73c9['plugins']['has']('LegacyListEditing'))return;const _0x290fdb=_0x8b73c9['plugins']['get']('TrackChangesEditing'),_0x175bc6=_0x8b73c9['plugins']['has']('LegacyTodoListEditing');function _0x78fece(_0x32feaf){return()=>{const _0x3b7823=_0x8b73c9['model']['document']['selection'],_0x459b4b=_0x8b73c9['commands']['get'](_0x32feaf);if(_0x459b4b['value'])return void _0x8b73c9['execute']('paragraph',{});const _0xfb5669=_0x32feaf['slice'](0x0,-0x4),_0x44ec46=function(_0x1b64e2,_0xeb223d,_0x38a27a){let _0x3476ec=Array['from'](_0x1b64e2)['filter'](_0x81ed64=>function(_0x49bc02,_0x1eeaf0){return _0x1eeaf0['checkChild'](_0x49bc02['parent'],'listItem')&&!_0x1eeaf0['isObject'](_0x49bc02);}(_0x81ed64,_0x38a27a));_0x3476ec=_0x3476ec['filter'](_0x26042a=>!_0x26042a['is']('element','listItem')||_0x26042a['getAttribute']('listType')!=_0xeb223d);const _0x3deabc=new Set();for(const _0x25450d of _0x3476ec)_0x25450d['is']('element','listItem')?_0x3deabc['add'](fe(_0x25450d)):_0x3deabc['add'](_0x25450d);return Array['from'](_0x3deabc);}(_0x3b7823['getSelectedBlocks'](),_0xfb5669,_0x8b73c9['model']['schema']);_0x8b73c9['model']['change'](()=>{for(const _0x588926 of _0x44ec46)_0x290fdb['markBlockFormat'](_0x588926,{'commandName':_0x32feaf,'commandParams':[{'forceValue':!_0x459b4b['value']}],'formatGroupId':'blockName'},ue(_0x588926));});};}function _0x2d0a68(_0xce438a){return()=>{const _0xb5a72=function(_0x50ce74){let _0x2a43da=Array['from'](_0x50ce74);const _0x50139c=_0x2a43da['findIndex'](_0x53cf9d=>'listItem'!=_0x53cf9d['name']);return _0x50139c>-0x1&&(_0x2a43da=_0x2a43da['slice'](0x0,_0x50139c)),_0x2a43da;}(_0x8b73c9['model']['document']['selection']['getSelectedBlocks']()),_0x240498=_0x8b73c9['model']['createRange'](_0x8b73c9['model']['createPositionAt'](_0xb5a72[0x0],'before'),_0x8b73c9['model']['createPositionAt'](_0xb5a72[_0xb5a72['length']-0x1],'end'));_0x8b73c9['model']['change'](()=>{_0x290fdb['markBlockFormat'](_0x240498,{'commandName':_0xce438a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x296b03){const _0x3f41e2=new Set();for(const _0x3832c6 of _0x296b03){let _0xaa395f=_0x3832c6['nextSibling'];for(;_0xaa395f&&_0xaa395f['getAttribute']('listIndent')>_0x3832c6['getAttribute']('listIndent');)_0x3f41e2['add'](_0xaa395f),_0xaa395f=_0xaa395f['nextSibling'];}return Array['from'](_0x3f41e2);}(_0xb5a72));});};}_0x290fdb['enableCommand']('numberedList',_0x78fece('numberedList')),_0x290fdb['enableCommand']('bulletedList',_0x78fece('bulletedList')),_0x175bc6&&_0x290fdb['enableCommand']('todoList',_0x78fece('todoList')),_0x290fdb['enableCommand']('indentList',_0x2d0a68('indentList')),_0x290fdb['enableCommand']('outdentList',_0x2d0a68('outdentList')),_0x175bc6&&_0x290fdb['enableCommand']('checkTodoList',()=>{const _0x5f17ba=_0x8b73c9['commands']['get']('checkTodoList'),_0x1d8968=Array['from'](_0x5f17ba['_selectedElements']);_0x1d8968['filter'](_0x20ce39=>_0x20ce39['getAttribute']('todoListChecked')!=_0x5f17ba['value']),_0x8b73c9['model']['change'](()=>{for(const _0x5f31ab of _0x1d8968)_0x290fdb['markBlockFormat'](_0x5f31ab,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5f17ba['value']}]});});}),_0x290fdb['descriptionFactory']['registerElementLabel']('listItem',_0x386550=>o(_0x407574,'ELEMENT_LIST_ITEM',_0x386550)),_0x290fdb['descriptionFactory']['registerDescriptionCallback'](_0x49bfa9=>{if('formatBlock'!=_0x49bfa9['type']&&'formatInline'!=_0x49bfa9['type'])return;const {data:_0x1b496b}=_0x49bfa9;if(_0x1b496b){if('numberedList'==_0x1b496b['commandName']||'bulletedList'==_0x1b496b['commandName']||'todoList'==_0x1b496b['commandName'])switch(_0x1b496b['commandName']['replace']('List','')){case'bulleted':return _0x397990(o(_0x407574,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x397990(o(_0x407574,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x397990(o(_0x407574,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1b496b['commandName'])return{'type':'format','content':o(_0x407574,'*Indent:*\x20%0',o(_0x407574,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1b496b['commandName'])return{'type':'format','content':o(_0x407574,'*Outdent:*\x20%0',o(_0x407574,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1b496b['commandName'])return _0x1b496b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x407574,'*Check\x20item*')}:{'type':'format','content':o(_0x407574,'*Uncheck\x20item*')};}function _0x397990(_0x105c78){return{'type':'format','content':o(_0x407574,'*Change\x20to:*\x20%0',_0x105c78)};}});}}function fe(_0x358153){const _0x10d679=_0x358153['getAttribute']('listIndent');if(0x0==_0x10d679)return _0x358153;let _0x49ba16=_0x358153;for(;_0x358153['previousSibling']&&_0x358153['previousSibling']['is']('element','listItem');){const _0x33849e=_0x358153['previousSibling']['getAttribute']('listIndent');if(_0x33849e==_0x10d679)_0x49ba16=_0x358153['previousSibling'];else{if(_0x33849e<_0x10d679)break;}_0x358153=_0x358153['previousSibling'];}return _0x49ba16;}function ue(_0x4c3d75){const _0x40c198=[];if(_0x4c3d75['is']('element','listItem')&&_0x4c3d75['getAttribute']('listIndent')>0x0){let _0x585fba=_0x4c3d75['nextSibling'];for(;_0x585fba&&'listItem'==_0x585fba['name']&&_0x585fba['getAttribute']('listIndent')==_0x4c3d75['getAttribute']('listIndent');)_0x40c198['push'](_0x585fba),_0x585fba=_0x585fba['nextSibling'];}return _0x40c198;}class K extends _0x506527{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb5afc6=this['editor']['config']['get']('list.properties'),_0x12245b=this['editor']['plugins']['get']('TrackChangesEditing');_0xb5afc6['styles']&&_0x12245b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb5afc6['reversed']&&_0x12245b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb5afc6['startIndex']&&_0x12245b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x12245b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5134d0,_0x1d2d6f={}){const _0x42a7b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244f2b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x42a7b4['markMultiRangeBlockFormat'](_0x244f2b,{'commandName':'listStyle','commandParams':[{'type':_0x1d2d6f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x37d271,_0x348dbd={}){const _0x55698a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50297a=this['_getSuggestionBlocks'](_0x1e1f6f=>_0x1e1f6f['is']('element','listItem')&&'numbered'===_0x1e1f6f['getAttribute']('listType'));if(_0x50297a['length']<0x1)return;const _0x1c6b96=_0x50297a['map'](_0x13bb11=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13bb11,'before'),this['editor']['model']['createPositionAt'](_0x13bb11,0x0)));this['editor']['model']['change'](()=>{_0x55698a['markMultiRangeBlockFormat'](_0x1c6b96,{'commandName':'listReversed','commandParams':[{'reversed':_0x348dbd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xb74fe9,_0x17d812={}){const _0x17325a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5562=this['_getSuggestionBlocks'](_0x575815=>_0x575815['is']('element','listItem')&&'numbered'===_0x575815['getAttribute']('listType'));if(_0x3e5562['length']<0x1)return;const _0x30598d=_0x3e5562['map'](_0x3dcbb7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3dcbb7,'before'),this['editor']['model']['createPositionAt'](_0x3dcbb7,0x0)));this['editor']['model']['change'](()=>{_0x17325a['markMultiRangeBlockFormat'](_0x30598d,{'commandName':'listStart','commandParams':[{'startIndex':_0x17d812['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a1d0f){if('formatBlock'!=_0x5a1d0f['type']&&'formatInline'!=_0x5a1d0f['type'])return;const _0x561e68=this['editor']['locale'],{data:_0x267a23}=_0x5a1d0f;if(!_0x267a23)return;let _0x668204,_0x4fb8f2;switch(_0x267a23['commandName']){case'listStyle':_0x668204='*Change\x20to:*\x20%0',_0x4fb8f2={'type':'format','content':o(_0x561e68,_0x668204,o(_0x561e68,this['_getTranslationKeyForListStyle'](_0x267a23['commandParams'][0x0]['type'])))};break;case'listReversed':_0x668204=_0x267a23['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fb8f2={'type':'format','content':o(_0x561e68,_0x668204)};break;case'listStart':_0x668204='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fb8f2={'type':'format','content':o(_0x561e68,_0x668204,_0x267a23['commandParams'][0x0]['startIndex'])};}return _0x4fb8f2;}['_getSuggestionBlocksForListStyle'](){const _0x1a0caf=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d5500=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1d5500[0x0]?.['is']('element','listItem')&&_0x1d5500['unshift'](..._0x1a0caf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1d5500[_0x1d5500['length']-0x1]?.['is']('element','listItem')&&_0x1d5500['push'](..._0x1a0caf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1d5500=[...new Set(_0x1d5500)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1d5500=_0x1d5500['filter'](_0xb1dc5f=>_0xb1dc5f['is']('element','listItem'))),_0x1d5500;}['_getSuggestionBlocks'](_0x2bea7c){const _0x865ff2=this['editor']['plugins']['get']('LegacyListUtils');let _0x263981=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2bea7c)['map'](_0x69ee9b=>{const _0x5c8ed6=this['editor']['model']['createPositionAt'](_0x69ee9b,0x0);return[..._0x865ff2['getSiblingNodes'](_0x5c8ed6,'backward'),..._0x865ff2['getSiblingNodes'](_0x5c8ed6,'forward')];})['flat']();return _0x263981=[...new Set(_0x263981)],_0x263981;}['_getTranslationKeyForListStyle'](_0x23c4e3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x23c4e3)||'default')['toUpperCase']()+'_LIST_'+_0x23c4e3['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x506527{['afterInit'](){const _0x43094c=this['editor'];if(!_0x43094c['plugins']['has']('MediaEmbedEditing'))return;const _0x532430=_0x43094c['plugins']['get']('TrackChangesEditing'),_0x272e6e=_0x43094c['locale'];_0x532430['enableCommand']('mediaEmbed'),_0x532430['descriptionFactory']['registerElementLabel']('media',_0x34127e=>o(_0x272e6e,'ELEMENT_MEDIA',_0x34127e)),_0x43094c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2771d6,{writer:_0x3752f2,options:_0xbab6f4})=>{if(_0xbab6f4['showSuggestionHighlights'])return _0x3752f2['createEmptyElement']('div');},'converterPriority':'high'}),_0x43094c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x47937f,_0x367895,_0x4e6ea7)=>{_0x4e6ea7['options']['showSuggestionHighlights']&&_0x47937f['stop']();},{'priority':'high'});}}class gt extends _0x506527{['afterInit'](){const _0x3560f8=this['editor'];_0x3560f8['plugins']['has']('MentionEditing')&&_0x3560f8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x506527{['afterInit'](){const _0x1bc2ca=this['editor'];if(!_0x1bc2ca['commands']['get']('insertMergeField'))return;_0x1bc2ca['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x27992b=_0x1bc2ca['plugins']['get']('TrackChangesEditing'),_0x106361=_0x1bc2ca['locale'];_0x27992b['descriptionFactory']['registerElementLabel']('mergeField',_0xb268df=>o(_0x106361,'ELEMENT_MERGE_FIELD',_0xb268df)),_0x27992b['descriptionFactory']['registerDescriptionCallback'](_0x1a24fa=>{if('insertion'!=_0x1a24fa['type']&&'deletion'!=_0x1a24fa['type'])return;const _0x5e9f25=_0x1a24fa['getContainedElement']();if(null==_0x5e9f25)return;if(!_0x5e9f25['is']('element','mergeField'))return;const _0x2d9493=_0x1bc2ca['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5e9f25['getAttribute']('id'));return'insertion'==_0x1a24fa['type']?{'type':'insertion','content':o(_0x106361,'*Insert:*\x20%0','\x22'+_0x2d9493+'\x22\x20'+o(_0x106361,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x106361,'*Remove:*\x20%0','\x22'+_0x2d9493+'\x22\x20'+o(_0x106361,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x506527{['afterInit'](){const _0x4c77d7=this['editor'],_0x3d29dd=_0x4c77d7['plugins']['get']('TrackChangesEditing');_0x4c77d7['plugins']['has']('MultiLevelList')&&(_0x3d29dd['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d29dd['registerBlockAttribute']('listMarkerStyle'),_0x3d29dd['descriptionFactory']['registerDescriptionCallback'](_0x2f0e73=>this['handleDescriptions'](_0x2f0e73)));}['handleDescriptions'](_0x58c9f5){const _0x572946=this['editor']['locale'],{data:_0x413bb2}=_0x58c9f5,_0x2a14a9={'type':'format','content':''};if(_0x413bb2&&'listMarkerStyle'==_0x413bb2['key']){if(!_0x413bb2['oldValue'])return{'type':'format','content':o(_0x572946,'*Set\x20format:*\x20%0',o(_0x572946,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x413bb2['newValue']+')'};if(!_0x413bb2['newValue']){let _0x101ec7=_0x58c9f5['head'];for(;_0x101ec7;){if(_0x101ec7['data']&&'listType'==_0x101ec7['data']['key']&&_0x101ec7['data']['newValue'])return _0x2a14a9;_0x101ec7=_0x101ec7['next'];}return{'type':'format','content':o(_0x572946,'*Remove\x20format:*\x20%0',o(_0x572946,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x413bb2['oldValue']+')'};}}}}class dt extends _0x506527{['afterInit'](){const _0x203f24=this['editor'];if(!_0x203f24['plugins']['has']('PageBreakEditing'))return;_0x203f24['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa8df3=_0x203f24['plugins']['get']('TrackChangesEditing'),_0x51508b=_0x203f24['locale'];_0xa8df3['descriptionFactory']['registerElementLabel']('pageBreak',_0xeb538e=>o(_0x51508b,'ELEMENT_PAGE_BREAK',_0xeb538e));}}class pt extends _0x506527{['afterInit'](){const _0x2e24f1=this['editor'];if(!_0x2e24f1['plugins']['has']('Paragraph'))return;const _0x510247=_0x2e24f1['locale'],_0x28ca76=_0x2e24f1['plugins']['get']('TrackChangesEditing');_0x28ca76['descriptionFactory']['registerElementLabel']('paragraph',_0x538628=>o(_0x510247,'ELEMENT_PARAGRAPH',_0x538628)),_0x28ca76['enableDefaultAttributesIntegration']('paragraph'),_0x28ca76['enableCommand']('insertParagraph'),_0x2e24f1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2e24f1),{'priority':'highest'}),_0x2e24f1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a02db,_0x3a6ae5,_0x2c7758)=>{_0x2c7758['options']['showSuggestionHighlights']&&nr(_0x2e24f1,{'showActiveMarker':!0x1})(_0x3a02db,_0x3a6ae5,_0x2c7758);},{'priority':'highest'});const _0x86d1ef=_0x28ca76['descriptionFactory'];_0x86d1ef['registerDescriptionCallback'](_0x249771=>{if('insertion'!==_0x249771['type'])return;const {start:_0x409328,end:_0x4fe3fe}=_0x249771['getFirstRange']();if(!_0x409328['isTouching'](_0x4fe3fe)||!_0x409328['nodeAfter'])return;const _0x528a21=_0x2e24f1['model']['schema'],_0x38fd52=_0x409328['nodeAfter'];return _0x528a21['isBlock'](_0x38fd52)&&!_0x528a21['isLimit'](_0x38fd52)&&_0x528a21['checkChild'](_0x38fd52,'$text')?{'type':'insertion','content':o(_0x510247,'*Insert:*\x20%0',_0x86d1ef['getItemLabel'](_0x38fd52,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50f743=this['editor'],_0x4126fb=_0x50f743['locale'];_0x50f743['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20d8f8=>{if('formatBlock'!=_0x20d8f8['type'])return;const {data:_0x22a026}=_0x20d8f8;return _0x22a026&&'paragraph'==_0x22a026['commandName']?{'type':'format','content':o(_0x4126fb,'*Change\x20to:*\x20%0',o(_0x4126fb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x179c67,{showActiveMarker:_0x1b4dff=!0x0}={}){return(_0x12fda3,_0x20b4d0,_0x480c5f)=>{const _0x21d4eb=_0x179c67['plugins']['get']('TrackChangesEditing'),_0x3e1a00=_0x20b4d0['markerRange']['start'],_0x5d3d8a=_0x20b4d0['markerRange']['end'],_0x33b587=_0x179c67['model']['schema'];if(!_0x3e1a00['isTouching'](_0x5d3d8a)||!_0x3e1a00['nodeAfter'])return;const _0x443f01=_0x3e1a00['nodeAfter'];if(_0x33b587['isBlock'](_0x443f01)&&!_0x33b587['isLimit'](_0x443f01)&&_0x33b587['checkChild'](_0x443f01,'$text')){if(!_0x480c5f['consumable']['consume'](_0x20b4d0['markerRange'],_0x12fda3['name']))return;const _0xb7e014=_0x480c5f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4e64be=_0x480c5f['mapper']['toViewPosition'](_0x5d3d8a);_0x1b4dff&&_0x21d4eb['activeMarkers']['includes'](_0x20b4d0['markerName'])&&_0x480c5f['writer']['addClass']('ck-suggestion-marker--active',_0xb7e014),_0x480c5f['writer']['insert'](_0x4e64be,_0xb7e014),_0x480c5f['mapper']['bindElementToMarker'](_0xb7e014,_0x20b4d0['markerName']);}};}class kt extends _0x506527{['afterInit'](){const _0x511feb=this['editor'];if(!_0x511feb['plugins']['has']('RemoveFormatEditing'))return;_0x511feb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6ab19e=this['editor'];_0x6ab19e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17e43f=>{if('formatBlock'!=_0x17e43f['type']&&'formatInline'!=_0x17e43f['type'])return;const {data:_0x5b6b02}=_0x17e43f;return _0x5b6b02&&'removeFormat'==_0x5b6b02['commandName']?{'type':'format','content':o(_0x6ab19e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x506527{['afterInit'](){const _0x57036b=this['editor'];if(!_0x57036b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4a2b4a=_0x57036b['plugins']['get']('TrackChangesEditing');_0x4a2b4a['enableCommand']('goToPreviousRestrictedEditingException'),_0x4a2b4a['enableCommand']('goToNextRestrictedEditingException');const _0x340caf=_0x57036b['plugins']['get']('RestrictedEditingModeEditing');_0x340caf['enableCommand']('trackChanges'),_0x340caf['enableCommand']('acceptSuggestion'),_0x340caf['enableCommand']('discardSuggestion'),_0x340caf['enableCommand']('acceptAllSuggestions'),_0x340caf['enableCommand']('discardAllSuggestions'),_0x340caf['enableCommand']('acceptSelectedSuggestions'),_0x340caf['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x506527{static get['requires'](){return[_0x51028d];}['init'](){const _0x1578ce=this['editor'],_0x4890e0=_0x1578ce['plugins']['get']('TrackChangesEditing');_0x4890e0['enableCommand']('shiftEnter'),_0x1578ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x1578ce),{'priority':'high'}),_0x1578ce['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x1578ce),{'priority':'high'}),_0x1578ce['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8942ee,_0x33a96,_0x4f84c9)=>{_0x4f84c9['options']['showSuggestionHighlights']&&ce(_0x1578ce,{'showActiveMarker':!0x1})(_0x8942ee,_0x33a96,_0x4f84c9);}),_0x4890e0['descriptionFactory']['registerElementLabel']('softBreak',_0x26cbf4=>o(_0x1578ce['locale'],'ELEMENT_LINE_BREAK',_0x26cbf4));}}function ce(_0x468d50,{showActiveMarker:_0xbde958=!0x0}={}){return(_0x342a30,_0xb6cb5e,_0x99f43)=>{const _0x409422=_0x468d50['plugins']['get']('TrackChangesEditing');if(!_0x99f43['consumable']['test'](_0xb6cb5e['markerRange'],_0x342a30['name']))return;const _0x512a02=_0x468d50['model'];for(const _0x2b42e3 of _0xb6cb5e['markerRange']['getItems']()){if(!_0x2b42e3['is']('element','softBreak'))continue;const _0x34536e='deletion'==_0xb6cb5e['markerName']['split'](':')[0x1]?'merge':'split',_0x2bae0d=_0x99f43['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34536e}),_0x4714c2=_0x99f43['mapper']['toViewPosition'](_0x512a02['createPositionBefore'](_0x2b42e3));_0xbde958&&_0x409422['activeMarkers']['includes'](_0xb6cb5e['markerName'])&&_0x99f43['writer']['addClass']('ck-suggestion-marker--active',_0x2bae0d),_0x99f43['writer']['insert'](_0x4714c2,_0x2bae0d),_0x99f43['mapper']['bindElementToMarker'](_0x2bae0d,_0xb6cb5e['markerName']);}};}class yt extends _0x506527{['afterInit'](){const _0x4ea099=this['editor'],_0x4a0c30=_0x4ea099['model'],_0x50b5c3=_0x4ea099['locale'];if(!_0x4ea099['plugins']['has']('StandardEditingModeEditing'))return;const _0x3e20fa=_0x4ea099['plugins']['get']('TrackChangesEditing'),_0x6bf105='restrictedEditingException',_0x428b72=_0x4ea099['commands']['get'](_0x6bf105);_0x3e20fa['enableCommand'](_0x6bf105,(_0x434366,_0x17a286={})=>{const _0x315238=_0x4a0c30['document']['selection'];if(_0x315238['isCollapsed'])return void _0x434366(_0x17a286);const _0x367c82=void 0x0!==_0x17a286['forceValue']?_0x17a286['forceValue']:!_0x428b72['value'];_0x4a0c30['change'](()=>{const _0x5eeb99=Array['from'](_0x315238['getRanges']());for(const _0x3d4c60 of _0x5eeb99){const _0x413f31=_0x367c82?[_0x3d4c60]:io(_0x6bf105,_0x3d4c60,_0x4a0c30);for(const _0x446f0b of _0x413f31)_0x3e20fa['markInlineFormat'](_0x446f0b,{'commandName':_0x6bf105,'commandParams':[{'forceValue':_0x367c82}]});}});}),_0x3e20fa['descriptionFactory']['registerDescriptionCallback'](_0x128e72=>{if('formatBlock'!=_0x128e72['type']&&'formatInline'!=_0x128e72['type'])return;const {data:_0x28adcd}=_0x128e72;return _0x28adcd&&_0x28adcd['commandName']==_0x6bf105?_0x28adcd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50b5c3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x50b5c3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x506527{['afterInit'](){const _0x40b700=this['editor'];if(!_0x40b700['plugins']['has']('Style')||!_0x40b700['plugins']['has']('DataSchema'))return;const _0x1424cb=_0x40b700['plugins']['get']('TrackChangesEditing'),_0x17b21e=_0x40b700['locale'],_0x211200=_0x40b700['config']['get']('style')||{},_0x1fc3b8=_0x40b700['plugins']['get']('GeneralHtmlSupport'),_0x23eeaa=_0x40b700['plugins']['get']('StyleUtils')['normalizeConfig'](_0x40b700['plugins']['get']('DataSchema'),_0x211200['definitions']);_0x1424cb['enableDefaultAttributesIntegration']('style');const _0x21e348=new Set();for(const _0x5a9dc6 of _0x23eeaa['block']){const _0xa3f836=_0x1fc3b8['getGhsAttributeNameForElement'](_0x5a9dc6['element']);_0x21e348['add'](_0xa3f836);}const _0x57ccfb=new Set();for(const _0x188039 of _0x23eeaa['inline']){const _0xdba741=_0x1fc3b8['getGhsAttributeNameForElement'](_0x188039['element']);_0x57ccfb['add'](_0xdba741);for(const _0x21b274 of _0x188039['ghsAttributes'])_0x57ccfb['add'](_0x21b274);}for(const _0x23758e of _0x21e348)_0x1424cb['registerBlockAttribute'](_0x23758e),_0x1424cb['descriptionFactory']['registerAttributeLabel'](_0x23758e,o(_0x17b21e,'FORMAT_STYLE'));for(const _0x204009 of _0x57ccfb)_0x1424cb['registerInlineAttribute'](_0x204009),_0x1424cb['descriptionFactory']['registerAttributeLabel'](_0x204009,o(_0x17b21e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dbece=this['editor'],_0x46754b=_0x5dbece['locale'];_0x5dbece['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113153=>{if('formatBlock'!=_0x113153['type']&&'formatInline'!=_0x113153['type'])return;const {data:_0x1cefaf}=_0x113153;return _0x1cefaf&&'style'===_0x1cefaf['commandName']?_0x1cefaf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46754b,'*Set\x20format:*\x20%0',_0x1cefaf['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x46754b,'*Remove\x20format:*\x20%0',_0x1cefaf['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x506527{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5973fa){super(_0x5973fa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57f6ea=this['editor'],_0x473ae5=_0x57f6ea['model']['document']['selection'];if(!_0x57f6ea['plugins']['has']('TableEditing'))return;const _0x4b62ac=_0x57f6ea['locale'],_0x3a0aa1=_0x57f6ea['plugins']['get']('TrackChangesEditing'),_0x1ab9b4=_0x57f6ea['plugins']['get']('TableUtils');_0x3a0aa1['descriptionFactory']['registerElementLabel']('table',_0x3400af=>o(_0x4b62ac,'ELEMENT_TABLE',_0x3400af)),this['_setupColumnsRowsFixing'](),_0x3a0aa1['enableCommand']('insertTable'),_0x3a0aa1['enableCommand']('selectTableRow'),_0x3a0aa1['enableCommand']('selectTableColumn');for(const _0x48208a of['insertTableRowAbove','insertTableRowBelow']){const _0x518958=_0x57f6ea['commands']['get'](_0x48208a);_0x3a0aa1['enableCommand'](_0x48208a,_0x127655=>{_0x57f6ea['model']['change'](_0x4bae7a=>{_0x127655();const _0x49fa00='above'===_0x518958['order'],_0x2eb70c=_0x1ab9b4['getSelectionAffectedTableCells'](_0x473ae5),_0x45e087=_0x1ab9b4['getRowIndexes'](_0x2eb70c),_0x29cb1d=_0x49fa00?_0x45e087['first']-0x1:_0x45e087['last']+0x1,_0x4cdbc4=_0x2eb70c[0x0]['findAncestor']('table'),_0x2fb1a6=_0x1ab9b4['createTableWalker'](_0x4cdbc4,{'startRow':_0x29cb1d,'endRow':_0x29cb1d}),_0x11d3e1=Array['from'](_0x2fb1a6)['map'](_0x71e52b=>_0x4bae7a['createRangeOn'](_0x71e52b['cell']));_0x3a0aa1['markMultiRangeInsertion'](_0x11d3e1,'tableRow');});});}for(const _0x49bcca of['insertTableColumnLeft','insertTableColumnRight']){const _0x4167c1=_0x57f6ea['commands']['get'](_0x49bcca);_0x3a0aa1['enableCommand'](_0x49bcca,_0x43c89b=>{_0x57f6ea['model']['change'](_0x4af60f=>{_0x43c89b();const _0x3ca418='left'===_0x4167c1['order'],_0x733fb7=_0x1ab9b4['getSelectionAffectedTableCells'](_0x473ae5),_0x49bd13=_0x1ab9b4['getColumnIndexes'](_0x733fb7),_0x43dc73=_0x3ca418?_0x49bd13['first']-0x1:_0x49bd13['last']+0x1,_0x13af55=_0x733fb7[0x0]['findAncestor']('table'),_0x13d3bd=_0x1ab9b4['createTableWalker'](_0x13af55,{'startRow':0x0,'column':_0x43dc73,'includeAllSlots':!0x1}),_0x5d7de4=Array['from'](_0x13d3bd)['map'](_0xa16a87=>_0x4af60f['createRangeOn'](_0xa16a87['cell']));_0x3a0aa1['markMultiRangeInsertion'](_0x5d7de4,'tableColumn');});});}for(const _0x11a724 of['removeTableRow','removeTableColumn']){const _0x3e4966=_0x11a724['substr'](0xb),_0x296e46=_0x3e4966['toLowerCase'](),_0x2ec55=_0x296e46['substr'](0x0,0x3)+'span',_0x5e10b8='table'+_0x3e4966,_0x345798='min'+_0x3e4966,_0x3d0c11='max'+_0x3e4966;_0x3a0aa1['enableCommand'](_0x11a724,()=>{_0x57f6ea['model']['change'](_0x519af5=>{const _0x215744=_0x1ab9b4['getSelectionAffectedTableCells'](_0x473ae5),_0xf46c45=_0x215744[0x0]['findAncestor']('table');let _0x20a0a7;if('removeTableRow'==_0x11a724){const _0x52c032=_0x1ab9b4['getRowIndexes'](_0x215744);_0x20a0a7={'startRow':_0x52c032['first'],'endRow':_0x52c032['last'],'includeAllSlots':!0x0};}else{const _0x9e4e5f=_0x1ab9b4['getColumnIndexes'](_0x215744);_0x20a0a7={'startColumn':_0x9e4e5f['first'],'endColumn':_0x9e4e5f['last'],'includeAllSlots':!0x0};}const _0x4a7421=_0x1ab9b4['createTableWalker'](_0xf46c45,_0x20a0a7),_0x28c358=Array['from'](_0x4a7421)['map'](({cell:_0x1a4daa})=>_0x1a4daa),_0x52210d=Ee(_0x28c358['filter'](_0x481714=>_0x481714['hasAttribute'](_0x2ec55))),_0x3b9072=Ee(_0x28c358['filter'](_0x2e0599=>!_0x2e0599['hasAttribute'](_0x2ec55)))['map'](_0xd6694d=>_0x519af5['createRangeOn'](_0xd6694d)),_0x3e103e=_0x3a0aa1['markMultiRangeDeletion'](_0x3b9072,_0x5e10b8);if(_0x3e103e&&('tableRow'==_0x3e103e['subType']||'tableColumn'==_0x3e103e['subType'])){const _0x57beb6=this['_getSuggestionCoords'](_0x3e103e);for(const _0x5bf55c of _0x52210d){const _0x2ce17c=_0x519af5['createRangeOn'](_0x5bf55c),_0x416c23=_0x1ab9b4['getCellLocation'](_0x5bf55c),_0x422242=_0x5bf55c['getAttribute'](_0x2ec55)-0x1,_0x3c8def=_0x57beb6[_0x345798],_0x5718f7=_0x57beb6[_0x3d0c11];_0x3c8def<=_0x416c23[_0x296e46]&&_0x416c23[_0x296e46]+_0x422242<=_0x5718f7&&_0x3e103e['addRange'](_0x2ce17c);}}});});}function _0x1f8109(_0x4fd3a3){const _0x5bf78d=Array['from'](_0x473ae5['getRanges']())['map'](_0x3d822f=>_0x53f8a1['fromRange'](_0x3d822f));_0x57f6ea['model']['change'](_0x4ece57=>{const _0xaf2989=_0x4ece57['batch'];_0x4fd3a3=_0x4fd3a3['filter'](_0x45cef2=>'$graveyard'!=_0x45cef2['root']['rootName']),_0x4ece57['setSelection'](_0x4fd3a3),_0x57f6ea['commands']['get']('removeTableRow')['refresh'](),_0x57f6ea['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57f6ea['model']['enqueueChange'](()=>{_0x57f6ea['model']['enqueueChange'](_0xaf2989,_0x32dce9=>{const _0x16bff8=_0x5bf78d['filter'](_0x4f3ff3=>'$graveyard'!=_0x4f3ff3['root']['rootName']);_0x16bff8['length']>0x0&&_0x32dce9['setSelection'](_0x16bff8);for(const _0x298ab0 of _0x5bf78d)_0x298ab0['detach']();});});});}function _0x15a9e4(_0x7c9e12){_0x57f6ea['model']['change'](_0x635cc5=>{const _0x323d4f=Array['from'](_0x473ae5['getRanges']())['map'](_0x55f160=>_0x53f8a1['fromRange'](_0x55f160)),_0x4c6dbd=[];for(const _0x3db3ca of _0x7c9e12)for(const _0x2f4050 of _0x3db3ca['getItems']({'shallow':!0x0}))_0x4c6dbd['push'](_0x2f4050);for(const _0x425846 of _0x4c6dbd)'$graveyard'!=_0x425846['root']['rootName']&&(_0x635cc5['setSelection'](_0x635cc5['createPositionAt'](_0x425846,0x0)),_0x57f6ea['commands']['get']('removeTableColumn')['refresh'](),_0x57f6ea['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48fab6=_0x323d4f['filter'](_0x276151=>'$graveyard'!=_0x276151['root']['rootName']);_0x48fab6['length']>0x0&&_0x635cc5['setSelection'](_0x48fab6);for(const _0x8d9860 of _0x323d4f)_0x8d9860['detach']();});}function _0x5b7748(_0x1e0fed,_0x1e403e){return _0x1e403e['every'](_0x5536ec=>_0x1e0fed['some'](_0x13c2ac=>_0x13c2ac['end']['isEqual'](_0x5536ec['start'])||_0x5536ec['end']['isEqual'](_0x13c2ac['start'])));}function _0x37e543(_0x1ba7c1,_0xc617c5){return!_0x1ba7c1['some'](_0x115497=>_0xc617c5['some'](_0x57c9f6=>_0x115497['isIntersecting'](_0x57c9f6)))&&_0x1ba7c1['some'](_0x2dd20c=>_0xc617c5['some'](_0x1b5369=>_0x2dd20c['end']['isTouching'](_0x1b5369['start'])));}_0x57f6ea['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ea1e9,_0x2aee33,_0x337860)=>{if(!_0x337860['options']['showSuggestionHighlights'])return;const _0x11eda8=_0x2aee33['item'];if(!_0x11eda8)return;const _0x19b285=_0x337860['mapper']['toViewElement'](_0x11eda8);function _0x588484(_0x447c85){return Array['isArray'](_0x447c85)?_0x447c85:[_0x447c85];}_0x19b285&&'tableCell'===_0x11eda8['name']&&_0x22a95a(_0x19b285,_0x337860['writer'],(_0x229cd9,_0x453f97,_0x517620)=>_0x517620['addClass'](_0x588484(_0x453f97['classes']),_0x229cd9),(_0x25af74,_0x2cccef,_0x207935)=>_0x207935['removeClass'](_0x588484(_0x2cccef['classes']),_0x25af74));},{'priority':'highest'}),_0x3a0aa1['descriptionFactory']['registerDescriptionCallback'](_0x5657a8=>{if('insertion'!=_0x5657a8['type']&&'deletion'!=_0x5657a8['type'])return;const _0x48c20d=_0x5657a8['getContainedElement']();if(null!=_0x48c20d&&_0x48c20d['is']('element','table')){if('insertion'==_0x5657a8['type']){const _0x5210f7=_0x5657a8['getItems']()['filter'](_0x2e11c8=>_0x2e11c8['is']('$textProxy'))['map'](_0xc8af8a=>_0xc8af8a['data']);if(_0x5210f7['length'])return{'type':'insertion','content':o(_0x4b62ac,'*Insert:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5210f7['join']('\x20')+'\x22'))};}if('deletion'==_0x5657a8['type']){const _0x35f803=_0x5657a8['getItems']()['filter'](_0x311ed0=>_0x311ed0['is']('$textProxy'))['map'](_0x2131a9=>_0x2131a9['data']);if(_0x35f803['length'])return{'type':'deletion','content':o(_0x4b62ac,'*Remove:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x35f803['join']('\x20')+'\x22'))};}}}),_0x3a0aa1['descriptionFactory']['registerDescriptionCallback'](_0x3ede59=>{if('tableRow'==_0x3ede59['subType']){const _0x59680c=_0x3ede59['getItems']()['filter'](_0x36e798=>_0x36e798['is']('$textProxy'))['map'](_0x5e83f5=>_0x5e83f5['data']),_0x2e7801=this['_getSuggestionCoords'](_0x3ede59),_0x3ea51c=_0x2e7801['maxRow']-_0x2e7801['minRow']+0x1;if('insertion'==_0x3ede59['type'])return _0x59680c['length']?{'type':'insertion','content':o(_0x4b62ac,'*Insert:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ea51c,'\x22'+_0x59680c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4b62ac,'*Insert:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_ROW',_0x3ea51c))};if('deletion'==_0x3ede59['type'])return _0x59680c['length']?{'type':'deletion','content':o(_0x4b62ac,'*Remove:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ea51c,'\x22'+_0x59680c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4b62ac,'*Remove:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_ROW',_0x3ea51c))};}if('tableColumn'==_0x3ede59['subType']){const _0x3e5089=_0x3ede59['getItems']()['filter'](_0x4efadb=>_0x4efadb['is']('$textProxy'))['map'](_0x28dc1a=>_0x28dc1a['data']),_0x18fd2e=this['_getSuggestionCoords'](_0x3ede59),_0x53a44b=_0x18fd2e['maxColumn']-_0x18fd2e['minColumn']+0x1;if('insertion'==_0x3ede59['type'])return _0x3e5089['length']?{'type':'insertion','content':o(_0x4b62ac,'*Insert:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53a44b,'\x22'+_0x3e5089['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4b62ac,'*Insert:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_COLUMN',_0x53a44b))};if('deletion'==_0x3ede59['type'])return _0x3e5089['length']?{'type':'deletion','content':o(_0x4b62ac,'*Remove:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53a44b,'\x22'+_0x3e5089['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4b62ac,'*Remove:*\x20%0',o(_0x4b62ac,'ELEMENT_TABLE_COLUMN',_0x53a44b))};}}),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1f8109),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1f8109),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x15a9e4),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x15a9e4),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b7748),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b7748),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x37e543),_0x3a0aa1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x37e543);}['_acceptFormatSuggestionCallbackFactory'](){const _0x16ec32=this['editor'],_0x39bc11=_0x16ec32['model']['document']['selection'];return(_0x16099b,_0x35c8b6)=>{_0x16ec32['model']['change'](_0x7eaf2c=>{const {commandName:_0x47af74,commandParams:_0x333ef5}=_0x35c8b6;let _0x466b72=_0x16099b[0x0]['end']['nodeBefore'];_0x333ef5&&_0x333ef5[0x0]&&!0x1===_0x333ef5[0x0]['forceValue']&&(_0x466b72=_0x16099b[0x0]['start']['nodeAfter']);const _0x109b7c=_0x7eaf2c['createRangeIn'](_0x466b72);if('$graveyard'==_0x109b7c['root']['rootName'])return;const _0x2f6851=Array['from'](_0x39bc11['getRanges']())['map'](_0x248d3d=>_0x53f8a1['fromRange'](_0x248d3d));_0x7eaf2c['setSelection'](_0x109b7c),_0x16ec32['commands']['get'](_0x47af74)['refresh'](),_0x333ef5['push']({'forceDefaultExecution':!0x0}),_0x16ec32['execute'](_0x47af74,..._0x333ef5);const _0x5dbec0=_0x2f6851['filter'](_0x1b0897=>'$graveyard'!=_0x1b0897['root']['rootName']);_0x5dbec0['length']>0x0&&_0x7eaf2c['setSelection'](_0x5dbec0);for(const _0x49ae97 of _0x2f6851)_0x49ae97['detach']();});};}['_getCoordsForCells'](_0x15c2ce){const _0x7b9b=this['editor']['plugins']['get']('TableUtils');let _0x2d9ebe=Number['MAX_SAFE_INTEGER'],_0x5aa6a8=Number['MIN_SAFE_INTEGER'],_0x5947e0=Number['MAX_SAFE_INTEGER'],_0x46c0f7=Number['MIN_SAFE_INTEGER'];for(const _0x32c4f0 of _0x15c2ce){if('$graveyard'==_0x32c4f0['root']['rootName'])continue;const {row:_0x4a217f,column:_0x6d28e5}=_0x7b9b['getCellLocation'](_0x32c4f0),_0x532b4e=_0x32c4f0['hasAttribute']('rowspan')?_0x32c4f0['getAttribute']('rowspan')-0x1:0x0,_0x31cf3e=_0x32c4f0['hasAttribute']('colspan')?_0x32c4f0['getAttribute']('colspan')-0x1:0x0;_0x2d9ebe=_0x4a217f<_0x2d9ebe?_0x4a217f:_0x2d9ebe,_0x5aa6a8=_0x4a217f+_0x532b4e>_0x5aa6a8?_0x4a217f+_0x532b4e:_0x5aa6a8,_0x5947e0=_0x6d28e5<_0x5947e0?_0x6d28e5:_0x5947e0,_0x46c0f7=_0x6d28e5+_0x31cf3e>_0x46c0f7?_0x6d28e5+_0x31cf3e:_0x46c0f7;}return{'minRow':_0x2d9ebe,'maxRow':_0x5aa6a8,'minColumn':_0x5947e0,'maxColumn':_0x46c0f7};}['_setupColumnsRowsFixing'](){const _0x301359=this['editor'],_0x198152=_0x301359['plugins']['get']('TrackChangesEditing'),_0x1fca7b=_0x301359['plugins']['get']('TableUtils');_0x301359['model']['document']['on']('change:data',()=>{const _0x4688ef=Array['from'](_0x301359['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19f043,data:_0x577e47}of _0x4688ef){const {group:_0x4eb214,id:_0x3349ab,subType:_0x34ea82}=_0x198152['_splitMarkerName'](_0x19f043);if('suggestion'!=_0x4eb214)continue;if(null!=_0x577e47['oldRange'])continue;const _0x555648=_0x198152['getSuggestion'](_0x3349ab);this['_tablePostFixingSubtypes']['includes'](_0x34ea82)&&this['_tableSuggestions']['add'](_0x555648);}},{'priority':'low'});const _0x4d984e=(_0x2323e1,_0x8644b9)=>{let _0x3685d7=!0x1;const _0x5c8449=_0x8644b9['createRangeOn'](_0x2323e1),_0x457261=_0x2323e1['findAncestor']('table'),_0x3f8488=_0x1fca7b['getCellLocation'](_0x2323e1);for(const _0x5addf0 of this['_tableSuggestions']){const _0x20b7da=_0x5addf0['subType'],_0x544bb0=_0x20b7da['startsWith']('tablePaste'),_0x4770a4=_0x20b7da['substr'](_0x544bb0?0xa:0x5),_0x439ce6=_0x4770a4['toLowerCase'](),_0x1d2644=_0x439ce6['substr'](0x0,0x3)+'span',_0x5d1024='min'+_0x4770a4,_0xa8712e='max'+_0x4770a4;if(!_0x5addf0['isInContent'])continue;if(_0x457261!=_0x5addf0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5addf0['isIntersectingWithRange'](_0x5c8449))continue;const _0x341505=_0x2323e1['hasAttribute'](_0x1d2644)?_0x2323e1['getAttribute'](_0x1d2644)-0x1:0x0,_0x31e8bf=this['_getSuggestionCoords'](_0x5addf0),_0x175af9=_0x31e8bf[_0x5d1024],_0x14cee7=_0x31e8bf[_0xa8712e];_0x175af9<=_0x3f8488[_0x439ce6]&&_0x3f8488[_0x439ce6]+_0x341505<=_0x14cee7&&(_0x5addf0['addRange'](_0x5c8449),_0x3685d7=!0x0);}return _0x3685d7;};_0x301359['model']['document']['registerPostFixer'](_0x5b0977=>{let _0x24623c=!0x1;for(const _0x28a8d9 of _0x301359['model']['document']['differ']['getChanges']())if('insert'==_0x28a8d9['type']){if('tableRow'==_0x28a8d9['name']){for(const _0x272703 of _0x28a8d9['position']['nodeAfter']['getChildren']())_0x24623c=_0x24623c||_0x4d984e(_0x272703,_0x5b0977);}else'tableCell'==_0x28a8d9['name']&&(_0x24623c=_0x24623c||_0x4d984e(_0x28a8d9['position']['nodeAfter'],_0x5b0977));}return _0x24623c;});}['_getSuggestionCoords'](_0x289c11){return this['_getCoordsForCells'](_0x289c11['getRanges']()['map'](_0x1546fb=>_0x1546fb['start']['nodeAfter']));}}function Ee(_0x586428){return Array['from'](new Set(_0x586428)['values']());}class At extends _0x506527{static get['requires'](){return[St];}['afterInit'](){const _0x5b5527=this['editor'],_0x38a499=_0x5b5527['model']['document']['selection'],_0x15f01c=_0x5b5527['locale'];if(!_0x5b5527['plugins']['has']('TableEditing'))return;const _0x3caf14=_0x5b5527['plugins']['get']('TrackChangesEditing'),_0x6c0a02=_0x5b5527['plugins']['get']('TableUtils'),_0x1f40d8=_0x5b5527['plugins']['get'](St);_0x1f40d8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3caf14['enableCommand']('mergeTableCells',()=>{const _0x1881ac=_0x6c0a02['getSelectionAffectedTableCells'](_0x5b5527['model']['document']['selection']);_0x5b5527['model']['change'](()=>{_0x3caf14['markMultiRangeBlockFormat'](_0x1881ac,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b5527['commands']['get']('mergeTableCells')['on']('execute',(_0x4dc7cd,_0x442b05)=>{_0x5b5527['commands']['get']('trackChanges')['value']&&(_0x442b05['length']>0x0&&_0x442b05[_0x442b05['length']-0x1]&&_0x442b05[_0x442b05['length']-0x1]['forceDefaultExecution']||_0x3caf14['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4dc7cd['stop']());},{'priority':'highest'});for(const _0x699108 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1f11e8=_0x5b5527['commands']['get'](_0x699108);_0x3caf14['enableCommand'](_0x699108,()=>{const _0x4c05b9=_0x5b5527['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x729394=>_0x729394['is']('element','tableCell')),_0x100d74=_0x1f11e8['value'];_0x5b5527['model']['change'](()=>{_0x3caf14['markMultiRangeBlockFormat']([_0x4c05b9,_0x100d74],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x462a5f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18260e=_0x5b5527['commands']['get'](_0x462a5f);_0x3caf14['enableCommand'](_0x462a5f,()=>{const _0x567204=_0x6c0a02['getSelectionAffectedTableCells'](_0x5b5527['model']['document']['selection'])[0x0],_0x115c0d=_0x567204['findAncestor']('table'),{column:_0x357117,row:_0x253ef4}=_0x6c0a02['getCellLocation'](_0x567204);let _0x119ea4=[];if('horizontally'==_0x18260e['direction']){const _0x5e00fc=_0x6c0a02['createTableWalker'](_0x115c0d,{'startRow':_0x253ef4,'endRow':_0x253ef4,'includeAllSlots':!0x0});_0x119ea4=Array['from'](_0x5e00fc)['map'](_0x18439e=>_0x18439e['cell']);}else{const _0x22e14b=_0x6c0a02['createTableWalker'](_0x115c0d,{'column':_0x357117,'includeAllSlots':!0x0});_0x119ea4=Array['from'](_0x22e14b)['map'](_0xc617d5=>_0xc617d5['cell']);}_0x5b5527['model']['change'](_0x38b2dc=>{_0x3caf14['markBlockFormat'](_0x38b2dc['createRangeOn'](_0x567204),{'commandName':_0x462a5f,'commandParams':[]},_0x119ea4,_0x462a5f);});});}_0x3caf14['descriptionFactory']['registerDescriptionCallback'](_0x5c08f5=>{if('formatBlock'!=_0x5c08f5['type']&&'formatInline'!=_0x5c08f5['type'])return;const {data:_0x546a33}=_0x5c08f5;return _0x546a33&&'mergeTableCells'==_0x546a33['commandName']?{'type':'format','content':o(_0x15f01c,'*Merge\x20cells*')}:void 0x0;}),_0x3caf14['descriptionFactory']['registerDescriptionCallback'](_0x513115=>{if('formatBlock'!=_0x513115['type']&&'formatInline'!=_0x513115['type'])return;const {data:_0x2e9b3f}=_0x513115;return _0x2e9b3f?'splitTableCellVertically'==_0x2e9b3f['commandName']?{'type':'format','content':o(_0x15f01c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2e9b3f['commandName']?{'type':'format','content':o(_0x15f01c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46fa3c=_0x1f40d8['_acceptFormatSuggestionCallbackFactory']();for(const _0x3e5f8f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3caf14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e5f8f,'accept',_0x46fa3c);for(const _0x1b48f1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3caf14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b48f1,'accept',_0x46fa3c);_0x3caf14['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xfe2e6f=>{_0x5b5527['model']['change'](_0x4901b9=>{const _0x9c61df=Array['from'](_0x38a499['getRanges']())['map'](_0x15fbf3=>_0x53f8a1['fromRange'](_0x15fbf3));_0x4901b9['setSelection'](_0xfe2e6f),_0x5b5527['commands']['get']('mergeTableCells')['refresh'](),_0x5b5527['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x238c34=_0x9c61df['filter'](_0x173b17=>'$graveyard'!=_0x173b17['root']['rootName']);_0x238c34['length']>0x0&&_0x4901b9['setSelection'](_0x238c34);for(const _0x14fec8 of _0x9c61df)_0x14fec8['detach']();});});for(const _0x4832c6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x393cba=_0x5b5527['commands']['get'](_0x4832c6);_0x393cba['on']('set:isEnabled',(_0x2ba781,_0x8c397a,_0x2a6b0d)=>{if(_0x2a6b0d){const _0x4d1b2a=_0x5b5527['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x458fc4=>_0x458fc4['is']('element','tableCell'));this['_areMergableCells'](_0x393cba['value'],_0x4d1b2a)||(_0x2ba781['return']=!0x1,_0x2ba781['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3b149c=this['editor']['commands']['get']('mergeTableCells'),_0x49f6ba=this['editor']['plugins']['get']('TableUtils');if(!_0x3b149c['isEnabled'])return!0x1;const _0x14fbb7=_0x49f6ba['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54d81e of _0x14fbb7)for(const _0x3ed9ba of _0x14fbb7)if(_0x54d81e!=_0x3ed9ba&&!this['_areMergableCells'](_0x54d81e,_0x3ed9ba))return!0x1;return!0x0;}['_areMergableCells'](_0x75d9e8,_0x31fa35){const _0x3d23e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e6577=this['editor']['model']['createRangeOn'](_0x75d9e8),_0x38368b=this['editor']['model']['createRangeOn'](_0x31fa35),_0x435bff=new Set(),_0x28d84d=new Set();for(const _0x2f3d46 of _0x3d23e4['getSuggestions']())if(('insertion'==_0x2f3d46['type']||'deletion'==_0x2f3d46['type']||'mergeTableCells'==_0x2f3d46['subType'])&&_0x2f3d46['isInContent']){for(const _0x241954 of _0x2f3d46['getRanges']())_0x241954['containsRange'](_0x2e6577,!0x0)&&_0x435bff['add'](_0x2f3d46['type']+':'+_0x2f3d46['author']['id']),_0x241954['containsRange'](_0x38368b,!0x0)&&_0x28d84d['add'](_0x2f3d46['type']+':'+_0x2f3d46['author']['id']);}if(_0x435bff['size']!=_0x28d84d['size'])return!0x1;for(const _0x38831d of _0x435bff)if(!_0x28d84d['has'](_0x38831d))return!0x1;return!0x0;}}class It extends _0x506527{static get['requires'](){return[St];}['afterInit'](){const _0x4ff434=this['editor'];if(!_0x4ff434['plugins']['has']('TableEditing'))return;const _0x5071bc=_0x4ff434['locale'],_0x4b4962=_0x4ff434['plugins']['get']('TrackChangesEditing');_0x4b4962['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4b4962['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4b4962['registerBlockAttribute']('headingRows'),_0x4b4962['registerBlockAttribute']('headingColumns'),_0x4b4962['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5071bc,'FORMAT_HEADER_ROW')),_0x4b4962['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5071bc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1eba42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x216eff=this['editor']['plugins']['get']('TableUtils'),_0x4c5b5d=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x404cde({showActiveMarker:_0x51db4d=!0x0,setDataAttribute:_0x502fff=!0x0}={}){return(_0x40063c,_0x405a7c,_0x1b44e3)=>{const {type:_0x2138a2,id:_0x5d8a90}=_0x1eba42['_splitMarkerName'](_0x405a7c['markerName']),_0x504856=_0x1eba42['getSuggestion'](_0x5d8a90),_0x45d587=_0x504856['data'];if('formatBlock'!=_0x504856['type']||!_0x45d587||'setTableColumnHeader'!=_0x45d587['commandName'])return;if(_0x405a7c['item'])return void _0x40063c['stop']();if(!_0x1b44e3['consumable']['consume'](_0x405a7c['markerRange'],_0x40063c['name']))return;const _0xe42af5=_0x405a7c['markerRange']['start']['nodeAfter'],_0x3dcb50=_0x405a7c['markerRange']['end']['nodeBefore'],_0x4cfbf8=_0xe42af5['parent']['parent'],{column:_0x17f45d}=_0x216eff['getCellLocation'](_0xe42af5),{column:_0x143357}=_0x216eff['getCellLocation'](_0x3dcb50);for(let _0x24eae6=_0x17f45d;_0x24eae6<=_0x143357;_0x24eae6++){const _0x23d77b=_0x216eff['createTableWalker'](_0x4cfbf8,{'column':_0x24eae6,'includeAllSlots':!0x1});for(const _0x41c0a4 of _0x23d77b){const _0x2fa2b8=_0x41c0a4['cell'],_0x455126=_0x1b44e3['mapper']['toViewElement'](_0x2fa2b8);_0x1b44e3['writer']['addClass']('ck-suggestion-marker-'+_0x2138a2,_0x455126),_0x502fff&&_0x1b44e3['writer']['setAttribute']('data-suggestion',_0x5d8a90,_0x455126),_0x1b44e3['mapper']['bindElementToMarker'](_0x455126,_0x405a7c['markerName']),_0x51db4d&&(_0x1eba42['activeMarkers']['includes'](_0x405a7c['markerName'])?_0x1b44e3['writer']['addClass']('ck-suggestion-marker--active',_0x455126):_0x1b44e3['writer']['removeClass']('ck-suggestion-marker--active',_0x455126));}}};}_0x1eba42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c5b5d),_0x1eba42['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c5b5d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x404cde(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x467f27,_0x346691,_0x1d0c0f)=>{_0x1d0c0f['options']['showSuggestionHighlights']&&_0x404cde({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x467f27,_0x346691,_0x1d0c0f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2b18e6,_0x5dd255,_0x25350c)=>{const {type:_0x5a2748,id:_0x471703}=_0x1eba42['_splitMarkerName'](_0x5dd255['markerName']),_0x21a3cf=_0x1eba42['getSuggestion'](_0x471703),_0x314df1=_0x21a3cf['data'];if('formatBlock'!=_0x21a3cf['type']||!_0x314df1||'setTableColumnHeader'!=_0x314df1['commandName'])return;const _0x272bc2=_0x25350c['mapper']['markerNameToElements'](_0x5dd255['markerName']);if(_0x272bc2){for(const _0x14c902 of _0x272bc2)_0x25350c['writer']['removeClass']('ck-suggestion-marker-'+_0x5a2748,_0x14c902),_0x25350c['writer']['removeClass']('ck-suggestion-marker--active',_0x14c902),_0x25350c['writer']['removeAttribute']('data-suggestion',_0x14c902),_0x25350c['mapper']['unbindElementFromMarkerName'](_0x14c902,_0x5dd255['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eb18f=this['editor'],_0xea45f0=_0x2eb18f['locale'];function _0x488ac3(_0x4aeea0){return{'type':'format','content':o(_0xea45f0,'*Format:*\x20%0',_0x4aeea0)};}_0x2eb18f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21f000=>{if('formatBlock'!=_0x21f000['type'])return;const {data:_0x4674ab}=_0x21f000;if(_0x4674ab){if('setTableRowHeader'==_0x4674ab['commandName']){const _0x46b420=_0x4674ab['commandParams'][0x0]['forceValue'];return _0x488ac3(o(_0xea45f0,_0x46b420?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4674ab['commandName']){const _0x1f56fa=_0x4674ab['commandParams'][0x0]['forceValue'];return _0x488ac3(o(_0xea45f0,_0x1f56fa?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5960c2=>[_0x5960c2,null]));class vt extends _0x506527{static get['requires'](){return[St];}['afterInit'](){const _0x3b23c9=this['editor'];if(!_0x3b23c9['plugins']['has']('TableClipboard'))return;const _0x59bfcd=_0x3b23c9['plugins']['get']('TrackChangesEditing'),_0x53bf99=_0x3b23c9['plugins']['get']('TableUtils'),_0x3004c8=_0x3b23c9['plugins']['get'](St),_0x3985b9=_0x3b23c9['plugins']['get']('TableClipboard');_0x3004c8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3b23c9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3b23c9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1c4697=null;_0x3b23c9['model']['on']('insertContent',(_0x3e254d,_0x9b29bf)=>{const [_0x4ea5ad,_0x320530]=_0x9b29bf,_0x347ef2=_0x9b29bf[_0x9b29bf['length']-0x1];_0x347ef2&&_0x347ef2['forceDefaultExecution']||_0x59bfcd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xd1baf1,_0x2bccef,_0x349e43,_0x24dca2,_0x4ad0a6){if(_0x2bccef&&!_0x2bccef['is']('documentSelection'))return!0x1;const _0x173073=_0x4ad0a6['getTableIfOnlyTableInContent'](_0xd1baf1,_0x349e43);if(!_0x173073||!we(_0x173073,void 0x0,_0x24dca2))return!0x1;const _0x3eafce=_0x24dca2['getSelectionAffectedTableCells'](_0x349e43['document']['selection']);if(!_0x3eafce['length'])return!0x1;const _0x216b06=_0x3eafce[0x0]['findAncestor']('table'),_0xb27fd4=_0x24dca2['getRowIndexes'](_0x3eafce),_0x3ded07=_0x24dca2['getColumnIndexes'](_0x3eafce),_0x70d522={'startRow':_0xb27fd4['first'],'endRow':_0xb27fd4['last'],'startColumn':_0x3ded07['first'],'endColumn':_0x3ded07['last']};return 0x1==_0x3eafce['length']&&(_0x70d522['endRow']+=_0x24dca2['getRows'](_0x173073)-0x1,_0x70d522['endColumn']+=_0x24dca2['getColumns'](_0x173073)-0x1),we(_0x216b06,_0x70d522,_0x24dca2);}(_0x4ea5ad,_0x320530,_0x3b23c9['model'],_0x53bf99,_0x3985b9)&&(_0x3e254d['stop'](),_0x1c4697={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3b23c9['model']['change'](()=>{_0x3b23c9['model']['insertContent'](_0x9b29bf[0x0],_0x9b29bf[0x1],_0x9b29bf[0x2],{'forceDefaultExecution':!0x0});const _0xf33bca=_0x4f07c9(),{rowInsertionRanges:_0x44b39b,columnInsertionRanges:_0x548dee,insertionRanges:_0x5ba442,deletionRanges:_0x2c7ccd,cells:_0x40af9e}=_0x1c4697;_0x44b39b['length']&&_0x59bfcd['markMultiRangeInsertion'](_0x44b39b,'tablePasteRow',{'tablePasteChainId':_0xf33bca}),_0x548dee['length']&&_0x59bfcd['markMultiRangeInsertion'](_0x548dee,'tablePasteColumn',{'tablePasteChainId':_0xf33bca}),_0x5ba442['length']&&(_0x59bfcd['markMultiRangeInsertion'](_0x5ba442,'tablePaste',{'tablePasteChainId':_0xf33bca,'skipNestingCheck':!0x0}),_0x5ba442['forEach'](_0x665489=>_0x665489['detach']?.())),_0x2c7ccd['length']&&(_0x59bfcd['markMultiRangeDeletion'](_0x2c7ccd,'tablePaste',{'tablePasteChainId':_0xf33bca,'skipNestingCheck':!0x0}),_0x2c7ccd['forEach'](_0x234e23=>_0x234e23['detach']?.()));const _0x101958=_0x59bfcd['markMultiRangeBlockFormat'](_0x40af9e['map'](({element:_0x17fff8})=>_0x17fff8),{'formatGroupId':_0x4f07c9()},[],'tablePasteCell',{'tablePasteChainId':_0xf33bca});if(_0x101958){const _0x5da259=_0x101958['getMarkers'](),_0x348f70=[];for(const {element:_0x3e4f5c,attributes:_0x545fde}of _0x40af9e){if(!_0x545fde)continue;const _0x2e7035=_0x3b23c9['model']['createRangeOn'](_0x3e4f5c),_0x36dd7c=_0x5da259['find'](_0x53169c=>_0x53169c['getRange']()['isEqual'](_0x2e7035));_0x36dd7c&&_0x348f70['push']([_0x36dd7c['name'],_0x545fde]);}_0x348f70['length']&&_0x101958['setAttribute']('markerAttributes',Object['fromEntries'](_0x348f70));}_0x1c4697=null;}));},{'priority':_0x26da40['high']+0xa}),_0x3b23c9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x36722a,_0x5a273c)=>{const [_0x1d5bbe,_0x2bf60f,,_0x2401b1]=_0x5a273c;if(!_0x1c4697)return;_0x36722a['stop']();const _0x323de4=_0x1d5bbe['cell'],_0x2e3cd6=_0x2bf60f,_0x206750=Pe(_0x323de4),_0xb33ee2=Pe(_0x2e3cd6);_0x36722a['return']=_0x323de4;let _0x161c66=null,_0x2d4a39=null;if(_0xb33ee2||_0x206750){if(_0x206750&&!_0xb33ee2){_0x2401b1['remove'](_0x323de4['getChild'](0x0));for(const _0x12f297 of Array['from'](_0x2e3cd6['getChildren']()))_0x2401b1['insert'](_0x12f297,_0x323de4,'end');const _0x45917c=_0x1c4697['rowInsertionIndexes']['includes'](_0x1d5bbe['row']),_0x59caa9=_0x1c4697['columnInsertionIndexes']['includes'](_0x1d5bbe['column']);_0x45917c||_0x59caa9||(_0x161c66=_0x53f8a1['fromRange'](_0x2401b1['createRangeIn'](_0x323de4)));}else _0xb33ee2&&!_0x206750&&(_0x2d4a39=_0x2401b1['createRangeIn'](_0x323de4));}else{const _0x2bac0c=_0x2401b1['createElement']('tableCellSuggestion'),_0x3f4075=_0x2401b1['createElement']('tableCellSuggestion');_0x2401b1['wrap'](_0x2401b1['createRangeIn'](_0x323de4),_0x3f4075),_0x2401b1['insert'](_0x2bac0c,_0x323de4,0x0);for(const _0x18b17c of Array['from'](_0x2e3cd6['getChildren']()))_0x2401b1['insert'](_0x18b17c,_0x2bac0c,'end');_0x161c66=_0x53f8a1['fromRange'](_0x2401b1['createRangeOn'](_0x2bac0c)),_0x2d4a39=_0x53f8a1['fromRange'](_0x2401b1['createRangeOn'](_0x3f4075));}const _0xa66a5b=Array['from'](_0x2e3cd6['getAttributes']())['filter'](([_0x51440f])=>ge['includes'](_0x51440f));_0x1c4697['cells']['push']({'element':_0x323de4,'attributes':_0xa66a5b['length']?Object['fromEntries'](_0xa66a5b):null}),_0x161c66&&_0x1c4697['insertionRanges']['push'](_0x161c66),_0x2d4a39&&_0x1c4697['deletionRanges']['push'](_0x2d4a39);},{'priority':'high'}),_0x53bf99['on']('insertColumns',(_0x3d30f4,_0x486b44)=>{const [_0x497b69,_0x3dfe89={}]=_0x486b44;if(!_0x1c4697)return;const _0x212bc5=_0x3dfe89['at']||0x0,_0x10f264=_0x3dfe89['columns']||0x1;_0x1c4697['columnInsertionIndexes']=new Array(_0x10f264)['fill'](_0x212bc5)['map']((_0x23e4a8,_0x3ec02c)=>_0x23e4a8+_0x3ec02c);for(const {cell:_0x84a694}of _0x53bf99['createTableWalker'](_0x497b69,{'startColumn':_0x212bc5,'endColumn':_0x212bc5+_0x10f264-0x1}))_0x1c4697['columnInsertionRanges']['push'](_0x3b23c9['model']['createRangeOn'](_0x84a694));},{'priority':'low'}),_0x53bf99['on']('insertRows',(_0xa83a9d,_0xc76e92)=>{const [_0x374062,_0x259850={}]=_0xc76e92;if(!_0x1c4697)return;const _0xdae213=_0x259850['at']||0x0,_0x212bf5=_0x259850['rows']||0x1;_0x1c4697['rowInsertionIndexes']=new Array(_0x212bf5)['fill'](_0xdae213)['map']((_0x4c10a7,_0x1ef2b0)=>_0x4c10a7+_0x1ef2b0);for(const {cell:_0x66fc82}of _0x53bf99['createTableWalker'](_0x374062,{'startRow':_0xdae213,'endRow':_0xdae213+_0x212bf5-0x1}))_0x1c4697['rowInsertionRanges']['push'](_0x3b23c9['model']['createRangeOn'](_0x66fc82));},{'priority':'low'}),_0x59bfcd['descriptionFactory']['registerDescriptionCallback'](_0x3e6cee=>{if(_0x3e6cee['subType']&&_0x3e6cee['subType']['startsWith']('tablePaste'))return _0x3e6cee['previous']?{}:{'type':'insertion','content':o(_0x3b23c9['locale'],'*Replace\x20table\x20cells*')};});const _0x403fa0=()=>!0x1;for(const _0x2698de of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x59bfcd['_suggestionFactory']['registerCustomCallback']('insertion',_0x2698de,'join',_0x403fa0),_0x59bfcd['_suggestionFactory']['registerCustomCallback']('deletion',_0x2698de,'join',_0x403fa0),_0x59bfcd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2698de,'join',_0x403fa0);_0x59bfcd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x403fa0),_0x59bfcd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x19da4c,_0x3a64e3,_0x4be0d9)=>{const _0x156e91=_0x19da4c['map'](_0x45e192=>_0x45e192['getContainedElement']())['filter'](_0x4461ee=>_0x4461ee),_0x4cb9e4=new Map(_0x156e91['map'](_0x511a24=>[_0x511a24,null]));if(_0x1c4697){for(const {element:_0x5439ef,attributes:_0x378a2f}of _0x1c4697['cells'])_0x378a2f&&_0x4cb9e4['set'](_0x5439ef,_0x378a2f);}else{if(_0x4be0d9&&_0x4be0d9['markerAttributes'])for(const [_0x115191,_0x53a4aa]of Object['entries'](_0x4be0d9['markerAttributes'])){const _0x5981d8=_0x3b23c9['model']['markers']['get'](_0x115191),_0x92fef=_0x5981d8?_0x5981d8['getRange']()['getContainedElement']():null;_0x92fef&&_0x4cb9e4['set'](_0x92fef,_0x53a4aa);}}_0x3b23c9['model']['change'](_0x282f57=>{for(const [_0x35bebf,_0x209914]of _0x4cb9e4)_0x282f57['setAttributes']({...Ce,..._0x209914},_0x35bebf);});});const _0x539520=(_0x13e4fa,_0x3ef93a)=>{_0x59bfcd['_suggestionFactory']['registerCustomCallback'](_0x13e4fa,'tablePaste',_0x3ef93a,(_0x4bcb00,_0x5ed404,_0x447cb4)=>{_0x3b23c9['model']['change'](_0x5f03dd=>{const _0x1aabe5=[];for(const _0x6a8d75 of _0x4bcb00){const _0x13dc85=_0x6a8d75['start']['nodeAfter'];_0x13dc85['is']('element','tableCellSuggestion')&&_0x1aabe5['push'](_0x13dc85);}_0x59bfcd['_suggestionFactory']['getSuggestionCallback'](_0x13e4fa,null,_0x3ef93a)(_0x4bcb00,_0x5ed404,_0x447cb4);for(const _0xaf4c84 of _0x1aabe5)'$graveyard'!=_0xaf4c84['root']['rootName']&&_0x5f03dd['unwrap'](_0xaf4c84);});});};_0x539520('insertion','accept'),_0x539520('insertion','discard'),_0x539520('deletion','accept'),_0x539520('deletion','discard'),_0x59bfcd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x17e5f6=>{const _0x4b553c=_0x17e5f6['map'](_0x101612=>_0x101612['getContainedElement']()),_0x263f8e=_0x4b553c[0x0]['findAncestor']('table'),{minRow:_0x361fb4,maxRow:_0x170351}=_0x3004c8['_getCoordsForCells'](_0x4b553c);_0x53bf99['removeRows'](_0x263f8e,{'at':_0x361fb4,'rows':_0x170351-_0x361fb4+0x1});}),_0x59bfcd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e42d4=>{const _0x2b7b90=_0x4e42d4['map'](_0xde764=>_0xde764['getContainedElement']()),_0x442b62=_0x2b7b90[0x0]['findAncestor']('table'),{minColumn:_0x2e304d,maxColumn:_0x4a15e}=_0x3004c8['_getCoordsForCells'](_0x2b7b90);_0x53bf99['removeColumns'](_0x442b62,{'at':_0x2e304d,'columns':_0x4a15e-_0x2e304d+0x1});});const _0x396a29=(_0x1c814e,_0x4512f7)=>{if(!_0x4512f7['subType']||!_0x4512f7['subType']['startsWith']('tablePaste'))return;const _0x1b4af1=_0x4512f7['attributes']['tablePasteChainId'],_0x55f396=_0x59bfcd['getSuggestions']()['filter'](_0x5ddc83=>_0x5ddc83['isInContent']&&_0x5ddc83['attributes']&&_0x5ddc83['attributes']['tablePasteChainId']==_0x1b4af1);_0x55f396['length']&&_0x4512f7['getAllAdjacentSuggestions']()['length']!=_0x55f396['length']&&_0x55f396['reduce']((_0x26e4c8,_0x5dfafe)=>(_0x26e4c8['next']=_0x5dfafe,_0x5dfafe['previous']=_0x26e4c8,_0x5dfafe));};function _0x2326a4(_0x2db204,_0xf9782b=!0x0){const {id:_0x61fce1}=_0x59bfcd['_splitMarkerName'](_0x2db204['markerName']),_0x430cbb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbe54d4=_0x59bfcd['activeMarkers']['includes'](_0x2db204['markerName']);return _0xbe54d4&&_0x430cbb['push']('ck-suggestion-marker--active'),{'classes':_0x430cbb,'attributes':{'data-suggestion':_0x61fce1},'priority':_0xbe54d4&&_0xf9782b?0xbc2:0xbb8};}_0x59bfcd['on']('suggestionLoaded',_0x396a29,{'priority':'high'}),_0x59bfcd['on']('suggestionUnloaded',_0x396a29,{'priority':'high'}),_0x3b23c9['model']['document']['registerPostFixer'](()=>{let _0x9578d8=!0x1;const _0xb7ef1a=Array['from'](_0x3b23c9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d7176,data:_0x39f10f}of _0xb7ef1a){const {group:_0x55efca,type:_0x30373c,id:_0x2ecd80}=_0x59bfcd['_splitMarkerName'](_0x4d7176);if('suggestion'!=_0x55efca||'deletion'!=_0x30373c||_0x39f10f['oldRange'])continue;if(!_0x59bfcd['hasSuggestion'](_0x2ecd80))continue;const _0x5abda1=_0x59bfcd['getSuggestion'](_0x2ecd80)['getRanges'](),_0x2bda43=_0x3b23c9['plugins']['get']('Users')['me'];for(const _0x129a73 of _0x59bfcd['getSuggestions']()){if(!_0x129a73['isInContent']||_0x129a73['author']!=_0x2bda43)continue;if('formatBlock'!=_0x129a73['type']||'tablePasteCell'!=_0x129a73['subType'])continue;if(_0x129a73['getRanges']()['every'](_0x5bdb9c=>_0x5abda1['some'](_0x3ccea6=>_0x3ccea6['containsRange'](_0x5bdb9c,!0x0)))){for(const _0x11fbac of _0x129a73['getAllAdjacentSuggestions']())_0x11fbac['isInContent']&&(_0x11fbac['discard'](),_0x9578d8=!0x0);}}}return _0x9578d8;}),_0x3b23c9['model']['document']['registerPostFixer'](_0x359ecb=>{const _0x590d7c=_0x3b23c9['commands']['get']('redo');if(!_0x590d7c||!_0x590d7c['_createdBatches']['has'](_0x359ecb['batch']))return!0x1;let _0x52d77f=!0x1;const _0x2785b7=_0x3b23c9['plugins']['get']('Users')['me'],_0x294836=_0x3b23c9['model']['document']['differ']['getChanges'](),_0x17cc24=Array['from'](_0x3b23c9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4c2986,data:_0xe13641})=>{const {group:_0x5c135e,subType:_0x5cc5c8,authorId:_0x17c533}=_0x59bfcd['_splitMarkerName'](_0x4c2986);return'suggestion'==_0x5c135e&&'tablePaste'==_0x5cc5c8&&_0x17c533==_0x2785b7['id']&&!_0xe13641['oldRange'];});for(const _0x162b18 of _0x294836){if('insert'!=_0x162b18['type']||'tableCellSuggestion'!=_0x162b18['name']||0x1!=_0x162b18['length'])continue;const _0x5ae81f=_0x359ecb['createRange'](_0x162b18['position'],_0x162b18['position']['getShiftedBy'](0x1));if(!_0x17cc24['find'](({data:_0x1dc518})=>_0x1dc518['newRange']['isEqual'](_0x5ae81f))){for(const {name:_0x1148f1,data:_0x3d1b71}of _0x17cc24)if(_0x5ae81f['containsRange'](_0x3d1b71['newRange'])){_0x359ecb['updateMarker'](_0x1148f1,{'range':_0x5ae81f}),_0x52d77f=!0x0;break;}}}return _0x52d77f;}),_0x3b23c9['model']['document']['registerPostFixer'](_0x3fe068=>{let _0x404ef4=!0x1;const _0x3c36d2=_0x3b23c9['plugins']['get']('Users')['me'],_0xf37c95=_0x59bfcd['getSuggestions']()['filter'](_0x2a31e9=>_0x2a31e9['isInContent']&&_0x2a31e9['author']==_0x3c36d2),_0x2706c5=new Set(),_0x1bdd99=new Set();for(const _0x453af3 of _0xf37c95)if('tablePaste'==_0x453af3['subType'])for(const _0x3773b7 of _0x453af3['getMarkers']()){const _0x16572c=_0x3773b7['getRange']()['getContainedElement']();if(_0x16572c){if(_0x16572c['is']('element','tableCellSuggestion')&&Pe(_0x16572c)){_0x453af3['removeMarker'](_0x3773b7['name']),_0x2706c5['add'](_0x16572c),_0x404ef4=!0x0;const _0x303ca4=_0x16572c['nextSibling'],_0x927b17=_0x16572c['previousSibling'],_0x4b747c=_0x303ca4&&_0x303ca4['is']('element','tableCellSuggestion'),_0x37dda8=_0x927b17&&_0x927b17['is']('element','tableCellSuggestion');_0x4b747c&&!_0x2706c5['has'](_0x303ca4)&&_0x1bdd99['add'](_0x303ca4),_0x37dda8&&!_0x2706c5['has'](_0x927b17)&&_0x1bdd99['add'](_0x927b17);}else _0x16572c['is']('element','paragraph')&&_0x16572c['isEmpty']&&(_0x453af3['removeMarker'](_0x3773b7['name']),_0x404ef4=!0x0);}}else{if('tablePasteCell'==_0x453af3['subType']){if(!_0x453af3['attributes']||!_0x453af3['attributes']['tablePasteChainId'])continue;const _0x174688=_0x453af3['attributes']['markerAttributes'];if(_0x174688&&Object['keys'](_0x174688)['length'])continue;const _0x460d72=_0x453af3['attributes']['tablePasteChainId'];let _0xe11229=!0x0,_0x29694a=!0x0;for(const _0x1db563 of _0xf37c95)if(_0x1db563['subType']&&_0x1db563['subType']['startsWith']('tablePaste')){if(!_0x1db563['attributes']['tablePasteChainId']){_0x29694a=!0x1;break;}if(_0x1db563['id']!=_0x453af3['id']&&_0x1db563['attributes']['tablePasteChainId']==_0x460d72){_0xe11229=!0x1;break;}}_0x29694a&&_0xe11229&&(_0x453af3['removeMarkers'](),_0x404ef4=!0x0);}}for(const _0x2a848b of _0x2706c5)_0x3fe068['remove'](_0x2a848b);for(const _0x4de7b4 of _0x1bdd99)_0x3fe068['unwrap'](_0x4de7b4);return _0x404ef4;}),_0x3b23c9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x470a25,_0x592639)=>_0x2326a4(_0x470a25),'converterPriority':'high'}),_0x3b23c9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5be3a8,_0x785fa1)=>_0x785fa1['options']['showSuggestionHighlights']?_0x2326a4(_0x5be3a8,!0x1):null,'converterPriority':'high'});const _0x4aa8d5=_0x3b23c9['editing']['view'];this['listenTo'](_0x4aa8d5['document'],'clipboardOutput',(_0x228ccc,_0x1b86c5)=>{const _0x41f2fe=[];for(const _0xffdf1f of _0x4aa8d5['createRangeIn'](_0x1b86c5['content'])['getItems']())_0xffdf1f['is']('element','suggestion-td')&&_0x41f2fe['push'](_0xffdf1f);_0x4aa8d5['change'](_0x36a1b1=>{for(const _0x4d6ed7 of _0x41f2fe)_0x36a1b1['move'](_0x36a1b1['createRangeIn'](_0x4d6ed7),_0x36a1b1['createPositionBefore'](_0x4d6ed7)),_0x36a1b1['remove'](_0x4d6ed7);});});}}function Pe(_0x58ecd0){if(_0x58ecd0['isEmpty'])return!0x0;const _0x22ca68=_0x58ecd0['getChild'](0x0);return _0x22ca68['is']('element','paragraph')&&_0x22ca68['isEmpty'];}function we(_0x191983,_0x5365c1={},_0xb60611){for(const {isAnchor:_0x583507,cellHeight:_0x5616de,cellWidth:_0x3da98c}of _0xb60611['createTableWalker'](_0x191983,{'includeAllSlots':!0x0,..._0x5365c1}))if(!_0x583507||0x1!=_0x5616de||0x1!=_0x3da98c)return!0x1;return!0x0;}class Ct extends _0x506527{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1c0d62=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c0d62['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1c0d62['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1c0d62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c0d62['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1c0d62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1c0d62['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x433fb3,_0x4c4b77){const _0x3bb3cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dddec=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x32f9de=_0x4c4b77['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9ffaca=_0x5dddec['getColumnGroupElement'](_0x32f9de);let _0x479f10=_0x9ffaca?_0x5dddec['getTableColumnsWidths'](_0x9ffaca):null,_0x2b39bf=_0x32f9de['getAttribute']('tableWidth')||null;const _0x270adf=_0x4c4b77['tableWidth']||_0x2b39bf,_0x222e7b=_0x4c4b77['columnWidths']||_0x479f10,_0x46fdf0=this['editor']['plugins']['get']('Users')['me'];for(const _0x3282c4 of _0x3bb3cf['getSuggestions']()){const _0x24b1d5=_0x3282c4['getContainedElement']();if('resizeTable'===_0x3282c4['subType']&&_0x24b1d5===_0x32f9de){_0x3282c4['author']!==_0x46fdf0&&_0x3282c4['discard']();const _0x236226=_0x3282c4['data']['commandParams'];_0x2b39bf=_0x236226[0x0]['tableWidth'],_0x479f10=_0x236226[0x0]['columnWidths'];break;}}_0x433fb3({'table':_0x32f9de,'tableWidth':_0x270adf,'columnWidths':_0x222e7b}),_0x3bb3cf['markBlockFormat'](_0x32f9de,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b39bf,'columnWidths':_0x479f10}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3a1ef0){if('formatBlock'!=_0x3a1ef0['type']&&'formatInline'!=_0x3a1ef0['type'])return;const {data:_0x2ab032}=_0x3a1ef0;if(_0x2ab032&&'resizeTable'===_0x2ab032['formatGroupId']){const _0x4ba500='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4ba500)};}}}class _t extends _0x506527{['afterInit'](){const _0x58bc72=this['editor'];_0x58bc72['plugins']['has']('Template')&&_0x58bc72['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x506527{['afterInit'](){const _0x3064df=this['editor'];if(!_0x3064df['commands']['get']('insertTableOfContents'))return;_0x3064df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2720c9=_0x3064df['plugins']['get']('TrackChangesEditing'),_0x3981b5=_0x3064df['locale'];_0x2720c9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1d9674=>o(_0x3981b5,'ELEMENT_TABLE_OF_CONTENTS',_0x1d9674));}}class Nt extends _0x506527{['afterInit'](){const _0x376342=this['editor'];if(!_0x376342['plugins']['has']('Title'))return;const _0x3473a2=_0x376342['plugins']['get']('TrackChangesEditing');_0x3473a2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x376342['locale'],'ELEMENT_TITLE')),_0x376342['model']['document']['registerPostFixer'](_0xe2e642=>{let _0x49f95a=!0x1;const _0x69328f=Array['from'](_0x376342['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3635f2,data:_0x383d82}of _0x69328f){const {group:_0x164c8f}=_0x3473a2['_splitMarkerName'](_0x3635f2);if('suggestion'!==_0x164c8f||!_0x383d82['newRange'])continue;const _0x593bfe=_0x383d82['newRange'],_0x41c6d4=_0x593bfe['end']['nodeBefore'];if(!_0x41c6d4||!_0x41c6d4['is']('element','title-content'))continue;if(!_0x593bfe['start']['isTouching'](_0x593bfe['end']))continue;const _0x12092d=_0x376342['model']['schema']['getNearestSelectionRange'](_0x593bfe['end'],'forward');if(_0x12092d&&_0x12092d['isCollapsed']){const _0x4ecd16=_0xe2e642['createRange'](_0x593bfe['start'],_0x12092d['start']);_0x4ecd16['isEqual'](_0x593bfe)||(_0xe2e642['updateMarker'](_0x3635f2,{'range':_0x4ecd16}),_0x49f95a=!0x0);}_0x49f95a||(_0xe2e642['removeMarker'](_0x3635f2),_0x49f95a=!0x0);}return _0x49f95a;});}}class Mt extends _0x506527{['afterInit'](){const _0x5c4860=this['editor'],_0x4caad5=_0x5c4860['plugins']['get']('TrackChangesEditing');_0x5c4860['plugins']['has']('UndoEditing')&&(_0x4caad5['enableCommand']('undo'),_0x4caad5['enableCommand']('redo'));}}class $t extends _0x506527{static get['requires'](){return[St];}['afterInit'](){const _0x2b9588=this['editor'];if(!_0x2b9588['plugins']['has']('TableCaptionEditing'))return;_0x2b9588['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x506527{['tableProperties'];['tableCellProperties'];constructor(_0x15c7a9){super(_0x15c7a9),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 _0x110555=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x28efa of this['tableProperties'])_0x110555['enableCommand'](_0x28efa,(_0x25a7db,_0x503acf)=>{const _0x1d024a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x28efa,[_0x1d024a],this['tableProperties'],'tableProperties',_0x25a7db,_0x503acf);});_0x110555['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x110555['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x110555['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4623c2,_0x371923)=>this['handleDiscardAction'](this['tableProperties'],_0x4623c2,_0x371923)),_0x110555['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x52ff7d of this['tableCellProperties'])_0x110555['enableCommand'](_0x52ff7d,(_0x5a8dce,_0x5dad32)=>{const _0x5f1b5a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x52ff7d,_0x5f1b5a,this['tableCellProperties'],'tableCellProperties',_0x5a8dce,_0x5dad32);});_0x110555['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x110555['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x110555['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x178e96,_0x37c503)=>this['handleDiscardAction'](this['tableCellProperties'],_0x178e96,_0x37c503)),_0x110555['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x110555['descriptionFactory']['registerDescriptionCallback'](_0x432552=>this['handleSuggestionDescription'](_0x432552));}['_handlePropertyChange'](_0x5543a2,_0x1f6aa4,_0x3d0e29,_0x58a200,_0x320926,_0x4f18f1){const _0x18b826=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4f18f1['batch'],()=>{for(const _0x86ac5 of _0x1f6aa4){if(this['_getSuggestion'](_0x86ac5,_0x58a200))_0x320926(_0x4f18f1);else{const _0x336f2d={};for(const _0x48978e of _0x3d0e29){const _0x214ee8=_0x86ac5['getAttribute'](_0x48978e);void 0x0!==_0x214ee8&&(_0x336f2d[_0x48978e]=_0x214ee8);}_0x320926(_0x4f18f1),_0x18b826['markBlockFormat'](_0x86ac5,{'commandParams':[_0x336f2d]},[],_0x58a200);}}});}['handleDiscardAction'](_0x34b229,_0x351288,_0x2761be){const _0x32c9cf=_0x351288[0x0]['start']['nodeAfter'],_0x25532c=_0x2761be['commandParams'][0x0];this['editor']['model']['change'](_0x4e0825=>{for(const _0x3975f2 of _0x34b229)void 0x0!==_0x25532c[_0x3975f2]?_0x4e0825['setAttribute'](_0x3975f2,_0x25532c[_0x3975f2],_0x32c9cf):_0x4e0825['removeAttribute'](_0x3975f2,_0x32c9cf);});}['handleSuggestionDescription'](_0x7d3985){if(_0x7d3985['data'])switch(_0x7d3985['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'](_0x38ed82,_0x4189c4){const _0xcfc303=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x100879 of _0xcfc303['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ebbc6=_0x100879['getContainedElement']();if(_0x100879['subType']===_0x4189c4&&_0x1ebbc6===_0x38ed82)return _0x100879;}return null;}}const m='$elementName';class p extends _0x506527{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x19687d,_0x1e7b39,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x590daf){function _0x5ee307(_0x5939ad){return _0x5939ad['map'](_0x441474=>String['fromCharCode'](_0x441474))['join']('');}super(_0x590daf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x18cb8b,_0x186304,_0x1474cb,_0x3eaef7)=>{this['_model']['change'](()=>{for(const _0x564bfb of[..._0x3eaef7,..._0x1474cb])this['_model']['markers']['has'](_0x564bfb)&&_0x590daf['editing']['reconvertMarker'](_0x564bfb);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x590daf['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(),_0x590daf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x590daf['config']['get']('trackChanges.trackFormatChanges'),_0x590daf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x590daf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x590daf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5ee307([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5ee307([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x36]);}['init'](){const _0x504cc9=this['editor'],_0x4ee1d6=(_0x94f5e4,_0x10980c)=>{if('attribute'!=_0x94f5e4)return'ck-suggestion-marker-'+_0x94f5e4;const _0x5d2d84=_0x10980c['split']('|')[0x0];return this['_isBlockAttribute'](_0x5d2d84)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x504cc9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1c22f8=>{const {id:_0x51a0fa,type:_0x12e02c,subType:_0xf0d90b}=this['_splitMarkerName'](_0x1c22f8['markerName']),_0x547b6e=['ck-suggestion-marker',_0x4ee1d6(_0x12e02c,_0xf0d90b)];let _0x55435d=0xbb8;return this['activeMarkers']['includes'](_0x1c22f8['markerName'])&&(_0x547b6e['push']('ck-suggestion-marker--active'),_0x55435d=0xbc2),'deletion'==_0x12e02c&&(_0x55435d+=0x5),{'classes':_0x547b6e,'attributes':{'data-suggestion':_0x51a0fa},'priority':_0x55435d};}}),_0x504cc9['conversion']['for']('dataDowncast')['add'](_0x3b37f5=>{_0x3b37f5['on']('addMarker:suggestion',(_0x2dd23a,_0x2610c5,_0x1b3d79)=>{if(!_0x1b3d79['options']['showSuggestionHighlights'])return;const _0x5e63a9=_0x2610c5['item'];if(!_0x5e63a9)return;const _0xfdc2af=_0x1b3d79['mapper']['toViewElement'](_0x5e63a9);_0x504cc9['model']['schema']['isObject'](_0x5e63a9)&&_0xfdc2af&&!_0xfdc2af['getCustomProperty']('widget')&&_0xfdc2af['is']('containerElement')&&_0x4332cc(_0xfdc2af,_0x1b3d79['writer']);},{'priority':'high'});}),_0x504cc9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x42028d,_0x2ea1b7)=>{if(!_0x2ea1b7['options']['showSuggestionHighlights'])return null;const {type:_0x1058a1,subType:_0x4ca4b8}=this['_splitMarkerName'](_0x42028d['markerName']);return{'classes':['ck-suggestion-marker',_0x4ee1d6(_0x1058a1,_0x4ca4b8)],'priority':0xbb8};}});const _0x4c2ad2=({showActiveMarkers:_0x549c8a=!0x0,isAttributeSuggestion:_0x1c4b94=!0x1}={})=>(_0x246a7c,_0x444d06,_0x23d7dc)=>{if(!_0x444d06['item'])return;const {id:_0xb3e237}=this['_splitMarkerName'](_0x444d06['markerName']);if(_0x1c4b94){const _0x22e9f9=this['_suggestions']['get'](_0xb3e237),_0x3040f0=this['_getAttributeKey'](_0x22e9f9);if(!this['_isBlockAttribute'](_0x3040f0))return;}if(_0x444d06['item']['is']('selection'))return void _0x23d7dc['consumable']['consume'](_0x444d06['item'],_0x246a7c['name']);const _0x1fd95b=_0x23d7dc['mapper']['toViewElement'](_0x444d06['item']);if(_0x444d06['item']['is']('element')&&_0x504cc9['model']['schema']['isBlock'](_0x444d06['item'])&&!_0x1fd95b['getCustomProperty']('addHighlight')){_0x23d7dc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1fd95b),_0x23d7dc['writer']['setAttribute']('data-suggestion',_0xb3e237,_0x1fd95b),_0x23d7dc['mapper']['bindElementToMarker'](_0x1fd95b,_0x444d06['markerName']),_0x549c8a&&(this['activeMarkers']['includes'](_0x444d06['markerName'])?_0x23d7dc['writer']['addClass']('ck-suggestion-marker--active',_0x1fd95b):_0x23d7dc['writer']['removeClass']('ck-suggestion-marker--active',_0x1fd95b));for(const _0x249060 of _0x504cc9['model']['createRangeIn'](_0x444d06['item'])['getItems']())_0x23d7dc['consumable']['consume'](_0x249060,_0x246a7c['name']);_0x23d7dc['consumable']['consume'](_0x444d06['item'],_0x246a7c['name']);}};_0x504cc9['conversion']['for']('dataDowncast')['add'](_0x48d696=>{_0x48d696['on']('addMarker:suggestion:formatBlock',(_0x4f7193,_0x38eb14,_0x7184b1)=>{_0x7184b1['options']['showSuggestionHighlights']&&_0x4c2ad2({'showActiveMarkers':!0x1})(_0x4f7193,_0x38eb14,_0x7184b1);},{'priority':'highest'});}),_0x504cc9['conversion']['for']('dataDowncast')['add'](_0x2e01e9=>{_0x2e01e9['on']('addMarker:suggestion:attribute',(_0x37efbf,_0x1748c4,_0x1b61fc)=>{_0x1b61fc['options']['showSuggestionHighlights']&&_0x4c2ad2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x37efbf,_0x1748c4,_0x1b61fc);},{'priority':'highest'});}),_0x504cc9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3e5a5b,_0x3004d6)=>_0x3004d6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3e5a5b['substr'](0xb)}}),_0x504cc9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x448f5c,{writer:_0x426ee8})=>{let _0x5a4e09='suggestion:'+_0x448f5c['getAttribute']('suggestion-type')+':'+_0x448f5c['getAttribute']('id');return _0x448f5c['getAttribute']('marker-count')&&(_0x5a4e09+=':'+_0x448f5c['getAttribute']('marker-count')),_0x426ee8['createElement']('$marker',{'data-name':_0x5a4e09});}}),_0x504cc9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x504cc9['conversion']['for']('editingDowncast')['add'](_0x905e20=>{_0x905e20['on']('addMarker:suggestion:formatBlock',_0x4c2ad2(),{'priority':'high'});}),_0x504cc9['conversion']['for']('editingDowncast')['add'](_0x2d96c5=>{_0x2d96c5['on']('addMarker:suggestion:attribute',_0x4c2ad2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x504cc9['conversion']['for']('editingDowncast')['add'](_0x3e0be6=>{_0x3e0be6['on']('removeMarker:suggestion:formatBlock',(_0x403b6c,_0x4e7551,_0x230edc)=>{const _0x12903e=_0x230edc['mapper']['markerNameToElements'](_0x4e7551['markerName']);if(_0x12903e){for(const _0x4854f3 of _0x12903e)_0x4854f3['getCustomProperty']('addHighlight')||(_0x230edc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4854f3),_0x230edc['writer']['removeAttribute']('data-suggestion',_0x4854f3),_0x230edc['mapper']['unbindElementFromMarkerName'](_0x4854f3,_0x4e7551['markerName']));}},{'priority':'high'});}),_0x504cc9['conversion']['for']('editingDowncast')['add'](_0x34037f=>{_0x34037f['on']('removeMarker:suggestion:attribute',(_0x19d1cb,_0x30ac16,_0x202701)=>{const _0x14d66e=_0x202701['mapper']['markerNameToElements'](_0x30ac16['markerName']);if(!_0x14d66e)return;const {id:_0x287719}=this['_splitMarkerName'](_0x30ac16['markerName']),_0x37340a=this['_suggestions']['get'](_0x287719),_0x3ac635=this['_getAttributeKey'](_0x37340a);if(this['_isBlockAttribute'](_0x3ac635)){for(const _0x88ea07 of _0x14d66e)_0x88ea07['getCustomProperty']('addHighlight')||(_0x202701['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x88ea07),_0x202701['writer']['removeAttribute']('data-suggestion',_0x88ea07),_0x202701['mapper']['unbindElementFromMarkerName'](_0x88ea07,_0x30ac16['markerName']));}},{'priority':'high'});}),_0x504cc9['model']['document']['registerPostFixer'](_0x26d1c8=>{let _0x10e384=!0x1;const _0x1e8376=Array['from'](_0x504cc9['model']['document']['differ']['getChangedMarkers']()),_0x4313b4=new Set();for(const {name:_0x455e40,data:_0x601cc9}of _0x1e8376){const {group:_0x4bd2eb,type:_0x3eb154,subType:_0x3b25f5,id:_0x36893b}=this['_splitMarkerName'](_0x455e40);if('suggestion'!==_0x4bd2eb)continue;const _0x14d87b=this['_suggestions']['get'](_0x36893b);if(null!=_0x601cc9['newRange']){'formatInline'==_0x3eb154&&(_0x10e384=_0x10e384||Vt(_0x601cc9['newRange'],_0x455e40,_0x26d1c8,_0x504cc9['model']['schema']));const _0x2d75e7='attribute'==_0x3eb154&&this['_isBlockAttribute'](_0x3b25f5['split']('|')[0x0]);if(_0x601cc9['newRange']['isCollapsed']||'$graveyard'==_0x601cc9['newRange']['root']['rootName']||'formatBlock'==_0x3eb154&&!Ot(_0x601cc9['newRange'])||_0x2d75e7&&!Ot(_0x601cc9['newRange'])||'deletion'==_0x3eb154&&!(!Et(_0x1c9196=_0x601cc9['newRange'])&&!function(_0x4d9576){return _0x4d9576['start']['parent']==_0x4d9576['end']['nodeBefore']&&_0x4d9576['start']['isAtEnd'];}(_0x1c9196)))_0x26d1c8['removeMarker'](_0x455e40),_0x10e384=!0x0;else{if(!_0x14d87b||!_0x14d87b['isInContent'])continue;_0x4313b4['add'](_0x14d87b);}}}var _0x1c9196;return _0x4313b4['size']>0x0&&(_0x10e384=!!this['_joinWithAdjacentSuggestions'](_0x4313b4)||_0x10e384),_0x10e384;}),_0x504cc9['model']['document']['registerPostFixer'](_0x29b70c=>{let _0x3c8c00=!0x1;for(const _0x3c3ea5 of _0x504cc9['model']['document']['differ']['getChanges']())if('insert'==_0x3c3ea5['type'])for(const _0xb6bc2b of this['_suggestions']['values']()){if(_0xb6bc2b['isMultiRange']||!_0xb6bc2b['isInContent'])continue;const _0x37d98f='formatBlock'==_0xb6bc2b['type'],_0x3fb7b2=this['_getAttributeKey'](_0xb6bc2b),_0x29f4ea=_0x3fb7b2&&this['_isBlockAttribute'](_0x3fb7b2);if(!_0x37d98f&&!_0x29f4ea)continue;const _0x55b4b0=_0xb6bc2b['getFirstRange']();if(_0x55b4b0['start']['parent']!=_0x55b4b0['end']['parent']&&!_0x55b4b0['end']['isAtEnd']){const _0x552ad6=_0x504cc9['model']['createPositionAt'](_0x55b4b0['start']['nodeAfter'],'end'),_0x1b5313=_0x504cc9['model']['createRange'](_0x55b4b0['start'],_0x552ad6);_0x29b70c['updateMarker'](_0xb6bc2b['getFirstMarker'](),{'range':_0x1b5313}),_0x3c8c00=!0x0;}}return _0x3c8c00;}),_0x504cc9['model']['document']['registerPostFixer'](_0x4c9c83=>this['_processAttributeChanges'](_0x4c9c83)),_0x504cc9['model']['document']['registerPostFixer'](_0x25576c=>!_0x25576c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x25576c)),_0x504cc9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x504cc9['model']['document']['on']('change:data',(_0x53a960,_0x316e95)=>{if(!_0x316e95['isLocal']||_0x316e95['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x11e66d=_0x504cc9['model']['document']['differ']['getChanges']();if(0x0==_0x11e66d['length'])return;const _0x1b95b5=[],_0x3b07ba=_0x11e66d['filter'](_0x31df56=>'attribute'==_0x31df56['type']),_0x7b8c0c=_0x11e66d['filter'](_0x2ec596=>'insert'==_0x2ec596['type']&&'$text'!=_0x2ec596['name']);for(const _0x41755a of _0x3b07ba)this['_isRegisteredAttribute'](_0x41755a['attributeKey'])&&_0x1b95b5['push']({'key':_0x41755a['attributeKey'],'newValue':_0x41755a['attributeNewValue'],'oldValue':_0x41755a['attributeOldValue'],'range':Gt(_0x41755a['range'],_0x504cc9['model'])});for(const _0x21628b of _0x7b8c0c){if('rename'!=_0x21628b['action']&&'refresh'!=_0x21628b['action'])continue;const _0x2b693d=Ft(_0x21628b['position']['nodeAfter'],_0x504cc9['model']),_0x2df0ec=_0x21628b['before'];'rename'==_0x21628b['action']&&_0x1b95b5['push']({'key':m,'newValue':_0x21628b['name'],'oldValue':_0x2df0ec['name'],'range':_0x2b693d});for(const [_0x186563,_0x804256]of _0x2df0ec['attributes']){if(!this['_isRegisteredAttribute'](_0x186563))continue;const _0x79e1c1=_0x21628b['attributes']['get'](_0x186563);_0x804256!==_0x79e1c1&&_0x1b95b5['push']({'key':_0x186563,'newValue':_0x79e1c1,'oldValue':_0x804256,'range':_0x2b693d});}for(const [_0x29ec08,_0x3bbcbc]of _0x21628b['attributes'])this['_isRegisteredAttribute'](_0x29ec08)&&(_0x2df0ec['attributes']['has'](_0x29ec08)||_0x1b95b5['push']({'key':_0x29ec08,'newValue':_0x3bbcbc,'oldValue':null,'range':_0x2b693d}));}0x0!=_0x1b95b5['length']&&_0x504cc9['model']['enqueueChange'](_0x316e95,_0x576cee=>{const _0x94f97c=_0x4f07c9();for(const {range:_0x38c337,key:_0x33301a,oldValue:_0x4878f9,newValue:_0x15fd04}of _0x1b95b5)this['markAttributeChange'](_0x38c337,_0x33301a,_0x4878f9,_0x15fd04,{'groupId':_0x94f97c});this['_reduceExistingSuggestions'](_0x576cee,_0x1b95b5);});},{'priority':'lowest'}),_0x504cc9['model']['markers']['on']('update:suggestion',(_0x2cc063,_0xe208ba,_0x596442)=>{if(null==_0x596442){const {id:_0x324d66}=this['_splitMarkerName'](_0xe208ba['name']),_0x22ac75=this['_suggestions']['get'](_0x324d66);_0x22ac75&&_0x22ac75['addMarkerName'](_0xe208ba['name']);}}),_0x504cc9['model']['document']['on']('change:data',()=>{const _0x416f89=Array['from'](_0x504cc9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3852fe=>'suggestion'===this['_splitMarkerName'](_0x3852fe['name'])['group']);if(0x0===_0x416f89['length'])return;_0x416f89['sort']((_0x2a2bda,_0x3a07d6)=>{const _0x4e0161=_0x2a2bda['data']['oldRange'],_0x56ace1=_0x3a07d6['data']['oldRange'];return null===_0x4e0161&&null===_0x56ace1?0x0:null===_0x4e0161&&null!==_0x56ace1?-0x1:null!==_0x4e0161&&null===_0x56ace1?0x1:_0x4e0161['start']['isBefore'](_0x56ace1['start'])?-0x1:0x1;});const _0x4999ba=new Set(),_0x4549ba=new Set();for(const {name:_0x150ccd,data:_0x5e1e8b}of _0x416f89){const {id:_0x2dc4a9}=this['_splitMarkerName'](_0x150ccd);if(null===_0x5e1e8b['oldRange']){const _0x5a33ba=this['_handleNewSuggestionMarker'](_0x150ccd);_0x4549ba['add'](_0x5a33ba);}else{const _0x265bce=this['_suggestions']['get'](_0x2dc4a9);null!==_0x5e1e8b['newRange']||_0x265bce['isInContent']?(_0x4999ba['add'](_0x265bce['head']),_0x4549ba['add'](_0x265bce)):this['_removeSuggestion'](_0x265bce);}}_0x4549ba['size']>0x0&&this['_refreshSuggestionsChain'](_0x4549ba);for(const _0x9a8e33 of _0x4999ba)this['fire']('suggestionChanged',_0x9a8e33);}),_0x504cc9['model']['on']('applyOperation',(_0x3b7c0b,_0x449757)=>{const _0xf75780=_0x449757[0x0];if(!this['_suggestions']['size'])return;if(!_0xf75780['isDocumentOperation'])return;if(_0xf75780['batch']['isUndo']||!_0xf75780['batch']['isLocal'])return;let _0x2af031,_0x5d6a6e;switch(_0xf75780['type']){case'insert':_0x2af031=_0x504cc9['model']['createPositionAt'](_0xf75780['position']),_0x5d6a6e=_0x2af031['getShiftedBy'](_0xf75780['howMany']);break;case'split':_0x2af031=_0x504cc9['model']['createPositionAt'](_0xf75780['splitPosition']),_0x5d6a6e=_0x504cc9['model']['createPositionAt'](_0xf75780['moveTargetPosition']);break;case'move':_0x2af031=_0x504cc9['model']['createPositionAt'](_0xf75780['targetPosition']),_0x5d6a6e=_0x2af031['getShiftedBy'](_0xf75780['howMany']);break;default:return;}const _0xaf7974=_0x504cc9['model']['createRange'](_0x2af031,_0x5d6a6e);_0x504cc9['model']['change'](()=>{for(const {suggestion:_0x493932,meta:_0x9d21c8}of this['_findSuggestions'](_0xaf7974)){if(_0x493932['isMultiRange'])continue;if('formatInline'==_0x493932['type'])continue;const _0x51b15d=this['_getAttributeKey'](_0x493932);if(_0x51b15d&&this['_isBlockAttribute'](_0x51b15d)&&'split'!=_0xf75780['type'])continue;const _0x7d3031=_0x493932['data']&&_0x493932['data']['multipleBlocks'];('formatBlock'!=_0x493932['type']||'split'==_0xf75780['type']&&!_0x7d3031)&&(_0x9d21c8['containsRangeInObject']||'insertion'==_0x493932['type']&&_0x9d21c8['isOwn']||_0x493932['getFirstRange']()['containsRange'](_0xaf7974)&&this['_breakSuggestionMarker'](_0x493932,_0x2af031,_0x5d6a6e));}});},{'priority':'lowest'}),_0x504cc9['model']['on']('deleteContent',(_0x483424,_0x724f9c)=>{const _0x38dc1c=_0x724f9c[0x0],_0x3ad0b8=_0x724f9c[0x1];if(_0x3ad0b8&&_0x3ad0b8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38dc1c['isCollapsed'])return;const _0x1a0fab=_0x504cc9['model']['schema'],{start:_0x1e56ef,end:_0x1f4f48}=_0x38dc1c['getFirstRange'](),_0x1fd49a=_0x1e56ef['nodeAfter']&&_0x1a0fab['isLimit'](_0x1e56ef['nodeAfter'])?null:_0x1a0fab['getNearestSelectionRange'](_0x1e56ef,'forward'),_0x3da6a7=_0x1f4f48['nodeBefore']&&_0x1a0fab['isLimit'](_0x1f4f48['nodeBefore'])?null:_0x1a0fab['getNearestSelectionRange'](_0x1f4f48,'backward'),_0x25d0c5=_0x504cc9['model']['createRange'](_0x1fd49a?_0x1fd49a['start']:_0x1e56ef,_0x3da6a7?_0x3da6a7['end']:_0x1f4f48);_0x504cc9['model']['change'](_0x53b043=>{this['markDeletion'](_0x25d0c5);const _0x4c3859=_0x504cc9['model']['schema']['getNearestSelectionRange'](_0x25d0c5['start']);_0x38dc1c['is']('documentSelection')?_0x53b043['setSelection'](_0x4c3859):_0x38dc1c['setTo'](_0x4c3859);}),_0x483424['stop']();},{'priority':_0x26da40['normal']+0xa}),_0x504cc9['model']['on']('insertContent',(_0x4e1717,_0x1d63b5)=>{const _0x4f2e03=_0x1d63b5[_0x1d63b5['length']-0x1];_0x4f2e03&&_0x4f2e03['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x504cc9['model']['change'](()=>{let _0x255369=_0x504cc9['model']['insertContent'](_0x1d63b5[0x0],_0x1d63b5[0x1],_0x1d63b5[0x2],{'forceDefaultExecution':!0x0});if(!_0x255369)return;_0x4e1717['return']=_0x255369['clone']();const _0x53adf0=_0x255369['end']['nodeBefore'],_0x5dfc7e=_0x504cc9['model']['schema'];_0x53adf0&&_0x5dfc7e['isBlock'](_0x53adf0)&&!_0x5dfc7e['isObject'](_0x53adf0)&&(_0x255369=_0x504cc9['model']['createRange'](_0x255369['start'],_0x504cc9['model']['createPositionAt'](_0x53adf0,'end'))),this['markInsertion'](_0x255369);}),_0x4e1717['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1b7c25=new $(_0x504cc9,this['_suggestions']);_0x504cc9['commands']['add']('acceptSuggestion',_0x1b7c25),this['enableCommand']('acceptSuggestion');const _0xe725d3=new B(_0x504cc9,this['_suggestions']);_0x504cc9['commands']['add']('discardSuggestion',_0xe725d3),this['enableCommand']('discardSuggestion'),_0x504cc9['commands']['add']('acceptAllSuggestions',new x(_0x504cc9,_0x1b7c25,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x504cc9['commands']['add']('discardAllSuggestions',new x(_0x504cc9,_0xe725d3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x504cc9['commands']['add']('acceptSelectedSuggestions',new R(_0x504cc9,_0x1b7c25,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x504cc9['commands']['add']('discardSelectedSuggestions',new R(_0x504cc9,_0xe725d3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5236c7=_0x504cc9['plugins']['get']('CommentsRepository');this['listenTo'](_0x5236c7,'addComment',(_0xa2addf,{threadId:_0x677b1d})=>{const _0x4ab6bf=this['_suggestions']['get'](_0x677b1d);_0x4ab6bf&&_0x4ab6bf['commentThread']&&0x1===_0x4ab6bf['commentThread']['length']&&this['_updateSuggestionData'](_0x677b1d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5236c7,'removeComment',(_0x1494f7,{threadId:_0x42095b})=>{const _0x523fe0=this['_suggestions']['get'](_0x42095b);_0x523fe0&&_0x523fe0['commentThread']&&!_0x523fe0['commentThread']['length']&&this['_updateSuggestionData'](_0x42095b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2b5f8e){if(this['_adapter'])throw new _0x2a730a('track-changes-adapter-already-set',this);this['_adapter']=_0x2b5f8e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x55bee9=!0x1,toJSON:_0x52f060=!0x1}={}){const _0x4fbb81=[];for(const _0x36c463 of this['_suggestions']['values']())_0x55bee9&&!_0x36c463['isInContent']||_0x4fbb81['push'](_0x36c463);return _0x52f060?_0x4fbb81['map'](_0x56208d=>_0x56208d['toJSON']()):_0x4fbb81;}['getSuggestion'](_0x1493f0){const _0x288ff0=this['_suggestions']['get'](_0x1493f0);if(!_0x288ff0)throw new _0x2a730a('track-changes-suggestion-not-found',this);return _0x288ff0;}['hasSuggestion'](_0x393749){return this['_suggestions']['has'](_0x393749);}['addSuggestionData'](_0x44cf5f){const {authorId:_0x5da63d,id:_0x32249c,attributes:_0x4fc42d}=_0x44cf5f,[_0x4f1966,_0x1b8712]=_0x44cf5f['type']['split'](':'),_0x1c7c27=this['_suggestions']['get'](_0x32249c)||this['_createSuggestion'](_0x4f1966,_0x1b8712,_0x32249c,_0x5da63d,_0x4fc42d);if(this['_addThreadToSuggestion'](_0x1c7c27),this['_checkSuggestionCorrectness'](_0x1c7c27,_0x4f1966,_0x1b8712||null,_0x5da63d),_0x1c7c27['createdAt']=_0x44cf5f['createdAt'],_0x1c7c27['_isDataLoaded']=!0x0,_0x4fc42d&&_0x4fc42d['@external']){const _0x5da30d=_0x4fc42d['@external'],_0x4cc02d=this['_getExternalAuthor'](_0x5da30d['authorName']);_0x1c7c27['authoredAt']=_0x5da30d['createdAt'],_0x1c7c27['author']=_0x4cc02d,_0x1c7c27['isExternal']=!0x0;}else _0x1c7c27['authoredAt']=_0x44cf5f['createdAt'];switch(_0x44cf5f['data']&&(_0x1c7c27['data']=_0x44cf5f['data']),_0x44cf5f['attributes']&&(_0x1c7c27['attributes']=_0x44cf5f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c7c27['_saved']=!0x0),this['_suggestionState']['get'](_0x1c7c27)){case'notReady':this['_suggestionState']['set'](_0x1c7c27,'dataReady');break;case'markerReady':_0x1c7c27['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c7c27])),this['_refreshSuggestionsChain'](new Set([_0x1c7c27])),this['_suggestionState']['set'](_0x1c7c27,'ready'),this['fire']('suggestionLoaded',_0x1c7c27)):this['_suggestionState']['set'](_0x1c7c27,'removed');}return _0x1c7c27;}['acceptSuggestion'](_0xb570d5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f4be0 of _0xb570d5['getAllAdjacentSuggestions']())_0x1f4be0['accept']();});});}['discardSuggestion'](_0x364d63){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d2532 of _0x364d63['getAllAdjacentSuggestions']())_0x3d2532['discard']();});});}['enableCommand'](_0x4db4e1,_0x4b5390){const _0x9d3adb=this['editor']['commands']['get'](_0x4db4e1);if(!_0x9d3adb)throw new _0x2a730a('track-changes-command-not-found',this,{'commandName':_0x4db4e1});if(this['_enabledCommands']['has'](_0x9d3adb))throw new _0x2a730a('track-changes-enable-command-twice',this,{'commandName':_0x4db4e1});this['_enabledCommands']['add'](_0x9d3adb),_0x4b5390&&_0x9d3adb['on']('execute',(_0xb82d73,_0x1a4091)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1a4091['length']>0x0&&_0x1a4091[_0x1a4091['length']-0x1]&&_0x1a4091[_0x1a4091['length']-0x1]['forceDefaultExecution']?_0x1a4091['pop']():(_0xb82d73['return']=_0x4b5390((..._0x3d2743)=>_0x9d3adb['execute'](..._0x3d2743,{'forceDefaultExecution':!0x0}),..._0x1a4091),_0xb82d73['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xbb4969){let _0x4579b1,_0x646470;const _0x449d23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4579b1=_0xbb4969();}catch(_0x507774){_0x646470=_0x507774;}return _0x449d23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x646470&&_0x2a730a['rethrowUnexpectedError'](_0x646470,this),_0x4579b1;}['markInsertion'](_0x1e5fed,_0x4ac5f7=null,_0x2dfa5f={}){if(_0x1e5fed['isCollapsed'])return null;const _0x2c12f7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x243b34,meta:_0x3026e5}of this['_findSuggestions'](_0x1e5fed,'insertion'))if(_0x3026e5['isOwn']){if(!_0x3026e5['isNextTo']){if(_0x3026e5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x243b34,_0x2dfa5f))continue;return _0x243b34;}if(Ht(_0x243b34,_0x2dfa5f))return _0x243b34;this['_breakSuggestionMarker'](_0x243b34,_0x1e5fed['start'],_0x1e5fed['end']);break;}if(_0x4ac5f7==_0x243b34['subType']&&Ht(_0x243b34,_0x2dfa5f)){const _0x23b4ed=_0x243b34['getFirstRange']();return _0x23b4ed['start']['isEqual'](_0x1e5fed['end'])?this['_setSuggestionRange'](_0x243b34,this['_model']['createRange'](_0x1e5fed['start'],_0x23b4ed['end'])):this['_setSuggestionRange'](_0x243b34,this['_model']['createRange'](_0x23b4ed['start'],_0x1e5fed['end'])),_0x243b34;}}const _0x1c070f=_0x4f07c9(),_0x1e0b79=_0x2c12f7['id'],_0x3839d4=_0x4ac5f7?'insertion:'+_0x4ac5f7:'insertion',_0x28c4e7=this['_setSuggestionData']({'id':_0x1c070f,'type':_0x3839d4,'createdAt':new Date(),'authorId':_0x1e0b79,'attributes':_0x2dfa5f});return this['_addSuggestionMarker'](_0x3839d4,_0x1c070f,_0x1e0b79,_0x1e5fed),_0x28c4e7;}['markMultiRangeInsertion'](_0x2a15b2,_0x5329b7='multi',_0x36c740={}){const _0x1d8489=this['editor']['plugins']['get']('Users')['me'],_0x26663f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5329b7,'join');for(const _0x4d5385 of this['getSuggestions']())if(_0x4d5385['author']['id']==_0x1d8489['id']&&'insertion'==_0x4d5385['type']&&_0x4d5385['subType']==_0x5329b7&&Ht(_0x4d5385,_0x36c740)&&(_0x26663f(_0x4d5385['getRanges'](),_0x2a15b2)||_0x26663f(_0x2a15b2,_0x4d5385['getRanges']()))){for(const _0x39d65e of _0x2a15b2)_0x4d5385['addRange'](_0x39d65e);return _0x4d5385;}for(const {suggestion:_0x3ed23d,meta:_0x530c81}of this['_findSuggestions'](_0x2a15b2,'insertion')){if(!_0x530c81['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x530c81['containsRangeInObject'])continue;if(!Ht(_0x3ed23d,_0x36c740))continue;let _0x413e46=!0x0;for(const _0x4f1765 of _0x3ed23d['getRanges']())for(const _0x186d6f of _0x2a15b2)if(!_0x4f1765['containsRange'](_0x186d6f)){_0x413e46=!0x1;break;}if(_0x413e46)return _0x3ed23d;}const _0x18fca6=_0x4f07c9(),_0xcafc25=_0x1d8489['id'],_0x36470f='insertion:'+_0x5329b7,_0x26e7f0=this['_setSuggestionData']({'id':_0x18fca6,'type':_0x36470f,'createdAt':new Date(),'authorId':_0xcafc25,'attributes':_0x36c740});for(const _0x211e8f of _0x2a15b2)this['_addSuggestionMarker'](_0x36470f,_0x18fca6,_0xcafc25,_0x211e8f,u['getMultiRangeId']());return _0x26e7f0;}['markInlineFormat'](_0x16d10d,_0x44c462,_0x4b37e8=null,_0x5117d9={}){if(_0x4b37e8=_0x4b37e8||Ut(_0x44c462),_0x16d10d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xeb2fca=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b37e8,'accept');return this['forceDefaultExecution'](()=>_0xeb2fca([_0x16d10d],_0x44c462,_0x5117d9)),null;}const _0x244dea=this['editor']['plugins']['get']('Users')['me'],_0x3a266e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5128d3,meta:_0x280804}of this['_findSuggestions'](_0x16d10d,'insertion'))_0x280804['isOwn']&&!_0x280804['isInsideObject']&&_0x3a266e['push'](..._0x5128d3['getRanges']());}const _0x2ae27d=function(_0x165ceb,_0x272f72){const _0x31972e=[];for(const _0x434feb of _0x272f72){const _0x16ee38=_0x165ceb['getIntersection'](_0x434feb);_0x16ee38&&_0x31972e['push'](_0x16ee38);}return _0x31972e;}(_0x16d10d,_0x3a266e),_0x2c4cd2=function(_0x51217a,_0xf50a57){const _0x1ca857=[_0x51217a];for(const _0x4d91b1 of _0xf50a57){let _0x4bf55d=0x0;for(;_0x4bf55d<_0x1ca857['length'];){const _0x4299a5=_0x1ca857[_0x4bf55d]['getDifference'](_0x4d91b1);_0x1ca857['splice'](_0x4bf55d,0x1,..._0x4299a5),_0x4bf55d+=_0x4299a5['length'];}}return _0x1ca857;}(_0x16d10d,_0x3a266e);_0x2ae27d['length']&&this['_model']['change'](()=>{for(const _0x237231 of _0x2ae27d){const _0x58c30c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b37e8,'accept');this['forceDefaultExecution'](()=>_0x58c30c([_0x237231],_0x44c462,_0x5117d9));}});for(const _0x4fb612 of _0x2c4cd2){let _0x149bf6=null,_0x320cd7=_0x4fb612['start'],_0x3ea33c=_0x4fb612['end'];for(const {suggestion:_0x382e49,meta:_0x20b917}of this['_findSuggestions'](_0x4fb612,'formatInline')){if(!_0x20b917['isOwn'])continue;if(_0x382e49['subType']!=_0x4b37e8)continue;if(!Ht(_0x382e49,_0x5117d9))continue;const _0x11fb18=_0x382e49['getFirstRange']();if(_0x11fb18['containsRange'](_0x4fb612,!0x0))return null;_0x320cd7=_0x320cd7['isBefore'](_0x11fb18['start'])?_0x320cd7:_0x11fb18['start'],_0x3ea33c=_0x3ea33c['isAfter'](_0x11fb18['end'])?_0x3ea33c:_0x11fb18['end'],_0x149bf6?_0x11fb18['start']['isBefore'](_0x149bf6['getFirstRange']()['start'])?(_0x149bf6['removeMarkers'](),_0x149bf6=_0x382e49):_0x382e49['removeMarkers']():_0x149bf6=_0x382e49;}const _0x275cf7=this['_model']['createRange'](_0x320cd7,_0x3ea33c);if(_0x149bf6)this['_setSuggestionRange'](_0x149bf6,_0x275cf7);else{const _0x366870=_0x4f07c9(),_0x34bb85=_0x244dea['id'];this['_setSuggestionData']({'id':_0x366870,'type':'formatInline:'+_0x4b37e8,'data':_0x44c462,'createdAt':new Date(),'authorId':_0x34bb85,'attributes':_0x5117d9}),this['_addSuggestionMarker']('formatInline:'+_0x4b37e8,_0x366870,_0x34bb85,_0x275cf7);}}return null;}['markBlockFormat'](_0x43baf7,_0x358ddb,_0x42bc60=[],_0x2ec56e=null,_0x27c035={}){_0x358ddb['formatGroupId']||(_0x358ddb['formatGroupId']=_0x358ddb['commandName']),_0x358ddb['multipleBlocks']=_0x43baf7['is']('range'),_0x2ec56e=_0x2ec56e||Ut(_0x358ddb);const _0x12e624=_0x42bc60['map'](_0xd4d3b9=>Ft(_0xd4d3b9,this['_model'])),_0x53eb58=_0x43baf7['is']('range')?_0x43baf7:Ft(_0x43baf7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x10d713=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ec56e,'accept');return this['forceDefaultExecution'](()=>_0x10d713([_0x53eb58],_0x358ddb,_0x27c035)),null;}_0x12e624['push'](_0x53eb58);let _0x27556f=!0x0;for(const _0x4c6116 of _0x12e624)if(!this['_rangeIsInLocalUserInsertion'](_0x4c6116)){_0x27556f=!0x1;break;}if(_0x27556f&&'always'!==this['_trackFormatChanges']){const _0xb61f97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ec56e,'accept');return this['forceDefaultExecution'](()=>_0xb61f97([_0x53eb58],_0x358ddb,_0x27c035)),null;}let _0x4c01b5=null,_0x3aa0b3=_0x53eb58['start'],_0x4995be=_0x53eb58['end'];for(const {suggestion:_0x29ef72,meta:_0x54975a}of this['_findSuggestions'](_0x53eb58,'formatBlock')){if(!_0x54975a['isOwn'])continue;if(_0x54975a['isNextTo']||_0x54975a['containsRangeInObject']||_0x54975a['isInsideObject'])continue;if(_0x29ef72['data']['formatGroupId']!=_0x358ddb['formatGroupId'])continue;if(!Ht(_0x29ef72,_0x27c035))continue;const _0x25726c=_0x29ef72['getFirstRange']();if(_0x29ef72['subType']==_0x2ec56e){if(_0x25726c['containsRange'](_0x53eb58,!0x0))return null;_0x3aa0b3=_0x3aa0b3['isBefore'](_0x25726c['start'])?_0x3aa0b3:_0x25726c['start'],_0x4995be=_0x4995be['isAfter'](_0x25726c['end'])?_0x4995be:_0x25726c['end'],_0x4c01b5?_0x25726c['start']['isBefore'](_0x4c01b5['getFirstRange']()['start'])?(_0x4c01b5['removeMarkers'](),_0x4c01b5=_0x29ef72):_0x29ef72['removeMarkers']():_0x4c01b5=_0x29ef72;}else{const _0x14601=_0x53eb58['getIntersection'](_0x25726c);this['_cutOutSuggestionMarker'](_0x29ef72,_0x14601);}}const _0x26ff39=this['editor']['plugins']['get']('Users')['me'],_0x5fe873=_0x4f07c9(),_0x59e655=_0x26ff39['id'];if(_0x4c01b5)return this['_setSuggestionRange'](_0x4c01b5,this['_model']['createRange'](_0x3aa0b3,_0x4995be)),_0x4c01b5;{const _0x831145=this['_setSuggestionData']({'id':_0x5fe873,'type':'formatBlock:'+_0x2ec56e,'data':_0x358ddb,'createdAt':new Date(),'authorId':_0x59e655,'attributes':_0x27c035});return this['_addSuggestionMarker']('formatBlock:'+_0x2ec56e,_0x5fe873,_0x59e655,this['_model']['createRange'](_0x3aa0b3,_0x4995be)),_0x831145;}}['markMultiRangeBlockFormat'](_0x46e742,_0x565f7f,_0x51abd2=[],_0x28a7e0=null,_0x4e47e8={}){_0x565f7f['formatGroupId']||(_0x565f7f['formatGroupId']=_0x565f7f['commandName']);const _0x5d267c=_0x46e742[0x0];_0x565f7f['multipleBlocks']=_0x5d267c['is']('range'),_0x28a7e0=_0x28a7e0||Ut(_0x565f7f);const _0xc8242f=_0x51abd2['map'](_0x3c3aaf=>Ft(_0x3c3aaf,this['_model'])),_0x51af2f=_0x5d267c['is']('range')?_0x46e742:_0x46e742['map'](_0xa7faea=>Ft(_0xa7faea,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5df409=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a7e0,'accept');return this['forceDefaultExecution'](()=>_0x5df409(_0x51af2f,_0x565f7f,_0x4e47e8)),null;}_0xc8242f['push'](..._0x51af2f);let _0x449acc=!0x0;for(const _0x3dbe2e of _0xc8242f)if(!this['_rangeIsInLocalUserInsertion'](_0x3dbe2e)){_0x449acc=!0x1;break;}if(_0x449acc&&'always'!==this['_trackFormatChanges']){const _0x365ef2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a7e0,'accept');return this['forceDefaultExecution'](()=>_0x365ef2(_0x51af2f,_0x565f7f,_0x4e47e8)),null;}const _0x5dd7dd=this['editor']['plugins']['get']('Users')['me'];for(const _0x1924db of this['getSuggestions']()){if(_0x1924db['author']['id']!=_0x5dd7dd['id'])continue;if('formatBlock'!=_0x1924db['type']||_0x1924db['data']['formatGroupId']!=_0x565f7f['formatGroupId'])continue;if(!Ht(_0x1924db,_0x4e47e8))continue;const _0x5e7367=_0x1924db['subType']==_0x28a7e0;for(let _0x4eb0dc=0x0;_0x4eb0dc<_0x51af2f['length'];_0x4eb0dc++){const _0x56acda=_0x51af2f[_0x4eb0dc];for(const _0x43f1d8 of _0x1924db['getMarkers']()){const _0x124a7b=_0x43f1d8['getRange']();if(_0x56acda['isEqual'](_0x124a7b)){_0x5e7367?(_0x51af2f['splice'](_0x4eb0dc,0x1),_0x4eb0dc--):_0x1924db['removeMarker'](_0x43f1d8['name']);break;}}}}if(0x0==_0x51af2f['length'])return null;const _0x14946d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a7e0,'join');for(const _0x485b90 of this['getSuggestions']())if(_0x485b90['author']['id']==_0x5dd7dd['id']&&'formatBlock'==_0x485b90['type']&&_0x485b90['data']['formatGroupId']==_0x565f7f['formatGroupId']&&_0x485b90['subType']==_0x28a7e0&&Ht(_0x485b90,_0x4e47e8)&&(_0x14946d(_0x485b90['getRanges'](),_0x51af2f)||_0x14946d(_0x51af2f,_0x485b90['getRanges']()))){for(const _0x23970c of _0x51af2f)_0x485b90['addRange'](_0x23970c);return _0x485b90;}const _0x30fe2e=_0x4f07c9(),_0x59325b=_0x5dd7dd['id'],_0x1bd0be='formatBlock:'+_0x28a7e0,_0x2f66dd=this['_setSuggestionData']({'id':_0x30fe2e,'type':_0x1bd0be,'data':_0x565f7f,'createdAt':new Date(),'authorId':_0x59325b,'attributes':_0x4e47e8});for(const _0x4f11a1 of _0x51af2f)this['_addSuggestionMarker'](_0x1bd0be,_0x30fe2e,_0x59325b,_0x4f11a1,u['getMultiRangeId']());return _0x2f66dd;}['markDeletion'](_0x25d28b,_0x14a475=null,_0x5b8dd8={}){if(_0x25d28b['isCollapsed'])return null;const _0x4bdff8=this['editor']['plugins']['get']('Users')['me'],_0x2d3b50=new _0x53f8a1(_0x25d28b['start'],_0x25d28b['end']);for(const {suggestion:_0x362391,meta:_0x52ddb1}of this['_findSuggestions'](_0x2d3b50,'insertion'))if(_0x52ddb1['isOwn']&&!_0x52ddb1['isNextTo']){if(_0x362391['isMultiRange']){const _0xfc04bb=_0x362391['getRanges']()['filter'](_0x203345=>'$graveyard'!=_0x203345['root']['rootName']);_0xfc04bb['every'](_0x563b7b=>_0x2d3b50['containsRange'](_0x563b7b,!0x0))&&_0x362391['discard']();if(_0xfc04bb['some'](_0x578fa2=>_0x578fa2['containsRange'](_0x2d3b50,!0x0))){const _0x2860b5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14a475,'accept');return this['forceDefaultExecution'](()=>_0x2860b5([_0x2d3b50],null,_0x5b8dd8)),null;}}else{const _0x32280=_0x2d3b50['getIntersection'](_0x362391['getFirstRange']());null!==_0x32280&&_0x362391['_onDiscard']([_0x32280],null,_0x5b8dd8);}}if(_0x2d3b50['detach'](),_0x2d3b50['isCollapsed']||'$graveyard'==_0x2d3b50['root']['rootName'])return null;let _0x1dd9f1=null,_0x3ce069=_0x2d3b50['start'],_0xe0e34b=_0x2d3b50['end'];const _0x564f17=this['_findSuggestions'](_0x2d3b50,'deletion');for(const {suggestion:_0x11d4a3,meta:_0x290f69}of _0x564f17){const _0x326ac8=this['_model']['createRange'](_0x3ce069,_0xe0e34b);if(_0x290f69['isOwn']&&(this['_mergeNestedSuggestions']||!_0x290f69['containsRangeInObject']&&!_0x290f69['isInsideObject'])){if(_0x11d4a3['isMultiRange']){if(!Ht(_0x11d4a3,_0x5b8dd8))continue;let _0x12b743=!0x0;for(const _0x204e4b of _0x11d4a3['getRanges']()){if(_0x204e4b['containsRange'](_0x326ac8,!0x0))return _0x11d4a3;_0x326ac8['containsRange'](_0x204e4b)||(_0x12b743=!0x1);}_0x12b743&&_0x11d4a3['discard']();}else{const _0x83b850=_0x11d4a3['getFirstRange']();if(_0x83b850['containsRange'](_0x326ac8,!0x0))return _0x11d4a3;if(!Ht(_0x11d4a3,_0x5b8dd8)){_0x326ac8['containsRange'](_0x83b850)?_0x11d4a3['removeMarkers']():_0x83b850['containsPosition'](_0x3ce069)?_0x3ce069=_0x83b850['end']:_0x83b850['containsPosition'](_0xe0e34b)&&(_0xe0e34b=_0x83b850['start']);continue;}_0x3ce069=_0x3ce069['isBefore'](_0x83b850['start'])?_0x3ce069:_0x83b850['start'],_0xe0e34b=_0xe0e34b['isAfter'](_0x83b850['end'])?_0xe0e34b:_0x83b850['end'],_0x5b8dd8=Object['assign']({},_0x11d4a3['attributes']),_0x1dd9f1?_0x83b850['start']['isBefore'](_0x1dd9f1['getFirstRange']()['start'])?(_0x1dd9f1['removeMarkers'](),_0x1dd9f1=_0x11d4a3):_0x11d4a3['removeMarkers']():_0x1dd9f1=_0x11d4a3;}}}if(_0x1dd9f1)return this['_setSuggestionRange'](_0x1dd9f1,this['_model']['createRange'](_0x3ce069,_0xe0e34b)),_0x1dd9f1;{const _0x5edff0=_0x4f07c9(),_0x1386f2=this['_model']['createRange'](_0x3ce069,_0xe0e34b),_0x36868c=_0x4bdff8['id'],_0x3d222b=_0x14a475?'deletion:'+_0x14a475:'deletion',_0x52c87a=this['_setSuggestionData']({'id':_0x5edff0,'type':_0x3d222b,'createdAt':new Date(),'authorId':_0x36868c,'attributes':_0x5b8dd8});return this['_addSuggestionMarker'](_0x3d222b,_0x5edff0,_0x36868c,_0x1386f2),_0x52c87a;}}['markMultiRangeDeletion'](_0x2a45dc,_0x24322d='multi',_0x7e7fd3={}){const _0x1af919=this['editor']['plugins']['get']('Users')['me'],_0x3e3d1f=_0x2a45dc['map'](_0x2b1f41=>new _0x53f8a1(_0x2b1f41['start'],_0x2b1f41['end'])),_0x1052a8=new Set();for(const {suggestion:_0x9dc74a,meta:_0x3f6cce}of this['_findSuggestions'](_0x3e3d1f,'insertion'))_0x3f6cce['isOwn']&&!_0x3f6cce['isNextTo']&&_0x1052a8['add'](_0x9dc74a);for(const _0x3801b8 of _0x1052a8)if(_0x3801b8['isMultiRange']){const _0x3019a3=_0x3801b8['getRanges']();(!_0x3801b8['attributes']||!_0x3801b8['attributes']['skipNestingCheck'])&&(_0x3019a3['every'](_0x32d2c2=>_0x3e3d1f['some'](_0x2f3bb2=>_0x2f3bb2['containsRange'](_0x32d2c2,!0x0)))&&_0x3801b8['discard']());if(_0x3e3d1f['every'](_0x27509d=>_0x3019a3['some'](_0x51954e=>_0x51954e['containsRange'](_0x27509d,!0x0)))){const _0x5ecd65=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24322d,'accept');return this['forceDefaultExecution'](()=>_0x5ecd65(_0x2a45dc,null,_0x7e7fd3)),null;}}else{const _0x5beff3=_0x3801b8['getFirstRange']();_0x3e3d1f['some'](_0x1f7f65=>_0x1f7f65['containsRange'](_0x5beff3,!0x0))&&_0x3801b8['discard']();if(_0x3e3d1f['every'](_0x75d038=>_0x5beff3['containsRange'](_0x75d038,!0x0))){const _0x500a63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24322d,'accept');return this['forceDefaultExecution'](()=>_0x500a63(_0x3e3d1f,null,_0x7e7fd3)),null;}}const _0x261cb4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24322d,'join');let _0x51c779=null;for(const _0x9c2b57 of this['getSuggestions']())if(_0x9c2b57['author']['id']==_0x1af919['id']&&_0x9c2b57['isInContent']&&'deletion'==_0x9c2b57['type']&&_0x9c2b57['subType']==_0x24322d&&Ht(_0x9c2b57,_0x7e7fd3)&&(_0x261cb4(_0x9c2b57['getRanges'](),_0x3e3d1f)||_0x261cb4(_0x3e3d1f,_0x9c2b57['getRanges']()))){if(_0x51c779){if(_0x9c2b57['commentThread']&&_0x9c2b57['commentThread']['length'])continue;for(const _0x3b1184 of _0x9c2b57['getRanges']())_0x51c779['isIntersectingWithRange'](_0x3b1184)||_0x51c779['addRange'](_0x3b1184);_0x9c2b57['removeMarkers']();}else{_0x51c779=_0x9c2b57;for(const _0xbde1ba of _0x3e3d1f)_0x9c2b57['isIntersectingWithRange'](_0xbde1ba)||_0x9c2b57['addRange'](_0xbde1ba);}}if(_0x51c779)return _0x51c779;_0x1052a8['clear']();for(const {suggestion:_0xa62577,meta:_0x140e36}of this['_findSuggestions'](_0x3e3d1f,'deletion'))_0x140e36['isOwn']&&(this['_mergeNestedSuggestions']||!_0x140e36['containsRangeInObject']&&!_0x140e36['isInsideObject'])&&Ht(_0xa62577,_0x7e7fd3)&&_0x1052a8['add'](_0xa62577);for(const _0x3e5dbf of _0x1052a8){const _0x2fedf7=_0x3e5dbf['getRanges']();if(!_0x7e7fd3||!_0x7e7fd3['skipNestingCheck']){if(_0x3e3d1f['every'](_0x4e18fc=>_0x2fedf7['some'](_0xb9de9f=>_0xb9de9f['containsRange'](_0x4e18fc,!0x0))))return _0x3e5dbf;}(!_0x3e5dbf['attributes']||!_0x3e5dbf['attributes']['skipNestingCheck'])&&(_0x2fedf7['every'](_0x4575b7=>_0x3e3d1f['some'](_0x427a75=>_0x427a75['containsRange'](_0x4575b7,!0x0)))&&_0x3e5dbf['discard']());}const _0x43ea08=_0x4f07c9(),_0x497234=_0x1af919['id'],_0x26e925='deletion:'+_0x24322d,_0x6d4cd6=this['_setSuggestionData']({'id':_0x43ea08,'type':_0x26e925,'createdAt':new Date(),'authorId':_0x497234,'attributes':_0x7e7fd3});for(const _0xce3cbb of _0x3e3d1f)_0xce3cbb['detach'](),_0xce3cbb['isCollapsed']||'$graveyard'==_0xce3cbb['root']['rootName']||this['_addSuggestionMarker'](_0x26e925,_0x43ea08,_0x497234,_0xce3cbb,u['getMultiRangeId']());return _0x6d4cd6;}['markAttributeChange'](_0x46b6ec,_0x501520,_0xfe7766,_0x35682e,_0x3e5d87){if(_0x46b6ec['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1cc5dc=this['editor']['plugins']['get']('Users')['me']['id'],_0x443cc8=Array['from'](this['_suggestions']['values']())['filter'](_0x2083e6=>'attribute'==_0x2083e6['type']&&_0x2083e6['data']['key']==_0x501520&&_0x2083e6['isIntersectingWithRange'](_0x46b6ec));if('default'===this['_trackFormatChanges']){const _0x4a136c=this['_findSuggestions'](_0x46b6ec,'insertion')['filter'](({meta:_0x353682})=>_0x353682['isOwn']&&!_0x353682['isInsideObject']&&!_0x353682['isNextTo'])['map'](({suggestion:_0x10c043})=>_0x10c043);_0x443cc8['unshift'](..._0x4a136c);}const _0x569775=new Map([[_0x46b6ec,_0xfe7766]]);for(const _0xbe1093 of _0x443cc8){const _0x285d0e='attribute'==_0xbe1093['type']?_0xbe1093['data']['oldValue']:void 0x0,_0x1a4be7=_0xbe1093['getFirstRange'](),_0x3c44e7=Array['from'](_0x569775['keys']())['find'](_0x1ee919=>_0x1ee919['isIntersecting'](_0x1a4be7));if(!_0x3c44e7)continue;const _0x4c67fd=_0x3c44e7['getDifference'](_0x1a4be7);this['_isBlockAttribute'](_0x501520)&&'insertion'==_0xbe1093['type']&&0x0!=_0x4c67fd['length']||(_0x569775['delete'](_0x3c44e7),_0x4c67fd['forEach'](_0x7c0cf9=>{_0x569775['set'](_0x7c0cf9,_0xfe7766);}),'insertion'!=_0xbe1093['type']&&_0x285d0e!=_0x35682e&&_0x569775['set'](_0x3c44e7['getIntersection'](_0x1a4be7),_0x285d0e));}const _0xbab22=[];for(const [_0x4c556f,_0x351ad8]of _0x569775){const _0x54bd0c=_0x4f07c9(),_0x5b10ae={'key':_0x501520,'oldValue':_0x351ad8,'newValue':_0x35682e};_0x501520['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':_0x501520});const _0x53dbc2=('attribute:'+(_0x501520+'|'+Ut({'newValue':_0x35682e})))['substring'](0x0,0x3c),_0x34a508=this['_setSuggestionData']({'id':_0x54bd0c,'type':_0x53dbc2,'data':_0x5b10ae,'createdAt':new Date(),'authorId':_0x1cc5dc,'attributes':_0x3e5d87});_0xbab22['push'](_0x34a508),this['_addSuggestionMarker'](_0x53dbc2,_0x54bd0c,_0x1cc5dc,_0x4c556f);}return _0xbab22;}['enableDefaultAttributesIntegration'](_0x5cc9e2){this['enableCommand'](_0x5cc9e2,(_0x4726f6,..._0x4c1a2)=>{this['_recordAttributeChanges'](()=>{_0x4726f6(..._0x4c1a2);});});}['registerBlockAttribute'](_0x49375a){this['_blockAttributeKeys']['add'](_0x49375a);}['registerInlineAttribute'](_0x8794d2){this['_inlineAttributeKeys']['add'](_0x8794d2);}['_getAttributeKey'](_0x1f05db){return'attribute'==_0x1f05db['type']?_0x1f05db['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5e74e4,_0x3d5f83){const _0x3eb0e5=_0x5e74e4['getFirstMarker']();this['_model']['change'](_0x16ef6b=>{_0x16ef6b['updateMarker'](_0x3eb0e5,{'range':_0x3d5f83});});}['_addThreadToSuggestion'](_0x475b6b){const _0x5dcbae=_0x475b6b['id'],_0x49e61f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5dcbae)||this['_commentsRepository']['addCommentThread']({'channelId':_0x49e61f,'threadId':_0x5dcbae,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x464503=this['_commentsRepository']['getCommentThread'](_0x5dcbae);_0x464503['unbind']('isRemovable'),_0x464503['isRemovable']=!0x1,_0x475b6b['commentThread']=_0x464503;}['_checkSuggestionCorrectness'](_0x21f89f,_0x50a90a,_0x260564,_0x2e7c56){if(_0x21f89f['type']!=_0x50a90a||_0x21f89f['subType']!=_0x260564||_0x21f89f['creator']['id']!=_0x2e7c56)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a730a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x50adf5,_0x135417){const _0x28c956=_0x50adf5['getFirstRange']();if(_0x135417['isEqual'](_0x28c956))_0x50adf5['removeMarkers']();else{if(_0x28c956['containsRange'](_0x135417)){const _0x293ba6=this['_model']['createPositionAt'](_0x135417['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50adf5,this['_model']['createRange'](_0x28c956['start'],_0x293ba6));const _0x533f68=_0x4f07c9(),_0x2eadf8=_0x50adf5['creator']['id'],_0x264995=_0x50adf5['type']+':'+_0x50adf5['subType'];this['_setSuggestionData']({'id':_0x533f68,'type':_0x264995,'createdAt':new Date(),'authorId':_0x2eadf8,'data':_0x50adf5['data'],'attributes':_0x50adf5['attributes']});const _0x264499=this['_model']['createPositionAt'](_0x135417['end']['parent'],'after'),_0x51bae1=this['_model']['createRange'](_0x264499,_0x28c956['end']);this['_addSuggestionMarker'](_0x264995,_0x533f68,_0x2eadf8,_0x51bae1);}else{if(_0x28c956['containsPosition'](_0x135417['start'])){const _0x1fcc57=this['_model']['createPositionAt'](_0x135417['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50adf5,this['_model']['createRange'](_0x28c956['start'],_0x1fcc57));}else{const _0x49075f=this['_model']['createPositionAt'](_0x135417['end']['parent'],'after');this['_setSuggestionRange'](_0x50adf5,this['_model']['createRange'](_0x49075f,_0x28c956['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x29b869){for(const {suggestion:_0x26ebbb,meta:_0x127be4}of this['_findSuggestions'](_0x29b869,'insertion')){if(!_0x127be4['isOwn'])continue;const _0x4fc307=_0x26ebbb['getRanges']();for(const _0x2cf962 of _0x4fc307)if(!_0x29b869['getDifference'](_0x2cf962)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2504a2){const _0x54d86d=this['editor']['plugins']['get']('Users')['getUser'](_0x2504a2);if(!_0x54d86d)throw new _0x2a730a('track-changes-user-not-found',this);return _0x54d86d;}['_getExternalAuthor'](_0x2f9835){const _0x2ac795=this['editor']['plugins']['get']('Users'),_0x1b5731=_0x3e10fd('external:'+_0x2f9835),_0x30a19c=_0x2ac795['getUser'](_0x1b5731);return _0x30a19c||_0x2ac795['addUser']({'id':_0x1b5731,'name':_0x2f9835});}['_createSuggestion'](_0x2ec400,_0x5eef62,_0x28d82e,_0x2a7dea,_0x21eb9c){const _0x34ff20=this['_getAuthorFromId'](_0x2a7dea),_0x4d4721=this['_suggestionFactory']['buildSuggestion'](_0x2ec400,_0x5eef62,_0x28d82e,_0x34ff20,_0x21eb9c,_0x1e244e=>{this['_updateSuggestionData'](_0x28d82e,{'attributes':_0x1e244e});const _0x341429=this['getSuggestion'](_0x28d82e);this['_joinWithAdjacentSuggestions'](new Set([_0x341429])),this['_refreshSuggestionsChain'](new Set([_0x341429]));});return this['listenTo'](_0x4d4721,'accept',()=>{this['_updateSuggestionData'](_0x28d82e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d4721,'discard',()=>{this['_updateSuggestionData'](_0x28d82e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28d82e,_0x4d4721),this['_suggestionState']['set'](_0x4d4721,'notReady'),_0x4d4721;}['_splitMarkerName'](_0x4199bc){const _0x342721=_0x4199bc['split'](':');return{'group':_0x342721[0x0],'type':_0x342721[0x1],'subType':_0x342721['length']>=0x5?_0x342721[0x2]:null,'id':_0x342721['length']<0x5?_0x342721[0x2]:_0x342721[0x3],'authorId':_0x342721['length']<0x5?_0x342721[0x3]:_0x342721[0x4],'markerCount':0x6==_0x342721['length']?_0x342721[0x5]:null};}['_breakSuggestionMarker'](_0x4d4a24,_0x2b2199,_0x1ae87a){const _0xee6eb0=_0x4d4a24['getFirstRange'](),_0x23608d=_0xee6eb0['start'],_0x38c58a=_0xee6eb0['end'];this['_setSuggestionRange'](_0x4d4a24,this['_model']['createRange'](_0x23608d,_0x2b2199));const _0x4f564a=_0x4f07c9(),_0x240705=_0x4d4a24['creator']['id'],_0x536d2c=_0x4d4a24['type']+(_0x4d4a24['subType']?':'+_0x4d4a24['subType']:'');this['_setSuggestionData']({'id':_0x4f564a,'type':_0x536d2c,'createdAt':new Date(),'authorId':_0x240705,'originalSuggestionId':_0x4d4a24['id'],'attributes':_0x4d4a24['attributes'],'data':_0x4d4a24['data']});const _0x11aaad=this['_getAttributeKey'](_0x4d4a24);('formatBlock'==_0x4d4a24['type']||_0x11aaad&&this['_isBlockAttribute'](_0x11aaad))&&(_0x1ae87a=this['_model']['createPositionBefore'](_0x1ae87a['parent'])),this['_addSuggestionMarker'](_0x536d2c,_0x4f564a,_0x240705,this['_model']['createRange'](_0x1ae87a,_0x38c58a));}['_findSuggestions'](_0x383fe9,_0x22af96=null){const _0x465484=[],_0x38a7c3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x383fe9)||(_0x383fe9=[_0x383fe9]);for(const _0x328f7a of this['getSuggestions']()){if(!_0x328f7a['isInContent'])continue;if(_0x22af96&&_0x328f7a['type']!=_0x22af96)continue;let _0x12a526=!0x1;for(const _0x2cf8e0 of _0x328f7a['getRanges']()){for(const _0x5b24ce of _0x383fe9){const _0x35d61b=_0x5b24ce['start']['isEqual'](_0x2cf8e0['end'])||_0x5b24ce['end']['isEqual'](_0x2cf8e0['start']);if(_0x35d61b||_0x5b24ce['getIntersection'](_0x2cf8e0)){const _0x50da90=_0x5b24ce['containsRange'](_0x2cf8e0)&&Tt(this['_model']['schema'],_0x2cf8e0['start'],_0x5b24ce),_0x57e695=_0x2cf8e0['containsRange'](_0x5b24ce)&&Tt(this['_model']['schema'],_0x5b24ce['start'],_0x2cf8e0);_0x465484['push']({'suggestion':_0x328f7a,'meta':{'isOwn':_0x38a7c3==_0x328f7a['author'],'isNextTo':_0x35d61b,'isInsideObject':_0x50da90,'containsRangeInObject':_0x57e695}}),_0x12a526=!0x0;break;}}if(_0x12a526)break;}}return _0x465484;}['_addSuggestionMarker'](_0x4ab206,_0x461b14,_0x4b6bd3,_0x417621,_0x42702b){this['_model']['change'](_0x2aaa4c=>{let _0x314201='suggestion:'+_0x4ab206+':'+_0x461b14+':'+_0x4b6bd3;_0x42702b&&(_0x314201=_0x314201+':'+_0x42702b),_0x2aaa4c['addMarker'](_0x314201,{'range':_0x417621,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2bd737){const _0x4a178f=_0x2bd737['previous'],_0xc5497c=_0x2bd737['next'];_0x2bd737['previous']=null,_0x2bd737['next']=null,null!=_0x4a178f&&_0x4a178f['next']==_0x2bd737&&(_0x4a178f['next']=_0xc5497c),null!=_0xc5497c&&_0xc5497c['previous']==_0x2bd737&&(_0xc5497c['previous']=_0x4a178f),'ready'==this['_suggestionState']['get'](_0x2bd737)&&(this['_suggestionState']['set'](_0x2bd737,'removed'),this['fire']('suggestionUnloaded',_0x2bd737,_0x4a178f,_0xc5497c));}['_setSuggestionData'](_0x28194c){const _0x30bf6d=_0x28194c['id'],_0x376386=this['addSuggestionData'](_0x28194c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5cc8d0=this['editor']['plugins']['get']('PendingActions'),_0x4c5edf=_0x376386['hasComments'],_0x44a066=_0x376386['subType']?_0x376386['type']+':'+_0x376386['subType']:_0x376386['type'],_0x4cc4f2=this['editor']['locale'],_0x40a70c=_0x5cc8d0['add'](o(_0x4cc4f2,'PENDING_ACTION_SUGGESTION')),_0x566c18={'id':_0x30bf6d,'type':_0x44a066,'hasComments':_0x4c5edf,'data':_0x28194c['data']||null,'originalSuggestionId':_0x28194c['originalSuggestionId']||null,'attributes':_0x376386['attributes']};this['_adapter']['addSuggestion'](_0x566c18)['then'](_0x4981f9=>{_0x376386['_saved']=!0x0,_0x5cc8d0['remove'](_0x40a70c),_0x4981f9&&_0x4981f9['createdAt']&&(this['_suggestions']['get'](_0x30bf6d)['createdAt']=_0x4981f9['createdAt']);})['catch'](_0x322843=>{throw _0x1c79fa('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x376386['discard']();}),_0x376386['stopListening'](),this['_suggestions']['delete'](_0x376386['id']),this['_suggestionState']['delete'](_0x376386),_0x322843;});}return _0x376386;}['_isBlockAttribute'](_0x29998b){return this['_blockAttributeKeys']['has'](_0x29998b);}['_updateSuggestionData'](_0x30f7a6,_0x25a2de){const _0x21a0b3=this['editor']['plugins']['get']('PendingActions'),_0x4ad170=this['getSuggestion'](_0x30f7a6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4ad170['_saved']){const _0x437fef=_0x21a0b3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x30f7a6,_0x25a2de)['then'](()=>{_0x21a0b3['remove'](_0x437fef);});}else _0x4ad170['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x30f7a6,_0x25a2de);});}}['_getSuggestionData'](_0x53d9a2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a730a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53d9a2);}['_handleNewSuggestionMarker'](_0x3ba8a8){const {id:_0x16ed0d,type:_0x5580cf,subType:_0x37507f,authorId:_0x348e80}=this['_splitMarkerName'](_0x3ba8a8),_0x38f444=this['_suggestions']['get'](_0x16ed0d)||this['_createSuggestion'](_0x5580cf,_0x37507f,_0x16ed0d,_0x348e80,{});switch(this['_checkSuggestionCorrectness'](_0x38f444,_0x5580cf,_0x37507f,_0x348e80),this['_suggestionState']['get'](_0x38f444)){case'notReady':this['_getSuggestionData'](_0x16ed0d)['then'](_0xf26ecb=>{let _0x46fa27=Promise['resolve']();_0xf26ecb['hasComments']&&(_0x46fa27=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x16ed0d})),_0x46fa27['then'](()=>{this['addSuggestionData'](_0xf26ecb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x38f444,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x16ed0d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x38f444,'ready'),this['fire']('suggestionLoaded',_0x38f444);break;case'ready':this['fire']('suggestionChanged',_0x38f444);}return _0x38f444['addMarkerName'](_0x3ba8a8),_0x38f444;}['_refreshSuggestionsChain'](_0x46b804){const _0x2daa1f=Array['from'](_0x46b804),_0xed7a9a=_0x2daa1f['filter'](_0x246f48=>'attribute'==_0x246f48['type']);this['_refreshAttributeSuggestionsChain'](_0xed7a9a);const _0x3b6488=_0x2daa1f['filter'](_0x2875d2=>!_0x2875d2['isMultiRange']&&'attribute'!=_0x2875d2['type']),_0x31a34b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45dd1a=>!_0x45dd1a['isMultiRange']&&'attribute'!=_0x45dd1a['type']),_0x5250b1=_0x31a34b['filter'](_0x4ae475=>!_0x46b804['has'](_0x4ae475)),_0x462ef5=new Map(_0x31a34b['map'](_0xadd1a0=>[_0xadd1a0,this['_suggestionFactory']['getSuggestionCallback'](_0xadd1a0['type'],_0xadd1a0['subType'],'chain')])),_0x5e8362=new Map(_0x31a34b['map'](_0x426c68=>[_0x426c68,_0x426c68['getFirstRange']()])),_0x13a63f=new Set(),_0xfdd97a=new Set();for(let _0x48f925=0x0;_0x48f925<_0x3b6488['length'];_0x48f925++)_0x24206b(_0x3b6488[_0x48f925],_0x3b6488,_0x48f925+0x1);for(let _0x3ed8af=0x0;_0x3ed8af<_0x3b6488['length'];_0x3ed8af++)_0x24206b(_0x3b6488[_0x3ed8af],_0x5250b1,0x0);const _0x138db2=new Set();for(let _0x2021b0=0x0;_0x2021b0<_0x3b6488['length'];_0x2021b0++){const _0x1c0825=_0x3b6488[_0x2021b0];!_0xfdd97a['has'](_0x1c0825)&&_0x1c0825['previous']&&(_0x138db2['add'](_0x1c0825['previous']),_0x1c0825['previous']['next']===_0x1c0825&&(_0x1c0825['previous']['next']=null),_0x1c0825['previous']=null),!_0x13a63f['has'](_0x1c0825)&&_0x1c0825['next']&&(_0x138db2['add'](_0x1c0825['next']),_0x1c0825['next']['previous']===_0x1c0825&&(_0x1c0825['next']['previous']=null),_0x1c0825['next']=null);}function _0x24206b(_0xac2f68,_0x257946,_0x4f0c81){for(let _0x7ac14e=_0x4f0c81;_0x7ac14e<_0x257946['length'];_0x7ac14e++){const _0x265998=_0x196768(_0xac2f68,_0x257946[_0x7ac14e]);_0x265998&&(_0x265998[0x0]['next']=_0x265998[0x1],_0x265998[0x1]['previous']=_0x265998[0x0],_0x13a63f['add'](_0x265998[0x0]),_0xfdd97a['add'](_0x265998[0x1]));}}function _0x196768(_0x56eaac,_0x4fcb10){if(_0x56eaac['author']['id']!==_0x4fcb10['author']['id'])return null;const _0x4c2056=_0x462ef5['get'](_0x56eaac)(_0x56eaac,_0x4fcb10,_0x5e8362['get'](_0x56eaac),_0x5e8362['get'](_0x4fcb10));if(!_0x4c2056)return null;return _0x462ef5['get'](_0x4fcb10)(_0x56eaac,_0x4fcb10,_0x5e8362['get'](_0x56eaac),_0x5e8362['get'](_0x4fcb10))?_0x4c2056[0x1]['commentThread']&&_0x4c2056[0x1]['commentThread']['length']?null:_0x4c2056:null;}_0x138db2['size']&&this['_refreshSuggestionsChain'](_0x138db2);}['_refreshAttributeSuggestionsChain'](_0x4e1eb1){if(0x0==_0x4e1eb1['length'])return;const _0x30b455=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x290a58=>'attribute'==_0x290a58['type']&&_0x290a58['_isDataLoaded']),_0x409591=[],_0x5dbdb4=new Map();for(const _0x3fe90f of _0x30b455){const _0x4676a0=_0x3e10fd(_0x3fe90f['attributes']);_0x5dbdb4['has'](_0x4676a0)||(_0x5dbdb4['set'](_0x4676a0,_0x409591['length']),_0x409591['push']([]));const _0x123b42=_0x5dbdb4['get'](_0x4676a0);_0x409591[_0x123b42]['push'](_0x3fe90f);}!(function(){_0x409591['sort']((_0x4b94b6,_0x1945d8)=>{const _0x27a489=_0x4b94b6[0x0]['createdAt'],_0x330fbd=_0x1945d8[0x0]['createdAt'];return _0x27a489==_0x330fbd?_0x4b94b6[0x0]['attributes']['groupId']<_0x1945d8[0x0]['attributes']['groupId']?-0x1:0x1:_0x27a489<_0x330fbd?-0x1:0x1;});for(const _0x38e3d7 of _0x409591)_0x38e3d7['sort']((_0x4f34f1,_0x41c44f)=>_0x4f34f1['id']<_0x41c44f['id']?-0x1:0x1);}());for(let _0x42a8e9=0x0;_0x42a8e9<_0x409591['length'];_0x42a8e9++){if(0x0==_0x409591[_0x42a8e9]['length'])continue;const _0x1f03d1=[];for(let _0x53500d=_0x42a8e9+0x1;_0x53500d<_0x409591['length'];_0x53500d++)0x0!=_0x409591[_0x53500d]['length']&&_0x337c9a(_0x409591[_0x42a8e9],_0x409591[_0x53500d])&&_0x1f03d1['push'](_0x53500d);for(const _0x22ab0a of _0x1f03d1)_0x409591[_0x42a8e9]=_0x409591[_0x42a8e9]['concat'](_0x409591[_0x22ab0a]),_0x409591[_0x22ab0a]=[];}for(const _0x186da0 of _0x409591)for(let _0x255b90=0x0;_0x255b90<_0x186da0['length'];_0x255b90++)_0x186da0[_0x255b90]['next']=_0x186da0[_0x255b90+0x1]||null;for(const _0x296722 of _0x409591)for(let _0x2f8003=0x0;_0x2f8003<_0x296722['length'];_0x2f8003++)_0x296722[_0x2f8003]['previous']=_0x296722[_0x2f8003-0x1]||null;function _0x337c9a(_0xc38aaa,_0xca4f16){if(_0xc38aaa[0x0]['attributes']['groupId']!==_0xca4f16[0x0]['attributes']['groupId']&&_0xc38aaa[0x0]['author']!==_0xca4f16[0x0]['author'])return!0x1;if(!function(_0x50d7a8,_0x24f426){if(!_0x50d7a8['hasComments']&&!_0x24f426['hasComments'])return!0x0;if(_0x50d7a8['hasComments']&&_0x24f426['hasComments'])return!0x1;if(_0x50d7a8['hasComments']&&_0x24f426['createdAt']<_0x50d7a8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x24f426['hasComments']&&_0x50d7a8['createdAt']<_0x24f426['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xc38aaa[0x0],_0xca4f16[0x0]))return!0x1;const _0x13a3b4=xt(_0xc38aaa[0x0]['attributes'],'groupId'),_0x48e679=xt(_0xca4f16[0x0]['attributes'],'groupId');if(!_0x135414(_0x13a3b4,_0x48e679))return!0x1;return!!_0xc38aaa['every'](_0x3f6814=>_0xca4f16['some'](_0x2bf2d5=>_0x3f6814['getFirstRange']()['isEqual'](_0x2bf2d5['getFirstRange']())))&&_0xca4f16['every'](_0x1260ec=>_0xc38aaa['some'](_0x50f364=>_0x1260ec['getFirstRange']()['isEqual'](_0x50f364['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fcbd6){const _0x16ff07=Array['from'](_0x1fcbd6),_0x51085d=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe87d1d=_0x51085d['filter'](_0x3bc363=>!_0x1fcbd6['has'](_0x3bc363)),_0x929f3f=new Map(_0x16ff07['map'](_0x215006=>[_0x215006,this['_suggestionFactory']['getSuggestionCallback'](_0x215006['type'],_0x215006['subType'],'join')])),_0x2cf894=new Map(_0x51085d['map'](_0x459c00=>[_0x459c00,_0x459c00['getRanges']()]));for(let _0x5a82ad=0x0;_0x5a82ad<_0x16ff07['length'];_0x5a82ad++){if(_0x2d3b63(this,_0x16ff07[_0x5a82ad],_0x16ff07,_0x5a82ad+0x1))return!0x0;}for(let _0x2b94de=0x0;_0x2b94de<_0x16ff07['length'];_0x2b94de++){if(_0x2d3b63(this,_0x16ff07[_0x2b94de],_0xe87d1d,0x0))return!0x0;}return!0x1;function _0x2d3b63(_0x289b2e,_0x10e009,_0xa795e8,_0x486a71){for(let _0x538365=_0x486a71;_0x538365<_0xa795e8['length'];_0x538365++){const _0x2eb53a=_0xa795e8[_0x538365];if(_0x2eb53a['type']!==_0x10e009['type']||_0x2eb53a['author']['id']!==_0x10e009['author']['id']||_0x2eb53a['subType']!==_0x10e009['subType'])continue;if(!Lt(_0x10e009,_0x2eb53a,['groupId']))continue;if('attribute'==_0x10e009['type']&&_0x10e009['data']['oldValue']!=_0x2eb53a['data']['oldValue'])continue;if('attribute'==_0x10e009['type']&&_0x289b2e['_isBlockAttribute'](_0x10e009['data']['key']))continue;if('formatBlock'==_0x10e009['type']){const _0x5f4419=_0x289b2e['editor']['model'],_0x5a4466=_0x10e009['getContainedElement']();if(_0x5a4466&&(_0x5f4419['schema']['isObject'](_0x5a4466)||_0x5f4419['schema']['isLimit'](_0x5a4466)))continue;}const _0x3ba693=_0x929f3f['get'](_0x10e009),_0x3232a2=_0x2cf894['get'](_0x10e009),_0xb76c4=_0x2cf894['get'](_0x2eb53a),_0x58896=_0x10e009['commentThread']&&_0x10e009['commentThread']['length'],_0x4b20a9=_0x2eb53a['commentThread']&&_0x2eb53a['commentThread']['length'];if(!_0x58896&&_0x3ba693(_0xb76c4,_0x3232a2))return _0x289b2e['_joinSuggestions'](_0x2eb53a,_0x10e009),_0x2cf894['delete'](_0x10e009),!0x0;if(!_0x4b20a9&&_0x3ba693(_0x3232a2,_0xb76c4))return _0x289b2e['_joinSuggestions'](_0x10e009,_0x2eb53a),_0x2cf894['delete'](_0x2eb53a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4dee98,_0x227ec4){if(_0x4dee98['isMultiRange']){for(const _0xe8741d of _0x227ec4['getRanges']())_0x4dee98['addRange'](_0xe8741d);}else{const _0x2d65f1=_0x227ec4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4dee98,this['_model']['createRange'](_0x4dee98['getFirstRange']()['start'],_0x2d65f1));}_0x227ec4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1680c3,_0x3a6ace){const _0xe09bc3=_0x1680c3['startsWith']('format')||_0x1680c3['startsWith']('attribute')?'FORMATTING':_0x1680c3['toUpperCase']();return o(this['editor']['locale'],_0x3a6ace+'_'+_0xe09bc3+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x1fc497=this['editor'];if(!_0x1fc497['ui'])return;const {ariaLiveAnnouncer:_0x150469}=_0x1fc497['ui'];_0x386029(this['_model'],({left:_0x221e78,entered:_0x74abf6})=>{for(const _0x4cfd94 of _0x221e78){const {group:_0x27520f,type:_0x2bc2cc}=this['_splitMarkerName'](_0x4cfd94['name']);if('suggestion'===_0x27520f){_0x150469['announce'](this['_getMarkerAnnouncementText'](_0x2bc2cc,'LEAVE'));break;}}for(const _0x494b6d of _0x74abf6){const {group:_0x5b6b4e,type:_0x205c29}=this['_splitMarkerName'](_0x494b6d['name']);if('suggestion'===_0x5b6b4e){_0x150469['announce'](this['_getMarkerAnnouncementText'](_0x205c29,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4ec81b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f27f8=this['editor'],_0x2ba291=_0x2f27f8['model']['document']['differ']['getChanges']();if(0x0==_0x2ba291['length'])return!0x1;const _0x4704c9=[],_0x55b783=_0x2ba291['filter'](_0x1d4375=>'attribute'==_0x1d4375['type']),_0x2666b8=_0x2ba291['filter'](_0x54290e=>'insert'==_0x54290e['type']&&'$text'!=_0x54290e['name']),_0x3dfb84=_0x2ba291['filter'](_0xfce903=>'remove'==_0xfce903['type']&&'$text'!=_0xfce903['name']);for(const _0x4b1e6b of _0x55b783)_0x4704c9['push']({'key':_0x4b1e6b['attributeKey'],'newValue':_0x4b1e6b['attributeNewValue'],'oldValue':_0x4b1e6b['attributeOldValue'],'range':Gt(_0x4b1e6b['range'],_0x2f27f8['model'])});for(const _0x14bfe7 of _0x2666b8){const _0x277fb6=_0x3dfb84['find'](_0x2fe880=>_0x2fe880['position']['isEqual'](_0x14bfe7['position']));_0x277fb6&&_0x4704c9['push']({'key':m,'newValue':_0x14bfe7['name'],'oldValue':_0x277fb6['name'],'range':_0x2f27f8['model']['createRangeOn'](_0x14bfe7['position']['nodeAfter'])});}return 0x0!=_0x4704c9['length']&&this['_reduceExistingSuggestions'](_0x4ec81b,_0x4704c9);}['_processAttributeSuggestions'](_0x29f69e){let _0x201146=!0x1;const _0x488b39=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d2619=>_0x1d2619['data']['newRange']&&_0x1d2619['name']['startsWith']('suggestion:attribute:'));for(const _0x4b3ba5 of _0x488b39){const {subType:_0x57431c,id:_0x253476}=this['_splitMarkerName'](_0x4b3ba5['name']),_0x326256=_0x57431c['split']('|')[0x0];for(const _0x419f14 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x419f14['id']!=_0x253476&&'attribute'==_0x419f14['type']&&_0x419f14['data']&&_0x419f14['data']['key']==_0x326256&&_0x419f14['getFirstRange']()['isIntersecting'](_0x4b3ba5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x419f14,_0x4b3ba5['data']['newRange'],_0x29f69e),_0x201146=!0x0);}return _0x201146;}['_recordAttributeChanges'](_0x17da0f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x17da0f();}['_isRegisteredAttribute'](_0x21ef96){const _0x42d370=this['_isBlockAttribute'](_0x21ef96),_0x46863c=this['_inlineAttributeKeys']['has'](_0x21ef96);return _0x42d370||_0x46863c;}['_reduceExistingSuggestions'](_0x4c2f74,_0x4063ad){if(0x0==_0x4063ad['length'])return!0x1;let _0x24618b=!0x1;for(const _0x199000 of _0x4063ad){const _0x3e7717=this['_findSuggestions'](_0x199000['range'],'attribute')['filter'](_0x47eb46=>!_0x47eb46['meta']['isNextTo'])['map'](_0x2d9f7e=>_0x2d9f7e['suggestion']),_0x37687d=_0x3e10fd({'newValue':_0x199000['newValue']});_0x3e7717['filter'](_0xc5c9c4=>{const [_0x38d614,_0x186dcd]=_0xc5c9c4['subType']['split']('|');return _0x38d614==_0x199000['key']&&_0x186dcd!=_0x37687d;})['forEach'](_0x36689c=>{this['_reduceSuggestionAttributeRange'](_0x36689c,_0x199000['range'],_0x4c2f74),_0x24618b=!0x0;});}return _0x24618b;}['_reduceSuggestionAttributeRange'](_0x228749,_0x4dad2c,_0x385a82){const _0x40b4bc=_0x228749['getFirstRange']()['getDifference'](_0x4dad2c);0x0!==_0x40b4bc['length']?0x1!==_0x40b4bc['length']?this['_breakSuggestionMarker'](_0x228749,_0x4dad2c['start'],_0x4dad2c['end']):this['_setSuggestionRange'](_0x228749,_0x40b4bc[0x0]):_0x385a82['removeMarker'](_0x228749['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xff5bc){this['_editor']=_0xff5bc,this['_model']=_0xff5bc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3d82a8,_0x472ee9,_0x5c24d0,_0x1d1612,_0x50eaf3,_0x39f041){return new u(this['_model'],{'type':_0x3d82a8,'subType':_0x472ee9,'id':_0x5c24d0,'author':_0x1d1612,'creator':_0x1d1612,'attributes':_0x50eaf3,'onAttributesChange':_0x39f041,'onAccept':(..._0x3a05d0)=>this['getSuggestionCallback'](_0x3d82a8,_0x472ee9,'accept')(..._0x3a05d0),'onDiscard':(..._0x4d1f95)=>this['getSuggestionCallback'](_0x3d82a8,_0x472ee9,'discard')(..._0x4d1f95)});}['registerCustomCallback'](_0x11e39f,_0x8af532,_0x1c0795,_0x39bd8f){const _0x6ab8dc=_0x11e39f+':'+_0x8af532+':'+_0x1c0795;this['_customCallbacks']['set'](_0x6ab8dc,_0x39bd8f);}['getSuggestionCallback'](_0x39419d,_0x176086,_0x243cec){const _0xa8e8d9=_0x39419d+':'+_0x176086+':'+_0x243cec;return this['_customCallbacks']['get'](_0xa8e8d9)||this['_defaultCallbacks']['get'](_0x39419d+':'+_0x243cec);}['_registerDefaultCallbacks'](){const _0x3a9c6b=()=>!0x1,_0x46961b=_0x287be8=>{_0x287be8['sort']((_0x303d29,_0x294b15)=>_0x303d29['start']['isBefore'](_0x294b15['start'])?0x1:-0x1),this['_model']['change'](_0xfcbeaf=>{for(const _0x337b9c of _0x287be8){let _0x47fde9;_0x47fde9=_0x337b9c['end']['isAtEnd']&&_0x337b9c['end']['parent']==_0x337b9c['start']['nodeAfter']?_0xfcbeaf['createSelection'](_0x337b9c['start']['nodeAfter'],'on'):_0xfcbeaf['createSelection'](_0x337b9c),this['_model']['deleteContent'](_0x47fde9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x334ec2=(_0x5c918c,_0x3bd2f7)=>{_0x3bd2f7&&this['_model']['change'](_0x18a701=>{const {commandName:_0x52db82,commandParams:_0x17b4e3=[]}=_0x3bd2f7,_0x258b40=_0x5c918c['map'](_0x88ed23=>(Et(_0x88ed23)&&(_0x88ed23=this['_model']['createRange'](_0x88ed23['end'])),_0x88ed23))['filter'](_0x4f470c=>'$graveyard'!==_0x4f470c['root']['rootName']);if(_0x258b40['length']<0x1)return;const _0x3264be=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2654cc=>_0x53f8a1['fromRange'](_0x2654cc));_0x18a701['setSelection'](_0x258b40);for(const _0x536a6b of this['_editor']['commands']['commands']())_0x536a6b['refresh']();_0x17b4e3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x52db82,..._0x17b4e3);const _0x3fd3ce=_0x3264be['filter'](_0x16dc6b=>'$graveyard'!=_0x16dc6b['root']['rootName']);_0x3fd3ce['length']>0x0&&_0x18a701['setSelection'](_0x3fd3ce);for(const _0x356f85 of _0x3264be)_0x356f85['detach']();});},_0x355ae2=(_0x2a1ac2,_0x3f0cab)=>0x1==_0x2a1ac2['length']&&0x1==_0x3f0cab['length']&&_0x2a1ac2[0x0]['end']['isEqual'](_0x3f0cab[0x0]['start']),_0x399f13=(_0x214455,_0x49d7be,_0x4852f3,_0x268b86)=>Pt(_0x214455,_0x49d7be,_0x4852f3,_0x268b86,this['_model'])?[_0x214455,_0x49d7be]:Pt(_0x49d7be,_0x214455,_0x268b86,_0x4852f3,this['_model'])?[_0x49d7be,_0x214455]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3a9c6b),this['_defaultCallbacks']['set']('insertion:discard',_0x46961b),this['_defaultCallbacks']['set']('insertion:join',_0x355ae2),this['_defaultCallbacks']['set']('insertion:chain',_0x399f13),this['_defaultCallbacks']['set']('deletion:accept',_0x46961b),this['_defaultCallbacks']['set']('deletion:discard',_0x3a9c6b),this['_defaultCallbacks']['set']('deletion:join',_0x355ae2),this['_defaultCallbacks']['set']('deletion:chain',_0x399f13),this['_defaultCallbacks']['set']('formatInline:accept',_0x334ec2),this['_defaultCallbacks']['set']('formatInline:discard',_0x3a9c6b),this['_defaultCallbacks']['set']('formatInline:join',_0x355ae2),this['_defaultCallbacks']['set']('formatInline:chain',_0x3a9c6b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x334ec2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3a9c6b),this['_defaultCallbacks']['set']('formatBlock:join',_0x355ae2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3a9c6b),this['_defaultCallbacks']['set']('attribute:accept',_0x3a9c6b),this['_defaultCallbacks']['set']('attribute:discard',(_0x487d73,_0x1ed551)=>{if(!_0x1ed551)return;const _0x146d64=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x924675=>{if(_0x1ed551['key']==m)for(const _0x4acf4f of _0x487d73){const _0xd95c1b=_0x4acf4f['start']['nodeAfter'],_0x5d4040=_0x1ed551['oldValue'];_0x924675['rename'](_0xd95c1b,_0x5d4040);}else{if(_0x146d64['_isBlockAttribute'](_0x1ed551['key'])){for(const _0x3d2fdc of _0x487d73)void 0x0!==_0x1ed551['oldValue']?_0x924675['setAttribute'](_0x1ed551['key'],_0x1ed551['oldValue'],_0x3d2fdc['start']['nodeAfter']):_0x924675['removeAttribute'](_0x1ed551['key'],_0x3d2fdc['start']['nodeAfter']);}else{for(const _0x144ce8 of _0x487d73)_0x1ed551['oldValue']?_0x924675['setAttribute'](_0x1ed551['key'],_0x1ed551['oldValue'],_0x144ce8):_0x924675['removeAttribute'](_0x1ed551['key'],_0x144ce8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x355ae2);}}function Tt(_0x19d91e,_0x38353f,_0x3b4ad6){for(const _0xc38673 of _0x38353f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xc38673['root']==_0xc38673)return!0x1;if(!_0x3b4ad6['containsItem'](_0xc38673))return!0x1;if(_0x19d91e['isObject'](_0xc38673)||_0x19d91e['isLimit'](_0xc38673))return!0x0;}return!0x1;}function Et(_0x54b2bc){return _0x54b2bc['end']['parent']==_0x54b2bc['start']['nodeAfter']&&_0x54b2bc['end']['isAtStart'];}function Vt(_0x3be060,_0xdea09a,_0x42c26b,_0x1b8018){const _0x492f31=_0x477d4e=>!_0x477d4e['item']['is']('$textProxy')&&!_0x1b8018['isObject'](_0x477d4e['item']),_0x26edb4=_0x3be060['start']['getLastMatchingPosition'](_0x492f31),_0x224ba5=_0x3be060['end']['getLastMatchingPosition'](_0x492f31,{'direction':'backward'});return(!_0x3be060['start']['isEqual'](_0x26edb4)||!_0x3be060['end']['isEqual'](_0x224ba5))&&(_0x26edb4['isBefore'](_0x224ba5)?_0x42c26b['updateMarker'](_0xdea09a,{'range':_0x42c26b['createRange'](_0x26edb4,_0x224ba5)}):_0x42c26b['removeMarker'](_0xdea09a),!0x0);}function Ut(_0x3c6db2){return _0x3e10fd(_0x3c6db2);}function Ot(_0x4d60cc){const _0x38922b=_0x4d60cc['start']['nodeAfter'];return _0x38922b&&_0x38922b['is']('element');}function Gt(_0x3348ef,_0x37315b){return null==_0x3348ef['end']['nodeBefore']&&_0x3348ef['end']['parent']==_0x3348ef['start']['nodeAfter']?Ft(_0x3348ef['start']['nodeAfter'],_0x37315b):_0x3348ef;}function Ft(_0x5279d9,_0x521ca2){const _0x35b886=_0x521ca2['schema']['isObject'](_0x5279d9)||_0x521ca2['schema']['isSelectable'](_0x5279d9);return _0x521ca2['createRange'](_0x521ca2['createPositionAt'](_0x5279d9,'before'),_0x35b886?_0x521ca2['createPositionAfter'](_0x5279d9):_0x521ca2['createPositionAt'](_0x5279d9,'end'));}function Pt(_0x3f3e28,_0x370b14,_0x3103c8,_0x58f544,_0x457ddf){if(!Lt(_0x3f3e28,_0x370b14))return!0x1;if(_0x3103c8['end']['isEqual'](_0x58f544['start']))return!0x0;if(_0x3f3e28['type']!=_0x370b14['type'])return!0x1;if(!_0x3103c8['end']['isTouching'](_0x58f544['start']))return!0x1;const _0xc47d64=_0x457ddf['createRange'](_0x3103c8['end'],_0x58f544['start'])['getWalker']();for(const _0x569de8 of _0xc47d64)if(['elementStart','elementEnd']['includes'](_0x569de8['type'])&&_0x457ddf['schema']['isLimit'](_0x569de8['item']))return!0x1;return!0x0;}function Lt(_0x14484c,_0x46b903,_0xc074dd=[]){return!(!_0x14484c['_isDataLoaded']||!_0x46b903['_isDataLoaded'])&&_0x135414(xt(_0x14484c['attributes'],_0xc074dd),xt(_0x46b903['attributes'],_0xc074dd));}function Ht(_0x34d4fd,_0x366f42){const _0x3bfb0a=qt(_0x34d4fd['attributes']),_0x514ab5=qt(_0x366f42);if(!_0x34d4fd['_isDataLoaded'])return!0x1;for(const _0x26dfa0 of Object['keys'](_0x514ab5))if(!_0x135414(_0x3bfb0a[_0x26dfa0],_0x514ab5[_0x26dfa0]))return!0x1;return!0x0;}function qt(_0x5da77e){const _0x10b5c2=Object['assign']({},_0x5da77e);return delete _0x10b5c2['skipNestingCheck'],delete _0x10b5c2['tablePasteChainId'],_0x10b5c2;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1d0c56(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3647ed,_0x382a38,_0x302aff,_0x2dc649){super(),this['model']=_0x382a38,this['view']=_0x302aff,this['commentThreadController']=_0x2dc649,this['_editor']=_0x3647ed,this['_acceptCommand']=_0x3647ed['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3647ed['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x21f1af,_0xbdb108)=>_0x21f1af||_0xbdb108),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x217882=>_0x217882&&this['_editor']['model']['canEditAt'](_0x382a38['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x58b460=>_0x58b460&&this['_editor']['model']['canEditAt'](_0x382a38['getRanges']())),this['_pendingAction']=null,_0x302aff['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x302aff,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x302aff,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x302aff,'change:isDirty',()=>{_0x302aff['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 _0x2ed539=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2ed539);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5b241e{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x53d825,_0x26e0bf,_0x13f504,_0x5adac6){super(_0x53d825),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x26e0bf['authoredAt']),this['bind']('authoredAt')['to'](_0x26e0bf),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x26e0bf,this['_localUser']=_0x13f504,this['_config']=_0x5adac6,_0x5adac6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4cb9d8}=this['_config'];this['commentsListView']=new _0x4cb9d8(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',_0x14140d=>_0x14140d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17206c,_0x2f4fcd)=>_0x17206c||!!_0x2f4fcd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x456b16}=this['_config'],_0x3f56d5=new _0x456b16(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5577cc=_0x3f56d5['commentInputView'];return _0x3f56d5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5577cc,'value',(_0x22564c,_0x5832ed,_0x59fff3)=>!!_0x59fff3||_0x22564c&&!_0x5832ed),_0x5577cc['on']('submit',(_0x4ceefa,_0x128476)=>{this['fire']('addComment',_0x128476),_0x5577cc['editor']['setData']('');}),_0x5577cc['on']('cancel',()=>this['focus']()),_0x5577cc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f56d5;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x32e82d,_0x3c7f04,_0x247d7d,_0x4b313a){super(_0x32e82d,_0x3c7f04,_0x247d7d,_0x4b313a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48728d=>_0x48728d&&_0x48728d[0x0]?_0x48728d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1b9b3b,_0x405354)=>{let _0xc4d69a='';for(const _0x281bf1 of _0x1b9b3b)_0xc4d69a+='<p>'+ds(_0x281bf1['content'],_0x281bf1['color'])+'</p>';return _0x405354?_0xc4d69a:_0x34f4f8(_0xc4d69a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x32e82d,'Accept\x20suggestion'),_0x24e0d1['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x32e82d,'Discard\x20suggestion'),_0x24e0d1['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x34a0dc(_0x32e82d,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x6eefca=this['bindTemplate'],_0x4edf26=[{'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':_0x6eefca['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x6eefca['to']('authoredAt',_0x1b7f7b=>this['_config']['formatDateTime'](_0x1b7f7b))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4edf26['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xee284c={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x6eefca['if']('isActive','ck-suggestion-wrapper--active'),_0x6eefca['to']('type',_0x493527=>'ck-suggestion-'+_0x493527),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4edf26}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xee284c['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0xee284c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x501d1f,_0x47e738,_0x963729)=>{this['_descriptionElement']['innerHTML']=_0x963729;});}['_createButton'](_0x20c701,_0x2612fa,_0x531f80,_0x3c5467,_0x1da762){const _0x3027c6=new _0x546385(this['locale']);return _0x3027c6['set']({'label':_0x20c701,'icon':_0x2612fa,'tooltip':!0x0,'tooltipPosition':_0x1da762}),_0x3027c6['extendTemplate']({'attributes':{'class':_0x531f80}}),_0x3027c6['on']('execute',()=>{this['fire'](_0x3c5467,this['_model']['id']);}),_0x3027c6;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x5be62c,_0x123c1d){let _0x41ae12='';return _0x41ae12+=_0x5be62c['split']('*')['map']((_0x377a43,_0x143762)=>_0x143762%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x377a43)+'</span>':us(_0x377a43))['join'](''),_0x123c1d&&(_0x41ae12+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x123c1d['value']+'\x22\x20title=\x22'+_0x123c1d['title']+'\x22></span>'),_0x41ae12;}function us(_0x1bc75b){const _0x114cf9=document['createElement']('span');return _0x114cf9['innerText']=_0x1bc75b,_0x114cf9['innerHTML'];}var ae='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x506527{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19687d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xfb5274){super(_0xfb5274),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1c8d0f=this['editor']['config'];_0x1c8d0f['define']('trackChanges.SuggestionThreadView',ie),_0x1c8d0f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1c8d0f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x26a5ca,_0x452240){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2cfece,_0x4c566f]of this['_handleControllerBuffer']){const _0x59a3ae=this['_suggestionToController']['has'](_0x2cfece);_0x59a3ae||_0x4c566f?_0x59a3ae&&_0x4c566f&&this['_destroyController'](_0x2cfece):this['_initializeController'](_0x2cfece);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x26a5ca,_0x452240);}['init'](){const _0x10f6a2=this['editor'],_0x237aa7=_0x10f6a2['plugins']['get']('TrackChangesEditing'),_0x47a4cc=_0x10f6a2['plugins']['get']('Annotations'),_0x5e969b=_0x10f6a2['plugins']['get']('EditorAnnotations'),_0x4f254a=_0x10f6a2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5e969b['addSourceCollector'](()=>{const _0x57f03a=[];for(const [_0x4821c2,_0x51ecb1]of Array['from'](this['_suggestionToController'])){const _0x437c83=_0x4821c2['getAllAdjacentSuggestions'](),_0x1b9160=[];for(const _0x49d0db of _0x437c83){if(!_0x49d0db['isInContent'])continue;if(_0x49d0db['isMultiRange']){_0x1b9160['push'](..._0x49d0db['getRanges']());continue;}const _0x120e0d=_0x49d0db['getFirstRange']();if(_0x1b9160['length']>0x0){const _0x192d48=_0x1b9160[0x0]['getJoined'](_0x120e0d);if(_0x192d48){_0x1b9160[0x0]=_0x192d48;continue;}}_0x1b9160['push'](_0x120e0d);}_0x57f03a['push']([_0x51ecb1['view'],_0x1b9160]);}return _0x57f03a;}),this['listenTo'](_0x237aa7,'suggestionLoaded',(_0x4cdbb4,_0x5a96f0)=>{this['listenTo'](_0x5a96f0,'change:previous',(_0x1443ff,_0xceb3b0,_0x100621,_0x132df3)=>{_0x5a96f0['isInContent']&&(null==_0x100621?(this['_updateController'](_0x132df3['head']),this['_handleSuggestionControllerDelayed'](_0x5a96f0,!0x1)):(this['_updateController'](_0x100621['head']),null==_0x132df3&&this['_handleSuggestionControllerDelayed'](_0x5a96f0,!0x0)));}),null!==_0x5a96f0['previous']?this['_updateController'](_0x5a96f0['head']):this['_handleSuggestionControllerDelayed'](_0x5a96f0,!0x1);}),this['listenTo'](_0x237aa7,'suggestionUnloaded',(_0x5142b8,_0x446f4f,_0x252a3e)=>{this['stopListening'](_0x446f4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x446f4f),this['_suggestionToController']['has'](_0x446f4f)&&this['_destroyController'](_0x446f4f),_0x252a3e&&this['_updateController'](_0x252a3e['head']);}),this['listenTo'](_0x237aa7,'suggestionChanged',(_0x1b3dda,_0x5b276e)=>{this['_updateController'](_0x5b276e);}),this['listenTo'](_0x47a4cc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f254a,'addComment',(_0x11e368,{threadId:_0x4157ab,isFromAdapter:_0x5ef80b})=>{if(_0x5ef80b||!_0x237aa7['hasSuggestion'](_0x4157ab))return;const _0x5a33f9=_0x237aa7['getSuggestion'](_0x4157ab);this['_suggestionToController']['get'](_0x5a33f9)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x318e3b=this['editor']['plugins']['get']('Annotations'),_0x54c65d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c1325=Array['from'](_0x318e3b['activeAnnotations'],_0x3861da=>_0x3861da['innerView'])['filter'](_0x3700b5=>this['_viewToController']['has'](_0x3700b5)),_0x35697e=[];for(const _0x74fb2e of _0x2c1325){const _0x339ec5=this['_viewToController']['get'](_0x74fb2e)['model']['getAllAdjacentSuggestions']();_0x35697e['push'](..._0x339ec5['reduce']((_0x355d68,_0x430a69)=>[..._0x355d68,..._0x430a69['getMarkerNames']()],[]));}_0x54c65d['activeMarkers']=_0x35697e;}['_addUIComponentsToFactory'](){const _0x37776a=this['editor'],_0x8669d4=_0x37776a['locale'],_0x12b803=o(_0x8669d4,'Track\x20changes'),_0x3ca7b2=new Wt([{'type':'switchbutton','model':new _0xf10af4({'withText':!0x0,'isToggleable':!0x0,'label':_0x12b803,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xf10af4({'withText':!0x0,'label':o(_0x8669d4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf10af4({'withText':!0x0,'label':o(_0x8669d4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf10af4({'withText':!0x0,'label':o(_0x8669d4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf10af4({'withText':!0x0,'label':o(_0x8669d4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5bb14d of _0x3ca7b2)if(re(_0x5bb14d)){const _0x59043f=_0x37776a['commands']['get'](_0x5bb14d['model']['commandName']);_0x5bb14d['model']['bind']('isOn','isEnabled')['to'](_0x59043f,'value','isEnabled');}_0x37776a['ui']['componentFactory']['add']('trackChanges',_0xa24efc=>this['_createToolbarButton'](_0xa24efc,_0x3ca7b2,_0x12b803)),_0x37776a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33c74b=>this['_createMenuBarMenu'](_0x33c74b,_0x3ca7b2,_0x12b803));}['_createToolbarButton'](_0x2826bc,_0x7763b7,_0x1775e8){const _0x3bd01f=Jt(_0x2826bc,te),_0x2871ff=this['editor']['commands']['get']('trackChanges');_0x3bd01f['buttonView']['set']({'tooltip':_0x1775e8,'label':_0x1775e8,'icon':ae}),_0x3bd01f['buttonView']['bind']('isOn')['to'](_0x2871ff,'value'),_0x3bd01f['buttonView']['on']('execute',()=>{_0x2871ff['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x3bd01f,_0x7763b7,{'role':'menu'});const _0x5b1a8b=[];for(const _0x1e5b08 of _0x7763b7)re(_0x1e5b08)&&_0x5b1a8b['push'](this['editor']['commands']['get'](_0x1e5b08['model']['commandName']));const _0x38a92f=_0x3bd01f['buttonView'];return _0x38a92f['actionView']['unbind']('isEnabled'),_0x38a92f['arrowView']['unbind']('isEnabled'),_0x38a92f['actionView']['bind']('isEnabled')['to'](_0x2871ff,'isEnabled'),_0x38a92f['arrowView']['bind']('isEnabled')['toMany'](_0x5b1a8b,'isEnabled',(..._0x4da7cb)=>_0x4da7cb['some'](_0x387e0d=>_0x387e0d)),_0x3bd01f['on']('execute',_0x5069f8=>{this['editor']['execute'](_0x5069f8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3bd01f;}['_createMenuBarMenu'](_0x19aabf,_0x597c67,_0xee7b2b){const _0x4db4a9=new Qt(_0x19aabf),_0x43a684=this['editor']['commands']['get']('trackChanges');_0x4db4a9['buttonView']['set']({'label':_0xee7b2b,'icon':ae});const _0x262836=new Xt(_0x19aabf);for(const _0x3b35cd of _0x597c67){if('separator'==_0x3b35cd['type']){_0x262836['items']['add'](new Kt(_0x19aabf));continue;}const _0x7d795a=new Yt(_0x19aabf,_0x4db4a9),_0x21ef9e=new Zt(_0x19aabf),_0x45e708=_0x3b35cd['model'];_0x21ef9e['bind'](...Object['keys'](_0x45e708))['to'](_0x45e708),_0x21ef9e['delegate']('execute')['to'](_0x4db4a9),_0x21ef9e['on']('execute',()=>{this['editor']['execute'](_0x45e708['commandName']),this['editor']['editing']['view']['focus']();}),_0x7d795a['children']['add'](_0x21ef9e),_0x262836['items']['add'](_0x7d795a);}return _0x4db4a9['bind']('isEnabled')['to'](_0x43a684,'isEnabled'),_0x4db4a9['panelView']['children']['add'](_0x262836),_0x4db4a9;}['_initializeController'](_0x4531fb){const _0xa85ae1=this['editor'],_0x43420e=_0xa85ae1['config'],_0xb9380d=_0xa85ae1['plugins']['get']('Annotations'),_0x474eda=_0xa85ae1['plugins']['get']('CommentsRepository'),_0x3ea7f9=_0xa85ae1['plugins']['get']('EditorAnnotations'),_0x561600=_0xa85ae1['plugins']['get'](_0x19687d)['me'],_0x1c63de=_0x43420e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x78c569,CommentThreadInputView:_0x353c08}=_0xa85ae1['plugins']['get']('CommentsUI');let _0x2d6947,_0xa8544f;this['_annotationViews']['has'](_0x4531fb['id'])?(_0xa8544f=this['_annotationViews']['get'](_0x4531fb['id']),_0x2d6947=_0xa8544f['mainView']):(_0x2d6947=new _0x1c63de(_0xa85ae1['locale'],_0x4531fb,_0x561600,{'disableComments':this['_disableComments'],'editorConfig':_0x43420e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43420e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43420e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43420e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x585f3f(_0x43420e['get']('locale')),'CommentView':_0x43420e['get']('comments')['CommentView'],'CommentsListView':_0x78c569,'CommentThreadInputView':_0x353c08}),_0x2d6947['acceptButton']['on']('execute',()=>{_0xa85ae1['editing']['view']['focus']();}),_0x2d6947['discardButton']['on']('execute',()=>{_0xa85ae1['editing']['view']['focus']();}),_0xa8544f=_0xb9380d['createAnnotationView'](this['editor']['locale'],_0x2d6947),_0xa8544f['bind']('isDirty')['to'](_0x2d6947,'isDirty'),_0xa8544f['bind']('length')['to'](_0x2d6947),_0xa8544f['bind']('type')['to'](_0x2d6947,'type',_0x2189b0=>'suggestion-'+_0x2189b0),this['_annotationViews']['set'](_0x4531fb['id'],_0xa8544f));const _0x5d2a30=_0x474eda['createCommentThreadController'](_0x4531fb['commentThread'],_0x2d6947),_0x1ec51f=new ne(_0xa85ae1,_0x4531fb,_0x2d6947,_0x5d2a30),_0x21e013=_0x4531fb['getAllAdjacentSuggestions']()['filter'](_0x3bc461=>_0x3bc461['isInContent']);_0x2d6947['descriptionParts']=_0xa85ae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21e013),this['_suggestionToController']['set'](_0x4531fb,_0x1ec51f),this['_viewToController']['set'](_0x2d6947,_0x1ec51f);const _0x48b36f=_0xb9380d['createAnnotation']({'view':_0xa8544f,'target':()=>{const _0x1806ab=[],_0x1eda6a=_0x4531fb['getAllAdjacentSuggestions']()['filter'](_0x1225a0=>_0x1225a0['isInContent']);for(const _0x4fdff0 of _0x1eda6a)_0x1806ab['push'](..._0x4fdff0['getMarkers']());return _0x218287(_0xa85ae1['editing'],_0x1806ab);},'type':()=>'suggestion-'+_0x1ec51f['view']['type']});_0x474eda['_bindAnnotationToEditors'](_0x2d6947,_0x48b36f),_0xb9380d['add'](_0x48b36f),_0x3ea7f9['registerAnnotation'](_0x48b36f);}['_destroyController'](_0x5d34c7){const _0x39bcc3=this['editor']['plugins']['get']('CommentsRepository'),_0x3e69b0=this['editor']['plugins']['get']('Annotations'),_0x1ede32=this['_suggestionToController']['get'](_0x5d34c7),_0x582d55=_0x1ede32['view'],_0x3ebd90=_0x3e69b0['getByInnerView'](_0x582d55);_0x39bcc3['_unbindEditors'](_0x582d55),_0x3ebd90&&_0x3e69b0['remove'](_0x3ebd90),this['_suggestionToController']['delete'](_0x5d34c7),this['_viewToController']['delete'](_0x582d55),_0x1ede32['destroy']();}['_updateController'](_0xca6298){if(!_0xca6298['isInContent']||!this['_suggestionToController']['has'](_0xca6298))return;const _0x177132=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d9ec3=this['_suggestionToController']['get'](_0xca6298),_0x133ff8=_0xca6298['getAllAdjacentSuggestions']();_0x1d9ec3['view']['descriptionParts']=_0x177132['descriptionFactory']['getDescriptions'](_0x133ff8);}['destroy'](){for(const _0x1b5dbe of this['_suggestionToController']['keys']())this['_destroyController'](_0x1b5dbe);for(const _0x4417ae of this['_annotationViews']['values']())_0x4417ae['mainView']['destroy']();super['destroy']();}}function re(_0x2e2742){return'model'in _0x2e2742;}class k extends _0x506527{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x160b06){this['editor']['plugins']['get'](p)['adapter']=_0x160b06;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x57c857){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x57c857);}['getSuggestions']({skipNotAttached:_0x2eeb5f=!0x1,toJSON:_0x369cc4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2eeb5f,'toJSON':_0x369cc4});}['getSuggestion'](_0x545228){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x545228);}}const T=['Pagination'];class P extends _0x506527{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x285352=this['editor'];if(_0x285352['config']['define']('trackChangesData.editorCreator',_0x20bbdf=>{const _0x2d5153=_0x285352['model']['document']['getRootNames']()['reduce']((_0x1220a6,_0x280844)=>(_0x1220a6[_0x280844]='',_0x1220a6),{});return _0x285352['constructor']['create'](_0x2d5153,_0x20bbdf);}),'function'!=typeof _0x285352['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a730a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3229f4){return N(this['editor'],!0x0,_0x3229f4);}['getDataWithDiscardedSuggestions'](_0x39d015){return N(this['editor'],!0x1,_0x39d015);}}class D extends _0x506527{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x55bd16){super(_0x55bd16),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(_0x2e2bb6){return void 0x0!==_0x2e2bb6['getRootsAttributes'];}async function N(_0x22e559,_0x2b25d5,_0x1c51fb){const _0x503c39=_0x548b32(_0x22e559,T);_0x503c39['plugins']['push'](p,D),_0x503c39['rootsAttributes']=v(_0x22e559)?_0x22e559['getRootsAttributes']():void 0x0;const _0x52e74b=document['createDocumentFragment'](),_0x290448=_0x22e559['config']['get']('trackChangesData')['editorCreator'],_0x208257=await _0x290448(_0x503c39,()=>function(_0x3c1bf2){const _0x4dfe91=document['createElement']('div');return _0x3c1bf2['appendChild'](_0x4dfe91),_0x4dfe91;}(_0x52e74b));!function(_0x2151b8,_0x1d76c0){const _0x2b0d49=_0x2151b8['model']['document']['getRootNames']()['reduce']((_0xe6ba90,_0x19da52)=>(_0xe6ba90[_0x19da52]=_0x2151b8['data']['get']({'rootName':_0x19da52}),_0xe6ba90),{}),_0xb2605=_0x2151b8['plugins']['get']('Users')['users']['map'](_0x367d3c=>({'id':_0x367d3c['id'],'name':_0x367d3c['name']})),_0x5221cb=_0x2151b8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2cc2fb=_0x2151b8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46bfbd=_0x1d76c0['plugins']['get']('Users'),_0xbb6337=_0x1d76c0['plugins']['get']('TrackChangesEditing'),_0x2d1950=_0x1d76c0['plugins']['get']('CommentsRepository');for(const _0x26cfab of _0xb2605)_0x46bfbd['getUser'](_0x26cfab['id'])||_0x46bfbd['addUser'](_0x26cfab);_0x46bfbd['me']||_0x46bfbd['useAnonymousUser']();for(const _0x1c25b2 of _0x2cc2fb)_0x2d1950['addCommentThread'](_0x1c25b2);for(const _0xbc523f of _0x5221cb)_0xbb6337['addSuggestionData'](_0xbc523f);_0x1d76c0['data']['set'](_0x2b0d49);}(_0x22e559,_0x208257),_0x208257['execute'](_0x2b25d5?'acceptAllSuggestions':'discardAllSuggestions');const _0x7e0cb4=v(_0x208257)?_0x208257['getFullData'](_0x1c51fb):_0x208257['data']['get'](_0x1c51fb);return await _0x208257['destroy'](),_0x7e0cb4;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|