@ckeditor/ckeditor5-track-changes 43.1.0 → 43.2.0-alpha.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
|
-
_0x206d4d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35ae77,_0x12021a){super(),this['id']=_0x12021a['id'],this['type']=_0x12021a['type'],this['subType']=_0x12021a['subType']||null,this['author']=_0x12021a['author'],this['creator']=_0x12021a['creator']||_0x12021a['author'],this['isExternal']=Boolean(_0x12021a['attributes']&&_0x12021a['attributes']['@external']),this['data']=null,this['_model']=_0x35ae77,this['_onAccept']=_0x12021a['onAccept'],this['_onDiscard']=_0x12021a['onDiscard'],this['_onAttributesChange']=_0x12021a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x12021a['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 _0x3c2dc2=this;for(;_0x3c2dc2['previous'];)_0x3c2dc2=_0x3c2dc2['previous'];return _0x3c2dc2;}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'](_0x58030c){this['_markerNames']['add'](_0x58030c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32f098=>this['_model']['markers']['get'](_0x32f098))['filter'](_0x73dcab=>_0x73dcab);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f3bd8=>{for(const _0xfb04d6 of this['getMarkers']())_0x2f3bd8['removeMarker'](_0xfb04d6);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f5d33){this['_model']['change'](_0x309e9b=>{_0x309e9b['removeMarker'](_0x4f5d33);}),this['_markerNames']['delete'](_0x4f5d33);}['addRange'](_0x1f3177){const _0x222fde='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x222fde),this['_model']['change'](_0x2f8434=>{_0x2f8434['addMarker'](_0x222fde,{'range':_0x1f3177,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xc0b678){for(const _0xb5ebbd of this['getRanges']())if(_0xb5ebbd['isIntersecting'](_0xc0b678))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x12d150=>_0x12d150['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x52f4e5,_0x39db6b)=>[..._0x52f4e5,..._0x39db6b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3d25d6=this['getRanges']();if(0x1!=_0x3d25d6['length'])return null;const _0x5c2c0b=_0x3d25d6[0x0],_0x355b37=_0x5c2c0b['start']['nodeAfter'],_0x3ef1a5=_0x5c2c0b['end']['nodeBefore'];return _0x355b37 instanceof _0x4deb3d?_0x355b37!=_0x3ef1a5?null:_0x355b37: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 _0x2c5c4f=[];let _0x478816=this['head'];for(;_0x478816;)_0x2c5c4f['push'](_0x478816),_0x478816=_0x478816['next'];return _0x2c5c4f;}['setAttribute'](_0x8996b9,_0x14c8ae){const _0x6a2122=_0x4f039d(this['attributes']);_0x467cae(_0x6a2122,_0x8996b9,_0x14c8ae),_0x2ec426(_0x6a2122,this['attributes'])||(this['attributes']=_0x6a2122,this['_onAttributesChange'](_0x6a2122));}['removeAttribute'](_0x49e428){const _0x55ba95=_0x4f039d(this['attributes']);_0xa3f0e4(_0x55ba95,_0x49e428),_0x2ec426(_0x55ba95,this['attributes'])||(this['attributes']=_0x55ba95,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 _0x3620ad()['substr'](0x1,0x5);}}function o(_0x38bfb0,_0x1caadb,_0x1dba09){const t=_0x38bfb0['t'];switch(_0x1caadb){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',_0x1dba09);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1dba09);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1dba09);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1dba09);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1dba09);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',_0x1dba09);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1dba09);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',_0x1dba09);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1dba09);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1dba09);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1dba09);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1dba09);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1dba09);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1dba09);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1dba09);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1dba09);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1dba09);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1dba09);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1dba09);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1dba09);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1dba09);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1dba09);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1dba09);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'},_0x1dba09);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1dba09);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1dba09);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1dba09);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1dba09);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1dba09);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1dba09);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1dba09);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1dba09);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'},_0x1dba09);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1dba09);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);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'},_0x1dba09);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1caadb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43699f,_0x12e73c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43699f,this['_locale']=_0x12e73c;}['getDescriptions'](_0x3f5135){const _0x205afc=[],_0x5b23c5=new Set(),_0x2553b1=new Set();for(let _0x1509c3=0x0;_0x1509c3<_0x3f5135['length'];_0x1509c3++){const _0x408f37=_0x3f5135[_0x1509c3];if(!_0x408f37['isInContent'])continue;const _0x1b22ea=this['_handleCustomCallbackDescription'](_0x408f37);if(_0x1b22ea){if(null!=_0x408f37['subType']){if(_0x5b23c5['has'](_0x408f37['subType']))continue;_0x5b23c5['add'](_0x408f37['subType']);}_0x205afc['push'](_0x1b22ea);}else{if('attribute'!=_0x408f37['type'])'insertion'!=_0x408f37['type']&&'deletion'!=_0x408f37['type']||this['_handleInsertRemoveSuggestionDescription'](_0x205afc,_0x408f37,_0x3f5135[_0x1509c3+0x1]);else{const _0x479590=_0x408f37['data']['key'];if(_0x2553b1['has'](_0x479590))continue;_0x2553b1['add'](_0x408f37['data']['key']),_0x479590==m?this['_handleRenameSuggestionDescription'](_0x205afc,_0x408f37):this['_handleAttributeSuggestionDescription'](_0x205afc,_0x408f37);}}}return this['_resolveDescriptionItems'](_0x205afc);}['registerDescriptionCallback'](_0x3241d9){this['_customCallbacks']['push'](_0x3241d9);}['registerElementLabel'](_0x480e43,_0x55b032,_0x99c5e=_0x12736d['normal']){'function'==typeof _0x480e43?_0x1ab9fc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x480e43,'label':_0x55b032,'priority':_0x99c5e}):this['_itemLabels']['set'](_0x480e43,_0x55b032);}['registerAttributeLabel'](_0x4c6a77,_0x1bd036){this['_attributeLabels']['set'](_0x4c6a77,_0x1bd036);}['getItemLabel'](_0x87feeb,_0x9a3405=0x1){let _0x216bd9;for(const _0x4a3c8d of this['_itemLabelsCallbacks'])if(_0x4a3c8d['matchingCallback'](_0x87feeb)){_0x216bd9=_0x4a3c8d['label'];break;}return _0x216bd9||(_0x216bd9=this['_itemLabels']['get'](_0x87feeb['name'])),_0x216bd9?_0x216bd9(_0x9a3405):0x1!==_0x9a3405?_0x9a3405+'\x20'+_0x87feeb['name']+'s':''+_0x87feeb['name'];}['_addDescriptionItems'](_0x207636,_0xd84d8c){const _0x16bdd8=_0xd84d8c['getFirstRange']()['getWalker'](),_0x42cab1='insertion'==_0xd84d8c['type']?'add':'remove';for(const _0x20e6ed of _0x16bdd8){const _0xc53777=_0x20e6ed['item'],_0x2e4339=_0x207636[_0x207636['length']-0x1];if(_0xc53777['is']('$textProxy'))_0x2e4339&&_0x2e4339['type']['indexOf']('Container')>-0x1&&_0x207636['pop'](),_0x2e4339&&'text'==_0x2e4339['type']?_0x2e4339[_0x42cab1]+=_0xc53777['data']:_0x207636['push']({'type':'text','add':'add'==_0x42cab1?_0xc53777['data']:'','remove':'remove'==_0x42cab1?_0xc53777['data']:''});else{if(this['_schema']['isObject'](_0xc53777)){const _0xed17a3=_0xc53777;if(_0x2e4339&&_0x2e4339['type']['indexOf']('Container')>-0x1&&_0x207636['pop'](),'elementEnd'==_0x20e6ed['type'])continue;_0x2e4339&&_0x2e4339['type']==_0x42cab1+'Object'&&_0x2e4339['element']['name']==_0xed17a3['name']?_0x2e4339['quantity']++:_0x207636['push']({'type':_0x42cab1+'Object','element':_0xed17a3,'quantity':0x1}),_0x16bdd8['skip'](_0x5e8131=>!('elementEnd'==_0x5e8131['type']&&_0x5e8131['item']==_0xc53777));}else{if(this['_schema']['checkChild'](_0xc53777,'$text')||_0xc53777['is']('element','softBreak')){const _0x5e6998=_0xc53777;if('add'==_0x42cab1&&'elementStart'==_0x20e6ed['type']||'remove'==_0x42cab1&&'elementEnd'==_0x20e6ed['type'])continue;if(_0x2e4339&&-0x1==_0x2e4339['type']['indexOf']('Container')){'text'==_0x2e4339['type']&&(_0x2e4339[_0x42cab1]+='\x0a');continue;}let _0x9431d9;if(_0x9431d9='add'==_0x42cab1?_0x5e6998['nextSibling']&&!this['_schema']['isObject'](_0x5e6998['nextSibling'])?_0x5e6998['nextSibling']:null:_0x5e6998['previousSibling']&&!this['_schema']['isObject'](_0x5e6998['previousSibling'])?_0x5e6998['previousSibling']:null,_0x5e6998['isEmpty']||_0x9431d9&&_0x9431d9['isEmpty']){const _0x31d64e=_0x9431d9&&_0x9431d9['isEmpty']?_0x9431d9:_0x5e6998;_0x2e4339&&_0x2e4339['type']==_0x42cab1+'EmptyContainer'&&_0x2e4339['element']['name']==_0x31d64e['name']?_0x2e4339['quantity']++:_0x207636['push']({'type':_0x42cab1+'EmptyContainer','element':_0x31d64e,'quantity':0x1});}else _0x207636['push']({'type':_0x42cab1+'Container','element':_0x5e6998});}}}}}['_resolveDescriptionItems'](_0x842108){const _0x1969d7=this['_locale'],_0x3d6c15=[],_0x12bdaa=[],_0x3e6c3e=[];for(const _0x6b9be0 of _0x842108)switch(_0x6b9be0['type']){case'text':if(_0x6b9be0['add']=_0x6b9be0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x6b9be0['remove']=_0x6b9be0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x6b9be0['add']&&''!=_0x6b9be0['remove']){_0x3d6c15['push']({'type':'replace','content':o(_0x1969d7,'REPLACE_TEXT',['\x22'+_0x6b9be0['remove']+'\x22','\x22'+_0x6b9be0['add']+'\x22'])});continue;}if(null!=_0x6b9be0['add']['match'](/^ +$/)){_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Insert:*\x20%0',o(_0x1969d7,'ELEMENT_SPACE',_0x6b9be0['add']['length']))});continue;}if(null!=_0x6b9be0['remove']['match'](/^ +$/)){_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Remove:*\x20%0',o(_0x1969d7,'ELEMENT_SPACE',_0x6b9be0['remove']['length']))});continue;}if(''!=_0x6b9be0['add']){_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Insert:*\x20%0','\x22'+_0x6b9be0['add']+'\x22')});continue;}_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Remove:*\x20%0','\x22'+_0x6b9be0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Insert:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Remove:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'addContainer':_0x3d6c15['push']({'type':'insertion','content':o(_0x1969d7,'*Split:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'removeContainer':_0x3d6c15['push']({'type':'deletion','content':o(_0x1969d7,'*Merge:*\x20%0',this['getItemLabel'](_0x6b9be0['element'],_0x6b9be0['quantity']))});continue;case'addFormat':_0x12bdaa['push'](_0x6b9be0['key']);continue;case'removeFormat':_0x3e6c3e['push'](_0x6b9be0['key']);continue;default:_0x3d6c15['push'](_0x6b9be0);}if(_0x12bdaa['length']){const _0x478a91=_0x12bdaa['map'](_0x1cfe86=>this['_attributeLabels']['has'](_0x1cfe86)?this['_attributeLabels']['get'](_0x1cfe86):_0x1cfe86)['join'](',\x20');_0x3d6c15['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x478a91)});}if(_0x3e6c3e['length']){const _0x2a14bf=_0x3e6c3e['map'](_0x367ce1=>this['_attributeLabels']['has'](_0x367ce1)?this['_attributeLabels']['get'](_0x367ce1):_0x367ce1)['join'](',\x20');_0x3d6c15['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2a14bf)});}return _0x3d6c15;}['_handleCustomCallbackDescription'](_0x253adb){for(const _0x100df9 of this['_customCallbacks']){const _0x51aa81=_0x100df9(_0x253adb);if(_0x51aa81&&'type'in _0x51aa81)return _0x51aa81;}}['_handleAttributeSuggestionDescription'](_0x20760e,_0x14290b){const _0x47473a=_0x14290b['data'],_0x40c48f=void 0x0===_0x47473a['newValue']?'removeFormat':'addFormat';_0x20760e['push']({'type':_0x40c48f,'key':_0x47473a['key']});}['_handleRenameSuggestionDescription'](_0x3df48e,_0x55f987){_0x3df48e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55f987['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51539a,_0x50c347,_0x27335e){if(this['_addDescriptionItems'](_0x51539a,_0x50c347),_0x27335e&&_0x27335e['getFirstRange']()&&!_0x50c347['getFirstRange']()['end']['isEqual'](_0x27335e['getFirstRange']()['start'])){const _0x3d1bc0=_0x51539a[_0x51539a['length']-0x1],_0x1a0cbc='insertion'==_0x50c347['type']?'add':'remove';_0x3d1bc0&&'text'==_0x3d1bc0['type']&&(_0x3d1bc0[_0x1a0cbc]+='\x0a');}}}class V extends _0x310a20{['afterInit'](){const _0x56abf1=this['editor'],_0x3f15a9=_0x56abf1['plugins']['get']('TrackChangesEditing');_0x56abf1['commands']['get']('showAIAssistant')&&_0x3f15a9['enableCommand']('showAIAssistant');}}class U extends _0x310a20{['afterInit'](){const _0xe01ec=this['editor'],_0x412920=_0xe01ec['locale'];if(!_0xe01ec['plugins']['has']('AlignmentEditing'))return;const _0x1820f2=_0xe01ec['plugins']['get']('TrackChangesEditing');_0x1820f2['enableDefaultAttributesIntegration']('alignment'),_0x1820f2['registerBlockAttribute']('alignment'),_0x1820f2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x412920,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cff18=this['editor'],_0x49365c=_0x2cff18['locale'];_0x2cff18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x542aed=>{if('formatBlock'!=_0x542aed['type'])return;const {data:_0x2a9701}=_0x542aed;if(_0x2a9701&&'alignment'==_0x2a9701['commandName']){const _0x2ad3ea=_0x2a9701['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x49365c,'*Format:*\x20%0',function(_0x9dfa53){switch(_0x9dfa53){case'left':return o(_0x49365c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x49365c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x49365c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x49365c,'FORMAT_JUSTIFY_TEXT');}}(_0x2ad3ea))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x310a20{['afterInit'](){const _0x2bbbc9=this['editor'],_0x2cf3bd=_0x2bbbc9['plugins']['get']('TrackChangesEditing'),_0x103c8a=_0x2bbbc9['locale'];for(const _0x2e8986 of ti){if(!_0x2bbbc9['plugins']['has'](_0x2e8986))continue;const _0x398c4a=_0x2e8986['slice'](0x0,-0x7)['toLowerCase'](),_0x20dde3='FORMAT_'+_0x398c4a['toUpperCase']();_0x2cf3bd['enableDefaultAttributesIntegration'](_0x398c4a),_0x2cf3bd['registerInlineAttribute'](_0x398c4a),_0x2cf3bd['descriptionFactory']['registerAttributeLabel'](_0x398c4a,o(_0x103c8a,_0x20dde3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f9352=this['editor'],_0x12d4cb=_0x4f9352['locale'],_0x44e5e3=_0x4f9352['plugins']['get']('TrackChangesEditing');function _0x5545f6(_0x549b1a,_0x42ed31){_0x44e5e3['descriptionFactory']['registerDescriptionCallback'](_0x53b683=>{if('formatInline'!=_0x53b683['type'])return;const {data:_0x453bbd}=_0x53b683;return _0x453bbd&&_0x453bbd['commandName']===_0x549b1a?_0x453bbd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12d4cb,'*Format:*\x20%0',_0x42ed31)}:{'type':'format','content':o(_0x12d4cb,'*Remove\x20format:*\x20%0',_0x42ed31)}:void 0x0;});}_0x5545f6('bold',o(_0x12d4cb,'FORMAT_BOLD')),_0x5545f6('italic',o(_0x12d4cb,'FORMAT_ITALIC')),_0x5545f6('underline',o(_0x12d4cb,'FORMAT_UNDERLINE')),_0x5545f6('code',o(_0x12d4cb,'FORMAT_CODE')),_0x5545f6('strikethrough',o(_0x12d4cb,'FORMAT_STRIKETHROUGH')),_0x5545f6('subscript',o(_0x12d4cb,'FORMAT_SUBSCRIPT')),_0x5545f6('superscript',o(_0x12d4cb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x310a20{['afterInit'](){const _0x2c98e6=this['editor'],_0x26cb38=_0x2c98e6['locale'];if(!_0x2c98e6['plugins']['has']('BlockQuoteEditing'))return;const _0x5445cd=_0x2c98e6['plugins']['get']('TrackChangesEditing'),_0x147ce6=this['editor']['commands']['get']('blockQuote');_0x5445cd['enableCommand']('blockQuote',(_0x4305c0,_0x482469={})=>{const _0x519c16=this['editor']['model']['document']['selection'],_0x4a2be4=_0x482469&&void 0x0!==_0x482469['forceValue']?_0x482469['forceValue']:!_0x147ce6['value'];let _0x398628=[];if(_0x4a2be4){const _0x4e8adc=Array['from'](_0x519c16['getSelectedBlocks']())['filter'](_0x20496a=>oo(_0x20496a)||function(_0x482239,_0x19b130){const _0x470c55=_0x19b130['checkChild'](_0x482239['parent'],'blockQuote'),_0x4ba3ed=_0x19b130['checkChild'](['$root','blockQuote'],_0x482239);return _0x470c55&&_0x4ba3ed;}(_0x20496a,this['editor']['model']['schema']));_0x398628=to(_0x4e8adc,_0x2c98e6['model']);}else{const _0xef0e2c=Array['from'](_0x519c16['getSelectedBlocks']())['filter'](_0x235acb=>oo(_0x235acb));_0x398628=to(_0xef0e2c,_0x2c98e6['model']);}_0x2c98e6['model']['change'](()=>{for(const _0x361717 of _0x398628)_0x5445cd['markBlockFormat'](_0x361717,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a2be4}]});});}),_0x5445cd['descriptionFactory']['registerDescriptionCallback'](_0x1e8951=>{const {data:_0x1ba938}=_0x1e8951;if(_0x1ba938&&'blockQuote'==_0x1ba938['commandName']){const _0x53f8f3=o(_0x26cb38,'ELEMENT_BLOCK_QUOTE');return _0x1ba938['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26cb38,'*Set\x20format:*\x20%0',_0x53f8f3)}:{'type':'format','content':o(_0x26cb38,'*Remove\x20format:*\x20%0',_0x53f8f3)};}});}}function oo(_0x36bafa){return'blockQuote'==_0x36bafa['parent']['name'];}class L extends _0x310a20{['afterInit'](){const _0x471939=this['editor'];_0x471939['plugins']['has']('CaseChange')&&(_0x471939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x471939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x471939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x310a20{['afterInit'](){const _0x1a2324=this['editor'];_0x1a2324['commands']['get']('ckbox')&&_0x1a2324['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x310a20{['afterInit'](){const _0x1b7bbc=this['editor'];if(!_0x1b7bbc['plugins']['has']('CodeBlock'))return;const _0x311925=_0x1b7bbc['plugins']['get']('TrackChangesEditing'),_0x3676f3=_0x1b7bbc['locale'],_0x4b40b=_0x1b7bbc['config']['get']('codeBlock')['languages'],_0x2cb55a=_0x1b7bbc['commands']['get']('codeBlock');_0x311925['enableCommand']('indentCodeBlock'),_0x311925['enableCommand']('outdentCodeBlock'),_0x311925['enableCommand']('codeBlock',(_0x4b0435,_0x33720a={})=>{const _0x27826d=_0x1b7bbc['model'],_0x2831a1=_0x1b7bbc['model']['document']['selection'],_0xfd227b=_0x33720a&&void 0x0!==_0x33720a['forceValue']?_0x33720a['forceValue']:!_0x2cb55a['value'];let _0x1ebbca;_0x33720a['language']||(_0x33720a['language']=_0x4b40b[0x0]['language']),_0x1ebbca=_0xfd227b?Array['from'](_0x2831a1['getSelectedBlocks']())['filter'](_0x4ad684=>eo(_0x4ad684)||function(_0x1e8ce7,_0x5b2bce){if(_0x1e8ce7['is']('rootElement')||_0x5b2bce['isLimit'](_0x1e8ce7))return!0x1;return _0x5b2bce['checkChild'](_0x1e8ce7['parent'],'codeBlock');}(_0x4ad684,_0x27826d['schema'])):Array['from'](_0x2831a1['getSelectedBlocks']())['filter'](_0x41923f=>eo(_0x41923f));const _0x5b113b=to(_0x1ebbca,_0x27826d);_0x27826d['change'](()=>{for(const _0x4ccdc9 of _0x5b113b)_0x311925['markBlockFormat'](_0x4ccdc9,{'commandName':'codeBlock','commandParams':[{..._0x33720a,'forceValue':_0xfd227b}],'formatGroupId':'blockName'});});}),(_0x311925['descriptionFactory']['registerElementLabel']('codeBlock',_0x308fb9=>o(_0x3676f3,'ELEMENT_CODE_BLOCK',_0x308fb9)),_0x311925['descriptionFactory']['registerDescriptionCallback'](_0x4b76ef=>{if('formatBlock'!=_0x4b76ef['type'])return;const _0x15eb48=_0x3676f3['t'],{data:_0x4903e2}=_0x4b76ef;if(!_0x4903e2||'codeBlock'!=_0x4903e2['commandName'])return;const _0x25d2f7=_0x4903e2['commandParams'][0x0]['language'],_0x589654=_0x15eb48(_0x4b40b['find'](_0x44e100=>_0x44e100['language']===_0x25d2f7)['label'])['toLowerCase']();return _0x4903e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3676f3,'*Set\x20format:*\x20%0',o(_0x3676f3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x589654+')')}:{'type':'format','content':o(_0x3676f3,'*Remove\x20format:*\x20%0',o(_0x3676f3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e4329){return'codeBlock'==_0x2e4329['name'];}class q extends _0x310a20{['afterInit'](){const _0x43e660=this['editor'];if(!_0x43e660['plugins']['has']('CommentsEditing'))return;_0x43e660['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x96964f,_0xcdb17a,_0x38e932){const _0x36beb0=[];for(const _0x1492ce of _0xcdb17a['getItems']())_0x1492ce['hasAttribute'](_0x96964f)&&_0x36beb0['push'](_0x38e932['createRangeOn'](_0x1492ce));return _0x36beb0;}function _e(_0x3e844e,_0x23efbf,{showActiveMarker:_0x437571=!0x0}={}){const _0x2f7163=_0x3e844e['plugins']['get']('TrackChangesEditing');return(_0x2fee7c,_0xb25b7a,_0x146c70)=>{if(!_0x146c70['consumable']['test'](_0xb25b7a['markerRange'],_0x2fee7c['name']))return;const _0x3680a1=_0xb25b7a['markerRange']['getWalker'](),_0x55f55c=_0xb25b7a['markerRange']['start'],_0x9f560e=_0x3e844e['model']['schema'];let _0x4544f1=null,_0x18969f=null,_0x4139ed=!0x1,_0x177c54=!0x1;for(const _0x3b92d5 of _0x3680a1){const _0x37c54a=_0x3b92d5['item'];_0x4139ed=_0x4139ed||_0x9f560e['isContent'](_0x37c54a);const _0x533d0a=_0x146c70['mapper']['toViewElement'](_0x37c54a);if(_0x533d0a&&_0x533d0a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b92d5['type']&&(_0x9f560e['isBlock'](_0x37c54a)&&!_0x9f560e['isLimit'](_0x37c54a)&&(_0x37c54a['nextSibling']||_0x55f55c['isAtEnd']?_0x4544f1&&_0x4544f1['parent']==_0x37c54a||(_0x4544f1=_0x37c54a,_0x183499(_0x3b92d5['previousPosition']),_0x177c54=!0x0):_0x18969f=_0x18969f||_0x3b92d5['previousPosition']));}function _0x183499(_0x230fe3){const {authorId:_0x4b9484}=_0x2f7163['_splitMarkerName'](_0xb25b7a['markerName']),_0x2d8a73=_0x146c70['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23efbf,'data-author-id':_0x4b9484}),_0x39cbbb=_0x146c70['mapper']['toViewPosition'](_0x230fe3);_0x437571&&_0x2f7163['activeMarkers']['includes'](_0xb25b7a['markerName'])&&_0x146c70['writer']['addClass']('ck-suggestion-marker--active',_0x2d8a73),_0x146c70['writer']['insert'](_0x39cbbb,_0x2d8a73),_0x146c70['mapper']['bindElementToMarker'](_0x2d8a73,_0xb25b7a['markerName']);}_0x4139ed||_0x177c54||!_0x18969f||_0x183499(_0x18969f);};}class z extends _0x310a20{static get['requires'](){return[_0x2d9f11];}['init'](){const _0x5dba4b=this['editor'],_0x5d1265=_0x5dba4b['plugins']['get']('TrackChangesEditing');_0x5d1265['enableCommand']('delete');const _0x4570e4=_0x5dba4b['commands']['get']('deleteForward');_0x5d1265['enableCommand']('deleteForward',(_0x10c4d2,_0x23a893={})=>{const _0x5c66ec=_0x5dba4b['model']['createSelection'](_0x5dba4b['model']['document']['selection']);_0x5c66ec['isCollapsed']&&_0x5dba4b['model']['modifySelection'](_0x5c66ec,{'direction':'forward','unit':_0x23a893['unit']});const _0x1d76db=_0x5c66ec['getFirstRange'](),_0x4783ff=_0xfd736c['fromRange'](_0x1d76db);let _0x444ddf;_0x10c4d2(_0x23a893),_0x444ddf='$graveyard'==_0x4783ff['root']['rootName']?_0x5dba4b['model']['createRange'](_0x1d76db['start']):_0x5dba4b['model']['createRange'](_0x4783ff['start'],_0x4783ff['end']),_0x4783ff['detach'](),_0x5dba4b['model']['enqueueChange'](_0x4570e4['buffer']['batch'],_0x6f1108=>{_0x4570e4['buffer']['lock'](),_0x6f1108['setSelection'](_0x6f1108['createRange'](_0x444ddf['end'])),_0x4570e4['buffer']['unlock']();});}),_0x5dba4b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5dba4b,'merge'),{'priority':'high'}),_0x5dba4b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51c88e,_0x5e9e27,_0x590fef)=>{_0x590fef['options']['showSuggestionHighlights']&&_e(_0x5dba4b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51c88e,_0x5e9e27,_0x590fef);},{'priority':'high'}),_0x5dba4b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xa492b0,_0x25aca1,_0x3ea704)=>{const _0x3a96cf=_0x3ea704['mapper']['markerNameToElements'](_0x25aca1['markerName']);if(_0x3a96cf){for(const _0x5eb0bc of _0x3a96cf)_0x5eb0bc['is']('uiElement')&&(_0x3ea704['mapper']['unbindElementFromMarkerName'](_0x5eb0bc,_0x25aca1['markerName']),_0x3ea704['writer']['remove'](_0x5eb0bc));}},{'priority':'high'});}}class K extends _0x310a20{['afterInit'](){const _0x313216=this['editor'];if(!_0x313216['plugins']['has']('ListEditing'))return;const _0x5a4746=_0x313216['locale'],_0x1581cf=_0x313216['plugins']['get']('TrackChangesEditing'),_0x8d0782=_0x313216['plugins']['has']('TodoListEditing'),_0x1a9093=!!_0x313216['config']['get']('list.multiBlock');function _0x460b0a(_0x58b533){return{'type':'format','content':''+o(_0x5a4746,'*Set\x20format:*\x20%0',_0x58b533)};}function _0x2f5b24(_0x5d0d4e){return{'type':'format','content':''+o(_0x5a4746,'*Remove\x20format:*\x20%0',_0x5d0d4e)};}_0x1581cf['enableDefaultAttributesIntegration']('numberedList'),_0x1581cf['enableDefaultAttributesIntegration']('bulletedList'),_0x1581cf['enableDefaultAttributesIntegration']('customNumberedList'),_0x1581cf['enableDefaultAttributesIntegration']('customBulletedList'),_0x1581cf['enableDefaultAttributesIntegration']('indentList'),_0x1581cf['enableDefaultAttributesIntegration']('outdentList'),_0x1581cf['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1581cf['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1581cf['registerBlockAttribute']('listItemId'),_0x1581cf['registerBlockAttribute']('listType'),_0x1581cf['registerBlockAttribute']('listIndent'),_0x1a9093&&(_0x1581cf['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1581cf['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x8d0782&&(_0x1581cf['enableDefaultAttributesIntegration']('todoList'),_0x1581cf['enableDefaultAttributesIntegration']('checkTodoList'),_0x1581cf['registerBlockAttribute']('todoListChecked'),_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0x3d770a=>{const {data:_0x3d9da9}=_0x3d770a;if(_0x3d9da9&&'todoListChecked'==_0x3d9da9['key'])return{'type':'format','content':_0x3d9da9['newValue']?o(_0x5a4746,'*Check\x20item*'):o(_0x5a4746,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5c4308=>{if(_0x5c4308['batch']['isUndo'])return!0x1;let _0xedfc9f=!0x1;const _0x58b7ba=_0x1581cf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46757e=>'todoListChecked'===_0x1581cf['_getAttributeKey'](_0x46757e));for(const _0x2fb6d3 of _0x58b7ba){'todo'!=_0x2fb6d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1581cf['_findSuggestions'](_0x2fb6d3['getFirstRange'](),'attribute')['find'](_0x295e9f=>'listType'===_0x1581cf['_getAttributeKey'](_0x295e9f['suggestion']))||(_0x5c4308['removeMarker'](_0x2fb6d3['getFirstMarker']()),_0xedfc9f=!0x0));}return _0xedfc9f;})),_0x1581cf['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a4746,'FORMAT_INDENT'));const _0x50666d={'type':'format','content':''};_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0xd63b29=>{const {data:_0x442d8e}=_0xd63b29;if(!_0x442d8e||'listType'!=_0x442d8e['key'])return;let _0x52d43c=_0xd63b29['head'];for(;_0x52d43c;){if(_0x52d43c['data']&&(('listStyle'==_0x52d43c['data']['key']||'listMarkerStyle'==_0x52d43c['data']['key'])&&(_0x52d43c['data']['newValue']&&'default'!=_0x52d43c['data']['newValue']||'default'!=_0x52d43c['data']['oldValue']&&!_0x442d8e['newValue'])||!_0x1a9093&&_0x52d43c['data']['key']==m))return _0x50666d;_0x52d43c=_0x52d43c['next'];}if(null==_0x442d8e['newValue'])switch(_0x442d8e['oldValue']){case'bulleted':return _0x2f5b24(o(_0x5a4746,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f5b24(o(_0x5a4746,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f5b24(o(_0x5a4746,'ELEMENT_TODO_LIST'));}switch(_0x442d8e['newValue']){case'bulleted':return _0x460b0a(o(_0x5a4746,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x460b0a(o(_0x5a4746,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x460b0a(o(_0x5a4746,'ELEMENT_TODO_LIST'));}}),_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0x38c4fd=>{const {data:_0x7a4045}=_0x38c4fd;if(_0x7a4045&&'listIndent'==_0x7a4045['key'])return null==_0x7a4045['newValue']||null==_0x7a4045['oldValue']&&0x0==_0x7a4045['newValue']?_0x50666d:void 0x0;}),_0x1581cf['descriptionFactory']['registerDescriptionCallback'](_0x585981=>{if('attribute'!=_0x585981['type'])return;const {data:_0xa5dd21}=_0x585981;if(!_0xa5dd21||'listItemId'!=_0xa5dd21['key'])return;const _0x266659=Ee(_0x585981);return'newValue'==_0x266659?{'type':'format','content':o(_0x5a4746,'*Merge:*\x20list\x20item')}:'oldValue'==_0x266659?{'type':'format','content':o(_0x5a4746,'*Split:*\x20list\x20item')}:_0x50666d;}),_0x313216['model']['document']['registerPostFixer'](_0x23edb5=>this['listItemIdFixer'](_0x23edb5)),_0x313216['model']['document']['registerPostFixer'](_0x42279c=>this['noTrackChangesFixer'](_0x42279c)),_0x313216['model']['document']['on']('change:data',(_0x447fda,_0x3432ac)=>{if(_0x3432ac['isUndo']||!_0x3432ac['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1b41c9){if(_0x1b41c9['batch']['isUndo']||!_0x1b41c9['batch']['isLocal'])return!0x1;let _0x1ffd94=!0x1;const _0x2e6b6f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5276d2=>_0x5276d2['data']&&'listItemId'==_0x5276d2['data']['key'])['filter'](_0x336e71=>_0x336e71['data']['newValue']&&_0x336e71['data']['oldValue']);for(const _0x4f527c of _0x2e6b6f)Ee(_0x4f527c)||(_0x1b41c9['removeMarker'](_0x4f527c['getFirstMarker']()),_0x1ffd94=!0x0);return _0x1ffd94;}['noTrackChangesFixer'](_0x215758){if(_0x215758['batch']['isUndo']||!_0x215758['batch']['isLocal'])return!0x1;const _0x191240=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x191240['trackChangesCommand']['value'])return!0x1;let _0x33e598=!0x1;const _0x5e1e02=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3587e9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x43f77f=>'attribute'==_0x43f77f['type'])['filter'](_0x3d8915=>_0x5e1e02['includes'](_0x3d8915['attributeKey']));if(0x0==_0x3587e9['length'])return _0x33e598;for(const _0xdb0d97 of _0x3587e9){const _0x2e963f=_0x191240['_findSuggestions'](_0xdb0d97['range'],'attribute')['filter'](_0x2baec9=>!_0x2baec9['meta']['isNextTo'])['map'](_0x589954=>_0x589954['suggestion'])['filter'](_0x425f17=>{const _0x415004=_0x191240['_getAttributeKey'](_0x425f17);return _0x5e1e02['includes'](_0x415004);});if(_0x2e963f['length']){for(const _0x2c715b of _0x2e963f)_0x215758['removeMarker'](_0x2c715b['getFirstMarker']());_0x33e598=!0x0;}}return _0x33e598;}['assureChains'](){const _0x347ac1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d302b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x20f1ee;const _0x51bfd9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x15af9a=>{if(_0x15af9a['data']['oldRange']||!_0x15af9a['data']['newRange'])return null;if(!_0x15af9a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1814d0}=_0x347ac1['_splitMarkerName'](_0x15af9a['name']);if(!_0x347ac1['hasSuggestion'](_0x1814d0))return null;const _0x30e674=_0x347ac1['getSuggestion'](_0x1814d0);return _0x5d302b['includes'](_0x30e674['data']['key']);})['map'](_0x4c05fd=>{const {id:_0x43f3e6}=_0x347ac1['_splitMarkerName'](_0x4c05fd['name']),_0x162db2=_0x347ac1['getSuggestion'](_0x43f3e6);return _0x20f1ee=_0x162db2['attributes']['groupId'],_0x162db2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x51bfd9['size'])return;const _0x573d47=_0x347ac1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x347a9e=>'attribute'==_0x347a9e['type']&&_0x347a9e['data']&&_0x5d302b['includes'](_0x347a9e['data']['key'])&&_0x347a9e['attributes']['groupId']!=_0x20f1ee)['map'](_0x73eb89=>({'listItem':_0x73eb89['getFirstRange']()['start']['nodeAfter'],'groupId':_0x73eb89['attributes']['groupId']})),_0x2bc826=new Set();for(const {groupId:_0x12cc6a,listItem:_0x123e33}of _0x573d47)_0x51bfd9['has'](_0x123e33)&&_0x2bc826['add'](_0x12cc6a);for(const _0x559815 of _0x347ac1['getSuggestions']())_0x2bc826['has'](_0x559815['attributes']['groupId'])&&_0x559815['setAttribute']('groupId',_0x20f1ee);}['_supportLegacySuggestions'](){const _0x1aa724=this['editor'],_0x645569=_0x1aa724['locale'],_0x128322=_0x1aa724['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x128322['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x142730,_0x34dffc){const _0x42b380=[];for(let _0x1bc658 of _0x142730)_0x1bc658['start']['nodeAfter']===_0x1bc658['end']['parent']&&(_0x1bc658=_0x1aa724['model']['createRange'](_0x1aa724['model']['createPositionAt'](_0x1bc658['start']['nodeAfter'],0x0))),_0x42b380['push'](_0x1bc658);_0x1aa724['model']['change'](_0x31e8ee=>{const _0x331796=_0x1aa724['model']['document']['selection'],_0xc78860=Array['from'](_0x331796['getRanges']())['map'](_0x4fa396=>_0xfd736c['fromRange'](_0x4fa396));_0x31e8ee['setSelection'](_0x42b380),_0x1aa724['commands']['get'](_0x34dffc['commandName'])['refresh'](),_0x34dffc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1aa724['execute'](_0x34dffc['commandName'],..._0x34dffc['commandParams']),_0x31e8ee['setSelection'](_0xc78860);for(const _0x87203 of _0xc78860)_0x87203['detach']();});}),_0x128322['descriptionFactory']['registerElementLabel'](function(_0x8665e6){const _0x2aa412=!_0x1aa724['model']['schema']['isObject'](_0x8665e6),_0x30b321=_0x8665e6['previousSibling'],_0x1622e7=_0x8665e6['nextSibling'],_0x274487=_0x8665e6['getAttribute']('listItemId'),_0x4094ac=!_0x30b321||_0x30b321['getAttribute']('listItemId')!==_0x274487,_0xcb6800=!_0x1622e7||_0x1622e7['getAttribute']('listItemId')!==_0x274487;return _0x2aa412&&Boolean(_0x274487)&&_0x4094ac&&_0xcb6800;},_0x59d4d4=>o(_0x645569,'ELEMENT_LIST_ITEM',_0x59d4d4));}['_registerLegacyDescription'](){const _0x15a8c5=this['editor'],_0x18b8af=_0x15a8c5['locale'];function _0x172ef8(_0x239f26){const _0x269671=_0x15a8c5['commands']['get']('bulletedList')['value'],_0x42ce1a=_0x15a8c5['commands']['get']('numberedList')['value'];return'numberedList'===_0x239f26?_0x269671:_0x42ce1a;}_0x15a8c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3d6449){if('formatBlock'!=_0x3d6449['type'])return;const {data:_0x435b70}=_0x3d6449;if(!_0x435b70)return;let _0x3c76ce,_0x10e24c,_0x198bbe,_0x3fce27;switch(_0x435b70['commandName']){case'bulletedList':_0x198bbe=_0x435b70['commandParams'][0x0]['forceValue'],_0x3fce27=_0x172ef8(_0x435b70['commandName']),_0x3c76ce=_0x198bbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fce27&&_0x15a8c5['config']['get']('list.multiBlock')||(_0x3c76ce='*Change\x20to:*\x20%0'),_0x10e24c={'type':'format','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x198bbe=_0x435b70['commandParams'][0x0]['forceValue'],_0x3fce27=_0x172ef8(_0x435b70['commandName']),_0x3c76ce=_0x198bbe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fce27&&_0x15a8c5['config']['get']('list.multiBlock')||(_0x3c76ce='*Change\x20to:*\x20%0'),_0x10e24c={'type':'format','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3c76ce='*Indent:*\x20%0',_0x10e24c={'type':'format','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3c76ce=function(_0x863f26){const _0x467241=_0x863f26['getFirstRange']();let _0x3f5feb=_0x467241['start']['nodeAfter'];for(;_0x3f5feb&&_0x467241['containsItem'](_0x3f5feb);){if(_0x3f5feb['getAttribute']('listIndent')>0x0)return!0x1;_0x3f5feb=_0x3f5feb['nextSibling'];}return!0x0;}(_0x3d6449)?o(_0x18b8af,'*Format:*\x20remove\x20from\x20%0',o(_0x18b8af,function(_0x4380eb){return'ELEMENT_'+_0x4380eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3d6449))):o(_0x18b8af,'*Outdent:*\x20%0',o(_0x18b8af,'ELEMENT_LIST_ITEM')),_0x10e24c={'type':'format','content':_0x3c76ce};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x435b70['multipleBlocks']&&(_0x3c76ce='*Merge:*\x20%0',_0x10e24c={'type':'deletion','content':o(_0x18b8af,_0x3c76ce,o(_0x18b8af,'ELEMENT_LIST_ITEM'))});}return _0x10e24c;});}}function Ee(_0x16ed17){let _0x3e7da0=_0x16ed17['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3e7da0;){const _0x3a5213=_0x3e7da0['getAttribute']('listItemId');if(!_0x3a5213)return!0x1;if(_0x3a5213==_0x16ed17['data']['newValue'])return'newValue';if(_0x3a5213==_0x16ed17['data']['oldValue'])return'oldValue';_0x3e7da0=_0x3e7da0['previousSibling'];}return!0x1;}class pe extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x443931=this['editor']['config']['get']('list.properties'),_0x53374b=this['editor']['plugins']['get']('TrackChangesEditing');_0x443931['styles']&&(_0x53374b['enableDefaultAttributesIntegration']('listStyle'),_0x53374b['registerBlockAttribute']('listStyle')),_0x443931['reversed']&&(_0x53374b['enableDefaultAttributesIntegration']('listReversed'),_0x53374b['registerBlockAttribute']('listReversed')),_0x443931['startIndex']&&(_0x53374b['enableDefaultAttributesIntegration']('listStart'),_0x53374b['registerBlockAttribute']('listStart'));const _0x344b64={'type':'format','content':''};_0x53374b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53105c=this['editor']['locale'];_0x53374b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x53105c,'FORMAT_LIST_REVERSED')),_0x53374b['descriptionFactory']['registerDescriptionCallback'](_0x55f2fe=>{const {data:_0x23338f}=_0x55f2fe;if(_0x23338f&&'listReversed'==_0x23338f['key'])return null==_0x23338f['newValue']||0x0==_0x23338f['newValue']&&null==_0x23338f['oldValue']?_0x344b64:void 0x0;}),_0x53374b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x53105c,'FORMAT_LIST_START')),_0x53374b['descriptionFactory']['registerDescriptionCallback'](_0x5e6562=>{const {data:_0xb7dfd3}=_0x5e6562;if(_0xb7dfd3&&'listStart'==_0xb7dfd3['key'])return null==_0xb7dfd3['newValue']||0x1==_0xb7dfd3['newValue']&&null==_0xb7dfd3['oldValue']?_0x344b64:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x107000=>{if(_0x107000['batch']['isUndo'])return!0x1;let _0x4d3759=!0x1;const _0xd507fc=_0x53374b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dbfd0=>{const _0x50f30d=_0x53374b['_getAttributeKey'](_0x5dbfd0);return'listStart'==_0x50f30d||'listReversed'==_0x50f30d;});for(const _0x4ee457 of _0xd507fc){const _0x523163=_0x4ee457['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x523163||'customNumbered'==_0x523163)continue;_0x53374b['_findSuggestions'](_0x4ee457['getFirstRange'](),'attribute')['find'](_0x3d9bf4=>'listType'==_0x53374b['_getAttributeKey'](_0x3d9bf4['suggestion']))||(_0x107000['removeMarker'](_0x4ee457['getFirstMarker']()),_0x4d3759=!0x0);}return _0x4d3759;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x31fa43){const _0x3172b1=this['editor']['locale'],{data:_0x557f9f}=_0x31fa43,_0x1eb101={'type':'format','content':''};if(!_0x557f9f||'listStyle'!=_0x557f9f['key'])return;if(!_0x557f9f['oldValue'])return'default'==_0x557f9f['newValue']?_0x1eb101:{'type':'format','content':''+o(_0x3172b1,'*Set\x20format:*\x20%0',o(_0x3172b1,this['_getTranslationKeyForListStyle'](_0x557f9f['newValue'])))};if(!_0x557f9f['newValue']){if('default'==_0x557f9f['oldValue'])return _0x1eb101;let _0x513742=_0x31fa43['head'];for(;_0x513742;){if(_0x513742['data']&&'listType'==_0x513742['data']['key']&&_0x513742['data']['newValue'])return _0x1eb101;_0x513742=_0x513742['next'];}return{'type':'format','content':''+o(_0x3172b1,'*Remove\x20format:*\x20%0',o(_0x3172b1,this['_getTranslationKeyForListStyle'](_0x557f9f['oldValue'])))};}if('default'!=_0x557f9f['newValue'])return{'type':'format','content':''+o(_0x3172b1,'*Set\x20format:*\x20%0',o(_0x3172b1,this['_getTranslationKeyForListStyle'](_0x557f9f['newValue'])))};let _0x18ebfc=_0x31fa43['head'];for(;_0x18ebfc;){if(_0x18ebfc['data']&&'listType'==_0x18ebfc['data']['key']&&_0x18ebfc['data']['newValue']&&_0x18ebfc['data']['oldValue'])return _0x1eb101;_0x18ebfc=_0x18ebfc['next'];}return{'type':'format','content':o(_0x3172b1,'*Set\x20format:*\x20%0',o(_0x3172b1,'ELEMENT_'+_0x31fa43['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a306c=this['editor'],_0x1bc595=_0x1a306c['locale'];_0x1a306c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432b16=>{if('formatBlock'!=_0x432b16['type'])return;const {data:_0x48669b}=_0x432b16;if(!_0x48669b)return;let _0x8634bc,_0x1450f3;switch(_0x48669b['commandName']){case'listStyle':_0x8634bc='*Change\x20to:*\x20%0',_0x1450f3={'type':'format','content':o(_0x1bc595,_0x8634bc,o(_0x1bc595,this['_getTranslationKeyForListStyle'](_0x48669b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8634bc=_0x48669b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1450f3={'type':'format','content':o(_0x1bc595,_0x8634bc)};break;case'listStart':_0x8634bc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1450f3={'type':'format','content':o(_0x1bc595,_0x8634bc,_0x48669b['commandParams'][0x0]['startIndex'])};}return _0x1450f3;});}['_getTranslationKeyForListStyle'](_0x380d19){return'ELEMENT_'+function(_0x3ce62d){if(ye['includes'](_0x3ce62d))return'bulleted';if(Se['includes'](_0x3ce62d))return'numbered';return null;}(_0x380d19)['toUpperCase']()+'_LIST_'+_0x380d19['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x310a20{static get['requires'](){return[_0x466c0e];}['init'](){const _0x147931=this['editor'],_0x535f49=_0x147931['plugins']['get']('TrackChangesEditing'),_0x5e07a4=_0x147931['commands']['get']('enter');_0x535f49['enableCommand']('enter',()=>{_0x147931['model']['change'](_0x5bb846=>{const _0x48a6d6=_0x147931['model']['document']['selection'],_0x26e740=_0x48a6d6['getFirstPosition'](),_0x5dfc02=_0xfd736c['fromRange'](_0x48a6d6['getFirstRange']());if(_0x5e07a4['enterBlock'](_0x5bb846)){const _0x31a55b=_0x147931['model']['createPositionAt'](_0x26e740['parent']['nextSibling'],0x0),_0x429d04=_0x5bb846['createRange'](_0x26e740,_0x31a55b);_0x535f49['markInsertion'](_0x429d04);}else _0x5bb846['setSelection'](_0x5bb846['createRange'](_0x5dfc02['end']));_0x5dfc02['detach'](),_0x5e07a4['fire']('afterExecute',{'writer':_0x5bb846});});}),_0x147931['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x147931,'split'),{'priority':'high'}),_0x147931['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x293353,_0xe0258c,_0x2c0f72)=>{const _0x9b5382=_0x2c0f72['mapper']['markerNameToElements'](_0xe0258c['markerName']);if(_0x9b5382){for(const _0x21b293 of _0x9b5382)_0x21b293['hasClass']('ck-suggestion-marker-split')&&(_0x2c0f72['mapper']['unbindElementFromMarkerName'](_0x21b293,_0xe0258c['markerName']),_0x2c0f72['writer']['remove'](_0x21b293));}},{'priority':'high'}),_0x147931['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40d28d,_0x464456,_0x3c9ac4)=>{_0x3c9ac4['options']['showSuggestionHighlights']&&_e(_0x147931,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40d28d,_0x464456,_0x3c9ac4);},{'priority':'high'});}}class X extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2e84df=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e84df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2e84df['enableCommand']('findNext'),_0x2e84df['enableCommand']('findPrevious'),_0x2e84df['enableCommand']('replace'),_0x2e84df['enableCommand']('replaceAll');}['handleFindCommand'](_0x30e0ad,_0x1b2255,_0x386ed0={}){const _0x189341=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30e0ad(_0x2498f4=>{let _0x551cde=('string'==typeof _0x1b2255?_0x189341['findByTextCallback'](_0x1b2255,_0x386ed0):_0x1b2255)(_0x2498f4);Array['isArray'](_0x551cde)&&(_0x551cde={'results':_0x551cde,'searchText':'string'==typeof _0x1b2255?_0x1b2255:''});const _0x47ae0e=_0x551cde['results']['filter'](_0x3bb229=>!0x1===this['_isInDeletionRange'](_0x3bb229,_0x2498f4['item']));return{..._0x551cde,'results':_0x47ae0e};},_0x386ed0);}['_isInDeletionRange'](_0x144699,_0x2ba62d){const _0x21113c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ba62d,_0x144699['start']),this['editor']['model']['createPositionAt'](_0x2ba62d,_0x144699['end']));for(const _0x554fa6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x21113c['getIntersection'](_0x554fa6['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 _0x310a20{['afterInit'](){const _0x3d1a54=this['editor']['locale'],_0x260a92=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2adf9b,commandName:_0x2160dc}of ro)this['editor']['plugins']['has'](_0x2adf9b)&&(_0x260a92['enableDefaultAttributesIntegration'](_0x2160dc),_0x260a92['registerInlineAttribute'](_0x2160dc));_0x260a92['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3d1a54,'FORMAT_FONT_SIZE')),_0x260a92['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3d1a54,'FORMAT_FONT_FAMILY')),_0x260a92['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3d1a54,'FORMAT_FONT_COLOR')),_0x260a92['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3d1a54,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238a15=this['editor'],_0x7f8cb=_0x238a15['locale'];_0x238a15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189a4f=>{const _0xa8b574=_0x7f8cb['t'];if('formatInline'!=_0x189a4f['type'])return;const {data:_0x55235f}=_0x189a4f;if(null!=_0x55235f){if('fontSize'==_0x55235f['commandName']){const _0x13b453=_0x55235f['commandParams'][0x0]['value'];if(_0x13b453){const _0x4779cd=_0xa8b574(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x20cfdd=>_0x20cfdd['model']==_0x13b453)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20size:*\x20%0',_0x4779cd)};}return{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x55235f['commandName']){const _0x27433e=_0x55235f['commandParams'][0x0]['value'];return _0x27433e?{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20family:*\x20%0',_0x27433e)}:{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x55235f['commandName']){const _0x3f0ba7=_0x55235f['commandParams'][0x0]['value'];if(_0x3f0ba7){const _0x5f73b4=_0x57f8f2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x43ba46=>_0x43ba46['model']==_0x3f0ba7);let _0x286316=_0x3f0ba7,_0x20966a='';return _0x5f73b4&&(_0x286316=_0x5f73b4['label'],_0x20966a=_0xa8b574(_0x286316)['toLowerCase']()),{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20color:*\x20%0',_0x20966a)['trim'](),'color':{'value':_0x3f0ba7,'title':_0x20966a||_0x286316}};}return{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x55235f['commandName']){const _0x250842=_0x55235f['commandParams'][0x0]['value'];if(_0x250842){const _0x8ebef9=_0x57f8f2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xebeb65=>_0xebeb65['model']==_0x250842);let _0x59e878=_0x250842,_0x4b0a11='';return _0x8ebef9&&(_0x59e878=_0x8ebef9['label'],_0x4b0a11=_0xa8b574(_0x59e878)['toLowerCase']()),{'type':'format','content':o(_0x7f8cb,'*Set\x20font\x20background\x20color:*\x20%0',_0x4b0a11)['trim'](),'color':{'value':_0x250842,'title':_0x4b0a11||_0x59e878}};}return{'type':'format','content':o(_0x7f8cb,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x310a20{['afterInit'](){const _0x119777=this['editor'],_0x3bb9a1=_0x119777['plugins']['get']('TrackChangesEditing'),_0x50e135=_0x119777['commands']['get']('copyFormat'),_0x286874=_0x119777['commands']['get']('pasteFormat');_0x50e135&&_0x286874&&(_0x3bb9a1['enableDefaultAttributesIntegration']('pasteFormat'),_0x3bb9a1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xaeaead=this['editor'],_0x288f3d=_0xaeaead['locale'];_0xaeaead['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7094=>{if('formatBlock'!=_0x3f7094['type']&&'formatInline'!=_0x3f7094['type'])return;const {data:_0x3d1dd9}=_0x3f7094;if(_0x3d1dd9&&'pasteFormat'===_0x3d1dd9['commandName']){const _0x19d9df=[],_0x330e34=_0x3d1dd9['commandParams'][0x0];for(const [_0x2e226c,_0x4ff4d2]of Object['entries'](_0x330e34))_0x19d9df['push'](so(_0xaeaead,_0x2e226c,_0x4ff4d2));return _0x19d9df['length']?{'type':'format','content':o(_0x288f3d,'*Set\x20format\x20to:*\x20%0',_0x19d9df['join'](',\x20'))}:{'type':'format','content':o(_0x288f3d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x357a15,_0x44744a,_0x5c33d6){const _0xd24df6=_0x357a15['locale']['t'],_0x3b7c53=_0x44744a['split'](/(?=[A-Z])/)['join']('\x20'),_0x16afdf=_0xd24df6(_0x3b7c53['charAt'](0x0)['toUpperCase']()+_0x3b7c53['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5c33d6)return _0x16afdf;if('fontColor'===_0x44744a||'fontBackgroundColor'===_0x44744a){const _0x5ce14a=_0x57f8f2(_0x357a15['config']['get']('fontColor.colors'))['find'](_0x5633f5=>_0x5633f5['model']==_0x5c33d6);return _0x16afdf+'\x20('+(_0x5ce14a?_0xd24df6(_0x5ce14a['label'])['toLowerCase']():_0x5c33d6)+')';}if('fontSize'===_0x44744a&&isNaN(parseFloat(_0x5c33d6))){const _0x3d6d76=_0x357a15['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x357a15['config']['get']('fontSize.options'))['find'](_0x149418=>_0x149418['model']==_0x5c33d6);return _0x16afdf+'\x20('+(_0x3d6d76?_0xd24df6(_0x3d6d76['title'])['toLowerCase']():_0x5c33d6)+')';}return _0x16afdf+'\x20('+_0x5c33d6+')';}class tt extends _0x310a20{['_headingOptions'];['afterInit'](){const _0x337dc2=this['editor'];if(!_0x337dc2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x337dc2['config']['get']('heading.options');const _0x2543ad=_0x337dc2['locale'],_0x50949b=_0x337dc2['plugins']['get']('TrackChangesEditing');_0x50949b['enableDefaultAttributesIntegration']('heading');for(const _0x31183d of this['_headingOptions'])'paragraph'!=_0x31183d['model']&&_0x50949b['descriptionFactory']['registerElementLabel'](_0x31183d['model'],_0x3733e9=>{const _0x2c2cd1=this['_getHeadingLevel'](_0x31183d['model']);return null!==_0x2c2cd1?_0x3ed712(_0x3733e9,_0x2c2cd1):_0x40d32c(_0x3733e9,_0x31183d['title']);});function _0x3ed712(_0x37a310,_0x1b24ff){return o(_0x2543ad,'ELEMENT_HEADING',[_0x37a310,_0x1b24ff]);}function _0x40d32c(_0x4041a7,_0x1f7627){return o(_0x2543ad,'ELEMENT_HEADING_CUSTOM',[_0x4041a7,_0x1f7627]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fd82e=this['editor'],_0x30d5d8=_0x2fd82e['locale'];function _0x2617b2(_0x37ec93,_0x2d2007){return o(_0x30d5d8,'ELEMENT_HEADING_CUSTOM',[_0x37ec93,_0x2d2007]);}_0x2fd82e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375248=>{if('formatBlock'!=_0x375248['type'])return;const {data:_0xe42b01}=_0x375248;if(_0xe42b01&&'heading'==_0xe42b01['commandName']){const _0x2649be=_0xe42b01['commandParams'][0x0]['value'],_0xc5f6ba=this['_getHeadingLevel'](_0x2649be);if(null!==_0xc5f6ba)return{'type':'format','content':o(_0x30d5d8,'*Change\x20to:*\x20%0',(_0x499c13=0x1,_0x421c54=_0xc5f6ba,o(_0x30d5d8,'ELEMENT_HEADING',[_0x499c13,_0x421c54])))};const _0x1c1bad=this['_headingOptions']['find'](_0x47fdf5=>_0x47fdf5['model']===_0x2649be)['title'];return{'type':'format','content':o(_0x30d5d8,'*Change\x20to:*\x20%0',_0x2617b2(0x1,_0x1c1bad))};}var _0x499c13,_0x421c54;});}['_getHeadingLevel'](_0x4149a1){const _0x24a521=_0x4149a1['match'](/^heading(\d+)/);if(_0x24a521)return _0x24a521[0x1];const _0xb5b850=this['_headingOptions']?.['find'](_0x5596ee=>_0x5596ee['model']==_0x4149a1);if(_0xb5b850&&_0xb5b850['view']){const _0x44ef1b=_0xb5b850['view'],_0x409008=(_0x44ef1b['name']??_0x44ef1b)['match'](/^h(\d+)/);if(_0x409008)return _0x409008[0x1];}return null;}}class et extends _0x310a20{['afterInit'](){const _0x21ac12=this['editor'];if(!_0x21ac12['plugins']['has']('HighlightEditing'))return;const _0x1c579a=_0x21ac12['plugins']['get']('TrackChangesEditing'),_0x4024a5=_0x21ac12['locale'];_0x1c579a['enableDefaultAttributesIntegration']('highlight'),_0x1c579a['registerInlineAttribute']('highlight'),_0x1c579a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4024a5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30563b=this['editor'],_0x1527f5=_0x30563b['locale'];_0x30563b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x513cc2=>{if('formatInline'!=_0x513cc2['type'])return;const {data:_0x5c7f1d}=_0x513cc2;if(_0x5c7f1d&&'highlight'==_0x5c7f1d['commandName']){const _0x3e56c0=_0x1527f5['t'],_0x5582be=_0x5c7f1d['commandParams'][0x0]['value'];if(_0x5582be){const _0x17b5b9=_0x30563b['config']['get']('highlight.options')['find'](_0x12e173=>_0x12e173['model']==_0x5582be),_0x1bf83=_0x3e56c0(_0x17b5b9['title'])['toLowerCase']();return{'type':'format','content':o(_0x1527f5,'*Set\x20highlight:*\x20%0',_0x1bf83),'color':{'value':_0x17b5b9['color'],'title':_0x17b5b9['title']}};}return{'type':'format','content':o(_0x1527f5,'*Remove\x20highlight*',o(_0x1527f5,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x310a20{['afterInit'](){const _0x1bf720=this['editor'];if(!_0x1bf720['plugins']['has']('HorizontalLineEditing'))return;_0x1bf720['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x294107=_0x1bf720['plugins']['get']('TrackChangesEditing'),_0x4204ab=_0x1bf720['locale'];_0x294107['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5d3f1f=>o(_0x4204ab,'ELEMENT_HORIZONTAL_LINE',_0x5d3f1f)),_0x1bf720['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1c4443,{writer:_0x3743a7,options:_0x5224cd})=>{if(!_0x5224cd['showSuggestionHighlights'])return null;const _0x44d383=_0x3743a7['createContainerElement']('div'),_0x3bc869=_0x3743a7['createEmptyElement']('hr');return _0x3743a7['addClass']('ck-horizontal-line',_0x44d383),_0x3743a7['insert'](_0x3743a7['createPositionAt'](_0x44d383,0x0),_0x3bc869),_0x44d383;},'converterPriority':'high'});}}class st extends _0x310a20{['afterInit'](){const _0x3881f6=this['editor'];if(!_0x3881f6['plugins']['has']('HtmlEmbed'))return;const _0x3fc6b2=_0x3881f6['plugins']['get']('TrackChangesEditing'),_0x1824f6=_0x3881f6['locale'];_0x3fc6b2['descriptionFactory']['registerElementLabel']('rawHtml',_0x3102ad=>o(_0x1824f6,'ELEMENT_HTML_EMBED',_0x3102ad)),_0x3fc6b2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3fc6b2['registerBlockAttribute']('value'),_0x3fc6b2['descriptionFactory']['registerDescriptionCallback'](_0x4ac160=>{if('attribute'!=_0x4ac160['type'])return;const {data:_0x3964a1}=_0x4ac160;if(_0x3964a1&&'value'==_0x3964a1['key']&&_0x4ac160['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x44fb10=o(_0x1824f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1824f6,'*Change\x20%0\x20content*',_0x44fb10)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7a3caf=this['editor'],_0x1ea71e=_0x7a3caf['locale'];_0x7a3caf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc437=>{if('formatBlock'!=_0x5dc437['type'])return;const {data:_0x296519}=_0x5dc437;if(_0x296519&&'htmlEmbed'==_0x296519['commandName']){const _0x577b13=o(_0x1ea71e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ea71e,'*Change\x20%0\x20content*',_0x577b13)};}});}}class nt extends _0x310a20{['afterInit'](){const _0x2407ce=this['editor'];if(!_0x2407ce['plugins']['has']('ImageEditing'))return;const _0x3d1a98=_0x2407ce['plugins']['get']('TrackChangesEditing'),_0x2f1c0b=_0x2407ce['plugins']['get']('ImageUtils'),_0x59aebc=_0x2407ce['locale'];_0x3d1a98['enableCommand']('insertImage'),_0x3d1a98['descriptionFactory']['registerElementLabel']('imageBlock',_0x4907e8=>o(_0x59aebc,'ELEMENT_IMAGE',_0x4907e8)),_0x3d1a98['descriptionFactory']['registerElementLabel']('imageInline',_0x1c96e9=>o(_0x59aebc,'ELEMENT_INLINE_IMAGE',_0x1c96e9)),_0x3d1a98['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x59aebc,'ELEMENT_CAPTION')),_0x2407ce['plugins']['has']('ImageUploadEditing')&&_0x3d1a98['enableCommand']('uploadImage'),_0x2407ce['plugins']['has']('ImageBlockEditing')&&_0x2407ce['plugins']['has']('ImageInlineEditing')&&(_0x3d1a98['enableCommand']('imageTypeInline',(_0xcdbcf2,_0x3e0509)=>{const _0x2df267=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']);_0x2407ce['model']['change'](()=>{_0x3d1a98['markBlockFormat'](_0x2df267,{'commandName':'imageTypeInline','commandParams':[_0x3e0509]},[],'convertBlockImageToInline');});}),_0x3d1a98['enableCommand']('imageTypeBlock',(_0x160958,_0x2b4aaf)=>{_0x2407ce['model']['change'](_0x51cbe3=>{let _0x279597=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x1f1927=_0x51cbe3['createRangeOn'](_0x279597);const _0x44ca12=_0x441e11['fromPosition'](_0x1f1927['start'],'toPrevious'),_0x3b60d6=_0x441e11['fromPosition'](_0x1f1927['end'],'toNext');_0x3d1a98['forceDefaultExecution'](()=>_0x160958(_0x2b4aaf)),_0x279597=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x1f1927=_0x51cbe3['createRangeOn'](_0x279597);const _0x4a8e7a=_0x51cbe3['createRange'](_0x44ca12,_0x3b60d6);_0x44ca12['detach'](),_0x3b60d6['detach'](),_0x3d1a98['markBlockFormat'](_0x279597,{'commandName':'imageTypeInline','commandParams':[_0x2b4aaf]},[],'convertInlineImageToBlock'),_0x4a8e7a['start']['isBefore'](_0x1f1927['start'])&&_0x3d1a98['markInsertion'](_0x51cbe3['createRange'](_0x4a8e7a['start'],_0x1f1927['start']),'convertInlineImageToBlock'),_0x1f1927['end']['isBefore'](_0x4a8e7a['end'])&&_0x3d1a98['markInsertion'](_0x51cbe3['createRange'](_0x1f1927['end'],_0x4a8e7a['end']),'convertInlineImageToBlock');});}),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d1a98['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x53b875])=>{const _0x4ef573=_0x3d1a98['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c9830=_0x53b875['start'],_0x5efbcb=_0x53b875['end'];const _0x32083f=_0x2407ce['model']['schema']['getNearestSelectionRange'](_0x2c9830,'backward'),_0x345875=_0x2407ce['model']['schema']['getNearestSelectionRange'](_0x5efbcb,'forward');_0x32083f['isCollapsed']&&(_0x2c9830=_0x32083f['start']),_0x345875['isCollapsed']&&(_0x5efbcb=_0x345875['end']),_0x4ef573([_0x2407ce['model']['createRange'](_0x2c9830,_0x5efbcb)]);}),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa7cd43),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa7cd43)),_0x2407ce['plugins']['has']('ImageCaptionEditing')&&(_0x3d1a98['enableCommand']('toggleImageCaption',(_0x64bff3,_0x12ae11)=>{const _0x24ee57=_0x2407ce['plugins']['get']('ImageCaptionUtils');let _0x2e3ffb=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x663427=_0x24ee57['getCaptionFromImageModelElement'](_0x2e3ffb);_0x2407ce['model']['change'](()=>{if(_0x663427)return void _0x3d1a98['markDeletion'](_0x2407ce['model']['createRangeOn'](_0x663427));const _0x2a64ef=_0x2f1c0b['isBlockImage'](_0x2e3ffb);_0x64bff3(_0x12ae11),_0x2e3ffb=_0x2f1c0b['getClosestSelectedImageElement'](_0x2407ce['model']['document']['selection']),_0x663427=_0x24ee57['getCaptionFromImageModelElement'](_0x2e3ffb),_0x3d1a98['markInsertion'](_0x2407ce['model']['createRangeOn'](_0x663427),_0x2a64ef?null:'imageCaption');});}),_0x3d1a98['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa7cd43));const _0x561486=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41493c(_0x20f78a,_0x58dfdb){const _0xf9cc01=_0x561486['findIndex'](({type:_0x1f844d,subType:_0x326d4a})=>_0x20f78a['type']==_0x1f844d&&_0x20f78a['subType']==_0x326d4a),_0x9133f6=_0x561486['findIndex'](({type:_0x3c24cb,subType:_0x2bc1f1})=>_0x58dfdb['type']==_0x3c24cb&&_0x58dfdb['subType']==_0x2bc1f1);if(_0xf9cc01<0x0||_0x9133f6<0x0)return!0x1;const _0x46e89b=_0x20f78a['getFirstRange'](),_0x453ec7=_0x58dfdb['getFirstRange']();if((0x0==_0xf9cc01||0x1==_0xf9cc01)&&0x2==_0x9133f6&&_0x46e89b['isIntersecting'](_0x453ec7))return!0x0;if(0x2==_0xf9cc01&&0x3==_0x9133f6){const _0x29e964=_0x3d1a98['_findSuggestions'](_0x46e89b,'insertion')['filter'](({suggestion:_0x2fe6a9,meta:_0xa1d05f})=>_0xa1d05f['isOwn']&&'convertInlineImageToBlock'==_0x2fe6a9['subType']);if(_0x29e964['length']>0x1&&_0x453ec7['end']['isEqual'](_0x46e89b['start']))return!0x0;if(0x1==_0x29e964['length']&&(_0x46e89b['start']['isEqual'](_0x453ec7['end'])||_0x46e89b['end']['isEqual'](_0x453ec7['start'])))return!0x0;}if(0x3==_0xf9cc01&&0x3==_0x9133f6&&_0x46e89b['start']['isBefore'](_0x453ec7['start'])){const _0x31d537=_0x46e89b['end']['nodeAfter'],_0x4ee10a=_0x453ec7['start']['nodeBefore'];return _0x2f1c0b['isBlockImage'](_0x31d537)&&_0x31d537===_0x4ee10a;}return!0x1;}function _0xa7cd43(_0x2d02fc,_0x1ae340){return _0x41493c(_0x2d02fc,_0x1ae340)?[_0x2d02fc,_0x1ae340]:_0x41493c(_0x1ae340,_0x2d02fc)?[_0x1ae340,_0x2d02fc]:null;}_0x2407ce['plugins']['has']('ImageResize')&&(_0x3d1a98['enableDefaultAttributesIntegration']('resizeImage'),_0x3d1a98['registerBlockAttribute']('resizedWidth'),_0x3d1a98['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x59aebc,'FORMAT_IMAGE_SIZE'))),_0x2407ce['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d1a98['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d1a98['registerBlockAttribute']('alt')),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0xceb6e1=>{if(!!_0x561486['find'](({type:_0x148098,subType:_0x1f1233})=>_0xceb6e1['type']==_0x148098&&_0xceb6e1['subType']==_0x1f1233))return _0xceb6e1['previous']?{}:void 0x0;}),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0x541e4b=>{if('insertion'==_0x541e4b['type']||'deletion'==_0x541e4b['type']){const _0xa1c47b=_0x541e4b['getContainedElement']();if(_0xa1c47b&&_0xa1c47b['is']('element','caption'))return{'type':'insertion'==_0x541e4b['type']?'addObject':'removeObject','element':_0xa1c47b,'quantity':0x1};}}),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0x28ecfb=>'formatBlock'==_0x28ecfb['type']&&'convertInlineImageToBlock'==_0x28ecfb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x28ecfb['type']&&'convertBlockImageToInline'==_0x28ecfb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d1a98['descriptionFactory']['registerDescriptionCallback'](_0x6195e7=>{if('attribute'!=_0x6195e7['type'])return;const {data:_0x3d4b90}=_0x6195e7;if(!_0x3d4b90||'alt'!=_0x3d4b90['key'])return;const _0x5b6d32=_0x3d4b90['newValue'];return _0x5b6d32?{'type':'format','content':o(_0x59aebc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b6d32+'\x22')}:{'type':'format','content':o(_0x59aebc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5863f7=this['editor'],_0x9166a=_0x5863f7['locale'];_0x5863f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b10e=>{if('formatBlock'!=_0x25b10e['type']&&'formatInline'!=_0x25b10e['type'])return;const {data:_0x2bf083}=_0x25b10e;if(_0x2bf083){if('imageTextAlternative'==_0x2bf083['commandName']){const _0x50b6fd=_0x2bf083['commandParams'][0x0]['newValue'];return _0x50b6fd?{'type':'format','content':o(_0x9166a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50b6fd+'\x22')}:{'type':'format','content':o(_0x9166a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bf083['commandName']){const _0x40f0ca=_0x2bf083['commandParams'][0x0]['width'];return _0x40f0ca?{'type':'format','content':o(_0x9166a,'*Set\x20image\x20width:*\x20%0',_0x40f0ca)}:{'type':'format','content':o(_0x9166a,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x54fdfd=this['editor']['locale'],_0x453b64=this['editor']['plugins']['get']('TrackChangesEditing');_0x453b64['enableDefaultAttributesIntegration']('replaceImageSource'),_0x453b64['registerBlockAttribute']('src'),_0x453b64['descriptionFactory']['registerDescriptionCallback'](_0x39c7c0=>{if('attribute'!=_0x39c7c0['type'])return;const {data:_0x538f48}=_0x39c7c0;return _0x538f48&&'src'==_0x538f48['key']?_0x538f48['newValue']&&_0x538f48['oldValue']?{'type':'format','content':o(_0x54fdfd,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x178971=this['editor']['plugins']['get']('TrackChangesEditing');_0x178971['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x178971['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x178971['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x178971['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3efdfb=this['editor'],_0x380ea2=_0x3efdfb['locale'];_0x3efdfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e1a58=>{if('formatBlock'!=_0x4e1a58['type']&&'formatInline'!=_0x4e1a58['type'])return;const {data:_0x2e06b4}=_0x4e1a58;if(!_0x2e06b4||'replaceImageSource'!=_0x2e06b4['commandName'])return;return{'type':'format','content':o(_0x380ea2,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x310a20{['afterInit'](){const _0x39fb54=this['editor'];if(!_0x39fb54['plugins']['has']('ImageStyleEditing'))return;const _0x57ef71=_0x39fb54['plugins']['get']('TrackChangesEditing'),_0x4b3e7f=_0x39fb54['plugins']['get']('ImageUtils'),_0x43d77b={};_0x57ef71['enableCommand']('imageStyle',(_0x271e27,_0x2d4edb)=>{const _0x2d065b=_0x39fb54['plugins']['get']('Users')['me'],_0x16afc3=_0x39fb54['commands']['get']('imageStyle');let _0x478ba0=_0x4b3e7f['getClosestSelectedImageElement'](_0x39fb54['model']['document']['selection']),_0x1672b9=_0x39fb54['model']['createRangeOn'](_0x478ba0),_0x5549ee=_0x16afc3['value'];if(_0x5549ee==_0x2d4edb['value'])return;const _0x58d250={'commandName':'imageStyle','commandParams':[_0x2d4edb],'formatGroupId':_0x3620ad()};_0x39fb54['model']['change'](()=>{if(_0x57ef71['getSuggestions']()['filter'](_0x144a82=>_0x144a82['isInContent']&&_0x2d065b==_0x144a82['author']&&('formatBlock'==_0x144a82['type']||'formatInline'==_0x144a82['type'])&&('imageStylePreApply'==_0x144a82['subType']||'imageStylePostApply'==_0x144a82['subType'])&&_0x144a82['getFirstRange']()['isEqual'](_0x1672b9))['forEach'](_0x28ae8e=>_0x57ef71['discardSuggestion'](_0x28ae8e['head'])),_0x478ba0=_0x4b3e7f['getClosestSelectedImageElement'](_0x39fb54['model']['document']['selection']),_0x1672b9=_0x39fb54['model']['createRangeOn'](_0x478ba0),_0x16afc3['refresh'](),_0x39fb54['commands']['get']('imageTypeInline')['refresh'](),_0x39fb54['commands']['get']('imageTypeBlock')['refresh'](),_0x5549ee=_0x16afc3['value'],_0x5549ee!=_0x2d4edb['value'])return _0x4b3e7f['isInlineImage'](_0x478ba0)&&_0x16afc3['shouldConvertImageType'](_0x2d4edb['value'],_0x478ba0)?(_0x271e27({..._0x2d4edb,'setImageSizes':!0x1}),_0x478ba0=_0x4b3e7f['getClosestSelectedImageElement'](_0x39fb54['model']['document']['selection']),void _0x57ef71['markBlockFormat'](_0x478ba0,{..._0x58d250,'commandReversedParams':[{'value':_0x5549ee||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4b3e7f['isBlockImage'](_0x478ba0)?_0x57ef71['markBlockFormat'](_0x478ba0,_0x58d250,[],'imageStylePostApply'):_0x57ef71['markInlineFormat'](_0x1672b9,_0x58d250,'imageStylePostApply'));});});for(const _0x5afd99 of _0x39fb54['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x43d77b[_0x5afd99['name']]=_0x5afd99['title']['toLowerCase']();_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x49a06c])=>{_0x4b3e7f['setImageNaturalSizeAttributes'](_0x49a06c['getContainedElement']());}),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x48c01d,_0xad218e)=>{_0x57ef71['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x48c01d,{'commandName':_0xad218e['commandName'],'commandParams':_0xad218e['commandReversedParams']});}),_0x57ef71['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4f1199,_0x5ae196){if(_0xb611d7(_0x4f1199,_0x5ae196))return[_0x4f1199,_0x5ae196];if(_0xb611d7(_0x5ae196,_0x4f1199))return[_0x5ae196,_0x4f1199];return null;});const _0x16c7d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb611d7(_0x572bd8,_0x1ba208){const _0x1782d9=_0x16c7d9['findIndex'](({type:_0x5aa24b,subType:_0x521a35})=>_0x572bd8['type']==_0x5aa24b&&_0x572bd8['subType']==_0x521a35),_0x11fd46=_0x16c7d9['findIndex'](({type:_0x4b79f6,subType:_0x2378e9})=>_0x1ba208['type']==_0x4b79f6&&_0x1ba208['subType']==_0x2378e9);if(_0x1782d9<0x0||_0x11fd46<0x0)return!0x1;const _0x5b39bf=_0x572bd8['getFirstRange'](),_0x1a8394=_0x1ba208['getFirstRange']();if((0x0==_0x1782d9||0x1==_0x1782d9)&&0x2==_0x11fd46&&_0x5b39bf['isIntersecting'](_0x1a8394))return!0x0;if(0x2==_0x1782d9&&0x3==_0x11fd46){const _0x32e37a=_0x57ef71['_findSuggestions'](_0x5b39bf,'insertion')['filter'](({suggestion:_0x4206db,meta:_0x3eed29})=>_0x3eed29['isOwn']&&'convertInlineImageToBlock'==_0x4206db['subType']);if(_0x32e37a['length']>0x1&&_0x1a8394['end']['isEqual'](_0x5b39bf['start']))return!0x0;if(0x1==_0x32e37a['length']&&(_0x5b39bf['start']['isEqual'](_0x1a8394['end'])||_0x5b39bf['end']['isEqual'](_0x1a8394['start'])))return!0x0;}if(0x3==_0x1782d9&&0x3==_0x11fd46&&_0x5b39bf['start']['isBefore'](_0x1a8394['start'])){const _0x57f758=_0x5b39bf['end']['nodeAfter'],_0x40feb2=_0x1a8394['start']['nodeBefore'];return _0x4b3e7f['isBlockImage'](_0x57f758)&&_0x57f758===_0x40feb2;}return!0x1;}_0x39fb54['model']['document']['registerPostFixer'](()=>{let _0x40bad9=!0x1;const _0x2fa5b9=Array['from'](_0x39fb54['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13c4ea,data:_0x52e79f}of _0x2fa5b9){const {group:_0x15fc99,type:_0x253774,subType:_0x35ffab,id:_0xabbdc4}=_0x57ef71['_splitMarkerName'](_0x13c4ea);if('suggestion'==_0x15fc99&&_0x57ef71['hasSuggestion'](_0xabbdc4)){if('formatBlock'==_0x253774&&('imageStylePreApply'==_0x35ffab||'imageStylePostApply'==_0x35ffab)){const _0x5d490c=_0x57ef71['getSuggestion'](_0xabbdc4);if(_0x52e79f['newRange']){const _0xb0aa22=_0x5d490c['getFirstRange']()['getContainedElement']();if(_0x4b3e7f['isBlockImage'](_0xb0aa22))continue;_0x57ef71['discardSuggestion'](_0x5d490c),_0x40bad9=!0x0;}}if('insertion'==_0x253774&&'imageCaption'==_0x35ffab&&!_0x52e79f['newRange']){const _0x9271af=_0x57ef71['getSuggestion'](_0xabbdc4);_0x9271af['next']&&_0x9271af['next']['isInContent']&&(_0x57ef71['discardSuggestion'](_0x9271af['next']),_0x40bad9=!0x0);}}}return _0x40bad9;}),this['_registerLegacyDescription'](_0x43d77b);}['_registerLegacyDescription'](_0x2ad866){const _0x54429a=this['editor'],_0x299e6c=_0x54429a['locale'];_0x54429a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x443ee7=>{if('formatBlock'!=_0x443ee7['type']&&'formatInline'!=_0x443ee7['type'])return;const {data:_0x5151b7}=_0x443ee7;if(!_0x5151b7||'imageStyle'!=_0x5151b7['commandName'])return;const _0x37bd7c=_0x5151b7['commandParams'][0x0]['value'];return _0x532412('side'===_0x37bd7c?o(_0x299e6c,'FORMAT_SIDE_IMAGE'):_0x2ad866[_0x37bd7c]||_0x37bd7c);function _0x532412(_0x454895){return{'type':'format','content':o(_0x299e6c,'*Format:*\x20%0',_0x454895)};}});}}class at extends _0x310a20{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xf35ed2){super(_0xf35ed2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x480e1f=this['editor'],_0x3110ac=_0x480e1f['commands']['get']('importWord'),_0x278f7f=_0x480e1f['commands']['get']('trackChanges');_0x3110ac&&(_0x3110ac['on']('execute',(_0x2336e3,[,_0x406420])=>{this['_trackChangesValueDuringImport']=_0x278f7f['value'],_0x406420['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3110ac,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3110ac,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x278f7f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x480e1f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x137eea,_0x351f84){const {suggestions:_0x37ecb4}=_0x351f84,_0x56021b=this['editor']['commands']['get']('trackChanges'),_0x2fc2e3=_0x56021b['value'];this['_trackChangesValueDuringImport']!==_0x2fc2e3&&(_0x56021b['execute'](),this['_trackChangesExecuted']=!0x0),_0x37ecb4&&_0x37ecb4['forEach'](({id:_0x428091,type:_0x47128c,author:_0x2ebfe2,created_at:_0x2eb910})=>{const _0x12faaa={'id':_0x428091,'type':_0x47128c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2ebfe2,'createdAt':_0x2eb910?new Date(_0x2eb910):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12faaa);});}}class ct extends _0x310a20{['afterInit'](){const _0x3bc973=this['editor'],_0x2f20f6=_0x3bc973['plugins']['get']('TrackChangesEditing');if(_0x3bc973['plugins']['has']('IndentEditing')&&(_0x2f20f6['enableCommand']('indent'),_0x2f20f6['enableCommand']('outdent')),_0x3bc973['plugins']['has']('IndentBlock')){for(const _0x5e5773 of['indentBlock','outdentBlock'])_0x2f20f6['enableDefaultAttributesIntegration'](_0x5e5773);}const _0x38c15a=_0x3bc973['locale'];_0x2f20f6['registerBlockAttribute']('blockIndent'),_0x2f20f6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x38c15a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23421b=this['editor'],_0x2813c0=_0x23421b['locale'],_0x1170b2=_0x23421b['plugins']['get']('TrackChangesEditing');_0x1170b2['descriptionFactory']['registerDescriptionCallback'](_0x49fb1b=>{if('formatBlock'!=_0x49fb1b['type'])return;const {data:_0x63f5c2}=_0x49fb1b;if(!_0x63f5c2)return;if('indentBlock'!=_0x63f5c2['commandName']&&'outdentBlock'!=_0x63f5c2['commandName'])return;const _0x11e487=_0x49fb1b['getItems']()[0x0],_0x2c7ad5=_0x1170b2['descriptionFactory']['getItemLabel'](_0x11e487);return'indentBlock'==_0x63f5c2['commandName']?{'type':'format','content':o(_0x2813c0,'*Indent:*\x20%0',_0x2c7ad5)}:'outdentBlock'==_0x63f5c2['commandName']?{'type':'format','content':o(_0x2813c0,'*Outdent:*\x20%0',_0x2c7ad5)}:void 0x0;});}}class ut extends _0x310a20{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x310a20{['afterInit'](){const _0x2bd1ba=this['editor'];if(!_0x2bd1ba['plugins']['has']('LinkEditing'))return;const _0x1df074=_0x2bd1ba['plugins']['get']('TrackChangesEditing'),_0xaf106b=_0x2bd1ba['commands']['get']('link');_0x1df074['enableDefaultAttributesIntegration']('link'),_0x1df074['enableDefaultAttributesIntegration']('unlink'),_0x1df074['registerInlineAttribute']('linkHref');for(const _0xfa9c64 of _0xaf106b['manualDecorators'])_0x1df074['registerInlineAttribute'](_0xfa9c64['id']),_0x1df074['descriptionFactory']['registerAttributeLabel'](_0xfa9c64['id'],'link\x20('+_0xfa9c64['label']['toLowerCase']()+')');_0x1df074['descriptionFactory']['registerDescriptionCallback'](_0x407958=>{if('attribute'!=_0x407958['type'])return;const {data:_0x1f1c14}=_0x407958;if(!_0x1f1c14||'linkHref'!=_0x1f1c14['key'])return;const _0x53a657=_0x1f1c14['newValue'],_0x16c1f4=_0x2bd1ba['locale'];return{'type':'format','content':null==_0x53a657?o(_0x16c1f4,'*Remove\x20link*'):o(_0x16c1f4,'*Set\x20link:*\x20%0','\x22'+_0x53a657+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a7ea2=this['editor'],_0x3614db=_0x2a7ea2['locale'];_0x2a7ea2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18879e=>{if('formatInline'!=_0x18879e['type'])return;const {data:_0x84b17d}=_0x18879e;if(_0x84b17d){if('link'==_0x84b17d['commandName']){const _0xb7ffa=_0x84b17d['commandParams'][0x0];return{'type':'format','content':o(_0x3614db,'*Set\x20link:*\x20%0','\x22'+_0xb7ffa+'\x22')};}return'unlink'==_0x84b17d['commandName']?{'type':'format','content':o(_0x3614db,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x310a20{['afterInit'](){const _0x4638a9=this['editor'],_0x37b9f5=_0x4638a9['locale'];if(!_0x4638a9['plugins']['has']('LegacyListEditing'))return;const _0x52275e=_0x4638a9['plugins']['get']('TrackChangesEditing'),_0x4a8629=_0x4638a9['plugins']['has']('LegacyTodoListEditing');function _0x463901(_0x566a88){return()=>{const _0x48ece9=_0x4638a9['model']['document']['selection'],_0x280459=_0x4638a9['commands']['get'](_0x566a88);if(_0x280459['value'])return void _0x4638a9['execute']('paragraph',{});const _0x46572b=_0x566a88['slice'](0x0,-0x4),_0x4e170b=function(_0x18d5e9,_0x457ffb,_0x337910){let _0x3157f8=Array['from'](_0x18d5e9)['filter'](_0xe2e7c2=>function(_0x2775d1,_0x23190b){return _0x23190b['checkChild'](_0x2775d1['parent'],'listItem')&&!_0x23190b['isObject'](_0x2775d1);}(_0xe2e7c2,_0x337910));_0x3157f8=_0x3157f8['filter'](_0x3cb3a8=>!_0x3cb3a8['is']('element','listItem')||_0x3cb3a8['getAttribute']('listType')!=_0x457ffb);const _0x5b8b48=new Set();for(const _0x1304c2 of _0x3157f8)_0x1304c2['is']('element','listItem')?_0x5b8b48['add'](fe(_0x1304c2)):_0x5b8b48['add'](_0x1304c2);return Array['from'](_0x5b8b48);}(_0x48ece9['getSelectedBlocks'](),_0x46572b,_0x4638a9['model']['schema']);_0x4638a9['model']['change'](()=>{for(const _0x124af5 of _0x4e170b)_0x52275e['markBlockFormat'](_0x124af5,{'commandName':_0x566a88,'commandParams':[{'forceValue':!_0x280459['value']}],'formatGroupId':'blockName'},ue(_0x124af5));});};}function _0x26c63d(_0x511c27){return()=>{const _0x513e9c=function(_0x12dc63){let _0x45fae0=Array['from'](_0x12dc63);const _0x2e9470=_0x45fae0['findIndex'](_0x20cc84=>'listItem'!=_0x20cc84['name']);return _0x2e9470>-0x1&&(_0x45fae0=_0x45fae0['slice'](0x0,_0x2e9470)),_0x45fae0;}(_0x4638a9['model']['document']['selection']['getSelectedBlocks']()),_0x31229f=_0x4638a9['model']['createRange'](_0x4638a9['model']['createPositionAt'](_0x513e9c[0x0],'before'),_0x4638a9['model']['createPositionAt'](_0x513e9c[_0x513e9c['length']-0x1],'end'));_0x4638a9['model']['change'](()=>{_0x52275e['markBlockFormat'](_0x31229f,{'commandName':_0x511c27,'commandParams':[],'formatGroupId':'listIndent'},function(_0x442827){const _0x4348c0=new Set();for(const _0x1236eb of _0x442827){let _0x183bca=_0x1236eb['nextSibling'];for(;_0x183bca&&_0x183bca['getAttribute']('listIndent')>_0x1236eb['getAttribute']('listIndent');)_0x4348c0['add'](_0x183bca),_0x183bca=_0x183bca['nextSibling'];}return Array['from'](_0x4348c0);}(_0x513e9c));});};}_0x52275e['enableCommand']('numberedList',_0x463901('numberedList')),_0x52275e['enableCommand']('bulletedList',_0x463901('bulletedList')),_0x4a8629&&_0x52275e['enableCommand']('todoList',_0x463901('todoList')),_0x52275e['enableCommand']('indentList',_0x26c63d('indentList')),_0x52275e['enableCommand']('outdentList',_0x26c63d('outdentList')),_0x4a8629&&_0x52275e['enableCommand']('checkTodoList',()=>{const _0x2b0f0d=_0x4638a9['commands']['get']('checkTodoList'),_0x7f5254=Array['from'](_0x2b0f0d['_selectedElements']);_0x7f5254['filter'](_0x72ce8a=>_0x72ce8a['getAttribute']('todoListChecked')!=_0x2b0f0d['value']),_0x4638a9['model']['change'](()=>{for(const _0x33aa62 of _0x7f5254)_0x52275e['markBlockFormat'](_0x33aa62,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b0f0d['value']}]});});}),_0x52275e['descriptionFactory']['registerElementLabel']('listItem',_0x3a9afe=>o(_0x37b9f5,'ELEMENT_LIST_ITEM',_0x3a9afe)),_0x52275e['descriptionFactory']['registerDescriptionCallback'](_0xef2d04=>{if('formatBlock'!=_0xef2d04['type']&&'formatInline'!=_0xef2d04['type'])return;const {data:_0xf3ebf3}=_0xef2d04;if(_0xf3ebf3){if('numberedList'==_0xf3ebf3['commandName']||'bulletedList'==_0xf3ebf3['commandName']||'todoList'==_0xf3ebf3['commandName'])switch(_0xf3ebf3['commandName']['replace']('List','')){case'bulleted':return _0x1cc300(o(_0x37b9f5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cc300(o(_0x37b9f5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cc300(o(_0x37b9f5,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf3ebf3['commandName'])return{'type':'format','content':o(_0x37b9f5,'*Indent:*\x20%0',o(_0x37b9f5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf3ebf3['commandName'])return{'type':'format','content':o(_0x37b9f5,'*Outdent:*\x20%0',o(_0x37b9f5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf3ebf3['commandName'])return _0xf3ebf3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37b9f5,'*Check\x20item*')}:{'type':'format','content':o(_0x37b9f5,'*Uncheck\x20item*')};}function _0x1cc300(_0x31604b){return{'type':'format','content':o(_0x37b9f5,'*Change\x20to:*\x20%0',_0x31604b)};}});}}function fe(_0x2b8a25){const _0x57eda7=_0x2b8a25['getAttribute']('listIndent');if(0x0==_0x57eda7)return _0x2b8a25;let _0x382239=_0x2b8a25;for(;_0x2b8a25['previousSibling']&&_0x2b8a25['previousSibling']['is']('element','listItem');){const _0x32df4a=_0x2b8a25['previousSibling']['getAttribute']('listIndent');if(_0x32df4a==_0x57eda7)_0x382239=_0x2b8a25['previousSibling'];else{if(_0x32df4a<_0x57eda7)break;}_0x2b8a25=_0x2b8a25['previousSibling'];}return _0x382239;}function ue(_0x406c94){const _0x194de3=[];if(_0x406c94['is']('element','listItem')&&_0x406c94['getAttribute']('listIndent')>0x0){let _0x4d6d39=_0x406c94['nextSibling'];for(;_0x4d6d39&&'listItem'==_0x4d6d39['name']&&_0x4d6d39['getAttribute']('listIndent')==_0x406c94['getAttribute']('listIndent');)_0x194de3['push'](_0x4d6d39),_0x4d6d39=_0x4d6d39['nextSibling'];}return _0x194de3;}class W extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c710f=this['editor']['config']['get']('list.properties'),_0x7d6802=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c710f['styles']&&_0x7d6802['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c710f['reversed']&&_0x7d6802['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c710f['startIndex']&&_0x7d6802['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x7d6802['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x530050,_0x5972bf={}){const _0x304f2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ffc3b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x304f2d['markMultiRangeBlockFormat'](_0x1ffc3b,{'commandName':'listStyle','commandParams':[{'type':_0x5972bf['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2acb43,_0x5667ee={}){const _0x882d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b72db=this['_getSuggestionBlocks'](_0x4db576=>_0x4db576['is']('element','listItem')&&'numbered'===_0x4db576['getAttribute']('listType'));if(_0x2b72db['length']<0x1)return;const _0x5d3a16=_0x2b72db['map'](_0x59a143=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59a143,'before'),this['editor']['model']['createPositionAt'](_0x59a143,0x0)));this['editor']['model']['change'](()=>{_0x882d7['markMultiRangeBlockFormat'](_0x5d3a16,{'commandName':'listReversed','commandParams':[{'reversed':_0x5667ee['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3a456b,_0x396594={}){const _0x4429b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b4eb=this['_getSuggestionBlocks'](_0x1dc052=>_0x1dc052['is']('element','listItem')&&'numbered'===_0x1dc052['getAttribute']('listType'));if(_0x51b4eb['length']<0x1)return;const _0x353810=_0x51b4eb['map'](_0x25a2b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25a2b6,'before'),this['editor']['model']['createPositionAt'](_0x25a2b6,0x0)));this['editor']['model']['change'](()=>{_0x4429b7['markMultiRangeBlockFormat'](_0x353810,{'commandName':'listStart','commandParams':[{'startIndex':_0x396594['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3f34c7){if('formatBlock'!=_0x3f34c7['type']&&'formatInline'!=_0x3f34c7['type'])return;const _0x1ffefb=this['editor']['locale'],{data:_0x2dd3e5}=_0x3f34c7;if(!_0x2dd3e5)return;let _0x1f961c,_0x1d5456;switch(_0x2dd3e5['commandName']){case'listStyle':_0x1f961c='*Change\x20to:*\x20%0',_0x1d5456={'type':'format','content':o(_0x1ffefb,_0x1f961c,o(_0x1ffefb,this['_getTranslationKeyForListStyle'](_0x2dd3e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f961c=_0x2dd3e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d5456={'type':'format','content':o(_0x1ffefb,_0x1f961c)};break;case'listStart':_0x1f961c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d5456={'type':'format','content':o(_0x1ffefb,_0x1f961c,_0x2dd3e5['commandParams'][0x0]['startIndex'])};}return _0x1d5456;}['_getSuggestionBlocksForListStyle'](){const _0x33cd80=this['editor']['plugins']['get']('LegacyListUtils');let _0x58c7c9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x58c7c9[0x0]?.['is']('element','listItem')&&_0x58c7c9['unshift'](..._0x33cd80['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x58c7c9[_0x58c7c9['length']-0x1]?.['is']('element','listItem')&&_0x58c7c9['push'](..._0x33cd80['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x58c7c9=[...new Set(_0x58c7c9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x58c7c9=_0x58c7c9['filter'](_0x42c379=>_0x42c379['is']('element','listItem'))),_0x58c7c9;}['_getSuggestionBlocks'](_0x5195b0){const _0x26a0ba=this['editor']['plugins']['get']('LegacyListUtils');let _0xdaf7ec=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5195b0)['map'](_0x128d86=>{const _0x312f0b=this['editor']['model']['createPositionAt'](_0x128d86,0x0);return[..._0x26a0ba['getSiblingNodes'](_0x312f0b,'backward'),..._0x26a0ba['getSiblingNodes'](_0x312f0b,'forward')];})['flat']();return _0xdaf7ec=[...new Set(_0xdaf7ec)],_0xdaf7ec;}['_getTranslationKeyForListStyle'](_0x2df108){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2df108)||'default')['toUpperCase']()+'_LIST_'+_0x2df108['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x310a20{['afterInit'](){const _0xf06083=this['editor'];if(!_0xf06083['plugins']['has']('MediaEmbedEditing'))return;const _0x163db7=_0xf06083['plugins']['get']('TrackChangesEditing'),_0x49d2d6=_0xf06083['locale'];_0x163db7['enableCommand']('mediaEmbed'),_0x163db7['descriptionFactory']['registerElementLabel']('media',_0x17a7e6=>o(_0x49d2d6,'ELEMENT_MEDIA',_0x17a7e6)),_0xf06083['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2683b0,{writer:_0x1d476b,options:_0x249c5d})=>{if(_0x249c5d['showSuggestionHighlights'])return _0x1d476b['createEmptyElement']('div');},'converterPriority':'high'}),_0xf06083['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4ed951,_0x3593ae,_0x56a9f1)=>{_0x56a9f1['options']['showSuggestionHighlights']&&_0x4ed951['stop']();},{'priority':'high'});}}class mt extends _0x310a20{['afterInit'](){const _0x5f1c37=this['editor'];_0x5f1c37['plugins']['has']('MentionEditing')&&_0x5f1c37['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x310a20{['afterInit'](){const _0x4cbe6e=this['editor'];if(!_0x4cbe6e['plugins']['has']('MergeFieldsEditing'))return;_0x4cbe6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x4cbe6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2d3d1d=_0x4cbe6e['plugins']['get']('TrackChangesEditing'),_0x1f1ca8=_0x4cbe6e['locale'];_0x2d3d1d['descriptionFactory']['registerElementLabel']('mergeField',_0x2cf363=>o(_0x1f1ca8,'ELEMENT_MERGE_FIELD',_0x2cf363)),_0x2d3d1d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1a5745=>o(_0x1f1ca8,'ELEMENT_MERGE_FIELD',_0x1a5745)),_0x2d3d1d['descriptionFactory']['registerDescriptionCallback'](_0x3b816e=>{if('insertion'!=_0x3b816e['type']&&'deletion'!=_0x3b816e['type'])return;const _0x3989f9=_0x3b816e['getContainedElement']();if(null==_0x3989f9)return;if(!_0x3989f9['is']('element','mergeField')&&!_0x3989f9['is']('element','mergeFieldBlock'))return;const _0x4a2c1a=_0x4cbe6e['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3989f9['getAttribute']('id'));return'insertion'==_0x3b816e['type']?{'type':'insertion','content':o(_0x1f1ca8,'*Insert:*\x20%0','\x22'+_0x4a2c1a+'\x22\x20'+o(_0x1f1ca8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1f1ca8,'*Remove:*\x20%0','\x22'+_0x4a2c1a+'\x22\x20'+o(_0x1f1ca8,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x310a20{['afterInit'](){const _0x9b1b4a=this['editor'],_0x46fe58=_0x9b1b4a['plugins']['get']('TrackChangesEditing');_0x9b1b4a['plugins']['has']('MultiLevelList')&&(_0x46fe58['enableDefaultAttributesIntegration']('multiLevelList'),_0x46fe58['registerBlockAttribute']('listMarkerStyle'),_0x46fe58['descriptionFactory']['registerDescriptionCallback'](_0x114211=>this['handleDescriptions'](_0x114211)));}['handleDescriptions'](_0x20dd46){const _0x5b2e5c=this['editor']['locale'],{data:_0x562015}=_0x20dd46,_0x41f3bf={'type':'format','content':''};if(_0x562015&&'listMarkerStyle'==_0x562015['key']){if(!_0x562015['oldValue'])return{'type':'format','content':o(_0x5b2e5c,'*Set\x20format:*\x20%0',o(_0x5b2e5c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x562015['newValue']+')'};if(!_0x562015['newValue']){let _0x3a7c3a=_0x20dd46['head'];for(;_0x3a7c3a;){if(_0x3a7c3a['data']&&'listType'==_0x3a7c3a['data']['key']&&_0x3a7c3a['data']['newValue'])return _0x41f3bf;_0x3a7c3a=_0x3a7c3a['next'];}return{'type':'format','content':o(_0x5b2e5c,'*Remove\x20format:*\x20%0',o(_0x5b2e5c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x562015['oldValue']+')'};}}}}class kt extends _0x310a20{['afterInit'](){const _0x856132=this['editor'];if(!_0x856132['plugins']['has']('PageBreakEditing'))return;_0x856132['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x31030f=_0x856132['plugins']['get']('TrackChangesEditing'),_0x478718=_0x856132['locale'];_0x31030f['descriptionFactory']['registerElementLabel']('pageBreak',_0x1abf31=>o(_0x478718,'ELEMENT_PAGE_BREAK',_0x1abf31));}}class bt extends _0x310a20{['afterInit'](){const _0xc47f55=this['editor'];if(!_0xc47f55['plugins']['has']('Paragraph'))return;const _0x2a2bd6=_0xc47f55['locale'],_0x1bb066=_0xc47f55['plugins']['get']('TrackChangesEditing');_0x1bb066['descriptionFactory']['registerElementLabel']('paragraph',_0x286cc0=>o(_0x2a2bd6,'ELEMENT_PARAGRAPH',_0x286cc0)),_0x1bb066['enableDefaultAttributesIntegration']('paragraph'),_0x1bb066['enableCommand']('insertParagraph'),_0xc47f55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc47f55),{'priority':'highest'}),_0xc47f55['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21654d,_0x34ded2,_0x10a22b)=>{_0x10a22b['options']['showSuggestionHighlights']&&nr(_0xc47f55,{'showActiveMarker':!0x1})(_0x21654d,_0x34ded2,_0x10a22b);},{'priority':'highest'});const _0x41875f=_0x1bb066['descriptionFactory'];_0x41875f['registerDescriptionCallback'](_0x5685b7=>{if('insertion'!==_0x5685b7['type'])return;const {start:_0x2caf04,end:_0x50d0f9}=_0x5685b7['getFirstRange']();if(!_0x2caf04['isTouching'](_0x50d0f9)||!_0x2caf04['nodeAfter'])return;const _0x284cc6=_0xc47f55['model']['schema'],_0x5bfce1=_0x2caf04['nodeAfter'];return _0x284cc6['isBlock'](_0x5bfce1)&&!_0x284cc6['isLimit'](_0x5bfce1)&&_0x284cc6['checkChild'](_0x5bfce1,'$text')?{'type':'insertion','content':o(_0x2a2bd6,'*Insert:*\x20%0',_0x41875f['getItemLabel'](_0x5bfce1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e89ad=this['editor'],_0x3b6c95=_0x4e89ad['locale'];_0x4e89ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd7017a=>{if('formatBlock'!=_0xd7017a['type'])return;const {data:_0x22567d}=_0xd7017a;return _0x22567d&&'paragraph'==_0x22567d['commandName']?{'type':'format','content':o(_0x3b6c95,'*Change\x20to:*\x20%0',o(_0x3b6c95,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x322bcb,{showActiveMarker:_0x1ff414=!0x0}={}){return(_0x123ea7,_0x2e0932,_0x5efaa2)=>{const _0x11b983=_0x322bcb['plugins']['get']('TrackChangesEditing'),_0x76ae04=_0x2e0932['markerRange']['start'],_0x3e6748=_0x2e0932['markerRange']['end'],_0x1bcde9=_0x322bcb['model']['schema'];if(!_0x76ae04['isTouching'](_0x3e6748)||!_0x76ae04['nodeAfter'])return;const _0x1d1981=_0x76ae04['nodeAfter'];if(_0x1bcde9['isBlock'](_0x1d1981)&&!_0x1bcde9['isLimit'](_0x1d1981)&&_0x1bcde9['checkChild'](_0x1d1981,'$text')){if(!_0x5efaa2['consumable']['consume'](_0x2e0932['markerRange'],_0x123ea7['name']))return;const {authorId:_0x572120}=_0x11b983['_splitMarkerName'](_0x2e0932['markerName']),_0x151c51=_0x5efaa2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x572120}),_0x1661dd=_0x5efaa2['mapper']['toViewPosition'](_0x3e6748);_0x1ff414&&_0x11b983['activeMarkers']['includes'](_0x2e0932['markerName'])&&_0x5efaa2['writer']['addClass']('ck-suggestion-marker--active',_0x151c51),_0x5efaa2['writer']['insert'](_0x1661dd,_0x151c51),_0x5efaa2['mapper']['bindElementToMarker'](_0x151c51,_0x2e0932['markerName']);}};}class wt extends _0x310a20{['afterInit'](){const _0x3b1812=this['editor'];if(!_0x3b1812['plugins']['has']('RemoveFormatEditing'))return;_0x3b1812['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272c2a=this['editor'];_0x272c2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cafbc=>{if('formatBlock'!=_0x3cafbc['type']&&'formatInline'!=_0x3cafbc['type'])return;const {data:_0x15277a}=_0x3cafbc;return _0x15277a&&'removeFormat'==_0x15277a['commandName']?{'type':'format','content':o(_0x272c2a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x310a20{['afterInit'](){const _0x329dee=this['editor'];if(!_0x329dee['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27d8f3=_0x329dee['plugins']['get']('TrackChangesEditing');_0x27d8f3['enableCommand']('goToPreviousRestrictedEditingException'),_0x27d8f3['enableCommand']('goToNextRestrictedEditingException');const _0x1e5fc7=_0x329dee['plugins']['get']('RestrictedEditingModeEditing');_0x1e5fc7['enableCommand']('trackChanges'),_0x1e5fc7['enableCommand']('acceptSuggestion'),_0x1e5fc7['enableCommand']('discardSuggestion'),_0x1e5fc7['enableCommand']('acceptAllSuggestions'),_0x1e5fc7['enableCommand']('discardAllSuggestions'),_0x1e5fc7['enableCommand']('acceptSelectedSuggestions'),_0x1e5fc7['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x310a20{static get['requires'](){return[_0x16a1d4];}['init'](){const _0x178997=this['editor'],_0x5f199f=_0x178997['plugins']['get']('TrackChangesEditing');_0x5f199f['enableCommand']('shiftEnter'),_0x178997['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x178997),{'priority':'high'}),_0x178997['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x178997),{'priority':'high'}),_0x178997['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3632b7,_0x25fd23,_0xf30747)=>{_0xf30747['options']['showSuggestionHighlights']&&ge(_0x178997,{'showActiveMarker':!0x1})(_0x3632b7,_0x25fd23,_0xf30747);}),_0x5f199f['descriptionFactory']['registerElementLabel']('softBreak',_0x32c728=>o(_0x178997['locale'],'ELEMENT_LINE_BREAK',_0x32c728));}}function ge(_0x2b96c4,{showActiveMarker:_0x19a0e9=!0x0}={}){return(_0x54a172,_0x1ca03a,_0x3760d9)=>{const _0x502927=_0x2b96c4['plugins']['get']('TrackChangesEditing');if(!_0x3760d9['consumable']['test'](_0x1ca03a['markerRange'],_0x54a172['name']))return;const _0x2ffbb8=_0x2b96c4['model'];for(const _0x48744d of _0x1ca03a['markerRange']['getItems']()){if(!_0x48744d['is']('element','softBreak'))continue;const _0x3efb5a='deletion'==_0x1ca03a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x591417}=_0x502927['_splitMarkerName'](_0x1ca03a['markerName']),_0x3dc0dd=_0x3760d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3efb5a,'data-author-id':_0x591417}),_0x102249=_0x3760d9['mapper']['toViewPosition'](_0x2ffbb8['createPositionBefore'](_0x48744d));_0x19a0e9&&_0x502927['activeMarkers']['includes'](_0x1ca03a['markerName'])&&_0x3760d9['writer']['addClass']('ck-suggestion-marker--active',_0x3dc0dd),_0x3760d9['writer']['insert'](_0x102249,_0x3dc0dd),_0x3760d9['mapper']['bindElementToMarker'](_0x3dc0dd,_0x1ca03a['markerName']);}};}class St extends _0x310a20{['afterInit'](){const _0x62b4b3=this['editor'],_0x245599=_0x62b4b3['model'],_0x180a8c=_0x62b4b3['locale'];if(!_0x62b4b3['plugins']['has']('StandardEditingModeEditing'))return;const _0x234058=_0x62b4b3['plugins']['get']('TrackChangesEditing'),_0x5ca628='restrictedEditingException',_0x33c5a9=_0x62b4b3['commands']['get'](_0x5ca628);_0x234058['enableCommand'](_0x5ca628,(_0x25fe1f,_0xf8272a={})=>{const _0x251de8=_0x245599['document']['selection'];if(_0x251de8['isCollapsed'])return void _0x25fe1f(_0xf8272a);const _0x34ead4=void 0x0!==_0xf8272a['forceValue']?_0xf8272a['forceValue']:!_0x33c5a9['value'];_0x245599['change'](()=>{const _0x93e12b=Array['from'](_0x251de8['getRanges']());for(const _0x1fde2c of _0x93e12b){const _0x553036=_0x34ead4?[_0x1fde2c]:io(_0x5ca628,_0x1fde2c,_0x245599);for(const _0x592468 of _0x553036)_0x234058['markInlineFormat'](_0x592468,{'commandName':_0x5ca628,'commandParams':[{'forceValue':_0x34ead4}]});}});}),_0x234058['descriptionFactory']['registerDescriptionCallback'](_0x7c4dba=>{if('formatBlock'!=_0x7c4dba['type']&&'formatInline'!=_0x7c4dba['type'])return;const {data:_0x3c4ed6}=_0x7c4dba;return _0x3c4ed6&&_0x3c4ed6['commandName']==_0x5ca628?_0x3c4ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x180a8c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x180a8c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x310a20{['afterInit'](){const _0x4aded8=this['editor'];if(!_0x4aded8['plugins']['has']('Style')||!_0x4aded8['plugins']['has']('DataSchema'))return;const _0x1e0fe3=_0x4aded8['plugins']['get']('TrackChangesEditing'),_0x2fc79e=_0x4aded8['locale'],_0x40d206=_0x4aded8['config']['get']('style')||{},_0x57059d=_0x4aded8['plugins']['get']('GeneralHtmlSupport'),_0x15ae5a=_0x4aded8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4aded8['plugins']['get']('DataSchema'),_0x40d206['definitions']);_0x1e0fe3['enableDefaultAttributesIntegration']('style');const _0x15f17b=new Set();for(const _0x594c66 of _0x15ae5a['block']){const _0x3d4fea=_0x57059d['getGhsAttributeNameForElement'](_0x594c66['element']);_0x15f17b['add'](_0x3d4fea);}const _0x5cea93=new Set();for(const _0x5a78be of _0x15ae5a['inline']){const _0x32fb38=_0x57059d['getGhsAttributeNameForElement'](_0x5a78be['element']);_0x5cea93['add'](_0x32fb38);for(const _0x280517 of _0x5a78be['ghsAttributes'])_0x5cea93['add'](_0x280517);}for(const _0x3e5b63 of _0x15f17b)_0x1e0fe3['registerBlockAttribute'](_0x3e5b63),_0x1e0fe3['descriptionFactory']['registerAttributeLabel'](_0x3e5b63,o(_0x2fc79e,'FORMAT_STYLE'));for(const _0x51f571 of _0x5cea93)_0x1e0fe3['registerInlineAttribute'](_0x51f571),_0x1e0fe3['descriptionFactory']['registerAttributeLabel'](_0x51f571,o(_0x2fc79e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2efde3=this['editor'],_0x517c7c=_0x2efde3['locale'];_0x2efde3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28e4f7=>{if('formatBlock'!=_0x28e4f7['type']&&'formatInline'!=_0x28e4f7['type'])return;const {data:_0x480745}=_0x28e4f7;return _0x480745&&'style'===_0x480745['commandName']?_0x480745['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x517c7c,'*Set\x20format:*\x20%0',_0x480745['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x517c7c,'*Remove\x20format:*\x20%0',_0x480745['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x310a20{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x944561){super(_0x944561),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41a7af=this['editor'],_0x230535=_0x41a7af['model']['document']['selection'];if(!_0x41a7af['plugins']['has']('TableEditing'))return;const _0x448ba3=_0x41a7af['locale'],_0xf01999=_0x41a7af['plugins']['get']('TrackChangesEditing'),_0x3fd901=_0x41a7af['plugins']['get']('TableUtils');_0xf01999['descriptionFactory']['registerElementLabel']('table',_0x569ab6=>o(_0x448ba3,'ELEMENT_TABLE',_0x569ab6)),this['_setupColumnsRowsFixing'](),_0xf01999['enableCommand']('insertTable'),_0xf01999['enableCommand']('selectTableRow'),_0xf01999['enableCommand']('selectTableColumn');for(const _0x2d29c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x5a3865=_0x41a7af['commands']['get'](_0x2d29c5);_0xf01999['enableCommand'](_0x2d29c5,_0x3133a1=>{_0x41a7af['model']['change'](_0x42a618=>{_0x3133a1();const _0x49b16a='above'===_0x5a3865['order'],_0x226c38=_0x3fd901['getSelectionAffectedTableCells'](_0x230535),_0xd272a0=_0x3fd901['getRowIndexes'](_0x226c38),_0xdaa473=_0x49b16a?_0xd272a0['first']-0x1:_0xd272a0['last']+0x1,_0x572071=_0x226c38[0x0]['findAncestor']('table'),_0x4facc0=_0x3fd901['createTableWalker'](_0x572071,{'startRow':_0xdaa473,'endRow':_0xdaa473}),_0x16bf43=Array['from'](_0x4facc0)['map'](_0x1425a1=>_0x42a618['createRangeOn'](_0x1425a1['cell']));_0xf01999['markMultiRangeInsertion'](_0x16bf43,'tableRow');});});}for(const _0x1908e5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x59af81=_0x41a7af['commands']['get'](_0x1908e5);_0xf01999['enableCommand'](_0x1908e5,_0x52505f=>{_0x41a7af['model']['change'](_0xb76807=>{_0x52505f();const _0x2be837='left'===_0x59af81['order'],_0x2daff9=_0x3fd901['getSelectionAffectedTableCells'](_0x230535),_0x35787b=_0x3fd901['getColumnIndexes'](_0x2daff9),_0x46eeef=_0x2be837?_0x35787b['first']-0x1:_0x35787b['last']+0x1,_0x4f601b=_0x2daff9[0x0]['findAncestor']('table'),_0x38c920=_0x3fd901['createTableWalker'](_0x4f601b,{'startRow':0x0,'column':_0x46eeef,'includeAllSlots':!0x1}),_0x56c0ae=Array['from'](_0x38c920)['map'](_0x55c602=>_0xb76807['createRangeOn'](_0x55c602['cell']));_0xf01999['markMultiRangeInsertion'](_0x56c0ae,'tableColumn');});});}for(const _0x346460 of['removeTableRow','removeTableColumn']){const _0x191846=_0x346460['substr'](0xb),_0x2667bf=_0x191846['toLowerCase'](),_0x472ca4=_0x2667bf['substr'](0x0,0x3)+'span',_0x3d2d79='table'+_0x191846,_0x57227='min'+_0x191846,_0x5ae5c3='max'+_0x191846;_0xf01999['enableCommand'](_0x346460,()=>{_0x41a7af['model']['change'](_0x5a358d=>{const _0x57685c=_0x3fd901['getSelectionAffectedTableCells'](_0x230535),_0x12fa9e=_0x57685c[0x0]['findAncestor']('table');let _0x3e47f1;if('removeTableRow'==_0x346460){const _0x23a726=_0x3fd901['getRowIndexes'](_0x57685c);_0x3e47f1={'startRow':_0x23a726['first'],'endRow':_0x23a726['last'],'includeAllSlots':!0x0};}else{const _0x3bf885=_0x3fd901['getColumnIndexes'](_0x57685c);_0x3e47f1={'startColumn':_0x3bf885['first'],'endColumn':_0x3bf885['last'],'includeAllSlots':!0x0};}const _0x1c9a94=_0x3fd901['createTableWalker'](_0x12fa9e,_0x3e47f1),_0x29c428=Array['from'](_0x1c9a94)['map'](({cell:_0x2f4dd6})=>_0x2f4dd6),_0x29244c=be(_0x29c428['filter'](_0x3673f2=>_0x3673f2['hasAttribute'](_0x472ca4))),_0x356d31=be(_0x29c428['filter'](_0x1ddd7a=>!_0x1ddd7a['hasAttribute'](_0x472ca4)))['map'](_0x431496=>_0x5a358d['createRangeOn'](_0x431496)),_0x3dc602=_0xf01999['markMultiRangeDeletion'](_0x356d31,_0x3d2d79);if(_0x3dc602&&('tableRow'==_0x3dc602['subType']||'tableColumn'==_0x3dc602['subType'])){const _0x7079cf=this['_getSuggestionCoords'](_0x3dc602);for(const _0x23a2da of _0x29244c){const _0x36886f=_0x5a358d['createRangeOn'](_0x23a2da),_0x434111=_0x3fd901['getCellLocation'](_0x23a2da),_0x56e631=_0x23a2da['getAttribute'](_0x472ca4)-0x1,_0x389119=_0x7079cf[_0x57227],_0x159d92=_0x7079cf[_0x5ae5c3];_0x389119<=_0x434111[_0x2667bf]&&_0x434111[_0x2667bf]+_0x56e631<=_0x159d92&&_0x3dc602['addRange'](_0x36886f);}}});});}function _0x1e1b28(_0x494758){const _0x41c801=Array['from'](_0x230535['getRanges']())['map'](_0xcfe707=>_0xfd736c['fromRange'](_0xcfe707));_0x41a7af['model']['change'](_0x4c0191=>{const _0x344af3=_0x4c0191['batch'];_0x494758=_0x494758['filter'](_0x4789c2=>'$graveyard'!=_0x4789c2['root']['rootName']),_0x4c0191['setSelection'](_0x494758),_0x41a7af['commands']['get']('removeTableRow')['refresh'](),_0x41a7af['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41a7af['model']['enqueueChange'](()=>{_0x41a7af['model']['enqueueChange'](_0x344af3,_0x197cf7=>{const _0xaebe8e=_0x41c801['filter'](_0x48e49a=>'$graveyard'!=_0x48e49a['root']['rootName']);_0xaebe8e['length']>0x0&&_0x197cf7['setSelection'](_0xaebe8e);for(const _0xe6afff of _0x41c801)_0xe6afff['detach']();});});});}function _0x17fdc1(_0x4f1272){_0x41a7af['model']['change'](_0xbb71c=>{const _0x317efd=Array['from'](_0x230535['getRanges']())['map'](_0x51ba9f=>_0xfd736c['fromRange'](_0x51ba9f)),_0x30fc4c=[];for(const _0x2254e1 of _0x4f1272)for(const _0x46781a of _0x2254e1['getItems']({'shallow':!0x0}))_0x30fc4c['push'](_0x46781a);for(const _0x4ec867 of _0x30fc4c)'$graveyard'!=_0x4ec867['root']['rootName']&&(_0xbb71c['setSelection'](_0xbb71c['createPositionAt'](_0x4ec867,0x0)),_0x41a7af['commands']['get']('removeTableColumn')['refresh'](),_0x41a7af['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x198f67=_0x317efd['filter'](_0x31fe82=>'$graveyard'!=_0x31fe82['root']['rootName']);_0x198f67['length']>0x0&&_0xbb71c['setSelection'](_0x198f67);for(const _0x31e368 of _0x317efd)_0x31e368['detach']();});}function _0x2cff33(_0x9fcf05,_0x52205d){return _0x52205d['every'](_0x4701a7=>_0x9fcf05['some'](_0x32f576=>_0x32f576['end']['isEqual'](_0x4701a7['start'])||_0x4701a7['end']['isEqual'](_0x32f576['start'])));}function _0x4627cf(_0x213f37,_0x616f2b){return!_0x213f37['some'](_0x366841=>_0x616f2b['some'](_0x22b0c5=>_0x366841['isIntersecting'](_0x22b0c5)))&&_0x213f37['some'](_0x13e913=>_0x616f2b['some'](_0x201d85=>_0x13e913['end']['isTouching'](_0x201d85['start'])));}_0x41a7af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e9e08,_0x159e34,_0x14f5f3)=>{if(!_0x14f5f3['options']['showSuggestionHighlights'])return;const _0x2a6150=_0x159e34['item'];if(!_0x2a6150)return;const _0x7117a5=_0x14f5f3['mapper']['toViewElement'](_0x2a6150);function _0x76325a(_0x272b2d){return Array['isArray'](_0x272b2d)?_0x272b2d:[_0x272b2d];}_0x7117a5&&'tableCell'===_0x2a6150['name']&&_0x27f9f8(_0x7117a5,_0x14f5f3['writer'],(_0x5ce61d,_0x250ed0,_0x477f81)=>_0x477f81['addClass'](_0x76325a(_0x250ed0['classes']),_0x5ce61d),(_0xd7502,_0x2e7c96,_0x27157e)=>_0x27157e['removeClass'](_0x76325a(_0x2e7c96['classes']),_0xd7502));},{'priority':'highest'}),_0xf01999['descriptionFactory']['registerDescriptionCallback'](_0x1931fc=>{if('insertion'!=_0x1931fc['type']&&'deletion'!=_0x1931fc['type'])return;const _0x41774d=_0x1931fc['getContainedElement']();if(null!=_0x41774d&&_0x41774d['is']('element','table')){if('insertion'==_0x1931fc['type']){const _0x1966e0=_0x1931fc['getItems']()['filter'](_0x43f692=>_0x43f692['is']('$textProxy'))['map'](_0x14e1ee=>_0x14e1ee['data']);if(_0x1966e0['length'])return{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1966e0['join']('\x20')+'\x22'))};}if('deletion'==_0x1931fc['type']){const _0xe4f7e6=_0x1931fc['getItems']()['filter'](_0x7a35f=>_0x7a35f['is']('$textProxy'))['map'](_0xa59491=>_0xa59491['data']);if(_0xe4f7e6['length'])return{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe4f7e6['join']('\x20')+'\x22'))};}}}),_0xf01999['descriptionFactory']['registerDescriptionCallback'](_0xb6593d=>{if('tableRow'==_0xb6593d['subType']){const _0x187748=_0xb6593d['getItems']()['filter'](_0x3806cd=>_0x3806cd['is']('$textProxy'))['map'](_0x2b2fb1=>_0x2b2fb1['data']),_0x3a6788=this['_getSuggestionCoords'](_0xb6593d),_0x32c29b=_0x3a6788['maxRow']-_0x3a6788['minRow']+0x1;if('insertion'==_0xb6593d['type'])return _0x187748['length']?{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c29b,'\x22'+_0x187748['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW',_0x32c29b))};if('deletion'==_0xb6593d['type'])return _0x187748['length']?{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c29b,'\x22'+_0x187748['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_ROW',_0x32c29b))};}if('tableColumn'==_0xb6593d['subType']){const _0x3c3d39=_0xb6593d['getItems']()['filter'](_0x545f22=>_0x545f22['is']('$textProxy'))['map'](_0x4df9f1=>_0x4df9f1['data']),_0x46bf66=this['_getSuggestionCoords'](_0xb6593d),_0x139d3e=_0x46bf66['maxColumn']-_0x46bf66['minColumn']+0x1;if('insertion'==_0xb6593d['type'])return _0x3c3d39['length']?{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x139d3e,'\x22'+_0x3c3d39['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x448ba3,'*Insert:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN',_0x139d3e))};if('deletion'==_0xb6593d['type'])return _0x3c3d39['length']?{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x139d3e,'\x22'+_0x3c3d39['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x448ba3,'*Remove:*\x20%0',o(_0x448ba3,'ELEMENT_TABLE_COLUMN',_0x139d3e))};}}),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e1b28),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e1b28),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x17fdc1),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x17fdc1),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2cff33),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2cff33),_0xf01999['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4627cf),_0xf01999['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4627cf);}['_acceptFormatSuggestionCallbackFactory'](){const _0x176d92=this['editor'],_0x531e6d=_0x176d92['model']['document']['selection'];return(_0xcc5bfd,_0x54ebfa)=>{_0x176d92['model']['change'](_0x2930c0=>{const {commandName:_0x10e9c2,commandParams:_0x2a812f}=_0x54ebfa;let _0x1c1696=_0xcc5bfd[0x0]['end']['nodeBefore'];_0x2a812f&&_0x2a812f[0x0]&&!0x1===_0x2a812f[0x0]['forceValue']&&(_0x1c1696=_0xcc5bfd[0x0]['start']['nodeAfter']);const _0x47c11a=_0x2930c0['createRangeIn'](_0x1c1696);if('$graveyard'==_0x47c11a['root']['rootName'])return;const _0x333bde=Array['from'](_0x531e6d['getRanges']())['map'](_0x1d9552=>_0xfd736c['fromRange'](_0x1d9552));_0x2930c0['setSelection'](_0x47c11a),_0x176d92['commands']['get'](_0x10e9c2)['refresh'](),_0x2a812f['push']({'forceDefaultExecution':!0x0}),_0x176d92['execute'](_0x10e9c2,..._0x2a812f);const _0x4a73b0=_0x333bde['filter'](_0x254b30=>'$graveyard'!=_0x254b30['root']['rootName']);_0x4a73b0['length']>0x0&&_0x2930c0['setSelection'](_0x4a73b0);for(const _0x558173 of _0x333bde)_0x558173['detach']();});};}['_getCoordsForCells'](_0x327edb){const _0x55b1d6=this['editor']['plugins']['get']('TableUtils');let _0x4a8ea9=Number['MAX_SAFE_INTEGER'],_0x57fd11=Number['MIN_SAFE_INTEGER'],_0x5aa7ad=Number['MAX_SAFE_INTEGER'],_0x1afeab=Number['MIN_SAFE_INTEGER'];for(const _0x504e28 of _0x327edb){if('$graveyard'==_0x504e28['root']['rootName'])continue;const {row:_0x43055d,column:_0x45f8e5}=_0x55b1d6['getCellLocation'](_0x504e28),_0x2ee8db=_0x504e28['hasAttribute']('rowspan')?_0x504e28['getAttribute']('rowspan')-0x1:0x0,_0x332582=_0x504e28['hasAttribute']('colspan')?_0x504e28['getAttribute']('colspan')-0x1:0x0;_0x4a8ea9=_0x43055d<_0x4a8ea9?_0x43055d:_0x4a8ea9,_0x57fd11=_0x43055d+_0x2ee8db>_0x57fd11?_0x43055d+_0x2ee8db:_0x57fd11,_0x5aa7ad=_0x45f8e5<_0x5aa7ad?_0x45f8e5:_0x5aa7ad,_0x1afeab=_0x45f8e5+_0x332582>_0x1afeab?_0x45f8e5+_0x332582:_0x1afeab;}return{'minRow':_0x4a8ea9,'maxRow':_0x57fd11,'minColumn':_0x5aa7ad,'maxColumn':_0x1afeab};}['_setupColumnsRowsFixing'](){const _0x16244e=this['editor'],_0x414c61=_0x16244e['plugins']['get']('TrackChangesEditing'),_0x55bd49=_0x16244e['plugins']['get']('TableUtils');_0x16244e['model']['document']['on']('change:data',()=>{const _0x4ee4ef=Array['from'](_0x16244e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35831e,data:_0x4ab3db}of _0x4ee4ef){const {group:_0x2919da,id:_0x36d785,subType:_0x201bb9}=_0x414c61['_splitMarkerName'](_0x35831e);if('suggestion'!=_0x2919da)continue;if(null!=_0x4ab3db['oldRange'])continue;const _0x146acf=_0x414c61['getSuggestion'](_0x36d785);this['_tablePostFixingSubtypes']['includes'](_0x201bb9)&&this['_tableSuggestions']['add'](_0x146acf);}},{'priority':'low'});const _0x433433=(_0x2980ef,_0x522bda)=>{let _0x147949=!0x1;const _0x434f93=_0x522bda['createRangeOn'](_0x2980ef),_0x51e218=_0x2980ef['findAncestor']('table'),_0x2c70b6=_0x55bd49['getCellLocation'](_0x2980ef);for(const _0x2f5f9e of this['_tableSuggestions']){const _0x2c8432=_0x2f5f9e['subType'],_0x25d178=_0x2c8432['startsWith']('tablePaste'),_0x2ec180=_0x2c8432['substr'](_0x25d178?0xa:0x5),_0xd47fdf=_0x2ec180['toLowerCase'](),_0x2bb2af=_0xd47fdf['substr'](0x0,0x3)+'span',_0xe25830='min'+_0x2ec180,_0x1c493d='max'+_0x2ec180;if(!_0x2f5f9e['isInContent'])continue;if(_0x51e218!=_0x2f5f9e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2f5f9e['isIntersectingWithRange'](_0x434f93))continue;const _0x134db3=_0x2980ef['hasAttribute'](_0x2bb2af)?_0x2980ef['getAttribute'](_0x2bb2af)-0x1:0x0,_0x9005e=this['_getSuggestionCoords'](_0x2f5f9e),_0x2accfa=_0x9005e[_0xe25830],_0x46879d=_0x9005e[_0x1c493d];_0x2accfa<=_0x2c70b6[_0xd47fdf]&&_0x2c70b6[_0xd47fdf]+_0x134db3<=_0x46879d&&(_0x2f5f9e['addRange'](_0x434f93),_0x147949=!0x0);}return _0x147949;};_0x16244e['model']['document']['registerPostFixer'](_0x149ca9=>{let _0x169c7b=!0x1;for(const _0x16f542 of _0x16244e['model']['document']['differ']['getChanges']())if('insert'==_0x16f542['type']){if('tableRow'==_0x16f542['name']){for(const _0x16a6cc of _0x16f542['position']['nodeAfter']['getChildren']())_0x169c7b=_0x169c7b||_0x433433(_0x16a6cc,_0x149ca9);}else'tableCell'==_0x16f542['name']&&(_0x169c7b=_0x169c7b||_0x433433(_0x16f542['position']['nodeAfter'],_0x149ca9));}return _0x169c7b;});}['_getSuggestionCoords'](_0x5dbe82){return this['_getCoordsForCells'](_0x5dbe82['getRanges']()['map'](_0x343336=>_0x343336['start']['nodeAfter']));}}function be(_0x2dd03b){return Array['from'](new Set(_0x2dd03b)['values']());}class vt extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0x227324=this['editor'],_0xb317ba=_0x227324['model']['document']['selection'],_0x48a5ad=_0x227324['locale'];if(!_0x227324['plugins']['has']('TableEditing'))return;const _0x2b5957=_0x227324['plugins']['get']('TrackChangesEditing'),_0x3b883b=_0x227324['plugins']['get']('TableUtils'),_0x5ce641=_0x227324['plugins']['get'](It);_0x5ce641['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2b5957['enableCommand']('mergeTableCells',()=>{const _0x2e6b7c=_0x3b883b['getSelectionAffectedTableCells'](_0x227324['model']['document']['selection']);_0x227324['model']['change'](()=>{_0x2b5957['markMultiRangeBlockFormat'](_0x2e6b7c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x227324['commands']['get']('mergeTableCells')['on']('execute',(_0x38178a,_0x437328)=>{_0x227324['commands']['get']('trackChanges')['value']&&(_0x437328['length']>0x0&&_0x437328[_0x437328['length']-0x1]&&_0x437328[_0x437328['length']-0x1]['forceDefaultExecution']||_0x2b5957['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x38178a['stop']());},{'priority':'highest'});for(const _0x12a89a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xfe6d54=_0x227324['commands']['get'](_0x12a89a);_0x2b5957['enableCommand'](_0x12a89a,()=>{const _0x7b11b7=_0x227324['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15d530=>_0x15d530['is']('element','tableCell')),_0x3af69d=_0xfe6d54['value'];_0x227324['model']['change'](()=>{_0x2b5957['markMultiRangeBlockFormat']([_0x7b11b7,_0x3af69d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xa48e54 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d1952=_0x227324['commands']['get'](_0xa48e54);_0x2b5957['enableCommand'](_0xa48e54,()=>{const _0x29ef16=_0x3b883b['getSelectionAffectedTableCells'](_0x227324['model']['document']['selection'])[0x0],_0x199af3=_0x29ef16['findAncestor']('table'),{column:_0x50d4d4,row:_0x58a261}=_0x3b883b['getCellLocation'](_0x29ef16);let _0x492ab9=[];if('horizontally'==_0x1d1952['direction']){const _0x391faf=_0x3b883b['createTableWalker'](_0x199af3,{'startRow':_0x58a261,'endRow':_0x58a261,'includeAllSlots':!0x0});_0x492ab9=Array['from'](_0x391faf)['map'](_0x536a05=>_0x536a05['cell']);}else{const _0x3dfd20=_0x3b883b['createTableWalker'](_0x199af3,{'column':_0x50d4d4,'includeAllSlots':!0x0});_0x492ab9=Array['from'](_0x3dfd20)['map'](_0x115030=>_0x115030['cell']);}_0x227324['model']['change'](_0xb3a814=>{_0x2b5957['markBlockFormat'](_0xb3a814['createRangeOn'](_0x29ef16),{'commandName':_0xa48e54,'commandParams':[]},_0x492ab9,_0xa48e54);});});}_0x2b5957['descriptionFactory']['registerDescriptionCallback'](_0x40c00d=>{if('formatBlock'!=_0x40c00d['type']&&'formatInline'!=_0x40c00d['type'])return;const {data:_0x80c45}=_0x40c00d;return _0x80c45&&'mergeTableCells'==_0x80c45['commandName']?{'type':'format','content':o(_0x48a5ad,'*Merge\x20cells*')}:void 0x0;}),_0x2b5957['descriptionFactory']['registerDescriptionCallback'](_0x292a77=>{if('formatBlock'!=_0x292a77['type']&&'formatInline'!=_0x292a77['type'])return;const {data:_0x3ef597}=_0x292a77;return _0x3ef597?'splitTableCellVertically'==_0x3ef597['commandName']?{'type':'format','content':o(_0x48a5ad,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3ef597['commandName']?{'type':'format','content':o(_0x48a5ad,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3a94b0=_0x5ce641['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bc40 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2b5957['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bc40,'accept',_0x3a94b0);for(const _0x2b5f9e of['splitTableCellVertically','splitTableCellHorizontally'])_0x2b5957['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b5f9e,'accept',_0x3a94b0);_0x2b5957['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x89d59b=>{_0x227324['model']['change'](_0x250e74=>{const _0x1c5af3=Array['from'](_0xb317ba['getRanges']())['map'](_0x5174a4=>_0xfd736c['fromRange'](_0x5174a4));_0x250e74['setSelection'](_0x89d59b),_0x227324['commands']['get']('mergeTableCells')['refresh'](),_0x227324['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b5333=_0x1c5af3['filter'](_0x2cd694=>'$graveyard'!=_0x2cd694['root']['rootName']);_0x5b5333['length']>0x0&&_0x250e74['setSelection'](_0x5b5333);for(const _0x55c5c5 of _0x1c5af3)_0x55c5c5['detach']();});});for(const _0x1ef933 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x332b01=_0x227324['commands']['get'](_0x1ef933);_0x332b01['on']('set:isEnabled',(_0x27bfe3,_0x2493c3,_0x599c67)=>{if(_0x599c67){const _0x4e45a8=_0x227324['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfe1085=>_0xfe1085['is']('element','tableCell'));this['_areMergableCells'](_0x332b01['value'],_0x4e45a8)||(_0x27bfe3['return']=!0x1,_0x27bfe3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2f9169=this['editor']['commands']['get']('mergeTableCells'),_0x23dac3=this['editor']['plugins']['get']('TableUtils');if(!_0x2f9169['isEnabled'])return!0x1;const _0xf62abd=_0x23dac3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d83e1 of _0xf62abd)for(const _0x3bec63 of _0xf62abd)if(_0x1d83e1!=_0x3bec63&&!this['_areMergableCells'](_0x1d83e1,_0x3bec63))return!0x1;return!0x0;}['_areMergableCells'](_0x4687b0,_0x4fd9a1){const _0x50a3f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fdf43=this['editor']['model']['createRangeOn'](_0x4687b0),_0x403b8c=this['editor']['model']['createRangeOn'](_0x4fd9a1),_0x2fb3f6=new Set(),_0x491149=new Set();for(const _0x185092 of _0x50a3f3['getSuggestions']())if(('insertion'==_0x185092['type']||'deletion'==_0x185092['type']||'mergeTableCells'==_0x185092['subType'])&&_0x185092['isInContent']){for(const _0x5366d8 of _0x185092['getRanges']())_0x5366d8['containsRange'](_0x2fdf43,!0x0)&&_0x2fb3f6['add'](_0x185092['type']+':'+_0x185092['author']['id']),_0x5366d8['containsRange'](_0x403b8c,!0x0)&&_0x491149['add'](_0x185092['type']+':'+_0x185092['author']['id']);}if(_0x2fb3f6['size']!=_0x491149['size'])return!0x1;for(const _0x214b8c of _0x2fb3f6)if(!_0x491149['has'](_0x214b8c))return!0x1;return!0x0;}}class Ct extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0xc03b6a=this['editor'];if(!_0xc03b6a['plugins']['has']('TableEditing'))return;const _0x406958=_0xc03b6a['locale'],_0x5ca5fc=_0xc03b6a['plugins']['get']('TrackChangesEditing');_0x5ca5fc['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5ca5fc['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5ca5fc['registerBlockAttribute']('headingRows'),_0x5ca5fc['registerBlockAttribute']('headingColumns'),_0x5ca5fc['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x406958,'FORMAT_HEADER_ROW')),_0x5ca5fc['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x406958,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12925c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10e1cc=this['editor']['plugins']['get']('TableUtils'),_0x3894db=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5b078b({showActiveMarker:_0x33c1a5=!0x0,setDataAttribute:_0x4378ec=!0x0}={}){return(_0x4d5650,_0x58933a,_0x1d1025)=>{const {type:_0x52605b,id:_0x5b81db}=_0x12925c['_splitMarkerName'](_0x58933a['markerName']),_0x76ea88=_0x12925c['getSuggestion'](_0x5b81db),_0xd510e7=_0x76ea88['data'];if('formatBlock'!=_0x76ea88['type']||!_0xd510e7||'setTableColumnHeader'!=_0xd510e7['commandName'])return;if(_0x58933a['item'])return void _0x4d5650['stop']();if(!_0x1d1025['consumable']['consume'](_0x58933a['markerRange'],_0x4d5650['name']))return;const _0x2d9232=_0x58933a['markerRange']['start']['nodeAfter'],_0x389876=_0x58933a['markerRange']['end']['nodeBefore'],_0x47727f=_0x2d9232['parent']['parent'],{column:_0x22c455}=_0x10e1cc['getCellLocation'](_0x2d9232),{column:_0x50b57d}=_0x10e1cc['getCellLocation'](_0x389876);for(let _0x5b507f=_0x22c455;_0x5b507f<=_0x50b57d;_0x5b507f++){const _0x2f1dd8=_0x10e1cc['createTableWalker'](_0x47727f,{'column':_0x5b507f,'includeAllSlots':!0x1});for(const _0x1db5bb of _0x2f1dd8){const _0x31af0d=_0x1db5bb['cell'],_0x16b53d=_0x1d1025['mapper']['toViewElement'](_0x31af0d);_0x1d1025['writer']['addClass']('ck-suggestion-marker-'+_0x52605b,_0x16b53d),_0x4378ec&&_0x1d1025['writer']['setAttribute']('data-suggestion',_0x5b81db,_0x16b53d),_0x1d1025['mapper']['bindElementToMarker'](_0x16b53d,_0x58933a['markerName']),_0x33c1a5&&(_0x12925c['activeMarkers']['includes'](_0x58933a['markerName'])?_0x1d1025['writer']['addClass']('ck-suggestion-marker--active',_0x16b53d):_0x1d1025['writer']['removeClass']('ck-suggestion-marker--active',_0x16b53d));}}};}_0x12925c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3894db),_0x12925c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3894db),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5b078b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x485ca2,_0x21d5cf,_0x640e91)=>{_0x640e91['options']['showSuggestionHighlights']&&_0x5b078b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x485ca2,_0x21d5cf,_0x640e91);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2f0beb,_0x4999c2,_0x12f4a0)=>{const {type:_0x37e3ff,id:_0x11b46b}=_0x12925c['_splitMarkerName'](_0x4999c2['markerName']),_0x34754d=_0x12925c['getSuggestion'](_0x11b46b),_0x2a3aed=_0x34754d['data'];if('formatBlock'!=_0x34754d['type']||!_0x2a3aed||'setTableColumnHeader'!=_0x2a3aed['commandName'])return;const _0x3795e0=_0x12f4a0['mapper']['markerNameToElements'](_0x4999c2['markerName']);if(_0x3795e0){for(const _0xeb7369 of _0x3795e0)_0x12f4a0['writer']['removeClass']('ck-suggestion-marker-'+_0x37e3ff,_0xeb7369),_0x12f4a0['writer']['removeClass']('ck-suggestion-marker--active',_0xeb7369),_0x12f4a0['writer']['removeAttribute']('data-suggestion',_0xeb7369),_0x12f4a0['mapper']['unbindElementFromMarkerName'](_0xeb7369,_0x4999c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfc6f5c=this['editor'],_0x28f33b=_0xfc6f5c['locale'];function _0x5c8199(_0x4d5f37){return{'type':'format','content':o(_0x28f33b,'*Format:*\x20%0',_0x4d5f37)};}_0xfc6f5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40e9a0=>{if('formatBlock'!=_0x40e9a0['type'])return;const {data:_0xeab8d3}=_0x40e9a0;if(_0xeab8d3){if('setTableRowHeader'==_0xeab8d3['commandName']){const _0xfc1326=_0xeab8d3['commandParams'][0x0]['forceValue'];return _0x5c8199(o(_0x28f33b,_0xfc1326?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xeab8d3['commandName']){const _0x114fe1=_0xeab8d3['commandParams'][0x0]['forceValue'];return _0x5c8199(o(_0x28f33b,_0x114fe1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x24b970=>[_0x24b970,null]));class _t extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0xf76f22=this['editor'];if(!_0xf76f22['plugins']['has']('TableClipboard'))return;const _0x3b52ed=_0xf76f22['plugins']['get']('TrackChangesEditing'),_0x32c880=_0xf76f22['plugins']['get']('TableUtils'),_0x50dcde=_0xf76f22['plugins']['get'](It),_0x1c9252=_0xf76f22['plugins']['get']('TableClipboard');_0x50dcde['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xf76f22['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xf76f22['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x166ee4=null;_0xf76f22['model']['on']('insertContent',(_0x1b8c32,_0x158bbd)=>{const [_0x3426bd,_0x58a078]=_0x158bbd,_0x27990c=_0x158bbd[_0x158bbd['length']-0x1];_0x27990c&&_0x27990c['forceDefaultExecution']||_0x3b52ed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x50605f,_0x2aac12,_0x50bd76,_0x2864b8,_0x41b67f){if(_0x2aac12&&!_0x2aac12['is']('documentSelection'))return!0x1;const _0x136e6f=_0x41b67f['getTableIfOnlyTableInContent'](_0x50605f,_0x50bd76);if(!_0x136e6f||!Re(_0x136e6f,void 0x0,_0x2864b8))return!0x1;const _0x2b6084=_0x2864b8['getSelectionAffectedTableCells'](_0x50bd76['document']['selection']);if(!_0x2b6084['length'])return!0x1;const _0x1a78bd=_0x2b6084[0x0]['findAncestor']('table'),_0x879d6b=_0x2864b8['getRowIndexes'](_0x2b6084),_0x59044e=_0x2864b8['getColumnIndexes'](_0x2b6084),_0xfb831b={'startRow':_0x879d6b['first'],'endRow':_0x879d6b['last'],'startColumn':_0x59044e['first'],'endColumn':_0x59044e['last']};return 0x1==_0x2b6084['length']&&(_0xfb831b['endRow']+=_0x2864b8['getRows'](_0x136e6f)-0x1,_0xfb831b['endColumn']+=_0x2864b8['getColumns'](_0x136e6f)-0x1),Re(_0x1a78bd,_0xfb831b,_0x2864b8);}(_0x3426bd,_0x58a078,_0xf76f22['model'],_0x32c880,_0x1c9252)&&(_0x1b8c32['stop'](),_0x166ee4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xf76f22['model']['change'](()=>{_0xf76f22['model']['insertContent'](_0x158bbd[0x0],_0x158bbd[0x1],_0x158bbd[0x2],{'forceDefaultExecution':!0x0});const _0x5d4462=_0x3620ad(),{rowInsertionRanges:_0xe0d4f8,columnInsertionRanges:_0x5da9ef,insertionRanges:_0x14ba72,deletionRanges:_0x29b9a1,cells:_0x557cc3}=_0x166ee4;_0xe0d4f8['length']&&_0x3b52ed['markMultiRangeInsertion'](_0xe0d4f8,'tablePasteRow',{'tablePasteChainId':_0x5d4462}),_0x5da9ef['length']&&_0x3b52ed['markMultiRangeInsertion'](_0x5da9ef,'tablePasteColumn',{'tablePasteChainId':_0x5d4462}),_0x14ba72['length']&&(_0x3b52ed['markMultiRangeInsertion'](_0x14ba72,'tablePaste',{'tablePasteChainId':_0x5d4462,'skipNestingCheck':!0x0}),_0x14ba72['forEach'](_0x288597=>_0x288597['detach']?.())),_0x29b9a1['length']&&(_0x3b52ed['markMultiRangeDeletion'](_0x29b9a1,'tablePaste',{'tablePasteChainId':_0x5d4462,'skipNestingCheck':!0x0}),_0x29b9a1['forEach'](_0x3e19cc=>_0x3e19cc['detach']?.()));const _0x328802=_0x3b52ed['markMultiRangeBlockFormat'](_0x557cc3['map'](({element:_0x10fbad})=>_0x10fbad),{'formatGroupId':_0x3620ad()},[],'tablePasteCell',{'tablePasteChainId':_0x5d4462});if(_0x328802){const _0x203b11=_0x328802['getMarkers'](),_0x41808d=[];for(const {element:_0x5c0edf,attributes:_0x9238fb}of _0x557cc3){if(!_0x9238fb)continue;const _0x1a8be3=_0xf76f22['model']['createRangeOn'](_0x5c0edf),_0x4c6e21=_0x203b11['find'](_0x5608a8=>_0x5608a8['getRange']()['isEqual'](_0x1a8be3));_0x4c6e21&&_0x41808d['push']([_0x4c6e21['name'],_0x9238fb]);}_0x41808d['length']&&_0x328802['setAttribute']('markerAttributes',Object['fromEntries'](_0x41808d));}_0x166ee4=null;}));},{'priority':_0x12736d['high']+0xa}),_0xf76f22['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x52a910,_0x3a94e9)=>{const [_0x1a6bd1,_0x549505,,_0x3595ba]=_0x3a94e9;if(!_0x166ee4)return;_0x52a910['stop']();const _0x4599ec=_0x1a6bd1['cell'],_0x2ddac3=_0x549505,_0x2be97f=ke(_0x4599ec),_0x5d954b=ke(_0x2ddac3);_0x52a910['return']=_0x4599ec;let _0xe20c71=null,_0x10c660=null;if(_0x5d954b||_0x2be97f){if(_0x2be97f&&!_0x5d954b){_0x3595ba['remove'](_0x4599ec['getChild'](0x0));for(const _0x31b18c of Array['from'](_0x2ddac3['getChildren']()))_0x3595ba['insert'](_0x31b18c,_0x4599ec,'end');const _0x320685=_0x166ee4['rowInsertionIndexes']['includes'](_0x1a6bd1['row']),_0xa3e643=_0x166ee4['columnInsertionIndexes']['includes'](_0x1a6bd1['column']);_0x320685||_0xa3e643||(_0xe20c71=_0xfd736c['fromRange'](_0x3595ba['createRangeIn'](_0x4599ec)));}else _0x5d954b&&!_0x2be97f&&(_0x10c660=_0x3595ba['createRangeIn'](_0x4599ec));}else{const _0x34c09c=_0x3595ba['createElement']('tableCellSuggestion'),_0x529e04=_0x3595ba['createElement']('tableCellSuggestion');_0x3595ba['wrap'](_0x3595ba['createRangeIn'](_0x4599ec),_0x529e04),_0x3595ba['insert'](_0x34c09c,_0x4599ec,0x0);for(const _0x1d3fab of Array['from'](_0x2ddac3['getChildren']()))_0x3595ba['insert'](_0x1d3fab,_0x34c09c,'end');_0xe20c71=_0xfd736c['fromRange'](_0x3595ba['createRangeOn'](_0x34c09c)),_0x10c660=_0xfd736c['fromRange'](_0x3595ba['createRangeOn'](_0x529e04));}const _0x5249d7=Array['from'](_0x2ddac3['getAttributes']())['filter'](([_0x55034e])=>Pe['includes'](_0x55034e));_0x166ee4['cells']['push']({'element':_0x4599ec,'attributes':_0x5249d7['length']?Object['fromEntries'](_0x5249d7):null}),_0xe20c71&&_0x166ee4['insertionRanges']['push'](_0xe20c71),_0x10c660&&_0x166ee4['deletionRanges']['push'](_0x10c660);},{'priority':'high'}),_0x32c880['on']('insertColumns',(_0x83a78,_0x4b7619)=>{const [_0x1c7c02,_0x14b06b={}]=_0x4b7619;if(!_0x166ee4)return;const _0x57dfa1=_0x14b06b['at']||0x0,_0x19420e=_0x14b06b['columns']||0x1;_0x166ee4['columnInsertionIndexes']=new Array(_0x19420e)['fill'](_0x57dfa1)['map']((_0x398d0a,_0x5ddd98)=>_0x398d0a+_0x5ddd98);for(const {cell:_0x378f96}of _0x32c880['createTableWalker'](_0x1c7c02,{'startColumn':_0x57dfa1,'endColumn':_0x57dfa1+_0x19420e-0x1}))_0x166ee4['columnInsertionRanges']['push'](_0xf76f22['model']['createRangeOn'](_0x378f96));},{'priority':'low'}),_0x32c880['on']('insertRows',(_0x261347,_0x4334c4)=>{const [_0xa258fe,_0x2d9c26={}]=_0x4334c4;if(!_0x166ee4)return;const _0xcfd55b=_0x2d9c26['at']||0x0,_0x485e2f=_0x2d9c26['rows']||0x1;_0x166ee4['rowInsertionIndexes']=new Array(_0x485e2f)['fill'](_0xcfd55b)['map']((_0x1920f9,_0x3e9676)=>_0x1920f9+_0x3e9676);for(const {cell:_0x2c86ce}of _0x32c880['createTableWalker'](_0xa258fe,{'startRow':_0xcfd55b,'endRow':_0xcfd55b+_0x485e2f-0x1}))_0x166ee4['rowInsertionRanges']['push'](_0xf76f22['model']['createRangeOn'](_0x2c86ce));},{'priority':'low'}),_0x3b52ed['descriptionFactory']['registerDescriptionCallback'](_0x24b31f=>{if(_0x24b31f['subType']&&_0x24b31f['subType']['startsWith']('tablePaste'))return _0x24b31f['previous']?{}:{'type':'insertion','content':o(_0xf76f22['locale'],'*Replace\x20table\x20cells*')};});const _0x3369f1=()=>!0x1;for(const _0x463940 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b52ed['_suggestionFactory']['registerCustomCallback']('insertion',_0x463940,'join',_0x3369f1),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('deletion',_0x463940,'join',_0x3369f1),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x463940,'join',_0x3369f1);_0x3b52ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3369f1),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42aa0d,_0x2e4c2f,_0x2a9918)=>{const _0x32d446=_0x42aa0d['map'](_0x5c896=>_0x5c896['getContainedElement']())['filter'](_0x4576ce=>_0x4576ce),_0x38adb2=new Map(_0x32d446['map'](_0x7b6047=>[_0x7b6047,null]));if(_0x166ee4){for(const {element:_0x3fbbc6,attributes:_0x24d4ff}of _0x166ee4['cells'])_0x24d4ff&&_0x38adb2['set'](_0x3fbbc6,_0x24d4ff);}else{if(_0x2a9918&&_0x2a9918['markerAttributes'])for(const [_0x534ba2,_0x4849d7]of Object['entries'](_0x2a9918['markerAttributes'])){const _0x1e27c2=_0xf76f22['model']['markers']['get'](_0x534ba2),_0x5ad171=_0x1e27c2?_0x1e27c2['getRange']()['getContainedElement']():null;_0x5ad171&&_0x38adb2['set'](_0x5ad171,_0x4849d7);}}_0xf76f22['model']['change'](_0x505380=>{for(const [_0x411f09,_0x5c9ac4]of _0x38adb2)_0x505380['setAttributes']({...we,..._0x5c9ac4},_0x411f09);});});const _0x1b8585=(_0x1f36e7,_0x239631)=>{_0x3b52ed['_suggestionFactory']['registerCustomCallback'](_0x1f36e7,'tablePaste',_0x239631,(_0x18b0d8,_0x528f08,_0x474e54)=>{_0xf76f22['model']['change'](_0x52b013=>{const _0x19eb92=[];for(const _0x585b78 of _0x18b0d8){const _0x4e27b4=_0x585b78['start']['nodeAfter'];_0x4e27b4['is']('element','tableCellSuggestion')&&_0x19eb92['push'](_0x4e27b4);}_0x3b52ed['_suggestionFactory']['getSuggestionCallback'](_0x1f36e7,null,_0x239631)(_0x18b0d8,_0x528f08,_0x474e54);for(const _0x2eaab0 of _0x19eb92)'$graveyard'!=_0x2eaab0['root']['rootName']&&_0x52b013['unwrap'](_0x2eaab0);});});};_0x1b8585('insertion','accept'),_0x1b8585('insertion','discard'),_0x1b8585('deletion','accept'),_0x1b8585('deletion','discard'),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ab9a0=>{const _0x4e0901=_0x1ab9a0['map'](_0x4e95bd=>_0x4e95bd['getContainedElement']()),_0x19db0c=_0x4e0901[0x0]['findAncestor']('table'),{minRow:_0xc47017,maxRow:_0x415ae5}=_0x50dcde['_getCoordsForCells'](_0x4e0901);_0x32c880['removeRows'](_0x19db0c,{'at':_0xc47017,'rows':_0x415ae5-_0xc47017+0x1});}),_0x3b52ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1ccf20=>{const _0x45342e=_0x1ccf20['map'](_0x4762ed=>_0x4762ed['getContainedElement']()),_0x48a8a8=_0x45342e[0x0]['findAncestor']('table'),{minColumn:_0x28ead7,maxColumn:_0x21db0c}=_0x50dcde['_getCoordsForCells'](_0x45342e);_0x32c880['removeColumns'](_0x48a8a8,{'at':_0x28ead7,'columns':_0x21db0c-_0x28ead7+0x1});});const _0x8386cd=(_0x1c9522,_0x122c8b)=>{if(!_0x122c8b['subType']||!_0x122c8b['subType']['startsWith']('tablePaste'))return;const _0x247ad8=_0x122c8b['attributes']['tablePasteChainId'],_0x5e5be2=_0x3b52ed['getSuggestions']()['filter'](_0x313890=>_0x313890['isInContent']&&_0x313890['attributes']&&_0x313890['attributes']['tablePasteChainId']==_0x247ad8);_0x5e5be2['length']&&_0x122c8b['getAllAdjacentSuggestions']()['length']!=_0x5e5be2['length']&&_0x5e5be2['reduce']((_0x4820a9,_0x487d4d)=>(_0x4820a9['next']=_0x487d4d,_0x487d4d['previous']=_0x4820a9,_0x487d4d));};function _0x2767b5(_0x13f895,_0x450068=!0x0){const {id:_0x2db512,authorId:_0x3e8306}=_0x3b52ed['_splitMarkerName'](_0x13f895['markerName']),_0x3b9b01=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd0edd2=_0x3b52ed['activeMarkers']['includes'](_0x13f895['markerName']);return _0xd0edd2&&_0x3b9b01['push']('ck-suggestion-marker--active'),{'classes':_0x3b9b01,'attributes':{'data-suggestion':_0x2db512,'data-author-id':_0x3e8306},'priority':_0xd0edd2&&_0x450068?0xbc2:0xbb8};}_0x3b52ed['on']('suggestionLoaded',_0x8386cd,{'priority':'high'}),_0x3b52ed['on']('suggestionUnloaded',_0x8386cd,{'priority':'high'}),_0xf76f22['model']['document']['registerPostFixer'](()=>{let _0x1ad589=!0x1;const _0x114360=Array['from'](_0xf76f22['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36d865,data:_0xf0888e}of _0x114360){const {group:_0x46c079,type:_0x361b55,id:_0x97f19c}=_0x3b52ed['_splitMarkerName'](_0x36d865);if('suggestion'!=_0x46c079||'deletion'!=_0x361b55||_0xf0888e['oldRange'])continue;if(!_0x3b52ed['hasSuggestion'](_0x97f19c))continue;const _0x3680f6=_0x3b52ed['getSuggestion'](_0x97f19c)['getRanges'](),_0x58c655=_0xf76f22['plugins']['get']('Users')['me'];for(const _0x29a482 of _0x3b52ed['getSuggestions']()){if(!_0x29a482['isInContent']||_0x29a482['author']!=_0x58c655)continue;if('formatBlock'!=_0x29a482['type']||'tablePasteCell'!=_0x29a482['subType'])continue;if(_0x29a482['getRanges']()['every'](_0x29c248=>_0x3680f6['some'](_0x501fea=>_0x501fea['containsRange'](_0x29c248,!0x0)))){for(const _0x486f02 of _0x29a482['getAllAdjacentSuggestions']())_0x486f02['isInContent']&&(_0x486f02['discard'](),_0x1ad589=!0x0);}}}return _0x1ad589;}),_0xf76f22['model']['document']['registerPostFixer'](_0xf8d97e=>{const _0x1852a1=_0xf76f22['commands']['get']('redo');if(!_0x1852a1||!_0x1852a1['_createdBatches']['has'](_0xf8d97e['batch']))return!0x1;let _0x3d4065=!0x1;const _0x25901d=_0xf76f22['plugins']['get']('Users')['me'],_0x5a935d=_0xf76f22['model']['document']['differ']['getChanges'](),_0x1c2b54=Array['from'](_0xf76f22['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x394c1d,data:_0x1c2ed8})=>{const {group:_0x27e0c6,subType:_0x5c4bf2,authorId:_0x83c0cb}=_0x3b52ed['_splitMarkerName'](_0x394c1d);return'suggestion'==_0x27e0c6&&'tablePaste'==_0x5c4bf2&&_0x83c0cb==_0x25901d['id']&&!_0x1c2ed8['oldRange'];});for(const _0x37bb4a of _0x5a935d){if('insert'!=_0x37bb4a['type']||'tableCellSuggestion'!=_0x37bb4a['name']||0x1!=_0x37bb4a['length'])continue;const _0x2100bc=_0xf8d97e['createRange'](_0x37bb4a['position'],_0x37bb4a['position']['getShiftedBy'](0x1));if(!_0x1c2b54['find'](({data:_0x167f7b})=>_0x167f7b['newRange']['isEqual'](_0x2100bc))){for(const {name:_0x52dd38,data:_0x3fbc28}of _0x1c2b54)if(_0x2100bc['containsRange'](_0x3fbc28['newRange'])){_0xf8d97e['updateMarker'](_0x52dd38,{'range':_0x2100bc}),_0x3d4065=!0x0;break;}}}return _0x3d4065;}),_0xf76f22['model']['document']['registerPostFixer'](_0xb962bb=>{let _0x374bdd=!0x1;const _0x7b6d37=_0xf76f22['plugins']['get']('Users')['me'],_0x57ec94=_0x3b52ed['getSuggestions']()['filter'](_0xba32f3=>_0xba32f3['isInContent']&&_0xba32f3['author']==_0x7b6d37),_0xa3892b=new Set(),_0x57277b=new Set();for(const _0x145724 of _0x57ec94)if('tablePaste'==_0x145724['subType'])for(const _0xc8512f of _0x145724['getMarkers']()){const _0x596a6a=_0xc8512f['getRange']()['getContainedElement']();if(_0x596a6a){if(_0x596a6a['is']('element','tableCellSuggestion')&&ke(_0x596a6a)){_0x145724['removeMarker'](_0xc8512f['name']),_0xa3892b['add'](_0x596a6a),_0x374bdd=!0x0;const _0xb2390e=_0x596a6a['nextSibling'],_0x37c815=_0x596a6a['previousSibling'],_0x3821e4=_0xb2390e&&_0xb2390e['is']('element','tableCellSuggestion'),_0x16bcc4=_0x37c815&&_0x37c815['is']('element','tableCellSuggestion');_0x3821e4&&!_0xa3892b['has'](_0xb2390e)&&_0x57277b['add'](_0xb2390e),_0x16bcc4&&!_0xa3892b['has'](_0x37c815)&&_0x57277b['add'](_0x37c815);}else _0x596a6a['is']('element','paragraph')&&_0x596a6a['isEmpty']&&(_0x145724['removeMarker'](_0xc8512f['name']),_0x374bdd=!0x0);}}else{if('tablePasteCell'==_0x145724['subType']){if(!_0x145724['attributes']||!_0x145724['attributes']['tablePasteChainId'])continue;const _0x814ab0=_0x145724['attributes']['markerAttributes'];if(_0x814ab0&&Object['keys'](_0x814ab0)['length'])continue;const _0x1a4c38=_0x145724['attributes']['tablePasteChainId'];let _0x4dbaf0=!0x0,_0x38f3fe=!0x0;for(const _0x27765c of _0x57ec94)if(_0x27765c['subType']&&_0x27765c['subType']['startsWith']('tablePaste')){if(!_0x27765c['attributes']['tablePasteChainId']){_0x38f3fe=!0x1;break;}if(_0x27765c['id']!=_0x145724['id']&&_0x27765c['attributes']['tablePasteChainId']==_0x1a4c38){_0x4dbaf0=!0x1;break;}}_0x38f3fe&&_0x4dbaf0&&(_0x145724['removeMarkers'](),_0x374bdd=!0x0);}}for(const _0x5d8a6a of _0xa3892b)_0xb962bb['remove'](_0x5d8a6a);for(const _0x9de746 of _0x57277b)_0xb962bb['unwrap'](_0x9de746);return _0x374bdd;}),_0xf76f22['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1cb65e,_0x1ebf76)=>_0x2767b5(_0x1cb65e),'converterPriority':'high'}),_0xf76f22['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5acaf4,_0x3c8a45)=>_0x3c8a45['options']['showSuggestionHighlights']?_0x2767b5(_0x5acaf4,!0x1):null,'converterPriority':'high'});const _0x502bb9=_0xf76f22['editing']['view'];this['listenTo'](_0x502bb9['document'],'clipboardOutput',(_0x294dbd,_0x7a23a3)=>{const _0x57d6c0=[];for(const _0x4974d6 of _0x502bb9['createRangeIn'](_0x7a23a3['content'])['getItems']())_0x4974d6['is']('element','suggestion-td')&&_0x57d6c0['push'](_0x4974d6);_0x502bb9['change'](_0x19c60a=>{for(const _0x59903c of _0x57d6c0)_0x19c60a['move'](_0x19c60a['createRangeIn'](_0x59903c),_0x19c60a['createPositionBefore'](_0x59903c)),_0x19c60a['remove'](_0x59903c);});});}}function ke(_0x3cfa97){if(_0x3cfa97['isEmpty'])return!0x0;const _0x34f40c=_0x3cfa97['getChild'](0x0);return _0x34f40c['is']('element','paragraph')&&_0x34f40c['isEmpty'];}function Re(_0x3c36f5,_0x2a819b={},_0x1bd0fd){for(const {isAnchor:_0x341a91,cellHeight:_0x2a8150,cellWidth:_0x55f0a2}of _0x1bd0fd['createTableWalker'](_0x3c36f5,{'includeAllSlots':!0x0,..._0x2a819b}))if(!_0x341a91||0x1!=_0x2a8150||0x1!=_0x55f0a2)return!0x1;return!0x0;}class Nt extends _0x310a20{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5789ea=this['editor']['plugins']['get']('TrackChangesEditing');_0x5789ea['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5789ea['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5789ea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5789ea['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5789ea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5789ea['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e549f,_0x5acfcc){const _0xafac4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2243e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x552858=_0x5acfcc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x123b9b=_0x2243e6['getColumnGroupElement'](_0x552858);let _0x33d564=_0x123b9b?_0x2243e6['getTableColumnsWidths'](_0x123b9b):null,_0x37f352=_0x552858['getAttribute']('tableWidth')||null;const _0x1556af=_0x5acfcc['tableWidth']||_0x37f352,_0x4eb374=_0x5acfcc['columnWidths']||_0x33d564,_0x2647ec=this['editor']['plugins']['get']('Users')['me'];for(const _0x477476 of _0xafac4a['getSuggestions']()){const _0x256cc8=_0x477476['getContainedElement']();if('resizeTable'===_0x477476['subType']&&_0x256cc8===_0x552858){_0x477476['author']!==_0x2647ec&&_0x477476['discard']();const _0x5a58ce=_0x477476['data']['commandParams'];_0x37f352=_0x5a58ce[0x0]['tableWidth'],_0x33d564=_0x5a58ce[0x0]['columnWidths'];break;}}_0x1e549f({'table':_0x552858,'tableWidth':_0x1556af,'columnWidths':_0x4eb374}),_0xafac4a['markBlockFormat'](_0x552858,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x37f352,'columnWidths':_0x33d564}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5f1b6f){if('formatBlock'!=_0x5f1b6f['type']&&'formatInline'!=_0x5f1b6f['type'])return;const {data:_0x34d64d}=_0x5f1b6f;if(_0x34d64d&&'resizeTable'===_0x34d64d['formatGroupId']){const _0x17038b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x17038b)};}}}class Dt extends _0x310a20{['afterInit'](){const _0x41303f=this['editor'];_0x41303f['plugins']['has']('Template')&&_0x41303f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x310a20{['afterInit'](){const _0x448cc8=this['editor'];if(!_0x448cc8['commands']['get']('insertTableOfContents'))return;_0x448cc8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1fdb07=_0x448cc8['plugins']['get']('TrackChangesEditing'),_0x554b6c=_0x448cc8['locale'];_0x1fdb07['descriptionFactory']['registerElementLabel']('tableOfContents',_0x364563=>o(_0x554b6c,'ELEMENT_TABLE_OF_CONTENTS',_0x364563));}}class $t extends _0x310a20{['afterInit'](){const _0x5ad578=this['editor'];if(!_0x5ad578['plugins']['has']('Title'))return;const _0x35db5c=_0x5ad578['plugins']['get']('TrackChangesEditing');_0x35db5c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5ad578['locale'],'ELEMENT_TITLE')),_0x5ad578['model']['document']['registerPostFixer'](_0x27ff8d=>{let _0x3c6e14=!0x1;const _0x30e72a=Array['from'](_0x5ad578['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5222b2,data:_0x226fc5}of _0x30e72a){const {group:_0x38d4cf}=_0x35db5c['_splitMarkerName'](_0x5222b2);if('suggestion'!==_0x38d4cf||!_0x226fc5['newRange'])continue;const _0x510359=_0x226fc5['newRange'],_0x320ede=_0x510359['end']['nodeBefore'];if(!_0x320ede||!_0x320ede['is']('element','title-content'))continue;if(!_0x510359['start']['isTouching'](_0x510359['end']))continue;const _0x4a1f29=_0x5ad578['model']['schema']['getNearestSelectionRange'](_0x510359['end'],'forward');if(_0x4a1f29&&_0x4a1f29['isCollapsed']){const _0x51e67b=_0x27ff8d['createRange'](_0x510359['start'],_0x4a1f29['start']);_0x51e67b['isEqual'](_0x510359)||(_0x27ff8d['updateMarker'](_0x5222b2,{'range':_0x51e67b}),_0x3c6e14=!0x0);}_0x3c6e14||(_0x27ff8d['removeMarker'](_0x5222b2),_0x3c6e14=!0x0);}return _0x3c6e14;});}}class Bt extends _0x310a20{['afterInit'](){const _0x159c11=this['editor'],_0x2c8ad9=_0x159c11['plugins']['get']('TrackChangesEditing');_0x159c11['plugins']['has']('UndoEditing')&&(_0x2c8ad9['enableCommand']('undo'),_0x2c8ad9['enableCommand']('redo'));}}class xt extends _0x310a20{static get['requires'](){return[It];}['afterInit'](){const _0x4dcdc2=this['editor'];if(!_0x4dcdc2['plugins']['has']('TableCaptionEditing'))return;_0x4dcdc2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x310a20{['tableProperties'];['tableCellProperties'];constructor(_0x395488){super(_0x395488),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 _0x3d3784=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c439c of this['tableProperties'])_0x3d3784['enableCommand'](_0x3c439c,(_0x50cbf2,_0x582ed0)=>{const _0xbd46f7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c439c,[_0xbd46f7],this['tableProperties'],'tableProperties',_0x50cbf2,_0x582ed0);});_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3d3784['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3030cf,_0x35f1ef)=>this['handleDiscardAction'](this['tableProperties'],_0x3030cf,_0x35f1ef)),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x228684 of this['tableCellProperties'])_0x3d3784['enableCommand'](_0x228684,(_0x3c3c8a,_0x2be269)=>{const _0x4744d1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x228684,_0x4744d1,this['tableCellProperties'],'tableCellProperties',_0x3c3c8a,_0x2be269);});_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3d3784['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x407bb3,_0x19d96f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x407bb3,_0x19d96f)),_0x3d3784['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3d3784['descriptionFactory']['registerDescriptionCallback'](_0x23b745=>this['handleSuggestionDescription'](_0x23b745));}['_handlePropertyChange'](_0x280fc8,_0x4d6628,_0x25b936,_0x50d510,_0x5b1b4b,_0x2b8d67){const _0x598240=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2b8d67['batch'],()=>{for(const _0x4d4db8 of _0x4d6628){if(this['_getSuggestion'](_0x4d4db8,_0x50d510))_0x5b1b4b(_0x2b8d67);else{const _0x364dea={};for(const _0x52b44a of _0x25b936){const _0x87201e=_0x4d4db8['getAttribute'](_0x52b44a);void 0x0!==_0x87201e&&(_0x364dea[_0x52b44a]=_0x87201e);}_0x5b1b4b(_0x2b8d67),_0x598240['markBlockFormat'](_0x4d4db8,{'commandParams':[_0x364dea]},[],_0x50d510);}}});}['handleDiscardAction'](_0x15c110,_0x3ea0a8,_0xe96828){const _0x97c47d=_0x3ea0a8[0x0]['start']['nodeAfter'],_0x41f057=_0xe96828['commandParams'][0x0];this['editor']['model']['change'](_0x86abe2=>{for(const _0x1ec4d7 of _0x15c110)void 0x0!==_0x41f057[_0x1ec4d7]?_0x86abe2['setAttribute'](_0x1ec4d7,_0x41f057[_0x1ec4d7],_0x97c47d):_0x86abe2['removeAttribute'](_0x1ec4d7,_0x97c47d);});}['handleSuggestionDescription'](_0x430c8c){if(_0x430c8c['data'])switch(_0x430c8c['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'](_0x3f4bb9,_0x307285){const _0x5f59a0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x445363 of _0x5f59a0['getSuggestions']({'skipNotAttached':!0x0})){const _0x2946a8=_0x445363['getContainedElement']();if(_0x445363['subType']===_0x307285&&_0x2946a8===_0x3f4bb9)return _0x445363;}return null;}}const m='$elementName';class p extends _0x310a20{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x20783e,_0x47fc58,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(_0x43c8d5){function _0x4ab362(_0x43212e){return _0x43212e['map'](_0x471588=>String['fromCharCode'](_0x471588))['join']('');}super(_0x43c8d5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x226170,_0x3227c0,_0x231a08,_0xda5045)=>{this['_model']['change'](()=>{for(const _0x4b78dd of[..._0xda5045,..._0x231a08])this['_model']['markers']['has'](_0x4b78dd)&&_0x43c8d5['editing']['reconvertMarker'](_0x4b78dd);});}),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']=_0x43c8d5['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(),_0x43c8d5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x43c8d5['config']['get']('trackChanges.trackFormatChanges'),_0x43c8d5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x43c8d5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x43c8d5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4ab362([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ab362([0x34,0x30,0x34,0x38,0x31,0x38,0x31,0x30]);}['init'](){const _0x128499=this['editor'],_0x353527=(_0x5d7fd5,_0x34dc95)=>{if('attribute'!=_0x5d7fd5)return'ck-suggestion-marker-'+_0x5d7fd5;const _0x59f94d=_0x34dc95['split']('|')[0x0];return this['_isBlockAttribute'](_0x59f94d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x128499['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4d6995=>{const {id:_0x894cbb,authorId:_0x59b4a2,type:_0x3ac2e7,subType:_0xd0c1ae}=this['_splitMarkerName'](_0x4d6995['markerName']),_0x530a86=['ck-suggestion-marker',_0x353527(_0x3ac2e7,_0xd0c1ae)];let _0x56f0c6=0xbb8;return this['activeMarkers']['includes'](_0x4d6995['markerName'])&&(_0x530a86['push']('ck-suggestion-marker--active'),_0x56f0c6=0xbc2),'deletion'==_0x3ac2e7&&(_0x56f0c6+=0x5),{'classes':_0x530a86,'attributes':{'data-suggestion':_0x894cbb,'data-author-id':_0x59b4a2},'priority':_0x56f0c6};}}),_0x128499['conversion']['for']('dataDowncast')['add'](_0x55f70c=>{_0x55f70c['on']('addMarker:suggestion',(_0x4aff68,_0xe6ae06,_0x2d5c77)=>{if(!_0x2d5c77['options']['showSuggestionHighlights'])return;const _0x3fbc98=_0xe6ae06['item'];if(!_0x3fbc98)return;const _0x1ab0e2=_0x2d5c77['mapper']['toViewElement'](_0x3fbc98);_0x128499['model']['schema']['isObject'](_0x3fbc98)&&_0x1ab0e2&&!_0x1ab0e2['getCustomProperty']('widget')&&_0x1ab0e2['is']('containerElement')&&_0x490399(_0x1ab0e2,_0x2d5c77['writer']);},{'priority':'high'});}),_0x128499['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xb3e513,_0x3b5929)=>{if(!_0x3b5929['options']['showSuggestionHighlights'])return null;const {type:_0x3b8881,subType:_0x1de23d}=this['_splitMarkerName'](_0xb3e513['markerName']);return{'classes':['ck-suggestion-marker',_0x353527(_0x3b8881,_0x1de23d)],'priority':0xbb8};}});const _0x331503=({showActiveMarkers:_0x465a23=!0x0,isAttributeSuggestion:_0x5c3b02=!0x1}={})=>(_0x2aa84b,_0x211165,_0x2eba86)=>{if(!_0x211165['item'])return;const {id:_0x2aaa0b,authorId:_0x1f4f53}=this['_splitMarkerName'](_0x211165['markerName']);if(_0x5c3b02){const _0x1be0de=this['_suggestions']['get'](_0x2aaa0b),_0x2b8e61=this['_getAttributeKey'](_0x1be0de);if(!this['_isBlockAttribute'](_0x2b8e61))return;}if(_0x211165['item']['is']('selection'))return void _0x2eba86['consumable']['consume'](_0x211165['item'],_0x2aa84b['name']);const _0x4f3461=_0x2eba86['mapper']['toViewElement'](_0x211165['item']);if(_0x211165['item']['is']('element')&&_0x128499['model']['schema']['isBlock'](_0x211165['item'])&&!_0x4f3461['getCustomProperty']('addHighlight')){_0x2eba86['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f3461),_0x2eba86['writer']['setAttribute']('data-suggestion',_0x2aaa0b,_0x4f3461),_0x2eba86['writer']['setAttribute']('data-author-id',_0x1f4f53,_0x4f3461),_0x2eba86['mapper']['bindElementToMarker'](_0x4f3461,_0x211165['markerName']),_0x465a23&&(this['activeMarkers']['includes'](_0x211165['markerName'])?_0x2eba86['writer']['addClass']('ck-suggestion-marker--active',_0x4f3461):_0x2eba86['writer']['removeClass']('ck-suggestion-marker--active',_0x4f3461));for(const _0x4e3379 of _0x128499['model']['createRangeIn'](_0x211165['item'])['getItems']())_0x2eba86['consumable']['consume'](_0x4e3379,_0x2aa84b['name']);_0x2eba86['consumable']['consume'](_0x211165['item'],_0x2aa84b['name']);}};_0x128499['conversion']['for']('dataDowncast')['add'](_0x13426e=>{_0x13426e['on']('addMarker:suggestion:formatBlock',(_0x533282,_0x45b6b6,_0x27a454)=>{_0x27a454['options']['showSuggestionHighlights']&&_0x331503({'showActiveMarkers':!0x1})(_0x533282,_0x45b6b6,_0x27a454);},{'priority':'highest'});}),_0x128499['conversion']['for']('dataDowncast')['add'](_0x468986=>{_0x468986['on']('addMarker:suggestion:attribute',(_0x8131e3,_0x2b8b3c,_0x356733)=>{_0x356733['options']['showSuggestionHighlights']&&_0x331503({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x8131e3,_0x2b8b3c,_0x356733);},{'priority':'highest'});}),_0x128499['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x428f9e,_0x4f58e3)=>_0x4f58e3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x428f9e['substr'](0xb)}}),_0x128499['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2adbe7,{writer:_0x1a3ab9})=>{let _0x1a9c43='suggestion:'+_0x2adbe7['getAttribute']('suggestion-type')+':'+_0x2adbe7['getAttribute']('id');return _0x2adbe7['getAttribute']('marker-count')&&(_0x1a9c43+=':'+_0x2adbe7['getAttribute']('marker-count')),_0x1a3ab9['createElement']('$marker',{'data-name':_0x1a9c43});}}),_0x128499['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x128499['conversion']['for']('editingDowncast')['add'](_0x17ac80=>{_0x17ac80['on']('addMarker:suggestion:formatBlock',_0x331503(),{'priority':'high'});}),_0x128499['conversion']['for']('editingDowncast')['add'](_0xad451f=>{_0xad451f['on']('addMarker:suggestion:attribute',_0x331503({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x128499['conversion']['for']('editingDowncast')['add'](_0x5bade1=>{_0x5bade1['on']('removeMarker:suggestion:formatBlock',(_0x2d86ff,_0x5bf43c,_0x416349)=>{const _0x53c10e=_0x416349['mapper']['markerNameToElements'](_0x5bf43c['markerName']);if(_0x53c10e){for(const _0x1055ae of _0x53c10e)_0x1055ae['getCustomProperty']('addHighlight')||(_0x416349['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1055ae),_0x416349['writer']['removeAttribute']('data-suggestion',_0x1055ae),_0x416349['writer']['removeAttribute']('data-author-id',_0x1055ae),_0x416349['mapper']['unbindElementFromMarkerName'](_0x1055ae,_0x5bf43c['markerName']));}},{'priority':'high'});}),_0x128499['conversion']['for']('editingDowncast')['add'](_0x570ab9=>{_0x570ab9['on']('removeMarker:suggestion:attribute',(_0x4bcebe,_0x2a8632,_0x2f8d22)=>{const _0x2161e4=_0x2f8d22['mapper']['markerNameToElements'](_0x2a8632['markerName']);if(!_0x2161e4)return;const {id:_0x3c0d44}=this['_splitMarkerName'](_0x2a8632['markerName']),_0x5cb1ad=this['_suggestions']['get'](_0x3c0d44),_0x555c68=this['_getAttributeKey'](_0x5cb1ad);if(this['_isBlockAttribute'](_0x555c68)){for(const _0x2ce41f of _0x2161e4)_0x2ce41f['getCustomProperty']('addHighlight')||(_0x2f8d22['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ce41f),_0x2f8d22['writer']['removeAttribute']('data-suggestion',_0x2ce41f),_0x2f8d22['writer']['removeAttribute']('data-author-id',_0x2ce41f),_0x2f8d22['mapper']['unbindElementFromMarkerName'](_0x2ce41f,_0x2a8632['markerName']));}},{'priority':'high'});}),_0x128499['model']['document']['registerPostFixer'](_0x5ee43e=>{let _0x183d61=!0x1;const _0x274ed6=Array['from'](_0x128499['model']['document']['differ']['getChangedMarkers']()),_0x32428a=new Set();for(const {name:_0x441220,data:_0x53c10b}of _0x274ed6){const {group:_0x56a9e3,type:_0x2c7a83,subType:_0x872a38,id:_0xc4089a}=this['_splitMarkerName'](_0x441220);if('suggestion'!==_0x56a9e3)continue;const _0x2def04=this['_suggestions']['get'](_0xc4089a);if(null!=_0x53c10b['newRange']){'formatInline'==_0x2c7a83&&(_0x183d61=_0x183d61||Ut(_0x53c10b['newRange'],_0x441220,_0x5ee43e,_0x128499['model']['schema']));const _0x19e40a='attribute'==_0x2c7a83&&this['_isBlockAttribute'](_0x872a38['split']('|')[0x0]);if(_0x53c10b['newRange']['isCollapsed']||'$graveyard'==_0x53c10b['newRange']['root']['rootName']||'formatBlock'==_0x2c7a83&&!Ft(_0x53c10b['newRange'])||_0x19e40a&&!Ft(_0x53c10b['newRange'])||'deletion'==_0x2c7a83&&!(!Vt(_0x462077=_0x53c10b['newRange'])&&!function(_0xa56602){return _0xa56602['start']['parent']==_0xa56602['end']['nodeBefore']&&_0xa56602['start']['isAtEnd'];}(_0x462077)))_0x5ee43e['removeMarker'](_0x441220),_0x183d61=!0x0;else{if(!_0x2def04||!_0x2def04['isInContent'])continue;if(_0x53c10b['newRange']&&_0x53c10b['oldRange']&&_0x53c10b['newRange']['isEqual'](_0x53c10b['oldRange']))continue;_0x32428a['add'](_0x2def04);}}}var _0x462077;return _0x32428a['size']>0x0&&(_0x183d61=!!this['_joinWithAdjacentSuggestions'](_0x32428a)||_0x183d61),_0x183d61;}),_0x128499['model']['document']['registerPostFixer'](_0xab2e7c=>{let _0x5dfcd1=!0x1;for(const _0x1728b9 of _0x128499['model']['document']['differ']['getChanges']())if('insert'==_0x1728b9['type'])for(const _0x4d3c8a of this['_suggestions']['values']()){if(_0x4d3c8a['isMultiRange']||!_0x4d3c8a['isInContent'])continue;const _0x40e5c2='formatBlock'==_0x4d3c8a['type'],_0x436512=this['_getAttributeKey'](_0x4d3c8a),_0x43611b=_0x436512&&this['_isBlockAttribute'](_0x436512);if(!_0x40e5c2&&!_0x43611b)continue;const _0x470705=_0x4d3c8a['getFirstRange']();if(_0x470705['start']['parent']!=_0x470705['end']['parent']&&!_0x470705['end']['isAtEnd']){const _0x3834bd=_0x128499['model']['createPositionAt'](_0x470705['start']['nodeAfter'],'end'),_0xc32973=_0x128499['model']['createRange'](_0x470705['start'],_0x3834bd);_0xab2e7c['updateMarker'](_0x4d3c8a['getFirstMarker'](),{'range':_0xc32973}),_0x5dfcd1=!0x0;}}return _0x5dfcd1;}),_0x128499['model']['document']['registerPostFixer'](_0x17396e=>this['_processAttributeChanges'](_0x17396e)),_0x128499['model']['document']['registerPostFixer'](_0x419caf=>!_0x419caf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x419caf)),_0x128499['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x128499['model']['document']['on']('change:data',(_0x679dae,_0x2dd464)=>{if(!_0x2dd464['isLocal']||_0x2dd464['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x577ef5=_0x128499['model']['document']['differ']['getChanges']();if(0x0==_0x577ef5['length'])return;const _0x2b26ea=[],_0xffc12d=_0x577ef5['filter'](_0xeb6206=>'attribute'==_0xeb6206['type']),_0x1e5d77=_0x577ef5['filter'](_0x94dd9b=>'insert'==_0x94dd9b['type']&&'$text'!=_0x94dd9b['name']);for(const _0x9bc91b of _0xffc12d)this['_isRegisteredAttribute'](_0x9bc91b['attributeKey'])&&_0x2b26ea['push']({'key':_0x9bc91b['attributeKey'],'newValue':_0x9bc91b['attributeNewValue'],'oldValue':_0x9bc91b['attributeOldValue'],'range':Pt(_0x9bc91b['range'],_0x128499['model'])});for(const _0x1a8d4d of _0x1e5d77){if('rename'!=_0x1a8d4d['action']&&'refresh'!=_0x1a8d4d['action'])continue;const _0x161eb0=Lt(_0x1a8d4d['position']['nodeAfter'],_0x128499['model']),_0x56b4ef=_0x1a8d4d['before'];'rename'==_0x1a8d4d['action']&&_0x2b26ea['push']({'key':m,'newValue':_0x1a8d4d['name'],'oldValue':_0x56b4ef['name'],'range':_0x161eb0});for(const [_0x5ce379,_0xaed003]of _0x56b4ef['attributes']){if(!this['_isRegisteredAttribute'](_0x5ce379))continue;const _0x2e81c4=_0x1a8d4d['attributes']['get'](_0x5ce379);_0xaed003!==_0x2e81c4&&_0x2b26ea['push']({'key':_0x5ce379,'newValue':_0x2e81c4,'oldValue':_0xaed003,'range':_0x161eb0});}for(const [_0x3ea796,_0x4557d7]of _0x1a8d4d['attributes'])this['_isRegisteredAttribute'](_0x3ea796)&&(_0x56b4ef['attributes']['has'](_0x3ea796)||_0x2b26ea['push']({'key':_0x3ea796,'newValue':_0x4557d7,'oldValue':null,'range':_0x161eb0}));}0x0!=_0x2b26ea['length']&&_0x128499['model']['enqueueChange'](_0x2dd464,_0x277eaf=>{const _0x3046dd=_0x3620ad();for(const {range:_0x5aaa29,key:_0x344e09,oldValue:_0x1b27ec,newValue:_0x2d55ee}of _0x2b26ea)this['markAttributeChange'](_0x5aaa29,_0x344e09,_0x1b27ec,_0x2d55ee,{'groupId':_0x3046dd});this['_reduceExistingSuggestions'](_0x277eaf,_0x2b26ea);});},{'priority':'lowest'}),_0x128499['model']['markers']['on']('update:suggestion',(_0x4f745b,_0x58a8d9,_0x1685f7)=>{if(null==_0x1685f7){const {id:_0x266676}=this['_splitMarkerName'](_0x58a8d9['name']),_0x3e822b=this['_suggestions']['get'](_0x266676);_0x3e822b&&_0x3e822b['addMarkerName'](_0x58a8d9['name']);}}),_0x128499['model']['document']['on']('change:data',()=>{const _0x261474=Array['from'](_0x128499['model']['document']['differ']['getChangedMarkers']())['filter'](_0x27dc4d=>'suggestion'===this['_splitMarkerName'](_0x27dc4d['name'])['group']);if(0x0===_0x261474['length'])return;_0x261474['sort']((_0x16b0fb,_0x1c2d24)=>{const _0x43e9c2=_0x16b0fb['data']['oldRange'],_0x222eab=_0x1c2d24['data']['oldRange'];return null===_0x43e9c2&&null===_0x222eab?0x0:null===_0x43e9c2&&null!==_0x222eab?-0x1:null!==_0x43e9c2&&null===_0x222eab?0x1:_0x43e9c2['start']['isBefore'](_0x222eab['start'])?-0x1:0x1;});const _0x241a24=new Set(),_0x4baec2=new Set();for(const {name:_0x54a3d6,data:_0x36b93d}of _0x261474){const {id:_0x38bbf1}=this['_splitMarkerName'](_0x54a3d6);if(null===_0x36b93d['oldRange']){const _0x2f381b=this['_handleNewSuggestionMarker'](_0x54a3d6);_0x4baec2['add'](_0x2f381b);}else{const _0x1e154=this['_suggestions']['get'](_0x38bbf1);null!==_0x36b93d['newRange']||_0x1e154['isInContent']?(_0x241a24['add'](_0x1e154['head']),_0x4baec2['add'](_0x1e154)):this['_removeSuggestion'](_0x1e154);}}_0x4baec2['size']>0x0&&this['_refreshSuggestionsChain'](_0x4baec2);for(const _0xdb6522 of _0x241a24)this['fire']('suggestionChanged',_0xdb6522);}),_0x128499['model']['on']('applyOperation',(_0xab56ca,_0x348f5b)=>{const _0xa50456=_0x348f5b[0x0];if(!this['_suggestions']['size'])return;if(!_0xa50456['isDocumentOperation'])return;if(_0xa50456['batch']['isUndo']||!_0xa50456['batch']['isLocal'])return;let _0x48ab53,_0x3b7a66;switch(_0xa50456['type']){case'insert':_0x48ab53=_0x128499['model']['createPositionAt'](_0xa50456['position']),_0x3b7a66=_0x48ab53['getShiftedBy'](_0xa50456['howMany']);break;case'split':_0x48ab53=_0x128499['model']['createPositionAt'](_0xa50456['splitPosition']),_0x3b7a66=_0x128499['model']['createPositionAt'](_0xa50456['moveTargetPosition']);break;case'move':_0x48ab53=_0x128499['model']['createPositionAt'](_0xa50456['targetPosition']),_0x3b7a66=_0x48ab53['getShiftedBy'](_0xa50456['howMany']);break;default:return;}const _0x29ebe1=_0x128499['model']['createRange'](_0x48ab53,_0x3b7a66);_0x128499['model']['change'](()=>{for(const {suggestion:_0x2c2641,meta:_0x16acd7}of this['_findSuggestions'](_0x29ebe1)){if(_0x2c2641['isMultiRange'])continue;if('formatInline'==_0x2c2641['type'])continue;const _0x3df80a=this['_getAttributeKey'](_0x2c2641);if(_0x3df80a&&this['_isBlockAttribute'](_0x3df80a)&&'split'!=_0xa50456['type'])continue;const _0x40e187=_0x2c2641['data']&&_0x2c2641['data']['multipleBlocks'];('formatBlock'!=_0x2c2641['type']||'split'==_0xa50456['type']&&!_0x40e187)&&(_0x16acd7['containsRangeInObject']||'insertion'==_0x2c2641['type']&&_0x16acd7['isOwn']||_0x2c2641['getFirstRange']()['containsRange'](_0x29ebe1)&&this['_breakSuggestionMarker'](_0x2c2641,_0x48ab53,_0x3b7a66));}});},{'priority':'lowest'}),_0x128499['model']['on']('deleteContent',(_0x2d4804,_0x208e58)=>{const _0x40c3dd=_0x208e58[0x0],_0x218bc9=_0x208e58[0x1];if(_0x218bc9&&_0x218bc9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40c3dd['isCollapsed'])return;const _0x31ccc6=_0x128499['model']['schema'],{start:_0x45af34,end:_0x379cbb}=_0x40c3dd['getFirstRange'](),_0xdbaff6=_0x45af34['nodeAfter']&&_0x31ccc6['isLimit'](_0x45af34['nodeAfter'])?null:_0x31ccc6['getNearestSelectionRange'](_0x45af34,'forward'),_0x59438f=_0x379cbb['nodeBefore']&&_0x31ccc6['isLimit'](_0x379cbb['nodeBefore'])?null:_0x31ccc6['getNearestSelectionRange'](_0x379cbb,'backward'),_0x24aa26=_0x128499['model']['createRange'](_0xdbaff6?_0xdbaff6['start']:_0x45af34,_0x59438f?_0x59438f['end']:_0x379cbb);_0x128499['model']['change'](_0x5edb9f=>{this['markDeletion'](_0x24aa26);const _0x312aac=_0x128499['model']['schema']['getNearestSelectionRange'](_0x24aa26['start']);_0x40c3dd['is']('documentSelection')?_0x5edb9f['setSelection'](_0x312aac):_0x40c3dd['setTo'](_0x312aac);}),_0x2d4804['stop']();},{'priority':_0x12736d['normal']+0xa}),_0x128499['model']['on']('insertContent',(_0x6ab537,_0xaf8674)=>{const _0x3b1ba5=_0xaf8674[_0xaf8674['length']-0x1];_0x3b1ba5&&_0x3b1ba5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x128499['model']['change'](()=>{let _0x6f4840=_0x128499['model']['insertContent'](_0xaf8674[0x0],_0xaf8674[0x1],_0xaf8674[0x2],{'forceDefaultExecution':!0x0});if(!_0x6f4840)return;_0x6ab537['return']=_0x6f4840['clone']();const _0x378b6a=_0x6f4840['end']['nodeBefore'],_0x2dd9db=_0x128499['model']['schema'];_0x378b6a&&_0x2dd9db['isBlock'](_0x378b6a)&&!_0x2dd9db['isObject'](_0x378b6a)&&(_0x6f4840=_0x128499['model']['createRange'](_0x6f4840['start'],_0x128499['model']['createPositionAt'](_0x378b6a,'end'))),this['markInsertion'](_0x6f4840);}),_0x6ab537['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xecc723=new x(_0x128499,this['_suggestions']);_0x128499['commands']['add']('acceptSuggestion',_0xecc723),this['enableCommand']('acceptSuggestion');const _0x37d534=new R(_0x128499,this['_suggestions']);_0x128499['commands']['add']('discardSuggestion',_0x37d534),this['enableCommand']('discardSuggestion'),_0x128499['commands']['add']('acceptAllSuggestions',new E(_0x128499,_0xecc723,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x128499['commands']['add']('discardAllSuggestions',new E(_0x128499,_0x37d534,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x128499['commands']['add']('acceptSelectedSuggestions',new O(_0x128499,_0xecc723,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x128499['commands']['add']('discardSelectedSuggestions',new O(_0x128499,_0x37d534,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xdb61f8=_0x128499['plugins']['get']('CommentsRepository');this['listenTo'](_0xdb61f8,'addComment',(_0x3d9384,{threadId:_0x387edc})=>{const _0x2afeeb=this['_suggestions']['get'](_0x387edc);_0x2afeeb&&_0x2afeeb['commentThread']&&0x1===_0x2afeeb['commentThread']['length']&&this['_updateSuggestionData'](_0x387edc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xdb61f8,'removeComment',(_0x4210bd,{threadId:_0x3ff4e9})=>{const _0x48ecb2=this['_suggestions']['get'](_0x3ff4e9);_0x48ecb2&&_0x48ecb2['commentThread']&&!_0x48ecb2['commentThread']['length']&&this['_updateSuggestionData'](_0x3ff4e9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x54148d){if(this['_adapter'])throw new _0x51bc83('track-changes-adapter-already-set',this);this['_adapter']=_0x54148d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x15e5f4=!0x1,toJSON:_0x3a9535=!0x1}={}){const _0x51637f=[];for(const _0x2d5e53 of this['_suggestions']['values']())_0x15e5f4&&!_0x2d5e53['isInContent']||_0x51637f['push'](_0x2d5e53);return _0x3a9535?_0x51637f['map'](_0x32a3db=>_0x32a3db['toJSON']()):_0x51637f;}['getSuggestion'](_0x2c7256){const _0x1ab8a4=this['_suggestions']['get'](_0x2c7256);if(!_0x1ab8a4)throw new _0x51bc83('track-changes-suggestion-not-found',this);return _0x1ab8a4;}['hasSuggestion'](_0x2b4e54){return this['_suggestions']['has'](_0x2b4e54);}['addSuggestionData'](_0xc79276){const {authorId:_0x442dfc,id:_0xf2e46f,attributes:_0x3aab27}=_0xc79276,[_0x5f50ce,_0x231d40]=_0xc79276['type']['split'](':'),_0x2a207c=this['_suggestions']['get'](_0xf2e46f)||this['_createSuggestion'](_0x5f50ce,_0x231d40,_0xf2e46f,_0x442dfc,_0x3aab27);if(this['_addThreadToSuggestion'](_0x2a207c),this['_checkSuggestionCorrectness'](_0x2a207c,_0x5f50ce,_0x231d40||null,_0x442dfc),_0x2a207c['createdAt']=_0xc79276['createdAt'],_0x2a207c['_isDataLoaded']=!0x0,_0x3aab27&&_0x3aab27['@external']){const _0x5665d7=_0x3aab27['@external'],_0x3c7093=this['_getExternalAuthor'](_0x5665d7['authorName']);_0x2a207c['authoredAt']=_0x5665d7['createdAt'],_0x2a207c['author']=_0x3c7093,_0x2a207c['isExternal']=!0x0;}else _0x2a207c['authoredAt']=_0xc79276['createdAt'];switch(_0xc79276['data']&&(_0x2a207c['data']=_0xc79276['data']),_0xc79276['attributes']&&(_0x2a207c['attributes']=_0xc79276['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a207c['_saved']=!0x0),this['_suggestionState']['get'](_0x2a207c)){case'notReady':this['_suggestionState']['set'](_0x2a207c,'dataReady');break;case'markerReady':_0x2a207c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a207c])),this['_refreshSuggestionsChain'](new Set([_0x2a207c])),this['_suggestionState']['set'](_0x2a207c,'ready'),this['fire']('suggestionLoaded',_0x2a207c)):this['_suggestionState']['set'](_0x2a207c,'removed');}return _0x2a207c;}['acceptSuggestion'](_0x3ba4a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c3c9f of _0x3ba4a4['getAllAdjacentSuggestions']())_0x3c3c9f['accept']();});});}['discardSuggestion'](_0x3dd361){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5018b8 of _0x3dd361['getAllAdjacentSuggestions']())_0x5018b8['discard']();});});}['enableCommand'](_0x19f476,_0x40a223){const _0x3f601f=this['editor']['commands']['get'](_0x19f476);if(!_0x3f601f)throw new _0x51bc83('track-changes-command-not-found',this,{'commandName':_0x19f476});if(this['_enabledCommands']['has'](_0x3f601f))throw new _0x51bc83('track-changes-enable-command-twice',this,{'commandName':_0x19f476});this['_enabledCommands']['add'](_0x3f601f),_0x40a223&&_0x3f601f['on']('execute',(_0x1b6353,_0x5657ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5657ef['length']>0x0&&_0x5657ef[_0x5657ef['length']-0x1]&&_0x5657ef[_0x5657ef['length']-0x1]['forceDefaultExecution']?_0x5657ef['pop']():(_0x1b6353['return']=_0x40a223((..._0x224b1e)=>_0x3f601f['execute'](..._0x224b1e,{'forceDefaultExecution':!0x0}),..._0x5657ef),_0x1b6353['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e5a06){let _0x32248d,_0x2b4110;const _0x24e5d5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x32248d=_0x4e5a06();}catch(_0x5d6ca0){_0x2b4110=_0x5d6ca0;}return _0x24e5d5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2b4110&&_0x51bc83['rethrowUnexpectedError'](_0x2b4110,this),_0x32248d;}['markInsertion'](_0xdc3ccc,_0x1c8760=null,_0x47c625={}){if(_0xdc3ccc['isCollapsed'])return null;const _0x3a0798=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5cf97d,meta:_0x419a29}of this['_findSuggestions'](_0xdc3ccc,'insertion'))if(_0x419a29['isOwn']){if(!_0x419a29['isNextTo']){if(_0x419a29['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5cf97d,_0x47c625))continue;return _0x5cf97d;}if(qt(_0x5cf97d,_0x47c625))return _0x5cf97d;this['_breakSuggestionMarker'](_0x5cf97d,_0xdc3ccc['start'],_0xdc3ccc['end']);break;}if(_0x1c8760==_0x5cf97d['subType']&&qt(_0x5cf97d,_0x47c625)){const _0x580a62=_0x5cf97d['getFirstRange']();return _0x580a62['start']['isEqual'](_0xdc3ccc['end'])?this['_setSuggestionRange'](_0x5cf97d,this['_model']['createRange'](_0xdc3ccc['start'],_0x580a62['end'])):this['_setSuggestionRange'](_0x5cf97d,this['_model']['createRange'](_0x580a62['start'],_0xdc3ccc['end'])),_0x5cf97d;}}const _0x4ca07d=_0x3620ad(),_0x17db84=_0x3a0798['id'],_0x22ca05=_0x1c8760?'insertion:'+_0x1c8760:'insertion',_0x2a8c1b=this['_setSuggestionData']({'id':_0x4ca07d,'type':_0x22ca05,'createdAt':new Date(),'authorId':_0x17db84,'attributes':_0x47c625});return this['_addSuggestionMarker'](_0x22ca05,_0x4ca07d,_0x17db84,_0xdc3ccc),_0x2a8c1b;}['markMultiRangeInsertion'](_0x27650d,_0x54ed06='multi',_0x3e95ab={}){const _0x34b583=this['editor']['plugins']['get']('Users')['me'],_0x1c6460=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54ed06,'join');for(const _0xc6ee22 of this['getSuggestions']())if(_0xc6ee22['author']['id']==_0x34b583['id']&&'insertion'==_0xc6ee22['type']&&_0xc6ee22['subType']==_0x54ed06&&qt(_0xc6ee22,_0x3e95ab)&&(_0x1c6460(_0xc6ee22['getRanges'](),_0x27650d)||_0x1c6460(_0x27650d,_0xc6ee22['getRanges']()))){for(const _0x376eab of _0x27650d)_0xc6ee22['addRange'](_0x376eab);return _0xc6ee22;}for(const {suggestion:_0x4e9578,meta:_0x1277ce}of this['_findSuggestions'](_0x27650d,'insertion')){if(!_0x1277ce['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1277ce['containsRangeInObject'])continue;if(!qt(_0x4e9578,_0x3e95ab))continue;let _0x475c7b=!0x0;for(const _0x5f4d6b of _0x4e9578['getRanges']())for(const _0x33d63c of _0x27650d)if(!_0x5f4d6b['containsRange'](_0x33d63c)){_0x475c7b=!0x1;break;}if(_0x475c7b)return _0x4e9578;}const _0x317ce1=_0x3620ad(),_0x26954e=_0x34b583['id'],_0x1ccf06='insertion:'+_0x54ed06,_0x12a8dd=this['_setSuggestionData']({'id':_0x317ce1,'type':_0x1ccf06,'createdAt':new Date(),'authorId':_0x26954e,'attributes':_0x3e95ab});for(const _0x1946cd of _0x27650d)this['_addSuggestionMarker'](_0x1ccf06,_0x317ce1,_0x26954e,_0x1946cd,u['getMultiRangeId']());return _0x12a8dd;}['markInlineFormat'](_0x44f071,_0x5766c7,_0x135506=null,_0x5ef4ba={}){if(_0x135506=_0x135506||Gt(_0x5766c7),_0x44f071['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2153f1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x135506,'accept');return this['forceDefaultExecution'](()=>_0x2153f1([_0x44f071],_0x5766c7,_0x5ef4ba)),null;}const _0x5522c1=this['editor']['plugins']['get']('Users')['me'],_0x1ea8df=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2ea274,meta:_0x1829c9}of this['_findSuggestions'](_0x44f071,'insertion'))_0x1829c9['isOwn']&&!_0x1829c9['isInsideObject']&&_0x1ea8df['push'](..._0x2ea274['getRanges']());}const _0x40fcfd=function(_0x442615,_0x18ed12){const _0x4ec544=[];for(const _0x2401d1 of _0x18ed12){const _0x23d8f5=_0x442615['getIntersection'](_0x2401d1);_0x23d8f5&&_0x4ec544['push'](_0x23d8f5);}return _0x4ec544;}(_0x44f071,_0x1ea8df),_0x50c5e9=function(_0x42089a,_0x4baa23){const _0x3fc9a3=[_0x42089a];for(const _0x5d7c39 of _0x4baa23){let _0x4a8200=0x0;for(;_0x4a8200<_0x3fc9a3['length'];){const _0x144867=_0x3fc9a3[_0x4a8200]['getDifference'](_0x5d7c39);_0x3fc9a3['splice'](_0x4a8200,0x1,..._0x144867),_0x4a8200+=_0x144867['length'];}}return _0x3fc9a3;}(_0x44f071,_0x1ea8df);_0x40fcfd['length']&&this['_model']['change'](()=>{for(const _0x491cd6 of _0x40fcfd){const _0x2bc95f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x135506,'accept');this['forceDefaultExecution'](()=>_0x2bc95f([_0x491cd6],_0x5766c7,_0x5ef4ba));}});for(const _0xf8b7b9 of _0x50c5e9){let _0x2cecdc=null,_0x5347b5=_0xf8b7b9['start'],_0x314214=_0xf8b7b9['end'];for(const {suggestion:_0x154811,meta:_0x4df1f4}of this['_findSuggestions'](_0xf8b7b9,'formatInline')){if(!_0x4df1f4['isOwn'])continue;if(_0x154811['subType']!=_0x135506)continue;if(!qt(_0x154811,_0x5ef4ba))continue;const _0x43b03f=_0x154811['getFirstRange']();if(_0x43b03f['containsRange'](_0xf8b7b9,!0x0))return null;_0x5347b5=_0x5347b5['isBefore'](_0x43b03f['start'])?_0x5347b5:_0x43b03f['start'],_0x314214=_0x314214['isAfter'](_0x43b03f['end'])?_0x314214:_0x43b03f['end'],_0x2cecdc?_0x43b03f['start']['isBefore'](_0x2cecdc['getFirstRange']()['start'])?(_0x2cecdc['removeMarkers'](),_0x2cecdc=_0x154811):_0x154811['removeMarkers']():_0x2cecdc=_0x154811;}const _0x2d519b=this['_model']['createRange'](_0x5347b5,_0x314214);if(_0x2cecdc)this['_setSuggestionRange'](_0x2cecdc,_0x2d519b);else{const _0xc32504=_0x3620ad(),_0x3c5162=_0x5522c1['id'];this['_setSuggestionData']({'id':_0xc32504,'type':'formatInline:'+_0x135506,'data':_0x5766c7,'createdAt':new Date(),'authorId':_0x3c5162,'attributes':_0x5ef4ba}),this['_addSuggestionMarker']('formatInline:'+_0x135506,_0xc32504,_0x3c5162,_0x2d519b);}}return null;}['markBlockFormat'](_0x9d8b22,_0x52efc4,_0x3f9e50=[],_0x1eaeef=null,_0x3c9a4e={}){_0x52efc4['formatGroupId']||(_0x52efc4['formatGroupId']=_0x52efc4['commandName']),_0x52efc4['multipleBlocks']=_0x9d8b22['is']('range'),_0x1eaeef=_0x1eaeef||Gt(_0x52efc4);const _0xcf98fa=_0x3f9e50['map'](_0x298561=>Lt(_0x298561,this['_model'])),_0x34b3eb=_0x9d8b22['is']('range')?_0x9d8b22:Lt(_0x9d8b22,this['_model']);if('never'===this['_trackFormatChanges']){const _0x54853d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1eaeef,'accept');return this['forceDefaultExecution'](()=>_0x54853d([_0x34b3eb],_0x52efc4,_0x3c9a4e)),null;}_0xcf98fa['push'](_0x34b3eb);let _0x3e0186=!0x0;for(const _0x853671 of _0xcf98fa)if(!this['_rangeIsInLocalUserInsertion'](_0x853671)){_0x3e0186=!0x1;break;}if(_0x3e0186&&'always'!==this['_trackFormatChanges']){const _0x47e5b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1eaeef,'accept');return this['forceDefaultExecution'](()=>_0x47e5b3([_0x34b3eb],_0x52efc4,_0x3c9a4e)),null;}let _0x4fef0d=null,_0x58f5a2=_0x34b3eb['start'],_0x4830d2=_0x34b3eb['end'];for(const {suggestion:_0x4ef67b,meta:_0xdbedbf}of this['_findSuggestions'](_0x34b3eb,'formatBlock')){if(!_0xdbedbf['isOwn'])continue;if(_0xdbedbf['isNextTo']||_0xdbedbf['containsRangeInObject']||_0xdbedbf['isInsideObject'])continue;if(_0x4ef67b['data']['formatGroupId']!=_0x52efc4['formatGroupId'])continue;if(!qt(_0x4ef67b,_0x3c9a4e))continue;const _0x5219ec=_0x4ef67b['getFirstRange']();if(_0x4ef67b['subType']==_0x1eaeef){if(_0x5219ec['containsRange'](_0x34b3eb,!0x0))return null;_0x58f5a2=_0x58f5a2['isBefore'](_0x5219ec['start'])?_0x58f5a2:_0x5219ec['start'],_0x4830d2=_0x4830d2['isAfter'](_0x5219ec['end'])?_0x4830d2:_0x5219ec['end'],_0x4fef0d?_0x5219ec['start']['isBefore'](_0x4fef0d['getFirstRange']()['start'])?(_0x4fef0d['removeMarkers'](),_0x4fef0d=_0x4ef67b):_0x4ef67b['removeMarkers']():_0x4fef0d=_0x4ef67b;}else{const _0x5225de=_0x34b3eb['getIntersection'](_0x5219ec);this['_cutOutSuggestionMarker'](_0x4ef67b,_0x5225de);}}const _0x202ac5=this['editor']['plugins']['get']('Users')['me'],_0x404eff=_0x3620ad(),_0x3f2cde=_0x202ac5['id'];if(_0x4fef0d)return this['_setSuggestionRange'](_0x4fef0d,this['_model']['createRange'](_0x58f5a2,_0x4830d2)),_0x4fef0d;{const _0x3a5e1=this['_setSuggestionData']({'id':_0x404eff,'type':'formatBlock:'+_0x1eaeef,'data':_0x52efc4,'createdAt':new Date(),'authorId':_0x3f2cde,'attributes':_0x3c9a4e});return this['_addSuggestionMarker']('formatBlock:'+_0x1eaeef,_0x404eff,_0x3f2cde,this['_model']['createRange'](_0x58f5a2,_0x4830d2)),_0x3a5e1;}}['markMultiRangeBlockFormat'](_0x413f2d,_0x1ec71b,_0x8da527=[],_0x265f4a=null,_0x418375={}){_0x1ec71b['formatGroupId']||(_0x1ec71b['formatGroupId']=_0x1ec71b['commandName']);const _0x41cdf8=_0x413f2d[0x0];_0x1ec71b['multipleBlocks']=_0x41cdf8['is']('range'),_0x265f4a=_0x265f4a||Gt(_0x1ec71b);const _0x2f0f4b=_0x8da527['map'](_0x36c85b=>Lt(_0x36c85b,this['_model'])),_0x26f472=_0x41cdf8['is']('range')?_0x413f2d:_0x413f2d['map'](_0x3cf927=>Lt(_0x3cf927,this['_model']));if('never'===this['_trackFormatChanges']){const _0x503652=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x265f4a,'accept');return this['forceDefaultExecution'](()=>_0x503652(_0x26f472,_0x1ec71b,_0x418375)),null;}_0x2f0f4b['push'](..._0x26f472);let _0x2fd47f=!0x0;for(const _0x20a262 of _0x2f0f4b)if(!this['_rangeIsInLocalUserInsertion'](_0x20a262)){_0x2fd47f=!0x1;break;}if(_0x2fd47f&&'always'!==this['_trackFormatChanges']){const _0x2d20c2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x265f4a,'accept');return this['forceDefaultExecution'](()=>_0x2d20c2(_0x26f472,_0x1ec71b,_0x418375)),null;}const _0x458f68=this['editor']['plugins']['get']('Users')['me'];for(const _0x7953e3 of this['getSuggestions']()){if(_0x7953e3['author']['id']!=_0x458f68['id'])continue;if('formatBlock'!=_0x7953e3['type']||_0x7953e3['data']['formatGroupId']!=_0x1ec71b['formatGroupId'])continue;if(!qt(_0x7953e3,_0x418375))continue;const _0x113990=_0x7953e3['subType']==_0x265f4a;for(let _0x248f73=0x0;_0x248f73<_0x26f472['length'];_0x248f73++){const _0x53195f=_0x26f472[_0x248f73];for(const _0x818447 of _0x7953e3['getMarkers']()){const _0x24cce0=_0x818447['getRange']();if(_0x53195f['isEqual'](_0x24cce0)){_0x113990?(_0x26f472['splice'](_0x248f73,0x1),_0x248f73--):_0x7953e3['removeMarker'](_0x818447['name']);break;}}}}if(0x0==_0x26f472['length'])return null;const _0x22ffb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x265f4a,'join');for(const _0x3e462e of this['getSuggestions']())if(_0x3e462e['author']['id']==_0x458f68['id']&&'formatBlock'==_0x3e462e['type']&&_0x3e462e['data']['formatGroupId']==_0x1ec71b['formatGroupId']&&_0x3e462e['subType']==_0x265f4a&&qt(_0x3e462e,_0x418375)&&(_0x22ffb6(_0x3e462e['getRanges'](),_0x26f472)||_0x22ffb6(_0x26f472,_0x3e462e['getRanges']()))){for(const _0x1b6577 of _0x26f472)_0x3e462e['addRange'](_0x1b6577);return _0x3e462e;}const _0x2afa08=_0x3620ad(),_0x482274=_0x458f68['id'],_0x480314='formatBlock:'+_0x265f4a,_0x354b05=this['_setSuggestionData']({'id':_0x2afa08,'type':_0x480314,'data':_0x1ec71b,'createdAt':new Date(),'authorId':_0x482274,'attributes':_0x418375});for(const _0x25f0a2 of _0x26f472)this['_addSuggestionMarker'](_0x480314,_0x2afa08,_0x482274,_0x25f0a2,u['getMultiRangeId']());return _0x354b05;}['markDeletion'](_0x3c5e09,_0x2e1774=null,_0x26a294={}){if(_0x3c5e09['isCollapsed'])return null;const _0x5ba273=this['editor']['plugins']['get']('Users')['me'],_0x534a32=new _0xfd736c(_0x3c5e09['start'],_0x3c5e09['end']);for(const {suggestion:_0x156ce1,meta:_0x250c15}of this['_findSuggestions'](_0x534a32,'insertion'))if(_0x250c15['isOwn']&&!_0x250c15['isNextTo']){if(_0x156ce1['isMultiRange']){const _0x17e5ee=_0x156ce1['getRanges']()['filter'](_0x5172fd=>'$graveyard'!=_0x5172fd['root']['rootName']);_0x17e5ee['every'](_0x11a097=>_0x534a32['containsRange'](_0x11a097,!0x0))&&_0x156ce1['discard']();if(_0x17e5ee['some'](_0x1a5d9f=>_0x1a5d9f['containsRange'](_0x534a32,!0x0))){const _0x54b8d7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1774,'accept');return this['forceDefaultExecution'](()=>_0x54b8d7([_0x534a32],null,_0x26a294)),null;}}else{const _0xf268fe=_0x534a32['getIntersection'](_0x156ce1['getFirstRange']());null!==_0xf268fe&&_0x156ce1['_onDiscard']([_0xf268fe],null,_0x26a294);}}if(_0x534a32['detach'](),_0x534a32['isCollapsed']||'$graveyard'==_0x534a32['root']['rootName'])return null;let _0x35f2c0=null,_0x295692=_0x534a32['start'],_0x3e083e=_0x534a32['end'];const _0x341bf5=this['_findSuggestions'](_0x534a32,'deletion');for(const {suggestion:_0x2d49e3,meta:_0x3db098}of _0x341bf5){const _0x3c300e=this['_model']['createRange'](_0x295692,_0x3e083e);if(_0x3db098['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3db098['containsRangeInObject']&&!_0x3db098['isInsideObject'])){if(_0x2d49e3['isMultiRange']){if(!qt(_0x2d49e3,_0x26a294))continue;let _0x121f3d=!0x0;for(const _0x24b90f of _0x2d49e3['getRanges']()){if(_0x24b90f['containsRange'](_0x3c300e,!0x0))return _0x2d49e3;_0x3c300e['containsRange'](_0x24b90f)||(_0x121f3d=!0x1);}_0x121f3d&&_0x2d49e3['discard']();}else{const _0x747071=_0x2d49e3['getFirstRange']();if(_0x747071['containsRange'](_0x3c300e,!0x0))return _0x2d49e3;if(!qt(_0x2d49e3,_0x26a294)){_0x3c300e['containsRange'](_0x747071)?_0x2d49e3['removeMarkers']():_0x747071['containsPosition'](_0x295692)?_0x295692=_0x747071['end']:_0x747071['containsPosition'](_0x3e083e)&&(_0x3e083e=_0x747071['start']);continue;}_0x295692=_0x295692['isBefore'](_0x747071['start'])?_0x295692:_0x747071['start'],_0x3e083e=_0x3e083e['isAfter'](_0x747071['end'])?_0x3e083e:_0x747071['end'],_0x26a294=Object['assign']({},_0x2d49e3['attributes']),_0x35f2c0?_0x747071['start']['isBefore'](_0x35f2c0['getFirstRange']()['start'])?(_0x35f2c0['removeMarkers'](),_0x35f2c0=_0x2d49e3):_0x2d49e3['removeMarkers']():_0x35f2c0=_0x2d49e3;}}}if(_0x35f2c0)return this['_setSuggestionRange'](_0x35f2c0,this['_model']['createRange'](_0x295692,_0x3e083e)),_0x35f2c0;{const _0x43d157=_0x3620ad(),_0x5d9ae4=this['_model']['createRange'](_0x295692,_0x3e083e),_0x54a864=_0x5ba273['id'],_0x623666=_0x2e1774?'deletion:'+_0x2e1774:'deletion',_0x58c306=this['_setSuggestionData']({'id':_0x43d157,'type':_0x623666,'createdAt':new Date(),'authorId':_0x54a864,'attributes':_0x26a294});return this['_addSuggestionMarker'](_0x623666,_0x43d157,_0x54a864,_0x5d9ae4),_0x58c306;}}['markMultiRangeDeletion'](_0x3876d3,_0x1dd7e0='multi',_0x4bbfac={}){const _0x1481ea=this['editor']['plugins']['get']('Users')['me'],_0x110d83=_0x3876d3['map'](_0x26c685=>new _0xfd736c(_0x26c685['start'],_0x26c685['end'])),_0x1d3b26=new Set();for(const {suggestion:_0x362cdb,meta:_0x3cc902}of this['_findSuggestions'](_0x110d83,'insertion'))_0x3cc902['isOwn']&&!_0x3cc902['isNextTo']&&_0x1d3b26['add'](_0x362cdb);for(const _0x1ee764 of _0x1d3b26)if(_0x1ee764['isMultiRange']){const _0x50d5fc=_0x1ee764['getRanges']();(!_0x1ee764['attributes']||!_0x1ee764['attributes']['skipNestingCheck'])&&(_0x50d5fc['every'](_0x56a86f=>_0x110d83['some'](_0x5cfb9e=>_0x5cfb9e['containsRange'](_0x56a86f,!0x0)))&&_0x1ee764['discard']());if(_0x110d83['every'](_0x282397=>_0x50d5fc['some'](_0x48b68e=>_0x48b68e['containsRange'](_0x282397,!0x0)))){const _0x39433f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dd7e0,'accept');return this['forceDefaultExecution'](()=>_0x39433f(_0x3876d3,null,_0x4bbfac)),null;}}else{const _0x2f3838=_0x1ee764['getFirstRange']();_0x110d83['some'](_0x4c498d=>_0x4c498d['containsRange'](_0x2f3838,!0x0))&&_0x1ee764['discard']();if(_0x110d83['every'](_0x2dd385=>_0x2f3838['containsRange'](_0x2dd385,!0x0))){const _0x58f4d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dd7e0,'accept');return this['forceDefaultExecution'](()=>_0x58f4d9(_0x110d83,null,_0x4bbfac)),null;}}const _0x3912=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dd7e0,'join');let _0x5f4793=null;for(const _0x23c0e6 of this['getSuggestions']())if(_0x23c0e6['author']['id']==_0x1481ea['id']&&_0x23c0e6['isInContent']&&'deletion'==_0x23c0e6['type']&&_0x23c0e6['subType']==_0x1dd7e0&&qt(_0x23c0e6,_0x4bbfac)&&(_0x3912(_0x23c0e6['getRanges'](),_0x110d83)||_0x3912(_0x110d83,_0x23c0e6['getRanges']()))){if(_0x5f4793){if(_0x23c0e6['commentThread']&&_0x23c0e6['commentThread']['length'])continue;for(const _0x1635a1 of _0x23c0e6['getRanges']())_0x5f4793['isIntersectingWithRange'](_0x1635a1)||_0x5f4793['addRange'](_0x1635a1);_0x23c0e6['removeMarkers']();}else{_0x5f4793=_0x23c0e6;for(const _0x41709a of _0x110d83)_0x23c0e6['isIntersectingWithRange'](_0x41709a)||_0x23c0e6['addRange'](_0x41709a);}}if(_0x5f4793)return _0x5f4793;_0x1d3b26['clear']();for(const {suggestion:_0x48f239,meta:_0x24d440}of this['_findSuggestions'](_0x110d83,'deletion'))_0x24d440['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24d440['containsRangeInObject']&&!_0x24d440['isInsideObject'])&&qt(_0x48f239,_0x4bbfac)&&_0x1d3b26['add'](_0x48f239);for(const _0x514db7 of _0x1d3b26){const _0x36708c=_0x514db7['getRanges']();if(!_0x4bbfac||!_0x4bbfac['skipNestingCheck']){if(_0x110d83['every'](_0x1ac4ed=>_0x36708c['some'](_0x3bc3da=>_0x3bc3da['containsRange'](_0x1ac4ed,!0x0))))return _0x514db7;}(!_0x514db7['attributes']||!_0x514db7['attributes']['skipNestingCheck'])&&(_0x36708c['every'](_0x9030fd=>_0x110d83['some'](_0x151df0=>_0x151df0['containsRange'](_0x9030fd,!0x0)))&&_0x514db7['discard']());}const _0x1d68c9=_0x3620ad(),_0x114444=_0x1481ea['id'],_0x15eca7='deletion:'+_0x1dd7e0,_0x4a9708=this['_setSuggestionData']({'id':_0x1d68c9,'type':_0x15eca7,'createdAt':new Date(),'authorId':_0x114444,'attributes':_0x4bbfac});for(const _0xa17915 of _0x110d83)_0xa17915['detach'](),_0xa17915['isCollapsed']||'$graveyard'==_0xa17915['root']['rootName']||this['_addSuggestionMarker'](_0x15eca7,_0x1d68c9,_0x114444,_0xa17915,u['getMultiRangeId']());return _0x4a9708;}['markAttributeChange'](_0x4d4539,_0x134f88,_0x28b85,_0x49348c,_0x30beb8){if(_0x4d4539['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x556dfd=this['editor']['plugins']['get']('Users')['me']['id'],_0x547c04=Array['from'](this['_suggestions']['values']())['filter'](_0x11cfd5=>'attribute'==_0x11cfd5['type']&&_0x11cfd5['data']['key']==_0x134f88&&_0x11cfd5['isIntersectingWithRange'](_0x4d4539));if('default'===this['_trackFormatChanges']){const _0x48a98b=this['_findSuggestions'](_0x4d4539,'insertion')['filter'](({meta:_0x47146b})=>_0x47146b['isOwn']&&!_0x47146b['isInsideObject']&&!_0x47146b['isNextTo'])['map'](({suggestion:_0x28a230})=>_0x28a230);_0x547c04['unshift'](..._0x48a98b);}const _0x3e616c=new Map([[_0x4d4539,_0x28b85]]);for(const _0x538804 of _0x547c04){const _0x31ba30='attribute'==_0x538804['type']?_0x538804['data']['oldValue']:void 0x0,_0x388ce3=_0x538804['getFirstRange'](),_0x30c427=Array['from'](_0x3e616c['keys']())['find'](_0x108e9a=>_0x108e9a['isIntersecting'](_0x388ce3));if(!_0x30c427)continue;const _0x991517=_0x30c427['getDifference'](_0x388ce3);this['_isBlockAttribute'](_0x134f88)&&'insertion'==_0x538804['type']&&0x0!=_0x991517['length']||(_0x3e616c['delete'](_0x30c427),_0x991517['forEach'](_0x2e92a9=>{_0x3e616c['set'](_0x2e92a9,_0x28b85);}),'insertion'!=_0x538804['type']&&_0x31ba30!=_0x49348c&&_0x3e616c['set'](_0x30c427['getIntersection'](_0x388ce3),_0x31ba30));}const _0x5c85da=[];for(const [_0x1cceef,_0x424927]of _0x3e616c){const _0x48cd71=_0x3620ad(),_0x561411={'key':_0x134f88,'oldValue':_0x424927,'newValue':_0x49348c};_0x134f88['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':_0x134f88});const _0x2b0796=('attribute:'+(_0x134f88+'|'+Gt({'newValue':_0x49348c})))['substring'](0x0,0x3c),_0x124139=this['_setSuggestionData']({'id':_0x48cd71,'type':_0x2b0796,'data':_0x561411,'createdAt':new Date(),'authorId':_0x556dfd,'attributes':_0x30beb8});_0x5c85da['push'](_0x124139),this['_addSuggestionMarker'](_0x2b0796,_0x48cd71,_0x556dfd,_0x1cceef);}return _0x5c85da;}['enableDefaultAttributesIntegration'](_0x23adb1){this['enableCommand'](_0x23adb1,(_0xe37f9c,..._0x3f1598)=>{this['_recordAttributeChanges'](()=>{_0xe37f9c(..._0x3f1598);});});}['registerBlockAttribute'](_0x137670){this['_blockAttributeKeys']['add'](_0x137670);}['registerInlineAttribute'](_0x49d8e2){this['_inlineAttributeKeys']['add'](_0x49d8e2);}['_getAttributeKey'](_0x169b1a){return'attribute'==_0x169b1a['type']?_0x169b1a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e0541,_0x590e62){const _0x5effe1=_0x3e0541['getFirstMarker']();this['_model']['change'](_0x3e6459=>{_0x3e6459['updateMarker'](_0x5effe1,{'range':_0x590e62});});}['_addThreadToSuggestion'](_0x8d1544){const _0x15a395=_0x8d1544['id'],_0x2c6b75=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x15a395)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c6b75,'threadId':_0x15a395,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cec84=this['_commentsRepository']['getCommentThread'](_0x15a395);_0x1cec84['unbind']('isRemovable'),_0x1cec84['isRemovable']=!0x1,_0x8d1544['commentThread']=_0x1cec84;}['_checkSuggestionCorrectness'](_0x42ca21,_0x2a15dc,_0xfd40f7,_0x535c4e){if(_0x42ca21['type']!=_0x2a15dc||_0x42ca21['subType']!=_0xfd40f7||_0x42ca21['creator']['id']!=_0x535c4e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x51bc83('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x55bc78,_0x38f7f7){const _0x10aacb=_0x55bc78['getFirstRange']();if(_0x38f7f7['isEqual'](_0x10aacb))_0x55bc78['removeMarkers']();else{if(_0x10aacb['containsRange'](_0x38f7f7)){const _0x1d44e8=this['_model']['createPositionAt'](_0x38f7f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x55bc78,this['_model']['createRange'](_0x10aacb['start'],_0x1d44e8));const _0x132b08=_0x3620ad(),_0x6e1d51=_0x55bc78['creator']['id'],_0x331d0a=_0x55bc78['type']+':'+_0x55bc78['subType'];this['_setSuggestionData']({'id':_0x132b08,'type':_0x331d0a,'createdAt':new Date(),'authorId':_0x6e1d51,'data':_0x55bc78['data'],'attributes':_0x55bc78['attributes']});const _0x467500=this['_model']['createPositionAt'](_0x38f7f7['end']['parent'],'after'),_0x23312e=this['_model']['createRange'](_0x467500,_0x10aacb['end']);this['_addSuggestionMarker'](_0x331d0a,_0x132b08,_0x6e1d51,_0x23312e);}else{if(_0x10aacb['containsPosition'](_0x38f7f7['start'])){const _0xb0e7f7=this['_model']['createPositionAt'](_0x38f7f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x55bc78,this['_model']['createRange'](_0x10aacb['start'],_0xb0e7f7));}else{const _0x1c3a8d=this['_model']['createPositionAt'](_0x38f7f7['end']['parent'],'after');this['_setSuggestionRange'](_0x55bc78,this['_model']['createRange'](_0x1c3a8d,_0x10aacb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3e7ecb){for(const {suggestion:_0x1da85f,meta:_0x5efbf5}of this['_findSuggestions'](_0x3e7ecb,'insertion')){if(!_0x5efbf5['isOwn'])continue;const _0x3ad384=_0x1da85f['getRanges']();for(const _0x49fa58 of _0x3ad384)if(!_0x3e7ecb['getDifference'](_0x49fa58)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x34bcc6){const _0x1924a3=this['editor']['plugins']['get']('Users')['getUser'](_0x34bcc6);if(!_0x1924a3)throw new _0x51bc83('track-changes-user-not-found',this);return _0x1924a3;}['_getExternalAuthor'](_0x157d94){const _0x38ca21=this['editor']['plugins']['get']('Users'),_0x4c74ea=_0x3fb96b('external:'+_0x157d94),_0x233004=_0x38ca21['getUser'](_0x4c74ea);return _0x233004||_0x38ca21['addUser']({'id':_0x4c74ea,'name':_0x157d94});}['_createSuggestion'](_0x311103,_0x3e1bd2,_0x425579,_0x433057,_0xc3e0cd){const _0x51e785=this['_getAuthorFromId'](_0x433057),_0x150e6a=this['_suggestionFactory']['buildSuggestion'](_0x311103,_0x3e1bd2,_0x425579,_0x51e785,_0xc3e0cd,_0x4df5b3=>{this['_updateSuggestionData'](_0x425579,{'attributes':_0x4df5b3});const _0x5de51a=this['getSuggestion'](_0x425579);this['_joinWithAdjacentSuggestions'](new Set([_0x5de51a])),this['_refreshSuggestionsChain'](new Set([_0x5de51a]));});return this['listenTo'](_0x150e6a,'accept',()=>{this['_updateSuggestionData'](_0x425579,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x150e6a,'discard',()=>{this['_updateSuggestionData'](_0x425579,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x425579,_0x150e6a),this['_suggestionState']['set'](_0x150e6a,'notReady'),_0x150e6a;}['_splitMarkerName'](_0x5b6798){const _0x13d561=_0x5b6798['split'](':');return{'group':_0x13d561[0x0],'type':_0x13d561[0x1],'subType':_0x13d561['length']>=0x5?_0x13d561[0x2]:null,'id':_0x13d561['length']<0x5?_0x13d561[0x2]:_0x13d561[0x3],'authorId':_0x13d561['length']<0x5?_0x13d561[0x3]:_0x13d561[0x4],'markerCount':0x6==_0x13d561['length']?_0x13d561[0x5]:null};}['_breakSuggestionMarker'](_0x31198a,_0x4ce38c,_0x510f3e){const _0x15f2fe=_0x31198a['getFirstRange'](),_0x925f98=_0x15f2fe['start'],_0x4cb2fe=_0x15f2fe['end'];this['_setSuggestionRange'](_0x31198a,this['_model']['createRange'](_0x925f98,_0x4ce38c));const _0x5b3fb4=_0x3620ad(),_0x29e3a8=_0x31198a['creator']['id'],_0x57dc43=_0x31198a['type']+(_0x31198a['subType']?':'+_0x31198a['subType']:'');this['_setSuggestionData']({'id':_0x5b3fb4,'type':_0x57dc43,'createdAt':new Date(),'authorId':_0x29e3a8,'originalSuggestionId':_0x31198a['id'],'attributes':_0x31198a['attributes'],'data':_0x31198a['data']});const _0x552d99=this['_getAttributeKey'](_0x31198a);('formatBlock'==_0x31198a['type']||_0x552d99&&this['_isBlockAttribute'](_0x552d99))&&(_0x510f3e=this['_model']['createPositionBefore'](_0x510f3e['parent'])),this['_addSuggestionMarker'](_0x57dc43,_0x5b3fb4,_0x29e3a8,this['_model']['createRange'](_0x510f3e,_0x4cb2fe));}['_findSuggestions'](_0x1de6c4,_0x33db9c=null){const _0x1c9eba=[],_0xdbcf2a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1de6c4)||(_0x1de6c4=[_0x1de6c4]);for(const _0x7e5717 of this['getSuggestions']()){if(!_0x7e5717['isInContent'])continue;if(_0x33db9c&&_0x7e5717['type']!=_0x33db9c)continue;let _0x283ced=!0x1;for(const _0x5085ca of _0x7e5717['getRanges']()){for(const _0x2f2bb4 of _0x1de6c4){const _0x386a8d=_0x2f2bb4['start']['isEqual'](_0x5085ca['end'])||_0x2f2bb4['end']['isEqual'](_0x5085ca['start']);if(_0x386a8d||_0x2f2bb4['getIntersection'](_0x5085ca)){const _0x31393a=_0x2f2bb4['containsRange'](_0x5085ca)&&Ot(this['_model']['schema'],_0x5085ca['start'],_0x2f2bb4),_0x465e3c=_0x5085ca['containsRange'](_0x2f2bb4)&&Ot(this['_model']['schema'],_0x2f2bb4['start'],_0x5085ca);_0x1c9eba['push']({'suggestion':_0x7e5717,'meta':{'isOwn':_0xdbcf2a==_0x7e5717['author'],'isNextTo':_0x386a8d,'isInsideObject':_0x31393a,'containsRangeInObject':_0x465e3c}}),_0x283ced=!0x0;break;}}if(_0x283ced)break;}}return _0x1c9eba;}['_addSuggestionMarker'](_0x1f4203,_0x4d1a53,_0x21d787,_0x164562,_0x53fd9f){this['_model']['change'](_0x5e518d=>{let _0x1e6586='suggestion:'+_0x1f4203+':'+_0x4d1a53+':'+_0x21d787;_0x53fd9f&&(_0x1e6586=_0x1e6586+':'+_0x53fd9f),_0x5e518d['addMarker'](_0x1e6586,{'range':_0x164562,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x528f03){const _0x4e3d93=_0x528f03['previous'],_0x5917f0=_0x528f03['next'];_0x528f03['previous']=null,_0x528f03['next']=null,null!=_0x4e3d93&&_0x4e3d93['next']==_0x528f03&&(_0x4e3d93['next']=_0x5917f0),null!=_0x5917f0&&_0x5917f0['previous']==_0x528f03&&(_0x5917f0['previous']=_0x4e3d93),'ready'==this['_suggestionState']['get'](_0x528f03)&&(this['_suggestionState']['set'](_0x528f03,'removed'),this['fire']('suggestionUnloaded',_0x528f03,_0x4e3d93,_0x5917f0));}['_setSuggestionData'](_0x5848ef){const _0x31b162=_0x5848ef['id'],_0x4748ab=this['addSuggestionData'](_0x5848ef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x421b59=this['editor']['plugins']['get']('PendingActions'),_0x18d767=_0x4748ab['hasComments'],_0x466005=_0x4748ab['subType']?_0x4748ab['type']+':'+_0x4748ab['subType']:_0x4748ab['type'],_0x39f22a=this['editor']['locale'],_0x49d91e=_0x421b59['add'](o(_0x39f22a,'PENDING_ACTION_SUGGESTION')),_0x26e86f={'id':_0x31b162,'type':_0x466005,'hasComments':_0x18d767,'data':_0x5848ef['data']||null,'originalSuggestionId':_0x5848ef['originalSuggestionId']||null,'attributes':_0x4748ab['attributes']};this['_adapter']['addSuggestion'](_0x26e86f)['then'](_0x4ee887=>{_0x4748ab['_saved']=!0x0,_0x421b59['remove'](_0x49d91e),_0x4ee887&&_0x4ee887['createdAt']&&(this['_suggestions']['get'](_0x31b162)['createdAt']=_0x4ee887['createdAt']);})['catch'](_0x2de114=>{throw _0x316ce7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4748ab['discard']();}),_0x4748ab['stopListening'](),this['_suggestions']['delete'](_0x4748ab['id']),this['_suggestionState']['delete'](_0x4748ab),_0x2de114;});}return _0x4748ab;}['_isBlockAttribute'](_0x5779c6){return this['_blockAttributeKeys']['has'](_0x5779c6);}['_updateSuggestionData'](_0x532342,_0x4f50b3){const _0xa450e9=this['editor']['plugins']['get']('PendingActions'),_0x4b0efb=this['getSuggestion'](_0x532342);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b0efb['_saved']){const _0x37c4ca=_0xa450e9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x532342,_0x4f50b3)['then'](()=>{_0xa450e9['remove'](_0x37c4ca);});}else _0x4b0efb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x532342,_0x4f50b3);});}}['_getSuggestionData'](_0x13b66b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x51bc83('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x13b66b);}['_handleNewSuggestionMarker'](_0x2a6e8c){const {id:_0x234660,type:_0x20da52,subType:_0x26008a,authorId:_0x242815}=this['_splitMarkerName'](_0x2a6e8c),_0x2fa440=this['_suggestions']['get'](_0x234660)||this['_createSuggestion'](_0x20da52,_0x26008a,_0x234660,_0x242815,{});switch(this['_checkSuggestionCorrectness'](_0x2fa440,_0x20da52,_0x26008a,_0x242815),this['_suggestionState']['get'](_0x2fa440)){case'notReady':this['_getSuggestionData'](_0x234660)['then'](_0x466c53=>{let _0x351e5f=Promise['resolve']();_0x466c53['hasComments']&&(_0x351e5f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x234660})),_0x351e5f['then'](()=>{this['addSuggestionData'](_0x466c53)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2fa440,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x234660,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2fa440,'ready'),this['fire']('suggestionLoaded',_0x2fa440);break;case'ready':this['fire']('suggestionChanged',_0x2fa440);}return _0x2fa440['addMarkerName'](_0x2a6e8c),_0x2fa440;}['_refreshSuggestionsChain'](_0x2c46c1){const _0x14a89a=Array['from'](_0x2c46c1),_0x8f9333=_0x14a89a['filter'](_0x1fff6b=>'attribute'==_0x1fff6b['type']);this['_refreshAttributeSuggestionsChain'](_0x8f9333);const _0x42162e=_0x14a89a['filter'](_0x2a26a0=>!_0x2a26a0['isMultiRange']&&'attribute'!=_0x2a26a0['type']),_0xeee679=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d8a24=>!_0x5d8a24['isMultiRange']&&'attribute'!=_0x5d8a24['type']),_0x4f002c=_0xeee679['filter'](_0x4a9608=>!_0x2c46c1['has'](_0x4a9608)),_0x24e605=new Map(_0xeee679['map'](_0x14fc25=>[_0x14fc25,this['_suggestionFactory']['getSuggestionCallback'](_0x14fc25['type'],_0x14fc25['subType'],'chain')])),_0x21694d=new Map(_0xeee679['map'](_0x901d69=>[_0x901d69,_0x901d69['getFirstRange']()])),_0x484f34=new Set(),_0x4a389c=new Set();for(let _0x135d89=0x0;_0x135d89<_0x42162e['length'];_0x135d89++)_0xa0c4f6(_0x42162e[_0x135d89],_0x42162e,_0x135d89+0x1);for(let _0xc2c51b=0x0;_0xc2c51b<_0x42162e['length'];_0xc2c51b++)_0xa0c4f6(_0x42162e[_0xc2c51b],_0x4f002c,0x0);const _0x26d86e=new Set();for(let _0x322fbb=0x0;_0x322fbb<_0x42162e['length'];_0x322fbb++){const _0x4165f9=_0x42162e[_0x322fbb];!_0x4a389c['has'](_0x4165f9)&&_0x4165f9['previous']&&(_0x26d86e['add'](_0x4165f9['previous']),_0x4165f9['previous']['next']===_0x4165f9&&(_0x4165f9['previous']['next']=null),_0x4165f9['previous']=null),!_0x484f34['has'](_0x4165f9)&&_0x4165f9['next']&&(_0x26d86e['add'](_0x4165f9['next']),_0x4165f9['next']['previous']===_0x4165f9&&(_0x4165f9['next']['previous']=null),_0x4165f9['next']=null);}function _0xa0c4f6(_0x51d279,_0x342b16,_0x254a76){for(let _0x108d36=_0x254a76;_0x108d36<_0x342b16['length'];_0x108d36++){const _0x422d49=_0x396c09(_0x51d279,_0x342b16[_0x108d36]);_0x422d49&&(_0x422d49[0x0]['next']=_0x422d49[0x1],_0x422d49[0x1]['previous']=_0x422d49[0x0],_0x484f34['add'](_0x422d49[0x0]),_0x4a389c['add'](_0x422d49[0x1]));}}function _0x396c09(_0x127c10,_0x5387d7){if(_0x127c10['author']['id']!==_0x5387d7['author']['id'])return null;const _0x598be3=_0x24e605['get'](_0x127c10)(_0x127c10,_0x5387d7,_0x21694d['get'](_0x127c10),_0x21694d['get'](_0x5387d7));if(!_0x598be3)return null;return _0x24e605['get'](_0x5387d7)(_0x127c10,_0x5387d7,_0x21694d['get'](_0x127c10),_0x21694d['get'](_0x5387d7))?_0x598be3[0x1]['commentThread']&&_0x598be3[0x1]['commentThread']['length']?null:_0x598be3:null;}_0x26d86e['size']&&this['_refreshSuggestionsChain'](_0x26d86e);}['_refreshAttributeSuggestionsChain'](_0x19f0ce){if(0x0==_0x19f0ce['length'])return;const _0x331e37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x599278=>'attribute'==_0x599278['type']&&_0x599278['_isDataLoaded']),_0x1e7cd8=[],_0x224c2d=new Map();for(const _0x81e792 of _0x331e37){const _0x3e744f=_0x3fb96b(_0x81e792['attributes']);_0x224c2d['has'](_0x3e744f)||(_0x224c2d['set'](_0x3e744f,_0x1e7cd8['length']),_0x1e7cd8['push']([]));const _0x5b2646=_0x224c2d['get'](_0x3e744f);_0x1e7cd8[_0x5b2646]['push'](_0x81e792);}!(function(){_0x1e7cd8['sort']((_0x43f3d3,_0x33c66e)=>{const _0x48ceba=_0x43f3d3[0x0]['createdAt'],_0x93b0d5=_0x33c66e[0x0]['createdAt'];return _0x48ceba==_0x93b0d5?_0x43f3d3[0x0]['attributes']['groupId']<_0x33c66e[0x0]['attributes']['groupId']?-0x1:0x1:_0x48ceba<_0x93b0d5?-0x1:0x1;});for(const _0xa8f352 of _0x1e7cd8)_0xa8f352['sort']((_0x55d2fa,_0x338b93)=>_0x55d2fa['id']<_0x338b93['id']?-0x1:0x1);}());for(let _0x186c6a=0x0;_0x186c6a<_0x1e7cd8['length'];_0x186c6a++){if(0x0==_0x1e7cd8[_0x186c6a]['length'])continue;const _0x21fead=[];for(let _0x15f546=_0x186c6a+0x1;_0x15f546<_0x1e7cd8['length'];_0x15f546++)0x0!=_0x1e7cd8[_0x15f546]['length']&&_0x6d398e(_0x1e7cd8[_0x186c6a],_0x1e7cd8[_0x15f546])&&_0x21fead['push'](_0x15f546);for(const _0x406822 of _0x21fead)_0x1e7cd8[_0x186c6a]=_0x1e7cd8[_0x186c6a]['concat'](_0x1e7cd8[_0x406822]),_0x1e7cd8[_0x406822]=[];}for(const _0x2f9b65 of _0x1e7cd8)for(let _0x56dc56=0x0;_0x56dc56<_0x2f9b65['length'];_0x56dc56++){const _0x124dcd=_0x2f9b65[_0x56dc56+0x1]||null;_0x2f9b65[_0x56dc56]['next']!==_0x124dcd&&(_0x2f9b65[_0x56dc56]['next']=_0x124dcd);}for(const _0x4d9325 of _0x1e7cd8)for(let _0x119c99=0x0;_0x119c99<_0x4d9325['length'];_0x119c99++){const _0x5d88ba=_0x4d9325[_0x119c99-0x1]||null;_0x4d9325[_0x119c99]['previous']!==_0x5d88ba&&(_0x4d9325[_0x119c99]['previous']=_0x5d88ba);}function _0x6d398e(_0x67d21b,_0x421419){if(_0x67d21b[0x0]['attributes']['groupId']!==_0x421419[0x0]['attributes']['groupId']&&_0x67d21b[0x0]['author']!==_0x421419[0x0]['author'])return!0x1;if(!function(_0x15bb13,_0x2d6196){if(!_0x15bb13['hasComments']&&!_0x2d6196['hasComments'])return!0x0;if(_0x15bb13['hasComments']&&_0x2d6196['hasComments'])return!0x1;if(_0x15bb13['hasComments']&&_0x2d6196['createdAt']<_0x15bb13['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2d6196['hasComments']&&_0x15bb13['createdAt']<_0x2d6196['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x67d21b[0x0],_0x421419[0x0]))return!0x1;const _0x1044aa=Tt(_0x67d21b[0x0]['attributes'],'groupId'),_0x5e8301=Tt(_0x421419[0x0]['attributes'],'groupId');if(!_0x2ec426(_0x1044aa,_0x5e8301))return!0x1;return!!_0x67d21b['every'](_0x28efd0=>_0x421419['some'](_0x11fdac=>_0x28efd0['getFirstRange']()['isEqual'](_0x11fdac['getFirstRange']())))&&_0x421419['every'](_0x4b8a92=>_0x67d21b['some'](_0x4a3f69=>_0x4b8a92['getFirstRange']()['isEqual'](_0x4a3f69['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x32d1ab){const _0xdb8862=Array['from'](_0x32d1ab),_0x47f24d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x56e160=_0x47f24d['filter'](_0x5cf463=>!_0x32d1ab['has'](_0x5cf463)),_0x5818be=new Map(_0xdb8862['map'](_0x10efec=>[_0x10efec,this['_suggestionFactory']['getSuggestionCallback'](_0x10efec['type'],_0x10efec['subType'],'join')])),_0x57046d=new Map(_0x47f24d['map'](_0x33f44d=>[_0x33f44d,_0x33f44d['getRanges']()]));for(let _0x4f6151=0x0;_0x4f6151<_0xdb8862['length'];_0x4f6151++){if(_0x4932e9(this,_0xdb8862[_0x4f6151],_0xdb8862,_0x4f6151+0x1))return!0x0;}for(let _0x50464e=0x0;_0x50464e<_0xdb8862['length'];_0x50464e++){if(_0x4932e9(this,_0xdb8862[_0x50464e],_0x56e160,0x0))return!0x0;}return!0x1;function _0x4932e9(_0x5d5ec1,_0x3e5d80,_0x36a1c2,_0x2fb3d3){for(let _0x3029ab=_0x2fb3d3;_0x3029ab<_0x36a1c2['length'];_0x3029ab++){const _0x26b608=_0x36a1c2[_0x3029ab];if(_0x26b608['type']!==_0x3e5d80['type']||_0x26b608['author']['id']!==_0x3e5d80['author']['id']||_0x26b608['subType']!==_0x3e5d80['subType'])continue;if(!Jt(_0x3e5d80,_0x26b608))continue;if('attribute'==_0x3e5d80['type']&&_0x3e5d80['data']['oldValue']!=_0x26b608['data']['oldValue'])continue;if('attribute'==_0x3e5d80['type']&&_0x5d5ec1['_isBlockAttribute'](_0x3e5d80['data']['key']))continue;if('formatBlock'==_0x3e5d80['type']){const _0x3e71ce=_0x5d5ec1['editor']['model'],_0x398392=_0x3e5d80['getContainedElement']();if(_0x398392&&(_0x3e71ce['schema']['isObject'](_0x398392)||_0x3e71ce['schema']['isLimit'](_0x398392)))continue;}const _0x413f2e=_0x5818be['get'](_0x3e5d80),_0x559011=_0x57046d['get'](_0x3e5d80),_0x3e41b7=_0x57046d['get'](_0x26b608),_0x53162e=_0x3e5d80['commentThread']&&_0x3e5d80['commentThread']['length'],_0x5bc7ef=_0x26b608['commentThread']&&_0x26b608['commentThread']['length'];if(!_0x53162e&&_0x413f2e(_0x3e41b7,_0x559011))return _0x5d5ec1['_joinSuggestions'](_0x26b608,_0x3e5d80),_0x57046d['delete'](_0x3e5d80),!0x0;if(!_0x5bc7ef&&_0x413f2e(_0x559011,_0x3e41b7))return _0x5d5ec1['_joinSuggestions'](_0x3e5d80,_0x26b608),_0x57046d['delete'](_0x26b608),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2d7860,_0x28c43e){if(_0x2d7860['isMultiRange']){for(const _0x3b9529 of _0x28c43e['getRanges']())_0x2d7860['addRange'](_0x3b9529);}else{const _0x12abd2=_0x28c43e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2d7860,this['_model']['createRange'](_0x2d7860['getFirstRange']()['start'],_0x12abd2));}_0x28c43e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x26c045,_0x59ecdd,_0x4c0791){const _0x3481dd=_0x26c045['startsWith']('format')||_0x26c045['startsWith']('attribute')?'FORMATTING':_0x26c045['toUpperCase']();return o(this['editor']['locale'],_0x59ecdd+'_'+_0x3481dd+'_SUGGESTION_ANNOUNCEMENT',_0x4c0791);}['_initAriaMarkerChangeAnnouncements'](){const _0x30b036=this['editor'];if(!_0x30b036['ui'])return;const {ariaLiveAnnouncer:_0x29277c}=_0x30b036['ui'];_0xcc9e00(this['_model'],({left:_0x4b6b05,entered:_0x1bcc6f})=>{for(const _0x272ba0 of _0x4b6b05){const {group:_0x51baaa,type:_0x319a52}=this['_splitMarkerName'](_0x272ba0['name']);if('suggestion'===_0x51baaa){_0x29277c['announce'](this['_getMarkerAnnouncementText'](_0x319a52,'LEAVE'));break;}}for(const _0x1e8f2d of _0x1bcc6f){const {group:_0x2c7d99,type:_0xe82df9}=this['_splitMarkerName'](_0x1e8f2d['name']);if('suggestion'===_0x2c7d99){_0x29277c['announce'](this['_getMarkerAnnouncementText'](_0xe82df9,'ENTER',_0x1c74cc(_0x3f9eab)));break;}}});}['_processAttributeChanges'](_0x336ca9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x990b73=this['editor'],_0x304f9b=_0x990b73['model']['document']['differ']['getChanges']();if(0x0==_0x304f9b['length'])return!0x1;const _0x2fcf9c=[],_0x36532b=_0x304f9b['filter'](_0x120e54=>'attribute'==_0x120e54['type']),_0x4e8f74=_0x304f9b['filter'](_0x5b907a=>'insert'==_0x5b907a['type']&&'$text'!=_0x5b907a['name']),_0x1304bb=_0x304f9b['filter'](_0x535866=>'remove'==_0x535866['type']&&'$text'!=_0x535866['name']);for(const _0x1af658 of _0x36532b)_0x2fcf9c['push']({'key':_0x1af658['attributeKey'],'newValue':_0x1af658['attributeNewValue'],'oldValue':_0x1af658['attributeOldValue'],'range':Pt(_0x1af658['range'],_0x990b73['model'])});for(const _0x3d5016 of _0x4e8f74){const _0x18e0a1=_0x1304bb['find'](_0x5358cc=>_0x5358cc['position']['isEqual'](_0x3d5016['position']));_0x18e0a1&&_0x2fcf9c['push']({'key':m,'newValue':_0x3d5016['name'],'oldValue':_0x18e0a1['name'],'range':_0x990b73['model']['createRangeOn'](_0x3d5016['position']['nodeAfter'])});}return 0x0!=_0x2fcf9c['length']&&this['_reduceExistingSuggestions'](_0x336ca9,_0x2fcf9c);}['_processAttributeSuggestions'](_0x53e1a2){let _0x9340e6=!0x1;const _0x14ee1b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe88848=>_0xe88848['data']['newRange']&&_0xe88848['name']['startsWith']('suggestion:attribute:'));for(const _0x556d60 of _0x14ee1b){const {subType:_0x27c1a5,id:_0x910a0e}=this['_splitMarkerName'](_0x556d60['name']),_0x476789=_0x27c1a5['split']('|')[0x0];for(const _0xa77967 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xa77967['id']!=_0x910a0e&&'attribute'==_0xa77967['type']&&_0xa77967['data']&&_0xa77967['data']['key']==_0x476789&&_0xa77967['getFirstRange']()['isIntersecting'](_0x556d60['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xa77967,_0x556d60['data']['newRange'],_0x53e1a2),_0x9340e6=!0x0);}return _0x9340e6;}['_recordAttributeChanges'](_0x5a8f71){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5a8f71();}['_isRegisteredAttribute'](_0x4d6d24){const _0x512714=this['_isBlockAttribute'](_0x4d6d24),_0x1fefb0=this['_inlineAttributeKeys']['has'](_0x4d6d24);return _0x512714||_0x1fefb0;}['_reduceExistingSuggestions'](_0x376ba7,_0x7f6e7f){if(0x0==_0x7f6e7f['length'])return!0x1;let _0x53b43f=!0x1;for(const _0x1a57d3 of _0x7f6e7f){const _0x47eb77=this['_findSuggestions'](_0x1a57d3['range'],'attribute')['filter'](_0x2285fd=>!_0x2285fd['meta']['isNextTo'])['map'](_0x2a2658=>_0x2a2658['suggestion']),_0x16bb5f=_0x3fb96b({'newValue':_0x1a57d3['newValue']});_0x47eb77['filter'](_0x347cf2=>{const [_0x1f0678,_0x1c0840]=_0x347cf2['subType']['split']('|');return _0x1f0678==_0x1a57d3['key']&&_0x1c0840!=_0x16bb5f;})['forEach'](_0x2372a8=>{this['_reduceSuggestionAttributeRange'](_0x2372a8,_0x1a57d3['range'],_0x376ba7),_0x53b43f=!0x0;});}return _0x53b43f;}['_reduceSuggestionAttributeRange'](_0xf22906,_0x480c73,_0xa23415){const _0x18f137=_0xf22906['getFirstRange']()['getDifference'](_0x480c73);0x0!==_0x18f137['length']?0x1!==_0x18f137['length']?this['_breakSuggestionMarker'](_0xf22906,_0x480c73['start'],_0x480c73['end']):this['_setSuggestionRange'](_0xf22906,_0x18f137[0x0]):_0xa23415['removeMarker'](_0xf22906['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x23ac55){this['_editor']=_0x23ac55,this['_model']=_0x23ac55['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e62ba,_0x3198ec,_0x4c489c,_0x51fbb5,_0x66205f,_0x770c0f){return new u(this['_model'],{'type':_0x2e62ba,'subType':_0x3198ec,'id':_0x4c489c,'author':_0x51fbb5,'creator':_0x51fbb5,'attributes':_0x66205f,'onAttributesChange':_0x770c0f,'onAccept':(..._0x575c27)=>this['getSuggestionCallback'](_0x2e62ba,_0x3198ec,'accept')(..._0x575c27),'onDiscard':(..._0x1e99ae)=>this['getSuggestionCallback'](_0x2e62ba,_0x3198ec,'discard')(..._0x1e99ae)});}['registerCustomCallback'](_0x4bcea9,_0x52da0f,_0x42c6c5,_0x1a061a){const _0x16e7b7=_0x4bcea9+':'+_0x52da0f+':'+_0x42c6c5;this['_customCallbacks']['set'](_0x16e7b7,_0x1a061a);}['getSuggestionCallback'](_0x17962a,_0x5fb98a,_0x300840){const _0x16151e=_0x17962a+':'+_0x5fb98a+':'+_0x300840;return this['_customCallbacks']['get'](_0x16151e)||this['_defaultCallbacks']['get'](_0x17962a+':'+_0x300840);}['_registerDefaultCallbacks'](){const _0x35a4aa=()=>!0x1,_0x3649bb=_0x73c055=>{_0x73c055['sort']((_0x5d72ae,_0x49095c)=>_0x5d72ae['start']['isBefore'](_0x49095c['start'])?0x1:-0x1),this['_model']['change'](_0x257327=>{for(const _0x35741a of _0x73c055){let _0x2e986d;_0x2e986d=_0x35741a['end']['isAtEnd']&&_0x35741a['end']['parent']==_0x35741a['start']['nodeAfter']?_0x257327['createSelection'](_0x35741a['start']['nodeAfter'],'on'):_0x257327['createSelection'](_0x35741a),this['_model']['deleteContent'](_0x2e986d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x480ace=(_0x33d5a8,_0x3feb06)=>{_0x3feb06&&this['_model']['change'](_0x46e2df=>{const {commandName:_0x64adb2,commandParams:_0x4505c6=[]}=_0x3feb06,_0xc3e25e=_0x33d5a8['map'](_0x4b2432=>(Vt(_0x4b2432)&&(_0x4b2432=this['_model']['createRange'](_0x4b2432['end'])),_0x4b2432))['filter'](_0x2fd249=>'$graveyard'!==_0x2fd249['root']['rootName']);if(_0xc3e25e['length']<0x1)return;const _0x5c0757=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4f25d7=>_0xfd736c['fromRange'](_0x4f25d7));_0x46e2df['setSelection'](_0xc3e25e);for(const _0x5ca9db of this['_editor']['commands']['commands']())_0x5ca9db['refresh']();_0x4505c6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x64adb2,..._0x4505c6);const _0x2ee963=_0x5c0757['filter'](_0x11e7dd=>'$graveyard'!=_0x11e7dd['root']['rootName']);_0x2ee963['length']>0x0&&_0x46e2df['setSelection'](_0x2ee963);for(const _0x5b5b1a of _0x5c0757)_0x5b5b1a['detach']();});},_0x18e9f2=(_0x10cf90,_0x24c6d8)=>0x1==_0x10cf90['length']&&0x1==_0x24c6d8['length']&&_0x10cf90[0x0]['end']['isEqual'](_0x24c6d8[0x0]['start']),_0x33676f=(_0x3441db,_0x309a18,_0x5553af,_0x3c3a0a)=>Ht(_0x3441db,_0x309a18,_0x5553af,_0x3c3a0a,this['_model'])?[_0x3441db,_0x309a18]:Ht(_0x309a18,_0x3441db,_0x3c3a0a,_0x5553af,this['_model'])?[_0x309a18,_0x3441db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35a4aa),this['_defaultCallbacks']['set']('insertion:discard',_0x3649bb),this['_defaultCallbacks']['set']('insertion:join',_0x18e9f2),this['_defaultCallbacks']['set']('insertion:chain',_0x33676f),this['_defaultCallbacks']['set']('deletion:accept',_0x3649bb),this['_defaultCallbacks']['set']('deletion:discard',_0x35a4aa),this['_defaultCallbacks']['set']('deletion:join',_0x18e9f2),this['_defaultCallbacks']['set']('deletion:chain',_0x33676f),this['_defaultCallbacks']['set']('formatInline:accept',_0x480ace),this['_defaultCallbacks']['set']('formatInline:discard',_0x35a4aa),this['_defaultCallbacks']['set']('formatInline:join',_0x18e9f2),this['_defaultCallbacks']['set']('formatInline:chain',_0x35a4aa),this['_defaultCallbacks']['set']('formatBlock:accept',_0x480ace),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35a4aa),this['_defaultCallbacks']['set']('formatBlock:join',_0x18e9f2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35a4aa),this['_defaultCallbacks']['set']('attribute:accept',_0x35a4aa),this['_defaultCallbacks']['set']('attribute:discard',(_0x15f0e0,_0x1ba483)=>{if(!_0x1ba483)return;const _0x2e8334=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x11b07e=>{if(_0x1ba483['key']==m)for(const _0xfbe651 of _0x15f0e0){const _0x393bd9=_0xfbe651['start']['nodeAfter'],_0x54fd43=_0x1ba483['oldValue'];_0x11b07e['rename'](_0x393bd9,_0x54fd43);}else{if(_0x2e8334['_isBlockAttribute'](_0x1ba483['key'])){for(const _0x1249da of _0x15f0e0)void 0x0!==_0x1ba483['oldValue']?_0x11b07e['setAttribute'](_0x1ba483['key'],_0x1ba483['oldValue'],_0x1249da['start']['nodeAfter']):_0x11b07e['removeAttribute'](_0x1ba483['key'],_0x1249da['start']['nodeAfter']);}else{for(const _0x511252 of _0x15f0e0)_0x1ba483['oldValue']?_0x11b07e['setAttribute'](_0x1ba483['key'],_0x1ba483['oldValue'],_0x511252):_0x11b07e['removeAttribute'](_0x1ba483['key'],_0x511252);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x18e9f2);}}function Ot(_0x5f2314,_0x15ebfe,_0x56d8fc){for(const _0x4af7d2 of _0x15ebfe['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4af7d2['root']==_0x4af7d2)return!0x1;if(!_0x56d8fc['containsItem'](_0x4af7d2))return!0x1;if(_0x5f2314['isObject'](_0x4af7d2)||_0x5f2314['isLimit'](_0x4af7d2))return!0x0;}return!0x1;}function Vt(_0x7d0c3){return _0x7d0c3['end']['parent']==_0x7d0c3['start']['nodeAfter']&&_0x7d0c3['end']['isAtStart'];}function Ut(_0x1ab3e6,_0x56ec6f,_0x124b31,_0x40cba0){const _0x36e2ac=_0x19e046=>!_0x19e046['item']['is']('$textProxy')&&!_0x40cba0['isObject'](_0x19e046['item']),_0x139b20=_0x1ab3e6['start']['getLastMatchingPosition'](_0x36e2ac),_0x50148f=_0x1ab3e6['end']['getLastMatchingPosition'](_0x36e2ac,{'direction':'backward'});return(!_0x1ab3e6['start']['isEqual'](_0x139b20)||!_0x1ab3e6['end']['isEqual'](_0x50148f))&&(_0x139b20['isBefore'](_0x50148f)?_0x124b31['updateMarker'](_0x56ec6f,{'range':_0x124b31['createRange'](_0x139b20,_0x50148f)}):_0x124b31['removeMarker'](_0x56ec6f),!0x0);}function Gt(_0x4593f7){return _0x3fb96b(_0x4593f7);}function Ft(_0x7c2010){const _0x58abb1=_0x7c2010['start']['nodeAfter'];return _0x58abb1&&_0x58abb1['is']('element');}function Pt(_0x3d45e5,_0x3c9708){return null==_0x3d45e5['end']['nodeBefore']&&_0x3d45e5['end']['parent']==_0x3d45e5['start']['nodeAfter']?Lt(_0x3d45e5['start']['nodeAfter'],_0x3c9708):_0x3d45e5;}function Lt(_0x179181,_0x4d4910){const _0x42c933=_0x4d4910['schema']['isObject'](_0x179181)||_0x4d4910['schema']['isSelectable'](_0x179181);return _0x4d4910['createRange'](_0x4d4910['createPositionAt'](_0x179181,'before'),_0x42c933?_0x4d4910['createPositionAfter'](_0x179181):_0x4d4910['createPositionAt'](_0x179181,'end'));}function Ht(_0x333d33,_0x145e43,_0x2feea7,_0x406d55,_0x56daa3){if(_0x333d33['next'])return!0x1;if(!Jt(_0x333d33,_0x145e43))return!0x1;if(_0x2feea7['end']['isEqual'](_0x406d55['start']))return!0x0;if(_0x333d33['type']!=_0x145e43['type'])return!0x1;if(!_0x2feea7['end']['isTouching'](_0x406d55['start']))return!0x1;const _0x581b03=_0x56daa3['createRange'](_0x2feea7['end'],_0x406d55['start'])['getWalker']();for(const _0x48be6c of _0x581b03)if(['elementStart','elementEnd']['includes'](_0x48be6c['type'])&&_0x56daa3['schema']['isLimit'](_0x48be6c['item']))return!0x1;return!0x0;}function Jt(_0x4c1d59,_0x56d5c8){if(!_0x4c1d59['_isDataLoaded']||!_0x56d5c8['_isDataLoaded'])return!0x1;const _0x1e20d1=new Set(Object['keys'](_0x4c1d59['attributes'])),_0x4d89e=new Set(Object['keys'](_0x56d5c8['attributes']));if(_0x1e20d1['delete']('groupId'),_0x4d89e['delete']('groupId'),0x0==_0x1e20d1['size']&&0x0==_0x4d89e['size'])return!0x0;if(_0x1e20d1['size']!=_0x4d89e['size'])return!0x1;const _0x25e8a7={..._0x4c1d59['attributes']},_0x585c7c={..._0x56d5c8['attributes']};return delete _0x25e8a7['groupId'],delete _0x585c7c['groupId'],JSON['stringify'](_0x25e8a7)==JSON['stringify'](_0x585c7c);}function qt(_0x3c9ad7,_0x1acd55){const _0x3154c0=zt(_0x3c9ad7['attributes']),_0x29dd8e=zt(_0x1acd55);if(!_0x3c9ad7['_isDataLoaded'])return!0x1;for(const _0x359a12 of Object['keys'](_0x29dd8e))if(!_0x2ec426(_0x3154c0[_0x359a12],_0x29dd8e[_0x359a12]))return!0x1;return!0x0;}function zt(_0x5ce863){const _0x1a1c0d=Object['assign']({},_0x5ce863);return delete _0x1a1c0d['skipNestingCheck'],delete _0x1a1c0d['tablePasteChainId'],_0x1a1c0d;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x206d4d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40a7b5,_0x30e641,_0x4c182b,_0x37c83a){super(),this['model']=_0x30e641,this['view']=_0x4c182b,this['commentThreadController']=_0x37c83a,this['_editor']=_0x40a7b5,this['_acceptCommand']=_0x40a7b5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40a7b5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2eb437,_0x89f70)=>_0x2eb437||_0x89f70),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5bf82e=>_0x5bf82e&&this['_editor']['model']['canEditAt'](_0x30e641['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xdaccf=>_0xdaccf&&this['_editor']['model']['canEditAt'](_0x30e641['getRanges']())),this['_pendingAction']=null,_0x4c182b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4c182b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4c182b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4c182b,'change:isDirty',()=>{_0x4c182b['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 _0x418495=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x418495);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x11db69{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x59d550,_0x40d15c,_0x2d9e7b,_0x2fd522){super(_0x59d550),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d8508(_0x59d550,o(_0x59d550,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40d15c['authoredAt']),this['bind']('authoredAt')['to'](_0x40d15c),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',_0x40d15c,'authoredAt',this,'descriptionParts',(_0x55db30,_0xa7c601,_0x4974d0)=>{const _0x4cf082=_0x4974d0['map'](_0x541c14=>ls(_0x541c14['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55db30-0x1,_0x40d15c['author']['name'],_0xa7c601?_0x2fd522['formatDateTime'](_0xa7c601):'',new DOMParser()['parseFromString'](_0x4cf082,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf2f8d(),this['focusTracker']=new _0x577184(),this['keystrokes']=new _0x201eea(),this['focusCycler']=new _0x18b4cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x269a59=>_0x269a59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40d15c,this['_localUser']=_0x2d9e7b,this['_config']=_0x2fd522,_0x2fd522['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x484d72(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x27e652}=this['_config'];this['commentsListView']=new _0x27e652(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',_0x50514a=>_0x50514a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x38c663,_0x42625c)=>_0x38c663||!!_0x42625c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x826f8a}=this['_config'],_0x1edf10=new _0x826f8a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2a7814=_0x1edf10['commentInputView'];return _0x1edf10['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2a7814,'value',(_0x493225,_0x3cf4a8,_0x33c1a7)=>!!_0x33c1a7||_0x493225&&!_0x3cf4a8),_0x2a7814['on']('submit',(_0x4d8fe5,_0x5466b1)=>{this['fire']('addComment',_0x5466b1),_0x2a7814['editor']['setData']('');}),_0x2a7814['on']('cancel',()=>this['focus']()),_0x2a7814['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1edf10;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5b2d82,_0x598793,_0x35a8ec,_0x208370){super(_0x5b2d82,_0x598793,_0x35a8ec,_0x208370),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4ac657=>_0x4ac657&&_0x4ac657[0x0]?_0x4ac657[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3e6e32,_0x4fbcef)=>{let _0x1aefb4='';for(const _0x48257e of _0x3e6e32)_0x1aefb4+='<p>'+ls(_0x48257e['content'],_0x48257e['color'])+'</p>';return _0x4fbcef?_0x1aefb4:_0x5d69e1(_0x1aefb4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x208370['SuggestionView'](_0x5b2d82,_0x598793,{'formatDateTime':_0x208370['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 _0x12ac94=this['bindTemplate'],_0x21de3a=[this['suggestionView']];return this['commentsListView']&&_0x21de3a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21de3a['push'](this['commentThreadInputView']),_0x21de3a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12ac94['if']('isActive','ck-suggestion-wrapper--active'),_0x12ac94['to']('type',_0x389c8d=>'ck-suggestion-'+_0x389c8d),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':_0x12ac94['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21de3a};}['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 _0x11db69{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3c21e1,_0x2e89e3,_0x35f03d){super(_0x3c21e1),this['_model']=_0x2e89e3,this['_config']=_0x35f03d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2e89e3),this['acceptButton']=this['_createButton'](o(_0x3c21e1,'Accept\x20suggestion'),_0x1b6ff9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3c21e1,'Discard\x20suggestion'),_0x1b6ff9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1bd662(_0x3c21e1,_0x2e89e3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf2f8d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x577184(),this['keystrokes']=new _0x201eea(),this['focusCycler']=new _0x18b4cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5b9572=>_0x5b9572['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50ff9f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50ff9f['innerHTML']=this['description'],this['on']('change:description',(_0x2a3540,_0x434cc1,_0xceb968)=>{_0x50ff9f['innerHTML']=_0xceb968;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1fd796=this['bindTemplate'],_0x576e76=[{'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':_0x1fd796['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1fd796['to']('authoredAt',_0x44c1b5=>this['_config']['formatDateTime'](_0x44c1b5))}]}]},{'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']&&_0x576e76['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':_0x576e76}]};}['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'](_0x19a054,_0x13f4d8,_0x5a2b28,_0x4a4509,_0x22452c){const _0x5491e9=new _0x26b1d1(this['locale']);return _0x5491e9['set']({'label':_0x19a054,'icon':_0x13f4d8,'tooltip':!0x0,'tooltipPosition':_0x22452c}),_0x5491e9['extendTemplate']({'attributes':{'class':_0x5a2b28}}),_0x5491e9['on']('execute',()=>{this['fire'](_0x4a4509,this['_model']['id']);}),_0x5491e9;}['_setupKeyboardNavigation'](){const _0x3c208f=this['element'];this['keystrokes']['listenTo'](_0x3c208f);for(const _0xbc381c of this['focusables'])this['focusTracker']['add'](_0xbc381c['element']),this['keystrokes']['listenTo'](_0xbc381c['element']);this['keystrokes']['set']('enter',(_0xd63e90,_0x3c2b8b)=>{_0x3c208f===_0xd63e90['target']&&(this['focusCycler']['focusFirst'](),_0x3c2b8b());}),this['keystrokes']['set']('esc',(_0x2e3027,_0x2fe4c5)=>{_0x3c208f!==_0x2e3027['target']&&(this['focus'](),_0x2fe4c5());});}}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 _0x310a20{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x20783e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xa2f81f){super(_0xa2f81f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x177ddd=this['editor']['config'];_0x177ddd['define']('trackChanges.SuggestionThreadView',re),_0x177ddd['define']('trackChanges.SuggestionView',ce),_0x177ddd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x177ddd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x109b56,_0x34938c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2b01f2,_0x2bf1de]of this['_handleControllerBuffer']){const _0x354efa=this['_suggestionToController']['has'](_0x2b01f2);_0x354efa||_0x2bf1de?_0x354efa&&_0x2bf1de&&this['_destroyController'](_0x2b01f2):this['_initializeController'](_0x2b01f2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x109b56,_0x34938c);}['init'](){const _0x1d6076=this['editor'],_0x427c38=_0x1d6076['plugins']['get']('TrackChangesEditing'),_0x7a03b=_0x1d6076['plugins']['get']('Annotations'),_0x4143c5=_0x1d6076['plugins']['get']('EditorAnnotations'),_0x27ab6a=_0x1d6076['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4143c5['addSourceCollector'](()=>{const _0x9a2c64=[];for(const [_0x392d71,_0x59acab]of Array['from'](this['_suggestionToController'])){const _0x4a4171=_0x392d71['getAllAdjacentSuggestions'](),_0x2f0af6=[];for(const _0x30ed87 of _0x4a4171){if(!_0x30ed87['isInContent'])continue;if(_0x30ed87['isMultiRange']){_0x2f0af6['push'](..._0x30ed87['getRanges']());continue;}const _0x55d6cd=_0x30ed87['getFirstRange']();if(_0x2f0af6['length']>0x0){const _0x281f84=_0x2f0af6[0x0]['getJoined'](_0x55d6cd);if(_0x281f84){_0x2f0af6[0x0]=_0x281f84;continue;}}_0x2f0af6['push'](_0x55d6cd);}_0x9a2c64['push']([_0x59acab['view'],_0x2f0af6]);}return _0x9a2c64;}),this['listenTo'](_0x427c38,'suggestionLoaded',(_0x1f92cb,_0x538dc3)=>{this['listenTo'](_0x538dc3,'change:previous',(_0xb39991,_0x1c1611,_0x4db290,_0x5423a2)=>{_0x538dc3['isInContent']&&(null==_0x4db290?(this['_updateController'](_0x5423a2['head']),this['_handleSuggestionControllerDelayed'](_0x538dc3,!0x1)):(this['_updateController'](_0x4db290['head']),null==_0x5423a2&&this['_handleSuggestionControllerDelayed'](_0x538dc3,!0x0)));}),null!==_0x538dc3['previous']?this['_updateController'](_0x538dc3['head']):this['_handleSuggestionControllerDelayed'](_0x538dc3,!0x1);}),this['listenTo'](_0x427c38,'suggestionUnloaded',(_0x17d379,_0x2e4f01,_0x27723f)=>{this['stopListening'](_0x2e4f01,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e4f01),this['_suggestionToController']['has'](_0x2e4f01)&&this['_destroyController'](_0x2e4f01),_0x27723f&&this['_updateController'](_0x27723f['head']);}),this['listenTo'](_0x427c38,'suggestionChanged',(_0x2ddc53,_0x20d266)=>{this['_updateController'](_0x20d266);}),this['listenTo'](_0x7a03b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27ab6a,'addComment',(_0x483318,{threadId:_0x5ae206,isFromAdapter:_0x14ea08})=>{if(_0x14ea08||!_0x427c38['hasSuggestion'](_0x5ae206))return;const _0x39a4f7=_0x427c38['getSuggestion'](_0x5ae206);this['_suggestionToController']['get'](_0x39a4f7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2f8e70=this['editor']['plugins']['get']('Annotations'),_0x2813ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25355e=Array['from'](_0x2f8e70['activeAnnotations'],_0x7dcc01=>_0x7dcc01['innerView'])['filter'](_0x16338d=>this['_viewToController']['has'](_0x16338d)),_0x1990e9=[];for(const _0x503974 of _0x25355e){const _0x4d4ab0=this['_viewToController']['get'](_0x503974)['model']['getAllAdjacentSuggestions']();_0x1990e9['push'](..._0x4d4ab0['reduce']((_0x410237,_0xbe5959)=>[..._0x410237,..._0xbe5959['getMarkerNames']()],[]));}_0x2813ac['activeMarkers']=_0x1990e9;}['_addUIComponentsToFactory'](){const _0x38ee32=this['editor'],_0x3ca6c2=_0x38ee32['locale'],_0x5ea10e=o(_0x3ca6c2,'Track\x20changes'),_0x306e93=new Wt([{'type':'switchbutton','model':new _0x2ee0b2({'withText':!0x0,'isToggleable':!0x0,'label':_0x5ea10e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ee0b2({'withText':!0x0,'label':o(_0x3ca6c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1d3596 of _0x306e93)if(me(_0x1d3596)){const _0x11ee70=_0x38ee32['commands']['get'](_0x1d3596['model']['commandName']);_0x1d3596['model']['bind']('isOn','isEnabled')['to'](_0x11ee70,'value','isEnabled');}_0x38ee32['ui']['componentFactory']['add']('trackChanges',_0x502a5e=>this['_createToolbarButton'](_0x502a5e,_0x306e93,_0x5ea10e)),_0x38ee32['ui']['componentFactory']['add']('menuBar:trackChanges',_0x283346=>this['_createMenuBarMenu'](_0x283346,_0x306e93,_0x5ea10e));}['_createToolbarButton'](_0x59803a,_0x5bbd8d,_0x537bd2){const _0x1d34c8=Qt(_0x59803a,_0x5324d7),_0x179732=this['editor']['commands']['get']('trackChanges');_0x1d34c8['buttonView']['set']({'tooltip':_0x537bd2,'label':_0x537bd2,'icon':he}),_0x1d34c8['buttonView']['bind']('isOn')['to'](_0x179732,'value'),_0x1d34c8['buttonView']['on']('execute',()=>{_0x179732['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1d34c8,_0x5bbd8d,{'role':'menu'});const _0x49ce85=[];for(const _0x4b9bc7 of _0x5bbd8d)me(_0x4b9bc7)&&_0x49ce85['push'](this['editor']['commands']['get'](_0x4b9bc7['model']['commandName']));const _0x4197f5=_0x1d34c8['buttonView'];return _0x4197f5['actionView']['unbind']('isEnabled'),_0x4197f5['arrowView']['unbind']('isEnabled'),_0x4197f5['actionView']['bind']('isEnabled')['to'](_0x179732,'isEnabled'),_0x4197f5['arrowView']['bind']('isEnabled')['toMany'](_0x49ce85,'isEnabled',(..._0x500097)=>_0x500097['some'](_0x49aa39=>_0x49aa39)),_0x1d34c8['on']('execute',_0x409f09=>{this['editor']['execute'](_0x409f09['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1d34c8;}['_createMenuBarMenu'](_0x4d517b,_0x2c059b,_0x2e2723){const _0x106dba=new Yt(_0x4d517b),_0x40504d=this['editor']['commands']['get']('trackChanges');_0x106dba['buttonView']['set']({'label':_0x2e2723,'icon':he});const _0x33535b=new Zt(_0x4d517b);for(const _0x575473 of _0x2c059b){if('separator'==_0x575473['type']){_0x33535b['items']['add'](new Xt(_0x4d517b));continue;}const _0x65f6fa=new te(_0x4d517b,_0x106dba),_0x3aa47b=new _0x5abf4b(_0x4d517b),_0x9a10eb=_0x575473['model'];_0x3aa47b['bind'](...Object['keys'](_0x9a10eb))['to'](_0x9a10eb),_0x3aa47b['delegate']('execute')['to'](_0x106dba),_0x3aa47b['on']('execute',()=>{this['editor']['execute'](_0x9a10eb['commandName']),this['editor']['editing']['view']['focus']();}),_0x65f6fa['children']['add'](_0x3aa47b),_0x33535b['items']['add'](_0x65f6fa);}return _0x106dba['bind']('isEnabled')['to'](_0x40504d,'isEnabled'),_0x106dba['panelView']['children']['add'](_0x33535b),_0x106dba;}['_initializeController'](_0x3e0772){const _0x40ce32=this['editor'],_0x5dd202=_0x40ce32['config'],_0x1e2b2b=_0x40ce32['plugins']['get']('Annotations'),_0x80756b=_0x40ce32['plugins']['get']('CommentsRepository'),_0x4a7c6a=_0x40ce32['plugins']['get']('EditorAnnotations'),_0x1518fc=_0x40ce32['plugins']['get'](_0x20783e)['me'],_0xb1e370=_0x5dd202['get']('trackChanges')['SuggestionThreadView'],_0x11771f=_0x5dd202['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5865cc,CommentThreadInputView:_0x153d97}=_0x40ce32['plugins']['get']('CommentsUI');let _0x512f45,_0x2f0ab8,_0x32ef0c;this['_annotationViews']['has'](_0x3e0772['id'])?(_0x2f0ab8=this['_annotationViews']['get'](_0x3e0772['id']),_0x512f45=_0x2f0ab8['mainView']):(_0x512f45=new _0xb1e370(_0x40ce32['locale'],_0x3e0772,_0x1518fc,{'disableComments':this['_disableComments'],'editorConfig':_0x5dd202['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5dd202['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5dd202['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5dd202['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5636d8(_0x5dd202['get']('locale')),'CommentView':_0x5dd202['get']('comments')['CommentView'],'CommentsListView':_0x5865cc,'CommentThreadInputView':_0x153d97,'SuggestionView':_0x11771f}),_0x512f45['suggestionView']['acceptButton']['on']('execute',()=>{_0x40ce32['editing']['view']['focus']();}),_0x512f45['suggestionView']['discardButton']['on']('execute',()=>{_0x40ce32['editing']['view']['focus']();}),_0x2f0ab8=_0x1e2b2b['createAnnotationView'](this['editor']['locale'],_0x512f45),_0x2f0ab8['bind']('isDirty')['to'](_0x512f45,'isDirty'),_0x2f0ab8['bind']('length')['to'](_0x512f45),_0x2f0ab8['bind']('type')['to'](_0x512f45,'type',_0x51aa25=>'suggestion-'+_0x51aa25),_0x512f45['on']('escape',()=>{_0x32ef0c['fire']('escape');}),this['_annotationViews']['set'](_0x3e0772['id'],_0x2f0ab8));const _0x4a9fe1=_0x80756b['createCommentThreadController'](_0x3e0772['commentThread'],_0x512f45),_0x569962=new ae(_0x40ce32,_0x3e0772,_0x512f45,_0x4a9fe1),_0xf3ba4=_0x3e0772['getAllAdjacentSuggestions']()['filter'](_0x221dc8=>_0x221dc8['isInContent']);_0x512f45['descriptionParts']=_0x40ce32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xf3ba4),this['_suggestionToController']['set'](_0x3e0772,_0x569962),this['_viewToController']['set'](_0x512f45,_0x569962),_0x32ef0c=_0x1e2b2b['createAnnotation']({'view':_0x2f0ab8,'target':()=>{const _0x4c36e7=[],_0x5ca1f7=_0x3e0772['getAllAdjacentSuggestions']()['filter'](_0x1bb744=>_0x1bb744['isInContent']);for(const _0x1b62c9 of _0x5ca1f7)_0x4c36e7['push'](..._0x1b62c9['getMarkers']());return _0x4dc4b3(_0x40ce32['editing'],_0x4c36e7);},'type':()=>'suggestion-'+_0x569962['view']['type']}),_0x80756b['_bindAnnotationToEditors'](_0x512f45,_0x32ef0c),_0x1e2b2b['add'](_0x32ef0c),_0x4a7c6a['registerAnnotation'](_0x32ef0c);}['_destroyController'](_0x26dbec){const _0x4cb8f8=this['editor']['plugins']['get']('CommentsRepository'),_0x5b1c6e=this['editor']['plugins']['get']('Annotations'),_0x37ca60=this['_suggestionToController']['get'](_0x26dbec),_0x502291=_0x37ca60['view'],_0x4ab951=_0x5b1c6e['getByInnerView'](_0x502291);_0x4cb8f8['_unbindEditors'](_0x502291),_0x4ab951&&_0x5b1c6e['remove'](_0x4ab951),this['_suggestionToController']['delete'](_0x26dbec),this['_viewToController']['delete'](_0x502291),_0x37ca60['destroy']();}['_updateController'](_0x5a61e2){if(!_0x5a61e2['isInContent']||!this['_suggestionToController']['has'](_0x5a61e2))return;const _0x4fe775=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540ee0=this['_suggestionToController']['get'](_0x5a61e2),_0x5c3b47=_0x5a61e2['getAllAdjacentSuggestions']();_0x540ee0['view']['descriptionParts']=_0x4fe775['descriptionFactory']['getDescriptions'](_0x5c3b47);}['destroy'](){for(const _0x4ec0f1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4ec0f1);for(const _0x40d021 of this['_annotationViews']['values']())_0x40d021['mainView']['destroy']();super['destroy']();}}function me(_0x5a03f0){return'model'in _0x5a03f0;}class k extends _0x310a20{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x37da47){this['editor']['plugins']['get'](p)['adapter']=_0x37da47;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d3587){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d3587);}['getSuggestions']({skipNotAttached:_0x38d07e=!0x1,toJSON:_0xc0b6ee=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x38d07e,'toJSON':_0xc0b6ee});}['getSuggestion'](_0x3a230a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a230a);}}const T=['Pagination'];class P extends _0x310a20{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f9977=this['editor'];if(_0x4f9977['config']['define']('trackChangesData.editorCreator',_0x585a76=>{const _0x2fc629=_0x4f9977['model']['document']['getRootNames']()['reduce']((_0x4ed879,_0x558032)=>(_0x4ed879[_0x558032]='',_0x4ed879),{});return _0x4f9977['constructor']['create'](_0x2fc629,_0x585a76);}),'function'!=typeof _0x4f9977['config']['get']('trackChangesData')['editorCreator'])throw new _0x51bc83('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2191b2){return N(this['editor'],!0x0,_0x2191b2);}['getDataWithDiscardedSuggestions'](_0x41d4fd){return N(this['editor'],!0x1,_0x41d4fd);}}class D extends _0x310a20{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x31017b){super(_0x31017b),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(_0x5b064c){return void 0x0!==_0x5b064c['getRootsAttributes'];}async function N(_0x926a5d,_0x109443,_0x48b758){const _0x5332ff=_0x1994ee(_0x926a5d,T);_0x5332ff['plugins']['push'](p,D),_0x5332ff['rootsAttributes']=v(_0x926a5d)?_0x926a5d['getRootsAttributes']():void 0x0;const _0x594870=document['createDocumentFragment'](),_0x1c0017=_0x926a5d['config']['get']('trackChangesData')['editorCreator'],_0x3a09a9=await _0x1c0017(_0x5332ff,()=>function(_0x86f7da){const _0x27c20d=document['createElement']('div');return _0x86f7da['appendChild'](_0x27c20d),_0x27c20d;}(_0x594870));!function(_0x5db16c,_0x34af2e){const _0x255a1d=_0x5db16c['model']['document']['getRootNames']()['reduce']((_0x43fede,_0x5815cc)=>(_0x43fede[_0x5815cc]=_0x5db16c['data']['get']({'rootName':_0x5815cc}),_0x43fede),{}),_0x5923e0=_0x5db16c['plugins']['get']('Users')['users']['map'](_0x337295=>({'id':_0x337295['id'],'name':_0x337295['name']})),_0x477f57=_0x5db16c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x469f2d=_0x5db16c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x370157=_0x34af2e['plugins']['get']('Users'),_0x2fa134=_0x34af2e['plugins']['get']('TrackChangesEditing'),_0x5df17c=_0x34af2e['plugins']['get']('CommentsRepository');for(const _0x3082a5 of _0x5df17c['getCommentThreads']())_0x3082a5['remove']();for(const _0x4750e5 of _0x5923e0)_0x370157['getUser'](_0x4750e5['id'])||_0x370157['addUser'](_0x4750e5);_0x370157['me']||_0x370157['useAnonymousUser']();for(const _0x16d3ec of _0x469f2d)_0x5df17c['addCommentThread'](_0x16d3ec);for(const _0x23d148 of _0x477f57)_0x2fa134['addSuggestionData'](_0x23d148);_0x34af2e['data']['set'](_0x255a1d);}(_0x926a5d,_0x3a09a9),_0x3a09a9['execute'](_0x109443?'acceptAllSuggestions':'discardAllSuggestions');const _0x356e7c=v(_0x3a09a9)?_0x3a09a9['getFullData'](_0x48b758):_0x3a09a9['data']['get'](_0x48b758);return await _0x3a09a9['destroy'](),_0x356e7c;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0xd0fe4f,PendingActions as _0x43e262,icons as _0xcc8d03}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x10890c,ObservableMixin as _0x4d2569,uid as _0x2b2341,insertToPriorityArray as _0x2dd1e5,priorities as _0x393348,logWarning as _0x1151d8,getEnvKeystrokeText as _0x169b2b,FocusTracker as _0x300501,KeystrokeHandler as _0x47e191,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5649af,View as _0x5bb25a,ViewCollection as _0x4a3579,FocusCycler as _0x16bf8f,ViewModel as _0x568c43,createDropdown as Qt,SplitButtonView as _0x4192af,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x169749}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2a2d95,hashObject as _0x133608,surroundingMarkersDetector as _0x1e6588,FOCUS_ANNOTATION_KEYSTROKE as _0x5aa4d2,AriaDescriptionView as _0x253816,setupThreadKeyboardNavigation as _0x6d2ff4,trimHtml as _0xb42aa1,UserView as _0x24025d,LateFocusButtonView as _0x58bb35,getDateTimeFormatter as _0x5cadd8,getAllMarkersDomElementsSorted as _0x435996,sanitizeEditorConfig as _0x2e2961}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1e018a,LiveRange as _0x425d25,LivePosition as _0x4906b7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3aee56,toWidget as _0x1846c8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1a932f,set as _0x12ccb1,isEqual as _0x7c6596,unset as _0x1a6b63,omit as Tt}from'lodash-es';import{Delete as _0x201443,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x31c29d,ShiftEnter as _0x3d87fa}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3fb29e,_0x3f80a1){super(_0x3fb29e),this['_enabledCommands']=_0x3f80a1,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 _0x389798 of this['editor']['commands']['commands']())_0x389798['affectsData']&&!this['_enabledCommands']['has'](_0x389798)&&_0x389798['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1e0f85 of this['editor']['commands']['commands']())_0x1e0f85['affectsData']&&!this['_enabledCommands']['has'](_0x1e0f85)&&_0x1e0f85['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x2b26fd,_0x3b87c0){super(_0x2b26fd),this['_suggestions']=_0x3b87c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23745f){const _0x38772c=this['_suggestions']['get'](_0x23745f);if(!_0x38772c)throw new _0x10890c('track-changes-accept-suggestion-not-found',this);const _0x552faa=_0x38772c['getRanges']();this['editor']['model']['canEditAt'](_0x552faa)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x38772c);}}class R extends ts{['_suggestions'];constructor(_0x270060,_0x2608bc){super(_0x270060),this['_suggestions']=_0x2608bc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5382c1){const _0x5717fa=this['_suggestions']['get'](_0x5382c1);if(!_0x5717fa)throw new _0x10890c('track-changes-discard-suggestion-not-found',this);const _0x1cf57b=_0x5717fa['getRanges']();this['editor']['model']['canEditAt'](_0x1cf57b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5717fa);}}function ls(_0x5adcca,_0x933f11){let _0x150066='';return _0x150066+=_0x5adcca['split']('*')['map']((_0x28860f,_0x3f5224)=>_0x3f5224%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x28860f)+'</span>':nn(_0x28860f))['join'](''),_0x933f11&&(_0x150066+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x933f11['value']+'\x22\x20title=\x22'+_0x933f11['title']+'\x22></span>'),_0x150066;}function nn(_0x23d3f1){const _0x36d2e8=document['createElement']('span');return _0x36d2e8['innerText']=_0x23d3f1,_0x36d2e8['innerHTML'];}function ss(_0x16152f){return _0x16152f['sort']((_0x3ecd0d,_0x3f4dbd)=>'deletion'==_0x3ecd0d['type']&&'deletion'!=_0x3f4dbd['type']?-0x1:'deletion'!=_0x3ecd0d['type']&&'deletion'==_0x3f4dbd['type']?0x1:0x0);}function to(_0x46c5a4,_0x329588){let _0x2a54f8,_0x22c618=0x0;const _0x4ff3a6=[],_0x1681ce=_0x329588['schema'];for(;_0x22c618<_0x46c5a4['length'];){const _0x516291=_0x46c5a4[_0x22c618],_0x2f479a=_0x46c5a4[_0x22c618+0x1];_0x2a54f8||(_0x2a54f8=_0x329588['createPositionBefore'](_0x516291)),on(_0x329588,_0x516291,_0x2f479a)||(_0x4ff3a6['push'](_0x329588['createRange'](_0x2a54f8,_0x1681ce['isObject'](_0x516291)?_0x329588['createPositionAfter'](_0x516291):_0x329588['createPositionAt'](_0x516291,'end'))),_0x2a54f8=null),_0x22c618++;}return _0x4ff3a6;}function on(_0x2874ef,_0x15ef02,_0x3c0bca){if(!_0x3c0bca)return!0x1;const _0x48e8c7=_0x2874ef['createPositionAfter'](_0x15ef02),_0x42fd5f=_0x2874ef['createPositionBefore'](_0x3c0bca);return _0x48e8c7['isTouching'](_0x42fd5f);}function rs(_0x2ecd40,_0x1f0f38,_0x30d33e){for(;_0x30d33e['length'];){const _0x4db7ca=_0x30d33e['splice'](0x0,0x64);_0x2ecd40['change'](()=>{for(const _0x4e83ba of _0x4db7ca)_0x4e83ba['isInContent']&&_0x1f0f38['execute'](_0x4e83ba['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3cfda4,_0x32f283,_0xdbd44d){super(_0x3cfda4),this['_command']=_0x32f283,this['_suggestions']=_0xdbd44d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x356f9c=Array['from'](this['_suggestions']['values']())['some'](_0x47c814=>_0x47c814['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x356f9c;}['execute'](){const _0x25d31=ss(Array['from'](this['_suggestions']['values']()));for(const _0x33faa2 of _0x25d31){const _0x1ce0a5=_0x33faa2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1ce0a5))return;}rs(this['editor']['model'],this['_command'],_0x25d31);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xb24e4b,_0x56ac83,_0x3cfeae){super(_0xb24e4b),this['_command']=_0x56ac83,this['_suggestions']=_0x3cfeae,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16eaeb=this['editor']['model']['document']['selection'],_0x2d9d22=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x375606,_0x9b688d){const _0x3dea8e=Array['from'](_0x375606['getRanges']()),_0x3500c8=new Set();for(const _0xf01333 of _0x9b688d)if(_0xf01333['isInContent']){for(const _0xefe5c1 of _0x3dea8e)for(const _0x8a71dd of _0xf01333['getRanges']())(_0xefe5c1['isIntersecting'](_0x8a71dd)||_0x375606['isCollapsed']&&!_0xf01333['isMultiRange']&&_0xf01333['next']&&_0x8a71dd['end']['isTouching'](_0xefe5c1['start']))&&_0x3500c8['add'](_0xf01333);}return _0x3500c8;}(_0x16eaeb,_0x2d9d22),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xab3f54=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4e7563 of _0xab3f54){const _0x4a01fa=_0x4e7563['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a01fa))return;}rs(this['editor']['model'],this['_command'],_0xab3f54);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4d2569(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x44b05c,_0x1677d5){super(),this['id']=_0x1677d5['id'],this['type']=_0x1677d5['type'],this['subType']=_0x1677d5['subType']||null,this['author']=_0x1677d5['author'],this['creator']=_0x1677d5['creator']||_0x1677d5['author'],this['isExternal']=Boolean(_0x1677d5['attributes']&&_0x1677d5['attributes']['@external']),this['data']=null,this['_model']=_0x44b05c,this['_onAccept']=_0x1677d5['onAccept'],this['_onDiscard']=_0x1677d5['onDiscard'],this['_onAttributesChange']=_0x1677d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1677d5['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 _0x58c887=this;for(;_0x58c887['previous'];)_0x58c887=_0x58c887['previous'];return _0x58c887;}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'](_0x1f31d5){this['_markerNames']['add'](_0x1f31d5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2699d4=>this['_model']['markers']['get'](_0x2699d4))['filter'](_0x50e444=>_0x50e444);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd0b77f=>{for(const _0x4a88fe of this['getMarkers']())_0xd0b77f['removeMarker'](_0x4a88fe);}),this['_markerNames']['clear']();}['removeMarker'](_0x3361cd){this['_model']['change'](_0x5043b7=>{_0x5043b7['removeMarker'](_0x3361cd);}),this['_markerNames']['delete'](_0x3361cd);}['addRange'](_0x4be984){const _0x201bb7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x201bb7),this['_model']['change'](_0x1f96cd=>{_0x1f96cd['addMarker'](_0x201bb7,{'range':_0x4be984,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x50c1e3){for(const _0x1358ba of this['getRanges']())if(_0x1358ba['isIntersecting'](_0x50c1e3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4eda63=>_0x4eda63['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2d3c27,_0x1aeadb)=>[..._0x2d3c27,..._0x1aeadb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x576bb0=this['getRanges']();if(0x1!=_0x576bb0['length'])return null;const _0x2fdfee=_0x576bb0[0x0],_0x27bad7=_0x2fdfee['start']['nodeAfter'],_0x15b3eb=_0x2fdfee['end']['nodeBefore'];return _0x27bad7 instanceof _0x1e018a?_0x27bad7!=_0x15b3eb?null:_0x27bad7: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 _0x291894=[];let _0x357633=this['head'];for(;_0x357633;)_0x291894['push'](_0x357633),_0x357633=_0x357633['next'];return _0x291894;}['setAttribute'](_0x29ae96,_0x184bce){const _0x589951=_0x1a932f(this['attributes']);_0x12ccb1(_0x589951,_0x29ae96,_0x184bce),_0x7c6596(_0x589951,this['attributes'])||(this['attributes']=_0x589951,this['_onAttributesChange'](_0x589951));}['removeAttribute'](_0x562456){const _0x3a1bb6=_0x1a932f(this['attributes']);_0x1a6b63(_0x3a1bb6,_0x562456),_0x7c6596(_0x3a1bb6,this['attributes'])||(this['attributes']=_0x3a1bb6,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 _0x2b2341()['substr'](0x1,0x5);}}function o(_0x16a82a,_0x24707d,_0x3ec52d){const t=_0x16a82a['t'];switch(_0x24707d){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',_0x3ec52d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ec52d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ec52d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ec52d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ec52d);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',_0x3ec52d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ec52d);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',_0x3ec52d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ec52d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ec52d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ec52d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ec52d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ec52d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ec52d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ec52d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ec52d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ec52d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ec52d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ec52d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ec52d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ec52d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ec52d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ec52d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ec52d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ec52d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ec52d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ec52d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ec52d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ec52d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ec52d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x24707d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x455bfd,_0x292919){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x455bfd,this['_locale']=_0x292919;}['getDescriptions'](_0x99e700){const _0x133b2d=[],_0x32f058=new Set(),_0x747e13=new Set();for(let _0x991091=0x0;_0x991091<_0x99e700['length'];_0x991091++){const _0x37db95=_0x99e700[_0x991091];if(!_0x37db95['isInContent'])continue;const _0x457c8c=this['_handleCustomCallbackDescription'](_0x37db95);if(_0x457c8c){if(null!=_0x37db95['subType']){if(_0x32f058['has'](_0x37db95['subType']))continue;_0x32f058['add'](_0x37db95['subType']);}_0x133b2d['push'](_0x457c8c);}else{if('attribute'!=_0x37db95['type'])'insertion'!=_0x37db95['type']&&'deletion'!=_0x37db95['type']||this['_handleInsertRemoveSuggestionDescription'](_0x133b2d,_0x37db95,_0x99e700[_0x991091+0x1]);else{const _0x182e97=_0x37db95['data']['key'];if(_0x747e13['has'](_0x182e97))continue;_0x747e13['add'](_0x37db95['data']['key']),_0x182e97==m?this['_handleRenameSuggestionDescription'](_0x133b2d,_0x37db95):this['_handleAttributeSuggestionDescription'](_0x133b2d,_0x37db95);}}}return this['_resolveDescriptionItems'](_0x133b2d);}['registerDescriptionCallback'](_0x4cf8be){this['_customCallbacks']['push'](_0x4cf8be);}['registerElementLabel'](_0x1e25bd,_0x30ae9f,_0x21f945=_0x393348['normal']){'function'==typeof _0x1e25bd?_0x2dd1e5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e25bd,'label':_0x30ae9f,'priority':_0x21f945}):this['_itemLabels']['set'](_0x1e25bd,_0x30ae9f);}['registerAttributeLabel'](_0x3b2ee8,_0x21dfaf){this['_attributeLabels']['set'](_0x3b2ee8,_0x21dfaf);}['getItemLabel'](_0xf0a44c,_0x3293b0=0x1){let _0x14859c;for(const _0x518195 of this['_itemLabelsCallbacks'])if(_0x518195['matchingCallback'](_0xf0a44c)){_0x14859c=_0x518195['label'];break;}return _0x14859c||(_0x14859c=this['_itemLabels']['get'](_0xf0a44c['name'])),_0x14859c?_0x14859c(_0x3293b0):0x1!==_0x3293b0?_0x3293b0+'\x20'+_0xf0a44c['name']+'s':''+_0xf0a44c['name'];}['_addDescriptionItems'](_0x2db482,_0x287dce){const _0x337582=_0x287dce['getFirstRange']()['getWalker'](),_0x36f444='insertion'==_0x287dce['type']?'add':'remove';for(const _0x337813 of _0x337582){const _0x31cfc8=_0x337813['item'],_0x6b8fd8=_0x2db482[_0x2db482['length']-0x1];if(_0x31cfc8['is']('$textProxy'))_0x6b8fd8&&_0x6b8fd8['type']['indexOf']('Container')>-0x1&&_0x2db482['pop'](),_0x6b8fd8&&'text'==_0x6b8fd8['type']?_0x6b8fd8[_0x36f444]+=_0x31cfc8['data']:_0x2db482['push']({'type':'text','add':'add'==_0x36f444?_0x31cfc8['data']:'','remove':'remove'==_0x36f444?_0x31cfc8['data']:''});else{if(this['_schema']['isObject'](_0x31cfc8)){const _0x112fa1=_0x31cfc8;if(_0x6b8fd8&&_0x6b8fd8['type']['indexOf']('Container')>-0x1&&_0x2db482['pop'](),'elementEnd'==_0x337813['type'])continue;_0x6b8fd8&&_0x6b8fd8['type']==_0x36f444+'Object'&&_0x6b8fd8['element']['name']==_0x112fa1['name']?_0x6b8fd8['quantity']++:_0x2db482['push']({'type':_0x36f444+'Object','element':_0x112fa1,'quantity':0x1}),_0x337582['skip'](_0x202685=>!('elementEnd'==_0x202685['type']&&_0x202685['item']==_0x31cfc8));}else{if(this['_schema']['checkChild'](_0x31cfc8,'$text')||_0x31cfc8['is']('element','softBreak')){const _0x420a1f=_0x31cfc8;if('add'==_0x36f444&&'elementStart'==_0x337813['type']||'remove'==_0x36f444&&'elementEnd'==_0x337813['type'])continue;if(_0x6b8fd8&&-0x1==_0x6b8fd8['type']['indexOf']('Container')){'text'==_0x6b8fd8['type']&&(_0x6b8fd8[_0x36f444]+='\x0a');continue;}let _0x1d0b6d;if(_0x1d0b6d='add'==_0x36f444?_0x420a1f['nextSibling']&&!this['_schema']['isObject'](_0x420a1f['nextSibling'])?_0x420a1f['nextSibling']:null:_0x420a1f['previousSibling']&&!this['_schema']['isObject'](_0x420a1f['previousSibling'])?_0x420a1f['previousSibling']:null,_0x420a1f['isEmpty']||_0x1d0b6d&&_0x1d0b6d['isEmpty']){const _0x2898e=_0x1d0b6d&&_0x1d0b6d['isEmpty']?_0x1d0b6d:_0x420a1f;_0x6b8fd8&&_0x6b8fd8['type']==_0x36f444+'EmptyContainer'&&_0x6b8fd8['element']['name']==_0x2898e['name']?_0x6b8fd8['quantity']++:_0x2db482['push']({'type':_0x36f444+'EmptyContainer','element':_0x2898e,'quantity':0x1});}else _0x2db482['push']({'type':_0x36f444+'Container','element':_0x420a1f});}}}}}['_resolveDescriptionItems'](_0x4f98e2){const _0x2db0f8=this['_locale'],_0x2dfe70=[],_0x34133b=[],_0x1ef7fb=[];for(const _0xb4af37 of _0x4f98e2)switch(_0xb4af37['type']){case'text':if(_0xb4af37['add']=_0xb4af37['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb4af37['remove']=_0xb4af37['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb4af37['add']&&''!=_0xb4af37['remove']){_0x2dfe70['push']({'type':'replace','content':o(_0x2db0f8,'REPLACE_TEXT',['\x22'+_0xb4af37['remove']+'\x22','\x22'+_0xb4af37['add']+'\x22'])});continue;}if(null!=_0xb4af37['add']['match'](/^ +$/)){_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0',o(_0x2db0f8,'ELEMENT_SPACE',_0xb4af37['add']['length']))});continue;}if(null!=_0xb4af37['remove']['match'](/^ +$/)){_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0',o(_0x2db0f8,'ELEMENT_SPACE',_0xb4af37['remove']['length']))});continue;}if(''!=_0xb4af37['add']){_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0','\x22'+_0xb4af37['add']+'\x22')});continue;}_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0','\x22'+_0xb4af37['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'addContainer':_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Split:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'removeContainer':_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Merge:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'addFormat':_0x34133b['push'](_0xb4af37['key']);continue;case'removeFormat':_0x1ef7fb['push'](_0xb4af37['key']);continue;default:_0x2dfe70['push'](_0xb4af37);}if(_0x34133b['length']){const _0x39a99f=_0x34133b['map'](_0x5958bc=>this['_attributeLabels']['has'](_0x5958bc)?this['_attributeLabels']['get'](_0x5958bc):_0x5958bc)['join'](',\x20');_0x2dfe70['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39a99f)});}if(_0x1ef7fb['length']){const _0x12a1f1=_0x1ef7fb['map'](_0x4e4eb7=>this['_attributeLabels']['has'](_0x4e4eb7)?this['_attributeLabels']['get'](_0x4e4eb7):_0x4e4eb7)['join'](',\x20');_0x2dfe70['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x12a1f1)});}return _0x2dfe70;}['_handleCustomCallbackDescription'](_0x4a7a30){for(const _0x6976f7 of this['_customCallbacks']){const _0x34047a=_0x6976f7(_0x4a7a30);if(_0x34047a&&'type'in _0x34047a)return _0x34047a;}}['_handleAttributeSuggestionDescription'](_0x9f46e7,_0x5bd830){const _0x58b36a=_0x5bd830['data'],_0x11b9c7=void 0x0===_0x58b36a['newValue']?'removeFormat':'addFormat';_0x9f46e7['push']({'type':_0x11b9c7,'key':_0x58b36a['key']});}['_handleRenameSuggestionDescription'](_0x2dbde4,_0x4b28b8){_0x2dbde4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b28b8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x43f648,_0x4b01a6,_0x46e4c6){if(this['_addDescriptionItems'](_0x43f648,_0x4b01a6),_0x46e4c6&&_0x46e4c6['getFirstRange']()&&!_0x4b01a6['getFirstRange']()['end']['isEqual'](_0x46e4c6['getFirstRange']()['start'])){const _0x491c85=_0x43f648[_0x43f648['length']-0x1],_0x3450f0='insertion'==_0x4b01a6['type']?'add':'remove';_0x491c85&&'text'==_0x491c85['type']&&(_0x491c85[_0x3450f0]+='\x0a');}}}class V extends _0xd0fe4f{['afterInit'](){const _0x4f4b41=this['editor'],_0x5cdf31=_0x4f4b41['plugins']['get']('TrackChangesEditing');_0x4f4b41['commands']['get']('showAIAssistant')&&_0x5cdf31['enableCommand']('showAIAssistant');}}class U extends _0xd0fe4f{['afterInit'](){const _0x25c8d3=this['editor'],_0xf5eac9=_0x25c8d3['locale'];if(!_0x25c8d3['plugins']['has']('AlignmentEditing'))return;const _0x41d3cc=_0x25c8d3['plugins']['get']('TrackChangesEditing');_0x41d3cc['enableDefaultAttributesIntegration']('alignment'),_0x41d3cc['registerBlockAttribute']('alignment'),_0x41d3cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xf5eac9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11640e=this['editor'],_0x36bc18=_0x11640e['locale'];_0x11640e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2344b0=>{if('formatBlock'!=_0x2344b0['type'])return;const {data:_0x2b70a4}=_0x2344b0;if(_0x2b70a4&&'alignment'==_0x2b70a4['commandName']){const _0x410297=_0x2b70a4['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x36bc18,'*Format:*\x20%0',function(_0x1ad38e){switch(_0x1ad38e){case'left':return o(_0x36bc18,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x36bc18,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x36bc18,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x36bc18,'FORMAT_JUSTIFY_TEXT');}}(_0x410297))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xd0fe4f{['afterInit'](){const _0x35bbec=this['editor'],_0x24cf55=_0x35bbec['plugins']['get']('TrackChangesEditing'),_0x4685f6=_0x35bbec['locale'];for(const _0x5f4397 of ti){if(!_0x35bbec['plugins']['has'](_0x5f4397))continue;const _0x46c1c6=_0x5f4397['slice'](0x0,-0x7)['toLowerCase'](),_0x4a3ca9='FORMAT_'+_0x46c1c6['toUpperCase']();_0x24cf55['enableDefaultAttributesIntegration'](_0x46c1c6),_0x24cf55['registerInlineAttribute'](_0x46c1c6),_0x24cf55['descriptionFactory']['registerAttributeLabel'](_0x46c1c6,o(_0x4685f6,_0x4a3ca9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1466b4=this['editor'],_0x33a707=_0x1466b4['locale'],_0x56d35e=_0x1466b4['plugins']['get']('TrackChangesEditing');function _0x4476d4(_0x4de99b,_0x5b1ec7){_0x56d35e['descriptionFactory']['registerDescriptionCallback'](_0x29d388=>{if('formatInline'!=_0x29d388['type'])return;const {data:_0x1dcb9c}=_0x29d388;return _0x1dcb9c&&_0x1dcb9c['commandName']===_0x4de99b?_0x1dcb9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33a707,'*Format:*\x20%0',_0x5b1ec7)}:{'type':'format','content':o(_0x33a707,'*Remove\x20format:*\x20%0',_0x5b1ec7)}:void 0x0;});}_0x4476d4('bold',o(_0x33a707,'FORMAT_BOLD')),_0x4476d4('italic',o(_0x33a707,'FORMAT_ITALIC')),_0x4476d4('underline',o(_0x33a707,'FORMAT_UNDERLINE')),_0x4476d4('code',o(_0x33a707,'FORMAT_CODE')),_0x4476d4('strikethrough',o(_0x33a707,'FORMAT_STRIKETHROUGH')),_0x4476d4('subscript',o(_0x33a707,'FORMAT_SUBSCRIPT')),_0x4476d4('superscript',o(_0x33a707,'FORMAT_SUPERSCRIPT'));}}class F extends _0xd0fe4f{['afterInit'](){const _0x25a321=this['editor'],_0x4493a5=_0x25a321['locale'];if(!_0x25a321['plugins']['has']('BlockQuoteEditing'))return;const _0x19e406=_0x25a321['plugins']['get']('TrackChangesEditing'),_0x195063=this['editor']['commands']['get']('blockQuote');_0x19e406['enableCommand']('blockQuote',(_0x57a26f,_0x437ed3={})=>{const _0x404eb3=this['editor']['model']['document']['selection'],_0x4bc1f9=_0x437ed3&&void 0x0!==_0x437ed3['forceValue']?_0x437ed3['forceValue']:!_0x195063['value'];let _0x416145=[];if(_0x4bc1f9){const _0x23c706=Array['from'](_0x404eb3['getSelectedBlocks']())['filter'](_0x18c677=>oo(_0x18c677)||function(_0x1433af,_0x1efdf6){const _0x4afd58=_0x1efdf6['checkChild'](_0x1433af['parent'],'blockQuote'),_0x1fcac5=_0x1efdf6['checkChild'](['$root','blockQuote'],_0x1433af);return _0x4afd58&&_0x1fcac5;}(_0x18c677,this['editor']['model']['schema']));_0x416145=to(_0x23c706,_0x25a321['model']);}else{const _0x4e9ec2=Array['from'](_0x404eb3['getSelectedBlocks']())['filter'](_0x50368b=>oo(_0x50368b));_0x416145=to(_0x4e9ec2,_0x25a321['model']);}_0x25a321['model']['change'](()=>{for(const _0x2dea50 of _0x416145)_0x19e406['markBlockFormat'](_0x2dea50,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4bc1f9}]});});}),_0x19e406['descriptionFactory']['registerDescriptionCallback'](_0x496d12=>{const {data:_0x514ed6}=_0x496d12;if(_0x514ed6&&'blockQuote'==_0x514ed6['commandName']){const _0x2eb5bf=o(_0x4493a5,'ELEMENT_BLOCK_QUOTE');return _0x514ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4493a5,'*Set\x20format:*\x20%0',_0x2eb5bf)}:{'type':'format','content':o(_0x4493a5,'*Remove\x20format:*\x20%0',_0x2eb5bf)};}});}}function oo(_0x370c0d){return'blockQuote'==_0x370c0d['parent']['name'];}class L extends _0xd0fe4f{['afterInit'](){const _0x1ab0c5=this['editor'];_0x1ab0c5['plugins']['has']('CaseChange')&&(_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xd0fe4f{['afterInit'](){const _0x2839ba=this['editor'];_0x2839ba['commands']['get']('ckbox')&&_0x2839ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0xd0fe4f{['afterInit'](){const _0x2ec224=this['editor'];if(!_0x2ec224['plugins']['has']('CodeBlock'))return;const _0x456a9e=_0x2ec224['plugins']['get']('TrackChangesEditing'),_0x1c3c87=_0x2ec224['locale'],_0x5a99c=_0x2ec224['config']['get']('codeBlock')['languages'],_0x211603=_0x2ec224['commands']['get']('codeBlock');_0x456a9e['enableCommand']('indentCodeBlock'),_0x456a9e['enableCommand']('outdentCodeBlock'),_0x456a9e['enableCommand']('codeBlock',(_0x4fe875,_0x751cae={})=>{const _0x235bee=_0x2ec224['model'],_0x341f69=_0x2ec224['model']['document']['selection'],_0x4a3a9f=_0x751cae&&void 0x0!==_0x751cae['forceValue']?_0x751cae['forceValue']:!_0x211603['value'];let _0x4764ca;_0x751cae['language']||(_0x751cae['language']=_0x5a99c[0x0]['language']),_0x4764ca=_0x4a3a9f?Array['from'](_0x341f69['getSelectedBlocks']())['filter'](_0x3f50ba=>eo(_0x3f50ba)||function(_0x2eb938,_0x5f1c99){if(_0x2eb938['is']('rootElement')||_0x5f1c99['isLimit'](_0x2eb938))return!0x1;return _0x5f1c99['checkChild'](_0x2eb938['parent'],'codeBlock');}(_0x3f50ba,_0x235bee['schema'])):Array['from'](_0x341f69['getSelectedBlocks']())['filter'](_0x75dc6b=>eo(_0x75dc6b));const _0x6b0f9a=to(_0x4764ca,_0x235bee);_0x235bee['change'](()=>{for(const _0x56b923 of _0x6b0f9a)_0x456a9e['markBlockFormat'](_0x56b923,{'commandName':'codeBlock','commandParams':[{..._0x751cae,'forceValue':_0x4a3a9f}],'formatGroupId':'blockName'});});}),(_0x456a9e['descriptionFactory']['registerElementLabel']('codeBlock',_0x827634=>o(_0x1c3c87,'ELEMENT_CODE_BLOCK',_0x827634)),_0x456a9e['descriptionFactory']['registerDescriptionCallback'](_0xe150f=>{if('formatBlock'!=_0xe150f['type'])return;const _0x629eeb=_0x1c3c87['t'],{data:_0x4557ca}=_0xe150f;if(!_0x4557ca||'codeBlock'!=_0x4557ca['commandName'])return;const _0x5ce391=_0x4557ca['commandParams'][0x0]['language'],_0x18abd6=_0x629eeb(_0x5a99c['find'](_0x3b4eb4=>_0x3b4eb4['language']===_0x5ce391)['label'])['toLowerCase']();return _0x4557ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c3c87,'*Set\x20format:*\x20%0',o(_0x1c3c87,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x18abd6+')')}:{'type':'format','content':o(_0x1c3c87,'*Remove\x20format:*\x20%0',o(_0x1c3c87,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x328130){return'codeBlock'==_0x328130['name'];}class q extends _0xd0fe4f{['afterInit'](){const _0x105860=this['editor'];if(!_0x105860['plugins']['has']('CommentsEditing'))return;_0x105860['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24d696,_0x1294ae,_0x505e8c){const _0x3ca7d0=[];for(const _0x4a5808 of _0x1294ae['getItems']())_0x4a5808['hasAttribute'](_0x24d696)&&_0x3ca7d0['push'](_0x505e8c['createRangeOn'](_0x4a5808));return _0x3ca7d0;}function _e(_0x4eb0cd,_0xc48d68,{showActiveMarker:_0x2be6f9=!0x0}={}){const _0x3291df=_0x4eb0cd['plugins']['get']('TrackChangesEditing');return(_0x279c5a,_0x34fba4,_0x1312af)=>{if(!_0x1312af['consumable']['test'](_0x34fba4['markerRange'],_0x279c5a['name']))return;const _0x35764a=_0x34fba4['markerRange']['getWalker'](),_0x36606e=_0x34fba4['markerRange']['start'],_0x16a27c=_0x4eb0cd['model']['schema'];let _0x41cd3c=null,_0x2a98c2=null,_0x54b202=!0x1,_0x25d3ad=!0x1;for(const _0x1d7645 of _0x35764a){const _0xa05776=_0x1d7645['item'];_0x54b202=_0x54b202||_0x16a27c['isContent'](_0xa05776);const _0x5e0097=_0x1312af['mapper']['toViewElement'](_0xa05776);if(_0x5e0097&&_0x5e0097['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d7645['type']&&(_0x16a27c['isBlock'](_0xa05776)&&!_0x16a27c['isLimit'](_0xa05776)&&(_0xa05776['nextSibling']||_0x36606e['isAtEnd']?_0x41cd3c&&_0x41cd3c['parent']==_0xa05776||(_0x41cd3c=_0xa05776,_0x5d8ad4(_0x1d7645['previousPosition']),_0x25d3ad=!0x0):_0x2a98c2=_0x2a98c2||_0x1d7645['previousPosition']));}function _0x5d8ad4(_0x2b006b){const {authorId:_0x5a55f3}=_0x3291df['_splitMarkerName'](_0x34fba4['markerName']),_0x1e7b0f=_0x1312af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc48d68,'data-author-id':_0x5a55f3}),_0x162388=_0x1312af['mapper']['toViewPosition'](_0x2b006b);_0x2be6f9&&_0x3291df['activeMarkers']['includes'](_0x34fba4['markerName'])&&_0x1312af['writer']['addClass']('ck-suggestion-marker--active',_0x1e7b0f),_0x1312af['writer']['insert'](_0x162388,_0x1e7b0f),_0x1312af['mapper']['bindElementToMarker'](_0x1e7b0f,_0x34fba4['markerName']);}_0x54b202||_0x25d3ad||!_0x2a98c2||_0x5d8ad4(_0x2a98c2);};}class z extends _0xd0fe4f{static get['requires'](){return[_0x201443];}['init'](){const _0xc5058=this['editor'],_0x5b6728=_0xc5058['plugins']['get']('TrackChangesEditing');_0x5b6728['enableCommand']('delete');const _0x230efa=_0xc5058['commands']['get']('deleteForward');_0x5b6728['enableCommand']('deleteForward',(_0x25b8ce,_0x3921dc={})=>{const _0x5224c7=_0xc5058['model']['createSelection'](_0xc5058['model']['document']['selection']);_0x5224c7['isCollapsed']&&_0xc5058['model']['modifySelection'](_0x5224c7,{'direction':'forward','unit':_0x3921dc['unit']});const _0x5e6dfb=_0x5224c7['getFirstRange'](),_0x386270=_0x425d25['fromRange'](_0x5e6dfb);let _0xef3c84;_0x25b8ce(_0x3921dc),_0xef3c84='$graveyard'==_0x386270['root']['rootName']?_0xc5058['model']['createRange'](_0x5e6dfb['start']):_0xc5058['model']['createRange'](_0x386270['start'],_0x386270['end']),_0x386270['detach'](),_0xc5058['model']['enqueueChange'](_0x230efa['buffer']['batch'],_0x3f73f1=>{_0x230efa['buffer']['lock'](),_0x3f73f1['setSelection'](_0x3f73f1['createRange'](_0xef3c84['end'])),_0x230efa['buffer']['unlock']();});}),_0xc5058['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xc5058,'merge'),{'priority':'high'}),_0xc5058['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x563a57,_0x17bd4e,_0x1d663f)=>{_0x1d663f['options']['showSuggestionHighlights']&&_e(_0xc5058,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x563a57,_0x17bd4e,_0x1d663f);},{'priority':'high'}),_0xc5058['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5b0ce6,_0x2a3f44,_0x5622eb)=>{const _0xc8e3ae=_0x5622eb['mapper']['markerNameToElements'](_0x2a3f44['markerName']);if(_0xc8e3ae){for(const _0x393e7f of _0xc8e3ae)_0x393e7f['is']('uiElement')&&(_0x5622eb['mapper']['unbindElementFromMarkerName'](_0x393e7f,_0x2a3f44['markerName']),_0x5622eb['writer']['remove'](_0x393e7f));}},{'priority':'high'});}}class K extends _0xd0fe4f{['afterInit'](){const _0x3f5470=this['editor'];if(!_0x3f5470['plugins']['has']('ListEditing'))return;const _0x14d627=_0x3f5470['locale'],_0x107ceb=_0x3f5470['plugins']['get']('TrackChangesEditing'),_0x2febb=_0x3f5470['plugins']['has']('TodoListEditing'),_0x377f80=!!_0x3f5470['config']['get']('list.multiBlock');function _0x556dcb(_0x3f92b5){return{'type':'format','content':''+o(_0x14d627,'*Set\x20format:*\x20%0',_0x3f92b5)};}function _0x1db529(_0x517b1b){return{'type':'format','content':''+o(_0x14d627,'*Remove\x20format:*\x20%0',_0x517b1b)};}_0x107ceb['enableDefaultAttributesIntegration']('numberedList'),_0x107ceb['enableDefaultAttributesIntegration']('bulletedList'),_0x107ceb['enableDefaultAttributesIntegration']('customNumberedList'),_0x107ceb['enableDefaultAttributesIntegration']('customBulletedList'),_0x107ceb['enableDefaultAttributesIntegration']('indentList'),_0x107ceb['enableDefaultAttributesIntegration']('outdentList'),_0x107ceb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x107ceb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x107ceb['registerBlockAttribute']('listItemId'),_0x107ceb['registerBlockAttribute']('listType'),_0x107ceb['registerBlockAttribute']('listIndent'),_0x377f80&&(_0x107ceb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x107ceb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2febb&&(_0x107ceb['enableDefaultAttributesIntegration']('todoList'),_0x107ceb['enableDefaultAttributesIntegration']('checkTodoList'),_0x107ceb['registerBlockAttribute']('todoListChecked'),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x14a07f=>{const {data:_0x5e351c}=_0x14a07f;if(_0x5e351c&&'todoListChecked'==_0x5e351c['key'])return{'type':'format','content':_0x5e351c['newValue']?o(_0x14d627,'*Check\x20item*'):o(_0x14d627,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34e852=>{if(_0x34e852['batch']['isUndo'])return!0x1;let _0x4cfd41=!0x1;const _0x495909=_0x107ceb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20bc8c=>'todoListChecked'===_0x107ceb['_getAttributeKey'](_0x20bc8c));for(const _0x2f086b of _0x495909){'todo'!=_0x2f086b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x107ceb['_findSuggestions'](_0x2f086b['getFirstRange'](),'attribute')['find'](_0x1019c9=>'listType'===_0x107ceb['_getAttributeKey'](_0x1019c9['suggestion']))||(_0x34e852['removeMarker'](_0x2f086b['getFirstMarker']()),_0x4cfd41=!0x0));}return _0x4cfd41;})),_0x107ceb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x14d627,'FORMAT_INDENT'));const _0x23c56e={'type':'format','content':''};_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x5b91ab=>{const {data:_0x36f3f3}=_0x5b91ab;if(!_0x36f3f3||'listType'!=_0x36f3f3['key'])return;let _0x46823a=_0x5b91ab['head'];for(;_0x46823a;){if(_0x46823a['data']&&(('listStyle'==_0x46823a['data']['key']||'listMarkerStyle'==_0x46823a['data']['key'])&&(_0x46823a['data']['newValue']&&'default'!=_0x46823a['data']['newValue']||'default'!=_0x46823a['data']['oldValue']&&!_0x36f3f3['newValue'])||!_0x377f80&&_0x46823a['data']['key']==m))return _0x23c56e;_0x46823a=_0x46823a['next'];}if(null==_0x36f3f3['newValue'])switch(_0x36f3f3['oldValue']){case'bulleted':return _0x1db529(o(_0x14d627,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1db529(o(_0x14d627,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1db529(o(_0x14d627,'ELEMENT_TODO_LIST'));}switch(_0x36f3f3['newValue']){case'bulleted':return _0x556dcb(o(_0x14d627,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x556dcb(o(_0x14d627,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x556dcb(o(_0x14d627,'ELEMENT_TODO_LIST'));}}),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x42567f=>{const {data:_0x49858a}=_0x42567f;if(_0x49858a&&'listIndent'==_0x49858a['key'])return null==_0x49858a['newValue']||null==_0x49858a['oldValue']&&0x0==_0x49858a['newValue']?_0x23c56e:void 0x0;}),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0xf6de91=>{if('attribute'!=_0xf6de91['type'])return;const {data:_0x3ca4cb}=_0xf6de91;if(!_0x3ca4cb||'listItemId'!=_0x3ca4cb['key'])return;const _0x420b88=Ee(_0xf6de91);return'newValue'==_0x420b88?{'type':'format','content':o(_0x14d627,'*Merge:*\x20list\x20item')}:'oldValue'==_0x420b88?{'type':'format','content':o(_0x14d627,'*Split:*\x20list\x20item')}:_0x23c56e;}),_0x3f5470['model']['document']['registerPostFixer'](_0x2c864e=>this['listItemIdFixer'](_0x2c864e)),_0x3f5470['model']['document']['registerPostFixer'](_0x23db3c=>this['noTrackChangesFixer'](_0x23db3c)),_0x3f5470['model']['document']['on']('change:data',(_0x4af203,_0x5b7e52)=>{if(_0x5b7e52['isUndo']||!_0x5b7e52['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb8a456){if(_0xb8a456['batch']['isUndo']||!_0xb8a456['batch']['isLocal'])return!0x1;let _0x1d9f9f=!0x1;const _0x20169d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245d67=>_0x245d67['data']&&'listItemId'==_0x245d67['data']['key'])['filter'](_0xa424d3=>_0xa424d3['data']['newValue']&&_0xa424d3['data']['oldValue']);for(const _0x1d01a4 of _0x20169d)Ee(_0x1d01a4)||(_0xb8a456['removeMarker'](_0x1d01a4['getFirstMarker']()),_0x1d9f9f=!0x0);return _0x1d9f9f;}['noTrackChangesFixer'](_0x3d74a3){if(_0x3d74a3['batch']['isUndo']||!_0x3d74a3['batch']['isLocal'])return!0x1;const _0x75ebfe=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x75ebfe['trackChangesCommand']['value'])return!0x1;let _0x53507d=!0x1;const _0x2de581=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2aefd9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38c6b7=>'attribute'==_0x38c6b7['type'])['filter'](_0x378f1c=>_0x2de581['includes'](_0x378f1c['attributeKey']));if(0x0==_0x2aefd9['length'])return _0x53507d;for(const _0x154a3c of _0x2aefd9){const _0x5bbe63=_0x75ebfe['_findSuggestions'](_0x154a3c['range'],'attribute')['filter'](_0x4f4dda=>!_0x4f4dda['meta']['isNextTo'])['map'](_0xf5fc80=>_0xf5fc80['suggestion'])['filter'](_0xfb773a=>{const _0x3f9041=_0x75ebfe['_getAttributeKey'](_0xfb773a);return _0x2de581['includes'](_0x3f9041);});if(_0x5bbe63['length']){for(const _0x21e9ed of _0x5bbe63)_0x3d74a3['removeMarker'](_0x21e9ed['getFirstMarker']());_0x53507d=!0x0;}}return _0x53507d;}['assureChains'](){const _0x12ad42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ebd0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47504a;const _0x20b91c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x489a93=>{if(_0x489a93['data']['oldRange']||!_0x489a93['data']['newRange'])return null;if(!_0x489a93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x497c22}=_0x12ad42['_splitMarkerName'](_0x489a93['name']);if(!_0x12ad42['hasSuggestion'](_0x497c22))return null;const _0x37b9ea=_0x12ad42['getSuggestion'](_0x497c22);return _0x5ebd0d['includes'](_0x37b9ea['data']['key']);})['map'](_0x571a78=>{const {id:_0x394f47}=_0x12ad42['_splitMarkerName'](_0x571a78['name']),_0x20211c=_0x12ad42['getSuggestion'](_0x394f47);return _0x47504a=_0x20211c['attributes']['groupId'],_0x20211c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x20b91c['size'])return;const _0x4622b7=_0x12ad42['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf311a6=>'attribute'==_0xf311a6['type']&&_0xf311a6['data']&&_0x5ebd0d['includes'](_0xf311a6['data']['key'])&&_0xf311a6['attributes']['groupId']!=_0x47504a)['map'](_0x3db588=>({'listItem':_0x3db588['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3db588['attributes']['groupId']})),_0xad04c0=new Set();for(const {groupId:_0x45b6ff,listItem:_0x4bf58e}of _0x4622b7)_0x20b91c['has'](_0x4bf58e)&&_0xad04c0['add'](_0x45b6ff);for(const _0x8989cc of _0x12ad42['getSuggestions']())_0xad04c0['has'](_0x8989cc['attributes']['groupId'])&&_0x8989cc['setAttribute']('groupId',_0x47504a);}['_supportLegacySuggestions'](){const _0x2e13a7=this['editor'],_0x2d3a32=_0x2e13a7['locale'],_0xf30f2b=_0x2e13a7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf30f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a425a,_0x18b443){const _0x4181cd=[];for(let _0x27c806 of _0x1a425a)_0x27c806['start']['nodeAfter']===_0x27c806['end']['parent']&&(_0x27c806=_0x2e13a7['model']['createRange'](_0x2e13a7['model']['createPositionAt'](_0x27c806['start']['nodeAfter'],0x0))),_0x4181cd['push'](_0x27c806);_0x2e13a7['model']['change'](_0x4b091=>{const _0x4c16fa=_0x2e13a7['model']['document']['selection'],_0x1c7362=Array['from'](_0x4c16fa['getRanges']())['map'](_0x5e5c1e=>_0x425d25['fromRange'](_0x5e5c1e));_0x4b091['setSelection'](_0x4181cd),_0x2e13a7['commands']['get'](_0x18b443['commandName'])['refresh'](),_0x18b443['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e13a7['execute'](_0x18b443['commandName'],..._0x18b443['commandParams']),_0x4b091['setSelection'](_0x1c7362);for(const _0x2b1b0d of _0x1c7362)_0x2b1b0d['detach']();});}),_0xf30f2b['descriptionFactory']['registerElementLabel'](function(_0x137f5e){const _0x679245=!_0x2e13a7['model']['schema']['isObject'](_0x137f5e),_0x1fd376=_0x137f5e['previousSibling'],_0x575fb8=_0x137f5e['nextSibling'],_0xd23a07=_0x137f5e['getAttribute']('listItemId'),_0x416080=!_0x1fd376||_0x1fd376['getAttribute']('listItemId')!==_0xd23a07,_0x37a922=!_0x575fb8||_0x575fb8['getAttribute']('listItemId')!==_0xd23a07;return _0x679245&&Boolean(_0xd23a07)&&_0x416080&&_0x37a922;},_0x4bc1fc=>o(_0x2d3a32,'ELEMENT_LIST_ITEM',_0x4bc1fc));}['_registerLegacyDescription'](){const _0x22a2f7=this['editor'],_0x3da765=_0x22a2f7['locale'];function _0x1b0a4b(_0x1be32a){const _0x101348=_0x22a2f7['commands']['get']('bulletedList')['value'],_0x1bff1c=_0x22a2f7['commands']['get']('numberedList')['value'];return'numberedList'===_0x1be32a?_0x101348:_0x1bff1c;}_0x22a2f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xc8b30e){if('formatBlock'!=_0xc8b30e['type'])return;const {data:_0x26b192}=_0xc8b30e;if(!_0x26b192)return;let _0x5609ba,_0x4d50a0,_0x82d0b6,_0x299a29;switch(_0x26b192['commandName']){case'bulletedList':_0x82d0b6=_0x26b192['commandParams'][0x0]['forceValue'],_0x299a29=_0x1b0a4b(_0x26b192['commandName']),_0x5609ba=_0x82d0b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x299a29&&_0x22a2f7['config']['get']('list.multiBlock')||(_0x5609ba='*Change\x20to:*\x20%0'),_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x82d0b6=_0x26b192['commandParams'][0x0]['forceValue'],_0x299a29=_0x1b0a4b(_0x26b192['commandName']),_0x5609ba=_0x82d0b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x299a29&&_0x22a2f7['config']['get']('list.multiBlock')||(_0x5609ba='*Change\x20to:*\x20%0'),_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5609ba='*Indent:*\x20%0',_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5609ba=function(_0x5977cb){const _0x5dc69e=_0x5977cb['getFirstRange']();let _0x553a30=_0x5dc69e['start']['nodeAfter'];for(;_0x553a30&&_0x5dc69e['containsItem'](_0x553a30);){if(_0x553a30['getAttribute']('listIndent')>0x0)return!0x1;_0x553a30=_0x553a30['nextSibling'];}return!0x0;}(_0xc8b30e)?o(_0x3da765,'*Format:*\x20remove\x20from\x20%0',o(_0x3da765,function(_0x225176){return'ELEMENT_'+_0x225176['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xc8b30e))):o(_0x3da765,'*Outdent:*\x20%0',o(_0x3da765,'ELEMENT_LIST_ITEM')),_0x4d50a0={'type':'format','content':_0x5609ba};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x26b192['multipleBlocks']&&(_0x5609ba='*Merge:*\x20%0',_0x4d50a0={'type':'deletion','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_LIST_ITEM'))});}return _0x4d50a0;});}}function Ee(_0x37ae67){let _0x52479d=_0x37ae67['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x52479d;){const _0x2348ac=_0x52479d['getAttribute']('listItemId');if(!_0x2348ac)return!0x1;if(_0x2348ac==_0x37ae67['data']['newValue'])return'newValue';if(_0x2348ac==_0x37ae67['data']['oldValue'])return'oldValue';_0x52479d=_0x52479d['previousSibling'];}return!0x1;}class pe extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30da7d=this['editor']['config']['get']('list.properties'),_0x52f1f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x30da7d['styles']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listStyle'),_0x52f1f0['registerBlockAttribute']('listStyle')),_0x30da7d['reversed']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listReversed'),_0x52f1f0['registerBlockAttribute']('listReversed')),_0x30da7d['startIndex']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listStart'),_0x52f1f0['registerBlockAttribute']('listStart'));const _0x3ac669={'type':'format','content':''};_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x230e7e=this['editor']['locale'];_0x52f1f0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x230e7e,'FORMAT_LIST_REVERSED')),_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](_0x3f35db=>{const {data:_0x59ca7e}=_0x3f35db;if(_0x59ca7e&&'listReversed'==_0x59ca7e['key'])return null==_0x59ca7e['newValue']||0x0==_0x59ca7e['newValue']&&null==_0x59ca7e['oldValue']?_0x3ac669:void 0x0;}),_0x52f1f0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x230e7e,'FORMAT_LIST_START')),_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](_0x5c618b=>{const {data:_0x53422f}=_0x5c618b;if(_0x53422f&&'listStart'==_0x53422f['key'])return null==_0x53422f['newValue']||0x1==_0x53422f['newValue']&&null==_0x53422f['oldValue']?_0x3ac669:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x39c4a2=>{if(_0x39c4a2['batch']['isUndo'])return!0x1;let _0x3dff93=!0x1;const _0x478d3f=_0x52f1f0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a976e=>{const _0xb0f899=_0x52f1f0['_getAttributeKey'](_0x1a976e);return'listStart'==_0xb0f899||'listReversed'==_0xb0f899;});for(const _0xabe9a9 of _0x478d3f){const _0x3a591b=_0xabe9a9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a591b||'customNumbered'==_0x3a591b)continue;_0x52f1f0['_findSuggestions'](_0xabe9a9['getFirstRange'](),'attribute')['find'](_0x533c32=>'listType'==_0x52f1f0['_getAttributeKey'](_0x533c32['suggestion']))||(_0x39c4a2['removeMarker'](_0xabe9a9['getFirstMarker']()),_0x3dff93=!0x0);}return _0x3dff93;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x513216){const _0x3d2df3=this['editor']['locale'],{data:_0x25033c}=_0x513216,_0x33b32c={'type':'format','content':''};if(!_0x25033c||'listStyle'!=_0x25033c['key'])return;if(!_0x25033c['oldValue'])return'default'==_0x25033c['newValue']?_0x33b32c:{'type':'format','content':''+o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['newValue'])))};if(!_0x25033c['newValue']){if('default'==_0x25033c['oldValue'])return _0x33b32c;let _0x26b052=_0x513216['head'];for(;_0x26b052;){if(_0x26b052['data']&&'listType'==_0x26b052['data']['key']&&_0x26b052['data']['newValue'])return _0x33b32c;_0x26b052=_0x26b052['next'];}return{'type':'format','content':''+o(_0x3d2df3,'*Remove\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['oldValue'])))};}if('default'!=_0x25033c['newValue'])return{'type':'format','content':''+o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['newValue'])))};let _0x49360f=_0x513216['head'];for(;_0x49360f;){if(_0x49360f['data']&&'listType'==_0x49360f['data']['key']&&_0x49360f['data']['newValue']&&_0x49360f['data']['oldValue'])return _0x33b32c;_0x49360f=_0x49360f['next'];}return{'type':'format','content':o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,'ELEMENT_'+_0x513216['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3eaf4c=this['editor'],_0x57174a=_0x3eaf4c['locale'];_0x3eaf4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1269=>{if('formatBlock'!=_0x3d1269['type'])return;const {data:_0x1b0bd7}=_0x3d1269;if(!_0x1b0bd7)return;let _0x25d990,_0x565467;switch(_0x1b0bd7['commandName']){case'listStyle':_0x25d990='*Change\x20to:*\x20%0',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990,o(_0x57174a,this['_getTranslationKeyForListStyle'](_0x1b0bd7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25d990=_0x1b0bd7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990)};break;case'listStart':_0x25d990='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990,_0x1b0bd7['commandParams'][0x0]['startIndex'])};}return _0x565467;});}['_getTranslationKeyForListStyle'](_0x187f30){return'ELEMENT_'+function(_0x1cb1ae){if(ye['includes'](_0x1cb1ae))return'bulleted';if(Se['includes'](_0x1cb1ae))return'numbered';return null;}(_0x187f30)['toUpperCase']()+'_LIST_'+_0x187f30['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0xd0fe4f{static get['requires'](){return[_0x31c29d];}['init'](){const _0x52cf18=this['editor'],_0x2537db=_0x52cf18['plugins']['get']('TrackChangesEditing'),_0x23a0e4=_0x52cf18['commands']['get']('enter');_0x2537db['enableCommand']('enter',()=>{_0x52cf18['model']['change'](_0x13b3ec=>{const _0x4abdef=_0x52cf18['model']['document']['selection'],_0x3fa418=_0x4abdef['getFirstPosition'](),_0x3c21cd=_0x425d25['fromRange'](_0x4abdef['getFirstRange']());if(_0x23a0e4['enterBlock'](_0x13b3ec)){const _0x4a62d7=_0x52cf18['model']['createPositionAt'](_0x3fa418['parent']['nextSibling'],0x0),_0x3340c6=_0x13b3ec['createRange'](_0x3fa418,_0x4a62d7);_0x2537db['markInsertion'](_0x3340c6);}else _0x13b3ec['setSelection'](_0x13b3ec['createRange'](_0x3c21cd['end']));_0x3c21cd['detach'](),_0x23a0e4['fire']('afterExecute',{'writer':_0x13b3ec});});}),_0x52cf18['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x52cf18,'split'),{'priority':'high'}),_0x52cf18['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x21b963,_0x1e7123,_0x553ec6)=>{const _0x458fb3=_0x553ec6['mapper']['markerNameToElements'](_0x1e7123['markerName']);if(_0x458fb3){for(const _0x669089 of _0x458fb3)_0x669089['hasClass']('ck-suggestion-marker-split')&&(_0x553ec6['mapper']['unbindElementFromMarkerName'](_0x669089,_0x1e7123['markerName']),_0x553ec6['writer']['remove'](_0x669089));}},{'priority':'high'}),_0x52cf18['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ce8b3,_0x1f9f34,_0x497bd5)=>{_0x497bd5['options']['showSuggestionHighlights']&&_e(_0x52cf18,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ce8b3,_0x1f9f34,_0x497bd5);},{'priority':'high'});}}class X extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39448e=this['editor']['plugins']['get']('TrackChangesEditing');_0x39448e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39448e['enableCommand']('findNext'),_0x39448e['enableCommand']('findPrevious'),_0x39448e['enableCommand']('replace'),_0x39448e['enableCommand']('replaceAll');}['handleFindCommand'](_0x1de632,_0x594126,_0x5a58e9={}){const _0x45678c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1de632(_0x414371=>{let _0x674366=('string'==typeof _0x594126?_0x45678c['findByTextCallback'](_0x594126,_0x5a58e9):_0x594126)(_0x414371);Array['isArray'](_0x674366)&&(_0x674366={'results':_0x674366,'searchText':'string'==typeof _0x594126?_0x594126:''});const _0x1eddad=_0x674366['results']['filter'](_0x5a7c6c=>!0x1===this['_isInDeletionRange'](_0x5a7c6c,_0x414371['item']));return{..._0x674366,'results':_0x1eddad};},_0x5a58e9);}['_isInDeletionRange'](_0x360472,_0x219cd8){const _0x44ade7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x219cd8,_0x360472['start']),this['editor']['model']['createPositionAt'](_0x219cd8,_0x360472['end']));for(const _0x3e5997 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x44ade7['getIntersection'](_0x3e5997['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 _0xd0fe4f{['afterInit'](){const _0x1c96d3=this['editor']['locale'],_0x19d55a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c5869,commandName:_0x140898}of ro)this['editor']['plugins']['has'](_0x2c5869)&&(_0x19d55a['enableDefaultAttributesIntegration'](_0x140898),_0x19d55a['registerInlineAttribute'](_0x140898));_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c96d3,'FORMAT_FONT_SIZE')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c96d3,'FORMAT_FONT_FAMILY')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c96d3,'FORMAT_FONT_COLOR')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c96d3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x470abf=this['editor'],_0x4f4eee=_0x470abf['locale'];_0x470abf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2161ab=>{const _0x2061f6=_0x4f4eee['t'];if('formatInline'!=_0x2161ab['type'])return;const {data:_0x57640}=_0x2161ab;if(null!=_0x57640){if('fontSize'==_0x57640['commandName']){const _0x497e34=_0x57640['commandParams'][0x0]['value'];if(_0x497e34){const _0x4e8162=_0x2061f6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x390f34=>_0x390f34['model']==_0x497e34)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20size:*\x20%0',_0x4e8162)};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x57640['commandName']){const _0xacdf47=_0x57640['commandParams'][0x0]['value'];return _0xacdf47?{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20family:*\x20%0',_0xacdf47)}:{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x57640['commandName']){const _0x1f1792=_0x57640['commandParams'][0x0]['value'];if(_0x1f1792){const _0x32d232=_0x5649af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x165370=>_0x165370['model']==_0x1f1792);let _0x48fc4d=_0x1f1792,_0x5dbed3='';return _0x32d232&&(_0x48fc4d=_0x32d232['label'],_0x5dbed3=_0x2061f6(_0x48fc4d)['toLowerCase']()),{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20color:*\x20%0',_0x5dbed3)['trim'](),'color':{'value':_0x1f1792,'title':_0x5dbed3||_0x48fc4d}};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x57640['commandName']){const _0x35e7d9=_0x57640['commandParams'][0x0]['value'];if(_0x35e7d9){const _0x53f263=_0x5649af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xfe921e=>_0xfe921e['model']==_0x35e7d9);let _0x472967=_0x35e7d9,_0x16f582='';return _0x53f263&&(_0x472967=_0x53f263['label'],_0x16f582=_0x2061f6(_0x472967)['toLowerCase']()),{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20background\x20color:*\x20%0',_0x16f582)['trim'](),'color':{'value':_0x35e7d9,'title':_0x16f582||_0x472967}};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0xd0fe4f{['afterInit'](){const _0x17df47=this['editor'],_0x3e85c6=_0x17df47['plugins']['get']('TrackChangesEditing'),_0x45c870=_0x17df47['commands']['get']('copyFormat'),_0x4b543c=_0x17df47['commands']['get']('pasteFormat');_0x45c870&&_0x4b543c&&(_0x3e85c6['enableDefaultAttributesIntegration']('pasteFormat'),_0x3e85c6['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xab5644=this['editor'],_0x2ad89c=_0xab5644['locale'];_0xab5644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5702f2=>{if('formatBlock'!=_0x5702f2['type']&&'formatInline'!=_0x5702f2['type'])return;const {data:_0x5af7a8}=_0x5702f2;if(_0x5af7a8&&'pasteFormat'===_0x5af7a8['commandName']){const _0x40a5c=[],_0x520064=_0x5af7a8['commandParams'][0x0];for(const [_0x39a159,_0xbe061b]of Object['entries'](_0x520064))_0x40a5c['push'](so(_0xab5644,_0x39a159,_0xbe061b));return _0x40a5c['length']?{'type':'format','content':o(_0x2ad89c,'*Set\x20format\x20to:*\x20%0',_0x40a5c['join'](',\x20'))}:{'type':'format','content':o(_0x2ad89c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3509cc,_0x308889,_0x2d9666){const _0x448bd3=_0x3509cc['locale']['t'],_0x3e6ed7=_0x308889['split'](/(?=[A-Z])/)['join']('\x20'),_0x54c8c3=_0x448bd3(_0x3e6ed7['charAt'](0x0)['toUpperCase']()+_0x3e6ed7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2d9666)return _0x54c8c3;if('fontColor'===_0x308889||'fontBackgroundColor'===_0x308889){const _0x8768b=_0x5649af(_0x3509cc['config']['get']('fontColor.colors'))['find'](_0xe1a8fc=>_0xe1a8fc['model']==_0x2d9666);return _0x54c8c3+'\x20('+(_0x8768b?_0x448bd3(_0x8768b['label'])['toLowerCase']():_0x2d9666)+')';}if('fontSize'===_0x308889&&isNaN(parseFloat(_0x2d9666))){const _0x63662a=_0x3509cc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3509cc['config']['get']('fontSize.options'))['find'](_0x3b2ea0=>_0x3b2ea0['model']==_0x2d9666);return _0x54c8c3+'\x20('+(_0x63662a?_0x448bd3(_0x63662a['title'])['toLowerCase']():_0x2d9666)+')';}return _0x54c8c3+'\x20('+_0x2d9666+')';}class tt extends _0xd0fe4f{['_headingOptions'];['afterInit'](){const _0xc256b1=this['editor'];if(!_0xc256b1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xc256b1['config']['get']('heading.options');const _0x575286=_0xc256b1['locale'],_0x258e88=_0xc256b1['plugins']['get']('TrackChangesEditing');_0x258e88['enableDefaultAttributesIntegration']('heading');for(const _0x4c4882 of this['_headingOptions'])'paragraph'!=_0x4c4882['model']&&_0x258e88['descriptionFactory']['registerElementLabel'](_0x4c4882['model'],_0x1ec49c=>{const _0x576e84=this['_getHeadingLevel'](_0x4c4882['model']);return null!==_0x576e84?_0x5c6b9f(_0x1ec49c,_0x576e84):_0x3750a7(_0x1ec49c,_0x4c4882['title']);});function _0x5c6b9f(_0x506ee6,_0x525b18){return o(_0x575286,'ELEMENT_HEADING',[_0x506ee6,_0x525b18]);}function _0x3750a7(_0x5cfd17,_0x4f2625){return o(_0x575286,'ELEMENT_HEADING_CUSTOM',[_0x5cfd17,_0x4f2625]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac3226=this['editor'],_0x5ce8fe=_0xac3226['locale'];function _0x4a7268(_0xfb5501,_0x40df0d){return o(_0x5ce8fe,'ELEMENT_HEADING_CUSTOM',[_0xfb5501,_0x40df0d]);}_0xac3226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf46c69=>{if('formatBlock'!=_0xf46c69['type'])return;const {data:_0x4d9723}=_0xf46c69;if(_0x4d9723&&'heading'==_0x4d9723['commandName']){const _0x25e63d=_0x4d9723['commandParams'][0x0]['value'],_0x7eb8ee=this['_getHeadingLevel'](_0x25e63d);if(null!==_0x7eb8ee)return{'type':'format','content':o(_0x5ce8fe,'*Change\x20to:*\x20%0',(_0x239578=0x1,_0x27ae97=_0x7eb8ee,o(_0x5ce8fe,'ELEMENT_HEADING',[_0x239578,_0x27ae97])))};const _0x377e52=this['_headingOptions']['find'](_0x2a47d3=>_0x2a47d3['model']===_0x25e63d)['title'];return{'type':'format','content':o(_0x5ce8fe,'*Change\x20to:*\x20%0',_0x4a7268(0x1,_0x377e52))};}var _0x239578,_0x27ae97;});}['_getHeadingLevel'](_0x40d039){const _0x902947=_0x40d039['match'](/^heading(\d+)/);if(_0x902947)return _0x902947[0x1];const _0x2ec9b1=this['_headingOptions']?.['find'](_0x3f738c=>_0x3f738c['model']==_0x40d039);if(_0x2ec9b1&&_0x2ec9b1['view']){const _0x474f16=_0x2ec9b1['view'],_0x351c74=(_0x474f16['name']??_0x474f16)['match'](/^h(\d+)/);if(_0x351c74)return _0x351c74[0x1];}return null;}}class et extends _0xd0fe4f{['afterInit'](){const _0x3181eb=this['editor'];if(!_0x3181eb['plugins']['has']('HighlightEditing'))return;const _0x469ca2=_0x3181eb['plugins']['get']('TrackChangesEditing'),_0x151bf4=_0x3181eb['locale'];_0x469ca2['enableDefaultAttributesIntegration']('highlight'),_0x469ca2['registerInlineAttribute']('highlight'),_0x469ca2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x151bf4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c3803=this['editor'],_0x16063a=_0x5c3803['locale'];_0x5c3803['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5031d4=>{if('formatInline'!=_0x5031d4['type'])return;const {data:_0x1b8cc4}=_0x5031d4;if(_0x1b8cc4&&'highlight'==_0x1b8cc4['commandName']){const _0x361d35=_0x16063a['t'],_0x35c6de=_0x1b8cc4['commandParams'][0x0]['value'];if(_0x35c6de){const _0x52411b=_0x5c3803['config']['get']('highlight.options')['find'](_0x27685b=>_0x27685b['model']==_0x35c6de),_0x44c1f7=_0x361d35(_0x52411b['title'])['toLowerCase']();return{'type':'format','content':o(_0x16063a,'*Set\x20highlight:*\x20%0',_0x44c1f7),'color':{'value':_0x52411b['color'],'title':_0x52411b['title']}};}return{'type':'format','content':o(_0x16063a,'*Remove\x20highlight*',o(_0x16063a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xd0fe4f{['afterInit'](){const _0x1b9a5f=this['editor'];if(!_0x1b9a5f['plugins']['has']('HorizontalLineEditing'))return;_0x1b9a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1b86e3=_0x1b9a5f['plugins']['get']('TrackChangesEditing'),_0x4650d4=_0x1b9a5f['locale'];_0x1b86e3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x40c560=>o(_0x4650d4,'ELEMENT_HORIZONTAL_LINE',_0x40c560)),_0x1b9a5f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48a467,{writer:_0x25b218,options:_0x5733ed})=>{if(!_0x5733ed['showSuggestionHighlights'])return null;const _0x434729=_0x25b218['createContainerElement']('div'),_0x242829=_0x25b218['createEmptyElement']('hr');return _0x25b218['addClass']('ck-horizontal-line',_0x434729),_0x25b218['insert'](_0x25b218['createPositionAt'](_0x434729,0x0),_0x242829),_0x434729;},'converterPriority':'high'});}}class st extends _0xd0fe4f{['afterInit'](){const _0x577967=this['editor'];if(!_0x577967['plugins']['has']('HtmlEmbed'))return;const _0x29a52f=_0x577967['plugins']['get']('TrackChangesEditing'),_0x5a3823=_0x577967['locale'];_0x29a52f['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d0bef=>o(_0x5a3823,'ELEMENT_HTML_EMBED',_0x4d0bef)),_0x29a52f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29a52f['registerBlockAttribute']('value'),_0x29a52f['descriptionFactory']['registerDescriptionCallback'](_0x3d3d36=>{if('attribute'!=_0x3d3d36['type'])return;const {data:_0x56abbc}=_0x3d3d36;if(_0x56abbc&&'value'==_0x56abbc['key']&&_0x3d3d36['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x50b596=o(_0x5a3823,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a3823,'*Change\x20%0\x20content*',_0x50b596)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55740a=this['editor'],_0x2d11fe=_0x55740a['locale'];_0x55740a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8526=>{if('formatBlock'!=_0x3e8526['type'])return;const {data:_0x38ec31}=_0x3e8526;if(_0x38ec31&&'htmlEmbed'==_0x38ec31['commandName']){const _0x3470ac=o(_0x2d11fe,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d11fe,'*Change\x20%0\x20content*',_0x3470ac)};}});}}class nt extends _0xd0fe4f{['afterInit'](){const _0x3e7aa5=this['editor'];if(!_0x3e7aa5['plugins']['has']('ImageEditing'))return;const _0x8308e8=_0x3e7aa5['plugins']['get']('TrackChangesEditing'),_0x11d8e7=_0x3e7aa5['plugins']['get']('ImageUtils'),_0x4b11ac=_0x3e7aa5['locale'];_0x8308e8['enableCommand']('insertImage'),_0x8308e8['descriptionFactory']['registerElementLabel']('imageBlock',_0x3de0e5=>o(_0x4b11ac,'ELEMENT_IMAGE',_0x3de0e5)),_0x8308e8['descriptionFactory']['registerElementLabel']('imageInline',_0x17407c=>o(_0x4b11ac,'ELEMENT_INLINE_IMAGE',_0x17407c)),_0x8308e8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4b11ac,'ELEMENT_CAPTION')),_0x3e7aa5['plugins']['has']('ImageUploadEditing')&&_0x8308e8['enableCommand']('uploadImage'),_0x3e7aa5['plugins']['has']('ImageBlockEditing')&&_0x3e7aa5['plugins']['has']('ImageInlineEditing')&&(_0x8308e8['enableCommand']('imageTypeInline',(_0x450417,_0x17fcfb)=>{const _0x5a17ba=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']);_0x3e7aa5['model']['change'](()=>{_0x8308e8['markBlockFormat'](_0x5a17ba,{'commandName':'imageTypeInline','commandParams':[_0x17fcfb]},[],'convertBlockImageToInline');});}),_0x8308e8['enableCommand']('imageTypeBlock',(_0x4952cb,_0x11df96)=>{_0x3e7aa5['model']['change'](_0x21331c=>{let _0x472956=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x59724a=_0x21331c['createRangeOn'](_0x472956);const _0x5f5d6c=_0x4906b7['fromPosition'](_0x59724a['start'],'toPrevious'),_0x141296=_0x4906b7['fromPosition'](_0x59724a['end'],'toNext');_0x8308e8['forceDefaultExecution'](()=>_0x4952cb(_0x11df96)),_0x472956=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x59724a=_0x21331c['createRangeOn'](_0x472956);const _0x2f4209=_0x21331c['createRange'](_0x5f5d6c,_0x141296);_0x5f5d6c['detach'](),_0x141296['detach'](),_0x8308e8['markBlockFormat'](_0x472956,{'commandName':'imageTypeInline','commandParams':[_0x11df96]},[],'convertInlineImageToBlock'),_0x2f4209['start']['isBefore'](_0x59724a['start'])&&_0x8308e8['markInsertion'](_0x21331c['createRange'](_0x2f4209['start'],_0x59724a['start']),'convertInlineImageToBlock'),_0x59724a['end']['isBefore'](_0x2f4209['end'])&&_0x8308e8['markInsertion'](_0x21331c['createRange'](_0x59724a['end'],_0x2f4209['end']),'convertInlineImageToBlock');});}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8308e8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3353d6])=>{const _0x4dcedc=_0x8308e8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x42081d=_0x3353d6['start'],_0x58fdf5=_0x3353d6['end'];const _0xda60f0=_0x3e7aa5['model']['schema']['getNearestSelectionRange'](_0x42081d,'backward'),_0x7073b1=_0x3e7aa5['model']['schema']['getNearestSelectionRange'](_0x58fdf5,'forward');_0xda60f0['isCollapsed']&&(_0x42081d=_0xda60f0['start']),_0x7073b1['isCollapsed']&&(_0x58fdf5=_0x7073b1['end']),_0x4dcedc([_0x3e7aa5['model']['createRange'](_0x42081d,_0x58fdf5)]);}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x19572e),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x19572e)),_0x3e7aa5['plugins']['has']('ImageCaptionEditing')&&(_0x8308e8['enableCommand']('toggleImageCaption',(_0x5b9a1a,_0x2cb582)=>{const _0x284ea0=_0x3e7aa5['plugins']['get']('ImageCaptionUtils');let _0x538c84=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x1e46c4=_0x284ea0['getCaptionFromImageModelElement'](_0x538c84);_0x3e7aa5['model']['change'](()=>{if(_0x1e46c4)return void _0x8308e8['markDeletion'](_0x3e7aa5['model']['createRangeOn'](_0x1e46c4));const _0x2ecc40=_0x11d8e7['isBlockImage'](_0x538c84);_0x5b9a1a(_0x2cb582),_0x538c84=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x1e46c4=_0x284ea0['getCaptionFromImageModelElement'](_0x538c84),_0x8308e8['markInsertion'](_0x3e7aa5['model']['createRangeOn'](_0x1e46c4),_0x2ecc40?null:'imageCaption');});}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x19572e));const _0x4bb790=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6ca298(_0x50516e,_0x2590bf){const _0x27bb20=_0x4bb790['findIndex'](({type:_0xa3043,subType:_0x20bd8e})=>_0x50516e['type']==_0xa3043&&_0x50516e['subType']==_0x20bd8e),_0x569b71=_0x4bb790['findIndex'](({type:_0x5e0827,subType:_0x49081e})=>_0x2590bf['type']==_0x5e0827&&_0x2590bf['subType']==_0x49081e);if(_0x27bb20<0x0||_0x569b71<0x0)return!0x1;const _0x5cd171=_0x50516e['getFirstRange'](),_0x5cb819=_0x2590bf['getFirstRange']();if((0x0==_0x27bb20||0x1==_0x27bb20)&&0x2==_0x569b71&&_0x5cd171['isIntersecting'](_0x5cb819))return!0x0;if(0x2==_0x27bb20&&0x3==_0x569b71){const _0x20848d=_0x8308e8['_findSuggestions'](_0x5cd171,'insertion')['filter'](({suggestion:_0x285423,meta:_0x2f2af7})=>_0x2f2af7['isOwn']&&'convertInlineImageToBlock'==_0x285423['subType']);if(_0x20848d['length']>0x1&&_0x5cb819['end']['isEqual'](_0x5cd171['start']))return!0x0;if(0x1==_0x20848d['length']&&(_0x5cd171['start']['isEqual'](_0x5cb819['end'])||_0x5cd171['end']['isEqual'](_0x5cb819['start'])))return!0x0;}if(0x3==_0x27bb20&&0x3==_0x569b71&&_0x5cd171['start']['isBefore'](_0x5cb819['start'])){const _0x2c3d47=_0x5cd171['end']['nodeAfter'],_0x36b114=_0x5cb819['start']['nodeBefore'];return _0x11d8e7['isBlockImage'](_0x2c3d47)&&_0x2c3d47===_0x36b114;}return!0x1;}function _0x19572e(_0x435c4a,_0x1a597f){return _0x6ca298(_0x435c4a,_0x1a597f)?[_0x435c4a,_0x1a597f]:_0x6ca298(_0x1a597f,_0x435c4a)?[_0x1a597f,_0x435c4a]:null;}_0x3e7aa5['plugins']['has']('ImageResize')&&(_0x8308e8['enableDefaultAttributesIntegration']('resizeImage'),_0x8308e8['registerBlockAttribute']('resizedWidth'),_0x8308e8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4b11ac,'FORMAT_IMAGE_SIZE'))),_0x3e7aa5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8308e8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8308e8['registerBlockAttribute']('alt')),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x2b8940=>{if(!!_0x4bb790['find'](({type:_0x2acf60,subType:_0x2a47ab})=>_0x2b8940['type']==_0x2acf60&&_0x2b8940['subType']==_0x2a47ab))return _0x2b8940['previous']?{}:void 0x0;}),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x34a1fb=>{if('insertion'==_0x34a1fb['type']||'deletion'==_0x34a1fb['type']){const _0x169c42=_0x34a1fb['getContainedElement']();if(_0x169c42&&_0x169c42['is']('element','caption'))return{'type':'insertion'==_0x34a1fb['type']?'addObject':'removeObject','element':_0x169c42,'quantity':0x1};}}),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x14d3cd=>'formatBlock'==_0x14d3cd['type']&&'convertInlineImageToBlock'==_0x14d3cd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x14d3cd['type']&&'convertBlockImageToInline'==_0x14d3cd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x11af9d=>{if('attribute'!=_0x11af9d['type'])return;const {data:_0xcc569d}=_0x11af9d;if(!_0xcc569d||'alt'!=_0xcc569d['key'])return;const _0x366719=_0xcc569d['newValue'];return _0x366719?{'type':'format','content':o(_0x4b11ac,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x366719+'\x22')}:{'type':'format','content':o(_0x4b11ac,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b984=this['editor'],_0x260f7b=_0x13b984['locale'];_0x13b984['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354df9=>{if('formatBlock'!=_0x354df9['type']&&'formatInline'!=_0x354df9['type'])return;const {data:_0x3e43b6}=_0x354df9;if(_0x3e43b6){if('imageTextAlternative'==_0x3e43b6['commandName']){const _0x253f17=_0x3e43b6['commandParams'][0x0]['newValue'];return _0x253f17?{'type':'format','content':o(_0x260f7b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x253f17+'\x22')}:{'type':'format','content':o(_0x260f7b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e43b6['commandName']){const _0x493866=_0x3e43b6['commandParams'][0x0]['width'];return _0x493866?{'type':'format','content':o(_0x260f7b,'*Set\x20image\x20width:*\x20%0',_0x493866)}:{'type':'format','content':o(_0x260f7b,'*Reset\x20image\x20width*')};}}});}}class ot extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x223f8b=this['editor']['locale'],_0x11ba83=this['editor']['plugins']['get']('TrackChangesEditing');_0x11ba83['enableDefaultAttributesIntegration']('replaceImageSource'),_0x11ba83['registerBlockAttribute']('src'),_0x11ba83['descriptionFactory']['registerDescriptionCallback'](_0x46c76c=>{if('attribute'!=_0x46c76c['type'])return;const {data:_0x5c7800}=_0x46c76c;return _0x5c7800&&'src'==_0x5c7800['key']?_0x5c7800['newValue']&&_0x5c7800['oldValue']?{'type':'format','content':o(_0x223f8b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc6be74=this['editor']['plugins']['get']('TrackChangesEditing');_0xc6be74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc6be74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc6be74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc6be74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x93fa4b=this['editor'],_0x9d5104=_0x93fa4b['locale'];_0x93fa4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1ad2=>{if('formatBlock'!=_0x5e1ad2['type']&&'formatInline'!=_0x5e1ad2['type'])return;const {data:_0x38a324}=_0x5e1ad2;if(!_0x38a324||'replaceImageSource'!=_0x38a324['commandName'])return;return{'type':'format','content':o(_0x9d5104,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0xd0fe4f{['afterInit'](){const _0x1f5f33=this['editor'];if(!_0x1f5f33['plugins']['has']('ImageStyleEditing'))return;const _0x1a7c27=_0x1f5f33['plugins']['get']('TrackChangesEditing'),_0x285a92=_0x1f5f33['plugins']['get']('ImageUtils'),_0x51de87={};_0x1a7c27['enableCommand']('imageStyle',(_0x19276d,_0x4f9c9b)=>{const _0x491018=_0x1f5f33['plugins']['get']('Users')['me'],_0x40bebc=_0x1f5f33['commands']['get']('imageStyle');let _0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),_0x1756e2=_0x1f5f33['model']['createRangeOn'](_0x531e2f),_0x4f720d=_0x40bebc['value'];if(_0x4f720d==_0x4f9c9b['value'])return;const _0x4211d2={'commandName':'imageStyle','commandParams':[_0x4f9c9b],'formatGroupId':_0x2b2341()};_0x1f5f33['model']['change'](()=>{if(_0x1a7c27['getSuggestions']()['filter'](_0x5c259b=>_0x5c259b['isInContent']&&_0x491018==_0x5c259b['author']&&('formatBlock'==_0x5c259b['type']||'formatInline'==_0x5c259b['type'])&&('imageStylePreApply'==_0x5c259b['subType']||'imageStylePostApply'==_0x5c259b['subType'])&&_0x5c259b['getFirstRange']()['isEqual'](_0x1756e2))['forEach'](_0x525e09=>_0x1a7c27['discardSuggestion'](_0x525e09['head'])),_0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),_0x1756e2=_0x1f5f33['model']['createRangeOn'](_0x531e2f),_0x40bebc['refresh'](),_0x1f5f33['commands']['get']('imageTypeInline')['refresh'](),_0x1f5f33['commands']['get']('imageTypeBlock')['refresh'](),_0x4f720d=_0x40bebc['value'],_0x4f720d!=_0x4f9c9b['value'])return _0x285a92['isInlineImage'](_0x531e2f)&&_0x40bebc['shouldConvertImageType'](_0x4f9c9b['value'],_0x531e2f)?(_0x19276d({..._0x4f9c9b,'setImageSizes':!0x1}),_0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),void _0x1a7c27['markBlockFormat'](_0x531e2f,{..._0x4211d2,'commandReversedParams':[{'value':_0x4f720d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x285a92['isBlockImage'](_0x531e2f)?_0x1a7c27['markBlockFormat'](_0x531e2f,_0x4211d2,[],'imageStylePostApply'):_0x1a7c27['markInlineFormat'](_0x1756e2,_0x4211d2,'imageStylePostApply'));});});for(const _0x14be47 of _0x1f5f33['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51de87[_0x14be47['name']]=_0x14be47['title']['toLowerCase']();_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x908298])=>{_0x285a92['setImageNaturalSizeAttributes'](_0x908298['getContainedElement']());}),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ddc4c,_0x5416b6)=>{_0x1a7c27['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ddc4c,{'commandName':_0x5416b6['commandName'],'commandParams':_0x5416b6['commandReversedParams']});}),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x8bac1a,_0x245b21){if(_0x2abc16(_0x8bac1a,_0x245b21))return[_0x8bac1a,_0x245b21];if(_0x2abc16(_0x245b21,_0x8bac1a))return[_0x245b21,_0x8bac1a];return null;});const _0x5876ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2abc16(_0x416ec9,_0x468d9e){const _0x2c944a=_0x5876ca['findIndex'](({type:_0x597867,subType:_0x2582af})=>_0x416ec9['type']==_0x597867&&_0x416ec9['subType']==_0x2582af),_0x1ac7e5=_0x5876ca['findIndex'](({type:_0x55bd60,subType:_0x1ed869})=>_0x468d9e['type']==_0x55bd60&&_0x468d9e['subType']==_0x1ed869);if(_0x2c944a<0x0||_0x1ac7e5<0x0)return!0x1;const _0x7bf311=_0x416ec9['getFirstRange'](),_0x5ddc56=_0x468d9e['getFirstRange']();if((0x0==_0x2c944a||0x1==_0x2c944a)&&0x2==_0x1ac7e5&&_0x7bf311['isIntersecting'](_0x5ddc56))return!0x0;if(0x2==_0x2c944a&&0x3==_0x1ac7e5){const _0x1e7326=_0x1a7c27['_findSuggestions'](_0x7bf311,'insertion')['filter'](({suggestion:_0x827a5b,meta:_0x28b5bc})=>_0x28b5bc['isOwn']&&'convertInlineImageToBlock'==_0x827a5b['subType']);if(_0x1e7326['length']>0x1&&_0x5ddc56['end']['isEqual'](_0x7bf311['start']))return!0x0;if(0x1==_0x1e7326['length']&&(_0x7bf311['start']['isEqual'](_0x5ddc56['end'])||_0x7bf311['end']['isEqual'](_0x5ddc56['start'])))return!0x0;}if(0x3==_0x2c944a&&0x3==_0x1ac7e5&&_0x7bf311['start']['isBefore'](_0x5ddc56['start'])){const _0x50d064=_0x7bf311['end']['nodeAfter'],_0x1d6110=_0x5ddc56['start']['nodeBefore'];return _0x285a92['isBlockImage'](_0x50d064)&&_0x50d064===_0x1d6110;}return!0x1;}_0x1f5f33['model']['document']['registerPostFixer'](()=>{let _0x3460d9=!0x1;const _0xf14d26=Array['from'](_0x1f5f33['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aae93,data:_0x42e80e}of _0xf14d26){const {group:_0x3c59a9,type:_0x5095a5,subType:_0x5f27ef,id:_0x20689d}=_0x1a7c27['_splitMarkerName'](_0x3aae93);if('suggestion'==_0x3c59a9&&_0x1a7c27['hasSuggestion'](_0x20689d)){if('formatBlock'==_0x5095a5&&('imageStylePreApply'==_0x5f27ef||'imageStylePostApply'==_0x5f27ef)){const _0x3e1c3c=_0x1a7c27['getSuggestion'](_0x20689d);if(_0x42e80e['newRange']){const _0x28e35a=_0x3e1c3c['getFirstRange']()['getContainedElement']();if(_0x285a92['isBlockImage'](_0x28e35a))continue;_0x1a7c27['discardSuggestion'](_0x3e1c3c),_0x3460d9=!0x0;}}if('insertion'==_0x5095a5&&'imageCaption'==_0x5f27ef&&!_0x42e80e['newRange']){const _0x4309a2=_0x1a7c27['getSuggestion'](_0x20689d);_0x4309a2['next']&&_0x4309a2['next']['isInContent']&&(_0x1a7c27['discardSuggestion'](_0x4309a2['next']),_0x3460d9=!0x0);}}}return _0x3460d9;}),this['_registerLegacyDescription'](_0x51de87);}['_registerLegacyDescription'](_0x5d505b){const _0x50fd8f=this['editor'],_0x1b6985=_0x50fd8f['locale'];_0x50fd8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cf9fb=>{if('formatBlock'!=_0x4cf9fb['type']&&'formatInline'!=_0x4cf9fb['type'])return;const {data:_0x41ec5b}=_0x4cf9fb;if(!_0x41ec5b||'imageStyle'!=_0x41ec5b['commandName'])return;const _0x6da6a9=_0x41ec5b['commandParams'][0x0]['value'];return _0xaa3f01('side'===_0x6da6a9?o(_0x1b6985,'FORMAT_SIDE_IMAGE'):_0x5d505b[_0x6da6a9]||_0x6da6a9);function _0xaa3f01(_0x3488b5){return{'type':'format','content':o(_0x1b6985,'*Format:*\x20%0',_0x3488b5)};}});}}class at extends _0xd0fe4f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b7262){super(_0x3b7262),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x183a95=this['editor'],_0x3def02=_0x183a95['commands']['get']('importWord'),_0x5d9dab=_0x183a95['commands']['get']('trackChanges');_0x3def02&&(_0x3def02['on']('execute',(_0xb76f43,[,_0x588333])=>{this['_trackChangesValueDuringImport']=_0x5d9dab['value'],_0x588333['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3def02,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3def02,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d9dab['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x183a95['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe56867,_0x4bb4d7){const {suggestions:_0x1081a8}=_0x4bb4d7,_0xd60036=this['editor']['commands']['get']('trackChanges'),_0x18077a=_0xd60036['value'];this['_trackChangesValueDuringImport']!==_0x18077a&&(_0xd60036['execute'](),this['_trackChangesExecuted']=!0x0),_0x1081a8&&_0x1081a8['forEach'](({id:_0x22eb0c,type:_0xa832cf,author:_0x55e960,created_at:_0x4d3393})=>{const _0x5dbded={'id':_0x22eb0c,'type':_0xa832cf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55e960,'createdAt':_0x4d3393?new Date(_0x4d3393):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5dbded);});}}class ct extends _0xd0fe4f{['afterInit'](){const _0x4a8a5c=this['editor'],_0x1c0db4=_0x4a8a5c['plugins']['get']('TrackChangesEditing');if(_0x4a8a5c['plugins']['has']('IndentEditing')&&(_0x1c0db4['enableCommand']('indent'),_0x1c0db4['enableCommand']('outdent')),_0x4a8a5c['plugins']['has']('IndentBlock')){for(const _0x3dac2a of['indentBlock','outdentBlock'])_0x1c0db4['enableDefaultAttributesIntegration'](_0x3dac2a);}const _0x1418a7=_0x4a8a5c['locale'];_0x1c0db4['registerBlockAttribute']('blockIndent'),_0x1c0db4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1418a7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b8545=this['editor'],_0x72a1c3=_0x3b8545['locale'],_0x39e509=_0x3b8545['plugins']['get']('TrackChangesEditing');_0x39e509['descriptionFactory']['registerDescriptionCallback'](_0xd12646=>{if('formatBlock'!=_0xd12646['type'])return;const {data:_0x2cbc5b}=_0xd12646;if(!_0x2cbc5b)return;if('indentBlock'!=_0x2cbc5b['commandName']&&'outdentBlock'!=_0x2cbc5b['commandName'])return;const _0x197d45=_0xd12646['getItems']()[0x0],_0x5a145f=_0x39e509['descriptionFactory']['getItemLabel'](_0x197d45);return'indentBlock'==_0x2cbc5b['commandName']?{'type':'format','content':o(_0x72a1c3,'*Indent:*\x20%0',_0x5a145f)}:'outdentBlock'==_0x2cbc5b['commandName']?{'type':'format','content':o(_0x72a1c3,'*Outdent:*\x20%0',_0x5a145f)}:void 0x0;});}}class ut extends _0xd0fe4f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xd0fe4f{['afterInit'](){const _0x1a867b=this['editor'];if(!_0x1a867b['plugins']['has']('LinkEditing'))return;const _0x1a3d8e=_0x1a867b['plugins']['get']('TrackChangesEditing'),_0x1d7a5e=_0x1a867b['commands']['get']('link');_0x1a3d8e['enableDefaultAttributesIntegration']('link'),_0x1a3d8e['enableDefaultAttributesIntegration']('unlink'),_0x1a3d8e['registerInlineAttribute']('linkHref');for(const _0x45dea9 of _0x1d7a5e['manualDecorators'])_0x1a3d8e['registerInlineAttribute'](_0x45dea9['id']),_0x1a3d8e['descriptionFactory']['registerAttributeLabel'](_0x45dea9['id'],'link\x20('+_0x45dea9['label']['toLowerCase']()+')');_0x1a3d8e['descriptionFactory']['registerDescriptionCallback'](_0x3ff2bb=>{if('attribute'!=_0x3ff2bb['type'])return;const {data:_0x2d5f52}=_0x3ff2bb;if(!_0x2d5f52||'linkHref'!=_0x2d5f52['key'])return;const _0x4e6de7=_0x2d5f52['newValue'],_0x30ea47=_0x1a867b['locale'];return{'type':'format','content':null==_0x4e6de7?o(_0x30ea47,'*Remove\x20link*'):o(_0x30ea47,'*Set\x20link:*\x20%0','\x22'+_0x4e6de7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x282ed5=this['editor'],_0x1a5aea=_0x282ed5['locale'];_0x282ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217cf2=>{if('formatInline'!=_0x217cf2['type'])return;const {data:_0x5c93ab}=_0x217cf2;if(_0x5c93ab){if('link'==_0x5c93ab['commandName']){const _0xbe44c=_0x5c93ab['commandParams'][0x0];return{'type':'format','content':o(_0x1a5aea,'*Set\x20link:*\x20%0','\x22'+_0xbe44c+'\x22')};}return'unlink'==_0x5c93ab['commandName']?{'type':'format','content':o(_0x1a5aea,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xd0fe4f{['afterInit'](){const _0x431427=this['editor'],_0x5606bc=_0x431427['locale'];if(!_0x431427['plugins']['has']('LegacyListEditing'))return;const _0x1d9d53=_0x431427['plugins']['get']('TrackChangesEditing'),_0x24ba8b=_0x431427['plugins']['has']('LegacyTodoListEditing');function _0x386a32(_0x24210e){return()=>{const _0x3f508c=_0x431427['model']['document']['selection'],_0x1ef22d=_0x431427['commands']['get'](_0x24210e);if(_0x1ef22d['value'])return void _0x431427['execute']('paragraph',{});const _0x1b3743=_0x24210e['slice'](0x0,-0x4),_0x29a04a=function(_0x6d3e45,_0x5938e5,_0x3396ba){let _0x18dee6=Array['from'](_0x6d3e45)['filter'](_0x249835=>function(_0x5ceaac,_0x1aad7b){return _0x1aad7b['checkChild'](_0x5ceaac['parent'],'listItem')&&!_0x1aad7b['isObject'](_0x5ceaac);}(_0x249835,_0x3396ba));_0x18dee6=_0x18dee6['filter'](_0x7b5985=>!_0x7b5985['is']('element','listItem')||_0x7b5985['getAttribute']('listType')!=_0x5938e5);const _0x424cad=new Set();for(const _0x54fcb3 of _0x18dee6)_0x54fcb3['is']('element','listItem')?_0x424cad['add'](fe(_0x54fcb3)):_0x424cad['add'](_0x54fcb3);return Array['from'](_0x424cad);}(_0x3f508c['getSelectedBlocks'](),_0x1b3743,_0x431427['model']['schema']);_0x431427['model']['change'](()=>{for(const _0x2cd0dc of _0x29a04a)_0x1d9d53['markBlockFormat'](_0x2cd0dc,{'commandName':_0x24210e,'commandParams':[{'forceValue':!_0x1ef22d['value']}],'formatGroupId':'blockName'},ue(_0x2cd0dc));});};}function _0xcdc757(_0x2c6049){return()=>{const _0x4aa6ef=function(_0x330d5a){let _0x3632fd=Array['from'](_0x330d5a);const _0x43b9b8=_0x3632fd['findIndex'](_0x469b9e=>'listItem'!=_0x469b9e['name']);return _0x43b9b8>-0x1&&(_0x3632fd=_0x3632fd['slice'](0x0,_0x43b9b8)),_0x3632fd;}(_0x431427['model']['document']['selection']['getSelectedBlocks']()),_0xc3d4ee=_0x431427['model']['createRange'](_0x431427['model']['createPositionAt'](_0x4aa6ef[0x0],'before'),_0x431427['model']['createPositionAt'](_0x4aa6ef[_0x4aa6ef['length']-0x1],'end'));_0x431427['model']['change'](()=>{_0x1d9d53['markBlockFormat'](_0xc3d4ee,{'commandName':_0x2c6049,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ebcdd){const _0x1ab9a2=new Set();for(const _0x251aad of _0x1ebcdd){let _0x569252=_0x251aad['nextSibling'];for(;_0x569252&&_0x569252['getAttribute']('listIndent')>_0x251aad['getAttribute']('listIndent');)_0x1ab9a2['add'](_0x569252),_0x569252=_0x569252['nextSibling'];}return Array['from'](_0x1ab9a2);}(_0x4aa6ef));});};}_0x1d9d53['enableCommand']('numberedList',_0x386a32('numberedList')),_0x1d9d53['enableCommand']('bulletedList',_0x386a32('bulletedList')),_0x24ba8b&&_0x1d9d53['enableCommand']('todoList',_0x386a32('todoList')),_0x1d9d53['enableCommand']('indentList',_0xcdc757('indentList')),_0x1d9d53['enableCommand']('outdentList',_0xcdc757('outdentList')),_0x24ba8b&&_0x1d9d53['enableCommand']('checkTodoList',()=>{const _0x211d10=_0x431427['commands']['get']('checkTodoList'),_0x1bd20e=Array['from'](_0x211d10['_selectedElements']);_0x1bd20e['filter'](_0x2f76cb=>_0x2f76cb['getAttribute']('todoListChecked')!=_0x211d10['value']),_0x431427['model']['change'](()=>{for(const _0x2d04f1 of _0x1bd20e)_0x1d9d53['markBlockFormat'](_0x2d04f1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x211d10['value']}]});});}),_0x1d9d53['descriptionFactory']['registerElementLabel']('listItem',_0x2315ca=>o(_0x5606bc,'ELEMENT_LIST_ITEM',_0x2315ca)),_0x1d9d53['descriptionFactory']['registerDescriptionCallback'](_0x31c478=>{if('formatBlock'!=_0x31c478['type']&&'formatInline'!=_0x31c478['type'])return;const {data:_0x307870}=_0x31c478;if(_0x307870){if('numberedList'==_0x307870['commandName']||'bulletedList'==_0x307870['commandName']||'todoList'==_0x307870['commandName'])switch(_0x307870['commandName']['replace']('List','')){case'bulleted':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x307870['commandName'])return{'type':'format','content':o(_0x5606bc,'*Indent:*\x20%0',o(_0x5606bc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x307870['commandName'])return{'type':'format','content':o(_0x5606bc,'*Outdent:*\x20%0',o(_0x5606bc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x307870['commandName'])return _0x307870['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5606bc,'*Check\x20item*')}:{'type':'format','content':o(_0x5606bc,'*Uncheck\x20item*')};}function _0x3c6d9a(_0x5adffb){return{'type':'format','content':o(_0x5606bc,'*Change\x20to:*\x20%0',_0x5adffb)};}});}}function fe(_0x522d02){const _0x250ccb=_0x522d02['getAttribute']('listIndent');if(0x0==_0x250ccb)return _0x522d02;let _0x38330b=_0x522d02;for(;_0x522d02['previousSibling']&&_0x522d02['previousSibling']['is']('element','listItem');){const _0xcc6ada=_0x522d02['previousSibling']['getAttribute']('listIndent');if(_0xcc6ada==_0x250ccb)_0x38330b=_0x522d02['previousSibling'];else{if(_0xcc6ada<_0x250ccb)break;}_0x522d02=_0x522d02['previousSibling'];}return _0x38330b;}function ue(_0x4300ed){const _0x31a801=[];if(_0x4300ed['is']('element','listItem')&&_0x4300ed['getAttribute']('listIndent')>0x0){let _0x2972f3=_0x4300ed['nextSibling'];for(;_0x2972f3&&'listItem'==_0x2972f3['name']&&_0x2972f3['getAttribute']('listIndent')==_0x4300ed['getAttribute']('listIndent');)_0x31a801['push'](_0x2972f3),_0x2972f3=_0x2972f3['nextSibling'];}return _0x31a801;}class W extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcb8bda=this['editor']['config']['get']('list.properties'),_0x886f57=this['editor']['plugins']['get']('TrackChangesEditing');_0xcb8bda['styles']&&_0x886f57['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcb8bda['reversed']&&_0x886f57['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcb8bda['startIndex']&&_0x886f57['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x886f57['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37f0ad,_0x4fd691={}){const _0x45e2ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23fdde=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45e2ca['markMultiRangeBlockFormat'](_0x23fdde,{'commandName':'listStyle','commandParams':[{'type':_0x4fd691['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x31ce58,_0xe17d70={}){const _0x25f8be=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc14d1e=this['_getSuggestionBlocks'](_0x8cb2a7=>_0x8cb2a7['is']('element','listItem')&&'numbered'===_0x8cb2a7['getAttribute']('listType'));if(_0xc14d1e['length']<0x1)return;const _0x55f017=_0xc14d1e['map'](_0x5e0523=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e0523,'before'),this['editor']['model']['createPositionAt'](_0x5e0523,0x0)));this['editor']['model']['change'](()=>{_0x25f8be['markMultiRangeBlockFormat'](_0x55f017,{'commandName':'listReversed','commandParams':[{'reversed':_0xe17d70['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5732b7,_0x54e6f7={}){const _0x2fa3a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f76ff=this['_getSuggestionBlocks'](_0x4696f9=>_0x4696f9['is']('element','listItem')&&'numbered'===_0x4696f9['getAttribute']('listType'));if(_0x3f76ff['length']<0x1)return;const _0x55ce5c=_0x3f76ff['map'](_0x3ace9d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ace9d,'before'),this['editor']['model']['createPositionAt'](_0x3ace9d,0x0)));this['editor']['model']['change'](()=>{_0x2fa3a3['markMultiRangeBlockFormat'](_0x55ce5c,{'commandName':'listStart','commandParams':[{'startIndex':_0x54e6f7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x33c151){if('formatBlock'!=_0x33c151['type']&&'formatInline'!=_0x33c151['type'])return;const _0x74660e=this['editor']['locale'],{data:_0x331888}=_0x33c151;if(!_0x331888)return;let _0x285b0d,_0x1f6b08;switch(_0x331888['commandName']){case'listStyle':_0x285b0d='*Change\x20to:*\x20%0',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d,o(_0x74660e,this['_getTranslationKeyForListStyle'](_0x331888['commandParams'][0x0]['type'])))};break;case'listReversed':_0x285b0d=_0x331888['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d)};break;case'listStart':_0x285b0d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d,_0x331888['commandParams'][0x0]['startIndex'])};}return _0x1f6b08;}['_getSuggestionBlocksForListStyle'](){const _0x50aeaf=this['editor']['plugins']['get']('LegacyListUtils');let _0x81e653=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x81e653[0x0]?.['is']('element','listItem')&&_0x81e653['unshift'](..._0x50aeaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x81e653[_0x81e653['length']-0x1]?.['is']('element','listItem')&&_0x81e653['push'](..._0x50aeaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x81e653=[...new Set(_0x81e653)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x81e653=_0x81e653['filter'](_0x3abbf9=>_0x3abbf9['is']('element','listItem'))),_0x81e653;}['_getSuggestionBlocks'](_0x4d505b){const _0xe2d089=this['editor']['plugins']['get']('LegacyListUtils');let _0x402e5c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d505b)['map'](_0x3c03b0=>{const _0x4efa68=this['editor']['model']['createPositionAt'](_0x3c03b0,0x0);return[..._0xe2d089['getSiblingNodes'](_0x4efa68,'backward'),..._0xe2d089['getSiblingNodes'](_0x4efa68,'forward')];})['flat']();return _0x402e5c=[...new Set(_0x402e5c)],_0x402e5c;}['_getTranslationKeyForListStyle'](_0x36047b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x36047b)||'default')['toUpperCase']()+'_LIST_'+_0x36047b['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0xd0fe4f{['afterInit'](){const _0x4bef57=this['editor'];if(!_0x4bef57['plugins']['has']('MediaEmbedEditing'))return;const _0x26b5d2=_0x4bef57['plugins']['get']('TrackChangesEditing'),_0x53b057=_0x4bef57['locale'];_0x26b5d2['enableCommand']('mediaEmbed'),_0x26b5d2['descriptionFactory']['registerElementLabel']('media',_0x124474=>o(_0x53b057,'ELEMENT_MEDIA',_0x124474)),_0x4bef57['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4883d2,{writer:_0x30ed41,options:_0x2c5ecb})=>{if(_0x2c5ecb['showSuggestionHighlights'])return _0x30ed41['createEmptyElement']('div');},'converterPriority':'high'}),_0x4bef57['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c612c,_0x5c8ad6,_0x2da00b)=>{_0x2da00b['options']['showSuggestionHighlights']&&_0x2c612c['stop']();},{'priority':'high'});}}class mt extends _0xd0fe4f{['afterInit'](){const _0xd0dce6=this['editor'];_0xd0dce6['plugins']['has']('MentionEditing')&&_0xd0dce6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xd0fe4f{['afterInit'](){const _0x200b78=this['editor'];if(!_0x200b78['plugins']['has']('MergeFieldsEditing'))return;_0x200b78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x200b78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x56b57c=_0x200b78['plugins']['get']('TrackChangesEditing'),_0x3cfb51=_0x200b78['locale'];_0x56b57c['descriptionFactory']['registerElementLabel']('mergeField',_0x1b8831=>o(_0x3cfb51,'ELEMENT_MERGE_FIELD',_0x1b8831)),_0x56b57c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x505dd1=>o(_0x3cfb51,'ELEMENT_MERGE_FIELD',_0x505dd1)),_0x56b57c['descriptionFactory']['registerDescriptionCallback'](_0x24291b=>{if('insertion'!=_0x24291b['type']&&'deletion'!=_0x24291b['type'])return;const _0x4a7828=_0x24291b['getContainedElement']();if(null==_0x4a7828)return;if(!_0x4a7828['is']('element','mergeField')&&!_0x4a7828['is']('element','mergeFieldBlock'))return;const _0x510f15=_0x200b78['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4a7828['getAttribute']('id'));return'insertion'==_0x24291b['type']?{'type':'insertion','content':o(_0x3cfb51,'*Insert:*\x20%0','\x22'+_0x510f15+'\x22\x20'+o(_0x3cfb51,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cfb51,'*Remove:*\x20%0','\x22'+_0x510f15+'\x22\x20'+o(_0x3cfb51,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0xd0fe4f{['afterInit'](){const _0x2fcf8f=this['editor'],_0x5a5977=_0x2fcf8f['plugins']['get']('TrackChangesEditing');_0x2fcf8f['plugins']['has']('MultiLevelList')&&(_0x5a5977['enableDefaultAttributesIntegration']('multiLevelList'),_0x5a5977['registerBlockAttribute']('listMarkerStyle'),_0x5a5977['descriptionFactory']['registerDescriptionCallback'](_0x1f9522=>this['handleDescriptions'](_0x1f9522)));}['handleDescriptions'](_0x28fb68){const _0x12f6ae=this['editor']['locale'],{data:_0x52355a}=_0x28fb68,_0x50abf3={'type':'format','content':''};if(_0x52355a&&'listMarkerStyle'==_0x52355a['key']){if(!_0x52355a['oldValue'])return{'type':'format','content':o(_0x12f6ae,'*Set\x20format:*\x20%0',o(_0x12f6ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52355a['newValue']+')'};if(!_0x52355a['newValue']){let _0x577dd2=_0x28fb68['head'];for(;_0x577dd2;){if(_0x577dd2['data']&&'listType'==_0x577dd2['data']['key']&&_0x577dd2['data']['newValue'])return _0x50abf3;_0x577dd2=_0x577dd2['next'];}return{'type':'format','content':o(_0x12f6ae,'*Remove\x20format:*\x20%0',o(_0x12f6ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52355a['oldValue']+')'};}}}}class kt extends _0xd0fe4f{['afterInit'](){const _0x51d5ae=this['editor'];if(!_0x51d5ae['plugins']['has']('PageBreakEditing'))return;_0x51d5ae['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x440382=_0x51d5ae['plugins']['get']('TrackChangesEditing'),_0x3f2017=_0x51d5ae['locale'];_0x440382['descriptionFactory']['registerElementLabel']('pageBreak',_0x49dc8f=>o(_0x3f2017,'ELEMENT_PAGE_BREAK',_0x49dc8f));}}class bt extends _0xd0fe4f{['afterInit'](){const _0x13f249=this['editor'];if(!_0x13f249['plugins']['has']('Paragraph'))return;const _0x5a59e4=_0x13f249['locale'],_0x3d932c=_0x13f249['plugins']['get']('TrackChangesEditing');_0x3d932c['descriptionFactory']['registerElementLabel']('paragraph',_0x4f439b=>o(_0x5a59e4,'ELEMENT_PARAGRAPH',_0x4f439b)),_0x3d932c['enableDefaultAttributesIntegration']('paragraph'),_0x3d932c['enableCommand']('insertParagraph'),_0x13f249['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x13f249),{'priority':'highest'}),_0x13f249['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x319202,_0x132384,_0x24b299)=>{_0x24b299['options']['showSuggestionHighlights']&&nr(_0x13f249,{'showActiveMarker':!0x1})(_0x319202,_0x132384,_0x24b299);},{'priority':'highest'});const _0x1cd7fe=_0x3d932c['descriptionFactory'];_0x1cd7fe['registerDescriptionCallback'](_0xe26e82=>{if('insertion'!==_0xe26e82['type'])return;const {start:_0x17b187,end:_0x17826f}=_0xe26e82['getFirstRange']();if(!_0x17b187['isTouching'](_0x17826f)||!_0x17b187['nodeAfter'])return;const _0x1efcb1=_0x13f249['model']['schema'],_0x5db0df=_0x17b187['nodeAfter'];return _0x1efcb1['isBlock'](_0x5db0df)&&!_0x1efcb1['isLimit'](_0x5db0df)&&_0x1efcb1['checkChild'](_0x5db0df,'$text')?{'type':'insertion','content':o(_0x5a59e4,'*Insert:*\x20%0',_0x1cd7fe['getItemLabel'](_0x5db0df,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547f3f=this['editor'],_0x5cfaa4=_0x547f3f['locale'];_0x547f3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326f9e=>{if('formatBlock'!=_0x326f9e['type'])return;const {data:_0x2c5c8d}=_0x326f9e;return _0x2c5c8d&&'paragraph'==_0x2c5c8d['commandName']?{'type':'format','content':o(_0x5cfaa4,'*Change\x20to:*\x20%0',o(_0x5cfaa4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x57dfac,{showActiveMarker:_0x228265=!0x0}={}){return(_0x191efc,_0x2f80a7,_0xc218ff)=>{const _0x1fa511=_0x57dfac['plugins']['get']('TrackChangesEditing'),_0x20c7f1=_0x2f80a7['markerRange']['start'],_0x393b39=_0x2f80a7['markerRange']['end'],_0x55bd8c=_0x57dfac['model']['schema'];if(!_0x20c7f1['isTouching'](_0x393b39)||!_0x20c7f1['nodeAfter'])return;const _0x4fe4de=_0x20c7f1['nodeAfter'];if(_0x55bd8c['isBlock'](_0x4fe4de)&&!_0x55bd8c['isLimit'](_0x4fe4de)&&_0x55bd8c['checkChild'](_0x4fe4de,'$text')){if(!_0xc218ff['consumable']['consume'](_0x2f80a7['markerRange'],_0x191efc['name']))return;const {authorId:_0x1b2323}=_0x1fa511['_splitMarkerName'](_0x2f80a7['markerName']),_0x312473=_0xc218ff['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1b2323}),_0x186158=_0xc218ff['mapper']['toViewPosition'](_0x393b39);_0x228265&&_0x1fa511['activeMarkers']['includes'](_0x2f80a7['markerName'])&&_0xc218ff['writer']['addClass']('ck-suggestion-marker--active',_0x312473),_0xc218ff['writer']['insert'](_0x186158,_0x312473),_0xc218ff['mapper']['bindElementToMarker'](_0x312473,_0x2f80a7['markerName']);}};}class wt extends _0xd0fe4f{['afterInit'](){const _0x420d34=this['editor'];if(!_0x420d34['plugins']['has']('RemoveFormatEditing'))return;_0x420d34['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30041e=this['editor'];_0x30041e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b582=>{if('formatBlock'!=_0x47b582['type']&&'formatInline'!=_0x47b582['type'])return;const {data:_0x251cc3}=_0x47b582;return _0x251cc3&&'removeFormat'==_0x251cc3['commandName']?{'type':'format','content':o(_0x30041e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xd0fe4f{['afterInit'](){const _0x3ed69c=this['editor'];if(!_0x3ed69c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34924e=_0x3ed69c['plugins']['get']('TrackChangesEditing');_0x34924e['enableCommand']('goToPreviousRestrictedEditingException'),_0x34924e['enableCommand']('goToNextRestrictedEditingException');const _0x30647f=_0x3ed69c['plugins']['get']('RestrictedEditingModeEditing');_0x30647f['enableCommand']('trackChanges'),_0x30647f['enableCommand']('acceptSuggestion'),_0x30647f['enableCommand']('discardSuggestion'),_0x30647f['enableCommand']('acceptAllSuggestions'),_0x30647f['enableCommand']('discardAllSuggestions'),_0x30647f['enableCommand']('acceptSelectedSuggestions'),_0x30647f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xd0fe4f{static get['requires'](){return[_0x3d87fa];}['init'](){const _0x3b1fc0=this['editor'],_0x440975=_0x3b1fc0['plugins']['get']('TrackChangesEditing');_0x440975['enableCommand']('shiftEnter'),_0x3b1fc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3b1fc0),{'priority':'high'}),_0x3b1fc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3b1fc0),{'priority':'high'}),_0x3b1fc0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36a922,_0x213f0a,_0xbd1496)=>{_0xbd1496['options']['showSuggestionHighlights']&&ge(_0x3b1fc0,{'showActiveMarker':!0x1})(_0x36a922,_0x213f0a,_0xbd1496);}),_0x440975['descriptionFactory']['registerElementLabel']('softBreak',_0x398db4=>o(_0x3b1fc0['locale'],'ELEMENT_LINE_BREAK',_0x398db4));}}function ge(_0x4a6b82,{showActiveMarker:_0x37b668=!0x0}={}){return(_0x18545c,_0x56a365,_0x38dcfc)=>{const _0x3d1d5f=_0x4a6b82['plugins']['get']('TrackChangesEditing');if(!_0x38dcfc['consumable']['test'](_0x56a365['markerRange'],_0x18545c['name']))return;const _0xe68b22=_0x4a6b82['model'];for(const _0x5663b2 of _0x56a365['markerRange']['getItems']()){if(!_0x5663b2['is']('element','softBreak'))continue;const _0x558763='deletion'==_0x56a365['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5c89f2}=_0x3d1d5f['_splitMarkerName'](_0x56a365['markerName']),_0x11e7ef=_0x38dcfc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x558763,'data-author-id':_0x5c89f2}),_0x7ecd96=_0x38dcfc['mapper']['toViewPosition'](_0xe68b22['createPositionBefore'](_0x5663b2));_0x37b668&&_0x3d1d5f['activeMarkers']['includes'](_0x56a365['markerName'])&&_0x38dcfc['writer']['addClass']('ck-suggestion-marker--active',_0x11e7ef),_0x38dcfc['writer']['insert'](_0x7ecd96,_0x11e7ef),_0x38dcfc['mapper']['bindElementToMarker'](_0x11e7ef,_0x56a365['markerName']);}};}class St extends _0xd0fe4f{['afterInit'](){const _0x378c72=this['editor'],_0x18aeed=_0x378c72['model'],_0x2848cf=_0x378c72['locale'];if(!_0x378c72['plugins']['has']('StandardEditingModeEditing'))return;const _0x1dc2e3=_0x378c72['plugins']['get']('TrackChangesEditing'),_0x5bb01b='restrictedEditingException',_0x34ac70=_0x378c72['commands']['get'](_0x5bb01b);_0x1dc2e3['enableCommand'](_0x5bb01b,(_0x2e9e5e,_0x55a4f={})=>{const _0x1b8ac2=_0x18aeed['document']['selection'];if(_0x1b8ac2['isCollapsed'])return void _0x2e9e5e(_0x55a4f);const _0x52f44=void 0x0!==_0x55a4f['forceValue']?_0x55a4f['forceValue']:!_0x34ac70['value'];_0x18aeed['change'](()=>{const _0x34d921=Array['from'](_0x1b8ac2['getRanges']());for(const _0x583d19 of _0x34d921){const _0x3b4f51=_0x52f44?[_0x583d19]:io(_0x5bb01b,_0x583d19,_0x18aeed);for(const _0xfe20ca of _0x3b4f51)_0x1dc2e3['markInlineFormat'](_0xfe20ca,{'commandName':_0x5bb01b,'commandParams':[{'forceValue':_0x52f44}]});}});}),_0x1dc2e3['descriptionFactory']['registerDescriptionCallback'](_0x491fb8=>{if('formatBlock'!=_0x491fb8['type']&&'formatInline'!=_0x491fb8['type'])return;const {data:_0x49bb7a}=_0x491fb8;return _0x49bb7a&&_0x49bb7a['commandName']==_0x5bb01b?_0x49bb7a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2848cf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2848cf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0xd0fe4f{['afterInit'](){const _0x501fd1=this['editor'];if(!_0x501fd1['plugins']['has']('Style')||!_0x501fd1['plugins']['has']('DataSchema'))return;const _0x536487=_0x501fd1['plugins']['get']('TrackChangesEditing'),_0x271e03=_0x501fd1['locale'],_0x52f5c0=_0x501fd1['config']['get']('style')||{},_0x428d52=_0x501fd1['plugins']['get']('GeneralHtmlSupport'),_0x30013d=_0x501fd1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x501fd1['plugins']['get']('DataSchema'),_0x52f5c0['definitions']);_0x536487['enableDefaultAttributesIntegration']('style');const _0x235cfc=new Set();for(const _0x40abc8 of _0x30013d['block']){const _0x79072e=_0x428d52['getGhsAttributeNameForElement'](_0x40abc8['element']);_0x235cfc['add'](_0x79072e);}const _0x1ad4e7=new Set();for(const _0x1d1031 of _0x30013d['inline']){const _0x4089df=_0x428d52['getGhsAttributeNameForElement'](_0x1d1031['element']);_0x1ad4e7['add'](_0x4089df);for(const _0x2098a3 of _0x1d1031['ghsAttributes'])_0x1ad4e7['add'](_0x2098a3);}for(const _0x1c196f of _0x235cfc)_0x536487['registerBlockAttribute'](_0x1c196f),_0x536487['descriptionFactory']['registerAttributeLabel'](_0x1c196f,o(_0x271e03,'FORMAT_STYLE'));for(const _0x36553b of _0x1ad4e7)_0x536487['registerInlineAttribute'](_0x36553b),_0x536487['descriptionFactory']['registerAttributeLabel'](_0x36553b,o(_0x271e03,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22de20=this['editor'],_0x323dec=_0x22de20['locale'];_0x22de20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a759e=>{if('formatBlock'!=_0x1a759e['type']&&'formatInline'!=_0x1a759e['type'])return;const {data:_0x4e3fc6}=_0x1a759e;return _0x4e3fc6&&'style'===_0x4e3fc6['commandName']?_0x4e3fc6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x323dec,'*Set\x20format:*\x20%0',_0x4e3fc6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x323dec,'*Remove\x20format:*\x20%0',_0x4e3fc6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0xd0fe4f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x8d4135){super(_0x8d4135),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x27e0e6=this['editor'],_0x5ecce9=_0x27e0e6['model']['document']['selection'];if(!_0x27e0e6['plugins']['has']('TableEditing'))return;const _0x228031=_0x27e0e6['locale'],_0x26b30c=_0x27e0e6['plugins']['get']('TrackChangesEditing'),_0x205172=_0x27e0e6['plugins']['get']('TableUtils');_0x26b30c['descriptionFactory']['registerElementLabel']('table',_0x472258=>o(_0x228031,'ELEMENT_TABLE',_0x472258)),this['_setupColumnsRowsFixing'](),_0x26b30c['enableCommand']('insertTable'),_0x26b30c['enableCommand']('selectTableRow'),_0x26b30c['enableCommand']('selectTableColumn');for(const _0x3394ce of['insertTableRowAbove','insertTableRowBelow']){const _0x1d3e14=_0x27e0e6['commands']['get'](_0x3394ce);_0x26b30c['enableCommand'](_0x3394ce,_0x237244=>{_0x27e0e6['model']['change'](_0x3de52b=>{_0x237244();const _0x275ff1='above'===_0x1d3e14['order'],_0x4bc629=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x549868=_0x205172['getRowIndexes'](_0x4bc629),_0x489ca6=_0x275ff1?_0x549868['first']-0x1:_0x549868['last']+0x1,_0x22b386=_0x4bc629[0x0]['findAncestor']('table'),_0x4457c8=_0x205172['createTableWalker'](_0x22b386,{'startRow':_0x489ca6,'endRow':_0x489ca6}),_0x2e6aae=Array['from'](_0x4457c8)['map'](_0x106b77=>_0x3de52b['createRangeOn'](_0x106b77['cell']));_0x26b30c['markMultiRangeInsertion'](_0x2e6aae,'tableRow');});});}for(const _0x3b48ef of['insertTableColumnLeft','insertTableColumnRight']){const _0xcd5e31=_0x27e0e6['commands']['get'](_0x3b48ef);_0x26b30c['enableCommand'](_0x3b48ef,_0x4e4fe7=>{_0x27e0e6['model']['change'](_0x2d4573=>{_0x4e4fe7();const _0x27ac81='left'===_0xcd5e31['order'],_0x315dc1=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x1b5661=_0x205172['getColumnIndexes'](_0x315dc1),_0x113dcd=_0x27ac81?_0x1b5661['first']-0x1:_0x1b5661['last']+0x1,_0x5469fd=_0x315dc1[0x0]['findAncestor']('table'),_0x1a2c02=_0x205172['createTableWalker'](_0x5469fd,{'startRow':0x0,'column':_0x113dcd,'includeAllSlots':!0x1}),_0x5dd583=Array['from'](_0x1a2c02)['map'](_0x4c6476=>_0x2d4573['createRangeOn'](_0x4c6476['cell']));_0x26b30c['markMultiRangeInsertion'](_0x5dd583,'tableColumn');});});}for(const _0x511e0d of['removeTableRow','removeTableColumn']){const _0x3c2263=_0x511e0d['substr'](0xb),_0x6643ac=_0x3c2263['toLowerCase'](),_0x2876b0=_0x6643ac['substr'](0x0,0x3)+'span',_0x3fdccf='table'+_0x3c2263,_0x57fddd='min'+_0x3c2263,_0x1c9da6='max'+_0x3c2263;_0x26b30c['enableCommand'](_0x511e0d,()=>{_0x27e0e6['model']['change'](_0x4326b0=>{const _0x3910a7=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x53778e=_0x3910a7[0x0]['findAncestor']('table');let _0x326b42;if('removeTableRow'==_0x511e0d){const _0x326c19=_0x205172['getRowIndexes'](_0x3910a7);_0x326b42={'startRow':_0x326c19['first'],'endRow':_0x326c19['last'],'includeAllSlots':!0x0};}else{const _0x3d1755=_0x205172['getColumnIndexes'](_0x3910a7);_0x326b42={'startColumn':_0x3d1755['first'],'endColumn':_0x3d1755['last'],'includeAllSlots':!0x0};}const _0x4b6c5a=_0x205172['createTableWalker'](_0x53778e,_0x326b42),_0x307126=Array['from'](_0x4b6c5a)['map'](({cell:_0x25e00d})=>_0x25e00d),_0xd9c25=be(_0x307126['filter'](_0x495157=>_0x495157['hasAttribute'](_0x2876b0))),_0x4237c3=be(_0x307126['filter'](_0x4fbac3=>!_0x4fbac3['hasAttribute'](_0x2876b0)))['map'](_0x46b3de=>_0x4326b0['createRangeOn'](_0x46b3de)),_0x5a7f4e=_0x26b30c['markMultiRangeDeletion'](_0x4237c3,_0x3fdccf);if(_0x5a7f4e&&('tableRow'==_0x5a7f4e['subType']||'tableColumn'==_0x5a7f4e['subType'])){const _0x3c0c50=this['_getSuggestionCoords'](_0x5a7f4e);for(const _0x13e7a7 of _0xd9c25){const _0x2ded78=_0x4326b0['createRangeOn'](_0x13e7a7),_0x2b21d7=_0x205172['getCellLocation'](_0x13e7a7),_0x2e929e=_0x13e7a7['getAttribute'](_0x2876b0)-0x1,_0x22e099=_0x3c0c50[_0x57fddd],_0x48cbb3=_0x3c0c50[_0x1c9da6];_0x22e099<=_0x2b21d7[_0x6643ac]&&_0x2b21d7[_0x6643ac]+_0x2e929e<=_0x48cbb3&&_0x5a7f4e['addRange'](_0x2ded78);}}});});}function _0x1e9d67(_0x28cbd2){const _0x1a919f=Array['from'](_0x5ecce9['getRanges']())['map'](_0x597b92=>_0x425d25['fromRange'](_0x597b92));_0x27e0e6['model']['change'](_0x45070d=>{const _0x4a19bc=_0x45070d['batch'];_0x28cbd2=_0x28cbd2['filter'](_0x593e39=>'$graveyard'!=_0x593e39['root']['rootName']),_0x45070d['setSelection'](_0x28cbd2),_0x27e0e6['commands']['get']('removeTableRow')['refresh'](),_0x27e0e6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x27e0e6['model']['enqueueChange'](()=>{_0x27e0e6['model']['enqueueChange'](_0x4a19bc,_0x525725=>{const _0x2114fb=_0x1a919f['filter'](_0x6cff1a=>'$graveyard'!=_0x6cff1a['root']['rootName']);_0x2114fb['length']>0x0&&_0x525725['setSelection'](_0x2114fb);for(const _0x4c0108 of _0x1a919f)_0x4c0108['detach']();});});});}function _0x236f9b(_0x558e5a){_0x27e0e6['model']['change'](_0x4b47d3=>{const _0x498091=Array['from'](_0x5ecce9['getRanges']())['map'](_0x407de5=>_0x425d25['fromRange'](_0x407de5)),_0x261eeb=[];for(const _0x57fa86 of _0x558e5a)for(const _0x1ed03b of _0x57fa86['getItems']({'shallow':!0x0}))_0x261eeb['push'](_0x1ed03b);for(const _0x25a7ad of _0x261eeb)'$graveyard'!=_0x25a7ad['root']['rootName']&&(_0x4b47d3['setSelection'](_0x4b47d3['createPositionAt'](_0x25a7ad,0x0)),_0x27e0e6['commands']['get']('removeTableColumn')['refresh'](),_0x27e0e6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43c445=_0x498091['filter'](_0x1dbf34=>'$graveyard'!=_0x1dbf34['root']['rootName']);_0x43c445['length']>0x0&&_0x4b47d3['setSelection'](_0x43c445);for(const _0x34895a of _0x498091)_0x34895a['detach']();});}function _0x542b94(_0x45992a,_0x2482e5){return _0x2482e5['every'](_0x1144a1=>_0x45992a['some'](_0x59ac95=>_0x59ac95['end']['isEqual'](_0x1144a1['start'])||_0x1144a1['end']['isEqual'](_0x59ac95['start'])));}function _0x355855(_0x368404,_0x202b58){return!_0x368404['some'](_0x36c0c9=>_0x202b58['some'](_0x49d404=>_0x36c0c9['isIntersecting'](_0x49d404)))&&_0x368404['some'](_0x2f241b=>_0x202b58['some'](_0x3d6678=>_0x2f241b['end']['isTouching'](_0x3d6678['start'])));}_0x27e0e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f7294,_0x4d3f5b,_0x5427f6)=>{if(!_0x5427f6['options']['showSuggestionHighlights'])return;const _0x32b5dd=_0x4d3f5b['item'];if(!_0x32b5dd)return;const _0x5d1251=_0x5427f6['mapper']['toViewElement'](_0x32b5dd);function _0x23d468(_0x2843dc){return Array['isArray'](_0x2843dc)?_0x2843dc:[_0x2843dc];}_0x5d1251&&'tableCell'===_0x32b5dd['name']&&_0x3aee56(_0x5d1251,_0x5427f6['writer'],(_0x2388af,_0x3ce2fe,_0x18977a)=>_0x18977a['addClass'](_0x23d468(_0x3ce2fe['classes']),_0x2388af),(_0x6d5391,_0x14d179,_0x73793b)=>_0x73793b['removeClass'](_0x23d468(_0x14d179['classes']),_0x6d5391));},{'priority':'highest'}),_0x26b30c['descriptionFactory']['registerDescriptionCallback'](_0x4dd5b8=>{if('insertion'!=_0x4dd5b8['type']&&'deletion'!=_0x4dd5b8['type'])return;const _0x54f03b=_0x4dd5b8['getContainedElement']();if(null!=_0x54f03b&&_0x54f03b['is']('element','table')){if('insertion'==_0x4dd5b8['type']){const _0x863b1c=_0x4dd5b8['getItems']()['filter'](_0x45743a=>_0x45743a['is']('$textProxy'))['map'](_0x28c3bf=>_0x28c3bf['data']);if(_0x863b1c['length'])return{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x863b1c['join']('\x20')+'\x22'))};}if('deletion'==_0x4dd5b8['type']){const _0x4e0311=_0x4dd5b8['getItems']()['filter'](_0x57c03d=>_0x57c03d['is']('$textProxy'))['map'](_0x4698e9=>_0x4698e9['data']);if(_0x4e0311['length'])return{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e0311['join']('\x20')+'\x22'))};}}}),_0x26b30c['descriptionFactory']['registerDescriptionCallback'](_0x56f2b0=>{if('tableRow'==_0x56f2b0['subType']){const _0x5a8e62=_0x56f2b0['getItems']()['filter'](_0x29959f=>_0x29959f['is']('$textProxy'))['map'](_0x20cd5b=>_0x20cd5b['data']),_0x5098a7=this['_getSuggestionCoords'](_0x56f2b0),_0xc10826=_0x5098a7['maxRow']-_0x5098a7['minRow']+0x1;if('insertion'==_0x56f2b0['type'])return _0x5a8e62['length']?{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc10826,'\x22'+_0x5a8e62['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW',_0xc10826))};if('deletion'==_0x56f2b0['type'])return _0x5a8e62['length']?{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc10826,'\x22'+_0x5a8e62['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW',_0xc10826))};}if('tableColumn'==_0x56f2b0['subType']){const _0x4209c7=_0x56f2b0['getItems']()['filter'](_0x394979=>_0x394979['is']('$textProxy'))['map'](_0x109fcb=>_0x109fcb['data']),_0x15c4da=this['_getSuggestionCoords'](_0x56f2b0),_0x29e383=_0x15c4da['maxColumn']-_0x15c4da['minColumn']+0x1;if('insertion'==_0x56f2b0['type'])return _0x4209c7['length']?{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29e383,'\x22'+_0x4209c7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN',_0x29e383))};if('deletion'==_0x56f2b0['type'])return _0x4209c7['length']?{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29e383,'\x22'+_0x4209c7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN',_0x29e383))};}}),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e9d67),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e9d67),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x236f9b),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x236f9b),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x542b94),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x542b94),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x355855),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x355855);}['_acceptFormatSuggestionCallbackFactory'](){const _0x261561=this['editor'],_0x1eee8d=_0x261561['model']['document']['selection'];return(_0x1eb928,_0x50c621)=>{_0x261561['model']['change'](_0x4c956c=>{const {commandName:_0x4000be,commandParams:_0x56a27c}=_0x50c621;let _0x501990=_0x1eb928[0x0]['end']['nodeBefore'];_0x56a27c&&_0x56a27c[0x0]&&!0x1===_0x56a27c[0x0]['forceValue']&&(_0x501990=_0x1eb928[0x0]['start']['nodeAfter']);const _0x4c8869=_0x4c956c['createRangeIn'](_0x501990);if('$graveyard'==_0x4c8869['root']['rootName'])return;const _0x48bb3e=Array['from'](_0x1eee8d['getRanges']())['map'](_0x2ba280=>_0x425d25['fromRange'](_0x2ba280));_0x4c956c['setSelection'](_0x4c8869),_0x261561['commands']['get'](_0x4000be)['refresh'](),_0x56a27c['push']({'forceDefaultExecution':!0x0}),_0x261561['execute'](_0x4000be,..._0x56a27c);const _0x3a3ea7=_0x48bb3e['filter'](_0xa64dc0=>'$graveyard'!=_0xa64dc0['root']['rootName']);_0x3a3ea7['length']>0x0&&_0x4c956c['setSelection'](_0x3a3ea7);for(const _0x2dbcbb of _0x48bb3e)_0x2dbcbb['detach']();});};}['_getCoordsForCells'](_0x36e0ab){const _0x2b069a=this['editor']['plugins']['get']('TableUtils');let _0xfdea95=Number['MAX_SAFE_INTEGER'],_0x5c62ad=Number['MIN_SAFE_INTEGER'],_0x1a9361=Number['MAX_SAFE_INTEGER'],_0x96ca87=Number['MIN_SAFE_INTEGER'];for(const _0x29f54f of _0x36e0ab){if('$graveyard'==_0x29f54f['root']['rootName'])continue;const {row:_0x55a4cf,column:_0x323fe6}=_0x2b069a['getCellLocation'](_0x29f54f),_0xe2023f=_0x29f54f['hasAttribute']('rowspan')?_0x29f54f['getAttribute']('rowspan')-0x1:0x0,_0x55b1db=_0x29f54f['hasAttribute']('colspan')?_0x29f54f['getAttribute']('colspan')-0x1:0x0;_0xfdea95=_0x55a4cf<_0xfdea95?_0x55a4cf:_0xfdea95,_0x5c62ad=_0x55a4cf+_0xe2023f>_0x5c62ad?_0x55a4cf+_0xe2023f:_0x5c62ad,_0x1a9361=_0x323fe6<_0x1a9361?_0x323fe6:_0x1a9361,_0x96ca87=_0x323fe6+_0x55b1db>_0x96ca87?_0x323fe6+_0x55b1db:_0x96ca87;}return{'minRow':_0xfdea95,'maxRow':_0x5c62ad,'minColumn':_0x1a9361,'maxColumn':_0x96ca87};}['_setupColumnsRowsFixing'](){const _0x123dd5=this['editor'],_0xfea845=_0x123dd5['plugins']['get']('TrackChangesEditing'),_0x3b2289=_0x123dd5['plugins']['get']('TableUtils');_0x123dd5['model']['document']['on']('change:data',()=>{const _0x3bd797=Array['from'](_0x123dd5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2098a8,data:_0x472fd0}of _0x3bd797){const {group:_0x1d7fbb,id:_0x59cddb,subType:_0xebe852}=_0xfea845['_splitMarkerName'](_0x2098a8);if('suggestion'!=_0x1d7fbb)continue;if(null!=_0x472fd0['oldRange'])continue;const _0x2edf1f=_0xfea845['getSuggestion'](_0x59cddb);this['_tablePostFixingSubtypes']['includes'](_0xebe852)&&this['_tableSuggestions']['add'](_0x2edf1f);}},{'priority':'low'});const _0x2981a5=(_0x57a4d6,_0xca9d50)=>{let _0x54634c=!0x1;const _0x1612b9=_0xca9d50['createRangeOn'](_0x57a4d6),_0x12dbe5=_0x57a4d6['findAncestor']('table'),_0x15ea43=_0x3b2289['getCellLocation'](_0x57a4d6);for(const _0x28c37f of this['_tableSuggestions']){const _0x4eaaef=_0x28c37f['subType'],_0x2e32a4=_0x4eaaef['startsWith']('tablePaste'),_0x8971a6=_0x4eaaef['substr'](_0x2e32a4?0xa:0x5),_0x10dbdb=_0x8971a6['toLowerCase'](),_0x19ae08=_0x10dbdb['substr'](0x0,0x3)+'span',_0x1d883c='min'+_0x8971a6,_0x31aaf7='max'+_0x8971a6;if(!_0x28c37f['isInContent'])continue;if(_0x12dbe5!=_0x28c37f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28c37f['isIntersectingWithRange'](_0x1612b9))continue;const _0x2535cc=_0x57a4d6['hasAttribute'](_0x19ae08)?_0x57a4d6['getAttribute'](_0x19ae08)-0x1:0x0,_0x4dcfae=this['_getSuggestionCoords'](_0x28c37f),_0x21b773=_0x4dcfae[_0x1d883c],_0x138cba=_0x4dcfae[_0x31aaf7];_0x21b773<=_0x15ea43[_0x10dbdb]&&_0x15ea43[_0x10dbdb]+_0x2535cc<=_0x138cba&&(_0x28c37f['addRange'](_0x1612b9),_0x54634c=!0x0);}return _0x54634c;};_0x123dd5['model']['document']['registerPostFixer'](_0x423d7f=>{let _0x19258c=!0x1;for(const _0x5ac559 of _0x123dd5['model']['document']['differ']['getChanges']())if('insert'==_0x5ac559['type']){if('tableRow'==_0x5ac559['name']){for(const _0x2043ff of _0x5ac559['position']['nodeAfter']['getChildren']())_0x19258c=_0x19258c||_0x2981a5(_0x2043ff,_0x423d7f);}else'tableCell'==_0x5ac559['name']&&(_0x19258c=_0x19258c||_0x2981a5(_0x5ac559['position']['nodeAfter'],_0x423d7f));}return _0x19258c;});}['_getSuggestionCoords'](_0x2a5757){return this['_getCoordsForCells'](_0x2a5757['getRanges']()['map'](_0x1d45f9=>_0x1d45f9['start']['nodeAfter']));}}function be(_0x43b54c){return Array['from'](new Set(_0x43b54c)['values']());}class vt extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x1e027c=this['editor'],_0x49ea5f=_0x1e027c['model']['document']['selection'],_0x916f61=_0x1e027c['locale'];if(!_0x1e027c['plugins']['has']('TableEditing'))return;const _0x28de6e=_0x1e027c['plugins']['get']('TrackChangesEditing'),_0x59c1fc=_0x1e027c['plugins']['get']('TableUtils'),_0x364669=_0x1e027c['plugins']['get'](It);_0x364669['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28de6e['enableCommand']('mergeTableCells',()=>{const _0xbab2ce=_0x59c1fc['getSelectionAffectedTableCells'](_0x1e027c['model']['document']['selection']);_0x1e027c['model']['change'](()=>{_0x28de6e['markMultiRangeBlockFormat'](_0xbab2ce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1e027c['commands']['get']('mergeTableCells')['on']('execute',(_0x1d7ba9,_0x1316b5)=>{_0x1e027c['commands']['get']('trackChanges')['value']&&(_0x1316b5['length']>0x0&&_0x1316b5[_0x1316b5['length']-0x1]&&_0x1316b5[_0x1316b5['length']-0x1]['forceDefaultExecution']||_0x28de6e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d7ba9['stop']());},{'priority':'highest'});for(const _0x1c8dd0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d46f3=_0x1e027c['commands']['get'](_0x1c8dd0);_0x28de6e['enableCommand'](_0x1c8dd0,()=>{const _0x1ebd04=_0x1e027c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b29f2=>_0x3b29f2['is']('element','tableCell')),_0x496c8f=_0x2d46f3['value'];_0x1e027c['model']['change'](()=>{_0x28de6e['markMultiRangeBlockFormat']([_0x1ebd04,_0x496c8f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a67ce of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56e6ac=_0x1e027c['commands']['get'](_0x1a67ce);_0x28de6e['enableCommand'](_0x1a67ce,()=>{const _0x4e6c4b=_0x59c1fc['getSelectionAffectedTableCells'](_0x1e027c['model']['document']['selection'])[0x0],_0x364858=_0x4e6c4b['findAncestor']('table'),{column:_0xa4e37c,row:_0x540c00}=_0x59c1fc['getCellLocation'](_0x4e6c4b);let _0x261b05=[];if('horizontally'==_0x56e6ac['direction']){const _0x5bd2b9=_0x59c1fc['createTableWalker'](_0x364858,{'startRow':_0x540c00,'endRow':_0x540c00,'includeAllSlots':!0x0});_0x261b05=Array['from'](_0x5bd2b9)['map'](_0xc4c63a=>_0xc4c63a['cell']);}else{const _0xc3059=_0x59c1fc['createTableWalker'](_0x364858,{'column':_0xa4e37c,'includeAllSlots':!0x0});_0x261b05=Array['from'](_0xc3059)['map'](_0x553f1b=>_0x553f1b['cell']);}_0x1e027c['model']['change'](_0x57e6a4=>{_0x28de6e['markBlockFormat'](_0x57e6a4['createRangeOn'](_0x4e6c4b),{'commandName':_0x1a67ce,'commandParams':[]},_0x261b05,_0x1a67ce);});});}_0x28de6e['descriptionFactory']['registerDescriptionCallback'](_0x2f3674=>{if('formatBlock'!=_0x2f3674['type']&&'formatInline'!=_0x2f3674['type'])return;const {data:_0x47e13b}=_0x2f3674;return _0x47e13b&&'mergeTableCells'==_0x47e13b['commandName']?{'type':'format','content':o(_0x916f61,'*Merge\x20cells*')}:void 0x0;}),_0x28de6e['descriptionFactory']['registerDescriptionCallback'](_0x483cf2=>{if('formatBlock'!=_0x483cf2['type']&&'formatInline'!=_0x483cf2['type'])return;const {data:_0x514a95}=_0x483cf2;return _0x514a95?'splitTableCellVertically'==_0x514a95['commandName']?{'type':'format','content':o(_0x916f61,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x514a95['commandName']?{'type':'format','content':o(_0x916f61,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x12df79=_0x364669['_acceptFormatSuggestionCallbackFactory']();for(const _0x15c341 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15c341,'accept',_0x12df79);for(const _0x42ff08 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42ff08,'accept',_0x12df79);_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35a96d=>{_0x1e027c['model']['change'](_0x435716=>{const _0x55033c=Array['from'](_0x49ea5f['getRanges']())['map'](_0x57c2a3=>_0x425d25['fromRange'](_0x57c2a3));_0x435716['setSelection'](_0x35a96d),_0x1e027c['commands']['get']('mergeTableCells')['refresh'](),_0x1e027c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b0a8c=_0x55033c['filter'](_0x97aaee=>'$graveyard'!=_0x97aaee['root']['rootName']);_0x5b0a8c['length']>0x0&&_0x435716['setSelection'](_0x5b0a8c);for(const _0x417979 of _0x55033c)_0x417979['detach']();});});for(const _0x3c5f0e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ae53b=_0x1e027c['commands']['get'](_0x3c5f0e);_0x3ae53b['on']('set:isEnabled',(_0x21339a,_0x532ed5,_0x19378b)=>{if(_0x19378b){const _0x3a0ad4=_0x1e027c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x584f07=>_0x584f07['is']('element','tableCell'));this['_areMergableCells'](_0x3ae53b['value'],_0x3a0ad4)||(_0x21339a['return']=!0x1,_0x21339a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1057f0=this['editor']['commands']['get']('mergeTableCells'),_0x33989a=this['editor']['plugins']['get']('TableUtils');if(!_0x1057f0['isEnabled'])return!0x1;const _0x5f370b=_0x33989a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1e5c4f of _0x5f370b)for(const _0x4c854a of _0x5f370b)if(_0x1e5c4f!=_0x4c854a&&!this['_areMergableCells'](_0x1e5c4f,_0x4c854a))return!0x1;return!0x0;}['_areMergableCells'](_0xfd9d21,_0x186ce3){const _0x3e11a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55559e=this['editor']['model']['createRangeOn'](_0xfd9d21),_0x45c3ce=this['editor']['model']['createRangeOn'](_0x186ce3),_0x522004=new Set(),_0xa22c9b=new Set();for(const _0x45808d of _0x3e11a4['getSuggestions']())if(('insertion'==_0x45808d['type']||'deletion'==_0x45808d['type']||'mergeTableCells'==_0x45808d['subType'])&&_0x45808d['isInContent']){for(const _0x540f8c of _0x45808d['getRanges']())_0x540f8c['containsRange'](_0x55559e,!0x0)&&_0x522004['add'](_0x45808d['type']+':'+_0x45808d['author']['id']),_0x540f8c['containsRange'](_0x45c3ce,!0x0)&&_0xa22c9b['add'](_0x45808d['type']+':'+_0x45808d['author']['id']);}if(_0x522004['size']!=_0xa22c9b['size'])return!0x1;for(const _0x46569d of _0x522004)if(!_0xa22c9b['has'](_0x46569d))return!0x1;return!0x0;}}class Ct extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x2d438a=this['editor'];if(!_0x2d438a['plugins']['has']('TableEditing'))return;const _0x58ea74=_0x2d438a['locale'],_0x3d45a4=_0x2d438a['plugins']['get']('TrackChangesEditing');_0x3d45a4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d45a4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d45a4['registerBlockAttribute']('headingRows'),_0x3d45a4['registerBlockAttribute']('headingColumns'),_0x3d45a4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x58ea74,'FORMAT_HEADER_ROW')),_0x3d45a4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x58ea74,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2cc6f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fc27d=this['editor']['plugins']['get']('TableUtils'),_0x19503a=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x40151c({showActiveMarker:_0x27afe3=!0x0,setDataAttribute:_0x2beb6f=!0x0}={}){return(_0xaf5e19,_0xc80571,_0x17d2fb)=>{const {type:_0x122623,id:_0x21abd9}=_0x2cc6f7['_splitMarkerName'](_0xc80571['markerName']),_0x373ce2=_0x2cc6f7['getSuggestion'](_0x21abd9),_0x2b18b2=_0x373ce2['data'];if('formatBlock'!=_0x373ce2['type']||!_0x2b18b2||'setTableColumnHeader'!=_0x2b18b2['commandName'])return;if(_0xc80571['item'])return void _0xaf5e19['stop']();if(!_0x17d2fb['consumable']['consume'](_0xc80571['markerRange'],_0xaf5e19['name']))return;const _0x240357=_0xc80571['markerRange']['start']['nodeAfter'],_0x120c74=_0xc80571['markerRange']['end']['nodeBefore'],_0x582d19=_0x240357['parent']['parent'],{column:_0x388037}=_0x3fc27d['getCellLocation'](_0x240357),{column:_0x38237b}=_0x3fc27d['getCellLocation'](_0x120c74);for(let _0x4ba8cd=_0x388037;_0x4ba8cd<=_0x38237b;_0x4ba8cd++){const _0xffb4ef=_0x3fc27d['createTableWalker'](_0x582d19,{'column':_0x4ba8cd,'includeAllSlots':!0x1});for(const _0x3bda54 of _0xffb4ef){const _0x3bdc21=_0x3bda54['cell'],_0x157830=_0x17d2fb['mapper']['toViewElement'](_0x3bdc21);_0x17d2fb['writer']['addClass']('ck-suggestion-marker-'+_0x122623,_0x157830),_0x2beb6f&&_0x17d2fb['writer']['setAttribute']('data-suggestion',_0x21abd9,_0x157830),_0x17d2fb['mapper']['bindElementToMarker'](_0x157830,_0xc80571['markerName']),_0x27afe3&&(_0x2cc6f7['activeMarkers']['includes'](_0xc80571['markerName'])?_0x17d2fb['writer']['addClass']('ck-suggestion-marker--active',_0x157830):_0x17d2fb['writer']['removeClass']('ck-suggestion-marker--active',_0x157830));}}};}_0x2cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x19503a),_0x2cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x19503a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x40151c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e6d02,_0x3dfef8,_0x1508e7)=>{_0x1508e7['options']['showSuggestionHighlights']&&_0x40151c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e6d02,_0x3dfef8,_0x1508e7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x227abe,_0x4f2053,_0x3d3659)=>{const {type:_0x4f8305,id:_0x6b6098}=_0x2cc6f7['_splitMarkerName'](_0x4f2053['markerName']),_0x252af4=_0x2cc6f7['getSuggestion'](_0x6b6098),_0x33bc1c=_0x252af4['data'];if('formatBlock'!=_0x252af4['type']||!_0x33bc1c||'setTableColumnHeader'!=_0x33bc1c['commandName'])return;const _0xf67e88=_0x3d3659['mapper']['markerNameToElements'](_0x4f2053['markerName']);if(_0xf67e88){for(const _0x401bde of _0xf67e88)_0x3d3659['writer']['removeClass']('ck-suggestion-marker-'+_0x4f8305,_0x401bde),_0x3d3659['writer']['removeClass']('ck-suggestion-marker--active',_0x401bde),_0x3d3659['writer']['removeAttribute']('data-suggestion',_0x401bde),_0x3d3659['mapper']['unbindElementFromMarkerName'](_0x401bde,_0x4f2053['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x552a99=this['editor'],_0x75073f=_0x552a99['locale'];function _0x39de1d(_0x5f28b4){return{'type':'format','content':o(_0x75073f,'*Format:*\x20%0',_0x5f28b4)};}_0x552a99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434057=>{if('formatBlock'!=_0x434057['type'])return;const {data:_0x26bd86}=_0x434057;if(_0x26bd86){if('setTableRowHeader'==_0x26bd86['commandName']){const _0x26ee12=_0x26bd86['commandParams'][0x0]['forceValue'];return _0x39de1d(o(_0x75073f,_0x26ee12?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26bd86['commandName']){const _0x1fe400=_0x26bd86['commandParams'][0x0]['forceValue'];return _0x39de1d(o(_0x75073f,_0x1fe400?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x541f91=>[_0x541f91,null]));class _t extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x2e2ba4=this['editor'];if(!_0x2e2ba4['plugins']['has']('TableClipboard'))return;const _0x3df9c8=_0x2e2ba4['plugins']['get']('TrackChangesEditing'),_0x4a37c6=_0x2e2ba4['plugins']['get']('TableUtils'),_0xde404f=_0x2e2ba4['plugins']['get'](It),_0x11eae2=_0x2e2ba4['plugins']['get']('TableClipboard');_0xde404f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2e2ba4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2e2ba4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5397f9=null;_0x2e2ba4['model']['on']('insertContent',(_0x54a7a7,_0x320ff1)=>{const [_0x49c356,_0x11bf99]=_0x320ff1,_0x56e8bc=_0x320ff1[_0x320ff1['length']-0x1];_0x56e8bc&&_0x56e8bc['forceDefaultExecution']||_0x3df9c8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4663ac,_0x7ff3f0,_0x56a2a,_0x5c6b7,_0x15bc45){if(_0x7ff3f0&&!_0x7ff3f0['is']('documentSelection'))return!0x1;const _0x2f3572=_0x15bc45['getTableIfOnlyTableInContent'](_0x4663ac,_0x56a2a);if(!_0x2f3572||!Re(_0x2f3572,void 0x0,_0x5c6b7))return!0x1;const _0x5a5c45=_0x5c6b7['getSelectionAffectedTableCells'](_0x56a2a['document']['selection']);if(!_0x5a5c45['length'])return!0x1;const _0xc16b99=_0x5a5c45[0x0]['findAncestor']('table'),_0x5dca94=_0x5c6b7['getRowIndexes'](_0x5a5c45),_0x5ee650=_0x5c6b7['getColumnIndexes'](_0x5a5c45),_0x2eae94={'startRow':_0x5dca94['first'],'endRow':_0x5dca94['last'],'startColumn':_0x5ee650['first'],'endColumn':_0x5ee650['last']};return 0x1==_0x5a5c45['length']&&(_0x2eae94['endRow']+=_0x5c6b7['getRows'](_0x2f3572)-0x1,_0x2eae94['endColumn']+=_0x5c6b7['getColumns'](_0x2f3572)-0x1),Re(_0xc16b99,_0x2eae94,_0x5c6b7);}(_0x49c356,_0x11bf99,_0x2e2ba4['model'],_0x4a37c6,_0x11eae2)&&(_0x54a7a7['stop'](),_0x5397f9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e2ba4['model']['change'](()=>{_0x2e2ba4['model']['insertContent'](_0x320ff1[0x0],_0x320ff1[0x1],_0x320ff1[0x2],{'forceDefaultExecution':!0x0});const _0x3d8ec4=_0x2b2341(),{rowInsertionRanges:_0x4fe6bd,columnInsertionRanges:_0x13ab86,insertionRanges:_0x32bc4f,deletionRanges:_0x145d98,cells:_0x2522ea}=_0x5397f9;_0x4fe6bd['length']&&_0x3df9c8['markMultiRangeInsertion'](_0x4fe6bd,'tablePasteRow',{'tablePasteChainId':_0x3d8ec4}),_0x13ab86['length']&&_0x3df9c8['markMultiRangeInsertion'](_0x13ab86,'tablePasteColumn',{'tablePasteChainId':_0x3d8ec4}),_0x32bc4f['length']&&(_0x3df9c8['markMultiRangeInsertion'](_0x32bc4f,'tablePaste',{'tablePasteChainId':_0x3d8ec4,'skipNestingCheck':!0x0}),_0x32bc4f['forEach'](_0x1a4640=>_0x1a4640['detach']?.())),_0x145d98['length']&&(_0x3df9c8['markMultiRangeDeletion'](_0x145d98,'tablePaste',{'tablePasteChainId':_0x3d8ec4,'skipNestingCheck':!0x0}),_0x145d98['forEach'](_0x5574b=>_0x5574b['detach']?.()));const _0x3c03b4=_0x3df9c8['markMultiRangeBlockFormat'](_0x2522ea['map'](({element:_0x5b937b})=>_0x5b937b),{'formatGroupId':_0x2b2341()},[],'tablePasteCell',{'tablePasteChainId':_0x3d8ec4});if(_0x3c03b4){const _0x38135c=_0x3c03b4['getMarkers'](),_0x3b30cc=[];for(const {element:_0x8e2d5,attributes:_0x5102b0}of _0x2522ea){if(!_0x5102b0)continue;const _0xfe6d26=_0x2e2ba4['model']['createRangeOn'](_0x8e2d5),_0x1c9860=_0x38135c['find'](_0x382cd8=>_0x382cd8['getRange']()['isEqual'](_0xfe6d26));_0x1c9860&&_0x3b30cc['push']([_0x1c9860['name'],_0x5102b0]);}_0x3b30cc['length']&&_0x3c03b4['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b30cc));}_0x5397f9=null;}));},{'priority':_0x393348['high']+0xa}),_0x2e2ba4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b7c21,_0xd374c0)=>{const [_0x47de86,_0x23b94a,,_0x3c0130]=_0xd374c0;if(!_0x5397f9)return;_0x4b7c21['stop']();const _0x1c815a=_0x47de86['cell'],_0x20e1c2=_0x23b94a,_0x3e48d2=ke(_0x1c815a),_0xccc8dd=ke(_0x20e1c2);_0x4b7c21['return']=_0x1c815a;let _0x1b6dda=null,_0x5aed00=null;if(_0xccc8dd||_0x3e48d2){if(_0x3e48d2&&!_0xccc8dd){_0x3c0130['remove'](_0x1c815a['getChild'](0x0));for(const _0x2e3ca6 of Array['from'](_0x20e1c2['getChildren']()))_0x3c0130['insert'](_0x2e3ca6,_0x1c815a,'end');const _0x143ac1=_0x5397f9['rowInsertionIndexes']['includes'](_0x47de86['row']),_0x36eee3=_0x5397f9['columnInsertionIndexes']['includes'](_0x47de86['column']);_0x143ac1||_0x36eee3||(_0x1b6dda=_0x425d25['fromRange'](_0x3c0130['createRangeIn'](_0x1c815a)));}else _0xccc8dd&&!_0x3e48d2&&(_0x5aed00=_0x3c0130['createRangeIn'](_0x1c815a));}else{const _0x5f016c=_0x3c0130['createElement']('tableCellSuggestion'),_0x5bc01e=_0x3c0130['createElement']('tableCellSuggestion');_0x3c0130['wrap'](_0x3c0130['createRangeIn'](_0x1c815a),_0x5bc01e),_0x3c0130['insert'](_0x5f016c,_0x1c815a,0x0);for(const _0x579e18 of Array['from'](_0x20e1c2['getChildren']()))_0x3c0130['insert'](_0x579e18,_0x5f016c,'end');_0x1b6dda=_0x425d25['fromRange'](_0x3c0130['createRangeOn'](_0x5f016c)),_0x5aed00=_0x425d25['fromRange'](_0x3c0130['createRangeOn'](_0x5bc01e));}const _0x130b3e=Array['from'](_0x20e1c2['getAttributes']())['filter'](([_0x11663c])=>Pe['includes'](_0x11663c));_0x5397f9['cells']['push']({'element':_0x1c815a,'attributes':_0x130b3e['length']?Object['fromEntries'](_0x130b3e):null}),_0x1b6dda&&_0x5397f9['insertionRanges']['push'](_0x1b6dda),_0x5aed00&&_0x5397f9['deletionRanges']['push'](_0x5aed00);},{'priority':'high'}),_0x4a37c6['on']('insertColumns',(_0x1c3028,_0x455def)=>{const [_0x5bd26c,_0x4c6633={}]=_0x455def;if(!_0x5397f9)return;const _0x4b90d9=_0x4c6633['at']||0x0,_0x1da5f3=_0x4c6633['columns']||0x1;_0x5397f9['columnInsertionIndexes']=new Array(_0x1da5f3)['fill'](_0x4b90d9)['map']((_0xad9a90,_0x52c658)=>_0xad9a90+_0x52c658);for(const {cell:_0x5603d5}of _0x4a37c6['createTableWalker'](_0x5bd26c,{'startColumn':_0x4b90d9,'endColumn':_0x4b90d9+_0x1da5f3-0x1}))_0x5397f9['columnInsertionRanges']['push'](_0x2e2ba4['model']['createRangeOn'](_0x5603d5));},{'priority':'low'}),_0x4a37c6['on']('insertRows',(_0x3b039b,_0x6d77b0)=>{const [_0x195a5c,_0x4ba01e={}]=_0x6d77b0;if(!_0x5397f9)return;const _0x36d29e=_0x4ba01e['at']||0x0,_0x5658fa=_0x4ba01e['rows']||0x1;_0x5397f9['rowInsertionIndexes']=new Array(_0x5658fa)['fill'](_0x36d29e)['map']((_0x53f608,_0x2e6723)=>_0x53f608+_0x2e6723);for(const {cell:_0x3d270a}of _0x4a37c6['createTableWalker'](_0x195a5c,{'startRow':_0x36d29e,'endRow':_0x36d29e+_0x5658fa-0x1}))_0x5397f9['rowInsertionRanges']['push'](_0x2e2ba4['model']['createRangeOn'](_0x3d270a));},{'priority':'low'}),_0x3df9c8['descriptionFactory']['registerDescriptionCallback'](_0x361aff=>{if(_0x361aff['subType']&&_0x361aff['subType']['startsWith']('tablePaste'))return _0x361aff['previous']?{}:{'type':'insertion','content':o(_0x2e2ba4['locale'],'*Replace\x20table\x20cells*')};});const _0x213e0e=()=>!0x1;for(const _0x3ba476 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x3ba476,'join',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ba476,'join',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ba476,'join',_0x213e0e);_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x589258,_0x3d13fb,_0xeb7100)=>{const _0x23602c=_0x589258['map'](_0x3f6dbc=>_0x3f6dbc['getContainedElement']())['filter'](_0x489ef8=>_0x489ef8),_0x1830b8=new Map(_0x23602c['map'](_0xd69140=>[_0xd69140,null]));if(_0x5397f9){for(const {element:_0x392cf3,attributes:_0x49b166}of _0x5397f9['cells'])_0x49b166&&_0x1830b8['set'](_0x392cf3,_0x49b166);}else{if(_0xeb7100&&_0xeb7100['markerAttributes'])for(const [_0x11bc01,_0xd41a72]of Object['entries'](_0xeb7100['markerAttributes'])){const _0x328497=_0x2e2ba4['model']['markers']['get'](_0x11bc01),_0xc0993d=_0x328497?_0x328497['getRange']()['getContainedElement']():null;_0xc0993d&&_0x1830b8['set'](_0xc0993d,_0xd41a72);}}_0x2e2ba4['model']['change'](_0x278b80=>{for(const [_0x4751c4,_0x19068e]of _0x1830b8)_0x278b80['setAttributes']({...we,..._0x19068e},_0x4751c4);});});const _0x26fa3e=(_0x918b05,_0x26b22f)=>{_0x3df9c8['_suggestionFactory']['registerCustomCallback'](_0x918b05,'tablePaste',_0x26b22f,(_0x3d4128,_0x46bde4,_0x4d54ce)=>{_0x2e2ba4['model']['change'](_0x4eaae1=>{const _0x2f8d9e=[];for(const _0x399e95 of _0x3d4128){const _0x9c3fc3=_0x399e95['start']['nodeAfter'];_0x9c3fc3['is']('element','tableCellSuggestion')&&_0x2f8d9e['push'](_0x9c3fc3);}_0x3df9c8['_suggestionFactory']['getSuggestionCallback'](_0x918b05,null,_0x26b22f)(_0x3d4128,_0x46bde4,_0x4d54ce);for(const _0x4a736e of _0x2f8d9e)'$graveyard'!=_0x4a736e['root']['rootName']&&_0x4eaae1['unwrap'](_0x4a736e);});});};_0x26fa3e('insertion','accept'),_0x26fa3e('insertion','discard'),_0x26fa3e('deletion','accept'),_0x26fa3e('deletion','discard'),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x20b7e8=>{const _0x13535d=_0x20b7e8['map'](_0x2acc4b=>_0x2acc4b['getContainedElement']()),_0x2d072d=_0x13535d[0x0]['findAncestor']('table'),{minRow:_0x136a6d,maxRow:_0x1bb188}=_0xde404f['_getCoordsForCells'](_0x13535d);_0x4a37c6['removeRows'](_0x2d072d,{'at':_0x136a6d,'rows':_0x1bb188-_0x136a6d+0x1});}),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xdf2664=>{const _0x533cac=_0xdf2664['map'](_0x324cc8=>_0x324cc8['getContainedElement']()),_0x3bfaeb=_0x533cac[0x0]['findAncestor']('table'),{minColumn:_0xe5e6e2,maxColumn:_0x4b7e3a}=_0xde404f['_getCoordsForCells'](_0x533cac);_0x4a37c6['removeColumns'](_0x3bfaeb,{'at':_0xe5e6e2,'columns':_0x4b7e3a-_0xe5e6e2+0x1});});const _0x518c78=(_0x2b51ed,_0x39521b)=>{if(!_0x39521b['subType']||!_0x39521b['subType']['startsWith']('tablePaste'))return;const _0x474fc7=_0x39521b['attributes']['tablePasteChainId'],_0x22908d=_0x3df9c8['getSuggestions']()['filter'](_0x5b24ab=>_0x5b24ab['isInContent']&&_0x5b24ab['attributes']&&_0x5b24ab['attributes']['tablePasteChainId']==_0x474fc7);_0x22908d['length']&&_0x39521b['getAllAdjacentSuggestions']()['length']!=_0x22908d['length']&&_0x22908d['reduce']((_0x2b6592,_0x1a5eca)=>(_0x2b6592['next']=_0x1a5eca,_0x1a5eca['previous']=_0x2b6592,_0x1a5eca));};function _0x1040a1(_0x486445,_0xee2d0c=!0x0){const {id:_0x493ad0,authorId:_0x42ef7c}=_0x3df9c8['_splitMarkerName'](_0x486445['markerName']),_0x1a4d70=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x404c62=_0x3df9c8['activeMarkers']['includes'](_0x486445['markerName']);return _0x404c62&&_0x1a4d70['push']('ck-suggestion-marker--active'),{'classes':_0x1a4d70,'attributes':{'data-suggestion':_0x493ad0,'data-author-id':_0x42ef7c},'priority':_0x404c62&&_0xee2d0c?0xbc2:0xbb8};}_0x3df9c8['on']('suggestionLoaded',_0x518c78,{'priority':'high'}),_0x3df9c8['on']('suggestionUnloaded',_0x518c78,{'priority':'high'}),_0x2e2ba4['model']['document']['registerPostFixer'](()=>{let _0x3a6210=!0x1;const _0x40e8f4=Array['from'](_0x2e2ba4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e5ec2,data:_0x9e3da4}of _0x40e8f4){const {group:_0x5df6bf,type:_0x43019e,id:_0xbcf2a7}=_0x3df9c8['_splitMarkerName'](_0x5e5ec2);if('suggestion'!=_0x5df6bf||'deletion'!=_0x43019e||_0x9e3da4['oldRange'])continue;if(!_0x3df9c8['hasSuggestion'](_0xbcf2a7))continue;const _0xed1c76=_0x3df9c8['getSuggestion'](_0xbcf2a7)['getRanges'](),_0x41cd60=_0x2e2ba4['plugins']['get']('Users')['me'];for(const _0x1e7f6a of _0x3df9c8['getSuggestions']()){if(!_0x1e7f6a['isInContent']||_0x1e7f6a['author']!=_0x41cd60)continue;if('formatBlock'!=_0x1e7f6a['type']||'tablePasteCell'!=_0x1e7f6a['subType'])continue;if(_0x1e7f6a['getRanges']()['every'](_0x3db72f=>_0xed1c76['some'](_0x23154e=>_0x23154e['containsRange'](_0x3db72f,!0x0)))){for(const _0x50bca6 of _0x1e7f6a['getAllAdjacentSuggestions']())_0x50bca6['isInContent']&&(_0x50bca6['discard'](),_0x3a6210=!0x0);}}}return _0x3a6210;}),_0x2e2ba4['model']['document']['registerPostFixer'](_0x481a41=>{const _0x202fa8=_0x2e2ba4['commands']['get']('redo');if(!_0x202fa8||!_0x202fa8['_createdBatches']['has'](_0x481a41['batch']))return!0x1;let _0x2423ef=!0x1;const _0x1f91d7=_0x2e2ba4['plugins']['get']('Users')['me'],_0x261bc3=_0x2e2ba4['model']['document']['differ']['getChanges'](),_0x51db3c=Array['from'](_0x2e2ba4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x508e93,data:_0x519c12})=>{const {group:_0x3f63a2,subType:_0x56a894,authorId:_0x533db7}=_0x3df9c8['_splitMarkerName'](_0x508e93);return'suggestion'==_0x3f63a2&&'tablePaste'==_0x56a894&&_0x533db7==_0x1f91d7['id']&&!_0x519c12['oldRange'];});for(const _0x300cbc of _0x261bc3){if('insert'!=_0x300cbc['type']||'tableCellSuggestion'!=_0x300cbc['name']||0x1!=_0x300cbc['length'])continue;const _0x1c9742=_0x481a41['createRange'](_0x300cbc['position'],_0x300cbc['position']['getShiftedBy'](0x1));if(!_0x51db3c['find'](({data:_0x1566cc})=>_0x1566cc['newRange']['isEqual'](_0x1c9742))){for(const {name:_0xbfc22,data:_0x9b04b0}of _0x51db3c)if(_0x1c9742['containsRange'](_0x9b04b0['newRange'])){_0x481a41['updateMarker'](_0xbfc22,{'range':_0x1c9742}),_0x2423ef=!0x0;break;}}}return _0x2423ef;}),_0x2e2ba4['model']['document']['registerPostFixer'](_0x11f83a=>{let _0x4138af=!0x1;const _0x1e960c=_0x2e2ba4['plugins']['get']('Users')['me'],_0x1cdd0e=_0x3df9c8['getSuggestions']()['filter'](_0x3b497c=>_0x3b497c['isInContent']&&_0x3b497c['author']==_0x1e960c),_0x44bae6=new Set(),_0x55bfc6=new Set();for(const _0x5139c5 of _0x1cdd0e)if('tablePaste'==_0x5139c5['subType'])for(const _0x5459b2 of _0x5139c5['getMarkers']()){const _0x4f1b11=_0x5459b2['getRange']()['getContainedElement']();if(_0x4f1b11){if(_0x4f1b11['is']('element','tableCellSuggestion')&&ke(_0x4f1b11)){_0x5139c5['removeMarker'](_0x5459b2['name']),_0x44bae6['add'](_0x4f1b11),_0x4138af=!0x0;const _0x35976d=_0x4f1b11['nextSibling'],_0x4417d7=_0x4f1b11['previousSibling'],_0x50f701=_0x35976d&&_0x35976d['is']('element','tableCellSuggestion'),_0x26ce06=_0x4417d7&&_0x4417d7['is']('element','tableCellSuggestion');_0x50f701&&!_0x44bae6['has'](_0x35976d)&&_0x55bfc6['add'](_0x35976d),_0x26ce06&&!_0x44bae6['has'](_0x4417d7)&&_0x55bfc6['add'](_0x4417d7);}else _0x4f1b11['is']('element','paragraph')&&_0x4f1b11['isEmpty']&&(_0x5139c5['removeMarker'](_0x5459b2['name']),_0x4138af=!0x0);}}else{if('tablePasteCell'==_0x5139c5['subType']){if(!_0x5139c5['attributes']||!_0x5139c5['attributes']['tablePasteChainId'])continue;const _0x217e76=_0x5139c5['attributes']['markerAttributes'];if(_0x217e76&&Object['keys'](_0x217e76)['length'])continue;const _0x632bc5=_0x5139c5['attributes']['tablePasteChainId'];let _0x1ca9fe=!0x0,_0x39b908=!0x0;for(const _0x346ce3 of _0x1cdd0e)if(_0x346ce3['subType']&&_0x346ce3['subType']['startsWith']('tablePaste')){if(!_0x346ce3['attributes']['tablePasteChainId']){_0x39b908=!0x1;break;}if(_0x346ce3['id']!=_0x5139c5['id']&&_0x346ce3['attributes']['tablePasteChainId']==_0x632bc5){_0x1ca9fe=!0x1;break;}}_0x39b908&&_0x1ca9fe&&(_0x5139c5['removeMarkers'](),_0x4138af=!0x0);}}for(const _0x4ca23c of _0x44bae6)_0x11f83a['remove'](_0x4ca23c);for(const _0x4e4474 of _0x55bfc6)_0x11f83a['unwrap'](_0x4e4474);return _0x4138af;}),_0x2e2ba4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x68ea62=>_0x1040a1(_0x68ea62),'converterPriority':'high'}),_0x2e2ba4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f3d2d,_0x38277f)=>_0x38277f['options']['showSuggestionHighlights']?_0x1040a1(_0x4f3d2d,!0x1):null,'converterPriority':'high'});const _0x2cdf75=_0x2e2ba4['editing']['view'];this['listenTo'](_0x2cdf75['document'],'clipboardOutput',(_0x5cb0a3,_0x3627cc)=>{const _0x589828=[];for(const _0x20f0fc of _0x2cdf75['createRangeIn'](_0x3627cc['content'])['getItems']())_0x20f0fc['is']('element','suggestion-td')&&_0x589828['push'](_0x20f0fc);_0x2cdf75['change'](_0x2c02ad=>{for(const _0x25f077 of _0x589828)_0x2c02ad['move'](_0x2c02ad['createRangeIn'](_0x25f077),_0x2c02ad['createPositionBefore'](_0x25f077)),_0x2c02ad['remove'](_0x25f077);});});}}function ke(_0x5e9652){if(_0x5e9652['isEmpty'])return!0x0;const _0x4c7073=_0x5e9652['getChild'](0x0);return _0x4c7073['is']('element','paragraph')&&_0x4c7073['isEmpty'];}function Re(_0x37ab1c,_0xb96b38={},_0x3d4db6){for(const {isAnchor:_0x2c3e20,cellHeight:_0x4860f9,cellWidth:_0x2edf70}of _0x3d4db6['createTableWalker'](_0x37ab1c,{'includeAllSlots':!0x0,..._0xb96b38}))if(!_0x2c3e20||0x1!=_0x4860f9||0x1!=_0x2edf70)return!0x1;return!0x0;}class Nt extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2767da=this['editor']['plugins']['get']('TrackChangesEditing');_0x2767da['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2767da['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2767da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2767da['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2767da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2767da['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3218ec,_0x151fbf){const _0x43afed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b30a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59d1fb=_0x151fbf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4fc456=_0x2b30a6['getColumnGroupElement'](_0x59d1fb);let _0x24a387=_0x4fc456?_0x2b30a6['getTableColumnsWidths'](_0x4fc456):null,_0x38c52b=_0x59d1fb['getAttribute']('tableWidth')||null;const _0x296055=_0x151fbf['tableWidth']||_0x38c52b,_0x4382cf=_0x151fbf['columnWidths']||_0x24a387,_0x52a1cd=this['editor']['plugins']['get']('Users')['me'];for(const _0x52da97 of _0x43afed['getSuggestions']()){const _0x402271=_0x52da97['getContainedElement']();if('resizeTable'===_0x52da97['subType']&&_0x402271===_0x59d1fb){_0x52da97['author']!==_0x52a1cd&&_0x52da97['discard']();const _0x3905cd=_0x52da97['data']['commandParams'];_0x38c52b=_0x3905cd[0x0]['tableWidth'],_0x24a387=_0x3905cd[0x0]['columnWidths'];break;}}_0x3218ec({'table':_0x59d1fb,'tableWidth':_0x296055,'columnWidths':_0x4382cf}),_0x43afed['markBlockFormat'](_0x59d1fb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x38c52b,'columnWidths':_0x24a387}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58ff30){if('formatBlock'!=_0x58ff30['type']&&'formatInline'!=_0x58ff30['type'])return;const {data:_0xa7651e}=_0x58ff30;if(_0xa7651e&&'resizeTable'===_0xa7651e['formatGroupId']){const _0x1cbab1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1cbab1)};}}}class Dt extends _0xd0fe4f{['afterInit'](){const _0x34ee3d=this['editor'];_0x34ee3d['plugins']['has']('Template')&&_0x34ee3d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xd0fe4f{['afterInit'](){const _0x3e47ce=this['editor'];if(!_0x3e47ce['commands']['get']('insertTableOfContents'))return;_0x3e47ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59781f=_0x3e47ce['plugins']['get']('TrackChangesEditing'),_0x1e4d55=_0x3e47ce['locale'];_0x59781f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3f88a1=>o(_0x1e4d55,'ELEMENT_TABLE_OF_CONTENTS',_0x3f88a1));}}class $t extends _0xd0fe4f{['afterInit'](){const _0x1478af=this['editor'];if(!_0x1478af['plugins']['has']('Title'))return;const _0x243d3d=_0x1478af['plugins']['get']('TrackChangesEditing');_0x243d3d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1478af['locale'],'ELEMENT_TITLE')),_0x1478af['model']['document']['registerPostFixer'](_0x43a651=>{let _0x4b5174=!0x1;const _0x1c3046=Array['from'](_0x1478af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4573b1,data:_0x14da7d}of _0x1c3046){const {group:_0x55605b}=_0x243d3d['_splitMarkerName'](_0x4573b1);if('suggestion'!==_0x55605b||!_0x14da7d['newRange'])continue;const _0x31b4df=_0x14da7d['newRange'],_0x222586=_0x31b4df['end']['nodeBefore'];if(!_0x222586||!_0x222586['is']('element','title-content'))continue;if(!_0x31b4df['start']['isTouching'](_0x31b4df['end']))continue;const _0x47548a=_0x1478af['model']['schema']['getNearestSelectionRange'](_0x31b4df['end'],'forward');if(_0x47548a&&_0x47548a['isCollapsed']){const _0x40ada2=_0x43a651['createRange'](_0x31b4df['start'],_0x47548a['start']);_0x40ada2['isEqual'](_0x31b4df)||(_0x43a651['updateMarker'](_0x4573b1,{'range':_0x40ada2}),_0x4b5174=!0x0);}_0x4b5174||(_0x43a651['removeMarker'](_0x4573b1),_0x4b5174=!0x0);}return _0x4b5174;});}}class Bt extends _0xd0fe4f{['afterInit'](){const _0x100a67=this['editor'],_0x5c7045=_0x100a67['plugins']['get']('TrackChangesEditing');_0x100a67['plugins']['has']('UndoEditing')&&(_0x5c7045['enableCommand']('undo'),_0x5c7045['enableCommand']('redo'));}}class xt extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x5558fb=this['editor'];if(!_0x5558fb['plugins']['has']('TableCaptionEditing'))return;_0x5558fb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0xd0fe4f{['tableProperties'];['tableCellProperties'];constructor(_0x5e895a){super(_0x5e895a),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 _0xac6259=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x526f5a of this['tableProperties'])_0xac6259['enableCommand'](_0x526f5a,(_0x407cb6,_0x2ce78e)=>{const _0x2977c8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x526f5a,[_0x2977c8],this['tableProperties'],'tableProperties',_0x407cb6,_0x2ce78e);});_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xac6259['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x51acaa,_0x243872)=>this['handleDiscardAction'](this['tableProperties'],_0x51acaa,_0x243872)),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40b42a of this['tableCellProperties'])_0xac6259['enableCommand'](_0x40b42a,(_0x4816b9,_0x9f725d)=>{const _0x2ab497=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40b42a,_0x2ab497,this['tableCellProperties'],'tableCellProperties',_0x4816b9,_0x9f725d);});_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xac6259['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50e4b1,_0x3afb93)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50e4b1,_0x3afb93)),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xac6259['descriptionFactory']['registerDescriptionCallback'](_0x2d72d2=>this['handleSuggestionDescription'](_0x2d72d2));}['_handlePropertyChange'](_0x3f58e7,_0x227901,_0x5474c2,_0xa6b532,_0x5c7cff,_0x258ab8){const _0x20f010=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x258ab8['batch'],()=>{for(const _0xa49e47 of _0x227901){if(this['_getSuggestion'](_0xa49e47,_0xa6b532))_0x5c7cff(_0x258ab8);else{const _0x101a2f={};for(const _0xbf63f4 of _0x5474c2){const _0x4240f7=_0xa49e47['getAttribute'](_0xbf63f4);void 0x0!==_0x4240f7&&(_0x101a2f[_0xbf63f4]=_0x4240f7);}_0x5c7cff(_0x258ab8),_0x20f010['markBlockFormat'](_0xa49e47,{'commandParams':[_0x101a2f]},[],_0xa6b532);}}});}['handleDiscardAction'](_0x1c5d09,_0xbbbd3e,_0x37a362){const _0x2f80ae=_0xbbbd3e[0x0]['start']['nodeAfter'],_0x1ce502=_0x37a362['commandParams'][0x0];this['editor']['model']['change'](_0x473197=>{for(const _0x31d570 of _0x1c5d09)void 0x0!==_0x1ce502[_0x31d570]?_0x473197['setAttribute'](_0x31d570,_0x1ce502[_0x31d570],_0x2f80ae):_0x473197['removeAttribute'](_0x31d570,_0x2f80ae);});}['handleSuggestionDescription'](_0x3c7eb1){if(_0x3c7eb1['data'])switch(_0x3c7eb1['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'](_0x2cec27,_0x1ebcdc){const _0x526307=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x139448 of _0x526307['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d3143=_0x139448['getContainedElement']();if(_0x139448['subType']===_0x1ebcdc&&_0x1d3143===_0x2cec27)return _0x139448;}return null;}}const m='$elementName';class p extends _0xd0fe4f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2a2d95,_0x43e262,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(_0x163934){function _0x574c8f(_0x3520ea){return _0x3520ea['map'](_0x34aa1c=>String['fromCharCode'](_0x34aa1c))['join']('');}super(_0x163934),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe66889,_0x2a7971,_0x116c0c,_0x31399e)=>{this['_model']['change'](()=>{for(const _0x3ee585 of[..._0x31399e,..._0x116c0c])this['_model']['markers']['has'](_0x3ee585)&&_0x163934['editing']['reconvertMarker'](_0x3ee585);});}),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']=_0x163934['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(),_0x163934['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x163934['config']['get']('trackChanges.trackFormatChanges'),_0x163934['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x163934['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x163934,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x574c8f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x574c8f([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x30]);}['init'](){const _0x182e5f=this['editor'],_0x395a7a=(_0x59ad43,_0x403ac3)=>{if('attribute'!=_0x59ad43)return'ck-suggestion-marker-'+_0x59ad43;const _0x9120a8=_0x403ac3['split']('|')[0x0];return this['_isBlockAttribute'](_0x9120a8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x182e5f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x263452=>{const {id:_0x3f15e3,authorId:_0xc8a62e,type:_0x550061,subType:_0x124540}=this['_splitMarkerName'](_0x263452['markerName']),_0x17a7e6=['ck-suggestion-marker',_0x395a7a(_0x550061,_0x124540)];let _0xfa74f8=0xbb8;return this['activeMarkers']['includes'](_0x263452['markerName'])&&(_0x17a7e6['push']('ck-suggestion-marker--active'),_0xfa74f8=0xbc2),'deletion'==_0x550061&&(_0xfa74f8+=0x5),{'classes':_0x17a7e6,'attributes':{'data-suggestion':_0x3f15e3,'data-author-id':_0xc8a62e},'priority':_0xfa74f8};}}),_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x235c81=>{_0x235c81['on']('addMarker:suggestion',(_0x1e4687,_0x20efd0,_0x47856d)=>{if(!_0x47856d['options']['showSuggestionHighlights'])return;const _0x50a947=_0x20efd0['item'];if(!_0x50a947)return;const _0x5da6a1=_0x47856d['mapper']['toViewElement'](_0x50a947);_0x182e5f['model']['schema']['isObject'](_0x50a947)&&_0x5da6a1&&!_0x5da6a1['getCustomProperty']('widget')&&_0x5da6a1['is']('containerElement')&&_0x1846c8(_0x5da6a1,_0x47856d['writer']);},{'priority':'high'});}),_0x182e5f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x16b9a8,_0x1b9ff1)=>{if(!_0x1b9ff1['options']['showSuggestionHighlights'])return null;const {type:_0x24e647,subType:_0x392a90}=this['_splitMarkerName'](_0x16b9a8['markerName']);return{'classes':['ck-suggestion-marker',_0x395a7a(_0x24e647,_0x392a90)],'priority':0xbb8};}});const _0x4376e3=({showActiveMarkers:_0xa22e00=!0x0,isAttributeSuggestion:_0x5d594e=!0x1}={})=>(_0x60eba3,_0x54bf02,_0x2cbb56)=>{if(!_0x54bf02['item'])return;const {id:_0x4be22b,authorId:_0x20db83}=this['_splitMarkerName'](_0x54bf02['markerName']);if(_0x5d594e){const _0x2e4f6b=this['_suggestions']['get'](_0x4be22b),_0x3b47d9=this['_getAttributeKey'](_0x2e4f6b);if(!this['_isBlockAttribute'](_0x3b47d9))return;}if(_0x54bf02['item']['is']('selection'))return void _0x2cbb56['consumable']['consume'](_0x54bf02['item'],_0x60eba3['name']);const _0x4f8e50=_0x2cbb56['mapper']['toViewElement'](_0x54bf02['item']);if(_0x54bf02['item']['is']('element')&&_0x182e5f['model']['schema']['isBlock'](_0x54bf02['item'])&&!_0x4f8e50['getCustomProperty']('addHighlight')){_0x2cbb56['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f8e50),_0x2cbb56['writer']['setAttribute']('data-suggestion',_0x4be22b,_0x4f8e50),_0x2cbb56['writer']['setAttribute']('data-author-id',_0x20db83,_0x4f8e50),_0x2cbb56['mapper']['bindElementToMarker'](_0x4f8e50,_0x54bf02['markerName']),_0xa22e00&&(this['activeMarkers']['includes'](_0x54bf02['markerName'])?_0x2cbb56['writer']['addClass']('ck-suggestion-marker--active',_0x4f8e50):_0x2cbb56['writer']['removeClass']('ck-suggestion-marker--active',_0x4f8e50));for(const _0xb5057f of _0x182e5f['model']['createRangeIn'](_0x54bf02['item'])['getItems']())_0x2cbb56['consumable']['consume'](_0xb5057f,_0x60eba3['name']);_0x2cbb56['consumable']['consume'](_0x54bf02['item'],_0x60eba3['name']);}};_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x1c2ae7=>{_0x1c2ae7['on']('addMarker:suggestion:formatBlock',(_0x23de93,_0x49b18c,_0x36b495)=>{_0x36b495['options']['showSuggestionHighlights']&&_0x4376e3({'showActiveMarkers':!0x1})(_0x23de93,_0x49b18c,_0x36b495);},{'priority':'highest'});}),_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x5f6282=>{_0x5f6282['on']('addMarker:suggestion:attribute',(_0x5d34ba,_0xb20cef,_0x5bbb3c)=>{_0x5bbb3c['options']['showSuggestionHighlights']&&_0x4376e3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5d34ba,_0xb20cef,_0x5bbb3c);},{'priority':'highest'});}),_0x182e5f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17aeca,_0x4b8756)=>_0x4b8756['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x17aeca['substr'](0xb)}}),_0x182e5f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c0b0,{writer:_0x3c2f9c})=>{let _0x277bba='suggestion:'+_0x3c0b0['getAttribute']('suggestion-type')+':'+_0x3c0b0['getAttribute']('id');return _0x3c0b0['getAttribute']('marker-count')&&(_0x277bba+=':'+_0x3c0b0['getAttribute']('marker-count')),_0x3c2f9c['createElement']('$marker',{'data-name':_0x277bba});}}),_0x182e5f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x35e522=>{_0x35e522['on']('addMarker:suggestion:formatBlock',_0x4376e3(),{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x28cc6c=>{_0x28cc6c['on']('addMarker:suggestion:attribute',_0x4376e3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x9b1c68=>{_0x9b1c68['on']('removeMarker:suggestion:formatBlock',(_0x100360,_0x534d9d,_0x15cd11)=>{const _0x40b595=_0x15cd11['mapper']['markerNameToElements'](_0x534d9d['markerName']);if(_0x40b595){for(const _0x4bd173 of _0x40b595)_0x4bd173['getCustomProperty']('addHighlight')||(_0x15cd11['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4bd173),_0x15cd11['writer']['removeAttribute']('data-suggestion',_0x4bd173),_0x15cd11['writer']['removeAttribute']('data-author-id',_0x4bd173),_0x15cd11['mapper']['unbindElementFromMarkerName'](_0x4bd173,_0x534d9d['markerName']));}},{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x4ecf9f=>{_0x4ecf9f['on']('removeMarker:suggestion:attribute',(_0x4e54a1,_0x2c2010,_0x5d35a7)=>{const _0x3f50f5=_0x5d35a7['mapper']['markerNameToElements'](_0x2c2010['markerName']);if(!_0x3f50f5)return;const {id:_0x429f9e}=this['_splitMarkerName'](_0x2c2010['markerName']),_0x24e3d5=this['_suggestions']['get'](_0x429f9e),_0x547925=this['_getAttributeKey'](_0x24e3d5);if(this['_isBlockAttribute'](_0x547925)){for(const _0x2fde5c of _0x3f50f5)_0x2fde5c['getCustomProperty']('addHighlight')||(_0x5d35a7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fde5c),_0x5d35a7['writer']['removeAttribute']('data-suggestion',_0x2fde5c),_0x5d35a7['writer']['removeAttribute']('data-author-id',_0x2fde5c),_0x5d35a7['mapper']['unbindElementFromMarkerName'](_0x2fde5c,_0x2c2010['markerName']));}},{'priority':'high'});}),_0x182e5f['model']['document']['registerPostFixer'](_0x102ebb=>{let _0x1ea563=!0x1;const _0x28a908=Array['from'](_0x182e5f['model']['document']['differ']['getChangedMarkers']()),_0x223ade=new Set();for(const {name:_0x1f4d05,data:_0x27836f}of _0x28a908){const {group:_0x12d734,type:_0x5a6de2,subType:_0x6c8e41,id:_0x1a3a4b}=this['_splitMarkerName'](_0x1f4d05);if('suggestion'!==_0x12d734)continue;const _0x5348ec=this['_suggestions']['get'](_0x1a3a4b);if(null!=_0x27836f['newRange']){'formatInline'==_0x5a6de2&&(_0x1ea563=_0x1ea563||Ut(_0x27836f['newRange'],_0x1f4d05,_0x102ebb,_0x182e5f['model']['schema']));const _0x48de5f='attribute'==_0x5a6de2&&this['_isBlockAttribute'](_0x6c8e41['split']('|')[0x0]);if(_0x27836f['newRange']['isCollapsed']||'$graveyard'==_0x27836f['newRange']['root']['rootName']||'formatBlock'==_0x5a6de2&&!Ft(_0x27836f['newRange'])||_0x48de5f&&!Ft(_0x27836f['newRange'])||'deletion'==_0x5a6de2&&!(!Vt(_0x451146=_0x27836f['newRange'])&&!function(_0x431477){return _0x431477['start']['parent']==_0x431477['end']['nodeBefore']&&_0x431477['start']['isAtEnd'];}(_0x451146)))_0x102ebb['removeMarker'](_0x1f4d05),_0x1ea563=!0x0;else{if(!_0x5348ec||!_0x5348ec['isInContent'])continue;if(_0x27836f['newRange']&&_0x27836f['oldRange']&&_0x27836f['newRange']['isEqual'](_0x27836f['oldRange']))continue;_0x223ade['add'](_0x5348ec);}}}var _0x451146;return _0x223ade['size']>0x0&&(_0x1ea563=!!this['_joinWithAdjacentSuggestions'](_0x223ade)||_0x1ea563),_0x1ea563;}),_0x182e5f['model']['document']['registerPostFixer'](_0x100c2f=>{let _0xd5677f=!0x1;for(const _0x24c26e of _0x182e5f['model']['document']['differ']['getChanges']())if('insert'==_0x24c26e['type'])for(const _0x4c1222 of this['_suggestions']['values']()){if(_0x4c1222['isMultiRange']||!_0x4c1222['isInContent'])continue;const _0x15831f='formatBlock'==_0x4c1222['type'],_0x248a6c=this['_getAttributeKey'](_0x4c1222),_0x452f6c=_0x248a6c&&this['_isBlockAttribute'](_0x248a6c);if(!_0x15831f&&!_0x452f6c)continue;const _0x15e1cd=_0x4c1222['getFirstRange']();if(_0x15e1cd['start']['parent']!=_0x15e1cd['end']['parent']&&!_0x15e1cd['end']['isAtEnd']){const _0x1842af=_0x182e5f['model']['createPositionAt'](_0x15e1cd['start']['nodeAfter'],'end'),_0x193ec0=_0x182e5f['model']['createRange'](_0x15e1cd['start'],_0x1842af);_0x100c2f['updateMarker'](_0x4c1222['getFirstMarker'](),{'range':_0x193ec0}),_0xd5677f=!0x0;}}return _0xd5677f;}),_0x182e5f['model']['document']['registerPostFixer'](_0x39e37e=>this['_processAttributeChanges'](_0x39e37e)),_0x182e5f['model']['document']['registerPostFixer'](_0xbba8df=>!_0xbba8df['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xbba8df)),_0x182e5f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x182e5f['model']['document']['on']('change:data',(_0x58e104,_0x53a7d6)=>{if(!_0x53a7d6['isLocal']||_0x53a7d6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2c5b7f=_0x182e5f['model']['document']['differ']['getChanges']();if(0x0==_0x2c5b7f['length'])return;const _0x170309=[],_0x45939f=_0x2c5b7f['filter'](_0x16327e=>'attribute'==_0x16327e['type']),_0x339820=_0x2c5b7f['filter'](_0x2e89d2=>'insert'==_0x2e89d2['type']&&'$text'!=_0x2e89d2['name']);for(const _0x2b2e84 of _0x45939f)this['_isRegisteredAttribute'](_0x2b2e84['attributeKey'])&&_0x170309['push']({'key':_0x2b2e84['attributeKey'],'newValue':_0x2b2e84['attributeNewValue'],'oldValue':_0x2b2e84['attributeOldValue'],'range':Pt(_0x2b2e84['range'],_0x182e5f['model'])});for(const _0x494796 of _0x339820){if('rename'!=_0x494796['action']&&'refresh'!=_0x494796['action'])continue;const _0x190b51=Lt(_0x494796['position']['nodeAfter'],_0x182e5f['model']),_0x2bf302=_0x494796['before'];'rename'==_0x494796['action']&&_0x170309['push']({'key':m,'newValue':_0x494796['name'],'oldValue':_0x2bf302['name'],'range':_0x190b51});for(const [_0x37f180,_0x4b72d8]of _0x2bf302['attributes']){if(!this['_isRegisteredAttribute'](_0x37f180))continue;const _0x337d51=_0x494796['attributes']['get'](_0x37f180);_0x4b72d8!==_0x337d51&&_0x170309['push']({'key':_0x37f180,'newValue':_0x337d51,'oldValue':_0x4b72d8,'range':_0x190b51});}for(const [_0x446bd2,_0xc9d7fc]of _0x494796['attributes'])this['_isRegisteredAttribute'](_0x446bd2)&&(_0x2bf302['attributes']['has'](_0x446bd2)||_0x170309['push']({'key':_0x446bd2,'newValue':_0xc9d7fc,'oldValue':null,'range':_0x190b51}));}0x0!=_0x170309['length']&&_0x182e5f['model']['enqueueChange'](_0x53a7d6,_0x269001=>{const _0x152571=_0x2b2341();for(const {range:_0x27366e,key:_0x46a146,oldValue:_0x591683,newValue:_0x476559}of _0x170309)this['markAttributeChange'](_0x27366e,_0x46a146,_0x591683,_0x476559,{'groupId':_0x152571});this['_reduceExistingSuggestions'](_0x269001,_0x170309);});},{'priority':'lowest'}),_0x182e5f['model']['markers']['on']('update:suggestion',(_0x326dd6,_0x45fb52,_0x4673a2)=>{if(null==_0x4673a2){const {id:_0x2f10ce}=this['_splitMarkerName'](_0x45fb52['name']),_0x56c65e=this['_suggestions']['get'](_0x2f10ce);_0x56c65e&&_0x56c65e['addMarkerName'](_0x45fb52['name']);}}),_0x182e5f['model']['document']['on']('change:data',()=>{const _0x4ec54e=Array['from'](_0x182e5f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x174b26=>'suggestion'===this['_splitMarkerName'](_0x174b26['name'])['group']);if(0x0===_0x4ec54e['length'])return;_0x4ec54e['sort']((_0xaa558b,_0x273283)=>{const _0x90607c=_0xaa558b['data']['oldRange'],_0x2fbbfa=_0x273283['data']['oldRange'];return null===_0x90607c&&null===_0x2fbbfa?0x0:null===_0x90607c&&null!==_0x2fbbfa?-0x1:null!==_0x90607c&&null===_0x2fbbfa?0x1:_0x90607c['start']['isBefore'](_0x2fbbfa['start'])?-0x1:0x1;});const _0x40ca0c=new Set(),_0x3caf41=new Set();for(const {name:_0x4d8c77,data:_0x3d2437}of _0x4ec54e){const {id:_0x4afe9d}=this['_splitMarkerName'](_0x4d8c77);if(null===_0x3d2437['oldRange']){const _0x3c52e0=this['_handleNewSuggestionMarker'](_0x4d8c77);_0x3caf41['add'](_0x3c52e0);}else{const _0x30ec08=this['_suggestions']['get'](_0x4afe9d);null!==_0x3d2437['newRange']||_0x30ec08['isInContent']?(_0x40ca0c['add'](_0x30ec08['head']),_0x3caf41['add'](_0x30ec08)):this['_removeSuggestion'](_0x30ec08);}}_0x3caf41['size']>0x0&&this['_refreshSuggestionsChain'](_0x3caf41);for(const _0x549d5e of _0x40ca0c)this['fire']('suggestionChanged',_0x549d5e);}),_0x182e5f['model']['on']('applyOperation',(_0x5e4890,_0xec4617)=>{const _0x2254a9=_0xec4617[0x0];if(!this['_suggestions']['size'])return;if(!_0x2254a9['isDocumentOperation'])return;if(_0x2254a9['batch']['isUndo']||!_0x2254a9['batch']['isLocal'])return;let _0x5b6eca,_0x304ced;switch(_0x2254a9['type']){case'insert':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['position']),_0x304ced=_0x5b6eca['getShiftedBy'](_0x2254a9['howMany']);break;case'split':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['splitPosition']),_0x304ced=_0x182e5f['model']['createPositionAt'](_0x2254a9['moveTargetPosition']);break;case'move':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['targetPosition']),_0x304ced=_0x5b6eca['getShiftedBy'](_0x2254a9['howMany']);break;default:return;}const _0x50cc56=_0x182e5f['model']['createRange'](_0x5b6eca,_0x304ced);_0x182e5f['model']['change'](()=>{for(const {suggestion:_0x50ba4b,meta:_0x8104a}of this['_findSuggestions'](_0x50cc56)){if(_0x50ba4b['isMultiRange'])continue;if('formatInline'==_0x50ba4b['type'])continue;const _0x1cab07=this['_getAttributeKey'](_0x50ba4b);if(_0x1cab07&&this['_isBlockAttribute'](_0x1cab07)&&'split'!=_0x2254a9['type'])continue;const _0x5d1304=_0x50ba4b['data']&&_0x50ba4b['data']['multipleBlocks'];('formatBlock'!=_0x50ba4b['type']||'split'==_0x2254a9['type']&&!_0x5d1304)&&(_0x8104a['containsRangeInObject']||'insertion'==_0x50ba4b['type']&&_0x8104a['isOwn']||_0x50ba4b['getFirstRange']()['containsRange'](_0x50cc56)&&this['_breakSuggestionMarker'](_0x50ba4b,_0x5b6eca,_0x304ced));}});},{'priority':'lowest'}),_0x182e5f['model']['on']('deleteContent',(_0xcc2e18,_0x553efa)=>{const _0x55995d=_0x553efa[0x0],_0x49545f=_0x553efa[0x1];if(_0x49545f&&_0x49545f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x55995d['isCollapsed'])return;const _0x57c5dd=_0x182e5f['model']['schema'],{start:_0x990ba,end:_0x2566f1}=_0x55995d['getFirstRange'](),_0x24b7d7=_0x990ba['nodeAfter']&&_0x57c5dd['isLimit'](_0x990ba['nodeAfter'])?null:_0x57c5dd['getNearestSelectionRange'](_0x990ba,'forward'),_0x4312fe=_0x2566f1['nodeBefore']&&_0x57c5dd['isLimit'](_0x2566f1['nodeBefore'])?null:_0x57c5dd['getNearestSelectionRange'](_0x2566f1,'backward'),_0x369c99=_0x182e5f['model']['createRange'](_0x24b7d7?_0x24b7d7['start']:_0x990ba,_0x4312fe?_0x4312fe['end']:_0x2566f1);_0x182e5f['model']['change'](_0x3069b5=>{this['markDeletion'](_0x369c99);const _0x4e792a=_0x182e5f['model']['schema']['getNearestSelectionRange'](_0x369c99['start']);_0x55995d['is']('documentSelection')?_0x3069b5['setSelection'](_0x4e792a):_0x55995d['setTo'](_0x4e792a);}),_0xcc2e18['stop']();},{'priority':_0x393348['normal']+0xa}),_0x182e5f['model']['on']('insertContent',(_0x46efc4,_0x58ff06)=>{const _0x1268ab=_0x58ff06[_0x58ff06['length']-0x1];_0x1268ab&&_0x1268ab['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x182e5f['model']['change'](()=>{let _0x37d627=_0x182e5f['model']['insertContent'](_0x58ff06[0x0],_0x58ff06[0x1],_0x58ff06[0x2],{'forceDefaultExecution':!0x0});if(!_0x37d627)return;_0x46efc4['return']=_0x37d627['clone']();const _0x4c4311=_0x37d627['end']['nodeBefore'],_0x594976=_0x182e5f['model']['schema'];_0x4c4311&&_0x594976['isBlock'](_0x4c4311)&&!_0x594976['isObject'](_0x4c4311)&&(_0x37d627=_0x182e5f['model']['createRange'](_0x37d627['start'],_0x182e5f['model']['createPositionAt'](_0x4c4311,'end'))),this['markInsertion'](_0x37d627);}),_0x46efc4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x541fdb=new x(_0x182e5f,this['_suggestions']);_0x182e5f['commands']['add']('acceptSuggestion',_0x541fdb),this['enableCommand']('acceptSuggestion');const _0x26ee6a=new R(_0x182e5f,this['_suggestions']);_0x182e5f['commands']['add']('discardSuggestion',_0x26ee6a),this['enableCommand']('discardSuggestion'),_0x182e5f['commands']['add']('acceptAllSuggestions',new E(_0x182e5f,_0x541fdb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x182e5f['commands']['add']('discardAllSuggestions',new E(_0x182e5f,_0x26ee6a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x182e5f['commands']['add']('acceptSelectedSuggestions',new O(_0x182e5f,_0x541fdb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x182e5f['commands']['add']('discardSelectedSuggestions',new O(_0x182e5f,_0x26ee6a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xb4d89d=_0x182e5f['plugins']['get']('CommentsRepository');this['listenTo'](_0xb4d89d,'addComment',(_0x1c2007,{threadId:_0x12f118})=>{const _0x469bd6=this['_suggestions']['get'](_0x12f118);_0x469bd6&&_0x469bd6['commentThread']&&0x1===_0x469bd6['commentThread']['length']&&this['_updateSuggestionData'](_0x12f118,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xb4d89d,'removeComment',(_0x4593bc,{threadId:_0x3d715b})=>{const _0x4bfdcd=this['_suggestions']['get'](_0x3d715b);_0x4bfdcd&&_0x4bfdcd['commentThread']&&!_0x4bfdcd['commentThread']['length']&&this['_updateSuggestionData'](_0x3d715b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3158ec){if(this['_adapter'])throw new _0x10890c('track-changes-adapter-already-set',this);this['_adapter']=_0x3158ec;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a6d74=!0x1,toJSON:_0x25e1fe=!0x1}={}){const _0x4e77c5=[];for(const _0x31cc9c of this['_suggestions']['values']())_0x3a6d74&&!_0x31cc9c['isInContent']||_0x4e77c5['push'](_0x31cc9c);return _0x25e1fe?_0x4e77c5['map'](_0x3dac6e=>_0x3dac6e['toJSON']()):_0x4e77c5;}['getSuggestion'](_0x182fad){const _0x54da2b=this['_suggestions']['get'](_0x182fad);if(!_0x54da2b)throw new _0x10890c('track-changes-suggestion-not-found',this);return _0x54da2b;}['hasSuggestion'](_0x1e421c){return this['_suggestions']['has'](_0x1e421c);}['addSuggestionData'](_0x3ff5bc){const {authorId:_0x313e08,id:_0x4b0db4,attributes:_0x2a295a}=_0x3ff5bc,[_0x3cfeea,_0x82d2a8]=_0x3ff5bc['type']['split'](':'),_0x45ef5d=this['_suggestions']['get'](_0x4b0db4)||this['_createSuggestion'](_0x3cfeea,_0x82d2a8,_0x4b0db4,_0x313e08,_0x2a295a);if(this['_addThreadToSuggestion'](_0x45ef5d),this['_checkSuggestionCorrectness'](_0x45ef5d,_0x3cfeea,_0x82d2a8||null,_0x313e08),_0x45ef5d['createdAt']=_0x3ff5bc['createdAt'],_0x45ef5d['_isDataLoaded']=!0x0,_0x2a295a&&_0x2a295a['@external']){const _0x19a57f=_0x2a295a['@external'],_0x1f1228=this['_getExternalAuthor'](_0x19a57f['authorName']);_0x45ef5d['authoredAt']=_0x19a57f['createdAt'],_0x45ef5d['author']=_0x1f1228,_0x45ef5d['isExternal']=!0x0;}else _0x45ef5d['authoredAt']=_0x3ff5bc['createdAt'];switch(_0x3ff5bc['data']&&(_0x45ef5d['data']=_0x3ff5bc['data']),_0x3ff5bc['attributes']&&(_0x45ef5d['attributes']=_0x3ff5bc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45ef5d['_saved']=!0x0),this['_suggestionState']['get'](_0x45ef5d)){case'notReady':this['_suggestionState']['set'](_0x45ef5d,'dataReady');break;case'markerReady':_0x45ef5d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45ef5d])),this['_refreshSuggestionsChain'](new Set([_0x45ef5d])),this['_suggestionState']['set'](_0x45ef5d,'ready'),this['fire']('suggestionLoaded',_0x45ef5d)):this['_suggestionState']['set'](_0x45ef5d,'removed');}return _0x45ef5d;}['acceptSuggestion'](_0x1c4e1c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b082a of _0x1c4e1c['getAllAdjacentSuggestions']())_0x3b082a['accept']();});});}['discardSuggestion'](_0x583a03){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4ac1f0 of _0x583a03['getAllAdjacentSuggestions']())_0x4ac1f0['discard']();});});}['enableCommand'](_0x3b9ca1,_0x217da6){const _0x40a8c9=this['editor']['commands']['get'](_0x3b9ca1);if(!_0x40a8c9)throw new _0x10890c('track-changes-command-not-found',this,{'commandName':_0x3b9ca1});if(this['_enabledCommands']['has'](_0x40a8c9))throw new _0x10890c('track-changes-enable-command-twice',this,{'commandName':_0x3b9ca1});this['_enabledCommands']['add'](_0x40a8c9),_0x217da6&&_0x40a8c9['on']('execute',(_0x43ef70,_0x27094d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x27094d['length']>0x0&&_0x27094d[_0x27094d['length']-0x1]&&_0x27094d[_0x27094d['length']-0x1]['forceDefaultExecution']?_0x27094d['pop']():(_0x43ef70['return']=_0x217da6((..._0x52b423)=>_0x40a8c9['execute'](..._0x52b423,{'forceDefaultExecution':!0x0}),..._0x27094d),_0x43ef70['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a8af8){let _0x366142,_0x41e82e;const _0x32eb7e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x366142=_0x5a8af8();}catch(_0xc95b53){_0x41e82e=_0xc95b53;}return _0x32eb7e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41e82e&&_0x10890c['rethrowUnexpectedError'](_0x41e82e,this),_0x366142;}['markInsertion'](_0x2ff2e2,_0x2c9095=null,_0x3fbd60={}){if(_0x2ff2e2['isCollapsed'])return null;const _0x29d9e8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3ed98f,meta:_0x209985}of this['_findSuggestions'](_0x2ff2e2,'insertion'))if(_0x209985['isOwn']){if(!_0x209985['isNextTo']){if(_0x209985['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3ed98f,_0x3fbd60))continue;return _0x3ed98f;}if(qt(_0x3ed98f,_0x3fbd60))return _0x3ed98f;this['_breakSuggestionMarker'](_0x3ed98f,_0x2ff2e2['start'],_0x2ff2e2['end']);break;}if(_0x2c9095==_0x3ed98f['subType']&&qt(_0x3ed98f,_0x3fbd60)){const _0x404a17=_0x3ed98f['getFirstRange']();return _0x404a17['start']['isEqual'](_0x2ff2e2['end'])?this['_setSuggestionRange'](_0x3ed98f,this['_model']['createRange'](_0x2ff2e2['start'],_0x404a17['end'])):this['_setSuggestionRange'](_0x3ed98f,this['_model']['createRange'](_0x404a17['start'],_0x2ff2e2['end'])),_0x3ed98f;}}const _0x4daeb4=_0x2b2341(),_0x2d72ea=_0x29d9e8['id'],_0x1c8db2=_0x2c9095?'insertion:'+_0x2c9095:'insertion',_0x22c7c0=this['_setSuggestionData']({'id':_0x4daeb4,'type':_0x1c8db2,'createdAt':new Date(),'authorId':_0x2d72ea,'attributes':_0x3fbd60});return this['_addSuggestionMarker'](_0x1c8db2,_0x4daeb4,_0x2d72ea,_0x2ff2e2),_0x22c7c0;}['markMultiRangeInsertion'](_0x247394,_0xd8cbab='multi',_0x521278={}){const _0x2111e7=this['editor']['plugins']['get']('Users')['me'],_0xc3b643=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd8cbab,'join');for(const _0x315ef8 of this['getSuggestions']())if(_0x315ef8['author']['id']==_0x2111e7['id']&&'insertion'==_0x315ef8['type']&&_0x315ef8['subType']==_0xd8cbab&&qt(_0x315ef8,_0x521278)&&(_0xc3b643(_0x315ef8['getRanges'](),_0x247394)||_0xc3b643(_0x247394,_0x315ef8['getRanges']()))){for(const _0x3cc8b1 of _0x247394)_0x315ef8['addRange'](_0x3cc8b1);return _0x315ef8;}for(const {suggestion:_0x3b953b,meta:_0x5a55a0}of this['_findSuggestions'](_0x247394,'insertion')){if(!_0x5a55a0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a55a0['containsRangeInObject'])continue;if(!qt(_0x3b953b,_0x521278))continue;let _0x4a8104=!0x0;for(const _0x221484 of _0x3b953b['getRanges']())for(const _0x5784df of _0x247394)if(!_0x221484['containsRange'](_0x5784df)){_0x4a8104=!0x1;break;}if(_0x4a8104)return _0x3b953b;}const _0xd796db=_0x2b2341(),_0x332aca=_0x2111e7['id'],_0x3ee73b='insertion:'+_0xd8cbab,_0x47dae2=this['_setSuggestionData']({'id':_0xd796db,'type':_0x3ee73b,'createdAt':new Date(),'authorId':_0x332aca,'attributes':_0x521278});for(const _0x272d31 of _0x247394)this['_addSuggestionMarker'](_0x3ee73b,_0xd796db,_0x332aca,_0x272d31,u['getMultiRangeId']());return _0x47dae2;}['markInlineFormat'](_0x56e189,_0x1cb670,_0x421f8c=null,_0x72ea94={}){if(_0x421f8c=_0x421f8c||Gt(_0x1cb670),_0x56e189['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x151b0c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x421f8c,'accept');return this['forceDefaultExecution'](()=>_0x151b0c([_0x56e189],_0x1cb670,_0x72ea94)),null;}const _0x25a89c=this['editor']['plugins']['get']('Users')['me'],_0x2f4030=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x331ec2,meta:_0x41968e}of this['_findSuggestions'](_0x56e189,'insertion'))_0x41968e['isOwn']&&!_0x41968e['isInsideObject']&&_0x2f4030['push'](..._0x331ec2['getRanges']());}const _0x1ed96c=function(_0x1a1ac5,_0xc12ed6){const _0x1b5f98=[];for(const _0x3137ee of _0xc12ed6){const _0x3f45f6=_0x1a1ac5['getIntersection'](_0x3137ee);_0x3f45f6&&_0x1b5f98['push'](_0x3f45f6);}return _0x1b5f98;}(_0x56e189,_0x2f4030),_0x110e21=function(_0x376d66,_0x170fd6){const _0x39c4f9=[_0x376d66];for(const _0x3f8066 of _0x170fd6){let _0x573825=0x0;for(;_0x573825<_0x39c4f9['length'];){const _0xbb8a32=_0x39c4f9[_0x573825]['getDifference'](_0x3f8066);_0x39c4f9['splice'](_0x573825,0x1,..._0xbb8a32),_0x573825+=_0xbb8a32['length'];}}return _0x39c4f9;}(_0x56e189,_0x2f4030);_0x1ed96c['length']&&this['_model']['change'](()=>{for(const _0x54a792 of _0x1ed96c){const _0x30acf5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x421f8c,'accept');this['forceDefaultExecution'](()=>_0x30acf5([_0x54a792],_0x1cb670,_0x72ea94));}});for(const _0x34a0c9 of _0x110e21){let _0x541f52=null,_0x761d1f=_0x34a0c9['start'],_0x3a6905=_0x34a0c9['end'];for(const {suggestion:_0x26abdf,meta:_0x32873e}of this['_findSuggestions'](_0x34a0c9,'formatInline')){if(!_0x32873e['isOwn'])continue;if(_0x26abdf['subType']!=_0x421f8c)continue;if(!qt(_0x26abdf,_0x72ea94))continue;const _0x48af80=_0x26abdf['getFirstRange']();if(_0x48af80['containsRange'](_0x34a0c9,!0x0))return null;_0x761d1f=_0x761d1f['isBefore'](_0x48af80['start'])?_0x761d1f:_0x48af80['start'],_0x3a6905=_0x3a6905['isAfter'](_0x48af80['end'])?_0x3a6905:_0x48af80['end'],_0x541f52?_0x48af80['start']['isBefore'](_0x541f52['getFirstRange']()['start'])?(_0x541f52['removeMarkers'](),_0x541f52=_0x26abdf):_0x26abdf['removeMarkers']():_0x541f52=_0x26abdf;}const _0x16060=this['_model']['createRange'](_0x761d1f,_0x3a6905);if(_0x541f52)this['_setSuggestionRange'](_0x541f52,_0x16060);else{const _0x5df40f=_0x2b2341(),_0x2ca586=_0x25a89c['id'];this['_setSuggestionData']({'id':_0x5df40f,'type':'formatInline:'+_0x421f8c,'data':_0x1cb670,'createdAt':new Date(),'authorId':_0x2ca586,'attributes':_0x72ea94}),this['_addSuggestionMarker']('formatInline:'+_0x421f8c,_0x5df40f,_0x2ca586,_0x16060);}}return null;}['markBlockFormat'](_0x5bd88f,_0x6829d5,_0x3ae35d=[],_0x147a86=null,_0x193eff={}){_0x6829d5['formatGroupId']||(_0x6829d5['formatGroupId']=_0x6829d5['commandName']),_0x6829d5['multipleBlocks']=_0x5bd88f['is']('range'),_0x147a86=_0x147a86||Gt(_0x6829d5);const _0x1a2c56=_0x3ae35d['map'](_0x9f0f90=>Lt(_0x9f0f90,this['_model'])),_0x20c579=_0x5bd88f['is']('range')?_0x5bd88f:Lt(_0x5bd88f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1be793=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a86,'accept');return this['forceDefaultExecution'](()=>_0x1be793([_0x20c579],_0x6829d5,_0x193eff)),null;}_0x1a2c56['push'](_0x20c579);let _0x254521=!0x0;for(const _0x1067b6 of _0x1a2c56)if(!this['_rangeIsInLocalUserInsertion'](_0x1067b6)){_0x254521=!0x1;break;}if(_0x254521&&'always'!==this['_trackFormatChanges']){const _0x29d3da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a86,'accept');return this['forceDefaultExecution'](()=>_0x29d3da([_0x20c579],_0x6829d5,_0x193eff)),null;}let _0x10a83b=null,_0x10b417=_0x20c579['start'],_0x438287=_0x20c579['end'];for(const {suggestion:_0x327274,meta:_0x915cab}of this['_findSuggestions'](_0x20c579,'formatBlock')){if(!_0x915cab['isOwn'])continue;if(_0x915cab['isNextTo']||_0x915cab['containsRangeInObject']||_0x915cab['isInsideObject'])continue;if(_0x327274['data']['formatGroupId']!=_0x6829d5['formatGroupId'])continue;if(!qt(_0x327274,_0x193eff))continue;const _0x52cb40=_0x327274['getFirstRange']();if(_0x327274['subType']==_0x147a86){if(_0x52cb40['containsRange'](_0x20c579,!0x0))return null;_0x10b417=_0x10b417['isBefore'](_0x52cb40['start'])?_0x10b417:_0x52cb40['start'],_0x438287=_0x438287['isAfter'](_0x52cb40['end'])?_0x438287:_0x52cb40['end'],_0x10a83b?_0x52cb40['start']['isBefore'](_0x10a83b['getFirstRange']()['start'])?(_0x10a83b['removeMarkers'](),_0x10a83b=_0x327274):_0x327274['removeMarkers']():_0x10a83b=_0x327274;}else{const _0x1bdddc=_0x20c579['getIntersection'](_0x52cb40);this['_cutOutSuggestionMarker'](_0x327274,_0x1bdddc);}}const _0x25afe1=this['editor']['plugins']['get']('Users')['me'],_0x509edb=_0x2b2341(),_0x281e31=_0x25afe1['id'];if(_0x10a83b)return this['_setSuggestionRange'](_0x10a83b,this['_model']['createRange'](_0x10b417,_0x438287)),_0x10a83b;{const _0x53d9d5=this['_setSuggestionData']({'id':_0x509edb,'type':'formatBlock:'+_0x147a86,'data':_0x6829d5,'createdAt':new Date(),'authorId':_0x281e31,'attributes':_0x193eff});return this['_addSuggestionMarker']('formatBlock:'+_0x147a86,_0x509edb,_0x281e31,this['_model']['createRange'](_0x10b417,_0x438287)),_0x53d9d5;}}['markMultiRangeBlockFormat'](_0x310126,_0x59aac7,_0x2c2b6e=[],_0x4d9726=null,_0x179e69={}){_0x59aac7['formatGroupId']||(_0x59aac7['formatGroupId']=_0x59aac7['commandName']);const _0x5645f4=_0x310126[0x0];_0x59aac7['multipleBlocks']=_0x5645f4['is']('range'),_0x4d9726=_0x4d9726||Gt(_0x59aac7);const _0x28cce5=_0x2c2b6e['map'](_0x2e83a8=>Lt(_0x2e83a8,this['_model'])),_0x55ef38=_0x5645f4['is']('range')?_0x310126:_0x310126['map'](_0x80aa97=>Lt(_0x80aa97,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1ae9ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'accept');return this['forceDefaultExecution'](()=>_0x1ae9ca(_0x55ef38,_0x59aac7,_0x179e69)),null;}_0x28cce5['push'](..._0x55ef38);let _0x23629f=!0x0;for(const _0x15e4fd of _0x28cce5)if(!this['_rangeIsInLocalUserInsertion'](_0x15e4fd)){_0x23629f=!0x1;break;}if(_0x23629f&&'always'!==this['_trackFormatChanges']){const _0x3bb221=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'accept');return this['forceDefaultExecution'](()=>_0x3bb221(_0x55ef38,_0x59aac7,_0x179e69)),null;}const _0x49f41d=this['editor']['plugins']['get']('Users')['me'];for(const _0x509885 of this['getSuggestions']()){if(_0x509885['author']['id']!=_0x49f41d['id'])continue;if('formatBlock'!=_0x509885['type']||_0x509885['data']['formatGroupId']!=_0x59aac7['formatGroupId'])continue;if(!qt(_0x509885,_0x179e69))continue;const _0x504164=_0x509885['subType']==_0x4d9726;for(let _0x4c6653=0x0;_0x4c6653<_0x55ef38['length'];_0x4c6653++){const _0x103134=_0x55ef38[_0x4c6653];for(const _0x468178 of _0x509885['getMarkers']()){const _0x7e6339=_0x468178['getRange']();if(_0x103134['isEqual'](_0x7e6339)){_0x504164?(_0x55ef38['splice'](_0x4c6653,0x1),_0x4c6653--):_0x509885['removeMarker'](_0x468178['name']);break;}}}}if(0x0==_0x55ef38['length'])return null;const _0x1a6bd4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'join');for(const _0x327c5e of this['getSuggestions']())if(_0x327c5e['author']['id']==_0x49f41d['id']&&'formatBlock'==_0x327c5e['type']&&_0x327c5e['data']['formatGroupId']==_0x59aac7['formatGroupId']&&_0x327c5e['subType']==_0x4d9726&&qt(_0x327c5e,_0x179e69)&&(_0x1a6bd4(_0x327c5e['getRanges'](),_0x55ef38)||_0x1a6bd4(_0x55ef38,_0x327c5e['getRanges']()))){for(const _0x22ccab of _0x55ef38)_0x327c5e['addRange'](_0x22ccab);return _0x327c5e;}const _0x1d6b31=_0x2b2341(),_0x2704dc=_0x49f41d['id'],_0x4e3ea7='formatBlock:'+_0x4d9726,_0x10872c=this['_setSuggestionData']({'id':_0x1d6b31,'type':_0x4e3ea7,'data':_0x59aac7,'createdAt':new Date(),'authorId':_0x2704dc,'attributes':_0x179e69});for(const _0x4c6375 of _0x55ef38)this['_addSuggestionMarker'](_0x4e3ea7,_0x1d6b31,_0x2704dc,_0x4c6375,u['getMultiRangeId']());return _0x10872c;}['markDeletion'](_0x44f638,_0xaa6830=null,_0x286775={}){if(_0x44f638['isCollapsed'])return null;const _0x3da7c9=this['editor']['plugins']['get']('Users')['me'],_0x3581df=new _0x425d25(_0x44f638['start'],_0x44f638['end']);for(const {suggestion:_0x15159f,meta:_0x36b8a2}of this['_findSuggestions'](_0x3581df,'insertion'))if(_0x36b8a2['isOwn']&&!_0x36b8a2['isNextTo']){if(_0x15159f['isMultiRange']){const _0x711e19=_0x15159f['getRanges']()['filter'](_0x5cc4ba=>'$graveyard'!=_0x5cc4ba['root']['rootName']);_0x711e19['every'](_0xa8420d=>_0x3581df['containsRange'](_0xa8420d,!0x0))&&_0x15159f['discard']();if(_0x711e19['some'](_0x3e3ec6=>_0x3e3ec6['containsRange'](_0x3581df,!0x0))){const _0x1e442f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaa6830,'accept');return this['forceDefaultExecution'](()=>_0x1e442f([_0x3581df],null,_0x286775)),null;}}else{const _0x3d25b8=_0x3581df['getIntersection'](_0x15159f['getFirstRange']());null!==_0x3d25b8&&_0x15159f['_onDiscard']([_0x3d25b8],null,_0x286775);}}if(_0x3581df['detach'](),_0x3581df['isCollapsed']||'$graveyard'==_0x3581df['root']['rootName'])return null;let _0x4cae72=null,_0xaf7f79=_0x3581df['start'],_0x38c507=_0x3581df['end'];const _0x56dd68=this['_findSuggestions'](_0x3581df,'deletion');for(const {suggestion:_0x16a89d,meta:_0x2c1e24}of _0x56dd68){const _0x4714ee=this['_model']['createRange'](_0xaf7f79,_0x38c507);if(_0x2c1e24['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c1e24['containsRangeInObject']&&!_0x2c1e24['isInsideObject'])){if(_0x16a89d['isMultiRange']){if(!qt(_0x16a89d,_0x286775))continue;let _0x316718=!0x0;for(const _0x55fb5d of _0x16a89d['getRanges']()){if(_0x55fb5d['containsRange'](_0x4714ee,!0x0))return _0x16a89d;_0x4714ee['containsRange'](_0x55fb5d)||(_0x316718=!0x1);}_0x316718&&_0x16a89d['discard']();}else{const _0x47b4f2=_0x16a89d['getFirstRange']();if(_0x47b4f2['containsRange'](_0x4714ee,!0x0))return _0x16a89d;if(!qt(_0x16a89d,_0x286775)){_0x4714ee['containsRange'](_0x47b4f2)?_0x16a89d['removeMarkers']():_0x47b4f2['containsPosition'](_0xaf7f79)?_0xaf7f79=_0x47b4f2['end']:_0x47b4f2['containsPosition'](_0x38c507)&&(_0x38c507=_0x47b4f2['start']);continue;}_0xaf7f79=_0xaf7f79['isBefore'](_0x47b4f2['start'])?_0xaf7f79:_0x47b4f2['start'],_0x38c507=_0x38c507['isAfter'](_0x47b4f2['end'])?_0x38c507:_0x47b4f2['end'],_0x286775=Object['assign']({},_0x16a89d['attributes']),_0x4cae72?_0x47b4f2['start']['isBefore'](_0x4cae72['getFirstRange']()['start'])?(_0x4cae72['removeMarkers'](),_0x4cae72=_0x16a89d):_0x16a89d['removeMarkers']():_0x4cae72=_0x16a89d;}}}if(_0x4cae72)return this['_setSuggestionRange'](_0x4cae72,this['_model']['createRange'](_0xaf7f79,_0x38c507)),_0x4cae72;{const _0x499fac=_0x2b2341(),_0x2ac170=this['_model']['createRange'](_0xaf7f79,_0x38c507),_0x2e4260=_0x3da7c9['id'],_0x1a0138=_0xaa6830?'deletion:'+_0xaa6830:'deletion',_0x411d4a=this['_setSuggestionData']({'id':_0x499fac,'type':_0x1a0138,'createdAt':new Date(),'authorId':_0x2e4260,'attributes':_0x286775});return this['_addSuggestionMarker'](_0x1a0138,_0x499fac,_0x2e4260,_0x2ac170),_0x411d4a;}}['markMultiRangeDeletion'](_0xefbe3c,_0x1189a5='multi',_0x258e12={}){const _0x4e7671=this['editor']['plugins']['get']('Users')['me'],_0x5eda97=_0xefbe3c['map'](_0x4ef7e5=>new _0x425d25(_0x4ef7e5['start'],_0x4ef7e5['end'])),_0x213bd8=new Set();for(const {suggestion:_0x202645,meta:_0x328d03}of this['_findSuggestions'](_0x5eda97,'insertion'))_0x328d03['isOwn']&&!_0x328d03['isNextTo']&&_0x213bd8['add'](_0x202645);for(const _0x2660e5 of _0x213bd8)if(_0x2660e5['isMultiRange']){const _0x34abc7=_0x2660e5['getRanges']();(!_0x2660e5['attributes']||!_0x2660e5['attributes']['skipNestingCheck'])&&(_0x34abc7['every'](_0x361948=>_0x5eda97['some'](_0x39e9a4=>_0x39e9a4['containsRange'](_0x361948,!0x0)))&&_0x2660e5['discard']());if(_0x5eda97['every'](_0x12ac89=>_0x34abc7['some'](_0x2701f8=>_0x2701f8['containsRange'](_0x12ac89,!0x0)))){const _0x366512=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'accept');return this['forceDefaultExecution'](()=>_0x366512(_0xefbe3c,null,_0x258e12)),null;}}else{const _0x1d7d78=_0x2660e5['getFirstRange']();_0x5eda97['some'](_0xf41b0d=>_0xf41b0d['containsRange'](_0x1d7d78,!0x0))&&_0x2660e5['discard']();if(_0x5eda97['every'](_0x35404f=>_0x1d7d78['containsRange'](_0x35404f,!0x0))){const _0x5d9aab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'accept');return this['forceDefaultExecution'](()=>_0x5d9aab(_0x5eda97,null,_0x258e12)),null;}}const _0x12d86=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'join');let _0x3e4043=null;for(const _0x5881e2 of this['getSuggestions']())if(_0x5881e2['author']['id']==_0x4e7671['id']&&_0x5881e2['isInContent']&&'deletion'==_0x5881e2['type']&&_0x5881e2['subType']==_0x1189a5&&qt(_0x5881e2,_0x258e12)&&(_0x12d86(_0x5881e2['getRanges'](),_0x5eda97)||_0x12d86(_0x5eda97,_0x5881e2['getRanges']()))){if(_0x3e4043){if(_0x5881e2['commentThread']&&_0x5881e2['commentThread']['length'])continue;for(const _0x176cbd of _0x5881e2['getRanges']())_0x3e4043['isIntersectingWithRange'](_0x176cbd)||_0x3e4043['addRange'](_0x176cbd);_0x5881e2['removeMarkers']();}else{_0x3e4043=_0x5881e2;for(const _0x17ba2b of _0x5eda97)_0x5881e2['isIntersectingWithRange'](_0x17ba2b)||_0x5881e2['addRange'](_0x17ba2b);}}if(_0x3e4043)return _0x3e4043;_0x213bd8['clear']();for(const {suggestion:_0x186f2c,meta:_0x6f4728}of this['_findSuggestions'](_0x5eda97,'deletion'))_0x6f4728['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6f4728['containsRangeInObject']&&!_0x6f4728['isInsideObject'])&&qt(_0x186f2c,_0x258e12)&&_0x213bd8['add'](_0x186f2c);for(const _0x294118 of _0x213bd8){const _0x302471=_0x294118['getRanges']();if(!_0x258e12||!_0x258e12['skipNestingCheck']){if(_0x5eda97['every'](_0x21e502=>_0x302471['some'](_0x5a9d02=>_0x5a9d02['containsRange'](_0x21e502,!0x0))))return _0x294118;}(!_0x294118['attributes']||!_0x294118['attributes']['skipNestingCheck'])&&(_0x302471['every'](_0x4caf5d=>_0x5eda97['some'](_0x78241e=>_0x78241e['containsRange'](_0x4caf5d,!0x0)))&&_0x294118['discard']());}const _0x21b14a=_0x2b2341(),_0x28bd2b=_0x4e7671['id'],_0x732daf='deletion:'+_0x1189a5,_0x175ea5=this['_setSuggestionData']({'id':_0x21b14a,'type':_0x732daf,'createdAt':new Date(),'authorId':_0x28bd2b,'attributes':_0x258e12});for(const _0x45dffa of _0x5eda97)_0x45dffa['detach'](),_0x45dffa['isCollapsed']||'$graveyard'==_0x45dffa['root']['rootName']||this['_addSuggestionMarker'](_0x732daf,_0x21b14a,_0x28bd2b,_0x45dffa,u['getMultiRangeId']());return _0x175ea5;}['markAttributeChange'](_0x12be07,_0x3e766f,_0x43f31d,_0x5c6928,_0x3d109c){if(_0x12be07['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f990c=this['editor']['plugins']['get']('Users')['me']['id'],_0x10512c=Array['from'](this['_suggestions']['values']())['filter'](_0x2dfd24=>'attribute'==_0x2dfd24['type']&&_0x2dfd24['data']['key']==_0x3e766f&&_0x2dfd24['isIntersectingWithRange'](_0x12be07));if('default'===this['_trackFormatChanges']){const _0x100939=this['_findSuggestions'](_0x12be07,'insertion')['filter'](({meta:_0x38e0bb})=>_0x38e0bb['isOwn']&&!_0x38e0bb['isInsideObject']&&!_0x38e0bb['isNextTo'])['map'](({suggestion:_0x6ed3b6})=>_0x6ed3b6);_0x10512c['unshift'](..._0x100939);}const _0x45a722=new Map([[_0x12be07,_0x43f31d]]);for(const _0x38f414 of _0x10512c){const _0x5012ab='attribute'==_0x38f414['type']?_0x38f414['data']['oldValue']:void 0x0,_0x4af047=_0x38f414['getFirstRange'](),_0x30744d=Array['from'](_0x45a722['keys']())['find'](_0x45067e=>_0x45067e['isIntersecting'](_0x4af047));if(!_0x30744d)continue;const _0x2f55f1=_0x30744d['getDifference'](_0x4af047);this['_isBlockAttribute'](_0x3e766f)&&'insertion'==_0x38f414['type']&&0x0!=_0x2f55f1['length']||(_0x45a722['delete'](_0x30744d),_0x2f55f1['forEach'](_0x4bdeeb=>{_0x45a722['set'](_0x4bdeeb,_0x43f31d);}),'insertion'!=_0x38f414['type']&&_0x5012ab!=_0x5c6928&&_0x45a722['set'](_0x30744d['getIntersection'](_0x4af047),_0x5012ab));}const _0x4ee400=[];for(const [_0x4197e3,_0x5a6a32]of _0x45a722){const _0x499cab=_0x2b2341(),_0x1f4bf1={'key':_0x3e766f,'oldValue':_0x5a6a32,'newValue':_0x5c6928};_0x3e766f['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':_0x3e766f});const _0x18bfcf=('attribute:'+(_0x3e766f+'|'+Gt({'newValue':_0x5c6928})))['substring'](0x0,0x3c),_0x7d86fd=this['_setSuggestionData']({'id':_0x499cab,'type':_0x18bfcf,'data':_0x1f4bf1,'createdAt':new Date(),'authorId':_0x4f990c,'attributes':_0x3d109c});_0x4ee400['push'](_0x7d86fd),this['_addSuggestionMarker'](_0x18bfcf,_0x499cab,_0x4f990c,_0x4197e3);}return _0x4ee400;}['enableDefaultAttributesIntegration'](_0x4011e3){this['enableCommand'](_0x4011e3,(_0x1a7b7b,..._0x516862)=>{this['_recordAttributeChanges'](()=>{_0x1a7b7b(..._0x516862);});});}['registerBlockAttribute'](_0x188afd){this['_blockAttributeKeys']['add'](_0x188afd);}['registerInlineAttribute'](_0x11b33b){this['_inlineAttributeKeys']['add'](_0x11b33b);}['_getAttributeKey'](_0x5b304f){return'attribute'==_0x5b304f['type']?_0x5b304f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2525bf,_0x38514d){const _0x2387ed=_0x2525bf['getFirstMarker']();this['_model']['change'](_0x4f0603=>{_0x4f0603['updateMarker'](_0x2387ed,{'range':_0x38514d});});}['_addThreadToSuggestion'](_0xbe288e){const _0x5c4f25=_0xbe288e['id'],_0x2f0005=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c4f25)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f0005,'threadId':_0x5c4f25,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37a218=this['_commentsRepository']['getCommentThread'](_0x5c4f25);_0x37a218['unbind']('isRemovable'),_0x37a218['isRemovable']=!0x1,_0xbe288e['commentThread']=_0x37a218;}['_checkSuggestionCorrectness'](_0x2631ca,_0xcdfe5a,_0x3caf42,_0x166558){if(_0x2631ca['type']!=_0xcdfe5a||_0x2631ca['subType']!=_0x3caf42||_0x2631ca['creator']['id']!=_0x166558)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10890c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16c7e5,_0x30da28){const _0x53428f=_0x16c7e5['getFirstRange']();if(_0x30da28['isEqual'](_0x53428f))_0x16c7e5['removeMarkers']();else{if(_0x53428f['containsRange'](_0x30da28)){const _0x340e91=this['_model']['createPositionAt'](_0x30da28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0x53428f['start'],_0x340e91));const _0x27e6d3=_0x2b2341(),_0x5ce054=_0x16c7e5['creator']['id'],_0x1b05fc=_0x16c7e5['type']+':'+_0x16c7e5['subType'];this['_setSuggestionData']({'id':_0x27e6d3,'type':_0x1b05fc,'createdAt':new Date(),'authorId':_0x5ce054,'data':_0x16c7e5['data'],'attributes':_0x16c7e5['attributes']});const _0x1ea755=this['_model']['createPositionAt'](_0x30da28['end']['parent'],'after'),_0x113182=this['_model']['createRange'](_0x1ea755,_0x53428f['end']);this['_addSuggestionMarker'](_0x1b05fc,_0x27e6d3,_0x5ce054,_0x113182);}else{if(_0x53428f['containsPosition'](_0x30da28['start'])){const _0x1bd4b9=this['_model']['createPositionAt'](_0x30da28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0x53428f['start'],_0x1bd4b9));}else{const _0xc43859=this['_model']['createPositionAt'](_0x30da28['end']['parent'],'after');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0xc43859,_0x53428f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x276f13){for(const {suggestion:_0xe17967,meta:_0x2c966c}of this['_findSuggestions'](_0x276f13,'insertion')){if(!_0x2c966c['isOwn'])continue;const _0x4dc017=_0xe17967['getRanges']();for(const _0x2f3377 of _0x4dc017)if(!_0x276f13['getDifference'](_0x2f3377)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3cd168){const _0x463349=this['editor']['plugins']['get']('Users')['getUser'](_0x3cd168);if(!_0x463349)throw new _0x10890c('track-changes-user-not-found',this);return _0x463349;}['_getExternalAuthor'](_0x273e53){const _0x5f2f6a=this['editor']['plugins']['get']('Users'),_0x54cd41=_0x133608('external:'+_0x273e53),_0x1ccaab=_0x5f2f6a['getUser'](_0x54cd41);return _0x1ccaab||_0x5f2f6a['addUser']({'id':_0x54cd41,'name':_0x273e53});}['_createSuggestion'](_0x381dab,_0x215256,_0xed4aec,_0x544221,_0x13d82c){const _0x349f3c=this['_getAuthorFromId'](_0x544221),_0x42df51=this['_suggestionFactory']['buildSuggestion'](_0x381dab,_0x215256,_0xed4aec,_0x349f3c,_0x13d82c,_0x54732d=>{this['_updateSuggestionData'](_0xed4aec,{'attributes':_0x54732d});const _0x30fd45=this['getSuggestion'](_0xed4aec);this['_joinWithAdjacentSuggestions'](new Set([_0x30fd45])),this['_refreshSuggestionsChain'](new Set([_0x30fd45]));});return this['listenTo'](_0x42df51,'accept',()=>{this['_updateSuggestionData'](_0xed4aec,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x42df51,'discard',()=>{this['_updateSuggestionData'](_0xed4aec,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xed4aec,_0x42df51),this['_suggestionState']['set'](_0x42df51,'notReady'),_0x42df51;}['_splitMarkerName'](_0xd9ddd0){const _0x960ad6=_0xd9ddd0['split'](':');return{'group':_0x960ad6[0x0],'type':_0x960ad6[0x1],'subType':_0x960ad6['length']>=0x5?_0x960ad6[0x2]:null,'id':_0x960ad6['length']<0x5?_0x960ad6[0x2]:_0x960ad6[0x3],'authorId':_0x960ad6['length']<0x5?_0x960ad6[0x3]:_0x960ad6[0x4],'markerCount':0x6==_0x960ad6['length']?_0x960ad6[0x5]:null};}['_breakSuggestionMarker'](_0x15d627,_0x4ca61f,_0x48590f){const _0xd9588f=_0x15d627['getFirstRange'](),_0x2fa6de=_0xd9588f['start'],_0x4f29a5=_0xd9588f['end'];this['_setSuggestionRange'](_0x15d627,this['_model']['createRange'](_0x2fa6de,_0x4ca61f));const _0x385f31=_0x2b2341(),_0x5d4f99=_0x15d627['creator']['id'],_0x31f637=_0x15d627['type']+(_0x15d627['subType']?':'+_0x15d627['subType']:'');this['_setSuggestionData']({'id':_0x385f31,'type':_0x31f637,'createdAt':new Date(),'authorId':_0x5d4f99,'originalSuggestionId':_0x15d627['id'],'attributes':_0x15d627['attributes'],'data':_0x15d627['data']});const _0x3a3cbc=this['_getAttributeKey'](_0x15d627);('formatBlock'==_0x15d627['type']||_0x3a3cbc&&this['_isBlockAttribute'](_0x3a3cbc))&&(_0x48590f=this['_model']['createPositionBefore'](_0x48590f['parent'])),this['_addSuggestionMarker'](_0x31f637,_0x385f31,_0x5d4f99,this['_model']['createRange'](_0x48590f,_0x4f29a5));}['_findSuggestions'](_0x1f6232,_0x3f6289=null){const _0x4d4b9f=[],_0x752d15=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1f6232)||(_0x1f6232=[_0x1f6232]);for(const _0x300960 of this['getSuggestions']()){if(!_0x300960['isInContent'])continue;if(_0x3f6289&&_0x300960['type']!=_0x3f6289)continue;let _0x3087c1=!0x1;for(const _0x3323a1 of _0x300960['getRanges']()){for(const _0x4f169c of _0x1f6232){const _0x4ce42=_0x4f169c['start']['isEqual'](_0x3323a1['end'])||_0x4f169c['end']['isEqual'](_0x3323a1['start']);if(_0x4ce42||_0x4f169c['getIntersection'](_0x3323a1)){const _0x54c756=_0x4f169c['containsRange'](_0x3323a1)&&Ot(this['_model']['schema'],_0x3323a1['start'],_0x4f169c),_0xf31a2b=_0x3323a1['containsRange'](_0x4f169c)&&Ot(this['_model']['schema'],_0x4f169c['start'],_0x3323a1);_0x4d4b9f['push']({'suggestion':_0x300960,'meta':{'isOwn':_0x752d15==_0x300960['author'],'isNextTo':_0x4ce42,'isInsideObject':_0x54c756,'containsRangeInObject':_0xf31a2b}}),_0x3087c1=!0x0;break;}}if(_0x3087c1)break;}}return _0x4d4b9f;}['_addSuggestionMarker'](_0x28f059,_0x447fe8,_0x4f1d73,_0x4da071,_0x1b17a5){this['_model']['change'](_0x300e3c=>{let _0x4c78a6='suggestion:'+_0x28f059+':'+_0x447fe8+':'+_0x4f1d73;_0x1b17a5&&(_0x4c78a6=_0x4c78a6+':'+_0x1b17a5),_0x300e3c['addMarker'](_0x4c78a6,{'range':_0x4da071,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2d9385){const _0x5983b8=_0x2d9385['previous'],_0x5833a8=_0x2d9385['next'];_0x2d9385['previous']=null,_0x2d9385['next']=null,null!=_0x5983b8&&_0x5983b8['next']==_0x2d9385&&(_0x5983b8['next']=_0x5833a8),null!=_0x5833a8&&_0x5833a8['previous']==_0x2d9385&&(_0x5833a8['previous']=_0x5983b8),'ready'==this['_suggestionState']['get'](_0x2d9385)&&(this['_suggestionState']['set'](_0x2d9385,'removed'),this['fire']('suggestionUnloaded',_0x2d9385,_0x5983b8,_0x5833a8));}['_setSuggestionData'](_0x76c266){const _0x52f8b1=_0x76c266['id'],_0x362450=this['addSuggestionData'](_0x76c266);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34b69c=this['editor']['plugins']['get']('PendingActions'),_0x4a80e3=_0x362450['hasComments'],_0x441922=_0x362450['subType']?_0x362450['type']+':'+_0x362450['subType']:_0x362450['type'],_0x52e025=this['editor']['locale'],_0x5722cf=_0x34b69c['add'](o(_0x52e025,'PENDING_ACTION_SUGGESTION')),_0x296d34={'id':_0x52f8b1,'type':_0x441922,'hasComments':_0x4a80e3,'data':_0x76c266['data']||null,'originalSuggestionId':_0x76c266['originalSuggestionId']||null,'attributes':_0x362450['attributes']};this['_adapter']['addSuggestion'](_0x296d34)['then'](_0x3b3136=>{_0x362450['_saved']=!0x0,_0x34b69c['remove'](_0x5722cf),_0x3b3136&&_0x3b3136['createdAt']&&(this['_suggestions']['get'](_0x52f8b1)['createdAt']=_0x3b3136['createdAt']);})['catch'](_0x2cfead=>{throw _0x1151d8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x362450['discard']();}),_0x362450['stopListening'](),this['_suggestions']['delete'](_0x362450['id']),this['_suggestionState']['delete'](_0x362450),_0x2cfead;});}return _0x362450;}['_isBlockAttribute'](_0x5ebc28){return this['_blockAttributeKeys']['has'](_0x5ebc28);}['_updateSuggestionData'](_0x3cda9c,_0x3b784c){const _0x41ddff=this['editor']['plugins']['get']('PendingActions'),_0x35cb16=this['getSuggestion'](_0x3cda9c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x35cb16['_saved']){const _0x239ddf=_0x41ddff['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3cda9c,_0x3b784c)['then'](()=>{_0x41ddff['remove'](_0x239ddf);});}else _0x35cb16['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3cda9c,_0x3b784c);});}}['_getSuggestionData'](_0x26a1cc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10890c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26a1cc);}['_handleNewSuggestionMarker'](_0x2e26a6){const {id:_0x299b28,type:_0x1a3373,subType:_0x4a024b,authorId:_0x17b171}=this['_splitMarkerName'](_0x2e26a6),_0x1dd212=this['_suggestions']['get'](_0x299b28)||this['_createSuggestion'](_0x1a3373,_0x4a024b,_0x299b28,_0x17b171,{});switch(this['_checkSuggestionCorrectness'](_0x1dd212,_0x1a3373,_0x4a024b,_0x17b171),this['_suggestionState']['get'](_0x1dd212)){case'notReady':this['_getSuggestionData'](_0x299b28)['then'](_0x12fbfc=>{let _0x1e35af=Promise['resolve']();_0x12fbfc['hasComments']&&(_0x1e35af=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x299b28})),_0x1e35af['then'](()=>{this['addSuggestionData'](_0x12fbfc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1dd212,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x299b28,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1dd212,'ready'),this['fire']('suggestionLoaded',_0x1dd212);break;case'ready':this['fire']('suggestionChanged',_0x1dd212);}return _0x1dd212['addMarkerName'](_0x2e26a6),_0x1dd212;}['_refreshSuggestionsChain'](_0x3fa95f){const _0x130b4f=Array['from'](_0x3fa95f),_0x3225ed=_0x130b4f['filter'](_0x1b6182=>'attribute'==_0x1b6182['type']);this['_refreshAttributeSuggestionsChain'](_0x3225ed);const _0x1d6580=_0x130b4f['filter'](_0x525507=>!_0x525507['isMultiRange']&&'attribute'!=_0x525507['type']),_0x184865=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44d118=>!_0x44d118['isMultiRange']&&'attribute'!=_0x44d118['type']),_0x40d1bf=_0x184865['filter'](_0x262659=>!_0x3fa95f['has'](_0x262659)),_0x5cc055=new Map(_0x184865['map'](_0x46b4c1=>[_0x46b4c1,this['_suggestionFactory']['getSuggestionCallback'](_0x46b4c1['type'],_0x46b4c1['subType'],'chain')])),_0x50fce0=new Map(_0x184865['map'](_0x2670f3=>[_0x2670f3,_0x2670f3['getFirstRange']()])),_0x536600=new Set(),_0x16c994=new Set();for(let _0x47a025=0x0;_0x47a025<_0x1d6580['length'];_0x47a025++)_0x1a1261(_0x1d6580[_0x47a025],_0x1d6580,_0x47a025+0x1);for(let _0x241fbf=0x0;_0x241fbf<_0x1d6580['length'];_0x241fbf++)_0x1a1261(_0x1d6580[_0x241fbf],_0x40d1bf,0x0);const _0x4dacd1=new Set();for(let _0x3af7d3=0x0;_0x3af7d3<_0x1d6580['length'];_0x3af7d3++){const _0x581812=_0x1d6580[_0x3af7d3];!_0x16c994['has'](_0x581812)&&_0x581812['previous']&&(_0x4dacd1['add'](_0x581812['previous']),_0x581812['previous']['next']===_0x581812&&(_0x581812['previous']['next']=null),_0x581812['previous']=null),!_0x536600['has'](_0x581812)&&_0x581812['next']&&(_0x4dacd1['add'](_0x581812['next']),_0x581812['next']['previous']===_0x581812&&(_0x581812['next']['previous']=null),_0x581812['next']=null);}function _0x1a1261(_0x4278d5,_0x5d4641,_0x1dd332){for(let _0x57eb27=_0x1dd332;_0x57eb27<_0x5d4641['length'];_0x57eb27++){const _0x32e3d5=_0x3e6788(_0x4278d5,_0x5d4641[_0x57eb27]);_0x32e3d5&&(_0x32e3d5[0x0]['next']=_0x32e3d5[0x1],_0x32e3d5[0x1]['previous']=_0x32e3d5[0x0],_0x536600['add'](_0x32e3d5[0x0]),_0x16c994['add'](_0x32e3d5[0x1]));}}function _0x3e6788(_0x448d95,_0x308cd3){if(_0x448d95['author']['id']!==_0x308cd3['author']['id'])return null;const _0x569255=_0x5cc055['get'](_0x448d95)(_0x448d95,_0x308cd3,_0x50fce0['get'](_0x448d95),_0x50fce0['get'](_0x308cd3));if(!_0x569255)return null;return _0x5cc055['get'](_0x308cd3)(_0x448d95,_0x308cd3,_0x50fce0['get'](_0x448d95),_0x50fce0['get'](_0x308cd3))?_0x569255[0x1]['commentThread']&&_0x569255[0x1]['commentThread']['length']?null:_0x569255:null;}_0x4dacd1['size']&&this['_refreshSuggestionsChain'](_0x4dacd1);}['_refreshAttributeSuggestionsChain'](_0x2e875b){if(0x0==_0x2e875b['length'])return;const _0x1cf119=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x166bad=>'attribute'==_0x166bad['type']&&_0x166bad['_isDataLoaded']),_0x1f92a6=[],_0x3ffab7=new Map();for(const _0x1580ae of _0x1cf119){const _0x245ec1=_0x133608(_0x1580ae['attributes']);_0x3ffab7['has'](_0x245ec1)||(_0x3ffab7['set'](_0x245ec1,_0x1f92a6['length']),_0x1f92a6['push']([]));const _0xbe966b=_0x3ffab7['get'](_0x245ec1);_0x1f92a6[_0xbe966b]['push'](_0x1580ae);}!(function(){_0x1f92a6['sort']((_0x3c7eb0,_0x5e587a)=>{const _0x4c3b8d=_0x3c7eb0[0x0]['createdAt'],_0x5ed8e6=_0x5e587a[0x0]['createdAt'];return _0x4c3b8d==_0x5ed8e6?_0x3c7eb0[0x0]['attributes']['groupId']<_0x5e587a[0x0]['attributes']['groupId']?-0x1:0x1:_0x4c3b8d<_0x5ed8e6?-0x1:0x1;});for(const _0x513e91 of _0x1f92a6)_0x513e91['sort']((_0x5ba97f,_0x39e302)=>_0x5ba97f['id']<_0x39e302['id']?-0x1:0x1);}());for(let _0x573a29=0x0;_0x573a29<_0x1f92a6['length'];_0x573a29++){if(0x0==_0x1f92a6[_0x573a29]['length'])continue;const _0x5ed6d6=[];for(let _0x461212=_0x573a29+0x1;_0x461212<_0x1f92a6['length'];_0x461212++)0x0!=_0x1f92a6[_0x461212]['length']&&_0x42cf73(_0x1f92a6[_0x573a29],_0x1f92a6[_0x461212])&&_0x5ed6d6['push'](_0x461212);for(const _0xad01aa of _0x5ed6d6)_0x1f92a6[_0x573a29]=_0x1f92a6[_0x573a29]['concat'](_0x1f92a6[_0xad01aa]),_0x1f92a6[_0xad01aa]=[];}for(const _0x2adbc1 of _0x1f92a6)for(let _0x1f3647=0x0;_0x1f3647<_0x2adbc1['length'];_0x1f3647++){const _0x4755aa=_0x2adbc1[_0x1f3647+0x1]||null;_0x2adbc1[_0x1f3647]['next']!==_0x4755aa&&(_0x2adbc1[_0x1f3647]['next']=_0x4755aa);}for(const _0x4d41c6 of _0x1f92a6)for(let _0x8268c5=0x0;_0x8268c5<_0x4d41c6['length'];_0x8268c5++){const _0x55222f=_0x4d41c6[_0x8268c5-0x1]||null;_0x4d41c6[_0x8268c5]['previous']!==_0x55222f&&(_0x4d41c6[_0x8268c5]['previous']=_0x55222f);}function _0x42cf73(_0x2472a9,_0x2c9897){if(_0x2472a9[0x0]['attributes']['groupId']!==_0x2c9897[0x0]['attributes']['groupId']&&_0x2472a9[0x0]['author']!==_0x2c9897[0x0]['author'])return!0x1;if(!function(_0xc3f370,_0x155395){if(!_0xc3f370['hasComments']&&!_0x155395['hasComments'])return!0x0;if(_0xc3f370['hasComments']&&_0x155395['hasComments'])return!0x1;if(_0xc3f370['hasComments']&&_0x155395['createdAt']<_0xc3f370['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x155395['hasComments']&&_0xc3f370['createdAt']<_0x155395['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2472a9[0x0],_0x2c9897[0x0]))return!0x1;const _0x3b8781=Tt(_0x2472a9[0x0]['attributes'],'groupId'),_0x3da24c=Tt(_0x2c9897[0x0]['attributes'],'groupId');if(!_0x7c6596(_0x3b8781,_0x3da24c))return!0x1;return!!_0x2472a9['every'](_0x2c3387=>_0x2c9897['some'](_0x3777f1=>_0x2c3387['getFirstRange']()['isEqual'](_0x3777f1['getFirstRange']())))&&_0x2c9897['every'](_0x44e09b=>_0x2472a9['some'](_0x1ba3c7=>_0x44e09b['getFirstRange']()['isEqual'](_0x1ba3c7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x497b92){const _0x1d919e=Array['from'](_0x497b92),_0x2032cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x123a2b=_0x2032cb['filter'](_0x23fd75=>!_0x497b92['has'](_0x23fd75)),_0x538778=new Map(_0x1d919e['map'](_0x1abe79=>[_0x1abe79,this['_suggestionFactory']['getSuggestionCallback'](_0x1abe79['type'],_0x1abe79['subType'],'join')])),_0x2570e7=new Map(_0x2032cb['map'](_0x1998d7=>[_0x1998d7,_0x1998d7['getRanges']()]));for(let _0x3c82e9=0x0;_0x3c82e9<_0x1d919e['length'];_0x3c82e9++){if(_0xb98986(this,_0x1d919e[_0x3c82e9],_0x1d919e,_0x3c82e9+0x1))return!0x0;}for(let _0x7ea7a1=0x0;_0x7ea7a1<_0x1d919e['length'];_0x7ea7a1++){if(_0xb98986(this,_0x1d919e[_0x7ea7a1],_0x123a2b,0x0))return!0x0;}return!0x1;function _0xb98986(_0x50817e,_0x3d01ca,_0x40396c,_0x54a183){for(let _0x704f55=_0x54a183;_0x704f55<_0x40396c['length'];_0x704f55++){const _0x32e755=_0x40396c[_0x704f55];if(_0x32e755['type']!==_0x3d01ca['type']||_0x32e755['author']['id']!==_0x3d01ca['author']['id']||_0x32e755['subType']!==_0x3d01ca['subType'])continue;if(!Jt(_0x3d01ca,_0x32e755))continue;if('attribute'==_0x3d01ca['type']&&_0x3d01ca['data']['oldValue']!=_0x32e755['data']['oldValue'])continue;if('attribute'==_0x3d01ca['type']&&_0x50817e['_isBlockAttribute'](_0x3d01ca['data']['key']))continue;if('formatBlock'==_0x3d01ca['type']){const _0x19e947=_0x50817e['editor']['model'],_0x4161a2=_0x3d01ca['getContainedElement']();if(_0x4161a2&&(_0x19e947['schema']['isObject'](_0x4161a2)||_0x19e947['schema']['isLimit'](_0x4161a2)))continue;}const _0x3533f2=_0x538778['get'](_0x3d01ca),_0x3652e5=_0x2570e7['get'](_0x3d01ca),_0x5f4e5c=_0x2570e7['get'](_0x32e755),_0x3cbf53=_0x3d01ca['commentThread']&&_0x3d01ca['commentThread']['length'],_0x5493e3=_0x32e755['commentThread']&&_0x32e755['commentThread']['length'];if(!_0x3cbf53&&_0x3533f2(_0x5f4e5c,_0x3652e5))return _0x50817e['_joinSuggestions'](_0x32e755,_0x3d01ca),_0x2570e7['delete'](_0x3d01ca),!0x0;if(!_0x5493e3&&_0x3533f2(_0x3652e5,_0x5f4e5c))return _0x50817e['_joinSuggestions'](_0x3d01ca,_0x32e755),_0x2570e7['delete'](_0x32e755),!0x0;}return!0x1;}}['_joinSuggestions'](_0x589dd4,_0x38fdea){if(_0x589dd4['isMultiRange']){for(const _0x4f8ea5 of _0x38fdea['getRanges']())_0x589dd4['addRange'](_0x4f8ea5);}else{const _0x543aea=_0x38fdea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x589dd4,this['_model']['createRange'](_0x589dd4['getFirstRange']()['start'],_0x543aea));}_0x38fdea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c30eb,_0x2f9533,_0x31e816){const _0x198fe6=_0x4c30eb['startsWith']('format')||_0x4c30eb['startsWith']('attribute')?'FORMATTING':_0x4c30eb['toUpperCase']();return o(this['editor']['locale'],_0x2f9533+'_'+_0x198fe6+'_SUGGESTION_ANNOUNCEMENT',_0x31e816);}['_initAriaMarkerChangeAnnouncements'](){const _0x60a90c=this['editor'];if(!_0x60a90c['ui'])return;const {ariaLiveAnnouncer:_0x164456}=_0x60a90c['ui'];_0x1e6588(this['_model'],({left:_0x18eaa5,entered:_0x3cbbdb})=>{for(const _0xdf028c of _0x18eaa5){const {group:_0x524837,type:_0x17409f}=this['_splitMarkerName'](_0xdf028c['name']);if('suggestion'===_0x524837){_0x164456['announce'](this['_getMarkerAnnouncementText'](_0x17409f,'LEAVE'));break;}}for(const _0x2b45cc of _0x3cbbdb){const {group:_0x342dd1,type:_0x240090}=this['_splitMarkerName'](_0x2b45cc['name']);if('suggestion'===_0x342dd1){_0x164456['announce'](this['_getMarkerAnnouncementText'](_0x240090,'ENTER',_0x169b2b(_0x5aa4d2)));break;}}});}['_processAttributeChanges'](_0x218fee){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ed486=this['editor'],_0x43ec66=_0x2ed486['model']['document']['differ']['getChanges']();if(0x0==_0x43ec66['length'])return!0x1;const _0x2192bf=[],_0x358771=_0x43ec66['filter'](_0xc76cd5=>'attribute'==_0xc76cd5['type']),_0x441348=_0x43ec66['filter'](_0x398102=>'insert'==_0x398102['type']&&'$text'!=_0x398102['name']),_0x533a7a=_0x43ec66['filter'](_0x39d3ac=>'remove'==_0x39d3ac['type']&&'$text'!=_0x39d3ac['name']);for(const _0x4ddb42 of _0x358771)_0x2192bf['push']({'key':_0x4ddb42['attributeKey'],'newValue':_0x4ddb42['attributeNewValue'],'oldValue':_0x4ddb42['attributeOldValue'],'range':Pt(_0x4ddb42['range'],_0x2ed486['model'])});for(const _0x584e1d of _0x441348){const _0x3235d3=_0x533a7a['find'](_0x537162=>_0x537162['position']['isEqual'](_0x584e1d['position']));_0x3235d3&&_0x2192bf['push']({'key':m,'newValue':_0x584e1d['name'],'oldValue':_0x3235d3['name'],'range':_0x2ed486['model']['createRangeOn'](_0x584e1d['position']['nodeAfter'])});}return 0x0!=_0x2192bf['length']&&this['_reduceExistingSuggestions'](_0x218fee,_0x2192bf);}['_processAttributeSuggestions'](_0xfa281e){let _0x341ba5=!0x1;const _0x33b059=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d8c0a=>_0x5d8c0a['data']['newRange']&&_0x5d8c0a['name']['startsWith']('suggestion:attribute:'));for(const _0x30ebf3 of _0x33b059){const {subType:_0xc51c65,id:_0x5578c3}=this['_splitMarkerName'](_0x30ebf3['name']),_0x1c992d=_0xc51c65['split']('|')[0x0];for(const _0x1d343a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d343a['id']!=_0x5578c3&&'attribute'==_0x1d343a['type']&&_0x1d343a['data']&&_0x1d343a['data']['key']==_0x1c992d&&_0x1d343a['getFirstRange']()['isIntersecting'](_0x30ebf3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d343a,_0x30ebf3['data']['newRange'],_0xfa281e),_0x341ba5=!0x0);}return _0x341ba5;}['_recordAttributeChanges'](_0x5619d6){this['_recordAttributeSuggestions']=!0x0,_0x5619d6();}['_isRegisteredAttribute'](_0x109efe){const _0x3a9dd3=this['_isBlockAttribute'](_0x109efe),_0x22b46f=this['_inlineAttributeKeys']['has'](_0x109efe);return _0x3a9dd3||_0x22b46f;}['_reduceExistingSuggestions'](_0x827a7b,_0x306e4a){if(0x0==_0x306e4a['length'])return!0x1;let _0x196864=!0x1;for(const _0x390ef7 of _0x306e4a){const _0x1d967c=this['_findSuggestions'](_0x390ef7['range'],'attribute')['filter'](_0x50deda=>!_0x50deda['meta']['isNextTo'])['map'](_0x724eb0=>_0x724eb0['suggestion']),_0x513d1e=_0x133608({'newValue':_0x390ef7['newValue']});_0x1d967c['filter'](_0x56032b=>{const [_0x1d1b7d,_0x139976]=_0x56032b['subType']['split']('|');return _0x1d1b7d==_0x390ef7['key']&&_0x139976!=_0x513d1e;})['forEach'](_0x1ffc0=>{this['_reduceSuggestionAttributeRange'](_0x1ffc0,_0x390ef7['range'],_0x827a7b),_0x196864=!0x0;});}return _0x196864;}['_reduceSuggestionAttributeRange'](_0x3d7906,_0x50f60e,_0x2c6bc3){const _0x502350=_0x3d7906['getFirstRange']()['getDifference'](_0x50f60e);0x0!==_0x502350['length']?0x1!==_0x502350['length']?this['_breakSuggestionMarker'](_0x3d7906,_0x50f60e['start'],_0x50f60e['end']):this['_setSuggestionRange'](_0x3d7906,_0x502350[0x0]):_0x2c6bc3['removeMarker'](_0x3d7906['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bf9a0){this['_editor']=_0x1bf9a0,this['_model']=_0x1bf9a0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4558f9,_0x2a876c,_0x42d694,_0x3d02f4,_0x2aeccb,_0x27edfa){return new u(this['_model'],{'type':_0x4558f9,'subType':_0x2a876c,'id':_0x42d694,'author':_0x3d02f4,'creator':_0x3d02f4,'attributes':_0x2aeccb,'onAttributesChange':_0x27edfa,'onAccept':(..._0x4038b0)=>this['getSuggestionCallback'](_0x4558f9,_0x2a876c,'accept')(..._0x4038b0),'onDiscard':(..._0x43b303)=>this['getSuggestionCallback'](_0x4558f9,_0x2a876c,'discard')(..._0x43b303)});}['registerCustomCallback'](_0x5d8b7f,_0x314d50,_0x309e4f,_0x2f0932){const _0x2a95f3=_0x5d8b7f+':'+_0x314d50+':'+_0x309e4f;this['_customCallbacks']['set'](_0x2a95f3,_0x2f0932);}['getSuggestionCallback'](_0x1be3b1,_0x121384,_0x4e3386){const _0x5df4b3=_0x1be3b1+':'+_0x121384+':'+_0x4e3386;return this['_customCallbacks']['get'](_0x5df4b3)||this['_defaultCallbacks']['get'](_0x1be3b1+':'+_0x4e3386);}['_registerDefaultCallbacks'](){const _0x4cfb65=()=>!0x1,_0x2c2919=_0x1b6328=>{_0x1b6328['sort']((_0x1692fa,_0x477227)=>_0x1692fa['start']['isBefore'](_0x477227['start'])?0x1:-0x1),this['_model']['change'](_0x59fa4b=>{for(const _0x187463 of _0x1b6328){let _0x60a718;_0x60a718=_0x187463['end']['isAtEnd']&&_0x187463['end']['parent']==_0x187463['start']['nodeAfter']?_0x59fa4b['createSelection'](_0x187463['start']['nodeAfter'],'on'):_0x59fa4b['createSelection'](_0x187463),this['_model']['deleteContent'](_0x60a718,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf8ef46=(_0x57c060,_0xa38427)=>{_0xa38427&&this['_model']['change'](_0x234444=>{const {commandName:_0x5313ca,commandParams:_0x3c6cae=[]}=_0xa38427,_0x471c4f=_0x57c060['map'](_0x4347b2=>(Vt(_0x4347b2)&&(_0x4347b2=this['_model']['createRange'](_0x4347b2['end'])),_0x4347b2))['filter'](_0x32549a=>'$graveyard'!==_0x32549a['root']['rootName']);if(_0x471c4f['length']<0x1)return;const _0x1c788b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x44050c=>_0x425d25['fromRange'](_0x44050c));_0x234444['setSelection'](_0x471c4f);for(const _0x2d4322 of this['_editor']['commands']['commands']())_0x2d4322['refresh']();_0x3c6cae['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5313ca,..._0x3c6cae);const _0x492f0b=_0x1c788b['filter'](_0x1b4c30=>'$graveyard'!=_0x1b4c30['root']['rootName']);_0x492f0b['length']>0x0&&_0x234444['setSelection'](_0x492f0b);for(const _0x3e4610 of _0x1c788b)_0x3e4610['detach']();});},_0x380b00=(_0x12dc28,_0x38fbe3)=>0x1==_0x12dc28['length']&&0x1==_0x38fbe3['length']&&_0x12dc28[0x0]['end']['isEqual'](_0x38fbe3[0x0]['start']),_0x12ee3a=(_0x2ddb0e,_0x2014e7,_0xf73a7b,_0x3bd000)=>Ht(_0x2ddb0e,_0x2014e7,_0xf73a7b,_0x3bd000,this['_model'])?[_0x2ddb0e,_0x2014e7]:Ht(_0x2014e7,_0x2ddb0e,_0x3bd000,_0xf73a7b,this['_model'])?[_0x2014e7,_0x2ddb0e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4cfb65),this['_defaultCallbacks']['set']('insertion:discard',_0x2c2919),this['_defaultCallbacks']['set']('insertion:join',_0x380b00),this['_defaultCallbacks']['set']('insertion:chain',_0x12ee3a),this['_defaultCallbacks']['set']('deletion:accept',_0x2c2919),this['_defaultCallbacks']['set']('deletion:discard',_0x4cfb65),this['_defaultCallbacks']['set']('deletion:join',_0x380b00),this['_defaultCallbacks']['set']('deletion:chain',_0x12ee3a),this['_defaultCallbacks']['set']('formatInline:accept',_0xf8ef46),this['_defaultCallbacks']['set']('formatInline:discard',_0x4cfb65),this['_defaultCallbacks']['set']('formatInline:join',_0x380b00),this['_defaultCallbacks']['set']('formatInline:chain',_0x4cfb65),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf8ef46),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4cfb65),this['_defaultCallbacks']['set']('formatBlock:join',_0x380b00),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4cfb65),this['_defaultCallbacks']['set']('attribute:accept',_0x4cfb65),this['_defaultCallbacks']['set']('attribute:discard',(_0x208ff7,_0x43ff88)=>{if(!_0x43ff88)return;const _0x2b94d5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4af484=>{if(_0x43ff88['key']==m)for(const _0x53b433 of _0x208ff7){const _0xa1d2d4=_0x53b433['start']['nodeAfter'],_0x510887=_0x43ff88['oldValue'];_0x4af484['rename'](_0xa1d2d4,_0x510887);}else{if(_0x2b94d5['_isBlockAttribute'](_0x43ff88['key'])){for(const _0x330f08 of _0x208ff7)void 0x0!==_0x43ff88['oldValue']?_0x4af484['setAttribute'](_0x43ff88['key'],_0x43ff88['oldValue'],_0x330f08['start']['nodeAfter']):_0x4af484['removeAttribute'](_0x43ff88['key'],_0x330f08['start']['nodeAfter']);}else{for(const _0xf3646c of _0x208ff7)_0x43ff88['oldValue']?_0x4af484['setAttribute'](_0x43ff88['key'],_0x43ff88['oldValue'],_0xf3646c):_0x4af484['removeAttribute'](_0x43ff88['key'],_0xf3646c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x380b00);}}function Ot(_0x44ebb5,_0x300fdd,_0x110842){for(const _0x122c1e of _0x300fdd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x122c1e['root']==_0x122c1e)return!0x1;if(!_0x110842['containsItem'](_0x122c1e))return!0x1;if(_0x44ebb5['isObject'](_0x122c1e)||_0x44ebb5['isLimit'](_0x122c1e))return!0x0;}return!0x1;}function Vt(_0x1abae2){return _0x1abae2['end']['parent']==_0x1abae2['start']['nodeAfter']&&_0x1abae2['end']['isAtStart'];}function Ut(_0x9bf972,_0x554cc4,_0x3b79f8,_0x24144d){const _0x914a86=_0x35ff03=>!_0x35ff03['item']['is']('$textProxy')&&!_0x24144d['isObject'](_0x35ff03['item']),_0x500e59=_0x9bf972['start']['getLastMatchingPosition'](_0x914a86),_0xece724=_0x9bf972['end']['getLastMatchingPosition'](_0x914a86,{'direction':'backward'});return(!_0x9bf972['start']['isEqual'](_0x500e59)||!_0x9bf972['end']['isEqual'](_0xece724))&&(_0x500e59['isBefore'](_0xece724)?_0x3b79f8['updateMarker'](_0x554cc4,{'range':_0x3b79f8['createRange'](_0x500e59,_0xece724)}):_0x3b79f8['removeMarker'](_0x554cc4),!0x0);}function Gt(_0x313b61){return _0x133608(_0x313b61);}function Ft(_0x336dc6){const _0x5694fe=_0x336dc6['start']['nodeAfter'];return _0x5694fe&&_0x5694fe['is']('element');}function Pt(_0xcfe40e,_0x234b0e){return null==_0xcfe40e['end']['nodeBefore']&&_0xcfe40e['end']['parent']==_0xcfe40e['start']['nodeAfter']?Lt(_0xcfe40e['start']['nodeAfter'],_0x234b0e):_0xcfe40e;}function Lt(_0x5b718e,_0x51207b){const _0x46b594=_0x51207b['schema']['isObject'](_0x5b718e)||_0x51207b['schema']['isSelectable'](_0x5b718e);return _0x51207b['createRange'](_0x51207b['createPositionAt'](_0x5b718e,'before'),_0x46b594?_0x51207b['createPositionAfter'](_0x5b718e):_0x51207b['createPositionAt'](_0x5b718e,'end'));}function Ht(_0x484fad,_0x231449,_0x5c1307,_0x35526d,_0x3146e4){if(_0x484fad['next'])return!0x1;if(!Jt(_0x484fad,_0x231449))return!0x1;if(_0x5c1307['end']['isEqual'](_0x35526d['start']))return!0x0;if(_0x484fad['type']!=_0x231449['type'])return!0x1;if(!_0x5c1307['end']['isTouching'](_0x35526d['start']))return!0x1;const _0x4ec0dd=_0x3146e4['createRange'](_0x5c1307['end'],_0x35526d['start'])['getWalker']();for(const _0x51fa10 of _0x4ec0dd)if(['elementStart','elementEnd']['includes'](_0x51fa10['type'])&&_0x3146e4['schema']['isLimit'](_0x51fa10['item']))return!0x1;return!0x0;}function Jt(_0x33b15c,_0x770793){if(!_0x33b15c['_isDataLoaded']||!_0x770793['_isDataLoaded'])return!0x1;const _0x3de034=new Set(Object['keys'](_0x33b15c['attributes'])),_0x4b41c1=new Set(Object['keys'](_0x770793['attributes']));if(_0x3de034['delete']('groupId'),_0x4b41c1['delete']('groupId'),0x0==_0x3de034['size']&&0x0==_0x4b41c1['size'])return!0x0;if(_0x3de034['size']!=_0x4b41c1['size'])return!0x1;const _0x9906a3={..._0x33b15c['attributes']},_0x415262={..._0x770793['attributes']};return delete _0x9906a3['groupId'],delete _0x415262['groupId'],JSON['stringify'](_0x9906a3)==JSON['stringify'](_0x415262);}function qt(_0x4a4150,_0x56e65b){const _0x1b227f=zt(_0x4a4150['attributes']),_0x18e8fa=zt(_0x56e65b);if(!_0x4a4150['_isDataLoaded'])return!0x1;for(const _0x280f53 of Object['keys'](_0x18e8fa))if(!_0x7c6596(_0x1b227f[_0x280f53],_0x18e8fa[_0x280f53]))return!0x1;return!0x0;}function zt(_0x325bf1){const _0xf3f257=Object['assign']({},_0x325bf1);return delete _0xf3f257['skipNestingCheck'],delete _0xf3f257['tablePasteChainId'],_0xf3f257;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4d2569(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x474196,_0x2ce570,_0x2a8381,_0x1f9542){super(),this['model']=_0x2ce570,this['view']=_0x2a8381,this['commentThreadController']=_0x1f9542,this['_editor']=_0x474196,this['_acceptCommand']=_0x474196['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x474196['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfc632,_0x51b46f)=>_0xfc632||_0x51b46f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3db5b4=>_0x3db5b4&&this['_editor']['model']['canEditAt'](_0x2ce570['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e8ce6=>_0x4e8ce6&&this['_editor']['model']['canEditAt'](_0x2ce570['getRanges']())),this['_pendingAction']=null,_0x2a8381['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2a8381,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2a8381,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2a8381,'change:isDirty',()=>{_0x2a8381['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 _0x3642f9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3642f9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5bb25a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xf20279,_0x6216d4,_0x321154,_0xa89840){super(_0xf20279),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x253816(_0xf20279,o(_0xf20279,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x6216d4['authoredAt']),this['bind']('authoredAt')['to'](_0x6216d4),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',_0x6216d4,'authoredAt',this,'descriptionParts',(_0x4d6b48,_0x443017,_0x3c6c8a)=>{const _0x298733=_0x3c6c8a['map'](_0x39743d=>ls(_0x39743d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d6b48-0x1,_0x6216d4['author']['name'],_0x443017?_0xa89840['formatDateTime'](_0x443017):'',new DOMParser()['parseFromString'](_0x298733,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4a3579(),this['focusTracker']=new _0x300501(),this['keystrokes']=new _0x47e191(),this['focusCycler']=new _0x16bf8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a86b0=>_0x2a86b0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x6216d4,this['_localUser']=_0x321154,this['_config']=_0xa89840,_0xa89840['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x6d2ff4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x246380}=this['_config'];this['commentsListView']=new _0x246380(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',_0x4d156b=>_0x4d156b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54b2d9,_0x59db54)=>_0x54b2d9||!!_0x59db54);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x52605c}=this['_config'],_0x49d592=new _0x52605c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c0e7f=_0x49d592['commentInputView'];return _0x49d592['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2c0e7f,'value',(_0x443875,_0xf57078,_0x5157a3)=>!!_0x5157a3||_0x443875&&!_0xf57078),_0x2c0e7f['on']('submit',(_0x423403,_0x16a545)=>{this['fire']('addComment',_0x16a545),_0x2c0e7f['editor']['setData']('');}),_0x2c0e7f['on']('cancel',()=>this['focus']()),_0x2c0e7f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x49d592;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5b0b84,_0x22597f,_0x587536,_0x17e9c0){super(_0x5b0b84,_0x22597f,_0x587536,_0x17e9c0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17ef8e=>_0x17ef8e&&_0x17ef8e[0x0]?_0x17ef8e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b4945,_0x252d38)=>{let _0x330cd1='';for(const _0x291d7e of _0x3b4945)_0x330cd1+='<p>'+ls(_0x291d7e['content'],_0x291d7e['color'])+'</p>';return _0x252d38?_0x330cd1:_0xb42aa1(_0x330cd1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x17e9c0['SuggestionView'](_0x5b0b84,_0x22597f,{'formatDateTime':_0x17e9c0['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 _0x1b586a=this['bindTemplate'],_0x3230bb=[this['suggestionView']];return this['commentsListView']&&_0x3230bb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3230bb['push'](this['commentThreadInputView']),_0x3230bb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1b586a['if']('isActive','ck-suggestion-wrapper--active'),_0x1b586a['to']('type',_0x2021b6=>'ck-suggestion-'+_0x2021b6),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':_0x1b586a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3230bb};}['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 _0x5bb25a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x58df79,_0x12b970,_0x3f8876){super(_0x58df79),this['_model']=_0x12b970,this['_config']=_0x3f8876,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12b970),this['acceptButton']=this['_createButton'](o(_0x58df79,'Accept\x20suggestion'),_0xcc8d03['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x58df79,'Discard\x20suggestion'),_0xcc8d03['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24025d(_0x58df79,_0x12b970['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a3579([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x300501(),this['keystrokes']=new _0x47e191(),this['focusCycler']=new _0x16bf8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55086b=>_0x55086b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x59fdf7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x59fdf7['innerHTML']=this['description'],this['on']('change:description',(_0x3e0726,_0x328844,_0x24d008)=>{_0x59fdf7['innerHTML']=_0x24d008;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3d50b7=this['bindTemplate'],_0x397ac6=[{'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':_0x3d50b7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3d50b7['to']('authoredAt',_0x9f9b4b=>this['_config']['formatDateTime'](_0x9f9b4b))}]}]},{'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']&&_0x397ac6['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':_0x397ac6}]};}['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'](_0xaa8ffc,_0x42afb6,_0x102e58,_0x586395,_0x4a7a2f){const _0x55481a=new _0x58bb35(this['locale']);return _0x55481a['set']({'label':_0xaa8ffc,'icon':_0x42afb6,'tooltip':!0x0,'tooltipPosition':_0x4a7a2f}),_0x55481a['extendTemplate']({'attributes':{'class':_0x102e58}}),_0x55481a['on']('execute',()=>{this['fire'](_0x586395,this['_model']['id']);}),_0x55481a;}['_setupKeyboardNavigation'](){const _0x59dd06=this['element'];this['keystrokes']['listenTo'](_0x59dd06);for(const _0x5ed06f of this['focusables'])this['focusTracker']['add'](_0x5ed06f['element']),this['keystrokes']['listenTo'](_0x5ed06f['element']);this['keystrokes']['set']('enter',(_0x13d063,_0x483e08)=>{_0x59dd06===_0x13d063['target']&&(this['focusCycler']['focusFirst'](),_0x483e08());}),this['keystrokes']['set']('esc',(_0x321c30,_0x53f603)=>{_0x59dd06!==_0x321c30['target']&&(this['focus'](),_0x53f603());});}}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 _0xd0fe4f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2a2d95,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1ac7f4){super(_0x1ac7f4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a5ca3=this['editor']['config'];_0x4a5ca3['define']('trackChanges.SuggestionThreadView',re),_0x4a5ca3['define']('trackChanges.SuggestionView',ce),_0x4a5ca3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a5ca3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8fc6d2,_0x10cb8b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1e78c6,_0x2a5bed]of this['_handleControllerBuffer']){const _0xc090a0=this['_suggestionToController']['has'](_0x1e78c6);_0xc090a0||_0x2a5bed?_0xc090a0&&_0x2a5bed&&this['_destroyController'](_0x1e78c6):this['_initializeController'](_0x1e78c6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8fc6d2,_0x10cb8b);}['init'](){const _0x36268e=this['editor'],_0x2793f3=_0x36268e['plugins']['get']('TrackChangesEditing'),_0xdc1317=_0x36268e['plugins']['get']('Annotations'),_0x17fcdd=_0x36268e['plugins']['get']('EditorAnnotations'),_0x554b77=_0x36268e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x17fcdd['addSourceCollector'](()=>{const _0x4f793e=[];for(const [_0x4e4f3c,_0x5d8856]of Array['from'](this['_suggestionToController'])){const _0x1d8401=_0x4e4f3c['getAllAdjacentSuggestions'](),_0x578dd3=[];for(const _0x3d20cb of _0x1d8401){if(!_0x3d20cb['isInContent'])continue;if(_0x3d20cb['isMultiRange']){_0x578dd3['push'](..._0x3d20cb['getRanges']());continue;}const _0x165b4a=_0x3d20cb['getFirstRange']();if(_0x578dd3['length']>0x0){const _0x3ae41b=_0x578dd3[0x0]['getJoined'](_0x165b4a);if(_0x3ae41b){_0x578dd3[0x0]=_0x3ae41b;continue;}}_0x578dd3['push'](_0x165b4a);}_0x4f793e['push']([_0x5d8856['view'],_0x578dd3]);}return _0x4f793e;}),this['listenTo'](_0x2793f3,'suggestionLoaded',(_0x32c821,_0x34c034)=>{this['listenTo'](_0x34c034,'change:previous',(_0x1a056c,_0x4eb8f3,_0x15fc54,_0x4aa75c)=>{_0x34c034['isInContent']&&(null==_0x15fc54?(this['_updateController'](_0x4aa75c['head']),this['_handleSuggestionControllerDelayed'](_0x34c034,!0x1)):(this['_updateController'](_0x15fc54['head']),null==_0x4aa75c&&this['_handleSuggestionControllerDelayed'](_0x34c034,!0x0)));}),null!==_0x34c034['previous']?this['_updateController'](_0x34c034['head']):this['_handleSuggestionControllerDelayed'](_0x34c034,!0x1);}),this['listenTo'](_0x2793f3,'suggestionUnloaded',(_0x5d6f41,_0x237a5c,_0x155ddd)=>{this['stopListening'](_0x237a5c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x237a5c),this['_suggestionToController']['has'](_0x237a5c)&&this['_destroyController'](_0x237a5c),_0x155ddd&&this['_updateController'](_0x155ddd['head']);}),this['listenTo'](_0x2793f3,'suggestionChanged',(_0x253cfa,_0x448a80)=>{this['_updateController'](_0x448a80);}),this['listenTo'](_0xdc1317,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x554b77,'addComment',(_0x5735d0,{threadId:_0x2e9212,isFromAdapter:_0x5d5159})=>{if(_0x5d5159||!_0x2793f3['hasSuggestion'](_0x2e9212))return;const _0x443f28=_0x2793f3['getSuggestion'](_0x2e9212);this['_suggestionToController']['get'](_0x443f28)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4b208e=this['editor']['plugins']['get']('Annotations'),_0x1cf039=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16f3d1=Array['from'](_0x4b208e['activeAnnotations'],_0x52a3c4=>_0x52a3c4['innerView'])['filter'](_0x30077e=>this['_viewToController']['has'](_0x30077e)),_0x2033e5=[];for(const _0x1d5579 of _0x16f3d1){const _0x2db60=this['_viewToController']['get'](_0x1d5579)['model']['getAllAdjacentSuggestions']();_0x2033e5['push'](..._0x2db60['reduce']((_0x5a880f,_0x5b5d8b)=>[..._0x5a880f,..._0x5b5d8b['getMarkerNames']()],[]));}_0x1cf039['activeMarkers']=_0x2033e5;}['_addUIComponentsToFactory'](){const _0x1f70d4=this['editor'],_0x256694=_0x1f70d4['locale'],_0x180e00=o(_0x256694,'Track\x20changes'),_0x46d387=new Wt([{'type':'switchbutton','model':new _0x568c43({'withText':!0x0,'isToggleable':!0x0,'label':_0x180e00,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x10d356 of _0x46d387)if(me(_0x10d356)){const _0x16df51=_0x1f70d4['commands']['get'](_0x10d356['model']['commandName']);_0x10d356['model']['bind']('isOn','isEnabled')['to'](_0x16df51,'value','isEnabled');}_0x1f70d4['ui']['componentFactory']['add']('trackChanges',_0x1e9fe=>this['_createToolbarButton'](_0x1e9fe,_0x46d387,_0x180e00)),_0x1f70d4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f3a63=>this['_createMenuBarMenu'](_0x1f3a63,_0x46d387,_0x180e00));}['_createToolbarButton'](_0x400f67,_0x34d6e1,_0x14a524){const _0x12a295=Qt(_0x400f67,_0x4192af),_0x546487=this['editor']['commands']['get']('trackChanges');_0x12a295['buttonView']['set']({'tooltip':_0x14a524,'label':_0x14a524,'icon':he}),_0x12a295['buttonView']['bind']('isOn')['to'](_0x546487,'value'),_0x12a295['buttonView']['on']('execute',()=>{_0x546487['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x12a295,_0x34d6e1,{'role':'menu'});const _0x52d613=[];for(const _0x52dccb of _0x34d6e1)me(_0x52dccb)&&_0x52d613['push'](this['editor']['commands']['get'](_0x52dccb['model']['commandName']));const _0x2214ab=_0x12a295['buttonView'];return _0x2214ab['actionView']['unbind']('isEnabled'),_0x2214ab['arrowView']['unbind']('isEnabled'),_0x2214ab['actionView']['bind']('isEnabled')['to'](_0x546487,'isEnabled'),_0x2214ab['arrowView']['bind']('isEnabled')['toMany'](_0x52d613,'isEnabled',(..._0x59e740)=>_0x59e740['some'](_0x49109d=>_0x49109d)),_0x12a295['on']('execute',_0x289478=>{this['editor']['execute'](_0x289478['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12a295;}['_createMenuBarMenu'](_0x584268,_0x44b292,_0x1dbedd){const _0x1640df=new Yt(_0x584268),_0x436c87=this['editor']['commands']['get']('trackChanges');_0x1640df['buttonView']['set']({'label':_0x1dbedd,'icon':he});const _0x37a9d1=new Zt(_0x584268);for(const _0x25f36a of _0x44b292){if('separator'==_0x25f36a['type']){_0x37a9d1['items']['add'](new Xt(_0x584268));continue;}const _0x593de6=new te(_0x584268,_0x1640df),_0x5a8d8a=new _0x169749(_0x584268),_0x84ef34=_0x25f36a['model'];_0x5a8d8a['bind'](...Object['keys'](_0x84ef34))['to'](_0x84ef34),_0x5a8d8a['delegate']('execute')['to'](_0x1640df),_0x5a8d8a['on']('execute',()=>{this['editor']['execute'](_0x84ef34['commandName']),this['editor']['editing']['view']['focus']();}),_0x593de6['children']['add'](_0x5a8d8a),_0x37a9d1['items']['add'](_0x593de6);}return _0x1640df['bind']('isEnabled')['to'](_0x436c87,'isEnabled'),_0x1640df['panelView']['children']['add'](_0x37a9d1),_0x1640df;}['_initializeController'](_0x242d98){const _0x557528=this['editor'],_0x10956=_0x557528['config'],_0x1d5b9a=_0x557528['plugins']['get']('Annotations'),_0x53729a=_0x557528['plugins']['get']('CommentsRepository'),_0x2e1f70=_0x557528['plugins']['get']('EditorAnnotations'),_0xb5564b=_0x557528['plugins']['get'](_0x2a2d95)['me'],_0x3f6951=_0x10956['get']('trackChanges')['SuggestionThreadView'],_0x4dfec1=_0x10956['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ffd25,CommentThreadInputView:_0x5ea090}=_0x557528['plugins']['get']('CommentsUI');let _0xfaa089,_0x3e44c7,_0x5b3ea4;this['_annotationViews']['has'](_0x242d98['id'])?(_0x3e44c7=this['_annotationViews']['get'](_0x242d98['id']),_0xfaa089=_0x3e44c7['mainView']):(_0xfaa089=new _0x3f6951(_0x557528['locale'],_0x242d98,_0xb5564b,{'disableComments':this['_disableComments'],'editorConfig':_0x10956['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x10956['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10956['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10956['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5cadd8(_0x10956['get']('locale')),'CommentView':_0x10956['get']('comments')['CommentView'],'CommentsListView':_0x3ffd25,'CommentThreadInputView':_0x5ea090,'SuggestionView':_0x4dfec1}),_0xfaa089['suggestionView']['acceptButton']['on']('execute',()=>{_0x557528['editing']['view']['focus']();}),_0xfaa089['suggestionView']['discardButton']['on']('execute',()=>{_0x557528['editing']['view']['focus']();}),_0x3e44c7=_0x1d5b9a['createAnnotationView'](this['editor']['locale'],_0xfaa089),_0x3e44c7['bind']('isDirty')['to'](_0xfaa089,'isDirty'),_0x3e44c7['bind']('length')['to'](_0xfaa089),_0x3e44c7['bind']('type')['to'](_0xfaa089,'type',_0x3cfafa=>'suggestion-'+_0x3cfafa),_0xfaa089['on']('escape',()=>{_0x5b3ea4['fire']('escape');}),this['_annotationViews']['set'](_0x242d98['id'],_0x3e44c7));const _0x83e915=_0x53729a['createCommentThreadController'](_0x242d98['commentThread'],_0xfaa089),_0x504092=new ae(_0x557528,_0x242d98,_0xfaa089,_0x83e915),_0x55469b=_0x242d98['getAllAdjacentSuggestions']()['filter'](_0x3e0665=>_0x3e0665['isInContent']);_0xfaa089['descriptionParts']=_0x557528['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x55469b),this['_suggestionToController']['set'](_0x242d98,_0x504092),this['_viewToController']['set'](_0xfaa089,_0x504092),_0x5b3ea4=_0x1d5b9a['createAnnotation']({'view':_0x3e44c7,'target':()=>{const _0xe549c=[],_0x26af39=_0x242d98['getAllAdjacentSuggestions']()['filter'](_0x4730fc=>_0x4730fc['isInContent']);for(const _0x21c39b of _0x26af39)_0xe549c['push'](..._0x21c39b['getMarkers']());return _0x435996(_0x557528['editing'],_0xe549c);},'type':()=>'suggestion-'+_0x504092['view']['type']}),_0x53729a['_bindAnnotationToEditors'](_0xfaa089,_0x5b3ea4),_0x1d5b9a['add'](_0x5b3ea4),_0x2e1f70['registerAnnotation'](_0x5b3ea4);}['_destroyController'](_0xe4ea82){const _0x2cded5=this['editor']['plugins']['get']('CommentsRepository'),_0x5c9b04=this['editor']['plugins']['get']('Annotations'),_0x5de78b=this['_suggestionToController']['get'](_0xe4ea82),_0x501b02=_0x5de78b['view'],_0x531976=_0x5c9b04['getByInnerView'](_0x501b02);_0x2cded5['_unbindEditors'](_0x501b02),_0x531976&&_0x5c9b04['remove'](_0x531976),this['_suggestionToController']['delete'](_0xe4ea82),this['_viewToController']['delete'](_0x501b02),_0x5de78b['destroy']();}['_updateController'](_0x206c19){if(!_0x206c19['isInContent']||!this['_suggestionToController']['has'](_0x206c19))return;const _0x4c6de3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x498adc=this['_suggestionToController']['get'](_0x206c19),_0x1d3436=_0x206c19['getAllAdjacentSuggestions']();_0x498adc['view']['descriptionParts']=_0x4c6de3['descriptionFactory']['getDescriptions'](_0x1d3436);}['destroy'](){for(const _0xa1a440 of this['_suggestionToController']['keys']())this['_destroyController'](_0xa1a440);for(const _0x548bf8 of this['_annotationViews']['values']())_0x548bf8['mainView']['destroy']();super['destroy']();}}function me(_0xe550de){return'model'in _0xe550de;}class k extends _0xd0fe4f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x211ca3){this['editor']['plugins']['get'](p)['adapter']=_0x211ca3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x34947f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x34947f);}['getSuggestions']({skipNotAttached:_0x278348=!0x1,toJSON:_0x381876=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x278348,'toJSON':_0x381876});}['getSuggestion'](_0x489e7c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x489e7c);}}const T=['Pagination'];class P extends _0xd0fe4f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x11eb86=this['editor'];if(_0x11eb86['config']['define']('trackChangesData.editorCreator',_0x500f61=>{const _0x1ea2ab=_0x11eb86['model']['document']['getRootNames']()['reduce']((_0x1841c2,_0x1ab0c2)=>(_0x1841c2[_0x1ab0c2]='',_0x1841c2),{});return _0x11eb86['constructor']['create'](_0x1ea2ab,_0x500f61);}),'function'!=typeof _0x11eb86['config']['get']('trackChangesData')['editorCreator'])throw new _0x10890c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53603d){return N(this['editor'],!0x0,_0x53603d);}['getDataWithDiscardedSuggestions'](_0x217fa3){return N(this['editor'],!0x1,_0x217fa3);}}class D extends _0xd0fe4f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3e05ce){super(_0x3e05ce),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(_0x23f4de){return void 0x0!==_0x23f4de['getRootsAttributes'];}async function N(_0x4dd035,_0x45e90a,_0x1ddcac){const _0xa5ac8f=_0x2e2961(_0x4dd035,T);_0xa5ac8f['plugins']['push'](p,D),_0xa5ac8f['rootsAttributes']=v(_0x4dd035)?_0x4dd035['getRootsAttributes']():void 0x0;const _0x2264fa=document['createDocumentFragment'](),_0x40cafb=_0x4dd035['config']['get']('trackChangesData')['editorCreator'],_0x48075f=await _0x40cafb(_0xa5ac8f,()=>function(_0x247ac1){const _0x3c3a0f=document['createElement']('div');return _0x247ac1['appendChild'](_0x3c3a0f),_0x3c3a0f;}(_0x2264fa));!function(_0x3e74d2,_0x39434b){const _0x1953dd=_0x3e74d2['model']['document']['getRootNames']()['reduce']((_0x5afdb1,_0x357b7b)=>(_0x5afdb1[_0x357b7b]=_0x3e74d2['data']['get']({'rootName':_0x357b7b}),_0x5afdb1),{}),_0x3dae93=_0x3e74d2['plugins']['get']('Users')['users']['map'](_0xc2ee36=>({'id':_0xc2ee36['id'],'name':_0xc2ee36['name']})),_0x54febd=_0x3e74d2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e2e7d=_0x3e74d2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ffeea=_0x39434b['plugins']['get']('Users'),_0x2fb432=_0x39434b['plugins']['get']('TrackChangesEditing'),_0x58e0d8=_0x39434b['plugins']['get']('CommentsRepository');for(const _0x57b045 of _0x58e0d8['getCommentThreads']())_0x57b045['remove']();for(const _0x332046 of _0x3dae93)_0x4ffeea['getUser'](_0x332046['id'])||_0x4ffeea['addUser'](_0x332046);_0x4ffeea['me']||_0x4ffeea['useAnonymousUser']();for(const _0x8e4984 of _0x3e2e7d)_0x58e0d8['addCommentThread'](_0x8e4984);for(const _0x122828 of _0x54febd)_0x2fb432['addSuggestionData'](_0x122828);_0x39434b['data']['set'](_0x1953dd);}(_0x4dd035,_0x48075f),_0x48075f['execute'](_0x45e90a?'acceptAllSuggestions':'discardAllSuggestions');const _0x14ef33=v(_0x48075f)?_0x48075f['getFullData'](_0x1ddcac):_0x48075f['data']['get'](_0x1ddcac);return await _0x48075f['destroy'](),_0x14ef33;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|