@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240909.0 → 0.0.0-nightly-20240911.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
|
-
_0xbe230(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f0a50,_0x312918){super(),this['id']=_0x312918['id'],this['type']=_0x312918['type'],this['subType']=_0x312918['subType']||null,this['author']=_0x312918['author'],this['creator']=_0x312918['creator']||_0x312918['author'],this['isExternal']=Boolean(_0x312918['attributes']&&_0x312918['attributes']['@external']),this['data']=null,this['_model']=_0x2f0a50,this['_onAccept']=_0x312918['onAccept'],this['_onDiscard']=_0x312918['onDiscard'],this['_onAttributesChange']=_0x312918['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x312918['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 _0x502905=this;for(;_0x502905['previous'];)_0x502905=_0x502905['previous'];return _0x502905;}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'](_0x4818ac){this['_markerNames']['add'](_0x4818ac);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x23b5a3=>this['_model']['markers']['get'](_0x23b5a3))['filter'](_0x3031a0=>_0x3031a0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c1798=>{for(const _0x123b29 of this['getMarkers']())_0x3c1798['removeMarker'](_0x123b29);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c96d6){this['_model']['change'](_0x614419=>{_0x614419['removeMarker'](_0x1c96d6);}),this['_markerNames']['delete'](_0x1c96d6);}['addRange'](_0x3e0346){const _0x560495='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x560495),this['_model']['change'](_0x252629=>{_0x252629['addMarker'](_0x560495,{'range':_0x3e0346,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3f33c9){for(const _0x259837 of this['getRanges']())if(_0x259837['isIntersecting'](_0x3f33c9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x30c03b=>_0x30c03b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xa490df,_0x1dde9f)=>[..._0xa490df,..._0x1dde9f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x480928=this['getRanges']();if(0x1!=_0x480928['length'])return null;const _0x4ebfdd=_0x480928[0x0],_0x17eae3=_0x4ebfdd['start']['nodeAfter'],_0x21d725=_0x4ebfdd['end']['nodeBefore'];return _0x17eae3 instanceof _0x588c09?_0x17eae3!=_0x21d725?null:_0x17eae3: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 _0x55054e=[];let _0x6034bb=this['head'];for(;_0x6034bb;)_0x55054e['push'](_0x6034bb),_0x6034bb=_0x6034bb['next'];return _0x55054e;}['setAttribute'](_0x56f027,_0x5393eb){const _0x7d0644=_0x372f1e(this['attributes']);_0x4811e5(_0x7d0644,_0x56f027,_0x5393eb),_0x3b8fd5(_0x7d0644,this['attributes'])||(this['attributes']=_0x7d0644,this['_onAttributesChange'](_0x7d0644));}['removeAttribute'](_0x561759){const _0x4aa7d4=_0x372f1e(this['attributes']);_0xb28d5(_0x4aa7d4,_0x561759),_0x3b8fd5(_0x4aa7d4,this['attributes'])||(this['attributes']=_0x4aa7d4,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 _0x13e654()['substr'](0x1,0x5);}}function o(_0x47da72,_0x272218,_0x467a97){const t=_0x47da72['t'];switch(_0x272218){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',_0x467a97);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x467a97);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x467a97);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x467a97);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x467a97);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',_0x467a97);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x467a97);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',_0x467a97);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x467a97);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x467a97);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x467a97);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x467a97);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x467a97);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x467a97);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x467a97);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x467a97);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x467a97);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x467a97);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x467a97);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x467a97);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x467a97);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x467a97);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x467a97);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'},_0x467a97);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x467a97);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x467a97);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x467a97);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x467a97);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x467a97);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'},_0x467a97);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x467a97);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x467a97);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x467a97);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x467a97);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'},_0x467a97);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x467a97);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'},_0x467a97);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'},_0x467a97);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x467a97);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'},_0x467a97);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x467a97);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'},_0x467a97);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x467a97);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x467a97);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'},_0x467a97);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'},_0x467a97);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'},_0x467a97);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x467a97);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'},_0x467a97);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'},_0x467a97);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'},_0x467a97);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x272218;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x52365b,_0x52f3be){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x52365b,this['_locale']=_0x52f3be;}['getDescriptions'](_0x5caa1d){const _0x56210e=[],_0xcf6f94=new Set(),_0x3f5c03=new Set();for(let _0x1e2c86=0x0;_0x1e2c86<_0x5caa1d['length'];_0x1e2c86++){const _0x4d1291=_0x5caa1d[_0x1e2c86];if(!_0x4d1291['isInContent'])continue;const _0x54af0f=this['_handleCustomCallbackDescription'](_0x4d1291);if(_0x54af0f){if(null!=_0x4d1291['subType']){if(_0xcf6f94['has'](_0x4d1291['subType']))continue;_0xcf6f94['add'](_0x4d1291['subType']);}_0x56210e['push'](_0x54af0f);}else{if('attribute'!=_0x4d1291['type'])'insertion'!=_0x4d1291['type']&&'deletion'!=_0x4d1291['type']||this['_handleInsertRemoveSuggestionDescription'](_0x56210e,_0x4d1291,_0x5caa1d[_0x1e2c86+0x1]);else{const _0x1d95e4=_0x4d1291['data']['key'];if(_0x3f5c03['has'](_0x1d95e4))continue;_0x3f5c03['add'](_0x4d1291['data']['key']),_0x1d95e4==m?this['_handleRenameSuggestionDescription'](_0x56210e,_0x4d1291):this['_handleAttributeSuggestionDescription'](_0x56210e,_0x4d1291);}}}return this['_resolveDescriptionItems'](_0x56210e);}['registerDescriptionCallback'](_0x9a3000){this['_customCallbacks']['push'](_0x9a3000);}['registerElementLabel'](_0x59bc4b,_0x131539,_0x202c11=_0x5b85e5['normal']){'function'==typeof _0x59bc4b?_0x17f9c5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59bc4b,'label':_0x131539,'priority':_0x202c11}):this['_itemLabels']['set'](_0x59bc4b,_0x131539);}['registerAttributeLabel'](_0x5cbe25,_0xb8af55){this['_attributeLabels']['set'](_0x5cbe25,_0xb8af55);}['getItemLabel'](_0x930185,_0x1f00ed=0x1){let _0x47f8d0;for(const _0x3f6343 of this['_itemLabelsCallbacks'])if(_0x3f6343['matchingCallback'](_0x930185)){_0x47f8d0=_0x3f6343['label'];break;}return _0x47f8d0||(_0x47f8d0=this['_itemLabels']['get'](_0x930185['name'])),_0x47f8d0?_0x47f8d0(_0x1f00ed):0x1!==_0x1f00ed?_0x1f00ed+'\x20'+_0x930185['name']+'s':''+_0x930185['name'];}['_addDescriptionItems'](_0x1035b3,_0x358559){const _0x392016=_0x358559['getFirstRange']()['getWalker'](),_0x5b1473='insertion'==_0x358559['type']?'add':'remove';for(const _0x2fbd7b of _0x392016){const _0x127592=_0x2fbd7b['item'],_0x24d004=_0x1035b3[_0x1035b3['length']-0x1];if(_0x127592['is']('$textProxy'))_0x24d004&&_0x24d004['type']['indexOf']('Container')>-0x1&&_0x1035b3['pop'](),_0x24d004&&'text'==_0x24d004['type']?_0x24d004[_0x5b1473]+=_0x127592['data']:_0x1035b3['push']({'type':'text','add':'add'==_0x5b1473?_0x127592['data']:'','remove':'remove'==_0x5b1473?_0x127592['data']:''});else{if(this['_schema']['isObject'](_0x127592)){const _0x208308=_0x127592;if(_0x24d004&&_0x24d004['type']['indexOf']('Container')>-0x1&&_0x1035b3['pop'](),'elementEnd'==_0x2fbd7b['type'])continue;_0x24d004&&_0x24d004['type']==_0x5b1473+'Object'&&_0x24d004['element']['name']==_0x208308['name']?_0x24d004['quantity']++:_0x1035b3['push']({'type':_0x5b1473+'Object','element':_0x208308,'quantity':0x1}),_0x392016['skip'](_0x340ecf=>!('elementEnd'==_0x340ecf['type']&&_0x340ecf['item']==_0x127592));}else{if(this['_schema']['checkChild'](_0x127592,'$text')||_0x127592['is']('element','softBreak')){const _0x6dbebd=_0x127592;if('add'==_0x5b1473&&'elementStart'==_0x2fbd7b['type']||'remove'==_0x5b1473&&'elementEnd'==_0x2fbd7b['type'])continue;if(_0x24d004&&-0x1==_0x24d004['type']['indexOf']('Container')){'text'==_0x24d004['type']&&(_0x24d004[_0x5b1473]+='\x0a');continue;}let _0x13eaad;if(_0x13eaad='add'==_0x5b1473?_0x6dbebd['nextSibling']&&!this['_schema']['isObject'](_0x6dbebd['nextSibling'])?_0x6dbebd['nextSibling']:null:_0x6dbebd['previousSibling']&&!this['_schema']['isObject'](_0x6dbebd['previousSibling'])?_0x6dbebd['previousSibling']:null,_0x6dbebd['isEmpty']||_0x13eaad&&_0x13eaad['isEmpty']){const _0x3e0eab=_0x13eaad&&_0x13eaad['isEmpty']?_0x13eaad:_0x6dbebd;_0x24d004&&_0x24d004['type']==_0x5b1473+'EmptyContainer'&&_0x24d004['element']['name']==_0x3e0eab['name']?_0x24d004['quantity']++:_0x1035b3['push']({'type':_0x5b1473+'EmptyContainer','element':_0x3e0eab,'quantity':0x1});}else _0x1035b3['push']({'type':_0x5b1473+'Container','element':_0x6dbebd});}}}}}['_resolveDescriptionItems'](_0x374800){const _0x32ab6c=this['_locale'],_0x1f490b=[],_0x78eaa6=[],_0x16189d=[];for(const _0xa469c5 of _0x374800)switch(_0xa469c5['type']){case'text':if(_0xa469c5['add']=_0xa469c5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xa469c5['remove']=_0xa469c5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xa469c5['add']&&''!=_0xa469c5['remove']){_0x1f490b['push']({'type':'replace','content':o(_0x32ab6c,'REPLACE_TEXT',['\x22'+_0xa469c5['remove']+'\x22','\x22'+_0xa469c5['add']+'\x22'])});continue;}if(null!=_0xa469c5['add']['match'](/^ +$/)){_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Insert:*\x20%0',o(_0x32ab6c,'ELEMENT_SPACE',_0xa469c5['add']['length']))});continue;}if(null!=_0xa469c5['remove']['match'](/^ +$/)){_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Remove:*\x20%0',o(_0x32ab6c,'ELEMENT_SPACE',_0xa469c5['remove']['length']))});continue;}if(''!=_0xa469c5['add']){_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Insert:*\x20%0','\x22'+_0xa469c5['add']+'\x22')});continue;}_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Remove:*\x20%0','\x22'+_0xa469c5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Insert:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Remove:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'addContainer':_0x1f490b['push']({'type':'insertion','content':o(_0x32ab6c,'*Split:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'removeContainer':_0x1f490b['push']({'type':'deletion','content':o(_0x32ab6c,'*Merge:*\x20%0',this['getItemLabel'](_0xa469c5['element'],_0xa469c5['quantity']))});continue;case'addFormat':_0x78eaa6['push'](_0xa469c5['key']);continue;case'removeFormat':_0x16189d['push'](_0xa469c5['key']);continue;default:_0x1f490b['push'](_0xa469c5);}if(_0x78eaa6['length']){const _0x3ff70a=_0x78eaa6['map'](_0x5ae706=>this['_attributeLabels']['has'](_0x5ae706)?this['_attributeLabels']['get'](_0x5ae706):_0x5ae706)['join'](',\x20');_0x1f490b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3ff70a)});}if(_0x16189d['length']){const _0x17a543=_0x16189d['map'](_0x17c1bf=>this['_attributeLabels']['has'](_0x17c1bf)?this['_attributeLabels']['get'](_0x17c1bf):_0x17c1bf)['join'](',\x20');_0x1f490b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x17a543)});}return _0x1f490b;}['_handleCustomCallbackDescription'](_0x3f22f8){for(const _0x281950 of this['_customCallbacks']){const _0x5da127=_0x281950(_0x3f22f8);if(_0x5da127&&'type'in _0x5da127)return _0x5da127;}}['_handleAttributeSuggestionDescription'](_0x4083d,_0x225d5e){const _0x241b18=_0x225d5e['data'],_0x74b27a=void 0x0===_0x241b18['newValue']?'removeFormat':'addFormat';_0x4083d['push']({'type':_0x74b27a,'key':_0x241b18['key']});}['_handleRenameSuggestionDescription'](_0x27f898,_0x14810e){_0x27f898['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x14810e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x21f099,_0x966283,_0x2c5e52){if(this['_addDescriptionItems'](_0x21f099,_0x966283),_0x2c5e52&&_0x2c5e52['getFirstRange']()&&!_0x966283['getFirstRange']()['end']['isEqual'](_0x2c5e52['getFirstRange']()['start'])){const _0x5a86a4=_0x21f099[_0x21f099['length']-0x1],_0x471b59='insertion'==_0x966283['type']?'add':'remove';_0x5a86a4&&'text'==_0x5a86a4['type']&&(_0x5a86a4[_0x471b59]+='\x0a');}}}class V extends _0x4fe0d7{['afterInit'](){const _0x1e4be5=this['editor'],_0x179032=_0x1e4be5['plugins']['get']('TrackChangesEditing');_0x1e4be5['commands']['get']('showAIAssistant')&&_0x179032['enableCommand']('showAIAssistant');}}class U extends _0x4fe0d7{['afterInit'](){const _0xd8b7d4=this['editor'],_0x12e28d=_0xd8b7d4['locale'];if(!_0xd8b7d4['plugins']['has']('AlignmentEditing'))return;const _0x7e3d84=_0xd8b7d4['plugins']['get']('TrackChangesEditing');_0x7e3d84['enableDefaultAttributesIntegration']('alignment'),_0x7e3d84['registerBlockAttribute']('alignment'),_0x7e3d84['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x12e28d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x104e32=this['editor'],_0x5c1958=_0x104e32['locale'];_0x104e32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214d21=>{if('formatBlock'!=_0x214d21['type'])return;const {data:_0x334396}=_0x214d21;if(_0x334396&&'alignment'==_0x334396['commandName']){const _0x27f346=_0x334396['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5c1958,'*Format:*\x20%0',function(_0x238ec2){switch(_0x238ec2){case'left':return o(_0x5c1958,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5c1958,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5c1958,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5c1958,'FORMAT_JUSTIFY_TEXT');}}(_0x27f346))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4fe0d7{['afterInit'](){const _0x3b7fa1=this['editor'],_0x26de2a=_0x3b7fa1['plugins']['get']('TrackChangesEditing'),_0x1641f7=_0x3b7fa1['locale'];for(const _0x47980b of ti){if(!_0x3b7fa1['plugins']['has'](_0x47980b))continue;const _0x1156f=_0x47980b['slice'](0x0,-0x7)['toLowerCase'](),_0x14f023='FORMAT_'+_0x1156f['toUpperCase']();_0x26de2a['enableDefaultAttributesIntegration'](_0x1156f),_0x26de2a['registerInlineAttribute'](_0x1156f),_0x26de2a['descriptionFactory']['registerAttributeLabel'](_0x1156f,o(_0x1641f7,_0x14f023));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be34a=this['editor'],_0x43e570=_0x1be34a['locale'],_0x3353a3=_0x1be34a['plugins']['get']('TrackChangesEditing');function _0x476965(_0x1d46f2,_0x16744d){_0x3353a3['descriptionFactory']['registerDescriptionCallback'](_0x3e8cd5=>{if('formatInline'!=_0x3e8cd5['type'])return;const {data:_0x5db420}=_0x3e8cd5;return _0x5db420&&_0x5db420['commandName']===_0x1d46f2?_0x5db420['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43e570,'*Format:*\x20%0',_0x16744d)}:{'type':'format','content':o(_0x43e570,'*Remove\x20format:*\x20%0',_0x16744d)}:void 0x0;});}_0x476965('bold',o(_0x43e570,'FORMAT_BOLD')),_0x476965('italic',o(_0x43e570,'FORMAT_ITALIC')),_0x476965('underline',o(_0x43e570,'FORMAT_UNDERLINE')),_0x476965('code',o(_0x43e570,'FORMAT_CODE')),_0x476965('strikethrough',o(_0x43e570,'FORMAT_STRIKETHROUGH')),_0x476965('subscript',o(_0x43e570,'FORMAT_SUBSCRIPT')),_0x476965('superscript',o(_0x43e570,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4fe0d7{['afterInit'](){const _0x27f355=this['editor'],_0x14bc03=_0x27f355['locale'];if(!_0x27f355['plugins']['has']('BlockQuoteEditing'))return;const _0x1ae78b=_0x27f355['plugins']['get']('TrackChangesEditing'),_0x365ed2=this['editor']['commands']['get']('blockQuote');_0x1ae78b['enableCommand']('blockQuote',(_0x49f1d7,_0x4d25d5={})=>{const _0x345a47=this['editor']['model']['document']['selection'],_0x56478b=_0x4d25d5&&void 0x0!==_0x4d25d5['forceValue']?_0x4d25d5['forceValue']:!_0x365ed2['value'];let _0x1eb5e8=[];if(_0x56478b){const _0x22d987=Array['from'](_0x345a47['getSelectedBlocks']())['filter'](_0x18e1c0=>oo(_0x18e1c0)||function(_0x301b03,_0x450781){const _0x2686bc=_0x450781['checkChild'](_0x301b03['parent'],'blockQuote'),_0x158943=_0x450781['checkChild'](['$root','blockQuote'],_0x301b03);return _0x2686bc&&_0x158943;}(_0x18e1c0,this['editor']['model']['schema']));_0x1eb5e8=to(_0x22d987,_0x27f355['model']);}else{const _0x386cd3=Array['from'](_0x345a47['getSelectedBlocks']())['filter'](_0x22c10b=>oo(_0x22c10b));_0x1eb5e8=to(_0x386cd3,_0x27f355['model']);}_0x27f355['model']['change'](()=>{for(const _0x2e47fb of _0x1eb5e8)_0x1ae78b['markBlockFormat'](_0x2e47fb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x56478b}]});});}),_0x1ae78b['descriptionFactory']['registerDescriptionCallback'](_0x4fa854=>{const {data:_0x29c333}=_0x4fa854;if(_0x29c333&&'blockQuote'==_0x29c333['commandName']){const _0x31a1cd=o(_0x14bc03,'ELEMENT_BLOCK_QUOTE');return _0x29c333['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14bc03,'*Set\x20format:*\x20%0',_0x31a1cd)}:{'type':'format','content':o(_0x14bc03,'*Remove\x20format:*\x20%0',_0x31a1cd)};}});}}function oo(_0xb61689){return'blockQuote'==_0xb61689['parent']['name'];}class L extends _0x4fe0d7{['afterInit'](){const _0x4419c6=this['editor'];_0x4419c6['plugins']['has']('CaseChange')&&(_0x4419c6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4419c6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4419c6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4fe0d7{['afterInit'](){const _0x5bb6e1=this['editor'];_0x5bb6e1['commands']['get']('ckbox')&&_0x5bb6e1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4fe0d7{['afterInit'](){const _0x2fe4c4=this['editor'];if(!_0x2fe4c4['plugins']['has']('CodeBlock'))return;const _0x2ed2a8=_0x2fe4c4['plugins']['get']('TrackChangesEditing'),_0x59448e=_0x2fe4c4['locale'],_0x2c7dfb=_0x2fe4c4['config']['get']('codeBlock')['languages'],_0xcd29e0=_0x2fe4c4['commands']['get']('codeBlock');_0x2ed2a8['enableCommand']('indentCodeBlock'),_0x2ed2a8['enableCommand']('outdentCodeBlock'),_0x2ed2a8['enableCommand']('codeBlock',(_0xc5cea1,_0x5d36be={})=>{const _0x14d65b=_0x2fe4c4['model'],_0x190803=_0x2fe4c4['model']['document']['selection'],_0x21aba2=_0x5d36be&&void 0x0!==_0x5d36be['forceValue']?_0x5d36be['forceValue']:!_0xcd29e0['value'];let _0x2a5ec6;_0x5d36be['language']||(_0x5d36be['language']=_0x2c7dfb[0x0]['language']),_0x2a5ec6=_0x21aba2?Array['from'](_0x190803['getSelectedBlocks']())['filter'](_0x1783c5=>eo(_0x1783c5)||function(_0x3cde6c,_0x2730a4){if(_0x3cde6c['is']('rootElement')||_0x2730a4['isLimit'](_0x3cde6c))return!0x1;return _0x2730a4['checkChild'](_0x3cde6c['parent'],'codeBlock');}(_0x1783c5,_0x14d65b['schema'])):Array['from'](_0x190803['getSelectedBlocks']())['filter'](_0xf821e6=>eo(_0xf821e6));const _0x1a4fe2=to(_0x2a5ec6,_0x14d65b);_0x14d65b['change'](()=>{for(const _0x317d79 of _0x1a4fe2)_0x2ed2a8['markBlockFormat'](_0x317d79,{'commandName':'codeBlock','commandParams':[{..._0x5d36be,'forceValue':_0x21aba2}],'formatGroupId':'blockName'});});}),(_0x2ed2a8['descriptionFactory']['registerElementLabel']('codeBlock',_0x104a80=>o(_0x59448e,'ELEMENT_CODE_BLOCK',_0x104a80)),_0x2ed2a8['descriptionFactory']['registerDescriptionCallback'](_0x514d1d=>{if('formatBlock'!=_0x514d1d['type'])return;const _0x1c84dc=_0x59448e['t'],{data:_0x40588d}=_0x514d1d;if(!_0x40588d||'codeBlock'!=_0x40588d['commandName'])return;const _0xb3de2f=_0x40588d['commandParams'][0x0]['language'],_0x49af1d=_0x1c84dc(_0x2c7dfb['find'](_0xbe1eaa=>_0xbe1eaa['language']===_0xb3de2f)['label'])['toLowerCase']();return _0x40588d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59448e,'*Set\x20format:*\x20%0',o(_0x59448e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49af1d+')')}:{'type':'format','content':o(_0x59448e,'*Remove\x20format:*\x20%0',o(_0x59448e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x29e186){return'codeBlock'==_0x29e186['name'];}class q extends _0x4fe0d7{['afterInit'](){const _0x229713=this['editor'];if(!_0x229713['plugins']['has']('CommentsEditing'))return;_0x229713['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x36e66e,_0x3e55ab,_0x2f19bf){const _0x224aba=[];for(const _0x5c7709 of _0x3e55ab['getItems']())_0x5c7709['hasAttribute'](_0x36e66e)&&_0x224aba['push'](_0x2f19bf['createRangeOn'](_0x5c7709));return _0x224aba;}function _e(_0x20d325,_0x32aa47,{showActiveMarker:_0x10e8e4=!0x0}={}){const _0x12d40d=_0x20d325['plugins']['get']('TrackChangesEditing');return(_0x183ced,_0x4d9b47,_0x18777b)=>{if(!_0x18777b['consumable']['test'](_0x4d9b47['markerRange'],_0x183ced['name']))return;const _0x458baa=_0x4d9b47['markerRange']['getWalker'](),_0x99a481=_0x4d9b47['markerRange']['start'],_0x13a6e1=_0x20d325['model']['schema'];let _0x4ba1dd=null,_0x589037=null,_0x2139c2=!0x1,_0x3a89e5=!0x1;for(const _0x5f0995 of _0x458baa){const _0x213c6a=_0x5f0995['item'];_0x2139c2=_0x2139c2||_0x13a6e1['isContent'](_0x213c6a);const _0x17428a=_0x18777b['mapper']['toViewElement'](_0x213c6a);if(_0x17428a&&_0x17428a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5f0995['type']&&(_0x13a6e1['isBlock'](_0x213c6a)&&!_0x13a6e1['isLimit'](_0x213c6a)&&(_0x213c6a['nextSibling']||_0x99a481['isAtEnd']?_0x4ba1dd&&_0x4ba1dd['parent']==_0x213c6a||(_0x4ba1dd=_0x213c6a,_0x2b5139(_0x5f0995['previousPosition']),_0x3a89e5=!0x0):_0x589037=_0x589037||_0x5f0995['previousPosition']));}function _0x2b5139(_0x129a6f){const {authorId:_0x1803ae}=_0x12d40d['_splitMarkerName'](_0x4d9b47['markerName']),_0x3a02b2=_0x18777b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32aa47,'data-author-id':_0x1803ae}),_0x4ba94b=_0x18777b['mapper']['toViewPosition'](_0x129a6f);_0x10e8e4&&_0x12d40d['activeMarkers']['includes'](_0x4d9b47['markerName'])&&_0x18777b['writer']['addClass']('ck-suggestion-marker--active',_0x3a02b2),_0x18777b['writer']['insert'](_0x4ba94b,_0x3a02b2),_0x18777b['mapper']['bindElementToMarker'](_0x3a02b2,_0x4d9b47['markerName']);}_0x2139c2||_0x3a89e5||!_0x589037||_0x2b5139(_0x589037);};}class z extends _0x4fe0d7{static get['requires'](){return[_0x1e078e];}['init'](){const _0x26c04c=this['editor'],_0x587097=_0x26c04c['plugins']['get']('TrackChangesEditing');_0x587097['enableCommand']('delete');const _0x291e0a=_0x26c04c['commands']['get']('deleteForward');_0x587097['enableCommand']('deleteForward',(_0x6ac6e3,_0x2ad27e={})=>{const _0x380eb8=_0x26c04c['model']['createSelection'](_0x26c04c['model']['document']['selection']);_0x380eb8['isCollapsed']&&_0x26c04c['model']['modifySelection'](_0x380eb8,{'direction':'forward','unit':_0x2ad27e['unit']});const _0x62fe79=_0x380eb8['getFirstRange'](),_0x2b4476=_0x12550f['fromRange'](_0x62fe79);let _0x4b2fad;_0x6ac6e3(_0x2ad27e),_0x4b2fad='$graveyard'==_0x2b4476['root']['rootName']?_0x26c04c['model']['createRange'](_0x62fe79['start']):_0x26c04c['model']['createRange'](_0x2b4476['start'],_0x2b4476['end']),_0x2b4476['detach'](),_0x26c04c['model']['enqueueChange'](_0x291e0a['buffer']['batch'],_0x3fbe6a=>{_0x291e0a['buffer']['lock'](),_0x3fbe6a['setSelection'](_0x3fbe6a['createRange'](_0x4b2fad['end'])),_0x291e0a['buffer']['unlock']();});}),_0x26c04c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x26c04c,'merge'),{'priority':'high'}),_0x26c04c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b1c42,_0x137261,_0x1e1b4a)=>{_0x1e1b4a['options']['showSuggestionHighlights']&&_e(_0x26c04c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b1c42,_0x137261,_0x1e1b4a);},{'priority':'high'}),_0x26c04c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x36366d,_0x21fe01,_0x4bae4c)=>{const _0xdf51a0=_0x4bae4c['mapper']['markerNameToElements'](_0x21fe01['markerName']);if(_0xdf51a0){for(const _0x4d1f2b of _0xdf51a0)_0x4d1f2b['is']('uiElement')&&(_0x4bae4c['mapper']['unbindElementFromMarkerName'](_0x4d1f2b,_0x21fe01['markerName']),_0x4bae4c['writer']['remove'](_0x4d1f2b));}},{'priority':'high'});}}class K extends _0x4fe0d7{['afterInit'](){const _0x5d5eea=this['editor'];if(!_0x5d5eea['plugins']['has']('ListEditing'))return;const _0x54cbd8=_0x5d5eea['locale'],_0x41ee9e=_0x5d5eea['plugins']['get']('TrackChangesEditing'),_0x4fbda0=_0x5d5eea['plugins']['has']('TodoListEditing'),_0x30f26a=!!_0x5d5eea['config']['get']('list.multiBlock');function _0x193fc2(_0xb0e52){return{'type':'format','content':''+o(_0x54cbd8,'*Set\x20format:*\x20%0',_0xb0e52)};}function _0x45d4e4(_0x31afab){return{'type':'format','content':''+o(_0x54cbd8,'*Remove\x20format:*\x20%0',_0x31afab)};}_0x41ee9e['enableDefaultAttributesIntegration']('numberedList'),_0x41ee9e['enableDefaultAttributesIntegration']('bulletedList'),_0x41ee9e['enableDefaultAttributesIntegration']('customNumberedList'),_0x41ee9e['enableDefaultAttributesIntegration']('customBulletedList'),_0x41ee9e['enableDefaultAttributesIntegration']('indentList'),_0x41ee9e['enableDefaultAttributesIntegration']('outdentList'),_0x41ee9e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x41ee9e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x41ee9e['registerBlockAttribute']('listItemId'),_0x41ee9e['registerBlockAttribute']('listType'),_0x41ee9e['registerBlockAttribute']('listIndent'),_0x30f26a&&(_0x41ee9e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x41ee9e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4fbda0&&(_0x41ee9e['enableDefaultAttributesIntegration']('todoList'),_0x41ee9e['enableDefaultAttributesIntegration']('checkTodoList'),_0x41ee9e['registerBlockAttribute']('todoListChecked'),_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x6c659c=>{const {data:_0x54e4ab}=_0x6c659c;if(_0x54e4ab&&'todoListChecked'==_0x54e4ab['key'])return{'type':'format','content':_0x54e4ab['newValue']?o(_0x54cbd8,'*Check\x20item*'):o(_0x54cbd8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4aee4e=>{if(_0x4aee4e['batch']['isUndo'])return!0x1;let _0x49710d=!0x1;const _0x245b47=_0x41ee9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2186f2=>'todoListChecked'===_0x41ee9e['_getAttributeKey'](_0x2186f2));for(const _0x2bc883 of _0x245b47){'todo'!=_0x2bc883['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x41ee9e['_findSuggestions'](_0x2bc883['getFirstRange'](),'attribute')['find'](_0x424810=>'listType'===_0x41ee9e['_getAttributeKey'](_0x424810['suggestion']))||(_0x4aee4e['removeMarker'](_0x2bc883['getFirstMarker']()),_0x49710d=!0x0));}return _0x49710d;})),_0x41ee9e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x54cbd8,'FORMAT_INDENT'));const _0x29398c={'type':'format','content':''};_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x451c00=>{const {data:_0x2dd5a8}=_0x451c00;if(!_0x2dd5a8||'listType'!=_0x2dd5a8['key'])return;let _0x78c36d=_0x451c00['head'];for(;_0x78c36d;){if(_0x78c36d['data']&&(('listStyle'==_0x78c36d['data']['key']||'listMarkerStyle'==_0x78c36d['data']['key'])&&(_0x78c36d['data']['newValue']&&'default'!=_0x78c36d['data']['newValue']||'default'!=_0x78c36d['data']['oldValue']&&!_0x2dd5a8['newValue'])||!_0x30f26a&&_0x78c36d['data']['key']==m))return _0x29398c;_0x78c36d=_0x78c36d['next'];}if(null==_0x2dd5a8['newValue'])switch(_0x2dd5a8['oldValue']){case'bulleted':return _0x45d4e4(o(_0x54cbd8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45d4e4(o(_0x54cbd8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45d4e4(o(_0x54cbd8,'ELEMENT_TODO_LIST'));}switch(_0x2dd5a8['newValue']){case'bulleted':return _0x193fc2(o(_0x54cbd8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x193fc2(o(_0x54cbd8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x193fc2(o(_0x54cbd8,'ELEMENT_TODO_LIST'));}}),_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x177c33=>{const {data:_0x373663}=_0x177c33;if(_0x373663&&'listIndent'==_0x373663['key'])return null==_0x373663['newValue']||null==_0x373663['oldValue']&&0x0==_0x373663['newValue']?_0x29398c:void 0x0;}),_0x41ee9e['descriptionFactory']['registerDescriptionCallback'](_0x3080df=>{if('attribute'!=_0x3080df['type'])return;const {data:_0x2b03c7}=_0x3080df;if(!_0x2b03c7||'listItemId'!=_0x2b03c7['key'])return;const _0x1bab4b=Ee(_0x3080df);return'newValue'==_0x1bab4b?{'type':'format','content':o(_0x54cbd8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1bab4b?{'type':'format','content':o(_0x54cbd8,'*Split:*\x20list\x20item')}:_0x29398c;}),_0x5d5eea['model']['document']['registerPostFixer'](_0x6ad0d7=>this['listItemIdFixer'](_0x6ad0d7)),_0x5d5eea['model']['document']['registerPostFixer'](_0x4911a1=>this['noTrackChangesFixer'](_0x4911a1)),_0x5d5eea['model']['document']['on']('change:data',(_0x502839,_0x4c5a68)=>{if(_0x4c5a68['isUndo']||!_0x4c5a68['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3f65e3){if(_0x3f65e3['batch']['isUndo']||!_0x3f65e3['batch']['isLocal'])return!0x1;let _0x40c39e=!0x1;const _0x355a00=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x433c2d=>_0x433c2d['data']&&'listItemId'==_0x433c2d['data']['key'])['filter'](_0x587456=>_0x587456['data']['newValue']&&_0x587456['data']['oldValue']);for(const _0x346f91 of _0x355a00)Ee(_0x346f91)||(_0x3f65e3['removeMarker'](_0x346f91['getFirstMarker']()),_0x40c39e=!0x0);return _0x40c39e;}['noTrackChangesFixer'](_0x2b4933){if(_0x2b4933['batch']['isUndo']||!_0x2b4933['batch']['isLocal'])return!0x1;const _0x277076=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x277076['trackChangesCommand']['value'])return!0x1;let _0x382a3a=!0x1;const _0x5eb310=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xaab487=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xc5562a=>'attribute'==_0xc5562a['type'])['filter'](_0x37d6e8=>_0x5eb310['includes'](_0x37d6e8['attributeKey']));if(0x0==_0xaab487['length'])return _0x382a3a;for(const _0x34a361 of _0xaab487){const _0x1d3614=_0x277076['_findSuggestions'](_0x34a361['range'],'attribute')['filter'](_0x20323c=>!_0x20323c['meta']['isNextTo'])['map'](_0x324410=>_0x324410['suggestion'])['filter'](_0x52162d=>{const _0x2cad51=_0x277076['_getAttributeKey'](_0x52162d);return _0x5eb310['includes'](_0x2cad51);});if(_0x1d3614['length']){for(const _0x2c00ea of _0x1d3614)_0x2b4933['removeMarker'](_0x2c00ea['getFirstMarker']());_0x382a3a=!0x0;}}return _0x382a3a;}['assureChains'](){const _0x1d16ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8b719d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x53def5;const _0x529ebe=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ac274=>{if(_0x5ac274['data']['oldRange']||!_0x5ac274['data']['newRange'])return null;if(!_0x5ac274['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa7a5cc}=_0x1d16ff['_splitMarkerName'](_0x5ac274['name']);if(!_0x1d16ff['hasSuggestion'](_0xa7a5cc))return null;const _0x23da69=_0x1d16ff['getSuggestion'](_0xa7a5cc);return _0x8b719d['includes'](_0x23da69['data']['key']);})['map'](_0x52fa16=>{const {id:_0x22745b}=_0x1d16ff['_splitMarkerName'](_0x52fa16['name']),_0x31f88d=_0x1d16ff['getSuggestion'](_0x22745b);return _0x53def5=_0x31f88d['attributes']['groupId'],_0x31f88d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x529ebe['size'])return;const _0x3387f9=_0x1d16ff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6a29f1=>'attribute'==_0x6a29f1['type']&&_0x6a29f1['data']&&_0x8b719d['includes'](_0x6a29f1['data']['key'])&&_0x6a29f1['attributes']['groupId']!=_0x53def5)['map'](_0x182dee=>({'listItem':_0x182dee['getFirstRange']()['start']['nodeAfter'],'groupId':_0x182dee['attributes']['groupId']})),_0x59c700=new Set();for(const {groupId:_0x1b24c5,listItem:_0x2e8d64}of _0x3387f9)_0x529ebe['has'](_0x2e8d64)&&_0x59c700['add'](_0x1b24c5);for(const _0x132a00 of _0x1d16ff['getSuggestions']())_0x59c700['has'](_0x132a00['attributes']['groupId'])&&_0x132a00['setAttribute']('groupId',_0x53def5);}['_supportLegacySuggestions'](){const _0x5e99cb=this['editor'],_0xac213d=_0x5e99cb['locale'],_0xebb268=_0x5e99cb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xebb268['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x344bcf,_0x3044be){const _0x3772bd=[];for(let _0xac46ab of _0x344bcf)_0xac46ab['start']['nodeAfter']===_0xac46ab['end']['parent']&&(_0xac46ab=_0x5e99cb['model']['createRange'](_0x5e99cb['model']['createPositionAt'](_0xac46ab['start']['nodeAfter'],0x0))),_0x3772bd['push'](_0xac46ab);_0x5e99cb['model']['change'](_0x204b39=>{const _0x33d195=_0x5e99cb['model']['document']['selection'],_0xd9acc9=Array['from'](_0x33d195['getRanges']())['map'](_0x2a6bbf=>_0x12550f['fromRange'](_0x2a6bbf));_0x204b39['setSelection'](_0x3772bd),_0x5e99cb['commands']['get'](_0x3044be['commandName'])['refresh'](),_0x3044be['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5e99cb['execute'](_0x3044be['commandName'],..._0x3044be['commandParams']),_0x204b39['setSelection'](_0xd9acc9);for(const _0x4f2e5b of _0xd9acc9)_0x4f2e5b['detach']();});}),_0xebb268['descriptionFactory']['registerElementLabel'](function(_0x17c04b){const _0x2fd453=!_0x5e99cb['model']['schema']['isObject'](_0x17c04b),_0x2734c6=_0x17c04b['previousSibling'],_0x3b9760=_0x17c04b['nextSibling'],_0x27566b=_0x17c04b['getAttribute']('listItemId'),_0x15c97a=!_0x2734c6||_0x2734c6['getAttribute']('listItemId')!==_0x27566b,_0x161015=!_0x3b9760||_0x3b9760['getAttribute']('listItemId')!==_0x27566b;return _0x2fd453&&Boolean(_0x27566b)&&_0x15c97a&&_0x161015;},_0x15ffd2=>o(_0xac213d,'ELEMENT_LIST_ITEM',_0x15ffd2));}['_registerLegacyDescription'](){const _0x46e965=this['editor'],_0x1ca3d1=_0x46e965['locale'];function _0x3550a7(_0x28ca16){const _0x7d4ec=_0x46e965['commands']['get']('bulletedList')['value'],_0x204977=_0x46e965['commands']['get']('numberedList')['value'];return'numberedList'===_0x28ca16?_0x7d4ec:_0x204977;}_0x46e965['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf98101){if('formatBlock'!=_0xf98101['type'])return;const {data:_0x437347}=_0xf98101;if(!_0x437347)return;let _0x1a21bc,_0x161691,_0x1c3ea4,_0x9fdbf4;switch(_0x437347['commandName']){case'bulletedList':_0x1c3ea4=_0x437347['commandParams'][0x0]['forceValue'],_0x9fdbf4=_0x3550a7(_0x437347['commandName']),_0x1a21bc=_0x1c3ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9fdbf4&&_0x46e965['config']['get']('list.multiBlock')||(_0x1a21bc='*Change\x20to:*\x20%0'),_0x161691={'type':'format','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1c3ea4=_0x437347['commandParams'][0x0]['forceValue'],_0x9fdbf4=_0x3550a7(_0x437347['commandName']),_0x1a21bc=_0x1c3ea4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9fdbf4&&_0x46e965['config']['get']('list.multiBlock')||(_0x1a21bc='*Change\x20to:*\x20%0'),_0x161691={'type':'format','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1a21bc='*Indent:*\x20%0',_0x161691={'type':'format','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1a21bc=function(_0x594d52){const _0x52401c=_0x594d52['getFirstRange']();let _0x3ac9e9=_0x52401c['start']['nodeAfter'];for(;_0x3ac9e9&&_0x52401c['containsItem'](_0x3ac9e9);){if(_0x3ac9e9['getAttribute']('listIndent')>0x0)return!0x1;_0x3ac9e9=_0x3ac9e9['nextSibling'];}return!0x0;}(_0xf98101)?o(_0x1ca3d1,'*Format:*\x20remove\x20from\x20%0',o(_0x1ca3d1,function(_0xc5926e){return'ELEMENT_'+_0xc5926e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf98101))):o(_0x1ca3d1,'*Outdent:*\x20%0',o(_0x1ca3d1,'ELEMENT_LIST_ITEM')),_0x161691={'type':'format','content':_0x1a21bc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x437347['multipleBlocks']&&(_0x1a21bc='*Merge:*\x20%0',_0x161691={'type':'deletion','content':o(_0x1ca3d1,_0x1a21bc,o(_0x1ca3d1,'ELEMENT_LIST_ITEM'))});}return _0x161691;});}}function Ee(_0x4da961){let _0x58fd40=_0x4da961['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x58fd40;){const _0x896abc=_0x58fd40['getAttribute']('listItemId');if(!_0x896abc)return!0x1;if(_0x896abc==_0x4da961['data']['newValue'])return'newValue';if(_0x896abc==_0x4da961['data']['oldValue'])return'oldValue';_0x58fd40=_0x58fd40['previousSibling'];}return!0x1;}class pe extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a6c2c=this['editor']['config']['get']('list.properties'),_0x548beb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a6c2c['styles']&&(_0x548beb['enableDefaultAttributesIntegration']('listStyle'),_0x548beb['registerBlockAttribute']('listStyle')),_0x2a6c2c['reversed']&&(_0x548beb['enableDefaultAttributesIntegration']('listReversed'),_0x548beb['registerBlockAttribute']('listReversed')),_0x2a6c2c['startIndex']&&(_0x548beb['enableDefaultAttributesIntegration']('listStart'),_0x548beb['registerBlockAttribute']('listStart'));const _0x4f2e49={'type':'format','content':''};_0x548beb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1b46c4=this['editor']['locale'];_0x548beb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1b46c4,'FORMAT_LIST_REVERSED')),_0x548beb['descriptionFactory']['registerDescriptionCallback'](_0x1826f1=>{const {data:_0x1b1615}=_0x1826f1;if(_0x1b1615&&'listReversed'==_0x1b1615['key'])return null==_0x1b1615['newValue']||0x0==_0x1b1615['newValue']&&null==_0x1b1615['oldValue']?_0x4f2e49:void 0x0;}),_0x548beb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1b46c4,'FORMAT_LIST_START')),_0x548beb['descriptionFactory']['registerDescriptionCallback'](_0x2d9730=>{const {data:_0x19204a}=_0x2d9730;if(_0x19204a&&'listStart'==_0x19204a['key'])return null==_0x19204a['newValue']||0x1==_0x19204a['newValue']&&null==_0x19204a['oldValue']?_0x4f2e49:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xedb411=>{if(_0xedb411['batch']['isUndo'])return!0x1;let _0x586ac7=!0x1;const _0x53c665=_0x548beb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28e0cc=>{const _0x3561a0=_0x548beb['_getAttributeKey'](_0x28e0cc);return'listStart'==_0x3561a0||'listReversed'==_0x3561a0;});for(const _0x29b8c4 of _0x53c665){const _0xca268b=_0x29b8c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xca268b||'customNumbered'==_0xca268b)continue;_0x548beb['_findSuggestions'](_0x29b8c4['getFirstRange'](),'attribute')['find'](_0x5b6f95=>'listType'==_0x548beb['_getAttributeKey'](_0x5b6f95['suggestion']))||(_0xedb411['removeMarker'](_0x29b8c4['getFirstMarker']()),_0x586ac7=!0x0);}return _0x586ac7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x399d28){const _0x1f40b9=this['editor']['locale'],{data:_0x42a1ee}=_0x399d28,_0x94ba70={'type':'format','content':''};if(!_0x42a1ee||'listStyle'!=_0x42a1ee['key'])return;if(!_0x42a1ee['oldValue'])return'default'==_0x42a1ee['newValue']?_0x94ba70:{'type':'format','content':''+o(_0x1f40b9,'*Set\x20format:*\x20%0',o(_0x1f40b9,this['_getTranslationKeyForListStyle'](_0x42a1ee['newValue'])))};if(!_0x42a1ee['newValue']){if('default'==_0x42a1ee['oldValue'])return _0x94ba70;let _0x298506=_0x399d28['head'];for(;_0x298506;){if(_0x298506['data']&&'listType'==_0x298506['data']['key']&&_0x298506['data']['newValue'])return _0x94ba70;_0x298506=_0x298506['next'];}return{'type':'format','content':''+o(_0x1f40b9,'*Remove\x20format:*\x20%0',o(_0x1f40b9,this['_getTranslationKeyForListStyle'](_0x42a1ee['oldValue'])))};}if('default'!=_0x42a1ee['newValue'])return{'type':'format','content':''+o(_0x1f40b9,'*Set\x20format:*\x20%0',o(_0x1f40b9,this['_getTranslationKeyForListStyle'](_0x42a1ee['newValue'])))};let _0x1d82b2=_0x399d28['head'];for(;_0x1d82b2;){if(_0x1d82b2['data']&&'listType'==_0x1d82b2['data']['key']&&_0x1d82b2['data']['newValue']&&_0x1d82b2['data']['oldValue'])return _0x94ba70;_0x1d82b2=_0x1d82b2['next'];}return{'type':'format','content':o(_0x1f40b9,'*Set\x20format:*\x20%0',o(_0x1f40b9,'ELEMENT_'+_0x399d28['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e781d=this['editor'],_0x58a012=_0x1e781d['locale'];_0x1e781d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x242312=>{if('formatBlock'!=_0x242312['type'])return;const {data:_0x7835eb}=_0x242312;if(!_0x7835eb)return;let _0x569eca,_0x2300b4;switch(_0x7835eb['commandName']){case'listStyle':_0x569eca='*Change\x20to:*\x20%0',_0x2300b4={'type':'format','content':o(_0x58a012,_0x569eca,o(_0x58a012,this['_getTranslationKeyForListStyle'](_0x7835eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x569eca=_0x7835eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2300b4={'type':'format','content':o(_0x58a012,_0x569eca)};break;case'listStart':_0x569eca='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2300b4={'type':'format','content':o(_0x58a012,_0x569eca,_0x7835eb['commandParams'][0x0]['startIndex'])};}return _0x2300b4;});}['_getTranslationKeyForListStyle'](_0x359cfb){return'ELEMENT_'+function(_0x2ea783){if(ye['includes'](_0x2ea783))return'bulleted';if(Se['includes'](_0x2ea783))return'numbered';return null;}(_0x359cfb)['toUpperCase']()+'_LIST_'+_0x359cfb['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4fe0d7{static get['requires'](){return[_0x45c157];}['init'](){const _0x236616=this['editor'],_0x2b6ed5=_0x236616['plugins']['get']('TrackChangesEditing'),_0x55a854=_0x236616['commands']['get']('enter');_0x2b6ed5['enableCommand']('enter',()=>{_0x236616['model']['change'](_0x233ae7=>{const _0x27bb39=_0x236616['model']['document']['selection'],_0x58422c=_0x27bb39['getFirstPosition'](),_0x38f485=_0x12550f['fromRange'](_0x27bb39['getFirstRange']());if(_0x55a854['enterBlock'](_0x233ae7)){const _0x4a0b91=_0x236616['model']['createPositionAt'](_0x58422c['parent']['nextSibling'],0x0),_0x43befe=_0x233ae7['createRange'](_0x58422c,_0x4a0b91);_0x2b6ed5['markInsertion'](_0x43befe);}else _0x233ae7['setSelection'](_0x233ae7['createRange'](_0x38f485['end']));_0x38f485['detach'](),_0x55a854['fire']('afterExecute',{'writer':_0x233ae7});});}),_0x236616['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x236616,'split'),{'priority':'high'}),_0x236616['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2f49d2,_0x31c815,_0x504c37)=>{const _0x3a260e=_0x504c37['mapper']['markerNameToElements'](_0x31c815['markerName']);if(_0x3a260e){for(const _0x3b5a6e of _0x3a260e)_0x3b5a6e['hasClass']('ck-suggestion-marker-split')&&(_0x504c37['mapper']['unbindElementFromMarkerName'](_0x3b5a6e,_0x31c815['markerName']),_0x504c37['writer']['remove'](_0x3b5a6e));}},{'priority':'high'}),_0x236616['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d40a4,_0x46cbfc,_0x49c0d4)=>{_0x49c0d4['options']['showSuggestionHighlights']&&_e(_0x236616,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d40a4,_0x46cbfc,_0x49c0d4);},{'priority':'high'});}}class X extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x50f95a=this['editor']['plugins']['get']('TrackChangesEditing');_0x50f95a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x50f95a['enableCommand']('findNext'),_0x50f95a['enableCommand']('findPrevious'),_0x50f95a['enableCommand']('replace'),_0x50f95a['enableCommand']('replaceAll');}['handleFindCommand'](_0x5978de,_0x3ad155,_0x2a7809={}){const _0x1505db=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5978de(_0x101420=>{let _0x1d191d=('string'==typeof _0x3ad155?_0x1505db['findByTextCallback'](_0x3ad155,_0x2a7809):_0x3ad155)(_0x101420);Array['isArray'](_0x1d191d)&&(_0x1d191d={'results':_0x1d191d,'searchText':'string'==typeof _0x3ad155?_0x3ad155:''});const _0x1ef89c=_0x1d191d['results']['filter'](_0xbbbfdb=>!0x1===this['_isInDeletionRange'](_0xbbbfdb,_0x101420['item']));return{..._0x1d191d,'results':_0x1ef89c};},_0x2a7809);}['_isInDeletionRange'](_0x15c440,_0x58b3cc){const _0x1b21de=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58b3cc,_0x15c440['start']),this['editor']['model']['createPositionAt'](_0x58b3cc,_0x15c440['end']));for(const _0x333486 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1b21de['getIntersection'](_0x333486['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 _0x4fe0d7{['afterInit'](){const _0x11b61c=this['editor']['locale'],_0xff42b1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4e8f8d,commandName:_0x381f1a}of ro)this['editor']['plugins']['has'](_0x4e8f8d)&&(_0xff42b1['enableDefaultAttributesIntegration'](_0x381f1a),_0xff42b1['registerInlineAttribute'](_0x381f1a));_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11b61c,'FORMAT_FONT_SIZE')),_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11b61c,'FORMAT_FONT_FAMILY')),_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11b61c,'FORMAT_FONT_COLOR')),_0xff42b1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11b61c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x446cf8=this['editor'],_0xb03961=_0x446cf8['locale'];_0x446cf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x793036=>{const _0x2ce747=_0xb03961['t'];if('formatInline'!=_0x793036['type'])return;const {data:_0x16b6c9}=_0x793036;if(null!=_0x16b6c9){if('fontSize'==_0x16b6c9['commandName']){const _0x318657=_0x16b6c9['commandParams'][0x0]['value'];if(_0x318657){const _0x1796c5=_0x2ce747(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c951d=>_0x4c951d['model']==_0x318657)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb03961,'*Set\x20font\x20size:*\x20%0',_0x1796c5)};}return{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x16b6c9['commandName']){const _0x42e390=_0x16b6c9['commandParams'][0x0]['value'];return _0x42e390?{'type':'format','content':o(_0xb03961,'*Set\x20font\x20family:*\x20%0',_0x42e390)}:{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20family*')};}if('fontColor'==_0x16b6c9['commandName']){const _0x5cfb98=_0x16b6c9['commandParams'][0x0]['value'];if(_0x5cfb98){const _0x4405f2=_0x6369f3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24dd54=>_0x24dd54['model']==_0x5cfb98);let _0x40a1bf=_0x5cfb98,_0x45320b='';return _0x4405f2&&(_0x40a1bf=_0x4405f2['label'],_0x45320b=_0x2ce747(_0x40a1bf)['toLowerCase']()),{'type':'format','content':o(_0xb03961,'*Set\x20font\x20color:*\x20%0',_0x45320b)['trim'](),'color':{'value':_0x5cfb98,'title':_0x45320b||_0x40a1bf}};}return{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x16b6c9['commandName']){const _0x47b827=_0x16b6c9['commandParams'][0x0]['value'];if(_0x47b827){const _0x5dee87=_0x6369f3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x410fe5=>_0x410fe5['model']==_0x47b827);let _0x243667=_0x47b827,_0x1f6792='';return _0x5dee87&&(_0x243667=_0x5dee87['label'],_0x1f6792=_0x2ce747(_0x243667)['toLowerCase']()),{'type':'format','content':o(_0xb03961,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f6792)['trim'](),'color':{'value':_0x47b827,'title':_0x1f6792||_0x243667}};}return{'type':'format','content':o(_0xb03961,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4fe0d7{['afterInit'](){const _0x2209a8=this['editor'],_0x175146=_0x2209a8['plugins']['get']('TrackChangesEditing'),_0x8737=_0x2209a8['commands']['get']('copyFormat'),_0x2212b8=_0x2209a8['commands']['get']('pasteFormat');_0x8737&&_0x2212b8&&(_0x175146['enableDefaultAttributesIntegration']('pasteFormat'),_0x175146['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52cf31=this['editor'],_0x1d5b02=_0x52cf31['locale'];_0x52cf31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d6150=>{if('formatBlock'!=_0x4d6150['type']&&'formatInline'!=_0x4d6150['type'])return;const {data:_0x41af12}=_0x4d6150;if(_0x41af12&&'pasteFormat'===_0x41af12['commandName']){const _0x2e921e=[],_0x4258e8=_0x41af12['commandParams'][0x0];for(const [_0x2100cf,_0x5a2e14]of Object['entries'](_0x4258e8))_0x2e921e['push'](so(_0x52cf31,_0x2100cf,_0x5a2e14));return _0x2e921e['length']?{'type':'format','content':o(_0x1d5b02,'*Set\x20format\x20to:*\x20%0',_0x2e921e['join'](',\x20'))}:{'type':'format','content':o(_0x1d5b02,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4242ea,_0x25151f,_0x48adae){const _0x5b9a58=_0x4242ea['locale']['t'],_0x16b6b5=_0x25151f['split'](/(?=[A-Z])/)['join']('\x20'),_0x9ed8b7=_0x5b9a58(_0x16b6b5['charAt'](0x0)['toUpperCase']()+_0x16b6b5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x48adae)return _0x9ed8b7;if('fontColor'===_0x25151f||'fontBackgroundColor'===_0x25151f){const _0x227fc9=_0x6369f3(_0x4242ea['config']['get']('fontColor.colors'))['find'](_0x309c12=>_0x309c12['model']==_0x48adae);return _0x9ed8b7+'\x20('+(_0x227fc9?_0x5b9a58(_0x227fc9['label'])['toLowerCase']():_0x48adae)+')';}if('fontSize'===_0x25151f&&isNaN(parseFloat(_0x48adae))){const _0x36aa50=_0x4242ea['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4242ea['config']['get']('fontSize.options'))['find'](_0xfa8c9=>_0xfa8c9['model']==_0x48adae);return _0x9ed8b7+'\x20('+(_0x36aa50?_0x5b9a58(_0x36aa50['title'])['toLowerCase']():_0x48adae)+')';}return _0x9ed8b7+'\x20('+_0x48adae+')';}class tt extends _0x4fe0d7{['_headingOptions'];['afterInit'](){const _0x52b2fb=this['editor'];if(!_0x52b2fb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x52b2fb['config']['get']('heading.options');const _0x3eaa05=_0x52b2fb['locale'],_0x5d2563=_0x52b2fb['plugins']['get']('TrackChangesEditing');_0x5d2563['enableDefaultAttributesIntegration']('heading');for(const _0x331f92 of this['_headingOptions'])'paragraph'!=_0x331f92['model']&&_0x5d2563['descriptionFactory']['registerElementLabel'](_0x331f92['model'],_0x39f918=>{const _0x34a69d=this['_getHeadingLevel'](_0x331f92['model']);return null!==_0x34a69d?_0x4e5e10(_0x39f918,_0x34a69d):_0x3c7456(_0x39f918,_0x331f92['title']);});function _0x4e5e10(_0x3fe9c5,_0x2ec2d6){return o(_0x3eaa05,'ELEMENT_HEADING',[_0x3fe9c5,_0x2ec2d6]);}function _0x3c7456(_0x52e370,_0x3b8655){return o(_0x3eaa05,'ELEMENT_HEADING_CUSTOM',[_0x52e370,_0x3b8655]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e22b5=this['editor'],_0x199a6e=_0x5e22b5['locale'];function _0x359821(_0x3b0c38,_0x1def0e){return o(_0x199a6e,'ELEMENT_HEADING_CUSTOM',[_0x3b0c38,_0x1def0e]);}_0x5e22b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2225ff=>{if('formatBlock'!=_0x2225ff['type'])return;const {data:_0x5b6734}=_0x2225ff;if(_0x5b6734&&'heading'==_0x5b6734['commandName']){const _0x55e687=_0x5b6734['commandParams'][0x0]['value'],_0x577607=this['_getHeadingLevel'](_0x55e687);if(null!==_0x577607)return{'type':'format','content':o(_0x199a6e,'*Change\x20to:*\x20%0',(_0x2fe2ce=0x1,_0x14b3aa=_0x577607,o(_0x199a6e,'ELEMENT_HEADING',[_0x2fe2ce,_0x14b3aa])))};const _0x517428=this['_headingOptions']['find'](_0x41d733=>_0x41d733['model']===_0x55e687)['title'];return{'type':'format','content':o(_0x199a6e,'*Change\x20to:*\x20%0',_0x359821(0x1,_0x517428))};}var _0x2fe2ce,_0x14b3aa;});}['_getHeadingLevel'](_0x5969e3){const _0x345008=_0x5969e3['match'](/^heading(\d+)/);if(_0x345008)return _0x345008[0x1];const _0x112d69=this['_headingOptions']?.['find'](_0x268619=>_0x268619['model']==_0x5969e3);if(_0x112d69&&_0x112d69['view']){const _0x2aa60d=_0x112d69['view'],_0x705805=(_0x2aa60d['name']??_0x2aa60d)['match'](/^h(\d+)/);if(_0x705805)return _0x705805[0x1];}return null;}}class et extends _0x4fe0d7{['afterInit'](){const _0x4d8789=this['editor'];if(!_0x4d8789['plugins']['has']('HighlightEditing'))return;const _0x122422=_0x4d8789['plugins']['get']('TrackChangesEditing'),_0x1b74ab=_0x4d8789['locale'];_0x122422['enableDefaultAttributesIntegration']('highlight'),_0x122422['registerInlineAttribute']('highlight'),_0x122422['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b74ab,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9f0b=this['editor'],_0x2faf3e=_0x5b9f0b['locale'];_0x5b9f0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2fbe=>{if('formatInline'!=_0x3d2fbe['type'])return;const {data:_0x2d9aaa}=_0x3d2fbe;if(_0x2d9aaa&&'highlight'==_0x2d9aaa['commandName']){const _0x4cd812=_0x2faf3e['t'],_0x3f3d62=_0x2d9aaa['commandParams'][0x0]['value'];if(_0x3f3d62){const _0x3ca0a5=_0x5b9f0b['config']['get']('highlight.options')['find'](_0x5e45f0=>_0x5e45f0['model']==_0x3f3d62),_0x368294=_0x4cd812(_0x3ca0a5['title'])['toLowerCase']();return{'type':'format','content':o(_0x2faf3e,'*Set\x20highlight:*\x20%0',_0x368294),'color':{'value':_0x3ca0a5['color'],'title':_0x3ca0a5['title']}};}return{'type':'format','content':o(_0x2faf3e,'*Remove\x20highlight*',o(_0x2faf3e,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4fe0d7{['afterInit'](){const _0x290f9a=this['editor'];if(!_0x290f9a['plugins']['has']('HorizontalLineEditing'))return;_0x290f9a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x58c9d1=_0x290f9a['plugins']['get']('TrackChangesEditing'),_0x2417e2=_0x290f9a['locale'];_0x58c9d1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33a430=>o(_0x2417e2,'ELEMENT_HORIZONTAL_LINE',_0x33a430)),_0x290f9a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5e0227,{writer:_0x41ec93,options:_0x2c02cc})=>{if(!_0x2c02cc['showSuggestionHighlights'])return null;const _0x2c50ca=_0x41ec93['createContainerElement']('div'),_0x3d9735=_0x41ec93['createEmptyElement']('hr');return _0x41ec93['addClass']('ck-horizontal-line',_0x2c50ca),_0x41ec93['insert'](_0x41ec93['createPositionAt'](_0x2c50ca,0x0),_0x3d9735),_0x2c50ca;},'converterPriority':'high'});}}class st extends _0x4fe0d7{['afterInit'](){const _0x3af339=this['editor'];if(!_0x3af339['plugins']['has']('HtmlEmbed'))return;const _0x564456=_0x3af339['plugins']['get']('TrackChangesEditing'),_0x4567fd=_0x3af339['locale'];_0x564456['descriptionFactory']['registerElementLabel']('rawHtml',_0x3e4256=>o(_0x4567fd,'ELEMENT_HTML_EMBED',_0x3e4256)),_0x564456['enableDefaultAttributesIntegration']('htmlEmbed'),_0x564456['registerBlockAttribute']('value'),_0x564456['descriptionFactory']['registerDescriptionCallback'](_0x5f3fc2=>{if('attribute'!=_0x5f3fc2['type'])return;const {data:_0x13c3fc}=_0x5f3fc2;if(_0x13c3fc&&'value'==_0x13c3fc['key']&&_0x5f3fc2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x57a180=o(_0x4567fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4567fd,'*Change\x20%0\x20content*',_0x57a180)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x379400=this['editor'],_0x3d406a=_0x379400['locale'];_0x379400['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8cf1=>{if('formatBlock'!=_0x3c8cf1['type'])return;const {data:_0x5af314}=_0x3c8cf1;if(_0x5af314&&'htmlEmbed'==_0x5af314['commandName']){const _0x2747db=o(_0x3d406a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3d406a,'*Change\x20%0\x20content*',_0x2747db)};}});}}class nt extends _0x4fe0d7{['afterInit'](){const _0x378f26=this['editor'];if(!_0x378f26['plugins']['has']('ImageEditing'))return;const _0x308252=_0x378f26['plugins']['get']('TrackChangesEditing'),_0x307e27=_0x378f26['plugins']['get']('ImageUtils'),_0x59e2a3=_0x378f26['locale'];_0x308252['enableCommand']('insertImage'),_0x308252['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e5ce2=>o(_0x59e2a3,'ELEMENT_IMAGE',_0x5e5ce2)),_0x308252['descriptionFactory']['registerElementLabel']('imageInline',_0x45fd54=>o(_0x59e2a3,'ELEMENT_INLINE_IMAGE',_0x45fd54)),_0x308252['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x59e2a3,'ELEMENT_CAPTION')),_0x378f26['plugins']['has']('ImageUploadEditing')&&_0x308252['enableCommand']('uploadImage'),_0x378f26['plugins']['has']('ImageBlockEditing')&&_0x378f26['plugins']['has']('ImageInlineEditing')&&(_0x308252['enableCommand']('imageTypeInline',(_0x51827f,_0x597b19)=>{const _0x1a6e01=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']);_0x378f26['model']['change'](()=>{_0x308252['markBlockFormat'](_0x1a6e01,{'commandName':'imageTypeInline','commandParams':[_0x597b19]},[],'convertBlockImageToInline');});}),_0x308252['enableCommand']('imageTypeBlock',(_0x127a0b,_0x3a9074)=>{_0x378f26['model']['change'](_0x228ddb=>{let _0x43d5a3=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x4495b8=_0x228ddb['createRangeOn'](_0x43d5a3);const _0x239645=_0x4f5588['fromPosition'](_0x4495b8['start'],'toPrevious'),_0x183578=_0x4f5588['fromPosition'](_0x4495b8['end'],'toNext');_0x308252['forceDefaultExecution'](()=>_0x127a0b(_0x3a9074)),_0x43d5a3=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x4495b8=_0x228ddb['createRangeOn'](_0x43d5a3);const _0x445152=_0x228ddb['createRange'](_0x239645,_0x183578);_0x239645['detach'](),_0x183578['detach'](),_0x308252['markBlockFormat'](_0x43d5a3,{'commandName':'imageTypeInline','commandParams':[_0x3a9074]},[],'convertInlineImageToBlock'),_0x445152['start']['isBefore'](_0x4495b8['start'])&&_0x308252['markInsertion'](_0x228ddb['createRange'](_0x445152['start'],_0x4495b8['start']),'convertInlineImageToBlock'),_0x4495b8['end']['isBefore'](_0x445152['end'])&&_0x308252['markInsertion'](_0x228ddb['createRange'](_0x4495b8['end'],_0x445152['end']),'convertInlineImageToBlock');});}),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x308252['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c15c0])=>{const _0x48f87f=_0x308252['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x13577b=_0x3c15c0['start'],_0x177e3d=_0x3c15c0['end'];const _0x1a46e1=_0x378f26['model']['schema']['getNearestSelectionRange'](_0x13577b,'backward'),_0x4827b9=_0x378f26['model']['schema']['getNearestSelectionRange'](_0x177e3d,'forward');_0x1a46e1['isCollapsed']&&(_0x13577b=_0x1a46e1['start']),_0x4827b9['isCollapsed']&&(_0x177e3d=_0x4827b9['end']),_0x48f87f([_0x378f26['model']['createRange'](_0x13577b,_0x177e3d)]);}),_0x308252['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x45b385),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x45b385)),_0x378f26['plugins']['has']('ImageCaptionEditing')&&(_0x308252['enableCommand']('toggleImageCaption',(_0x5d55f9,_0x1578f7)=>{const _0x1c579e=_0x378f26['plugins']['get']('ImageCaptionUtils');let _0x8b06e6=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x1fea9a=_0x1c579e['getCaptionFromImageModelElement'](_0x8b06e6);_0x378f26['model']['change'](()=>{if(_0x1fea9a)return void _0x308252['markDeletion'](_0x378f26['model']['createRangeOn'](_0x1fea9a));const _0x22d704=_0x307e27['isBlockImage'](_0x8b06e6);_0x5d55f9(_0x1578f7),_0x8b06e6=_0x307e27['getClosestSelectedImageElement'](_0x378f26['model']['document']['selection']),_0x1fea9a=_0x1c579e['getCaptionFromImageModelElement'](_0x8b06e6),_0x308252['markInsertion'](_0x378f26['model']['createRangeOn'](_0x1fea9a),_0x22d704?null:'imageCaption');});}),_0x308252['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x45b385));const _0x5ca3c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4005c6(_0x5e14a9,_0xba848e){const _0x532f8e=_0x5ca3c5['findIndex'](({type:_0x22b41d,subType:_0xc7eb9b})=>_0x5e14a9['type']==_0x22b41d&&_0x5e14a9['subType']==_0xc7eb9b),_0x232c0e=_0x5ca3c5['findIndex'](({type:_0x5ab13f,subType:_0x1463fb})=>_0xba848e['type']==_0x5ab13f&&_0xba848e['subType']==_0x1463fb);if(_0x532f8e<0x0||_0x232c0e<0x0)return!0x1;const _0x1cf286=_0x5e14a9['getFirstRange'](),_0x1d09fc=_0xba848e['getFirstRange']();if((0x0==_0x532f8e||0x1==_0x532f8e)&&0x2==_0x232c0e&&_0x1cf286['isIntersecting'](_0x1d09fc))return!0x0;if(0x2==_0x532f8e&&0x3==_0x232c0e){const _0x7e608c=_0x308252['_findSuggestions'](_0x1cf286,'insertion')['filter'](({suggestion:_0x29f0ef,meta:_0xdb2dfd})=>_0xdb2dfd['isOwn']&&'convertInlineImageToBlock'==_0x29f0ef['subType']);if(_0x7e608c['length']>0x1&&_0x1d09fc['end']['isEqual'](_0x1cf286['start']))return!0x0;if(0x1==_0x7e608c['length']&&(_0x1cf286['start']['isEqual'](_0x1d09fc['end'])||_0x1cf286['end']['isEqual'](_0x1d09fc['start'])))return!0x0;}if(0x3==_0x532f8e&&0x3==_0x232c0e&&_0x1cf286['start']['isBefore'](_0x1d09fc['start'])){const _0x4e2de0=_0x1cf286['end']['nodeAfter'],_0x4d8ba1=_0x1d09fc['start']['nodeBefore'];return _0x307e27['isBlockImage'](_0x4e2de0)&&_0x4e2de0===_0x4d8ba1;}return!0x1;}function _0x45b385(_0x572384,_0x437528){return _0x4005c6(_0x572384,_0x437528)?[_0x572384,_0x437528]:_0x4005c6(_0x437528,_0x572384)?[_0x437528,_0x572384]:null;}_0x378f26['plugins']['has']('ImageResize')&&(_0x308252['enableDefaultAttributesIntegration']('resizeImage'),_0x308252['registerBlockAttribute']('resizedWidth'),_0x308252['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x59e2a3,'FORMAT_IMAGE_SIZE'))),_0x378f26['plugins']['has']('ImageTextAlternativeEditing')&&(_0x308252['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x308252['registerBlockAttribute']('alt')),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0xbfa55d=>{if(!!_0x5ca3c5['find'](({type:_0x542aac,subType:_0x3af670})=>_0xbfa55d['type']==_0x542aac&&_0xbfa55d['subType']==_0x3af670))return _0xbfa55d['previous']?{}:void 0x0;}),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0x99c38b=>{if('insertion'==_0x99c38b['type']||'deletion'==_0x99c38b['type']){const _0x2ded08=_0x99c38b['getContainedElement']();if(_0x2ded08&&_0x2ded08['is']('element','caption'))return{'type':'insertion'==_0x99c38b['type']?'addObject':'removeObject','element':_0x2ded08,'quantity':0x1};}}),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0x4fdef4=>'formatBlock'==_0x4fdef4['type']&&'convertInlineImageToBlock'==_0x4fdef4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4fdef4['type']&&'convertBlockImageToInline'==_0x4fdef4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x308252['descriptionFactory']['registerDescriptionCallback'](_0x37f3a9=>{if('attribute'!=_0x37f3a9['type'])return;const {data:_0x2e7403}=_0x37f3a9;if(!_0x2e7403||'alt'!=_0x2e7403['key'])return;const _0x5f1224=_0x2e7403['newValue'];return _0x5f1224?{'type':'format','content':o(_0x59e2a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5f1224+'\x22')}:{'type':'format','content':o(_0x59e2a3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x518797=this['editor'],_0x3a28a4=_0x518797['locale'];_0x518797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189498=>{if('formatBlock'!=_0x189498['type']&&'formatInline'!=_0x189498['type'])return;const {data:_0x37a794}=_0x189498;if(_0x37a794){if('imageTextAlternative'==_0x37a794['commandName']){const _0x49d714=_0x37a794['commandParams'][0x0]['newValue'];return _0x49d714?{'type':'format','content':o(_0x3a28a4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49d714+'\x22')}:{'type':'format','content':o(_0x3a28a4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37a794['commandName']){const _0xb73d2c=_0x37a794['commandParams'][0x0]['width'];return _0xb73d2c?{'type':'format','content':o(_0x3a28a4,'*Set\x20image\x20width:*\x20%0',_0xb73d2c)}:{'type':'format','content':o(_0x3a28a4,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x203228=this['editor']['locale'],_0x12272a=this['editor']['plugins']['get']('TrackChangesEditing');_0x12272a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x12272a['registerBlockAttribute']('src'),_0x12272a['descriptionFactory']['registerDescriptionCallback'](_0x113e7a=>{if('attribute'!=_0x113e7a['type'])return;const {data:_0x1b22d3}=_0x113e7a;return _0x1b22d3&&'src'==_0x1b22d3['key']?_0x1b22d3['newValue']&&_0x1b22d3['oldValue']?{'type':'format','content':o(_0x203228,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59f010=this['editor']['plugins']['get']('TrackChangesEditing');_0x59f010['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59f010['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59f010['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59f010['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bea64=this['editor'],_0x4bd005=_0x1bea64['locale'];_0x1bea64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353162=>{if('formatBlock'!=_0x353162['type']&&'formatInline'!=_0x353162['type'])return;const {data:_0x2d59bf}=_0x353162;if(!_0x2d59bf||'replaceImageSource'!=_0x2d59bf['commandName'])return;return{'type':'format','content':o(_0x4bd005,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4fe0d7{['afterInit'](){const _0x223cb2=this['editor'];if(!_0x223cb2['plugins']['has']('ImageStyleEditing'))return;const _0x2908d5=_0x223cb2['plugins']['get']('TrackChangesEditing'),_0x1cf8e4=_0x223cb2['plugins']['get']('ImageUtils'),_0x1f68bf={};_0x2908d5['enableCommand']('imageStyle',(_0x49d17d,_0x207d09)=>{const _0x1d08b7=_0x223cb2['plugins']['get']('Users')['me'],_0x468b9a=_0x223cb2['commands']['get']('imageStyle');let _0x50d3fd=_0x1cf8e4['getClosestSelectedImageElement'](_0x223cb2['model']['document']['selection']),_0x87a6bf=_0x223cb2['model']['createRangeOn'](_0x50d3fd),_0x230bdb=_0x468b9a['value'];if(_0x230bdb==_0x207d09['value'])return;const _0x3b5411={'commandName':'imageStyle','commandParams':[_0x207d09],'formatGroupId':_0x13e654()};_0x223cb2['model']['change'](()=>{if(_0x2908d5['getSuggestions']()['filter'](_0x259829=>_0x259829['isInContent']&&_0x1d08b7==_0x259829['author']&&('formatBlock'==_0x259829['type']||'formatInline'==_0x259829['type'])&&('imageStylePreApply'==_0x259829['subType']||'imageStylePostApply'==_0x259829['subType'])&&_0x259829['getFirstRange']()['isEqual'](_0x87a6bf))['forEach'](_0x41992e=>_0x2908d5['discardSuggestion'](_0x41992e['head'])),_0x50d3fd=_0x1cf8e4['getClosestSelectedImageElement'](_0x223cb2['model']['document']['selection']),_0x87a6bf=_0x223cb2['model']['createRangeOn'](_0x50d3fd),_0x468b9a['refresh'](),_0x223cb2['commands']['get']('imageTypeInline')['refresh'](),_0x223cb2['commands']['get']('imageTypeBlock')['refresh'](),_0x230bdb=_0x468b9a['value'],_0x230bdb!=_0x207d09['value'])return _0x1cf8e4['isInlineImage'](_0x50d3fd)&&_0x468b9a['shouldConvertImageType'](_0x207d09['value'],_0x50d3fd)?(_0x49d17d({..._0x207d09,'setImageSizes':!0x1}),_0x50d3fd=_0x1cf8e4['getClosestSelectedImageElement'](_0x223cb2['model']['document']['selection']),void _0x2908d5['markBlockFormat'](_0x50d3fd,{..._0x3b5411,'commandReversedParams':[{'value':_0x230bdb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1cf8e4['isBlockImage'](_0x50d3fd)?_0x2908d5['markBlockFormat'](_0x50d3fd,_0x3b5411,[],'imageStylePostApply'):_0x2908d5['markInlineFormat'](_0x87a6bf,_0x3b5411,'imageStylePostApply'));});});for(const _0x532c51 of _0x223cb2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f68bf[_0x532c51['name']]=_0x532c51['title']['toLowerCase']();_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5e2462])=>{_0x1cf8e4['setImageNaturalSizeAttributes'](_0x5e2462['getContainedElement']());}),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15b0b3,_0x2a752e)=>{_0x2908d5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15b0b3,{'commandName':_0x2a752e['commandName'],'commandParams':_0x2a752e['commandReversedParams']});}),_0x2908d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4dafcf,_0xfdefd5){if(_0x11e587(_0x4dafcf,_0xfdefd5))return[_0x4dafcf,_0xfdefd5];if(_0x11e587(_0xfdefd5,_0x4dafcf))return[_0xfdefd5,_0x4dafcf];return null;});const _0x29f1cb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x11e587(_0x5566bd,_0x3d1801){const _0x2bd6ca=_0x29f1cb['findIndex'](({type:_0x1f80b3,subType:_0x51a6b9})=>_0x5566bd['type']==_0x1f80b3&&_0x5566bd['subType']==_0x51a6b9),_0x35d502=_0x29f1cb['findIndex'](({type:_0x2e71fd,subType:_0x480948})=>_0x3d1801['type']==_0x2e71fd&&_0x3d1801['subType']==_0x480948);if(_0x2bd6ca<0x0||_0x35d502<0x0)return!0x1;const _0xc641fa=_0x5566bd['getFirstRange'](),_0x3e3a7f=_0x3d1801['getFirstRange']();if((0x0==_0x2bd6ca||0x1==_0x2bd6ca)&&0x2==_0x35d502&&_0xc641fa['isIntersecting'](_0x3e3a7f))return!0x0;if(0x2==_0x2bd6ca&&0x3==_0x35d502){const _0x735d0d=_0x2908d5['_findSuggestions'](_0xc641fa,'insertion')['filter'](({suggestion:_0x5bc20b,meta:_0x2ee255})=>_0x2ee255['isOwn']&&'convertInlineImageToBlock'==_0x5bc20b['subType']);if(_0x735d0d['length']>0x1&&_0x3e3a7f['end']['isEqual'](_0xc641fa['start']))return!0x0;if(0x1==_0x735d0d['length']&&(_0xc641fa['start']['isEqual'](_0x3e3a7f['end'])||_0xc641fa['end']['isEqual'](_0x3e3a7f['start'])))return!0x0;}if(0x3==_0x2bd6ca&&0x3==_0x35d502&&_0xc641fa['start']['isBefore'](_0x3e3a7f['start'])){const _0x1832d8=_0xc641fa['end']['nodeAfter'],_0xe9fc8b=_0x3e3a7f['start']['nodeBefore'];return _0x1cf8e4['isBlockImage'](_0x1832d8)&&_0x1832d8===_0xe9fc8b;}return!0x1;}_0x223cb2['model']['document']['registerPostFixer'](()=>{let _0xc690b1=!0x1;const _0x4a3701=Array['from'](_0x223cb2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e93b3,data:_0x419efa}of _0x4a3701){const {group:_0x305078,type:_0x49530b,subType:_0x3ae6f0,id:_0xe6af27}=_0x2908d5['_splitMarkerName'](_0x2e93b3);if('suggestion'==_0x305078&&_0x2908d5['hasSuggestion'](_0xe6af27)){if('formatBlock'==_0x49530b&&('imageStylePreApply'==_0x3ae6f0||'imageStylePostApply'==_0x3ae6f0)){const _0x5a7ebf=_0x2908d5['getSuggestion'](_0xe6af27);if(_0x419efa['newRange']){const _0x14ce00=_0x5a7ebf['getFirstRange']()['getContainedElement']();if(_0x1cf8e4['isBlockImage'](_0x14ce00))continue;_0x2908d5['discardSuggestion'](_0x5a7ebf),_0xc690b1=!0x0;}}if('insertion'==_0x49530b&&'imageCaption'==_0x3ae6f0&&!_0x419efa['newRange']){const _0x2fc4aa=_0x2908d5['getSuggestion'](_0xe6af27);_0x2fc4aa['next']&&_0x2fc4aa['next']['isInContent']&&(_0x2908d5['discardSuggestion'](_0x2fc4aa['next']),_0xc690b1=!0x0);}}}return _0xc690b1;}),this['_registerLegacyDescription'](_0x1f68bf);}['_registerLegacyDescription'](_0x3c7375){const _0xbd4c7c=this['editor'],_0x45f045=_0xbd4c7c['locale'];_0xbd4c7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8e1e=>{if('formatBlock'!=_0x4f8e1e['type']&&'formatInline'!=_0x4f8e1e['type'])return;const {data:_0x1d55f3}=_0x4f8e1e;if(!_0x1d55f3||'imageStyle'!=_0x1d55f3['commandName'])return;const _0x3eb171=_0x1d55f3['commandParams'][0x0]['value'];return _0x1156d6('side'===_0x3eb171?o(_0x45f045,'FORMAT_SIDE_IMAGE'):_0x3c7375[_0x3eb171]||_0x3eb171);function _0x1156d6(_0x10a9f8){return{'type':'format','content':o(_0x45f045,'*Format:*\x20%0',_0x10a9f8)};}});}}class at extends _0x4fe0d7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4e53db){super(_0x4e53db),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54099f=this['editor'],_0x269347=_0x54099f['commands']['get']('importWord'),_0x423108=_0x54099f['commands']['get']('trackChanges');_0x269347&&(_0x269347['on']('execute',(_0x16d567,[,_0x57f206])=>{this['_trackChangesValueDuringImport']=_0x423108['value'],_0x57f206['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x269347,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x269347,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x423108['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54099f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5d3c04,_0x2e7ea2){const {suggestions:_0x1cbf8a}=_0x2e7ea2,_0x182dd6=this['editor']['commands']['get']('trackChanges'),_0x4357cc=_0x182dd6['value'];this['_trackChangesValueDuringImport']!==_0x4357cc&&(_0x182dd6['execute'](),this['_trackChangesExecuted']=!0x0),_0x1cbf8a&&_0x1cbf8a['forEach'](({id:_0x4504be,type:_0xbefb2d,author:_0x38658c,created_at:_0xe96eab})=>{const _0x22852e={'id':_0x4504be,'type':_0xbefb2d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38658c,'createdAt':_0xe96eab?new Date(_0xe96eab):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22852e);});}}class ct extends _0x4fe0d7{['afterInit'](){const _0x3ac670=this['editor'],_0x56302e=_0x3ac670['plugins']['get']('TrackChangesEditing');if(_0x3ac670['plugins']['has']('IndentEditing')&&(_0x56302e['enableCommand']('indent'),_0x56302e['enableCommand']('outdent')),_0x3ac670['plugins']['has']('IndentBlock')){for(const _0x3ba871 of['indentBlock','outdentBlock'])_0x56302e['enableDefaultAttributesIntegration'](_0x3ba871);}const _0x2a2695=_0x3ac670['locale'];_0x56302e['registerBlockAttribute']('blockIndent'),_0x56302e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2a2695,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c8556=this['editor'],_0x4d4299=_0x1c8556['locale'],_0x107531=_0x1c8556['plugins']['get']('TrackChangesEditing');_0x107531['descriptionFactory']['registerDescriptionCallback'](_0x2dc47a=>{if('formatBlock'!=_0x2dc47a['type'])return;const {data:_0x5aefc8}=_0x2dc47a;if(!_0x5aefc8)return;if('indentBlock'!=_0x5aefc8['commandName']&&'outdentBlock'!=_0x5aefc8['commandName'])return;const _0x4c9181=_0x2dc47a['getItems']()[0x0],_0x553e39=_0x107531['descriptionFactory']['getItemLabel'](_0x4c9181);return'indentBlock'==_0x5aefc8['commandName']?{'type':'format','content':o(_0x4d4299,'*Indent:*\x20%0',_0x553e39)}:'outdentBlock'==_0x5aefc8['commandName']?{'type':'format','content':o(_0x4d4299,'*Outdent:*\x20%0',_0x553e39)}:void 0x0;});}}class ut extends _0x4fe0d7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4fe0d7{['afterInit'](){const _0x509301=this['editor'];if(!_0x509301['plugins']['has']('LinkEditing'))return;const _0x78d6d6=_0x509301['plugins']['get']('TrackChangesEditing'),_0x363eaf=_0x509301['commands']['get']('link');_0x78d6d6['enableDefaultAttributesIntegration']('link'),_0x78d6d6['enableDefaultAttributesIntegration']('unlink'),_0x78d6d6['registerInlineAttribute']('linkHref');for(const _0xc231fb of _0x363eaf['manualDecorators'])_0x78d6d6['registerInlineAttribute'](_0xc231fb['id']),_0x78d6d6['descriptionFactory']['registerAttributeLabel'](_0xc231fb['id'],'link\x20('+_0xc231fb['label']['toLowerCase']()+')');_0x78d6d6['descriptionFactory']['registerDescriptionCallback'](_0x2e61d8=>{if('attribute'!=_0x2e61d8['type'])return;const {data:_0x16b7fd}=_0x2e61d8;if(!_0x16b7fd||'linkHref'!=_0x16b7fd['key'])return;const _0x522653=_0x16b7fd['newValue'],_0x14e488=_0x509301['locale'];return{'type':'format','content':null==_0x522653?o(_0x14e488,'*Remove\x20link*'):o(_0x14e488,'*Set\x20link:*\x20%0','\x22'+_0x522653+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91b6e5=this['editor'],_0x2c72f6=_0x91b6e5['locale'];_0x91b6e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd438=>{if('formatInline'!=_0x1dd438['type'])return;const {data:_0x59dd52}=_0x1dd438;if(_0x59dd52){if('link'==_0x59dd52['commandName']){const _0x54d70e=_0x59dd52['commandParams'][0x0];return{'type':'format','content':o(_0x2c72f6,'*Set\x20link:*\x20%0','\x22'+_0x54d70e+'\x22')};}return'unlink'==_0x59dd52['commandName']?{'type':'format','content':o(_0x2c72f6,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4fe0d7{['afterInit'](){const _0x4c7cd7=this['editor'],_0x3800e0=_0x4c7cd7['locale'];if(!_0x4c7cd7['plugins']['has']('LegacyListEditing'))return;const _0x3f32af=_0x4c7cd7['plugins']['get']('TrackChangesEditing'),_0x8ff8b=_0x4c7cd7['plugins']['has']('LegacyTodoListEditing');function _0x29787b(_0x12103a){return()=>{const _0xfd138f=_0x4c7cd7['model']['document']['selection'],_0x1a24b4=_0x4c7cd7['commands']['get'](_0x12103a);if(_0x1a24b4['value'])return void _0x4c7cd7['execute']('paragraph',{});const _0x27f88b=_0x12103a['slice'](0x0,-0x4),_0x444d06=function(_0x383013,_0x2a0cb4,_0x107a4d){let _0x4136b4=Array['from'](_0x383013)['filter'](_0x46a833=>function(_0x1e1b05,_0x229f21){return _0x229f21['checkChild'](_0x1e1b05['parent'],'listItem')&&!_0x229f21['isObject'](_0x1e1b05);}(_0x46a833,_0x107a4d));_0x4136b4=_0x4136b4['filter'](_0x2ebdeb=>!_0x2ebdeb['is']('element','listItem')||_0x2ebdeb['getAttribute']('listType')!=_0x2a0cb4);const _0x338413=new Set();for(const _0x644109 of _0x4136b4)_0x644109['is']('element','listItem')?_0x338413['add'](fe(_0x644109)):_0x338413['add'](_0x644109);return Array['from'](_0x338413);}(_0xfd138f['getSelectedBlocks'](),_0x27f88b,_0x4c7cd7['model']['schema']);_0x4c7cd7['model']['change'](()=>{for(const _0x396997 of _0x444d06)_0x3f32af['markBlockFormat'](_0x396997,{'commandName':_0x12103a,'commandParams':[{'forceValue':!_0x1a24b4['value']}],'formatGroupId':'blockName'},ue(_0x396997));});};}function _0x44927b(_0x29bc9e){return()=>{const _0x1adb0c=function(_0x2571b9){let _0x180c3a=Array['from'](_0x2571b9);const _0x1f24eb=_0x180c3a['findIndex'](_0x3ef03b=>'listItem'!=_0x3ef03b['name']);return _0x1f24eb>-0x1&&(_0x180c3a=_0x180c3a['slice'](0x0,_0x1f24eb)),_0x180c3a;}(_0x4c7cd7['model']['document']['selection']['getSelectedBlocks']()),_0x3c32d9=_0x4c7cd7['model']['createRange'](_0x4c7cd7['model']['createPositionAt'](_0x1adb0c[0x0],'before'),_0x4c7cd7['model']['createPositionAt'](_0x1adb0c[_0x1adb0c['length']-0x1],'end'));_0x4c7cd7['model']['change'](()=>{_0x3f32af['markBlockFormat'](_0x3c32d9,{'commandName':_0x29bc9e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28c0f9){const _0x192a40=new Set();for(const _0x542e1a of _0x28c0f9){let _0x2a2801=_0x542e1a['nextSibling'];for(;_0x2a2801&&_0x2a2801['getAttribute']('listIndent')>_0x542e1a['getAttribute']('listIndent');)_0x192a40['add'](_0x2a2801),_0x2a2801=_0x2a2801['nextSibling'];}return Array['from'](_0x192a40);}(_0x1adb0c));});};}_0x3f32af['enableCommand']('numberedList',_0x29787b('numberedList')),_0x3f32af['enableCommand']('bulletedList',_0x29787b('bulletedList')),_0x8ff8b&&_0x3f32af['enableCommand']('todoList',_0x29787b('todoList')),_0x3f32af['enableCommand']('indentList',_0x44927b('indentList')),_0x3f32af['enableCommand']('outdentList',_0x44927b('outdentList')),_0x8ff8b&&_0x3f32af['enableCommand']('checkTodoList',()=>{const _0x319cb9=_0x4c7cd7['commands']['get']('checkTodoList'),_0x40dc12=Array['from'](_0x319cb9['_selectedElements']);_0x40dc12['filter'](_0x394b87=>_0x394b87['getAttribute']('todoListChecked')!=_0x319cb9['value']),_0x4c7cd7['model']['change'](()=>{for(const _0x7df032 of _0x40dc12)_0x3f32af['markBlockFormat'](_0x7df032,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x319cb9['value']}]});});}),_0x3f32af['descriptionFactory']['registerElementLabel']('listItem',_0x555687=>o(_0x3800e0,'ELEMENT_LIST_ITEM',_0x555687)),_0x3f32af['descriptionFactory']['registerDescriptionCallback'](_0x4915a9=>{if('formatBlock'!=_0x4915a9['type']&&'formatInline'!=_0x4915a9['type'])return;const {data:_0x2ce10f}=_0x4915a9;if(_0x2ce10f){if('numberedList'==_0x2ce10f['commandName']||'bulletedList'==_0x2ce10f['commandName']||'todoList'==_0x2ce10f['commandName'])switch(_0x2ce10f['commandName']['replace']('List','')){case'bulleted':return _0x1cf7de(o(_0x3800e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cf7de(o(_0x3800e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cf7de(o(_0x3800e0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2ce10f['commandName'])return{'type':'format','content':o(_0x3800e0,'*Indent:*\x20%0',o(_0x3800e0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2ce10f['commandName'])return{'type':'format','content':o(_0x3800e0,'*Outdent:*\x20%0',o(_0x3800e0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2ce10f['commandName'])return _0x2ce10f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3800e0,'*Check\x20item*')}:{'type':'format','content':o(_0x3800e0,'*Uncheck\x20item*')};}function _0x1cf7de(_0x456869){return{'type':'format','content':o(_0x3800e0,'*Change\x20to:*\x20%0',_0x456869)};}});}}function fe(_0x29b47b){const _0x38174c=_0x29b47b['getAttribute']('listIndent');if(0x0==_0x38174c)return _0x29b47b;let _0x5def4c=_0x29b47b;for(;_0x29b47b['previousSibling']&&_0x29b47b['previousSibling']['is']('element','listItem');){const _0xbd8650=_0x29b47b['previousSibling']['getAttribute']('listIndent');if(_0xbd8650==_0x38174c)_0x5def4c=_0x29b47b['previousSibling'];else{if(_0xbd8650<_0x38174c)break;}_0x29b47b=_0x29b47b['previousSibling'];}return _0x5def4c;}function ue(_0xcc1320){const _0x3f5b40=[];if(_0xcc1320['is']('element','listItem')&&_0xcc1320['getAttribute']('listIndent')>0x0){let _0x406568=_0xcc1320['nextSibling'];for(;_0x406568&&'listItem'==_0x406568['name']&&_0x406568['getAttribute']('listIndent')==_0xcc1320['getAttribute']('listIndent');)_0x3f5b40['push'](_0x406568),_0x406568=_0x406568['nextSibling'];}return _0x3f5b40;}class W extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d7d1d=this['editor']['config']['get']('list.properties'),_0x54abeb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d7d1d['styles']&&_0x54abeb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d7d1d['reversed']&&_0x54abeb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d7d1d['startIndex']&&_0x54abeb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x54abeb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5a6e49,_0x4564c6={}){const _0x1d2d89=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc47d76=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d2d89['markMultiRangeBlockFormat'](_0xc47d76,{'commandName':'listStyle','commandParams':[{'type':_0x4564c6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3a8faa,_0xffb12b={}){const _0x368ae3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43e88a=this['_getSuggestionBlocks'](_0x1922b0=>_0x1922b0['is']('element','listItem')&&'numbered'===_0x1922b0['getAttribute']('listType'));if(_0x43e88a['length']<0x1)return;const _0x4923a9=_0x43e88a['map'](_0xc673dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc673dc,'before'),this['editor']['model']['createPositionAt'](_0xc673dc,0x0)));this['editor']['model']['change'](()=>{_0x368ae3['markMultiRangeBlockFormat'](_0x4923a9,{'commandName':'listReversed','commandParams':[{'reversed':_0xffb12b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x337fb1,_0x4d9fce={}){const _0x1cc7bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc63d3e=this['_getSuggestionBlocks'](_0x4c1d70=>_0x4c1d70['is']('element','listItem')&&'numbered'===_0x4c1d70['getAttribute']('listType'));if(_0xc63d3e['length']<0x1)return;const _0x8b5d8c=_0xc63d3e['map'](_0x2e3ff8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e3ff8,'before'),this['editor']['model']['createPositionAt'](_0x2e3ff8,0x0)));this['editor']['model']['change'](()=>{_0x1cc7bc['markMultiRangeBlockFormat'](_0x8b5d8c,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d9fce['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9824b0){if('formatBlock'!=_0x9824b0['type']&&'formatInline'!=_0x9824b0['type'])return;const _0x640f47=this['editor']['locale'],{data:_0x46483a}=_0x9824b0;if(!_0x46483a)return;let _0x2ee97e,_0x30e33b;switch(_0x46483a['commandName']){case'listStyle':_0x2ee97e='*Change\x20to:*\x20%0',_0x30e33b={'type':'format','content':o(_0x640f47,_0x2ee97e,o(_0x640f47,this['_getTranslationKeyForListStyle'](_0x46483a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ee97e=_0x46483a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30e33b={'type':'format','content':o(_0x640f47,_0x2ee97e)};break;case'listStart':_0x2ee97e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30e33b={'type':'format','content':o(_0x640f47,_0x2ee97e,_0x46483a['commandParams'][0x0]['startIndex'])};}return _0x30e33b;}['_getSuggestionBlocksForListStyle'](){const _0x2fc902=this['editor']['plugins']['get']('LegacyListUtils');let _0x308351=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x308351[0x0]?.['is']('element','listItem')&&_0x308351['unshift'](..._0x2fc902['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x308351[_0x308351['length']-0x1]?.['is']('element','listItem')&&_0x308351['push'](..._0x2fc902['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x308351=[...new Set(_0x308351)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x308351=_0x308351['filter'](_0x3d0cd8=>_0x3d0cd8['is']('element','listItem'))),_0x308351;}['_getSuggestionBlocks'](_0x5b4cc4){const _0x453a48=this['editor']['plugins']['get']('LegacyListUtils');let _0x149c87=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5b4cc4)['map'](_0x1d3e9d=>{const _0x1b0f80=this['editor']['model']['createPositionAt'](_0x1d3e9d,0x0);return[..._0x453a48['getSiblingNodes'](_0x1b0f80,'backward'),..._0x453a48['getSiblingNodes'](_0x1b0f80,'forward')];})['flat']();return _0x149c87=[...new Set(_0x149c87)],_0x149c87;}['_getTranslationKeyForListStyle'](_0x5884f2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5884f2)||'default')['toUpperCase']()+'_LIST_'+_0x5884f2['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4fe0d7{['afterInit'](){const _0x59e89d=this['editor'];if(!_0x59e89d['plugins']['has']('MediaEmbedEditing'))return;const _0xaa3c2d=_0x59e89d['plugins']['get']('TrackChangesEditing'),_0x5494a5=_0x59e89d['locale'];_0xaa3c2d['enableCommand']('mediaEmbed'),_0xaa3c2d['descriptionFactory']['registerElementLabel']('media',_0x3f24a0=>o(_0x5494a5,'ELEMENT_MEDIA',_0x3f24a0)),_0x59e89d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x646d18,{writer:_0x581f7c,options:_0x1c3773})=>{if(_0x1c3773['showSuggestionHighlights'])return _0x581f7c['createEmptyElement']('div');},'converterPriority':'high'}),_0x59e89d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x25c853,_0xaddc05,_0x4b74a0)=>{_0x4b74a0['options']['showSuggestionHighlights']&&_0x25c853['stop']();},{'priority':'high'});}}class mt extends _0x4fe0d7{['afterInit'](){const _0x4a7dd2=this['editor'];_0x4a7dd2['plugins']['has']('MentionEditing')&&_0x4a7dd2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4fe0d7{['afterInit'](){const _0x10e034=this['editor'];if(!_0x10e034['plugins']['has']('MergeFieldsEditing'))return;_0x10e034['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x10e034['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5e263f=_0x10e034['plugins']['get']('TrackChangesEditing'),_0x3d6a73=_0x10e034['locale'];_0x5e263f['descriptionFactory']['registerElementLabel']('mergeField',_0x38b074=>o(_0x3d6a73,'ELEMENT_MERGE_FIELD',_0x38b074)),_0x5e263f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3be0bd=>o(_0x3d6a73,'ELEMENT_MERGE_FIELD',_0x3be0bd)),_0x5e263f['descriptionFactory']['registerDescriptionCallback'](_0x5cd56c=>{if('insertion'!=_0x5cd56c['type']&&'deletion'!=_0x5cd56c['type'])return;const _0x536c63=_0x5cd56c['getContainedElement']();if(null==_0x536c63)return;if(!_0x536c63['is']('element','mergeField')&&!_0x536c63['is']('element','mergeFieldBlock'))return;const _0x1f68c4=_0x10e034['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x536c63['getAttribute']('id'));return'insertion'==_0x5cd56c['type']?{'type':'insertion','content':o(_0x3d6a73,'*Insert:*\x20%0','\x22'+_0x1f68c4+'\x22\x20'+o(_0x3d6a73,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3d6a73,'*Remove:*\x20%0','\x22'+_0x1f68c4+'\x22\x20'+o(_0x3d6a73,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4fe0d7{['afterInit'](){const _0x411ef4=this['editor'],_0xf78f0d=_0x411ef4['plugins']['get']('TrackChangesEditing');_0x411ef4['plugins']['has']('MultiLevelList')&&(_0xf78f0d['enableDefaultAttributesIntegration']('multiLevelList'),_0xf78f0d['registerBlockAttribute']('listMarkerStyle'),_0xf78f0d['descriptionFactory']['registerDescriptionCallback'](_0xfef3fa=>this['handleDescriptions'](_0xfef3fa)));}['handleDescriptions'](_0x57b120){const _0x471d25=this['editor']['locale'],{data:_0x141d33}=_0x57b120,_0x1f1d97={'type':'format','content':''};if(_0x141d33&&'listMarkerStyle'==_0x141d33['key']){if(!_0x141d33['oldValue'])return{'type':'format','content':o(_0x471d25,'*Set\x20format:*\x20%0',o(_0x471d25,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x141d33['newValue']+')'};if(!_0x141d33['newValue']){let _0x351fb7=_0x57b120['head'];for(;_0x351fb7;){if(_0x351fb7['data']&&'listType'==_0x351fb7['data']['key']&&_0x351fb7['data']['newValue'])return _0x1f1d97;_0x351fb7=_0x351fb7['next'];}return{'type':'format','content':o(_0x471d25,'*Remove\x20format:*\x20%0',o(_0x471d25,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x141d33['oldValue']+')'};}}}}class kt extends _0x4fe0d7{['afterInit'](){const _0x1903c1=this['editor'];if(!_0x1903c1['plugins']['has']('PageBreakEditing'))return;_0x1903c1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x57d3bf=_0x1903c1['plugins']['get']('TrackChangesEditing'),_0x55a84d=_0x1903c1['locale'];_0x57d3bf['descriptionFactory']['registerElementLabel']('pageBreak',_0x17d58a=>o(_0x55a84d,'ELEMENT_PAGE_BREAK',_0x17d58a));}}class bt extends _0x4fe0d7{['afterInit'](){const _0x59be10=this['editor'];if(!_0x59be10['plugins']['has']('Paragraph'))return;const _0x4661d6=_0x59be10['locale'],_0x1d19f6=_0x59be10['plugins']['get']('TrackChangesEditing');_0x1d19f6['descriptionFactory']['registerElementLabel']('paragraph',_0x32ae4d=>o(_0x4661d6,'ELEMENT_PARAGRAPH',_0x32ae4d)),_0x1d19f6['enableDefaultAttributesIntegration']('paragraph'),_0x1d19f6['enableCommand']('insertParagraph'),_0x59be10['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59be10),{'priority':'highest'}),_0x59be10['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e55a8,_0x40896e,_0x1e2cb7)=>{_0x1e2cb7['options']['showSuggestionHighlights']&&nr(_0x59be10,{'showActiveMarker':!0x1})(_0x3e55a8,_0x40896e,_0x1e2cb7);},{'priority':'highest'});const _0x14d453=_0x1d19f6['descriptionFactory'];_0x14d453['registerDescriptionCallback'](_0x20333c=>{if('insertion'!==_0x20333c['type'])return;const {start:_0xb0c7df,end:_0x59441b}=_0x20333c['getFirstRange']();if(!_0xb0c7df['isTouching'](_0x59441b)||!_0xb0c7df['nodeAfter'])return;const _0x21ad10=_0x59be10['model']['schema'],_0x5e72fc=_0xb0c7df['nodeAfter'];return _0x21ad10['isBlock'](_0x5e72fc)&&!_0x21ad10['isLimit'](_0x5e72fc)&&_0x21ad10['checkChild'](_0x5e72fc,'$text')?{'type':'insertion','content':o(_0x4661d6,'*Insert:*\x20%0',_0x14d453['getItemLabel'](_0x5e72fc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x113111=this['editor'],_0x15097c=_0x113111['locale'];_0x113111['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2675eb=>{if('formatBlock'!=_0x2675eb['type'])return;const {data:_0x34a42e}=_0x2675eb;return _0x34a42e&&'paragraph'==_0x34a42e['commandName']?{'type':'format','content':o(_0x15097c,'*Change\x20to:*\x20%0',o(_0x15097c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x269a69,{showActiveMarker:_0x392130=!0x0}={}){return(_0x3a2804,_0x5193e7,_0x4bf407)=>{const _0x10ee37=_0x269a69['plugins']['get']('TrackChangesEditing'),_0x5be1a0=_0x5193e7['markerRange']['start'],_0x3e9708=_0x5193e7['markerRange']['end'],_0x2e8c39=_0x269a69['model']['schema'];if(!_0x5be1a0['isTouching'](_0x3e9708)||!_0x5be1a0['nodeAfter'])return;const _0x3ecfb=_0x5be1a0['nodeAfter'];if(_0x2e8c39['isBlock'](_0x3ecfb)&&!_0x2e8c39['isLimit'](_0x3ecfb)&&_0x2e8c39['checkChild'](_0x3ecfb,'$text')){if(!_0x4bf407['consumable']['consume'](_0x5193e7['markerRange'],_0x3a2804['name']))return;const {authorId:_0x57850b}=_0x10ee37['_splitMarkerName'](_0x5193e7['markerName']),_0x2a34e1=_0x4bf407['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x57850b}),_0x85eee3=_0x4bf407['mapper']['toViewPosition'](_0x3e9708);_0x392130&&_0x10ee37['activeMarkers']['includes'](_0x5193e7['markerName'])&&_0x4bf407['writer']['addClass']('ck-suggestion-marker--active',_0x2a34e1),_0x4bf407['writer']['insert'](_0x85eee3,_0x2a34e1),_0x4bf407['mapper']['bindElementToMarker'](_0x2a34e1,_0x5193e7['markerName']);}};}class wt extends _0x4fe0d7{['afterInit'](){const _0x39595f=this['editor'];if(!_0x39595f['plugins']['has']('RemoveFormatEditing'))return;_0x39595f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x570990=this['editor'];_0x570990['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x542365=>{if('formatBlock'!=_0x542365['type']&&'formatInline'!=_0x542365['type'])return;const {data:_0x39122c}=_0x542365;return _0x39122c&&'removeFormat'==_0x39122c['commandName']?{'type':'format','content':o(_0x570990['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4fe0d7{['afterInit'](){const _0x3bd97b=this['editor'];if(!_0x3bd97b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xe3b1a0=_0x3bd97b['plugins']['get']('TrackChangesEditing');_0xe3b1a0['enableCommand']('goToPreviousRestrictedEditingException'),_0xe3b1a0['enableCommand']('goToNextRestrictedEditingException');const _0xba445d=_0x3bd97b['plugins']['get']('RestrictedEditingModeEditing');_0xba445d['enableCommand']('trackChanges'),_0xba445d['enableCommand']('acceptSuggestion'),_0xba445d['enableCommand']('discardSuggestion'),_0xba445d['enableCommand']('acceptAllSuggestions'),_0xba445d['enableCommand']('discardAllSuggestions'),_0xba445d['enableCommand']('acceptSelectedSuggestions'),_0xba445d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4fe0d7{static get['requires'](){return[_0x485f45];}['init'](){const _0x5b4c11=this['editor'],_0x12b277=_0x5b4c11['plugins']['get']('TrackChangesEditing');_0x12b277['enableCommand']('shiftEnter'),_0x5b4c11['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5b4c11),{'priority':'high'}),_0x5b4c11['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5b4c11),{'priority':'high'}),_0x5b4c11['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cae64,_0x28d8fd,_0x443c35)=>{_0x443c35['options']['showSuggestionHighlights']&&ge(_0x5b4c11,{'showActiveMarker':!0x1})(_0x2cae64,_0x28d8fd,_0x443c35);}),_0x12b277['descriptionFactory']['registerElementLabel']('softBreak',_0x52ff16=>o(_0x5b4c11['locale'],'ELEMENT_LINE_BREAK',_0x52ff16));}}function ge(_0xaa12b4,{showActiveMarker:_0x486b8b=!0x0}={}){return(_0x1b4a3e,_0x57e383,_0x4ef88c)=>{const _0x164100=_0xaa12b4['plugins']['get']('TrackChangesEditing');if(!_0x4ef88c['consumable']['test'](_0x57e383['markerRange'],_0x1b4a3e['name']))return;const _0x38ebfa=_0xaa12b4['model'];for(const _0x5d89b1 of _0x57e383['markerRange']['getItems']()){if(!_0x5d89b1['is']('element','softBreak'))continue;const _0x12fc91='deletion'==_0x57e383['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4b5dab}=_0x164100['_splitMarkerName'](_0x57e383['markerName']),_0x21beb9=_0x4ef88c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12fc91,'data-author-id':_0x4b5dab}),_0x42e4a3=_0x4ef88c['mapper']['toViewPosition'](_0x38ebfa['createPositionBefore'](_0x5d89b1));_0x486b8b&&_0x164100['activeMarkers']['includes'](_0x57e383['markerName'])&&_0x4ef88c['writer']['addClass']('ck-suggestion-marker--active',_0x21beb9),_0x4ef88c['writer']['insert'](_0x42e4a3,_0x21beb9),_0x4ef88c['mapper']['bindElementToMarker'](_0x21beb9,_0x57e383['markerName']);}};}class St extends _0x4fe0d7{['afterInit'](){const _0x4e5903=this['editor'],_0x35d6da=_0x4e5903['model'],_0x12b272=_0x4e5903['locale'];if(!_0x4e5903['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ef2e1=_0x4e5903['plugins']['get']('TrackChangesEditing'),_0x10a932='restrictedEditingException',_0x25b607=_0x4e5903['commands']['get'](_0x10a932);_0x1ef2e1['enableCommand'](_0x10a932,(_0x1be7f1,_0xa942da={})=>{const _0x4c09fc=_0x35d6da['document']['selection'];if(_0x4c09fc['isCollapsed'])return void _0x1be7f1(_0xa942da);const _0x155d44=void 0x0!==_0xa942da['forceValue']?_0xa942da['forceValue']:!_0x25b607['value'];_0x35d6da['change'](()=>{const _0x486962=Array['from'](_0x4c09fc['getRanges']());for(const _0x439929 of _0x486962){const _0x3eacc2=_0x155d44?[_0x439929]:io(_0x10a932,_0x439929,_0x35d6da);for(const _0xc3de7a of _0x3eacc2)_0x1ef2e1['markInlineFormat'](_0xc3de7a,{'commandName':_0x10a932,'commandParams':[{'forceValue':_0x155d44}]});}});}),_0x1ef2e1['descriptionFactory']['registerDescriptionCallback'](_0x2b8ee4=>{if('formatBlock'!=_0x2b8ee4['type']&&'formatInline'!=_0x2b8ee4['type'])return;const {data:_0xb0667c}=_0x2b8ee4;return _0xb0667c&&_0xb0667c['commandName']==_0x10a932?_0xb0667c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12b272,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x12b272,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4fe0d7{['afterInit'](){const _0x5d0e32=this['editor'];if(!_0x5d0e32['plugins']['has']('Style')||!_0x5d0e32['plugins']['has']('DataSchema'))return;const _0x4699a1=_0x5d0e32['plugins']['get']('TrackChangesEditing'),_0x6d0c63=_0x5d0e32['locale'],_0x4f9413=_0x5d0e32['config']['get']('style')||{},_0x2e852e=_0x5d0e32['plugins']['get']('GeneralHtmlSupport'),_0x49ab33=_0x5d0e32['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5d0e32['plugins']['get']('DataSchema'),_0x4f9413['definitions']);_0x4699a1['enableDefaultAttributesIntegration']('style');const _0x1f7bf9=new Set();for(const _0x2ab366 of _0x49ab33['block']){const _0x30375d=_0x2e852e['getGhsAttributeNameForElement'](_0x2ab366['element']);_0x1f7bf9['add'](_0x30375d);}const _0x51e591=new Set();for(const _0x32fc6c of _0x49ab33['inline']){const _0x2ab44d=_0x2e852e['getGhsAttributeNameForElement'](_0x32fc6c['element']);_0x51e591['add'](_0x2ab44d);for(const _0x19d4c7 of _0x32fc6c['ghsAttributes'])_0x51e591['add'](_0x19d4c7);}for(const _0x2d2d16 of _0x1f7bf9)_0x4699a1['registerBlockAttribute'](_0x2d2d16),_0x4699a1['descriptionFactory']['registerAttributeLabel'](_0x2d2d16,o(_0x6d0c63,'FORMAT_STYLE'));for(const _0x29fc2c of _0x51e591)_0x4699a1['registerInlineAttribute'](_0x29fc2c),_0x4699a1['descriptionFactory']['registerAttributeLabel'](_0x29fc2c,o(_0x6d0c63,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x221b1c=this['editor'],_0x17aa1a=_0x221b1c['locale'];_0x221b1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435102=>{if('formatBlock'!=_0x435102['type']&&'formatInline'!=_0x435102['type'])return;const {data:_0x10ff7b}=_0x435102;return _0x10ff7b&&'style'===_0x10ff7b['commandName']?_0x10ff7b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17aa1a,'*Set\x20format:*\x20%0',_0x10ff7b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x17aa1a,'*Remove\x20format:*\x20%0',_0x10ff7b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4fe0d7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x307d0a){super(_0x307d0a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x363ef7=this['editor'],_0x3b8dcd=_0x363ef7['model']['document']['selection'];if(!_0x363ef7['plugins']['has']('TableEditing'))return;const _0x3d836e=_0x363ef7['locale'],_0x2d7007=_0x363ef7['plugins']['get']('TrackChangesEditing'),_0x204c55=_0x363ef7['plugins']['get']('TableUtils');_0x2d7007['descriptionFactory']['registerElementLabel']('table',_0xb92962=>o(_0x3d836e,'ELEMENT_TABLE',_0xb92962)),this['_setupColumnsRowsFixing'](),_0x2d7007['enableCommand']('insertTable'),_0x2d7007['enableCommand']('selectTableRow'),_0x2d7007['enableCommand']('selectTableColumn');for(const _0x409fcf of['insertTableRowAbove','insertTableRowBelow']){const _0x453b9a=_0x363ef7['commands']['get'](_0x409fcf);_0x2d7007['enableCommand'](_0x409fcf,_0x39f5d2=>{_0x363ef7['model']['change'](_0x294aa6=>{_0x39f5d2();const _0xe7899d='above'===_0x453b9a['order'],_0x58c559=_0x204c55['getSelectionAffectedTableCells'](_0x3b8dcd),_0x3ac5fa=_0x204c55['getRowIndexes'](_0x58c559),_0x32d48c=_0xe7899d?_0x3ac5fa['first']-0x1:_0x3ac5fa['last']+0x1,_0x42879f=_0x58c559[0x0]['findAncestor']('table'),_0x266bb0=_0x204c55['createTableWalker'](_0x42879f,{'startRow':_0x32d48c,'endRow':_0x32d48c}),_0x4c433a=Array['from'](_0x266bb0)['map'](_0x448ac5=>_0x294aa6['createRangeOn'](_0x448ac5['cell']));_0x2d7007['markMultiRangeInsertion'](_0x4c433a,'tableRow');});});}for(const _0x520b4e of['insertTableColumnLeft','insertTableColumnRight']){const _0x3b0f6f=_0x363ef7['commands']['get'](_0x520b4e);_0x2d7007['enableCommand'](_0x520b4e,_0x41c9ee=>{_0x363ef7['model']['change'](_0x376a24=>{_0x41c9ee();const _0x36cf2b='left'===_0x3b0f6f['order'],_0x448cd7=_0x204c55['getSelectionAffectedTableCells'](_0x3b8dcd),_0x215a2f=_0x204c55['getColumnIndexes'](_0x448cd7),_0x1a0223=_0x36cf2b?_0x215a2f['first']-0x1:_0x215a2f['last']+0x1,_0x3b7e81=_0x448cd7[0x0]['findAncestor']('table'),_0x2e1d73=_0x204c55['createTableWalker'](_0x3b7e81,{'startRow':0x0,'column':_0x1a0223,'includeAllSlots':!0x1}),_0x44d04e=Array['from'](_0x2e1d73)['map'](_0xeca02=>_0x376a24['createRangeOn'](_0xeca02['cell']));_0x2d7007['markMultiRangeInsertion'](_0x44d04e,'tableColumn');});});}for(const _0x3501cf of['removeTableRow','removeTableColumn']){const _0x4f8c23=_0x3501cf['substr'](0xb),_0x6c5f1b=_0x4f8c23['toLowerCase'](),_0x1f9e07=_0x6c5f1b['substr'](0x0,0x3)+'span',_0xcaf757='table'+_0x4f8c23,_0x86e3cf='min'+_0x4f8c23,_0x1f38a6='max'+_0x4f8c23;_0x2d7007['enableCommand'](_0x3501cf,()=>{_0x363ef7['model']['change'](_0x408b41=>{const _0x12beae=_0x204c55['getSelectionAffectedTableCells'](_0x3b8dcd),_0x344580=_0x12beae[0x0]['findAncestor']('table');let _0x9cf40b;if('removeTableRow'==_0x3501cf){const _0x2bf684=_0x204c55['getRowIndexes'](_0x12beae);_0x9cf40b={'startRow':_0x2bf684['first'],'endRow':_0x2bf684['last'],'includeAllSlots':!0x0};}else{const _0x2298b2=_0x204c55['getColumnIndexes'](_0x12beae);_0x9cf40b={'startColumn':_0x2298b2['first'],'endColumn':_0x2298b2['last'],'includeAllSlots':!0x0};}const _0x184afa=_0x204c55['createTableWalker'](_0x344580,_0x9cf40b),_0x3d1d52=Array['from'](_0x184afa)['map'](({cell:_0x2ca6fb})=>_0x2ca6fb),_0x54e4b9=be(_0x3d1d52['filter'](_0x470802=>_0x470802['hasAttribute'](_0x1f9e07))),_0x55ee6a=be(_0x3d1d52['filter'](_0x4ac235=>!_0x4ac235['hasAttribute'](_0x1f9e07)))['map'](_0x555d9d=>_0x408b41['createRangeOn'](_0x555d9d)),_0x42b31f=_0x2d7007['markMultiRangeDeletion'](_0x55ee6a,_0xcaf757);if(_0x42b31f&&('tableRow'==_0x42b31f['subType']||'tableColumn'==_0x42b31f['subType'])){const _0x1baf8a=this['_getSuggestionCoords'](_0x42b31f);for(const _0x7cedc8 of _0x54e4b9){const _0x5a0695=_0x408b41['createRangeOn'](_0x7cedc8),_0x25f0a4=_0x204c55['getCellLocation'](_0x7cedc8),_0x3ea59b=_0x7cedc8['getAttribute'](_0x1f9e07)-0x1,_0x31d2a7=_0x1baf8a[_0x86e3cf],_0x43d53b=_0x1baf8a[_0x1f38a6];_0x31d2a7<=_0x25f0a4[_0x6c5f1b]&&_0x25f0a4[_0x6c5f1b]+_0x3ea59b<=_0x43d53b&&_0x42b31f['addRange'](_0x5a0695);}}});});}function _0x325423(_0x4a0ea6){const _0x1a7efe=Array['from'](_0x3b8dcd['getRanges']())['map'](_0x69eea8=>_0x12550f['fromRange'](_0x69eea8));_0x363ef7['model']['change'](_0x5b4bbe=>{const _0x30d364=_0x5b4bbe['batch'];_0x4a0ea6=_0x4a0ea6['filter'](_0x4d15a7=>'$graveyard'!=_0x4d15a7['root']['rootName']),_0x5b4bbe['setSelection'](_0x4a0ea6),_0x363ef7['commands']['get']('removeTableRow')['refresh'](),_0x363ef7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x363ef7['model']['enqueueChange'](()=>{_0x363ef7['model']['enqueueChange'](_0x30d364,_0x166a81=>{const _0x185d3b=_0x1a7efe['filter'](_0x4a2bb5=>'$graveyard'!=_0x4a2bb5['root']['rootName']);_0x185d3b['length']>0x0&&_0x166a81['setSelection'](_0x185d3b);for(const _0xe8af5b of _0x1a7efe)_0xe8af5b['detach']();});});});}function _0x2f9917(_0x5e5ead){_0x363ef7['model']['change'](_0x3b18fb=>{const _0x1954de=Array['from'](_0x3b8dcd['getRanges']())['map'](_0x314d9f=>_0x12550f['fromRange'](_0x314d9f)),_0x3ecf63=[];for(const _0xf3982d of _0x5e5ead)for(const _0x5b3d76 of _0xf3982d['getItems']({'shallow':!0x0}))_0x3ecf63['push'](_0x5b3d76);for(const _0x23eb41 of _0x3ecf63)'$graveyard'!=_0x23eb41['root']['rootName']&&(_0x3b18fb['setSelection'](_0x3b18fb['createPositionAt'](_0x23eb41,0x0)),_0x363ef7['commands']['get']('removeTableColumn')['refresh'](),_0x363ef7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x372f57=_0x1954de['filter'](_0x43f11d=>'$graveyard'!=_0x43f11d['root']['rootName']);_0x372f57['length']>0x0&&_0x3b18fb['setSelection'](_0x372f57);for(const _0x5c414c of _0x1954de)_0x5c414c['detach']();});}function _0x3a5506(_0x420526,_0x297ff2){return _0x297ff2['every'](_0x44ec47=>_0x420526['some'](_0x56f18d=>_0x56f18d['end']['isEqual'](_0x44ec47['start'])||_0x44ec47['end']['isEqual'](_0x56f18d['start'])));}function _0x3743ac(_0x264916,_0x540b1d){return!_0x264916['some'](_0x176f7d=>_0x540b1d['some'](_0x27bca5=>_0x176f7d['isIntersecting'](_0x27bca5)))&&_0x264916['some'](_0x2023fd=>_0x540b1d['some'](_0x349a1e=>_0x2023fd['end']['isTouching'](_0x349a1e['start'])));}_0x363ef7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38afe8,_0x47f629,_0x24ef6d)=>{if(!_0x24ef6d['options']['showSuggestionHighlights'])return;const _0x29dc12=_0x47f629['item'];if(!_0x29dc12)return;const _0x1e7663=_0x24ef6d['mapper']['toViewElement'](_0x29dc12);function _0x1a4f20(_0x1693d5){return Array['isArray'](_0x1693d5)?_0x1693d5:[_0x1693d5];}_0x1e7663&&'tableCell'===_0x29dc12['name']&&_0x4802ab(_0x1e7663,_0x24ef6d['writer'],(_0x532a22,_0x303079,_0x3467c4)=>_0x3467c4['addClass'](_0x1a4f20(_0x303079['classes']),_0x532a22),(_0x570d03,_0x159547,_0x55a66c)=>_0x55a66c['removeClass'](_0x1a4f20(_0x159547['classes']),_0x570d03));},{'priority':'highest'}),_0x2d7007['descriptionFactory']['registerDescriptionCallback'](_0x38ad7e=>{if('insertion'!=_0x38ad7e['type']&&'deletion'!=_0x38ad7e['type'])return;const _0x311c56=_0x38ad7e['getContainedElement']();if(null!=_0x311c56&&_0x311c56['is']('element','table')){if('insertion'==_0x38ad7e['type']){const _0x365cae=_0x38ad7e['getItems']()['filter'](_0x456b3e=>_0x456b3e['is']('$textProxy'))['map'](_0x386081=>_0x386081['data']);if(_0x365cae['length'])return{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x365cae['join']('\x20')+'\x22'))};}if('deletion'==_0x38ad7e['type']){const _0x1596ab=_0x38ad7e['getItems']()['filter'](_0x5cabe5=>_0x5cabe5['is']('$textProxy'))['map'](_0x87c444=>_0x87c444['data']);if(_0x1596ab['length'])return{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1596ab['join']('\x20')+'\x22'))};}}}),_0x2d7007['descriptionFactory']['registerDescriptionCallback'](_0x22afd9=>{if('tableRow'==_0x22afd9['subType']){const _0x4ab641=_0x22afd9['getItems']()['filter'](_0x294d59=>_0x294d59['is']('$textProxy'))['map'](_0x3ce420=>_0x3ce420['data']),_0x287baf=this['_getSuggestionCoords'](_0x22afd9),_0x245b7e=_0x287baf['maxRow']-_0x287baf['minRow']+0x1;if('insertion'==_0x22afd9['type'])return _0x4ab641['length']?{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x245b7e,'\x22'+_0x4ab641['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW',_0x245b7e))};if('deletion'==_0x22afd9['type'])return _0x4ab641['length']?{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x245b7e,'\x22'+_0x4ab641['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_ROW',_0x245b7e))};}if('tableColumn'==_0x22afd9['subType']){const _0xd15c6e=_0x22afd9['getItems']()['filter'](_0x11efd7=>_0x11efd7['is']('$textProxy'))['map'](_0x181235=>_0x181235['data']),_0x41ecdd=this['_getSuggestionCoords'](_0x22afd9),_0x5c11ca=_0x41ecdd['maxColumn']-_0x41ecdd['minColumn']+0x1;if('insertion'==_0x22afd9['type'])return _0xd15c6e['length']?{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c11ca,'\x22'+_0xd15c6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d836e,'*Insert:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN',_0x5c11ca))};if('deletion'==_0x22afd9['type'])return _0xd15c6e['length']?{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c11ca,'\x22'+_0xd15c6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d836e,'*Remove:*\x20%0',o(_0x3d836e,'ELEMENT_TABLE_COLUMN',_0x5c11ca))};}}),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x325423),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x325423),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f9917),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f9917),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3a5506),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3a5506),_0x2d7007['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3743ac),_0x2d7007['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3743ac);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a71f1=this['editor'],_0x31fd40=_0x3a71f1['model']['document']['selection'];return(_0xda2192,_0x5efe4a)=>{_0x3a71f1['model']['change'](_0x29160b=>{const {commandName:_0x4ce5fa,commandParams:_0x3d0634}=_0x5efe4a;let _0x64c343=_0xda2192[0x0]['end']['nodeBefore'];_0x3d0634&&_0x3d0634[0x0]&&!0x1===_0x3d0634[0x0]['forceValue']&&(_0x64c343=_0xda2192[0x0]['start']['nodeAfter']);const _0x3b07ff=_0x29160b['createRangeIn'](_0x64c343);if('$graveyard'==_0x3b07ff['root']['rootName'])return;const _0x1e4e7f=Array['from'](_0x31fd40['getRanges']())['map'](_0x233a73=>_0x12550f['fromRange'](_0x233a73));_0x29160b['setSelection'](_0x3b07ff),_0x3a71f1['commands']['get'](_0x4ce5fa)['refresh'](),_0x3d0634['push']({'forceDefaultExecution':!0x0}),_0x3a71f1['execute'](_0x4ce5fa,..._0x3d0634);const _0x359bf2=_0x1e4e7f['filter'](_0x47458c=>'$graveyard'!=_0x47458c['root']['rootName']);_0x359bf2['length']>0x0&&_0x29160b['setSelection'](_0x359bf2);for(const _0x8ceecc of _0x1e4e7f)_0x8ceecc['detach']();});};}['_getCoordsForCells'](_0x2d8577){const _0x593d1f=this['editor']['plugins']['get']('TableUtils');let _0x30163f=Number['MAX_SAFE_INTEGER'],_0x26e779=Number['MIN_SAFE_INTEGER'],_0x2b9bb7=Number['MAX_SAFE_INTEGER'],_0x1edc26=Number['MIN_SAFE_INTEGER'];for(const _0x377322 of _0x2d8577){if('$graveyard'==_0x377322['root']['rootName'])continue;const {row:_0x736d43,column:_0x25bf15}=_0x593d1f['getCellLocation'](_0x377322),_0xf4b83a=_0x377322['hasAttribute']('rowspan')?_0x377322['getAttribute']('rowspan')-0x1:0x0,_0x1a3aca=_0x377322['hasAttribute']('colspan')?_0x377322['getAttribute']('colspan')-0x1:0x0;_0x30163f=_0x736d43<_0x30163f?_0x736d43:_0x30163f,_0x26e779=_0x736d43+_0xf4b83a>_0x26e779?_0x736d43+_0xf4b83a:_0x26e779,_0x2b9bb7=_0x25bf15<_0x2b9bb7?_0x25bf15:_0x2b9bb7,_0x1edc26=_0x25bf15+_0x1a3aca>_0x1edc26?_0x25bf15+_0x1a3aca:_0x1edc26;}return{'minRow':_0x30163f,'maxRow':_0x26e779,'minColumn':_0x2b9bb7,'maxColumn':_0x1edc26};}['_setupColumnsRowsFixing'](){const _0x4f9302=this['editor'],_0xa88584=_0x4f9302['plugins']['get']('TrackChangesEditing'),_0xb86aba=_0x4f9302['plugins']['get']('TableUtils');_0x4f9302['model']['document']['on']('change:data',()=>{const _0x43e1f6=Array['from'](_0x4f9302['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x520039,data:_0x3bc233}of _0x43e1f6){const {group:_0x3021a0,id:_0x1c096f,subType:_0x1bef9a}=_0xa88584['_splitMarkerName'](_0x520039);if('suggestion'!=_0x3021a0)continue;if(null!=_0x3bc233['oldRange'])continue;const _0x268036=_0xa88584['getSuggestion'](_0x1c096f);this['_tablePostFixingSubtypes']['includes'](_0x1bef9a)&&this['_tableSuggestions']['add'](_0x268036);}},{'priority':'low'});const _0xf07f54=(_0x3ca15c,_0x223c78)=>{let _0x211d1e=!0x1;const _0x258404=_0x223c78['createRangeOn'](_0x3ca15c),_0x4babf0=_0x3ca15c['findAncestor']('table'),_0x115ad8=_0xb86aba['getCellLocation'](_0x3ca15c);for(const _0xca3f40 of this['_tableSuggestions']){const _0x5e0915=_0xca3f40['subType'],_0x1b1cc5=_0x5e0915['startsWith']('tablePaste'),_0x1b66af=_0x5e0915['substr'](_0x1b1cc5?0xa:0x5),_0x4303ff=_0x1b66af['toLowerCase'](),_0x5d9b4d=_0x4303ff['substr'](0x0,0x3)+'span',_0x57cfd6='min'+_0x1b66af,_0x502a00='max'+_0x1b66af;if(!_0xca3f40['isInContent'])continue;if(_0x4babf0!=_0xca3f40['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xca3f40['isIntersectingWithRange'](_0x258404))continue;const _0x3a0544=_0x3ca15c['hasAttribute'](_0x5d9b4d)?_0x3ca15c['getAttribute'](_0x5d9b4d)-0x1:0x0,_0x5bc43b=this['_getSuggestionCoords'](_0xca3f40),_0x29f210=_0x5bc43b[_0x57cfd6],_0x41f67d=_0x5bc43b[_0x502a00];_0x29f210<=_0x115ad8[_0x4303ff]&&_0x115ad8[_0x4303ff]+_0x3a0544<=_0x41f67d&&(_0xca3f40['addRange'](_0x258404),_0x211d1e=!0x0);}return _0x211d1e;};_0x4f9302['model']['document']['registerPostFixer'](_0x31cad9=>{let _0x4db57f=!0x1;for(const _0x1d5122 of _0x4f9302['model']['document']['differ']['getChanges']())if('insert'==_0x1d5122['type']){if('tableRow'==_0x1d5122['name']){for(const _0x7a4e80 of _0x1d5122['position']['nodeAfter']['getChildren']())_0x4db57f=_0x4db57f||_0xf07f54(_0x7a4e80,_0x31cad9);}else'tableCell'==_0x1d5122['name']&&(_0x4db57f=_0x4db57f||_0xf07f54(_0x1d5122['position']['nodeAfter'],_0x31cad9));}return _0x4db57f;});}['_getSuggestionCoords'](_0x5ef03c){return this['_getCoordsForCells'](_0x5ef03c['getRanges']()['map'](_0x55de45=>_0x55de45['start']['nodeAfter']));}}function be(_0x33cdf2){return Array['from'](new Set(_0x33cdf2)['values']());}class vt extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0x8d6f89=this['editor'],_0x3661cc=_0x8d6f89['model']['document']['selection'],_0x1ea206=_0x8d6f89['locale'];if(!_0x8d6f89['plugins']['has']('TableEditing'))return;const _0x886538=_0x8d6f89['plugins']['get']('TrackChangesEditing'),_0x483ec0=_0x8d6f89['plugins']['get']('TableUtils'),_0x2c96f1=_0x8d6f89['plugins']['get'](It);_0x2c96f1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x886538['enableCommand']('mergeTableCells',()=>{const _0x5c0bbc=_0x483ec0['getSelectionAffectedTableCells'](_0x8d6f89['model']['document']['selection']);_0x8d6f89['model']['change'](()=>{_0x886538['markMultiRangeBlockFormat'](_0x5c0bbc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x8d6f89['commands']['get']('mergeTableCells')['on']('execute',(_0x11d083,_0x1689ee)=>{_0x8d6f89['commands']['get']('trackChanges')['value']&&(_0x1689ee['length']>0x0&&_0x1689ee[_0x1689ee['length']-0x1]&&_0x1689ee[_0x1689ee['length']-0x1]['forceDefaultExecution']||_0x886538['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11d083['stop']());},{'priority':'highest'});for(const _0x1493fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2dacfb=_0x8d6f89['commands']['get'](_0x1493fd);_0x886538['enableCommand'](_0x1493fd,()=>{const _0x297d98=_0x8d6f89['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23376c=>_0x23376c['is']('element','tableCell')),_0x273e2b=_0x2dacfb['value'];_0x8d6f89['model']['change'](()=>{_0x886538['markMultiRangeBlockFormat']([_0x297d98,_0x273e2b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4566f4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x13a5e7=_0x8d6f89['commands']['get'](_0x4566f4);_0x886538['enableCommand'](_0x4566f4,()=>{const _0x6c04cd=_0x483ec0['getSelectionAffectedTableCells'](_0x8d6f89['model']['document']['selection'])[0x0],_0x4ef055=_0x6c04cd['findAncestor']('table'),{column:_0x486618,row:_0x406e75}=_0x483ec0['getCellLocation'](_0x6c04cd);let _0x273223=[];if('horizontally'==_0x13a5e7['direction']){const _0xd02168=_0x483ec0['createTableWalker'](_0x4ef055,{'startRow':_0x406e75,'endRow':_0x406e75,'includeAllSlots':!0x0});_0x273223=Array['from'](_0xd02168)['map'](_0xb041f=>_0xb041f['cell']);}else{const _0x2088e9=_0x483ec0['createTableWalker'](_0x4ef055,{'column':_0x486618,'includeAllSlots':!0x0});_0x273223=Array['from'](_0x2088e9)['map'](_0x1a3711=>_0x1a3711['cell']);}_0x8d6f89['model']['change'](_0x1829a0=>{_0x886538['markBlockFormat'](_0x1829a0['createRangeOn'](_0x6c04cd),{'commandName':_0x4566f4,'commandParams':[]},_0x273223,_0x4566f4);});});}_0x886538['descriptionFactory']['registerDescriptionCallback'](_0x478ae1=>{if('formatBlock'!=_0x478ae1['type']&&'formatInline'!=_0x478ae1['type'])return;const {data:_0x533690}=_0x478ae1;return _0x533690&&'mergeTableCells'==_0x533690['commandName']?{'type':'format','content':o(_0x1ea206,'*Merge\x20cells*')}:void 0x0;}),_0x886538['descriptionFactory']['registerDescriptionCallback'](_0x4adbd9=>{if('formatBlock'!=_0x4adbd9['type']&&'formatInline'!=_0x4adbd9['type'])return;const {data:_0x135493}=_0x4adbd9;return _0x135493?'splitTableCellVertically'==_0x135493['commandName']?{'type':'format','content':o(_0x1ea206,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x135493['commandName']?{'type':'format','content':o(_0x1ea206,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1915f7=_0x2c96f1['_acceptFormatSuggestionCallbackFactory']();for(const _0x2e691b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x886538['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e691b,'accept',_0x1915f7);for(const _0x1035e2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x886538['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1035e2,'accept',_0x1915f7);_0x886538['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1bd764=>{_0x8d6f89['model']['change'](_0x4893cb=>{const _0x3b9869=Array['from'](_0x3661cc['getRanges']())['map'](_0x2ba622=>_0x12550f['fromRange'](_0x2ba622));_0x4893cb['setSelection'](_0x1bd764),_0x8d6f89['commands']['get']('mergeTableCells')['refresh'](),_0x8d6f89['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x14993c=_0x3b9869['filter'](_0x4a3c5e=>'$graveyard'!=_0x4a3c5e['root']['rootName']);_0x14993c['length']>0x0&&_0x4893cb['setSelection'](_0x14993c);for(const _0x3296cf of _0x3b9869)_0x3296cf['detach']();});});for(const _0x43c69c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5682f8=_0x8d6f89['commands']['get'](_0x43c69c);_0x5682f8['on']('set:isEnabled',(_0x56d472,_0x248b49,_0x35897e)=>{if(_0x35897e){const _0x282be7=_0x8d6f89['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x264734=>_0x264734['is']('element','tableCell'));this['_areMergableCells'](_0x5682f8['value'],_0x282be7)||(_0x56d472['return']=!0x1,_0x56d472['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x429477=this['editor']['commands']['get']('mergeTableCells'),_0x2cda09=this['editor']['plugins']['get']('TableUtils');if(!_0x429477['isEnabled'])return!0x1;const _0x5f440c=_0x2cda09['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4928dc of _0x5f440c)for(const _0x598509 of _0x5f440c)if(_0x4928dc!=_0x598509&&!this['_areMergableCells'](_0x4928dc,_0x598509))return!0x1;return!0x0;}['_areMergableCells'](_0x1e9671,_0x366d47){const _0x349b46=this['editor']['plugins']['get']('TrackChangesEditing'),_0x565a02=this['editor']['model']['createRangeOn'](_0x1e9671),_0x474b80=this['editor']['model']['createRangeOn'](_0x366d47),_0x208ec2=new Set(),_0x1a7cde=new Set();for(const _0x3cdde5 of _0x349b46['getSuggestions']())if(('insertion'==_0x3cdde5['type']||'deletion'==_0x3cdde5['type']||'mergeTableCells'==_0x3cdde5['subType'])&&_0x3cdde5['isInContent']){for(const _0x299050 of _0x3cdde5['getRanges']())_0x299050['containsRange'](_0x565a02,!0x0)&&_0x208ec2['add'](_0x3cdde5['type']+':'+_0x3cdde5['author']['id']),_0x299050['containsRange'](_0x474b80,!0x0)&&_0x1a7cde['add'](_0x3cdde5['type']+':'+_0x3cdde5['author']['id']);}if(_0x208ec2['size']!=_0x1a7cde['size'])return!0x1;for(const _0x215ab4 of _0x208ec2)if(!_0x1a7cde['has'](_0x215ab4))return!0x1;return!0x0;}}class Ct extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0x4656a4=this['editor'];if(!_0x4656a4['plugins']['has']('TableEditing'))return;const _0xa082ae=_0x4656a4['locale'],_0x1a364c=_0x4656a4['plugins']['get']('TrackChangesEditing');_0x1a364c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1a364c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1a364c['registerBlockAttribute']('headingRows'),_0x1a364c['registerBlockAttribute']('headingColumns'),_0x1a364c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xa082ae,'FORMAT_HEADER_ROW')),_0x1a364c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xa082ae,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f22d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ebd8=this['editor']['plugins']['get']('TableUtils'),_0x1242d9=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x26ee64({showActiveMarker:_0x470033=!0x0,setDataAttribute:_0x372568=!0x0}={}){return(_0x2176fe,_0xdee600,_0x33ec44)=>{const {type:_0xb4a447,id:_0xb8309b}=_0x2f22d5['_splitMarkerName'](_0xdee600['markerName']),_0x4c9b90=_0x2f22d5['getSuggestion'](_0xb8309b),_0x48a9ef=_0x4c9b90['data'];if('formatBlock'!=_0x4c9b90['type']||!_0x48a9ef||'setTableColumnHeader'!=_0x48a9ef['commandName'])return;if(_0xdee600['item'])return void _0x2176fe['stop']();if(!_0x33ec44['consumable']['consume'](_0xdee600['markerRange'],_0x2176fe['name']))return;const _0x283940=_0xdee600['markerRange']['start']['nodeAfter'],_0x3fc9bd=_0xdee600['markerRange']['end']['nodeBefore'],_0x4d0c5=_0x283940['parent']['parent'],{column:_0x153697}=_0x20ebd8['getCellLocation'](_0x283940),{column:_0x545d25}=_0x20ebd8['getCellLocation'](_0x3fc9bd);for(let _0x2cf3ec=_0x153697;_0x2cf3ec<=_0x545d25;_0x2cf3ec++){const _0x1fa9d0=_0x20ebd8['createTableWalker'](_0x4d0c5,{'column':_0x2cf3ec,'includeAllSlots':!0x1});for(const _0x37e54f of _0x1fa9d0){const _0x113252=_0x37e54f['cell'],_0x3b08d6=_0x33ec44['mapper']['toViewElement'](_0x113252);_0x33ec44['writer']['addClass']('ck-suggestion-marker-'+_0xb4a447,_0x3b08d6),_0x372568&&_0x33ec44['writer']['setAttribute']('data-suggestion',_0xb8309b,_0x3b08d6),_0x33ec44['mapper']['bindElementToMarker'](_0x3b08d6,_0xdee600['markerName']),_0x470033&&(_0x2f22d5['activeMarkers']['includes'](_0xdee600['markerName'])?_0x33ec44['writer']['addClass']('ck-suggestion-marker--active',_0x3b08d6):_0x33ec44['writer']['removeClass']('ck-suggestion-marker--active',_0x3b08d6));}}};}_0x2f22d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1242d9),_0x2f22d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1242d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x26ee64(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x302781,_0x576170,_0x1da182)=>{_0x1da182['options']['showSuggestionHighlights']&&_0x26ee64({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x302781,_0x576170,_0x1da182);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3d849b,_0x2b0263,_0x3527e8)=>{const {type:_0x5b9adf,id:_0x11fb18}=_0x2f22d5['_splitMarkerName'](_0x2b0263['markerName']),_0x1c752b=_0x2f22d5['getSuggestion'](_0x11fb18),_0x46055d=_0x1c752b['data'];if('formatBlock'!=_0x1c752b['type']||!_0x46055d||'setTableColumnHeader'!=_0x46055d['commandName'])return;const _0x1f3ecb=_0x3527e8['mapper']['markerNameToElements'](_0x2b0263['markerName']);if(_0x1f3ecb){for(const _0xdb5816 of _0x1f3ecb)_0x3527e8['writer']['removeClass']('ck-suggestion-marker-'+_0x5b9adf,_0xdb5816),_0x3527e8['writer']['removeClass']('ck-suggestion-marker--active',_0xdb5816),_0x3527e8['writer']['removeAttribute']('data-suggestion',_0xdb5816),_0x3527e8['mapper']['unbindElementFromMarkerName'](_0xdb5816,_0x2b0263['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d99ca=this['editor'],_0x266930=_0x4d99ca['locale'];function _0x40ef99(_0x35bee5){return{'type':'format','content':o(_0x266930,'*Format:*\x20%0',_0x35bee5)};}_0x4d99ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313d22=>{if('formatBlock'!=_0x313d22['type'])return;const {data:_0x53f7d3}=_0x313d22;if(_0x53f7d3){if('setTableRowHeader'==_0x53f7d3['commandName']){const _0x3dfa43=_0x53f7d3['commandParams'][0x0]['forceValue'];return _0x40ef99(o(_0x266930,_0x3dfa43?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53f7d3['commandName']){const _0x353f89=_0x53f7d3['commandParams'][0x0]['forceValue'];return _0x40ef99(o(_0x266930,_0x353f89?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xfa4551=>[_0xfa4551,null]));class _t extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0xbab90d=this['editor'];if(!_0xbab90d['plugins']['has']('TableClipboard'))return;const _0x57a072=_0xbab90d['plugins']['get']('TrackChangesEditing'),_0x5ee8d1=_0xbab90d['plugins']['get']('TableUtils'),_0x595a8c=_0xbab90d['plugins']['get'](It),_0x439335=_0xbab90d['plugins']['get']('TableClipboard');_0x595a8c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xbab90d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xbab90d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x364994=null;_0xbab90d['model']['on']('insertContent',(_0x2fddbe,_0x12b4c0)=>{const [_0x4118bd,_0x365f18]=_0x12b4c0,_0x52dc2c=_0x12b4c0[_0x12b4c0['length']-0x1];_0x52dc2c&&_0x52dc2c['forceDefaultExecution']||_0x57a072['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x534ea1,_0x884ec0,_0x136b2a,_0x17930b,_0x23d78c){if(_0x884ec0&&!_0x884ec0['is']('documentSelection'))return!0x1;const _0x2e04ac=_0x23d78c['getTableIfOnlyTableInContent'](_0x534ea1,_0x136b2a);if(!_0x2e04ac||!Re(_0x2e04ac,void 0x0,_0x17930b))return!0x1;const _0x3d5260=_0x17930b['getSelectionAffectedTableCells'](_0x136b2a['document']['selection']);if(!_0x3d5260['length'])return!0x1;const _0x54cc6a=_0x3d5260[0x0]['findAncestor']('table'),_0x2314a5=_0x17930b['getRowIndexes'](_0x3d5260),_0xea9fcb=_0x17930b['getColumnIndexes'](_0x3d5260),_0xe8025f={'startRow':_0x2314a5['first'],'endRow':_0x2314a5['last'],'startColumn':_0xea9fcb['first'],'endColumn':_0xea9fcb['last']};return 0x1==_0x3d5260['length']&&(_0xe8025f['endRow']+=_0x17930b['getRows'](_0x2e04ac)-0x1,_0xe8025f['endColumn']+=_0x17930b['getColumns'](_0x2e04ac)-0x1),Re(_0x54cc6a,_0xe8025f,_0x17930b);}(_0x4118bd,_0x365f18,_0xbab90d['model'],_0x5ee8d1,_0x439335)&&(_0x2fddbe['stop'](),_0x364994={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xbab90d['model']['change'](()=>{_0xbab90d['model']['insertContent'](_0x12b4c0[0x0],_0x12b4c0[0x1],_0x12b4c0[0x2],{'forceDefaultExecution':!0x0});const _0xb967ce=_0x13e654(),{rowInsertionRanges:_0x4d5a73,columnInsertionRanges:_0x44a64e,insertionRanges:_0x1dbead,deletionRanges:_0x33b6dc,cells:_0x32e077}=_0x364994;_0x4d5a73['length']&&_0x57a072['markMultiRangeInsertion'](_0x4d5a73,'tablePasteRow',{'tablePasteChainId':_0xb967ce}),_0x44a64e['length']&&_0x57a072['markMultiRangeInsertion'](_0x44a64e,'tablePasteColumn',{'tablePasteChainId':_0xb967ce}),_0x1dbead['length']&&(_0x57a072['markMultiRangeInsertion'](_0x1dbead,'tablePaste',{'tablePasteChainId':_0xb967ce,'skipNestingCheck':!0x0}),_0x1dbead['forEach'](_0xf4a260=>_0xf4a260['detach']?.())),_0x33b6dc['length']&&(_0x57a072['markMultiRangeDeletion'](_0x33b6dc,'tablePaste',{'tablePasteChainId':_0xb967ce,'skipNestingCheck':!0x0}),_0x33b6dc['forEach'](_0x26ae65=>_0x26ae65['detach']?.()));const _0x5d724c=_0x57a072['markMultiRangeBlockFormat'](_0x32e077['map'](({element:_0x2d0cd3})=>_0x2d0cd3),{'formatGroupId':_0x13e654()},[],'tablePasteCell',{'tablePasteChainId':_0xb967ce});if(_0x5d724c){const _0x39d56a=_0x5d724c['getMarkers'](),_0x47c585=[];for(const {element:_0x5c125b,attributes:_0x3a94e3}of _0x32e077){if(!_0x3a94e3)continue;const _0x105b72=_0xbab90d['model']['createRangeOn'](_0x5c125b),_0x469e75=_0x39d56a['find'](_0x1024bd=>_0x1024bd['getRange']()['isEqual'](_0x105b72));_0x469e75&&_0x47c585['push']([_0x469e75['name'],_0x3a94e3]);}_0x47c585['length']&&_0x5d724c['setAttribute']('markerAttributes',Object['fromEntries'](_0x47c585));}_0x364994=null;}));},{'priority':_0x5b85e5['high']+0xa}),_0xbab90d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x21b881,_0x4e243b)=>{const [_0x40577a,_0x3d90d7,,_0x5d3758]=_0x4e243b;if(!_0x364994)return;_0x21b881['stop']();const _0x58143d=_0x40577a['cell'],_0x5312de=_0x3d90d7,_0x49f592=ke(_0x58143d),_0x197f71=ke(_0x5312de);_0x21b881['return']=_0x58143d;let _0x1924f6=null,_0x2ec6f4=null;if(_0x197f71||_0x49f592){if(_0x49f592&&!_0x197f71){_0x5d3758['remove'](_0x58143d['getChild'](0x0));for(const _0x57ccca of Array['from'](_0x5312de['getChildren']()))_0x5d3758['insert'](_0x57ccca,_0x58143d,'end');const _0x1a27a3=_0x364994['rowInsertionIndexes']['includes'](_0x40577a['row']),_0x325a64=_0x364994['columnInsertionIndexes']['includes'](_0x40577a['column']);_0x1a27a3||_0x325a64||(_0x1924f6=_0x12550f['fromRange'](_0x5d3758['createRangeIn'](_0x58143d)));}else _0x197f71&&!_0x49f592&&(_0x2ec6f4=_0x5d3758['createRangeIn'](_0x58143d));}else{const _0x459ad3=_0x5d3758['createElement']('tableCellSuggestion'),_0x1ec273=_0x5d3758['createElement']('tableCellSuggestion');_0x5d3758['wrap'](_0x5d3758['createRangeIn'](_0x58143d),_0x1ec273),_0x5d3758['insert'](_0x459ad3,_0x58143d,0x0);for(const _0x360da2 of Array['from'](_0x5312de['getChildren']()))_0x5d3758['insert'](_0x360da2,_0x459ad3,'end');_0x1924f6=_0x12550f['fromRange'](_0x5d3758['createRangeOn'](_0x459ad3)),_0x2ec6f4=_0x12550f['fromRange'](_0x5d3758['createRangeOn'](_0x1ec273));}const _0x54366a=Array['from'](_0x5312de['getAttributes']())['filter'](([_0x6bdbeb])=>Pe['includes'](_0x6bdbeb));_0x364994['cells']['push']({'element':_0x58143d,'attributes':_0x54366a['length']?Object['fromEntries'](_0x54366a):null}),_0x1924f6&&_0x364994['insertionRanges']['push'](_0x1924f6),_0x2ec6f4&&_0x364994['deletionRanges']['push'](_0x2ec6f4);},{'priority':'high'}),_0x5ee8d1['on']('insertColumns',(_0x27f520,_0x549314)=>{const [_0x47e37b,_0x2b428c={}]=_0x549314;if(!_0x364994)return;const _0x5f2d9b=_0x2b428c['at']||0x0,_0x1c8f2e=_0x2b428c['columns']||0x1;_0x364994['columnInsertionIndexes']=new Array(_0x1c8f2e)['fill'](_0x5f2d9b)['map']((_0x486e43,_0x4069f6)=>_0x486e43+_0x4069f6);for(const {cell:_0x5ee1cb}of _0x5ee8d1['createTableWalker'](_0x47e37b,{'startColumn':_0x5f2d9b,'endColumn':_0x5f2d9b+_0x1c8f2e-0x1}))_0x364994['columnInsertionRanges']['push'](_0xbab90d['model']['createRangeOn'](_0x5ee1cb));},{'priority':'low'}),_0x5ee8d1['on']('insertRows',(_0x4f287c,_0x4abb97)=>{const [_0x482e73,_0x1b0ea4={}]=_0x4abb97;if(!_0x364994)return;const _0x35c4e5=_0x1b0ea4['at']||0x0,_0x51f0f8=_0x1b0ea4['rows']||0x1;_0x364994['rowInsertionIndexes']=new Array(_0x51f0f8)['fill'](_0x35c4e5)['map']((_0x172d1f,_0x103775)=>_0x172d1f+_0x103775);for(const {cell:_0x40ef47}of _0x5ee8d1['createTableWalker'](_0x482e73,{'startRow':_0x35c4e5,'endRow':_0x35c4e5+_0x51f0f8-0x1}))_0x364994['rowInsertionRanges']['push'](_0xbab90d['model']['createRangeOn'](_0x40ef47));},{'priority':'low'}),_0x57a072['descriptionFactory']['registerDescriptionCallback'](_0x5a5273=>{if(_0x5a5273['subType']&&_0x5a5273['subType']['startsWith']('tablePaste'))return _0x5a5273['previous']?{}:{'type':'insertion','content':o(_0xbab90d['locale'],'*Replace\x20table\x20cells*')};});const _0x2a6a9f=()=>!0x1;for(const _0x566b6c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57a072['_suggestionFactory']['registerCustomCallback']('insertion',_0x566b6c,'join',_0x2a6a9f),_0x57a072['_suggestionFactory']['registerCustomCallback']('deletion',_0x566b6c,'join',_0x2a6a9f),_0x57a072['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x566b6c,'join',_0x2a6a9f);_0x57a072['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a6a9f),_0x57a072['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x583241,_0x447fe9,_0x52f375)=>{const _0x38c460=_0x583241['map'](_0xf936e2=>_0xf936e2['getContainedElement']())['filter'](_0x36797f=>_0x36797f),_0x69c8c6=new Map(_0x38c460['map'](_0xf7f540=>[_0xf7f540,null]));if(_0x364994){for(const {element:_0xa19189,attributes:_0x32b68c}of _0x364994['cells'])_0x32b68c&&_0x69c8c6['set'](_0xa19189,_0x32b68c);}else{if(_0x52f375&&_0x52f375['markerAttributes'])for(const [_0x19797e,_0x1e645b]of Object['entries'](_0x52f375['markerAttributes'])){const _0x5b460d=_0xbab90d['model']['markers']['get'](_0x19797e),_0xec0e70=_0x5b460d?_0x5b460d['getRange']()['getContainedElement']():null;_0xec0e70&&_0x69c8c6['set'](_0xec0e70,_0x1e645b);}}_0xbab90d['model']['change'](_0x141cc2=>{for(const [_0x197891,_0x174491]of _0x69c8c6)_0x141cc2['setAttributes']({...we,..._0x174491},_0x197891);});});const _0x53a8b2=(_0x357d73,_0x541f2a)=>{_0x57a072['_suggestionFactory']['registerCustomCallback'](_0x357d73,'tablePaste',_0x541f2a,(_0x1d3eab,_0x2bd195,_0x5759f6)=>{_0xbab90d['model']['change'](_0x104475=>{const _0x2ce6ff=[];for(const _0x504996 of _0x1d3eab){const _0x362a82=_0x504996['start']['nodeAfter'];_0x362a82['is']('element','tableCellSuggestion')&&_0x2ce6ff['push'](_0x362a82);}_0x57a072['_suggestionFactory']['getSuggestionCallback'](_0x357d73,null,_0x541f2a)(_0x1d3eab,_0x2bd195,_0x5759f6);for(const _0x3e599a of _0x2ce6ff)'$graveyard'!=_0x3e599a['root']['rootName']&&_0x104475['unwrap'](_0x3e599a);});});};_0x53a8b2('insertion','accept'),_0x53a8b2('insertion','discard'),_0x53a8b2('deletion','accept'),_0x53a8b2('deletion','discard'),_0x57a072['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x181c5b=>{const _0x5d206b=_0x181c5b['map'](_0x4d4318=>_0x4d4318['getContainedElement']()),_0x5e1ad7=_0x5d206b[0x0]['findAncestor']('table'),{minRow:_0x41e304,maxRow:_0x3ba295}=_0x595a8c['_getCoordsForCells'](_0x5d206b);_0x5ee8d1['removeRows'](_0x5e1ad7,{'at':_0x41e304,'rows':_0x3ba295-_0x41e304+0x1});}),_0x57a072['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x563889=>{const _0x19a93a=_0x563889['map'](_0x2704e7=>_0x2704e7['getContainedElement']()),_0x1a6aa7=_0x19a93a[0x0]['findAncestor']('table'),{minColumn:_0x4d5005,maxColumn:_0x3556b4}=_0x595a8c['_getCoordsForCells'](_0x19a93a);_0x5ee8d1['removeColumns'](_0x1a6aa7,{'at':_0x4d5005,'columns':_0x3556b4-_0x4d5005+0x1});});const _0x315c55=(_0x44b636,_0x102afe)=>{if(!_0x102afe['subType']||!_0x102afe['subType']['startsWith']('tablePaste'))return;const _0x57bfd2=_0x102afe['attributes']['tablePasteChainId'],_0xdf098c=_0x57a072['getSuggestions']()['filter'](_0x4d9fc3=>_0x4d9fc3['isInContent']&&_0x4d9fc3['attributes']&&_0x4d9fc3['attributes']['tablePasteChainId']==_0x57bfd2);_0xdf098c['length']&&_0x102afe['getAllAdjacentSuggestions']()['length']!=_0xdf098c['length']&&_0xdf098c['reduce']((_0x437b40,_0x57f640)=>(_0x437b40['next']=_0x57f640,_0x57f640['previous']=_0x437b40,_0x57f640));};function _0x37b858(_0x4e79eb,_0x440916=!0x0){const {id:_0x276efe,authorId:_0x56de38}=_0x57a072['_splitMarkerName'](_0x4e79eb['markerName']),_0x1831c1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x55259e=_0x57a072['activeMarkers']['includes'](_0x4e79eb['markerName']);return _0x55259e&&_0x1831c1['push']('ck-suggestion-marker--active'),{'classes':_0x1831c1,'attributes':{'data-suggestion':_0x276efe,'data-author-id':_0x56de38},'priority':_0x55259e&&_0x440916?0xbc2:0xbb8};}_0x57a072['on']('suggestionLoaded',_0x315c55,{'priority':'high'}),_0x57a072['on']('suggestionUnloaded',_0x315c55,{'priority':'high'}),_0xbab90d['model']['document']['registerPostFixer'](()=>{let _0x42e8a4=!0x1;const _0x55b5f8=Array['from'](_0xbab90d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x481d1c,data:_0x284c28}of _0x55b5f8){const {group:_0x32b419,type:_0x52a68a,id:_0x46b4f1}=_0x57a072['_splitMarkerName'](_0x481d1c);if('suggestion'!=_0x32b419||'deletion'!=_0x52a68a||_0x284c28['oldRange'])continue;if(!_0x57a072['hasSuggestion'](_0x46b4f1))continue;const _0x32cd17=_0x57a072['getSuggestion'](_0x46b4f1)['getRanges'](),_0x3a36cc=_0xbab90d['plugins']['get']('Users')['me'];for(const _0x58a4f3 of _0x57a072['getSuggestions']()){if(!_0x58a4f3['isInContent']||_0x58a4f3['author']!=_0x3a36cc)continue;if('formatBlock'!=_0x58a4f3['type']||'tablePasteCell'!=_0x58a4f3['subType'])continue;if(_0x58a4f3['getRanges']()['every'](_0x3a53cb=>_0x32cd17['some'](_0xdc8e02=>_0xdc8e02['containsRange'](_0x3a53cb,!0x0)))){for(const _0x4e354e of _0x58a4f3['getAllAdjacentSuggestions']())_0x4e354e['isInContent']&&(_0x4e354e['discard'](),_0x42e8a4=!0x0);}}}return _0x42e8a4;}),_0xbab90d['model']['document']['registerPostFixer'](_0x17b8d8=>{const _0x4ad67d=_0xbab90d['commands']['get']('redo');if(!_0x4ad67d||!_0x4ad67d['_createdBatches']['has'](_0x17b8d8['batch']))return!0x1;let _0x1a0399=!0x1;const _0x4bb385=_0xbab90d['plugins']['get']('Users')['me'],_0x4b8e2e=_0xbab90d['model']['document']['differ']['getChanges'](),_0x465dc8=Array['from'](_0xbab90d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x50a7f3,data:_0x5af1fc})=>{const {group:_0x23aff8,subType:_0xe9a08e,authorId:_0x235d6d}=_0x57a072['_splitMarkerName'](_0x50a7f3);return'suggestion'==_0x23aff8&&'tablePaste'==_0xe9a08e&&_0x235d6d==_0x4bb385['id']&&!_0x5af1fc['oldRange'];});for(const _0x248647 of _0x4b8e2e){if('insert'!=_0x248647['type']||'tableCellSuggestion'!=_0x248647['name']||0x1!=_0x248647['length'])continue;const _0x2c0ca0=_0x17b8d8['createRange'](_0x248647['position'],_0x248647['position']['getShiftedBy'](0x1));if(!_0x465dc8['find'](({data:_0x35e844})=>_0x35e844['newRange']['isEqual'](_0x2c0ca0))){for(const {name:_0x33f899,data:_0x5d6853}of _0x465dc8)if(_0x2c0ca0['containsRange'](_0x5d6853['newRange'])){_0x17b8d8['updateMarker'](_0x33f899,{'range':_0x2c0ca0}),_0x1a0399=!0x0;break;}}}return _0x1a0399;}),_0xbab90d['model']['document']['registerPostFixer'](_0x20d0f1=>{let _0x3cf6c6=!0x1;const _0x2c3eaf=_0xbab90d['plugins']['get']('Users')['me'],_0x238707=_0x57a072['getSuggestions']()['filter'](_0x4fe077=>_0x4fe077['isInContent']&&_0x4fe077['author']==_0x2c3eaf),_0x26a26d=new Set(),_0x388fa5=new Set();for(const _0x48cdad of _0x238707)if('tablePaste'==_0x48cdad['subType'])for(const _0x1e6c2c of _0x48cdad['getMarkers']()){const _0x2498db=_0x1e6c2c['getRange']()['getContainedElement']();if(_0x2498db){if(_0x2498db['is']('element','tableCellSuggestion')&&ke(_0x2498db)){_0x48cdad['removeMarker'](_0x1e6c2c['name']),_0x26a26d['add'](_0x2498db),_0x3cf6c6=!0x0;const _0x5b6d83=_0x2498db['nextSibling'],_0xd0c8dc=_0x2498db['previousSibling'],_0x3eae90=_0x5b6d83&&_0x5b6d83['is']('element','tableCellSuggestion'),_0x3d7cf=_0xd0c8dc&&_0xd0c8dc['is']('element','tableCellSuggestion');_0x3eae90&&!_0x26a26d['has'](_0x5b6d83)&&_0x388fa5['add'](_0x5b6d83),_0x3d7cf&&!_0x26a26d['has'](_0xd0c8dc)&&_0x388fa5['add'](_0xd0c8dc);}else _0x2498db['is']('element','paragraph')&&_0x2498db['isEmpty']&&(_0x48cdad['removeMarker'](_0x1e6c2c['name']),_0x3cf6c6=!0x0);}}else{if('tablePasteCell'==_0x48cdad['subType']){if(!_0x48cdad['attributes']||!_0x48cdad['attributes']['tablePasteChainId'])continue;const _0x42b5e4=_0x48cdad['attributes']['markerAttributes'];if(_0x42b5e4&&Object['keys'](_0x42b5e4)['length'])continue;const _0x5ab3b0=_0x48cdad['attributes']['tablePasteChainId'];let _0xe83fbe=!0x0,_0x25b00=!0x0;for(const _0x224547 of _0x238707)if(_0x224547['subType']&&_0x224547['subType']['startsWith']('tablePaste')){if(!_0x224547['attributes']['tablePasteChainId']){_0x25b00=!0x1;break;}if(_0x224547['id']!=_0x48cdad['id']&&_0x224547['attributes']['tablePasteChainId']==_0x5ab3b0){_0xe83fbe=!0x1;break;}}_0x25b00&&_0xe83fbe&&(_0x48cdad['removeMarkers'](),_0x3cf6c6=!0x0);}}for(const _0x59084f of _0x26a26d)_0x20d0f1['remove'](_0x59084f);for(const _0x1e499f of _0x388fa5)_0x20d0f1['unwrap'](_0x1e499f);return _0x3cf6c6;}),_0xbab90d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x495288,_0xa243f2)=>_0x37b858(_0x495288),'converterPriority':'high'}),_0xbab90d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a1ae9,_0x5bb176)=>_0x5bb176['options']['showSuggestionHighlights']?_0x37b858(_0x3a1ae9,!0x1):null,'converterPriority':'high'});const _0x5a1fa3=_0xbab90d['editing']['view'];this['listenTo'](_0x5a1fa3['document'],'clipboardOutput',(_0x29452e,_0x2b3771)=>{const _0x57a63b=[];for(const _0x525a65 of _0x5a1fa3['createRangeIn'](_0x2b3771['content'])['getItems']())_0x525a65['is']('element','suggestion-td')&&_0x57a63b['push'](_0x525a65);_0x5a1fa3['change'](_0x15f3b0=>{for(const _0x199e19 of _0x57a63b)_0x15f3b0['move'](_0x15f3b0['createRangeIn'](_0x199e19),_0x15f3b0['createPositionBefore'](_0x199e19)),_0x15f3b0['remove'](_0x199e19);});});}}function ke(_0x35c66b){if(_0x35c66b['isEmpty'])return!0x0;const _0xa01934=_0x35c66b['getChild'](0x0);return _0xa01934['is']('element','paragraph')&&_0xa01934['isEmpty'];}function Re(_0x5906b8,_0x51a415={},_0xf53339){for(const {isAnchor:_0x1e7a5e,cellHeight:_0x19d04e,cellWidth:_0x22ffb0}of _0xf53339['createTableWalker'](_0x5906b8,{'includeAllSlots':!0x0,..._0x51a415}))if(!_0x1e7a5e||0x1!=_0x19d04e||0x1!=_0x22ffb0)return!0x1;return!0x0;}class Nt extends _0x4fe0d7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x57cd86=this['editor']['plugins']['get']('TrackChangesEditing');_0x57cd86['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x57cd86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x57cd86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57cd86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x57cd86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x57cd86['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x21f8f1,_0x526f8a){const _0x110e3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b0de0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4c9f5a=_0x526f8a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1c3457=_0x9b0de0['getColumnGroupElement'](_0x4c9f5a);let _0x4317bd=_0x1c3457?_0x9b0de0['getTableColumnsWidths'](_0x1c3457):null,_0x135396=_0x4c9f5a['getAttribute']('tableWidth')||null;const _0x2ff6fc=_0x526f8a['tableWidth']||_0x135396,_0x132f8c=_0x526f8a['columnWidths']||_0x4317bd,_0x4eea27=this['editor']['plugins']['get']('Users')['me'];for(const _0x1a3dc8 of _0x110e3b['getSuggestions']()){const _0x119a48=_0x1a3dc8['getContainedElement']();if('resizeTable'===_0x1a3dc8['subType']&&_0x119a48===_0x4c9f5a){_0x1a3dc8['author']!==_0x4eea27&&_0x1a3dc8['discard']();const _0x5a0d37=_0x1a3dc8['data']['commandParams'];_0x135396=_0x5a0d37[0x0]['tableWidth'],_0x4317bd=_0x5a0d37[0x0]['columnWidths'];break;}}_0x21f8f1({'table':_0x4c9f5a,'tableWidth':_0x2ff6fc,'columnWidths':_0x132f8c}),_0x110e3b['markBlockFormat'](_0x4c9f5a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x135396,'columnWidths':_0x4317bd}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4ecf56){if('formatBlock'!=_0x4ecf56['type']&&'formatInline'!=_0x4ecf56['type'])return;const {data:_0x319090}=_0x4ecf56;if(_0x319090&&'resizeTable'===_0x319090['formatGroupId']){const _0x450145='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x450145)};}}}class Dt extends _0x4fe0d7{['afterInit'](){const _0x2687a7=this['editor'];_0x2687a7['plugins']['has']('Template')&&_0x2687a7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4fe0d7{['afterInit'](){const _0x5843b4=this['editor'];if(!_0x5843b4['commands']['get']('insertTableOfContents'))return;_0x5843b4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3067a9=_0x5843b4['plugins']['get']('TrackChangesEditing'),_0x4d7650=_0x5843b4['locale'];_0x3067a9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4ee0bd=>o(_0x4d7650,'ELEMENT_TABLE_OF_CONTENTS',_0x4ee0bd));}}class $t extends _0x4fe0d7{['afterInit'](){const _0xe8835d=this['editor'];if(!_0xe8835d['plugins']['has']('Title'))return;const _0x32dff8=_0xe8835d['plugins']['get']('TrackChangesEditing');_0x32dff8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe8835d['locale'],'ELEMENT_TITLE')),_0xe8835d['model']['document']['registerPostFixer'](_0x2667d8=>{let _0x189b65=!0x1;const _0x2addd7=Array['from'](_0xe8835d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e67ec,data:_0x15743c}of _0x2addd7){const {group:_0x2521bf}=_0x32dff8['_splitMarkerName'](_0x5e67ec);if('suggestion'!==_0x2521bf||!_0x15743c['newRange'])continue;const _0x13be3d=_0x15743c['newRange'],_0x16d7aa=_0x13be3d['end']['nodeBefore'];if(!_0x16d7aa||!_0x16d7aa['is']('element','title-content'))continue;if(!_0x13be3d['start']['isTouching'](_0x13be3d['end']))continue;const _0x312f92=_0xe8835d['model']['schema']['getNearestSelectionRange'](_0x13be3d['end'],'forward');if(_0x312f92&&_0x312f92['isCollapsed']){const _0x39a06d=_0x2667d8['createRange'](_0x13be3d['start'],_0x312f92['start']);_0x39a06d['isEqual'](_0x13be3d)||(_0x2667d8['updateMarker'](_0x5e67ec,{'range':_0x39a06d}),_0x189b65=!0x0);}_0x189b65||(_0x2667d8['removeMarker'](_0x5e67ec),_0x189b65=!0x0);}return _0x189b65;});}}class Bt extends _0x4fe0d7{['afterInit'](){const _0x39798f=this['editor'],_0x293295=_0x39798f['plugins']['get']('TrackChangesEditing');_0x39798f['plugins']['has']('UndoEditing')&&(_0x293295['enableCommand']('undo'),_0x293295['enableCommand']('redo'));}}class xt extends _0x4fe0d7{static get['requires'](){return[It];}['afterInit'](){const _0x271f41=this['editor'];if(!_0x271f41['plugins']['has']('TableCaptionEditing'))return;_0x271f41['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4fe0d7{['tableProperties'];['tableCellProperties'];constructor(_0x1f785a){super(_0x1f785a),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 _0x403467=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x32a411 of this['tableProperties'])_0x403467['enableCommand'](_0x32a411,(_0x343277,_0x468829)=>{const _0x5b9b18=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x32a411,[_0x5b9b18],this['tableProperties'],'tableProperties',_0x343277,_0x468829);});_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x403467['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x521162,_0x53936a)=>this['handleDiscardAction'](this['tableProperties'],_0x521162,_0x53936a)),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x194c03 of this['tableCellProperties'])_0x403467['enableCommand'](_0x194c03,(_0x13c5f2,_0x5ac2fe)=>{const _0x406b2a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x194c03,_0x406b2a,this['tableCellProperties'],'tableCellProperties',_0x13c5f2,_0x5ac2fe);});_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x403467['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x40061d,_0x278e59)=>this['handleDiscardAction'](this['tableCellProperties'],_0x40061d,_0x278e59)),_0x403467['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x403467['descriptionFactory']['registerDescriptionCallback'](_0x2c9d5a=>this['handleSuggestionDescription'](_0x2c9d5a));}['_handlePropertyChange'](_0x3bb707,_0x55e1bf,_0x1096dd,_0x24e372,_0x33f7a3,_0x540838){const _0x52fc56=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x540838['batch'],()=>{for(const _0xd27610 of _0x55e1bf){if(this['_getSuggestion'](_0xd27610,_0x24e372))_0x33f7a3(_0x540838);else{const _0x1f6fc8={};for(const _0x1bd408 of _0x1096dd){const _0x4a728f=_0xd27610['getAttribute'](_0x1bd408);void 0x0!==_0x4a728f&&(_0x1f6fc8[_0x1bd408]=_0x4a728f);}_0x33f7a3(_0x540838),_0x52fc56['markBlockFormat'](_0xd27610,{'commandParams':[_0x1f6fc8]},[],_0x24e372);}}});}['handleDiscardAction'](_0x3896d1,_0x4c18a5,_0x46b564){const _0xf75cc0=_0x4c18a5[0x0]['start']['nodeAfter'],_0x4a3058=_0x46b564['commandParams'][0x0];this['editor']['model']['change'](_0x8b342a=>{for(const _0x2aae36 of _0x3896d1)void 0x0!==_0x4a3058[_0x2aae36]?_0x8b342a['setAttribute'](_0x2aae36,_0x4a3058[_0x2aae36],_0xf75cc0):_0x8b342a['removeAttribute'](_0x2aae36,_0xf75cc0);});}['handleSuggestionDescription'](_0x5eb808){if(_0x5eb808['data'])switch(_0x5eb808['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'](_0x97f547,_0x30b7af){const _0x2328de=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x513de4 of _0x2328de['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d76c1=_0x513de4['getContainedElement']();if(_0x513de4['subType']===_0x30b7af&&_0x1d76c1===_0x97f547)return _0x513de4;}return null;}}const m='$elementName';class p extends _0x4fe0d7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5a7861,_0x2b0ef4,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(_0x36ca39){function _0x1f4417(_0x3e755d){return _0x3e755d['map'](_0x55f02e=>String['fromCharCode'](_0x55f02e))['join']('');}super(_0x36ca39),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d0983,_0x5be616,_0x6f16f3,_0x2e637f)=>{this['_model']['change'](()=>{for(const _0x30b22a of[..._0x2e637f,..._0x6f16f3])this['_model']['markers']['has'](_0x30b22a)&&_0x36ca39['editing']['reconvertMarker'](_0x30b22a);});}),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']=_0x36ca39['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(),_0x36ca39['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x36ca39['config']['get']('trackChanges.trackFormatChanges'),_0x36ca39['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x36ca39['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x36ca39,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1f4417([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1f4417([0x34,0x30,0x34,0x38,0x31,0x38,0x31,0x38]);}['init'](){const _0x10f91b=this['editor'],_0xaed982=(_0x5b7324,_0x5087e2)=>{if('attribute'!=_0x5b7324)return'ck-suggestion-marker-'+_0x5b7324;const _0x247ee8=_0x5087e2['split']('|')[0x0];return this['_isBlockAttribute'](_0x247ee8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x10f91b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x801fae=>{const {id:_0x71b569,authorId:_0x141ede,type:_0x4e3337,subType:_0x331774}=this['_splitMarkerName'](_0x801fae['markerName']),_0xb3ac=['ck-suggestion-marker',_0xaed982(_0x4e3337,_0x331774)];let _0xdba5d6=0xbb8;return this['activeMarkers']['includes'](_0x801fae['markerName'])&&(_0xb3ac['push']('ck-suggestion-marker--active'),_0xdba5d6=0xbc2),'deletion'==_0x4e3337&&(_0xdba5d6+=0x5),{'classes':_0xb3ac,'attributes':{'data-suggestion':_0x71b569,'data-author-id':_0x141ede},'priority':_0xdba5d6};}}),_0x10f91b['conversion']['for']('dataDowncast')['add'](_0x13ef73=>{_0x13ef73['on']('addMarker:suggestion',(_0x1c35f0,_0x5ea862,_0x204457)=>{if(!_0x204457['options']['showSuggestionHighlights'])return;const _0xf121e8=_0x5ea862['item'];if(!_0xf121e8)return;const _0xf0d1c=_0x204457['mapper']['toViewElement'](_0xf121e8);_0x10f91b['model']['schema']['isObject'](_0xf121e8)&&_0xf0d1c&&!_0xf0d1c['getCustomProperty']('widget')&&_0xf0d1c['is']('containerElement')&&_0x275f5a(_0xf0d1c,_0x204457['writer']);},{'priority':'high'});}),_0x10f91b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2ceaf4,_0x2a0c24)=>{if(!_0x2a0c24['options']['showSuggestionHighlights'])return null;const {type:_0x122679,subType:_0x169f72}=this['_splitMarkerName'](_0x2ceaf4['markerName']);return{'classes':['ck-suggestion-marker',_0xaed982(_0x122679,_0x169f72)],'priority':0xbb8};}});const _0x580196=({showActiveMarkers:_0x1ec728=!0x0,isAttributeSuggestion:_0x3a5b97=!0x1}={})=>(_0x51d213,_0x3d752d,_0x2808c4)=>{if(!_0x3d752d['item'])return;const {id:_0x531275,authorId:_0x3a73d8}=this['_splitMarkerName'](_0x3d752d['markerName']);if(_0x3a5b97){const _0x36c36f=this['_suggestions']['get'](_0x531275),_0x5df50c=this['_getAttributeKey'](_0x36c36f);if(!this['_isBlockAttribute'](_0x5df50c))return;}if(_0x3d752d['item']['is']('selection'))return void _0x2808c4['consumable']['consume'](_0x3d752d['item'],_0x51d213['name']);const _0x26b9ef=_0x2808c4['mapper']['toViewElement'](_0x3d752d['item']);if(_0x3d752d['item']['is']('element')&&_0x10f91b['model']['schema']['isBlock'](_0x3d752d['item'])&&!_0x26b9ef['getCustomProperty']('addHighlight')){_0x2808c4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x26b9ef),_0x2808c4['writer']['setAttribute']('data-suggestion',_0x531275,_0x26b9ef),_0x2808c4['writer']['setAttribute']('data-author-id',_0x3a73d8,_0x26b9ef),_0x2808c4['mapper']['bindElementToMarker'](_0x26b9ef,_0x3d752d['markerName']),_0x1ec728&&(this['activeMarkers']['includes'](_0x3d752d['markerName'])?_0x2808c4['writer']['addClass']('ck-suggestion-marker--active',_0x26b9ef):_0x2808c4['writer']['removeClass']('ck-suggestion-marker--active',_0x26b9ef));for(const _0x2aa83f of _0x10f91b['model']['createRangeIn'](_0x3d752d['item'])['getItems']())_0x2808c4['consumable']['consume'](_0x2aa83f,_0x51d213['name']);_0x2808c4['consumable']['consume'](_0x3d752d['item'],_0x51d213['name']);}};_0x10f91b['conversion']['for']('dataDowncast')['add'](_0x176ce5=>{_0x176ce5['on']('addMarker:suggestion:formatBlock',(_0x38190b,_0x400cb5,_0x1d125a)=>{_0x1d125a['options']['showSuggestionHighlights']&&_0x580196({'showActiveMarkers':!0x1})(_0x38190b,_0x400cb5,_0x1d125a);},{'priority':'highest'});}),_0x10f91b['conversion']['for']('dataDowncast')['add'](_0x9a187a=>{_0x9a187a['on']('addMarker:suggestion:attribute',(_0x208fe3,_0x330e19,_0x32f141)=>{_0x32f141['options']['showSuggestionHighlights']&&_0x580196({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x208fe3,_0x330e19,_0x32f141);},{'priority':'highest'});}),_0x10f91b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x74a451,_0x4e85ea)=>_0x4e85ea['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x74a451['substr'](0xb)}}),_0x10f91b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2c2431,{writer:_0x2d47d9})=>{let _0x13c9ca='suggestion:'+_0x2c2431['getAttribute']('suggestion-type')+':'+_0x2c2431['getAttribute']('id');return _0x2c2431['getAttribute']('marker-count')&&(_0x13c9ca+=':'+_0x2c2431['getAttribute']('marker-count')),_0x2d47d9['createElement']('$marker',{'data-name':_0x13c9ca});}}),_0x10f91b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0x3ebb8f=>{_0x3ebb8f['on']('addMarker:suggestion:formatBlock',_0x580196(),{'priority':'high'});}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0xcf49ec=>{_0xcf49ec['on']('addMarker:suggestion:attribute',_0x580196({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0x594617=>{_0x594617['on']('removeMarker:suggestion:formatBlock',(_0x24a470,_0x190aa2,_0xa21ce0)=>{const _0x235b56=_0xa21ce0['mapper']['markerNameToElements'](_0x190aa2['markerName']);if(_0x235b56){for(const _0x16fa36 of _0x235b56)_0x16fa36['getCustomProperty']('addHighlight')||(_0xa21ce0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16fa36),_0xa21ce0['writer']['removeAttribute']('data-suggestion',_0x16fa36),_0xa21ce0['writer']['removeAttribute']('data-author-id',_0x16fa36),_0xa21ce0['mapper']['unbindElementFromMarkerName'](_0x16fa36,_0x190aa2['markerName']));}},{'priority':'high'});}),_0x10f91b['conversion']['for']('editingDowncast')['add'](_0x276ac3=>{_0x276ac3['on']('removeMarker:suggestion:attribute',(_0x591a64,_0x3d0feb,_0x50cd65)=>{const _0x4f4e67=_0x50cd65['mapper']['markerNameToElements'](_0x3d0feb['markerName']);if(!_0x4f4e67)return;const {id:_0x177022}=this['_splitMarkerName'](_0x3d0feb['markerName']),_0x212580=this['_suggestions']['get'](_0x177022),_0x34e4e9=this['_getAttributeKey'](_0x212580);if(this['_isBlockAttribute'](_0x34e4e9)){for(const _0x20cdfe of _0x4f4e67)_0x20cdfe['getCustomProperty']('addHighlight')||(_0x50cd65['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20cdfe),_0x50cd65['writer']['removeAttribute']('data-suggestion',_0x20cdfe),_0x50cd65['writer']['removeAttribute']('data-author-id',_0x20cdfe),_0x50cd65['mapper']['unbindElementFromMarkerName'](_0x20cdfe,_0x3d0feb['markerName']));}},{'priority':'high'});}),_0x10f91b['model']['document']['registerPostFixer'](_0x449c99=>{let _0x5e0a6e=!0x1;const _0x5d404f=Array['from'](_0x10f91b['model']['document']['differ']['getChangedMarkers']()),_0x3b29ee=new Set();for(const {name:_0x403b3a,data:_0x562536}of _0x5d404f){const {group:_0x1306b4,type:_0x4b2be5,subType:_0x3b0c69,id:_0x31360f}=this['_splitMarkerName'](_0x403b3a);if('suggestion'!==_0x1306b4)continue;const _0x350bb6=this['_suggestions']['get'](_0x31360f);if(null!=_0x562536['newRange']){'formatInline'==_0x4b2be5&&(_0x5e0a6e=_0x5e0a6e||Ut(_0x562536['newRange'],_0x403b3a,_0x449c99,_0x10f91b['model']['schema']));const _0x17a92b='attribute'==_0x4b2be5&&this['_isBlockAttribute'](_0x3b0c69['split']('|')[0x0]);if(_0x562536['newRange']['isCollapsed']||'$graveyard'==_0x562536['newRange']['root']['rootName']||'formatBlock'==_0x4b2be5&&!Ft(_0x562536['newRange'])||_0x17a92b&&!Ft(_0x562536['newRange'])||'deletion'==_0x4b2be5&&!(!Vt(_0x38ea76=_0x562536['newRange'])&&!function(_0x205060){return _0x205060['start']['parent']==_0x205060['end']['nodeBefore']&&_0x205060['start']['isAtEnd'];}(_0x38ea76)))_0x449c99['removeMarker'](_0x403b3a),_0x5e0a6e=!0x0;else{if(!_0x350bb6||!_0x350bb6['isInContent'])continue;if(_0x562536['newRange']&&_0x562536['oldRange']&&_0x562536['newRange']['isEqual'](_0x562536['oldRange']))continue;_0x3b29ee['add'](_0x350bb6);}}}var _0x38ea76;return _0x3b29ee['size']>0x0&&(_0x5e0a6e=!!this['_joinWithAdjacentSuggestions'](_0x3b29ee)||_0x5e0a6e),_0x5e0a6e;}),_0x10f91b['model']['document']['registerPostFixer'](_0x441925=>{let _0xa9831d=!0x1;for(const _0x555b59 of _0x10f91b['model']['document']['differ']['getChanges']())if('insert'==_0x555b59['type'])for(const _0xb80260 of this['_suggestions']['values']()){if(_0xb80260['isMultiRange']||!_0xb80260['isInContent'])continue;const _0x138a4e='formatBlock'==_0xb80260['type'],_0x1f1083=this['_getAttributeKey'](_0xb80260),_0x31038d=_0x1f1083&&this['_isBlockAttribute'](_0x1f1083);if(!_0x138a4e&&!_0x31038d)continue;const _0x419c1d=_0xb80260['getFirstRange']();if(_0x419c1d['start']['parent']!=_0x419c1d['end']['parent']&&!_0x419c1d['end']['isAtEnd']){const _0x9174e=_0x10f91b['model']['createPositionAt'](_0x419c1d['start']['nodeAfter'],'end'),_0x133010=_0x10f91b['model']['createRange'](_0x419c1d['start'],_0x9174e);_0x441925['updateMarker'](_0xb80260['getFirstMarker'](),{'range':_0x133010}),_0xa9831d=!0x0;}}return _0xa9831d;}),_0x10f91b['model']['document']['registerPostFixer'](_0x4cd9ed=>this['_processAttributeChanges'](_0x4cd9ed)),_0x10f91b['model']['document']['registerPostFixer'](_0x2a265b=>!_0x2a265b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a265b)),_0x10f91b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x10f91b['model']['document']['on']('change:data',(_0x5ae158,_0x5c88c5)=>{if(!_0x5c88c5['isLocal']||_0x5c88c5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1734a9=_0x10f91b['model']['document']['differ']['getChanges']();if(0x0==_0x1734a9['length'])return;const _0x3121b7=[],_0x3052d3=_0x1734a9['filter'](_0x4bcf7c=>'attribute'==_0x4bcf7c['type']),_0xb9ab1e=_0x1734a9['filter'](_0x1c2db8=>'insert'==_0x1c2db8['type']&&'$text'!=_0x1c2db8['name']);for(const _0x1aea9f of _0x3052d3)this['_isRegisteredAttribute'](_0x1aea9f['attributeKey'])&&_0x3121b7['push']({'key':_0x1aea9f['attributeKey'],'newValue':_0x1aea9f['attributeNewValue'],'oldValue':_0x1aea9f['attributeOldValue'],'range':Pt(_0x1aea9f['range'],_0x10f91b['model'])});for(const _0x5577c0 of _0xb9ab1e){if('rename'!=_0x5577c0['action']&&'refresh'!=_0x5577c0['action'])continue;const _0x570056=Lt(_0x5577c0['position']['nodeAfter'],_0x10f91b['model']),_0x35245e=_0x5577c0['before'];'rename'==_0x5577c0['action']&&_0x3121b7['push']({'key':m,'newValue':_0x5577c0['name'],'oldValue':_0x35245e['name'],'range':_0x570056});for(const [_0x2bd017,_0x1866de]of _0x35245e['attributes']){if(!this['_isRegisteredAttribute'](_0x2bd017))continue;const _0x3bd78c=_0x5577c0['attributes']['get'](_0x2bd017);_0x1866de!==_0x3bd78c&&_0x3121b7['push']({'key':_0x2bd017,'newValue':_0x3bd78c,'oldValue':_0x1866de,'range':_0x570056});}for(const [_0xcc4bbd,_0xa12ba1]of _0x5577c0['attributes'])this['_isRegisteredAttribute'](_0xcc4bbd)&&(_0x35245e['attributes']['has'](_0xcc4bbd)||_0x3121b7['push']({'key':_0xcc4bbd,'newValue':_0xa12ba1,'oldValue':null,'range':_0x570056}));}0x0!=_0x3121b7['length']&&_0x10f91b['model']['enqueueChange'](_0x5c88c5,_0x474aa5=>{const _0x5d1819=_0x13e654();for(const {range:_0x15ed77,key:_0x53bef2,oldValue:_0x30ae9d,newValue:_0x280d2c}of _0x3121b7)this['markAttributeChange'](_0x15ed77,_0x53bef2,_0x30ae9d,_0x280d2c,{'groupId':_0x5d1819});this['_reduceExistingSuggestions'](_0x474aa5,_0x3121b7);});},{'priority':'lowest'}),_0x10f91b['model']['markers']['on']('update:suggestion',(_0xa3e62d,_0x2fdf07,_0x503504)=>{if(null==_0x503504){const {id:_0x2f1c97}=this['_splitMarkerName'](_0x2fdf07['name']),_0x168c07=this['_suggestions']['get'](_0x2f1c97);_0x168c07&&_0x168c07['addMarkerName'](_0x2fdf07['name']);}}),_0x10f91b['model']['document']['on']('change:data',()=>{const _0xd71596=Array['from'](_0x10f91b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3840f1=>'suggestion'===this['_splitMarkerName'](_0x3840f1['name'])['group']);if(0x0===_0xd71596['length'])return;_0xd71596['sort']((_0xb0d381,_0x5bd218)=>{const _0x598ac4=_0xb0d381['data']['oldRange'],_0x282e00=_0x5bd218['data']['oldRange'];return null===_0x598ac4&&null===_0x282e00?0x0:null===_0x598ac4&&null!==_0x282e00?-0x1:null!==_0x598ac4&&null===_0x282e00?0x1:_0x598ac4['start']['isBefore'](_0x282e00['start'])?-0x1:0x1;});const _0x3b974b=new Set(),_0x2459cd=new Set();for(const {name:_0x5b9741,data:_0x188b68}of _0xd71596){const {id:_0x566713}=this['_splitMarkerName'](_0x5b9741);if(null===_0x188b68['oldRange']){const _0x15997a=this['_handleNewSuggestionMarker'](_0x5b9741);_0x2459cd['add'](_0x15997a);}else{const _0x9ca7c4=this['_suggestions']['get'](_0x566713);null!==_0x188b68['newRange']||_0x9ca7c4['isInContent']?(_0x3b974b['add'](_0x9ca7c4['head']),_0x2459cd['add'](_0x9ca7c4)):this['_removeSuggestion'](_0x9ca7c4);}}_0x2459cd['size']>0x0&&this['_refreshSuggestionsChain'](_0x2459cd);for(const _0x1781ac of _0x3b974b)this['fire']('suggestionChanged',_0x1781ac);}),_0x10f91b['model']['on']('applyOperation',(_0x273895,_0x947164)=>{const _0x42bef3=_0x947164[0x0];if(!this['_suggestions']['size'])return;if(!_0x42bef3['isDocumentOperation'])return;if(_0x42bef3['batch']['isUndo']||!_0x42bef3['batch']['isLocal'])return;let _0x2dbe50,_0x155340;switch(_0x42bef3['type']){case'insert':_0x2dbe50=_0x10f91b['model']['createPositionAt'](_0x42bef3['position']),_0x155340=_0x2dbe50['getShiftedBy'](_0x42bef3['howMany']);break;case'split':_0x2dbe50=_0x10f91b['model']['createPositionAt'](_0x42bef3['splitPosition']),_0x155340=_0x10f91b['model']['createPositionAt'](_0x42bef3['moveTargetPosition']);break;case'move':_0x2dbe50=_0x10f91b['model']['createPositionAt'](_0x42bef3['targetPosition']),_0x155340=_0x2dbe50['getShiftedBy'](_0x42bef3['howMany']);break;default:return;}const _0x51c83e=_0x10f91b['model']['createRange'](_0x2dbe50,_0x155340);_0x10f91b['model']['change'](()=>{for(const {suggestion:_0x1ef84c,meta:_0x3d058f}of this['_findSuggestions'](_0x51c83e)){if(_0x1ef84c['isMultiRange'])continue;if('formatInline'==_0x1ef84c['type'])continue;const _0x185fe7=this['_getAttributeKey'](_0x1ef84c);if(_0x185fe7&&this['_isBlockAttribute'](_0x185fe7)&&'split'!=_0x42bef3['type'])continue;const _0x97a27b=_0x1ef84c['data']&&_0x1ef84c['data']['multipleBlocks'];('formatBlock'!=_0x1ef84c['type']||'split'==_0x42bef3['type']&&!_0x97a27b)&&(_0x3d058f['containsRangeInObject']||'insertion'==_0x1ef84c['type']&&_0x3d058f['isOwn']||_0x1ef84c['getFirstRange']()['containsRange'](_0x51c83e)&&this['_breakSuggestionMarker'](_0x1ef84c,_0x2dbe50,_0x155340));}});},{'priority':'lowest'}),_0x10f91b['model']['on']('deleteContent',(_0x5c9675,_0x314e6b)=>{const _0x4e2323=_0x314e6b[0x0],_0x4c5813=_0x314e6b[0x1];if(_0x4c5813&&_0x4c5813['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4e2323['isCollapsed'])return;const _0x4a555b=_0x10f91b['model']['schema'],{start:_0x3dd6f6,end:_0x34c653}=_0x4e2323['getFirstRange'](),_0x11ebd1=_0x3dd6f6['nodeAfter']&&_0x4a555b['isLimit'](_0x3dd6f6['nodeAfter'])?null:_0x4a555b['getNearestSelectionRange'](_0x3dd6f6,'forward'),_0x4498e3=_0x34c653['nodeBefore']&&_0x4a555b['isLimit'](_0x34c653['nodeBefore'])?null:_0x4a555b['getNearestSelectionRange'](_0x34c653,'backward'),_0x5bdc39=_0x10f91b['model']['createRange'](_0x11ebd1?_0x11ebd1['start']:_0x3dd6f6,_0x4498e3?_0x4498e3['end']:_0x34c653);_0x10f91b['model']['change'](_0x19d2e0=>{this['markDeletion'](_0x5bdc39);const _0x2164e8=_0x10f91b['model']['schema']['getNearestSelectionRange'](_0x5bdc39['start']);_0x4e2323['is']('documentSelection')?_0x19d2e0['setSelection'](_0x2164e8):_0x4e2323['setTo'](_0x2164e8);}),_0x5c9675['stop']();},{'priority':_0x5b85e5['normal']+0xa}),_0x10f91b['model']['on']('insertContent',(_0x43af61,_0x3ca2f0)=>{const _0x440dbc=_0x3ca2f0[_0x3ca2f0['length']-0x1];_0x440dbc&&_0x440dbc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x10f91b['model']['change'](()=>{let _0x209e9a=_0x10f91b['model']['insertContent'](_0x3ca2f0[0x0],_0x3ca2f0[0x1],_0x3ca2f0[0x2],{'forceDefaultExecution':!0x0});if(!_0x209e9a)return;_0x43af61['return']=_0x209e9a['clone']();const _0x4168ee=_0x209e9a['end']['nodeBefore'],_0x4bc40b=_0x10f91b['model']['schema'];_0x4168ee&&_0x4bc40b['isBlock'](_0x4168ee)&&!_0x4bc40b['isObject'](_0x4168ee)&&(_0x209e9a=_0x10f91b['model']['createRange'](_0x209e9a['start'],_0x10f91b['model']['createPositionAt'](_0x4168ee,'end'))),this['markInsertion'](_0x209e9a);}),_0x43af61['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c5f58=new x(_0x10f91b,this['_suggestions']);_0x10f91b['commands']['add']('acceptSuggestion',_0x5c5f58),this['enableCommand']('acceptSuggestion');const _0x2dee00=new R(_0x10f91b,this['_suggestions']);_0x10f91b['commands']['add']('discardSuggestion',_0x2dee00),this['enableCommand']('discardSuggestion'),_0x10f91b['commands']['add']('acceptAllSuggestions',new E(_0x10f91b,_0x5c5f58,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x10f91b['commands']['add']('discardAllSuggestions',new E(_0x10f91b,_0x2dee00,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x10f91b['commands']['add']('acceptSelectedSuggestions',new O(_0x10f91b,_0x5c5f58,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x10f91b['commands']['add']('discardSelectedSuggestions',new O(_0x10f91b,_0x2dee00,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b193f=_0x10f91b['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b193f,'addComment',(_0x5831b1,{threadId:_0x14c028})=>{const _0x4aa8c1=this['_suggestions']['get'](_0x14c028);_0x4aa8c1&&_0x4aa8c1['commentThread']&&0x1===_0x4aa8c1['commentThread']['length']&&this['_updateSuggestionData'](_0x14c028,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b193f,'removeComment',(_0x41c922,{threadId:_0x232dc0})=>{const _0x46796c=this['_suggestions']['get'](_0x232dc0);_0x46796c&&_0x46796c['commentThread']&&!_0x46796c['commentThread']['length']&&this['_updateSuggestionData'](_0x232dc0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x184fc5){if(this['_adapter'])throw new _0x25e072('track-changes-adapter-already-set',this);this['_adapter']=_0x184fc5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x138694=!0x1,toJSON:_0xd97272=!0x1}={}){const _0x5d25df=[];for(const _0x1eaf52 of this['_suggestions']['values']())_0x138694&&!_0x1eaf52['isInContent']||_0x5d25df['push'](_0x1eaf52);return _0xd97272?_0x5d25df['map'](_0x3375c5=>_0x3375c5['toJSON']()):_0x5d25df;}['getSuggestion'](_0x33e556){const _0x185937=this['_suggestions']['get'](_0x33e556);if(!_0x185937)throw new _0x25e072('track-changes-suggestion-not-found',this);return _0x185937;}['hasSuggestion'](_0x546baf){return this['_suggestions']['has'](_0x546baf);}['addSuggestionData'](_0x17f89b){const {authorId:_0x16b98f,id:_0x5be94b,attributes:_0x116599}=_0x17f89b,[_0xfb97be,_0x1d8056]=_0x17f89b['type']['split'](':'),_0x195501=this['_suggestions']['get'](_0x5be94b)||this['_createSuggestion'](_0xfb97be,_0x1d8056,_0x5be94b,_0x16b98f,_0x116599);if(this['_addThreadToSuggestion'](_0x195501),this['_checkSuggestionCorrectness'](_0x195501,_0xfb97be,_0x1d8056||null,_0x16b98f),_0x195501['createdAt']=_0x17f89b['createdAt'],_0x195501['_isDataLoaded']=!0x0,_0x116599&&_0x116599['@external']){const _0x5a2f02=_0x116599['@external'],_0x559be1=this['_getExternalAuthor'](_0x5a2f02['authorName']);_0x195501['authoredAt']=_0x5a2f02['createdAt'],_0x195501['author']=_0x559be1,_0x195501['isExternal']=!0x0;}else _0x195501['authoredAt']=_0x17f89b['createdAt'];switch(_0x17f89b['data']&&(_0x195501['data']=_0x17f89b['data']),_0x17f89b['attributes']&&(_0x195501['attributes']=_0x17f89b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x195501['_saved']=!0x0),this['_suggestionState']['get'](_0x195501)){case'notReady':this['_suggestionState']['set'](_0x195501,'dataReady');break;case'markerReady':_0x195501['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x195501])),this['_refreshSuggestionsChain'](new Set([_0x195501])),this['_suggestionState']['set'](_0x195501,'ready'),this['fire']('suggestionLoaded',_0x195501)):this['_suggestionState']['set'](_0x195501,'removed');}return _0x195501;}['acceptSuggestion'](_0x569340){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a92ba of _0x569340['getAllAdjacentSuggestions']())_0x4a92ba['accept']();});});}['discardSuggestion'](_0x1dafbd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a2ec5 of _0x1dafbd['getAllAdjacentSuggestions']())_0x1a2ec5['discard']();});});}['enableCommand'](_0x40c861,_0xc1b8c4){const _0x44161e=this['editor']['commands']['get'](_0x40c861);if(!_0x44161e)throw new _0x25e072('track-changes-command-not-found',this,{'commandName':_0x40c861});if(this['_enabledCommands']['has'](_0x44161e))throw new _0x25e072('track-changes-enable-command-twice',this,{'commandName':_0x40c861});this['_enabledCommands']['add'](_0x44161e),_0xc1b8c4&&_0x44161e['on']('execute',(_0x58d528,_0x5b3684)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b3684['length']>0x0&&_0x5b3684[_0x5b3684['length']-0x1]&&_0x5b3684[_0x5b3684['length']-0x1]['forceDefaultExecution']?_0x5b3684['pop']():(_0x58d528['return']=_0xc1b8c4((..._0x157677)=>_0x44161e['execute'](..._0x157677,{'forceDefaultExecution':!0x0}),..._0x5b3684),_0x58d528['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x39160d){let _0x41c885,_0x1b29d3;const _0x527e85=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x41c885=_0x39160d();}catch(_0x36ab31){_0x1b29d3=_0x36ab31;}return _0x527e85||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b29d3&&_0x25e072['rethrowUnexpectedError'](_0x1b29d3,this),_0x41c885;}['markInsertion'](_0x8335d2,_0x1516f3=null,_0x1cffac={}){if(_0x8335d2['isCollapsed'])return null;const _0x58a59b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ad584,meta:_0x273f48}of this['_findSuggestions'](_0x8335d2,'insertion'))if(_0x273f48['isOwn']){if(!_0x273f48['isNextTo']){if(_0x273f48['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ad584,_0x1cffac))continue;return _0x5ad584;}if(qt(_0x5ad584,_0x1cffac))return _0x5ad584;this['_breakSuggestionMarker'](_0x5ad584,_0x8335d2['start'],_0x8335d2['end']);break;}if(_0x1516f3==_0x5ad584['subType']&&qt(_0x5ad584,_0x1cffac)){const _0x1eeaac=_0x5ad584['getFirstRange']();return _0x1eeaac['start']['isEqual'](_0x8335d2['end'])?this['_setSuggestionRange'](_0x5ad584,this['_model']['createRange'](_0x8335d2['start'],_0x1eeaac['end'])):this['_setSuggestionRange'](_0x5ad584,this['_model']['createRange'](_0x1eeaac['start'],_0x8335d2['end'])),_0x5ad584;}}const _0x4619d5=_0x13e654(),_0x95fdd7=_0x58a59b['id'],_0x40759a=_0x1516f3?'insertion:'+_0x1516f3:'insertion',_0x2ec8c8=this['_setSuggestionData']({'id':_0x4619d5,'type':_0x40759a,'createdAt':new Date(),'authorId':_0x95fdd7,'attributes':_0x1cffac});return this['_addSuggestionMarker'](_0x40759a,_0x4619d5,_0x95fdd7,_0x8335d2),_0x2ec8c8;}['markMultiRangeInsertion'](_0x200a75,_0x2d4f76='multi',_0x74ad97={}){const _0x1a7340=this['editor']['plugins']['get']('Users')['me'],_0x40d621=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d4f76,'join');for(const _0x10cc57 of this['getSuggestions']())if(_0x10cc57['author']['id']==_0x1a7340['id']&&'insertion'==_0x10cc57['type']&&_0x10cc57['subType']==_0x2d4f76&&qt(_0x10cc57,_0x74ad97)&&(_0x40d621(_0x10cc57['getRanges'](),_0x200a75)||_0x40d621(_0x200a75,_0x10cc57['getRanges']()))){for(const _0xc923a5 of _0x200a75)_0x10cc57['addRange'](_0xc923a5);return _0x10cc57;}for(const {suggestion:_0x2e89da,meta:_0x4ac103}of this['_findSuggestions'](_0x200a75,'insertion')){if(!_0x4ac103['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4ac103['containsRangeInObject'])continue;if(!qt(_0x2e89da,_0x74ad97))continue;let _0x500342=!0x0;for(const _0x557814 of _0x2e89da['getRanges']())for(const _0x37ff7b of _0x200a75)if(!_0x557814['containsRange'](_0x37ff7b)){_0x500342=!0x1;break;}if(_0x500342)return _0x2e89da;}const _0x529e0c=_0x13e654(),_0x40d46e=_0x1a7340['id'],_0x1e7951='insertion:'+_0x2d4f76,_0x56a121=this['_setSuggestionData']({'id':_0x529e0c,'type':_0x1e7951,'createdAt':new Date(),'authorId':_0x40d46e,'attributes':_0x74ad97});for(const _0x259a17 of _0x200a75)this['_addSuggestionMarker'](_0x1e7951,_0x529e0c,_0x40d46e,_0x259a17,u['getMultiRangeId']());return _0x56a121;}['markInlineFormat'](_0x14f73c,_0x11bd1a,_0x366f23=null,_0x424377={}){if(_0x366f23=_0x366f23||Gt(_0x11bd1a),_0x14f73c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x79aeb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x366f23,'accept');return this['forceDefaultExecution'](()=>_0x79aeb([_0x14f73c],_0x11bd1a,_0x424377)),null;}const _0x6cf24b=this['editor']['plugins']['get']('Users')['me'],_0x29595a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4baac9,meta:_0x85030e}of this['_findSuggestions'](_0x14f73c,'insertion'))_0x85030e['isOwn']&&!_0x85030e['isInsideObject']&&_0x29595a['push'](..._0x4baac9['getRanges']());}const _0x4da38e=function(_0x4d0da6,_0x55b403){const _0xd59b7e=[];for(const _0x15f29a of _0x55b403){const _0x5ba6fb=_0x4d0da6['getIntersection'](_0x15f29a);_0x5ba6fb&&_0xd59b7e['push'](_0x5ba6fb);}return _0xd59b7e;}(_0x14f73c,_0x29595a),_0x40526c=function(_0x174d3b,_0x52d6e8){const _0x3b707f=[_0x174d3b];for(const _0xac3738 of _0x52d6e8){let _0x266209=0x0;for(;_0x266209<_0x3b707f['length'];){const _0x1073e1=_0x3b707f[_0x266209]['getDifference'](_0xac3738);_0x3b707f['splice'](_0x266209,0x1,..._0x1073e1),_0x266209+=_0x1073e1['length'];}}return _0x3b707f;}(_0x14f73c,_0x29595a);_0x4da38e['length']&&this['_model']['change'](()=>{for(const _0x1dbe28 of _0x4da38e){const _0x57dfd3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x366f23,'accept');this['forceDefaultExecution'](()=>_0x57dfd3([_0x1dbe28],_0x11bd1a,_0x424377));}});for(const _0x46685c of _0x40526c){let _0x1639fa=null,_0x5a1ddf=_0x46685c['start'],_0x2413cb=_0x46685c['end'];for(const {suggestion:_0x3a1ce7,meta:_0x189861}of this['_findSuggestions'](_0x46685c,'formatInline')){if(!_0x189861['isOwn'])continue;if(_0x3a1ce7['subType']!=_0x366f23)continue;if(!qt(_0x3a1ce7,_0x424377))continue;const _0x10e1bf=_0x3a1ce7['getFirstRange']();if(_0x10e1bf['containsRange'](_0x46685c,!0x0))return null;_0x5a1ddf=_0x5a1ddf['isBefore'](_0x10e1bf['start'])?_0x5a1ddf:_0x10e1bf['start'],_0x2413cb=_0x2413cb['isAfter'](_0x10e1bf['end'])?_0x2413cb:_0x10e1bf['end'],_0x1639fa?_0x10e1bf['start']['isBefore'](_0x1639fa['getFirstRange']()['start'])?(_0x1639fa['removeMarkers'](),_0x1639fa=_0x3a1ce7):_0x3a1ce7['removeMarkers']():_0x1639fa=_0x3a1ce7;}const _0x319202=this['_model']['createRange'](_0x5a1ddf,_0x2413cb);if(_0x1639fa)this['_setSuggestionRange'](_0x1639fa,_0x319202);else{const _0x515319=_0x13e654(),_0x5fb6ee=_0x6cf24b['id'];this['_setSuggestionData']({'id':_0x515319,'type':'formatInline:'+_0x366f23,'data':_0x11bd1a,'createdAt':new Date(),'authorId':_0x5fb6ee,'attributes':_0x424377}),this['_addSuggestionMarker']('formatInline:'+_0x366f23,_0x515319,_0x5fb6ee,_0x319202);}}return null;}['markBlockFormat'](_0x49bc7d,_0x21c99b,_0x514451=[],_0x7b19d0=null,_0x471d14={}){_0x21c99b['formatGroupId']||(_0x21c99b['formatGroupId']=_0x21c99b['commandName']),_0x21c99b['multipleBlocks']=_0x49bc7d['is']('range'),_0x7b19d0=_0x7b19d0||Gt(_0x21c99b);const _0x5deba5=_0x514451['map'](_0x285fb1=>Lt(_0x285fb1,this['_model'])),_0x4a6ef=_0x49bc7d['is']('range')?_0x49bc7d:Lt(_0x49bc7d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5c6c8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7b19d0,'accept');return this['forceDefaultExecution'](()=>_0x5c6c8b([_0x4a6ef],_0x21c99b,_0x471d14)),null;}_0x5deba5['push'](_0x4a6ef);let _0x4ebf0b=!0x0;for(const _0x7cd8b of _0x5deba5)if(!this['_rangeIsInLocalUserInsertion'](_0x7cd8b)){_0x4ebf0b=!0x1;break;}if(_0x4ebf0b&&'always'!==this['_trackFormatChanges']){const _0x386af4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7b19d0,'accept');return this['forceDefaultExecution'](()=>_0x386af4([_0x4a6ef],_0x21c99b,_0x471d14)),null;}let _0x519a5c=null,_0x33f1c5=_0x4a6ef['start'],_0x3d2ac6=_0x4a6ef['end'];for(const {suggestion:_0x53179c,meta:_0x11361e}of this['_findSuggestions'](_0x4a6ef,'formatBlock')){if(!_0x11361e['isOwn'])continue;if(_0x11361e['isNextTo']||_0x11361e['containsRangeInObject']||_0x11361e['isInsideObject'])continue;if(_0x53179c['data']['formatGroupId']!=_0x21c99b['formatGroupId'])continue;if(!qt(_0x53179c,_0x471d14))continue;const _0x4255fa=_0x53179c['getFirstRange']();if(_0x53179c['subType']==_0x7b19d0){if(_0x4255fa['containsRange'](_0x4a6ef,!0x0))return null;_0x33f1c5=_0x33f1c5['isBefore'](_0x4255fa['start'])?_0x33f1c5:_0x4255fa['start'],_0x3d2ac6=_0x3d2ac6['isAfter'](_0x4255fa['end'])?_0x3d2ac6:_0x4255fa['end'],_0x519a5c?_0x4255fa['start']['isBefore'](_0x519a5c['getFirstRange']()['start'])?(_0x519a5c['removeMarkers'](),_0x519a5c=_0x53179c):_0x53179c['removeMarkers']():_0x519a5c=_0x53179c;}else{const _0x143d8f=_0x4a6ef['getIntersection'](_0x4255fa);this['_cutOutSuggestionMarker'](_0x53179c,_0x143d8f);}}const _0x1a87de=this['editor']['plugins']['get']('Users')['me'],_0x21d0a0=_0x13e654(),_0x2ff75f=_0x1a87de['id'];if(_0x519a5c)return this['_setSuggestionRange'](_0x519a5c,this['_model']['createRange'](_0x33f1c5,_0x3d2ac6)),_0x519a5c;{const _0x109aed=this['_setSuggestionData']({'id':_0x21d0a0,'type':'formatBlock:'+_0x7b19d0,'data':_0x21c99b,'createdAt':new Date(),'authorId':_0x2ff75f,'attributes':_0x471d14});return this['_addSuggestionMarker']('formatBlock:'+_0x7b19d0,_0x21d0a0,_0x2ff75f,this['_model']['createRange'](_0x33f1c5,_0x3d2ac6)),_0x109aed;}}['markMultiRangeBlockFormat'](_0x2b8f6a,_0x4045c4,_0x1f1ad0=[],_0x530aeb=null,_0x1ee002={}){_0x4045c4['formatGroupId']||(_0x4045c4['formatGroupId']=_0x4045c4['commandName']);const _0x395689=_0x2b8f6a[0x0];_0x4045c4['multipleBlocks']=_0x395689['is']('range'),_0x530aeb=_0x530aeb||Gt(_0x4045c4);const _0x45a39b=_0x1f1ad0['map'](_0x1d218e=>Lt(_0x1d218e,this['_model'])),_0x4a00f9=_0x395689['is']('range')?_0x2b8f6a:_0x2b8f6a['map'](_0x2692d4=>Lt(_0x2692d4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x403f66=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530aeb,'accept');return this['forceDefaultExecution'](()=>_0x403f66(_0x4a00f9,_0x4045c4,_0x1ee002)),null;}_0x45a39b['push'](..._0x4a00f9);let _0x58d395=!0x0;for(const _0x91dcca of _0x45a39b)if(!this['_rangeIsInLocalUserInsertion'](_0x91dcca)){_0x58d395=!0x1;break;}if(_0x58d395&&'always'!==this['_trackFormatChanges']){const _0x38d8ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530aeb,'accept');return this['forceDefaultExecution'](()=>_0x38d8ec(_0x4a00f9,_0x4045c4,_0x1ee002)),null;}const _0x448cc3=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ef173 of this['getSuggestions']()){if(_0x1ef173['author']['id']!=_0x448cc3['id'])continue;if('formatBlock'!=_0x1ef173['type']||_0x1ef173['data']['formatGroupId']!=_0x4045c4['formatGroupId'])continue;if(!qt(_0x1ef173,_0x1ee002))continue;const _0xc588dc=_0x1ef173['subType']==_0x530aeb;for(let _0x5f0911=0x0;_0x5f0911<_0x4a00f9['length'];_0x5f0911++){const _0x39729d=_0x4a00f9[_0x5f0911];for(const _0x491a90 of _0x1ef173['getMarkers']()){const _0x163fd8=_0x491a90['getRange']();if(_0x39729d['isEqual'](_0x163fd8)){_0xc588dc?(_0x4a00f9['splice'](_0x5f0911,0x1),_0x5f0911--):_0x1ef173['removeMarker'](_0x491a90['name']);break;}}}}if(0x0==_0x4a00f9['length'])return null;const _0x46a169=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x530aeb,'join');for(const _0x53b0b5 of this['getSuggestions']())if(_0x53b0b5['author']['id']==_0x448cc3['id']&&'formatBlock'==_0x53b0b5['type']&&_0x53b0b5['data']['formatGroupId']==_0x4045c4['formatGroupId']&&_0x53b0b5['subType']==_0x530aeb&&qt(_0x53b0b5,_0x1ee002)&&(_0x46a169(_0x53b0b5['getRanges'](),_0x4a00f9)||_0x46a169(_0x4a00f9,_0x53b0b5['getRanges']()))){for(const _0x47942c of _0x4a00f9)_0x53b0b5['addRange'](_0x47942c);return _0x53b0b5;}const _0x494d43=_0x13e654(),_0x22db31=_0x448cc3['id'],_0x311d63='formatBlock:'+_0x530aeb,_0x5cb9a9=this['_setSuggestionData']({'id':_0x494d43,'type':_0x311d63,'data':_0x4045c4,'createdAt':new Date(),'authorId':_0x22db31,'attributes':_0x1ee002});for(const _0x55f64c of _0x4a00f9)this['_addSuggestionMarker'](_0x311d63,_0x494d43,_0x22db31,_0x55f64c,u['getMultiRangeId']());return _0x5cb9a9;}['markDeletion'](_0x34e36a,_0x12f1b2=null,_0x10ae5a={}){if(_0x34e36a['isCollapsed'])return null;const _0x594478=this['editor']['plugins']['get']('Users')['me'],_0x4673bc=new _0x12550f(_0x34e36a['start'],_0x34e36a['end']);for(const {suggestion:_0x27b0f4,meta:_0x443aaa}of this['_findSuggestions'](_0x4673bc,'insertion'))if(_0x443aaa['isOwn']&&!_0x443aaa['isNextTo']){if(_0x27b0f4['isMultiRange']){const _0x2eaaf7=_0x27b0f4['getRanges']()['filter'](_0x2465c7=>'$graveyard'!=_0x2465c7['root']['rootName']);_0x2eaaf7['every'](_0x5e0fdb=>_0x4673bc['containsRange'](_0x5e0fdb,!0x0))&&_0x27b0f4['discard']();if(_0x2eaaf7['some'](_0x4465b6=>_0x4465b6['containsRange'](_0x4673bc,!0x0))){const _0x3bbae1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12f1b2,'accept');return this['forceDefaultExecution'](()=>_0x3bbae1([_0x4673bc],null,_0x10ae5a)),null;}}else{const _0x1bb52d=_0x4673bc['getIntersection'](_0x27b0f4['getFirstRange']());null!==_0x1bb52d&&_0x27b0f4['_onDiscard']([_0x1bb52d],null,_0x10ae5a);}}if(_0x4673bc['detach'](),_0x4673bc['isCollapsed']||'$graveyard'==_0x4673bc['root']['rootName'])return null;let _0x3a08c3=null,_0x5808d8=_0x4673bc['start'],_0x681d31=_0x4673bc['end'];const _0x1adbf9=this['_findSuggestions'](_0x4673bc,'deletion');for(const {suggestion:_0x2d8eb7,meta:_0x5ca63c}of _0x1adbf9){const _0x43a5f6=this['_model']['createRange'](_0x5808d8,_0x681d31);if(_0x5ca63c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ca63c['containsRangeInObject']&&!_0x5ca63c['isInsideObject'])){if(_0x2d8eb7['isMultiRange']){if(!qt(_0x2d8eb7,_0x10ae5a))continue;let _0x29cdde=!0x0;for(const _0x54ecbf of _0x2d8eb7['getRanges']()){if(_0x54ecbf['containsRange'](_0x43a5f6,!0x0))return _0x2d8eb7;_0x43a5f6['containsRange'](_0x54ecbf)||(_0x29cdde=!0x1);}_0x29cdde&&_0x2d8eb7['discard']();}else{const _0x4ba18c=_0x2d8eb7['getFirstRange']();if(_0x4ba18c['containsRange'](_0x43a5f6,!0x0))return _0x2d8eb7;if(!qt(_0x2d8eb7,_0x10ae5a)){_0x43a5f6['containsRange'](_0x4ba18c)?_0x2d8eb7['removeMarkers']():_0x4ba18c['containsPosition'](_0x5808d8)?_0x5808d8=_0x4ba18c['end']:_0x4ba18c['containsPosition'](_0x681d31)&&(_0x681d31=_0x4ba18c['start']);continue;}_0x5808d8=_0x5808d8['isBefore'](_0x4ba18c['start'])?_0x5808d8:_0x4ba18c['start'],_0x681d31=_0x681d31['isAfter'](_0x4ba18c['end'])?_0x681d31:_0x4ba18c['end'],_0x10ae5a=Object['assign']({},_0x2d8eb7['attributes']),_0x3a08c3?_0x4ba18c['start']['isBefore'](_0x3a08c3['getFirstRange']()['start'])?(_0x3a08c3['removeMarkers'](),_0x3a08c3=_0x2d8eb7):_0x2d8eb7['removeMarkers']():_0x3a08c3=_0x2d8eb7;}}}if(_0x3a08c3)return this['_setSuggestionRange'](_0x3a08c3,this['_model']['createRange'](_0x5808d8,_0x681d31)),_0x3a08c3;{const _0x1a199d=_0x13e654(),_0x89a9e0=this['_model']['createRange'](_0x5808d8,_0x681d31),_0x4de7fd=_0x594478['id'],_0x41574b=_0x12f1b2?'deletion:'+_0x12f1b2:'deletion',_0x560247=this['_setSuggestionData']({'id':_0x1a199d,'type':_0x41574b,'createdAt':new Date(),'authorId':_0x4de7fd,'attributes':_0x10ae5a});return this['_addSuggestionMarker'](_0x41574b,_0x1a199d,_0x4de7fd,_0x89a9e0),_0x560247;}}['markMultiRangeDeletion'](_0x2e9b8c,_0x45c22b='multi',_0x1d0762={}){const _0x5bb3b8=this['editor']['plugins']['get']('Users')['me'],_0x2250f0=_0x2e9b8c['map'](_0x48c563=>new _0x12550f(_0x48c563['start'],_0x48c563['end'])),_0x153914=new Set();for(const {suggestion:_0x1f7780,meta:_0x3ae259}of this['_findSuggestions'](_0x2250f0,'insertion'))_0x3ae259['isOwn']&&!_0x3ae259['isNextTo']&&_0x153914['add'](_0x1f7780);for(const _0x113c0e of _0x153914)if(_0x113c0e['isMultiRange']){const _0x22c158=_0x113c0e['getRanges']();(!_0x113c0e['attributes']||!_0x113c0e['attributes']['skipNestingCheck'])&&(_0x22c158['every'](_0x18287d=>_0x2250f0['some'](_0xbeadca=>_0xbeadca['containsRange'](_0x18287d,!0x0)))&&_0x113c0e['discard']());if(_0x2250f0['every'](_0x2c2e33=>_0x22c158['some'](_0x1f3f19=>_0x1f3f19['containsRange'](_0x2c2e33,!0x0)))){const _0x445020=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45c22b,'accept');return this['forceDefaultExecution'](()=>_0x445020(_0x2e9b8c,null,_0x1d0762)),null;}}else{const _0x88b4e8=_0x113c0e['getFirstRange']();_0x2250f0['some'](_0x1ccb07=>_0x1ccb07['containsRange'](_0x88b4e8,!0x0))&&_0x113c0e['discard']();if(_0x2250f0['every'](_0x3a9577=>_0x88b4e8['containsRange'](_0x3a9577,!0x0))){const _0x1e9b67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45c22b,'accept');return this['forceDefaultExecution'](()=>_0x1e9b67(_0x2250f0,null,_0x1d0762)),null;}}const _0x987ee2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45c22b,'join');let _0x528034=null;for(const _0x221022 of this['getSuggestions']())if(_0x221022['author']['id']==_0x5bb3b8['id']&&_0x221022['isInContent']&&'deletion'==_0x221022['type']&&_0x221022['subType']==_0x45c22b&&qt(_0x221022,_0x1d0762)&&(_0x987ee2(_0x221022['getRanges'](),_0x2250f0)||_0x987ee2(_0x2250f0,_0x221022['getRanges']()))){if(_0x528034){if(_0x221022['commentThread']&&_0x221022['commentThread']['length'])continue;for(const _0x195e67 of _0x221022['getRanges']())_0x528034['isIntersectingWithRange'](_0x195e67)||_0x528034['addRange'](_0x195e67);_0x221022['removeMarkers']();}else{_0x528034=_0x221022;for(const _0xacbbff of _0x2250f0)_0x221022['isIntersectingWithRange'](_0xacbbff)||_0x221022['addRange'](_0xacbbff);}}if(_0x528034)return _0x528034;_0x153914['clear']();for(const {suggestion:_0x186f30,meta:_0x1daf98}of this['_findSuggestions'](_0x2250f0,'deletion'))_0x1daf98['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1daf98['containsRangeInObject']&&!_0x1daf98['isInsideObject'])&&qt(_0x186f30,_0x1d0762)&&_0x153914['add'](_0x186f30);for(const _0x4dea35 of _0x153914){const _0x4f9e15=_0x4dea35['getRanges']();if(!_0x1d0762||!_0x1d0762['skipNestingCheck']){if(_0x2250f0['every'](_0x5c6c5c=>_0x4f9e15['some'](_0x5b4ac6=>_0x5b4ac6['containsRange'](_0x5c6c5c,!0x0))))return _0x4dea35;}(!_0x4dea35['attributes']||!_0x4dea35['attributes']['skipNestingCheck'])&&(_0x4f9e15['every'](_0x22bcaa=>_0x2250f0['some'](_0x84e0fd=>_0x84e0fd['containsRange'](_0x22bcaa,!0x0)))&&_0x4dea35['discard']());}const _0x2c97c7=_0x13e654(),_0x11c0b6=_0x5bb3b8['id'],_0x47e0ec='deletion:'+_0x45c22b,_0x275a11=this['_setSuggestionData']({'id':_0x2c97c7,'type':_0x47e0ec,'createdAt':new Date(),'authorId':_0x11c0b6,'attributes':_0x1d0762});for(const _0x32c7e1 of _0x2250f0)_0x32c7e1['detach'](),_0x32c7e1['isCollapsed']||'$graveyard'==_0x32c7e1['root']['rootName']||this['_addSuggestionMarker'](_0x47e0ec,_0x2c97c7,_0x11c0b6,_0x32c7e1,u['getMultiRangeId']());return _0x275a11;}['markAttributeChange'](_0x33139f,_0x545f4e,_0x3d4582,_0x3acb20,_0x8cba6){if(_0x33139f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5898b6=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c2bb0=Array['from'](this['_suggestions']['values']())['filter'](_0xdc75d9=>'attribute'==_0xdc75d9['type']&&_0xdc75d9['data']['key']==_0x545f4e&&_0xdc75d9['isIntersectingWithRange'](_0x33139f));if('default'===this['_trackFormatChanges']){const _0x2cdd0e=this['_findSuggestions'](_0x33139f,'insertion')['filter'](({meta:_0x240efc})=>_0x240efc['isOwn']&&!_0x240efc['isInsideObject']&&!_0x240efc['isNextTo'])['map'](({suggestion:_0x1aab53})=>_0x1aab53);_0x5c2bb0['unshift'](..._0x2cdd0e);}const _0x33f114=new Map([[_0x33139f,_0x3d4582]]);for(const _0x1e6be9 of _0x5c2bb0){const _0x1d838f='attribute'==_0x1e6be9['type']?_0x1e6be9['data']['oldValue']:void 0x0,_0x4b7383=_0x1e6be9['getFirstRange'](),_0x1e6ef3=Array['from'](_0x33f114['keys']())['find'](_0x480f3f=>_0x480f3f['isIntersecting'](_0x4b7383));if(!_0x1e6ef3)continue;const _0x3548c6=_0x1e6ef3['getDifference'](_0x4b7383);this['_isBlockAttribute'](_0x545f4e)&&'insertion'==_0x1e6be9['type']&&0x0!=_0x3548c6['length']||(_0x33f114['delete'](_0x1e6ef3),_0x3548c6['forEach'](_0x283123=>{_0x33f114['set'](_0x283123,_0x3d4582);}),'insertion'!=_0x1e6be9['type']&&_0x1d838f!=_0x3acb20&&_0x33f114['set'](_0x1e6ef3['getIntersection'](_0x4b7383),_0x1d838f));}const _0x206e3f=[];for(const [_0x5043b7,_0x159963]of _0x33f114){const _0x52ccbe=_0x13e654(),_0x5edfb7={'key':_0x545f4e,'oldValue':_0x159963,'newValue':_0x3acb20};_0x545f4e['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':_0x545f4e});const _0x3f910e=('attribute:'+(_0x545f4e+'|'+Gt({'newValue':_0x3acb20})))['substring'](0x0,0x3c),_0x2c1102=this['_setSuggestionData']({'id':_0x52ccbe,'type':_0x3f910e,'data':_0x5edfb7,'createdAt':new Date(),'authorId':_0x5898b6,'attributes':_0x8cba6});_0x206e3f['push'](_0x2c1102),this['_addSuggestionMarker'](_0x3f910e,_0x52ccbe,_0x5898b6,_0x5043b7);}return _0x206e3f;}['enableDefaultAttributesIntegration'](_0x331a38){this['enableCommand'](_0x331a38,(_0x11bb61,..._0x5a1afd)=>{this['_recordAttributeChanges'](()=>{_0x11bb61(..._0x5a1afd);});});}['registerBlockAttribute'](_0x45be45){this['_blockAttributeKeys']['add'](_0x45be45);}['registerInlineAttribute'](_0x566d1d){this['_inlineAttributeKeys']['add'](_0x566d1d);}['_getAttributeKey'](_0x2fe008){return'attribute'==_0x2fe008['type']?_0x2fe008['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3fa4e6,_0x55069c){const _0x10269f=_0x3fa4e6['getFirstMarker']();this['_model']['change'](_0x298a57=>{_0x298a57['updateMarker'](_0x10269f,{'range':_0x55069c});});}['_addThreadToSuggestion'](_0x7c7863){const _0x2a56d2=_0x7c7863['id'],_0x401df8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a56d2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x401df8,'threadId':_0x2a56d2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x21a59c=this['_commentsRepository']['getCommentThread'](_0x2a56d2);_0x21a59c['unbind']('isRemovable'),_0x21a59c['isRemovable']=!0x1,_0x7c7863['commentThread']=_0x21a59c;}['_checkSuggestionCorrectness'](_0x3da560,_0x34b433,_0x348233,_0x41b9ca){if(_0x3da560['type']!=_0x34b433||_0x3da560['subType']!=_0x348233||_0x3da560['creator']['id']!=_0x41b9ca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x25e072('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xc435d1,_0xe76e65){const _0x5f478e=_0xc435d1['getFirstRange']();if(_0xe76e65['isEqual'](_0x5f478e))_0xc435d1['removeMarkers']();else{if(_0x5f478e['containsRange'](_0xe76e65)){const _0x3a7348=this['_model']['createPositionAt'](_0xe76e65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc435d1,this['_model']['createRange'](_0x5f478e['start'],_0x3a7348));const _0x19942d=_0x13e654(),_0xf6da57=_0xc435d1['creator']['id'],_0x2fb1e1=_0xc435d1['type']+':'+_0xc435d1['subType'];this['_setSuggestionData']({'id':_0x19942d,'type':_0x2fb1e1,'createdAt':new Date(),'authorId':_0xf6da57,'data':_0xc435d1['data'],'attributes':_0xc435d1['attributes']});const _0x1c5aff=this['_model']['createPositionAt'](_0xe76e65['end']['parent'],'after'),_0x24a087=this['_model']['createRange'](_0x1c5aff,_0x5f478e['end']);this['_addSuggestionMarker'](_0x2fb1e1,_0x19942d,_0xf6da57,_0x24a087);}else{if(_0x5f478e['containsPosition'](_0xe76e65['start'])){const _0x1bacd9=this['_model']['createPositionAt'](_0xe76e65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc435d1,this['_model']['createRange'](_0x5f478e['start'],_0x1bacd9));}else{const _0x3ec6f6=this['_model']['createPositionAt'](_0xe76e65['end']['parent'],'after');this['_setSuggestionRange'](_0xc435d1,this['_model']['createRange'](_0x3ec6f6,_0x5f478e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x531892){for(const {suggestion:_0x6a5bf2,meta:_0x3747e0}of this['_findSuggestions'](_0x531892,'insertion')){if(!_0x3747e0['isOwn'])continue;const _0x1f176d=_0x6a5bf2['getRanges']();for(const _0x4b063d of _0x1f176d)if(!_0x531892['getDifference'](_0x4b063d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5ee83b){const _0x5a9f59=this['editor']['plugins']['get']('Users')['getUser'](_0x5ee83b);if(!_0x5a9f59)throw new _0x25e072('track-changes-user-not-found',this);return _0x5a9f59;}['_getExternalAuthor'](_0x5ba6c5){const _0x54bb39=this['editor']['plugins']['get']('Users'),_0x4b7774=_0x3071b6('external:'+_0x5ba6c5),_0x54c861=_0x54bb39['getUser'](_0x4b7774);return _0x54c861||_0x54bb39['addUser']({'id':_0x4b7774,'name':_0x5ba6c5});}['_createSuggestion'](_0x441b1b,_0x4bca77,_0x3692d8,_0x2444eb,_0x4a1016){const _0x12d00d=this['_getAuthorFromId'](_0x2444eb),_0x561cdb=this['_suggestionFactory']['buildSuggestion'](_0x441b1b,_0x4bca77,_0x3692d8,_0x12d00d,_0x4a1016,_0x3b89a3=>{this['_updateSuggestionData'](_0x3692d8,{'attributes':_0x3b89a3});const _0x3bf1f6=this['getSuggestion'](_0x3692d8);this['_joinWithAdjacentSuggestions'](new Set([_0x3bf1f6])),this['_refreshSuggestionsChain'](new Set([_0x3bf1f6]));});return this['listenTo'](_0x561cdb,'accept',()=>{this['_updateSuggestionData'](_0x3692d8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x561cdb,'discard',()=>{this['_updateSuggestionData'](_0x3692d8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3692d8,_0x561cdb),this['_suggestionState']['set'](_0x561cdb,'notReady'),_0x561cdb;}['_splitMarkerName'](_0x5aca23){const _0x456215=_0x5aca23['split'](':');return{'group':_0x456215[0x0],'type':_0x456215[0x1],'subType':_0x456215['length']>=0x5?_0x456215[0x2]:null,'id':_0x456215['length']<0x5?_0x456215[0x2]:_0x456215[0x3],'authorId':_0x456215['length']<0x5?_0x456215[0x3]:_0x456215[0x4],'markerCount':0x6==_0x456215['length']?_0x456215[0x5]:null};}['_breakSuggestionMarker'](_0xc3b3df,_0x22f7e0,_0x51a1ea){const _0x58faca=_0xc3b3df['getFirstRange'](),_0x40f511=_0x58faca['start'],_0x542a97=_0x58faca['end'];this['_setSuggestionRange'](_0xc3b3df,this['_model']['createRange'](_0x40f511,_0x22f7e0));const _0x3bb597=_0x13e654(),_0x4c00d5=_0xc3b3df['creator']['id'],_0x5c3efb=_0xc3b3df['type']+(_0xc3b3df['subType']?':'+_0xc3b3df['subType']:'');this['_setSuggestionData']({'id':_0x3bb597,'type':_0x5c3efb,'createdAt':new Date(),'authorId':_0x4c00d5,'originalSuggestionId':_0xc3b3df['id'],'attributes':_0xc3b3df['attributes'],'data':_0xc3b3df['data']});const _0xff9230=this['_getAttributeKey'](_0xc3b3df);('formatBlock'==_0xc3b3df['type']||_0xff9230&&this['_isBlockAttribute'](_0xff9230))&&(_0x51a1ea=this['_model']['createPositionBefore'](_0x51a1ea['parent'])),this['_addSuggestionMarker'](_0x5c3efb,_0x3bb597,_0x4c00d5,this['_model']['createRange'](_0x51a1ea,_0x542a97));}['_findSuggestions'](_0x12600e,_0x24851d=null){const _0x55d44f=[],_0x318063=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x12600e)||(_0x12600e=[_0x12600e]);for(const _0x447e0d of this['getSuggestions']()){if(!_0x447e0d['isInContent'])continue;if(_0x24851d&&_0x447e0d['type']!=_0x24851d)continue;let _0x3f9549=!0x1;for(const _0x2a6741 of _0x447e0d['getRanges']()){for(const _0x531420 of _0x12600e){const _0x328245=_0x531420['start']['isEqual'](_0x2a6741['end'])||_0x531420['end']['isEqual'](_0x2a6741['start']);if(_0x328245||_0x531420['getIntersection'](_0x2a6741)){const _0x476d6d=_0x531420['containsRange'](_0x2a6741)&&Ot(this['_model']['schema'],_0x2a6741['start'],_0x531420),_0x16c1a5=_0x2a6741['containsRange'](_0x531420)&&Ot(this['_model']['schema'],_0x531420['start'],_0x2a6741);_0x55d44f['push']({'suggestion':_0x447e0d,'meta':{'isOwn':_0x318063==_0x447e0d['author'],'isNextTo':_0x328245,'isInsideObject':_0x476d6d,'containsRangeInObject':_0x16c1a5}}),_0x3f9549=!0x0;break;}}if(_0x3f9549)break;}}return _0x55d44f;}['_addSuggestionMarker'](_0x4e2de8,_0x47f5d5,_0x541756,_0x44dfd0,_0x562007){this['_model']['change'](_0x483996=>{let _0x5df1a1='suggestion:'+_0x4e2de8+':'+_0x47f5d5+':'+_0x541756;_0x562007&&(_0x5df1a1=_0x5df1a1+':'+_0x562007),_0x483996['addMarker'](_0x5df1a1,{'range':_0x44dfd0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x346b69){const _0x1115c0=_0x346b69['previous'],_0x450100=_0x346b69['next'];_0x346b69['previous']=null,_0x346b69['next']=null,null!=_0x1115c0&&_0x1115c0['next']==_0x346b69&&(_0x1115c0['next']=_0x450100),null!=_0x450100&&_0x450100['previous']==_0x346b69&&(_0x450100['previous']=_0x1115c0),'ready'==this['_suggestionState']['get'](_0x346b69)&&(this['_suggestionState']['set'](_0x346b69,'removed'),this['fire']('suggestionUnloaded',_0x346b69,_0x1115c0,_0x450100));}['_setSuggestionData'](_0x453c64){const _0x5d40b2=_0x453c64['id'],_0x991f72=this['addSuggestionData'](_0x453c64);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3719d8=this['editor']['plugins']['get']('PendingActions'),_0x2dd818=_0x991f72['hasComments'],_0x50b926=_0x991f72['subType']?_0x991f72['type']+':'+_0x991f72['subType']:_0x991f72['type'],_0x367358=this['editor']['locale'],_0x543297=_0x3719d8['add'](o(_0x367358,'PENDING_ACTION_SUGGESTION')),_0x9abb89={'id':_0x5d40b2,'type':_0x50b926,'hasComments':_0x2dd818,'data':_0x453c64['data']||null,'originalSuggestionId':_0x453c64['originalSuggestionId']||null,'attributes':_0x991f72['attributes']};this['_adapter']['addSuggestion'](_0x9abb89)['then'](_0x58bbc2=>{_0x991f72['_saved']=!0x0,_0x3719d8['remove'](_0x543297),_0x58bbc2&&_0x58bbc2['createdAt']&&(this['_suggestions']['get'](_0x5d40b2)['createdAt']=_0x58bbc2['createdAt']);})['catch'](_0x1d3ae5=>{throw _0x2ca0b9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x991f72['discard']();}),_0x991f72['stopListening'](),this['_suggestions']['delete'](_0x991f72['id']),this['_suggestionState']['delete'](_0x991f72),_0x1d3ae5;});}return _0x991f72;}['_isBlockAttribute'](_0x4d14a1){return this['_blockAttributeKeys']['has'](_0x4d14a1);}['_updateSuggestionData'](_0x3ab37a,_0x49d2e3){const _0x415437=this['editor']['plugins']['get']('PendingActions'),_0x1d8f0f=this['getSuggestion'](_0x3ab37a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d8f0f['_saved']){const _0x2e4581=_0x415437['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3ab37a,_0x49d2e3)['then'](()=>{_0x415437['remove'](_0x2e4581);});}else _0x1d8f0f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3ab37a,_0x49d2e3);});}}['_getSuggestionData'](_0x4f7d8a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x25e072('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f7d8a);}['_handleNewSuggestionMarker'](_0x51b4fa){const {id:_0x4206a8,type:_0x4f5aed,subType:_0x532d55,authorId:_0x210d00}=this['_splitMarkerName'](_0x51b4fa),_0x574769=this['_suggestions']['get'](_0x4206a8)||this['_createSuggestion'](_0x4f5aed,_0x532d55,_0x4206a8,_0x210d00,{});switch(this['_checkSuggestionCorrectness'](_0x574769,_0x4f5aed,_0x532d55,_0x210d00),this['_suggestionState']['get'](_0x574769)){case'notReady':this['_getSuggestionData'](_0x4206a8)['then'](_0x38dcd3=>{let _0x417d7f=Promise['resolve']();_0x38dcd3['hasComments']&&(_0x417d7f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4206a8})),_0x417d7f['then'](()=>{this['addSuggestionData'](_0x38dcd3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x574769,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4206a8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x574769,'ready'),this['fire']('suggestionLoaded',_0x574769);break;case'ready':this['fire']('suggestionChanged',_0x574769);}return _0x574769['addMarkerName'](_0x51b4fa),_0x574769;}['_refreshSuggestionsChain'](_0x5294bc){const _0x4aba5f=Array['from'](_0x5294bc),_0x2bd310=_0x4aba5f['filter'](_0x9fa9ed=>'attribute'==_0x9fa9ed['type']);this['_refreshAttributeSuggestionsChain'](_0x2bd310);const _0x1408d8=_0x4aba5f['filter'](_0x287449=>!_0x287449['isMultiRange']&&'attribute'!=_0x287449['type']),_0x2d3b18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d0c4=>!_0x31d0c4['isMultiRange']&&'attribute'!=_0x31d0c4['type']),_0x47c7f2=_0x2d3b18['filter'](_0x428f38=>!_0x5294bc['has'](_0x428f38)),_0x2e307b=new Map(_0x2d3b18['map'](_0x1aceeb=>[_0x1aceeb,this['_suggestionFactory']['getSuggestionCallback'](_0x1aceeb['type'],_0x1aceeb['subType'],'chain')])),_0x22df7a=new Map(_0x2d3b18['map'](_0x450e09=>[_0x450e09,_0x450e09['getFirstRange']()])),_0x150b26=new Set(),_0x5e431d=new Set();for(let _0x2b9257=0x0;_0x2b9257<_0x1408d8['length'];_0x2b9257++)_0x23e1ac(_0x1408d8[_0x2b9257],_0x1408d8,_0x2b9257+0x1);for(let _0xd2e0cb=0x0;_0xd2e0cb<_0x1408d8['length'];_0xd2e0cb++)_0x23e1ac(_0x1408d8[_0xd2e0cb],_0x47c7f2,0x0);const _0x20adcd=new Set();for(let _0xf42c6c=0x0;_0xf42c6c<_0x1408d8['length'];_0xf42c6c++){const _0x1d06ad=_0x1408d8[_0xf42c6c];!_0x5e431d['has'](_0x1d06ad)&&_0x1d06ad['previous']&&(_0x20adcd['add'](_0x1d06ad['previous']),_0x1d06ad['previous']['next']===_0x1d06ad&&(_0x1d06ad['previous']['next']=null),_0x1d06ad['previous']=null),!_0x150b26['has'](_0x1d06ad)&&_0x1d06ad['next']&&(_0x20adcd['add'](_0x1d06ad['next']),_0x1d06ad['next']['previous']===_0x1d06ad&&(_0x1d06ad['next']['previous']=null),_0x1d06ad['next']=null);}function _0x23e1ac(_0x5090f0,_0x2ecfa9,_0x11563a){for(let _0x27b2b6=_0x11563a;_0x27b2b6<_0x2ecfa9['length'];_0x27b2b6++){const _0x5499ff=_0x6d84c8(_0x5090f0,_0x2ecfa9[_0x27b2b6]);_0x5499ff&&(_0x5499ff[0x0]['next']=_0x5499ff[0x1],_0x5499ff[0x1]['previous']=_0x5499ff[0x0],_0x150b26['add'](_0x5499ff[0x0]),_0x5e431d['add'](_0x5499ff[0x1]));}}function _0x6d84c8(_0x4701eb,_0x27814f){if(_0x4701eb['author']['id']!==_0x27814f['author']['id'])return null;const _0x596f5e=_0x2e307b['get'](_0x4701eb)(_0x4701eb,_0x27814f,_0x22df7a['get'](_0x4701eb),_0x22df7a['get'](_0x27814f));if(!_0x596f5e)return null;return _0x2e307b['get'](_0x27814f)(_0x4701eb,_0x27814f,_0x22df7a['get'](_0x4701eb),_0x22df7a['get'](_0x27814f))?_0x596f5e[0x1]['commentThread']&&_0x596f5e[0x1]['commentThread']['length']?null:_0x596f5e:null;}_0x20adcd['size']&&this['_refreshSuggestionsChain'](_0x20adcd);}['_refreshAttributeSuggestionsChain'](_0x53daf5){if(0x0==_0x53daf5['length'])return;const _0x27e184=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2df6d4=>'attribute'==_0x2df6d4['type']&&_0x2df6d4['_isDataLoaded']),_0x21f706=[],_0xc815f3=new Map();for(const _0x1628d6 of _0x27e184){const _0x19181e=_0x3071b6(_0x1628d6['attributes']);_0xc815f3['has'](_0x19181e)||(_0xc815f3['set'](_0x19181e,_0x21f706['length']),_0x21f706['push']([]));const _0x21c5df=_0xc815f3['get'](_0x19181e);_0x21f706[_0x21c5df]['push'](_0x1628d6);}!(function(){_0x21f706['sort']((_0x4aadb6,_0x45cf6b)=>{const _0x40aff0=_0x4aadb6[0x0]['createdAt'],_0x576280=_0x45cf6b[0x0]['createdAt'];return _0x40aff0==_0x576280?_0x4aadb6[0x0]['attributes']['groupId']<_0x45cf6b[0x0]['attributes']['groupId']?-0x1:0x1:_0x40aff0<_0x576280?-0x1:0x1;});for(const _0x5cfc31 of _0x21f706)_0x5cfc31['sort']((_0x1c9e2a,_0x1a313b)=>_0x1c9e2a['id']<_0x1a313b['id']?-0x1:0x1);}());for(let _0x11f215=0x0;_0x11f215<_0x21f706['length'];_0x11f215++){if(0x0==_0x21f706[_0x11f215]['length'])continue;const _0x198a44=[];for(let _0xe6540d=_0x11f215+0x1;_0xe6540d<_0x21f706['length'];_0xe6540d++)0x0!=_0x21f706[_0xe6540d]['length']&&_0x2276a5(_0x21f706[_0x11f215],_0x21f706[_0xe6540d])&&_0x198a44['push'](_0xe6540d);for(const _0x56f823 of _0x198a44)_0x21f706[_0x11f215]=_0x21f706[_0x11f215]['concat'](_0x21f706[_0x56f823]),_0x21f706[_0x56f823]=[];}for(const _0x255625 of _0x21f706)for(let _0x59ae58=0x0;_0x59ae58<_0x255625['length'];_0x59ae58++){const _0x3e259d=_0x255625[_0x59ae58+0x1]||null;_0x255625[_0x59ae58]['next']!==_0x3e259d&&(_0x255625[_0x59ae58]['next']=_0x3e259d);}for(const _0x582bf5 of _0x21f706)for(let _0x2033bf=0x0;_0x2033bf<_0x582bf5['length'];_0x2033bf++){const _0x5bf060=_0x582bf5[_0x2033bf-0x1]||null;_0x582bf5[_0x2033bf]['previous']!==_0x5bf060&&(_0x582bf5[_0x2033bf]['previous']=_0x5bf060);}function _0x2276a5(_0x1cb3a8,_0x49a816){if(_0x1cb3a8[0x0]['attributes']['groupId']!==_0x49a816[0x0]['attributes']['groupId']&&_0x1cb3a8[0x0]['author']!==_0x49a816[0x0]['author'])return!0x1;if(!function(_0x1ba3b5,_0x4e69b2){if(!_0x1ba3b5['hasComments']&&!_0x4e69b2['hasComments'])return!0x0;if(_0x1ba3b5['hasComments']&&_0x4e69b2['hasComments'])return!0x1;if(_0x1ba3b5['hasComments']&&_0x4e69b2['createdAt']<_0x1ba3b5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4e69b2['hasComments']&&_0x1ba3b5['createdAt']<_0x4e69b2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1cb3a8[0x0],_0x49a816[0x0]))return!0x1;const _0xc8a796=Tt(_0x1cb3a8[0x0]['attributes'],'groupId'),_0x5b8ca3=Tt(_0x49a816[0x0]['attributes'],'groupId');if(!_0x3b8fd5(_0xc8a796,_0x5b8ca3))return!0x1;return!!_0x1cb3a8['every'](_0x3805d0=>_0x49a816['some'](_0x11b390=>_0x3805d0['getFirstRange']()['isEqual'](_0x11b390['getFirstRange']())))&&_0x49a816['every'](_0x40535b=>_0x1cb3a8['some'](_0x4287fd=>_0x40535b['getFirstRange']()['isEqual'](_0x4287fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3feacd){const _0x3155f9=Array['from'](_0x3feacd),_0x344cce=this['getSuggestions']({'skipNotAttached':!0x0}),_0x47d21f=_0x344cce['filter'](_0x554a13=>!_0x3feacd['has'](_0x554a13)),_0x4d4b6a=new Map(_0x3155f9['map'](_0x5358fd=>[_0x5358fd,this['_suggestionFactory']['getSuggestionCallback'](_0x5358fd['type'],_0x5358fd['subType'],'join')])),_0x1d81b3=new Map(_0x344cce['map'](_0x590f88=>[_0x590f88,_0x590f88['getRanges']()]));for(let _0x3b7058=0x0;_0x3b7058<_0x3155f9['length'];_0x3b7058++){if(_0x5016e6(this,_0x3155f9[_0x3b7058],_0x3155f9,_0x3b7058+0x1))return!0x0;}for(let _0xd26f12=0x0;_0xd26f12<_0x3155f9['length'];_0xd26f12++){if(_0x5016e6(this,_0x3155f9[_0xd26f12],_0x47d21f,0x0))return!0x0;}return!0x1;function _0x5016e6(_0x19ead6,_0x2727fa,_0x278e9e,_0x5bd853){for(let _0x93d0b4=_0x5bd853;_0x93d0b4<_0x278e9e['length'];_0x93d0b4++){const _0x5f0d20=_0x278e9e[_0x93d0b4];if(_0x5f0d20['type']!==_0x2727fa['type']||_0x5f0d20['author']['id']!==_0x2727fa['author']['id']||_0x5f0d20['subType']!==_0x2727fa['subType'])continue;if(!Jt(_0x2727fa,_0x5f0d20))continue;if('attribute'==_0x2727fa['type']&&_0x2727fa['data']['oldValue']!=_0x5f0d20['data']['oldValue'])continue;if('attribute'==_0x2727fa['type']&&_0x19ead6['_isBlockAttribute'](_0x2727fa['data']['key']))continue;if('formatBlock'==_0x2727fa['type']){const _0x4c8710=_0x19ead6['editor']['model'],_0x2e9d8e=_0x2727fa['getContainedElement']();if(_0x2e9d8e&&(_0x4c8710['schema']['isObject'](_0x2e9d8e)||_0x4c8710['schema']['isLimit'](_0x2e9d8e)))continue;}const _0x214442=_0x4d4b6a['get'](_0x2727fa),_0x3f4fe9=_0x1d81b3['get'](_0x2727fa),_0x40ae3e=_0x1d81b3['get'](_0x5f0d20),_0x430793=_0x2727fa['commentThread']&&_0x2727fa['commentThread']['length'],_0xda0cdb=_0x5f0d20['commentThread']&&_0x5f0d20['commentThread']['length'];if(!_0x430793&&_0x214442(_0x40ae3e,_0x3f4fe9))return _0x19ead6['_joinSuggestions'](_0x5f0d20,_0x2727fa),_0x1d81b3['delete'](_0x2727fa),!0x0;if(!_0xda0cdb&&_0x214442(_0x3f4fe9,_0x40ae3e))return _0x19ead6['_joinSuggestions'](_0x2727fa,_0x5f0d20),_0x1d81b3['delete'](_0x5f0d20),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b4a09,_0xeab609){if(_0x4b4a09['isMultiRange']){for(const _0x331136 of _0xeab609['getRanges']())_0x4b4a09['addRange'](_0x331136);}else{const _0x1e59d4=_0xeab609['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b4a09,this['_model']['createRange'](_0x4b4a09['getFirstRange']()['start'],_0x1e59d4));}_0xeab609['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11cd13,_0x3d6272,_0x39c8d4){const _0x25bdb7=_0x11cd13['startsWith']('format')||_0x11cd13['startsWith']('attribute')?'FORMATTING':_0x11cd13['toUpperCase']();return o(this['editor']['locale'],_0x3d6272+'_'+_0x25bdb7+'_SUGGESTION_ANNOUNCEMENT',_0x39c8d4);}['_initAriaMarkerChangeAnnouncements'](){const _0x30c54b=this['editor'];if(!_0x30c54b['ui'])return;const {ariaLiveAnnouncer:_0x1816f8}=_0x30c54b['ui'];_0xa9aaf3(this['_model'],({left:_0x36fcaf,entered:_0xe1d35c})=>{for(const _0x351fde of _0x36fcaf){const {group:_0x5d95e2,type:_0x5142a7}=this['_splitMarkerName'](_0x351fde['name']);if('suggestion'===_0x5d95e2){_0x1816f8['announce'](this['_getMarkerAnnouncementText'](_0x5142a7,'LEAVE'));break;}}for(const _0x1c0038 of _0xe1d35c){const {group:_0x5ae4a4,type:_0x82083}=this['_splitMarkerName'](_0x1c0038['name']);if('suggestion'===_0x5ae4a4){_0x1816f8['announce'](this['_getMarkerAnnouncementText'](_0x82083,'ENTER',_0x4694d5(_0x2adf40)));break;}}});}['_processAttributeChanges'](_0xfb3a85){if(this['_recordAttributeSuggestions'])return!0x1;const _0x592012=this['editor'],_0x2f794b=_0x592012['model']['document']['differ']['getChanges']();if(0x0==_0x2f794b['length'])return!0x1;const _0x221686=[],_0x4c8d1c=_0x2f794b['filter'](_0x592bd8=>'attribute'==_0x592bd8['type']),_0x37a0a6=_0x2f794b['filter'](_0x4590d8=>'insert'==_0x4590d8['type']&&'$text'!=_0x4590d8['name']),_0x4a9c72=_0x2f794b['filter'](_0x191ddc=>'remove'==_0x191ddc['type']&&'$text'!=_0x191ddc['name']);for(const _0x5dfac5 of _0x4c8d1c)_0x221686['push']({'key':_0x5dfac5['attributeKey'],'newValue':_0x5dfac5['attributeNewValue'],'oldValue':_0x5dfac5['attributeOldValue'],'range':Pt(_0x5dfac5['range'],_0x592012['model'])});for(const _0x1d926a of _0x37a0a6){const _0x34b38b=_0x4a9c72['find'](_0x2893ef=>_0x2893ef['position']['isEqual'](_0x1d926a['position']));_0x34b38b&&_0x221686['push']({'key':m,'newValue':_0x1d926a['name'],'oldValue':_0x34b38b['name'],'range':_0x592012['model']['createRangeOn'](_0x1d926a['position']['nodeAfter'])});}return 0x0!=_0x221686['length']&&this['_reduceExistingSuggestions'](_0xfb3a85,_0x221686);}['_processAttributeSuggestions'](_0x29aba1){let _0x4b152a=!0x1;const _0x15b4cf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49e130=>_0x49e130['data']['newRange']&&_0x49e130['name']['startsWith']('suggestion:attribute:'));for(const _0x263fb4 of _0x15b4cf){const {subType:_0x1acb41,id:_0x2b9501}=this['_splitMarkerName'](_0x263fb4['name']),_0x2246a4=_0x1acb41['split']('|')[0x0];for(const _0x658a57 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x658a57['id']!=_0x2b9501&&'attribute'==_0x658a57['type']&&_0x658a57['data']&&_0x658a57['data']['key']==_0x2246a4&&_0x658a57['getFirstRange']()['isIntersecting'](_0x263fb4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x658a57,_0x263fb4['data']['newRange'],_0x29aba1),_0x4b152a=!0x0);}return _0x4b152a;}['_recordAttributeChanges'](_0x2f7e94){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2f7e94();}['_isRegisteredAttribute'](_0x18a263){const _0x5f5aac=this['_isBlockAttribute'](_0x18a263),_0x57d0c5=this['_inlineAttributeKeys']['has'](_0x18a263);return _0x5f5aac||_0x57d0c5;}['_reduceExistingSuggestions'](_0x368e7f,_0x3fe6e0){if(0x0==_0x3fe6e0['length'])return!0x1;let _0x17d62a=!0x1;for(const _0x59a1a2 of _0x3fe6e0){const _0x13d39d=this['_findSuggestions'](_0x59a1a2['range'],'attribute')['filter'](_0x1f8297=>!_0x1f8297['meta']['isNextTo'])['map'](_0x564579=>_0x564579['suggestion']),_0x407fd1=_0x3071b6({'newValue':_0x59a1a2['newValue']});_0x13d39d['filter'](_0x1edea7=>{const [_0x570b66,_0x458f3d]=_0x1edea7['subType']['split']('|');return _0x570b66==_0x59a1a2['key']&&_0x458f3d!=_0x407fd1;})['forEach'](_0x5b461d=>{this['_reduceSuggestionAttributeRange'](_0x5b461d,_0x59a1a2['range'],_0x368e7f),_0x17d62a=!0x0;});}return _0x17d62a;}['_reduceSuggestionAttributeRange'](_0xc13d77,_0x1e1d46,_0x256942){const _0x41c20c=_0xc13d77['getFirstRange']()['getDifference'](_0x1e1d46);0x0!==_0x41c20c['length']?0x1!==_0x41c20c['length']?this['_breakSuggestionMarker'](_0xc13d77,_0x1e1d46['start'],_0x1e1d46['end']):this['_setSuggestionRange'](_0xc13d77,_0x41c20c[0x0]):_0x256942['removeMarker'](_0xc13d77['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5f38b5){this['_editor']=_0x5f38b5,this['_model']=_0x5f38b5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4e22fa,_0x161cb6,_0x17bcdf,_0x2d8251,_0x532b65,_0x44a1a6){return new u(this['_model'],{'type':_0x4e22fa,'subType':_0x161cb6,'id':_0x17bcdf,'author':_0x2d8251,'creator':_0x2d8251,'attributes':_0x532b65,'onAttributesChange':_0x44a1a6,'onAccept':(..._0x56b158)=>this['getSuggestionCallback'](_0x4e22fa,_0x161cb6,'accept')(..._0x56b158),'onDiscard':(..._0x16b11c)=>this['getSuggestionCallback'](_0x4e22fa,_0x161cb6,'discard')(..._0x16b11c)});}['registerCustomCallback'](_0x1485e6,_0x4cf856,_0x44b79f,_0xa0c865){const _0x2e1fa6=_0x1485e6+':'+_0x4cf856+':'+_0x44b79f;this['_customCallbacks']['set'](_0x2e1fa6,_0xa0c865);}['getSuggestionCallback'](_0x49a369,_0x471e37,_0x2fc859){const _0x3459c5=_0x49a369+':'+_0x471e37+':'+_0x2fc859;return this['_customCallbacks']['get'](_0x3459c5)||this['_defaultCallbacks']['get'](_0x49a369+':'+_0x2fc859);}['_registerDefaultCallbacks'](){const _0x52c1f8=()=>!0x1,_0x38d3b5=_0x36d8a9=>{_0x36d8a9['sort']((_0x407363,_0x3b14b1)=>_0x407363['start']['isBefore'](_0x3b14b1['start'])?0x1:-0x1),this['_model']['change'](_0xb89436=>{for(const _0x5af583 of _0x36d8a9){let _0x96cec1;_0x96cec1=_0x5af583['end']['isAtEnd']&&_0x5af583['end']['parent']==_0x5af583['start']['nodeAfter']?_0xb89436['createSelection'](_0x5af583['start']['nodeAfter'],'on'):_0xb89436['createSelection'](_0x5af583),this['_model']['deleteContent'](_0x96cec1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1eface=(_0x73e95a,_0xd5b1a0)=>{_0xd5b1a0&&this['_model']['change'](_0x19bfba=>{const {commandName:_0xe45dc4,commandParams:_0x266311=[]}=_0xd5b1a0,_0x332722=_0x73e95a['map'](_0x1bbfd2=>(Vt(_0x1bbfd2)&&(_0x1bbfd2=this['_model']['createRange'](_0x1bbfd2['end'])),_0x1bbfd2))['filter'](_0x37d66c=>'$graveyard'!==_0x37d66c['root']['rootName']);if(_0x332722['length']<0x1)return;const _0x55bc56=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3451e0=>_0x12550f['fromRange'](_0x3451e0));_0x19bfba['setSelection'](_0x332722);for(const _0x522f78 of this['_editor']['commands']['commands']())_0x522f78['refresh']();_0x266311['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe45dc4,..._0x266311);const _0x22c1d5=_0x55bc56['filter'](_0x2f70d7=>'$graveyard'!=_0x2f70d7['root']['rootName']);_0x22c1d5['length']>0x0&&_0x19bfba['setSelection'](_0x22c1d5);for(const _0x28a179 of _0x55bc56)_0x28a179['detach']();});},_0x7b964=(_0xe12772,_0x268bf2)=>0x1==_0xe12772['length']&&0x1==_0x268bf2['length']&&_0xe12772[0x0]['end']['isEqual'](_0x268bf2[0x0]['start']),_0x32b7f1=(_0x3146ea,_0x12cd0f,_0x359d81,_0x263395)=>Ht(_0x3146ea,_0x12cd0f,_0x359d81,_0x263395,this['_model'])?[_0x3146ea,_0x12cd0f]:Ht(_0x12cd0f,_0x3146ea,_0x263395,_0x359d81,this['_model'])?[_0x12cd0f,_0x3146ea]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52c1f8),this['_defaultCallbacks']['set']('insertion:discard',_0x38d3b5),this['_defaultCallbacks']['set']('insertion:join',_0x7b964),this['_defaultCallbacks']['set']('insertion:chain',_0x32b7f1),this['_defaultCallbacks']['set']('deletion:accept',_0x38d3b5),this['_defaultCallbacks']['set']('deletion:discard',_0x52c1f8),this['_defaultCallbacks']['set']('deletion:join',_0x7b964),this['_defaultCallbacks']['set']('deletion:chain',_0x32b7f1),this['_defaultCallbacks']['set']('formatInline:accept',_0x1eface),this['_defaultCallbacks']['set']('formatInline:discard',_0x52c1f8),this['_defaultCallbacks']['set']('formatInline:join',_0x7b964),this['_defaultCallbacks']['set']('formatInline:chain',_0x52c1f8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1eface),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52c1f8),this['_defaultCallbacks']['set']('formatBlock:join',_0x7b964),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52c1f8),this['_defaultCallbacks']['set']('attribute:accept',_0x52c1f8),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a2b8b,_0x55bea8)=>{if(!_0x55bea8)return;const _0x5ccd3f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a2421=>{if(_0x55bea8['key']==m)for(const _0x219272 of _0x2a2b8b){const _0x36cb7e=_0x219272['start']['nodeAfter'],_0x3bdc08=_0x55bea8['oldValue'];_0x2a2421['rename'](_0x36cb7e,_0x3bdc08);}else{if(_0x5ccd3f['_isBlockAttribute'](_0x55bea8['key'])){for(const _0x3694d0 of _0x2a2b8b)void 0x0!==_0x55bea8['oldValue']?_0x2a2421['setAttribute'](_0x55bea8['key'],_0x55bea8['oldValue'],_0x3694d0['start']['nodeAfter']):_0x2a2421['removeAttribute'](_0x55bea8['key'],_0x3694d0['start']['nodeAfter']);}else{for(const _0x49f954 of _0x2a2b8b)_0x55bea8['oldValue']?_0x2a2421['setAttribute'](_0x55bea8['key'],_0x55bea8['oldValue'],_0x49f954):_0x2a2421['removeAttribute'](_0x55bea8['key'],_0x49f954);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7b964);}}function Ot(_0x418451,_0x573e21,_0x54974f){for(const _0x3909bc of _0x573e21['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3909bc['root']==_0x3909bc)return!0x1;if(!_0x54974f['containsItem'](_0x3909bc))return!0x1;if(_0x418451['isObject'](_0x3909bc)||_0x418451['isLimit'](_0x3909bc))return!0x0;}return!0x1;}function Vt(_0x464931){return _0x464931['end']['parent']==_0x464931['start']['nodeAfter']&&_0x464931['end']['isAtStart'];}function Ut(_0x405a7e,_0x5ea03a,_0x190d85,_0x44a3af){const _0x4dda7c=_0x11d3ff=>!_0x11d3ff['item']['is']('$textProxy')&&!_0x44a3af['isObject'](_0x11d3ff['item']),_0x9653d9=_0x405a7e['start']['getLastMatchingPosition'](_0x4dda7c),_0x4786de=_0x405a7e['end']['getLastMatchingPosition'](_0x4dda7c,{'direction':'backward'});return(!_0x405a7e['start']['isEqual'](_0x9653d9)||!_0x405a7e['end']['isEqual'](_0x4786de))&&(_0x9653d9['isBefore'](_0x4786de)?_0x190d85['updateMarker'](_0x5ea03a,{'range':_0x190d85['createRange'](_0x9653d9,_0x4786de)}):_0x190d85['removeMarker'](_0x5ea03a),!0x0);}function Gt(_0x546473){return _0x3071b6(_0x546473);}function Ft(_0x3617a2){const _0x1b90c2=_0x3617a2['start']['nodeAfter'];return _0x1b90c2&&_0x1b90c2['is']('element');}function Pt(_0x1e3d13,_0x4ac942){return null==_0x1e3d13['end']['nodeBefore']&&_0x1e3d13['end']['parent']==_0x1e3d13['start']['nodeAfter']?Lt(_0x1e3d13['start']['nodeAfter'],_0x4ac942):_0x1e3d13;}function Lt(_0x5e7716,_0x457529){const _0x4c813a=_0x457529['schema']['isObject'](_0x5e7716)||_0x457529['schema']['isSelectable'](_0x5e7716);return _0x457529['createRange'](_0x457529['createPositionAt'](_0x5e7716,'before'),_0x4c813a?_0x457529['createPositionAfter'](_0x5e7716):_0x457529['createPositionAt'](_0x5e7716,'end'));}function Ht(_0x117100,_0x37d044,_0x55a7e3,_0x37af99,_0x455b99){if(_0x117100['next'])return!0x1;if(!Jt(_0x117100,_0x37d044))return!0x1;if(_0x55a7e3['end']['isEqual'](_0x37af99['start']))return!0x0;if(_0x117100['type']!=_0x37d044['type'])return!0x1;if(!_0x55a7e3['end']['isTouching'](_0x37af99['start']))return!0x1;const _0x11b82c=_0x455b99['createRange'](_0x55a7e3['end'],_0x37af99['start'])['getWalker']();for(const _0x298d1b of _0x11b82c)if(['elementStart','elementEnd']['includes'](_0x298d1b['type'])&&_0x455b99['schema']['isLimit'](_0x298d1b['item']))return!0x1;return!0x0;}function Jt(_0x578f32,_0x2b7062){if(!_0x578f32['_isDataLoaded']||!_0x2b7062['_isDataLoaded'])return!0x1;const _0xaf6916=new Set(Object['keys'](_0x578f32['attributes'])),_0x136746=new Set(Object['keys'](_0x2b7062['attributes']));if(_0xaf6916['delete']('groupId'),_0x136746['delete']('groupId'),0x0==_0xaf6916['size']&&0x0==_0x136746['size'])return!0x0;if(_0xaf6916['size']!=_0x136746['size'])return!0x1;const _0x1b5356={..._0x578f32['attributes']},_0x4168b7={..._0x2b7062['attributes']};return delete _0x1b5356['groupId'],delete _0x4168b7['groupId'],JSON['stringify'](_0x1b5356)==JSON['stringify'](_0x4168b7);}function qt(_0x103953,_0x202150){const _0x653272=zt(_0x103953['attributes']),_0x47f7d4=zt(_0x202150);if(!_0x103953['_isDataLoaded'])return!0x1;for(const _0x3e2375 of Object['keys'](_0x47f7d4))if(!_0x3b8fd5(_0x653272[_0x3e2375],_0x47f7d4[_0x3e2375]))return!0x1;return!0x0;}function zt(_0x4db5aa){const _0x485c0a=Object['assign']({},_0x4db5aa);return delete _0x485c0a['skipNestingCheck'],delete _0x485c0a['tablePasteChainId'],_0x485c0a;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xbe230(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x56f088,_0x307063,_0x50fa8f,_0x39894c){super(),this['model']=_0x307063,this['view']=_0x50fa8f,this['commentThreadController']=_0x39894c,this['_editor']=_0x56f088,this['_acceptCommand']=_0x56f088['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x56f088['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3c491f,_0x19759a)=>_0x3c491f||_0x19759a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x28704f=>_0x28704f&&this['_editor']['model']['canEditAt'](_0x307063['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x48db32=>_0x48db32&&this['_editor']['model']['canEditAt'](_0x307063['getRanges']())),this['_pendingAction']=null,_0x50fa8f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x50fa8f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x50fa8f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x50fa8f,'change:isDirty',()=>{_0x50fa8f['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 _0x506e7b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x506e7b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1dc03d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x583350,_0x25d018,_0x27ffb3,_0x212345){super(_0x583350),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b52f3(_0x583350,o(_0x583350,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x25d018['authoredAt']),this['bind']('authoredAt')['to'](_0x25d018),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',_0x25d018,'authoredAt',this,'descriptionParts',(_0x4efca8,_0x237b03,_0x5f31c8)=>{const _0x1ef94b=_0x5f31c8['map'](_0x1799cd=>ls(_0x1799cd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4efca8-0x1,_0x25d018['author']['name'],_0x237b03?_0x212345['formatDateTime'](_0x237b03):'',new DOMParser()['parseFromString'](_0x1ef94b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5f40be(),this['focusTracker']=new _0x46e5fe(),this['keystrokes']=new _0x4dafe4(),this['focusCycler']=new _0x43001f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e0c4a=>_0x1e0c4a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x25d018,this['_localUser']=_0x27ffb3,this['_config']=_0x212345,_0x212345['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x570b54(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a4835}=this['_config'];this['commentsListView']=new _0x2a4835(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',_0x5377b4=>_0x5377b4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f779a,_0x426155)=>_0x3f779a||!!_0x426155);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59fd32}=this['_config'],_0x277f4c=new _0x59fd32(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6d76c2=_0x277f4c['commentInputView'];return _0x277f4c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6d76c2,'value',(_0x799486,_0x1a5bf6,_0x8ff3b9)=>!!_0x8ff3b9||_0x799486&&!_0x1a5bf6),_0x6d76c2['on']('submit',(_0x2c2010,_0x58f835)=>{this['fire']('addComment',_0x58f835),_0x6d76c2['editor']['setData']('');}),_0x6d76c2['on']('cancel',()=>this['focus']()),_0x6d76c2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x277f4c;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x40aa3d,_0x52dc23,_0x3b3df0,_0x3ee317){super(_0x40aa3d,_0x52dc23,_0x3b3df0,_0x3ee317),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4367de=>_0x4367de&&_0x4367de[0x0]?_0x4367de[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x300407,_0x13f979)=>{let _0x5a0f1a='';for(const _0x52a96d of _0x300407)_0x5a0f1a+='<p>'+ls(_0x52a96d['content'],_0x52a96d['color'])+'</p>';return _0x13f979?_0x5a0f1a:_0x4b5435(_0x5a0f1a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ee317['SuggestionView'](_0x40aa3d,_0x52dc23,{'formatDateTime':_0x3ee317['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 _0x1be771=this['bindTemplate'],_0x5761b1=[this['suggestionView']];return this['commentsListView']&&_0x5761b1['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5761b1['push'](this['commentThreadInputView']),_0x5761b1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1be771['if']('isActive','ck-suggestion-wrapper--active'),_0x1be771['to']('type',_0x8de3a2=>'ck-suggestion-'+_0x8de3a2),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':_0x1be771['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5761b1};}['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 _0x1dc03d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4ef6cf,_0x4107a4,_0x2e2105){super(_0x4ef6cf),this['_model']=_0x4107a4,this['_config']=_0x2e2105,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4107a4),this['acceptButton']=this['_createButton'](o(_0x4ef6cf,'Accept\x20suggestion'),_0x33afa3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4ef6cf,'Discard\x20suggestion'),_0x33afa3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2ee096(_0x4ef6cf,_0x4107a4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5f40be([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46e5fe(),this['keystrokes']=new _0x4dafe4(),this['focusCycler']=new _0x43001f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f7669=>_0x1f7669['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x318545=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x318545['innerHTML']=this['description'],this['on']('change:description',(_0x57c876,_0x1ac60b,_0x29b747)=>{_0x318545['innerHTML']=_0x29b747;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x43cc5d=this['bindTemplate'],_0x1e8580=[{'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':_0x43cc5d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x43cc5d['to']('authoredAt',_0x293b68=>this['_config']['formatDateTime'](_0x293b68))}]}]},{'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']&&_0x1e8580['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':_0x1e8580}]};}['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'](_0x96d054,_0x48daf1,_0x463ee6,_0x3d16e8,_0x4a5bf0){const _0x18fe31=new _0x26fe1a(this['locale']);return _0x18fe31['set']({'label':_0x96d054,'icon':_0x48daf1,'tooltip':!0x0,'tooltipPosition':_0x4a5bf0}),_0x18fe31['extendTemplate']({'attributes':{'class':_0x463ee6}}),_0x18fe31['on']('execute',()=>{this['fire'](_0x3d16e8,this['_model']['id']);}),_0x18fe31;}['_setupKeyboardNavigation'](){const _0x2fc142=this['element'];this['keystrokes']['listenTo'](_0x2fc142);for(const _0x20f0d8 of this['focusables'])this['focusTracker']['add'](_0x20f0d8['element']),this['keystrokes']['listenTo'](_0x20f0d8['element']);this['keystrokes']['set']('enter',(_0x3ff7e4,_0x4e0cb7)=>{_0x2fc142===_0x3ff7e4['target']&&(this['focusCycler']['focusFirst'](),_0x4e0cb7());}),this['keystrokes']['set']('esc',(_0x3b5c8f,_0xd65c0c)=>{_0x2fc142!==_0x3b5c8f['target']&&(this['focus'](),_0xd65c0c());});}}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 _0x4fe0d7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5a7861,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x39645a){super(_0x39645a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x22956c=this['editor']['config'];_0x22956c['define']('trackChanges.SuggestionThreadView',re),_0x22956c['define']('trackChanges.SuggestionView',ce),_0x22956c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x22956c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x24b6d1,_0x5486a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x303932,_0x23bdc6]of this['_handleControllerBuffer']){const _0x489caa=this['_suggestionToController']['has'](_0x303932);_0x489caa||_0x23bdc6?_0x489caa&&_0x23bdc6&&this['_destroyController'](_0x303932):this['_initializeController'](_0x303932);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x24b6d1,_0x5486a9);}['init'](){const _0xe17746=this['editor'],_0xc2dc62=_0xe17746['plugins']['get']('TrackChangesEditing'),_0x52334a=_0xe17746['plugins']['get']('Annotations'),_0x5bf951=_0xe17746['plugins']['get']('EditorAnnotations'),_0x161e66=_0xe17746['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5bf951['addSourceCollector'](()=>{const _0xd7bbae=[];for(const [_0x36a54e,_0x478d76]of Array['from'](this['_suggestionToController'])){const _0xcf67da=_0x36a54e['getAllAdjacentSuggestions'](),_0x5ec2e4=[];for(const _0x91a1d9 of _0xcf67da){if(!_0x91a1d9['isInContent'])continue;if(_0x91a1d9['isMultiRange']){_0x5ec2e4['push'](..._0x91a1d9['getRanges']());continue;}const _0x564aa3=_0x91a1d9['getFirstRange']();if(_0x5ec2e4['length']>0x0){const _0x1b9d87=_0x5ec2e4[0x0]['getJoined'](_0x564aa3);if(_0x1b9d87){_0x5ec2e4[0x0]=_0x1b9d87;continue;}}_0x5ec2e4['push'](_0x564aa3);}_0xd7bbae['push']([_0x478d76['view'],_0x5ec2e4]);}return _0xd7bbae;}),this['listenTo'](_0xc2dc62,'suggestionLoaded',(_0x3eb69e,_0xe86017)=>{this['listenTo'](_0xe86017,'change:previous',(_0x556bb3,_0x282aef,_0x3d4bae,_0x21e3a7)=>{_0xe86017['isInContent']&&(null==_0x3d4bae?(this['_updateController'](_0x21e3a7['head']),this['_handleSuggestionControllerDelayed'](_0xe86017,!0x1)):(this['_updateController'](_0x3d4bae['head']),null==_0x21e3a7&&this['_handleSuggestionControllerDelayed'](_0xe86017,!0x0)));}),null!==_0xe86017['previous']?this['_updateController'](_0xe86017['head']):this['_handleSuggestionControllerDelayed'](_0xe86017,!0x1);}),this['listenTo'](_0xc2dc62,'suggestionUnloaded',(_0x4721ff,_0x3df74a,_0xb26b0e)=>{this['stopListening'](_0x3df74a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3df74a),this['_suggestionToController']['has'](_0x3df74a)&&this['_destroyController'](_0x3df74a),_0xb26b0e&&this['_updateController'](_0xb26b0e['head']);}),this['listenTo'](_0xc2dc62,'suggestionChanged',(_0x2cc4a7,_0x5e9e48)=>{this['_updateController'](_0x5e9e48);}),this['listenTo'](_0x52334a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x161e66,'addComment',(_0x56a8c5,{threadId:_0x53ae28,isFromAdapter:_0x29b642})=>{if(_0x29b642||!_0xc2dc62['hasSuggestion'](_0x53ae28))return;const _0x515ca7=_0xc2dc62['getSuggestion'](_0x53ae28);this['_suggestionToController']['get'](_0x515ca7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1a90f7=this['editor']['plugins']['get']('Annotations'),_0x5f17b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a6dc8=Array['from'](_0x1a90f7['activeAnnotations'],_0x4bfeca=>_0x4bfeca['innerView'])['filter'](_0x26b77e=>this['_viewToController']['has'](_0x26b77e)),_0x43096a=[];for(const _0x199bea of _0x4a6dc8){const _0x3dbf5c=this['_viewToController']['get'](_0x199bea)['model']['getAllAdjacentSuggestions']();_0x43096a['push'](..._0x3dbf5c['reduce']((_0x4ec221,_0x5d773d)=>[..._0x4ec221,..._0x5d773d['getMarkerNames']()],[]));}_0x5f17b2['activeMarkers']=_0x43096a;}['_addUIComponentsToFactory'](){const _0x508865=this['editor'],_0x377ddd=_0x508865['locale'],_0x3a7bfd=o(_0x377ddd,'Track\x20changes'),_0x4e671e=new Wt([{'type':'switchbutton','model':new _0x487cc0({'withText':!0x0,'isToggleable':!0x0,'label':_0x3a7bfd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x487cc0({'withText':!0x0,'label':o(_0x377ddd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x53f365 of _0x4e671e)if(me(_0x53f365)){const _0x490f74=_0x508865['commands']['get'](_0x53f365['model']['commandName']);_0x53f365['model']['bind']('isOn','isEnabled')['to'](_0x490f74,'value','isEnabled');}_0x508865['ui']['componentFactory']['add']('trackChanges',_0x40da92=>this['_createToolbarButton'](_0x40da92,_0x4e671e,_0x3a7bfd)),_0x508865['ui']['componentFactory']['add']('menuBar:trackChanges',_0x437c97=>this['_createMenuBarMenu'](_0x437c97,_0x4e671e,_0x3a7bfd));}['_createToolbarButton'](_0x40e5ce,_0x562fa4,_0x4d7beb){const _0x42d7cd=Qt(_0x40e5ce,_0x61c38d),_0x432b6d=this['editor']['commands']['get']('trackChanges');_0x42d7cd['buttonView']['set']({'tooltip':_0x4d7beb,'label':_0x4d7beb,'icon':he}),_0x42d7cd['buttonView']['bind']('isOn')['to'](_0x432b6d,'value'),_0x42d7cd['buttonView']['on']('execute',()=>{_0x432b6d['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x42d7cd,_0x562fa4,{'role':'menu'});const _0x493333=[];for(const _0x5d4e57 of _0x562fa4)me(_0x5d4e57)&&_0x493333['push'](this['editor']['commands']['get'](_0x5d4e57['model']['commandName']));const _0x553f69=_0x42d7cd['buttonView'];return _0x553f69['actionView']['unbind']('isEnabled'),_0x553f69['arrowView']['unbind']('isEnabled'),_0x553f69['actionView']['bind']('isEnabled')['to'](_0x432b6d,'isEnabled'),_0x553f69['arrowView']['bind']('isEnabled')['toMany'](_0x493333,'isEnabled',(..._0x4b29bb)=>_0x4b29bb['some'](_0x249491=>_0x249491)),_0x42d7cd['on']('execute',_0x1e2151=>{this['editor']['execute'](_0x1e2151['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42d7cd;}['_createMenuBarMenu'](_0x5f45ea,_0x35394b,_0x3a0a7e){const _0x300a85=new Yt(_0x5f45ea),_0x18c736=this['editor']['commands']['get']('trackChanges');_0x300a85['buttonView']['set']({'label':_0x3a0a7e,'icon':he});const _0x5dbd7e=new Zt(_0x5f45ea);for(const _0x2ecd7b of _0x35394b){if('separator'==_0x2ecd7b['type']){_0x5dbd7e['items']['add'](new Xt(_0x5f45ea));continue;}const _0x1a983c=new te(_0x5f45ea,_0x300a85),_0xf5a8c3=new _0x1979e5(_0x5f45ea),_0x57b6d6=_0x2ecd7b['model'];_0xf5a8c3['bind'](...Object['keys'](_0x57b6d6))['to'](_0x57b6d6),_0xf5a8c3['delegate']('execute')['to'](_0x300a85),_0xf5a8c3['on']('execute',()=>{this['editor']['execute'](_0x57b6d6['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a983c['children']['add'](_0xf5a8c3),_0x5dbd7e['items']['add'](_0x1a983c);}return _0x300a85['bind']('isEnabled')['to'](_0x18c736,'isEnabled'),_0x300a85['panelView']['children']['add'](_0x5dbd7e),_0x300a85;}['_initializeController'](_0x4dd8dc){const _0x5f7246=this['editor'],_0x42281f=_0x5f7246['config'],_0x44c993=_0x5f7246['plugins']['get']('Annotations'),_0x59e40d=_0x5f7246['plugins']['get']('CommentsRepository'),_0x353de8=_0x5f7246['plugins']['get']('EditorAnnotations'),_0xc22d54=_0x5f7246['plugins']['get'](_0x5a7861)['me'],_0x2ae705=_0x42281f['get']('trackChanges')['SuggestionThreadView'],_0x35ecb5=_0x42281f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x12fffc,CommentThreadInputView:_0x3d6143}=_0x5f7246['plugins']['get']('CommentsUI');let _0xa31319,_0x3b7e07,_0x1488e3;this['_annotationViews']['has'](_0x4dd8dc['id'])?(_0x3b7e07=this['_annotationViews']['get'](_0x4dd8dc['id']),_0xa31319=_0x3b7e07['mainView']):(_0xa31319=new _0x2ae705(_0x5f7246['locale'],_0x4dd8dc,_0xc22d54,{'disableComments':this['_disableComments'],'editorConfig':_0x42281f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x42281f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x42281f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42281f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b76c3(_0x42281f['get']('locale')),'CommentView':_0x42281f['get']('comments')['CommentView'],'CommentsListView':_0x12fffc,'CommentThreadInputView':_0x3d6143,'SuggestionView':_0x35ecb5}),_0xa31319['suggestionView']['acceptButton']['on']('execute',()=>{_0x5f7246['editing']['view']['focus']();}),_0xa31319['suggestionView']['discardButton']['on']('execute',()=>{_0x5f7246['editing']['view']['focus']();}),_0x3b7e07=_0x44c993['createAnnotationView'](this['editor']['locale'],_0xa31319),_0x3b7e07['bind']('isDirty')['to'](_0xa31319,'isDirty'),_0x3b7e07['bind']('length')['to'](_0xa31319),_0x3b7e07['bind']('type')['to'](_0xa31319,'type',_0x12a657=>'suggestion-'+_0x12a657),_0xa31319['on']('escape',()=>{_0x1488e3['fire']('escape');}),this['_annotationViews']['set'](_0x4dd8dc['id'],_0x3b7e07));const _0x213ff4=_0x59e40d['createCommentThreadController'](_0x4dd8dc['commentThread'],_0xa31319),_0x35ce1c=new ae(_0x5f7246,_0x4dd8dc,_0xa31319,_0x213ff4),_0x842f70=_0x4dd8dc['getAllAdjacentSuggestions']()['filter'](_0x55e0a5=>_0x55e0a5['isInContent']);_0xa31319['descriptionParts']=_0x5f7246['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x842f70),this['_suggestionToController']['set'](_0x4dd8dc,_0x35ce1c),this['_viewToController']['set'](_0xa31319,_0x35ce1c),_0x1488e3=_0x44c993['createAnnotation']({'view':_0x3b7e07,'target':()=>{const _0x38c4e9=[],_0x31de79=_0x4dd8dc['getAllAdjacentSuggestions']()['filter'](_0x458473=>_0x458473['isInContent']);for(const _0x103fa8 of _0x31de79)_0x38c4e9['push'](..._0x103fa8['getMarkers']());return _0x5b505b(_0x5f7246['editing'],_0x38c4e9);},'type':()=>'suggestion-'+_0x35ce1c['view']['type']}),_0x59e40d['_bindAnnotationToEditors'](_0xa31319,_0x1488e3),_0x44c993['add'](_0x1488e3),_0x353de8['registerAnnotation'](_0x1488e3);}['_destroyController'](_0x479505){const _0x35a03a=this['editor']['plugins']['get']('CommentsRepository'),_0x47713d=this['editor']['plugins']['get']('Annotations'),_0x2e6a14=this['_suggestionToController']['get'](_0x479505),_0x4fee81=_0x2e6a14['view'],_0x2532cb=_0x47713d['getByInnerView'](_0x4fee81);_0x35a03a['_unbindEditors'](_0x4fee81),_0x2532cb&&_0x47713d['remove'](_0x2532cb),this['_suggestionToController']['delete'](_0x479505),this['_viewToController']['delete'](_0x4fee81),_0x2e6a14['destroy']();}['_updateController'](_0x289732){if(!_0x289732['isInContent']||!this['_suggestionToController']['has'](_0x289732))return;const _0x14cd90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f8bfe=this['_suggestionToController']['get'](_0x289732),_0x17da66=_0x289732['getAllAdjacentSuggestions']();_0x3f8bfe['view']['descriptionParts']=_0x14cd90['descriptionFactory']['getDescriptions'](_0x17da66);}['destroy'](){for(const _0x3a6f0f of this['_suggestionToController']['keys']())this['_destroyController'](_0x3a6f0f);for(const _0x289eb9 of this['_annotationViews']['values']())_0x289eb9['mainView']['destroy']();super['destroy']();}}function me(_0x218ccf){return'model'in _0x218ccf;}class k extends _0x4fe0d7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x237c57){this['editor']['plugins']['get'](p)['adapter']=_0x237c57;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x42dc47){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x42dc47);}['getSuggestions']({skipNotAttached:_0x3c4d2c=!0x1,toJSON:_0x3de9fe=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3c4d2c,'toJSON':_0x3de9fe});}['getSuggestion'](_0x200af2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x200af2);}}const T=['Pagination'];class P extends _0x4fe0d7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x236ce5=this['editor'];if(_0x236ce5['config']['define']('trackChangesData.editorCreator',_0x3a1284=>{const _0x340e7d=_0x236ce5['model']['document']['getRootNames']()['reduce']((_0x1a93c6,_0x2953b0)=>(_0x1a93c6[_0x2953b0]='',_0x1a93c6),{});return _0x236ce5['constructor']['create'](_0x340e7d,_0x3a1284);}),'function'!=typeof _0x236ce5['config']['get']('trackChangesData')['editorCreator'])throw new _0x25e072('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2940ef){return N(this['editor'],!0x0,_0x2940ef);}['getDataWithDiscardedSuggestions'](_0x3d5ccd){return N(this['editor'],!0x1,_0x3d5ccd);}}class D extends _0x4fe0d7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x176f97){super(_0x176f97),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(_0x2a7c85){return void 0x0!==_0x2a7c85['getRootsAttributes'];}async function N(_0xee626e,_0x5050ab,_0x495e26){const _0x32e4fb=_0x2787d6(_0xee626e,T);_0x32e4fb['plugins']['push'](p,D),_0x32e4fb['rootsAttributes']=v(_0xee626e)?_0xee626e['getRootsAttributes']():void 0x0;const _0x6f5f8f=document['createDocumentFragment'](),_0x46b8eb=_0xee626e['config']['get']('trackChangesData')['editorCreator'],_0x56939a=await _0x46b8eb(_0x32e4fb,()=>function(_0x2f287a){const _0x3b2385=document['createElement']('div');return _0x2f287a['appendChild'](_0x3b2385),_0x3b2385;}(_0x6f5f8f));!function(_0x4b077a,_0x21d716){const _0x1e8703=_0x4b077a['model']['document']['getRootNames']()['reduce']((_0x369f51,_0x1ca92a)=>(_0x369f51[_0x1ca92a]=_0x4b077a['data']['get']({'rootName':_0x1ca92a}),_0x369f51),{}),_0x2cbebe=_0x4b077a['plugins']['get']('Users')['users']['map'](_0x555c5b=>({'id':_0x555c5b['id'],'name':_0x555c5b['name']})),_0x150af5=_0x4b077a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d9552=_0x4b077a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39c00b=_0x21d716['plugins']['get']('Users'),_0x11c02d=_0x21d716['plugins']['get']('TrackChangesEditing'),_0x961d=_0x21d716['plugins']['get']('CommentsRepository');for(const _0x49d100 of _0x961d['getCommentThreads']())_0x49d100['remove']();for(const _0x536e1d of _0x2cbebe)_0x39c00b['getUser'](_0x536e1d['id'])||_0x39c00b['addUser'](_0x536e1d);_0x39c00b['me']||_0x39c00b['useAnonymousUser']();for(const _0x4eac7e of _0x4d9552)_0x961d['addCommentThread'](_0x4eac7e);for(const _0x28735f of _0x150af5)_0x11c02d['addSuggestionData'](_0x28735f);_0x21d716['data']['set'](_0x1e8703);}(_0xee626e,_0x56939a),_0x56939a['execute'](_0x5050ab?'acceptAllSuggestions':'discardAllSuggestions');const _0x1503e9=v(_0x56939a)?_0x56939a['getFullData'](_0x495e26):_0x56939a['data']['get'](_0x495e26);return await _0x56939a['destroy'](),_0x1503e9;}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 _0x2c5c19,PendingActions as _0x57078c,icons as _0xaf674b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x9a3fdb,ObservableMixin as _0x3f2b83,uid as _0x29fcde,insertToPriorityArray as _0x4a6462,priorities as _0x50e18b,logWarning as _0x3a746c,getEnvKeystrokeText as _0x4f3ce6,FocusTracker as _0x56aa08,KeystrokeHandler as _0x48021c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x29c79a,View as _0x5b3110,ViewCollection as _0x145090,FocusCycler as _0x4efc4e,ViewModel as _0x19c383,createDropdown as Qt,SplitButtonView as _0x3daace,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x630cb8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4cd5f1,hashObject as _0x3daa0e,surroundingMarkersDetector as _0xf3151d,FOCUS_ANNOTATION_KEYSTROKE as _0x38482b,AriaDescriptionView as _0x5670e0,setupThreadKeyboardNavigation as _0x3dff20,trimHtml as _0x3a4fa0,UserView as _0x3e3200,LateFocusButtonView as _0x245dc3,getDateTimeFormatter as _0x5785ed,getAllMarkersDomElementsSorted as _0x166211,sanitizeEditorConfig as _0x521e7a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3a972e,LiveRange as _0x484e63,LivePosition as _0x449586}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x465477,toWidget as _0x1e0dd9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3bd95b,set as _0x2edd60,isEqual as _0x29fa87,unset as _0x2aef4b,omit as Tt}from'lodash-es';import{Delete as _0x24ccc9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2a4c8b,ShiftEnter as _0x4f1e0f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x142a6f,_0x32a040){super(_0x142a6f),this['_enabledCommands']=_0x32a040,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 _0x1448d8 of this['editor']['commands']['commands']())_0x1448d8['affectsData']&&!this['_enabledCommands']['has'](_0x1448d8)&&_0x1448d8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x366bf3 of this['editor']['commands']['commands']())_0x366bf3['affectsData']&&!this['_enabledCommands']['has'](_0x366bf3)&&_0x366bf3['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0xcd3fab,_0x3bc2b7){super(_0xcd3fab),this['_suggestions']=_0x3bc2b7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x220cee){const _0x1ae41b=this['_suggestions']['get'](_0x220cee);if(!_0x1ae41b)throw new _0x9a3fdb('track-changes-accept-suggestion-not-found',this);const _0x5af356=_0x1ae41b['getRanges']();this['editor']['model']['canEditAt'](_0x5af356)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1ae41b);}}class R extends ts{['_suggestions'];constructor(_0x4118cd,_0x46af3e){super(_0x4118cd),this['_suggestions']=_0x46af3e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5df3e7){const _0x513f59=this['_suggestions']['get'](_0x5df3e7);if(!_0x513f59)throw new _0x9a3fdb('track-changes-discard-suggestion-not-found',this);const _0x1bfd9a=_0x513f59['getRanges']();this['editor']['model']['canEditAt'](_0x1bfd9a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x513f59);}}function ls(_0x85ad5a,_0x2cc93c){let _0x151d4d='';return _0x151d4d+=_0x85ad5a['split']('*')['map']((_0x20741d,_0x54f3a0)=>_0x54f3a0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x20741d)+'</span>':nn(_0x20741d))['join'](''),_0x2cc93c&&(_0x151d4d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2cc93c['value']+'\x22\x20title=\x22'+_0x2cc93c['title']+'\x22></span>'),_0x151d4d;}function nn(_0x3c3cd7){const _0x549469=document['createElement']('span');return _0x549469['innerText']=_0x3c3cd7,_0x549469['innerHTML'];}function ss(_0x111e5d){return _0x111e5d['sort']((_0xb9757,_0x1e425d)=>'deletion'==_0xb9757['type']&&'deletion'!=_0x1e425d['type']?-0x1:'deletion'!=_0xb9757['type']&&'deletion'==_0x1e425d['type']?0x1:0x0);}function to(_0x22cbde,_0x193c88){let _0x1c66b1,_0x57407f=0x0;const _0x2084b6=[],_0x127841=_0x193c88['schema'];for(;_0x57407f<_0x22cbde['length'];){const _0x3bfb3d=_0x22cbde[_0x57407f],_0x33e13b=_0x22cbde[_0x57407f+0x1];_0x1c66b1||(_0x1c66b1=_0x193c88['createPositionBefore'](_0x3bfb3d)),on(_0x193c88,_0x3bfb3d,_0x33e13b)||(_0x2084b6['push'](_0x193c88['createRange'](_0x1c66b1,_0x127841['isObject'](_0x3bfb3d)?_0x193c88['createPositionAfter'](_0x3bfb3d):_0x193c88['createPositionAt'](_0x3bfb3d,'end'))),_0x1c66b1=null),_0x57407f++;}return _0x2084b6;}function on(_0xab8504,_0xc6290b,_0x4a5039){if(!_0x4a5039)return!0x1;const _0x1d9cb7=_0xab8504['createPositionAfter'](_0xc6290b),_0x252fb1=_0xab8504['createPositionBefore'](_0x4a5039);return _0x1d9cb7['isTouching'](_0x252fb1);}function rs(_0x5ed477,_0x125bf1,_0x40d863){for(;_0x40d863['length'];){const _0xa3716f=_0x40d863['splice'](0x0,0x64);_0x5ed477['change'](()=>{for(const _0x40e6c0 of _0xa3716f)_0x40e6c0['isInContent']&&_0x125bf1['execute'](_0x40e6c0['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2729ee,_0x11e2db,_0x411ce7){super(_0x2729ee),this['_command']=_0x11e2db,this['_suggestions']=_0x411ce7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5884c0=Array['from'](this['_suggestions']['values']())['some'](_0x59ca41=>_0x59ca41['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5884c0;}['execute'](){const _0x7555ae=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3f622e of _0x7555ae){const _0x245077=_0x3f622e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x245077))return;}rs(this['editor']['model'],this['_command'],_0x7555ae);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x34ea4f,_0x1feba6,_0xdefc6){super(_0x34ea4f),this['_command']=_0x1feba6,this['_suggestions']=_0xdefc6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x145e00=this['editor']['model']['document']['selection'],_0x5d2772=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e6565,_0x5a1ae9){const _0xc185f5=Array['from'](_0x1e6565['getRanges']()),_0x1b5bf7=new Set();for(const _0x23a809 of _0x5a1ae9)if(_0x23a809['isInContent']){for(const _0x4e066c of _0xc185f5)for(const _0x121286 of _0x23a809['getRanges']())(_0x4e066c['isIntersecting'](_0x121286)||_0x1e6565['isCollapsed']&&!_0x23a809['isMultiRange']&&_0x23a809['next']&&_0x121286['end']['isTouching'](_0x4e066c['start']))&&_0x1b5bf7['add'](_0x23a809);}return _0x1b5bf7;}(_0x145e00,_0x5d2772),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4cfb22=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5510b6 of _0x4cfb22){const _0x29dee9=_0x5510b6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x29dee9))return;}rs(this['editor']['model'],this['_command'],_0x4cfb22);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3f2b83(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3e2665,_0x3dcef3){super(),this['id']=_0x3dcef3['id'],this['type']=_0x3dcef3['type'],this['subType']=_0x3dcef3['subType']||null,this['author']=_0x3dcef3['author'],this['creator']=_0x3dcef3['creator']||_0x3dcef3['author'],this['isExternal']=Boolean(_0x3dcef3['attributes']&&_0x3dcef3['attributes']['@external']),this['data']=null,this['_model']=_0x3e2665,this['_onAccept']=_0x3dcef3['onAccept'],this['_onDiscard']=_0x3dcef3['onDiscard'],this['_onAttributesChange']=_0x3dcef3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3dcef3['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 _0x28d072=this;for(;_0x28d072['previous'];)_0x28d072=_0x28d072['previous'];return _0x28d072;}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'](_0x410c6f){this['_markerNames']['add'](_0x410c6f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c9b3c=>this['_model']['markers']['get'](_0x3c9b3c))['filter'](_0x47a01a=>_0x47a01a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x25b81a=>{for(const _0x46c6dd of this['getMarkers']())_0x25b81a['removeMarker'](_0x46c6dd);}),this['_markerNames']['clear']();}['removeMarker'](_0x13527b){this['_model']['change'](_0x52b8bd=>{_0x52b8bd['removeMarker'](_0x13527b);}),this['_markerNames']['delete'](_0x13527b);}['addRange'](_0x585693){const _0x3a411a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3a411a),this['_model']['change'](_0x48f74e=>{_0x48f74e['addMarker'](_0x3a411a,{'range':_0x585693,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c1e50){for(const _0x40a4f4 of this['getRanges']())if(_0x40a4f4['isIntersecting'](_0x5c1e50))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x282b4c=>_0x282b4c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2384e1,_0xbbec1f)=>[..._0x2384e1,..._0xbbec1f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xb0eb97=this['getRanges']();if(0x1!=_0xb0eb97['length'])return null;const _0x441309=_0xb0eb97[0x0],_0x411d37=_0x441309['start']['nodeAfter'],_0x2be2ea=_0x441309['end']['nodeBefore'];return _0x411d37 instanceof _0x3a972e?_0x411d37!=_0x2be2ea?null:_0x411d37: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 _0x1a3a24=[];let _0x15e275=this['head'];for(;_0x15e275;)_0x1a3a24['push'](_0x15e275),_0x15e275=_0x15e275['next'];return _0x1a3a24;}['setAttribute'](_0x1162b0,_0x1ede26){const _0x498c1d=_0x3bd95b(this['attributes']);_0x2edd60(_0x498c1d,_0x1162b0,_0x1ede26),_0x29fa87(_0x498c1d,this['attributes'])||(this['attributes']=_0x498c1d,this['_onAttributesChange'](_0x498c1d));}['removeAttribute'](_0x5d5111){const _0x418058=_0x3bd95b(this['attributes']);_0x2aef4b(_0x418058,_0x5d5111),_0x29fa87(_0x418058,this['attributes'])||(this['attributes']=_0x418058,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 _0x29fcde()['substr'](0x1,0x5);}}function o(_0x1ba094,_0x4ad438,_0xcd3094){const t=_0x1ba094['t'];switch(_0x4ad438){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',_0xcd3094);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xcd3094);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xcd3094);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xcd3094);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xcd3094);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',_0xcd3094);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xcd3094);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',_0xcd3094);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xcd3094);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xcd3094);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xcd3094);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xcd3094);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xcd3094);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xcd3094);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xcd3094);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xcd3094);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xcd3094);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xcd3094);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xcd3094);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xcd3094);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xcd3094);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xcd3094);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xcd3094);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'},_0xcd3094);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xcd3094);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xcd3094);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xcd3094);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xcd3094);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xcd3094);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'},_0xcd3094);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xcd3094);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xcd3094);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xcd3094);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xcd3094);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'},_0xcd3094);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xcd3094);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'},_0xcd3094);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'},_0xcd3094);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xcd3094);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'},_0xcd3094);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xcd3094);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'},_0xcd3094);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xcd3094);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xcd3094);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'},_0xcd3094);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'},_0xcd3094);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'},_0xcd3094);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xcd3094);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'},_0xcd3094);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'},_0xcd3094);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'},_0xcd3094);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ad438;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xe66f9c,_0x583c79){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xe66f9c,this['_locale']=_0x583c79;}['getDescriptions'](_0x12f5f0){const _0xd83d94=[],_0x1c387e=new Set(),_0x3faaa1=new Set();for(let _0x4ad551=0x0;_0x4ad551<_0x12f5f0['length'];_0x4ad551++){const _0x2f6898=_0x12f5f0[_0x4ad551];if(!_0x2f6898['isInContent'])continue;const _0x4f708a=this['_handleCustomCallbackDescription'](_0x2f6898);if(_0x4f708a){if(null!=_0x2f6898['subType']){if(_0x1c387e['has'](_0x2f6898['subType']))continue;_0x1c387e['add'](_0x2f6898['subType']);}_0xd83d94['push'](_0x4f708a);}else{if('attribute'!=_0x2f6898['type'])'insertion'!=_0x2f6898['type']&&'deletion'!=_0x2f6898['type']||this['_handleInsertRemoveSuggestionDescription'](_0xd83d94,_0x2f6898,_0x12f5f0[_0x4ad551+0x1]);else{const _0x34b3e6=_0x2f6898['data']['key'];if(_0x3faaa1['has'](_0x34b3e6))continue;_0x3faaa1['add'](_0x2f6898['data']['key']),_0x34b3e6==m?this['_handleRenameSuggestionDescription'](_0xd83d94,_0x2f6898):this['_handleAttributeSuggestionDescription'](_0xd83d94,_0x2f6898);}}}return this['_resolveDescriptionItems'](_0xd83d94);}['registerDescriptionCallback'](_0x285e8a){this['_customCallbacks']['push'](_0x285e8a);}['registerElementLabel'](_0x4b1e7b,_0x1dd93d,_0x5ec892=_0x50e18b['normal']){'function'==typeof _0x4b1e7b?_0x4a6462(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b1e7b,'label':_0x1dd93d,'priority':_0x5ec892}):this['_itemLabels']['set'](_0x4b1e7b,_0x1dd93d);}['registerAttributeLabel'](_0x1fa9b8,_0x2eb34f){this['_attributeLabels']['set'](_0x1fa9b8,_0x2eb34f);}['getItemLabel'](_0x3931b8,_0x28afd7=0x1){let _0x495601;for(const _0x3284dc of this['_itemLabelsCallbacks'])if(_0x3284dc['matchingCallback'](_0x3931b8)){_0x495601=_0x3284dc['label'];break;}return _0x495601||(_0x495601=this['_itemLabels']['get'](_0x3931b8['name'])),_0x495601?_0x495601(_0x28afd7):0x1!==_0x28afd7?_0x28afd7+'\x20'+_0x3931b8['name']+'s':''+_0x3931b8['name'];}['_addDescriptionItems'](_0x394e9b,_0x54f636){const _0x15437e=_0x54f636['getFirstRange']()['getWalker'](),_0x3d71cc='insertion'==_0x54f636['type']?'add':'remove';for(const _0x4422d3 of _0x15437e){const _0x18acf1=_0x4422d3['item'],_0x902c3d=_0x394e9b[_0x394e9b['length']-0x1];if(_0x18acf1['is']('$textProxy'))_0x902c3d&&_0x902c3d['type']['indexOf']('Container')>-0x1&&_0x394e9b['pop'](),_0x902c3d&&'text'==_0x902c3d['type']?_0x902c3d[_0x3d71cc]+=_0x18acf1['data']:_0x394e9b['push']({'type':'text','add':'add'==_0x3d71cc?_0x18acf1['data']:'','remove':'remove'==_0x3d71cc?_0x18acf1['data']:''});else{if(this['_schema']['isObject'](_0x18acf1)){const _0x39cf0c=_0x18acf1;if(_0x902c3d&&_0x902c3d['type']['indexOf']('Container')>-0x1&&_0x394e9b['pop'](),'elementEnd'==_0x4422d3['type'])continue;_0x902c3d&&_0x902c3d['type']==_0x3d71cc+'Object'&&_0x902c3d['element']['name']==_0x39cf0c['name']?_0x902c3d['quantity']++:_0x394e9b['push']({'type':_0x3d71cc+'Object','element':_0x39cf0c,'quantity':0x1}),_0x15437e['skip'](_0x562a24=>!('elementEnd'==_0x562a24['type']&&_0x562a24['item']==_0x18acf1));}else{if(this['_schema']['checkChild'](_0x18acf1,'$text')||_0x18acf1['is']('element','softBreak')){const _0x34698f=_0x18acf1;if('add'==_0x3d71cc&&'elementStart'==_0x4422d3['type']||'remove'==_0x3d71cc&&'elementEnd'==_0x4422d3['type'])continue;if(_0x902c3d&&-0x1==_0x902c3d['type']['indexOf']('Container')){'text'==_0x902c3d['type']&&(_0x902c3d[_0x3d71cc]+='\x0a');continue;}let _0x2e5118;if(_0x2e5118='add'==_0x3d71cc?_0x34698f['nextSibling']&&!this['_schema']['isObject'](_0x34698f['nextSibling'])?_0x34698f['nextSibling']:null:_0x34698f['previousSibling']&&!this['_schema']['isObject'](_0x34698f['previousSibling'])?_0x34698f['previousSibling']:null,_0x34698f['isEmpty']||_0x2e5118&&_0x2e5118['isEmpty']){const _0x5d9a3a=_0x2e5118&&_0x2e5118['isEmpty']?_0x2e5118:_0x34698f;_0x902c3d&&_0x902c3d['type']==_0x3d71cc+'EmptyContainer'&&_0x902c3d['element']['name']==_0x5d9a3a['name']?_0x902c3d['quantity']++:_0x394e9b['push']({'type':_0x3d71cc+'EmptyContainer','element':_0x5d9a3a,'quantity':0x1});}else _0x394e9b['push']({'type':_0x3d71cc+'Container','element':_0x34698f});}}}}}['_resolveDescriptionItems'](_0x43342f){const _0x420dca=this['_locale'],_0x2dbffd=[],_0x2192df=[],_0x4a11f3=[];for(const _0x4c82a2 of _0x43342f)switch(_0x4c82a2['type']){case'text':if(_0x4c82a2['add']=_0x4c82a2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c82a2['remove']=_0x4c82a2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c82a2['add']&&''!=_0x4c82a2['remove']){_0x2dbffd['push']({'type':'replace','content':o(_0x420dca,'REPLACE_TEXT',['\x22'+_0x4c82a2['remove']+'\x22','\x22'+_0x4c82a2['add']+'\x22'])});continue;}if(null!=_0x4c82a2['add']['match'](/^ +$/)){_0x2dbffd['push']({'type':'insertion','content':o(_0x420dca,'*Insert:*\x20%0',o(_0x420dca,'ELEMENT_SPACE',_0x4c82a2['add']['length']))});continue;}if(null!=_0x4c82a2['remove']['match'](/^ +$/)){_0x2dbffd['push']({'type':'deletion','content':o(_0x420dca,'*Remove:*\x20%0',o(_0x420dca,'ELEMENT_SPACE',_0x4c82a2['remove']['length']))});continue;}if(''!=_0x4c82a2['add']){_0x2dbffd['push']({'type':'insertion','content':o(_0x420dca,'*Insert:*\x20%0','\x22'+_0x4c82a2['add']+'\x22')});continue;}_0x2dbffd['push']({'type':'deletion','content':o(_0x420dca,'*Remove:*\x20%0','\x22'+_0x4c82a2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dbffd['push']({'type':'insertion','content':o(_0x420dca,'*Insert:*\x20%0',this['getItemLabel'](_0x4c82a2['element'],_0x4c82a2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dbffd['push']({'type':'deletion','content':o(_0x420dca,'*Remove:*\x20%0',this['getItemLabel'](_0x4c82a2['element'],_0x4c82a2['quantity']))});continue;case'addContainer':_0x2dbffd['push']({'type':'insertion','content':o(_0x420dca,'*Split:*\x20%0',this['getItemLabel'](_0x4c82a2['element'],_0x4c82a2['quantity']))});continue;case'removeContainer':_0x2dbffd['push']({'type':'deletion','content':o(_0x420dca,'*Merge:*\x20%0',this['getItemLabel'](_0x4c82a2['element'],_0x4c82a2['quantity']))});continue;case'addFormat':_0x2192df['push'](_0x4c82a2['key']);continue;case'removeFormat':_0x4a11f3['push'](_0x4c82a2['key']);continue;default:_0x2dbffd['push'](_0x4c82a2);}if(_0x2192df['length']){const _0x208986=_0x2192df['map'](_0x3e7239=>this['_attributeLabels']['has'](_0x3e7239)?this['_attributeLabels']['get'](_0x3e7239):_0x3e7239)['join'](',\x20');_0x2dbffd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x208986)});}if(_0x4a11f3['length']){const _0x4e8884=_0x4a11f3['map'](_0x48d12f=>this['_attributeLabels']['has'](_0x48d12f)?this['_attributeLabels']['get'](_0x48d12f):_0x48d12f)['join'](',\x20');_0x2dbffd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e8884)});}return _0x2dbffd;}['_handleCustomCallbackDescription'](_0x400e91){for(const _0x1c2d4c of this['_customCallbacks']){const _0x4702df=_0x1c2d4c(_0x400e91);if(_0x4702df&&'type'in _0x4702df)return _0x4702df;}}['_handleAttributeSuggestionDescription'](_0x15319e,_0x3f32d8){const _0x27e3d6=_0x3f32d8['data'],_0x4cd8db=void 0x0===_0x27e3d6['newValue']?'removeFormat':'addFormat';_0x15319e['push']({'type':_0x4cd8db,'key':_0x27e3d6['key']});}['_handleRenameSuggestionDescription'](_0x2fa2e3,_0x482304){_0x2fa2e3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x482304['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x173498,_0xef7320,_0x4a8d46){if(this['_addDescriptionItems'](_0x173498,_0xef7320),_0x4a8d46&&_0x4a8d46['getFirstRange']()&&!_0xef7320['getFirstRange']()['end']['isEqual'](_0x4a8d46['getFirstRange']()['start'])){const _0x4e3b96=_0x173498[_0x173498['length']-0x1],_0x3426a9='insertion'==_0xef7320['type']?'add':'remove';_0x4e3b96&&'text'==_0x4e3b96['type']&&(_0x4e3b96[_0x3426a9]+='\x0a');}}}class V extends _0x2c5c19{['afterInit'](){const _0x40c3ea=this['editor'],_0x5b7f5d=_0x40c3ea['plugins']['get']('TrackChangesEditing');_0x40c3ea['commands']['get']('showAIAssistant')&&_0x5b7f5d['enableCommand']('showAIAssistant');}}class U extends _0x2c5c19{['afterInit'](){const _0x1438a7=this['editor'],_0x160d79=_0x1438a7['locale'];if(!_0x1438a7['plugins']['has']('AlignmentEditing'))return;const _0x4c0918=_0x1438a7['plugins']['get']('TrackChangesEditing');_0x4c0918['enableDefaultAttributesIntegration']('alignment'),_0x4c0918['registerBlockAttribute']('alignment'),_0x4c0918['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x160d79,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c90a4=this['editor'],_0x53c6a2=_0x3c90a4['locale'];_0x3c90a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa221bd=>{if('formatBlock'!=_0xa221bd['type'])return;const {data:_0x798136}=_0xa221bd;if(_0x798136&&'alignment'==_0x798136['commandName']){const _0x2142c2=_0x798136['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x53c6a2,'*Format:*\x20%0',function(_0x46060b){switch(_0x46060b){case'left':return o(_0x53c6a2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x53c6a2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x53c6a2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x53c6a2,'FORMAT_JUSTIFY_TEXT');}}(_0x2142c2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2c5c19{['afterInit'](){const _0x3db3ce=this['editor'],_0x592fb3=_0x3db3ce['plugins']['get']('TrackChangesEditing'),_0x5b4009=_0x3db3ce['locale'];for(const _0x5b0c59 of ti){if(!_0x3db3ce['plugins']['has'](_0x5b0c59))continue;const _0x3a398a=_0x5b0c59['slice'](0x0,-0x7)['toLowerCase'](),_0x357507='FORMAT_'+_0x3a398a['toUpperCase']();_0x592fb3['enableDefaultAttributesIntegration'](_0x3a398a),_0x592fb3['registerInlineAttribute'](_0x3a398a),_0x592fb3['descriptionFactory']['registerAttributeLabel'](_0x3a398a,o(_0x5b4009,_0x357507));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23cfe5=this['editor'],_0x42cd9b=_0x23cfe5['locale'],_0x191cfa=_0x23cfe5['plugins']['get']('TrackChangesEditing');function _0x5aa3c8(_0x563901,_0x26fe24){_0x191cfa['descriptionFactory']['registerDescriptionCallback'](_0x1c7e18=>{if('formatInline'!=_0x1c7e18['type'])return;const {data:_0x9c97cd}=_0x1c7e18;return _0x9c97cd&&_0x9c97cd['commandName']===_0x563901?_0x9c97cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42cd9b,'*Format:*\x20%0',_0x26fe24)}:{'type':'format','content':o(_0x42cd9b,'*Remove\x20format:*\x20%0',_0x26fe24)}:void 0x0;});}_0x5aa3c8('bold',o(_0x42cd9b,'FORMAT_BOLD')),_0x5aa3c8('italic',o(_0x42cd9b,'FORMAT_ITALIC')),_0x5aa3c8('underline',o(_0x42cd9b,'FORMAT_UNDERLINE')),_0x5aa3c8('code',o(_0x42cd9b,'FORMAT_CODE')),_0x5aa3c8('strikethrough',o(_0x42cd9b,'FORMAT_STRIKETHROUGH')),_0x5aa3c8('subscript',o(_0x42cd9b,'FORMAT_SUBSCRIPT')),_0x5aa3c8('superscript',o(_0x42cd9b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2c5c19{['afterInit'](){const _0xcebcd=this['editor'],_0x576860=_0xcebcd['locale'];if(!_0xcebcd['plugins']['has']('BlockQuoteEditing'))return;const _0x5a0ee9=_0xcebcd['plugins']['get']('TrackChangesEditing'),_0x25bdf8=this['editor']['commands']['get']('blockQuote');_0x5a0ee9['enableCommand']('blockQuote',(_0x4bf815,_0x3e7f62={})=>{const _0x1d1e31=this['editor']['model']['document']['selection'],_0x11c31a=_0x3e7f62&&void 0x0!==_0x3e7f62['forceValue']?_0x3e7f62['forceValue']:!_0x25bdf8['value'];let _0x53b0c1=[];if(_0x11c31a){const _0x322de6=Array['from'](_0x1d1e31['getSelectedBlocks']())['filter'](_0x3e1c2a=>oo(_0x3e1c2a)||function(_0x5f59cf,_0x5b7089){const _0x1ac869=_0x5b7089['checkChild'](_0x5f59cf['parent'],'blockQuote'),_0x2a02fa=_0x5b7089['checkChild'](['$root','blockQuote'],_0x5f59cf);return _0x1ac869&&_0x2a02fa;}(_0x3e1c2a,this['editor']['model']['schema']));_0x53b0c1=to(_0x322de6,_0xcebcd['model']);}else{const _0x51bd11=Array['from'](_0x1d1e31['getSelectedBlocks']())['filter'](_0x281881=>oo(_0x281881));_0x53b0c1=to(_0x51bd11,_0xcebcd['model']);}_0xcebcd['model']['change'](()=>{for(const _0xaa27df of _0x53b0c1)_0x5a0ee9['markBlockFormat'](_0xaa27df,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x11c31a}]});});}),_0x5a0ee9['descriptionFactory']['registerDescriptionCallback'](_0x5a91b0=>{const {data:_0x37baa4}=_0x5a91b0;if(_0x37baa4&&'blockQuote'==_0x37baa4['commandName']){const _0xebcea5=o(_0x576860,'ELEMENT_BLOCK_QUOTE');return _0x37baa4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x576860,'*Set\x20format:*\x20%0',_0xebcea5)}:{'type':'format','content':o(_0x576860,'*Remove\x20format:*\x20%0',_0xebcea5)};}});}}function oo(_0x1dd449){return'blockQuote'==_0x1dd449['parent']['name'];}class L extends _0x2c5c19{['afterInit'](){const _0x31e5f5=this['editor'];_0x31e5f5['plugins']['has']('CaseChange')&&(_0x31e5f5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x31e5f5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x31e5f5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2c5c19{['afterInit'](){const _0x5f48fd=this['editor'];_0x5f48fd['commands']['get']('ckbox')&&_0x5f48fd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2c5c19{['afterInit'](){const _0x3a81cf=this['editor'];if(!_0x3a81cf['plugins']['has']('CodeBlock'))return;const _0x2eb5c4=_0x3a81cf['plugins']['get']('TrackChangesEditing'),_0x1bf4e7=_0x3a81cf['locale'],_0x3fcb61=_0x3a81cf['config']['get']('codeBlock')['languages'],_0xb6c70e=_0x3a81cf['commands']['get']('codeBlock');_0x2eb5c4['enableCommand']('indentCodeBlock'),_0x2eb5c4['enableCommand']('outdentCodeBlock'),_0x2eb5c4['enableCommand']('codeBlock',(_0x104042,_0x4045da={})=>{const _0x28eb74=_0x3a81cf['model'],_0x4c5b9b=_0x3a81cf['model']['document']['selection'],_0x2bd447=_0x4045da&&void 0x0!==_0x4045da['forceValue']?_0x4045da['forceValue']:!_0xb6c70e['value'];let _0x332f0a;_0x4045da['language']||(_0x4045da['language']=_0x3fcb61[0x0]['language']),_0x332f0a=_0x2bd447?Array['from'](_0x4c5b9b['getSelectedBlocks']())['filter'](_0xbed44a=>eo(_0xbed44a)||function(_0x5ce99f,_0x35c5fb){if(_0x5ce99f['is']('rootElement')||_0x35c5fb['isLimit'](_0x5ce99f))return!0x1;return _0x35c5fb['checkChild'](_0x5ce99f['parent'],'codeBlock');}(_0xbed44a,_0x28eb74['schema'])):Array['from'](_0x4c5b9b['getSelectedBlocks']())['filter'](_0x1e96af=>eo(_0x1e96af));const _0x32781f=to(_0x332f0a,_0x28eb74);_0x28eb74['change'](()=>{for(const _0x324205 of _0x32781f)_0x2eb5c4['markBlockFormat'](_0x324205,{'commandName':'codeBlock','commandParams':[{..._0x4045da,'forceValue':_0x2bd447}],'formatGroupId':'blockName'});});}),(_0x2eb5c4['descriptionFactory']['registerElementLabel']('codeBlock',_0x14141f=>o(_0x1bf4e7,'ELEMENT_CODE_BLOCK',_0x14141f)),_0x2eb5c4['descriptionFactory']['registerDescriptionCallback'](_0x8a6b67=>{if('formatBlock'!=_0x8a6b67['type'])return;const _0x3a20e0=_0x1bf4e7['t'],{data:_0xac17a4}=_0x8a6b67;if(!_0xac17a4||'codeBlock'!=_0xac17a4['commandName'])return;const _0x5405d3=_0xac17a4['commandParams'][0x0]['language'],_0x30729d=_0x3a20e0(_0x3fcb61['find'](_0x3b8ca3=>_0x3b8ca3['language']===_0x5405d3)['label'])['toLowerCase']();return _0xac17a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bf4e7,'*Set\x20format:*\x20%0',o(_0x1bf4e7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30729d+')')}:{'type':'format','content':o(_0x1bf4e7,'*Remove\x20format:*\x20%0',o(_0x1bf4e7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x119e9e){return'codeBlock'==_0x119e9e['name'];}class q extends _0x2c5c19{['afterInit'](){const _0x53f539=this['editor'];if(!_0x53f539['plugins']['has']('CommentsEditing'))return;_0x53f539['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11a4f5,_0x38fb65,_0x2a9743){const _0x335b57=[];for(const _0x2f4b2e of _0x38fb65['getItems']())_0x2f4b2e['hasAttribute'](_0x11a4f5)&&_0x335b57['push'](_0x2a9743['createRangeOn'](_0x2f4b2e));return _0x335b57;}function _e(_0x208baf,_0x61b451,{showActiveMarker:_0x4baaaa=!0x0}={}){const _0x4b3be0=_0x208baf['plugins']['get']('TrackChangesEditing');return(_0x3cfe1e,_0x4b86d1,_0x1197b4)=>{if(!_0x1197b4['consumable']['test'](_0x4b86d1['markerRange'],_0x3cfe1e['name']))return;const _0x1f447a=_0x4b86d1['markerRange']['getWalker'](),_0x4813dd=_0x4b86d1['markerRange']['start'],_0x307af1=_0x208baf['model']['schema'];let _0x4cd7f9=null,_0x2c7a3f=null,_0x20f688=!0x1,_0x2c728f=!0x1;for(const _0x1b9d01 of _0x1f447a){const _0x2e9761=_0x1b9d01['item'];_0x20f688=_0x20f688||_0x307af1['isContent'](_0x2e9761);const _0x382b45=_0x1197b4['mapper']['toViewElement'](_0x2e9761);if(_0x382b45&&_0x382b45['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1b9d01['type']&&(_0x307af1['isBlock'](_0x2e9761)&&!_0x307af1['isLimit'](_0x2e9761)&&(_0x2e9761['nextSibling']||_0x4813dd['isAtEnd']?_0x4cd7f9&&_0x4cd7f9['parent']==_0x2e9761||(_0x4cd7f9=_0x2e9761,_0x4b43e0(_0x1b9d01['previousPosition']),_0x2c728f=!0x0):_0x2c7a3f=_0x2c7a3f||_0x1b9d01['previousPosition']));}function _0x4b43e0(_0x5c2461){const {authorId:_0x5e0b38}=_0x4b3be0['_splitMarkerName'](_0x4b86d1['markerName']),_0x43e739=_0x1197b4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x61b451,'data-author-id':_0x5e0b38}),_0x2535af=_0x1197b4['mapper']['toViewPosition'](_0x5c2461);_0x4baaaa&&_0x4b3be0['activeMarkers']['includes'](_0x4b86d1['markerName'])&&_0x1197b4['writer']['addClass']('ck-suggestion-marker--active',_0x43e739),_0x1197b4['writer']['insert'](_0x2535af,_0x43e739),_0x1197b4['mapper']['bindElementToMarker'](_0x43e739,_0x4b86d1['markerName']);}_0x20f688||_0x2c728f||!_0x2c7a3f||_0x4b43e0(_0x2c7a3f);};}class z extends _0x2c5c19{static get['requires'](){return[_0x24ccc9];}['init'](){const _0x232bc0=this['editor'],_0x5c5829=_0x232bc0['plugins']['get']('TrackChangesEditing');_0x5c5829['enableCommand']('delete');const _0x47c1a9=_0x232bc0['commands']['get']('deleteForward');_0x5c5829['enableCommand']('deleteForward',(_0x433420,_0x499a32={})=>{const _0x4e07e7=_0x232bc0['model']['createSelection'](_0x232bc0['model']['document']['selection']);_0x4e07e7['isCollapsed']&&_0x232bc0['model']['modifySelection'](_0x4e07e7,{'direction':'forward','unit':_0x499a32['unit']});const _0x219e6c=_0x4e07e7['getFirstRange'](),_0x5bc210=_0x484e63['fromRange'](_0x219e6c);let _0x82b4d9;_0x433420(_0x499a32),_0x82b4d9='$graveyard'==_0x5bc210['root']['rootName']?_0x232bc0['model']['createRange'](_0x219e6c['start']):_0x232bc0['model']['createRange'](_0x5bc210['start'],_0x5bc210['end']),_0x5bc210['detach'](),_0x232bc0['model']['enqueueChange'](_0x47c1a9['buffer']['batch'],_0x2135ba=>{_0x47c1a9['buffer']['lock'](),_0x2135ba['setSelection'](_0x2135ba['createRange'](_0x82b4d9['end'])),_0x47c1a9['buffer']['unlock']();});}),_0x232bc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x232bc0,'merge'),{'priority':'high'}),_0x232bc0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5032e9,_0x421995,_0x26176d)=>{_0x26176d['options']['showSuggestionHighlights']&&_e(_0x232bc0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5032e9,_0x421995,_0x26176d);},{'priority':'high'}),_0x232bc0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x145a80,_0x5095e1,_0x2146da)=>{const _0x468598=_0x2146da['mapper']['markerNameToElements'](_0x5095e1['markerName']);if(_0x468598){for(const _0x11a82d of _0x468598)_0x11a82d['is']('uiElement')&&(_0x2146da['mapper']['unbindElementFromMarkerName'](_0x11a82d,_0x5095e1['markerName']),_0x2146da['writer']['remove'](_0x11a82d));}},{'priority':'high'});}}class K extends _0x2c5c19{['afterInit'](){const _0x5cabc7=this['editor'];if(!_0x5cabc7['plugins']['has']('ListEditing'))return;const _0x3359fe=_0x5cabc7['locale'],_0x6f6ed7=_0x5cabc7['plugins']['get']('TrackChangesEditing'),_0x2596bc=_0x5cabc7['plugins']['has']('TodoListEditing'),_0x19ee46=!!_0x5cabc7['config']['get']('list.multiBlock');function _0x19471b(_0xb55047){return{'type':'format','content':''+o(_0x3359fe,'*Set\x20format:*\x20%0',_0xb55047)};}function _0xf9c9b4(_0x57982d){return{'type':'format','content':''+o(_0x3359fe,'*Remove\x20format:*\x20%0',_0x57982d)};}_0x6f6ed7['enableDefaultAttributesIntegration']('numberedList'),_0x6f6ed7['enableDefaultAttributesIntegration']('bulletedList'),_0x6f6ed7['enableDefaultAttributesIntegration']('customNumberedList'),_0x6f6ed7['enableDefaultAttributesIntegration']('customBulletedList'),_0x6f6ed7['enableDefaultAttributesIntegration']('indentList'),_0x6f6ed7['enableDefaultAttributesIntegration']('outdentList'),_0x6f6ed7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x6f6ed7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x6f6ed7['registerBlockAttribute']('listItemId'),_0x6f6ed7['registerBlockAttribute']('listType'),_0x6f6ed7['registerBlockAttribute']('listIndent'),_0x19ee46&&(_0x6f6ed7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x6f6ed7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2596bc&&(_0x6f6ed7['enableDefaultAttributesIntegration']('todoList'),_0x6f6ed7['enableDefaultAttributesIntegration']('checkTodoList'),_0x6f6ed7['registerBlockAttribute']('todoListChecked'),_0x6f6ed7['descriptionFactory']['registerDescriptionCallback'](_0x240dc6=>{const {data:_0x25c3f3}=_0x240dc6;if(_0x25c3f3&&'todoListChecked'==_0x25c3f3['key'])return{'type':'format','content':_0x25c3f3['newValue']?o(_0x3359fe,'*Check\x20item*'):o(_0x3359fe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x47c671=>{if(_0x47c671['batch']['isUndo'])return!0x1;let _0x472998=!0x1;const _0x2d1e26=_0x6f6ed7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x528540=>'todoListChecked'===_0x6f6ed7['_getAttributeKey'](_0x528540));for(const _0x435a98 of _0x2d1e26){'todo'!=_0x435a98['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x6f6ed7['_findSuggestions'](_0x435a98['getFirstRange'](),'attribute')['find'](_0x16f147=>'listType'===_0x6f6ed7['_getAttributeKey'](_0x16f147['suggestion']))||(_0x47c671['removeMarker'](_0x435a98['getFirstMarker']()),_0x472998=!0x0));}return _0x472998;})),_0x6f6ed7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3359fe,'FORMAT_INDENT'));const _0xfb268c={'type':'format','content':''};_0x6f6ed7['descriptionFactory']['registerDescriptionCallback'](_0x402439=>{const {data:_0x5b3023}=_0x402439;if(!_0x5b3023||'listType'!=_0x5b3023['key'])return;let _0x43955d=_0x402439['head'];for(;_0x43955d;){if(_0x43955d['data']&&(('listStyle'==_0x43955d['data']['key']||'listMarkerStyle'==_0x43955d['data']['key'])&&(_0x43955d['data']['newValue']&&'default'!=_0x43955d['data']['newValue']||'default'!=_0x43955d['data']['oldValue']&&!_0x5b3023['newValue'])||!_0x19ee46&&_0x43955d['data']['key']==m))return _0xfb268c;_0x43955d=_0x43955d['next'];}if(null==_0x5b3023['newValue'])switch(_0x5b3023['oldValue']){case'bulleted':return _0xf9c9b4(o(_0x3359fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf9c9b4(o(_0x3359fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf9c9b4(o(_0x3359fe,'ELEMENT_TODO_LIST'));}switch(_0x5b3023['newValue']){case'bulleted':return _0x19471b(o(_0x3359fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19471b(o(_0x3359fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19471b(o(_0x3359fe,'ELEMENT_TODO_LIST'));}}),_0x6f6ed7['descriptionFactory']['registerDescriptionCallback'](_0x16d884=>{const {data:_0x53f7f7}=_0x16d884;if(_0x53f7f7&&'listIndent'==_0x53f7f7['key'])return null==_0x53f7f7['newValue']||null==_0x53f7f7['oldValue']&&0x0==_0x53f7f7['newValue']?_0xfb268c:void 0x0;}),_0x6f6ed7['descriptionFactory']['registerDescriptionCallback'](_0x5373a3=>{if('attribute'!=_0x5373a3['type'])return;const {data:_0x21d6ef}=_0x5373a3;if(!_0x21d6ef||'listItemId'!=_0x21d6ef['key'])return;const _0x8cecab=Ee(_0x5373a3);return'newValue'==_0x8cecab?{'type':'format','content':o(_0x3359fe,'*Merge:*\x20list\x20item')}:'oldValue'==_0x8cecab?{'type':'format','content':o(_0x3359fe,'*Split:*\x20list\x20item')}:_0xfb268c;}),_0x5cabc7['model']['document']['registerPostFixer'](_0x550c43=>this['listItemIdFixer'](_0x550c43)),_0x5cabc7['model']['document']['registerPostFixer'](_0x5eb163=>this['noTrackChangesFixer'](_0x5eb163)),_0x5cabc7['model']['document']['on']('change:data',(_0x4831ac,_0x1dd168)=>{if(_0x1dd168['isUndo']||!_0x1dd168['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x430abe){if(_0x430abe['batch']['isUndo']||!_0x430abe['batch']['isLocal'])return!0x1;let _0x38fee1=!0x1;const _0x581729=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38897b=>_0x38897b['data']&&'listItemId'==_0x38897b['data']['key'])['filter'](_0x4e1a24=>_0x4e1a24['data']['newValue']&&_0x4e1a24['data']['oldValue']);for(const _0xfc98ba of _0x581729)Ee(_0xfc98ba)||(_0x430abe['removeMarker'](_0xfc98ba['getFirstMarker']()),_0x38fee1=!0x0);return _0x38fee1;}['noTrackChangesFixer'](_0x212fa5){if(_0x212fa5['batch']['isUndo']||!_0x212fa5['batch']['isLocal'])return!0x1;const _0x425272=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x425272['trackChangesCommand']['value'])return!0x1;let _0x49c131=!0x1;const _0x15c4fc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4e171f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5d5c24=>'attribute'==_0x5d5c24['type'])['filter'](_0x3f5dd5=>_0x15c4fc['includes'](_0x3f5dd5['attributeKey']));if(0x0==_0x4e171f['length'])return _0x49c131;for(const _0x394d39 of _0x4e171f){const _0xa58219=_0x425272['_findSuggestions'](_0x394d39['range'],'attribute')['filter'](_0x241996=>!_0x241996['meta']['isNextTo'])['map'](_0x5c2056=>_0x5c2056['suggestion'])['filter'](_0x485831=>{const _0x52e840=_0x425272['_getAttributeKey'](_0x485831);return _0x15c4fc['includes'](_0x52e840);});if(_0xa58219['length']){for(const _0x205782 of _0xa58219)_0x212fa5['removeMarker'](_0x205782['getFirstMarker']());_0x49c131=!0x0;}}return _0x49c131;}['assureChains'](){const _0x424af7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32ccc9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x578033;const _0x4dd7d5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7faaec=>{if(_0x7faaec['data']['oldRange']||!_0x7faaec['data']['newRange'])return null;if(!_0x7faaec['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x487342}=_0x424af7['_splitMarkerName'](_0x7faaec['name']);if(!_0x424af7['hasSuggestion'](_0x487342))return null;const _0x110c63=_0x424af7['getSuggestion'](_0x487342);return _0x32ccc9['includes'](_0x110c63['data']['key']);})['map'](_0x219c34=>{const {id:_0x43155f}=_0x424af7['_splitMarkerName'](_0x219c34['name']),_0x21224a=_0x424af7['getSuggestion'](_0x43155f);return _0x578033=_0x21224a['attributes']['groupId'],_0x21224a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4dd7d5['size'])return;const _0x367a7b=_0x424af7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e8d6d=>'attribute'==_0x2e8d6d['type']&&_0x2e8d6d['data']&&_0x32ccc9['includes'](_0x2e8d6d['data']['key'])&&_0x2e8d6d['attributes']['groupId']!=_0x578033)['map'](_0x251536=>({'listItem':_0x251536['getFirstRange']()['start']['nodeAfter'],'groupId':_0x251536['attributes']['groupId']})),_0x222b05=new Set();for(const {groupId:_0x3e0919,listItem:_0x34fc5f}of _0x367a7b)_0x4dd7d5['has'](_0x34fc5f)&&_0x222b05['add'](_0x3e0919);for(const _0x5235f2 of _0x424af7['getSuggestions']())_0x222b05['has'](_0x5235f2['attributes']['groupId'])&&_0x5235f2['setAttribute']('groupId',_0x578033);}['_supportLegacySuggestions'](){const _0x3a14bf=this['editor'],_0x570a9f=_0x3a14bf['locale'],_0x56b2bd=_0x3a14bf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x56b2bd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1da040,_0x2eac55){const _0x556748=[];for(let _0xffd9c0 of _0x1da040)_0xffd9c0['start']['nodeAfter']===_0xffd9c0['end']['parent']&&(_0xffd9c0=_0x3a14bf['model']['createRange'](_0x3a14bf['model']['createPositionAt'](_0xffd9c0['start']['nodeAfter'],0x0))),_0x556748['push'](_0xffd9c0);_0x3a14bf['model']['change'](_0xa74e3f=>{const _0x5ee240=_0x3a14bf['model']['document']['selection'],_0x26643e=Array['from'](_0x5ee240['getRanges']())['map'](_0x573abb=>_0x484e63['fromRange'](_0x573abb));_0xa74e3f['setSelection'](_0x556748),_0x3a14bf['commands']['get'](_0x2eac55['commandName'])['refresh'](),_0x2eac55['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3a14bf['execute'](_0x2eac55['commandName'],..._0x2eac55['commandParams']),_0xa74e3f['setSelection'](_0x26643e);for(const _0x26969c of _0x26643e)_0x26969c['detach']();});}),_0x56b2bd['descriptionFactory']['registerElementLabel'](function(_0xb6b0d7){const _0x2e73cd=!_0x3a14bf['model']['schema']['isObject'](_0xb6b0d7),_0xf36cb9=_0xb6b0d7['previousSibling'],_0x4dde46=_0xb6b0d7['nextSibling'],_0x4b8902=_0xb6b0d7['getAttribute']('listItemId'),_0x215615=!_0xf36cb9||_0xf36cb9['getAttribute']('listItemId')!==_0x4b8902,_0x2cae79=!_0x4dde46||_0x4dde46['getAttribute']('listItemId')!==_0x4b8902;return _0x2e73cd&&Boolean(_0x4b8902)&&_0x215615&&_0x2cae79;},_0x4f7950=>o(_0x570a9f,'ELEMENT_LIST_ITEM',_0x4f7950));}['_registerLegacyDescription'](){const _0x4b3eef=this['editor'],_0x3fd1f6=_0x4b3eef['locale'];function _0x8e2364(_0x1d25a6){const _0x1564f1=_0x4b3eef['commands']['get']('bulletedList')['value'],_0x344a02=_0x4b3eef['commands']['get']('numberedList')['value'];return'numberedList'===_0x1d25a6?_0x1564f1:_0x344a02;}_0x4b3eef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x239e5b){if('formatBlock'!=_0x239e5b['type'])return;const {data:_0x151ea8}=_0x239e5b;if(!_0x151ea8)return;let _0x37d15a,_0x712826,_0xbf3f1a,_0xed1edd;switch(_0x151ea8['commandName']){case'bulletedList':_0xbf3f1a=_0x151ea8['commandParams'][0x0]['forceValue'],_0xed1edd=_0x8e2364(_0x151ea8['commandName']),_0x37d15a=_0xbf3f1a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xed1edd&&_0x4b3eef['config']['get']('list.multiBlock')||(_0x37d15a='*Change\x20to:*\x20%0'),_0x712826={'type':'format','content':o(_0x3fd1f6,_0x37d15a,o(_0x3fd1f6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xbf3f1a=_0x151ea8['commandParams'][0x0]['forceValue'],_0xed1edd=_0x8e2364(_0x151ea8['commandName']),_0x37d15a=_0xbf3f1a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xed1edd&&_0x4b3eef['config']['get']('list.multiBlock')||(_0x37d15a='*Change\x20to:*\x20%0'),_0x712826={'type':'format','content':o(_0x3fd1f6,_0x37d15a,o(_0x3fd1f6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x37d15a='*Indent:*\x20%0',_0x712826={'type':'format','content':o(_0x3fd1f6,_0x37d15a,o(_0x3fd1f6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x37d15a=function(_0x52e9e2){const _0x590e5f=_0x52e9e2['getFirstRange']();let _0x44858f=_0x590e5f['start']['nodeAfter'];for(;_0x44858f&&_0x590e5f['containsItem'](_0x44858f);){if(_0x44858f['getAttribute']('listIndent')>0x0)return!0x1;_0x44858f=_0x44858f['nextSibling'];}return!0x0;}(_0x239e5b)?o(_0x3fd1f6,'*Format:*\x20remove\x20from\x20%0',o(_0x3fd1f6,function(_0x1bebff){return'ELEMENT_'+_0x1bebff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x239e5b))):o(_0x3fd1f6,'*Outdent:*\x20%0',o(_0x3fd1f6,'ELEMENT_LIST_ITEM')),_0x712826={'type':'format','content':_0x37d15a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x151ea8['multipleBlocks']&&(_0x37d15a='*Merge:*\x20%0',_0x712826={'type':'deletion','content':o(_0x3fd1f6,_0x37d15a,o(_0x3fd1f6,'ELEMENT_LIST_ITEM'))});}return _0x712826;});}}function Ee(_0x1b925d){let _0x286985=_0x1b925d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x286985;){const _0x21d458=_0x286985['getAttribute']('listItemId');if(!_0x21d458)return!0x1;if(_0x21d458==_0x1b925d['data']['newValue'])return'newValue';if(_0x21d458==_0x1b925d['data']['oldValue'])return'oldValue';_0x286985=_0x286985['previousSibling'];}return!0x1;}class pe extends _0x2c5c19{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5ae395=this['editor']['config']['get']('list.properties'),_0x59676f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ae395['styles']&&(_0x59676f['enableDefaultAttributesIntegration']('listStyle'),_0x59676f['registerBlockAttribute']('listStyle')),_0x5ae395['reversed']&&(_0x59676f['enableDefaultAttributesIntegration']('listReversed'),_0x59676f['registerBlockAttribute']('listReversed')),_0x5ae395['startIndex']&&(_0x59676f['enableDefaultAttributesIntegration']('listStart'),_0x59676f['registerBlockAttribute']('listStart'));const _0x44daa0={'type':'format','content':''};_0x59676f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e67d0=this['editor']['locale'];_0x59676f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5e67d0,'FORMAT_LIST_REVERSED')),_0x59676f['descriptionFactory']['registerDescriptionCallback'](_0x2c642a=>{const {data:_0xe63733}=_0x2c642a;if(_0xe63733&&'listReversed'==_0xe63733['key'])return null==_0xe63733['newValue']||0x0==_0xe63733['newValue']&&null==_0xe63733['oldValue']?_0x44daa0:void 0x0;}),_0x59676f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5e67d0,'FORMAT_LIST_START')),_0x59676f['descriptionFactory']['registerDescriptionCallback'](_0x194fe3=>{const {data:_0xa34eb1}=_0x194fe3;if(_0xa34eb1&&'listStart'==_0xa34eb1['key'])return null==_0xa34eb1['newValue']||0x1==_0xa34eb1['newValue']&&null==_0xa34eb1['oldValue']?_0x44daa0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1e6a9a=>{if(_0x1e6a9a['batch']['isUndo'])return!0x1;let _0x3208a1=!0x1;const _0x20c150=_0x59676f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x230770=>{const _0x1bca2e=_0x59676f['_getAttributeKey'](_0x230770);return'listStart'==_0x1bca2e||'listReversed'==_0x1bca2e;});for(const _0x2ab8f0 of _0x20c150){const _0x2527c1=_0x2ab8f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2527c1||'customNumbered'==_0x2527c1)continue;_0x59676f['_findSuggestions'](_0x2ab8f0['getFirstRange'](),'attribute')['find'](_0x13b872=>'listType'==_0x59676f['_getAttributeKey'](_0x13b872['suggestion']))||(_0x1e6a9a['removeMarker'](_0x2ab8f0['getFirstMarker']()),_0x3208a1=!0x0);}return _0x3208a1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x50a1dd){const _0x29c339=this['editor']['locale'],{data:_0x1ef790}=_0x50a1dd,_0x2ddaba={'type':'format','content':''};if(!_0x1ef790||'listStyle'!=_0x1ef790['key'])return;if(!_0x1ef790['oldValue'])return'default'==_0x1ef790['newValue']?_0x2ddaba:{'type':'format','content':''+o(_0x29c339,'*Set\x20format:*\x20%0',o(_0x29c339,this['_getTranslationKeyForListStyle'](_0x1ef790['newValue'])))};if(!_0x1ef790['newValue']){if('default'==_0x1ef790['oldValue'])return _0x2ddaba;let _0x561381=_0x50a1dd['head'];for(;_0x561381;){if(_0x561381['data']&&'listType'==_0x561381['data']['key']&&_0x561381['data']['newValue'])return _0x2ddaba;_0x561381=_0x561381['next'];}return{'type':'format','content':''+o(_0x29c339,'*Remove\x20format:*\x20%0',o(_0x29c339,this['_getTranslationKeyForListStyle'](_0x1ef790['oldValue'])))};}if('default'!=_0x1ef790['newValue'])return{'type':'format','content':''+o(_0x29c339,'*Set\x20format:*\x20%0',o(_0x29c339,this['_getTranslationKeyForListStyle'](_0x1ef790['newValue'])))};let _0xaa4811=_0x50a1dd['head'];for(;_0xaa4811;){if(_0xaa4811['data']&&'listType'==_0xaa4811['data']['key']&&_0xaa4811['data']['newValue']&&_0xaa4811['data']['oldValue'])return _0x2ddaba;_0xaa4811=_0xaa4811['next'];}return{'type':'format','content':o(_0x29c339,'*Set\x20format:*\x20%0',o(_0x29c339,'ELEMENT_'+_0x50a1dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55abdb=this['editor'],_0x319c8b=_0x55abdb['locale'];_0x55abdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e8336=>{if('formatBlock'!=_0x6e8336['type'])return;const {data:_0x1b6c35}=_0x6e8336;if(!_0x1b6c35)return;let _0x58c8b4,_0x56f9c2;switch(_0x1b6c35['commandName']){case'listStyle':_0x58c8b4='*Change\x20to:*\x20%0',_0x56f9c2={'type':'format','content':o(_0x319c8b,_0x58c8b4,o(_0x319c8b,this['_getTranslationKeyForListStyle'](_0x1b6c35['commandParams'][0x0]['type'])))};break;case'listReversed':_0x58c8b4=_0x1b6c35['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56f9c2={'type':'format','content':o(_0x319c8b,_0x58c8b4)};break;case'listStart':_0x58c8b4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56f9c2={'type':'format','content':o(_0x319c8b,_0x58c8b4,_0x1b6c35['commandParams'][0x0]['startIndex'])};}return _0x56f9c2;});}['_getTranslationKeyForListStyle'](_0x53733b){return'ELEMENT_'+function(_0x22686d){if(ye['includes'](_0x22686d))return'bulleted';if(Se['includes'](_0x22686d))return'numbered';return null;}(_0x53733b)['toUpperCase']()+'_LIST_'+_0x53733b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2c5c19{static get['requires'](){return[_0x2a4c8b];}['init'](){const _0x89a549=this['editor'],_0x52ee15=_0x89a549['plugins']['get']('TrackChangesEditing'),_0x5dc27c=_0x89a549['commands']['get']('enter');_0x52ee15['enableCommand']('enter',()=>{_0x89a549['model']['change'](_0x462ef9=>{const _0x5a42e4=_0x89a549['model']['document']['selection'],_0x5b6d39=_0x5a42e4['getFirstPosition'](),_0x338abb=_0x484e63['fromRange'](_0x5a42e4['getFirstRange']());if(_0x5dc27c['enterBlock'](_0x462ef9)){const _0x4194d3=_0x89a549['model']['createPositionAt'](_0x5b6d39['parent']['nextSibling'],0x0),_0x51afe5=_0x462ef9['createRange'](_0x5b6d39,_0x4194d3);_0x52ee15['markInsertion'](_0x51afe5);}else _0x462ef9['setSelection'](_0x462ef9['createRange'](_0x338abb['end']));_0x338abb['detach'](),_0x5dc27c['fire']('afterExecute',{'writer':_0x462ef9});});}),_0x89a549['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x89a549,'split'),{'priority':'high'}),_0x89a549['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2c9c6a,_0x52e99d,_0x9e337f)=>{const _0x40c78b=_0x9e337f['mapper']['markerNameToElements'](_0x52e99d['markerName']);if(_0x40c78b){for(const _0x5b3226 of _0x40c78b)_0x5b3226['hasClass']('ck-suggestion-marker-split')&&(_0x9e337f['mapper']['unbindElementFromMarkerName'](_0x5b3226,_0x52e99d['markerName']),_0x9e337f['writer']['remove'](_0x5b3226));}},{'priority':'high'}),_0x89a549['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb45cb5,_0x5a689b,_0x50ac43)=>{_0x50ac43['options']['showSuggestionHighlights']&&_e(_0x89a549,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xb45cb5,_0x5a689b,_0x50ac43);},{'priority':'high'});}}class X extends _0x2c5c19{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x408518=this['editor']['plugins']['get']('TrackChangesEditing');_0x408518['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x408518['enableCommand']('findNext'),_0x408518['enableCommand']('findPrevious'),_0x408518['enableCommand']('replace'),_0x408518['enableCommand']('replaceAll');}['handleFindCommand'](_0x34b4b6,_0x4c5c4d,_0x5cfe92={}){const _0x355883=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34b4b6(_0x325f63=>{let _0x5a4de9=('string'==typeof _0x4c5c4d?_0x355883['findByTextCallback'](_0x4c5c4d,_0x5cfe92):_0x4c5c4d)(_0x325f63);Array['isArray'](_0x5a4de9)&&(_0x5a4de9={'results':_0x5a4de9,'searchText':'string'==typeof _0x4c5c4d?_0x4c5c4d:''});const _0x262753=_0x5a4de9['results']['filter'](_0x439180=>!0x1===this['_isInDeletionRange'](_0x439180,_0x325f63['item']));return{..._0x5a4de9,'results':_0x262753};},_0x5cfe92);}['_isInDeletionRange'](_0x4cc6b8,_0x4e9cd9){const _0x4adf67=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e9cd9,_0x4cc6b8['start']),this['editor']['model']['createPositionAt'](_0x4e9cd9,_0x4cc6b8['end']));for(const _0x5b7f9d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4adf67['getIntersection'](_0x5b7f9d['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 _0x2c5c19{['afterInit'](){const _0x2a1acf=this['editor']['locale'],_0xcb8a9f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x399235,commandName:_0x327072}of ro)this['editor']['plugins']['has'](_0x399235)&&(_0xcb8a9f['enableDefaultAttributesIntegration'](_0x327072),_0xcb8a9f['registerInlineAttribute'](_0x327072));_0xcb8a9f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2a1acf,'FORMAT_FONT_SIZE')),_0xcb8a9f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2a1acf,'FORMAT_FONT_FAMILY')),_0xcb8a9f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2a1acf,'FORMAT_FONT_COLOR')),_0xcb8a9f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2a1acf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1faa59=this['editor'],_0x109272=_0x1faa59['locale'];_0x1faa59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e1db=>{const _0x2121fa=_0x109272['t'];if('formatInline'!=_0x36e1db['type'])return;const {data:_0x4f4d92}=_0x36e1db;if(null!=_0x4f4d92){if('fontSize'==_0x4f4d92['commandName']){const _0x6bd3e3=_0x4f4d92['commandParams'][0x0]['value'];if(_0x6bd3e3){const _0x4b8d44=_0x2121fa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1c7559=>_0x1c7559['model']==_0x6bd3e3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x109272,'*Set\x20font\x20size:*\x20%0',_0x4b8d44)};}return{'type':'format','content':o(_0x109272,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4f4d92['commandName']){const _0x41ca5a=_0x4f4d92['commandParams'][0x0]['value'];return _0x41ca5a?{'type':'format','content':o(_0x109272,'*Set\x20font\x20family:*\x20%0',_0x41ca5a)}:{'type':'format','content':o(_0x109272,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4f4d92['commandName']){const _0x5e051a=_0x4f4d92['commandParams'][0x0]['value'];if(_0x5e051a){const _0x4d89a7=_0x29c79a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2b37e9=>_0x2b37e9['model']==_0x5e051a);let _0x6516aa=_0x5e051a,_0x43e16b='';return _0x4d89a7&&(_0x6516aa=_0x4d89a7['label'],_0x43e16b=_0x2121fa(_0x6516aa)['toLowerCase']()),{'type':'format','content':o(_0x109272,'*Set\x20font\x20color:*\x20%0',_0x43e16b)['trim'](),'color':{'value':_0x5e051a,'title':_0x43e16b||_0x6516aa}};}return{'type':'format','content':o(_0x109272,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4f4d92['commandName']){const _0x1d83ca=_0x4f4d92['commandParams'][0x0]['value'];if(_0x1d83ca){const _0x3ded36=_0x29c79a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x324f2a=>_0x324f2a['model']==_0x1d83ca);let _0x4de8f3=_0x1d83ca,_0xf86635='';return _0x3ded36&&(_0x4de8f3=_0x3ded36['label'],_0xf86635=_0x2121fa(_0x4de8f3)['toLowerCase']()),{'type':'format','content':o(_0x109272,'*Set\x20font\x20background\x20color:*\x20%0',_0xf86635)['trim'](),'color':{'value':_0x1d83ca,'title':_0xf86635||_0x4de8f3}};}return{'type':'format','content':o(_0x109272,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2c5c19{['afterInit'](){const _0x33c8a0=this['editor'],_0x5eaaf0=_0x33c8a0['plugins']['get']('TrackChangesEditing'),_0x1f234d=_0x33c8a0['commands']['get']('copyFormat'),_0x2b8283=_0x33c8a0['commands']['get']('pasteFormat');_0x1f234d&&_0x2b8283&&(_0x5eaaf0['enableDefaultAttributesIntegration']('pasteFormat'),_0x5eaaf0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d3c57=this['editor'],_0x2ee787=_0x5d3c57['locale'];_0x5d3c57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x151d18=>{if('formatBlock'!=_0x151d18['type']&&'formatInline'!=_0x151d18['type'])return;const {data:_0x2db727}=_0x151d18;if(_0x2db727&&'pasteFormat'===_0x2db727['commandName']){const _0x4a7a67=[],_0x353e2f=_0x2db727['commandParams'][0x0];for(const [_0x420bd6,_0x4b4317]of Object['entries'](_0x353e2f))_0x4a7a67['push'](so(_0x5d3c57,_0x420bd6,_0x4b4317));return _0x4a7a67['length']?{'type':'format','content':o(_0x2ee787,'*Set\x20format\x20to:*\x20%0',_0x4a7a67['join'](',\x20'))}:{'type':'format','content':o(_0x2ee787,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4f13e0,_0x51d05d,_0x4d080f){const _0x2c1b4f=_0x4f13e0['locale']['t'],_0x122d06=_0x51d05d['split'](/(?=[A-Z])/)['join']('\x20'),_0x274517=_0x2c1b4f(_0x122d06['charAt'](0x0)['toUpperCase']()+_0x122d06['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d080f)return _0x274517;if('fontColor'===_0x51d05d||'fontBackgroundColor'===_0x51d05d){const _0x1c4910=_0x29c79a(_0x4f13e0['config']['get']('fontColor.colors'))['find'](_0x321fd7=>_0x321fd7['model']==_0x4d080f);return _0x274517+'\x20('+(_0x1c4910?_0x2c1b4f(_0x1c4910['label'])['toLowerCase']():_0x4d080f)+')';}if('fontSize'===_0x51d05d&&isNaN(parseFloat(_0x4d080f))){const _0xb738a8=_0x4f13e0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4f13e0['config']['get']('fontSize.options'))['find'](_0x436e24=>_0x436e24['model']==_0x4d080f);return _0x274517+'\x20('+(_0xb738a8?_0x2c1b4f(_0xb738a8['title'])['toLowerCase']():_0x4d080f)+')';}return _0x274517+'\x20('+_0x4d080f+')';}class tt extends _0x2c5c19{['_headingOptions'];['afterInit'](){const _0x3e6992=this['editor'];if(!_0x3e6992['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3e6992['config']['get']('heading.options');const _0x271a9e=_0x3e6992['locale'],_0x58a1bf=_0x3e6992['plugins']['get']('TrackChangesEditing');_0x58a1bf['enableDefaultAttributesIntegration']('heading');for(const _0x257619 of this['_headingOptions'])'paragraph'!=_0x257619['model']&&_0x58a1bf['descriptionFactory']['registerElementLabel'](_0x257619['model'],_0x83f0d=>{const _0x67e4b6=this['_getHeadingLevel'](_0x257619['model']);return null!==_0x67e4b6?_0x17fe40(_0x83f0d,_0x67e4b6):_0x17ca2f(_0x83f0d,_0x257619['title']);});function _0x17fe40(_0x448eeb,_0x5cd4a4){return o(_0x271a9e,'ELEMENT_HEADING',[_0x448eeb,_0x5cd4a4]);}function _0x17ca2f(_0xa9b087,_0x29f5de){return o(_0x271a9e,'ELEMENT_HEADING_CUSTOM',[_0xa9b087,_0x29f5de]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x231c3a=this['editor'],_0x2f40c2=_0x231c3a['locale'];function _0x1dd605(_0x424784,_0x2de5b6){return o(_0x2f40c2,'ELEMENT_HEADING_CUSTOM',[_0x424784,_0x2de5b6]);}_0x231c3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488522=>{if('formatBlock'!=_0x488522['type'])return;const {data:_0x57f00d}=_0x488522;if(_0x57f00d&&'heading'==_0x57f00d['commandName']){const _0x46b016=_0x57f00d['commandParams'][0x0]['value'],_0x936ced=this['_getHeadingLevel'](_0x46b016);if(null!==_0x936ced)return{'type':'format','content':o(_0x2f40c2,'*Change\x20to:*\x20%0',(_0x3b613a=0x1,_0x52bac2=_0x936ced,o(_0x2f40c2,'ELEMENT_HEADING',[_0x3b613a,_0x52bac2])))};const _0xf7b44c=this['_headingOptions']['find'](_0x4383aa=>_0x4383aa['model']===_0x46b016)['title'];return{'type':'format','content':o(_0x2f40c2,'*Change\x20to:*\x20%0',_0x1dd605(0x1,_0xf7b44c))};}var _0x3b613a,_0x52bac2;});}['_getHeadingLevel'](_0x4ce65d){const _0x8aa785=_0x4ce65d['match'](/^heading(\d+)/);if(_0x8aa785)return _0x8aa785[0x1];const _0x21a20d=this['_headingOptions']?.['find'](_0x45c98d=>_0x45c98d['model']==_0x4ce65d);if(_0x21a20d&&_0x21a20d['view']){const _0x594df5=_0x21a20d['view'],_0x56e7f4=(_0x594df5['name']??_0x594df5)['match'](/^h(\d+)/);if(_0x56e7f4)return _0x56e7f4[0x1];}return null;}}class et extends _0x2c5c19{['afterInit'](){const _0x414970=this['editor'];if(!_0x414970['plugins']['has']('HighlightEditing'))return;const _0x318336=_0x414970['plugins']['get']('TrackChangesEditing'),_0x51a5e7=_0x414970['locale'];_0x318336['enableDefaultAttributesIntegration']('highlight'),_0x318336['registerInlineAttribute']('highlight'),_0x318336['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x51a5e7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23aa1c=this['editor'],_0x53b1b7=_0x23aa1c['locale'];_0x23aa1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d1ccb=>{if('formatInline'!=_0x2d1ccb['type'])return;const {data:_0x4ea98c}=_0x2d1ccb;if(_0x4ea98c&&'highlight'==_0x4ea98c['commandName']){const _0x5cf427=_0x53b1b7['t'],_0x14f64d=_0x4ea98c['commandParams'][0x0]['value'];if(_0x14f64d){const _0x29bd74=_0x23aa1c['config']['get']('highlight.options')['find'](_0x449273=>_0x449273['model']==_0x14f64d),_0x1eb6cc=_0x5cf427(_0x29bd74['title'])['toLowerCase']();return{'type':'format','content':o(_0x53b1b7,'*Set\x20highlight:*\x20%0',_0x1eb6cc),'color':{'value':_0x29bd74['color'],'title':_0x29bd74['title']}};}return{'type':'format','content':o(_0x53b1b7,'*Remove\x20highlight*',o(_0x53b1b7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2c5c19{['afterInit'](){const _0x2d36cf=this['editor'];if(!_0x2d36cf['plugins']['has']('HorizontalLineEditing'))return;_0x2d36cf['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x510a81=_0x2d36cf['plugins']['get']('TrackChangesEditing'),_0x32cc93=_0x2d36cf['locale'];_0x510a81['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1fa0df=>o(_0x32cc93,'ELEMENT_HORIZONTAL_LINE',_0x1fa0df)),_0x2d36cf['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5310a9,{writer:_0x170399,options:_0x5a95d0})=>{if(!_0x5a95d0['showSuggestionHighlights'])return null;const _0xb73a69=_0x170399['createContainerElement']('div'),_0x476144=_0x170399['createEmptyElement']('hr');return _0x170399['addClass']('ck-horizontal-line',_0xb73a69),_0x170399['insert'](_0x170399['createPositionAt'](_0xb73a69,0x0),_0x476144),_0xb73a69;},'converterPriority':'high'});}}class st extends _0x2c5c19{['afterInit'](){const _0x58e545=this['editor'];if(!_0x58e545['plugins']['has']('HtmlEmbed'))return;const _0x42d48e=_0x58e545['plugins']['get']('TrackChangesEditing'),_0x44d34e=_0x58e545['locale'];_0x42d48e['descriptionFactory']['registerElementLabel']('rawHtml',_0x5c9fff=>o(_0x44d34e,'ELEMENT_HTML_EMBED',_0x5c9fff)),_0x42d48e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x42d48e['registerBlockAttribute']('value'),_0x42d48e['descriptionFactory']['registerDescriptionCallback'](_0x3775d4=>{if('attribute'!=_0x3775d4['type'])return;const {data:_0x1c1192}=_0x3775d4;if(_0x1c1192&&'value'==_0x1c1192['key']&&_0x3775d4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2300d4=o(_0x44d34e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x44d34e,'*Change\x20%0\x20content*',_0x2300d4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48d761=this['editor'],_0x1f038a=_0x48d761['locale'];_0x48d761['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a97e1=>{if('formatBlock'!=_0x5a97e1['type'])return;const {data:_0x4fa275}=_0x5a97e1;if(_0x4fa275&&'htmlEmbed'==_0x4fa275['commandName']){const _0x94d435=o(_0x1f038a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f038a,'*Change\x20%0\x20content*',_0x94d435)};}});}}class nt extends _0x2c5c19{['afterInit'](){const _0x5d5362=this['editor'];if(!_0x5d5362['plugins']['has']('ImageEditing'))return;const _0x4c2fc4=_0x5d5362['plugins']['get']('TrackChangesEditing'),_0x92499f=_0x5d5362['plugins']['get']('ImageUtils'),_0x947a87=_0x5d5362['locale'];_0x4c2fc4['enableCommand']('insertImage'),_0x4c2fc4['descriptionFactory']['registerElementLabel']('imageBlock',_0x2adc46=>o(_0x947a87,'ELEMENT_IMAGE',_0x2adc46)),_0x4c2fc4['descriptionFactory']['registerElementLabel']('imageInline',_0x3d9d81=>o(_0x947a87,'ELEMENT_INLINE_IMAGE',_0x3d9d81)),_0x4c2fc4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x947a87,'ELEMENT_CAPTION')),_0x5d5362['plugins']['has']('ImageUploadEditing')&&_0x4c2fc4['enableCommand']('uploadImage'),_0x5d5362['plugins']['has']('ImageBlockEditing')&&_0x5d5362['plugins']['has']('ImageInlineEditing')&&(_0x4c2fc4['enableCommand']('imageTypeInline',(_0x589dea,_0x447d91)=>{const _0x355164=_0x92499f['getClosestSelectedImageElement'](_0x5d5362['model']['document']['selection']);_0x5d5362['model']['change'](()=>{_0x4c2fc4['markBlockFormat'](_0x355164,{'commandName':'imageTypeInline','commandParams':[_0x447d91]},[],'convertBlockImageToInline');});}),_0x4c2fc4['enableCommand']('imageTypeBlock',(_0x166724,_0x206d58)=>{_0x5d5362['model']['change'](_0x186736=>{let _0xa1306e=_0x92499f['getClosestSelectedImageElement'](_0x5d5362['model']['document']['selection']),_0x41eaeb=_0x186736['createRangeOn'](_0xa1306e);const _0x581e0c=_0x449586['fromPosition'](_0x41eaeb['start'],'toPrevious'),_0x35317a=_0x449586['fromPosition'](_0x41eaeb['end'],'toNext');_0x4c2fc4['forceDefaultExecution'](()=>_0x166724(_0x206d58)),_0xa1306e=_0x92499f['getClosestSelectedImageElement'](_0x5d5362['model']['document']['selection']),_0x41eaeb=_0x186736['createRangeOn'](_0xa1306e);const _0x50fb29=_0x186736['createRange'](_0x581e0c,_0x35317a);_0x581e0c['detach'](),_0x35317a['detach'](),_0x4c2fc4['markBlockFormat'](_0xa1306e,{'commandName':'imageTypeInline','commandParams':[_0x206d58]},[],'convertInlineImageToBlock'),_0x50fb29['start']['isBefore'](_0x41eaeb['start'])&&_0x4c2fc4['markInsertion'](_0x186736['createRange'](_0x50fb29['start'],_0x41eaeb['start']),'convertInlineImageToBlock'),_0x41eaeb['end']['isBefore'](_0x50fb29['end'])&&_0x4c2fc4['markInsertion'](_0x186736['createRange'](_0x41eaeb['end'],_0x50fb29['end']),'convertInlineImageToBlock');});}),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4c2fc4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5b17b0])=>{const _0x38abc8=_0x4c2fc4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d9d04=_0x5b17b0['start'],_0xba3710=_0x5b17b0['end'];const _0x4759a3=_0x5d5362['model']['schema']['getNearestSelectionRange'](_0x2d9d04,'backward'),_0x39a5d2=_0x5d5362['model']['schema']['getNearestSelectionRange'](_0xba3710,'forward');_0x4759a3['isCollapsed']&&(_0x2d9d04=_0x4759a3['start']),_0x39a5d2['isCollapsed']&&(_0xba3710=_0x39a5d2['end']),_0x38abc8([_0x5d5362['model']['createRange'](_0x2d9d04,_0xba3710)]);}),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1c6c59),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1c6c59)),_0x5d5362['plugins']['has']('ImageCaptionEditing')&&(_0x4c2fc4['enableCommand']('toggleImageCaption',(_0x52db32,_0xbce0e5)=>{const _0x3d4ff0=_0x5d5362['plugins']['get']('ImageCaptionUtils');let _0x84122f=_0x92499f['getClosestSelectedImageElement'](_0x5d5362['model']['document']['selection']),_0x786d17=_0x3d4ff0['getCaptionFromImageModelElement'](_0x84122f);_0x5d5362['model']['change'](()=>{if(_0x786d17)return void _0x4c2fc4['markDeletion'](_0x5d5362['model']['createRangeOn'](_0x786d17));const _0x58a0ab=_0x92499f['isBlockImage'](_0x84122f);_0x52db32(_0xbce0e5),_0x84122f=_0x92499f['getClosestSelectedImageElement'](_0x5d5362['model']['document']['selection']),_0x786d17=_0x3d4ff0['getCaptionFromImageModelElement'](_0x84122f),_0x4c2fc4['markInsertion'](_0x5d5362['model']['createRangeOn'](_0x786d17),_0x58a0ab?null:'imageCaption');});}),_0x4c2fc4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1c6c59));const _0x2af234=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ef253(_0x565340,_0x152bc9){const _0x4384ec=_0x2af234['findIndex'](({type:_0x52cbbf,subType:_0x391785})=>_0x565340['type']==_0x52cbbf&&_0x565340['subType']==_0x391785),_0x6b65a1=_0x2af234['findIndex'](({type:_0x35bbe4,subType:_0x3000df})=>_0x152bc9['type']==_0x35bbe4&&_0x152bc9['subType']==_0x3000df);if(_0x4384ec<0x0||_0x6b65a1<0x0)return!0x1;const _0x8f8e80=_0x565340['getFirstRange'](),_0x5e12c9=_0x152bc9['getFirstRange']();if((0x0==_0x4384ec||0x1==_0x4384ec)&&0x2==_0x6b65a1&&_0x8f8e80['isIntersecting'](_0x5e12c9))return!0x0;if(0x2==_0x4384ec&&0x3==_0x6b65a1){const _0x24ca6b=_0x4c2fc4['_findSuggestions'](_0x8f8e80,'insertion')['filter'](({suggestion:_0x522236,meta:_0x702e72})=>_0x702e72['isOwn']&&'convertInlineImageToBlock'==_0x522236['subType']);if(_0x24ca6b['length']>0x1&&_0x5e12c9['end']['isEqual'](_0x8f8e80['start']))return!0x0;if(0x1==_0x24ca6b['length']&&(_0x8f8e80['start']['isEqual'](_0x5e12c9['end'])||_0x8f8e80['end']['isEqual'](_0x5e12c9['start'])))return!0x0;}if(0x3==_0x4384ec&&0x3==_0x6b65a1&&_0x8f8e80['start']['isBefore'](_0x5e12c9['start'])){const _0x471667=_0x8f8e80['end']['nodeAfter'],_0x5a44e2=_0x5e12c9['start']['nodeBefore'];return _0x92499f['isBlockImage'](_0x471667)&&_0x471667===_0x5a44e2;}return!0x1;}function _0x1c6c59(_0x5ea5f6,_0x4ef3b6){return _0x2ef253(_0x5ea5f6,_0x4ef3b6)?[_0x5ea5f6,_0x4ef3b6]:_0x2ef253(_0x4ef3b6,_0x5ea5f6)?[_0x4ef3b6,_0x5ea5f6]:null;}_0x5d5362['plugins']['has']('ImageResize')&&(_0x4c2fc4['enableDefaultAttributesIntegration']('resizeImage'),_0x4c2fc4['registerBlockAttribute']('resizedWidth'),_0x4c2fc4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x947a87,'FORMAT_IMAGE_SIZE'))),_0x5d5362['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4c2fc4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c2fc4['registerBlockAttribute']('alt')),_0x4c2fc4['descriptionFactory']['registerDescriptionCallback'](_0x25adb2=>{if(!!_0x2af234['find'](({type:_0x1e6ca0,subType:_0x33220d})=>_0x25adb2['type']==_0x1e6ca0&&_0x25adb2['subType']==_0x33220d))return _0x25adb2['previous']?{}:void 0x0;}),_0x4c2fc4['descriptionFactory']['registerDescriptionCallback'](_0xa224d8=>{if('insertion'==_0xa224d8['type']||'deletion'==_0xa224d8['type']){const _0x6cf640=_0xa224d8['getContainedElement']();if(_0x6cf640&&_0x6cf640['is']('element','caption'))return{'type':'insertion'==_0xa224d8['type']?'addObject':'removeObject','element':_0x6cf640,'quantity':0x1};}}),_0x4c2fc4['descriptionFactory']['registerDescriptionCallback'](_0x274e8d=>'formatBlock'==_0x274e8d['type']&&'convertInlineImageToBlock'==_0x274e8d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x274e8d['type']&&'convertBlockImageToInline'==_0x274e8d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4c2fc4['descriptionFactory']['registerDescriptionCallback'](_0x56dcfb=>{if('attribute'!=_0x56dcfb['type'])return;const {data:_0x3f7a28}=_0x56dcfb;if(!_0x3f7a28||'alt'!=_0x3f7a28['key'])return;const _0x562439=_0x3f7a28['newValue'];return _0x562439?{'type':'format','content':o(_0x947a87,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x562439+'\x22')}:{'type':'format','content':o(_0x947a87,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383b18=this['editor'],_0x47dd29=_0x383b18['locale'];_0x383b18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5adb0f=>{if('formatBlock'!=_0x5adb0f['type']&&'formatInline'!=_0x5adb0f['type'])return;const {data:_0xe105e2}=_0x5adb0f;if(_0xe105e2){if('imageTextAlternative'==_0xe105e2['commandName']){const _0xd44346=_0xe105e2['commandParams'][0x0]['newValue'];return _0xd44346?{'type':'format','content':o(_0x47dd29,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd44346+'\x22')}:{'type':'format','content':o(_0x47dd29,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe105e2['commandName']){const _0x1a9bae=_0xe105e2['commandParams'][0x0]['width'];return _0x1a9bae?{'type':'format','content':o(_0x47dd29,'*Set\x20image\x20width:*\x20%0',_0x1a9bae)}:{'type':'format','content':o(_0x47dd29,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2c5c19{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x29811c=this['editor']['locale'],_0x2bb704=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bb704['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2bb704['registerBlockAttribute']('src'),_0x2bb704['descriptionFactory']['registerDescriptionCallback'](_0x5ea0db=>{if('attribute'!=_0x5ea0db['type'])return;const {data:_0x2430a5}=_0x5ea0db;return _0x2430a5&&'src'==_0x2430a5['key']?_0x2430a5['newValue']&&_0x2430a5['oldValue']?{'type':'format','content':o(_0x29811c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x18a4f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x18a4f3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x18a4f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18a4f3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x18a4f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2df25b=this['editor'],_0x24aa1c=_0x2df25b['locale'];_0x2df25b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12ba3a=>{if('formatBlock'!=_0x12ba3a['type']&&'formatInline'!=_0x12ba3a['type'])return;const {data:_0x560bcd}=_0x12ba3a;if(!_0x560bcd||'replaceImageSource'!=_0x560bcd['commandName'])return;return{'type':'format','content':o(_0x24aa1c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2c5c19{['afterInit'](){const _0x3ee95d=this['editor'];if(!_0x3ee95d['plugins']['has']('ImageStyleEditing'))return;const _0x1b0ad7=_0x3ee95d['plugins']['get']('TrackChangesEditing'),_0x53dea6=_0x3ee95d['plugins']['get']('ImageUtils'),_0x18a9d5={};_0x1b0ad7['enableCommand']('imageStyle',(_0x59071f,_0x5ab439)=>{const _0x33810f=_0x3ee95d['plugins']['get']('Users')['me'],_0x53eda0=_0x3ee95d['commands']['get']('imageStyle');let _0x292a39=_0x53dea6['getClosestSelectedImageElement'](_0x3ee95d['model']['document']['selection']),_0x1fa449=_0x3ee95d['model']['createRangeOn'](_0x292a39),_0x301f18=_0x53eda0['value'];if(_0x301f18==_0x5ab439['value'])return;const _0x5c5845={'commandName':'imageStyle','commandParams':[_0x5ab439],'formatGroupId':_0x29fcde()};_0x3ee95d['model']['change'](()=>{if(_0x1b0ad7['getSuggestions']()['filter'](_0x3973f4=>_0x3973f4['isInContent']&&_0x33810f==_0x3973f4['author']&&('formatBlock'==_0x3973f4['type']||'formatInline'==_0x3973f4['type'])&&('imageStylePreApply'==_0x3973f4['subType']||'imageStylePostApply'==_0x3973f4['subType'])&&_0x3973f4['getFirstRange']()['isEqual'](_0x1fa449))['forEach'](_0x4bf3a0=>_0x1b0ad7['discardSuggestion'](_0x4bf3a0['head'])),_0x292a39=_0x53dea6['getClosestSelectedImageElement'](_0x3ee95d['model']['document']['selection']),_0x1fa449=_0x3ee95d['model']['createRangeOn'](_0x292a39),_0x53eda0['refresh'](),_0x3ee95d['commands']['get']('imageTypeInline')['refresh'](),_0x3ee95d['commands']['get']('imageTypeBlock')['refresh'](),_0x301f18=_0x53eda0['value'],_0x301f18!=_0x5ab439['value'])return _0x53dea6['isInlineImage'](_0x292a39)&&_0x53eda0['shouldConvertImageType'](_0x5ab439['value'],_0x292a39)?(_0x59071f({..._0x5ab439,'setImageSizes':!0x1}),_0x292a39=_0x53dea6['getClosestSelectedImageElement'](_0x3ee95d['model']['document']['selection']),void _0x1b0ad7['markBlockFormat'](_0x292a39,{..._0x5c5845,'commandReversedParams':[{'value':_0x301f18||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x53dea6['isBlockImage'](_0x292a39)?_0x1b0ad7['markBlockFormat'](_0x292a39,_0x5c5845,[],'imageStylePostApply'):_0x1b0ad7['markInlineFormat'](_0x1fa449,_0x5c5845,'imageStylePostApply'));});});for(const _0x338ad7 of _0x3ee95d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x18a9d5[_0x338ad7['name']]=_0x338ad7['title']['toLowerCase']();_0x1b0ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1b0ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1b0ad7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1b0ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x212268])=>{_0x53dea6['setImageNaturalSizeAttributes'](_0x212268['getContainedElement']());}),_0x1b0ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x38302f,_0x4f554f)=>{_0x1b0ad7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x38302f,{'commandName':_0x4f554f['commandName'],'commandParams':_0x4f554f['commandReversedParams']});}),_0x1b0ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bfb66,_0x74fde2){if(_0x4c788d(_0x1bfb66,_0x74fde2))return[_0x1bfb66,_0x74fde2];if(_0x4c788d(_0x74fde2,_0x1bfb66))return[_0x74fde2,_0x1bfb66];return null;});const _0x1dd5d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c788d(_0x5af88e,_0x56a069){const _0x51201d=_0x1dd5d9['findIndex'](({type:_0x3b8160,subType:_0x5879ab})=>_0x5af88e['type']==_0x3b8160&&_0x5af88e['subType']==_0x5879ab),_0x4277f6=_0x1dd5d9['findIndex'](({type:_0x57bf98,subType:_0x31397a})=>_0x56a069['type']==_0x57bf98&&_0x56a069['subType']==_0x31397a);if(_0x51201d<0x0||_0x4277f6<0x0)return!0x1;const _0x43d839=_0x5af88e['getFirstRange'](),_0x2f5e84=_0x56a069['getFirstRange']();if((0x0==_0x51201d||0x1==_0x51201d)&&0x2==_0x4277f6&&_0x43d839['isIntersecting'](_0x2f5e84))return!0x0;if(0x2==_0x51201d&&0x3==_0x4277f6){const _0x585247=_0x1b0ad7['_findSuggestions'](_0x43d839,'insertion')['filter'](({suggestion:_0x2d3634,meta:_0x48502c})=>_0x48502c['isOwn']&&'convertInlineImageToBlock'==_0x2d3634['subType']);if(_0x585247['length']>0x1&&_0x2f5e84['end']['isEqual'](_0x43d839['start']))return!0x0;if(0x1==_0x585247['length']&&(_0x43d839['start']['isEqual'](_0x2f5e84['end'])||_0x43d839['end']['isEqual'](_0x2f5e84['start'])))return!0x0;}if(0x3==_0x51201d&&0x3==_0x4277f6&&_0x43d839['start']['isBefore'](_0x2f5e84['start'])){const _0x3665cf=_0x43d839['end']['nodeAfter'],_0x39276b=_0x2f5e84['start']['nodeBefore'];return _0x53dea6['isBlockImage'](_0x3665cf)&&_0x3665cf===_0x39276b;}return!0x1;}_0x3ee95d['model']['document']['registerPostFixer'](()=>{let _0xbf1c99=!0x1;const _0x50d647=Array['from'](_0x3ee95d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36e8d8,data:_0x23fa52}of _0x50d647){const {group:_0x2a0c7e,type:_0x4b44f6,subType:_0x345eab,id:_0xed46f9}=_0x1b0ad7['_splitMarkerName'](_0x36e8d8);if('suggestion'==_0x2a0c7e&&_0x1b0ad7['hasSuggestion'](_0xed46f9)){if('formatBlock'==_0x4b44f6&&('imageStylePreApply'==_0x345eab||'imageStylePostApply'==_0x345eab)){const _0x4aaa5a=_0x1b0ad7['getSuggestion'](_0xed46f9);if(_0x23fa52['newRange']){const _0x23f315=_0x4aaa5a['getFirstRange']()['getContainedElement']();if(_0x53dea6['isBlockImage'](_0x23f315))continue;_0x1b0ad7['discardSuggestion'](_0x4aaa5a),_0xbf1c99=!0x0;}}if('insertion'==_0x4b44f6&&'imageCaption'==_0x345eab&&!_0x23fa52['newRange']){const _0x2dfe71=_0x1b0ad7['getSuggestion'](_0xed46f9);_0x2dfe71['next']&&_0x2dfe71['next']['isInContent']&&(_0x1b0ad7['discardSuggestion'](_0x2dfe71['next']),_0xbf1c99=!0x0);}}}return _0xbf1c99;}),this['_registerLegacyDescription'](_0x18a9d5);}['_registerLegacyDescription'](_0x73adba){const _0x5308d0=this['editor'],_0x33ab5e=_0x5308d0['locale'];_0x5308d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3854eb=>{if('formatBlock'!=_0x3854eb['type']&&'formatInline'!=_0x3854eb['type'])return;const {data:_0x402af8}=_0x3854eb;if(!_0x402af8||'imageStyle'!=_0x402af8['commandName'])return;const _0x4fcc57=_0x402af8['commandParams'][0x0]['value'];return _0x5523c7('side'===_0x4fcc57?o(_0x33ab5e,'FORMAT_SIDE_IMAGE'):_0x73adba[_0x4fcc57]||_0x4fcc57);function _0x5523c7(_0x29a7e7){return{'type':'format','content':o(_0x33ab5e,'*Format:*\x20%0',_0x29a7e7)};}});}}class at extends _0x2c5c19{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x524177){super(_0x524177),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x38611b=this['editor'],_0x4cb40f=_0x38611b['commands']['get']('importWord'),_0x4ec1f9=_0x38611b['commands']['get']('trackChanges');_0x4cb40f&&(_0x4cb40f['on']('execute',(_0x2ae042,[,_0x4bb916])=>{this['_trackChangesValueDuringImport']=_0x4ec1f9['value'],_0x4bb916['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cb40f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cb40f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4ec1f9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x38611b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x20b506,_0x344123){const {suggestions:_0x402ad0}=_0x344123,_0x428ea6=this['editor']['commands']['get']('trackChanges'),_0x5908fd=_0x428ea6['value'];this['_trackChangesValueDuringImport']!==_0x5908fd&&(_0x428ea6['execute'](),this['_trackChangesExecuted']=!0x0),_0x402ad0&&_0x402ad0['forEach'](({id:_0x42803e,type:_0x4be937,author:_0x4b67d5,created_at:_0x380f9d})=>{const _0x51dfe3={'id':_0x42803e,'type':_0x4be937,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b67d5,'createdAt':_0x380f9d?new Date(_0x380f9d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x51dfe3);});}}class ct extends _0x2c5c19{['afterInit'](){const _0x29d18f=this['editor'],_0x26b7b2=_0x29d18f['plugins']['get']('TrackChangesEditing');if(_0x29d18f['plugins']['has']('IndentEditing')&&(_0x26b7b2['enableCommand']('indent'),_0x26b7b2['enableCommand']('outdent')),_0x29d18f['plugins']['has']('IndentBlock')){for(const _0x1fff81 of['indentBlock','outdentBlock'])_0x26b7b2['enableDefaultAttributesIntegration'](_0x1fff81);}const _0x4b37a6=_0x29d18f['locale'];_0x26b7b2['registerBlockAttribute']('blockIndent'),_0x26b7b2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4b37a6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc52abe=this['editor'],_0x3364b3=_0xc52abe['locale'],_0x104c08=_0xc52abe['plugins']['get']('TrackChangesEditing');_0x104c08['descriptionFactory']['registerDescriptionCallback'](_0xea5a4d=>{if('formatBlock'!=_0xea5a4d['type'])return;const {data:_0xd48e7b}=_0xea5a4d;if(!_0xd48e7b)return;if('indentBlock'!=_0xd48e7b['commandName']&&'outdentBlock'!=_0xd48e7b['commandName'])return;const _0x2ceac0=_0xea5a4d['getItems']()[0x0],_0x300153=_0x104c08['descriptionFactory']['getItemLabel'](_0x2ceac0);return'indentBlock'==_0xd48e7b['commandName']?{'type':'format','content':o(_0x3364b3,'*Indent:*\x20%0',_0x300153)}:'outdentBlock'==_0xd48e7b['commandName']?{'type':'format','content':o(_0x3364b3,'*Outdent:*\x20%0',_0x300153)}:void 0x0;});}}class ut extends _0x2c5c19{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2c5c19{['afterInit'](){const _0x221387=this['editor'];if(!_0x221387['plugins']['has']('LinkEditing'))return;const _0xa393=_0x221387['plugins']['get']('TrackChangesEditing'),_0x542bdb=_0x221387['commands']['get']('link');_0xa393['enableDefaultAttributesIntegration']('link'),_0xa393['enableDefaultAttributesIntegration']('unlink'),_0xa393['registerInlineAttribute']('linkHref');for(const _0x52b61a of _0x542bdb['manualDecorators'])_0xa393['registerInlineAttribute'](_0x52b61a['id']),_0xa393['descriptionFactory']['registerAttributeLabel'](_0x52b61a['id'],'link\x20('+_0x52b61a['label']['toLowerCase']()+')');_0xa393['descriptionFactory']['registerDescriptionCallback'](_0x322ce2=>{if('attribute'!=_0x322ce2['type'])return;const {data:_0x338579}=_0x322ce2;if(!_0x338579||'linkHref'!=_0x338579['key'])return;const _0x38de1b=_0x338579['newValue'],_0x51c228=_0x221387['locale'];return{'type':'format','content':null==_0x38de1b?o(_0x51c228,'*Remove\x20link*'):o(_0x51c228,'*Set\x20link:*\x20%0','\x22'+_0x38de1b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef8bb=this['editor'],_0x58ff43=_0x4ef8bb['locale'];_0x4ef8bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a8fc5=>{if('formatInline'!=_0x3a8fc5['type'])return;const {data:_0x3bedbe}=_0x3a8fc5;if(_0x3bedbe){if('link'==_0x3bedbe['commandName']){const _0x38d401=_0x3bedbe['commandParams'][0x0];return{'type':'format','content':o(_0x58ff43,'*Set\x20link:*\x20%0','\x22'+_0x38d401+'\x22')};}return'unlink'==_0x3bedbe['commandName']?{'type':'format','content':o(_0x58ff43,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2c5c19{['afterInit'](){const _0x381101=this['editor'],_0x530b48=_0x381101['locale'];if(!_0x381101['plugins']['has']('LegacyListEditing'))return;const _0x2d1771=_0x381101['plugins']['get']('TrackChangesEditing'),_0x525ab2=_0x381101['plugins']['has']('LegacyTodoListEditing');function _0x562d9c(_0x2024be){return()=>{const _0x14ca81=_0x381101['model']['document']['selection'],_0x40ca1e=_0x381101['commands']['get'](_0x2024be);if(_0x40ca1e['value'])return void _0x381101['execute']('paragraph',{});const _0x46c2c3=_0x2024be['slice'](0x0,-0x4),_0x5b987f=function(_0x2ebba4,_0x4e50a7,_0x339e66){let _0x4b6852=Array['from'](_0x2ebba4)['filter'](_0x33e9ed=>function(_0x1fee7f,_0x1df659){return _0x1df659['checkChild'](_0x1fee7f['parent'],'listItem')&&!_0x1df659['isObject'](_0x1fee7f);}(_0x33e9ed,_0x339e66));_0x4b6852=_0x4b6852['filter'](_0x4035ad=>!_0x4035ad['is']('element','listItem')||_0x4035ad['getAttribute']('listType')!=_0x4e50a7);const _0x284f25=new Set();for(const _0x4f7e26 of _0x4b6852)_0x4f7e26['is']('element','listItem')?_0x284f25['add'](fe(_0x4f7e26)):_0x284f25['add'](_0x4f7e26);return Array['from'](_0x284f25);}(_0x14ca81['getSelectedBlocks'](),_0x46c2c3,_0x381101['model']['schema']);_0x381101['model']['change'](()=>{for(const _0x2e1526 of _0x5b987f)_0x2d1771['markBlockFormat'](_0x2e1526,{'commandName':_0x2024be,'commandParams':[{'forceValue':!_0x40ca1e['value']}],'formatGroupId':'blockName'},ue(_0x2e1526));});};}function _0x3e78e4(_0x1f8fb0){return()=>{const _0x5367ea=function(_0x5b808a){let _0x221ecb=Array['from'](_0x5b808a);const _0x676ef0=_0x221ecb['findIndex'](_0x395c39=>'listItem'!=_0x395c39['name']);return _0x676ef0>-0x1&&(_0x221ecb=_0x221ecb['slice'](0x0,_0x676ef0)),_0x221ecb;}(_0x381101['model']['document']['selection']['getSelectedBlocks']()),_0x1107a2=_0x381101['model']['createRange'](_0x381101['model']['createPositionAt'](_0x5367ea[0x0],'before'),_0x381101['model']['createPositionAt'](_0x5367ea[_0x5367ea['length']-0x1],'end'));_0x381101['model']['change'](()=>{_0x2d1771['markBlockFormat'](_0x1107a2,{'commandName':_0x1f8fb0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x280db1){const _0x14bf23=new Set();for(const _0x44950f of _0x280db1){let _0x1795e0=_0x44950f['nextSibling'];for(;_0x1795e0&&_0x1795e0['getAttribute']('listIndent')>_0x44950f['getAttribute']('listIndent');)_0x14bf23['add'](_0x1795e0),_0x1795e0=_0x1795e0['nextSibling'];}return Array['from'](_0x14bf23);}(_0x5367ea));});};}_0x2d1771['enableCommand']('numberedList',_0x562d9c('numberedList')),_0x2d1771['enableCommand']('bulletedList',_0x562d9c('bulletedList')),_0x525ab2&&_0x2d1771['enableCommand']('todoList',_0x562d9c('todoList')),_0x2d1771['enableCommand']('indentList',_0x3e78e4('indentList')),_0x2d1771['enableCommand']('outdentList',_0x3e78e4('outdentList')),_0x525ab2&&_0x2d1771['enableCommand']('checkTodoList',()=>{const _0x5c6f31=_0x381101['commands']['get']('checkTodoList'),_0x688c56=Array['from'](_0x5c6f31['_selectedElements']);_0x688c56['filter'](_0x59d188=>_0x59d188['getAttribute']('todoListChecked')!=_0x5c6f31['value']),_0x381101['model']['change'](()=>{for(const _0xc78c17 of _0x688c56)_0x2d1771['markBlockFormat'](_0xc78c17,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5c6f31['value']}]});});}),_0x2d1771['descriptionFactory']['registerElementLabel']('listItem',_0x33e408=>o(_0x530b48,'ELEMENT_LIST_ITEM',_0x33e408)),_0x2d1771['descriptionFactory']['registerDescriptionCallback'](_0x524405=>{if('formatBlock'!=_0x524405['type']&&'formatInline'!=_0x524405['type'])return;const {data:_0x44cf74}=_0x524405;if(_0x44cf74){if('numberedList'==_0x44cf74['commandName']||'bulletedList'==_0x44cf74['commandName']||'todoList'==_0x44cf74['commandName'])switch(_0x44cf74['commandName']['replace']('List','')){case'bulleted':return _0x3e3d44(o(_0x530b48,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e3d44(o(_0x530b48,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e3d44(o(_0x530b48,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44cf74['commandName'])return{'type':'format','content':o(_0x530b48,'*Indent:*\x20%0',o(_0x530b48,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44cf74['commandName'])return{'type':'format','content':o(_0x530b48,'*Outdent:*\x20%0',o(_0x530b48,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44cf74['commandName'])return _0x44cf74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x530b48,'*Check\x20item*')}:{'type':'format','content':o(_0x530b48,'*Uncheck\x20item*')};}function _0x3e3d44(_0x2b3112){return{'type':'format','content':o(_0x530b48,'*Change\x20to:*\x20%0',_0x2b3112)};}});}}function fe(_0x2f08e3){const _0x10b9e6=_0x2f08e3['getAttribute']('listIndent');if(0x0==_0x10b9e6)return _0x2f08e3;let _0x37a1bd=_0x2f08e3;for(;_0x2f08e3['previousSibling']&&_0x2f08e3['previousSibling']['is']('element','listItem');){const _0x3af922=_0x2f08e3['previousSibling']['getAttribute']('listIndent');if(_0x3af922==_0x10b9e6)_0x37a1bd=_0x2f08e3['previousSibling'];else{if(_0x3af922<_0x10b9e6)break;}_0x2f08e3=_0x2f08e3['previousSibling'];}return _0x37a1bd;}function ue(_0x55d59e){const _0x1fb558=[];if(_0x55d59e['is']('element','listItem')&&_0x55d59e['getAttribute']('listIndent')>0x0){let _0x1e979c=_0x55d59e['nextSibling'];for(;_0x1e979c&&'listItem'==_0x1e979c['name']&&_0x1e979c['getAttribute']('listIndent')==_0x55d59e['getAttribute']('listIndent');)_0x1fb558['push'](_0x1e979c),_0x1e979c=_0x1e979c['nextSibling'];}return _0x1fb558;}class W extends _0x2c5c19{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb2d21b=this['editor']['config']['get']('list.properties'),_0x22a2d1=this['editor']['plugins']['get']('TrackChangesEditing');_0xb2d21b['styles']&&_0x22a2d1['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb2d21b['reversed']&&_0x22a2d1['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb2d21b['startIndex']&&_0x22a2d1['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22a2d1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f2046,_0x3dc4fc={}){const _0x23bc72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2821fe=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x23bc72['markMultiRangeBlockFormat'](_0x2821fe,{'commandName':'listStyle','commandParams':[{'type':_0x3dc4fc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x684c80,_0x2a8018={}){const _0x26122d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e88e0=this['_getSuggestionBlocks'](_0x3923b2=>_0x3923b2['is']('element','listItem')&&'numbered'===_0x3923b2['getAttribute']('listType'));if(_0x2e88e0['length']<0x1)return;const _0x298648=_0x2e88e0['map'](_0x9a61e6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x9a61e6,'before'),this['editor']['model']['createPositionAt'](_0x9a61e6,0x0)));this['editor']['model']['change'](()=>{_0x26122d['markMultiRangeBlockFormat'](_0x298648,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a8018['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x58eae6,_0x53aa5a={}){const _0x19d881=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7216fb=this['_getSuggestionBlocks'](_0x21e12c=>_0x21e12c['is']('element','listItem')&&'numbered'===_0x21e12c['getAttribute']('listType'));if(_0x7216fb['length']<0x1)return;const _0x13bb13=_0x7216fb['map'](_0x2537a6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2537a6,'before'),this['editor']['model']['createPositionAt'](_0x2537a6,0x0)));this['editor']['model']['change'](()=>{_0x19d881['markMultiRangeBlockFormat'](_0x13bb13,{'commandName':'listStart','commandParams':[{'startIndex':_0x53aa5a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e4a3c){if('formatBlock'!=_0x5e4a3c['type']&&'formatInline'!=_0x5e4a3c['type'])return;const _0x5ed92b=this['editor']['locale'],{data:_0x174132}=_0x5e4a3c;if(!_0x174132)return;let _0x187595,_0xb8fdce;switch(_0x174132['commandName']){case'listStyle':_0x187595='*Change\x20to:*\x20%0',_0xb8fdce={'type':'format','content':o(_0x5ed92b,_0x187595,o(_0x5ed92b,this['_getTranslationKeyForListStyle'](_0x174132['commandParams'][0x0]['type'])))};break;case'listReversed':_0x187595=_0x174132['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb8fdce={'type':'format','content':o(_0x5ed92b,_0x187595)};break;case'listStart':_0x187595='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb8fdce={'type':'format','content':o(_0x5ed92b,_0x187595,_0x174132['commandParams'][0x0]['startIndex'])};}return _0xb8fdce;}['_getSuggestionBlocksForListStyle'](){const _0x17e685=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d78e9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5d78e9[0x0]?.['is']('element','listItem')&&_0x5d78e9['unshift'](..._0x17e685['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5d78e9[_0x5d78e9['length']-0x1]?.['is']('element','listItem')&&_0x5d78e9['push'](..._0x17e685['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d78e9=[...new Set(_0x5d78e9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5d78e9=_0x5d78e9['filter'](_0x227355=>_0x227355['is']('element','listItem'))),_0x5d78e9;}['_getSuggestionBlocks'](_0x283d07){const _0x115386=this['editor']['plugins']['get']('LegacyListUtils');let _0x1db66e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x283d07)['map'](_0x12882b=>{const _0x228862=this['editor']['model']['createPositionAt'](_0x12882b,0x0);return[..._0x115386['getSiblingNodes'](_0x228862,'backward'),..._0x115386['getSiblingNodes'](_0x228862,'forward')];})['flat']();return _0x1db66e=[...new Set(_0x1db66e)],_0x1db66e;}['_getTranslationKeyForListStyle'](_0xcc7781){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xcc7781)||'default')['toUpperCase']()+'_LIST_'+_0xcc7781['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2c5c19{['afterInit'](){const _0x8d2ae=this['editor'];if(!_0x8d2ae['plugins']['has']('MediaEmbedEditing'))return;const _0x3238c7=_0x8d2ae['plugins']['get']('TrackChangesEditing'),_0x5d24e1=_0x8d2ae['locale'];_0x3238c7['enableCommand']('mediaEmbed'),_0x3238c7['descriptionFactory']['registerElementLabel']('media',_0x2d4074=>o(_0x5d24e1,'ELEMENT_MEDIA',_0x2d4074)),_0x8d2ae['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x255a61,{writer:_0x48d86c,options:_0x5a3a6d})=>{if(_0x5a3a6d['showSuggestionHighlights'])return _0x48d86c['createEmptyElement']('div');},'converterPriority':'high'}),_0x8d2ae['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3289f7,_0x188452,_0x97873c)=>{_0x97873c['options']['showSuggestionHighlights']&&_0x3289f7['stop']();},{'priority':'high'});}}class mt extends _0x2c5c19{['afterInit'](){const _0x3a4cf2=this['editor'];_0x3a4cf2['plugins']['has']('MentionEditing')&&_0x3a4cf2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2c5c19{['afterInit'](){const _0x3446a0=this['editor'];if(!_0x3446a0['plugins']['has']('MergeFieldsEditing'))return;_0x3446a0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x3446a0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2c6165=_0x3446a0['plugins']['get']('TrackChangesEditing'),_0x238c71=_0x3446a0['locale'];_0x2c6165['descriptionFactory']['registerElementLabel']('mergeField',_0x16622c=>o(_0x238c71,'ELEMENT_MERGE_FIELD',_0x16622c)),_0x2c6165['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x282e6f=>o(_0x238c71,'ELEMENT_MERGE_FIELD',_0x282e6f)),_0x2c6165['descriptionFactory']['registerDescriptionCallback'](_0x4bef84=>{if('insertion'!=_0x4bef84['type']&&'deletion'!=_0x4bef84['type'])return;const _0x202288=_0x4bef84['getContainedElement']();if(null==_0x202288)return;if(!_0x202288['is']('element','mergeField')&&!_0x202288['is']('element','mergeFieldBlock'))return;const _0x40328d=_0x3446a0['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x202288['getAttribute']('id'));return'insertion'==_0x4bef84['type']?{'type':'insertion','content':o(_0x238c71,'*Insert:*\x20%0','\x22'+_0x40328d+'\x22\x20'+o(_0x238c71,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x238c71,'*Remove:*\x20%0','\x22'+_0x40328d+'\x22\x20'+o(_0x238c71,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2c5c19{['afterInit'](){const _0x2d03ad=this['editor'],_0x2f2064=_0x2d03ad['plugins']['get']('TrackChangesEditing');_0x2d03ad['plugins']['has']('MultiLevelList')&&(_0x2f2064['enableDefaultAttributesIntegration']('multiLevelList'),_0x2f2064['registerBlockAttribute']('listMarkerStyle'),_0x2f2064['descriptionFactory']['registerDescriptionCallback'](_0x102dfc=>this['handleDescriptions'](_0x102dfc)));}['handleDescriptions'](_0x3c61f4){const _0x1125fd=this['editor']['locale'],{data:_0x38ff45}=_0x3c61f4,_0x33fb94={'type':'format','content':''};if(_0x38ff45&&'listMarkerStyle'==_0x38ff45['key']){if(!_0x38ff45['oldValue'])return{'type':'format','content':o(_0x1125fd,'*Set\x20format:*\x20%0',o(_0x1125fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38ff45['newValue']+')'};if(!_0x38ff45['newValue']){let _0x45415f=_0x3c61f4['head'];for(;_0x45415f;){if(_0x45415f['data']&&'listType'==_0x45415f['data']['key']&&_0x45415f['data']['newValue'])return _0x33fb94;_0x45415f=_0x45415f['next'];}return{'type':'format','content':o(_0x1125fd,'*Remove\x20format:*\x20%0',o(_0x1125fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38ff45['oldValue']+')'};}}}}class kt extends _0x2c5c19{['afterInit'](){const _0x54501f=this['editor'];if(!_0x54501f['plugins']['has']('PageBreakEditing'))return;_0x54501f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5ccbb4=_0x54501f['plugins']['get']('TrackChangesEditing'),_0x11b69b=_0x54501f['locale'];_0x5ccbb4['descriptionFactory']['registerElementLabel']('pageBreak',_0x213667=>o(_0x11b69b,'ELEMENT_PAGE_BREAK',_0x213667));}}class bt extends _0x2c5c19{['afterInit'](){const _0x2c3221=this['editor'];if(!_0x2c3221['plugins']['has']('Paragraph'))return;const _0x2f4829=_0x2c3221['locale'],_0x4547fb=_0x2c3221['plugins']['get']('TrackChangesEditing');_0x4547fb['descriptionFactory']['registerElementLabel']('paragraph',_0x2a0111=>o(_0x2f4829,'ELEMENT_PARAGRAPH',_0x2a0111)),_0x4547fb['enableDefaultAttributesIntegration']('paragraph'),_0x4547fb['enableCommand']('insertParagraph'),_0x2c3221['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2c3221),{'priority':'highest'}),_0x2c3221['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c131e,_0x378fdf,_0x23a52d)=>{_0x23a52d['options']['showSuggestionHighlights']&&nr(_0x2c3221,{'showActiveMarker':!0x1})(_0x5c131e,_0x378fdf,_0x23a52d);},{'priority':'highest'});const _0x2c6b28=_0x4547fb['descriptionFactory'];_0x2c6b28['registerDescriptionCallback'](_0xad7740=>{if('insertion'!==_0xad7740['type'])return;const {start:_0x34ebe2,end:_0x5e6007}=_0xad7740['getFirstRange']();if(!_0x34ebe2['isTouching'](_0x5e6007)||!_0x34ebe2['nodeAfter'])return;const _0x1d70d6=_0x2c3221['model']['schema'],_0x5479ef=_0x34ebe2['nodeAfter'];return _0x1d70d6['isBlock'](_0x5479ef)&&!_0x1d70d6['isLimit'](_0x5479ef)&&_0x1d70d6['checkChild'](_0x5479ef,'$text')?{'type':'insertion','content':o(_0x2f4829,'*Insert:*\x20%0',_0x2c6b28['getItemLabel'](_0x5479ef,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59957d=this['editor'],_0x58f0a8=_0x59957d['locale'];_0x59957d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7a09=>{if('formatBlock'!=_0x1b7a09['type'])return;const {data:_0x405830}=_0x1b7a09;return _0x405830&&'paragraph'==_0x405830['commandName']?{'type':'format','content':o(_0x58f0a8,'*Change\x20to:*\x20%0',o(_0x58f0a8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x55f1a5,{showActiveMarker:_0x23735f=!0x0}={}){return(_0x373611,_0x17e503,_0x333cbe)=>{const _0x45bd6e=_0x55f1a5['plugins']['get']('TrackChangesEditing'),_0x208bb8=_0x17e503['markerRange']['start'],_0x18331e=_0x17e503['markerRange']['end'],_0x395007=_0x55f1a5['model']['schema'];if(!_0x208bb8['isTouching'](_0x18331e)||!_0x208bb8['nodeAfter'])return;const _0x212b86=_0x208bb8['nodeAfter'];if(_0x395007['isBlock'](_0x212b86)&&!_0x395007['isLimit'](_0x212b86)&&_0x395007['checkChild'](_0x212b86,'$text')){if(!_0x333cbe['consumable']['consume'](_0x17e503['markerRange'],_0x373611['name']))return;const {authorId:_0x5b3eb3}=_0x45bd6e['_splitMarkerName'](_0x17e503['markerName']),_0xab65e3=_0x333cbe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5b3eb3}),_0x2e97e4=_0x333cbe['mapper']['toViewPosition'](_0x18331e);_0x23735f&&_0x45bd6e['activeMarkers']['includes'](_0x17e503['markerName'])&&_0x333cbe['writer']['addClass']('ck-suggestion-marker--active',_0xab65e3),_0x333cbe['writer']['insert'](_0x2e97e4,_0xab65e3),_0x333cbe['mapper']['bindElementToMarker'](_0xab65e3,_0x17e503['markerName']);}};}class wt extends _0x2c5c19{['afterInit'](){const _0x49da6b=this['editor'];if(!_0x49da6b['plugins']['has']('RemoveFormatEditing'))return;_0x49da6b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55f4aa=this['editor'];_0x55f4aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x679c20=>{if('formatBlock'!=_0x679c20['type']&&'formatInline'!=_0x679c20['type'])return;const {data:_0x2f8ffe}=_0x679c20;return _0x2f8ffe&&'removeFormat'==_0x2f8ffe['commandName']?{'type':'format','content':o(_0x55f4aa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2c5c19{['afterInit'](){const _0x30996f=this['editor'];if(!_0x30996f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1039e7=_0x30996f['plugins']['get']('TrackChangesEditing');_0x1039e7['enableCommand']('goToPreviousRestrictedEditingException'),_0x1039e7['enableCommand']('goToNextRestrictedEditingException');const _0x4f62e3=_0x30996f['plugins']['get']('RestrictedEditingModeEditing');_0x4f62e3['enableCommand']('trackChanges'),_0x4f62e3['enableCommand']('acceptSuggestion'),_0x4f62e3['enableCommand']('discardSuggestion'),_0x4f62e3['enableCommand']('acceptAllSuggestions'),_0x4f62e3['enableCommand']('discardAllSuggestions'),_0x4f62e3['enableCommand']('acceptSelectedSuggestions'),_0x4f62e3['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2c5c19{static get['requires'](){return[_0x4f1e0f];}['init'](){const _0x572375=this['editor'],_0x1225a9=_0x572375['plugins']['get']('TrackChangesEditing');_0x1225a9['enableCommand']('shiftEnter'),_0x572375['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x572375),{'priority':'high'}),_0x572375['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x572375),{'priority':'high'}),_0x572375['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d3290,_0x4d4ded,_0x27f948)=>{_0x27f948['options']['showSuggestionHighlights']&&ge(_0x572375,{'showActiveMarker':!0x1})(_0x4d3290,_0x4d4ded,_0x27f948);}),_0x1225a9['descriptionFactory']['registerElementLabel']('softBreak',_0x33a2de=>o(_0x572375['locale'],'ELEMENT_LINE_BREAK',_0x33a2de));}}function ge(_0x5ec157,{showActiveMarker:_0x454e87=!0x0}={}){return(_0x259e02,_0x3153d6,_0xe55f62)=>{const _0xc1434e=_0x5ec157['plugins']['get']('TrackChangesEditing');if(!_0xe55f62['consumable']['test'](_0x3153d6['markerRange'],_0x259e02['name']))return;const _0x50c4ae=_0x5ec157['model'];for(const _0x2fa2f4 of _0x3153d6['markerRange']['getItems']()){if(!_0x2fa2f4['is']('element','softBreak'))continue;const _0x86e16b='deletion'==_0x3153d6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x411590}=_0xc1434e['_splitMarkerName'](_0x3153d6['markerName']),_0x10a369=_0xe55f62['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x86e16b,'data-author-id':_0x411590}),_0x175978=_0xe55f62['mapper']['toViewPosition'](_0x50c4ae['createPositionBefore'](_0x2fa2f4));_0x454e87&&_0xc1434e['activeMarkers']['includes'](_0x3153d6['markerName'])&&_0xe55f62['writer']['addClass']('ck-suggestion-marker--active',_0x10a369),_0xe55f62['writer']['insert'](_0x175978,_0x10a369),_0xe55f62['mapper']['bindElementToMarker'](_0x10a369,_0x3153d6['markerName']);}};}class St extends _0x2c5c19{['afterInit'](){const _0x333583=this['editor'],_0x3fcd25=_0x333583['model'],_0x2577f8=_0x333583['locale'];if(!_0x333583['plugins']['has']('StandardEditingModeEditing'))return;const _0x22fc74=_0x333583['plugins']['get']('TrackChangesEditing'),_0x33c2af='restrictedEditingException',_0x441029=_0x333583['commands']['get'](_0x33c2af);_0x22fc74['enableCommand'](_0x33c2af,(_0x4f9848,_0x4ed4b4={})=>{const _0x1caad1=_0x3fcd25['document']['selection'];if(_0x1caad1['isCollapsed'])return void _0x4f9848(_0x4ed4b4);const _0x1f6907=void 0x0!==_0x4ed4b4['forceValue']?_0x4ed4b4['forceValue']:!_0x441029['value'];_0x3fcd25['change'](()=>{const _0x2d9f00=Array['from'](_0x1caad1['getRanges']());for(const _0x3f4ef5 of _0x2d9f00){const _0xeff939=_0x1f6907?[_0x3f4ef5]:io(_0x33c2af,_0x3f4ef5,_0x3fcd25);for(const _0x484738 of _0xeff939)_0x22fc74['markInlineFormat'](_0x484738,{'commandName':_0x33c2af,'commandParams':[{'forceValue':_0x1f6907}]});}});}),_0x22fc74['descriptionFactory']['registerDescriptionCallback'](_0x540d41=>{if('formatBlock'!=_0x540d41['type']&&'formatInline'!=_0x540d41['type'])return;const {data:_0x3377ec}=_0x540d41;return _0x3377ec&&_0x3377ec['commandName']==_0x33c2af?_0x3377ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2577f8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2577f8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2c5c19{['afterInit'](){const _0x30c5b0=this['editor'];if(!_0x30c5b0['plugins']['has']('Style')||!_0x30c5b0['plugins']['has']('DataSchema'))return;const _0x134be4=_0x30c5b0['plugins']['get']('TrackChangesEditing'),_0x223dba=_0x30c5b0['locale'],_0x529581=_0x30c5b0['config']['get']('style')||{},_0x1efc94=_0x30c5b0['plugins']['get']('GeneralHtmlSupport'),_0x4779b5=_0x30c5b0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x30c5b0['plugins']['get']('DataSchema'),_0x529581['definitions']);_0x134be4['enableDefaultAttributesIntegration']('style');const _0x1a2ae0=new Set();for(const _0x5270f8 of _0x4779b5['block']){const _0x29e16f=_0x1efc94['getGhsAttributeNameForElement'](_0x5270f8['element']);_0x1a2ae0['add'](_0x29e16f);}const _0x4cc5a6=new Set();for(const _0x3bf038 of _0x4779b5['inline']){const _0x4b5891=_0x1efc94['getGhsAttributeNameForElement'](_0x3bf038['element']);_0x4cc5a6['add'](_0x4b5891);for(const _0x395bb1 of _0x3bf038['ghsAttributes'])_0x4cc5a6['add'](_0x395bb1);}for(const _0x5d03c8 of _0x1a2ae0)_0x134be4['registerBlockAttribute'](_0x5d03c8),_0x134be4['descriptionFactory']['registerAttributeLabel'](_0x5d03c8,o(_0x223dba,'FORMAT_STYLE'));for(const _0x425b8b of _0x4cc5a6)_0x134be4['registerInlineAttribute'](_0x425b8b),_0x134be4['descriptionFactory']['registerAttributeLabel'](_0x425b8b,o(_0x223dba,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7577bd=this['editor'],_0x1b7fdf=_0x7577bd['locale'];_0x7577bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40750b=>{if('formatBlock'!=_0x40750b['type']&&'formatInline'!=_0x40750b['type'])return;const {data:_0x51d786}=_0x40750b;return _0x51d786&&'style'===_0x51d786['commandName']?_0x51d786['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b7fdf,'*Set\x20format:*\x20%0',_0x51d786['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1b7fdf,'*Remove\x20format:*\x20%0',_0x51d786['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2c5c19{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25b043){super(_0x25b043),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x144e13=this['editor'],_0x2128d8=_0x144e13['model']['document']['selection'];if(!_0x144e13['plugins']['has']('TableEditing'))return;const _0x54c2ac=_0x144e13['locale'],_0x47c84e=_0x144e13['plugins']['get']('TrackChangesEditing'),_0xb23040=_0x144e13['plugins']['get']('TableUtils');_0x47c84e['descriptionFactory']['registerElementLabel']('table',_0x5bae5d=>o(_0x54c2ac,'ELEMENT_TABLE',_0x5bae5d)),this['_setupColumnsRowsFixing'](),_0x47c84e['enableCommand']('insertTable'),_0x47c84e['enableCommand']('selectTableRow'),_0x47c84e['enableCommand']('selectTableColumn');for(const _0x4e9b84 of['insertTableRowAbove','insertTableRowBelow']){const _0x323133=_0x144e13['commands']['get'](_0x4e9b84);_0x47c84e['enableCommand'](_0x4e9b84,_0x6cced=>{_0x144e13['model']['change'](_0x4db819=>{_0x6cced();const _0x38c995='above'===_0x323133['order'],_0x571393=_0xb23040['getSelectionAffectedTableCells'](_0x2128d8),_0x24a707=_0xb23040['getRowIndexes'](_0x571393),_0x4dd15a=_0x38c995?_0x24a707['first']-0x1:_0x24a707['last']+0x1,_0x2b2fa1=_0x571393[0x0]['findAncestor']('table'),_0x478f3d=_0xb23040['createTableWalker'](_0x2b2fa1,{'startRow':_0x4dd15a,'endRow':_0x4dd15a}),_0x201fbc=Array['from'](_0x478f3d)['map'](_0x599113=>_0x4db819['createRangeOn'](_0x599113['cell']));_0x47c84e['markMultiRangeInsertion'](_0x201fbc,'tableRow');});});}for(const _0x542a04 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2361ea=_0x144e13['commands']['get'](_0x542a04);_0x47c84e['enableCommand'](_0x542a04,_0x2acc85=>{_0x144e13['model']['change'](_0x46d427=>{_0x2acc85();const _0x20bc20='left'===_0x2361ea['order'],_0x3f92ca=_0xb23040['getSelectionAffectedTableCells'](_0x2128d8),_0x8f15dd=_0xb23040['getColumnIndexes'](_0x3f92ca),_0xd4d7c5=_0x20bc20?_0x8f15dd['first']-0x1:_0x8f15dd['last']+0x1,_0x3c65bd=_0x3f92ca[0x0]['findAncestor']('table'),_0x4540af=_0xb23040['createTableWalker'](_0x3c65bd,{'startRow':0x0,'column':_0xd4d7c5,'includeAllSlots':!0x1}),_0x3bcd2b=Array['from'](_0x4540af)['map'](_0x1c1e55=>_0x46d427['createRangeOn'](_0x1c1e55['cell']));_0x47c84e['markMultiRangeInsertion'](_0x3bcd2b,'tableColumn');});});}for(const _0x1454ff of['removeTableRow','removeTableColumn']){const _0x45c3c8=_0x1454ff['substr'](0xb),_0x465fbb=_0x45c3c8['toLowerCase'](),_0x2bbba4=_0x465fbb['substr'](0x0,0x3)+'span',_0x432b02='table'+_0x45c3c8,_0xe6beaf='min'+_0x45c3c8,_0x20b3be='max'+_0x45c3c8;_0x47c84e['enableCommand'](_0x1454ff,()=>{_0x144e13['model']['change'](_0x383c25=>{const _0x5dadd1=_0xb23040['getSelectionAffectedTableCells'](_0x2128d8),_0x219686=_0x5dadd1[0x0]['findAncestor']('table');let _0x248cd1;if('removeTableRow'==_0x1454ff){const _0x4ff389=_0xb23040['getRowIndexes'](_0x5dadd1);_0x248cd1={'startRow':_0x4ff389['first'],'endRow':_0x4ff389['last'],'includeAllSlots':!0x0};}else{const _0x46afb2=_0xb23040['getColumnIndexes'](_0x5dadd1);_0x248cd1={'startColumn':_0x46afb2['first'],'endColumn':_0x46afb2['last'],'includeAllSlots':!0x0};}const _0x4db411=_0xb23040['createTableWalker'](_0x219686,_0x248cd1),_0x23c64d=Array['from'](_0x4db411)['map'](({cell:_0x32a9bf})=>_0x32a9bf),_0x19b5bc=be(_0x23c64d['filter'](_0x2da2f2=>_0x2da2f2['hasAttribute'](_0x2bbba4))),_0x4b68e5=be(_0x23c64d['filter'](_0x40a963=>!_0x40a963['hasAttribute'](_0x2bbba4)))['map'](_0x3b6f04=>_0x383c25['createRangeOn'](_0x3b6f04)),_0x1fba91=_0x47c84e['markMultiRangeDeletion'](_0x4b68e5,_0x432b02);if(_0x1fba91&&('tableRow'==_0x1fba91['subType']||'tableColumn'==_0x1fba91['subType'])){const _0x181f8a=this['_getSuggestionCoords'](_0x1fba91);for(const _0x6671a3 of _0x19b5bc){const _0x1c8fc7=_0x383c25['createRangeOn'](_0x6671a3),_0x5cdca7=_0xb23040['getCellLocation'](_0x6671a3),_0xcd702f=_0x6671a3['getAttribute'](_0x2bbba4)-0x1,_0xf5eed7=_0x181f8a[_0xe6beaf],_0xc10964=_0x181f8a[_0x20b3be];_0xf5eed7<=_0x5cdca7[_0x465fbb]&&_0x5cdca7[_0x465fbb]+_0xcd702f<=_0xc10964&&_0x1fba91['addRange'](_0x1c8fc7);}}});});}function _0x23feb8(_0x51b3af){const _0x1003d2=Array['from'](_0x2128d8['getRanges']())['map'](_0x3916c0=>_0x484e63['fromRange'](_0x3916c0));_0x144e13['model']['change'](_0x499500=>{const _0x3b6f39=_0x499500['batch'];_0x51b3af=_0x51b3af['filter'](_0x2f8e58=>'$graveyard'!=_0x2f8e58['root']['rootName']),_0x499500['setSelection'](_0x51b3af),_0x144e13['commands']['get']('removeTableRow')['refresh'](),_0x144e13['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x144e13['model']['enqueueChange'](()=>{_0x144e13['model']['enqueueChange'](_0x3b6f39,_0x448587=>{const _0x55dcdc=_0x1003d2['filter'](_0x31add9=>'$graveyard'!=_0x31add9['root']['rootName']);_0x55dcdc['length']>0x0&&_0x448587['setSelection'](_0x55dcdc);for(const _0x32fcac of _0x1003d2)_0x32fcac['detach']();});});});}function _0x4f8598(_0x310ffe){_0x144e13['model']['change'](_0x31a11a=>{const _0x173daf=Array['from'](_0x2128d8['getRanges']())['map'](_0x4f0f48=>_0x484e63['fromRange'](_0x4f0f48)),_0x20520c=[];for(const _0x49cc69 of _0x310ffe)for(const _0x1fd6ef of _0x49cc69['getItems']({'shallow':!0x0}))_0x20520c['push'](_0x1fd6ef);for(const _0x14befc of _0x20520c)'$graveyard'!=_0x14befc['root']['rootName']&&(_0x31a11a['setSelection'](_0x31a11a['createPositionAt'](_0x14befc,0x0)),_0x144e13['commands']['get']('removeTableColumn')['refresh'](),_0x144e13['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e9ac9=_0x173daf['filter'](_0x5c9b13=>'$graveyard'!=_0x5c9b13['root']['rootName']);_0x4e9ac9['length']>0x0&&_0x31a11a['setSelection'](_0x4e9ac9);for(const _0x4bc03b of _0x173daf)_0x4bc03b['detach']();});}function _0x53914d(_0x392fdd,_0x3b5f55){return _0x3b5f55['every'](_0x35b984=>_0x392fdd['some'](_0x1d2ebf=>_0x1d2ebf['end']['isEqual'](_0x35b984['start'])||_0x35b984['end']['isEqual'](_0x1d2ebf['start'])));}function _0x33a31d(_0x2f579f,_0x2881df){return!_0x2f579f['some'](_0x5dd58a=>_0x2881df['some'](_0x218816=>_0x5dd58a['isIntersecting'](_0x218816)))&&_0x2f579f['some'](_0x2eea44=>_0x2881df['some'](_0x1fd56e=>_0x2eea44['end']['isTouching'](_0x1fd56e['start'])));}_0x144e13['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3422f6,_0x3fb24d,_0x44a70b)=>{if(!_0x44a70b['options']['showSuggestionHighlights'])return;const _0x463456=_0x3fb24d['item'];if(!_0x463456)return;const _0x2c892c=_0x44a70b['mapper']['toViewElement'](_0x463456);function _0x4fa434(_0xc1a559){return Array['isArray'](_0xc1a559)?_0xc1a559:[_0xc1a559];}_0x2c892c&&'tableCell'===_0x463456['name']&&_0x465477(_0x2c892c,_0x44a70b['writer'],(_0x1fa17f,_0x2b2f21,_0x315e73)=>_0x315e73['addClass'](_0x4fa434(_0x2b2f21['classes']),_0x1fa17f),(_0x521849,_0x1b4d85,_0x1ffb62)=>_0x1ffb62['removeClass'](_0x4fa434(_0x1b4d85['classes']),_0x521849));},{'priority':'highest'}),_0x47c84e['descriptionFactory']['registerDescriptionCallback'](_0x68b93d=>{if('insertion'!=_0x68b93d['type']&&'deletion'!=_0x68b93d['type'])return;const _0x1fc913=_0x68b93d['getContainedElement']();if(null!=_0x1fc913&&_0x1fc913['is']('element','table')){if('insertion'==_0x68b93d['type']){const _0x4512bd=_0x68b93d['getItems']()['filter'](_0x42f89c=>_0x42f89c['is']('$textProxy'))['map'](_0x445259=>_0x445259['data']);if(_0x4512bd['length'])return{'type':'insertion','content':o(_0x54c2ac,'*Insert:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4512bd['join']('\x20')+'\x22'))};}if('deletion'==_0x68b93d['type']){const _0xf70653=_0x68b93d['getItems']()['filter'](_0x595973=>_0x595973['is']('$textProxy'))['map'](_0x15f7d7=>_0x15f7d7['data']);if(_0xf70653['length'])return{'type':'deletion','content':o(_0x54c2ac,'*Remove:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf70653['join']('\x20')+'\x22'))};}}}),_0x47c84e['descriptionFactory']['registerDescriptionCallback'](_0x48c2f9=>{if('tableRow'==_0x48c2f9['subType']){const _0x1fdfbb=_0x48c2f9['getItems']()['filter'](_0x264928=>_0x264928['is']('$textProxy'))['map'](_0xce1cff=>_0xce1cff['data']),_0x563193=this['_getSuggestionCoords'](_0x48c2f9),_0x1960c9=_0x563193['maxRow']-_0x563193['minRow']+0x1;if('insertion'==_0x48c2f9['type'])return _0x1fdfbb['length']?{'type':'insertion','content':o(_0x54c2ac,'*Insert:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1960c9,'\x22'+_0x1fdfbb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54c2ac,'*Insert:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_ROW',_0x1960c9))};if('deletion'==_0x48c2f9['type'])return _0x1fdfbb['length']?{'type':'deletion','content':o(_0x54c2ac,'*Remove:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1960c9,'\x22'+_0x1fdfbb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54c2ac,'*Remove:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_ROW',_0x1960c9))};}if('tableColumn'==_0x48c2f9['subType']){const _0x1c245a=_0x48c2f9['getItems']()['filter'](_0x3668ad=>_0x3668ad['is']('$textProxy'))['map'](_0x3e9eb8=>_0x3e9eb8['data']),_0x4d8083=this['_getSuggestionCoords'](_0x48c2f9),_0x4f9d2f=_0x4d8083['maxColumn']-_0x4d8083['minColumn']+0x1;if('insertion'==_0x48c2f9['type'])return _0x1c245a['length']?{'type':'insertion','content':o(_0x54c2ac,'*Insert:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d2f,'\x22'+_0x1c245a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54c2ac,'*Insert:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_COLUMN',_0x4f9d2f))};if('deletion'==_0x48c2f9['type'])return _0x1c245a['length']?{'type':'deletion','content':o(_0x54c2ac,'*Remove:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d2f,'\x22'+_0x1c245a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54c2ac,'*Remove:*\x20%0',o(_0x54c2ac,'ELEMENT_TABLE_COLUMN',_0x4f9d2f))};}}),_0x47c84e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x23feb8),_0x47c84e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x23feb8),_0x47c84e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4f8598),_0x47c84e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4f8598),_0x47c84e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x53914d),_0x47c84e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x53914d),_0x47c84e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x33a31d),_0x47c84e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x33a31d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5be57d=this['editor'],_0x4dcc0d=_0x5be57d['model']['document']['selection'];return(_0xaa1d53,_0x235830)=>{_0x5be57d['model']['change'](_0x56216f=>{const {commandName:_0x18fc03,commandParams:_0x979ec6}=_0x235830;let _0x44e8c8=_0xaa1d53[0x0]['end']['nodeBefore'];_0x979ec6&&_0x979ec6[0x0]&&!0x1===_0x979ec6[0x0]['forceValue']&&(_0x44e8c8=_0xaa1d53[0x0]['start']['nodeAfter']);const _0x4a815b=_0x56216f['createRangeIn'](_0x44e8c8);if('$graveyard'==_0x4a815b['root']['rootName'])return;const _0x344527=Array['from'](_0x4dcc0d['getRanges']())['map'](_0x900171=>_0x484e63['fromRange'](_0x900171));_0x56216f['setSelection'](_0x4a815b),_0x5be57d['commands']['get'](_0x18fc03)['refresh'](),_0x979ec6['push']({'forceDefaultExecution':!0x0}),_0x5be57d['execute'](_0x18fc03,..._0x979ec6);const _0x43e898=_0x344527['filter'](_0x4dc35a=>'$graveyard'!=_0x4dc35a['root']['rootName']);_0x43e898['length']>0x0&&_0x56216f['setSelection'](_0x43e898);for(const _0x1bf4cb of _0x344527)_0x1bf4cb['detach']();});};}['_getCoordsForCells'](_0x49726d){const _0x413280=this['editor']['plugins']['get']('TableUtils');let _0x5adb36=Number['MAX_SAFE_INTEGER'],_0x52295a=Number['MIN_SAFE_INTEGER'],_0x4132e1=Number['MAX_SAFE_INTEGER'],_0x5a9369=Number['MIN_SAFE_INTEGER'];for(const _0x79e32c of _0x49726d){if('$graveyard'==_0x79e32c['root']['rootName'])continue;const {row:_0x4e7497,column:_0x9d3b0}=_0x413280['getCellLocation'](_0x79e32c),_0x49c18c=_0x79e32c['hasAttribute']('rowspan')?_0x79e32c['getAttribute']('rowspan')-0x1:0x0,_0xe59b2a=_0x79e32c['hasAttribute']('colspan')?_0x79e32c['getAttribute']('colspan')-0x1:0x0;_0x5adb36=_0x4e7497<_0x5adb36?_0x4e7497:_0x5adb36,_0x52295a=_0x4e7497+_0x49c18c>_0x52295a?_0x4e7497+_0x49c18c:_0x52295a,_0x4132e1=_0x9d3b0<_0x4132e1?_0x9d3b0:_0x4132e1,_0x5a9369=_0x9d3b0+_0xe59b2a>_0x5a9369?_0x9d3b0+_0xe59b2a:_0x5a9369;}return{'minRow':_0x5adb36,'maxRow':_0x52295a,'minColumn':_0x4132e1,'maxColumn':_0x5a9369};}['_setupColumnsRowsFixing'](){const _0x13412d=this['editor'],_0x36caec=_0x13412d['plugins']['get']('TrackChangesEditing'),_0x55e0ad=_0x13412d['plugins']['get']('TableUtils');_0x13412d['model']['document']['on']('change:data',()=>{const _0x162ebb=Array['from'](_0x13412d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x291795,data:_0x2f18e0}of _0x162ebb){const {group:_0x4fffb6,id:_0x46c66d,subType:_0x195eea}=_0x36caec['_splitMarkerName'](_0x291795);if('suggestion'!=_0x4fffb6)continue;if(null!=_0x2f18e0['oldRange'])continue;const _0x385be8=_0x36caec['getSuggestion'](_0x46c66d);this['_tablePostFixingSubtypes']['includes'](_0x195eea)&&this['_tableSuggestions']['add'](_0x385be8);}},{'priority':'low'});const _0x36b7c9=(_0x22b88a,_0x44a9ac)=>{let _0x4b6dea=!0x1;const _0x5d284c=_0x44a9ac['createRangeOn'](_0x22b88a),_0x58a7a2=_0x22b88a['findAncestor']('table'),_0x543426=_0x55e0ad['getCellLocation'](_0x22b88a);for(const _0xf6890d of this['_tableSuggestions']){const _0x20fc42=_0xf6890d['subType'],_0x5d4f71=_0x20fc42['startsWith']('tablePaste'),_0x1124be=_0x20fc42['substr'](_0x5d4f71?0xa:0x5),_0x469709=_0x1124be['toLowerCase'](),_0x299694=_0x469709['substr'](0x0,0x3)+'span',_0x240e06='min'+_0x1124be,_0x2fa434='max'+_0x1124be;if(!_0xf6890d['isInContent'])continue;if(_0x58a7a2!=_0xf6890d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf6890d['isIntersectingWithRange'](_0x5d284c))continue;const _0x2dece9=_0x22b88a['hasAttribute'](_0x299694)?_0x22b88a['getAttribute'](_0x299694)-0x1:0x0,_0x4c02fb=this['_getSuggestionCoords'](_0xf6890d),_0x1a8eae=_0x4c02fb[_0x240e06],_0x1ffe33=_0x4c02fb[_0x2fa434];_0x1a8eae<=_0x543426[_0x469709]&&_0x543426[_0x469709]+_0x2dece9<=_0x1ffe33&&(_0xf6890d['addRange'](_0x5d284c),_0x4b6dea=!0x0);}return _0x4b6dea;};_0x13412d['model']['document']['registerPostFixer'](_0x4b9b2b=>{let _0x3fa845=!0x1;for(const _0x18a094 of _0x13412d['model']['document']['differ']['getChanges']())if('insert'==_0x18a094['type']){if('tableRow'==_0x18a094['name']){for(const _0x4485fe of _0x18a094['position']['nodeAfter']['getChildren']())_0x3fa845=_0x3fa845||_0x36b7c9(_0x4485fe,_0x4b9b2b);}else'tableCell'==_0x18a094['name']&&(_0x3fa845=_0x3fa845||_0x36b7c9(_0x18a094['position']['nodeAfter'],_0x4b9b2b));}return _0x3fa845;});}['_getSuggestionCoords'](_0x5f206c){return this['_getCoordsForCells'](_0x5f206c['getRanges']()['map'](_0x4b6f20=>_0x4b6f20['start']['nodeAfter']));}}function be(_0x44abd9){return Array['from'](new Set(_0x44abd9)['values']());}class vt extends _0x2c5c19{static get['requires'](){return[It];}['afterInit'](){const _0x1498ce=this['editor'],_0x1d0955=_0x1498ce['model']['document']['selection'],_0x256831=_0x1498ce['locale'];if(!_0x1498ce['plugins']['has']('TableEditing'))return;const _0x431370=_0x1498ce['plugins']['get']('TrackChangesEditing'),_0x3e1dc9=_0x1498ce['plugins']['get']('TableUtils'),_0x34f750=_0x1498ce['plugins']['get'](It);_0x34f750['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x431370['enableCommand']('mergeTableCells',()=>{const _0x5d95e2=_0x3e1dc9['getSelectionAffectedTableCells'](_0x1498ce['model']['document']['selection']);_0x1498ce['model']['change'](()=>{_0x431370['markMultiRangeBlockFormat'](_0x5d95e2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1498ce['commands']['get']('mergeTableCells')['on']('execute',(_0x2e7b3e,_0x4f29bc)=>{_0x1498ce['commands']['get']('trackChanges')['value']&&(_0x4f29bc['length']>0x0&&_0x4f29bc[_0x4f29bc['length']-0x1]&&_0x4f29bc[_0x4f29bc['length']-0x1]['forceDefaultExecution']||_0x431370['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2e7b3e['stop']());},{'priority':'highest'});for(const _0x8a556 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x162695=_0x1498ce['commands']['get'](_0x8a556);_0x431370['enableCommand'](_0x8a556,()=>{const _0x27d26a=_0x1498ce['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a5c25=>_0x2a5c25['is']('element','tableCell')),_0x372570=_0x162695['value'];_0x1498ce['model']['change'](()=>{_0x431370['markMultiRangeBlockFormat']([_0x27d26a,_0x372570],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d56a7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xcb7b73=_0x1498ce['commands']['get'](_0x4d56a7);_0x431370['enableCommand'](_0x4d56a7,()=>{const _0x49bc0b=_0x3e1dc9['getSelectionAffectedTableCells'](_0x1498ce['model']['document']['selection'])[0x0],_0x1399f5=_0x49bc0b['findAncestor']('table'),{column:_0x38621f,row:_0x4615f5}=_0x3e1dc9['getCellLocation'](_0x49bc0b);let _0x4bff73=[];if('horizontally'==_0xcb7b73['direction']){const _0x9c161c=_0x3e1dc9['createTableWalker'](_0x1399f5,{'startRow':_0x4615f5,'endRow':_0x4615f5,'includeAllSlots':!0x0});_0x4bff73=Array['from'](_0x9c161c)['map'](_0x411100=>_0x411100['cell']);}else{const _0x54ba7d=_0x3e1dc9['createTableWalker'](_0x1399f5,{'column':_0x38621f,'includeAllSlots':!0x0});_0x4bff73=Array['from'](_0x54ba7d)['map'](_0x2ca0cb=>_0x2ca0cb['cell']);}_0x1498ce['model']['change'](_0x4e81ab=>{_0x431370['markBlockFormat'](_0x4e81ab['createRangeOn'](_0x49bc0b),{'commandName':_0x4d56a7,'commandParams':[]},_0x4bff73,_0x4d56a7);});});}_0x431370['descriptionFactory']['registerDescriptionCallback'](_0x2cc8d7=>{if('formatBlock'!=_0x2cc8d7['type']&&'formatInline'!=_0x2cc8d7['type'])return;const {data:_0x18641a}=_0x2cc8d7;return _0x18641a&&'mergeTableCells'==_0x18641a['commandName']?{'type':'format','content':o(_0x256831,'*Merge\x20cells*')}:void 0x0;}),_0x431370['descriptionFactory']['registerDescriptionCallback'](_0x438552=>{if('formatBlock'!=_0x438552['type']&&'formatInline'!=_0x438552['type'])return;const {data:_0x1ab6e3}=_0x438552;return _0x1ab6e3?'splitTableCellVertically'==_0x1ab6e3['commandName']?{'type':'format','content':o(_0x256831,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1ab6e3['commandName']?{'type':'format','content':o(_0x256831,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x263b38=_0x34f750['_acceptFormatSuggestionCallbackFactory']();for(const _0xff95f9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x431370['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xff95f9,'accept',_0x263b38);for(const _0x28c2b7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x431370['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28c2b7,'accept',_0x263b38);_0x431370['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4d81bb=>{_0x1498ce['model']['change'](_0x204284=>{const _0x426c7e=Array['from'](_0x1d0955['getRanges']())['map'](_0x277d0a=>_0x484e63['fromRange'](_0x277d0a));_0x204284['setSelection'](_0x4d81bb),_0x1498ce['commands']['get']('mergeTableCells')['refresh'](),_0x1498ce['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3980c1=_0x426c7e['filter'](_0x5a9f34=>'$graveyard'!=_0x5a9f34['root']['rootName']);_0x3980c1['length']>0x0&&_0x204284['setSelection'](_0x3980c1);for(const _0x35f44e of _0x426c7e)_0x35f44e['detach']();});});for(const _0xf83ee5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x88b304=_0x1498ce['commands']['get'](_0xf83ee5);_0x88b304['on']('set:isEnabled',(_0x41b86e,_0x2f26ed,_0x32a62a)=>{if(_0x32a62a){const _0x4a0f95=_0x1498ce['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x96df38=>_0x96df38['is']('element','tableCell'));this['_areMergableCells'](_0x88b304['value'],_0x4a0f95)||(_0x41b86e['return']=!0x1,_0x41b86e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3f08c3=this['editor']['commands']['get']('mergeTableCells'),_0x1bec8f=this['editor']['plugins']['get']('TableUtils');if(!_0x3f08c3['isEnabled'])return!0x1;const _0x28d5d1=_0x1bec8f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x431b62 of _0x28d5d1)for(const _0x52da17 of _0x28d5d1)if(_0x431b62!=_0x52da17&&!this['_areMergableCells'](_0x431b62,_0x52da17))return!0x1;return!0x0;}['_areMergableCells'](_0x3cab76,_0xb19123){const _0x1afa7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26ff22=this['editor']['model']['createRangeOn'](_0x3cab76),_0x54dac9=this['editor']['model']['createRangeOn'](_0xb19123),_0x19f20f=new Set(),_0x2cc314=new Set();for(const _0xebcfc2 of _0x1afa7e['getSuggestions']())if(('insertion'==_0xebcfc2['type']||'deletion'==_0xebcfc2['type']||'mergeTableCells'==_0xebcfc2['subType'])&&_0xebcfc2['isInContent']){for(const _0x316715 of _0xebcfc2['getRanges']())_0x316715['containsRange'](_0x26ff22,!0x0)&&_0x19f20f['add'](_0xebcfc2['type']+':'+_0xebcfc2['author']['id']),_0x316715['containsRange'](_0x54dac9,!0x0)&&_0x2cc314['add'](_0xebcfc2['type']+':'+_0xebcfc2['author']['id']);}if(_0x19f20f['size']!=_0x2cc314['size'])return!0x1;for(const _0x4c37bb of _0x19f20f)if(!_0x2cc314['has'](_0x4c37bb))return!0x1;return!0x0;}}class Ct extends _0x2c5c19{static get['requires'](){return[It];}['afterInit'](){const _0x15f782=this['editor'];if(!_0x15f782['plugins']['has']('TableEditing'))return;const _0x53052a=_0x15f782['locale'],_0x4776d0=_0x15f782['plugins']['get']('TrackChangesEditing');_0x4776d0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4776d0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4776d0['registerBlockAttribute']('headingRows'),_0x4776d0['registerBlockAttribute']('headingColumns'),_0x4776d0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53052a,'FORMAT_HEADER_ROW')),_0x4776d0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53052a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5217bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d41a0=this['editor']['plugins']['get']('TableUtils'),_0x281f3b=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2cf55e({showActiveMarker:_0x2156c6=!0x0,setDataAttribute:_0x58e746=!0x0}={}){return(_0x4946c2,_0x1c182b,_0x2617ad)=>{const {type:_0x554989,id:_0x2641e6}=_0x5217bb['_splitMarkerName'](_0x1c182b['markerName']),_0x44d8cd=_0x5217bb['getSuggestion'](_0x2641e6),_0x4b8e51=_0x44d8cd['data'];if('formatBlock'!=_0x44d8cd['type']||!_0x4b8e51||'setTableColumnHeader'!=_0x4b8e51['commandName'])return;if(_0x1c182b['item'])return void _0x4946c2['stop']();if(!_0x2617ad['consumable']['consume'](_0x1c182b['markerRange'],_0x4946c2['name']))return;const _0x34e8bd=_0x1c182b['markerRange']['start']['nodeAfter'],_0x130ef1=_0x1c182b['markerRange']['end']['nodeBefore'],_0x206f61=_0x34e8bd['parent']['parent'],{column:_0x59ba6d}=_0x4d41a0['getCellLocation'](_0x34e8bd),{column:_0x19504a}=_0x4d41a0['getCellLocation'](_0x130ef1);for(let _0x3f7c58=_0x59ba6d;_0x3f7c58<=_0x19504a;_0x3f7c58++){const _0xd5de8f=_0x4d41a0['createTableWalker'](_0x206f61,{'column':_0x3f7c58,'includeAllSlots':!0x1});for(const _0x35139d of _0xd5de8f){const _0x4969fb=_0x35139d['cell'],_0x1b5c8d=_0x2617ad['mapper']['toViewElement'](_0x4969fb);_0x2617ad['writer']['addClass']('ck-suggestion-marker-'+_0x554989,_0x1b5c8d),_0x58e746&&_0x2617ad['writer']['setAttribute']('data-suggestion',_0x2641e6,_0x1b5c8d),_0x2617ad['mapper']['bindElementToMarker'](_0x1b5c8d,_0x1c182b['markerName']),_0x2156c6&&(_0x5217bb['activeMarkers']['includes'](_0x1c182b['markerName'])?_0x2617ad['writer']['addClass']('ck-suggestion-marker--active',_0x1b5c8d):_0x2617ad['writer']['removeClass']('ck-suggestion-marker--active',_0x1b5c8d));}}};}_0x5217bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x281f3b),_0x5217bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x281f3b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2cf55e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2bb825,_0x462a3f,_0x423583)=>{_0x423583['options']['showSuggestionHighlights']&&_0x2cf55e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2bb825,_0x462a3f,_0x423583);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x7b2d08,_0x2326f5,_0x570862)=>{const {type:_0x394a77,id:_0x40665a}=_0x5217bb['_splitMarkerName'](_0x2326f5['markerName']),_0x3812d2=_0x5217bb['getSuggestion'](_0x40665a),_0x589548=_0x3812d2['data'];if('formatBlock'!=_0x3812d2['type']||!_0x589548||'setTableColumnHeader'!=_0x589548['commandName'])return;const _0x5934a8=_0x570862['mapper']['markerNameToElements'](_0x2326f5['markerName']);if(_0x5934a8){for(const _0x35f8d2 of _0x5934a8)_0x570862['writer']['removeClass']('ck-suggestion-marker-'+_0x394a77,_0x35f8d2),_0x570862['writer']['removeClass']('ck-suggestion-marker--active',_0x35f8d2),_0x570862['writer']['removeAttribute']('data-suggestion',_0x35f8d2),_0x570862['mapper']['unbindElementFromMarkerName'](_0x35f8d2,_0x2326f5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4551fd=this['editor'],_0x3f4dd1=_0x4551fd['locale'];function _0xe9cc04(_0x2aa0e5){return{'type':'format','content':o(_0x3f4dd1,'*Format:*\x20%0',_0x2aa0e5)};}_0x4551fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42d26c=>{if('formatBlock'!=_0x42d26c['type'])return;const {data:_0x154a7c}=_0x42d26c;if(_0x154a7c){if('setTableRowHeader'==_0x154a7c['commandName']){const _0xb989c1=_0x154a7c['commandParams'][0x0]['forceValue'];return _0xe9cc04(o(_0x3f4dd1,_0xb989c1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x154a7c['commandName']){const _0x3e1573=_0x154a7c['commandParams'][0x0]['forceValue'];return _0xe9cc04(o(_0x3f4dd1,_0x3e1573?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3d5d74=>[_0x3d5d74,null]));class _t extends _0x2c5c19{static get['requires'](){return[It];}['afterInit'](){const _0x5784f4=this['editor'];if(!_0x5784f4['plugins']['has']('TableClipboard'))return;const _0x1bf776=_0x5784f4['plugins']['get']('TrackChangesEditing'),_0x5beb65=_0x5784f4['plugins']['get']('TableUtils'),_0x5a7d57=_0x5784f4['plugins']['get'](It),_0x3e1ff0=_0x5784f4['plugins']['get']('TableClipboard');_0x5a7d57['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5784f4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5784f4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x63d9a1=null;_0x5784f4['model']['on']('insertContent',(_0x2124bf,_0x4bc149)=>{const [_0x1e6623,_0x2e770c]=_0x4bc149,_0x2e4fd9=_0x4bc149[_0x4bc149['length']-0x1];_0x2e4fd9&&_0x2e4fd9['forceDefaultExecution']||_0x1bf776['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x468d53,_0x27f901,_0x236e9c,_0x21fbc5,_0x10524d){if(_0x27f901&&!_0x27f901['is']('documentSelection'))return!0x1;const _0xf6ee7b=_0x10524d['getTableIfOnlyTableInContent'](_0x468d53,_0x236e9c);if(!_0xf6ee7b||!Re(_0xf6ee7b,void 0x0,_0x21fbc5))return!0x1;const _0x5db161=_0x21fbc5['getSelectionAffectedTableCells'](_0x236e9c['document']['selection']);if(!_0x5db161['length'])return!0x1;const _0x1589fd=_0x5db161[0x0]['findAncestor']('table'),_0x25ee76=_0x21fbc5['getRowIndexes'](_0x5db161),_0x53bbe7=_0x21fbc5['getColumnIndexes'](_0x5db161),_0x161b52={'startRow':_0x25ee76['first'],'endRow':_0x25ee76['last'],'startColumn':_0x53bbe7['first'],'endColumn':_0x53bbe7['last']};return 0x1==_0x5db161['length']&&(_0x161b52['endRow']+=_0x21fbc5['getRows'](_0xf6ee7b)-0x1,_0x161b52['endColumn']+=_0x21fbc5['getColumns'](_0xf6ee7b)-0x1),Re(_0x1589fd,_0x161b52,_0x21fbc5);}(_0x1e6623,_0x2e770c,_0x5784f4['model'],_0x5beb65,_0x3e1ff0)&&(_0x2124bf['stop'](),_0x63d9a1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5784f4['model']['change'](()=>{_0x5784f4['model']['insertContent'](_0x4bc149[0x0],_0x4bc149[0x1],_0x4bc149[0x2],{'forceDefaultExecution':!0x0});const _0x4a83e1=_0x29fcde(),{rowInsertionRanges:_0xc5d4c3,columnInsertionRanges:_0x50b066,insertionRanges:_0x4728fd,deletionRanges:_0xf695ac,cells:_0xd2b57d}=_0x63d9a1;_0xc5d4c3['length']&&_0x1bf776['markMultiRangeInsertion'](_0xc5d4c3,'tablePasteRow',{'tablePasteChainId':_0x4a83e1}),_0x50b066['length']&&_0x1bf776['markMultiRangeInsertion'](_0x50b066,'tablePasteColumn',{'tablePasteChainId':_0x4a83e1}),_0x4728fd['length']&&(_0x1bf776['markMultiRangeInsertion'](_0x4728fd,'tablePaste',{'tablePasteChainId':_0x4a83e1,'skipNestingCheck':!0x0}),_0x4728fd['forEach'](_0xc636af=>_0xc636af['detach']?.())),_0xf695ac['length']&&(_0x1bf776['markMultiRangeDeletion'](_0xf695ac,'tablePaste',{'tablePasteChainId':_0x4a83e1,'skipNestingCheck':!0x0}),_0xf695ac['forEach'](_0x2ac29b=>_0x2ac29b['detach']?.()));const _0xfedfe6=_0x1bf776['markMultiRangeBlockFormat'](_0xd2b57d['map'](({element:_0xe22bf0})=>_0xe22bf0),{'formatGroupId':_0x29fcde()},[],'tablePasteCell',{'tablePasteChainId':_0x4a83e1});if(_0xfedfe6){const _0x4981e4=_0xfedfe6['getMarkers'](),_0x4e532e=[];for(const {element:_0x26ef94,attributes:_0x305ca4}of _0xd2b57d){if(!_0x305ca4)continue;const _0x21cc5f=_0x5784f4['model']['createRangeOn'](_0x26ef94),_0x4ab1fd=_0x4981e4['find'](_0x45de8d=>_0x45de8d['getRange']()['isEqual'](_0x21cc5f));_0x4ab1fd&&_0x4e532e['push']([_0x4ab1fd['name'],_0x305ca4]);}_0x4e532e['length']&&_0xfedfe6['setAttribute']('markerAttributes',Object['fromEntries'](_0x4e532e));}_0x63d9a1=null;}));},{'priority':_0x50e18b['high']+0xa}),_0x5784f4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1cbb78,_0x17df9b)=>{const [_0x336f21,_0x2240aa,,_0xefaef3]=_0x17df9b;if(!_0x63d9a1)return;_0x1cbb78['stop']();const _0x470b27=_0x336f21['cell'],_0x418be8=_0x2240aa,_0x42edc3=ke(_0x470b27),_0x113a78=ke(_0x418be8);_0x1cbb78['return']=_0x470b27;let _0x38ebe7=null,_0x34d98b=null;if(_0x113a78||_0x42edc3){if(_0x42edc3&&!_0x113a78){_0xefaef3['remove'](_0x470b27['getChild'](0x0));for(const _0x23d54b of Array['from'](_0x418be8['getChildren']()))_0xefaef3['insert'](_0x23d54b,_0x470b27,'end');const _0x57f287=_0x63d9a1['rowInsertionIndexes']['includes'](_0x336f21['row']),_0x362d48=_0x63d9a1['columnInsertionIndexes']['includes'](_0x336f21['column']);_0x57f287||_0x362d48||(_0x38ebe7=_0x484e63['fromRange'](_0xefaef3['createRangeIn'](_0x470b27)));}else _0x113a78&&!_0x42edc3&&(_0x34d98b=_0xefaef3['createRangeIn'](_0x470b27));}else{const _0xe6dc36=_0xefaef3['createElement']('tableCellSuggestion'),_0x2ff490=_0xefaef3['createElement']('tableCellSuggestion');_0xefaef3['wrap'](_0xefaef3['createRangeIn'](_0x470b27),_0x2ff490),_0xefaef3['insert'](_0xe6dc36,_0x470b27,0x0);for(const _0x44c39f of Array['from'](_0x418be8['getChildren']()))_0xefaef3['insert'](_0x44c39f,_0xe6dc36,'end');_0x38ebe7=_0x484e63['fromRange'](_0xefaef3['createRangeOn'](_0xe6dc36)),_0x34d98b=_0x484e63['fromRange'](_0xefaef3['createRangeOn'](_0x2ff490));}const _0x404749=Array['from'](_0x418be8['getAttributes']())['filter'](([_0x2f9cc5])=>Pe['includes'](_0x2f9cc5));_0x63d9a1['cells']['push']({'element':_0x470b27,'attributes':_0x404749['length']?Object['fromEntries'](_0x404749):null}),_0x38ebe7&&_0x63d9a1['insertionRanges']['push'](_0x38ebe7),_0x34d98b&&_0x63d9a1['deletionRanges']['push'](_0x34d98b);},{'priority':'high'}),_0x5beb65['on']('insertColumns',(_0x10f9d7,_0x184b66)=>{const [_0x3d7c0f,_0x5936a1={}]=_0x184b66;if(!_0x63d9a1)return;const _0x32b38d=_0x5936a1['at']||0x0,_0x1007a3=_0x5936a1['columns']||0x1;_0x63d9a1['columnInsertionIndexes']=new Array(_0x1007a3)['fill'](_0x32b38d)['map']((_0xbf5870,_0x298ad7)=>_0xbf5870+_0x298ad7);for(const {cell:_0x1590a9}of _0x5beb65['createTableWalker'](_0x3d7c0f,{'startColumn':_0x32b38d,'endColumn':_0x32b38d+_0x1007a3-0x1}))_0x63d9a1['columnInsertionRanges']['push'](_0x5784f4['model']['createRangeOn'](_0x1590a9));},{'priority':'low'}),_0x5beb65['on']('insertRows',(_0x390c7e,_0xfcfa63)=>{const [_0x7f0063,_0x18e34e={}]=_0xfcfa63;if(!_0x63d9a1)return;const _0x2ad138=_0x18e34e['at']||0x0,_0xab1356=_0x18e34e['rows']||0x1;_0x63d9a1['rowInsertionIndexes']=new Array(_0xab1356)['fill'](_0x2ad138)['map']((_0x4ef528,_0x4de9b4)=>_0x4ef528+_0x4de9b4);for(const {cell:_0x2c2f1e}of _0x5beb65['createTableWalker'](_0x7f0063,{'startRow':_0x2ad138,'endRow':_0x2ad138+_0xab1356-0x1}))_0x63d9a1['rowInsertionRanges']['push'](_0x5784f4['model']['createRangeOn'](_0x2c2f1e));},{'priority':'low'}),_0x1bf776['descriptionFactory']['registerDescriptionCallback'](_0x506adb=>{if(_0x506adb['subType']&&_0x506adb['subType']['startsWith']('tablePaste'))return _0x506adb['previous']?{}:{'type':'insertion','content':o(_0x5784f4['locale'],'*Replace\x20table\x20cells*')};});const _0x2677e=()=>!0x1;for(const _0x2ffeeb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1bf776['_suggestionFactory']['registerCustomCallback']('insertion',_0x2ffeeb,'join',_0x2677e),_0x1bf776['_suggestionFactory']['registerCustomCallback']('deletion',_0x2ffeeb,'join',_0x2677e),_0x1bf776['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ffeeb,'join',_0x2677e);_0x1bf776['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2677e),_0x1bf776['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x16f10b,_0x1a52e9,_0x3c09ae)=>{const _0x1190ce=_0x16f10b['map'](_0x32a999=>_0x32a999['getContainedElement']())['filter'](_0x22324f=>_0x22324f),_0x33bfb1=new Map(_0x1190ce['map'](_0x4c82e6=>[_0x4c82e6,null]));if(_0x63d9a1){for(const {element:_0x38da95,attributes:_0x351c37}of _0x63d9a1['cells'])_0x351c37&&_0x33bfb1['set'](_0x38da95,_0x351c37);}else{if(_0x3c09ae&&_0x3c09ae['markerAttributes'])for(const [_0xfe1700,_0x5e9ed2]of Object['entries'](_0x3c09ae['markerAttributes'])){const _0x157edf=_0x5784f4['model']['markers']['get'](_0xfe1700),_0x13e7c7=_0x157edf?_0x157edf['getRange']()['getContainedElement']():null;_0x13e7c7&&_0x33bfb1['set'](_0x13e7c7,_0x5e9ed2);}}_0x5784f4['model']['change'](_0x3d572e=>{for(const [_0x18c477,_0x1b3aca]of _0x33bfb1)_0x3d572e['setAttributes']({...we,..._0x1b3aca},_0x18c477);});});const _0x15f862=(_0x27b98c,_0xc29e10)=>{_0x1bf776['_suggestionFactory']['registerCustomCallback'](_0x27b98c,'tablePaste',_0xc29e10,(_0x3d733f,_0x41c707,_0x2d0cf7)=>{_0x5784f4['model']['change'](_0x307824=>{const _0x4ba234=[];for(const _0x40789d of _0x3d733f){const _0x3a3c45=_0x40789d['start']['nodeAfter'];_0x3a3c45['is']('element','tableCellSuggestion')&&_0x4ba234['push'](_0x3a3c45);}_0x1bf776['_suggestionFactory']['getSuggestionCallback'](_0x27b98c,null,_0xc29e10)(_0x3d733f,_0x41c707,_0x2d0cf7);for(const _0x294b90 of _0x4ba234)'$graveyard'!=_0x294b90['root']['rootName']&&_0x307824['unwrap'](_0x294b90);});});};_0x15f862('insertion','accept'),_0x15f862('insertion','discard'),_0x15f862('deletion','accept'),_0x15f862('deletion','discard'),_0x1bf776['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x32a1ed=>{const _0x1ff04e=_0x32a1ed['map'](_0x9d868=>_0x9d868['getContainedElement']()),_0x4c988f=_0x1ff04e[0x0]['findAncestor']('table'),{minRow:_0x4ed2ce,maxRow:_0x2f7b66}=_0x5a7d57['_getCoordsForCells'](_0x1ff04e);_0x5beb65['removeRows'](_0x4c988f,{'at':_0x4ed2ce,'rows':_0x2f7b66-_0x4ed2ce+0x1});}),_0x1bf776['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x37da4c=>{const _0x1b7280=_0x37da4c['map'](_0x2aff4c=>_0x2aff4c['getContainedElement']()),_0x42dd71=_0x1b7280[0x0]['findAncestor']('table'),{minColumn:_0x5eca97,maxColumn:_0x2c9b45}=_0x5a7d57['_getCoordsForCells'](_0x1b7280);_0x5beb65['removeColumns'](_0x42dd71,{'at':_0x5eca97,'columns':_0x2c9b45-_0x5eca97+0x1});});const _0x2ddcac=(_0x53eecf,_0x12c18e)=>{if(!_0x12c18e['subType']||!_0x12c18e['subType']['startsWith']('tablePaste'))return;const _0x461c07=_0x12c18e['attributes']['tablePasteChainId'],_0x41da95=_0x1bf776['getSuggestions']()['filter'](_0x391fee=>_0x391fee['isInContent']&&_0x391fee['attributes']&&_0x391fee['attributes']['tablePasteChainId']==_0x461c07);_0x41da95['length']&&_0x12c18e['getAllAdjacentSuggestions']()['length']!=_0x41da95['length']&&_0x41da95['reduce']((_0xd53917,_0x1f3f97)=>(_0xd53917['next']=_0x1f3f97,_0x1f3f97['previous']=_0xd53917,_0x1f3f97));};function _0x3c4ea0(_0x50669e,_0xa03027=!0x0){const {id:_0x5c5824,authorId:_0x3f19c6}=_0x1bf776['_splitMarkerName'](_0x50669e['markerName']),_0x2d71c7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4efc6f=_0x1bf776['activeMarkers']['includes'](_0x50669e['markerName']);return _0x4efc6f&&_0x2d71c7['push']('ck-suggestion-marker--active'),{'classes':_0x2d71c7,'attributes':{'data-suggestion':_0x5c5824,'data-author-id':_0x3f19c6},'priority':_0x4efc6f&&_0xa03027?0xbc2:0xbb8};}_0x1bf776['on']('suggestionLoaded',_0x2ddcac,{'priority':'high'}),_0x1bf776['on']('suggestionUnloaded',_0x2ddcac,{'priority':'high'}),_0x5784f4['model']['document']['registerPostFixer'](()=>{let _0x4ba0b9=!0x1;const _0x4eac16=Array['from'](_0x5784f4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40201f,data:_0x3a67a1}of _0x4eac16){const {group:_0x30f182,type:_0x119944,id:_0x535100}=_0x1bf776['_splitMarkerName'](_0x40201f);if('suggestion'!=_0x30f182||'deletion'!=_0x119944||_0x3a67a1['oldRange'])continue;if(!_0x1bf776['hasSuggestion'](_0x535100))continue;const _0x1e8057=_0x1bf776['getSuggestion'](_0x535100)['getRanges'](),_0x36bac4=_0x5784f4['plugins']['get']('Users')['me'];for(const _0x5c3d38 of _0x1bf776['getSuggestions']()){if(!_0x5c3d38['isInContent']||_0x5c3d38['author']!=_0x36bac4)continue;if('formatBlock'!=_0x5c3d38['type']||'tablePasteCell'!=_0x5c3d38['subType'])continue;if(_0x5c3d38['getRanges']()['every'](_0x27cd80=>_0x1e8057['some'](_0x461fab=>_0x461fab['containsRange'](_0x27cd80,!0x0)))){for(const _0x158568 of _0x5c3d38['getAllAdjacentSuggestions']())_0x158568['isInContent']&&(_0x158568['discard'](),_0x4ba0b9=!0x0);}}}return _0x4ba0b9;}),_0x5784f4['model']['document']['registerPostFixer'](_0x48367b=>{const _0x265250=_0x5784f4['commands']['get']('redo');if(!_0x265250||!_0x265250['_createdBatches']['has'](_0x48367b['batch']))return!0x1;let _0x21f356=!0x1;const _0x5e366f=_0x5784f4['plugins']['get']('Users')['me'],_0x2b961f=_0x5784f4['model']['document']['differ']['getChanges'](),_0xd2f81e=Array['from'](_0x5784f4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5995cb,data:_0x220984})=>{const {group:_0x1101c6,subType:_0x578c3b,authorId:_0xb69608}=_0x1bf776['_splitMarkerName'](_0x5995cb);return'suggestion'==_0x1101c6&&'tablePaste'==_0x578c3b&&_0xb69608==_0x5e366f['id']&&!_0x220984['oldRange'];});for(const _0x3c3f8a of _0x2b961f){if('insert'!=_0x3c3f8a['type']||'tableCellSuggestion'!=_0x3c3f8a['name']||0x1!=_0x3c3f8a['length'])continue;const _0x440168=_0x48367b['createRange'](_0x3c3f8a['position'],_0x3c3f8a['position']['getShiftedBy'](0x1));if(!_0xd2f81e['find'](({data:_0x26f74d})=>_0x26f74d['newRange']['isEqual'](_0x440168))){for(const {name:_0x2cbd84,data:_0x4fe638}of _0xd2f81e)if(_0x440168['containsRange'](_0x4fe638['newRange'])){_0x48367b['updateMarker'](_0x2cbd84,{'range':_0x440168}),_0x21f356=!0x0;break;}}}return _0x21f356;}),_0x5784f4['model']['document']['registerPostFixer'](_0x5bd5e6=>{let _0x22a54b=!0x1;const _0x2a432f=_0x5784f4['plugins']['get']('Users')['me'],_0x517bc9=_0x1bf776['getSuggestions']()['filter'](_0x535954=>_0x535954['isInContent']&&_0x535954['author']==_0x2a432f),_0x3e13f3=new Set(),_0x219b44=new Set();for(const _0xe37212 of _0x517bc9)if('tablePaste'==_0xe37212['subType'])for(const _0x5a5ab3 of _0xe37212['getMarkers']()){const _0x56b0f0=_0x5a5ab3['getRange']()['getContainedElement']();if(_0x56b0f0){if(_0x56b0f0['is']('element','tableCellSuggestion')&&ke(_0x56b0f0)){_0xe37212['removeMarker'](_0x5a5ab3['name']),_0x3e13f3['add'](_0x56b0f0),_0x22a54b=!0x0;const _0x2079da=_0x56b0f0['nextSibling'],_0x3c9a52=_0x56b0f0['previousSibling'],_0x3bb339=_0x2079da&&_0x2079da['is']('element','tableCellSuggestion'),_0x165f33=_0x3c9a52&&_0x3c9a52['is']('element','tableCellSuggestion');_0x3bb339&&!_0x3e13f3['has'](_0x2079da)&&_0x219b44['add'](_0x2079da),_0x165f33&&!_0x3e13f3['has'](_0x3c9a52)&&_0x219b44['add'](_0x3c9a52);}else _0x56b0f0['is']('element','paragraph')&&_0x56b0f0['isEmpty']&&(_0xe37212['removeMarker'](_0x5a5ab3['name']),_0x22a54b=!0x0);}}else{if('tablePasteCell'==_0xe37212['subType']){if(!_0xe37212['attributes']||!_0xe37212['attributes']['tablePasteChainId'])continue;const _0x121a31=_0xe37212['attributes']['markerAttributes'];if(_0x121a31&&Object['keys'](_0x121a31)['length'])continue;const _0xc2b92a=_0xe37212['attributes']['tablePasteChainId'];let _0x1966c2=!0x0,_0x3d1f3d=!0x0;for(const _0x5a2841 of _0x517bc9)if(_0x5a2841['subType']&&_0x5a2841['subType']['startsWith']('tablePaste')){if(!_0x5a2841['attributes']['tablePasteChainId']){_0x3d1f3d=!0x1;break;}if(_0x5a2841['id']!=_0xe37212['id']&&_0x5a2841['attributes']['tablePasteChainId']==_0xc2b92a){_0x1966c2=!0x1;break;}}_0x3d1f3d&&_0x1966c2&&(_0xe37212['removeMarkers'](),_0x22a54b=!0x0);}}for(const _0x3dcb93 of _0x3e13f3)_0x5bd5e6['remove'](_0x3dcb93);for(const _0x566c9c of _0x219b44)_0x5bd5e6['unwrap'](_0x566c9c);return _0x22a54b;}),_0x5784f4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xcaa8c6,_0x4e1c10)=>_0x3c4ea0(_0xcaa8c6),'converterPriority':'high'}),_0x5784f4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x33004d,_0x1563e7)=>_0x1563e7['options']['showSuggestionHighlights']?_0x3c4ea0(_0x33004d,!0x1):null,'converterPriority':'high'});const _0x4abb10=_0x5784f4['editing']['view'];this['listenTo'](_0x4abb10['document'],'clipboardOutput',(_0x2bfecf,_0x408cf)=>{const _0x9190bb=[];for(const _0x30d790 of _0x4abb10['createRangeIn'](_0x408cf['content'])['getItems']())_0x30d790['is']('element','suggestion-td')&&_0x9190bb['push'](_0x30d790);_0x4abb10['change'](_0x1f8904=>{for(const _0x5429a7 of _0x9190bb)_0x1f8904['move'](_0x1f8904['createRangeIn'](_0x5429a7),_0x1f8904['createPositionBefore'](_0x5429a7)),_0x1f8904['remove'](_0x5429a7);});});}}function ke(_0x310fc6){if(_0x310fc6['isEmpty'])return!0x0;const _0x26c893=_0x310fc6['getChild'](0x0);return _0x26c893['is']('element','paragraph')&&_0x26c893['isEmpty'];}function Re(_0x38c5d8,_0x5c98d0={},_0x1dc24c){for(const {isAnchor:_0x1fc805,cellHeight:_0x4ee34f,cellWidth:_0x48630f}of _0x1dc24c['createTableWalker'](_0x38c5d8,{'includeAllSlots':!0x0,..._0x5c98d0}))if(!_0x1fc805||0x1!=_0x4ee34f||0x1!=_0x48630f)return!0x1;return!0x0;}class Nt extends _0x2c5c19{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x585c73=this['editor']['plugins']['get']('TrackChangesEditing');_0x585c73['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x585c73['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x585c73['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x585c73['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x585c73['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x585c73['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ffc1a,_0x526c9e){const _0x335f83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c8c0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1272b8=_0x526c9e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x17b34d=_0x2c8c0['getColumnGroupElement'](_0x1272b8);let _0x563b52=_0x17b34d?_0x2c8c0['getTableColumnsWidths'](_0x17b34d):null,_0x542f4a=_0x1272b8['getAttribute']('tableWidth')||null;const _0x45bffa=_0x526c9e['tableWidth']||_0x542f4a,_0x2648c8=_0x526c9e['columnWidths']||_0x563b52,_0x5eda8a=this['editor']['plugins']['get']('Users')['me'];for(const _0x1acd03 of _0x335f83['getSuggestions']()){const _0x5cc26b=_0x1acd03['getContainedElement']();if('resizeTable'===_0x1acd03['subType']&&_0x5cc26b===_0x1272b8){_0x1acd03['author']!==_0x5eda8a&&_0x1acd03['discard']();const _0x248593=_0x1acd03['data']['commandParams'];_0x542f4a=_0x248593[0x0]['tableWidth'],_0x563b52=_0x248593[0x0]['columnWidths'];break;}}_0x2ffc1a({'table':_0x1272b8,'tableWidth':_0x45bffa,'columnWidths':_0x2648c8}),_0x335f83['markBlockFormat'](_0x1272b8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x542f4a,'columnWidths':_0x563b52}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3983ae){if('formatBlock'!=_0x3983ae['type']&&'formatInline'!=_0x3983ae['type'])return;const {data:_0x40ad4c}=_0x3983ae;if(_0x40ad4c&&'resizeTable'===_0x40ad4c['formatGroupId']){const _0x3a4d45='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a4d45)};}}}class Dt extends _0x2c5c19{['afterInit'](){const _0x5c1ebb=this['editor'];_0x5c1ebb['plugins']['has']('Template')&&_0x5c1ebb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2c5c19{['afterInit'](){const _0x5f3e48=this['editor'];if(!_0x5f3e48['commands']['get']('insertTableOfContents'))return;_0x5f3e48['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x322dc7=_0x5f3e48['plugins']['get']('TrackChangesEditing'),_0x39da19=_0x5f3e48['locale'];_0x322dc7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x37e1f3=>o(_0x39da19,'ELEMENT_TABLE_OF_CONTENTS',_0x37e1f3));}}class $t extends _0x2c5c19{['afterInit'](){const _0x13f3b1=this['editor'];if(!_0x13f3b1['plugins']['has']('Title'))return;const _0x192ba6=_0x13f3b1['plugins']['get']('TrackChangesEditing');_0x192ba6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x13f3b1['locale'],'ELEMENT_TITLE')),_0x13f3b1['model']['document']['registerPostFixer'](_0x3cff07=>{let _0x270d97=!0x1;const _0x3cb02d=Array['from'](_0x13f3b1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x504b03,data:_0x5d6cfb}of _0x3cb02d){const {group:_0x10de42}=_0x192ba6['_splitMarkerName'](_0x504b03);if('suggestion'!==_0x10de42||!_0x5d6cfb['newRange'])continue;const _0x47b52b=_0x5d6cfb['newRange'],_0x19c3fd=_0x47b52b['end']['nodeBefore'];if(!_0x19c3fd||!_0x19c3fd['is']('element','title-content'))continue;if(!_0x47b52b['start']['isTouching'](_0x47b52b['end']))continue;const _0x1fa473=_0x13f3b1['model']['schema']['getNearestSelectionRange'](_0x47b52b['end'],'forward');if(_0x1fa473&&_0x1fa473['isCollapsed']){const _0x4b539e=_0x3cff07['createRange'](_0x47b52b['start'],_0x1fa473['start']);_0x4b539e['isEqual'](_0x47b52b)||(_0x3cff07['updateMarker'](_0x504b03,{'range':_0x4b539e}),_0x270d97=!0x0);}_0x270d97||(_0x3cff07['removeMarker'](_0x504b03),_0x270d97=!0x0);}return _0x270d97;});}}class Bt extends _0x2c5c19{['afterInit'](){const _0x317360=this['editor'],_0x2b37b6=_0x317360['plugins']['get']('TrackChangesEditing');_0x317360['plugins']['has']('UndoEditing')&&(_0x2b37b6['enableCommand']('undo'),_0x2b37b6['enableCommand']('redo'));}}class xt extends _0x2c5c19{static get['requires'](){return[It];}['afterInit'](){const _0x185325=this['editor'];if(!_0x185325['plugins']['has']('TableCaptionEditing'))return;_0x185325['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2c5c19{['tableProperties'];['tableCellProperties'];constructor(_0x5e260c){super(_0x5e260c),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 _0xc175df=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x347f78 of this['tableProperties'])_0xc175df['enableCommand'](_0x347f78,(_0xf3e257,_0x7b3942)=>{const _0xa76e53=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x347f78,[_0xa76e53],this['tableProperties'],'tableProperties',_0xf3e257,_0x7b3942);});_0xc175df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc175df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc175df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a132e,_0x58b869)=>this['handleDiscardAction'](this['tableProperties'],_0x3a132e,_0x58b869)),_0xc175df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2db837 of this['tableCellProperties'])_0xc175df['enableCommand'](_0x2db837,(_0x511408,_0x474e0b)=>{const _0x34d8fd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2db837,_0x34d8fd,this['tableCellProperties'],'tableCellProperties',_0x511408,_0x474e0b);});_0xc175df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc175df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc175df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x578891,_0x4ca66d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x578891,_0x4ca66d)),_0xc175df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc175df['descriptionFactory']['registerDescriptionCallback'](_0x489e45=>this['handleSuggestionDescription'](_0x489e45));}['_handlePropertyChange'](_0x33bd5d,_0x5e0006,_0x3a82c5,_0x1476f1,_0x6ed38c,_0x4e635d){const _0x23d558=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e635d['batch'],()=>{for(const _0x405518 of _0x5e0006){if(this['_getSuggestion'](_0x405518,_0x1476f1))_0x6ed38c(_0x4e635d);else{const _0x22db44={};for(const _0x6e1990 of _0x3a82c5){const _0x55a417=_0x405518['getAttribute'](_0x6e1990);void 0x0!==_0x55a417&&(_0x22db44[_0x6e1990]=_0x55a417);}_0x6ed38c(_0x4e635d),_0x23d558['markBlockFormat'](_0x405518,{'commandParams':[_0x22db44]},[],_0x1476f1);}}});}['handleDiscardAction'](_0x53658c,_0x5d453c,_0x1bb30b){const _0x2cf1fc=_0x5d453c[0x0]['start']['nodeAfter'],_0xa9c798=_0x1bb30b['commandParams'][0x0];this['editor']['model']['change'](_0x39707d=>{for(const _0x54b52d of _0x53658c)void 0x0!==_0xa9c798[_0x54b52d]?_0x39707d['setAttribute'](_0x54b52d,_0xa9c798[_0x54b52d],_0x2cf1fc):_0x39707d['removeAttribute'](_0x54b52d,_0x2cf1fc);});}['handleSuggestionDescription'](_0x391cf6){if(_0x391cf6['data'])switch(_0x391cf6['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'](_0x4d0848,_0x4ef975){const _0x4750f6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x22b262 of _0x4750f6['getSuggestions']({'skipNotAttached':!0x0})){const _0x25a6b4=_0x22b262['getContainedElement']();if(_0x22b262['subType']===_0x4ef975&&_0x25a6b4===_0x4d0848)return _0x22b262;}return null;}}const m='$elementName';class p extends _0x2c5c19{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4cd5f1,_0x57078c,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(_0x232a0b){function _0x5bbf79(_0x511814){return _0x511814['map'](_0x83859a=>String['fromCharCode'](_0x83859a))['join']('');}super(_0x232a0b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd76c70,_0x2d1631,_0x2f11c9,_0x1280d6)=>{this['_model']['change'](()=>{for(const _0x956a19 of[..._0x1280d6,..._0x2f11c9])this['_model']['markers']['has'](_0x956a19)&&_0x232a0b['editing']['reconvertMarker'](_0x956a19);});}),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']=_0x232a0b['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(),_0x232a0b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x232a0b['config']['get']('trackChanges.trackFormatChanges'),_0x232a0b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x232a0b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x232a0b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5bbf79([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5bbf79([0x34,0x30,0x34,0x38,0x31,0x38,0x32,0x32]);}['init'](){const _0x75f907=this['editor'],_0x2509e3=(_0x11a2ba,_0x41da14)=>{if('attribute'!=_0x11a2ba)return'ck-suggestion-marker-'+_0x11a2ba;const _0x356020=_0x41da14['split']('|')[0x0];return this['_isBlockAttribute'](_0x356020)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x75f907['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x39d261=>{const {id:_0x3a423f,authorId:_0x826300,type:_0x21e91b,subType:_0x953eb9}=this['_splitMarkerName'](_0x39d261['markerName']),_0x410a6a=['ck-suggestion-marker',_0x2509e3(_0x21e91b,_0x953eb9)];let _0x6f9182=0xbb8;return this['activeMarkers']['includes'](_0x39d261['markerName'])&&(_0x410a6a['push']('ck-suggestion-marker--active'),_0x6f9182=0xbc2),'deletion'==_0x21e91b&&(_0x6f9182+=0x5),{'classes':_0x410a6a,'attributes':{'data-suggestion':_0x3a423f,'data-author-id':_0x826300},'priority':_0x6f9182};}}),_0x75f907['conversion']['for']('dataDowncast')['add'](_0x30323c=>{_0x30323c['on']('addMarker:suggestion',(_0x174438,_0x25e2af,_0x3e60c9)=>{if(!_0x3e60c9['options']['showSuggestionHighlights'])return;const _0x47babb=_0x25e2af['item'];if(!_0x47babb)return;const _0x50343c=_0x3e60c9['mapper']['toViewElement'](_0x47babb);_0x75f907['model']['schema']['isObject'](_0x47babb)&&_0x50343c&&!_0x50343c['getCustomProperty']('widget')&&_0x50343c['is']('containerElement')&&_0x1e0dd9(_0x50343c,_0x3e60c9['writer']);},{'priority':'high'});}),_0x75f907['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x312973,_0x39b25d)=>{if(!_0x39b25d['options']['showSuggestionHighlights'])return null;const {type:_0x82722e,subType:_0x38c6fb}=this['_splitMarkerName'](_0x312973['markerName']);return{'classes':['ck-suggestion-marker',_0x2509e3(_0x82722e,_0x38c6fb)],'priority':0xbb8};}});const _0x316bac=({showActiveMarkers:_0x14982b=!0x0,isAttributeSuggestion:_0x535c51=!0x1}={})=>(_0x39a0f5,_0x1fc50d,_0x9369df)=>{if(!_0x1fc50d['item'])return;const {id:_0x53d658,authorId:_0x399a7b}=this['_splitMarkerName'](_0x1fc50d['markerName']);if(_0x535c51){const _0x4fb369=this['_suggestions']['get'](_0x53d658),_0x34abde=this['_getAttributeKey'](_0x4fb369);if(!this['_isBlockAttribute'](_0x34abde))return;}if(_0x1fc50d['item']['is']('selection'))return void _0x9369df['consumable']['consume'](_0x1fc50d['item'],_0x39a0f5['name']);const _0x5ae457=_0x9369df['mapper']['toViewElement'](_0x1fc50d['item']);if(_0x1fc50d['item']['is']('element')&&_0x75f907['model']['schema']['isBlock'](_0x1fc50d['item'])&&!_0x5ae457['getCustomProperty']('addHighlight')){_0x9369df['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5ae457),_0x9369df['writer']['setAttribute']('data-suggestion',_0x53d658,_0x5ae457),_0x9369df['writer']['setAttribute']('data-author-id',_0x399a7b,_0x5ae457),_0x9369df['mapper']['bindElementToMarker'](_0x5ae457,_0x1fc50d['markerName']),_0x14982b&&(this['activeMarkers']['includes'](_0x1fc50d['markerName'])?_0x9369df['writer']['addClass']('ck-suggestion-marker--active',_0x5ae457):_0x9369df['writer']['removeClass']('ck-suggestion-marker--active',_0x5ae457));for(const _0x527484 of _0x75f907['model']['createRangeIn'](_0x1fc50d['item'])['getItems']())_0x9369df['consumable']['consume'](_0x527484,_0x39a0f5['name']);_0x9369df['consumable']['consume'](_0x1fc50d['item'],_0x39a0f5['name']);}};_0x75f907['conversion']['for']('dataDowncast')['add'](_0x380a2d=>{_0x380a2d['on']('addMarker:suggestion:formatBlock',(_0x2128ca,_0xf31988,_0xc212de)=>{_0xc212de['options']['showSuggestionHighlights']&&_0x316bac({'showActiveMarkers':!0x1})(_0x2128ca,_0xf31988,_0xc212de);},{'priority':'highest'});}),_0x75f907['conversion']['for']('dataDowncast')['add'](_0x4fd415=>{_0x4fd415['on']('addMarker:suggestion:attribute',(_0x314efd,_0xc73726,_0x1797b5)=>{_0x1797b5['options']['showSuggestionHighlights']&&_0x316bac({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x314efd,_0xc73726,_0x1797b5);},{'priority':'highest'});}),_0x75f907['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x461766,_0x18ea4d)=>_0x18ea4d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x461766['substr'](0xb)}}),_0x75f907['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x17059e,{writer:_0x15e63e})=>{let _0xaa5b50='suggestion:'+_0x17059e['getAttribute']('suggestion-type')+':'+_0x17059e['getAttribute']('id');return _0x17059e['getAttribute']('marker-count')&&(_0xaa5b50+=':'+_0x17059e['getAttribute']('marker-count')),_0x15e63e['createElement']('$marker',{'data-name':_0xaa5b50});}}),_0x75f907['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x75f907['conversion']['for']('editingDowncast')['add'](_0x3220a9=>{_0x3220a9['on']('addMarker:suggestion:formatBlock',_0x316bac(),{'priority':'high'});}),_0x75f907['conversion']['for']('editingDowncast')['add'](_0x4eb8ab=>{_0x4eb8ab['on']('addMarker:suggestion:attribute',_0x316bac({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x75f907['conversion']['for']('editingDowncast')['add'](_0x5c580f=>{_0x5c580f['on']('removeMarker:suggestion:formatBlock',(_0x3bef39,_0x34aaec,_0x274bf8)=>{const _0x24344d=_0x274bf8['mapper']['markerNameToElements'](_0x34aaec['markerName']);if(_0x24344d){for(const _0x48eaa0 of _0x24344d)_0x48eaa0['getCustomProperty']('addHighlight')||(_0x274bf8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x48eaa0),_0x274bf8['writer']['removeAttribute']('data-suggestion',_0x48eaa0),_0x274bf8['writer']['removeAttribute']('data-author-id',_0x48eaa0),_0x274bf8['mapper']['unbindElementFromMarkerName'](_0x48eaa0,_0x34aaec['markerName']));}},{'priority':'high'});}),_0x75f907['conversion']['for']('editingDowncast')['add'](_0x5211f0=>{_0x5211f0['on']('removeMarker:suggestion:attribute',(_0x473b33,_0x3353f4,_0x990ce1)=>{const _0x28679c=_0x990ce1['mapper']['markerNameToElements'](_0x3353f4['markerName']);if(!_0x28679c)return;const {id:_0x305c5f}=this['_splitMarkerName'](_0x3353f4['markerName']),_0x246c57=this['_suggestions']['get'](_0x305c5f),_0x1abbf9=this['_getAttributeKey'](_0x246c57);if(this['_isBlockAttribute'](_0x1abbf9)){for(const _0x128182 of _0x28679c)_0x128182['getCustomProperty']('addHighlight')||(_0x990ce1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x128182),_0x990ce1['writer']['removeAttribute']('data-suggestion',_0x128182),_0x990ce1['writer']['removeAttribute']('data-author-id',_0x128182),_0x990ce1['mapper']['unbindElementFromMarkerName'](_0x128182,_0x3353f4['markerName']));}},{'priority':'high'});}),_0x75f907['model']['document']['registerPostFixer'](_0x317aba=>{let _0x49fda6=!0x1;const _0xfb08ee=Array['from'](_0x75f907['model']['document']['differ']['getChangedMarkers']()),_0x2deb16=new Set();for(const {name:_0x51416f,data:_0x405b78}of _0xfb08ee){const {group:_0x31f210,type:_0x283851,subType:_0x139e7d,id:_0x2d7c77}=this['_splitMarkerName'](_0x51416f);if('suggestion'!==_0x31f210)continue;const _0x4ca855=this['_suggestions']['get'](_0x2d7c77);if(null!=_0x405b78['newRange']){'formatInline'==_0x283851&&(_0x49fda6=_0x49fda6||Ut(_0x405b78['newRange'],_0x51416f,_0x317aba,_0x75f907['model']['schema']));const _0x4322f8='attribute'==_0x283851&&this['_isBlockAttribute'](_0x139e7d['split']('|')[0x0]);if(_0x405b78['newRange']['isCollapsed']||'$graveyard'==_0x405b78['newRange']['root']['rootName']||'formatBlock'==_0x283851&&!Ft(_0x405b78['newRange'])||_0x4322f8&&!Ft(_0x405b78['newRange'])||'deletion'==_0x283851&&!(!Vt(_0x480055=_0x405b78['newRange'])&&!function(_0x3d5758){return _0x3d5758['start']['parent']==_0x3d5758['end']['nodeBefore']&&_0x3d5758['start']['isAtEnd'];}(_0x480055)))_0x317aba['removeMarker'](_0x51416f),_0x49fda6=!0x0;else{if(!_0x4ca855||!_0x4ca855['isInContent'])continue;if(_0x405b78['newRange']&&_0x405b78['oldRange']&&_0x405b78['newRange']['isEqual'](_0x405b78['oldRange']))continue;_0x2deb16['add'](_0x4ca855);}}}var _0x480055;return _0x2deb16['size']>0x0&&(_0x49fda6=!!this['_joinWithAdjacentSuggestions'](_0x2deb16)||_0x49fda6),_0x49fda6;}),_0x75f907['model']['document']['registerPostFixer'](_0x50e2e4=>{let _0x526ed2=!0x1;for(const _0xc28d20 of _0x75f907['model']['document']['differ']['getChanges']())if('insert'==_0xc28d20['type'])for(const _0x51b3fc of this['_suggestions']['values']()){if(_0x51b3fc['isMultiRange']||!_0x51b3fc['isInContent'])continue;const _0x252bbf='formatBlock'==_0x51b3fc['type'],_0x2acc99=this['_getAttributeKey'](_0x51b3fc),_0x34c48e=_0x2acc99&&this['_isBlockAttribute'](_0x2acc99);if(!_0x252bbf&&!_0x34c48e)continue;const _0x203f08=_0x51b3fc['getFirstRange']();if(_0x203f08['start']['parent']!=_0x203f08['end']['parent']&&!_0x203f08['end']['isAtEnd']){const _0x1705db=_0x75f907['model']['createPositionAt'](_0x203f08['start']['nodeAfter'],'end'),_0x580fc6=_0x75f907['model']['createRange'](_0x203f08['start'],_0x1705db);_0x50e2e4['updateMarker'](_0x51b3fc['getFirstMarker'](),{'range':_0x580fc6}),_0x526ed2=!0x0;}}return _0x526ed2;}),_0x75f907['model']['document']['registerPostFixer'](_0x33f6e2=>this['_processAttributeChanges'](_0x33f6e2)),_0x75f907['model']['document']['registerPostFixer'](_0x275ada=>!_0x275ada['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x275ada)),_0x75f907['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x75f907['model']['document']['on']('change:data',(_0xdeab8f,_0x2b9ad5)=>{if(!_0x2b9ad5['isLocal']||_0x2b9ad5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f66a5=_0x75f907['model']['document']['differ']['getChanges']();if(0x0==_0x3f66a5['length'])return;const _0xcd8ac4=[],_0x4e205c=_0x3f66a5['filter'](_0x450671=>'attribute'==_0x450671['type']),_0x1f2904=_0x3f66a5['filter'](_0x29ba85=>'insert'==_0x29ba85['type']&&'$text'!=_0x29ba85['name']);for(const _0x2f1303 of _0x4e205c)this['_isRegisteredAttribute'](_0x2f1303['attributeKey'])&&_0xcd8ac4['push']({'key':_0x2f1303['attributeKey'],'newValue':_0x2f1303['attributeNewValue'],'oldValue':_0x2f1303['attributeOldValue'],'range':Pt(_0x2f1303['range'],_0x75f907['model'])});for(const _0x505136 of _0x1f2904){if('rename'!=_0x505136['action']&&'refresh'!=_0x505136['action'])continue;const _0x420ead=Lt(_0x505136['position']['nodeAfter'],_0x75f907['model']),_0x303780=_0x505136['before'];'rename'==_0x505136['action']&&_0xcd8ac4['push']({'key':m,'newValue':_0x505136['name'],'oldValue':_0x303780['name'],'range':_0x420ead});for(const [_0x531ee9,_0x3992d0]of _0x303780['attributes']){if(!this['_isRegisteredAttribute'](_0x531ee9))continue;const _0x24c830=_0x505136['attributes']['get'](_0x531ee9);_0x3992d0!==_0x24c830&&_0xcd8ac4['push']({'key':_0x531ee9,'newValue':_0x24c830,'oldValue':_0x3992d0,'range':_0x420ead});}for(const [_0x43550b,_0x33e7ac]of _0x505136['attributes'])this['_isRegisteredAttribute'](_0x43550b)&&(_0x303780['attributes']['has'](_0x43550b)||_0xcd8ac4['push']({'key':_0x43550b,'newValue':_0x33e7ac,'oldValue':null,'range':_0x420ead}));}0x0!=_0xcd8ac4['length']&&_0x75f907['model']['enqueueChange'](_0x2b9ad5,_0x47d387=>{const _0x34df0a=_0x29fcde();for(const {range:_0x245b7a,key:_0x3c6284,oldValue:_0x5f11b8,newValue:_0x3923c7}of _0xcd8ac4)this['markAttributeChange'](_0x245b7a,_0x3c6284,_0x5f11b8,_0x3923c7,{'groupId':_0x34df0a});this['_reduceExistingSuggestions'](_0x47d387,_0xcd8ac4);});},{'priority':'lowest'}),_0x75f907['model']['markers']['on']('update:suggestion',(_0x243456,_0x287791,_0x3b0e75)=>{if(null==_0x3b0e75){const {id:_0x174dcf}=this['_splitMarkerName'](_0x287791['name']),_0x71fc43=this['_suggestions']['get'](_0x174dcf);_0x71fc43&&_0x71fc43['addMarkerName'](_0x287791['name']);}}),_0x75f907['model']['document']['on']('change:data',()=>{const _0xccced0=Array['from'](_0x75f907['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2737df=>'suggestion'===this['_splitMarkerName'](_0x2737df['name'])['group']);if(0x0===_0xccced0['length'])return;_0xccced0['sort']((_0x2929ea,_0x1dece7)=>{const _0x1a9f93=_0x2929ea['data']['oldRange'],_0x1699f5=_0x1dece7['data']['oldRange'];return null===_0x1a9f93&&null===_0x1699f5?0x0:null===_0x1a9f93&&null!==_0x1699f5?-0x1:null!==_0x1a9f93&&null===_0x1699f5?0x1:_0x1a9f93['start']['isBefore'](_0x1699f5['start'])?-0x1:0x1;});const _0x2b3aa0=new Set(),_0x184a87=new Set();for(const {name:_0x5edd0f,data:_0x3aba2f}of _0xccced0){const {id:_0x31d123}=this['_splitMarkerName'](_0x5edd0f);if(null===_0x3aba2f['oldRange']){const _0x6d314c=this['_handleNewSuggestionMarker'](_0x5edd0f);_0x184a87['add'](_0x6d314c);}else{const _0x344532=this['_suggestions']['get'](_0x31d123);null!==_0x3aba2f['newRange']||_0x344532['isInContent']?(_0x2b3aa0['add'](_0x344532['head']),_0x184a87['add'](_0x344532)):this['_removeSuggestion'](_0x344532);}}_0x184a87['size']>0x0&&this['_refreshSuggestionsChain'](_0x184a87);for(const _0x1496ce of _0x2b3aa0)this['fire']('suggestionChanged',_0x1496ce);}),_0x75f907['model']['on']('applyOperation',(_0x52a886,_0x51dc33)=>{const _0x51023d=_0x51dc33[0x0];if(!this['_suggestions']['size'])return;if(!_0x51023d['isDocumentOperation'])return;if(_0x51023d['batch']['isUndo']||!_0x51023d['batch']['isLocal'])return;let _0x5cf229,_0x541ae8;switch(_0x51023d['type']){case'insert':_0x5cf229=_0x75f907['model']['createPositionAt'](_0x51023d['position']),_0x541ae8=_0x5cf229['getShiftedBy'](_0x51023d['howMany']);break;case'split':_0x5cf229=_0x75f907['model']['createPositionAt'](_0x51023d['splitPosition']),_0x541ae8=_0x75f907['model']['createPositionAt'](_0x51023d['moveTargetPosition']);break;case'move':_0x5cf229=_0x75f907['model']['createPositionAt'](_0x51023d['targetPosition']),_0x541ae8=_0x5cf229['getShiftedBy'](_0x51023d['howMany']);break;default:return;}const _0x52b5b0=_0x75f907['model']['createRange'](_0x5cf229,_0x541ae8);_0x75f907['model']['change'](()=>{for(const {suggestion:_0x4d2525,meta:_0x52b8bb}of this['_findSuggestions'](_0x52b5b0)){if(_0x4d2525['isMultiRange'])continue;if('formatInline'==_0x4d2525['type'])continue;const _0x2f498e=this['_getAttributeKey'](_0x4d2525);if(_0x2f498e&&this['_isBlockAttribute'](_0x2f498e)&&'split'!=_0x51023d['type'])continue;const _0xd8b489=_0x4d2525['data']&&_0x4d2525['data']['multipleBlocks'];('formatBlock'!=_0x4d2525['type']||'split'==_0x51023d['type']&&!_0xd8b489)&&(_0x52b8bb['containsRangeInObject']||'insertion'==_0x4d2525['type']&&_0x52b8bb['isOwn']||_0x4d2525['getFirstRange']()['containsRange'](_0x52b5b0)&&this['_breakSuggestionMarker'](_0x4d2525,_0x5cf229,_0x541ae8));}});},{'priority':'lowest'}),_0x75f907['model']['on']('deleteContent',(_0x52250a,_0x5b4dfc)=>{const _0x195af4=_0x5b4dfc[0x0],_0xc09cf6=_0x5b4dfc[0x1];if(_0xc09cf6&&_0xc09cf6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x195af4['isCollapsed'])return;const _0x1aa6e7=_0x75f907['model']['schema'],{start:_0x24a068,end:_0x187410}=_0x195af4['getFirstRange'](),_0x8552e0=_0x24a068['nodeAfter']&&_0x1aa6e7['isLimit'](_0x24a068['nodeAfter'])?null:_0x1aa6e7['getNearestSelectionRange'](_0x24a068,'forward'),_0x118bad=_0x187410['nodeBefore']&&_0x1aa6e7['isLimit'](_0x187410['nodeBefore'])?null:_0x1aa6e7['getNearestSelectionRange'](_0x187410,'backward'),_0x199508=_0x75f907['model']['createRange'](_0x8552e0?_0x8552e0['start']:_0x24a068,_0x118bad?_0x118bad['end']:_0x187410);_0x75f907['model']['change'](_0x3e4822=>{this['markDeletion'](_0x199508);const _0x4d1a59=_0x75f907['model']['schema']['getNearestSelectionRange'](_0x199508['start']);_0x195af4['is']('documentSelection')?_0x3e4822['setSelection'](_0x4d1a59):_0x195af4['setTo'](_0x4d1a59);}),_0x52250a['stop']();},{'priority':_0x50e18b['normal']+0xa}),_0x75f907['model']['on']('insertContent',(_0x4bfa5c,_0x131436)=>{const _0x189b13=_0x131436[_0x131436['length']-0x1];_0x189b13&&_0x189b13['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x75f907['model']['change'](()=>{let _0x39eb35=_0x75f907['model']['insertContent'](_0x131436[0x0],_0x131436[0x1],_0x131436[0x2],{'forceDefaultExecution':!0x0});if(!_0x39eb35)return;_0x4bfa5c['return']=_0x39eb35['clone']();const _0x8899d0=_0x39eb35['end']['nodeBefore'],_0x24f308=_0x75f907['model']['schema'];_0x8899d0&&_0x24f308['isBlock'](_0x8899d0)&&!_0x24f308['isObject'](_0x8899d0)&&(_0x39eb35=_0x75f907['model']['createRange'](_0x39eb35['start'],_0x75f907['model']['createPositionAt'](_0x8899d0,'end'))),this['markInsertion'](_0x39eb35);}),_0x4bfa5c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1b4fbc=new x(_0x75f907,this['_suggestions']);_0x75f907['commands']['add']('acceptSuggestion',_0x1b4fbc),this['enableCommand']('acceptSuggestion');const _0x2a98dd=new R(_0x75f907,this['_suggestions']);_0x75f907['commands']['add']('discardSuggestion',_0x2a98dd),this['enableCommand']('discardSuggestion'),_0x75f907['commands']['add']('acceptAllSuggestions',new E(_0x75f907,_0x1b4fbc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x75f907['commands']['add']('discardAllSuggestions',new E(_0x75f907,_0x2a98dd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x75f907['commands']['add']('acceptSelectedSuggestions',new O(_0x75f907,_0x1b4fbc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x75f907['commands']['add']('discardSelectedSuggestions',new O(_0x75f907,_0x2a98dd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e654f=_0x75f907['plugins']['get']('CommentsRepository');this['listenTo'](_0x1e654f,'addComment',(_0xc53670,{threadId:_0x1d456f})=>{const _0x220d1c=this['_suggestions']['get'](_0x1d456f);_0x220d1c&&_0x220d1c['commentThread']&&0x1===_0x220d1c['commentThread']['length']&&this['_updateSuggestionData'](_0x1d456f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e654f,'removeComment',(_0xa08e04,{threadId:_0x2ed9ce})=>{const _0x414282=this['_suggestions']['get'](_0x2ed9ce);_0x414282&&_0x414282['commentThread']&&!_0x414282['commentThread']['length']&&this['_updateSuggestionData'](_0x2ed9ce,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xa27b14){if(this['_adapter'])throw new _0x9a3fdb('track-changes-adapter-already-set',this);this['_adapter']=_0xa27b14;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e8942=!0x1,toJSON:_0x4fa7b6=!0x1}={}){const _0x38f46e=[];for(const _0x1cc2fb of this['_suggestions']['values']())_0x5e8942&&!_0x1cc2fb['isInContent']||_0x38f46e['push'](_0x1cc2fb);return _0x4fa7b6?_0x38f46e['map'](_0x50de8c=>_0x50de8c['toJSON']()):_0x38f46e;}['getSuggestion'](_0x38b6b7){const _0x11a51f=this['_suggestions']['get'](_0x38b6b7);if(!_0x11a51f)throw new _0x9a3fdb('track-changes-suggestion-not-found',this);return _0x11a51f;}['hasSuggestion'](_0x463a46){return this['_suggestions']['has'](_0x463a46);}['addSuggestionData'](_0x22dfd5){const {authorId:_0x38deaf,id:_0xac7493,attributes:_0x400d69}=_0x22dfd5,[_0x46e1a9,_0x326f23]=_0x22dfd5['type']['split'](':'),_0x1c458e=this['_suggestions']['get'](_0xac7493)||this['_createSuggestion'](_0x46e1a9,_0x326f23,_0xac7493,_0x38deaf,_0x400d69);if(this['_addThreadToSuggestion'](_0x1c458e),this['_checkSuggestionCorrectness'](_0x1c458e,_0x46e1a9,_0x326f23||null,_0x38deaf),_0x1c458e['createdAt']=_0x22dfd5['createdAt'],_0x1c458e['_isDataLoaded']=!0x0,_0x400d69&&_0x400d69['@external']){const _0x59baa5=_0x400d69['@external'],_0x488c27=this['_getExternalAuthor'](_0x59baa5['authorName']);_0x1c458e['authoredAt']=_0x59baa5['createdAt'],_0x1c458e['author']=_0x488c27,_0x1c458e['isExternal']=!0x0;}else _0x1c458e['authoredAt']=_0x22dfd5['createdAt'];switch(_0x22dfd5['data']&&(_0x1c458e['data']=_0x22dfd5['data']),_0x22dfd5['attributes']&&(_0x1c458e['attributes']=_0x22dfd5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c458e['_saved']=!0x0),this['_suggestionState']['get'](_0x1c458e)){case'notReady':this['_suggestionState']['set'](_0x1c458e,'dataReady');break;case'markerReady':_0x1c458e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c458e])),this['_refreshSuggestionsChain'](new Set([_0x1c458e])),this['_suggestionState']['set'](_0x1c458e,'ready'),this['fire']('suggestionLoaded',_0x1c458e)):this['_suggestionState']['set'](_0x1c458e,'removed');}return _0x1c458e;}['acceptSuggestion'](_0x56186b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b1a60 of _0x56186b['getAllAdjacentSuggestions']())_0x3b1a60['accept']();});});}['discardSuggestion'](_0x27bc80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x140b3d of _0x27bc80['getAllAdjacentSuggestions']())_0x140b3d['discard']();});});}['enableCommand'](_0x2f8208,_0x199010){const _0x27e52a=this['editor']['commands']['get'](_0x2f8208);if(!_0x27e52a)throw new _0x9a3fdb('track-changes-command-not-found',this,{'commandName':_0x2f8208});if(this['_enabledCommands']['has'](_0x27e52a))throw new _0x9a3fdb('track-changes-enable-command-twice',this,{'commandName':_0x2f8208});this['_enabledCommands']['add'](_0x27e52a),_0x199010&&_0x27e52a['on']('execute',(_0x22601f,_0x3feff8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3feff8['length']>0x0&&_0x3feff8[_0x3feff8['length']-0x1]&&_0x3feff8[_0x3feff8['length']-0x1]['forceDefaultExecution']?_0x3feff8['pop']():(_0x22601f['return']=_0x199010((..._0x53e20e)=>_0x27e52a['execute'](..._0x53e20e,{'forceDefaultExecution':!0x0}),..._0x3feff8),_0x22601f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5da4fc){let _0x3805f7,_0x54b9e4;const _0x29f9a7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3805f7=_0x5da4fc();}catch(_0x50c8ac){_0x54b9e4=_0x50c8ac;}return _0x29f9a7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x54b9e4&&_0x9a3fdb['rethrowUnexpectedError'](_0x54b9e4,this),_0x3805f7;}['markInsertion'](_0x317b15,_0x417de1=null,_0x7e41be={}){if(_0x317b15['isCollapsed'])return null;const _0x2dca56=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x29e8ea,meta:_0xa7bd2c}of this['_findSuggestions'](_0x317b15,'insertion'))if(_0xa7bd2c['isOwn']){if(!_0xa7bd2c['isNextTo']){if(_0xa7bd2c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x29e8ea,_0x7e41be))continue;return _0x29e8ea;}if(qt(_0x29e8ea,_0x7e41be))return _0x29e8ea;this['_breakSuggestionMarker'](_0x29e8ea,_0x317b15['start'],_0x317b15['end']);break;}if(_0x417de1==_0x29e8ea['subType']&&qt(_0x29e8ea,_0x7e41be)){const _0xb310bf=_0x29e8ea['getFirstRange']();return _0xb310bf['start']['isEqual'](_0x317b15['end'])?this['_setSuggestionRange'](_0x29e8ea,this['_model']['createRange'](_0x317b15['start'],_0xb310bf['end'])):this['_setSuggestionRange'](_0x29e8ea,this['_model']['createRange'](_0xb310bf['start'],_0x317b15['end'])),_0x29e8ea;}}const _0x132710=_0x29fcde(),_0x4efbec=_0x2dca56['id'],_0x446a88=_0x417de1?'insertion:'+_0x417de1:'insertion',_0x14448d=this['_setSuggestionData']({'id':_0x132710,'type':_0x446a88,'createdAt':new Date(),'authorId':_0x4efbec,'attributes':_0x7e41be});return this['_addSuggestionMarker'](_0x446a88,_0x132710,_0x4efbec,_0x317b15),_0x14448d;}['markMultiRangeInsertion'](_0x18c0a5,_0x37f332='multi',_0x18e0e5={}){const _0x2dd3ee=this['editor']['plugins']['get']('Users')['me'],_0x1ce3bd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x37f332,'join');for(const _0x4f25d8 of this['getSuggestions']())if(_0x4f25d8['author']['id']==_0x2dd3ee['id']&&'insertion'==_0x4f25d8['type']&&_0x4f25d8['subType']==_0x37f332&&qt(_0x4f25d8,_0x18e0e5)&&(_0x1ce3bd(_0x4f25d8['getRanges'](),_0x18c0a5)||_0x1ce3bd(_0x18c0a5,_0x4f25d8['getRanges']()))){for(const _0x238a67 of _0x18c0a5)_0x4f25d8['addRange'](_0x238a67);return _0x4f25d8;}for(const {suggestion:_0x4cd166,meta:_0x22aef9}of this['_findSuggestions'](_0x18c0a5,'insertion')){if(!_0x22aef9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22aef9['containsRangeInObject'])continue;if(!qt(_0x4cd166,_0x18e0e5))continue;let _0x12b22a=!0x0;for(const _0x437d28 of _0x4cd166['getRanges']())for(const _0x5e223b of _0x18c0a5)if(!_0x437d28['containsRange'](_0x5e223b)){_0x12b22a=!0x1;break;}if(_0x12b22a)return _0x4cd166;}const _0x258e36=_0x29fcde(),_0x2f2ab3=_0x2dd3ee['id'],_0x4557bc='insertion:'+_0x37f332,_0x2e09b7=this['_setSuggestionData']({'id':_0x258e36,'type':_0x4557bc,'createdAt':new Date(),'authorId':_0x2f2ab3,'attributes':_0x18e0e5});for(const _0x2ef5f of _0x18c0a5)this['_addSuggestionMarker'](_0x4557bc,_0x258e36,_0x2f2ab3,_0x2ef5f,u['getMultiRangeId']());return _0x2e09b7;}['markInlineFormat'](_0x286a87,_0x12038b,_0x47c49a=null,_0x2b413b={}){if(_0x47c49a=_0x47c49a||Gt(_0x12038b),_0x286a87['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x188553=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x47c49a,'accept');return this['forceDefaultExecution'](()=>_0x188553([_0x286a87],_0x12038b,_0x2b413b)),null;}const _0x5b323d=this['editor']['plugins']['get']('Users')['me'],_0x4ce994=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xf058ad,meta:_0x14016d}of this['_findSuggestions'](_0x286a87,'insertion'))_0x14016d['isOwn']&&!_0x14016d['isInsideObject']&&_0x4ce994['push'](..._0xf058ad['getRanges']());}const _0x4d9376=function(_0x6e4ecd,_0x55e5f9){const _0x18ae43=[];for(const _0x5ce014 of _0x55e5f9){const _0x3bb331=_0x6e4ecd['getIntersection'](_0x5ce014);_0x3bb331&&_0x18ae43['push'](_0x3bb331);}return _0x18ae43;}(_0x286a87,_0x4ce994),_0x1a5adf=function(_0x1b837f,_0x50975a){const _0x1a9c4d=[_0x1b837f];for(const _0x172ea6 of _0x50975a){let _0x5ce3b9=0x0;for(;_0x5ce3b9<_0x1a9c4d['length'];){const _0xa00a20=_0x1a9c4d[_0x5ce3b9]['getDifference'](_0x172ea6);_0x1a9c4d['splice'](_0x5ce3b9,0x1,..._0xa00a20),_0x5ce3b9+=_0xa00a20['length'];}}return _0x1a9c4d;}(_0x286a87,_0x4ce994);_0x4d9376['length']&&this['_model']['change'](()=>{for(const _0x15e454 of _0x4d9376){const _0xcdc71d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x47c49a,'accept');this['forceDefaultExecution'](()=>_0xcdc71d([_0x15e454],_0x12038b,_0x2b413b));}});for(const _0x43146e of _0x1a5adf){let _0x4742aa=null,_0x2ad0d5=_0x43146e['start'],_0x59af2e=_0x43146e['end'];for(const {suggestion:_0x3a7eb9,meta:_0x3fb667}of this['_findSuggestions'](_0x43146e,'formatInline')){if(!_0x3fb667['isOwn'])continue;if(_0x3a7eb9['subType']!=_0x47c49a)continue;if(!qt(_0x3a7eb9,_0x2b413b))continue;const _0x4d9b5f=_0x3a7eb9['getFirstRange']();if(_0x4d9b5f['containsRange'](_0x43146e,!0x0))return null;_0x2ad0d5=_0x2ad0d5['isBefore'](_0x4d9b5f['start'])?_0x2ad0d5:_0x4d9b5f['start'],_0x59af2e=_0x59af2e['isAfter'](_0x4d9b5f['end'])?_0x59af2e:_0x4d9b5f['end'],_0x4742aa?_0x4d9b5f['start']['isBefore'](_0x4742aa['getFirstRange']()['start'])?(_0x4742aa['removeMarkers'](),_0x4742aa=_0x3a7eb9):_0x3a7eb9['removeMarkers']():_0x4742aa=_0x3a7eb9;}const _0x39f192=this['_model']['createRange'](_0x2ad0d5,_0x59af2e);if(_0x4742aa)this['_setSuggestionRange'](_0x4742aa,_0x39f192);else{const _0x1900d4=_0x29fcde(),_0x35be26=_0x5b323d['id'];this['_setSuggestionData']({'id':_0x1900d4,'type':'formatInline:'+_0x47c49a,'data':_0x12038b,'createdAt':new Date(),'authorId':_0x35be26,'attributes':_0x2b413b}),this['_addSuggestionMarker']('formatInline:'+_0x47c49a,_0x1900d4,_0x35be26,_0x39f192);}}return null;}['markBlockFormat'](_0x43bba4,_0x81053e,_0x4e81ce=[],_0xf949b=null,_0x4fa621={}){_0x81053e['formatGroupId']||(_0x81053e['formatGroupId']=_0x81053e['commandName']),_0x81053e['multipleBlocks']=_0x43bba4['is']('range'),_0xf949b=_0xf949b||Gt(_0x81053e);const _0x63aaaf=_0x4e81ce['map'](_0x5e853b=>Lt(_0x5e853b,this['_model'])),_0xeda3d2=_0x43bba4['is']('range')?_0x43bba4:Lt(_0x43bba4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x8a5496=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf949b,'accept');return this['forceDefaultExecution'](()=>_0x8a5496([_0xeda3d2],_0x81053e,_0x4fa621)),null;}_0x63aaaf['push'](_0xeda3d2);let _0x21546a=!0x0;for(const _0x228aaf of _0x63aaaf)if(!this['_rangeIsInLocalUserInsertion'](_0x228aaf)){_0x21546a=!0x1;break;}if(_0x21546a&&'always'!==this['_trackFormatChanges']){const _0x22671a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf949b,'accept');return this['forceDefaultExecution'](()=>_0x22671a([_0xeda3d2],_0x81053e,_0x4fa621)),null;}let _0x2ba632=null,_0x56d816=_0xeda3d2['start'],_0xd8a2a=_0xeda3d2['end'];for(const {suggestion:_0x24823f,meta:_0x4fa938}of this['_findSuggestions'](_0xeda3d2,'formatBlock')){if(!_0x4fa938['isOwn'])continue;if(_0x4fa938['isNextTo']||_0x4fa938['containsRangeInObject']||_0x4fa938['isInsideObject'])continue;if(_0x24823f['data']['formatGroupId']!=_0x81053e['formatGroupId'])continue;if(!qt(_0x24823f,_0x4fa621))continue;const _0x58a300=_0x24823f['getFirstRange']();if(_0x24823f['subType']==_0xf949b){if(_0x58a300['containsRange'](_0xeda3d2,!0x0))return null;_0x56d816=_0x56d816['isBefore'](_0x58a300['start'])?_0x56d816:_0x58a300['start'],_0xd8a2a=_0xd8a2a['isAfter'](_0x58a300['end'])?_0xd8a2a:_0x58a300['end'],_0x2ba632?_0x58a300['start']['isBefore'](_0x2ba632['getFirstRange']()['start'])?(_0x2ba632['removeMarkers'](),_0x2ba632=_0x24823f):_0x24823f['removeMarkers']():_0x2ba632=_0x24823f;}else{const _0x36ff4f=_0xeda3d2['getIntersection'](_0x58a300);this['_cutOutSuggestionMarker'](_0x24823f,_0x36ff4f);}}const _0x3b2c93=this['editor']['plugins']['get']('Users')['me'],_0x3447c0=_0x29fcde(),_0x16be61=_0x3b2c93['id'];if(_0x2ba632)return this['_setSuggestionRange'](_0x2ba632,this['_model']['createRange'](_0x56d816,_0xd8a2a)),_0x2ba632;{const _0x478421=this['_setSuggestionData']({'id':_0x3447c0,'type':'formatBlock:'+_0xf949b,'data':_0x81053e,'createdAt':new Date(),'authorId':_0x16be61,'attributes':_0x4fa621});return this['_addSuggestionMarker']('formatBlock:'+_0xf949b,_0x3447c0,_0x16be61,this['_model']['createRange'](_0x56d816,_0xd8a2a)),_0x478421;}}['markMultiRangeBlockFormat'](_0x16a6ac,_0x1d64b7,_0x1bbcf6=[],_0x457a61=null,_0x532201={}){_0x1d64b7['formatGroupId']||(_0x1d64b7['formatGroupId']=_0x1d64b7['commandName']);const _0x465e4a=_0x16a6ac[0x0];_0x1d64b7['multipleBlocks']=_0x465e4a['is']('range'),_0x457a61=_0x457a61||Gt(_0x1d64b7);const _0x2c512d=_0x1bbcf6['map'](_0x429706=>Lt(_0x429706,this['_model'])),_0x38ba0e=_0x465e4a['is']('range')?_0x16a6ac:_0x16a6ac['map'](_0x4c2243=>Lt(_0x4c2243,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1cc7a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x457a61,'accept');return this['forceDefaultExecution'](()=>_0x1cc7a1(_0x38ba0e,_0x1d64b7,_0x532201)),null;}_0x2c512d['push'](..._0x38ba0e);let _0x186f57=!0x0;for(const _0x20de99 of _0x2c512d)if(!this['_rangeIsInLocalUserInsertion'](_0x20de99)){_0x186f57=!0x1;break;}if(_0x186f57&&'always'!==this['_trackFormatChanges']){const _0x346988=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x457a61,'accept');return this['forceDefaultExecution'](()=>_0x346988(_0x38ba0e,_0x1d64b7,_0x532201)),null;}const _0x10510d=this['editor']['plugins']['get']('Users')['me'];for(const _0xcb982a of this['getSuggestions']()){if(_0xcb982a['author']['id']!=_0x10510d['id'])continue;if('formatBlock'!=_0xcb982a['type']||_0xcb982a['data']['formatGroupId']!=_0x1d64b7['formatGroupId'])continue;if(!qt(_0xcb982a,_0x532201))continue;const _0x461d36=_0xcb982a['subType']==_0x457a61;for(let _0x122c8f=0x0;_0x122c8f<_0x38ba0e['length'];_0x122c8f++){const _0x3a6e16=_0x38ba0e[_0x122c8f];for(const _0x23e7f8 of _0xcb982a['getMarkers']()){const _0x23ef00=_0x23e7f8['getRange']();if(_0x3a6e16['isEqual'](_0x23ef00)){_0x461d36?(_0x38ba0e['splice'](_0x122c8f,0x1),_0x122c8f--):_0xcb982a['removeMarker'](_0x23e7f8['name']);break;}}}}if(0x0==_0x38ba0e['length'])return null;const _0x3d586b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x457a61,'join');for(const _0x2709f8 of this['getSuggestions']())if(_0x2709f8['author']['id']==_0x10510d['id']&&'formatBlock'==_0x2709f8['type']&&_0x2709f8['data']['formatGroupId']==_0x1d64b7['formatGroupId']&&_0x2709f8['subType']==_0x457a61&&qt(_0x2709f8,_0x532201)&&(_0x3d586b(_0x2709f8['getRanges'](),_0x38ba0e)||_0x3d586b(_0x38ba0e,_0x2709f8['getRanges']()))){for(const _0x56a882 of _0x38ba0e)_0x2709f8['addRange'](_0x56a882);return _0x2709f8;}const _0x1465f0=_0x29fcde(),_0x9c209=_0x10510d['id'],_0x270a8c='formatBlock:'+_0x457a61,_0x337598=this['_setSuggestionData']({'id':_0x1465f0,'type':_0x270a8c,'data':_0x1d64b7,'createdAt':new Date(),'authorId':_0x9c209,'attributes':_0x532201});for(const _0x2923d5 of _0x38ba0e)this['_addSuggestionMarker'](_0x270a8c,_0x1465f0,_0x9c209,_0x2923d5,u['getMultiRangeId']());return _0x337598;}['markDeletion'](_0x3a82c0,_0x1565e8=null,_0x907897={}){if(_0x3a82c0['isCollapsed'])return null;const _0x4269bb=this['editor']['plugins']['get']('Users')['me'],_0x5cff53=new _0x484e63(_0x3a82c0['start'],_0x3a82c0['end']);for(const {suggestion:_0x179a93,meta:_0x18b06b}of this['_findSuggestions'](_0x5cff53,'insertion'))if(_0x18b06b['isOwn']&&!_0x18b06b['isNextTo']){if(_0x179a93['isMultiRange']){const _0xd9e0ff=_0x179a93['getRanges']()['filter'](_0x4a7d7b=>'$graveyard'!=_0x4a7d7b['root']['rootName']);_0xd9e0ff['every'](_0x45b00c=>_0x5cff53['containsRange'](_0x45b00c,!0x0))&&_0x179a93['discard']();if(_0xd9e0ff['some'](_0x12811a=>_0x12811a['containsRange'](_0x5cff53,!0x0))){const _0x3fa87c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1565e8,'accept');return this['forceDefaultExecution'](()=>_0x3fa87c([_0x5cff53],null,_0x907897)),null;}}else{const _0x3bea51=_0x5cff53['getIntersection'](_0x179a93['getFirstRange']());null!==_0x3bea51&&_0x179a93['_onDiscard']([_0x3bea51],null,_0x907897);}}if(_0x5cff53['detach'](),_0x5cff53['isCollapsed']||'$graveyard'==_0x5cff53['root']['rootName'])return null;let _0x94da60=null,_0x32c4b3=_0x5cff53['start'],_0x1c11b0=_0x5cff53['end'];const _0x26f7f0=this['_findSuggestions'](_0x5cff53,'deletion');for(const {suggestion:_0x15f36b,meta:_0x5930e4}of _0x26f7f0){const _0x50617d=this['_model']['createRange'](_0x32c4b3,_0x1c11b0);if(_0x5930e4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5930e4['containsRangeInObject']&&!_0x5930e4['isInsideObject'])){if(_0x15f36b['isMultiRange']){if(!qt(_0x15f36b,_0x907897))continue;let _0x560f48=!0x0;for(const _0xd49344 of _0x15f36b['getRanges']()){if(_0xd49344['containsRange'](_0x50617d,!0x0))return _0x15f36b;_0x50617d['containsRange'](_0xd49344)||(_0x560f48=!0x1);}_0x560f48&&_0x15f36b['discard']();}else{const _0x7e59e3=_0x15f36b['getFirstRange']();if(_0x7e59e3['containsRange'](_0x50617d,!0x0))return _0x15f36b;if(!qt(_0x15f36b,_0x907897)){_0x50617d['containsRange'](_0x7e59e3)?_0x15f36b['removeMarkers']():_0x7e59e3['containsPosition'](_0x32c4b3)?_0x32c4b3=_0x7e59e3['end']:_0x7e59e3['containsPosition'](_0x1c11b0)&&(_0x1c11b0=_0x7e59e3['start']);continue;}_0x32c4b3=_0x32c4b3['isBefore'](_0x7e59e3['start'])?_0x32c4b3:_0x7e59e3['start'],_0x1c11b0=_0x1c11b0['isAfter'](_0x7e59e3['end'])?_0x1c11b0:_0x7e59e3['end'],_0x907897=Object['assign']({},_0x15f36b['attributes']),_0x94da60?_0x7e59e3['start']['isBefore'](_0x94da60['getFirstRange']()['start'])?(_0x94da60['removeMarkers'](),_0x94da60=_0x15f36b):_0x15f36b['removeMarkers']():_0x94da60=_0x15f36b;}}}if(_0x94da60)return this['_setSuggestionRange'](_0x94da60,this['_model']['createRange'](_0x32c4b3,_0x1c11b0)),_0x94da60;{const _0x5dc582=_0x29fcde(),_0x16fe0f=this['_model']['createRange'](_0x32c4b3,_0x1c11b0),_0x5332d6=_0x4269bb['id'],_0x2d8792=_0x1565e8?'deletion:'+_0x1565e8:'deletion',_0x201822=this['_setSuggestionData']({'id':_0x5dc582,'type':_0x2d8792,'createdAt':new Date(),'authorId':_0x5332d6,'attributes':_0x907897});return this['_addSuggestionMarker'](_0x2d8792,_0x5dc582,_0x5332d6,_0x16fe0f),_0x201822;}}['markMultiRangeDeletion'](_0x27cf4a,_0x4fbec3='multi',_0x1ba34d={}){const _0x15a316=this['editor']['plugins']['get']('Users')['me'],_0x208fcb=_0x27cf4a['map'](_0x357295=>new _0x484e63(_0x357295['start'],_0x357295['end'])),_0x3f91b4=new Set();for(const {suggestion:_0x1fde2d,meta:_0x5562f4}of this['_findSuggestions'](_0x208fcb,'insertion'))_0x5562f4['isOwn']&&!_0x5562f4['isNextTo']&&_0x3f91b4['add'](_0x1fde2d);for(const _0x3d5f4d of _0x3f91b4)if(_0x3d5f4d['isMultiRange']){const _0x5bf5da=_0x3d5f4d['getRanges']();(!_0x3d5f4d['attributes']||!_0x3d5f4d['attributes']['skipNestingCheck'])&&(_0x5bf5da['every'](_0x1f42bb=>_0x208fcb['some'](_0x122c24=>_0x122c24['containsRange'](_0x1f42bb,!0x0)))&&_0x3d5f4d['discard']());if(_0x208fcb['every'](_0x51ec0d=>_0x5bf5da['some'](_0x4f5ead=>_0x4f5ead['containsRange'](_0x51ec0d,!0x0)))){const _0x43a1c5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fbec3,'accept');return this['forceDefaultExecution'](()=>_0x43a1c5(_0x27cf4a,null,_0x1ba34d)),null;}}else{const _0x1f6ae7=_0x3d5f4d['getFirstRange']();_0x208fcb['some'](_0x114d9b=>_0x114d9b['containsRange'](_0x1f6ae7,!0x0))&&_0x3d5f4d['discard']();if(_0x208fcb['every'](_0x291f90=>_0x1f6ae7['containsRange'](_0x291f90,!0x0))){const _0x5c3f24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fbec3,'accept');return this['forceDefaultExecution'](()=>_0x5c3f24(_0x208fcb,null,_0x1ba34d)),null;}}const _0x5a3afd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fbec3,'join');let _0x1d73aa=null;for(const _0x475f9a of this['getSuggestions']())if(_0x475f9a['author']['id']==_0x15a316['id']&&_0x475f9a['isInContent']&&'deletion'==_0x475f9a['type']&&_0x475f9a['subType']==_0x4fbec3&&qt(_0x475f9a,_0x1ba34d)&&(_0x5a3afd(_0x475f9a['getRanges'](),_0x208fcb)||_0x5a3afd(_0x208fcb,_0x475f9a['getRanges']()))){if(_0x1d73aa){if(_0x475f9a['commentThread']&&_0x475f9a['commentThread']['length'])continue;for(const _0xe01a4b of _0x475f9a['getRanges']())_0x1d73aa['isIntersectingWithRange'](_0xe01a4b)||_0x1d73aa['addRange'](_0xe01a4b);_0x475f9a['removeMarkers']();}else{_0x1d73aa=_0x475f9a;for(const _0x139c0e of _0x208fcb)_0x475f9a['isIntersectingWithRange'](_0x139c0e)||_0x475f9a['addRange'](_0x139c0e);}}if(_0x1d73aa)return _0x1d73aa;_0x3f91b4['clear']();for(const {suggestion:_0x4bc897,meta:_0x1a35a5}of this['_findSuggestions'](_0x208fcb,'deletion'))_0x1a35a5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a35a5['containsRangeInObject']&&!_0x1a35a5['isInsideObject'])&&qt(_0x4bc897,_0x1ba34d)&&_0x3f91b4['add'](_0x4bc897);for(const _0x1917e8 of _0x3f91b4){const _0x677779=_0x1917e8['getRanges']();if(!_0x1ba34d||!_0x1ba34d['skipNestingCheck']){if(_0x208fcb['every'](_0x38175a=>_0x677779['some'](_0x2c1eb5=>_0x2c1eb5['containsRange'](_0x38175a,!0x0))))return _0x1917e8;}(!_0x1917e8['attributes']||!_0x1917e8['attributes']['skipNestingCheck'])&&(_0x677779['every'](_0x478602=>_0x208fcb['some'](_0x5bbe48=>_0x5bbe48['containsRange'](_0x478602,!0x0)))&&_0x1917e8['discard']());}const _0x7e6183=_0x29fcde(),_0x281fed=_0x15a316['id'],_0xc38724='deletion:'+_0x4fbec3,_0x51fd56=this['_setSuggestionData']({'id':_0x7e6183,'type':_0xc38724,'createdAt':new Date(),'authorId':_0x281fed,'attributes':_0x1ba34d});for(const _0x1d39c of _0x208fcb)_0x1d39c['detach'](),_0x1d39c['isCollapsed']||'$graveyard'==_0x1d39c['root']['rootName']||this['_addSuggestionMarker'](_0xc38724,_0x7e6183,_0x281fed,_0x1d39c,u['getMultiRangeId']());return _0x51fd56;}['markAttributeChange'](_0x4b99c0,_0x521be4,_0x1708cf,_0x140650,_0x877854){if(_0x4b99c0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a94fb=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e82c1=Array['from'](this['_suggestions']['values']())['filter'](_0x2eb23a=>'attribute'==_0x2eb23a['type']&&_0x2eb23a['data']['key']==_0x521be4&&_0x2eb23a['isIntersectingWithRange'](_0x4b99c0));if('default'===this['_trackFormatChanges']){const _0x5900db=this['_findSuggestions'](_0x4b99c0,'insertion')['filter'](({meta:_0x611e})=>_0x611e['isOwn']&&!_0x611e['isInsideObject']&&!_0x611e['isNextTo'])['map'](({suggestion:_0x36380b})=>_0x36380b);_0x1e82c1['unshift'](..._0x5900db);}const _0x4307dc=new Map([[_0x4b99c0,_0x1708cf]]);for(const _0x13409c of _0x1e82c1){const _0x51d02d='attribute'==_0x13409c['type']?_0x13409c['data']['oldValue']:void 0x0,_0x35fec2=_0x13409c['getFirstRange'](),_0x518321=Array['from'](_0x4307dc['keys']())['find'](_0x4ebb90=>_0x4ebb90['isIntersecting'](_0x35fec2));if(!_0x518321)continue;const _0x4faa8d=_0x518321['getDifference'](_0x35fec2);this['_isBlockAttribute'](_0x521be4)&&'insertion'==_0x13409c['type']&&0x0!=_0x4faa8d['length']||(_0x4307dc['delete'](_0x518321),_0x4faa8d['forEach'](_0x2412f0=>{_0x4307dc['set'](_0x2412f0,_0x1708cf);}),'insertion'!=_0x13409c['type']&&_0x51d02d!=_0x140650&&_0x4307dc['set'](_0x518321['getIntersection'](_0x35fec2),_0x51d02d));}const _0x1c7002=[];for(const [_0x2206bd,_0x3ac579]of _0x4307dc){const _0x46894a=_0x29fcde(),_0x4f41f2={'key':_0x521be4,'oldValue':_0x3ac579,'newValue':_0x140650};_0x521be4['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':_0x521be4});const _0x5b5cea=('attribute:'+(_0x521be4+'|'+Gt({'newValue':_0x140650})))['substring'](0x0,0x3c),_0x55c145=this['_setSuggestionData']({'id':_0x46894a,'type':_0x5b5cea,'data':_0x4f41f2,'createdAt':new Date(),'authorId':_0x2a94fb,'attributes':_0x877854});_0x1c7002['push'](_0x55c145),this['_addSuggestionMarker'](_0x5b5cea,_0x46894a,_0x2a94fb,_0x2206bd);}return _0x1c7002;}['enableDefaultAttributesIntegration'](_0x22b741){this['enableCommand'](_0x22b741,(_0x37088b,..._0x17600c)=>{this['_recordAttributeChanges'](()=>{_0x37088b(..._0x17600c);});});}['registerBlockAttribute'](_0x2ddede){this['_blockAttributeKeys']['add'](_0x2ddede);}['registerInlineAttribute'](_0x3d7cff){this['_inlineAttributeKeys']['add'](_0x3d7cff);}['_getAttributeKey'](_0x512c21){return'attribute'==_0x512c21['type']?_0x512c21['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1ef439,_0x59e53d){const _0x2c5f3c=_0x1ef439['getFirstMarker']();this['_model']['change'](_0x228e9b=>{_0x228e9b['updateMarker'](_0x2c5f3c,{'range':_0x59e53d});});}['_addThreadToSuggestion'](_0x1331a7){const _0x1b3afe=_0x1331a7['id'],_0x3a9a44=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1b3afe)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3a9a44,'threadId':_0x1b3afe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x21eadf=this['_commentsRepository']['getCommentThread'](_0x1b3afe);_0x21eadf['unbind']('isRemovable'),_0x21eadf['isRemovable']=!0x1,_0x1331a7['commentThread']=_0x21eadf;}['_checkSuggestionCorrectness'](_0x1c2cb3,_0x49cc13,_0x5ec6a3,_0x3f2e38){if(_0x1c2cb3['type']!=_0x49cc13||_0x1c2cb3['subType']!=_0x5ec6a3||_0x1c2cb3['creator']['id']!=_0x3f2e38)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x9a3fdb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2bd268,_0x3fb7d5){const _0x3eebe1=_0x2bd268['getFirstRange']();if(_0x3fb7d5['isEqual'](_0x3eebe1))_0x2bd268['removeMarkers']();else{if(_0x3eebe1['containsRange'](_0x3fb7d5)){const _0x50ef57=this['_model']['createPositionAt'](_0x3fb7d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bd268,this['_model']['createRange'](_0x3eebe1['start'],_0x50ef57));const _0x368feb=_0x29fcde(),_0x2b783e=_0x2bd268['creator']['id'],_0x4450ce=_0x2bd268['type']+':'+_0x2bd268['subType'];this['_setSuggestionData']({'id':_0x368feb,'type':_0x4450ce,'createdAt':new Date(),'authorId':_0x2b783e,'data':_0x2bd268['data'],'attributes':_0x2bd268['attributes']});const _0x37c540=this['_model']['createPositionAt'](_0x3fb7d5['end']['parent'],'after'),_0x4b9275=this['_model']['createRange'](_0x37c540,_0x3eebe1['end']);this['_addSuggestionMarker'](_0x4450ce,_0x368feb,_0x2b783e,_0x4b9275);}else{if(_0x3eebe1['containsPosition'](_0x3fb7d5['start'])){const _0x13d625=this['_model']['createPositionAt'](_0x3fb7d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bd268,this['_model']['createRange'](_0x3eebe1['start'],_0x13d625));}else{const _0x1ecf8e=this['_model']['createPositionAt'](_0x3fb7d5['end']['parent'],'after');this['_setSuggestionRange'](_0x2bd268,this['_model']['createRange'](_0x1ecf8e,_0x3eebe1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x371374){for(const {suggestion:_0x47fa46,meta:_0x3088d7}of this['_findSuggestions'](_0x371374,'insertion')){if(!_0x3088d7['isOwn'])continue;const _0x3f69a0=_0x47fa46['getRanges']();for(const _0x264a56 of _0x3f69a0)if(!_0x371374['getDifference'](_0x264a56)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x58e750){const _0x1b8252=this['editor']['plugins']['get']('Users')['getUser'](_0x58e750);if(!_0x1b8252)throw new _0x9a3fdb('track-changes-user-not-found',this);return _0x1b8252;}['_getExternalAuthor'](_0x10ce95){const _0x3650a9=this['editor']['plugins']['get']('Users'),_0x3db69a=_0x3daa0e('external:'+_0x10ce95),_0x54bb3c=_0x3650a9['getUser'](_0x3db69a);return _0x54bb3c||_0x3650a9['addUser']({'id':_0x3db69a,'name':_0x10ce95});}['_createSuggestion'](_0x1d5e0c,_0x195f27,_0x5a75a7,_0xaa8f99,_0x4834c1){const _0x3f6328=this['_getAuthorFromId'](_0xaa8f99),_0x537a25=this['_suggestionFactory']['buildSuggestion'](_0x1d5e0c,_0x195f27,_0x5a75a7,_0x3f6328,_0x4834c1,_0x225c03=>{this['_updateSuggestionData'](_0x5a75a7,{'attributes':_0x225c03});const _0x28bfb6=this['getSuggestion'](_0x5a75a7);this['_joinWithAdjacentSuggestions'](new Set([_0x28bfb6])),this['_refreshSuggestionsChain'](new Set([_0x28bfb6]));});return this['listenTo'](_0x537a25,'accept',()=>{this['_updateSuggestionData'](_0x5a75a7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x537a25,'discard',()=>{this['_updateSuggestionData'](_0x5a75a7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5a75a7,_0x537a25),this['_suggestionState']['set'](_0x537a25,'notReady'),_0x537a25;}['_splitMarkerName'](_0x1c16c3){const _0xa636a8=_0x1c16c3['split'](':');return{'group':_0xa636a8[0x0],'type':_0xa636a8[0x1],'subType':_0xa636a8['length']>=0x5?_0xa636a8[0x2]:null,'id':_0xa636a8['length']<0x5?_0xa636a8[0x2]:_0xa636a8[0x3],'authorId':_0xa636a8['length']<0x5?_0xa636a8[0x3]:_0xa636a8[0x4],'markerCount':0x6==_0xa636a8['length']?_0xa636a8[0x5]:null};}['_breakSuggestionMarker'](_0x494b98,_0x56e74e,_0x205e89){const _0x435313=_0x494b98['getFirstRange'](),_0x1c4b1c=_0x435313['start'],_0xe9fc16=_0x435313['end'];this['_setSuggestionRange'](_0x494b98,this['_model']['createRange'](_0x1c4b1c,_0x56e74e));const _0x5c1eab=_0x29fcde(),_0x23df2a=_0x494b98['creator']['id'],_0x2a719b=_0x494b98['type']+(_0x494b98['subType']?':'+_0x494b98['subType']:'');this['_setSuggestionData']({'id':_0x5c1eab,'type':_0x2a719b,'createdAt':new Date(),'authorId':_0x23df2a,'originalSuggestionId':_0x494b98['id'],'attributes':_0x494b98['attributes'],'data':_0x494b98['data']});const _0x51a0b0=this['_getAttributeKey'](_0x494b98);('formatBlock'==_0x494b98['type']||_0x51a0b0&&this['_isBlockAttribute'](_0x51a0b0))&&(_0x205e89=this['_model']['createPositionBefore'](_0x205e89['parent'])),this['_addSuggestionMarker'](_0x2a719b,_0x5c1eab,_0x23df2a,this['_model']['createRange'](_0x205e89,_0xe9fc16));}['_findSuggestions'](_0xe53f27,_0x16300f=null){const _0x279110=[],_0x3eaa36=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xe53f27)||(_0xe53f27=[_0xe53f27]);for(const _0x1dcc50 of this['getSuggestions']()){if(!_0x1dcc50['isInContent'])continue;if(_0x16300f&&_0x1dcc50['type']!=_0x16300f)continue;let _0x5b6d4f=!0x1;for(const _0x2f795c of _0x1dcc50['getRanges']()){for(const _0x3c79c0 of _0xe53f27){const _0x681698=_0x3c79c0['start']['isEqual'](_0x2f795c['end'])||_0x3c79c0['end']['isEqual'](_0x2f795c['start']);if(_0x681698||_0x3c79c0['getIntersection'](_0x2f795c)){const _0x5a0d57=_0x3c79c0['containsRange'](_0x2f795c)&&Ot(this['_model']['schema'],_0x2f795c['start'],_0x3c79c0),_0x501f42=_0x2f795c['containsRange'](_0x3c79c0)&&Ot(this['_model']['schema'],_0x3c79c0['start'],_0x2f795c);_0x279110['push']({'suggestion':_0x1dcc50,'meta':{'isOwn':_0x3eaa36==_0x1dcc50['author'],'isNextTo':_0x681698,'isInsideObject':_0x5a0d57,'containsRangeInObject':_0x501f42}}),_0x5b6d4f=!0x0;break;}}if(_0x5b6d4f)break;}}return _0x279110;}['_addSuggestionMarker'](_0x5198fa,_0x2fc1c5,_0x3440e4,_0x4a3fba,_0x3f735d){this['_model']['change'](_0x19cd0f=>{let _0xe861b3='suggestion:'+_0x5198fa+':'+_0x2fc1c5+':'+_0x3440e4;_0x3f735d&&(_0xe861b3=_0xe861b3+':'+_0x3f735d),_0x19cd0f['addMarker'](_0xe861b3,{'range':_0x4a3fba,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x133616){const _0x1a4c6c=_0x133616['previous'],_0x57422f=_0x133616['next'];_0x133616['previous']=null,_0x133616['next']=null,null!=_0x1a4c6c&&_0x1a4c6c['next']==_0x133616&&(_0x1a4c6c['next']=_0x57422f),null!=_0x57422f&&_0x57422f['previous']==_0x133616&&(_0x57422f['previous']=_0x1a4c6c),'ready'==this['_suggestionState']['get'](_0x133616)&&(this['_suggestionState']['set'](_0x133616,'removed'),this['fire']('suggestionUnloaded',_0x133616,_0x1a4c6c,_0x57422f));}['_setSuggestionData'](_0x1891cd){const _0x50fe40=_0x1891cd['id'],_0x510c8c=this['addSuggestionData'](_0x1891cd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x27bd42=this['editor']['plugins']['get']('PendingActions'),_0x876bd=_0x510c8c['hasComments'],_0xfb0f0e=_0x510c8c['subType']?_0x510c8c['type']+':'+_0x510c8c['subType']:_0x510c8c['type'],_0x56c7cd=this['editor']['locale'],_0x1cce81=_0x27bd42['add'](o(_0x56c7cd,'PENDING_ACTION_SUGGESTION')),_0x2f29db={'id':_0x50fe40,'type':_0xfb0f0e,'hasComments':_0x876bd,'data':_0x1891cd['data']||null,'originalSuggestionId':_0x1891cd['originalSuggestionId']||null,'attributes':_0x510c8c['attributes']};this['_adapter']['addSuggestion'](_0x2f29db)['then'](_0x15b487=>{_0x510c8c['_saved']=!0x0,_0x27bd42['remove'](_0x1cce81),_0x15b487&&_0x15b487['createdAt']&&(this['_suggestions']['get'](_0x50fe40)['createdAt']=_0x15b487['createdAt']);})['catch'](_0xc25390=>{throw _0x3a746c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x510c8c['discard']();}),_0x510c8c['stopListening'](),this['_suggestions']['delete'](_0x510c8c['id']),this['_suggestionState']['delete'](_0x510c8c),_0xc25390;});}return _0x510c8c;}['_isBlockAttribute'](_0x43bf18){return this['_blockAttributeKeys']['has'](_0x43bf18);}['_updateSuggestionData'](_0xa9b7de,_0x3fb68b){const _0x344701=this['editor']['plugins']['get']('PendingActions'),_0x347ac5=this['getSuggestion'](_0xa9b7de);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x347ac5['_saved']){const _0x14d534=_0x344701['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xa9b7de,_0x3fb68b)['then'](()=>{_0x344701['remove'](_0x14d534);});}else _0x347ac5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xa9b7de,_0x3fb68b);});}}['_getSuggestionData'](_0x3bb846){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x9a3fdb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3bb846);}['_handleNewSuggestionMarker'](_0x347dca){const {id:_0x3e5cfa,type:_0xe92d60,subType:_0xb49835,authorId:_0x202806}=this['_splitMarkerName'](_0x347dca),_0xddd2f3=this['_suggestions']['get'](_0x3e5cfa)||this['_createSuggestion'](_0xe92d60,_0xb49835,_0x3e5cfa,_0x202806,{});switch(this['_checkSuggestionCorrectness'](_0xddd2f3,_0xe92d60,_0xb49835,_0x202806),this['_suggestionState']['get'](_0xddd2f3)){case'notReady':this['_getSuggestionData'](_0x3e5cfa)['then'](_0x167abb=>{let _0x336fc1=Promise['resolve']();_0x167abb['hasComments']&&(_0x336fc1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e5cfa})),_0x336fc1['then'](()=>{this['addSuggestionData'](_0x167abb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xddd2f3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e5cfa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xddd2f3,'ready'),this['fire']('suggestionLoaded',_0xddd2f3);break;case'ready':this['fire']('suggestionChanged',_0xddd2f3);}return _0xddd2f3['addMarkerName'](_0x347dca),_0xddd2f3;}['_refreshSuggestionsChain'](_0x509af6){const _0x54c601=Array['from'](_0x509af6),_0x1d7c82=_0x54c601['filter'](_0x54a959=>'attribute'==_0x54a959['type']);this['_refreshAttributeSuggestionsChain'](_0x1d7c82);const _0x47ced4=_0x54c601['filter'](_0x80a935=>!_0x80a935['isMultiRange']&&'attribute'!=_0x80a935['type']),_0x1d0b46=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10f6ba=>!_0x10f6ba['isMultiRange']&&'attribute'!=_0x10f6ba['type']),_0xeeeca7=_0x1d0b46['filter'](_0x38d3d9=>!_0x509af6['has'](_0x38d3d9)),_0x5f14c9=new Map(_0x1d0b46['map'](_0x45c0f1=>[_0x45c0f1,this['_suggestionFactory']['getSuggestionCallback'](_0x45c0f1['type'],_0x45c0f1['subType'],'chain')])),_0x4c0aaf=new Map(_0x1d0b46['map'](_0x35630b=>[_0x35630b,_0x35630b['getFirstRange']()])),_0x4713c6=new Set(),_0x562ccc=new Set();for(let _0x2c1200=0x0;_0x2c1200<_0x47ced4['length'];_0x2c1200++)_0x45898a(_0x47ced4[_0x2c1200],_0x47ced4,_0x2c1200+0x1);for(let _0x5f2b3f=0x0;_0x5f2b3f<_0x47ced4['length'];_0x5f2b3f++)_0x45898a(_0x47ced4[_0x5f2b3f],_0xeeeca7,0x0);const _0xbf94bd=new Set();for(let _0x1dc5b2=0x0;_0x1dc5b2<_0x47ced4['length'];_0x1dc5b2++){const _0x928346=_0x47ced4[_0x1dc5b2];!_0x562ccc['has'](_0x928346)&&_0x928346['previous']&&(_0xbf94bd['add'](_0x928346['previous']),_0x928346['previous']['next']===_0x928346&&(_0x928346['previous']['next']=null),_0x928346['previous']=null),!_0x4713c6['has'](_0x928346)&&_0x928346['next']&&(_0xbf94bd['add'](_0x928346['next']),_0x928346['next']['previous']===_0x928346&&(_0x928346['next']['previous']=null),_0x928346['next']=null);}function _0x45898a(_0x1a471e,_0x5137a7,_0xf21c28){for(let _0x20e552=_0xf21c28;_0x20e552<_0x5137a7['length'];_0x20e552++){const _0x502532=_0x56737e(_0x1a471e,_0x5137a7[_0x20e552]);_0x502532&&(_0x502532[0x0]['next']=_0x502532[0x1],_0x502532[0x1]['previous']=_0x502532[0x0],_0x4713c6['add'](_0x502532[0x0]),_0x562ccc['add'](_0x502532[0x1]));}}function _0x56737e(_0x141c82,_0x4e75f1){if(_0x141c82['author']['id']!==_0x4e75f1['author']['id'])return null;const _0x579154=_0x5f14c9['get'](_0x141c82)(_0x141c82,_0x4e75f1,_0x4c0aaf['get'](_0x141c82),_0x4c0aaf['get'](_0x4e75f1));if(!_0x579154)return null;return _0x5f14c9['get'](_0x4e75f1)(_0x141c82,_0x4e75f1,_0x4c0aaf['get'](_0x141c82),_0x4c0aaf['get'](_0x4e75f1))?_0x579154[0x1]['commentThread']&&_0x579154[0x1]['commentThread']['length']?null:_0x579154:null;}_0xbf94bd['size']&&this['_refreshSuggestionsChain'](_0xbf94bd);}['_refreshAttributeSuggestionsChain'](_0x29b2b4){if(0x0==_0x29b2b4['length'])return;const _0x26252b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xff93f=>'attribute'==_0xff93f['type']&&_0xff93f['_isDataLoaded']),_0x4ec575=[],_0x415696=new Map();for(const _0x31461b of _0x26252b){const _0x1ffdbf=_0x3daa0e(_0x31461b['attributes']);_0x415696['has'](_0x1ffdbf)||(_0x415696['set'](_0x1ffdbf,_0x4ec575['length']),_0x4ec575['push']([]));const _0x582f3d=_0x415696['get'](_0x1ffdbf);_0x4ec575[_0x582f3d]['push'](_0x31461b);}!(function(){_0x4ec575['sort']((_0x1984b3,_0x34b22c)=>{const _0x276019=_0x1984b3[0x0]['createdAt'],_0x2468f9=_0x34b22c[0x0]['createdAt'];return _0x276019==_0x2468f9?_0x1984b3[0x0]['attributes']['groupId']<_0x34b22c[0x0]['attributes']['groupId']?-0x1:0x1:_0x276019<_0x2468f9?-0x1:0x1;});for(const _0x1bc55 of _0x4ec575)_0x1bc55['sort']((_0x29eecf,_0x195a1f)=>_0x29eecf['id']<_0x195a1f['id']?-0x1:0x1);}());for(let _0x13a870=0x0;_0x13a870<_0x4ec575['length'];_0x13a870++){if(0x0==_0x4ec575[_0x13a870]['length'])continue;const _0x4e84d4=[];for(let _0x2cc9fb=_0x13a870+0x1;_0x2cc9fb<_0x4ec575['length'];_0x2cc9fb++)0x0!=_0x4ec575[_0x2cc9fb]['length']&&_0x46ae3e(_0x4ec575[_0x13a870],_0x4ec575[_0x2cc9fb])&&_0x4e84d4['push'](_0x2cc9fb);for(const _0x39df0d of _0x4e84d4)_0x4ec575[_0x13a870]=_0x4ec575[_0x13a870]['concat'](_0x4ec575[_0x39df0d]),_0x4ec575[_0x39df0d]=[];}for(const _0x2f726a of _0x4ec575)for(let _0x4fff9b=0x0;_0x4fff9b<_0x2f726a['length'];_0x4fff9b++){const _0x486a22=_0x2f726a[_0x4fff9b+0x1]||null;_0x2f726a[_0x4fff9b]['next']!==_0x486a22&&(_0x2f726a[_0x4fff9b]['next']=_0x486a22);}for(const _0x4a0984 of _0x4ec575)for(let _0x3ee26b=0x0;_0x3ee26b<_0x4a0984['length'];_0x3ee26b++){const _0x2fcadd=_0x4a0984[_0x3ee26b-0x1]||null;_0x4a0984[_0x3ee26b]['previous']!==_0x2fcadd&&(_0x4a0984[_0x3ee26b]['previous']=_0x2fcadd);}function _0x46ae3e(_0x7ed8d1,_0x50d2b0){if(_0x7ed8d1[0x0]['attributes']['groupId']!==_0x50d2b0[0x0]['attributes']['groupId']&&_0x7ed8d1[0x0]['author']!==_0x50d2b0[0x0]['author'])return!0x1;if(!function(_0x387995,_0x5198d8){if(!_0x387995['hasComments']&&!_0x5198d8['hasComments'])return!0x0;if(_0x387995['hasComments']&&_0x5198d8['hasComments'])return!0x1;if(_0x387995['hasComments']&&_0x5198d8['createdAt']<_0x387995['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5198d8['hasComments']&&_0x387995['createdAt']<_0x5198d8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x7ed8d1[0x0],_0x50d2b0[0x0]))return!0x1;const _0x188191=Tt(_0x7ed8d1[0x0]['attributes'],'groupId'),_0x250922=Tt(_0x50d2b0[0x0]['attributes'],'groupId');if(!_0x29fa87(_0x188191,_0x250922))return!0x1;return!!_0x7ed8d1['every'](_0x1efcff=>_0x50d2b0['some'](_0x29f686=>_0x1efcff['getFirstRange']()['isEqual'](_0x29f686['getFirstRange']())))&&_0x50d2b0['every'](_0xf7b55=>_0x7ed8d1['some'](_0x4cba2a=>_0xf7b55['getFirstRange']()['isEqual'](_0x4cba2a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5e3a2f){const _0x3fa734=Array['from'](_0x5e3a2f),_0x228f3a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x60b263=_0x228f3a['filter'](_0x3af1f0=>!_0x5e3a2f['has'](_0x3af1f0)),_0x26898d=new Map(_0x3fa734['map'](_0x32fcf5=>[_0x32fcf5,this['_suggestionFactory']['getSuggestionCallback'](_0x32fcf5['type'],_0x32fcf5['subType'],'join')])),_0x3ccd25=new Map(_0x228f3a['map'](_0x9ef5a0=>[_0x9ef5a0,_0x9ef5a0['getRanges']()]));for(let _0x343b39=0x0;_0x343b39<_0x3fa734['length'];_0x343b39++){if(_0x1266ae(this,_0x3fa734[_0x343b39],_0x3fa734,_0x343b39+0x1))return!0x0;}for(let _0x2cd3cd=0x0;_0x2cd3cd<_0x3fa734['length'];_0x2cd3cd++){if(_0x1266ae(this,_0x3fa734[_0x2cd3cd],_0x60b263,0x0))return!0x0;}return!0x1;function _0x1266ae(_0x4dddd1,_0x707c33,_0x41b5c5,_0x32abdf){for(let _0x1333d4=_0x32abdf;_0x1333d4<_0x41b5c5['length'];_0x1333d4++){const _0x4fb773=_0x41b5c5[_0x1333d4];if(_0x4fb773['type']!==_0x707c33['type']||_0x4fb773['author']['id']!==_0x707c33['author']['id']||_0x4fb773['subType']!==_0x707c33['subType'])continue;if(!Jt(_0x707c33,_0x4fb773))continue;if('attribute'==_0x707c33['type']&&_0x707c33['data']['oldValue']!=_0x4fb773['data']['oldValue'])continue;if('attribute'==_0x707c33['type']&&_0x4dddd1['_isBlockAttribute'](_0x707c33['data']['key']))continue;if('formatBlock'==_0x707c33['type']){const _0x37ad18=_0x4dddd1['editor']['model'],_0xddf4f1=_0x707c33['getContainedElement']();if(_0xddf4f1&&(_0x37ad18['schema']['isObject'](_0xddf4f1)||_0x37ad18['schema']['isLimit'](_0xddf4f1)))continue;}const _0x4c0eb8=_0x26898d['get'](_0x707c33),_0x8ddd7c=_0x3ccd25['get'](_0x707c33),_0x265aaa=_0x3ccd25['get'](_0x4fb773),_0x52736e=_0x707c33['commentThread']&&_0x707c33['commentThread']['length'],_0x5c81bd=_0x4fb773['commentThread']&&_0x4fb773['commentThread']['length'];if(!_0x52736e&&_0x4c0eb8(_0x265aaa,_0x8ddd7c))return _0x4dddd1['_joinSuggestions'](_0x4fb773,_0x707c33),_0x3ccd25['delete'](_0x707c33),!0x0;if(!_0x5c81bd&&_0x4c0eb8(_0x8ddd7c,_0x265aaa))return _0x4dddd1['_joinSuggestions'](_0x707c33,_0x4fb773),_0x3ccd25['delete'](_0x4fb773),!0x0;}return!0x1;}}['_joinSuggestions'](_0x440f9f,_0xb88afd){if(_0x440f9f['isMultiRange']){for(const _0x2ac54a of _0xb88afd['getRanges']())_0x440f9f['addRange'](_0x2ac54a);}else{const _0x468e50=_0xb88afd['getFirstRange']()['end'];this['_setSuggestionRange'](_0x440f9f,this['_model']['createRange'](_0x440f9f['getFirstRange']()['start'],_0x468e50));}_0xb88afd['removeMarkers']();}['_getMarkerAnnouncementText'](_0xa139da,_0x4ed420,_0x5be00c){const _0x40511b=_0xa139da['startsWith']('format')||_0xa139da['startsWith']('attribute')?'FORMATTING':_0xa139da['toUpperCase']();return o(this['editor']['locale'],_0x4ed420+'_'+_0x40511b+'_SUGGESTION_ANNOUNCEMENT',_0x5be00c);}['_initAriaMarkerChangeAnnouncements'](){const _0x4fa373=this['editor'];if(!_0x4fa373['ui'])return;const {ariaLiveAnnouncer:_0x48d590}=_0x4fa373['ui'];_0xf3151d(this['_model'],({left:_0x1b8d58,entered:_0x4c706b})=>{for(const _0x5b3b5f of _0x1b8d58){const {group:_0x3fc202,type:_0x22f799}=this['_splitMarkerName'](_0x5b3b5f['name']);if('suggestion'===_0x3fc202){_0x48d590['announce'](this['_getMarkerAnnouncementText'](_0x22f799,'LEAVE'));break;}}for(const _0x5bd467 of _0x4c706b){const {group:_0x4a1b83,type:_0x18da76}=this['_splitMarkerName'](_0x5bd467['name']);if('suggestion'===_0x4a1b83){_0x48d590['announce'](this['_getMarkerAnnouncementText'](_0x18da76,'ENTER',_0x4f3ce6(_0x38482b)));break;}}});}['_processAttributeChanges'](_0x57412b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x25e7d2=this['editor'],_0x49680a=_0x25e7d2['model']['document']['differ']['getChanges']();if(0x0==_0x49680a['length'])return!0x1;const _0x22c9b6=[],_0x208109=_0x49680a['filter'](_0x80c0f2=>'attribute'==_0x80c0f2['type']),_0x9f2a4a=_0x49680a['filter'](_0x1ae3d7=>'insert'==_0x1ae3d7['type']&&'$text'!=_0x1ae3d7['name']),_0xdbb86=_0x49680a['filter'](_0x3369bf=>'remove'==_0x3369bf['type']&&'$text'!=_0x3369bf['name']);for(const _0x520580 of _0x208109)_0x22c9b6['push']({'key':_0x520580['attributeKey'],'newValue':_0x520580['attributeNewValue'],'oldValue':_0x520580['attributeOldValue'],'range':Pt(_0x520580['range'],_0x25e7d2['model'])});for(const _0x2e796b of _0x9f2a4a){const _0x1501ab=_0xdbb86['find'](_0x2dc877=>_0x2dc877['position']['isEqual'](_0x2e796b['position']));_0x1501ab&&_0x22c9b6['push']({'key':m,'newValue':_0x2e796b['name'],'oldValue':_0x1501ab['name'],'range':_0x25e7d2['model']['createRangeOn'](_0x2e796b['position']['nodeAfter'])});}return 0x0!=_0x22c9b6['length']&&this['_reduceExistingSuggestions'](_0x57412b,_0x22c9b6);}['_processAttributeSuggestions'](_0x4e675e){let _0x2e5790=!0x1;const _0x4b8c74=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x139d50=>_0x139d50['data']['newRange']&&_0x139d50['name']['startsWith']('suggestion:attribute:'));for(const _0x529854 of _0x4b8c74){const {subType:_0x3f6f95,id:_0x10bf0e}=this['_splitMarkerName'](_0x529854['name']),_0x17ffcd=_0x3f6f95['split']('|')[0x0];for(const _0x1f4ba6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f4ba6['id']!=_0x10bf0e&&'attribute'==_0x1f4ba6['type']&&_0x1f4ba6['data']&&_0x1f4ba6['data']['key']==_0x17ffcd&&_0x1f4ba6['getFirstRange']()['isIntersecting'](_0x529854['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f4ba6,_0x529854['data']['newRange'],_0x4e675e),_0x2e5790=!0x0);}return _0x2e5790;}['_recordAttributeChanges'](_0x635929){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x635929();}['_isRegisteredAttribute'](_0x12c49d){const _0x25869f=this['_isBlockAttribute'](_0x12c49d),_0x641245=this['_inlineAttributeKeys']['has'](_0x12c49d);return _0x25869f||_0x641245;}['_reduceExistingSuggestions'](_0x587667,_0x179780){if(0x0==_0x179780['length'])return!0x1;let _0x5d181b=!0x1;for(const _0x2a1d24 of _0x179780){const _0x5b44e6=this['_findSuggestions'](_0x2a1d24['range'],'attribute')['filter'](_0x205172=>!_0x205172['meta']['isNextTo'])['map'](_0x5a6aa7=>_0x5a6aa7['suggestion']),_0x1323e4=_0x3daa0e({'newValue':_0x2a1d24['newValue']});_0x5b44e6['filter'](_0x544693=>{const [_0xcbb8a5,_0x249b3a]=_0x544693['subType']['split']('|');return _0xcbb8a5==_0x2a1d24['key']&&_0x249b3a!=_0x1323e4;})['forEach'](_0x201347=>{this['_reduceSuggestionAttributeRange'](_0x201347,_0x2a1d24['range'],_0x587667),_0x5d181b=!0x0;});}return _0x5d181b;}['_reduceSuggestionAttributeRange'](_0x3bf41f,_0x12d6cd,_0x98c53a){const _0x13b7ff=_0x3bf41f['getFirstRange']()['getDifference'](_0x12d6cd);0x0!==_0x13b7ff['length']?0x1!==_0x13b7ff['length']?this['_breakSuggestionMarker'](_0x3bf41f,_0x12d6cd['start'],_0x12d6cd['end']):this['_setSuggestionRange'](_0x3bf41f,_0x13b7ff[0x0]):_0x98c53a['removeMarker'](_0x3bf41f['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2355c5){this['_editor']=_0x2355c5,this['_model']=_0x2355c5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x30f639,_0x5d005d,_0x16a16e,_0x13a0fb,_0x2a60b8,_0x1c9681){return new u(this['_model'],{'type':_0x30f639,'subType':_0x5d005d,'id':_0x16a16e,'author':_0x13a0fb,'creator':_0x13a0fb,'attributes':_0x2a60b8,'onAttributesChange':_0x1c9681,'onAccept':(..._0x4d3229)=>this['getSuggestionCallback'](_0x30f639,_0x5d005d,'accept')(..._0x4d3229),'onDiscard':(..._0x194fd0)=>this['getSuggestionCallback'](_0x30f639,_0x5d005d,'discard')(..._0x194fd0)});}['registerCustomCallback'](_0x33601d,_0x13000f,_0x16acbd,_0x374822){const _0x13ed60=_0x33601d+':'+_0x13000f+':'+_0x16acbd;this['_customCallbacks']['set'](_0x13ed60,_0x374822);}['getSuggestionCallback'](_0xf53e33,_0x5cb169,_0x269de5){const _0x4908b7=_0xf53e33+':'+_0x5cb169+':'+_0x269de5;return this['_customCallbacks']['get'](_0x4908b7)||this['_defaultCallbacks']['get'](_0xf53e33+':'+_0x269de5);}['_registerDefaultCallbacks'](){const _0x4a9be7=()=>!0x1,_0x277865=_0x27309b=>{_0x27309b['sort']((_0x42bfea,_0x18bdb2)=>_0x42bfea['start']['isBefore'](_0x18bdb2['start'])?0x1:-0x1),this['_model']['change'](_0x261ba1=>{for(const _0x280b1b of _0x27309b){let _0xd3c92b;_0xd3c92b=_0x280b1b['end']['isAtEnd']&&_0x280b1b['end']['parent']==_0x280b1b['start']['nodeAfter']?_0x261ba1['createSelection'](_0x280b1b['start']['nodeAfter'],'on'):_0x261ba1['createSelection'](_0x280b1b),this['_model']['deleteContent'](_0xd3c92b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x50b0fb=(_0x1af5ee,_0x55eebb)=>{_0x55eebb&&this['_model']['change'](_0x53c2bd=>{const {commandName:_0x25bd68,commandParams:_0x143a59=[]}=_0x55eebb,_0x2b2822=_0x1af5ee['map'](_0x2aba82=>(Vt(_0x2aba82)&&(_0x2aba82=this['_model']['createRange'](_0x2aba82['end'])),_0x2aba82))['filter'](_0x6ef462=>'$graveyard'!==_0x6ef462['root']['rootName']);if(_0x2b2822['length']<0x1)return;const _0x2ac381=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x137ab6=>_0x484e63['fromRange'](_0x137ab6));_0x53c2bd['setSelection'](_0x2b2822);for(const _0x2197ad of this['_editor']['commands']['commands']())_0x2197ad['refresh']();_0x143a59['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x25bd68,..._0x143a59);const _0x5451db=_0x2ac381['filter'](_0x1e61c9=>'$graveyard'!=_0x1e61c9['root']['rootName']);_0x5451db['length']>0x0&&_0x53c2bd['setSelection'](_0x5451db);for(const _0x3adecb of _0x2ac381)_0x3adecb['detach']();});},_0x4f4ebc=(_0x264aaf,_0x294fd4)=>0x1==_0x264aaf['length']&&0x1==_0x294fd4['length']&&_0x264aaf[0x0]['end']['isEqual'](_0x294fd4[0x0]['start']),_0x5df7c8=(_0x159b54,_0x57e761,_0x35df4e,_0x2279e9)=>Ht(_0x159b54,_0x57e761,_0x35df4e,_0x2279e9,this['_model'])?[_0x159b54,_0x57e761]:Ht(_0x57e761,_0x159b54,_0x2279e9,_0x35df4e,this['_model'])?[_0x57e761,_0x159b54]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a9be7),this['_defaultCallbacks']['set']('insertion:discard',_0x277865),this['_defaultCallbacks']['set']('insertion:join',_0x4f4ebc),this['_defaultCallbacks']['set']('insertion:chain',_0x5df7c8),this['_defaultCallbacks']['set']('deletion:accept',_0x277865),this['_defaultCallbacks']['set']('deletion:discard',_0x4a9be7),this['_defaultCallbacks']['set']('deletion:join',_0x4f4ebc),this['_defaultCallbacks']['set']('deletion:chain',_0x5df7c8),this['_defaultCallbacks']['set']('formatInline:accept',_0x50b0fb),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a9be7),this['_defaultCallbacks']['set']('formatInline:join',_0x4f4ebc),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a9be7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x50b0fb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a9be7),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f4ebc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a9be7),this['_defaultCallbacks']['set']('attribute:accept',_0x4a9be7),this['_defaultCallbacks']['set']('attribute:discard',(_0x1c20cc,_0x18aee3)=>{if(!_0x18aee3)return;const _0x34387b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x143b48=>{if(_0x18aee3['key']==m)for(const _0x2536b9 of _0x1c20cc){const _0x3e6741=_0x2536b9['start']['nodeAfter'],_0x4d4f1d=_0x18aee3['oldValue'];_0x143b48['rename'](_0x3e6741,_0x4d4f1d);}else{if(_0x34387b['_isBlockAttribute'](_0x18aee3['key'])){for(const _0x93ba74 of _0x1c20cc)void 0x0!==_0x18aee3['oldValue']?_0x143b48['setAttribute'](_0x18aee3['key'],_0x18aee3['oldValue'],_0x93ba74['start']['nodeAfter']):_0x143b48['removeAttribute'](_0x18aee3['key'],_0x93ba74['start']['nodeAfter']);}else{for(const _0x6a18ef of _0x1c20cc)_0x18aee3['oldValue']?_0x143b48['setAttribute'](_0x18aee3['key'],_0x18aee3['oldValue'],_0x6a18ef):_0x143b48['removeAttribute'](_0x18aee3['key'],_0x6a18ef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f4ebc);}}function Ot(_0x65c53d,_0x245d80,_0x1c0156){for(const _0x918538 of _0x245d80['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x918538['root']==_0x918538)return!0x1;if(!_0x1c0156['containsItem'](_0x918538))return!0x1;if(_0x65c53d['isObject'](_0x918538)||_0x65c53d['isLimit'](_0x918538))return!0x0;}return!0x1;}function Vt(_0x104a55){return _0x104a55['end']['parent']==_0x104a55['start']['nodeAfter']&&_0x104a55['end']['isAtStart'];}function Ut(_0x4b00d3,_0x16564d,_0x1e82ae,_0x5ebdc2){const _0x492e4b=_0x34af3c=>!_0x34af3c['item']['is']('$textProxy')&&!_0x5ebdc2['isObject'](_0x34af3c['item']),_0x385b05=_0x4b00d3['start']['getLastMatchingPosition'](_0x492e4b),_0x3e7b99=_0x4b00d3['end']['getLastMatchingPosition'](_0x492e4b,{'direction':'backward'});return(!_0x4b00d3['start']['isEqual'](_0x385b05)||!_0x4b00d3['end']['isEqual'](_0x3e7b99))&&(_0x385b05['isBefore'](_0x3e7b99)?_0x1e82ae['updateMarker'](_0x16564d,{'range':_0x1e82ae['createRange'](_0x385b05,_0x3e7b99)}):_0x1e82ae['removeMarker'](_0x16564d),!0x0);}function Gt(_0x363996){return _0x3daa0e(_0x363996);}function Ft(_0x3adf1a){const _0x489a61=_0x3adf1a['start']['nodeAfter'];return _0x489a61&&_0x489a61['is']('element');}function Pt(_0x43ee9e,_0x3fa31b){return null==_0x43ee9e['end']['nodeBefore']&&_0x43ee9e['end']['parent']==_0x43ee9e['start']['nodeAfter']?Lt(_0x43ee9e['start']['nodeAfter'],_0x3fa31b):_0x43ee9e;}function Lt(_0x17cf98,_0x4e35fd){const _0x38d4bb=_0x4e35fd['schema']['isObject'](_0x17cf98)||_0x4e35fd['schema']['isSelectable'](_0x17cf98);return _0x4e35fd['createRange'](_0x4e35fd['createPositionAt'](_0x17cf98,'before'),_0x38d4bb?_0x4e35fd['createPositionAfter'](_0x17cf98):_0x4e35fd['createPositionAt'](_0x17cf98,'end'));}function Ht(_0x5791e1,_0x128dbc,_0x32c29b,_0x403bed,_0x1ed91c){if(_0x5791e1['next'])return!0x1;if(!Jt(_0x5791e1,_0x128dbc))return!0x1;if(_0x32c29b['end']['isEqual'](_0x403bed['start']))return!0x0;if(_0x5791e1['type']!=_0x128dbc['type'])return!0x1;if(!_0x32c29b['end']['isTouching'](_0x403bed['start']))return!0x1;const _0x335d9f=_0x1ed91c['createRange'](_0x32c29b['end'],_0x403bed['start'])['getWalker']();for(const _0x33fb04 of _0x335d9f)if(['elementStart','elementEnd']['includes'](_0x33fb04['type'])&&_0x1ed91c['schema']['isLimit'](_0x33fb04['item']))return!0x1;return!0x0;}function Jt(_0x292acf,_0x28394c){if(!_0x292acf['_isDataLoaded']||!_0x28394c['_isDataLoaded'])return!0x1;const _0x5e04b0=new Set(Object['keys'](_0x292acf['attributes'])),_0x517695=new Set(Object['keys'](_0x28394c['attributes']));if(_0x5e04b0['delete']('groupId'),_0x517695['delete']('groupId'),0x0==_0x5e04b0['size']&&0x0==_0x517695['size'])return!0x0;if(_0x5e04b0['size']!=_0x517695['size'])return!0x1;const _0x4020de={..._0x292acf['attributes']},_0x4e0859={..._0x28394c['attributes']};return delete _0x4020de['groupId'],delete _0x4e0859['groupId'],JSON['stringify'](_0x4020de)==JSON['stringify'](_0x4e0859);}function qt(_0xc64f6d,_0x2635e7){const _0x14562d=zt(_0xc64f6d['attributes']),_0x3a6cef=zt(_0x2635e7);if(!_0xc64f6d['_isDataLoaded'])return!0x1;for(const _0xa1d941 of Object['keys'](_0x3a6cef))if(!_0x29fa87(_0x14562d[_0xa1d941],_0x3a6cef[_0xa1d941]))return!0x1;return!0x0;}function zt(_0x1aab63){const _0x5e8a25=Object['assign']({},_0x1aab63);return delete _0x5e8a25['skipNestingCheck'],delete _0x5e8a25['tablePasteChainId'],_0x5e8a25;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3f2b83(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x685df,_0x3d9787,_0x264dfa,_0xed533a){super(),this['model']=_0x3d9787,this['view']=_0x264dfa,this['commentThreadController']=_0xed533a,this['_editor']=_0x685df,this['_acceptCommand']=_0x685df['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x685df['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x323a3c,_0xc0bb3c)=>_0x323a3c||_0xc0bb3c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x47bc53=>_0x47bc53&&this['_editor']['model']['canEditAt'](_0x3d9787['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x11cdd8=>_0x11cdd8&&this['_editor']['model']['canEditAt'](_0x3d9787['getRanges']())),this['_pendingAction']=null,_0x264dfa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x264dfa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x264dfa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x264dfa,'change:isDirty',()=>{_0x264dfa['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 _0x2e87d1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2e87d1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5b3110{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3fbe77,_0x1bacc3,_0x3c1707,_0x304982){super(_0x3fbe77),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5670e0(_0x3fbe77,o(_0x3fbe77,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1bacc3['authoredAt']),this['bind']('authoredAt')['to'](_0x1bacc3),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',_0x1bacc3,'authoredAt',this,'descriptionParts',(_0x5541f5,_0x51c89d,_0x3e4e67)=>{const _0x4c361a=_0x3e4e67['map'](_0x160fd8=>ls(_0x160fd8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5541f5-0x1,_0x1bacc3['author']['name'],_0x51c89d?_0x304982['formatDateTime'](_0x51c89d):'',new DOMParser()['parseFromString'](_0x4c361a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x145090(),this['focusTracker']=new _0x56aa08(),this['keystrokes']=new _0x48021c(),this['focusCycler']=new _0x4efc4e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54c540=>_0x54c540['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1bacc3,this['_localUser']=_0x3c1707,this['_config']=_0x304982,_0x304982['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3dff20(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2424a4}=this['_config'];this['commentsListView']=new _0x2424a4(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',_0x31fead=>_0x31fead+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2ac58e,_0x2344db)=>_0x2ac58e||!!_0x2344db);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x21af99}=this['_config'],_0x55b12d=new _0x21af99(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4500c7=_0x55b12d['commentInputView'];return _0x55b12d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4500c7,'value',(_0x45a378,_0x5d124f,_0x53fb43)=>!!_0x53fb43||_0x45a378&&!_0x5d124f),_0x4500c7['on']('submit',(_0x189325,_0x1a3e5e)=>{this['fire']('addComment',_0x1a3e5e),_0x4500c7['editor']['setData']('');}),_0x4500c7['on']('cancel',()=>this['focus']()),_0x4500c7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55b12d;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1cd3f7,_0x5108b9,_0x4ffab2,_0x4a67f3){super(_0x1cd3f7,_0x5108b9,_0x4ffab2,_0x4a67f3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x43c3be=>_0x43c3be&&_0x43c3be[0x0]?_0x43c3be[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x468d21,_0x30e9aa)=>{let _0xd2f3f4='';for(const _0xe67b05 of _0x468d21)_0xd2f3f4+='<p>'+ls(_0xe67b05['content'],_0xe67b05['color'])+'</p>';return _0x30e9aa?_0xd2f3f4:_0x3a4fa0(_0xd2f3f4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4a67f3['SuggestionView'](_0x1cd3f7,_0x5108b9,{'formatDateTime':_0x4a67f3['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 _0x2dad28=this['bindTemplate'],_0x56e184=[this['suggestionView']];return this['commentsListView']&&_0x56e184['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56e184['push'](this['commentThreadInputView']),_0x56e184['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2dad28['if']('isActive','ck-suggestion-wrapper--active'),_0x2dad28['to']('type',_0x5d40f0=>'ck-suggestion-'+_0x5d40f0),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':_0x2dad28['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56e184};}['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 _0x5b3110{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x321997,_0x2add29,_0x4a8442){super(_0x321997),this['_model']=_0x2add29,this['_config']=_0x4a8442,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2add29),this['acceptButton']=this['_createButton'](o(_0x321997,'Accept\x20suggestion'),_0xaf674b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x321997,'Discard\x20suggestion'),_0xaf674b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3e3200(_0x321997,_0x2add29['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x145090([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x56aa08(),this['keystrokes']=new _0x48021c(),this['focusCycler']=new _0x4efc4e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1cbad2=>_0x1cbad2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2e3113=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2e3113['innerHTML']=this['description'],this['on']('change:description',(_0x19bc1d,_0x2238f7,_0x131fd6)=>{_0x2e3113['innerHTML']=_0x131fd6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x189cf5=this['bindTemplate'],_0x40d277=[{'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':_0x189cf5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x189cf5['to']('authoredAt',_0xb83a03=>this['_config']['formatDateTime'](_0xb83a03))}]}]},{'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']&&_0x40d277['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':_0x40d277}]};}['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'](_0x152421,_0x49ca7a,_0x224141,_0x198f53,_0x1df8ac){const _0x595aab=new _0x245dc3(this['locale']);return _0x595aab['set']({'label':_0x152421,'icon':_0x49ca7a,'tooltip':!0x0,'tooltipPosition':_0x1df8ac}),_0x595aab['extendTemplate']({'attributes':{'class':_0x224141}}),_0x595aab['on']('execute',()=>{this['fire'](_0x198f53,this['_model']['id']);}),_0x595aab;}['_setupKeyboardNavigation'](){const _0x231c65=this['element'];this['keystrokes']['listenTo'](_0x231c65);for(const _0x325ce9 of this['focusables'])this['focusTracker']['add'](_0x325ce9['element']),this['keystrokes']['listenTo'](_0x325ce9['element']);this['keystrokes']['set']('enter',(_0x1b5951,_0x1dfcd5)=>{_0x231c65===_0x1b5951['target']&&(this['focusCycler']['focusFirst'](),_0x1dfcd5());}),this['keystrokes']['set']('esc',(_0x12aaa9,_0x4a7c1f)=>{_0x231c65!==_0x12aaa9['target']&&(this['focus'](),_0x4a7c1f());});}}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 _0x2c5c19{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4cd5f1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x736241){super(_0x736241),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x29c271=this['editor']['config'];_0x29c271['define']('trackChanges.SuggestionThreadView',re),_0x29c271['define']('trackChanges.SuggestionView',ce),_0x29c271['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x29c271['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x43cdca,_0x145552){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5bb2f1,_0x3b24fb]of this['_handleControllerBuffer']){const _0x4e1ec6=this['_suggestionToController']['has'](_0x5bb2f1);_0x4e1ec6||_0x3b24fb?_0x4e1ec6&&_0x3b24fb&&this['_destroyController'](_0x5bb2f1):this['_initializeController'](_0x5bb2f1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x43cdca,_0x145552);}['init'](){const _0x2cc821=this['editor'],_0x5d8db6=_0x2cc821['plugins']['get']('TrackChangesEditing'),_0x920ea7=_0x2cc821['plugins']['get']('Annotations'),_0x433ddc=_0x2cc821['plugins']['get']('EditorAnnotations'),_0x4229e7=_0x2cc821['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x433ddc['addSourceCollector'](()=>{const _0x25e397=[];for(const [_0x5c5fd3,_0x38f883]of Array['from'](this['_suggestionToController'])){const _0x28aff9=_0x5c5fd3['getAllAdjacentSuggestions'](),_0x585ece=[];for(const _0x712611 of _0x28aff9){if(!_0x712611['isInContent'])continue;if(_0x712611['isMultiRange']){_0x585ece['push'](..._0x712611['getRanges']());continue;}const _0x5e1baa=_0x712611['getFirstRange']();if(_0x585ece['length']>0x0){const _0x5dc9b8=_0x585ece[0x0]['getJoined'](_0x5e1baa);if(_0x5dc9b8){_0x585ece[0x0]=_0x5dc9b8;continue;}}_0x585ece['push'](_0x5e1baa);}_0x25e397['push']([_0x38f883['view'],_0x585ece]);}return _0x25e397;}),this['listenTo'](_0x5d8db6,'suggestionLoaded',(_0x5726c0,_0x395252)=>{this['listenTo'](_0x395252,'change:previous',(_0x406c8c,_0x7c4a2c,_0x21005e,_0x4b70c4)=>{_0x395252['isInContent']&&(null==_0x21005e?(this['_updateController'](_0x4b70c4['head']),this['_handleSuggestionControllerDelayed'](_0x395252,!0x1)):(this['_updateController'](_0x21005e['head']),null==_0x4b70c4&&this['_handleSuggestionControllerDelayed'](_0x395252,!0x0)));}),null!==_0x395252['previous']?this['_updateController'](_0x395252['head']):this['_handleSuggestionControllerDelayed'](_0x395252,!0x1);}),this['listenTo'](_0x5d8db6,'suggestionUnloaded',(_0x49c7ab,_0x111600,_0x5e74f7)=>{this['stopListening'](_0x111600,'change:previous'),this['_handleControllerBuffer']['delete'](_0x111600),this['_suggestionToController']['has'](_0x111600)&&this['_destroyController'](_0x111600),_0x5e74f7&&this['_updateController'](_0x5e74f7['head']);}),this['listenTo'](_0x5d8db6,'suggestionChanged',(_0x31ea98,_0x21c7df)=>{this['_updateController'](_0x21c7df);}),this['listenTo'](_0x920ea7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4229e7,'addComment',(_0x514bca,{threadId:_0x55dc52,isFromAdapter:_0x572c3c})=>{if(_0x572c3c||!_0x5d8db6['hasSuggestion'](_0x55dc52))return;const _0x291f63=_0x5d8db6['getSuggestion'](_0x55dc52);this['_suggestionToController']['get'](_0x291f63)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x46069c=this['editor']['plugins']['get']('Annotations'),_0x1e8b37=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe27f5f=Array['from'](_0x46069c['activeAnnotations'],_0x55f0a6=>_0x55f0a6['innerView'])['filter'](_0x3f4c2a=>this['_viewToController']['has'](_0x3f4c2a)),_0x5abefd=[];for(const _0x1480e3 of _0xe27f5f){const _0x10b744=this['_viewToController']['get'](_0x1480e3)['model']['getAllAdjacentSuggestions']();_0x5abefd['push'](..._0x10b744['reduce']((_0x1c7fba,_0x57ef3b)=>[..._0x1c7fba,..._0x57ef3b['getMarkerNames']()],[]));}_0x1e8b37['activeMarkers']=_0x5abefd;}['_addUIComponentsToFactory'](){const _0x4f0f8f=this['editor'],_0x4c3679=_0x4f0f8f['locale'],_0x33d969=o(_0x4c3679,'Track\x20changes'),_0x1d38a9=new Wt([{'type':'switchbutton','model':new _0x19c383({'withText':!0x0,'isToggleable':!0x0,'label':_0x33d969,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x19c383({'withText':!0x0,'label':o(_0x4c3679,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c383({'withText':!0x0,'label':o(_0x4c3679,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c383({'withText':!0x0,'label':o(_0x4c3679,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c383({'withText':!0x0,'label':o(_0x4c3679,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4e888b of _0x1d38a9)if(me(_0x4e888b)){const _0x11b7a5=_0x4f0f8f['commands']['get'](_0x4e888b['model']['commandName']);_0x4e888b['model']['bind']('isOn','isEnabled')['to'](_0x11b7a5,'value','isEnabled');}_0x4f0f8f['ui']['componentFactory']['add']('trackChanges',_0x42c150=>this['_createToolbarButton'](_0x42c150,_0x1d38a9,_0x33d969)),_0x4f0f8f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xcfd438=>this['_createMenuBarMenu'](_0xcfd438,_0x1d38a9,_0x33d969));}['_createToolbarButton'](_0x53b6a8,_0x4d11b8,_0x1a3651){const _0x56c019=Qt(_0x53b6a8,_0x3daace),_0x57fd66=this['editor']['commands']['get']('trackChanges');_0x56c019['buttonView']['set']({'tooltip':_0x1a3651,'label':_0x1a3651,'icon':he}),_0x56c019['buttonView']['bind']('isOn')['to'](_0x57fd66,'value'),_0x56c019['buttonView']['on']('execute',()=>{_0x57fd66['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x56c019,_0x4d11b8,{'role':'menu'});const _0x428a22=[];for(const _0x3cb1be of _0x4d11b8)me(_0x3cb1be)&&_0x428a22['push'](this['editor']['commands']['get'](_0x3cb1be['model']['commandName']));const _0x42e2db=_0x56c019['buttonView'];return _0x42e2db['actionView']['unbind']('isEnabled'),_0x42e2db['arrowView']['unbind']('isEnabled'),_0x42e2db['actionView']['bind']('isEnabled')['to'](_0x57fd66,'isEnabled'),_0x42e2db['arrowView']['bind']('isEnabled')['toMany'](_0x428a22,'isEnabled',(..._0x2058f0)=>_0x2058f0['some'](_0x546c7e=>_0x546c7e)),_0x56c019['on']('execute',_0x25293f=>{this['editor']['execute'](_0x25293f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x56c019;}['_createMenuBarMenu'](_0xf04917,_0x1c3472,_0x5e71ea){const _0x1c01e5=new Yt(_0xf04917),_0x2138c7=this['editor']['commands']['get']('trackChanges');_0x1c01e5['buttonView']['set']({'label':_0x5e71ea,'icon':he});const _0x21a04d=new Zt(_0xf04917);for(const _0x31f9d7 of _0x1c3472){if('separator'==_0x31f9d7['type']){_0x21a04d['items']['add'](new Xt(_0xf04917));continue;}const _0x291eeb=new te(_0xf04917,_0x1c01e5),_0x2f14f1=new _0x630cb8(_0xf04917),_0x1718fb=_0x31f9d7['model'];_0x2f14f1['bind'](...Object['keys'](_0x1718fb))['to'](_0x1718fb),_0x2f14f1['delegate']('execute')['to'](_0x1c01e5),_0x2f14f1['on']('execute',()=>{this['editor']['execute'](_0x1718fb['commandName']),this['editor']['editing']['view']['focus']();}),_0x291eeb['children']['add'](_0x2f14f1),_0x21a04d['items']['add'](_0x291eeb);}return _0x1c01e5['bind']('isEnabled')['to'](_0x2138c7,'isEnabled'),_0x1c01e5['panelView']['children']['add'](_0x21a04d),_0x1c01e5;}['_initializeController'](_0x33b5c5){const _0x5c1e0c=this['editor'],_0x4345c0=_0x5c1e0c['config'],_0x78d6b2=_0x5c1e0c['plugins']['get']('Annotations'),_0x3a4f1a=_0x5c1e0c['plugins']['get']('CommentsRepository'),_0x15d084=_0x5c1e0c['plugins']['get']('EditorAnnotations'),_0x41640e=_0x5c1e0c['plugins']['get'](_0x4cd5f1)['me'],_0x51866b=_0x4345c0['get']('trackChanges')['SuggestionThreadView'],_0x486151=_0x4345c0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4c32b2,CommentThreadInputView:_0x33fed0}=_0x5c1e0c['plugins']['get']('CommentsUI');let _0x4ed01c,_0x524f03,_0xd54828;this['_annotationViews']['has'](_0x33b5c5['id'])?(_0x524f03=this['_annotationViews']['get'](_0x33b5c5['id']),_0x4ed01c=_0x524f03['mainView']):(_0x4ed01c=new _0x51866b(_0x5c1e0c['locale'],_0x33b5c5,_0x41640e,{'disableComments':this['_disableComments'],'editorConfig':_0x4345c0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4345c0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4345c0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4345c0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5785ed(_0x4345c0['get']('locale')),'CommentView':_0x4345c0['get']('comments')['CommentView'],'CommentsListView':_0x4c32b2,'CommentThreadInputView':_0x33fed0,'SuggestionView':_0x486151}),_0x4ed01c['suggestionView']['acceptButton']['on']('execute',()=>{_0x5c1e0c['editing']['view']['focus']();}),_0x4ed01c['suggestionView']['discardButton']['on']('execute',()=>{_0x5c1e0c['editing']['view']['focus']();}),_0x524f03=_0x78d6b2['createAnnotationView'](this['editor']['locale'],_0x4ed01c),_0x524f03['bind']('isDirty')['to'](_0x4ed01c,'isDirty'),_0x524f03['bind']('length')['to'](_0x4ed01c),_0x524f03['bind']('type')['to'](_0x4ed01c,'type',_0x185ce6=>'suggestion-'+_0x185ce6),_0x4ed01c['on']('escape',()=>{_0xd54828['fire']('escape');}),this['_annotationViews']['set'](_0x33b5c5['id'],_0x524f03));const _0x1bad09=_0x3a4f1a['createCommentThreadController'](_0x33b5c5['commentThread'],_0x4ed01c),_0x56640e=new ae(_0x5c1e0c,_0x33b5c5,_0x4ed01c,_0x1bad09),_0x1809e1=_0x33b5c5['getAllAdjacentSuggestions']()['filter'](_0x8d41d7=>_0x8d41d7['isInContent']);_0x4ed01c['descriptionParts']=_0x5c1e0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1809e1),this['_suggestionToController']['set'](_0x33b5c5,_0x56640e),this['_viewToController']['set'](_0x4ed01c,_0x56640e),_0xd54828=_0x78d6b2['createAnnotation']({'view':_0x524f03,'target':()=>{const _0x2526f0=[],_0x39f9cc=_0x33b5c5['getAllAdjacentSuggestions']()['filter'](_0x2fe4cc=>_0x2fe4cc['isInContent']);for(const _0x47d511 of _0x39f9cc)_0x2526f0['push'](..._0x47d511['getMarkers']());return _0x166211(_0x5c1e0c['editing'],_0x2526f0);},'type':()=>'suggestion-'+_0x56640e['view']['type']}),_0x3a4f1a['_bindAnnotationToEditors'](_0x4ed01c,_0xd54828),_0x78d6b2['add'](_0xd54828),_0x15d084['registerAnnotation'](_0xd54828);}['_destroyController'](_0x3fbcd3){const _0x48a792=this['editor']['plugins']['get']('CommentsRepository'),_0x4aecce=this['editor']['plugins']['get']('Annotations'),_0x253347=this['_suggestionToController']['get'](_0x3fbcd3),_0x238839=_0x253347['view'],_0x567c7d=_0x4aecce['getByInnerView'](_0x238839);_0x48a792['_unbindEditors'](_0x238839),_0x567c7d&&_0x4aecce['remove'](_0x567c7d),this['_suggestionToController']['delete'](_0x3fbcd3),this['_viewToController']['delete'](_0x238839),_0x253347['destroy']();}['_updateController'](_0x87b5d6){if(!_0x87b5d6['isInContent']||!this['_suggestionToController']['has'](_0x87b5d6))return;const _0x1b354f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6821b9=this['_suggestionToController']['get'](_0x87b5d6),_0x3de17d=_0x87b5d6['getAllAdjacentSuggestions']();_0x6821b9['view']['descriptionParts']=_0x1b354f['descriptionFactory']['getDescriptions'](_0x3de17d);}['destroy'](){for(const _0x4eb27b of this['_suggestionToController']['keys']())this['_destroyController'](_0x4eb27b);for(const _0x389169 of this['_annotationViews']['values']())_0x389169['mainView']['destroy']();super['destroy']();}}function me(_0x43c8de){return'model'in _0x43c8de;}class k extends _0x2c5c19{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x1d3c97){this['editor']['plugins']['get'](p)['adapter']=_0x1d3c97;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x37947c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x37947c);}['getSuggestions']({skipNotAttached:_0x262916=!0x1,toJSON:_0x11da7f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x262916,'toJSON':_0x11da7f});}['getSuggestion'](_0x2ff565){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2ff565);}}const T=['Pagination'];class P extends _0x2c5c19{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xd09a81=this['editor'];if(_0xd09a81['config']['define']('trackChangesData.editorCreator',_0x147154=>{const _0x2e51e1=_0xd09a81['model']['document']['getRootNames']()['reduce']((_0x38a36c,_0xc9d47b)=>(_0x38a36c[_0xc9d47b]='',_0x38a36c),{});return _0xd09a81['constructor']['create'](_0x2e51e1,_0x147154);}),'function'!=typeof _0xd09a81['config']['get']('trackChangesData')['editorCreator'])throw new _0x9a3fdb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x34a07a){return N(this['editor'],!0x0,_0x34a07a);}['getDataWithDiscardedSuggestions'](_0x430756){return N(this['editor'],!0x1,_0x430756);}}class D extends _0x2c5c19{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3aaada){super(_0x3aaada),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(_0x1f6810){return void 0x0!==_0x1f6810['getRootsAttributes'];}async function N(_0x1640a6,_0x56d595,_0xb9ab09){const _0x1d40c0=_0x521e7a(_0x1640a6,T);_0x1d40c0['plugins']['push'](p,D),_0x1d40c0['rootsAttributes']=v(_0x1640a6)?_0x1640a6['getRootsAttributes']():void 0x0;const _0x5285ee=document['createDocumentFragment'](),_0x49e84a=_0x1640a6['config']['get']('trackChangesData')['editorCreator'],_0x17a8ea=await _0x49e84a(_0x1d40c0,()=>function(_0x1d5c2f){const _0x421449=document['createElement']('div');return _0x1d5c2f['appendChild'](_0x421449),_0x421449;}(_0x5285ee));!function(_0x113bda,_0x8f292f){const _0xf813eb=_0x113bda['model']['document']['getRootNames']()['reduce']((_0x2681a3,_0x1f4577)=>(_0x2681a3[_0x1f4577]=_0x113bda['data']['get']({'rootName':_0x1f4577}),_0x2681a3),{}),_0x208bf5=_0x113bda['plugins']['get']('Users')['users']['map'](_0x50605e=>({'id':_0x50605e['id'],'name':_0x50605e['name']})),_0x23ed03=_0x113bda['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59cf08=_0x113bda['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e108a=_0x8f292f['plugins']['get']('Users'),_0x5c1084=_0x8f292f['plugins']['get']('TrackChangesEditing'),_0x3cea0d=_0x8f292f['plugins']['get']('CommentsRepository');for(const _0xab6c80 of _0x3cea0d['getCommentThreads']())_0xab6c80['remove']();for(const _0x15e45a of _0x208bf5)_0x3e108a['getUser'](_0x15e45a['id'])||_0x3e108a['addUser'](_0x15e45a);_0x3e108a['me']||_0x3e108a['useAnonymousUser']();for(const _0xbb5547 of _0x59cf08)_0x3cea0d['addCommentThread'](_0xbb5547);for(const _0x284d5e of _0x23ed03)_0x5c1084['addSuggestionData'](_0x284d5e);_0x8f292f['data']['set'](_0xf813eb);}(_0x1640a6,_0x17a8ea),_0x17a8ea['execute'](_0x56d595?'acceptAllSuggestions':'discardAllSuggestions');const _0x30eb10=v(_0x17a8ea)?_0x17a8ea['getFullData'](_0xb9ab09):_0x17a8ea['data']['get'](_0xb9ab09);return await _0x17a8ea['destroy'](),_0x30eb10;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|