@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240821.0 → 0.0.0-nightly-20240822.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
|
-
_0xe7639c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x55eea0,_0x55907e){super(),this['id']=_0x55907e['id'],this['type']=_0x55907e['type'],this['subType']=_0x55907e['subType']||null,this['author']=_0x55907e['author'],this['creator']=_0x55907e['creator']||_0x55907e['author'],this['isExternal']=Boolean(_0x55907e['attributes']&&_0x55907e['attributes']['@external']),this['data']=null,this['_model']=_0x55eea0,this['_onAccept']=_0x55907e['onAccept'],this['_onDiscard']=_0x55907e['onDiscard'],this['_onAttributesChange']=_0x55907e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x55907e['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 _0x488c7b=this;for(;_0x488c7b['previous'];)_0x488c7b=_0x488c7b['previous'];return _0x488c7b;}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'](_0x4bc961){this['_markerNames']['add'](_0x4bc961);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x316028=>this['_model']['markers']['get'](_0x316028))['filter'](_0x335283=>_0x335283);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22a96e=>{for(const _0x2572b4 of this['getMarkers']())_0x22a96e['removeMarker'](_0x2572b4);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d9891){this['_model']['change'](_0x5ae67d=>{_0x5ae67d['removeMarker'](_0x1d9891);}),this['_markerNames']['delete'](_0x1d9891);}['addRange'](_0x554af4){const _0x2f2986='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2f2986),this['_model']['change'](_0x28d76d=>{_0x28d76d['addMarker'](_0x2f2986,{'range':_0x554af4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3087f0){for(const _0x241332 of this['getRanges']())if(_0x241332['isIntersecting'](_0x3087f0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x39ab35=>_0x39ab35['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x55db64,_0xdfdcd6)=>[..._0x55db64,..._0xdfdcd6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x233d20=this['getRanges']();if(0x1!=_0x233d20['length'])return null;const _0x3759b8=_0x233d20[0x0],_0x3b1c0b=_0x3759b8['start']['nodeAfter'],_0x19e9ed=_0x3759b8['end']['nodeBefore'];return _0x3b1c0b instanceof _0x33bef5?_0x3b1c0b!=_0x19e9ed?null:_0x3b1c0b: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 _0x78edc=[];let _0x2f1bbf=this['head'];for(;_0x2f1bbf;)_0x78edc['push'](_0x2f1bbf),_0x2f1bbf=_0x2f1bbf['next'];return _0x78edc;}['setAttribute'](_0x261843,_0x15a16f){const _0x4710c3=_0x22b78b(this['attributes']);_0x3e60ca(_0x4710c3,_0x261843,_0x15a16f),_0x3d91e4(_0x4710c3,this['attributes'])||(this['attributes']=_0x4710c3,this['_onAttributesChange'](_0x4710c3));}['removeAttribute'](_0x5441f6){const _0x147dde=_0x22b78b(this['attributes']);_0x3e937a(_0x147dde,_0x5441f6),_0x3d91e4(_0x147dde,this['attributes'])||(this['attributes']=_0x147dde,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 _0x6322ca()['substr'](0x1,0x5);}}function o(_0x4d511f,_0x27f292,_0x1b0150){const t=_0x4d511f['t'];switch(_0x27f292){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',_0x1b0150);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b0150);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b0150);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b0150);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b0150);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',_0x1b0150);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1b0150);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',_0x1b0150);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1b0150);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b0150);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b0150);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b0150);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b0150);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b0150);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b0150);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1b0150);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b0150);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b0150);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1b0150);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b0150);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b0150);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b0150);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b0150);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'},_0x1b0150);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b0150);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b0150);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b0150);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b0150);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1b0150);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b0150);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b0150);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1b0150);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x27f292;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1e74ae,_0xdf3390){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e74ae,this['_locale']=_0xdf3390;}['getDescriptions'](_0x5ebd20){const _0x289156=[],_0x2dd8c8=new Set(),_0x58c90a=new Set();for(let _0x5eff80=0x0;_0x5eff80<_0x5ebd20['length'];_0x5eff80++){const _0x498d83=_0x5ebd20[_0x5eff80];if(!_0x498d83['isInContent'])continue;const _0x2974c5=this['_handleCustomCallbackDescription'](_0x498d83);if(_0x2974c5){if(null!=_0x498d83['subType']){if(_0x2dd8c8['has'](_0x498d83['subType']))continue;_0x2dd8c8['add'](_0x498d83['subType']);}_0x289156['push'](_0x2974c5);}else{if('attribute'!=_0x498d83['type'])'insertion'!=_0x498d83['type']&&'deletion'!=_0x498d83['type']||this['_handleInsertRemoveSuggestionDescription'](_0x289156,_0x498d83,_0x5ebd20[_0x5eff80+0x1]);else{const _0x2dd3c0=_0x498d83['data']['key'];if(_0x58c90a['has'](_0x2dd3c0))continue;_0x58c90a['add'](_0x498d83['data']['key']),_0x2dd3c0==m?this['_handleRenameSuggestionDescription'](_0x289156,_0x498d83):this['_handleAttributeSuggestionDescription'](_0x289156,_0x498d83);}}}return this['_resolveDescriptionItems'](_0x289156);}['registerDescriptionCallback'](_0x340684){this['_customCallbacks']['push'](_0x340684);}['registerElementLabel'](_0xd66d64,_0x523287,_0x2993f7=_0xcad5a0['normal']){'function'==typeof _0xd66d64?_0x219b63(this['_itemLabelsCallbacks'],{'matchingCallback':_0xd66d64,'label':_0x523287,'priority':_0x2993f7}):this['_itemLabels']['set'](_0xd66d64,_0x523287);}['registerAttributeLabel'](_0x377437,_0xa0cc99){this['_attributeLabels']['set'](_0x377437,_0xa0cc99);}['getItemLabel'](_0x44fe15,_0x413790=0x1){let _0x1d669b;for(const _0x5bb1f0 of this['_itemLabelsCallbacks'])if(_0x5bb1f0['matchingCallback'](_0x44fe15)){_0x1d669b=_0x5bb1f0['label'];break;}return _0x1d669b||(_0x1d669b=this['_itemLabels']['get'](_0x44fe15['name'])),_0x1d669b?_0x1d669b(_0x413790):0x1!==_0x413790?_0x413790+'\x20'+_0x44fe15['name']+'s':''+_0x44fe15['name'];}['_addDescriptionItems'](_0x3e853f,_0x438b48){const _0x53f3e7=_0x438b48['getFirstRange']()['getWalker'](),_0x491588='insertion'==_0x438b48['type']?'add':'remove';for(const _0x313b22 of _0x53f3e7){const _0x4f33fe=_0x313b22['item'],_0x2b70c2=_0x3e853f[_0x3e853f['length']-0x1];if(_0x4f33fe['is']('$textProxy'))_0x2b70c2&&_0x2b70c2['type']['indexOf']('Container')>-0x1&&_0x3e853f['pop'](),_0x2b70c2&&'text'==_0x2b70c2['type']?_0x2b70c2[_0x491588]+=_0x4f33fe['data']:_0x3e853f['push']({'type':'text','add':'add'==_0x491588?_0x4f33fe['data']:'','remove':'remove'==_0x491588?_0x4f33fe['data']:''});else{if(this['_schema']['isObject'](_0x4f33fe)){const _0x365ce2=_0x4f33fe;if(_0x2b70c2&&_0x2b70c2['type']['indexOf']('Container')>-0x1&&_0x3e853f['pop'](),'elementEnd'==_0x313b22['type'])continue;_0x2b70c2&&_0x2b70c2['type']==_0x491588+'Object'&&_0x2b70c2['element']['name']==_0x365ce2['name']?_0x2b70c2['quantity']++:_0x3e853f['push']({'type':_0x491588+'Object','element':_0x365ce2,'quantity':0x1}),_0x53f3e7['skip'](_0x1d5b1c=>!('elementEnd'==_0x1d5b1c['type']&&_0x1d5b1c['item']==_0x4f33fe));}else{if(this['_schema']['checkChild'](_0x4f33fe,'$text')||_0x4f33fe['is']('element','softBreak')){const _0x43dc09=_0x4f33fe;if('add'==_0x491588&&'elementStart'==_0x313b22['type']||'remove'==_0x491588&&'elementEnd'==_0x313b22['type'])continue;if(_0x2b70c2&&-0x1==_0x2b70c2['type']['indexOf']('Container')){'text'==_0x2b70c2['type']&&(_0x2b70c2[_0x491588]+='\x0a');continue;}let _0x48c8fc;if(_0x48c8fc='add'==_0x491588?_0x43dc09['nextSibling']&&!this['_schema']['isObject'](_0x43dc09['nextSibling'])?_0x43dc09['nextSibling']:null:_0x43dc09['previousSibling']&&!this['_schema']['isObject'](_0x43dc09['previousSibling'])?_0x43dc09['previousSibling']:null,_0x43dc09['isEmpty']||_0x48c8fc&&_0x48c8fc['isEmpty']){const _0x379464=_0x48c8fc&&_0x48c8fc['isEmpty']?_0x48c8fc:_0x43dc09;_0x2b70c2&&_0x2b70c2['type']==_0x491588+'EmptyContainer'&&_0x2b70c2['element']['name']==_0x379464['name']?_0x2b70c2['quantity']++:_0x3e853f['push']({'type':_0x491588+'EmptyContainer','element':_0x379464,'quantity':0x1});}else _0x3e853f['push']({'type':_0x491588+'Container','element':_0x43dc09});}}}}}['_resolveDescriptionItems'](_0x3ad253){const _0x1297a2=this['_locale'],_0x1952c2=[],_0x11f246=[],_0x48430b=[];for(const _0x4f2f30 of _0x3ad253)switch(_0x4f2f30['type']){case'text':if(_0x4f2f30['add']=_0x4f2f30['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f2f30['remove']=_0x4f2f30['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f2f30['add']&&''!=_0x4f2f30['remove']){_0x1952c2['push']({'type':'replace','content':o(_0x1297a2,'REPLACE_TEXT',['\x22'+_0x4f2f30['remove']+'\x22','\x22'+_0x4f2f30['add']+'\x22'])});continue;}if(null!=_0x4f2f30['add']['match'](/^ +$/)){_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Insert:*\x20%0',o(_0x1297a2,'ELEMENT_SPACE',_0x4f2f30['add']['length']))});continue;}if(null!=_0x4f2f30['remove']['match'](/^ +$/)){_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Remove:*\x20%0',o(_0x1297a2,'ELEMENT_SPACE',_0x4f2f30['remove']['length']))});continue;}if(''!=_0x4f2f30['add']){_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Insert:*\x20%0','\x22'+_0x4f2f30['add']+'\x22')});continue;}_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Remove:*\x20%0','\x22'+_0x4f2f30['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Insert:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Remove:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'addContainer':_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Split:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'removeContainer':_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Merge:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'addFormat':_0x11f246['push'](_0x4f2f30['key']);continue;case'removeFormat':_0x48430b['push'](_0x4f2f30['key']);continue;default:_0x1952c2['push'](_0x4f2f30);}if(_0x11f246['length']){const _0x4c826e=_0x11f246['map'](_0xe6c581=>this['_attributeLabels']['has'](_0xe6c581)?this['_attributeLabels']['get'](_0xe6c581):_0xe6c581)['join'](',\x20');_0x1952c2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4c826e)});}if(_0x48430b['length']){const _0x463223=_0x48430b['map'](_0x25f059=>this['_attributeLabels']['has'](_0x25f059)?this['_attributeLabels']['get'](_0x25f059):_0x25f059)['join'](',\x20');_0x1952c2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x463223)});}return _0x1952c2;}['_handleCustomCallbackDescription'](_0x547a63){for(const _0x5b8882 of this['_customCallbacks']){const _0x33c195=_0x5b8882(_0x547a63);if(_0x33c195&&'type'in _0x33c195)return _0x33c195;}}['_handleAttributeSuggestionDescription'](_0x2849db,_0x31a4df){const _0x230697=_0x31a4df['data'],_0x46c498=void 0x0===_0x230697['newValue']?'removeFormat':'addFormat';_0x2849db['push']({'type':_0x46c498,'key':_0x230697['key']});}['_handleRenameSuggestionDescription'](_0x5d873b,_0x5ad371){_0x5d873b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5ad371['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55c75a,_0x502a27,_0x438d8e){if(this['_addDescriptionItems'](_0x55c75a,_0x502a27),_0x438d8e&&_0x438d8e['getFirstRange']()&&!_0x502a27['getFirstRange']()['end']['isEqual'](_0x438d8e['getFirstRange']()['start'])){const _0x4439d4=_0x55c75a[_0x55c75a['length']-0x1],_0x176f0c='insertion'==_0x502a27['type']?'add':'remove';_0x4439d4&&'text'==_0x4439d4['type']&&(_0x4439d4[_0x176f0c]+='\x0a');}}}class V extends _0x2d1259{['afterInit'](){const _0x1026ec=this['editor'],_0x4ff3e2=_0x1026ec['plugins']['get']('TrackChangesEditing');_0x1026ec['commands']['get']('showAIAssistant')&&_0x4ff3e2['enableCommand']('showAIAssistant');}}class U extends _0x2d1259{['afterInit'](){const _0x4ed613=this['editor'],_0x2f04d4=_0x4ed613['locale'];if(!_0x4ed613['plugins']['has']('AlignmentEditing'))return;const _0x1bad0d=_0x4ed613['plugins']['get']('TrackChangesEditing');_0x1bad0d['enableDefaultAttributesIntegration']('alignment'),_0x1bad0d['registerBlockAttribute']('alignment'),_0x1bad0d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2f04d4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105d67=this['editor'],_0x215875=_0x105d67['locale'];_0x105d67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b741=>{if('formatBlock'!=_0x31b741['type'])return;const {data:_0x59924f}=_0x31b741;if(_0x59924f&&'alignment'==_0x59924f['commandName']){const _0x16e917=_0x59924f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x215875,'*Format:*\x20%0',function(_0x14c3dc){switch(_0x14c3dc){case'left':return o(_0x215875,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x215875,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x215875,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x215875,'FORMAT_JUSTIFY_TEXT');}}(_0x16e917))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2d1259{['afterInit'](){const _0x3f26b5=this['editor'],_0x1a5568=_0x3f26b5['plugins']['get']('TrackChangesEditing'),_0x14dc79=_0x3f26b5['locale'];for(const _0x233871 of ti){if(!_0x3f26b5['plugins']['has'](_0x233871))continue;const _0x34ac32=_0x233871['slice'](0x0,-0x7)['toLowerCase'](),_0x202e1d='FORMAT_'+_0x34ac32['toUpperCase']();_0x1a5568['enableDefaultAttributesIntegration'](_0x34ac32),_0x1a5568['registerInlineAttribute'](_0x34ac32),_0x1a5568['descriptionFactory']['registerAttributeLabel'](_0x34ac32,o(_0x14dc79,_0x202e1d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf072ce=this['editor'],_0x383fd0=_0xf072ce['locale'],_0x557cc9=_0xf072ce['plugins']['get']('TrackChangesEditing');function _0x4fffb7(_0xeb2033,_0x46259d){_0x557cc9['descriptionFactory']['registerDescriptionCallback'](_0x5d372c=>{if('formatInline'!=_0x5d372c['type'])return;const {data:_0x44d161}=_0x5d372c;return _0x44d161&&_0x44d161['commandName']===_0xeb2033?_0x44d161['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x383fd0,'*Format:*\x20%0',_0x46259d)}:{'type':'format','content':o(_0x383fd0,'*Remove\x20format:*\x20%0',_0x46259d)}:void 0x0;});}_0x4fffb7('bold',o(_0x383fd0,'FORMAT_BOLD')),_0x4fffb7('italic',o(_0x383fd0,'FORMAT_ITALIC')),_0x4fffb7('underline',o(_0x383fd0,'FORMAT_UNDERLINE')),_0x4fffb7('code',o(_0x383fd0,'FORMAT_CODE')),_0x4fffb7('strikethrough',o(_0x383fd0,'FORMAT_STRIKETHROUGH')),_0x4fffb7('subscript',o(_0x383fd0,'FORMAT_SUBSCRIPT')),_0x4fffb7('superscript',o(_0x383fd0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2d1259{['afterInit'](){const _0x5f221e=this['editor'],_0x1a67ed=_0x5f221e['locale'];if(!_0x5f221e['plugins']['has']('BlockQuoteEditing'))return;const _0x4722f4=_0x5f221e['plugins']['get']('TrackChangesEditing'),_0x4b9f78=this['editor']['commands']['get']('blockQuote');_0x4722f4['enableCommand']('blockQuote',(_0x274880,_0x538237={})=>{const _0x1ee0c4=this['editor']['model']['document']['selection'],_0x34ac30=_0x538237&&void 0x0!==_0x538237['forceValue']?_0x538237['forceValue']:!_0x4b9f78['value'];let _0x27b65e=[];if(_0x34ac30){const _0x4b73e1=Array['from'](_0x1ee0c4['getSelectedBlocks']())['filter'](_0x100b1b=>oo(_0x100b1b)||function(_0x1062de,_0x1b50c3){const _0x75892d=_0x1b50c3['checkChild'](_0x1062de['parent'],'blockQuote'),_0x27543e=_0x1b50c3['checkChild'](['$root','blockQuote'],_0x1062de);return _0x75892d&&_0x27543e;}(_0x100b1b,this['editor']['model']['schema']));_0x27b65e=to(_0x4b73e1,_0x5f221e['model']);}else{const _0x491762=Array['from'](_0x1ee0c4['getSelectedBlocks']())['filter'](_0x206951=>oo(_0x206951));_0x27b65e=to(_0x491762,_0x5f221e['model']);}_0x5f221e['model']['change'](()=>{for(const _0x6f8f21 of _0x27b65e)_0x4722f4['markBlockFormat'](_0x6f8f21,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x34ac30}]});});}),_0x4722f4['descriptionFactory']['registerDescriptionCallback'](_0x47daf6=>{const {data:_0x383edd}=_0x47daf6;if(_0x383edd&&'blockQuote'==_0x383edd['commandName']){const _0x3fa0fe=o(_0x1a67ed,'ELEMENT_BLOCK_QUOTE');return _0x383edd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a67ed,'*Set\x20format:*\x20%0',_0x3fa0fe)}:{'type':'format','content':o(_0x1a67ed,'*Remove\x20format:*\x20%0',_0x3fa0fe)};}});}}function oo(_0x34d871){return'blockQuote'==_0x34d871['parent']['name'];}class L extends _0x2d1259{['afterInit'](){const _0x21dd11=this['editor'];_0x21dd11['plugins']['has']('CaseChange')&&(_0x21dd11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x21dd11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x21dd11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2d1259{['afterInit'](){const _0x49d702=this['editor'];_0x49d702['commands']['get']('ckbox')&&_0x49d702['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2d1259{['afterInit'](){const _0x5d1838=this['editor'];if(!_0x5d1838['plugins']['has']('CodeBlock'))return;const _0x1e4272=_0x5d1838['plugins']['get']('TrackChangesEditing'),_0x226fcf=_0x5d1838['locale'],_0xf13b34=_0x5d1838['config']['get']('codeBlock')['languages'],_0x549cc2=_0x5d1838['commands']['get']('codeBlock');_0x1e4272['enableCommand']('indentCodeBlock'),_0x1e4272['enableCommand']('outdentCodeBlock'),_0x1e4272['enableCommand']('codeBlock',(_0x33f3d1,_0x23c8a4={})=>{const _0x448154=_0x5d1838['model'],_0x4e8b00=_0x5d1838['model']['document']['selection'],_0x30e5c7=_0x23c8a4&&void 0x0!==_0x23c8a4['forceValue']?_0x23c8a4['forceValue']:!_0x549cc2['value'];let _0x124574;_0x23c8a4['language']||(_0x23c8a4['language']=_0xf13b34[0x0]['language']),_0x124574=_0x30e5c7?Array['from'](_0x4e8b00['getSelectedBlocks']())['filter'](_0x415819=>eo(_0x415819)||function(_0x362df6,_0x4dcfd9){if(_0x362df6['is']('rootElement')||_0x4dcfd9['isLimit'](_0x362df6))return!0x1;return _0x4dcfd9['checkChild'](_0x362df6['parent'],'codeBlock');}(_0x415819,_0x448154['schema'])):Array['from'](_0x4e8b00['getSelectedBlocks']())['filter'](_0x4e0f86=>eo(_0x4e0f86));const _0x2c1249=to(_0x124574,_0x448154);_0x448154['change'](()=>{for(const _0x541d17 of _0x2c1249)_0x1e4272['markBlockFormat'](_0x541d17,{'commandName':'codeBlock','commandParams':[{..._0x23c8a4,'forceValue':_0x30e5c7}],'formatGroupId':'blockName'});});}),(_0x1e4272['descriptionFactory']['registerElementLabel']('codeBlock',_0x348fcb=>o(_0x226fcf,'ELEMENT_CODE_BLOCK',_0x348fcb)),_0x1e4272['descriptionFactory']['registerDescriptionCallback'](_0x71d3f0=>{if('formatBlock'!=_0x71d3f0['type'])return;const _0x3ac3ac=_0x226fcf['t'],{data:_0x56219f}=_0x71d3f0;if(!_0x56219f||'codeBlock'!=_0x56219f['commandName'])return;const _0x378ad2=_0x56219f['commandParams'][0x0]['language'],_0x30e91e=_0x3ac3ac(_0xf13b34['find'](_0x45854c=>_0x45854c['language']===_0x378ad2)['label'])['toLowerCase']();return _0x56219f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x226fcf,'*Set\x20format:*\x20%0',o(_0x226fcf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30e91e+')')}:{'type':'format','content':o(_0x226fcf,'*Remove\x20format:*\x20%0',o(_0x226fcf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c2027){return'codeBlock'==_0x1c2027['name'];}class q extends _0x2d1259{['afterInit'](){const _0x36d951=this['editor'];if(!_0x36d951['plugins']['has']('CommentsEditing'))return;_0x36d951['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xb7772,_0x231f89,_0x56c1ac){const _0x147e48=[];for(const _0x38596e of _0x231f89['getItems']())_0x38596e['hasAttribute'](_0xb7772)&&_0x147e48['push'](_0x56c1ac['createRangeOn'](_0x38596e));return _0x147e48;}function _e(_0x5626d4,_0x246d8a,{showActiveMarker:_0x23edce=!0x0}={}){const _0x4e175d=_0x5626d4['plugins']['get']('TrackChangesEditing');return(_0x9b3430,_0x4d5c77,_0x5a4e49)=>{if(!_0x5a4e49['consumable']['test'](_0x4d5c77['markerRange'],_0x9b3430['name']))return;const _0x17c056=_0x4d5c77['markerRange']['getWalker'](),_0x26ee47=_0x4d5c77['markerRange']['start'],_0x48fb9f=_0x5626d4['model']['schema'];let _0x191074=null,_0x20db37=null,_0x52739c=!0x1,_0x3f34b2=!0x1;for(const _0x2d126c of _0x17c056){const _0x4108e7=_0x2d126c['item'];_0x52739c=_0x52739c||_0x48fb9f['isContent'](_0x4108e7);const _0x2a1d2c=_0x5a4e49['mapper']['toViewElement'](_0x4108e7);if(_0x2a1d2c&&_0x2a1d2c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d126c['type']&&(_0x48fb9f['isBlock'](_0x4108e7)&&!_0x48fb9f['isLimit'](_0x4108e7)&&(_0x4108e7['nextSibling']||_0x26ee47['isAtEnd']?_0x191074&&_0x191074['parent']==_0x4108e7||(_0x191074=_0x4108e7,_0x300c2e(_0x2d126c['previousPosition']),_0x3f34b2=!0x0):_0x20db37=_0x20db37||_0x2d126c['previousPosition']));}function _0x300c2e(_0xa7d5c8){const {authorId:_0x41b47b}=_0x4e175d['_splitMarkerName'](_0x4d5c77['markerName']),_0x4d29f1=_0x5a4e49['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x246d8a,'data-author-id':_0x41b47b}),_0x3b8e3e=_0x5a4e49['mapper']['toViewPosition'](_0xa7d5c8);_0x23edce&&_0x4e175d['activeMarkers']['includes'](_0x4d5c77['markerName'])&&_0x5a4e49['writer']['addClass']('ck-suggestion-marker--active',_0x4d29f1),_0x5a4e49['writer']['insert'](_0x3b8e3e,_0x4d29f1),_0x5a4e49['mapper']['bindElementToMarker'](_0x4d29f1,_0x4d5c77['markerName']);}_0x52739c||_0x3f34b2||!_0x20db37||_0x300c2e(_0x20db37);};}class z extends _0x2d1259{static get['requires'](){return[_0x54009a];}['init'](){const _0x2dbe39=this['editor'],_0xebec61=_0x2dbe39['plugins']['get']('TrackChangesEditing');_0xebec61['enableCommand']('delete');const _0x3d47e4=_0x2dbe39['commands']['get']('deleteForward');_0xebec61['enableCommand']('deleteForward',(_0x2a7603,_0x11a502={})=>{const _0x55abcb=_0x2dbe39['model']['createSelection'](_0x2dbe39['model']['document']['selection']);_0x55abcb['isCollapsed']&&_0x2dbe39['model']['modifySelection'](_0x55abcb,{'direction':'forward','unit':_0x11a502['unit']});const _0x25efdd=_0x55abcb['getFirstRange'](),_0x221ba8=_0x43155d['fromRange'](_0x25efdd);let _0x484b0c;_0x2a7603(_0x11a502),_0x484b0c='$graveyard'==_0x221ba8['root']['rootName']?_0x2dbe39['model']['createRange'](_0x25efdd['start']):_0x2dbe39['model']['createRange'](_0x221ba8['start'],_0x221ba8['end']),_0x221ba8['detach'](),_0x2dbe39['model']['enqueueChange'](_0x3d47e4['buffer']['batch'],_0x4139cb=>{_0x3d47e4['buffer']['lock'](),_0x4139cb['setSelection'](_0x4139cb['createRange'](_0x484b0c['end'])),_0x3d47e4['buffer']['unlock']();});}),_0x2dbe39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2dbe39,'merge'),{'priority':'high'}),_0x2dbe39['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x202312,_0x19ea07,_0x287ee0)=>{_0x287ee0['options']['showSuggestionHighlights']&&_e(_0x2dbe39,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x202312,_0x19ea07,_0x287ee0);},{'priority':'high'}),_0x2dbe39['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x47e557,_0x320984,_0x2570e3)=>{const _0x48b490=_0x2570e3['mapper']['markerNameToElements'](_0x320984['markerName']);if(_0x48b490){for(const _0x55ecb9 of _0x48b490)_0x55ecb9['is']('uiElement')&&(_0x2570e3['mapper']['unbindElementFromMarkerName'](_0x55ecb9,_0x320984['markerName']),_0x2570e3['writer']['remove'](_0x55ecb9));}},{'priority':'high'});}}class K extends _0x2d1259{['afterInit'](){const _0x330f45=this['editor'];if(!_0x330f45['plugins']['has']('ListEditing'))return;const _0x19a53f=_0x330f45['locale'],_0xbacaf5=_0x330f45['plugins']['get']('TrackChangesEditing'),_0x2d5eba=_0x330f45['plugins']['has']('TodoListEditing'),_0x4dfeed=!!_0x330f45['config']['get']('list.multiBlock');function _0x39a235(_0x4560f4){return{'type':'format','content':''+o(_0x19a53f,'*Set\x20format:*\x20%0',_0x4560f4)};}function _0x577d89(_0x5f0e87){return{'type':'format','content':''+o(_0x19a53f,'*Remove\x20format:*\x20%0',_0x5f0e87)};}_0xbacaf5['enableDefaultAttributesIntegration']('numberedList'),_0xbacaf5['enableDefaultAttributesIntegration']('bulletedList'),_0xbacaf5['enableDefaultAttributesIntegration']('customNumberedList'),_0xbacaf5['enableDefaultAttributesIntegration']('customBulletedList'),_0xbacaf5['enableDefaultAttributesIntegration']('indentList'),_0xbacaf5['enableDefaultAttributesIntegration']('outdentList'),_0xbacaf5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xbacaf5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xbacaf5['registerBlockAttribute']('listItemId'),_0xbacaf5['registerBlockAttribute']('listType'),_0xbacaf5['registerBlockAttribute']('listIndent'),_0x4dfeed&&(_0xbacaf5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xbacaf5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2d5eba&&(_0xbacaf5['enableDefaultAttributesIntegration']('todoList'),_0xbacaf5['enableDefaultAttributesIntegration']('checkTodoList'),_0xbacaf5['registerBlockAttribute']('todoListChecked'),_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x507082=>{const {data:_0x33dfa1}=_0x507082;if(_0x33dfa1&&'todoListChecked'==_0x33dfa1['key'])return{'type':'format','content':_0x33dfa1['newValue']?o(_0x19a53f,'*Check\x20item*'):o(_0x19a53f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d2609=>{if(_0x5d2609['batch']['isUndo'])return!0x1;let _0x3343b3=!0x1;const _0x5312c3=_0xbacaf5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x444c78=>'todoListChecked'===_0xbacaf5['_getAttributeKey'](_0x444c78));for(const _0xffd2dc of _0x5312c3){'todo'!=_0xffd2dc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xbacaf5['_findSuggestions'](_0xffd2dc['getFirstRange'](),'attribute')['find'](_0x3e7e70=>'listType'===_0xbacaf5['_getAttributeKey'](_0x3e7e70['suggestion']))||(_0x5d2609['removeMarker'](_0xffd2dc['getFirstMarker']()),_0x3343b3=!0x0));}return _0x3343b3;})),_0xbacaf5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19a53f,'FORMAT_INDENT'));const _0x5d96f8={'type':'format','content':''};_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x458a09=>{const {data:_0x367f61}=_0x458a09;if(!_0x367f61||'listType'!=_0x367f61['key'])return;let _0x3969c5=_0x458a09['head'];for(;_0x3969c5;){if(_0x3969c5['data']&&(('listStyle'==_0x3969c5['data']['key']||'listMarkerStyle'==_0x3969c5['data']['key'])&&(_0x3969c5['data']['newValue']&&'default'!=_0x3969c5['data']['newValue']||'default'!=_0x3969c5['data']['oldValue']&&!_0x367f61['newValue'])||!_0x4dfeed&&_0x3969c5['data']['key']==m))return _0x5d96f8;_0x3969c5=_0x3969c5['next'];}if(null==_0x367f61['newValue'])switch(_0x367f61['oldValue']){case'bulleted':return _0x577d89(o(_0x19a53f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x577d89(o(_0x19a53f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x577d89(o(_0x19a53f,'ELEMENT_TODO_LIST'));}switch(_0x367f61['newValue']){case'bulleted':return _0x39a235(o(_0x19a53f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39a235(o(_0x19a53f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39a235(o(_0x19a53f,'ELEMENT_TODO_LIST'));}}),_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x3f365b=>{const {data:_0x112163}=_0x3f365b;if(_0x112163&&'listIndent'==_0x112163['key'])return null==_0x112163['newValue']||null==_0x112163['oldValue']&&0x0==_0x112163['newValue']?_0x5d96f8:void 0x0;}),_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x39e6f9=>{if('attribute'!=_0x39e6f9['type'])return;const {data:_0x5630f2}=_0x39e6f9;if(!_0x5630f2||'listItemId'!=_0x5630f2['key'])return;const _0x5d5f6b=Ee(_0x39e6f9);return'newValue'==_0x5d5f6b?{'type':'format','content':o(_0x19a53f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d5f6b?{'type':'format','content':o(_0x19a53f,'*Split:*\x20list\x20item')}:_0x5d96f8;}),_0x330f45['model']['document']['registerPostFixer'](_0xfc81f4=>this['listItemIdFixer'](_0xfc81f4)),_0x330f45['model']['document']['registerPostFixer'](_0x184bbe=>this['noTrackChangesFixer'](_0x184bbe)),_0x330f45['model']['document']['on']('change:data',(_0x507d10,_0x369fa2)=>{if(_0x369fa2['isUndo']||!_0x369fa2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x14c97e){if(_0x14c97e['batch']['isUndo']||!_0x14c97e['batch']['isLocal'])return!0x1;let _0x234a9f=!0x1;const _0x190b9a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf04e87=>_0xf04e87['data']&&'listItemId'==_0xf04e87['data']['key'])['filter'](_0x3e2b01=>_0x3e2b01['data']['newValue']&&_0x3e2b01['data']['oldValue']);for(const _0x1f1486 of _0x190b9a)Ee(_0x1f1486)||(_0x14c97e['removeMarker'](_0x1f1486['getFirstMarker']()),_0x234a9f=!0x0);return _0x234a9f;}['noTrackChangesFixer'](_0x5e19e4){if(_0x5e19e4['batch']['isUndo']||!_0x5e19e4['batch']['isLocal'])return!0x1;const _0x176dfe=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x176dfe['trackChangesCommand']['value'])return!0x1;let _0x165b00=!0x1;const _0x173a1f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x304e33=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x58977e=>'attribute'==_0x58977e['type'])['filter'](_0x374512=>_0x173a1f['includes'](_0x374512['attributeKey']));if(0x0==_0x304e33['length'])return _0x165b00;for(const _0x257402 of _0x304e33){const _0xfa95f7=_0x176dfe['_findSuggestions'](_0x257402['range'],'attribute')['filter'](_0x3242bd=>!_0x3242bd['meta']['isNextTo'])['map'](_0x1d4268=>_0x1d4268['suggestion'])['filter'](_0x5b366f=>{const _0x429b43=_0x176dfe['_getAttributeKey'](_0x5b366f);return _0x173a1f['includes'](_0x429b43);});if(_0xfa95f7['length']){for(const _0xc6bce9 of _0xfa95f7)_0x5e19e4['removeMarker'](_0xc6bce9['getFirstMarker']());_0x165b00=!0x0;}}return _0x165b00;}['assureChains'](){const _0x4a453a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x229b1a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3fd0f4;const _0x44f2ff=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x57d1ce=>{if(_0x57d1ce['data']['oldRange']||!_0x57d1ce['data']['newRange'])return null;if(!_0x57d1ce['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x43a572}=_0x4a453a['_splitMarkerName'](_0x57d1ce['name']);if(!_0x4a453a['hasSuggestion'](_0x43a572))return null;const _0x3b1c33=_0x4a453a['getSuggestion'](_0x43a572);return _0x229b1a['includes'](_0x3b1c33['data']['key']);})['map'](_0x1c9942=>{const {id:_0x586659}=_0x4a453a['_splitMarkerName'](_0x1c9942['name']),_0x465fe3=_0x4a453a['getSuggestion'](_0x586659);return _0x3fd0f4=_0x465fe3['attributes']['groupId'],_0x465fe3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x44f2ff['size'])return;const _0x4ffffa=_0x4a453a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13ebef=>'attribute'==_0x13ebef['type']&&_0x13ebef['data']&&_0x229b1a['includes'](_0x13ebef['data']['key'])&&_0x13ebef['attributes']['groupId']!=_0x3fd0f4)['map'](_0x23e294=>({'listItem':_0x23e294['getFirstRange']()['start']['nodeAfter'],'groupId':_0x23e294['attributes']['groupId']})),_0x27f2d7=new Set();for(const {groupId:_0x2c2493,listItem:_0x26b327}of _0x4ffffa)_0x44f2ff['has'](_0x26b327)&&_0x27f2d7['add'](_0x2c2493);for(const _0x270bde of _0x4a453a['getSuggestions']())_0x27f2d7['has'](_0x270bde['attributes']['groupId'])&&_0x270bde['setAttribute']('groupId',_0x3fd0f4);}['_supportLegacySuggestions'](){const _0x2aabfa=this['editor'],_0x431ab7=_0x2aabfa['locale'],_0x21c8bb=_0x2aabfa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x21c8bb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x6627f3,_0x49445f){const _0xfe3050=[];for(let _0x4c2c2b of _0x6627f3)_0x4c2c2b['start']['nodeAfter']===_0x4c2c2b['end']['parent']&&(_0x4c2c2b=_0x2aabfa['model']['createRange'](_0x2aabfa['model']['createPositionAt'](_0x4c2c2b['start']['nodeAfter'],0x0))),_0xfe3050['push'](_0x4c2c2b);_0x2aabfa['model']['change'](_0x402294=>{const _0x1f8f74=_0x2aabfa['model']['document']['selection'],_0x401ef3=Array['from'](_0x1f8f74['getRanges']())['map'](_0x57fe97=>_0x43155d['fromRange'](_0x57fe97));_0x402294['setSelection'](_0xfe3050),_0x2aabfa['commands']['get'](_0x49445f['commandName'])['refresh'](),_0x49445f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2aabfa['execute'](_0x49445f['commandName'],..._0x49445f['commandParams']),_0x402294['setSelection'](_0x401ef3);for(const _0x45e933 of _0x401ef3)_0x45e933['detach']();});}),_0x21c8bb['descriptionFactory']['registerElementLabel'](function(_0x3f0add){const _0x27646c=!_0x2aabfa['model']['schema']['isObject'](_0x3f0add),_0x4e29dc=_0x3f0add['previousSibling'],_0x44398c=_0x3f0add['nextSibling'],_0x231586=_0x3f0add['getAttribute']('listItemId'),_0x22f781=!_0x4e29dc||_0x4e29dc['getAttribute']('listItemId')!==_0x231586,_0x529f74=!_0x44398c||_0x44398c['getAttribute']('listItemId')!==_0x231586;return _0x27646c&&Boolean(_0x231586)&&_0x22f781&&_0x529f74;},_0x177a27=>o(_0x431ab7,'ELEMENT_LIST_ITEM',_0x177a27));}['_registerLegacyDescription'](){const _0x4f66b5=this['editor'],_0x2315ac=_0x4f66b5['locale'];function _0x59cfdd(_0x2878e6){const _0x2880d0=_0x4f66b5['commands']['get']('bulletedList')['value'],_0x2c1da5=_0x4f66b5['commands']['get']('numberedList')['value'];return'numberedList'===_0x2878e6?_0x2880d0:_0x2c1da5;}_0x4f66b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x13268e){if('formatBlock'!=_0x13268e['type'])return;const {data:_0x13a2ec}=_0x13268e;if(!_0x13a2ec)return;let _0x457879,_0x3f6344,_0x254da8,_0xd9ead0;switch(_0x13a2ec['commandName']){case'bulletedList':_0x254da8=_0x13a2ec['commandParams'][0x0]['forceValue'],_0xd9ead0=_0x59cfdd(_0x13a2ec['commandName']),_0x457879=_0x254da8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd9ead0&&_0x4f66b5['config']['get']('list.multiBlock')||(_0x457879='*Change\x20to:*\x20%0'),_0x3f6344={'type':'format','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x254da8=_0x13a2ec['commandParams'][0x0]['forceValue'],_0xd9ead0=_0x59cfdd(_0x13a2ec['commandName']),_0x457879=_0x254da8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd9ead0&&_0x4f66b5['config']['get']('list.multiBlock')||(_0x457879='*Change\x20to:*\x20%0'),_0x3f6344={'type':'format','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x457879='*Indent:*\x20%0',_0x3f6344={'type':'format','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x457879=function(_0x47c5d3){const _0x595065=_0x47c5d3['getFirstRange']();let _0x21e4b9=_0x595065['start']['nodeAfter'];for(;_0x21e4b9&&_0x595065['containsItem'](_0x21e4b9);){if(_0x21e4b9['getAttribute']('listIndent')>0x0)return!0x1;_0x21e4b9=_0x21e4b9['nextSibling'];}return!0x0;}(_0x13268e)?o(_0x2315ac,'*Format:*\x20remove\x20from\x20%0',o(_0x2315ac,function(_0x3ea314){return'ELEMENT_'+_0x3ea314['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x13268e))):o(_0x2315ac,'*Outdent:*\x20%0',o(_0x2315ac,'ELEMENT_LIST_ITEM')),_0x3f6344={'type':'format','content':_0x457879};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13a2ec['multipleBlocks']&&(_0x457879='*Merge:*\x20%0',_0x3f6344={'type':'deletion','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_LIST_ITEM'))});}return _0x3f6344;});}}function Ee(_0x14c003){let _0x324aec=_0x14c003['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x324aec;){const _0x3cbc9a=_0x324aec['getAttribute']('listItemId');if(!_0x3cbc9a)return!0x1;if(_0x3cbc9a==_0x14c003['data']['newValue'])return'newValue';if(_0x3cbc9a==_0x14c003['data']['oldValue'])return'oldValue';_0x324aec=_0x324aec['previousSibling'];}return!0x1;}class pe extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5d1c4c=this['editor']['config']['get']('list.properties'),_0x236b2f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d1c4c['styles']&&(_0x236b2f['enableDefaultAttributesIntegration']('listStyle'),_0x236b2f['registerBlockAttribute']('listStyle')),_0x5d1c4c['reversed']&&(_0x236b2f['enableDefaultAttributesIntegration']('listReversed'),_0x236b2f['registerBlockAttribute']('listReversed')),_0x5d1c4c['startIndex']&&(_0x236b2f['enableDefaultAttributesIntegration']('listStart'),_0x236b2f['registerBlockAttribute']('listStart'));const _0x6aef0={'type':'format','content':''};_0x236b2f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b6f3a=this['editor']['locale'];_0x236b2f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b6f3a,'FORMAT_LIST_REVERSED')),_0x236b2f['descriptionFactory']['registerDescriptionCallback'](_0x16ae9d=>{const {data:_0x56df56}=_0x16ae9d;if(_0x56df56&&'listReversed'==_0x56df56['key'])return null==_0x56df56['newValue']||0x0==_0x56df56['newValue']&&null==_0x56df56['oldValue']?_0x6aef0:void 0x0;}),_0x236b2f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b6f3a,'FORMAT_LIST_START')),_0x236b2f['descriptionFactory']['registerDescriptionCallback'](_0x48c9b0=>{const {data:_0x2c1c85}=_0x48c9b0;if(_0x2c1c85&&'listStart'==_0x2c1c85['key'])return null==_0x2c1c85['newValue']||0x1==_0x2c1c85['newValue']&&null==_0x2c1c85['oldValue']?_0x6aef0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38140b=>{if(_0x38140b['batch']['isUndo'])return!0x1;let _0x44de5a=!0x1;const _0x5ad629=_0x236b2f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c3d09=>{const _0x4e61fe=_0x236b2f['_getAttributeKey'](_0x3c3d09);return'listStart'==_0x4e61fe||'listReversed'==_0x4e61fe;});for(const _0x355571 of _0x5ad629){const _0x58bcf7=_0x355571['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x58bcf7||'customNumbered'==_0x58bcf7)continue;_0x236b2f['_findSuggestions'](_0x355571['getFirstRange'](),'attribute')['find'](_0x2cafb3=>'listType'==_0x236b2f['_getAttributeKey'](_0x2cafb3['suggestion']))||(_0x38140b['removeMarker'](_0x355571['getFirstMarker']()),_0x44de5a=!0x0);}return _0x44de5a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1130c8){const _0x2f04e0=this['editor']['locale'],{data:_0x44cdc7}=_0x1130c8,_0x162842={'type':'format','content':''};if(!_0x44cdc7||'listStyle'!=_0x44cdc7['key'])return;if(!_0x44cdc7['oldValue'])return'default'==_0x44cdc7['newValue']?_0x162842:{'type':'format','content':''+o(_0x2f04e0,'*Set\x20format:*\x20%0',o(_0x2f04e0,this['_getTranslationKeyForListStyle'](_0x44cdc7['newValue'])))};if(!_0x44cdc7['newValue']){if('default'==_0x44cdc7['oldValue'])return _0x162842;let _0x2fe1b2=_0x1130c8['head'];for(;_0x2fe1b2;){if(_0x2fe1b2['data']&&'listType'==_0x2fe1b2['data']['key']&&_0x2fe1b2['data']['newValue'])return _0x162842;_0x2fe1b2=_0x2fe1b2['next'];}return{'type':'format','content':''+o(_0x2f04e0,'*Remove\x20format:*\x20%0',o(_0x2f04e0,this['_getTranslationKeyForListStyle'](_0x44cdc7['oldValue'])))};}if('default'!=_0x44cdc7['newValue'])return{'type':'format','content':''+o(_0x2f04e0,'*Set\x20format:*\x20%0',o(_0x2f04e0,this['_getTranslationKeyForListStyle'](_0x44cdc7['newValue'])))};let _0x294f01=_0x1130c8['head'];for(;_0x294f01;){if(_0x294f01['data']&&'listType'==_0x294f01['data']['key']&&_0x294f01['data']['newValue']&&_0x294f01['data']['oldValue'])return _0x162842;_0x294f01=_0x294f01['next'];}return{'type':'format','content':o(_0x2f04e0,'*Set\x20format:*\x20%0',o(_0x2f04e0,'ELEMENT_'+_0x1130c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2685cd=this['editor'],_0x1ab49b=_0x2685cd['locale'];_0x2685cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f849=>{if('formatBlock'!=_0x29f849['type'])return;const {data:_0x28d83d}=_0x29f849;if(!_0x28d83d)return;let _0x52b46a,_0x5c5e38;switch(_0x28d83d['commandName']){case'listStyle':_0x52b46a='*Change\x20to:*\x20%0',_0x5c5e38={'type':'format','content':o(_0x1ab49b,_0x52b46a,o(_0x1ab49b,this['_getTranslationKeyForListStyle'](_0x28d83d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52b46a=_0x28d83d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c5e38={'type':'format','content':o(_0x1ab49b,_0x52b46a)};break;case'listStart':_0x52b46a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c5e38={'type':'format','content':o(_0x1ab49b,_0x52b46a,_0x28d83d['commandParams'][0x0]['startIndex'])};}return _0x5c5e38;});}['_getTranslationKeyForListStyle'](_0x4b0558){return'ELEMENT_'+function(_0x19e33b){if(ye['includes'](_0x19e33b))return'bulleted';if(Se['includes'](_0x19e33b))return'numbered';return null;}(_0x4b0558)['toUpperCase']()+'_LIST_'+_0x4b0558['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2d1259{static get['requires'](){return[_0x4f605c];}['init'](){const _0xa288d3=this['editor'],_0x547158=_0xa288d3['plugins']['get']('TrackChangesEditing'),_0x505247=_0xa288d3['commands']['get']('enter');_0x547158['enableCommand']('enter',()=>{_0xa288d3['model']['change'](_0x35696f=>{const _0x1c3c0e=_0xa288d3['model']['document']['selection'],_0x99cedc=_0x1c3c0e['getFirstPosition'](),_0x28083c=_0x43155d['fromRange'](_0x1c3c0e['getFirstRange']());if(_0x505247['enterBlock'](_0x35696f)){const _0x1b1cd1=_0xa288d3['model']['createPositionAt'](_0x99cedc['parent']['nextSibling'],0x0),_0x20f13f=_0x35696f['createRange'](_0x99cedc,_0x1b1cd1);_0x547158['markInsertion'](_0x20f13f);}else _0x35696f['setSelection'](_0x35696f['createRange'](_0x28083c['end']));_0x28083c['detach'](),_0x505247['fire']('afterExecute',{'writer':_0x35696f});});}),_0xa288d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xa288d3,'split'),{'priority':'high'}),_0xa288d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36ea8e,_0x253875,_0x53b4cf)=>{const _0x4fa719=_0x53b4cf['mapper']['markerNameToElements'](_0x253875['markerName']);if(_0x4fa719){for(const _0x12871e of _0x4fa719)_0x12871e['hasClass']('ck-suggestion-marker-split')&&(_0x53b4cf['mapper']['unbindElementFromMarkerName'](_0x12871e,_0x253875['markerName']),_0x53b4cf['writer']['remove'](_0x12871e));}},{'priority':'high'}),_0xa288d3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27f2fd,_0x46d31b,_0x44d50d)=>{_0x44d50d['options']['showSuggestionHighlights']&&_e(_0xa288d3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x27f2fd,_0x46d31b,_0x44d50d);},{'priority':'high'});}}class X extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x33676f=this['editor']['plugins']['get']('TrackChangesEditing');_0x33676f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x33676f['enableCommand']('findNext'),_0x33676f['enableCommand']('findPrevious'),_0x33676f['enableCommand']('replace'),_0x33676f['enableCommand']('replaceAll');}['handleFindCommand'](_0x87ee9d,_0x450802,_0x1fba5d={}){const _0x256fa4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x87ee9d(_0x1ea9b8=>{let _0x56b7f7=('string'==typeof _0x450802?_0x256fa4['findByTextCallback'](_0x450802,_0x1fba5d):_0x450802)(_0x1ea9b8);Array['isArray'](_0x56b7f7)&&(_0x56b7f7={'results':_0x56b7f7,'searchText':'string'==typeof _0x450802?_0x450802:''});const _0xee4e9=_0x56b7f7['results']['filter'](_0x2a9c9d=>!0x1===this['_isInDeletionRange'](_0x2a9c9d,_0x1ea9b8['item']));return{..._0x56b7f7,'results':_0xee4e9};},_0x1fba5d);}['_isInDeletionRange'](_0x3cb35d,_0x33593a){const _0x2530c3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33593a,_0x3cb35d['start']),this['editor']['model']['createPositionAt'](_0x33593a,_0x3cb35d['end']));for(const _0x5015d7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2530c3['getIntersection'](_0x5015d7['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 _0x2d1259{['afterInit'](){const _0x2d334c=this['editor']['locale'],_0x37b49d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x36cf81,commandName:_0x4f87bc}of ro)this['editor']['plugins']['has'](_0x36cf81)&&(_0x37b49d['enableDefaultAttributesIntegration'](_0x4f87bc),_0x37b49d['registerInlineAttribute'](_0x4f87bc));_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2d334c,'FORMAT_FONT_SIZE')),_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2d334c,'FORMAT_FONT_FAMILY')),_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2d334c,'FORMAT_FONT_COLOR')),_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2d334c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf9a249=this['editor'],_0x38bb06=_0xf9a249['locale'];_0xf9a249['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18307a=>{const _0x24b93c=_0x38bb06['t'];if('formatInline'!=_0x18307a['type'])return;const {data:_0x53cd64}=_0x18307a;if(null!=_0x53cd64){if('fontSize'==_0x53cd64['commandName']){const _0xa2e643=_0x53cd64['commandParams'][0x0]['value'];if(_0xa2e643){const _0x3fb3a8=_0x24b93c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d4b68=>_0x4d4b68['model']==_0xa2e643)['title'])['toLowerCase']();return{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20size:*\x20%0',_0x3fb3a8)};}return{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53cd64['commandName']){const _0x2a155f=_0x53cd64['commandParams'][0x0]['value'];return _0x2a155f?{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20family:*\x20%0',_0x2a155f)}:{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53cd64['commandName']){const _0xae0499=_0x53cd64['commandParams'][0x0]['value'];if(_0xae0499){const _0x12b5c2=_0x460045(this['editor']['config']['get']('fontColor.colors'))['find'](_0x22b285=>_0x22b285['model']==_0xae0499);let _0x577503=_0xae0499,_0x8d9825='';return _0x12b5c2&&(_0x577503=_0x12b5c2['label'],_0x8d9825=_0x24b93c(_0x577503)['toLowerCase']()),{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20color:*\x20%0',_0x8d9825)['trim'](),'color':{'value':_0xae0499,'title':_0x8d9825||_0x577503}};}return{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53cd64['commandName']){const _0x3d3f54=_0x53cd64['commandParams'][0x0]['value'];if(_0x3d3f54){const _0x5b016d=_0x460045(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c054a=>_0x5c054a['model']==_0x3d3f54);let _0xbc493f=_0x3d3f54,_0x364b3e='';return _0x5b016d&&(_0xbc493f=_0x5b016d['label'],_0x364b3e=_0x24b93c(_0xbc493f)['toLowerCase']()),{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20background\x20color:*\x20%0',_0x364b3e)['trim'](),'color':{'value':_0x3d3f54,'title':_0x364b3e||_0xbc493f}};}return{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2d1259{['afterInit'](){const _0x1a64fd=this['editor'],_0xc1c1c2=_0x1a64fd['plugins']['get']('TrackChangesEditing'),_0x1057ce=_0x1a64fd['commands']['get']('copyFormat'),_0x221bb2=_0x1a64fd['commands']['get']('pasteFormat');_0x1057ce&&_0x221bb2&&(_0xc1c1c2['enableDefaultAttributesIntegration']('pasteFormat'),_0xc1c1c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xe4544e=this['editor'],_0x68b9c5=_0xe4544e['locale'];_0xe4544e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1687f5=>{if('formatBlock'!=_0x1687f5['type']&&'formatInline'!=_0x1687f5['type'])return;const {data:_0x389c4e}=_0x1687f5;if(_0x389c4e&&'pasteFormat'===_0x389c4e['commandName']){const _0x12fb41=[],_0x5b7b05=_0x389c4e['commandParams'][0x0];for(const [_0x34c104,_0xd0771c]of Object['entries'](_0x5b7b05))_0x12fb41['push'](so(_0xe4544e,_0x34c104,_0xd0771c));return _0x12fb41['length']?{'type':'format','content':o(_0x68b9c5,'*Set\x20format\x20to:*\x20%0',_0x12fb41['join'](',\x20'))}:{'type':'format','content':o(_0x68b9c5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x53299f,_0x5cde2c,_0x3957d4){const _0x457571=_0x53299f['locale']['t'],_0x3a516f=_0x5cde2c['split'](/(?=[A-Z])/)['join']('\x20'),_0x76d825=_0x457571(_0x3a516f['charAt'](0x0)['toUpperCase']()+_0x3a516f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3957d4)return _0x76d825;if('fontColor'===_0x5cde2c||'fontBackgroundColor'===_0x5cde2c){const _0x20c30d=_0x460045(_0x53299f['config']['get']('fontColor.colors'))['find'](_0x202038=>_0x202038['model']==_0x3957d4);return _0x76d825+'\x20('+(_0x20c30d?_0x457571(_0x20c30d['label'])['toLowerCase']():_0x3957d4)+')';}if('fontSize'===_0x5cde2c&&isNaN(parseFloat(_0x3957d4))){const _0x395f36=_0x53299f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53299f['config']['get']('fontSize.options'))['find'](_0x911aad=>_0x911aad['model']==_0x3957d4);return _0x76d825+'\x20('+(_0x395f36?_0x457571(_0x395f36['title'])['toLowerCase']():_0x3957d4)+')';}return _0x76d825+'\x20('+_0x3957d4+')';}class tt extends _0x2d1259{['_headingOptions'];['afterInit'](){const _0x1bdb45=this['editor'];if(!_0x1bdb45['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1bdb45['config']['get']('heading.options');const _0x29bee8=_0x1bdb45['locale'],_0x58ab2b=_0x1bdb45['plugins']['get']('TrackChangesEditing');_0x58ab2b['enableDefaultAttributesIntegration']('heading');for(const _0x2aca3c of this['_headingOptions'])'paragraph'!=_0x2aca3c['model']&&_0x58ab2b['descriptionFactory']['registerElementLabel'](_0x2aca3c['model'],_0x1678ca=>{const _0x3034c5=this['_getHeadingLevel'](_0x2aca3c['model']);return null!==_0x3034c5?_0x5a366c(_0x1678ca,_0x3034c5):_0x3e4366(_0x1678ca,_0x2aca3c['title']);});function _0x5a366c(_0x514f65,_0x3fe142){return o(_0x29bee8,'ELEMENT_HEADING',[_0x514f65,_0x3fe142]);}function _0x3e4366(_0x2a56a4,_0x539ce3){return o(_0x29bee8,'ELEMENT_HEADING_CUSTOM',[_0x2a56a4,_0x539ce3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a394=this['editor'],_0x161b6a=_0x35a394['locale'];function _0x2e5019(_0x336d7e,_0x387d1f){return o(_0x161b6a,'ELEMENT_HEADING_CUSTOM',[_0x336d7e,_0x387d1f]);}_0x35a394['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214321=>{if('formatBlock'!=_0x214321['type'])return;const {data:_0x3c38c2}=_0x214321;if(_0x3c38c2&&'heading'==_0x3c38c2['commandName']){const _0x6faf35=_0x3c38c2['commandParams'][0x0]['value'],_0x22ea28=this['_getHeadingLevel'](_0x6faf35);if(null!==_0x22ea28)return{'type':'format','content':o(_0x161b6a,'*Change\x20to:*\x20%0',(_0x38d1a2=0x1,_0x290c4a=_0x22ea28,o(_0x161b6a,'ELEMENT_HEADING',[_0x38d1a2,_0x290c4a])))};const _0x4bb743=this['_headingOptions']['find'](_0x40be49=>_0x40be49['model']===_0x6faf35)['title'];return{'type':'format','content':o(_0x161b6a,'*Change\x20to:*\x20%0',_0x2e5019(0x1,_0x4bb743))};}var _0x38d1a2,_0x290c4a;});}['_getHeadingLevel'](_0x4a0133){const _0x49f8c9=_0x4a0133['match'](/^heading(\d+)/);if(_0x49f8c9)return _0x49f8c9[0x1];const _0x37a5c9=this['_headingOptions']?.['find'](_0x2881f4=>_0x2881f4['model']==_0x4a0133);if(_0x37a5c9&&_0x37a5c9['view']){const _0x142b6d=_0x37a5c9['view'],_0x5891b6=(_0x142b6d['name']??_0x142b6d)['match'](/^h(\d+)/);if(_0x5891b6)return _0x5891b6[0x1];}return null;}}class et extends _0x2d1259{['afterInit'](){const _0x3657a1=this['editor'];if(!_0x3657a1['plugins']['has']('HighlightEditing'))return;const _0x4b0c1b=_0x3657a1['plugins']['get']('TrackChangesEditing'),_0x3d2b97=_0x3657a1['locale'];_0x4b0c1b['enableDefaultAttributesIntegration']('highlight'),_0x4b0c1b['registerInlineAttribute']('highlight'),_0x4b0c1b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3d2b97,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a94f0=this['editor'],_0x12dde3=_0x2a94f0['locale'];_0x2a94f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150139=>{if('formatInline'!=_0x150139['type'])return;const {data:_0x4836db}=_0x150139;if(_0x4836db&&'highlight'==_0x4836db['commandName']){const _0x30038d=_0x12dde3['t'],_0x200fd6=_0x4836db['commandParams'][0x0]['value'];if(_0x200fd6){const _0x2a8caf=_0x2a94f0['config']['get']('highlight.options')['find'](_0x6fab77=>_0x6fab77['model']==_0x200fd6),_0x2a6447=_0x30038d(_0x2a8caf['title'])['toLowerCase']();return{'type':'format','content':o(_0x12dde3,'*Set\x20highlight:*\x20%0',_0x2a6447),'color':{'value':_0x2a8caf['color'],'title':_0x2a8caf['title']}};}return{'type':'format','content':o(_0x12dde3,'*Remove\x20highlight*',o(_0x12dde3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2d1259{['afterInit'](){const _0x5913e0=this['editor'];if(!_0x5913e0['plugins']['has']('HorizontalLineEditing'))return;_0x5913e0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa90f82=_0x5913e0['plugins']['get']('TrackChangesEditing'),_0x16cba8=_0x5913e0['locale'];_0xa90f82['descriptionFactory']['registerElementLabel']('horizontalLine',_0x56788d=>o(_0x16cba8,'ELEMENT_HORIZONTAL_LINE',_0x56788d)),_0x5913e0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2f6295,{writer:_0x41c64e,options:_0x19303f})=>{if(!_0x19303f['showSuggestionHighlights'])return null;const _0x3f2c3f=_0x41c64e['createContainerElement']('div'),_0x3bc76f=_0x41c64e['createEmptyElement']('hr');return _0x41c64e['addClass']('ck-horizontal-line',_0x3f2c3f),_0x41c64e['insert'](_0x41c64e['createPositionAt'](_0x3f2c3f,0x0),_0x3bc76f),_0x3f2c3f;},'converterPriority':'high'});}}class st extends _0x2d1259{['afterInit'](){const _0xea2efe=this['editor'];if(!_0xea2efe['plugins']['has']('HtmlEmbed'))return;const _0x2d92d7=_0xea2efe['plugins']['get']('TrackChangesEditing'),_0x4b8238=_0xea2efe['locale'];_0x2d92d7['descriptionFactory']['registerElementLabel']('rawHtml',_0x381205=>o(_0x4b8238,'ELEMENT_HTML_EMBED',_0x381205)),_0x2d92d7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d92d7['registerBlockAttribute']('value'),_0x2d92d7['descriptionFactory']['registerDescriptionCallback'](_0x83e289=>{if('attribute'!=_0x83e289['type'])return;const {data:_0x5c0f79}=_0x83e289;if(_0x5c0f79&&'value'==_0x5c0f79['key']&&_0x83e289['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b0afe=o(_0x4b8238,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b8238,'*Change\x20%0\x20content*',_0x3b0afe)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a74eb=this['editor'],_0x3cc022=_0x2a74eb['locale'];_0x2a74eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd8b4=>{if('formatBlock'!=_0x1cd8b4['type'])return;const {data:_0x233647}=_0x1cd8b4;if(_0x233647&&'htmlEmbed'==_0x233647['commandName']){const _0x244fbe=o(_0x3cc022,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3cc022,'*Change\x20%0\x20content*',_0x244fbe)};}});}}class nt extends _0x2d1259{['afterInit'](){const _0x25f25c=this['editor'];if(!_0x25f25c['plugins']['has']('ImageEditing'))return;const _0x19fc32=_0x25f25c['plugins']['get']('TrackChangesEditing'),_0x54ab32=_0x25f25c['plugins']['get']('ImageUtils'),_0x401b31=_0x25f25c['locale'];_0x19fc32['enableCommand']('insertImage'),_0x19fc32['descriptionFactory']['registerElementLabel']('imageBlock',_0x36d167=>o(_0x401b31,'ELEMENT_IMAGE',_0x36d167)),_0x19fc32['descriptionFactory']['registerElementLabel']('imageInline',_0x4ef194=>o(_0x401b31,'ELEMENT_INLINE_IMAGE',_0x4ef194)),_0x19fc32['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x401b31,'ELEMENT_CAPTION')),_0x25f25c['plugins']['has']('ImageUploadEditing')&&_0x19fc32['enableCommand']('uploadImage'),_0x25f25c['plugins']['has']('ImageBlockEditing')&&_0x25f25c['plugins']['has']('ImageInlineEditing')&&(_0x19fc32['enableCommand']('imageTypeInline',(_0x3eb3e4,_0x571828)=>{const _0x289052=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']);_0x25f25c['model']['change'](()=>{_0x19fc32['markBlockFormat'](_0x289052,{'commandName':'imageTypeInline','commandParams':[_0x571828]},[],'convertBlockImageToInline');});}),_0x19fc32['enableCommand']('imageTypeBlock',(_0x56a09d,_0x40bd6a)=>{_0x25f25c['model']['change'](_0x2dd68a=>{let _0x5d9031=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x553837=_0x2dd68a['createRangeOn'](_0x5d9031);const _0x34f2e0=_0x1065f6['fromPosition'](_0x553837['start'],'toPrevious'),_0x1a59ef=_0x1065f6['fromPosition'](_0x553837['end'],'toNext');_0x19fc32['forceDefaultExecution'](()=>_0x56a09d(_0x40bd6a)),_0x5d9031=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x553837=_0x2dd68a['createRangeOn'](_0x5d9031);const _0x287532=_0x2dd68a['createRange'](_0x34f2e0,_0x1a59ef);_0x34f2e0['detach'](),_0x1a59ef['detach'](),_0x19fc32['markBlockFormat'](_0x5d9031,{'commandName':'imageTypeInline','commandParams':[_0x40bd6a]},[],'convertInlineImageToBlock'),_0x287532['start']['isBefore'](_0x553837['start'])&&_0x19fc32['markInsertion'](_0x2dd68a['createRange'](_0x287532['start'],_0x553837['start']),'convertInlineImageToBlock'),_0x553837['end']['isBefore'](_0x287532['end'])&&_0x19fc32['markInsertion'](_0x2dd68a['createRange'](_0x553837['end'],_0x287532['end']),'convertInlineImageToBlock');});}),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x19fc32['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x125a7d])=>{const _0x7872=_0x19fc32['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4654a2=_0x125a7d['start'],_0x20c61a=_0x125a7d['end'];const _0x1971da=_0x25f25c['model']['schema']['getNearestSelectionRange'](_0x4654a2,'backward'),_0x2c4fe2=_0x25f25c['model']['schema']['getNearestSelectionRange'](_0x20c61a,'forward');_0x1971da['isCollapsed']&&(_0x4654a2=_0x1971da['start']),_0x2c4fe2['isCollapsed']&&(_0x20c61a=_0x2c4fe2['end']),_0x7872([_0x25f25c['model']['createRange'](_0x4654a2,_0x20c61a)]);}),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x338a9a),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x338a9a)),_0x25f25c['plugins']['has']('ImageCaptionEditing')&&(_0x19fc32['enableCommand']('toggleImageCaption',(_0x4bc5f4,_0x3da1e1)=>{const _0x1f024b=_0x25f25c['plugins']['get']('ImageCaptionUtils');let _0x14dc17=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x2b96a3=_0x1f024b['getCaptionFromImageModelElement'](_0x14dc17);_0x25f25c['model']['change'](()=>{if(_0x2b96a3)return void _0x19fc32['markDeletion'](_0x25f25c['model']['createRangeOn'](_0x2b96a3));const _0x2ff725=_0x54ab32['isBlockImage'](_0x14dc17);_0x4bc5f4(_0x3da1e1),_0x14dc17=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x2b96a3=_0x1f024b['getCaptionFromImageModelElement'](_0x14dc17),_0x19fc32['markInsertion'](_0x25f25c['model']['createRangeOn'](_0x2b96a3),_0x2ff725?null:'imageCaption');});}),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x338a9a));const _0x4e6bf1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xae4b40(_0x12b283,_0x56fb77){const _0xd26593=_0x4e6bf1['findIndex'](({type:_0x51fe79,subType:_0x13cc1b})=>_0x12b283['type']==_0x51fe79&&_0x12b283['subType']==_0x13cc1b),_0x2c81b7=_0x4e6bf1['findIndex'](({type:_0x30ec48,subType:_0x4cfea3})=>_0x56fb77['type']==_0x30ec48&&_0x56fb77['subType']==_0x4cfea3);if(_0xd26593<0x0||_0x2c81b7<0x0)return!0x1;const _0x45237b=_0x12b283['getFirstRange'](),_0x3df997=_0x56fb77['getFirstRange']();if((0x0==_0xd26593||0x1==_0xd26593)&&0x2==_0x2c81b7&&_0x45237b['isIntersecting'](_0x3df997))return!0x0;if(0x2==_0xd26593&&0x3==_0x2c81b7){const _0x237084=_0x19fc32['_findSuggestions'](_0x45237b,'insertion')['filter'](({suggestion:_0x4046dc,meta:_0x95501a})=>_0x95501a['isOwn']&&'convertInlineImageToBlock'==_0x4046dc['subType']);if(_0x237084['length']>0x1&&_0x3df997['end']['isEqual'](_0x45237b['start']))return!0x0;if(0x1==_0x237084['length']&&(_0x45237b['start']['isEqual'](_0x3df997['end'])||_0x45237b['end']['isEqual'](_0x3df997['start'])))return!0x0;}if(0x3==_0xd26593&&0x3==_0x2c81b7&&_0x45237b['start']['isBefore'](_0x3df997['start'])){const _0x3ef9d5=_0x45237b['end']['nodeAfter'],_0x3d9100=_0x3df997['start']['nodeBefore'];return _0x54ab32['isBlockImage'](_0x3ef9d5)&&_0x3ef9d5===_0x3d9100;}return!0x1;}function _0x338a9a(_0x42fc21,_0x288534){return _0xae4b40(_0x42fc21,_0x288534)?[_0x42fc21,_0x288534]:_0xae4b40(_0x288534,_0x42fc21)?[_0x288534,_0x42fc21]:null;}_0x25f25c['plugins']['has']('ImageResize')&&(_0x19fc32['enableDefaultAttributesIntegration']('resizeImage'),_0x19fc32['registerBlockAttribute']('resizedWidth'),_0x19fc32['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x401b31,'FORMAT_IMAGE_SIZE'))),_0x25f25c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x19fc32['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x19fc32['registerBlockAttribute']('alt')),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x1c534e=>{if(!!_0x4e6bf1['find'](({type:_0x176e79,subType:_0x244d45})=>_0x1c534e['type']==_0x176e79&&_0x1c534e['subType']==_0x244d45))return _0x1c534e['previous']?{}:void 0x0;}),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x5bb829=>{if('insertion'==_0x5bb829['type']||'deletion'==_0x5bb829['type']){const _0x27ba09=_0x5bb829['getContainedElement']();if(_0x27ba09&&_0x27ba09['is']('element','caption'))return{'type':'insertion'==_0x5bb829['type']?'addObject':'removeObject','element':_0x27ba09,'quantity':0x1};}}),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x4b173b=>'formatBlock'==_0x4b173b['type']&&'convertInlineImageToBlock'==_0x4b173b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b173b['type']&&'convertBlockImageToInline'==_0x4b173b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x5a1144=>{if('attribute'!=_0x5a1144['type'])return;const {data:_0x29abf9}=_0x5a1144;if(!_0x29abf9||'alt'!=_0x29abf9['key'])return;const _0x30030c=_0x29abf9['newValue'];return _0x30030c?{'type':'format','content':o(_0x401b31,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30030c+'\x22')}:{'type':'format','content':o(_0x401b31,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed120b=this['editor'],_0x1e3d56=_0xed120b['locale'];_0xed120b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49cd24=>{if('formatBlock'!=_0x49cd24['type']&&'formatInline'!=_0x49cd24['type'])return;const {data:_0x107b03}=_0x49cd24;if(_0x107b03){if('imageTextAlternative'==_0x107b03['commandName']){const _0x481a62=_0x107b03['commandParams'][0x0]['newValue'];return _0x481a62?{'type':'format','content':o(_0x1e3d56,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x481a62+'\x22')}:{'type':'format','content':o(_0x1e3d56,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x107b03['commandName']){const _0x59094f=_0x107b03['commandParams'][0x0]['width'];return _0x59094f?{'type':'format','content':o(_0x1e3d56,'*Set\x20image\x20width:*\x20%0',_0x59094f)}:{'type':'format','content':o(_0x1e3d56,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x250a63=this['editor']['locale'],_0x53241b=this['editor']['plugins']['get']('TrackChangesEditing');_0x53241b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53241b['registerBlockAttribute']('src'),_0x53241b['descriptionFactory']['registerDescriptionCallback'](_0x291c68=>{if('attribute'!=_0x291c68['type'])return;const {data:_0x1e9435}=_0x291c68;return _0x1e9435&&'src'==_0x1e9435['key']?_0x1e9435['newValue']&&_0x1e9435['oldValue']?{'type':'format','content':o(_0x250a63,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59be2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x59be2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59be2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59be2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59be2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a82da=this['editor'],_0x4f0ea4=_0x4a82da['locale'];_0x4a82da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3339cb=>{if('formatBlock'!=_0x3339cb['type']&&'formatInline'!=_0x3339cb['type'])return;const {data:_0x4bd0aa}=_0x3339cb;if(!_0x4bd0aa||'replaceImageSource'!=_0x4bd0aa['commandName'])return;return{'type':'format','content':o(_0x4f0ea4,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2d1259{['afterInit'](){const _0x189034=this['editor'];if(!_0x189034['plugins']['has']('ImageStyleEditing'))return;const _0x40f3c6=_0x189034['plugins']['get']('TrackChangesEditing'),_0x3028bb=_0x189034['plugins']['get']('ImageUtils'),_0x1f4005={};_0x40f3c6['enableCommand']('imageStyle',(_0x555635,_0x147d9a)=>{const _0x21e2f4=_0x189034['plugins']['get']('Users')['me'],_0x127220=_0x189034['commands']['get']('imageStyle');let _0x5bea3f=_0x3028bb['getClosestSelectedImageElement'](_0x189034['model']['document']['selection']),_0x55bf9d=_0x189034['model']['createRangeOn'](_0x5bea3f),_0x4d6cdb=_0x127220['value'];if(_0x4d6cdb==_0x147d9a['value'])return;const _0x2ecb85={'commandName':'imageStyle','commandParams':[_0x147d9a],'formatGroupId':_0x6322ca()};_0x189034['model']['change'](()=>{if(_0x40f3c6['getSuggestions']()['filter'](_0x2c7a6e=>_0x2c7a6e['isInContent']&&_0x21e2f4==_0x2c7a6e['author']&&('formatBlock'==_0x2c7a6e['type']||'formatInline'==_0x2c7a6e['type'])&&('imageStylePreApply'==_0x2c7a6e['subType']||'imageStylePostApply'==_0x2c7a6e['subType'])&&_0x2c7a6e['getFirstRange']()['isEqual'](_0x55bf9d))['forEach'](_0xb9eb47=>_0x40f3c6['discardSuggestion'](_0xb9eb47['head'])),_0x5bea3f=_0x3028bb['getClosestSelectedImageElement'](_0x189034['model']['document']['selection']),_0x55bf9d=_0x189034['model']['createRangeOn'](_0x5bea3f),_0x127220['refresh'](),_0x189034['commands']['get']('imageTypeInline')['refresh'](),_0x189034['commands']['get']('imageTypeBlock')['refresh'](),_0x4d6cdb=_0x127220['value'],_0x4d6cdb!=_0x147d9a['value'])return _0x3028bb['isInlineImage'](_0x5bea3f)&&_0x127220['shouldConvertImageType'](_0x147d9a['value'],_0x5bea3f)?(_0x555635({..._0x147d9a,'setImageSizes':!0x1}),_0x5bea3f=_0x3028bb['getClosestSelectedImageElement'](_0x189034['model']['document']['selection']),void _0x40f3c6['markBlockFormat'](_0x5bea3f,{..._0x2ecb85,'commandReversedParams':[{'value':_0x4d6cdb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3028bb['isBlockImage'](_0x5bea3f)?_0x40f3c6['markBlockFormat'](_0x5bea3f,_0x2ecb85,[],'imageStylePostApply'):_0x40f3c6['markInlineFormat'](_0x55bf9d,_0x2ecb85,'imageStylePostApply'));});});for(const _0x54403c of _0x189034['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f4005[_0x54403c['name']]=_0x54403c['title']['toLowerCase']();_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf4bad0])=>{_0x3028bb['setImageNaturalSizeAttributes'](_0xf4bad0['getContainedElement']());}),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c811f,_0x57871a)=>{_0x40f3c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c811f,{'commandName':_0x57871a['commandName'],'commandParams':_0x57871a['commandReversedParams']});}),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x55277f,_0x1fe91a){if(_0x57ee25(_0x55277f,_0x1fe91a))return[_0x55277f,_0x1fe91a];if(_0x57ee25(_0x1fe91a,_0x55277f))return[_0x1fe91a,_0x55277f];return null;});const _0x442ab2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x57ee25(_0x3a6373,_0x2cc59c){const _0x1a9889=_0x442ab2['findIndex'](({type:_0x40acb7,subType:_0x1c7010})=>_0x3a6373['type']==_0x40acb7&&_0x3a6373['subType']==_0x1c7010),_0x4ce90e=_0x442ab2['findIndex'](({type:_0x22b7c6,subType:_0x383ac6})=>_0x2cc59c['type']==_0x22b7c6&&_0x2cc59c['subType']==_0x383ac6);if(_0x1a9889<0x0||_0x4ce90e<0x0)return!0x1;const _0x34148b=_0x3a6373['getFirstRange'](),_0x45c264=_0x2cc59c['getFirstRange']();if((0x0==_0x1a9889||0x1==_0x1a9889)&&0x2==_0x4ce90e&&_0x34148b['isIntersecting'](_0x45c264))return!0x0;if(0x2==_0x1a9889&&0x3==_0x4ce90e){const _0xb3c9c1=_0x40f3c6['_findSuggestions'](_0x34148b,'insertion')['filter'](({suggestion:_0x6e4765,meta:_0x814fba})=>_0x814fba['isOwn']&&'convertInlineImageToBlock'==_0x6e4765['subType']);if(_0xb3c9c1['length']>0x1&&_0x45c264['end']['isEqual'](_0x34148b['start']))return!0x0;if(0x1==_0xb3c9c1['length']&&(_0x34148b['start']['isEqual'](_0x45c264['end'])||_0x34148b['end']['isEqual'](_0x45c264['start'])))return!0x0;}if(0x3==_0x1a9889&&0x3==_0x4ce90e&&_0x34148b['start']['isBefore'](_0x45c264['start'])){const _0x81bdd0=_0x34148b['end']['nodeAfter'],_0x352239=_0x45c264['start']['nodeBefore'];return _0x3028bb['isBlockImage'](_0x81bdd0)&&_0x81bdd0===_0x352239;}return!0x1;}_0x189034['model']['document']['registerPostFixer'](()=>{let _0x407e7d=!0x1;const _0x43a7c1=Array['from'](_0x189034['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10224e,data:_0x269777}of _0x43a7c1){const {group:_0x3e320a,type:_0x5074f7,subType:_0x5df229,id:_0x51b53d}=_0x40f3c6['_splitMarkerName'](_0x10224e);if('suggestion'==_0x3e320a&&_0x40f3c6['hasSuggestion'](_0x51b53d)){if('formatBlock'==_0x5074f7&&('imageStylePreApply'==_0x5df229||'imageStylePostApply'==_0x5df229)){const _0x4136b5=_0x40f3c6['getSuggestion'](_0x51b53d);if(_0x269777['newRange']){const _0x54a6f9=_0x4136b5['getFirstRange']()['getContainedElement']();if(_0x3028bb['isBlockImage'](_0x54a6f9))continue;_0x40f3c6['discardSuggestion'](_0x4136b5),_0x407e7d=!0x0;}}if('insertion'==_0x5074f7&&'imageCaption'==_0x5df229&&!_0x269777['newRange']){const _0x5d1b8e=_0x40f3c6['getSuggestion'](_0x51b53d);_0x5d1b8e['next']&&_0x5d1b8e['next']['isInContent']&&(_0x40f3c6['discardSuggestion'](_0x5d1b8e['next']),_0x407e7d=!0x0);}}}return _0x407e7d;}),this['_registerLegacyDescription'](_0x1f4005);}['_registerLegacyDescription'](_0x21ed71){const _0x52cf39=this['editor'],_0xbe1f29=_0x52cf39['locale'];_0x52cf39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x346ea4=>{if('formatBlock'!=_0x346ea4['type']&&'formatInline'!=_0x346ea4['type'])return;const {data:_0x5a089e}=_0x346ea4;if(!_0x5a089e||'imageStyle'!=_0x5a089e['commandName'])return;const _0x2adb97=_0x5a089e['commandParams'][0x0]['value'];return _0x3eeacf('side'===_0x2adb97?o(_0xbe1f29,'FORMAT_SIDE_IMAGE'):_0x21ed71[_0x2adb97]||_0x2adb97);function _0x3eeacf(_0x3e54d1){return{'type':'format','content':o(_0xbe1f29,'*Format:*\x20%0',_0x3e54d1)};}});}}class at extends _0x2d1259{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c9c0b){super(_0x5c9c0b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x101922=this['editor'],_0x2b9c56=_0x101922['commands']['get']('importWord'),_0x79d2f=_0x101922['commands']['get']('trackChanges');_0x2b9c56&&(_0x2b9c56['on']('execute',(_0x48a124,[,_0x1e30ba])=>{this['_trackChangesValueDuringImport']=_0x79d2f['value'],_0x1e30ba['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b9c56,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b9c56,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x79d2f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x101922['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e803f,_0x5e6702){const {suggestions:_0x390ad8}=_0x5e6702,_0x8fe4d4=this['editor']['commands']['get']('trackChanges'),_0x35187f=_0x8fe4d4['value'];this['_trackChangesValueDuringImport']!==_0x35187f&&(_0x8fe4d4['execute'](),this['_trackChangesExecuted']=!0x0),_0x390ad8&&_0x390ad8['forEach'](({id:_0x3d1275,type:_0x7d1b14,author:_0x418705,created_at:_0x5edbd1})=>{const _0x5f0f9e={'id':_0x3d1275,'type':_0x7d1b14,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x418705,'createdAt':_0x5edbd1?new Date(_0x5edbd1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5f0f9e);});}}class ct extends _0x2d1259{['afterInit'](){const _0x1e5c7f=this['editor'],_0x545c39=_0x1e5c7f['plugins']['get']('TrackChangesEditing');if(_0x1e5c7f['plugins']['has']('IndentEditing')&&(_0x545c39['enableCommand']('indent'),_0x545c39['enableCommand']('outdent')),_0x1e5c7f['plugins']['has']('IndentBlock')){for(const _0x1ece85 of['indentBlock','outdentBlock'])_0x545c39['enableDefaultAttributesIntegration'](_0x1ece85);}const _0x3f59af=_0x1e5c7f['locale'];_0x545c39['registerBlockAttribute']('blockIndent'),_0x545c39['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3f59af,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fe0e2=this['editor'],_0xac778b=_0x4fe0e2['locale'],_0x375201=_0x4fe0e2['plugins']['get']('TrackChangesEditing');_0x375201['descriptionFactory']['registerDescriptionCallback'](_0x4d7807=>{if('formatBlock'!=_0x4d7807['type'])return;const {data:_0x5e4973}=_0x4d7807;if(!_0x5e4973)return;if('indentBlock'!=_0x5e4973['commandName']&&'outdentBlock'!=_0x5e4973['commandName'])return;const _0x561a03=_0x4d7807['getItems']()[0x0],_0x4e2805=_0x375201['descriptionFactory']['getItemLabel'](_0x561a03);return'indentBlock'==_0x5e4973['commandName']?{'type':'format','content':o(_0xac778b,'*Indent:*\x20%0',_0x4e2805)}:'outdentBlock'==_0x5e4973['commandName']?{'type':'format','content':o(_0xac778b,'*Outdent:*\x20%0',_0x4e2805)}:void 0x0;});}}class ut extends _0x2d1259{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2d1259{['afterInit'](){const _0x42c6f6=this['editor'];if(!_0x42c6f6['plugins']['has']('LinkEditing'))return;const _0x4f2de4=_0x42c6f6['plugins']['get']('TrackChangesEditing'),_0x203667=_0x42c6f6['commands']['get']('link');_0x4f2de4['enableDefaultAttributesIntegration']('link'),_0x4f2de4['enableDefaultAttributesIntegration']('unlink'),_0x4f2de4['registerInlineAttribute']('linkHref');for(const _0x471e30 of _0x203667['manualDecorators'])_0x4f2de4['registerInlineAttribute'](_0x471e30['id']),_0x4f2de4['descriptionFactory']['registerAttributeLabel'](_0x471e30['id'],'link\x20('+_0x471e30['label']['toLowerCase']()+')');_0x4f2de4['descriptionFactory']['registerDescriptionCallback'](_0x5d2633=>{if('attribute'!=_0x5d2633['type'])return;const {data:_0x8f8140}=_0x5d2633;if(!_0x8f8140||'linkHref'!=_0x8f8140['key'])return;const _0x6d6ee2=_0x8f8140['newValue'],_0x419587=_0x42c6f6['locale'];return{'type':'format','content':null==_0x6d6ee2?o(_0x419587,'*Remove\x20link*'):o(_0x419587,'*Set\x20link:*\x20%0','\x22'+_0x6d6ee2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x266ba3=this['editor'],_0x5bb017=_0x266ba3['locale'];_0x266ba3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d899e=>{if('formatInline'!=_0x1d899e['type'])return;const {data:_0x50b9cf}=_0x1d899e;if(_0x50b9cf){if('link'==_0x50b9cf['commandName']){const _0x4b944c=_0x50b9cf['commandParams'][0x0];return{'type':'format','content':o(_0x5bb017,'*Set\x20link:*\x20%0','\x22'+_0x4b944c+'\x22')};}return'unlink'==_0x50b9cf['commandName']?{'type':'format','content':o(_0x5bb017,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2d1259{['afterInit'](){const _0x1898b7=this['editor'],_0x4c42d7=_0x1898b7['locale'];if(!_0x1898b7['plugins']['has']('LegacyListEditing'))return;const _0x2026d6=_0x1898b7['plugins']['get']('TrackChangesEditing'),_0x59ac7e=_0x1898b7['plugins']['has']('LegacyTodoListEditing');function _0x2803e1(_0xb5acca){return()=>{const _0x5e1eea=_0x1898b7['model']['document']['selection'],_0x110fd2=_0x1898b7['commands']['get'](_0xb5acca);if(_0x110fd2['value'])return void _0x1898b7['execute']('paragraph',{});const _0x388789=_0xb5acca['slice'](0x0,-0x4),_0x58dd3f=function(_0x3aac25,_0x1d6458,_0x178da9){let _0x2c8639=Array['from'](_0x3aac25)['filter'](_0x4e4afe=>function(_0x524f3f,_0xd27bbe){return _0xd27bbe['checkChild'](_0x524f3f['parent'],'listItem')&&!_0xd27bbe['isObject'](_0x524f3f);}(_0x4e4afe,_0x178da9));_0x2c8639=_0x2c8639['filter'](_0x116e66=>!_0x116e66['is']('element','listItem')||_0x116e66['getAttribute']('listType')!=_0x1d6458);const _0x2dbf4f=new Set();for(const _0x4cf17c of _0x2c8639)_0x4cf17c['is']('element','listItem')?_0x2dbf4f['add'](fe(_0x4cf17c)):_0x2dbf4f['add'](_0x4cf17c);return Array['from'](_0x2dbf4f);}(_0x5e1eea['getSelectedBlocks'](),_0x388789,_0x1898b7['model']['schema']);_0x1898b7['model']['change'](()=>{for(const _0x53a82f of _0x58dd3f)_0x2026d6['markBlockFormat'](_0x53a82f,{'commandName':_0xb5acca,'commandParams':[{'forceValue':!_0x110fd2['value']}],'formatGroupId':'blockName'},ue(_0x53a82f));});};}function _0x23207d(_0x46e8ec){return()=>{const _0x103228=function(_0x27bd3b){let _0x7112b7=Array['from'](_0x27bd3b);const _0xdcda3f=_0x7112b7['findIndex'](_0x166cbc=>'listItem'!=_0x166cbc['name']);return _0xdcda3f>-0x1&&(_0x7112b7=_0x7112b7['slice'](0x0,_0xdcda3f)),_0x7112b7;}(_0x1898b7['model']['document']['selection']['getSelectedBlocks']()),_0x5f3ee0=_0x1898b7['model']['createRange'](_0x1898b7['model']['createPositionAt'](_0x103228[0x0],'before'),_0x1898b7['model']['createPositionAt'](_0x103228[_0x103228['length']-0x1],'end'));_0x1898b7['model']['change'](()=>{_0x2026d6['markBlockFormat'](_0x5f3ee0,{'commandName':_0x46e8ec,'commandParams':[],'formatGroupId':'listIndent'},function(_0x252c0e){const _0x38721f=new Set();for(const _0x2bd5f5 of _0x252c0e){let _0x27341c=_0x2bd5f5['nextSibling'];for(;_0x27341c&&_0x27341c['getAttribute']('listIndent')>_0x2bd5f5['getAttribute']('listIndent');)_0x38721f['add'](_0x27341c),_0x27341c=_0x27341c['nextSibling'];}return Array['from'](_0x38721f);}(_0x103228));});};}_0x2026d6['enableCommand']('numberedList',_0x2803e1('numberedList')),_0x2026d6['enableCommand']('bulletedList',_0x2803e1('bulletedList')),_0x59ac7e&&_0x2026d6['enableCommand']('todoList',_0x2803e1('todoList')),_0x2026d6['enableCommand']('indentList',_0x23207d('indentList')),_0x2026d6['enableCommand']('outdentList',_0x23207d('outdentList')),_0x59ac7e&&_0x2026d6['enableCommand']('checkTodoList',()=>{const _0x5be60a=_0x1898b7['commands']['get']('checkTodoList'),_0x505e28=Array['from'](_0x5be60a['_selectedElements']);_0x505e28['filter'](_0xc08e0a=>_0xc08e0a['getAttribute']('todoListChecked')!=_0x5be60a['value']),_0x1898b7['model']['change'](()=>{for(const _0x17d45b of _0x505e28)_0x2026d6['markBlockFormat'](_0x17d45b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5be60a['value']}]});});}),_0x2026d6['descriptionFactory']['registerElementLabel']('listItem',_0xec94bf=>o(_0x4c42d7,'ELEMENT_LIST_ITEM',_0xec94bf)),_0x2026d6['descriptionFactory']['registerDescriptionCallback'](_0x51741b=>{if('formatBlock'!=_0x51741b['type']&&'formatInline'!=_0x51741b['type'])return;const {data:_0x39cbb5}=_0x51741b;if(_0x39cbb5){if('numberedList'==_0x39cbb5['commandName']||'bulletedList'==_0x39cbb5['commandName']||'todoList'==_0x39cbb5['commandName'])switch(_0x39cbb5['commandName']['replace']('List','')){case'bulleted':return _0x33425b(o(_0x4c42d7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33425b(o(_0x4c42d7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33425b(o(_0x4c42d7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x39cbb5['commandName'])return{'type':'format','content':o(_0x4c42d7,'*Indent:*\x20%0',o(_0x4c42d7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x39cbb5['commandName'])return{'type':'format','content':o(_0x4c42d7,'*Outdent:*\x20%0',o(_0x4c42d7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x39cbb5['commandName'])return _0x39cbb5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c42d7,'*Check\x20item*')}:{'type':'format','content':o(_0x4c42d7,'*Uncheck\x20item*')};}function _0x33425b(_0xe15410){return{'type':'format','content':o(_0x4c42d7,'*Change\x20to:*\x20%0',_0xe15410)};}});}}function fe(_0x25b0a5){const _0x4fbe2d=_0x25b0a5['getAttribute']('listIndent');if(0x0==_0x4fbe2d)return _0x25b0a5;let _0x260f37=_0x25b0a5;for(;_0x25b0a5['previousSibling']&&_0x25b0a5['previousSibling']['is']('element','listItem');){const _0x5474fb=_0x25b0a5['previousSibling']['getAttribute']('listIndent');if(_0x5474fb==_0x4fbe2d)_0x260f37=_0x25b0a5['previousSibling'];else{if(_0x5474fb<_0x4fbe2d)break;}_0x25b0a5=_0x25b0a5['previousSibling'];}return _0x260f37;}function ue(_0xff75e9){const _0x432ed0=[];if(_0xff75e9['is']('element','listItem')&&_0xff75e9['getAttribute']('listIndent')>0x0){let _0x4a1fca=_0xff75e9['nextSibling'];for(;_0x4a1fca&&'listItem'==_0x4a1fca['name']&&_0x4a1fca['getAttribute']('listIndent')==_0xff75e9['getAttribute']('listIndent');)_0x432ed0['push'](_0x4a1fca),_0x4a1fca=_0x4a1fca['nextSibling'];}return _0x432ed0;}class W extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x6696ae=this['editor']['config']['get']('list.properties'),_0x5f3804=this['editor']['plugins']['get']('TrackChangesEditing');_0x6696ae['styles']&&_0x5f3804['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x6696ae['reversed']&&_0x5f3804['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x6696ae['startIndex']&&_0x5f3804['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5f3804['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1b3477,_0x3d09ef={}){const _0x2dea1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5882=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2dea1f['markMultiRangeBlockFormat'](_0x3e5882,{'commandName':'listStyle','commandParams':[{'type':_0x3d09ef['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x36adb3,_0x2a9e06={}){const _0x59771d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x566099=this['_getSuggestionBlocks'](_0x390bf9=>_0x390bf9['is']('element','listItem')&&'numbered'===_0x390bf9['getAttribute']('listType'));if(_0x566099['length']<0x1)return;const _0x3e5442=_0x566099['map'](_0x4e8785=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e8785,'before'),this['editor']['model']['createPositionAt'](_0x4e8785,0x0)));this['editor']['model']['change'](()=>{_0x59771d['markMultiRangeBlockFormat'](_0x3e5442,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a9e06['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24a8fc,_0x48b5c1={}){const _0x974449=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da5b0=this['_getSuggestionBlocks'](_0x29e80b=>_0x29e80b['is']('element','listItem')&&'numbered'===_0x29e80b['getAttribute']('listType'));if(_0x3da5b0['length']<0x1)return;const _0x43f24e=_0x3da5b0['map'](_0x58e577=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58e577,'before'),this['editor']['model']['createPositionAt'](_0x58e577,0x0)));this['editor']['model']['change'](()=>{_0x974449['markMultiRangeBlockFormat'](_0x43f24e,{'commandName':'listStart','commandParams':[{'startIndex':_0x48b5c1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5dee47){if('formatBlock'!=_0x5dee47['type']&&'formatInline'!=_0x5dee47['type'])return;const _0x5ea7a3=this['editor']['locale'],{data:_0x43652e}=_0x5dee47;if(!_0x43652e)return;let _0x2a9489,_0x42ece9;switch(_0x43652e['commandName']){case'listStyle':_0x2a9489='*Change\x20to:*\x20%0',_0x42ece9={'type':'format','content':o(_0x5ea7a3,_0x2a9489,o(_0x5ea7a3,this['_getTranslationKeyForListStyle'](_0x43652e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a9489=_0x43652e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x42ece9={'type':'format','content':o(_0x5ea7a3,_0x2a9489)};break;case'listStart':_0x2a9489='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x42ece9={'type':'format','content':o(_0x5ea7a3,_0x2a9489,_0x43652e['commandParams'][0x0]['startIndex'])};}return _0x42ece9;}['_getSuggestionBlocksForListStyle'](){const _0x18704c=this['editor']['plugins']['get']('LegacyListUtils');let _0x24adf2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x24adf2[0x0]?.['is']('element','listItem')&&_0x24adf2['unshift'](..._0x18704c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x24adf2[_0x24adf2['length']-0x1]?.['is']('element','listItem')&&_0x24adf2['push'](..._0x18704c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x24adf2=[...new Set(_0x24adf2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x24adf2=_0x24adf2['filter'](_0x2ad4d3=>_0x2ad4d3['is']('element','listItem'))),_0x24adf2;}['_getSuggestionBlocks'](_0x431c4c){const _0x2fc94a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2dea0d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x431c4c)['map'](_0x3dcad=>{const _0x44a6d5=this['editor']['model']['createPositionAt'](_0x3dcad,0x0);return[..._0x2fc94a['getSiblingNodes'](_0x44a6d5,'backward'),..._0x2fc94a['getSiblingNodes'](_0x44a6d5,'forward')];})['flat']();return _0x2dea0d=[...new Set(_0x2dea0d)],_0x2dea0d;}['_getTranslationKeyForListStyle'](_0x180cf0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x180cf0)||'default')['toUpperCase']()+'_LIST_'+_0x180cf0['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2d1259{['afterInit'](){const _0x564c83=this['editor'];if(!_0x564c83['plugins']['has']('MediaEmbedEditing'))return;const _0x369ac0=_0x564c83['plugins']['get']('TrackChangesEditing'),_0x1eaf85=_0x564c83['locale'];_0x369ac0['enableCommand']('mediaEmbed'),_0x369ac0['descriptionFactory']['registerElementLabel']('media',_0x4676aa=>o(_0x1eaf85,'ELEMENT_MEDIA',_0x4676aa)),_0x564c83['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5ae610,{writer:_0x417ba4,options:_0x524a86})=>{if(_0x524a86['showSuggestionHighlights'])return _0x417ba4['createEmptyElement']('div');},'converterPriority':'high'}),_0x564c83['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1197a2,_0x177741,_0x45b2ce)=>{_0x45b2ce['options']['showSuggestionHighlights']&&_0x1197a2['stop']();},{'priority':'high'});}}class mt extends _0x2d1259{['afterInit'](){const _0x1e561a=this['editor'];_0x1e561a['plugins']['has']('MentionEditing')&&_0x1e561a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2d1259{['afterInit'](){const _0x1ecacc=this['editor'];if(!_0x1ecacc['commands']['get']('insertMergeField'))return;_0x1ecacc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x1e68fb=_0x1ecacc['plugins']['get']('TrackChangesEditing'),_0x37e5e2=_0x1ecacc['locale'];_0x1e68fb['descriptionFactory']['registerElementLabel']('mergeField',_0x230c86=>o(_0x37e5e2,'ELEMENT_MERGE_FIELD',_0x230c86)),_0x1e68fb['descriptionFactory']['registerDescriptionCallback'](_0x30c374=>{if('insertion'!=_0x30c374['type']&&'deletion'!=_0x30c374['type'])return;const _0x393525=_0x30c374['getContainedElement']();if(null==_0x393525)return;if(!_0x393525['is']('element','mergeField'))return;const _0x25289b=_0x1ecacc['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x393525['getAttribute']('id'));return'insertion'==_0x30c374['type']?{'type':'insertion','content':o(_0x37e5e2,'*Insert:*\x20%0','\x22'+_0x25289b+'\x22\x20'+o(_0x37e5e2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x37e5e2,'*Remove:*\x20%0','\x22'+_0x25289b+'\x22\x20'+o(_0x37e5e2,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2d1259{['afterInit'](){const _0x4bc3e1=this['editor'],_0x5ab2c8=_0x4bc3e1['plugins']['get']('TrackChangesEditing');_0x4bc3e1['plugins']['has']('MultiLevelList')&&(_0x5ab2c8['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ab2c8['registerBlockAttribute']('listMarkerStyle'),_0x5ab2c8['descriptionFactory']['registerDescriptionCallback'](_0xc85976=>this['handleDescriptions'](_0xc85976)));}['handleDescriptions'](_0x3a3c0b){const _0x25ea42=this['editor']['locale'],{data:_0x5e5196}=_0x3a3c0b,_0x5988fe={'type':'format','content':''};if(_0x5e5196&&'listMarkerStyle'==_0x5e5196['key']){if(!_0x5e5196['oldValue'])return{'type':'format','content':o(_0x25ea42,'*Set\x20format:*\x20%0',o(_0x25ea42,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e5196['newValue']+')'};if(!_0x5e5196['newValue']){let _0x165408=_0x3a3c0b['head'];for(;_0x165408;){if(_0x165408['data']&&'listType'==_0x165408['data']['key']&&_0x165408['data']['newValue'])return _0x5988fe;_0x165408=_0x165408['next'];}return{'type':'format','content':o(_0x25ea42,'*Remove\x20format:*\x20%0',o(_0x25ea42,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e5196['oldValue']+')'};}}}}class kt extends _0x2d1259{['afterInit'](){const _0x3b1eef=this['editor'];if(!_0x3b1eef['plugins']['has']('PageBreakEditing'))return;_0x3b1eef['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a8449=_0x3b1eef['plugins']['get']('TrackChangesEditing'),_0x240b9f=_0x3b1eef['locale'];_0x3a8449['descriptionFactory']['registerElementLabel']('pageBreak',_0x37ebfe=>o(_0x240b9f,'ELEMENT_PAGE_BREAK',_0x37ebfe));}}class bt extends _0x2d1259{['afterInit'](){const _0x13f912=this['editor'];if(!_0x13f912['plugins']['has']('Paragraph'))return;const _0x58bb1c=_0x13f912['locale'],_0x15f243=_0x13f912['plugins']['get']('TrackChangesEditing');_0x15f243['descriptionFactory']['registerElementLabel']('paragraph',_0x5ee8b3=>o(_0x58bb1c,'ELEMENT_PARAGRAPH',_0x5ee8b3)),_0x15f243['enableDefaultAttributesIntegration']('paragraph'),_0x15f243['enableCommand']('insertParagraph'),_0x13f912['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x13f912),{'priority':'highest'}),_0x13f912['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5779dc,_0x1edc28,_0x4c2852)=>{_0x4c2852['options']['showSuggestionHighlights']&&nr(_0x13f912,{'showActiveMarker':!0x1})(_0x5779dc,_0x1edc28,_0x4c2852);},{'priority':'highest'});const _0x25beb1=_0x15f243['descriptionFactory'];_0x25beb1['registerDescriptionCallback'](_0x4acbf3=>{if('insertion'!==_0x4acbf3['type'])return;const {start:_0x58cc4d,end:_0x3ca60e}=_0x4acbf3['getFirstRange']();if(!_0x58cc4d['isTouching'](_0x3ca60e)||!_0x58cc4d['nodeAfter'])return;const _0x1128cf=_0x13f912['model']['schema'],_0x434dde=_0x58cc4d['nodeAfter'];return _0x1128cf['isBlock'](_0x434dde)&&!_0x1128cf['isLimit'](_0x434dde)&&_0x1128cf['checkChild'](_0x434dde,'$text')?{'type':'insertion','content':o(_0x58bb1c,'*Insert:*\x20%0',_0x25beb1['getItemLabel'](_0x434dde,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4baca3=this['editor'],_0x5dea55=_0x4baca3['locale'];_0x4baca3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a0926=>{if('formatBlock'!=_0x5a0926['type'])return;const {data:_0x163f9a}=_0x5a0926;return _0x163f9a&&'paragraph'==_0x163f9a['commandName']?{'type':'format','content':o(_0x5dea55,'*Change\x20to:*\x20%0',o(_0x5dea55,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c7d75,{showActiveMarker:_0x5dd137=!0x0}={}){return(_0x4d0955,_0x2e51a7,_0x4e725a)=>{const _0x457184=_0x3c7d75['plugins']['get']('TrackChangesEditing'),_0x216034=_0x2e51a7['markerRange']['start'],_0x4ceea1=_0x2e51a7['markerRange']['end'],_0x1e742c=_0x3c7d75['model']['schema'];if(!_0x216034['isTouching'](_0x4ceea1)||!_0x216034['nodeAfter'])return;const _0x547427=_0x216034['nodeAfter'];if(_0x1e742c['isBlock'](_0x547427)&&!_0x1e742c['isLimit'](_0x547427)&&_0x1e742c['checkChild'](_0x547427,'$text')){if(!_0x4e725a['consumable']['consume'](_0x2e51a7['markerRange'],_0x4d0955['name']))return;const {authorId:_0x1c3bfb}=_0x457184['_splitMarkerName'](_0x2e51a7['markerName']),_0x3fb2ba=_0x4e725a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1c3bfb}),_0x177859=_0x4e725a['mapper']['toViewPosition'](_0x4ceea1);_0x5dd137&&_0x457184['activeMarkers']['includes'](_0x2e51a7['markerName'])&&_0x4e725a['writer']['addClass']('ck-suggestion-marker--active',_0x3fb2ba),_0x4e725a['writer']['insert'](_0x177859,_0x3fb2ba),_0x4e725a['mapper']['bindElementToMarker'](_0x3fb2ba,_0x2e51a7['markerName']);}};}class wt extends _0x2d1259{['afterInit'](){const _0x3474f7=this['editor'];if(!_0x3474f7['plugins']['has']('RemoveFormatEditing'))return;_0x3474f7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c1582=this['editor'];_0x3c1582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e00a3=>{if('formatBlock'!=_0x1e00a3['type']&&'formatInline'!=_0x1e00a3['type'])return;const {data:_0x22d231}=_0x1e00a3;return _0x22d231&&'removeFormat'==_0x22d231['commandName']?{'type':'format','content':o(_0x3c1582['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2d1259{['afterInit'](){const _0x4ae17e=this['editor'];if(!_0x4ae17e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xd4fc8f=_0x4ae17e['plugins']['get']('TrackChangesEditing');_0xd4fc8f['enableCommand']('goToPreviousRestrictedEditingException'),_0xd4fc8f['enableCommand']('goToNextRestrictedEditingException');const _0x33688f=_0x4ae17e['plugins']['get']('RestrictedEditingModeEditing');_0x33688f['enableCommand']('trackChanges'),_0x33688f['enableCommand']('acceptSuggestion'),_0x33688f['enableCommand']('discardSuggestion'),_0x33688f['enableCommand']('acceptAllSuggestions'),_0x33688f['enableCommand']('discardAllSuggestions'),_0x33688f['enableCommand']('acceptSelectedSuggestions'),_0x33688f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2d1259{static get['requires'](){return[_0x1d6e1d];}['init'](){const _0x2032a4=this['editor'],_0x5c706b=_0x2032a4['plugins']['get']('TrackChangesEditing');_0x5c706b['enableCommand']('shiftEnter'),_0x2032a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x2032a4),{'priority':'high'}),_0x2032a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x2032a4),{'priority':'high'}),_0x2032a4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e2d6,_0x78f1af,_0x8bccf8)=>{_0x8bccf8['options']['showSuggestionHighlights']&&ge(_0x2032a4,{'showActiveMarker':!0x1})(_0x5e2d6,_0x78f1af,_0x8bccf8);}),_0x5c706b['descriptionFactory']['registerElementLabel']('softBreak',_0x2e993e=>o(_0x2032a4['locale'],'ELEMENT_LINE_BREAK',_0x2e993e));}}function ge(_0x1c6455,{showActiveMarker:_0x2a60d1=!0x0}={}){return(_0x5e4acf,_0x39a7bd,_0x5c143d)=>{const _0x55fff6=_0x1c6455['plugins']['get']('TrackChangesEditing');if(!_0x5c143d['consumable']['test'](_0x39a7bd['markerRange'],_0x5e4acf['name']))return;const _0x221565=_0x1c6455['model'];for(const _0x3134f4 of _0x39a7bd['markerRange']['getItems']()){if(!_0x3134f4['is']('element','softBreak'))continue;const _0x586807='deletion'==_0x39a7bd['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x28cb8f}=_0x55fff6['_splitMarkerName'](_0x39a7bd['markerName']),_0x5a5e49=_0x5c143d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x586807,'data-author-id':_0x28cb8f}),_0x148a38=_0x5c143d['mapper']['toViewPosition'](_0x221565['createPositionBefore'](_0x3134f4));_0x2a60d1&&_0x55fff6['activeMarkers']['includes'](_0x39a7bd['markerName'])&&_0x5c143d['writer']['addClass']('ck-suggestion-marker--active',_0x5a5e49),_0x5c143d['writer']['insert'](_0x148a38,_0x5a5e49),_0x5c143d['mapper']['bindElementToMarker'](_0x5a5e49,_0x39a7bd['markerName']);}};}class St extends _0x2d1259{['afterInit'](){const _0x3814ff=this['editor'],_0x313a1b=_0x3814ff['model'],_0x70f3d4=_0x3814ff['locale'];if(!_0x3814ff['plugins']['has']('StandardEditingModeEditing'))return;const _0x1c8724=_0x3814ff['plugins']['get']('TrackChangesEditing'),_0x4fd32b='restrictedEditingException',_0x46645f=_0x3814ff['commands']['get'](_0x4fd32b);_0x1c8724['enableCommand'](_0x4fd32b,(_0x543b3f,_0x40536a={})=>{const _0x4da161=_0x313a1b['document']['selection'];if(_0x4da161['isCollapsed'])return void _0x543b3f(_0x40536a);const _0x399028=void 0x0!==_0x40536a['forceValue']?_0x40536a['forceValue']:!_0x46645f['value'];_0x313a1b['change'](()=>{const _0x54d5c8=Array['from'](_0x4da161['getRanges']());for(const _0x14e329 of _0x54d5c8){const _0x5192e6=_0x399028?[_0x14e329]:io(_0x4fd32b,_0x14e329,_0x313a1b);for(const _0x44d926 of _0x5192e6)_0x1c8724['markInlineFormat'](_0x44d926,{'commandName':_0x4fd32b,'commandParams':[{'forceValue':_0x399028}]});}});}),_0x1c8724['descriptionFactory']['registerDescriptionCallback'](_0xa97301=>{if('formatBlock'!=_0xa97301['type']&&'formatInline'!=_0xa97301['type'])return;const {data:_0x30caaa}=_0xa97301;return _0x30caaa&&_0x30caaa['commandName']==_0x4fd32b?_0x30caaa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x70f3d4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x70f3d4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2d1259{['afterInit'](){const _0x217563=this['editor'];if(!_0x217563['plugins']['has']('Style')||!_0x217563['plugins']['has']('DataSchema'))return;const _0x59ba22=_0x217563['plugins']['get']('TrackChangesEditing'),_0x1c8668=_0x217563['locale'],_0x1eeb2b=_0x217563['config']['get']('style')||{},_0x27ed5e=_0x217563['plugins']['get']('GeneralHtmlSupport'),_0xc97c82=_0x217563['plugins']['get']('StyleUtils')['normalizeConfig'](_0x217563['plugins']['get']('DataSchema'),_0x1eeb2b['definitions']);_0x59ba22['enableDefaultAttributesIntegration']('style');const _0x247eb7=new Set();for(const _0x4e6290 of _0xc97c82['block']){const _0xb72265=_0x27ed5e['getGhsAttributeNameForElement'](_0x4e6290['element']);_0x247eb7['add'](_0xb72265);}const _0x517380=new Set();for(const _0x455064 of _0xc97c82['inline']){const _0x1787fa=_0x27ed5e['getGhsAttributeNameForElement'](_0x455064['element']);_0x517380['add'](_0x1787fa);for(const _0x12163e of _0x455064['ghsAttributes'])_0x517380['add'](_0x12163e);}for(const _0x246b7b of _0x247eb7)_0x59ba22['registerBlockAttribute'](_0x246b7b),_0x59ba22['descriptionFactory']['registerAttributeLabel'](_0x246b7b,o(_0x1c8668,'FORMAT_STYLE'));for(const _0x3ae802 of _0x517380)_0x59ba22['registerInlineAttribute'](_0x3ae802),_0x59ba22['descriptionFactory']['registerAttributeLabel'](_0x3ae802,o(_0x1c8668,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272340=this['editor'],_0x24cb0c=_0x272340['locale'];_0x272340['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32e3d4=>{if('formatBlock'!=_0x32e3d4['type']&&'formatInline'!=_0x32e3d4['type'])return;const {data:_0x81756a}=_0x32e3d4;return _0x81756a&&'style'===_0x81756a['commandName']?_0x81756a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24cb0c,'*Set\x20format:*\x20%0',_0x81756a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x24cb0c,'*Remove\x20format:*\x20%0',_0x81756a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2d1259{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x21f47e){super(_0x21f47e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x55f8eb=this['editor'],_0x1a5dd0=_0x55f8eb['model']['document']['selection'];if(!_0x55f8eb['plugins']['has']('TableEditing'))return;const _0x4790e5=_0x55f8eb['locale'],_0x19f6fe=_0x55f8eb['plugins']['get']('TrackChangesEditing'),_0x46a288=_0x55f8eb['plugins']['get']('TableUtils');_0x19f6fe['descriptionFactory']['registerElementLabel']('table',_0x4f81c2=>o(_0x4790e5,'ELEMENT_TABLE',_0x4f81c2)),this['_setupColumnsRowsFixing'](),_0x19f6fe['enableCommand']('insertTable'),_0x19f6fe['enableCommand']('selectTableRow'),_0x19f6fe['enableCommand']('selectTableColumn');for(const _0x44815f of['insertTableRowAbove','insertTableRowBelow']){const _0x3ef371=_0x55f8eb['commands']['get'](_0x44815f);_0x19f6fe['enableCommand'](_0x44815f,_0x3db315=>{_0x55f8eb['model']['change'](_0x564dd4=>{_0x3db315();const _0x449cd4='above'===_0x3ef371['order'],_0x17b5fd=_0x46a288['getSelectionAffectedTableCells'](_0x1a5dd0),_0x547f3a=_0x46a288['getRowIndexes'](_0x17b5fd),_0x2a0688=_0x449cd4?_0x547f3a['first']-0x1:_0x547f3a['last']+0x1,_0x3203e7=_0x17b5fd[0x0]['findAncestor']('table'),_0x16ca63=_0x46a288['createTableWalker'](_0x3203e7,{'startRow':_0x2a0688,'endRow':_0x2a0688}),_0x1bbfb5=Array['from'](_0x16ca63)['map'](_0x2f00a0=>_0x564dd4['createRangeOn'](_0x2f00a0['cell']));_0x19f6fe['markMultiRangeInsertion'](_0x1bbfb5,'tableRow');});});}for(const _0x23595a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e5b61=_0x55f8eb['commands']['get'](_0x23595a);_0x19f6fe['enableCommand'](_0x23595a,_0x326e3e=>{_0x55f8eb['model']['change'](_0x37ea66=>{_0x326e3e();const _0x5b9c69='left'===_0x4e5b61['order'],_0x5d17d5=_0x46a288['getSelectionAffectedTableCells'](_0x1a5dd0),_0x1daecb=_0x46a288['getColumnIndexes'](_0x5d17d5),_0xa3a304=_0x5b9c69?_0x1daecb['first']-0x1:_0x1daecb['last']+0x1,_0x37d43a=_0x5d17d5[0x0]['findAncestor']('table'),_0x4fa9a6=_0x46a288['createTableWalker'](_0x37d43a,{'startRow':0x0,'column':_0xa3a304,'includeAllSlots':!0x1}),_0xf39fff=Array['from'](_0x4fa9a6)['map'](_0x1cebf2=>_0x37ea66['createRangeOn'](_0x1cebf2['cell']));_0x19f6fe['markMultiRangeInsertion'](_0xf39fff,'tableColumn');});});}for(const _0x36b0ea of['removeTableRow','removeTableColumn']){const _0x448623=_0x36b0ea['substr'](0xb),_0x25b013=_0x448623['toLowerCase'](),_0x2aef73=_0x25b013['substr'](0x0,0x3)+'span',_0x330224='table'+_0x448623,_0x4316d5='min'+_0x448623,_0x38694d='max'+_0x448623;_0x19f6fe['enableCommand'](_0x36b0ea,()=>{_0x55f8eb['model']['change'](_0x21564e=>{const _0x1793d9=_0x46a288['getSelectionAffectedTableCells'](_0x1a5dd0),_0x2a959d=_0x1793d9[0x0]['findAncestor']('table');let _0x11cc09;if('removeTableRow'==_0x36b0ea){const _0x4d7613=_0x46a288['getRowIndexes'](_0x1793d9);_0x11cc09={'startRow':_0x4d7613['first'],'endRow':_0x4d7613['last'],'includeAllSlots':!0x0};}else{const _0x4a3274=_0x46a288['getColumnIndexes'](_0x1793d9);_0x11cc09={'startColumn':_0x4a3274['first'],'endColumn':_0x4a3274['last'],'includeAllSlots':!0x0};}const _0x14d601=_0x46a288['createTableWalker'](_0x2a959d,_0x11cc09),_0x4308b7=Array['from'](_0x14d601)['map'](({cell:_0xc7aa8})=>_0xc7aa8),_0x153a33=be(_0x4308b7['filter'](_0x2313b9=>_0x2313b9['hasAttribute'](_0x2aef73))),_0x390c44=be(_0x4308b7['filter'](_0x44f54f=>!_0x44f54f['hasAttribute'](_0x2aef73)))['map'](_0x4235ab=>_0x21564e['createRangeOn'](_0x4235ab)),_0x489433=_0x19f6fe['markMultiRangeDeletion'](_0x390c44,_0x330224);if(_0x489433&&('tableRow'==_0x489433['subType']||'tableColumn'==_0x489433['subType'])){const _0x2c3d9d=this['_getSuggestionCoords'](_0x489433);for(const _0x50a2f7 of _0x153a33){const _0x21327a=_0x21564e['createRangeOn'](_0x50a2f7),_0x782b71=_0x46a288['getCellLocation'](_0x50a2f7),_0x55bc69=_0x50a2f7['getAttribute'](_0x2aef73)-0x1,_0x45ed1f=_0x2c3d9d[_0x4316d5],_0x392bb2=_0x2c3d9d[_0x38694d];_0x45ed1f<=_0x782b71[_0x25b013]&&_0x782b71[_0x25b013]+_0x55bc69<=_0x392bb2&&_0x489433['addRange'](_0x21327a);}}});});}function _0x17f4a0(_0xfbd721){const _0x124a49=Array['from'](_0x1a5dd0['getRanges']())['map'](_0x137160=>_0x43155d['fromRange'](_0x137160));_0x55f8eb['model']['change'](_0x17d81e=>{const _0xe41b0b=_0x17d81e['batch'];_0xfbd721=_0xfbd721['filter'](_0x996163=>'$graveyard'!=_0x996163['root']['rootName']),_0x17d81e['setSelection'](_0xfbd721),_0x55f8eb['commands']['get']('removeTableRow')['refresh'](),_0x55f8eb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x55f8eb['model']['enqueueChange'](()=>{_0x55f8eb['model']['enqueueChange'](_0xe41b0b,_0x11b9a8=>{const _0x2689bd=_0x124a49['filter'](_0x49efbc=>'$graveyard'!=_0x49efbc['root']['rootName']);_0x2689bd['length']>0x0&&_0x11b9a8['setSelection'](_0x2689bd);for(const _0x56b926 of _0x124a49)_0x56b926['detach']();});});});}function _0x3898ad(_0x5d706a){_0x55f8eb['model']['change'](_0x5c18e9=>{const _0x52843c=Array['from'](_0x1a5dd0['getRanges']())['map'](_0x28e11d=>_0x43155d['fromRange'](_0x28e11d)),_0x2c2192=[];for(const _0x58858e of _0x5d706a)for(const _0x43a7d1 of _0x58858e['getItems']({'shallow':!0x0}))_0x2c2192['push'](_0x43a7d1);for(const _0x44b8a0 of _0x2c2192)'$graveyard'!=_0x44b8a0['root']['rootName']&&(_0x5c18e9['setSelection'](_0x5c18e9['createPositionAt'](_0x44b8a0,0x0)),_0x55f8eb['commands']['get']('removeTableColumn')['refresh'](),_0x55f8eb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4a513d=_0x52843c['filter'](_0x5cb793=>'$graveyard'!=_0x5cb793['root']['rootName']);_0x4a513d['length']>0x0&&_0x5c18e9['setSelection'](_0x4a513d);for(const _0x3ecf3d of _0x52843c)_0x3ecf3d['detach']();});}function _0x5e84f3(_0x2c26b9,_0x15b36e){return _0x15b36e['every'](_0x32b559=>_0x2c26b9['some'](_0x3deea5=>_0x3deea5['end']['isEqual'](_0x32b559['start'])||_0x32b559['end']['isEqual'](_0x3deea5['start'])));}function _0xaab6ee(_0xa870a1,_0x2053fb){return!_0xa870a1['some'](_0x1171f8=>_0x2053fb['some'](_0x156916=>_0x1171f8['isIntersecting'](_0x156916)))&&_0xa870a1['some'](_0x3777a0=>_0x2053fb['some'](_0x1ba349=>_0x3777a0['end']['isTouching'](_0x1ba349['start'])));}_0x55f8eb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x65ceab,_0x574699,_0x3c46f0)=>{if(!_0x3c46f0['options']['showSuggestionHighlights'])return;const _0x1ae6b0=_0x574699['item'];if(!_0x1ae6b0)return;const _0x1be618=_0x3c46f0['mapper']['toViewElement'](_0x1ae6b0);function _0x406ff7(_0xf6bf95){return Array['isArray'](_0xf6bf95)?_0xf6bf95:[_0xf6bf95];}_0x1be618&&'tableCell'===_0x1ae6b0['name']&&_0x2590dd(_0x1be618,_0x3c46f0['writer'],(_0x1f5834,_0x32015f,_0x215208)=>_0x215208['addClass'](_0x406ff7(_0x32015f['classes']),_0x1f5834),(_0xe469b7,_0x56e55a,_0x4d6bcf)=>_0x4d6bcf['removeClass'](_0x406ff7(_0x56e55a['classes']),_0xe469b7));},{'priority':'highest'}),_0x19f6fe['descriptionFactory']['registerDescriptionCallback'](_0x58a1e6=>{if('insertion'!=_0x58a1e6['type']&&'deletion'!=_0x58a1e6['type'])return;const _0x4ecf97=_0x58a1e6['getContainedElement']();if(null!=_0x4ecf97&&_0x4ecf97['is']('element','table')){if('insertion'==_0x58a1e6['type']){const _0x312481=_0x58a1e6['getItems']()['filter'](_0x3459da=>_0x3459da['is']('$textProxy'))['map'](_0x26d018=>_0x26d018['data']);if(_0x312481['length'])return{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x312481['join']('\x20')+'\x22'))};}if('deletion'==_0x58a1e6['type']){const _0x723c0b=_0x58a1e6['getItems']()['filter'](_0x9732ff=>_0x9732ff['is']('$textProxy'))['map'](_0xb72794=>_0xb72794['data']);if(_0x723c0b['length'])return{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x723c0b['join']('\x20')+'\x22'))};}}}),_0x19f6fe['descriptionFactory']['registerDescriptionCallback'](_0x5d5ac6=>{if('tableRow'==_0x5d5ac6['subType']){const _0x25cb2b=_0x5d5ac6['getItems']()['filter'](_0x145411=>_0x145411['is']('$textProxy'))['map'](_0x1da8ad=>_0x1da8ad['data']),_0x1316d1=this['_getSuggestionCoords'](_0x5d5ac6),_0x385b3d=_0x1316d1['maxRow']-_0x1316d1['minRow']+0x1;if('insertion'==_0x5d5ac6['type'])return _0x25cb2b['length']?{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x385b3d,'\x22'+_0x25cb2b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW',_0x385b3d))};if('deletion'==_0x5d5ac6['type'])return _0x25cb2b['length']?{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x385b3d,'\x22'+_0x25cb2b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW',_0x385b3d))};}if('tableColumn'==_0x5d5ac6['subType']){const _0xccf782=_0x5d5ac6['getItems']()['filter'](_0x193023=>_0x193023['is']('$textProxy'))['map'](_0x760f29=>_0x760f29['data']),_0x2ed083=this['_getSuggestionCoords'](_0x5d5ac6),_0x3419b6=_0x2ed083['maxColumn']-_0x2ed083['minColumn']+0x1;if('insertion'==_0x5d5ac6['type'])return _0xccf782['length']?{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3419b6,'\x22'+_0xccf782['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN',_0x3419b6))};if('deletion'==_0x5d5ac6['type'])return _0xccf782['length']?{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3419b6,'\x22'+_0xccf782['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN',_0x3419b6))};}}),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17f4a0),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17f4a0),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3898ad),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3898ad),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5e84f3),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5e84f3),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xaab6ee),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xaab6ee);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f809a=this['editor'],_0x569fe1=_0x4f809a['model']['document']['selection'];return(_0x31cce7,_0x1c4ece)=>{_0x4f809a['model']['change'](_0x500ff5=>{const {commandName:_0x116758,commandParams:_0x1043ec}=_0x1c4ece;let _0x2d4d8b=_0x31cce7[0x0]['end']['nodeBefore'];_0x1043ec&&_0x1043ec[0x0]&&!0x1===_0x1043ec[0x0]['forceValue']&&(_0x2d4d8b=_0x31cce7[0x0]['start']['nodeAfter']);const _0x407caf=_0x500ff5['createRangeIn'](_0x2d4d8b);if('$graveyard'==_0x407caf['root']['rootName'])return;const _0xd90c52=Array['from'](_0x569fe1['getRanges']())['map'](_0x5c8d69=>_0x43155d['fromRange'](_0x5c8d69));_0x500ff5['setSelection'](_0x407caf),_0x4f809a['commands']['get'](_0x116758)['refresh'](),_0x1043ec['push']({'forceDefaultExecution':!0x0}),_0x4f809a['execute'](_0x116758,..._0x1043ec);const _0x3675e8=_0xd90c52['filter'](_0x2b35bf=>'$graveyard'!=_0x2b35bf['root']['rootName']);_0x3675e8['length']>0x0&&_0x500ff5['setSelection'](_0x3675e8);for(const _0x248b50 of _0xd90c52)_0x248b50['detach']();});};}['_getCoordsForCells'](_0x393ce1){const _0xfc1a45=this['editor']['plugins']['get']('TableUtils');let _0x22aa53=Number['MAX_SAFE_INTEGER'],_0x4a45c2=Number['MIN_SAFE_INTEGER'],_0x4e3cde=Number['MAX_SAFE_INTEGER'],_0x58280b=Number['MIN_SAFE_INTEGER'];for(const _0x1dbbff of _0x393ce1){if('$graveyard'==_0x1dbbff['root']['rootName'])continue;const {row:_0xe3cdad,column:_0xffd2d4}=_0xfc1a45['getCellLocation'](_0x1dbbff),_0x34c755=_0x1dbbff['hasAttribute']('rowspan')?_0x1dbbff['getAttribute']('rowspan')-0x1:0x0,_0x22610a=_0x1dbbff['hasAttribute']('colspan')?_0x1dbbff['getAttribute']('colspan')-0x1:0x0;_0x22aa53=_0xe3cdad<_0x22aa53?_0xe3cdad:_0x22aa53,_0x4a45c2=_0xe3cdad+_0x34c755>_0x4a45c2?_0xe3cdad+_0x34c755:_0x4a45c2,_0x4e3cde=_0xffd2d4<_0x4e3cde?_0xffd2d4:_0x4e3cde,_0x58280b=_0xffd2d4+_0x22610a>_0x58280b?_0xffd2d4+_0x22610a:_0x58280b;}return{'minRow':_0x22aa53,'maxRow':_0x4a45c2,'minColumn':_0x4e3cde,'maxColumn':_0x58280b};}['_setupColumnsRowsFixing'](){const _0x3b7e5d=this['editor'],_0x115d1b=_0x3b7e5d['plugins']['get']('TrackChangesEditing'),_0x52d151=_0x3b7e5d['plugins']['get']('TableUtils');_0x3b7e5d['model']['document']['on']('change:data',()=>{const _0x1e9c7c=Array['from'](_0x3b7e5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x592455,data:_0xb6bab6}of _0x1e9c7c){const {group:_0x4975cd,id:_0x434d60,subType:_0x23e238}=_0x115d1b['_splitMarkerName'](_0x592455);if('suggestion'!=_0x4975cd)continue;if(null!=_0xb6bab6['oldRange'])continue;const _0x3a905f=_0x115d1b['getSuggestion'](_0x434d60);this['_tablePostFixingSubtypes']['includes'](_0x23e238)&&this['_tableSuggestions']['add'](_0x3a905f);}},{'priority':'low'});const _0x3f2cf4=(_0x1f5459,_0x5e104a)=>{let _0x5d1705=!0x1;const _0x22d7d1=_0x5e104a['createRangeOn'](_0x1f5459),_0xf8147f=_0x1f5459['findAncestor']('table'),_0x169f6b=_0x52d151['getCellLocation'](_0x1f5459);for(const _0x329219 of this['_tableSuggestions']){const _0x317515=_0x329219['subType'],_0x10cf36=_0x317515['startsWith']('tablePaste'),_0x43ae96=_0x317515['substr'](_0x10cf36?0xa:0x5),_0x3474ec=_0x43ae96['toLowerCase'](),_0x3b7695=_0x3474ec['substr'](0x0,0x3)+'span',_0x86fd88='min'+_0x43ae96,_0x4cf70e='max'+_0x43ae96;if(!_0x329219['isInContent'])continue;if(_0xf8147f!=_0x329219['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x329219['isIntersectingWithRange'](_0x22d7d1))continue;const _0x5e67f5=_0x1f5459['hasAttribute'](_0x3b7695)?_0x1f5459['getAttribute'](_0x3b7695)-0x1:0x0,_0x39bd98=this['_getSuggestionCoords'](_0x329219),_0x122b55=_0x39bd98[_0x86fd88],_0x6e13f3=_0x39bd98[_0x4cf70e];_0x122b55<=_0x169f6b[_0x3474ec]&&_0x169f6b[_0x3474ec]+_0x5e67f5<=_0x6e13f3&&(_0x329219['addRange'](_0x22d7d1),_0x5d1705=!0x0);}return _0x5d1705;};_0x3b7e5d['model']['document']['registerPostFixer'](_0x24fb66=>{let _0x1118cd=!0x1;for(const _0x1b4375 of _0x3b7e5d['model']['document']['differ']['getChanges']())if('insert'==_0x1b4375['type']){if('tableRow'==_0x1b4375['name']){for(const _0x546566 of _0x1b4375['position']['nodeAfter']['getChildren']())_0x1118cd=_0x1118cd||_0x3f2cf4(_0x546566,_0x24fb66);}else'tableCell'==_0x1b4375['name']&&(_0x1118cd=_0x1118cd||_0x3f2cf4(_0x1b4375['position']['nodeAfter'],_0x24fb66));}return _0x1118cd;});}['_getSuggestionCoords'](_0xd51d19){return this['_getCoordsForCells'](_0xd51d19['getRanges']()['map'](_0x3c0eee=>_0x3c0eee['start']['nodeAfter']));}}function be(_0x3fbbae){return Array['from'](new Set(_0x3fbbae)['values']());}class vt extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x2d319f=this['editor'],_0x36c4d7=_0x2d319f['model']['document']['selection'],_0xf110e1=_0x2d319f['locale'];if(!_0x2d319f['plugins']['has']('TableEditing'))return;const _0x4b5082=_0x2d319f['plugins']['get']('TrackChangesEditing'),_0x209c4a=_0x2d319f['plugins']['get']('TableUtils'),_0x3d8c8e=_0x2d319f['plugins']['get'](It);_0x3d8c8e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b5082['enableCommand']('mergeTableCells',()=>{const _0x4c1795=_0x209c4a['getSelectionAffectedTableCells'](_0x2d319f['model']['document']['selection']);_0x2d319f['model']['change'](()=>{_0x4b5082['markMultiRangeBlockFormat'](_0x4c1795,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d319f['commands']['get']('mergeTableCells')['on']('execute',(_0x3b7698,_0x1f89dc)=>{_0x2d319f['commands']['get']('trackChanges')['value']&&(_0x1f89dc['length']>0x0&&_0x1f89dc[_0x1f89dc['length']-0x1]&&_0x1f89dc[_0x1f89dc['length']-0x1]['forceDefaultExecution']||_0x4b5082['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3b7698['stop']());},{'priority':'highest'});for(const _0x36671a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4ad2e0=_0x2d319f['commands']['get'](_0x36671a);_0x4b5082['enableCommand'](_0x36671a,()=>{const _0x4e234e=_0x2d319f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2bf2a9=>_0x2bf2a9['is']('element','tableCell')),_0x549b4b=_0x4ad2e0['value'];_0x2d319f['model']['change'](()=>{_0x4b5082['markMultiRangeBlockFormat']([_0x4e234e,_0x549b4b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1fb4a4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5651fe=_0x2d319f['commands']['get'](_0x1fb4a4);_0x4b5082['enableCommand'](_0x1fb4a4,()=>{const _0x404921=_0x209c4a['getSelectionAffectedTableCells'](_0x2d319f['model']['document']['selection'])[0x0],_0x527701=_0x404921['findAncestor']('table'),{column:_0x363fcd,row:_0x4f6de9}=_0x209c4a['getCellLocation'](_0x404921);let _0x24fd74=[];if('horizontally'==_0x5651fe['direction']){const _0x422d1b=_0x209c4a['createTableWalker'](_0x527701,{'startRow':_0x4f6de9,'endRow':_0x4f6de9,'includeAllSlots':!0x0});_0x24fd74=Array['from'](_0x422d1b)['map'](_0x110c07=>_0x110c07['cell']);}else{const _0x388255=_0x209c4a['createTableWalker'](_0x527701,{'column':_0x363fcd,'includeAllSlots':!0x0});_0x24fd74=Array['from'](_0x388255)['map'](_0x4627cc=>_0x4627cc['cell']);}_0x2d319f['model']['change'](_0x3d2e9a=>{_0x4b5082['markBlockFormat'](_0x3d2e9a['createRangeOn'](_0x404921),{'commandName':_0x1fb4a4,'commandParams':[]},_0x24fd74,_0x1fb4a4);});});}_0x4b5082['descriptionFactory']['registerDescriptionCallback'](_0x21d916=>{if('formatBlock'!=_0x21d916['type']&&'formatInline'!=_0x21d916['type'])return;const {data:_0x511130}=_0x21d916;return _0x511130&&'mergeTableCells'==_0x511130['commandName']?{'type':'format','content':o(_0xf110e1,'*Merge\x20cells*')}:void 0x0;}),_0x4b5082['descriptionFactory']['registerDescriptionCallback'](_0x488308=>{if('formatBlock'!=_0x488308['type']&&'formatInline'!=_0x488308['type'])return;const {data:_0x111aca}=_0x488308;return _0x111aca?'splitTableCellVertically'==_0x111aca['commandName']?{'type':'format','content':o(_0xf110e1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x111aca['commandName']?{'type':'format','content':o(_0xf110e1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x102230=_0x3d8c8e['_acceptFormatSuggestionCallbackFactory']();for(const _0xdea79d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b5082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdea79d,'accept',_0x102230);for(const _0xac75c0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b5082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xac75c0,'accept',_0x102230);_0x4b5082['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x48418b=>{_0x2d319f['model']['change'](_0x2b791a=>{const _0x217cd0=Array['from'](_0x36c4d7['getRanges']())['map'](_0x1564ee=>_0x43155d['fromRange'](_0x1564ee));_0x2b791a['setSelection'](_0x48418b),_0x2d319f['commands']['get']('mergeTableCells')['refresh'](),_0x2d319f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x167c4b=_0x217cd0['filter'](_0x26ddb6=>'$graveyard'!=_0x26ddb6['root']['rootName']);_0x167c4b['length']>0x0&&_0x2b791a['setSelection'](_0x167c4b);for(const _0x179139 of _0x217cd0)_0x179139['detach']();});});for(const _0x51bae0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x329f5c=_0x2d319f['commands']['get'](_0x51bae0);_0x329f5c['on']('set:isEnabled',(_0x4e5b63,_0x98bb79,_0x32a5df)=>{if(_0x32a5df){const _0x47ec72=_0x2d319f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e7cac=>_0x3e7cac['is']('element','tableCell'));this['_areMergableCells'](_0x329f5c['value'],_0x47ec72)||(_0x4e5b63['return']=!0x1,_0x4e5b63['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x141ca9=this['editor']['commands']['get']('mergeTableCells'),_0x273efa=this['editor']['plugins']['get']('TableUtils');if(!_0x141ca9['isEnabled'])return!0x1;const _0x162851=_0x273efa['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x204205 of _0x162851)for(const _0x4bf2b0 of _0x162851)if(_0x204205!=_0x4bf2b0&&!this['_areMergableCells'](_0x204205,_0x4bf2b0))return!0x1;return!0x0;}['_areMergableCells'](_0x52a1b2,_0x4a6692){const _0x1831ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x352112=this['editor']['model']['createRangeOn'](_0x52a1b2),_0x408a66=this['editor']['model']['createRangeOn'](_0x4a6692),_0x9c9b5e=new Set(),_0x1a3216=new Set();for(const _0x3d8091 of _0x1831ba['getSuggestions']())if(('insertion'==_0x3d8091['type']||'deletion'==_0x3d8091['type']||'mergeTableCells'==_0x3d8091['subType'])&&_0x3d8091['isInContent']){for(const _0x40d35b of _0x3d8091['getRanges']())_0x40d35b['containsRange'](_0x352112,!0x0)&&_0x9c9b5e['add'](_0x3d8091['type']+':'+_0x3d8091['author']['id']),_0x40d35b['containsRange'](_0x408a66,!0x0)&&_0x1a3216['add'](_0x3d8091['type']+':'+_0x3d8091['author']['id']);}if(_0x9c9b5e['size']!=_0x1a3216['size'])return!0x1;for(const _0x38f044 of _0x9c9b5e)if(!_0x1a3216['has'](_0x38f044))return!0x1;return!0x0;}}class Ct extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x4c07e5=this['editor'];if(!_0x4c07e5['plugins']['has']('TableEditing'))return;const _0x50c006=_0x4c07e5['locale'],_0x1134ec=_0x4c07e5['plugins']['get']('TrackChangesEditing');_0x1134ec['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1134ec['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1134ec['registerBlockAttribute']('headingRows'),_0x1134ec['registerBlockAttribute']('headingColumns'),_0x1134ec['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x50c006,'FORMAT_HEADER_ROW')),_0x1134ec['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x50c006,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48051c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19db09=this['editor']['plugins']['get']('TableUtils'),_0x2275c0=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x565fd7({showActiveMarker:_0x1ad38d=!0x0,setDataAttribute:_0x572299=!0x0}={}){return(_0x477f0d,_0x2f85f2,_0x4fe138)=>{const {type:_0x1de505,id:_0x941682}=_0x48051c['_splitMarkerName'](_0x2f85f2['markerName']),_0x136dbc=_0x48051c['getSuggestion'](_0x941682),_0x1dafe7=_0x136dbc['data'];if('formatBlock'!=_0x136dbc['type']||!_0x1dafe7||'setTableColumnHeader'!=_0x1dafe7['commandName'])return;if(_0x2f85f2['item'])return void _0x477f0d['stop']();if(!_0x4fe138['consumable']['consume'](_0x2f85f2['markerRange'],_0x477f0d['name']))return;const _0x2d1ce4=_0x2f85f2['markerRange']['start']['nodeAfter'],_0x3c3a4d=_0x2f85f2['markerRange']['end']['nodeBefore'],_0x4f3ecd=_0x2d1ce4['parent']['parent'],{column:_0x360ceb}=_0x19db09['getCellLocation'](_0x2d1ce4),{column:_0x3e198d}=_0x19db09['getCellLocation'](_0x3c3a4d);for(let _0x18b2c0=_0x360ceb;_0x18b2c0<=_0x3e198d;_0x18b2c0++){const _0x1a7dc7=_0x19db09['createTableWalker'](_0x4f3ecd,{'column':_0x18b2c0,'includeAllSlots':!0x1});for(const _0xa91c44 of _0x1a7dc7){const _0x152b19=_0xa91c44['cell'],_0x4df2f4=_0x4fe138['mapper']['toViewElement'](_0x152b19);_0x4fe138['writer']['addClass']('ck-suggestion-marker-'+_0x1de505,_0x4df2f4),_0x572299&&_0x4fe138['writer']['setAttribute']('data-suggestion',_0x941682,_0x4df2f4),_0x4fe138['mapper']['bindElementToMarker'](_0x4df2f4,_0x2f85f2['markerName']),_0x1ad38d&&(_0x48051c['activeMarkers']['includes'](_0x2f85f2['markerName'])?_0x4fe138['writer']['addClass']('ck-suggestion-marker--active',_0x4df2f4):_0x4fe138['writer']['removeClass']('ck-suggestion-marker--active',_0x4df2f4));}}};}_0x48051c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2275c0),_0x48051c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2275c0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x565fd7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13f2f5,_0x58ebd3,_0x57239d)=>{_0x57239d['options']['showSuggestionHighlights']&&_0x565fd7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x13f2f5,_0x58ebd3,_0x57239d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xef11e8,_0x547843,_0x2be168)=>{const {type:_0x2fd088,id:_0x532e99}=_0x48051c['_splitMarkerName'](_0x547843['markerName']),_0x4eaa2a=_0x48051c['getSuggestion'](_0x532e99),_0x500d82=_0x4eaa2a['data'];if('formatBlock'!=_0x4eaa2a['type']||!_0x500d82||'setTableColumnHeader'!=_0x500d82['commandName'])return;const _0x1e3a47=_0x2be168['mapper']['markerNameToElements'](_0x547843['markerName']);if(_0x1e3a47){for(const _0x1986fb of _0x1e3a47)_0x2be168['writer']['removeClass']('ck-suggestion-marker-'+_0x2fd088,_0x1986fb),_0x2be168['writer']['removeClass']('ck-suggestion-marker--active',_0x1986fb),_0x2be168['writer']['removeAttribute']('data-suggestion',_0x1986fb),_0x2be168['mapper']['unbindElementFromMarkerName'](_0x1986fb,_0x547843['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ed4dd=this['editor'],_0x4ef1a8=_0x2ed4dd['locale'];function _0x120953(_0x34d3df){return{'type':'format','content':o(_0x4ef1a8,'*Format:*\x20%0',_0x34d3df)};}_0x2ed4dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5726f6=>{if('formatBlock'!=_0x5726f6['type'])return;const {data:_0x188ca8}=_0x5726f6;if(_0x188ca8){if('setTableRowHeader'==_0x188ca8['commandName']){const _0x3e4e32=_0x188ca8['commandParams'][0x0]['forceValue'];return _0x120953(o(_0x4ef1a8,_0x3e4e32?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x188ca8['commandName']){const _0x3c0cbc=_0x188ca8['commandParams'][0x0]['forceValue'];return _0x120953(o(_0x4ef1a8,_0x3c0cbc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x58745c=>[_0x58745c,null]));class _t extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x56c5c7=this['editor'];if(!_0x56c5c7['plugins']['has']('TableClipboard'))return;const _0x272b2d=_0x56c5c7['plugins']['get']('TrackChangesEditing'),_0x5bb794=_0x56c5c7['plugins']['get']('TableUtils'),_0x4fea1d=_0x56c5c7['plugins']['get'](It),_0x39d3d4=_0x56c5c7['plugins']['get']('TableClipboard');_0x4fea1d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x56c5c7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x56c5c7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x237e02=null;_0x56c5c7['model']['on']('insertContent',(_0x134144,_0x276be6)=>{const [_0x10c6ae,_0x2326c0]=_0x276be6,_0x155e58=_0x276be6[_0x276be6['length']-0x1];_0x155e58&&_0x155e58['forceDefaultExecution']||_0x272b2d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb66ab1,_0x16b36e,_0x13a52c,_0x58c160,_0x5a3a34){if(_0x16b36e&&!_0x16b36e['is']('documentSelection'))return!0x1;const _0x3735f6=_0x5a3a34['getTableIfOnlyTableInContent'](_0xb66ab1,_0x13a52c);if(!_0x3735f6||!Re(_0x3735f6,void 0x0,_0x58c160))return!0x1;const _0x1ecc15=_0x58c160['getSelectionAffectedTableCells'](_0x13a52c['document']['selection']);if(!_0x1ecc15['length'])return!0x1;const _0xbd409c=_0x1ecc15[0x0]['findAncestor']('table'),_0x565bdc=_0x58c160['getRowIndexes'](_0x1ecc15),_0x1a97e0=_0x58c160['getColumnIndexes'](_0x1ecc15),_0x28e2a2={'startRow':_0x565bdc['first'],'endRow':_0x565bdc['last'],'startColumn':_0x1a97e0['first'],'endColumn':_0x1a97e0['last']};return 0x1==_0x1ecc15['length']&&(_0x28e2a2['endRow']+=_0x58c160['getRows'](_0x3735f6)-0x1,_0x28e2a2['endColumn']+=_0x58c160['getColumns'](_0x3735f6)-0x1),Re(_0xbd409c,_0x28e2a2,_0x58c160);}(_0x10c6ae,_0x2326c0,_0x56c5c7['model'],_0x5bb794,_0x39d3d4)&&(_0x134144['stop'](),_0x237e02={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x56c5c7['model']['change'](()=>{_0x56c5c7['model']['insertContent'](_0x276be6[0x0],_0x276be6[0x1],_0x276be6[0x2],{'forceDefaultExecution':!0x0});const _0x3389eb=_0x6322ca(),{rowInsertionRanges:_0x391520,columnInsertionRanges:_0x475bae,insertionRanges:_0x2af3b0,deletionRanges:_0x51b7c1,cells:_0x1473f2}=_0x237e02;_0x391520['length']&&_0x272b2d['markMultiRangeInsertion'](_0x391520,'tablePasteRow',{'tablePasteChainId':_0x3389eb}),_0x475bae['length']&&_0x272b2d['markMultiRangeInsertion'](_0x475bae,'tablePasteColumn',{'tablePasteChainId':_0x3389eb}),_0x2af3b0['length']&&(_0x272b2d['markMultiRangeInsertion'](_0x2af3b0,'tablePaste',{'tablePasteChainId':_0x3389eb,'skipNestingCheck':!0x0}),_0x2af3b0['forEach'](_0xf82ac0=>_0xf82ac0['detach']?.())),_0x51b7c1['length']&&(_0x272b2d['markMultiRangeDeletion'](_0x51b7c1,'tablePaste',{'tablePasteChainId':_0x3389eb,'skipNestingCheck':!0x0}),_0x51b7c1['forEach'](_0x1cf3b1=>_0x1cf3b1['detach']?.()));const _0x10c48c=_0x272b2d['markMultiRangeBlockFormat'](_0x1473f2['map'](({element:_0x292387})=>_0x292387),{'formatGroupId':_0x6322ca()},[],'tablePasteCell',{'tablePasteChainId':_0x3389eb});if(_0x10c48c){const _0x350b83=_0x10c48c['getMarkers'](),_0x2c7690=[];for(const {element:_0x2a0e16,attributes:_0x18c7eb}of _0x1473f2){if(!_0x18c7eb)continue;const _0x542dcf=_0x56c5c7['model']['createRangeOn'](_0x2a0e16),_0x313535=_0x350b83['find'](_0x1f092c=>_0x1f092c['getRange']()['isEqual'](_0x542dcf));_0x313535&&_0x2c7690['push']([_0x313535['name'],_0x18c7eb]);}_0x2c7690['length']&&_0x10c48c['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c7690));}_0x237e02=null;}));},{'priority':_0xcad5a0['high']+0xa}),_0x56c5c7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d6d2d,_0x18ef30)=>{const [_0x1e12ce,_0x55a147,,_0x2756dd]=_0x18ef30;if(!_0x237e02)return;_0x4d6d2d['stop']();const _0x5cd5b1=_0x1e12ce['cell'],_0x5795b4=_0x55a147,_0x6849d8=ke(_0x5cd5b1),_0x3e7ed0=ke(_0x5795b4);_0x4d6d2d['return']=_0x5cd5b1;let _0x53b05f=null,_0x3fdbf4=null;if(_0x3e7ed0||_0x6849d8){if(_0x6849d8&&!_0x3e7ed0){_0x2756dd['remove'](_0x5cd5b1['getChild'](0x0));for(const _0x12bdde of Array['from'](_0x5795b4['getChildren']()))_0x2756dd['insert'](_0x12bdde,_0x5cd5b1,'end');const _0x3b1931=_0x237e02['rowInsertionIndexes']['includes'](_0x1e12ce['row']),_0x22b43b=_0x237e02['columnInsertionIndexes']['includes'](_0x1e12ce['column']);_0x3b1931||_0x22b43b||(_0x53b05f=_0x43155d['fromRange'](_0x2756dd['createRangeIn'](_0x5cd5b1)));}else _0x3e7ed0&&!_0x6849d8&&(_0x3fdbf4=_0x2756dd['createRangeIn'](_0x5cd5b1));}else{const _0x1c5522=_0x2756dd['createElement']('tableCellSuggestion'),_0xe0e694=_0x2756dd['createElement']('tableCellSuggestion');_0x2756dd['wrap'](_0x2756dd['createRangeIn'](_0x5cd5b1),_0xe0e694),_0x2756dd['insert'](_0x1c5522,_0x5cd5b1,0x0);for(const _0x4d63b0 of Array['from'](_0x5795b4['getChildren']()))_0x2756dd['insert'](_0x4d63b0,_0x1c5522,'end');_0x53b05f=_0x43155d['fromRange'](_0x2756dd['createRangeOn'](_0x1c5522)),_0x3fdbf4=_0x43155d['fromRange'](_0x2756dd['createRangeOn'](_0xe0e694));}const _0x11dff6=Array['from'](_0x5795b4['getAttributes']())['filter'](([_0x4deef0])=>Pe['includes'](_0x4deef0));_0x237e02['cells']['push']({'element':_0x5cd5b1,'attributes':_0x11dff6['length']?Object['fromEntries'](_0x11dff6):null}),_0x53b05f&&_0x237e02['insertionRanges']['push'](_0x53b05f),_0x3fdbf4&&_0x237e02['deletionRanges']['push'](_0x3fdbf4);},{'priority':'high'}),_0x5bb794['on']('insertColumns',(_0x4e6f63,_0x49b602)=>{const [_0x1332cc,_0xf3b11d={}]=_0x49b602;if(!_0x237e02)return;const _0x14705c=_0xf3b11d['at']||0x0,_0xa5aef7=_0xf3b11d['columns']||0x1;_0x237e02['columnInsertionIndexes']=new Array(_0xa5aef7)['fill'](_0x14705c)['map']((_0xdb3c0f,_0x36373b)=>_0xdb3c0f+_0x36373b);for(const {cell:_0x285a61}of _0x5bb794['createTableWalker'](_0x1332cc,{'startColumn':_0x14705c,'endColumn':_0x14705c+_0xa5aef7-0x1}))_0x237e02['columnInsertionRanges']['push'](_0x56c5c7['model']['createRangeOn'](_0x285a61));},{'priority':'low'}),_0x5bb794['on']('insertRows',(_0x3f87ff,_0x162936)=>{const [_0x3e0eec,_0x2607a5={}]=_0x162936;if(!_0x237e02)return;const _0xdc80f2=_0x2607a5['at']||0x0,_0x465d62=_0x2607a5['rows']||0x1;_0x237e02['rowInsertionIndexes']=new Array(_0x465d62)['fill'](_0xdc80f2)['map']((_0x3a197d,_0x560751)=>_0x3a197d+_0x560751);for(const {cell:_0x54a952}of _0x5bb794['createTableWalker'](_0x3e0eec,{'startRow':_0xdc80f2,'endRow':_0xdc80f2+_0x465d62-0x1}))_0x237e02['rowInsertionRanges']['push'](_0x56c5c7['model']['createRangeOn'](_0x54a952));},{'priority':'low'}),_0x272b2d['descriptionFactory']['registerDescriptionCallback'](_0x2beb58=>{if(_0x2beb58['subType']&&_0x2beb58['subType']['startsWith']('tablePaste'))return _0x2beb58['previous']?{}:{'type':'insertion','content':o(_0x56c5c7['locale'],'*Replace\x20table\x20cells*')};});const _0x470ede=()=>!0x1;for(const _0x73c3f7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x272b2d['_suggestionFactory']['registerCustomCallback']('insertion',_0x73c3f7,'join',_0x470ede),_0x272b2d['_suggestionFactory']['registerCustomCallback']('deletion',_0x73c3f7,'join',_0x470ede),_0x272b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x73c3f7,'join',_0x470ede);_0x272b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x470ede),_0x272b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xaef7b6,_0x24c6be,_0x44e20b)=>{const _0x419f2d=_0xaef7b6['map'](_0xce184a=>_0xce184a['getContainedElement']())['filter'](_0x5ba551=>_0x5ba551),_0x46423c=new Map(_0x419f2d['map'](_0x464a9c=>[_0x464a9c,null]));if(_0x237e02){for(const {element:_0x2cf030,attributes:_0x5c72ed}of _0x237e02['cells'])_0x5c72ed&&_0x46423c['set'](_0x2cf030,_0x5c72ed);}else{if(_0x44e20b&&_0x44e20b['markerAttributes'])for(const [_0x20b3d0,_0x2d8dc5]of Object['entries'](_0x44e20b['markerAttributes'])){const _0x13d8ea=_0x56c5c7['model']['markers']['get'](_0x20b3d0),_0x34dafd=_0x13d8ea?_0x13d8ea['getRange']()['getContainedElement']():null;_0x34dafd&&_0x46423c['set'](_0x34dafd,_0x2d8dc5);}}_0x56c5c7['model']['change'](_0x32310f=>{for(const [_0x43938d,_0x568bd1]of _0x46423c)_0x32310f['setAttributes']({...we,..._0x568bd1},_0x43938d);});});const _0x592be2=(_0x311563,_0x3c7984)=>{_0x272b2d['_suggestionFactory']['registerCustomCallback'](_0x311563,'tablePaste',_0x3c7984,(_0x4ecf7c,_0x336f8d,_0x18f5d6)=>{_0x56c5c7['model']['change'](_0x58b0ca=>{const _0x729578=[];for(const _0x177fee of _0x4ecf7c){const _0x2ce009=_0x177fee['start']['nodeAfter'];_0x2ce009['is']('element','tableCellSuggestion')&&_0x729578['push'](_0x2ce009);}_0x272b2d['_suggestionFactory']['getSuggestionCallback'](_0x311563,null,_0x3c7984)(_0x4ecf7c,_0x336f8d,_0x18f5d6);for(const _0x532d0b of _0x729578)'$graveyard'!=_0x532d0b['root']['rootName']&&_0x58b0ca['unwrap'](_0x532d0b);});});};_0x592be2('insertion','accept'),_0x592be2('insertion','discard'),_0x592be2('deletion','accept'),_0x592be2('deletion','discard'),_0x272b2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x455c2b=>{const _0x20e1fc=_0x455c2b['map'](_0x2fea7f=>_0x2fea7f['getContainedElement']()),_0x3e010f=_0x20e1fc[0x0]['findAncestor']('table'),{minRow:_0x1de637,maxRow:_0x32ce0f}=_0x4fea1d['_getCoordsForCells'](_0x20e1fc);_0x5bb794['removeRows'](_0x3e010f,{'at':_0x1de637,'rows':_0x32ce0f-_0x1de637+0x1});}),_0x272b2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x569e3c=>{const _0x31242e=_0x569e3c['map'](_0x332d82=>_0x332d82['getContainedElement']()),_0x2c34f8=_0x31242e[0x0]['findAncestor']('table'),{minColumn:_0x3b904b,maxColumn:_0x45394b}=_0x4fea1d['_getCoordsForCells'](_0x31242e);_0x5bb794['removeColumns'](_0x2c34f8,{'at':_0x3b904b,'columns':_0x45394b-_0x3b904b+0x1});});const _0x55cef6=(_0x3f546c,_0x4767a3)=>{if(!_0x4767a3['subType']||!_0x4767a3['subType']['startsWith']('tablePaste'))return;const _0xf774c6=_0x4767a3['attributes']['tablePasteChainId'],_0x5e728c=_0x272b2d['getSuggestions']()['filter'](_0x3e5a83=>_0x3e5a83['isInContent']&&_0x3e5a83['attributes']&&_0x3e5a83['attributes']['tablePasteChainId']==_0xf774c6);_0x5e728c['length']&&_0x4767a3['getAllAdjacentSuggestions']()['length']!=_0x5e728c['length']&&_0x5e728c['reduce']((_0xaff84b,_0x38ac5e)=>(_0xaff84b['next']=_0x38ac5e,_0x38ac5e['previous']=_0xaff84b,_0x38ac5e));};function _0xb62696(_0x5d2cf5,_0x1b671b=!0x0){const {id:_0x4ff867,authorId:_0x19e33d}=_0x272b2d['_splitMarkerName'](_0x5d2cf5['markerName']),_0x207bdb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20ac65=_0x272b2d['activeMarkers']['includes'](_0x5d2cf5['markerName']);return _0x20ac65&&_0x207bdb['push']('ck-suggestion-marker--active'),{'classes':_0x207bdb,'attributes':{'data-suggestion':_0x4ff867,'data-author-id':_0x19e33d},'priority':_0x20ac65&&_0x1b671b?0xbc2:0xbb8};}_0x272b2d['on']('suggestionLoaded',_0x55cef6,{'priority':'high'}),_0x272b2d['on']('suggestionUnloaded',_0x55cef6,{'priority':'high'}),_0x56c5c7['model']['document']['registerPostFixer'](()=>{let _0x661caa=!0x1;const _0xafeabb=Array['from'](_0x56c5c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58dbe8,data:_0x38c11c}of _0xafeabb){const {group:_0x5da030,type:_0x442ba7,id:_0x5a506d}=_0x272b2d['_splitMarkerName'](_0x58dbe8);if('suggestion'!=_0x5da030||'deletion'!=_0x442ba7||_0x38c11c['oldRange'])continue;if(!_0x272b2d['hasSuggestion'](_0x5a506d))continue;const _0x3a7a29=_0x272b2d['getSuggestion'](_0x5a506d)['getRanges'](),_0x513d77=_0x56c5c7['plugins']['get']('Users')['me'];for(const _0x1c2b09 of _0x272b2d['getSuggestions']()){if(!_0x1c2b09['isInContent']||_0x1c2b09['author']!=_0x513d77)continue;if('formatBlock'!=_0x1c2b09['type']||'tablePasteCell'!=_0x1c2b09['subType'])continue;if(_0x1c2b09['getRanges']()['every'](_0x28d541=>_0x3a7a29['some'](_0x622e0f=>_0x622e0f['containsRange'](_0x28d541,!0x0)))){for(const _0x28e90a of _0x1c2b09['getAllAdjacentSuggestions']())_0x28e90a['isInContent']&&(_0x28e90a['discard'](),_0x661caa=!0x0);}}}return _0x661caa;}),_0x56c5c7['model']['document']['registerPostFixer'](_0x494846=>{const _0x471022=_0x56c5c7['commands']['get']('redo');if(!_0x471022||!_0x471022['_createdBatches']['has'](_0x494846['batch']))return!0x1;let _0x5a128a=!0x1;const _0x216b8e=_0x56c5c7['plugins']['get']('Users')['me'],_0x496736=_0x56c5c7['model']['document']['differ']['getChanges'](),_0x4651a5=Array['from'](_0x56c5c7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x39a10b,data:_0x4ce8ae})=>{const {group:_0x318008,subType:_0x5952cc,authorId:_0x22596a}=_0x272b2d['_splitMarkerName'](_0x39a10b);return'suggestion'==_0x318008&&'tablePaste'==_0x5952cc&&_0x22596a==_0x216b8e['id']&&!_0x4ce8ae['oldRange'];});for(const _0x566628 of _0x496736){if('insert'!=_0x566628['type']||'tableCellSuggestion'!=_0x566628['name']||0x1!=_0x566628['length'])continue;const _0x4f89e5=_0x494846['createRange'](_0x566628['position'],_0x566628['position']['getShiftedBy'](0x1));if(!_0x4651a5['find'](({data:_0x1dbbc1})=>_0x1dbbc1['newRange']['isEqual'](_0x4f89e5))){for(const {name:_0x1ea743,data:_0x41b872}of _0x4651a5)if(_0x4f89e5['containsRange'](_0x41b872['newRange'])){_0x494846['updateMarker'](_0x1ea743,{'range':_0x4f89e5}),_0x5a128a=!0x0;break;}}}return _0x5a128a;}),_0x56c5c7['model']['document']['registerPostFixer'](_0x2baca7=>{let _0x3d7feb=!0x1;const _0x93b1d3=_0x56c5c7['plugins']['get']('Users')['me'],_0x2c9ae2=_0x272b2d['getSuggestions']()['filter'](_0x1b0af1=>_0x1b0af1['isInContent']&&_0x1b0af1['author']==_0x93b1d3),_0xe88ff4=new Set(),_0x5c8fe3=new Set();for(const _0x1665f4 of _0x2c9ae2)if('tablePaste'==_0x1665f4['subType'])for(const _0x40fb0c of _0x1665f4['getMarkers']()){const _0x533e1c=_0x40fb0c['getRange']()['getContainedElement']();if(_0x533e1c){if(_0x533e1c['is']('element','tableCellSuggestion')&&ke(_0x533e1c)){_0x1665f4['removeMarker'](_0x40fb0c['name']),_0xe88ff4['add'](_0x533e1c),_0x3d7feb=!0x0;const _0x5844ba=_0x533e1c['nextSibling'],_0x12d4ae=_0x533e1c['previousSibling'],_0x3c9f33=_0x5844ba&&_0x5844ba['is']('element','tableCellSuggestion'),_0x3ce2a2=_0x12d4ae&&_0x12d4ae['is']('element','tableCellSuggestion');_0x3c9f33&&!_0xe88ff4['has'](_0x5844ba)&&_0x5c8fe3['add'](_0x5844ba),_0x3ce2a2&&!_0xe88ff4['has'](_0x12d4ae)&&_0x5c8fe3['add'](_0x12d4ae);}else _0x533e1c['is']('element','paragraph')&&_0x533e1c['isEmpty']&&(_0x1665f4['removeMarker'](_0x40fb0c['name']),_0x3d7feb=!0x0);}}else{if('tablePasteCell'==_0x1665f4['subType']){if(!_0x1665f4['attributes']||!_0x1665f4['attributes']['tablePasteChainId'])continue;const _0x2bde9e=_0x1665f4['attributes']['markerAttributes'];if(_0x2bde9e&&Object['keys'](_0x2bde9e)['length'])continue;const _0x1b5023=_0x1665f4['attributes']['tablePasteChainId'];let _0x4b4f1b=!0x0,_0x5cbe77=!0x0;for(const _0x137213 of _0x2c9ae2)if(_0x137213['subType']&&_0x137213['subType']['startsWith']('tablePaste')){if(!_0x137213['attributes']['tablePasteChainId']){_0x5cbe77=!0x1;break;}if(_0x137213['id']!=_0x1665f4['id']&&_0x137213['attributes']['tablePasteChainId']==_0x1b5023){_0x4b4f1b=!0x1;break;}}_0x5cbe77&&_0x4b4f1b&&(_0x1665f4['removeMarkers'](),_0x3d7feb=!0x0);}}for(const _0x15b905 of _0xe88ff4)_0x2baca7['remove'](_0x15b905);for(const _0x27d635 of _0x5c8fe3)_0x2baca7['unwrap'](_0x27d635);return _0x3d7feb;}),_0x56c5c7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x554c96,_0x3668f7)=>_0xb62696(_0x554c96),'converterPriority':'high'}),_0x56c5c7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b8996,_0x462249)=>_0x462249['options']['showSuggestionHighlights']?_0xb62696(_0x2b8996,!0x1):null,'converterPriority':'high'});const _0x3b94fe=_0x56c5c7['editing']['view'];this['listenTo'](_0x3b94fe['document'],'clipboardOutput',(_0x79d899,_0x54743e)=>{const _0x5bbbd3=[];for(const _0x5ab2a3 of _0x3b94fe['createRangeIn'](_0x54743e['content'])['getItems']())_0x5ab2a3['is']('element','suggestion-td')&&_0x5bbbd3['push'](_0x5ab2a3);_0x3b94fe['change'](_0x51b936=>{for(const _0x15a169 of _0x5bbbd3)_0x51b936['move'](_0x51b936['createRangeIn'](_0x15a169),_0x51b936['createPositionBefore'](_0x15a169)),_0x51b936['remove'](_0x15a169);});});}}function ke(_0xe0d22){if(_0xe0d22['isEmpty'])return!0x0;const _0x85711e=_0xe0d22['getChild'](0x0);return _0x85711e['is']('element','paragraph')&&_0x85711e['isEmpty'];}function Re(_0xda54bb,_0xf3ee14={},_0x5b53de){for(const {isAnchor:_0x3a9e47,cellHeight:_0x46c836,cellWidth:_0x1d3eb7}of _0x5b53de['createTableWalker'](_0xda54bb,{'includeAllSlots':!0x0,..._0xf3ee14}))if(!_0x3a9e47||0x1!=_0x46c836||0x1!=_0x1d3eb7)return!0x1;return!0x0;}class Nt extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c5d19=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c5d19['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c5d19['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c5d19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c5d19['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c5d19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c5d19['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e67c2,_0x5e139d){const _0x423aa1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb1d171=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c8a5a=_0x5e139d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc983af=_0xb1d171['getColumnGroupElement'](_0x2c8a5a);let _0xfb827e=_0xc983af?_0xb1d171['getTableColumnsWidths'](_0xc983af):null,_0x1f0641=_0x2c8a5a['getAttribute']('tableWidth')||null;const _0x58d78c=_0x5e139d['tableWidth']||_0x1f0641,_0x460abc=_0x5e139d['columnWidths']||_0xfb827e,_0x310ab6=this['editor']['plugins']['get']('Users')['me'];for(const _0x2ce3fe of _0x423aa1['getSuggestions']()){const _0x53dc3f=_0x2ce3fe['getContainedElement']();if('resizeTable'===_0x2ce3fe['subType']&&_0x53dc3f===_0x2c8a5a){_0x2ce3fe['author']!==_0x310ab6&&_0x2ce3fe['discard']();const _0x43c255=_0x2ce3fe['data']['commandParams'];_0x1f0641=_0x43c255[0x0]['tableWidth'],_0xfb827e=_0x43c255[0x0]['columnWidths'];break;}}_0x1e67c2({'table':_0x2c8a5a,'tableWidth':_0x58d78c,'columnWidths':_0x460abc}),_0x423aa1['markBlockFormat'](_0x2c8a5a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f0641,'columnWidths':_0xfb827e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f2e82){if('formatBlock'!=_0x4f2e82['type']&&'formatInline'!=_0x4f2e82['type'])return;const {data:_0x263d50}=_0x4f2e82;if(_0x263d50&&'resizeTable'===_0x263d50['formatGroupId']){const _0x2f4571='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2f4571)};}}}class Dt extends _0x2d1259{['afterInit'](){const _0x2d04df=this['editor'];_0x2d04df['plugins']['has']('Template')&&_0x2d04df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2d1259{['afterInit'](){const _0x1cfb7a=this['editor'];if(!_0x1cfb7a['commands']['get']('insertTableOfContents'))return;_0x1cfb7a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4364e2=_0x1cfb7a['plugins']['get']('TrackChangesEditing'),_0x52c818=_0x1cfb7a['locale'];_0x4364e2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18578d=>o(_0x52c818,'ELEMENT_TABLE_OF_CONTENTS',_0x18578d));}}class $t extends _0x2d1259{['afterInit'](){const _0xe9b876=this['editor'];if(!_0xe9b876['plugins']['has']('Title'))return;const _0x59eab5=_0xe9b876['plugins']['get']('TrackChangesEditing');_0x59eab5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe9b876['locale'],'ELEMENT_TITLE')),_0xe9b876['model']['document']['registerPostFixer'](_0x176019=>{let _0xbcc822=!0x1;const _0x996886=Array['from'](_0xe9b876['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x473360,data:_0xf0dadd}of _0x996886){const {group:_0x4b0202}=_0x59eab5['_splitMarkerName'](_0x473360);if('suggestion'!==_0x4b0202||!_0xf0dadd['newRange'])continue;const _0x3f3b1d=_0xf0dadd['newRange'],_0x24a6df=_0x3f3b1d['end']['nodeBefore'];if(!_0x24a6df||!_0x24a6df['is']('element','title-content'))continue;if(!_0x3f3b1d['start']['isTouching'](_0x3f3b1d['end']))continue;const _0x58a9f6=_0xe9b876['model']['schema']['getNearestSelectionRange'](_0x3f3b1d['end'],'forward');if(_0x58a9f6&&_0x58a9f6['isCollapsed']){const _0x3bed4b=_0x176019['createRange'](_0x3f3b1d['start'],_0x58a9f6['start']);_0x3bed4b['isEqual'](_0x3f3b1d)||(_0x176019['updateMarker'](_0x473360,{'range':_0x3bed4b}),_0xbcc822=!0x0);}_0xbcc822||(_0x176019['removeMarker'](_0x473360),_0xbcc822=!0x0);}return _0xbcc822;});}}class Bt extends _0x2d1259{['afterInit'](){const _0x58b6a3=this['editor'],_0x49084e=_0x58b6a3['plugins']['get']('TrackChangesEditing');_0x58b6a3['plugins']['has']('UndoEditing')&&(_0x49084e['enableCommand']('undo'),_0x49084e['enableCommand']('redo'));}}class xt extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x3872bc=this['editor'];if(!_0x3872bc['plugins']['has']('TableCaptionEditing'))return;_0x3872bc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2d1259{['tableProperties'];['tableCellProperties'];constructor(_0x4ef6a3){super(_0x4ef6a3),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 _0x56490f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5a630e of this['tableProperties'])_0x56490f['enableCommand'](_0x5a630e,(_0x21cbdb,_0x22d008)=>{const _0x2ccd8d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5a630e,[_0x2ccd8d],this['tableProperties'],'tableProperties',_0x21cbdb,_0x22d008);});_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x56490f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x8abbde,_0x438eb3)=>this['handleDiscardAction'](this['tableProperties'],_0x8abbde,_0x438eb3)),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x59e45e of this['tableCellProperties'])_0x56490f['enableCommand'](_0x59e45e,(_0x2c39c9,_0x2e292d)=>{const _0x357f6a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x59e45e,_0x357f6a,this['tableCellProperties'],'tableCellProperties',_0x2c39c9,_0x2e292d);});_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x56490f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1c85c,_0x1e638d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1c85c,_0x1e638d)),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x56490f['descriptionFactory']['registerDescriptionCallback'](_0x1e75f4=>this['handleSuggestionDescription'](_0x1e75f4));}['_handlePropertyChange'](_0x334d5c,_0x1efb09,_0x58ef9a,_0x4e6492,_0x5b7ca2,_0x402a72){const _0x2fa9f8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x402a72['batch'],()=>{for(const _0x27406c of _0x1efb09){if(this['_getSuggestion'](_0x27406c,_0x4e6492))_0x5b7ca2(_0x402a72);else{const _0x105778={};for(const _0x2043d0 of _0x58ef9a){const _0xe7e0ea=_0x27406c['getAttribute'](_0x2043d0);void 0x0!==_0xe7e0ea&&(_0x105778[_0x2043d0]=_0xe7e0ea);}_0x5b7ca2(_0x402a72),_0x2fa9f8['markBlockFormat'](_0x27406c,{'commandParams':[_0x105778]},[],_0x4e6492);}}});}['handleDiscardAction'](_0xec53d7,_0x39eb83,_0xfadbf1){const _0x1c0956=_0x39eb83[0x0]['start']['nodeAfter'],_0x1b774e=_0xfadbf1['commandParams'][0x0];this['editor']['model']['change'](_0x48e5b1=>{for(const _0x4e7934 of _0xec53d7)void 0x0!==_0x1b774e[_0x4e7934]?_0x48e5b1['setAttribute'](_0x4e7934,_0x1b774e[_0x4e7934],_0x1c0956):_0x48e5b1['removeAttribute'](_0x4e7934,_0x1c0956);});}['handleSuggestionDescription'](_0x20981f){if(_0x20981f['data'])switch(_0x20981f['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'](_0x4c4767,_0x5c91fe){const _0x96d45d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x425b80 of _0x96d45d['getSuggestions']({'skipNotAttached':!0x0})){const _0x3fd22d=_0x425b80['getContainedElement']();if(_0x425b80['subType']===_0x5c91fe&&_0x3fd22d===_0x4c4767)return _0x425b80;}return null;}}const m='$elementName';class p extends _0x2d1259{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1f5312,_0x3bfa02,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(_0xc89d19){function _0x1eeeda(_0x463037){return _0x463037['map'](_0x27ea44=>String['fromCharCode'](_0x27ea44))['join']('');}super(_0xc89d19),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x40ec5e,_0x1891bb,_0x10c7eb,_0x505dba)=>{this['_model']['change'](()=>{for(const _0xaa449a of[..._0x505dba,..._0x10c7eb])this['_model']['markers']['has'](_0xaa449a)&&_0xc89d19['editing']['reconvertMarker'](_0xaa449a);});}),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']=_0xc89d19['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(),_0xc89d19['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xc89d19['config']['get']('trackChanges.trackFormatChanges'),_0xc89d19['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xc89d19['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xc89d19,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1eeeda([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1eeeda([0x34,0x30,0x34,0x38,0x31,0x36,0x34,0x32]);}['init'](){const _0x2f99bd=this['editor'],_0x300c5c=(_0x3b33bd,_0x49e212)=>{if('attribute'!=_0x3b33bd)return'ck-suggestion-marker-'+_0x3b33bd;const _0x2b446b=_0x49e212['split']('|')[0x0];return this['_isBlockAttribute'](_0x2b446b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2f99bd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x58ec30=>{const {id:_0x2307ab,authorId:_0x34ccac,type:_0x4840db,subType:_0x463462}=this['_splitMarkerName'](_0x58ec30['markerName']),_0x4ac203=['ck-suggestion-marker',_0x300c5c(_0x4840db,_0x463462)];let _0x57ce41=0xbb8;return this['activeMarkers']['includes'](_0x58ec30['markerName'])&&(_0x4ac203['push']('ck-suggestion-marker--active'),_0x57ce41=0xbc2),'deletion'==_0x4840db&&(_0x57ce41+=0x5),{'classes':_0x4ac203,'attributes':{'data-suggestion':_0x2307ab,'data-author-id':_0x34ccac},'priority':_0x57ce41};}}),_0x2f99bd['conversion']['for']('dataDowncast')['add'](_0x10070f=>{_0x10070f['on']('addMarker:suggestion',(_0x4813ca,_0x46733d,_0x2319a3)=>{if(!_0x2319a3['options']['showSuggestionHighlights'])return;const _0x535117=_0x46733d['item'];if(!_0x535117)return;const _0xda2fad=_0x2319a3['mapper']['toViewElement'](_0x535117);_0x2f99bd['model']['schema']['isObject'](_0x535117)&&_0xda2fad&&!_0xda2fad['getCustomProperty']('widget')&&_0xda2fad['is']('containerElement')&&_0x2c10f6(_0xda2fad,_0x2319a3['writer']);},{'priority':'high'});}),_0x2f99bd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x100ae8,_0x3094ba)=>{if(!_0x3094ba['options']['showSuggestionHighlights'])return null;const {type:_0x2cb573,subType:_0x4be8ac}=this['_splitMarkerName'](_0x100ae8['markerName']);return{'classes':['ck-suggestion-marker',_0x300c5c(_0x2cb573,_0x4be8ac)],'priority':0xbb8};}});const _0x4d9142=({showActiveMarkers:_0x37d364=!0x0,isAttributeSuggestion:_0xcb4e1=!0x1}={})=>(_0x579dac,_0x44e34e,_0x5a782f)=>{if(!_0x44e34e['item'])return;const {id:_0x4afe63,authorId:_0x43b77c}=this['_splitMarkerName'](_0x44e34e['markerName']);if(_0xcb4e1){const _0x2b60cb=this['_suggestions']['get'](_0x4afe63),_0x210e55=this['_getAttributeKey'](_0x2b60cb);if(!this['_isBlockAttribute'](_0x210e55))return;}if(_0x44e34e['item']['is']('selection'))return void _0x5a782f['consumable']['consume'](_0x44e34e['item'],_0x579dac['name']);const _0x589d91=_0x5a782f['mapper']['toViewElement'](_0x44e34e['item']);if(_0x44e34e['item']['is']('element')&&_0x2f99bd['model']['schema']['isBlock'](_0x44e34e['item'])&&!_0x589d91['getCustomProperty']('addHighlight')){_0x5a782f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x589d91),_0x5a782f['writer']['setAttribute']('data-suggestion',_0x4afe63,_0x589d91),_0x5a782f['writer']['setAttribute']('data-author-id',_0x43b77c,_0x589d91),_0x5a782f['mapper']['bindElementToMarker'](_0x589d91,_0x44e34e['markerName']),_0x37d364&&(this['activeMarkers']['includes'](_0x44e34e['markerName'])?_0x5a782f['writer']['addClass']('ck-suggestion-marker--active',_0x589d91):_0x5a782f['writer']['removeClass']('ck-suggestion-marker--active',_0x589d91));for(const _0x29d145 of _0x2f99bd['model']['createRangeIn'](_0x44e34e['item'])['getItems']())_0x5a782f['consumable']['consume'](_0x29d145,_0x579dac['name']);_0x5a782f['consumable']['consume'](_0x44e34e['item'],_0x579dac['name']);}};_0x2f99bd['conversion']['for']('dataDowncast')['add'](_0x2ae5d0=>{_0x2ae5d0['on']('addMarker:suggestion:formatBlock',(_0x68ca7f,_0x38a954,_0x596b56)=>{_0x596b56['options']['showSuggestionHighlights']&&_0x4d9142({'showActiveMarkers':!0x1})(_0x68ca7f,_0x38a954,_0x596b56);},{'priority':'highest'});}),_0x2f99bd['conversion']['for']('dataDowncast')['add'](_0x26ce55=>{_0x26ce55['on']('addMarker:suggestion:attribute',(_0x2c9d68,_0x23e63d,_0xfb1623)=>{_0xfb1623['options']['showSuggestionHighlights']&&_0x4d9142({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c9d68,_0x23e63d,_0xfb1623);},{'priority':'highest'});}),_0x2f99bd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4a6f2c,_0x3586c5)=>_0x3586c5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4a6f2c['substr'](0xb)}}),_0x2f99bd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15df2d,{writer:_0x510a5a})=>{let _0xf6d275='suggestion:'+_0x15df2d['getAttribute']('suggestion-type')+':'+_0x15df2d['getAttribute']('id');return _0x15df2d['getAttribute']('marker-count')&&(_0xf6d275+=':'+_0x15df2d['getAttribute']('marker-count')),_0x510a5a['createElement']('$marker',{'data-name':_0xf6d275});}}),_0x2f99bd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x5d6f67=>{_0x5d6f67['on']('addMarker:suggestion:formatBlock',_0x4d9142(),{'priority':'high'});}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x49fc23=>{_0x49fc23['on']('addMarker:suggestion:attribute',_0x4d9142({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x53d408=>{_0x53d408['on']('removeMarker:suggestion:formatBlock',(_0x1d24c3,_0x44fb84,_0x47bdeb)=>{const _0x3a9ef1=_0x47bdeb['mapper']['markerNameToElements'](_0x44fb84['markerName']);if(_0x3a9ef1){for(const _0x45a096 of _0x3a9ef1)_0x45a096['getCustomProperty']('addHighlight')||(_0x47bdeb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45a096),_0x47bdeb['writer']['removeAttribute']('data-suggestion',_0x45a096),_0x47bdeb['writer']['removeAttribute']('data-author-id',_0x45a096),_0x47bdeb['mapper']['unbindElementFromMarkerName'](_0x45a096,_0x44fb84['markerName']));}},{'priority':'high'});}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x5d90be=>{_0x5d90be['on']('removeMarker:suggestion:attribute',(_0x1add88,_0x2a8e14,_0x7260aa)=>{const _0x3b1936=_0x7260aa['mapper']['markerNameToElements'](_0x2a8e14['markerName']);if(!_0x3b1936)return;const {id:_0x5bebee}=this['_splitMarkerName'](_0x2a8e14['markerName']),_0x1ffa9b=this['_suggestions']['get'](_0x5bebee),_0x4ad7ee=this['_getAttributeKey'](_0x1ffa9b);if(this['_isBlockAttribute'](_0x4ad7ee)){for(const _0x186868 of _0x3b1936)_0x186868['getCustomProperty']('addHighlight')||(_0x7260aa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x186868),_0x7260aa['writer']['removeAttribute']('data-suggestion',_0x186868),_0x7260aa['writer']['removeAttribute']('data-author-id',_0x186868),_0x7260aa['mapper']['unbindElementFromMarkerName'](_0x186868,_0x2a8e14['markerName']));}},{'priority':'high'});}),_0x2f99bd['model']['document']['registerPostFixer'](_0xa842a7=>{let _0x5a258c=!0x1;const _0x5d4e36=Array['from'](_0x2f99bd['model']['document']['differ']['getChangedMarkers']()),_0x214271=new Set();for(const {name:_0xb45410,data:_0x5c1d54}of _0x5d4e36){const {group:_0x42a936,type:_0x2b0da2,subType:_0x2f6870,id:_0x33a7ee}=this['_splitMarkerName'](_0xb45410);if('suggestion'!==_0x42a936)continue;const _0x58dcf7=this['_suggestions']['get'](_0x33a7ee);if(null!=_0x5c1d54['newRange']){'formatInline'==_0x2b0da2&&(_0x5a258c=_0x5a258c||Ut(_0x5c1d54['newRange'],_0xb45410,_0xa842a7,_0x2f99bd['model']['schema']));const _0x5e5bc3='attribute'==_0x2b0da2&&this['_isBlockAttribute'](_0x2f6870['split']('|')[0x0]);if(_0x5c1d54['newRange']['isCollapsed']||'$graveyard'==_0x5c1d54['newRange']['root']['rootName']||'formatBlock'==_0x2b0da2&&!Ft(_0x5c1d54['newRange'])||_0x5e5bc3&&!Ft(_0x5c1d54['newRange'])||'deletion'==_0x2b0da2&&!(!Vt(_0xbf5195=_0x5c1d54['newRange'])&&!function(_0x597c42){return _0x597c42['start']['parent']==_0x597c42['end']['nodeBefore']&&_0x597c42['start']['isAtEnd'];}(_0xbf5195)))_0xa842a7['removeMarker'](_0xb45410),_0x5a258c=!0x0;else{if(!_0x58dcf7||!_0x58dcf7['isInContent'])continue;if(_0x5c1d54['newRange']&&_0x5c1d54['oldRange']&&_0x5c1d54['newRange']['isEqual'](_0x5c1d54['oldRange']))continue;_0x214271['add'](_0x58dcf7);}}}var _0xbf5195;return _0x214271['size']>0x0&&(_0x5a258c=!!this['_joinWithAdjacentSuggestions'](_0x214271)||_0x5a258c),_0x5a258c;}),_0x2f99bd['model']['document']['registerPostFixer'](_0x319228=>{let _0x5e1349=!0x1;for(const _0x224624 of _0x2f99bd['model']['document']['differ']['getChanges']())if('insert'==_0x224624['type'])for(const _0xf04601 of this['_suggestions']['values']()){if(_0xf04601['isMultiRange']||!_0xf04601['isInContent'])continue;const _0x49f801='formatBlock'==_0xf04601['type'],_0x271e68=this['_getAttributeKey'](_0xf04601),_0x861e8d=_0x271e68&&this['_isBlockAttribute'](_0x271e68);if(!_0x49f801&&!_0x861e8d)continue;const _0x2ce0ba=_0xf04601['getFirstRange']();if(_0x2ce0ba['start']['parent']!=_0x2ce0ba['end']['parent']&&!_0x2ce0ba['end']['isAtEnd']){const _0x3b507f=_0x2f99bd['model']['createPositionAt'](_0x2ce0ba['start']['nodeAfter'],'end'),_0x523301=_0x2f99bd['model']['createRange'](_0x2ce0ba['start'],_0x3b507f);_0x319228['updateMarker'](_0xf04601['getFirstMarker'](),{'range':_0x523301}),_0x5e1349=!0x0;}}return _0x5e1349;}),_0x2f99bd['model']['document']['registerPostFixer'](_0x325d32=>this['_processAttributeChanges'](_0x325d32)),_0x2f99bd['model']['document']['registerPostFixer'](_0xd5cc93=>!_0xd5cc93['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd5cc93)),_0x2f99bd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2f99bd['model']['document']['on']('change:data',(_0x43b0ec,_0x56ad0b)=>{if(!_0x56ad0b['isLocal']||_0x56ad0b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x500f77=_0x2f99bd['model']['document']['differ']['getChanges']();if(0x0==_0x500f77['length'])return;const _0x36fea2=[],_0x5dde94=_0x500f77['filter'](_0x43b6d9=>'attribute'==_0x43b6d9['type']),_0x266b5f=_0x500f77['filter'](_0x560c5f=>'insert'==_0x560c5f['type']&&'$text'!=_0x560c5f['name']);for(const _0x4d14d1 of _0x5dde94)this['_isRegisteredAttribute'](_0x4d14d1['attributeKey'])&&_0x36fea2['push']({'key':_0x4d14d1['attributeKey'],'newValue':_0x4d14d1['attributeNewValue'],'oldValue':_0x4d14d1['attributeOldValue'],'range':Pt(_0x4d14d1['range'],_0x2f99bd['model'])});for(const _0x3faf75 of _0x266b5f){if('rename'!=_0x3faf75['action']&&'refresh'!=_0x3faf75['action'])continue;const _0x35d751=Lt(_0x3faf75['position']['nodeAfter'],_0x2f99bd['model']),_0x4b6f45=_0x3faf75['before'];'rename'==_0x3faf75['action']&&_0x36fea2['push']({'key':m,'newValue':_0x3faf75['name'],'oldValue':_0x4b6f45['name'],'range':_0x35d751});for(const [_0x1f3dd6,_0x3b75a2]of _0x4b6f45['attributes']){if(!this['_isRegisteredAttribute'](_0x1f3dd6))continue;const _0x1f35fc=_0x3faf75['attributes']['get'](_0x1f3dd6);_0x3b75a2!==_0x1f35fc&&_0x36fea2['push']({'key':_0x1f3dd6,'newValue':_0x1f35fc,'oldValue':_0x3b75a2,'range':_0x35d751});}for(const [_0x5104c5,_0x294a69]of _0x3faf75['attributes'])this['_isRegisteredAttribute'](_0x5104c5)&&(_0x4b6f45['attributes']['has'](_0x5104c5)||_0x36fea2['push']({'key':_0x5104c5,'newValue':_0x294a69,'oldValue':null,'range':_0x35d751}));}0x0!=_0x36fea2['length']&&_0x2f99bd['model']['enqueueChange'](_0x56ad0b,_0x713f01=>{const _0x3abb86=_0x6322ca();for(const {range:_0x82ea91,key:_0x7de4d6,oldValue:_0x5b5a74,newValue:_0x2dc684}of _0x36fea2)this['markAttributeChange'](_0x82ea91,_0x7de4d6,_0x5b5a74,_0x2dc684,{'groupId':_0x3abb86});this['_reduceExistingSuggestions'](_0x713f01,_0x36fea2);});},{'priority':'lowest'}),_0x2f99bd['model']['markers']['on']('update:suggestion',(_0x5c8bd4,_0x3a0690,_0x499ad4)=>{if(null==_0x499ad4){const {id:_0x165da3}=this['_splitMarkerName'](_0x3a0690['name']),_0x17633e=this['_suggestions']['get'](_0x165da3);_0x17633e&&_0x17633e['addMarkerName'](_0x3a0690['name']);}}),_0x2f99bd['model']['document']['on']('change:data',()=>{const _0x39d2a4=Array['from'](_0x2f99bd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a3a4e=>'suggestion'===this['_splitMarkerName'](_0x3a3a4e['name'])['group']);if(0x0===_0x39d2a4['length'])return;_0x39d2a4['sort']((_0x1da966,_0x390e47)=>{const _0x2b4567=_0x1da966['data']['oldRange'],_0x55c803=_0x390e47['data']['oldRange'];return null===_0x2b4567&&null===_0x55c803?0x0:null===_0x2b4567&&null!==_0x55c803?-0x1:null!==_0x2b4567&&null===_0x55c803?0x1:_0x2b4567['start']['isBefore'](_0x55c803['start'])?-0x1:0x1;});const _0x192702=new Set(),_0x3e665b=new Set();for(const {name:_0x5a9c77,data:_0x245ca7}of _0x39d2a4){const {id:_0x1e02b}=this['_splitMarkerName'](_0x5a9c77);if(null===_0x245ca7['oldRange']){const _0x2ede81=this['_handleNewSuggestionMarker'](_0x5a9c77);_0x3e665b['add'](_0x2ede81);}else{const _0x252084=this['_suggestions']['get'](_0x1e02b);null!==_0x245ca7['newRange']||_0x252084['isInContent']?(_0x192702['add'](_0x252084['head']),_0x3e665b['add'](_0x252084)):this['_removeSuggestion'](_0x252084);}}_0x3e665b['size']>0x0&&this['_refreshSuggestionsChain'](_0x3e665b);for(const _0x2a18f2 of _0x192702)this['fire']('suggestionChanged',_0x2a18f2);}),_0x2f99bd['model']['on']('applyOperation',(_0x3cfe61,_0x4cc9f4)=>{const _0x131120=_0x4cc9f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x131120['isDocumentOperation'])return;if(_0x131120['batch']['isUndo']||!_0x131120['batch']['isLocal'])return;let _0x27e7ed,_0x5c6ee4;switch(_0x131120['type']){case'insert':_0x27e7ed=_0x2f99bd['model']['createPositionAt'](_0x131120['position']),_0x5c6ee4=_0x27e7ed['getShiftedBy'](_0x131120['howMany']);break;case'split':_0x27e7ed=_0x2f99bd['model']['createPositionAt'](_0x131120['splitPosition']),_0x5c6ee4=_0x2f99bd['model']['createPositionAt'](_0x131120['moveTargetPosition']);break;case'move':_0x27e7ed=_0x2f99bd['model']['createPositionAt'](_0x131120['targetPosition']),_0x5c6ee4=_0x27e7ed['getShiftedBy'](_0x131120['howMany']);break;default:return;}const _0x1f37ee=_0x2f99bd['model']['createRange'](_0x27e7ed,_0x5c6ee4);_0x2f99bd['model']['change'](()=>{for(const {suggestion:_0x2b30a9,meta:_0x520843}of this['_findSuggestions'](_0x1f37ee)){if(_0x2b30a9['isMultiRange'])continue;if('formatInline'==_0x2b30a9['type'])continue;const _0x2318be=this['_getAttributeKey'](_0x2b30a9);if(_0x2318be&&this['_isBlockAttribute'](_0x2318be)&&'split'!=_0x131120['type'])continue;const _0x4394e4=_0x2b30a9['data']&&_0x2b30a9['data']['multipleBlocks'];('formatBlock'!=_0x2b30a9['type']||'split'==_0x131120['type']&&!_0x4394e4)&&(_0x520843['containsRangeInObject']||'insertion'==_0x2b30a9['type']&&_0x520843['isOwn']||_0x2b30a9['getFirstRange']()['containsRange'](_0x1f37ee)&&this['_breakSuggestionMarker'](_0x2b30a9,_0x27e7ed,_0x5c6ee4));}});},{'priority':'lowest'}),_0x2f99bd['model']['on']('deleteContent',(_0x11a180,_0x508874)=>{const _0x1ec293=_0x508874[0x0],_0x471545=_0x508874[0x1];if(_0x471545&&_0x471545['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1ec293['isCollapsed'])return;const _0x30b1ea=_0x2f99bd['model']['schema'],{start:_0x1e71dc,end:_0x469094}=_0x1ec293['getFirstRange'](),_0x137aff=_0x1e71dc['nodeAfter']&&_0x30b1ea['isLimit'](_0x1e71dc['nodeAfter'])?null:_0x30b1ea['getNearestSelectionRange'](_0x1e71dc,'forward'),_0x1720bc=_0x469094['nodeBefore']&&_0x30b1ea['isLimit'](_0x469094['nodeBefore'])?null:_0x30b1ea['getNearestSelectionRange'](_0x469094,'backward'),_0x4feaef=_0x2f99bd['model']['createRange'](_0x137aff?_0x137aff['start']:_0x1e71dc,_0x1720bc?_0x1720bc['end']:_0x469094);_0x2f99bd['model']['change'](_0x15f6e4=>{this['markDeletion'](_0x4feaef);const _0x402a4b=_0x2f99bd['model']['schema']['getNearestSelectionRange'](_0x4feaef['start']);_0x1ec293['is']('documentSelection')?_0x15f6e4['setSelection'](_0x402a4b):_0x1ec293['setTo'](_0x402a4b);}),_0x11a180['stop']();},{'priority':_0xcad5a0['normal']+0xa}),_0x2f99bd['model']['on']('insertContent',(_0x37f156,_0x1bab85)=>{const _0x92ae4e=_0x1bab85[_0x1bab85['length']-0x1];_0x92ae4e&&_0x92ae4e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2f99bd['model']['change'](()=>{let _0x2e9078=_0x2f99bd['model']['insertContent'](_0x1bab85[0x0],_0x1bab85[0x1],_0x1bab85[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e9078)return;_0x37f156['return']=_0x2e9078['clone']();const _0xa386bd=_0x2e9078['end']['nodeBefore'],_0x2fec7c=_0x2f99bd['model']['schema'];_0xa386bd&&_0x2fec7c['isBlock'](_0xa386bd)&&!_0x2fec7c['isObject'](_0xa386bd)&&(_0x2e9078=_0x2f99bd['model']['createRange'](_0x2e9078['start'],_0x2f99bd['model']['createPositionAt'](_0xa386bd,'end'))),this['markInsertion'](_0x2e9078);}),_0x37f156['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x436b67=new x(_0x2f99bd,this['_suggestions']);_0x2f99bd['commands']['add']('acceptSuggestion',_0x436b67),this['enableCommand']('acceptSuggestion');const _0xb151f6=new R(_0x2f99bd,this['_suggestions']);_0x2f99bd['commands']['add']('discardSuggestion',_0xb151f6),this['enableCommand']('discardSuggestion'),_0x2f99bd['commands']['add']('acceptAllSuggestions',new E(_0x2f99bd,_0x436b67,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2f99bd['commands']['add']('discardAllSuggestions',new E(_0x2f99bd,_0xb151f6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2f99bd['commands']['add']('acceptSelectedSuggestions',new O(_0x2f99bd,_0x436b67,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2f99bd['commands']['add']('discardSelectedSuggestions',new O(_0x2f99bd,_0xb151f6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2deae0=_0x2f99bd['plugins']['get']('CommentsRepository');this['listenTo'](_0x2deae0,'addComment',(_0x55cee7,{threadId:_0x77f73e})=>{const _0x1fe37a=this['_suggestions']['get'](_0x77f73e);_0x1fe37a&&_0x1fe37a['commentThread']&&0x1===_0x1fe37a['commentThread']['length']&&this['_updateSuggestionData'](_0x77f73e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2deae0,'removeComment',(_0x45e793,{threadId:_0x4b280a})=>{const _0x152f6c=this['_suggestions']['get'](_0x4b280a);_0x152f6c&&_0x152f6c['commentThread']&&!_0x152f6c['commentThread']['length']&&this['_updateSuggestionData'](_0x4b280a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x8a8e16){if(this['_adapter'])throw new _0x297859('track-changes-adapter-already-set',this);this['_adapter']=_0x8a8e16;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b66b1=!0x1,toJSON:_0x16601b=!0x1}={}){const _0x4d607a=[];for(const _0x1a3343 of this['_suggestions']['values']())_0x4b66b1&&!_0x1a3343['isInContent']||_0x4d607a['push'](_0x1a3343);return _0x16601b?_0x4d607a['map'](_0x8fd848=>_0x8fd848['toJSON']()):_0x4d607a;}['getSuggestion'](_0x36041f){const _0xf08a29=this['_suggestions']['get'](_0x36041f);if(!_0xf08a29)throw new _0x297859('track-changes-suggestion-not-found',this);return _0xf08a29;}['hasSuggestion'](_0x3a17b4){return this['_suggestions']['has'](_0x3a17b4);}['addSuggestionData'](_0x4ae571){const {authorId:_0x5bd4dc,id:_0x202364,attributes:_0x5a29a4}=_0x4ae571,[_0x46eaa3,_0x2f469e]=_0x4ae571['type']['split'](':'),_0x289729=this['_suggestions']['get'](_0x202364)||this['_createSuggestion'](_0x46eaa3,_0x2f469e,_0x202364,_0x5bd4dc,_0x5a29a4);if(this['_addThreadToSuggestion'](_0x289729),this['_checkSuggestionCorrectness'](_0x289729,_0x46eaa3,_0x2f469e||null,_0x5bd4dc),_0x289729['createdAt']=_0x4ae571['createdAt'],_0x289729['_isDataLoaded']=!0x0,_0x5a29a4&&_0x5a29a4['@external']){const _0x34c787=_0x5a29a4['@external'],_0x16a632=this['_getExternalAuthor'](_0x34c787['authorName']);_0x289729['authoredAt']=_0x34c787['createdAt'],_0x289729['author']=_0x16a632,_0x289729['isExternal']=!0x0;}else _0x289729['authoredAt']=_0x4ae571['createdAt'];switch(_0x4ae571['data']&&(_0x289729['data']=_0x4ae571['data']),_0x4ae571['attributes']&&(_0x289729['attributes']=_0x4ae571['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x289729['_saved']=!0x0),this['_suggestionState']['get'](_0x289729)){case'notReady':this['_suggestionState']['set'](_0x289729,'dataReady');break;case'markerReady':_0x289729['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x289729])),this['_refreshSuggestionsChain'](new Set([_0x289729])),this['_suggestionState']['set'](_0x289729,'ready'),this['fire']('suggestionLoaded',_0x289729)):this['_suggestionState']['set'](_0x289729,'removed');}return _0x289729;}['acceptSuggestion'](_0x2dec31){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf7acd3 of _0x2dec31['getAllAdjacentSuggestions']())_0xf7acd3['accept']();});});}['discardSuggestion'](_0x3ed5f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16a013 of _0x3ed5f8['getAllAdjacentSuggestions']())_0x16a013['discard']();});});}['enableCommand'](_0x105a0e,_0x2e03e4){const _0x567166=this['editor']['commands']['get'](_0x105a0e);if(!_0x567166)throw new _0x297859('track-changes-command-not-found',this,{'commandName':_0x105a0e});if(this['_enabledCommands']['has'](_0x567166))throw new _0x297859('track-changes-enable-command-twice',this,{'commandName':_0x105a0e});this['_enabledCommands']['add'](_0x567166),_0x2e03e4&&_0x567166['on']('execute',(_0x1ce222,_0x24e6ce)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x24e6ce['length']>0x0&&_0x24e6ce[_0x24e6ce['length']-0x1]&&_0x24e6ce[_0x24e6ce['length']-0x1]['forceDefaultExecution']?_0x24e6ce['pop']():(_0x1ce222['return']=_0x2e03e4((..._0x1d666b)=>_0x567166['execute'](..._0x1d666b,{'forceDefaultExecution':!0x0}),..._0x24e6ce),_0x1ce222['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4eca74){let _0xa839b4,_0x4fe8f9;const _0x3a39f6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xa839b4=_0x4eca74();}catch(_0x37adeb){_0x4fe8f9=_0x37adeb;}return _0x3a39f6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4fe8f9&&_0x297859['rethrowUnexpectedError'](_0x4fe8f9,this),_0xa839b4;}['markInsertion'](_0x17a46d,_0x3a31a1=null,_0x2305fe={}){if(_0x17a46d['isCollapsed'])return null;const _0x1ed09a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ce917,meta:_0x14c5b9}of this['_findSuggestions'](_0x17a46d,'insertion'))if(_0x14c5b9['isOwn']){if(!_0x14c5b9['isNextTo']){if(_0x14c5b9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ce917,_0x2305fe))continue;return _0x5ce917;}if(qt(_0x5ce917,_0x2305fe))return _0x5ce917;this['_breakSuggestionMarker'](_0x5ce917,_0x17a46d['start'],_0x17a46d['end']);break;}if(_0x3a31a1==_0x5ce917['subType']&&qt(_0x5ce917,_0x2305fe)){const _0x3bc237=_0x5ce917['getFirstRange']();return _0x3bc237['start']['isEqual'](_0x17a46d['end'])?this['_setSuggestionRange'](_0x5ce917,this['_model']['createRange'](_0x17a46d['start'],_0x3bc237['end'])):this['_setSuggestionRange'](_0x5ce917,this['_model']['createRange'](_0x3bc237['start'],_0x17a46d['end'])),_0x5ce917;}}const _0x47215d=_0x6322ca(),_0x1cd331=_0x1ed09a['id'],_0x32d696=_0x3a31a1?'insertion:'+_0x3a31a1:'insertion',_0x300e2c=this['_setSuggestionData']({'id':_0x47215d,'type':_0x32d696,'createdAt':new Date(),'authorId':_0x1cd331,'attributes':_0x2305fe});return this['_addSuggestionMarker'](_0x32d696,_0x47215d,_0x1cd331,_0x17a46d),_0x300e2c;}['markMultiRangeInsertion'](_0x413177,_0x81a0ac='multi',_0x26deb9={}){const _0x11d79b=this['editor']['plugins']['get']('Users')['me'],_0x4d576a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x81a0ac,'join');for(const _0x220e78 of this['getSuggestions']())if(_0x220e78['author']['id']==_0x11d79b['id']&&'insertion'==_0x220e78['type']&&_0x220e78['subType']==_0x81a0ac&&qt(_0x220e78,_0x26deb9)&&(_0x4d576a(_0x220e78['getRanges'](),_0x413177)||_0x4d576a(_0x413177,_0x220e78['getRanges']()))){for(const _0x17d38b of _0x413177)_0x220e78['addRange'](_0x17d38b);return _0x220e78;}for(const {suggestion:_0x145df8,meta:_0x4b4c29}of this['_findSuggestions'](_0x413177,'insertion')){if(!_0x4b4c29['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4b4c29['containsRangeInObject'])continue;if(!qt(_0x145df8,_0x26deb9))continue;let _0x386174=!0x0;for(const _0x88c928 of _0x145df8['getRanges']())for(const _0x58c48c of _0x413177)if(!_0x88c928['containsRange'](_0x58c48c)){_0x386174=!0x1;break;}if(_0x386174)return _0x145df8;}const _0x5a5b66=_0x6322ca(),_0x16c028=_0x11d79b['id'],_0x42549e='insertion:'+_0x81a0ac,_0xc0122d=this['_setSuggestionData']({'id':_0x5a5b66,'type':_0x42549e,'createdAt':new Date(),'authorId':_0x16c028,'attributes':_0x26deb9});for(const _0x42606b of _0x413177)this['_addSuggestionMarker'](_0x42549e,_0x5a5b66,_0x16c028,_0x42606b,u['getMultiRangeId']());return _0xc0122d;}['markInlineFormat'](_0x173de5,_0x1e7b8a,_0x2afcb5=null,_0x2b1505={}){if(_0x2afcb5=_0x2afcb5||Gt(_0x1e7b8a),_0x173de5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x31b1e3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2afcb5,'accept');return this['forceDefaultExecution'](()=>_0x31b1e3([_0x173de5],_0x1e7b8a,_0x2b1505)),null;}const _0x2b0c97=this['editor']['plugins']['get']('Users')['me'],_0x43ad69=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24dfcb,meta:_0x5506cc}of this['_findSuggestions'](_0x173de5,'insertion'))_0x5506cc['isOwn']&&!_0x5506cc['isInsideObject']&&_0x43ad69['push'](..._0x24dfcb['getRanges']());}const _0x5a0d7=function(_0x473387,_0x90e9cc){const _0x982b88=[];for(const _0x2b806f of _0x90e9cc){const _0x15af1c=_0x473387['getIntersection'](_0x2b806f);_0x15af1c&&_0x982b88['push'](_0x15af1c);}return _0x982b88;}(_0x173de5,_0x43ad69),_0x2ef16b=function(_0x45e382,_0x9b79ec){const _0x370414=[_0x45e382];for(const _0x51bf70 of _0x9b79ec){let _0x4f3d3c=0x0;for(;_0x4f3d3c<_0x370414['length'];){const _0x399b8e=_0x370414[_0x4f3d3c]['getDifference'](_0x51bf70);_0x370414['splice'](_0x4f3d3c,0x1,..._0x399b8e),_0x4f3d3c+=_0x399b8e['length'];}}return _0x370414;}(_0x173de5,_0x43ad69);_0x5a0d7['length']&&this['_model']['change'](()=>{for(const _0x66d3a2 of _0x5a0d7){const _0x458aa1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2afcb5,'accept');this['forceDefaultExecution'](()=>_0x458aa1([_0x66d3a2],_0x1e7b8a,_0x2b1505));}});for(const _0x12b14f of _0x2ef16b){let _0x3dfa11=null,_0x2ea1de=_0x12b14f['start'],_0x5e2614=_0x12b14f['end'];for(const {suggestion:_0x2221e5,meta:_0x586df5}of this['_findSuggestions'](_0x12b14f,'formatInline')){if(!_0x586df5['isOwn'])continue;if(_0x2221e5['subType']!=_0x2afcb5)continue;if(!qt(_0x2221e5,_0x2b1505))continue;const _0x24fcb2=_0x2221e5['getFirstRange']();if(_0x24fcb2['containsRange'](_0x12b14f,!0x0))return null;_0x2ea1de=_0x2ea1de['isBefore'](_0x24fcb2['start'])?_0x2ea1de:_0x24fcb2['start'],_0x5e2614=_0x5e2614['isAfter'](_0x24fcb2['end'])?_0x5e2614:_0x24fcb2['end'],_0x3dfa11?_0x24fcb2['start']['isBefore'](_0x3dfa11['getFirstRange']()['start'])?(_0x3dfa11['removeMarkers'](),_0x3dfa11=_0x2221e5):_0x2221e5['removeMarkers']():_0x3dfa11=_0x2221e5;}const _0x1de404=this['_model']['createRange'](_0x2ea1de,_0x5e2614);if(_0x3dfa11)this['_setSuggestionRange'](_0x3dfa11,_0x1de404);else{const _0x40e2dc=_0x6322ca(),_0x52e94a=_0x2b0c97['id'];this['_setSuggestionData']({'id':_0x40e2dc,'type':'formatInline:'+_0x2afcb5,'data':_0x1e7b8a,'createdAt':new Date(),'authorId':_0x52e94a,'attributes':_0x2b1505}),this['_addSuggestionMarker']('formatInline:'+_0x2afcb5,_0x40e2dc,_0x52e94a,_0x1de404);}}return null;}['markBlockFormat'](_0x30f15e,_0x3436fb,_0x141fcf=[],_0x191e20=null,_0x28194a={}){_0x3436fb['formatGroupId']||(_0x3436fb['formatGroupId']=_0x3436fb['commandName']),_0x3436fb['multipleBlocks']=_0x30f15e['is']('range'),_0x191e20=_0x191e20||Gt(_0x3436fb);const _0x101051=_0x141fcf['map'](_0x3489d0=>Lt(_0x3489d0,this['_model'])),_0x498529=_0x30f15e['is']('range')?_0x30f15e:Lt(_0x30f15e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x39599a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x191e20,'accept');return this['forceDefaultExecution'](()=>_0x39599a([_0x498529],_0x3436fb,_0x28194a)),null;}_0x101051['push'](_0x498529);let _0x4a8ae1=!0x0;for(const _0xd9087e of _0x101051)if(!this['_rangeIsInLocalUserInsertion'](_0xd9087e)){_0x4a8ae1=!0x1;break;}if(_0x4a8ae1&&'always'!==this['_trackFormatChanges']){const _0x213931=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x191e20,'accept');return this['forceDefaultExecution'](()=>_0x213931([_0x498529],_0x3436fb,_0x28194a)),null;}let _0x473fd3=null,_0x1af05a=_0x498529['start'],_0x5a59c7=_0x498529['end'];for(const {suggestion:_0x2020ac,meta:_0x366e8e}of this['_findSuggestions'](_0x498529,'formatBlock')){if(!_0x366e8e['isOwn'])continue;if(_0x366e8e['isNextTo']||_0x366e8e['containsRangeInObject']||_0x366e8e['isInsideObject'])continue;if(_0x2020ac['data']['formatGroupId']!=_0x3436fb['formatGroupId'])continue;if(!qt(_0x2020ac,_0x28194a))continue;const _0x238a51=_0x2020ac['getFirstRange']();if(_0x2020ac['subType']==_0x191e20){if(_0x238a51['containsRange'](_0x498529,!0x0))return null;_0x1af05a=_0x1af05a['isBefore'](_0x238a51['start'])?_0x1af05a:_0x238a51['start'],_0x5a59c7=_0x5a59c7['isAfter'](_0x238a51['end'])?_0x5a59c7:_0x238a51['end'],_0x473fd3?_0x238a51['start']['isBefore'](_0x473fd3['getFirstRange']()['start'])?(_0x473fd3['removeMarkers'](),_0x473fd3=_0x2020ac):_0x2020ac['removeMarkers']():_0x473fd3=_0x2020ac;}else{const _0x145555=_0x498529['getIntersection'](_0x238a51);this['_cutOutSuggestionMarker'](_0x2020ac,_0x145555);}}const _0x467459=this['editor']['plugins']['get']('Users')['me'],_0xaf2d9=_0x6322ca(),_0x132a77=_0x467459['id'];if(_0x473fd3)return this['_setSuggestionRange'](_0x473fd3,this['_model']['createRange'](_0x1af05a,_0x5a59c7)),_0x473fd3;{const _0x31883d=this['_setSuggestionData']({'id':_0xaf2d9,'type':'formatBlock:'+_0x191e20,'data':_0x3436fb,'createdAt':new Date(),'authorId':_0x132a77,'attributes':_0x28194a});return this['_addSuggestionMarker']('formatBlock:'+_0x191e20,_0xaf2d9,_0x132a77,this['_model']['createRange'](_0x1af05a,_0x5a59c7)),_0x31883d;}}['markMultiRangeBlockFormat'](_0x4bf704,_0x284bee,_0x5094d3=[],_0x31081f=null,_0x41da0c={}){_0x284bee['formatGroupId']||(_0x284bee['formatGroupId']=_0x284bee['commandName']);const _0x28c2f2=_0x4bf704[0x0];_0x284bee['multipleBlocks']=_0x28c2f2['is']('range'),_0x31081f=_0x31081f||Gt(_0x284bee);const _0xf2260c=_0x5094d3['map'](_0x4e0cf2=>Lt(_0x4e0cf2,this['_model'])),_0x14473b=_0x28c2f2['is']('range')?_0x4bf704:_0x4bf704['map'](_0x1bac07=>Lt(_0x1bac07,this['_model']));if('never'===this['_trackFormatChanges']){const _0x484c62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31081f,'accept');return this['forceDefaultExecution'](()=>_0x484c62(_0x14473b,_0x284bee,_0x41da0c)),null;}_0xf2260c['push'](..._0x14473b);let _0x2b05ed=!0x0;for(const _0x49c94e of _0xf2260c)if(!this['_rangeIsInLocalUserInsertion'](_0x49c94e)){_0x2b05ed=!0x1;break;}if(_0x2b05ed&&'always'!==this['_trackFormatChanges']){const _0x350b2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31081f,'accept');return this['forceDefaultExecution'](()=>_0x350b2f(_0x14473b,_0x284bee,_0x41da0c)),null;}const _0x2013a9=this['editor']['plugins']['get']('Users')['me'];for(const _0x40ecf9 of this['getSuggestions']()){if(_0x40ecf9['author']['id']!=_0x2013a9['id'])continue;if('formatBlock'!=_0x40ecf9['type']||_0x40ecf9['data']['formatGroupId']!=_0x284bee['formatGroupId'])continue;if(!qt(_0x40ecf9,_0x41da0c))continue;const _0x4094db=_0x40ecf9['subType']==_0x31081f;for(let _0x35d590=0x0;_0x35d590<_0x14473b['length'];_0x35d590++){const _0x3d5a1a=_0x14473b[_0x35d590];for(const _0x3b278f of _0x40ecf9['getMarkers']()){const _0x34c03e=_0x3b278f['getRange']();if(_0x3d5a1a['isEqual'](_0x34c03e)){_0x4094db?(_0x14473b['splice'](_0x35d590,0x1),_0x35d590--):_0x40ecf9['removeMarker'](_0x3b278f['name']);break;}}}}if(0x0==_0x14473b['length'])return null;const _0x163edf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31081f,'join');for(const _0x2d48c5 of this['getSuggestions']())if(_0x2d48c5['author']['id']==_0x2013a9['id']&&'formatBlock'==_0x2d48c5['type']&&_0x2d48c5['data']['formatGroupId']==_0x284bee['formatGroupId']&&_0x2d48c5['subType']==_0x31081f&&qt(_0x2d48c5,_0x41da0c)&&(_0x163edf(_0x2d48c5['getRanges'](),_0x14473b)||_0x163edf(_0x14473b,_0x2d48c5['getRanges']()))){for(const _0x376fec of _0x14473b)_0x2d48c5['addRange'](_0x376fec);return _0x2d48c5;}const _0x2263bc=_0x6322ca(),_0x1e3165=_0x2013a9['id'],_0x103ee2='formatBlock:'+_0x31081f,_0xd46462=this['_setSuggestionData']({'id':_0x2263bc,'type':_0x103ee2,'data':_0x284bee,'createdAt':new Date(),'authorId':_0x1e3165,'attributes':_0x41da0c});for(const _0x43586d of _0x14473b)this['_addSuggestionMarker'](_0x103ee2,_0x2263bc,_0x1e3165,_0x43586d,u['getMultiRangeId']());return _0xd46462;}['markDeletion'](_0x426fc5,_0x48a302=null,_0x4c7bc6={}){if(_0x426fc5['isCollapsed'])return null;const _0x3452eb=this['editor']['plugins']['get']('Users')['me'],_0x2ded17=new _0x43155d(_0x426fc5['start'],_0x426fc5['end']);for(const {suggestion:_0x94e8ae,meta:_0x5e6c02}of this['_findSuggestions'](_0x2ded17,'insertion'))if(_0x5e6c02['isOwn']&&!_0x5e6c02['isNextTo']){if(_0x94e8ae['isMultiRange']){const _0x4ce8ab=_0x94e8ae['getRanges']()['filter'](_0x4f0bc6=>'$graveyard'!=_0x4f0bc6['root']['rootName']);_0x4ce8ab['every'](_0x23c7f7=>_0x2ded17['containsRange'](_0x23c7f7,!0x0))&&_0x94e8ae['discard']();if(_0x4ce8ab['some'](_0x45269e=>_0x45269e['containsRange'](_0x2ded17,!0x0))){const _0x2b6792=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48a302,'accept');return this['forceDefaultExecution'](()=>_0x2b6792([_0x2ded17],null,_0x4c7bc6)),null;}}else{const _0x265603=_0x2ded17['getIntersection'](_0x94e8ae['getFirstRange']());null!==_0x265603&&_0x94e8ae['_onDiscard']([_0x265603],null,_0x4c7bc6);}}if(_0x2ded17['detach'](),_0x2ded17['isCollapsed']||'$graveyard'==_0x2ded17['root']['rootName'])return null;let _0x815294=null,_0xdcd665=_0x2ded17['start'],_0x207d4f=_0x2ded17['end'];const _0x48fefa=this['_findSuggestions'](_0x2ded17,'deletion');for(const {suggestion:_0x30af4e,meta:_0x5562f5}of _0x48fefa){const _0x6569f8=this['_model']['createRange'](_0xdcd665,_0x207d4f);if(_0x5562f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5562f5['containsRangeInObject']&&!_0x5562f5['isInsideObject'])){if(_0x30af4e['isMultiRange']){if(!qt(_0x30af4e,_0x4c7bc6))continue;let _0x5b1b25=!0x0;for(const _0x30296a of _0x30af4e['getRanges']()){if(_0x30296a['containsRange'](_0x6569f8,!0x0))return _0x30af4e;_0x6569f8['containsRange'](_0x30296a)||(_0x5b1b25=!0x1);}_0x5b1b25&&_0x30af4e['discard']();}else{const _0xdb1ae6=_0x30af4e['getFirstRange']();if(_0xdb1ae6['containsRange'](_0x6569f8,!0x0))return _0x30af4e;if(!qt(_0x30af4e,_0x4c7bc6)){_0x6569f8['containsRange'](_0xdb1ae6)?_0x30af4e['removeMarkers']():_0xdb1ae6['containsPosition'](_0xdcd665)?_0xdcd665=_0xdb1ae6['end']:_0xdb1ae6['containsPosition'](_0x207d4f)&&(_0x207d4f=_0xdb1ae6['start']);continue;}_0xdcd665=_0xdcd665['isBefore'](_0xdb1ae6['start'])?_0xdcd665:_0xdb1ae6['start'],_0x207d4f=_0x207d4f['isAfter'](_0xdb1ae6['end'])?_0x207d4f:_0xdb1ae6['end'],_0x4c7bc6=Object['assign']({},_0x30af4e['attributes']),_0x815294?_0xdb1ae6['start']['isBefore'](_0x815294['getFirstRange']()['start'])?(_0x815294['removeMarkers'](),_0x815294=_0x30af4e):_0x30af4e['removeMarkers']():_0x815294=_0x30af4e;}}}if(_0x815294)return this['_setSuggestionRange'](_0x815294,this['_model']['createRange'](_0xdcd665,_0x207d4f)),_0x815294;{const _0x54d337=_0x6322ca(),_0x2bc63c=this['_model']['createRange'](_0xdcd665,_0x207d4f),_0x8f0520=_0x3452eb['id'],_0x11a9f8=_0x48a302?'deletion:'+_0x48a302:'deletion',_0x22af1e=this['_setSuggestionData']({'id':_0x54d337,'type':_0x11a9f8,'createdAt':new Date(),'authorId':_0x8f0520,'attributes':_0x4c7bc6});return this['_addSuggestionMarker'](_0x11a9f8,_0x54d337,_0x8f0520,_0x2bc63c),_0x22af1e;}}['markMultiRangeDeletion'](_0x3c2d1b,_0x3839e7='multi',_0x1c43f1={}){const _0x331b15=this['editor']['plugins']['get']('Users')['me'],_0x4909c1=_0x3c2d1b['map'](_0xd9888f=>new _0x43155d(_0xd9888f['start'],_0xd9888f['end'])),_0x58de65=new Set();for(const {suggestion:_0x21156b,meta:_0x4e57bf}of this['_findSuggestions'](_0x4909c1,'insertion'))_0x4e57bf['isOwn']&&!_0x4e57bf['isNextTo']&&_0x58de65['add'](_0x21156b);for(const _0x42a07c of _0x58de65)if(_0x42a07c['isMultiRange']){const _0x57012d=_0x42a07c['getRanges']();(!_0x42a07c['attributes']||!_0x42a07c['attributes']['skipNestingCheck'])&&(_0x57012d['every'](_0x32890c=>_0x4909c1['some'](_0x3bae5b=>_0x3bae5b['containsRange'](_0x32890c,!0x0)))&&_0x42a07c['discard']());if(_0x4909c1['every'](_0x3f5684=>_0x57012d['some'](_0x13a796=>_0x13a796['containsRange'](_0x3f5684,!0x0)))){const _0x75020e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3839e7,'accept');return this['forceDefaultExecution'](()=>_0x75020e(_0x3c2d1b,null,_0x1c43f1)),null;}}else{const _0x160c4d=_0x42a07c['getFirstRange']();_0x4909c1['some'](_0x23db10=>_0x23db10['containsRange'](_0x160c4d,!0x0))&&_0x42a07c['discard']();if(_0x4909c1['every'](_0x20d19c=>_0x160c4d['containsRange'](_0x20d19c,!0x0))){const _0x1c3813=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3839e7,'accept');return this['forceDefaultExecution'](()=>_0x1c3813(_0x4909c1,null,_0x1c43f1)),null;}}const _0x1bbe02=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3839e7,'join');let _0x10f6d9=null;for(const _0x3d426d of this['getSuggestions']())if(_0x3d426d['author']['id']==_0x331b15['id']&&_0x3d426d['isInContent']&&'deletion'==_0x3d426d['type']&&_0x3d426d['subType']==_0x3839e7&&qt(_0x3d426d,_0x1c43f1)&&(_0x1bbe02(_0x3d426d['getRanges'](),_0x4909c1)||_0x1bbe02(_0x4909c1,_0x3d426d['getRanges']()))){if(_0x10f6d9){if(_0x3d426d['commentThread']&&_0x3d426d['commentThread']['length'])continue;for(const _0xc8512e of _0x3d426d['getRanges']())_0x10f6d9['isIntersectingWithRange'](_0xc8512e)||_0x10f6d9['addRange'](_0xc8512e);_0x3d426d['removeMarkers']();}else{_0x10f6d9=_0x3d426d;for(const _0x215b53 of _0x4909c1)_0x3d426d['isIntersectingWithRange'](_0x215b53)||_0x3d426d['addRange'](_0x215b53);}}if(_0x10f6d9)return _0x10f6d9;_0x58de65['clear']();for(const {suggestion:_0x2c850e,meta:_0x276787}of this['_findSuggestions'](_0x4909c1,'deletion'))_0x276787['isOwn']&&(this['_mergeNestedSuggestions']||!_0x276787['containsRangeInObject']&&!_0x276787['isInsideObject'])&&qt(_0x2c850e,_0x1c43f1)&&_0x58de65['add'](_0x2c850e);for(const _0x3fadb5 of _0x58de65){const _0x2622a0=_0x3fadb5['getRanges']();if(!_0x1c43f1||!_0x1c43f1['skipNestingCheck']){if(_0x4909c1['every'](_0xdbcba0=>_0x2622a0['some'](_0x4681bb=>_0x4681bb['containsRange'](_0xdbcba0,!0x0))))return _0x3fadb5;}(!_0x3fadb5['attributes']||!_0x3fadb5['attributes']['skipNestingCheck'])&&(_0x2622a0['every'](_0x3bc9e9=>_0x4909c1['some'](_0x14b2f0=>_0x14b2f0['containsRange'](_0x3bc9e9,!0x0)))&&_0x3fadb5['discard']());}const _0x4c72b5=_0x6322ca(),_0x588db8=_0x331b15['id'],_0xdb4b36='deletion:'+_0x3839e7,_0x170b32=this['_setSuggestionData']({'id':_0x4c72b5,'type':_0xdb4b36,'createdAt':new Date(),'authorId':_0x588db8,'attributes':_0x1c43f1});for(const _0x2ec52d of _0x4909c1)_0x2ec52d['detach'](),_0x2ec52d['isCollapsed']||'$graveyard'==_0x2ec52d['root']['rootName']||this['_addSuggestionMarker'](_0xdb4b36,_0x4c72b5,_0x588db8,_0x2ec52d,u['getMultiRangeId']());return _0x170b32;}['markAttributeChange'](_0x372ca,_0x1e1570,_0x443cb8,_0x1f3066,_0x53c731){if(_0x372ca['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x387518=this['editor']['plugins']['get']('Users')['me']['id'],_0x349724=Array['from'](this['_suggestions']['values']())['filter'](_0x35e914=>'attribute'==_0x35e914['type']&&_0x35e914['data']['key']==_0x1e1570&&_0x35e914['isIntersectingWithRange'](_0x372ca));if('default'===this['_trackFormatChanges']){const _0x1ac465=this['_findSuggestions'](_0x372ca,'insertion')['filter'](({meta:_0x1b2e44})=>_0x1b2e44['isOwn']&&!_0x1b2e44['isInsideObject']&&!_0x1b2e44['isNextTo'])['map'](({suggestion:_0x14e1eb})=>_0x14e1eb);_0x349724['unshift'](..._0x1ac465);}const _0x10b2df=new Map([[_0x372ca,_0x443cb8]]);for(const _0x35db2c of _0x349724){const _0x49671c='attribute'==_0x35db2c['type']?_0x35db2c['data']['oldValue']:void 0x0,_0x5f302e=_0x35db2c['getFirstRange'](),_0x5a848d=Array['from'](_0x10b2df['keys']())['find'](_0x1e3382=>_0x1e3382['isIntersecting'](_0x5f302e));if(!_0x5a848d)continue;const _0x19a93c=_0x5a848d['getDifference'](_0x5f302e);this['_isBlockAttribute'](_0x1e1570)&&'insertion'==_0x35db2c['type']&&0x0!=_0x19a93c['length']||(_0x10b2df['delete'](_0x5a848d),_0x19a93c['forEach'](_0x1c8b91=>{_0x10b2df['set'](_0x1c8b91,_0x443cb8);}),'insertion'!=_0x35db2c['type']&&_0x49671c!=_0x1f3066&&_0x10b2df['set'](_0x5a848d['getIntersection'](_0x5f302e),_0x49671c));}const _0x16d47e=[];for(const [_0x4ff61c,_0xd2075]of _0x10b2df){const _0x112b2a=_0x6322ca(),_0xd9747c={'key':_0x1e1570,'oldValue':_0xd2075,'newValue':_0x1f3066};_0x1e1570['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':_0x1e1570});const _0x323e34=('attribute:'+(_0x1e1570+'|'+Gt({'newValue':_0x1f3066})))['substring'](0x0,0x3c),_0x48fcfc=this['_setSuggestionData']({'id':_0x112b2a,'type':_0x323e34,'data':_0xd9747c,'createdAt':new Date(),'authorId':_0x387518,'attributes':_0x53c731});_0x16d47e['push'](_0x48fcfc),this['_addSuggestionMarker'](_0x323e34,_0x112b2a,_0x387518,_0x4ff61c);}return _0x16d47e;}['enableDefaultAttributesIntegration'](_0x48ceb9){this['enableCommand'](_0x48ceb9,(_0x2aadbb,..._0x33aad4)=>{this['_recordAttributeChanges'](()=>{_0x2aadbb(..._0x33aad4);});});}['registerBlockAttribute'](_0x4e2d5c){this['_blockAttributeKeys']['add'](_0x4e2d5c);}['registerInlineAttribute'](_0x1211a2){this['_inlineAttributeKeys']['add'](_0x1211a2);}['_getAttributeKey'](_0x4e627a){return'attribute'==_0x4e627a['type']?_0x4e627a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5717c2,_0x276224){const _0xee6ef7=_0x5717c2['getFirstMarker']();this['_model']['change'](_0x1b36f3=>{_0x1b36f3['updateMarker'](_0xee6ef7,{'range':_0x276224});});}['_addThreadToSuggestion'](_0x41d48d){const _0x48604a=_0x41d48d['id'],_0x34bf18=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x48604a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x34bf18,'threadId':_0x48604a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x9411dc=this['_commentsRepository']['getCommentThread'](_0x48604a);_0x9411dc['unbind']('isRemovable'),_0x9411dc['isRemovable']=!0x1,_0x41d48d['commentThread']=_0x9411dc;}['_checkSuggestionCorrectness'](_0x38b09b,_0x5d7b9e,_0x5f2a02,_0x33b535){if(_0x38b09b['type']!=_0x5d7b9e||_0x38b09b['subType']!=_0x5f2a02||_0x38b09b['creator']['id']!=_0x33b535)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x297859('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x11cb15,_0x5597ac){const _0x55e174=_0x11cb15['getFirstRange']();if(_0x5597ac['isEqual'](_0x55e174))_0x11cb15['removeMarkers']();else{if(_0x55e174['containsRange'](_0x5597ac)){const _0x265d66=this['_model']['createPositionAt'](_0x5597ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11cb15,this['_model']['createRange'](_0x55e174['start'],_0x265d66));const _0x2280b4=_0x6322ca(),_0x3d387a=_0x11cb15['creator']['id'],_0xefc26f=_0x11cb15['type']+':'+_0x11cb15['subType'];this['_setSuggestionData']({'id':_0x2280b4,'type':_0xefc26f,'createdAt':new Date(),'authorId':_0x3d387a,'data':_0x11cb15['data'],'attributes':_0x11cb15['attributes']});const _0x2a8041=this['_model']['createPositionAt'](_0x5597ac['end']['parent'],'after'),_0x42dafe=this['_model']['createRange'](_0x2a8041,_0x55e174['end']);this['_addSuggestionMarker'](_0xefc26f,_0x2280b4,_0x3d387a,_0x42dafe);}else{if(_0x55e174['containsPosition'](_0x5597ac['start'])){const _0x522f56=this['_model']['createPositionAt'](_0x5597ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11cb15,this['_model']['createRange'](_0x55e174['start'],_0x522f56));}else{const _0x3adbf8=this['_model']['createPositionAt'](_0x5597ac['end']['parent'],'after');this['_setSuggestionRange'](_0x11cb15,this['_model']['createRange'](_0x3adbf8,_0x55e174['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x564fa6){for(const {suggestion:_0x30e830,meta:_0x2f5270}of this['_findSuggestions'](_0x564fa6,'insertion')){if(!_0x2f5270['isOwn'])continue;const _0x1ca490=_0x30e830['getRanges']();for(const _0x279d67 of _0x1ca490)if(!_0x564fa6['getDifference'](_0x279d67)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x50f805){const _0x231d44=this['editor']['plugins']['get']('Users')['getUser'](_0x50f805);if(!_0x231d44)throw new _0x297859('track-changes-user-not-found',this);return _0x231d44;}['_getExternalAuthor'](_0x550489){const _0x3afd83=this['editor']['plugins']['get']('Users'),_0x1832c7=_0x52361c('external:'+_0x550489),_0x5cee81=_0x3afd83['getUser'](_0x1832c7);return _0x5cee81||_0x3afd83['addUser']({'id':_0x1832c7,'name':_0x550489});}['_createSuggestion'](_0x5b87ca,_0x2226ef,_0x39c0d6,_0x4f44ca,_0x37bf46){const _0x329d19=this['_getAuthorFromId'](_0x4f44ca),_0x2c24b3=this['_suggestionFactory']['buildSuggestion'](_0x5b87ca,_0x2226ef,_0x39c0d6,_0x329d19,_0x37bf46,_0x51bb74=>{this['_updateSuggestionData'](_0x39c0d6,{'attributes':_0x51bb74});const _0x596ef6=this['getSuggestion'](_0x39c0d6);this['_joinWithAdjacentSuggestions'](new Set([_0x596ef6])),this['_refreshSuggestionsChain'](new Set([_0x596ef6]));});return this['listenTo'](_0x2c24b3,'accept',()=>{this['_updateSuggestionData'](_0x39c0d6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c24b3,'discard',()=>{this['_updateSuggestionData'](_0x39c0d6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39c0d6,_0x2c24b3),this['_suggestionState']['set'](_0x2c24b3,'notReady'),_0x2c24b3;}['_splitMarkerName'](_0x344e49){const _0x2fc934=_0x344e49['split'](':');return{'group':_0x2fc934[0x0],'type':_0x2fc934[0x1],'subType':_0x2fc934['length']>=0x5?_0x2fc934[0x2]:null,'id':_0x2fc934['length']<0x5?_0x2fc934[0x2]:_0x2fc934[0x3],'authorId':_0x2fc934['length']<0x5?_0x2fc934[0x3]:_0x2fc934[0x4],'markerCount':0x6==_0x2fc934['length']?_0x2fc934[0x5]:null};}['_breakSuggestionMarker'](_0x1af032,_0x4d00e4,_0x2f191f){const _0x49cd2e=_0x1af032['getFirstRange'](),_0x240be2=_0x49cd2e['start'],_0x26dfd3=_0x49cd2e['end'];this['_setSuggestionRange'](_0x1af032,this['_model']['createRange'](_0x240be2,_0x4d00e4));const _0x2cdfa8=_0x6322ca(),_0xdf83b4=_0x1af032['creator']['id'],_0x2ce4d4=_0x1af032['type']+(_0x1af032['subType']?':'+_0x1af032['subType']:'');this['_setSuggestionData']({'id':_0x2cdfa8,'type':_0x2ce4d4,'createdAt':new Date(),'authorId':_0xdf83b4,'originalSuggestionId':_0x1af032['id'],'attributes':_0x1af032['attributes'],'data':_0x1af032['data']});const _0xfb6b77=this['_getAttributeKey'](_0x1af032);('formatBlock'==_0x1af032['type']||_0xfb6b77&&this['_isBlockAttribute'](_0xfb6b77))&&(_0x2f191f=this['_model']['createPositionBefore'](_0x2f191f['parent'])),this['_addSuggestionMarker'](_0x2ce4d4,_0x2cdfa8,_0xdf83b4,this['_model']['createRange'](_0x2f191f,_0x26dfd3));}['_findSuggestions'](_0x1e67ec,_0x573ef7=null){const _0x3ed87d=[],_0x139208=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e67ec)||(_0x1e67ec=[_0x1e67ec]);for(const _0x237b74 of this['getSuggestions']()){if(!_0x237b74['isInContent'])continue;if(_0x573ef7&&_0x237b74['type']!=_0x573ef7)continue;let _0x37c400=!0x1;for(const _0x1e3162 of _0x237b74['getRanges']()){for(const _0x187b51 of _0x1e67ec){const _0x3e9175=_0x187b51['start']['isEqual'](_0x1e3162['end'])||_0x187b51['end']['isEqual'](_0x1e3162['start']);if(_0x3e9175||_0x187b51['getIntersection'](_0x1e3162)){const _0x4448e3=_0x187b51['containsRange'](_0x1e3162)&&Ot(this['_model']['schema'],_0x1e3162['start'],_0x187b51),_0xff4c0a=_0x1e3162['containsRange'](_0x187b51)&&Ot(this['_model']['schema'],_0x187b51['start'],_0x1e3162);_0x3ed87d['push']({'suggestion':_0x237b74,'meta':{'isOwn':_0x139208==_0x237b74['author'],'isNextTo':_0x3e9175,'isInsideObject':_0x4448e3,'containsRangeInObject':_0xff4c0a}}),_0x37c400=!0x0;break;}}if(_0x37c400)break;}}return _0x3ed87d;}['_addSuggestionMarker'](_0x595a9e,_0x1138b3,_0x19433c,_0x4ba159,_0x3b5df2){this['_model']['change'](_0x523702=>{let _0x4cccd5='suggestion:'+_0x595a9e+':'+_0x1138b3+':'+_0x19433c;_0x3b5df2&&(_0x4cccd5=_0x4cccd5+':'+_0x3b5df2),_0x523702['addMarker'](_0x4cccd5,{'range':_0x4ba159,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x462c80){const _0x5774ae=_0x462c80['previous'],_0x4b5bd9=_0x462c80['next'];_0x462c80['previous']=null,_0x462c80['next']=null,null!=_0x5774ae&&_0x5774ae['next']==_0x462c80&&(_0x5774ae['next']=_0x4b5bd9),null!=_0x4b5bd9&&_0x4b5bd9['previous']==_0x462c80&&(_0x4b5bd9['previous']=_0x5774ae),'ready'==this['_suggestionState']['get'](_0x462c80)&&(this['_suggestionState']['set'](_0x462c80,'removed'),this['fire']('suggestionUnloaded',_0x462c80,_0x5774ae,_0x4b5bd9));}['_setSuggestionData'](_0x291f63){const _0x48edc7=_0x291f63['id'],_0x152808=this['addSuggestionData'](_0x291f63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2aca8a=this['editor']['plugins']['get']('PendingActions'),_0x483650=_0x152808['hasComments'],_0x22019e=_0x152808['subType']?_0x152808['type']+':'+_0x152808['subType']:_0x152808['type'],_0x1ed001=this['editor']['locale'],_0x447bc8=_0x2aca8a['add'](o(_0x1ed001,'PENDING_ACTION_SUGGESTION')),_0x5beb66={'id':_0x48edc7,'type':_0x22019e,'hasComments':_0x483650,'data':_0x291f63['data']||null,'originalSuggestionId':_0x291f63['originalSuggestionId']||null,'attributes':_0x152808['attributes']};this['_adapter']['addSuggestion'](_0x5beb66)['then'](_0x4888ba=>{_0x152808['_saved']=!0x0,_0x2aca8a['remove'](_0x447bc8),_0x4888ba&&_0x4888ba['createdAt']&&(this['_suggestions']['get'](_0x48edc7)['createdAt']=_0x4888ba['createdAt']);})['catch'](_0x8400c4=>{throw _0x11e761('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x152808['discard']();}),_0x152808['stopListening'](),this['_suggestions']['delete'](_0x152808['id']),this['_suggestionState']['delete'](_0x152808),_0x8400c4;});}return _0x152808;}['_isBlockAttribute'](_0x4ec1cc){return this['_blockAttributeKeys']['has'](_0x4ec1cc);}['_updateSuggestionData'](_0x264d12,_0x409f0f){const _0x4ffaa2=this['editor']['plugins']['get']('PendingActions'),_0x28b7e5=this['getSuggestion'](_0x264d12);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28b7e5['_saved']){const _0x3f8184=_0x4ffaa2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x264d12,_0x409f0f)['then'](()=>{_0x4ffaa2['remove'](_0x3f8184);});}else _0x28b7e5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x264d12,_0x409f0f);});}}['_getSuggestionData'](_0x5b06ee){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x297859('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b06ee);}['_handleNewSuggestionMarker'](_0x1df064){const {id:_0xc8d7d7,type:_0x4f641f,subType:_0x4fbb71,authorId:_0x9bf11c}=this['_splitMarkerName'](_0x1df064),_0x9896e4=this['_suggestions']['get'](_0xc8d7d7)||this['_createSuggestion'](_0x4f641f,_0x4fbb71,_0xc8d7d7,_0x9bf11c,{});switch(this['_checkSuggestionCorrectness'](_0x9896e4,_0x4f641f,_0x4fbb71,_0x9bf11c),this['_suggestionState']['get'](_0x9896e4)){case'notReady':this['_getSuggestionData'](_0xc8d7d7)['then'](_0x1d7b0f=>{let _0x3d5ae6=Promise['resolve']();_0x1d7b0f['hasComments']&&(_0x3d5ae6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc8d7d7})),_0x3d5ae6['then'](()=>{this['addSuggestionData'](_0x1d7b0f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x9896e4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc8d7d7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x9896e4,'ready'),this['fire']('suggestionLoaded',_0x9896e4);break;case'ready':this['fire']('suggestionChanged',_0x9896e4);}return _0x9896e4['addMarkerName'](_0x1df064),_0x9896e4;}['_refreshSuggestionsChain'](_0x317b4c){const _0x18ddaf=Array['from'](_0x317b4c),_0x42a036=_0x18ddaf['filter'](_0x48668f=>'attribute'==_0x48668f['type']);this['_refreshAttributeSuggestionsChain'](_0x42a036);const _0x3e5fd8=_0x18ddaf['filter'](_0x499398=>!_0x499398['isMultiRange']&&'attribute'!=_0x499398['type']),_0x4d0ea0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3af842=>!_0x3af842['isMultiRange']&&'attribute'!=_0x3af842['type']),_0x3c5c26=_0x4d0ea0['filter'](_0x4e4bb5=>!_0x317b4c['has'](_0x4e4bb5)),_0x1ae264=new Map(_0x4d0ea0['map'](_0x15172f=>[_0x15172f,this['_suggestionFactory']['getSuggestionCallback'](_0x15172f['type'],_0x15172f['subType'],'chain')])),_0x555a82=new Map(_0x4d0ea0['map'](_0x4d0f8a=>[_0x4d0f8a,_0x4d0f8a['getFirstRange']()])),_0x340efd=new Set(),_0x56c81d=new Set();for(let _0x5cf944=0x0;_0x5cf944<_0x3e5fd8['length'];_0x5cf944++)_0xbca6e0(_0x3e5fd8[_0x5cf944],_0x3e5fd8,_0x5cf944+0x1);for(let _0x14014e=0x0;_0x14014e<_0x3e5fd8['length'];_0x14014e++)_0xbca6e0(_0x3e5fd8[_0x14014e],_0x3c5c26,0x0);const _0x931036=new Set();for(let _0x57aaf7=0x0;_0x57aaf7<_0x3e5fd8['length'];_0x57aaf7++){const _0x214c32=_0x3e5fd8[_0x57aaf7];!_0x56c81d['has'](_0x214c32)&&_0x214c32['previous']&&(_0x931036['add'](_0x214c32['previous']),_0x214c32['previous']['next']===_0x214c32&&(_0x214c32['previous']['next']=null),_0x214c32['previous']=null),!_0x340efd['has'](_0x214c32)&&_0x214c32['next']&&(_0x931036['add'](_0x214c32['next']),_0x214c32['next']['previous']===_0x214c32&&(_0x214c32['next']['previous']=null),_0x214c32['next']=null);}function _0xbca6e0(_0x318247,_0x4eb99b,_0x3a988e){for(let _0x2f1022=_0x3a988e;_0x2f1022<_0x4eb99b['length'];_0x2f1022++){const _0x407eda=_0x4d5bb9(_0x318247,_0x4eb99b[_0x2f1022]);_0x407eda&&(_0x407eda[0x0]['next']=_0x407eda[0x1],_0x407eda[0x1]['previous']=_0x407eda[0x0],_0x340efd['add'](_0x407eda[0x0]),_0x56c81d['add'](_0x407eda[0x1]));}}function _0x4d5bb9(_0x22af4a,_0x437578){if(_0x22af4a['author']['id']!==_0x437578['author']['id'])return null;const _0x524016=_0x1ae264['get'](_0x22af4a)(_0x22af4a,_0x437578,_0x555a82['get'](_0x22af4a),_0x555a82['get'](_0x437578));if(!_0x524016)return null;return _0x1ae264['get'](_0x437578)(_0x22af4a,_0x437578,_0x555a82['get'](_0x22af4a),_0x555a82['get'](_0x437578))?_0x524016[0x1]['commentThread']&&_0x524016[0x1]['commentThread']['length']?null:_0x524016:null;}_0x931036['size']&&this['_refreshSuggestionsChain'](_0x931036);}['_refreshAttributeSuggestionsChain'](_0x92b3c5){if(0x0==_0x92b3c5['length'])return;const _0x54669d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1932a4=>'attribute'==_0x1932a4['type']&&_0x1932a4['_isDataLoaded']),_0x120ff2=[],_0x2442e7=new Map();for(const _0x5c65f6 of _0x54669d){const _0x88ef96=_0x52361c(_0x5c65f6['attributes']);_0x2442e7['has'](_0x88ef96)||(_0x2442e7['set'](_0x88ef96,_0x120ff2['length']),_0x120ff2['push']([]));const _0x32aa3f=_0x2442e7['get'](_0x88ef96);_0x120ff2[_0x32aa3f]['push'](_0x5c65f6);}!(function(){_0x120ff2['sort']((_0x5d96f2,_0x3ba74e)=>{const _0x4a4f10=_0x5d96f2[0x0]['createdAt'],_0x53cb10=_0x3ba74e[0x0]['createdAt'];return _0x4a4f10==_0x53cb10?_0x5d96f2[0x0]['attributes']['groupId']<_0x3ba74e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4a4f10<_0x53cb10?-0x1:0x1;});for(const _0x558aa0 of _0x120ff2)_0x558aa0['sort']((_0x165726,_0x303f0a)=>_0x165726['id']<_0x303f0a['id']?-0x1:0x1);}());for(let _0x19e070=0x0;_0x19e070<_0x120ff2['length'];_0x19e070++){if(0x0==_0x120ff2[_0x19e070]['length'])continue;const _0x4a5e77=[];for(let _0x325a82=_0x19e070+0x1;_0x325a82<_0x120ff2['length'];_0x325a82++)0x0!=_0x120ff2[_0x325a82]['length']&&_0x205447(_0x120ff2[_0x19e070],_0x120ff2[_0x325a82])&&_0x4a5e77['push'](_0x325a82);for(const _0x486970 of _0x4a5e77)_0x120ff2[_0x19e070]=_0x120ff2[_0x19e070]['concat'](_0x120ff2[_0x486970]),_0x120ff2[_0x486970]=[];}for(const _0x432fbc of _0x120ff2)for(let _0x48b3da=0x0;_0x48b3da<_0x432fbc['length'];_0x48b3da++){const _0x368155=_0x432fbc[_0x48b3da+0x1]||null;_0x432fbc[_0x48b3da]['next']!==_0x368155&&(_0x432fbc[_0x48b3da]['next']=_0x368155);}for(const _0x1eb2ef of _0x120ff2)for(let _0x5ec13d=0x0;_0x5ec13d<_0x1eb2ef['length'];_0x5ec13d++){const _0x5704c1=_0x1eb2ef[_0x5ec13d-0x1]||null;_0x1eb2ef[_0x5ec13d]['previous']!==_0x5704c1&&(_0x1eb2ef[_0x5ec13d]['previous']=_0x5704c1);}function _0x205447(_0x11bc19,_0x5e3172){if(_0x11bc19[0x0]['attributes']['groupId']!==_0x5e3172[0x0]['attributes']['groupId']&&_0x11bc19[0x0]['author']!==_0x5e3172[0x0]['author'])return!0x1;if(!function(_0x195e55,_0x1e5c97){if(!_0x195e55['hasComments']&&!_0x1e5c97['hasComments'])return!0x0;if(_0x195e55['hasComments']&&_0x1e5c97['hasComments'])return!0x1;if(_0x195e55['hasComments']&&_0x1e5c97['createdAt']<_0x195e55['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1e5c97['hasComments']&&_0x195e55['createdAt']<_0x1e5c97['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x11bc19[0x0],_0x5e3172[0x0]))return!0x1;const _0x978a5c=Tt(_0x11bc19[0x0]['attributes'],'groupId'),_0x3ff332=Tt(_0x5e3172[0x0]['attributes'],'groupId');if(!_0x3d91e4(_0x978a5c,_0x3ff332))return!0x1;return!!_0x11bc19['every'](_0x2b06cf=>_0x5e3172['some'](_0x563690=>_0x2b06cf['getFirstRange']()['isEqual'](_0x563690['getFirstRange']())))&&_0x5e3172['every'](_0x32f5c9=>_0x11bc19['some'](_0x3275c9=>_0x32f5c9['getFirstRange']()['isEqual'](_0x3275c9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x360d5b){const _0x1b0c11=Array['from'](_0x360d5b),_0x27008f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x57f29a=_0x27008f['filter'](_0x148795=>!_0x360d5b['has'](_0x148795)),_0x35df13=new Map(_0x1b0c11['map'](_0x11fc07=>[_0x11fc07,this['_suggestionFactory']['getSuggestionCallback'](_0x11fc07['type'],_0x11fc07['subType'],'join')])),_0x3b2223=new Map(_0x27008f['map'](_0x451f84=>[_0x451f84,_0x451f84['getRanges']()]));for(let _0x181853=0x0;_0x181853<_0x1b0c11['length'];_0x181853++){if(_0x118501(this,_0x1b0c11[_0x181853],_0x1b0c11,_0x181853+0x1))return!0x0;}for(let _0x86367=0x0;_0x86367<_0x1b0c11['length'];_0x86367++){if(_0x118501(this,_0x1b0c11[_0x86367],_0x57f29a,0x0))return!0x0;}return!0x1;function _0x118501(_0x30ba9b,_0x5e7e2a,_0x567899,_0x5a3945){for(let _0x19db53=_0x5a3945;_0x19db53<_0x567899['length'];_0x19db53++){const _0x24ee4d=_0x567899[_0x19db53];if(_0x24ee4d['type']!==_0x5e7e2a['type']||_0x24ee4d['author']['id']!==_0x5e7e2a['author']['id']||_0x24ee4d['subType']!==_0x5e7e2a['subType'])continue;if(!Jt(_0x5e7e2a,_0x24ee4d))continue;if('attribute'==_0x5e7e2a['type']&&_0x5e7e2a['data']['oldValue']!=_0x24ee4d['data']['oldValue'])continue;if('attribute'==_0x5e7e2a['type']&&_0x30ba9b['_isBlockAttribute'](_0x5e7e2a['data']['key']))continue;if('formatBlock'==_0x5e7e2a['type']){const _0xf2f79c=_0x30ba9b['editor']['model'],_0x92b341=_0x5e7e2a['getContainedElement']();if(_0x92b341&&(_0xf2f79c['schema']['isObject'](_0x92b341)||_0xf2f79c['schema']['isLimit'](_0x92b341)))continue;}const _0x5e295d=_0x35df13['get'](_0x5e7e2a),_0x780ebc=_0x3b2223['get'](_0x5e7e2a),_0x2fda7a=_0x3b2223['get'](_0x24ee4d),_0x4f4dbb=_0x5e7e2a['commentThread']&&_0x5e7e2a['commentThread']['length'],_0x1bfbc7=_0x24ee4d['commentThread']&&_0x24ee4d['commentThread']['length'];if(!_0x4f4dbb&&_0x5e295d(_0x2fda7a,_0x780ebc))return _0x30ba9b['_joinSuggestions'](_0x24ee4d,_0x5e7e2a),_0x3b2223['delete'](_0x5e7e2a),!0x0;if(!_0x1bfbc7&&_0x5e295d(_0x780ebc,_0x2fda7a))return _0x30ba9b['_joinSuggestions'](_0x5e7e2a,_0x24ee4d),_0x3b2223['delete'](_0x24ee4d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5ec7ef,_0x20c239){if(_0x5ec7ef['isMultiRange']){for(const _0x472e3e of _0x20c239['getRanges']())_0x5ec7ef['addRange'](_0x472e3e);}else{const _0xce1482=_0x20c239['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5ec7ef,this['_model']['createRange'](_0x5ec7ef['getFirstRange']()['start'],_0xce1482));}_0x20c239['removeMarkers']();}['_getMarkerAnnouncementText'](_0xdbdb4,_0x3cb10c,_0x3e322f){const _0x1cc879=_0xdbdb4['startsWith']('format')||_0xdbdb4['startsWith']('attribute')?'FORMATTING':_0xdbdb4['toUpperCase']();return o(this['editor']['locale'],_0x3cb10c+'_'+_0x1cc879+'_SUGGESTION_ANNOUNCEMENT',_0x3e322f);}['_initAriaMarkerChangeAnnouncements'](){const _0x53c9b7=this['editor'];if(!_0x53c9b7['ui'])return;const {ariaLiveAnnouncer:_0x25439c}=_0x53c9b7['ui'];_0xcbec54(this['_model'],({left:_0x5df5b0,entered:_0x831211})=>{for(const _0x45d011 of _0x5df5b0){const {group:_0x2bde61,type:_0x2ee74d}=this['_splitMarkerName'](_0x45d011['name']);if('suggestion'===_0x2bde61){_0x25439c['announce'](this['_getMarkerAnnouncementText'](_0x2ee74d,'LEAVE'));break;}}for(const _0x556b16 of _0x831211){const {group:_0xc52732,type:_0x1ae1c5}=this['_splitMarkerName'](_0x556b16['name']);if('suggestion'===_0xc52732){_0x25439c['announce'](this['_getMarkerAnnouncementText'](_0x1ae1c5,'ENTER',_0x2b26ac(_0x224acd)));break;}}});}['_processAttributeChanges'](_0x38c0d5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x35f96d=this['editor'],_0x3b5262=_0x35f96d['model']['document']['differ']['getChanges']();if(0x0==_0x3b5262['length'])return!0x1;const _0x4e5c86=[],_0xa66e4f=_0x3b5262['filter'](_0x37945f=>'attribute'==_0x37945f['type']),_0x5f502c=_0x3b5262['filter'](_0x2bcb2c=>'insert'==_0x2bcb2c['type']&&'$text'!=_0x2bcb2c['name']),_0x2d8868=_0x3b5262['filter'](_0x469da2=>'remove'==_0x469da2['type']&&'$text'!=_0x469da2['name']);for(const _0x3db00e of _0xa66e4f)_0x4e5c86['push']({'key':_0x3db00e['attributeKey'],'newValue':_0x3db00e['attributeNewValue'],'oldValue':_0x3db00e['attributeOldValue'],'range':Pt(_0x3db00e['range'],_0x35f96d['model'])});for(const _0x19f12a of _0x5f502c){const _0x328296=_0x2d8868['find'](_0x2b9741=>_0x2b9741['position']['isEqual'](_0x19f12a['position']));_0x328296&&_0x4e5c86['push']({'key':m,'newValue':_0x19f12a['name'],'oldValue':_0x328296['name'],'range':_0x35f96d['model']['createRangeOn'](_0x19f12a['position']['nodeAfter'])});}return 0x0!=_0x4e5c86['length']&&this['_reduceExistingSuggestions'](_0x38c0d5,_0x4e5c86);}['_processAttributeSuggestions'](_0x2357f7){let _0x42538b=!0x1;const _0x31d909=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26c535=>_0x26c535['data']['newRange']&&_0x26c535['name']['startsWith']('suggestion:attribute:'));for(const _0x16f162 of _0x31d909){const {subType:_0x37bb19,id:_0x36650e}=this['_splitMarkerName'](_0x16f162['name']),_0x22144c=_0x37bb19['split']('|')[0x0];for(const _0x50c51f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x50c51f['id']!=_0x36650e&&'attribute'==_0x50c51f['type']&&_0x50c51f['data']&&_0x50c51f['data']['key']==_0x22144c&&_0x50c51f['getFirstRange']()['isIntersecting'](_0x16f162['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x50c51f,_0x16f162['data']['newRange'],_0x2357f7),_0x42538b=!0x0);}return _0x42538b;}['_recordAttributeChanges'](_0x4e119a){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4e119a();}['_isRegisteredAttribute'](_0x3cf47c){const _0x942bd8=this['_isBlockAttribute'](_0x3cf47c),_0x347447=this['_inlineAttributeKeys']['has'](_0x3cf47c);return _0x942bd8||_0x347447;}['_reduceExistingSuggestions'](_0x21a5de,_0x2afcfc){if(0x0==_0x2afcfc['length'])return!0x1;let _0x2d61ca=!0x1;for(const _0x482b5e of _0x2afcfc){const _0x1ad9bf=this['_findSuggestions'](_0x482b5e['range'],'attribute')['filter'](_0x3c05cc=>!_0x3c05cc['meta']['isNextTo'])['map'](_0x2613a0=>_0x2613a0['suggestion']),_0x19b645=_0x52361c({'newValue':_0x482b5e['newValue']});_0x1ad9bf['filter'](_0x1ee8ca=>{const [_0x8fd8f6,_0x43e0ec]=_0x1ee8ca['subType']['split']('|');return _0x8fd8f6==_0x482b5e['key']&&_0x43e0ec!=_0x19b645;})['forEach'](_0xc3ba62=>{this['_reduceSuggestionAttributeRange'](_0xc3ba62,_0x482b5e['range'],_0x21a5de),_0x2d61ca=!0x0;});}return _0x2d61ca;}['_reduceSuggestionAttributeRange'](_0x4578b0,_0x51c09c,_0xb1dd08){const _0x2ec00e=_0x4578b0['getFirstRange']()['getDifference'](_0x51c09c);0x0!==_0x2ec00e['length']?0x1!==_0x2ec00e['length']?this['_breakSuggestionMarker'](_0x4578b0,_0x51c09c['start'],_0x51c09c['end']):this['_setSuggestionRange'](_0x4578b0,_0x2ec00e[0x0]):_0xb1dd08['removeMarker'](_0x4578b0['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42f79b){this['_editor']=_0x42f79b,this['_model']=_0x42f79b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x119970,_0xd44167,_0x409c8d,_0x40db38,_0x376c81,_0x4762f9){return new u(this['_model'],{'type':_0x119970,'subType':_0xd44167,'id':_0x409c8d,'author':_0x40db38,'creator':_0x40db38,'attributes':_0x376c81,'onAttributesChange':_0x4762f9,'onAccept':(..._0x4c465e)=>this['getSuggestionCallback'](_0x119970,_0xd44167,'accept')(..._0x4c465e),'onDiscard':(..._0x54e09b)=>this['getSuggestionCallback'](_0x119970,_0xd44167,'discard')(..._0x54e09b)});}['registerCustomCallback'](_0x389998,_0x513faf,_0x1aadb4,_0x1e321d){const _0x2ea979=_0x389998+':'+_0x513faf+':'+_0x1aadb4;this['_customCallbacks']['set'](_0x2ea979,_0x1e321d);}['getSuggestionCallback'](_0x210eee,_0x225ea2,_0x1a530a){const _0x1ca150=_0x210eee+':'+_0x225ea2+':'+_0x1a530a;return this['_customCallbacks']['get'](_0x1ca150)||this['_defaultCallbacks']['get'](_0x210eee+':'+_0x1a530a);}['_registerDefaultCallbacks'](){const _0x2b426f=()=>!0x1,_0x3cae53=_0x68afa1=>{_0x68afa1['sort']((_0x2bb461,_0x42b6b7)=>_0x2bb461['start']['isBefore'](_0x42b6b7['start'])?0x1:-0x1),this['_model']['change'](_0x1a3ebb=>{for(const _0x5935d9 of _0x68afa1){let _0x10b8d9;_0x10b8d9=_0x5935d9['end']['isAtEnd']&&_0x5935d9['end']['parent']==_0x5935d9['start']['nodeAfter']?_0x1a3ebb['createSelection'](_0x5935d9['start']['nodeAfter'],'on'):_0x1a3ebb['createSelection'](_0x5935d9),this['_model']['deleteContent'](_0x10b8d9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3a3f35=(_0x423e8a,_0x1f06a7)=>{_0x1f06a7&&this['_model']['change'](_0xfffc4f=>{const {commandName:_0x68e849,commandParams:_0x42b30e=[]}=_0x1f06a7,_0x4577af=_0x423e8a['map'](_0x2dee6a=>(Vt(_0x2dee6a)&&(_0x2dee6a=this['_model']['createRange'](_0x2dee6a['end'])),_0x2dee6a))['filter'](_0x450c80=>'$graveyard'!==_0x450c80['root']['rootName']);if(_0x4577af['length']<0x1)return;const _0x544bac=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b4c07=>_0x43155d['fromRange'](_0x2b4c07));_0xfffc4f['setSelection'](_0x4577af);for(const _0x1dea9d of this['_editor']['commands']['commands']())_0x1dea9d['refresh']();_0x42b30e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x68e849,..._0x42b30e);const _0x2e749a=_0x544bac['filter'](_0x8ca932=>'$graveyard'!=_0x8ca932['root']['rootName']);_0x2e749a['length']>0x0&&_0xfffc4f['setSelection'](_0x2e749a);for(const _0x3c43e8 of _0x544bac)_0x3c43e8['detach']();});},_0x2f9ea5=(_0x3c30fe,_0xb89192)=>0x1==_0x3c30fe['length']&&0x1==_0xb89192['length']&&_0x3c30fe[0x0]['end']['isEqual'](_0xb89192[0x0]['start']),_0x3cd56d=(_0x531e91,_0x3dcb51,_0x54a0c3,_0x37fea)=>Ht(_0x531e91,_0x3dcb51,_0x54a0c3,_0x37fea,this['_model'])?[_0x531e91,_0x3dcb51]:Ht(_0x3dcb51,_0x531e91,_0x37fea,_0x54a0c3,this['_model'])?[_0x3dcb51,_0x531e91]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b426f),this['_defaultCallbacks']['set']('insertion:discard',_0x3cae53),this['_defaultCallbacks']['set']('insertion:join',_0x2f9ea5),this['_defaultCallbacks']['set']('insertion:chain',_0x3cd56d),this['_defaultCallbacks']['set']('deletion:accept',_0x3cae53),this['_defaultCallbacks']['set']('deletion:discard',_0x2b426f),this['_defaultCallbacks']['set']('deletion:join',_0x2f9ea5),this['_defaultCallbacks']['set']('deletion:chain',_0x3cd56d),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a3f35),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b426f),this['_defaultCallbacks']['set']('formatInline:join',_0x2f9ea5),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b426f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a3f35),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b426f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f9ea5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b426f),this['_defaultCallbacks']['set']('attribute:accept',_0x2b426f),this['_defaultCallbacks']['set']('attribute:discard',(_0xc402b3,_0xcb39ef)=>{if(!_0xcb39ef)return;const _0xe6b402=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5721ea=>{if(_0xcb39ef['key']==m)for(const _0x364f9f of _0xc402b3){const _0x4b82f0=_0x364f9f['start']['nodeAfter'],_0x23e963=_0xcb39ef['oldValue'];_0x5721ea['rename'](_0x4b82f0,_0x23e963);}else{if(_0xe6b402['_isBlockAttribute'](_0xcb39ef['key'])){for(const _0x545c07 of _0xc402b3)void 0x0!==_0xcb39ef['oldValue']?_0x5721ea['setAttribute'](_0xcb39ef['key'],_0xcb39ef['oldValue'],_0x545c07['start']['nodeAfter']):_0x5721ea['removeAttribute'](_0xcb39ef['key'],_0x545c07['start']['nodeAfter']);}else{for(const _0x23f48a of _0xc402b3)_0xcb39ef['oldValue']?_0x5721ea['setAttribute'](_0xcb39ef['key'],_0xcb39ef['oldValue'],_0x23f48a):_0x5721ea['removeAttribute'](_0xcb39ef['key'],_0x23f48a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2f9ea5);}}function Ot(_0x2faaf0,_0x3f5768,_0x263ff6){for(const _0x201f92 of _0x3f5768['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x201f92['root']==_0x201f92)return!0x1;if(!_0x263ff6['containsItem'](_0x201f92))return!0x1;if(_0x2faaf0['isObject'](_0x201f92)||_0x2faaf0['isLimit'](_0x201f92))return!0x0;}return!0x1;}function Vt(_0x3a8d20){return _0x3a8d20['end']['parent']==_0x3a8d20['start']['nodeAfter']&&_0x3a8d20['end']['isAtStart'];}function Ut(_0x113e8b,_0x10d42a,_0x47f893,_0x2ba442){const _0x58f26b=_0x1def82=>!_0x1def82['item']['is']('$textProxy')&&!_0x2ba442['isObject'](_0x1def82['item']),_0x32641e=_0x113e8b['start']['getLastMatchingPosition'](_0x58f26b),_0x1e735c=_0x113e8b['end']['getLastMatchingPosition'](_0x58f26b,{'direction':'backward'});return(!_0x113e8b['start']['isEqual'](_0x32641e)||!_0x113e8b['end']['isEqual'](_0x1e735c))&&(_0x32641e['isBefore'](_0x1e735c)?_0x47f893['updateMarker'](_0x10d42a,{'range':_0x47f893['createRange'](_0x32641e,_0x1e735c)}):_0x47f893['removeMarker'](_0x10d42a),!0x0);}function Gt(_0x18f829){return _0x52361c(_0x18f829);}function Ft(_0x27cfb7){const _0x87c0dc=_0x27cfb7['start']['nodeAfter'];return _0x87c0dc&&_0x87c0dc['is']('element');}function Pt(_0x191c56,_0x22b1ba){return null==_0x191c56['end']['nodeBefore']&&_0x191c56['end']['parent']==_0x191c56['start']['nodeAfter']?Lt(_0x191c56['start']['nodeAfter'],_0x22b1ba):_0x191c56;}function Lt(_0x38719b,_0x9709d0){const _0x997a6a=_0x9709d0['schema']['isObject'](_0x38719b)||_0x9709d0['schema']['isSelectable'](_0x38719b);return _0x9709d0['createRange'](_0x9709d0['createPositionAt'](_0x38719b,'before'),_0x997a6a?_0x9709d0['createPositionAfter'](_0x38719b):_0x9709d0['createPositionAt'](_0x38719b,'end'));}function Ht(_0x3ed708,_0x205b41,_0x2e4d8b,_0x5a022d,_0x2f6fdf){if(_0x3ed708['next'])return!0x1;if(!Jt(_0x3ed708,_0x205b41))return!0x1;if(_0x2e4d8b['end']['isEqual'](_0x5a022d['start']))return!0x0;if(_0x3ed708['type']!=_0x205b41['type'])return!0x1;if(!_0x2e4d8b['end']['isTouching'](_0x5a022d['start']))return!0x1;const _0x70c2dc=_0x2f6fdf['createRange'](_0x2e4d8b['end'],_0x5a022d['start'])['getWalker']();for(const _0xa63e57 of _0x70c2dc)if(['elementStart','elementEnd']['includes'](_0xa63e57['type'])&&_0x2f6fdf['schema']['isLimit'](_0xa63e57['item']))return!0x1;return!0x0;}function Jt(_0x56ceef,_0x540b1f){if(!_0x56ceef['_isDataLoaded']||!_0x540b1f['_isDataLoaded'])return!0x1;const _0x24eeea=new Set(Object['keys'](_0x56ceef['attributes'])),_0x2c1710=new Set(Object['keys'](_0x540b1f['attributes']));if(_0x24eeea['delete']('groupId'),_0x2c1710['delete']('groupId'),0x0==_0x24eeea['size']&&0x0==_0x2c1710['size'])return!0x0;if(_0x24eeea['size']!=_0x2c1710['size'])return!0x1;const _0x590bae={..._0x56ceef['attributes']},_0x23e21e={..._0x540b1f['attributes']};return delete _0x590bae['groupId'],delete _0x23e21e['groupId'],JSON['stringify'](_0x590bae)==JSON['stringify'](_0x23e21e);}function qt(_0x53de67,_0xdc1024){const _0x418742=zt(_0x53de67['attributes']),_0x54026d=zt(_0xdc1024);if(!_0x53de67['_isDataLoaded'])return!0x1;for(const _0x3eb499 of Object['keys'](_0x54026d))if(!_0x3d91e4(_0x418742[_0x3eb499],_0x54026d[_0x3eb499]))return!0x1;return!0x0;}function zt(_0x159547){const _0x41ca86=Object['assign']({},_0x159547);return delete _0x41ca86['skipNestingCheck'],delete _0x41ca86['tablePasteChainId'],_0x41ca86;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xe7639c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x35321a,_0x3e6a20,_0x14c4ba,_0x4c7a1c){super(),this['model']=_0x3e6a20,this['view']=_0x14c4ba,this['commentThreadController']=_0x4c7a1c,this['_editor']=_0x35321a,this['_acceptCommand']=_0x35321a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x35321a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa1054e,_0x525d64)=>_0xa1054e||_0x525d64),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x448ef9=>_0x448ef9&&this['_editor']['model']['canEditAt'](_0x3e6a20['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x593804=>_0x593804&&this['_editor']['model']['canEditAt'](_0x3e6a20['getRanges']())),this['_pendingAction']=null,_0x14c4ba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x14c4ba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x14c4ba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x14c4ba,'change:isDirty',()=>{_0x14c4ba['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 _0x3d767a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3d767a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x451fdc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5cb13d,_0x28e9fe,_0x45a516,_0x8b2acc){super(_0x5cb13d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x524575(_0x5cb13d,o(_0x5cb13d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28e9fe['authoredAt']),this['bind']('authoredAt')['to'](_0x28e9fe),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',_0x28e9fe,'authoredAt',this,'descriptionParts',(_0x2fcd5b,_0x2c6c42,_0x3cc7b1)=>{const _0x2a39d2=_0x3cc7b1['map'](_0x1ad470=>ls(_0x1ad470['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2fcd5b-0x1,_0x28e9fe['author']['name'],_0x2c6c42?_0x8b2acc['formatDateTime'](_0x2c6c42):'',new DOMParser()['parseFromString'](_0x2a39d2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c72c1(),this['focusTracker']=new _0x966cf0(),this['keystrokes']=new _0x201fc8(),this['focusCycler']=new _0x432d7b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x139ce3=>_0x139ce3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28e9fe,this['_localUser']=_0x45a516,this['_config']=_0x8b2acc,_0x8b2acc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2ad6e6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x501142}=this['_config'];this['commentsListView']=new _0x501142(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',_0x4e1d6d=>_0x4e1d6d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5519b0,_0x989de7)=>_0x5519b0||!!_0x989de7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4e6ccb}=this['_config'],_0x417a1a=new _0x4e6ccb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x548765=_0x417a1a['commentInputView'];return _0x417a1a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x548765,'value',(_0x387876,_0x19f59d,_0x3f5ca1)=>!!_0x3f5ca1||_0x387876&&!_0x19f59d),_0x548765['on']('submit',(_0x2ddad9,_0x27d3bb)=>{this['fire']('addComment',_0x27d3bb),_0x548765['editor']['setData']('');}),_0x548765['on']('cancel',()=>this['focus']()),_0x548765['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x417a1a;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x23ee8d,_0x1c49c7,_0x1edf8e,_0x3ad3ec){super(_0x23ee8d,_0x1c49c7,_0x1edf8e,_0x3ad3ec),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2f7530=>_0x2f7530&&_0x2f7530[0x0]?_0x2f7530[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x297b74,_0x3750b7)=>{let _0x8e9204='';for(const _0x1c3958 of _0x297b74)_0x8e9204+='<p>'+ls(_0x1c3958['content'],_0x1c3958['color'])+'</p>';return _0x3750b7?_0x8e9204:_0x176c99(_0x8e9204,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ad3ec['SuggestionView'](_0x23ee8d,_0x1c49c7,{'formatDateTime':_0x3ad3ec['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 _0x2476fb=this['bindTemplate'],_0x505307=[this['suggestionView']];return this['commentsListView']&&_0x505307['push'](this['commentsListView']),this['commentThreadInputView']&&_0x505307['push'](this['commentThreadInputView']),_0x505307['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2476fb['if']('isActive','ck-suggestion-wrapper--active'),_0x2476fb['to']('type',_0x4586c9=>'ck-suggestion-'+_0x4586c9),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':_0x2476fb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x505307};}['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 _0x451fdc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5601e0,_0x4feb3e,_0x5d74ef){super(_0x5601e0),this['_model']=_0x4feb3e,this['_config']=_0x5d74ef,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4feb3e),this['acceptButton']=this['_createButton'](o(_0x5601e0,'Accept\x20suggestion'),_0xd55615['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5601e0,'Discard\x20suggestion'),_0xd55615['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2ad5bb(_0x5601e0,_0x4feb3e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c72c1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x966cf0(),this['keystrokes']=new _0x201fc8(),this['focusCycler']=new _0x432d7b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x191557=>_0x191557['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1aec87=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1aec87['innerHTML']=this['description'],this['on']('change:description',(_0x292f2f,_0x44abf5,_0x2b95dd)=>{_0x1aec87['innerHTML']=_0x2b95dd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xc1d1f2=this['bindTemplate'],_0x2b767f=[{'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':_0xc1d1f2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xc1d1f2['to']('authoredAt',_0x204756=>this['_config']['formatDateTime'](_0x204756))}]}]},{'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']&&_0x2b767f['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':_0x2b767f}]};}['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'](_0x1df7e5,_0x17eb10,_0x3090a7,_0x53d351,_0x474769){const _0x1e5f8b=new _0xbdcb8d(this['locale']);return _0x1e5f8b['set']({'label':_0x1df7e5,'icon':_0x17eb10,'tooltip':!0x0,'tooltipPosition':_0x474769}),_0x1e5f8b['extendTemplate']({'attributes':{'class':_0x3090a7}}),_0x1e5f8b['on']('execute',()=>{this['fire'](_0x53d351,this['_model']['id']);}),_0x1e5f8b;}['_setupKeyboardNavigation'](){const _0x552c05=this['element'];this['keystrokes']['listenTo'](_0x552c05);for(const _0x4f2559 of this['focusables'])this['focusTracker']['add'](_0x4f2559['element']),this['keystrokes']['listenTo'](_0x4f2559['element']);this['keystrokes']['set']('enter',(_0x402263,_0x21e428)=>{_0x552c05===_0x402263['target']&&(this['focusCycler']['focusFirst'](),_0x21e428());}),this['keystrokes']['set']('esc',(_0xfa1c35,_0x4e898d)=>{_0x552c05!==_0xfa1c35['target']&&(this['focus'](),_0x4e898d());});}}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 _0x2d1259{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1f5312,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2c9cbe){super(_0x2c9cbe),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1077ff=this['editor']['config'];_0x1077ff['define']('trackChanges.SuggestionThreadView',re),_0x1077ff['define']('trackChanges.SuggestionView',ce),_0x1077ff['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1077ff['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x1c4d27,_0x345369){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x406f4c,_0x2d6396]of this['_handleControllerBuffer']){const _0x185e2e=this['_suggestionToController']['has'](_0x406f4c);_0x185e2e||_0x2d6396?_0x185e2e&&_0x2d6396&&this['_destroyController'](_0x406f4c):this['_initializeController'](_0x406f4c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c4d27,_0x345369);}['init'](){const _0x3d37c5=this['editor'],_0x24a9e4=_0x3d37c5['plugins']['get']('TrackChangesEditing'),_0x3a61f0=_0x3d37c5['plugins']['get']('Annotations'),_0x32d51c=_0x3d37c5['plugins']['get']('EditorAnnotations'),_0x1e2f98=_0x3d37c5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32d51c['addSourceCollector'](()=>{const _0x500445=[];for(const [_0x2da734,_0x2891d1]of Array['from'](this['_suggestionToController'])){const _0x4da173=_0x2da734['getAllAdjacentSuggestions'](),_0x74083c=[];for(const _0x4ded4a of _0x4da173){if(!_0x4ded4a['isInContent'])continue;if(_0x4ded4a['isMultiRange']){_0x74083c['push'](..._0x4ded4a['getRanges']());continue;}const _0x2e5b38=_0x4ded4a['getFirstRange']();if(_0x74083c['length']>0x0){const _0x53b241=_0x74083c[0x0]['getJoined'](_0x2e5b38);if(_0x53b241){_0x74083c[0x0]=_0x53b241;continue;}}_0x74083c['push'](_0x2e5b38);}_0x500445['push']([_0x2891d1['view'],_0x74083c]);}return _0x500445;}),this['listenTo'](_0x24a9e4,'suggestionLoaded',(_0x326298,_0x142c63)=>{this['listenTo'](_0x142c63,'change:previous',(_0x193ab0,_0x391722,_0x15e033,_0x2437c0)=>{_0x142c63['isInContent']&&(null==_0x15e033?(this['_updateController'](_0x2437c0['head']),this['_handleSuggestionControllerDelayed'](_0x142c63,!0x1)):(this['_updateController'](_0x15e033['head']),null==_0x2437c0&&this['_handleSuggestionControllerDelayed'](_0x142c63,!0x0)));}),null!==_0x142c63['previous']?this['_updateController'](_0x142c63['head']):this['_handleSuggestionControllerDelayed'](_0x142c63,!0x1);}),this['listenTo'](_0x24a9e4,'suggestionUnloaded',(_0x1a1181,_0x342b00,_0x32bb7e)=>{this['stopListening'](_0x342b00,'change:previous'),this['_handleControllerBuffer']['delete'](_0x342b00),this['_suggestionToController']['has'](_0x342b00)&&this['_destroyController'](_0x342b00),_0x32bb7e&&this['_updateController'](_0x32bb7e['head']);}),this['listenTo'](_0x24a9e4,'suggestionChanged',(_0x567456,_0x55f803)=>{this['_updateController'](_0x55f803);}),this['listenTo'](_0x3a61f0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1e2f98,'addComment',(_0x591093,{threadId:_0x5c8c94,isFromAdapter:_0x2e3222})=>{if(_0x2e3222||!_0x24a9e4['hasSuggestion'](_0x5c8c94))return;const _0x226c59=_0x24a9e4['getSuggestion'](_0x5c8c94);this['_suggestionToController']['get'](_0x226c59)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5bdafa=this['editor']['plugins']['get']('Annotations'),_0x3575d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40b5e5=Array['from'](_0x5bdafa['activeAnnotations'],_0x32e081=>_0x32e081['innerView'])['filter'](_0x28b520=>this['_viewToController']['has'](_0x28b520)),_0x5d0299=[];for(const _0xcd3d2b of _0x40b5e5){const _0xf65abc=this['_viewToController']['get'](_0xcd3d2b)['model']['getAllAdjacentSuggestions']();_0x5d0299['push'](..._0xf65abc['reduce']((_0x562c50,_0x23c8eb)=>[..._0x562c50,..._0x23c8eb['getMarkerNames']()],[]));}_0x3575d5['activeMarkers']=_0x5d0299;}['_addUIComponentsToFactory'](){const _0x188fdb=this['editor'],_0x5f2a53=_0x188fdb['locale'],_0x59b4d3=o(_0x5f2a53,'Track\x20changes'),_0x19264b=new Wt([{'type':'switchbutton','model':new _0x32a3d2({'withText':!0x0,'isToggleable':!0x0,'label':_0x59b4d3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4ccff5 of _0x19264b)if(me(_0x4ccff5)){const _0x4f64ba=_0x188fdb['commands']['get'](_0x4ccff5['model']['commandName']);_0x4ccff5['model']['bind']('isOn','isEnabled')['to'](_0x4f64ba,'value','isEnabled');}_0x188fdb['ui']['componentFactory']['add']('trackChanges',_0x434aaa=>this['_createToolbarButton'](_0x434aaa,_0x19264b,_0x59b4d3)),_0x188fdb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x52789c=>this['_createMenuBarMenu'](_0x52789c,_0x19264b,_0x59b4d3));}['_createToolbarButton'](_0x1a82bb,_0x1f044c,_0x32cd8f){const _0x21b50b=Qt(_0x1a82bb,_0x355e24),_0x3c16bf=this['editor']['commands']['get']('trackChanges');_0x21b50b['buttonView']['set']({'tooltip':_0x32cd8f,'label':_0x32cd8f,'icon':he}),_0x21b50b['buttonView']['bind']('isOn')['to'](_0x3c16bf,'value'),_0x21b50b['buttonView']['on']('execute',()=>{_0x3c16bf['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x21b50b,_0x1f044c,{'role':'menu'});const _0xc82399=[];for(const _0xed804f of _0x1f044c)me(_0xed804f)&&_0xc82399['push'](this['editor']['commands']['get'](_0xed804f['model']['commandName']));const _0x5012e2=_0x21b50b['buttonView'];return _0x5012e2['actionView']['unbind']('isEnabled'),_0x5012e2['arrowView']['unbind']('isEnabled'),_0x5012e2['actionView']['bind']('isEnabled')['to'](_0x3c16bf,'isEnabled'),_0x5012e2['arrowView']['bind']('isEnabled')['toMany'](_0xc82399,'isEnabled',(..._0x5c01fe)=>_0x5c01fe['some'](_0x35d602=>_0x35d602)),_0x21b50b['on']('execute',_0x53c092=>{this['editor']['execute'](_0x53c092['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x21b50b;}['_createMenuBarMenu'](_0x265f0d,_0x29eae6,_0x5a171b){const _0x12f43f=new Yt(_0x265f0d),_0x2ffe22=this['editor']['commands']['get']('trackChanges');_0x12f43f['buttonView']['set']({'label':_0x5a171b,'icon':he});const _0x2b89ab=new Zt(_0x265f0d);for(const _0x4bc043 of _0x29eae6){if('separator'==_0x4bc043['type']){_0x2b89ab['items']['add'](new Xt(_0x265f0d));continue;}const _0x4dc9ac=new te(_0x265f0d,_0x12f43f),_0x335d72=new _0x167bd1(_0x265f0d),_0x21f383=_0x4bc043['model'];_0x335d72['bind'](...Object['keys'](_0x21f383))['to'](_0x21f383),_0x335d72['delegate']('execute')['to'](_0x12f43f),_0x335d72['on']('execute',()=>{this['editor']['execute'](_0x21f383['commandName']),this['editor']['editing']['view']['focus']();}),_0x4dc9ac['children']['add'](_0x335d72),_0x2b89ab['items']['add'](_0x4dc9ac);}return _0x12f43f['bind']('isEnabled')['to'](_0x2ffe22,'isEnabled'),_0x12f43f['panelView']['children']['add'](_0x2b89ab),_0x12f43f;}['_initializeController'](_0x2269e0){const _0x1cd930=this['editor'],_0x314580=_0x1cd930['config'],_0x239814=_0x1cd930['plugins']['get']('Annotations'),_0x2e0c21=_0x1cd930['plugins']['get']('CommentsRepository'),_0x34977d=_0x1cd930['plugins']['get']('EditorAnnotations'),_0xd79221=_0x1cd930['plugins']['get'](_0x1f5312)['me'],_0x14f014=_0x314580['get']('trackChanges')['SuggestionThreadView'],_0x2053e7=_0x314580['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x32840e,CommentThreadInputView:_0x63eda2}=_0x1cd930['plugins']['get']('CommentsUI');let _0x3be26e,_0x3f46ee;this['_annotationViews']['has'](_0x2269e0['id'])?(_0x3f46ee=this['_annotationViews']['get'](_0x2269e0['id']),_0x3be26e=_0x3f46ee['mainView']):(_0x3be26e=new _0x14f014(_0x1cd930['locale'],_0x2269e0,_0xd79221,{'disableComments':this['_disableComments'],'editorConfig':_0x314580['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x314580['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x314580['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x314580['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x12fe54(_0x314580['get']('locale')),'CommentView':_0x314580['get']('comments')['CommentView'],'CommentsListView':_0x32840e,'CommentThreadInputView':_0x63eda2,'SuggestionView':_0x2053e7}),_0x3be26e['suggestionView']['acceptButton']['on']('execute',()=>{_0x1cd930['editing']['view']['focus']();}),_0x3be26e['suggestionView']['discardButton']['on']('execute',()=>{_0x1cd930['editing']['view']['focus']();}),_0x3f46ee=_0x239814['createAnnotationView'](this['editor']['locale'],_0x3be26e),_0x3f46ee['bind']('isDirty')['to'](_0x3be26e,'isDirty'),_0x3f46ee['bind']('length')['to'](_0x3be26e),_0x3f46ee['bind']('type')['to'](_0x3be26e,'type',_0x302a37=>'suggestion-'+_0x302a37),this['listenTo'](_0x3be26e,'escape',()=>{_0x1cd930['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x2269e0['id'],_0x3f46ee));const _0x473183=_0x2e0c21['createCommentThreadController'](_0x2269e0['commentThread'],_0x3be26e),_0x366f91=new ae(_0x1cd930,_0x2269e0,_0x3be26e,_0x473183),_0x2225b0=_0x2269e0['getAllAdjacentSuggestions']()['filter'](_0x4c86ba=>_0x4c86ba['isInContent']);_0x3be26e['descriptionParts']=_0x1cd930['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2225b0),this['_suggestionToController']['set'](_0x2269e0,_0x366f91),this['_viewToController']['set'](_0x3be26e,_0x366f91);const _0x3b64eb=_0x239814['createAnnotation']({'view':_0x3f46ee,'target':()=>{const _0x36b9ca=[],_0x35ca98=_0x2269e0['getAllAdjacentSuggestions']()['filter'](_0x2dfdca=>_0x2dfdca['isInContent']);for(const _0xf3804f of _0x35ca98)_0x36b9ca['push'](..._0xf3804f['getMarkers']());return _0x32350c(_0x1cd930['editing'],_0x36b9ca);},'type':()=>'suggestion-'+_0x366f91['view']['type']});_0x2e0c21['_bindAnnotationToEditors'](_0x3be26e,_0x3b64eb),_0x239814['add'](_0x3b64eb),_0x34977d['registerAnnotation'](_0x3b64eb);}['_destroyController'](_0x15e597){const _0x4910f5=this['editor']['plugins']['get']('CommentsRepository'),_0x2f3b78=this['editor']['plugins']['get']('Annotations'),_0x4c2650=this['_suggestionToController']['get'](_0x15e597),_0x491fd8=_0x4c2650['view'],_0x6a6747=_0x2f3b78['getByInnerView'](_0x491fd8);_0x4910f5['_unbindEditors'](_0x491fd8),_0x6a6747&&_0x2f3b78['remove'](_0x6a6747),this['_suggestionToController']['delete'](_0x15e597),this['_viewToController']['delete'](_0x491fd8),_0x4c2650['destroy']();}['_updateController'](_0x371d6e){if(!_0x371d6e['isInContent']||!this['_suggestionToController']['has'](_0x371d6e))return;const _0x58f600=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ce6c6=this['_suggestionToController']['get'](_0x371d6e),_0x47db36=_0x371d6e['getAllAdjacentSuggestions']();_0x2ce6c6['view']['descriptionParts']=_0x58f600['descriptionFactory']['getDescriptions'](_0x47db36);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x224acd,(_0x6a5ac5,_0xef5120)=>{const _0x5d9e86=this['editor']['plugins']['get'](k),_0xf20510=this['editor']['plugins']['get'](p);if(!_0xf20510['activeMarkers']['length'])return;const {id:_0x20a874}=_0xf20510['_splitMarkerName'](_0xf20510['activeMarkers'][0x0]),_0x2f0993=_0x5d9e86['getSuggestion'](_0x20a874);_0x2f0993&&(this['_suggestionToController']['get'](_0x2f0993)['view']['focus'](),_0xef5120());});}['destroy'](){for(const _0x1cf9ec of this['_suggestionToController']['keys']())this['_destroyController'](_0x1cf9ec);for(const _0xfe0aac of this['_annotationViews']['values']())_0xfe0aac['mainView']['destroy']();super['destroy']();}}function me(_0x32cf9b){return'model'in _0x32cf9b;}class k extends _0x2d1259{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xc147b7){this['editor']['plugins']['get'](p)['adapter']=_0xc147b7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4a8611){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4a8611);}['getSuggestions']({skipNotAttached:_0x1caf65=!0x1,toJSON:_0x42aab6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1caf65,'toJSON':_0x42aab6});}['getSuggestion'](_0x23109c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x23109c);}}const T=['Pagination'];class P extends _0x2d1259{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x32922a=this['editor'];if(_0x32922a['config']['define']('trackChangesData.editorCreator',_0x4c48e9=>{const _0x47f8c9=_0x32922a['model']['document']['getRootNames']()['reduce']((_0x19e686,_0xf96680)=>(_0x19e686[_0xf96680]='',_0x19e686),{});return _0x32922a['constructor']['create'](_0x47f8c9,_0x4c48e9);}),'function'!=typeof _0x32922a['config']['get']('trackChangesData')['editorCreator'])throw new _0x297859('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x58fb14){return N(this['editor'],!0x0,_0x58fb14);}['getDataWithDiscardedSuggestions'](_0x5d5cba){return N(this['editor'],!0x1,_0x5d5cba);}}class D extends _0x2d1259{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2a2e4c){super(_0x2a2e4c),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(_0x199090){return void 0x0!==_0x199090['getRootsAttributes'];}async function N(_0x1c379c,_0x1feeed,_0x36b49f){const _0x56cb58=_0x484221(_0x1c379c,T);_0x56cb58['plugins']['push'](p,D),_0x56cb58['rootsAttributes']=v(_0x1c379c)?_0x1c379c['getRootsAttributes']():void 0x0;const _0xf9a772=document['createDocumentFragment'](),_0x17de86=_0x1c379c['config']['get']('trackChangesData')['editorCreator'],_0x4acedd=await _0x17de86(_0x56cb58,()=>function(_0x1ec2df){const _0x25ad9f=document['createElement']('div');return _0x1ec2df['appendChild'](_0x25ad9f),_0x25ad9f;}(_0xf9a772));!function(_0x469d46,_0x1dfbf5){const _0x2c2773=_0x469d46['model']['document']['getRootNames']()['reduce']((_0x5cb459,_0x177b54)=>(_0x5cb459[_0x177b54]=_0x469d46['data']['get']({'rootName':_0x177b54}),_0x5cb459),{}),_0x18f7ac=_0x469d46['plugins']['get']('Users')['users']['map'](_0xc88090=>({'id':_0xc88090['id'],'name':_0xc88090['name']})),_0x3b89da=_0x469d46['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e54e1=_0x469d46['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x75746=_0x1dfbf5['plugins']['get']('Users'),_0x367383=_0x1dfbf5['plugins']['get']('TrackChangesEditing'),_0x1488bf=_0x1dfbf5['plugins']['get']('CommentsRepository');for(const _0x329d93 of _0x1488bf['getCommentThreads']())_0x329d93['remove']();for(const _0x28f265 of _0x18f7ac)_0x75746['getUser'](_0x28f265['id'])||_0x75746['addUser'](_0x28f265);_0x75746['me']||_0x75746['useAnonymousUser']();for(const _0x594e6a of _0x4e54e1)_0x1488bf['addCommentThread'](_0x594e6a);for(const _0x427c53 of _0x3b89da)_0x367383['addSuggestionData'](_0x427c53);_0x1dfbf5['data']['set'](_0x2c2773);}(_0x1c379c,_0x4acedd),_0x4acedd['execute'](_0x1feeed?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e96bc=v(_0x4acedd)?_0x4acedd['getFullData'](_0x36b49f):_0x4acedd['data']['get'](_0x36b49f);return await _0x4acedd['destroy'](),_0x5e96bc;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x8cf398,PendingActions as _0x4ac055,icons as _0x14815d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3993e2,ObservableMixin as _0x1ce610,uid as _0x3862eb,insertToPriorityArray as _0x5f119e,priorities as _0x58a317,logWarning as _0x524eb8,getEnvKeystrokeText as _0x11ff70,FocusTracker as _0x3f7b27,KeystrokeHandler as _0x4a0e75,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x34d068,View as _0x3e1c6b,ViewCollection as _0x31f5a3,FocusCycler as _0x314f1a,ViewModel as _0xa35ebe,createDropdown as Qt,SplitButtonView as _0x46533f,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x4cd605}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5145ee,hashObject as _0x4814d4,surroundingMarkersDetector as _0x632ec4,ENTER_THREAD_KEYSTROKE as _0x9a2ac5,AriaDescriptionView as _0x1a3de6,setupThreadKeyboardNavigation as _0x24c52c,trimHtml as _0x59514d,UserView as _0x35cc46,LateFocusButtonView as _0x337a4d,getDateTimeFormatter as _0x432736,getAllMarkersDomElementsSorted as _0x40539d,sanitizeEditorConfig as _0x5459ab}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2d1aa4,LiveRange as _0x142937,LivePosition as _0x5b8ee1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ef68c,toWidget as _0x3fd7fa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3f8dc0,set as _0x2305d4,isEqual as _0x35d659,unset as _0x308033,omit as Tt}from'lodash-es';import{Delete as _0xf7d505,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1aca77,ShiftEnter as _0x41f21b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3019b1,_0x4eebfd){super(_0x3019b1),this['_enabledCommands']=_0x4eebfd,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 _0x3f8af3 of this['editor']['commands']['commands']())_0x3f8af3['affectsData']&&!this['_enabledCommands']['has'](_0x3f8af3)&&_0x3f8af3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x52501f of this['editor']['commands']['commands']())_0x52501f['affectsData']&&!this['_enabledCommands']['has'](_0x52501f)&&_0x52501f['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x26d158,_0x435d6a){super(_0x26d158),this['_suggestions']=_0x435d6a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x16d0de){const _0x26d605=this['_suggestions']['get'](_0x16d0de);if(!_0x26d605)throw new _0x3993e2('track-changes-accept-suggestion-not-found',this);const _0xdd57a9=_0x26d605['getRanges']();this['editor']['model']['canEditAt'](_0xdd57a9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x26d605);}}class R extends ts{['_suggestions'];constructor(_0x3c1f93,_0x234c00){super(_0x3c1f93),this['_suggestions']=_0x234c00,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x546f1b){const _0x12860e=this['_suggestions']['get'](_0x546f1b);if(!_0x12860e)throw new _0x3993e2('track-changes-discard-suggestion-not-found',this);const _0x219930=_0x12860e['getRanges']();this['editor']['model']['canEditAt'](_0x219930)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x12860e);}}function ls(_0x10564d,_0x1b4c6c){let _0x56c61e='';return _0x56c61e+=_0x10564d['split']('*')['map']((_0x1e704c,_0x2043c5)=>_0x2043c5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1e704c)+'</span>':nn(_0x1e704c))['join'](''),_0x1b4c6c&&(_0x56c61e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1b4c6c['value']+'\x22\x20title=\x22'+_0x1b4c6c['title']+'\x22></span>'),_0x56c61e;}function nn(_0x4dd17b){const _0x38e58d=document['createElement']('span');return _0x38e58d['innerText']=_0x4dd17b,_0x38e58d['innerHTML'];}function ss(_0x37b0e1){return _0x37b0e1['sort']((_0x2a67ae,_0x5d005c)=>'deletion'==_0x2a67ae['type']&&'deletion'!=_0x5d005c['type']?-0x1:'deletion'!=_0x2a67ae['type']&&'deletion'==_0x5d005c['type']?0x1:0x0);}function to(_0x4a6a47,_0x531963){let _0x14a246,_0xd322da=0x0;const _0x43fe55=[],_0x5eb0c5=_0x531963['schema'];for(;_0xd322da<_0x4a6a47['length'];){const _0x31fb0b=_0x4a6a47[_0xd322da],_0x457524=_0x4a6a47[_0xd322da+0x1];_0x14a246||(_0x14a246=_0x531963['createPositionBefore'](_0x31fb0b)),on(_0x531963,_0x31fb0b,_0x457524)||(_0x43fe55['push'](_0x531963['createRange'](_0x14a246,_0x5eb0c5['isObject'](_0x31fb0b)?_0x531963['createPositionAfter'](_0x31fb0b):_0x531963['createPositionAt'](_0x31fb0b,'end'))),_0x14a246=null),_0xd322da++;}return _0x43fe55;}function on(_0x29e8de,_0x2d663e,_0x175c2f){if(!_0x175c2f)return!0x1;const _0x33013a=_0x29e8de['createPositionAfter'](_0x2d663e),_0xd2e939=_0x29e8de['createPositionBefore'](_0x175c2f);return _0x33013a['isTouching'](_0xd2e939);}function rs(_0x465298,_0x2f3fac,_0x229bd0){for(;_0x229bd0['length'];){const _0x5651e9=_0x229bd0['splice'](0x0,0x64);_0x465298['change'](()=>{for(const _0x2534c1 of _0x5651e9)_0x2534c1['isInContent']&&_0x2f3fac['execute'](_0x2534c1['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x455fb3,_0xdc3ee3,_0x38c94d){super(_0x455fb3),this['_command']=_0xdc3ee3,this['_suggestions']=_0x38c94d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x111424=Array['from'](this['_suggestions']['values']())['some'](_0x5b3cfb=>_0x5b3cfb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x111424;}['execute'](){const _0x3da7e2=ss(Array['from'](this['_suggestions']['values']()));for(const _0x162344 of _0x3da7e2){const _0x2fd9d9=_0x162344['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2fd9d9))return;}rs(this['editor']['model'],this['_command'],_0x3da7e2);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x40676f,_0x559db4,_0x2d05e3){super(_0x40676f),this['_command']=_0x559db4,this['_suggestions']=_0x2d05e3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xee8b50=this['editor']['model']['document']['selection'],_0x2a2564=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x481731,_0x5f1073){const _0x5f51d8=Array['from'](_0x481731['getRanges']()),_0x2ee24f=new Set();for(const _0x5f319b of _0x5f1073)if(_0x5f319b['isInContent']){for(const _0x583dce of _0x5f51d8)for(const _0x4dc302 of _0x5f319b['getRanges']())(_0x583dce['isIntersecting'](_0x4dc302)||_0x481731['isCollapsed']&&!_0x5f319b['isMultiRange']&&_0x5f319b['next']&&_0x4dc302['end']['isTouching'](_0x583dce['start']))&&_0x2ee24f['add'](_0x5f319b);}return _0x2ee24f;}(_0xee8b50,_0x2a2564),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xa01220=ss(Array['from'](this['_selectedSuggestions']));for(const _0x55a34b of _0xa01220){const _0x3c0232=_0x55a34b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3c0232))return;}rs(this['editor']['model'],this['_command'],_0xa01220);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1ce610(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x37145c,_0x3a001f){super(),this['id']=_0x3a001f['id'],this['type']=_0x3a001f['type'],this['subType']=_0x3a001f['subType']||null,this['author']=_0x3a001f['author'],this['creator']=_0x3a001f['creator']||_0x3a001f['author'],this['isExternal']=Boolean(_0x3a001f['attributes']&&_0x3a001f['attributes']['@external']),this['data']=null,this['_model']=_0x37145c,this['_onAccept']=_0x3a001f['onAccept'],this['_onDiscard']=_0x3a001f['onDiscard'],this['_onAttributesChange']=_0x3a001f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a001f['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 _0x52ebe1=this;for(;_0x52ebe1['previous'];)_0x52ebe1=_0x52ebe1['previous'];return _0x52ebe1;}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'](_0xb38cff){this['_markerNames']['add'](_0xb38cff);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2c0083=>this['_model']['markers']['get'](_0x2c0083))['filter'](_0x36d885=>_0x36d885);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x24f04d=>{for(const _0x3180f1 of this['getMarkers']())_0x24f04d['removeMarker'](_0x3180f1);}),this['_markerNames']['clear']();}['removeMarker'](_0x4419ea){this['_model']['change'](_0x181016=>{_0x181016['removeMarker'](_0x4419ea);}),this['_markerNames']['delete'](_0x4419ea);}['addRange'](_0x1f355e){const _0x350e14='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x350e14),this['_model']['change'](_0x478578=>{_0x478578['addMarker'](_0x350e14,{'range':_0x1f355e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x381a6f){for(const _0x1dc325 of this['getRanges']())if(_0x1dc325['isIntersecting'](_0x381a6f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5f3dfb=>_0x5f3dfb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x48cce9,_0x218b78)=>[..._0x48cce9,..._0x218b78['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2d4610=this['getRanges']();if(0x1!=_0x2d4610['length'])return null;const _0x29587f=_0x2d4610[0x0],_0x59d667=_0x29587f['start']['nodeAfter'],_0x365661=_0x29587f['end']['nodeBefore'];return _0x59d667 instanceof _0x2d1aa4?_0x59d667!=_0x365661?null:_0x59d667: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 _0x1db021=[];let _0x92b2fc=this['head'];for(;_0x92b2fc;)_0x1db021['push'](_0x92b2fc),_0x92b2fc=_0x92b2fc['next'];return _0x1db021;}['setAttribute'](_0x9c679,_0x111fcd){const _0x169d72=_0x3f8dc0(this['attributes']);_0x2305d4(_0x169d72,_0x9c679,_0x111fcd),_0x35d659(_0x169d72,this['attributes'])||(this['attributes']=_0x169d72,this['_onAttributesChange'](_0x169d72));}['removeAttribute'](_0xf12a79){const _0xf9f2f9=_0x3f8dc0(this['attributes']);_0x308033(_0xf9f2f9,_0xf12a79),_0x35d659(_0xf9f2f9,this['attributes'])||(this['attributes']=_0xf9f2f9,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 _0x3862eb()['substr'](0x1,0x5);}}function o(_0x59bdb7,_0x1da286,_0x661d6f){const t=_0x59bdb7['t'];switch(_0x1da286){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',_0x661d6f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x661d6f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x661d6f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x661d6f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x661d6f);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',_0x661d6f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x661d6f);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',_0x661d6f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x661d6f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x661d6f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x661d6f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x661d6f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x661d6f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x661d6f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x661d6f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x661d6f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x661d6f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x661d6f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x661d6f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x661d6f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x661d6f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x661d6f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x661d6f);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'},_0x661d6f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x661d6f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x661d6f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x661d6f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x661d6f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x661d6f);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'},_0x661d6f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x661d6f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x661d6f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x661d6f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x661d6f);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'},_0x661d6f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x661d6f);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'},_0x661d6f);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'},_0x661d6f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x661d6f);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'},_0x661d6f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x661d6f);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'},_0x661d6f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x661d6f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x661d6f);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'},_0x661d6f);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'},_0x661d6f);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'},_0x661d6f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x661d6f);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'},_0x661d6f);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'},_0x661d6f);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'},_0x661d6f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1da286;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29bf12,_0x58a12b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29bf12,this['_locale']=_0x58a12b;}['getDescriptions'](_0x4c58c7){const _0x2efc8c=[],_0x4b7466=new Set(),_0x28cc5b=new Set();for(let _0x5569b3=0x0;_0x5569b3<_0x4c58c7['length'];_0x5569b3++){const _0x4b5884=_0x4c58c7[_0x5569b3];if(!_0x4b5884['isInContent'])continue;const _0x3cc6c9=this['_handleCustomCallbackDescription'](_0x4b5884);if(_0x3cc6c9){if(null!=_0x4b5884['subType']){if(_0x4b7466['has'](_0x4b5884['subType']))continue;_0x4b7466['add'](_0x4b5884['subType']);}_0x2efc8c['push'](_0x3cc6c9);}else{if('attribute'!=_0x4b5884['type'])'insertion'!=_0x4b5884['type']&&'deletion'!=_0x4b5884['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2efc8c,_0x4b5884,_0x4c58c7[_0x5569b3+0x1]);else{const _0x46bc43=_0x4b5884['data']['key'];if(_0x28cc5b['has'](_0x46bc43))continue;_0x28cc5b['add'](_0x4b5884['data']['key']),_0x46bc43==m?this['_handleRenameSuggestionDescription'](_0x2efc8c,_0x4b5884):this['_handleAttributeSuggestionDescription'](_0x2efc8c,_0x4b5884);}}}return this['_resolveDescriptionItems'](_0x2efc8c);}['registerDescriptionCallback'](_0x1e3cab){this['_customCallbacks']['push'](_0x1e3cab);}['registerElementLabel'](_0x1f542d,_0x1ca8ce,_0x1c931a=_0x58a317['normal']){'function'==typeof _0x1f542d?_0x5f119e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1f542d,'label':_0x1ca8ce,'priority':_0x1c931a}):this['_itemLabels']['set'](_0x1f542d,_0x1ca8ce);}['registerAttributeLabel'](_0x29c840,_0x16431d){this['_attributeLabels']['set'](_0x29c840,_0x16431d);}['getItemLabel'](_0x2a4e4d,_0x550816=0x1){let _0x311b90;for(const _0xe4610b of this['_itemLabelsCallbacks'])if(_0xe4610b['matchingCallback'](_0x2a4e4d)){_0x311b90=_0xe4610b['label'];break;}return _0x311b90||(_0x311b90=this['_itemLabels']['get'](_0x2a4e4d['name'])),_0x311b90?_0x311b90(_0x550816):0x1!==_0x550816?_0x550816+'\x20'+_0x2a4e4d['name']+'s':''+_0x2a4e4d['name'];}['_addDescriptionItems'](_0x52006f,_0x30ce9d){const _0xce889a=_0x30ce9d['getFirstRange']()['getWalker'](),_0x4df763='insertion'==_0x30ce9d['type']?'add':'remove';for(const _0x10773 of _0xce889a){const _0x5cd833=_0x10773['item'],_0x37e2a4=_0x52006f[_0x52006f['length']-0x1];if(_0x5cd833['is']('$textProxy'))_0x37e2a4&&_0x37e2a4['type']['indexOf']('Container')>-0x1&&_0x52006f['pop'](),_0x37e2a4&&'text'==_0x37e2a4['type']?_0x37e2a4[_0x4df763]+=_0x5cd833['data']:_0x52006f['push']({'type':'text','add':'add'==_0x4df763?_0x5cd833['data']:'','remove':'remove'==_0x4df763?_0x5cd833['data']:''});else{if(this['_schema']['isObject'](_0x5cd833)){const _0x3a4271=_0x5cd833;if(_0x37e2a4&&_0x37e2a4['type']['indexOf']('Container')>-0x1&&_0x52006f['pop'](),'elementEnd'==_0x10773['type'])continue;_0x37e2a4&&_0x37e2a4['type']==_0x4df763+'Object'&&_0x37e2a4['element']['name']==_0x3a4271['name']?_0x37e2a4['quantity']++:_0x52006f['push']({'type':_0x4df763+'Object','element':_0x3a4271,'quantity':0x1}),_0xce889a['skip'](_0x2ca6d3=>!('elementEnd'==_0x2ca6d3['type']&&_0x2ca6d3['item']==_0x5cd833));}else{if(this['_schema']['checkChild'](_0x5cd833,'$text')||_0x5cd833['is']('element','softBreak')){const _0x1dae86=_0x5cd833;if('add'==_0x4df763&&'elementStart'==_0x10773['type']||'remove'==_0x4df763&&'elementEnd'==_0x10773['type'])continue;if(_0x37e2a4&&-0x1==_0x37e2a4['type']['indexOf']('Container')){'text'==_0x37e2a4['type']&&(_0x37e2a4[_0x4df763]+='\x0a');continue;}let _0x11cbad;if(_0x11cbad='add'==_0x4df763?_0x1dae86['nextSibling']&&!this['_schema']['isObject'](_0x1dae86['nextSibling'])?_0x1dae86['nextSibling']:null:_0x1dae86['previousSibling']&&!this['_schema']['isObject'](_0x1dae86['previousSibling'])?_0x1dae86['previousSibling']:null,_0x1dae86['isEmpty']||_0x11cbad&&_0x11cbad['isEmpty']){const _0x121036=_0x11cbad&&_0x11cbad['isEmpty']?_0x11cbad:_0x1dae86;_0x37e2a4&&_0x37e2a4['type']==_0x4df763+'EmptyContainer'&&_0x37e2a4['element']['name']==_0x121036['name']?_0x37e2a4['quantity']++:_0x52006f['push']({'type':_0x4df763+'EmptyContainer','element':_0x121036,'quantity':0x1});}else _0x52006f['push']({'type':_0x4df763+'Container','element':_0x1dae86});}}}}}['_resolveDescriptionItems'](_0x446a96){const _0x3903ca=this['_locale'],_0x348bcd=[],_0x10a497=[],_0x33dedb=[];for(const _0x53079c of _0x446a96)switch(_0x53079c['type']){case'text':if(_0x53079c['add']=_0x53079c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x53079c['remove']=_0x53079c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x53079c['add']&&''!=_0x53079c['remove']){_0x348bcd['push']({'type':'replace','content':o(_0x3903ca,'REPLACE_TEXT',['\x22'+_0x53079c['remove']+'\x22','\x22'+_0x53079c['add']+'\x22'])});continue;}if(null!=_0x53079c['add']['match'](/^ +$/)){_0x348bcd['push']({'type':'insertion','content':o(_0x3903ca,'*Insert:*\x20%0',o(_0x3903ca,'ELEMENT_SPACE',_0x53079c['add']['length']))});continue;}if(null!=_0x53079c['remove']['match'](/^ +$/)){_0x348bcd['push']({'type':'deletion','content':o(_0x3903ca,'*Remove:*\x20%0',o(_0x3903ca,'ELEMENT_SPACE',_0x53079c['remove']['length']))});continue;}if(''!=_0x53079c['add']){_0x348bcd['push']({'type':'insertion','content':o(_0x3903ca,'*Insert:*\x20%0','\x22'+_0x53079c['add']+'\x22')});continue;}_0x348bcd['push']({'type':'deletion','content':o(_0x3903ca,'*Remove:*\x20%0','\x22'+_0x53079c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x348bcd['push']({'type':'insertion','content':o(_0x3903ca,'*Insert:*\x20%0',this['getItemLabel'](_0x53079c['element'],_0x53079c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x348bcd['push']({'type':'deletion','content':o(_0x3903ca,'*Remove:*\x20%0',this['getItemLabel'](_0x53079c['element'],_0x53079c['quantity']))});continue;case'addContainer':_0x348bcd['push']({'type':'insertion','content':o(_0x3903ca,'*Split:*\x20%0',this['getItemLabel'](_0x53079c['element'],_0x53079c['quantity']))});continue;case'removeContainer':_0x348bcd['push']({'type':'deletion','content':o(_0x3903ca,'*Merge:*\x20%0',this['getItemLabel'](_0x53079c['element'],_0x53079c['quantity']))});continue;case'addFormat':_0x10a497['push'](_0x53079c['key']);continue;case'removeFormat':_0x33dedb['push'](_0x53079c['key']);continue;default:_0x348bcd['push'](_0x53079c);}if(_0x10a497['length']){const _0x55d53a=_0x10a497['map'](_0xc02a91=>this['_attributeLabels']['has'](_0xc02a91)?this['_attributeLabels']['get'](_0xc02a91):_0xc02a91)['join'](',\x20');_0x348bcd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x55d53a)});}if(_0x33dedb['length']){const _0x39ef9e=_0x33dedb['map'](_0x417317=>this['_attributeLabels']['has'](_0x417317)?this['_attributeLabels']['get'](_0x417317):_0x417317)['join'](',\x20');_0x348bcd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x39ef9e)});}return _0x348bcd;}['_handleCustomCallbackDescription'](_0xab2da0){for(const _0x2ec1f4 of this['_customCallbacks']){const _0x5ba373=_0x2ec1f4(_0xab2da0);if(_0x5ba373&&'type'in _0x5ba373)return _0x5ba373;}}['_handleAttributeSuggestionDescription'](_0x2b1fae,_0x1fa756){const _0x12256b=_0x1fa756['data'],_0x40daee=void 0x0===_0x12256b['newValue']?'removeFormat':'addFormat';_0x2b1fae['push']({'type':_0x40daee,'key':_0x12256b['key']});}['_handleRenameSuggestionDescription'](_0x5d07b4,_0x3367b9){_0x5d07b4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3367b9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10caf4,_0xd0deff,_0x46aff3){if(this['_addDescriptionItems'](_0x10caf4,_0xd0deff),_0x46aff3&&_0x46aff3['getFirstRange']()&&!_0xd0deff['getFirstRange']()['end']['isEqual'](_0x46aff3['getFirstRange']()['start'])){const _0x4d0732=_0x10caf4[_0x10caf4['length']-0x1],_0x4694ce='insertion'==_0xd0deff['type']?'add':'remove';_0x4d0732&&'text'==_0x4d0732['type']&&(_0x4d0732[_0x4694ce]+='\x0a');}}}class V extends _0x8cf398{['afterInit'](){const _0x17863a=this['editor'],_0x32c4d=_0x17863a['plugins']['get']('TrackChangesEditing');_0x17863a['commands']['get']('showAIAssistant')&&_0x32c4d['enableCommand']('showAIAssistant');}}class U extends _0x8cf398{['afterInit'](){const _0x2067ba=this['editor'],_0x561d8e=_0x2067ba['locale'];if(!_0x2067ba['plugins']['has']('AlignmentEditing'))return;const _0x51956c=_0x2067ba['plugins']['get']('TrackChangesEditing');_0x51956c['enableDefaultAttributesIntegration']('alignment'),_0x51956c['registerBlockAttribute']('alignment'),_0x51956c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x561d8e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d2df5=this['editor'],_0x6e46d1=_0x5d2df5['locale'];_0x5d2df5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e53b9=>{if('formatBlock'!=_0x5e53b9['type'])return;const {data:_0x228ff1}=_0x5e53b9;if(_0x228ff1&&'alignment'==_0x228ff1['commandName']){const _0x137610=_0x228ff1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x6e46d1,'*Format:*\x20%0',function(_0x4c4842){switch(_0x4c4842){case'left':return o(_0x6e46d1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x6e46d1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x6e46d1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x6e46d1,'FORMAT_JUSTIFY_TEXT');}}(_0x137610))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x8cf398{['afterInit'](){const _0xd52bb5=this['editor'],_0x3bd18b=_0xd52bb5['plugins']['get']('TrackChangesEditing'),_0x3ae3c9=_0xd52bb5['locale'];for(const _0x1e5895 of ti){if(!_0xd52bb5['plugins']['has'](_0x1e5895))continue;const _0x1b5d33=_0x1e5895['slice'](0x0,-0x7)['toLowerCase'](),_0x60416d='FORMAT_'+_0x1b5d33['toUpperCase']();_0x3bd18b['enableDefaultAttributesIntegration'](_0x1b5d33),_0x3bd18b['registerInlineAttribute'](_0x1b5d33),_0x3bd18b['descriptionFactory']['registerAttributeLabel'](_0x1b5d33,o(_0x3ae3c9,_0x60416d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b482a=this['editor'],_0x5aaa24=_0x3b482a['locale'],_0x2a58a1=_0x3b482a['plugins']['get']('TrackChangesEditing');function _0x12c023(_0x2392d3,_0xc79e40){_0x2a58a1['descriptionFactory']['registerDescriptionCallback'](_0x28e5d3=>{if('formatInline'!=_0x28e5d3['type'])return;const {data:_0x7d6220}=_0x28e5d3;return _0x7d6220&&_0x7d6220['commandName']===_0x2392d3?_0x7d6220['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5aaa24,'*Format:*\x20%0',_0xc79e40)}:{'type':'format','content':o(_0x5aaa24,'*Remove\x20format:*\x20%0',_0xc79e40)}:void 0x0;});}_0x12c023('bold',o(_0x5aaa24,'FORMAT_BOLD')),_0x12c023('italic',o(_0x5aaa24,'FORMAT_ITALIC')),_0x12c023('underline',o(_0x5aaa24,'FORMAT_UNDERLINE')),_0x12c023('code',o(_0x5aaa24,'FORMAT_CODE')),_0x12c023('strikethrough',o(_0x5aaa24,'FORMAT_STRIKETHROUGH')),_0x12c023('subscript',o(_0x5aaa24,'FORMAT_SUBSCRIPT')),_0x12c023('superscript',o(_0x5aaa24,'FORMAT_SUPERSCRIPT'));}}class F extends _0x8cf398{['afterInit'](){const _0x59cdc2=this['editor'],_0x432bec=_0x59cdc2['locale'];if(!_0x59cdc2['plugins']['has']('BlockQuoteEditing'))return;const _0x417016=_0x59cdc2['plugins']['get']('TrackChangesEditing'),_0x2e6e20=this['editor']['commands']['get']('blockQuote');_0x417016['enableCommand']('blockQuote',(_0x5af077,_0x2f37bb={})=>{const _0xefc267=this['editor']['model']['document']['selection'],_0x33b58f=_0x2f37bb&&void 0x0!==_0x2f37bb['forceValue']?_0x2f37bb['forceValue']:!_0x2e6e20['value'];let _0x161724=[];if(_0x33b58f){const _0x35bbf0=Array['from'](_0xefc267['getSelectedBlocks']())['filter'](_0x234c38=>oo(_0x234c38)||function(_0x55c011,_0x337336){const _0x2710f9=_0x337336['checkChild'](_0x55c011['parent'],'blockQuote'),_0x2d7414=_0x337336['checkChild'](['$root','blockQuote'],_0x55c011);return _0x2710f9&&_0x2d7414;}(_0x234c38,this['editor']['model']['schema']));_0x161724=to(_0x35bbf0,_0x59cdc2['model']);}else{const _0x2b17f3=Array['from'](_0xefc267['getSelectedBlocks']())['filter'](_0x543493=>oo(_0x543493));_0x161724=to(_0x2b17f3,_0x59cdc2['model']);}_0x59cdc2['model']['change'](()=>{for(const _0x5049b7 of _0x161724)_0x417016['markBlockFormat'](_0x5049b7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x33b58f}]});});}),_0x417016['descriptionFactory']['registerDescriptionCallback'](_0x275e9a=>{const {data:_0x39231b}=_0x275e9a;if(_0x39231b&&'blockQuote'==_0x39231b['commandName']){const _0x290c10=o(_0x432bec,'ELEMENT_BLOCK_QUOTE');return _0x39231b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x432bec,'*Set\x20format:*\x20%0',_0x290c10)}:{'type':'format','content':o(_0x432bec,'*Remove\x20format:*\x20%0',_0x290c10)};}});}}function oo(_0x1fb2eb){return'blockQuote'==_0x1fb2eb['parent']['name'];}class L extends _0x8cf398{['afterInit'](){const _0x32ab1d=this['editor'];_0x32ab1d['plugins']['has']('CaseChange')&&(_0x32ab1d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x32ab1d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x32ab1d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x8cf398{['afterInit'](){const _0x29b1f4=this['editor'];_0x29b1f4['commands']['get']('ckbox')&&_0x29b1f4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x8cf398{['afterInit'](){const _0x4d378d=this['editor'];if(!_0x4d378d['plugins']['has']('CodeBlock'))return;const _0x2f63ab=_0x4d378d['plugins']['get']('TrackChangesEditing'),_0x33d71e=_0x4d378d['locale'],_0x214b69=_0x4d378d['config']['get']('codeBlock')['languages'],_0x1a021c=_0x4d378d['commands']['get']('codeBlock');_0x2f63ab['enableCommand']('indentCodeBlock'),_0x2f63ab['enableCommand']('outdentCodeBlock'),_0x2f63ab['enableCommand']('codeBlock',(_0x54e484,_0x5acecb={})=>{const _0x393a41=_0x4d378d['model'],_0x64d2d3=_0x4d378d['model']['document']['selection'],_0x3bf1ae=_0x5acecb&&void 0x0!==_0x5acecb['forceValue']?_0x5acecb['forceValue']:!_0x1a021c['value'];let _0x166d96;_0x5acecb['language']||(_0x5acecb['language']=_0x214b69[0x0]['language']),_0x166d96=_0x3bf1ae?Array['from'](_0x64d2d3['getSelectedBlocks']())['filter'](_0x1d3ee3=>eo(_0x1d3ee3)||function(_0x5b0ede,_0xc2119b){if(_0x5b0ede['is']('rootElement')||_0xc2119b['isLimit'](_0x5b0ede))return!0x1;return _0xc2119b['checkChild'](_0x5b0ede['parent'],'codeBlock');}(_0x1d3ee3,_0x393a41['schema'])):Array['from'](_0x64d2d3['getSelectedBlocks']())['filter'](_0x3db308=>eo(_0x3db308));const _0x31fbd3=to(_0x166d96,_0x393a41);_0x393a41['change'](()=>{for(const _0x59cd51 of _0x31fbd3)_0x2f63ab['markBlockFormat'](_0x59cd51,{'commandName':'codeBlock','commandParams':[{..._0x5acecb,'forceValue':_0x3bf1ae}],'formatGroupId':'blockName'});});}),(_0x2f63ab['descriptionFactory']['registerElementLabel']('codeBlock',_0x250d36=>o(_0x33d71e,'ELEMENT_CODE_BLOCK',_0x250d36)),_0x2f63ab['descriptionFactory']['registerDescriptionCallback'](_0x49dd1d=>{if('formatBlock'!=_0x49dd1d['type'])return;const _0x530f8b=_0x33d71e['t'],{data:_0x3563bf}=_0x49dd1d;if(!_0x3563bf||'codeBlock'!=_0x3563bf['commandName'])return;const _0x428c80=_0x3563bf['commandParams'][0x0]['language'],_0x24f6bc=_0x530f8b(_0x214b69['find'](_0x5ae6bb=>_0x5ae6bb['language']===_0x428c80)['label'])['toLowerCase']();return _0x3563bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33d71e,'*Set\x20format:*\x20%0',o(_0x33d71e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x24f6bc+')')}:{'type':'format','content':o(_0x33d71e,'*Remove\x20format:*\x20%0',o(_0x33d71e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x536849){return'codeBlock'==_0x536849['name'];}class q extends _0x8cf398{['afterInit'](){const _0x253671=this['editor'];if(!_0x253671['plugins']['has']('CommentsEditing'))return;_0x253671['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x34e238,_0x51e64b,_0xc29502){const _0x43f11a=[];for(const _0x142e5d of _0x51e64b['getItems']())_0x142e5d['hasAttribute'](_0x34e238)&&_0x43f11a['push'](_0xc29502['createRangeOn'](_0x142e5d));return _0x43f11a;}function _e(_0x58f217,_0x129658,{showActiveMarker:_0x2b5f95=!0x0}={}){const _0x2c9981=_0x58f217['plugins']['get']('TrackChangesEditing');return(_0xfaf023,_0x5a7df3,_0xab2670)=>{if(!_0xab2670['consumable']['test'](_0x5a7df3['markerRange'],_0xfaf023['name']))return;const _0x59a67f=_0x5a7df3['markerRange']['getWalker'](),_0x2a561b=_0x5a7df3['markerRange']['start'],_0x5e5cc4=_0x58f217['model']['schema'];let _0x1ddc8a=null,_0x5908f7=null,_0x4b9d20=!0x1,_0x3674ab=!0x1;for(const _0x442fdc of _0x59a67f){const _0x5b2472=_0x442fdc['item'];_0x4b9d20=_0x4b9d20||_0x5e5cc4['isContent'](_0x5b2472);const _0x530e41=_0xab2670['mapper']['toViewElement'](_0x5b2472);if(_0x530e41&&_0x530e41['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x442fdc['type']&&(_0x5e5cc4['isBlock'](_0x5b2472)&&!_0x5e5cc4['isLimit'](_0x5b2472)&&(_0x5b2472['nextSibling']||_0x2a561b['isAtEnd']?_0x1ddc8a&&_0x1ddc8a['parent']==_0x5b2472||(_0x1ddc8a=_0x5b2472,_0xfc0758(_0x442fdc['previousPosition']),_0x3674ab=!0x0):_0x5908f7=_0x5908f7||_0x442fdc['previousPosition']));}function _0xfc0758(_0x141ffe){const {authorId:_0x371ab0}=_0x2c9981['_splitMarkerName'](_0x5a7df3['markerName']),_0x77aef9=_0xab2670['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x129658,'data-author-id':_0x371ab0}),_0x232f87=_0xab2670['mapper']['toViewPosition'](_0x141ffe);_0x2b5f95&&_0x2c9981['activeMarkers']['includes'](_0x5a7df3['markerName'])&&_0xab2670['writer']['addClass']('ck-suggestion-marker--active',_0x77aef9),_0xab2670['writer']['insert'](_0x232f87,_0x77aef9),_0xab2670['mapper']['bindElementToMarker'](_0x77aef9,_0x5a7df3['markerName']);}_0x4b9d20||_0x3674ab||!_0x5908f7||_0xfc0758(_0x5908f7);};}class z extends _0x8cf398{static get['requires'](){return[_0xf7d505];}['init'](){const _0x64b2ab=this['editor'],_0x571648=_0x64b2ab['plugins']['get']('TrackChangesEditing');_0x571648['enableCommand']('delete');const _0x24f4ad=_0x64b2ab['commands']['get']('deleteForward');_0x571648['enableCommand']('deleteForward',(_0x27e0e8,_0xa7e300={})=>{const _0x7375f4=_0x64b2ab['model']['createSelection'](_0x64b2ab['model']['document']['selection']);_0x7375f4['isCollapsed']&&_0x64b2ab['model']['modifySelection'](_0x7375f4,{'direction':'forward','unit':_0xa7e300['unit']});const _0x79105e=_0x7375f4['getFirstRange'](),_0x398b37=_0x142937['fromRange'](_0x79105e);let _0x4b0219;_0x27e0e8(_0xa7e300),_0x4b0219='$graveyard'==_0x398b37['root']['rootName']?_0x64b2ab['model']['createRange'](_0x79105e['start']):_0x64b2ab['model']['createRange'](_0x398b37['start'],_0x398b37['end']),_0x398b37['detach'](),_0x64b2ab['model']['enqueueChange'](_0x24f4ad['buffer']['batch'],_0x46f803=>{_0x24f4ad['buffer']['lock'](),_0x46f803['setSelection'](_0x46f803['createRange'](_0x4b0219['end'])),_0x24f4ad['buffer']['unlock']();});}),_0x64b2ab['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x64b2ab,'merge'),{'priority':'high'}),_0x64b2ab['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xe659f0,_0x57f164,_0x176007)=>{_0x176007['options']['showSuggestionHighlights']&&_e(_0x64b2ab,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xe659f0,_0x57f164,_0x176007);},{'priority':'high'}),_0x64b2ab['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2a2f6d,_0x2be4e2,_0x1298f7)=>{const _0x1fa45c=_0x1298f7['mapper']['markerNameToElements'](_0x2be4e2['markerName']);if(_0x1fa45c){for(const _0x4e2972 of _0x1fa45c)_0x4e2972['is']('uiElement')&&(_0x1298f7['mapper']['unbindElementFromMarkerName'](_0x4e2972,_0x2be4e2['markerName']),_0x1298f7['writer']['remove'](_0x4e2972));}},{'priority':'high'});}}class K extends _0x8cf398{['afterInit'](){const _0x4f7500=this['editor'];if(!_0x4f7500['plugins']['has']('ListEditing'))return;const _0x49d80b=_0x4f7500['locale'],_0x312557=_0x4f7500['plugins']['get']('TrackChangesEditing'),_0xd53813=_0x4f7500['plugins']['has']('TodoListEditing'),_0x339ba9=!!_0x4f7500['config']['get']('list.multiBlock');function _0x50f8e6(_0x3dc547){return{'type':'format','content':''+o(_0x49d80b,'*Set\x20format:*\x20%0',_0x3dc547)};}function _0x332308(_0x507ffc){return{'type':'format','content':''+o(_0x49d80b,'*Remove\x20format:*\x20%0',_0x507ffc)};}_0x312557['enableDefaultAttributesIntegration']('numberedList'),_0x312557['enableDefaultAttributesIntegration']('bulletedList'),_0x312557['enableDefaultAttributesIntegration']('customNumberedList'),_0x312557['enableDefaultAttributesIntegration']('customBulletedList'),_0x312557['enableDefaultAttributesIntegration']('indentList'),_0x312557['enableDefaultAttributesIntegration']('outdentList'),_0x312557['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x312557['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x312557['registerBlockAttribute']('listItemId'),_0x312557['registerBlockAttribute']('listType'),_0x312557['registerBlockAttribute']('listIndent'),_0x339ba9&&(_0x312557['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x312557['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xd53813&&(_0x312557['enableDefaultAttributesIntegration']('todoList'),_0x312557['enableDefaultAttributesIntegration']('checkTodoList'),_0x312557['registerBlockAttribute']('todoListChecked'),_0x312557['descriptionFactory']['registerDescriptionCallback'](_0x5aa955=>{const {data:_0xb0a1f2}=_0x5aa955;if(_0xb0a1f2&&'todoListChecked'==_0xb0a1f2['key'])return{'type':'format','content':_0xb0a1f2['newValue']?o(_0x49d80b,'*Check\x20item*'):o(_0x49d80b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f4c41=>{if(_0x3f4c41['batch']['isUndo'])return!0x1;let _0x32dc6b=!0x1;const _0x12894a=_0x312557['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40ffe9=>'todoListChecked'===_0x312557['_getAttributeKey'](_0x40ffe9));for(const _0x3cc92a of _0x12894a){'todo'!=_0x3cc92a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x312557['_findSuggestions'](_0x3cc92a['getFirstRange'](),'attribute')['find'](_0x72a95e=>'listType'===_0x312557['_getAttributeKey'](_0x72a95e['suggestion']))||(_0x3f4c41['removeMarker'](_0x3cc92a['getFirstMarker']()),_0x32dc6b=!0x0));}return _0x32dc6b;})),_0x312557['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x49d80b,'FORMAT_INDENT'));const _0x1d9919={'type':'format','content':''};_0x312557['descriptionFactory']['registerDescriptionCallback'](_0x8f0a3a=>{const {data:_0x46f145}=_0x8f0a3a;if(!_0x46f145||'listType'!=_0x46f145['key'])return;let _0x263e0c=_0x8f0a3a['head'];for(;_0x263e0c;){if(_0x263e0c['data']&&(('listStyle'==_0x263e0c['data']['key']||'listMarkerStyle'==_0x263e0c['data']['key'])&&(_0x263e0c['data']['newValue']&&'default'!=_0x263e0c['data']['newValue']||'default'!=_0x263e0c['data']['oldValue']&&!_0x46f145['newValue'])||!_0x339ba9&&_0x263e0c['data']['key']==m))return _0x1d9919;_0x263e0c=_0x263e0c['next'];}if(null==_0x46f145['newValue'])switch(_0x46f145['oldValue']){case'bulleted':return _0x332308(o(_0x49d80b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x332308(o(_0x49d80b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x332308(o(_0x49d80b,'ELEMENT_TODO_LIST'));}switch(_0x46f145['newValue']){case'bulleted':return _0x50f8e6(o(_0x49d80b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50f8e6(o(_0x49d80b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50f8e6(o(_0x49d80b,'ELEMENT_TODO_LIST'));}}),_0x312557['descriptionFactory']['registerDescriptionCallback'](_0x206a75=>{const {data:_0x21928b}=_0x206a75;if(_0x21928b&&'listIndent'==_0x21928b['key'])return null==_0x21928b['newValue']||null==_0x21928b['oldValue']&&0x0==_0x21928b['newValue']?_0x1d9919:void 0x0;}),_0x312557['descriptionFactory']['registerDescriptionCallback'](_0x7b2c47=>{if('attribute'!=_0x7b2c47['type'])return;const {data:_0x4486f5}=_0x7b2c47;if(!_0x4486f5||'listItemId'!=_0x4486f5['key'])return;const _0x1b4783=Ee(_0x7b2c47);return'newValue'==_0x1b4783?{'type':'format','content':o(_0x49d80b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1b4783?{'type':'format','content':o(_0x49d80b,'*Split:*\x20list\x20item')}:_0x1d9919;}),_0x4f7500['model']['document']['registerPostFixer'](_0x59e9e8=>this['listItemIdFixer'](_0x59e9e8)),_0x4f7500['model']['document']['registerPostFixer'](_0x52c7d1=>this['noTrackChangesFixer'](_0x52c7d1)),_0x4f7500['model']['document']['on']('change:data',(_0x9f0f5c,_0x1dfa60)=>{if(_0x1dfa60['isUndo']||!_0x1dfa60['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x570ac9){if(_0x570ac9['batch']['isUndo']||!_0x570ac9['batch']['isLocal'])return!0x1;let _0x42b38a=!0x1;const _0xd71aaf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x394d57=>_0x394d57['data']&&'listItemId'==_0x394d57['data']['key'])['filter'](_0x39d18f=>_0x39d18f['data']['newValue']&&_0x39d18f['data']['oldValue']);for(const _0x3cd5e4 of _0xd71aaf)Ee(_0x3cd5e4)||(_0x570ac9['removeMarker'](_0x3cd5e4['getFirstMarker']()),_0x42b38a=!0x0);return _0x42b38a;}['noTrackChangesFixer'](_0x335c9c){if(_0x335c9c['batch']['isUndo']||!_0x335c9c['batch']['isLocal'])return!0x1;const _0x26bf84=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x26bf84['trackChangesCommand']['value'])return!0x1;let _0x52a685=!0x1;const _0x27d610=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ea09a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x223d03=>'attribute'==_0x223d03['type'])['filter'](_0xd0f624=>_0x27d610['includes'](_0xd0f624['attributeKey']));if(0x0==_0x3ea09a['length'])return _0x52a685;for(const _0x4dc07a of _0x3ea09a){const _0x129792=_0x26bf84['_findSuggestions'](_0x4dc07a['range'],'attribute')['filter'](_0x4adeba=>!_0x4adeba['meta']['isNextTo'])['map'](_0x49b2cd=>_0x49b2cd['suggestion'])['filter'](_0x47c5a7=>{const _0x29ae08=_0x26bf84['_getAttributeKey'](_0x47c5a7);return _0x27d610['includes'](_0x29ae08);});if(_0x129792['length']){for(const _0x32c674 of _0x129792)_0x335c9c['removeMarker'](_0x32c674['getFirstMarker']());_0x52a685=!0x0;}}return _0x52a685;}['assureChains'](){const _0x18866f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42a9e9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x405a2d;const _0x59aab3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5851df=>{if(_0x5851df['data']['oldRange']||!_0x5851df['data']['newRange'])return null;if(!_0x5851df['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x40c254}=_0x18866f['_splitMarkerName'](_0x5851df['name']);if(!_0x18866f['hasSuggestion'](_0x40c254))return null;const _0x35e336=_0x18866f['getSuggestion'](_0x40c254);return _0x42a9e9['includes'](_0x35e336['data']['key']);})['map'](_0x371c54=>{const {id:_0x9faf1e}=_0x18866f['_splitMarkerName'](_0x371c54['name']),_0x25acb6=_0x18866f['getSuggestion'](_0x9faf1e);return _0x405a2d=_0x25acb6['attributes']['groupId'],_0x25acb6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x59aab3['size'])return;const _0x4cf900=_0x18866f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f75a5=>'attribute'==_0x3f75a5['type']&&_0x3f75a5['data']&&_0x42a9e9['includes'](_0x3f75a5['data']['key'])&&_0x3f75a5['attributes']['groupId']!=_0x405a2d)['map'](_0x31c0a4=>({'listItem':_0x31c0a4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x31c0a4['attributes']['groupId']})),_0x293e30=new Set();for(const {groupId:_0x48896d,listItem:_0x2e9ee3}of _0x4cf900)_0x59aab3['has'](_0x2e9ee3)&&_0x293e30['add'](_0x48896d);for(const _0x4a6898 of _0x18866f['getSuggestions']())_0x293e30['has'](_0x4a6898['attributes']['groupId'])&&_0x4a6898['setAttribute']('groupId',_0x405a2d);}['_supportLegacySuggestions'](){const _0x15b0fe=this['editor'],_0x10cefd=_0x15b0fe['locale'],_0x260c62=_0x15b0fe['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x260c62['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x48e400,_0x3d2aeb){const _0x4fcdd9=[];for(let _0x2bb258 of _0x48e400)_0x2bb258['start']['nodeAfter']===_0x2bb258['end']['parent']&&(_0x2bb258=_0x15b0fe['model']['createRange'](_0x15b0fe['model']['createPositionAt'](_0x2bb258['start']['nodeAfter'],0x0))),_0x4fcdd9['push'](_0x2bb258);_0x15b0fe['model']['change'](_0x3343be=>{const _0x66d138=_0x15b0fe['model']['document']['selection'],_0x2a38ff=Array['from'](_0x66d138['getRanges']())['map'](_0x110b55=>_0x142937['fromRange'](_0x110b55));_0x3343be['setSelection'](_0x4fcdd9),_0x15b0fe['commands']['get'](_0x3d2aeb['commandName'])['refresh'](),_0x3d2aeb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x15b0fe['execute'](_0x3d2aeb['commandName'],..._0x3d2aeb['commandParams']),_0x3343be['setSelection'](_0x2a38ff);for(const _0x54b833 of _0x2a38ff)_0x54b833['detach']();});}),_0x260c62['descriptionFactory']['registerElementLabel'](function(_0x4c2aa2){const _0x5cbb70=!_0x15b0fe['model']['schema']['isObject'](_0x4c2aa2),_0x218809=_0x4c2aa2['previousSibling'],_0x5bc3ca=_0x4c2aa2['nextSibling'],_0x2f858e=_0x4c2aa2['getAttribute']('listItemId'),_0xf32c93=!_0x218809||_0x218809['getAttribute']('listItemId')!==_0x2f858e,_0x467300=!_0x5bc3ca||_0x5bc3ca['getAttribute']('listItemId')!==_0x2f858e;return _0x5cbb70&&Boolean(_0x2f858e)&&_0xf32c93&&_0x467300;},_0x50ca1d=>o(_0x10cefd,'ELEMENT_LIST_ITEM',_0x50ca1d));}['_registerLegacyDescription'](){const _0x1cfdf9=this['editor'],_0x4c6acf=_0x1cfdf9['locale'];function _0x11473c(_0x57dc9e){const _0x2cb0c3=_0x1cfdf9['commands']['get']('bulletedList')['value'],_0xc34577=_0x1cfdf9['commands']['get']('numberedList')['value'];return'numberedList'===_0x57dc9e?_0x2cb0c3:_0xc34577;}_0x1cfdf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x50f711){if('formatBlock'!=_0x50f711['type'])return;const {data:_0x3e9fb4}=_0x50f711;if(!_0x3e9fb4)return;let _0x1b056a,_0x3e1c55,_0x567dbc,_0x4406ca;switch(_0x3e9fb4['commandName']){case'bulletedList':_0x567dbc=_0x3e9fb4['commandParams'][0x0]['forceValue'],_0x4406ca=_0x11473c(_0x3e9fb4['commandName']),_0x1b056a=_0x567dbc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4406ca&&_0x1cfdf9['config']['get']('list.multiBlock')||(_0x1b056a='*Change\x20to:*\x20%0'),_0x3e1c55={'type':'format','content':o(_0x4c6acf,_0x1b056a,o(_0x4c6acf,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x567dbc=_0x3e9fb4['commandParams'][0x0]['forceValue'],_0x4406ca=_0x11473c(_0x3e9fb4['commandName']),_0x1b056a=_0x567dbc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4406ca&&_0x1cfdf9['config']['get']('list.multiBlock')||(_0x1b056a='*Change\x20to:*\x20%0'),_0x3e1c55={'type':'format','content':o(_0x4c6acf,_0x1b056a,o(_0x4c6acf,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b056a='*Indent:*\x20%0',_0x3e1c55={'type':'format','content':o(_0x4c6acf,_0x1b056a,o(_0x4c6acf,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b056a=function(_0x288668){const _0x486a70=_0x288668['getFirstRange']();let _0x246936=_0x486a70['start']['nodeAfter'];for(;_0x246936&&_0x486a70['containsItem'](_0x246936);){if(_0x246936['getAttribute']('listIndent')>0x0)return!0x1;_0x246936=_0x246936['nextSibling'];}return!0x0;}(_0x50f711)?o(_0x4c6acf,'*Format:*\x20remove\x20from\x20%0',o(_0x4c6acf,function(_0x3d6f5a){return'ELEMENT_'+_0x3d6f5a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x50f711))):o(_0x4c6acf,'*Outdent:*\x20%0',o(_0x4c6acf,'ELEMENT_LIST_ITEM')),_0x3e1c55={'type':'format','content':_0x1b056a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3e9fb4['multipleBlocks']&&(_0x1b056a='*Merge:*\x20%0',_0x3e1c55={'type':'deletion','content':o(_0x4c6acf,_0x1b056a,o(_0x4c6acf,'ELEMENT_LIST_ITEM'))});}return _0x3e1c55;});}}function Ee(_0x5cf992){let _0x3ee48c=_0x5cf992['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ee48c;){const _0x197961=_0x3ee48c['getAttribute']('listItemId');if(!_0x197961)return!0x1;if(_0x197961==_0x5cf992['data']['newValue'])return'newValue';if(_0x197961==_0x5cf992['data']['oldValue'])return'oldValue';_0x3ee48c=_0x3ee48c['previousSibling'];}return!0x1;}class pe extends _0x8cf398{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5c2fe8=this['editor']['config']['get']('list.properties'),_0xfd96a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c2fe8['styles']&&(_0xfd96a9['enableDefaultAttributesIntegration']('listStyle'),_0xfd96a9['registerBlockAttribute']('listStyle')),_0x5c2fe8['reversed']&&(_0xfd96a9['enableDefaultAttributesIntegration']('listReversed'),_0xfd96a9['registerBlockAttribute']('listReversed')),_0x5c2fe8['startIndex']&&(_0xfd96a9['enableDefaultAttributesIntegration']('listStart'),_0xfd96a9['registerBlockAttribute']('listStart'));const _0x2405d2={'type':'format','content':''};_0xfd96a9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x238132=this['editor']['locale'];_0xfd96a9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x238132,'FORMAT_LIST_REVERSED')),_0xfd96a9['descriptionFactory']['registerDescriptionCallback'](_0x3e907c=>{const {data:_0x101622}=_0x3e907c;if(_0x101622&&'listReversed'==_0x101622['key'])return null==_0x101622['newValue']||0x0==_0x101622['newValue']&&null==_0x101622['oldValue']?_0x2405d2:void 0x0;}),_0xfd96a9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x238132,'FORMAT_LIST_START')),_0xfd96a9['descriptionFactory']['registerDescriptionCallback'](_0x5317b3=>{const {data:_0x890d17}=_0x5317b3;if(_0x890d17&&'listStart'==_0x890d17['key'])return null==_0x890d17['newValue']||0x1==_0x890d17['newValue']&&null==_0x890d17['oldValue']?_0x2405d2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x428b59=>{if(_0x428b59['batch']['isUndo'])return!0x1;let _0x190028=!0x1;const _0x3f8f04=_0xfd96a9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54c93a=>{const _0x4f2680=_0xfd96a9['_getAttributeKey'](_0x54c93a);return'listStart'==_0x4f2680||'listReversed'==_0x4f2680;});for(const _0x4331bd of _0x3f8f04){const _0x135767=_0x4331bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x135767||'customNumbered'==_0x135767)continue;_0xfd96a9['_findSuggestions'](_0x4331bd['getFirstRange'](),'attribute')['find'](_0x407070=>'listType'==_0xfd96a9['_getAttributeKey'](_0x407070['suggestion']))||(_0x428b59['removeMarker'](_0x4331bd['getFirstMarker']()),_0x190028=!0x0);}return _0x190028;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x56a98b){const _0x4f8cf1=this['editor']['locale'],{data:_0x3b13cc}=_0x56a98b,_0x107589={'type':'format','content':''};if(!_0x3b13cc||'listStyle'!=_0x3b13cc['key'])return;if(!_0x3b13cc['oldValue'])return'default'==_0x3b13cc['newValue']?_0x107589:{'type':'format','content':''+o(_0x4f8cf1,'*Set\x20format:*\x20%0',o(_0x4f8cf1,this['_getTranslationKeyForListStyle'](_0x3b13cc['newValue'])))};if(!_0x3b13cc['newValue']){if('default'==_0x3b13cc['oldValue'])return _0x107589;let _0xaa82c7=_0x56a98b['head'];for(;_0xaa82c7;){if(_0xaa82c7['data']&&'listType'==_0xaa82c7['data']['key']&&_0xaa82c7['data']['newValue'])return _0x107589;_0xaa82c7=_0xaa82c7['next'];}return{'type':'format','content':''+o(_0x4f8cf1,'*Remove\x20format:*\x20%0',o(_0x4f8cf1,this['_getTranslationKeyForListStyle'](_0x3b13cc['oldValue'])))};}if('default'!=_0x3b13cc['newValue'])return{'type':'format','content':''+o(_0x4f8cf1,'*Set\x20format:*\x20%0',o(_0x4f8cf1,this['_getTranslationKeyForListStyle'](_0x3b13cc['newValue'])))};let _0x5e11ad=_0x56a98b['head'];for(;_0x5e11ad;){if(_0x5e11ad['data']&&'listType'==_0x5e11ad['data']['key']&&_0x5e11ad['data']['newValue']&&_0x5e11ad['data']['oldValue'])return _0x107589;_0x5e11ad=_0x5e11ad['next'];}return{'type':'format','content':o(_0x4f8cf1,'*Set\x20format:*\x20%0',o(_0x4f8cf1,'ELEMENT_'+_0x56a98b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x8b5a77=this['editor'],_0x7a1400=_0x8b5a77['locale'];_0x8b5a77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4950f=>{if('formatBlock'!=_0xd4950f['type'])return;const {data:_0x1b4de3}=_0xd4950f;if(!_0x1b4de3)return;let _0x1e33bb,_0x4e947f;switch(_0x1b4de3['commandName']){case'listStyle':_0x1e33bb='*Change\x20to:*\x20%0',_0x4e947f={'type':'format','content':o(_0x7a1400,_0x1e33bb,o(_0x7a1400,this['_getTranslationKeyForListStyle'](_0x1b4de3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1e33bb=_0x1b4de3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e947f={'type':'format','content':o(_0x7a1400,_0x1e33bb)};break;case'listStart':_0x1e33bb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e947f={'type':'format','content':o(_0x7a1400,_0x1e33bb,_0x1b4de3['commandParams'][0x0]['startIndex'])};}return _0x4e947f;});}['_getTranslationKeyForListStyle'](_0xe2ac98){return'ELEMENT_'+function(_0x2f71a0){if(ye['includes'](_0x2f71a0))return'bulleted';if(Se['includes'](_0x2f71a0))return'numbered';return null;}(_0xe2ac98)['toUpperCase']()+'_LIST_'+_0xe2ac98['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x8cf398{static get['requires'](){return[_0x1aca77];}['init'](){const _0x474b33=this['editor'],_0x5e9a42=_0x474b33['plugins']['get']('TrackChangesEditing'),_0x3f1199=_0x474b33['commands']['get']('enter');_0x5e9a42['enableCommand']('enter',()=>{_0x474b33['model']['change'](_0x4ede23=>{const _0x2d14ba=_0x474b33['model']['document']['selection'],_0x2888ec=_0x2d14ba['getFirstPosition'](),_0x447a16=_0x142937['fromRange'](_0x2d14ba['getFirstRange']());if(_0x3f1199['enterBlock'](_0x4ede23)){const _0x43e571=_0x474b33['model']['createPositionAt'](_0x2888ec['parent']['nextSibling'],0x0),_0xe3bff3=_0x4ede23['createRange'](_0x2888ec,_0x43e571);_0x5e9a42['markInsertion'](_0xe3bff3);}else _0x4ede23['setSelection'](_0x4ede23['createRange'](_0x447a16['end']));_0x447a16['detach'](),_0x3f1199['fire']('afterExecute',{'writer':_0x4ede23});});}),_0x474b33['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x474b33,'split'),{'priority':'high'}),_0x474b33['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1edfeb,_0x224c2f,_0x204354)=>{const _0x49e4ea=_0x204354['mapper']['markerNameToElements'](_0x224c2f['markerName']);if(_0x49e4ea){for(const _0x171810 of _0x49e4ea)_0x171810['hasClass']('ck-suggestion-marker-split')&&(_0x204354['mapper']['unbindElementFromMarkerName'](_0x171810,_0x224c2f['markerName']),_0x204354['writer']['remove'](_0x171810));}},{'priority':'high'}),_0x474b33['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2d9b95,_0x10b01e,_0x4e56ba)=>{_0x4e56ba['options']['showSuggestionHighlights']&&_e(_0x474b33,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2d9b95,_0x10b01e,_0x4e56ba);},{'priority':'high'});}}class X extends _0x8cf398{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x46657c=this['editor']['plugins']['get']('TrackChangesEditing');_0x46657c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x46657c['enableCommand']('findNext'),_0x46657c['enableCommand']('findPrevious'),_0x46657c['enableCommand']('replace'),_0x46657c['enableCommand']('replaceAll');}['handleFindCommand'](_0x4785a7,_0x7fcb10,_0x4e550f={}){const _0x3c425b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4785a7(_0x21ec9f=>{let _0x3a2a82=('string'==typeof _0x7fcb10?_0x3c425b['findByTextCallback'](_0x7fcb10,_0x4e550f):_0x7fcb10)(_0x21ec9f);Array['isArray'](_0x3a2a82)&&(_0x3a2a82={'results':_0x3a2a82,'searchText':'string'==typeof _0x7fcb10?_0x7fcb10:''});const _0xbb3c9=_0x3a2a82['results']['filter'](_0x401597=>!0x1===this['_isInDeletionRange'](_0x401597,_0x21ec9f['item']));return{..._0x3a2a82,'results':_0xbb3c9};},_0x4e550f);}['_isInDeletionRange'](_0x24cf61,_0x5a4ae1){const _0x35d382=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a4ae1,_0x24cf61['start']),this['editor']['model']['createPositionAt'](_0x5a4ae1,_0x24cf61['end']));for(const _0xfd362 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35d382['getIntersection'](_0xfd362['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 _0x8cf398{['afterInit'](){const _0x24e834=this['editor']['locale'],_0x505caf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5b1ec1,commandName:_0x7d1f74}of ro)this['editor']['plugins']['has'](_0x5b1ec1)&&(_0x505caf['enableDefaultAttributesIntegration'](_0x7d1f74),_0x505caf['registerInlineAttribute'](_0x7d1f74));_0x505caf['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x24e834,'FORMAT_FONT_SIZE')),_0x505caf['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x24e834,'FORMAT_FONT_FAMILY')),_0x505caf['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x24e834,'FORMAT_FONT_COLOR')),_0x505caf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x24e834,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5bdd=this['editor'],_0x4a4f3c=_0x2d5bdd['locale'];_0x2d5bdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236530=>{const _0x232145=_0x4a4f3c['t'];if('formatInline'!=_0x236530['type'])return;const {data:_0x46b872}=_0x236530;if(null!=_0x46b872){if('fontSize'==_0x46b872['commandName']){const _0x194470=_0x46b872['commandParams'][0x0]['value'];if(_0x194470){const _0x26fed6=_0x232145(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5720cf=>_0x5720cf['model']==_0x194470)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4a4f3c,'*Set\x20font\x20size:*\x20%0',_0x26fed6)};}return{'type':'format','content':o(_0x4a4f3c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x46b872['commandName']){const _0x579e25=_0x46b872['commandParams'][0x0]['value'];return _0x579e25?{'type':'format','content':o(_0x4a4f3c,'*Set\x20font\x20family:*\x20%0',_0x579e25)}:{'type':'format','content':o(_0x4a4f3c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x46b872['commandName']){const _0x5bf9c9=_0x46b872['commandParams'][0x0]['value'];if(_0x5bf9c9){const _0x4b0c7b=_0x34d068(this['editor']['config']['get']('fontColor.colors'))['find'](_0x27051e=>_0x27051e['model']==_0x5bf9c9);let _0x34c00a=_0x5bf9c9,_0x319bf0='';return _0x4b0c7b&&(_0x34c00a=_0x4b0c7b['label'],_0x319bf0=_0x232145(_0x34c00a)['toLowerCase']()),{'type':'format','content':o(_0x4a4f3c,'*Set\x20font\x20color:*\x20%0',_0x319bf0)['trim'](),'color':{'value':_0x5bf9c9,'title':_0x319bf0||_0x34c00a}};}return{'type':'format','content':o(_0x4a4f3c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x46b872['commandName']){const _0x3d2175=_0x46b872['commandParams'][0x0]['value'];if(_0x3d2175){const _0x2d58df=_0x34d068(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe30756=>_0xe30756['model']==_0x3d2175);let _0x588e73=_0x3d2175,_0x3a6e6c='';return _0x2d58df&&(_0x588e73=_0x2d58df['label'],_0x3a6e6c=_0x232145(_0x588e73)['toLowerCase']()),{'type':'format','content':o(_0x4a4f3c,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a6e6c)['trim'](),'color':{'value':_0x3d2175,'title':_0x3a6e6c||_0x588e73}};}return{'type':'format','content':o(_0x4a4f3c,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x8cf398{['afterInit'](){const _0x307c54=this['editor'],_0x58bfd2=_0x307c54['plugins']['get']('TrackChangesEditing'),_0x15f89c=_0x307c54['commands']['get']('copyFormat'),_0x26edca=_0x307c54['commands']['get']('pasteFormat');_0x15f89c&&_0x26edca&&(_0x58bfd2['enableDefaultAttributesIntegration']('pasteFormat'),_0x58bfd2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17c92c=this['editor'],_0x3d6e0b=_0x17c92c['locale'];_0x17c92c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43b66e=>{if('formatBlock'!=_0x43b66e['type']&&'formatInline'!=_0x43b66e['type'])return;const {data:_0x325c20}=_0x43b66e;if(_0x325c20&&'pasteFormat'===_0x325c20['commandName']){const _0x2ac978=[],_0x3a2552=_0x325c20['commandParams'][0x0];for(const [_0x1ebfff,_0x3d3585]of Object['entries'](_0x3a2552))_0x2ac978['push'](so(_0x17c92c,_0x1ebfff,_0x3d3585));return _0x2ac978['length']?{'type':'format','content':o(_0x3d6e0b,'*Set\x20format\x20to:*\x20%0',_0x2ac978['join'](',\x20'))}:{'type':'format','content':o(_0x3d6e0b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1161d0,_0x54edfb,_0x3f887b){const _0x562785=_0x1161d0['locale']['t'],_0x38ea8b=_0x54edfb['split'](/(?=[A-Z])/)['join']('\x20'),_0xf1d344=_0x562785(_0x38ea8b['charAt'](0x0)['toUpperCase']()+_0x38ea8b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f887b)return _0xf1d344;if('fontColor'===_0x54edfb||'fontBackgroundColor'===_0x54edfb){const _0x332665=_0x34d068(_0x1161d0['config']['get']('fontColor.colors'))['find'](_0x14ba84=>_0x14ba84['model']==_0x3f887b);return _0xf1d344+'\x20('+(_0x332665?_0x562785(_0x332665['label'])['toLowerCase']():_0x3f887b)+')';}if('fontSize'===_0x54edfb&&isNaN(parseFloat(_0x3f887b))){const _0x2f8c7c=_0x1161d0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1161d0['config']['get']('fontSize.options'))['find'](_0x58a729=>_0x58a729['model']==_0x3f887b);return _0xf1d344+'\x20('+(_0x2f8c7c?_0x562785(_0x2f8c7c['title'])['toLowerCase']():_0x3f887b)+')';}return _0xf1d344+'\x20('+_0x3f887b+')';}class tt extends _0x8cf398{['_headingOptions'];['afterInit'](){const _0x14fbaa=this['editor'];if(!_0x14fbaa['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x14fbaa['config']['get']('heading.options');const _0x455db0=_0x14fbaa['locale'],_0x2b8341=_0x14fbaa['plugins']['get']('TrackChangesEditing');_0x2b8341['enableDefaultAttributesIntegration']('heading');for(const _0xdd38c0 of this['_headingOptions'])'paragraph'!=_0xdd38c0['model']&&_0x2b8341['descriptionFactory']['registerElementLabel'](_0xdd38c0['model'],_0xf3f2f3=>{const _0x499634=this['_getHeadingLevel'](_0xdd38c0['model']);return null!==_0x499634?_0x4ce98c(_0xf3f2f3,_0x499634):_0x2f609c(_0xf3f2f3,_0xdd38c0['title']);});function _0x4ce98c(_0x574a89,_0x573ecd){return o(_0x455db0,'ELEMENT_HEADING',[_0x574a89,_0x573ecd]);}function _0x2f609c(_0x500fdf,_0x5cc1ea){return o(_0x455db0,'ELEMENT_HEADING_CUSTOM',[_0x500fdf,_0x5cc1ea]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37bdb5=this['editor'],_0x192f7a=_0x37bdb5['locale'];function _0x3c30d3(_0x5325ec,_0x3931fc){return o(_0x192f7a,'ELEMENT_HEADING_CUSTOM',[_0x5325ec,_0x3931fc]);}_0x37bdb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f33f5=>{if('formatBlock'!=_0x2f33f5['type'])return;const {data:_0x40c175}=_0x2f33f5;if(_0x40c175&&'heading'==_0x40c175['commandName']){const _0x5d3922=_0x40c175['commandParams'][0x0]['value'],_0x503f4f=this['_getHeadingLevel'](_0x5d3922);if(null!==_0x503f4f)return{'type':'format','content':o(_0x192f7a,'*Change\x20to:*\x20%0',(_0x470995=0x1,_0x513fa9=_0x503f4f,o(_0x192f7a,'ELEMENT_HEADING',[_0x470995,_0x513fa9])))};const _0x8d4f61=this['_headingOptions']['find'](_0x367645=>_0x367645['model']===_0x5d3922)['title'];return{'type':'format','content':o(_0x192f7a,'*Change\x20to:*\x20%0',_0x3c30d3(0x1,_0x8d4f61))};}var _0x470995,_0x513fa9;});}['_getHeadingLevel'](_0x197760){const _0x3b5d0b=_0x197760['match'](/^heading(\d+)/);if(_0x3b5d0b)return _0x3b5d0b[0x1];const _0x54a141=this['_headingOptions']?.['find'](_0x50e6f7=>_0x50e6f7['model']==_0x197760);if(_0x54a141&&_0x54a141['view']){const _0x3098c7=_0x54a141['view'],_0x5e2600=(_0x3098c7['name']??_0x3098c7)['match'](/^h(\d+)/);if(_0x5e2600)return _0x5e2600[0x1];}return null;}}class et extends _0x8cf398{['afterInit'](){const _0x3de6c2=this['editor'];if(!_0x3de6c2['plugins']['has']('HighlightEditing'))return;const _0x49ed72=_0x3de6c2['plugins']['get']('TrackChangesEditing'),_0x233f86=_0x3de6c2['locale'];_0x49ed72['enableDefaultAttributesIntegration']('highlight'),_0x49ed72['registerInlineAttribute']('highlight'),_0x49ed72['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x233f86,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x210c42=this['editor'],_0x510d3a=_0x210c42['locale'];_0x210c42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b37b0=>{if('formatInline'!=_0x1b37b0['type'])return;const {data:_0x49988f}=_0x1b37b0;if(_0x49988f&&'highlight'==_0x49988f['commandName']){const _0x23d13a=_0x510d3a['t'],_0xb156d2=_0x49988f['commandParams'][0x0]['value'];if(_0xb156d2){const _0x1fd9b0=_0x210c42['config']['get']('highlight.options')['find'](_0x550dbd=>_0x550dbd['model']==_0xb156d2),_0x113ae8=_0x23d13a(_0x1fd9b0['title'])['toLowerCase']();return{'type':'format','content':o(_0x510d3a,'*Set\x20highlight:*\x20%0',_0x113ae8),'color':{'value':_0x1fd9b0['color'],'title':_0x1fd9b0['title']}};}return{'type':'format','content':o(_0x510d3a,'*Remove\x20highlight*',o(_0x510d3a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x8cf398{['afterInit'](){const _0x416ab7=this['editor'];if(!_0x416ab7['plugins']['has']('HorizontalLineEditing'))return;_0x416ab7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33963b=_0x416ab7['plugins']['get']('TrackChangesEditing'),_0x5cb281=_0x416ab7['locale'];_0x33963b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x36c09f=>o(_0x5cb281,'ELEMENT_HORIZONTAL_LINE',_0x36c09f)),_0x416ab7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3d4054,{writer:_0x2feaad,options:_0x1f8250})=>{if(!_0x1f8250['showSuggestionHighlights'])return null;const _0x5c6dc2=_0x2feaad['createContainerElement']('div'),_0x5de04d=_0x2feaad['createEmptyElement']('hr');return _0x2feaad['addClass']('ck-horizontal-line',_0x5c6dc2),_0x2feaad['insert'](_0x2feaad['createPositionAt'](_0x5c6dc2,0x0),_0x5de04d),_0x5c6dc2;},'converterPriority':'high'});}}class st extends _0x8cf398{['afterInit'](){const _0x19eb74=this['editor'];if(!_0x19eb74['plugins']['has']('HtmlEmbed'))return;const _0x4fd916=_0x19eb74['plugins']['get']('TrackChangesEditing'),_0x1f55b6=_0x19eb74['locale'];_0x4fd916['descriptionFactory']['registerElementLabel']('rawHtml',_0x5b5efa=>o(_0x1f55b6,'ELEMENT_HTML_EMBED',_0x5b5efa)),_0x4fd916['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4fd916['registerBlockAttribute']('value'),_0x4fd916['descriptionFactory']['registerDescriptionCallback'](_0x5b5abb=>{if('attribute'!=_0x5b5abb['type'])return;const {data:_0x591921}=_0x5b5abb;if(_0x591921&&'value'==_0x591921['key']&&_0x5b5abb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1bd053=o(_0x1f55b6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f55b6,'*Change\x20%0\x20content*',_0x1bd053)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x92ccbd=this['editor'],_0x45055b=_0x92ccbd['locale'];_0x92ccbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52813f=>{if('formatBlock'!=_0x52813f['type'])return;const {data:_0x2c19f2}=_0x52813f;if(_0x2c19f2&&'htmlEmbed'==_0x2c19f2['commandName']){const _0xb5d31d=o(_0x45055b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45055b,'*Change\x20%0\x20content*',_0xb5d31d)};}});}}class nt extends _0x8cf398{['afterInit'](){const _0xd4ba6b=this['editor'];if(!_0xd4ba6b['plugins']['has']('ImageEditing'))return;const _0x590dd1=_0xd4ba6b['plugins']['get']('TrackChangesEditing'),_0x1f0e3d=_0xd4ba6b['plugins']['get']('ImageUtils'),_0x47e6ad=_0xd4ba6b['locale'];_0x590dd1['enableCommand']('insertImage'),_0x590dd1['descriptionFactory']['registerElementLabel']('imageBlock',_0x51054a=>o(_0x47e6ad,'ELEMENT_IMAGE',_0x51054a)),_0x590dd1['descriptionFactory']['registerElementLabel']('imageInline',_0x24c286=>o(_0x47e6ad,'ELEMENT_INLINE_IMAGE',_0x24c286)),_0x590dd1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x47e6ad,'ELEMENT_CAPTION')),_0xd4ba6b['plugins']['has']('ImageUploadEditing')&&_0x590dd1['enableCommand']('uploadImage'),_0xd4ba6b['plugins']['has']('ImageBlockEditing')&&_0xd4ba6b['plugins']['has']('ImageInlineEditing')&&(_0x590dd1['enableCommand']('imageTypeInline',(_0xa4bfb2,_0xab2014)=>{const _0xceee0a=_0x1f0e3d['getClosestSelectedImageElement'](_0xd4ba6b['model']['document']['selection']);_0xd4ba6b['model']['change'](()=>{_0x590dd1['markBlockFormat'](_0xceee0a,{'commandName':'imageTypeInline','commandParams':[_0xab2014]},[],'convertBlockImageToInline');});}),_0x590dd1['enableCommand']('imageTypeBlock',(_0x5e82de,_0x5d8b72)=>{_0xd4ba6b['model']['change'](_0x36dc0d=>{let _0x5ca48b=_0x1f0e3d['getClosestSelectedImageElement'](_0xd4ba6b['model']['document']['selection']),_0x44c611=_0x36dc0d['createRangeOn'](_0x5ca48b);const _0x129b89=_0x5b8ee1['fromPosition'](_0x44c611['start'],'toPrevious'),_0x46f51e=_0x5b8ee1['fromPosition'](_0x44c611['end'],'toNext');_0x590dd1['forceDefaultExecution'](()=>_0x5e82de(_0x5d8b72)),_0x5ca48b=_0x1f0e3d['getClosestSelectedImageElement'](_0xd4ba6b['model']['document']['selection']),_0x44c611=_0x36dc0d['createRangeOn'](_0x5ca48b);const _0x5166fe=_0x36dc0d['createRange'](_0x129b89,_0x46f51e);_0x129b89['detach'](),_0x46f51e['detach'](),_0x590dd1['markBlockFormat'](_0x5ca48b,{'commandName':'imageTypeInline','commandParams':[_0x5d8b72]},[],'convertInlineImageToBlock'),_0x5166fe['start']['isBefore'](_0x44c611['start'])&&_0x590dd1['markInsertion'](_0x36dc0d['createRange'](_0x5166fe['start'],_0x44c611['start']),'convertInlineImageToBlock'),_0x44c611['end']['isBefore'](_0x5166fe['end'])&&_0x590dd1['markInsertion'](_0x36dc0d['createRange'](_0x44c611['end'],_0x5166fe['end']),'convertInlineImageToBlock');});}),_0x590dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x590dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x590dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x590dd1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x590dd1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x590dd1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x105952])=>{const _0x30af57=_0x590dd1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x130f68=_0x105952['start'],_0x5cbe6a=_0x105952['end'];const _0x1e88f4=_0xd4ba6b['model']['schema']['getNearestSelectionRange'](_0x130f68,'backward'),_0x311a34=_0xd4ba6b['model']['schema']['getNearestSelectionRange'](_0x5cbe6a,'forward');_0x1e88f4['isCollapsed']&&(_0x130f68=_0x1e88f4['start']),_0x311a34['isCollapsed']&&(_0x5cbe6a=_0x311a34['end']),_0x30af57([_0xd4ba6b['model']['createRange'](_0x130f68,_0x5cbe6a)]);}),_0x590dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1f1f58),_0x590dd1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1f1f58)),_0xd4ba6b['plugins']['has']('ImageCaptionEditing')&&(_0x590dd1['enableCommand']('toggleImageCaption',(_0x78ebbb,_0x2b1342)=>{const _0x30cce2=_0xd4ba6b['plugins']['get']('ImageCaptionUtils');let _0x1e78ed=_0x1f0e3d['getClosestSelectedImageElement'](_0xd4ba6b['model']['document']['selection']),_0x3bb1af=_0x30cce2['getCaptionFromImageModelElement'](_0x1e78ed);_0xd4ba6b['model']['change'](()=>{if(_0x3bb1af)return void _0x590dd1['markDeletion'](_0xd4ba6b['model']['createRangeOn'](_0x3bb1af));const _0x22fc31=_0x1f0e3d['isBlockImage'](_0x1e78ed);_0x78ebbb(_0x2b1342),_0x1e78ed=_0x1f0e3d['getClosestSelectedImageElement'](_0xd4ba6b['model']['document']['selection']),_0x3bb1af=_0x30cce2['getCaptionFromImageModelElement'](_0x1e78ed),_0x590dd1['markInsertion'](_0xd4ba6b['model']['createRangeOn'](_0x3bb1af),_0x22fc31?null:'imageCaption');});}),_0x590dd1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1f1f58));const _0x539b62=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x430eb6(_0x2708b4,_0x4ce64d){const _0x271f65=_0x539b62['findIndex'](({type:_0x4d6759,subType:_0x2029e5})=>_0x2708b4['type']==_0x4d6759&&_0x2708b4['subType']==_0x2029e5),_0x42cce9=_0x539b62['findIndex'](({type:_0x133b4e,subType:_0x284d14})=>_0x4ce64d['type']==_0x133b4e&&_0x4ce64d['subType']==_0x284d14);if(_0x271f65<0x0||_0x42cce9<0x0)return!0x1;const _0x4ec9eb=_0x2708b4['getFirstRange'](),_0x38d5ad=_0x4ce64d['getFirstRange']();if((0x0==_0x271f65||0x1==_0x271f65)&&0x2==_0x42cce9&&_0x4ec9eb['isIntersecting'](_0x38d5ad))return!0x0;if(0x2==_0x271f65&&0x3==_0x42cce9){const _0x2db6ed=_0x590dd1['_findSuggestions'](_0x4ec9eb,'insertion')['filter'](({suggestion:_0x1d2292,meta:_0x2add54})=>_0x2add54['isOwn']&&'convertInlineImageToBlock'==_0x1d2292['subType']);if(_0x2db6ed['length']>0x1&&_0x38d5ad['end']['isEqual'](_0x4ec9eb['start']))return!0x0;if(0x1==_0x2db6ed['length']&&(_0x4ec9eb['start']['isEqual'](_0x38d5ad['end'])||_0x4ec9eb['end']['isEqual'](_0x38d5ad['start'])))return!0x0;}if(0x3==_0x271f65&&0x3==_0x42cce9&&_0x4ec9eb['start']['isBefore'](_0x38d5ad['start'])){const _0x392ce1=_0x4ec9eb['end']['nodeAfter'],_0x37591f=_0x38d5ad['start']['nodeBefore'];return _0x1f0e3d['isBlockImage'](_0x392ce1)&&_0x392ce1===_0x37591f;}return!0x1;}function _0x1f1f58(_0x58c4db,_0x4110c6){return _0x430eb6(_0x58c4db,_0x4110c6)?[_0x58c4db,_0x4110c6]:_0x430eb6(_0x4110c6,_0x58c4db)?[_0x4110c6,_0x58c4db]:null;}_0xd4ba6b['plugins']['has']('ImageResize')&&(_0x590dd1['enableDefaultAttributesIntegration']('resizeImage'),_0x590dd1['registerBlockAttribute']('resizedWidth'),_0x590dd1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x47e6ad,'FORMAT_IMAGE_SIZE'))),_0xd4ba6b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x590dd1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x590dd1['registerBlockAttribute']('alt')),_0x590dd1['descriptionFactory']['registerDescriptionCallback'](_0x1d0227=>{if(!!_0x539b62['find'](({type:_0x27ff06,subType:_0x5cef6e})=>_0x1d0227['type']==_0x27ff06&&_0x1d0227['subType']==_0x5cef6e))return _0x1d0227['previous']?{}:void 0x0;}),_0x590dd1['descriptionFactory']['registerDescriptionCallback'](_0x23f3f7=>{if('insertion'==_0x23f3f7['type']||'deletion'==_0x23f3f7['type']){const _0x103896=_0x23f3f7['getContainedElement']();if(_0x103896&&_0x103896['is']('element','caption'))return{'type':'insertion'==_0x23f3f7['type']?'addObject':'removeObject','element':_0x103896,'quantity':0x1};}}),_0x590dd1['descriptionFactory']['registerDescriptionCallback'](_0xcf86af=>'formatBlock'==_0xcf86af['type']&&'convertInlineImageToBlock'==_0xcf86af['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xcf86af['type']&&'convertBlockImageToInline'==_0xcf86af['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x590dd1['descriptionFactory']['registerDescriptionCallback'](_0x478238=>{if('attribute'!=_0x478238['type'])return;const {data:_0x9a6bd4}=_0x478238;if(!_0x9a6bd4||'alt'!=_0x9a6bd4['key'])return;const _0x4208fe=_0x9a6bd4['newValue'];return _0x4208fe?{'type':'format','content':o(_0x47e6ad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4208fe+'\x22')}:{'type':'format','content':o(_0x47e6ad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x267d8b=this['editor'],_0x261551=_0x267d8b['locale'];_0x267d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4657f=>{if('formatBlock'!=_0xa4657f['type']&&'formatInline'!=_0xa4657f['type'])return;const {data:_0x3fd8d8}=_0xa4657f;if(_0x3fd8d8){if('imageTextAlternative'==_0x3fd8d8['commandName']){const _0x52c9e2=_0x3fd8d8['commandParams'][0x0]['newValue'];return _0x52c9e2?{'type':'format','content':o(_0x261551,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x52c9e2+'\x22')}:{'type':'format','content':o(_0x261551,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3fd8d8['commandName']){const _0x55eff5=_0x3fd8d8['commandParams'][0x0]['width'];return _0x55eff5?{'type':'format','content':o(_0x261551,'*Set\x20image\x20width:*\x20%0',_0x55eff5)}:{'type':'format','content':o(_0x261551,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x8cf398{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x37223f=this['editor']['locale'],_0x587968=this['editor']['plugins']['get']('TrackChangesEditing');_0x587968['enableDefaultAttributesIntegration']('replaceImageSource'),_0x587968['registerBlockAttribute']('src'),_0x587968['descriptionFactory']['registerDescriptionCallback'](_0x3dc458=>{if('attribute'!=_0x3dc458['type'])return;const {data:_0x38e4e9}=_0x3dc458;return _0x38e4e9&&'src'==_0x38e4e9['key']?_0x38e4e9['newValue']&&_0x38e4e9['oldValue']?{'type':'format','content':o(_0x37223f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x232b1b=this['editor']['plugins']['get']('TrackChangesEditing');_0x232b1b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x232b1b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x232b1b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x232b1b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd6e225=this['editor'],_0x326e27=_0xd6e225['locale'];_0xd6e225['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59e70f=>{if('formatBlock'!=_0x59e70f['type']&&'formatInline'!=_0x59e70f['type'])return;const {data:_0x5af25c}=_0x59e70f;if(!_0x5af25c||'replaceImageSource'!=_0x5af25c['commandName'])return;return{'type':'format','content':o(_0x326e27,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x8cf398{['afterInit'](){const _0x693aeb=this['editor'];if(!_0x693aeb['plugins']['has']('ImageStyleEditing'))return;const _0x46909e=_0x693aeb['plugins']['get']('TrackChangesEditing'),_0x17a34f=_0x693aeb['plugins']['get']('ImageUtils'),_0x33e79f={};_0x46909e['enableCommand']('imageStyle',(_0x5a63fe,_0x58ceb1)=>{const _0x32b6c3=_0x693aeb['plugins']['get']('Users')['me'],_0x1f45a2=_0x693aeb['commands']['get']('imageStyle');let _0x461ba3=_0x17a34f['getClosestSelectedImageElement'](_0x693aeb['model']['document']['selection']),_0xe717d0=_0x693aeb['model']['createRangeOn'](_0x461ba3),_0x598a09=_0x1f45a2['value'];if(_0x598a09==_0x58ceb1['value'])return;const _0x4ab296={'commandName':'imageStyle','commandParams':[_0x58ceb1],'formatGroupId':_0x3862eb()};_0x693aeb['model']['change'](()=>{if(_0x46909e['getSuggestions']()['filter'](_0x3f80f6=>_0x3f80f6['isInContent']&&_0x32b6c3==_0x3f80f6['author']&&('formatBlock'==_0x3f80f6['type']||'formatInline'==_0x3f80f6['type'])&&('imageStylePreApply'==_0x3f80f6['subType']||'imageStylePostApply'==_0x3f80f6['subType'])&&_0x3f80f6['getFirstRange']()['isEqual'](_0xe717d0))['forEach'](_0x4eaceb=>_0x46909e['discardSuggestion'](_0x4eaceb['head'])),_0x461ba3=_0x17a34f['getClosestSelectedImageElement'](_0x693aeb['model']['document']['selection']),_0xe717d0=_0x693aeb['model']['createRangeOn'](_0x461ba3),_0x1f45a2['refresh'](),_0x693aeb['commands']['get']('imageTypeInline')['refresh'](),_0x693aeb['commands']['get']('imageTypeBlock')['refresh'](),_0x598a09=_0x1f45a2['value'],_0x598a09!=_0x58ceb1['value'])return _0x17a34f['isInlineImage'](_0x461ba3)&&_0x1f45a2['shouldConvertImageType'](_0x58ceb1['value'],_0x461ba3)?(_0x5a63fe({..._0x58ceb1,'setImageSizes':!0x1}),_0x461ba3=_0x17a34f['getClosestSelectedImageElement'](_0x693aeb['model']['document']['selection']),void _0x46909e['markBlockFormat'](_0x461ba3,{..._0x4ab296,'commandReversedParams':[{'value':_0x598a09||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x17a34f['isBlockImage'](_0x461ba3)?_0x46909e['markBlockFormat'](_0x461ba3,_0x4ab296,[],'imageStylePostApply'):_0x46909e['markInlineFormat'](_0xe717d0,_0x4ab296,'imageStylePostApply'));});});for(const _0x3ca1be of _0x693aeb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x33e79f[_0x3ca1be['name']]=_0x3ca1be['title']['toLowerCase']();_0x46909e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x46909e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x46909e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x46909e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1cd9b0])=>{_0x17a34f['setImageNaturalSizeAttributes'](_0x1cd9b0['getContainedElement']());}),_0x46909e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5120ce,_0x31df1a)=>{_0x46909e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5120ce,{'commandName':_0x31df1a['commandName'],'commandParams':_0x31df1a['commandReversedParams']});}),_0x46909e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1206ed,_0x435329){if(_0x4e0df9(_0x1206ed,_0x435329))return[_0x1206ed,_0x435329];if(_0x4e0df9(_0x435329,_0x1206ed))return[_0x435329,_0x1206ed];return null;});const _0x31cee4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e0df9(_0x2ac3a3,_0x3574b3){const _0x5ec919=_0x31cee4['findIndex'](({type:_0x540a47,subType:_0x15cc01})=>_0x2ac3a3['type']==_0x540a47&&_0x2ac3a3['subType']==_0x15cc01),_0x21ea36=_0x31cee4['findIndex'](({type:_0x134020,subType:_0x2b4322})=>_0x3574b3['type']==_0x134020&&_0x3574b3['subType']==_0x2b4322);if(_0x5ec919<0x0||_0x21ea36<0x0)return!0x1;const _0x439be2=_0x2ac3a3['getFirstRange'](),_0x22ba17=_0x3574b3['getFirstRange']();if((0x0==_0x5ec919||0x1==_0x5ec919)&&0x2==_0x21ea36&&_0x439be2['isIntersecting'](_0x22ba17))return!0x0;if(0x2==_0x5ec919&&0x3==_0x21ea36){const _0x1e93fa=_0x46909e['_findSuggestions'](_0x439be2,'insertion')['filter'](({suggestion:_0x57effb,meta:_0x481690})=>_0x481690['isOwn']&&'convertInlineImageToBlock'==_0x57effb['subType']);if(_0x1e93fa['length']>0x1&&_0x22ba17['end']['isEqual'](_0x439be2['start']))return!0x0;if(0x1==_0x1e93fa['length']&&(_0x439be2['start']['isEqual'](_0x22ba17['end'])||_0x439be2['end']['isEqual'](_0x22ba17['start'])))return!0x0;}if(0x3==_0x5ec919&&0x3==_0x21ea36&&_0x439be2['start']['isBefore'](_0x22ba17['start'])){const _0x2ca2f5=_0x439be2['end']['nodeAfter'],_0x398c8a=_0x22ba17['start']['nodeBefore'];return _0x17a34f['isBlockImage'](_0x2ca2f5)&&_0x2ca2f5===_0x398c8a;}return!0x1;}_0x693aeb['model']['document']['registerPostFixer'](()=>{let _0x18b71d=!0x1;const _0x59fbc8=Array['from'](_0x693aeb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a99e0,data:_0x8eea0b}of _0x59fbc8){const {group:_0x717a6b,type:_0x2f2e2e,subType:_0xd050b,id:_0xbeb0d9}=_0x46909e['_splitMarkerName'](_0x2a99e0);if('suggestion'==_0x717a6b&&_0x46909e['hasSuggestion'](_0xbeb0d9)){if('formatBlock'==_0x2f2e2e&&('imageStylePreApply'==_0xd050b||'imageStylePostApply'==_0xd050b)){const _0x436c01=_0x46909e['getSuggestion'](_0xbeb0d9);if(_0x8eea0b['newRange']){const _0x533925=_0x436c01['getFirstRange']()['getContainedElement']();if(_0x17a34f['isBlockImage'](_0x533925))continue;_0x46909e['discardSuggestion'](_0x436c01),_0x18b71d=!0x0;}}if('insertion'==_0x2f2e2e&&'imageCaption'==_0xd050b&&!_0x8eea0b['newRange']){const _0x511c5c=_0x46909e['getSuggestion'](_0xbeb0d9);_0x511c5c['next']&&_0x511c5c['next']['isInContent']&&(_0x46909e['discardSuggestion'](_0x511c5c['next']),_0x18b71d=!0x0);}}}return _0x18b71d;}),this['_registerLegacyDescription'](_0x33e79f);}['_registerLegacyDescription'](_0x5a9798){const _0x120e6e=this['editor'],_0x3817b1=_0x120e6e['locale'];_0x120e6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58b702=>{if('formatBlock'!=_0x58b702['type']&&'formatInline'!=_0x58b702['type'])return;const {data:_0x56d48d}=_0x58b702;if(!_0x56d48d||'imageStyle'!=_0x56d48d['commandName'])return;const _0x547ae1=_0x56d48d['commandParams'][0x0]['value'];return _0x5e2f86('side'===_0x547ae1?o(_0x3817b1,'FORMAT_SIDE_IMAGE'):_0x5a9798[_0x547ae1]||_0x547ae1);function _0x5e2f86(_0x4bca07){return{'type':'format','content':o(_0x3817b1,'*Format:*\x20%0',_0x4bca07)};}});}}class at extends _0x8cf398{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1519f3){super(_0x1519f3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3b062f=this['editor'],_0x476822=_0x3b062f['commands']['get']('importWord'),_0x30b2ad=_0x3b062f['commands']['get']('trackChanges');_0x476822&&(_0x476822['on']('execute',(_0xa39417,[,_0x30677d])=>{this['_trackChangesValueDuringImport']=_0x30b2ad['value'],_0x30677d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x476822,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x476822,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x30b2ad['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3b062f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x43715d,_0x424ff9){const {suggestions:_0x999983}=_0x424ff9,_0x3daca8=this['editor']['commands']['get']('trackChanges'),_0x1b6d26=_0x3daca8['value'];this['_trackChangesValueDuringImport']!==_0x1b6d26&&(_0x3daca8['execute'](),this['_trackChangesExecuted']=!0x0),_0x999983&&_0x999983['forEach'](({id:_0x416d17,type:_0x5add0a,author:_0x140667,created_at:_0x35881e})=>{const _0x5b9270={'id':_0x416d17,'type':_0x5add0a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x140667,'createdAt':_0x35881e?new Date(_0x35881e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b9270);});}}class ct extends _0x8cf398{['afterInit'](){const _0x20e0b0=this['editor'],_0x138c7c=_0x20e0b0['plugins']['get']('TrackChangesEditing');if(_0x20e0b0['plugins']['has']('IndentEditing')&&(_0x138c7c['enableCommand']('indent'),_0x138c7c['enableCommand']('outdent')),_0x20e0b0['plugins']['has']('IndentBlock')){for(const _0x4ddaa2 of['indentBlock','outdentBlock'])_0x138c7c['enableDefaultAttributesIntegration'](_0x4ddaa2);}const _0x3cfb91=_0x20e0b0['locale'];_0x138c7c['registerBlockAttribute']('blockIndent'),_0x138c7c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3cfb91,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x458bbb=this['editor'],_0x2a8ebf=_0x458bbb['locale'],_0x31e1e8=_0x458bbb['plugins']['get']('TrackChangesEditing');_0x31e1e8['descriptionFactory']['registerDescriptionCallback'](_0x46d8b0=>{if('formatBlock'!=_0x46d8b0['type'])return;const {data:_0x9b155}=_0x46d8b0;if(!_0x9b155)return;if('indentBlock'!=_0x9b155['commandName']&&'outdentBlock'!=_0x9b155['commandName'])return;const _0x15e92b=_0x46d8b0['getItems']()[0x0],_0x3b0fc2=_0x31e1e8['descriptionFactory']['getItemLabel'](_0x15e92b);return'indentBlock'==_0x9b155['commandName']?{'type':'format','content':o(_0x2a8ebf,'*Indent:*\x20%0',_0x3b0fc2)}:'outdentBlock'==_0x9b155['commandName']?{'type':'format','content':o(_0x2a8ebf,'*Outdent:*\x20%0',_0x3b0fc2)}:void 0x0;});}}class ut extends _0x8cf398{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x8cf398{['afterInit'](){const _0xa4fa16=this['editor'];if(!_0xa4fa16['plugins']['has']('LinkEditing'))return;const _0x49a041=_0xa4fa16['plugins']['get']('TrackChangesEditing'),_0x30aec4=_0xa4fa16['commands']['get']('link');_0x49a041['enableDefaultAttributesIntegration']('link'),_0x49a041['enableDefaultAttributesIntegration']('unlink'),_0x49a041['registerInlineAttribute']('linkHref');for(const _0x1ce65b of _0x30aec4['manualDecorators'])_0x49a041['registerInlineAttribute'](_0x1ce65b['id']),_0x49a041['descriptionFactory']['registerAttributeLabel'](_0x1ce65b['id'],'link\x20('+_0x1ce65b['label']['toLowerCase']()+')');_0x49a041['descriptionFactory']['registerDescriptionCallback'](_0x23e54b=>{if('attribute'!=_0x23e54b['type'])return;const {data:_0x350360}=_0x23e54b;if(!_0x350360||'linkHref'!=_0x350360['key'])return;const _0x5b3149=_0x350360['newValue'],_0x3bbd7c=_0xa4fa16['locale'];return{'type':'format','content':null==_0x5b3149?o(_0x3bbd7c,'*Remove\x20link*'):o(_0x3bbd7c,'*Set\x20link:*\x20%0','\x22'+_0x5b3149+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x421a36=this['editor'],_0x15ca77=_0x421a36['locale'];_0x421a36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b17f8=>{if('formatInline'!=_0x4b17f8['type'])return;const {data:_0x2aa83e}=_0x4b17f8;if(_0x2aa83e){if('link'==_0x2aa83e['commandName']){const _0x5963de=_0x2aa83e['commandParams'][0x0];return{'type':'format','content':o(_0x15ca77,'*Set\x20link:*\x20%0','\x22'+_0x5963de+'\x22')};}return'unlink'==_0x2aa83e['commandName']?{'type':'format','content':o(_0x15ca77,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x8cf398{['afterInit'](){const _0x5be9c3=this['editor'],_0x13b567=_0x5be9c3['locale'];if(!_0x5be9c3['plugins']['has']('LegacyListEditing'))return;const _0x6b3ae9=_0x5be9c3['plugins']['get']('TrackChangesEditing'),_0x2055e7=_0x5be9c3['plugins']['has']('LegacyTodoListEditing');function _0x3df107(_0x58a03c){return()=>{const _0x140582=_0x5be9c3['model']['document']['selection'],_0x17e435=_0x5be9c3['commands']['get'](_0x58a03c);if(_0x17e435['value'])return void _0x5be9c3['execute']('paragraph',{});const _0x48a71d=_0x58a03c['slice'](0x0,-0x4),_0x263b03=function(_0x204221,_0x46299c,_0x4aa650){let _0x5a4fde=Array['from'](_0x204221)['filter'](_0x4200dc=>function(_0x28b9b8,_0x2d092f){return _0x2d092f['checkChild'](_0x28b9b8['parent'],'listItem')&&!_0x2d092f['isObject'](_0x28b9b8);}(_0x4200dc,_0x4aa650));_0x5a4fde=_0x5a4fde['filter'](_0x404ed7=>!_0x404ed7['is']('element','listItem')||_0x404ed7['getAttribute']('listType')!=_0x46299c);const _0x34c168=new Set();for(const _0x2ad714 of _0x5a4fde)_0x2ad714['is']('element','listItem')?_0x34c168['add'](fe(_0x2ad714)):_0x34c168['add'](_0x2ad714);return Array['from'](_0x34c168);}(_0x140582['getSelectedBlocks'](),_0x48a71d,_0x5be9c3['model']['schema']);_0x5be9c3['model']['change'](()=>{for(const _0x52eab7 of _0x263b03)_0x6b3ae9['markBlockFormat'](_0x52eab7,{'commandName':_0x58a03c,'commandParams':[{'forceValue':!_0x17e435['value']}],'formatGroupId':'blockName'},ue(_0x52eab7));});};}function _0x13eca5(_0x1344ad){return()=>{const _0x164727=function(_0x2b04ba){let _0x2d2813=Array['from'](_0x2b04ba);const _0x3cc686=_0x2d2813['findIndex'](_0x4ff1e0=>'listItem'!=_0x4ff1e0['name']);return _0x3cc686>-0x1&&(_0x2d2813=_0x2d2813['slice'](0x0,_0x3cc686)),_0x2d2813;}(_0x5be9c3['model']['document']['selection']['getSelectedBlocks']()),_0x1a90d9=_0x5be9c3['model']['createRange'](_0x5be9c3['model']['createPositionAt'](_0x164727[0x0],'before'),_0x5be9c3['model']['createPositionAt'](_0x164727[_0x164727['length']-0x1],'end'));_0x5be9c3['model']['change'](()=>{_0x6b3ae9['markBlockFormat'](_0x1a90d9,{'commandName':_0x1344ad,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16681a){const _0x2a098a=new Set();for(const _0x493c08 of _0x16681a){let _0x30b4cd=_0x493c08['nextSibling'];for(;_0x30b4cd&&_0x30b4cd['getAttribute']('listIndent')>_0x493c08['getAttribute']('listIndent');)_0x2a098a['add'](_0x30b4cd),_0x30b4cd=_0x30b4cd['nextSibling'];}return Array['from'](_0x2a098a);}(_0x164727));});};}_0x6b3ae9['enableCommand']('numberedList',_0x3df107('numberedList')),_0x6b3ae9['enableCommand']('bulletedList',_0x3df107('bulletedList')),_0x2055e7&&_0x6b3ae9['enableCommand']('todoList',_0x3df107('todoList')),_0x6b3ae9['enableCommand']('indentList',_0x13eca5('indentList')),_0x6b3ae9['enableCommand']('outdentList',_0x13eca5('outdentList')),_0x2055e7&&_0x6b3ae9['enableCommand']('checkTodoList',()=>{const _0x4a5af0=_0x5be9c3['commands']['get']('checkTodoList'),_0x2049bd=Array['from'](_0x4a5af0['_selectedElements']);_0x2049bd['filter'](_0x29f31e=>_0x29f31e['getAttribute']('todoListChecked')!=_0x4a5af0['value']),_0x5be9c3['model']['change'](()=>{for(const _0x496486 of _0x2049bd)_0x6b3ae9['markBlockFormat'](_0x496486,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a5af0['value']}]});});}),_0x6b3ae9['descriptionFactory']['registerElementLabel']('listItem',_0x61e7e6=>o(_0x13b567,'ELEMENT_LIST_ITEM',_0x61e7e6)),_0x6b3ae9['descriptionFactory']['registerDescriptionCallback'](_0x39153d=>{if('formatBlock'!=_0x39153d['type']&&'formatInline'!=_0x39153d['type'])return;const {data:_0x244690}=_0x39153d;if(_0x244690){if('numberedList'==_0x244690['commandName']||'bulletedList'==_0x244690['commandName']||'todoList'==_0x244690['commandName'])switch(_0x244690['commandName']['replace']('List','')){case'bulleted':return _0x42173b(o(_0x13b567,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x42173b(o(_0x13b567,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x42173b(o(_0x13b567,'ELEMENT_TODO_LIST'));}if('indentList'==_0x244690['commandName'])return{'type':'format','content':o(_0x13b567,'*Indent:*\x20%0',o(_0x13b567,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x244690['commandName'])return{'type':'format','content':o(_0x13b567,'*Outdent:*\x20%0',o(_0x13b567,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x244690['commandName'])return _0x244690['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13b567,'*Check\x20item*')}:{'type':'format','content':o(_0x13b567,'*Uncheck\x20item*')};}function _0x42173b(_0x592691){return{'type':'format','content':o(_0x13b567,'*Change\x20to:*\x20%0',_0x592691)};}});}}function fe(_0x1537ca){const _0x3b85c6=_0x1537ca['getAttribute']('listIndent');if(0x0==_0x3b85c6)return _0x1537ca;let _0x4b08fc=_0x1537ca;for(;_0x1537ca['previousSibling']&&_0x1537ca['previousSibling']['is']('element','listItem');){const _0x8e25=_0x1537ca['previousSibling']['getAttribute']('listIndent');if(_0x8e25==_0x3b85c6)_0x4b08fc=_0x1537ca['previousSibling'];else{if(_0x8e25<_0x3b85c6)break;}_0x1537ca=_0x1537ca['previousSibling'];}return _0x4b08fc;}function ue(_0x334a85){const _0x52c5d8=[];if(_0x334a85['is']('element','listItem')&&_0x334a85['getAttribute']('listIndent')>0x0){let _0x26627e=_0x334a85['nextSibling'];for(;_0x26627e&&'listItem'==_0x26627e['name']&&_0x26627e['getAttribute']('listIndent')==_0x334a85['getAttribute']('listIndent');)_0x52c5d8['push'](_0x26627e),_0x26627e=_0x26627e['nextSibling'];}return _0x52c5d8;}class W extends _0x8cf398{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x58c31a=this['editor']['config']['get']('list.properties'),_0x353c65=this['editor']['plugins']['get']('TrackChangesEditing');_0x58c31a['styles']&&_0x353c65['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x58c31a['reversed']&&_0x353c65['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x58c31a['startIndex']&&_0x353c65['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x353c65['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2829e6,_0x44a665={}){const _0x2e2c39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44b122=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2e2c39['markMultiRangeBlockFormat'](_0x44b122,{'commandName':'listStyle','commandParams':[{'type':_0x44a665['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x337627,_0x5d90c1={}){const _0x532937=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20850f=this['_getSuggestionBlocks'](_0x233951=>_0x233951['is']('element','listItem')&&'numbered'===_0x233951['getAttribute']('listType'));if(_0x20850f['length']<0x1)return;const _0x283641=_0x20850f['map'](_0x6d2e12=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6d2e12,'before'),this['editor']['model']['createPositionAt'](_0x6d2e12,0x0)));this['editor']['model']['change'](()=>{_0x532937['markMultiRangeBlockFormat'](_0x283641,{'commandName':'listReversed','commandParams':[{'reversed':_0x5d90c1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x6e3ba9,_0x3a6be0={}){const _0x49e89c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ee5e=this['_getSuggestionBlocks'](_0x135e65=>_0x135e65['is']('element','listItem')&&'numbered'===_0x135e65['getAttribute']('listType'));if(_0x31ee5e['length']<0x1)return;const _0x3e3056=_0x31ee5e['map'](_0xba8026=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xba8026,'before'),this['editor']['model']['createPositionAt'](_0xba8026,0x0)));this['editor']['model']['change'](()=>{_0x49e89c['markMultiRangeBlockFormat'](_0x3e3056,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a6be0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd09efc){if('formatBlock'!=_0xd09efc['type']&&'formatInline'!=_0xd09efc['type'])return;const _0x192489=this['editor']['locale'],{data:_0x501f93}=_0xd09efc;if(!_0x501f93)return;let _0x4db53b,_0x1b170f;switch(_0x501f93['commandName']){case'listStyle':_0x4db53b='*Change\x20to:*\x20%0',_0x1b170f={'type':'format','content':o(_0x192489,_0x4db53b,o(_0x192489,this['_getTranslationKeyForListStyle'](_0x501f93['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4db53b=_0x501f93['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b170f={'type':'format','content':o(_0x192489,_0x4db53b)};break;case'listStart':_0x4db53b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b170f={'type':'format','content':o(_0x192489,_0x4db53b,_0x501f93['commandParams'][0x0]['startIndex'])};}return _0x1b170f;}['_getSuggestionBlocksForListStyle'](){const _0x381393=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a7b57=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a7b57[0x0]?.['is']('element','listItem')&&_0x3a7b57['unshift'](..._0x381393['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a7b57[_0x3a7b57['length']-0x1]?.['is']('element','listItem')&&_0x3a7b57['push'](..._0x381393['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a7b57=[...new Set(_0x3a7b57)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a7b57=_0x3a7b57['filter'](_0x581440=>_0x581440['is']('element','listItem'))),_0x3a7b57;}['_getSuggestionBlocks'](_0x3e014a){const _0x538faf=this['editor']['plugins']['get']('LegacyListUtils');let _0x37c261=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3e014a)['map'](_0x551dce=>{const _0x3432f6=this['editor']['model']['createPositionAt'](_0x551dce,0x0);return[..._0x538faf['getSiblingNodes'](_0x3432f6,'backward'),..._0x538faf['getSiblingNodes'](_0x3432f6,'forward')];})['flat']();return _0x37c261=[...new Set(_0x37c261)],_0x37c261;}['_getTranslationKeyForListStyle'](_0x5135ee){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5135ee)||'default')['toUpperCase']()+'_LIST_'+_0x5135ee['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x8cf398{['afterInit'](){const _0x1f6ba2=this['editor'];if(!_0x1f6ba2['plugins']['has']('MediaEmbedEditing'))return;const _0x5a031a=_0x1f6ba2['plugins']['get']('TrackChangesEditing'),_0x68e839=_0x1f6ba2['locale'];_0x5a031a['enableCommand']('mediaEmbed'),_0x5a031a['descriptionFactory']['registerElementLabel']('media',_0x2b61fa=>o(_0x68e839,'ELEMENT_MEDIA',_0x2b61fa)),_0x1f6ba2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xe88a2d,{writer:_0x4c4f88,options:_0xe57c4e})=>{if(_0xe57c4e['showSuggestionHighlights'])return _0x4c4f88['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f6ba2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x162f48,_0x339664,_0x19ff73)=>{_0x19ff73['options']['showSuggestionHighlights']&&_0x162f48['stop']();},{'priority':'high'});}}class mt extends _0x8cf398{['afterInit'](){const _0x3aed8f=this['editor'];_0x3aed8f['plugins']['has']('MentionEditing')&&_0x3aed8f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x8cf398{['afterInit'](){const _0x58b7cc=this['editor'];if(!_0x58b7cc['commands']['get']('insertMergeField'))return;_0x58b7cc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0xd78a6c=_0x58b7cc['plugins']['get']('TrackChangesEditing'),_0x23fe22=_0x58b7cc['locale'];_0xd78a6c['descriptionFactory']['registerElementLabel']('mergeField',_0x3a120d=>o(_0x23fe22,'ELEMENT_MERGE_FIELD',_0x3a120d)),_0xd78a6c['descriptionFactory']['registerDescriptionCallback'](_0x3356ef=>{if('insertion'!=_0x3356ef['type']&&'deletion'!=_0x3356ef['type'])return;const _0x5c9582=_0x3356ef['getContainedElement']();if(null==_0x5c9582)return;if(!_0x5c9582['is']('element','mergeField'))return;const _0x43d8b8=_0x58b7cc['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5c9582['getAttribute']('id'));return'insertion'==_0x3356ef['type']?{'type':'insertion','content':o(_0x23fe22,'*Insert:*\x20%0','\x22'+_0x43d8b8+'\x22\x20'+o(_0x23fe22,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x23fe22,'*Remove:*\x20%0','\x22'+_0x43d8b8+'\x22\x20'+o(_0x23fe22,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x8cf398{['afterInit'](){const _0x256d2c=this['editor'],_0x3f3eaf=_0x256d2c['plugins']['get']('TrackChangesEditing');_0x256d2c['plugins']['has']('MultiLevelList')&&(_0x3f3eaf['enableDefaultAttributesIntegration']('multiLevelList'),_0x3f3eaf['registerBlockAttribute']('listMarkerStyle'),_0x3f3eaf['descriptionFactory']['registerDescriptionCallback'](_0x1efe7b=>this['handleDescriptions'](_0x1efe7b)));}['handleDescriptions'](_0x3f1ce6){const _0xa9da6e=this['editor']['locale'],{data:_0x566402}=_0x3f1ce6,_0x3eded8={'type':'format','content':''};if(_0x566402&&'listMarkerStyle'==_0x566402['key']){if(!_0x566402['oldValue'])return{'type':'format','content':o(_0xa9da6e,'*Set\x20format:*\x20%0',o(_0xa9da6e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x566402['newValue']+')'};if(!_0x566402['newValue']){let _0xe75431=_0x3f1ce6['head'];for(;_0xe75431;){if(_0xe75431['data']&&'listType'==_0xe75431['data']['key']&&_0xe75431['data']['newValue'])return _0x3eded8;_0xe75431=_0xe75431['next'];}return{'type':'format','content':o(_0xa9da6e,'*Remove\x20format:*\x20%0',o(_0xa9da6e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x566402['oldValue']+')'};}}}}class kt extends _0x8cf398{['afterInit'](){const _0xd1554b=this['editor'];if(!_0xd1554b['plugins']['has']('PageBreakEditing'))return;_0xd1554b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5be7f9=_0xd1554b['plugins']['get']('TrackChangesEditing'),_0x18ef54=_0xd1554b['locale'];_0x5be7f9['descriptionFactory']['registerElementLabel']('pageBreak',_0xd18229=>o(_0x18ef54,'ELEMENT_PAGE_BREAK',_0xd18229));}}class bt extends _0x8cf398{['afterInit'](){const _0x36a340=this['editor'];if(!_0x36a340['plugins']['has']('Paragraph'))return;const _0x4c4d5f=_0x36a340['locale'],_0x141478=_0x36a340['plugins']['get']('TrackChangesEditing');_0x141478['descriptionFactory']['registerElementLabel']('paragraph',_0x173d10=>o(_0x4c4d5f,'ELEMENT_PARAGRAPH',_0x173d10)),_0x141478['enableDefaultAttributesIntegration']('paragraph'),_0x141478['enableCommand']('insertParagraph'),_0x36a340['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x36a340),{'priority':'highest'}),_0x36a340['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2dda97,_0x299b7c,_0x26bd6d)=>{_0x26bd6d['options']['showSuggestionHighlights']&&nr(_0x36a340,{'showActiveMarker':!0x1})(_0x2dda97,_0x299b7c,_0x26bd6d);},{'priority':'highest'});const _0x23bb3d=_0x141478['descriptionFactory'];_0x23bb3d['registerDescriptionCallback'](_0x4934de=>{if('insertion'!==_0x4934de['type'])return;const {start:_0xab116c,end:_0x42a93f}=_0x4934de['getFirstRange']();if(!_0xab116c['isTouching'](_0x42a93f)||!_0xab116c['nodeAfter'])return;const _0x2dfbae=_0x36a340['model']['schema'],_0x102ec3=_0xab116c['nodeAfter'];return _0x2dfbae['isBlock'](_0x102ec3)&&!_0x2dfbae['isLimit'](_0x102ec3)&&_0x2dfbae['checkChild'](_0x102ec3,'$text')?{'type':'insertion','content':o(_0x4c4d5f,'*Insert:*\x20%0',_0x23bb3d['getItemLabel'](_0x102ec3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3b32c=this['editor'],_0x304822=_0xd3b32c['locale'];_0xd3b32c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f80d7=>{if('formatBlock'!=_0x2f80d7['type'])return;const {data:_0x470893}=_0x2f80d7;return _0x470893&&'paragraph'==_0x470893['commandName']?{'type':'format','content':o(_0x304822,'*Change\x20to:*\x20%0',o(_0x304822,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x327992,{showActiveMarker:_0x52cb22=!0x0}={}){return(_0x5b8f00,_0x16887c,_0x274ffa)=>{const _0x63e38a=_0x327992['plugins']['get']('TrackChangesEditing'),_0x27d1b5=_0x16887c['markerRange']['start'],_0x4b3a65=_0x16887c['markerRange']['end'],_0x83eb23=_0x327992['model']['schema'];if(!_0x27d1b5['isTouching'](_0x4b3a65)||!_0x27d1b5['nodeAfter'])return;const _0x45af68=_0x27d1b5['nodeAfter'];if(_0x83eb23['isBlock'](_0x45af68)&&!_0x83eb23['isLimit'](_0x45af68)&&_0x83eb23['checkChild'](_0x45af68,'$text')){if(!_0x274ffa['consumable']['consume'](_0x16887c['markerRange'],_0x5b8f00['name']))return;const {authorId:_0x527d0c}=_0x63e38a['_splitMarkerName'](_0x16887c['markerName']),_0x23713f=_0x274ffa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x527d0c}),_0x3ef1b4=_0x274ffa['mapper']['toViewPosition'](_0x4b3a65);_0x52cb22&&_0x63e38a['activeMarkers']['includes'](_0x16887c['markerName'])&&_0x274ffa['writer']['addClass']('ck-suggestion-marker--active',_0x23713f),_0x274ffa['writer']['insert'](_0x3ef1b4,_0x23713f),_0x274ffa['mapper']['bindElementToMarker'](_0x23713f,_0x16887c['markerName']);}};}class wt extends _0x8cf398{['afterInit'](){const _0xa3adbe=this['editor'];if(!_0xa3adbe['plugins']['has']('RemoveFormatEditing'))return;_0xa3adbe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27346f=this['editor'];_0x27346f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19c6cb=>{if('formatBlock'!=_0x19c6cb['type']&&'formatInline'!=_0x19c6cb['type'])return;const {data:_0x27bd13}=_0x19c6cb;return _0x27bd13&&'removeFormat'==_0x27bd13['commandName']?{'type':'format','content':o(_0x27346f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x8cf398{['afterInit'](){const _0x52a9da=this['editor'];if(!_0x52a9da['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4ca116=_0x52a9da['plugins']['get']('TrackChangesEditing');_0x4ca116['enableCommand']('goToPreviousRestrictedEditingException'),_0x4ca116['enableCommand']('goToNextRestrictedEditingException');const _0x238ed6=_0x52a9da['plugins']['get']('RestrictedEditingModeEditing');_0x238ed6['enableCommand']('trackChanges'),_0x238ed6['enableCommand']('acceptSuggestion'),_0x238ed6['enableCommand']('discardSuggestion'),_0x238ed6['enableCommand']('acceptAllSuggestions'),_0x238ed6['enableCommand']('discardAllSuggestions'),_0x238ed6['enableCommand']('acceptSelectedSuggestions'),_0x238ed6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x8cf398{static get['requires'](){return[_0x41f21b];}['init'](){const _0x43dfd9=this['editor'],_0x217b1b=_0x43dfd9['plugins']['get']('TrackChangesEditing');_0x217b1b['enableCommand']('shiftEnter'),_0x43dfd9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x43dfd9),{'priority':'high'}),_0x43dfd9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x43dfd9),{'priority':'high'}),_0x43dfd9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17b2e1,_0x3c753f,_0x6c5f68)=>{_0x6c5f68['options']['showSuggestionHighlights']&&ge(_0x43dfd9,{'showActiveMarker':!0x1})(_0x17b2e1,_0x3c753f,_0x6c5f68);}),_0x217b1b['descriptionFactory']['registerElementLabel']('softBreak',_0x3db76b=>o(_0x43dfd9['locale'],'ELEMENT_LINE_BREAK',_0x3db76b));}}function ge(_0x593dc6,{showActiveMarker:_0x18a0e4=!0x0}={}){return(_0x19b59a,_0x58b70b,_0x3bb55e)=>{const _0x353d56=_0x593dc6['plugins']['get']('TrackChangesEditing');if(!_0x3bb55e['consumable']['test'](_0x58b70b['markerRange'],_0x19b59a['name']))return;const _0xd40db2=_0x593dc6['model'];for(const _0x193da8 of _0x58b70b['markerRange']['getItems']()){if(!_0x193da8['is']('element','softBreak'))continue;const _0x5758f0='deletion'==_0x58b70b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x9fa0bf}=_0x353d56['_splitMarkerName'](_0x58b70b['markerName']),_0x240c7b=_0x3bb55e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5758f0,'data-author-id':_0x9fa0bf}),_0x44882b=_0x3bb55e['mapper']['toViewPosition'](_0xd40db2['createPositionBefore'](_0x193da8));_0x18a0e4&&_0x353d56['activeMarkers']['includes'](_0x58b70b['markerName'])&&_0x3bb55e['writer']['addClass']('ck-suggestion-marker--active',_0x240c7b),_0x3bb55e['writer']['insert'](_0x44882b,_0x240c7b),_0x3bb55e['mapper']['bindElementToMarker'](_0x240c7b,_0x58b70b['markerName']);}};}class St extends _0x8cf398{['afterInit'](){const _0x4deec6=this['editor'],_0x43b8d1=_0x4deec6['model'],_0x9fb856=_0x4deec6['locale'];if(!_0x4deec6['plugins']['has']('StandardEditingModeEditing'))return;const _0x5bfeb3=_0x4deec6['plugins']['get']('TrackChangesEditing'),_0x4fff55='restrictedEditingException',_0x384fdb=_0x4deec6['commands']['get'](_0x4fff55);_0x5bfeb3['enableCommand'](_0x4fff55,(_0x142606,_0x415ac6={})=>{const _0x36b114=_0x43b8d1['document']['selection'];if(_0x36b114['isCollapsed'])return void _0x142606(_0x415ac6);const _0x592ef2=void 0x0!==_0x415ac6['forceValue']?_0x415ac6['forceValue']:!_0x384fdb['value'];_0x43b8d1['change'](()=>{const _0x1b26bb=Array['from'](_0x36b114['getRanges']());for(const _0x20d33b of _0x1b26bb){const _0x58c011=_0x592ef2?[_0x20d33b]:io(_0x4fff55,_0x20d33b,_0x43b8d1);for(const _0x4a2d21 of _0x58c011)_0x5bfeb3['markInlineFormat'](_0x4a2d21,{'commandName':_0x4fff55,'commandParams':[{'forceValue':_0x592ef2}]});}});}),_0x5bfeb3['descriptionFactory']['registerDescriptionCallback'](_0x4ea5ce=>{if('formatBlock'!=_0x4ea5ce['type']&&'formatInline'!=_0x4ea5ce['type'])return;const {data:_0x124e9e}=_0x4ea5ce;return _0x124e9e&&_0x124e9e['commandName']==_0x4fff55?_0x124e9e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9fb856,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x9fb856,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x8cf398{['afterInit'](){const _0x1e9ecc=this['editor'];if(!_0x1e9ecc['plugins']['has']('Style')||!_0x1e9ecc['plugins']['has']('DataSchema'))return;const _0x434b68=_0x1e9ecc['plugins']['get']('TrackChangesEditing'),_0x389667=_0x1e9ecc['locale'],_0x4088a4=_0x1e9ecc['config']['get']('style')||{},_0x15be69=_0x1e9ecc['plugins']['get']('GeneralHtmlSupport'),_0x5d6776=_0x1e9ecc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1e9ecc['plugins']['get']('DataSchema'),_0x4088a4['definitions']);_0x434b68['enableDefaultAttributesIntegration']('style');const _0x28a7fd=new Set();for(const _0x5fa2c8 of _0x5d6776['block']){const _0x5d39ca=_0x15be69['getGhsAttributeNameForElement'](_0x5fa2c8['element']);_0x28a7fd['add'](_0x5d39ca);}const _0x4c8ec0=new Set();for(const _0xc64963 of _0x5d6776['inline']){const _0x2b4b3f=_0x15be69['getGhsAttributeNameForElement'](_0xc64963['element']);_0x4c8ec0['add'](_0x2b4b3f);for(const _0xd23b46 of _0xc64963['ghsAttributes'])_0x4c8ec0['add'](_0xd23b46);}for(const _0x3e49d9 of _0x28a7fd)_0x434b68['registerBlockAttribute'](_0x3e49d9),_0x434b68['descriptionFactory']['registerAttributeLabel'](_0x3e49d9,o(_0x389667,'FORMAT_STYLE'));for(const _0xa77458 of _0x4c8ec0)_0x434b68['registerInlineAttribute'](_0xa77458),_0x434b68['descriptionFactory']['registerAttributeLabel'](_0xa77458,o(_0x389667,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x407e55=this['editor'],_0x49d059=_0x407e55['locale'];_0x407e55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c0a40=>{if('formatBlock'!=_0x4c0a40['type']&&'formatInline'!=_0x4c0a40['type'])return;const {data:_0x178f9d}=_0x4c0a40;return _0x178f9d&&'style'===_0x178f9d['commandName']?_0x178f9d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49d059,'*Set\x20format:*\x20%0',_0x178f9d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x49d059,'*Remove\x20format:*\x20%0',_0x178f9d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x8cf398{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x355cc7){super(_0x355cc7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x473f23=this['editor'],_0x22418e=_0x473f23['model']['document']['selection'];if(!_0x473f23['plugins']['has']('TableEditing'))return;const _0x48123e=_0x473f23['locale'],_0x554c73=_0x473f23['plugins']['get']('TrackChangesEditing'),_0x3cca1d=_0x473f23['plugins']['get']('TableUtils');_0x554c73['descriptionFactory']['registerElementLabel']('table',_0x5a3809=>o(_0x48123e,'ELEMENT_TABLE',_0x5a3809)),this['_setupColumnsRowsFixing'](),_0x554c73['enableCommand']('insertTable'),_0x554c73['enableCommand']('selectTableRow'),_0x554c73['enableCommand']('selectTableColumn');for(const _0x21c994 of['insertTableRowAbove','insertTableRowBelow']){const _0x1caf8c=_0x473f23['commands']['get'](_0x21c994);_0x554c73['enableCommand'](_0x21c994,_0x1ca857=>{_0x473f23['model']['change'](_0x4e852c=>{_0x1ca857();const _0xaa506='above'===_0x1caf8c['order'],_0x4c9dcf=_0x3cca1d['getSelectionAffectedTableCells'](_0x22418e),_0x52d0ca=_0x3cca1d['getRowIndexes'](_0x4c9dcf),_0x3ab786=_0xaa506?_0x52d0ca['first']-0x1:_0x52d0ca['last']+0x1,_0x25c5b8=_0x4c9dcf[0x0]['findAncestor']('table'),_0x2d966e=_0x3cca1d['createTableWalker'](_0x25c5b8,{'startRow':_0x3ab786,'endRow':_0x3ab786}),_0x33f000=Array['from'](_0x2d966e)['map'](_0x36b194=>_0x4e852c['createRangeOn'](_0x36b194['cell']));_0x554c73['markMultiRangeInsertion'](_0x33f000,'tableRow');});});}for(const _0x43d7e1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x258e7c=_0x473f23['commands']['get'](_0x43d7e1);_0x554c73['enableCommand'](_0x43d7e1,_0x3a4217=>{_0x473f23['model']['change'](_0xfd4424=>{_0x3a4217();const _0x159ace='left'===_0x258e7c['order'],_0x2dc4f9=_0x3cca1d['getSelectionAffectedTableCells'](_0x22418e),_0x31ccb7=_0x3cca1d['getColumnIndexes'](_0x2dc4f9),_0x25aa22=_0x159ace?_0x31ccb7['first']-0x1:_0x31ccb7['last']+0x1,_0x5bc356=_0x2dc4f9[0x0]['findAncestor']('table'),_0x384524=_0x3cca1d['createTableWalker'](_0x5bc356,{'startRow':0x0,'column':_0x25aa22,'includeAllSlots':!0x1}),_0x26f309=Array['from'](_0x384524)['map'](_0x346a5d=>_0xfd4424['createRangeOn'](_0x346a5d['cell']));_0x554c73['markMultiRangeInsertion'](_0x26f309,'tableColumn');});});}for(const _0x56e175 of['removeTableRow','removeTableColumn']){const _0x3df2a7=_0x56e175['substr'](0xb),_0x4813bf=_0x3df2a7['toLowerCase'](),_0x3d3947=_0x4813bf['substr'](0x0,0x3)+'span',_0x1f7196='table'+_0x3df2a7,_0x14cd67='min'+_0x3df2a7,_0x3c4903='max'+_0x3df2a7;_0x554c73['enableCommand'](_0x56e175,()=>{_0x473f23['model']['change'](_0x439721=>{const _0x3ef48c=_0x3cca1d['getSelectionAffectedTableCells'](_0x22418e),_0x3ff501=_0x3ef48c[0x0]['findAncestor']('table');let _0x3d4731;if('removeTableRow'==_0x56e175){const _0x27d811=_0x3cca1d['getRowIndexes'](_0x3ef48c);_0x3d4731={'startRow':_0x27d811['first'],'endRow':_0x27d811['last'],'includeAllSlots':!0x0};}else{const _0x522b96=_0x3cca1d['getColumnIndexes'](_0x3ef48c);_0x3d4731={'startColumn':_0x522b96['first'],'endColumn':_0x522b96['last'],'includeAllSlots':!0x0};}const _0x3c57c1=_0x3cca1d['createTableWalker'](_0x3ff501,_0x3d4731),_0x103359=Array['from'](_0x3c57c1)['map'](({cell:_0x3b4bc9})=>_0x3b4bc9),_0x2fe08c=be(_0x103359['filter'](_0x2e3324=>_0x2e3324['hasAttribute'](_0x3d3947))),_0x4b8c6e=be(_0x103359['filter'](_0x40f62e=>!_0x40f62e['hasAttribute'](_0x3d3947)))['map'](_0x215e98=>_0x439721['createRangeOn'](_0x215e98)),_0x2db54b=_0x554c73['markMultiRangeDeletion'](_0x4b8c6e,_0x1f7196);if(_0x2db54b&&('tableRow'==_0x2db54b['subType']||'tableColumn'==_0x2db54b['subType'])){const _0x3cfc27=this['_getSuggestionCoords'](_0x2db54b);for(const _0x3ddf1d of _0x2fe08c){const _0x3e4b56=_0x439721['createRangeOn'](_0x3ddf1d),_0x3c498d=_0x3cca1d['getCellLocation'](_0x3ddf1d),_0x4a35bb=_0x3ddf1d['getAttribute'](_0x3d3947)-0x1,_0x5c708b=_0x3cfc27[_0x14cd67],_0x464a27=_0x3cfc27[_0x3c4903];_0x5c708b<=_0x3c498d[_0x4813bf]&&_0x3c498d[_0x4813bf]+_0x4a35bb<=_0x464a27&&_0x2db54b['addRange'](_0x3e4b56);}}});});}function _0x6edeb3(_0x57c21d){const _0x474a2d=Array['from'](_0x22418e['getRanges']())['map'](_0x1e1c6d=>_0x142937['fromRange'](_0x1e1c6d));_0x473f23['model']['change'](_0x3f7633=>{const _0x73fe6b=_0x3f7633['batch'];_0x57c21d=_0x57c21d['filter'](_0x3a9ad5=>'$graveyard'!=_0x3a9ad5['root']['rootName']),_0x3f7633['setSelection'](_0x57c21d),_0x473f23['commands']['get']('removeTableRow')['refresh'](),_0x473f23['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x473f23['model']['enqueueChange'](()=>{_0x473f23['model']['enqueueChange'](_0x73fe6b,_0x174716=>{const _0x175b11=_0x474a2d['filter'](_0xee097a=>'$graveyard'!=_0xee097a['root']['rootName']);_0x175b11['length']>0x0&&_0x174716['setSelection'](_0x175b11);for(const _0x15a5f1 of _0x474a2d)_0x15a5f1['detach']();});});});}function _0x5d860c(_0x2da10b){_0x473f23['model']['change'](_0x4538b9=>{const _0x42c750=Array['from'](_0x22418e['getRanges']())['map'](_0x44667b=>_0x142937['fromRange'](_0x44667b)),_0x2bea73=[];for(const _0x1b125b of _0x2da10b)for(const _0x20a5f3 of _0x1b125b['getItems']({'shallow':!0x0}))_0x2bea73['push'](_0x20a5f3);for(const _0xe9ccfd of _0x2bea73)'$graveyard'!=_0xe9ccfd['root']['rootName']&&(_0x4538b9['setSelection'](_0x4538b9['createPositionAt'](_0xe9ccfd,0x0)),_0x473f23['commands']['get']('removeTableColumn')['refresh'](),_0x473f23['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x28e7dd=_0x42c750['filter'](_0x3d7eb1=>'$graveyard'!=_0x3d7eb1['root']['rootName']);_0x28e7dd['length']>0x0&&_0x4538b9['setSelection'](_0x28e7dd);for(const _0x462088 of _0x42c750)_0x462088['detach']();});}function _0x36744e(_0x5cb0fc,_0x43fa40){return _0x43fa40['every'](_0x2444c7=>_0x5cb0fc['some'](_0x5bfecd=>_0x5bfecd['end']['isEqual'](_0x2444c7['start'])||_0x2444c7['end']['isEqual'](_0x5bfecd['start'])));}function _0x4da5bb(_0x48dbf5,_0xb00411){return!_0x48dbf5['some'](_0x1f751a=>_0xb00411['some'](_0x23ff01=>_0x1f751a['isIntersecting'](_0x23ff01)))&&_0x48dbf5['some'](_0x430354=>_0xb00411['some'](_0x547900=>_0x430354['end']['isTouching'](_0x547900['start'])));}_0x473f23['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45ec1b,_0x431a9d,_0x1fcbdf)=>{if(!_0x1fcbdf['options']['showSuggestionHighlights'])return;const _0x4e755f=_0x431a9d['item'];if(!_0x4e755f)return;const _0x4668f2=_0x1fcbdf['mapper']['toViewElement'](_0x4e755f);function _0x423e18(_0x2e40e0){return Array['isArray'](_0x2e40e0)?_0x2e40e0:[_0x2e40e0];}_0x4668f2&&'tableCell'===_0x4e755f['name']&&_0x1ef68c(_0x4668f2,_0x1fcbdf['writer'],(_0x4df8ba,_0x5f3359,_0x359810)=>_0x359810['addClass'](_0x423e18(_0x5f3359['classes']),_0x4df8ba),(_0x5b7859,_0x2c8d36,_0x304988)=>_0x304988['removeClass'](_0x423e18(_0x2c8d36['classes']),_0x5b7859));},{'priority':'highest'}),_0x554c73['descriptionFactory']['registerDescriptionCallback'](_0x3d7aa0=>{if('insertion'!=_0x3d7aa0['type']&&'deletion'!=_0x3d7aa0['type'])return;const _0x27d3d4=_0x3d7aa0['getContainedElement']();if(null!=_0x27d3d4&&_0x27d3d4['is']('element','table')){if('insertion'==_0x3d7aa0['type']){const _0x189201=_0x3d7aa0['getItems']()['filter'](_0x1cbfc8=>_0x1cbfc8['is']('$textProxy'))['map'](_0x43595c=>_0x43595c['data']);if(_0x189201['length'])return{'type':'insertion','content':o(_0x48123e,'*Insert:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x189201['join']('\x20')+'\x22'))};}if('deletion'==_0x3d7aa0['type']){const _0x3ef327=_0x3d7aa0['getItems']()['filter'](_0xc236d=>_0xc236d['is']('$textProxy'))['map'](_0x16ee06=>_0x16ee06['data']);if(_0x3ef327['length'])return{'type':'deletion','content':o(_0x48123e,'*Remove:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ef327['join']('\x20')+'\x22'))};}}}),_0x554c73['descriptionFactory']['registerDescriptionCallback'](_0x38a3ed=>{if('tableRow'==_0x38a3ed['subType']){const _0x169a56=_0x38a3ed['getItems']()['filter'](_0x4323d9=>_0x4323d9['is']('$textProxy'))['map'](_0x1ba104=>_0x1ba104['data']),_0x3563fb=this['_getSuggestionCoords'](_0x38a3ed),_0x87e82d=_0x3563fb['maxRow']-_0x3563fb['minRow']+0x1;if('insertion'==_0x38a3ed['type'])return _0x169a56['length']?{'type':'insertion','content':o(_0x48123e,'*Insert:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x87e82d,'\x22'+_0x169a56['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48123e,'*Insert:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_ROW',_0x87e82d))};if('deletion'==_0x38a3ed['type'])return _0x169a56['length']?{'type':'deletion','content':o(_0x48123e,'*Remove:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x87e82d,'\x22'+_0x169a56['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48123e,'*Remove:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_ROW',_0x87e82d))};}if('tableColumn'==_0x38a3ed['subType']){const _0xd39476=_0x38a3ed['getItems']()['filter'](_0x343ddd=>_0x343ddd['is']('$textProxy'))['map'](_0x323367=>_0x323367['data']),_0x54958e=this['_getSuggestionCoords'](_0x38a3ed),_0x728450=_0x54958e['maxColumn']-_0x54958e['minColumn']+0x1;if('insertion'==_0x38a3ed['type'])return _0xd39476['length']?{'type':'insertion','content':o(_0x48123e,'*Insert:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x728450,'\x22'+_0xd39476['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48123e,'*Insert:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_COLUMN',_0x728450))};if('deletion'==_0x38a3ed['type'])return _0xd39476['length']?{'type':'deletion','content':o(_0x48123e,'*Remove:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x728450,'\x22'+_0xd39476['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48123e,'*Remove:*\x20%0',o(_0x48123e,'ELEMENT_TABLE_COLUMN',_0x728450))};}}),_0x554c73['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x6edeb3),_0x554c73['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x6edeb3),_0x554c73['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d860c),_0x554c73['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d860c),_0x554c73['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x36744e),_0x554c73['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x36744e),_0x554c73['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4da5bb),_0x554c73['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4da5bb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x267199=this['editor'],_0x23f847=_0x267199['model']['document']['selection'];return(_0x31b479,_0xa1397d)=>{_0x267199['model']['change'](_0x401007=>{const {commandName:_0x29b521,commandParams:_0x576bef}=_0xa1397d;let _0x59e53d=_0x31b479[0x0]['end']['nodeBefore'];_0x576bef&&_0x576bef[0x0]&&!0x1===_0x576bef[0x0]['forceValue']&&(_0x59e53d=_0x31b479[0x0]['start']['nodeAfter']);const _0xa9b907=_0x401007['createRangeIn'](_0x59e53d);if('$graveyard'==_0xa9b907['root']['rootName'])return;const _0xbe016f=Array['from'](_0x23f847['getRanges']())['map'](_0x500630=>_0x142937['fromRange'](_0x500630));_0x401007['setSelection'](_0xa9b907),_0x267199['commands']['get'](_0x29b521)['refresh'](),_0x576bef['push']({'forceDefaultExecution':!0x0}),_0x267199['execute'](_0x29b521,..._0x576bef);const _0x579a7d=_0xbe016f['filter'](_0x57354b=>'$graveyard'!=_0x57354b['root']['rootName']);_0x579a7d['length']>0x0&&_0x401007['setSelection'](_0x579a7d);for(const _0x80342a of _0xbe016f)_0x80342a['detach']();});};}['_getCoordsForCells'](_0x5ee3fe){const _0x25cc3b=this['editor']['plugins']['get']('TableUtils');let _0x135b47=Number['MAX_SAFE_INTEGER'],_0x292556=Number['MIN_SAFE_INTEGER'],_0x4ecea9=Number['MAX_SAFE_INTEGER'],_0x4b20de=Number['MIN_SAFE_INTEGER'];for(const _0x5f39ec of _0x5ee3fe){if('$graveyard'==_0x5f39ec['root']['rootName'])continue;const {row:_0x3c62dd,column:_0x431af2}=_0x25cc3b['getCellLocation'](_0x5f39ec),_0x4b1c4f=_0x5f39ec['hasAttribute']('rowspan')?_0x5f39ec['getAttribute']('rowspan')-0x1:0x0,_0x5c835b=_0x5f39ec['hasAttribute']('colspan')?_0x5f39ec['getAttribute']('colspan')-0x1:0x0;_0x135b47=_0x3c62dd<_0x135b47?_0x3c62dd:_0x135b47,_0x292556=_0x3c62dd+_0x4b1c4f>_0x292556?_0x3c62dd+_0x4b1c4f:_0x292556,_0x4ecea9=_0x431af2<_0x4ecea9?_0x431af2:_0x4ecea9,_0x4b20de=_0x431af2+_0x5c835b>_0x4b20de?_0x431af2+_0x5c835b:_0x4b20de;}return{'minRow':_0x135b47,'maxRow':_0x292556,'minColumn':_0x4ecea9,'maxColumn':_0x4b20de};}['_setupColumnsRowsFixing'](){const _0x256279=this['editor'],_0x4eb2a1=_0x256279['plugins']['get']('TrackChangesEditing'),_0xf75650=_0x256279['plugins']['get']('TableUtils');_0x256279['model']['document']['on']('change:data',()=>{const _0xdf5a23=Array['from'](_0x256279['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27e53c,data:_0x40abd4}of _0xdf5a23){const {group:_0x4a65ab,id:_0x1e7736,subType:_0x25332f}=_0x4eb2a1['_splitMarkerName'](_0x27e53c);if('suggestion'!=_0x4a65ab)continue;if(null!=_0x40abd4['oldRange'])continue;const _0x517f51=_0x4eb2a1['getSuggestion'](_0x1e7736);this['_tablePostFixingSubtypes']['includes'](_0x25332f)&&this['_tableSuggestions']['add'](_0x517f51);}},{'priority':'low'});const _0x53811c=(_0x45cf83,_0x1aa597)=>{let _0x5487c0=!0x1;const _0x345b22=_0x1aa597['createRangeOn'](_0x45cf83),_0xb9431b=_0x45cf83['findAncestor']('table'),_0x5f0528=_0xf75650['getCellLocation'](_0x45cf83);for(const _0x1cf1cc of this['_tableSuggestions']){const _0x3aadd5=_0x1cf1cc['subType'],_0x2c4adf=_0x3aadd5['startsWith']('tablePaste'),_0x2c47ad=_0x3aadd5['substr'](_0x2c4adf?0xa:0x5),_0x3f7872=_0x2c47ad['toLowerCase'](),_0x1aeac8=_0x3f7872['substr'](0x0,0x3)+'span',_0x46aacd='min'+_0x2c47ad,_0x47466c='max'+_0x2c47ad;if(!_0x1cf1cc['isInContent'])continue;if(_0xb9431b!=_0x1cf1cc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1cf1cc['isIntersectingWithRange'](_0x345b22))continue;const _0x1b7c68=_0x45cf83['hasAttribute'](_0x1aeac8)?_0x45cf83['getAttribute'](_0x1aeac8)-0x1:0x0,_0x4ec926=this['_getSuggestionCoords'](_0x1cf1cc),_0x23b22e=_0x4ec926[_0x46aacd],_0x30351e=_0x4ec926[_0x47466c];_0x23b22e<=_0x5f0528[_0x3f7872]&&_0x5f0528[_0x3f7872]+_0x1b7c68<=_0x30351e&&(_0x1cf1cc['addRange'](_0x345b22),_0x5487c0=!0x0);}return _0x5487c0;};_0x256279['model']['document']['registerPostFixer'](_0x2e7c77=>{let _0x53e035=!0x1;for(const _0x1ae1b0 of _0x256279['model']['document']['differ']['getChanges']())if('insert'==_0x1ae1b0['type']){if('tableRow'==_0x1ae1b0['name']){for(const _0x2aa1f0 of _0x1ae1b0['position']['nodeAfter']['getChildren']())_0x53e035=_0x53e035||_0x53811c(_0x2aa1f0,_0x2e7c77);}else'tableCell'==_0x1ae1b0['name']&&(_0x53e035=_0x53e035||_0x53811c(_0x1ae1b0['position']['nodeAfter'],_0x2e7c77));}return _0x53e035;});}['_getSuggestionCoords'](_0xf760c){return this['_getCoordsForCells'](_0xf760c['getRanges']()['map'](_0x1aee7f=>_0x1aee7f['start']['nodeAfter']));}}function be(_0x447318){return Array['from'](new Set(_0x447318)['values']());}class vt extends _0x8cf398{static get['requires'](){return[It];}['afterInit'](){const _0x4a715e=this['editor'],_0x2b5e97=_0x4a715e['model']['document']['selection'],_0x365587=_0x4a715e['locale'];if(!_0x4a715e['plugins']['has']('TableEditing'))return;const _0x4190df=_0x4a715e['plugins']['get']('TrackChangesEditing'),_0x36c6bf=_0x4a715e['plugins']['get']('TableUtils'),_0x5e9f14=_0x4a715e['plugins']['get'](It);_0x5e9f14['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4190df['enableCommand']('mergeTableCells',()=>{const _0x57a25f=_0x36c6bf['getSelectionAffectedTableCells'](_0x4a715e['model']['document']['selection']);_0x4a715e['model']['change'](()=>{_0x4190df['markMultiRangeBlockFormat'](_0x57a25f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4a715e['commands']['get']('mergeTableCells')['on']('execute',(_0x2ad756,_0x370d5b)=>{_0x4a715e['commands']['get']('trackChanges')['value']&&(_0x370d5b['length']>0x0&&_0x370d5b[_0x370d5b['length']-0x1]&&_0x370d5b[_0x370d5b['length']-0x1]['forceDefaultExecution']||_0x4190df['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2ad756['stop']());},{'priority':'highest'});for(const _0x27de32 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x678b02=_0x4a715e['commands']['get'](_0x27de32);_0x4190df['enableCommand'](_0x27de32,()=>{const _0x1d5b09=_0x4a715e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3af8a6=>_0x3af8a6['is']('element','tableCell')),_0x5d91c6=_0x678b02['value'];_0x4a715e['model']['change'](()=>{_0x4190df['markMultiRangeBlockFormat']([_0x1d5b09,_0x5d91c6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x33da89 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x33486b=_0x4a715e['commands']['get'](_0x33da89);_0x4190df['enableCommand'](_0x33da89,()=>{const _0x835369=_0x36c6bf['getSelectionAffectedTableCells'](_0x4a715e['model']['document']['selection'])[0x0],_0x25b005=_0x835369['findAncestor']('table'),{column:_0x44d5ad,row:_0x34f9c6}=_0x36c6bf['getCellLocation'](_0x835369);let _0x5aa1f0=[];if('horizontally'==_0x33486b['direction']){const _0x2fcda4=_0x36c6bf['createTableWalker'](_0x25b005,{'startRow':_0x34f9c6,'endRow':_0x34f9c6,'includeAllSlots':!0x0});_0x5aa1f0=Array['from'](_0x2fcda4)['map'](_0x35a054=>_0x35a054['cell']);}else{const _0x29f88d=_0x36c6bf['createTableWalker'](_0x25b005,{'column':_0x44d5ad,'includeAllSlots':!0x0});_0x5aa1f0=Array['from'](_0x29f88d)['map'](_0x1055ed=>_0x1055ed['cell']);}_0x4a715e['model']['change'](_0x53e4f7=>{_0x4190df['markBlockFormat'](_0x53e4f7['createRangeOn'](_0x835369),{'commandName':_0x33da89,'commandParams':[]},_0x5aa1f0,_0x33da89);});});}_0x4190df['descriptionFactory']['registerDescriptionCallback'](_0x82b8d9=>{if('formatBlock'!=_0x82b8d9['type']&&'formatInline'!=_0x82b8d9['type'])return;const {data:_0x10c20c}=_0x82b8d9;return _0x10c20c&&'mergeTableCells'==_0x10c20c['commandName']?{'type':'format','content':o(_0x365587,'*Merge\x20cells*')}:void 0x0;}),_0x4190df['descriptionFactory']['registerDescriptionCallback'](_0x5ea95d=>{if('formatBlock'!=_0x5ea95d['type']&&'formatInline'!=_0x5ea95d['type'])return;const {data:_0x36b364}=_0x5ea95d;return _0x36b364?'splitTableCellVertically'==_0x36b364['commandName']?{'type':'format','content':o(_0x365587,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36b364['commandName']?{'type':'format','content':o(_0x365587,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x47c80a=_0x5e9f14['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d3f48 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4190df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d3f48,'accept',_0x47c80a);for(const _0x522251 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4190df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x522251,'accept',_0x47c80a);_0x4190df['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1e5d39=>{_0x4a715e['model']['change'](_0x56a42a=>{const _0x4c1f72=Array['from'](_0x2b5e97['getRanges']())['map'](_0x336539=>_0x142937['fromRange'](_0x336539));_0x56a42a['setSelection'](_0x1e5d39),_0x4a715e['commands']['get']('mergeTableCells')['refresh'](),_0x4a715e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xfbd20a=_0x4c1f72['filter'](_0x156336=>'$graveyard'!=_0x156336['root']['rootName']);_0xfbd20a['length']>0x0&&_0x56a42a['setSelection'](_0xfbd20a);for(const _0x5e02d6 of _0x4c1f72)_0x5e02d6['detach']();});});for(const _0x5792e3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x514672=_0x4a715e['commands']['get'](_0x5792e3);_0x514672['on']('set:isEnabled',(_0x1c263c,_0x140385,_0x13f2cd)=>{if(_0x13f2cd){const _0x2fea77=_0x4a715e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x36ec5b=>_0x36ec5b['is']('element','tableCell'));this['_areMergableCells'](_0x514672['value'],_0x2fea77)||(_0x1c263c['return']=!0x1,_0x1c263c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4bdfce=this['editor']['commands']['get']('mergeTableCells'),_0x5682e5=this['editor']['plugins']['get']('TableUtils');if(!_0x4bdfce['isEnabled'])return!0x1;const _0x4aa54e=_0x5682e5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x46b262 of _0x4aa54e)for(const _0xe39b2 of _0x4aa54e)if(_0x46b262!=_0xe39b2&&!this['_areMergableCells'](_0x46b262,_0xe39b2))return!0x1;return!0x0;}['_areMergableCells'](_0x309f6b,_0x30bd6f){const _0x7ea92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53ce6d=this['editor']['model']['createRangeOn'](_0x309f6b),_0x5edc49=this['editor']['model']['createRangeOn'](_0x30bd6f),_0x3890f6=new Set(),_0x106c11=new Set();for(const _0x415c97 of _0x7ea92['getSuggestions']())if(('insertion'==_0x415c97['type']||'deletion'==_0x415c97['type']||'mergeTableCells'==_0x415c97['subType'])&&_0x415c97['isInContent']){for(const _0x48e80f of _0x415c97['getRanges']())_0x48e80f['containsRange'](_0x53ce6d,!0x0)&&_0x3890f6['add'](_0x415c97['type']+':'+_0x415c97['author']['id']),_0x48e80f['containsRange'](_0x5edc49,!0x0)&&_0x106c11['add'](_0x415c97['type']+':'+_0x415c97['author']['id']);}if(_0x3890f6['size']!=_0x106c11['size'])return!0x1;for(const _0x3f4ac2 of _0x3890f6)if(!_0x106c11['has'](_0x3f4ac2))return!0x1;return!0x0;}}class Ct extends _0x8cf398{static get['requires'](){return[It];}['afterInit'](){const _0x356eae=this['editor'];if(!_0x356eae['plugins']['has']('TableEditing'))return;const _0x54b200=_0x356eae['locale'],_0x2c6891=_0x356eae['plugins']['get']('TrackChangesEditing');_0x2c6891['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2c6891['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2c6891['registerBlockAttribute']('headingRows'),_0x2c6891['registerBlockAttribute']('headingColumns'),_0x2c6891['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x54b200,'FORMAT_HEADER_ROW')),_0x2c6891['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x54b200,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d8a6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x172880=this['editor']['plugins']['get']('TableUtils'),_0x5b963d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x3b0e30({showActiveMarker:_0x2e5386=!0x0,setDataAttribute:_0x598abf=!0x0}={}){return(_0x5d1123,_0x455af2,_0x20d2ac)=>{const {type:_0x52db5a,id:_0x42ea46}=_0x1d8a6b['_splitMarkerName'](_0x455af2['markerName']),_0x335b4d=_0x1d8a6b['getSuggestion'](_0x42ea46),_0x516991=_0x335b4d['data'];if('formatBlock'!=_0x335b4d['type']||!_0x516991||'setTableColumnHeader'!=_0x516991['commandName'])return;if(_0x455af2['item'])return void _0x5d1123['stop']();if(!_0x20d2ac['consumable']['consume'](_0x455af2['markerRange'],_0x5d1123['name']))return;const _0x1c0296=_0x455af2['markerRange']['start']['nodeAfter'],_0x4b249a=_0x455af2['markerRange']['end']['nodeBefore'],_0x8a69bc=_0x1c0296['parent']['parent'],{column:_0x5a5ba6}=_0x172880['getCellLocation'](_0x1c0296),{column:_0x5bba1f}=_0x172880['getCellLocation'](_0x4b249a);for(let _0x51295c=_0x5a5ba6;_0x51295c<=_0x5bba1f;_0x51295c++){const _0x22aec8=_0x172880['createTableWalker'](_0x8a69bc,{'column':_0x51295c,'includeAllSlots':!0x1});for(const _0x32423a of _0x22aec8){const _0x40379d=_0x32423a['cell'],_0xf106e8=_0x20d2ac['mapper']['toViewElement'](_0x40379d);_0x20d2ac['writer']['addClass']('ck-suggestion-marker-'+_0x52db5a,_0xf106e8),_0x598abf&&_0x20d2ac['writer']['setAttribute']('data-suggestion',_0x42ea46,_0xf106e8),_0x20d2ac['mapper']['bindElementToMarker'](_0xf106e8,_0x455af2['markerName']),_0x2e5386&&(_0x1d8a6b['activeMarkers']['includes'](_0x455af2['markerName'])?_0x20d2ac['writer']['addClass']('ck-suggestion-marker--active',_0xf106e8):_0x20d2ac['writer']['removeClass']('ck-suggestion-marker--active',_0xf106e8));}}};}_0x1d8a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b963d),_0x1d8a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b963d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3b0e30(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15d8a9,_0x1fab3b,_0x1dd174)=>{_0x1dd174['options']['showSuggestionHighlights']&&_0x3b0e30({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x15d8a9,_0x1fab3b,_0x1dd174);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x28bb5c,_0x121d02,_0xaeb352)=>{const {type:_0x3fd04d,id:_0x13bf61}=_0x1d8a6b['_splitMarkerName'](_0x121d02['markerName']),_0x1d6991=_0x1d8a6b['getSuggestion'](_0x13bf61),_0x396cbd=_0x1d6991['data'];if('formatBlock'!=_0x1d6991['type']||!_0x396cbd||'setTableColumnHeader'!=_0x396cbd['commandName'])return;const _0x572210=_0xaeb352['mapper']['markerNameToElements'](_0x121d02['markerName']);if(_0x572210){for(const _0x3b9acf of _0x572210)_0xaeb352['writer']['removeClass']('ck-suggestion-marker-'+_0x3fd04d,_0x3b9acf),_0xaeb352['writer']['removeClass']('ck-suggestion-marker--active',_0x3b9acf),_0xaeb352['writer']['removeAttribute']('data-suggestion',_0x3b9acf),_0xaeb352['mapper']['unbindElementFromMarkerName'](_0x3b9acf,_0x121d02['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236fcf=this['editor'],_0x2ab488=_0x236fcf['locale'];function _0x576365(_0x4ad1e1){return{'type':'format','content':o(_0x2ab488,'*Format:*\x20%0',_0x4ad1e1)};}_0x236fcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22c5e9=>{if('formatBlock'!=_0x22c5e9['type'])return;const {data:_0x38c33f}=_0x22c5e9;if(_0x38c33f){if('setTableRowHeader'==_0x38c33f['commandName']){const _0x4ed30c=_0x38c33f['commandParams'][0x0]['forceValue'];return _0x576365(o(_0x2ab488,_0x4ed30c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x38c33f['commandName']){const _0x563a67=_0x38c33f['commandParams'][0x0]['forceValue'];return _0x576365(o(_0x2ab488,_0x563a67?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x48eb04=>[_0x48eb04,null]));class _t extends _0x8cf398{static get['requires'](){return[It];}['afterInit'](){const _0x387ab0=this['editor'];if(!_0x387ab0['plugins']['has']('TableClipboard'))return;const _0x1c5a2b=_0x387ab0['plugins']['get']('TrackChangesEditing'),_0x5e461d=_0x387ab0['plugins']['get']('TableUtils'),_0x3e8cd8=_0x387ab0['plugins']['get'](It),_0xd5c939=_0x387ab0['plugins']['get']('TableClipboard');_0x3e8cd8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x387ab0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x387ab0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xb28f6a=null;_0x387ab0['model']['on']('insertContent',(_0x1ffc88,_0x4217d4)=>{const [_0x378072,_0x526681]=_0x4217d4,_0x925e36=_0x4217d4[_0x4217d4['length']-0x1];_0x925e36&&_0x925e36['forceDefaultExecution']||_0x1c5a2b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x519355,_0x233a41,_0x420556,_0x49eba5,_0x61e533){if(_0x233a41&&!_0x233a41['is']('documentSelection'))return!0x1;const _0x259772=_0x61e533['getTableIfOnlyTableInContent'](_0x519355,_0x420556);if(!_0x259772||!Re(_0x259772,void 0x0,_0x49eba5))return!0x1;const _0xe9a5a0=_0x49eba5['getSelectionAffectedTableCells'](_0x420556['document']['selection']);if(!_0xe9a5a0['length'])return!0x1;const _0x5c94e3=_0xe9a5a0[0x0]['findAncestor']('table'),_0x217d5d=_0x49eba5['getRowIndexes'](_0xe9a5a0),_0x30c1fb=_0x49eba5['getColumnIndexes'](_0xe9a5a0),_0x14f596={'startRow':_0x217d5d['first'],'endRow':_0x217d5d['last'],'startColumn':_0x30c1fb['first'],'endColumn':_0x30c1fb['last']};return 0x1==_0xe9a5a0['length']&&(_0x14f596['endRow']+=_0x49eba5['getRows'](_0x259772)-0x1,_0x14f596['endColumn']+=_0x49eba5['getColumns'](_0x259772)-0x1),Re(_0x5c94e3,_0x14f596,_0x49eba5);}(_0x378072,_0x526681,_0x387ab0['model'],_0x5e461d,_0xd5c939)&&(_0x1ffc88['stop'](),_0xb28f6a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x387ab0['model']['change'](()=>{_0x387ab0['model']['insertContent'](_0x4217d4[0x0],_0x4217d4[0x1],_0x4217d4[0x2],{'forceDefaultExecution':!0x0});const _0x497038=_0x3862eb(),{rowInsertionRanges:_0x1c635c,columnInsertionRanges:_0x43f3ab,insertionRanges:_0x187efe,deletionRanges:_0x19522c,cells:_0x3bc2da}=_0xb28f6a;_0x1c635c['length']&&_0x1c5a2b['markMultiRangeInsertion'](_0x1c635c,'tablePasteRow',{'tablePasteChainId':_0x497038}),_0x43f3ab['length']&&_0x1c5a2b['markMultiRangeInsertion'](_0x43f3ab,'tablePasteColumn',{'tablePasteChainId':_0x497038}),_0x187efe['length']&&(_0x1c5a2b['markMultiRangeInsertion'](_0x187efe,'tablePaste',{'tablePasteChainId':_0x497038,'skipNestingCheck':!0x0}),_0x187efe['forEach'](_0x11ddf2=>_0x11ddf2['detach']?.())),_0x19522c['length']&&(_0x1c5a2b['markMultiRangeDeletion'](_0x19522c,'tablePaste',{'tablePasteChainId':_0x497038,'skipNestingCheck':!0x0}),_0x19522c['forEach'](_0x47e54f=>_0x47e54f['detach']?.()));const _0x71cd07=_0x1c5a2b['markMultiRangeBlockFormat'](_0x3bc2da['map'](({element:_0x15acbe})=>_0x15acbe),{'formatGroupId':_0x3862eb()},[],'tablePasteCell',{'tablePasteChainId':_0x497038});if(_0x71cd07){const _0x43105b=_0x71cd07['getMarkers'](),_0x437ae1=[];for(const {element:_0x396005,attributes:_0x59661d}of _0x3bc2da){if(!_0x59661d)continue;const _0x552365=_0x387ab0['model']['createRangeOn'](_0x396005),_0x1e8eea=_0x43105b['find'](_0x126c2e=>_0x126c2e['getRange']()['isEqual'](_0x552365));_0x1e8eea&&_0x437ae1['push']([_0x1e8eea['name'],_0x59661d]);}_0x437ae1['length']&&_0x71cd07['setAttribute']('markerAttributes',Object['fromEntries'](_0x437ae1));}_0xb28f6a=null;}));},{'priority':_0x58a317['high']+0xa}),_0x387ab0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x55e5a9,_0x4629b4)=>{const [_0x14bb18,_0x264876,,_0x2248d9]=_0x4629b4;if(!_0xb28f6a)return;_0x55e5a9['stop']();const _0x21a880=_0x14bb18['cell'],_0x6034a6=_0x264876,_0x51458e=ke(_0x21a880),_0x2f7bf2=ke(_0x6034a6);_0x55e5a9['return']=_0x21a880;let _0x41bf61=null,_0x281c58=null;if(_0x2f7bf2||_0x51458e){if(_0x51458e&&!_0x2f7bf2){_0x2248d9['remove'](_0x21a880['getChild'](0x0));for(const _0x53107e of Array['from'](_0x6034a6['getChildren']()))_0x2248d9['insert'](_0x53107e,_0x21a880,'end');const _0x49c884=_0xb28f6a['rowInsertionIndexes']['includes'](_0x14bb18['row']),_0x29db94=_0xb28f6a['columnInsertionIndexes']['includes'](_0x14bb18['column']);_0x49c884||_0x29db94||(_0x41bf61=_0x142937['fromRange'](_0x2248d9['createRangeIn'](_0x21a880)));}else _0x2f7bf2&&!_0x51458e&&(_0x281c58=_0x2248d9['createRangeIn'](_0x21a880));}else{const _0x9e15f3=_0x2248d9['createElement']('tableCellSuggestion'),_0x3ae71c=_0x2248d9['createElement']('tableCellSuggestion');_0x2248d9['wrap'](_0x2248d9['createRangeIn'](_0x21a880),_0x3ae71c),_0x2248d9['insert'](_0x9e15f3,_0x21a880,0x0);for(const _0x4be60c of Array['from'](_0x6034a6['getChildren']()))_0x2248d9['insert'](_0x4be60c,_0x9e15f3,'end');_0x41bf61=_0x142937['fromRange'](_0x2248d9['createRangeOn'](_0x9e15f3)),_0x281c58=_0x142937['fromRange'](_0x2248d9['createRangeOn'](_0x3ae71c));}const _0x21410c=Array['from'](_0x6034a6['getAttributes']())['filter'](([_0x3cfef7])=>Pe['includes'](_0x3cfef7));_0xb28f6a['cells']['push']({'element':_0x21a880,'attributes':_0x21410c['length']?Object['fromEntries'](_0x21410c):null}),_0x41bf61&&_0xb28f6a['insertionRanges']['push'](_0x41bf61),_0x281c58&&_0xb28f6a['deletionRanges']['push'](_0x281c58);},{'priority':'high'}),_0x5e461d['on']('insertColumns',(_0x1bf190,_0x37e15b)=>{const [_0x149d77,_0x2eabeb={}]=_0x37e15b;if(!_0xb28f6a)return;const _0x482a12=_0x2eabeb['at']||0x0,_0x132641=_0x2eabeb['columns']||0x1;_0xb28f6a['columnInsertionIndexes']=new Array(_0x132641)['fill'](_0x482a12)['map']((_0x258871,_0x49f86a)=>_0x258871+_0x49f86a);for(const {cell:_0xc02209}of _0x5e461d['createTableWalker'](_0x149d77,{'startColumn':_0x482a12,'endColumn':_0x482a12+_0x132641-0x1}))_0xb28f6a['columnInsertionRanges']['push'](_0x387ab0['model']['createRangeOn'](_0xc02209));},{'priority':'low'}),_0x5e461d['on']('insertRows',(_0x3e0ec9,_0x2346e8)=>{const [_0x5ec9f5,_0x44d6e5={}]=_0x2346e8;if(!_0xb28f6a)return;const _0x5124c7=_0x44d6e5['at']||0x0,_0x30a9a7=_0x44d6e5['rows']||0x1;_0xb28f6a['rowInsertionIndexes']=new Array(_0x30a9a7)['fill'](_0x5124c7)['map']((_0x2776f1,_0x5455ec)=>_0x2776f1+_0x5455ec);for(const {cell:_0x49d25a}of _0x5e461d['createTableWalker'](_0x5ec9f5,{'startRow':_0x5124c7,'endRow':_0x5124c7+_0x30a9a7-0x1}))_0xb28f6a['rowInsertionRanges']['push'](_0x387ab0['model']['createRangeOn'](_0x49d25a));},{'priority':'low'}),_0x1c5a2b['descriptionFactory']['registerDescriptionCallback'](_0x4c8898=>{if(_0x4c8898['subType']&&_0x4c8898['subType']['startsWith']('tablePaste'))return _0x4c8898['previous']?{}:{'type':'insertion','content':o(_0x387ab0['locale'],'*Replace\x20table\x20cells*')};});const _0x5136d9=()=>!0x1;for(const _0x467e5e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1c5a2b['_suggestionFactory']['registerCustomCallback']('insertion',_0x467e5e,'join',_0x5136d9),_0x1c5a2b['_suggestionFactory']['registerCustomCallback']('deletion',_0x467e5e,'join',_0x5136d9),_0x1c5a2b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x467e5e,'join',_0x5136d9);_0x1c5a2b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5136d9),_0x1c5a2b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e5d05,_0x232393,_0x2c0b40)=>{const _0x32000c=_0x3e5d05['map'](_0x33ba5d=>_0x33ba5d['getContainedElement']())['filter'](_0xab7ca5=>_0xab7ca5),_0x2ebb88=new Map(_0x32000c['map'](_0x3bfdc4=>[_0x3bfdc4,null]));if(_0xb28f6a){for(const {element:_0x14854e,attributes:_0x4feb1a}of _0xb28f6a['cells'])_0x4feb1a&&_0x2ebb88['set'](_0x14854e,_0x4feb1a);}else{if(_0x2c0b40&&_0x2c0b40['markerAttributes'])for(const [_0x4dbd11,_0x5cbc19]of Object['entries'](_0x2c0b40['markerAttributes'])){const _0x568319=_0x387ab0['model']['markers']['get'](_0x4dbd11),_0x1798e6=_0x568319?_0x568319['getRange']()['getContainedElement']():null;_0x1798e6&&_0x2ebb88['set'](_0x1798e6,_0x5cbc19);}}_0x387ab0['model']['change'](_0xe74377=>{for(const [_0x431816,_0x4c667e]of _0x2ebb88)_0xe74377['setAttributes']({...we,..._0x4c667e},_0x431816);});});const _0xb24d6d=(_0x1a786e,_0x5b5843)=>{_0x1c5a2b['_suggestionFactory']['registerCustomCallback'](_0x1a786e,'tablePaste',_0x5b5843,(_0xdd3dd0,_0x4b3899,_0x57f9f5)=>{_0x387ab0['model']['change'](_0x5ba899=>{const _0x572cb2=[];for(const _0x48fcb2 of _0xdd3dd0){const _0x6e9148=_0x48fcb2['start']['nodeAfter'];_0x6e9148['is']('element','tableCellSuggestion')&&_0x572cb2['push'](_0x6e9148);}_0x1c5a2b['_suggestionFactory']['getSuggestionCallback'](_0x1a786e,null,_0x5b5843)(_0xdd3dd0,_0x4b3899,_0x57f9f5);for(const _0x1792ea of _0x572cb2)'$graveyard'!=_0x1792ea['root']['rootName']&&_0x5ba899['unwrap'](_0x1792ea);});});};_0xb24d6d('insertion','accept'),_0xb24d6d('insertion','discard'),_0xb24d6d('deletion','accept'),_0xb24d6d('deletion','discard'),_0x1c5a2b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2feb64=>{const _0x531846=_0x2feb64['map'](_0x410613=>_0x410613['getContainedElement']()),_0x1f057a=_0x531846[0x0]['findAncestor']('table'),{minRow:_0x221444,maxRow:_0x31f2e6}=_0x3e8cd8['_getCoordsForCells'](_0x531846);_0x5e461d['removeRows'](_0x1f057a,{'at':_0x221444,'rows':_0x31f2e6-_0x221444+0x1});}),_0x1c5a2b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x585cab=>{const _0x54f83f=_0x585cab['map'](_0x4579ec=>_0x4579ec['getContainedElement']()),_0x4275d4=_0x54f83f[0x0]['findAncestor']('table'),{minColumn:_0x17a524,maxColumn:_0x11cdae}=_0x3e8cd8['_getCoordsForCells'](_0x54f83f);_0x5e461d['removeColumns'](_0x4275d4,{'at':_0x17a524,'columns':_0x11cdae-_0x17a524+0x1});});const _0x16c8ed=(_0x15e45c,_0x14918b)=>{if(!_0x14918b['subType']||!_0x14918b['subType']['startsWith']('tablePaste'))return;const _0x5dbf70=_0x14918b['attributes']['tablePasteChainId'],_0x52c422=_0x1c5a2b['getSuggestions']()['filter'](_0x490758=>_0x490758['isInContent']&&_0x490758['attributes']&&_0x490758['attributes']['tablePasteChainId']==_0x5dbf70);_0x52c422['length']&&_0x14918b['getAllAdjacentSuggestions']()['length']!=_0x52c422['length']&&_0x52c422['reduce']((_0x29832c,_0x44cdc9)=>(_0x29832c['next']=_0x44cdc9,_0x44cdc9['previous']=_0x29832c,_0x44cdc9));};function _0x55cfc1(_0xd291f6,_0x29cad9=!0x0){const {id:_0x5d13c6,authorId:_0x27d52a}=_0x1c5a2b['_splitMarkerName'](_0xd291f6['markerName']),_0x54feee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x463d4c=_0x1c5a2b['activeMarkers']['includes'](_0xd291f6['markerName']);return _0x463d4c&&_0x54feee['push']('ck-suggestion-marker--active'),{'classes':_0x54feee,'attributes':{'data-suggestion':_0x5d13c6,'data-author-id':_0x27d52a},'priority':_0x463d4c&&_0x29cad9?0xbc2:0xbb8};}_0x1c5a2b['on']('suggestionLoaded',_0x16c8ed,{'priority':'high'}),_0x1c5a2b['on']('suggestionUnloaded',_0x16c8ed,{'priority':'high'}),_0x387ab0['model']['document']['registerPostFixer'](()=>{let _0x58fc6e=!0x1;const _0xeedbbb=Array['from'](_0x387ab0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48ac7d,data:_0x48a976}of _0xeedbbb){const {group:_0x1d7f84,type:_0x3583d5,id:_0x3c3631}=_0x1c5a2b['_splitMarkerName'](_0x48ac7d);if('suggestion'!=_0x1d7f84||'deletion'!=_0x3583d5||_0x48a976['oldRange'])continue;if(!_0x1c5a2b['hasSuggestion'](_0x3c3631))continue;const _0x2bad34=_0x1c5a2b['getSuggestion'](_0x3c3631)['getRanges'](),_0x422d3f=_0x387ab0['plugins']['get']('Users')['me'];for(const _0x1fb8f9 of _0x1c5a2b['getSuggestions']()){if(!_0x1fb8f9['isInContent']||_0x1fb8f9['author']!=_0x422d3f)continue;if('formatBlock'!=_0x1fb8f9['type']||'tablePasteCell'!=_0x1fb8f9['subType'])continue;if(_0x1fb8f9['getRanges']()['every'](_0x285f7a=>_0x2bad34['some'](_0x142365=>_0x142365['containsRange'](_0x285f7a,!0x0)))){for(const _0x539cc6 of _0x1fb8f9['getAllAdjacentSuggestions']())_0x539cc6['isInContent']&&(_0x539cc6['discard'](),_0x58fc6e=!0x0);}}}return _0x58fc6e;}),_0x387ab0['model']['document']['registerPostFixer'](_0xd6de22=>{const _0x274362=_0x387ab0['commands']['get']('redo');if(!_0x274362||!_0x274362['_createdBatches']['has'](_0xd6de22['batch']))return!0x1;let _0x34985f=!0x1;const _0x7edd08=_0x387ab0['plugins']['get']('Users')['me'],_0x41f2b4=_0x387ab0['model']['document']['differ']['getChanges'](),_0x5dc6b0=Array['from'](_0x387ab0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e1563,data:_0xd35380})=>{const {group:_0x26fe49,subType:_0x248c73,authorId:_0x1b8727}=_0x1c5a2b['_splitMarkerName'](_0x1e1563);return'suggestion'==_0x26fe49&&'tablePaste'==_0x248c73&&_0x1b8727==_0x7edd08['id']&&!_0xd35380['oldRange'];});for(const _0x39d3c4 of _0x41f2b4){if('insert'!=_0x39d3c4['type']||'tableCellSuggestion'!=_0x39d3c4['name']||0x1!=_0x39d3c4['length'])continue;const _0x59a38b=_0xd6de22['createRange'](_0x39d3c4['position'],_0x39d3c4['position']['getShiftedBy'](0x1));if(!_0x5dc6b0['find'](({data:_0x2ab804})=>_0x2ab804['newRange']['isEqual'](_0x59a38b))){for(const {name:_0x20643e,data:_0x451039}of _0x5dc6b0)if(_0x59a38b['containsRange'](_0x451039['newRange'])){_0xd6de22['updateMarker'](_0x20643e,{'range':_0x59a38b}),_0x34985f=!0x0;break;}}}return _0x34985f;}),_0x387ab0['model']['document']['registerPostFixer'](_0x33d449=>{let _0x347f11=!0x1;const _0xc655d4=_0x387ab0['plugins']['get']('Users')['me'],_0x5870e5=_0x1c5a2b['getSuggestions']()['filter'](_0x26c963=>_0x26c963['isInContent']&&_0x26c963['author']==_0xc655d4),_0x4021c0=new Set(),_0x78c29f=new Set();for(const _0x315b8d of _0x5870e5)if('tablePaste'==_0x315b8d['subType'])for(const _0x3bdc82 of _0x315b8d['getMarkers']()){const _0x2af58e=_0x3bdc82['getRange']()['getContainedElement']();if(_0x2af58e){if(_0x2af58e['is']('element','tableCellSuggestion')&&ke(_0x2af58e)){_0x315b8d['removeMarker'](_0x3bdc82['name']),_0x4021c0['add'](_0x2af58e),_0x347f11=!0x0;const _0xbee9ec=_0x2af58e['nextSibling'],_0xc0c1d0=_0x2af58e['previousSibling'],_0x3bbd29=_0xbee9ec&&_0xbee9ec['is']('element','tableCellSuggestion'),_0x2b78e5=_0xc0c1d0&&_0xc0c1d0['is']('element','tableCellSuggestion');_0x3bbd29&&!_0x4021c0['has'](_0xbee9ec)&&_0x78c29f['add'](_0xbee9ec),_0x2b78e5&&!_0x4021c0['has'](_0xc0c1d0)&&_0x78c29f['add'](_0xc0c1d0);}else _0x2af58e['is']('element','paragraph')&&_0x2af58e['isEmpty']&&(_0x315b8d['removeMarker'](_0x3bdc82['name']),_0x347f11=!0x0);}}else{if('tablePasteCell'==_0x315b8d['subType']){if(!_0x315b8d['attributes']||!_0x315b8d['attributes']['tablePasteChainId'])continue;const _0x388a7c=_0x315b8d['attributes']['markerAttributes'];if(_0x388a7c&&Object['keys'](_0x388a7c)['length'])continue;const _0x263310=_0x315b8d['attributes']['tablePasteChainId'];let _0x3b59ab=!0x0,_0x1231eb=!0x0;for(const _0x250b0f of _0x5870e5)if(_0x250b0f['subType']&&_0x250b0f['subType']['startsWith']('tablePaste')){if(!_0x250b0f['attributes']['tablePasteChainId']){_0x1231eb=!0x1;break;}if(_0x250b0f['id']!=_0x315b8d['id']&&_0x250b0f['attributes']['tablePasteChainId']==_0x263310){_0x3b59ab=!0x1;break;}}_0x1231eb&&_0x3b59ab&&(_0x315b8d['removeMarkers'](),_0x347f11=!0x0);}}for(const _0xefec59 of _0x4021c0)_0x33d449['remove'](_0xefec59);for(const _0x3ffb30 of _0x78c29f)_0x33d449['unwrap'](_0x3ffb30);return _0x347f11;}),_0x387ab0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c835f,_0x22a308)=>_0x55cfc1(_0x4c835f),'converterPriority':'high'}),_0x387ab0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3f68e0,_0x147125)=>_0x147125['options']['showSuggestionHighlights']?_0x55cfc1(_0x3f68e0,!0x1):null,'converterPriority':'high'});const _0x9723c0=_0x387ab0['editing']['view'];this['listenTo'](_0x9723c0['document'],'clipboardOutput',(_0x5c3185,_0x5b2943)=>{const _0x1981ec=[];for(const _0x41ad86 of _0x9723c0['createRangeIn'](_0x5b2943['content'])['getItems']())_0x41ad86['is']('element','suggestion-td')&&_0x1981ec['push'](_0x41ad86);_0x9723c0['change'](_0x33d7d7=>{for(const _0xfa5811 of _0x1981ec)_0x33d7d7['move'](_0x33d7d7['createRangeIn'](_0xfa5811),_0x33d7d7['createPositionBefore'](_0xfa5811)),_0x33d7d7['remove'](_0xfa5811);});});}}function ke(_0x17e1e6){if(_0x17e1e6['isEmpty'])return!0x0;const _0xf81393=_0x17e1e6['getChild'](0x0);return _0xf81393['is']('element','paragraph')&&_0xf81393['isEmpty'];}function Re(_0x39243a,_0x433d26={},_0x3b0b6f){for(const {isAnchor:_0x36b285,cellHeight:_0x440d4d,cellWidth:_0x448bf9}of _0x3b0b6f['createTableWalker'](_0x39243a,{'includeAllSlots':!0x0,..._0x433d26}))if(!_0x36b285||0x1!=_0x440d4d||0x1!=_0x448bf9)return!0x1;return!0x0;}class Nt extends _0x8cf398{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a8d66=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a8d66['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a8d66['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a8d66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a8d66['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a8d66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a8d66['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1bb8c9,_0x1c5556){const _0x3b4b0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x203bd6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54af38=_0x1c5556['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30beb2=_0x203bd6['getColumnGroupElement'](_0x54af38);let _0x1c060c=_0x30beb2?_0x203bd6['getTableColumnsWidths'](_0x30beb2):null,_0x158ea0=_0x54af38['getAttribute']('tableWidth')||null;const _0x588949=_0x1c5556['tableWidth']||_0x158ea0,_0x57662c=_0x1c5556['columnWidths']||_0x1c060c,_0x51a3df=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c82f1 of _0x3b4b0a['getSuggestions']()){const _0x1f533f=_0x1c82f1['getContainedElement']();if('resizeTable'===_0x1c82f1['subType']&&_0x1f533f===_0x54af38){_0x1c82f1['author']!==_0x51a3df&&_0x1c82f1['discard']();const _0x53fd6f=_0x1c82f1['data']['commandParams'];_0x158ea0=_0x53fd6f[0x0]['tableWidth'],_0x1c060c=_0x53fd6f[0x0]['columnWidths'];break;}}_0x1bb8c9({'table':_0x54af38,'tableWidth':_0x588949,'columnWidths':_0x57662c}),_0x3b4b0a['markBlockFormat'](_0x54af38,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x158ea0,'columnWidths':_0x1c060c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2c36db){if('formatBlock'!=_0x2c36db['type']&&'formatInline'!=_0x2c36db['type'])return;const {data:_0x32d0d9}=_0x2c36db;if(_0x32d0d9&&'resizeTable'===_0x32d0d9['formatGroupId']){const _0x197e06='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x197e06)};}}}class Dt extends _0x8cf398{['afterInit'](){const _0x499dd1=this['editor'];_0x499dd1['plugins']['has']('Template')&&_0x499dd1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x8cf398{['afterInit'](){const _0x2201ae=this['editor'];if(!_0x2201ae['commands']['get']('insertTableOfContents'))return;_0x2201ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa97047=_0x2201ae['plugins']['get']('TrackChangesEditing'),_0x19db31=_0x2201ae['locale'];_0xa97047['descriptionFactory']['registerElementLabel']('tableOfContents',_0x90f649=>o(_0x19db31,'ELEMENT_TABLE_OF_CONTENTS',_0x90f649));}}class $t extends _0x8cf398{['afterInit'](){const _0x79ff5c=this['editor'];if(!_0x79ff5c['plugins']['has']('Title'))return;const _0x321611=_0x79ff5c['plugins']['get']('TrackChangesEditing');_0x321611['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x79ff5c['locale'],'ELEMENT_TITLE')),_0x79ff5c['model']['document']['registerPostFixer'](_0x5d17c0=>{let _0x23c387=!0x1;const _0x3ca03a=Array['from'](_0x79ff5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x304dc6,data:_0x5cbdc4}of _0x3ca03a){const {group:_0x4e1384}=_0x321611['_splitMarkerName'](_0x304dc6);if('suggestion'!==_0x4e1384||!_0x5cbdc4['newRange'])continue;const _0x12a1c8=_0x5cbdc4['newRange'],_0x1aa42e=_0x12a1c8['end']['nodeBefore'];if(!_0x1aa42e||!_0x1aa42e['is']('element','title-content'))continue;if(!_0x12a1c8['start']['isTouching'](_0x12a1c8['end']))continue;const _0x42abf6=_0x79ff5c['model']['schema']['getNearestSelectionRange'](_0x12a1c8['end'],'forward');if(_0x42abf6&&_0x42abf6['isCollapsed']){const _0xcbc2e7=_0x5d17c0['createRange'](_0x12a1c8['start'],_0x42abf6['start']);_0xcbc2e7['isEqual'](_0x12a1c8)||(_0x5d17c0['updateMarker'](_0x304dc6,{'range':_0xcbc2e7}),_0x23c387=!0x0);}_0x23c387||(_0x5d17c0['removeMarker'](_0x304dc6),_0x23c387=!0x0);}return _0x23c387;});}}class Bt extends _0x8cf398{['afterInit'](){const _0x3e117d=this['editor'],_0x251a09=_0x3e117d['plugins']['get']('TrackChangesEditing');_0x3e117d['plugins']['has']('UndoEditing')&&(_0x251a09['enableCommand']('undo'),_0x251a09['enableCommand']('redo'));}}class xt extends _0x8cf398{static get['requires'](){return[It];}['afterInit'](){const _0x12eda8=this['editor'];if(!_0x12eda8['plugins']['has']('TableCaptionEditing'))return;_0x12eda8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x8cf398{['tableProperties'];['tableCellProperties'];constructor(_0x5e9675){super(_0x5e9675),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 _0x4b24d8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x292155 of this['tableProperties'])_0x4b24d8['enableCommand'](_0x292155,(_0x21a6d8,_0x1d853d)=>{const _0x44f2ce=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x292155,[_0x44f2ce],this['tableProperties'],'tableProperties',_0x21a6d8,_0x1d853d);});_0x4b24d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4b24d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b24d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x34780d,_0x4af251)=>this['handleDiscardAction'](this['tableProperties'],_0x34780d,_0x4af251)),_0x4b24d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1dfb3d of this['tableCellProperties'])_0x4b24d8['enableCommand'](_0x1dfb3d,(_0x4c51b3,_0x540e7c)=>{const _0x295bec=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1dfb3d,_0x295bec,this['tableCellProperties'],'tableCellProperties',_0x4c51b3,_0x540e7c);});_0x4b24d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4b24d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b24d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x23198a,_0x184919)=>this['handleDiscardAction'](this['tableCellProperties'],_0x23198a,_0x184919)),_0x4b24d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4b24d8['descriptionFactory']['registerDescriptionCallback'](_0x43ee2f=>this['handleSuggestionDescription'](_0x43ee2f));}['_handlePropertyChange'](_0x1be510,_0x3b9ca4,_0x949b69,_0x4ad622,_0x11752a,_0x799170){const _0x38256b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x799170['batch'],()=>{for(const _0x15a7a4 of _0x3b9ca4){if(this['_getSuggestion'](_0x15a7a4,_0x4ad622))_0x11752a(_0x799170);else{const _0x4cea96={};for(const _0x58ea27 of _0x949b69){const _0x39b142=_0x15a7a4['getAttribute'](_0x58ea27);void 0x0!==_0x39b142&&(_0x4cea96[_0x58ea27]=_0x39b142);}_0x11752a(_0x799170),_0x38256b['markBlockFormat'](_0x15a7a4,{'commandParams':[_0x4cea96]},[],_0x4ad622);}}});}['handleDiscardAction'](_0x122790,_0x1c99f9,_0x2fda86){const _0x3fa58d=_0x1c99f9[0x0]['start']['nodeAfter'],_0x4c79e6=_0x2fda86['commandParams'][0x0];this['editor']['model']['change'](_0x3d8d0d=>{for(const _0x420836 of _0x122790)void 0x0!==_0x4c79e6[_0x420836]?_0x3d8d0d['setAttribute'](_0x420836,_0x4c79e6[_0x420836],_0x3fa58d):_0x3d8d0d['removeAttribute'](_0x420836,_0x3fa58d);});}['handleSuggestionDescription'](_0x2f327c){if(_0x2f327c['data'])switch(_0x2f327c['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'](_0x578c0f,_0x26a6e3){const _0x555367=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x547209 of _0x555367['getSuggestions']({'skipNotAttached':!0x0})){const _0xc403ff=_0x547209['getContainedElement']();if(_0x547209['subType']===_0x26a6e3&&_0xc403ff===_0x578c0f)return _0x547209;}return null;}}const m='$elementName';class p extends _0x8cf398{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5145ee,_0x4ac055,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(_0x2a48ea){function _0x221c79(_0x23ed55){return _0x23ed55['map'](_0xe547a4=>String['fromCharCode'](_0xe547a4))['join']('');}super(_0x2a48ea),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x405660,_0x2f2dc6,_0x1102dc,_0x13cf59)=>{this['_model']['change'](()=>{for(const _0x52f839 of[..._0x13cf59,..._0x1102dc])this['_model']['markers']['has'](_0x52f839)&&_0x2a48ea['editing']['reconvertMarker'](_0x52f839);});}),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']=_0x2a48ea['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(),_0x2a48ea['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a48ea['config']['get']('trackChanges.trackFormatChanges'),_0x2a48ea['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a48ea['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a48ea,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x221c79([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x221c79([0x34,0x30,0x34,0x38,0x31,0x36,0x34,0x34]);}['init'](){const _0xc8cedb=this['editor'],_0x58884b=(_0x3a1f2d,_0x22abe3)=>{if('attribute'!=_0x3a1f2d)return'ck-suggestion-marker-'+_0x3a1f2d;const _0x3f5ba0=_0x22abe3['split']('|')[0x0];return this['_isBlockAttribute'](_0x3f5ba0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xc8cedb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1e05b4=>{const {id:_0x49eb3d,authorId:_0x24512b,type:_0x25558b,subType:_0x574f7c}=this['_splitMarkerName'](_0x1e05b4['markerName']),_0x47d18a=['ck-suggestion-marker',_0x58884b(_0x25558b,_0x574f7c)];let _0x24dca0=0xbb8;return this['activeMarkers']['includes'](_0x1e05b4['markerName'])&&(_0x47d18a['push']('ck-suggestion-marker--active'),_0x24dca0=0xbc2),'deletion'==_0x25558b&&(_0x24dca0+=0x5),{'classes':_0x47d18a,'attributes':{'data-suggestion':_0x49eb3d,'data-author-id':_0x24512b},'priority':_0x24dca0};}}),_0xc8cedb['conversion']['for']('dataDowncast')['add'](_0x42ca4e=>{_0x42ca4e['on']('addMarker:suggestion',(_0x301447,_0x49dcf3,_0x58fbe)=>{if(!_0x58fbe['options']['showSuggestionHighlights'])return;const _0x2ac6d6=_0x49dcf3['item'];if(!_0x2ac6d6)return;const _0x1439b8=_0x58fbe['mapper']['toViewElement'](_0x2ac6d6);_0xc8cedb['model']['schema']['isObject'](_0x2ac6d6)&&_0x1439b8&&!_0x1439b8['getCustomProperty']('widget')&&_0x1439b8['is']('containerElement')&&_0x3fd7fa(_0x1439b8,_0x58fbe['writer']);},{'priority':'high'});}),_0xc8cedb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x219bde,_0x3e0762)=>{if(!_0x3e0762['options']['showSuggestionHighlights'])return null;const {type:_0x283496,subType:_0x5c6f4e}=this['_splitMarkerName'](_0x219bde['markerName']);return{'classes':['ck-suggestion-marker',_0x58884b(_0x283496,_0x5c6f4e)],'priority':0xbb8};}});const _0x156c75=({showActiveMarkers:_0x4a0330=!0x0,isAttributeSuggestion:_0x34a2eb=!0x1}={})=>(_0x275b3e,_0x160556,_0x253f8b)=>{if(!_0x160556['item'])return;const {id:_0x5ac0ed,authorId:_0x2b43bd}=this['_splitMarkerName'](_0x160556['markerName']);if(_0x34a2eb){const _0x1e96aa=this['_suggestions']['get'](_0x5ac0ed),_0x4b69a9=this['_getAttributeKey'](_0x1e96aa);if(!this['_isBlockAttribute'](_0x4b69a9))return;}if(_0x160556['item']['is']('selection'))return void _0x253f8b['consumable']['consume'](_0x160556['item'],_0x275b3e['name']);const _0x904b4e=_0x253f8b['mapper']['toViewElement'](_0x160556['item']);if(_0x160556['item']['is']('element')&&_0xc8cedb['model']['schema']['isBlock'](_0x160556['item'])&&!_0x904b4e['getCustomProperty']('addHighlight')){_0x253f8b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x904b4e),_0x253f8b['writer']['setAttribute']('data-suggestion',_0x5ac0ed,_0x904b4e),_0x253f8b['writer']['setAttribute']('data-author-id',_0x2b43bd,_0x904b4e),_0x253f8b['mapper']['bindElementToMarker'](_0x904b4e,_0x160556['markerName']),_0x4a0330&&(this['activeMarkers']['includes'](_0x160556['markerName'])?_0x253f8b['writer']['addClass']('ck-suggestion-marker--active',_0x904b4e):_0x253f8b['writer']['removeClass']('ck-suggestion-marker--active',_0x904b4e));for(const _0x8bab08 of _0xc8cedb['model']['createRangeIn'](_0x160556['item'])['getItems']())_0x253f8b['consumable']['consume'](_0x8bab08,_0x275b3e['name']);_0x253f8b['consumable']['consume'](_0x160556['item'],_0x275b3e['name']);}};_0xc8cedb['conversion']['for']('dataDowncast')['add'](_0x186217=>{_0x186217['on']('addMarker:suggestion:formatBlock',(_0x5b0fca,_0x29603f,_0x51803c)=>{_0x51803c['options']['showSuggestionHighlights']&&_0x156c75({'showActiveMarkers':!0x1})(_0x5b0fca,_0x29603f,_0x51803c);},{'priority':'highest'});}),_0xc8cedb['conversion']['for']('dataDowncast')['add'](_0x3afdb7=>{_0x3afdb7['on']('addMarker:suggestion:attribute',(_0x62a313,_0x4fb651,_0x39499c)=>{_0x39499c['options']['showSuggestionHighlights']&&_0x156c75({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x62a313,_0x4fb651,_0x39499c);},{'priority':'highest'});}),_0xc8cedb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2d9f43,_0x5a8e0e)=>_0x5a8e0e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2d9f43['substr'](0xb)}}),_0xc8cedb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ad6b0,{writer:_0x4c6bb1})=>{let _0x2e0ed='suggestion:'+_0x2ad6b0['getAttribute']('suggestion-type')+':'+_0x2ad6b0['getAttribute']('id');return _0x2ad6b0['getAttribute']('marker-count')&&(_0x2e0ed+=':'+_0x2ad6b0['getAttribute']('marker-count')),_0x4c6bb1['createElement']('$marker',{'data-name':_0x2e0ed});}}),_0xc8cedb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xc8cedb['conversion']['for']('editingDowncast')['add'](_0x1aad74=>{_0x1aad74['on']('addMarker:suggestion:formatBlock',_0x156c75(),{'priority':'high'});}),_0xc8cedb['conversion']['for']('editingDowncast')['add'](_0x569144=>{_0x569144['on']('addMarker:suggestion:attribute',_0x156c75({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xc8cedb['conversion']['for']('editingDowncast')['add'](_0x320214=>{_0x320214['on']('removeMarker:suggestion:formatBlock',(_0x163330,_0x342187,_0x2794f8)=>{const _0x11f9d6=_0x2794f8['mapper']['markerNameToElements'](_0x342187['markerName']);if(_0x11f9d6){for(const _0x10b350 of _0x11f9d6)_0x10b350['getCustomProperty']('addHighlight')||(_0x2794f8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x10b350),_0x2794f8['writer']['removeAttribute']('data-suggestion',_0x10b350),_0x2794f8['writer']['removeAttribute']('data-author-id',_0x10b350),_0x2794f8['mapper']['unbindElementFromMarkerName'](_0x10b350,_0x342187['markerName']));}},{'priority':'high'});}),_0xc8cedb['conversion']['for']('editingDowncast')['add'](_0x530154=>{_0x530154['on']('removeMarker:suggestion:attribute',(_0x1167fc,_0xf472c3,_0x4fe79c)=>{const _0xb148de=_0x4fe79c['mapper']['markerNameToElements'](_0xf472c3['markerName']);if(!_0xb148de)return;const {id:_0x596ae6}=this['_splitMarkerName'](_0xf472c3['markerName']),_0x402840=this['_suggestions']['get'](_0x596ae6),_0x49c06b=this['_getAttributeKey'](_0x402840);if(this['_isBlockAttribute'](_0x49c06b)){for(const _0x3ba97f of _0xb148de)_0x3ba97f['getCustomProperty']('addHighlight')||(_0x4fe79c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ba97f),_0x4fe79c['writer']['removeAttribute']('data-suggestion',_0x3ba97f),_0x4fe79c['writer']['removeAttribute']('data-author-id',_0x3ba97f),_0x4fe79c['mapper']['unbindElementFromMarkerName'](_0x3ba97f,_0xf472c3['markerName']));}},{'priority':'high'});}),_0xc8cedb['model']['document']['registerPostFixer'](_0x2fa7a4=>{let _0x239fcf=!0x1;const _0x48f13c=Array['from'](_0xc8cedb['model']['document']['differ']['getChangedMarkers']()),_0x31b996=new Set();for(const {name:_0x254213,data:_0x55bba8}of _0x48f13c){const {group:_0x4a7deb,type:_0x1bcba3,subType:_0x150a74,id:_0x875b65}=this['_splitMarkerName'](_0x254213);if('suggestion'!==_0x4a7deb)continue;const _0x198606=this['_suggestions']['get'](_0x875b65);if(null!=_0x55bba8['newRange']){'formatInline'==_0x1bcba3&&(_0x239fcf=_0x239fcf||Ut(_0x55bba8['newRange'],_0x254213,_0x2fa7a4,_0xc8cedb['model']['schema']));const _0x1d5e09='attribute'==_0x1bcba3&&this['_isBlockAttribute'](_0x150a74['split']('|')[0x0]);if(_0x55bba8['newRange']['isCollapsed']||'$graveyard'==_0x55bba8['newRange']['root']['rootName']||'formatBlock'==_0x1bcba3&&!Ft(_0x55bba8['newRange'])||_0x1d5e09&&!Ft(_0x55bba8['newRange'])||'deletion'==_0x1bcba3&&!(!Vt(_0x1acfe7=_0x55bba8['newRange'])&&!function(_0x3381e8){return _0x3381e8['start']['parent']==_0x3381e8['end']['nodeBefore']&&_0x3381e8['start']['isAtEnd'];}(_0x1acfe7)))_0x2fa7a4['removeMarker'](_0x254213),_0x239fcf=!0x0;else{if(!_0x198606||!_0x198606['isInContent'])continue;if(_0x55bba8['newRange']&&_0x55bba8['oldRange']&&_0x55bba8['newRange']['isEqual'](_0x55bba8['oldRange']))continue;_0x31b996['add'](_0x198606);}}}var _0x1acfe7;return _0x31b996['size']>0x0&&(_0x239fcf=!!this['_joinWithAdjacentSuggestions'](_0x31b996)||_0x239fcf),_0x239fcf;}),_0xc8cedb['model']['document']['registerPostFixer'](_0x344e51=>{let _0x2b5261=!0x1;for(const _0x57c4ab of _0xc8cedb['model']['document']['differ']['getChanges']())if('insert'==_0x57c4ab['type'])for(const _0x1fb659 of this['_suggestions']['values']()){if(_0x1fb659['isMultiRange']||!_0x1fb659['isInContent'])continue;const _0x242543='formatBlock'==_0x1fb659['type'],_0x23838b=this['_getAttributeKey'](_0x1fb659),_0x1fe953=_0x23838b&&this['_isBlockAttribute'](_0x23838b);if(!_0x242543&&!_0x1fe953)continue;const _0x46a026=_0x1fb659['getFirstRange']();if(_0x46a026['start']['parent']!=_0x46a026['end']['parent']&&!_0x46a026['end']['isAtEnd']){const _0x1ab4ea=_0xc8cedb['model']['createPositionAt'](_0x46a026['start']['nodeAfter'],'end'),_0x52f447=_0xc8cedb['model']['createRange'](_0x46a026['start'],_0x1ab4ea);_0x344e51['updateMarker'](_0x1fb659['getFirstMarker'](),{'range':_0x52f447}),_0x2b5261=!0x0;}}return _0x2b5261;}),_0xc8cedb['model']['document']['registerPostFixer'](_0x4113b5=>this['_processAttributeChanges'](_0x4113b5)),_0xc8cedb['model']['document']['registerPostFixer'](_0x50f9ed=>!_0x50f9ed['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x50f9ed)),_0xc8cedb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xc8cedb['model']['document']['on']('change:data',(_0x26e808,_0x29a54b)=>{if(!_0x29a54b['isLocal']||_0x29a54b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x232303=_0xc8cedb['model']['document']['differ']['getChanges']();if(0x0==_0x232303['length'])return;const _0x30e384=[],_0x34872f=_0x232303['filter'](_0x1e2aaf=>'attribute'==_0x1e2aaf['type']),_0x2f85c9=_0x232303['filter'](_0x2ee0c3=>'insert'==_0x2ee0c3['type']&&'$text'!=_0x2ee0c3['name']);for(const _0x29d222 of _0x34872f)this['_isRegisteredAttribute'](_0x29d222['attributeKey'])&&_0x30e384['push']({'key':_0x29d222['attributeKey'],'newValue':_0x29d222['attributeNewValue'],'oldValue':_0x29d222['attributeOldValue'],'range':Pt(_0x29d222['range'],_0xc8cedb['model'])});for(const _0xc639ce of _0x2f85c9){if('rename'!=_0xc639ce['action']&&'refresh'!=_0xc639ce['action'])continue;const _0x548a70=Lt(_0xc639ce['position']['nodeAfter'],_0xc8cedb['model']),_0x27bf3a=_0xc639ce['before'];'rename'==_0xc639ce['action']&&_0x30e384['push']({'key':m,'newValue':_0xc639ce['name'],'oldValue':_0x27bf3a['name'],'range':_0x548a70});for(const [_0x4e461b,_0xfc23e9]of _0x27bf3a['attributes']){if(!this['_isRegisteredAttribute'](_0x4e461b))continue;const _0x1ee203=_0xc639ce['attributes']['get'](_0x4e461b);_0xfc23e9!==_0x1ee203&&_0x30e384['push']({'key':_0x4e461b,'newValue':_0x1ee203,'oldValue':_0xfc23e9,'range':_0x548a70});}for(const [_0x1c686a,_0x6ec059]of _0xc639ce['attributes'])this['_isRegisteredAttribute'](_0x1c686a)&&(_0x27bf3a['attributes']['has'](_0x1c686a)||_0x30e384['push']({'key':_0x1c686a,'newValue':_0x6ec059,'oldValue':null,'range':_0x548a70}));}0x0!=_0x30e384['length']&&_0xc8cedb['model']['enqueueChange'](_0x29a54b,_0x18cdeb=>{const _0x50f94e=_0x3862eb();for(const {range:_0x472c1f,key:_0x4f9d19,oldValue:_0x5af2d2,newValue:_0xd95fc7}of _0x30e384)this['markAttributeChange'](_0x472c1f,_0x4f9d19,_0x5af2d2,_0xd95fc7,{'groupId':_0x50f94e});this['_reduceExistingSuggestions'](_0x18cdeb,_0x30e384);});},{'priority':'lowest'}),_0xc8cedb['model']['markers']['on']('update:suggestion',(_0x4a6af0,_0x3c4807,_0x5a5e0b)=>{if(null==_0x5a5e0b){const {id:_0x1f9807}=this['_splitMarkerName'](_0x3c4807['name']),_0x51862c=this['_suggestions']['get'](_0x1f9807);_0x51862c&&_0x51862c['addMarkerName'](_0x3c4807['name']);}}),_0xc8cedb['model']['document']['on']('change:data',()=>{const _0x7c1048=Array['from'](_0xc8cedb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2576ba=>'suggestion'===this['_splitMarkerName'](_0x2576ba['name'])['group']);if(0x0===_0x7c1048['length'])return;_0x7c1048['sort']((_0x193521,_0x1f0351)=>{const _0x2b11ac=_0x193521['data']['oldRange'],_0x4aaeb4=_0x1f0351['data']['oldRange'];return null===_0x2b11ac&&null===_0x4aaeb4?0x0:null===_0x2b11ac&&null!==_0x4aaeb4?-0x1:null!==_0x2b11ac&&null===_0x4aaeb4?0x1:_0x2b11ac['start']['isBefore'](_0x4aaeb4['start'])?-0x1:0x1;});const _0x15577e=new Set(),_0x3b3a15=new Set();for(const {name:_0x5a91f4,data:_0x264e04}of _0x7c1048){const {id:_0x116d19}=this['_splitMarkerName'](_0x5a91f4);if(null===_0x264e04['oldRange']){const _0x20760d=this['_handleNewSuggestionMarker'](_0x5a91f4);_0x3b3a15['add'](_0x20760d);}else{const _0x226a9c=this['_suggestions']['get'](_0x116d19);null!==_0x264e04['newRange']||_0x226a9c['isInContent']?(_0x15577e['add'](_0x226a9c['head']),_0x3b3a15['add'](_0x226a9c)):this['_removeSuggestion'](_0x226a9c);}}_0x3b3a15['size']>0x0&&this['_refreshSuggestionsChain'](_0x3b3a15);for(const _0x599d60 of _0x15577e)this['fire']('suggestionChanged',_0x599d60);}),_0xc8cedb['model']['on']('applyOperation',(_0x5a4519,_0x39b526)=>{const _0x24d8a5=_0x39b526[0x0];if(!this['_suggestions']['size'])return;if(!_0x24d8a5['isDocumentOperation'])return;if(_0x24d8a5['batch']['isUndo']||!_0x24d8a5['batch']['isLocal'])return;let _0x484b03,_0x5aeca8;switch(_0x24d8a5['type']){case'insert':_0x484b03=_0xc8cedb['model']['createPositionAt'](_0x24d8a5['position']),_0x5aeca8=_0x484b03['getShiftedBy'](_0x24d8a5['howMany']);break;case'split':_0x484b03=_0xc8cedb['model']['createPositionAt'](_0x24d8a5['splitPosition']),_0x5aeca8=_0xc8cedb['model']['createPositionAt'](_0x24d8a5['moveTargetPosition']);break;case'move':_0x484b03=_0xc8cedb['model']['createPositionAt'](_0x24d8a5['targetPosition']),_0x5aeca8=_0x484b03['getShiftedBy'](_0x24d8a5['howMany']);break;default:return;}const _0x28facc=_0xc8cedb['model']['createRange'](_0x484b03,_0x5aeca8);_0xc8cedb['model']['change'](()=>{for(const {suggestion:_0x2ab6a2,meta:_0x27ff42}of this['_findSuggestions'](_0x28facc)){if(_0x2ab6a2['isMultiRange'])continue;if('formatInline'==_0x2ab6a2['type'])continue;const _0x46de84=this['_getAttributeKey'](_0x2ab6a2);if(_0x46de84&&this['_isBlockAttribute'](_0x46de84)&&'split'!=_0x24d8a5['type'])continue;const _0x47dbf9=_0x2ab6a2['data']&&_0x2ab6a2['data']['multipleBlocks'];('formatBlock'!=_0x2ab6a2['type']||'split'==_0x24d8a5['type']&&!_0x47dbf9)&&(_0x27ff42['containsRangeInObject']||'insertion'==_0x2ab6a2['type']&&_0x27ff42['isOwn']||_0x2ab6a2['getFirstRange']()['containsRange'](_0x28facc)&&this['_breakSuggestionMarker'](_0x2ab6a2,_0x484b03,_0x5aeca8));}});},{'priority':'lowest'}),_0xc8cedb['model']['on']('deleteContent',(_0x1630eb,_0x293fca)=>{const _0x358688=_0x293fca[0x0],_0x2f7f6f=_0x293fca[0x1];if(_0x2f7f6f&&_0x2f7f6f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x358688['isCollapsed'])return;const _0x172115=_0xc8cedb['model']['schema'],{start:_0x21e448,end:_0xc4fd58}=_0x358688['getFirstRange'](),_0xf100b9=_0x21e448['nodeAfter']&&_0x172115['isLimit'](_0x21e448['nodeAfter'])?null:_0x172115['getNearestSelectionRange'](_0x21e448,'forward'),_0x254756=_0xc4fd58['nodeBefore']&&_0x172115['isLimit'](_0xc4fd58['nodeBefore'])?null:_0x172115['getNearestSelectionRange'](_0xc4fd58,'backward'),_0x160e71=_0xc8cedb['model']['createRange'](_0xf100b9?_0xf100b9['start']:_0x21e448,_0x254756?_0x254756['end']:_0xc4fd58);_0xc8cedb['model']['change'](_0x25da5f=>{this['markDeletion'](_0x160e71);const _0xc9362b=_0xc8cedb['model']['schema']['getNearestSelectionRange'](_0x160e71['start']);_0x358688['is']('documentSelection')?_0x25da5f['setSelection'](_0xc9362b):_0x358688['setTo'](_0xc9362b);}),_0x1630eb['stop']();},{'priority':_0x58a317['normal']+0xa}),_0xc8cedb['model']['on']('insertContent',(_0xbb03ab,_0x212607)=>{const _0x185546=_0x212607[_0x212607['length']-0x1];_0x185546&&_0x185546['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xc8cedb['model']['change'](()=>{let _0x288f27=_0xc8cedb['model']['insertContent'](_0x212607[0x0],_0x212607[0x1],_0x212607[0x2],{'forceDefaultExecution':!0x0});if(!_0x288f27)return;_0xbb03ab['return']=_0x288f27['clone']();const _0x4ecef4=_0x288f27['end']['nodeBefore'],_0x2001b8=_0xc8cedb['model']['schema'];_0x4ecef4&&_0x2001b8['isBlock'](_0x4ecef4)&&!_0x2001b8['isObject'](_0x4ecef4)&&(_0x288f27=_0xc8cedb['model']['createRange'](_0x288f27['start'],_0xc8cedb['model']['createPositionAt'](_0x4ecef4,'end'))),this['markInsertion'](_0x288f27);}),_0xbb03ab['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x241979=new x(_0xc8cedb,this['_suggestions']);_0xc8cedb['commands']['add']('acceptSuggestion',_0x241979),this['enableCommand']('acceptSuggestion');const _0x5db163=new R(_0xc8cedb,this['_suggestions']);_0xc8cedb['commands']['add']('discardSuggestion',_0x5db163),this['enableCommand']('discardSuggestion'),_0xc8cedb['commands']['add']('acceptAllSuggestions',new E(_0xc8cedb,_0x241979,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xc8cedb['commands']['add']('discardAllSuggestions',new E(_0xc8cedb,_0x5db163,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xc8cedb['commands']['add']('acceptSelectedSuggestions',new O(_0xc8cedb,_0x241979,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xc8cedb['commands']['add']('discardSelectedSuggestions',new O(_0xc8cedb,_0x5db163,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x12d550=_0xc8cedb['plugins']['get']('CommentsRepository');this['listenTo'](_0x12d550,'addComment',(_0x384466,{threadId:_0x36d884})=>{const _0x4e7d66=this['_suggestions']['get'](_0x36d884);_0x4e7d66&&_0x4e7d66['commentThread']&&0x1===_0x4e7d66['commentThread']['length']&&this['_updateSuggestionData'](_0x36d884,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x12d550,'removeComment',(_0x5f0bde,{threadId:_0x1c47eb})=>{const _0x581786=this['_suggestions']['get'](_0x1c47eb);_0x581786&&_0x581786['commentThread']&&!_0x581786['commentThread']['length']&&this['_updateSuggestionData'](_0x1c47eb,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2bf515){if(this['_adapter'])throw new _0x3993e2('track-changes-adapter-already-set',this);this['_adapter']=_0x2bf515;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xb73615=!0x1,toJSON:_0x1c48f1=!0x1}={}){const _0x5beb36=[];for(const _0x4ef627 of this['_suggestions']['values']())_0xb73615&&!_0x4ef627['isInContent']||_0x5beb36['push'](_0x4ef627);return _0x1c48f1?_0x5beb36['map'](_0x2c35de=>_0x2c35de['toJSON']()):_0x5beb36;}['getSuggestion'](_0x8c0b15){const _0x1642df=this['_suggestions']['get'](_0x8c0b15);if(!_0x1642df)throw new _0x3993e2('track-changes-suggestion-not-found',this);return _0x1642df;}['hasSuggestion'](_0x3455bb){return this['_suggestions']['has'](_0x3455bb);}['addSuggestionData'](_0x453fc8){const {authorId:_0xe62c31,id:_0x33c023,attributes:_0x133031}=_0x453fc8,[_0x188ae8,_0x355142]=_0x453fc8['type']['split'](':'),_0x5822eb=this['_suggestions']['get'](_0x33c023)||this['_createSuggestion'](_0x188ae8,_0x355142,_0x33c023,_0xe62c31,_0x133031);if(this['_addThreadToSuggestion'](_0x5822eb),this['_checkSuggestionCorrectness'](_0x5822eb,_0x188ae8,_0x355142||null,_0xe62c31),_0x5822eb['createdAt']=_0x453fc8['createdAt'],_0x5822eb['_isDataLoaded']=!0x0,_0x133031&&_0x133031['@external']){const _0x5e7943=_0x133031['@external'],_0x39bdbe=this['_getExternalAuthor'](_0x5e7943['authorName']);_0x5822eb['authoredAt']=_0x5e7943['createdAt'],_0x5822eb['author']=_0x39bdbe,_0x5822eb['isExternal']=!0x0;}else _0x5822eb['authoredAt']=_0x453fc8['createdAt'];switch(_0x453fc8['data']&&(_0x5822eb['data']=_0x453fc8['data']),_0x453fc8['attributes']&&(_0x5822eb['attributes']=_0x453fc8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5822eb['_saved']=!0x0),this['_suggestionState']['get'](_0x5822eb)){case'notReady':this['_suggestionState']['set'](_0x5822eb,'dataReady');break;case'markerReady':_0x5822eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5822eb])),this['_refreshSuggestionsChain'](new Set([_0x5822eb])),this['_suggestionState']['set'](_0x5822eb,'ready'),this['fire']('suggestionLoaded',_0x5822eb)):this['_suggestionState']['set'](_0x5822eb,'removed');}return _0x5822eb;}['acceptSuggestion'](_0x24a1ea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dadfe of _0x24a1ea['getAllAdjacentSuggestions']())_0x1dadfe['accept']();});});}['discardSuggestion'](_0x35957e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45e786 of _0x35957e['getAllAdjacentSuggestions']())_0x45e786['discard']();});});}['enableCommand'](_0x1426ef,_0xef5568){const _0x3494b2=this['editor']['commands']['get'](_0x1426ef);if(!_0x3494b2)throw new _0x3993e2('track-changes-command-not-found',this,{'commandName':_0x1426ef});if(this['_enabledCommands']['has'](_0x3494b2))throw new _0x3993e2('track-changes-enable-command-twice',this,{'commandName':_0x1426ef});this['_enabledCommands']['add'](_0x3494b2),_0xef5568&&_0x3494b2['on']('execute',(_0x1ef089,_0x2d5d4f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d5d4f['length']>0x0&&_0x2d5d4f[_0x2d5d4f['length']-0x1]&&_0x2d5d4f[_0x2d5d4f['length']-0x1]['forceDefaultExecution']?_0x2d5d4f['pop']():(_0x1ef089['return']=_0xef5568((..._0x147351)=>_0x3494b2['execute'](..._0x147351,{'forceDefaultExecution':!0x0}),..._0x2d5d4f),_0x1ef089['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4b8a1f){let _0x4e181d,_0x224a7a;const _0x5bff60=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e181d=_0x4b8a1f();}catch(_0x1b0c10){_0x224a7a=_0x1b0c10;}return _0x5bff60||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x224a7a&&_0x3993e2['rethrowUnexpectedError'](_0x224a7a,this),_0x4e181d;}['markInsertion'](_0x282c77,_0x276c4d=null,_0x4287e1={}){if(_0x282c77['isCollapsed'])return null;const _0x254001=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x58d82d,meta:_0x282bae}of this['_findSuggestions'](_0x282c77,'insertion'))if(_0x282bae['isOwn']){if(!_0x282bae['isNextTo']){if(_0x282bae['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x58d82d,_0x4287e1))continue;return _0x58d82d;}if(qt(_0x58d82d,_0x4287e1))return _0x58d82d;this['_breakSuggestionMarker'](_0x58d82d,_0x282c77['start'],_0x282c77['end']);break;}if(_0x276c4d==_0x58d82d['subType']&&qt(_0x58d82d,_0x4287e1)){const _0x93ac5c=_0x58d82d['getFirstRange']();return _0x93ac5c['start']['isEqual'](_0x282c77['end'])?this['_setSuggestionRange'](_0x58d82d,this['_model']['createRange'](_0x282c77['start'],_0x93ac5c['end'])):this['_setSuggestionRange'](_0x58d82d,this['_model']['createRange'](_0x93ac5c['start'],_0x282c77['end'])),_0x58d82d;}}const _0xa1f190=_0x3862eb(),_0x499243=_0x254001['id'],_0x7f5286=_0x276c4d?'insertion:'+_0x276c4d:'insertion',_0x3c7956=this['_setSuggestionData']({'id':_0xa1f190,'type':_0x7f5286,'createdAt':new Date(),'authorId':_0x499243,'attributes':_0x4287e1});return this['_addSuggestionMarker'](_0x7f5286,_0xa1f190,_0x499243,_0x282c77),_0x3c7956;}['markMultiRangeInsertion'](_0x2fe49c,_0x42f398='multi',_0x5afffb={}){const _0x49a7ef=this['editor']['plugins']['get']('Users')['me'],_0x13be1b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42f398,'join');for(const _0x5d088c of this['getSuggestions']())if(_0x5d088c['author']['id']==_0x49a7ef['id']&&'insertion'==_0x5d088c['type']&&_0x5d088c['subType']==_0x42f398&&qt(_0x5d088c,_0x5afffb)&&(_0x13be1b(_0x5d088c['getRanges'](),_0x2fe49c)||_0x13be1b(_0x2fe49c,_0x5d088c['getRanges']()))){for(const _0xfe0842 of _0x2fe49c)_0x5d088c['addRange'](_0xfe0842);return _0x5d088c;}for(const {suggestion:_0x359026,meta:_0x59c4dc}of this['_findSuggestions'](_0x2fe49c,'insertion')){if(!_0x59c4dc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x59c4dc['containsRangeInObject'])continue;if(!qt(_0x359026,_0x5afffb))continue;let _0x1f3204=!0x0;for(const _0x2b333e of _0x359026['getRanges']())for(const _0x478f11 of _0x2fe49c)if(!_0x2b333e['containsRange'](_0x478f11)){_0x1f3204=!0x1;break;}if(_0x1f3204)return _0x359026;}const _0x49283c=_0x3862eb(),_0x343bec=_0x49a7ef['id'],_0x1439b7='insertion:'+_0x42f398,_0x431962=this['_setSuggestionData']({'id':_0x49283c,'type':_0x1439b7,'createdAt':new Date(),'authorId':_0x343bec,'attributes':_0x5afffb});for(const _0x1e6380 of _0x2fe49c)this['_addSuggestionMarker'](_0x1439b7,_0x49283c,_0x343bec,_0x1e6380,u['getMultiRangeId']());return _0x431962;}['markInlineFormat'](_0xa26dc4,_0x2e34d6,_0x1a3a83=null,_0x82de63={}){if(_0x1a3a83=_0x1a3a83||Gt(_0x2e34d6),_0xa26dc4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4cc745=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1a3a83,'accept');return this['forceDefaultExecution'](()=>_0x4cc745([_0xa26dc4],_0x2e34d6,_0x82de63)),null;}const _0x14561b=this['editor']['plugins']['get']('Users')['me'],_0x43c0db=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58f837,meta:_0x280e2d}of this['_findSuggestions'](_0xa26dc4,'insertion'))_0x280e2d['isOwn']&&!_0x280e2d['isInsideObject']&&_0x43c0db['push'](..._0x58f837['getRanges']());}const _0x2806cf=function(_0x41ec87,_0x702ce7){const _0x170290=[];for(const _0xd0246 of _0x702ce7){const _0x1705e5=_0x41ec87['getIntersection'](_0xd0246);_0x1705e5&&_0x170290['push'](_0x1705e5);}return _0x170290;}(_0xa26dc4,_0x43c0db),_0x2a51f9=function(_0xc69c22,_0x11396f){const _0x2701ed=[_0xc69c22];for(const _0x4e461e of _0x11396f){let _0x93d14a=0x0;for(;_0x93d14a<_0x2701ed['length'];){const _0x5ba913=_0x2701ed[_0x93d14a]['getDifference'](_0x4e461e);_0x2701ed['splice'](_0x93d14a,0x1,..._0x5ba913),_0x93d14a+=_0x5ba913['length'];}}return _0x2701ed;}(_0xa26dc4,_0x43c0db);_0x2806cf['length']&&this['_model']['change'](()=>{for(const _0x100862 of _0x2806cf){const _0x3baadf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1a3a83,'accept');this['forceDefaultExecution'](()=>_0x3baadf([_0x100862],_0x2e34d6,_0x82de63));}});for(const _0x3f954e of _0x2a51f9){let _0x5ec381=null,_0x4cd823=_0x3f954e['start'],_0x564ae7=_0x3f954e['end'];for(const {suggestion:_0x4232f1,meta:_0x243c44}of this['_findSuggestions'](_0x3f954e,'formatInline')){if(!_0x243c44['isOwn'])continue;if(_0x4232f1['subType']!=_0x1a3a83)continue;if(!qt(_0x4232f1,_0x82de63))continue;const _0x3f254e=_0x4232f1['getFirstRange']();if(_0x3f254e['containsRange'](_0x3f954e,!0x0))return null;_0x4cd823=_0x4cd823['isBefore'](_0x3f254e['start'])?_0x4cd823:_0x3f254e['start'],_0x564ae7=_0x564ae7['isAfter'](_0x3f254e['end'])?_0x564ae7:_0x3f254e['end'],_0x5ec381?_0x3f254e['start']['isBefore'](_0x5ec381['getFirstRange']()['start'])?(_0x5ec381['removeMarkers'](),_0x5ec381=_0x4232f1):_0x4232f1['removeMarkers']():_0x5ec381=_0x4232f1;}const _0x27c8b9=this['_model']['createRange'](_0x4cd823,_0x564ae7);if(_0x5ec381)this['_setSuggestionRange'](_0x5ec381,_0x27c8b9);else{const _0x289c9b=_0x3862eb(),_0x5e983b=_0x14561b['id'];this['_setSuggestionData']({'id':_0x289c9b,'type':'formatInline:'+_0x1a3a83,'data':_0x2e34d6,'createdAt':new Date(),'authorId':_0x5e983b,'attributes':_0x82de63}),this['_addSuggestionMarker']('formatInline:'+_0x1a3a83,_0x289c9b,_0x5e983b,_0x27c8b9);}}return null;}['markBlockFormat'](_0x34b6e2,_0x43f881,_0x2f984d=[],_0x35fe8c=null,_0x509260={}){_0x43f881['formatGroupId']||(_0x43f881['formatGroupId']=_0x43f881['commandName']),_0x43f881['multipleBlocks']=_0x34b6e2['is']('range'),_0x35fe8c=_0x35fe8c||Gt(_0x43f881);const _0x57cece=_0x2f984d['map'](_0x15a798=>Lt(_0x15a798,this['_model'])),_0x1b91ff=_0x34b6e2['is']('range')?_0x34b6e2:Lt(_0x34b6e2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3724f9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35fe8c,'accept');return this['forceDefaultExecution'](()=>_0x3724f9([_0x1b91ff],_0x43f881,_0x509260)),null;}_0x57cece['push'](_0x1b91ff);let _0x53a414=!0x0;for(const _0x4b14de of _0x57cece)if(!this['_rangeIsInLocalUserInsertion'](_0x4b14de)){_0x53a414=!0x1;break;}if(_0x53a414&&'always'!==this['_trackFormatChanges']){const _0x29d8a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35fe8c,'accept');return this['forceDefaultExecution'](()=>_0x29d8a4([_0x1b91ff],_0x43f881,_0x509260)),null;}let _0x5e3398=null,_0xfbd745=_0x1b91ff['start'],_0x1d478d=_0x1b91ff['end'];for(const {suggestion:_0x44b8b6,meta:_0x52c666}of this['_findSuggestions'](_0x1b91ff,'formatBlock')){if(!_0x52c666['isOwn'])continue;if(_0x52c666['isNextTo']||_0x52c666['containsRangeInObject']||_0x52c666['isInsideObject'])continue;if(_0x44b8b6['data']['formatGroupId']!=_0x43f881['formatGroupId'])continue;if(!qt(_0x44b8b6,_0x509260))continue;const _0x381c68=_0x44b8b6['getFirstRange']();if(_0x44b8b6['subType']==_0x35fe8c){if(_0x381c68['containsRange'](_0x1b91ff,!0x0))return null;_0xfbd745=_0xfbd745['isBefore'](_0x381c68['start'])?_0xfbd745:_0x381c68['start'],_0x1d478d=_0x1d478d['isAfter'](_0x381c68['end'])?_0x1d478d:_0x381c68['end'],_0x5e3398?_0x381c68['start']['isBefore'](_0x5e3398['getFirstRange']()['start'])?(_0x5e3398['removeMarkers'](),_0x5e3398=_0x44b8b6):_0x44b8b6['removeMarkers']():_0x5e3398=_0x44b8b6;}else{const _0x5ba02f=_0x1b91ff['getIntersection'](_0x381c68);this['_cutOutSuggestionMarker'](_0x44b8b6,_0x5ba02f);}}const _0x3058ea=this['editor']['plugins']['get']('Users')['me'],_0x34e12d=_0x3862eb(),_0x10c2fa=_0x3058ea['id'];if(_0x5e3398)return this['_setSuggestionRange'](_0x5e3398,this['_model']['createRange'](_0xfbd745,_0x1d478d)),_0x5e3398;{const _0xecea64=this['_setSuggestionData']({'id':_0x34e12d,'type':'formatBlock:'+_0x35fe8c,'data':_0x43f881,'createdAt':new Date(),'authorId':_0x10c2fa,'attributes':_0x509260});return this['_addSuggestionMarker']('formatBlock:'+_0x35fe8c,_0x34e12d,_0x10c2fa,this['_model']['createRange'](_0xfbd745,_0x1d478d)),_0xecea64;}}['markMultiRangeBlockFormat'](_0x1e0da5,_0x327e08,_0x3702d1=[],_0x7cf382=null,_0x348e21={}){_0x327e08['formatGroupId']||(_0x327e08['formatGroupId']=_0x327e08['commandName']);const _0x119393=_0x1e0da5[0x0];_0x327e08['multipleBlocks']=_0x119393['is']('range'),_0x7cf382=_0x7cf382||Gt(_0x327e08);const _0x12f7dd=_0x3702d1['map'](_0x5a6d6a=>Lt(_0x5a6d6a,this['_model'])),_0x47cf4c=_0x119393['is']('range')?_0x1e0da5:_0x1e0da5['map'](_0x6c9dc9=>Lt(_0x6c9dc9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1dee45=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7cf382,'accept');return this['forceDefaultExecution'](()=>_0x1dee45(_0x47cf4c,_0x327e08,_0x348e21)),null;}_0x12f7dd['push'](..._0x47cf4c);let _0x4274a9=!0x0;for(const _0x28733b of _0x12f7dd)if(!this['_rangeIsInLocalUserInsertion'](_0x28733b)){_0x4274a9=!0x1;break;}if(_0x4274a9&&'always'!==this['_trackFormatChanges']){const _0x24c10a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7cf382,'accept');return this['forceDefaultExecution'](()=>_0x24c10a(_0x47cf4c,_0x327e08,_0x348e21)),null;}const _0x3d20e1=this['editor']['plugins']['get']('Users')['me'];for(const _0x1a5c34 of this['getSuggestions']()){if(_0x1a5c34['author']['id']!=_0x3d20e1['id'])continue;if('formatBlock'!=_0x1a5c34['type']||_0x1a5c34['data']['formatGroupId']!=_0x327e08['formatGroupId'])continue;if(!qt(_0x1a5c34,_0x348e21))continue;const _0x254a02=_0x1a5c34['subType']==_0x7cf382;for(let _0x51d7bd=0x0;_0x51d7bd<_0x47cf4c['length'];_0x51d7bd++){const _0x328d9d=_0x47cf4c[_0x51d7bd];for(const _0x52e923 of _0x1a5c34['getMarkers']()){const _0x47b6a1=_0x52e923['getRange']();if(_0x328d9d['isEqual'](_0x47b6a1)){_0x254a02?(_0x47cf4c['splice'](_0x51d7bd,0x1),_0x51d7bd--):_0x1a5c34['removeMarker'](_0x52e923['name']);break;}}}}if(0x0==_0x47cf4c['length'])return null;const _0x436a59=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7cf382,'join');for(const _0xe809e8 of this['getSuggestions']())if(_0xe809e8['author']['id']==_0x3d20e1['id']&&'formatBlock'==_0xe809e8['type']&&_0xe809e8['data']['formatGroupId']==_0x327e08['formatGroupId']&&_0xe809e8['subType']==_0x7cf382&&qt(_0xe809e8,_0x348e21)&&(_0x436a59(_0xe809e8['getRanges'](),_0x47cf4c)||_0x436a59(_0x47cf4c,_0xe809e8['getRanges']()))){for(const _0x3ea402 of _0x47cf4c)_0xe809e8['addRange'](_0x3ea402);return _0xe809e8;}const _0x3e8e1f=_0x3862eb(),_0x45e938=_0x3d20e1['id'],_0x767d3='formatBlock:'+_0x7cf382,_0x3d024b=this['_setSuggestionData']({'id':_0x3e8e1f,'type':_0x767d3,'data':_0x327e08,'createdAt':new Date(),'authorId':_0x45e938,'attributes':_0x348e21});for(const _0x7f909a of _0x47cf4c)this['_addSuggestionMarker'](_0x767d3,_0x3e8e1f,_0x45e938,_0x7f909a,u['getMultiRangeId']());return _0x3d024b;}['markDeletion'](_0x28a898,_0x2817e6=null,_0x4dac19={}){if(_0x28a898['isCollapsed'])return null;const _0xf1bfe3=this['editor']['plugins']['get']('Users')['me'],_0xa58ad7=new _0x142937(_0x28a898['start'],_0x28a898['end']);for(const {suggestion:_0x4ed619,meta:_0x2d1212}of this['_findSuggestions'](_0xa58ad7,'insertion'))if(_0x2d1212['isOwn']&&!_0x2d1212['isNextTo']){if(_0x4ed619['isMultiRange']){const _0x4eb4c1=_0x4ed619['getRanges']()['filter'](_0x299fc7=>'$graveyard'!=_0x299fc7['root']['rootName']);_0x4eb4c1['every'](_0xe1e10=>_0xa58ad7['containsRange'](_0xe1e10,!0x0))&&_0x4ed619['discard']();if(_0x4eb4c1['some'](_0x1d49e7=>_0x1d49e7['containsRange'](_0xa58ad7,!0x0))){const _0x54dcc1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2817e6,'accept');return this['forceDefaultExecution'](()=>_0x54dcc1([_0xa58ad7],null,_0x4dac19)),null;}}else{const _0x556ed3=_0xa58ad7['getIntersection'](_0x4ed619['getFirstRange']());null!==_0x556ed3&&_0x4ed619['_onDiscard']([_0x556ed3],null,_0x4dac19);}}if(_0xa58ad7['detach'](),_0xa58ad7['isCollapsed']||'$graveyard'==_0xa58ad7['root']['rootName'])return null;let _0x5891f0=null,_0x1a7a00=_0xa58ad7['start'],_0x3eac3f=_0xa58ad7['end'];const _0x31c8cf=this['_findSuggestions'](_0xa58ad7,'deletion');for(const {suggestion:_0x3e1169,meta:_0x3f66a7}of _0x31c8cf){const _0x3f9e32=this['_model']['createRange'](_0x1a7a00,_0x3eac3f);if(_0x3f66a7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f66a7['containsRangeInObject']&&!_0x3f66a7['isInsideObject'])){if(_0x3e1169['isMultiRange']){if(!qt(_0x3e1169,_0x4dac19))continue;let _0x125fed=!0x0;for(const _0x52d6a1 of _0x3e1169['getRanges']()){if(_0x52d6a1['containsRange'](_0x3f9e32,!0x0))return _0x3e1169;_0x3f9e32['containsRange'](_0x52d6a1)||(_0x125fed=!0x1);}_0x125fed&&_0x3e1169['discard']();}else{const _0x47e9c7=_0x3e1169['getFirstRange']();if(_0x47e9c7['containsRange'](_0x3f9e32,!0x0))return _0x3e1169;if(!qt(_0x3e1169,_0x4dac19)){_0x3f9e32['containsRange'](_0x47e9c7)?_0x3e1169['removeMarkers']():_0x47e9c7['containsPosition'](_0x1a7a00)?_0x1a7a00=_0x47e9c7['end']:_0x47e9c7['containsPosition'](_0x3eac3f)&&(_0x3eac3f=_0x47e9c7['start']);continue;}_0x1a7a00=_0x1a7a00['isBefore'](_0x47e9c7['start'])?_0x1a7a00:_0x47e9c7['start'],_0x3eac3f=_0x3eac3f['isAfter'](_0x47e9c7['end'])?_0x3eac3f:_0x47e9c7['end'],_0x4dac19=Object['assign']({},_0x3e1169['attributes']),_0x5891f0?_0x47e9c7['start']['isBefore'](_0x5891f0['getFirstRange']()['start'])?(_0x5891f0['removeMarkers'](),_0x5891f0=_0x3e1169):_0x3e1169['removeMarkers']():_0x5891f0=_0x3e1169;}}}if(_0x5891f0)return this['_setSuggestionRange'](_0x5891f0,this['_model']['createRange'](_0x1a7a00,_0x3eac3f)),_0x5891f0;{const _0x496cfc=_0x3862eb(),_0x1c86ea=this['_model']['createRange'](_0x1a7a00,_0x3eac3f),_0x2d5c61=_0xf1bfe3['id'],_0x14ed28=_0x2817e6?'deletion:'+_0x2817e6:'deletion',_0x1d5b4c=this['_setSuggestionData']({'id':_0x496cfc,'type':_0x14ed28,'createdAt':new Date(),'authorId':_0x2d5c61,'attributes':_0x4dac19});return this['_addSuggestionMarker'](_0x14ed28,_0x496cfc,_0x2d5c61,_0x1c86ea),_0x1d5b4c;}}['markMultiRangeDeletion'](_0x5a3817,_0x538ce9='multi',_0x5e8867={}){const _0x56ac94=this['editor']['plugins']['get']('Users')['me'],_0x5a670f=_0x5a3817['map'](_0x2a2ef4=>new _0x142937(_0x2a2ef4['start'],_0x2a2ef4['end'])),_0xbd2de=new Set();for(const {suggestion:_0x38fa00,meta:_0x5f03ad}of this['_findSuggestions'](_0x5a670f,'insertion'))_0x5f03ad['isOwn']&&!_0x5f03ad['isNextTo']&&_0xbd2de['add'](_0x38fa00);for(const _0x27bb17 of _0xbd2de)if(_0x27bb17['isMultiRange']){const _0x22c608=_0x27bb17['getRanges']();(!_0x27bb17['attributes']||!_0x27bb17['attributes']['skipNestingCheck'])&&(_0x22c608['every'](_0x53a2a0=>_0x5a670f['some'](_0x375fed=>_0x375fed['containsRange'](_0x53a2a0,!0x0)))&&_0x27bb17['discard']());if(_0x5a670f['every'](_0x42771e=>_0x22c608['some'](_0x3faeaf=>_0x3faeaf['containsRange'](_0x42771e,!0x0)))){const _0x31f27f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ce9,'accept');return this['forceDefaultExecution'](()=>_0x31f27f(_0x5a3817,null,_0x5e8867)),null;}}else{const _0x588d73=_0x27bb17['getFirstRange']();_0x5a670f['some'](_0x3bfaba=>_0x3bfaba['containsRange'](_0x588d73,!0x0))&&_0x27bb17['discard']();if(_0x5a670f['every'](_0x36c9ed=>_0x588d73['containsRange'](_0x36c9ed,!0x0))){const _0x461b27=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ce9,'accept');return this['forceDefaultExecution'](()=>_0x461b27(_0x5a670f,null,_0x5e8867)),null;}}const _0x44d45d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ce9,'join');let _0x443525=null;for(const _0x4c400c of this['getSuggestions']())if(_0x4c400c['author']['id']==_0x56ac94['id']&&_0x4c400c['isInContent']&&'deletion'==_0x4c400c['type']&&_0x4c400c['subType']==_0x538ce9&&qt(_0x4c400c,_0x5e8867)&&(_0x44d45d(_0x4c400c['getRanges'](),_0x5a670f)||_0x44d45d(_0x5a670f,_0x4c400c['getRanges']()))){if(_0x443525){if(_0x4c400c['commentThread']&&_0x4c400c['commentThread']['length'])continue;for(const _0x20b1fa of _0x4c400c['getRanges']())_0x443525['isIntersectingWithRange'](_0x20b1fa)||_0x443525['addRange'](_0x20b1fa);_0x4c400c['removeMarkers']();}else{_0x443525=_0x4c400c;for(const _0x21ac80 of _0x5a670f)_0x4c400c['isIntersectingWithRange'](_0x21ac80)||_0x4c400c['addRange'](_0x21ac80);}}if(_0x443525)return _0x443525;_0xbd2de['clear']();for(const {suggestion:_0x36225f,meta:_0x2f6baf}of this['_findSuggestions'](_0x5a670f,'deletion'))_0x2f6baf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f6baf['containsRangeInObject']&&!_0x2f6baf['isInsideObject'])&&qt(_0x36225f,_0x5e8867)&&_0xbd2de['add'](_0x36225f);for(const _0x337749 of _0xbd2de){const _0x3fd68c=_0x337749['getRanges']();if(!_0x5e8867||!_0x5e8867['skipNestingCheck']){if(_0x5a670f['every'](_0x5e9208=>_0x3fd68c['some'](_0x18a50c=>_0x18a50c['containsRange'](_0x5e9208,!0x0))))return _0x337749;}(!_0x337749['attributes']||!_0x337749['attributes']['skipNestingCheck'])&&(_0x3fd68c['every'](_0x58aaf6=>_0x5a670f['some'](_0x57ec24=>_0x57ec24['containsRange'](_0x58aaf6,!0x0)))&&_0x337749['discard']());}const _0x10111a=_0x3862eb(),_0x45ed79=_0x56ac94['id'],_0x5af450='deletion:'+_0x538ce9,_0x4e4e84=this['_setSuggestionData']({'id':_0x10111a,'type':_0x5af450,'createdAt':new Date(),'authorId':_0x45ed79,'attributes':_0x5e8867});for(const _0x3640df of _0x5a670f)_0x3640df['detach'](),_0x3640df['isCollapsed']||'$graveyard'==_0x3640df['root']['rootName']||this['_addSuggestionMarker'](_0x5af450,_0x10111a,_0x45ed79,_0x3640df,u['getMultiRangeId']());return _0x4e4e84;}['markAttributeChange'](_0x4d5f2d,_0x1c8256,_0x448b58,_0x5a5d21,_0x36578e){if(_0x4d5f2d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3d1b5d=this['editor']['plugins']['get']('Users')['me']['id'],_0x51c9b3=Array['from'](this['_suggestions']['values']())['filter'](_0x3cf56e=>'attribute'==_0x3cf56e['type']&&_0x3cf56e['data']['key']==_0x1c8256&&_0x3cf56e['isIntersectingWithRange'](_0x4d5f2d));if('default'===this['_trackFormatChanges']){const _0x2f1a4a=this['_findSuggestions'](_0x4d5f2d,'insertion')['filter'](({meta:_0x5dfbd3})=>_0x5dfbd3['isOwn']&&!_0x5dfbd3['isInsideObject']&&!_0x5dfbd3['isNextTo'])['map'](({suggestion:_0x5a6bcc})=>_0x5a6bcc);_0x51c9b3['unshift'](..._0x2f1a4a);}const _0x9b5a13=new Map([[_0x4d5f2d,_0x448b58]]);for(const _0x34f810 of _0x51c9b3){const _0x51bbd2='attribute'==_0x34f810['type']?_0x34f810['data']['oldValue']:void 0x0,_0x58b2f3=_0x34f810['getFirstRange'](),_0x4bae0a=Array['from'](_0x9b5a13['keys']())['find'](_0x3bceac=>_0x3bceac['isIntersecting'](_0x58b2f3));if(!_0x4bae0a)continue;const _0x4fca33=_0x4bae0a['getDifference'](_0x58b2f3);this['_isBlockAttribute'](_0x1c8256)&&'insertion'==_0x34f810['type']&&0x0!=_0x4fca33['length']||(_0x9b5a13['delete'](_0x4bae0a),_0x4fca33['forEach'](_0x59c7a7=>{_0x9b5a13['set'](_0x59c7a7,_0x448b58);}),'insertion'!=_0x34f810['type']&&_0x51bbd2!=_0x5a5d21&&_0x9b5a13['set'](_0x4bae0a['getIntersection'](_0x58b2f3),_0x51bbd2));}const _0x1e6bcf=[];for(const [_0x505718,_0x1c8bba]of _0x9b5a13){const _0x49fea2=_0x3862eb(),_0x49a4d9={'key':_0x1c8256,'oldValue':_0x1c8bba,'newValue':_0x5a5d21};_0x1c8256['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':_0x1c8256});const _0x4e0e3c=('attribute:'+(_0x1c8256+'|'+Gt({'newValue':_0x5a5d21})))['substring'](0x0,0x3c),_0x1c8081=this['_setSuggestionData']({'id':_0x49fea2,'type':_0x4e0e3c,'data':_0x49a4d9,'createdAt':new Date(),'authorId':_0x3d1b5d,'attributes':_0x36578e});_0x1e6bcf['push'](_0x1c8081),this['_addSuggestionMarker'](_0x4e0e3c,_0x49fea2,_0x3d1b5d,_0x505718);}return _0x1e6bcf;}['enableDefaultAttributesIntegration'](_0x2c14df){this['enableCommand'](_0x2c14df,(_0xfeb1,..._0x2f6113)=>{this['_recordAttributeChanges'](()=>{_0xfeb1(..._0x2f6113);});});}['registerBlockAttribute'](_0x6eaff5){this['_blockAttributeKeys']['add'](_0x6eaff5);}['registerInlineAttribute'](_0x5ad44d){this['_inlineAttributeKeys']['add'](_0x5ad44d);}['_getAttributeKey'](_0x1258dd){return'attribute'==_0x1258dd['type']?_0x1258dd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4bf15b,_0x50fb7){const _0x17223a=_0x4bf15b['getFirstMarker']();this['_model']['change'](_0x3f9c88=>{_0x3f9c88['updateMarker'](_0x17223a,{'range':_0x50fb7});});}['_addThreadToSuggestion'](_0x3efdeb){const _0x1ef672=_0x3efdeb['id'],_0x3495c6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1ef672)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3495c6,'threadId':_0x1ef672,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x398e17=this['_commentsRepository']['getCommentThread'](_0x1ef672);_0x398e17['unbind']('isRemovable'),_0x398e17['isRemovable']=!0x1,_0x3efdeb['commentThread']=_0x398e17;}['_checkSuggestionCorrectness'](_0x166fc8,_0x51db85,_0x4d7e13,_0xfc6422){if(_0x166fc8['type']!=_0x51db85||_0x166fc8['subType']!=_0x4d7e13||_0x166fc8['creator']['id']!=_0xfc6422)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3993e2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x95543d,_0x54fb28){const _0x3c1bb8=_0x95543d['getFirstRange']();if(_0x54fb28['isEqual'](_0x3c1bb8))_0x95543d['removeMarkers']();else{if(_0x3c1bb8['containsRange'](_0x54fb28)){const _0x4eda31=this['_model']['createPositionAt'](_0x54fb28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x95543d,this['_model']['createRange'](_0x3c1bb8['start'],_0x4eda31));const _0x45a74d=_0x3862eb(),_0x1bd5e7=_0x95543d['creator']['id'],_0x576675=_0x95543d['type']+':'+_0x95543d['subType'];this['_setSuggestionData']({'id':_0x45a74d,'type':_0x576675,'createdAt':new Date(),'authorId':_0x1bd5e7,'data':_0x95543d['data'],'attributes':_0x95543d['attributes']});const _0x590c10=this['_model']['createPositionAt'](_0x54fb28['end']['parent'],'after'),_0x48c91d=this['_model']['createRange'](_0x590c10,_0x3c1bb8['end']);this['_addSuggestionMarker'](_0x576675,_0x45a74d,_0x1bd5e7,_0x48c91d);}else{if(_0x3c1bb8['containsPosition'](_0x54fb28['start'])){const _0xf0ebb9=this['_model']['createPositionAt'](_0x54fb28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x95543d,this['_model']['createRange'](_0x3c1bb8['start'],_0xf0ebb9));}else{const _0x4b090f=this['_model']['createPositionAt'](_0x54fb28['end']['parent'],'after');this['_setSuggestionRange'](_0x95543d,this['_model']['createRange'](_0x4b090f,_0x3c1bb8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x67f2db){for(const {suggestion:_0x4c9608,meta:_0x34074e}of this['_findSuggestions'](_0x67f2db,'insertion')){if(!_0x34074e['isOwn'])continue;const _0x4c8998=_0x4c9608['getRanges']();for(const _0x40df2c of _0x4c8998)if(!_0x67f2db['getDifference'](_0x40df2c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b6f88){const _0x414883=this['editor']['plugins']['get']('Users')['getUser'](_0x2b6f88);if(!_0x414883)throw new _0x3993e2('track-changes-user-not-found',this);return _0x414883;}['_getExternalAuthor'](_0x401849){const _0x5a3c1a=this['editor']['plugins']['get']('Users'),_0x3e6338=_0x4814d4('external:'+_0x401849),_0x43ce36=_0x5a3c1a['getUser'](_0x3e6338);return _0x43ce36||_0x5a3c1a['addUser']({'id':_0x3e6338,'name':_0x401849});}['_createSuggestion'](_0xc655ec,_0x4b86e9,_0x332cfc,_0x343ee6,_0x362f1f){const _0x335e4f=this['_getAuthorFromId'](_0x343ee6),_0x54ddf7=this['_suggestionFactory']['buildSuggestion'](_0xc655ec,_0x4b86e9,_0x332cfc,_0x335e4f,_0x362f1f,_0x5c860f=>{this['_updateSuggestionData'](_0x332cfc,{'attributes':_0x5c860f});const _0x248b36=this['getSuggestion'](_0x332cfc);this['_joinWithAdjacentSuggestions'](new Set([_0x248b36])),this['_refreshSuggestionsChain'](new Set([_0x248b36]));});return this['listenTo'](_0x54ddf7,'accept',()=>{this['_updateSuggestionData'](_0x332cfc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x54ddf7,'discard',()=>{this['_updateSuggestionData'](_0x332cfc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x332cfc,_0x54ddf7),this['_suggestionState']['set'](_0x54ddf7,'notReady'),_0x54ddf7;}['_splitMarkerName'](_0xf9461f){const _0x2ced96=_0xf9461f['split'](':');return{'group':_0x2ced96[0x0],'type':_0x2ced96[0x1],'subType':_0x2ced96['length']>=0x5?_0x2ced96[0x2]:null,'id':_0x2ced96['length']<0x5?_0x2ced96[0x2]:_0x2ced96[0x3],'authorId':_0x2ced96['length']<0x5?_0x2ced96[0x3]:_0x2ced96[0x4],'markerCount':0x6==_0x2ced96['length']?_0x2ced96[0x5]:null};}['_breakSuggestionMarker'](_0x2befce,_0x26a383,_0x102547){const _0x518389=_0x2befce['getFirstRange'](),_0x464d83=_0x518389['start'],_0x93bfe7=_0x518389['end'];this['_setSuggestionRange'](_0x2befce,this['_model']['createRange'](_0x464d83,_0x26a383));const _0x5f5810=_0x3862eb(),_0x3a69c4=_0x2befce['creator']['id'],_0x404958=_0x2befce['type']+(_0x2befce['subType']?':'+_0x2befce['subType']:'');this['_setSuggestionData']({'id':_0x5f5810,'type':_0x404958,'createdAt':new Date(),'authorId':_0x3a69c4,'originalSuggestionId':_0x2befce['id'],'attributes':_0x2befce['attributes'],'data':_0x2befce['data']});const _0x4e763a=this['_getAttributeKey'](_0x2befce);('formatBlock'==_0x2befce['type']||_0x4e763a&&this['_isBlockAttribute'](_0x4e763a))&&(_0x102547=this['_model']['createPositionBefore'](_0x102547['parent'])),this['_addSuggestionMarker'](_0x404958,_0x5f5810,_0x3a69c4,this['_model']['createRange'](_0x102547,_0x93bfe7));}['_findSuggestions'](_0x147acb,_0x1927ad=null){const _0x5944a7=[],_0x191e52=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x147acb)||(_0x147acb=[_0x147acb]);for(const _0x530c3d of this['getSuggestions']()){if(!_0x530c3d['isInContent'])continue;if(_0x1927ad&&_0x530c3d['type']!=_0x1927ad)continue;let _0x3a646b=!0x1;for(const _0x8befd1 of _0x530c3d['getRanges']()){for(const _0x281a11 of _0x147acb){const _0x211b0c=_0x281a11['start']['isEqual'](_0x8befd1['end'])||_0x281a11['end']['isEqual'](_0x8befd1['start']);if(_0x211b0c||_0x281a11['getIntersection'](_0x8befd1)){const _0x256dac=_0x281a11['containsRange'](_0x8befd1)&&Ot(this['_model']['schema'],_0x8befd1['start'],_0x281a11),_0x75e59e=_0x8befd1['containsRange'](_0x281a11)&&Ot(this['_model']['schema'],_0x281a11['start'],_0x8befd1);_0x5944a7['push']({'suggestion':_0x530c3d,'meta':{'isOwn':_0x191e52==_0x530c3d['author'],'isNextTo':_0x211b0c,'isInsideObject':_0x256dac,'containsRangeInObject':_0x75e59e}}),_0x3a646b=!0x0;break;}}if(_0x3a646b)break;}}return _0x5944a7;}['_addSuggestionMarker'](_0x3f8667,_0x483779,_0x520bbe,_0x1e361d,_0x3393b8){this['_model']['change'](_0x1d5cbb=>{let _0x37fa7f='suggestion:'+_0x3f8667+':'+_0x483779+':'+_0x520bbe;_0x3393b8&&(_0x37fa7f=_0x37fa7f+':'+_0x3393b8),_0x1d5cbb['addMarker'](_0x37fa7f,{'range':_0x1e361d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e76bd){const _0x49da20=_0x1e76bd['previous'],_0x340875=_0x1e76bd['next'];_0x1e76bd['previous']=null,_0x1e76bd['next']=null,null!=_0x49da20&&_0x49da20['next']==_0x1e76bd&&(_0x49da20['next']=_0x340875),null!=_0x340875&&_0x340875['previous']==_0x1e76bd&&(_0x340875['previous']=_0x49da20),'ready'==this['_suggestionState']['get'](_0x1e76bd)&&(this['_suggestionState']['set'](_0x1e76bd,'removed'),this['fire']('suggestionUnloaded',_0x1e76bd,_0x49da20,_0x340875));}['_setSuggestionData'](_0x1fde84){const _0x5658e9=_0x1fde84['id'],_0x42245d=this['addSuggestionData'](_0x1fde84);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5257c5=this['editor']['plugins']['get']('PendingActions'),_0x157a8f=_0x42245d['hasComments'],_0x4cf5f5=_0x42245d['subType']?_0x42245d['type']+':'+_0x42245d['subType']:_0x42245d['type'],_0x1489c3=this['editor']['locale'],_0x27947e=_0x5257c5['add'](o(_0x1489c3,'PENDING_ACTION_SUGGESTION')),_0x48034c={'id':_0x5658e9,'type':_0x4cf5f5,'hasComments':_0x157a8f,'data':_0x1fde84['data']||null,'originalSuggestionId':_0x1fde84['originalSuggestionId']||null,'attributes':_0x42245d['attributes']};this['_adapter']['addSuggestion'](_0x48034c)['then'](_0x3498c6=>{_0x42245d['_saved']=!0x0,_0x5257c5['remove'](_0x27947e),_0x3498c6&&_0x3498c6['createdAt']&&(this['_suggestions']['get'](_0x5658e9)['createdAt']=_0x3498c6['createdAt']);})['catch'](_0x20ff49=>{throw _0x524eb8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42245d['discard']();}),_0x42245d['stopListening'](),this['_suggestions']['delete'](_0x42245d['id']),this['_suggestionState']['delete'](_0x42245d),_0x20ff49;});}return _0x42245d;}['_isBlockAttribute'](_0x1b5cee){return this['_blockAttributeKeys']['has'](_0x1b5cee);}['_updateSuggestionData'](_0x1b2bf2,_0x2674df){const _0x7f9c2=this['editor']['plugins']['get']('PendingActions'),_0x57e75c=this['getSuggestion'](_0x1b2bf2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x57e75c['_saved']){const _0xe09a8b=_0x7f9c2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1b2bf2,_0x2674df)['then'](()=>{_0x7f9c2['remove'](_0xe09a8b);});}else _0x57e75c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1b2bf2,_0x2674df);});}}['_getSuggestionData'](_0x330732){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3993e2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x330732);}['_handleNewSuggestionMarker'](_0x20dca9){const {id:_0x413690,type:_0x50f548,subType:_0xc9ab30,authorId:_0x40f864}=this['_splitMarkerName'](_0x20dca9),_0x491c48=this['_suggestions']['get'](_0x413690)||this['_createSuggestion'](_0x50f548,_0xc9ab30,_0x413690,_0x40f864,{});switch(this['_checkSuggestionCorrectness'](_0x491c48,_0x50f548,_0xc9ab30,_0x40f864),this['_suggestionState']['get'](_0x491c48)){case'notReady':this['_getSuggestionData'](_0x413690)['then'](_0x1a900e=>{let _0x52ada8=Promise['resolve']();_0x1a900e['hasComments']&&(_0x52ada8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x413690})),_0x52ada8['then'](()=>{this['addSuggestionData'](_0x1a900e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x491c48,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x413690,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x491c48,'ready'),this['fire']('suggestionLoaded',_0x491c48);break;case'ready':this['fire']('suggestionChanged',_0x491c48);}return _0x491c48['addMarkerName'](_0x20dca9),_0x491c48;}['_refreshSuggestionsChain'](_0x2916fa){const _0x31da5d=Array['from'](_0x2916fa),_0x3c2455=_0x31da5d['filter'](_0x4a7b00=>'attribute'==_0x4a7b00['type']);this['_refreshAttributeSuggestionsChain'](_0x3c2455);const _0x375d25=_0x31da5d['filter'](_0x575bc0=>!_0x575bc0['isMultiRange']&&'attribute'!=_0x575bc0['type']),_0x13abcf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29be6f=>!_0x29be6f['isMultiRange']&&'attribute'!=_0x29be6f['type']),_0x83c51b=_0x13abcf['filter'](_0x26b26e=>!_0x2916fa['has'](_0x26b26e)),_0x1401af=new Map(_0x13abcf['map'](_0x2ad956=>[_0x2ad956,this['_suggestionFactory']['getSuggestionCallback'](_0x2ad956['type'],_0x2ad956['subType'],'chain')])),_0x45f502=new Map(_0x13abcf['map'](_0x1a4f6=>[_0x1a4f6,_0x1a4f6['getFirstRange']()])),_0x33c4cb=new Set(),_0x2675e2=new Set();for(let _0x359564=0x0;_0x359564<_0x375d25['length'];_0x359564++)_0x9a2b4c(_0x375d25[_0x359564],_0x375d25,_0x359564+0x1);for(let _0x545471=0x0;_0x545471<_0x375d25['length'];_0x545471++)_0x9a2b4c(_0x375d25[_0x545471],_0x83c51b,0x0);const _0x109388=new Set();for(let _0x32eb9e=0x0;_0x32eb9e<_0x375d25['length'];_0x32eb9e++){const _0x16007a=_0x375d25[_0x32eb9e];!_0x2675e2['has'](_0x16007a)&&_0x16007a['previous']&&(_0x109388['add'](_0x16007a['previous']),_0x16007a['previous']['next']===_0x16007a&&(_0x16007a['previous']['next']=null),_0x16007a['previous']=null),!_0x33c4cb['has'](_0x16007a)&&_0x16007a['next']&&(_0x109388['add'](_0x16007a['next']),_0x16007a['next']['previous']===_0x16007a&&(_0x16007a['next']['previous']=null),_0x16007a['next']=null);}function _0x9a2b4c(_0xfbb70b,_0x263e9d,_0x2ded2b){for(let _0x322ca6=_0x2ded2b;_0x322ca6<_0x263e9d['length'];_0x322ca6++){const _0x5d487a=_0x18e5c2(_0xfbb70b,_0x263e9d[_0x322ca6]);_0x5d487a&&(_0x5d487a[0x0]['next']=_0x5d487a[0x1],_0x5d487a[0x1]['previous']=_0x5d487a[0x0],_0x33c4cb['add'](_0x5d487a[0x0]),_0x2675e2['add'](_0x5d487a[0x1]));}}function _0x18e5c2(_0x2be24f,_0x5864d2){if(_0x2be24f['author']['id']!==_0x5864d2['author']['id'])return null;const _0x2e9376=_0x1401af['get'](_0x2be24f)(_0x2be24f,_0x5864d2,_0x45f502['get'](_0x2be24f),_0x45f502['get'](_0x5864d2));if(!_0x2e9376)return null;return _0x1401af['get'](_0x5864d2)(_0x2be24f,_0x5864d2,_0x45f502['get'](_0x2be24f),_0x45f502['get'](_0x5864d2))?_0x2e9376[0x1]['commentThread']&&_0x2e9376[0x1]['commentThread']['length']?null:_0x2e9376:null;}_0x109388['size']&&this['_refreshSuggestionsChain'](_0x109388);}['_refreshAttributeSuggestionsChain'](_0x779393){if(0x0==_0x779393['length'])return;const _0x4c8449=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x273db4=>'attribute'==_0x273db4['type']&&_0x273db4['_isDataLoaded']),_0x176580=[],_0x4016ef=new Map();for(const _0x5f298a of _0x4c8449){const _0x49ba61=_0x4814d4(_0x5f298a['attributes']);_0x4016ef['has'](_0x49ba61)||(_0x4016ef['set'](_0x49ba61,_0x176580['length']),_0x176580['push']([]));const _0x2abdbd=_0x4016ef['get'](_0x49ba61);_0x176580[_0x2abdbd]['push'](_0x5f298a);}!(function(){_0x176580['sort']((_0x598041,_0xe60f4b)=>{const _0x4fdd3d=_0x598041[0x0]['createdAt'],_0x2b5fe9=_0xe60f4b[0x0]['createdAt'];return _0x4fdd3d==_0x2b5fe9?_0x598041[0x0]['attributes']['groupId']<_0xe60f4b[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fdd3d<_0x2b5fe9?-0x1:0x1;});for(const _0x4ac100 of _0x176580)_0x4ac100['sort']((_0x1b157a,_0xb70fc6)=>_0x1b157a['id']<_0xb70fc6['id']?-0x1:0x1);}());for(let _0x2dccf1=0x0;_0x2dccf1<_0x176580['length'];_0x2dccf1++){if(0x0==_0x176580[_0x2dccf1]['length'])continue;const _0x334f5d=[];for(let _0x5ec3a5=_0x2dccf1+0x1;_0x5ec3a5<_0x176580['length'];_0x5ec3a5++)0x0!=_0x176580[_0x5ec3a5]['length']&&_0x8d9b2b(_0x176580[_0x2dccf1],_0x176580[_0x5ec3a5])&&_0x334f5d['push'](_0x5ec3a5);for(const _0x423c53 of _0x334f5d)_0x176580[_0x2dccf1]=_0x176580[_0x2dccf1]['concat'](_0x176580[_0x423c53]),_0x176580[_0x423c53]=[];}for(const _0x238500 of _0x176580)for(let _0x5170bc=0x0;_0x5170bc<_0x238500['length'];_0x5170bc++){const _0x279f0a=_0x238500[_0x5170bc+0x1]||null;_0x238500[_0x5170bc]['next']!==_0x279f0a&&(_0x238500[_0x5170bc]['next']=_0x279f0a);}for(const _0x21179e of _0x176580)for(let _0x3c8d0d=0x0;_0x3c8d0d<_0x21179e['length'];_0x3c8d0d++){const _0x2b307d=_0x21179e[_0x3c8d0d-0x1]||null;_0x21179e[_0x3c8d0d]['previous']!==_0x2b307d&&(_0x21179e[_0x3c8d0d]['previous']=_0x2b307d);}function _0x8d9b2b(_0x478c2d,_0x26990c){if(_0x478c2d[0x0]['attributes']['groupId']!==_0x26990c[0x0]['attributes']['groupId']&&_0x478c2d[0x0]['author']!==_0x26990c[0x0]['author'])return!0x1;if(!function(_0x532d1c,_0x38fe62){if(!_0x532d1c['hasComments']&&!_0x38fe62['hasComments'])return!0x0;if(_0x532d1c['hasComments']&&_0x38fe62['hasComments'])return!0x1;if(_0x532d1c['hasComments']&&_0x38fe62['createdAt']<_0x532d1c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x38fe62['hasComments']&&_0x532d1c['createdAt']<_0x38fe62['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x478c2d[0x0],_0x26990c[0x0]))return!0x1;const _0x252b35=Tt(_0x478c2d[0x0]['attributes'],'groupId'),_0x5b2ddc=Tt(_0x26990c[0x0]['attributes'],'groupId');if(!_0x35d659(_0x252b35,_0x5b2ddc))return!0x1;return!!_0x478c2d['every'](_0x464cb2=>_0x26990c['some'](_0x3e4f1a=>_0x464cb2['getFirstRange']()['isEqual'](_0x3e4f1a['getFirstRange']())))&&_0x26990c['every'](_0xce18b1=>_0x478c2d['some'](_0x49ffaa=>_0xce18b1['getFirstRange']()['isEqual'](_0x49ffaa['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x402029){const _0x3a7d0d=Array['from'](_0x402029),_0x28c8d9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3461dd=_0x28c8d9['filter'](_0x19e4bd=>!_0x402029['has'](_0x19e4bd)),_0x4c1470=new Map(_0x3a7d0d['map'](_0x429e8b=>[_0x429e8b,this['_suggestionFactory']['getSuggestionCallback'](_0x429e8b['type'],_0x429e8b['subType'],'join')])),_0xa2463b=new Map(_0x28c8d9['map'](_0xbedc71=>[_0xbedc71,_0xbedc71['getRanges']()]));for(let _0xdd069e=0x0;_0xdd069e<_0x3a7d0d['length'];_0xdd069e++){if(_0x2764c6(this,_0x3a7d0d[_0xdd069e],_0x3a7d0d,_0xdd069e+0x1))return!0x0;}for(let _0x4a52d2=0x0;_0x4a52d2<_0x3a7d0d['length'];_0x4a52d2++){if(_0x2764c6(this,_0x3a7d0d[_0x4a52d2],_0x3461dd,0x0))return!0x0;}return!0x1;function _0x2764c6(_0x1e8502,_0x26cfe2,_0x5641f1,_0x102a30){for(let _0x1d2651=_0x102a30;_0x1d2651<_0x5641f1['length'];_0x1d2651++){const _0x59bbd9=_0x5641f1[_0x1d2651];if(_0x59bbd9['type']!==_0x26cfe2['type']||_0x59bbd9['author']['id']!==_0x26cfe2['author']['id']||_0x59bbd9['subType']!==_0x26cfe2['subType'])continue;if(!Jt(_0x26cfe2,_0x59bbd9))continue;if('attribute'==_0x26cfe2['type']&&_0x26cfe2['data']['oldValue']!=_0x59bbd9['data']['oldValue'])continue;if('attribute'==_0x26cfe2['type']&&_0x1e8502['_isBlockAttribute'](_0x26cfe2['data']['key']))continue;if('formatBlock'==_0x26cfe2['type']){const _0x2e702c=_0x1e8502['editor']['model'],_0x2fc2fb=_0x26cfe2['getContainedElement']();if(_0x2fc2fb&&(_0x2e702c['schema']['isObject'](_0x2fc2fb)||_0x2e702c['schema']['isLimit'](_0x2fc2fb)))continue;}const _0x16f260=_0x4c1470['get'](_0x26cfe2),_0x4a7bd8=_0xa2463b['get'](_0x26cfe2),_0x38482f=_0xa2463b['get'](_0x59bbd9),_0x2fa2d0=_0x26cfe2['commentThread']&&_0x26cfe2['commentThread']['length'],_0x271890=_0x59bbd9['commentThread']&&_0x59bbd9['commentThread']['length'];if(!_0x2fa2d0&&_0x16f260(_0x38482f,_0x4a7bd8))return _0x1e8502['_joinSuggestions'](_0x59bbd9,_0x26cfe2),_0xa2463b['delete'](_0x26cfe2),!0x0;if(!_0x271890&&_0x16f260(_0x4a7bd8,_0x38482f))return _0x1e8502['_joinSuggestions'](_0x26cfe2,_0x59bbd9),_0xa2463b['delete'](_0x59bbd9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1b0dff,_0x161e47){if(_0x1b0dff['isMultiRange']){for(const _0x4787ab of _0x161e47['getRanges']())_0x1b0dff['addRange'](_0x4787ab);}else{const _0x3fca89=_0x161e47['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1b0dff,this['_model']['createRange'](_0x1b0dff['getFirstRange']()['start'],_0x3fca89));}_0x161e47['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f56c6,_0x573cf0,_0x124336){const _0x7b480e=_0x3f56c6['startsWith']('format')||_0x3f56c6['startsWith']('attribute')?'FORMATTING':_0x3f56c6['toUpperCase']();return o(this['editor']['locale'],_0x573cf0+'_'+_0x7b480e+'_SUGGESTION_ANNOUNCEMENT',_0x124336);}['_initAriaMarkerChangeAnnouncements'](){const _0x1d4dcd=this['editor'];if(!_0x1d4dcd['ui'])return;const {ariaLiveAnnouncer:_0x240678}=_0x1d4dcd['ui'];_0x632ec4(this['_model'],({left:_0x4ba010,entered:_0x14aefb})=>{for(const _0x478dc0 of _0x4ba010){const {group:_0x255167,type:_0x379c9b}=this['_splitMarkerName'](_0x478dc0['name']);if('suggestion'===_0x255167){_0x240678['announce'](this['_getMarkerAnnouncementText'](_0x379c9b,'LEAVE'));break;}}for(const _0x1cc4e5 of _0x14aefb){const {group:_0x97a096,type:_0x219a25}=this['_splitMarkerName'](_0x1cc4e5['name']);if('suggestion'===_0x97a096){_0x240678['announce'](this['_getMarkerAnnouncementText'](_0x219a25,'ENTER',_0x11ff70(_0x9a2ac5)));break;}}});}['_processAttributeChanges'](_0x4a0fa6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x9c9c0b=this['editor'],_0x52fe4c=_0x9c9c0b['model']['document']['differ']['getChanges']();if(0x0==_0x52fe4c['length'])return!0x1;const _0x161a08=[],_0x5734c4=_0x52fe4c['filter'](_0x3b7b1c=>'attribute'==_0x3b7b1c['type']),_0x5378a1=_0x52fe4c['filter'](_0x4c3801=>'insert'==_0x4c3801['type']&&'$text'!=_0x4c3801['name']),_0x136f01=_0x52fe4c['filter'](_0xda48cf=>'remove'==_0xda48cf['type']&&'$text'!=_0xda48cf['name']);for(const _0x448976 of _0x5734c4)_0x161a08['push']({'key':_0x448976['attributeKey'],'newValue':_0x448976['attributeNewValue'],'oldValue':_0x448976['attributeOldValue'],'range':Pt(_0x448976['range'],_0x9c9c0b['model'])});for(const _0x5bbac0 of _0x5378a1){const _0x3df2d0=_0x136f01['find'](_0x2bf90e=>_0x2bf90e['position']['isEqual'](_0x5bbac0['position']));_0x3df2d0&&_0x161a08['push']({'key':m,'newValue':_0x5bbac0['name'],'oldValue':_0x3df2d0['name'],'range':_0x9c9c0b['model']['createRangeOn'](_0x5bbac0['position']['nodeAfter'])});}return 0x0!=_0x161a08['length']&&this['_reduceExistingSuggestions'](_0x4a0fa6,_0x161a08);}['_processAttributeSuggestions'](_0x3ed7fa){let _0x347434=!0x1;const _0x12179b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d65b4=>_0x3d65b4['data']['newRange']&&_0x3d65b4['name']['startsWith']('suggestion:attribute:'));for(const _0x128c8b of _0x12179b){const {subType:_0x4e4b43,id:_0x16d25c}=this['_splitMarkerName'](_0x128c8b['name']),_0x18a837=_0x4e4b43['split']('|')[0x0];for(const _0x585309 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x585309['id']!=_0x16d25c&&'attribute'==_0x585309['type']&&_0x585309['data']&&_0x585309['data']['key']==_0x18a837&&_0x585309['getFirstRange']()['isIntersecting'](_0x128c8b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x585309,_0x128c8b['data']['newRange'],_0x3ed7fa),_0x347434=!0x0);}return _0x347434;}['_recordAttributeChanges'](_0x3ff570){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3ff570();}['_isRegisteredAttribute'](_0x39bfcd){const _0x2f2a15=this['_isBlockAttribute'](_0x39bfcd),_0x111959=this['_inlineAttributeKeys']['has'](_0x39bfcd);return _0x2f2a15||_0x111959;}['_reduceExistingSuggestions'](_0x4ad3c9,_0x5f5052){if(0x0==_0x5f5052['length'])return!0x1;let _0x228089=!0x1;for(const _0x2e4bc7 of _0x5f5052){const _0x5300d5=this['_findSuggestions'](_0x2e4bc7['range'],'attribute')['filter'](_0x71a179=>!_0x71a179['meta']['isNextTo'])['map'](_0x5abfdd=>_0x5abfdd['suggestion']),_0x5e10c0=_0x4814d4({'newValue':_0x2e4bc7['newValue']});_0x5300d5['filter'](_0x1269a1=>{const [_0x543bb4,_0x3407af]=_0x1269a1['subType']['split']('|');return _0x543bb4==_0x2e4bc7['key']&&_0x3407af!=_0x5e10c0;})['forEach'](_0x1b48db=>{this['_reduceSuggestionAttributeRange'](_0x1b48db,_0x2e4bc7['range'],_0x4ad3c9),_0x228089=!0x0;});}return _0x228089;}['_reduceSuggestionAttributeRange'](_0x71e3e3,_0x4d93e9,_0x229258){const _0x36041d=_0x71e3e3['getFirstRange']()['getDifference'](_0x4d93e9);0x0!==_0x36041d['length']?0x1!==_0x36041d['length']?this['_breakSuggestionMarker'](_0x71e3e3,_0x4d93e9['start'],_0x4d93e9['end']):this['_setSuggestionRange'](_0x71e3e3,_0x36041d[0x0]):_0x229258['removeMarker'](_0x71e3e3['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x34b277){this['_editor']=_0x34b277,this['_model']=_0x34b277['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x204868,_0x20996d,_0x38ec6b,_0x8d37ae,_0x27fff0,_0x29ff4d){return new u(this['_model'],{'type':_0x204868,'subType':_0x20996d,'id':_0x38ec6b,'author':_0x8d37ae,'creator':_0x8d37ae,'attributes':_0x27fff0,'onAttributesChange':_0x29ff4d,'onAccept':(..._0xa489b5)=>this['getSuggestionCallback'](_0x204868,_0x20996d,'accept')(..._0xa489b5),'onDiscard':(..._0x4f95b5)=>this['getSuggestionCallback'](_0x204868,_0x20996d,'discard')(..._0x4f95b5)});}['registerCustomCallback'](_0x2c5f73,_0x3f8d5a,_0x510e3e,_0x572e68){const _0x35de58=_0x2c5f73+':'+_0x3f8d5a+':'+_0x510e3e;this['_customCallbacks']['set'](_0x35de58,_0x572e68);}['getSuggestionCallback'](_0x4c9b21,_0x4315ef,_0x576ca6){const _0x4c34d8=_0x4c9b21+':'+_0x4315ef+':'+_0x576ca6;return this['_customCallbacks']['get'](_0x4c34d8)||this['_defaultCallbacks']['get'](_0x4c9b21+':'+_0x576ca6);}['_registerDefaultCallbacks'](){const _0xe49a99=()=>!0x1,_0x5a1283=_0x2ca09d=>{_0x2ca09d['sort']((_0x286fd6,_0x55fec7)=>_0x286fd6['start']['isBefore'](_0x55fec7['start'])?0x1:-0x1),this['_model']['change'](_0x439323=>{for(const _0x1f7bdd of _0x2ca09d){let _0x55b089;_0x55b089=_0x1f7bdd['end']['isAtEnd']&&_0x1f7bdd['end']['parent']==_0x1f7bdd['start']['nodeAfter']?_0x439323['createSelection'](_0x1f7bdd['start']['nodeAfter'],'on'):_0x439323['createSelection'](_0x1f7bdd),this['_model']['deleteContent'](_0x55b089,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x8da2f1=(_0x7742f1,_0x56da78)=>{_0x56da78&&this['_model']['change'](_0x180417=>{const {commandName:_0x35d157,commandParams:_0x32795c=[]}=_0x56da78,_0x588327=_0x7742f1['map'](_0x689aa7=>(Vt(_0x689aa7)&&(_0x689aa7=this['_model']['createRange'](_0x689aa7['end'])),_0x689aa7))['filter'](_0x4735c8=>'$graveyard'!==_0x4735c8['root']['rootName']);if(_0x588327['length']<0x1)return;const _0x35c2f2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x138fd2=>_0x142937['fromRange'](_0x138fd2));_0x180417['setSelection'](_0x588327);for(const _0x712623 of this['_editor']['commands']['commands']())_0x712623['refresh']();_0x32795c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x35d157,..._0x32795c);const _0x4bf472=_0x35c2f2['filter'](_0x3d32b4=>'$graveyard'!=_0x3d32b4['root']['rootName']);_0x4bf472['length']>0x0&&_0x180417['setSelection'](_0x4bf472);for(const _0x4dcd59 of _0x35c2f2)_0x4dcd59['detach']();});},_0x236c6b=(_0x4607d7,_0x128a05)=>0x1==_0x4607d7['length']&&0x1==_0x128a05['length']&&_0x4607d7[0x0]['end']['isEqual'](_0x128a05[0x0]['start']),_0x7ed05=(_0x332fc7,_0x4b1627,_0x5d4864,_0x5980e7)=>Ht(_0x332fc7,_0x4b1627,_0x5d4864,_0x5980e7,this['_model'])?[_0x332fc7,_0x4b1627]:Ht(_0x4b1627,_0x332fc7,_0x5980e7,_0x5d4864,this['_model'])?[_0x4b1627,_0x332fc7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xe49a99),this['_defaultCallbacks']['set']('insertion:discard',_0x5a1283),this['_defaultCallbacks']['set']('insertion:join',_0x236c6b),this['_defaultCallbacks']['set']('insertion:chain',_0x7ed05),this['_defaultCallbacks']['set']('deletion:accept',_0x5a1283),this['_defaultCallbacks']['set']('deletion:discard',_0xe49a99),this['_defaultCallbacks']['set']('deletion:join',_0x236c6b),this['_defaultCallbacks']['set']('deletion:chain',_0x7ed05),this['_defaultCallbacks']['set']('formatInline:accept',_0x8da2f1),this['_defaultCallbacks']['set']('formatInline:discard',_0xe49a99),this['_defaultCallbacks']['set']('formatInline:join',_0x236c6b),this['_defaultCallbacks']['set']('formatInline:chain',_0xe49a99),this['_defaultCallbacks']['set']('formatBlock:accept',_0x8da2f1),this['_defaultCallbacks']['set']('formatBlock:discard',_0xe49a99),this['_defaultCallbacks']['set']('formatBlock:join',_0x236c6b),this['_defaultCallbacks']['set']('formatBlock:chain',_0xe49a99),this['_defaultCallbacks']['set']('attribute:accept',_0xe49a99),this['_defaultCallbacks']['set']('attribute:discard',(_0x2cdf05,_0x370001)=>{if(!_0x370001)return;const _0x1b33f3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3f3b58=>{if(_0x370001['key']==m)for(const _0x2bd88d of _0x2cdf05){const _0x11f615=_0x2bd88d['start']['nodeAfter'],_0x1d67ce=_0x370001['oldValue'];_0x3f3b58['rename'](_0x11f615,_0x1d67ce);}else{if(_0x1b33f3['_isBlockAttribute'](_0x370001['key'])){for(const _0x23137a of _0x2cdf05)void 0x0!==_0x370001['oldValue']?_0x3f3b58['setAttribute'](_0x370001['key'],_0x370001['oldValue'],_0x23137a['start']['nodeAfter']):_0x3f3b58['removeAttribute'](_0x370001['key'],_0x23137a['start']['nodeAfter']);}else{for(const _0x29bb0f of _0x2cdf05)_0x370001['oldValue']?_0x3f3b58['setAttribute'](_0x370001['key'],_0x370001['oldValue'],_0x29bb0f):_0x3f3b58['removeAttribute'](_0x370001['key'],_0x29bb0f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x236c6b);}}function Ot(_0x317236,_0x36075f,_0x6a082a){for(const _0xc6625e of _0x36075f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xc6625e['root']==_0xc6625e)return!0x1;if(!_0x6a082a['containsItem'](_0xc6625e))return!0x1;if(_0x317236['isObject'](_0xc6625e)||_0x317236['isLimit'](_0xc6625e))return!0x0;}return!0x1;}function Vt(_0xf84296){return _0xf84296['end']['parent']==_0xf84296['start']['nodeAfter']&&_0xf84296['end']['isAtStart'];}function Ut(_0x2de08e,_0x29a613,_0x4e4f22,_0x39fc26){const _0x282fa7=_0x1b7d38=>!_0x1b7d38['item']['is']('$textProxy')&&!_0x39fc26['isObject'](_0x1b7d38['item']),_0x4db598=_0x2de08e['start']['getLastMatchingPosition'](_0x282fa7),_0x52a348=_0x2de08e['end']['getLastMatchingPosition'](_0x282fa7,{'direction':'backward'});return(!_0x2de08e['start']['isEqual'](_0x4db598)||!_0x2de08e['end']['isEqual'](_0x52a348))&&(_0x4db598['isBefore'](_0x52a348)?_0x4e4f22['updateMarker'](_0x29a613,{'range':_0x4e4f22['createRange'](_0x4db598,_0x52a348)}):_0x4e4f22['removeMarker'](_0x29a613),!0x0);}function Gt(_0x3aae09){return _0x4814d4(_0x3aae09);}function Ft(_0x22e9a8){const _0x56c130=_0x22e9a8['start']['nodeAfter'];return _0x56c130&&_0x56c130['is']('element');}function Pt(_0x3cd7c1,_0x40e96e){return null==_0x3cd7c1['end']['nodeBefore']&&_0x3cd7c1['end']['parent']==_0x3cd7c1['start']['nodeAfter']?Lt(_0x3cd7c1['start']['nodeAfter'],_0x40e96e):_0x3cd7c1;}function Lt(_0x59552f,_0x363e51){const _0x4dfa23=_0x363e51['schema']['isObject'](_0x59552f)||_0x363e51['schema']['isSelectable'](_0x59552f);return _0x363e51['createRange'](_0x363e51['createPositionAt'](_0x59552f,'before'),_0x4dfa23?_0x363e51['createPositionAfter'](_0x59552f):_0x363e51['createPositionAt'](_0x59552f,'end'));}function Ht(_0x1e7344,_0x5575ee,_0x11c408,_0x1af8e7,_0x5344ce){if(_0x1e7344['next'])return!0x1;if(!Jt(_0x1e7344,_0x5575ee))return!0x1;if(_0x11c408['end']['isEqual'](_0x1af8e7['start']))return!0x0;if(_0x1e7344['type']!=_0x5575ee['type'])return!0x1;if(!_0x11c408['end']['isTouching'](_0x1af8e7['start']))return!0x1;const _0x5a6e69=_0x5344ce['createRange'](_0x11c408['end'],_0x1af8e7['start'])['getWalker']();for(const _0x11e60e of _0x5a6e69)if(['elementStart','elementEnd']['includes'](_0x11e60e['type'])&&_0x5344ce['schema']['isLimit'](_0x11e60e['item']))return!0x1;return!0x0;}function Jt(_0x18cfc1,_0x4db260){if(!_0x18cfc1['_isDataLoaded']||!_0x4db260['_isDataLoaded'])return!0x1;const _0x488bcb=new Set(Object['keys'](_0x18cfc1['attributes'])),_0x59e9bf=new Set(Object['keys'](_0x4db260['attributes']));if(_0x488bcb['delete']('groupId'),_0x59e9bf['delete']('groupId'),0x0==_0x488bcb['size']&&0x0==_0x59e9bf['size'])return!0x0;if(_0x488bcb['size']!=_0x59e9bf['size'])return!0x1;const _0xebcc3={..._0x18cfc1['attributes']},_0x4683e5={..._0x4db260['attributes']};return delete _0xebcc3['groupId'],delete _0x4683e5['groupId'],JSON['stringify'](_0xebcc3)==JSON['stringify'](_0x4683e5);}function qt(_0x183090,_0x4c7013){const _0x350be9=zt(_0x183090['attributes']),_0x541fff=zt(_0x4c7013);if(!_0x183090['_isDataLoaded'])return!0x1;for(const _0x72fee5 of Object['keys'](_0x541fff))if(!_0x35d659(_0x350be9[_0x72fee5],_0x541fff[_0x72fee5]))return!0x1;return!0x0;}function zt(_0x445dd1){const _0x226f82=Object['assign']({},_0x445dd1);return delete _0x226f82['skipNestingCheck'],delete _0x226f82['tablePasteChainId'],_0x226f82;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1ce610(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2f1e2a,_0x4afec9,_0x5cc1c5,_0x3d55d7){super(),this['model']=_0x4afec9,this['view']=_0x5cc1c5,this['commentThreadController']=_0x3d55d7,this['_editor']=_0x2f1e2a,this['_acceptCommand']=_0x2f1e2a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f1e2a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49c856,_0x573b0c)=>_0x49c856||_0x573b0c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x189f0d=>_0x189f0d&&this['_editor']['model']['canEditAt'](_0x4afec9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b32e5=>_0x4b32e5&&this['_editor']['model']['canEditAt'](_0x4afec9['getRanges']())),this['_pendingAction']=null,_0x5cc1c5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5cc1c5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5cc1c5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5cc1c5,'change:isDirty',()=>{_0x5cc1c5['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 _0x22dcbb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x22dcbb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3e1c6b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x16eeab,_0x921d4b,_0x37e964,_0x77990){super(_0x16eeab),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1a3de6(_0x16eeab,o(_0x16eeab,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x921d4b['authoredAt']),this['bind']('authoredAt')['to'](_0x921d4b),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',_0x921d4b,'authoredAt',this,'descriptionParts',(_0x1e7a6e,_0x22abc8,_0x2430f4)=>{const _0x45f943=_0x2430f4['map'](_0x428d1f=>ls(_0x428d1f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1e7a6e-0x1,_0x921d4b['author']['name'],_0x22abc8?_0x77990['formatDateTime'](_0x22abc8):'',new DOMParser()['parseFromString'](_0x45f943,'text/html')['body']['textContent']]);}),this['focusables']=new _0x31f5a3(),this['focusTracker']=new _0x3f7b27(),this['keystrokes']=new _0x4a0e75(),this['focusCycler']=new _0x314f1a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc8f937=>_0xc8f937['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x921d4b,this['_localUser']=_0x37e964,this['_config']=_0x77990,_0x77990['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24c52c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x59d8ac}=this['_config'];this['commentsListView']=new _0x59d8ac(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',_0x3ec402=>_0x3ec402+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2c6179,_0x27fe87)=>_0x2c6179||!!_0x27fe87);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb003bb}=this['_config'],_0x36970a=new _0xb003bb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25d4f2=_0x36970a['commentInputView'];return _0x36970a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25d4f2,'value',(_0x23ff33,_0x290be3,_0x2d7954)=>!!_0x2d7954||_0x23ff33&&!_0x290be3),_0x25d4f2['on']('submit',(_0x3fb402,_0x54870d)=>{this['fire']('addComment',_0x54870d),_0x25d4f2['editor']['setData']('');}),_0x25d4f2['on']('cancel',()=>this['focus']()),_0x25d4f2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x36970a;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0xd990c6,_0x5e389b,_0x6700aa,_0x42128a){super(_0xd990c6,_0x5e389b,_0x6700aa,_0x42128a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3cbf8d=>_0x3cbf8d&&_0x3cbf8d[0x0]?_0x3cbf8d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x485e9b,_0x5b4ef6)=>{let _0x16a314='';for(const _0x190934 of _0x485e9b)_0x16a314+='<p>'+ls(_0x190934['content'],_0x190934['color'])+'</p>';return _0x5b4ef6?_0x16a314:_0x59514d(_0x16a314,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x42128a['SuggestionView'](_0xd990c6,_0x5e389b,{'formatDateTime':_0x42128a['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 _0x22aa5f=this['bindTemplate'],_0x7f96b2=[this['suggestionView']];return this['commentsListView']&&_0x7f96b2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x7f96b2['push'](this['commentThreadInputView']),_0x7f96b2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x22aa5f['if']('isActive','ck-suggestion-wrapper--active'),_0x22aa5f['to']('type',_0x5e707c=>'ck-suggestion-'+_0x5e707c),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':_0x22aa5f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x7f96b2};}['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 _0x3e1c6b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8381b8,_0xb7f475,_0x344d66){super(_0x8381b8),this['_model']=_0xb7f475,this['_config']=_0x344d66,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb7f475),this['acceptButton']=this['_createButton'](o(_0x8381b8,'Accept\x20suggestion'),_0x14815d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x8381b8,'Discard\x20suggestion'),_0x14815d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35cc46(_0x8381b8,_0xb7f475['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x31f5a3([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3f7b27(),this['keystrokes']=new _0x4a0e75(),this['focusCycler']=new _0x314f1a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4834ac=>_0x4834ac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3ffd94=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3ffd94['innerHTML']=this['description'],this['on']('change:description',(_0x5230d4,_0x200086,_0x3b4918)=>{_0x3ffd94['innerHTML']=_0x3b4918;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5cdaf0=this['bindTemplate'],_0xfc75bf=[{'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':_0x5cdaf0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5cdaf0['to']('authoredAt',_0xdf230b=>this['_config']['formatDateTime'](_0xdf230b))}]}]},{'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']&&_0xfc75bf['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':_0xfc75bf}]};}['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'](_0x380a96,_0x23341e,_0x3db1b6,_0x26c96f,_0x372053){const _0x1a479c=new _0x337a4d(this['locale']);return _0x1a479c['set']({'label':_0x380a96,'icon':_0x23341e,'tooltip':!0x0,'tooltipPosition':_0x372053}),_0x1a479c['extendTemplate']({'attributes':{'class':_0x3db1b6}}),_0x1a479c['on']('execute',()=>{this['fire'](_0x26c96f,this['_model']['id']);}),_0x1a479c;}['_setupKeyboardNavigation'](){const _0x44f1ff=this['element'];this['keystrokes']['listenTo'](_0x44f1ff);for(const _0x2c8e12 of this['focusables'])this['focusTracker']['add'](_0x2c8e12['element']),this['keystrokes']['listenTo'](_0x2c8e12['element']);this['keystrokes']['set']('enter',(_0x4cb15a,_0x3deb03)=>{_0x44f1ff===_0x4cb15a['target']&&(this['focusCycler']['focusFirst'](),_0x3deb03());}),this['keystrokes']['set']('esc',(_0x3ebca7,_0x2c0939)=>{_0x44f1ff!==_0x3ebca7['target']&&(this['focus'](),_0x2c0939());});}}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 _0x8cf398{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5145ee,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x10be69){super(_0x10be69),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4778a1=this['editor']['config'];_0x4778a1['define']('trackChanges.SuggestionThreadView',re),_0x4778a1['define']('trackChanges.SuggestionView',ce),_0x4778a1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4778a1['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x561941,_0xab120c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5db3cb,_0x4dc21e]of this['_handleControllerBuffer']){const _0x28fc9f=this['_suggestionToController']['has'](_0x5db3cb);_0x28fc9f||_0x4dc21e?_0x28fc9f&&_0x4dc21e&&this['_destroyController'](_0x5db3cb):this['_initializeController'](_0x5db3cb);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x561941,_0xab120c);}['init'](){const _0x25c47e=this['editor'],_0x1c1c8d=_0x25c47e['plugins']['get']('TrackChangesEditing'),_0x626975=_0x25c47e['plugins']['get']('Annotations'),_0x43cd5b=_0x25c47e['plugins']['get']('EditorAnnotations'),_0x56f6c2=_0x25c47e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x43cd5b['addSourceCollector'](()=>{const _0x114720=[];for(const [_0x574f1c,_0x29a45a]of Array['from'](this['_suggestionToController'])){const _0x396e03=_0x574f1c['getAllAdjacentSuggestions'](),_0x4c8743=[];for(const _0xc98c6 of _0x396e03){if(!_0xc98c6['isInContent'])continue;if(_0xc98c6['isMultiRange']){_0x4c8743['push'](..._0xc98c6['getRanges']());continue;}const _0x252812=_0xc98c6['getFirstRange']();if(_0x4c8743['length']>0x0){const _0x13765f=_0x4c8743[0x0]['getJoined'](_0x252812);if(_0x13765f){_0x4c8743[0x0]=_0x13765f;continue;}}_0x4c8743['push'](_0x252812);}_0x114720['push']([_0x29a45a['view'],_0x4c8743]);}return _0x114720;}),this['listenTo'](_0x1c1c8d,'suggestionLoaded',(_0x33a277,_0x2e219c)=>{this['listenTo'](_0x2e219c,'change:previous',(_0x447113,_0x29a983,_0x56ee16,_0x12d363)=>{_0x2e219c['isInContent']&&(null==_0x56ee16?(this['_updateController'](_0x12d363['head']),this['_handleSuggestionControllerDelayed'](_0x2e219c,!0x1)):(this['_updateController'](_0x56ee16['head']),null==_0x12d363&&this['_handleSuggestionControllerDelayed'](_0x2e219c,!0x0)));}),null!==_0x2e219c['previous']?this['_updateController'](_0x2e219c['head']):this['_handleSuggestionControllerDelayed'](_0x2e219c,!0x1);}),this['listenTo'](_0x1c1c8d,'suggestionUnloaded',(_0x566102,_0x3ff5cd,_0xe654a6)=>{this['stopListening'](_0x3ff5cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3ff5cd),this['_suggestionToController']['has'](_0x3ff5cd)&&this['_destroyController'](_0x3ff5cd),_0xe654a6&&this['_updateController'](_0xe654a6['head']);}),this['listenTo'](_0x1c1c8d,'suggestionChanged',(_0x412f89,_0xe27dc2)=>{this['_updateController'](_0xe27dc2);}),this['listenTo'](_0x626975,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56f6c2,'addComment',(_0x3ba9e1,{threadId:_0x458e3e,isFromAdapter:_0x263d26})=>{if(_0x263d26||!_0x1c1c8d['hasSuggestion'](_0x458e3e))return;const _0x395378=_0x1c1c8d['getSuggestion'](_0x458e3e);this['_suggestionToController']['get'](_0x395378)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x440e25=this['editor']['plugins']['get']('Annotations'),_0x29497a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1174a7=Array['from'](_0x440e25['activeAnnotations'],_0x5c0675=>_0x5c0675['innerView'])['filter'](_0x18f8fd=>this['_viewToController']['has'](_0x18f8fd)),_0x2b88b0=[];for(const _0xf52326 of _0x1174a7){const _0x2096b6=this['_viewToController']['get'](_0xf52326)['model']['getAllAdjacentSuggestions']();_0x2b88b0['push'](..._0x2096b6['reduce']((_0x4b0834,_0x18c9b8)=>[..._0x4b0834,..._0x18c9b8['getMarkerNames']()],[]));}_0x29497a['activeMarkers']=_0x2b88b0;}['_addUIComponentsToFactory'](){const _0x4c339a=this['editor'],_0x30f1a3=_0x4c339a['locale'],_0x36d67c=o(_0x30f1a3,'Track\x20changes'),_0x1af77a=new Wt([{'type':'switchbutton','model':new _0xa35ebe({'withText':!0x0,'isToggleable':!0x0,'label':_0x36d67c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xa35ebe({'withText':!0x0,'label':o(_0x30f1a3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa35ebe({'withText':!0x0,'label':o(_0x30f1a3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa35ebe({'withText':!0x0,'label':o(_0x30f1a3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa35ebe({'withText':!0x0,'label':o(_0x30f1a3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1cd3ec of _0x1af77a)if(me(_0x1cd3ec)){const _0x188a5f=_0x4c339a['commands']['get'](_0x1cd3ec['model']['commandName']);_0x1cd3ec['model']['bind']('isOn','isEnabled')['to'](_0x188a5f,'value','isEnabled');}_0x4c339a['ui']['componentFactory']['add']('trackChanges',_0x5f064a=>this['_createToolbarButton'](_0x5f064a,_0x1af77a,_0x36d67c)),_0x4c339a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3fda8a=>this['_createMenuBarMenu'](_0x3fda8a,_0x1af77a,_0x36d67c));}['_createToolbarButton'](_0x11a7df,_0x1d8ac0,_0x185c1a){const _0x3832f7=Qt(_0x11a7df,_0x46533f),_0x159e60=this['editor']['commands']['get']('trackChanges');_0x3832f7['buttonView']['set']({'tooltip':_0x185c1a,'label':_0x185c1a,'icon':he}),_0x3832f7['buttonView']['bind']('isOn')['to'](_0x159e60,'value'),_0x3832f7['buttonView']['on']('execute',()=>{_0x159e60['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x3832f7,_0x1d8ac0,{'role':'menu'});const _0x2aa6ef=[];for(const _0x32fe4d of _0x1d8ac0)me(_0x32fe4d)&&_0x2aa6ef['push'](this['editor']['commands']['get'](_0x32fe4d['model']['commandName']));const _0x30ee47=_0x3832f7['buttonView'];return _0x30ee47['actionView']['unbind']('isEnabled'),_0x30ee47['arrowView']['unbind']('isEnabled'),_0x30ee47['actionView']['bind']('isEnabled')['to'](_0x159e60,'isEnabled'),_0x30ee47['arrowView']['bind']('isEnabled')['toMany'](_0x2aa6ef,'isEnabled',(..._0x2da55f)=>_0x2da55f['some'](_0x288acc=>_0x288acc)),_0x3832f7['on']('execute',_0x476e4b=>{this['editor']['execute'](_0x476e4b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3832f7;}['_createMenuBarMenu'](_0x205454,_0x7452f,_0x2f1a25){const _0xc457f3=new Yt(_0x205454),_0x511d0d=this['editor']['commands']['get']('trackChanges');_0xc457f3['buttonView']['set']({'label':_0x2f1a25,'icon':he});const _0x278192=new Zt(_0x205454);for(const _0x272371 of _0x7452f){if('separator'==_0x272371['type']){_0x278192['items']['add'](new Xt(_0x205454));continue;}const _0x8fc691=new te(_0x205454,_0xc457f3),_0x2ebce4=new _0x4cd605(_0x205454),_0x78db3f=_0x272371['model'];_0x2ebce4['bind'](...Object['keys'](_0x78db3f))['to'](_0x78db3f),_0x2ebce4['delegate']('execute')['to'](_0xc457f3),_0x2ebce4['on']('execute',()=>{this['editor']['execute'](_0x78db3f['commandName']),this['editor']['editing']['view']['focus']();}),_0x8fc691['children']['add'](_0x2ebce4),_0x278192['items']['add'](_0x8fc691);}return _0xc457f3['bind']('isEnabled')['to'](_0x511d0d,'isEnabled'),_0xc457f3['panelView']['children']['add'](_0x278192),_0xc457f3;}['_initializeController'](_0x2c7026){const _0x19d6be=this['editor'],_0x12c31e=_0x19d6be['config'],_0x27ceed=_0x19d6be['plugins']['get']('Annotations'),_0x30324a=_0x19d6be['plugins']['get']('CommentsRepository'),_0x921142=_0x19d6be['plugins']['get']('EditorAnnotations'),_0x14ea7e=_0x19d6be['plugins']['get'](_0x5145ee)['me'],_0x2e7211=_0x12c31e['get']('trackChanges')['SuggestionThreadView'],_0x54bc6a=_0x12c31e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x201f4a,CommentThreadInputView:_0x5d7533}=_0x19d6be['plugins']['get']('CommentsUI');let _0x3b4462,_0x4729c8;this['_annotationViews']['has'](_0x2c7026['id'])?(_0x4729c8=this['_annotationViews']['get'](_0x2c7026['id']),_0x3b4462=_0x4729c8['mainView']):(_0x3b4462=new _0x2e7211(_0x19d6be['locale'],_0x2c7026,_0x14ea7e,{'disableComments':this['_disableComments'],'editorConfig':_0x12c31e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x12c31e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12c31e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12c31e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x432736(_0x12c31e['get']('locale')),'CommentView':_0x12c31e['get']('comments')['CommentView'],'CommentsListView':_0x201f4a,'CommentThreadInputView':_0x5d7533,'SuggestionView':_0x54bc6a}),_0x3b4462['suggestionView']['acceptButton']['on']('execute',()=>{_0x19d6be['editing']['view']['focus']();}),_0x3b4462['suggestionView']['discardButton']['on']('execute',()=>{_0x19d6be['editing']['view']['focus']();}),_0x4729c8=_0x27ceed['createAnnotationView'](this['editor']['locale'],_0x3b4462),_0x4729c8['bind']('isDirty')['to'](_0x3b4462,'isDirty'),_0x4729c8['bind']('length')['to'](_0x3b4462),_0x4729c8['bind']('type')['to'](_0x3b4462,'type',_0x5d9140=>'suggestion-'+_0x5d9140),this['listenTo'](_0x3b4462,'escape',()=>{_0x19d6be['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x2c7026['id'],_0x4729c8));const _0x74355f=_0x30324a['createCommentThreadController'](_0x2c7026['commentThread'],_0x3b4462),_0x20f1c6=new ae(_0x19d6be,_0x2c7026,_0x3b4462,_0x74355f),_0x33b769=_0x2c7026['getAllAdjacentSuggestions']()['filter'](_0x445cf5=>_0x445cf5['isInContent']);_0x3b4462['descriptionParts']=_0x19d6be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x33b769),this['_suggestionToController']['set'](_0x2c7026,_0x20f1c6),this['_viewToController']['set'](_0x3b4462,_0x20f1c6);const _0x39ed72=_0x27ceed['createAnnotation']({'view':_0x4729c8,'target':()=>{const _0x1ab7a9=[],_0x1b9b52=_0x2c7026['getAllAdjacentSuggestions']()['filter'](_0x148eae=>_0x148eae['isInContent']);for(const _0x32fde9 of _0x1b9b52)_0x1ab7a9['push'](..._0x32fde9['getMarkers']());return _0x40539d(_0x19d6be['editing'],_0x1ab7a9);},'type':()=>'suggestion-'+_0x20f1c6['view']['type']});_0x30324a['_bindAnnotationToEditors'](_0x3b4462,_0x39ed72),_0x27ceed['add'](_0x39ed72),_0x921142['registerAnnotation'](_0x39ed72);}['_destroyController'](_0x2aff99){const _0xd380a=this['editor']['plugins']['get']('CommentsRepository'),_0x402979=this['editor']['plugins']['get']('Annotations'),_0x2dbb12=this['_suggestionToController']['get'](_0x2aff99),_0x558d6a=_0x2dbb12['view'],_0x2f5398=_0x402979['getByInnerView'](_0x558d6a);_0xd380a['_unbindEditors'](_0x558d6a),_0x2f5398&&_0x402979['remove'](_0x2f5398),this['_suggestionToController']['delete'](_0x2aff99),this['_viewToController']['delete'](_0x558d6a),_0x2dbb12['destroy']();}['_updateController'](_0x274602){if(!_0x274602['isInContent']||!this['_suggestionToController']['has'](_0x274602))return;const _0x107937=this['editor']['plugins']['get']('TrackChangesEditing'),_0x110c39=this['_suggestionToController']['get'](_0x274602),_0x2f69cc=_0x274602['getAllAdjacentSuggestions']();_0x110c39['view']['descriptionParts']=_0x107937['descriptionFactory']['getDescriptions'](_0x2f69cc);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x9a2ac5,(_0x16360c,_0x143d73)=>{const _0x2e3dfa=this['editor']['plugins']['get'](k),_0x203048=this['editor']['plugins']['get'](p);if(!_0x203048['activeMarkers']['length'])return;const {id:_0x5df63c}=_0x203048['_splitMarkerName'](_0x203048['activeMarkers'][0x0]),_0x10eda4=_0x2e3dfa['getSuggestion'](_0x5df63c);_0x10eda4&&(this['_suggestionToController']['get'](_0x10eda4)['view']['focus'](),_0x143d73());});}['destroy'](){for(const _0x235223 of this['_suggestionToController']['keys']())this['_destroyController'](_0x235223);for(const _0x414e4a of this['_annotationViews']['values']())_0x414e4a['mainView']['destroy']();super['destroy']();}}function me(_0x2798b4){return'model'in _0x2798b4;}class k extends _0x8cf398{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3fb114){this['editor']['plugins']['get'](p)['adapter']=_0x3fb114;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xca1ec7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xca1ec7);}['getSuggestions']({skipNotAttached:_0x5312f8=!0x1,toJSON:_0x341487=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5312f8,'toJSON':_0x341487});}['getSuggestion'](_0x2dc157){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2dc157);}}const T=['Pagination'];class P extends _0x8cf398{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x372f8f=this['editor'];if(_0x372f8f['config']['define']('trackChangesData.editorCreator',_0x5ea240=>{const _0x38bd4c=_0x372f8f['model']['document']['getRootNames']()['reduce']((_0xcc1272,_0x569169)=>(_0xcc1272[_0x569169]='',_0xcc1272),{});return _0x372f8f['constructor']['create'](_0x38bd4c,_0x5ea240);}),'function'!=typeof _0x372f8f['config']['get']('trackChangesData')['editorCreator'])throw new _0x3993e2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x160903){return N(this['editor'],!0x0,_0x160903);}['getDataWithDiscardedSuggestions'](_0x394824){return N(this['editor'],!0x1,_0x394824);}}class D extends _0x8cf398{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3d1997){super(_0x3d1997),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(_0x9fd8a8){return void 0x0!==_0x9fd8a8['getRootsAttributes'];}async function N(_0x34c18f,_0x3a96ea,_0x461579){const _0x2a8eb6=_0x5459ab(_0x34c18f,T);_0x2a8eb6['plugins']['push'](p,D),_0x2a8eb6['rootsAttributes']=v(_0x34c18f)?_0x34c18f['getRootsAttributes']():void 0x0;const _0x12eac2=document['createDocumentFragment'](),_0x12d24f=_0x34c18f['config']['get']('trackChangesData')['editorCreator'],_0x1ad3f1=await _0x12d24f(_0x2a8eb6,()=>function(_0x52371b){const _0x3e42f2=document['createElement']('div');return _0x52371b['appendChild'](_0x3e42f2),_0x3e42f2;}(_0x12eac2));!function(_0x580df0,_0x472044){const _0x374c51=_0x580df0['model']['document']['getRootNames']()['reduce']((_0x5d75d1,_0x2cc117)=>(_0x5d75d1[_0x2cc117]=_0x580df0['data']['get']({'rootName':_0x2cc117}),_0x5d75d1),{}),_0x205cce=_0x580df0['plugins']['get']('Users')['users']['map'](_0x56848a=>({'id':_0x56848a['id'],'name':_0x56848a['name']})),_0x4324f8=_0x580df0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41aa2f=_0x580df0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59ab95=_0x472044['plugins']['get']('Users'),_0x4c4464=_0x472044['plugins']['get']('TrackChangesEditing'),_0x5b0557=_0x472044['plugins']['get']('CommentsRepository');for(const _0x184634 of _0x5b0557['getCommentThreads']())_0x184634['remove']();for(const _0x4c8151 of _0x205cce)_0x59ab95['getUser'](_0x4c8151['id'])||_0x59ab95['addUser'](_0x4c8151);_0x59ab95['me']||_0x59ab95['useAnonymousUser']();for(const _0x2aad26 of _0x41aa2f)_0x5b0557['addCommentThread'](_0x2aad26);for(const _0x545271 of _0x4324f8)_0x4c4464['addSuggestionData'](_0x545271);_0x472044['data']['set'](_0x374c51);}(_0x34c18f,_0x1ad3f1),_0x1ad3f1['execute'](_0x3a96ea?'acceptAllSuggestions':'discardAllSuggestions');const _0x37fa92=v(_0x1ad3f1)?_0x1ad3f1['getFullData'](_0x461579):_0x1ad3f1['data']['get'](_0x461579);return await _0x1ad3f1['destroy'](),_0x37fa92;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|