@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240924.0 → 0.0.0-nightly-20240925.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 +10 -10
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x1eebb1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x567c31,_0x4336de){super(),this['id']=_0x4336de['id'],this['type']=_0x4336de['type'],this['subType']=_0x4336de['subType']||null,this['author']=_0x4336de['author'],this['creator']=_0x4336de['creator']||_0x4336de['author'],this['isExternal']=Boolean(_0x4336de['attributes']&&_0x4336de['attributes']['@external']),this['data']=null,this['_model']=_0x567c31,this['_onAccept']=_0x4336de['onAccept'],this['_onDiscard']=_0x4336de['onDiscard'],this['_onAttributesChange']=_0x4336de['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4336de['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 _0x245063=this;for(;_0x245063['previous'];)_0x245063=_0x245063['previous'];return _0x245063;}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'](_0x28ea02){this['_markerNames']['add'](_0x28ea02);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2ea649=>this['_model']['markers']['get'](_0x2ea649))['filter'](_0x412324=>_0x412324);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x513003=>{for(const _0x541443 of this['getMarkers']())_0x513003['removeMarker'](_0x541443);}),this['_markerNames']['clear']();}['removeMarker'](_0xc8b137){this['_model']['change'](_0x5bb7d4=>{_0x5bb7d4['removeMarker'](_0xc8b137);}),this['_markerNames']['delete'](_0xc8b137);}['addRange'](_0x4af666){const _0x14c0ea='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x14c0ea),this['_model']['change'](_0x5445f6=>{_0x5445f6['addMarker'](_0x14c0ea,{'range':_0x4af666,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5baad1){for(const _0x4db5fd of this['getRanges']())if(_0x4db5fd['isIntersecting'](_0x5baad1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x346467=>_0x346467['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f7f6a,_0x1cd95b)=>[..._0x1f7f6a,..._0x1cd95b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ddc5d=this['getRanges']();if(0x1!=_0x1ddc5d['length'])return null;const _0x1f924f=_0x1ddc5d[0x0],_0x205e3e=_0x1f924f['start']['nodeAfter'],_0x56590c=_0x1f924f['end']['nodeBefore'];return _0x205e3e instanceof _0xf87c82?_0x205e3e!=_0x56590c?null:_0x205e3e: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 _0x4e091d=[];let _0x2d1dd3=this['head'];for(;_0x2d1dd3;)_0x4e091d['push'](_0x2d1dd3),_0x2d1dd3=_0x2d1dd3['next'];return _0x4e091d;}['setAttribute'](_0x5e9b71,_0x5994f5){const _0x4111bd=_0x39ecdd(this['attributes']);_0x1ab7a5(_0x4111bd,_0x5e9b71,_0x5994f5),_0x33fc0b(_0x4111bd,this['attributes'])||(this['attributes']=_0x4111bd,this['_onAttributesChange'](_0x4111bd));}['removeAttribute'](_0xc42909){const _0xd6b21c=_0x39ecdd(this['attributes']);_0x4c8de7(_0xd6b21c,_0xc42909),_0x33fc0b(_0xd6b21c,this['attributes'])||(this['attributes']=_0xd6b21c,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 _0x1d9854()['substr'](0x1,0x5);}}function o(_0xe51a69,_0x186f34,_0x236fc8){const t=_0xe51a69['t'];switch(_0x186f34){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',_0x236fc8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x236fc8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x236fc8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x236fc8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x236fc8);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',_0x236fc8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x236fc8);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',_0x236fc8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x236fc8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x236fc8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x236fc8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x236fc8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x236fc8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x236fc8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x236fc8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x236fc8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x236fc8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x236fc8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x236fc8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x236fc8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x236fc8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x236fc8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x236fc8);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'},_0x236fc8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x236fc8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x236fc8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x236fc8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x236fc8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x236fc8);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'},_0x236fc8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x236fc8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x236fc8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x236fc8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x236fc8);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'},_0x236fc8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x236fc8);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'},_0x236fc8);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'},_0x236fc8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x236fc8);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'},_0x236fc8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x236fc8);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'},_0x236fc8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x236fc8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x236fc8);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'},_0x236fc8);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'},_0x236fc8);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'},_0x236fc8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x236fc8);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x236fc8);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x236fc8);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x236fc8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x186f34;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59084e,_0x3dbcf6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59084e,this['_locale']=_0x3dbcf6;}['getDescriptions'](_0x3ff281){const _0x42fd24=[],_0x2d12e0=new Set(),_0x1ee36d=new Set();for(let _0x2d66c1=0x0;_0x2d66c1<_0x3ff281['length'];_0x2d66c1++){const _0x5fa673=_0x3ff281[_0x2d66c1];if(!_0x5fa673['isInContent'])continue;const _0x2687bf=this['_handleCustomCallbackDescription'](_0x5fa673);if(_0x2687bf){if(null!=_0x5fa673['subType']){if(_0x2d12e0['has'](_0x5fa673['subType']))continue;_0x2d12e0['add'](_0x5fa673['subType']);}_0x42fd24['push'](_0x2687bf);}else{if('attribute'!=_0x5fa673['type'])'insertion'!=_0x5fa673['type']&&'deletion'!=_0x5fa673['type']||this['_handleInsertRemoveSuggestionDescription'](_0x42fd24,_0x5fa673,_0x3ff281[_0x2d66c1+0x1]);else{const _0x4dde25=_0x5fa673['data']['key'];if(_0x1ee36d['has'](_0x4dde25))continue;_0x1ee36d['add'](_0x5fa673['data']['key']),_0x4dde25==m?this['_handleRenameSuggestionDescription'](_0x42fd24,_0x5fa673):this['_handleAttributeSuggestionDescription'](_0x42fd24,_0x5fa673);}}}return this['_resolveDescriptionItems'](_0x42fd24);}['registerDescriptionCallback'](_0x6acf65){this['_customCallbacks']['push'](_0x6acf65);}['registerElementLabel'](_0x46a0b1,_0x5d60a9,_0xdbb13c=_0xa03c08['normal']){'function'==typeof _0x46a0b1?_0xd6dd24(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46a0b1,'label':_0x5d60a9,'priority':_0xdbb13c}):this['_itemLabels']['set'](_0x46a0b1,_0x5d60a9);}['registerAttributeLabel'](_0x2935ec,_0x1fd611){this['_attributeLabels']['set'](_0x2935ec,_0x1fd611);}['getItemLabel'](_0x2529e7,_0x5f369e=0x1){let _0x32337a;for(const _0x404c8b of this['_itemLabelsCallbacks'])if(_0x404c8b['matchingCallback'](_0x2529e7)){_0x32337a=_0x404c8b['label'];break;}return _0x32337a||(_0x32337a=this['_itemLabels']['get'](_0x2529e7['name'])),_0x32337a?_0x32337a(_0x5f369e):0x1!==_0x5f369e?_0x5f369e+'\x20'+_0x2529e7['name']+'s':''+_0x2529e7['name'];}['_addDescriptionItems'](_0x39c650,_0x2f3b86){const _0x19aff0=_0x2f3b86['getFirstRange']()['getWalker'](),_0x3aaa62='insertion'==_0x2f3b86['type']?'add':'remove';for(const _0x4b5e0d of _0x19aff0){const _0x6ee7f4=_0x4b5e0d['item'],_0x4045e1=_0x39c650[_0x39c650['length']-0x1];if(_0x6ee7f4['is']('$textProxy'))_0x4045e1&&_0x4045e1['type']['indexOf']('Container')>-0x1&&_0x39c650['pop'](),_0x4045e1&&'text'==_0x4045e1['type']?_0x4045e1[_0x3aaa62]+=_0x6ee7f4['data']:_0x39c650['push']({'type':'text','add':'add'==_0x3aaa62?_0x6ee7f4['data']:'','remove':'remove'==_0x3aaa62?_0x6ee7f4['data']:''});else{if(this['_schema']['isObject'](_0x6ee7f4)){const _0x11bae1=_0x6ee7f4;if(_0x4045e1&&_0x4045e1['type']['indexOf']('Container')>-0x1&&_0x39c650['pop'](),'elementEnd'==_0x4b5e0d['type'])continue;_0x4045e1&&_0x4045e1['type']==_0x3aaa62+'Object'&&_0x4045e1['element']['name']==_0x11bae1['name']?_0x4045e1['quantity']++:_0x39c650['push']({'type':_0x3aaa62+'Object','element':_0x11bae1,'quantity':0x1}),_0x19aff0['skip'](_0x185d6a=>!('elementEnd'==_0x185d6a['type']&&_0x185d6a['item']==_0x6ee7f4));}else{if(this['_schema']['checkChild'](_0x6ee7f4,'$text')||_0x6ee7f4['is']('element','softBreak')){const _0x5bd1cf=_0x6ee7f4;if('add'==_0x3aaa62&&'elementStart'==_0x4b5e0d['type']||'remove'==_0x3aaa62&&'elementEnd'==_0x4b5e0d['type'])continue;if(_0x4045e1&&-0x1==_0x4045e1['type']['indexOf']('Container')){'text'==_0x4045e1['type']&&(_0x4045e1[_0x3aaa62]+='\x0a');continue;}let _0x5b54f3;if(_0x5b54f3='add'==_0x3aaa62?_0x5bd1cf['nextSibling']&&!this['_schema']['isObject'](_0x5bd1cf['nextSibling'])?_0x5bd1cf['nextSibling']:null:_0x5bd1cf['previousSibling']&&!this['_schema']['isObject'](_0x5bd1cf['previousSibling'])?_0x5bd1cf['previousSibling']:null,_0x5bd1cf['isEmpty']||_0x5b54f3&&_0x5b54f3['isEmpty']){const _0x474cd6=_0x5b54f3&&_0x5b54f3['isEmpty']?_0x5b54f3:_0x5bd1cf;_0x4045e1&&_0x4045e1['type']==_0x3aaa62+'EmptyContainer'&&_0x4045e1['element']['name']==_0x474cd6['name']?_0x4045e1['quantity']++:_0x39c650['push']({'type':_0x3aaa62+'EmptyContainer','element':_0x474cd6,'quantity':0x1});}else _0x39c650['push']({'type':_0x3aaa62+'Container','element':_0x5bd1cf});}}}}}['_resolveDescriptionItems'](_0x3eb8be){const _0xfe9055=this['_locale'],_0x5506cf=[],_0x17fbd2=[],_0xf85043=[];for(const _0xb394ce of _0x3eb8be)switch(_0xb394ce['type']){case'text':if(_0xb394ce['add']=_0xb394ce['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb394ce['remove']=_0xb394ce['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb394ce['add']&&''!=_0xb394ce['remove']){_0x5506cf['push']({'type':'replace','content':o(_0xfe9055,'REPLACE_TEXT',['\x22'+_0xb394ce['remove']+'\x22','\x22'+_0xb394ce['add']+'\x22'])});continue;}if(null!=_0xb394ce['add']['match'](/^ +$/)){_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Insert:*\x20%0',o(_0xfe9055,'ELEMENT_SPACE',_0xb394ce['add']['length']))});continue;}if(null!=_0xb394ce['remove']['match'](/^ +$/)){_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Remove:*\x20%0',o(_0xfe9055,'ELEMENT_SPACE',_0xb394ce['remove']['length']))});continue;}if(''!=_0xb394ce['add']){_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Insert:*\x20%0','\x22'+_0xb394ce['add']+'\x22')});continue;}_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Remove:*\x20%0','\x22'+_0xb394ce['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Insert:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Remove:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'addContainer':_0x5506cf['push']({'type':'insertion','content':o(_0xfe9055,'*Split:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'removeContainer':_0x5506cf['push']({'type':'deletion','content':o(_0xfe9055,'*Merge:*\x20%0',this['getItemLabel'](_0xb394ce['element'],_0xb394ce['quantity']))});continue;case'addFormat':_0x17fbd2['push'](_0xb394ce['key']);continue;case'removeFormat':_0xf85043['push'](_0xb394ce['key']);continue;default:_0x5506cf['push'](_0xb394ce);}if(_0x17fbd2['length']){const _0x3df20a=_0x17fbd2['map'](_0x28bb8d=>this['_attributeLabels']['has'](_0x28bb8d)?this['_attributeLabels']['get'](_0x28bb8d):_0x28bb8d)['join'](',\x20');_0x5506cf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3df20a)});}if(_0xf85043['length']){const _0x1a7397=_0xf85043['map'](_0x39b080=>this['_attributeLabels']['has'](_0x39b080)?this['_attributeLabels']['get'](_0x39b080):_0x39b080)['join'](',\x20');_0x5506cf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1a7397)});}return _0x5506cf;}['_handleCustomCallbackDescription'](_0x4f45cc){for(const _0x35ffb3 of this['_customCallbacks']){const _0x1123c9=_0x35ffb3(_0x4f45cc);if(_0x1123c9&&'type'in _0x1123c9)return _0x1123c9;}}['_handleAttributeSuggestionDescription'](_0x8ee047,_0x56d6e8){const _0x4ceba7=_0x56d6e8['data'],_0x55a1f7=void 0x0===_0x4ceba7['newValue']?'removeFormat':'addFormat';_0x8ee047['push']({'type':_0x55a1f7,'key':_0x4ceba7['key']});}['_handleRenameSuggestionDescription'](_0x1e1ae6,_0x2e3d0a){_0x1e1ae6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e3d0a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f7d8e,_0x4647f4,_0x3ec721){if(this['_addDescriptionItems'](_0x4f7d8e,_0x4647f4),_0x3ec721&&_0x3ec721['getFirstRange']()&&!_0x4647f4['getFirstRange']()['end']['isEqual'](_0x3ec721['getFirstRange']()['start'])){const _0x49a9fa=_0x4f7d8e[_0x4f7d8e['length']-0x1],_0x31a526='insertion'==_0x4647f4['type']?'add':'remove';_0x49a9fa&&'text'==_0x49a9fa['type']&&(_0x49a9fa[_0x31a526]+='\x0a');}}}class V extends _0x4db285{['afterInit'](){const _0x532b3b=this['editor'],_0x42cc89=_0x532b3b['plugins']['get']('TrackChangesEditing');_0x532b3b['commands']['get']('showAIAssistant')&&_0x42cc89['enableCommand']('showAIAssistant');}}class U extends _0x4db285{['afterInit'](){const _0x565b5f=this['editor'],_0x38379f=_0x565b5f['locale'];if(!_0x565b5f['plugins']['has']('AlignmentEditing'))return;const _0x1648c3=_0x565b5f['plugins']['get']('TrackChangesEditing');_0x1648c3['enableDefaultAttributesIntegration']('alignment'),_0x1648c3['registerBlockAttribute']('alignment'),_0x1648c3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x38379f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d3dd=this['editor'],_0x2681b1=_0x32d3dd['locale'];_0x32d3dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45aa35=>{if('formatBlock'!=_0x45aa35['type'])return;const {data:_0x4145af}=_0x45aa35;if(_0x4145af&&'alignment'==_0x4145af['commandName']){const _0x42da8a=_0x4145af['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2681b1,'*Format:*\x20%0',function(_0x119702){switch(_0x119702){case'left':return o(_0x2681b1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2681b1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2681b1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2681b1,'FORMAT_JUSTIFY_TEXT');}}(_0x42da8a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4db285{['afterInit'](){const _0xb5ec4d=this['editor'],_0x51088a=_0xb5ec4d['plugins']['get']('TrackChangesEditing'),_0x4cf2df=_0xb5ec4d['locale'];for(const _0x2a920e of ti){if(!_0xb5ec4d['plugins']['has'](_0x2a920e))continue;const _0x4ec2bd=_0x2a920e['slice'](0x0,-0x7)['toLowerCase'](),_0x3e7eac='FORMAT_'+_0x4ec2bd['toUpperCase']();_0x51088a['enableDefaultAttributesIntegration'](_0x4ec2bd),_0x51088a['registerInlineAttribute'](_0x4ec2bd),_0x51088a['descriptionFactory']['registerAttributeLabel'](_0x4ec2bd,o(_0x4cf2df,_0x3e7eac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a87bc=this['editor'],_0x528a87=_0x3a87bc['locale'],_0x10dec5=_0x3a87bc['plugins']['get']('TrackChangesEditing');function _0x47a520(_0x13e9a1,_0x37fe13){_0x10dec5['descriptionFactory']['registerDescriptionCallback'](_0xa5f1ed=>{if('formatInline'!=_0xa5f1ed['type'])return;const {data:_0x261f40}=_0xa5f1ed;return _0x261f40&&_0x261f40['commandName']===_0x13e9a1?_0x261f40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x528a87,'*Format:*\x20%0',_0x37fe13)}:{'type':'format','content':o(_0x528a87,'*Remove\x20format:*\x20%0',_0x37fe13)}:void 0x0;});}_0x47a520('bold',o(_0x528a87,'FORMAT_BOLD')),_0x47a520('italic',o(_0x528a87,'FORMAT_ITALIC')),_0x47a520('underline',o(_0x528a87,'FORMAT_UNDERLINE')),_0x47a520('code',o(_0x528a87,'FORMAT_CODE')),_0x47a520('strikethrough',o(_0x528a87,'FORMAT_STRIKETHROUGH')),_0x47a520('subscript',o(_0x528a87,'FORMAT_SUBSCRIPT')),_0x47a520('superscript',o(_0x528a87,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4db285{['afterInit'](){const _0x4bf6fd=this['editor'],_0x1aad30=_0x4bf6fd['locale'];if(!_0x4bf6fd['plugins']['has']('BlockQuoteEditing'))return;const _0x1b4d9b=_0x4bf6fd['plugins']['get']('TrackChangesEditing'),_0x36a68e=this['editor']['commands']['get']('blockQuote');_0x1b4d9b['enableCommand']('blockQuote',(_0x3c288d,_0x269fd7={})=>{const _0x381e92=this['editor']['model']['document']['selection'],_0xf2d1=_0x269fd7&&void 0x0!==_0x269fd7['forceValue']?_0x269fd7['forceValue']:!_0x36a68e['value'];let _0x53aacb=[];if(_0xf2d1){const _0x3bb7cb=Array['from'](_0x381e92['getSelectedBlocks']())['filter'](_0x25ef09=>oo(_0x25ef09)||function(_0x5a981b,_0x24fdf1){const _0x2c630d=_0x24fdf1['checkChild'](_0x5a981b['parent'],'blockQuote'),_0x2c6f0a=_0x24fdf1['checkChild'](['$root','blockQuote'],_0x5a981b);return _0x2c630d&&_0x2c6f0a;}(_0x25ef09,this['editor']['model']['schema']));_0x53aacb=to(_0x3bb7cb,_0x4bf6fd['model']);}else{const _0x26b966=Array['from'](_0x381e92['getSelectedBlocks']())['filter'](_0x3cf345=>oo(_0x3cf345));_0x53aacb=to(_0x26b966,_0x4bf6fd['model']);}_0x4bf6fd['model']['change'](()=>{for(const _0x13393f of _0x53aacb)_0x1b4d9b['markBlockFormat'](_0x13393f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xf2d1}]});});}),_0x1b4d9b['descriptionFactory']['registerDescriptionCallback'](_0x41f6e6=>{const {data:_0x5a4d9a}=_0x41f6e6;if(_0x5a4d9a&&'blockQuote'==_0x5a4d9a['commandName']){const _0x1e0893=o(_0x1aad30,'ELEMENT_BLOCK_QUOTE');return _0x5a4d9a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1aad30,'*Set\x20format:*\x20%0',_0x1e0893)}:{'type':'format','content':o(_0x1aad30,'*Remove\x20format:*\x20%0',_0x1e0893)};}});}}function oo(_0x214678){return'blockQuote'==_0x214678['parent']['name'];}class L extends _0x4db285{['afterInit'](){const _0x3e04e4=this['editor'];_0x3e04e4['plugins']['has']('CaseChange')&&(_0x3e04e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3e04e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3e04e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4db285{['afterInit'](){const _0x59bd0d=this['editor'];_0x59bd0d['commands']['get']('ckbox')&&_0x59bd0d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4db285{['afterInit'](){const _0x41bf1e=this['editor'];if(!_0x41bf1e['plugins']['has']('CodeBlock'))return;const _0xd2abb9=_0x41bf1e['plugins']['get']('TrackChangesEditing'),_0x55b404=_0x41bf1e['locale'],_0x182b7a=_0x41bf1e['config']['get']('codeBlock')['languages'],_0x44852d=_0x41bf1e['commands']['get']('codeBlock');_0xd2abb9['enableCommand']('indentCodeBlock'),_0xd2abb9['enableCommand']('outdentCodeBlock'),_0xd2abb9['enableCommand']('codeBlock',(_0x32b5dc,_0x544e15={})=>{const _0x5827c6=_0x41bf1e['model'],_0x3d93d7=_0x41bf1e['model']['document']['selection'],_0x366ac6=_0x544e15&&void 0x0!==_0x544e15['forceValue']?_0x544e15['forceValue']:!_0x44852d['value'];let _0xeb0b4;_0x544e15['language']||(_0x544e15['language']=_0x182b7a[0x0]['language']),_0xeb0b4=_0x366ac6?Array['from'](_0x3d93d7['getSelectedBlocks']())['filter'](_0x2ae556=>eo(_0x2ae556)||function(_0x183b4a,_0x11e84c){if(_0x183b4a['is']('rootElement')||_0x11e84c['isLimit'](_0x183b4a))return!0x1;return _0x11e84c['checkChild'](_0x183b4a['parent'],'codeBlock');}(_0x2ae556,_0x5827c6['schema'])):Array['from'](_0x3d93d7['getSelectedBlocks']())['filter'](_0x1c2d30=>eo(_0x1c2d30));const _0x55cf35=to(_0xeb0b4,_0x5827c6);_0x5827c6['change'](()=>{for(const _0x43e266 of _0x55cf35)_0xd2abb9['markBlockFormat'](_0x43e266,{'commandName':'codeBlock','commandParams':[{..._0x544e15,'forceValue':_0x366ac6}],'formatGroupId':'blockName'});});}),(_0xd2abb9['descriptionFactory']['registerElementLabel']('codeBlock',_0x51116f=>o(_0x55b404,'ELEMENT_CODE_BLOCK',_0x51116f)),_0xd2abb9['descriptionFactory']['registerDescriptionCallback'](_0x1e5156=>{if('formatBlock'!=_0x1e5156['type'])return;const _0x2bfb02=_0x55b404['t'],{data:_0x49dde7}=_0x1e5156;if(!_0x49dde7||'codeBlock'!=_0x49dde7['commandName'])return;const _0x531ac3=_0x49dde7['commandParams'][0x0]['language'],_0x5142cb=_0x2bfb02(_0x182b7a['find'](_0x5605f1=>_0x5605f1['language']===_0x531ac3)['label'])['toLowerCase']();return _0x49dde7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55b404,'*Set\x20format:*\x20%0',o(_0x55b404,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5142cb+')')}:{'type':'format','content':o(_0x55b404,'*Remove\x20format:*\x20%0',o(_0x55b404,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4cf5b9){return'codeBlock'==_0x4cf5b9['name'];}class q extends _0x4db285{['afterInit'](){const _0x4f32f8=this['editor'];if(!_0x4f32f8['plugins']['has']('CommentsEditing'))return;_0x4f32f8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xa77069,_0x4d82fc,_0xd3192a){const _0x419364=[];for(const _0x434e3e of _0x4d82fc['getItems']())_0x434e3e['hasAttribute'](_0xa77069)&&_0x419364['push'](_0xd3192a['createRangeOn'](_0x434e3e));return _0x419364;}function _e(_0x510339,_0x2de205,{showActiveMarker:_0x41c39b=!0x0}={}){const _0x99d3cc=_0x510339['plugins']['get']('TrackChangesEditing');return(_0x19ba38,_0x5a0558,_0x495810)=>{if(!_0x495810['consumable']['test'](_0x5a0558['markerRange'],_0x19ba38['name']))return;const _0x57e84b=_0x5a0558['markerRange']['getWalker'](),_0x565187=_0x5a0558['markerRange']['start'],_0x35cbcb=_0x510339['model']['schema'];let _0x1f4eac=null,_0x53cee8=null,_0x4c6eca=!0x1,_0x434003=!0x1;for(const _0x430575 of _0x57e84b){const _0x28f05d=_0x430575['item'];_0x4c6eca=_0x4c6eca||_0x35cbcb['isContent'](_0x28f05d);const _0x404a4a=_0x495810['mapper']['toViewElement'](_0x28f05d);if(_0x404a4a&&_0x404a4a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x430575['type']&&(_0x35cbcb['isBlock'](_0x28f05d)&&!_0x35cbcb['isLimit'](_0x28f05d)&&(_0x28f05d['nextSibling']||_0x565187['isAtEnd']?_0x1f4eac&&_0x1f4eac['parent']==_0x28f05d||(_0x1f4eac=_0x28f05d,_0x2a760e(_0x430575['previousPosition']),_0x434003=!0x0):_0x53cee8=_0x53cee8||_0x430575['previousPosition']));}function _0x2a760e(_0x49987b){const {authorId:_0x55547c}=_0x99d3cc['_splitMarkerName'](_0x5a0558['markerName']),_0x314e30=_0x495810['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2de205,'data-author-id':_0x55547c}),_0x54e59d=_0x495810['mapper']['toViewPosition'](_0x49987b);_0x41c39b&&_0x99d3cc['activeMarkers']['includes'](_0x5a0558['markerName'])&&_0x495810['writer']['addClass']('ck-suggestion-marker--active',_0x314e30),_0x495810['writer']['insert'](_0x54e59d,_0x314e30),_0x495810['mapper']['bindElementToMarker'](_0x314e30,_0x5a0558['markerName']);}_0x4c6eca||_0x434003||!_0x53cee8||_0x2a760e(_0x53cee8);};}class z extends _0x4db285{static get['requires'](){return[_0x221a60];}['init'](){const _0x42b451=this['editor'],_0x1f865c=_0x42b451['plugins']['get']('TrackChangesEditing');_0x1f865c['enableCommand']('delete');const _0x3dbf1f=_0x42b451['commands']['get']('deleteForward');_0x1f865c['enableCommand']('deleteForward',(_0x34062c,_0x340673={})=>{const _0x254c28=_0x42b451['model']['createSelection'](_0x42b451['model']['document']['selection']);_0x254c28['isCollapsed']&&_0x42b451['model']['modifySelection'](_0x254c28,{'direction':'forward','unit':_0x340673['unit']});const _0xf7f40b=_0x254c28['getFirstRange'](),_0x5f0ebf=_0x52a99c['fromRange'](_0xf7f40b);let _0x5049b7;_0x34062c(_0x340673),_0x5049b7='$graveyard'==_0x5f0ebf['root']['rootName']?_0x42b451['model']['createRange'](_0xf7f40b['start']):_0x42b451['model']['createRange'](_0x5f0ebf['start'],_0x5f0ebf['end']),_0x5f0ebf['detach'](),_0x42b451['model']['enqueueChange'](_0x3dbf1f['buffer']['batch'],_0x2178d7=>{_0x3dbf1f['buffer']['lock'](),_0x2178d7['setSelection'](_0x2178d7['createRange'](_0x5049b7['end'])),_0x3dbf1f['buffer']['unlock']();});}),_0x42b451['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x42b451,'merge'),{'priority':'high'}),_0x42b451['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1f4184,_0x447782,_0x39734b)=>{_0x39734b['options']['showSuggestionHighlights']&&_e(_0x42b451,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1f4184,_0x447782,_0x39734b);},{'priority':'high'}),_0x42b451['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3ca8a5,_0x23f4bb,_0x240a94)=>{const _0x5a6693=_0x240a94['mapper']['markerNameToElements'](_0x23f4bb['markerName']);if(_0x5a6693){for(const _0x4e1946 of _0x5a6693)_0x4e1946['is']('uiElement')&&(_0x240a94['mapper']['unbindElementFromMarkerName'](_0x4e1946,_0x23f4bb['markerName']),_0x240a94['writer']['remove'](_0x4e1946));}},{'priority':'high'});}}class K extends _0x4db285{['afterInit'](){const _0x34f99a=this['editor'];if(!_0x34f99a['plugins']['has']('ListEditing'))return;const _0xe28a58=_0x34f99a['locale'],_0x1ff0e0=_0x34f99a['plugins']['get']('TrackChangesEditing'),_0x4e2038=_0x34f99a['plugins']['has']('TodoListEditing'),_0x4b066f=!!_0x34f99a['config']['get']('list.multiBlock');function _0x1d6232(_0x24713d){return{'type':'format','content':''+o(_0xe28a58,'*Set\x20format:*\x20%0',_0x24713d)};}function _0x4f6fb4(_0x2194f6){return{'type':'format','content':''+o(_0xe28a58,'*Remove\x20format:*\x20%0',_0x2194f6)};}_0x1ff0e0['enableDefaultAttributesIntegration']('numberedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('bulletedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('customNumberedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('customBulletedList'),_0x1ff0e0['enableDefaultAttributesIntegration']('indentList'),_0x1ff0e0['enableDefaultAttributesIntegration']('outdentList'),_0x1ff0e0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1ff0e0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1ff0e0['registerBlockAttribute']('listItemId'),_0x1ff0e0['registerBlockAttribute']('listType'),_0x1ff0e0['registerBlockAttribute']('listIndent'),_0x4b066f&&(_0x1ff0e0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1ff0e0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4e2038&&(_0x1ff0e0['enableDefaultAttributesIntegration']('todoList'),_0x1ff0e0['enableDefaultAttributesIntegration']('checkTodoList'),_0x1ff0e0['registerBlockAttribute']('todoListChecked'),_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x57dd93=>{const {data:_0x5b48e3}=_0x57dd93;if(_0x5b48e3&&'todoListChecked'==_0x5b48e3['key'])return{'type':'format','content':_0x5b48e3['newValue']?o(_0xe28a58,'*Check\x20item*'):o(_0xe28a58,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x238596=>{if(_0x238596['batch']['isUndo'])return!0x1;let _0x27250e=!0x1;const _0x15a2a9=_0x1ff0e0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5df760=>'todoListChecked'===_0x1ff0e0['_getAttributeKey'](_0x5df760));for(const _0xf31fd8 of _0x15a2a9){'todo'!=_0xf31fd8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1ff0e0['_findSuggestions'](_0xf31fd8['getFirstRange'](),'attribute')['find'](_0x5bd47a=>'listType'===_0x1ff0e0['_getAttributeKey'](_0x5bd47a['suggestion']))||(_0x238596['removeMarker'](_0xf31fd8['getFirstMarker']()),_0x27250e=!0x0));}return _0x27250e;})),_0x1ff0e0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xe28a58,'FORMAT_INDENT'));const _0x557d01={'type':'format','content':''};_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x13bde1=>{const {data:_0x13fe97}=_0x13bde1;if(!_0x13fe97||'listType'!=_0x13fe97['key'])return;let _0x50bbf0=_0x13bde1['head'];for(;_0x50bbf0;){if(_0x50bbf0['data']&&(('listStyle'==_0x50bbf0['data']['key']||'listMarkerStyle'==_0x50bbf0['data']['key'])&&(_0x50bbf0['data']['newValue']&&'default'!=_0x50bbf0['data']['newValue']||'default'!=_0x50bbf0['data']['oldValue']&&!_0x13fe97['newValue'])||!_0x4b066f&&_0x50bbf0['data']['key']==m))return _0x557d01;_0x50bbf0=_0x50bbf0['next'];}if(null==_0x13fe97['newValue'])switch(_0x13fe97['oldValue']){case'bulleted':return _0x4f6fb4(o(_0xe28a58,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f6fb4(o(_0xe28a58,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f6fb4(o(_0xe28a58,'ELEMENT_TODO_LIST'));}switch(_0x13fe97['newValue']){case'bulleted':return _0x1d6232(o(_0xe28a58,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6232(o(_0xe28a58,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6232(o(_0xe28a58,'ELEMENT_TODO_LIST'));}}),_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x5a35d6=>{const {data:_0x1201a2}=_0x5a35d6;if(_0x1201a2&&'listIndent'==_0x1201a2['key'])return null==_0x1201a2['newValue']||null==_0x1201a2['oldValue']&&0x0==_0x1201a2['newValue']?_0x557d01:void 0x0;}),_0x1ff0e0['descriptionFactory']['registerDescriptionCallback'](_0x2511a4=>{if('attribute'!=_0x2511a4['type'])return;const {data:_0x377296}=_0x2511a4;if(!_0x377296||'listItemId'!=_0x377296['key'])return;const _0x1cea1d=Ee(_0x2511a4);return'newValue'==_0x1cea1d?{'type':'format','content':o(_0xe28a58,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1cea1d?{'type':'format','content':o(_0xe28a58,'*Split:*\x20list\x20item')}:_0x557d01;}),_0x34f99a['model']['document']['registerPostFixer'](_0x4f52a5=>this['listItemIdFixer'](_0x4f52a5)),_0x34f99a['model']['document']['registerPostFixer'](_0x420adf=>this['noTrackChangesFixer'](_0x420adf)),_0x34f99a['model']['document']['on']('change:data',(_0x44851b,_0x210bd1)=>{if(_0x210bd1['isUndo']||!_0x210bd1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4dce69){if(_0x4dce69['batch']['isUndo']||!_0x4dce69['batch']['isLocal'])return!0x1;let _0x25f3a9=!0x1;const _0x41d63c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f7a4c=>_0x2f7a4c['data']&&'listItemId'==_0x2f7a4c['data']['key'])['filter'](_0x374b9b=>_0x374b9b['data']['newValue']&&_0x374b9b['data']['oldValue']);for(const _0x1cd8fb of _0x41d63c)Ee(_0x1cd8fb)||(_0x4dce69['removeMarker'](_0x1cd8fb['getFirstMarker']()),_0x25f3a9=!0x0);return _0x25f3a9;}['noTrackChangesFixer'](_0x42dc7f){if(_0x42dc7f['batch']['isUndo']||!_0x42dc7f['batch']['isLocal'])return!0x1;const _0x4796fb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4796fb['trackChangesCommand']['value'])return!0x1;let _0x1a2811=!0x1;const _0x2873af=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53a66d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2ba62e=>'attribute'==_0x2ba62e['type'])['filter'](_0xc010cf=>_0x2873af['includes'](_0xc010cf['attributeKey']));if(0x0==_0x53a66d['length'])return _0x1a2811;for(const _0x5852c0 of _0x53a66d){const _0x2c5d31=_0x4796fb['_findSuggestions'](_0x5852c0['range'],'attribute')['filter'](_0x42eaf0=>!_0x42eaf0['meta']['isNextTo'])['map'](_0x31f367=>_0x31f367['suggestion'])['filter'](_0xf95e59=>{const _0x49bb2b=_0x4796fb['_getAttributeKey'](_0xf95e59);return _0x2873af['includes'](_0x49bb2b);});if(_0x2c5d31['length']){for(const _0x108db7 of _0x2c5d31)_0x42dc7f['removeMarker'](_0x108db7['getFirstMarker']());_0x1a2811=!0x0;}}return _0x1a2811;}['assureChains'](){const _0x7d7d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fa313=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4bd277;const _0x51a0f7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4dfa23=>{if(_0x4dfa23['data']['oldRange']||!_0x4dfa23['data']['newRange'])return null;if(!_0x4dfa23['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x41f751}=_0x7d7d6['_splitMarkerName'](_0x4dfa23['name']);if(!_0x7d7d6['hasSuggestion'](_0x41f751))return null;const _0x4e3fef=_0x7d7d6['getSuggestion'](_0x41f751);return _0x3fa313['includes'](_0x4e3fef['data']['key']);})['map'](_0xf02bc0=>{const {id:_0x5ca217}=_0x7d7d6['_splitMarkerName'](_0xf02bc0['name']),_0x308d84=_0x7d7d6['getSuggestion'](_0x5ca217);return _0x4bd277=_0x308d84['attributes']['groupId'],_0x308d84['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x51a0f7['size'])return;const _0x1cac62=_0x7d7d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b495=>'attribute'==_0x33b495['type']&&_0x33b495['data']&&_0x3fa313['includes'](_0x33b495['data']['key'])&&_0x33b495['attributes']['groupId']!=_0x4bd277)['map'](_0x158532=>({'listItem':_0x158532['getFirstRange']()['start']['nodeAfter'],'groupId':_0x158532['attributes']['groupId']})),_0x51a54d=new Set();for(const {groupId:_0x3236d0,listItem:_0x41508f}of _0x1cac62)_0x51a0f7['has'](_0x41508f)&&_0x51a54d['add'](_0x3236d0);for(const _0x3d2e7b of _0x7d7d6['getSuggestions']())_0x51a54d['has'](_0x3d2e7b['attributes']['groupId'])&&_0x3d2e7b['setAttribute']('groupId',_0x4bd277);}['_supportLegacySuggestions'](){const _0x46afcd=this['editor'],_0x125fd4=_0x46afcd['locale'],_0x49b89a=_0x46afcd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49b89a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x20e902,_0x40f1f2){const _0x5ad7dc=[];for(let _0x20082d of _0x20e902)_0x20082d['start']['nodeAfter']===_0x20082d['end']['parent']&&(_0x20082d=_0x46afcd['model']['createRange'](_0x46afcd['model']['createPositionAt'](_0x20082d['start']['nodeAfter'],0x0))),_0x5ad7dc['push'](_0x20082d);_0x46afcd['model']['change'](_0x18a2ec=>{const _0x5236c2=_0x46afcd['model']['document']['selection'],_0x13ad4b=Array['from'](_0x5236c2['getRanges']())['map'](_0xf5e319=>_0x52a99c['fromRange'](_0xf5e319));_0x18a2ec['setSelection'](_0x5ad7dc),_0x46afcd['commands']['get'](_0x40f1f2['commandName'])['refresh'](),_0x40f1f2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46afcd['execute'](_0x40f1f2['commandName'],..._0x40f1f2['commandParams']),_0x18a2ec['setSelection'](_0x13ad4b);for(const _0x107009 of _0x13ad4b)_0x107009['detach']();});}),_0x49b89a['descriptionFactory']['registerElementLabel'](function(_0x583752){const _0x20e3d9=!_0x46afcd['model']['schema']['isObject'](_0x583752),_0x236e39=_0x583752['previousSibling'],_0x31da26=_0x583752['nextSibling'],_0x439e6e=_0x583752['getAttribute']('listItemId'),_0x30f849=!_0x236e39||_0x236e39['getAttribute']('listItemId')!==_0x439e6e,_0x4b4247=!_0x31da26||_0x31da26['getAttribute']('listItemId')!==_0x439e6e;return _0x20e3d9&&Boolean(_0x439e6e)&&_0x30f849&&_0x4b4247;},_0xbb087e=>o(_0x125fd4,'ELEMENT_LIST_ITEM',_0xbb087e));}['_registerLegacyDescription'](){const _0x538241=this['editor'],_0x471ede=_0x538241['locale'];function _0x25402c(_0xafad6e){const _0x571940=_0x538241['commands']['get']('bulletedList')['value'],_0x50369c=_0x538241['commands']['get']('numberedList')['value'];return'numberedList'===_0xafad6e?_0x571940:_0x50369c;}_0x538241['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d27fb){if('formatBlock'!=_0x5d27fb['type'])return;const {data:_0xe21d72}=_0x5d27fb;if(!_0xe21d72)return;let _0x3591ac,_0x4c088e,_0x44e0e3,_0x159a8c;switch(_0xe21d72['commandName']){case'bulletedList':_0x44e0e3=_0xe21d72['commandParams'][0x0]['forceValue'],_0x159a8c=_0x25402c(_0xe21d72['commandName']),_0x3591ac=_0x44e0e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x159a8c&&_0x538241['config']['get']('list.multiBlock')||(_0x3591ac='*Change\x20to:*\x20%0'),_0x4c088e={'type':'format','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x44e0e3=_0xe21d72['commandParams'][0x0]['forceValue'],_0x159a8c=_0x25402c(_0xe21d72['commandName']),_0x3591ac=_0x44e0e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x159a8c&&_0x538241['config']['get']('list.multiBlock')||(_0x3591ac='*Change\x20to:*\x20%0'),_0x4c088e={'type':'format','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3591ac='*Indent:*\x20%0',_0x4c088e={'type':'format','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3591ac=function(_0x4e25be){const _0x3f8280=_0x4e25be['getFirstRange']();let _0x316538=_0x3f8280['start']['nodeAfter'];for(;_0x316538&&_0x3f8280['containsItem'](_0x316538);){if(_0x316538['getAttribute']('listIndent')>0x0)return!0x1;_0x316538=_0x316538['nextSibling'];}return!0x0;}(_0x5d27fb)?o(_0x471ede,'*Format:*\x20remove\x20from\x20%0',o(_0x471ede,function(_0x2a1d00){return'ELEMENT_'+_0x2a1d00['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d27fb))):o(_0x471ede,'*Outdent:*\x20%0',o(_0x471ede,'ELEMENT_LIST_ITEM')),_0x4c088e={'type':'format','content':_0x3591ac};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe21d72['multipleBlocks']&&(_0x3591ac='*Merge:*\x20%0',_0x4c088e={'type':'deletion','content':o(_0x471ede,_0x3591ac,o(_0x471ede,'ELEMENT_LIST_ITEM'))});}return _0x4c088e;});}}function Ee(_0x282a53){let _0x5c6874=_0x282a53['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5c6874;){const _0x153d20=_0x5c6874['getAttribute']('listItemId');if(!_0x153d20)return!0x1;if(_0x153d20==_0x282a53['data']['newValue'])return'newValue';if(_0x153d20==_0x282a53['data']['oldValue'])return'oldValue';_0x5c6874=_0x5c6874['previousSibling'];}return!0x1;}class pe extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x238518=this['editor']['config']['get']('list.properties'),_0x243a2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x238518['styles']&&(_0x243a2b['enableDefaultAttributesIntegration']('listStyle'),_0x243a2b['registerBlockAttribute']('listStyle')),_0x238518['reversed']&&(_0x243a2b['enableDefaultAttributesIntegration']('listReversed'),_0x243a2b['registerBlockAttribute']('listReversed')),_0x238518['startIndex']&&(_0x243a2b['enableDefaultAttributesIntegration']('listStart'),_0x243a2b['registerBlockAttribute']('listStart'));const _0x2a6675={'type':'format','content':''};_0x243a2b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c4363=this['editor']['locale'];_0x243a2b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c4363,'FORMAT_LIST_REVERSED')),_0x243a2b['descriptionFactory']['registerDescriptionCallback'](_0x3f13dc=>{const {data:_0x46d817}=_0x3f13dc;if(_0x46d817&&'listReversed'==_0x46d817['key'])return null==_0x46d817['newValue']||0x0==_0x46d817['newValue']&&null==_0x46d817['oldValue']?_0x2a6675:void 0x0;}),_0x243a2b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c4363,'FORMAT_LIST_START')),_0x243a2b['descriptionFactory']['registerDescriptionCallback'](_0x1653f8=>{const {data:_0x359b53}=_0x1653f8;if(_0x359b53&&'listStart'==_0x359b53['key'])return null==_0x359b53['newValue']||0x1==_0x359b53['newValue']&&null==_0x359b53['oldValue']?_0x2a6675:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e928f=>{if(_0x2e928f['batch']['isUndo'])return!0x1;let _0x11d895=!0x1;const _0x2bdd3d=_0x243a2b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e8161=>{const _0x547294=_0x243a2b['_getAttributeKey'](_0x2e8161);return'listStart'==_0x547294||'listReversed'==_0x547294;});for(const _0x368590 of _0x2bdd3d){const _0x557e36=_0x368590['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x557e36||'customNumbered'==_0x557e36)continue;_0x243a2b['_findSuggestions'](_0x368590['getFirstRange'](),'attribute')['find'](_0x153094=>'listType'==_0x243a2b['_getAttributeKey'](_0x153094['suggestion']))||(_0x2e928f['removeMarker'](_0x368590['getFirstMarker']()),_0x11d895=!0x0);}return _0x11d895;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3d7bac){const _0x2bfa03=this['editor']['locale'],{data:_0x541762}=_0x3d7bac,_0x104468={'type':'format','content':''};if(!_0x541762||'listStyle'!=_0x541762['key'])return;if(!_0x541762['oldValue'])return'default'==_0x541762['newValue']?_0x104468:{'type':'format','content':''+o(_0x2bfa03,'*Set\x20format:*\x20%0',o(_0x2bfa03,this['_getTranslationKeyForListStyle'](_0x541762['newValue'])))};if(!_0x541762['newValue']){if('default'==_0x541762['oldValue'])return _0x104468;let _0x11492a=_0x3d7bac['head'];for(;_0x11492a;){if(_0x11492a['data']&&'listType'==_0x11492a['data']['key']&&_0x11492a['data']['newValue'])return _0x104468;_0x11492a=_0x11492a['next'];}return{'type':'format','content':''+o(_0x2bfa03,'*Remove\x20format:*\x20%0',o(_0x2bfa03,this['_getTranslationKeyForListStyle'](_0x541762['oldValue'])))};}if('default'!=_0x541762['newValue'])return{'type':'format','content':''+o(_0x2bfa03,'*Set\x20format:*\x20%0',o(_0x2bfa03,this['_getTranslationKeyForListStyle'](_0x541762['newValue'])))};let _0x3592d3=_0x3d7bac['head'];for(;_0x3592d3;){if(_0x3592d3['data']&&'listType'==_0x3592d3['data']['key']&&_0x3592d3['data']['newValue']&&_0x3592d3['data']['oldValue'])return _0x104468;_0x3592d3=_0x3592d3['next'];}return{'type':'format','content':o(_0x2bfa03,'*Set\x20format:*\x20%0',o(_0x2bfa03,'ELEMENT_'+_0x3d7bac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1fce73=this['editor'],_0x31882d=_0x1fce73['locale'];_0x1fce73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33fabc=>{if('formatBlock'!=_0x33fabc['type'])return;const {data:_0x528851}=_0x33fabc;if(!_0x528851)return;let _0x33dcd0,_0x4e6816;switch(_0x528851['commandName']){case'listStyle':_0x33dcd0='*Change\x20to:*\x20%0',_0x4e6816={'type':'format','content':o(_0x31882d,_0x33dcd0,o(_0x31882d,this['_getTranslationKeyForListStyle'](_0x528851['commandParams'][0x0]['type'])))};break;case'listReversed':_0x33dcd0=_0x528851['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e6816={'type':'format','content':o(_0x31882d,_0x33dcd0)};break;case'listStart':_0x33dcd0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e6816={'type':'format','content':o(_0x31882d,_0x33dcd0,_0x528851['commandParams'][0x0]['startIndex'])};}return _0x4e6816;});}['_getTranslationKeyForListStyle'](_0x28b126){return'ELEMENT_'+function(_0x40255f){if(ye['includes'](_0x40255f))return'bulleted';if(Se['includes'](_0x40255f))return'numbered';return null;}(_0x28b126)['toUpperCase']()+'_LIST_'+_0x28b126['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4db285{static get['requires'](){return[_0x4adfe0];}['init'](){const _0x408221=this['editor'],_0x2d43f9=_0x408221['plugins']['get']('TrackChangesEditing'),_0x1b15e9=_0x408221['commands']['get']('enter');_0x2d43f9['enableCommand']('enter',()=>{_0x408221['model']['change'](_0x55f393=>{const _0x286b1c=_0x408221['model']['document']['selection'],_0x2857fb=_0x286b1c['getFirstPosition'](),_0x2ec919=_0x52a99c['fromRange'](_0x286b1c['getFirstRange']());if(_0x1b15e9['enterBlock'](_0x55f393)){const _0x1dbd21=_0x408221['model']['createPositionAt'](_0x2857fb['parent']['nextSibling'],0x0),_0x88d720=_0x55f393['createRange'](_0x2857fb,_0x1dbd21);_0x2d43f9['markInsertion'](_0x88d720);}else _0x55f393['setSelection'](_0x55f393['createRange'](_0x2ec919['end']));_0x2ec919['detach'](),_0x1b15e9['fire']('afterExecute',{'writer':_0x55f393});});}),_0x408221['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x408221,'split'),{'priority':'high'}),_0x408221['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27e75f,_0x5a21c7,_0x2f7955)=>{const _0x570bee=_0x2f7955['mapper']['markerNameToElements'](_0x5a21c7['markerName']);if(_0x570bee){for(const _0x55f505 of _0x570bee)_0x55f505['hasClass']('ck-suggestion-marker-split')&&(_0x2f7955['mapper']['unbindElementFromMarkerName'](_0x55f505,_0x5a21c7['markerName']),_0x2f7955['writer']['remove'](_0x55f505));}},{'priority':'high'}),_0x408221['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e03ca,_0x58b38b,_0x25d1a2)=>{_0x25d1a2['options']['showSuggestionHighlights']&&_e(_0x408221,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1e03ca,_0x58b38b,_0x25d1a2);},{'priority':'high'});}}class X extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x426271=this['editor']['plugins']['get']('TrackChangesEditing');_0x426271['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x426271['enableCommand']('findNext'),_0x426271['enableCommand']('findPrevious'),_0x426271['enableCommand']('replace'),_0x426271['enableCommand']('replaceAll');}['handleFindCommand'](_0x316fb5,_0x5130eb,_0x5d6748={}){const _0x1557cf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x316fb5(_0x141d81=>{let _0x322e74=('string'==typeof _0x5130eb?_0x1557cf['findByTextCallback'](_0x5130eb,_0x5d6748):_0x5130eb)(_0x141d81);Array['isArray'](_0x322e74)&&(_0x322e74={'results':_0x322e74,'searchText':'string'==typeof _0x5130eb?_0x5130eb:''});const _0xe20181=_0x322e74['results']['filter'](_0xb199e8=>!0x1===this['_isInDeletionRange'](_0xb199e8,_0x141d81['item']));return{..._0x322e74,'results':_0xe20181};},_0x5d6748);}['_isInDeletionRange'](_0x3fc5a1,_0x4f32bf){const _0xd9e8d9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f32bf,_0x3fc5a1['start']),this['editor']['model']['createPositionAt'](_0x4f32bf,_0x3fc5a1['end']));for(const _0x3fecfb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd9e8d9['getIntersection'](_0x3fecfb['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x4db285{['afterInit'](){const _0xd0166b=this['editor']['locale'],_0x371ec2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4395cc,commandName:_0xd2bb14}of ro)this['editor']['plugins']['has'](_0x4395cc)&&(_0x371ec2['enableDefaultAttributesIntegration'](_0xd2bb14),_0x371ec2['registerInlineAttribute'](_0xd2bb14));_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xd0166b,'FORMAT_FONT_SIZE')),_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xd0166b,'FORMAT_FONT_FAMILY')),_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xd0166b,'FORMAT_FONT_COLOR')),_0x371ec2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xd0166b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26b94b=this['editor'],_0x3220d1=_0x26b94b['locale'];_0x26b94b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51c15a=>{const _0x16847f=_0x3220d1['t'];if('formatInline'!=_0x51c15a['type'])return;const {data:_0x2433dd}=_0x51c15a;if(null!=_0x2433dd){if('fontSize'==_0x2433dd['commandName']){const _0x5087bf=_0x2433dd['commandParams'][0x0]['value'];if(_0x5087bf){const _0x20ab40=_0x16847f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x49aee1=>_0x49aee1['model']==_0x5087bf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20size:*\x20%0',_0x20ab40)};}return{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2433dd['commandName']){const _0x20d3f3=_0x2433dd['commandParams'][0x0]['value'];return _0x20d3f3?{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20family:*\x20%0',_0x20d3f3)}:{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2433dd['commandName']){const _0x13ff2d=_0x2433dd['commandParams'][0x0]['value'];if(_0x13ff2d){const _0x47a56f=_0x34f3ec(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1db0e0=>_0x1db0e0['model']==_0x13ff2d);let _0x44044f=_0x13ff2d,_0x37a0d9='';return _0x47a56f&&(_0x44044f=_0x47a56f['label'],_0x37a0d9=_0x16847f(_0x44044f)['toLowerCase']()),{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20color:*\x20%0',_0x37a0d9)['trim'](),'color':{'value':_0x13ff2d,'title':_0x37a0d9||_0x44044f}};}return{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2433dd['commandName']){const _0x372464=_0x2433dd['commandParams'][0x0]['value'];if(_0x372464){const _0x3f00d7=_0x34f3ec(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4612ad=>_0x4612ad['model']==_0x372464);let _0x15bd9a=_0x372464,_0x10087e='';return _0x3f00d7&&(_0x15bd9a=_0x3f00d7['label'],_0x10087e=_0x16847f(_0x15bd9a)['toLowerCase']()),{'type':'format','content':o(_0x3220d1,'*Set\x20font\x20background\x20color:*\x20%0',_0x10087e)['trim'](),'color':{'value':_0x372464,'title':_0x10087e||_0x15bd9a}};}return{'type':'format','content':o(_0x3220d1,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4db285{['afterInit'](){const _0x23e8ae=this['editor'],_0x3207e3=_0x23e8ae['plugins']['get']('TrackChangesEditing'),_0x1b989d=_0x23e8ae['commands']['get']('copyFormat'),_0x4a55bb=_0x23e8ae['commands']['get']('pasteFormat');_0x1b989d&&_0x4a55bb&&(_0x3207e3['enableDefaultAttributesIntegration']('pasteFormat'),_0x3207e3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x32a120=this['editor'],_0x4dedfa=_0x32a120['locale'];_0x32a120['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb01c39=>{if('formatBlock'!=_0xb01c39['type']&&'formatInline'!=_0xb01c39['type'])return;const {data:_0xedf50b}=_0xb01c39;if(_0xedf50b&&'pasteFormat'===_0xedf50b['commandName']){const _0x3acf2d=[],_0x45c314=_0xedf50b['commandParams'][0x0];for(const [_0xac0659,_0x1f6605]of Object['entries'](_0x45c314))_0x3acf2d['push'](so(_0x32a120,_0xac0659,_0x1f6605));return _0x3acf2d['length']?{'type':'format','content':o(_0x4dedfa,'*Set\x20format\x20to:*\x20%0',_0x3acf2d['join'](',\x20'))}:{'type':'format','content':o(_0x4dedfa,'*Remove\x20all\x20formatting*')};}});}}function so(_0x356f1a,_0x147b45,_0x3d940b){const _0x2bfd76=_0x356f1a['locale']['t'],_0x30e1f3=_0x147b45['split'](/(?=[A-Z])/)['join']('\x20'),_0x13d483=_0x2bfd76(_0x30e1f3['charAt'](0x0)['toUpperCase']()+_0x30e1f3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3d940b)return _0x13d483;if('fontColor'===_0x147b45||'fontBackgroundColor'===_0x147b45){const _0x4a8ee8=_0x34f3ec(_0x356f1a['config']['get']('fontColor.colors'))['find'](_0x2393c3=>_0x2393c3['model']==_0x3d940b);return _0x13d483+'\x20('+(_0x4a8ee8?_0x2bfd76(_0x4a8ee8['label'])['toLowerCase']():_0x3d940b)+')';}if('fontSize'===_0x147b45&&isNaN(parseFloat(_0x3d940b))){const _0x39656f=_0x356f1a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x356f1a['config']['get']('fontSize.options'))['find'](_0x3d7523=>_0x3d7523['model']==_0x3d940b);return _0x13d483+'\x20('+(_0x39656f?_0x2bfd76(_0x39656f['title'])['toLowerCase']():_0x3d940b)+')';}return _0x13d483+'\x20('+_0x3d940b+')';}class tt extends _0x4db285{['_headingOptions'];['afterInit'](){const _0x50a88b=this['editor'];if(!_0x50a88b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x50a88b['config']['get']('heading.options');const _0x2f8364=_0x50a88b['locale'],_0x274d2a=_0x50a88b['plugins']['get']('TrackChangesEditing');_0x274d2a['enableDefaultAttributesIntegration']('heading');for(const _0x2c2f1b of this['_headingOptions'])'paragraph'!=_0x2c2f1b['model']&&_0x274d2a['descriptionFactory']['registerElementLabel'](_0x2c2f1b['model'],_0x415118=>{const _0x2a4eea=this['_getHeadingLevel'](_0x2c2f1b['model']);return null!==_0x2a4eea?_0x588047(_0x415118,_0x2a4eea):_0x42535a(_0x415118,_0x2c2f1b['title']);});function _0x588047(_0x2a8c67,_0x4455ff){return o(_0x2f8364,'ELEMENT_HEADING',[_0x2a8c67,_0x4455ff]);}function _0x42535a(_0x438eea,_0x431aa6){return o(_0x2f8364,'ELEMENT_HEADING_CUSTOM',[_0x438eea,_0x431aa6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f6e1b=this['editor'],_0x3fc796=_0x1f6e1b['locale'];function _0x429ee7(_0x1ac3db,_0x33bd75){return o(_0x3fc796,'ELEMENT_HEADING_CUSTOM',[_0x1ac3db,_0x33bd75]);}_0x1f6e1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2985f7=>{if('formatBlock'!=_0x2985f7['type'])return;const {data:_0x25d96a}=_0x2985f7;if(_0x25d96a&&'heading'==_0x25d96a['commandName']){const _0x487f01=_0x25d96a['commandParams'][0x0]['value'],_0x2792c5=this['_getHeadingLevel'](_0x487f01);if(null!==_0x2792c5)return{'type':'format','content':o(_0x3fc796,'*Change\x20to:*\x20%0',(_0x349038=0x1,_0x2ff31e=_0x2792c5,o(_0x3fc796,'ELEMENT_HEADING',[_0x349038,_0x2ff31e])))};const _0x406b2b=this['_headingOptions']['find'](_0x19ba0e=>_0x19ba0e['model']===_0x487f01)['title'];return{'type':'format','content':o(_0x3fc796,'*Change\x20to:*\x20%0',_0x429ee7(0x1,_0x406b2b))};}var _0x349038,_0x2ff31e;});}['_getHeadingLevel'](_0x2a7a1d){const _0xf201e=_0x2a7a1d['match'](/^heading(\d+)/);if(_0xf201e)return _0xf201e[0x1];const _0x101eca=this['_headingOptions']?.['find'](_0x256f48=>_0x256f48['model']==_0x2a7a1d);if(_0x101eca&&_0x101eca['view']){const _0x545df1=_0x101eca['view'],_0x17e11a=(_0x545df1['name']??_0x545df1)['match'](/^h(\d+)/);if(_0x17e11a)return _0x17e11a[0x1];}return null;}}class et extends _0x4db285{['afterInit'](){const _0x496f69=this['editor'];if(!_0x496f69['plugins']['has']('HighlightEditing'))return;const _0x1b7b9e=_0x496f69['plugins']['get']('TrackChangesEditing'),_0x390a42=_0x496f69['locale'];_0x1b7b9e['enableDefaultAttributesIntegration']('highlight'),_0x1b7b9e['registerInlineAttribute']('highlight'),_0x1b7b9e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x390a42,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x423dec=this['editor'],_0x5c545b=_0x423dec['locale'];_0x423dec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15632d=>{if('formatInline'!=_0x15632d['type'])return;const {data:_0xec11c8}=_0x15632d;if(_0xec11c8&&'highlight'==_0xec11c8['commandName']){const _0x293b64=_0x5c545b['t'],_0x314c2f=_0xec11c8['commandParams'][0x0]['value'];if(_0x314c2f){const _0x4b3956=_0x423dec['config']['get']('highlight.options')['find'](_0x2c41bc=>_0x2c41bc['model']==_0x314c2f),_0xfb98fc=_0x293b64(_0x4b3956['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c545b,'*Set\x20highlight:*\x20%0',_0xfb98fc),'color':{'value':_0x4b3956['color'],'title':_0x4b3956['title']}};}return{'type':'format','content':o(_0x5c545b,'*Remove\x20highlight*',o(_0x5c545b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4db285{['afterInit'](){const _0x29f76c=this['editor'];if(!_0x29f76c['plugins']['has']('HorizontalLineEditing'))return;_0x29f76c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1a1ad4=_0x29f76c['plugins']['get']('TrackChangesEditing'),_0xd6251f=_0x29f76c['locale'];_0x1a1ad4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x538582=>o(_0xd6251f,'ELEMENT_HORIZONTAL_LINE',_0x538582)),_0x29f76c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1061d0,{writer:_0x5e9c91,options:_0x33bcc0})=>{if(!_0x33bcc0['showSuggestionHighlights'])return null;const _0x4608bf=_0x5e9c91['createContainerElement']('div'),_0x4d3199=_0x5e9c91['createEmptyElement']('hr');return _0x5e9c91['addClass']('ck-horizontal-line',_0x4608bf),_0x5e9c91['insert'](_0x5e9c91['createPositionAt'](_0x4608bf,0x0),_0x4d3199),_0x4608bf;},'converterPriority':'high'});}}class st extends _0x4db285{['afterInit'](){const _0xa95984=this['editor'];if(!_0xa95984['plugins']['has']('HtmlEmbed'))return;const _0x45c06f=_0xa95984['plugins']['get']('TrackChangesEditing'),_0x1cdb84=_0xa95984['locale'];_0x45c06f['descriptionFactory']['registerElementLabel']('rawHtml',_0x2e5d10=>o(_0x1cdb84,'ELEMENT_HTML_EMBED',_0x2e5d10)),_0x45c06f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x45c06f['registerBlockAttribute']('value'),_0x45c06f['descriptionFactory']['registerDescriptionCallback'](_0x99a5be=>{if('attribute'!=_0x99a5be['type'])return;const {data:_0x90868b}=_0x99a5be;if(_0x90868b&&'value'==_0x90868b['key']&&_0x99a5be['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x54e6be=o(_0x1cdb84,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1cdb84,'*Change\x20%0\x20content*',_0x54e6be)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4672aa=this['editor'],_0x1a4b52=_0x4672aa['locale'];_0x4672aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37aa73=>{if('formatBlock'!=_0x37aa73['type'])return;const {data:_0x55d56d}=_0x37aa73;if(_0x55d56d&&'htmlEmbed'==_0x55d56d['commandName']){const _0x5091ca=o(_0x1a4b52,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1a4b52,'*Change\x20%0\x20content*',_0x5091ca)};}});}}class nt extends _0x4db285{['afterInit'](){const _0x374c86=this['editor'];if(!_0x374c86['plugins']['has']('ImageEditing'))return;const _0x686ff7=_0x374c86['plugins']['get']('TrackChangesEditing'),_0x51c93f=_0x374c86['plugins']['get']('ImageUtils'),_0x5bcb6f=_0x374c86['locale'];_0x686ff7['enableCommand']('insertImage'),_0x686ff7['descriptionFactory']['registerElementLabel']('imageBlock',_0x1287a9=>o(_0x5bcb6f,'ELEMENT_IMAGE',_0x1287a9)),_0x686ff7['descriptionFactory']['registerElementLabel']('imageInline',_0x2dc30d=>o(_0x5bcb6f,'ELEMENT_INLINE_IMAGE',_0x2dc30d)),_0x686ff7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5bcb6f,'ELEMENT_CAPTION')),_0x374c86['plugins']['has']('ImageUploadEditing')&&_0x686ff7['enableCommand']('uploadImage'),_0x374c86['plugins']['has']('ImageBlockEditing')&&_0x374c86['plugins']['has']('ImageInlineEditing')&&(_0x686ff7['enableCommand']('imageTypeInline',(_0x571e8f,_0x2bce5a)=>{const _0x3f2c09=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']);_0x374c86['model']['change'](()=>{_0x686ff7['markBlockFormat'](_0x3f2c09,{'commandName':'imageTypeInline','commandParams':[_0x2bce5a]},[],'convertBlockImageToInline');});}),_0x686ff7['enableCommand']('imageTypeBlock',(_0x4c9ab3,_0x31eb00)=>{_0x374c86['model']['change'](_0x2dca48=>{let _0x310d1f=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x3fd310=_0x2dca48['createRangeOn'](_0x310d1f);const _0x2d44e2=_0x2c0c65['fromPosition'](_0x3fd310['start'],'toPrevious'),_0x419f2f=_0x2c0c65['fromPosition'](_0x3fd310['end'],'toNext');_0x686ff7['forceDefaultExecution'](()=>_0x4c9ab3(_0x31eb00)),_0x310d1f=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x3fd310=_0x2dca48['createRangeOn'](_0x310d1f);const _0x2876b5=_0x2dca48['createRange'](_0x2d44e2,_0x419f2f);_0x2d44e2['detach'](),_0x419f2f['detach'](),_0x686ff7['markBlockFormat'](_0x310d1f,{'commandName':'imageTypeInline','commandParams':[_0x31eb00]},[],'convertInlineImageToBlock'),_0x2876b5['start']['isBefore'](_0x3fd310['start'])&&_0x686ff7['markInsertion'](_0x2dca48['createRange'](_0x2876b5['start'],_0x3fd310['start']),'convertInlineImageToBlock'),_0x3fd310['end']['isBefore'](_0x2876b5['end'])&&_0x686ff7['markInsertion'](_0x2dca48['createRange'](_0x3fd310['end'],_0x2876b5['end']),'convertInlineImageToBlock');});}),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x686ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x309baa])=>{const _0x980688=_0x686ff7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x28217a=_0x309baa['start'],_0x4845f6=_0x309baa['end'];const _0x595b6d=_0x374c86['model']['schema']['getNearestSelectionRange'](_0x28217a,'backward'),_0x40c9f8=_0x374c86['model']['schema']['getNearestSelectionRange'](_0x4845f6,'forward');_0x595b6d['isCollapsed']&&(_0x28217a=_0x595b6d['start']),_0x40c9f8['isCollapsed']&&(_0x4845f6=_0x40c9f8['end']),_0x980688([_0x374c86['model']['createRange'](_0x28217a,_0x4845f6)]);}),_0x686ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2098b6),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2098b6)),_0x374c86['plugins']['has']('ImageCaptionEditing')&&(_0x686ff7['enableCommand']('toggleImageCaption',(_0x22d954,_0x4ee80e)=>{const _0xaa0747=_0x374c86['plugins']['get']('ImageCaptionUtils');let _0x24a3ab=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x5cda85=_0xaa0747['getCaptionFromImageModelElement'](_0x24a3ab);_0x374c86['model']['change'](()=>{if(_0x5cda85)return void _0x686ff7['markDeletion'](_0x374c86['model']['createRangeOn'](_0x5cda85));const _0x8a4750=_0x51c93f['isBlockImage'](_0x24a3ab);_0x22d954(_0x4ee80e),_0x24a3ab=_0x51c93f['getClosestSelectedImageElement'](_0x374c86['model']['document']['selection']),_0x5cda85=_0xaa0747['getCaptionFromImageModelElement'](_0x24a3ab),_0x686ff7['markInsertion'](_0x374c86['model']['createRangeOn'](_0x5cda85),_0x8a4750?null:'imageCaption');});}),_0x686ff7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2098b6));const _0x57aedf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x575327(_0x174455,_0x322db7){const _0x2de6a1=_0x57aedf['findIndex'](({type:_0x468d30,subType:_0x2c5410})=>_0x174455['type']==_0x468d30&&_0x174455['subType']==_0x2c5410),_0x82e219=_0x57aedf['findIndex'](({type:_0x288ae2,subType:_0x12c961})=>_0x322db7['type']==_0x288ae2&&_0x322db7['subType']==_0x12c961);if(_0x2de6a1<0x0||_0x82e219<0x0)return!0x1;const _0x207618=_0x174455['getFirstRange'](),_0x366d5e=_0x322db7['getFirstRange']();if((0x0==_0x2de6a1||0x1==_0x2de6a1)&&0x2==_0x82e219&&_0x207618['isIntersecting'](_0x366d5e))return!0x0;if(0x2==_0x2de6a1&&0x3==_0x82e219){const _0xead3bb=_0x686ff7['_findSuggestions'](_0x207618,'insertion')['filter'](({suggestion:_0x12ef2e,meta:_0x1a256f})=>_0x1a256f['isOwn']&&'convertInlineImageToBlock'==_0x12ef2e['subType']);if(_0xead3bb['length']>0x1&&_0x366d5e['end']['isEqual'](_0x207618['start']))return!0x0;if(0x1==_0xead3bb['length']&&(_0x207618['start']['isEqual'](_0x366d5e['end'])||_0x207618['end']['isEqual'](_0x366d5e['start'])))return!0x0;}if(0x3==_0x2de6a1&&0x3==_0x82e219&&_0x207618['start']['isBefore'](_0x366d5e['start'])){const _0x2b2ec2=_0x207618['end']['nodeAfter'],_0x113453=_0x366d5e['start']['nodeBefore'];return _0x51c93f['isBlockImage'](_0x2b2ec2)&&_0x2b2ec2===_0x113453;}return!0x1;}function _0x2098b6(_0x440a7f,_0x2485f7){return _0x575327(_0x440a7f,_0x2485f7)?[_0x440a7f,_0x2485f7]:_0x575327(_0x2485f7,_0x440a7f)?[_0x2485f7,_0x440a7f]:null;}_0x374c86['plugins']['has']('ImageResize')&&(_0x686ff7['enableDefaultAttributesIntegration']('resizeImage'),_0x686ff7['registerBlockAttribute']('resizedWidth'),_0x686ff7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5bcb6f,'FORMAT_IMAGE_SIZE'))),_0x374c86['plugins']['has']('ImageTextAlternativeEditing')&&(_0x686ff7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x686ff7['registerBlockAttribute']('alt')),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x1fe104=>{if(!!_0x57aedf['find'](({type:_0x30ca9e,subType:_0x39d275})=>_0x1fe104['type']==_0x30ca9e&&_0x1fe104['subType']==_0x39d275))return _0x1fe104['previous']?{}:void 0x0;}),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x91fee8=>{if('insertion'==_0x91fee8['type']||'deletion'==_0x91fee8['type']){const _0x35fe57=_0x91fee8['getContainedElement']();if(_0x35fe57&&_0x35fe57['is']('element','caption'))return{'type':'insertion'==_0x91fee8['type']?'addObject':'removeObject','element':_0x35fe57,'quantity':0x1};}}),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x3ba0f1=>'formatBlock'==_0x3ba0f1['type']&&'convertInlineImageToBlock'==_0x3ba0f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3ba0f1['type']&&'convertBlockImageToInline'==_0x3ba0f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x686ff7['descriptionFactory']['registerDescriptionCallback'](_0x25da3c=>{if('attribute'!=_0x25da3c['type'])return;const {data:_0x318fdd}=_0x25da3c;if(!_0x318fdd||'alt'!=_0x318fdd['key'])return;const _0x23bcd8=_0x318fdd['newValue'];return _0x23bcd8?{'type':'format','content':o(_0x5bcb6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23bcd8+'\x22')}:{'type':'format','content':o(_0x5bcb6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4ef0=this['editor'],_0x5a6adb=_0x1b4ef0['locale'];_0x1b4ef0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13e635=>{if('formatBlock'!=_0x13e635['type']&&'formatInline'!=_0x13e635['type'])return;const {data:_0x3b6c57}=_0x13e635;if(_0x3b6c57){if('imageTextAlternative'==_0x3b6c57['commandName']){const _0x887d64=_0x3b6c57['commandParams'][0x0]['newValue'];return _0x887d64?{'type':'format','content':o(_0x5a6adb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x887d64+'\x22')}:{'type':'format','content':o(_0x5a6adb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b6c57['commandName']){const _0x5cb6f6=_0x3b6c57['commandParams'][0x0]['width'];return _0x5cb6f6?{'type':'format','content':o(_0x5a6adb,'*Set\x20image\x20width:*\x20%0',_0x5cb6f6)}:{'type':'format','content':o(_0x5a6adb,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3bc911=this['editor']['locale'],_0x259547=this['editor']['plugins']['get']('TrackChangesEditing');_0x259547['enableDefaultAttributesIntegration']('replaceImageSource'),_0x259547['registerBlockAttribute']('src'),_0x259547['descriptionFactory']['registerDescriptionCallback'](_0x58b356=>{if('attribute'!=_0x58b356['type'])return;const {data:_0x2d8988}=_0x58b356;return _0x2d8988&&'src'==_0x2d8988['key']?_0x2d8988['newValue']&&_0x2d8988['oldValue']?{'type':'format','content':o(_0x3bc911,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x46b999=this['editor']['plugins']['get']('TrackChangesEditing');_0x46b999['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x46b999['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46b999['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x46b999['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bb53f=this['editor'],_0x567507=_0x4bb53f['locale'];_0x4bb53f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x392edb=>{if('formatBlock'!=_0x392edb['type']&&'formatInline'!=_0x392edb['type'])return;const {data:_0x37f0a3}=_0x392edb;if(!_0x37f0a3||'replaceImageSource'!=_0x37f0a3['commandName'])return;return{'type':'format','content':o(_0x567507,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4db285{['afterInit'](){const _0x1b0803=this['editor'];if(!_0x1b0803['plugins']['has']('ImageStyleEditing'))return;const _0x1603f0=_0x1b0803['plugins']['get']('TrackChangesEditing'),_0x160900=_0x1b0803['plugins']['get']('ImageUtils'),_0xd20048={};_0x1603f0['enableCommand']('imageStyle',(_0x5a81b8,_0x134277)=>{const _0x325f8f=_0x1b0803['plugins']['get']('Users')['me'],_0x5356e7=_0x1b0803['commands']['get']('imageStyle');let _0x155897=_0x160900['getClosestSelectedImageElement'](_0x1b0803['model']['document']['selection']),_0x9d45a4=_0x1b0803['model']['createRangeOn'](_0x155897),_0x2f7205=_0x5356e7['value'];if(_0x2f7205==_0x134277['value'])return;const _0x484a3b={'commandName':'imageStyle','commandParams':[_0x134277],'formatGroupId':_0x1d9854()};_0x1b0803['model']['change'](()=>{if(_0x1603f0['getSuggestions']()['filter'](_0x483dd4=>_0x483dd4['isInContent']&&_0x325f8f==_0x483dd4['author']&&('formatBlock'==_0x483dd4['type']||'formatInline'==_0x483dd4['type'])&&('imageStylePreApply'==_0x483dd4['subType']||'imageStylePostApply'==_0x483dd4['subType'])&&_0x483dd4['getFirstRange']()['isEqual'](_0x9d45a4))['forEach'](_0x400ce3=>_0x1603f0['discardSuggestion'](_0x400ce3['head'])),_0x155897=_0x160900['getClosestSelectedImageElement'](_0x1b0803['model']['document']['selection']),_0x9d45a4=_0x1b0803['model']['createRangeOn'](_0x155897),_0x5356e7['refresh'](),_0x1b0803['commands']['get']('imageTypeInline')['refresh'](),_0x1b0803['commands']['get']('imageTypeBlock')['refresh'](),_0x2f7205=_0x5356e7['value'],_0x2f7205!=_0x134277['value'])return _0x160900['isInlineImage'](_0x155897)&&_0x5356e7['shouldConvertImageType'](_0x134277['value'],_0x155897)?(_0x5a81b8({..._0x134277,'setImageSizes':!0x1}),_0x155897=_0x160900['getClosestSelectedImageElement'](_0x1b0803['model']['document']['selection']),void _0x1603f0['markBlockFormat'](_0x155897,{..._0x484a3b,'commandReversedParams':[{'value':_0x2f7205||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x160900['isBlockImage'](_0x155897)?_0x1603f0['markBlockFormat'](_0x155897,_0x484a3b,[],'imageStylePostApply'):_0x1603f0['markInlineFormat'](_0x9d45a4,_0x484a3b,'imageStylePostApply'));});});for(const _0x1d6ecd of _0x1b0803['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xd20048[_0x1d6ecd['name']]=_0x1d6ecd['title']['toLowerCase']();_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3dd9af])=>{_0x160900['setImageNaturalSizeAttributes'](_0x3dd9af['getContainedElement']());}),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ba447,_0x119c6f)=>{_0x1603f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ba447,{'commandName':_0x119c6f['commandName'],'commandParams':_0x119c6f['commandReversedParams']});}),_0x1603f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2c1ee0,_0x5207f0){if(_0x360eac(_0x2c1ee0,_0x5207f0))return[_0x2c1ee0,_0x5207f0];if(_0x360eac(_0x5207f0,_0x2c1ee0))return[_0x5207f0,_0x2c1ee0];return null;});const _0x35b090=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x360eac(_0x1f832b,_0x1bb27a){const _0x39a098=_0x35b090['findIndex'](({type:_0x519fe0,subType:_0x2bf80f})=>_0x1f832b['type']==_0x519fe0&&_0x1f832b['subType']==_0x2bf80f),_0x4ca67d=_0x35b090['findIndex'](({type:_0x58fe6d,subType:_0x24a67e})=>_0x1bb27a['type']==_0x58fe6d&&_0x1bb27a['subType']==_0x24a67e);if(_0x39a098<0x0||_0x4ca67d<0x0)return!0x1;const _0x373df1=_0x1f832b['getFirstRange'](),_0x4d2cd0=_0x1bb27a['getFirstRange']();if((0x0==_0x39a098||0x1==_0x39a098)&&0x2==_0x4ca67d&&_0x373df1['isIntersecting'](_0x4d2cd0))return!0x0;if(0x2==_0x39a098&&0x3==_0x4ca67d){const _0x4e8be9=_0x1603f0['_findSuggestions'](_0x373df1,'insertion')['filter'](({suggestion:_0x5f3f49,meta:_0xbcfe02})=>_0xbcfe02['isOwn']&&'convertInlineImageToBlock'==_0x5f3f49['subType']);if(_0x4e8be9['length']>0x1&&_0x4d2cd0['end']['isEqual'](_0x373df1['start']))return!0x0;if(0x1==_0x4e8be9['length']&&(_0x373df1['start']['isEqual'](_0x4d2cd0['end'])||_0x373df1['end']['isEqual'](_0x4d2cd0['start'])))return!0x0;}if(0x3==_0x39a098&&0x3==_0x4ca67d&&_0x373df1['start']['isBefore'](_0x4d2cd0['start'])){const _0xe053b7=_0x373df1['end']['nodeAfter'],_0x2ccba7=_0x4d2cd0['start']['nodeBefore'];return _0x160900['isBlockImage'](_0xe053b7)&&_0xe053b7===_0x2ccba7;}return!0x1;}_0x1b0803['model']['document']['registerPostFixer'](()=>{let _0x1c29ce=!0x1;const _0x512018=Array['from'](_0x1b0803['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34df7b,data:_0x18237a}of _0x512018){const {group:_0x577883,type:_0x4a4bd0,subType:_0x32b80d,id:_0x2942c8}=_0x1603f0['_splitMarkerName'](_0x34df7b);if('suggestion'==_0x577883&&_0x1603f0['hasSuggestion'](_0x2942c8)){if('formatBlock'==_0x4a4bd0&&('imageStylePreApply'==_0x32b80d||'imageStylePostApply'==_0x32b80d)){const _0x319f25=_0x1603f0['getSuggestion'](_0x2942c8);if(_0x18237a['newRange']){const _0x1b3ca8=_0x319f25['getFirstRange']()['getContainedElement']();if(_0x160900['isBlockImage'](_0x1b3ca8))continue;_0x1603f0['discardSuggestion'](_0x319f25),_0x1c29ce=!0x0;}}if('insertion'==_0x4a4bd0&&'imageCaption'==_0x32b80d&&!_0x18237a['newRange']){const _0x4f51f8=_0x1603f0['getSuggestion'](_0x2942c8);_0x4f51f8['next']&&_0x4f51f8['next']['isInContent']&&(_0x1603f0['discardSuggestion'](_0x4f51f8['next']),_0x1c29ce=!0x0);}}}return _0x1c29ce;}),this['_registerLegacyDescription'](_0xd20048);}['_registerLegacyDescription'](_0x30e810){const _0x4bfd31=this['editor'],_0x5a78a2=_0x4bfd31['locale'];_0x4bfd31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x549e26=>{if('formatBlock'!=_0x549e26['type']&&'formatInline'!=_0x549e26['type'])return;const {data:_0x12ff6c}=_0x549e26;if(!_0x12ff6c||'imageStyle'!=_0x12ff6c['commandName'])return;const _0x20a45d=_0x12ff6c['commandParams'][0x0]['value'];return _0x7b28a0('side'===_0x20a45d?o(_0x5a78a2,'FORMAT_SIDE_IMAGE'):_0x30e810[_0x20a45d]||_0x20a45d);function _0x7b28a0(_0x192712){return{'type':'format','content':o(_0x5a78a2,'*Format:*\x20%0',_0x192712)};}});}}class at extends _0x4db285{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5bef68){super(_0x5bef68),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x10a608=this['editor'],_0x3b8075=_0x10a608['commands']['get']('importWord'),_0x33e305=_0x10a608['commands']['get']('trackChanges');_0x3b8075&&(_0x3b8075['on']('execute',(_0x39aee1,[,_0x24792a])=>{this['_trackChangesValueDuringImport']=_0x33e305['value'],_0x24792a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3b8075,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3b8075,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x33e305['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x10a608['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x49189f,_0x3723c7){const {suggestions:_0x1cba78}=_0x3723c7,_0x54c059=this['editor']['commands']['get']('trackChanges'),_0xe8663a=_0x54c059['value'];this['_trackChangesValueDuringImport']!==_0xe8663a&&(_0x54c059['execute'](),this['_trackChangesExecuted']=!0x0),_0x1cba78&&_0x1cba78['forEach'](({id:_0x3716b9,type:_0x557108,author:_0x1178cb,created_at:_0x23a9a8})=>{const _0xbceaaf={'id':_0x3716b9,'type':_0x557108,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1178cb,'createdAt':_0x23a9a8?new Date(_0x23a9a8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xbceaaf);});}}class ct extends _0x4db285{['afterInit'](){const _0x20898d=this['editor'],_0x10dad9=_0x20898d['plugins']['get']('TrackChangesEditing');if(_0x20898d['plugins']['has']('IndentEditing')&&(_0x10dad9['enableCommand']('indent'),_0x10dad9['enableCommand']('outdent')),_0x20898d['plugins']['has']('IndentBlock')){for(const _0x3d3e2a of['indentBlock','outdentBlock'])_0x10dad9['enableDefaultAttributesIntegration'](_0x3d3e2a);}const _0x1acccc=_0x20898d['locale'];_0x10dad9['registerBlockAttribute']('blockIndent'),_0x10dad9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1acccc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x510389=this['editor'],_0x8d379c=_0x510389['locale'],_0x28e76a=_0x510389['plugins']['get']('TrackChangesEditing');_0x28e76a['descriptionFactory']['registerDescriptionCallback'](_0x3d5e20=>{if('formatBlock'!=_0x3d5e20['type'])return;const {data:_0x49e1fc}=_0x3d5e20;if(!_0x49e1fc)return;if('indentBlock'!=_0x49e1fc['commandName']&&'outdentBlock'!=_0x49e1fc['commandName'])return;const _0x55ce60=_0x3d5e20['getItems']()[0x0],_0x14c5fd=_0x28e76a['descriptionFactory']['getItemLabel'](_0x55ce60);return'indentBlock'==_0x49e1fc['commandName']?{'type':'format','content':o(_0x8d379c,'*Indent:*\x20%0',_0x14c5fd)}:'outdentBlock'==_0x49e1fc['commandName']?{'type':'format','content':o(_0x8d379c,'*Outdent:*\x20%0',_0x14c5fd)}:void 0x0;});}}class ut extends _0x4db285{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4db285{['afterInit'](){const _0x21bc6b=this['editor'];if(!_0x21bc6b['plugins']['has']('LinkEditing'))return;const _0x38a981=_0x21bc6b['plugins']['get']('TrackChangesEditing'),_0x51cdc2=_0x21bc6b['commands']['get']('link');_0x38a981['enableDefaultAttributesIntegration']('link'),_0x38a981['enableDefaultAttributesIntegration']('unlink'),_0x38a981['registerInlineAttribute']('linkHref');for(const _0x587dbb of _0x51cdc2['manualDecorators'])_0x38a981['registerInlineAttribute'](_0x587dbb['id']),_0x38a981['descriptionFactory']['registerAttributeLabel'](_0x587dbb['id'],'link\x20('+_0x587dbb['label']['toLowerCase']()+')');_0x38a981['descriptionFactory']['registerDescriptionCallback'](_0x744b1c=>{if('attribute'!=_0x744b1c['type'])return;const {data:_0x132156}=_0x744b1c;if(!_0x132156||'linkHref'!=_0x132156['key'])return;const _0x21b2b5=_0x132156['newValue'],_0x2b993b=_0x21bc6b['locale'];return{'type':'format','content':null==_0x21b2b5?o(_0x2b993b,'*Remove\x20link*'):o(_0x2b993b,'*Set\x20link:*\x20%0','\x22'+_0x21b2b5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a80a9=this['editor'],_0x567d78=_0x5a80a9['locale'];_0x5a80a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ef572=>{if('formatInline'!=_0x3ef572['type'])return;const {data:_0xbb616}=_0x3ef572;if(_0xbb616){if('link'==_0xbb616['commandName']){const _0x4ec01e=_0xbb616['commandParams'][0x0];return{'type':'format','content':o(_0x567d78,'*Set\x20link:*\x20%0','\x22'+_0x4ec01e+'\x22')};}return'unlink'==_0xbb616['commandName']?{'type':'format','content':o(_0x567d78,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4db285{['afterInit'](){const _0x2c600c=this['editor'],_0x3bd573=_0x2c600c['locale'];if(!_0x2c600c['plugins']['has']('LegacyListEditing'))return;const _0x283334=_0x2c600c['plugins']['get']('TrackChangesEditing'),_0x10ced2=_0x2c600c['plugins']['has']('LegacyTodoListEditing');function _0x4d899c(_0x3acbdd){return()=>{const _0x3ccab5=_0x2c600c['model']['document']['selection'],_0x1d55e7=_0x2c600c['commands']['get'](_0x3acbdd);if(_0x1d55e7['value'])return void _0x2c600c['execute']('paragraph',{});const _0x5b56b5=_0x3acbdd['slice'](0x0,-0x4),_0x343a45=function(_0x26af64,_0x4f6ea3,_0x2f0f37){let _0x12818b=Array['from'](_0x26af64)['filter'](_0x4740eb=>function(_0x5c6065,_0x1e5fc3){return _0x1e5fc3['checkChild'](_0x5c6065['parent'],'listItem')&&!_0x1e5fc3['isObject'](_0x5c6065);}(_0x4740eb,_0x2f0f37));_0x12818b=_0x12818b['filter'](_0x11e7db=>!_0x11e7db['is']('element','listItem')||_0x11e7db['getAttribute']('listType')!=_0x4f6ea3);const _0x1ee67b=new Set();for(const _0x503d3b of _0x12818b)_0x503d3b['is']('element','listItem')?_0x1ee67b['add'](fe(_0x503d3b)):_0x1ee67b['add'](_0x503d3b);return Array['from'](_0x1ee67b);}(_0x3ccab5['getSelectedBlocks'](),_0x5b56b5,_0x2c600c['model']['schema']);_0x2c600c['model']['change'](()=>{for(const _0x218c49 of _0x343a45)_0x283334['markBlockFormat'](_0x218c49,{'commandName':_0x3acbdd,'commandParams':[{'forceValue':!_0x1d55e7['value']}],'formatGroupId':'blockName'},ue(_0x218c49));});};}function _0x146da3(_0x2827e1){return()=>{const _0x3d2c83=function(_0x5e65fa){let _0x5686e1=Array['from'](_0x5e65fa);const _0x5c9f5b=_0x5686e1['findIndex'](_0xfcd240=>'listItem'!=_0xfcd240['name']);return _0x5c9f5b>-0x1&&(_0x5686e1=_0x5686e1['slice'](0x0,_0x5c9f5b)),_0x5686e1;}(_0x2c600c['model']['document']['selection']['getSelectedBlocks']()),_0x5178c1=_0x2c600c['model']['createRange'](_0x2c600c['model']['createPositionAt'](_0x3d2c83[0x0],'before'),_0x2c600c['model']['createPositionAt'](_0x3d2c83[_0x3d2c83['length']-0x1],'end'));_0x2c600c['model']['change'](()=>{_0x283334['markBlockFormat'](_0x5178c1,{'commandName':_0x2827e1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x20e230){const _0x574480=new Set();for(const _0x5748e6 of _0x20e230){let _0x32b705=_0x5748e6['nextSibling'];for(;_0x32b705&&_0x32b705['getAttribute']('listIndent')>_0x5748e6['getAttribute']('listIndent');)_0x574480['add'](_0x32b705),_0x32b705=_0x32b705['nextSibling'];}return Array['from'](_0x574480);}(_0x3d2c83));});};}_0x283334['enableCommand']('numberedList',_0x4d899c('numberedList')),_0x283334['enableCommand']('bulletedList',_0x4d899c('bulletedList')),_0x10ced2&&_0x283334['enableCommand']('todoList',_0x4d899c('todoList')),_0x283334['enableCommand']('indentList',_0x146da3('indentList')),_0x283334['enableCommand']('outdentList',_0x146da3('outdentList')),_0x10ced2&&_0x283334['enableCommand']('checkTodoList',()=>{const _0x84af14=_0x2c600c['commands']['get']('checkTodoList'),_0x528c50=Array['from'](_0x84af14['_selectedElements']);_0x528c50['filter'](_0x529f13=>_0x529f13['getAttribute']('todoListChecked')!=_0x84af14['value']),_0x2c600c['model']['change'](()=>{for(const _0x148365 of _0x528c50)_0x283334['markBlockFormat'](_0x148365,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x84af14['value']}]});});}),_0x283334['descriptionFactory']['registerElementLabel']('listItem',_0x296658=>o(_0x3bd573,'ELEMENT_LIST_ITEM',_0x296658)),_0x283334['descriptionFactory']['registerDescriptionCallback'](_0x50ce73=>{if('formatBlock'!=_0x50ce73['type']&&'formatInline'!=_0x50ce73['type'])return;const {data:_0x13e774}=_0x50ce73;if(_0x13e774){if('numberedList'==_0x13e774['commandName']||'bulletedList'==_0x13e774['commandName']||'todoList'==_0x13e774['commandName'])switch(_0x13e774['commandName']['replace']('List','')){case'bulleted':return _0x2ff0d0(o(_0x3bd573,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ff0d0(o(_0x3bd573,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ff0d0(o(_0x3bd573,'ELEMENT_TODO_LIST'));}if('indentList'==_0x13e774['commandName'])return{'type':'format','content':o(_0x3bd573,'*Indent:*\x20%0',o(_0x3bd573,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x13e774['commandName'])return{'type':'format','content':o(_0x3bd573,'*Outdent:*\x20%0',o(_0x3bd573,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x13e774['commandName'])return _0x13e774['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bd573,'*Check\x20item*')}:{'type':'format','content':o(_0x3bd573,'*Uncheck\x20item*')};}function _0x2ff0d0(_0x192360){return{'type':'format','content':o(_0x3bd573,'*Change\x20to:*\x20%0',_0x192360)};}});}}function fe(_0x28547a){const _0xe0c333=_0x28547a['getAttribute']('listIndent');if(0x0==_0xe0c333)return _0x28547a;let _0x5320b1=_0x28547a;for(;_0x28547a['previousSibling']&&_0x28547a['previousSibling']['is']('element','listItem');){const _0x25e957=_0x28547a['previousSibling']['getAttribute']('listIndent');if(_0x25e957==_0xe0c333)_0x5320b1=_0x28547a['previousSibling'];else{if(_0x25e957<_0xe0c333)break;}_0x28547a=_0x28547a['previousSibling'];}return _0x5320b1;}function ue(_0x5997e6){const _0x47de28=[];if(_0x5997e6['is']('element','listItem')&&_0x5997e6['getAttribute']('listIndent')>0x0){let _0x21bc5e=_0x5997e6['nextSibling'];for(;_0x21bc5e&&'listItem'==_0x21bc5e['name']&&_0x21bc5e['getAttribute']('listIndent')==_0x5997e6['getAttribute']('listIndent');)_0x47de28['push'](_0x21bc5e),_0x21bc5e=_0x21bc5e['nextSibling'];}return _0x47de28;}class W extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xfaa0b=this['editor']['config']['get']('list.properties'),_0xa7931c=this['editor']['plugins']['get']('TrackChangesEditing');_0xfaa0b['styles']&&_0xa7931c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xfaa0b['reversed']&&_0xa7931c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xfaa0b['startIndex']&&_0xa7931c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa7931c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x29a87c,_0x203ad4={}){const _0x5a160f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x735e2c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5a160f['markMultiRangeBlockFormat'](_0x735e2c,{'commandName':'listStyle','commandParams':[{'type':_0x203ad4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x45d828,_0xf9be80={}){const _0x434a6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fad5e=this['_getSuggestionBlocks'](_0x5a40f3=>_0x5a40f3['is']('element','listItem')&&'numbered'===_0x5a40f3['getAttribute']('listType'));if(_0x3fad5e['length']<0x1)return;const _0x47a4ce=_0x3fad5e['map'](_0x40b8f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40b8f4,'before'),this['editor']['model']['createPositionAt'](_0x40b8f4,0x0)));this['editor']['model']['change'](()=>{_0x434a6f['markMultiRangeBlockFormat'](_0x47a4ce,{'commandName':'listReversed','commandParams':[{'reversed':_0xf9be80['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x33ba3a,_0x5e05a8={}){const _0x2693f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x280887=this['_getSuggestionBlocks'](_0x40de49=>_0x40de49['is']('element','listItem')&&'numbered'===_0x40de49['getAttribute']('listType'));if(_0x280887['length']<0x1)return;const _0xa9f9f=_0x280887['map'](_0x15f057=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f057,'before'),this['editor']['model']['createPositionAt'](_0x15f057,0x0)));this['editor']['model']['change'](()=>{_0x2693f7['markMultiRangeBlockFormat'](_0xa9f9f,{'commandName':'listStart','commandParams':[{'startIndex':_0x5e05a8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56567a){if('formatBlock'!=_0x56567a['type']&&'formatInline'!=_0x56567a['type'])return;const _0x55e7b5=this['editor']['locale'],{data:_0x4daf72}=_0x56567a;if(!_0x4daf72)return;let _0x39cf6b,_0x51d87f;switch(_0x4daf72['commandName']){case'listStyle':_0x39cf6b='*Change\x20to:*\x20%0',_0x51d87f={'type':'format','content':o(_0x55e7b5,_0x39cf6b,o(_0x55e7b5,this['_getTranslationKeyForListStyle'](_0x4daf72['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39cf6b=_0x4daf72['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51d87f={'type':'format','content':o(_0x55e7b5,_0x39cf6b)};break;case'listStart':_0x39cf6b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51d87f={'type':'format','content':o(_0x55e7b5,_0x39cf6b,_0x4daf72['commandParams'][0x0]['startIndex'])};}return _0x51d87f;}['_getSuggestionBlocksForListStyle'](){const _0x110a7d=this['editor']['plugins']['get']('LegacyListUtils');let _0x1794f5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1794f5[0x0]?.['is']('element','listItem')&&_0x1794f5['unshift'](..._0x110a7d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1794f5[_0x1794f5['length']-0x1]?.['is']('element','listItem')&&_0x1794f5['push'](..._0x110a7d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1794f5=[...new Set(_0x1794f5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1794f5=_0x1794f5['filter'](_0x490684=>_0x490684['is']('element','listItem'))),_0x1794f5;}['_getSuggestionBlocks'](_0x2bca65){const _0x18a7c4=this['editor']['plugins']['get']('LegacyListUtils');let _0x47c043=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2bca65)['map'](_0x2b61b3=>{const _0x3e82d1=this['editor']['model']['createPositionAt'](_0x2b61b3,0x0);return[..._0x18a7c4['getSiblingNodes'](_0x3e82d1,'backward'),..._0x18a7c4['getSiblingNodes'](_0x3e82d1,'forward')];})['flat']();return _0x47c043=[...new Set(_0x47c043)],_0x47c043;}['_getTranslationKeyForListStyle'](_0x974ef8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x974ef8)||'default')['toUpperCase']()+'_LIST_'+_0x974ef8['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4db285{['afterInit'](){const _0x2654e7=this['editor'];if(!_0x2654e7['plugins']['has']('MediaEmbedEditing'))return;const _0x15633b=_0x2654e7['plugins']['get']('TrackChangesEditing'),_0x1cf53a=_0x2654e7['locale'];_0x15633b['enableCommand']('mediaEmbed'),_0x15633b['descriptionFactory']['registerElementLabel']('media',_0x4de72d=>o(_0x1cf53a,'ELEMENT_MEDIA',_0x4de72d)),_0x2654e7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x86a42c,{writer:_0x35db76,options:_0x4172e0})=>{if(_0x4172e0['showSuggestionHighlights'])return _0x35db76['createEmptyElement']('div');},'converterPriority':'high'}),_0x2654e7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x607251,_0x2b79b4,_0x4e8a35)=>{_0x4e8a35['options']['showSuggestionHighlights']&&_0x607251['stop']();},{'priority':'high'});}}class mt extends _0x4db285{['afterInit'](){const _0x42fa12=this['editor'];_0x42fa12['plugins']['has']('MentionEditing')&&_0x42fa12['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4db285{['afterInit'](){const _0x566d59=this['editor'];if(!_0x566d59['plugins']['has']('MergeFieldsEditing'))return;_0x566d59['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x566d59['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1a4d28=_0x566d59['plugins']['get']('TrackChangesEditing'),_0x22af56=_0x566d59['locale'];_0x1a4d28['descriptionFactory']['registerElementLabel']('mergeField',_0x17c51a=>o(_0x22af56,'ELEMENT_MERGE_FIELD',_0x17c51a)),_0x1a4d28['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2be0d6=>o(_0x22af56,'ELEMENT_MERGE_FIELD',_0x2be0d6)),_0x1a4d28['descriptionFactory']['registerDescriptionCallback'](_0x391c3f=>{if('insertion'!=_0x391c3f['type']&&'deletion'!=_0x391c3f['type'])return;const _0xadb612=_0x391c3f['getContainedElement']();if(null==_0xadb612)return;if(!_0xadb612['is']('element','mergeField')&&!_0xadb612['is']('element','mergeFieldBlock'))return;const _0xf8e9eb=_0x566d59['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xadb612['getAttribute']('id'));return'insertion'==_0x391c3f['type']?{'type':'insertion','content':o(_0x22af56,'*Insert:*\x20%0','\x22'+_0xf8e9eb+'\x22\x20'+o(_0x22af56,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x22af56,'*Remove:*\x20%0','\x22'+_0xf8e9eb+'\x22\x20'+o(_0x22af56,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4db285{['afterInit'](){const _0x2d4916=this['editor'],_0x254b5b=_0x2d4916['plugins']['get']('TrackChangesEditing');_0x2d4916['plugins']['has']('MultiLevelList')&&(_0x254b5b['enableDefaultAttributesIntegration']('multiLevelList'),_0x254b5b['registerBlockAttribute']('listMarkerStyle'),_0x254b5b['descriptionFactory']['registerDescriptionCallback'](_0x46a6f3=>this['handleDescriptions'](_0x46a6f3)));}['handleDescriptions'](_0x2bbd6b){const _0x531eab=this['editor']['locale'],{data:_0x1a085f}=_0x2bbd6b,_0x18cc20={'type':'format','content':''};if(_0x1a085f&&'listMarkerStyle'==_0x1a085f['key']){if(!_0x1a085f['oldValue'])return{'type':'format','content':o(_0x531eab,'*Set\x20format:*\x20%0',o(_0x531eab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a085f['newValue']+')'};if(!_0x1a085f['newValue']){let _0x4d789d=_0x2bbd6b['head'];for(;_0x4d789d;){if(_0x4d789d['data']&&'listType'==_0x4d789d['data']['key']&&_0x4d789d['data']['newValue'])return _0x18cc20;_0x4d789d=_0x4d789d['next'];}return{'type':'format','content':o(_0x531eab,'*Remove\x20format:*\x20%0',o(_0x531eab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a085f['oldValue']+')'};}}}}class kt extends _0x4db285{['afterInit'](){const _0x32b607=this['editor'];if(!_0x32b607['plugins']['has']('PageBreakEditing'))return;_0x32b607['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x57f65a=_0x32b607['plugins']['get']('TrackChangesEditing'),_0x4bbb7b=_0x32b607['locale'];_0x57f65a['descriptionFactory']['registerElementLabel']('pageBreak',_0x228bec=>o(_0x4bbb7b,'ELEMENT_PAGE_BREAK',_0x228bec));}}class bt extends _0x4db285{['afterInit'](){const _0x56d9e4=this['editor'];if(!_0x56d9e4['plugins']['has']('Paragraph'))return;const _0x12a990=_0x56d9e4['locale'],_0x3330fe=_0x56d9e4['plugins']['get']('TrackChangesEditing');_0x3330fe['descriptionFactory']['registerElementLabel']('paragraph',_0x3278db=>o(_0x12a990,'ELEMENT_PARAGRAPH',_0x3278db)),_0x3330fe['enableDefaultAttributesIntegration']('paragraph'),_0x3330fe['enableCommand']('insertParagraph'),_0x56d9e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x56d9e4),{'priority':'highest'}),_0x56d9e4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a2165,_0x11db73,_0x103293)=>{_0x103293['options']['showSuggestionHighlights']&&nr(_0x56d9e4,{'showActiveMarker':!0x1})(_0x4a2165,_0x11db73,_0x103293);},{'priority':'highest'});const _0x1f9425=_0x3330fe['descriptionFactory'];_0x1f9425['registerDescriptionCallback'](_0x1f6b61=>{if('insertion'!==_0x1f6b61['type'])return;const {start:_0xad8841,end:_0x583fbe}=_0x1f6b61['getFirstRange']();if(!_0xad8841['isTouching'](_0x583fbe)||!_0xad8841['nodeAfter'])return;const _0x502a60=_0x56d9e4['model']['schema'],_0x55afb7=_0xad8841['nodeAfter'];return _0x502a60['isBlock'](_0x55afb7)&&!_0x502a60['isLimit'](_0x55afb7)&&_0x502a60['checkChild'](_0x55afb7,'$text')?{'type':'insertion','content':o(_0x12a990,'*Insert:*\x20%0',_0x1f9425['getItemLabel'](_0x55afb7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380691=this['editor'],_0x4e0e24=_0x380691['locale'];_0x380691['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58de4b=>{if('formatBlock'!=_0x58de4b['type'])return;const {data:_0x33a9b9}=_0x58de4b;return _0x33a9b9&&'paragraph'==_0x33a9b9['commandName']?{'type':'format','content':o(_0x4e0e24,'*Change\x20to:*\x20%0',o(_0x4e0e24,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2ece5c,{showActiveMarker:_0x355ba7=!0x0}={}){return(_0x2081cb,_0x3c3864,_0x2b5d58)=>{const _0x155ca4=_0x2ece5c['plugins']['get']('TrackChangesEditing'),_0x51317f=_0x3c3864['markerRange']['start'],_0x3c80c9=_0x3c3864['markerRange']['end'],_0x4c1838=_0x2ece5c['model']['schema'];if(!_0x51317f['isTouching'](_0x3c80c9)||!_0x51317f['nodeAfter'])return;const _0x5ea482=_0x51317f['nodeAfter'];if(_0x4c1838['isBlock'](_0x5ea482)&&!_0x4c1838['isLimit'](_0x5ea482)&&_0x4c1838['checkChild'](_0x5ea482,'$text')){if(!_0x2b5d58['consumable']['consume'](_0x3c3864['markerRange'],_0x2081cb['name']))return;const {authorId:_0x283a02}=_0x155ca4['_splitMarkerName'](_0x3c3864['markerName']),_0x4c5c04=_0x2b5d58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x283a02}),_0x19203c=_0x2b5d58['mapper']['toViewPosition'](_0x3c80c9);_0x355ba7&&_0x155ca4['activeMarkers']['includes'](_0x3c3864['markerName'])&&_0x2b5d58['writer']['addClass']('ck-suggestion-marker--active',_0x4c5c04),_0x2b5d58['writer']['insert'](_0x19203c,_0x4c5c04),_0x2b5d58['mapper']['bindElementToMarker'](_0x4c5c04,_0x3c3864['markerName']);}};}class wt extends _0x4db285{['afterInit'](){const _0x23fa3a=this['editor'];if(!_0x23fa3a['plugins']['has']('RemoveFormatEditing'))return;_0x23fa3a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8edd=this['editor'];_0x1b8edd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58a783=>{if('formatBlock'!=_0x58a783['type']&&'formatInline'!=_0x58a783['type'])return;const {data:_0x293ef9}=_0x58a783;return _0x293ef9&&'removeFormat'==_0x293ef9['commandName']?{'type':'format','content':o(_0x1b8edd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4db285{['afterInit'](){const _0x3a209d=this['editor'];if(!_0x3a209d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xcb6142=_0x3a209d['plugins']['get']('TrackChangesEditing');_0xcb6142['enableCommand']('goToPreviousRestrictedEditingException'),_0xcb6142['enableCommand']('goToNextRestrictedEditingException');const _0x4614ae=_0x3a209d['plugins']['get']('RestrictedEditingModeEditing');_0x4614ae['enableCommand']('trackChanges'),_0x4614ae['enableCommand']('acceptSuggestion'),_0x4614ae['enableCommand']('discardSuggestion'),_0x4614ae['enableCommand']('acceptAllSuggestions'),_0x4614ae['enableCommand']('discardAllSuggestions'),_0x4614ae['enableCommand']('acceptSelectedSuggestions'),_0x4614ae['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4db285{static get['requires'](){return[_0x3fc02e];}['init'](){const _0x290a9c=this['editor'],_0x271b40=_0x290a9c['plugins']['get']('TrackChangesEditing');_0x271b40['enableCommand']('shiftEnter'),_0x290a9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x290a9c),{'priority':'high'}),_0x290a9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x290a9c),{'priority':'high'}),_0x290a9c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x846673,_0x5be72f,_0x49dbb3)=>{_0x49dbb3['options']['showSuggestionHighlights']&&ge(_0x290a9c,{'showActiveMarker':!0x1})(_0x846673,_0x5be72f,_0x49dbb3);}),_0x271b40['descriptionFactory']['registerElementLabel']('softBreak',_0x46309a=>o(_0x290a9c['locale'],'ELEMENT_LINE_BREAK',_0x46309a));}}function ge(_0x138dc8,{showActiveMarker:_0xcaa49b=!0x0}={}){return(_0x13bef5,_0x517ad4,_0x398b58)=>{const _0x126c31=_0x138dc8['plugins']['get']('TrackChangesEditing');if(!_0x398b58['consumable']['test'](_0x517ad4['markerRange'],_0x13bef5['name']))return;const _0x4380f3=_0x138dc8['model'];for(const _0x429a17 of _0x517ad4['markerRange']['getItems']()){if(!_0x429a17['is']('element','softBreak'))continue;const _0x3c2d34='deletion'==_0x517ad4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x29b354}=_0x126c31['_splitMarkerName'](_0x517ad4['markerName']),_0x5590e6=_0x398b58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c2d34,'data-author-id':_0x29b354}),_0x246a0f=_0x398b58['mapper']['toViewPosition'](_0x4380f3['createPositionBefore'](_0x429a17));_0xcaa49b&&_0x126c31['activeMarkers']['includes'](_0x517ad4['markerName'])&&_0x398b58['writer']['addClass']('ck-suggestion-marker--active',_0x5590e6),_0x398b58['writer']['insert'](_0x246a0f,_0x5590e6),_0x398b58['mapper']['bindElementToMarker'](_0x5590e6,_0x517ad4['markerName']);}};}class St extends _0x4db285{['afterInit'](){const _0x2bcc03=this['editor'],_0x105bdb=_0x2bcc03['model'],_0x120989=_0x2bcc03['locale'];if(!_0x2bcc03['plugins']['has']('StandardEditingModeEditing'))return;const _0x17b61b=_0x2bcc03['plugins']['get']('TrackChangesEditing'),_0x2b1bf9='restrictedEditingException',_0x1e868e=_0x2bcc03['commands']['get'](_0x2b1bf9);_0x17b61b['enableCommand'](_0x2b1bf9,(_0x2ac98e,_0x35014f={})=>{const _0x19c492=_0x105bdb['document']['selection'];if(_0x19c492['isCollapsed'])return void _0x2ac98e(_0x35014f);const _0x5d63b1=void 0x0!==_0x35014f['forceValue']?_0x35014f['forceValue']:!_0x1e868e['value'];_0x105bdb['change'](()=>{const _0x42d63b=Array['from'](_0x19c492['getRanges']());for(const _0x5082d6 of _0x42d63b){const _0xc8ef4e=_0x5d63b1?[_0x5082d6]:io(_0x2b1bf9,_0x5082d6,_0x105bdb);for(const _0x49a7f4 of _0xc8ef4e)_0x17b61b['markInlineFormat'](_0x49a7f4,{'commandName':_0x2b1bf9,'commandParams':[{'forceValue':_0x5d63b1}]});}});}),_0x17b61b['descriptionFactory']['registerDescriptionCallback'](_0x14f577=>{if('formatBlock'!=_0x14f577['type']&&'formatInline'!=_0x14f577['type'])return;const {data:_0x3ef87e}=_0x14f577;return _0x3ef87e&&_0x3ef87e['commandName']==_0x2b1bf9?_0x3ef87e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x120989,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x120989,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4db285{['afterInit'](){const _0x21796e=this['editor'];if(!_0x21796e['plugins']['has']('Style')||!_0x21796e['plugins']['has']('DataSchema'))return;const _0x3222d1=_0x21796e['plugins']['get']('TrackChangesEditing'),_0x1d462c=_0x21796e['locale'],_0x5606ed=_0x21796e['config']['get']('style')||{},_0x12ca0f=_0x21796e['plugins']['get']('GeneralHtmlSupport'),_0x1d2132=_0x21796e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x21796e['plugins']['get']('DataSchema'),_0x5606ed['definitions']);_0x3222d1['enableDefaultAttributesIntegration']('style');const _0x57307c=new Set();for(const _0x51bffa of _0x1d2132['block']){const _0x31d345=_0x12ca0f['getGhsAttributeNameForElement'](_0x51bffa['element']);_0x57307c['add'](_0x31d345);}const _0x32c643=new Set();for(const _0x3b6568 of _0x1d2132['inline']){const _0x1ab6f2=_0x12ca0f['getGhsAttributeNameForElement'](_0x3b6568['element']);_0x32c643['add'](_0x1ab6f2);for(const _0x5cc823 of _0x3b6568['ghsAttributes'])_0x32c643['add'](_0x5cc823);}for(const _0x42aaf5 of _0x57307c)_0x3222d1['registerBlockAttribute'](_0x42aaf5),_0x3222d1['descriptionFactory']['registerAttributeLabel'](_0x42aaf5,o(_0x1d462c,'FORMAT_STYLE'));for(const _0x3d01db of _0x32c643)_0x3222d1['registerInlineAttribute'](_0x3d01db),_0x3222d1['descriptionFactory']['registerAttributeLabel'](_0x3d01db,o(_0x1d462c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d265f=this['editor'],_0x38653a=_0x6d265f['locale'];_0x6d265f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56276b=>{if('formatBlock'!=_0x56276b['type']&&'formatInline'!=_0x56276b['type'])return;const {data:_0x48a8c2}=_0x56276b;return _0x48a8c2&&'style'===_0x48a8c2['commandName']?_0x48a8c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38653a,'*Set\x20format:*\x20%0',_0x48a8c2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x38653a,'*Remove\x20format:*\x20%0',_0x48a8c2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4db285{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x48cb9f){super(_0x48cb9f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x78203c=this['editor'],_0x173293=_0x78203c['model']['document']['selection'];if(!_0x78203c['plugins']['has']('TableEditing'))return;const _0x3a7279=_0x78203c['locale'],_0x15fb2f=_0x78203c['plugins']['get']('TrackChangesEditing'),_0x52de83=_0x78203c['plugins']['get']('TableUtils');_0x15fb2f['descriptionFactory']['registerElementLabel']('table',_0x22f648=>o(_0x3a7279,'ELEMENT_TABLE',_0x22f648)),this['_setupColumnsRowsFixing'](),_0x15fb2f['enableCommand']('insertTable'),_0x15fb2f['enableCommand']('selectTableRow'),_0x15fb2f['enableCommand']('selectTableColumn');for(const _0x569f8b of['insertTableRowAbove','insertTableRowBelow']){const _0x128d5b=_0x78203c['commands']['get'](_0x569f8b);_0x15fb2f['enableCommand'](_0x569f8b,_0x44ea6f=>{_0x78203c['model']['change'](_0x5ae01a=>{_0x44ea6f();const _0xa6f81a='above'===_0x128d5b['order'],_0x4f02aa=_0x52de83['getSelectionAffectedTableCells'](_0x173293),_0x5ec8c0=_0x52de83['getRowIndexes'](_0x4f02aa),_0x5840d3=_0xa6f81a?_0x5ec8c0['first']-0x1:_0x5ec8c0['last']+0x1,_0x4dafda=_0x4f02aa[0x0]['findAncestor']('table'),_0x2fa2fa=_0x52de83['createTableWalker'](_0x4dafda,{'startRow':_0x5840d3,'endRow':_0x5840d3}),_0x5aca2c=Array['from'](_0x2fa2fa)['map'](_0x3c7978=>_0x5ae01a['createRangeOn'](_0x3c7978['cell']));_0x15fb2f['markMultiRangeInsertion'](_0x5aca2c,'tableRow');});});}for(const _0x22e630 of['insertTableColumnLeft','insertTableColumnRight']){const _0x44702f=_0x78203c['commands']['get'](_0x22e630);_0x15fb2f['enableCommand'](_0x22e630,_0x441934=>{_0x78203c['model']['change'](_0x10d989=>{_0x441934();const _0x48a6f3='left'===_0x44702f['order'],_0x1659bf=_0x52de83['getSelectionAffectedTableCells'](_0x173293),_0x544b4f=_0x52de83['getColumnIndexes'](_0x1659bf),_0x3060b2=_0x48a6f3?_0x544b4f['first']-0x1:_0x544b4f['last']+0x1,_0x586a7f=_0x1659bf[0x0]['findAncestor']('table'),_0x456d0c=_0x52de83['createTableWalker'](_0x586a7f,{'startRow':0x0,'column':_0x3060b2,'includeAllSlots':!0x1}),_0x11b4d9=Array['from'](_0x456d0c)['map'](_0x465dd7=>_0x10d989['createRangeOn'](_0x465dd7['cell']));_0x15fb2f['markMultiRangeInsertion'](_0x11b4d9,'tableColumn');});});}for(const _0x2cb6f4 of['removeTableRow','removeTableColumn']){const _0xac1f84=_0x2cb6f4['substr'](0xb),_0x18edb5=_0xac1f84['toLowerCase'](),_0x5d7bf4=_0x18edb5['substr'](0x0,0x3)+'span',_0x5dedac='table'+_0xac1f84,_0x48990e='min'+_0xac1f84,_0xb01aea='max'+_0xac1f84;_0x15fb2f['enableCommand'](_0x2cb6f4,()=>{_0x78203c['model']['change'](_0xd30ea7=>{const _0x89bc91=_0x52de83['getSelectionAffectedTableCells'](_0x173293),_0x320c1d=_0x89bc91[0x0]['findAncestor']('table');let _0x3d8e0c;if('removeTableRow'==_0x2cb6f4){const _0x585e82=_0x52de83['getRowIndexes'](_0x89bc91);_0x3d8e0c={'startRow':_0x585e82['first'],'endRow':_0x585e82['last'],'includeAllSlots':!0x0};}else{const _0x4e212b=_0x52de83['getColumnIndexes'](_0x89bc91);_0x3d8e0c={'startColumn':_0x4e212b['first'],'endColumn':_0x4e212b['last'],'includeAllSlots':!0x0};}const _0x190d0c=_0x52de83['createTableWalker'](_0x320c1d,_0x3d8e0c),_0xfcd833=Array['from'](_0x190d0c)['map'](({cell:_0x390253})=>_0x390253),_0x139766=be(_0xfcd833['filter'](_0x3a9729=>_0x3a9729['hasAttribute'](_0x5d7bf4))),_0x18d41a=be(_0xfcd833['filter'](_0x4a1063=>!_0x4a1063['hasAttribute'](_0x5d7bf4)))['map'](_0x55e93b=>_0xd30ea7['createRangeOn'](_0x55e93b)),_0x593cc6=_0x15fb2f['markMultiRangeDeletion'](_0x18d41a,_0x5dedac);if(_0x593cc6&&('tableRow'==_0x593cc6['subType']||'tableColumn'==_0x593cc6['subType'])){const _0xec5eb3=this['_getSuggestionCoords'](_0x593cc6);for(const _0x2d7f32 of _0x139766){const _0xe98ee1=_0xd30ea7['createRangeOn'](_0x2d7f32),_0x447ece=_0x52de83['getCellLocation'](_0x2d7f32),_0x5daa80=_0x2d7f32['getAttribute'](_0x5d7bf4)-0x1,_0x50066f=_0xec5eb3[_0x48990e],_0x4d4c0b=_0xec5eb3[_0xb01aea];_0x50066f<=_0x447ece[_0x18edb5]&&_0x447ece[_0x18edb5]+_0x5daa80<=_0x4d4c0b&&_0x593cc6['addRange'](_0xe98ee1);}}});});}function _0x1e2ed9(_0x1e6db6){const _0x1e2079=Array['from'](_0x173293['getRanges']())['map'](_0xd08dee=>_0x52a99c['fromRange'](_0xd08dee));_0x78203c['model']['change'](_0xadb89b=>{const _0x9ad7cc=_0xadb89b['batch'];_0x1e6db6=_0x1e6db6['filter'](_0x5e0e60=>'$graveyard'!=_0x5e0e60['root']['rootName']),_0xadb89b['setSelection'](_0x1e6db6),_0x78203c['commands']['get']('removeTableRow')['refresh'](),_0x78203c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x78203c['model']['enqueueChange'](()=>{_0x78203c['model']['enqueueChange'](_0x9ad7cc,_0x3f9cb1=>{const _0x38e537=_0x1e2079['filter'](_0x142a17=>'$graveyard'!=_0x142a17['root']['rootName']);_0x38e537['length']>0x0&&_0x3f9cb1['setSelection'](_0x38e537);for(const _0x4e5db0 of _0x1e2079)_0x4e5db0['detach']();});});});}function _0x512884(_0x1fabe6){_0x78203c['model']['change'](_0x4dee3f=>{const _0x283427=Array['from'](_0x173293['getRanges']())['map'](_0x5ed276=>_0x52a99c['fromRange'](_0x5ed276)),_0x3e533d=[];for(const _0x4499a9 of _0x1fabe6)for(const _0x14a017 of _0x4499a9['getItems']({'shallow':!0x0}))_0x3e533d['push'](_0x14a017);for(const _0x3861fc of _0x3e533d)'$graveyard'!=_0x3861fc['root']['rootName']&&(_0x4dee3f['setSelection'](_0x4dee3f['createPositionAt'](_0x3861fc,0x0)),_0x78203c['commands']['get']('removeTableColumn')['refresh'](),_0x78203c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3ce1a1=_0x283427['filter'](_0x334635=>'$graveyard'!=_0x334635['root']['rootName']);_0x3ce1a1['length']>0x0&&_0x4dee3f['setSelection'](_0x3ce1a1);for(const _0xab0623 of _0x283427)_0xab0623['detach']();});}function _0x568318(_0x40343f,_0x39d0a8){return _0x39d0a8['every'](_0x3667b5=>_0x40343f['some'](_0x232212=>_0x232212['end']['isEqual'](_0x3667b5['start'])||_0x3667b5['end']['isEqual'](_0x232212['start'])));}function _0x582ece(_0x52debc,_0xdaa1c0){return!_0x52debc['some'](_0x1a1715=>_0xdaa1c0['some'](_0x2073eb=>_0x1a1715['isIntersecting'](_0x2073eb)))&&_0x52debc['some'](_0x47828d=>_0xdaa1c0['some'](_0x330b3a=>_0x47828d['end']['isTouching'](_0x330b3a['start'])));}_0x78203c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x416797,_0xf6f2ff,_0x585dc7)=>{if(!_0x585dc7['options']['showSuggestionHighlights'])return;const _0x19017f=_0xf6f2ff['item'];if(!_0x19017f)return;const _0x384de7=_0x585dc7['mapper']['toViewElement'](_0x19017f);function _0x4b5b1c(_0x14d88f){return Array['isArray'](_0x14d88f)?_0x14d88f:[_0x14d88f];}_0x384de7&&'tableCell'===_0x19017f['name']&&_0x519e3d(_0x384de7,_0x585dc7['writer'],(_0x4f6dfa,_0x3b3d6e,_0x1f7921)=>_0x1f7921['addClass'](_0x4b5b1c(_0x3b3d6e['classes']),_0x4f6dfa),(_0x51040a,_0x41329b,_0x99cfbe)=>_0x99cfbe['removeClass'](_0x4b5b1c(_0x41329b['classes']),_0x51040a));},{'priority':'highest'}),_0x15fb2f['descriptionFactory']['registerDescriptionCallback'](_0x5bf552=>{if('insertion'!=_0x5bf552['type']&&'deletion'!=_0x5bf552['type'])return;const _0x303b86=_0x5bf552['getContainedElement']();if(null!=_0x303b86&&_0x303b86['is']('element','table')){if('insertion'==_0x5bf552['type']){const _0x245c20=_0x5bf552['getItems']()['filter'](_0x253dd2=>_0x253dd2['is']('$textProxy'))['map'](_0x430ac7=>_0x430ac7['data']);if(_0x245c20['length'])return{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x245c20['join']('\x20')+'\x22'))};}if('deletion'==_0x5bf552['type']){const _0x9b650a=_0x5bf552['getItems']()['filter'](_0x4a1ad0=>_0x4a1ad0['is']('$textProxy'))['map'](_0x26ed69=>_0x26ed69['data']);if(_0x9b650a['length'])return{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9b650a['join']('\x20')+'\x22'))};}}}),_0x15fb2f['descriptionFactory']['registerDescriptionCallback'](_0x172326=>{if('tableRow'==_0x172326['subType']){const _0x31390d=_0x172326['getItems']()['filter'](_0x5bd13b=>_0x5bd13b['is']('$textProxy'))['map'](_0x37100c=>_0x37100c['data']),_0x3afaf1=this['_getSuggestionCoords'](_0x172326),_0x915b4d=_0x3afaf1['maxRow']-_0x3afaf1['minRow']+0x1;if('insertion'==_0x172326['type'])return _0x31390d['length']?{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x915b4d,'\x22'+_0x31390d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW',_0x915b4d))};if('deletion'==_0x172326['type'])return _0x31390d['length']?{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x915b4d,'\x22'+_0x31390d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_ROW',_0x915b4d))};}if('tableColumn'==_0x172326['subType']){const _0xf8bfcc=_0x172326['getItems']()['filter'](_0x4ef420=>_0x4ef420['is']('$textProxy'))['map'](_0x38f550=>_0x38f550['data']),_0x33c272=this['_getSuggestionCoords'](_0x172326),_0x1acfce=_0x33c272['maxColumn']-_0x33c272['minColumn']+0x1;if('insertion'==_0x172326['type'])return _0xf8bfcc['length']?{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1acfce,'\x22'+_0xf8bfcc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a7279,'*Insert:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN',_0x1acfce))};if('deletion'==_0x172326['type'])return _0xf8bfcc['length']?{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1acfce,'\x22'+_0xf8bfcc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a7279,'*Remove:*\x20%0',o(_0x3a7279,'ELEMENT_TABLE_COLUMN',_0x1acfce))};}}),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e2ed9),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e2ed9),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x512884),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x512884),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x568318),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x568318),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x582ece),_0x15fb2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x582ece);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c9517=this['editor'],_0x15386b=_0x3c9517['model']['document']['selection'];return(_0x1cc2f0,_0xc2b534)=>{_0x3c9517['model']['change'](_0x47b1e3=>{const {commandName:_0x34555b,commandParams:_0x2e1fc8}=_0xc2b534;let _0x2a147f=_0x1cc2f0[0x0]['end']['nodeBefore'];_0x2e1fc8&&_0x2e1fc8[0x0]&&!0x1===_0x2e1fc8[0x0]['forceValue']&&(_0x2a147f=_0x1cc2f0[0x0]['start']['nodeAfter']);const _0x474652=_0x47b1e3['createRangeIn'](_0x2a147f);if('$graveyard'==_0x474652['root']['rootName'])return;const _0x18cdb9=Array['from'](_0x15386b['getRanges']())['map'](_0x588094=>_0x52a99c['fromRange'](_0x588094));_0x47b1e3['setSelection'](_0x474652),_0x3c9517['commands']['get'](_0x34555b)['refresh'](),_0x2e1fc8['push']({'forceDefaultExecution':!0x0}),_0x3c9517['execute'](_0x34555b,..._0x2e1fc8);const _0x4c5974=_0x18cdb9['filter'](_0x37c527=>'$graveyard'!=_0x37c527['root']['rootName']);_0x4c5974['length']>0x0&&_0x47b1e3['setSelection'](_0x4c5974);for(const _0x86506c of _0x18cdb9)_0x86506c['detach']();});};}['_getCoordsForCells'](_0x3d1937){const _0x4d9d34=this['editor']['plugins']['get']('TableUtils');let _0x1009a2=Number['MAX_SAFE_INTEGER'],_0x55be1f=Number['MIN_SAFE_INTEGER'],_0x56d42d=Number['MAX_SAFE_INTEGER'],_0x34dbfc=Number['MIN_SAFE_INTEGER'];for(const _0x5d621c of _0x3d1937){if('$graveyard'==_0x5d621c['root']['rootName'])continue;const {row:_0x255737,column:_0x5b030b}=_0x4d9d34['getCellLocation'](_0x5d621c),_0x22b7fe=_0x5d621c['hasAttribute']('rowspan')?_0x5d621c['getAttribute']('rowspan')-0x1:0x0,_0x2f5c93=_0x5d621c['hasAttribute']('colspan')?_0x5d621c['getAttribute']('colspan')-0x1:0x0;_0x1009a2=_0x255737<_0x1009a2?_0x255737:_0x1009a2,_0x55be1f=_0x255737+_0x22b7fe>_0x55be1f?_0x255737+_0x22b7fe:_0x55be1f,_0x56d42d=_0x5b030b<_0x56d42d?_0x5b030b:_0x56d42d,_0x34dbfc=_0x5b030b+_0x2f5c93>_0x34dbfc?_0x5b030b+_0x2f5c93:_0x34dbfc;}return{'minRow':_0x1009a2,'maxRow':_0x55be1f,'minColumn':_0x56d42d,'maxColumn':_0x34dbfc};}['_setupColumnsRowsFixing'](){const _0x5826e2=this['editor'],_0x3955e2=_0x5826e2['plugins']['get']('TrackChangesEditing'),_0x407645=_0x5826e2['plugins']['get']('TableUtils');_0x5826e2['model']['document']['on']('change:data',()=>{const _0x25d64d=Array['from'](_0x5826e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bd0eb,data:_0x23180a}of _0x25d64d){const {group:_0x46ce94,id:_0x341f81,subType:_0x21c605}=_0x3955e2['_splitMarkerName'](_0x4bd0eb);if('suggestion'!=_0x46ce94)continue;if(null!=_0x23180a['oldRange'])continue;const _0x9f7216=_0x3955e2['getSuggestion'](_0x341f81);this['_tablePostFixingSubtypes']['includes'](_0x21c605)&&this['_tableSuggestions']['add'](_0x9f7216);}},{'priority':'low'});const _0x37dd28=(_0x36d325,_0x405940)=>{let _0x49c696=!0x1;const _0x23dcb7=_0x405940['createRangeOn'](_0x36d325),_0xd06d39=_0x36d325['findAncestor']('table'),_0x3f4aa4=_0x407645['getCellLocation'](_0x36d325);for(const _0x37ec8f of this['_tableSuggestions']){const _0xeaa8a2=_0x37ec8f['subType'],_0x528266=_0xeaa8a2['startsWith']('tablePaste'),_0x312e98=_0xeaa8a2['substr'](_0x528266?0xa:0x5),_0x4f4e06=_0x312e98['toLowerCase'](),_0x6bf834=_0x4f4e06['substr'](0x0,0x3)+'span',_0x2804a8='min'+_0x312e98,_0x69f575='max'+_0x312e98;if(!_0x37ec8f['isInContent'])continue;if(_0xd06d39!=_0x37ec8f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x37ec8f['isIntersectingWithRange'](_0x23dcb7))continue;const _0x5b46c4=_0x36d325['hasAttribute'](_0x6bf834)?_0x36d325['getAttribute'](_0x6bf834)-0x1:0x0,_0x3a6fb3=this['_getSuggestionCoords'](_0x37ec8f),_0x277469=_0x3a6fb3[_0x2804a8],_0x356560=_0x3a6fb3[_0x69f575];_0x277469<=_0x3f4aa4[_0x4f4e06]&&_0x3f4aa4[_0x4f4e06]+_0x5b46c4<=_0x356560&&(_0x37ec8f['addRange'](_0x23dcb7),_0x49c696=!0x0);}return _0x49c696;};_0x5826e2['model']['document']['registerPostFixer'](_0x861efe=>{let _0x46aa38=!0x1;for(const _0x44969a of _0x5826e2['model']['document']['differ']['getChanges']())if('insert'==_0x44969a['type']){if('tableRow'==_0x44969a['name']){for(const _0x220507 of _0x44969a['position']['nodeAfter']['getChildren']())_0x46aa38=_0x46aa38||_0x37dd28(_0x220507,_0x861efe);}else'tableCell'==_0x44969a['name']&&(_0x46aa38=_0x46aa38||_0x37dd28(_0x44969a['position']['nodeAfter'],_0x861efe));}return _0x46aa38;});}['_getSuggestionCoords'](_0x44578e){return this['_getCoordsForCells'](_0x44578e['getRanges']()['map'](_0x1177d8=>_0x1177d8['start']['nodeAfter']));}}function be(_0x104b03){return Array['from'](new Set(_0x104b03)['values']());}class vt extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x28a0cf=this['editor'],_0x97e606=_0x28a0cf['model']['document']['selection'],_0x3acb04=_0x28a0cf['locale'];if(!_0x28a0cf['plugins']['has']('TableEditing'))return;const _0x51147b=_0x28a0cf['plugins']['get']('TrackChangesEditing'),_0x47ff8a=_0x28a0cf['plugins']['get']('TableUtils'),_0x42de4f=_0x28a0cf['plugins']['get'](It);_0x42de4f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51147b['enableCommand']('mergeTableCells',()=>{const _0x29741a=_0x47ff8a['getSelectionAffectedTableCells'](_0x28a0cf['model']['document']['selection']);_0x28a0cf['model']['change'](()=>{_0x51147b['markMultiRangeBlockFormat'](_0x29741a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x28a0cf['commands']['get']('mergeTableCells')['on']('execute',(_0x25dd3a,_0x33efec)=>{_0x28a0cf['commands']['get']('trackChanges')['value']&&(_0x33efec['length']>0x0&&_0x33efec[_0x33efec['length']-0x1]&&_0x33efec[_0x33efec['length']-0x1]['forceDefaultExecution']||_0x51147b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x25dd3a['stop']());},{'priority':'highest'});for(const _0x1940d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x212c8c=_0x28a0cf['commands']['get'](_0x1940d1);_0x51147b['enableCommand'](_0x1940d1,()=>{const _0x32a195=_0x28a0cf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x71932d=>_0x71932d['is']('element','tableCell')),_0x27da21=_0x212c8c['value'];_0x28a0cf['model']['change'](()=>{_0x51147b['markMultiRangeBlockFormat']([_0x32a195,_0x27da21],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1270a1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x407b7d=_0x28a0cf['commands']['get'](_0x1270a1);_0x51147b['enableCommand'](_0x1270a1,()=>{const _0x15d682=_0x47ff8a['getSelectionAffectedTableCells'](_0x28a0cf['model']['document']['selection'])[0x0],_0x78750b=_0x15d682['findAncestor']('table'),{column:_0x651de7,row:_0x2ccf79}=_0x47ff8a['getCellLocation'](_0x15d682);let _0x1c5427=[];if('horizontally'==_0x407b7d['direction']){const _0x4baba1=_0x47ff8a['createTableWalker'](_0x78750b,{'startRow':_0x2ccf79,'endRow':_0x2ccf79,'includeAllSlots':!0x0});_0x1c5427=Array['from'](_0x4baba1)['map'](_0x41d567=>_0x41d567['cell']);}else{const _0x48ab0b=_0x47ff8a['createTableWalker'](_0x78750b,{'column':_0x651de7,'includeAllSlots':!0x0});_0x1c5427=Array['from'](_0x48ab0b)['map'](_0x2a2f15=>_0x2a2f15['cell']);}_0x28a0cf['model']['change'](_0x16d357=>{_0x51147b['markBlockFormat'](_0x16d357['createRangeOn'](_0x15d682),{'commandName':_0x1270a1,'commandParams':[]},_0x1c5427,_0x1270a1);});});}_0x51147b['descriptionFactory']['registerDescriptionCallback'](_0x582f26=>{if('formatBlock'!=_0x582f26['type']&&'formatInline'!=_0x582f26['type'])return;const {data:_0xe8aa86}=_0x582f26;return _0xe8aa86&&'mergeTableCells'==_0xe8aa86['commandName']?{'type':'format','content':o(_0x3acb04,'*Merge\x20cells*')}:void 0x0;}),_0x51147b['descriptionFactory']['registerDescriptionCallback'](_0x1aff91=>{if('formatBlock'!=_0x1aff91['type']&&'formatInline'!=_0x1aff91['type'])return;const {data:_0x1f7893}=_0x1aff91;return _0x1f7893?'splitTableCellVertically'==_0x1f7893['commandName']?{'type':'format','content':o(_0x3acb04,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1f7893['commandName']?{'type':'format','content':o(_0x3acb04,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa789f3=_0x42de4f['_acceptFormatSuggestionCallbackFactory']();for(const _0x5e332d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51147b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e332d,'accept',_0xa789f3);for(const _0x67c6af of['splitTableCellVertically','splitTableCellHorizontally'])_0x51147b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x67c6af,'accept',_0xa789f3);_0x51147b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xa90772=>{_0x28a0cf['model']['change'](_0x2a1f49=>{const _0x225d32=Array['from'](_0x97e606['getRanges']())['map'](_0x5991bd=>_0x52a99c['fromRange'](_0x5991bd));_0x2a1f49['setSelection'](_0xa90772),_0x28a0cf['commands']['get']('mergeTableCells')['refresh'](),_0x28a0cf['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x502fa4=_0x225d32['filter'](_0x237ef7=>'$graveyard'!=_0x237ef7['root']['rootName']);_0x502fa4['length']>0x0&&_0x2a1f49['setSelection'](_0x502fa4);for(const _0x2b9f96 of _0x225d32)_0x2b9f96['detach']();});});for(const _0x4235ea of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56ce00=_0x28a0cf['commands']['get'](_0x4235ea);_0x56ce00['on']('set:isEnabled',(_0x22e961,_0x4143cb,_0x282a7b)=>{if(_0x282a7b){const _0x2dbd3e=_0x28a0cf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38651d=>_0x38651d['is']('element','tableCell'));this['_areMergableCells'](_0x56ce00['value'],_0x2dbd3e)||(_0x22e961['return']=!0x1,_0x22e961['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xa6fca5=this['editor']['commands']['get']('mergeTableCells'),_0x2ded25=this['editor']['plugins']['get']('TableUtils');if(!_0xa6fca5['isEnabled'])return!0x1;const _0x3fd61f=_0x2ded25['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x551cfe of _0x3fd61f)for(const _0x3e7277 of _0x3fd61f)if(_0x551cfe!=_0x3e7277&&!this['_areMergableCells'](_0x551cfe,_0x3e7277))return!0x1;return!0x0;}['_areMergableCells'](_0x2241a8,_0x3a752f){const _0x30273f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32cb77=this['editor']['model']['createRangeOn'](_0x2241a8),_0x5895a4=this['editor']['model']['createRangeOn'](_0x3a752f),_0xe9aac0=new Set(),_0x246bef=new Set();for(const _0x2faecf of _0x30273f['getSuggestions']())if(('insertion'==_0x2faecf['type']||'deletion'==_0x2faecf['type']||'mergeTableCells'==_0x2faecf['subType'])&&_0x2faecf['isInContent']){for(const _0x545e23 of _0x2faecf['getRanges']())_0x545e23['containsRange'](_0x32cb77,!0x0)&&_0xe9aac0['add'](_0x2faecf['type']+':'+_0x2faecf['author']['id']),_0x545e23['containsRange'](_0x5895a4,!0x0)&&_0x246bef['add'](_0x2faecf['type']+':'+_0x2faecf['author']['id']);}if(_0xe9aac0['size']!=_0x246bef['size'])return!0x1;for(const _0x29974d of _0xe9aac0)if(!_0x246bef['has'](_0x29974d))return!0x1;return!0x0;}}class Ct extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x47da2b=this['editor'];if(!_0x47da2b['plugins']['has']('TableEditing'))return;const _0x1bf5e6=_0x47da2b['locale'],_0x29465e=_0x47da2b['plugins']['get']('TrackChangesEditing');_0x29465e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x29465e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x29465e['registerBlockAttribute']('headingRows'),_0x29465e['registerBlockAttribute']('headingColumns'),_0x29465e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1bf5e6,'FORMAT_HEADER_ROW')),_0x29465e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1bf5e6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8b16f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce501e=this['editor']['plugins']['get']('TableUtils'),_0x59e730=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x495d17({showActiveMarker:_0x65c14=!0x0,setDataAttribute:_0x13ad72=!0x0}={}){return(_0x38c196,_0x478c76,_0x34a4b6)=>{const {type:_0x4e8ec5,id:_0x1481ed}=_0x8b16f4['_splitMarkerName'](_0x478c76['markerName']),_0x46d120=_0x8b16f4['getSuggestion'](_0x1481ed),_0x42ef56=_0x46d120['data'];if('formatBlock'!=_0x46d120['type']||!_0x42ef56||'setTableColumnHeader'!=_0x42ef56['commandName'])return;if(_0x478c76['item'])return void _0x38c196['stop']();if(!_0x34a4b6['consumable']['consume'](_0x478c76['markerRange'],_0x38c196['name']))return;const _0x34db3a=_0x478c76['markerRange']['start']['nodeAfter'],_0x46ea9f=_0x478c76['markerRange']['end']['nodeBefore'],_0x5054ef=_0x34db3a['parent']['parent'],{column:_0x5840fc}=_0xce501e['getCellLocation'](_0x34db3a),{column:_0x104d6a}=_0xce501e['getCellLocation'](_0x46ea9f);for(let _0xeaffcb=_0x5840fc;_0xeaffcb<=_0x104d6a;_0xeaffcb++){const _0x155ef6=_0xce501e['createTableWalker'](_0x5054ef,{'column':_0xeaffcb,'includeAllSlots':!0x1});for(const _0x167555 of _0x155ef6){const _0x4337f2=_0x167555['cell'],_0x108c73=_0x34a4b6['mapper']['toViewElement'](_0x4337f2);_0x34a4b6['writer']['addClass']('ck-suggestion-marker-'+_0x4e8ec5,_0x108c73),_0x13ad72&&_0x34a4b6['writer']['setAttribute']('data-suggestion',_0x1481ed,_0x108c73),_0x34a4b6['mapper']['bindElementToMarker'](_0x108c73,_0x478c76['markerName']),_0x65c14&&(_0x8b16f4['activeMarkers']['includes'](_0x478c76['markerName'])?_0x34a4b6['writer']['addClass']('ck-suggestion-marker--active',_0x108c73):_0x34a4b6['writer']['removeClass']('ck-suggestion-marker--active',_0x108c73));}}};}_0x8b16f4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x59e730),_0x8b16f4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x59e730),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x495d17(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x195a8a,_0x33445e,_0x460f05)=>{_0x460f05['options']['showSuggestionHighlights']&&_0x495d17({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x195a8a,_0x33445e,_0x460f05);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4afdda,_0x44571d,_0x1c4a36)=>{const {type:_0x1ef154,id:_0xeaebed}=_0x8b16f4['_splitMarkerName'](_0x44571d['markerName']),_0x473ef9=_0x8b16f4['getSuggestion'](_0xeaebed),_0x4e4ccd=_0x473ef9['data'];if('formatBlock'!=_0x473ef9['type']||!_0x4e4ccd||'setTableColumnHeader'!=_0x4e4ccd['commandName'])return;const _0x71b6cf=_0x1c4a36['mapper']['markerNameToElements'](_0x44571d['markerName']);if(_0x71b6cf){for(const _0xb07239 of _0x71b6cf)_0x1c4a36['writer']['removeClass']('ck-suggestion-marker-'+_0x1ef154,_0xb07239),_0x1c4a36['writer']['removeClass']('ck-suggestion-marker--active',_0xb07239),_0x1c4a36['writer']['removeAttribute']('data-suggestion',_0xb07239),_0x1c4a36['mapper']['unbindElementFromMarkerName'](_0xb07239,_0x44571d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b747a=this['editor'],_0x29d4d0=_0x3b747a['locale'];function _0x17ae7c(_0x582912){return{'type':'format','content':o(_0x29d4d0,'*Format:*\x20%0',_0x582912)};}_0x3b747a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x348b23=>{if('formatBlock'!=_0x348b23['type'])return;const {data:_0x2289c9}=_0x348b23;if(_0x2289c9){if('setTableRowHeader'==_0x2289c9['commandName']){const _0x1aed14=_0x2289c9['commandParams'][0x0]['forceValue'];return _0x17ae7c(o(_0x29d4d0,_0x1aed14?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2289c9['commandName']){const _0x1a403e=_0x2289c9['commandParams'][0x0]['forceValue'];return _0x17ae7c(o(_0x29d4d0,_0x1a403e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x231568=>[_0x231568,null]));class _t extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x184741=this['editor'];if(!_0x184741['plugins']['has']('TableClipboard'))return;const _0x271346=_0x184741['plugins']['get']('TrackChangesEditing'),_0x3c78cb=_0x184741['plugins']['get']('TableUtils'),_0x374bb7=_0x184741['plugins']['get'](It),_0x1aaa7e=_0x184741['plugins']['get']('TableClipboard');_0x374bb7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x184741['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x184741['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x26ab15=null;_0x184741['model']['on']('insertContent',(_0x25d234,_0x3768c3)=>{const [_0x19a5db,_0x2bc82e]=_0x3768c3,_0x1891d3=_0x3768c3[_0x3768c3['length']-0x1];_0x1891d3&&_0x1891d3['forceDefaultExecution']||_0x271346['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28167e,_0x337311,_0xbed8ba,_0x48c2f6,_0x34ff73){if(_0x337311&&!_0x337311['is']('documentSelection'))return!0x1;const _0x277d51=_0x34ff73['getTableIfOnlyTableInContent'](_0x28167e,_0xbed8ba);if(!_0x277d51||!Re(_0x277d51,void 0x0,_0x48c2f6))return!0x1;const _0xc4616=_0x48c2f6['getSelectionAffectedTableCells'](_0xbed8ba['document']['selection']);if(!_0xc4616['length'])return!0x1;const _0xa4e6f9=_0xc4616[0x0]['findAncestor']('table'),_0x969853=_0x48c2f6['getRowIndexes'](_0xc4616),_0x20d67a=_0x48c2f6['getColumnIndexes'](_0xc4616),_0x132ae2={'startRow':_0x969853['first'],'endRow':_0x969853['last'],'startColumn':_0x20d67a['first'],'endColumn':_0x20d67a['last']};return 0x1==_0xc4616['length']&&(_0x132ae2['endRow']+=_0x48c2f6['getRows'](_0x277d51)-0x1,_0x132ae2['endColumn']+=_0x48c2f6['getColumns'](_0x277d51)-0x1),Re(_0xa4e6f9,_0x132ae2,_0x48c2f6);}(_0x19a5db,_0x2bc82e,_0x184741['model'],_0x3c78cb,_0x1aaa7e)&&(_0x25d234['stop'](),_0x26ab15={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x184741['model']['change'](()=>{_0x184741['model']['insertContent'](_0x3768c3[0x0],_0x3768c3[0x1],_0x3768c3[0x2],{'forceDefaultExecution':!0x0});const _0x2642ee=_0x1d9854(),{rowInsertionRanges:_0x3eaa1a,columnInsertionRanges:_0x48511a,insertionRanges:_0x35d178,deletionRanges:_0x433d4d,cells:_0xd3e4ed}=_0x26ab15;_0x3eaa1a['length']&&_0x271346['markMultiRangeInsertion'](_0x3eaa1a,'tablePasteRow',{'tablePasteChainId':_0x2642ee}),_0x48511a['length']&&_0x271346['markMultiRangeInsertion'](_0x48511a,'tablePasteColumn',{'tablePasteChainId':_0x2642ee}),_0x35d178['length']&&(_0x271346['markMultiRangeInsertion'](_0x35d178,'tablePaste',{'tablePasteChainId':_0x2642ee,'skipNestingCheck':!0x0}),_0x35d178['forEach'](_0x5c5cab=>_0x5c5cab['detach']?.())),_0x433d4d['length']&&(_0x271346['markMultiRangeDeletion'](_0x433d4d,'tablePaste',{'tablePasteChainId':_0x2642ee,'skipNestingCheck':!0x0}),_0x433d4d['forEach'](_0x3ba79e=>_0x3ba79e['detach']?.()));const _0x262fdf=_0x271346['markMultiRangeBlockFormat'](_0xd3e4ed['map'](({element:_0x11ba04})=>_0x11ba04),{'formatGroupId':_0x1d9854()},[],'tablePasteCell',{'tablePasteChainId':_0x2642ee});if(_0x262fdf){const _0xe66d9d=_0x262fdf['getMarkers'](),_0x66e650=[];for(const {element:_0x4c2c0f,attributes:_0x207efb}of _0xd3e4ed){if(!_0x207efb)continue;const _0x3bb766=_0x184741['model']['createRangeOn'](_0x4c2c0f),_0x174d02=_0xe66d9d['find'](_0x451b10=>_0x451b10['getRange']()['isEqual'](_0x3bb766));_0x174d02&&_0x66e650['push']([_0x174d02['name'],_0x207efb]);}_0x66e650['length']&&_0x262fdf['setAttribute']('markerAttributes',Object['fromEntries'](_0x66e650));}_0x26ab15=null;}));},{'priority':_0xa03c08['high']+0xa}),_0x184741['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d9f49,_0x44a84a)=>{const [_0x286194,_0x316e11,,_0x336166]=_0x44a84a;if(!_0x26ab15)return;_0x3d9f49['stop']();const _0x1995f6=_0x286194['cell'],_0x374e1b=_0x316e11,_0x200dd1=ke(_0x1995f6),_0x1c05a3=ke(_0x374e1b);_0x3d9f49['return']=_0x1995f6;let _0x4ddeda=null,_0x4adf28=null;if(_0x1c05a3||_0x200dd1){if(_0x200dd1&&!_0x1c05a3){_0x336166['remove'](_0x1995f6['getChild'](0x0));for(const _0xf6a8c9 of Array['from'](_0x374e1b['getChildren']()))_0x336166['insert'](_0xf6a8c9,_0x1995f6,'end');const _0x4d16c5=_0x26ab15['rowInsertionIndexes']['includes'](_0x286194['row']),_0xfc4c9f=_0x26ab15['columnInsertionIndexes']['includes'](_0x286194['column']);_0x4d16c5||_0xfc4c9f||(_0x4ddeda=_0x52a99c['fromRange'](_0x336166['createRangeIn'](_0x1995f6)));}else _0x1c05a3&&!_0x200dd1&&(_0x4adf28=_0x336166['createRangeIn'](_0x1995f6));}else{const _0xfc48cc=_0x336166['createElement']('tableCellSuggestion'),_0x542461=_0x336166['createElement']('tableCellSuggestion');_0x336166['wrap'](_0x336166['createRangeIn'](_0x1995f6),_0x542461),_0x336166['insert'](_0xfc48cc,_0x1995f6,0x0);for(const _0x47fe34 of Array['from'](_0x374e1b['getChildren']()))_0x336166['insert'](_0x47fe34,_0xfc48cc,'end');_0x4ddeda=_0x52a99c['fromRange'](_0x336166['createRangeOn'](_0xfc48cc)),_0x4adf28=_0x52a99c['fromRange'](_0x336166['createRangeOn'](_0x542461));}const _0x3a3022=Array['from'](_0x374e1b['getAttributes']())['filter'](([_0x3a17e2])=>Pe['includes'](_0x3a17e2));_0x26ab15['cells']['push']({'element':_0x1995f6,'attributes':_0x3a3022['length']?Object['fromEntries'](_0x3a3022):null}),_0x4ddeda&&_0x26ab15['insertionRanges']['push'](_0x4ddeda),_0x4adf28&&_0x26ab15['deletionRanges']['push'](_0x4adf28);},{'priority':'high'}),_0x3c78cb['on']('insertColumns',(_0x23ab0f,_0x3a9fd5)=>{const [_0x110dcb,_0x9840bb={}]=_0x3a9fd5;if(!_0x26ab15)return;const _0x593271=_0x9840bb['at']||0x0,_0x4ff377=_0x9840bb['columns']||0x1;_0x26ab15['columnInsertionIndexes']=new Array(_0x4ff377)['fill'](_0x593271)['map']((_0x6b25d2,_0x1afe97)=>_0x6b25d2+_0x1afe97);for(const {cell:_0x4b77fc}of _0x3c78cb['createTableWalker'](_0x110dcb,{'startColumn':_0x593271,'endColumn':_0x593271+_0x4ff377-0x1}))_0x26ab15['columnInsertionRanges']['push'](_0x184741['model']['createRangeOn'](_0x4b77fc));},{'priority':'low'}),_0x3c78cb['on']('insertRows',(_0x9597a5,_0x2cf057)=>{const [_0x406c30,_0x41f820={}]=_0x2cf057;if(!_0x26ab15)return;const _0x572ffe=_0x41f820['at']||0x0,_0x4818b7=_0x41f820['rows']||0x1;_0x26ab15['rowInsertionIndexes']=new Array(_0x4818b7)['fill'](_0x572ffe)['map']((_0x5cb241,_0x286226)=>_0x5cb241+_0x286226);for(const {cell:_0x417e68}of _0x3c78cb['createTableWalker'](_0x406c30,{'startRow':_0x572ffe,'endRow':_0x572ffe+_0x4818b7-0x1}))_0x26ab15['rowInsertionRanges']['push'](_0x184741['model']['createRangeOn'](_0x417e68));},{'priority':'low'}),_0x271346['descriptionFactory']['registerDescriptionCallback'](_0x4c9cc4=>{if(_0x4c9cc4['subType']&&_0x4c9cc4['subType']['startsWith']('tablePaste'))return _0x4c9cc4['previous']?{}:{'type':'insertion','content':o(_0x184741['locale'],'*Replace\x20table\x20cells*')};});const _0x4a6154=()=>!0x1;for(const _0x40826b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x271346['_suggestionFactory']['registerCustomCallback']('insertion',_0x40826b,'join',_0x4a6154),_0x271346['_suggestionFactory']['registerCustomCallback']('deletion',_0x40826b,'join',_0x4a6154),_0x271346['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40826b,'join',_0x4a6154);_0x271346['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4a6154),_0x271346['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4bba5c,_0x3eb72e,_0xe74d59)=>{const _0x4bfc42=_0x4bba5c['map'](_0xee919d=>_0xee919d['getContainedElement']())['filter'](_0x5efbef=>_0x5efbef),_0x10fcc6=new Map(_0x4bfc42['map'](_0x421797=>[_0x421797,null]));if(_0x26ab15){for(const {element:_0x19d629,attributes:_0xaecb36}of _0x26ab15['cells'])_0xaecb36&&_0x10fcc6['set'](_0x19d629,_0xaecb36);}else{if(_0xe74d59&&_0xe74d59['markerAttributes'])for(const [_0x26861e,_0xc6edab]of Object['entries'](_0xe74d59['markerAttributes'])){const _0x146660=_0x184741['model']['markers']['get'](_0x26861e),_0x49008a=_0x146660?_0x146660['getRange']()['getContainedElement']():null;_0x49008a&&_0x10fcc6['set'](_0x49008a,_0xc6edab);}}_0x184741['model']['change'](_0x425a45=>{for(const [_0x1551a0,_0x52f7ef]of _0x10fcc6)_0x425a45['setAttributes']({...we,..._0x52f7ef},_0x1551a0);});});const _0x23e76c=(_0x4d0601,_0x498a5d)=>{_0x271346['_suggestionFactory']['registerCustomCallback'](_0x4d0601,'tablePaste',_0x498a5d,(_0x30b865,_0x39f6d8,_0x5be470)=>{_0x184741['model']['change'](_0x5f2e80=>{const _0x576fc3=[];for(const _0x54aef4 of _0x30b865){const _0x29f678=_0x54aef4['start']['nodeAfter'];_0x29f678['is']('element','tableCellSuggestion')&&_0x576fc3['push'](_0x29f678);}_0x271346['_suggestionFactory']['getSuggestionCallback'](_0x4d0601,null,_0x498a5d)(_0x30b865,_0x39f6d8,_0x5be470);for(const _0x352f22 of _0x576fc3)'$graveyard'!=_0x352f22['root']['rootName']&&_0x5f2e80['unwrap'](_0x352f22);});});};_0x23e76c('insertion','accept'),_0x23e76c('insertion','discard'),_0x23e76c('deletion','accept'),_0x23e76c('deletion','discard'),_0x271346['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22c3cf=>{const _0x51ca27=_0x22c3cf['map'](_0x1937bc=>_0x1937bc['getContainedElement']()),_0x47e24b=_0x51ca27[0x0]['findAncestor']('table'),{minRow:_0x468c44,maxRow:_0x545be6}=_0x374bb7['_getCoordsForCells'](_0x51ca27);_0x3c78cb['removeRows'](_0x47e24b,{'at':_0x468c44,'rows':_0x545be6-_0x468c44+0x1});}),_0x271346['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2b2de0=>{const _0x5782a9=_0x2b2de0['map'](_0x3ac24e=>_0x3ac24e['getContainedElement']()),_0x3e55d5=_0x5782a9[0x0]['findAncestor']('table'),{minColumn:_0x24e321,maxColumn:_0xa420b4}=_0x374bb7['_getCoordsForCells'](_0x5782a9);_0x3c78cb['removeColumns'](_0x3e55d5,{'at':_0x24e321,'columns':_0xa420b4-_0x24e321+0x1});});const _0x3b5c87=(_0x276afd,_0xa97e48)=>{if(!_0xa97e48['subType']||!_0xa97e48['subType']['startsWith']('tablePaste'))return;const _0x3a9076=_0xa97e48['attributes']['tablePasteChainId'],_0x3d55af=_0x271346['getSuggestions']()['filter'](_0x1abe45=>_0x1abe45['isInContent']&&_0x1abe45['attributes']&&_0x1abe45['attributes']['tablePasteChainId']==_0x3a9076);_0x3d55af['length']&&_0xa97e48['getAllAdjacentSuggestions']()['length']!=_0x3d55af['length']&&_0x3d55af['reduce']((_0xd52999,_0xeff0da)=>(_0xd52999['next']=_0xeff0da,_0xeff0da['previous']=_0xd52999,_0xeff0da));};function _0x565b30(_0x234047,_0x418bae=!0x0){const {id:_0x44f1b1,authorId:_0x1c68f2}=_0x271346['_splitMarkerName'](_0x234047['markerName']),_0x161661=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d88e7=_0x271346['activeMarkers']['includes'](_0x234047['markerName']);return _0x1d88e7&&_0x161661['push']('ck-suggestion-marker--active'),{'classes':_0x161661,'attributes':{'data-suggestion':_0x44f1b1,'data-author-id':_0x1c68f2},'priority':_0x1d88e7&&_0x418bae?0xbc2:0xbb8};}_0x271346['on']('suggestionLoaded',_0x3b5c87,{'priority':'high'}),_0x271346['on']('suggestionUnloaded',_0x3b5c87,{'priority':'high'}),_0x184741['model']['document']['registerPostFixer'](()=>{let _0x3afa6c=!0x1;const _0x232115=Array['from'](_0x184741['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25bb39,data:_0x15997c}of _0x232115){const {group:_0x54a306,type:_0x4e8535,id:_0x306b9f}=_0x271346['_splitMarkerName'](_0x25bb39);if('suggestion'!=_0x54a306||'deletion'!=_0x4e8535||_0x15997c['oldRange'])continue;if(!_0x271346['hasSuggestion'](_0x306b9f))continue;const _0xa7c944=_0x271346['getSuggestion'](_0x306b9f)['getRanges'](),_0x39883b=_0x184741['plugins']['get']('Users')['me'];for(const _0x46596b of _0x271346['getSuggestions']()){if(!_0x46596b['isInContent']||_0x46596b['author']!=_0x39883b)continue;if('formatBlock'!=_0x46596b['type']||'tablePasteCell'!=_0x46596b['subType'])continue;if(_0x46596b['getRanges']()['every'](_0x2a1812=>_0xa7c944['some'](_0x36176d=>_0x36176d['containsRange'](_0x2a1812,!0x0)))){for(const _0xaad244 of _0x46596b['getAllAdjacentSuggestions']())_0xaad244['isInContent']&&(_0xaad244['discard'](),_0x3afa6c=!0x0);}}}return _0x3afa6c;}),_0x184741['model']['document']['registerPostFixer'](_0x4d9e7e=>{const _0x5533a3=_0x184741['commands']['get']('redo');if(!_0x5533a3||!_0x5533a3['_createdBatches']['has'](_0x4d9e7e['batch']))return!0x1;let _0x333df8=!0x1;const _0x4bd8f8=_0x184741['plugins']['get']('Users')['me'],_0x2a78c8=_0x184741['model']['document']['differ']['getChanges'](),_0x458d23=Array['from'](_0x184741['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2ab9a3,data:_0x38f608})=>{const {group:_0x192b83,subType:_0x433b8f,authorId:_0x317efb}=_0x271346['_splitMarkerName'](_0x2ab9a3);return'suggestion'==_0x192b83&&'tablePaste'==_0x433b8f&&_0x317efb==_0x4bd8f8['id']&&!_0x38f608['oldRange'];});for(const _0x40a95d of _0x2a78c8){if('insert'!=_0x40a95d['type']||'tableCellSuggestion'!=_0x40a95d['name']||0x1!=_0x40a95d['length'])continue;const _0x2d90cd=_0x4d9e7e['createRange'](_0x40a95d['position'],_0x40a95d['position']['getShiftedBy'](0x1));if(!_0x458d23['find'](({data:_0x32bac4})=>_0x32bac4['newRange']['isEqual'](_0x2d90cd))){for(const {name:_0x13d013,data:_0x5828c5}of _0x458d23)if(_0x2d90cd['containsRange'](_0x5828c5['newRange'])){_0x4d9e7e['updateMarker'](_0x13d013,{'range':_0x2d90cd}),_0x333df8=!0x0;break;}}}return _0x333df8;}),_0x184741['model']['document']['registerPostFixer'](_0x19ef04=>{let _0x3bb873=!0x1;const _0x46b789=_0x184741['plugins']['get']('Users')['me'],_0x376ad1=_0x271346['getSuggestions']()['filter'](_0x37b7b5=>_0x37b7b5['isInContent']&&_0x37b7b5['author']==_0x46b789),_0x1bd373=new Set(),_0xbb59dc=new Set();for(const _0x2a96c1 of _0x376ad1)if('tablePaste'==_0x2a96c1['subType'])for(const _0x5189a6 of _0x2a96c1['getMarkers']()){const _0x592963=_0x5189a6['getRange']()['getContainedElement']();if(_0x592963){if(_0x592963['is']('element','tableCellSuggestion')&&ke(_0x592963)){_0x2a96c1['removeMarker'](_0x5189a6['name']),_0x1bd373['add'](_0x592963),_0x3bb873=!0x0;const _0x6e2b5e=_0x592963['nextSibling'],_0x21cb9f=_0x592963['previousSibling'],_0xba1d1=_0x6e2b5e&&_0x6e2b5e['is']('element','tableCellSuggestion'),_0x5ec732=_0x21cb9f&&_0x21cb9f['is']('element','tableCellSuggestion');_0xba1d1&&!_0x1bd373['has'](_0x6e2b5e)&&_0xbb59dc['add'](_0x6e2b5e),_0x5ec732&&!_0x1bd373['has'](_0x21cb9f)&&_0xbb59dc['add'](_0x21cb9f);}else _0x592963['is']('element','paragraph')&&_0x592963['isEmpty']&&(_0x2a96c1['removeMarker'](_0x5189a6['name']),_0x3bb873=!0x0);}}else{if('tablePasteCell'==_0x2a96c1['subType']){if(!_0x2a96c1['attributes']||!_0x2a96c1['attributes']['tablePasteChainId'])continue;const _0x583db0=_0x2a96c1['attributes']['markerAttributes'];if(_0x583db0&&Object['keys'](_0x583db0)['length'])continue;const _0x1c6746=_0x2a96c1['attributes']['tablePasteChainId'];let _0x3fa05d=!0x0,_0x3441ca=!0x0;for(const _0x595232 of _0x376ad1)if(_0x595232['subType']&&_0x595232['subType']['startsWith']('tablePaste')){if(!_0x595232['attributes']['tablePasteChainId']){_0x3441ca=!0x1;break;}if(_0x595232['id']!=_0x2a96c1['id']&&_0x595232['attributes']['tablePasteChainId']==_0x1c6746){_0x3fa05d=!0x1;break;}}_0x3441ca&&_0x3fa05d&&(_0x2a96c1['removeMarkers'](),_0x3bb873=!0x0);}}for(const _0x1859c2 of _0x1bd373)_0x19ef04['remove'](_0x1859c2);for(const _0x2957d3 of _0xbb59dc)_0x19ef04['unwrap'](_0x2957d3);return _0x3bb873;}),_0x184741['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2059db=>_0x565b30(_0x2059db),'converterPriority':'high'}),_0x184741['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c6643,_0x36e7da)=>_0x36e7da['options']['showSuggestionHighlights']?_0x565b30(_0x4c6643,!0x1):null,'converterPriority':'high'});const _0x5e20d8=_0x184741['editing']['view'];this['listenTo'](_0x5e20d8['document'],'clipboardOutput',(_0x3ebc89,_0x1d45ce)=>{const _0x489da8=[];for(const _0xac30f8 of _0x5e20d8['createRangeIn'](_0x1d45ce['content'])['getItems']())_0xac30f8['is']('element','suggestion-td')&&_0x489da8['push'](_0xac30f8);_0x5e20d8['change'](_0x12adbc=>{for(const _0x41226f of _0x489da8)_0x12adbc['move'](_0x12adbc['createRangeIn'](_0x41226f),_0x12adbc['createPositionBefore'](_0x41226f)),_0x12adbc['remove'](_0x41226f);});});}}function ke(_0x4f3b21){if(_0x4f3b21['isEmpty'])return!0x0;const _0x1b9944=_0x4f3b21['getChild'](0x0);return _0x1b9944['is']('element','paragraph')&&_0x1b9944['isEmpty'];}function Re(_0x565cb2,_0x1145d0={},_0x31c6f4){for(const {isAnchor:_0x2331dc,cellHeight:_0x2e183e,cellWidth:_0x3a43f5}of _0x31c6f4['createTableWalker'](_0x565cb2,{'includeAllSlots':!0x0,..._0x1145d0}))if(!_0x2331dc||0x1!=_0x2e183e||0x1!=_0x3a43f5)return!0x1;return!0x0;}class Nt extends _0x4db285{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x42fc5=this['editor']['plugins']['get']('TrackChangesEditing');_0x42fc5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x42fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x42fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x42fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x42fc5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x570b5f,_0x1bacf2){const _0xaa4c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f2ce4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x63f36a=_0x1bacf2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x6f3d22=_0x1f2ce4['getColumnGroupElement'](_0x63f36a);let _0x3171b9=_0x6f3d22?_0x1f2ce4['getTableColumnsWidths'](_0x6f3d22):null,_0x28e08a=_0x63f36a['getAttribute']('tableWidth')||null;const _0xec6df8=_0x1bacf2['tableWidth']||_0x28e08a,_0x4b56b8=_0x1bacf2['columnWidths']||_0x3171b9,_0x45426b=this['editor']['plugins']['get']('Users')['me'];for(const _0x3108b6 of _0xaa4c3['getSuggestions']()){const _0x492603=_0x3108b6['getContainedElement']();if('resizeTable'===_0x3108b6['subType']&&_0x492603===_0x63f36a){_0x3108b6['author']!==_0x45426b&&_0x3108b6['discard']();const _0x5a59bf=_0x3108b6['data']['commandParams'];_0x28e08a=_0x5a59bf[0x0]['tableWidth'],_0x3171b9=_0x5a59bf[0x0]['columnWidths'];break;}}_0x570b5f({'table':_0x63f36a,'tableWidth':_0xec6df8,'columnWidths':_0x4b56b8}),_0xaa4c3['markBlockFormat'](_0x63f36a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x28e08a,'columnWidths':_0x3171b9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b374a){if('formatBlock'!=_0x4b374a['type']&&'formatInline'!=_0x4b374a['type'])return;const {data:_0x54e65c}=_0x4b374a;if(_0x54e65c&&'resizeTable'===_0x54e65c['formatGroupId']){const _0x2834a8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2834a8)};}}}class Dt extends _0x4db285{['afterInit'](){const _0x43ee6d=this['editor'];_0x43ee6d['plugins']['has']('Template')&&_0x43ee6d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4db285{['afterInit'](){const _0x1403ff=this['editor'];if(!_0x1403ff['commands']['get']('insertTableOfContents'))return;_0x1403ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc54d77=_0x1403ff['plugins']['get']('TrackChangesEditing'),_0x318439=_0x1403ff['locale'];_0xc54d77['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3600cd=>o(_0x318439,'ELEMENT_TABLE_OF_CONTENTS',_0x3600cd));}}class $t extends _0x4db285{['afterInit'](){const _0x2e722e=this['editor'];if(!_0x2e722e['plugins']['has']('Title'))return;const _0x5b2563=_0x2e722e['plugins']['get']('TrackChangesEditing');_0x5b2563['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e722e['locale'],'ELEMENT_TITLE')),_0x2e722e['model']['document']['registerPostFixer'](_0x2e3da2=>{let _0x2ef3af=!0x1;const _0x458f06=Array['from'](_0x2e722e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x508185,data:_0x1cfce1}of _0x458f06){const {group:_0x538e78}=_0x5b2563['_splitMarkerName'](_0x508185);if('suggestion'!==_0x538e78||!_0x1cfce1['newRange'])continue;const _0x56cbe9=_0x1cfce1['newRange'],_0x50c2aa=_0x56cbe9['end']['nodeBefore'];if(!_0x50c2aa||!_0x50c2aa['is']('element','title-content'))continue;if(!_0x56cbe9['start']['isTouching'](_0x56cbe9['end']))continue;const _0x4627a5=_0x2e722e['model']['schema']['getNearestSelectionRange'](_0x56cbe9['end'],'forward');if(_0x4627a5&&_0x4627a5['isCollapsed']){const _0x11f3de=_0x2e3da2['createRange'](_0x56cbe9['start'],_0x4627a5['start']);_0x11f3de['isEqual'](_0x56cbe9)||(_0x2e3da2['updateMarker'](_0x508185,{'range':_0x11f3de}),_0x2ef3af=!0x0);}_0x2ef3af||(_0x2e3da2['removeMarker'](_0x508185),_0x2ef3af=!0x0);}return _0x2ef3af;});}}class Bt extends _0x4db285{['afterInit'](){const _0x468e4c=this['editor'],_0x488430=_0x468e4c['plugins']['get']('TrackChangesEditing');_0x468e4c['plugins']['has']('UndoEditing')&&(_0x488430['enableCommand']('undo'),_0x488430['enableCommand']('redo'));}}class xt extends _0x4db285{static get['requires'](){return[It];}['afterInit'](){const _0x1abaa8=this['editor'];if(!_0x1abaa8['plugins']['has']('TableCaptionEditing'))return;_0x1abaa8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4db285{['tableProperties'];['tableCellProperties'];constructor(_0x313572){super(_0x313572),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 _0xfbe044=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29c17a of this['tableProperties'])_0xfbe044['enableCommand'](_0x29c17a,(_0x3014a1,_0x498ef6)=>{const _0x4f883d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29c17a,[_0x4f883d],this['tableProperties'],'tableProperties',_0x3014a1,_0x498ef6);});_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xfbe044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45da82,_0x4c693f)=>this['handleDiscardAction'](this['tableProperties'],_0x45da82,_0x4c693f)),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x26ab10 of this['tableCellProperties'])_0xfbe044['enableCommand'](_0x26ab10,(_0x1b54e3,_0x4f2f7b)=>{const _0x1bab78=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x26ab10,_0x1bab78,this['tableCellProperties'],'tableCellProperties',_0x1b54e3,_0x4f2f7b);});_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xfbe044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e7455,_0x32965e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e7455,_0x32965e)),_0xfbe044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xfbe044['descriptionFactory']['registerDescriptionCallback'](_0x46f6ad=>this['handleSuggestionDescription'](_0x46f6ad));}['_handlePropertyChange'](_0x300ed9,_0x2d939f,_0x32b1b0,_0x48c03e,_0x1b9080,_0x250a04){const _0x391c93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x250a04['batch'],()=>{for(const _0x4e18d7 of _0x2d939f){if(this['_getSuggestion'](_0x4e18d7,_0x48c03e))_0x1b9080(_0x250a04);else{const _0x5c85a6={};for(const _0x39ffc6 of _0x32b1b0){const _0x3715f5=_0x4e18d7['getAttribute'](_0x39ffc6);void 0x0!==_0x3715f5&&(_0x5c85a6[_0x39ffc6]=_0x3715f5);}_0x1b9080(_0x250a04),_0x391c93['markBlockFormat'](_0x4e18d7,{'commandParams':[_0x5c85a6]},[],_0x48c03e);}}});}['handleDiscardAction'](_0x11f3f8,_0x57d8d5,_0x110aa7){const _0x47f1dc=_0x57d8d5[0x0]['start']['nodeAfter'],_0x4ff26e=_0x110aa7['commandParams'][0x0];this['editor']['model']['change'](_0x1cc633=>{for(const _0x340439 of _0x11f3f8)void 0x0!==_0x4ff26e[_0x340439]?_0x1cc633['setAttribute'](_0x340439,_0x4ff26e[_0x340439],_0x47f1dc):_0x1cc633['removeAttribute'](_0x340439,_0x47f1dc);});}['handleSuggestionDescription'](_0x282215){if(_0x282215['data'])switch(_0x282215['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'](_0x4dd372,_0xab1a9a){const _0x57a8a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53be1d of _0x57a8a5['getSuggestions']({'skipNotAttached':!0x0})){const _0xb58406=_0x53be1d['getContainedElement']();if(_0x53be1d['subType']===_0xab1a9a&&_0xb58406===_0x4dd372)return _0x53be1d;}return null;}}const m='$elementName';class p extends _0x4db285{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3c2de3,_0x110daa,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x11f49f){function _0x4193b3(_0xeb5b7c){return _0xeb5b7c['map'](_0x32abd5=>String['fromCharCode'](_0x32abd5))['join']('');}super(_0x11f49f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xa793fb,_0x6e4956,_0x19d453,_0x13feb7)=>{this['_model']['change'](()=>{for(const _0x517bdf of[..._0x13feb7,..._0x19d453])this['_model']['markers']['has'](_0x517bdf)&&_0x11f49f['editing']['reconvertMarker'](_0x517bdf);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x11f49f['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(),_0x11f49f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x11f49f['config']['get']('trackChanges.trackFormatChanges'),_0x11f49f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x11f49f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x11f49f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4193b3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4193b3([0x34,0x30,0x34,0x38,0x31,0x38,0x34,0x38]);}['init'](){const _0x5737d6=this['editor'],_0x413309=(_0x768cc4,_0x7e1888)=>{if('attribute'!=_0x768cc4)return'ck-suggestion-marker-'+_0x768cc4;const _0x58e30d=_0x7e1888['split']('|')[0x0];return this['_isBlockAttribute'](_0x58e30d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5737d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x21d118=>{const {id:_0x560c21,authorId:_0x347702,type:_0x8cb3f3,subType:_0x5f4102}=this['_splitMarkerName'](_0x21d118['markerName']),_0x2dccf1=['ck-suggestion-marker',_0x413309(_0x8cb3f3,_0x5f4102)];let _0x54e194=0xbb8;return this['activeMarkers']['includes'](_0x21d118['markerName'])&&(_0x2dccf1['push']('ck-suggestion-marker--active'),_0x54e194=0xbc2),'deletion'==_0x8cb3f3&&(_0x54e194+=0x5),{'classes':_0x2dccf1,'attributes':{'data-suggestion':_0x560c21,'data-author-id':_0x347702},'priority':_0x54e194};}}),_0x5737d6['conversion']['for']('dataDowncast')['add'](_0x500b43=>{_0x500b43['on']('addMarker:suggestion',(_0x744103,_0x7463e1,_0x2b693c)=>{if(!_0x2b693c['options']['showSuggestionHighlights'])return;const _0x5b057c=_0x7463e1['item'];if(!_0x5b057c)return;const _0x1245bd=_0x2b693c['mapper']['toViewElement'](_0x5b057c);_0x5737d6['model']['schema']['isObject'](_0x5b057c)&&_0x1245bd&&!_0x1245bd['getCustomProperty']('widget')&&_0x1245bd['is']('containerElement')&&_0x3df2e5(_0x1245bd,_0x2b693c['writer']);},{'priority':'high'});}),_0x5737d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1d3105,_0x81d7ef)=>{if(!_0x81d7ef['options']['showSuggestionHighlights'])return null;const {type:_0x1c2a41,subType:_0x1f4a0f}=this['_splitMarkerName'](_0x1d3105['markerName']);return{'classes':['ck-suggestion-marker',_0x413309(_0x1c2a41,_0x1f4a0f)],'priority':0xbb8};}});const _0x145c2b=({showActiveMarkers:_0x4c8cef=!0x0,isAttributeSuggestion:_0x55c562=!0x1}={})=>(_0x7dcffe,_0x2daf39,_0x5b13e4)=>{if(!_0x2daf39['item'])return;const {id:_0x299da6,authorId:_0x129f73}=this['_splitMarkerName'](_0x2daf39['markerName']);if(_0x55c562){const _0x573a55=this['_suggestions']['get'](_0x299da6),_0x35f605=this['_getAttributeKey'](_0x573a55);if(!this['_isBlockAttribute'](_0x35f605))return;}if(_0x2daf39['item']['is']('selection'))return void _0x5b13e4['consumable']['consume'](_0x2daf39['item'],_0x7dcffe['name']);const _0x226654=_0x5b13e4['mapper']['toViewElement'](_0x2daf39['item']);if(_0x2daf39['item']['is']('element')&&_0x5737d6['model']['schema']['isBlock'](_0x2daf39['item'])&&!_0x226654['getCustomProperty']('addHighlight')){_0x5b13e4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x226654),_0x5b13e4['writer']['setAttribute']('data-suggestion',_0x299da6,_0x226654),_0x5b13e4['writer']['setAttribute']('data-author-id',_0x129f73,_0x226654),_0x5b13e4['mapper']['bindElementToMarker'](_0x226654,_0x2daf39['markerName']),_0x4c8cef&&(this['activeMarkers']['includes'](_0x2daf39['markerName'])?_0x5b13e4['writer']['addClass']('ck-suggestion-marker--active',_0x226654):_0x5b13e4['writer']['removeClass']('ck-suggestion-marker--active',_0x226654));for(const _0x344952 of _0x5737d6['model']['createRangeIn'](_0x2daf39['item'])['getItems']())_0x5b13e4['consumable']['consume'](_0x344952,_0x7dcffe['name']);_0x5b13e4['consumable']['consume'](_0x2daf39['item'],_0x7dcffe['name']);}};_0x5737d6['conversion']['for']('dataDowncast')['add'](_0x3c7a2e=>{_0x3c7a2e['on']('addMarker:suggestion:formatBlock',(_0x3e898a,_0x20da4d,_0x119587)=>{_0x119587['options']['showSuggestionHighlights']&&_0x145c2b({'showActiveMarkers':!0x1})(_0x3e898a,_0x20da4d,_0x119587);},{'priority':'highest'});}),_0x5737d6['conversion']['for']('dataDowncast')['add'](_0x187ef8=>{_0x187ef8['on']('addMarker:suggestion:attribute',(_0x14aee1,_0x51ed6e,_0x1483d8)=>{_0x1483d8['options']['showSuggestionHighlights']&&_0x145c2b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x14aee1,_0x51ed6e,_0x1483d8);},{'priority':'highest'});}),_0x5737d6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2120ce,_0x1c6c0a)=>_0x1c6c0a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2120ce['substr'](0xb)}}),_0x5737d6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1209d6,{writer:_0x41ebf7})=>{let _0x3a6bdd='suggestion:'+_0x1209d6['getAttribute']('suggestion-type')+':'+_0x1209d6['getAttribute']('id');return _0x1209d6['getAttribute']('marker-count')&&(_0x3a6bdd+=':'+_0x1209d6['getAttribute']('marker-count')),_0x41ebf7['createElement']('$marker',{'data-name':_0x3a6bdd});}}),_0x5737d6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x207ea6=>{_0x207ea6['on']('addMarker:suggestion:formatBlock',_0x145c2b(),{'priority':'high'});}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x2ee221=>{_0x2ee221['on']('addMarker:suggestion:attribute',_0x145c2b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x30cd23=>{_0x30cd23['on']('removeMarker:suggestion:formatBlock',(_0x3ae654,_0x2a2ae7,_0x215a9f)=>{const _0xba92ad=_0x215a9f['mapper']['markerNameToElements'](_0x2a2ae7['markerName']);if(_0xba92ad){for(const _0x35cd91 of _0xba92ad)_0x35cd91['getCustomProperty']('addHighlight')||(_0x215a9f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35cd91),_0x215a9f['writer']['removeAttribute']('data-suggestion',_0x35cd91),_0x215a9f['writer']['removeAttribute']('data-author-id',_0x35cd91),_0x215a9f['mapper']['unbindElementFromMarkerName'](_0x35cd91,_0x2a2ae7['markerName']));}},{'priority':'high'});}),_0x5737d6['conversion']['for']('editingDowncast')['add'](_0x32ec81=>{_0x32ec81['on']('removeMarker:suggestion:attribute',(_0x4679bf,_0x57ea9a,_0x467d45)=>{const _0x517d7f=_0x467d45['mapper']['markerNameToElements'](_0x57ea9a['markerName']);if(!_0x517d7f)return;const {id:_0x561fd0}=this['_splitMarkerName'](_0x57ea9a['markerName']),_0x59cf47=this['_suggestions']['get'](_0x561fd0),_0x115d76=this['_getAttributeKey'](_0x59cf47);if(this['_isBlockAttribute'](_0x115d76)){for(const _0x5b42be of _0x517d7f)_0x5b42be['getCustomProperty']('addHighlight')||(_0x467d45['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5b42be),_0x467d45['writer']['removeAttribute']('data-suggestion',_0x5b42be),_0x467d45['writer']['removeAttribute']('data-author-id',_0x5b42be),_0x467d45['mapper']['unbindElementFromMarkerName'](_0x5b42be,_0x57ea9a['markerName']));}},{'priority':'high'});}),_0x5737d6['model']['document']['registerPostFixer'](_0x3bfdc3=>{let _0x31e819=!0x1;const _0x488292=Array['from'](_0x5737d6['model']['document']['differ']['getChangedMarkers']()),_0xbbfac6=new Set();for(const {name:_0x3f0b5e,data:_0xc1d6ce}of _0x488292){const {group:_0x73f227,type:_0x1e6f66,subType:_0x1971a6,id:_0x42cd95}=this['_splitMarkerName'](_0x3f0b5e);if('suggestion'!==_0x73f227)continue;const _0x3f907e=this['_suggestions']['get'](_0x42cd95);if(null!=_0xc1d6ce['newRange']){'formatInline'==_0x1e6f66&&(_0x31e819=_0x31e819||Ut(_0xc1d6ce['newRange'],_0x3f0b5e,_0x3bfdc3,_0x5737d6['model']['schema']));const _0x3b95b3='attribute'==_0x1e6f66&&this['_isBlockAttribute'](_0x1971a6['split']('|')[0x0]);if(_0xc1d6ce['newRange']['isCollapsed']||'$graveyard'==_0xc1d6ce['newRange']['root']['rootName']||'formatBlock'==_0x1e6f66&&!Ft(_0xc1d6ce['newRange'])||_0x3b95b3&&!Ft(_0xc1d6ce['newRange'])||'deletion'==_0x1e6f66&&!(!Vt(_0x4307f7=_0xc1d6ce['newRange'])&&!function(_0x2c4dd3){return _0x2c4dd3['start']['parent']==_0x2c4dd3['end']['nodeBefore']&&_0x2c4dd3['start']['isAtEnd'];}(_0x4307f7)))_0x3bfdc3['removeMarker'](_0x3f0b5e),_0x31e819=!0x0;else{if(!_0x3f907e||!_0x3f907e['isInContent'])continue;if(_0xc1d6ce['newRange']&&_0xc1d6ce['oldRange']&&_0xc1d6ce['newRange']['isEqual'](_0xc1d6ce['oldRange']))continue;_0xbbfac6['add'](_0x3f907e);}}}var _0x4307f7;return _0xbbfac6['size']>0x0&&(_0x31e819=!!this['_joinWithAdjacentSuggestions'](_0xbbfac6)||_0x31e819),_0x31e819;}),_0x5737d6['model']['document']['registerPostFixer'](_0x505c4f=>{let _0x303155=!0x1;for(const _0x435d52 of _0x5737d6['model']['document']['differ']['getChanges']())if('insert'==_0x435d52['type'])for(const _0x21065e of this['_suggestions']['values']()){if(_0x21065e['isMultiRange']||!_0x21065e['isInContent'])continue;const _0xe10a96='formatBlock'==_0x21065e['type'],_0x45830c=this['_getAttributeKey'](_0x21065e),_0xc2923d=_0x45830c&&this['_isBlockAttribute'](_0x45830c);if(!_0xe10a96&&!_0xc2923d)continue;const _0x533543=_0x21065e['getFirstRange']();if(_0x533543['start']['parent']!=_0x533543['end']['parent']&&!_0x533543['end']['isAtEnd']){const _0x5ca84a=_0x5737d6['model']['createPositionAt'](_0x533543['start']['nodeAfter'],'end'),_0x5a9d86=_0x5737d6['model']['createRange'](_0x533543['start'],_0x5ca84a);_0x505c4f['updateMarker'](_0x21065e['getFirstMarker'](),{'range':_0x5a9d86}),_0x303155=!0x0;}}return _0x303155;}),_0x5737d6['model']['document']['registerPostFixer'](_0x55c116=>this['_processAttributeChanges'](_0x55c116)),_0x5737d6['model']['document']['registerPostFixer'](_0x1ee858=>!_0x1ee858['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1ee858)),_0x5737d6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5737d6['model']['document']['on']('change:data',(_0x26bf14,_0x2f891b)=>{if(!_0x2f891b['isLocal']||_0x2f891b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x501579=_0x5737d6['model']['document']['differ']['getChanges']();if(0x0==_0x501579['length'])return;const _0x1a8259=[],_0x36ee62=_0x501579['filter'](_0x16bb22=>'attribute'==_0x16bb22['type']),_0x3bf9a9=_0x501579['filter'](_0xbbb4ea=>'insert'==_0xbbb4ea['type']&&'$text'!=_0xbbb4ea['name']);for(const _0x5354f3 of _0x36ee62)this['_isRegisteredAttribute'](_0x5354f3['attributeKey'])&&_0x1a8259['push']({'key':_0x5354f3['attributeKey'],'newValue':_0x5354f3['attributeNewValue'],'oldValue':_0x5354f3['attributeOldValue'],'range':Pt(_0x5354f3['range'],_0x5737d6['model'])});for(const _0x4d95d1 of _0x3bf9a9){if('rename'!=_0x4d95d1['action']&&'refresh'!=_0x4d95d1['action'])continue;const _0x21eb38=Lt(_0x4d95d1['position']['nodeAfter'],_0x5737d6['model']),_0x339c58=_0x4d95d1['before'];'rename'==_0x4d95d1['action']&&_0x1a8259['push']({'key':m,'newValue':_0x4d95d1['name'],'oldValue':_0x339c58['name'],'range':_0x21eb38});for(const [_0xb4b720,_0xc3dfeb]of _0x339c58['attributes']){if(!this['_isRegisteredAttribute'](_0xb4b720))continue;const _0x32c8f1=_0x4d95d1['attributes']['get'](_0xb4b720);_0xc3dfeb!==_0x32c8f1&&_0x1a8259['push']({'key':_0xb4b720,'newValue':_0x32c8f1,'oldValue':_0xc3dfeb,'range':_0x21eb38});}for(const [_0xef73d9,_0x427fd6]of _0x4d95d1['attributes'])this['_isRegisteredAttribute'](_0xef73d9)&&(_0x339c58['attributes']['has'](_0xef73d9)||_0x1a8259['push']({'key':_0xef73d9,'newValue':_0x427fd6,'oldValue':null,'range':_0x21eb38}));}0x0!=_0x1a8259['length']&&_0x5737d6['model']['enqueueChange'](_0x2f891b,_0x30413f=>{const _0x265656=_0x1d9854();for(const {range:_0x2af65d,key:_0x2de68d,oldValue:_0xee0337,newValue:_0x1f3d19}of _0x1a8259)this['markAttributeChange'](_0x2af65d,_0x2de68d,_0xee0337,_0x1f3d19,{'groupId':_0x265656});this['_reduceExistingSuggestions'](_0x30413f,_0x1a8259);});},{'priority':'lowest'}),_0x5737d6['model']['markers']['on']('update:suggestion',(_0x2bfdf5,_0x423468,_0x242546)=>{if(null==_0x242546){const {id:_0x5793f8}=this['_splitMarkerName'](_0x423468['name']),_0x356ae1=this['_suggestions']['get'](_0x5793f8);_0x356ae1&&_0x356ae1['addMarkerName'](_0x423468['name']);}}),_0x5737d6['model']['document']['on']('change:data',()=>{const _0x288f16=Array['from'](_0x5737d6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31554b=>'suggestion'===this['_splitMarkerName'](_0x31554b['name'])['group']);if(0x0===_0x288f16['length'])return;_0x288f16['sort']((_0x22b6c7,_0x1d611a)=>{const _0x5b1755=_0x22b6c7['data']['oldRange'],_0xd98588=_0x1d611a['data']['oldRange'];return null===_0x5b1755&&null===_0xd98588?0x0:null===_0x5b1755&&null!==_0xd98588?-0x1:null!==_0x5b1755&&null===_0xd98588?0x1:_0x5b1755['start']['isBefore'](_0xd98588['start'])?-0x1:0x1;});const _0x834f7=new Set(),_0x5ee310=new Set();for(const {name:_0x55e96e,data:_0x936010}of _0x288f16){const {id:_0x133e61}=this['_splitMarkerName'](_0x55e96e);if(null===_0x936010['oldRange']){const _0x51b754=this['_handleNewSuggestionMarker'](_0x55e96e);_0x5ee310['add'](_0x51b754);}else{const _0x58b65d=this['_suggestions']['get'](_0x133e61);null!==_0x936010['newRange']||_0x58b65d['isInContent']?(_0x834f7['add'](_0x58b65d['head']),_0x5ee310['add'](_0x58b65d)):this['_removeSuggestion'](_0x58b65d);}}_0x5ee310['size']>0x0&&this['_refreshSuggestionsChain'](_0x5ee310);for(const _0x13c031 of _0x834f7)this['fire']('suggestionChanged',_0x13c031);}),_0x5737d6['model']['on']('applyOperation',(_0x3a664c,_0x380a44)=>{const _0xbe75bb=_0x380a44[0x0];if(!this['_suggestions']['size'])return;if(!_0xbe75bb['isDocumentOperation'])return;if(_0xbe75bb['batch']['isUndo']||!_0xbe75bb['batch']['isLocal'])return;let _0x8e0a77,_0x5c450f;switch(_0xbe75bb['type']){case'insert':_0x8e0a77=_0x5737d6['model']['createPositionAt'](_0xbe75bb['position']),_0x5c450f=_0x8e0a77['getShiftedBy'](_0xbe75bb['howMany']);break;case'split':_0x8e0a77=_0x5737d6['model']['createPositionAt'](_0xbe75bb['splitPosition']),_0x5c450f=_0x5737d6['model']['createPositionAt'](_0xbe75bb['moveTargetPosition']);break;case'move':_0x8e0a77=_0x5737d6['model']['createPositionAt'](_0xbe75bb['targetPosition']),_0x5c450f=_0x8e0a77['getShiftedBy'](_0xbe75bb['howMany']);break;default:return;}const _0x3b7fa0=_0x5737d6['model']['createRange'](_0x8e0a77,_0x5c450f);_0x5737d6['model']['change'](()=>{for(const {suggestion:_0x1e63b7,meta:_0x3f85ae}of this['_findSuggestions'](_0x3b7fa0)){if(_0x1e63b7['isMultiRange'])continue;if('formatInline'==_0x1e63b7['type'])continue;const _0x559012=this['_getAttributeKey'](_0x1e63b7);if(_0x559012&&this['_isBlockAttribute'](_0x559012)&&'split'!=_0xbe75bb['type'])continue;const _0x9bb60d=_0x1e63b7['data']&&_0x1e63b7['data']['multipleBlocks'];('formatBlock'!=_0x1e63b7['type']||'split'==_0xbe75bb['type']&&!_0x9bb60d)&&(_0x3f85ae['containsRangeInObject']||'insertion'==_0x1e63b7['type']&&_0x3f85ae['isOwn']||_0x1e63b7['getFirstRange']()['containsRange'](_0x3b7fa0)&&this['_breakSuggestionMarker'](_0x1e63b7,_0x8e0a77,_0x5c450f));}});},{'priority':'lowest'}),_0x5737d6['model']['on']('deleteContent',(_0x4988dc,_0x2cca12)=>{const _0x3b8e37=_0x2cca12[0x0],_0x51604b=_0x2cca12[0x1];if(_0x51604b&&_0x51604b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b8e37['isCollapsed'])return;const _0x44b7bc=_0x5737d6['model']['schema'],{start:_0x6ecc1,end:_0x5b197e}=_0x3b8e37['getFirstRange'](),_0x4d394d=_0x6ecc1['nodeAfter']&&_0x44b7bc['isLimit'](_0x6ecc1['nodeAfter'])?null:_0x44b7bc['getNearestSelectionRange'](_0x6ecc1,'forward'),_0x5038a0=_0x5b197e['nodeBefore']&&_0x44b7bc['isLimit'](_0x5b197e['nodeBefore'])?null:_0x44b7bc['getNearestSelectionRange'](_0x5b197e,'backward'),_0x4c6375=_0x5737d6['model']['createRange'](_0x4d394d?_0x4d394d['start']:_0x6ecc1,_0x5038a0?_0x5038a0['end']:_0x5b197e);_0x5737d6['model']['change'](_0x5c643b=>{this['markDeletion'](_0x4c6375);const _0x102210=_0x5737d6['model']['schema']['getNearestSelectionRange'](_0x4c6375['start']);_0x3b8e37['is']('documentSelection')?_0x5c643b['setSelection'](_0x102210):_0x3b8e37['setTo'](_0x102210);}),_0x4988dc['stop']();},{'priority':_0xa03c08['normal']+0xa}),_0x5737d6['model']['on']('insertContent',(_0x239d3c,_0x737bcb)=>{const _0xd0c27e=_0x737bcb[_0x737bcb['length']-0x1];_0xd0c27e&&_0xd0c27e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5737d6['model']['change'](()=>{let _0x966c1c=_0x5737d6['model']['insertContent'](_0x737bcb[0x0],_0x737bcb[0x1],_0x737bcb[0x2],{'forceDefaultExecution':!0x0});if(!_0x966c1c)return;_0x239d3c['return']=_0x966c1c['clone']();const _0x2419c2=_0x966c1c['end']['nodeBefore'],_0x4d9f28=_0x5737d6['model']['schema'];_0x2419c2&&_0x4d9f28['isBlock'](_0x2419c2)&&!_0x4d9f28['isObject'](_0x2419c2)&&(_0x966c1c=_0x5737d6['model']['createRange'](_0x966c1c['start'],_0x5737d6['model']['createPositionAt'](_0x2419c2,'end'))),this['markInsertion'](_0x966c1c);}),_0x239d3c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x457c51=new x(_0x5737d6,this['_suggestions']);_0x5737d6['commands']['add']('acceptSuggestion',_0x457c51),this['enableCommand']('acceptSuggestion');const _0x382d60=new R(_0x5737d6,this['_suggestions']);_0x5737d6['commands']['add']('discardSuggestion',_0x382d60),this['enableCommand']('discardSuggestion'),_0x5737d6['commands']['add']('acceptAllSuggestions',new E(_0x5737d6,_0x457c51,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5737d6['commands']['add']('discardAllSuggestions',new E(_0x5737d6,_0x382d60,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5737d6['commands']['add']('acceptSelectedSuggestions',new O(_0x5737d6,_0x457c51,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5737d6['commands']['add']('discardSelectedSuggestions',new O(_0x5737d6,_0x382d60,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xec6b2=_0x5737d6['plugins']['get']('CommentsRepository');this['listenTo'](_0xec6b2,'addComment',(_0xaff947,{threadId:_0x4d199e})=>{const _0x22ec20=this['_suggestions']['get'](_0x4d199e);_0x22ec20&&_0x22ec20['commentThread']&&0x1===_0x22ec20['commentThread']['length']&&this['_updateSuggestionData'](_0x4d199e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xec6b2,'removeComment',(_0x2ffe48,{threadId:_0x271476})=>{const _0x54f9db=this['_suggestions']['get'](_0x271476);_0x54f9db&&_0x54f9db['commentThread']&&!_0x54f9db['commentThread']['length']&&this['_updateSuggestionData'](_0x271476,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5dc007){if(this['_adapter'])throw new _0xec2a34('track-changes-adapter-already-set',this);this['_adapter']=_0x5dc007;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b5cfa=!0x1,toJSON:_0x37acde=!0x1}={}){const _0x5c5949=[];for(const _0x4680c0 of this['_suggestions']['values']())_0x2b5cfa&&!_0x4680c0['isInContent']||_0x5c5949['push'](_0x4680c0);return _0x37acde?_0x5c5949['map'](_0x550144=>_0x550144['toJSON']()):_0x5c5949;}['getSuggestion'](_0x181013){const _0x3621eb=this['_suggestions']['get'](_0x181013);if(!_0x3621eb)throw new _0xec2a34('track-changes-suggestion-not-found',this);return _0x3621eb;}['hasSuggestion'](_0x4b5b19){return this['_suggestions']['has'](_0x4b5b19);}['addSuggestionData'](_0x190599){const {authorId:_0x6f2a87,id:_0x22f6b7,attributes:_0x33933b}=_0x190599,[_0x120dc4,_0x458a6b]=_0x190599['type']['split'](':'),_0x1e1c25=this['_suggestions']['get'](_0x22f6b7)||this['_createSuggestion'](_0x120dc4,_0x458a6b,_0x22f6b7,_0x6f2a87,_0x33933b);if(this['_addThreadToSuggestion'](_0x1e1c25),this['_checkSuggestionCorrectness'](_0x1e1c25,_0x120dc4,_0x458a6b||null,_0x6f2a87),_0x1e1c25['createdAt']=_0x190599['createdAt'],_0x1e1c25['_isDataLoaded']=!0x0,_0x33933b&&_0x33933b['@external']){const _0x2958b0=_0x33933b['@external'],_0x1445d2=this['_getExternalAuthor'](_0x2958b0['authorName']);_0x1e1c25['authoredAt']=_0x2958b0['createdAt'],_0x1e1c25['author']=_0x1445d2,_0x1e1c25['isExternal']=!0x0;}else _0x1e1c25['authoredAt']=_0x190599['createdAt'];switch(_0x190599['data']&&(_0x1e1c25['data']=_0x190599['data']),_0x190599['attributes']&&(_0x1e1c25['attributes']=_0x190599['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1e1c25['_saved']=!0x0),this['_suggestionState']['get'](_0x1e1c25)){case'notReady':this['_suggestionState']['set'](_0x1e1c25,'dataReady');break;case'markerReady':_0x1e1c25['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1e1c25])),this['_refreshSuggestionsChain'](new Set([_0x1e1c25])),this['_suggestionState']['set'](_0x1e1c25,'ready'),this['fire']('suggestionLoaded',_0x1e1c25)):this['_suggestionState']['set'](_0x1e1c25,'removed');}return _0x1e1c25;}['acceptSuggestion'](_0x584751){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3393c9 of _0x584751['getAllAdjacentSuggestions']())_0x3393c9['accept']();});});}['discardSuggestion'](_0x59b9fc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5afee8 of _0x59b9fc['getAllAdjacentSuggestions']())_0x5afee8['discard']();});});}['enableCommand'](_0x2eae1e,_0x516ad0){const _0x51b1d1=this['editor']['commands']['get'](_0x2eae1e);if(!_0x51b1d1)throw new _0xec2a34('track-changes-command-not-found',this,{'commandName':_0x2eae1e});if(this['_enabledCommands']['has'](_0x51b1d1))throw new _0xec2a34('track-changes-enable-command-twice',this,{'commandName':_0x2eae1e});this['_enabledCommands']['add'](_0x51b1d1),_0x516ad0&&_0x51b1d1['on']('execute',(_0x342bb7,_0x1f8f6b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1f8f6b['length']>0x0&&_0x1f8f6b[_0x1f8f6b['length']-0x1]&&_0x1f8f6b[_0x1f8f6b['length']-0x1]['forceDefaultExecution']?_0x1f8f6b['pop']():(_0x342bb7['return']=_0x516ad0((..._0x27dfca)=>_0x51b1d1['execute'](..._0x27dfca,{'forceDefaultExecution':!0x0}),..._0x1f8f6b),_0x342bb7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a8032){let _0x163cf4,_0x30b6da;const _0x426970=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x163cf4=_0x4a8032();}catch(_0x416020){_0x30b6da=_0x416020;}return _0x426970||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30b6da&&_0xec2a34['rethrowUnexpectedError'](_0x30b6da,this),_0x163cf4;}['markInsertion'](_0x285db9,_0x224f10=null,_0x147b51={}){if(_0x285db9['isCollapsed'])return null;const _0x164d61=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x54b595,meta:_0xe21249}of this['_findSuggestions'](_0x285db9,'insertion'))if(_0xe21249['isOwn']){if(!_0xe21249['isNextTo']){if(_0xe21249['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x54b595,_0x147b51))continue;return _0x54b595;}if(qt(_0x54b595,_0x147b51))return _0x54b595;this['_breakSuggestionMarker'](_0x54b595,_0x285db9['start'],_0x285db9['end']);break;}if(_0x224f10==_0x54b595['subType']&&qt(_0x54b595,_0x147b51)){const _0x409b36=_0x54b595['getFirstRange']();return _0x409b36['start']['isEqual'](_0x285db9['end'])?this['_setSuggestionRange'](_0x54b595,this['_model']['createRange'](_0x285db9['start'],_0x409b36['end'])):this['_setSuggestionRange'](_0x54b595,this['_model']['createRange'](_0x409b36['start'],_0x285db9['end'])),_0x54b595;}}const _0x328268=_0x1d9854(),_0x1d54cf=_0x164d61['id'],_0xffeefc=_0x224f10?'insertion:'+_0x224f10:'insertion',_0x5c5582=this['_setSuggestionData']({'id':_0x328268,'type':_0xffeefc,'createdAt':new Date(),'authorId':_0x1d54cf,'attributes':_0x147b51});return this['_addSuggestionMarker'](_0xffeefc,_0x328268,_0x1d54cf,_0x285db9),_0x5c5582;}['markMultiRangeInsertion'](_0x4031f4,_0x3c4212='multi',_0x539dc1={}){const _0xc394fd=this['editor']['plugins']['get']('Users')['me'],_0x12531f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c4212,'join');for(const _0x4c79e7 of this['getSuggestions']())if(_0x4c79e7['author']['id']==_0xc394fd['id']&&'insertion'==_0x4c79e7['type']&&_0x4c79e7['subType']==_0x3c4212&&qt(_0x4c79e7,_0x539dc1)&&(_0x12531f(_0x4c79e7['getRanges'](),_0x4031f4)||_0x12531f(_0x4031f4,_0x4c79e7['getRanges']()))){for(const _0x11911c of _0x4031f4)_0x4c79e7['addRange'](_0x11911c);return _0x4c79e7;}for(const {suggestion:_0x5bfa8a,meta:_0xa407d4}of this['_findSuggestions'](_0x4031f4,'insertion')){if(!_0xa407d4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa407d4['containsRangeInObject'])continue;if(!qt(_0x5bfa8a,_0x539dc1))continue;let _0x31d4ee=!0x0;for(const _0x3ef2df of _0x5bfa8a['getRanges']())for(const _0x36b093 of _0x4031f4)if(!_0x3ef2df['containsRange'](_0x36b093)){_0x31d4ee=!0x1;break;}if(_0x31d4ee)return _0x5bfa8a;}const _0xc214fd=_0x1d9854(),_0x1c8646=_0xc394fd['id'],_0xc44292='insertion:'+_0x3c4212,_0x3a15c8=this['_setSuggestionData']({'id':_0xc214fd,'type':_0xc44292,'createdAt':new Date(),'authorId':_0x1c8646,'attributes':_0x539dc1});for(const _0x156495 of _0x4031f4)this['_addSuggestionMarker'](_0xc44292,_0xc214fd,_0x1c8646,_0x156495,u['getMultiRangeId']());return _0x3a15c8;}['markInlineFormat'](_0x1fe3b2,_0x5d440b,_0x6eca1=null,_0x5bc179={}){if(_0x6eca1=_0x6eca1||Gt(_0x5d440b),_0x1fe3b2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xe90f97=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6eca1,'accept');return this['forceDefaultExecution'](()=>_0xe90f97([_0x1fe3b2],_0x5d440b,_0x5bc179)),null;}const _0x398ee8=this['editor']['plugins']['get']('Users')['me'],_0x3e2959=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d966a,meta:_0x2f4a24}of this['_findSuggestions'](_0x1fe3b2,'insertion'))_0x2f4a24['isOwn']&&!_0x2f4a24['isInsideObject']&&_0x3e2959['push'](..._0x2d966a['getRanges']());}const _0x1e2580=function(_0x1542f0,_0x2db9ee){const _0x557612=[];for(const _0x4c59e7 of _0x2db9ee){const _0x427db1=_0x1542f0['getIntersection'](_0x4c59e7);_0x427db1&&_0x557612['push'](_0x427db1);}return _0x557612;}(_0x1fe3b2,_0x3e2959),_0x54ce96=function(_0x4f8f3e,_0x57bb43){const _0x17643f=[_0x4f8f3e];for(const _0x587832 of _0x57bb43){let _0x5f07f8=0x0;for(;_0x5f07f8<_0x17643f['length'];){const _0x5c5d7b=_0x17643f[_0x5f07f8]['getDifference'](_0x587832);_0x17643f['splice'](_0x5f07f8,0x1,..._0x5c5d7b),_0x5f07f8+=_0x5c5d7b['length'];}}return _0x17643f;}(_0x1fe3b2,_0x3e2959);_0x1e2580['length']&&this['_model']['change'](()=>{for(const _0x5cf34c of _0x1e2580){const _0x18c55e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6eca1,'accept');this['forceDefaultExecution'](()=>_0x18c55e([_0x5cf34c],_0x5d440b,_0x5bc179));}});for(const _0x5aee6c of _0x54ce96){let _0x550c38=null,_0x38766e=_0x5aee6c['start'],_0x986088=_0x5aee6c['end'];for(const {suggestion:_0x171bc2,meta:_0x43296a}of this['_findSuggestions'](_0x5aee6c,'formatInline')){if(!_0x43296a['isOwn'])continue;if(_0x171bc2['subType']!=_0x6eca1)continue;if(!qt(_0x171bc2,_0x5bc179))continue;const _0x370511=_0x171bc2['getFirstRange']();if(_0x370511['containsRange'](_0x5aee6c,!0x0))return null;_0x38766e=_0x38766e['isBefore'](_0x370511['start'])?_0x38766e:_0x370511['start'],_0x986088=_0x986088['isAfter'](_0x370511['end'])?_0x986088:_0x370511['end'],_0x550c38?_0x370511['start']['isBefore'](_0x550c38['getFirstRange']()['start'])?(_0x550c38['removeMarkers'](),_0x550c38=_0x171bc2):_0x171bc2['removeMarkers']():_0x550c38=_0x171bc2;}const _0x179627=this['_model']['createRange'](_0x38766e,_0x986088);if(_0x550c38)this['_setSuggestionRange'](_0x550c38,_0x179627);else{const _0xe96fe4=_0x1d9854(),_0x455915=_0x398ee8['id'];this['_setSuggestionData']({'id':_0xe96fe4,'type':'formatInline:'+_0x6eca1,'data':_0x5d440b,'createdAt':new Date(),'authorId':_0x455915,'attributes':_0x5bc179}),this['_addSuggestionMarker']('formatInline:'+_0x6eca1,_0xe96fe4,_0x455915,_0x179627);}}return null;}['markBlockFormat'](_0xe0bfd7,_0x4950e4,_0x1c0411=[],_0x4464df=null,_0x35bc63={}){_0x4950e4['formatGroupId']||(_0x4950e4['formatGroupId']=_0x4950e4['commandName']),_0x4950e4['multipleBlocks']=_0xe0bfd7['is']('range'),_0x4464df=_0x4464df||Gt(_0x4950e4);const _0x52d9ed=_0x1c0411['map'](_0x33aaca=>Lt(_0x33aaca,this['_model'])),_0x1abb68=_0xe0bfd7['is']('range')?_0xe0bfd7:Lt(_0xe0bfd7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x494905=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4464df,'accept');return this['forceDefaultExecution'](()=>_0x494905([_0x1abb68],_0x4950e4,_0x35bc63)),null;}_0x52d9ed['push'](_0x1abb68);let _0x1423d8=!0x0;for(const _0x5c9f2e of _0x52d9ed)if(!this['_rangeIsInLocalUserInsertion'](_0x5c9f2e)){_0x1423d8=!0x1;break;}if(_0x1423d8&&'always'!==this['_trackFormatChanges']){const _0x16632b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4464df,'accept');return this['forceDefaultExecution'](()=>_0x16632b([_0x1abb68],_0x4950e4,_0x35bc63)),null;}let _0x104789=null,_0x5f48e5=_0x1abb68['start'],_0x24818b=_0x1abb68['end'];for(const {suggestion:_0x3f3621,meta:_0x2fe572}of this['_findSuggestions'](_0x1abb68,'formatBlock')){if(!_0x2fe572['isOwn'])continue;if(_0x2fe572['isNextTo']||_0x2fe572['containsRangeInObject']||_0x2fe572['isInsideObject'])continue;if(_0x3f3621['data']['formatGroupId']!=_0x4950e4['formatGroupId'])continue;if(!qt(_0x3f3621,_0x35bc63))continue;const _0x465eb1=_0x3f3621['getFirstRange']();if(_0x3f3621['subType']==_0x4464df){if(_0x465eb1['containsRange'](_0x1abb68,!0x0))return null;_0x5f48e5=_0x5f48e5['isBefore'](_0x465eb1['start'])?_0x5f48e5:_0x465eb1['start'],_0x24818b=_0x24818b['isAfter'](_0x465eb1['end'])?_0x24818b:_0x465eb1['end'],_0x104789?_0x465eb1['start']['isBefore'](_0x104789['getFirstRange']()['start'])?(_0x104789['removeMarkers'](),_0x104789=_0x3f3621):_0x3f3621['removeMarkers']():_0x104789=_0x3f3621;}else{const _0x271910=_0x1abb68['getIntersection'](_0x465eb1);this['_cutOutSuggestionMarker'](_0x3f3621,_0x271910);}}const _0x5ca2a2=this['editor']['plugins']['get']('Users')['me'],_0x3631fb=_0x1d9854(),_0x2c4b7a=_0x5ca2a2['id'];if(_0x104789)return this['_setSuggestionRange'](_0x104789,this['_model']['createRange'](_0x5f48e5,_0x24818b)),_0x104789;{const _0x1d9290=this['_setSuggestionData']({'id':_0x3631fb,'type':'formatBlock:'+_0x4464df,'data':_0x4950e4,'createdAt':new Date(),'authorId':_0x2c4b7a,'attributes':_0x35bc63});return this['_addSuggestionMarker']('formatBlock:'+_0x4464df,_0x3631fb,_0x2c4b7a,this['_model']['createRange'](_0x5f48e5,_0x24818b)),_0x1d9290;}}['markMultiRangeBlockFormat'](_0x418013,_0x4d0b01,_0x3769e1=[],_0x51261b=null,_0x14615b={}){_0x4d0b01['formatGroupId']||(_0x4d0b01['formatGroupId']=_0x4d0b01['commandName']);const _0x429f67=_0x418013[0x0];_0x4d0b01['multipleBlocks']=_0x429f67['is']('range'),_0x51261b=_0x51261b||Gt(_0x4d0b01);const _0x14b35d=_0x3769e1['map'](_0x259008=>Lt(_0x259008,this['_model'])),_0x5d4597=_0x429f67['is']('range')?_0x418013:_0x418013['map'](_0x322bbc=>Lt(_0x322bbc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3fb534=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51261b,'accept');return this['forceDefaultExecution'](()=>_0x3fb534(_0x5d4597,_0x4d0b01,_0x14615b)),null;}_0x14b35d['push'](..._0x5d4597);let _0x3b7c0d=!0x0;for(const _0x3836ad of _0x14b35d)if(!this['_rangeIsInLocalUserInsertion'](_0x3836ad)){_0x3b7c0d=!0x1;break;}if(_0x3b7c0d&&'always'!==this['_trackFormatChanges']){const _0x4137bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51261b,'accept');return this['forceDefaultExecution'](()=>_0x4137bb(_0x5d4597,_0x4d0b01,_0x14615b)),null;}const _0x360cc3=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d3f2d of this['getSuggestions']()){if(_0x3d3f2d['author']['id']!=_0x360cc3['id'])continue;if('formatBlock'!=_0x3d3f2d['type']||_0x3d3f2d['data']['formatGroupId']!=_0x4d0b01['formatGroupId'])continue;if(!qt(_0x3d3f2d,_0x14615b))continue;const _0x53b96c=_0x3d3f2d['subType']==_0x51261b;for(let _0x48297e=0x0;_0x48297e<_0x5d4597['length'];_0x48297e++){const _0x554e64=_0x5d4597[_0x48297e];for(const _0x1f17e3 of _0x3d3f2d['getMarkers']()){const _0x194021=_0x1f17e3['getRange']();if(_0x554e64['isEqual'](_0x194021)){_0x53b96c?(_0x5d4597['splice'](_0x48297e,0x1),_0x48297e--):_0x3d3f2d['removeMarker'](_0x1f17e3['name']);break;}}}}if(0x0==_0x5d4597['length'])return null;const _0x676144=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51261b,'join');for(const _0x175d71 of this['getSuggestions']())if(_0x175d71['author']['id']==_0x360cc3['id']&&'formatBlock'==_0x175d71['type']&&_0x175d71['data']['formatGroupId']==_0x4d0b01['formatGroupId']&&_0x175d71['subType']==_0x51261b&&qt(_0x175d71,_0x14615b)&&(_0x676144(_0x175d71['getRanges'](),_0x5d4597)||_0x676144(_0x5d4597,_0x175d71['getRanges']()))){for(const _0x3aa16c of _0x5d4597)_0x175d71['addRange'](_0x3aa16c);return _0x175d71;}const _0x138fb1=_0x1d9854(),_0x46724b=_0x360cc3['id'],_0x58d22d='formatBlock:'+_0x51261b,_0x3cd992=this['_setSuggestionData']({'id':_0x138fb1,'type':_0x58d22d,'data':_0x4d0b01,'createdAt':new Date(),'authorId':_0x46724b,'attributes':_0x14615b});for(const _0x2505ca of _0x5d4597)this['_addSuggestionMarker'](_0x58d22d,_0x138fb1,_0x46724b,_0x2505ca,u['getMultiRangeId']());return _0x3cd992;}['markDeletion'](_0x4dc275,_0x5bd242=null,_0x4029a8={}){if(_0x4dc275['isCollapsed'])return null;const _0x5a7049=this['editor']['plugins']['get']('Users')['me'],_0x23af1a=new _0x52a99c(_0x4dc275['start'],_0x4dc275['end']);for(const {suggestion:_0x1d3066,meta:_0x594dcf}of this['_findSuggestions'](_0x23af1a,'insertion'))if(_0x594dcf['isOwn']&&!_0x594dcf['isNextTo']){if(_0x1d3066['isMultiRange']){const _0x21a949=_0x1d3066['getRanges']()['filter'](_0x52f967=>'$graveyard'!=_0x52f967['root']['rootName']);_0x21a949['every'](_0x34ed2b=>_0x23af1a['containsRange'](_0x34ed2b,!0x0))&&_0x1d3066['discard']();if(_0x21a949['some'](_0x4ad08f=>_0x4ad08f['containsRange'](_0x23af1a,!0x0))){const _0x224d46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bd242,'accept');return this['forceDefaultExecution'](()=>_0x224d46([_0x23af1a],null,_0x4029a8)),null;}}else{const _0x419dcc=_0x23af1a['getIntersection'](_0x1d3066['getFirstRange']());null!==_0x419dcc&&_0x1d3066['_onDiscard']([_0x419dcc],null,_0x4029a8);}}if(_0x23af1a['detach'](),_0x23af1a['isCollapsed']||'$graveyard'==_0x23af1a['root']['rootName'])return null;let _0x315b61=null,_0x16e907=_0x23af1a['start'],_0x93b096=_0x23af1a['end'];const _0x32866c=this['_findSuggestions'](_0x23af1a,'deletion');for(const {suggestion:_0xd27e98,meta:_0x29e301}of _0x32866c){const _0x29d380=this['_model']['createRange'](_0x16e907,_0x93b096);if(_0x29e301['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29e301['containsRangeInObject']&&!_0x29e301['isInsideObject'])){if(_0xd27e98['isMultiRange']){if(!qt(_0xd27e98,_0x4029a8))continue;let _0x5511ee=!0x0;for(const _0x17da64 of _0xd27e98['getRanges']()){if(_0x17da64['containsRange'](_0x29d380,!0x0))return _0xd27e98;_0x29d380['containsRange'](_0x17da64)||(_0x5511ee=!0x1);}_0x5511ee&&_0xd27e98['discard']();}else{const _0x7e3192=_0xd27e98['getFirstRange']();if(_0x7e3192['containsRange'](_0x29d380,!0x0))return _0xd27e98;if(!qt(_0xd27e98,_0x4029a8)){_0x29d380['containsRange'](_0x7e3192)?_0xd27e98['removeMarkers']():_0x7e3192['containsPosition'](_0x16e907)?_0x16e907=_0x7e3192['end']:_0x7e3192['containsPosition'](_0x93b096)&&(_0x93b096=_0x7e3192['start']);continue;}_0x16e907=_0x16e907['isBefore'](_0x7e3192['start'])?_0x16e907:_0x7e3192['start'],_0x93b096=_0x93b096['isAfter'](_0x7e3192['end'])?_0x93b096:_0x7e3192['end'],_0x4029a8=Object['assign']({},_0xd27e98['attributes']),_0x315b61?_0x7e3192['start']['isBefore'](_0x315b61['getFirstRange']()['start'])?(_0x315b61['removeMarkers'](),_0x315b61=_0xd27e98):_0xd27e98['removeMarkers']():_0x315b61=_0xd27e98;}}}if(_0x315b61)return this['_setSuggestionRange'](_0x315b61,this['_model']['createRange'](_0x16e907,_0x93b096)),_0x315b61;{const _0x59f8af=_0x1d9854(),_0x5d0d85=this['_model']['createRange'](_0x16e907,_0x93b096),_0x3d60fc=_0x5a7049['id'],_0x2ed233=_0x5bd242?'deletion:'+_0x5bd242:'deletion',_0x3312a9=this['_setSuggestionData']({'id':_0x59f8af,'type':_0x2ed233,'createdAt':new Date(),'authorId':_0x3d60fc,'attributes':_0x4029a8});return this['_addSuggestionMarker'](_0x2ed233,_0x59f8af,_0x3d60fc,_0x5d0d85),_0x3312a9;}}['markMultiRangeDeletion'](_0x3e8109,_0x3c3cb2='multi',_0x44641a={}){const _0x2f89f6=this['editor']['plugins']['get']('Users')['me'],_0x305016=_0x3e8109['map'](_0x18c407=>new _0x52a99c(_0x18c407['start'],_0x18c407['end'])),_0x277097=new Set();for(const {suggestion:_0x11e08d,meta:_0x34190d}of this['_findSuggestions'](_0x305016,'insertion'))_0x34190d['isOwn']&&!_0x34190d['isNextTo']&&_0x277097['add'](_0x11e08d);for(const _0x568285 of _0x277097)if(_0x568285['isMultiRange']){const _0x434255=_0x568285['getRanges']();(!_0x568285['attributes']||!_0x568285['attributes']['skipNestingCheck'])&&(_0x434255['every'](_0x50b8ad=>_0x305016['some'](_0x49ebee=>_0x49ebee['containsRange'](_0x50b8ad,!0x0)))&&_0x568285['discard']());if(_0x305016['every'](_0x2ca686=>_0x434255['some'](_0x4f099e=>_0x4f099e['containsRange'](_0x2ca686,!0x0)))){const _0x221773=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3cb2,'accept');return this['forceDefaultExecution'](()=>_0x221773(_0x3e8109,null,_0x44641a)),null;}}else{const _0xaeeff3=_0x568285['getFirstRange']();_0x305016['some'](_0x1bed6c=>_0x1bed6c['containsRange'](_0xaeeff3,!0x0))&&_0x568285['discard']();if(_0x305016['every'](_0x37e93b=>_0xaeeff3['containsRange'](_0x37e93b,!0x0))){const _0x686f8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3cb2,'accept');return this['forceDefaultExecution'](()=>_0x686f8(_0x305016,null,_0x44641a)),null;}}const _0x2ae4bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3cb2,'join');let _0x3e734e=null;for(const _0x1231cc of this['getSuggestions']())if(_0x1231cc['author']['id']==_0x2f89f6['id']&&_0x1231cc['isInContent']&&'deletion'==_0x1231cc['type']&&_0x1231cc['subType']==_0x3c3cb2&&qt(_0x1231cc,_0x44641a)&&(_0x2ae4bc(_0x1231cc['getRanges'](),_0x305016)||_0x2ae4bc(_0x305016,_0x1231cc['getRanges']()))){if(_0x3e734e){if(_0x1231cc['commentThread']&&_0x1231cc['commentThread']['length'])continue;for(const _0x1022cf of _0x1231cc['getRanges']())_0x3e734e['isIntersectingWithRange'](_0x1022cf)||_0x3e734e['addRange'](_0x1022cf);_0x1231cc['removeMarkers']();}else{_0x3e734e=_0x1231cc;for(const _0x4c2287 of _0x305016)_0x1231cc['isIntersectingWithRange'](_0x4c2287)||_0x1231cc['addRange'](_0x4c2287);}}if(_0x3e734e)return _0x3e734e;_0x277097['clear']();for(const {suggestion:_0x451ad6,meta:_0x555d32}of this['_findSuggestions'](_0x305016,'deletion'))_0x555d32['isOwn']&&(this['_mergeNestedSuggestions']||!_0x555d32['containsRangeInObject']&&!_0x555d32['isInsideObject'])&&qt(_0x451ad6,_0x44641a)&&_0x277097['add'](_0x451ad6);for(const _0x2bc9c6 of _0x277097){const _0x311c15=_0x2bc9c6['getRanges']();if(!_0x44641a||!_0x44641a['skipNestingCheck']){if(_0x305016['every'](_0xe6aef8=>_0x311c15['some'](_0x3c5670=>_0x3c5670['containsRange'](_0xe6aef8,!0x0))))return _0x2bc9c6;}(!_0x2bc9c6['attributes']||!_0x2bc9c6['attributes']['skipNestingCheck'])&&(_0x311c15['every'](_0x10a992=>_0x305016['some'](_0x5ba6a8=>_0x5ba6a8['containsRange'](_0x10a992,!0x0)))&&_0x2bc9c6['discard']());}const _0x17280b=_0x1d9854(),_0x18c38e=_0x2f89f6['id'],_0x24fc9c='deletion:'+_0x3c3cb2,_0x38809b=this['_setSuggestionData']({'id':_0x17280b,'type':_0x24fc9c,'createdAt':new Date(),'authorId':_0x18c38e,'attributes':_0x44641a});for(const _0x44325e of _0x305016)_0x44325e['detach'](),_0x44325e['isCollapsed']||'$graveyard'==_0x44325e['root']['rootName']||this['_addSuggestionMarker'](_0x24fc9c,_0x17280b,_0x18c38e,_0x44325e,u['getMultiRangeId']());return _0x38809b;}['markAttributeChange'](_0x487d2b,_0x37cf99,_0x38c0de,_0x3d4894,_0x23fa76){if(_0x487d2b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x542d83=this['editor']['plugins']['get']('Users')['me']['id'],_0x414e7f=Array['from'](this['_suggestions']['values']())['filter'](_0x559c17=>'attribute'==_0x559c17['type']&&_0x559c17['data']['key']==_0x37cf99&&_0x559c17['isIntersectingWithRange'](_0x487d2b));if('default'===this['_trackFormatChanges']){const _0x5c2ff5=this['_findSuggestions'](_0x487d2b,'insertion')['filter'](({meta:_0x488765})=>_0x488765['isOwn']&&!_0x488765['isInsideObject']&&!_0x488765['isNextTo'])['map'](({suggestion:_0x34a610})=>_0x34a610);_0x414e7f['unshift'](..._0x5c2ff5);}const _0x1a1921=new Map([[_0x487d2b,_0x38c0de]]);for(const _0x3d268e of _0x414e7f){const _0x27233d='attribute'==_0x3d268e['type']?_0x3d268e['data']['oldValue']:void 0x0,_0x24feda=_0x3d268e['getFirstRange'](),_0x5cfc39=Array['from'](_0x1a1921['keys']())['find'](_0x3993c2=>_0x3993c2['isIntersecting'](_0x24feda));if(!_0x5cfc39)continue;const _0x1c9b51=_0x5cfc39['getDifference'](_0x24feda);this['_isBlockAttribute'](_0x37cf99)&&'insertion'==_0x3d268e['type']&&0x0!=_0x1c9b51['length']||(_0x1a1921['delete'](_0x5cfc39),_0x1c9b51['forEach'](_0x266fa5=>{_0x1a1921['set'](_0x266fa5,_0x38c0de);}),'insertion'!=_0x3d268e['type']&&_0x27233d!=_0x3d4894&&_0x1a1921['set'](_0x5cfc39['getIntersection'](_0x24feda),_0x27233d));}const _0x87000=[];for(const [_0x5baab9,_0x2036a6]of _0x1a1921){const _0x2c1f62=_0x1d9854(),_0x4bcf42={'key':_0x37cf99,'oldValue':_0x2036a6,'newValue':_0x3d4894};_0x37cf99['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':_0x37cf99});const _0x193e4c=('attribute:'+(_0x37cf99+'|'+Gt({'newValue':_0x3d4894})))['substring'](0x0,0x3c),_0xbf2353=this['_setSuggestionData']({'id':_0x2c1f62,'type':_0x193e4c,'data':_0x4bcf42,'createdAt':new Date(),'authorId':_0x542d83,'attributes':_0x23fa76});_0x87000['push'](_0xbf2353),this['_addSuggestionMarker'](_0x193e4c,_0x2c1f62,_0x542d83,_0x5baab9);}return _0x87000;}['enableDefaultAttributesIntegration'](_0x9d5df9){this['enableCommand'](_0x9d5df9,(_0x37098a,..._0xfa090)=>{this['_recordAttributeChanges'](()=>{_0x37098a(..._0xfa090);});});}['registerBlockAttribute'](_0x2a869a){this['_blockAttributeKeys']['add'](_0x2a869a);}['registerInlineAttribute'](_0x556aea){this['_inlineAttributeKeys']['add'](_0x556aea);}['_getAttributeKey'](_0x130c40){return'attribute'==_0x130c40['type']?_0x130c40['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xe4fa7e,_0xa0c8ed){const _0x293672=_0xe4fa7e['getFirstMarker']();this['_model']['change'](_0x322a3f=>{_0x322a3f['updateMarker'](_0x293672,{'range':_0xa0c8ed});});}['_addThreadToSuggestion'](_0x3efee5){const _0x113790=_0x3efee5['id'],_0x11f3a5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x113790)||this['_commentsRepository']['addCommentThread']({'channelId':_0x11f3a5,'threadId':_0x113790,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x298c3a=this['_commentsRepository']['getCommentThread'](_0x113790);_0x298c3a['unbind']('isRemovable'),_0x298c3a['isRemovable']=!0x1,_0x3efee5['commentThread']=_0x298c3a;}['_checkSuggestionCorrectness'](_0x4ca54a,_0x414919,_0x49e0fb,_0x3e203a){if(_0x4ca54a['type']!=_0x414919||_0x4ca54a['subType']!=_0x49e0fb||_0x4ca54a['creator']['id']!=_0x3e203a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xec2a34('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x203575,_0x42b2b6){const _0x2424c5=_0x203575['getFirstRange']();if(_0x42b2b6['isEqual'](_0x2424c5))_0x203575['removeMarkers']();else{if(_0x2424c5['containsRange'](_0x42b2b6)){const _0x4368b9=this['_model']['createPositionAt'](_0x42b2b6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x203575,this['_model']['createRange'](_0x2424c5['start'],_0x4368b9));const _0x208829=_0x1d9854(),_0x5a1a4b=_0x203575['creator']['id'],_0x34f035=_0x203575['type']+':'+_0x203575['subType'];this['_setSuggestionData']({'id':_0x208829,'type':_0x34f035,'createdAt':new Date(),'authorId':_0x5a1a4b,'data':_0x203575['data'],'attributes':_0x203575['attributes']});const _0x2d1836=this['_model']['createPositionAt'](_0x42b2b6['end']['parent'],'after'),_0x3714ac=this['_model']['createRange'](_0x2d1836,_0x2424c5['end']);this['_addSuggestionMarker'](_0x34f035,_0x208829,_0x5a1a4b,_0x3714ac);}else{if(_0x2424c5['containsPosition'](_0x42b2b6['start'])){const _0x5a5328=this['_model']['createPositionAt'](_0x42b2b6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x203575,this['_model']['createRange'](_0x2424c5['start'],_0x5a5328));}else{const _0x42ea47=this['_model']['createPositionAt'](_0x42b2b6['end']['parent'],'after');this['_setSuggestionRange'](_0x203575,this['_model']['createRange'](_0x42ea47,_0x2424c5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2cfc96){for(const {suggestion:_0x4e8704,meta:_0x1ca58a}of this['_findSuggestions'](_0x2cfc96,'insertion')){if(!_0x1ca58a['isOwn'])continue;const _0x2ad545=_0x4e8704['getRanges']();for(const _0x85efb6 of _0x2ad545)if(!_0x2cfc96['getDifference'](_0x85efb6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x15c36c){const _0x168c7a=this['editor']['plugins']['get']('Users')['getUser'](_0x15c36c);if(!_0x168c7a)throw new _0xec2a34('track-changes-user-not-found',this);return _0x168c7a;}['_getExternalAuthor'](_0x522a03){const _0x5149f6=this['editor']['plugins']['get']('Users'),_0x329693=_0x40a42b('external:'+_0x522a03),_0x119aac=_0x5149f6['getUser'](_0x329693);return _0x119aac||_0x5149f6['addUser']({'id':_0x329693,'name':_0x522a03});}['_createSuggestion'](_0x24bc47,_0x30e40d,_0x5961f8,_0x419713,_0x4c2350){const _0x1a94fc=this['_getAuthorFromId'](_0x419713),_0x5fb11=this['_suggestionFactory']['buildSuggestion'](_0x24bc47,_0x30e40d,_0x5961f8,_0x1a94fc,_0x4c2350,_0x712934=>{this['_updateSuggestionData'](_0x5961f8,{'attributes':_0x712934});const _0x3c98e2=this['getSuggestion'](_0x5961f8);this['_joinWithAdjacentSuggestions'](new Set([_0x3c98e2])),this['_refreshSuggestionsChain'](new Set([_0x3c98e2]));});return this['listenTo'](_0x5fb11,'accept',()=>{this['_updateSuggestionData'](_0x5961f8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5fb11,'discard',()=>{this['_updateSuggestionData'](_0x5961f8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5961f8,_0x5fb11),this['_suggestionState']['set'](_0x5fb11,'notReady'),_0x5fb11;}['_splitMarkerName'](_0x2c109c){const _0x12feaf=_0x2c109c['split'](':');return{'group':_0x12feaf[0x0],'type':_0x12feaf[0x1],'subType':_0x12feaf['length']>=0x5?_0x12feaf[0x2]:null,'id':_0x12feaf['length']<0x5?_0x12feaf[0x2]:_0x12feaf[0x3],'authorId':_0x12feaf['length']<0x5?_0x12feaf[0x3]:_0x12feaf[0x4],'markerCount':0x6==_0x12feaf['length']?_0x12feaf[0x5]:null};}['_breakSuggestionMarker'](_0x302802,_0x166ef4,_0x1be359){const _0x1c30c8=_0x302802['getFirstRange'](),_0x5c6842=_0x1c30c8['start'],_0x3f600d=_0x1c30c8['end'];this['_setSuggestionRange'](_0x302802,this['_model']['createRange'](_0x5c6842,_0x166ef4));const _0x3c2208=_0x1d9854(),_0x38c133=_0x302802['creator']['id'],_0x5e5ee4=_0x302802['type']+(_0x302802['subType']?':'+_0x302802['subType']:'');this['_setSuggestionData']({'id':_0x3c2208,'type':_0x5e5ee4,'createdAt':new Date(),'authorId':_0x38c133,'originalSuggestionId':_0x302802['id'],'attributes':_0x302802['attributes'],'data':_0x302802['data']});const _0x52212d=this['_getAttributeKey'](_0x302802);('formatBlock'==_0x302802['type']||_0x52212d&&this['_isBlockAttribute'](_0x52212d))&&(_0x1be359=this['_model']['createPositionBefore'](_0x1be359['parent'])),this['_addSuggestionMarker'](_0x5e5ee4,_0x3c2208,_0x38c133,this['_model']['createRange'](_0x1be359,_0x3f600d));}['_findSuggestions'](_0x5d548d,_0x596409=null){const _0x315235=[],_0x187872=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5d548d)||(_0x5d548d=[_0x5d548d]);for(const _0x46bcc3 of this['getSuggestions']()){if(!_0x46bcc3['isInContent'])continue;if(_0x596409&&_0x46bcc3['type']!=_0x596409)continue;let _0x1599f4=!0x1;for(const _0x442fc8 of _0x46bcc3['getRanges']()){for(const _0x2d647e of _0x5d548d){const _0x31e2df=_0x2d647e['start']['isEqual'](_0x442fc8['end'])||_0x2d647e['end']['isEqual'](_0x442fc8['start']);if(_0x31e2df||_0x2d647e['getIntersection'](_0x442fc8)){const _0x2e2f89=_0x2d647e['containsRange'](_0x442fc8)&&Ot(this['_model']['schema'],_0x442fc8['start'],_0x2d647e),_0x9142da=_0x442fc8['containsRange'](_0x2d647e)&&Ot(this['_model']['schema'],_0x2d647e['start'],_0x442fc8);_0x315235['push']({'suggestion':_0x46bcc3,'meta':{'isOwn':_0x187872==_0x46bcc3['author'],'isNextTo':_0x31e2df,'isInsideObject':_0x2e2f89,'containsRangeInObject':_0x9142da}}),_0x1599f4=!0x0;break;}}if(_0x1599f4)break;}}return _0x315235;}['_addSuggestionMarker'](_0x2d6bf6,_0x4c24ea,_0x311b9e,_0x2d55d2,_0x544bf8){this['_model']['change'](_0x337393=>{let _0x308370='suggestion:'+_0x2d6bf6+':'+_0x4c24ea+':'+_0x311b9e;_0x544bf8&&(_0x308370=_0x308370+':'+_0x544bf8),_0x337393['addMarker'](_0x308370,{'range':_0x2d55d2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3504c0){const _0x4748d2=_0x3504c0['previous'],_0x142d6e=_0x3504c0['next'];_0x3504c0['previous']=null,_0x3504c0['next']=null,null!=_0x4748d2&&_0x4748d2['next']==_0x3504c0&&(_0x4748d2['next']=_0x142d6e),null!=_0x142d6e&&_0x142d6e['previous']==_0x3504c0&&(_0x142d6e['previous']=_0x4748d2),'ready'==this['_suggestionState']['get'](_0x3504c0)&&(this['_suggestionState']['set'](_0x3504c0,'removed'),this['fire']('suggestionUnloaded',_0x3504c0,_0x4748d2,_0x142d6e));}['_setSuggestionData'](_0x5be378){const _0x405510=_0x5be378['id'],_0x2ca513=this['addSuggestionData'](_0x5be378);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x36a2be=this['editor']['plugins']['get']('PendingActions'),_0x209ef3=_0x2ca513['hasComments'],_0x96ddd7=_0x2ca513['subType']?_0x2ca513['type']+':'+_0x2ca513['subType']:_0x2ca513['type'],_0x250b02=this['editor']['locale'],_0x28c481=_0x36a2be['add'](o(_0x250b02,'PENDING_ACTION_SUGGESTION')),_0x3e5dfc={'id':_0x405510,'type':_0x96ddd7,'hasComments':_0x209ef3,'data':_0x5be378['data']||null,'originalSuggestionId':_0x5be378['originalSuggestionId']||null,'attributes':_0x2ca513['attributes']};this['_adapter']['addSuggestion'](_0x3e5dfc)['then'](_0x2c87fc=>{_0x2ca513['_saved']=!0x0,_0x36a2be['remove'](_0x28c481),_0x2c87fc&&_0x2c87fc['createdAt']&&(this['_suggestions']['get'](_0x405510)['createdAt']=_0x2c87fc['createdAt']);})['catch'](_0x23632e=>{throw _0x144746('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ca513['discard']();}),_0x2ca513['stopListening'](),this['_suggestions']['delete'](_0x2ca513['id']),this['_suggestionState']['delete'](_0x2ca513),_0x23632e;});}return _0x2ca513;}['_isBlockAttribute'](_0x4fea13){return this['_blockAttributeKeys']['has'](_0x4fea13);}['_updateSuggestionData'](_0x404a70,_0x32cb36){const _0x44d4b1=this['editor']['plugins']['get']('PendingActions'),_0x41531e=this['getSuggestion'](_0x404a70);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x41531e['_saved']){const _0x14ec54=_0x44d4b1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x404a70,_0x32cb36)['then'](()=>{_0x44d4b1['remove'](_0x14ec54);});}else _0x41531e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x404a70,_0x32cb36);});}}['_getSuggestionData'](_0x47f65d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xec2a34('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47f65d);}['_handleNewSuggestionMarker'](_0x3d003b){const {id:_0x180747,type:_0x3b084c,subType:_0x2b8512,authorId:_0x43f645}=this['_splitMarkerName'](_0x3d003b),_0x2c422d=this['_suggestions']['get'](_0x180747)||this['_createSuggestion'](_0x3b084c,_0x2b8512,_0x180747,_0x43f645,{});switch(this['_checkSuggestionCorrectness'](_0x2c422d,_0x3b084c,_0x2b8512,_0x43f645),this['_suggestionState']['get'](_0x2c422d)){case'notReady':this['_getSuggestionData'](_0x180747)['then'](_0x285ab2=>{let _0x28c28c=Promise['resolve']();_0x285ab2['hasComments']&&(_0x28c28c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x180747})),_0x28c28c['then'](()=>{this['addSuggestionData'](_0x285ab2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c422d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x180747,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c422d,'ready'),this['fire']('suggestionLoaded',_0x2c422d);break;case'ready':this['fire']('suggestionChanged',_0x2c422d);}return _0x2c422d['addMarkerName'](_0x3d003b),_0x2c422d;}['_refreshSuggestionsChain'](_0x35a3d9){const _0x4ffeec=Array['from'](_0x35a3d9),_0x279461=_0x4ffeec['filter'](_0x3f3c2b=>'attribute'==_0x3f3c2b['type']);this['_refreshAttributeSuggestionsChain'](_0x279461);const _0x490636=_0x4ffeec['filter'](_0x1ea7aa=>!_0x1ea7aa['isMultiRange']&&'attribute'!=_0x1ea7aa['type']),_0x5fdfda=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bc1a0=>!_0x1bc1a0['isMultiRange']&&'attribute'!=_0x1bc1a0['type']),_0x30d58f=_0x5fdfda['filter'](_0x4b7363=>!_0x35a3d9['has'](_0x4b7363)),_0x3d751b=new Map(_0x5fdfda['map'](_0x284937=>[_0x284937,this['_suggestionFactory']['getSuggestionCallback'](_0x284937['type'],_0x284937['subType'],'chain')])),_0x489bbc=new Map(_0x5fdfda['map'](_0x5eb053=>[_0x5eb053,_0x5eb053['getFirstRange']()])),_0x4c72a7=new Set(),_0x4679e6=new Set();for(let _0x173932=0x0;_0x173932<_0x490636['length'];_0x173932++)_0xe2bfbb(_0x490636[_0x173932],_0x490636,_0x173932+0x1);for(let _0xaba5da=0x0;_0xaba5da<_0x490636['length'];_0xaba5da++)_0xe2bfbb(_0x490636[_0xaba5da],_0x30d58f,0x0);const _0x3d7691=new Set();for(let _0x10a1b5=0x0;_0x10a1b5<_0x490636['length'];_0x10a1b5++){const _0x257595=_0x490636[_0x10a1b5];!_0x4679e6['has'](_0x257595)&&_0x257595['previous']&&(_0x3d7691['add'](_0x257595['previous']),_0x257595['previous']['next']===_0x257595&&(_0x257595['previous']['next']=null),_0x257595['previous']=null),!_0x4c72a7['has'](_0x257595)&&_0x257595['next']&&(_0x3d7691['add'](_0x257595['next']),_0x257595['next']['previous']===_0x257595&&(_0x257595['next']['previous']=null),_0x257595['next']=null);}function _0xe2bfbb(_0x11eb3a,_0x16c948,_0xaa8d23){for(let _0x5e6af7=_0xaa8d23;_0x5e6af7<_0x16c948['length'];_0x5e6af7++){const _0x2bda59=_0xa484b1(_0x11eb3a,_0x16c948[_0x5e6af7]);_0x2bda59&&(_0x2bda59[0x0]['next']=_0x2bda59[0x1],_0x2bda59[0x1]['previous']=_0x2bda59[0x0],_0x4c72a7['add'](_0x2bda59[0x0]),_0x4679e6['add'](_0x2bda59[0x1]));}}function _0xa484b1(_0x254b8d,_0x433b99){if(_0x254b8d['author']['id']!==_0x433b99['author']['id'])return null;const _0x1d3205=_0x3d751b['get'](_0x254b8d)(_0x254b8d,_0x433b99,_0x489bbc['get'](_0x254b8d),_0x489bbc['get'](_0x433b99));if(!_0x1d3205)return null;return _0x3d751b['get'](_0x433b99)(_0x254b8d,_0x433b99,_0x489bbc['get'](_0x254b8d),_0x489bbc['get'](_0x433b99))?_0x1d3205[0x1]['commentThread']&&_0x1d3205[0x1]['commentThread']['length']?null:_0x1d3205:null;}_0x3d7691['size']&&this['_refreshSuggestionsChain'](_0x3d7691);}['_refreshAttributeSuggestionsChain'](_0x372070){if(0x0==_0x372070['length'])return;const _0x10f688=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x270ad2=>'attribute'==_0x270ad2['type']&&_0x270ad2['_isDataLoaded']),_0x38c6a0=[],_0x2e92a4=new Map();for(const _0x3042f0 of _0x10f688){const _0x33c302=_0x40a42b(_0x3042f0['attributes']);_0x2e92a4['has'](_0x33c302)||(_0x2e92a4['set'](_0x33c302,_0x38c6a0['length']),_0x38c6a0['push']([]));const _0x1a954c=_0x2e92a4['get'](_0x33c302);_0x38c6a0[_0x1a954c]['push'](_0x3042f0);}!(function(){_0x38c6a0['sort']((_0x73b3f5,_0x12347a)=>{const _0x52a6fa=_0x73b3f5[0x0]['createdAt'],_0x4bedd1=_0x12347a[0x0]['createdAt'];return _0x52a6fa==_0x4bedd1?_0x73b3f5[0x0]['attributes']['groupId']<_0x12347a[0x0]['attributes']['groupId']?-0x1:0x1:_0x52a6fa<_0x4bedd1?-0x1:0x1;});for(const _0x4c1dd8 of _0x38c6a0)_0x4c1dd8['sort']((_0x56e56d,_0xedf378)=>_0x56e56d['id']<_0xedf378['id']?-0x1:0x1);}());for(let _0x331f01=0x0;_0x331f01<_0x38c6a0['length'];_0x331f01++){if(0x0==_0x38c6a0[_0x331f01]['length'])continue;const _0x5d3248=[];for(let _0x3ee525=_0x331f01+0x1;_0x3ee525<_0x38c6a0['length'];_0x3ee525++)0x0!=_0x38c6a0[_0x3ee525]['length']&&_0x485fdb(_0x38c6a0[_0x331f01],_0x38c6a0[_0x3ee525])&&_0x5d3248['push'](_0x3ee525);for(const _0x1be61c of _0x5d3248)_0x38c6a0[_0x331f01]=_0x38c6a0[_0x331f01]['concat'](_0x38c6a0[_0x1be61c]),_0x38c6a0[_0x1be61c]=[];}for(const _0x2b6b9b of _0x38c6a0)for(let _0x33cc1b=0x0;_0x33cc1b<_0x2b6b9b['length'];_0x33cc1b++){const _0x2caf2b=_0x2b6b9b[_0x33cc1b+0x1]||null;_0x2b6b9b[_0x33cc1b]['next']!==_0x2caf2b&&(_0x2b6b9b[_0x33cc1b]['next']=_0x2caf2b);}for(const _0x110601 of _0x38c6a0)for(let _0x522ac1=0x0;_0x522ac1<_0x110601['length'];_0x522ac1++){const _0x292371=_0x110601[_0x522ac1-0x1]||null;_0x110601[_0x522ac1]['previous']!==_0x292371&&(_0x110601[_0x522ac1]['previous']=_0x292371);}function _0x485fdb(_0x340771,_0x18e61b){if(_0x340771[0x0]['attributes']['groupId']!==_0x18e61b[0x0]['attributes']['groupId']&&_0x340771[0x0]['author']!==_0x18e61b[0x0]['author'])return!0x1;if(!function(_0x4aefac,_0x2e4347){if(!_0x4aefac['hasComments']&&!_0x2e4347['hasComments'])return!0x0;if(_0x4aefac['hasComments']&&_0x2e4347['hasComments'])return!0x1;if(_0x4aefac['hasComments']&&_0x2e4347['createdAt']<_0x4aefac['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2e4347['hasComments']&&_0x4aefac['createdAt']<_0x2e4347['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x340771[0x0],_0x18e61b[0x0]))return!0x1;const _0x116c0d=Tt(_0x340771[0x0]['attributes'],'groupId'),_0x4fbf27=Tt(_0x18e61b[0x0]['attributes'],'groupId');if(!_0x33fc0b(_0x116c0d,_0x4fbf27))return!0x1;return!!_0x340771['every'](_0x3af921=>_0x18e61b['some'](_0x473be6=>_0x3af921['getFirstRange']()['isEqual'](_0x473be6['getFirstRange']())))&&_0x18e61b['every'](_0x20f9eb=>_0x340771['some'](_0x566e66=>_0x20f9eb['getFirstRange']()['isEqual'](_0x566e66['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1d6a2c){const _0x2e2137=Array['from'](_0x1d6a2c),_0x2e5c39=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4292b4=_0x2e5c39['filter'](_0x1df34c=>!_0x1d6a2c['has'](_0x1df34c)),_0x507703=new Map(_0x2e2137['map'](_0x2de990=>[_0x2de990,this['_suggestionFactory']['getSuggestionCallback'](_0x2de990['type'],_0x2de990['subType'],'join')])),_0x3cfdd9=new Map(_0x2e5c39['map'](_0x13466a=>[_0x13466a,_0x13466a['getRanges']()]));for(let _0x2cb58d=0x0;_0x2cb58d<_0x2e2137['length'];_0x2cb58d++){if(_0x3cdc8a(this,_0x2e2137[_0x2cb58d],_0x2e2137,_0x2cb58d+0x1))return!0x0;}for(let _0x4f455d=0x0;_0x4f455d<_0x2e2137['length'];_0x4f455d++){if(_0x3cdc8a(this,_0x2e2137[_0x4f455d],_0x4292b4,0x0))return!0x0;}return!0x1;function _0x3cdc8a(_0x4102f7,_0x5b2c0d,_0x21a142,_0x57e482){for(let _0x227d38=_0x57e482;_0x227d38<_0x21a142['length'];_0x227d38++){const _0x1b3251=_0x21a142[_0x227d38];if(_0x1b3251['type']!==_0x5b2c0d['type']||_0x1b3251['author']['id']!==_0x5b2c0d['author']['id']||_0x1b3251['subType']!==_0x5b2c0d['subType'])continue;if(!Jt(_0x5b2c0d,_0x1b3251))continue;if('attribute'==_0x5b2c0d['type']&&_0x5b2c0d['data']['oldValue']!=_0x1b3251['data']['oldValue'])continue;if('attribute'==_0x5b2c0d['type']&&_0x4102f7['_isBlockAttribute'](_0x5b2c0d['data']['key']))continue;if('formatBlock'==_0x5b2c0d['type']){const _0x4d9906=_0x4102f7['editor']['model'],_0x54f239=_0x5b2c0d['getContainedElement']();if(_0x54f239&&(_0x4d9906['schema']['isObject'](_0x54f239)||_0x4d9906['schema']['isLimit'](_0x54f239)))continue;}const _0xd5efd6=_0x507703['get'](_0x5b2c0d),_0x3305a6=_0x3cfdd9['get'](_0x5b2c0d),_0x3cb8f6=_0x3cfdd9['get'](_0x1b3251),_0x3cefea=_0x5b2c0d['commentThread']&&_0x5b2c0d['commentThread']['length'],_0x13b4ba=_0x1b3251['commentThread']&&_0x1b3251['commentThread']['length'];if(!_0x3cefea&&_0xd5efd6(_0x3cb8f6,_0x3305a6))return _0x4102f7['_joinSuggestions'](_0x1b3251,_0x5b2c0d),_0x3cfdd9['delete'](_0x5b2c0d),!0x0;if(!_0x13b4ba&&_0xd5efd6(_0x3305a6,_0x3cb8f6))return _0x4102f7['_joinSuggestions'](_0x5b2c0d,_0x1b3251),_0x3cfdd9['delete'](_0x1b3251),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2459c3,_0x160fb2){if(_0x2459c3['isMultiRange']){for(const _0x48533f of _0x160fb2['getRanges']())_0x2459c3['addRange'](_0x48533f);}else{const _0x3ac892=_0x160fb2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2459c3,this['_model']['createRange'](_0x2459c3['getFirstRange']()['start'],_0x3ac892));}_0x160fb2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x25a042,_0x3961f1,_0x31f6c2){const _0x52a028=_0x25a042['startsWith']('format')||_0x25a042['startsWith']('attribute')?'FORMATTING':_0x25a042['toUpperCase']();return o(this['editor']['locale'],_0x3961f1+'_'+_0x52a028+'_SUGGESTION_ANNOUNCEMENT',_0x31f6c2);}['_initAriaMarkerChangeAnnouncements'](){const _0x46be51=this['editor'];if(!_0x46be51['ui'])return;const {ariaLiveAnnouncer:_0x26cd35}=_0x46be51['ui'];_0x3e644a(this['_model'],({left:_0x338a90,entered:_0x42437b})=>{for(const _0x3d400d of _0x338a90){const {group:_0xbee4aa,type:_0x1548ed}=this['_splitMarkerName'](_0x3d400d['name']);if('suggestion'===_0xbee4aa){_0x26cd35['announce'](this['_getMarkerAnnouncementText'](_0x1548ed,'LEAVE'));break;}}for(const _0x2bb114 of _0x42437b){const {group:_0x2525da,type:_0x55ea86}=this['_splitMarkerName'](_0x2bb114['name']);if('suggestion'===_0x2525da){_0x26cd35['announce'](this['_getMarkerAnnouncementText'](_0x55ea86,'ENTER',_0x8b9ade(_0x20e465)));break;}}});}['_processAttributeChanges'](_0x3b323e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2673d9=this['editor'],_0x2887db=_0x2673d9['model']['document']['differ']['getChanges']();if(0x0==_0x2887db['length'])return!0x1;const _0x2c3e75=[],_0x16632f=_0x2887db['filter'](_0x5132b9=>'attribute'==_0x5132b9['type']),_0x359eaf=_0x2887db['filter'](_0x5789fe=>'insert'==_0x5789fe['type']&&'$text'!=_0x5789fe['name']),_0x1b7eca=_0x2887db['filter'](_0x23f840=>'remove'==_0x23f840['type']&&'$text'!=_0x23f840['name']);for(const _0x51d04c of _0x16632f)_0x2c3e75['push']({'key':_0x51d04c['attributeKey'],'newValue':_0x51d04c['attributeNewValue'],'oldValue':_0x51d04c['attributeOldValue'],'range':Pt(_0x51d04c['range'],_0x2673d9['model'])});for(const _0x2d9b30 of _0x359eaf){const _0x37506b=_0x1b7eca['find'](_0x246169=>_0x246169['position']['isEqual'](_0x2d9b30['position']));_0x37506b&&_0x2c3e75['push']({'key':m,'newValue':_0x2d9b30['name'],'oldValue':_0x37506b['name'],'range':_0x2673d9['model']['createRangeOn'](_0x2d9b30['position']['nodeAfter'])});}return 0x0!=_0x2c3e75['length']&&this['_reduceExistingSuggestions'](_0x3b323e,_0x2c3e75);}['_processAttributeSuggestions'](_0x41d73e){let _0x107e6f=!0x1;const _0x3cc994=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x47f1d6=>_0x47f1d6['data']['newRange']&&_0x47f1d6['name']['startsWith']('suggestion:attribute:'));for(const _0x2d6efd of _0x3cc994){const {subType:_0xb07aff,id:_0x1313b1}=this['_splitMarkerName'](_0x2d6efd['name']),_0x12fcc7=_0xb07aff['split']('|')[0x0];for(const _0x33a434 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x33a434['id']!=_0x1313b1&&'attribute'==_0x33a434['type']&&_0x33a434['data']&&_0x33a434['data']['key']==_0x12fcc7&&_0x33a434['getFirstRange']()['isIntersecting'](_0x2d6efd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x33a434,_0x2d6efd['data']['newRange'],_0x41d73e),_0x107e6f=!0x0);}return _0x107e6f;}['_recordAttributeChanges'](_0x16a88f){this['_recordAttributeSuggestions']=!0x0,_0x16a88f();}['_isRegisteredAttribute'](_0x1c992a){const _0x33c249=this['_isBlockAttribute'](_0x1c992a),_0x318928=this['_inlineAttributeKeys']['has'](_0x1c992a);return _0x33c249||_0x318928;}['_reduceExistingSuggestions'](_0x50b054,_0x5d01bd){if(0x0==_0x5d01bd['length'])return!0x1;let _0x30ddc2=!0x1;for(const _0x464457 of _0x5d01bd){const _0x13d106=this['_findSuggestions'](_0x464457['range'],'attribute')['filter'](_0x45eb0f=>!_0x45eb0f['meta']['isNextTo'])['map'](_0x241328=>_0x241328['suggestion']),_0xdbc537=_0x40a42b({'newValue':_0x464457['newValue']});_0x13d106['filter'](_0x32b2e7=>{const [_0x3f2774,_0x4c437b]=_0x32b2e7['subType']['split']('|');return _0x3f2774==_0x464457['key']&&_0x4c437b!=_0xdbc537;})['forEach'](_0x200e61=>{this['_reduceSuggestionAttributeRange'](_0x200e61,_0x464457['range'],_0x50b054),_0x30ddc2=!0x0;});}return _0x30ddc2;}['_reduceSuggestionAttributeRange'](_0x28a6f9,_0x4c5694,_0x1b3e09){const _0x4a4626=_0x28a6f9['getFirstRange']()['getDifference'](_0x4c5694);0x0!==_0x4a4626['length']?0x1!==_0x4a4626['length']?this['_breakSuggestionMarker'](_0x28a6f9,_0x4c5694['start'],_0x4c5694['end']):this['_setSuggestionRange'](_0x28a6f9,_0x4a4626[0x0]):_0x1b3e09['removeMarker'](_0x28a6f9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x107cfc){this['_editor']=_0x107cfc,this['_model']=_0x107cfc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c7f88,_0x5885,_0xa46652,_0x37565c,_0x327773,_0x4dc4ae){return new u(this['_model'],{'type':_0x5c7f88,'subType':_0x5885,'id':_0xa46652,'author':_0x37565c,'creator':_0x37565c,'attributes':_0x327773,'onAttributesChange':_0x4dc4ae,'onAccept':(..._0x4ddaee)=>this['getSuggestionCallback'](_0x5c7f88,_0x5885,'accept')(..._0x4ddaee),'onDiscard':(..._0x127ee4)=>this['getSuggestionCallback'](_0x5c7f88,_0x5885,'discard')(..._0x127ee4)});}['registerCustomCallback'](_0x4f9aec,_0xdd5573,_0x4b9bb9,_0x438128){const _0x1cc902=_0x4f9aec+':'+_0xdd5573+':'+_0x4b9bb9;this['_customCallbacks']['set'](_0x1cc902,_0x438128);}['getSuggestionCallback'](_0x3b9b07,_0x2f2202,_0x2e8b99){const _0x375705=_0x3b9b07+':'+_0x2f2202+':'+_0x2e8b99;return this['_customCallbacks']['get'](_0x375705)||this['_defaultCallbacks']['get'](_0x3b9b07+':'+_0x2e8b99);}['_registerDefaultCallbacks'](){const _0x4b4f28=()=>!0x1,_0x210f0b=_0x49e0d4=>{_0x49e0d4['sort']((_0x2d7e5f,_0xb9b56)=>_0x2d7e5f['start']['isBefore'](_0xb9b56['start'])?0x1:-0x1),this['_model']['change'](_0x46e88c=>{for(const _0x272f7d of _0x49e0d4){let _0x359502;_0x359502=_0x272f7d['end']['isAtEnd']&&_0x272f7d['end']['parent']==_0x272f7d['start']['nodeAfter']?_0x46e88c['createSelection'](_0x272f7d['start']['nodeAfter'],'on'):_0x46e88c['createSelection'](_0x272f7d),this['_model']['deleteContent'](_0x359502,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x316f01=(_0x46b8ac,_0x4697e7)=>{_0x4697e7&&this['_model']['change'](_0x2c5ef4=>{const {commandName:_0x37dc7d,commandParams:_0x207208=[]}=_0x4697e7,_0x4b81bc=_0x46b8ac['map'](_0x173177=>(Vt(_0x173177)&&(_0x173177=this['_model']['createRange'](_0x173177['end'])),_0x173177))['filter'](_0x400c79=>'$graveyard'!==_0x400c79['root']['rootName']);if(_0x4b81bc['length']<0x1)return;const _0xbec087=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4da425=>_0x52a99c['fromRange'](_0x4da425));_0x2c5ef4['setSelection'](_0x4b81bc);for(const _0x5ec902 of this['_editor']['commands']['commands']())_0x5ec902['refresh']();_0x207208['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37dc7d,..._0x207208);const _0x18feba=_0xbec087['filter'](_0x547b54=>'$graveyard'!=_0x547b54['root']['rootName']);_0x18feba['length']>0x0&&_0x2c5ef4['setSelection'](_0x18feba);for(const _0x27cece of _0xbec087)_0x27cece['detach']();});},_0x28c4c1=(_0x43873d,_0x1baf6c)=>0x1==_0x43873d['length']&&0x1==_0x1baf6c['length']&&_0x43873d[0x0]['end']['isEqual'](_0x1baf6c[0x0]['start']),_0x29dfee=(_0x43c2db,_0x2057fe,_0x21e1bf,_0x9eb370)=>Ht(_0x43c2db,_0x2057fe,_0x21e1bf,_0x9eb370,this['_model'])?[_0x43c2db,_0x2057fe]:Ht(_0x2057fe,_0x43c2db,_0x9eb370,_0x21e1bf,this['_model'])?[_0x2057fe,_0x43c2db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b4f28),this['_defaultCallbacks']['set']('insertion:discard',_0x210f0b),this['_defaultCallbacks']['set']('insertion:join',_0x28c4c1),this['_defaultCallbacks']['set']('insertion:chain',_0x29dfee),this['_defaultCallbacks']['set']('deletion:accept',_0x210f0b),this['_defaultCallbacks']['set']('deletion:discard',_0x4b4f28),this['_defaultCallbacks']['set']('deletion:join',_0x28c4c1),this['_defaultCallbacks']['set']('deletion:chain',_0x29dfee),this['_defaultCallbacks']['set']('formatInline:accept',_0x316f01),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b4f28),this['_defaultCallbacks']['set']('formatInline:join',_0x28c4c1),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b4f28),this['_defaultCallbacks']['set']('formatBlock:accept',_0x316f01),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b4f28),this['_defaultCallbacks']['set']('formatBlock:join',_0x28c4c1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b4f28),this['_defaultCallbacks']['set']('attribute:accept',_0x4b4f28),this['_defaultCallbacks']['set']('attribute:discard',(_0x2058ee,_0x10dc05)=>{if(!_0x10dc05)return;const _0x442f9c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x18e276=>{if(_0x10dc05['key']==m)for(const _0x3e3e96 of _0x2058ee){const _0x3c7c75=_0x3e3e96['start']['nodeAfter'],_0x33f17c=_0x10dc05['oldValue'];_0x18e276['rename'](_0x3c7c75,_0x33f17c);}else{if(_0x442f9c['_isBlockAttribute'](_0x10dc05['key'])){for(const _0xe42d3d of _0x2058ee)void 0x0!==_0x10dc05['oldValue']?_0x18e276['setAttribute'](_0x10dc05['key'],_0x10dc05['oldValue'],_0xe42d3d['start']['nodeAfter']):_0x18e276['removeAttribute'](_0x10dc05['key'],_0xe42d3d['start']['nodeAfter']);}else{for(const _0xdb2af0 of _0x2058ee)_0x10dc05['oldValue']?_0x18e276['setAttribute'](_0x10dc05['key'],_0x10dc05['oldValue'],_0xdb2af0):_0x18e276['removeAttribute'](_0x10dc05['key'],_0xdb2af0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x28c4c1);}}function Ot(_0x8eb756,_0x5f572c,_0x94aac7){for(const _0x4e6d02 of _0x5f572c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4e6d02['root']==_0x4e6d02)return!0x1;if(!_0x94aac7['containsItem'](_0x4e6d02))return!0x1;if(_0x8eb756['isObject'](_0x4e6d02)||_0x8eb756['isLimit'](_0x4e6d02))return!0x0;}return!0x1;}function Vt(_0x5bf533){return _0x5bf533['end']['parent']==_0x5bf533['start']['nodeAfter']&&_0x5bf533['end']['isAtStart'];}function Ut(_0x390612,_0x10f3fd,_0x59c463,_0x28c93a){const _0x295262=_0x4d469b=>!_0x4d469b['item']['is']('$textProxy')&&!_0x28c93a['isObject'](_0x4d469b['item']),_0x1082e1=_0x390612['start']['getLastMatchingPosition'](_0x295262),_0x50963d=_0x390612['end']['getLastMatchingPosition'](_0x295262,{'direction':'backward'});return(!_0x390612['start']['isEqual'](_0x1082e1)||!_0x390612['end']['isEqual'](_0x50963d))&&(_0x1082e1['isBefore'](_0x50963d)?_0x59c463['updateMarker'](_0x10f3fd,{'range':_0x59c463['createRange'](_0x1082e1,_0x50963d)}):_0x59c463['removeMarker'](_0x10f3fd),!0x0);}function Gt(_0x2990a2){return _0x40a42b(_0x2990a2);}function Ft(_0x1b5c91){const _0x36a494=_0x1b5c91['start']['nodeAfter'];return _0x36a494&&_0x36a494['is']('element');}function Pt(_0x2e1cde,_0xc8df4d){return null==_0x2e1cde['end']['nodeBefore']&&_0x2e1cde['end']['parent']==_0x2e1cde['start']['nodeAfter']?Lt(_0x2e1cde['start']['nodeAfter'],_0xc8df4d):_0x2e1cde;}function Lt(_0x2aa49b,_0x5aa412){const _0x4b5609=_0x5aa412['schema']['isObject'](_0x2aa49b)||_0x5aa412['schema']['isSelectable'](_0x2aa49b);return _0x5aa412['createRange'](_0x5aa412['createPositionAt'](_0x2aa49b,'before'),_0x4b5609?_0x5aa412['createPositionAfter'](_0x2aa49b):_0x5aa412['createPositionAt'](_0x2aa49b,'end'));}function Ht(_0xef0ead,_0x13d746,_0x55ea0f,_0x3ddaef,_0x380e06){if(_0xef0ead['next'])return!0x1;if(!Jt(_0xef0ead,_0x13d746))return!0x1;if(_0x55ea0f['end']['isEqual'](_0x3ddaef['start']))return!0x0;if(_0xef0ead['type']!=_0x13d746['type'])return!0x1;if(!_0x55ea0f['end']['isTouching'](_0x3ddaef['start']))return!0x1;const _0x30bc0b=_0x380e06['createRange'](_0x55ea0f['end'],_0x3ddaef['start'])['getWalker']();for(const _0x874400 of _0x30bc0b)if(['elementStart','elementEnd']['includes'](_0x874400['type'])&&_0x380e06['schema']['isLimit'](_0x874400['item']))return!0x1;return!0x0;}function Jt(_0x313da,_0x47fdef){if(!_0x313da['_isDataLoaded']||!_0x47fdef['_isDataLoaded'])return!0x1;const _0x248c77=new Set(Object['keys'](_0x313da['attributes'])),_0xec9eb6=new Set(Object['keys'](_0x47fdef['attributes']));if(_0x248c77['delete']('groupId'),_0xec9eb6['delete']('groupId'),0x0==_0x248c77['size']&&0x0==_0xec9eb6['size'])return!0x0;if(_0x248c77['size']!=_0xec9eb6['size'])return!0x1;const _0xf6ba0d={..._0x313da['attributes']},_0x207f5c={..._0x47fdef['attributes']};return delete _0xf6ba0d['groupId'],delete _0x207f5c['groupId'],JSON['stringify'](_0xf6ba0d)==JSON['stringify'](_0x207f5c);}function qt(_0x26347a,_0x4d1975){const _0xfad32e=zt(_0x26347a['attributes']),_0x56da7c=zt(_0x4d1975);if(!_0x26347a['_isDataLoaded'])return!0x1;for(const _0x4f8778 of Object['keys'](_0x56da7c))if(!_0x33fc0b(_0xfad32e[_0x4f8778],_0x56da7c[_0x4f8778]))return!0x1;return!0x0;}function zt(_0x307083){const _0x542a2d=Object['assign']({},_0x307083);return delete _0x542a2d['skipNestingCheck'],delete _0x542a2d['tablePasteChainId'],_0x542a2d;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1eebb1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4cc1eb,_0x4a5707,_0x270a92,_0x3943e1){super(),this['model']=_0x4a5707,this['view']=_0x270a92,this['commentThreadController']=_0x3943e1,this['_editor']=_0x4cc1eb,this['_acceptCommand']=_0x4cc1eb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4cc1eb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4fe80b,_0x5cb3f2)=>_0x4fe80b||_0x5cb3f2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x331672=>_0x331672&&this['_editor']['model']['canEditAt'](_0x4a5707['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3773d2=>_0x3773d2&&this['_editor']['model']['canEditAt'](_0x4a5707['getRanges']())),this['_pendingAction']=null,_0x270a92['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x270a92,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x270a92,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x270a92,'change:isDirty',()=>{_0x270a92['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 _0x4c4d50=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4c4d50);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x243c5a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c8a9a,_0x10436f,_0x5c85d0,_0x6df479){super(_0x3c8a9a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3872c0(_0x3c8a9a,o(_0x3c8a9a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10436f['authoredAt']),this['bind']('authoredAt')['to'](_0x10436f),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x10436f,'authoredAt',this,'descriptionParts',(_0x3cabc8,_0x25e92e,_0x58f473)=>{const _0x1881b8=_0x58f473['map'](_0x21170b=>ls(_0x21170b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3cabc8-0x1,_0x10436f['author']['name'],_0x25e92e?_0x6df479['formatDateTime'](_0x25e92e):'',new DOMParser()['parseFromString'](_0x1881b8,'text/html')['body']['textContent']]);}),this['focusables']=new _0x487448(),this['focusTracker']=new _0x4735f9(),this['keystrokes']=new _0x2da3ad(),this['focusCycler']=new _0x58e1d3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1cbc07=>_0x1cbc07['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10436f,this['_localUser']=_0x5c85d0,this['_config']=_0x6df479,_0x6df479['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3c2da8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x56a4e9}=this['_config'];this['commentsListView']=new _0x56a4e9(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',_0x5e591c=>_0x5e591c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x14dc2c,_0x5a3dec)=>_0x14dc2c||!!_0x5a3dec);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x526598}=this['_config'],_0x51d9ea=new _0x526598(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5e5582=_0x51d9ea['commentInputView'];return _0x51d9ea['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5e5582,'value',(_0x205f01,_0x5f18b7,_0x1e86f2)=>!!_0x1e86f2||_0x205f01&&!_0x5f18b7),_0x5e5582['on']('submit',(_0x57f3a4,_0x423031)=>{this['fire']('addComment',_0x423031),_0x5e5582['editor']['setData']('');}),_0x5e5582['on']('cancel',()=>this['focus']()),_0x5e5582['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51d9ea;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5c12c5,_0x464838,_0x2cabe5,_0x1d800f){super(_0x5c12c5,_0x464838,_0x2cabe5,_0x1d800f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x23fdac=>_0x23fdac&&_0x23fdac[0x0]?_0x23fdac[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x901b71,_0x1f1085)=>{let _0x1d4878='';for(const _0x45fe19 of _0x901b71)_0x1d4878+='<p>'+ls(_0x45fe19['content'],_0x45fe19['color'])+'</p>';return _0x1f1085?_0x1d4878:_0x1d1250(_0x1d4878,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1d800f['SuggestionView'](_0x5c12c5,_0x464838,{'formatDateTime':_0x1d800f['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1e1feb=this['bindTemplate'],_0x2de0ca=[this['suggestionView']];return this['commentsListView']&&_0x2de0ca['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2de0ca['push'](this['commentThreadInputView']),_0x2de0ca['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1e1feb['if']('isActive','ck-suggestion-wrapper--active'),_0x1e1feb['to']('type',_0x373bf0=>'ck-suggestion-'+_0x373bf0),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1e1feb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2de0ca};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x243c5a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x161e9c,_0x88865b,_0x565177){super(_0x161e9c),this['_model']=_0x88865b,this['_config']=_0x565177,this['set']('description',''),this['bind']('authoredAt')['to'](_0x88865b),this['acceptButton']=this['_createButton'](o(_0x161e9c,'Accept\x20suggestion'),_0x79ba0e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x161e9c,'Discard\x20suggestion'),_0x79ba0e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3bc74b(_0x161e9c,_0x88865b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x487448([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4735f9(),this['keystrokes']=new _0x2da3ad(),this['focusCycler']=new _0x58e1d3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x118f76=>_0x118f76['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x41de66=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x41de66['innerHTML']=this['description'],this['on']('change:description',(_0x590375,_0x5f01af,_0x2ba7e2)=>{_0x41de66['innerHTML']=_0x2ba7e2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x59f045=this['bindTemplate'],_0x43d5f5=[{'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':_0x59f045['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59f045['to']('authoredAt',_0x1637bc=>this['_config']['formatDateTime'](_0x1637bc))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x43d5f5['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x43d5f5}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2a17ed,_0x4d65b1,_0x192348,_0x54cd50,_0x4e90c1){const _0x383bb3=new _0x2f3f93(this['locale']);return _0x383bb3['set']({'label':_0x2a17ed,'icon':_0x4d65b1,'tooltip':!0x0,'tooltipPosition':_0x4e90c1}),_0x383bb3['extendTemplate']({'attributes':{'class':_0x192348}}),_0x383bb3['on']('execute',()=>{this['fire'](_0x54cd50,this['_model']['id']);}),_0x383bb3;}['_setupKeyboardNavigation'](){const _0x36e7c1=this['element'];this['keystrokes']['listenTo'](_0x36e7c1);for(const _0x12faa7 of this['focusables'])this['focusTracker']['add'](_0x12faa7['element']),this['keystrokes']['listenTo'](_0x12faa7['element']);this['keystrokes']['set']('enter',(_0x651d0e,_0x4ab626)=>{_0x36e7c1===_0x651d0e['target']&&(this['focusCycler']['focusFirst'](),_0x4ab626());}),this['keystrokes']['set']('esc',(_0x38312b,_0x37f726)=>{_0x36e7c1!==_0x38312b['target']&&(this['focus'](),_0x37f726());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x4db285{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c2de3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x27ac27){super(_0x27ac27),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x41af71=this['editor']['config'];_0x41af71['define']('trackChanges.SuggestionThreadView',re),_0x41af71['define']('trackChanges.SuggestionView',ce),_0x41af71['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x41af71['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b9024,_0x3296b6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3eed89,_0x323b43]of this['_handleControllerBuffer']){const _0x31bebe=this['_suggestionToController']['has'](_0x3eed89);_0x31bebe||_0x323b43?_0x31bebe&&_0x323b43&&this['_destroyController'](_0x3eed89):this['_initializeController'](_0x3eed89);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b9024,_0x3296b6);}['init'](){const _0xc9149b=this['editor'],_0x2ecf22=_0xc9149b['plugins']['get']('TrackChangesEditing'),_0x59776f=_0xc9149b['plugins']['get']('Annotations'),_0x3a6604=_0xc9149b['plugins']['get']('EditorAnnotations'),_0x39aedf=_0xc9149b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3a6604['addSourceCollector'](()=>{const _0x11089f=[];for(const [_0x16398c,_0x57cc0a]of Array['from'](this['_suggestionToController'])){const _0x5ec68a=_0x16398c['getAllAdjacentSuggestions'](),_0x2bb6b7=[];for(const _0x1327c7 of _0x5ec68a){if(!_0x1327c7['isInContent'])continue;if(_0x1327c7['isMultiRange']){_0x2bb6b7['push'](..._0x1327c7['getRanges']());continue;}const _0x1b551f=_0x1327c7['getFirstRange']();if(_0x2bb6b7['length']>0x0){const _0x48a180=_0x2bb6b7[0x0]['getJoined'](_0x1b551f);if(_0x48a180){_0x2bb6b7[0x0]=_0x48a180;continue;}}_0x2bb6b7['push'](_0x1b551f);}_0x11089f['push']([_0x57cc0a['view'],_0x2bb6b7]);}return _0x11089f;}),this['listenTo'](_0x2ecf22,'suggestionLoaded',(_0x30cf1a,_0x5f094d)=>{this['listenTo'](_0x5f094d,'change:previous',(_0x4ff42d,_0x3bdb74,_0x5bda0d,_0x48d82a)=>{_0x5f094d['isInContent']&&(null==_0x5bda0d?(this['_updateController'](_0x48d82a['head']),this['_handleSuggestionControllerDelayed'](_0x5f094d,!0x1)):(this['_updateController'](_0x5bda0d['head']),null==_0x48d82a&&this['_handleSuggestionControllerDelayed'](_0x5f094d,!0x0)));}),null!==_0x5f094d['previous']?this['_updateController'](_0x5f094d['head']):this['_handleSuggestionControllerDelayed'](_0x5f094d,!0x1);}),this['listenTo'](_0x2ecf22,'suggestionUnloaded',(_0x1f3b3f,_0x3fa645,_0x1adb8a)=>{this['stopListening'](_0x3fa645,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3fa645),this['_suggestionToController']['has'](_0x3fa645)&&this['_destroyController'](_0x3fa645),_0x1adb8a&&this['_updateController'](_0x1adb8a['head']);}),this['listenTo'](_0x2ecf22,'suggestionChanged',(_0x1bc7eb,_0x1ee217)=>{this['_updateController'](_0x1ee217);}),this['listenTo'](_0x59776f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39aedf,'addComment',(_0x5f1740,{threadId:_0x284b67,isFromAdapter:_0x105dfe})=>{if(_0x105dfe||!_0x2ecf22['hasSuggestion'](_0x284b67))return;const _0xc16578=_0x2ecf22['getSuggestion'](_0x284b67);this['_suggestionToController']['get'](_0xc16578)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x35ebb6=this['editor']['plugins']['get']('Annotations'),_0x33c5e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ee3ca=Array['from'](_0x35ebb6['activeAnnotations'],_0x5062eb=>_0x5062eb['innerView'])['filter'](_0x4d1560=>this['_viewToController']['has'](_0x4d1560)),_0x18aea6=[];for(const _0x2b47b7 of _0x5ee3ca){const _0x230a09=this['_viewToController']['get'](_0x2b47b7)['model']['getAllAdjacentSuggestions']();_0x18aea6['push'](..._0x230a09['reduce']((_0x1154a5,_0x5a9f46)=>[..._0x1154a5,..._0x5a9f46['getMarkerNames']()],[]));}_0x33c5e7['activeMarkers']=_0x18aea6;}['_addUIComponentsToFactory'](){const _0x23b744=this['editor'],_0x5d696d=_0x23b744['locale'],_0x36d4d9=o(_0x5d696d,'Track\x20changes'),_0x5ef9c0=new Wt([{'type':'switchbutton','model':new _0x22f470({'withText':!0x0,'isToggleable':!0x0,'label':_0x36d4d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22f470({'withText':!0x0,'label':o(_0x5d696d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x33811d of _0x5ef9c0)if(me(_0x33811d)){const _0x19e6f9=_0x23b744['commands']['get'](_0x33811d['model']['commandName']);_0x33811d['model']['bind']('isOn','isEnabled')['to'](_0x19e6f9,'value','isEnabled');}_0x23b744['ui']['componentFactory']['add']('trackChanges',_0x6a67e=>this['_createToolbarButton'](_0x6a67e,_0x5ef9c0,_0x36d4d9)),_0x23b744['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d5d3e=>this['_createMenuBarMenu'](_0x4d5d3e,_0x5ef9c0,_0x36d4d9));}['_createToolbarButton'](_0x3f798d,_0x5cb582,_0x3d54d8){const _0xa3015c=Qt(_0x3f798d,_0x49aaaa),_0x4628ce=this['editor']['commands']['get']('trackChanges');_0xa3015c['buttonView']['set']({'tooltip':_0x3d54d8,'label':_0x3d54d8,'icon':he}),_0xa3015c['buttonView']['bind']('isOn')['to'](_0x4628ce,'value'),_0xa3015c['buttonView']['on']('execute',()=>{_0x4628ce['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xa3015c,_0x5cb582,{'role':'menu'});const _0x4c905d=[];for(const _0x58a4d4 of _0x5cb582)me(_0x58a4d4)&&_0x4c905d['push'](this['editor']['commands']['get'](_0x58a4d4['model']['commandName']));const _0x288492=_0xa3015c['buttonView'];return _0x288492['actionView']['unbind']('isEnabled'),_0x288492['arrowView']['unbind']('isEnabled'),_0x288492['actionView']['bind']('isEnabled')['to'](_0x4628ce,'isEnabled'),_0x288492['arrowView']['bind']('isEnabled')['toMany'](_0x4c905d,'isEnabled',(..._0x562076)=>_0x562076['some'](_0x4e4bdb=>_0x4e4bdb)),_0xa3015c['on']('execute',_0x1c1fe8=>{this['editor']['execute'](_0x1c1fe8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xa3015c;}['_createMenuBarMenu'](_0x24f44b,_0x5e08f0,_0x5e1f0d){const _0x57dd30=new Yt(_0x24f44b),_0x31973c=this['editor']['commands']['get']('trackChanges');_0x57dd30['buttonView']['set']({'label':_0x5e1f0d,'icon':he});const _0x2b4bcd=new Zt(_0x24f44b);for(const _0x29e64a of _0x5e08f0){if('separator'==_0x29e64a['type']){_0x2b4bcd['items']['add'](new Xt(_0x24f44b));continue;}const _0x406887=new te(_0x24f44b,_0x57dd30),_0x4b6fb6=new _0x4ef32a(_0x24f44b),_0x4a9792=_0x29e64a['model'];_0x4b6fb6['bind'](...Object['keys'](_0x4a9792))['to'](_0x4a9792),_0x4b6fb6['delegate']('execute')['to'](_0x57dd30),_0x4b6fb6['on']('execute',()=>{this['editor']['execute'](_0x4a9792['commandName']),this['editor']['editing']['view']['focus']();}),_0x406887['children']['add'](_0x4b6fb6),_0x2b4bcd['items']['add'](_0x406887);}return _0x57dd30['bind']('isEnabled')['to'](_0x31973c,'isEnabled'),_0x57dd30['panelView']['children']['add'](_0x2b4bcd),_0x57dd30;}['_initializeController'](_0xed3918){const _0x3c38bf=this['editor'],_0x5d6d53=_0x3c38bf['config'],_0x23814e=_0x3c38bf['plugins']['get']('Annotations'),_0x5bae4e=_0x3c38bf['plugins']['get']('CommentsRepository'),_0x28addb=_0x3c38bf['plugins']['get']('EditorAnnotations'),_0x3e52b3=_0x3c38bf['plugins']['get'](_0x3c2de3)['me'],_0xb622bd=_0x5d6d53['get']('trackChanges')['SuggestionThreadView'],_0x195a50=_0x5d6d53['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x35eada,CommentThreadInputView:_0x106fde}=_0x3c38bf['plugins']['get']('CommentsUI');let _0x55958b,_0x3baabf,_0x5e3c40;this['_annotationViews']['has'](_0xed3918['id'])?(_0x3baabf=this['_annotationViews']['get'](_0xed3918['id']),_0x55958b=_0x3baabf['mainView']):(_0x55958b=new _0xb622bd(_0x3c38bf['locale'],_0xed3918,_0x3e52b3,{'disableComments':this['_disableComments'],'editorConfig':_0x5d6d53['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5d6d53['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5d6d53['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5d6d53['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x13ba63(_0x5d6d53['get']('locale')),'CommentView':_0x5d6d53['get']('comments')['CommentView'],'CommentsListView':_0x35eada,'CommentThreadInputView':_0x106fde,'SuggestionView':_0x195a50}),_0x55958b['suggestionView']['acceptButton']['on']('execute',()=>{_0x3c38bf['editing']['view']['focus']();}),_0x55958b['suggestionView']['discardButton']['on']('execute',()=>{_0x3c38bf['editing']['view']['focus']();}),_0x3baabf=_0x23814e['createAnnotationView'](this['editor']['locale'],_0x55958b),_0x3baabf['bind']('isDirty')['to'](_0x55958b,'isDirty'),_0x3baabf['bind']('length')['to'](_0x55958b),_0x3baabf['bind']('type')['to'](_0x55958b,'type',_0x2201f7=>'suggestion-'+_0x2201f7),_0x55958b['on']('escape',()=>{_0x5e3c40['fire']('escape');}),this['_annotationViews']['set'](_0xed3918['id'],_0x3baabf));const _0x22959e=_0x5bae4e['createCommentThreadController'](_0xed3918['commentThread'],_0x55958b),_0x2ebacf=new ae(_0x3c38bf,_0xed3918,_0x55958b,_0x22959e),_0x3233a8=_0xed3918['getAllAdjacentSuggestions']()['filter'](_0x180391=>_0x180391['isInContent']);_0x55958b['descriptionParts']=_0x3c38bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3233a8),this['_suggestionToController']['set'](_0xed3918,_0x2ebacf),this['_viewToController']['set'](_0x55958b,_0x2ebacf),_0x5e3c40=_0x23814e['createAnnotation']({'view':_0x3baabf,'target':()=>{const _0x565f2b=[],_0x49615f=_0xed3918['getAllAdjacentSuggestions']()['filter'](_0x2a9f31=>_0x2a9f31['isInContent']);for(const _0xafc679 of _0x49615f)_0x565f2b['push'](..._0xafc679['getMarkers']());return _0x35144d(_0x3c38bf['editing'],_0x565f2b);},'type':()=>'suggestion-'+_0x2ebacf['view']['type']}),_0x5bae4e['_bindAnnotationToEditors'](_0x55958b,_0x5e3c40),_0x23814e['add'](_0x5e3c40),_0x28addb['registerAnnotation'](_0x5e3c40);}['_destroyController'](_0x8f67e8){const _0x20594b=this['editor']['plugins']['get']('CommentsRepository'),_0x2798ab=this['editor']['plugins']['get']('Annotations'),_0x2d0f7e=this['_suggestionToController']['get'](_0x8f67e8),_0x31bb5b=_0x2d0f7e['view'],_0x23d2f3=_0x2798ab['getByInnerView'](_0x31bb5b);_0x20594b['_unbindEditors'](_0x31bb5b),_0x23d2f3&&_0x2798ab['remove'](_0x23d2f3),this['_suggestionToController']['delete'](_0x8f67e8),this['_viewToController']['delete'](_0x31bb5b),_0x2d0f7e['destroy']();}['_updateController'](_0x52dd29){if(!_0x52dd29['isInContent']||!this['_suggestionToController']['has'](_0x52dd29))return;const _0x24c096=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171594=this['_suggestionToController']['get'](_0x52dd29),_0xfc43fe=_0x52dd29['getAllAdjacentSuggestions']();_0x171594['view']['descriptionParts']=_0x24c096['descriptionFactory']['getDescriptions'](_0xfc43fe);}['destroy'](){for(const _0x82e4bc of this['_suggestionToController']['keys']())this['_destroyController'](_0x82e4bc);for(const _0x5f2e5d of this['_annotationViews']['values']())_0x5f2e5d['mainView']['destroy']();super['destroy']();}}function me(_0x3b3118){return'model'in _0x3b3118;}class k extends _0x4db285{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x38eacb){this['editor']['plugins']['get'](p)['adapter']=_0x38eacb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x232580){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x232580);}['getSuggestions']({skipNotAttached:_0x2f5de9=!0x1,toJSON:_0x3ca4c8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2f5de9,'toJSON':_0x3ca4c8});}['getSuggestion'](_0xac3b63){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xac3b63);}}const T=['Pagination'];class P extends _0x4db285{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1fd903=this['editor'];if(_0x1fd903['config']['define']('trackChangesData.editorCreator',_0x1c102b=>{const _0x25d290=_0x1fd903['model']['document']['getRootNames']()['reduce']((_0x180850,_0x42c90e)=>(_0x180850[_0x42c90e]='',_0x180850),{});return _0x1fd903['constructor']['create'](_0x25d290,_0x1c102b);}),'function'!=typeof _0x1fd903['config']['get']('trackChangesData')['editorCreator'])throw new _0xec2a34('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7f98b8){return N(this['editor'],!0x0,_0x7f98b8);}['getDataWithDiscardedSuggestions'](_0x49065c){return N(this['editor'],!0x1,_0x49065c);}}class D extends _0x4db285{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4e49dd){super(_0x4e49dd),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(_0x73ed81){return void 0x0!==_0x73ed81['getRootsAttributes'];}async function N(_0x5b58a4,_0x237ee3,_0x4b4b57){const _0x5581a1=_0x1e1033(_0x5b58a4,T);_0x5581a1['plugins']['push'](p,D),_0x5581a1['rootsAttributes']=v(_0x5b58a4)?_0x5b58a4['getRootsAttributes']():void 0x0;const _0x3fdb45=document['createDocumentFragment'](),_0x1b19ab=_0x5b58a4['config']['get']('trackChangesData')['editorCreator'],_0x32c4e3=await _0x1b19ab(_0x5581a1,()=>function(_0x3c5ded){const _0x23e867=document['createElement']('div');return _0x3c5ded['appendChild'](_0x23e867),_0x23e867;}(_0x3fdb45));!function(_0x4b8fbf,_0x4df920){const _0x5f29d4=_0x4b8fbf['model']['document']['getRootNames']()['reduce']((_0x5b861d,_0x2ac583)=>(_0x5b861d[_0x2ac583]=_0x4b8fbf['data']['get']({'rootName':_0x2ac583}),_0x5b861d),{}),_0x4683f8=_0x4b8fbf['plugins']['get']('Users')['users']['map'](_0x485591=>({'id':_0x485591['id'],'name':_0x485591['name']})),_0x3a691e=_0x4b8fbf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47c48c=_0x4b8fbf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x390c89=_0x4df920['plugins']['get']('Users'),_0x129d48=_0x4df920['plugins']['get']('TrackChangesEditing'),_0x3f365a=_0x4df920['plugins']['get']('CommentsRepository');for(const _0x31857d of _0x3f365a['getCommentThreads']())_0x31857d['remove']();for(const _0x223ae8 of _0x4683f8)_0x390c89['getUser'](_0x223ae8['id'])||_0x390c89['addUser'](_0x223ae8);_0x390c89['me']||_0x390c89['useAnonymousUser']();for(const _0x5236c0 of _0x47c48c)_0x3f365a['addCommentThread'](_0x5236c0);for(const _0x32e4d5 of _0x3a691e)_0x129d48['addSuggestionData'](_0x32e4d5);_0x4df920['data']['set'](_0x5f29d4);}(_0x5b58a4,_0x32c4e3),_0x32c4e3['execute'](_0x237ee3?'acceptAllSuggestions':'discardAllSuggestions');const _0x4ed67c=v(_0x32c4e3)?_0x32c4e3['getFullData'](_0x4b4b57):_0x32c4e3['data']['get'](_0x4b4b57);return await _0x32c4e3['destroy'](),_0x4ed67c;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x3cc490,PendingActions as _0x28f729,icons as _0x3b920d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1e75e0,ObservableMixin as _0x2bfc2e,uid as _0x36eeaa,insertToPriorityArray as _0x3c123a,priorities as _0x1b23c8,logWarning as _0x249a14,getEnvKeystrokeText as _0xb9abf9,FocusTracker as _0x1a6770,KeystrokeHandler as _0xec262a,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4a8582,View as _0x141ea4,ViewCollection as _0x3031f9,FocusCycler as _0xeffe40,ViewModel as _0x1be4ba,createDropdown as Qt,SplitButtonView as _0x1aa0e2,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2c9755}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x854ae2,hashObject as _0x2287f9,surroundingMarkersDetector as _0x32db40,FOCUS_ANNOTATION_KEYSTROKE as _0x4438d0,AriaDescriptionView as _0x407379,setupThreadKeyboardNavigation as _0xee32ad,trimHtml as _0x381f86,UserView as _0x3afdf9,LateFocusButtonView as _0x456809,getDateTimeFormatter as _0x507d6b,getAllMarkersDomElementsSorted as _0x393583,sanitizeEditorConfig as _0x39574}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x23b48d,LiveRange as _0x5ed280,LivePosition as _0x2e45ca}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4976b6,toWidget as _0x3c7c86}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5a8191,set as _0x1c70cf,isEqual as _0x2d7d66,unset as _0x42fad5,omit as Tt}from'lodash-es';import{Delete as _0x133b98,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bb9ca,ShiftEnter as _0xca3ce1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3b6ed6,_0x2bbb65){super(_0x3b6ed6),this['_enabledCommands']=_0x2bbb65,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 _0x3c9e7f of this['editor']['commands']['commands']())_0x3c9e7f['affectsData']&&!this['_enabledCommands']['has'](_0x3c9e7f)&&_0x3c9e7f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x87e86b of this['editor']['commands']['commands']())_0x87e86b['affectsData']&&!this['_enabledCommands']['has'](_0x87e86b)&&_0x87e86b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x5c05d2,_0x1c1858){super(_0x5c05d2),this['_suggestions']=_0x1c1858,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59ab05){const _0xd380d0=this['_suggestions']['get'](_0x59ab05);if(!_0xd380d0)throw new _0x1e75e0('track-changes-accept-suggestion-not-found',this);const _0x2957d8=_0xd380d0['getRanges']();this['editor']['model']['canEditAt'](_0x2957d8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd380d0);}}class R extends ts{['_suggestions'];constructor(_0x153d65,_0x334858){super(_0x153d65),this['_suggestions']=_0x334858,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f9d34){const _0x23aec1=this['_suggestions']['get'](_0x3f9d34);if(!_0x23aec1)throw new _0x1e75e0('track-changes-discard-suggestion-not-found',this);const _0x21d1b2=_0x23aec1['getRanges']();this['editor']['model']['canEditAt'](_0x21d1b2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x23aec1);}}function ls(_0x4a76da,_0x3d6af7){let _0x3c6b2f='';return _0x3c6b2f+=_0x4a76da['split']('*')['map']((_0x158fb9,_0x2fb9f8)=>_0x2fb9f8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x158fb9)+'</span>':nn(_0x158fb9))['join'](''),_0x3d6af7&&(_0x3c6b2f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3d6af7['value']+'\x22\x20title=\x22'+_0x3d6af7['title']+'\x22></span>'),_0x3c6b2f;}function nn(_0x22b28a){const _0x1e77c0=document['createElement']('span');return _0x1e77c0['innerText']=_0x22b28a,_0x1e77c0['innerHTML'];}function ss(_0xc4789){return _0xc4789['sort']((_0x852e67,_0x5556ee)=>'deletion'==_0x852e67['type']&&'deletion'!=_0x5556ee['type']?-0x1:'deletion'!=_0x852e67['type']&&'deletion'==_0x5556ee['type']?0x1:0x0);}function to(_0x3ea70b,_0x2269cb){let _0x589013,_0x3007f7=0x0;const _0x83ca0=[],_0x5eea57=_0x2269cb['schema'];for(;_0x3007f7<_0x3ea70b['length'];){const _0x594db0=_0x3ea70b[_0x3007f7],_0x198155=_0x3ea70b[_0x3007f7+0x1];_0x589013||(_0x589013=_0x2269cb['createPositionBefore'](_0x594db0)),on(_0x2269cb,_0x594db0,_0x198155)||(_0x83ca0['push'](_0x2269cb['createRange'](_0x589013,_0x5eea57['isObject'](_0x594db0)?_0x2269cb['createPositionAfter'](_0x594db0):_0x2269cb['createPositionAt'](_0x594db0,'end'))),_0x589013=null),_0x3007f7++;}return _0x83ca0;}function on(_0xab0011,_0x364975,_0x45234f){if(!_0x45234f)return!0x1;const _0x4597ee=_0xab0011['createPositionAfter'](_0x364975),_0x43f442=_0xab0011['createPositionBefore'](_0x45234f);return _0x4597ee['isTouching'](_0x43f442);}function rs(_0x2c997f,_0x344aba,_0x2575b9){for(;_0x2575b9['length'];){const _0x1e9182=_0x2575b9['splice'](0x0,0x64);_0x2c997f['change'](()=>{for(const _0x1c1217 of _0x1e9182)_0x1c1217['isInContent']&&_0x344aba['execute'](_0x1c1217['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3c3e60,_0x1f6865,_0x62bb7b){super(_0x3c3e60),this['_command']=_0x1f6865,this['_suggestions']=_0x62bb7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2400a7=Array['from'](this['_suggestions']['values']())['some'](_0x3fd768=>_0x3fd768['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2400a7;}['execute'](){const _0x51e546=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5bbe53 of _0x51e546){const _0x35118e=_0x5bbe53['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35118e))return;}rs(this['editor']['model'],this['_command'],_0x51e546);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x31a215,_0x385ee9,_0x5acf01){super(_0x31a215),this['_command']=_0x385ee9,this['_suggestions']=_0x5acf01,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34327e=this['editor']['model']['document']['selection'],_0x35fca5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3db525,_0x24e900){const _0x3ee302=Array['from'](_0x3db525['getRanges']()),_0x34dc43=new Set();for(const _0x6cdcec of _0x24e900)if(_0x6cdcec['isInContent']){for(const _0x1ecf85 of _0x3ee302)for(const _0x47f7aa of _0x6cdcec['getRanges']())(_0x1ecf85['isIntersecting'](_0x47f7aa)||_0x3db525['isCollapsed']&&!_0x6cdcec['isMultiRange']&&_0x6cdcec['next']&&_0x47f7aa['end']['isTouching'](_0x1ecf85['start']))&&_0x34dc43['add'](_0x6cdcec);}return _0x34dc43;}(_0x34327e,_0x35fca5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x356ecd=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4426d2 of _0x356ecd){const _0x4b451c=_0x4426d2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b451c))return;}rs(this['editor']['model'],this['_command'],_0x356ecd);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2bfc2e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1ad9d0,_0xdc4e05){super(),this['id']=_0xdc4e05['id'],this['type']=_0xdc4e05['type'],this['subType']=_0xdc4e05['subType']||null,this['author']=_0xdc4e05['author'],this['creator']=_0xdc4e05['creator']||_0xdc4e05['author'],this['isExternal']=Boolean(_0xdc4e05['attributes']&&_0xdc4e05['attributes']['@external']),this['data']=null,this['_model']=_0x1ad9d0,this['_onAccept']=_0xdc4e05['onAccept'],this['_onDiscard']=_0xdc4e05['onDiscard'],this['_onAttributesChange']=_0xdc4e05['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xdc4e05['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 _0x4e569e=this;for(;_0x4e569e['previous'];)_0x4e569e=_0x4e569e['previous'];return _0x4e569e;}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'](_0x585ed5){this['_markerNames']['add'](_0x585ed5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3857d5=>this['_model']['markers']['get'](_0x3857d5))['filter'](_0x3b7ffc=>_0x3b7ffc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x11588b=>{for(const _0x471528 of this['getMarkers']())_0x11588b['removeMarker'](_0x471528);}),this['_markerNames']['clear']();}['removeMarker'](_0x4229d4){this['_model']['change'](_0xbeb68d=>{_0xbeb68d['removeMarker'](_0x4229d4);}),this['_markerNames']['delete'](_0x4229d4);}['addRange'](_0x3f43be){const _0x1d4882='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1d4882),this['_model']['change'](_0x20fc70=>{_0x20fc70['addMarker'](_0x1d4882,{'range':_0x3f43be,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4ac27d){for(const _0x5c09e0 of this['getRanges']())if(_0x5c09e0['isIntersecting'](_0x4ac27d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x441b57=>_0x441b57['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22babf,_0x3c65a1)=>[..._0x22babf,..._0x3c65a1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x57b0cd=this['getRanges']();if(0x1!=_0x57b0cd['length'])return null;const _0x7fa725=_0x57b0cd[0x0],_0xad4927=_0x7fa725['start']['nodeAfter'],_0x5cdb36=_0x7fa725['end']['nodeBefore'];return _0xad4927 instanceof _0x23b48d?_0xad4927!=_0x5cdb36?null:_0xad4927: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 _0x202821=[];let _0x574fd9=this['head'];for(;_0x574fd9;)_0x202821['push'](_0x574fd9),_0x574fd9=_0x574fd9['next'];return _0x202821;}['setAttribute'](_0x25d129,_0x2d51d){const _0x1708da=_0x5a8191(this['attributes']);_0x1c70cf(_0x1708da,_0x25d129,_0x2d51d),_0x2d7d66(_0x1708da,this['attributes'])||(this['attributes']=_0x1708da,this['_onAttributesChange'](_0x1708da));}['removeAttribute'](_0x1e7a91){const _0x1dcebb=_0x5a8191(this['attributes']);_0x42fad5(_0x1dcebb,_0x1e7a91),_0x2d7d66(_0x1dcebb,this['attributes'])||(this['attributes']=_0x1dcebb,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 _0x36eeaa()['substr'](0x1,0x5);}}function o(_0x1b3d01,_0x12f5b9,_0x13e0e3){const t=_0x1b3d01['t'];switch(_0x12f5b9){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',_0x13e0e3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13e0e3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13e0e3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13e0e3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13e0e3);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',_0x13e0e3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13e0e3);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',_0x13e0e3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13e0e3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13e0e3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13e0e3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13e0e3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13e0e3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13e0e3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13e0e3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13e0e3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13e0e3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13e0e3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13e0e3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13e0e3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13e0e3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13e0e3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13e0e3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13e0e3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13e0e3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13e0e3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13e0e3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13e0e3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13e0e3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13e0e3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13e0e3);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x13e0e3);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x13e0e3);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x13e0e3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x12f5b9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ba966,_0xa71215){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ba966,this['_locale']=_0xa71215;}['getDescriptions'](_0x1ee2bf){const _0x31554b=[],_0x5d730c=new Set(),_0x1b28d6=new Set();for(let _0x147c66=0x0;_0x147c66<_0x1ee2bf['length'];_0x147c66++){const _0x2554e4=_0x1ee2bf[_0x147c66];if(!_0x2554e4['isInContent'])continue;const _0x5f32b5=this['_handleCustomCallbackDescription'](_0x2554e4);if(_0x5f32b5){if(null!=_0x2554e4['subType']){if(_0x5d730c['has'](_0x2554e4['subType']))continue;_0x5d730c['add'](_0x2554e4['subType']);}_0x31554b['push'](_0x5f32b5);}else{if('attribute'!=_0x2554e4['type'])'insertion'!=_0x2554e4['type']&&'deletion'!=_0x2554e4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x31554b,_0x2554e4,_0x1ee2bf[_0x147c66+0x1]);else{const _0x1a0340=_0x2554e4['data']['key'];if(_0x1b28d6['has'](_0x1a0340))continue;_0x1b28d6['add'](_0x2554e4['data']['key']),_0x1a0340==m?this['_handleRenameSuggestionDescription'](_0x31554b,_0x2554e4):this['_handleAttributeSuggestionDescription'](_0x31554b,_0x2554e4);}}}return this['_resolveDescriptionItems'](_0x31554b);}['registerDescriptionCallback'](_0x54f57f){this['_customCallbacks']['push'](_0x54f57f);}['registerElementLabel'](_0x23425f,_0xe75c2e,_0x144c26=_0x1b23c8['normal']){'function'==typeof _0x23425f?_0x3c123a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23425f,'label':_0xe75c2e,'priority':_0x144c26}):this['_itemLabels']['set'](_0x23425f,_0xe75c2e);}['registerAttributeLabel'](_0x475662,_0x50914e){this['_attributeLabels']['set'](_0x475662,_0x50914e);}['getItemLabel'](_0x59a80f,_0x146e17=0x1){let _0x4e3415;for(const _0x426d94 of this['_itemLabelsCallbacks'])if(_0x426d94['matchingCallback'](_0x59a80f)){_0x4e3415=_0x426d94['label'];break;}return _0x4e3415||(_0x4e3415=this['_itemLabels']['get'](_0x59a80f['name'])),_0x4e3415?_0x4e3415(_0x146e17):0x1!==_0x146e17?_0x146e17+'\x20'+_0x59a80f['name']+'s':''+_0x59a80f['name'];}['_addDescriptionItems'](_0x4338b4,_0x369bb9){const _0x6d3809=_0x369bb9['getFirstRange']()['getWalker'](),_0x5319d4='insertion'==_0x369bb9['type']?'add':'remove';for(const _0xad8f54 of _0x6d3809){const _0x1e146c=_0xad8f54['item'],_0x24feef=_0x4338b4[_0x4338b4['length']-0x1];if(_0x1e146c['is']('$textProxy'))_0x24feef&&_0x24feef['type']['indexOf']('Container')>-0x1&&_0x4338b4['pop'](),_0x24feef&&'text'==_0x24feef['type']?_0x24feef[_0x5319d4]+=_0x1e146c['data']:_0x4338b4['push']({'type':'text','add':'add'==_0x5319d4?_0x1e146c['data']:'','remove':'remove'==_0x5319d4?_0x1e146c['data']:''});else{if(this['_schema']['isObject'](_0x1e146c)){const _0xc124ae=_0x1e146c;if(_0x24feef&&_0x24feef['type']['indexOf']('Container')>-0x1&&_0x4338b4['pop'](),'elementEnd'==_0xad8f54['type'])continue;_0x24feef&&_0x24feef['type']==_0x5319d4+'Object'&&_0x24feef['element']['name']==_0xc124ae['name']?_0x24feef['quantity']++:_0x4338b4['push']({'type':_0x5319d4+'Object','element':_0xc124ae,'quantity':0x1}),_0x6d3809['skip'](_0x4202cc=>!('elementEnd'==_0x4202cc['type']&&_0x4202cc['item']==_0x1e146c));}else{if(this['_schema']['checkChild'](_0x1e146c,'$text')||_0x1e146c['is']('element','softBreak')){const _0x549e29=_0x1e146c;if('add'==_0x5319d4&&'elementStart'==_0xad8f54['type']||'remove'==_0x5319d4&&'elementEnd'==_0xad8f54['type'])continue;if(_0x24feef&&-0x1==_0x24feef['type']['indexOf']('Container')){'text'==_0x24feef['type']&&(_0x24feef[_0x5319d4]+='\x0a');continue;}let _0x11de76;if(_0x11de76='add'==_0x5319d4?_0x549e29['nextSibling']&&!this['_schema']['isObject'](_0x549e29['nextSibling'])?_0x549e29['nextSibling']:null:_0x549e29['previousSibling']&&!this['_schema']['isObject'](_0x549e29['previousSibling'])?_0x549e29['previousSibling']:null,_0x549e29['isEmpty']||_0x11de76&&_0x11de76['isEmpty']){const _0x2ea1e2=_0x11de76&&_0x11de76['isEmpty']?_0x11de76:_0x549e29;_0x24feef&&_0x24feef['type']==_0x5319d4+'EmptyContainer'&&_0x24feef['element']['name']==_0x2ea1e2['name']?_0x24feef['quantity']++:_0x4338b4['push']({'type':_0x5319d4+'EmptyContainer','element':_0x2ea1e2,'quantity':0x1});}else _0x4338b4['push']({'type':_0x5319d4+'Container','element':_0x549e29});}}}}}['_resolveDescriptionItems'](_0x2e2b35){const _0x3e90c3=this['_locale'],_0x535cc1=[],_0x30ff45=[],_0x383b88=[];for(const _0x5cbb99 of _0x2e2b35)switch(_0x5cbb99['type']){case'text':if(_0x5cbb99['add']=_0x5cbb99['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5cbb99['remove']=_0x5cbb99['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5cbb99['add']&&''!=_0x5cbb99['remove']){_0x535cc1['push']({'type':'replace','content':o(_0x3e90c3,'REPLACE_TEXT',['\x22'+_0x5cbb99['remove']+'\x22','\x22'+_0x5cbb99['add']+'\x22'])});continue;}if(null!=_0x5cbb99['add']['match'](/^ +$/)){_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0',o(_0x3e90c3,'ELEMENT_SPACE',_0x5cbb99['add']['length']))});continue;}if(null!=_0x5cbb99['remove']['match'](/^ +$/)){_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0',o(_0x3e90c3,'ELEMENT_SPACE',_0x5cbb99['remove']['length']))});continue;}if(''!=_0x5cbb99['add']){_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0','\x22'+_0x5cbb99['add']+'\x22')});continue;}_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0','\x22'+_0x5cbb99['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'addContainer':_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Split:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'removeContainer':_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Merge:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'addFormat':_0x30ff45['push'](_0x5cbb99['key']);continue;case'removeFormat':_0x383b88['push'](_0x5cbb99['key']);continue;default:_0x535cc1['push'](_0x5cbb99);}if(_0x30ff45['length']){const _0x46e310=_0x30ff45['map'](_0x308002=>this['_attributeLabels']['has'](_0x308002)?this['_attributeLabels']['get'](_0x308002):_0x308002)['join'](',\x20');_0x535cc1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x46e310)});}if(_0x383b88['length']){const _0x50faff=_0x383b88['map'](_0x1d871a=>this['_attributeLabels']['has'](_0x1d871a)?this['_attributeLabels']['get'](_0x1d871a):_0x1d871a)['join'](',\x20');_0x535cc1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50faff)});}return _0x535cc1;}['_handleCustomCallbackDescription'](_0x3037c8){for(const _0x4da99c of this['_customCallbacks']){const _0xbfaa88=_0x4da99c(_0x3037c8);if(_0xbfaa88&&'type'in _0xbfaa88)return _0xbfaa88;}}['_handleAttributeSuggestionDescription'](_0x192198,_0x419dab){const _0x1cbb0f=_0x419dab['data'],_0x59db98=void 0x0===_0x1cbb0f['newValue']?'removeFormat':'addFormat';_0x192198['push']({'type':_0x59db98,'key':_0x1cbb0f['key']});}['_handleRenameSuggestionDescription'](_0x2d7df8,_0x3fa9ec){_0x2d7df8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3fa9ec['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3e0874,_0x23a83b,_0x4692a3){if(this['_addDescriptionItems'](_0x3e0874,_0x23a83b),_0x4692a3&&_0x4692a3['getFirstRange']()&&!_0x23a83b['getFirstRange']()['end']['isEqual'](_0x4692a3['getFirstRange']()['start'])){const _0x13c5f5=_0x3e0874[_0x3e0874['length']-0x1],_0xe4cee5='insertion'==_0x23a83b['type']?'add':'remove';_0x13c5f5&&'text'==_0x13c5f5['type']&&(_0x13c5f5[_0xe4cee5]+='\x0a');}}}class V extends _0x3cc490{['afterInit'](){const _0x8ff792=this['editor'],_0x24ff15=_0x8ff792['plugins']['get']('TrackChangesEditing');_0x8ff792['commands']['get']('showAIAssistant')&&_0x24ff15['enableCommand']('showAIAssistant');}}class U extends _0x3cc490{['afterInit'](){const _0x500761=this['editor'],_0x22f35b=_0x500761['locale'];if(!_0x500761['plugins']['has']('AlignmentEditing'))return;const _0x2c5cc2=_0x500761['plugins']['get']('TrackChangesEditing');_0x2c5cc2['enableDefaultAttributesIntegration']('alignment'),_0x2c5cc2['registerBlockAttribute']('alignment'),_0x2c5cc2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22f35b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31b449=this['editor'],_0x4e5f29=_0x31b449['locale'];_0x31b449['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a59c=>{if('formatBlock'!=_0x32a59c['type'])return;const {data:_0xdd673e}=_0x32a59c;if(_0xdd673e&&'alignment'==_0xdd673e['commandName']){const _0x370f21=_0xdd673e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e5f29,'*Format:*\x20%0',function(_0x143ea7){switch(_0x143ea7){case'left':return o(_0x4e5f29,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e5f29,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e5f29,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e5f29,'FORMAT_JUSTIFY_TEXT');}}(_0x370f21))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3cc490{['afterInit'](){const _0xee7cb3=this['editor'],_0x1699dc=_0xee7cb3['plugins']['get']('TrackChangesEditing'),_0x13df0d=_0xee7cb3['locale'];for(const _0x1f2a31 of ti){if(!_0xee7cb3['plugins']['has'](_0x1f2a31))continue;const _0x182d1a=_0x1f2a31['slice'](0x0,-0x7)['toLowerCase'](),_0x42ce3c='FORMAT_'+_0x182d1a['toUpperCase']();_0x1699dc['enableDefaultAttributesIntegration'](_0x182d1a),_0x1699dc['registerInlineAttribute'](_0x182d1a),_0x1699dc['descriptionFactory']['registerAttributeLabel'](_0x182d1a,o(_0x13df0d,_0x42ce3c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b8a2b=this['editor'],_0x2b22ee=_0x2b8a2b['locale'],_0xc75e2f=_0x2b8a2b['plugins']['get']('TrackChangesEditing');function _0x3cdbcd(_0x5e56d9,_0x43a070){_0xc75e2f['descriptionFactory']['registerDescriptionCallback'](_0x5739cb=>{if('formatInline'!=_0x5739cb['type'])return;const {data:_0x6ea94}=_0x5739cb;return _0x6ea94&&_0x6ea94['commandName']===_0x5e56d9?_0x6ea94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b22ee,'*Format:*\x20%0',_0x43a070)}:{'type':'format','content':o(_0x2b22ee,'*Remove\x20format:*\x20%0',_0x43a070)}:void 0x0;});}_0x3cdbcd('bold',o(_0x2b22ee,'FORMAT_BOLD')),_0x3cdbcd('italic',o(_0x2b22ee,'FORMAT_ITALIC')),_0x3cdbcd('underline',o(_0x2b22ee,'FORMAT_UNDERLINE')),_0x3cdbcd('code',o(_0x2b22ee,'FORMAT_CODE')),_0x3cdbcd('strikethrough',o(_0x2b22ee,'FORMAT_STRIKETHROUGH')),_0x3cdbcd('subscript',o(_0x2b22ee,'FORMAT_SUBSCRIPT')),_0x3cdbcd('superscript',o(_0x2b22ee,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3cc490{['afterInit'](){const _0x5c10d7=this['editor'],_0x58ff2d=_0x5c10d7['locale'];if(!_0x5c10d7['plugins']['has']('BlockQuoteEditing'))return;const _0x594c07=_0x5c10d7['plugins']['get']('TrackChangesEditing'),_0x155f24=this['editor']['commands']['get']('blockQuote');_0x594c07['enableCommand']('blockQuote',(_0x53b71e,_0x2224a6={})=>{const _0x132bf6=this['editor']['model']['document']['selection'],_0x4c08fb=_0x2224a6&&void 0x0!==_0x2224a6['forceValue']?_0x2224a6['forceValue']:!_0x155f24['value'];let _0x1ce5eb=[];if(_0x4c08fb){const _0x48947a=Array['from'](_0x132bf6['getSelectedBlocks']())['filter'](_0x1ec543=>oo(_0x1ec543)||function(_0x57f35b,_0x5babe1){const _0x103a55=_0x5babe1['checkChild'](_0x57f35b['parent'],'blockQuote'),_0x2ec3b3=_0x5babe1['checkChild'](['$root','blockQuote'],_0x57f35b);return _0x103a55&&_0x2ec3b3;}(_0x1ec543,this['editor']['model']['schema']));_0x1ce5eb=to(_0x48947a,_0x5c10d7['model']);}else{const _0x4c276a=Array['from'](_0x132bf6['getSelectedBlocks']())['filter'](_0x4d9427=>oo(_0x4d9427));_0x1ce5eb=to(_0x4c276a,_0x5c10d7['model']);}_0x5c10d7['model']['change'](()=>{for(const _0x43b6c8 of _0x1ce5eb)_0x594c07['markBlockFormat'](_0x43b6c8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c08fb}]});});}),_0x594c07['descriptionFactory']['registerDescriptionCallback'](_0x245ce0=>{const {data:_0x404468}=_0x245ce0;if(_0x404468&&'blockQuote'==_0x404468['commandName']){const _0x329b91=o(_0x58ff2d,'ELEMENT_BLOCK_QUOTE');return _0x404468['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58ff2d,'*Set\x20format:*\x20%0',_0x329b91)}:{'type':'format','content':o(_0x58ff2d,'*Remove\x20format:*\x20%0',_0x329b91)};}});}}function oo(_0x7fc08e){return'blockQuote'==_0x7fc08e['parent']['name'];}class L extends _0x3cc490{['afterInit'](){const _0x364611=this['editor'];_0x364611['plugins']['has']('CaseChange')&&(_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3cc490{['afterInit'](){const _0x25b0eb=this['editor'];_0x25b0eb['commands']['get']('ckbox')&&_0x25b0eb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3cc490{['afterInit'](){const _0x2f8456=this['editor'];if(!_0x2f8456['plugins']['has']('CodeBlock'))return;const _0xa0b6f4=_0x2f8456['plugins']['get']('TrackChangesEditing'),_0x3a4193=_0x2f8456['locale'],_0x4bf1a2=_0x2f8456['config']['get']('codeBlock')['languages'],_0x3c2da3=_0x2f8456['commands']['get']('codeBlock');_0xa0b6f4['enableCommand']('indentCodeBlock'),_0xa0b6f4['enableCommand']('outdentCodeBlock'),_0xa0b6f4['enableCommand']('codeBlock',(_0x4b5795,_0x45a310={})=>{const _0x2cf175=_0x2f8456['model'],_0x353c2f=_0x2f8456['model']['document']['selection'],_0xedc2c2=_0x45a310&&void 0x0!==_0x45a310['forceValue']?_0x45a310['forceValue']:!_0x3c2da3['value'];let _0x32ab7d;_0x45a310['language']||(_0x45a310['language']=_0x4bf1a2[0x0]['language']),_0x32ab7d=_0xedc2c2?Array['from'](_0x353c2f['getSelectedBlocks']())['filter'](_0x4136e7=>eo(_0x4136e7)||function(_0x3bc5e5,_0x1f9c0a){if(_0x3bc5e5['is']('rootElement')||_0x1f9c0a['isLimit'](_0x3bc5e5))return!0x1;return _0x1f9c0a['checkChild'](_0x3bc5e5['parent'],'codeBlock');}(_0x4136e7,_0x2cf175['schema'])):Array['from'](_0x353c2f['getSelectedBlocks']())['filter'](_0x48c6b3=>eo(_0x48c6b3));const _0x3dc3dd=to(_0x32ab7d,_0x2cf175);_0x2cf175['change'](()=>{for(const _0x4b7c92 of _0x3dc3dd)_0xa0b6f4['markBlockFormat'](_0x4b7c92,{'commandName':'codeBlock','commandParams':[{..._0x45a310,'forceValue':_0xedc2c2}],'formatGroupId':'blockName'});});}),(_0xa0b6f4['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d874b=>o(_0x3a4193,'ELEMENT_CODE_BLOCK',_0x4d874b)),_0xa0b6f4['descriptionFactory']['registerDescriptionCallback'](_0x5519ec=>{if('formatBlock'!=_0x5519ec['type'])return;const _0x5d116f=_0x3a4193['t'],{data:_0x31decb}=_0x5519ec;if(!_0x31decb||'codeBlock'!=_0x31decb['commandName'])return;const _0x3f9052=_0x31decb['commandParams'][0x0]['language'],_0x469075=_0x5d116f(_0x4bf1a2['find'](_0x3f8e2c=>_0x3f8e2c['language']===_0x3f9052)['label'])['toLowerCase']();return _0x31decb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a4193,'*Set\x20format:*\x20%0',o(_0x3a4193,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x469075+')')}:{'type':'format','content':o(_0x3a4193,'*Remove\x20format:*\x20%0',o(_0x3a4193,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x55c148){return'codeBlock'==_0x55c148['name'];}class q extends _0x3cc490{['afterInit'](){const _0x39d31d=this['editor'];if(!_0x39d31d['plugins']['has']('CommentsEditing'))return;_0x39d31d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4061f5,_0x6a8ca2,_0x42644f){const _0x36eb11=[];for(const _0x3b1d78 of _0x6a8ca2['getItems']())_0x3b1d78['hasAttribute'](_0x4061f5)&&_0x36eb11['push'](_0x42644f['createRangeOn'](_0x3b1d78));return _0x36eb11;}function _e(_0x1f8f19,_0xb4d9e0,{showActiveMarker:_0xe4fdd0=!0x0}={}){const _0x2723c3=_0x1f8f19['plugins']['get']('TrackChangesEditing');return(_0x486d00,_0x4a982e,_0x42e303)=>{if(!_0x42e303['consumable']['test'](_0x4a982e['markerRange'],_0x486d00['name']))return;const _0x47b771=_0x4a982e['markerRange']['getWalker'](),_0xbf3a64=_0x4a982e['markerRange']['start'],_0x505642=_0x1f8f19['model']['schema'];let _0x563cf3=null,_0x419045=null,_0x28b526=!0x1,_0x4df0ba=!0x1;for(const _0x42d269 of _0x47b771){const _0x32cb12=_0x42d269['item'];_0x28b526=_0x28b526||_0x505642['isContent'](_0x32cb12);const _0x3cc436=_0x42e303['mapper']['toViewElement'](_0x32cb12);if(_0x3cc436&&_0x3cc436['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42d269['type']&&(_0x505642['isBlock'](_0x32cb12)&&!_0x505642['isLimit'](_0x32cb12)&&(_0x32cb12['nextSibling']||_0xbf3a64['isAtEnd']?_0x563cf3&&_0x563cf3['parent']==_0x32cb12||(_0x563cf3=_0x32cb12,_0x144782(_0x42d269['previousPosition']),_0x4df0ba=!0x0):_0x419045=_0x419045||_0x42d269['previousPosition']));}function _0x144782(_0x20b76b){const {authorId:_0x1418d5}=_0x2723c3['_splitMarkerName'](_0x4a982e['markerName']),_0xa65931=_0x42e303['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb4d9e0,'data-author-id':_0x1418d5}),_0x404f2f=_0x42e303['mapper']['toViewPosition'](_0x20b76b);_0xe4fdd0&&_0x2723c3['activeMarkers']['includes'](_0x4a982e['markerName'])&&_0x42e303['writer']['addClass']('ck-suggestion-marker--active',_0xa65931),_0x42e303['writer']['insert'](_0x404f2f,_0xa65931),_0x42e303['mapper']['bindElementToMarker'](_0xa65931,_0x4a982e['markerName']);}_0x28b526||_0x4df0ba||!_0x419045||_0x144782(_0x419045);};}class z extends _0x3cc490{static get['requires'](){return[_0x133b98];}['init'](){const _0x1e6c69=this['editor'],_0x1ff6bf=_0x1e6c69['plugins']['get']('TrackChangesEditing');_0x1ff6bf['enableCommand']('delete');const _0xa98544=_0x1e6c69['commands']['get']('deleteForward');_0x1ff6bf['enableCommand']('deleteForward',(_0x5e5da0,_0x3523bc={})=>{const _0x169687=_0x1e6c69['model']['createSelection'](_0x1e6c69['model']['document']['selection']);_0x169687['isCollapsed']&&_0x1e6c69['model']['modifySelection'](_0x169687,{'direction':'forward','unit':_0x3523bc['unit']});const _0x11a201=_0x169687['getFirstRange'](),_0x2f1f03=_0x5ed280['fromRange'](_0x11a201);let _0x3bd2ac;_0x5e5da0(_0x3523bc),_0x3bd2ac='$graveyard'==_0x2f1f03['root']['rootName']?_0x1e6c69['model']['createRange'](_0x11a201['start']):_0x1e6c69['model']['createRange'](_0x2f1f03['start'],_0x2f1f03['end']),_0x2f1f03['detach'](),_0x1e6c69['model']['enqueueChange'](_0xa98544['buffer']['batch'],_0x3d3acd=>{_0xa98544['buffer']['lock'](),_0x3d3acd['setSelection'](_0x3d3acd['createRange'](_0x3bd2ac['end'])),_0xa98544['buffer']['unlock']();});}),_0x1e6c69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1e6c69,'merge'),{'priority':'high'}),_0x1e6c69['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1a3517,_0x869693,_0x14bf50)=>{_0x14bf50['options']['showSuggestionHighlights']&&_e(_0x1e6c69,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1a3517,_0x869693,_0x14bf50);},{'priority':'high'}),_0x1e6c69['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xdfb0b7,_0x1e961c,_0x1c8982)=>{const _0x4ba057=_0x1c8982['mapper']['markerNameToElements'](_0x1e961c['markerName']);if(_0x4ba057){for(const _0x58393a of _0x4ba057)_0x58393a['is']('uiElement')&&(_0x1c8982['mapper']['unbindElementFromMarkerName'](_0x58393a,_0x1e961c['markerName']),_0x1c8982['writer']['remove'](_0x58393a));}},{'priority':'high'});}}class K extends _0x3cc490{['afterInit'](){const _0x213e7c=this['editor'];if(!_0x213e7c['plugins']['has']('ListEditing'))return;const _0x2035f0=_0x213e7c['locale'],_0x483917=_0x213e7c['plugins']['get']('TrackChangesEditing'),_0x355429=_0x213e7c['plugins']['has']('TodoListEditing'),_0x3f7f34=!!_0x213e7c['config']['get']('list.multiBlock');function _0x371133(_0x56b41f){return{'type':'format','content':''+o(_0x2035f0,'*Set\x20format:*\x20%0',_0x56b41f)};}function _0x5bd258(_0x4c0509){return{'type':'format','content':''+o(_0x2035f0,'*Remove\x20format:*\x20%0',_0x4c0509)};}_0x483917['enableDefaultAttributesIntegration']('numberedList'),_0x483917['enableDefaultAttributesIntegration']('bulletedList'),_0x483917['enableDefaultAttributesIntegration']('customNumberedList'),_0x483917['enableDefaultAttributesIntegration']('customBulletedList'),_0x483917['enableDefaultAttributesIntegration']('indentList'),_0x483917['enableDefaultAttributesIntegration']('outdentList'),_0x483917['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x483917['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x483917['registerBlockAttribute']('listItemId'),_0x483917['registerBlockAttribute']('listType'),_0x483917['registerBlockAttribute']('listIndent'),_0x3f7f34&&(_0x483917['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x483917['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x355429&&(_0x483917['enableDefaultAttributesIntegration']('todoList'),_0x483917['enableDefaultAttributesIntegration']('checkTodoList'),_0x483917['registerBlockAttribute']('todoListChecked'),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x2820de=>{const {data:_0x1f49ab}=_0x2820de;if(_0x1f49ab&&'todoListChecked'==_0x1f49ab['key'])return{'type':'format','content':_0x1f49ab['newValue']?o(_0x2035f0,'*Check\x20item*'):o(_0x2035f0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x435329=>{if(_0x435329['batch']['isUndo'])return!0x1;let _0x32eef9=!0x1;const _0x3f4668=_0x483917['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x124560=>'todoListChecked'===_0x483917['_getAttributeKey'](_0x124560));for(const _0x885dd0 of _0x3f4668){'todo'!=_0x885dd0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x483917['_findSuggestions'](_0x885dd0['getFirstRange'](),'attribute')['find'](_0x20ea0b=>'listType'===_0x483917['_getAttributeKey'](_0x20ea0b['suggestion']))||(_0x435329['removeMarker'](_0x885dd0['getFirstMarker']()),_0x32eef9=!0x0));}return _0x32eef9;})),_0x483917['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2035f0,'FORMAT_INDENT'));const _0x23cfed={'type':'format','content':''};_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x28f25b=>{const {data:_0x2629d3}=_0x28f25b;if(!_0x2629d3||'listType'!=_0x2629d3['key'])return;let _0x544bae=_0x28f25b['head'];for(;_0x544bae;){if(_0x544bae['data']&&(('listStyle'==_0x544bae['data']['key']||'listMarkerStyle'==_0x544bae['data']['key'])&&(_0x544bae['data']['newValue']&&'default'!=_0x544bae['data']['newValue']||'default'!=_0x544bae['data']['oldValue']&&!_0x2629d3['newValue'])||!_0x3f7f34&&_0x544bae['data']['key']==m))return _0x23cfed;_0x544bae=_0x544bae['next'];}if(null==_0x2629d3['newValue'])switch(_0x2629d3['oldValue']){case'bulleted':return _0x5bd258(o(_0x2035f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bd258(o(_0x2035f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bd258(o(_0x2035f0,'ELEMENT_TODO_LIST'));}switch(_0x2629d3['newValue']){case'bulleted':return _0x371133(o(_0x2035f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x371133(o(_0x2035f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x371133(o(_0x2035f0,'ELEMENT_TODO_LIST'));}}),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x28107a=>{const {data:_0x35b31b}=_0x28107a;if(_0x35b31b&&'listIndent'==_0x35b31b['key'])return null==_0x35b31b['newValue']||null==_0x35b31b['oldValue']&&0x0==_0x35b31b['newValue']?_0x23cfed:void 0x0;}),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x405ef7=>{if('attribute'!=_0x405ef7['type'])return;const {data:_0x481b63}=_0x405ef7;if(!_0x481b63||'listItemId'!=_0x481b63['key'])return;const _0x209f62=Ee(_0x405ef7);return'newValue'==_0x209f62?{'type':'format','content':o(_0x2035f0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x209f62?{'type':'format','content':o(_0x2035f0,'*Split:*\x20list\x20item')}:_0x23cfed;}),_0x213e7c['model']['document']['registerPostFixer'](_0x35ea94=>this['listItemIdFixer'](_0x35ea94)),_0x213e7c['model']['document']['registerPostFixer'](_0x3461ff=>this['noTrackChangesFixer'](_0x3461ff)),_0x213e7c['model']['document']['on']('change:data',(_0x43c88a,_0x34bb0a)=>{if(_0x34bb0a['isUndo']||!_0x34bb0a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1cd991){if(_0x1cd991['batch']['isUndo']||!_0x1cd991['batch']['isLocal'])return!0x1;let _0x53d6fa=!0x1;const _0x306513=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x525a3f=>_0x525a3f['data']&&'listItemId'==_0x525a3f['data']['key'])['filter'](_0x542a52=>_0x542a52['data']['newValue']&&_0x542a52['data']['oldValue']);for(const _0x19f739 of _0x306513)Ee(_0x19f739)||(_0x1cd991['removeMarker'](_0x19f739['getFirstMarker']()),_0x53d6fa=!0x0);return _0x53d6fa;}['noTrackChangesFixer'](_0x273adb){if(_0x273adb['batch']['isUndo']||!_0x273adb['batch']['isLocal'])return!0x1;const _0x4c717d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c717d['trackChangesCommand']['value'])return!0x1;let _0x9c3d36=!0x1;const _0xede9f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x508542=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53e3cd=>'attribute'==_0x53e3cd['type'])['filter'](_0x5529e1=>_0xede9f8['includes'](_0x5529e1['attributeKey']));if(0x0==_0x508542['length'])return _0x9c3d36;for(const _0x37d4d3 of _0x508542){const _0x50b586=_0x4c717d['_findSuggestions'](_0x37d4d3['range'],'attribute')['filter'](_0x447331=>!_0x447331['meta']['isNextTo'])['map'](_0x1b4538=>_0x1b4538['suggestion'])['filter'](_0x18e9a1=>{const _0x1f0fda=_0x4c717d['_getAttributeKey'](_0x18e9a1);return _0xede9f8['includes'](_0x1f0fda);});if(_0x50b586['length']){for(const _0x5719aa of _0x50b586)_0x273adb['removeMarker'](_0x5719aa['getFirstMarker']());_0x9c3d36=!0x0;}}return _0x9c3d36;}['assureChains'](){const _0x131b40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30b3db=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a7cf5;const _0x3ff364=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59783a=>{if(_0x59783a['data']['oldRange']||!_0x59783a['data']['newRange'])return null;if(!_0x59783a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x33f250}=_0x131b40['_splitMarkerName'](_0x59783a['name']);if(!_0x131b40['hasSuggestion'](_0x33f250))return null;const _0x45d6d1=_0x131b40['getSuggestion'](_0x33f250);return _0x30b3db['includes'](_0x45d6d1['data']['key']);})['map'](_0x927b2f=>{const {id:_0x262e8e}=_0x131b40['_splitMarkerName'](_0x927b2f['name']),_0xfb6586=_0x131b40['getSuggestion'](_0x262e8e);return _0x1a7cf5=_0xfb6586['attributes']['groupId'],_0xfb6586['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ff364['size'])return;const _0x53266f=_0x131b40['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c4b76=>'attribute'==_0x3c4b76['type']&&_0x3c4b76['data']&&_0x30b3db['includes'](_0x3c4b76['data']['key'])&&_0x3c4b76['attributes']['groupId']!=_0x1a7cf5)['map'](_0x4f5272=>({'listItem':_0x4f5272['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f5272['attributes']['groupId']})),_0x4c1e25=new Set();for(const {groupId:_0x10b03b,listItem:_0x10bc9d}of _0x53266f)_0x3ff364['has'](_0x10bc9d)&&_0x4c1e25['add'](_0x10b03b);for(const _0x15a544 of _0x131b40['getSuggestions']())_0x4c1e25['has'](_0x15a544['attributes']['groupId'])&&_0x15a544['setAttribute']('groupId',_0x1a7cf5);}['_supportLegacySuggestions'](){const _0x3da9b5=this['editor'],_0x142a34=_0x3da9b5['locale'],_0x102c53=_0x3da9b5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x102c53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a4d5d,_0x56434e){const _0x5a8f78=[];for(let _0x58937a of _0x2a4d5d)_0x58937a['start']['nodeAfter']===_0x58937a['end']['parent']&&(_0x58937a=_0x3da9b5['model']['createRange'](_0x3da9b5['model']['createPositionAt'](_0x58937a['start']['nodeAfter'],0x0))),_0x5a8f78['push'](_0x58937a);_0x3da9b5['model']['change'](_0xc82356=>{const _0x38acb2=_0x3da9b5['model']['document']['selection'],_0x486e5b=Array['from'](_0x38acb2['getRanges']())['map'](_0x4c16fe=>_0x5ed280['fromRange'](_0x4c16fe));_0xc82356['setSelection'](_0x5a8f78),_0x3da9b5['commands']['get'](_0x56434e['commandName'])['refresh'](),_0x56434e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3da9b5['execute'](_0x56434e['commandName'],..._0x56434e['commandParams']),_0xc82356['setSelection'](_0x486e5b);for(const _0x2d6405 of _0x486e5b)_0x2d6405['detach']();});}),_0x102c53['descriptionFactory']['registerElementLabel'](function(_0x5bdca7){const _0x549e6e=!_0x3da9b5['model']['schema']['isObject'](_0x5bdca7),_0x3d3154=_0x5bdca7['previousSibling'],_0x3a05c4=_0x5bdca7['nextSibling'],_0x15a967=_0x5bdca7['getAttribute']('listItemId'),_0x29930e=!_0x3d3154||_0x3d3154['getAttribute']('listItemId')!==_0x15a967,_0x5db92d=!_0x3a05c4||_0x3a05c4['getAttribute']('listItemId')!==_0x15a967;return _0x549e6e&&Boolean(_0x15a967)&&_0x29930e&&_0x5db92d;},_0x4f8999=>o(_0x142a34,'ELEMENT_LIST_ITEM',_0x4f8999));}['_registerLegacyDescription'](){const _0x41d8c6=this['editor'],_0x129e9a=_0x41d8c6['locale'];function _0x1b92eb(_0x174a69){const _0x18a574=_0x41d8c6['commands']['get']('bulletedList')['value'],_0x12f139=_0x41d8c6['commands']['get']('numberedList')['value'];return'numberedList'===_0x174a69?_0x18a574:_0x12f139;}_0x41d8c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3fa2d8){if('formatBlock'!=_0x3fa2d8['type'])return;const {data:_0x15ee07}=_0x3fa2d8;if(!_0x15ee07)return;let _0x1ca37d,_0x1ec349,_0xeb87f6,_0x381897;switch(_0x15ee07['commandName']){case'bulletedList':_0xeb87f6=_0x15ee07['commandParams'][0x0]['forceValue'],_0x381897=_0x1b92eb(_0x15ee07['commandName']),_0x1ca37d=_0xeb87f6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x381897&&_0x41d8c6['config']['get']('list.multiBlock')||(_0x1ca37d='*Change\x20to:*\x20%0'),_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xeb87f6=_0x15ee07['commandParams'][0x0]['forceValue'],_0x381897=_0x1b92eb(_0x15ee07['commandName']),_0x1ca37d=_0xeb87f6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x381897&&_0x41d8c6['config']['get']('list.multiBlock')||(_0x1ca37d='*Change\x20to:*\x20%0'),_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ca37d='*Indent:*\x20%0',_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ca37d=function(_0x2fc969){const _0x208db0=_0x2fc969['getFirstRange']();let _0x97db7c=_0x208db0['start']['nodeAfter'];for(;_0x97db7c&&_0x208db0['containsItem'](_0x97db7c);){if(_0x97db7c['getAttribute']('listIndent')>0x0)return!0x1;_0x97db7c=_0x97db7c['nextSibling'];}return!0x0;}(_0x3fa2d8)?o(_0x129e9a,'*Format:*\x20remove\x20from\x20%0',o(_0x129e9a,function(_0x258ffe){return'ELEMENT_'+_0x258ffe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3fa2d8))):o(_0x129e9a,'*Outdent:*\x20%0',o(_0x129e9a,'ELEMENT_LIST_ITEM')),_0x1ec349={'type':'format','content':_0x1ca37d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x15ee07['multipleBlocks']&&(_0x1ca37d='*Merge:*\x20%0',_0x1ec349={'type':'deletion','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_LIST_ITEM'))});}return _0x1ec349;});}}function Ee(_0x25ed44){let _0x4ab9d8=_0x25ed44['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4ab9d8;){const _0x1d74d7=_0x4ab9d8['getAttribute']('listItemId');if(!_0x1d74d7)return!0x1;if(_0x1d74d7==_0x25ed44['data']['newValue'])return'newValue';if(_0x1d74d7==_0x25ed44['data']['oldValue'])return'oldValue';_0x4ab9d8=_0x4ab9d8['previousSibling'];}return!0x1;}class pe extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x196b21=this['editor']['config']['get']('list.properties'),_0x3a6f54=this['editor']['plugins']['get']('TrackChangesEditing');_0x196b21['styles']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listStyle'),_0x3a6f54['registerBlockAttribute']('listStyle')),_0x196b21['reversed']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listReversed'),_0x3a6f54['registerBlockAttribute']('listReversed')),_0x196b21['startIndex']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listStart'),_0x3a6f54['registerBlockAttribute']('listStart'));const _0x381e9b={'type':'format','content':''};_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d3bc8=this['editor']['locale'];_0x3a6f54['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d3bc8,'FORMAT_LIST_REVERSED')),_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](_0x3aff8a=>{const {data:_0x3a2ea8}=_0x3aff8a;if(_0x3a2ea8&&'listReversed'==_0x3a2ea8['key'])return null==_0x3a2ea8['newValue']||0x0==_0x3a2ea8['newValue']&&null==_0x3a2ea8['oldValue']?_0x381e9b:void 0x0;}),_0x3a6f54['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d3bc8,'FORMAT_LIST_START')),_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](_0x54a879=>{const {data:_0x2e6fec}=_0x54a879;if(_0x2e6fec&&'listStart'==_0x2e6fec['key'])return null==_0x2e6fec['newValue']||0x1==_0x2e6fec['newValue']&&null==_0x2e6fec['oldValue']?_0x381e9b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x178092=>{if(_0x178092['batch']['isUndo'])return!0x1;let _0x135dc6=!0x1;const _0x4d466c=_0x3a6f54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x128c9d=>{const _0x6c67a9=_0x3a6f54['_getAttributeKey'](_0x128c9d);return'listStart'==_0x6c67a9||'listReversed'==_0x6c67a9;});for(const _0x44f4f5 of _0x4d466c){const _0x587f6e=_0x44f4f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x587f6e||'customNumbered'==_0x587f6e)continue;_0x3a6f54['_findSuggestions'](_0x44f4f5['getFirstRange'](),'attribute')['find'](_0x66dc7d=>'listType'==_0x3a6f54['_getAttributeKey'](_0x66dc7d['suggestion']))||(_0x178092['removeMarker'](_0x44f4f5['getFirstMarker']()),_0x135dc6=!0x0);}return _0x135dc6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5caf57){const _0x23876a=this['editor']['locale'],{data:_0x53eb5c}=_0x5caf57,_0x2db5d9={'type':'format','content':''};if(!_0x53eb5c||'listStyle'!=_0x53eb5c['key'])return;if(!_0x53eb5c['oldValue'])return'default'==_0x53eb5c['newValue']?_0x2db5d9:{'type':'format','content':''+o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['newValue'])))};if(!_0x53eb5c['newValue']){if('default'==_0x53eb5c['oldValue'])return _0x2db5d9;let _0x3febc1=_0x5caf57['head'];for(;_0x3febc1;){if(_0x3febc1['data']&&'listType'==_0x3febc1['data']['key']&&_0x3febc1['data']['newValue'])return _0x2db5d9;_0x3febc1=_0x3febc1['next'];}return{'type':'format','content':''+o(_0x23876a,'*Remove\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['oldValue'])))};}if('default'!=_0x53eb5c['newValue'])return{'type':'format','content':''+o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['newValue'])))};let _0x12bbfb=_0x5caf57['head'];for(;_0x12bbfb;){if(_0x12bbfb['data']&&'listType'==_0x12bbfb['data']['key']&&_0x12bbfb['data']['newValue']&&_0x12bbfb['data']['oldValue'])return _0x2db5d9;_0x12bbfb=_0x12bbfb['next'];}return{'type':'format','content':o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,'ELEMENT_'+_0x5caf57['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x148836=this['editor'],_0x4c36c1=_0x148836['locale'];_0x148836['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136aeb=>{if('formatBlock'!=_0x136aeb['type'])return;const {data:_0x4f81d1}=_0x136aeb;if(!_0x4f81d1)return;let _0x5ebe59,_0x407923;switch(_0x4f81d1['commandName']){case'listStyle':_0x5ebe59='*Change\x20to:*\x20%0',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59,o(_0x4c36c1,this['_getTranslationKeyForListStyle'](_0x4f81d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ebe59=_0x4f81d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59)};break;case'listStart':_0x5ebe59='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59,_0x4f81d1['commandParams'][0x0]['startIndex'])};}return _0x407923;});}['_getTranslationKeyForListStyle'](_0x47590d){return'ELEMENT_'+function(_0x55eb5c){if(ye['includes'](_0x55eb5c))return'bulleted';if(Se['includes'](_0x55eb5c))return'numbered';return null;}(_0x47590d)['toUpperCase']()+'_LIST_'+_0x47590d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3cc490{static get['requires'](){return[_0x5bb9ca];}['init'](){const _0x3a01d1=this['editor'],_0x4a2073=_0x3a01d1['plugins']['get']('TrackChangesEditing'),_0x3b559f=_0x3a01d1['commands']['get']('enter');_0x4a2073['enableCommand']('enter',()=>{_0x3a01d1['model']['change'](_0x3e78ed=>{const _0x435b21=_0x3a01d1['model']['document']['selection'],_0x181603=_0x435b21['getFirstPosition'](),_0x29d061=_0x5ed280['fromRange'](_0x435b21['getFirstRange']());if(_0x3b559f['enterBlock'](_0x3e78ed)){const _0x3c383b=_0x3a01d1['model']['createPositionAt'](_0x181603['parent']['nextSibling'],0x0),_0x249503=_0x3e78ed['createRange'](_0x181603,_0x3c383b);_0x4a2073['markInsertion'](_0x249503);}else _0x3e78ed['setSelection'](_0x3e78ed['createRange'](_0x29d061['end']));_0x29d061['detach'](),_0x3b559f['fire']('afterExecute',{'writer':_0x3e78ed});});}),_0x3a01d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3a01d1,'split'),{'priority':'high'}),_0x3a01d1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x86eb6c,_0x5164d7,_0x4cf8d5)=>{const _0x4cdf83=_0x4cf8d5['mapper']['markerNameToElements'](_0x5164d7['markerName']);if(_0x4cdf83){for(const _0x1d684b of _0x4cdf83)_0x1d684b['hasClass']('ck-suggestion-marker-split')&&(_0x4cf8d5['mapper']['unbindElementFromMarkerName'](_0x1d684b,_0x5164d7['markerName']),_0x4cf8d5['writer']['remove'](_0x1d684b));}},{'priority':'high'}),_0x3a01d1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8b0eab,_0x171662,_0x495f9d)=>{_0x495f9d['options']['showSuggestionHighlights']&&_e(_0x3a01d1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8b0eab,_0x171662,_0x495f9d);},{'priority':'high'});}}class X extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f52d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f52d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f52d4['enableCommand']('findNext'),_0x3f52d4['enableCommand']('findPrevious'),_0x3f52d4['enableCommand']('replace'),_0x3f52d4['enableCommand']('replaceAll');}['handleFindCommand'](_0x5bb408,_0xe63073,_0x7fcb7c={}){const _0x4cd34b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5bb408(_0xe71ca3=>{let _0x5ccf5c=('string'==typeof _0xe63073?_0x4cd34b['findByTextCallback'](_0xe63073,_0x7fcb7c):_0xe63073)(_0xe71ca3);Array['isArray'](_0x5ccf5c)&&(_0x5ccf5c={'results':_0x5ccf5c,'searchText':'string'==typeof _0xe63073?_0xe63073:''});const _0x474324=_0x5ccf5c['results']['filter'](_0x1dd4c1=>!0x1===this['_isInDeletionRange'](_0x1dd4c1,_0xe71ca3['item']));return{..._0x5ccf5c,'results':_0x474324};},_0x7fcb7c);}['_isInDeletionRange'](_0x5bac26,_0x1fdceb){const _0x42bc05=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fdceb,_0x5bac26['start']),this['editor']['model']['createPositionAt'](_0x1fdceb,_0x5bac26['end']));for(const _0x2a36f7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x42bc05['getIntersection'](_0x2a36f7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x3cc490{['afterInit'](){const _0x2a4c85=this['editor']['locale'],_0x18aa3a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x56c611,commandName:_0x1500b1}of ro)this['editor']['plugins']['has'](_0x56c611)&&(_0x18aa3a['enableDefaultAttributesIntegration'](_0x1500b1),_0x18aa3a['registerInlineAttribute'](_0x1500b1));_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2a4c85,'FORMAT_FONT_SIZE')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2a4c85,'FORMAT_FONT_FAMILY')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2a4c85,'FORMAT_FONT_COLOR')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2a4c85,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b57b0=this['editor'],_0x2ceb4e=_0x3b57b0['locale'];_0x3b57b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44094d=>{const _0x4f7c77=_0x2ceb4e['t'];if('formatInline'!=_0x44094d['type'])return;const {data:_0xe930a3}=_0x44094d;if(null!=_0xe930a3){if('fontSize'==_0xe930a3['commandName']){const _0x212ccb=_0xe930a3['commandParams'][0x0]['value'];if(_0x212ccb){const _0x27de51=_0x4f7c77(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1fcafb=>_0x1fcafb['model']==_0x212ccb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20size:*\x20%0',_0x27de51)};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe930a3['commandName']){const _0x427ef7=_0xe930a3['commandParams'][0x0]['value'];return _0x427ef7?{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20family:*\x20%0',_0x427ef7)}:{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe930a3['commandName']){const _0x107ab8=_0xe930a3['commandParams'][0x0]['value'];if(_0x107ab8){const _0x5d29c5=_0x4a8582(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c415c=>_0x5c415c['model']==_0x107ab8);let _0x1e1bde=_0x107ab8,_0x7b05dc='';return _0x5d29c5&&(_0x1e1bde=_0x5d29c5['label'],_0x7b05dc=_0x4f7c77(_0x1e1bde)['toLowerCase']()),{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20color:*\x20%0',_0x7b05dc)['trim'](),'color':{'value':_0x107ab8,'title':_0x7b05dc||_0x1e1bde}};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe930a3['commandName']){const _0x11c982=_0xe930a3['commandParams'][0x0]['value'];if(_0x11c982){const _0x42729f=_0x4a8582(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6a8e2d=>_0x6a8e2d['model']==_0x11c982);let _0x482f78=_0x11c982,_0x425df9='';return _0x42729f&&(_0x482f78=_0x42729f['label'],_0x425df9=_0x4f7c77(_0x482f78)['toLowerCase']()),{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20background\x20color:*\x20%0',_0x425df9)['trim'](),'color':{'value':_0x11c982,'title':_0x425df9||_0x482f78}};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3cc490{['afterInit'](){const _0x31652b=this['editor'],_0x5b29af=_0x31652b['plugins']['get']('TrackChangesEditing'),_0x11026c=_0x31652b['commands']['get']('copyFormat'),_0x2be002=_0x31652b['commands']['get']('pasteFormat');_0x11026c&&_0x2be002&&(_0x5b29af['enableDefaultAttributesIntegration']('pasteFormat'),_0x5b29af['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17f929=this['editor'],_0x16ce14=_0x17f929['locale'];_0x17f929['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b07d2=>{if('formatBlock'!=_0x3b07d2['type']&&'formatInline'!=_0x3b07d2['type'])return;const {data:_0x29ea7f}=_0x3b07d2;if(_0x29ea7f&&'pasteFormat'===_0x29ea7f['commandName']){const _0x4cadc2=[],_0x586d95=_0x29ea7f['commandParams'][0x0];for(const [_0x37017d,_0x5b4c88]of Object['entries'](_0x586d95))_0x4cadc2['push'](so(_0x17f929,_0x37017d,_0x5b4c88));return _0x4cadc2['length']?{'type':'format','content':o(_0x16ce14,'*Set\x20format\x20to:*\x20%0',_0x4cadc2['join'](',\x20'))}:{'type':'format','content':o(_0x16ce14,'*Remove\x20all\x20formatting*')};}});}}function so(_0xca145d,_0x52903f,_0x8c0877){const _0x389402=_0xca145d['locale']['t'],_0x2e6172=_0x52903f['split'](/(?=[A-Z])/)['join']('\x20'),_0x300253=_0x389402(_0x2e6172['charAt'](0x0)['toUpperCase']()+_0x2e6172['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8c0877)return _0x300253;if('fontColor'===_0x52903f||'fontBackgroundColor'===_0x52903f){const _0x56ae62=_0x4a8582(_0xca145d['config']['get']('fontColor.colors'))['find'](_0x459a6f=>_0x459a6f['model']==_0x8c0877);return _0x300253+'\x20('+(_0x56ae62?_0x389402(_0x56ae62['label'])['toLowerCase']():_0x8c0877)+')';}if('fontSize'===_0x52903f&&isNaN(parseFloat(_0x8c0877))){const _0x28b6f7=_0xca145d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xca145d['config']['get']('fontSize.options'))['find'](_0x269c25=>_0x269c25['model']==_0x8c0877);return _0x300253+'\x20('+(_0x28b6f7?_0x389402(_0x28b6f7['title'])['toLowerCase']():_0x8c0877)+')';}return _0x300253+'\x20('+_0x8c0877+')';}class tt extends _0x3cc490{['_headingOptions'];['afterInit'](){const _0x3b2324=this['editor'];if(!_0x3b2324['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b2324['config']['get']('heading.options');const _0x98c8d4=_0x3b2324['locale'],_0x42343e=_0x3b2324['plugins']['get']('TrackChangesEditing');_0x42343e['enableDefaultAttributesIntegration']('heading');for(const _0x4c17ae of this['_headingOptions'])'paragraph'!=_0x4c17ae['model']&&_0x42343e['descriptionFactory']['registerElementLabel'](_0x4c17ae['model'],_0x90eb6e=>{const _0xfc42b=this['_getHeadingLevel'](_0x4c17ae['model']);return null!==_0xfc42b?_0x556f8a(_0x90eb6e,_0xfc42b):_0x4d8903(_0x90eb6e,_0x4c17ae['title']);});function _0x556f8a(_0x3b728c,_0x46c818){return o(_0x98c8d4,'ELEMENT_HEADING',[_0x3b728c,_0x46c818]);}function _0x4d8903(_0x1decc1,_0x3c700d){return o(_0x98c8d4,'ELEMENT_HEADING_CUSTOM',[_0x1decc1,_0x3c700d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166ad4=this['editor'],_0x44152e=_0x166ad4['locale'];function _0x255ec3(_0x354891,_0x45915f){return o(_0x44152e,'ELEMENT_HEADING_CUSTOM',[_0x354891,_0x45915f]);}_0x166ad4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x157cef=>{if('formatBlock'!=_0x157cef['type'])return;const {data:_0x199070}=_0x157cef;if(_0x199070&&'heading'==_0x199070['commandName']){const _0x5a4fcd=_0x199070['commandParams'][0x0]['value'],_0x8bd92=this['_getHeadingLevel'](_0x5a4fcd);if(null!==_0x8bd92)return{'type':'format','content':o(_0x44152e,'*Change\x20to:*\x20%0',(_0x18e68d=0x1,_0x2af36b=_0x8bd92,o(_0x44152e,'ELEMENT_HEADING',[_0x18e68d,_0x2af36b])))};const _0x461be4=this['_headingOptions']['find'](_0x35f2a0=>_0x35f2a0['model']===_0x5a4fcd)['title'];return{'type':'format','content':o(_0x44152e,'*Change\x20to:*\x20%0',_0x255ec3(0x1,_0x461be4))};}var _0x18e68d,_0x2af36b;});}['_getHeadingLevel'](_0x308870){const _0x4f5a7f=_0x308870['match'](/^heading(\d+)/);if(_0x4f5a7f)return _0x4f5a7f[0x1];const _0x308c70=this['_headingOptions']?.['find'](_0x3a3c9d=>_0x3a3c9d['model']==_0x308870);if(_0x308c70&&_0x308c70['view']){const _0x2f8211=_0x308c70['view'],_0x1f6625=(_0x2f8211['name']??_0x2f8211)['match'](/^h(\d+)/);if(_0x1f6625)return _0x1f6625[0x1];}return null;}}class et extends _0x3cc490{['afterInit'](){const _0x4dcf05=this['editor'];if(!_0x4dcf05['plugins']['has']('HighlightEditing'))return;const _0x1c180a=_0x4dcf05['plugins']['get']('TrackChangesEditing'),_0x112d47=_0x4dcf05['locale'];_0x1c180a['enableDefaultAttributesIntegration']('highlight'),_0x1c180a['registerInlineAttribute']('highlight'),_0x1c180a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x112d47,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x761b8e=this['editor'],_0x4b7c24=_0x761b8e['locale'];_0x761b8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cabf4=>{if('formatInline'!=_0x5cabf4['type'])return;const {data:_0x25625a}=_0x5cabf4;if(_0x25625a&&'highlight'==_0x25625a['commandName']){const _0x201ebd=_0x4b7c24['t'],_0x49baed=_0x25625a['commandParams'][0x0]['value'];if(_0x49baed){const _0x243f75=_0x761b8e['config']['get']('highlight.options')['find'](_0x3f2386=>_0x3f2386['model']==_0x49baed),_0xdb6d96=_0x201ebd(_0x243f75['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b7c24,'*Set\x20highlight:*\x20%0',_0xdb6d96),'color':{'value':_0x243f75['color'],'title':_0x243f75['title']}};}return{'type':'format','content':o(_0x4b7c24,'*Remove\x20highlight*',o(_0x4b7c24,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3cc490{['afterInit'](){const _0x4620ed=this['editor'];if(!_0x4620ed['plugins']['has']('HorizontalLineEditing'))return;_0x4620ed['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55f16d=_0x4620ed['plugins']['get']('TrackChangesEditing'),_0x354a43=_0x4620ed['locale'];_0x55f16d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x425baf=>o(_0x354a43,'ELEMENT_HORIZONTAL_LINE',_0x425baf)),_0x4620ed['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x38aaef,{writer:_0x1fb667,options:_0x5aeebb})=>{if(!_0x5aeebb['showSuggestionHighlights'])return null;const _0x558f19=_0x1fb667['createContainerElement']('div'),_0x235320=_0x1fb667['createEmptyElement']('hr');return _0x1fb667['addClass']('ck-horizontal-line',_0x558f19),_0x1fb667['insert'](_0x1fb667['createPositionAt'](_0x558f19,0x0),_0x235320),_0x558f19;},'converterPriority':'high'});}}class st extends _0x3cc490{['afterInit'](){const _0x12f8e7=this['editor'];if(!_0x12f8e7['plugins']['has']('HtmlEmbed'))return;const _0x39ff5c=_0x12f8e7['plugins']['get']('TrackChangesEditing'),_0x51baeb=_0x12f8e7['locale'];_0x39ff5c['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d701d=>o(_0x51baeb,'ELEMENT_HTML_EMBED',_0x4d701d)),_0x39ff5c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x39ff5c['registerBlockAttribute']('value'),_0x39ff5c['descriptionFactory']['registerDescriptionCallback'](_0x80089b=>{if('attribute'!=_0x80089b['type'])return;const {data:_0x228b17}=_0x80089b;if(_0x228b17&&'value'==_0x228b17['key']&&_0x80089b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x45809d=o(_0x51baeb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51baeb,'*Change\x20%0\x20content*',_0x45809d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x336f2d=this['editor'],_0x60c22f=_0x336f2d['locale'];_0x336f2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328b7a=>{if('formatBlock'!=_0x328b7a['type'])return;const {data:_0x1c9fc7}=_0x328b7a;if(_0x1c9fc7&&'htmlEmbed'==_0x1c9fc7['commandName']){const _0x38ce41=o(_0x60c22f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x60c22f,'*Change\x20%0\x20content*',_0x38ce41)};}});}}class nt extends _0x3cc490{['afterInit'](){const _0x3f185f=this['editor'];if(!_0x3f185f['plugins']['has']('ImageEditing'))return;const _0x3fc1e4=_0x3f185f['plugins']['get']('TrackChangesEditing'),_0x3b05ec=_0x3f185f['plugins']['get']('ImageUtils'),_0x339d31=_0x3f185f['locale'];_0x3fc1e4['enableCommand']('insertImage'),_0x3fc1e4['descriptionFactory']['registerElementLabel']('imageBlock',_0x4729f4=>o(_0x339d31,'ELEMENT_IMAGE',_0x4729f4)),_0x3fc1e4['descriptionFactory']['registerElementLabel']('imageInline',_0x27face=>o(_0x339d31,'ELEMENT_INLINE_IMAGE',_0x27face)),_0x3fc1e4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x339d31,'ELEMENT_CAPTION')),_0x3f185f['plugins']['has']('ImageUploadEditing')&&_0x3fc1e4['enableCommand']('uploadImage'),_0x3f185f['plugins']['has']('ImageBlockEditing')&&_0x3f185f['plugins']['has']('ImageInlineEditing')&&(_0x3fc1e4['enableCommand']('imageTypeInline',(_0x100fa2,_0x47b2f5)=>{const _0x411bc0=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']);_0x3f185f['model']['change'](()=>{_0x3fc1e4['markBlockFormat'](_0x411bc0,{'commandName':'imageTypeInline','commandParams':[_0x47b2f5]},[],'convertBlockImageToInline');});}),_0x3fc1e4['enableCommand']('imageTypeBlock',(_0x64aa3e,_0x963c93)=>{_0x3f185f['model']['change'](_0x56d02c=>{let _0x259afb=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x276d2a=_0x56d02c['createRangeOn'](_0x259afb);const _0x18bb41=_0x2e45ca['fromPosition'](_0x276d2a['start'],'toPrevious'),_0x24c698=_0x2e45ca['fromPosition'](_0x276d2a['end'],'toNext');_0x3fc1e4['forceDefaultExecution'](()=>_0x64aa3e(_0x963c93)),_0x259afb=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x276d2a=_0x56d02c['createRangeOn'](_0x259afb);const _0x3832c8=_0x56d02c['createRange'](_0x18bb41,_0x24c698);_0x18bb41['detach'](),_0x24c698['detach'](),_0x3fc1e4['markBlockFormat'](_0x259afb,{'commandName':'imageTypeInline','commandParams':[_0x963c93]},[],'convertInlineImageToBlock'),_0x3832c8['start']['isBefore'](_0x276d2a['start'])&&_0x3fc1e4['markInsertion'](_0x56d02c['createRange'](_0x3832c8['start'],_0x276d2a['start']),'convertInlineImageToBlock'),_0x276d2a['end']['isBefore'](_0x3832c8['end'])&&_0x3fc1e4['markInsertion'](_0x56d02c['createRange'](_0x276d2a['end'],_0x3832c8['end']),'convertInlineImageToBlock');});}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3fc1e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x187c05])=>{const _0x47004e=_0x3fc1e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x455c71=_0x187c05['start'],_0x4bfd67=_0x187c05['end'];const _0x2a231f=_0x3f185f['model']['schema']['getNearestSelectionRange'](_0x455c71,'backward'),_0x2530b6=_0x3f185f['model']['schema']['getNearestSelectionRange'](_0x4bfd67,'forward');_0x2a231f['isCollapsed']&&(_0x455c71=_0x2a231f['start']),_0x2530b6['isCollapsed']&&(_0x4bfd67=_0x2530b6['end']),_0x47004e([_0x3f185f['model']['createRange'](_0x455c71,_0x4bfd67)]);}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4d6188),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4d6188)),_0x3f185f['plugins']['has']('ImageCaptionEditing')&&(_0x3fc1e4['enableCommand']('toggleImageCaption',(_0x389856,_0x5a3905)=>{const _0x37a11c=_0x3f185f['plugins']['get']('ImageCaptionUtils');let _0x64c9cd=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x21fbc0=_0x37a11c['getCaptionFromImageModelElement'](_0x64c9cd);_0x3f185f['model']['change'](()=>{if(_0x21fbc0)return void _0x3fc1e4['markDeletion'](_0x3f185f['model']['createRangeOn'](_0x21fbc0));const _0x369b4a=_0x3b05ec['isBlockImage'](_0x64c9cd);_0x389856(_0x5a3905),_0x64c9cd=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x21fbc0=_0x37a11c['getCaptionFromImageModelElement'](_0x64c9cd),_0x3fc1e4['markInsertion'](_0x3f185f['model']['createRangeOn'](_0x21fbc0),_0x369b4a?null:'imageCaption');});}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4d6188));const _0x3a6bb7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1012fa(_0xd2d53,_0xb65110){const _0x421b00=_0x3a6bb7['findIndex'](({type:_0x4566ba,subType:_0x38cde6})=>_0xd2d53['type']==_0x4566ba&&_0xd2d53['subType']==_0x38cde6),_0x2390a9=_0x3a6bb7['findIndex'](({type:_0x5588b8,subType:_0x1cfe1d})=>_0xb65110['type']==_0x5588b8&&_0xb65110['subType']==_0x1cfe1d);if(_0x421b00<0x0||_0x2390a9<0x0)return!0x1;const _0x84dd23=_0xd2d53['getFirstRange'](),_0x185cc9=_0xb65110['getFirstRange']();if((0x0==_0x421b00||0x1==_0x421b00)&&0x2==_0x2390a9&&_0x84dd23['isIntersecting'](_0x185cc9))return!0x0;if(0x2==_0x421b00&&0x3==_0x2390a9){const _0x179bdb=_0x3fc1e4['_findSuggestions'](_0x84dd23,'insertion')['filter'](({suggestion:_0x2ed99b,meta:_0x34de62})=>_0x34de62['isOwn']&&'convertInlineImageToBlock'==_0x2ed99b['subType']);if(_0x179bdb['length']>0x1&&_0x185cc9['end']['isEqual'](_0x84dd23['start']))return!0x0;if(0x1==_0x179bdb['length']&&(_0x84dd23['start']['isEqual'](_0x185cc9['end'])||_0x84dd23['end']['isEqual'](_0x185cc9['start'])))return!0x0;}if(0x3==_0x421b00&&0x3==_0x2390a9&&_0x84dd23['start']['isBefore'](_0x185cc9['start'])){const _0x48dcc6=_0x84dd23['end']['nodeAfter'],_0x1cb96e=_0x185cc9['start']['nodeBefore'];return _0x3b05ec['isBlockImage'](_0x48dcc6)&&_0x48dcc6===_0x1cb96e;}return!0x1;}function _0x4d6188(_0x15379d,_0x6888aa){return _0x1012fa(_0x15379d,_0x6888aa)?[_0x15379d,_0x6888aa]:_0x1012fa(_0x6888aa,_0x15379d)?[_0x6888aa,_0x15379d]:null;}_0x3f185f['plugins']['has']('ImageResize')&&(_0x3fc1e4['enableDefaultAttributesIntegration']('resizeImage'),_0x3fc1e4['registerBlockAttribute']('resizedWidth'),_0x3fc1e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x339d31,'FORMAT_IMAGE_SIZE'))),_0x3f185f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3fc1e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3fc1e4['registerBlockAttribute']('alt')),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x294611=>{if(!!_0x3a6bb7['find'](({type:_0x1241cd,subType:_0xd32008})=>_0x294611['type']==_0x1241cd&&_0x294611['subType']==_0xd32008))return _0x294611['previous']?{}:void 0x0;}),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x201f3d=>{if('insertion'==_0x201f3d['type']||'deletion'==_0x201f3d['type']){const _0x2ac247=_0x201f3d['getContainedElement']();if(_0x2ac247&&_0x2ac247['is']('element','caption'))return{'type':'insertion'==_0x201f3d['type']?'addObject':'removeObject','element':_0x2ac247,'quantity':0x1};}}),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x5e3300=>'formatBlock'==_0x5e3300['type']&&'convertInlineImageToBlock'==_0x5e3300['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e3300['type']&&'convertBlockImageToInline'==_0x5e3300['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x1320c8=>{if('attribute'!=_0x1320c8['type'])return;const {data:_0x28ad35}=_0x1320c8;if(!_0x28ad35||'alt'!=_0x28ad35['key'])return;const _0x2d5c63=_0x28ad35['newValue'];return _0x2d5c63?{'type':'format','content':o(_0x339d31,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d5c63+'\x22')}:{'type':'format','content':o(_0x339d31,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4a01=this['editor'],_0x531e0b=_0x2a4a01['locale'];_0x2a4a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa48f9c=>{if('formatBlock'!=_0xa48f9c['type']&&'formatInline'!=_0xa48f9c['type'])return;const {data:_0x41a8be}=_0xa48f9c;if(_0x41a8be){if('imageTextAlternative'==_0x41a8be['commandName']){const _0x2b512a=_0x41a8be['commandParams'][0x0]['newValue'];return _0x2b512a?{'type':'format','content':o(_0x531e0b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2b512a+'\x22')}:{'type':'format','content':o(_0x531e0b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41a8be['commandName']){const _0x1d8862=_0x41a8be['commandParams'][0x0]['width'];return _0x1d8862?{'type':'format','content':o(_0x531e0b,'*Set\x20image\x20width:*\x20%0',_0x1d8862)}:{'type':'format','content':o(_0x531e0b,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x43b129=this['editor']['locale'],_0x3e4681=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4681['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3e4681['registerBlockAttribute']('src'),_0x3e4681['descriptionFactory']['registerDescriptionCallback'](_0x4d1ccf=>{if('attribute'!=_0x4d1ccf['type'])return;const {data:_0x27f9fc}=_0x4d1ccf;return _0x27f9fc&&'src'==_0x27f9fc['key']?_0x27f9fc['newValue']&&_0x27f9fc['oldValue']?{'type':'format','content':o(_0x43b129,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b6d06=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b6d06['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1b6d06['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b6d06['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1b6d06['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2ab=this['editor'],_0x51b393=_0x1b2ab['locale'];_0x1b2ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c2c5e=>{if('formatBlock'!=_0x5c2c5e['type']&&'formatInline'!=_0x5c2c5e['type'])return;const {data:_0x577540}=_0x5c2c5e;if(!_0x577540||'replaceImageSource'!=_0x577540['commandName'])return;return{'type':'format','content':o(_0x51b393,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3cc490{['afterInit'](){const _0x1925bc=this['editor'];if(!_0x1925bc['plugins']['has']('ImageStyleEditing'))return;const _0x432d2d=_0x1925bc['plugins']['get']('TrackChangesEditing'),_0x4e8816=_0x1925bc['plugins']['get']('ImageUtils'),_0x52c84b={};_0x432d2d['enableCommand']('imageStyle',(_0x55dc74,_0x2945c3)=>{const _0x357449=_0x1925bc['plugins']['get']('Users')['me'],_0x3b1c90=_0x1925bc['commands']['get']('imageStyle');let _0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),_0x4fd52f=_0x1925bc['model']['createRangeOn'](_0x4b49f0),_0x478d16=_0x3b1c90['value'];if(_0x478d16==_0x2945c3['value'])return;const _0x379ab4={'commandName':'imageStyle','commandParams':[_0x2945c3],'formatGroupId':_0x36eeaa()};_0x1925bc['model']['change'](()=>{if(_0x432d2d['getSuggestions']()['filter'](_0x587f33=>_0x587f33['isInContent']&&_0x357449==_0x587f33['author']&&('formatBlock'==_0x587f33['type']||'formatInline'==_0x587f33['type'])&&('imageStylePreApply'==_0x587f33['subType']||'imageStylePostApply'==_0x587f33['subType'])&&_0x587f33['getFirstRange']()['isEqual'](_0x4fd52f))['forEach'](_0x31deec=>_0x432d2d['discardSuggestion'](_0x31deec['head'])),_0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),_0x4fd52f=_0x1925bc['model']['createRangeOn'](_0x4b49f0),_0x3b1c90['refresh'](),_0x1925bc['commands']['get']('imageTypeInline')['refresh'](),_0x1925bc['commands']['get']('imageTypeBlock')['refresh'](),_0x478d16=_0x3b1c90['value'],_0x478d16!=_0x2945c3['value'])return _0x4e8816['isInlineImage'](_0x4b49f0)&&_0x3b1c90['shouldConvertImageType'](_0x2945c3['value'],_0x4b49f0)?(_0x55dc74({..._0x2945c3,'setImageSizes':!0x1}),_0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),void _0x432d2d['markBlockFormat'](_0x4b49f0,{..._0x379ab4,'commandReversedParams':[{'value':_0x478d16||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e8816['isBlockImage'](_0x4b49f0)?_0x432d2d['markBlockFormat'](_0x4b49f0,_0x379ab4,[],'imageStylePostApply'):_0x432d2d['markInlineFormat'](_0x4fd52f,_0x379ab4,'imageStylePostApply'));});});for(const _0xaa8cfb of _0x1925bc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x52c84b[_0xaa8cfb['name']]=_0xaa8cfb['title']['toLowerCase']();_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44dab0])=>{_0x4e8816['setImageNaturalSizeAttributes'](_0x44dab0['getContainedElement']());}),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c3b93,_0x3f0a08)=>{_0x432d2d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c3b93,{'commandName':_0x3f0a08['commandName'],'commandParams':_0x3f0a08['commandReversedParams']});}),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1cdaa2,_0x3835da){if(_0x1bb7df(_0x1cdaa2,_0x3835da))return[_0x1cdaa2,_0x3835da];if(_0x1bb7df(_0x3835da,_0x1cdaa2))return[_0x3835da,_0x1cdaa2];return null;});const _0x2177bf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bb7df(_0x19e988,_0x2d1052){const _0x2d933f=_0x2177bf['findIndex'](({type:_0x37a775,subType:_0x27a4ab})=>_0x19e988['type']==_0x37a775&&_0x19e988['subType']==_0x27a4ab),_0x2f7f75=_0x2177bf['findIndex'](({type:_0x5075ae,subType:_0xd6d002})=>_0x2d1052['type']==_0x5075ae&&_0x2d1052['subType']==_0xd6d002);if(_0x2d933f<0x0||_0x2f7f75<0x0)return!0x1;const _0x3d7ce5=_0x19e988['getFirstRange'](),_0x37ff2a=_0x2d1052['getFirstRange']();if((0x0==_0x2d933f||0x1==_0x2d933f)&&0x2==_0x2f7f75&&_0x3d7ce5['isIntersecting'](_0x37ff2a))return!0x0;if(0x2==_0x2d933f&&0x3==_0x2f7f75){const _0x473792=_0x432d2d['_findSuggestions'](_0x3d7ce5,'insertion')['filter'](({suggestion:_0x2da292,meta:_0x128251})=>_0x128251['isOwn']&&'convertInlineImageToBlock'==_0x2da292['subType']);if(_0x473792['length']>0x1&&_0x37ff2a['end']['isEqual'](_0x3d7ce5['start']))return!0x0;if(0x1==_0x473792['length']&&(_0x3d7ce5['start']['isEqual'](_0x37ff2a['end'])||_0x3d7ce5['end']['isEqual'](_0x37ff2a['start'])))return!0x0;}if(0x3==_0x2d933f&&0x3==_0x2f7f75&&_0x3d7ce5['start']['isBefore'](_0x37ff2a['start'])){const _0x538c37=_0x3d7ce5['end']['nodeAfter'],_0x576d7d=_0x37ff2a['start']['nodeBefore'];return _0x4e8816['isBlockImage'](_0x538c37)&&_0x538c37===_0x576d7d;}return!0x1;}_0x1925bc['model']['document']['registerPostFixer'](()=>{let _0x3d9404=!0x1;const _0x647d6e=Array['from'](_0x1925bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b415a,data:_0x232b68}of _0x647d6e){const {group:_0x1a2c9f,type:_0x2e7d80,subType:_0x821c43,id:_0x22f264}=_0x432d2d['_splitMarkerName'](_0x2b415a);if('suggestion'==_0x1a2c9f&&_0x432d2d['hasSuggestion'](_0x22f264)){if('formatBlock'==_0x2e7d80&&('imageStylePreApply'==_0x821c43||'imageStylePostApply'==_0x821c43)){const _0x1dba3e=_0x432d2d['getSuggestion'](_0x22f264);if(_0x232b68['newRange']){const _0x946d68=_0x1dba3e['getFirstRange']()['getContainedElement']();if(_0x4e8816['isBlockImage'](_0x946d68))continue;_0x432d2d['discardSuggestion'](_0x1dba3e),_0x3d9404=!0x0;}}if('insertion'==_0x2e7d80&&'imageCaption'==_0x821c43&&!_0x232b68['newRange']){const _0x2be87e=_0x432d2d['getSuggestion'](_0x22f264);_0x2be87e['next']&&_0x2be87e['next']['isInContent']&&(_0x432d2d['discardSuggestion'](_0x2be87e['next']),_0x3d9404=!0x0);}}}return _0x3d9404;}),this['_registerLegacyDescription'](_0x52c84b);}['_registerLegacyDescription'](_0x4582a2){const _0x2f354b=this['editor'],_0x5e1232=_0x2f354b['locale'];_0x2f354b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8862=>{if('formatBlock'!=_0x4f8862['type']&&'formatInline'!=_0x4f8862['type'])return;const {data:_0xa89052}=_0x4f8862;if(!_0xa89052||'imageStyle'!=_0xa89052['commandName'])return;const _0x1854a9=_0xa89052['commandParams'][0x0]['value'];return _0x25f54('side'===_0x1854a9?o(_0x5e1232,'FORMAT_SIDE_IMAGE'):_0x4582a2[_0x1854a9]||_0x1854a9);function _0x25f54(_0x4da63c){return{'type':'format','content':o(_0x5e1232,'*Format:*\x20%0',_0x4da63c)};}});}}class at extends _0x3cc490{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25f8d4){super(_0x25f8d4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30a895=this['editor'],_0x4cc80b=_0x30a895['commands']['get']('importWord'),_0x34e6a8=_0x30a895['commands']['get']('trackChanges');_0x4cc80b&&(_0x4cc80b['on']('execute',(_0x3317b7,[,_0x371efc])=>{this['_trackChangesValueDuringImport']=_0x34e6a8['value'],_0x371efc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cc80b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cc80b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34e6a8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30a895['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x356117,_0x5678ac){const {suggestions:_0x269582}=_0x5678ac,_0x3ed877=this['editor']['commands']['get']('trackChanges'),_0x34a7ac=_0x3ed877['value'];this['_trackChangesValueDuringImport']!==_0x34a7ac&&(_0x3ed877['execute'](),this['_trackChangesExecuted']=!0x0),_0x269582&&_0x269582['forEach'](({id:_0x212531,type:_0x52b939,author:_0x4407d3,created_at:_0x417fc2})=>{const _0x1ebcc4={'id':_0x212531,'type':_0x52b939,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4407d3,'createdAt':_0x417fc2?new Date(_0x417fc2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ebcc4);});}}class ct extends _0x3cc490{['afterInit'](){const _0x364e2c=this['editor'],_0x5c65a2=_0x364e2c['plugins']['get']('TrackChangesEditing');if(_0x364e2c['plugins']['has']('IndentEditing')&&(_0x5c65a2['enableCommand']('indent'),_0x5c65a2['enableCommand']('outdent')),_0x364e2c['plugins']['has']('IndentBlock')){for(const _0x11c80f of['indentBlock','outdentBlock'])_0x5c65a2['enableDefaultAttributesIntegration'](_0x11c80f);}const _0x15b5f1=_0x364e2c['locale'];_0x5c65a2['registerBlockAttribute']('blockIndent'),_0x5c65a2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x15b5f1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42cc9c=this['editor'],_0x415db8=_0x42cc9c['locale'],_0x5d42e3=_0x42cc9c['plugins']['get']('TrackChangesEditing');_0x5d42e3['descriptionFactory']['registerDescriptionCallback'](_0x30be5e=>{if('formatBlock'!=_0x30be5e['type'])return;const {data:_0x1a5c48}=_0x30be5e;if(!_0x1a5c48)return;if('indentBlock'!=_0x1a5c48['commandName']&&'outdentBlock'!=_0x1a5c48['commandName'])return;const _0xb32cdf=_0x30be5e['getItems']()[0x0],_0x58086e=_0x5d42e3['descriptionFactory']['getItemLabel'](_0xb32cdf);return'indentBlock'==_0x1a5c48['commandName']?{'type':'format','content':o(_0x415db8,'*Indent:*\x20%0',_0x58086e)}:'outdentBlock'==_0x1a5c48['commandName']?{'type':'format','content':o(_0x415db8,'*Outdent:*\x20%0',_0x58086e)}:void 0x0;});}}class ut extends _0x3cc490{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3cc490{['afterInit'](){const _0x54bcca=this['editor'];if(!_0x54bcca['plugins']['has']('LinkEditing'))return;const _0x11070d=_0x54bcca['plugins']['get']('TrackChangesEditing'),_0x3f65c5=_0x54bcca['commands']['get']('link');_0x11070d['enableDefaultAttributesIntegration']('link'),_0x11070d['enableDefaultAttributesIntegration']('unlink'),_0x11070d['registerInlineAttribute']('linkHref');for(const _0x43f16b of _0x3f65c5['manualDecorators'])_0x11070d['registerInlineAttribute'](_0x43f16b['id']),_0x11070d['descriptionFactory']['registerAttributeLabel'](_0x43f16b['id'],'link\x20('+_0x43f16b['label']['toLowerCase']()+')');_0x11070d['descriptionFactory']['registerDescriptionCallback'](_0x2a7d7e=>{if('attribute'!=_0x2a7d7e['type'])return;const {data:_0x28492e}=_0x2a7d7e;if(!_0x28492e||'linkHref'!=_0x28492e['key'])return;const _0x189eed=_0x28492e['newValue'],_0x5d9128=_0x54bcca['locale'];return{'type':'format','content':null==_0x189eed?o(_0x5d9128,'*Remove\x20link*'):o(_0x5d9128,'*Set\x20link:*\x20%0','\x22'+_0x189eed+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5551c6=this['editor'],_0x5b5678=_0x5551c6['locale'];_0x5551c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414387=>{if('formatInline'!=_0x414387['type'])return;const {data:_0xcdfa8b}=_0x414387;if(_0xcdfa8b){if('link'==_0xcdfa8b['commandName']){const _0x2737cf=_0xcdfa8b['commandParams'][0x0];return{'type':'format','content':o(_0x5b5678,'*Set\x20link:*\x20%0','\x22'+_0x2737cf+'\x22')};}return'unlink'==_0xcdfa8b['commandName']?{'type':'format','content':o(_0x5b5678,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3cc490{['afterInit'](){const _0x2770ef=this['editor'],_0x540896=_0x2770ef['locale'];if(!_0x2770ef['plugins']['has']('LegacyListEditing'))return;const _0x17bc17=_0x2770ef['plugins']['get']('TrackChangesEditing'),_0xb9e078=_0x2770ef['plugins']['has']('LegacyTodoListEditing');function _0x4c350d(_0x5a3cdc){return()=>{const _0x1360eb=_0x2770ef['model']['document']['selection'],_0x157c96=_0x2770ef['commands']['get'](_0x5a3cdc);if(_0x157c96['value'])return void _0x2770ef['execute']('paragraph',{});const _0x39ca44=_0x5a3cdc['slice'](0x0,-0x4),_0x2cfcb0=function(_0x2c12bb,_0x16b78e,_0x398b70){let _0x2a157f=Array['from'](_0x2c12bb)['filter'](_0x302118=>function(_0x46bc51,_0x116cab){return _0x116cab['checkChild'](_0x46bc51['parent'],'listItem')&&!_0x116cab['isObject'](_0x46bc51);}(_0x302118,_0x398b70));_0x2a157f=_0x2a157f['filter'](_0x29ecc5=>!_0x29ecc5['is']('element','listItem')||_0x29ecc5['getAttribute']('listType')!=_0x16b78e);const _0xa766d7=new Set();for(const _0x763cb2 of _0x2a157f)_0x763cb2['is']('element','listItem')?_0xa766d7['add'](fe(_0x763cb2)):_0xa766d7['add'](_0x763cb2);return Array['from'](_0xa766d7);}(_0x1360eb['getSelectedBlocks'](),_0x39ca44,_0x2770ef['model']['schema']);_0x2770ef['model']['change'](()=>{for(const _0x574e03 of _0x2cfcb0)_0x17bc17['markBlockFormat'](_0x574e03,{'commandName':_0x5a3cdc,'commandParams':[{'forceValue':!_0x157c96['value']}],'formatGroupId':'blockName'},ue(_0x574e03));});};}function _0x2b3793(_0x497709){return()=>{const _0x2e67cb=function(_0xd136b4){let _0x53c583=Array['from'](_0xd136b4);const _0x1b14c7=_0x53c583['findIndex'](_0x28658b=>'listItem'!=_0x28658b['name']);return _0x1b14c7>-0x1&&(_0x53c583=_0x53c583['slice'](0x0,_0x1b14c7)),_0x53c583;}(_0x2770ef['model']['document']['selection']['getSelectedBlocks']()),_0xa8e77c=_0x2770ef['model']['createRange'](_0x2770ef['model']['createPositionAt'](_0x2e67cb[0x0],'before'),_0x2770ef['model']['createPositionAt'](_0x2e67cb[_0x2e67cb['length']-0x1],'end'));_0x2770ef['model']['change'](()=>{_0x17bc17['markBlockFormat'](_0xa8e77c,{'commandName':_0x497709,'commandParams':[],'formatGroupId':'listIndent'},function(_0x270908){const _0x39aed1=new Set();for(const _0x121226 of _0x270908){let _0x295e76=_0x121226['nextSibling'];for(;_0x295e76&&_0x295e76['getAttribute']('listIndent')>_0x121226['getAttribute']('listIndent');)_0x39aed1['add'](_0x295e76),_0x295e76=_0x295e76['nextSibling'];}return Array['from'](_0x39aed1);}(_0x2e67cb));});};}_0x17bc17['enableCommand']('numberedList',_0x4c350d('numberedList')),_0x17bc17['enableCommand']('bulletedList',_0x4c350d('bulletedList')),_0xb9e078&&_0x17bc17['enableCommand']('todoList',_0x4c350d('todoList')),_0x17bc17['enableCommand']('indentList',_0x2b3793('indentList')),_0x17bc17['enableCommand']('outdentList',_0x2b3793('outdentList')),_0xb9e078&&_0x17bc17['enableCommand']('checkTodoList',()=>{const _0xc193b6=_0x2770ef['commands']['get']('checkTodoList'),_0x54cf48=Array['from'](_0xc193b6['_selectedElements']);_0x54cf48['filter'](_0xbecf30=>_0xbecf30['getAttribute']('todoListChecked')!=_0xc193b6['value']),_0x2770ef['model']['change'](()=>{for(const _0x359c5b of _0x54cf48)_0x17bc17['markBlockFormat'](_0x359c5b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc193b6['value']}]});});}),_0x17bc17['descriptionFactory']['registerElementLabel']('listItem',_0x4b85f0=>o(_0x540896,'ELEMENT_LIST_ITEM',_0x4b85f0)),_0x17bc17['descriptionFactory']['registerDescriptionCallback'](_0xeaf4da=>{if('formatBlock'!=_0xeaf4da['type']&&'formatInline'!=_0xeaf4da['type'])return;const {data:_0x3b26de}=_0xeaf4da;if(_0x3b26de){if('numberedList'==_0x3b26de['commandName']||'bulletedList'==_0x3b26de['commandName']||'todoList'==_0x3b26de['commandName'])switch(_0x3b26de['commandName']['replace']('List','')){case'bulleted':return _0x3828da(o(_0x540896,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3828da(o(_0x540896,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3828da(o(_0x540896,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3b26de['commandName'])return{'type':'format','content':o(_0x540896,'*Indent:*\x20%0',o(_0x540896,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3b26de['commandName'])return{'type':'format','content':o(_0x540896,'*Outdent:*\x20%0',o(_0x540896,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3b26de['commandName'])return _0x3b26de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x540896,'*Check\x20item*')}:{'type':'format','content':o(_0x540896,'*Uncheck\x20item*')};}function _0x3828da(_0x324ada){return{'type':'format','content':o(_0x540896,'*Change\x20to:*\x20%0',_0x324ada)};}});}}function fe(_0x550ffc){const _0x2e771e=_0x550ffc['getAttribute']('listIndent');if(0x0==_0x2e771e)return _0x550ffc;let _0x30d91d=_0x550ffc;for(;_0x550ffc['previousSibling']&&_0x550ffc['previousSibling']['is']('element','listItem');){const _0x6629=_0x550ffc['previousSibling']['getAttribute']('listIndent');if(_0x6629==_0x2e771e)_0x30d91d=_0x550ffc['previousSibling'];else{if(_0x6629<_0x2e771e)break;}_0x550ffc=_0x550ffc['previousSibling'];}return _0x30d91d;}function ue(_0x53992e){const _0x406f39=[];if(_0x53992e['is']('element','listItem')&&_0x53992e['getAttribute']('listIndent')>0x0){let _0x4ebcd4=_0x53992e['nextSibling'];for(;_0x4ebcd4&&'listItem'==_0x4ebcd4['name']&&_0x4ebcd4['getAttribute']('listIndent')==_0x53992e['getAttribute']('listIndent');)_0x406f39['push'](_0x4ebcd4),_0x4ebcd4=_0x4ebcd4['nextSibling'];}return _0x406f39;}class W extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x80e49b=this['editor']['config']['get']('list.properties'),_0x12f0e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x80e49b['styles']&&_0x12f0e2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x80e49b['reversed']&&_0x12f0e2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x80e49b['startIndex']&&_0x12f0e2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x12f0e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ebbaf,_0x3a7c52={}){const _0x111e6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a9f6a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x111e6c['markMultiRangeBlockFormat'](_0x5a9f6a,{'commandName':'listStyle','commandParams':[{'type':_0x3a7c52['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2cb191,_0x4f5fe3={}){const _0x69f763=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe07c88=this['_getSuggestionBlocks'](_0x1b9de6=>_0x1b9de6['is']('element','listItem')&&'numbered'===_0x1b9de6['getAttribute']('listType'));if(_0xe07c88['length']<0x1)return;const _0xb9cca8=_0xe07c88['map'](_0x109ef0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x109ef0,'before'),this['editor']['model']['createPositionAt'](_0x109ef0,0x0)));this['editor']['model']['change'](()=>{_0x69f763['markMultiRangeBlockFormat'](_0xb9cca8,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f5fe3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd266e2,_0x157395={}){const _0x5b3445=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f6b68=this['_getSuggestionBlocks'](_0x110647=>_0x110647['is']('element','listItem')&&'numbered'===_0x110647['getAttribute']('listType'));if(_0x1f6b68['length']<0x1)return;const _0x1eb159=_0x1f6b68['map'](_0x329a1a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x329a1a,'before'),this['editor']['model']['createPositionAt'](_0x329a1a,0x0)));this['editor']['model']['change'](()=>{_0x5b3445['markMultiRangeBlockFormat'](_0x1eb159,{'commandName':'listStart','commandParams':[{'startIndex':_0x157395['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20101e){if('formatBlock'!=_0x20101e['type']&&'formatInline'!=_0x20101e['type'])return;const _0x4bc9bc=this['editor']['locale'],{data:_0x14bf84}=_0x20101e;if(!_0x14bf84)return;let _0x1bf93a,_0x480347;switch(_0x14bf84['commandName']){case'listStyle':_0x1bf93a='*Change\x20to:*\x20%0',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a,o(_0x4bc9bc,this['_getTranslationKeyForListStyle'](_0x14bf84['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bf93a=_0x14bf84['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a)};break;case'listStart':_0x1bf93a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a,_0x14bf84['commandParams'][0x0]['startIndex'])};}return _0x480347;}['_getSuggestionBlocksForListStyle'](){const _0x4cd317=this['editor']['plugins']['get']('LegacyListUtils');let _0x508b84=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x508b84[0x0]?.['is']('element','listItem')&&_0x508b84['unshift'](..._0x4cd317['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x508b84[_0x508b84['length']-0x1]?.['is']('element','listItem')&&_0x508b84['push'](..._0x4cd317['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x508b84=[...new Set(_0x508b84)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x508b84=_0x508b84['filter'](_0x1d9317=>_0x1d9317['is']('element','listItem'))),_0x508b84;}['_getSuggestionBlocks'](_0x361358){const _0x4e490b=this['editor']['plugins']['get']('LegacyListUtils');let _0xf3d1da=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x361358)['map'](_0xa35448=>{const _0x1cc480=this['editor']['model']['createPositionAt'](_0xa35448,0x0);return[..._0x4e490b['getSiblingNodes'](_0x1cc480,'backward'),..._0x4e490b['getSiblingNodes'](_0x1cc480,'forward')];})['flat']();return _0xf3d1da=[...new Set(_0xf3d1da)],_0xf3d1da;}['_getTranslationKeyForListStyle'](_0x4a72cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a72cb)||'default')['toUpperCase']()+'_LIST_'+_0x4a72cb['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3cc490{['afterInit'](){const _0x2febea=this['editor'];if(!_0x2febea['plugins']['has']('MediaEmbedEditing'))return;const _0x5a5010=_0x2febea['plugins']['get']('TrackChangesEditing'),_0x20a4fe=_0x2febea['locale'];_0x5a5010['enableCommand']('mediaEmbed'),_0x5a5010['descriptionFactory']['registerElementLabel']('media',_0x493bb8=>o(_0x20a4fe,'ELEMENT_MEDIA',_0x493bb8)),_0x2febea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x517065,{writer:_0x5808db,options:_0x53c83b})=>{if(_0x53c83b['showSuggestionHighlights'])return _0x5808db['createEmptyElement']('div');},'converterPriority':'high'}),_0x2febea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4fa3de,_0x5c61ce,_0x1adb16)=>{_0x1adb16['options']['showSuggestionHighlights']&&_0x4fa3de['stop']();},{'priority':'high'});}}class mt extends _0x3cc490{['afterInit'](){const _0x2a74a0=this['editor'];_0x2a74a0['plugins']['has']('MentionEditing')&&_0x2a74a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3cc490{['afterInit'](){const _0x587103=this['editor'];if(!_0x587103['plugins']['has']('MergeFieldsEditing'))return;_0x587103['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x587103['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xe731dc=_0x587103['plugins']['get']('TrackChangesEditing'),_0x35980d=_0x587103['locale'];_0xe731dc['descriptionFactory']['registerElementLabel']('mergeField',_0x54f880=>o(_0x35980d,'ELEMENT_MERGE_FIELD',_0x54f880)),_0xe731dc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5d2834=>o(_0x35980d,'ELEMENT_MERGE_FIELD',_0x5d2834)),_0xe731dc['descriptionFactory']['registerDescriptionCallback'](_0x90d188=>{if('insertion'!=_0x90d188['type']&&'deletion'!=_0x90d188['type'])return;const _0x376308=_0x90d188['getContainedElement']();if(null==_0x376308)return;if(!_0x376308['is']('element','mergeField')&&!_0x376308['is']('element','mergeFieldBlock'))return;const _0x44dc40=_0x587103['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x376308['getAttribute']('id'));return'insertion'==_0x90d188['type']?{'type':'insertion','content':o(_0x35980d,'*Insert:*\x20%0','\x22'+_0x44dc40+'\x22\x20'+o(_0x35980d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x35980d,'*Remove:*\x20%0','\x22'+_0x44dc40+'\x22\x20'+o(_0x35980d,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3cc490{['afterInit'](){const _0x35a03d=this['editor'],_0x5e7692=_0x35a03d['plugins']['get']('TrackChangesEditing');_0x35a03d['plugins']['has']('MultiLevelList')&&(_0x5e7692['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e7692['registerBlockAttribute']('listMarkerStyle'),_0x5e7692['descriptionFactory']['registerDescriptionCallback'](_0x34988f=>this['handleDescriptions'](_0x34988f)));}['handleDescriptions'](_0x313121){const _0x31bc81=this['editor']['locale'],{data:_0x44830d}=_0x313121,_0x3e1e7e={'type':'format','content':''};if(_0x44830d&&'listMarkerStyle'==_0x44830d['key']){if(!_0x44830d['oldValue'])return{'type':'format','content':o(_0x31bc81,'*Set\x20format:*\x20%0',o(_0x31bc81,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44830d['newValue']+')'};if(!_0x44830d['newValue']){let _0x368648=_0x313121['head'];for(;_0x368648;){if(_0x368648['data']&&'listType'==_0x368648['data']['key']&&_0x368648['data']['newValue'])return _0x3e1e7e;_0x368648=_0x368648['next'];}return{'type':'format','content':o(_0x31bc81,'*Remove\x20format:*\x20%0',o(_0x31bc81,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44830d['oldValue']+')'};}}}}class kt extends _0x3cc490{['afterInit'](){const _0x5b401e=this['editor'];if(!_0x5b401e['plugins']['has']('PageBreakEditing'))return;_0x5b401e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5e10bc=_0x5b401e['plugins']['get']('TrackChangesEditing'),_0x487ec5=_0x5b401e['locale'];_0x5e10bc['descriptionFactory']['registerElementLabel']('pageBreak',_0x4175e1=>o(_0x487ec5,'ELEMENT_PAGE_BREAK',_0x4175e1));}}class bt extends _0x3cc490{['afterInit'](){const _0x1f666b=this['editor'];if(!_0x1f666b['plugins']['has']('Paragraph'))return;const _0x473d13=_0x1f666b['locale'],_0x3968b7=_0x1f666b['plugins']['get']('TrackChangesEditing');_0x3968b7['descriptionFactory']['registerElementLabel']('paragraph',_0x1c730c=>o(_0x473d13,'ELEMENT_PARAGRAPH',_0x1c730c)),_0x3968b7['enableDefaultAttributesIntegration']('paragraph'),_0x3968b7['enableCommand']('insertParagraph'),_0x1f666b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f666b),{'priority':'highest'}),_0x1f666b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e3f9f,_0x27cc35,_0x119c27)=>{_0x119c27['options']['showSuggestionHighlights']&&nr(_0x1f666b,{'showActiveMarker':!0x1})(_0x3e3f9f,_0x27cc35,_0x119c27);},{'priority':'highest'});const _0x137683=_0x3968b7['descriptionFactory'];_0x137683['registerDescriptionCallback'](_0x5a1414=>{if('insertion'!==_0x5a1414['type'])return;const {start:_0x28e3d1,end:_0x43e7a5}=_0x5a1414['getFirstRange']();if(!_0x28e3d1['isTouching'](_0x43e7a5)||!_0x28e3d1['nodeAfter'])return;const _0x2fc735=_0x1f666b['model']['schema'],_0x1b22fa=_0x28e3d1['nodeAfter'];return _0x2fc735['isBlock'](_0x1b22fa)&&!_0x2fc735['isLimit'](_0x1b22fa)&&_0x2fc735['checkChild'](_0x1b22fa,'$text')?{'type':'insertion','content':o(_0x473d13,'*Insert:*\x20%0',_0x137683['getItemLabel'](_0x1b22fa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d500=this['editor'],_0x37b9de=_0x52d500['locale'];_0x52d500['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd3f0=>{if('formatBlock'!=_0x3bd3f0['type'])return;const {data:_0x36b3b0}=_0x3bd3f0;return _0x36b3b0&&'paragraph'==_0x36b3b0['commandName']?{'type':'format','content':o(_0x37b9de,'*Change\x20to:*\x20%0',o(_0x37b9de,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xeb859e,{showActiveMarker:_0x446960=!0x0}={}){return(_0x4a270d,_0x3e3f68,_0x5d72b8)=>{const _0xd0592c=_0xeb859e['plugins']['get']('TrackChangesEditing'),_0x49d35a=_0x3e3f68['markerRange']['start'],_0x5a0764=_0x3e3f68['markerRange']['end'],_0x132654=_0xeb859e['model']['schema'];if(!_0x49d35a['isTouching'](_0x5a0764)||!_0x49d35a['nodeAfter'])return;const _0x29ce1e=_0x49d35a['nodeAfter'];if(_0x132654['isBlock'](_0x29ce1e)&&!_0x132654['isLimit'](_0x29ce1e)&&_0x132654['checkChild'](_0x29ce1e,'$text')){if(!_0x5d72b8['consumable']['consume'](_0x3e3f68['markerRange'],_0x4a270d['name']))return;const {authorId:_0x344c09}=_0xd0592c['_splitMarkerName'](_0x3e3f68['markerName']),_0x2b0903=_0x5d72b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x344c09}),_0x53650d=_0x5d72b8['mapper']['toViewPosition'](_0x5a0764);_0x446960&&_0xd0592c['activeMarkers']['includes'](_0x3e3f68['markerName'])&&_0x5d72b8['writer']['addClass']('ck-suggestion-marker--active',_0x2b0903),_0x5d72b8['writer']['insert'](_0x53650d,_0x2b0903),_0x5d72b8['mapper']['bindElementToMarker'](_0x2b0903,_0x3e3f68['markerName']);}};}class wt extends _0x3cc490{['afterInit'](){const _0x2a98aa=this['editor'];if(!_0x2a98aa['plugins']['has']('RemoveFormatEditing'))return;_0x2a98aa['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd1e797=this['editor'];_0xd1e797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222641=>{if('formatBlock'!=_0x222641['type']&&'formatInline'!=_0x222641['type'])return;const {data:_0x25cf99}=_0x222641;return _0x25cf99&&'removeFormat'==_0x25cf99['commandName']?{'type':'format','content':o(_0xd1e797['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3cc490{['afterInit'](){const _0x423f0c=this['editor'];if(!_0x423f0c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46f677=_0x423f0c['plugins']['get']('TrackChangesEditing');_0x46f677['enableCommand']('goToPreviousRestrictedEditingException'),_0x46f677['enableCommand']('goToNextRestrictedEditingException');const _0x26f5ed=_0x423f0c['plugins']['get']('RestrictedEditingModeEditing');_0x26f5ed['enableCommand']('trackChanges'),_0x26f5ed['enableCommand']('acceptSuggestion'),_0x26f5ed['enableCommand']('discardSuggestion'),_0x26f5ed['enableCommand']('acceptAllSuggestions'),_0x26f5ed['enableCommand']('discardAllSuggestions'),_0x26f5ed['enableCommand']('acceptSelectedSuggestions'),_0x26f5ed['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3cc490{static get['requires'](){return[_0xca3ce1];}['init'](){const _0x585a9e=this['editor'],_0x210f4f=_0x585a9e['plugins']['get']('TrackChangesEditing');_0x210f4f['enableCommand']('shiftEnter'),_0x585a9e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x585a9e),{'priority':'high'}),_0x585a9e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x585a9e),{'priority':'high'}),_0x585a9e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cffd0,_0x1fdaac,_0x24ab88)=>{_0x24ab88['options']['showSuggestionHighlights']&&ge(_0x585a9e,{'showActiveMarker':!0x1})(_0x4cffd0,_0x1fdaac,_0x24ab88);}),_0x210f4f['descriptionFactory']['registerElementLabel']('softBreak',_0x3208a9=>o(_0x585a9e['locale'],'ELEMENT_LINE_BREAK',_0x3208a9));}}function ge(_0x20cf48,{showActiveMarker:_0x4826b4=!0x0}={}){return(_0xb7e6ab,_0x498ad0,_0x528242)=>{const _0x2db28f=_0x20cf48['plugins']['get']('TrackChangesEditing');if(!_0x528242['consumable']['test'](_0x498ad0['markerRange'],_0xb7e6ab['name']))return;const _0x2410b3=_0x20cf48['model'];for(const _0x1b723a of _0x498ad0['markerRange']['getItems']()){if(!_0x1b723a['is']('element','softBreak'))continue;const _0x523ac2='deletion'==_0x498ad0['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x8e177f}=_0x2db28f['_splitMarkerName'](_0x498ad0['markerName']),_0x49e979=_0x528242['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x523ac2,'data-author-id':_0x8e177f}),_0x557c90=_0x528242['mapper']['toViewPosition'](_0x2410b3['createPositionBefore'](_0x1b723a));_0x4826b4&&_0x2db28f['activeMarkers']['includes'](_0x498ad0['markerName'])&&_0x528242['writer']['addClass']('ck-suggestion-marker--active',_0x49e979),_0x528242['writer']['insert'](_0x557c90,_0x49e979),_0x528242['mapper']['bindElementToMarker'](_0x49e979,_0x498ad0['markerName']);}};}class St extends _0x3cc490{['afterInit'](){const _0x595244=this['editor'],_0x4904e9=_0x595244['model'],_0x4c9c28=_0x595244['locale'];if(!_0x595244['plugins']['has']('StandardEditingModeEditing'))return;const _0xad319e=_0x595244['plugins']['get']('TrackChangesEditing'),_0x27f2bf='restrictedEditingException',_0x555410=_0x595244['commands']['get'](_0x27f2bf);_0xad319e['enableCommand'](_0x27f2bf,(_0x53ed8c,_0x3f7cdd={})=>{const _0x12271c=_0x4904e9['document']['selection'];if(_0x12271c['isCollapsed'])return void _0x53ed8c(_0x3f7cdd);const _0x3c6816=void 0x0!==_0x3f7cdd['forceValue']?_0x3f7cdd['forceValue']:!_0x555410['value'];_0x4904e9['change'](()=>{const _0x50d96a=Array['from'](_0x12271c['getRanges']());for(const _0x448f33 of _0x50d96a){const _0x516621=_0x3c6816?[_0x448f33]:io(_0x27f2bf,_0x448f33,_0x4904e9);for(const _0x5e0858 of _0x516621)_0xad319e['markInlineFormat'](_0x5e0858,{'commandName':_0x27f2bf,'commandParams':[{'forceValue':_0x3c6816}]});}});}),_0xad319e['descriptionFactory']['registerDescriptionCallback'](_0x11311d=>{if('formatBlock'!=_0x11311d['type']&&'formatInline'!=_0x11311d['type'])return;const {data:_0x1e034d}=_0x11311d;return _0x1e034d&&_0x1e034d['commandName']==_0x27f2bf?_0x1e034d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c9c28,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c9c28,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3cc490{['afterInit'](){const _0x51621b=this['editor'];if(!_0x51621b['plugins']['has']('Style')||!_0x51621b['plugins']['has']('DataSchema'))return;const _0x22fbaf=_0x51621b['plugins']['get']('TrackChangesEditing'),_0x4dcc28=_0x51621b['locale'],_0xaf81b5=_0x51621b['config']['get']('style')||{},_0x302a33=_0x51621b['plugins']['get']('GeneralHtmlSupport'),_0x25bd46=_0x51621b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51621b['plugins']['get']('DataSchema'),_0xaf81b5['definitions']);_0x22fbaf['enableDefaultAttributesIntegration']('style');const _0x49c620=new Set();for(const _0x5d30cb of _0x25bd46['block']){const _0x29070c=_0x302a33['getGhsAttributeNameForElement'](_0x5d30cb['element']);_0x49c620['add'](_0x29070c);}const _0x1c70f6=new Set();for(const _0x427a16 of _0x25bd46['inline']){const _0x3da209=_0x302a33['getGhsAttributeNameForElement'](_0x427a16['element']);_0x1c70f6['add'](_0x3da209);for(const _0x266767 of _0x427a16['ghsAttributes'])_0x1c70f6['add'](_0x266767);}for(const _0x52b6e3 of _0x49c620)_0x22fbaf['registerBlockAttribute'](_0x52b6e3),_0x22fbaf['descriptionFactory']['registerAttributeLabel'](_0x52b6e3,o(_0x4dcc28,'FORMAT_STYLE'));for(const _0x374660 of _0x1c70f6)_0x22fbaf['registerInlineAttribute'](_0x374660),_0x22fbaf['descriptionFactory']['registerAttributeLabel'](_0x374660,o(_0x4dcc28,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411722=this['editor'],_0x4caf2c=_0x411722['locale'];_0x411722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11849e=>{if('formatBlock'!=_0x11849e['type']&&'formatInline'!=_0x11849e['type'])return;const {data:_0x2af801}=_0x11849e;return _0x2af801&&'style'===_0x2af801['commandName']?_0x2af801['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4caf2c,'*Set\x20format:*\x20%0',_0x2af801['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4caf2c,'*Remove\x20format:*\x20%0',_0x2af801['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3cc490{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x53f117){super(_0x53f117),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e8fff=this['editor'],_0x5c7cef=_0x4e8fff['model']['document']['selection'];if(!_0x4e8fff['plugins']['has']('TableEditing'))return;const _0xfd370e=_0x4e8fff['locale'],_0x132408=_0x4e8fff['plugins']['get']('TrackChangesEditing'),_0x4ed272=_0x4e8fff['plugins']['get']('TableUtils');_0x132408['descriptionFactory']['registerElementLabel']('table',_0xf8cf18=>o(_0xfd370e,'ELEMENT_TABLE',_0xf8cf18)),this['_setupColumnsRowsFixing'](),_0x132408['enableCommand']('insertTable'),_0x132408['enableCommand']('selectTableRow'),_0x132408['enableCommand']('selectTableColumn');for(const _0x389165 of['insertTableRowAbove','insertTableRowBelow']){const _0x2532c9=_0x4e8fff['commands']['get'](_0x389165);_0x132408['enableCommand'](_0x389165,_0x5a06a1=>{_0x4e8fff['model']['change'](_0x2e7476=>{_0x5a06a1();const _0x576cd0='above'===_0x2532c9['order'],_0x9a76ea=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x1f4398=_0x4ed272['getRowIndexes'](_0x9a76ea),_0x54987c=_0x576cd0?_0x1f4398['first']-0x1:_0x1f4398['last']+0x1,_0x3a101b=_0x9a76ea[0x0]['findAncestor']('table'),_0x3b1347=_0x4ed272['createTableWalker'](_0x3a101b,{'startRow':_0x54987c,'endRow':_0x54987c}),_0xc2deb0=Array['from'](_0x3b1347)['map'](_0x26f5ec=>_0x2e7476['createRangeOn'](_0x26f5ec['cell']));_0x132408['markMultiRangeInsertion'](_0xc2deb0,'tableRow');});});}for(const _0x11f655 of['insertTableColumnLeft','insertTableColumnRight']){const _0x35791d=_0x4e8fff['commands']['get'](_0x11f655);_0x132408['enableCommand'](_0x11f655,_0x3c6019=>{_0x4e8fff['model']['change'](_0x242768=>{_0x3c6019();const _0x1db42b='left'===_0x35791d['order'],_0x2c05ee=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x379afb=_0x4ed272['getColumnIndexes'](_0x2c05ee),_0x1c8577=_0x1db42b?_0x379afb['first']-0x1:_0x379afb['last']+0x1,_0xabf43a=_0x2c05ee[0x0]['findAncestor']('table'),_0x16c1f2=_0x4ed272['createTableWalker'](_0xabf43a,{'startRow':0x0,'column':_0x1c8577,'includeAllSlots':!0x1}),_0x4a10dc=Array['from'](_0x16c1f2)['map'](_0x2a606a=>_0x242768['createRangeOn'](_0x2a606a['cell']));_0x132408['markMultiRangeInsertion'](_0x4a10dc,'tableColumn');});});}for(const _0x2ce554 of['removeTableRow','removeTableColumn']){const _0x1d674e=_0x2ce554['substr'](0xb),_0x48e412=_0x1d674e['toLowerCase'](),_0x7e5bac=_0x48e412['substr'](0x0,0x3)+'span',_0x5989a5='table'+_0x1d674e,_0x2a7db3='min'+_0x1d674e,_0x2343fa='max'+_0x1d674e;_0x132408['enableCommand'](_0x2ce554,()=>{_0x4e8fff['model']['change'](_0x2035e0=>{const _0x15ddc6=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x349b09=_0x15ddc6[0x0]['findAncestor']('table');let _0x3f35f0;if('removeTableRow'==_0x2ce554){const _0x2f2615=_0x4ed272['getRowIndexes'](_0x15ddc6);_0x3f35f0={'startRow':_0x2f2615['first'],'endRow':_0x2f2615['last'],'includeAllSlots':!0x0};}else{const _0x369ab3=_0x4ed272['getColumnIndexes'](_0x15ddc6);_0x3f35f0={'startColumn':_0x369ab3['first'],'endColumn':_0x369ab3['last'],'includeAllSlots':!0x0};}const _0x4c97fa=_0x4ed272['createTableWalker'](_0x349b09,_0x3f35f0),_0x6863b6=Array['from'](_0x4c97fa)['map'](({cell:_0x8bc333})=>_0x8bc333),_0x2df059=be(_0x6863b6['filter'](_0x196eab=>_0x196eab['hasAttribute'](_0x7e5bac))),_0x1f9f2f=be(_0x6863b6['filter'](_0x5b55ab=>!_0x5b55ab['hasAttribute'](_0x7e5bac)))['map'](_0x51a2fe=>_0x2035e0['createRangeOn'](_0x51a2fe)),_0x470d28=_0x132408['markMultiRangeDeletion'](_0x1f9f2f,_0x5989a5);if(_0x470d28&&('tableRow'==_0x470d28['subType']||'tableColumn'==_0x470d28['subType'])){const _0x2d7e46=this['_getSuggestionCoords'](_0x470d28);for(const _0x393220 of _0x2df059){const _0x2c33c6=_0x2035e0['createRangeOn'](_0x393220),_0x1c2290=_0x4ed272['getCellLocation'](_0x393220),_0x414477=_0x393220['getAttribute'](_0x7e5bac)-0x1,_0xbfe3bc=_0x2d7e46[_0x2a7db3],_0x274582=_0x2d7e46[_0x2343fa];_0xbfe3bc<=_0x1c2290[_0x48e412]&&_0x1c2290[_0x48e412]+_0x414477<=_0x274582&&_0x470d28['addRange'](_0x2c33c6);}}});});}function _0x38336c(_0x419e45){const _0x594dab=Array['from'](_0x5c7cef['getRanges']())['map'](_0x55f078=>_0x5ed280['fromRange'](_0x55f078));_0x4e8fff['model']['change'](_0x17d474=>{const _0x2d8b5=_0x17d474['batch'];_0x419e45=_0x419e45['filter'](_0x3db5bc=>'$graveyard'!=_0x3db5bc['root']['rootName']),_0x17d474['setSelection'](_0x419e45),_0x4e8fff['commands']['get']('removeTableRow')['refresh'](),_0x4e8fff['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e8fff['model']['enqueueChange'](()=>{_0x4e8fff['model']['enqueueChange'](_0x2d8b5,_0x11e0fb=>{const _0x2bf419=_0x594dab['filter'](_0x412cc0=>'$graveyard'!=_0x412cc0['root']['rootName']);_0x2bf419['length']>0x0&&_0x11e0fb['setSelection'](_0x2bf419);for(const _0x9c9543 of _0x594dab)_0x9c9543['detach']();});});});}function _0x4758b3(_0x421bac){_0x4e8fff['model']['change'](_0xa86c=>{const _0x2f7fac=Array['from'](_0x5c7cef['getRanges']())['map'](_0x52f84a=>_0x5ed280['fromRange'](_0x52f84a)),_0x234d2=[];for(const _0x2d7fa5 of _0x421bac)for(const _0x5962e5 of _0x2d7fa5['getItems']({'shallow':!0x0}))_0x234d2['push'](_0x5962e5);for(const _0x549e72 of _0x234d2)'$graveyard'!=_0x549e72['root']['rootName']&&(_0xa86c['setSelection'](_0xa86c['createPositionAt'](_0x549e72,0x0)),_0x4e8fff['commands']['get']('removeTableColumn')['refresh'](),_0x4e8fff['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a0f62=_0x2f7fac['filter'](_0x1262e6=>'$graveyard'!=_0x1262e6['root']['rootName']);_0x5a0f62['length']>0x0&&_0xa86c['setSelection'](_0x5a0f62);for(const _0xbc7be5 of _0x2f7fac)_0xbc7be5['detach']();});}function _0x34823e(_0xdc4b86,_0x946a4f){return _0x946a4f['every'](_0x3a77bc=>_0xdc4b86['some'](_0x4cd637=>_0x4cd637['end']['isEqual'](_0x3a77bc['start'])||_0x3a77bc['end']['isEqual'](_0x4cd637['start'])));}function _0x3f53a4(_0x41b3ee,_0x2b1bc8){return!_0x41b3ee['some'](_0x33e98f=>_0x2b1bc8['some'](_0x4f867d=>_0x33e98f['isIntersecting'](_0x4f867d)))&&_0x41b3ee['some'](_0x17d7c7=>_0x2b1bc8['some'](_0x2f1112=>_0x17d7c7['end']['isTouching'](_0x2f1112['start'])));}_0x4e8fff['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3971aa,_0x697ba9,_0x95ab16)=>{if(!_0x95ab16['options']['showSuggestionHighlights'])return;const _0x1e45d8=_0x697ba9['item'];if(!_0x1e45d8)return;const _0x2737c8=_0x95ab16['mapper']['toViewElement'](_0x1e45d8);function _0x30724b(_0x488f3a){return Array['isArray'](_0x488f3a)?_0x488f3a:[_0x488f3a];}_0x2737c8&&'tableCell'===_0x1e45d8['name']&&_0x4976b6(_0x2737c8,_0x95ab16['writer'],(_0x1421ee,_0x4780fa,_0x45d912)=>_0x45d912['addClass'](_0x30724b(_0x4780fa['classes']),_0x1421ee),(_0x90142a,_0x16ae85,_0x46f3bf)=>_0x46f3bf['removeClass'](_0x30724b(_0x16ae85['classes']),_0x90142a));},{'priority':'highest'}),_0x132408['descriptionFactory']['registerDescriptionCallback'](_0x45b8e0=>{if('insertion'!=_0x45b8e0['type']&&'deletion'!=_0x45b8e0['type'])return;const _0x2187bd=_0x45b8e0['getContainedElement']();if(null!=_0x2187bd&&_0x2187bd['is']('element','table')){if('insertion'==_0x45b8e0['type']){const _0x147a72=_0x45b8e0['getItems']()['filter'](_0x6b169d=>_0x6b169d['is']('$textProxy'))['map'](_0x443730=>_0x443730['data']);if(_0x147a72['length'])return{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x147a72['join']('\x20')+'\x22'))};}if('deletion'==_0x45b8e0['type']){const _0x5c793b=_0x45b8e0['getItems']()['filter'](_0x5e5386=>_0x5e5386['is']('$textProxy'))['map'](_0x4f2183=>_0x4f2183['data']);if(_0x5c793b['length'])return{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c793b['join']('\x20')+'\x22'))};}}}),_0x132408['descriptionFactory']['registerDescriptionCallback'](_0x205525=>{if('tableRow'==_0x205525['subType']){const _0x580cb0=_0x205525['getItems']()['filter'](_0x550b85=>_0x550b85['is']('$textProxy'))['map'](_0x39ae93=>_0x39ae93['data']),_0x395d4f=this['_getSuggestionCoords'](_0x205525),_0x4fb438=_0x395d4f['maxRow']-_0x395d4f['minRow']+0x1;if('insertion'==_0x205525['type'])return _0x580cb0['length']?{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fb438,'\x22'+_0x580cb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW',_0x4fb438))};if('deletion'==_0x205525['type'])return _0x580cb0['length']?{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fb438,'\x22'+_0x580cb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW',_0x4fb438))};}if('tableColumn'==_0x205525['subType']){const _0x201c10=_0x205525['getItems']()['filter'](_0x2201e0=>_0x2201e0['is']('$textProxy'))['map'](_0x147a16=>_0x147a16['data']),_0x1436be=this['_getSuggestionCoords'](_0x205525),_0xaa6564=_0x1436be['maxColumn']-_0x1436be['minColumn']+0x1;if('insertion'==_0x205525['type'])return _0x201c10['length']?{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xaa6564,'\x22'+_0x201c10['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN',_0xaa6564))};if('deletion'==_0x205525['type'])return _0x201c10['length']?{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xaa6564,'\x22'+_0x201c10['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN',_0xaa6564))};}}),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38336c),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38336c),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4758b3),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4758b3),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x34823e),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x34823e),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f53a4),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f53a4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f8116=this['editor'],_0x4612ef=_0x4f8116['model']['document']['selection'];return(_0x276c81,_0x375a31)=>{_0x4f8116['model']['change'](_0x3b7ac9=>{const {commandName:_0x21c233,commandParams:_0x2e4cb3}=_0x375a31;let _0x19710c=_0x276c81[0x0]['end']['nodeBefore'];_0x2e4cb3&&_0x2e4cb3[0x0]&&!0x1===_0x2e4cb3[0x0]['forceValue']&&(_0x19710c=_0x276c81[0x0]['start']['nodeAfter']);const _0x16cf20=_0x3b7ac9['createRangeIn'](_0x19710c);if('$graveyard'==_0x16cf20['root']['rootName'])return;const _0x5dca03=Array['from'](_0x4612ef['getRanges']())['map'](_0x5d404e=>_0x5ed280['fromRange'](_0x5d404e));_0x3b7ac9['setSelection'](_0x16cf20),_0x4f8116['commands']['get'](_0x21c233)['refresh'](),_0x2e4cb3['push']({'forceDefaultExecution':!0x0}),_0x4f8116['execute'](_0x21c233,..._0x2e4cb3);const _0x1723e5=_0x5dca03['filter'](_0x313341=>'$graveyard'!=_0x313341['root']['rootName']);_0x1723e5['length']>0x0&&_0x3b7ac9['setSelection'](_0x1723e5);for(const _0x274d7f of _0x5dca03)_0x274d7f['detach']();});};}['_getCoordsForCells'](_0x2130d0){const _0x18b742=this['editor']['plugins']['get']('TableUtils');let _0x4360fa=Number['MAX_SAFE_INTEGER'],_0x433a8b=Number['MIN_SAFE_INTEGER'],_0x11c75d=Number['MAX_SAFE_INTEGER'],_0x5359fc=Number['MIN_SAFE_INTEGER'];for(const _0x4cd234 of _0x2130d0){if('$graveyard'==_0x4cd234['root']['rootName'])continue;const {row:_0x150c05,column:_0x12a1b9}=_0x18b742['getCellLocation'](_0x4cd234),_0x17b7a0=_0x4cd234['hasAttribute']('rowspan')?_0x4cd234['getAttribute']('rowspan')-0x1:0x0,_0x272fd7=_0x4cd234['hasAttribute']('colspan')?_0x4cd234['getAttribute']('colspan')-0x1:0x0;_0x4360fa=_0x150c05<_0x4360fa?_0x150c05:_0x4360fa,_0x433a8b=_0x150c05+_0x17b7a0>_0x433a8b?_0x150c05+_0x17b7a0:_0x433a8b,_0x11c75d=_0x12a1b9<_0x11c75d?_0x12a1b9:_0x11c75d,_0x5359fc=_0x12a1b9+_0x272fd7>_0x5359fc?_0x12a1b9+_0x272fd7:_0x5359fc;}return{'minRow':_0x4360fa,'maxRow':_0x433a8b,'minColumn':_0x11c75d,'maxColumn':_0x5359fc};}['_setupColumnsRowsFixing'](){const _0x5b5cea=this['editor'],_0x3a4fc1=_0x5b5cea['plugins']['get']('TrackChangesEditing'),_0x223d9a=_0x5b5cea['plugins']['get']('TableUtils');_0x5b5cea['model']['document']['on']('change:data',()=>{const _0x12df63=Array['from'](_0x5b5cea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32ae54,data:_0x24254a}of _0x12df63){const {group:_0x1e4364,id:_0x416d1e,subType:_0x2d34dd}=_0x3a4fc1['_splitMarkerName'](_0x32ae54);if('suggestion'!=_0x1e4364)continue;if(null!=_0x24254a['oldRange'])continue;const _0x26167f=_0x3a4fc1['getSuggestion'](_0x416d1e);this['_tablePostFixingSubtypes']['includes'](_0x2d34dd)&&this['_tableSuggestions']['add'](_0x26167f);}},{'priority':'low'});const _0x5417de=(_0x2e5954,_0x13e62a)=>{let _0x3945a1=!0x1;const _0x294313=_0x13e62a['createRangeOn'](_0x2e5954),_0x84277d=_0x2e5954['findAncestor']('table'),_0x319015=_0x223d9a['getCellLocation'](_0x2e5954);for(const _0x38a595 of this['_tableSuggestions']){const _0x44085a=_0x38a595['subType'],_0xbcc0ff=_0x44085a['startsWith']('tablePaste'),_0x49c711=_0x44085a['substr'](_0xbcc0ff?0xa:0x5),_0x126ae2=_0x49c711['toLowerCase'](),_0x3a6e55=_0x126ae2['substr'](0x0,0x3)+'span',_0x405759='min'+_0x49c711,_0x5c5bc4='max'+_0x49c711;if(!_0x38a595['isInContent'])continue;if(_0x84277d!=_0x38a595['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38a595['isIntersectingWithRange'](_0x294313))continue;const _0x220bf7=_0x2e5954['hasAttribute'](_0x3a6e55)?_0x2e5954['getAttribute'](_0x3a6e55)-0x1:0x0,_0x524909=this['_getSuggestionCoords'](_0x38a595),_0x54f4cc=_0x524909[_0x405759],_0x4ff005=_0x524909[_0x5c5bc4];_0x54f4cc<=_0x319015[_0x126ae2]&&_0x319015[_0x126ae2]+_0x220bf7<=_0x4ff005&&(_0x38a595['addRange'](_0x294313),_0x3945a1=!0x0);}return _0x3945a1;};_0x5b5cea['model']['document']['registerPostFixer'](_0x1fecd7=>{let _0x3f64c7=!0x1;for(const _0x28809a of _0x5b5cea['model']['document']['differ']['getChanges']())if('insert'==_0x28809a['type']){if('tableRow'==_0x28809a['name']){for(const _0x518b62 of _0x28809a['position']['nodeAfter']['getChildren']())_0x3f64c7=_0x3f64c7||_0x5417de(_0x518b62,_0x1fecd7);}else'tableCell'==_0x28809a['name']&&(_0x3f64c7=_0x3f64c7||_0x5417de(_0x28809a['position']['nodeAfter'],_0x1fecd7));}return _0x3f64c7;});}['_getSuggestionCoords'](_0x20a0cf){return this['_getCoordsForCells'](_0x20a0cf['getRanges']()['map'](_0x4cfa57=>_0x4cfa57['start']['nodeAfter']));}}function be(_0xfb5cfb){return Array['from'](new Set(_0xfb5cfb)['values']());}class vt extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x541ad9=this['editor'],_0x25e5ad=_0x541ad9['model']['document']['selection'],_0x183490=_0x541ad9['locale'];if(!_0x541ad9['plugins']['has']('TableEditing'))return;const _0x39b191=_0x541ad9['plugins']['get']('TrackChangesEditing'),_0x51f5c8=_0x541ad9['plugins']['get']('TableUtils'),_0x3870cf=_0x541ad9['plugins']['get'](It);_0x3870cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39b191['enableCommand']('mergeTableCells',()=>{const _0x17463f=_0x51f5c8['getSelectionAffectedTableCells'](_0x541ad9['model']['document']['selection']);_0x541ad9['model']['change'](()=>{_0x39b191['markMultiRangeBlockFormat'](_0x17463f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x541ad9['commands']['get']('mergeTableCells')['on']('execute',(_0x48d01e,_0x4fa59f)=>{_0x541ad9['commands']['get']('trackChanges')['value']&&(_0x4fa59f['length']>0x0&&_0x4fa59f[_0x4fa59f['length']-0x1]&&_0x4fa59f[_0x4fa59f['length']-0x1]['forceDefaultExecution']||_0x39b191['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x48d01e['stop']());},{'priority':'highest'});for(const _0x34c144 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x398d13=_0x541ad9['commands']['get'](_0x34c144);_0x39b191['enableCommand'](_0x34c144,()=>{const _0xa4f6dd=_0x541ad9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ab6f0=>_0x3ab6f0['is']('element','tableCell')),_0x4f8fc8=_0x398d13['value'];_0x541ad9['model']['change'](()=>{_0x39b191['markMultiRangeBlockFormat']([_0xa4f6dd,_0x4f8fc8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x490322 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54242a=_0x541ad9['commands']['get'](_0x490322);_0x39b191['enableCommand'](_0x490322,()=>{const _0x2bc5ec=_0x51f5c8['getSelectionAffectedTableCells'](_0x541ad9['model']['document']['selection'])[0x0],_0x42a724=_0x2bc5ec['findAncestor']('table'),{column:_0x24fd5f,row:_0x32f7a5}=_0x51f5c8['getCellLocation'](_0x2bc5ec);let _0x102960=[];if('horizontally'==_0x54242a['direction']){const _0x5b3711=_0x51f5c8['createTableWalker'](_0x42a724,{'startRow':_0x32f7a5,'endRow':_0x32f7a5,'includeAllSlots':!0x0});_0x102960=Array['from'](_0x5b3711)['map'](_0x411f08=>_0x411f08['cell']);}else{const _0x490742=_0x51f5c8['createTableWalker'](_0x42a724,{'column':_0x24fd5f,'includeAllSlots':!0x0});_0x102960=Array['from'](_0x490742)['map'](_0x5d1bec=>_0x5d1bec['cell']);}_0x541ad9['model']['change'](_0x2d0921=>{_0x39b191['markBlockFormat'](_0x2d0921['createRangeOn'](_0x2bc5ec),{'commandName':_0x490322,'commandParams':[]},_0x102960,_0x490322);});});}_0x39b191['descriptionFactory']['registerDescriptionCallback'](_0x11d945=>{if('formatBlock'!=_0x11d945['type']&&'formatInline'!=_0x11d945['type'])return;const {data:_0x3325ed}=_0x11d945;return _0x3325ed&&'mergeTableCells'==_0x3325ed['commandName']?{'type':'format','content':o(_0x183490,'*Merge\x20cells*')}:void 0x0;}),_0x39b191['descriptionFactory']['registerDescriptionCallback'](_0x26fc0e=>{if('formatBlock'!=_0x26fc0e['type']&&'formatInline'!=_0x26fc0e['type'])return;const {data:_0x3996be}=_0x26fc0e;return _0x3996be?'splitTableCellVertically'==_0x3996be['commandName']?{'type':'format','content':o(_0x183490,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3996be['commandName']?{'type':'format','content':o(_0x183490,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x116361=_0x3870cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x167317 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x167317,'accept',_0x116361);for(const _0x2fbfe8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fbfe8,'accept',_0x116361);_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a4885=>{_0x541ad9['model']['change'](_0x32c32b=>{const _0x4cd2cb=Array['from'](_0x25e5ad['getRanges']())['map'](_0x10096c=>_0x5ed280['fromRange'](_0x10096c));_0x32c32b['setSelection'](_0x1a4885),_0x541ad9['commands']['get']('mergeTableCells')['refresh'](),_0x541ad9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d724e=_0x4cd2cb['filter'](_0x2f28dc=>'$graveyard'!=_0x2f28dc['root']['rootName']);_0x4d724e['length']>0x0&&_0x32c32b['setSelection'](_0x4d724e);for(const _0x3126df of _0x4cd2cb)_0x3126df['detach']();});});for(const _0x5f4448 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19b67f=_0x541ad9['commands']['get'](_0x5f4448);_0x19b67f['on']('set:isEnabled',(_0xb9649b,_0xd9d57,_0x197176)=>{if(_0x197176){const _0x32b939=_0x541ad9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x28f191=>_0x28f191['is']('element','tableCell'));this['_areMergableCells'](_0x19b67f['value'],_0x32b939)||(_0xb9649b['return']=!0x1,_0xb9649b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1efae5=this['editor']['commands']['get']('mergeTableCells'),_0x48954e=this['editor']['plugins']['get']('TableUtils');if(!_0x1efae5['isEnabled'])return!0x1;const _0x4f56b9=_0x48954e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x760a55 of _0x4f56b9)for(const _0x28b7a7 of _0x4f56b9)if(_0x760a55!=_0x28b7a7&&!this['_areMergableCells'](_0x760a55,_0x28b7a7))return!0x1;return!0x0;}['_areMergableCells'](_0x2b0f75,_0x2d37aa){const _0x11e6ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579bfb=this['editor']['model']['createRangeOn'](_0x2b0f75),_0x2c009b=this['editor']['model']['createRangeOn'](_0x2d37aa),_0x2ff3e8=new Set(),_0x594334=new Set();for(const _0x10a238 of _0x11e6ec['getSuggestions']())if(('insertion'==_0x10a238['type']||'deletion'==_0x10a238['type']||'mergeTableCells'==_0x10a238['subType'])&&_0x10a238['isInContent']){for(const _0x138695 of _0x10a238['getRanges']())_0x138695['containsRange'](_0x579bfb,!0x0)&&_0x2ff3e8['add'](_0x10a238['type']+':'+_0x10a238['author']['id']),_0x138695['containsRange'](_0x2c009b,!0x0)&&_0x594334['add'](_0x10a238['type']+':'+_0x10a238['author']['id']);}if(_0x2ff3e8['size']!=_0x594334['size'])return!0x1;for(const _0x1a8a56 of _0x2ff3e8)if(!_0x594334['has'](_0x1a8a56))return!0x1;return!0x0;}}class Ct extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x88f5fa=this['editor'];if(!_0x88f5fa['plugins']['has']('TableEditing'))return;const _0x36b61=_0x88f5fa['locale'],_0x565502=_0x88f5fa['plugins']['get']('TrackChangesEditing');_0x565502['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x565502['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x565502['registerBlockAttribute']('headingRows'),_0x565502['registerBlockAttribute']('headingColumns'),_0x565502['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x36b61,'FORMAT_HEADER_ROW')),_0x565502['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x36b61,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58523a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x493ca6=this['editor']['plugins']['get']('TableUtils'),_0x487bd4=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x329209({showActiveMarker:_0x253482=!0x0,setDataAttribute:_0x14f711=!0x0}={}){return(_0x3c7f60,_0x3b8673,_0x3157ff)=>{const {type:_0x3e735e,id:_0x2a21fd}=_0x58523a['_splitMarkerName'](_0x3b8673['markerName']),_0x3d9693=_0x58523a['getSuggestion'](_0x2a21fd),_0x4bae93=_0x3d9693['data'];if('formatBlock'!=_0x3d9693['type']||!_0x4bae93||'setTableColumnHeader'!=_0x4bae93['commandName'])return;if(_0x3b8673['item'])return void _0x3c7f60['stop']();if(!_0x3157ff['consumable']['consume'](_0x3b8673['markerRange'],_0x3c7f60['name']))return;const _0x445e77=_0x3b8673['markerRange']['start']['nodeAfter'],_0xe02c19=_0x3b8673['markerRange']['end']['nodeBefore'],_0x529ecf=_0x445e77['parent']['parent'],{column:_0x228ccc}=_0x493ca6['getCellLocation'](_0x445e77),{column:_0x1150fd}=_0x493ca6['getCellLocation'](_0xe02c19);for(let _0xc68655=_0x228ccc;_0xc68655<=_0x1150fd;_0xc68655++){const _0x22b174=_0x493ca6['createTableWalker'](_0x529ecf,{'column':_0xc68655,'includeAllSlots':!0x1});for(const _0x374e3c of _0x22b174){const _0x576959=_0x374e3c['cell'],_0x5d3506=_0x3157ff['mapper']['toViewElement'](_0x576959);_0x3157ff['writer']['addClass']('ck-suggestion-marker-'+_0x3e735e,_0x5d3506),_0x14f711&&_0x3157ff['writer']['setAttribute']('data-suggestion',_0x2a21fd,_0x5d3506),_0x3157ff['mapper']['bindElementToMarker'](_0x5d3506,_0x3b8673['markerName']),_0x253482&&(_0x58523a['activeMarkers']['includes'](_0x3b8673['markerName'])?_0x3157ff['writer']['addClass']('ck-suggestion-marker--active',_0x5d3506):_0x3157ff['writer']['removeClass']('ck-suggestion-marker--active',_0x5d3506));}}};}_0x58523a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x487bd4),_0x58523a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x487bd4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x329209(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x551236,_0x356794,_0x5e63ff)=>{_0x5e63ff['options']['showSuggestionHighlights']&&_0x329209({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x551236,_0x356794,_0x5e63ff);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5e528a,_0x4259c7,_0x21b1e8)=>{const {type:_0x27cb1c,id:_0x1640b5}=_0x58523a['_splitMarkerName'](_0x4259c7['markerName']),_0x50a24a=_0x58523a['getSuggestion'](_0x1640b5),_0x25b206=_0x50a24a['data'];if('formatBlock'!=_0x50a24a['type']||!_0x25b206||'setTableColumnHeader'!=_0x25b206['commandName'])return;const _0x1061cb=_0x21b1e8['mapper']['markerNameToElements'](_0x4259c7['markerName']);if(_0x1061cb){for(const _0x497d17 of _0x1061cb)_0x21b1e8['writer']['removeClass']('ck-suggestion-marker-'+_0x27cb1c,_0x497d17),_0x21b1e8['writer']['removeClass']('ck-suggestion-marker--active',_0x497d17),_0x21b1e8['writer']['removeAttribute']('data-suggestion',_0x497d17),_0x21b1e8['mapper']['unbindElementFromMarkerName'](_0x497d17,_0x4259c7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x145702=this['editor'],_0x130bf1=_0x145702['locale'];function _0x14240d(_0x5320d6){return{'type':'format','content':o(_0x130bf1,'*Format:*\x20%0',_0x5320d6)};}_0x145702['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e2b8c=>{if('formatBlock'!=_0x1e2b8c['type'])return;const {data:_0x57b085}=_0x1e2b8c;if(_0x57b085){if('setTableRowHeader'==_0x57b085['commandName']){const _0x339136=_0x57b085['commandParams'][0x0]['forceValue'];return _0x14240d(o(_0x130bf1,_0x339136?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x57b085['commandName']){const _0x2fb388=_0x57b085['commandParams'][0x0]['forceValue'];return _0x14240d(o(_0x130bf1,_0x2fb388?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3667df=>[_0x3667df,null]));class _t extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x10b2de=this['editor'];if(!_0x10b2de['plugins']['has']('TableClipboard'))return;const _0x4e06b4=_0x10b2de['plugins']['get']('TrackChangesEditing'),_0x1e2bb8=_0x10b2de['plugins']['get']('TableUtils'),_0x1c29fc=_0x10b2de['plugins']['get'](It),_0x55282f=_0x10b2de['plugins']['get']('TableClipboard');_0x1c29fc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x10b2de['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x10b2de['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e3bde=null;_0x10b2de['model']['on']('insertContent',(_0x58d909,_0x326462)=>{const [_0x17c923,_0x1100ca]=_0x326462,_0x3d08ad=_0x326462[_0x326462['length']-0x1];_0x3d08ad&&_0x3d08ad['forceDefaultExecution']||_0x4e06b4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1364b4,_0x3a1c5a,_0x47c56e,_0x1a63de,_0xf4f5f5){if(_0x3a1c5a&&!_0x3a1c5a['is']('documentSelection'))return!0x1;const _0x4f0b47=_0xf4f5f5['getTableIfOnlyTableInContent'](_0x1364b4,_0x47c56e);if(!_0x4f0b47||!Re(_0x4f0b47,void 0x0,_0x1a63de))return!0x1;const _0x4578b5=_0x1a63de['getSelectionAffectedTableCells'](_0x47c56e['document']['selection']);if(!_0x4578b5['length'])return!0x1;const _0x40c57c=_0x4578b5[0x0]['findAncestor']('table'),_0x5e5c63=_0x1a63de['getRowIndexes'](_0x4578b5),_0x5987d8=_0x1a63de['getColumnIndexes'](_0x4578b5),_0x59710c={'startRow':_0x5e5c63['first'],'endRow':_0x5e5c63['last'],'startColumn':_0x5987d8['first'],'endColumn':_0x5987d8['last']};return 0x1==_0x4578b5['length']&&(_0x59710c['endRow']+=_0x1a63de['getRows'](_0x4f0b47)-0x1,_0x59710c['endColumn']+=_0x1a63de['getColumns'](_0x4f0b47)-0x1),Re(_0x40c57c,_0x59710c,_0x1a63de);}(_0x17c923,_0x1100ca,_0x10b2de['model'],_0x1e2bb8,_0x55282f)&&(_0x58d909['stop'](),_0x2e3bde={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x10b2de['model']['change'](()=>{_0x10b2de['model']['insertContent'](_0x326462[0x0],_0x326462[0x1],_0x326462[0x2],{'forceDefaultExecution':!0x0});const _0x26f077=_0x36eeaa(),{rowInsertionRanges:_0x18be10,columnInsertionRanges:_0x1b0741,insertionRanges:_0x422de7,deletionRanges:_0xd9c061,cells:_0x2a6221}=_0x2e3bde;_0x18be10['length']&&_0x4e06b4['markMultiRangeInsertion'](_0x18be10,'tablePasteRow',{'tablePasteChainId':_0x26f077}),_0x1b0741['length']&&_0x4e06b4['markMultiRangeInsertion'](_0x1b0741,'tablePasteColumn',{'tablePasteChainId':_0x26f077}),_0x422de7['length']&&(_0x4e06b4['markMultiRangeInsertion'](_0x422de7,'tablePaste',{'tablePasteChainId':_0x26f077,'skipNestingCheck':!0x0}),_0x422de7['forEach'](_0x159fd2=>_0x159fd2['detach']?.())),_0xd9c061['length']&&(_0x4e06b4['markMultiRangeDeletion'](_0xd9c061,'tablePaste',{'tablePasteChainId':_0x26f077,'skipNestingCheck':!0x0}),_0xd9c061['forEach'](_0x25e209=>_0x25e209['detach']?.()));const _0x2ab347=_0x4e06b4['markMultiRangeBlockFormat'](_0x2a6221['map'](({element:_0x22d4cd})=>_0x22d4cd),{'formatGroupId':_0x36eeaa()},[],'tablePasteCell',{'tablePasteChainId':_0x26f077});if(_0x2ab347){const _0x28f4a4=_0x2ab347['getMarkers'](),_0x57d86e=[];for(const {element:_0x222a62,attributes:_0x31c291}of _0x2a6221){if(!_0x31c291)continue;const _0x56bfcb=_0x10b2de['model']['createRangeOn'](_0x222a62),_0x545ade=_0x28f4a4['find'](_0x511335=>_0x511335['getRange']()['isEqual'](_0x56bfcb));_0x545ade&&_0x57d86e['push']([_0x545ade['name'],_0x31c291]);}_0x57d86e['length']&&_0x2ab347['setAttribute']('markerAttributes',Object['fromEntries'](_0x57d86e));}_0x2e3bde=null;}));},{'priority':_0x1b23c8['high']+0xa}),_0x10b2de['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x515443,_0x578d77)=>{const [_0x4eb23a,_0x100adc,,_0x5104b4]=_0x578d77;if(!_0x2e3bde)return;_0x515443['stop']();const _0x49db7d=_0x4eb23a['cell'],_0x206981=_0x100adc,_0x295bbe=ke(_0x49db7d),_0xa072b2=ke(_0x206981);_0x515443['return']=_0x49db7d;let _0x413941=null,_0x69d044=null;if(_0xa072b2||_0x295bbe){if(_0x295bbe&&!_0xa072b2){_0x5104b4['remove'](_0x49db7d['getChild'](0x0));for(const _0x2344d4 of Array['from'](_0x206981['getChildren']()))_0x5104b4['insert'](_0x2344d4,_0x49db7d,'end');const _0x2a670f=_0x2e3bde['rowInsertionIndexes']['includes'](_0x4eb23a['row']),_0x3b524d=_0x2e3bde['columnInsertionIndexes']['includes'](_0x4eb23a['column']);_0x2a670f||_0x3b524d||(_0x413941=_0x5ed280['fromRange'](_0x5104b4['createRangeIn'](_0x49db7d)));}else _0xa072b2&&!_0x295bbe&&(_0x69d044=_0x5104b4['createRangeIn'](_0x49db7d));}else{const _0x47679d=_0x5104b4['createElement']('tableCellSuggestion'),_0x49ac9b=_0x5104b4['createElement']('tableCellSuggestion');_0x5104b4['wrap'](_0x5104b4['createRangeIn'](_0x49db7d),_0x49ac9b),_0x5104b4['insert'](_0x47679d,_0x49db7d,0x0);for(const _0x4fb7be of Array['from'](_0x206981['getChildren']()))_0x5104b4['insert'](_0x4fb7be,_0x47679d,'end');_0x413941=_0x5ed280['fromRange'](_0x5104b4['createRangeOn'](_0x47679d)),_0x69d044=_0x5ed280['fromRange'](_0x5104b4['createRangeOn'](_0x49ac9b));}const _0x4cafb8=Array['from'](_0x206981['getAttributes']())['filter'](([_0x2fafb2])=>Pe['includes'](_0x2fafb2));_0x2e3bde['cells']['push']({'element':_0x49db7d,'attributes':_0x4cafb8['length']?Object['fromEntries'](_0x4cafb8):null}),_0x413941&&_0x2e3bde['insertionRanges']['push'](_0x413941),_0x69d044&&_0x2e3bde['deletionRanges']['push'](_0x69d044);},{'priority':'high'}),_0x1e2bb8['on']('insertColumns',(_0x4b19fd,_0x7c3089)=>{const [_0x4c893b,_0x5a13bd={}]=_0x7c3089;if(!_0x2e3bde)return;const _0x515dbf=_0x5a13bd['at']||0x0,_0x1c9fe2=_0x5a13bd['columns']||0x1;_0x2e3bde['columnInsertionIndexes']=new Array(_0x1c9fe2)['fill'](_0x515dbf)['map']((_0x450237,_0x1a814b)=>_0x450237+_0x1a814b);for(const {cell:_0x13f496}of _0x1e2bb8['createTableWalker'](_0x4c893b,{'startColumn':_0x515dbf,'endColumn':_0x515dbf+_0x1c9fe2-0x1}))_0x2e3bde['columnInsertionRanges']['push'](_0x10b2de['model']['createRangeOn'](_0x13f496));},{'priority':'low'}),_0x1e2bb8['on']('insertRows',(_0x5a3c3a,_0x1a9639)=>{const [_0x2542f9,_0x508129={}]=_0x1a9639;if(!_0x2e3bde)return;const _0x2f7a8c=_0x508129['at']||0x0,_0x77a0c0=_0x508129['rows']||0x1;_0x2e3bde['rowInsertionIndexes']=new Array(_0x77a0c0)['fill'](_0x2f7a8c)['map']((_0x20c9c9,_0x3a2810)=>_0x20c9c9+_0x3a2810);for(const {cell:_0x4fc23f}of _0x1e2bb8['createTableWalker'](_0x2542f9,{'startRow':_0x2f7a8c,'endRow':_0x2f7a8c+_0x77a0c0-0x1}))_0x2e3bde['rowInsertionRanges']['push'](_0x10b2de['model']['createRangeOn'](_0x4fc23f));},{'priority':'low'}),_0x4e06b4['descriptionFactory']['registerDescriptionCallback'](_0x5d2df8=>{if(_0x5d2df8['subType']&&_0x5d2df8['subType']['startsWith']('tablePaste'))return _0x5d2df8['previous']?{}:{'type':'insertion','content':o(_0x10b2de['locale'],'*Replace\x20table\x20cells*')};});const _0x8b624a=()=>!0x1;for(const _0x532cde of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion',_0x532cde,'join',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('deletion',_0x532cde,'join',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x532cde,'join',_0x8b624a);_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a56ca,_0x53999f,_0x52cff3)=>{const _0x149083=_0x3a56ca['map'](_0x9df39=>_0x9df39['getContainedElement']())['filter'](_0x2fcafa=>_0x2fcafa),_0x13bc3a=new Map(_0x149083['map'](_0x3eb8e5=>[_0x3eb8e5,null]));if(_0x2e3bde){for(const {element:_0x3cdd55,attributes:_0x258ec2}of _0x2e3bde['cells'])_0x258ec2&&_0x13bc3a['set'](_0x3cdd55,_0x258ec2);}else{if(_0x52cff3&&_0x52cff3['markerAttributes'])for(const [_0x4a7f90,_0x566b43]of Object['entries'](_0x52cff3['markerAttributes'])){const _0x250049=_0x10b2de['model']['markers']['get'](_0x4a7f90),_0xb484a9=_0x250049?_0x250049['getRange']()['getContainedElement']():null;_0xb484a9&&_0x13bc3a['set'](_0xb484a9,_0x566b43);}}_0x10b2de['model']['change'](_0x31de14=>{for(const [_0x592f9b,_0x195855]of _0x13bc3a)_0x31de14['setAttributes']({...we,..._0x195855},_0x592f9b);});});const _0x166282=(_0x3b5a5a,_0x2090ce)=>{_0x4e06b4['_suggestionFactory']['registerCustomCallback'](_0x3b5a5a,'tablePaste',_0x2090ce,(_0x51b5fd,_0x489b27,_0x18fe4f)=>{_0x10b2de['model']['change'](_0x969b49=>{const _0x2031f8=[];for(const _0x14da27 of _0x51b5fd){const _0x477a92=_0x14da27['start']['nodeAfter'];_0x477a92['is']('element','tableCellSuggestion')&&_0x2031f8['push'](_0x477a92);}_0x4e06b4['_suggestionFactory']['getSuggestionCallback'](_0x3b5a5a,null,_0x2090ce)(_0x51b5fd,_0x489b27,_0x18fe4f);for(const _0xafa9ee of _0x2031f8)'$graveyard'!=_0xafa9ee['root']['rootName']&&_0x969b49['unwrap'](_0xafa9ee);});});};_0x166282('insertion','accept'),_0x166282('insertion','discard'),_0x166282('deletion','accept'),_0x166282('deletion','discard'),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4a143e=>{const _0x2cb21b=_0x4a143e['map'](_0x1dfbb5=>_0x1dfbb5['getContainedElement']()),_0xe2ebd4=_0x2cb21b[0x0]['findAncestor']('table'),{minRow:_0xd7ae27,maxRow:_0x49554c}=_0x1c29fc['_getCoordsForCells'](_0x2cb21b);_0x1e2bb8['removeRows'](_0xe2ebd4,{'at':_0xd7ae27,'rows':_0x49554c-_0xd7ae27+0x1});}),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x46ef48=>{const _0xab16e=_0x46ef48['map'](_0x1f9417=>_0x1f9417['getContainedElement']()),_0x2d95ae=_0xab16e[0x0]['findAncestor']('table'),{minColumn:_0x1c6462,maxColumn:_0x46d7c9}=_0x1c29fc['_getCoordsForCells'](_0xab16e);_0x1e2bb8['removeColumns'](_0x2d95ae,{'at':_0x1c6462,'columns':_0x46d7c9-_0x1c6462+0x1});});const _0x12cdab=(_0x46ee2a,_0xa7de5a)=>{if(!_0xa7de5a['subType']||!_0xa7de5a['subType']['startsWith']('tablePaste'))return;const _0xa10a7d=_0xa7de5a['attributes']['tablePasteChainId'],_0x3403a7=_0x4e06b4['getSuggestions']()['filter'](_0xbf09e2=>_0xbf09e2['isInContent']&&_0xbf09e2['attributes']&&_0xbf09e2['attributes']['tablePasteChainId']==_0xa10a7d);_0x3403a7['length']&&_0xa7de5a['getAllAdjacentSuggestions']()['length']!=_0x3403a7['length']&&_0x3403a7['reduce']((_0x2193fa,_0x6a4cc0)=>(_0x2193fa['next']=_0x6a4cc0,_0x6a4cc0['previous']=_0x2193fa,_0x6a4cc0));};function _0x4cf612(_0xe2b030,_0x4e17c2=!0x0){const {id:_0x561846,authorId:_0x5dd4fe}=_0x4e06b4['_splitMarkerName'](_0xe2b030['markerName']),_0xcd2d36=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d2f06=_0x4e06b4['activeMarkers']['includes'](_0xe2b030['markerName']);return _0x1d2f06&&_0xcd2d36['push']('ck-suggestion-marker--active'),{'classes':_0xcd2d36,'attributes':{'data-suggestion':_0x561846,'data-author-id':_0x5dd4fe},'priority':_0x1d2f06&&_0x4e17c2?0xbc2:0xbb8};}_0x4e06b4['on']('suggestionLoaded',_0x12cdab,{'priority':'high'}),_0x4e06b4['on']('suggestionUnloaded',_0x12cdab,{'priority':'high'}),_0x10b2de['model']['document']['registerPostFixer'](()=>{let _0x13664b=!0x1;const _0x2277b1=Array['from'](_0x10b2de['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45cf45,data:_0x2d8db9}of _0x2277b1){const {group:_0x320648,type:_0x162cfb,id:_0x436325}=_0x4e06b4['_splitMarkerName'](_0x45cf45);if('suggestion'!=_0x320648||'deletion'!=_0x162cfb||_0x2d8db9['oldRange'])continue;if(!_0x4e06b4['hasSuggestion'](_0x436325))continue;const _0x539d11=_0x4e06b4['getSuggestion'](_0x436325)['getRanges'](),_0x48ed27=_0x10b2de['plugins']['get']('Users')['me'];for(const _0x33468b of _0x4e06b4['getSuggestions']()){if(!_0x33468b['isInContent']||_0x33468b['author']!=_0x48ed27)continue;if('formatBlock'!=_0x33468b['type']||'tablePasteCell'!=_0x33468b['subType'])continue;if(_0x33468b['getRanges']()['every'](_0x30ee12=>_0x539d11['some'](_0x163838=>_0x163838['containsRange'](_0x30ee12,!0x0)))){for(const _0x27335a of _0x33468b['getAllAdjacentSuggestions']())_0x27335a['isInContent']&&(_0x27335a['discard'](),_0x13664b=!0x0);}}}return _0x13664b;}),_0x10b2de['model']['document']['registerPostFixer'](_0x42d073=>{const _0x474a6d=_0x10b2de['commands']['get']('redo');if(!_0x474a6d||!_0x474a6d['_createdBatches']['has'](_0x42d073['batch']))return!0x1;let _0x4c6f43=!0x1;const _0x3e7719=_0x10b2de['plugins']['get']('Users')['me'],_0x354e66=_0x10b2de['model']['document']['differ']['getChanges'](),_0x9e5bb8=Array['from'](_0x10b2de['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2042c9,data:_0x27254f})=>{const {group:_0x258a58,subType:_0x3c7c16,authorId:_0xaad714}=_0x4e06b4['_splitMarkerName'](_0x2042c9);return'suggestion'==_0x258a58&&'tablePaste'==_0x3c7c16&&_0xaad714==_0x3e7719['id']&&!_0x27254f['oldRange'];});for(const _0x55107e of _0x354e66){if('insert'!=_0x55107e['type']||'tableCellSuggestion'!=_0x55107e['name']||0x1!=_0x55107e['length'])continue;const _0x1c1d58=_0x42d073['createRange'](_0x55107e['position'],_0x55107e['position']['getShiftedBy'](0x1));if(!_0x9e5bb8['find'](({data:_0x4be02c})=>_0x4be02c['newRange']['isEqual'](_0x1c1d58))){for(const {name:_0x19709d,data:_0x1f7170}of _0x9e5bb8)if(_0x1c1d58['containsRange'](_0x1f7170['newRange'])){_0x42d073['updateMarker'](_0x19709d,{'range':_0x1c1d58}),_0x4c6f43=!0x0;break;}}}return _0x4c6f43;}),_0x10b2de['model']['document']['registerPostFixer'](_0x5bc6a8=>{let _0x4a3d95=!0x1;const _0xe7f285=_0x10b2de['plugins']['get']('Users')['me'],_0xbaf7d8=_0x4e06b4['getSuggestions']()['filter'](_0x379307=>_0x379307['isInContent']&&_0x379307['author']==_0xe7f285),_0x2f8f15=new Set(),_0x36424c=new Set();for(const _0x502ae8 of _0xbaf7d8)if('tablePaste'==_0x502ae8['subType'])for(const _0x4684b0 of _0x502ae8['getMarkers']()){const _0x1e9bf5=_0x4684b0['getRange']()['getContainedElement']();if(_0x1e9bf5){if(_0x1e9bf5['is']('element','tableCellSuggestion')&&ke(_0x1e9bf5)){_0x502ae8['removeMarker'](_0x4684b0['name']),_0x2f8f15['add'](_0x1e9bf5),_0x4a3d95=!0x0;const _0x12b9a3=_0x1e9bf5['nextSibling'],_0x51a83b=_0x1e9bf5['previousSibling'],_0x5a6bbb=_0x12b9a3&&_0x12b9a3['is']('element','tableCellSuggestion'),_0x3be51b=_0x51a83b&&_0x51a83b['is']('element','tableCellSuggestion');_0x5a6bbb&&!_0x2f8f15['has'](_0x12b9a3)&&_0x36424c['add'](_0x12b9a3),_0x3be51b&&!_0x2f8f15['has'](_0x51a83b)&&_0x36424c['add'](_0x51a83b);}else _0x1e9bf5['is']('element','paragraph')&&_0x1e9bf5['isEmpty']&&(_0x502ae8['removeMarker'](_0x4684b0['name']),_0x4a3d95=!0x0);}}else{if('tablePasteCell'==_0x502ae8['subType']){if(!_0x502ae8['attributes']||!_0x502ae8['attributes']['tablePasteChainId'])continue;const _0x54394a=_0x502ae8['attributes']['markerAttributes'];if(_0x54394a&&Object['keys'](_0x54394a)['length'])continue;const _0x34aa72=_0x502ae8['attributes']['tablePasteChainId'];let _0x513f92=!0x0,_0x152733=!0x0;for(const _0x3b5988 of _0xbaf7d8)if(_0x3b5988['subType']&&_0x3b5988['subType']['startsWith']('tablePaste')){if(!_0x3b5988['attributes']['tablePasteChainId']){_0x152733=!0x1;break;}if(_0x3b5988['id']!=_0x502ae8['id']&&_0x3b5988['attributes']['tablePasteChainId']==_0x34aa72){_0x513f92=!0x1;break;}}_0x152733&&_0x513f92&&(_0x502ae8['removeMarkers'](),_0x4a3d95=!0x0);}}for(const _0x12c93c of _0x2f8f15)_0x5bc6a8['remove'](_0x12c93c);for(const _0x126ad0 of _0x36424c)_0x5bc6a8['unwrap'](_0x126ad0);return _0x4a3d95;}),_0x10b2de['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4774eb=>_0x4cf612(_0x4774eb),'converterPriority':'high'}),_0x10b2de['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc3a82,_0x624a66)=>_0x624a66['options']['showSuggestionHighlights']?_0x4cf612(_0xc3a82,!0x1):null,'converterPriority':'high'});const _0x324f96=_0x10b2de['editing']['view'];this['listenTo'](_0x324f96['document'],'clipboardOutput',(_0x1030b0,_0x257945)=>{const _0x286268=[];for(const _0x15f72e of _0x324f96['createRangeIn'](_0x257945['content'])['getItems']())_0x15f72e['is']('element','suggestion-td')&&_0x286268['push'](_0x15f72e);_0x324f96['change'](_0x1d6124=>{for(const _0xbea894 of _0x286268)_0x1d6124['move'](_0x1d6124['createRangeIn'](_0xbea894),_0x1d6124['createPositionBefore'](_0xbea894)),_0x1d6124['remove'](_0xbea894);});});}}function ke(_0xcfe4bc){if(_0xcfe4bc['isEmpty'])return!0x0;const _0x5b515d=_0xcfe4bc['getChild'](0x0);return _0x5b515d['is']('element','paragraph')&&_0x5b515d['isEmpty'];}function Re(_0x4f4045,_0x581ac0={},_0x2b6926){for(const {isAnchor:_0x5959ee,cellHeight:_0x3f4700,cellWidth:_0x3789df}of _0x2b6926['createTableWalker'](_0x4f4045,{'includeAllSlots':!0x0,..._0x581ac0}))if(!_0x5959ee||0x1!=_0x3f4700||0x1!=_0x3789df)return!0x1;return!0x0;}class Nt extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x287f1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x287f1d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x287f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x287f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x287f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x287f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x287f1d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e6855,_0x225c40){const _0x4408b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9ca7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34b86f=_0x225c40['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x26055c=_0x1b9ca7['getColumnGroupElement'](_0x34b86f);let _0x48e201=_0x26055c?_0x1b9ca7['getTableColumnsWidths'](_0x26055c):null,_0x49da4f=_0x34b86f['getAttribute']('tableWidth')||null;const _0x3f1fba=_0x225c40['tableWidth']||_0x49da4f,_0x253721=_0x225c40['columnWidths']||_0x48e201,_0x3ba30e=this['editor']['plugins']['get']('Users')['me'];for(const _0x11f43d of _0x4408b7['getSuggestions']()){const _0x52cc6a=_0x11f43d['getContainedElement']();if('resizeTable'===_0x11f43d['subType']&&_0x52cc6a===_0x34b86f){_0x11f43d['author']!==_0x3ba30e&&_0x11f43d['discard']();const _0x496638=_0x11f43d['data']['commandParams'];_0x49da4f=_0x496638[0x0]['tableWidth'],_0x48e201=_0x496638[0x0]['columnWidths'];break;}}_0x5e6855({'table':_0x34b86f,'tableWidth':_0x3f1fba,'columnWidths':_0x253721}),_0x4408b7['markBlockFormat'](_0x34b86f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x49da4f,'columnWidths':_0x48e201}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x485cd9){if('formatBlock'!=_0x485cd9['type']&&'formatInline'!=_0x485cd9['type'])return;const {data:_0x1e9419}=_0x485cd9;if(_0x1e9419&&'resizeTable'===_0x1e9419['formatGroupId']){const _0x5e094b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5e094b)};}}}class Dt extends _0x3cc490{['afterInit'](){const _0x2b5dc2=this['editor'];_0x2b5dc2['plugins']['has']('Template')&&_0x2b5dc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3cc490{['afterInit'](){const _0x348327=this['editor'];if(!_0x348327['commands']['get']('insertTableOfContents'))return;_0x348327['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d8b7d=_0x348327['plugins']['get']('TrackChangesEditing'),_0x5a039a=_0x348327['locale'];_0x4d8b7d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bad47=>o(_0x5a039a,'ELEMENT_TABLE_OF_CONTENTS',_0x3bad47));}}class $t extends _0x3cc490{['afterInit'](){const _0x44016c=this['editor'];if(!_0x44016c['plugins']['has']('Title'))return;const _0x44f689=_0x44016c['plugins']['get']('TrackChangesEditing');_0x44f689['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44016c['locale'],'ELEMENT_TITLE')),_0x44016c['model']['document']['registerPostFixer'](_0x573634=>{let _0x5b8727=!0x1;const _0x455b5c=Array['from'](_0x44016c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fc4b5,data:_0xdc8e6f}of _0x455b5c){const {group:_0x14ab63}=_0x44f689['_splitMarkerName'](_0x2fc4b5);if('suggestion'!==_0x14ab63||!_0xdc8e6f['newRange'])continue;const _0x14a6af=_0xdc8e6f['newRange'],_0x4f8185=_0x14a6af['end']['nodeBefore'];if(!_0x4f8185||!_0x4f8185['is']('element','title-content'))continue;if(!_0x14a6af['start']['isTouching'](_0x14a6af['end']))continue;const _0x2adccb=_0x44016c['model']['schema']['getNearestSelectionRange'](_0x14a6af['end'],'forward');if(_0x2adccb&&_0x2adccb['isCollapsed']){const _0x52796f=_0x573634['createRange'](_0x14a6af['start'],_0x2adccb['start']);_0x52796f['isEqual'](_0x14a6af)||(_0x573634['updateMarker'](_0x2fc4b5,{'range':_0x52796f}),_0x5b8727=!0x0);}_0x5b8727||(_0x573634['removeMarker'](_0x2fc4b5),_0x5b8727=!0x0);}return _0x5b8727;});}}class Bt extends _0x3cc490{['afterInit'](){const _0x24df61=this['editor'],_0x4d626d=_0x24df61['plugins']['get']('TrackChangesEditing');_0x24df61['plugins']['has']('UndoEditing')&&(_0x4d626d['enableCommand']('undo'),_0x4d626d['enableCommand']('redo'));}}class xt extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x53b8ba=this['editor'];if(!_0x53b8ba['plugins']['has']('TableCaptionEditing'))return;_0x53b8ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3cc490{['tableProperties'];['tableCellProperties'];constructor(_0x54bf09){super(_0x54bf09),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 _0x592d18=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x37b54e of this['tableProperties'])_0x592d18['enableCommand'](_0x37b54e,(_0x4acc02,_0x9d05a7)=>{const _0x40d45a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x37b54e,[_0x40d45a],this['tableProperties'],'tableProperties',_0x4acc02,_0x9d05a7);});_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592d18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1adcca,_0x2f547b)=>this['handleDiscardAction'](this['tableProperties'],_0x1adcca,_0x2f547b)),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x35da41 of this['tableCellProperties'])_0x592d18['enableCommand'](_0x35da41,(_0x317a00,_0x50bbe8)=>{const _0x102ea7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x35da41,_0x102ea7,this['tableCellProperties'],'tableCellProperties',_0x317a00,_0x50bbe8);});_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592d18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4a2e1c,_0x46a326)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4a2e1c,_0x46a326)),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x592d18['descriptionFactory']['registerDescriptionCallback'](_0x855126=>this['handleSuggestionDescription'](_0x855126));}['_handlePropertyChange'](_0x4f16dc,_0x330964,_0x3c1740,_0x1cd8b3,_0x119697,_0x2fc691){const _0x27cdf8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2fc691['batch'],()=>{for(const _0x25878e of _0x330964){if(this['_getSuggestion'](_0x25878e,_0x1cd8b3))_0x119697(_0x2fc691);else{const _0x3ea591={};for(const _0x26a465 of _0x3c1740){const _0x11c37e=_0x25878e['getAttribute'](_0x26a465);void 0x0!==_0x11c37e&&(_0x3ea591[_0x26a465]=_0x11c37e);}_0x119697(_0x2fc691),_0x27cdf8['markBlockFormat'](_0x25878e,{'commandParams':[_0x3ea591]},[],_0x1cd8b3);}}});}['handleDiscardAction'](_0x16dee3,_0x368192,_0x1949eb){const _0x2e9b95=_0x368192[0x0]['start']['nodeAfter'],_0x277a4b=_0x1949eb['commandParams'][0x0];this['editor']['model']['change'](_0x41de61=>{for(const _0x1571b2 of _0x16dee3)void 0x0!==_0x277a4b[_0x1571b2]?_0x41de61['setAttribute'](_0x1571b2,_0x277a4b[_0x1571b2],_0x2e9b95):_0x41de61['removeAttribute'](_0x1571b2,_0x2e9b95);});}['handleSuggestionDescription'](_0x12ab27){if(_0x12ab27['data'])switch(_0x12ab27['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'](_0x35a743,_0x59d9b4){const _0xf46a99=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x29e359 of _0xf46a99['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a5a51=_0x29e359['getContainedElement']();if(_0x29e359['subType']===_0x59d9b4&&_0x3a5a51===_0x35a743)return _0x29e359;}return null;}}const m='$elementName';class p extends _0x3cc490{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x854ae2,_0x28f729,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x52bc4b){function _0x38b421(_0x342707){return _0x342707['map'](_0xb51d5c=>String['fromCharCode'](_0xb51d5c))['join']('');}super(_0x52bc4b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ecfde,_0x36dcf0,_0x404032,_0x25c097)=>{this['_model']['change'](()=>{for(const _0x3cc2d9 of[..._0x25c097,..._0x404032])this['_model']['markers']['has'](_0x3cc2d9)&&_0x52bc4b['editing']['reconvertMarker'](_0x3cc2d9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x52bc4b['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(),_0x52bc4b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x52bc4b['config']['get']('trackChanges.trackFormatChanges'),_0x52bc4b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x52bc4b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x52bc4b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x38b421([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x38b421([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x30]);}['init'](){const _0x2606bf=this['editor'],_0x6be350=(_0x127f6f,_0x5af86c)=>{if('attribute'!=_0x127f6f)return'ck-suggestion-marker-'+_0x127f6f;const _0x4bc80d=_0x5af86c['split']('|')[0x0];return this['_isBlockAttribute'](_0x4bc80d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2606bf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1790ce=>{const {id:_0xcde600,authorId:_0x22c2bf,type:_0x84687a,subType:_0x45970f}=this['_splitMarkerName'](_0x1790ce['markerName']),_0x24b8b4=['ck-suggestion-marker',_0x6be350(_0x84687a,_0x45970f)];let _0x4c2ef2=0xbb8;return this['activeMarkers']['includes'](_0x1790ce['markerName'])&&(_0x24b8b4['push']('ck-suggestion-marker--active'),_0x4c2ef2=0xbc2),'deletion'==_0x84687a&&(_0x4c2ef2+=0x5),{'classes':_0x24b8b4,'attributes':{'data-suggestion':_0xcde600,'data-author-id':_0x22c2bf},'priority':_0x4c2ef2};}}),_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x79b5c6=>{_0x79b5c6['on']('addMarker:suggestion',(_0x4f83f0,_0x2a792f,_0x446aff)=>{if(!_0x446aff['options']['showSuggestionHighlights'])return;const _0x43631d=_0x2a792f['item'];if(!_0x43631d)return;const _0x5c4459=_0x446aff['mapper']['toViewElement'](_0x43631d);_0x2606bf['model']['schema']['isObject'](_0x43631d)&&_0x5c4459&&!_0x5c4459['getCustomProperty']('widget')&&_0x5c4459['is']('containerElement')&&_0x3c7c86(_0x5c4459,_0x446aff['writer']);},{'priority':'high'});}),_0x2606bf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2cb047,_0x4e6047)=>{if(!_0x4e6047['options']['showSuggestionHighlights'])return null;const {type:_0x59ea7b,subType:_0x4cfe58}=this['_splitMarkerName'](_0x2cb047['markerName']);return{'classes':['ck-suggestion-marker',_0x6be350(_0x59ea7b,_0x4cfe58)],'priority':0xbb8};}});const _0x7bd4b0=({showActiveMarkers:_0x3378e7=!0x0,isAttributeSuggestion:_0x2b8814=!0x1}={})=>(_0x48fadf,_0x4e4d2f,_0x49ff03)=>{if(!_0x4e4d2f['item'])return;const {id:_0x2b819b,authorId:_0xb04c8e}=this['_splitMarkerName'](_0x4e4d2f['markerName']);if(_0x2b8814){const _0x494698=this['_suggestions']['get'](_0x2b819b),_0x1417f8=this['_getAttributeKey'](_0x494698);if(!this['_isBlockAttribute'](_0x1417f8))return;}if(_0x4e4d2f['item']['is']('selection'))return void _0x49ff03['consumable']['consume'](_0x4e4d2f['item'],_0x48fadf['name']);const _0x578ea7=_0x49ff03['mapper']['toViewElement'](_0x4e4d2f['item']);if(_0x4e4d2f['item']['is']('element')&&_0x2606bf['model']['schema']['isBlock'](_0x4e4d2f['item'])&&!_0x578ea7['getCustomProperty']('addHighlight')){_0x49ff03['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x578ea7),_0x49ff03['writer']['setAttribute']('data-suggestion',_0x2b819b,_0x578ea7),_0x49ff03['writer']['setAttribute']('data-author-id',_0xb04c8e,_0x578ea7),_0x49ff03['mapper']['bindElementToMarker'](_0x578ea7,_0x4e4d2f['markerName']),_0x3378e7&&(this['activeMarkers']['includes'](_0x4e4d2f['markerName'])?_0x49ff03['writer']['addClass']('ck-suggestion-marker--active',_0x578ea7):_0x49ff03['writer']['removeClass']('ck-suggestion-marker--active',_0x578ea7));for(const _0x2ba146 of _0x2606bf['model']['createRangeIn'](_0x4e4d2f['item'])['getItems']())_0x49ff03['consumable']['consume'](_0x2ba146,_0x48fadf['name']);_0x49ff03['consumable']['consume'](_0x4e4d2f['item'],_0x48fadf['name']);}};_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x22e057=>{_0x22e057['on']('addMarker:suggestion:formatBlock',(_0x25e765,_0x36ce20,_0x527213)=>{_0x527213['options']['showSuggestionHighlights']&&_0x7bd4b0({'showActiveMarkers':!0x1})(_0x25e765,_0x36ce20,_0x527213);},{'priority':'highest'});}),_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x19c91c=>{_0x19c91c['on']('addMarker:suggestion:attribute',(_0xbb004,_0x393307,_0x4f0e10)=>{_0x4f0e10['options']['showSuggestionHighlights']&&_0x7bd4b0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xbb004,_0x393307,_0x4f0e10);},{'priority':'highest'});}),_0x2606bf['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1bb3f4,_0x45ecb1)=>_0x45ecb1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1bb3f4['substr'](0xb)}}),_0x2606bf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32b2a5,{writer:_0x32646d})=>{let _0x528d8a='suggestion:'+_0x32b2a5['getAttribute']('suggestion-type')+':'+_0x32b2a5['getAttribute']('id');return _0x32b2a5['getAttribute']('marker-count')&&(_0x528d8a+=':'+_0x32b2a5['getAttribute']('marker-count')),_0x32646d['createElement']('$marker',{'data-name':_0x528d8a});}}),_0x2606bf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x367f6f=>{_0x367f6f['on']('addMarker:suggestion:formatBlock',_0x7bd4b0(),{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x24c902=>{_0x24c902['on']('addMarker:suggestion:attribute',_0x7bd4b0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x242a52=>{_0x242a52['on']('removeMarker:suggestion:formatBlock',(_0x502430,_0x164ce1,_0x313dfc)=>{const _0xf32f93=_0x313dfc['mapper']['markerNameToElements'](_0x164ce1['markerName']);if(_0xf32f93){for(const _0x92b878 of _0xf32f93)_0x92b878['getCustomProperty']('addHighlight')||(_0x313dfc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x92b878),_0x313dfc['writer']['removeAttribute']('data-suggestion',_0x92b878),_0x313dfc['writer']['removeAttribute']('data-author-id',_0x92b878),_0x313dfc['mapper']['unbindElementFromMarkerName'](_0x92b878,_0x164ce1['markerName']));}},{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x3d2674=>{_0x3d2674['on']('removeMarker:suggestion:attribute',(_0x296ca9,_0x5b7991,_0x38777e)=>{const _0x50f889=_0x38777e['mapper']['markerNameToElements'](_0x5b7991['markerName']);if(!_0x50f889)return;const {id:_0x1cdc53}=this['_splitMarkerName'](_0x5b7991['markerName']),_0x5861ac=this['_suggestions']['get'](_0x1cdc53),_0xb3d360=this['_getAttributeKey'](_0x5861ac);if(this['_isBlockAttribute'](_0xb3d360)){for(const _0x45b5d3 of _0x50f889)_0x45b5d3['getCustomProperty']('addHighlight')||(_0x38777e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45b5d3),_0x38777e['writer']['removeAttribute']('data-suggestion',_0x45b5d3),_0x38777e['writer']['removeAttribute']('data-author-id',_0x45b5d3),_0x38777e['mapper']['unbindElementFromMarkerName'](_0x45b5d3,_0x5b7991['markerName']));}},{'priority':'high'});}),_0x2606bf['model']['document']['registerPostFixer'](_0x54c645=>{let _0x12f99e=!0x1;const _0x227126=Array['from'](_0x2606bf['model']['document']['differ']['getChangedMarkers']()),_0x5d540f=new Set();for(const {name:_0x5d9a2c,data:_0x1e60a7}of _0x227126){const {group:_0x8e0714,type:_0x211892,subType:_0x5dec43,id:_0x5466c8}=this['_splitMarkerName'](_0x5d9a2c);if('suggestion'!==_0x8e0714)continue;const _0x259edf=this['_suggestions']['get'](_0x5466c8);if(null!=_0x1e60a7['newRange']){'formatInline'==_0x211892&&(_0x12f99e=_0x12f99e||Ut(_0x1e60a7['newRange'],_0x5d9a2c,_0x54c645,_0x2606bf['model']['schema']));const _0x1abc95='attribute'==_0x211892&&this['_isBlockAttribute'](_0x5dec43['split']('|')[0x0]);if(_0x1e60a7['newRange']['isCollapsed']||'$graveyard'==_0x1e60a7['newRange']['root']['rootName']||'formatBlock'==_0x211892&&!Ft(_0x1e60a7['newRange'])||_0x1abc95&&!Ft(_0x1e60a7['newRange'])||'deletion'==_0x211892&&!(!Vt(_0x28d8d8=_0x1e60a7['newRange'])&&!function(_0x4d8287){return _0x4d8287['start']['parent']==_0x4d8287['end']['nodeBefore']&&_0x4d8287['start']['isAtEnd'];}(_0x28d8d8)))_0x54c645['removeMarker'](_0x5d9a2c),_0x12f99e=!0x0;else{if(!_0x259edf||!_0x259edf['isInContent'])continue;if(_0x1e60a7['newRange']&&_0x1e60a7['oldRange']&&_0x1e60a7['newRange']['isEqual'](_0x1e60a7['oldRange']))continue;_0x5d540f['add'](_0x259edf);}}}var _0x28d8d8;return _0x5d540f['size']>0x0&&(_0x12f99e=!!this['_joinWithAdjacentSuggestions'](_0x5d540f)||_0x12f99e),_0x12f99e;}),_0x2606bf['model']['document']['registerPostFixer'](_0x7703db=>{let _0x2d63b0=!0x1;for(const _0x3dad5f of _0x2606bf['model']['document']['differ']['getChanges']())if('insert'==_0x3dad5f['type'])for(const _0x176c05 of this['_suggestions']['values']()){if(_0x176c05['isMultiRange']||!_0x176c05['isInContent'])continue;const _0x5dddb7='formatBlock'==_0x176c05['type'],_0x27e207=this['_getAttributeKey'](_0x176c05),_0x4c92a7=_0x27e207&&this['_isBlockAttribute'](_0x27e207);if(!_0x5dddb7&&!_0x4c92a7)continue;const _0x39be37=_0x176c05['getFirstRange']();if(_0x39be37['start']['parent']!=_0x39be37['end']['parent']&&!_0x39be37['end']['isAtEnd']){const _0x2239b4=_0x2606bf['model']['createPositionAt'](_0x39be37['start']['nodeAfter'],'end'),_0xd4cc6a=_0x2606bf['model']['createRange'](_0x39be37['start'],_0x2239b4);_0x7703db['updateMarker'](_0x176c05['getFirstMarker'](),{'range':_0xd4cc6a}),_0x2d63b0=!0x0;}}return _0x2d63b0;}),_0x2606bf['model']['document']['registerPostFixer'](_0xb38e34=>this['_processAttributeChanges'](_0xb38e34)),_0x2606bf['model']['document']['registerPostFixer'](_0x254a14=>!_0x254a14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x254a14)),_0x2606bf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2606bf['model']['document']['on']('change:data',(_0x2e398b,_0x5a1e59)=>{if(!_0x5a1e59['isLocal']||_0x5a1e59['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x45bfb2=_0x2606bf['model']['document']['differ']['getChanges']();if(0x0==_0x45bfb2['length'])return;const _0x154f1f=[],_0x5009c6=_0x45bfb2['filter'](_0x30e77f=>'attribute'==_0x30e77f['type']),_0x27822b=_0x45bfb2['filter'](_0x16698c=>'insert'==_0x16698c['type']&&'$text'!=_0x16698c['name']);for(const _0x3ed7ea of _0x5009c6)this['_isRegisteredAttribute'](_0x3ed7ea['attributeKey'])&&_0x154f1f['push']({'key':_0x3ed7ea['attributeKey'],'newValue':_0x3ed7ea['attributeNewValue'],'oldValue':_0x3ed7ea['attributeOldValue'],'range':Pt(_0x3ed7ea['range'],_0x2606bf['model'])});for(const _0x16304a of _0x27822b){if('rename'!=_0x16304a['action']&&'refresh'!=_0x16304a['action'])continue;const _0x423396=Lt(_0x16304a['position']['nodeAfter'],_0x2606bf['model']),_0x5a4e4f=_0x16304a['before'];'rename'==_0x16304a['action']&&_0x154f1f['push']({'key':m,'newValue':_0x16304a['name'],'oldValue':_0x5a4e4f['name'],'range':_0x423396});for(const [_0x4b1a4c,_0x5141a5]of _0x5a4e4f['attributes']){if(!this['_isRegisteredAttribute'](_0x4b1a4c))continue;const _0x4617d8=_0x16304a['attributes']['get'](_0x4b1a4c);_0x5141a5!==_0x4617d8&&_0x154f1f['push']({'key':_0x4b1a4c,'newValue':_0x4617d8,'oldValue':_0x5141a5,'range':_0x423396});}for(const [_0x13bae3,_0x94049e]of _0x16304a['attributes'])this['_isRegisteredAttribute'](_0x13bae3)&&(_0x5a4e4f['attributes']['has'](_0x13bae3)||_0x154f1f['push']({'key':_0x13bae3,'newValue':_0x94049e,'oldValue':null,'range':_0x423396}));}0x0!=_0x154f1f['length']&&_0x2606bf['model']['enqueueChange'](_0x5a1e59,_0x4d5b48=>{const _0x99506a=_0x36eeaa();for(const {range:_0x42f366,key:_0x6f9ce5,oldValue:_0x5edb39,newValue:_0x160091}of _0x154f1f)this['markAttributeChange'](_0x42f366,_0x6f9ce5,_0x5edb39,_0x160091,{'groupId':_0x99506a});this['_reduceExistingSuggestions'](_0x4d5b48,_0x154f1f);});},{'priority':'lowest'}),_0x2606bf['model']['markers']['on']('update:suggestion',(_0x510d56,_0x17b05b,_0x4a83f7)=>{if(null==_0x4a83f7){const {id:_0x3240cd}=this['_splitMarkerName'](_0x17b05b['name']),_0x2e46fb=this['_suggestions']['get'](_0x3240cd);_0x2e46fb&&_0x2e46fb['addMarkerName'](_0x17b05b['name']);}}),_0x2606bf['model']['document']['on']('change:data',()=>{const _0x3a07bd=Array['from'](_0x2606bf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x292d5c=>'suggestion'===this['_splitMarkerName'](_0x292d5c['name'])['group']);if(0x0===_0x3a07bd['length'])return;_0x3a07bd['sort']((_0x580dd7,_0x10901d)=>{const _0x2f9372=_0x580dd7['data']['oldRange'],_0x3e3569=_0x10901d['data']['oldRange'];return null===_0x2f9372&&null===_0x3e3569?0x0:null===_0x2f9372&&null!==_0x3e3569?-0x1:null!==_0x2f9372&&null===_0x3e3569?0x1:_0x2f9372['start']['isBefore'](_0x3e3569['start'])?-0x1:0x1;});const _0xf6412e=new Set(),_0x195e23=new Set();for(const {name:_0x230b5c,data:_0xd31879}of _0x3a07bd){const {id:_0x4e60b9}=this['_splitMarkerName'](_0x230b5c);if(null===_0xd31879['oldRange']){const _0x4fd512=this['_handleNewSuggestionMarker'](_0x230b5c);_0x195e23['add'](_0x4fd512);}else{const _0x354f86=this['_suggestions']['get'](_0x4e60b9);null!==_0xd31879['newRange']||_0x354f86['isInContent']?(_0xf6412e['add'](_0x354f86['head']),_0x195e23['add'](_0x354f86)):this['_removeSuggestion'](_0x354f86);}}_0x195e23['size']>0x0&&this['_refreshSuggestionsChain'](_0x195e23);for(const _0x5bdee5 of _0xf6412e)this['fire']('suggestionChanged',_0x5bdee5);}),_0x2606bf['model']['on']('applyOperation',(_0x3e9603,_0x34a192)=>{const _0x2b693e=_0x34a192[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b693e['isDocumentOperation'])return;if(_0x2b693e['batch']['isUndo']||!_0x2b693e['batch']['isLocal'])return;let _0x389f1b,_0x524acd;switch(_0x2b693e['type']){case'insert':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['position']),_0x524acd=_0x389f1b['getShiftedBy'](_0x2b693e['howMany']);break;case'split':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['splitPosition']),_0x524acd=_0x2606bf['model']['createPositionAt'](_0x2b693e['moveTargetPosition']);break;case'move':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['targetPosition']),_0x524acd=_0x389f1b['getShiftedBy'](_0x2b693e['howMany']);break;default:return;}const _0x484936=_0x2606bf['model']['createRange'](_0x389f1b,_0x524acd);_0x2606bf['model']['change'](()=>{for(const {suggestion:_0x44b49b,meta:_0x44ba77}of this['_findSuggestions'](_0x484936)){if(_0x44b49b['isMultiRange'])continue;if('formatInline'==_0x44b49b['type'])continue;const _0x5bfa56=this['_getAttributeKey'](_0x44b49b);if(_0x5bfa56&&this['_isBlockAttribute'](_0x5bfa56)&&'split'!=_0x2b693e['type'])continue;const _0x25d67c=_0x44b49b['data']&&_0x44b49b['data']['multipleBlocks'];('formatBlock'!=_0x44b49b['type']||'split'==_0x2b693e['type']&&!_0x25d67c)&&(_0x44ba77['containsRangeInObject']||'insertion'==_0x44b49b['type']&&_0x44ba77['isOwn']||_0x44b49b['getFirstRange']()['containsRange'](_0x484936)&&this['_breakSuggestionMarker'](_0x44b49b,_0x389f1b,_0x524acd));}});},{'priority':'lowest'}),_0x2606bf['model']['on']('deleteContent',(_0x5d13b8,_0x2bce3d)=>{const _0x23592f=_0x2bce3d[0x0],_0x5ff737=_0x2bce3d[0x1];if(_0x5ff737&&_0x5ff737['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23592f['isCollapsed'])return;const _0x26cfe3=_0x2606bf['model']['schema'],{start:_0x536b9d,end:_0x4334d6}=_0x23592f['getFirstRange'](),_0x3978ec=_0x536b9d['nodeAfter']&&_0x26cfe3['isLimit'](_0x536b9d['nodeAfter'])?null:_0x26cfe3['getNearestSelectionRange'](_0x536b9d,'forward'),_0x7acfab=_0x4334d6['nodeBefore']&&_0x26cfe3['isLimit'](_0x4334d6['nodeBefore'])?null:_0x26cfe3['getNearestSelectionRange'](_0x4334d6,'backward'),_0x3177a4=_0x2606bf['model']['createRange'](_0x3978ec?_0x3978ec['start']:_0x536b9d,_0x7acfab?_0x7acfab['end']:_0x4334d6);_0x2606bf['model']['change'](_0x15b7f4=>{this['markDeletion'](_0x3177a4);const _0x553e3b=_0x2606bf['model']['schema']['getNearestSelectionRange'](_0x3177a4['start']);_0x23592f['is']('documentSelection')?_0x15b7f4['setSelection'](_0x553e3b):_0x23592f['setTo'](_0x553e3b);}),_0x5d13b8['stop']();},{'priority':_0x1b23c8['normal']+0xa}),_0x2606bf['model']['on']('insertContent',(_0xbea696,_0x1a40b3)=>{const _0x540892=_0x1a40b3[_0x1a40b3['length']-0x1];_0x540892&&_0x540892['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2606bf['model']['change'](()=>{let _0x3cc32b=_0x2606bf['model']['insertContent'](_0x1a40b3[0x0],_0x1a40b3[0x1],_0x1a40b3[0x2],{'forceDefaultExecution':!0x0});if(!_0x3cc32b)return;_0xbea696['return']=_0x3cc32b['clone']();const _0x1f2884=_0x3cc32b['end']['nodeBefore'],_0x4e5c3a=_0x2606bf['model']['schema'];_0x1f2884&&_0x4e5c3a['isBlock'](_0x1f2884)&&!_0x4e5c3a['isObject'](_0x1f2884)&&(_0x3cc32b=_0x2606bf['model']['createRange'](_0x3cc32b['start'],_0x2606bf['model']['createPositionAt'](_0x1f2884,'end'))),this['markInsertion'](_0x3cc32b);}),_0xbea696['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a5baf=new x(_0x2606bf,this['_suggestions']);_0x2606bf['commands']['add']('acceptSuggestion',_0x1a5baf),this['enableCommand']('acceptSuggestion');const _0x42d2c0=new R(_0x2606bf,this['_suggestions']);_0x2606bf['commands']['add']('discardSuggestion',_0x42d2c0),this['enableCommand']('discardSuggestion'),_0x2606bf['commands']['add']('acceptAllSuggestions',new E(_0x2606bf,_0x1a5baf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2606bf['commands']['add']('discardAllSuggestions',new E(_0x2606bf,_0x42d2c0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2606bf['commands']['add']('acceptSelectedSuggestions',new O(_0x2606bf,_0x1a5baf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2606bf['commands']['add']('discardSelectedSuggestions',new O(_0x2606bf,_0x42d2c0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x375105=_0x2606bf['plugins']['get']('CommentsRepository');this['listenTo'](_0x375105,'addComment',(_0x4d4568,{threadId:_0x3e6519})=>{const _0x3bb74f=this['_suggestions']['get'](_0x3e6519);_0x3bb74f&&_0x3bb74f['commentThread']&&0x1===_0x3bb74f['commentThread']['length']&&this['_updateSuggestionData'](_0x3e6519,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x375105,'removeComment',(_0x385952,{threadId:_0x5a4716})=>{const _0x129c1c=this['_suggestions']['get'](_0x5a4716);_0x129c1c&&_0x129c1c['commentThread']&&!_0x129c1c['commentThread']['length']&&this['_updateSuggestionData'](_0x5a4716,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48fc96){if(this['_adapter'])throw new _0x1e75e0('track-changes-adapter-already-set',this);this['_adapter']=_0x48fc96;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6ce809=!0x1,toJSON:_0x53ce74=!0x1}={}){const _0x943f89=[];for(const _0x3579c4 of this['_suggestions']['values']())_0x6ce809&&!_0x3579c4['isInContent']||_0x943f89['push'](_0x3579c4);return _0x53ce74?_0x943f89['map'](_0x1225f2=>_0x1225f2['toJSON']()):_0x943f89;}['getSuggestion'](_0x4acf7e){const _0x5c9261=this['_suggestions']['get'](_0x4acf7e);if(!_0x5c9261)throw new _0x1e75e0('track-changes-suggestion-not-found',this);return _0x5c9261;}['hasSuggestion'](_0x4d4da7){return this['_suggestions']['has'](_0x4d4da7);}['addSuggestionData'](_0x2a46a8){const {authorId:_0x5cb8f,id:_0x49ddf0,attributes:_0x4e76a9}=_0x2a46a8,[_0x2d0e94,_0x5331a4]=_0x2a46a8['type']['split'](':'),_0x1d4404=this['_suggestions']['get'](_0x49ddf0)||this['_createSuggestion'](_0x2d0e94,_0x5331a4,_0x49ddf0,_0x5cb8f,_0x4e76a9);if(this['_addThreadToSuggestion'](_0x1d4404),this['_checkSuggestionCorrectness'](_0x1d4404,_0x2d0e94,_0x5331a4||null,_0x5cb8f),_0x1d4404['createdAt']=_0x2a46a8['createdAt'],_0x1d4404['_isDataLoaded']=!0x0,_0x4e76a9&&_0x4e76a9['@external']){const _0x302c7c=_0x4e76a9['@external'],_0x547e1a=this['_getExternalAuthor'](_0x302c7c['authorName']);_0x1d4404['authoredAt']=_0x302c7c['createdAt'],_0x1d4404['author']=_0x547e1a,_0x1d4404['isExternal']=!0x0;}else _0x1d4404['authoredAt']=_0x2a46a8['createdAt'];switch(_0x2a46a8['data']&&(_0x1d4404['data']=_0x2a46a8['data']),_0x2a46a8['attributes']&&(_0x1d4404['attributes']=_0x2a46a8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d4404['_saved']=!0x0),this['_suggestionState']['get'](_0x1d4404)){case'notReady':this['_suggestionState']['set'](_0x1d4404,'dataReady');break;case'markerReady':_0x1d4404['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d4404])),this['_refreshSuggestionsChain'](new Set([_0x1d4404])),this['_suggestionState']['set'](_0x1d4404,'ready'),this['fire']('suggestionLoaded',_0x1d4404)):this['_suggestionState']['set'](_0x1d4404,'removed');}return _0x1d4404;}['acceptSuggestion'](_0x2bae40){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1fddb4 of _0x2bae40['getAllAdjacentSuggestions']())_0x1fddb4['accept']();});});}['discardSuggestion'](_0x3a5acf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15e8cb of _0x3a5acf['getAllAdjacentSuggestions']())_0x15e8cb['discard']();});});}['enableCommand'](_0x3ce07a,_0x335b92){const _0x3be37f=this['editor']['commands']['get'](_0x3ce07a);if(!_0x3be37f)throw new _0x1e75e0('track-changes-command-not-found',this,{'commandName':_0x3ce07a});if(this['_enabledCommands']['has'](_0x3be37f))throw new _0x1e75e0('track-changes-enable-command-twice',this,{'commandName':_0x3ce07a});this['_enabledCommands']['add'](_0x3be37f),_0x335b92&&_0x3be37f['on']('execute',(_0x57dbaf,_0x20af4c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20af4c['length']>0x0&&_0x20af4c[_0x20af4c['length']-0x1]&&_0x20af4c[_0x20af4c['length']-0x1]['forceDefaultExecution']?_0x20af4c['pop']():(_0x57dbaf['return']=_0x335b92((..._0x1c8609)=>_0x3be37f['execute'](..._0x1c8609,{'forceDefaultExecution':!0x0}),..._0x20af4c),_0x57dbaf['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x593023){let _0x33d6af,_0x16c964;const _0x56c6ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33d6af=_0x593023();}catch(_0x2f8033){_0x16c964=_0x2f8033;}return _0x56c6ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16c964&&_0x1e75e0['rethrowUnexpectedError'](_0x16c964,this),_0x33d6af;}['markInsertion'](_0x5a7a11,_0x3ae368=null,_0x332157={}){if(_0x5a7a11['isCollapsed'])return null;const _0x15d921=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d90cd,meta:_0x9ac229}of this['_findSuggestions'](_0x5a7a11,'insertion'))if(_0x9ac229['isOwn']){if(!_0x9ac229['isNextTo']){if(_0x9ac229['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1d90cd,_0x332157))continue;return _0x1d90cd;}if(qt(_0x1d90cd,_0x332157))return _0x1d90cd;this['_breakSuggestionMarker'](_0x1d90cd,_0x5a7a11['start'],_0x5a7a11['end']);break;}if(_0x3ae368==_0x1d90cd['subType']&&qt(_0x1d90cd,_0x332157)){const _0xa7fcd7=_0x1d90cd['getFirstRange']();return _0xa7fcd7['start']['isEqual'](_0x5a7a11['end'])?this['_setSuggestionRange'](_0x1d90cd,this['_model']['createRange'](_0x5a7a11['start'],_0xa7fcd7['end'])):this['_setSuggestionRange'](_0x1d90cd,this['_model']['createRange'](_0xa7fcd7['start'],_0x5a7a11['end'])),_0x1d90cd;}}const _0x32ee11=_0x36eeaa(),_0x99b680=_0x15d921['id'],_0x6e06ff=_0x3ae368?'insertion:'+_0x3ae368:'insertion',_0x2b1ae9=this['_setSuggestionData']({'id':_0x32ee11,'type':_0x6e06ff,'createdAt':new Date(),'authorId':_0x99b680,'attributes':_0x332157});return this['_addSuggestionMarker'](_0x6e06ff,_0x32ee11,_0x99b680,_0x5a7a11),_0x2b1ae9;}['markMultiRangeInsertion'](_0x536ba3,_0xe30a53='multi',_0x4d2566={}){const _0x457da2=this['editor']['plugins']['get']('Users')['me'],_0x514350=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe30a53,'join');for(const _0x7c33b4 of this['getSuggestions']())if(_0x7c33b4['author']['id']==_0x457da2['id']&&'insertion'==_0x7c33b4['type']&&_0x7c33b4['subType']==_0xe30a53&&qt(_0x7c33b4,_0x4d2566)&&(_0x514350(_0x7c33b4['getRanges'](),_0x536ba3)||_0x514350(_0x536ba3,_0x7c33b4['getRanges']()))){for(const _0x75733a of _0x536ba3)_0x7c33b4['addRange'](_0x75733a);return _0x7c33b4;}for(const {suggestion:_0x367a10,meta:_0x1866de}of this['_findSuggestions'](_0x536ba3,'insertion')){if(!_0x1866de['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1866de['containsRangeInObject'])continue;if(!qt(_0x367a10,_0x4d2566))continue;let _0x445b12=!0x0;for(const _0x3e44d1 of _0x367a10['getRanges']())for(const _0x2c6e98 of _0x536ba3)if(!_0x3e44d1['containsRange'](_0x2c6e98)){_0x445b12=!0x1;break;}if(_0x445b12)return _0x367a10;}const _0x1138f0=_0x36eeaa(),_0x228e93=_0x457da2['id'],_0x506230='insertion:'+_0xe30a53,_0x35842e=this['_setSuggestionData']({'id':_0x1138f0,'type':_0x506230,'createdAt':new Date(),'authorId':_0x228e93,'attributes':_0x4d2566});for(const _0x31a953 of _0x536ba3)this['_addSuggestionMarker'](_0x506230,_0x1138f0,_0x228e93,_0x31a953,u['getMultiRangeId']());return _0x35842e;}['markInlineFormat'](_0xe360ba,_0x557fa6,_0xe5bb6=null,_0x3c172a={}){if(_0xe5bb6=_0xe5bb6||Gt(_0x557fa6),_0xe360ba['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2a88d5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe5bb6,'accept');return this['forceDefaultExecution'](()=>_0x2a88d5([_0xe360ba],_0x557fa6,_0x3c172a)),null;}const _0x1c3566=this['editor']['plugins']['get']('Users')['me'],_0x22c2a5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ac88e,meta:_0x292511}of this['_findSuggestions'](_0xe360ba,'insertion'))_0x292511['isOwn']&&!_0x292511['isInsideObject']&&_0x22c2a5['push'](..._0x3ac88e['getRanges']());}const _0x5c24ff=function(_0xa8621,_0x10c970){const _0x2800e2=[];for(const _0x3af175 of _0x10c970){const _0x37b19e=_0xa8621['getIntersection'](_0x3af175);_0x37b19e&&_0x2800e2['push'](_0x37b19e);}return _0x2800e2;}(_0xe360ba,_0x22c2a5),_0x52279e=function(_0x5d6e4f,_0x3ab741){const _0x3d17fa=[_0x5d6e4f];for(const _0x431b0c of _0x3ab741){let _0x5f04d3=0x0;for(;_0x5f04d3<_0x3d17fa['length'];){const _0x1c9226=_0x3d17fa[_0x5f04d3]['getDifference'](_0x431b0c);_0x3d17fa['splice'](_0x5f04d3,0x1,..._0x1c9226),_0x5f04d3+=_0x1c9226['length'];}}return _0x3d17fa;}(_0xe360ba,_0x22c2a5);_0x5c24ff['length']&&this['_model']['change'](()=>{for(const _0x206559 of _0x5c24ff){const _0x206ddf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe5bb6,'accept');this['forceDefaultExecution'](()=>_0x206ddf([_0x206559],_0x557fa6,_0x3c172a));}});for(const _0x3db43e of _0x52279e){let _0x434ca1=null,_0x2079dd=_0x3db43e['start'],_0x23407e=_0x3db43e['end'];for(const {suggestion:_0x32c8d1,meta:_0x10a028}of this['_findSuggestions'](_0x3db43e,'formatInline')){if(!_0x10a028['isOwn'])continue;if(_0x32c8d1['subType']!=_0xe5bb6)continue;if(!qt(_0x32c8d1,_0x3c172a))continue;const _0x5af6cc=_0x32c8d1['getFirstRange']();if(_0x5af6cc['containsRange'](_0x3db43e,!0x0))return null;_0x2079dd=_0x2079dd['isBefore'](_0x5af6cc['start'])?_0x2079dd:_0x5af6cc['start'],_0x23407e=_0x23407e['isAfter'](_0x5af6cc['end'])?_0x23407e:_0x5af6cc['end'],_0x434ca1?_0x5af6cc['start']['isBefore'](_0x434ca1['getFirstRange']()['start'])?(_0x434ca1['removeMarkers'](),_0x434ca1=_0x32c8d1):_0x32c8d1['removeMarkers']():_0x434ca1=_0x32c8d1;}const _0x2a348e=this['_model']['createRange'](_0x2079dd,_0x23407e);if(_0x434ca1)this['_setSuggestionRange'](_0x434ca1,_0x2a348e);else{const _0x7a336f=_0x36eeaa(),_0x4a0553=_0x1c3566['id'];this['_setSuggestionData']({'id':_0x7a336f,'type':'formatInline:'+_0xe5bb6,'data':_0x557fa6,'createdAt':new Date(),'authorId':_0x4a0553,'attributes':_0x3c172a}),this['_addSuggestionMarker']('formatInline:'+_0xe5bb6,_0x7a336f,_0x4a0553,_0x2a348e);}}return null;}['markBlockFormat'](_0x30ae91,_0x22d807,_0x3e1e8f=[],_0x552f6=null,_0x138b41={}){_0x22d807['formatGroupId']||(_0x22d807['formatGroupId']=_0x22d807['commandName']),_0x22d807['multipleBlocks']=_0x30ae91['is']('range'),_0x552f6=_0x552f6||Gt(_0x22d807);const _0x561e87=_0x3e1e8f['map'](_0x4f2c9e=>Lt(_0x4f2c9e,this['_model'])),_0x29d589=_0x30ae91['is']('range')?_0x30ae91:Lt(_0x30ae91,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5584b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x552f6,'accept');return this['forceDefaultExecution'](()=>_0x5584b3([_0x29d589],_0x22d807,_0x138b41)),null;}_0x561e87['push'](_0x29d589);let _0x3568da=!0x0;for(const _0x4a9cc2 of _0x561e87)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9cc2)){_0x3568da=!0x1;break;}if(_0x3568da&&'always'!==this['_trackFormatChanges']){const _0x3d1824=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x552f6,'accept');return this['forceDefaultExecution'](()=>_0x3d1824([_0x29d589],_0x22d807,_0x138b41)),null;}let _0x2c7335=null,_0x568f15=_0x29d589['start'],_0x3ba661=_0x29d589['end'];for(const {suggestion:_0x25b96e,meta:_0x5eb39a}of this['_findSuggestions'](_0x29d589,'formatBlock')){if(!_0x5eb39a['isOwn'])continue;if(_0x5eb39a['isNextTo']||_0x5eb39a['containsRangeInObject']||_0x5eb39a['isInsideObject'])continue;if(_0x25b96e['data']['formatGroupId']!=_0x22d807['formatGroupId'])continue;if(!qt(_0x25b96e,_0x138b41))continue;const _0x57c31e=_0x25b96e['getFirstRange']();if(_0x25b96e['subType']==_0x552f6){if(_0x57c31e['containsRange'](_0x29d589,!0x0))return null;_0x568f15=_0x568f15['isBefore'](_0x57c31e['start'])?_0x568f15:_0x57c31e['start'],_0x3ba661=_0x3ba661['isAfter'](_0x57c31e['end'])?_0x3ba661:_0x57c31e['end'],_0x2c7335?_0x57c31e['start']['isBefore'](_0x2c7335['getFirstRange']()['start'])?(_0x2c7335['removeMarkers'](),_0x2c7335=_0x25b96e):_0x25b96e['removeMarkers']():_0x2c7335=_0x25b96e;}else{const _0x176b65=_0x29d589['getIntersection'](_0x57c31e);this['_cutOutSuggestionMarker'](_0x25b96e,_0x176b65);}}const _0x134b45=this['editor']['plugins']['get']('Users')['me'],_0x5dc60a=_0x36eeaa(),_0xdf7ba2=_0x134b45['id'];if(_0x2c7335)return this['_setSuggestionRange'](_0x2c7335,this['_model']['createRange'](_0x568f15,_0x3ba661)),_0x2c7335;{const _0x1efef7=this['_setSuggestionData']({'id':_0x5dc60a,'type':'formatBlock:'+_0x552f6,'data':_0x22d807,'createdAt':new Date(),'authorId':_0xdf7ba2,'attributes':_0x138b41});return this['_addSuggestionMarker']('formatBlock:'+_0x552f6,_0x5dc60a,_0xdf7ba2,this['_model']['createRange'](_0x568f15,_0x3ba661)),_0x1efef7;}}['markMultiRangeBlockFormat'](_0x3d9141,_0x18cbe7,_0x375809=[],_0x30a118=null,_0x2ce42a={}){_0x18cbe7['formatGroupId']||(_0x18cbe7['formatGroupId']=_0x18cbe7['commandName']);const _0x2c4125=_0x3d9141[0x0];_0x18cbe7['multipleBlocks']=_0x2c4125['is']('range'),_0x30a118=_0x30a118||Gt(_0x18cbe7);const _0x27d505=_0x375809['map'](_0x134d87=>Lt(_0x134d87,this['_model'])),_0x45c859=_0x2c4125['is']('range')?_0x3d9141:_0x3d9141['map'](_0x4f0f7a=>Lt(_0x4f0f7a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xf3b53a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'accept');return this['forceDefaultExecution'](()=>_0xf3b53a(_0x45c859,_0x18cbe7,_0x2ce42a)),null;}_0x27d505['push'](..._0x45c859);let _0x1e8057=!0x0;for(const _0x2d8a90 of _0x27d505)if(!this['_rangeIsInLocalUserInsertion'](_0x2d8a90)){_0x1e8057=!0x1;break;}if(_0x1e8057&&'always'!==this['_trackFormatChanges']){const _0x4478a0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'accept');return this['forceDefaultExecution'](()=>_0x4478a0(_0x45c859,_0x18cbe7,_0x2ce42a)),null;}const _0x233cea=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d9574 of this['getSuggestions']()){if(_0x4d9574['author']['id']!=_0x233cea['id'])continue;if('formatBlock'!=_0x4d9574['type']||_0x4d9574['data']['formatGroupId']!=_0x18cbe7['formatGroupId'])continue;if(!qt(_0x4d9574,_0x2ce42a))continue;const _0x57819d=_0x4d9574['subType']==_0x30a118;for(let _0x47c942=0x0;_0x47c942<_0x45c859['length'];_0x47c942++){const _0x2136e4=_0x45c859[_0x47c942];for(const _0x4fdb85 of _0x4d9574['getMarkers']()){const _0x38b892=_0x4fdb85['getRange']();if(_0x2136e4['isEqual'](_0x38b892)){_0x57819d?(_0x45c859['splice'](_0x47c942,0x1),_0x47c942--):_0x4d9574['removeMarker'](_0x4fdb85['name']);break;}}}}if(0x0==_0x45c859['length'])return null;const _0x3751bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'join');for(const _0x6986d4 of this['getSuggestions']())if(_0x6986d4['author']['id']==_0x233cea['id']&&'formatBlock'==_0x6986d4['type']&&_0x6986d4['data']['formatGroupId']==_0x18cbe7['formatGroupId']&&_0x6986d4['subType']==_0x30a118&&qt(_0x6986d4,_0x2ce42a)&&(_0x3751bb(_0x6986d4['getRanges'](),_0x45c859)||_0x3751bb(_0x45c859,_0x6986d4['getRanges']()))){for(const _0x193d7b of _0x45c859)_0x6986d4['addRange'](_0x193d7b);return _0x6986d4;}const _0x22cfec=_0x36eeaa(),_0x59bb43=_0x233cea['id'],_0x579e52='formatBlock:'+_0x30a118,_0x54895a=this['_setSuggestionData']({'id':_0x22cfec,'type':_0x579e52,'data':_0x18cbe7,'createdAt':new Date(),'authorId':_0x59bb43,'attributes':_0x2ce42a});for(const _0x184809 of _0x45c859)this['_addSuggestionMarker'](_0x579e52,_0x22cfec,_0x59bb43,_0x184809,u['getMultiRangeId']());return _0x54895a;}['markDeletion'](_0x159cea,_0x5c27c8=null,_0x488678={}){if(_0x159cea['isCollapsed'])return null;const _0x28a904=this['editor']['plugins']['get']('Users')['me'],_0xec0510=new _0x5ed280(_0x159cea['start'],_0x159cea['end']);for(const {suggestion:_0xcc3e79,meta:_0x5a98a3}of this['_findSuggestions'](_0xec0510,'insertion'))if(_0x5a98a3['isOwn']&&!_0x5a98a3['isNextTo']){if(_0xcc3e79['isMultiRange']){const _0x3bdd9d=_0xcc3e79['getRanges']()['filter'](_0x3c0f80=>'$graveyard'!=_0x3c0f80['root']['rootName']);_0x3bdd9d['every'](_0x1c5bab=>_0xec0510['containsRange'](_0x1c5bab,!0x0))&&_0xcc3e79['discard']();if(_0x3bdd9d['some'](_0x428d14=>_0x428d14['containsRange'](_0xec0510,!0x0))){const _0x1d066f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c27c8,'accept');return this['forceDefaultExecution'](()=>_0x1d066f([_0xec0510],null,_0x488678)),null;}}else{const _0x191274=_0xec0510['getIntersection'](_0xcc3e79['getFirstRange']());null!==_0x191274&&_0xcc3e79['_onDiscard']([_0x191274],null,_0x488678);}}if(_0xec0510['detach'](),_0xec0510['isCollapsed']||'$graveyard'==_0xec0510['root']['rootName'])return null;let _0x5362d7=null,_0x16745b=_0xec0510['start'],_0x3d8270=_0xec0510['end'];const _0x467590=this['_findSuggestions'](_0xec0510,'deletion');for(const {suggestion:_0x43c355,meta:_0x5a2603}of _0x467590){const _0x132be4=this['_model']['createRange'](_0x16745b,_0x3d8270);if(_0x5a2603['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a2603['containsRangeInObject']&&!_0x5a2603['isInsideObject'])){if(_0x43c355['isMultiRange']){if(!qt(_0x43c355,_0x488678))continue;let _0x48a74f=!0x0;for(const _0x1b02e5 of _0x43c355['getRanges']()){if(_0x1b02e5['containsRange'](_0x132be4,!0x0))return _0x43c355;_0x132be4['containsRange'](_0x1b02e5)||(_0x48a74f=!0x1);}_0x48a74f&&_0x43c355['discard']();}else{const _0x55d64c=_0x43c355['getFirstRange']();if(_0x55d64c['containsRange'](_0x132be4,!0x0))return _0x43c355;if(!qt(_0x43c355,_0x488678)){_0x132be4['containsRange'](_0x55d64c)?_0x43c355['removeMarkers']():_0x55d64c['containsPosition'](_0x16745b)?_0x16745b=_0x55d64c['end']:_0x55d64c['containsPosition'](_0x3d8270)&&(_0x3d8270=_0x55d64c['start']);continue;}_0x16745b=_0x16745b['isBefore'](_0x55d64c['start'])?_0x16745b:_0x55d64c['start'],_0x3d8270=_0x3d8270['isAfter'](_0x55d64c['end'])?_0x3d8270:_0x55d64c['end'],_0x488678=Object['assign']({},_0x43c355['attributes']),_0x5362d7?_0x55d64c['start']['isBefore'](_0x5362d7['getFirstRange']()['start'])?(_0x5362d7['removeMarkers'](),_0x5362d7=_0x43c355):_0x43c355['removeMarkers']():_0x5362d7=_0x43c355;}}}if(_0x5362d7)return this['_setSuggestionRange'](_0x5362d7,this['_model']['createRange'](_0x16745b,_0x3d8270)),_0x5362d7;{const _0x1ab93a=_0x36eeaa(),_0x3a3993=this['_model']['createRange'](_0x16745b,_0x3d8270),_0x3b5476=_0x28a904['id'],_0x3b3bf9=_0x5c27c8?'deletion:'+_0x5c27c8:'deletion',_0x42c23e=this['_setSuggestionData']({'id':_0x1ab93a,'type':_0x3b3bf9,'createdAt':new Date(),'authorId':_0x3b5476,'attributes':_0x488678});return this['_addSuggestionMarker'](_0x3b3bf9,_0x1ab93a,_0x3b5476,_0x3a3993),_0x42c23e;}}['markMultiRangeDeletion'](_0x56804a,_0x30bd57='multi',_0x34eed2={}){const _0x2b10b0=this['editor']['plugins']['get']('Users')['me'],_0x4ca720=_0x56804a['map'](_0x400b27=>new _0x5ed280(_0x400b27['start'],_0x400b27['end'])),_0x231e3b=new Set();for(const {suggestion:_0x4718c9,meta:_0x30b6be}of this['_findSuggestions'](_0x4ca720,'insertion'))_0x30b6be['isOwn']&&!_0x30b6be['isNextTo']&&_0x231e3b['add'](_0x4718c9);for(const _0x245ce4 of _0x231e3b)if(_0x245ce4['isMultiRange']){const _0x45d57a=_0x245ce4['getRanges']();(!_0x245ce4['attributes']||!_0x245ce4['attributes']['skipNestingCheck'])&&(_0x45d57a['every'](_0x54ff9b=>_0x4ca720['some'](_0x259b41=>_0x259b41['containsRange'](_0x54ff9b,!0x0)))&&_0x245ce4['discard']());if(_0x4ca720['every'](_0x11acf8=>_0x45d57a['some'](_0xb2161f=>_0xb2161f['containsRange'](_0x11acf8,!0x0)))){const _0x2795dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'accept');return this['forceDefaultExecution'](()=>_0x2795dd(_0x56804a,null,_0x34eed2)),null;}}else{const _0x370f5e=_0x245ce4['getFirstRange']();_0x4ca720['some'](_0x508e72=>_0x508e72['containsRange'](_0x370f5e,!0x0))&&_0x245ce4['discard']();if(_0x4ca720['every'](_0x201f72=>_0x370f5e['containsRange'](_0x201f72,!0x0))){const _0x408327=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'accept');return this['forceDefaultExecution'](()=>_0x408327(_0x4ca720,null,_0x34eed2)),null;}}const _0xff0e03=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'join');let _0x2a0d2f=null;for(const _0xcd15eb of this['getSuggestions']())if(_0xcd15eb['author']['id']==_0x2b10b0['id']&&_0xcd15eb['isInContent']&&'deletion'==_0xcd15eb['type']&&_0xcd15eb['subType']==_0x30bd57&&qt(_0xcd15eb,_0x34eed2)&&(_0xff0e03(_0xcd15eb['getRanges'](),_0x4ca720)||_0xff0e03(_0x4ca720,_0xcd15eb['getRanges']()))){if(_0x2a0d2f){if(_0xcd15eb['commentThread']&&_0xcd15eb['commentThread']['length'])continue;for(const _0x23fde4 of _0xcd15eb['getRanges']())_0x2a0d2f['isIntersectingWithRange'](_0x23fde4)||_0x2a0d2f['addRange'](_0x23fde4);_0xcd15eb['removeMarkers']();}else{_0x2a0d2f=_0xcd15eb;for(const _0x401da0 of _0x4ca720)_0xcd15eb['isIntersectingWithRange'](_0x401da0)||_0xcd15eb['addRange'](_0x401da0);}}if(_0x2a0d2f)return _0x2a0d2f;_0x231e3b['clear']();for(const {suggestion:_0x463a39,meta:_0x44010b}of this['_findSuggestions'](_0x4ca720,'deletion'))_0x44010b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44010b['containsRangeInObject']&&!_0x44010b['isInsideObject'])&&qt(_0x463a39,_0x34eed2)&&_0x231e3b['add'](_0x463a39);for(const _0x1e681e of _0x231e3b){const _0x3fb545=_0x1e681e['getRanges']();if(!_0x34eed2||!_0x34eed2['skipNestingCheck']){if(_0x4ca720['every'](_0x51c1ac=>_0x3fb545['some'](_0x4f882e=>_0x4f882e['containsRange'](_0x51c1ac,!0x0))))return _0x1e681e;}(!_0x1e681e['attributes']||!_0x1e681e['attributes']['skipNestingCheck'])&&(_0x3fb545['every'](_0x1643f0=>_0x4ca720['some'](_0xf9e0d7=>_0xf9e0d7['containsRange'](_0x1643f0,!0x0)))&&_0x1e681e['discard']());}const _0x53f29f=_0x36eeaa(),_0x5b922d=_0x2b10b0['id'],_0x44d163='deletion:'+_0x30bd57,_0x7aad32=this['_setSuggestionData']({'id':_0x53f29f,'type':_0x44d163,'createdAt':new Date(),'authorId':_0x5b922d,'attributes':_0x34eed2});for(const _0x49c96b of _0x4ca720)_0x49c96b['detach'](),_0x49c96b['isCollapsed']||'$graveyard'==_0x49c96b['root']['rootName']||this['_addSuggestionMarker'](_0x44d163,_0x53f29f,_0x5b922d,_0x49c96b,u['getMultiRangeId']());return _0x7aad32;}['markAttributeChange'](_0x5bb10c,_0x351b0b,_0x6d2876,_0x13daaa,_0x208ce7){if(_0x5bb10c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf1a003=this['editor']['plugins']['get']('Users')['me']['id'],_0x301493=Array['from'](this['_suggestions']['values']())['filter'](_0x1b3ad5=>'attribute'==_0x1b3ad5['type']&&_0x1b3ad5['data']['key']==_0x351b0b&&_0x1b3ad5['isIntersectingWithRange'](_0x5bb10c));if('default'===this['_trackFormatChanges']){const _0x3f7282=this['_findSuggestions'](_0x5bb10c,'insertion')['filter'](({meta:_0x383bf5})=>_0x383bf5['isOwn']&&!_0x383bf5['isInsideObject']&&!_0x383bf5['isNextTo'])['map'](({suggestion:_0x45876e})=>_0x45876e);_0x301493['unshift'](..._0x3f7282);}const _0x5e323d=new Map([[_0x5bb10c,_0x6d2876]]);for(const _0xaf2979 of _0x301493){const _0x40f1f1='attribute'==_0xaf2979['type']?_0xaf2979['data']['oldValue']:void 0x0,_0x368956=_0xaf2979['getFirstRange'](),_0x5210da=Array['from'](_0x5e323d['keys']())['find'](_0x2b8810=>_0x2b8810['isIntersecting'](_0x368956));if(!_0x5210da)continue;const _0x4c7687=_0x5210da['getDifference'](_0x368956);this['_isBlockAttribute'](_0x351b0b)&&'insertion'==_0xaf2979['type']&&0x0!=_0x4c7687['length']||(_0x5e323d['delete'](_0x5210da),_0x4c7687['forEach'](_0x424555=>{_0x5e323d['set'](_0x424555,_0x6d2876);}),'insertion'!=_0xaf2979['type']&&_0x40f1f1!=_0x13daaa&&_0x5e323d['set'](_0x5210da['getIntersection'](_0x368956),_0x40f1f1));}const _0x6bec87=[];for(const [_0x8aaa39,_0x5200be]of _0x5e323d){const _0x3d0e96=_0x36eeaa(),_0xd50ca4={'key':_0x351b0b,'oldValue':_0x5200be,'newValue':_0x13daaa};_0x351b0b['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':_0x351b0b});const _0xbc1830=('attribute:'+(_0x351b0b+'|'+Gt({'newValue':_0x13daaa})))['substring'](0x0,0x3c),_0x16fa08=this['_setSuggestionData']({'id':_0x3d0e96,'type':_0xbc1830,'data':_0xd50ca4,'createdAt':new Date(),'authorId':_0xf1a003,'attributes':_0x208ce7});_0x6bec87['push'](_0x16fa08),this['_addSuggestionMarker'](_0xbc1830,_0x3d0e96,_0xf1a003,_0x8aaa39);}return _0x6bec87;}['enableDefaultAttributesIntegration'](_0x923534){this['enableCommand'](_0x923534,(_0x5c3f65,..._0x47dd9a)=>{this['_recordAttributeChanges'](()=>{_0x5c3f65(..._0x47dd9a);});});}['registerBlockAttribute'](_0x59fb9d){this['_blockAttributeKeys']['add'](_0x59fb9d);}['registerInlineAttribute'](_0x1054b0){this['_inlineAttributeKeys']['add'](_0x1054b0);}['_getAttributeKey'](_0x36d915){return'attribute'==_0x36d915['type']?_0x36d915['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x9215d8,_0x45516d){const _0x5bfc49=_0x9215d8['getFirstMarker']();this['_model']['change'](_0x1fc74c=>{_0x1fc74c['updateMarker'](_0x5bfc49,{'range':_0x45516d});});}['_addThreadToSuggestion'](_0x55e526){const _0x5779f7=_0x55e526['id'],_0x56efe3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5779f7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56efe3,'threadId':_0x5779f7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x89e9a=this['_commentsRepository']['getCommentThread'](_0x5779f7);_0x89e9a['unbind']('isRemovable'),_0x89e9a['isRemovable']=!0x1,_0x55e526['commentThread']=_0x89e9a;}['_checkSuggestionCorrectness'](_0x3917dc,_0x115fb5,_0x1523e6,_0x2dfa4e){if(_0x3917dc['type']!=_0x115fb5||_0x3917dc['subType']!=_0x1523e6||_0x3917dc['creator']['id']!=_0x2dfa4e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1e75e0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x518961,_0x55eb0a){const _0x2c0de6=_0x518961['getFirstRange']();if(_0x55eb0a['isEqual'](_0x2c0de6))_0x518961['removeMarkers']();else{if(_0x2c0de6['containsRange'](_0x55eb0a)){const _0x417a30=this['_model']['createPositionAt'](_0x55eb0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2c0de6['start'],_0x417a30));const _0x427fe4=_0x36eeaa(),_0x20c09b=_0x518961['creator']['id'],_0x76a5ce=_0x518961['type']+':'+_0x518961['subType'];this['_setSuggestionData']({'id':_0x427fe4,'type':_0x76a5ce,'createdAt':new Date(),'authorId':_0x20c09b,'data':_0x518961['data'],'attributes':_0x518961['attributes']});const _0x253a87=this['_model']['createPositionAt'](_0x55eb0a['end']['parent'],'after'),_0x17a7ff=this['_model']['createRange'](_0x253a87,_0x2c0de6['end']);this['_addSuggestionMarker'](_0x76a5ce,_0x427fe4,_0x20c09b,_0x17a7ff);}else{if(_0x2c0de6['containsPosition'](_0x55eb0a['start'])){const _0x1681f5=this['_model']['createPositionAt'](_0x55eb0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2c0de6['start'],_0x1681f5));}else{const _0x2fd27c=this['_model']['createPositionAt'](_0x55eb0a['end']['parent'],'after');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2fd27c,_0x2c0de6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c637c){for(const {suggestion:_0x245530,meta:_0x36a0a5}of this['_findSuggestions'](_0x5c637c,'insertion')){if(!_0x36a0a5['isOwn'])continue;const _0x938420=_0x245530['getRanges']();for(const _0x1457cd of _0x938420)if(!_0x5c637c['getDifference'](_0x1457cd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x24949d){const _0x4b1683=this['editor']['plugins']['get']('Users')['getUser'](_0x24949d);if(!_0x4b1683)throw new _0x1e75e0('track-changes-user-not-found',this);return _0x4b1683;}['_getExternalAuthor'](_0x283908){const _0x2e7d87=this['editor']['plugins']['get']('Users'),_0x99fd3a=_0x2287f9('external:'+_0x283908),_0x594623=_0x2e7d87['getUser'](_0x99fd3a);return _0x594623||_0x2e7d87['addUser']({'id':_0x99fd3a,'name':_0x283908});}['_createSuggestion'](_0x43ee89,_0x57dcc1,_0x16875d,_0x23c52e,_0x5ed841){const _0x2d2c3b=this['_getAuthorFromId'](_0x23c52e),_0x1c1bb1=this['_suggestionFactory']['buildSuggestion'](_0x43ee89,_0x57dcc1,_0x16875d,_0x2d2c3b,_0x5ed841,_0x390b6a=>{this['_updateSuggestionData'](_0x16875d,{'attributes':_0x390b6a});const _0x50e528=this['getSuggestion'](_0x16875d);this['_joinWithAdjacentSuggestions'](new Set([_0x50e528])),this['_refreshSuggestionsChain'](new Set([_0x50e528]));});return this['listenTo'](_0x1c1bb1,'accept',()=>{this['_updateSuggestionData'](_0x16875d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c1bb1,'discard',()=>{this['_updateSuggestionData'](_0x16875d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16875d,_0x1c1bb1),this['_suggestionState']['set'](_0x1c1bb1,'notReady'),_0x1c1bb1;}['_splitMarkerName'](_0xd941d6){const _0x4184fb=_0xd941d6['split'](':');return{'group':_0x4184fb[0x0],'type':_0x4184fb[0x1],'subType':_0x4184fb['length']>=0x5?_0x4184fb[0x2]:null,'id':_0x4184fb['length']<0x5?_0x4184fb[0x2]:_0x4184fb[0x3],'authorId':_0x4184fb['length']<0x5?_0x4184fb[0x3]:_0x4184fb[0x4],'markerCount':0x6==_0x4184fb['length']?_0x4184fb[0x5]:null};}['_breakSuggestionMarker'](_0x42f835,_0xdc0867,_0x2c9876){const _0x52b127=_0x42f835['getFirstRange'](),_0x3255be=_0x52b127['start'],_0x52a82e=_0x52b127['end'];this['_setSuggestionRange'](_0x42f835,this['_model']['createRange'](_0x3255be,_0xdc0867));const _0x2fed32=_0x36eeaa(),_0x5d0b75=_0x42f835['creator']['id'],_0x17cf3e=_0x42f835['type']+(_0x42f835['subType']?':'+_0x42f835['subType']:'');this['_setSuggestionData']({'id':_0x2fed32,'type':_0x17cf3e,'createdAt':new Date(),'authorId':_0x5d0b75,'originalSuggestionId':_0x42f835['id'],'attributes':_0x42f835['attributes'],'data':_0x42f835['data']});const _0x4917a2=this['_getAttributeKey'](_0x42f835);('formatBlock'==_0x42f835['type']||_0x4917a2&&this['_isBlockAttribute'](_0x4917a2))&&(_0x2c9876=this['_model']['createPositionBefore'](_0x2c9876['parent'])),this['_addSuggestionMarker'](_0x17cf3e,_0x2fed32,_0x5d0b75,this['_model']['createRange'](_0x2c9876,_0x52a82e));}['_findSuggestions'](_0x867e15,_0x3d71e7=null){const _0x2b1586=[],_0x3955d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x867e15)||(_0x867e15=[_0x867e15]);for(const _0x2934cf of this['getSuggestions']()){if(!_0x2934cf['isInContent'])continue;if(_0x3d71e7&&_0x2934cf['type']!=_0x3d71e7)continue;let _0xa8d5ac=!0x1;for(const _0x351c5d of _0x2934cf['getRanges']()){for(const _0x41e74d of _0x867e15){const _0x4eabfd=_0x41e74d['start']['isEqual'](_0x351c5d['end'])||_0x41e74d['end']['isEqual'](_0x351c5d['start']);if(_0x4eabfd||_0x41e74d['getIntersection'](_0x351c5d)){const _0x3aceef=_0x41e74d['containsRange'](_0x351c5d)&&Ot(this['_model']['schema'],_0x351c5d['start'],_0x41e74d),_0x2e9809=_0x351c5d['containsRange'](_0x41e74d)&&Ot(this['_model']['schema'],_0x41e74d['start'],_0x351c5d);_0x2b1586['push']({'suggestion':_0x2934cf,'meta':{'isOwn':_0x3955d4==_0x2934cf['author'],'isNextTo':_0x4eabfd,'isInsideObject':_0x3aceef,'containsRangeInObject':_0x2e9809}}),_0xa8d5ac=!0x0;break;}}if(_0xa8d5ac)break;}}return _0x2b1586;}['_addSuggestionMarker'](_0x146aa5,_0x3c3dac,_0x3fa01e,_0x552b04,_0x3cbd11){this['_model']['change'](_0x97987e=>{let _0x54e9f9='suggestion:'+_0x146aa5+':'+_0x3c3dac+':'+_0x3fa01e;_0x3cbd11&&(_0x54e9f9=_0x54e9f9+':'+_0x3cbd11),_0x97987e['addMarker'](_0x54e9f9,{'range':_0x552b04,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x461ad0){const _0x35b7b3=_0x461ad0['previous'],_0x516625=_0x461ad0['next'];_0x461ad0['previous']=null,_0x461ad0['next']=null,null!=_0x35b7b3&&_0x35b7b3['next']==_0x461ad0&&(_0x35b7b3['next']=_0x516625),null!=_0x516625&&_0x516625['previous']==_0x461ad0&&(_0x516625['previous']=_0x35b7b3),'ready'==this['_suggestionState']['get'](_0x461ad0)&&(this['_suggestionState']['set'](_0x461ad0,'removed'),this['fire']('suggestionUnloaded',_0x461ad0,_0x35b7b3,_0x516625));}['_setSuggestionData'](_0x9ec1cb){const _0x170a02=_0x9ec1cb['id'],_0x5a2dc3=this['addSuggestionData'](_0x9ec1cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1124fb=this['editor']['plugins']['get']('PendingActions'),_0x1793eb=_0x5a2dc3['hasComments'],_0x4ea0cf=_0x5a2dc3['subType']?_0x5a2dc3['type']+':'+_0x5a2dc3['subType']:_0x5a2dc3['type'],_0xc6633b=this['editor']['locale'],_0x5cfc48=_0x1124fb['add'](o(_0xc6633b,'PENDING_ACTION_SUGGESTION')),_0x31a402={'id':_0x170a02,'type':_0x4ea0cf,'hasComments':_0x1793eb,'data':_0x9ec1cb['data']||null,'originalSuggestionId':_0x9ec1cb['originalSuggestionId']||null,'attributes':_0x5a2dc3['attributes']};this['_adapter']['addSuggestion'](_0x31a402)['then'](_0x313833=>{_0x5a2dc3['_saved']=!0x0,_0x1124fb['remove'](_0x5cfc48),_0x313833&&_0x313833['createdAt']&&(this['_suggestions']['get'](_0x170a02)['createdAt']=_0x313833['createdAt']);})['catch'](_0x31933b=>{throw _0x249a14('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a2dc3['discard']();}),_0x5a2dc3['stopListening'](),this['_suggestions']['delete'](_0x5a2dc3['id']),this['_suggestionState']['delete'](_0x5a2dc3),_0x31933b;});}return _0x5a2dc3;}['_isBlockAttribute'](_0x4827bf){return this['_blockAttributeKeys']['has'](_0x4827bf);}['_updateSuggestionData'](_0x344bdb,_0x533848){const _0x80d66=this['editor']['plugins']['get']('PendingActions'),_0x29801b=this['getSuggestion'](_0x344bdb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x29801b['_saved']){const _0x2122c3=_0x80d66['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x344bdb,_0x533848)['then'](()=>{_0x80d66['remove'](_0x2122c3);});}else _0x29801b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x344bdb,_0x533848);});}}['_getSuggestionData'](_0x5dc4bd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1e75e0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5dc4bd);}['_handleNewSuggestionMarker'](_0x2e8d32){const {id:_0x22b1c4,type:_0x19f503,subType:_0x503251,authorId:_0xb4a99f}=this['_splitMarkerName'](_0x2e8d32),_0x4c009e=this['_suggestions']['get'](_0x22b1c4)||this['_createSuggestion'](_0x19f503,_0x503251,_0x22b1c4,_0xb4a99f,{});switch(this['_checkSuggestionCorrectness'](_0x4c009e,_0x19f503,_0x503251,_0xb4a99f),this['_suggestionState']['get'](_0x4c009e)){case'notReady':this['_getSuggestionData'](_0x22b1c4)['then'](_0xcae5cc=>{let _0x16e544=Promise['resolve']();_0xcae5cc['hasComments']&&(_0x16e544=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x22b1c4})),_0x16e544['then'](()=>{this['addSuggestionData'](_0xcae5cc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4c009e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x22b1c4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4c009e,'ready'),this['fire']('suggestionLoaded',_0x4c009e);break;case'ready':this['fire']('suggestionChanged',_0x4c009e);}return _0x4c009e['addMarkerName'](_0x2e8d32),_0x4c009e;}['_refreshSuggestionsChain'](_0x418db9){const _0x17698b=Array['from'](_0x418db9),_0x5cabda=_0x17698b['filter'](_0x13b63e=>'attribute'==_0x13b63e['type']);this['_refreshAttributeSuggestionsChain'](_0x5cabda);const _0x480b84=_0x17698b['filter'](_0x153965=>!_0x153965['isMultiRange']&&'attribute'!=_0x153965['type']),_0x1c654d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fe221=>!_0x4fe221['isMultiRange']&&'attribute'!=_0x4fe221['type']),_0x243b27=_0x1c654d['filter'](_0xc05f6=>!_0x418db9['has'](_0xc05f6)),_0x1d6e8e=new Map(_0x1c654d['map'](_0x3418f0=>[_0x3418f0,this['_suggestionFactory']['getSuggestionCallback'](_0x3418f0['type'],_0x3418f0['subType'],'chain')])),_0x2686d1=new Map(_0x1c654d['map'](_0x233c87=>[_0x233c87,_0x233c87['getFirstRange']()])),_0x574a73=new Set(),_0x4037f2=new Set();for(let _0x4d838e=0x0;_0x4d838e<_0x480b84['length'];_0x4d838e++)_0x345ec6(_0x480b84[_0x4d838e],_0x480b84,_0x4d838e+0x1);for(let _0x48ac09=0x0;_0x48ac09<_0x480b84['length'];_0x48ac09++)_0x345ec6(_0x480b84[_0x48ac09],_0x243b27,0x0);const _0x3b6589=new Set();for(let _0x1723f9=0x0;_0x1723f9<_0x480b84['length'];_0x1723f9++){const _0xb66969=_0x480b84[_0x1723f9];!_0x4037f2['has'](_0xb66969)&&_0xb66969['previous']&&(_0x3b6589['add'](_0xb66969['previous']),_0xb66969['previous']['next']===_0xb66969&&(_0xb66969['previous']['next']=null),_0xb66969['previous']=null),!_0x574a73['has'](_0xb66969)&&_0xb66969['next']&&(_0x3b6589['add'](_0xb66969['next']),_0xb66969['next']['previous']===_0xb66969&&(_0xb66969['next']['previous']=null),_0xb66969['next']=null);}function _0x345ec6(_0x2ae5d4,_0x94b9fc,_0x53bf3c){for(let _0x29c7b6=_0x53bf3c;_0x29c7b6<_0x94b9fc['length'];_0x29c7b6++){const _0x1b3922=_0x414e32(_0x2ae5d4,_0x94b9fc[_0x29c7b6]);_0x1b3922&&(_0x1b3922[0x0]['next']=_0x1b3922[0x1],_0x1b3922[0x1]['previous']=_0x1b3922[0x0],_0x574a73['add'](_0x1b3922[0x0]),_0x4037f2['add'](_0x1b3922[0x1]));}}function _0x414e32(_0x4943b8,_0x34ebe0){if(_0x4943b8['author']['id']!==_0x34ebe0['author']['id'])return null;const _0x4de010=_0x1d6e8e['get'](_0x4943b8)(_0x4943b8,_0x34ebe0,_0x2686d1['get'](_0x4943b8),_0x2686d1['get'](_0x34ebe0));if(!_0x4de010)return null;return _0x1d6e8e['get'](_0x34ebe0)(_0x4943b8,_0x34ebe0,_0x2686d1['get'](_0x4943b8),_0x2686d1['get'](_0x34ebe0))?_0x4de010[0x1]['commentThread']&&_0x4de010[0x1]['commentThread']['length']?null:_0x4de010:null;}_0x3b6589['size']&&this['_refreshSuggestionsChain'](_0x3b6589);}['_refreshAttributeSuggestionsChain'](_0xe42d45){if(0x0==_0xe42d45['length'])return;const _0x3c8433=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f0730=>'attribute'==_0x2f0730['type']&&_0x2f0730['_isDataLoaded']),_0x470d13=[],_0x225e92=new Map();for(const _0x4dad5b of _0x3c8433){const _0x10a17d=_0x2287f9(_0x4dad5b['attributes']);_0x225e92['has'](_0x10a17d)||(_0x225e92['set'](_0x10a17d,_0x470d13['length']),_0x470d13['push']([]));const _0x4ddddd=_0x225e92['get'](_0x10a17d);_0x470d13[_0x4ddddd]['push'](_0x4dad5b);}!(function(){_0x470d13['sort']((_0x114cfa,_0x2ce0bd)=>{const _0x232ce4=_0x114cfa[0x0]['createdAt'],_0x2fa40d=_0x2ce0bd[0x0]['createdAt'];return _0x232ce4==_0x2fa40d?_0x114cfa[0x0]['attributes']['groupId']<_0x2ce0bd[0x0]['attributes']['groupId']?-0x1:0x1:_0x232ce4<_0x2fa40d?-0x1:0x1;});for(const _0x5f3bb1 of _0x470d13)_0x5f3bb1['sort']((_0xd438f1,_0xdd5741)=>_0xd438f1['id']<_0xdd5741['id']?-0x1:0x1);}());for(let _0x2417ed=0x0;_0x2417ed<_0x470d13['length'];_0x2417ed++){if(0x0==_0x470d13[_0x2417ed]['length'])continue;const _0x5ba4fd=[];for(let _0x2f8808=_0x2417ed+0x1;_0x2f8808<_0x470d13['length'];_0x2f8808++)0x0!=_0x470d13[_0x2f8808]['length']&&_0x3b13c3(_0x470d13[_0x2417ed],_0x470d13[_0x2f8808])&&_0x5ba4fd['push'](_0x2f8808);for(const _0xfa1210 of _0x5ba4fd)_0x470d13[_0x2417ed]=_0x470d13[_0x2417ed]['concat'](_0x470d13[_0xfa1210]),_0x470d13[_0xfa1210]=[];}for(const _0x3670ad of _0x470d13)for(let _0x3a359a=0x0;_0x3a359a<_0x3670ad['length'];_0x3a359a++){const _0x442a8a=_0x3670ad[_0x3a359a+0x1]||null;_0x3670ad[_0x3a359a]['next']!==_0x442a8a&&(_0x3670ad[_0x3a359a]['next']=_0x442a8a);}for(const _0x5a9b79 of _0x470d13)for(let _0x31d591=0x0;_0x31d591<_0x5a9b79['length'];_0x31d591++){const _0x46b952=_0x5a9b79[_0x31d591-0x1]||null;_0x5a9b79[_0x31d591]['previous']!==_0x46b952&&(_0x5a9b79[_0x31d591]['previous']=_0x46b952);}function _0x3b13c3(_0x56e7e0,_0x2166f1){if(_0x56e7e0[0x0]['attributes']['groupId']!==_0x2166f1[0x0]['attributes']['groupId']&&_0x56e7e0[0x0]['author']!==_0x2166f1[0x0]['author'])return!0x1;if(!function(_0x3a5899,_0x4f0a36){if(!_0x3a5899['hasComments']&&!_0x4f0a36['hasComments'])return!0x0;if(_0x3a5899['hasComments']&&_0x4f0a36['hasComments'])return!0x1;if(_0x3a5899['hasComments']&&_0x4f0a36['createdAt']<_0x3a5899['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4f0a36['hasComments']&&_0x3a5899['createdAt']<_0x4f0a36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56e7e0[0x0],_0x2166f1[0x0]))return!0x1;const _0x2e1fa8=Tt(_0x56e7e0[0x0]['attributes'],'groupId'),_0x3d0420=Tt(_0x2166f1[0x0]['attributes'],'groupId');if(!_0x2d7d66(_0x2e1fa8,_0x3d0420))return!0x1;return!!_0x56e7e0['every'](_0x30e5e7=>_0x2166f1['some'](_0x2799a9=>_0x30e5e7['getFirstRange']()['isEqual'](_0x2799a9['getFirstRange']())))&&_0x2166f1['every'](_0x23b0cb=>_0x56e7e0['some'](_0xedc5d3=>_0x23b0cb['getFirstRange']()['isEqual'](_0xedc5d3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x524bfa){const _0x46fece=Array['from'](_0x524bfa),_0x23a0bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x58a23b=_0x23a0bc['filter'](_0x12a401=>!_0x524bfa['has'](_0x12a401)),_0x2ffb8c=new Map(_0x46fece['map'](_0x107e40=>[_0x107e40,this['_suggestionFactory']['getSuggestionCallback'](_0x107e40['type'],_0x107e40['subType'],'join')])),_0x28bbb8=new Map(_0x23a0bc['map'](_0x813897=>[_0x813897,_0x813897['getRanges']()]));for(let _0x303581=0x0;_0x303581<_0x46fece['length'];_0x303581++){if(_0x319df0(this,_0x46fece[_0x303581],_0x46fece,_0x303581+0x1))return!0x0;}for(let _0x29025c=0x0;_0x29025c<_0x46fece['length'];_0x29025c++){if(_0x319df0(this,_0x46fece[_0x29025c],_0x58a23b,0x0))return!0x0;}return!0x1;function _0x319df0(_0x20a65d,_0x40c1bc,_0x499aea,_0x26aba9){for(let _0x44730f=_0x26aba9;_0x44730f<_0x499aea['length'];_0x44730f++){const _0x1de424=_0x499aea[_0x44730f];if(_0x1de424['type']!==_0x40c1bc['type']||_0x1de424['author']['id']!==_0x40c1bc['author']['id']||_0x1de424['subType']!==_0x40c1bc['subType'])continue;if(!Jt(_0x40c1bc,_0x1de424))continue;if('attribute'==_0x40c1bc['type']&&_0x40c1bc['data']['oldValue']!=_0x1de424['data']['oldValue'])continue;if('attribute'==_0x40c1bc['type']&&_0x20a65d['_isBlockAttribute'](_0x40c1bc['data']['key']))continue;if('formatBlock'==_0x40c1bc['type']){const _0x164d86=_0x20a65d['editor']['model'],_0x23a722=_0x40c1bc['getContainedElement']();if(_0x23a722&&(_0x164d86['schema']['isObject'](_0x23a722)||_0x164d86['schema']['isLimit'](_0x23a722)))continue;}const _0x561971=_0x2ffb8c['get'](_0x40c1bc),_0x753cb7=_0x28bbb8['get'](_0x40c1bc),_0x373942=_0x28bbb8['get'](_0x1de424),_0x3972df=_0x40c1bc['commentThread']&&_0x40c1bc['commentThread']['length'],_0x541473=_0x1de424['commentThread']&&_0x1de424['commentThread']['length'];if(!_0x3972df&&_0x561971(_0x373942,_0x753cb7))return _0x20a65d['_joinSuggestions'](_0x1de424,_0x40c1bc),_0x28bbb8['delete'](_0x40c1bc),!0x0;if(!_0x541473&&_0x561971(_0x753cb7,_0x373942))return _0x20a65d['_joinSuggestions'](_0x40c1bc,_0x1de424),_0x28bbb8['delete'](_0x1de424),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2b93e4,_0x7eae17){if(_0x2b93e4['isMultiRange']){for(const _0x283346 of _0x7eae17['getRanges']())_0x2b93e4['addRange'](_0x283346);}else{const _0x543650=_0x7eae17['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b93e4,this['_model']['createRange'](_0x2b93e4['getFirstRange']()['start'],_0x543650));}_0x7eae17['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe17f34,_0x596a25,_0x481eac){const _0x4f5925=_0xe17f34['startsWith']('format')||_0xe17f34['startsWith']('attribute')?'FORMATTING':_0xe17f34['toUpperCase']();return o(this['editor']['locale'],_0x596a25+'_'+_0x4f5925+'_SUGGESTION_ANNOUNCEMENT',_0x481eac);}['_initAriaMarkerChangeAnnouncements'](){const _0x3c41d5=this['editor'];if(!_0x3c41d5['ui'])return;const {ariaLiveAnnouncer:_0x437476}=_0x3c41d5['ui'];_0x32db40(this['_model'],({left:_0xd3f5d,entered:_0x398436})=>{for(const _0x16cdfa of _0xd3f5d){const {group:_0x133bc6,type:_0x14aedb}=this['_splitMarkerName'](_0x16cdfa['name']);if('suggestion'===_0x133bc6){_0x437476['announce'](this['_getMarkerAnnouncementText'](_0x14aedb,'LEAVE'));break;}}for(const _0x377c1e of _0x398436){const {group:_0x374f61,type:_0x218a1e}=this['_splitMarkerName'](_0x377c1e['name']);if('suggestion'===_0x374f61){_0x437476['announce'](this['_getMarkerAnnouncementText'](_0x218a1e,'ENTER',_0xb9abf9(_0x4438d0)));break;}}});}['_processAttributeChanges'](_0x268335){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4e2c07=this['editor'],_0xcfd983=_0x4e2c07['model']['document']['differ']['getChanges']();if(0x0==_0xcfd983['length'])return!0x1;const _0x324991=[],_0x1344c5=_0xcfd983['filter'](_0x3c3c04=>'attribute'==_0x3c3c04['type']),_0x15a388=_0xcfd983['filter'](_0x175912=>'insert'==_0x175912['type']&&'$text'!=_0x175912['name']),_0x5c40db=_0xcfd983['filter'](_0x5b2dec=>'remove'==_0x5b2dec['type']&&'$text'!=_0x5b2dec['name']);for(const _0x417ce4 of _0x1344c5)_0x324991['push']({'key':_0x417ce4['attributeKey'],'newValue':_0x417ce4['attributeNewValue'],'oldValue':_0x417ce4['attributeOldValue'],'range':Pt(_0x417ce4['range'],_0x4e2c07['model'])});for(const _0x249513 of _0x15a388){const _0x516707=_0x5c40db['find'](_0x1d67cf=>_0x1d67cf['position']['isEqual'](_0x249513['position']));_0x516707&&_0x324991['push']({'key':m,'newValue':_0x249513['name'],'oldValue':_0x516707['name'],'range':_0x4e2c07['model']['createRangeOn'](_0x249513['position']['nodeAfter'])});}return 0x0!=_0x324991['length']&&this['_reduceExistingSuggestions'](_0x268335,_0x324991);}['_processAttributeSuggestions'](_0x2dbf43){let _0x1b7b91=!0x1;const _0x18a697=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x297ff1=>_0x297ff1['data']['newRange']&&_0x297ff1['name']['startsWith']('suggestion:attribute:'));for(const _0x253bdc of _0x18a697){const {subType:_0x4e5535,id:_0x22ae1f}=this['_splitMarkerName'](_0x253bdc['name']),_0x4a2982=_0x4e5535['split']('|')[0x0];for(const _0x150aaf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x150aaf['id']!=_0x22ae1f&&'attribute'==_0x150aaf['type']&&_0x150aaf['data']&&_0x150aaf['data']['key']==_0x4a2982&&_0x150aaf['getFirstRange']()['isIntersecting'](_0x253bdc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x150aaf,_0x253bdc['data']['newRange'],_0x2dbf43),_0x1b7b91=!0x0);}return _0x1b7b91;}['_recordAttributeChanges'](_0x505d4f){this['_recordAttributeSuggestions']=!0x0,_0x505d4f();}['_isRegisteredAttribute'](_0x3880ca){const _0x2a6278=this['_isBlockAttribute'](_0x3880ca),_0x3b5d3a=this['_inlineAttributeKeys']['has'](_0x3880ca);return _0x2a6278||_0x3b5d3a;}['_reduceExistingSuggestions'](_0x479752,_0xed0a96){if(0x0==_0xed0a96['length'])return!0x1;let _0x1b9c45=!0x1;for(const _0x1dfdd9 of _0xed0a96){const _0x551092=this['_findSuggestions'](_0x1dfdd9['range'],'attribute')['filter'](_0x4a5729=>!_0x4a5729['meta']['isNextTo'])['map'](_0x75056=>_0x75056['suggestion']),_0x4d91df=_0x2287f9({'newValue':_0x1dfdd9['newValue']});_0x551092['filter'](_0x150af8=>{const [_0x57f488,_0x200279]=_0x150af8['subType']['split']('|');return _0x57f488==_0x1dfdd9['key']&&_0x200279!=_0x4d91df;})['forEach'](_0x3beb2f=>{this['_reduceSuggestionAttributeRange'](_0x3beb2f,_0x1dfdd9['range'],_0x479752),_0x1b9c45=!0x0;});}return _0x1b9c45;}['_reduceSuggestionAttributeRange'](_0x5c8a28,_0x5bd07e,_0x360a09){const _0x5e9bac=_0x5c8a28['getFirstRange']()['getDifference'](_0x5bd07e);0x0!==_0x5e9bac['length']?0x1!==_0x5e9bac['length']?this['_breakSuggestionMarker'](_0x5c8a28,_0x5bd07e['start'],_0x5bd07e['end']):this['_setSuggestionRange'](_0x5c8a28,_0x5e9bac[0x0]):_0x360a09['removeMarker'](_0x5c8a28['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xae4f41){this['_editor']=_0xae4f41,this['_model']=_0xae4f41['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1861c1,_0x2d6300,_0x474971,_0x5bc630,_0xb8f6c0,_0x2f20d2){return new u(this['_model'],{'type':_0x1861c1,'subType':_0x2d6300,'id':_0x474971,'author':_0x5bc630,'creator':_0x5bc630,'attributes':_0xb8f6c0,'onAttributesChange':_0x2f20d2,'onAccept':(..._0x488766)=>this['getSuggestionCallback'](_0x1861c1,_0x2d6300,'accept')(..._0x488766),'onDiscard':(..._0x5cefbd)=>this['getSuggestionCallback'](_0x1861c1,_0x2d6300,'discard')(..._0x5cefbd)});}['registerCustomCallback'](_0x5646ad,_0x2c7aa9,_0x414a10,_0x23251d){const _0x27d578=_0x5646ad+':'+_0x2c7aa9+':'+_0x414a10;this['_customCallbacks']['set'](_0x27d578,_0x23251d);}['getSuggestionCallback'](_0x41e46c,_0x5790f8,_0x2ec808){const _0x4fa87c=_0x41e46c+':'+_0x5790f8+':'+_0x2ec808;return this['_customCallbacks']['get'](_0x4fa87c)||this['_defaultCallbacks']['get'](_0x41e46c+':'+_0x2ec808);}['_registerDefaultCallbacks'](){const _0x45c710=()=>!0x1,_0x2da135=_0x271ca8=>{_0x271ca8['sort']((_0x17d19d,_0x2f7936)=>_0x17d19d['start']['isBefore'](_0x2f7936['start'])?0x1:-0x1),this['_model']['change'](_0x250189=>{for(const _0x516c49 of _0x271ca8){let _0x562ac5;_0x562ac5=_0x516c49['end']['isAtEnd']&&_0x516c49['end']['parent']==_0x516c49['start']['nodeAfter']?_0x250189['createSelection'](_0x516c49['start']['nodeAfter'],'on'):_0x250189['createSelection'](_0x516c49),this['_model']['deleteContent'](_0x562ac5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4b552f=(_0x194d5c,_0x1c8668)=>{_0x1c8668&&this['_model']['change'](_0x47e852=>{const {commandName:_0x424c24,commandParams:_0x1203f5=[]}=_0x1c8668,_0x271aeb=_0x194d5c['map'](_0x15fe57=>(Vt(_0x15fe57)&&(_0x15fe57=this['_model']['createRange'](_0x15fe57['end'])),_0x15fe57))['filter'](_0x839f13=>'$graveyard'!==_0x839f13['root']['rootName']);if(_0x271aeb['length']<0x1)return;const _0x240a77=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1af607=>_0x5ed280['fromRange'](_0x1af607));_0x47e852['setSelection'](_0x271aeb);for(const _0x479c42 of this['_editor']['commands']['commands']())_0x479c42['refresh']();_0x1203f5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x424c24,..._0x1203f5);const _0x490421=_0x240a77['filter'](_0x3e5d93=>'$graveyard'!=_0x3e5d93['root']['rootName']);_0x490421['length']>0x0&&_0x47e852['setSelection'](_0x490421);for(const _0x56eef1 of _0x240a77)_0x56eef1['detach']();});},_0x2e273f=(_0x343946,_0x468d55)=>0x1==_0x343946['length']&&0x1==_0x468d55['length']&&_0x343946[0x0]['end']['isEqual'](_0x468d55[0x0]['start']),_0x3a2ca9=(_0xc968dc,_0x4b5565,_0x2b0144,_0x2e8b38)=>Ht(_0xc968dc,_0x4b5565,_0x2b0144,_0x2e8b38,this['_model'])?[_0xc968dc,_0x4b5565]:Ht(_0x4b5565,_0xc968dc,_0x2e8b38,_0x2b0144,this['_model'])?[_0x4b5565,_0xc968dc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45c710),this['_defaultCallbacks']['set']('insertion:discard',_0x2da135),this['_defaultCallbacks']['set']('insertion:join',_0x2e273f),this['_defaultCallbacks']['set']('insertion:chain',_0x3a2ca9),this['_defaultCallbacks']['set']('deletion:accept',_0x2da135),this['_defaultCallbacks']['set']('deletion:discard',_0x45c710),this['_defaultCallbacks']['set']('deletion:join',_0x2e273f),this['_defaultCallbacks']['set']('deletion:chain',_0x3a2ca9),this['_defaultCallbacks']['set']('formatInline:accept',_0x4b552f),this['_defaultCallbacks']['set']('formatInline:discard',_0x45c710),this['_defaultCallbacks']['set']('formatInline:join',_0x2e273f),this['_defaultCallbacks']['set']('formatInline:chain',_0x45c710),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4b552f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45c710),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e273f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45c710),this['_defaultCallbacks']['set']('attribute:accept',_0x45c710),this['_defaultCallbacks']['set']('attribute:discard',(_0xb0c938,_0x44e002)=>{if(!_0x44e002)return;const _0x4ec050=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51ec7d=>{if(_0x44e002['key']==m)for(const _0x17afd7 of _0xb0c938){const _0xcf2474=_0x17afd7['start']['nodeAfter'],_0x4020d2=_0x44e002['oldValue'];_0x51ec7d['rename'](_0xcf2474,_0x4020d2);}else{if(_0x4ec050['_isBlockAttribute'](_0x44e002['key'])){for(const _0x57f6b5 of _0xb0c938)void 0x0!==_0x44e002['oldValue']?_0x51ec7d['setAttribute'](_0x44e002['key'],_0x44e002['oldValue'],_0x57f6b5['start']['nodeAfter']):_0x51ec7d['removeAttribute'](_0x44e002['key'],_0x57f6b5['start']['nodeAfter']);}else{for(const _0x1f91fb of _0xb0c938)_0x44e002['oldValue']?_0x51ec7d['setAttribute'](_0x44e002['key'],_0x44e002['oldValue'],_0x1f91fb):_0x51ec7d['removeAttribute'](_0x44e002['key'],_0x1f91fb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e273f);}}function Ot(_0x66f178,_0xa0688c,_0x50d335){for(const _0x55e7db of _0xa0688c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x55e7db['root']==_0x55e7db)return!0x1;if(!_0x50d335['containsItem'](_0x55e7db))return!0x1;if(_0x66f178['isObject'](_0x55e7db)||_0x66f178['isLimit'](_0x55e7db))return!0x0;}return!0x1;}function Vt(_0x5f4054){return _0x5f4054['end']['parent']==_0x5f4054['start']['nodeAfter']&&_0x5f4054['end']['isAtStart'];}function Ut(_0x2c9573,_0x5b7b34,_0x1261dc,_0x4ed797){const _0x231140=_0x2673f7=>!_0x2673f7['item']['is']('$textProxy')&&!_0x4ed797['isObject'](_0x2673f7['item']),_0xb291=_0x2c9573['start']['getLastMatchingPosition'](_0x231140),_0x2b6802=_0x2c9573['end']['getLastMatchingPosition'](_0x231140,{'direction':'backward'});return(!_0x2c9573['start']['isEqual'](_0xb291)||!_0x2c9573['end']['isEqual'](_0x2b6802))&&(_0xb291['isBefore'](_0x2b6802)?_0x1261dc['updateMarker'](_0x5b7b34,{'range':_0x1261dc['createRange'](_0xb291,_0x2b6802)}):_0x1261dc['removeMarker'](_0x5b7b34),!0x0);}function Gt(_0x53d5b3){return _0x2287f9(_0x53d5b3);}function Ft(_0x553480){const _0x2e4840=_0x553480['start']['nodeAfter'];return _0x2e4840&&_0x2e4840['is']('element');}function Pt(_0x42c423,_0x11923b){return null==_0x42c423['end']['nodeBefore']&&_0x42c423['end']['parent']==_0x42c423['start']['nodeAfter']?Lt(_0x42c423['start']['nodeAfter'],_0x11923b):_0x42c423;}function Lt(_0x4040bb,_0xc31e2b){const _0x4868f9=_0xc31e2b['schema']['isObject'](_0x4040bb)||_0xc31e2b['schema']['isSelectable'](_0x4040bb);return _0xc31e2b['createRange'](_0xc31e2b['createPositionAt'](_0x4040bb,'before'),_0x4868f9?_0xc31e2b['createPositionAfter'](_0x4040bb):_0xc31e2b['createPositionAt'](_0x4040bb,'end'));}function Ht(_0x52ee56,_0x8ab25e,_0x4b1922,_0x4c41af,_0x4a2968){if(_0x52ee56['next'])return!0x1;if(!Jt(_0x52ee56,_0x8ab25e))return!0x1;if(_0x4b1922['end']['isEqual'](_0x4c41af['start']))return!0x0;if(_0x52ee56['type']!=_0x8ab25e['type'])return!0x1;if(!_0x4b1922['end']['isTouching'](_0x4c41af['start']))return!0x1;const _0x4cb352=_0x4a2968['createRange'](_0x4b1922['end'],_0x4c41af['start'])['getWalker']();for(const _0x4af2ee of _0x4cb352)if(['elementStart','elementEnd']['includes'](_0x4af2ee['type'])&&_0x4a2968['schema']['isLimit'](_0x4af2ee['item']))return!0x1;return!0x0;}function Jt(_0x12195c,_0x64f0c1){if(!_0x12195c['_isDataLoaded']||!_0x64f0c1['_isDataLoaded'])return!0x1;const _0x4fa682=new Set(Object['keys'](_0x12195c['attributes'])),_0x22d5b7=new Set(Object['keys'](_0x64f0c1['attributes']));if(_0x4fa682['delete']('groupId'),_0x22d5b7['delete']('groupId'),0x0==_0x4fa682['size']&&0x0==_0x22d5b7['size'])return!0x0;if(_0x4fa682['size']!=_0x22d5b7['size'])return!0x1;const _0x1f4640={..._0x12195c['attributes']},_0x2676dc={..._0x64f0c1['attributes']};return delete _0x1f4640['groupId'],delete _0x2676dc['groupId'],JSON['stringify'](_0x1f4640)==JSON['stringify'](_0x2676dc);}function qt(_0x3572f6,_0x22f3e4){const _0x140a10=zt(_0x3572f6['attributes']),_0x56b422=zt(_0x22f3e4);if(!_0x3572f6['_isDataLoaded'])return!0x1;for(const _0x1a317f of Object['keys'](_0x56b422))if(!_0x2d7d66(_0x140a10[_0x1a317f],_0x56b422[_0x1a317f]))return!0x1;return!0x0;}function zt(_0x3fec80){const _0x13d7fa=Object['assign']({},_0x3fec80);return delete _0x13d7fa['skipNestingCheck'],delete _0x13d7fa['tablePasteChainId'],_0x13d7fa;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2bfc2e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3fa4e0,_0x3ab196,_0x3b8472,_0x19b32b){super(),this['model']=_0x3ab196,this['view']=_0x3b8472,this['commentThreadController']=_0x19b32b,this['_editor']=_0x3fa4e0,this['_acceptCommand']=_0x3fa4e0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3fa4e0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40043b,_0x2d8972)=>_0x40043b||_0x2d8972),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a32fd=>_0x2a32fd&&this['_editor']['model']['canEditAt'](_0x3ab196['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42d05e=>_0x42d05e&&this['_editor']['model']['canEditAt'](_0x3ab196['getRanges']())),this['_pendingAction']=null,_0x3b8472['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3b8472,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3b8472,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3b8472,'change:isDirty',()=>{_0x3b8472['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 _0x411747=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x411747);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x141ea4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x12932d,_0x42d5bf,_0x4c6de8,_0xae8b86){super(_0x12932d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x407379(_0x12932d,o(_0x12932d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x42d5bf['authoredAt']),this['bind']('authoredAt')['to'](_0x42d5bf),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x42d5bf,'authoredAt',this,'descriptionParts',(_0x17b3d0,_0x10a3ed,_0x458c98)=>{const _0x2249ec=_0x458c98['map'](_0x5f49e0=>ls(_0x5f49e0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x17b3d0-0x1,_0x42d5bf['author']['name'],_0x10a3ed?_0xae8b86['formatDateTime'](_0x10a3ed):'',new DOMParser()['parseFromString'](_0x2249ec,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3031f9(),this['focusTracker']=new _0x1a6770(),this['keystrokes']=new _0xec262a(),this['focusCycler']=new _0xeffe40({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x173105=>_0x173105['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x42d5bf,this['_localUser']=_0x4c6de8,this['_config']=_0xae8b86,_0xae8b86['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xee32ad(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x486630}=this['_config'];this['commentsListView']=new _0x486630(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',_0x38f72f=>_0x38f72f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x195a46,_0x366b67)=>_0x195a46||!!_0x366b67);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x51946b}=this['_config'],_0x2cf83e=new _0x51946b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53dd9e=_0x2cf83e['commentInputView'];return _0x2cf83e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53dd9e,'value',(_0x50fa51,_0x454ff7,_0x3dc69b)=>!!_0x3dc69b||_0x50fa51&&!_0x454ff7),_0x53dd9e['on']('submit',(_0x1e6052,_0x31d3b6)=>{this['fire']('addComment',_0x31d3b6),_0x53dd9e['editor']['setData']('');}),_0x53dd9e['on']('cancel',()=>this['focus']()),_0x53dd9e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2cf83e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1c6869,_0x1f987e,_0x5130a3,_0x227904){super(_0x1c6869,_0x1f987e,_0x5130a3,_0x227904),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5aca65=>_0x5aca65&&_0x5aca65[0x0]?_0x5aca65[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x608c63,_0x3cec12)=>{let _0x2ad277='';for(const _0x107150 of _0x608c63)_0x2ad277+='<p>'+ls(_0x107150['content'],_0x107150['color'])+'</p>';return _0x3cec12?_0x2ad277:_0x381f86(_0x2ad277,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x227904['SuggestionView'](_0x1c6869,_0x1f987e,{'formatDateTime':_0x227904['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x346f68=this['bindTemplate'],_0x186daa=[this['suggestionView']];return this['commentsListView']&&_0x186daa['push'](this['commentsListView']),this['commentThreadInputView']&&_0x186daa['push'](this['commentThreadInputView']),_0x186daa['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x346f68['if']('isActive','ck-suggestion-wrapper--active'),_0x346f68['to']('type',_0x3caf1b=>'ck-suggestion-'+_0x3caf1b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x346f68['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x186daa};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x141ea4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6755e2,_0x20fa4b,_0x3569a5){super(_0x6755e2),this['_model']=_0x20fa4b,this['_config']=_0x3569a5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x20fa4b),this['acceptButton']=this['_createButton'](o(_0x6755e2,'Accept\x20suggestion'),_0x3b920d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x6755e2,'Discard\x20suggestion'),_0x3b920d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3afdf9(_0x6755e2,_0x20fa4b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3031f9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1a6770(),this['keystrokes']=new _0xec262a(),this['focusCycler']=new _0xeffe40({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49bcec=>_0x49bcec['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2332b9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2332b9['innerHTML']=this['description'],this['on']('change:description',(_0x24b0af,_0xa1d04e,_0x393b4a)=>{_0x2332b9['innerHTML']=_0x393b4a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3cc5a6=this['bindTemplate'],_0x58fc64=[{'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':_0x3cc5a6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cc5a6['to']('authoredAt',_0x8d5998=>this['_config']['formatDateTime'](_0x8d5998))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x58fc64['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x58fc64}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x36591b,_0x4fdfb0,_0x1ed633,_0x197af3,_0x596a4d){const _0x354cd9=new _0x456809(this['locale']);return _0x354cd9['set']({'label':_0x36591b,'icon':_0x4fdfb0,'tooltip':!0x0,'tooltipPosition':_0x596a4d}),_0x354cd9['extendTemplate']({'attributes':{'class':_0x1ed633}}),_0x354cd9['on']('execute',()=>{this['fire'](_0x197af3,this['_model']['id']);}),_0x354cd9;}['_setupKeyboardNavigation'](){const _0x5bfac0=this['element'];this['keystrokes']['listenTo'](_0x5bfac0);for(const _0x1674b2 of this['focusables'])this['focusTracker']['add'](_0x1674b2['element']),this['keystrokes']['listenTo'](_0x1674b2['element']);this['keystrokes']['set']('enter',(_0x33b18c,_0x3b26c0)=>{_0x5bfac0===_0x33b18c['target']&&(this['focusCycler']['focusFirst'](),_0x3b26c0());}),this['keystrokes']['set']('esc',(_0x8ed411,_0x4b78cc)=>{_0x5bfac0!==_0x8ed411['target']&&(this['focus'](),_0x4b78cc());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3cc490{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x854ae2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2ce2fc){super(_0x2ce2fc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x487be2=this['editor']['config'];_0x487be2['define']('trackChanges.SuggestionThreadView',re),_0x487be2['define']('trackChanges.SuggestionView',ce),_0x487be2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x487be2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2975cb,_0x4f2d5f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x70fd90,_0x2f4d9d]of this['_handleControllerBuffer']){const _0x3f0a31=this['_suggestionToController']['has'](_0x70fd90);_0x3f0a31||_0x2f4d9d?_0x3f0a31&&_0x2f4d9d&&this['_destroyController'](_0x70fd90):this['_initializeController'](_0x70fd90);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2975cb,_0x4f2d5f);}['init'](){const _0x5b961d=this['editor'],_0x459d89=_0x5b961d['plugins']['get']('TrackChangesEditing'),_0x449ba8=_0x5b961d['plugins']['get']('Annotations'),_0x4af66f=_0x5b961d['plugins']['get']('EditorAnnotations'),_0x3dccdf=_0x5b961d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4af66f['addSourceCollector'](()=>{const _0x4a8e6d=[];for(const [_0x567e18,_0x2488aa]of Array['from'](this['_suggestionToController'])){const _0x424ade=_0x567e18['getAllAdjacentSuggestions'](),_0x25c3e2=[];for(const _0x5a71e5 of _0x424ade){if(!_0x5a71e5['isInContent'])continue;if(_0x5a71e5['isMultiRange']){_0x25c3e2['push'](..._0x5a71e5['getRanges']());continue;}const _0x56bf5f=_0x5a71e5['getFirstRange']();if(_0x25c3e2['length']>0x0){const _0x1301ee=_0x25c3e2[0x0]['getJoined'](_0x56bf5f);if(_0x1301ee){_0x25c3e2[0x0]=_0x1301ee;continue;}}_0x25c3e2['push'](_0x56bf5f);}_0x4a8e6d['push']([_0x2488aa['view'],_0x25c3e2]);}return _0x4a8e6d;}),this['listenTo'](_0x459d89,'suggestionLoaded',(_0x250f83,_0x18f276)=>{this['listenTo'](_0x18f276,'change:previous',(_0x25a9de,_0xa3dda9,_0x2eb352,_0x5811a8)=>{_0x18f276['isInContent']&&(null==_0x2eb352?(this['_updateController'](_0x5811a8['head']),this['_handleSuggestionControllerDelayed'](_0x18f276,!0x1)):(this['_updateController'](_0x2eb352['head']),null==_0x5811a8&&this['_handleSuggestionControllerDelayed'](_0x18f276,!0x0)));}),null!==_0x18f276['previous']?this['_updateController'](_0x18f276['head']):this['_handleSuggestionControllerDelayed'](_0x18f276,!0x1);}),this['listenTo'](_0x459d89,'suggestionUnloaded',(_0x2f0169,_0x379b1a,_0x24f4ce)=>{this['stopListening'](_0x379b1a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x379b1a),this['_suggestionToController']['has'](_0x379b1a)&&this['_destroyController'](_0x379b1a),_0x24f4ce&&this['_updateController'](_0x24f4ce['head']);}),this['listenTo'](_0x459d89,'suggestionChanged',(_0x3a7fb7,_0x40af07)=>{this['_updateController'](_0x40af07);}),this['listenTo'](_0x449ba8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3dccdf,'addComment',(_0x532081,{threadId:_0x40c785,isFromAdapter:_0x2f8f84})=>{if(_0x2f8f84||!_0x459d89['hasSuggestion'](_0x40c785))return;const _0x599e14=_0x459d89['getSuggestion'](_0x40c785);this['_suggestionToController']['get'](_0x599e14)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x223b2b=this['editor']['plugins']['get']('Annotations'),_0x578f8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe0284d=Array['from'](_0x223b2b['activeAnnotations'],_0xee0e4b=>_0xee0e4b['innerView'])['filter'](_0xa630ec=>this['_viewToController']['has'](_0xa630ec)),_0x291262=[];for(const _0x4e989a of _0xe0284d){const _0x3d3b23=this['_viewToController']['get'](_0x4e989a)['model']['getAllAdjacentSuggestions']();_0x291262['push'](..._0x3d3b23['reduce']((_0xf2c3a0,_0x4b55e7)=>[..._0xf2c3a0,..._0x4b55e7['getMarkerNames']()],[]));}_0x578f8f['activeMarkers']=_0x291262;}['_addUIComponentsToFactory'](){const _0x1f9b51=this['editor'],_0x1c3c01=_0x1f9b51['locale'],_0x2d9c9f=o(_0x1c3c01,'Track\x20changes'),_0x2b66f5=new Wt([{'type':'switchbutton','model':new _0x1be4ba({'withText':!0x0,'isToggleable':!0x0,'label':_0x2d9c9f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x519a9e of _0x2b66f5)if(me(_0x519a9e)){const _0x18d648=_0x1f9b51['commands']['get'](_0x519a9e['model']['commandName']);_0x519a9e['model']['bind']('isOn','isEnabled')['to'](_0x18d648,'value','isEnabled');}_0x1f9b51['ui']['componentFactory']['add']('trackChanges',_0x5607af=>this['_createToolbarButton'](_0x5607af,_0x2b66f5,_0x2d9c9f)),_0x1f9b51['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33573c=>this['_createMenuBarMenu'](_0x33573c,_0x2b66f5,_0x2d9c9f));}['_createToolbarButton'](_0x5b3f5b,_0x53636f,_0x4ddcb4){const _0x201e17=Qt(_0x5b3f5b,_0x1aa0e2),_0xbcd4e6=this['editor']['commands']['get']('trackChanges');_0x201e17['buttonView']['set']({'tooltip':_0x4ddcb4,'label':_0x4ddcb4,'icon':he}),_0x201e17['buttonView']['bind']('isOn')['to'](_0xbcd4e6,'value'),_0x201e17['buttonView']['on']('execute',()=>{_0xbcd4e6['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x201e17,_0x53636f,{'role':'menu'});const _0x5f8073=[];for(const _0x2b97be of _0x53636f)me(_0x2b97be)&&_0x5f8073['push'](this['editor']['commands']['get'](_0x2b97be['model']['commandName']));const _0x17b27f=_0x201e17['buttonView'];return _0x17b27f['actionView']['unbind']('isEnabled'),_0x17b27f['arrowView']['unbind']('isEnabled'),_0x17b27f['actionView']['bind']('isEnabled')['to'](_0xbcd4e6,'isEnabled'),_0x17b27f['arrowView']['bind']('isEnabled')['toMany'](_0x5f8073,'isEnabled',(..._0x7cc268)=>_0x7cc268['some'](_0x5b0f28=>_0x5b0f28)),_0x201e17['on']('execute',_0x57bf93=>{this['editor']['execute'](_0x57bf93['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x201e17;}['_createMenuBarMenu'](_0x38ac47,_0x4ad69a,_0xd93cad){const _0x288487=new Yt(_0x38ac47),_0x55f971=this['editor']['commands']['get']('trackChanges');_0x288487['buttonView']['set']({'label':_0xd93cad,'icon':he});const _0x2322e7=new Zt(_0x38ac47);for(const _0x59d1e3 of _0x4ad69a){if('separator'==_0x59d1e3['type']){_0x2322e7['items']['add'](new Xt(_0x38ac47));continue;}const _0xa55082=new te(_0x38ac47,_0x288487),_0x56c09f=new _0x2c9755(_0x38ac47),_0xc6d531=_0x59d1e3['model'];_0x56c09f['bind'](...Object['keys'](_0xc6d531))['to'](_0xc6d531),_0x56c09f['delegate']('execute')['to'](_0x288487),_0x56c09f['on']('execute',()=>{this['editor']['execute'](_0xc6d531['commandName']),this['editor']['editing']['view']['focus']();}),_0xa55082['children']['add'](_0x56c09f),_0x2322e7['items']['add'](_0xa55082);}return _0x288487['bind']('isEnabled')['to'](_0x55f971,'isEnabled'),_0x288487['panelView']['children']['add'](_0x2322e7),_0x288487;}['_initializeController'](_0x43de75){const _0x919fa1=this['editor'],_0x4a2221=_0x919fa1['config'],_0x571bfa=_0x919fa1['plugins']['get']('Annotations'),_0x41613a=_0x919fa1['plugins']['get']('CommentsRepository'),_0x4e12cc=_0x919fa1['plugins']['get']('EditorAnnotations'),_0x268da2=_0x919fa1['plugins']['get'](_0x854ae2)['me'],_0xd74505=_0x4a2221['get']('trackChanges')['SuggestionThreadView'],_0x526061=_0x4a2221['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51de29,CommentThreadInputView:_0xc46848}=_0x919fa1['plugins']['get']('CommentsUI');let _0x55da71,_0x4478a1,_0x4234d5;this['_annotationViews']['has'](_0x43de75['id'])?(_0x4478a1=this['_annotationViews']['get'](_0x43de75['id']),_0x55da71=_0x4478a1['mainView']):(_0x55da71=new _0xd74505(_0x919fa1['locale'],_0x43de75,_0x268da2,{'disableComments':this['_disableComments'],'editorConfig':_0x4a2221['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4a2221['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a2221['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a2221['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x507d6b(_0x4a2221['get']('locale')),'CommentView':_0x4a2221['get']('comments')['CommentView'],'CommentsListView':_0x51de29,'CommentThreadInputView':_0xc46848,'SuggestionView':_0x526061}),_0x55da71['suggestionView']['acceptButton']['on']('execute',()=>{_0x919fa1['editing']['view']['focus']();}),_0x55da71['suggestionView']['discardButton']['on']('execute',()=>{_0x919fa1['editing']['view']['focus']();}),_0x4478a1=_0x571bfa['createAnnotationView'](this['editor']['locale'],_0x55da71),_0x4478a1['bind']('isDirty')['to'](_0x55da71,'isDirty'),_0x4478a1['bind']('length')['to'](_0x55da71),_0x4478a1['bind']('type')['to'](_0x55da71,'type',_0x5ee9e2=>'suggestion-'+_0x5ee9e2),_0x55da71['on']('escape',()=>{_0x4234d5['fire']('escape');}),this['_annotationViews']['set'](_0x43de75['id'],_0x4478a1));const _0x596e98=_0x41613a['createCommentThreadController'](_0x43de75['commentThread'],_0x55da71),_0x36689c=new ae(_0x919fa1,_0x43de75,_0x55da71,_0x596e98),_0x15d09c=_0x43de75['getAllAdjacentSuggestions']()['filter'](_0x5f3afa=>_0x5f3afa['isInContent']);_0x55da71['descriptionParts']=_0x919fa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x15d09c),this['_suggestionToController']['set'](_0x43de75,_0x36689c),this['_viewToController']['set'](_0x55da71,_0x36689c),_0x4234d5=_0x571bfa['createAnnotation']({'view':_0x4478a1,'target':()=>{const _0x574c62=[],_0x40e7c5=_0x43de75['getAllAdjacentSuggestions']()['filter'](_0x2b1132=>_0x2b1132['isInContent']);for(const _0x126bec of _0x40e7c5)_0x574c62['push'](..._0x126bec['getMarkers']());return _0x393583(_0x919fa1['editing'],_0x574c62);},'type':()=>'suggestion-'+_0x36689c['view']['type']}),_0x41613a['_bindAnnotationToEditors'](_0x55da71,_0x4234d5),_0x571bfa['add'](_0x4234d5),_0x4e12cc['registerAnnotation'](_0x4234d5);}['_destroyController'](_0x242f12){const _0x5b2b95=this['editor']['plugins']['get']('CommentsRepository'),_0x3cf1fe=this['editor']['plugins']['get']('Annotations'),_0x56027f=this['_suggestionToController']['get'](_0x242f12),_0xd88bdd=_0x56027f['view'],_0x17c144=_0x3cf1fe['getByInnerView'](_0xd88bdd);_0x5b2b95['_unbindEditors'](_0xd88bdd),_0x17c144&&_0x3cf1fe['remove'](_0x17c144),this['_suggestionToController']['delete'](_0x242f12),this['_viewToController']['delete'](_0xd88bdd),_0x56027f['destroy']();}['_updateController'](_0x3568c6){if(!_0x3568c6['isInContent']||!this['_suggestionToController']['has'](_0x3568c6))return;const _0x31ec82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23c6fe=this['_suggestionToController']['get'](_0x3568c6),_0x20c8f6=_0x3568c6['getAllAdjacentSuggestions']();_0x23c6fe['view']['descriptionParts']=_0x31ec82['descriptionFactory']['getDescriptions'](_0x20c8f6);}['destroy'](){for(const _0xf0a8b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf0a8b8);for(const _0x2aae52 of this['_annotationViews']['values']())_0x2aae52['mainView']['destroy']();super['destroy']();}}function me(_0x4ec683){return'model'in _0x4ec683;}class k extends _0x3cc490{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3a7de6){this['editor']['plugins']['get'](p)['adapter']=_0x3a7de6;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x53722d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x53722d);}['getSuggestions']({skipNotAttached:_0x5d1e7b=!0x1,toJSON:_0x4d7d48=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d1e7b,'toJSON':_0x4d7d48});}['getSuggestion'](_0x1fe32d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1fe32d);}}const T=['Pagination'];class P extends _0x3cc490{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4b5e85=this['editor'];if(_0x4b5e85['config']['define']('trackChangesData.editorCreator',_0x2d50d0=>{const _0x400970=_0x4b5e85['model']['document']['getRootNames']()['reduce']((_0x36c053,_0x1999c3)=>(_0x36c053[_0x1999c3]='',_0x36c053),{});return _0x4b5e85['constructor']['create'](_0x400970,_0x2d50d0);}),'function'!=typeof _0x4b5e85['config']['get']('trackChangesData')['editorCreator'])throw new _0x1e75e0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x59046a){return N(this['editor'],!0x0,_0x59046a);}['getDataWithDiscardedSuggestions'](_0x115f83){return N(this['editor'],!0x1,_0x115f83);}}class D extends _0x3cc490{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x176b1a){super(_0x176b1a),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(_0x4c26da){return void 0x0!==_0x4c26da['getRootsAttributes'];}async function N(_0x20b7d6,_0x1aab90,_0x21810b){const _0x3273c3=_0x39574(_0x20b7d6,T);_0x3273c3['plugins']['push'](p,D),_0x3273c3['rootsAttributes']=v(_0x20b7d6)?_0x20b7d6['getRootsAttributes']():void 0x0;const _0x242b10=document['createDocumentFragment'](),_0x34c551=_0x20b7d6['config']['get']('trackChangesData')['editorCreator'],_0x5d1088=await _0x34c551(_0x3273c3,()=>function(_0x16a1b3){const _0x4000af=document['createElement']('div');return _0x16a1b3['appendChild'](_0x4000af),_0x4000af;}(_0x242b10));!function(_0x1de874,_0x2c5442){const _0x2c06d9=_0x1de874['model']['document']['getRootNames']()['reduce']((_0x39a47c,_0x5d9f08)=>(_0x39a47c[_0x5d9f08]=_0x1de874['data']['get']({'rootName':_0x5d9f08}),_0x39a47c),{}),_0x37231d=_0x1de874['plugins']['get']('Users')['users']['map'](_0x48f625=>({'id':_0x48f625['id'],'name':_0x48f625['name']})),_0x3396ff=_0x1de874['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e2727=_0x1de874['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3224af=_0x2c5442['plugins']['get']('Users'),_0x26d98d=_0x2c5442['plugins']['get']('TrackChangesEditing'),_0x5f5aa5=_0x2c5442['plugins']['get']('CommentsRepository');for(const _0x3de7ae of _0x5f5aa5['getCommentThreads']())_0x3de7ae['remove']();for(const _0x30b253 of _0x37231d)_0x3224af['getUser'](_0x30b253['id'])||_0x3224af['addUser'](_0x30b253);_0x3224af['me']||_0x3224af['useAnonymousUser']();for(const _0x359944 of _0x1e2727)_0x5f5aa5['addCommentThread'](_0x359944);for(const _0xbe249b of _0x3396ff)_0x26d98d['addSuggestionData'](_0xbe249b);_0x2c5442['data']['set'](_0x2c06d9);}(_0x20b7d6,_0x5d1088),_0x5d1088['execute'](_0x1aab90?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d666a=v(_0x5d1088)?_0x5d1088['getFullData'](_0x21810b):_0x5d1088['data']['get'](_0x21810b);return await _0x5d1088['destroy'](),_0x4d666a;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|