@ckeditor/ckeditor5-track-changes 43.0.0-alpha.0 → 43.0.0-alpha.1
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/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
|
-
_0x441a88(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5b6127,_0x51ab3d){super(),this['id']=_0x51ab3d['id'],this['type']=_0x51ab3d['type'],this['subType']=_0x51ab3d['subType']||null,this['author']=_0x51ab3d['author'],this['creator']=_0x51ab3d['creator']||_0x51ab3d['author'],this['isExternal']=Boolean(_0x51ab3d['attributes']&&_0x51ab3d['attributes']['@external']),this['data']=null,this['_model']=_0x5b6127,this['_onAccept']=_0x51ab3d['onAccept'],this['_onDiscard']=_0x51ab3d['onDiscard'],this['_onAttributesChange']=_0x51ab3d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x51ab3d['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 _0x5d58a6=this;for(;_0x5d58a6['previous'];)_0x5d58a6=_0x5d58a6['previous'];return _0x5d58a6;}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'](_0xc38281){this['_markerNames']['add'](_0xc38281);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1b6853=>this['_model']['markers']['get'](_0x1b6853))['filter'](_0x412626=>_0x412626);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x95ea04=>{for(const _0xc90263 of this['getMarkers']())_0x95ea04['removeMarker'](_0xc90263);}),this['_markerNames']['clear']();}['removeMarker'](_0x361699){this['_model']['change'](_0x4db8c2=>{_0x4db8c2['removeMarker'](_0x361699);}),this['_markerNames']['delete'](_0x361699);}['addRange'](_0x10d231){const _0x58ca1b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x58ca1b),this['_model']['change'](_0x4aa799=>{_0x4aa799['addMarker'](_0x58ca1b,{'range':_0x10d231,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2240f8){for(const _0x2233df of this['getRanges']())if(_0x2233df['isIntersecting'](_0x2240f8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x20ebc5=>_0x20ebc5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x7ce5e1,_0x14684b)=>[..._0x7ce5e1,..._0x14684b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x11db1b=this['getRanges']();if(0x1!=_0x11db1b['length'])return null;const _0x761a75=_0x11db1b[0x0],_0x4764b6=_0x761a75['start']['nodeAfter'],_0x5f553e=_0x761a75['end']['nodeBefore'];return _0x4764b6 instanceof _0x2d62c1?_0x4764b6!=_0x5f553e?null:_0x4764b6: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 _0x17b58c=[];let _0x3643b3=this['head'];for(;_0x3643b3;)_0x17b58c['push'](_0x3643b3),_0x3643b3=_0x3643b3['next'];return _0x17b58c;}['setAttribute'](_0x12e135,_0x2ae8a0){const _0x5b24a1=_0x4d2872(this['attributes']);_0x3647f2(_0x5b24a1,_0x12e135,_0x2ae8a0),_0x40b53a(_0x5b24a1,this['attributes'])||(this['attributes']=_0x5b24a1,this['_onAttributesChange'](_0x5b24a1));}['removeAttribute'](_0x1d902e){const _0x35979e=_0x4d2872(this['attributes']);_0x14c707(_0x35979e,_0x1d902e),_0x40b53a(_0x35979e,this['attributes'])||(this['attributes']=_0x35979e,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 _0x39f5a3()['substr'](0x1,0x5);}}function o(_0x395a5c,_0x22f544,_0x50cd37){const t=_0x395a5c['t'];switch(_0x22f544){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',_0x50cd37);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x50cd37);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x50cd37);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x50cd37);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x50cd37);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',_0x50cd37);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x50cd37);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',_0x50cd37);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x50cd37);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x50cd37);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x50cd37);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x50cd37);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x50cd37);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x50cd37);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x50cd37);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x50cd37);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x50cd37);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x50cd37);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x50cd37);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x50cd37);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x50cd37);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x50cd37);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x50cd37);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'},_0x50cd37);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x50cd37);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x50cd37);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x50cd37);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x50cd37);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x50cd37);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'},_0x50cd37);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x50cd37);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x50cd37);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x50cd37);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x50cd37);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'},_0x50cd37);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x50cd37);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'},_0x50cd37);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'},_0x50cd37);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x50cd37);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'},_0x50cd37);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x50cd37);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'},_0x50cd37);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x50cd37);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x50cd37);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'},_0x50cd37);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'},_0x50cd37);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'},_0x50cd37);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x50cd37);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'},_0x50cd37);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'},_0x50cd37);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'},_0x50cd37);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x22f544;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38c88b,_0x54b277){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38c88b,this['_locale']=_0x54b277;}['getDescriptions'](_0x3ee206){const _0x421a84=[],_0x58df8e=new Set(),_0x462ee7=new Set();for(let _0x36b0f5=0x0;_0x36b0f5<_0x3ee206['length'];_0x36b0f5++){const _0x3925bd=_0x3ee206[_0x36b0f5];if(!_0x3925bd['isInContent'])continue;const _0x3dfc2e=this['_handleCustomCallbackDescription'](_0x3925bd);if(_0x3dfc2e){if(null!=_0x3925bd['subType']){if(_0x58df8e['has'](_0x3925bd['subType']))continue;_0x58df8e['add'](_0x3925bd['subType']);}_0x421a84['push'](_0x3dfc2e);}else{if('attribute'!=_0x3925bd['type'])'insertion'!=_0x3925bd['type']&&'deletion'!=_0x3925bd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x421a84,_0x3925bd,_0x3ee206[_0x36b0f5+0x1]);else{const _0x5c35ad=_0x3925bd['data']['key'];if(_0x462ee7['has'](_0x5c35ad))continue;_0x462ee7['add'](_0x3925bd['data']['key']),_0x5c35ad==m?this['_handleRenameSuggestionDescription'](_0x421a84,_0x3925bd):this['_handleAttributeSuggestionDescription'](_0x421a84,_0x3925bd);}}}return this['_resolveDescriptionItems'](_0x421a84);}['registerDescriptionCallback'](_0x40f492){this['_customCallbacks']['push'](_0x40f492);}['registerElementLabel'](_0x186c0a,_0x4ea7b5,_0x553f01=_0x5bfbc1['normal']){'function'==typeof _0x186c0a?_0x488501(this['_itemLabelsCallbacks'],{'matchingCallback':_0x186c0a,'label':_0x4ea7b5,'priority':_0x553f01}):this['_itemLabels']['set'](_0x186c0a,_0x4ea7b5);}['registerAttributeLabel'](_0x1b4785,_0x5385be){this['_attributeLabels']['set'](_0x1b4785,_0x5385be);}['getItemLabel'](_0x18a335,_0x48aadc=0x1){let _0x289e73;for(const _0x305383 of this['_itemLabelsCallbacks'])if(_0x305383['matchingCallback'](_0x18a335)){_0x289e73=_0x305383['label'];break;}return _0x289e73||(_0x289e73=this['_itemLabels']['get'](_0x18a335['name'])),_0x289e73?_0x289e73(_0x48aadc):0x1!==_0x48aadc?_0x48aadc+'\x20'+_0x18a335['name']+'s':''+_0x18a335['name'];}['_addDescriptionItems'](_0x5c92b1,_0x1bf2fb){const _0x2a16ec=_0x1bf2fb['getFirstRange']()['getWalker'](),_0x29e9f0='insertion'==_0x1bf2fb['type']?'add':'remove';for(const _0x2f2534 of _0x2a16ec){const _0x158c01=_0x2f2534['item'],_0x454a7d=_0x5c92b1[_0x5c92b1['length']-0x1];if(_0x158c01['is']('$textProxy'))_0x454a7d&&_0x454a7d['type']['indexOf']('Container')>-0x1&&_0x5c92b1['pop'](),_0x454a7d&&'text'==_0x454a7d['type']?_0x454a7d[_0x29e9f0]+=_0x158c01['data']:_0x5c92b1['push']({'type':'text','add':'add'==_0x29e9f0?_0x158c01['data']:'','remove':'remove'==_0x29e9f0?_0x158c01['data']:''});else{if(this['_schema']['isObject'](_0x158c01)){const _0x62dff6=_0x158c01;if(_0x454a7d&&_0x454a7d['type']['indexOf']('Container')>-0x1&&_0x5c92b1['pop'](),'elementEnd'==_0x2f2534['type'])continue;_0x454a7d&&_0x454a7d['type']==_0x29e9f0+'Object'&&_0x454a7d['element']['name']==_0x62dff6['name']?_0x454a7d['quantity']++:_0x5c92b1['push']({'type':_0x29e9f0+'Object','element':_0x62dff6,'quantity':0x1}),_0x2a16ec['skip'](_0x57e460=>!('elementEnd'==_0x57e460['type']&&_0x57e460['item']==_0x158c01));}else{if(this['_schema']['checkChild'](_0x158c01,'$text')||_0x158c01['is']('element','softBreak')){const _0x23cbb2=_0x158c01;if('add'==_0x29e9f0&&'elementStart'==_0x2f2534['type']||'remove'==_0x29e9f0&&'elementEnd'==_0x2f2534['type'])continue;if(_0x454a7d&&-0x1==_0x454a7d['type']['indexOf']('Container')){'text'==_0x454a7d['type']&&(_0x454a7d[_0x29e9f0]+='\x0a');continue;}let _0x1ef411;if(_0x1ef411='add'==_0x29e9f0?_0x23cbb2['nextSibling']&&!this['_schema']['isObject'](_0x23cbb2['nextSibling'])?_0x23cbb2['nextSibling']:null:_0x23cbb2['previousSibling']&&!this['_schema']['isObject'](_0x23cbb2['previousSibling'])?_0x23cbb2['previousSibling']:null,_0x23cbb2['isEmpty']||_0x1ef411&&_0x1ef411['isEmpty']){const _0x5f11ac=_0x1ef411&&_0x1ef411['isEmpty']?_0x1ef411:_0x23cbb2;_0x454a7d&&_0x454a7d['type']==_0x29e9f0+'EmptyContainer'&&_0x454a7d['element']['name']==_0x5f11ac['name']?_0x454a7d['quantity']++:_0x5c92b1['push']({'type':_0x29e9f0+'EmptyContainer','element':_0x5f11ac,'quantity':0x1});}else _0x5c92b1['push']({'type':_0x29e9f0+'Container','element':_0x23cbb2});}}}}}['_resolveDescriptionItems'](_0x39e2d8){const _0x14f1ae=this['_locale'],_0x191962=[],_0x2e4f9e=[],_0x28121b=[];for(const _0xb00e02 of _0x39e2d8)switch(_0xb00e02['type']){case'text':if(_0xb00e02['add']=_0xb00e02['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb00e02['remove']=_0xb00e02['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb00e02['add']&&''!=_0xb00e02['remove']){_0x191962['push']({'type':'replace','content':o(_0x14f1ae,'REPLACE_TEXT',['\x22'+_0xb00e02['remove']+'\x22','\x22'+_0xb00e02['add']+'\x22'])});continue;}if(null!=_0xb00e02['add']['match'](/^ +$/)){_0x191962['push']({'type':'insertion','content':o(_0x14f1ae,'*Insert:*\x20%0',o(_0x14f1ae,'ELEMENT_SPACE',_0xb00e02['add']['length']))});continue;}if(null!=_0xb00e02['remove']['match'](/^ +$/)){_0x191962['push']({'type':'deletion','content':o(_0x14f1ae,'*Remove:*\x20%0',o(_0x14f1ae,'ELEMENT_SPACE',_0xb00e02['remove']['length']))});continue;}if(''!=_0xb00e02['add']){_0x191962['push']({'type':'insertion','content':o(_0x14f1ae,'*Insert:*\x20%0','\x22'+_0xb00e02['add']+'\x22')});continue;}_0x191962['push']({'type':'deletion','content':o(_0x14f1ae,'*Remove:*\x20%0','\x22'+_0xb00e02['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x191962['push']({'type':'insertion','content':o(_0x14f1ae,'*Insert:*\x20%0',this['getItemLabel'](_0xb00e02['element'],_0xb00e02['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x191962['push']({'type':'deletion','content':o(_0x14f1ae,'*Remove:*\x20%0',this['getItemLabel'](_0xb00e02['element'],_0xb00e02['quantity']))});continue;case'addContainer':_0x191962['push']({'type':'insertion','content':o(_0x14f1ae,'*Split:*\x20%0',this['getItemLabel'](_0xb00e02['element'],_0xb00e02['quantity']))});continue;case'removeContainer':_0x191962['push']({'type':'deletion','content':o(_0x14f1ae,'*Merge:*\x20%0',this['getItemLabel'](_0xb00e02['element'],_0xb00e02['quantity']))});continue;case'addFormat':_0x2e4f9e['push'](_0xb00e02['key']);continue;case'removeFormat':_0x28121b['push'](_0xb00e02['key']);continue;default:_0x191962['push'](_0xb00e02);}if(_0x2e4f9e['length']){const _0x2cd2af=_0x2e4f9e['map'](_0x4333f2=>this['_attributeLabels']['has'](_0x4333f2)?this['_attributeLabels']['get'](_0x4333f2):_0x4333f2)['join'](',\x20');_0x191962['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2cd2af)});}if(_0x28121b['length']){const _0x568f60=_0x28121b['map'](_0x4a03d0=>this['_attributeLabels']['has'](_0x4a03d0)?this['_attributeLabels']['get'](_0x4a03d0):_0x4a03d0)['join'](',\x20');_0x191962['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x568f60)});}return _0x191962;}['_handleCustomCallbackDescription'](_0x37d05b){for(const _0xc10a5c of this['_customCallbacks']){const _0x389e04=_0xc10a5c(_0x37d05b);if(_0x389e04&&'type'in _0x389e04)return _0x389e04;}}['_handleAttributeSuggestionDescription'](_0x21145e,_0x21176f){const _0x5ac5c2=_0x21176f['data'],_0x55a911=void 0x0===_0x5ac5c2['newValue']?'removeFormat':'addFormat';_0x21145e['push']({'type':_0x55a911,'key':_0x5ac5c2['key']});}['_handleRenameSuggestionDescription'](_0x274efe,_0x549939){_0x274efe['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x549939['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5d2aa2,_0x2d8f80,_0x206395){if(this['_addDescriptionItems'](_0x5d2aa2,_0x2d8f80),_0x206395&&_0x206395['getFirstRange']()&&!_0x2d8f80['getFirstRange']()['end']['isEqual'](_0x206395['getFirstRange']()['start'])){const _0x51997c=_0x5d2aa2[_0x5d2aa2['length']-0x1],_0x330a5a='insertion'==_0x2d8f80['type']?'add':'remove';_0x51997c&&'text'==_0x51997c['type']&&(_0x51997c[_0x330a5a]+='\x0a');}}}class V extends _0x1f92b9{['afterInit'](){const _0x2a9617=this['editor'],_0x26fa7e=_0x2a9617['plugins']['get']('TrackChangesEditing');_0x2a9617['commands']['get']('showAIAssistant')&&_0x26fa7e['enableCommand']('showAIAssistant');}}class U extends _0x1f92b9{['afterInit'](){const _0x1df801=this['editor'],_0x127da1=_0x1df801['locale'];if(!_0x1df801['plugins']['has']('AlignmentEditing'))return;const _0x14b5d4=_0x1df801['plugins']['get']('TrackChangesEditing');_0x14b5d4['enableDefaultAttributesIntegration']('alignment'),_0x14b5d4['registerBlockAttribute']('alignment'),_0x14b5d4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x127da1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x85f38=this['editor'],_0x20095a=_0x85f38['locale'];_0x85f38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257727=>{if('formatBlock'!=_0x257727['type'])return;const {data:_0x40d789}=_0x257727;if(_0x40d789&&'alignment'==_0x40d789['commandName']){const _0x338d74=_0x40d789['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x20095a,'*Format:*\x20%0',function(_0x208f22){switch(_0x208f22){case'left':return o(_0x20095a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x20095a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x20095a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x20095a,'FORMAT_JUSTIFY_TEXT');}}(_0x338d74))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1f92b9{['afterInit'](){const _0x3483a9=this['editor'],_0x548878=_0x3483a9['plugins']['get']('TrackChangesEditing'),_0x5ba1a2=_0x3483a9['locale'];for(const _0x3ff134 of ti){if(!_0x3483a9['plugins']['has'](_0x3ff134))continue;const _0x247149=_0x3ff134['slice'](0x0,-0x7)['toLowerCase'](),_0x25caba='FORMAT_'+_0x247149['toUpperCase']();_0x548878['enableDefaultAttributesIntegration'](_0x247149),_0x548878['registerInlineAttribute'](_0x247149),_0x548878['descriptionFactory']['registerAttributeLabel'](_0x247149,o(_0x5ba1a2,_0x25caba));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f23dd=this['editor'],_0x1232af=_0x5f23dd['locale'],_0x1ef24d=_0x5f23dd['plugins']['get']('TrackChangesEditing');function _0x1a7ae4(_0x16b042,_0x2415f5){_0x1ef24d['descriptionFactory']['registerDescriptionCallback'](_0x30fb60=>{if('formatInline'!=_0x30fb60['type'])return;const {data:_0x52c662}=_0x30fb60;return _0x52c662&&_0x52c662['commandName']===_0x16b042?_0x52c662['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1232af,'*Format:*\x20%0',_0x2415f5)}:{'type':'format','content':o(_0x1232af,'*Remove\x20format:*\x20%0',_0x2415f5)}:void 0x0;});}_0x1a7ae4('bold',o(_0x1232af,'FORMAT_BOLD')),_0x1a7ae4('italic',o(_0x1232af,'FORMAT_ITALIC')),_0x1a7ae4('underline',o(_0x1232af,'FORMAT_UNDERLINE')),_0x1a7ae4('code',o(_0x1232af,'FORMAT_CODE')),_0x1a7ae4('strikethrough',o(_0x1232af,'FORMAT_STRIKETHROUGH')),_0x1a7ae4('subscript',o(_0x1232af,'FORMAT_SUBSCRIPT')),_0x1a7ae4('superscript',o(_0x1232af,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1f92b9{['afterInit'](){const _0x13e3a7=this['editor'],_0x14c478=_0x13e3a7['locale'];if(!_0x13e3a7['plugins']['has']('BlockQuoteEditing'))return;const _0xd3baf8=_0x13e3a7['plugins']['get']('TrackChangesEditing'),_0x121d5e=this['editor']['commands']['get']('blockQuote');_0xd3baf8['enableCommand']('blockQuote',(_0x89673e,_0x2fe72f={})=>{const _0x37a707=this['editor']['model']['document']['selection'],_0x3d1601=_0x2fe72f&&void 0x0!==_0x2fe72f['forceValue']?_0x2fe72f['forceValue']:!_0x121d5e['value'];let _0x319a18=[];if(_0x3d1601){const _0x4ac04b=Array['from'](_0x37a707['getSelectedBlocks']())['filter'](_0x62dd12=>oo(_0x62dd12)||function(_0x3b4a26,_0x467b41){const _0x361f34=_0x467b41['checkChild'](_0x3b4a26['parent'],'blockQuote'),_0x5ad3da=_0x467b41['checkChild'](['$root','blockQuote'],_0x3b4a26);return _0x361f34&&_0x5ad3da;}(_0x62dd12,this['editor']['model']['schema']));_0x319a18=to(_0x4ac04b,_0x13e3a7['model']);}else{const _0x4e240c=Array['from'](_0x37a707['getSelectedBlocks']())['filter'](_0x1e0c50=>oo(_0x1e0c50));_0x319a18=to(_0x4e240c,_0x13e3a7['model']);}_0x13e3a7['model']['change'](()=>{for(const _0x9d1ab of _0x319a18)_0xd3baf8['markBlockFormat'](_0x9d1ab,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3d1601}]});});}),_0xd3baf8['descriptionFactory']['registerDescriptionCallback'](_0x63cbf3=>{const {data:_0x10d7ae}=_0x63cbf3;if(_0x10d7ae&&'blockQuote'==_0x10d7ae['commandName']){const _0x57cd03=o(_0x14c478,'ELEMENT_BLOCK_QUOTE');return _0x10d7ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14c478,'*Set\x20format:*\x20%0',_0x57cd03)}:{'type':'format','content':o(_0x14c478,'*Remove\x20format:*\x20%0',_0x57cd03)};}});}}function oo(_0x2934a8){return'blockQuote'==_0x2934a8['parent']['name'];}class L extends _0x1f92b9{['afterInit'](){const _0x186a40=this['editor'];_0x186a40['plugins']['has']('CaseChange')&&(_0x186a40['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x186a40['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x186a40['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1f92b9{['afterInit'](){const _0x41e60b=this['editor'];_0x41e60b['commands']['get']('ckbox')&&_0x41e60b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1f92b9{['afterInit'](){const _0x3819f0=this['editor'];if(!_0x3819f0['plugins']['has']('CodeBlock'))return;const _0x13bf96=_0x3819f0['plugins']['get']('TrackChangesEditing'),_0x514de5=_0x3819f0['locale'],_0x57d4b8=_0x3819f0['config']['get']('codeBlock')['languages'],_0x76d661=_0x3819f0['commands']['get']('codeBlock');_0x13bf96['enableCommand']('indentCodeBlock'),_0x13bf96['enableCommand']('outdentCodeBlock'),_0x13bf96['enableCommand']('codeBlock',(_0x5d30d1,_0x2d8e39={})=>{const _0x2f71bc=_0x3819f0['model'],_0x5a5283=_0x3819f0['model']['document']['selection'],_0x2a3d18=_0x2d8e39&&void 0x0!==_0x2d8e39['forceValue']?_0x2d8e39['forceValue']:!_0x76d661['value'];let _0x50ace7;_0x2d8e39['language']||(_0x2d8e39['language']=_0x57d4b8[0x0]['language']),_0x50ace7=_0x2a3d18?Array['from'](_0x5a5283['getSelectedBlocks']())['filter'](_0x475410=>eo(_0x475410)||function(_0x59d3d8,_0x59907f){if(_0x59d3d8['is']('rootElement')||_0x59907f['isLimit'](_0x59d3d8))return!0x1;return _0x59907f['checkChild'](_0x59d3d8['parent'],'codeBlock');}(_0x475410,_0x2f71bc['schema'])):Array['from'](_0x5a5283['getSelectedBlocks']())['filter'](_0xf700dc=>eo(_0xf700dc));const _0x512fc1=to(_0x50ace7,_0x2f71bc);_0x2f71bc['change'](()=>{for(const _0x10d314 of _0x512fc1)_0x13bf96['markBlockFormat'](_0x10d314,{'commandName':'codeBlock','commandParams':[{..._0x2d8e39,'forceValue':_0x2a3d18}],'formatGroupId':'blockName'});});}),(_0x13bf96['descriptionFactory']['registerElementLabel']('codeBlock',_0x3f23ef=>o(_0x514de5,'ELEMENT_CODE_BLOCK',_0x3f23ef)),_0x13bf96['descriptionFactory']['registerDescriptionCallback'](_0x1c5e0f=>{if('formatBlock'!=_0x1c5e0f['type'])return;const _0x3959cb=_0x514de5['t'],{data:_0x1eca07}=_0x1c5e0f;if(!_0x1eca07||'codeBlock'!=_0x1eca07['commandName'])return;const _0x52910e=_0x1eca07['commandParams'][0x0]['language'],_0x1aa29a=_0x3959cb(_0x57d4b8['find'](_0x1ebb8e=>_0x1ebb8e['language']===_0x52910e)['label'])['toLowerCase']();return _0x1eca07['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x514de5,'*Set\x20format:*\x20%0',o(_0x514de5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1aa29a+')')}:{'type':'format','content':o(_0x514de5,'*Remove\x20format:*\x20%0',o(_0x514de5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x43ff76){return'codeBlock'==_0x43ff76['name'];}class q extends _0x1f92b9{['afterInit'](){const _0x19f7f0=this['editor'];if(!_0x19f7f0['plugins']['has']('CommentsEditing'))return;_0x19f7f0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x386604,_0x48e98f,_0x6bbcb7){const _0x4b7be8=[];for(const _0x33f9ac of _0x48e98f['getItems']())_0x33f9ac['hasAttribute'](_0x386604)&&_0x4b7be8['push'](_0x6bbcb7['createRangeOn'](_0x33f9ac));return _0x4b7be8;}function _e(_0x1039d3,_0x48a367,{showActiveMarker:_0xe66bf1=!0x0}={}){const _0x30806a=_0x1039d3['plugins']['get']('TrackChangesEditing');return(_0x14ef81,_0x42aa15,_0x2b47ae)=>{if(!_0x2b47ae['consumable']['test'](_0x42aa15['markerRange'],_0x14ef81['name']))return;const _0x4ed7ba=_0x42aa15['markerRange']['getWalker'](),_0x4ea212=_0x42aa15['markerRange']['start'],_0x42e071=_0x1039d3['model']['schema'];let _0xc96631=null,_0x47e9d4=null,_0x314988=!0x1,_0x2abe96=!0x1;for(const _0x1fa7bd of _0x4ed7ba){const _0x47acea=_0x1fa7bd['item'];_0x314988=_0x314988||_0x42e071['isContent'](_0x47acea);const _0x5026f6=_0x2b47ae['mapper']['toViewElement'](_0x47acea);if(_0x5026f6&&_0x5026f6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1fa7bd['type']&&(_0x42e071['isBlock'](_0x47acea)&&!_0x42e071['isLimit'](_0x47acea)&&(_0x47acea['nextSibling']||_0x4ea212['isAtEnd']?_0xc96631&&_0xc96631['parent']==_0x47acea||(_0xc96631=_0x47acea,_0x502a90(_0x1fa7bd['previousPosition']),_0x2abe96=!0x0):_0x47e9d4=_0x47e9d4||_0x1fa7bd['previousPosition']));}function _0x502a90(_0x445341){const _0x49d7dd=_0x2b47ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48a367}),_0x20b547=_0x2b47ae['mapper']['toViewPosition'](_0x445341);_0xe66bf1&&_0x30806a['activeMarkers']['includes'](_0x42aa15['markerName'])&&_0x2b47ae['writer']['addClass']('ck-suggestion-marker--active',_0x49d7dd),_0x2b47ae['writer']['insert'](_0x20b547,_0x49d7dd),_0x2b47ae['mapper']['bindElementToMarker'](_0x49d7dd,_0x42aa15['markerName']);}_0x314988||_0x2abe96||!_0x47e9d4||_0x502a90(_0x47e9d4);};}class z extends _0x1f92b9{static get['requires'](){return[_0x261e91];}['init'](){const _0x435c3a=this['editor'],_0x568f14=_0x435c3a['plugins']['get']('TrackChangesEditing');_0x568f14['enableCommand']('delete');const _0x4ef29b=_0x435c3a['commands']['get']('deleteForward');_0x568f14['enableCommand']('deleteForward',(_0x122604,_0x152153={})=>{const _0x262578=_0x435c3a['model']['createSelection'](_0x435c3a['model']['document']['selection']);_0x262578['isCollapsed']&&_0x435c3a['model']['modifySelection'](_0x262578,{'direction':'forward','unit':_0x152153['unit']});const _0x2a6775=_0x262578['getFirstRange'](),_0x49fe99=_0x3dd19f['fromRange'](_0x2a6775);let _0x329dfb;_0x122604(_0x152153),_0x329dfb='$graveyard'==_0x49fe99['root']['rootName']?_0x435c3a['model']['createRange'](_0x2a6775['start']):_0x435c3a['model']['createRange'](_0x49fe99['start'],_0x49fe99['end']),_0x49fe99['detach'](),_0x435c3a['model']['enqueueChange'](_0x4ef29b['buffer']['batch'],_0x4935e1=>{_0x4ef29b['buffer']['lock'](),_0x4935e1['setSelection'](_0x4935e1['createRange'](_0x329dfb['end'])),_0x4ef29b['buffer']['unlock']();});}),_0x435c3a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x435c3a,'merge'),{'priority':'high'}),_0x435c3a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c94de,_0x2dd2aa,_0x490bbe)=>{_0x490bbe['options']['showSuggestionHighlights']&&_e(_0x435c3a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c94de,_0x2dd2aa,_0x490bbe);},{'priority':'high'}),_0x435c3a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x91a7b2,_0x21bf4e,_0x1164cd)=>{const _0x1b6c5f=_0x1164cd['mapper']['markerNameToElements'](_0x21bf4e['markerName']);if(_0x1b6c5f){for(const _0x1059a3 of _0x1b6c5f)_0x1059a3['is']('uiElement')&&(_0x1164cd['mapper']['unbindElementFromMarkerName'](_0x1059a3,_0x21bf4e['markerName']),_0x1164cd['writer']['remove'](_0x1059a3));}},{'priority':'high'});}}class K extends _0x1f92b9{['afterInit'](){const _0x38c8ba=this['editor'];if(!_0x38c8ba['plugins']['has']('ListEditing'))return;const _0x17c3a1=_0x38c8ba['locale'],_0x21e5b8=_0x38c8ba['plugins']['get']('TrackChangesEditing'),_0x310ef2=_0x38c8ba['plugins']['has']('TodoListEditing'),_0x2c8e85=!!_0x38c8ba['config']['get']('list.multiBlock');function _0x37f126(_0x39bcb2){return{'type':'format','content':''+o(_0x17c3a1,'*Set\x20format:*\x20%0',_0x39bcb2)};}function _0x56b142(_0x26c8c8){return{'type':'format','content':''+o(_0x17c3a1,'*Remove\x20format:*\x20%0',_0x26c8c8)};}_0x21e5b8['enableDefaultAttributesIntegration']('numberedList'),_0x21e5b8['enableDefaultAttributesIntegration']('bulletedList'),_0x21e5b8['enableDefaultAttributesIntegration']('customNumberedList'),_0x21e5b8['enableDefaultAttributesIntegration']('customBulletedList'),_0x21e5b8['enableDefaultAttributesIntegration']('indentList'),_0x21e5b8['enableDefaultAttributesIntegration']('outdentList'),_0x21e5b8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x21e5b8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x21e5b8['registerBlockAttribute']('listItemId'),_0x21e5b8['registerBlockAttribute']('listType'),_0x21e5b8['registerBlockAttribute']('listIndent'),_0x2c8e85&&(_0x21e5b8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x21e5b8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x310ef2&&(_0x21e5b8['enableDefaultAttributesIntegration']('todoList'),_0x21e5b8['enableDefaultAttributesIntegration']('checkTodoList'),_0x21e5b8['registerBlockAttribute']('todoListChecked'),_0x21e5b8['descriptionFactory']['registerDescriptionCallback'](_0x1ca6fe=>{const {data:_0xd1bc97}=_0x1ca6fe;if(_0xd1bc97&&'todoListChecked'==_0xd1bc97['key'])return{'type':'format','content':_0xd1bc97['newValue']?o(_0x17c3a1,'*Check\x20item*'):o(_0x17c3a1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x26ece6=>{if(_0x26ece6['batch']['isUndo'])return!0x1;let _0x2b98a7=!0x1;const _0x5acbaf=_0x21e5b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d50f8=>'todoListChecked'===_0x21e5b8['_getAttributeKey'](_0x3d50f8));for(const _0x2db736 of _0x5acbaf){'todo'!=_0x2db736['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x21e5b8['_findSuggestions'](_0x2db736['getFirstRange'](),'attribute')['find'](_0x57f243=>'listType'===_0x21e5b8['_getAttributeKey'](_0x57f243['suggestion']))||(_0x26ece6['removeMarker'](_0x2db736['getFirstMarker']()),_0x2b98a7=!0x0));}return _0x2b98a7;})),_0x21e5b8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x17c3a1,'FORMAT_INDENT'));const _0x35751d={'type':'format','content':''};_0x21e5b8['descriptionFactory']['registerDescriptionCallback'](_0x7b8a5e=>{const {data:_0x25ec2d}=_0x7b8a5e;if(!_0x25ec2d||'listType'!=_0x25ec2d['key'])return;let _0xaa7753=_0x7b8a5e['head'];for(;_0xaa7753;){if(_0xaa7753['data']&&(('listStyle'==_0xaa7753['data']['key']||'listMarkerStyle'==_0xaa7753['data']['key'])&&(_0xaa7753['data']['newValue']&&'default'!=_0xaa7753['data']['newValue']||'default'!=_0xaa7753['data']['oldValue']&&!_0x25ec2d['newValue'])||!_0x2c8e85&&_0xaa7753['data']['key']==m))return _0x35751d;_0xaa7753=_0xaa7753['next'];}if(null==_0x25ec2d['newValue'])switch(_0x25ec2d['oldValue']){case'bulleted':return _0x56b142(o(_0x17c3a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56b142(o(_0x17c3a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56b142(o(_0x17c3a1,'ELEMENT_TODO_LIST'));}switch(_0x25ec2d['newValue']){case'bulleted':return _0x37f126(o(_0x17c3a1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37f126(o(_0x17c3a1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37f126(o(_0x17c3a1,'ELEMENT_TODO_LIST'));}}),_0x21e5b8['descriptionFactory']['registerDescriptionCallback'](_0x158daf=>{const {data:_0x28fde0}=_0x158daf;if(_0x28fde0&&'listIndent'==_0x28fde0['key'])return null==_0x28fde0['newValue']||null==_0x28fde0['oldValue']&&0x0==_0x28fde0['newValue']?_0x35751d:void 0x0;}),_0x21e5b8['descriptionFactory']['registerDescriptionCallback'](_0x2e6a04=>{if('attribute'!=_0x2e6a04['type'])return;const {data:_0x1e0f6e}=_0x2e6a04;if(!_0x1e0f6e||'listItemId'!=_0x1e0f6e['key'])return;const _0x419db2=le(_0x2e6a04);return'newValue'==_0x419db2?{'type':'format','content':o(_0x17c3a1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x419db2?{'type':'format','content':o(_0x17c3a1,'*Split:*\x20list\x20item')}:_0x35751d;}),_0x38c8ba['model']['document']['registerPostFixer'](_0x53b04c=>this['listItemIdFixer'](_0x53b04c)),_0x38c8ba['model']['document']['registerPostFixer'](_0x4397e4=>this['noTrackChangesFixer'](_0x4397e4)),_0x38c8ba['model']['document']['on']('change:data',(_0x4da1f4,_0x436e59)=>{if(_0x436e59['isUndo']||!_0x436e59['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2cd8a6){if(_0x2cd8a6['batch']['isUndo']||!_0x2cd8a6['batch']['isLocal'])return!0x1;let _0x242c92=!0x1;const _0x33f8e5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b753a=>_0x4b753a['data']&&'listItemId'==_0x4b753a['data']['key'])['filter'](_0x517f98=>_0x517f98['data']['newValue']&&_0x517f98['data']['oldValue']);for(const _0x18f24a of _0x33f8e5)le(_0x18f24a)||(_0x2cd8a6['removeMarker'](_0x18f24a['getFirstMarker']()),_0x242c92=!0x0);return _0x242c92;}['noTrackChangesFixer'](_0x4faf57){if(_0x4faf57['batch']['isUndo']||!_0x4faf57['batch']['isLocal'])return!0x1;const _0x12d564=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x12d564['trackChangesCommand']['value'])return!0x1;let _0x139cd9=!0x1;const _0x33a2c1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4bb502=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3a9a0b=>'attribute'==_0x3a9a0b['type'])['filter'](_0x9462ee=>_0x33a2c1['includes'](_0x9462ee['attributeKey']));if(0x0==_0x4bb502['length'])return _0x139cd9;for(const _0x31ae48 of _0x4bb502){const _0x5623d4=_0x12d564['_findSuggestions'](_0x31ae48['range'],'attribute')['filter'](_0x2cdf7d=>!_0x2cdf7d['meta']['isNextTo'])['map'](_0x131199=>_0x131199['suggestion'])['filter'](_0x21ca50=>{const _0x104092=_0x12d564['_getAttributeKey'](_0x21ca50);return _0x33a2c1['includes'](_0x104092);});if(_0x5623d4['length']){for(const _0x324675 of _0x5623d4)_0x4faf57['removeMarker'](_0x324675['getFirstMarker']());_0x139cd9=!0x0;}}return _0x139cd9;}['assureChains'](){const _0xd4b658=this['editor']['plugins']['get']('TrackChangesEditing'),_0x109ca3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x114c47;const _0x2dc3f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fc911=>{if(_0x3fc911['data']['oldRange']||!_0x3fc911['data']['newRange'])return null;if(!_0x3fc911['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x775caa}=_0xd4b658['_splitMarkerName'](_0x3fc911['name']);if(!_0xd4b658['hasSuggestion'](_0x775caa))return null;const _0x2ae344=_0xd4b658['getSuggestion'](_0x775caa);return _0x109ca3['includes'](_0x2ae344['data']['key']);})['map'](_0x29699b=>{const {id:_0x523456}=_0xd4b658['_splitMarkerName'](_0x29699b['name']),_0xe52c1=_0xd4b658['getSuggestion'](_0x523456);return _0x114c47=_0xe52c1['attributes']['groupId'],_0xe52c1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2dc3f3['size'])return;const _0x8557ce=_0xd4b658['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x141778=>'attribute'==_0x141778['type']&&_0x141778['data']&&_0x109ca3['includes'](_0x141778['data']['key'])&&_0x141778['attributes']['groupId']!=_0x114c47)['map'](_0x22d3fa=>({'listItem':_0x22d3fa['getFirstRange']()['start']['nodeAfter'],'groupId':_0x22d3fa['attributes']['groupId']})),_0xd917f2=new Set();for(const {groupId:_0x671ca8,listItem:_0x41748d}of _0x8557ce)_0x2dc3f3['has'](_0x41748d)&&_0xd917f2['add'](_0x671ca8);for(const _0x52caf2 of _0xd4b658['getSuggestions']())_0xd917f2['has'](_0x52caf2['attributes']['groupId'])&&_0x52caf2['setAttribute']('groupId',_0x114c47);}['_supportLegacySuggestions'](){const _0x1c3520=this['editor'],_0x78b5c5=_0x1c3520['locale'],_0x15119d=_0x1c3520['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15119d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x36212f,_0x449c70){const _0x58a092=[];for(let _0x3cd3a1 of _0x36212f)_0x3cd3a1['start']['nodeAfter']===_0x3cd3a1['end']['parent']&&(_0x3cd3a1=_0x1c3520['model']['createRange'](_0x1c3520['model']['createPositionAt'](_0x3cd3a1['start']['nodeAfter'],0x0))),_0x58a092['push'](_0x3cd3a1);_0x1c3520['model']['change'](_0x1d41f9=>{const _0x4a19d8=_0x1c3520['model']['document']['selection'],_0xdcb3f6=Array['from'](_0x4a19d8['getRanges']())['map'](_0x1647af=>_0x3dd19f['fromRange'](_0x1647af));_0x1d41f9['setSelection'](_0x58a092),_0x1c3520['commands']['get'](_0x449c70['commandName'])['refresh'](),_0x449c70['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1c3520['execute'](_0x449c70['commandName'],..._0x449c70['commandParams']),_0x1d41f9['setSelection'](_0xdcb3f6);for(const _0x4f0621 of _0xdcb3f6)_0x4f0621['detach']();});}),_0x15119d['descriptionFactory']['registerElementLabel'](function(_0x2b991){const _0x1149b8=!_0x1c3520['model']['schema']['isObject'](_0x2b991),_0x4e0994=_0x2b991['previousSibling'],_0xe3802e=_0x2b991['nextSibling'],_0x2c10e3=_0x2b991['getAttribute']('listItemId'),_0x2e1e3d=!_0x4e0994||_0x4e0994['getAttribute']('listItemId')!==_0x2c10e3,_0x2a0db6=!_0xe3802e||_0xe3802e['getAttribute']('listItemId')!==_0x2c10e3;return _0x1149b8&&Boolean(_0x2c10e3)&&_0x2e1e3d&&_0x2a0db6;},_0x9d3e41=>o(_0x78b5c5,'ELEMENT_LIST_ITEM',_0x9d3e41));}['_registerLegacyDescription'](){const _0x13c06d=this['editor'],_0x2334b4=_0x13c06d['locale'];function _0xdca34d(_0x3e4912){const _0x331d30=_0x13c06d['commands']['get']('bulletedList')['value'],_0x4bdc4d=_0x13c06d['commands']['get']('numberedList')['value'];return'numberedList'===_0x3e4912?_0x331d30:_0x4bdc4d;}_0x13c06d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x41a618){if('formatBlock'!=_0x41a618['type'])return;const {data:_0x310e2c}=_0x41a618;if(!_0x310e2c)return;let _0x3a0f61,_0x20e35e,_0x2299fe,_0x2366ce;switch(_0x310e2c['commandName']){case'bulletedList':_0x2299fe=_0x310e2c['commandParams'][0x0]['forceValue'],_0x2366ce=_0xdca34d(_0x310e2c['commandName']),_0x3a0f61=_0x2299fe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2366ce&&_0x13c06d['config']['get']('list.multiBlock')||(_0x3a0f61='*Change\x20to:*\x20%0'),_0x20e35e={'type':'format','content':o(_0x2334b4,_0x3a0f61,o(_0x2334b4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2299fe=_0x310e2c['commandParams'][0x0]['forceValue'],_0x2366ce=_0xdca34d(_0x310e2c['commandName']),_0x3a0f61=_0x2299fe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2366ce&&_0x13c06d['config']['get']('list.multiBlock')||(_0x3a0f61='*Change\x20to:*\x20%0'),_0x20e35e={'type':'format','content':o(_0x2334b4,_0x3a0f61,o(_0x2334b4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3a0f61='*Indent:*\x20%0',_0x20e35e={'type':'format','content':o(_0x2334b4,_0x3a0f61,o(_0x2334b4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3a0f61=function(_0x51fdf5){const _0x22f890=_0x51fdf5['getFirstRange']();let _0x3d76af=_0x22f890['start']['nodeAfter'];for(;_0x3d76af&&_0x22f890['containsItem'](_0x3d76af);){if(_0x3d76af['getAttribute']('listIndent')>0x0)return!0x1;_0x3d76af=_0x3d76af['nextSibling'];}return!0x0;}(_0x41a618)?o(_0x2334b4,'*Format:*\x20remove\x20from\x20%0',o(_0x2334b4,function(_0x521346){return'ELEMENT_'+_0x521346['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x41a618))):o(_0x2334b4,'*Outdent:*\x20%0',o(_0x2334b4,'ELEMENT_LIST_ITEM')),_0x20e35e={'type':'format','content':_0x3a0f61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x310e2c['multipleBlocks']&&(_0x3a0f61='*Merge:*\x20%0',_0x20e35e={'type':'deletion','content':o(_0x2334b4,_0x3a0f61,o(_0x2334b4,'ELEMENT_LIST_ITEM'))});}return _0x20e35e;});}}function le(_0x57163c){let _0x4da71d=_0x57163c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4da71d;){const _0x208b1c=_0x4da71d['getAttribute']('listItemId');if(!_0x208b1c)return!0x1;if(_0x208b1c==_0x57163c['data']['newValue'])return'newValue';if(_0x208b1c==_0x57163c['data']['oldValue'])return'oldValue';_0x4da71d=_0x4da71d['previousSibling'];}return!0x1;}class pe extends _0x1f92b9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x593ec4=this['editor']['config']['get']('list.properties'),_0x301347=this['editor']['plugins']['get']('TrackChangesEditing');_0x593ec4['styles']&&(_0x301347['enableDefaultAttributesIntegration']('listStyle'),_0x301347['registerBlockAttribute']('listStyle')),_0x593ec4['reversed']&&(_0x301347['enableDefaultAttributesIntegration']('listReversed'),_0x301347['registerBlockAttribute']('listReversed')),_0x593ec4['startIndex']&&(_0x301347['enableDefaultAttributesIntegration']('listStart'),_0x301347['registerBlockAttribute']('listStart'));const _0x17bc3b={'type':'format','content':''};_0x301347['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x76ec0=this['editor']['locale'];_0x301347['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x76ec0,'FORMAT_LIST_REVERSED')),_0x301347['descriptionFactory']['registerDescriptionCallback'](_0x386b5b=>{const {data:_0x498cd0}=_0x386b5b;if(_0x498cd0&&'listReversed'==_0x498cd0['key'])return null==_0x498cd0['newValue']||0x0==_0x498cd0['newValue']&&null==_0x498cd0['oldValue']?_0x17bc3b:void 0x0;}),_0x301347['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x76ec0,'FORMAT_LIST_START')),_0x301347['descriptionFactory']['registerDescriptionCallback'](_0x331e02=>{const {data:_0xe06b07}=_0x331e02;if(_0xe06b07&&'listStart'==_0xe06b07['key'])return null==_0xe06b07['newValue']||0x1==_0xe06b07['newValue']&&null==_0xe06b07['oldValue']?_0x17bc3b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x415d4b=>{if(_0x415d4b['batch']['isUndo'])return!0x1;let _0x4b5044=!0x1;const _0x4af627=_0x301347['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fb3ca=>{const _0x5b7c6a=_0x301347['_getAttributeKey'](_0x3fb3ca);return'listStart'==_0x5b7c6a||'listReversed'==_0x5b7c6a;});for(const _0x478d1f of _0x4af627){const _0xd8d79b=_0x478d1f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xd8d79b||'customNumbered'==_0xd8d79b)continue;_0x301347['_findSuggestions'](_0x478d1f['getFirstRange'](),'attribute')['find'](_0x5c7afe=>'listType'==_0x301347['_getAttributeKey'](_0x5c7afe['suggestion']))||(_0x415d4b['removeMarker'](_0x478d1f['getFirstMarker']()),_0x4b5044=!0x0);}return _0x4b5044;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x79ead2){const _0xb10d43=this['editor']['locale'],{data:_0x37d066}=_0x79ead2,_0x2b1251={'type':'format','content':''};if(!_0x37d066||'listStyle'!=_0x37d066['key'])return;if(!_0x37d066['oldValue'])return'default'==_0x37d066['newValue']?_0x2b1251:{'type':'format','content':''+o(_0xb10d43,'*Set\x20format:*\x20%0',o(_0xb10d43,this['_getTranslationKeyForListStyle'](_0x37d066['newValue'])))};if(!_0x37d066['newValue']){if('default'==_0x37d066['oldValue'])return _0x2b1251;let _0x16d870=_0x79ead2['head'];for(;_0x16d870;){if(_0x16d870['data']&&'listType'==_0x16d870['data']['key']&&_0x16d870['data']['newValue'])return _0x2b1251;_0x16d870=_0x16d870['next'];}return{'type':'format','content':''+o(_0xb10d43,'*Remove\x20format:*\x20%0',o(_0xb10d43,this['_getTranslationKeyForListStyle'](_0x37d066['oldValue'])))};}if('default'!=_0x37d066['newValue'])return{'type':'format','content':''+o(_0xb10d43,'*Set\x20format:*\x20%0',o(_0xb10d43,this['_getTranslationKeyForListStyle'](_0x37d066['newValue'])))};let _0x326750=_0x79ead2['head'];for(;_0x326750;){if(_0x326750['data']&&'listType'==_0x326750['data']['key']&&_0x326750['data']['newValue']&&_0x326750['data']['oldValue'])return _0x2b1251;_0x326750=_0x326750['next'];}return{'type':'format','content':o(_0xb10d43,'*Set\x20format:*\x20%0',o(_0xb10d43,'ELEMENT_'+_0x79ead2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xf4b4f7=this['editor'],_0x52f3ed=_0xf4b4f7['locale'];_0xf4b4f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe6c8d1=>{if('formatBlock'!=_0xe6c8d1['type'])return;const {data:_0x590cf6}=_0xe6c8d1;if(!_0x590cf6)return;let _0x455ce0,_0xe51f06;switch(_0x590cf6['commandName']){case'listStyle':_0x455ce0='*Change\x20to:*\x20%0',_0xe51f06={'type':'format','content':o(_0x52f3ed,_0x455ce0,o(_0x52f3ed,this['_getTranslationKeyForListStyle'](_0x590cf6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x455ce0=_0x590cf6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe51f06={'type':'format','content':o(_0x52f3ed,_0x455ce0)};break;case'listStart':_0x455ce0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe51f06={'type':'format','content':o(_0x52f3ed,_0x455ce0,_0x590cf6['commandParams'][0x0]['startIndex'])};}return _0xe51f06;});}['_getTranslationKeyForListStyle'](_0x2e8582){return'ELEMENT_'+function(_0x3a508f){if(ye['includes'](_0x3a508f))return'bulleted';if(Se['includes'](_0x3a508f))return'numbered';return null;}(_0x2e8582)['toUpperCase']()+'_LIST_'+_0x2e8582['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1f92b9{static get['requires'](){return[_0x229cc0];}['init'](){const _0x215558=this['editor'],_0x44abfc=_0x215558['plugins']['get']('TrackChangesEditing'),_0x17147b=_0x215558['commands']['get']('enter');_0x44abfc['enableCommand']('enter',()=>{_0x215558['model']['change'](_0x5dab5a=>{const _0x5d12ad=_0x215558['model']['document']['selection'],_0x53a93d=_0x5d12ad['getFirstPosition'](),_0x1c1e73=_0x3dd19f['fromRange'](_0x5d12ad['getFirstRange']());if(_0x17147b['enterBlock'](_0x5dab5a)){const _0x352cd7=_0x215558['model']['createPositionAt'](_0x53a93d['parent']['nextSibling'],0x0),_0xccb104=_0x5dab5a['createRange'](_0x53a93d,_0x352cd7);_0x44abfc['markInsertion'](_0xccb104);}else _0x5dab5a['setSelection'](_0x5dab5a['createRange'](_0x1c1e73['end']));_0x1c1e73['detach'](),_0x17147b['fire']('afterExecute',{'writer':_0x5dab5a});});}),_0x215558['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x215558,'split'),{'priority':'high'}),_0x215558['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xc62f80,_0x525f6a,_0x6336d3)=>{const _0xdbbc70=_0x6336d3['mapper']['markerNameToElements'](_0x525f6a['markerName']);if(_0xdbbc70){for(const _0x3a6585 of _0xdbbc70)_0x3a6585['hasClass']('ck-suggestion-marker-split')&&(_0x6336d3['mapper']['unbindElementFromMarkerName'](_0x3a6585,_0x525f6a['markerName']),_0x6336d3['writer']['remove'](_0x3a6585));}},{'priority':'high'}),_0x215558['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12a578,_0x588fd4,_0x2ece5a)=>{_0x2ece5a['options']['showSuggestionHighlights']&&_e(_0x215558,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x12a578,_0x588fd4,_0x2ece5a);},{'priority':'high'});}}class X extends _0x1f92b9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3fd060=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fd060['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3fd060['enableCommand']('findNext'),_0x3fd060['enableCommand']('findPrevious'),_0x3fd060['enableCommand']('replace'),_0x3fd060['enableCommand']('replaceAll');}['handleFindCommand'](_0x18292f,_0x365ba3,_0x3a0818={}){const _0x2ad3b0=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x18292f(_0x5dd03d=>{let _0x5bbcbf=('string'==typeof _0x365ba3?_0x2ad3b0['findByTextCallback'](_0x365ba3,_0x3a0818):_0x365ba3)(_0x5dd03d);Array['isArray'](_0x5bbcbf)&&(_0x5bbcbf={'results':_0x5bbcbf,'searchText':'string'==typeof _0x365ba3?_0x365ba3:''});const _0x3ba93d=_0x5bbcbf['results']['filter'](_0x2b2d69=>!0x1===this['_isInDeletionRange'](_0x2b2d69,_0x5dd03d['item']));return{..._0x5bbcbf,'results':_0x3ba93d};},_0x3a0818);}['_isInDeletionRange'](_0x3d6482,_0x2406d4){const _0x23c2d5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2406d4,_0x3d6482['start']),this['editor']['model']['createPositionAt'](_0x2406d4,_0x3d6482['end']));for(const _0x2320d0 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23c2d5['getIntersection'](_0x2320d0['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 _0x1f92b9{['afterInit'](){const _0x3b4786=this['editor']['locale'],_0x324d17=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5232fd,commandName:_0x56862e}of ro)this['editor']['plugins']['has'](_0x5232fd)&&(_0x324d17['enableDefaultAttributesIntegration'](_0x56862e),_0x324d17['registerInlineAttribute'](_0x56862e));_0x324d17['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3b4786,'FORMAT_FONT_SIZE')),_0x324d17['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3b4786,'FORMAT_FONT_FAMILY')),_0x324d17['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3b4786,'FORMAT_FONT_COLOR')),_0x324d17['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3b4786,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15f8c9=this['editor'],_0x4d81dd=_0x15f8c9['locale'];_0x15f8c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8180=>{const _0x378f36=_0x4d81dd['t'];if('formatInline'!=_0x3b8180['type'])return;const {data:_0x30d604}=_0x3b8180;if(null!=_0x30d604){if('fontSize'==_0x30d604['commandName']){const _0x412961=_0x30d604['commandParams'][0x0]['value'];if(_0x412961){const _0x340d97=_0x378f36(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4ca4ec=>_0x4ca4ec['model']==_0x412961)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d81dd,'*Set\x20font\x20size:*\x20%0',_0x340d97)};}return{'type':'format','content':o(_0x4d81dd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x30d604['commandName']){const _0x445a=_0x30d604['commandParams'][0x0]['value'];return _0x445a?{'type':'format','content':o(_0x4d81dd,'*Set\x20font\x20family:*\x20%0',_0x445a)}:{'type':'format','content':o(_0x4d81dd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x30d604['commandName']){const _0x73d81a=_0x30d604['commandParams'][0x0]['value'];if(_0x73d81a){const _0x32dc05=_0x43d485(this['editor']['config']['get']('fontColor.colors'))['find'](_0x41e563=>_0x41e563['model']==_0x73d81a);let _0x23d460=_0x73d81a,_0x331708='';return _0x32dc05&&(_0x23d460=_0x32dc05['label'],_0x331708=_0x378f36(_0x23d460)['toLowerCase']()),{'type':'format','content':o(_0x4d81dd,'*Set\x20font\x20color:*\x20%0',_0x331708)['trim'](),'color':{'value':_0x73d81a,'title':_0x331708||_0x23d460}};}return{'type':'format','content':o(_0x4d81dd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x30d604['commandName']){const _0x48f494=_0x30d604['commandParams'][0x0]['value'];if(_0x48f494){const _0x3a7fe4=_0x43d485(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x36165d=>_0x36165d['model']==_0x48f494);let _0x362474=_0x48f494,_0x44ed78='';return _0x3a7fe4&&(_0x362474=_0x3a7fe4['label'],_0x44ed78=_0x378f36(_0x362474)['toLowerCase']()),{'type':'format','content':o(_0x4d81dd,'*Set\x20font\x20background\x20color:*\x20%0',_0x44ed78)['trim'](),'color':{'value':_0x48f494,'title':_0x44ed78||_0x362474}};}return{'type':'format','content':o(_0x4d81dd,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1f92b9{['afterInit'](){const _0x49232c=this['editor'],_0x538591=_0x49232c['plugins']['get']('TrackChangesEditing'),_0x1dc619=_0x49232c['commands']['get']('copyFormat'),_0x3741f2=_0x49232c['commands']['get']('pasteFormat');_0x1dc619&&_0x3741f2&&(_0x538591['enableDefaultAttributesIntegration']('pasteFormat'),_0x538591['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x12cbc2=this['editor'],_0x10010b=_0x12cbc2['locale'];_0x12cbc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c740d=>{if('formatBlock'!=_0x1c740d['type']&&'formatInline'!=_0x1c740d['type'])return;const {data:_0x3b2336}=_0x1c740d;if(_0x3b2336&&'pasteFormat'===_0x3b2336['commandName']){const _0x371964=[],_0x87b05=_0x3b2336['commandParams'][0x0];for(const [_0x4e5a26,_0x53be36]of Object['entries'](_0x87b05))_0x371964['push'](so(_0x12cbc2,_0x4e5a26,_0x53be36));return _0x371964['length']?{'type':'format','content':o(_0x10010b,'*Set\x20format\x20to:*\x20%0',_0x371964['join'](',\x20'))}:{'type':'format','content':o(_0x10010b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x270f45,_0x35008b,_0x387613){const _0x5e2833=_0x270f45['locale']['t'],_0x44c363=_0x35008b['split'](/(?=[A-Z])/)['join']('\x20'),_0x3d8f45=_0x5e2833(_0x44c363['charAt'](0x0)['toUpperCase']()+_0x44c363['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x387613)return _0x3d8f45;if('fontColor'===_0x35008b||'fontBackgroundColor'===_0x35008b){const _0x2437e2=_0x43d485(_0x270f45['config']['get']('fontColor.colors'))['find'](_0x58153c=>_0x58153c['model']==_0x387613);return _0x3d8f45+'\x20('+(_0x2437e2?_0x5e2833(_0x2437e2['label'])['toLowerCase']():_0x387613)+')';}if('fontSize'===_0x35008b&&isNaN(parseFloat(_0x387613))){const _0x53aaef=_0x270f45['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x270f45['config']['get']('fontSize.options'))['find'](_0x168f71=>_0x168f71['model']==_0x387613);return _0x3d8f45+'\x20('+(_0x53aaef?_0x5e2833(_0x53aaef['title'])['toLowerCase']():_0x387613)+')';}return _0x3d8f45+'\x20('+_0x387613+')';}class tt extends _0x1f92b9{['_headingOptions'];['afterInit'](){const _0x18719b=this['editor'];if(!_0x18719b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18719b['config']['get']('heading.options');const _0x1b25db=_0x18719b['locale'],_0x157c7f=_0x18719b['plugins']['get']('TrackChangesEditing');_0x157c7f['enableDefaultAttributesIntegration']('heading');for(const _0x528b52 of this['_headingOptions'])'paragraph'!=_0x528b52['model']&&_0x157c7f['descriptionFactory']['registerElementLabel'](_0x528b52['model'],_0x5e672c=>{const _0x349588=this['_getHeadingLevel'](_0x528b52['model']);return null!==_0x349588?_0x29fbb0(_0x5e672c,_0x349588):_0x1e3bb3(_0x5e672c,_0x528b52['title']);});function _0x29fbb0(_0x1aef7d,_0xaf83e3){return o(_0x1b25db,'ELEMENT_HEADING',[_0x1aef7d,_0xaf83e3]);}function _0x1e3bb3(_0x23aff9,_0x5f0e01){return o(_0x1b25db,'ELEMENT_HEADING_CUSTOM',[_0x23aff9,_0x5f0e01]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a1b90=this['editor'],_0x35de94=_0x5a1b90['locale'];function _0x6bbb75(_0xbe6966,_0x578919){return o(_0x35de94,'ELEMENT_HEADING_CUSTOM',[_0xbe6966,_0x578919]);}_0x5a1b90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c413=>{if('formatBlock'!=_0x45c413['type'])return;const {data:_0x3bf800}=_0x45c413;if(_0x3bf800&&'heading'==_0x3bf800['commandName']){const _0x4edcbf=_0x3bf800['commandParams'][0x0]['value'],_0x51b4cc=this['_getHeadingLevel'](_0x4edcbf);if(null!==_0x51b4cc)return{'type':'format','content':o(_0x35de94,'*Change\x20to:*\x20%0',(_0x951001=0x1,_0x1fb095=_0x51b4cc,o(_0x35de94,'ELEMENT_HEADING',[_0x951001,_0x1fb095])))};const _0x1e1940=this['_headingOptions']['find'](_0x25a1d5=>_0x25a1d5['model']===_0x4edcbf)['title'];return{'type':'format','content':o(_0x35de94,'*Change\x20to:*\x20%0',_0x6bbb75(0x1,_0x1e1940))};}var _0x951001,_0x1fb095;});}['_getHeadingLevel'](_0x5084d2){const _0x16bfa2=_0x5084d2['match'](/^heading(\d+)/);if(_0x16bfa2)return _0x16bfa2[0x1];const _0x566929=this['_headingOptions']?.['find'](_0x2cc784=>_0x2cc784['model']==_0x5084d2);if(_0x566929&&_0x566929['view']){const _0x194919=_0x566929['view'],_0x4074d8=(_0x194919['name']??_0x194919)['match'](/^h(\d+)/);if(_0x4074d8)return _0x4074d8[0x1];}return null;}}class et extends _0x1f92b9{['afterInit'](){const _0x4ad66f=this['editor'];if(!_0x4ad66f['plugins']['has']('HighlightEditing'))return;const _0x41c15c=_0x4ad66f['plugins']['get']('TrackChangesEditing'),_0x5b2f1e=_0x4ad66f['locale'];_0x41c15c['enableDefaultAttributesIntegration']('highlight'),_0x41c15c['registerInlineAttribute']('highlight'),_0x41c15c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5b2f1e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33d5f0=this['editor'],_0x167c06=_0x33d5f0['locale'];_0x33d5f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x246367=>{if('formatInline'!=_0x246367['type'])return;const {data:_0x399989}=_0x246367;if(_0x399989&&'highlight'==_0x399989['commandName']){const _0x22cfa8=_0x167c06['t'],_0x5dec4c=_0x399989['commandParams'][0x0]['value'];if(_0x5dec4c){const _0x22db46=_0x33d5f0['config']['get']('highlight.options')['find'](_0x40b955=>_0x40b955['model']==_0x5dec4c),_0x6b9ce9=_0x22cfa8(_0x22db46['title'])['toLowerCase']();return{'type':'format','content':o(_0x167c06,'*Set\x20highlight:*\x20%0',_0x6b9ce9),'color':{'value':_0x22db46['color'],'title':_0x22db46['title']}};}return{'type':'format','content':o(_0x167c06,'*Remove\x20highlight*',o(_0x167c06,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1f92b9{['afterInit'](){const _0x42b471=this['editor'];if(!_0x42b471['plugins']['has']('HorizontalLineEditing'))return;_0x42b471['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x17f8ae=_0x42b471['plugins']['get']('TrackChangesEditing'),_0x5006a1=_0x42b471['locale'];_0x17f8ae['descriptionFactory']['registerElementLabel']('horizontalLine',_0x287ab3=>o(_0x5006a1,'ELEMENT_HORIZONTAL_LINE',_0x287ab3)),_0x42b471['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e95d0,{writer:_0x2bad02,options:_0x78a013})=>{if(!_0x78a013['showSuggestionHighlights'])return null;const _0x531681=_0x2bad02['createContainerElement']('div'),_0x1a7f07=_0x2bad02['createEmptyElement']('hr');return _0x2bad02['addClass']('ck-horizontal-line',_0x531681),_0x2bad02['insert'](_0x2bad02['createPositionAt'](_0x531681,0x0),_0x1a7f07),_0x531681;},'converterPriority':'high'});}}class st extends _0x1f92b9{['afterInit'](){const _0x5b5bc3=this['editor'];if(!_0x5b5bc3['plugins']['has']('HtmlEmbed'))return;const _0x1abfdd=_0x5b5bc3['plugins']['get']('TrackChangesEditing'),_0x465fac=_0x5b5bc3['locale'];_0x1abfdd['descriptionFactory']['registerElementLabel']('rawHtml',_0x3bf41a=>o(_0x465fac,'ELEMENT_HTML_EMBED',_0x3bf41a)),_0x1abfdd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1abfdd['registerBlockAttribute']('value'),_0x1abfdd['descriptionFactory']['registerDescriptionCallback'](_0x45ad4e=>{if('attribute'!=_0x45ad4e['type'])return;const {data:_0xf6f95a}=_0x45ad4e;if(_0xf6f95a&&'value'==_0xf6f95a['key']&&_0x45ad4e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x214972=o(_0x465fac,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x465fac,'*Change\x20%0\x20content*',_0x214972)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38bcbe=this['editor'],_0x58f93d=_0x38bcbe['locale'];_0x38bcbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x133bd2=>{if('formatBlock'!=_0x133bd2['type'])return;const {data:_0x4d775d}=_0x133bd2;if(_0x4d775d&&'htmlEmbed'==_0x4d775d['commandName']){const _0x21b13a=o(_0x58f93d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x58f93d,'*Change\x20%0\x20content*',_0x21b13a)};}});}}class nt extends _0x1f92b9{['afterInit'](){const _0x48e239=this['editor'];if(!_0x48e239['plugins']['has']('ImageEditing'))return;const _0x5eb28e=_0x48e239['plugins']['get']('TrackChangesEditing'),_0x388d34=_0x48e239['plugins']['get']('ImageUtils'),_0x15d4a2=_0x48e239['locale'];_0x5eb28e['enableCommand']('insertImage'),_0x5eb28e['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c7c07=>o(_0x15d4a2,'ELEMENT_IMAGE',_0x1c7c07)),_0x5eb28e['descriptionFactory']['registerElementLabel']('imageInline',_0x5c42fb=>o(_0x15d4a2,'ELEMENT_INLINE_IMAGE',_0x5c42fb)),_0x5eb28e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x15d4a2,'ELEMENT_CAPTION')),_0x48e239['plugins']['has']('ImageUploadEditing')&&_0x5eb28e['enableCommand']('uploadImage'),_0x48e239['plugins']['has']('ImageBlockEditing')&&_0x48e239['plugins']['has']('ImageInlineEditing')&&(_0x5eb28e['enableCommand']('imageTypeInline',(_0x5294ff,_0x1f5a02)=>{const _0x256566=_0x388d34['getClosestSelectedImageElement'](_0x48e239['model']['document']['selection']);_0x48e239['model']['change'](()=>{_0x5eb28e['markBlockFormat'](_0x256566,{'commandName':'imageTypeInline','commandParams':[_0x1f5a02]},[],'convertBlockImageToInline');});}),_0x5eb28e['enableCommand']('imageTypeBlock',(_0x3247d1,_0x5a7c7a)=>{_0x48e239['model']['change'](_0x198bbf=>{let _0x53d519=_0x388d34['getClosestSelectedImageElement'](_0x48e239['model']['document']['selection']),_0xa73396=_0x198bbf['createRangeOn'](_0x53d519);const _0xc8a829=_0x3be751['fromPosition'](_0xa73396['start'],'toPrevious'),_0x5a8fc7=_0x3be751['fromPosition'](_0xa73396['end'],'toNext');_0x5eb28e['forceDefaultExecution'](()=>_0x3247d1(_0x5a7c7a)),_0x53d519=_0x388d34['getClosestSelectedImageElement'](_0x48e239['model']['document']['selection']),_0xa73396=_0x198bbf['createRangeOn'](_0x53d519);const _0x34ad2a=_0x198bbf['createRange'](_0xc8a829,_0x5a8fc7);_0xc8a829['detach'](),_0x5a8fc7['detach'](),_0x5eb28e['markBlockFormat'](_0x53d519,{'commandName':'imageTypeInline','commandParams':[_0x5a7c7a]},[],'convertInlineImageToBlock'),_0x34ad2a['start']['isBefore'](_0xa73396['start'])&&_0x5eb28e['markInsertion'](_0x198bbf['createRange'](_0x34ad2a['start'],_0xa73396['start']),'convertInlineImageToBlock'),_0xa73396['end']['isBefore'](_0x34ad2a['end'])&&_0x5eb28e['markInsertion'](_0x198bbf['createRange'](_0xa73396['end'],_0x34ad2a['end']),'convertInlineImageToBlock');});}),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5eb28e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4f2c80])=>{const _0x1642fa=_0x5eb28e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x9d1f4a=_0x4f2c80['start'],_0x154f07=_0x4f2c80['end'];const _0x424574=_0x48e239['model']['schema']['getNearestSelectionRange'](_0x9d1f4a,'backward'),_0x6423e8=_0x48e239['model']['schema']['getNearestSelectionRange'](_0x154f07,'forward');_0x424574['isCollapsed']&&(_0x9d1f4a=_0x424574['start']),_0x6423e8['isCollapsed']&&(_0x154f07=_0x6423e8['end']),_0x1642fa([_0x48e239['model']['createRange'](_0x9d1f4a,_0x154f07)]);}),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2104f7),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2104f7)),_0x48e239['plugins']['has']('ImageCaptionEditing')&&(_0x5eb28e['enableCommand']('toggleImageCaption',(_0xae9484,_0xd32492)=>{const _0x52dc00=_0x48e239['plugins']['get']('ImageCaptionUtils');let _0x570517=_0x388d34['getClosestSelectedImageElement'](_0x48e239['model']['document']['selection']),_0x493b84=_0x52dc00['getCaptionFromImageModelElement'](_0x570517);_0x48e239['model']['change'](()=>{if(_0x493b84)return void _0x5eb28e['markDeletion'](_0x48e239['model']['createRangeOn'](_0x493b84));const _0x14d704=_0x388d34['isBlockImage'](_0x570517);_0xae9484(_0xd32492),_0x570517=_0x388d34['getClosestSelectedImageElement'](_0x48e239['model']['document']['selection']),_0x493b84=_0x52dc00['getCaptionFromImageModelElement'](_0x570517),_0x5eb28e['markInsertion'](_0x48e239['model']['createRangeOn'](_0x493b84),_0x14d704?null:'imageCaption');});}),_0x5eb28e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2104f7));const _0x18cd78=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1003ff(_0x1e8332,_0x115637){const _0x1559b9=_0x18cd78['findIndex'](({type:_0x5cc063,subType:_0x34f016})=>_0x1e8332['type']==_0x5cc063&&_0x1e8332['subType']==_0x34f016),_0x28802b=_0x18cd78['findIndex'](({type:_0x38f5e2,subType:_0x407539})=>_0x115637['type']==_0x38f5e2&&_0x115637['subType']==_0x407539);if(_0x1559b9<0x0||_0x28802b<0x0)return!0x1;const _0x22389a=_0x1e8332['getFirstRange'](),_0x5ce30c=_0x115637['getFirstRange']();if((0x0==_0x1559b9||0x1==_0x1559b9)&&0x2==_0x28802b&&_0x22389a['isIntersecting'](_0x5ce30c))return!0x0;if(0x2==_0x1559b9&&0x3==_0x28802b){const _0x184eb5=_0x5eb28e['_findSuggestions'](_0x22389a,'insertion')['filter'](({suggestion:_0x2b0dd9,meta:_0x91783c})=>_0x91783c['isOwn']&&'convertInlineImageToBlock'==_0x2b0dd9['subType']);if(_0x184eb5['length']>0x1&&_0x5ce30c['end']['isEqual'](_0x22389a['start']))return!0x0;if(0x1==_0x184eb5['length']&&(_0x22389a['start']['isEqual'](_0x5ce30c['end'])||_0x22389a['end']['isEqual'](_0x5ce30c['start'])))return!0x0;}if(0x3==_0x1559b9&&0x3==_0x28802b&&_0x22389a['start']['isBefore'](_0x5ce30c['start'])){const _0x4da372=_0x22389a['end']['nodeAfter'],_0x313f19=_0x5ce30c['start']['nodeBefore'];return _0x388d34['isBlockImage'](_0x4da372)&&_0x4da372===_0x313f19;}return!0x1;}function _0x2104f7(_0x2df982,_0x2994de){return _0x1003ff(_0x2df982,_0x2994de)?[_0x2df982,_0x2994de]:_0x1003ff(_0x2994de,_0x2df982)?[_0x2994de,_0x2df982]:null;}_0x48e239['plugins']['has']('ImageResize')&&(_0x5eb28e['enableDefaultAttributesIntegration']('resizeImage'),_0x5eb28e['registerBlockAttribute']('resizedWidth'),_0x5eb28e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x15d4a2,'FORMAT_IMAGE_SIZE'))),_0x48e239['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5eb28e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5eb28e['registerBlockAttribute']('alt')),_0x5eb28e['descriptionFactory']['registerDescriptionCallback'](_0x11fbb7=>{if(!!_0x18cd78['find'](({type:_0x11962a,subType:_0x246dd4})=>_0x11fbb7['type']==_0x11962a&&_0x11fbb7['subType']==_0x246dd4))return _0x11fbb7['previous']?{}:void 0x0;}),_0x5eb28e['descriptionFactory']['registerDescriptionCallback'](_0x3030b8=>{if('insertion'==_0x3030b8['type']||'deletion'==_0x3030b8['type']){const _0x29048a=_0x3030b8['getContainedElement']();if(_0x29048a&&_0x29048a['is']('element','caption'))return{'type':'insertion'==_0x3030b8['type']?'addObject':'removeObject','element':_0x29048a,'quantity':0x1};}}),_0x5eb28e['descriptionFactory']['registerDescriptionCallback'](_0x12c7ac=>'formatBlock'==_0x12c7ac['type']&&'convertInlineImageToBlock'==_0x12c7ac['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x12c7ac['type']&&'convertBlockImageToInline'==_0x12c7ac['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5eb28e['descriptionFactory']['registerDescriptionCallback'](_0x42abcd=>{if('attribute'!=_0x42abcd['type'])return;const {data:_0x47fa44}=_0x42abcd;if(!_0x47fa44||'alt'!=_0x47fa44['key'])return;const _0x5a7453=_0x47fa44['newValue'];return _0x5a7453?{'type':'format','content':o(_0x15d4a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a7453+'\x22')}:{'type':'format','content':o(_0x15d4a2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x174b50=this['editor'],_0x148a99=_0x174b50['locale'];_0x174b50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x384b62=>{if('formatBlock'!=_0x384b62['type']&&'formatInline'!=_0x384b62['type'])return;const {data:_0xdb6ba3}=_0x384b62;if(_0xdb6ba3){if('imageTextAlternative'==_0xdb6ba3['commandName']){const _0x2016d0=_0xdb6ba3['commandParams'][0x0]['newValue'];return _0x2016d0?{'type':'format','content':o(_0x148a99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2016d0+'\x22')}:{'type':'format','content':o(_0x148a99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xdb6ba3['commandName']){const _0x24488b=_0xdb6ba3['commandParams'][0x0]['width'];return _0x24488b?{'type':'format','content':o(_0x148a99,'*Set\x20image\x20width:*\x20%0',_0x24488b)}:{'type':'format','content':o(_0x148a99,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1f92b9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x41c8ed=this['editor']['locale'],_0x17da31=this['editor']['plugins']['get']('TrackChangesEditing');_0x17da31['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17da31['registerBlockAttribute']('src'),_0x17da31['descriptionFactory']['registerDescriptionCallback'](_0x598911=>{if('attribute'!=_0x598911['type'])return;const {data:_0x2fdb43}=_0x598911;return _0x2fdb43&&'src'==_0x2fdb43['key']?_0x2fdb43['newValue']&&_0x2fdb43['oldValue']?{'type':'format','content':o(_0x41c8ed,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x29c5ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x29c5ac['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x29c5ac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29c5ac['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x29c5ac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43fd9a=this['editor'],_0x2158e3=_0x43fd9a['locale'];_0x43fd9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c28a3=>{if('formatBlock'!=_0x2c28a3['type']&&'formatInline'!=_0x2c28a3['type'])return;const {data:_0x512107}=_0x2c28a3;if(!_0x512107||'replaceImageSource'!=_0x512107['commandName'])return;return{'type':'format','content':o(_0x2158e3,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1f92b9{['afterInit'](){const _0x1ed19e=this['editor'];if(!_0x1ed19e['plugins']['has']('ImageStyleEditing'))return;const _0x1bb50c=_0x1ed19e['plugins']['get']('TrackChangesEditing'),_0x2a64f2=_0x1ed19e['plugins']['get']('ImageUtils'),_0x131f48={};_0x1bb50c['enableCommand']('imageStyle',(_0x14eb40,_0x1dab4b)=>{const _0x4b424f=_0x1ed19e['plugins']['get']('Users')['me'],_0x32b24b=_0x1ed19e['commands']['get']('imageStyle');let _0x1230e1=_0x2a64f2['getClosestSelectedImageElement'](_0x1ed19e['model']['document']['selection']),_0x511089=_0x1ed19e['model']['createRangeOn'](_0x1230e1),_0x5e0978=_0x32b24b['value'];if(_0x5e0978==_0x1dab4b['value'])return;const _0x4fa6e8={'commandName':'imageStyle','commandParams':[_0x1dab4b],'formatGroupId':_0x39f5a3()};_0x1ed19e['model']['change'](()=>{if(_0x1bb50c['getSuggestions']()['filter'](_0x5664ac=>_0x5664ac['isInContent']&&_0x4b424f==_0x5664ac['author']&&('formatBlock'==_0x5664ac['type']||'formatInline'==_0x5664ac['type'])&&('imageStylePreApply'==_0x5664ac['subType']||'imageStylePostApply'==_0x5664ac['subType'])&&_0x5664ac['getFirstRange']()['isEqual'](_0x511089))['forEach'](_0x1ed4f4=>_0x1bb50c['discardSuggestion'](_0x1ed4f4['head'])),_0x1230e1=_0x2a64f2['getClosestSelectedImageElement'](_0x1ed19e['model']['document']['selection']),_0x511089=_0x1ed19e['model']['createRangeOn'](_0x1230e1),_0x32b24b['refresh'](),_0x1ed19e['commands']['get']('imageTypeInline')['refresh'](),_0x1ed19e['commands']['get']('imageTypeBlock')['refresh'](),_0x5e0978=_0x32b24b['value'],_0x5e0978!=_0x1dab4b['value'])return _0x2a64f2['isInlineImage'](_0x1230e1)&&_0x32b24b['shouldConvertImageType'](_0x1dab4b['value'],_0x1230e1)?(_0x14eb40({..._0x1dab4b,'setImageSizes':!0x1}),_0x1230e1=_0x2a64f2['getClosestSelectedImageElement'](_0x1ed19e['model']['document']['selection']),void _0x1bb50c['markBlockFormat'](_0x1230e1,{..._0x4fa6e8,'commandReversedParams':[{'value':_0x5e0978||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2a64f2['isBlockImage'](_0x1230e1)?_0x1bb50c['markBlockFormat'](_0x1230e1,_0x4fa6e8,[],'imageStylePostApply'):_0x1bb50c['markInlineFormat'](_0x511089,_0x4fa6e8,'imageStylePostApply'));});});for(const _0x2b0832 of _0x1ed19e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x131f48[_0x2b0832['name']]=_0x2b0832['title']['toLowerCase']();_0x1bb50c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1bb50c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1bb50c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1bb50c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xd703ab])=>{_0x2a64f2['setImageNaturalSizeAttributes'](_0xd703ab['getContainedElement']());}),_0x1bb50c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b6d48,_0x1831ff)=>{_0x1bb50c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b6d48,{'commandName':_0x1831ff['commandName'],'commandParams':_0x1831ff['commandReversedParams']});}),_0x1bb50c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x28a11c,_0x30153e){if(_0x2b299e(_0x28a11c,_0x30153e))return[_0x28a11c,_0x30153e];if(_0x2b299e(_0x30153e,_0x28a11c))return[_0x30153e,_0x28a11c];return null;});const _0x514647=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b299e(_0x104279,_0x4f113a){const _0x3d6132=_0x514647['findIndex'](({type:_0x2fdab3,subType:_0x445c22})=>_0x104279['type']==_0x2fdab3&&_0x104279['subType']==_0x445c22),_0x40d32d=_0x514647['findIndex'](({type:_0x58f482,subType:_0x186b59})=>_0x4f113a['type']==_0x58f482&&_0x4f113a['subType']==_0x186b59);if(_0x3d6132<0x0||_0x40d32d<0x0)return!0x1;const _0x82822e=_0x104279['getFirstRange'](),_0x19dbde=_0x4f113a['getFirstRange']();if((0x0==_0x3d6132||0x1==_0x3d6132)&&0x2==_0x40d32d&&_0x82822e['isIntersecting'](_0x19dbde))return!0x0;if(0x2==_0x3d6132&&0x3==_0x40d32d){const _0x40b519=_0x1bb50c['_findSuggestions'](_0x82822e,'insertion')['filter'](({suggestion:_0x501a3a,meta:_0x5b7449})=>_0x5b7449['isOwn']&&'convertInlineImageToBlock'==_0x501a3a['subType']);if(_0x40b519['length']>0x1&&_0x19dbde['end']['isEqual'](_0x82822e['start']))return!0x0;if(0x1==_0x40b519['length']&&(_0x82822e['start']['isEqual'](_0x19dbde['end'])||_0x82822e['end']['isEqual'](_0x19dbde['start'])))return!0x0;}if(0x3==_0x3d6132&&0x3==_0x40d32d&&_0x82822e['start']['isBefore'](_0x19dbde['start'])){const _0x4eb3cc=_0x82822e['end']['nodeAfter'],_0x5bed01=_0x19dbde['start']['nodeBefore'];return _0x2a64f2['isBlockImage'](_0x4eb3cc)&&_0x4eb3cc===_0x5bed01;}return!0x1;}_0x1ed19e['model']['document']['registerPostFixer'](()=>{let _0x49e434=!0x1;const _0x5163e3=Array['from'](_0x1ed19e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa3aad5,data:_0x29d3aa}of _0x5163e3){const {group:_0x52b539,type:_0x22c96e,subType:_0x5872d1,id:_0x22e786}=_0x1bb50c['_splitMarkerName'](_0xa3aad5);if('suggestion'==_0x52b539&&_0x1bb50c['hasSuggestion'](_0x22e786)){if('formatBlock'==_0x22c96e&&('imageStylePreApply'==_0x5872d1||'imageStylePostApply'==_0x5872d1)){const _0x44ed1a=_0x1bb50c['getSuggestion'](_0x22e786);if(_0x29d3aa['newRange']){const _0x597685=_0x44ed1a['getFirstRange']()['getContainedElement']();if(_0x2a64f2['isBlockImage'](_0x597685))continue;_0x1bb50c['discardSuggestion'](_0x44ed1a),_0x49e434=!0x0;}}if('insertion'==_0x22c96e&&'imageCaption'==_0x5872d1&&!_0x29d3aa['newRange']){const _0x3f8669=_0x1bb50c['getSuggestion'](_0x22e786);_0x3f8669['next']&&_0x3f8669['next']['isInContent']&&(_0x1bb50c['discardSuggestion'](_0x3f8669['next']),_0x49e434=!0x0);}}}return _0x49e434;}),this['_registerLegacyDescription'](_0x131f48);}['_registerLegacyDescription'](_0xc9a9d1){const _0x1b8ebc=this['editor'],_0x19057d=_0x1b8ebc['locale'];_0x1b8ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b231=>{if('formatBlock'!=_0x19b231['type']&&'formatInline'!=_0x19b231['type'])return;const {data:_0x8c45b8}=_0x19b231;if(!_0x8c45b8||'imageStyle'!=_0x8c45b8['commandName'])return;const _0x5b77f9=_0x8c45b8['commandParams'][0x0]['value'];return _0x546303('side'===_0x5b77f9?o(_0x19057d,'FORMAT_SIDE_IMAGE'):_0xc9a9d1[_0x5b77f9]||_0x5b77f9);function _0x546303(_0x2fa655){return{'type':'format','content':o(_0x19057d,'*Format:*\x20%0',_0x2fa655)};}});}}class at extends _0x1f92b9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x426e42){super(_0x426e42),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1a5cd0=this['editor'],_0x2fd2ab=_0x1a5cd0['commands']['get']('importWord'),_0x574053=_0x1a5cd0['commands']['get']('trackChanges');_0x2fd2ab&&(_0x2fd2ab['on']('execute',(_0x298162,[,_0x76aa13])=>{this['_trackChangesValueDuringImport']=_0x574053['value'],_0x76aa13['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2fd2ab,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2fd2ab,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x574053['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1a5cd0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5ca234,_0x4aade2){const {suggestions:_0x3e20e8}=_0x4aade2,_0x3fae67=this['editor']['commands']['get']('trackChanges'),_0x5ec42c=_0x3fae67['value'];this['_trackChangesValueDuringImport']!==_0x5ec42c&&(_0x3fae67['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e20e8&&_0x3e20e8['forEach'](({id:_0x29af0a,type:_0x3410d1,author:_0x1cea10,created_at:_0x44fabe})=>{const _0x30b2f0={'id':_0x29af0a,'type':_0x3410d1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1cea10,'createdAt':_0x44fabe?new Date(_0x44fabe):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30b2f0);});}}class ct extends _0x1f92b9{['afterInit'](){const _0x1e3e8f=this['editor'],_0x58b3df=_0x1e3e8f['plugins']['get']('TrackChangesEditing');if(_0x1e3e8f['plugins']['has']('IndentEditing')&&(_0x58b3df['enableCommand']('indent'),_0x58b3df['enableCommand']('outdent')),_0x1e3e8f['plugins']['has']('IndentBlock')){for(const _0x494db4 of['indentBlock','outdentBlock'])_0x58b3df['enableDefaultAttributesIntegration'](_0x494db4);}const _0x23a537=_0x1e3e8f['locale'];_0x58b3df['registerBlockAttribute']('blockIndent'),_0x58b3df['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x23a537,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c90fa=this['editor'],_0xcae025=_0x5c90fa['locale'],_0x1e919f=_0x5c90fa['plugins']['get']('TrackChangesEditing');_0x1e919f['descriptionFactory']['registerDescriptionCallback'](_0x2f85d3=>{if('formatBlock'!=_0x2f85d3['type'])return;const {data:_0x5dbdd5}=_0x2f85d3;if(!_0x5dbdd5)return;if('indentBlock'!=_0x5dbdd5['commandName']&&'outdentBlock'!=_0x5dbdd5['commandName'])return;const _0x14aae7=_0x2f85d3['getItems']()[0x0],_0x507032=_0x1e919f['descriptionFactory']['getItemLabel'](_0x14aae7);return'indentBlock'==_0x5dbdd5['commandName']?{'type':'format','content':o(_0xcae025,'*Indent:*\x20%0',_0x507032)}:'outdentBlock'==_0x5dbdd5['commandName']?{'type':'format','content':o(_0xcae025,'*Outdent:*\x20%0',_0x507032)}:void 0x0;});}}class ut extends _0x1f92b9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1f92b9{['afterInit'](){const _0x2fd5ab=this['editor'];if(!_0x2fd5ab['plugins']['has']('LinkEditing'))return;const _0x1bef4f=_0x2fd5ab['plugins']['get']('TrackChangesEditing'),_0x37c8ef=_0x2fd5ab['commands']['get']('link');_0x1bef4f['enableDefaultAttributesIntegration']('link'),_0x1bef4f['enableDefaultAttributesIntegration']('unlink'),_0x1bef4f['registerInlineAttribute']('linkHref');for(const _0x383386 of _0x37c8ef['manualDecorators'])_0x1bef4f['registerInlineAttribute'](_0x383386['id']),_0x1bef4f['descriptionFactory']['registerAttributeLabel'](_0x383386['id'],'link\x20('+_0x383386['label']['toLowerCase']()+')');_0x1bef4f['descriptionFactory']['registerDescriptionCallback'](_0x34e3a3=>{if('attribute'!=_0x34e3a3['type'])return;const {data:_0x20c36e}=_0x34e3a3;if(!_0x20c36e||'linkHref'!=_0x20c36e['key'])return;const _0x485245=_0x20c36e['newValue'],_0x1d53cc=_0x2fd5ab['locale'];return{'type':'format','content':null==_0x485245?o(_0x1d53cc,'*Remove\x20link*'):o(_0x1d53cc,'*Set\x20link:*\x20%0','\x22'+_0x485245+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ff1dd=this['editor'],_0x16eb0c=_0x9ff1dd['locale'];_0x9ff1dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7ca7=>{if('formatInline'!=_0x1f7ca7['type'])return;const {data:_0x50f885}=_0x1f7ca7;if(_0x50f885){if('link'==_0x50f885['commandName']){const _0x2f7c81=_0x50f885['commandParams'][0x0];return{'type':'format','content':o(_0x16eb0c,'*Set\x20link:*\x20%0','\x22'+_0x2f7c81+'\x22')};}return'unlink'==_0x50f885['commandName']?{'type':'format','content':o(_0x16eb0c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1f92b9{['afterInit'](){const _0x2195df=this['editor'],_0x48f442=_0x2195df['locale'];if(!_0x2195df['plugins']['has']('LegacyListEditing'))return;const _0x29b365=_0x2195df['plugins']['get']('TrackChangesEditing'),_0x25d77e=_0x2195df['plugins']['has']('LegacyTodoListEditing');function _0x49c3cf(_0x5af296){return()=>{const _0x4f3316=_0x2195df['model']['document']['selection'],_0xf52bca=_0x2195df['commands']['get'](_0x5af296);if(_0xf52bca['value'])return void _0x2195df['execute']('paragraph',{});const _0x539ffc=_0x5af296['slice'](0x0,-0x4),_0x593820=function(_0xdd0ef0,_0x4e7228,_0x1ce247){let _0x4cc9cb=Array['from'](_0xdd0ef0)['filter'](_0x4cb05e=>function(_0x4d716c,_0x16ced5){return _0x16ced5['checkChild'](_0x4d716c['parent'],'listItem')&&!_0x16ced5['isObject'](_0x4d716c);}(_0x4cb05e,_0x1ce247));_0x4cc9cb=_0x4cc9cb['filter'](_0xe775c5=>!_0xe775c5['is']('element','listItem')||_0xe775c5['getAttribute']('listType')!=_0x4e7228);const _0x205886=new Set();for(const _0x3c6719 of _0x4cc9cb)_0x3c6719['is']('element','listItem')?_0x205886['add'](fe(_0x3c6719)):_0x205886['add'](_0x3c6719);return Array['from'](_0x205886);}(_0x4f3316['getSelectedBlocks'](),_0x539ffc,_0x2195df['model']['schema']);_0x2195df['model']['change'](()=>{for(const _0x30ac5c of _0x593820)_0x29b365['markBlockFormat'](_0x30ac5c,{'commandName':_0x5af296,'commandParams':[{'forceValue':!_0xf52bca['value']}],'formatGroupId':'blockName'},ue(_0x30ac5c));});};}function _0xb61022(_0x4d4e00){return()=>{const _0x3b25c6=function(_0x274c9e){let _0x1c2416=Array['from'](_0x274c9e);const _0x489407=_0x1c2416['findIndex'](_0x241e56=>'listItem'!=_0x241e56['name']);return _0x489407>-0x1&&(_0x1c2416=_0x1c2416['slice'](0x0,_0x489407)),_0x1c2416;}(_0x2195df['model']['document']['selection']['getSelectedBlocks']()),_0x52fac8=_0x2195df['model']['createRange'](_0x2195df['model']['createPositionAt'](_0x3b25c6[0x0],'before'),_0x2195df['model']['createPositionAt'](_0x3b25c6[_0x3b25c6['length']-0x1],'end'));_0x2195df['model']['change'](()=>{_0x29b365['markBlockFormat'](_0x52fac8,{'commandName':_0x4d4e00,'commandParams':[],'formatGroupId':'listIndent'},function(_0x27cab0){const _0x36e9d2=new Set();for(const _0x2f4dba of _0x27cab0){let _0x504ffa=_0x2f4dba['nextSibling'];for(;_0x504ffa&&_0x504ffa['getAttribute']('listIndent')>_0x2f4dba['getAttribute']('listIndent');)_0x36e9d2['add'](_0x504ffa),_0x504ffa=_0x504ffa['nextSibling'];}return Array['from'](_0x36e9d2);}(_0x3b25c6));});};}_0x29b365['enableCommand']('numberedList',_0x49c3cf('numberedList')),_0x29b365['enableCommand']('bulletedList',_0x49c3cf('bulletedList')),_0x25d77e&&_0x29b365['enableCommand']('todoList',_0x49c3cf('todoList')),_0x29b365['enableCommand']('indentList',_0xb61022('indentList')),_0x29b365['enableCommand']('outdentList',_0xb61022('outdentList')),_0x25d77e&&_0x29b365['enableCommand']('checkTodoList',()=>{const _0x553040=_0x2195df['commands']['get']('checkTodoList'),_0x296a07=Array['from'](_0x553040['_selectedElements']);_0x296a07['filter'](_0x46fb8d=>_0x46fb8d['getAttribute']('todoListChecked')!=_0x553040['value']),_0x2195df['model']['change'](()=>{for(const _0x28400f of _0x296a07)_0x29b365['markBlockFormat'](_0x28400f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x553040['value']}]});});}),_0x29b365['descriptionFactory']['registerElementLabel']('listItem',_0x66aa8c=>o(_0x48f442,'ELEMENT_LIST_ITEM',_0x66aa8c)),_0x29b365['descriptionFactory']['registerDescriptionCallback'](_0x59b7b3=>{if('formatBlock'!=_0x59b7b3['type']&&'formatInline'!=_0x59b7b3['type'])return;const {data:_0xd4eff8}=_0x59b7b3;if(_0xd4eff8){if('numberedList'==_0xd4eff8['commandName']||'bulletedList'==_0xd4eff8['commandName']||'todoList'==_0xd4eff8['commandName'])switch(_0xd4eff8['commandName']['replace']('List','')){case'bulleted':return _0x5d3af7(o(_0x48f442,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d3af7(o(_0x48f442,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d3af7(o(_0x48f442,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd4eff8['commandName'])return{'type':'format','content':o(_0x48f442,'*Indent:*\x20%0',o(_0x48f442,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd4eff8['commandName'])return{'type':'format','content':o(_0x48f442,'*Outdent:*\x20%0',o(_0x48f442,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd4eff8['commandName'])return _0xd4eff8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48f442,'*Check\x20item*')}:{'type':'format','content':o(_0x48f442,'*Uncheck\x20item*')};}function _0x5d3af7(_0x5cecaf){return{'type':'format','content':o(_0x48f442,'*Change\x20to:*\x20%0',_0x5cecaf)};}});}}function fe(_0xc8534a){const _0x45e61e=_0xc8534a['getAttribute']('listIndent');if(0x0==_0x45e61e)return _0xc8534a;let _0x14be79=_0xc8534a;for(;_0xc8534a['previousSibling']&&_0xc8534a['previousSibling']['is']('element','listItem');){const _0x38ce80=_0xc8534a['previousSibling']['getAttribute']('listIndent');if(_0x38ce80==_0x45e61e)_0x14be79=_0xc8534a['previousSibling'];else{if(_0x38ce80<_0x45e61e)break;}_0xc8534a=_0xc8534a['previousSibling'];}return _0x14be79;}function ue(_0x67eb47){const _0x2c70dd=[];if(_0x67eb47['is']('element','listItem')&&_0x67eb47['getAttribute']('listIndent')>0x0){let _0x5e308b=_0x67eb47['nextSibling'];for(;_0x5e308b&&'listItem'==_0x5e308b['name']&&_0x5e308b['getAttribute']('listIndent')==_0x67eb47['getAttribute']('listIndent');)_0x2c70dd['push'](_0x5e308b),_0x5e308b=_0x5e308b['nextSibling'];}return _0x2c70dd;}class W extends _0x1f92b9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5d3f44=this['editor']['config']['get']('list.properties'),_0x42c7f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d3f44['styles']&&_0x42c7f6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5d3f44['reversed']&&_0x42c7f6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5d3f44['startIndex']&&_0x42c7f6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x42c7f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2f1b1a,_0x2bb5f8={}){const _0x2207ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34658a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2207ce['markMultiRangeBlockFormat'](_0x34658a,{'commandName':'listStyle','commandParams':[{'type':_0x2bb5f8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x157b08,_0x441568={}){const _0x39764a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cd778=this['_getSuggestionBlocks'](_0x5266d5=>_0x5266d5['is']('element','listItem')&&'numbered'===_0x5266d5['getAttribute']('listType'));if(_0x2cd778['length']<0x1)return;const _0x4679ce=_0x2cd778['map'](_0x9379c6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x9379c6,'before'),this['editor']['model']['createPositionAt'](_0x9379c6,0x0)));this['editor']['model']['change'](()=>{_0x39764a['markMultiRangeBlockFormat'](_0x4679ce,{'commandName':'listReversed','commandParams':[{'reversed':_0x441568['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2d9427,_0x29c255={}){const _0x21ea1d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x73d4f4=this['_getSuggestionBlocks'](_0x423643=>_0x423643['is']('element','listItem')&&'numbered'===_0x423643['getAttribute']('listType'));if(_0x73d4f4['length']<0x1)return;const _0x3c222f=_0x73d4f4['map'](_0x5c7cb1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c7cb1,'before'),this['editor']['model']['createPositionAt'](_0x5c7cb1,0x0)));this['editor']['model']['change'](()=>{_0x21ea1d['markMultiRangeBlockFormat'](_0x3c222f,{'commandName':'listStart','commandParams':[{'startIndex':_0x29c255['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x475933){if('formatBlock'!=_0x475933['type']&&'formatInline'!=_0x475933['type'])return;const _0x26e1e1=this['editor']['locale'],{data:_0x3e9d8b}=_0x475933;if(!_0x3e9d8b)return;let _0xb8cc3,_0x5f5d01;switch(_0x3e9d8b['commandName']){case'listStyle':_0xb8cc3='*Change\x20to:*\x20%0',_0x5f5d01={'type':'format','content':o(_0x26e1e1,_0xb8cc3,o(_0x26e1e1,this['_getTranslationKeyForListStyle'](_0x3e9d8b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb8cc3=_0x3e9d8b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f5d01={'type':'format','content':o(_0x26e1e1,_0xb8cc3)};break;case'listStart':_0xb8cc3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f5d01={'type':'format','content':o(_0x26e1e1,_0xb8cc3,_0x3e9d8b['commandParams'][0x0]['startIndex'])};}return _0x5f5d01;}['_getSuggestionBlocksForListStyle'](){const _0x1d416e=this['editor']['plugins']['get']('LegacyListUtils');let _0x1921ac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1921ac[0x0]?.['is']('element','listItem')&&_0x1921ac['unshift'](..._0x1d416e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1921ac[_0x1921ac['length']-0x1]?.['is']('element','listItem')&&_0x1921ac['push'](..._0x1d416e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1921ac=[...new Set(_0x1921ac)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1921ac=_0x1921ac['filter'](_0x95cddb=>_0x95cddb['is']('element','listItem'))),_0x1921ac;}['_getSuggestionBlocks'](_0x2d8181){const _0x2f1b61=this['editor']['plugins']['get']('LegacyListUtils');let _0x207a97=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2d8181)['map'](_0x4c66e3=>{const _0x476bfe=this['editor']['model']['createPositionAt'](_0x4c66e3,0x0);return[..._0x2f1b61['getSiblingNodes'](_0x476bfe,'backward'),..._0x2f1b61['getSiblingNodes'](_0x476bfe,'forward')];})['flat']();return _0x207a97=[...new Set(_0x207a97)],_0x207a97;}['_getTranslationKeyForListStyle'](_0x299ffe){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x299ffe)||'default')['toUpperCase']()+'_LIST_'+_0x299ffe['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1f92b9{['afterInit'](){const _0x30a7a0=this['editor'];if(!_0x30a7a0['plugins']['has']('MediaEmbedEditing'))return;const _0x14a913=_0x30a7a0['plugins']['get']('TrackChangesEditing'),_0x3f840e=_0x30a7a0['locale'];_0x14a913['enableCommand']('mediaEmbed'),_0x14a913['descriptionFactory']['registerElementLabel']('media',_0x46b4d6=>o(_0x3f840e,'ELEMENT_MEDIA',_0x46b4d6)),_0x30a7a0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x304711,{writer:_0x24750d,options:_0x421d68})=>{if(_0x421d68['showSuggestionHighlights'])return _0x24750d['createEmptyElement']('div');},'converterPriority':'high'}),_0x30a7a0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x46ddc6,_0x229fb5,_0x3b5fe5)=>{_0x3b5fe5['options']['showSuggestionHighlights']&&_0x46ddc6['stop']();},{'priority':'high'});}}class mt extends _0x1f92b9{['afterInit'](){const _0x482df3=this['editor'];_0x482df3['plugins']['has']('MentionEditing')&&_0x482df3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1f92b9{['afterInit'](){const _0x48106d=this['editor'];if(!_0x48106d['commands']['get']('insertMergeField'))return;_0x48106d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0xf975c1=_0x48106d['plugins']['get']('TrackChangesEditing'),_0x5bbc25=_0x48106d['locale'];_0xf975c1['descriptionFactory']['registerElementLabel']('mergeField',_0x828622=>o(_0x5bbc25,'ELEMENT_MERGE_FIELD',_0x828622)),_0xf975c1['descriptionFactory']['registerDescriptionCallback'](_0x30f4fa=>{if('insertion'!=_0x30f4fa['type']&&'deletion'!=_0x30f4fa['type'])return;const _0x192fd4=_0x30f4fa['getContainedElement']();if(null==_0x192fd4)return;if(!_0x192fd4['is']('element','mergeField'))return;const _0x3a11a7=_0x48106d['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x192fd4['getAttribute']('id'));return'insertion'==_0x30f4fa['type']?{'type':'insertion','content':o(_0x5bbc25,'*Insert:*\x20%0','\x22'+_0x3a11a7+'\x22\x20'+o(_0x5bbc25,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5bbc25,'*Remove:*\x20%0','\x22'+_0x3a11a7+'\x22\x20'+o(_0x5bbc25,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1f92b9{['afterInit'](){const _0x228edf=this['editor'],_0x27134d=_0x228edf['plugins']['get']('TrackChangesEditing');_0x228edf['plugins']['has']('MultiLevelList')&&(_0x27134d['enableDefaultAttributesIntegration']('multiLevelList'),_0x27134d['registerBlockAttribute']('listMarkerStyle'),_0x27134d['descriptionFactory']['registerDescriptionCallback'](_0xbb57c8=>this['handleDescriptions'](_0xbb57c8)));}['handleDescriptions'](_0x599862){const _0x3e7364=this['editor']['locale'],{data:_0x139fe9}=_0x599862,_0x5ab6f1={'type':'format','content':''};if(_0x139fe9&&'listMarkerStyle'==_0x139fe9['key']){if(!_0x139fe9['oldValue'])return{'type':'format','content':o(_0x3e7364,'*Set\x20format:*\x20%0',o(_0x3e7364,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x139fe9['newValue']+')'};if(!_0x139fe9['newValue']){let _0x5702b1=_0x599862['head'];for(;_0x5702b1;){if(_0x5702b1['data']&&'listType'==_0x5702b1['data']['key']&&_0x5702b1['data']['newValue'])return _0x5ab6f1;_0x5702b1=_0x5702b1['next'];}return{'type':'format','content':o(_0x3e7364,'*Remove\x20format:*\x20%0',o(_0x3e7364,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x139fe9['oldValue']+')'};}}}}class kt extends _0x1f92b9{['afterInit'](){const _0x2387ff=this['editor'];if(!_0x2387ff['plugins']['has']('PageBreakEditing'))return;_0x2387ff['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x277052=_0x2387ff['plugins']['get']('TrackChangesEditing'),_0x14e0ab=_0x2387ff['locale'];_0x277052['descriptionFactory']['registerElementLabel']('pageBreak',_0x7ecbe2=>o(_0x14e0ab,'ELEMENT_PAGE_BREAK',_0x7ecbe2));}}class bt extends _0x1f92b9{['afterInit'](){const _0x291e65=this['editor'];if(!_0x291e65['plugins']['has']('Paragraph'))return;const _0x43a8e6=_0x291e65['locale'],_0xee59fc=_0x291e65['plugins']['get']('TrackChangesEditing');_0xee59fc['descriptionFactory']['registerElementLabel']('paragraph',_0x3b81b1=>o(_0x43a8e6,'ELEMENT_PARAGRAPH',_0x3b81b1)),_0xee59fc['enableDefaultAttributesIntegration']('paragraph'),_0xee59fc['enableCommand']('insertParagraph'),_0x291e65['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x291e65),{'priority':'highest'}),_0x291e65['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37fc14,_0x296f24,_0xfbddc1)=>{_0xfbddc1['options']['showSuggestionHighlights']&&nr(_0x291e65,{'showActiveMarker':!0x1})(_0x37fc14,_0x296f24,_0xfbddc1);},{'priority':'highest'});const _0x44818d=_0xee59fc['descriptionFactory'];_0x44818d['registerDescriptionCallback'](_0x57a5ae=>{if('insertion'!==_0x57a5ae['type'])return;const {start:_0x4c737d,end:_0x4750dd}=_0x57a5ae['getFirstRange']();if(!_0x4c737d['isTouching'](_0x4750dd)||!_0x4c737d['nodeAfter'])return;const _0x311088=_0x291e65['model']['schema'],_0x272423=_0x4c737d['nodeAfter'];return _0x311088['isBlock'](_0x272423)&&!_0x311088['isLimit'](_0x272423)&&_0x311088['checkChild'](_0x272423,'$text')?{'type':'insertion','content':o(_0x43a8e6,'*Insert:*\x20%0',_0x44818d['getItemLabel'](_0x272423,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c8c64=this['editor'],_0x547eb2=_0x5c8c64['locale'];_0x5c8c64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e01f0=>{if('formatBlock'!=_0x1e01f0['type'])return;const {data:_0x4ddef9}=_0x1e01f0;return _0x4ddef9&&'paragraph'==_0x4ddef9['commandName']?{'type':'format','content':o(_0x547eb2,'*Change\x20to:*\x20%0',o(_0x547eb2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xb8a17c,{showActiveMarker:_0x2f0b36=!0x0}={}){return(_0x23495e,_0x1e4fcd,_0x31c13f)=>{const _0x4a85d7=_0xb8a17c['plugins']['get']('TrackChangesEditing'),_0x20c7c2=_0x1e4fcd['markerRange']['start'],_0x45824e=_0x1e4fcd['markerRange']['end'],_0x5667f0=_0xb8a17c['model']['schema'];if(!_0x20c7c2['isTouching'](_0x45824e)||!_0x20c7c2['nodeAfter'])return;const _0x33647d=_0x20c7c2['nodeAfter'];if(_0x5667f0['isBlock'](_0x33647d)&&!_0x5667f0['isLimit'](_0x33647d)&&_0x5667f0['checkChild'](_0x33647d,'$text')){if(!_0x31c13f['consumable']['consume'](_0x1e4fcd['markerRange'],_0x23495e['name']))return;const _0x5b74c3=_0x31c13f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xe058f6=_0x31c13f['mapper']['toViewPosition'](_0x45824e);_0x2f0b36&&_0x4a85d7['activeMarkers']['includes'](_0x1e4fcd['markerName'])&&_0x31c13f['writer']['addClass']('ck-suggestion-marker--active',_0x5b74c3),_0x31c13f['writer']['insert'](_0xe058f6,_0x5b74c3),_0x31c13f['mapper']['bindElementToMarker'](_0x5b74c3,_0x1e4fcd['markerName']);}};}class wt extends _0x1f92b9{['afterInit'](){const _0x36b2e3=this['editor'];if(!_0x36b2e3['plugins']['has']('RemoveFormatEditing'))return;_0x36b2e3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325c92=this['editor'];_0x325c92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8d52=>{if('formatBlock'!=_0x4f8d52['type']&&'formatInline'!=_0x4f8d52['type'])return;const {data:_0x2f799b}=_0x4f8d52;return _0x2f799b&&'removeFormat'==_0x2f799b['commandName']?{'type':'format','content':o(_0x325c92['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1f92b9{['afterInit'](){const _0x18ca2f=this['editor'];if(!_0x18ca2f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x16a3b1=_0x18ca2f['plugins']['get']('TrackChangesEditing');_0x16a3b1['enableCommand']('goToPreviousRestrictedEditingException'),_0x16a3b1['enableCommand']('goToNextRestrictedEditingException');const _0x441fa5=_0x18ca2f['plugins']['get']('RestrictedEditingModeEditing');_0x441fa5['enableCommand']('trackChanges'),_0x441fa5['enableCommand']('acceptSuggestion'),_0x441fa5['enableCommand']('discardSuggestion'),_0x441fa5['enableCommand']('acceptAllSuggestions'),_0x441fa5['enableCommand']('discardAllSuggestions'),_0x441fa5['enableCommand']('acceptSelectedSuggestions'),_0x441fa5['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1f92b9{static get['requires'](){return[_0x3c8a67];}['init'](){const _0x504d45=this['editor'],_0x461054=_0x504d45['plugins']['get']('TrackChangesEditing');_0x461054['enableCommand']('shiftEnter'),_0x504d45['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x504d45),{'priority':'high'}),_0x504d45['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x504d45),{'priority':'high'}),_0x504d45['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59aa20,_0x19a0ab,_0x43a549)=>{_0x43a549['options']['showSuggestionHighlights']&&ge(_0x504d45,{'showActiveMarker':!0x1})(_0x59aa20,_0x19a0ab,_0x43a549);}),_0x461054['descriptionFactory']['registerElementLabel']('softBreak',_0x19c510=>o(_0x504d45['locale'],'ELEMENT_LINE_BREAK',_0x19c510));}}function ge(_0x1e0dba,{showActiveMarker:_0x507aef=!0x0}={}){return(_0x2a0c10,_0x4b226c,_0x38c067)=>{const _0x4579fd=_0x1e0dba['plugins']['get']('TrackChangesEditing');if(!_0x38c067['consumable']['test'](_0x4b226c['markerRange'],_0x2a0c10['name']))return;const _0x5e04b6=_0x1e0dba['model'];for(const _0x2bbb05 of _0x4b226c['markerRange']['getItems']()){if(!_0x2bbb05['is']('element','softBreak'))continue;const _0x71dd15='deletion'==_0x4b226c['markerName']['split'](':')[0x1]?'merge':'split',_0x4b0ef1=_0x38c067['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x71dd15}),_0x157aff=_0x38c067['mapper']['toViewPosition'](_0x5e04b6['createPositionBefore'](_0x2bbb05));_0x507aef&&_0x4579fd['activeMarkers']['includes'](_0x4b226c['markerName'])&&_0x38c067['writer']['addClass']('ck-suggestion-marker--active',_0x4b0ef1),_0x38c067['writer']['insert'](_0x157aff,_0x4b0ef1),_0x38c067['mapper']['bindElementToMarker'](_0x4b0ef1,_0x4b226c['markerName']);}};}class St extends _0x1f92b9{['afterInit'](){const _0x501891=this['editor'],_0x559e26=_0x501891['model'],_0x20869a=_0x501891['locale'];if(!_0x501891['plugins']['has']('StandardEditingModeEditing'))return;const _0xabe211=_0x501891['plugins']['get']('TrackChangesEditing'),_0x352249='restrictedEditingException',_0x334ddf=_0x501891['commands']['get'](_0x352249);_0xabe211['enableCommand'](_0x352249,(_0x45fddb,_0x41a8f6={})=>{const _0x15b5d5=_0x559e26['document']['selection'];if(_0x15b5d5['isCollapsed'])return void _0x45fddb(_0x41a8f6);const _0xe1895e=void 0x0!==_0x41a8f6['forceValue']?_0x41a8f6['forceValue']:!_0x334ddf['value'];_0x559e26['change'](()=>{const _0x59414d=Array['from'](_0x15b5d5['getRanges']());for(const _0x4d38af of _0x59414d){const _0x2db003=_0xe1895e?[_0x4d38af]:io(_0x352249,_0x4d38af,_0x559e26);for(const _0x12138e of _0x2db003)_0xabe211['markInlineFormat'](_0x12138e,{'commandName':_0x352249,'commandParams':[{'forceValue':_0xe1895e}]});}});}),_0xabe211['descriptionFactory']['registerDescriptionCallback'](_0x4cbc9a=>{if('formatBlock'!=_0x4cbc9a['type']&&'formatInline'!=_0x4cbc9a['type'])return;const {data:_0x2af49e}=_0x4cbc9a;return _0x2af49e&&_0x2af49e['commandName']==_0x352249?_0x2af49e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20869a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x20869a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1f92b9{['afterInit'](){const _0x290301=this['editor'];if(!_0x290301['plugins']['has']('Style')||!_0x290301['plugins']['has']('DataSchema'))return;const _0x4cb59c=_0x290301['plugins']['get']('TrackChangesEditing'),_0x36a102=_0x290301['locale'],_0x474eb2=_0x290301['config']['get']('style')||{},_0x3af49c=_0x290301['plugins']['get']('GeneralHtmlSupport'),_0xd03003=_0x290301['plugins']['get']('StyleUtils')['normalizeConfig'](_0x290301['plugins']['get']('DataSchema'),_0x474eb2['definitions']);_0x4cb59c['enableDefaultAttributesIntegration']('style');const _0x58ffd0=new Set();for(const _0x3e05f5 of _0xd03003['block']){const _0x44ec21=_0x3af49c['getGhsAttributeNameForElement'](_0x3e05f5['element']);_0x58ffd0['add'](_0x44ec21);}const _0x2fb785=new Set();for(const _0x32d92f of _0xd03003['inline']){const _0xb866fa=_0x3af49c['getGhsAttributeNameForElement'](_0x32d92f['element']);_0x2fb785['add'](_0xb866fa);for(const _0x52469f of _0x32d92f['ghsAttributes'])_0x2fb785['add'](_0x52469f);}for(const _0x3367a9 of _0x58ffd0)_0x4cb59c['registerBlockAttribute'](_0x3367a9),_0x4cb59c['descriptionFactory']['registerAttributeLabel'](_0x3367a9,o(_0x36a102,'FORMAT_STYLE'));for(const _0x5f4901 of _0x2fb785)_0x4cb59c['registerInlineAttribute'](_0x5f4901),_0x4cb59c['descriptionFactory']['registerAttributeLabel'](_0x5f4901,o(_0x36a102,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fb473=this['editor'],_0x44de2f=_0x3fb473['locale'];_0x3fb473['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4f5aa=>{if('formatBlock'!=_0xa4f5aa['type']&&'formatInline'!=_0xa4f5aa['type'])return;const {data:_0x327618}=_0xa4f5aa;return _0x327618&&'style'===_0x327618['commandName']?_0x327618['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44de2f,'*Set\x20format:*\x20%0',_0x327618['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x44de2f,'*Remove\x20format:*\x20%0',_0x327618['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1f92b9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x20eefc){super(_0x20eefc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2047a8=this['editor'],_0x52e7a0=_0x2047a8['model']['document']['selection'];if(!_0x2047a8['plugins']['has']('TableEditing'))return;const _0x27b72b=_0x2047a8['locale'],_0x2b1bfa=_0x2047a8['plugins']['get']('TrackChangesEditing'),_0x4e0f8b=_0x2047a8['plugins']['get']('TableUtils');_0x2b1bfa['descriptionFactory']['registerElementLabel']('table',_0x33cd95=>o(_0x27b72b,'ELEMENT_TABLE',_0x33cd95)),this['_setupColumnsRowsFixing'](),_0x2b1bfa['enableCommand']('insertTable'),_0x2b1bfa['enableCommand']('selectTableRow'),_0x2b1bfa['enableCommand']('selectTableColumn');for(const _0x882af0 of['insertTableRowAbove','insertTableRowBelow']){const _0x74b10e=_0x2047a8['commands']['get'](_0x882af0);_0x2b1bfa['enableCommand'](_0x882af0,_0x504726=>{_0x2047a8['model']['change'](_0x1ef7d0=>{_0x504726();const _0x21e12f='above'===_0x74b10e['order'],_0x18982a=_0x4e0f8b['getSelectionAffectedTableCells'](_0x52e7a0),_0x1df828=_0x4e0f8b['getRowIndexes'](_0x18982a),_0x181b11=_0x21e12f?_0x1df828['first']-0x1:_0x1df828['last']+0x1,_0x3af1b3=_0x18982a[0x0]['findAncestor']('table'),_0x591d14=_0x4e0f8b['createTableWalker'](_0x3af1b3,{'startRow':_0x181b11,'endRow':_0x181b11}),_0x142462=Array['from'](_0x591d14)['map'](_0x12d276=>_0x1ef7d0['createRangeOn'](_0x12d276['cell']));_0x2b1bfa['markMultiRangeInsertion'](_0x142462,'tableRow');});});}for(const _0x25d050 of['insertTableColumnLeft','insertTableColumnRight']){const _0x50391a=_0x2047a8['commands']['get'](_0x25d050);_0x2b1bfa['enableCommand'](_0x25d050,_0x585f98=>{_0x2047a8['model']['change'](_0x155d51=>{_0x585f98();const _0x47ba25='left'===_0x50391a['order'],_0x586be7=_0x4e0f8b['getSelectionAffectedTableCells'](_0x52e7a0),_0x4a4fae=_0x4e0f8b['getColumnIndexes'](_0x586be7),_0x1d92fb=_0x47ba25?_0x4a4fae['first']-0x1:_0x4a4fae['last']+0x1,_0xc228f0=_0x586be7[0x0]['findAncestor']('table'),_0x4e03a0=_0x4e0f8b['createTableWalker'](_0xc228f0,{'startRow':0x0,'column':_0x1d92fb,'includeAllSlots':!0x1}),_0x26ace9=Array['from'](_0x4e03a0)['map'](_0x3ea334=>_0x155d51['createRangeOn'](_0x3ea334['cell']));_0x2b1bfa['markMultiRangeInsertion'](_0x26ace9,'tableColumn');});});}for(const _0x5c5578 of['removeTableRow','removeTableColumn']){const _0x521c05=_0x5c5578['substr'](0xb),_0x45eb4f=_0x521c05['toLowerCase'](),_0x1e97f0=_0x45eb4f['substr'](0x0,0x3)+'span',_0x5f3896='table'+_0x521c05,_0x337cc8='min'+_0x521c05,_0x5202b2='max'+_0x521c05;_0x2b1bfa['enableCommand'](_0x5c5578,()=>{_0x2047a8['model']['change'](_0x4f2b43=>{const _0x27f1d4=_0x4e0f8b['getSelectionAffectedTableCells'](_0x52e7a0),_0x3ba6e4=_0x27f1d4[0x0]['findAncestor']('table');let _0x433fc7;if('removeTableRow'==_0x5c5578){const _0x23c4fa=_0x4e0f8b['getRowIndexes'](_0x27f1d4);_0x433fc7={'startRow':_0x23c4fa['first'],'endRow':_0x23c4fa['last'],'includeAllSlots':!0x0};}else{const _0x51ee9b=_0x4e0f8b['getColumnIndexes'](_0x27f1d4);_0x433fc7={'startColumn':_0x51ee9b['first'],'endColumn':_0x51ee9b['last'],'includeAllSlots':!0x0};}const _0x4ebeab=_0x4e0f8b['createTableWalker'](_0x3ba6e4,_0x433fc7),_0x220f6b=Array['from'](_0x4ebeab)['map'](({cell:_0x1bbb65})=>_0x1bbb65),_0x1e6cbc=Ee(_0x220f6b['filter'](_0x40f954=>_0x40f954['hasAttribute'](_0x1e97f0))),_0x125f27=Ee(_0x220f6b['filter'](_0x24bf5e=>!_0x24bf5e['hasAttribute'](_0x1e97f0)))['map'](_0x132c91=>_0x4f2b43['createRangeOn'](_0x132c91)),_0x19a0e7=_0x2b1bfa['markMultiRangeDeletion'](_0x125f27,_0x5f3896);if(_0x19a0e7&&('tableRow'==_0x19a0e7['subType']||'tableColumn'==_0x19a0e7['subType'])){const _0x914ece=this['_getSuggestionCoords'](_0x19a0e7);for(const _0x277b99 of _0x1e6cbc){const _0x11f4b5=_0x4f2b43['createRangeOn'](_0x277b99),_0x76a058=_0x4e0f8b['getCellLocation'](_0x277b99),_0x30aa76=_0x277b99['getAttribute'](_0x1e97f0)-0x1,_0x25e552=_0x914ece[_0x337cc8],_0x4c9445=_0x914ece[_0x5202b2];_0x25e552<=_0x76a058[_0x45eb4f]&&_0x76a058[_0x45eb4f]+_0x30aa76<=_0x4c9445&&_0x19a0e7['addRange'](_0x11f4b5);}}});});}function _0x50edb7(_0x12cea7){const _0x3e566b=Array['from'](_0x52e7a0['getRanges']())['map'](_0x26976f=>_0x3dd19f['fromRange'](_0x26976f));_0x2047a8['model']['change'](_0xfd187f=>{const _0x373266=_0xfd187f['batch'];_0x12cea7=_0x12cea7['filter'](_0x1bdcbf=>'$graveyard'!=_0x1bdcbf['root']['rootName']),_0xfd187f['setSelection'](_0x12cea7),_0x2047a8['commands']['get']('removeTableRow')['refresh'](),_0x2047a8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2047a8['model']['enqueueChange'](()=>{_0x2047a8['model']['enqueueChange'](_0x373266,_0x5ea7d0=>{const _0x45a4ee=_0x3e566b['filter'](_0x329854=>'$graveyard'!=_0x329854['root']['rootName']);_0x45a4ee['length']>0x0&&_0x5ea7d0['setSelection'](_0x45a4ee);for(const _0x2f2afd of _0x3e566b)_0x2f2afd['detach']();});});});}function _0x444e45(_0x2f3c81){_0x2047a8['model']['change'](_0xe3a9a0=>{const _0x5f34fa=Array['from'](_0x52e7a0['getRanges']())['map'](_0x27ee36=>_0x3dd19f['fromRange'](_0x27ee36)),_0x4d2069=[];for(const _0x13f9c5 of _0x2f3c81)for(const _0x1ac1bc of _0x13f9c5['getItems']({'shallow':!0x0}))_0x4d2069['push'](_0x1ac1bc);for(const _0x97955 of _0x4d2069)'$graveyard'!=_0x97955['root']['rootName']&&(_0xe3a9a0['setSelection'](_0xe3a9a0['createPositionAt'](_0x97955,0x0)),_0x2047a8['commands']['get']('removeTableColumn')['refresh'](),_0x2047a8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e69a0=_0x5f34fa['filter'](_0x25b953=>'$graveyard'!=_0x25b953['root']['rootName']);_0x5e69a0['length']>0x0&&_0xe3a9a0['setSelection'](_0x5e69a0);for(const _0x1b3af8 of _0x5f34fa)_0x1b3af8['detach']();});}function _0x2848d6(_0x2ccdde,_0x1dae40){return _0x1dae40['every'](_0x2e879c=>_0x2ccdde['some'](_0x49774a=>_0x49774a['end']['isEqual'](_0x2e879c['start'])||_0x2e879c['end']['isEqual'](_0x49774a['start'])));}function _0x5a9a07(_0x3a02ca,_0x1675cb){return!_0x3a02ca['some'](_0x37b651=>_0x1675cb['some'](_0x23bd15=>_0x37b651['isIntersecting'](_0x23bd15)))&&_0x3a02ca['some'](_0x26daab=>_0x1675cb['some'](_0x1698db=>_0x26daab['end']['isTouching'](_0x1698db['start'])));}_0x2047a8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe6b05f,_0x387d5e,_0xf8e509)=>{if(!_0xf8e509['options']['showSuggestionHighlights'])return;const _0x11d435=_0x387d5e['item'];if(!_0x11d435)return;const _0x243223=_0xf8e509['mapper']['toViewElement'](_0x11d435);function _0x11ebc8(_0xcc5b8a){return Array['isArray'](_0xcc5b8a)?_0xcc5b8a:[_0xcc5b8a];}_0x243223&&'tableCell'===_0x11d435['name']&&_0x350305(_0x243223,_0xf8e509['writer'],(_0xf6f994,_0x2d74d0,_0x212ff9)=>_0x212ff9['addClass'](_0x11ebc8(_0x2d74d0['classes']),_0xf6f994),(_0x594568,_0x4f39f3,_0xb46eef)=>_0xb46eef['removeClass'](_0x11ebc8(_0x4f39f3['classes']),_0x594568));},{'priority':'highest'}),_0x2b1bfa['descriptionFactory']['registerDescriptionCallback'](_0x391b92=>{if('insertion'!=_0x391b92['type']&&'deletion'!=_0x391b92['type'])return;const _0xba81ca=_0x391b92['getContainedElement']();if(null!=_0xba81ca&&_0xba81ca['is']('element','table')){if('insertion'==_0x391b92['type']){const _0x15c271=_0x391b92['getItems']()['filter'](_0x519065=>_0x519065['is']('$textProxy'))['map'](_0x1e30ac=>_0x1e30ac['data']);if(_0x15c271['length'])return{'type':'insertion','content':o(_0x27b72b,'*Insert:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15c271['join']('\x20')+'\x22'))};}if('deletion'==_0x391b92['type']){const _0x503000=_0x391b92['getItems']()['filter'](_0x3f5602=>_0x3f5602['is']('$textProxy'))['map'](_0x5c8ca7=>_0x5c8ca7['data']);if(_0x503000['length'])return{'type':'deletion','content':o(_0x27b72b,'*Remove:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x503000['join']('\x20')+'\x22'))};}}}),_0x2b1bfa['descriptionFactory']['registerDescriptionCallback'](_0x13d1e3=>{if('tableRow'==_0x13d1e3['subType']){const _0x2df647=_0x13d1e3['getItems']()['filter'](_0x4cbd17=>_0x4cbd17['is']('$textProxy'))['map'](_0x1af003=>_0x1af003['data']),_0x1e6279=this['_getSuggestionCoords'](_0x13d1e3),_0x4a99cb=_0x1e6279['maxRow']-_0x1e6279['minRow']+0x1;if('insertion'==_0x13d1e3['type'])return _0x2df647['length']?{'type':'insertion','content':o(_0x27b72b,'*Insert:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a99cb,'\x22'+_0x2df647['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x27b72b,'*Insert:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_ROW',_0x4a99cb))};if('deletion'==_0x13d1e3['type'])return _0x2df647['length']?{'type':'deletion','content':o(_0x27b72b,'*Remove:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a99cb,'\x22'+_0x2df647['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x27b72b,'*Remove:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_ROW',_0x4a99cb))};}if('tableColumn'==_0x13d1e3['subType']){const _0x2f2e9f=_0x13d1e3['getItems']()['filter'](_0x45f8a5=>_0x45f8a5['is']('$textProxy'))['map'](_0x4f8831=>_0x4f8831['data']),_0x4aa1cf=this['_getSuggestionCoords'](_0x13d1e3),_0x251ea0=_0x4aa1cf['maxColumn']-_0x4aa1cf['minColumn']+0x1;if('insertion'==_0x13d1e3['type'])return _0x2f2e9f['length']?{'type':'insertion','content':o(_0x27b72b,'*Insert:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x251ea0,'\x22'+_0x2f2e9f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x27b72b,'*Insert:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_COLUMN',_0x251ea0))};if('deletion'==_0x13d1e3['type'])return _0x2f2e9f['length']?{'type':'deletion','content':o(_0x27b72b,'*Remove:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x251ea0,'\x22'+_0x2f2e9f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x27b72b,'*Remove:*\x20%0',o(_0x27b72b,'ELEMENT_TABLE_COLUMN',_0x251ea0))};}}),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x50edb7),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x50edb7),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x444e45),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x444e45),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2848d6),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2848d6),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5a9a07),_0x2b1bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5a9a07);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5beb7b=this['editor'],_0x6e474a=_0x5beb7b['model']['document']['selection'];return(_0xa7a5b6,_0x2fb03b)=>{_0x5beb7b['model']['change'](_0x20253e=>{const {commandName:_0x4970fa,commandParams:_0xddbe0e}=_0x2fb03b;let _0x3536c6=_0xa7a5b6[0x0]['end']['nodeBefore'];_0xddbe0e&&_0xddbe0e[0x0]&&!0x1===_0xddbe0e[0x0]['forceValue']&&(_0x3536c6=_0xa7a5b6[0x0]['start']['nodeAfter']);const _0x52547a=_0x20253e['createRangeIn'](_0x3536c6);if('$graveyard'==_0x52547a['root']['rootName'])return;const _0x45bf57=Array['from'](_0x6e474a['getRanges']())['map'](_0x106b97=>_0x3dd19f['fromRange'](_0x106b97));_0x20253e['setSelection'](_0x52547a),_0x5beb7b['commands']['get'](_0x4970fa)['refresh'](),_0xddbe0e['push']({'forceDefaultExecution':!0x0}),_0x5beb7b['execute'](_0x4970fa,..._0xddbe0e);const _0x12ebfd=_0x45bf57['filter'](_0x38d596=>'$graveyard'!=_0x38d596['root']['rootName']);_0x12ebfd['length']>0x0&&_0x20253e['setSelection'](_0x12ebfd);for(const _0x3395b8 of _0x45bf57)_0x3395b8['detach']();});};}['_getCoordsForCells'](_0x2657da){const _0x4b646d=this['editor']['plugins']['get']('TableUtils');let _0x3c7e1e=Number['MAX_SAFE_INTEGER'],_0xae89a1=Number['MIN_SAFE_INTEGER'],_0x59a091=Number['MAX_SAFE_INTEGER'],_0xeb5fb8=Number['MIN_SAFE_INTEGER'];for(const _0x3e4927 of _0x2657da){if('$graveyard'==_0x3e4927['root']['rootName'])continue;const {row:_0x5bf6ff,column:_0x303ce4}=_0x4b646d['getCellLocation'](_0x3e4927),_0x10109a=_0x3e4927['hasAttribute']('rowspan')?_0x3e4927['getAttribute']('rowspan')-0x1:0x0,_0x4f9509=_0x3e4927['hasAttribute']('colspan')?_0x3e4927['getAttribute']('colspan')-0x1:0x0;_0x3c7e1e=_0x5bf6ff<_0x3c7e1e?_0x5bf6ff:_0x3c7e1e,_0xae89a1=_0x5bf6ff+_0x10109a>_0xae89a1?_0x5bf6ff+_0x10109a:_0xae89a1,_0x59a091=_0x303ce4<_0x59a091?_0x303ce4:_0x59a091,_0xeb5fb8=_0x303ce4+_0x4f9509>_0xeb5fb8?_0x303ce4+_0x4f9509:_0xeb5fb8;}return{'minRow':_0x3c7e1e,'maxRow':_0xae89a1,'minColumn':_0x59a091,'maxColumn':_0xeb5fb8};}['_setupColumnsRowsFixing'](){const _0x4a4946=this['editor'],_0x34aca4=_0x4a4946['plugins']['get']('TrackChangesEditing'),_0x22df5e=_0x4a4946['plugins']['get']('TableUtils');_0x4a4946['model']['document']['on']('change:data',()=>{const _0x481cb2=Array['from'](_0x4a4946['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29bc59,data:_0x1d9bb7}of _0x481cb2){const {group:_0x20b732,id:_0x266f17,subType:_0x3184f8}=_0x34aca4['_splitMarkerName'](_0x29bc59);if('suggestion'!=_0x20b732)continue;if(null!=_0x1d9bb7['oldRange'])continue;const _0x5c6fc3=_0x34aca4['getSuggestion'](_0x266f17);this['_tablePostFixingSubtypes']['includes'](_0x3184f8)&&this['_tableSuggestions']['add'](_0x5c6fc3);}},{'priority':'low'});const _0x1d06b0=(_0xc9426b,_0x2570f7)=>{let _0xfa2b4d=!0x1;const _0x39285e=_0x2570f7['createRangeOn'](_0xc9426b),_0x44c4d9=_0xc9426b['findAncestor']('table'),_0x919b84=_0x22df5e['getCellLocation'](_0xc9426b);for(const _0x28cd5a of this['_tableSuggestions']){const _0x409409=_0x28cd5a['subType'],_0x5b8e43=_0x409409['startsWith']('tablePaste'),_0x52733a=_0x409409['substr'](_0x5b8e43?0xa:0x5),_0x38a2c9=_0x52733a['toLowerCase'](),_0x3e48ec=_0x38a2c9['substr'](0x0,0x3)+'span',_0x186289='min'+_0x52733a,_0x4e57c4='max'+_0x52733a;if(!_0x28cd5a['isInContent'])continue;if(_0x44c4d9!=_0x28cd5a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28cd5a['isIntersectingWithRange'](_0x39285e))continue;const _0x376329=_0xc9426b['hasAttribute'](_0x3e48ec)?_0xc9426b['getAttribute'](_0x3e48ec)-0x1:0x0,_0x462b5e=this['_getSuggestionCoords'](_0x28cd5a),_0x38b5f2=_0x462b5e[_0x186289],_0x31eebf=_0x462b5e[_0x4e57c4];_0x38b5f2<=_0x919b84[_0x38a2c9]&&_0x919b84[_0x38a2c9]+_0x376329<=_0x31eebf&&(_0x28cd5a['addRange'](_0x39285e),_0xfa2b4d=!0x0);}return _0xfa2b4d;};_0x4a4946['model']['document']['registerPostFixer'](_0x3b9ea1=>{let _0x7f96f=!0x1;for(const _0x55680e of _0x4a4946['model']['document']['differ']['getChanges']())if('insert'==_0x55680e['type']){if('tableRow'==_0x55680e['name']){for(const _0x272461 of _0x55680e['position']['nodeAfter']['getChildren']())_0x7f96f=_0x7f96f||_0x1d06b0(_0x272461,_0x3b9ea1);}else'tableCell'==_0x55680e['name']&&(_0x7f96f=_0x7f96f||_0x1d06b0(_0x55680e['position']['nodeAfter'],_0x3b9ea1));}return _0x7f96f;});}['_getSuggestionCoords'](_0x76c1d1){return this['_getCoordsForCells'](_0x76c1d1['getRanges']()['map'](_0xea2f87=>_0xea2f87['start']['nodeAfter']));}}function Ee(_0x1ffc6a){return Array['from'](new Set(_0x1ffc6a)['values']());}class vt extends _0x1f92b9{static get['requires'](){return[It];}['afterInit'](){const _0x508d60=this['editor'],_0x3df293=_0x508d60['model']['document']['selection'],_0x34681d=_0x508d60['locale'];if(!_0x508d60['plugins']['has']('TableEditing'))return;const _0x42b22a=_0x508d60['plugins']['get']('TrackChangesEditing'),_0x5215e9=_0x508d60['plugins']['get']('TableUtils'),_0x221577=_0x508d60['plugins']['get'](It);_0x221577['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x42b22a['enableCommand']('mergeTableCells',()=>{const _0x106bd0=_0x5215e9['getSelectionAffectedTableCells'](_0x508d60['model']['document']['selection']);_0x508d60['model']['change'](()=>{_0x42b22a['markMultiRangeBlockFormat'](_0x106bd0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x508d60['commands']['get']('mergeTableCells')['on']('execute',(_0x298d6a,_0x1dccd9)=>{_0x508d60['commands']['get']('trackChanges')['value']&&(_0x1dccd9['length']>0x0&&_0x1dccd9[_0x1dccd9['length']-0x1]&&_0x1dccd9[_0x1dccd9['length']-0x1]['forceDefaultExecution']||_0x42b22a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x298d6a['stop']());},{'priority':'highest'});for(const _0x35a836 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17741f=_0x508d60['commands']['get'](_0x35a836);_0x42b22a['enableCommand'](_0x35a836,()=>{const _0xc3a2dd=_0x508d60['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a1a22=>_0x3a1a22['is']('element','tableCell')),_0x374354=_0x17741f['value'];_0x508d60['model']['change'](()=>{_0x42b22a['markMultiRangeBlockFormat']([_0xc3a2dd,_0x374354],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xe44116 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x380147=_0x508d60['commands']['get'](_0xe44116);_0x42b22a['enableCommand'](_0xe44116,()=>{const _0x5a7504=_0x5215e9['getSelectionAffectedTableCells'](_0x508d60['model']['document']['selection'])[0x0],_0x239521=_0x5a7504['findAncestor']('table'),{column:_0x4923ee,row:_0x547e60}=_0x5215e9['getCellLocation'](_0x5a7504);let _0x28e09c=[];if('horizontally'==_0x380147['direction']){const _0x56f8ad=_0x5215e9['createTableWalker'](_0x239521,{'startRow':_0x547e60,'endRow':_0x547e60,'includeAllSlots':!0x0});_0x28e09c=Array['from'](_0x56f8ad)['map'](_0x133645=>_0x133645['cell']);}else{const _0x52b80c=_0x5215e9['createTableWalker'](_0x239521,{'column':_0x4923ee,'includeAllSlots':!0x0});_0x28e09c=Array['from'](_0x52b80c)['map'](_0x11e691=>_0x11e691['cell']);}_0x508d60['model']['change'](_0x2f6adc=>{_0x42b22a['markBlockFormat'](_0x2f6adc['createRangeOn'](_0x5a7504),{'commandName':_0xe44116,'commandParams':[]},_0x28e09c,_0xe44116);});});}_0x42b22a['descriptionFactory']['registerDescriptionCallback'](_0x868140=>{if('formatBlock'!=_0x868140['type']&&'formatInline'!=_0x868140['type'])return;const {data:_0x76174f}=_0x868140;return _0x76174f&&'mergeTableCells'==_0x76174f['commandName']?{'type':'format','content':o(_0x34681d,'*Merge\x20cells*')}:void 0x0;}),_0x42b22a['descriptionFactory']['registerDescriptionCallback'](_0x3d5450=>{if('formatBlock'!=_0x3d5450['type']&&'formatInline'!=_0x3d5450['type'])return;const {data:_0x58b3c2}=_0x3d5450;return _0x58b3c2?'splitTableCellVertically'==_0x58b3c2['commandName']?{'type':'format','content':o(_0x34681d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x58b3c2['commandName']?{'type':'format','content':o(_0x34681d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5aeb2e=_0x221577['_acceptFormatSuggestionCallbackFactory']();for(const _0x585068 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x42b22a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x585068,'accept',_0x5aeb2e);for(const _0x363c86 of['splitTableCellVertically','splitTableCellHorizontally'])_0x42b22a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x363c86,'accept',_0x5aeb2e);_0x42b22a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x863399=>{_0x508d60['model']['change'](_0x4f75d7=>{const _0x52093a=Array['from'](_0x3df293['getRanges']())['map'](_0x4d6517=>_0x3dd19f['fromRange'](_0x4d6517));_0x4f75d7['setSelection'](_0x863399),_0x508d60['commands']['get']('mergeTableCells')['refresh'](),_0x508d60['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x34314e=_0x52093a['filter'](_0x3e120b=>'$graveyard'!=_0x3e120b['root']['rootName']);_0x34314e['length']>0x0&&_0x4f75d7['setSelection'](_0x34314e);for(const _0x19ef1f of _0x52093a)_0x19ef1f['detach']();});});for(const _0x57467b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a7484=_0x508d60['commands']['get'](_0x57467b);_0x3a7484['on']('set:isEnabled',(_0x5e30c3,_0x2f408c,_0x4a337c)=>{if(_0x4a337c){const _0x51e077=_0x508d60['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x309045=>_0x309045['is']('element','tableCell'));this['_areMergableCells'](_0x3a7484['value'],_0x51e077)||(_0x5e30c3['return']=!0x1,_0x5e30c3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x27136e=this['editor']['commands']['get']('mergeTableCells'),_0x46eba3=this['editor']['plugins']['get']('TableUtils');if(!_0x27136e['isEnabled'])return!0x1;const _0x8dfcc=_0x46eba3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f1a0b of _0x8dfcc)for(const _0xdd67c7 of _0x8dfcc)if(_0x4f1a0b!=_0xdd67c7&&!this['_areMergableCells'](_0x4f1a0b,_0xdd67c7))return!0x1;return!0x0;}['_areMergableCells'](_0x206319,_0x2bb185){const _0x3e5b58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x337665=this['editor']['model']['createRangeOn'](_0x206319),_0x4ea74d=this['editor']['model']['createRangeOn'](_0x2bb185),_0x1b6af0=new Set(),_0x3ce4e8=new Set();for(const _0x2f9ecf of _0x3e5b58['getSuggestions']())if(('insertion'==_0x2f9ecf['type']||'deletion'==_0x2f9ecf['type']||'mergeTableCells'==_0x2f9ecf['subType'])&&_0x2f9ecf['isInContent']){for(const _0x30b5eb of _0x2f9ecf['getRanges']())_0x30b5eb['containsRange'](_0x337665,!0x0)&&_0x1b6af0['add'](_0x2f9ecf['type']+':'+_0x2f9ecf['author']['id']),_0x30b5eb['containsRange'](_0x4ea74d,!0x0)&&_0x3ce4e8['add'](_0x2f9ecf['type']+':'+_0x2f9ecf['author']['id']);}if(_0x1b6af0['size']!=_0x3ce4e8['size'])return!0x1;for(const _0x222b61 of _0x1b6af0)if(!_0x3ce4e8['has'](_0x222b61))return!0x1;return!0x0;}}class Ct extends _0x1f92b9{static get['requires'](){return[It];}['afterInit'](){const _0x1ac322=this['editor'];if(!_0x1ac322['plugins']['has']('TableEditing'))return;const _0x533cda=_0x1ac322['locale'],_0x395f01=_0x1ac322['plugins']['get']('TrackChangesEditing');_0x395f01['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x395f01['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x395f01['registerBlockAttribute']('headingRows'),_0x395f01['registerBlockAttribute']('headingColumns'),_0x395f01['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x533cda,'FORMAT_HEADER_ROW')),_0x395f01['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x533cda,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cacd8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ae3b7=this['editor']['plugins']['get']('TableUtils'),_0x1aad79=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0xe4d0de({showActiveMarker:_0x219604=!0x0,setDataAttribute:_0x41642a=!0x0}={}){return(_0x17dc18,_0x405dd2,_0xcc7baf)=>{const {type:_0x24763d,id:_0x366761}=_0x1cacd8['_splitMarkerName'](_0x405dd2['markerName']),_0x31edff=_0x1cacd8['getSuggestion'](_0x366761),_0x4fcbf4=_0x31edff['data'];if('formatBlock'!=_0x31edff['type']||!_0x4fcbf4||'setTableColumnHeader'!=_0x4fcbf4['commandName'])return;if(_0x405dd2['item'])return void _0x17dc18['stop']();if(!_0xcc7baf['consumable']['consume'](_0x405dd2['markerRange'],_0x17dc18['name']))return;const _0x55f5bb=_0x405dd2['markerRange']['start']['nodeAfter'],_0xe871ad=_0x405dd2['markerRange']['end']['nodeBefore'],_0x52f21a=_0x55f5bb['parent']['parent'],{column:_0x30d2d5}=_0x4ae3b7['getCellLocation'](_0x55f5bb),{column:_0x33f643}=_0x4ae3b7['getCellLocation'](_0xe871ad);for(let _0x2d2315=_0x30d2d5;_0x2d2315<=_0x33f643;_0x2d2315++){const _0x40a9b4=_0x4ae3b7['createTableWalker'](_0x52f21a,{'column':_0x2d2315,'includeAllSlots':!0x1});for(const _0x443059 of _0x40a9b4){const _0x165ed9=_0x443059['cell'],_0x5e23ef=_0xcc7baf['mapper']['toViewElement'](_0x165ed9);_0xcc7baf['writer']['addClass']('ck-suggestion-marker-'+_0x24763d,_0x5e23ef),_0x41642a&&_0xcc7baf['writer']['setAttribute']('data-suggestion',_0x366761,_0x5e23ef),_0xcc7baf['mapper']['bindElementToMarker'](_0x5e23ef,_0x405dd2['markerName']),_0x219604&&(_0x1cacd8['activeMarkers']['includes'](_0x405dd2['markerName'])?_0xcc7baf['writer']['addClass']('ck-suggestion-marker--active',_0x5e23ef):_0xcc7baf['writer']['removeClass']('ck-suggestion-marker--active',_0x5e23ef));}}};}_0x1cacd8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1aad79),_0x1cacd8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1aad79),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xe4d0de(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xda87ef,_0xb35d00,_0x27b887)=>{_0x27b887['options']['showSuggestionHighlights']&&_0xe4d0de({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xda87ef,_0xb35d00,_0x27b887);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x53c3a9,_0x52b0d6,_0x280ce7)=>{const {type:_0x20e672,id:_0x38eb2d}=_0x1cacd8['_splitMarkerName'](_0x52b0d6['markerName']),_0x39b271=_0x1cacd8['getSuggestion'](_0x38eb2d),_0x2b4f66=_0x39b271['data'];if('formatBlock'!=_0x39b271['type']||!_0x2b4f66||'setTableColumnHeader'!=_0x2b4f66['commandName'])return;const _0xd2426b=_0x280ce7['mapper']['markerNameToElements'](_0x52b0d6['markerName']);if(_0xd2426b){for(const _0x5626d7 of _0xd2426b)_0x280ce7['writer']['removeClass']('ck-suggestion-marker-'+_0x20e672,_0x5626d7),_0x280ce7['writer']['removeClass']('ck-suggestion-marker--active',_0x5626d7),_0x280ce7['writer']['removeAttribute']('data-suggestion',_0x5626d7),_0x280ce7['mapper']['unbindElementFromMarkerName'](_0x5626d7,_0x52b0d6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21fe7a=this['editor'],_0x18eb9c=_0x21fe7a['locale'];function _0x590fe8(_0x435db4){return{'type':'format','content':o(_0x18eb9c,'*Format:*\x20%0',_0x435db4)};}_0x21fe7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f7de8=>{if('formatBlock'!=_0x2f7de8['type'])return;const {data:_0x522fc2}=_0x2f7de8;if(_0x522fc2){if('setTableRowHeader'==_0x522fc2['commandName']){const _0x468255=_0x522fc2['commandParams'][0x0]['forceValue'];return _0x590fe8(o(_0x18eb9c,_0x468255?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x522fc2['commandName']){const _0x4b9dfb=_0x522fc2['commandParams'][0x0]['forceValue'];return _0x590fe8(o(_0x18eb9c,_0x4b9dfb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x1d09b7=>[_0x1d09b7,null]));class _t extends _0x1f92b9{static get['requires'](){return[It];}['afterInit'](){const _0x19ea8d=this['editor'];if(!_0x19ea8d['plugins']['has']('TableClipboard'))return;const _0x585d8e=_0x19ea8d['plugins']['get']('TrackChangesEditing'),_0x239e5a=_0x19ea8d['plugins']['get']('TableUtils'),_0x145ca3=_0x19ea8d['plugins']['get'](It),_0xbcfc38=_0x19ea8d['plugins']['get']('TableClipboard');_0x145ca3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x19ea8d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x19ea8d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4855a4=null;_0x19ea8d['model']['on']('insertContent',(_0x2ecf25,_0x203359)=>{const [_0x51c650,_0x4386f7]=_0x203359,_0x4bf9dd=_0x203359[_0x203359['length']-0x1];_0x4bf9dd&&_0x4bf9dd['forceDefaultExecution']||_0x585d8e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x26940c,_0x257f5a,_0x484ea8,_0x19be97,_0x477876){if(_0x257f5a&&!_0x257f5a['is']('documentSelection'))return!0x1;const _0x1a94f7=_0x477876['getTableIfOnlyTableInContent'](_0x26940c,_0x484ea8);if(!_0x1a94f7||!ke(_0x1a94f7,void 0x0,_0x19be97))return!0x1;const _0x18cf4a=_0x19be97['getSelectionAffectedTableCells'](_0x484ea8['document']['selection']);if(!_0x18cf4a['length'])return!0x1;const _0x221447=_0x18cf4a[0x0]['findAncestor']('table'),_0x5bdd0c=_0x19be97['getRowIndexes'](_0x18cf4a),_0x3225ec=_0x19be97['getColumnIndexes'](_0x18cf4a),_0x58fade={'startRow':_0x5bdd0c['first'],'endRow':_0x5bdd0c['last'],'startColumn':_0x3225ec['first'],'endColumn':_0x3225ec['last']};return 0x1==_0x18cf4a['length']&&(_0x58fade['endRow']+=_0x19be97['getRows'](_0x1a94f7)-0x1,_0x58fade['endColumn']+=_0x19be97['getColumns'](_0x1a94f7)-0x1),ke(_0x221447,_0x58fade,_0x19be97);}(_0x51c650,_0x4386f7,_0x19ea8d['model'],_0x239e5a,_0xbcfc38)&&(_0x2ecf25['stop'](),_0x4855a4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x19ea8d['model']['change'](()=>{_0x19ea8d['model']['insertContent'](_0x203359[0x0],_0x203359[0x1],_0x203359[0x2],{'forceDefaultExecution':!0x0});const _0x2cfde9=_0x39f5a3(),{rowInsertionRanges:_0x135276,columnInsertionRanges:_0x475c45,insertionRanges:_0x436df4,deletionRanges:_0x23d370,cells:_0x3d9efb}=_0x4855a4;_0x135276['length']&&_0x585d8e['markMultiRangeInsertion'](_0x135276,'tablePasteRow',{'tablePasteChainId':_0x2cfde9}),_0x475c45['length']&&_0x585d8e['markMultiRangeInsertion'](_0x475c45,'tablePasteColumn',{'tablePasteChainId':_0x2cfde9}),_0x436df4['length']&&(_0x585d8e['markMultiRangeInsertion'](_0x436df4,'tablePaste',{'tablePasteChainId':_0x2cfde9,'skipNestingCheck':!0x0}),_0x436df4['forEach'](_0x271f11=>_0x271f11['detach']?.())),_0x23d370['length']&&(_0x585d8e['markMultiRangeDeletion'](_0x23d370,'tablePaste',{'tablePasteChainId':_0x2cfde9,'skipNestingCheck':!0x0}),_0x23d370['forEach'](_0x5d874c=>_0x5d874c['detach']?.()));const _0x47f6a4=_0x585d8e['markMultiRangeBlockFormat'](_0x3d9efb['map'](({element:_0x1760b0})=>_0x1760b0),{'formatGroupId':_0x39f5a3()},[],'tablePasteCell',{'tablePasteChainId':_0x2cfde9});if(_0x47f6a4){const _0x22efc5=_0x47f6a4['getMarkers'](),_0xe568eb=[];for(const {element:_0x3c5ac3,attributes:_0x4c2098}of _0x3d9efb){if(!_0x4c2098)continue;const _0x18259f=_0x19ea8d['model']['createRangeOn'](_0x3c5ac3),_0x566c10=_0x22efc5['find'](_0xfd29c5=>_0xfd29c5['getRange']()['isEqual'](_0x18259f));_0x566c10&&_0xe568eb['push']([_0x566c10['name'],_0x4c2098]);}_0xe568eb['length']&&_0x47f6a4['setAttribute']('markerAttributes',Object['fromEntries'](_0xe568eb));}_0x4855a4=null;}));},{'priority':_0x5bfbc1['high']+0xa}),_0x19ea8d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x335398,_0x518e68)=>{const [_0x443afd,_0x2f227e,,_0x524767]=_0x518e68;if(!_0x4855a4)return;_0x335398['stop']();const _0x56e514=_0x443afd['cell'],_0x4df306=_0x2f227e,_0x1bed50=we(_0x56e514),_0x385755=we(_0x4df306);_0x335398['return']=_0x56e514;let _0x5db27b=null,_0x35fa01=null;if(_0x385755||_0x1bed50){if(_0x1bed50&&!_0x385755){_0x524767['remove'](_0x56e514['getChild'](0x0));for(const _0x3cd6f9 of Array['from'](_0x4df306['getChildren']()))_0x524767['insert'](_0x3cd6f9,_0x56e514,'end');const _0x45811e=_0x4855a4['rowInsertionIndexes']['includes'](_0x443afd['row']),_0x20ed58=_0x4855a4['columnInsertionIndexes']['includes'](_0x443afd['column']);_0x45811e||_0x20ed58||(_0x5db27b=_0x3dd19f['fromRange'](_0x524767['createRangeIn'](_0x56e514)));}else _0x385755&&!_0x1bed50&&(_0x35fa01=_0x524767['createRangeIn'](_0x56e514));}else{const _0x457289=_0x524767['createElement']('tableCellSuggestion'),_0x4f5dfa=_0x524767['createElement']('tableCellSuggestion');_0x524767['wrap'](_0x524767['createRangeIn'](_0x56e514),_0x4f5dfa),_0x524767['insert'](_0x457289,_0x56e514,0x0);for(const _0x584cea of Array['from'](_0x4df306['getChildren']()))_0x524767['insert'](_0x584cea,_0x457289,'end');_0x5db27b=_0x3dd19f['fromRange'](_0x524767['createRangeOn'](_0x457289)),_0x35fa01=_0x3dd19f['fromRange'](_0x524767['createRangeOn'](_0x4f5dfa));}const _0x3c0b84=Array['from'](_0x4df306['getAttributes']())['filter'](([_0x54ebc6])=>Ce['includes'](_0x54ebc6));_0x4855a4['cells']['push']({'element':_0x56e514,'attributes':_0x3c0b84['length']?Object['fromEntries'](_0x3c0b84):null}),_0x5db27b&&_0x4855a4['insertionRanges']['push'](_0x5db27b),_0x35fa01&&_0x4855a4['deletionRanges']['push'](_0x35fa01);},{'priority':'high'}),_0x239e5a['on']('insertColumns',(_0x2f8f5e,_0xd27bf3)=>{const [_0x306d43,_0x26b780={}]=_0xd27bf3;if(!_0x4855a4)return;const _0x2e6bdf=_0x26b780['at']||0x0,_0x1d8556=_0x26b780['columns']||0x1;_0x4855a4['columnInsertionIndexes']=new Array(_0x1d8556)['fill'](_0x2e6bdf)['map']((_0x2c118b,_0x4c7527)=>_0x2c118b+_0x4c7527);for(const {cell:_0xed3965}of _0x239e5a['createTableWalker'](_0x306d43,{'startColumn':_0x2e6bdf,'endColumn':_0x2e6bdf+_0x1d8556-0x1}))_0x4855a4['columnInsertionRanges']['push'](_0x19ea8d['model']['createRangeOn'](_0xed3965));},{'priority':'low'}),_0x239e5a['on']('insertRows',(_0x325532,_0x3ae744)=>{const [_0x53b106,_0x24e1c6={}]=_0x3ae744;if(!_0x4855a4)return;const _0x525b84=_0x24e1c6['at']||0x0,_0x541e83=_0x24e1c6['rows']||0x1;_0x4855a4['rowInsertionIndexes']=new Array(_0x541e83)['fill'](_0x525b84)['map']((_0x25140a,_0x58b33c)=>_0x25140a+_0x58b33c);for(const {cell:_0xbf052f}of _0x239e5a['createTableWalker'](_0x53b106,{'startRow':_0x525b84,'endRow':_0x525b84+_0x541e83-0x1}))_0x4855a4['rowInsertionRanges']['push'](_0x19ea8d['model']['createRangeOn'](_0xbf052f));},{'priority':'low'}),_0x585d8e['descriptionFactory']['registerDescriptionCallback'](_0x333c21=>{if(_0x333c21['subType']&&_0x333c21['subType']['startsWith']('tablePaste'))return _0x333c21['previous']?{}:{'type':'insertion','content':o(_0x19ea8d['locale'],'*Replace\x20table\x20cells*')};});const _0x447d7a=()=>!0x1;for(const _0x123646 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x585d8e['_suggestionFactory']['registerCustomCallback']('insertion',_0x123646,'join',_0x447d7a),_0x585d8e['_suggestionFactory']['registerCustomCallback']('deletion',_0x123646,'join',_0x447d7a),_0x585d8e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x123646,'join',_0x447d7a);_0x585d8e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x447d7a),_0x585d8e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58f2de,_0x54cf07,_0x12e458)=>{const _0x1e4859=_0x58f2de['map'](_0x42a827=>_0x42a827['getContainedElement']())['filter'](_0xeebe67=>_0xeebe67),_0x39e69a=new Map(_0x1e4859['map'](_0x46a17b=>[_0x46a17b,null]));if(_0x4855a4){for(const {element:_0x5d78a9,attributes:_0x48ebea}of _0x4855a4['cells'])_0x48ebea&&_0x39e69a['set'](_0x5d78a9,_0x48ebea);}else{if(_0x12e458&&_0x12e458['markerAttributes'])for(const [_0x6033cb,_0x10270b]of Object['entries'](_0x12e458['markerAttributes'])){const _0x3228bd=_0x19ea8d['model']['markers']['get'](_0x6033cb),_0x553109=_0x3228bd?_0x3228bd['getRange']()['getContainedElement']():null;_0x553109&&_0x39e69a['set'](_0x553109,_0x10270b);}}_0x19ea8d['model']['change'](_0x5629a8=>{for(const [_0x44e224,_0x1082ee]of _0x39e69a)_0x5629a8['setAttributes']({...Pe,..._0x1082ee},_0x44e224);});});const _0x297571=(_0x21d48e,_0x5a98ce)=>{_0x585d8e['_suggestionFactory']['registerCustomCallback'](_0x21d48e,'tablePaste',_0x5a98ce,(_0x355f1f,_0x438f42,_0x16926d)=>{_0x19ea8d['model']['change'](_0x1b45be=>{const _0x133f38=[];for(const _0x5065d8 of _0x355f1f){const _0x26bdfd=_0x5065d8['start']['nodeAfter'];_0x26bdfd['is']('element','tableCellSuggestion')&&_0x133f38['push'](_0x26bdfd);}_0x585d8e['_suggestionFactory']['getSuggestionCallback'](_0x21d48e,null,_0x5a98ce)(_0x355f1f,_0x438f42,_0x16926d);for(const _0x1a7367 of _0x133f38)'$graveyard'!=_0x1a7367['root']['rootName']&&_0x1b45be['unwrap'](_0x1a7367);});});};_0x297571('insertion','accept'),_0x297571('insertion','discard'),_0x297571('deletion','accept'),_0x297571('deletion','discard'),_0x585d8e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x40c240=>{const _0x347b82=_0x40c240['map'](_0x2eaa3e=>_0x2eaa3e['getContainedElement']()),_0xce6605=_0x347b82[0x0]['findAncestor']('table'),{minRow:_0x1068f9,maxRow:_0x514b0d}=_0x145ca3['_getCoordsForCells'](_0x347b82);_0x239e5a['removeRows'](_0xce6605,{'at':_0x1068f9,'rows':_0x514b0d-_0x1068f9+0x1});}),_0x585d8e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1bc291=>{const _0x19408f=_0x1bc291['map'](_0x7a8c1c=>_0x7a8c1c['getContainedElement']()),_0x14d357=_0x19408f[0x0]['findAncestor']('table'),{minColumn:_0x312ed7,maxColumn:_0x2e44c5}=_0x145ca3['_getCoordsForCells'](_0x19408f);_0x239e5a['removeColumns'](_0x14d357,{'at':_0x312ed7,'columns':_0x2e44c5-_0x312ed7+0x1});});const _0x5df03c=(_0x22b662,_0x134d4c)=>{if(!_0x134d4c['subType']||!_0x134d4c['subType']['startsWith']('tablePaste'))return;const _0x51db7d=_0x134d4c['attributes']['tablePasteChainId'],_0x4ac733=_0x585d8e['getSuggestions']()['filter'](_0x24da59=>_0x24da59['isInContent']&&_0x24da59['attributes']&&_0x24da59['attributes']['tablePasteChainId']==_0x51db7d);_0x4ac733['length']&&_0x134d4c['getAllAdjacentSuggestions']()['length']!=_0x4ac733['length']&&_0x4ac733['reduce']((_0x49d345,_0x53cc90)=>(_0x49d345['next']=_0x53cc90,_0x53cc90['previous']=_0x49d345,_0x53cc90));};function _0x31317e(_0x1e5ba9,_0x5ea712=!0x0){const {id:_0x2ccb62}=_0x585d8e['_splitMarkerName'](_0x1e5ba9['markerName']),_0x25a12a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2dd23e=_0x585d8e['activeMarkers']['includes'](_0x1e5ba9['markerName']);return _0x2dd23e&&_0x25a12a['push']('ck-suggestion-marker--active'),{'classes':_0x25a12a,'attributes':{'data-suggestion':_0x2ccb62},'priority':_0x2dd23e&&_0x5ea712?0xbc2:0xbb8};}_0x585d8e['on']('suggestionLoaded',_0x5df03c,{'priority':'high'}),_0x585d8e['on']('suggestionUnloaded',_0x5df03c,{'priority':'high'}),_0x19ea8d['model']['document']['registerPostFixer'](()=>{let _0x38cf6f=!0x1;const _0x427681=Array['from'](_0x19ea8d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a4dd5,data:_0x218585}of _0x427681){const {group:_0x381e6f,type:_0x31f9fa,id:_0x166461}=_0x585d8e['_splitMarkerName'](_0x3a4dd5);if('suggestion'!=_0x381e6f||'deletion'!=_0x31f9fa||_0x218585['oldRange'])continue;if(!_0x585d8e['hasSuggestion'](_0x166461))continue;const _0x414de5=_0x585d8e['getSuggestion'](_0x166461)['getRanges'](),_0x5379bb=_0x19ea8d['plugins']['get']('Users')['me'];for(const _0x269cd8 of _0x585d8e['getSuggestions']()){if(!_0x269cd8['isInContent']||_0x269cd8['author']!=_0x5379bb)continue;if('formatBlock'!=_0x269cd8['type']||'tablePasteCell'!=_0x269cd8['subType'])continue;if(_0x269cd8['getRanges']()['every'](_0x24fd3d=>_0x414de5['some'](_0x2ca560=>_0x2ca560['containsRange'](_0x24fd3d,!0x0)))){for(const _0x1cb589 of _0x269cd8['getAllAdjacentSuggestions']())_0x1cb589['isInContent']&&(_0x1cb589['discard'](),_0x38cf6f=!0x0);}}}return _0x38cf6f;}),_0x19ea8d['model']['document']['registerPostFixer'](_0x3393ac=>{const _0x3b1536=_0x19ea8d['commands']['get']('redo');if(!_0x3b1536||!_0x3b1536['_createdBatches']['has'](_0x3393ac['batch']))return!0x1;let _0x1c6f06=!0x1;const _0x5a36e8=_0x19ea8d['plugins']['get']('Users')['me'],_0x561632=_0x19ea8d['model']['document']['differ']['getChanges'](),_0x422fb4=Array['from'](_0x19ea8d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x308d0f,data:_0x24bcfd})=>{const {group:_0xa6f084,subType:_0x3fadf8,authorId:_0x3db99e}=_0x585d8e['_splitMarkerName'](_0x308d0f);return'suggestion'==_0xa6f084&&'tablePaste'==_0x3fadf8&&_0x3db99e==_0x5a36e8['id']&&!_0x24bcfd['oldRange'];});for(const _0x1470b8 of _0x561632){if('insert'!=_0x1470b8['type']||'tableCellSuggestion'!=_0x1470b8['name']||0x1!=_0x1470b8['length'])continue;const _0x4420c4=_0x3393ac['createRange'](_0x1470b8['position'],_0x1470b8['position']['getShiftedBy'](0x1));if(!_0x422fb4['find'](({data:_0x397b45})=>_0x397b45['newRange']['isEqual'](_0x4420c4))){for(const {name:_0x265d01,data:_0x369ab7}of _0x422fb4)if(_0x4420c4['containsRange'](_0x369ab7['newRange'])){_0x3393ac['updateMarker'](_0x265d01,{'range':_0x4420c4}),_0x1c6f06=!0x0;break;}}}return _0x1c6f06;}),_0x19ea8d['model']['document']['registerPostFixer'](_0x513c7a=>{let _0x3d8580=!0x1;const _0x1a67c9=_0x19ea8d['plugins']['get']('Users')['me'],_0x55e733=_0x585d8e['getSuggestions']()['filter'](_0x254230=>_0x254230['isInContent']&&_0x254230['author']==_0x1a67c9),_0x2ba628=new Set(),_0x146b7c=new Set();for(const _0x11b47a of _0x55e733)if('tablePaste'==_0x11b47a['subType'])for(const _0x301b30 of _0x11b47a['getMarkers']()){const _0x33dc61=_0x301b30['getRange']()['getContainedElement']();if(_0x33dc61){if(_0x33dc61['is']('element','tableCellSuggestion')&&we(_0x33dc61)){_0x11b47a['removeMarker'](_0x301b30['name']),_0x2ba628['add'](_0x33dc61),_0x3d8580=!0x0;const _0x31eeb2=_0x33dc61['nextSibling'],_0x3e9003=_0x33dc61['previousSibling'],_0x3407b1=_0x31eeb2&&_0x31eeb2['is']('element','tableCellSuggestion'),_0x590954=_0x3e9003&&_0x3e9003['is']('element','tableCellSuggestion');_0x3407b1&&!_0x2ba628['has'](_0x31eeb2)&&_0x146b7c['add'](_0x31eeb2),_0x590954&&!_0x2ba628['has'](_0x3e9003)&&_0x146b7c['add'](_0x3e9003);}else _0x33dc61['is']('element','paragraph')&&_0x33dc61['isEmpty']&&(_0x11b47a['removeMarker'](_0x301b30['name']),_0x3d8580=!0x0);}}else{if('tablePasteCell'==_0x11b47a['subType']){if(!_0x11b47a['attributes']||!_0x11b47a['attributes']['tablePasteChainId'])continue;const _0x3a544b=_0x11b47a['attributes']['markerAttributes'];if(_0x3a544b&&Object['keys'](_0x3a544b)['length'])continue;const _0x39f205=_0x11b47a['attributes']['tablePasteChainId'];let _0x171920=!0x0,_0x59efae=!0x0;for(const _0x228d26 of _0x55e733)if(_0x228d26['subType']&&_0x228d26['subType']['startsWith']('tablePaste')){if(!_0x228d26['attributes']['tablePasteChainId']){_0x59efae=!0x1;break;}if(_0x228d26['id']!=_0x11b47a['id']&&_0x228d26['attributes']['tablePasteChainId']==_0x39f205){_0x171920=!0x1;break;}}_0x59efae&&_0x171920&&(_0x11b47a['removeMarkers'](),_0x3d8580=!0x0);}}for(const _0x54d8b5 of _0x2ba628)_0x513c7a['remove'](_0x54d8b5);for(const _0x15e15a of _0x146b7c)_0x513c7a['unwrap'](_0x15e15a);return _0x3d8580;}),_0x19ea8d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38f091,_0x49e403)=>_0x31317e(_0x38f091),'converterPriority':'high'}),_0x19ea8d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x47541d,_0x56af63)=>_0x56af63['options']['showSuggestionHighlights']?_0x31317e(_0x47541d,!0x1):null,'converterPriority':'high'});const _0x40ceb3=_0x19ea8d['editing']['view'];this['listenTo'](_0x40ceb3['document'],'clipboardOutput',(_0x32c325,_0x320d46)=>{const _0x34e482=[];for(const _0x5bce84 of _0x40ceb3['createRangeIn'](_0x320d46['content'])['getItems']())_0x5bce84['is']('element','suggestion-td')&&_0x34e482['push'](_0x5bce84);_0x40ceb3['change'](_0x4b52f7=>{for(const _0x4c4ec3 of _0x34e482)_0x4b52f7['move'](_0x4b52f7['createRangeIn'](_0x4c4ec3),_0x4b52f7['createPositionBefore'](_0x4c4ec3)),_0x4b52f7['remove'](_0x4c4ec3);});});}}function we(_0x3c94b5){if(_0x3c94b5['isEmpty'])return!0x0;const _0x3d3736=_0x3c94b5['getChild'](0x0);return _0x3d3736['is']('element','paragraph')&&_0x3d3736['isEmpty'];}function ke(_0x4d4b32,_0x50bff1={},_0x5a08e5){for(const {isAnchor:_0x3975e8,cellHeight:_0x5503cc,cellWidth:_0x2694ff}of _0x5a08e5['createTableWalker'](_0x4d4b32,{'includeAllSlots':!0x0,..._0x50bff1}))if(!_0x3975e8||0x1!=_0x5503cc||0x1!=_0x2694ff)return!0x1;return!0x0;}class Nt extends _0x1f92b9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x396a62=this['editor']['plugins']['get']('TrackChangesEditing');_0x396a62['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x396a62['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x396a62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x396a62['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x396a62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x396a62['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3be511,_0x4f36ab){const _0xe5c29d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34f8e4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x22e53c=_0x4f36ab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x792992=_0x34f8e4['getColumnGroupElement'](_0x22e53c);let _0x557081=_0x792992?_0x34f8e4['getTableColumnsWidths'](_0x792992):null,_0x402049=_0x22e53c['getAttribute']('tableWidth')||null;const _0x35ecbe=_0x4f36ab['tableWidth']||_0x402049,_0x5532f0=_0x4f36ab['columnWidths']||_0x557081,_0x4aa597=this['editor']['plugins']['get']('Users')['me'];for(const _0x428c21 of _0xe5c29d['getSuggestions']()){const _0x206b6d=_0x428c21['getContainedElement']();if('resizeTable'===_0x428c21['subType']&&_0x206b6d===_0x22e53c){_0x428c21['author']!==_0x4aa597&&_0x428c21['discard']();const _0x467f70=_0x428c21['data']['commandParams'];_0x402049=_0x467f70[0x0]['tableWidth'],_0x557081=_0x467f70[0x0]['columnWidths'];break;}}_0x3be511({'table':_0x22e53c,'tableWidth':_0x35ecbe,'columnWidths':_0x5532f0}),_0xe5c29d['markBlockFormat'](_0x22e53c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x402049,'columnWidths':_0x557081}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x52cbf8){if('formatBlock'!=_0x52cbf8['type']&&'formatInline'!=_0x52cbf8['type'])return;const {data:_0x5c3b09}=_0x52cbf8;if(_0x5c3b09&&'resizeTable'===_0x5c3b09['formatGroupId']){const _0x23998b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x23998b)};}}}class Dt extends _0x1f92b9{['afterInit'](){const _0x102ff3=this['editor'];_0x102ff3['plugins']['has']('Template')&&_0x102ff3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1f92b9{['afterInit'](){const _0x794b1c=this['editor'];if(!_0x794b1c['commands']['get']('insertTableOfContents'))return;_0x794b1c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x26c91a=_0x794b1c['plugins']['get']('TrackChangesEditing'),_0x526085=_0x794b1c['locale'];_0x26c91a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a2da2=>o(_0x526085,'ELEMENT_TABLE_OF_CONTENTS',_0x2a2da2));}}class $t extends _0x1f92b9{['afterInit'](){const _0x41ff24=this['editor'];if(!_0x41ff24['plugins']['has']('Title'))return;const _0x2286c8=_0x41ff24['plugins']['get']('TrackChangesEditing');_0x2286c8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x41ff24['locale'],'ELEMENT_TITLE')),_0x41ff24['model']['document']['registerPostFixer'](_0x20a7e2=>{let _0xf1f554=!0x1;const _0x5d2615=Array['from'](_0x41ff24['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2042db,data:_0x2b2614}of _0x5d2615){const {group:_0x4061c4}=_0x2286c8['_splitMarkerName'](_0x2042db);if('suggestion'!==_0x4061c4||!_0x2b2614['newRange'])continue;const _0x378be2=_0x2b2614['newRange'],_0x5d75a0=_0x378be2['end']['nodeBefore'];if(!_0x5d75a0||!_0x5d75a0['is']('element','title-content'))continue;if(!_0x378be2['start']['isTouching'](_0x378be2['end']))continue;const _0x52ee87=_0x41ff24['model']['schema']['getNearestSelectionRange'](_0x378be2['end'],'forward');if(_0x52ee87&&_0x52ee87['isCollapsed']){const _0x30a9fa=_0x20a7e2['createRange'](_0x378be2['start'],_0x52ee87['start']);_0x30a9fa['isEqual'](_0x378be2)||(_0x20a7e2['updateMarker'](_0x2042db,{'range':_0x30a9fa}),_0xf1f554=!0x0);}_0xf1f554||(_0x20a7e2['removeMarker'](_0x2042db),_0xf1f554=!0x0);}return _0xf1f554;});}}class Bt extends _0x1f92b9{['afterInit'](){const _0x25722c=this['editor'],_0x3c600e=_0x25722c['plugins']['get']('TrackChangesEditing');_0x25722c['plugins']['has']('UndoEditing')&&(_0x3c600e['enableCommand']('undo'),_0x3c600e['enableCommand']('redo'));}}class xt extends _0x1f92b9{static get['requires'](){return[It];}['afterInit'](){const _0xcdf5c2=this['editor'];if(!_0xcdf5c2['plugins']['has']('TableCaptionEditing'))return;_0xcdf5c2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x1f92b9{['tableProperties'];['tableCellProperties'];constructor(_0x1b3b93){super(_0x1b3b93),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 _0x1fdbee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x9a518c of this['tableProperties'])_0x1fdbee['enableCommand'](_0x9a518c,(_0xd11026,_0x58235c)=>{const _0x1bc537=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x9a518c,[_0x1bc537],this['tableProperties'],'tableProperties',_0xd11026,_0x58235c);});_0x1fdbee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1fdbee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fdbee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x13cafb,_0x13791e)=>this['handleDiscardAction'](this['tableProperties'],_0x13cafb,_0x13791e)),_0x1fdbee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b1b9e of this['tableCellProperties'])_0x1fdbee['enableCommand'](_0x2b1b9e,(_0x46afa1,_0x113abc)=>{const _0x5893a8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b1b9e,_0x5893a8,this['tableCellProperties'],'tableCellProperties',_0x46afa1,_0x113abc);});_0x1fdbee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1fdbee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fdbee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x26ca9f,_0x6e889c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x26ca9f,_0x6e889c)),_0x1fdbee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1fdbee['descriptionFactory']['registerDescriptionCallback'](_0x17d501=>this['handleSuggestionDescription'](_0x17d501));}['_handlePropertyChange'](_0xfad8fe,_0x4ef2ae,_0x5e05e0,_0x2c98b0,_0x5806d3,_0x2afb34){const _0x4d24a4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2afb34['batch'],()=>{for(const _0x501e7d of _0x4ef2ae){if(this['_getSuggestion'](_0x501e7d,_0x2c98b0))_0x5806d3(_0x2afb34);else{const _0x136218={};for(const _0x4d24f9 of _0x5e05e0){const _0x3acb6f=_0x501e7d['getAttribute'](_0x4d24f9);void 0x0!==_0x3acb6f&&(_0x136218[_0x4d24f9]=_0x3acb6f);}_0x5806d3(_0x2afb34),_0x4d24a4['markBlockFormat'](_0x501e7d,{'commandParams':[_0x136218]},[],_0x2c98b0);}}});}['handleDiscardAction'](_0x3a5bc5,_0x5b7709,_0x52a433){const _0x563a43=_0x5b7709[0x0]['start']['nodeAfter'],_0x265468=_0x52a433['commandParams'][0x0];this['editor']['model']['change'](_0x2c2320=>{for(const _0x4be8d7 of _0x3a5bc5)void 0x0!==_0x265468[_0x4be8d7]?_0x2c2320['setAttribute'](_0x4be8d7,_0x265468[_0x4be8d7],_0x563a43):_0x2c2320['removeAttribute'](_0x4be8d7,_0x563a43);});}['handleSuggestionDescription'](_0x5e8478){if(_0x5e8478['data'])switch(_0x5e8478['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'](_0x2248bf,_0x5d6fd3){const _0x2d06cb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3616d4 of _0x2d06cb['getSuggestions']({'skipNotAttached':!0x0})){const _0x103c89=_0x3616d4['getContainedElement']();if(_0x3616d4['subType']===_0x5d6fd3&&_0x103c89===_0x2248bf)return _0x3616d4;}return null;}}const m='$elementName';class p extends _0x1f92b9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x183f72,_0x3de534,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(_0x56a8d4){function _0x2f642d(_0x56ef93){return _0x56ef93['map'](_0x57b884=>String['fromCharCode'](_0x57b884))['join']('');}super(_0x56a8d4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x64dec5,_0x48d72,_0x57684a,_0x432d73)=>{this['_model']['change'](()=>{for(const _0x91b590 of[..._0x432d73,..._0x57684a])this['_model']['markers']['has'](_0x91b590)&&_0x56a8d4['editing']['reconvertMarker'](_0x91b590);});}),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']=_0x56a8d4['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(),_0x56a8d4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56a8d4['config']['get']('trackChanges.trackFormatChanges'),_0x56a8d4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56a8d4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x56a8d4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2f642d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2f642d([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x32]);}['init'](){const _0x1d1abc=this['editor'],_0x5de307=(_0x13b919,_0x3b5a0b)=>{if('attribute'!=_0x13b919)return'ck-suggestion-marker-'+_0x13b919;const _0x2f18a2=_0x3b5a0b['split']('|')[0x0];return this['_isBlockAttribute'](_0x2f18a2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d1abc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2589f5=>{const {id:_0x1d0433,type:_0xa9d7c1,subType:_0x3ce96b}=this['_splitMarkerName'](_0x2589f5['markerName']),_0x253753=['ck-suggestion-marker',_0x5de307(_0xa9d7c1,_0x3ce96b)];let _0x40f79b=0xbb8;return this['activeMarkers']['includes'](_0x2589f5['markerName'])&&(_0x253753['push']('ck-suggestion-marker--active'),_0x40f79b=0xbc2),'deletion'==_0xa9d7c1&&(_0x40f79b+=0x5),{'classes':_0x253753,'attributes':{'data-suggestion':_0x1d0433},'priority':_0x40f79b};}}),_0x1d1abc['conversion']['for']('dataDowncast')['add'](_0x703af1=>{_0x703af1['on']('addMarker:suggestion',(_0x5b67a5,_0x1655d5,_0x37dc80)=>{if(!_0x37dc80['options']['showSuggestionHighlights'])return;const _0x256777=_0x1655d5['item'];if(!_0x256777)return;const _0x5d364c=_0x37dc80['mapper']['toViewElement'](_0x256777);_0x1d1abc['model']['schema']['isObject'](_0x256777)&&_0x5d364c&&!_0x5d364c['getCustomProperty']('widget')&&_0x5d364c['is']('containerElement')&&_0x966542(_0x5d364c,_0x37dc80['writer']);},{'priority':'high'});}),_0x1d1abc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x183bf7,_0x3374f5)=>{if(!_0x3374f5['options']['showSuggestionHighlights'])return null;const {type:_0x72920e,subType:_0x57bfe0}=this['_splitMarkerName'](_0x183bf7['markerName']);return{'classes':['ck-suggestion-marker',_0x5de307(_0x72920e,_0x57bfe0)],'priority':0xbb8};}});const _0x2b3851=({showActiveMarkers:_0x30700e=!0x0,isAttributeSuggestion:_0x3e308d=!0x1}={})=>(_0x378c5d,_0x20762f,_0x5dee50)=>{if(!_0x20762f['item'])return;const {id:_0x3e65c1}=this['_splitMarkerName'](_0x20762f['markerName']);if(_0x3e308d){const _0x198aed=this['_suggestions']['get'](_0x3e65c1),_0x4b3f0d=this['_getAttributeKey'](_0x198aed);if(!this['_isBlockAttribute'](_0x4b3f0d))return;}if(_0x20762f['item']['is']('selection'))return void _0x5dee50['consumable']['consume'](_0x20762f['item'],_0x378c5d['name']);const _0x1a6e55=_0x5dee50['mapper']['toViewElement'](_0x20762f['item']);if(_0x20762f['item']['is']('element')&&_0x1d1abc['model']['schema']['isBlock'](_0x20762f['item'])&&!_0x1a6e55['getCustomProperty']('addHighlight')){_0x5dee50['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a6e55),_0x5dee50['writer']['setAttribute']('data-suggestion',_0x3e65c1,_0x1a6e55),_0x5dee50['mapper']['bindElementToMarker'](_0x1a6e55,_0x20762f['markerName']),_0x30700e&&(this['activeMarkers']['includes'](_0x20762f['markerName'])?_0x5dee50['writer']['addClass']('ck-suggestion-marker--active',_0x1a6e55):_0x5dee50['writer']['removeClass']('ck-suggestion-marker--active',_0x1a6e55));for(const _0x103e36 of _0x1d1abc['model']['createRangeIn'](_0x20762f['item'])['getItems']())_0x5dee50['consumable']['consume'](_0x103e36,_0x378c5d['name']);_0x5dee50['consumable']['consume'](_0x20762f['item'],_0x378c5d['name']);}};_0x1d1abc['conversion']['for']('dataDowncast')['add'](_0x2d9b7d=>{_0x2d9b7d['on']('addMarker:suggestion:formatBlock',(_0x2ac523,_0x20d328,_0x1bf169)=>{_0x1bf169['options']['showSuggestionHighlights']&&_0x2b3851({'showActiveMarkers':!0x1})(_0x2ac523,_0x20d328,_0x1bf169);},{'priority':'highest'});}),_0x1d1abc['conversion']['for']('dataDowncast')['add'](_0x1c3a97=>{_0x1c3a97['on']('addMarker:suggestion:attribute',(_0x21c314,_0x2ec34e,_0x503118)=>{_0x503118['options']['showSuggestionHighlights']&&_0x2b3851({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x21c314,_0x2ec34e,_0x503118);},{'priority':'highest'});}),_0x1d1abc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c14b7,_0x5c7e0d)=>_0x5c7e0d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c14b7['substr'](0xb)}}),_0x1d1abc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3548c8,{writer:_0x16c568})=>{let _0x486f57='suggestion:'+_0x3548c8['getAttribute']('suggestion-type')+':'+_0x3548c8['getAttribute']('id');return _0x3548c8['getAttribute']('marker-count')&&(_0x486f57+=':'+_0x3548c8['getAttribute']('marker-count')),_0x16c568['createElement']('$marker',{'data-name':_0x486f57});}}),_0x1d1abc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d1abc['conversion']['for']('editingDowncast')['add'](_0x582ef3=>{_0x582ef3['on']('addMarker:suggestion:formatBlock',_0x2b3851(),{'priority':'high'});}),_0x1d1abc['conversion']['for']('editingDowncast')['add'](_0xa0b2bd=>{_0xa0b2bd['on']('addMarker:suggestion:attribute',_0x2b3851({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d1abc['conversion']['for']('editingDowncast')['add'](_0x66d2e=>{_0x66d2e['on']('removeMarker:suggestion:formatBlock',(_0x4a53f6,_0xe06d19,_0x425596)=>{const _0x545149=_0x425596['mapper']['markerNameToElements'](_0xe06d19['markerName']);if(_0x545149){for(const _0x20c2b7 of _0x545149)_0x20c2b7['getCustomProperty']('addHighlight')||(_0x425596['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20c2b7),_0x425596['writer']['removeAttribute']('data-suggestion',_0x20c2b7),_0x425596['mapper']['unbindElementFromMarkerName'](_0x20c2b7,_0xe06d19['markerName']));}},{'priority':'high'});}),_0x1d1abc['conversion']['for']('editingDowncast')['add'](_0xa777b=>{_0xa777b['on']('removeMarker:suggestion:attribute',(_0x8e8688,_0x5cee4d,_0x49e5f)=>{const _0xd22554=_0x49e5f['mapper']['markerNameToElements'](_0x5cee4d['markerName']);if(!_0xd22554)return;const {id:_0x512eec}=this['_splitMarkerName'](_0x5cee4d['markerName']),_0x358599=this['_suggestions']['get'](_0x512eec),_0x24264a=this['_getAttributeKey'](_0x358599);if(this['_isBlockAttribute'](_0x24264a)){for(const _0x1c68a5 of _0xd22554)_0x1c68a5['getCustomProperty']('addHighlight')||(_0x49e5f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c68a5),_0x49e5f['writer']['removeAttribute']('data-suggestion',_0x1c68a5),_0x49e5f['mapper']['unbindElementFromMarkerName'](_0x1c68a5,_0x5cee4d['markerName']));}},{'priority':'high'});}),_0x1d1abc['model']['document']['registerPostFixer'](_0x242f8f=>{let _0x52f16a=!0x1;const _0x1e3833=Array['from'](_0x1d1abc['model']['document']['differ']['getChangedMarkers']()),_0x89ea3c=new Set();for(const {name:_0x2ce847,data:_0xf7c365}of _0x1e3833){const {group:_0x4806c1,type:_0x73585c,subType:_0x1b4ddb,id:_0x5793aa}=this['_splitMarkerName'](_0x2ce847);if('suggestion'!==_0x4806c1)continue;const _0x426b41=this['_suggestions']['get'](_0x5793aa);if(null!=_0xf7c365['newRange']){'formatInline'==_0x73585c&&(_0x52f16a=_0x52f16a||Ut(_0xf7c365['newRange'],_0x2ce847,_0x242f8f,_0x1d1abc['model']['schema']));const _0x815ff5='attribute'==_0x73585c&&this['_isBlockAttribute'](_0x1b4ddb['split']('|')[0x0]);if(_0xf7c365['newRange']['isCollapsed']||'$graveyard'==_0xf7c365['newRange']['root']['rootName']||'formatBlock'==_0x73585c&&!Ft(_0xf7c365['newRange'])||_0x815ff5&&!Ft(_0xf7c365['newRange'])||'deletion'==_0x73585c&&!(!Vt(_0x24b099=_0xf7c365['newRange'])&&!function(_0x3c9684){return _0x3c9684['start']['parent']==_0x3c9684['end']['nodeBefore']&&_0x3c9684['start']['isAtEnd'];}(_0x24b099)))_0x242f8f['removeMarker'](_0x2ce847),_0x52f16a=!0x0;else{if(!_0x426b41||!_0x426b41['isInContent'])continue;if(_0xf7c365['newRange']&&_0xf7c365['oldRange']&&_0xf7c365['newRange']['isEqual'](_0xf7c365['oldRange']))continue;_0x89ea3c['add'](_0x426b41);}}}var _0x24b099;return _0x89ea3c['size']>0x0&&(_0x52f16a=!!this['_joinWithAdjacentSuggestions'](_0x89ea3c)||_0x52f16a),_0x52f16a;}),_0x1d1abc['model']['document']['registerPostFixer'](_0xca42d9=>{let _0x3b8cfa=!0x1;for(const _0x522471 of _0x1d1abc['model']['document']['differ']['getChanges']())if('insert'==_0x522471['type'])for(const _0x313163 of this['_suggestions']['values']()){if(_0x313163['isMultiRange']||!_0x313163['isInContent'])continue;const _0x4b5091='formatBlock'==_0x313163['type'],_0x527fd9=this['_getAttributeKey'](_0x313163),_0x44ec22=_0x527fd9&&this['_isBlockAttribute'](_0x527fd9);if(!_0x4b5091&&!_0x44ec22)continue;const _0x121aee=_0x313163['getFirstRange']();if(_0x121aee['start']['parent']!=_0x121aee['end']['parent']&&!_0x121aee['end']['isAtEnd']){const _0x2bce8a=_0x1d1abc['model']['createPositionAt'](_0x121aee['start']['nodeAfter'],'end'),_0x55dcfd=_0x1d1abc['model']['createRange'](_0x121aee['start'],_0x2bce8a);_0xca42d9['updateMarker'](_0x313163['getFirstMarker'](),{'range':_0x55dcfd}),_0x3b8cfa=!0x0;}}return _0x3b8cfa;}),_0x1d1abc['model']['document']['registerPostFixer'](_0x239197=>this['_processAttributeChanges'](_0x239197)),_0x1d1abc['model']['document']['registerPostFixer'](_0x2adf45=>!_0x2adf45['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2adf45)),_0x1d1abc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d1abc['model']['document']['on']('change:data',(_0x363890,_0x15b641)=>{if(!_0x15b641['isLocal']||_0x15b641['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x143f01=_0x1d1abc['model']['document']['differ']['getChanges']();if(0x0==_0x143f01['length'])return;const _0x433cc7=[],_0x23f1f7=_0x143f01['filter'](_0x417a38=>'attribute'==_0x417a38['type']),_0x244956=_0x143f01['filter'](_0x4c1652=>'insert'==_0x4c1652['type']&&'$text'!=_0x4c1652['name']);for(const _0x41b2c1 of _0x23f1f7)this['_isRegisteredAttribute'](_0x41b2c1['attributeKey'])&&_0x433cc7['push']({'key':_0x41b2c1['attributeKey'],'newValue':_0x41b2c1['attributeNewValue'],'oldValue':_0x41b2c1['attributeOldValue'],'range':Pt(_0x41b2c1['range'],_0x1d1abc['model'])});for(const _0x57915b of _0x244956){if('rename'!=_0x57915b['action']&&'refresh'!=_0x57915b['action'])continue;const _0x2a24cf=Lt(_0x57915b['position']['nodeAfter'],_0x1d1abc['model']),_0x30b8e7=_0x57915b['before'];'rename'==_0x57915b['action']&&_0x433cc7['push']({'key':m,'newValue':_0x57915b['name'],'oldValue':_0x30b8e7['name'],'range':_0x2a24cf});for(const [_0x3e3cd8,_0x157f2d]of _0x30b8e7['attributes']){if(!this['_isRegisteredAttribute'](_0x3e3cd8))continue;const _0x346810=_0x57915b['attributes']['get'](_0x3e3cd8);_0x157f2d!==_0x346810&&_0x433cc7['push']({'key':_0x3e3cd8,'newValue':_0x346810,'oldValue':_0x157f2d,'range':_0x2a24cf});}for(const [_0x3c96ee,_0x5c46c8]of _0x57915b['attributes'])this['_isRegisteredAttribute'](_0x3c96ee)&&(_0x30b8e7['attributes']['has'](_0x3c96ee)||_0x433cc7['push']({'key':_0x3c96ee,'newValue':_0x5c46c8,'oldValue':null,'range':_0x2a24cf}));}0x0!=_0x433cc7['length']&&_0x1d1abc['model']['enqueueChange'](_0x15b641,_0x32473e=>{const _0x32b8e8=_0x39f5a3();for(const {range:_0x2238f7,key:_0x5d080b,oldValue:_0x2e3bcb,newValue:_0x3310a5}of _0x433cc7)this['markAttributeChange'](_0x2238f7,_0x5d080b,_0x2e3bcb,_0x3310a5,{'groupId':_0x32b8e8});this['_reduceExistingSuggestions'](_0x32473e,_0x433cc7);});},{'priority':'lowest'}),_0x1d1abc['model']['markers']['on']('update:suggestion',(_0xa8ec0c,_0x500a1a,_0x3d4006)=>{if(null==_0x3d4006){const {id:_0x40f159}=this['_splitMarkerName'](_0x500a1a['name']),_0x538309=this['_suggestions']['get'](_0x40f159);_0x538309&&_0x538309['addMarkerName'](_0x500a1a['name']);}}),_0x1d1abc['model']['document']['on']('change:data',()=>{const _0x4ddcc0=Array['from'](_0x1d1abc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fb326=>'suggestion'===this['_splitMarkerName'](_0x1fb326['name'])['group']);if(0x0===_0x4ddcc0['length'])return;_0x4ddcc0['sort']((_0x1b7315,_0x5d1575)=>{const _0x2d69d0=_0x1b7315['data']['oldRange'],_0x34e7d6=_0x5d1575['data']['oldRange'];return null===_0x2d69d0&&null===_0x34e7d6?0x0:null===_0x2d69d0&&null!==_0x34e7d6?-0x1:null!==_0x2d69d0&&null===_0x34e7d6?0x1:_0x2d69d0['start']['isBefore'](_0x34e7d6['start'])?-0x1:0x1;});const _0x34d43d=new Set(),_0x11601e=new Set();for(const {name:_0x2833ef,data:_0xb5cf89}of _0x4ddcc0){const {id:_0xebb43f}=this['_splitMarkerName'](_0x2833ef);if(null===_0xb5cf89['oldRange']){const _0x47fac9=this['_handleNewSuggestionMarker'](_0x2833ef);_0x11601e['add'](_0x47fac9);}else{const _0x18e790=this['_suggestions']['get'](_0xebb43f);null!==_0xb5cf89['newRange']||_0x18e790['isInContent']?(_0x34d43d['add'](_0x18e790['head']),_0x11601e['add'](_0x18e790)):this['_removeSuggestion'](_0x18e790);}}_0x11601e['size']>0x0&&this['_refreshSuggestionsChain'](_0x11601e);for(const _0x374833 of _0x34d43d)this['fire']('suggestionChanged',_0x374833);}),_0x1d1abc['model']['on']('applyOperation',(_0x27df5a,_0x29929f)=>{const _0x2d4884=_0x29929f[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d4884['isDocumentOperation'])return;if(_0x2d4884['batch']['isUndo']||!_0x2d4884['batch']['isLocal'])return;let _0x16cd4a,_0x59d618;switch(_0x2d4884['type']){case'insert':_0x16cd4a=_0x1d1abc['model']['createPositionAt'](_0x2d4884['position']),_0x59d618=_0x16cd4a['getShiftedBy'](_0x2d4884['howMany']);break;case'split':_0x16cd4a=_0x1d1abc['model']['createPositionAt'](_0x2d4884['splitPosition']),_0x59d618=_0x1d1abc['model']['createPositionAt'](_0x2d4884['moveTargetPosition']);break;case'move':_0x16cd4a=_0x1d1abc['model']['createPositionAt'](_0x2d4884['targetPosition']),_0x59d618=_0x16cd4a['getShiftedBy'](_0x2d4884['howMany']);break;default:return;}const _0x145b6b=_0x1d1abc['model']['createRange'](_0x16cd4a,_0x59d618);_0x1d1abc['model']['change'](()=>{for(const {suggestion:_0x3a91e4,meta:_0x325fca}of this['_findSuggestions'](_0x145b6b)){if(_0x3a91e4['isMultiRange'])continue;if('formatInline'==_0x3a91e4['type'])continue;const _0x3a6b64=this['_getAttributeKey'](_0x3a91e4);if(_0x3a6b64&&this['_isBlockAttribute'](_0x3a6b64)&&'split'!=_0x2d4884['type'])continue;const _0x8af092=_0x3a91e4['data']&&_0x3a91e4['data']['multipleBlocks'];('formatBlock'!=_0x3a91e4['type']||'split'==_0x2d4884['type']&&!_0x8af092)&&(_0x325fca['containsRangeInObject']||'insertion'==_0x3a91e4['type']&&_0x325fca['isOwn']||_0x3a91e4['getFirstRange']()['containsRange'](_0x145b6b)&&this['_breakSuggestionMarker'](_0x3a91e4,_0x16cd4a,_0x59d618));}});},{'priority':'lowest'}),_0x1d1abc['model']['on']('deleteContent',(_0x111681,_0xa81ee2)=>{const _0x2582f7=_0xa81ee2[0x0],_0x7b070f=_0xa81ee2[0x1];if(_0x7b070f&&_0x7b070f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2582f7['isCollapsed'])return;const _0x10ea97=_0x1d1abc['model']['schema'],{start:_0x2522f8,end:_0x5ec441}=_0x2582f7['getFirstRange'](),_0x2b7f09=_0x2522f8['nodeAfter']&&_0x10ea97['isLimit'](_0x2522f8['nodeAfter'])?null:_0x10ea97['getNearestSelectionRange'](_0x2522f8,'forward'),_0x4a585b=_0x5ec441['nodeBefore']&&_0x10ea97['isLimit'](_0x5ec441['nodeBefore'])?null:_0x10ea97['getNearestSelectionRange'](_0x5ec441,'backward'),_0x5a6df0=_0x1d1abc['model']['createRange'](_0x2b7f09?_0x2b7f09['start']:_0x2522f8,_0x4a585b?_0x4a585b['end']:_0x5ec441);_0x1d1abc['model']['change'](_0x5d972e=>{this['markDeletion'](_0x5a6df0);const _0x30abeb=_0x1d1abc['model']['schema']['getNearestSelectionRange'](_0x5a6df0['start']);_0x2582f7['is']('documentSelection')?_0x5d972e['setSelection'](_0x30abeb):_0x2582f7['setTo'](_0x30abeb);}),_0x111681['stop']();},{'priority':_0x5bfbc1['normal']+0xa}),_0x1d1abc['model']['on']('insertContent',(_0x2a2354,_0x17401c)=>{const _0x2b566b=_0x17401c[_0x17401c['length']-0x1];_0x2b566b&&_0x2b566b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d1abc['model']['change'](()=>{let _0x3419d6=_0x1d1abc['model']['insertContent'](_0x17401c[0x0],_0x17401c[0x1],_0x17401c[0x2],{'forceDefaultExecution':!0x0});if(!_0x3419d6)return;_0x2a2354['return']=_0x3419d6['clone']();const _0x56a466=_0x3419d6['end']['nodeBefore'],_0x1b5eed=_0x1d1abc['model']['schema'];_0x56a466&&_0x1b5eed['isBlock'](_0x56a466)&&!_0x1b5eed['isObject'](_0x56a466)&&(_0x3419d6=_0x1d1abc['model']['createRange'](_0x3419d6['start'],_0x1d1abc['model']['createPositionAt'](_0x56a466,'end'))),this['markInsertion'](_0x3419d6);}),_0x2a2354['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1b8a31=new x(_0x1d1abc,this['_suggestions']);_0x1d1abc['commands']['add']('acceptSuggestion',_0x1b8a31),this['enableCommand']('acceptSuggestion');const _0x4fe4a4=new R(_0x1d1abc,this['_suggestions']);_0x1d1abc['commands']['add']('discardSuggestion',_0x4fe4a4),this['enableCommand']('discardSuggestion'),_0x1d1abc['commands']['add']('acceptAllSuggestions',new E(_0x1d1abc,_0x1b8a31,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d1abc['commands']['add']('discardAllSuggestions',new E(_0x1d1abc,_0x4fe4a4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d1abc['commands']['add']('acceptSelectedSuggestions',new O(_0x1d1abc,_0x1b8a31,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d1abc['commands']['add']('discardSelectedSuggestions',new O(_0x1d1abc,_0x4fe4a4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xaef020=_0x1d1abc['plugins']['get']('CommentsRepository');this['listenTo'](_0xaef020,'addComment',(_0x50bb4a,{threadId:_0x751fc9})=>{const _0x37c67c=this['_suggestions']['get'](_0x751fc9);_0x37c67c&&_0x37c67c['commentThread']&&0x1===_0x37c67c['commentThread']['length']&&this['_updateSuggestionData'](_0x751fc9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xaef020,'removeComment',(_0xc793b9,{threadId:_0x24e901})=>{const _0x30bb4d=this['_suggestions']['get'](_0x24e901);_0x30bb4d&&_0x30bb4d['commentThread']&&!_0x30bb4d['commentThread']['length']&&this['_updateSuggestionData'](_0x24e901,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x31b93f){if(this['_adapter'])throw new _0x4547e5('track-changes-adapter-already-set',this);this['_adapter']=_0x31b93f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5f0bf1=!0x1,toJSON:_0x412b34=!0x1}={}){const _0x469c8a=[];for(const _0x208eba of this['_suggestions']['values']())_0x5f0bf1&&!_0x208eba['isInContent']||_0x469c8a['push'](_0x208eba);return _0x412b34?_0x469c8a['map'](_0xd8bf1c=>_0xd8bf1c['toJSON']()):_0x469c8a;}['getSuggestion'](_0x25a1ac){const _0x3afddc=this['_suggestions']['get'](_0x25a1ac);if(!_0x3afddc)throw new _0x4547e5('track-changes-suggestion-not-found',this);return _0x3afddc;}['hasSuggestion'](_0x5e4266){return this['_suggestions']['has'](_0x5e4266);}['addSuggestionData'](_0x5535d5){const {authorId:_0xb163b9,id:_0x383c7b,attributes:_0x181a89}=_0x5535d5,[_0x3763e1,_0x5b0f4d]=_0x5535d5['type']['split'](':'),_0x166294=this['_suggestions']['get'](_0x383c7b)||this['_createSuggestion'](_0x3763e1,_0x5b0f4d,_0x383c7b,_0xb163b9,_0x181a89);if(this['_addThreadToSuggestion'](_0x166294),this['_checkSuggestionCorrectness'](_0x166294,_0x3763e1,_0x5b0f4d||null,_0xb163b9),_0x166294['createdAt']=_0x5535d5['createdAt'],_0x166294['_isDataLoaded']=!0x0,_0x181a89&&_0x181a89['@external']){const _0xc7d900=_0x181a89['@external'],_0x4487b4=this['_getExternalAuthor'](_0xc7d900['authorName']);_0x166294['authoredAt']=_0xc7d900['createdAt'],_0x166294['author']=_0x4487b4,_0x166294['isExternal']=!0x0;}else _0x166294['authoredAt']=_0x5535d5['createdAt'];switch(_0x5535d5['data']&&(_0x166294['data']=_0x5535d5['data']),_0x5535d5['attributes']&&(_0x166294['attributes']=_0x5535d5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x166294['_saved']=!0x0),this['_suggestionState']['get'](_0x166294)){case'notReady':this['_suggestionState']['set'](_0x166294,'dataReady');break;case'markerReady':_0x166294['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x166294])),this['_refreshSuggestionsChain'](new Set([_0x166294])),this['_suggestionState']['set'](_0x166294,'ready'),this['fire']('suggestionLoaded',_0x166294)):this['_suggestionState']['set'](_0x166294,'removed');}return _0x166294;}['acceptSuggestion'](_0xd9b251){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56f226 of _0xd9b251['getAllAdjacentSuggestions']())_0x56f226['accept']();});});}['discardSuggestion'](_0x5c4896){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37f9cd of _0x5c4896['getAllAdjacentSuggestions']())_0x37f9cd['discard']();});});}['enableCommand'](_0x35d560,_0x3193e3){const _0xdd8e50=this['editor']['commands']['get'](_0x35d560);if(!_0xdd8e50)throw new _0x4547e5('track-changes-command-not-found',this,{'commandName':_0x35d560});if(this['_enabledCommands']['has'](_0xdd8e50))throw new _0x4547e5('track-changes-enable-command-twice',this,{'commandName':_0x35d560});this['_enabledCommands']['add'](_0xdd8e50),_0x3193e3&&_0xdd8e50['on']('execute',(_0x2cd395,_0x5ebb7a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ebb7a['length']>0x0&&_0x5ebb7a[_0x5ebb7a['length']-0x1]&&_0x5ebb7a[_0x5ebb7a['length']-0x1]['forceDefaultExecution']?_0x5ebb7a['pop']():(_0x2cd395['return']=_0x3193e3((..._0x44c0aa)=>_0xdd8e50['execute'](..._0x44c0aa,{'forceDefaultExecution':!0x0}),..._0x5ebb7a),_0x2cd395['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x117974){let _0x1502db,_0xb6f215;const _0x312268=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1502db=_0x117974();}catch(_0xa4ecda){_0xb6f215=_0xa4ecda;}return _0x312268||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb6f215&&_0x4547e5['rethrowUnexpectedError'](_0xb6f215,this),_0x1502db;}['markInsertion'](_0x4ba580,_0x4d9540=null,_0x4389cb={}){if(_0x4ba580['isCollapsed'])return null;const _0x5a0739=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22e534,meta:_0x59db55}of this['_findSuggestions'](_0x4ba580,'insertion'))if(_0x59db55['isOwn']){if(!_0x59db55['isNextTo']){if(_0x59db55['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x22e534,_0x4389cb))continue;return _0x22e534;}if(qt(_0x22e534,_0x4389cb))return _0x22e534;this['_breakSuggestionMarker'](_0x22e534,_0x4ba580['start'],_0x4ba580['end']);break;}if(_0x4d9540==_0x22e534['subType']&&qt(_0x22e534,_0x4389cb)){const _0xedfc9f=_0x22e534['getFirstRange']();return _0xedfc9f['start']['isEqual'](_0x4ba580['end'])?this['_setSuggestionRange'](_0x22e534,this['_model']['createRange'](_0x4ba580['start'],_0xedfc9f['end'])):this['_setSuggestionRange'](_0x22e534,this['_model']['createRange'](_0xedfc9f['start'],_0x4ba580['end'])),_0x22e534;}}const _0x5eadcb=_0x39f5a3(),_0x6aecf3=_0x5a0739['id'],_0x4c860c=_0x4d9540?'insertion:'+_0x4d9540:'insertion',_0x1516e2=this['_setSuggestionData']({'id':_0x5eadcb,'type':_0x4c860c,'createdAt':new Date(),'authorId':_0x6aecf3,'attributes':_0x4389cb});return this['_addSuggestionMarker'](_0x4c860c,_0x5eadcb,_0x6aecf3,_0x4ba580),_0x1516e2;}['markMultiRangeInsertion'](_0x53e853,_0x59308d='multi',_0x3a805a={}){const _0x3b143a=this['editor']['plugins']['get']('Users')['me'],_0x1470bd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x59308d,'join');for(const _0x2939b6 of this['getSuggestions']())if(_0x2939b6['author']['id']==_0x3b143a['id']&&'insertion'==_0x2939b6['type']&&_0x2939b6['subType']==_0x59308d&&qt(_0x2939b6,_0x3a805a)&&(_0x1470bd(_0x2939b6['getRanges'](),_0x53e853)||_0x1470bd(_0x53e853,_0x2939b6['getRanges']()))){for(const _0xe0fc71 of _0x53e853)_0x2939b6['addRange'](_0xe0fc71);return _0x2939b6;}for(const {suggestion:_0x32f855,meta:_0x256b52}of this['_findSuggestions'](_0x53e853,'insertion')){if(!_0x256b52['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x256b52['containsRangeInObject'])continue;if(!qt(_0x32f855,_0x3a805a))continue;let _0x52cf36=!0x0;for(const _0x44eb6b of _0x32f855['getRanges']())for(const _0xcff04d of _0x53e853)if(!_0x44eb6b['containsRange'](_0xcff04d)){_0x52cf36=!0x1;break;}if(_0x52cf36)return _0x32f855;}const _0x3db329=_0x39f5a3(),_0x3e1bc9=_0x3b143a['id'],_0x3577e9='insertion:'+_0x59308d,_0x40529d=this['_setSuggestionData']({'id':_0x3db329,'type':_0x3577e9,'createdAt':new Date(),'authorId':_0x3e1bc9,'attributes':_0x3a805a});for(const _0x3a5e59 of _0x53e853)this['_addSuggestionMarker'](_0x3577e9,_0x3db329,_0x3e1bc9,_0x3a5e59,u['getMultiRangeId']());return _0x40529d;}['markInlineFormat'](_0x3687a7,_0x1ec189,_0x2adeb4=null,_0x4d3b12={}){if(_0x2adeb4=_0x2adeb4||Gt(_0x1ec189),_0x3687a7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x7bdacb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2adeb4,'accept');return this['forceDefaultExecution'](()=>_0x7bdacb([_0x3687a7],_0x1ec189,_0x4d3b12)),null;}const _0x3cb601=this['editor']['plugins']['get']('Users')['me'],_0x2ecdf5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x587797,meta:_0x4c84e8}of this['_findSuggestions'](_0x3687a7,'insertion'))_0x4c84e8['isOwn']&&!_0x4c84e8['isInsideObject']&&_0x2ecdf5['push'](..._0x587797['getRanges']());}const _0x1e182c=function(_0x28b63b,_0x525b19){const _0x3f58ea=[];for(const _0x2728ef of _0x525b19){const _0x49d5a2=_0x28b63b['getIntersection'](_0x2728ef);_0x49d5a2&&_0x3f58ea['push'](_0x49d5a2);}return _0x3f58ea;}(_0x3687a7,_0x2ecdf5),_0x13aae5=function(_0x5ce67c,_0x3dbe62){const _0x3bc23b=[_0x5ce67c];for(const _0x4bdb21 of _0x3dbe62){let _0x43b453=0x0;for(;_0x43b453<_0x3bc23b['length'];){const _0x1cca3e=_0x3bc23b[_0x43b453]['getDifference'](_0x4bdb21);_0x3bc23b['splice'](_0x43b453,0x1,..._0x1cca3e),_0x43b453+=_0x1cca3e['length'];}}return _0x3bc23b;}(_0x3687a7,_0x2ecdf5);_0x1e182c['length']&&this['_model']['change'](()=>{for(const _0x410d9b of _0x1e182c){const _0x57ddef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2adeb4,'accept');this['forceDefaultExecution'](()=>_0x57ddef([_0x410d9b],_0x1ec189,_0x4d3b12));}});for(const _0x31d8d7 of _0x13aae5){let _0x50f90f=null,_0x100a83=_0x31d8d7['start'],_0x4b0cf5=_0x31d8d7['end'];for(const {suggestion:_0x2462fc,meta:_0x485d1f}of this['_findSuggestions'](_0x31d8d7,'formatInline')){if(!_0x485d1f['isOwn'])continue;if(_0x2462fc['subType']!=_0x2adeb4)continue;if(!qt(_0x2462fc,_0x4d3b12))continue;const _0xc739e8=_0x2462fc['getFirstRange']();if(_0xc739e8['containsRange'](_0x31d8d7,!0x0))return null;_0x100a83=_0x100a83['isBefore'](_0xc739e8['start'])?_0x100a83:_0xc739e8['start'],_0x4b0cf5=_0x4b0cf5['isAfter'](_0xc739e8['end'])?_0x4b0cf5:_0xc739e8['end'],_0x50f90f?_0xc739e8['start']['isBefore'](_0x50f90f['getFirstRange']()['start'])?(_0x50f90f['removeMarkers'](),_0x50f90f=_0x2462fc):_0x2462fc['removeMarkers']():_0x50f90f=_0x2462fc;}const _0x1ed9c8=this['_model']['createRange'](_0x100a83,_0x4b0cf5);if(_0x50f90f)this['_setSuggestionRange'](_0x50f90f,_0x1ed9c8);else{const _0x8331e3=_0x39f5a3(),_0x558db0=_0x3cb601['id'];this['_setSuggestionData']({'id':_0x8331e3,'type':'formatInline:'+_0x2adeb4,'data':_0x1ec189,'createdAt':new Date(),'authorId':_0x558db0,'attributes':_0x4d3b12}),this['_addSuggestionMarker']('formatInline:'+_0x2adeb4,_0x8331e3,_0x558db0,_0x1ed9c8);}}return null;}['markBlockFormat'](_0x5e14f3,_0x53fe7e,_0x204462=[],_0x3beb30=null,_0x13e981={}){_0x53fe7e['formatGroupId']||(_0x53fe7e['formatGroupId']=_0x53fe7e['commandName']),_0x53fe7e['multipleBlocks']=_0x5e14f3['is']('range'),_0x3beb30=_0x3beb30||Gt(_0x53fe7e);const _0x46fc26=_0x204462['map'](_0x512fef=>Lt(_0x512fef,this['_model'])),_0x2f80c9=_0x5e14f3['is']('range')?_0x5e14f3:Lt(_0x5e14f3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3074c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3beb30,'accept');return this['forceDefaultExecution'](()=>_0x3074c8([_0x2f80c9],_0x53fe7e,_0x13e981)),null;}_0x46fc26['push'](_0x2f80c9);let _0x528e7d=!0x0;for(const _0x2978d1 of _0x46fc26)if(!this['_rangeIsInLocalUserInsertion'](_0x2978d1)){_0x528e7d=!0x1;break;}if(_0x528e7d&&'always'!==this['_trackFormatChanges']){const _0x3d3198=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3beb30,'accept');return this['forceDefaultExecution'](()=>_0x3d3198([_0x2f80c9],_0x53fe7e,_0x13e981)),null;}let _0x3a723b=null,_0x3d7952=_0x2f80c9['start'],_0x3f8f96=_0x2f80c9['end'];for(const {suggestion:_0x46089c,meta:_0x228dc3}of this['_findSuggestions'](_0x2f80c9,'formatBlock')){if(!_0x228dc3['isOwn'])continue;if(_0x228dc3['isNextTo']||_0x228dc3['containsRangeInObject']||_0x228dc3['isInsideObject'])continue;if(_0x46089c['data']['formatGroupId']!=_0x53fe7e['formatGroupId'])continue;if(!qt(_0x46089c,_0x13e981))continue;const _0xe103ac=_0x46089c['getFirstRange']();if(_0x46089c['subType']==_0x3beb30){if(_0xe103ac['containsRange'](_0x2f80c9,!0x0))return null;_0x3d7952=_0x3d7952['isBefore'](_0xe103ac['start'])?_0x3d7952:_0xe103ac['start'],_0x3f8f96=_0x3f8f96['isAfter'](_0xe103ac['end'])?_0x3f8f96:_0xe103ac['end'],_0x3a723b?_0xe103ac['start']['isBefore'](_0x3a723b['getFirstRange']()['start'])?(_0x3a723b['removeMarkers'](),_0x3a723b=_0x46089c):_0x46089c['removeMarkers']():_0x3a723b=_0x46089c;}else{const _0x30b357=_0x2f80c9['getIntersection'](_0xe103ac);this['_cutOutSuggestionMarker'](_0x46089c,_0x30b357);}}const _0x66aff2=this['editor']['plugins']['get']('Users')['me'],_0x40cc41=_0x39f5a3(),_0xbb0777=_0x66aff2['id'];if(_0x3a723b)return this['_setSuggestionRange'](_0x3a723b,this['_model']['createRange'](_0x3d7952,_0x3f8f96)),_0x3a723b;{const _0x56558e=this['_setSuggestionData']({'id':_0x40cc41,'type':'formatBlock:'+_0x3beb30,'data':_0x53fe7e,'createdAt':new Date(),'authorId':_0xbb0777,'attributes':_0x13e981});return this['_addSuggestionMarker']('formatBlock:'+_0x3beb30,_0x40cc41,_0xbb0777,this['_model']['createRange'](_0x3d7952,_0x3f8f96)),_0x56558e;}}['markMultiRangeBlockFormat'](_0x1ac904,_0x47ec6f,_0x26dd5a=[],_0x4973ac=null,_0x458e5a={}){_0x47ec6f['formatGroupId']||(_0x47ec6f['formatGroupId']=_0x47ec6f['commandName']);const _0x25c9ba=_0x1ac904[0x0];_0x47ec6f['multipleBlocks']=_0x25c9ba['is']('range'),_0x4973ac=_0x4973ac||Gt(_0x47ec6f);const _0x4040eb=_0x26dd5a['map'](_0x17cc47=>Lt(_0x17cc47,this['_model'])),_0x56947e=_0x25c9ba['is']('range')?_0x1ac904:_0x1ac904['map'](_0x25444c=>Lt(_0x25444c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b9714=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4973ac,'accept');return this['forceDefaultExecution'](()=>_0x2b9714(_0x56947e,_0x47ec6f,_0x458e5a)),null;}_0x4040eb['push'](..._0x56947e);let _0x500497=!0x0;for(const _0x2fcffc of _0x4040eb)if(!this['_rangeIsInLocalUserInsertion'](_0x2fcffc)){_0x500497=!0x1;break;}if(_0x500497&&'always'!==this['_trackFormatChanges']){const _0x21053d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4973ac,'accept');return this['forceDefaultExecution'](()=>_0x21053d(_0x56947e,_0x47ec6f,_0x458e5a)),null;}const _0x50ec9f=this['editor']['plugins']['get']('Users')['me'];for(const _0x24cd74 of this['getSuggestions']()){if(_0x24cd74['author']['id']!=_0x50ec9f['id'])continue;if('formatBlock'!=_0x24cd74['type']||_0x24cd74['data']['formatGroupId']!=_0x47ec6f['formatGroupId'])continue;if(!qt(_0x24cd74,_0x458e5a))continue;const _0x5b8838=_0x24cd74['subType']==_0x4973ac;for(let _0x3ad589=0x0;_0x3ad589<_0x56947e['length'];_0x3ad589++){const _0x159810=_0x56947e[_0x3ad589];for(const _0x58e692 of _0x24cd74['getMarkers']()){const _0x293413=_0x58e692['getRange']();if(_0x159810['isEqual'](_0x293413)){_0x5b8838?(_0x56947e['splice'](_0x3ad589,0x1),_0x3ad589--):_0x24cd74['removeMarker'](_0x58e692['name']);break;}}}}if(0x0==_0x56947e['length'])return null;const _0x1901a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4973ac,'join');for(const _0x1895c9 of this['getSuggestions']())if(_0x1895c9['author']['id']==_0x50ec9f['id']&&'formatBlock'==_0x1895c9['type']&&_0x1895c9['data']['formatGroupId']==_0x47ec6f['formatGroupId']&&_0x1895c9['subType']==_0x4973ac&&qt(_0x1895c9,_0x458e5a)&&(_0x1901a8(_0x1895c9['getRanges'](),_0x56947e)||_0x1901a8(_0x56947e,_0x1895c9['getRanges']()))){for(const _0x3f5f0f of _0x56947e)_0x1895c9['addRange'](_0x3f5f0f);return _0x1895c9;}const _0x453fb2=_0x39f5a3(),_0x57face=_0x50ec9f['id'],_0x2b30c1='formatBlock:'+_0x4973ac,_0x3ca978=this['_setSuggestionData']({'id':_0x453fb2,'type':_0x2b30c1,'data':_0x47ec6f,'createdAt':new Date(),'authorId':_0x57face,'attributes':_0x458e5a});for(const _0x7a6121 of _0x56947e)this['_addSuggestionMarker'](_0x2b30c1,_0x453fb2,_0x57face,_0x7a6121,u['getMultiRangeId']());return _0x3ca978;}['markDeletion'](_0x32f3a3,_0x179bda=null,_0x1602bb={}){if(_0x32f3a3['isCollapsed'])return null;const _0x36a73a=this['editor']['plugins']['get']('Users')['me'],_0xdaff09=new _0x3dd19f(_0x32f3a3['start'],_0x32f3a3['end']);for(const {suggestion:_0x4c061a,meta:_0x53823e}of this['_findSuggestions'](_0xdaff09,'insertion'))if(_0x53823e['isOwn']&&!_0x53823e['isNextTo']){if(_0x4c061a['isMultiRange']){const _0x20ab3d=_0x4c061a['getRanges']()['filter'](_0x1784a3=>'$graveyard'!=_0x1784a3['root']['rootName']);_0x20ab3d['every'](_0x348f7d=>_0xdaff09['containsRange'](_0x348f7d,!0x0))&&_0x4c061a['discard']();if(_0x20ab3d['some'](_0x1643b0=>_0x1643b0['containsRange'](_0xdaff09,!0x0))){const _0x377150=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x179bda,'accept');return this['forceDefaultExecution'](()=>_0x377150([_0xdaff09],null,_0x1602bb)),null;}}else{const _0x1bc2ba=_0xdaff09['getIntersection'](_0x4c061a['getFirstRange']());null!==_0x1bc2ba&&_0x4c061a['_onDiscard']([_0x1bc2ba],null,_0x1602bb);}}if(_0xdaff09['detach'](),_0xdaff09['isCollapsed']||'$graveyard'==_0xdaff09['root']['rootName'])return null;let _0x287279=null,_0x1cd13a=_0xdaff09['start'],_0x4775a2=_0xdaff09['end'];const _0x25ae1a=this['_findSuggestions'](_0xdaff09,'deletion');for(const {suggestion:_0x3d21b9,meta:_0x3643a5}of _0x25ae1a){const _0x2e5f2e=this['_model']['createRange'](_0x1cd13a,_0x4775a2);if(_0x3643a5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3643a5['containsRangeInObject']&&!_0x3643a5['isInsideObject'])){if(_0x3d21b9['isMultiRange']){if(!qt(_0x3d21b9,_0x1602bb))continue;let _0x5d81c1=!0x0;for(const _0x3a2d1e of _0x3d21b9['getRanges']()){if(_0x3a2d1e['containsRange'](_0x2e5f2e,!0x0))return _0x3d21b9;_0x2e5f2e['containsRange'](_0x3a2d1e)||(_0x5d81c1=!0x1);}_0x5d81c1&&_0x3d21b9['discard']();}else{const _0x40758e=_0x3d21b9['getFirstRange']();if(_0x40758e['containsRange'](_0x2e5f2e,!0x0))return _0x3d21b9;if(!qt(_0x3d21b9,_0x1602bb)){_0x2e5f2e['containsRange'](_0x40758e)?_0x3d21b9['removeMarkers']():_0x40758e['containsPosition'](_0x1cd13a)?_0x1cd13a=_0x40758e['end']:_0x40758e['containsPosition'](_0x4775a2)&&(_0x4775a2=_0x40758e['start']);continue;}_0x1cd13a=_0x1cd13a['isBefore'](_0x40758e['start'])?_0x1cd13a:_0x40758e['start'],_0x4775a2=_0x4775a2['isAfter'](_0x40758e['end'])?_0x4775a2:_0x40758e['end'],_0x1602bb=Object['assign']({},_0x3d21b9['attributes']),_0x287279?_0x40758e['start']['isBefore'](_0x287279['getFirstRange']()['start'])?(_0x287279['removeMarkers'](),_0x287279=_0x3d21b9):_0x3d21b9['removeMarkers']():_0x287279=_0x3d21b9;}}}if(_0x287279)return this['_setSuggestionRange'](_0x287279,this['_model']['createRange'](_0x1cd13a,_0x4775a2)),_0x287279;{const _0x372bc2=_0x39f5a3(),_0x14b9dc=this['_model']['createRange'](_0x1cd13a,_0x4775a2),_0x55aba0=_0x36a73a['id'],_0x320f82=_0x179bda?'deletion:'+_0x179bda:'deletion',_0x2ab842=this['_setSuggestionData']({'id':_0x372bc2,'type':_0x320f82,'createdAt':new Date(),'authorId':_0x55aba0,'attributes':_0x1602bb});return this['_addSuggestionMarker'](_0x320f82,_0x372bc2,_0x55aba0,_0x14b9dc),_0x2ab842;}}['markMultiRangeDeletion'](_0x43a1f1,_0x1d56d4='multi',_0x1ec8ea={}){const _0x992f53=this['editor']['plugins']['get']('Users')['me'],_0x49da51=_0x43a1f1['map'](_0x1dd00a=>new _0x3dd19f(_0x1dd00a['start'],_0x1dd00a['end'])),_0x32c145=new Set();for(const {suggestion:_0x5a075e,meta:_0x4ad090}of this['_findSuggestions'](_0x49da51,'insertion'))_0x4ad090['isOwn']&&!_0x4ad090['isNextTo']&&_0x32c145['add'](_0x5a075e);for(const _0x1ab1c6 of _0x32c145)if(_0x1ab1c6['isMultiRange']){const _0x1fa069=_0x1ab1c6['getRanges']();(!_0x1ab1c6['attributes']||!_0x1ab1c6['attributes']['skipNestingCheck'])&&(_0x1fa069['every'](_0x2a2e3e=>_0x49da51['some'](_0x23c81e=>_0x23c81e['containsRange'](_0x2a2e3e,!0x0)))&&_0x1ab1c6['discard']());if(_0x49da51['every'](_0x23a665=>_0x1fa069['some'](_0x29829b=>_0x29829b['containsRange'](_0x23a665,!0x0)))){const _0x41f15f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d56d4,'accept');return this['forceDefaultExecution'](()=>_0x41f15f(_0x43a1f1,null,_0x1ec8ea)),null;}}else{const _0x5f3f4c=_0x1ab1c6['getFirstRange']();_0x49da51['some'](_0x104bc3=>_0x104bc3['containsRange'](_0x5f3f4c,!0x0))&&_0x1ab1c6['discard']();if(_0x49da51['every'](_0x20e885=>_0x5f3f4c['containsRange'](_0x20e885,!0x0))){const _0x2006bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d56d4,'accept');return this['forceDefaultExecution'](()=>_0x2006bc(_0x49da51,null,_0x1ec8ea)),null;}}const _0x2d62b9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d56d4,'join');let _0x2c9003=null;for(const _0x4bd66b of this['getSuggestions']())if(_0x4bd66b['author']['id']==_0x992f53['id']&&_0x4bd66b['isInContent']&&'deletion'==_0x4bd66b['type']&&_0x4bd66b['subType']==_0x1d56d4&&qt(_0x4bd66b,_0x1ec8ea)&&(_0x2d62b9(_0x4bd66b['getRanges'](),_0x49da51)||_0x2d62b9(_0x49da51,_0x4bd66b['getRanges']()))){if(_0x2c9003){if(_0x4bd66b['commentThread']&&_0x4bd66b['commentThread']['length'])continue;for(const _0x1ef833 of _0x4bd66b['getRanges']())_0x2c9003['isIntersectingWithRange'](_0x1ef833)||_0x2c9003['addRange'](_0x1ef833);_0x4bd66b['removeMarkers']();}else{_0x2c9003=_0x4bd66b;for(const _0x400667 of _0x49da51)_0x4bd66b['isIntersectingWithRange'](_0x400667)||_0x4bd66b['addRange'](_0x400667);}}if(_0x2c9003)return _0x2c9003;_0x32c145['clear']();for(const {suggestion:_0x49ad16,meta:_0x3fa0ed}of this['_findSuggestions'](_0x49da51,'deletion'))_0x3fa0ed['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3fa0ed['containsRangeInObject']&&!_0x3fa0ed['isInsideObject'])&&qt(_0x49ad16,_0x1ec8ea)&&_0x32c145['add'](_0x49ad16);for(const _0x3a16b3 of _0x32c145){const _0x5a560f=_0x3a16b3['getRanges']();if(!_0x1ec8ea||!_0x1ec8ea['skipNestingCheck']){if(_0x49da51['every'](_0x427a7a=>_0x5a560f['some'](_0x5aaea8=>_0x5aaea8['containsRange'](_0x427a7a,!0x0))))return _0x3a16b3;}(!_0x3a16b3['attributes']||!_0x3a16b3['attributes']['skipNestingCheck'])&&(_0x5a560f['every'](_0x206a57=>_0x49da51['some'](_0x26aa7b=>_0x26aa7b['containsRange'](_0x206a57,!0x0)))&&_0x3a16b3['discard']());}const _0x3a5d36=_0x39f5a3(),_0x477f99=_0x992f53['id'],_0x34299e='deletion:'+_0x1d56d4,_0x385108=this['_setSuggestionData']({'id':_0x3a5d36,'type':_0x34299e,'createdAt':new Date(),'authorId':_0x477f99,'attributes':_0x1ec8ea});for(const _0x136662 of _0x49da51)_0x136662['detach'](),_0x136662['isCollapsed']||'$graveyard'==_0x136662['root']['rootName']||this['_addSuggestionMarker'](_0x34299e,_0x3a5d36,_0x477f99,_0x136662,u['getMultiRangeId']());return _0x385108;}['markAttributeChange'](_0x45de9b,_0x11b7cd,_0x1a0e60,_0x5cb94a,_0x4fd46e){if(_0x45de9b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f2610=this['editor']['plugins']['get']('Users')['me']['id'],_0x310373=Array['from'](this['_suggestions']['values']())['filter'](_0x24dbb5=>'attribute'==_0x24dbb5['type']&&_0x24dbb5['data']['key']==_0x11b7cd&&_0x24dbb5['isIntersectingWithRange'](_0x45de9b));if('default'===this['_trackFormatChanges']){const _0x5ef457=this['_findSuggestions'](_0x45de9b,'insertion')['filter'](({meta:_0x40aa26})=>_0x40aa26['isOwn']&&!_0x40aa26['isInsideObject']&&!_0x40aa26['isNextTo'])['map'](({suggestion:_0x1f6fa2})=>_0x1f6fa2);_0x310373['unshift'](..._0x5ef457);}const _0x11f957=new Map([[_0x45de9b,_0x1a0e60]]);for(const _0x24d303 of _0x310373){const _0x1dd508='attribute'==_0x24d303['type']?_0x24d303['data']['oldValue']:void 0x0,_0x3c4e56=_0x24d303['getFirstRange'](),_0x4002a7=Array['from'](_0x11f957['keys']())['find'](_0x35d3ad=>_0x35d3ad['isIntersecting'](_0x3c4e56));if(!_0x4002a7)continue;const _0x45af35=_0x4002a7['getDifference'](_0x3c4e56);this['_isBlockAttribute'](_0x11b7cd)&&'insertion'==_0x24d303['type']&&0x0!=_0x45af35['length']||(_0x11f957['delete'](_0x4002a7),_0x45af35['forEach'](_0x2ab146=>{_0x11f957['set'](_0x2ab146,_0x1a0e60);}),'insertion'!=_0x24d303['type']&&_0x1dd508!=_0x5cb94a&&_0x11f957['set'](_0x4002a7['getIntersection'](_0x3c4e56),_0x1dd508));}const _0x200757=[];for(const [_0x4f525a,_0x106d49]of _0x11f957){const _0x46f885=_0x39f5a3(),_0x3a6f48={'key':_0x11b7cd,'oldValue':_0x106d49,'newValue':_0x5cb94a};_0x11b7cd['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':_0x11b7cd});const _0x23c743=('attribute:'+(_0x11b7cd+'|'+Gt({'newValue':_0x5cb94a})))['substring'](0x0,0x3c),_0x2010a0=this['_setSuggestionData']({'id':_0x46f885,'type':_0x23c743,'data':_0x3a6f48,'createdAt':new Date(),'authorId':_0x4f2610,'attributes':_0x4fd46e});_0x200757['push'](_0x2010a0),this['_addSuggestionMarker'](_0x23c743,_0x46f885,_0x4f2610,_0x4f525a);}return _0x200757;}['enableDefaultAttributesIntegration'](_0x27cf31){this['enableCommand'](_0x27cf31,(_0x36c0ba,..._0xef2cb7)=>{this['_recordAttributeChanges'](()=>{_0x36c0ba(..._0xef2cb7);});});}['registerBlockAttribute'](_0x55b73d){this['_blockAttributeKeys']['add'](_0x55b73d);}['registerInlineAttribute'](_0x25808b){this['_inlineAttributeKeys']['add'](_0x25808b);}['_getAttributeKey'](_0x49bc85){return'attribute'==_0x49bc85['type']?_0x49bc85['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4ecc4f,_0x34ae02){const _0x2bc104=_0x4ecc4f['getFirstMarker']();this['_model']['change'](_0xf3c04=>{_0xf3c04['updateMarker'](_0x2bc104,{'range':_0x34ae02});});}['_addThreadToSuggestion'](_0x55e182){const _0x5b825b=_0x55e182['id'],_0x212d2c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5b825b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x212d2c,'threadId':_0x5b825b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2412c8=this['_commentsRepository']['getCommentThread'](_0x5b825b);_0x2412c8['unbind']('isRemovable'),_0x2412c8['isRemovable']=!0x1,_0x55e182['commentThread']=_0x2412c8;}['_checkSuggestionCorrectness'](_0x38d487,_0xae5e94,_0x571f02,_0x1aedd4){if(_0x38d487['type']!=_0xae5e94||_0x38d487['subType']!=_0x571f02||_0x38d487['creator']['id']!=_0x1aedd4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4547e5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3658fd,_0x18ddca){const _0x261c4e=_0x3658fd['getFirstRange']();if(_0x18ddca['isEqual'](_0x261c4e))_0x3658fd['removeMarkers']();else{if(_0x261c4e['containsRange'](_0x18ddca)){const _0x4e7aa2=this['_model']['createPositionAt'](_0x18ddca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3658fd,this['_model']['createRange'](_0x261c4e['start'],_0x4e7aa2));const _0x544f1c=_0x39f5a3(),_0x4b2b77=_0x3658fd['creator']['id'],_0x1a4d0e=_0x3658fd['type']+':'+_0x3658fd['subType'];this['_setSuggestionData']({'id':_0x544f1c,'type':_0x1a4d0e,'createdAt':new Date(),'authorId':_0x4b2b77,'data':_0x3658fd['data'],'attributes':_0x3658fd['attributes']});const _0x5714f6=this['_model']['createPositionAt'](_0x18ddca['end']['parent'],'after'),_0x5b649f=this['_model']['createRange'](_0x5714f6,_0x261c4e['end']);this['_addSuggestionMarker'](_0x1a4d0e,_0x544f1c,_0x4b2b77,_0x5b649f);}else{if(_0x261c4e['containsPosition'](_0x18ddca['start'])){const _0x5910ac=this['_model']['createPositionAt'](_0x18ddca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3658fd,this['_model']['createRange'](_0x261c4e['start'],_0x5910ac));}else{const _0x4d51ef=this['_model']['createPositionAt'](_0x18ddca['end']['parent'],'after');this['_setSuggestionRange'](_0x3658fd,this['_model']['createRange'](_0x4d51ef,_0x261c4e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x398773){for(const {suggestion:_0x1c072a,meta:_0x1c313d}of this['_findSuggestions'](_0x398773,'insertion')){if(!_0x1c313d['isOwn'])continue;const _0x2c480e=_0x1c072a['getRanges']();for(const _0x47e791 of _0x2c480e)if(!_0x398773['getDifference'](_0x47e791)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x467d6e){const _0x1b50f3=this['editor']['plugins']['get']('Users')['getUser'](_0x467d6e);if(!_0x1b50f3)throw new _0x4547e5('track-changes-user-not-found',this);return _0x1b50f3;}['_getExternalAuthor'](_0x16d219){const _0x3f0517=this['editor']['plugins']['get']('Users'),_0x5e28f4=_0x4de4d5('external:'+_0x16d219),_0x2aa948=_0x3f0517['getUser'](_0x5e28f4);return _0x2aa948||_0x3f0517['addUser']({'id':_0x5e28f4,'name':_0x16d219});}['_createSuggestion'](_0x131121,_0x348628,_0xc5f130,_0x492a1d,_0x502adf){const _0xecef0a=this['_getAuthorFromId'](_0x492a1d),_0x95818a=this['_suggestionFactory']['buildSuggestion'](_0x131121,_0x348628,_0xc5f130,_0xecef0a,_0x502adf,_0x465263=>{this['_updateSuggestionData'](_0xc5f130,{'attributes':_0x465263});const _0xfb1701=this['getSuggestion'](_0xc5f130);this['_joinWithAdjacentSuggestions'](new Set([_0xfb1701])),this['_refreshSuggestionsChain'](new Set([_0xfb1701]));});return this['listenTo'](_0x95818a,'accept',()=>{this['_updateSuggestionData'](_0xc5f130,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x95818a,'discard',()=>{this['_updateSuggestionData'](_0xc5f130,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc5f130,_0x95818a),this['_suggestionState']['set'](_0x95818a,'notReady'),_0x95818a;}['_splitMarkerName'](_0x154a20){const _0x389b92=_0x154a20['split'](':');return{'group':_0x389b92[0x0],'type':_0x389b92[0x1],'subType':_0x389b92['length']>=0x5?_0x389b92[0x2]:null,'id':_0x389b92['length']<0x5?_0x389b92[0x2]:_0x389b92[0x3],'authorId':_0x389b92['length']<0x5?_0x389b92[0x3]:_0x389b92[0x4],'markerCount':0x6==_0x389b92['length']?_0x389b92[0x5]:null};}['_breakSuggestionMarker'](_0x13ca79,_0x2ae08f,_0x14ac10){const _0x1e7862=_0x13ca79['getFirstRange'](),_0x3fa1ec=_0x1e7862['start'],_0x3d6c75=_0x1e7862['end'];this['_setSuggestionRange'](_0x13ca79,this['_model']['createRange'](_0x3fa1ec,_0x2ae08f));const _0x3bfa43=_0x39f5a3(),_0x3eac82=_0x13ca79['creator']['id'],_0x9acf46=_0x13ca79['type']+(_0x13ca79['subType']?':'+_0x13ca79['subType']:'');this['_setSuggestionData']({'id':_0x3bfa43,'type':_0x9acf46,'createdAt':new Date(),'authorId':_0x3eac82,'originalSuggestionId':_0x13ca79['id'],'attributes':_0x13ca79['attributes'],'data':_0x13ca79['data']});const _0x16e938=this['_getAttributeKey'](_0x13ca79);('formatBlock'==_0x13ca79['type']||_0x16e938&&this['_isBlockAttribute'](_0x16e938))&&(_0x14ac10=this['_model']['createPositionBefore'](_0x14ac10['parent'])),this['_addSuggestionMarker'](_0x9acf46,_0x3bfa43,_0x3eac82,this['_model']['createRange'](_0x14ac10,_0x3d6c75));}['_findSuggestions'](_0xadae7,_0x503f05=null){const _0x5a7767=[],_0x55d319=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xadae7)||(_0xadae7=[_0xadae7]);for(const _0x4ca0b2 of this['getSuggestions']()){if(!_0x4ca0b2['isInContent'])continue;if(_0x503f05&&_0x4ca0b2['type']!=_0x503f05)continue;let _0x3faa7b=!0x1;for(const _0x4d956a of _0x4ca0b2['getRanges']()){for(const _0xaa63f2 of _0xadae7){const _0x1c5065=_0xaa63f2['start']['isEqual'](_0x4d956a['end'])||_0xaa63f2['end']['isEqual'](_0x4d956a['start']);if(_0x1c5065||_0xaa63f2['getIntersection'](_0x4d956a)){const _0x8c5a7f=_0xaa63f2['containsRange'](_0x4d956a)&&Ot(this['_model']['schema'],_0x4d956a['start'],_0xaa63f2),_0x256e89=_0x4d956a['containsRange'](_0xaa63f2)&&Ot(this['_model']['schema'],_0xaa63f2['start'],_0x4d956a);_0x5a7767['push']({'suggestion':_0x4ca0b2,'meta':{'isOwn':_0x55d319==_0x4ca0b2['author'],'isNextTo':_0x1c5065,'isInsideObject':_0x8c5a7f,'containsRangeInObject':_0x256e89}}),_0x3faa7b=!0x0;break;}}if(_0x3faa7b)break;}}return _0x5a7767;}['_addSuggestionMarker'](_0x5151c6,_0x495827,_0x1e3784,_0x2ad5d3,_0x3b15bb){this['_model']['change'](_0xc400b2=>{let _0x270736='suggestion:'+_0x5151c6+':'+_0x495827+':'+_0x1e3784;_0x3b15bb&&(_0x270736=_0x270736+':'+_0x3b15bb),_0xc400b2['addMarker'](_0x270736,{'range':_0x2ad5d3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3e1de2){const _0x2119fa=_0x3e1de2['previous'],_0x81220d=_0x3e1de2['next'];_0x3e1de2['previous']=null,_0x3e1de2['next']=null,null!=_0x2119fa&&_0x2119fa['next']==_0x3e1de2&&(_0x2119fa['next']=_0x81220d),null!=_0x81220d&&_0x81220d['previous']==_0x3e1de2&&(_0x81220d['previous']=_0x2119fa),'ready'==this['_suggestionState']['get'](_0x3e1de2)&&(this['_suggestionState']['set'](_0x3e1de2,'removed'),this['fire']('suggestionUnloaded',_0x3e1de2,_0x2119fa,_0x81220d));}['_setSuggestionData'](_0x32c531){const _0x3c4e05=_0x32c531['id'],_0x2ba7bf=this['addSuggestionData'](_0x32c531);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f61b5=this['editor']['plugins']['get']('PendingActions'),_0x11f266=_0x2ba7bf['hasComments'],_0x44c458=_0x2ba7bf['subType']?_0x2ba7bf['type']+':'+_0x2ba7bf['subType']:_0x2ba7bf['type'],_0x3663cb=this['editor']['locale'],_0xd02b8b=_0x2f61b5['add'](o(_0x3663cb,'PENDING_ACTION_SUGGESTION')),_0x522a0e={'id':_0x3c4e05,'type':_0x44c458,'hasComments':_0x11f266,'data':_0x32c531['data']||null,'originalSuggestionId':_0x32c531['originalSuggestionId']||null,'attributes':_0x2ba7bf['attributes']};this['_adapter']['addSuggestion'](_0x522a0e)['then'](_0x18e8fb=>{_0x2ba7bf['_saved']=!0x0,_0x2f61b5['remove'](_0xd02b8b),_0x18e8fb&&_0x18e8fb['createdAt']&&(this['_suggestions']['get'](_0x3c4e05)['createdAt']=_0x18e8fb['createdAt']);})['catch'](_0x542793=>{throw _0x40c625('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ba7bf['discard']();}),_0x2ba7bf['stopListening'](),this['_suggestions']['delete'](_0x2ba7bf['id']),this['_suggestionState']['delete'](_0x2ba7bf),_0x542793;});}return _0x2ba7bf;}['_isBlockAttribute'](_0x1c358c){return this['_blockAttributeKeys']['has'](_0x1c358c);}['_updateSuggestionData'](_0x46d7bd,_0xbfb54c){const _0xcef08e=this['editor']['plugins']['get']('PendingActions'),_0x4bdf00=this['getSuggestion'](_0x46d7bd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4bdf00['_saved']){const _0x19fb68=_0xcef08e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46d7bd,_0xbfb54c)['then'](()=>{_0xcef08e['remove'](_0x19fb68);});}else _0x4bdf00['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46d7bd,_0xbfb54c);});}}['_getSuggestionData'](_0x2c36bd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4547e5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2c36bd);}['_handleNewSuggestionMarker'](_0x2feda1){const {id:_0x21d1ed,type:_0x5e2d66,subType:_0x37981e,authorId:_0x133528}=this['_splitMarkerName'](_0x2feda1),_0x48e795=this['_suggestions']['get'](_0x21d1ed)||this['_createSuggestion'](_0x5e2d66,_0x37981e,_0x21d1ed,_0x133528,{});switch(this['_checkSuggestionCorrectness'](_0x48e795,_0x5e2d66,_0x37981e,_0x133528),this['_suggestionState']['get'](_0x48e795)){case'notReady':this['_getSuggestionData'](_0x21d1ed)['then'](_0x2e448a=>{let _0x529403=Promise['resolve']();_0x2e448a['hasComments']&&(_0x529403=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21d1ed})),_0x529403['then'](()=>{this['addSuggestionData'](_0x2e448a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x48e795,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21d1ed,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x48e795,'ready'),this['fire']('suggestionLoaded',_0x48e795);break;case'ready':this['fire']('suggestionChanged',_0x48e795);}return _0x48e795['addMarkerName'](_0x2feda1),_0x48e795;}['_refreshSuggestionsChain'](_0x283451){const _0x51f2b0=Array['from'](_0x283451),_0x3b4574=_0x51f2b0['filter'](_0x22de73=>'attribute'==_0x22de73['type']);this['_refreshAttributeSuggestionsChain'](_0x3b4574);const _0x30e85a=_0x51f2b0['filter'](_0x183516=>!_0x183516['isMultiRange']&&'attribute'!=_0x183516['type']),_0x55891a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38be28=>!_0x38be28['isMultiRange']&&'attribute'!=_0x38be28['type']),_0x42fab0=_0x55891a['filter'](_0x10600f=>!_0x283451['has'](_0x10600f)),_0x175a2d=new Map(_0x55891a['map'](_0x3516f6=>[_0x3516f6,this['_suggestionFactory']['getSuggestionCallback'](_0x3516f6['type'],_0x3516f6['subType'],'chain')])),_0x344d9f=new Map(_0x55891a['map'](_0x3d0517=>[_0x3d0517,_0x3d0517['getFirstRange']()])),_0x43896c=new Set(),_0x5f6ec2=new Set();for(let _0x5cd1a0=0x0;_0x5cd1a0<_0x30e85a['length'];_0x5cd1a0++)_0x52abfa(_0x30e85a[_0x5cd1a0],_0x30e85a,_0x5cd1a0+0x1);for(let _0x4c2be5=0x0;_0x4c2be5<_0x30e85a['length'];_0x4c2be5++)_0x52abfa(_0x30e85a[_0x4c2be5],_0x42fab0,0x0);const _0x501f18=new Set();for(let _0x242803=0x0;_0x242803<_0x30e85a['length'];_0x242803++){const _0x2c57bb=_0x30e85a[_0x242803];!_0x5f6ec2['has'](_0x2c57bb)&&_0x2c57bb['previous']&&(_0x501f18['add'](_0x2c57bb['previous']),_0x2c57bb['previous']['next']===_0x2c57bb&&(_0x2c57bb['previous']['next']=null),_0x2c57bb['previous']=null),!_0x43896c['has'](_0x2c57bb)&&_0x2c57bb['next']&&(_0x501f18['add'](_0x2c57bb['next']),_0x2c57bb['next']['previous']===_0x2c57bb&&(_0x2c57bb['next']['previous']=null),_0x2c57bb['next']=null);}function _0x52abfa(_0x570438,_0x2f54c9,_0x16c942){for(let _0x1053c6=_0x16c942;_0x1053c6<_0x2f54c9['length'];_0x1053c6++){const _0x381eed=_0x6058bf(_0x570438,_0x2f54c9[_0x1053c6]);_0x381eed&&(_0x381eed[0x0]['next']=_0x381eed[0x1],_0x381eed[0x1]['previous']=_0x381eed[0x0],_0x43896c['add'](_0x381eed[0x0]),_0x5f6ec2['add'](_0x381eed[0x1]));}}function _0x6058bf(_0x3fcb2b,_0x204821){if(_0x3fcb2b['author']['id']!==_0x204821['author']['id'])return null;const _0x3ae4ab=_0x175a2d['get'](_0x3fcb2b)(_0x3fcb2b,_0x204821,_0x344d9f['get'](_0x3fcb2b),_0x344d9f['get'](_0x204821));if(!_0x3ae4ab)return null;return _0x175a2d['get'](_0x204821)(_0x3fcb2b,_0x204821,_0x344d9f['get'](_0x3fcb2b),_0x344d9f['get'](_0x204821))?_0x3ae4ab[0x1]['commentThread']&&_0x3ae4ab[0x1]['commentThread']['length']?null:_0x3ae4ab:null;}_0x501f18['size']&&this['_refreshSuggestionsChain'](_0x501f18);}['_refreshAttributeSuggestionsChain'](_0x312059){if(0x0==_0x312059['length'])return;const _0xb126d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc281ab=>'attribute'==_0xc281ab['type']&&_0xc281ab['_isDataLoaded']),_0x2381fb=[],_0x4f8e04=new Map();for(const _0x1bba70 of _0xb126d1){const _0x20f946=_0x4de4d5(_0x1bba70['attributes']);_0x4f8e04['has'](_0x20f946)||(_0x4f8e04['set'](_0x20f946,_0x2381fb['length']),_0x2381fb['push']([]));const _0x443303=_0x4f8e04['get'](_0x20f946);_0x2381fb[_0x443303]['push'](_0x1bba70);}!(function(){_0x2381fb['sort']((_0x4af2f0,_0xf12a58)=>{const _0x456fce=_0x4af2f0[0x0]['createdAt'],_0x31e616=_0xf12a58[0x0]['createdAt'];return _0x456fce==_0x31e616?_0x4af2f0[0x0]['attributes']['groupId']<_0xf12a58[0x0]['attributes']['groupId']?-0x1:0x1:_0x456fce<_0x31e616?-0x1:0x1;});for(const _0x55e7e5 of _0x2381fb)_0x55e7e5['sort']((_0xf8fc60,_0x3807cd)=>_0xf8fc60['id']<_0x3807cd['id']?-0x1:0x1);}());for(let _0x336a7e=0x0;_0x336a7e<_0x2381fb['length'];_0x336a7e++){if(0x0==_0x2381fb[_0x336a7e]['length'])continue;const _0x271b33=[];for(let _0x2fc549=_0x336a7e+0x1;_0x2fc549<_0x2381fb['length'];_0x2fc549++)0x0!=_0x2381fb[_0x2fc549]['length']&&_0x1fd200(_0x2381fb[_0x336a7e],_0x2381fb[_0x2fc549])&&_0x271b33['push'](_0x2fc549);for(const _0x17b946 of _0x271b33)_0x2381fb[_0x336a7e]=_0x2381fb[_0x336a7e]['concat'](_0x2381fb[_0x17b946]),_0x2381fb[_0x17b946]=[];}for(const _0x31320d of _0x2381fb)for(let _0x46f748=0x0;_0x46f748<_0x31320d['length'];_0x46f748++){const _0x1593e1=_0x31320d[_0x46f748+0x1]||null;_0x31320d[_0x46f748]['next']!==_0x1593e1&&(_0x31320d[_0x46f748]['next']=_0x1593e1);}for(const _0x4c1112 of _0x2381fb)for(let _0x16ca5b=0x0;_0x16ca5b<_0x4c1112['length'];_0x16ca5b++){const _0x7813f9=_0x4c1112[_0x16ca5b-0x1]||null;_0x4c1112[_0x16ca5b]['previous']!==_0x7813f9&&(_0x4c1112[_0x16ca5b]['previous']=_0x7813f9);}function _0x1fd200(_0x28c51b,_0x2794ee){if(_0x28c51b[0x0]['attributes']['groupId']!==_0x2794ee[0x0]['attributes']['groupId']&&_0x28c51b[0x0]['author']!==_0x2794ee[0x0]['author'])return!0x1;if(!function(_0xce2ed9,_0x3671b4){if(!_0xce2ed9['hasComments']&&!_0x3671b4['hasComments'])return!0x0;if(_0xce2ed9['hasComments']&&_0x3671b4['hasComments'])return!0x1;if(_0xce2ed9['hasComments']&&_0x3671b4['createdAt']<_0xce2ed9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3671b4['hasComments']&&_0xce2ed9['createdAt']<_0x3671b4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x28c51b[0x0],_0x2794ee[0x0]))return!0x1;const _0x50b384=Tt(_0x28c51b[0x0]['attributes'],'groupId'),_0x58a5b8=Tt(_0x2794ee[0x0]['attributes'],'groupId');if(!_0x40b53a(_0x50b384,_0x58a5b8))return!0x1;return!!_0x28c51b['every'](_0x56de32=>_0x2794ee['some'](_0x379339=>_0x56de32['getFirstRange']()['isEqual'](_0x379339['getFirstRange']())))&&_0x2794ee['every'](_0x480021=>_0x28c51b['some'](_0x2adab6=>_0x480021['getFirstRange']()['isEqual'](_0x2adab6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x976916){const _0xf5ed73=Array['from'](_0x976916),_0x1c2a8d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1aab20=_0x1c2a8d['filter'](_0x36e7fd=>!_0x976916['has'](_0x36e7fd)),_0xbbb9e6=new Map(_0xf5ed73['map'](_0x556908=>[_0x556908,this['_suggestionFactory']['getSuggestionCallback'](_0x556908['type'],_0x556908['subType'],'join')])),_0x1e5f9c=new Map(_0x1c2a8d['map'](_0x44c790=>[_0x44c790,_0x44c790['getRanges']()]));for(let _0xc7c8af=0x0;_0xc7c8af<_0xf5ed73['length'];_0xc7c8af++){if(_0x49bf80(this,_0xf5ed73[_0xc7c8af],_0xf5ed73,_0xc7c8af+0x1))return!0x0;}for(let _0x29cb81=0x0;_0x29cb81<_0xf5ed73['length'];_0x29cb81++){if(_0x49bf80(this,_0xf5ed73[_0x29cb81],_0x1aab20,0x0))return!0x0;}return!0x1;function _0x49bf80(_0x49de23,_0x3f8919,_0x1b06a7,_0x6afcbd){for(let _0x532f6e=_0x6afcbd;_0x532f6e<_0x1b06a7['length'];_0x532f6e++){const _0x58849a=_0x1b06a7[_0x532f6e];if(_0x58849a['type']!==_0x3f8919['type']||_0x58849a['author']['id']!==_0x3f8919['author']['id']||_0x58849a['subType']!==_0x3f8919['subType'])continue;if(!Jt(_0x3f8919,_0x58849a))continue;if('attribute'==_0x3f8919['type']&&_0x3f8919['data']['oldValue']!=_0x58849a['data']['oldValue'])continue;if('attribute'==_0x3f8919['type']&&_0x49de23['_isBlockAttribute'](_0x3f8919['data']['key']))continue;if('formatBlock'==_0x3f8919['type']){const _0x108a97=_0x49de23['editor']['model'],_0x5851b3=_0x3f8919['getContainedElement']();if(_0x5851b3&&(_0x108a97['schema']['isObject'](_0x5851b3)||_0x108a97['schema']['isLimit'](_0x5851b3)))continue;}const _0x2b1478=_0xbbb9e6['get'](_0x3f8919),_0x437b20=_0x1e5f9c['get'](_0x3f8919),_0x9e1021=_0x1e5f9c['get'](_0x58849a),_0x14681e=_0x3f8919['commentThread']&&_0x3f8919['commentThread']['length'],_0x138184=_0x58849a['commentThread']&&_0x58849a['commentThread']['length'];if(!_0x14681e&&_0x2b1478(_0x9e1021,_0x437b20))return _0x49de23['_joinSuggestions'](_0x58849a,_0x3f8919),_0x1e5f9c['delete'](_0x3f8919),!0x0;if(!_0x138184&&_0x2b1478(_0x437b20,_0x9e1021))return _0x49de23['_joinSuggestions'](_0x3f8919,_0x58849a),_0x1e5f9c['delete'](_0x58849a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x256df9,_0x12643e){if(_0x256df9['isMultiRange']){for(const _0x20eed7 of _0x12643e['getRanges']())_0x256df9['addRange'](_0x20eed7);}else{const _0xf600a0=_0x12643e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x256df9,this['_model']['createRange'](_0x256df9['getFirstRange']()['start'],_0xf600a0));}_0x12643e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x219a94,_0x401043,_0x40db60){const _0x2748bc=_0x219a94['startsWith']('format')||_0x219a94['startsWith']('attribute')?'FORMATTING':_0x219a94['toUpperCase']();return o(this['editor']['locale'],_0x401043+'_'+_0x2748bc+'_SUGGESTION_ANNOUNCEMENT',_0x40db60);}['_initAriaMarkerChangeAnnouncements'](){const _0xaf449=this['editor'];if(!_0xaf449['ui'])return;const {ariaLiveAnnouncer:_0x120abb}=_0xaf449['ui'];_0x16c708(this['_model'],({left:_0xa570c3,entered:_0x252268})=>{for(const _0x273989 of _0xa570c3){const {group:_0x50efc3,type:_0x1090b8}=this['_splitMarkerName'](_0x273989['name']);if('suggestion'===_0x50efc3){_0x120abb['announce'](this['_getMarkerAnnouncementText'](_0x1090b8,'LEAVE'));break;}}for(const _0x47d38b of _0x252268){const {group:_0xe768,type:_0x5c3ced}=this['_splitMarkerName'](_0x47d38b['name']);if('suggestion'===_0xe768){_0x120abb['announce'](this['_getMarkerAnnouncementText'](_0x5c3ced,'ENTER',_0x179652(_0x220666)));break;}}});}['_processAttributeChanges'](_0x15c55c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x44c85a=this['editor'],_0x451de6=_0x44c85a['model']['document']['differ']['getChanges']();if(0x0==_0x451de6['length'])return!0x1;const _0x1d950d=[],_0x583998=_0x451de6['filter'](_0x571d52=>'attribute'==_0x571d52['type']),_0x5668a4=_0x451de6['filter'](_0x13b6e6=>'insert'==_0x13b6e6['type']&&'$text'!=_0x13b6e6['name']),_0x2afa44=_0x451de6['filter'](_0x4d5acb=>'remove'==_0x4d5acb['type']&&'$text'!=_0x4d5acb['name']);for(const _0xebf35 of _0x583998)_0x1d950d['push']({'key':_0xebf35['attributeKey'],'newValue':_0xebf35['attributeNewValue'],'oldValue':_0xebf35['attributeOldValue'],'range':Pt(_0xebf35['range'],_0x44c85a['model'])});for(const _0x322433 of _0x5668a4){const _0x152d9b=_0x2afa44['find'](_0x3bf426=>_0x3bf426['position']['isEqual'](_0x322433['position']));_0x152d9b&&_0x1d950d['push']({'key':m,'newValue':_0x322433['name'],'oldValue':_0x152d9b['name'],'range':_0x44c85a['model']['createRangeOn'](_0x322433['position']['nodeAfter'])});}return 0x0!=_0x1d950d['length']&&this['_reduceExistingSuggestions'](_0x15c55c,_0x1d950d);}['_processAttributeSuggestions'](_0x2fd8c6){let _0x656ba1=!0x1;const _0x8b382c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43d1ca=>_0x43d1ca['data']['newRange']&&_0x43d1ca['name']['startsWith']('suggestion:attribute:'));for(const _0x3094b9 of _0x8b382c){const {subType:_0x31d1d1,id:_0x380edd}=this['_splitMarkerName'](_0x3094b9['name']),_0x540878=_0x31d1d1['split']('|')[0x0];for(const _0x5abafe of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5abafe['id']!=_0x380edd&&'attribute'==_0x5abafe['type']&&_0x5abafe['data']&&_0x5abafe['data']['key']==_0x540878&&_0x5abafe['getFirstRange']()['isIntersecting'](_0x3094b9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5abafe,_0x3094b9['data']['newRange'],_0x2fd8c6),_0x656ba1=!0x0);}return _0x656ba1;}['_recordAttributeChanges'](_0x2e9a4d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2e9a4d();}['_isRegisteredAttribute'](_0x1b01ee){const _0x25d115=this['_isBlockAttribute'](_0x1b01ee),_0x37276d=this['_inlineAttributeKeys']['has'](_0x1b01ee);return _0x25d115||_0x37276d;}['_reduceExistingSuggestions'](_0x33e09b,_0x144f9e){if(0x0==_0x144f9e['length'])return!0x1;let _0x106c0d=!0x1;for(const _0x4b2d57 of _0x144f9e){const _0x1fcfed=this['_findSuggestions'](_0x4b2d57['range'],'attribute')['filter'](_0x19d832=>!_0x19d832['meta']['isNextTo'])['map'](_0x5523e8=>_0x5523e8['suggestion']),_0x2172b9=_0x4de4d5({'newValue':_0x4b2d57['newValue']});_0x1fcfed['filter'](_0x1f2e77=>{const [_0x45c4c6,_0x225ebd]=_0x1f2e77['subType']['split']('|');return _0x45c4c6==_0x4b2d57['key']&&_0x225ebd!=_0x2172b9;})['forEach'](_0x168437=>{this['_reduceSuggestionAttributeRange'](_0x168437,_0x4b2d57['range'],_0x33e09b),_0x106c0d=!0x0;});}return _0x106c0d;}['_reduceSuggestionAttributeRange'](_0x1348d6,_0x311ebc,_0xaefc6c){const _0x215937=_0x1348d6['getFirstRange']()['getDifference'](_0x311ebc);0x0!==_0x215937['length']?0x1!==_0x215937['length']?this['_breakSuggestionMarker'](_0x1348d6,_0x311ebc['start'],_0x311ebc['end']):this['_setSuggestionRange'](_0x1348d6,_0x215937[0x0]):_0xaefc6c['removeMarker'](_0x1348d6['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5bc71d){this['_editor']=_0x5bc71d,this['_model']=_0x5bc71d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58381d,_0x14d604,_0x2513ca,_0x2cb071,_0x3d4a91,_0x5d8e78){return new u(this['_model'],{'type':_0x58381d,'subType':_0x14d604,'id':_0x2513ca,'author':_0x2cb071,'creator':_0x2cb071,'attributes':_0x3d4a91,'onAttributesChange':_0x5d8e78,'onAccept':(..._0x80fa2c)=>this['getSuggestionCallback'](_0x58381d,_0x14d604,'accept')(..._0x80fa2c),'onDiscard':(..._0x1f3b04)=>this['getSuggestionCallback'](_0x58381d,_0x14d604,'discard')(..._0x1f3b04)});}['registerCustomCallback'](_0x221a3c,_0x51a175,_0x2ede8d,_0x1a8300){const _0x34b15c=_0x221a3c+':'+_0x51a175+':'+_0x2ede8d;this['_customCallbacks']['set'](_0x34b15c,_0x1a8300);}['getSuggestionCallback'](_0x3afe21,_0x53df98,_0x3954b3){const _0x3e674d=_0x3afe21+':'+_0x53df98+':'+_0x3954b3;return this['_customCallbacks']['get'](_0x3e674d)||this['_defaultCallbacks']['get'](_0x3afe21+':'+_0x3954b3);}['_registerDefaultCallbacks'](){const _0x10bce9=()=>!0x1,_0x2759ee=_0x14689c=>{_0x14689c['sort']((_0x25b06e,_0x50a7ba)=>_0x25b06e['start']['isBefore'](_0x50a7ba['start'])?0x1:-0x1),this['_model']['change'](_0x49e4e3=>{for(const _0x465e9 of _0x14689c){let _0x2b3c61;_0x2b3c61=_0x465e9['end']['isAtEnd']&&_0x465e9['end']['parent']==_0x465e9['start']['nodeAfter']?_0x49e4e3['createSelection'](_0x465e9['start']['nodeAfter'],'on'):_0x49e4e3['createSelection'](_0x465e9),this['_model']['deleteContent'](_0x2b3c61,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x380743=(_0x9d7ef3,_0x6fe556)=>{_0x6fe556&&this['_model']['change'](_0x2400fd=>{const {commandName:_0x5a4858,commandParams:_0x1ccaec=[]}=_0x6fe556,_0x56067c=_0x9d7ef3['map'](_0x3e8fcd=>(Vt(_0x3e8fcd)&&(_0x3e8fcd=this['_model']['createRange'](_0x3e8fcd['end'])),_0x3e8fcd))['filter'](_0xab17fd=>'$graveyard'!==_0xab17fd['root']['rootName']);if(_0x56067c['length']<0x1)return;const _0x4d6788=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x37b006=>_0x3dd19f['fromRange'](_0x37b006));_0x2400fd['setSelection'](_0x56067c);for(const _0x13b6e0 of this['_editor']['commands']['commands']())_0x13b6e0['refresh']();_0x1ccaec['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5a4858,..._0x1ccaec);const _0x33a8a7=_0x4d6788['filter'](_0x1daf51=>'$graveyard'!=_0x1daf51['root']['rootName']);_0x33a8a7['length']>0x0&&_0x2400fd['setSelection'](_0x33a8a7);for(const _0x58ecbb of _0x4d6788)_0x58ecbb['detach']();});},_0x3bcc62=(_0x14b60d,_0x54f3bb)=>0x1==_0x14b60d['length']&&0x1==_0x54f3bb['length']&&_0x14b60d[0x0]['end']['isEqual'](_0x54f3bb[0x0]['start']),_0x1f4a59=(_0x3a033a,_0x131162,_0x35d287,_0x29a1f0)=>Ht(_0x3a033a,_0x131162,_0x35d287,_0x29a1f0,this['_model'])?[_0x3a033a,_0x131162]:Ht(_0x131162,_0x3a033a,_0x29a1f0,_0x35d287,this['_model'])?[_0x131162,_0x3a033a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x10bce9),this['_defaultCallbacks']['set']('insertion:discard',_0x2759ee),this['_defaultCallbacks']['set']('insertion:join',_0x3bcc62),this['_defaultCallbacks']['set']('insertion:chain',_0x1f4a59),this['_defaultCallbacks']['set']('deletion:accept',_0x2759ee),this['_defaultCallbacks']['set']('deletion:discard',_0x10bce9),this['_defaultCallbacks']['set']('deletion:join',_0x3bcc62),this['_defaultCallbacks']['set']('deletion:chain',_0x1f4a59),this['_defaultCallbacks']['set']('formatInline:accept',_0x380743),this['_defaultCallbacks']['set']('formatInline:discard',_0x10bce9),this['_defaultCallbacks']['set']('formatInline:join',_0x3bcc62),this['_defaultCallbacks']['set']('formatInline:chain',_0x10bce9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x380743),this['_defaultCallbacks']['set']('formatBlock:discard',_0x10bce9),this['_defaultCallbacks']['set']('formatBlock:join',_0x3bcc62),this['_defaultCallbacks']['set']('formatBlock:chain',_0x10bce9),this['_defaultCallbacks']['set']('attribute:accept',_0x10bce9),this['_defaultCallbacks']['set']('attribute:discard',(_0xf36965,_0x436520)=>{if(!_0x436520)return;const _0x27991d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x173db9=>{if(_0x436520['key']==m)for(const _0x3d67c0 of _0xf36965){const _0x4dcb41=_0x3d67c0['start']['nodeAfter'],_0x374dff=_0x436520['oldValue'];_0x173db9['rename'](_0x4dcb41,_0x374dff);}else{if(_0x27991d['_isBlockAttribute'](_0x436520['key'])){for(const _0x1caaca of _0xf36965)void 0x0!==_0x436520['oldValue']?_0x173db9['setAttribute'](_0x436520['key'],_0x436520['oldValue'],_0x1caaca['start']['nodeAfter']):_0x173db9['removeAttribute'](_0x436520['key'],_0x1caaca['start']['nodeAfter']);}else{for(const _0x4c9b5d of _0xf36965)_0x436520['oldValue']?_0x173db9['setAttribute'](_0x436520['key'],_0x436520['oldValue'],_0x4c9b5d):_0x173db9['removeAttribute'](_0x436520['key'],_0x4c9b5d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3bcc62);}}function Ot(_0x4e7264,_0x3379b5,_0x1693cb){for(const _0x5d2d65 of _0x3379b5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5d2d65['root']==_0x5d2d65)return!0x1;if(!_0x1693cb['containsItem'](_0x5d2d65))return!0x1;if(_0x4e7264['isObject'](_0x5d2d65)||_0x4e7264['isLimit'](_0x5d2d65))return!0x0;}return!0x1;}function Vt(_0x3724fd){return _0x3724fd['end']['parent']==_0x3724fd['start']['nodeAfter']&&_0x3724fd['end']['isAtStart'];}function Ut(_0x561039,_0x40808a,_0x3152bd,_0xd23f87){const _0x2b1195=_0x373fe7=>!_0x373fe7['item']['is']('$textProxy')&&!_0xd23f87['isObject'](_0x373fe7['item']),_0x49b4af=_0x561039['start']['getLastMatchingPosition'](_0x2b1195),_0x39988f=_0x561039['end']['getLastMatchingPosition'](_0x2b1195,{'direction':'backward'});return(!_0x561039['start']['isEqual'](_0x49b4af)||!_0x561039['end']['isEqual'](_0x39988f))&&(_0x49b4af['isBefore'](_0x39988f)?_0x3152bd['updateMarker'](_0x40808a,{'range':_0x3152bd['createRange'](_0x49b4af,_0x39988f)}):_0x3152bd['removeMarker'](_0x40808a),!0x0);}function Gt(_0x8f608b){return _0x4de4d5(_0x8f608b);}function Ft(_0x2d5e89){const _0x316822=_0x2d5e89['start']['nodeAfter'];return _0x316822&&_0x316822['is']('element');}function Pt(_0x58779b,_0x4b33c0){return null==_0x58779b['end']['nodeBefore']&&_0x58779b['end']['parent']==_0x58779b['start']['nodeAfter']?Lt(_0x58779b['start']['nodeAfter'],_0x4b33c0):_0x58779b;}function Lt(_0x1fdb9d,_0x4fe73a){const _0x22f7f2=_0x4fe73a['schema']['isObject'](_0x1fdb9d)||_0x4fe73a['schema']['isSelectable'](_0x1fdb9d);return _0x4fe73a['createRange'](_0x4fe73a['createPositionAt'](_0x1fdb9d,'before'),_0x22f7f2?_0x4fe73a['createPositionAfter'](_0x1fdb9d):_0x4fe73a['createPositionAt'](_0x1fdb9d,'end'));}function Ht(_0x1b5f8d,_0x391f45,_0x23ce82,_0x35ba53,_0x232a85){if(_0x1b5f8d['next'])return!0x1;if(!Jt(_0x1b5f8d,_0x391f45))return!0x1;if(_0x23ce82['end']['isEqual'](_0x35ba53['start']))return!0x0;if(_0x1b5f8d['type']!=_0x391f45['type'])return!0x1;if(!_0x23ce82['end']['isTouching'](_0x35ba53['start']))return!0x1;const _0x3877a6=_0x232a85['createRange'](_0x23ce82['end'],_0x35ba53['start'])['getWalker']();for(const _0x13a88a of _0x3877a6)if(['elementStart','elementEnd']['includes'](_0x13a88a['type'])&&_0x232a85['schema']['isLimit'](_0x13a88a['item']))return!0x1;return!0x0;}function Jt(_0x3db2c3,_0x33d92d){if(!_0x3db2c3['_isDataLoaded']||!_0x33d92d['_isDataLoaded'])return!0x1;const _0x563627=new Set(Object['keys'](_0x3db2c3['attributes'])),_0x441793=new Set(Object['keys'](_0x33d92d['attributes']));if(_0x563627['delete']('groupId'),_0x441793['delete']('groupId'),0x0==_0x563627['size']&&0x0==_0x441793['size'])return!0x0;if(_0x563627['size']!=_0x441793['size'])return!0x1;const _0x3ed585={..._0x3db2c3['attributes']},_0x13f4f0={..._0x33d92d['attributes']};return delete _0x3ed585['groupId'],delete _0x13f4f0['groupId'],JSON['stringify'](_0x3ed585)==JSON['stringify'](_0x13f4f0);}function qt(_0x2be5ca,_0x3b4f6c){const _0x41300c=zt(_0x2be5ca['attributes']),_0x1d8031=zt(_0x3b4f6c);if(!_0x2be5ca['_isDataLoaded'])return!0x1;for(const _0xa245f7 of Object['keys'](_0x1d8031))if(!_0x40b53a(_0x41300c[_0xa245f7],_0x1d8031[_0xa245f7]))return!0x1;return!0x0;}function zt(_0x12d8f8){const _0x1af9d7=Object['assign']({},_0x12d8f8);return delete _0x1af9d7['skipNestingCheck'],delete _0x1af9d7['tablePasteChainId'],_0x1af9d7;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x441a88(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4450ef,_0x181733,_0x2da721,_0xbfe2b1){super(),this['model']=_0x181733,this['view']=_0x2da721,this['commentThreadController']=_0xbfe2b1,this['_editor']=_0x4450ef,this['_acceptCommand']=_0x4450ef['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4450ef['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2ca99d,_0xf20802)=>_0x2ca99d||_0xf20802),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x582a49=>_0x582a49&&this['_editor']['model']['canEditAt'](_0x181733['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x14e2cf=>_0x14e2cf&&this['_editor']['model']['canEditAt'](_0x181733['getRanges']())),this['_pendingAction']=null,_0x2da721['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2da721,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2da721,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2da721,'change:isDirty',()=>{_0x2da721['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 _0x73dd3b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x73dd3b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1a338b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x355402,_0x377fbe,_0x5139ca,_0x4f0e3a){super(_0x355402),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1d5f0b(_0x355402,o(_0x355402,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x377fbe['authoredAt']),this['bind']('authoredAt')['to'](_0x377fbe),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',_0x377fbe,'authoredAt',this,'descriptionParts',(_0x1d8f26,_0x39a166,_0x12fcea)=>{const _0x37c731=_0x12fcea['map'](_0x11f477=>ls(_0x11f477['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1d8f26-0x1,_0x377fbe['author']['name'],_0x39a166?_0x4f0e3a['formatDateTime'](_0x39a166):'',new DOMParser()['parseFromString'](_0x37c731,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c9a19(),this['focusTracker']=new _0x4b14c4(),this['keystrokes']=new _0x32095d(),this['focusCycler']=new _0x1cf353({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42b521=>_0x42b521['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x377fbe,this['_localUser']=_0x5139ca,this['_config']=_0x4f0e3a,_0x4f0e3a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe7248b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5e0005}=this['_config'];this['commentsListView']=new _0x5e0005(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',_0x5ab057=>_0x5ab057+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x56a485,_0x319ae8)=>_0x56a485||!!_0x319ae8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5594c8}=this['_config'],_0xf25726=new _0x5594c8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4667b9=_0xf25726['commentInputView'];return _0xf25726['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4667b9,'value',(_0x6fdf39,_0x5de512,_0xa9ab26)=>!!_0xa9ab26||_0x6fdf39&&!_0x5de512),_0x4667b9['on']('submit',(_0x5001e1,_0x437b7f)=>{this['fire']('addComment',_0x437b7f),_0x4667b9['editor']['setData']('');}),_0x4667b9['on']('cancel',()=>this['focus']()),_0x4667b9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xf25726;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x322e47,_0x2169eb,_0x2778f0,_0x6aa64){super(_0x322e47,_0x2169eb,_0x2778f0,_0x6aa64),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1b1992=>_0x1b1992&&_0x1b1992[0x0]?_0x1b1992[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xec89de,_0x566b71)=>{let _0x2779c5='';for(const _0x5f3f2b of _0xec89de)_0x2779c5+='<p>'+ls(_0x5f3f2b['content'],_0x5f3f2b['color'])+'</p>';return _0x566b71?_0x2779c5:_0x35ae2(_0x2779c5,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x322e47,'Accept\x20suggestion'),_0x28985b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x322e47,'Discard\x20suggestion'),_0x28985b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x168279(_0x322e47,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3f68f0=this['bindTemplate'],_0x52adbf=[{'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':_0x3f68f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f68f0['to']('authoredAt',_0x3d5303=>this['_config']['formatDateTime'](_0x3d5303))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x52adbf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5182b8={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3f68f0['if']('isActive','ck-suggestion-wrapper--active'),_0x3f68f0['to']('type',_0x3e5f25=>'ck-suggestion-'+_0x3e5f25),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':_0x3f68f0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x52adbf},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5182b8['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x5182b8;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x353219,_0x2b312e,_0x5c0fb7)=>{this['_descriptionElement']['innerHTML']=_0x5c0fb7;});}['_createButton'](_0x40ac36,_0x36e507,_0x478007,_0x3cb3f2,_0x1d7da2){const _0x40f166=new _0xb1cf1f(this['locale']);return _0x40f166['set']({'label':_0x40ac36,'icon':_0x36e507,'tooltip':!0x0,'tooltipPosition':_0x1d7da2}),_0x40f166['extendTemplate']({'attributes':{'class':_0x478007}}),_0x40f166['on']('execute',()=>{this['fire'](_0x3cb3f2,this['_model']['id']);}),_0x40f166;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}var ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1f92b9{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x183f72,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2a2760){super(_0x2a2760),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32fde2=this['editor']['config'];_0x32fde2['define']('trackChanges.SuggestionThreadView',re),_0x32fde2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32fde2['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x46872e,_0x314790){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4da6b6,_0x37d36a]of this['_handleControllerBuffer']){const _0x236155=this['_suggestionToController']['has'](_0x4da6b6);_0x236155||_0x37d36a?_0x236155&&_0x37d36a&&this['_destroyController'](_0x4da6b6):this['_initializeController'](_0x4da6b6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x46872e,_0x314790);}['init'](){const _0x1cf1ce=this['editor'],_0x4a2fa5=_0x1cf1ce['plugins']['get']('TrackChangesEditing'),_0x5ed0e2=_0x1cf1ce['plugins']['get']('Annotations'),_0x5c74be=_0x1cf1ce['plugins']['get']('EditorAnnotations'),_0x2f5784=_0x1cf1ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5c74be['addSourceCollector'](()=>{const _0x4430c2=[];for(const [_0x2b7fdd,_0x41b212]of Array['from'](this['_suggestionToController'])){const _0x2f6e64=_0x2b7fdd['getAllAdjacentSuggestions'](),_0x6bbb8e=[];for(const _0x1990b4 of _0x2f6e64){if(!_0x1990b4['isInContent'])continue;if(_0x1990b4['isMultiRange']){_0x6bbb8e['push'](..._0x1990b4['getRanges']());continue;}const _0x3204e0=_0x1990b4['getFirstRange']();if(_0x6bbb8e['length']>0x0){const _0x47bcc3=_0x6bbb8e[0x0]['getJoined'](_0x3204e0);if(_0x47bcc3){_0x6bbb8e[0x0]=_0x47bcc3;continue;}}_0x6bbb8e['push'](_0x3204e0);}_0x4430c2['push']([_0x41b212['view'],_0x6bbb8e]);}return _0x4430c2;}),this['listenTo'](_0x4a2fa5,'suggestionLoaded',(_0x272697,_0x493201)=>{this['listenTo'](_0x493201,'change:previous',(_0x45b575,_0x3e8292,_0x194419,_0x1de594)=>{_0x493201['isInContent']&&(null==_0x194419?(this['_updateController'](_0x1de594['head']),this['_handleSuggestionControllerDelayed'](_0x493201,!0x1)):(this['_updateController'](_0x194419['head']),null==_0x1de594&&this['_handleSuggestionControllerDelayed'](_0x493201,!0x0)));}),null!==_0x493201['previous']?this['_updateController'](_0x493201['head']):this['_handleSuggestionControllerDelayed'](_0x493201,!0x1);}),this['listenTo'](_0x4a2fa5,'suggestionUnloaded',(_0x50a9c9,_0x5b54bf,_0x4e13ca)=>{this['stopListening'](_0x5b54bf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5b54bf),this['_suggestionToController']['has'](_0x5b54bf)&&this['_destroyController'](_0x5b54bf),_0x4e13ca&&this['_updateController'](_0x4e13ca['head']);}),this['listenTo'](_0x4a2fa5,'suggestionChanged',(_0x2471e7,_0x34c623)=>{this['_updateController'](_0x34c623);}),this['listenTo'](_0x5ed0e2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f5784,'addComment',(_0x1e7c30,{threadId:_0x3bb4be,isFromAdapter:_0x56ddd5})=>{if(_0x56ddd5||!_0x4a2fa5['hasSuggestion'](_0x3bb4be))return;const _0xe8ac87=_0x4a2fa5['getSuggestion'](_0x3bb4be);this['_suggestionToController']['get'](_0xe8ac87)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5db301=this['editor']['plugins']['get']('Annotations'),_0x222b4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59e821=Array['from'](_0x5db301['activeAnnotations'],_0x4d45a4=>_0x4d45a4['innerView'])['filter'](_0x1c7b2a=>this['_viewToController']['has'](_0x1c7b2a)),_0x4a934f=[];for(const _0x4002f1 of _0x59e821){const _0x51d85f=this['_viewToController']['get'](_0x4002f1)['model']['getAllAdjacentSuggestions']();_0x4a934f['push'](..._0x51d85f['reduce']((_0x284297,_0x5254a8)=>[..._0x284297,..._0x5254a8['getMarkerNames']()],[]));}_0x222b4b['activeMarkers']=_0x4a934f;}['_addUIComponentsToFactory'](){const _0x82db85=this['editor'],_0x2943d5=_0x82db85['locale'],_0xac2139=o(_0x2943d5,'Track\x20changes'),_0x955adf=new Wt([{'type':'switchbutton','model':new _0xfedf4f({'withText':!0x0,'isToggleable':!0x0,'label':_0xac2139,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xfedf4f({'withText':!0x0,'label':o(_0x2943d5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xfedf4f({'withText':!0x0,'label':o(_0x2943d5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xfedf4f({'withText':!0x0,'label':o(_0x2943d5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xfedf4f({'withText':!0x0,'label':o(_0x2943d5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2ab33b of _0x955adf)if(he(_0x2ab33b)){const _0x2a7855=_0x82db85['commands']['get'](_0x2ab33b['model']['commandName']);_0x2ab33b['model']['bind']('isOn','isEnabled')['to'](_0x2a7855,'value','isEnabled');}_0x82db85['ui']['componentFactory']['add']('trackChanges',_0x2621b4=>this['_createToolbarButton'](_0x2621b4,_0x955adf,_0xac2139)),_0x82db85['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5ea47e=>this['_createMenuBarMenu'](_0x5ea47e,_0x955adf,_0xac2139));}['_createToolbarButton'](_0xa390e4,_0x3e0059,_0xfe6050){const _0x14e90a=Qt(_0xa390e4,_0x252ba1),_0x47f96d=this['editor']['commands']['get']('trackChanges');_0x14e90a['buttonView']['set']({'tooltip':_0xfe6050,'label':_0xfe6050,'icon':ce}),_0x14e90a['buttonView']['bind']('isOn')['to'](_0x47f96d,'value'),_0x14e90a['buttonView']['on']('execute',()=>{_0x47f96d['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x14e90a,_0x3e0059,{'role':'menu'});const _0x2a5375=[];for(const _0x41d6e6 of _0x3e0059)he(_0x41d6e6)&&_0x2a5375['push'](this['editor']['commands']['get'](_0x41d6e6['model']['commandName']));const _0x26c63e=_0x14e90a['buttonView'];return _0x26c63e['actionView']['unbind']('isEnabled'),_0x26c63e['arrowView']['unbind']('isEnabled'),_0x26c63e['actionView']['bind']('isEnabled')['to'](_0x47f96d,'isEnabled'),_0x26c63e['arrowView']['bind']('isEnabled')['toMany'](_0x2a5375,'isEnabled',(..._0x3982d9)=>_0x3982d9['some'](_0x58e090=>_0x58e090)),_0x14e90a['on']('execute',_0x3fa116=>{this['editor']['execute'](_0x3fa116['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x14e90a;}['_createMenuBarMenu'](_0xac796d,_0x526cf8,_0x33fc28){const _0x3da25e=new Yt(_0xac796d),_0x34dbe7=this['editor']['commands']['get']('trackChanges');_0x3da25e['buttonView']['set']({'label':_0x33fc28,'icon':ce});const _0x4e01a1=new Zt(_0xac796d);for(const _0xb965b0 of _0x526cf8){if('separator'==_0xb965b0['type']){_0x4e01a1['items']['add'](new Xt(_0xac796d));continue;}const _0x1f3a0c=new te(_0xac796d,_0x3da25e),_0x5f36c6=new _0x1001bf(_0xac796d),_0x228a7d=_0xb965b0['model'];_0x5f36c6['bind'](...Object['keys'](_0x228a7d))['to'](_0x228a7d),_0x5f36c6['delegate']('execute')['to'](_0x3da25e),_0x5f36c6['on']('execute',()=>{this['editor']['execute'](_0x228a7d['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f3a0c['children']['add'](_0x5f36c6),_0x4e01a1['items']['add'](_0x1f3a0c);}return _0x3da25e['bind']('isEnabled')['to'](_0x34dbe7,'isEnabled'),_0x3da25e['panelView']['children']['add'](_0x4e01a1),_0x3da25e;}['_initializeController'](_0x32029c){const _0x1f574c=this['editor'],_0x5094d6=_0x1f574c['config'],_0x4312d3=_0x1f574c['plugins']['get']('Annotations'),_0x33f1b5=_0x1f574c['plugins']['get']('CommentsRepository'),_0x3909cd=_0x1f574c['plugins']['get']('EditorAnnotations'),_0x3d9952=_0x1f574c['plugins']['get'](_0x183f72)['me'],_0x2b45ac=_0x5094d6['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4b5df9,CommentThreadInputView:_0x25c02d}=_0x1f574c['plugins']['get']('CommentsUI');let _0x2e2a35,_0x38ec7c;this['_annotationViews']['has'](_0x32029c['id'])?(_0x38ec7c=this['_annotationViews']['get'](_0x32029c['id']),_0x2e2a35=_0x38ec7c['mainView']):(_0x2e2a35=new _0x2b45ac(_0x1f574c['locale'],_0x32029c,_0x3d9952,{'disableComments':this['_disableComments'],'editorConfig':_0x5094d6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5094d6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5094d6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5094d6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x38ee59(_0x5094d6['get']('locale')),'CommentView':_0x5094d6['get']('comments')['CommentView'],'CommentsListView':_0x4b5df9,'CommentThreadInputView':_0x25c02d}),_0x2e2a35['acceptButton']['on']('execute',()=>{_0x1f574c['editing']['view']['focus']();}),_0x2e2a35['discardButton']['on']('execute',()=>{_0x1f574c['editing']['view']['focus']();}),_0x38ec7c=_0x4312d3['createAnnotationView'](this['editor']['locale'],_0x2e2a35),_0x38ec7c['bind']('isDirty')['to'](_0x2e2a35,'isDirty'),_0x38ec7c['bind']('length')['to'](_0x2e2a35),_0x38ec7c['bind']('type')['to'](_0x2e2a35,'type',_0xd5f9c9=>'suggestion-'+_0xd5f9c9),this['listenTo'](_0x2e2a35,'escape',()=>{_0x1f574c['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x32029c['id'],_0x38ec7c));const _0x46e157=_0x33f1b5['createCommentThreadController'](_0x32029c['commentThread'],_0x2e2a35),_0x63f83=new ae(_0x1f574c,_0x32029c,_0x2e2a35,_0x46e157),_0x2e7ed4=_0x32029c['getAllAdjacentSuggestions']()['filter'](_0x1b0629=>_0x1b0629['isInContent']);_0x2e2a35['descriptionParts']=_0x1f574c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2e7ed4),this['_suggestionToController']['set'](_0x32029c,_0x63f83),this['_viewToController']['set'](_0x2e2a35,_0x63f83);const _0xfb97f=_0x4312d3['createAnnotation']({'view':_0x38ec7c,'target':()=>{const _0x5ca1a1=[],_0x14b4f8=_0x32029c['getAllAdjacentSuggestions']()['filter'](_0x5028b5=>_0x5028b5['isInContent']);for(const _0x21f822 of _0x14b4f8)_0x5ca1a1['push'](..._0x21f822['getMarkers']());return _0x11f44f(_0x1f574c['editing'],_0x5ca1a1);},'type':()=>'suggestion-'+_0x63f83['view']['type']});_0x33f1b5['_bindAnnotationToEditors'](_0x2e2a35,_0xfb97f),_0x4312d3['add'](_0xfb97f),_0x3909cd['registerAnnotation'](_0xfb97f);}['_destroyController'](_0x4d3a49){const _0x198721=this['editor']['plugins']['get']('CommentsRepository'),_0xd488c6=this['editor']['plugins']['get']('Annotations'),_0x2014fe=this['_suggestionToController']['get'](_0x4d3a49),_0x5aff2a=_0x2014fe['view'],_0x2ce6ec=_0xd488c6['getByInnerView'](_0x5aff2a);_0x198721['_unbindEditors'](_0x5aff2a),_0x2ce6ec&&_0xd488c6['remove'](_0x2ce6ec),this['_suggestionToController']['delete'](_0x4d3a49),this['_viewToController']['delete'](_0x5aff2a),_0x2014fe['destroy']();}['_updateController'](_0x1a3390){if(!_0x1a3390['isInContent']||!this['_suggestionToController']['has'](_0x1a3390))return;const _0xd033a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57ff9e=this['_suggestionToController']['get'](_0x1a3390),_0x34f9f1=_0x1a3390['getAllAdjacentSuggestions']();_0x57ff9e['view']['descriptionParts']=_0xd033a4['descriptionFactory']['getDescriptions'](_0x34f9f1);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x220666,(_0x573b08,_0x4b7150)=>{const _0x4ca67e=this['editor']['plugins']['get'](k),_0x334276=this['editor']['plugins']['get'](p);if(!_0x334276['activeMarkers']['length'])return;const {id:_0x1e0308}=_0x334276['_splitMarkerName'](_0x334276['activeMarkers'][0x0]),_0x7b9a2b=_0x4ca67e['getSuggestion'](_0x1e0308);_0x7b9a2b&&(this['_suggestionToController']['get'](_0x7b9a2b)['view']['focus'](),_0x4b7150());});}['destroy'](){for(const _0x52f00f of this['_suggestionToController']['keys']())this['_destroyController'](_0x52f00f);for(const _0x295abf of this['_annotationViews']['values']())_0x295abf['mainView']['destroy']();super['destroy']();}}function he(_0x462184){return'model'in _0x462184;}class k extends _0x1f92b9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x237df0){this['editor']['plugins']['get'](p)['adapter']=_0x237df0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3aa06a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3aa06a);}['getSuggestions']({skipNotAttached:_0x34d83e=!0x1,toJSON:_0x229bb4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x34d83e,'toJSON':_0x229bb4});}['getSuggestion'](_0x242014){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x242014);}}const T=['Pagination'];class P extends _0x1f92b9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x55fdf7=this['editor'];if(_0x55fdf7['config']['define']('trackChangesData.editorCreator',_0x27ad3f=>{const _0x5c1cd9=_0x55fdf7['model']['document']['getRootNames']()['reduce']((_0x295eaa,_0x4d9935)=>(_0x295eaa[_0x4d9935]='',_0x295eaa),{});return _0x55fdf7['constructor']['create'](_0x5c1cd9,_0x27ad3f);}),'function'!=typeof _0x55fdf7['config']['get']('trackChangesData')['editorCreator'])throw new _0x4547e5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44923d){return N(this['editor'],!0x0,_0x44923d);}['getDataWithDiscardedSuggestions'](_0x94f2b1){return N(this['editor'],!0x1,_0x94f2b1);}}class D extends _0x1f92b9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x17fbcc){super(_0x17fbcc),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(_0x4fee6e){return void 0x0!==_0x4fee6e['getRootsAttributes'];}async function N(_0x12bbfe,_0x2c9c71,_0x1ef639){const _0x40b4e2=_0x500648(_0x12bbfe,T);_0x40b4e2['plugins']['push'](p,D),_0x40b4e2['rootsAttributes']=v(_0x12bbfe)?_0x12bbfe['getRootsAttributes']():void 0x0;const _0x3058fd=document['createDocumentFragment'](),_0x145b11=_0x12bbfe['config']['get']('trackChangesData')['editorCreator'],_0x86e4ae=await _0x145b11(_0x40b4e2,()=>function(_0x25ccbe){const _0x42ea9a=document['createElement']('div');return _0x25ccbe['appendChild'](_0x42ea9a),_0x42ea9a;}(_0x3058fd));!function(_0xe18877,_0x724fa5){const _0x55257e=_0xe18877['model']['document']['getRootNames']()['reduce']((_0x1b7e8a,_0x7df679)=>(_0x1b7e8a[_0x7df679]=_0xe18877['data']['get']({'rootName':_0x7df679}),_0x1b7e8a),{}),_0x53e885=_0xe18877['plugins']['get']('Users')['users']['map'](_0x1d2f27=>({'id':_0x1d2f27['id'],'name':_0x1d2f27['name']})),_0x3017d6=_0xe18877['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a166d=_0xe18877['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5eb1a4=_0x724fa5['plugins']['get']('Users'),_0x33e93a=_0x724fa5['plugins']['get']('TrackChangesEditing'),_0x1e4eae=_0x724fa5['plugins']['get']('CommentsRepository');for(const _0x31c956 of _0x53e885)_0x5eb1a4['getUser'](_0x31c956['id'])||_0x5eb1a4['addUser'](_0x31c956);_0x5eb1a4['me']||_0x5eb1a4['useAnonymousUser']();for(const _0x46eb2a of _0x5a166d)_0x1e4eae['addCommentThread'](_0x46eb2a);for(const _0x4af47a of _0x3017d6)_0x33e93a['addSuggestionData'](_0x4af47a);_0x724fa5['data']['set'](_0x55257e);}(_0x12bbfe,_0x86e4ae),_0x86e4ae['execute'](_0x2c9c71?'acceptAllSuggestions':'discardAllSuggestions');const _0x2c53a7=v(_0x86e4ae)?_0x86e4ae['getFullData'](_0x1ef639):_0x86e4ae['data']['get'](_0x1ef639);return await _0x86e4ae['destroy'](),_0x2c53a7;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x592a9e,PendingActions as _0x25c036,icons as _0x460f5a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x45bfd6,ObservableMixin as _0x253a25,uid as _0x4295c7,insertToPriorityArray as _0xaf186d,priorities as _0x1de43c,logWarning as _0x557d26,getEnvKeystrokeText as _0x1d3246,FocusTracker as _0x14cc5e,KeystrokeHandler as _0x254394,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1fcb71,View as _0x29bbcd,ViewCollection as _0x1726a7,FocusCycler as _0x47ee88,ViewModel as _0x2c885e,createDropdown as Qt,SplitButtonView as _0x14d4a3,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x195937}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x35bf8f,hashObject as _0x71f2e8,surroundingMarkersDetector as _0x538209,ENTER_THREAD_KEYSTROKE as _0x2065a3,AriaDescriptionView as _0x449c46,setupThreadKeyboardNavigation as _0x3e5c89,trimHtml as _0x25d42b,UserView as _0x1bcdca,LateFocusButtonView as _0x1c59ad,getDateTimeFormatter as _0x299428,getAllMarkersDomElementsSorted as _0x4e5ff3,sanitizeEditorConfig as _0x45a46b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2f6ad0,LiveRange as _0x438751,LivePosition as _0x5db45f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c803e,toWidget as _0x304c15}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x37ecc3,set as _0x4573fa,isEqual as _0x4e4081,unset as _0x2ea8b3,omit as Tt}from'lodash-es';import{Delete as _0x31b9d0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x115158,ShiftEnter as _0x229f13}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x510174,_0x4a4a44){super(_0x510174),this['_enabledCommands']=_0x4a4a44,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 _0x264ae1 of this['editor']['commands']['commands']())_0x264ae1['affectsData']&&!this['_enabledCommands']['has'](_0x264ae1)&&_0x264ae1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x25bcba of this['editor']['commands']['commands']())_0x25bcba['affectsData']&&!this['_enabledCommands']['has'](_0x25bcba)&&_0x25bcba['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x5efb7e,_0x5a4df9){super(_0x5efb7e),this['_suggestions']=_0x5a4df9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x260c6d){const _0x584406=this['_suggestions']['get'](_0x260c6d);if(!_0x584406)throw new _0x45bfd6('track-changes-accept-suggestion-not-found',this);const _0x5dd5ac=_0x584406['getRanges']();this['editor']['model']['canEditAt'](_0x5dd5ac)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x584406);}}class R extends ts{['_suggestions'];constructor(_0x281e43,_0x5e1942){super(_0x281e43),this['_suggestions']=_0x5e1942,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9fb2cd){const _0x38a32a=this['_suggestions']['get'](_0x9fb2cd);if(!_0x38a32a)throw new _0x45bfd6('track-changes-discard-suggestion-not-found',this);const _0x4a794f=_0x38a32a['getRanges']();this['editor']['model']['canEditAt'](_0x4a794f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x38a32a);}}function ls(_0x2e3aeb,_0x30f3b8){let _0x396d31='';return _0x396d31+=_0x2e3aeb['split']('*')['map']((_0x1889b8,_0x49a630)=>_0x49a630%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1889b8)+'</span>':nn(_0x1889b8))['join'](''),_0x30f3b8&&(_0x396d31+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x30f3b8['value']+'\x22\x20title=\x22'+_0x30f3b8['title']+'\x22></span>'),_0x396d31;}function nn(_0x4a116c){const _0x2e1551=document['createElement']('span');return _0x2e1551['innerText']=_0x4a116c,_0x2e1551['innerHTML'];}function ss(_0x4e8e4e){return _0x4e8e4e['sort']((_0x4e4dd1,_0x35ca6f)=>'deletion'==_0x4e4dd1['type']&&'deletion'!=_0x35ca6f['type']?-0x1:'deletion'!=_0x4e4dd1['type']&&'deletion'==_0x35ca6f['type']?0x1:0x0);}function to(_0x5d6a7c,_0x68a97f){let _0x1d96cd,_0x23a5a9=0x0;const _0xb837fc=[],_0x5d8a46=_0x68a97f['schema'];for(;_0x23a5a9<_0x5d6a7c['length'];){const _0x2d25b9=_0x5d6a7c[_0x23a5a9],_0x366a4b=_0x5d6a7c[_0x23a5a9+0x1];_0x1d96cd||(_0x1d96cd=_0x68a97f['createPositionBefore'](_0x2d25b9)),on(_0x68a97f,_0x2d25b9,_0x366a4b)||(_0xb837fc['push'](_0x68a97f['createRange'](_0x1d96cd,_0x5d8a46['isObject'](_0x2d25b9)?_0x68a97f['createPositionAfter'](_0x2d25b9):_0x68a97f['createPositionAt'](_0x2d25b9,'end'))),_0x1d96cd=null),_0x23a5a9++;}return _0xb837fc;}function on(_0x2c3bb8,_0x257f91,_0xc711c4){if(!_0xc711c4)return!0x1;const _0x5da4f3=_0x2c3bb8['createPositionAfter'](_0x257f91),_0x17c4bd=_0x2c3bb8['createPositionBefore'](_0xc711c4);return _0x5da4f3['isTouching'](_0x17c4bd);}function rs(_0x4e6480,_0x3d9487,_0x1fad19){for(;_0x1fad19['length'];){const _0x39ec2b=_0x1fad19['splice'](0x0,0x64);_0x4e6480['change'](()=>{for(const _0xe61822 of _0x39ec2b)_0xe61822['isInContent']&&_0x3d9487['execute'](_0xe61822['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0xf8216f,_0x825972,_0x5c5811){super(_0xf8216f),this['_command']=_0x825972,this['_suggestions']=_0x5c5811,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f2384=Array['from'](this['_suggestions']['values']())['some'](_0x47a57b=>_0x47a57b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2f2384;}['execute'](){const _0x3bbbdf=ss(Array['from'](this['_suggestions']['values']()));for(const _0x548566 of _0x3bbbdf){const _0x4a9929=_0x548566['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a9929))return;}rs(this['editor']['model'],this['_command'],_0x3bbbdf);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x331900,_0x207690,_0x1ac3b1){super(_0x331900),this['_command']=_0x207690,this['_suggestions']=_0x1ac3b1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4605e5=this['editor']['model']['document']['selection'],_0x14bf12=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x427a74,_0x22f853){const _0x7da33d=Array['from'](_0x427a74['getRanges']()),_0x44b9fa=new Set();for(const _0x4f9c9f of _0x22f853)if(_0x4f9c9f['isInContent']){for(const _0x555ce5 of _0x7da33d)for(const _0x2b8c69 of _0x4f9c9f['getRanges']())(_0x555ce5['isIntersecting'](_0x2b8c69)||_0x427a74['isCollapsed']&&!_0x4f9c9f['isMultiRange']&&_0x4f9c9f['next']&&_0x2b8c69['end']['isTouching'](_0x555ce5['start']))&&_0x44b9fa['add'](_0x4f9c9f);}return _0x44b9fa;}(_0x4605e5,_0x14bf12),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1ad9b1=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2ba7db of _0x1ad9b1){const _0x260603=_0x2ba7db['getRanges']();if(!this['editor']['model']['canEditAt'](_0x260603))return;}rs(this['editor']['model'],this['_command'],_0x1ad9b1);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x253a25(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2edc5c,_0x1057bd){super(),this['id']=_0x1057bd['id'],this['type']=_0x1057bd['type'],this['subType']=_0x1057bd['subType']||null,this['author']=_0x1057bd['author'],this['creator']=_0x1057bd['creator']||_0x1057bd['author'],this['isExternal']=Boolean(_0x1057bd['attributes']&&_0x1057bd['attributes']['@external']),this['data']=null,this['_model']=_0x2edc5c,this['_onAccept']=_0x1057bd['onAccept'],this['_onDiscard']=_0x1057bd['onDiscard'],this['_onAttributesChange']=_0x1057bd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1057bd['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 _0x258b33=this;for(;_0x258b33['previous'];)_0x258b33=_0x258b33['previous'];return _0x258b33;}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'](_0x2f2870){this['_markerNames']['add'](_0x2f2870);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5da85b=>this['_model']['markers']['get'](_0x5da85b))['filter'](_0xc87ea7=>_0xc87ea7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x98296=>{for(const _0x4b7e9c of this['getMarkers']())_0x98296['removeMarker'](_0x4b7e9c);}),this['_markerNames']['clear']();}['removeMarker'](_0x51d6c7){this['_model']['change'](_0x2b7112=>{_0x2b7112['removeMarker'](_0x51d6c7);}),this['_markerNames']['delete'](_0x51d6c7);}['addRange'](_0x2c43d6){const _0x33c006='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x33c006),this['_model']['change'](_0x1ed6de=>{_0x1ed6de['addMarker'](_0x33c006,{'range':_0x2c43d6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3f31ff){for(const _0x366930 of this['getRanges']())if(_0x366930['isIntersecting'](_0x3f31ff))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1ef772=>_0x1ef772['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f6d1b,_0x395b1c)=>[..._0x2f6d1b,..._0x395b1c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e520a=this['getRanges']();if(0x1!=_0x2e520a['length'])return null;const _0x579e1e=_0x2e520a[0x0],_0x5cf733=_0x579e1e['start']['nodeAfter'],_0x3a2fab=_0x579e1e['end']['nodeBefore'];return _0x5cf733 instanceof _0x2f6ad0?_0x5cf733!=_0x3a2fab?null:_0x5cf733: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 _0x1d039d=[];let _0x2453d1=this['head'];for(;_0x2453d1;)_0x1d039d['push'](_0x2453d1),_0x2453d1=_0x2453d1['next'];return _0x1d039d;}['setAttribute'](_0x2c5e83,_0x464a03){const _0x56198b=_0x37ecc3(this['attributes']);_0x4573fa(_0x56198b,_0x2c5e83,_0x464a03),_0x4e4081(_0x56198b,this['attributes'])||(this['attributes']=_0x56198b,this['_onAttributesChange'](_0x56198b));}['removeAttribute'](_0x319ee2){const _0x5f4a17=_0x37ecc3(this['attributes']);_0x2ea8b3(_0x5f4a17,_0x319ee2),_0x4e4081(_0x5f4a17,this['attributes'])||(this['attributes']=_0x5f4a17,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 _0x4295c7()['substr'](0x1,0x5);}}function o(_0x1660ae,_0x1a3169,_0x5b9f77){const t=_0x1660ae['t'];switch(_0x1a3169){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',_0x5b9f77);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b9f77);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b9f77);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b9f77);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b9f77);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',_0x5b9f77);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b9f77);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',_0x5b9f77);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b9f77);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b9f77);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b9f77);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b9f77);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b9f77);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b9f77);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b9f77);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b9f77);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b9f77);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b9f77);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b9f77);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b9f77);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b9f77);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b9f77);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b9f77);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'},_0x5b9f77);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b9f77);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b9f77);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b9f77);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b9f77);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b9f77);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'},_0x5b9f77);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b9f77);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b9f77);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b9f77);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b9f77);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'},_0x5b9f77);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b9f77);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'},_0x5b9f77);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'},_0x5b9f77);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b9f77);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'},_0x5b9f77);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b9f77);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'},_0x5b9f77);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b9f77);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b9f77);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'},_0x5b9f77);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'},_0x5b9f77);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'},_0x5b9f77);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b9f77);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'},_0x5b9f77);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'},_0x5b9f77);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'},_0x5b9f77);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1a3169;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4afb6d,_0x3eeb26){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4afb6d,this['_locale']=_0x3eeb26;}['getDescriptions'](_0x34b6f4){const _0x44b4cd=[],_0x20a511=new Set(),_0x8d536d=new Set();for(let _0x36689d=0x0;_0x36689d<_0x34b6f4['length'];_0x36689d++){const _0x11811a=_0x34b6f4[_0x36689d];if(!_0x11811a['isInContent'])continue;const _0x28f79b=this['_handleCustomCallbackDescription'](_0x11811a);if(_0x28f79b){if(null!=_0x11811a['subType']){if(_0x20a511['has'](_0x11811a['subType']))continue;_0x20a511['add'](_0x11811a['subType']);}_0x44b4cd['push'](_0x28f79b);}else{if('attribute'!=_0x11811a['type'])'insertion'!=_0x11811a['type']&&'deletion'!=_0x11811a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x44b4cd,_0x11811a,_0x34b6f4[_0x36689d+0x1]);else{const _0x6fdafe=_0x11811a['data']['key'];if(_0x8d536d['has'](_0x6fdafe))continue;_0x8d536d['add'](_0x11811a['data']['key']),_0x6fdafe==m?this['_handleRenameSuggestionDescription'](_0x44b4cd,_0x11811a):this['_handleAttributeSuggestionDescription'](_0x44b4cd,_0x11811a);}}}return this['_resolveDescriptionItems'](_0x44b4cd);}['registerDescriptionCallback'](_0x36266a){this['_customCallbacks']['push'](_0x36266a);}['registerElementLabel'](_0x163c17,_0x5103bf,_0x40cac0=_0x1de43c['normal']){'function'==typeof _0x163c17?_0xaf186d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x163c17,'label':_0x5103bf,'priority':_0x40cac0}):this['_itemLabels']['set'](_0x163c17,_0x5103bf);}['registerAttributeLabel'](_0x49a33a,_0x135059){this['_attributeLabels']['set'](_0x49a33a,_0x135059);}['getItemLabel'](_0x2d31ed,_0x16dc0d=0x1){let _0x58cc11;for(const _0x534657 of this['_itemLabelsCallbacks'])if(_0x534657['matchingCallback'](_0x2d31ed)){_0x58cc11=_0x534657['label'];break;}return _0x58cc11||(_0x58cc11=this['_itemLabels']['get'](_0x2d31ed['name'])),_0x58cc11?_0x58cc11(_0x16dc0d):0x1!==_0x16dc0d?_0x16dc0d+'\x20'+_0x2d31ed['name']+'s':''+_0x2d31ed['name'];}['_addDescriptionItems'](_0x1cbb3c,_0x2c755a){const _0x1ad998=_0x2c755a['getFirstRange']()['getWalker'](),_0x239b22='insertion'==_0x2c755a['type']?'add':'remove';for(const _0x254832 of _0x1ad998){const _0x3168b0=_0x254832['item'],_0x39622f=_0x1cbb3c[_0x1cbb3c['length']-0x1];if(_0x3168b0['is']('$textProxy'))_0x39622f&&_0x39622f['type']['indexOf']('Container')>-0x1&&_0x1cbb3c['pop'](),_0x39622f&&'text'==_0x39622f['type']?_0x39622f[_0x239b22]+=_0x3168b0['data']:_0x1cbb3c['push']({'type':'text','add':'add'==_0x239b22?_0x3168b0['data']:'','remove':'remove'==_0x239b22?_0x3168b0['data']:''});else{if(this['_schema']['isObject'](_0x3168b0)){const _0x3cfd61=_0x3168b0;if(_0x39622f&&_0x39622f['type']['indexOf']('Container')>-0x1&&_0x1cbb3c['pop'](),'elementEnd'==_0x254832['type'])continue;_0x39622f&&_0x39622f['type']==_0x239b22+'Object'&&_0x39622f['element']['name']==_0x3cfd61['name']?_0x39622f['quantity']++:_0x1cbb3c['push']({'type':_0x239b22+'Object','element':_0x3cfd61,'quantity':0x1}),_0x1ad998['skip'](_0x4f86a8=>!('elementEnd'==_0x4f86a8['type']&&_0x4f86a8['item']==_0x3168b0));}else{if(this['_schema']['checkChild'](_0x3168b0,'$text')||_0x3168b0['is']('element','softBreak')){const _0x15b52b=_0x3168b0;if('add'==_0x239b22&&'elementStart'==_0x254832['type']||'remove'==_0x239b22&&'elementEnd'==_0x254832['type'])continue;if(_0x39622f&&-0x1==_0x39622f['type']['indexOf']('Container')){'text'==_0x39622f['type']&&(_0x39622f[_0x239b22]+='\x0a');continue;}let _0x2ffddc;if(_0x2ffddc='add'==_0x239b22?_0x15b52b['nextSibling']&&!this['_schema']['isObject'](_0x15b52b['nextSibling'])?_0x15b52b['nextSibling']:null:_0x15b52b['previousSibling']&&!this['_schema']['isObject'](_0x15b52b['previousSibling'])?_0x15b52b['previousSibling']:null,_0x15b52b['isEmpty']||_0x2ffddc&&_0x2ffddc['isEmpty']){const _0x32187b=_0x2ffddc&&_0x2ffddc['isEmpty']?_0x2ffddc:_0x15b52b;_0x39622f&&_0x39622f['type']==_0x239b22+'EmptyContainer'&&_0x39622f['element']['name']==_0x32187b['name']?_0x39622f['quantity']++:_0x1cbb3c['push']({'type':_0x239b22+'EmptyContainer','element':_0x32187b,'quantity':0x1});}else _0x1cbb3c['push']({'type':_0x239b22+'Container','element':_0x15b52b});}}}}}['_resolveDescriptionItems'](_0x520ad3){const _0x573531=this['_locale'],_0x16a918=[],_0x21ba92=[],_0x29d69e=[];for(const _0x1c95ff of _0x520ad3)switch(_0x1c95ff['type']){case'text':if(_0x1c95ff['add']=_0x1c95ff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1c95ff['remove']=_0x1c95ff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1c95ff['add']&&''!=_0x1c95ff['remove']){_0x16a918['push']({'type':'replace','content':o(_0x573531,'REPLACE_TEXT',['\x22'+_0x1c95ff['remove']+'\x22','\x22'+_0x1c95ff['add']+'\x22'])});continue;}if(null!=_0x1c95ff['add']['match'](/^ +$/)){_0x16a918['push']({'type':'insertion','content':o(_0x573531,'*Insert:*\x20%0',o(_0x573531,'ELEMENT_SPACE',_0x1c95ff['add']['length']))});continue;}if(null!=_0x1c95ff['remove']['match'](/^ +$/)){_0x16a918['push']({'type':'deletion','content':o(_0x573531,'*Remove:*\x20%0',o(_0x573531,'ELEMENT_SPACE',_0x1c95ff['remove']['length']))});continue;}if(''!=_0x1c95ff['add']){_0x16a918['push']({'type':'insertion','content':o(_0x573531,'*Insert:*\x20%0','\x22'+_0x1c95ff['add']+'\x22')});continue;}_0x16a918['push']({'type':'deletion','content':o(_0x573531,'*Remove:*\x20%0','\x22'+_0x1c95ff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x16a918['push']({'type':'insertion','content':o(_0x573531,'*Insert:*\x20%0',this['getItemLabel'](_0x1c95ff['element'],_0x1c95ff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x16a918['push']({'type':'deletion','content':o(_0x573531,'*Remove:*\x20%0',this['getItemLabel'](_0x1c95ff['element'],_0x1c95ff['quantity']))});continue;case'addContainer':_0x16a918['push']({'type':'insertion','content':o(_0x573531,'*Split:*\x20%0',this['getItemLabel'](_0x1c95ff['element'],_0x1c95ff['quantity']))});continue;case'removeContainer':_0x16a918['push']({'type':'deletion','content':o(_0x573531,'*Merge:*\x20%0',this['getItemLabel'](_0x1c95ff['element'],_0x1c95ff['quantity']))});continue;case'addFormat':_0x21ba92['push'](_0x1c95ff['key']);continue;case'removeFormat':_0x29d69e['push'](_0x1c95ff['key']);continue;default:_0x16a918['push'](_0x1c95ff);}if(_0x21ba92['length']){const _0x3f53bb=_0x21ba92['map'](_0x3ac334=>this['_attributeLabels']['has'](_0x3ac334)?this['_attributeLabels']['get'](_0x3ac334):_0x3ac334)['join'](',\x20');_0x16a918['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3f53bb)});}if(_0x29d69e['length']){const _0x215b71=_0x29d69e['map'](_0x294a5a=>this['_attributeLabels']['has'](_0x294a5a)?this['_attributeLabels']['get'](_0x294a5a):_0x294a5a)['join'](',\x20');_0x16a918['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x215b71)});}return _0x16a918;}['_handleCustomCallbackDescription'](_0xbd547e){for(const _0xb889f3 of this['_customCallbacks']){const _0x22a92c=_0xb889f3(_0xbd547e);if(_0x22a92c&&'type'in _0x22a92c)return _0x22a92c;}}['_handleAttributeSuggestionDescription'](_0xa1d74c,_0x2a1d2a){const _0x52d675=_0x2a1d2a['data'],_0x3772df=void 0x0===_0x52d675['newValue']?'removeFormat':'addFormat';_0xa1d74c['push']({'type':_0x3772df,'key':_0x52d675['key']});}['_handleRenameSuggestionDescription'](_0x36e6e4,_0xc2cf2e){_0x36e6e4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc2cf2e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x20d20c,_0x310f48,_0x3dab7b){if(this['_addDescriptionItems'](_0x20d20c,_0x310f48),_0x3dab7b&&_0x3dab7b['getFirstRange']()&&!_0x310f48['getFirstRange']()['end']['isEqual'](_0x3dab7b['getFirstRange']()['start'])){const _0x4fec90=_0x20d20c[_0x20d20c['length']-0x1],_0x1a566e='insertion'==_0x310f48['type']?'add':'remove';_0x4fec90&&'text'==_0x4fec90['type']&&(_0x4fec90[_0x1a566e]+='\x0a');}}}class V extends _0x592a9e{['afterInit'](){const _0x51027c=this['editor'],_0x5ce08e=_0x51027c['plugins']['get']('TrackChangesEditing');_0x51027c['commands']['get']('showAIAssistant')&&_0x5ce08e['enableCommand']('showAIAssistant');}}class U extends _0x592a9e{['afterInit'](){const _0x2954f8=this['editor'],_0x1498b4=_0x2954f8['locale'];if(!_0x2954f8['plugins']['has']('AlignmentEditing'))return;const _0x2c60f7=_0x2954f8['plugins']['get']('TrackChangesEditing');_0x2c60f7['enableDefaultAttributesIntegration']('alignment'),_0x2c60f7['registerBlockAttribute']('alignment'),_0x2c60f7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1498b4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd837=this['editor'],_0x374ce4=_0x5bd837['locale'];_0x5bd837['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43cef3=>{if('formatBlock'!=_0x43cef3['type'])return;const {data:_0x304569}=_0x43cef3;if(_0x304569&&'alignment'==_0x304569['commandName']){const _0x369d68=_0x304569['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x374ce4,'*Format:*\x20%0',function(_0xfd7a00){switch(_0xfd7a00){case'left':return o(_0x374ce4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x374ce4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x374ce4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x374ce4,'FORMAT_JUSTIFY_TEXT');}}(_0x369d68))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x592a9e{['afterInit'](){const _0x1f0382=this['editor'],_0x3bfc7e=_0x1f0382['plugins']['get']('TrackChangesEditing'),_0x40cd4d=_0x1f0382['locale'];for(const _0x2f9cbb of ti){if(!_0x1f0382['plugins']['has'](_0x2f9cbb))continue;const _0x50eaca=_0x2f9cbb['slice'](0x0,-0x7)['toLowerCase'](),_0x5862a4='FORMAT_'+_0x50eaca['toUpperCase']();_0x3bfc7e['enableDefaultAttributesIntegration'](_0x50eaca),_0x3bfc7e['registerInlineAttribute'](_0x50eaca),_0x3bfc7e['descriptionFactory']['registerAttributeLabel'](_0x50eaca,o(_0x40cd4d,_0x5862a4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4913d2=this['editor'],_0x1754ae=_0x4913d2['locale'],_0x185042=_0x4913d2['plugins']['get']('TrackChangesEditing');function _0x2117d8(_0x405136,_0x2b5ac3){_0x185042['descriptionFactory']['registerDescriptionCallback'](_0x344492=>{if('formatInline'!=_0x344492['type'])return;const {data:_0x51c1ee}=_0x344492;return _0x51c1ee&&_0x51c1ee['commandName']===_0x405136?_0x51c1ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1754ae,'*Format:*\x20%0',_0x2b5ac3)}:{'type':'format','content':o(_0x1754ae,'*Remove\x20format:*\x20%0',_0x2b5ac3)}:void 0x0;});}_0x2117d8('bold',o(_0x1754ae,'FORMAT_BOLD')),_0x2117d8('italic',o(_0x1754ae,'FORMAT_ITALIC')),_0x2117d8('underline',o(_0x1754ae,'FORMAT_UNDERLINE')),_0x2117d8('code',o(_0x1754ae,'FORMAT_CODE')),_0x2117d8('strikethrough',o(_0x1754ae,'FORMAT_STRIKETHROUGH')),_0x2117d8('subscript',o(_0x1754ae,'FORMAT_SUBSCRIPT')),_0x2117d8('superscript',o(_0x1754ae,'FORMAT_SUPERSCRIPT'));}}class F extends _0x592a9e{['afterInit'](){const _0x39b7b5=this['editor'],_0x2e6366=_0x39b7b5['locale'];if(!_0x39b7b5['plugins']['has']('BlockQuoteEditing'))return;const _0x4eb397=_0x39b7b5['plugins']['get']('TrackChangesEditing'),_0x52290d=this['editor']['commands']['get']('blockQuote');_0x4eb397['enableCommand']('blockQuote',(_0x285fc7,_0x394cae={})=>{const _0xf5ba86=this['editor']['model']['document']['selection'],_0x2d2121=_0x394cae&&void 0x0!==_0x394cae['forceValue']?_0x394cae['forceValue']:!_0x52290d['value'];let _0x2194ea=[];if(_0x2d2121){const _0x5e08e6=Array['from'](_0xf5ba86['getSelectedBlocks']())['filter'](_0x574733=>oo(_0x574733)||function(_0x25e5aa,_0x2c7d21){const _0x228dbc=_0x2c7d21['checkChild'](_0x25e5aa['parent'],'blockQuote'),_0x5861ff=_0x2c7d21['checkChild'](['$root','blockQuote'],_0x25e5aa);return _0x228dbc&&_0x5861ff;}(_0x574733,this['editor']['model']['schema']));_0x2194ea=to(_0x5e08e6,_0x39b7b5['model']);}else{const _0x30f65b=Array['from'](_0xf5ba86['getSelectedBlocks']())['filter'](_0x551ee8=>oo(_0x551ee8));_0x2194ea=to(_0x30f65b,_0x39b7b5['model']);}_0x39b7b5['model']['change'](()=>{for(const _0x1030b9 of _0x2194ea)_0x4eb397['markBlockFormat'](_0x1030b9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d2121}]});});}),_0x4eb397['descriptionFactory']['registerDescriptionCallback'](_0x7274ce=>{const {data:_0x56916f}=_0x7274ce;if(_0x56916f&&'blockQuote'==_0x56916f['commandName']){const _0x20fd91=o(_0x2e6366,'ELEMENT_BLOCK_QUOTE');return _0x56916f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e6366,'*Set\x20format:*\x20%0',_0x20fd91)}:{'type':'format','content':o(_0x2e6366,'*Remove\x20format:*\x20%0',_0x20fd91)};}});}}function oo(_0x2d0acd){return'blockQuote'==_0x2d0acd['parent']['name'];}class L extends _0x592a9e{['afterInit'](){const _0x50a3ba=this['editor'];_0x50a3ba['plugins']['has']('CaseChange')&&(_0x50a3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x50a3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x50a3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x592a9e{['afterInit'](){const _0x5bb439=this['editor'];_0x5bb439['commands']['get']('ckbox')&&_0x5bb439['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x592a9e{['afterInit'](){const _0x50725f=this['editor'];if(!_0x50725f['plugins']['has']('CodeBlock'))return;const _0x28e180=_0x50725f['plugins']['get']('TrackChangesEditing'),_0x394ced=_0x50725f['locale'],_0x707e20=_0x50725f['config']['get']('codeBlock')['languages'],_0x5aecac=_0x50725f['commands']['get']('codeBlock');_0x28e180['enableCommand']('indentCodeBlock'),_0x28e180['enableCommand']('outdentCodeBlock'),_0x28e180['enableCommand']('codeBlock',(_0x3b3d6d,_0x2ed579={})=>{const _0x31fe36=_0x50725f['model'],_0x28df11=_0x50725f['model']['document']['selection'],_0x1c9fc0=_0x2ed579&&void 0x0!==_0x2ed579['forceValue']?_0x2ed579['forceValue']:!_0x5aecac['value'];let _0x11a11f;_0x2ed579['language']||(_0x2ed579['language']=_0x707e20[0x0]['language']),_0x11a11f=_0x1c9fc0?Array['from'](_0x28df11['getSelectedBlocks']())['filter'](_0x29b7a7=>eo(_0x29b7a7)||function(_0x2aa5e7,_0x4694d9){if(_0x2aa5e7['is']('rootElement')||_0x4694d9['isLimit'](_0x2aa5e7))return!0x1;return _0x4694d9['checkChild'](_0x2aa5e7['parent'],'codeBlock');}(_0x29b7a7,_0x31fe36['schema'])):Array['from'](_0x28df11['getSelectedBlocks']())['filter'](_0x33c328=>eo(_0x33c328));const _0x47a86d=to(_0x11a11f,_0x31fe36);_0x31fe36['change'](()=>{for(const _0xecf2aa of _0x47a86d)_0x28e180['markBlockFormat'](_0xecf2aa,{'commandName':'codeBlock','commandParams':[{..._0x2ed579,'forceValue':_0x1c9fc0}],'formatGroupId':'blockName'});});}),(_0x28e180['descriptionFactory']['registerElementLabel']('codeBlock',_0x2059fa=>o(_0x394ced,'ELEMENT_CODE_BLOCK',_0x2059fa)),_0x28e180['descriptionFactory']['registerDescriptionCallback'](_0x1937dd=>{if('formatBlock'!=_0x1937dd['type'])return;const _0x545f03=_0x394ced['t'],{data:_0x5caaf7}=_0x1937dd;if(!_0x5caaf7||'codeBlock'!=_0x5caaf7['commandName'])return;const _0x17b388=_0x5caaf7['commandParams'][0x0]['language'],_0x3c6935=_0x545f03(_0x707e20['find'](_0x24aa30=>_0x24aa30['language']===_0x17b388)['label'])['toLowerCase']();return _0x5caaf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394ced,'*Set\x20format:*\x20%0',o(_0x394ced,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c6935+')')}:{'type':'format','content':o(_0x394ced,'*Remove\x20format:*\x20%0',o(_0x394ced,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3a42ed){return'codeBlock'==_0x3a42ed['name'];}class q extends _0x592a9e{['afterInit'](){const _0x1cf12a=this['editor'];if(!_0x1cf12a['plugins']['has']('CommentsEditing'))return;_0x1cf12a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x44fad1,_0x5d2be4,_0x596623){const _0x1688d6=[];for(const _0x20ae14 of _0x5d2be4['getItems']())_0x20ae14['hasAttribute'](_0x44fad1)&&_0x1688d6['push'](_0x596623['createRangeOn'](_0x20ae14));return _0x1688d6;}function _e(_0x1c5167,_0x2729ed,{showActiveMarker:_0x2bd16b=!0x0}={}){const _0x397d7c=_0x1c5167['plugins']['get']('TrackChangesEditing');return(_0x246206,_0x574ff1,_0x571671)=>{if(!_0x571671['consumable']['test'](_0x574ff1['markerRange'],_0x246206['name']))return;const _0x18e026=_0x574ff1['markerRange']['getWalker'](),_0x43ac0d=_0x574ff1['markerRange']['start'],_0x1168d9=_0x1c5167['model']['schema'];let _0x1318f8=null,_0x3a2ce4=null,_0x13ae38=!0x1,_0x4a736d=!0x1;for(const _0x56846b of _0x18e026){const _0x46944b=_0x56846b['item'];_0x13ae38=_0x13ae38||_0x1168d9['isContent'](_0x46944b);const _0x1f69d1=_0x571671['mapper']['toViewElement'](_0x46944b);if(_0x1f69d1&&_0x1f69d1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56846b['type']&&(_0x1168d9['isBlock'](_0x46944b)&&!_0x1168d9['isLimit'](_0x46944b)&&(_0x46944b['nextSibling']||_0x43ac0d['isAtEnd']?_0x1318f8&&_0x1318f8['parent']==_0x46944b||(_0x1318f8=_0x46944b,_0x40179c(_0x56846b['previousPosition']),_0x4a736d=!0x0):_0x3a2ce4=_0x3a2ce4||_0x56846b['previousPosition']));}function _0x40179c(_0x3199ee){const _0x4d1265=_0x571671['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2729ed}),_0x3cfd08=_0x571671['mapper']['toViewPosition'](_0x3199ee);_0x2bd16b&&_0x397d7c['activeMarkers']['includes'](_0x574ff1['markerName'])&&_0x571671['writer']['addClass']('ck-suggestion-marker--active',_0x4d1265),_0x571671['writer']['insert'](_0x3cfd08,_0x4d1265),_0x571671['mapper']['bindElementToMarker'](_0x4d1265,_0x574ff1['markerName']);}_0x13ae38||_0x4a736d||!_0x3a2ce4||_0x40179c(_0x3a2ce4);};}class z extends _0x592a9e{static get['requires'](){return[_0x31b9d0];}['init'](){const _0x1cd009=this['editor'],_0x3a8d9f=_0x1cd009['plugins']['get']('TrackChangesEditing');_0x3a8d9f['enableCommand']('delete');const _0x5ac342=_0x1cd009['commands']['get']('deleteForward');_0x3a8d9f['enableCommand']('deleteForward',(_0x11f3a6,_0x2e9f98={})=>{const _0x2a205a=_0x1cd009['model']['createSelection'](_0x1cd009['model']['document']['selection']);_0x2a205a['isCollapsed']&&_0x1cd009['model']['modifySelection'](_0x2a205a,{'direction':'forward','unit':_0x2e9f98['unit']});const _0x51fce1=_0x2a205a['getFirstRange'](),_0x2d2dd1=_0x438751['fromRange'](_0x51fce1);let _0x30e073;_0x11f3a6(_0x2e9f98),_0x30e073='$graveyard'==_0x2d2dd1['root']['rootName']?_0x1cd009['model']['createRange'](_0x51fce1['start']):_0x1cd009['model']['createRange'](_0x2d2dd1['start'],_0x2d2dd1['end']),_0x2d2dd1['detach'](),_0x1cd009['model']['enqueueChange'](_0x5ac342['buffer']['batch'],_0x15f5ba=>{_0x5ac342['buffer']['lock'](),_0x15f5ba['setSelection'](_0x15f5ba['createRange'](_0x30e073['end'])),_0x5ac342['buffer']['unlock']();});}),_0x1cd009['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1cd009,'merge'),{'priority':'high'}),_0x1cd009['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x55077e,_0x4a3712,_0x266bcf)=>{_0x266bcf['options']['showSuggestionHighlights']&&_e(_0x1cd009,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x55077e,_0x4a3712,_0x266bcf);},{'priority':'high'}),_0x1cd009['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2aaa7f,_0x28b38b,_0x52635c)=>{const _0x59deeb=_0x52635c['mapper']['markerNameToElements'](_0x28b38b['markerName']);if(_0x59deeb){for(const _0x5be789 of _0x59deeb)_0x5be789['is']('uiElement')&&(_0x52635c['mapper']['unbindElementFromMarkerName'](_0x5be789,_0x28b38b['markerName']),_0x52635c['writer']['remove'](_0x5be789));}},{'priority':'high'});}}class K extends _0x592a9e{['afterInit'](){const _0x38e0ea=this['editor'];if(!_0x38e0ea['plugins']['has']('ListEditing'))return;const _0x5f135d=_0x38e0ea['locale'],_0x305fd5=_0x38e0ea['plugins']['get']('TrackChangesEditing'),_0x1e40af=_0x38e0ea['plugins']['has']('TodoListEditing'),_0x10715d=!!_0x38e0ea['config']['get']('list.multiBlock');function _0x532072(_0x30c1b5){return{'type':'format','content':''+o(_0x5f135d,'*Set\x20format:*\x20%0',_0x30c1b5)};}function _0x83b53a(_0xfd338d){return{'type':'format','content':''+o(_0x5f135d,'*Remove\x20format:*\x20%0',_0xfd338d)};}_0x305fd5['enableDefaultAttributesIntegration']('numberedList'),_0x305fd5['enableDefaultAttributesIntegration']('bulletedList'),_0x305fd5['enableDefaultAttributesIntegration']('customNumberedList'),_0x305fd5['enableDefaultAttributesIntegration']('customBulletedList'),_0x305fd5['enableDefaultAttributesIntegration']('indentList'),_0x305fd5['enableDefaultAttributesIntegration']('outdentList'),_0x305fd5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x305fd5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x305fd5['registerBlockAttribute']('listItemId'),_0x305fd5['registerBlockAttribute']('listType'),_0x305fd5['registerBlockAttribute']('listIndent'),_0x10715d&&(_0x305fd5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x305fd5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1e40af&&(_0x305fd5['enableDefaultAttributesIntegration']('todoList'),_0x305fd5['enableDefaultAttributesIntegration']('checkTodoList'),_0x305fd5['registerBlockAttribute']('todoListChecked'),_0x305fd5['descriptionFactory']['registerDescriptionCallback'](_0x1a9c2d=>{const {data:_0x2013b5}=_0x1a9c2d;if(_0x2013b5&&'todoListChecked'==_0x2013b5['key'])return{'type':'format','content':_0x2013b5['newValue']?o(_0x5f135d,'*Check\x20item*'):o(_0x5f135d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ae1a3=>{if(_0x4ae1a3['batch']['isUndo'])return!0x1;let _0x4203fe=!0x1;const _0xb22cb1=_0x305fd5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x270202=>'todoListChecked'===_0x305fd5['_getAttributeKey'](_0x270202));for(const _0x17e568 of _0xb22cb1){'todo'!=_0x17e568['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x305fd5['_findSuggestions'](_0x17e568['getFirstRange'](),'attribute')['find'](_0x1f67e3=>'listType'===_0x305fd5['_getAttributeKey'](_0x1f67e3['suggestion']))||(_0x4ae1a3['removeMarker'](_0x17e568['getFirstMarker']()),_0x4203fe=!0x0));}return _0x4203fe;})),_0x305fd5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5f135d,'FORMAT_INDENT'));const _0x3473f7={'type':'format','content':''};_0x305fd5['descriptionFactory']['registerDescriptionCallback'](_0x56fdb4=>{const {data:_0x541a06}=_0x56fdb4;if(!_0x541a06||'listType'!=_0x541a06['key'])return;let _0x39a85c=_0x56fdb4['head'];for(;_0x39a85c;){if(_0x39a85c['data']&&(('listStyle'==_0x39a85c['data']['key']||'listMarkerStyle'==_0x39a85c['data']['key'])&&(_0x39a85c['data']['newValue']&&'default'!=_0x39a85c['data']['newValue']||'default'!=_0x39a85c['data']['oldValue']&&!_0x541a06['newValue'])||!_0x10715d&&_0x39a85c['data']['key']==m))return _0x3473f7;_0x39a85c=_0x39a85c['next'];}if(null==_0x541a06['newValue'])switch(_0x541a06['oldValue']){case'bulleted':return _0x83b53a(o(_0x5f135d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x83b53a(o(_0x5f135d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x83b53a(o(_0x5f135d,'ELEMENT_TODO_LIST'));}switch(_0x541a06['newValue']){case'bulleted':return _0x532072(o(_0x5f135d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x532072(o(_0x5f135d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x532072(o(_0x5f135d,'ELEMENT_TODO_LIST'));}}),_0x305fd5['descriptionFactory']['registerDescriptionCallback'](_0x2780dd=>{const {data:_0x3de666}=_0x2780dd;if(_0x3de666&&'listIndent'==_0x3de666['key'])return null==_0x3de666['newValue']||null==_0x3de666['oldValue']&&0x0==_0x3de666['newValue']?_0x3473f7:void 0x0;}),_0x305fd5['descriptionFactory']['registerDescriptionCallback'](_0x2fb319=>{if('attribute'!=_0x2fb319['type'])return;const {data:_0x59bff0}=_0x2fb319;if(!_0x59bff0||'listItemId'!=_0x59bff0['key'])return;const _0x4acedb=le(_0x2fb319);return'newValue'==_0x4acedb?{'type':'format','content':o(_0x5f135d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4acedb?{'type':'format','content':o(_0x5f135d,'*Split:*\x20list\x20item')}:_0x3473f7;}),_0x38e0ea['model']['document']['registerPostFixer'](_0x57a9b0=>this['listItemIdFixer'](_0x57a9b0)),_0x38e0ea['model']['document']['registerPostFixer'](_0x4b679b=>this['noTrackChangesFixer'](_0x4b679b)),_0x38e0ea['model']['document']['on']('change:data',(_0x3f26ef,_0x372713)=>{if(_0x372713['isUndo']||!_0x372713['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4d8121){if(_0x4d8121['batch']['isUndo']||!_0x4d8121['batch']['isLocal'])return!0x1;let _0x34b746=!0x1;const _0x597c94=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5935be=>_0x5935be['data']&&'listItemId'==_0x5935be['data']['key'])['filter'](_0x1befdf=>_0x1befdf['data']['newValue']&&_0x1befdf['data']['oldValue']);for(const _0x2c0bc4 of _0x597c94)le(_0x2c0bc4)||(_0x4d8121['removeMarker'](_0x2c0bc4['getFirstMarker']()),_0x34b746=!0x0);return _0x34b746;}['noTrackChangesFixer'](_0x4f9f08){if(_0x4f9f08['batch']['isUndo']||!_0x4f9f08['batch']['isLocal'])return!0x1;const _0x4fe334=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4fe334['trackChangesCommand']['value'])return!0x1;let _0x51091f=!0x1;const _0x463af0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4f1b01=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4d01ba=>'attribute'==_0x4d01ba['type'])['filter'](_0x5c799a=>_0x463af0['includes'](_0x5c799a['attributeKey']));if(0x0==_0x4f1b01['length'])return _0x51091f;for(const _0x6543e7 of _0x4f1b01){const _0x40b3f2=_0x4fe334['_findSuggestions'](_0x6543e7['range'],'attribute')['filter'](_0x1c67cb=>!_0x1c67cb['meta']['isNextTo'])['map'](_0x995d54=>_0x995d54['suggestion'])['filter'](_0x19eb55=>{const _0x41f639=_0x4fe334['_getAttributeKey'](_0x19eb55);return _0x463af0['includes'](_0x41f639);});if(_0x40b3f2['length']){for(const _0xa879a7 of _0x40b3f2)_0x4f9f08['removeMarker'](_0xa879a7['getFirstMarker']());_0x51091f=!0x0;}}return _0x51091f;}['assureChains'](){const _0x171bca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5375bb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x507332;const _0x12bacf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45d0eb=>{if(_0x45d0eb['data']['oldRange']||!_0x45d0eb['data']['newRange'])return null;if(!_0x45d0eb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2060d0}=_0x171bca['_splitMarkerName'](_0x45d0eb['name']);if(!_0x171bca['hasSuggestion'](_0x2060d0))return null;const _0x1f9ca0=_0x171bca['getSuggestion'](_0x2060d0);return _0x5375bb['includes'](_0x1f9ca0['data']['key']);})['map'](_0x30bad2=>{const {id:_0x4a570e}=_0x171bca['_splitMarkerName'](_0x30bad2['name']),_0xae9cd6=_0x171bca['getSuggestion'](_0x4a570e);return _0x507332=_0xae9cd6['attributes']['groupId'],_0xae9cd6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12bacf['size'])return;const _0x1f7541=_0x171bca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c723b=>'attribute'==_0x4c723b['type']&&_0x4c723b['data']&&_0x5375bb['includes'](_0x4c723b['data']['key'])&&_0x4c723b['attributes']['groupId']!=_0x507332)['map'](_0x5873d8=>({'listItem':_0x5873d8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5873d8['attributes']['groupId']})),_0xb0b48c=new Set();for(const {groupId:_0x4f0503,listItem:_0x926ca6}of _0x1f7541)_0x12bacf['has'](_0x926ca6)&&_0xb0b48c['add'](_0x4f0503);for(const _0x4d5590 of _0x171bca['getSuggestions']())_0xb0b48c['has'](_0x4d5590['attributes']['groupId'])&&_0x4d5590['setAttribute']('groupId',_0x507332);}['_supportLegacySuggestions'](){const _0x1d866a=this['editor'],_0x30ca24=_0x1d866a['locale'],_0x1fad96=_0x1d866a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fad96['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1f2bdc,_0xaa12ec){const _0x58246b=[];for(let _0xb1d049 of _0x1f2bdc)_0xb1d049['start']['nodeAfter']===_0xb1d049['end']['parent']&&(_0xb1d049=_0x1d866a['model']['createRange'](_0x1d866a['model']['createPositionAt'](_0xb1d049['start']['nodeAfter'],0x0))),_0x58246b['push'](_0xb1d049);_0x1d866a['model']['change'](_0x27dcf3=>{const _0x481b0a=_0x1d866a['model']['document']['selection'],_0x18b1d6=Array['from'](_0x481b0a['getRanges']())['map'](_0x51eb54=>_0x438751['fromRange'](_0x51eb54));_0x27dcf3['setSelection'](_0x58246b),_0x1d866a['commands']['get'](_0xaa12ec['commandName'])['refresh'](),_0xaa12ec['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d866a['execute'](_0xaa12ec['commandName'],..._0xaa12ec['commandParams']),_0x27dcf3['setSelection'](_0x18b1d6);for(const _0x591f83 of _0x18b1d6)_0x591f83['detach']();});}),_0x1fad96['descriptionFactory']['registerElementLabel'](function(_0x3bb3fa){const _0x13a159=!_0x1d866a['model']['schema']['isObject'](_0x3bb3fa),_0x252e7c=_0x3bb3fa['previousSibling'],_0x2ff940=_0x3bb3fa['nextSibling'],_0x34c3ea=_0x3bb3fa['getAttribute']('listItemId'),_0x165940=!_0x252e7c||_0x252e7c['getAttribute']('listItemId')!==_0x34c3ea,_0x489433=!_0x2ff940||_0x2ff940['getAttribute']('listItemId')!==_0x34c3ea;return _0x13a159&&Boolean(_0x34c3ea)&&_0x165940&&_0x489433;},_0x2cc933=>o(_0x30ca24,'ELEMENT_LIST_ITEM',_0x2cc933));}['_registerLegacyDescription'](){const _0x23e470=this['editor'],_0x20dc16=_0x23e470['locale'];function _0x118447(_0x35d13f){const _0x3686e2=_0x23e470['commands']['get']('bulletedList')['value'],_0x52b2d8=_0x23e470['commands']['get']('numberedList')['value'];return'numberedList'===_0x35d13f?_0x3686e2:_0x52b2d8;}_0x23e470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x207fb7){if('formatBlock'!=_0x207fb7['type'])return;const {data:_0x433cb5}=_0x207fb7;if(!_0x433cb5)return;let _0x4d72a7,_0x124d19,_0x3927d9,_0x4604a2;switch(_0x433cb5['commandName']){case'bulletedList':_0x3927d9=_0x433cb5['commandParams'][0x0]['forceValue'],_0x4604a2=_0x118447(_0x433cb5['commandName']),_0x4d72a7=_0x3927d9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4604a2&&_0x23e470['config']['get']('list.multiBlock')||(_0x4d72a7='*Change\x20to:*\x20%0'),_0x124d19={'type':'format','content':o(_0x20dc16,_0x4d72a7,o(_0x20dc16,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3927d9=_0x433cb5['commandParams'][0x0]['forceValue'],_0x4604a2=_0x118447(_0x433cb5['commandName']),_0x4d72a7=_0x3927d9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4604a2&&_0x23e470['config']['get']('list.multiBlock')||(_0x4d72a7='*Change\x20to:*\x20%0'),_0x124d19={'type':'format','content':o(_0x20dc16,_0x4d72a7,o(_0x20dc16,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4d72a7='*Indent:*\x20%0',_0x124d19={'type':'format','content':o(_0x20dc16,_0x4d72a7,o(_0x20dc16,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4d72a7=function(_0x12b75a){const _0x2e8ed9=_0x12b75a['getFirstRange']();let _0x24d3bf=_0x2e8ed9['start']['nodeAfter'];for(;_0x24d3bf&&_0x2e8ed9['containsItem'](_0x24d3bf);){if(_0x24d3bf['getAttribute']('listIndent')>0x0)return!0x1;_0x24d3bf=_0x24d3bf['nextSibling'];}return!0x0;}(_0x207fb7)?o(_0x20dc16,'*Format:*\x20remove\x20from\x20%0',o(_0x20dc16,function(_0x5d62c2){return'ELEMENT_'+_0x5d62c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x207fb7))):o(_0x20dc16,'*Outdent:*\x20%0',o(_0x20dc16,'ELEMENT_LIST_ITEM')),_0x124d19={'type':'format','content':_0x4d72a7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x433cb5['multipleBlocks']&&(_0x4d72a7='*Merge:*\x20%0',_0x124d19={'type':'deletion','content':o(_0x20dc16,_0x4d72a7,o(_0x20dc16,'ELEMENT_LIST_ITEM'))});}return _0x124d19;});}}function le(_0x393944){let _0x19fbbb=_0x393944['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x19fbbb;){const _0x42362e=_0x19fbbb['getAttribute']('listItemId');if(!_0x42362e)return!0x1;if(_0x42362e==_0x393944['data']['newValue'])return'newValue';if(_0x42362e==_0x393944['data']['oldValue'])return'oldValue';_0x19fbbb=_0x19fbbb['previousSibling'];}return!0x1;}class pe extends _0x592a9e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x8f50f8=this['editor']['config']['get']('list.properties'),_0x221dec=this['editor']['plugins']['get']('TrackChangesEditing');_0x8f50f8['styles']&&(_0x221dec['enableDefaultAttributesIntegration']('listStyle'),_0x221dec['registerBlockAttribute']('listStyle')),_0x8f50f8['reversed']&&(_0x221dec['enableDefaultAttributesIntegration']('listReversed'),_0x221dec['registerBlockAttribute']('listReversed')),_0x8f50f8['startIndex']&&(_0x221dec['enableDefaultAttributesIntegration']('listStart'),_0x221dec['registerBlockAttribute']('listStart'));const _0x18efe2={'type':'format','content':''};_0x221dec['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x241d10=this['editor']['locale'];_0x221dec['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x241d10,'FORMAT_LIST_REVERSED')),_0x221dec['descriptionFactory']['registerDescriptionCallback'](_0x277e0a=>{const {data:_0x234414}=_0x277e0a;if(_0x234414&&'listReversed'==_0x234414['key'])return null==_0x234414['newValue']||0x0==_0x234414['newValue']&&null==_0x234414['oldValue']?_0x18efe2:void 0x0;}),_0x221dec['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x241d10,'FORMAT_LIST_START')),_0x221dec['descriptionFactory']['registerDescriptionCallback'](_0x4de486=>{const {data:_0x1d58cb}=_0x4de486;if(_0x1d58cb&&'listStart'==_0x1d58cb['key'])return null==_0x1d58cb['newValue']||0x1==_0x1d58cb['newValue']&&null==_0x1d58cb['oldValue']?_0x18efe2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1fb5ae=>{if(_0x1fb5ae['batch']['isUndo'])return!0x1;let _0x3c3cbf=!0x1;const _0x47f6a7=_0x221dec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39cfe4=>{const _0x3b76d2=_0x221dec['_getAttributeKey'](_0x39cfe4);return'listStart'==_0x3b76d2||'listReversed'==_0x3b76d2;});for(const _0x19a1ca of _0x47f6a7){const _0x17fd2f=_0x19a1ca['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x17fd2f||'customNumbered'==_0x17fd2f)continue;_0x221dec['_findSuggestions'](_0x19a1ca['getFirstRange'](),'attribute')['find'](_0xcf6dcc=>'listType'==_0x221dec['_getAttributeKey'](_0xcf6dcc['suggestion']))||(_0x1fb5ae['removeMarker'](_0x19a1ca['getFirstMarker']()),_0x3c3cbf=!0x0);}return _0x3c3cbf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe1a7c0){const _0xbb069b=this['editor']['locale'],{data:_0x19502d}=_0xe1a7c0,_0x45fce0={'type':'format','content':''};if(!_0x19502d||'listStyle'!=_0x19502d['key'])return;if(!_0x19502d['oldValue'])return'default'==_0x19502d['newValue']?_0x45fce0:{'type':'format','content':''+o(_0xbb069b,'*Set\x20format:*\x20%0',o(_0xbb069b,this['_getTranslationKeyForListStyle'](_0x19502d['newValue'])))};if(!_0x19502d['newValue']){if('default'==_0x19502d['oldValue'])return _0x45fce0;let _0xbed301=_0xe1a7c0['head'];for(;_0xbed301;){if(_0xbed301['data']&&'listType'==_0xbed301['data']['key']&&_0xbed301['data']['newValue'])return _0x45fce0;_0xbed301=_0xbed301['next'];}return{'type':'format','content':''+o(_0xbb069b,'*Remove\x20format:*\x20%0',o(_0xbb069b,this['_getTranslationKeyForListStyle'](_0x19502d['oldValue'])))};}if('default'!=_0x19502d['newValue'])return{'type':'format','content':''+o(_0xbb069b,'*Set\x20format:*\x20%0',o(_0xbb069b,this['_getTranslationKeyForListStyle'](_0x19502d['newValue'])))};let _0x16e2e1=_0xe1a7c0['head'];for(;_0x16e2e1;){if(_0x16e2e1['data']&&'listType'==_0x16e2e1['data']['key']&&_0x16e2e1['data']['newValue']&&_0x16e2e1['data']['oldValue'])return _0x45fce0;_0x16e2e1=_0x16e2e1['next'];}return{'type':'format','content':o(_0xbb069b,'*Set\x20format:*\x20%0',o(_0xbb069b,'ELEMENT_'+_0xe1a7c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3d5a14=this['editor'],_0x1fcc8e=_0x3d5a14['locale'];_0x3d5a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3859bf=>{if('formatBlock'!=_0x3859bf['type'])return;const {data:_0x1d2a3b}=_0x3859bf;if(!_0x1d2a3b)return;let _0x1b4257,_0x310f76;switch(_0x1d2a3b['commandName']){case'listStyle':_0x1b4257='*Change\x20to:*\x20%0',_0x310f76={'type':'format','content':o(_0x1fcc8e,_0x1b4257,o(_0x1fcc8e,this['_getTranslationKeyForListStyle'](_0x1d2a3b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b4257=_0x1d2a3b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x310f76={'type':'format','content':o(_0x1fcc8e,_0x1b4257)};break;case'listStart':_0x1b4257='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x310f76={'type':'format','content':o(_0x1fcc8e,_0x1b4257,_0x1d2a3b['commandParams'][0x0]['startIndex'])};}return _0x310f76;});}['_getTranslationKeyForListStyle'](_0x5721f1){return'ELEMENT_'+function(_0x52a041){if(ye['includes'](_0x52a041))return'bulleted';if(Se['includes'](_0x52a041))return'numbered';return null;}(_0x5721f1)['toUpperCase']()+'_LIST_'+_0x5721f1['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x592a9e{static get['requires'](){return[_0x115158];}['init'](){const _0x2723b9=this['editor'],_0x261983=_0x2723b9['plugins']['get']('TrackChangesEditing'),_0x5180d8=_0x2723b9['commands']['get']('enter');_0x261983['enableCommand']('enter',()=>{_0x2723b9['model']['change'](_0x4dc1fa=>{const _0x241253=_0x2723b9['model']['document']['selection'],_0x2c0d00=_0x241253['getFirstPosition'](),_0x37979d=_0x438751['fromRange'](_0x241253['getFirstRange']());if(_0x5180d8['enterBlock'](_0x4dc1fa)){const _0x5be5a4=_0x2723b9['model']['createPositionAt'](_0x2c0d00['parent']['nextSibling'],0x0),_0x258bf5=_0x4dc1fa['createRange'](_0x2c0d00,_0x5be5a4);_0x261983['markInsertion'](_0x258bf5);}else _0x4dc1fa['setSelection'](_0x4dc1fa['createRange'](_0x37979d['end']));_0x37979d['detach'](),_0x5180d8['fire']('afterExecute',{'writer':_0x4dc1fa});});}),_0x2723b9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2723b9,'split'),{'priority':'high'}),_0x2723b9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x355bdc,_0x42d344,_0x44578f)=>{const _0x52bd5d=_0x44578f['mapper']['markerNameToElements'](_0x42d344['markerName']);if(_0x52bd5d){for(const _0x2e0930 of _0x52bd5d)_0x2e0930['hasClass']('ck-suggestion-marker-split')&&(_0x44578f['mapper']['unbindElementFromMarkerName'](_0x2e0930,_0x42d344['markerName']),_0x44578f['writer']['remove'](_0x2e0930));}},{'priority':'high'}),_0x2723b9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x49f481,_0x2a6cab,_0x6d5129)=>{_0x6d5129['options']['showSuggestionHighlights']&&_e(_0x2723b9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x49f481,_0x2a6cab,_0x6d5129);},{'priority':'high'});}}class X extends _0x592a9e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1656b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1656b7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1656b7['enableCommand']('findNext'),_0x1656b7['enableCommand']('findPrevious'),_0x1656b7['enableCommand']('replace'),_0x1656b7['enableCommand']('replaceAll');}['handleFindCommand'](_0x1387c8,_0x5c7a89,_0x31fbdb={}){const _0x1d5bd2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1387c8(_0x5b78af=>{let _0x3b07fa=('string'==typeof _0x5c7a89?_0x1d5bd2['findByTextCallback'](_0x5c7a89,_0x31fbdb):_0x5c7a89)(_0x5b78af);Array['isArray'](_0x3b07fa)&&(_0x3b07fa={'results':_0x3b07fa,'searchText':'string'==typeof _0x5c7a89?_0x5c7a89:''});const _0x57d81f=_0x3b07fa['results']['filter'](_0x3b39af=>!0x1===this['_isInDeletionRange'](_0x3b39af,_0x5b78af['item']));return{..._0x3b07fa,'results':_0x57d81f};},_0x31fbdb);}['_isInDeletionRange'](_0x38cb57,_0x370353){const _0x92e192=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x370353,_0x38cb57['start']),this['editor']['model']['createPositionAt'](_0x370353,_0x38cb57['end']));for(const _0x5b974d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x92e192['getIntersection'](_0x5b974d['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 _0x592a9e{['afterInit'](){const _0x57dd45=this['editor']['locale'],_0x3bc248=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50ceec,commandName:_0x573e71}of ro)this['editor']['plugins']['has'](_0x50ceec)&&(_0x3bc248['enableDefaultAttributesIntegration'](_0x573e71),_0x3bc248['registerInlineAttribute'](_0x573e71));_0x3bc248['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x57dd45,'FORMAT_FONT_SIZE')),_0x3bc248['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x57dd45,'FORMAT_FONT_FAMILY')),_0x3bc248['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x57dd45,'FORMAT_FONT_COLOR')),_0x3bc248['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x57dd45,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bb447=this['editor'],_0x1e1ec7=_0x3bb447['locale'];_0x3bb447['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cd3d0=>{const _0xc994d4=_0x1e1ec7['t'];if('formatInline'!=_0x5cd3d0['type'])return;const {data:_0x213531}=_0x5cd3d0;if(null!=_0x213531){if('fontSize'==_0x213531['commandName']){const _0x492155=_0x213531['commandParams'][0x0]['value'];if(_0x492155){const _0x578afe=_0xc994d4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x18a55a=>_0x18a55a['model']==_0x492155)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e1ec7,'*Set\x20font\x20size:*\x20%0',_0x578afe)};}return{'type':'format','content':o(_0x1e1ec7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x213531['commandName']){const _0x205924=_0x213531['commandParams'][0x0]['value'];return _0x205924?{'type':'format','content':o(_0x1e1ec7,'*Set\x20font\x20family:*\x20%0',_0x205924)}:{'type':'format','content':o(_0x1e1ec7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x213531['commandName']){const _0xa16685=_0x213531['commandParams'][0x0]['value'];if(_0xa16685){const _0x46504b=_0x1fcb71(this['editor']['config']['get']('fontColor.colors'))['find'](_0x196286=>_0x196286['model']==_0xa16685);let _0x12727b=_0xa16685,_0x147a74='';return _0x46504b&&(_0x12727b=_0x46504b['label'],_0x147a74=_0xc994d4(_0x12727b)['toLowerCase']()),{'type':'format','content':o(_0x1e1ec7,'*Set\x20font\x20color:*\x20%0',_0x147a74)['trim'](),'color':{'value':_0xa16685,'title':_0x147a74||_0x12727b}};}return{'type':'format','content':o(_0x1e1ec7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x213531['commandName']){const _0x1ad184=_0x213531['commandParams'][0x0]['value'];if(_0x1ad184){const _0x13d87f=_0x1fcb71(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2696ba=>_0x2696ba['model']==_0x1ad184);let _0x34d570=_0x1ad184,_0x2384d7='';return _0x13d87f&&(_0x34d570=_0x13d87f['label'],_0x2384d7=_0xc994d4(_0x34d570)['toLowerCase']()),{'type':'format','content':o(_0x1e1ec7,'*Set\x20font\x20background\x20color:*\x20%0',_0x2384d7)['trim'](),'color':{'value':_0x1ad184,'title':_0x2384d7||_0x34d570}};}return{'type':'format','content':o(_0x1e1ec7,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x592a9e{['afterInit'](){const _0x2bf37a=this['editor'],_0x40d6c8=_0x2bf37a['plugins']['get']('TrackChangesEditing'),_0xed43fb=_0x2bf37a['commands']['get']('copyFormat'),_0x20cd64=_0x2bf37a['commands']['get']('pasteFormat');_0xed43fb&&_0x20cd64&&(_0x40d6c8['enableDefaultAttributesIntegration']('pasteFormat'),_0x40d6c8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x609a8=this['editor'],_0xc8557f=_0x609a8['locale'];_0x609a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56086f=>{if('formatBlock'!=_0x56086f['type']&&'formatInline'!=_0x56086f['type'])return;const {data:_0x5d3254}=_0x56086f;if(_0x5d3254&&'pasteFormat'===_0x5d3254['commandName']){const _0x294cf9=[],_0x59a639=_0x5d3254['commandParams'][0x0];for(const [_0x1c2e50,_0x5286e6]of Object['entries'](_0x59a639))_0x294cf9['push'](so(_0x609a8,_0x1c2e50,_0x5286e6));return _0x294cf9['length']?{'type':'format','content':o(_0xc8557f,'*Set\x20format\x20to:*\x20%0',_0x294cf9['join'](',\x20'))}:{'type':'format','content':o(_0xc8557f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x44afa3,_0x1fd004,_0x37a6c5){const _0x3f060a=_0x44afa3['locale']['t'],_0xa18401=_0x1fd004['split'](/(?=[A-Z])/)['join']('\x20'),_0x1fd74a=_0x3f060a(_0xa18401['charAt'](0x0)['toUpperCase']()+_0xa18401['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x37a6c5)return _0x1fd74a;if('fontColor'===_0x1fd004||'fontBackgroundColor'===_0x1fd004){const _0x313d7f=_0x1fcb71(_0x44afa3['config']['get']('fontColor.colors'))['find'](_0x1f5945=>_0x1f5945['model']==_0x37a6c5);return _0x1fd74a+'\x20('+(_0x313d7f?_0x3f060a(_0x313d7f['label'])['toLowerCase']():_0x37a6c5)+')';}if('fontSize'===_0x1fd004&&isNaN(parseFloat(_0x37a6c5))){const _0x3e5269=_0x44afa3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44afa3['config']['get']('fontSize.options'))['find'](_0x32942d=>_0x32942d['model']==_0x37a6c5);return _0x1fd74a+'\x20('+(_0x3e5269?_0x3f060a(_0x3e5269['title'])['toLowerCase']():_0x37a6c5)+')';}return _0x1fd74a+'\x20('+_0x37a6c5+')';}class tt extends _0x592a9e{['_headingOptions'];['afterInit'](){const _0x5bf1db=this['editor'];if(!_0x5bf1db['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5bf1db['config']['get']('heading.options');const _0x577934=_0x5bf1db['locale'],_0x3ddfbd=_0x5bf1db['plugins']['get']('TrackChangesEditing');_0x3ddfbd['enableDefaultAttributesIntegration']('heading');for(const _0x1c0831 of this['_headingOptions'])'paragraph'!=_0x1c0831['model']&&_0x3ddfbd['descriptionFactory']['registerElementLabel'](_0x1c0831['model'],_0x5d24c5=>{const _0x2e94fe=this['_getHeadingLevel'](_0x1c0831['model']);return null!==_0x2e94fe?_0x1cdd57(_0x5d24c5,_0x2e94fe):_0x5b8b11(_0x5d24c5,_0x1c0831['title']);});function _0x1cdd57(_0x52167a,_0x575b88){return o(_0x577934,'ELEMENT_HEADING',[_0x52167a,_0x575b88]);}function _0x5b8b11(_0x45f003,_0x5bed54){return o(_0x577934,'ELEMENT_HEADING_CUSTOM',[_0x45f003,_0x5bed54]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a8aa9=this['editor'],_0x4810b5=_0x1a8aa9['locale'];function _0x47a3c2(_0x21e8b0,_0x5d91bf){return o(_0x4810b5,'ELEMENT_HEADING_CUSTOM',[_0x21e8b0,_0x5d91bf]);}_0x1a8aa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb536f1=>{if('formatBlock'!=_0xb536f1['type'])return;const {data:_0x33c908}=_0xb536f1;if(_0x33c908&&'heading'==_0x33c908['commandName']){const _0x1d50f1=_0x33c908['commandParams'][0x0]['value'],_0x180e5d=this['_getHeadingLevel'](_0x1d50f1);if(null!==_0x180e5d)return{'type':'format','content':o(_0x4810b5,'*Change\x20to:*\x20%0',(_0x22f74b=0x1,_0x3a2b7d=_0x180e5d,o(_0x4810b5,'ELEMENT_HEADING',[_0x22f74b,_0x3a2b7d])))};const _0x2c3a33=this['_headingOptions']['find'](_0x8855f9=>_0x8855f9['model']===_0x1d50f1)['title'];return{'type':'format','content':o(_0x4810b5,'*Change\x20to:*\x20%0',_0x47a3c2(0x1,_0x2c3a33))};}var _0x22f74b,_0x3a2b7d;});}['_getHeadingLevel'](_0x44a9e2){const _0x142187=_0x44a9e2['match'](/^heading(\d+)/);if(_0x142187)return _0x142187[0x1];const _0x3c9898=this['_headingOptions']?.['find'](_0x160ff2=>_0x160ff2['model']==_0x44a9e2);if(_0x3c9898&&_0x3c9898['view']){const _0x59cbd8=_0x3c9898['view'],_0x2b025e=(_0x59cbd8['name']??_0x59cbd8)['match'](/^h(\d+)/);if(_0x2b025e)return _0x2b025e[0x1];}return null;}}class et extends _0x592a9e{['afterInit'](){const _0x330f0c=this['editor'];if(!_0x330f0c['plugins']['has']('HighlightEditing'))return;const _0x4a2594=_0x330f0c['plugins']['get']('TrackChangesEditing'),_0x446c24=_0x330f0c['locale'];_0x4a2594['enableDefaultAttributesIntegration']('highlight'),_0x4a2594['registerInlineAttribute']('highlight'),_0x4a2594['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x446c24,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46b26c=this['editor'],_0x47461d=_0x46b26c['locale'];_0x46b26c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e139=>{if('formatInline'!=_0x43e139['type'])return;const {data:_0x34fc59}=_0x43e139;if(_0x34fc59&&'highlight'==_0x34fc59['commandName']){const _0x622c8f=_0x47461d['t'],_0x2e1b12=_0x34fc59['commandParams'][0x0]['value'];if(_0x2e1b12){const _0x4e1f0a=_0x46b26c['config']['get']('highlight.options')['find'](_0x27675a=>_0x27675a['model']==_0x2e1b12),_0x4a4086=_0x622c8f(_0x4e1f0a['title'])['toLowerCase']();return{'type':'format','content':o(_0x47461d,'*Set\x20highlight:*\x20%0',_0x4a4086),'color':{'value':_0x4e1f0a['color'],'title':_0x4e1f0a['title']}};}return{'type':'format','content':o(_0x47461d,'*Remove\x20highlight*',o(_0x47461d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x592a9e{['afterInit'](){const _0x486527=this['editor'];if(!_0x486527['plugins']['has']('HorizontalLineEditing'))return;_0x486527['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x41128f=_0x486527['plugins']['get']('TrackChangesEditing'),_0x36c960=_0x486527['locale'];_0x41128f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x214a66=>o(_0x36c960,'ELEMENT_HORIZONTAL_LINE',_0x214a66)),_0x486527['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x52c526,{writer:_0x22f4bb,options:_0x2a99b6})=>{if(!_0x2a99b6['showSuggestionHighlights'])return null;const _0x403b31=_0x22f4bb['createContainerElement']('div'),_0x335a35=_0x22f4bb['createEmptyElement']('hr');return _0x22f4bb['addClass']('ck-horizontal-line',_0x403b31),_0x22f4bb['insert'](_0x22f4bb['createPositionAt'](_0x403b31,0x0),_0x335a35),_0x403b31;},'converterPriority':'high'});}}class st extends _0x592a9e{['afterInit'](){const _0x51c056=this['editor'];if(!_0x51c056['plugins']['has']('HtmlEmbed'))return;const _0x4f7649=_0x51c056['plugins']['get']('TrackChangesEditing'),_0x37a947=_0x51c056['locale'];_0x4f7649['descriptionFactory']['registerElementLabel']('rawHtml',_0x132c29=>o(_0x37a947,'ELEMENT_HTML_EMBED',_0x132c29)),_0x4f7649['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4f7649['registerBlockAttribute']('value'),_0x4f7649['descriptionFactory']['registerDescriptionCallback'](_0x4b040f=>{if('attribute'!=_0x4b040f['type'])return;const {data:_0x205d39}=_0x4b040f;if(_0x205d39&&'value'==_0x205d39['key']&&_0x4b040f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x38c5b3=o(_0x37a947,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37a947,'*Change\x20%0\x20content*',_0x38c5b3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40d967=this['editor'],_0xc99711=_0x40d967['locale'];_0x40d967['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2602dc=>{if('formatBlock'!=_0x2602dc['type'])return;const {data:_0x21b95d}=_0x2602dc;if(_0x21b95d&&'htmlEmbed'==_0x21b95d['commandName']){const _0x2129d6=o(_0xc99711,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc99711,'*Change\x20%0\x20content*',_0x2129d6)};}});}}class nt extends _0x592a9e{['afterInit'](){const _0x51e59e=this['editor'];if(!_0x51e59e['plugins']['has']('ImageEditing'))return;const _0x190dd1=_0x51e59e['plugins']['get']('TrackChangesEditing'),_0x3d52e8=_0x51e59e['plugins']['get']('ImageUtils'),_0x3e956d=_0x51e59e['locale'];_0x190dd1['enableCommand']('insertImage'),_0x190dd1['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b8b36=>o(_0x3e956d,'ELEMENT_IMAGE',_0x4b8b36)),_0x190dd1['descriptionFactory']['registerElementLabel']('imageInline',_0x3b3606=>o(_0x3e956d,'ELEMENT_INLINE_IMAGE',_0x3b3606)),_0x190dd1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3e956d,'ELEMENT_CAPTION')),_0x51e59e['plugins']['has']('ImageUploadEditing')&&_0x190dd1['enableCommand']('uploadImage'),_0x51e59e['plugins']['has']('ImageBlockEditing')&&_0x51e59e['plugins']['has']('ImageInlineEditing')&&(_0x190dd1['enableCommand']('imageTypeInline',(_0x3cc5d1,_0x5095ff)=>{const _0x56641c=_0x3d52e8['getClosestSelectedImageElement'](_0x51e59e['model']['document']['selection']);_0x51e59e['model']['change'](()=>{_0x190dd1['markBlockFormat'](_0x56641c,{'commandName':'imageTypeInline','commandParams':[_0x5095ff]},[],'convertBlockImageToInline');});}),_0x190dd1['enableCommand']('imageTypeBlock',(_0x309e98,_0x3bd3a7)=>{_0x51e59e['model']['change'](_0x2328ff=>{let _0x273418=_0x3d52e8['getClosestSelectedImageElement'](_0x51e59e['model']['document']['selection']),_0x3f13af=_0x2328ff['createRangeOn'](_0x273418);const _0x438351=_0x5db45f['fromPosition'](_0x3f13af['start'],'toPrevious'),_0x43417a=_0x5db45f['fromPosition'](_0x3f13af['end'],'toNext');_0x190dd1['forceDefaultExecution'](()=>_0x309e98(_0x3bd3a7)),_0x273418=_0x3d52e8['getClosestSelectedImageElement'](_0x51e59e['model']['document']['selection']),_0x3f13af=_0x2328ff['createRangeOn'](_0x273418);const _0x514e51=_0x2328ff['createRange'](_0x438351,_0x43417a);_0x438351['detach'](),_0x43417a['detach'](),_0x190dd1['markBlockFormat'](_0x273418,{'commandName':'imageTypeInline','commandParams':[_0x3bd3a7]},[],'convertInlineImageToBlock'),_0x514e51['start']['isBefore'](_0x3f13af['start'])&&_0x190dd1['markInsertion'](_0x2328ff['createRange'](_0x514e51['start'],_0x3f13af['start']),'convertInlineImageToBlock'),_0x3f13af['end']['isBefore'](_0x514e51['end'])&&_0x190dd1['markInsertion'](_0x2328ff['createRange'](_0x3f13af['end'],_0x514e51['end']),'convertInlineImageToBlock');});}),_0x190dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x190dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x190dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x190dd1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x190dd1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x190dd1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x53f7ad])=>{const _0x11483d=_0x190dd1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xcfef33=_0x53f7ad['start'],_0x54ac80=_0x53f7ad['end'];const _0x131a6f=_0x51e59e['model']['schema']['getNearestSelectionRange'](_0xcfef33,'backward'),_0x3bf63c=_0x51e59e['model']['schema']['getNearestSelectionRange'](_0x54ac80,'forward');_0x131a6f['isCollapsed']&&(_0xcfef33=_0x131a6f['start']),_0x3bf63c['isCollapsed']&&(_0x54ac80=_0x3bf63c['end']),_0x11483d([_0x51e59e['model']['createRange'](_0xcfef33,_0x54ac80)]);}),_0x190dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1573fc),_0x190dd1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1573fc)),_0x51e59e['plugins']['has']('ImageCaptionEditing')&&(_0x190dd1['enableCommand']('toggleImageCaption',(_0x51dfb6,_0x287e6d)=>{const _0x1cae2b=_0x51e59e['plugins']['get']('ImageCaptionUtils');let _0xdaca23=_0x3d52e8['getClosestSelectedImageElement'](_0x51e59e['model']['document']['selection']),_0x29bf2f=_0x1cae2b['getCaptionFromImageModelElement'](_0xdaca23);_0x51e59e['model']['change'](()=>{if(_0x29bf2f)return void _0x190dd1['markDeletion'](_0x51e59e['model']['createRangeOn'](_0x29bf2f));const _0x516609=_0x3d52e8['isBlockImage'](_0xdaca23);_0x51dfb6(_0x287e6d),_0xdaca23=_0x3d52e8['getClosestSelectedImageElement'](_0x51e59e['model']['document']['selection']),_0x29bf2f=_0x1cae2b['getCaptionFromImageModelElement'](_0xdaca23),_0x190dd1['markInsertion'](_0x51e59e['model']['createRangeOn'](_0x29bf2f),_0x516609?null:'imageCaption');});}),_0x190dd1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1573fc));const _0x4b9b08=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d07a9(_0x65919a,_0x466c86){const _0x502510=_0x4b9b08['findIndex'](({type:_0x599bdf,subType:_0x381fa1})=>_0x65919a['type']==_0x599bdf&&_0x65919a['subType']==_0x381fa1),_0x24289a=_0x4b9b08['findIndex'](({type:_0x3e2d4b,subType:_0x20cc59})=>_0x466c86['type']==_0x3e2d4b&&_0x466c86['subType']==_0x20cc59);if(_0x502510<0x0||_0x24289a<0x0)return!0x1;const _0x52bc79=_0x65919a['getFirstRange'](),_0x332ff8=_0x466c86['getFirstRange']();if((0x0==_0x502510||0x1==_0x502510)&&0x2==_0x24289a&&_0x52bc79['isIntersecting'](_0x332ff8))return!0x0;if(0x2==_0x502510&&0x3==_0x24289a){const _0x256f60=_0x190dd1['_findSuggestions'](_0x52bc79,'insertion')['filter'](({suggestion:_0x263ae1,meta:_0x24a37b})=>_0x24a37b['isOwn']&&'convertInlineImageToBlock'==_0x263ae1['subType']);if(_0x256f60['length']>0x1&&_0x332ff8['end']['isEqual'](_0x52bc79['start']))return!0x0;if(0x1==_0x256f60['length']&&(_0x52bc79['start']['isEqual'](_0x332ff8['end'])||_0x52bc79['end']['isEqual'](_0x332ff8['start'])))return!0x0;}if(0x3==_0x502510&&0x3==_0x24289a&&_0x52bc79['start']['isBefore'](_0x332ff8['start'])){const _0x182197=_0x52bc79['end']['nodeAfter'],_0x3919ee=_0x332ff8['start']['nodeBefore'];return _0x3d52e8['isBlockImage'](_0x182197)&&_0x182197===_0x3919ee;}return!0x1;}function _0x1573fc(_0x2490d2,_0x2fe68c){return _0x1d07a9(_0x2490d2,_0x2fe68c)?[_0x2490d2,_0x2fe68c]:_0x1d07a9(_0x2fe68c,_0x2490d2)?[_0x2fe68c,_0x2490d2]:null;}_0x51e59e['plugins']['has']('ImageResize')&&(_0x190dd1['enableDefaultAttributesIntegration']('resizeImage'),_0x190dd1['registerBlockAttribute']('resizedWidth'),_0x190dd1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3e956d,'FORMAT_IMAGE_SIZE'))),_0x51e59e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x190dd1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x190dd1['registerBlockAttribute']('alt')),_0x190dd1['descriptionFactory']['registerDescriptionCallback'](_0x89118b=>{if(!!_0x4b9b08['find'](({type:_0x1d9e29,subType:_0xc2873})=>_0x89118b['type']==_0x1d9e29&&_0x89118b['subType']==_0xc2873))return _0x89118b['previous']?{}:void 0x0;}),_0x190dd1['descriptionFactory']['registerDescriptionCallback'](_0x2dc5d1=>{if('insertion'==_0x2dc5d1['type']||'deletion'==_0x2dc5d1['type']){const _0x1a119c=_0x2dc5d1['getContainedElement']();if(_0x1a119c&&_0x1a119c['is']('element','caption'))return{'type':'insertion'==_0x2dc5d1['type']?'addObject':'removeObject','element':_0x1a119c,'quantity':0x1};}}),_0x190dd1['descriptionFactory']['registerDescriptionCallback'](_0x11b559=>'formatBlock'==_0x11b559['type']&&'convertInlineImageToBlock'==_0x11b559['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11b559['type']&&'convertBlockImageToInline'==_0x11b559['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x190dd1['descriptionFactory']['registerDescriptionCallback'](_0x36ac6c=>{if('attribute'!=_0x36ac6c['type'])return;const {data:_0x400acb}=_0x36ac6c;if(!_0x400acb||'alt'!=_0x400acb['key'])return;const _0x313a95=_0x400acb['newValue'];return _0x313a95?{'type':'format','content':o(_0x3e956d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x313a95+'\x22')}:{'type':'format','content':o(_0x3e956d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x118e88=this['editor'],_0x57f894=_0x118e88['locale'];_0x118e88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x379d2a=>{if('formatBlock'!=_0x379d2a['type']&&'formatInline'!=_0x379d2a['type'])return;const {data:_0x392a8f}=_0x379d2a;if(_0x392a8f){if('imageTextAlternative'==_0x392a8f['commandName']){const _0x4c135b=_0x392a8f['commandParams'][0x0]['newValue'];return _0x4c135b?{'type':'format','content':o(_0x57f894,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c135b+'\x22')}:{'type':'format','content':o(_0x57f894,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x392a8f['commandName']){const _0x5bb072=_0x392a8f['commandParams'][0x0]['width'];return _0x5bb072?{'type':'format','content':o(_0x57f894,'*Set\x20image\x20width:*\x20%0',_0x5bb072)}:{'type':'format','content':o(_0x57f894,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x592a9e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x270540=this['editor']['locale'],_0x357f99=this['editor']['plugins']['get']('TrackChangesEditing');_0x357f99['enableDefaultAttributesIntegration']('replaceImageSource'),_0x357f99['registerBlockAttribute']('src'),_0x357f99['descriptionFactory']['registerDescriptionCallback'](_0x391f7f=>{if('attribute'!=_0x391f7f['type'])return;const {data:_0x4d638c}=_0x391f7f;return _0x4d638c&&'src'==_0x4d638c['key']?_0x4d638c['newValue']&&_0x4d638c['oldValue']?{'type':'format','content':o(_0x270540,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x532718=this['editor']['plugins']['get']('TrackChangesEditing');_0x532718['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x532718['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532718['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x532718['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33a0e9=this['editor'],_0x43c471=_0x33a0e9['locale'];_0x33a0e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10549d=>{if('formatBlock'!=_0x10549d['type']&&'formatInline'!=_0x10549d['type'])return;const {data:_0x471ac5}=_0x10549d;if(!_0x471ac5||'replaceImageSource'!=_0x471ac5['commandName'])return;return{'type':'format','content':o(_0x43c471,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x592a9e{['afterInit'](){const _0x10c6d2=this['editor'];if(!_0x10c6d2['plugins']['has']('ImageStyleEditing'))return;const _0x18d77e=_0x10c6d2['plugins']['get']('TrackChangesEditing'),_0x206dc3=_0x10c6d2['plugins']['get']('ImageUtils'),_0x5c3812={};_0x18d77e['enableCommand']('imageStyle',(_0x5c4a31,_0x2d178a)=>{const _0x5cc402=_0x10c6d2['plugins']['get']('Users')['me'],_0x44cf17=_0x10c6d2['commands']['get']('imageStyle');let _0x205acb=_0x206dc3['getClosestSelectedImageElement'](_0x10c6d2['model']['document']['selection']),_0x58d585=_0x10c6d2['model']['createRangeOn'](_0x205acb),_0x270247=_0x44cf17['value'];if(_0x270247==_0x2d178a['value'])return;const _0x2f1166={'commandName':'imageStyle','commandParams':[_0x2d178a],'formatGroupId':_0x4295c7()};_0x10c6d2['model']['change'](()=>{if(_0x18d77e['getSuggestions']()['filter'](_0x53817e=>_0x53817e['isInContent']&&_0x5cc402==_0x53817e['author']&&('formatBlock'==_0x53817e['type']||'formatInline'==_0x53817e['type'])&&('imageStylePreApply'==_0x53817e['subType']||'imageStylePostApply'==_0x53817e['subType'])&&_0x53817e['getFirstRange']()['isEqual'](_0x58d585))['forEach'](_0x38a3f0=>_0x18d77e['discardSuggestion'](_0x38a3f0['head'])),_0x205acb=_0x206dc3['getClosestSelectedImageElement'](_0x10c6d2['model']['document']['selection']),_0x58d585=_0x10c6d2['model']['createRangeOn'](_0x205acb),_0x44cf17['refresh'](),_0x10c6d2['commands']['get']('imageTypeInline')['refresh'](),_0x10c6d2['commands']['get']('imageTypeBlock')['refresh'](),_0x270247=_0x44cf17['value'],_0x270247!=_0x2d178a['value'])return _0x206dc3['isInlineImage'](_0x205acb)&&_0x44cf17['shouldConvertImageType'](_0x2d178a['value'],_0x205acb)?(_0x5c4a31({..._0x2d178a,'setImageSizes':!0x1}),_0x205acb=_0x206dc3['getClosestSelectedImageElement'](_0x10c6d2['model']['document']['selection']),void _0x18d77e['markBlockFormat'](_0x205acb,{..._0x2f1166,'commandReversedParams':[{'value':_0x270247||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x206dc3['isBlockImage'](_0x205acb)?_0x18d77e['markBlockFormat'](_0x205acb,_0x2f1166,[],'imageStylePostApply'):_0x18d77e['markInlineFormat'](_0x58d585,_0x2f1166,'imageStylePostApply'));});});for(const _0x413b32 of _0x10c6d2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c3812[_0x413b32['name']]=_0x413b32['title']['toLowerCase']();_0x18d77e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x18d77e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x18d77e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x18d77e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x310d53])=>{_0x206dc3['setImageNaturalSizeAttributes'](_0x310d53['getContainedElement']());}),_0x18d77e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x234204,_0x548fbb)=>{_0x18d77e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x234204,{'commandName':_0x548fbb['commandName'],'commandParams':_0x548fbb['commandReversedParams']});}),_0x18d77e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x32895c,_0x4a9442){if(_0x2f4975(_0x32895c,_0x4a9442))return[_0x32895c,_0x4a9442];if(_0x2f4975(_0x4a9442,_0x32895c))return[_0x4a9442,_0x32895c];return null;});const _0x413ee3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f4975(_0x4692b9,_0x1de89d){const _0x31b0c2=_0x413ee3['findIndex'](({type:_0xa15817,subType:_0x8779})=>_0x4692b9['type']==_0xa15817&&_0x4692b9['subType']==_0x8779),_0xfa215e=_0x413ee3['findIndex'](({type:_0x43b64f,subType:_0x14c610})=>_0x1de89d['type']==_0x43b64f&&_0x1de89d['subType']==_0x14c610);if(_0x31b0c2<0x0||_0xfa215e<0x0)return!0x1;const _0x146fe2=_0x4692b9['getFirstRange'](),_0x348b27=_0x1de89d['getFirstRange']();if((0x0==_0x31b0c2||0x1==_0x31b0c2)&&0x2==_0xfa215e&&_0x146fe2['isIntersecting'](_0x348b27))return!0x0;if(0x2==_0x31b0c2&&0x3==_0xfa215e){const _0x51b764=_0x18d77e['_findSuggestions'](_0x146fe2,'insertion')['filter'](({suggestion:_0x1221ef,meta:_0x374eda})=>_0x374eda['isOwn']&&'convertInlineImageToBlock'==_0x1221ef['subType']);if(_0x51b764['length']>0x1&&_0x348b27['end']['isEqual'](_0x146fe2['start']))return!0x0;if(0x1==_0x51b764['length']&&(_0x146fe2['start']['isEqual'](_0x348b27['end'])||_0x146fe2['end']['isEqual'](_0x348b27['start'])))return!0x0;}if(0x3==_0x31b0c2&&0x3==_0xfa215e&&_0x146fe2['start']['isBefore'](_0x348b27['start'])){const _0x4562e6=_0x146fe2['end']['nodeAfter'],_0x3137bd=_0x348b27['start']['nodeBefore'];return _0x206dc3['isBlockImage'](_0x4562e6)&&_0x4562e6===_0x3137bd;}return!0x1;}_0x10c6d2['model']['document']['registerPostFixer'](()=>{let _0xfce5b8=!0x1;const _0xc5f54c=Array['from'](_0x10c6d2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f36b0,data:_0x285178}of _0xc5f54c){const {group:_0x5548d0,type:_0xd8557e,subType:_0x247ef4,id:_0xb25b99}=_0x18d77e['_splitMarkerName'](_0x5f36b0);if('suggestion'==_0x5548d0&&_0x18d77e['hasSuggestion'](_0xb25b99)){if('formatBlock'==_0xd8557e&&('imageStylePreApply'==_0x247ef4||'imageStylePostApply'==_0x247ef4)){const _0x5d3c6e=_0x18d77e['getSuggestion'](_0xb25b99);if(_0x285178['newRange']){const _0x432eeb=_0x5d3c6e['getFirstRange']()['getContainedElement']();if(_0x206dc3['isBlockImage'](_0x432eeb))continue;_0x18d77e['discardSuggestion'](_0x5d3c6e),_0xfce5b8=!0x0;}}if('insertion'==_0xd8557e&&'imageCaption'==_0x247ef4&&!_0x285178['newRange']){const _0x3a4f36=_0x18d77e['getSuggestion'](_0xb25b99);_0x3a4f36['next']&&_0x3a4f36['next']['isInContent']&&(_0x18d77e['discardSuggestion'](_0x3a4f36['next']),_0xfce5b8=!0x0);}}}return _0xfce5b8;}),this['_registerLegacyDescription'](_0x5c3812);}['_registerLegacyDescription'](_0x58b133){const _0x5d1f94=this['editor'],_0x5422e1=_0x5d1f94['locale'];_0x5d1f94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195669=>{if('formatBlock'!=_0x195669['type']&&'formatInline'!=_0x195669['type'])return;const {data:_0x125257}=_0x195669;if(!_0x125257||'imageStyle'!=_0x125257['commandName'])return;const _0x1b40b9=_0x125257['commandParams'][0x0]['value'];return _0xddba53('side'===_0x1b40b9?o(_0x5422e1,'FORMAT_SIDE_IMAGE'):_0x58b133[_0x1b40b9]||_0x1b40b9);function _0xddba53(_0x2e2ce8){return{'type':'format','content':o(_0x5422e1,'*Format:*\x20%0',_0x2e2ce8)};}});}}class at extends _0x592a9e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x369603){super(_0x369603),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2641a4=this['editor'],_0x103426=_0x2641a4['commands']['get']('importWord'),_0x4c0c4c=_0x2641a4['commands']['get']('trackChanges');_0x103426&&(_0x103426['on']('execute',(_0x42ea62,[,_0x5e05e2])=>{this['_trackChangesValueDuringImport']=_0x4c0c4c['value'],_0x5e05e2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x103426,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x103426,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c0c4c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2641a4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x12ad47,_0x9c1f69){const {suggestions:_0x5e746a}=_0x9c1f69,_0x4b0826=this['editor']['commands']['get']('trackChanges'),_0x6ef35d=_0x4b0826['value'];this['_trackChangesValueDuringImport']!==_0x6ef35d&&(_0x4b0826['execute'](),this['_trackChangesExecuted']=!0x0),_0x5e746a&&_0x5e746a['forEach'](({id:_0x32fa72,type:_0x1df540,author:_0x64193c,created_at:_0x481580})=>{const _0x28dc17={'id':_0x32fa72,'type':_0x1df540,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x64193c,'createdAt':_0x481580?new Date(_0x481580):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x28dc17);});}}class ct extends _0x592a9e{['afterInit'](){const _0x2196bc=this['editor'],_0x3fae2e=_0x2196bc['plugins']['get']('TrackChangesEditing');if(_0x2196bc['plugins']['has']('IndentEditing')&&(_0x3fae2e['enableCommand']('indent'),_0x3fae2e['enableCommand']('outdent')),_0x2196bc['plugins']['has']('IndentBlock')){for(const _0x422fe8 of['indentBlock','outdentBlock'])_0x3fae2e['enableDefaultAttributesIntegration'](_0x422fe8);}const _0x212b4a=_0x2196bc['locale'];_0x3fae2e['registerBlockAttribute']('blockIndent'),_0x3fae2e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x212b4a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403529=this['editor'],_0x472d4b=_0x403529['locale'],_0x24219a=_0x403529['plugins']['get']('TrackChangesEditing');_0x24219a['descriptionFactory']['registerDescriptionCallback'](_0x4e8d2d=>{if('formatBlock'!=_0x4e8d2d['type'])return;const {data:_0x3f3e46}=_0x4e8d2d;if(!_0x3f3e46)return;if('indentBlock'!=_0x3f3e46['commandName']&&'outdentBlock'!=_0x3f3e46['commandName'])return;const _0x2c7be6=_0x4e8d2d['getItems']()[0x0],_0x3b4c3b=_0x24219a['descriptionFactory']['getItemLabel'](_0x2c7be6);return'indentBlock'==_0x3f3e46['commandName']?{'type':'format','content':o(_0x472d4b,'*Indent:*\x20%0',_0x3b4c3b)}:'outdentBlock'==_0x3f3e46['commandName']?{'type':'format','content':o(_0x472d4b,'*Outdent:*\x20%0',_0x3b4c3b)}:void 0x0;});}}class ut extends _0x592a9e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x592a9e{['afterInit'](){const _0x289f66=this['editor'];if(!_0x289f66['plugins']['has']('LinkEditing'))return;const _0x385aac=_0x289f66['plugins']['get']('TrackChangesEditing'),_0x344eec=_0x289f66['commands']['get']('link');_0x385aac['enableDefaultAttributesIntegration']('link'),_0x385aac['enableDefaultAttributesIntegration']('unlink'),_0x385aac['registerInlineAttribute']('linkHref');for(const _0x7973cc of _0x344eec['manualDecorators'])_0x385aac['registerInlineAttribute'](_0x7973cc['id']),_0x385aac['descriptionFactory']['registerAttributeLabel'](_0x7973cc['id'],'link\x20('+_0x7973cc['label']['toLowerCase']()+')');_0x385aac['descriptionFactory']['registerDescriptionCallback'](_0x1c9150=>{if('attribute'!=_0x1c9150['type'])return;const {data:_0x4bf3cf}=_0x1c9150;if(!_0x4bf3cf||'linkHref'!=_0x4bf3cf['key'])return;const _0x3aff6a=_0x4bf3cf['newValue'],_0x4a08dc=_0x289f66['locale'];return{'type':'format','content':null==_0x3aff6a?o(_0x4a08dc,'*Remove\x20link*'):o(_0x4a08dc,'*Set\x20link:*\x20%0','\x22'+_0x3aff6a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47a3ae=this['editor'],_0x1fabd3=_0x47a3ae['locale'];_0x47a3ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e31e=>{if('formatInline'!=_0x18e31e['type'])return;const {data:_0x30f21e}=_0x18e31e;if(_0x30f21e){if('link'==_0x30f21e['commandName']){const _0x1361ef=_0x30f21e['commandParams'][0x0];return{'type':'format','content':o(_0x1fabd3,'*Set\x20link:*\x20%0','\x22'+_0x1361ef+'\x22')};}return'unlink'==_0x30f21e['commandName']?{'type':'format','content':o(_0x1fabd3,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x592a9e{['afterInit'](){const _0x36e6ec=this['editor'],_0x1ea345=_0x36e6ec['locale'];if(!_0x36e6ec['plugins']['has']('LegacyListEditing'))return;const _0x1f04fb=_0x36e6ec['plugins']['get']('TrackChangesEditing'),_0x5a8d33=_0x36e6ec['plugins']['has']('LegacyTodoListEditing');function _0x86163b(_0x1d0f4e){return()=>{const _0xfea813=_0x36e6ec['model']['document']['selection'],_0x2e146b=_0x36e6ec['commands']['get'](_0x1d0f4e);if(_0x2e146b['value'])return void _0x36e6ec['execute']('paragraph',{});const _0x1bc742=_0x1d0f4e['slice'](0x0,-0x4),_0x53004f=function(_0x322544,_0x525b1e,_0xdb3795){let _0x22679f=Array['from'](_0x322544)['filter'](_0x54b5fc=>function(_0x4d88c4,_0x15bb86){return _0x15bb86['checkChild'](_0x4d88c4['parent'],'listItem')&&!_0x15bb86['isObject'](_0x4d88c4);}(_0x54b5fc,_0xdb3795));_0x22679f=_0x22679f['filter'](_0x52e368=>!_0x52e368['is']('element','listItem')||_0x52e368['getAttribute']('listType')!=_0x525b1e);const _0x5922ae=new Set();for(const _0x4ea60c of _0x22679f)_0x4ea60c['is']('element','listItem')?_0x5922ae['add'](fe(_0x4ea60c)):_0x5922ae['add'](_0x4ea60c);return Array['from'](_0x5922ae);}(_0xfea813['getSelectedBlocks'](),_0x1bc742,_0x36e6ec['model']['schema']);_0x36e6ec['model']['change'](()=>{for(const _0x165061 of _0x53004f)_0x1f04fb['markBlockFormat'](_0x165061,{'commandName':_0x1d0f4e,'commandParams':[{'forceValue':!_0x2e146b['value']}],'formatGroupId':'blockName'},ue(_0x165061));});};}function _0x562dc7(_0x3483a1){return()=>{const _0x574421=function(_0x3b774a){let _0x30c89f=Array['from'](_0x3b774a);const _0x41b58f=_0x30c89f['findIndex'](_0x3b42d4=>'listItem'!=_0x3b42d4['name']);return _0x41b58f>-0x1&&(_0x30c89f=_0x30c89f['slice'](0x0,_0x41b58f)),_0x30c89f;}(_0x36e6ec['model']['document']['selection']['getSelectedBlocks']()),_0x262ebd=_0x36e6ec['model']['createRange'](_0x36e6ec['model']['createPositionAt'](_0x574421[0x0],'before'),_0x36e6ec['model']['createPositionAt'](_0x574421[_0x574421['length']-0x1],'end'));_0x36e6ec['model']['change'](()=>{_0x1f04fb['markBlockFormat'](_0x262ebd,{'commandName':_0x3483a1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4af796){const _0x1b1ed9=new Set();for(const _0x1b77bf of _0x4af796){let _0x2d17f5=_0x1b77bf['nextSibling'];for(;_0x2d17f5&&_0x2d17f5['getAttribute']('listIndent')>_0x1b77bf['getAttribute']('listIndent');)_0x1b1ed9['add'](_0x2d17f5),_0x2d17f5=_0x2d17f5['nextSibling'];}return Array['from'](_0x1b1ed9);}(_0x574421));});};}_0x1f04fb['enableCommand']('numberedList',_0x86163b('numberedList')),_0x1f04fb['enableCommand']('bulletedList',_0x86163b('bulletedList')),_0x5a8d33&&_0x1f04fb['enableCommand']('todoList',_0x86163b('todoList')),_0x1f04fb['enableCommand']('indentList',_0x562dc7('indentList')),_0x1f04fb['enableCommand']('outdentList',_0x562dc7('outdentList')),_0x5a8d33&&_0x1f04fb['enableCommand']('checkTodoList',()=>{const _0x533cf0=_0x36e6ec['commands']['get']('checkTodoList'),_0x49a490=Array['from'](_0x533cf0['_selectedElements']);_0x49a490['filter'](_0x27b56f=>_0x27b56f['getAttribute']('todoListChecked')!=_0x533cf0['value']),_0x36e6ec['model']['change'](()=>{for(const _0x2ba4ad of _0x49a490)_0x1f04fb['markBlockFormat'](_0x2ba4ad,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x533cf0['value']}]});});}),_0x1f04fb['descriptionFactory']['registerElementLabel']('listItem',_0xe1d264=>o(_0x1ea345,'ELEMENT_LIST_ITEM',_0xe1d264)),_0x1f04fb['descriptionFactory']['registerDescriptionCallback'](_0x2ebbd3=>{if('formatBlock'!=_0x2ebbd3['type']&&'formatInline'!=_0x2ebbd3['type'])return;const {data:_0x3aa5bd}=_0x2ebbd3;if(_0x3aa5bd){if('numberedList'==_0x3aa5bd['commandName']||'bulletedList'==_0x3aa5bd['commandName']||'todoList'==_0x3aa5bd['commandName'])switch(_0x3aa5bd['commandName']['replace']('List','')){case'bulleted':return _0x33e6cf(o(_0x1ea345,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33e6cf(o(_0x1ea345,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33e6cf(o(_0x1ea345,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3aa5bd['commandName'])return{'type':'format','content':o(_0x1ea345,'*Indent:*\x20%0',o(_0x1ea345,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3aa5bd['commandName'])return{'type':'format','content':o(_0x1ea345,'*Outdent:*\x20%0',o(_0x1ea345,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3aa5bd['commandName'])return _0x3aa5bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ea345,'*Check\x20item*')}:{'type':'format','content':o(_0x1ea345,'*Uncheck\x20item*')};}function _0x33e6cf(_0x4b8398){return{'type':'format','content':o(_0x1ea345,'*Change\x20to:*\x20%0',_0x4b8398)};}});}}function fe(_0x53acb4){const _0x430467=_0x53acb4['getAttribute']('listIndent');if(0x0==_0x430467)return _0x53acb4;let _0x27b771=_0x53acb4;for(;_0x53acb4['previousSibling']&&_0x53acb4['previousSibling']['is']('element','listItem');){const _0x2b9fa9=_0x53acb4['previousSibling']['getAttribute']('listIndent');if(_0x2b9fa9==_0x430467)_0x27b771=_0x53acb4['previousSibling'];else{if(_0x2b9fa9<_0x430467)break;}_0x53acb4=_0x53acb4['previousSibling'];}return _0x27b771;}function ue(_0x4587f6){const _0x503a94=[];if(_0x4587f6['is']('element','listItem')&&_0x4587f6['getAttribute']('listIndent')>0x0){let _0x434b6f=_0x4587f6['nextSibling'];for(;_0x434b6f&&'listItem'==_0x434b6f['name']&&_0x434b6f['getAttribute']('listIndent')==_0x4587f6['getAttribute']('listIndent');)_0x503a94['push'](_0x434b6f),_0x434b6f=_0x434b6f['nextSibling'];}return _0x503a94;}class W extends _0x592a9e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d231c=this['editor']['config']['get']('list.properties'),_0x2e6b36=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d231c['styles']&&_0x2e6b36['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d231c['reversed']&&_0x2e6b36['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d231c['startIndex']&&_0x2e6b36['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2e6b36['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d30b8,_0x4ed796={}){const _0x2f6549=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31c50e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2f6549['markMultiRangeBlockFormat'](_0x31c50e,{'commandName':'listStyle','commandParams':[{'type':_0x4ed796['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x6dc789,_0x26e48b={}){const _0x191eb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x362678=this['_getSuggestionBlocks'](_0x4dbcd7=>_0x4dbcd7['is']('element','listItem')&&'numbered'===_0x4dbcd7['getAttribute']('listType'));if(_0x362678['length']<0x1)return;const _0x5c0bda=_0x362678['map'](_0x3c8b61=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c8b61,'before'),this['editor']['model']['createPositionAt'](_0x3c8b61,0x0)));this['editor']['model']['change'](()=>{_0x191eb8['markMultiRangeBlockFormat'](_0x5c0bda,{'commandName':'listReversed','commandParams':[{'reversed':_0x26e48b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2db275,_0x12e872={}){const _0x4b8ce8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c9b71=this['_getSuggestionBlocks'](_0x4e7255=>_0x4e7255['is']('element','listItem')&&'numbered'===_0x4e7255['getAttribute']('listType'));if(_0x3c9b71['length']<0x1)return;const _0x28e719=_0x3c9b71['map'](_0x5e8c60=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e8c60,'before'),this['editor']['model']['createPositionAt'](_0x5e8c60,0x0)));this['editor']['model']['change'](()=>{_0x4b8ce8['markMultiRangeBlockFormat'](_0x28e719,{'commandName':'listStart','commandParams':[{'startIndex':_0x12e872['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5683f0){if('formatBlock'!=_0x5683f0['type']&&'formatInline'!=_0x5683f0['type'])return;const _0x345a05=this['editor']['locale'],{data:_0x1a6f7e}=_0x5683f0;if(!_0x1a6f7e)return;let _0x267ee8,_0x1ff36f;switch(_0x1a6f7e['commandName']){case'listStyle':_0x267ee8='*Change\x20to:*\x20%0',_0x1ff36f={'type':'format','content':o(_0x345a05,_0x267ee8,o(_0x345a05,this['_getTranslationKeyForListStyle'](_0x1a6f7e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x267ee8=_0x1a6f7e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ff36f={'type':'format','content':o(_0x345a05,_0x267ee8)};break;case'listStart':_0x267ee8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ff36f={'type':'format','content':o(_0x345a05,_0x267ee8,_0x1a6f7e['commandParams'][0x0]['startIndex'])};}return _0x1ff36f;}['_getSuggestionBlocksForListStyle'](){const _0x57286e=this['editor']['plugins']['get']('LegacyListUtils');let _0x575416=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x575416[0x0]?.['is']('element','listItem')&&_0x575416['unshift'](..._0x57286e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x575416[_0x575416['length']-0x1]?.['is']('element','listItem')&&_0x575416['push'](..._0x57286e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x575416=[...new Set(_0x575416)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x575416=_0x575416['filter'](_0x1ae640=>_0x1ae640['is']('element','listItem'))),_0x575416;}['_getSuggestionBlocks'](_0x42edfe){const _0x4591b5=this['editor']['plugins']['get']('LegacyListUtils');let _0x58cca7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x42edfe)['map'](_0x3d2cff=>{const _0x3854d9=this['editor']['model']['createPositionAt'](_0x3d2cff,0x0);return[..._0x4591b5['getSiblingNodes'](_0x3854d9,'backward'),..._0x4591b5['getSiblingNodes'](_0x3854d9,'forward')];})['flat']();return _0x58cca7=[...new Set(_0x58cca7)],_0x58cca7;}['_getTranslationKeyForListStyle'](_0x1e1420){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1e1420)||'default')['toUpperCase']()+'_LIST_'+_0x1e1420['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x592a9e{['afterInit'](){const _0x4de581=this['editor'];if(!_0x4de581['plugins']['has']('MediaEmbedEditing'))return;const _0x23744f=_0x4de581['plugins']['get']('TrackChangesEditing'),_0x27c8e7=_0x4de581['locale'];_0x23744f['enableCommand']('mediaEmbed'),_0x23744f['descriptionFactory']['registerElementLabel']('media',_0x435000=>o(_0x27c8e7,'ELEMENT_MEDIA',_0x435000)),_0x4de581['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1c9772,{writer:_0x16086a,options:_0x149eb3})=>{if(_0x149eb3['showSuggestionHighlights'])return _0x16086a['createEmptyElement']('div');},'converterPriority':'high'}),_0x4de581['data']['downcastDispatcher']['on']('attribute:url:media',(_0x70d2b8,_0x526771,_0x28fc75)=>{_0x28fc75['options']['showSuggestionHighlights']&&_0x70d2b8['stop']();},{'priority':'high'});}}class mt extends _0x592a9e{['afterInit'](){const _0x45240f=this['editor'];_0x45240f['plugins']['has']('MentionEditing')&&_0x45240f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x592a9e{['afterInit'](){const _0x4777b7=this['editor'];if(!_0x4777b7['commands']['get']('insertMergeField'))return;_0x4777b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x1a3ea8=_0x4777b7['plugins']['get']('TrackChangesEditing'),_0x5639ad=_0x4777b7['locale'];_0x1a3ea8['descriptionFactory']['registerElementLabel']('mergeField',_0x508110=>o(_0x5639ad,'ELEMENT_MERGE_FIELD',_0x508110)),_0x1a3ea8['descriptionFactory']['registerDescriptionCallback'](_0x4ca36d=>{if('insertion'!=_0x4ca36d['type']&&'deletion'!=_0x4ca36d['type'])return;const _0x974fe4=_0x4ca36d['getContainedElement']();if(null==_0x974fe4)return;if(!_0x974fe4['is']('element','mergeField'))return;const _0x530652=_0x4777b7['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x974fe4['getAttribute']('id'));return'insertion'==_0x4ca36d['type']?{'type':'insertion','content':o(_0x5639ad,'*Insert:*\x20%0','\x22'+_0x530652+'\x22\x20'+o(_0x5639ad,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5639ad,'*Remove:*\x20%0','\x22'+_0x530652+'\x22\x20'+o(_0x5639ad,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x592a9e{['afterInit'](){const _0x3b2b53=this['editor'],_0x233e12=_0x3b2b53['plugins']['get']('TrackChangesEditing');_0x3b2b53['plugins']['has']('MultiLevelList')&&(_0x233e12['enableDefaultAttributesIntegration']('multiLevelList'),_0x233e12['registerBlockAttribute']('listMarkerStyle'),_0x233e12['descriptionFactory']['registerDescriptionCallback'](_0x46a02f=>this['handleDescriptions'](_0x46a02f)));}['handleDescriptions'](_0x25679d){const _0x207b2e=this['editor']['locale'],{data:_0x114a73}=_0x25679d,_0x1f8277={'type':'format','content':''};if(_0x114a73&&'listMarkerStyle'==_0x114a73['key']){if(!_0x114a73['oldValue'])return{'type':'format','content':o(_0x207b2e,'*Set\x20format:*\x20%0',o(_0x207b2e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x114a73['newValue']+')'};if(!_0x114a73['newValue']){let _0x2748a3=_0x25679d['head'];for(;_0x2748a3;){if(_0x2748a3['data']&&'listType'==_0x2748a3['data']['key']&&_0x2748a3['data']['newValue'])return _0x1f8277;_0x2748a3=_0x2748a3['next'];}return{'type':'format','content':o(_0x207b2e,'*Remove\x20format:*\x20%0',o(_0x207b2e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x114a73['oldValue']+')'};}}}}class kt extends _0x592a9e{['afterInit'](){const _0x940259=this['editor'];if(!_0x940259['plugins']['has']('PageBreakEditing'))return;_0x940259['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x444805=_0x940259['plugins']['get']('TrackChangesEditing'),_0x1e26e7=_0x940259['locale'];_0x444805['descriptionFactory']['registerElementLabel']('pageBreak',_0x11a31d=>o(_0x1e26e7,'ELEMENT_PAGE_BREAK',_0x11a31d));}}class bt extends _0x592a9e{['afterInit'](){const _0x18c08a=this['editor'];if(!_0x18c08a['plugins']['has']('Paragraph'))return;const _0x18bb11=_0x18c08a['locale'],_0x55b06a=_0x18c08a['plugins']['get']('TrackChangesEditing');_0x55b06a['descriptionFactory']['registerElementLabel']('paragraph',_0x4e58ca=>o(_0x18bb11,'ELEMENT_PARAGRAPH',_0x4e58ca)),_0x55b06a['enableDefaultAttributesIntegration']('paragraph'),_0x55b06a['enableCommand']('insertParagraph'),_0x18c08a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x18c08a),{'priority':'highest'}),_0x18c08a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12ab25,_0x4a5921,_0x34cf16)=>{_0x34cf16['options']['showSuggestionHighlights']&&nr(_0x18c08a,{'showActiveMarker':!0x1})(_0x12ab25,_0x4a5921,_0x34cf16);},{'priority':'highest'});const _0x4b9193=_0x55b06a['descriptionFactory'];_0x4b9193['registerDescriptionCallback'](_0x1c1799=>{if('insertion'!==_0x1c1799['type'])return;const {start:_0x178d2a,end:_0x42d41a}=_0x1c1799['getFirstRange']();if(!_0x178d2a['isTouching'](_0x42d41a)||!_0x178d2a['nodeAfter'])return;const _0x4f1007=_0x18c08a['model']['schema'],_0x3a3258=_0x178d2a['nodeAfter'];return _0x4f1007['isBlock'](_0x3a3258)&&!_0x4f1007['isLimit'](_0x3a3258)&&_0x4f1007['checkChild'](_0x3a3258,'$text')?{'type':'insertion','content':o(_0x18bb11,'*Insert:*\x20%0',_0x4b9193['getItemLabel'](_0x3a3258,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x483c6e=this['editor'],_0x319006=_0x483c6e['locale'];_0x483c6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b8afd=>{if('formatBlock'!=_0x2b8afd['type'])return;const {data:_0x56f182}=_0x2b8afd;return _0x56f182&&'paragraph'==_0x56f182['commandName']?{'type':'format','content':o(_0x319006,'*Change\x20to:*\x20%0',o(_0x319006,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x469939,{showActiveMarker:_0xe775fe=!0x0}={}){return(_0x46d9c7,_0x4746db,_0x3d364b)=>{const _0x5ac03a=_0x469939['plugins']['get']('TrackChangesEditing'),_0x3a7d9a=_0x4746db['markerRange']['start'],_0x162b90=_0x4746db['markerRange']['end'],_0x105171=_0x469939['model']['schema'];if(!_0x3a7d9a['isTouching'](_0x162b90)||!_0x3a7d9a['nodeAfter'])return;const _0x4f280b=_0x3a7d9a['nodeAfter'];if(_0x105171['isBlock'](_0x4f280b)&&!_0x105171['isLimit'](_0x4f280b)&&_0x105171['checkChild'](_0x4f280b,'$text')){if(!_0x3d364b['consumable']['consume'](_0x4746db['markerRange'],_0x46d9c7['name']))return;const _0x5c2b65=_0x3d364b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4fe813=_0x3d364b['mapper']['toViewPosition'](_0x162b90);_0xe775fe&&_0x5ac03a['activeMarkers']['includes'](_0x4746db['markerName'])&&_0x3d364b['writer']['addClass']('ck-suggestion-marker--active',_0x5c2b65),_0x3d364b['writer']['insert'](_0x4fe813,_0x5c2b65),_0x3d364b['mapper']['bindElementToMarker'](_0x5c2b65,_0x4746db['markerName']);}};}class wt extends _0x592a9e{['afterInit'](){const _0x2e4057=this['editor'];if(!_0x2e4057['plugins']['has']('RemoveFormatEditing'))return;_0x2e4057['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41ea01=this['editor'];_0x41ea01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d108=>{if('formatBlock'!=_0x40d108['type']&&'formatInline'!=_0x40d108['type'])return;const {data:_0x30dcab}=_0x40d108;return _0x30dcab&&'removeFormat'==_0x30dcab['commandName']?{'type':'format','content':o(_0x41ea01['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x592a9e{['afterInit'](){const _0xfea93c=this['editor'];if(!_0xfea93c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5a0cbb=_0xfea93c['plugins']['get']('TrackChangesEditing');_0x5a0cbb['enableCommand']('goToPreviousRestrictedEditingException'),_0x5a0cbb['enableCommand']('goToNextRestrictedEditingException');const _0xdceae6=_0xfea93c['plugins']['get']('RestrictedEditingModeEditing');_0xdceae6['enableCommand']('trackChanges'),_0xdceae6['enableCommand']('acceptSuggestion'),_0xdceae6['enableCommand']('discardSuggestion'),_0xdceae6['enableCommand']('acceptAllSuggestions'),_0xdceae6['enableCommand']('discardAllSuggestions'),_0xdceae6['enableCommand']('acceptSelectedSuggestions'),_0xdceae6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x592a9e{static get['requires'](){return[_0x229f13];}['init'](){const _0x3389cb=this['editor'],_0x692d26=_0x3389cb['plugins']['get']('TrackChangesEditing');_0x692d26['enableCommand']('shiftEnter'),_0x3389cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3389cb),{'priority':'high'}),_0x3389cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3389cb),{'priority':'high'}),_0x3389cb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40166f,_0x37025d,_0x558198)=>{_0x558198['options']['showSuggestionHighlights']&&ge(_0x3389cb,{'showActiveMarker':!0x1})(_0x40166f,_0x37025d,_0x558198);}),_0x692d26['descriptionFactory']['registerElementLabel']('softBreak',_0x1e7348=>o(_0x3389cb['locale'],'ELEMENT_LINE_BREAK',_0x1e7348));}}function ge(_0x456acd,{showActiveMarker:_0x1778c0=!0x0}={}){return(_0x572619,_0x5ab009,_0x9c7d0c)=>{const _0x5380a9=_0x456acd['plugins']['get']('TrackChangesEditing');if(!_0x9c7d0c['consumable']['test'](_0x5ab009['markerRange'],_0x572619['name']))return;const _0x1a49b8=_0x456acd['model'];for(const _0x1b5b55 of _0x5ab009['markerRange']['getItems']()){if(!_0x1b5b55['is']('element','softBreak'))continue;const _0x30e142='deletion'==_0x5ab009['markerName']['split'](':')[0x1]?'merge':'split',_0x40c2ce=_0x9c7d0c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30e142}),_0x2e4756=_0x9c7d0c['mapper']['toViewPosition'](_0x1a49b8['createPositionBefore'](_0x1b5b55));_0x1778c0&&_0x5380a9['activeMarkers']['includes'](_0x5ab009['markerName'])&&_0x9c7d0c['writer']['addClass']('ck-suggestion-marker--active',_0x40c2ce),_0x9c7d0c['writer']['insert'](_0x2e4756,_0x40c2ce),_0x9c7d0c['mapper']['bindElementToMarker'](_0x40c2ce,_0x5ab009['markerName']);}};}class St extends _0x592a9e{['afterInit'](){const _0x155274=this['editor'],_0x315df6=_0x155274['model'],_0x2e8b7a=_0x155274['locale'];if(!_0x155274['plugins']['has']('StandardEditingModeEditing'))return;const _0x1b6d8b=_0x155274['plugins']['get']('TrackChangesEditing'),_0x1b17f2='restrictedEditingException',_0x149f1f=_0x155274['commands']['get'](_0x1b17f2);_0x1b6d8b['enableCommand'](_0x1b17f2,(_0x3bba34,_0x5de3f9={})=>{const _0x589cd6=_0x315df6['document']['selection'];if(_0x589cd6['isCollapsed'])return void _0x3bba34(_0x5de3f9);const _0x42f0a5=void 0x0!==_0x5de3f9['forceValue']?_0x5de3f9['forceValue']:!_0x149f1f['value'];_0x315df6['change'](()=>{const _0x185015=Array['from'](_0x589cd6['getRanges']());for(const _0x16fde9 of _0x185015){const _0x372bf4=_0x42f0a5?[_0x16fde9]:io(_0x1b17f2,_0x16fde9,_0x315df6);for(const _0x432ac1 of _0x372bf4)_0x1b6d8b['markInlineFormat'](_0x432ac1,{'commandName':_0x1b17f2,'commandParams':[{'forceValue':_0x42f0a5}]});}});}),_0x1b6d8b['descriptionFactory']['registerDescriptionCallback'](_0x2802f4=>{if('formatBlock'!=_0x2802f4['type']&&'formatInline'!=_0x2802f4['type'])return;const {data:_0x9fcfa7}=_0x2802f4;return _0x9fcfa7&&_0x9fcfa7['commandName']==_0x1b17f2?_0x9fcfa7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e8b7a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2e8b7a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x592a9e{['afterInit'](){const _0x307c58=this['editor'];if(!_0x307c58['plugins']['has']('Style')||!_0x307c58['plugins']['has']('DataSchema'))return;const _0x1063c0=_0x307c58['plugins']['get']('TrackChangesEditing'),_0x13f9fb=_0x307c58['locale'],_0x4ed3c7=_0x307c58['config']['get']('style')||{},_0x756a83=_0x307c58['plugins']['get']('GeneralHtmlSupport'),_0x4e4744=_0x307c58['plugins']['get']('StyleUtils')['normalizeConfig'](_0x307c58['plugins']['get']('DataSchema'),_0x4ed3c7['definitions']);_0x1063c0['enableDefaultAttributesIntegration']('style');const _0x132af1=new Set();for(const _0x390f69 of _0x4e4744['block']){const _0x58ecee=_0x756a83['getGhsAttributeNameForElement'](_0x390f69['element']);_0x132af1['add'](_0x58ecee);}const _0x5f1dd5=new Set();for(const _0x2e46ea of _0x4e4744['inline']){const _0xcfec8e=_0x756a83['getGhsAttributeNameForElement'](_0x2e46ea['element']);_0x5f1dd5['add'](_0xcfec8e);for(const _0x2d2832 of _0x2e46ea['ghsAttributes'])_0x5f1dd5['add'](_0x2d2832);}for(const _0xd1a9c9 of _0x132af1)_0x1063c0['registerBlockAttribute'](_0xd1a9c9),_0x1063c0['descriptionFactory']['registerAttributeLabel'](_0xd1a9c9,o(_0x13f9fb,'FORMAT_STYLE'));for(const _0x3506d4 of _0x5f1dd5)_0x1063c0['registerInlineAttribute'](_0x3506d4),_0x1063c0['descriptionFactory']['registerAttributeLabel'](_0x3506d4,o(_0x13f9fb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dc51e=this['editor'],_0x5201da=_0x3dc51e['locale'];_0x3dc51e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353b08=>{if('formatBlock'!=_0x353b08['type']&&'formatInline'!=_0x353b08['type'])return;const {data:_0x32d425}=_0x353b08;return _0x32d425&&'style'===_0x32d425['commandName']?_0x32d425['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5201da,'*Set\x20format:*\x20%0',_0x32d425['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5201da,'*Remove\x20format:*\x20%0',_0x32d425['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x592a9e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x31bff6){super(_0x31bff6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x322c09=this['editor'],_0xa80b12=_0x322c09['model']['document']['selection'];if(!_0x322c09['plugins']['has']('TableEditing'))return;const _0x50c365=_0x322c09['locale'],_0x39fc85=_0x322c09['plugins']['get']('TrackChangesEditing'),_0x2547ba=_0x322c09['plugins']['get']('TableUtils');_0x39fc85['descriptionFactory']['registerElementLabel']('table',_0x14b2d7=>o(_0x50c365,'ELEMENT_TABLE',_0x14b2d7)),this['_setupColumnsRowsFixing'](),_0x39fc85['enableCommand']('insertTable'),_0x39fc85['enableCommand']('selectTableRow'),_0x39fc85['enableCommand']('selectTableColumn');for(const _0x53a0a1 of['insertTableRowAbove','insertTableRowBelow']){const _0x35b39=_0x322c09['commands']['get'](_0x53a0a1);_0x39fc85['enableCommand'](_0x53a0a1,_0x1fdcb5=>{_0x322c09['model']['change'](_0x180894=>{_0x1fdcb5();const _0x483121='above'===_0x35b39['order'],_0x28bff8=_0x2547ba['getSelectionAffectedTableCells'](_0xa80b12),_0x333281=_0x2547ba['getRowIndexes'](_0x28bff8),_0x4527ed=_0x483121?_0x333281['first']-0x1:_0x333281['last']+0x1,_0x516614=_0x28bff8[0x0]['findAncestor']('table'),_0x2fcbfa=_0x2547ba['createTableWalker'](_0x516614,{'startRow':_0x4527ed,'endRow':_0x4527ed}),_0x493573=Array['from'](_0x2fcbfa)['map'](_0x2f25ea=>_0x180894['createRangeOn'](_0x2f25ea['cell']));_0x39fc85['markMultiRangeInsertion'](_0x493573,'tableRow');});});}for(const _0x42cfd3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3189e5=_0x322c09['commands']['get'](_0x42cfd3);_0x39fc85['enableCommand'](_0x42cfd3,_0x5706ec=>{_0x322c09['model']['change'](_0x21ac60=>{_0x5706ec();const _0x16201c='left'===_0x3189e5['order'],_0x548d58=_0x2547ba['getSelectionAffectedTableCells'](_0xa80b12),_0x17d659=_0x2547ba['getColumnIndexes'](_0x548d58),_0x31294a=_0x16201c?_0x17d659['first']-0x1:_0x17d659['last']+0x1,_0x196237=_0x548d58[0x0]['findAncestor']('table'),_0x2f2e85=_0x2547ba['createTableWalker'](_0x196237,{'startRow':0x0,'column':_0x31294a,'includeAllSlots':!0x1}),_0x103c88=Array['from'](_0x2f2e85)['map'](_0x2bf62e=>_0x21ac60['createRangeOn'](_0x2bf62e['cell']));_0x39fc85['markMultiRangeInsertion'](_0x103c88,'tableColumn');});});}for(const _0x949848 of['removeTableRow','removeTableColumn']){const _0x5524f5=_0x949848['substr'](0xb),_0x40f801=_0x5524f5['toLowerCase'](),_0x1d4223=_0x40f801['substr'](0x0,0x3)+'span',_0x1c526f='table'+_0x5524f5,_0xa7d452='min'+_0x5524f5,_0x4a4128='max'+_0x5524f5;_0x39fc85['enableCommand'](_0x949848,()=>{_0x322c09['model']['change'](_0x4db57f=>{const _0x1fdc90=_0x2547ba['getSelectionAffectedTableCells'](_0xa80b12),_0x51d49f=_0x1fdc90[0x0]['findAncestor']('table');let _0xe4029d;if('removeTableRow'==_0x949848){const _0x18800d=_0x2547ba['getRowIndexes'](_0x1fdc90);_0xe4029d={'startRow':_0x18800d['first'],'endRow':_0x18800d['last'],'includeAllSlots':!0x0};}else{const _0x5d0022=_0x2547ba['getColumnIndexes'](_0x1fdc90);_0xe4029d={'startColumn':_0x5d0022['first'],'endColumn':_0x5d0022['last'],'includeAllSlots':!0x0};}const _0x38c36e=_0x2547ba['createTableWalker'](_0x51d49f,_0xe4029d),_0x29a46c=Array['from'](_0x38c36e)['map'](({cell:_0x32dbaf})=>_0x32dbaf),_0xa607f2=Ee(_0x29a46c['filter'](_0x46a7cf=>_0x46a7cf['hasAttribute'](_0x1d4223))),_0x51f8e6=Ee(_0x29a46c['filter'](_0x4e4056=>!_0x4e4056['hasAttribute'](_0x1d4223)))['map'](_0xea68bf=>_0x4db57f['createRangeOn'](_0xea68bf)),_0x445119=_0x39fc85['markMultiRangeDeletion'](_0x51f8e6,_0x1c526f);if(_0x445119&&('tableRow'==_0x445119['subType']||'tableColumn'==_0x445119['subType'])){const _0x3f18c2=this['_getSuggestionCoords'](_0x445119);for(const _0x1e152d of _0xa607f2){const _0x391b01=_0x4db57f['createRangeOn'](_0x1e152d),_0x47833d=_0x2547ba['getCellLocation'](_0x1e152d),_0x1c182b=_0x1e152d['getAttribute'](_0x1d4223)-0x1,_0x1ff99f=_0x3f18c2[_0xa7d452],_0x145e96=_0x3f18c2[_0x4a4128];_0x1ff99f<=_0x47833d[_0x40f801]&&_0x47833d[_0x40f801]+_0x1c182b<=_0x145e96&&_0x445119['addRange'](_0x391b01);}}});});}function _0x126ac7(_0x520fbe){const _0x8531ea=Array['from'](_0xa80b12['getRanges']())['map'](_0x587159=>_0x438751['fromRange'](_0x587159));_0x322c09['model']['change'](_0x3b69ee=>{const _0x4b1213=_0x3b69ee['batch'];_0x520fbe=_0x520fbe['filter'](_0x2f8656=>'$graveyard'!=_0x2f8656['root']['rootName']),_0x3b69ee['setSelection'](_0x520fbe),_0x322c09['commands']['get']('removeTableRow')['refresh'](),_0x322c09['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x322c09['model']['enqueueChange'](()=>{_0x322c09['model']['enqueueChange'](_0x4b1213,_0x2b58b6=>{const _0x10ad14=_0x8531ea['filter'](_0x45cd16=>'$graveyard'!=_0x45cd16['root']['rootName']);_0x10ad14['length']>0x0&&_0x2b58b6['setSelection'](_0x10ad14);for(const _0x15fe6c of _0x8531ea)_0x15fe6c['detach']();});});});}function _0x2ac5bd(_0x4feb71){_0x322c09['model']['change'](_0x3a06c0=>{const _0xe9370a=Array['from'](_0xa80b12['getRanges']())['map'](_0x327199=>_0x438751['fromRange'](_0x327199)),_0x4cb2a8=[];for(const _0x75c7fd of _0x4feb71)for(const _0x598186 of _0x75c7fd['getItems']({'shallow':!0x0}))_0x4cb2a8['push'](_0x598186);for(const _0x44fd72 of _0x4cb2a8)'$graveyard'!=_0x44fd72['root']['rootName']&&(_0x3a06c0['setSelection'](_0x3a06c0['createPositionAt'](_0x44fd72,0x0)),_0x322c09['commands']['get']('removeTableColumn')['refresh'](),_0x322c09['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x448df2=_0xe9370a['filter'](_0x2b992c=>'$graveyard'!=_0x2b992c['root']['rootName']);_0x448df2['length']>0x0&&_0x3a06c0['setSelection'](_0x448df2);for(const _0x50a9a0 of _0xe9370a)_0x50a9a0['detach']();});}function _0x41772a(_0x2fe579,_0x55961b){return _0x55961b['every'](_0x5086e4=>_0x2fe579['some'](_0x1e436c=>_0x1e436c['end']['isEqual'](_0x5086e4['start'])||_0x5086e4['end']['isEqual'](_0x1e436c['start'])));}function _0x12267b(_0x35ad1a,_0x3715c7){return!_0x35ad1a['some'](_0x49ecab=>_0x3715c7['some'](_0x4e0d22=>_0x49ecab['isIntersecting'](_0x4e0d22)))&&_0x35ad1a['some'](_0x4667af=>_0x3715c7['some'](_0x1134b2=>_0x4667af['end']['isTouching'](_0x1134b2['start'])));}_0x322c09['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3162e0,_0x5f0b4d,_0x31df22)=>{if(!_0x31df22['options']['showSuggestionHighlights'])return;const _0x5e6a9f=_0x5f0b4d['item'];if(!_0x5e6a9f)return;const _0x218b91=_0x31df22['mapper']['toViewElement'](_0x5e6a9f);function _0x2ead79(_0x3d04fa){return Array['isArray'](_0x3d04fa)?_0x3d04fa:[_0x3d04fa];}_0x218b91&&'tableCell'===_0x5e6a9f['name']&&_0x3c803e(_0x218b91,_0x31df22['writer'],(_0x30044f,_0xabb434,_0x59ab5d)=>_0x59ab5d['addClass'](_0x2ead79(_0xabb434['classes']),_0x30044f),(_0x527c28,_0x32c97c,_0x56d630)=>_0x56d630['removeClass'](_0x2ead79(_0x32c97c['classes']),_0x527c28));},{'priority':'highest'}),_0x39fc85['descriptionFactory']['registerDescriptionCallback'](_0xbb775d=>{if('insertion'!=_0xbb775d['type']&&'deletion'!=_0xbb775d['type'])return;const _0x26a585=_0xbb775d['getContainedElement']();if(null!=_0x26a585&&_0x26a585['is']('element','table')){if('insertion'==_0xbb775d['type']){const _0x520f65=_0xbb775d['getItems']()['filter'](_0x4628f0=>_0x4628f0['is']('$textProxy'))['map'](_0x572a68=>_0x572a68['data']);if(_0x520f65['length'])return{'type':'insertion','content':o(_0x50c365,'*Insert:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x520f65['join']('\x20')+'\x22'))};}if('deletion'==_0xbb775d['type']){const _0x3d2d39=_0xbb775d['getItems']()['filter'](_0x1450e7=>_0x1450e7['is']('$textProxy'))['map'](_0x37b48f=>_0x37b48f['data']);if(_0x3d2d39['length'])return{'type':'deletion','content':o(_0x50c365,'*Remove:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d2d39['join']('\x20')+'\x22'))};}}}),_0x39fc85['descriptionFactory']['registerDescriptionCallback'](_0x1d4bd7=>{if('tableRow'==_0x1d4bd7['subType']){const _0x1a70ff=_0x1d4bd7['getItems']()['filter'](_0x248e39=>_0x248e39['is']('$textProxy'))['map'](_0x4d4d64=>_0x4d4d64['data']),_0x49e981=this['_getSuggestionCoords'](_0x1d4bd7),_0x1bac7c=_0x49e981['maxRow']-_0x49e981['minRow']+0x1;if('insertion'==_0x1d4bd7['type'])return _0x1a70ff['length']?{'type':'insertion','content':o(_0x50c365,'*Insert:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1bac7c,'\x22'+_0x1a70ff['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50c365,'*Insert:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_ROW',_0x1bac7c))};if('deletion'==_0x1d4bd7['type'])return _0x1a70ff['length']?{'type':'deletion','content':o(_0x50c365,'*Remove:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1bac7c,'\x22'+_0x1a70ff['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50c365,'*Remove:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_ROW',_0x1bac7c))};}if('tableColumn'==_0x1d4bd7['subType']){const _0x1e4115=_0x1d4bd7['getItems']()['filter'](_0x333e0c=>_0x333e0c['is']('$textProxy'))['map'](_0xc4151c=>_0xc4151c['data']),_0x3c50a7=this['_getSuggestionCoords'](_0x1d4bd7),_0x52e3c7=_0x3c50a7['maxColumn']-_0x3c50a7['minColumn']+0x1;if('insertion'==_0x1d4bd7['type'])return _0x1e4115['length']?{'type':'insertion','content':o(_0x50c365,'*Insert:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x52e3c7,'\x22'+_0x1e4115['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50c365,'*Insert:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_COLUMN',_0x52e3c7))};if('deletion'==_0x1d4bd7['type'])return _0x1e4115['length']?{'type':'deletion','content':o(_0x50c365,'*Remove:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x52e3c7,'\x22'+_0x1e4115['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50c365,'*Remove:*\x20%0',o(_0x50c365,'ELEMENT_TABLE_COLUMN',_0x52e3c7))};}}),_0x39fc85['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x126ac7),_0x39fc85['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x126ac7),_0x39fc85['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2ac5bd),_0x39fc85['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2ac5bd),_0x39fc85['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x41772a),_0x39fc85['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x41772a),_0x39fc85['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12267b),_0x39fc85['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12267b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x46a212=this['editor'],_0x53b7b4=_0x46a212['model']['document']['selection'];return(_0x2fefdb,_0x36200c)=>{_0x46a212['model']['change'](_0x3785f7=>{const {commandName:_0x468718,commandParams:_0xefa777}=_0x36200c;let _0x4df3b9=_0x2fefdb[0x0]['end']['nodeBefore'];_0xefa777&&_0xefa777[0x0]&&!0x1===_0xefa777[0x0]['forceValue']&&(_0x4df3b9=_0x2fefdb[0x0]['start']['nodeAfter']);const _0x22da6e=_0x3785f7['createRangeIn'](_0x4df3b9);if('$graveyard'==_0x22da6e['root']['rootName'])return;const _0x217013=Array['from'](_0x53b7b4['getRanges']())['map'](_0x4ea0d1=>_0x438751['fromRange'](_0x4ea0d1));_0x3785f7['setSelection'](_0x22da6e),_0x46a212['commands']['get'](_0x468718)['refresh'](),_0xefa777['push']({'forceDefaultExecution':!0x0}),_0x46a212['execute'](_0x468718,..._0xefa777);const _0x34ad4a=_0x217013['filter'](_0x3d01b7=>'$graveyard'!=_0x3d01b7['root']['rootName']);_0x34ad4a['length']>0x0&&_0x3785f7['setSelection'](_0x34ad4a);for(const _0x202328 of _0x217013)_0x202328['detach']();});};}['_getCoordsForCells'](_0x30c38d){const _0x25d94c=this['editor']['plugins']['get']('TableUtils');let _0x546492=Number['MAX_SAFE_INTEGER'],_0x174096=Number['MIN_SAFE_INTEGER'],_0xe7f676=Number['MAX_SAFE_INTEGER'],_0x4b75fb=Number['MIN_SAFE_INTEGER'];for(const _0x2034e4 of _0x30c38d){if('$graveyard'==_0x2034e4['root']['rootName'])continue;const {row:_0x404b37,column:_0x568f91}=_0x25d94c['getCellLocation'](_0x2034e4),_0x3a8bd0=_0x2034e4['hasAttribute']('rowspan')?_0x2034e4['getAttribute']('rowspan')-0x1:0x0,_0x4f4340=_0x2034e4['hasAttribute']('colspan')?_0x2034e4['getAttribute']('colspan')-0x1:0x0;_0x546492=_0x404b37<_0x546492?_0x404b37:_0x546492,_0x174096=_0x404b37+_0x3a8bd0>_0x174096?_0x404b37+_0x3a8bd0:_0x174096,_0xe7f676=_0x568f91<_0xe7f676?_0x568f91:_0xe7f676,_0x4b75fb=_0x568f91+_0x4f4340>_0x4b75fb?_0x568f91+_0x4f4340:_0x4b75fb;}return{'minRow':_0x546492,'maxRow':_0x174096,'minColumn':_0xe7f676,'maxColumn':_0x4b75fb};}['_setupColumnsRowsFixing'](){const _0x5bd2a9=this['editor'],_0x61c462=_0x5bd2a9['plugins']['get']('TrackChangesEditing'),_0x887c9a=_0x5bd2a9['plugins']['get']('TableUtils');_0x5bd2a9['model']['document']['on']('change:data',()=>{const _0x1effc7=Array['from'](_0x5bd2a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x378abd,data:_0x3efd09}of _0x1effc7){const {group:_0x5a7c66,id:_0x5d7a8f,subType:_0x494239}=_0x61c462['_splitMarkerName'](_0x378abd);if('suggestion'!=_0x5a7c66)continue;if(null!=_0x3efd09['oldRange'])continue;const _0x4137e7=_0x61c462['getSuggestion'](_0x5d7a8f);this['_tablePostFixingSubtypes']['includes'](_0x494239)&&this['_tableSuggestions']['add'](_0x4137e7);}},{'priority':'low'});const _0x2a53c=(_0xfceea4,_0x276204)=>{let _0x979952=!0x1;const _0x956273=_0x276204['createRangeOn'](_0xfceea4),_0x287e60=_0xfceea4['findAncestor']('table'),_0x22377d=_0x887c9a['getCellLocation'](_0xfceea4);for(const _0x4610b4 of this['_tableSuggestions']){const _0x3d3041=_0x4610b4['subType'],_0x5a65a8=_0x3d3041['startsWith']('tablePaste'),_0x340656=_0x3d3041['substr'](_0x5a65a8?0xa:0x5),_0x5b7225=_0x340656['toLowerCase'](),_0x59c92d=_0x5b7225['substr'](0x0,0x3)+'span',_0x569db8='min'+_0x340656,_0x18a3bd='max'+_0x340656;if(!_0x4610b4['isInContent'])continue;if(_0x287e60!=_0x4610b4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4610b4['isIntersectingWithRange'](_0x956273))continue;const _0x157c86=_0xfceea4['hasAttribute'](_0x59c92d)?_0xfceea4['getAttribute'](_0x59c92d)-0x1:0x0,_0x1c9287=this['_getSuggestionCoords'](_0x4610b4),_0x5f59fb=_0x1c9287[_0x569db8],_0x4e2455=_0x1c9287[_0x18a3bd];_0x5f59fb<=_0x22377d[_0x5b7225]&&_0x22377d[_0x5b7225]+_0x157c86<=_0x4e2455&&(_0x4610b4['addRange'](_0x956273),_0x979952=!0x0);}return _0x979952;};_0x5bd2a9['model']['document']['registerPostFixer'](_0x45c56e=>{let _0x10d1ab=!0x1;for(const _0x2845e0 of _0x5bd2a9['model']['document']['differ']['getChanges']())if('insert'==_0x2845e0['type']){if('tableRow'==_0x2845e0['name']){for(const _0x2485ee of _0x2845e0['position']['nodeAfter']['getChildren']())_0x10d1ab=_0x10d1ab||_0x2a53c(_0x2485ee,_0x45c56e);}else'tableCell'==_0x2845e0['name']&&(_0x10d1ab=_0x10d1ab||_0x2a53c(_0x2845e0['position']['nodeAfter'],_0x45c56e));}return _0x10d1ab;});}['_getSuggestionCoords'](_0x4856c1){return this['_getCoordsForCells'](_0x4856c1['getRanges']()['map'](_0x7521c6=>_0x7521c6['start']['nodeAfter']));}}function Ee(_0x1dbb93){return Array['from'](new Set(_0x1dbb93)['values']());}class vt extends _0x592a9e{static get['requires'](){return[It];}['afterInit'](){const _0x1bfbed=this['editor'],_0x37c457=_0x1bfbed['model']['document']['selection'],_0x1ce38b=_0x1bfbed['locale'];if(!_0x1bfbed['plugins']['has']('TableEditing'))return;const _0x5214d3=_0x1bfbed['plugins']['get']('TrackChangesEditing'),_0x49ddbe=_0x1bfbed['plugins']['get']('TableUtils'),_0x1af234=_0x1bfbed['plugins']['get'](It);_0x1af234['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5214d3['enableCommand']('mergeTableCells',()=>{const _0xe33266=_0x49ddbe['getSelectionAffectedTableCells'](_0x1bfbed['model']['document']['selection']);_0x1bfbed['model']['change'](()=>{_0x5214d3['markMultiRangeBlockFormat'](_0xe33266,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1bfbed['commands']['get']('mergeTableCells')['on']('execute',(_0x59109d,_0x31cbc2)=>{_0x1bfbed['commands']['get']('trackChanges')['value']&&(_0x31cbc2['length']>0x0&&_0x31cbc2[_0x31cbc2['length']-0x1]&&_0x31cbc2[_0x31cbc2['length']-0x1]['forceDefaultExecution']||_0x5214d3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59109d['stop']());},{'priority':'highest'});for(const _0x43bc72 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x55efa9=_0x1bfbed['commands']['get'](_0x43bc72);_0x5214d3['enableCommand'](_0x43bc72,()=>{const _0x37981d=_0x1bfbed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4503c7=>_0x4503c7['is']('element','tableCell')),_0x4b5e1e=_0x55efa9['value'];_0x1bfbed['model']['change'](()=>{_0x5214d3['markMultiRangeBlockFormat']([_0x37981d,_0x4b5e1e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x14bd43 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x15e58d=_0x1bfbed['commands']['get'](_0x14bd43);_0x5214d3['enableCommand'](_0x14bd43,()=>{const _0x2c3bca=_0x49ddbe['getSelectionAffectedTableCells'](_0x1bfbed['model']['document']['selection'])[0x0],_0x28359e=_0x2c3bca['findAncestor']('table'),{column:_0x3eebcf,row:_0x2e916d}=_0x49ddbe['getCellLocation'](_0x2c3bca);let _0x2170da=[];if('horizontally'==_0x15e58d['direction']){const _0x400745=_0x49ddbe['createTableWalker'](_0x28359e,{'startRow':_0x2e916d,'endRow':_0x2e916d,'includeAllSlots':!0x0});_0x2170da=Array['from'](_0x400745)['map'](_0x4951cc=>_0x4951cc['cell']);}else{const _0x35a98a=_0x49ddbe['createTableWalker'](_0x28359e,{'column':_0x3eebcf,'includeAllSlots':!0x0});_0x2170da=Array['from'](_0x35a98a)['map'](_0x2c211d=>_0x2c211d['cell']);}_0x1bfbed['model']['change'](_0x2e500f=>{_0x5214d3['markBlockFormat'](_0x2e500f['createRangeOn'](_0x2c3bca),{'commandName':_0x14bd43,'commandParams':[]},_0x2170da,_0x14bd43);});});}_0x5214d3['descriptionFactory']['registerDescriptionCallback'](_0x309dba=>{if('formatBlock'!=_0x309dba['type']&&'formatInline'!=_0x309dba['type'])return;const {data:_0x1ed647}=_0x309dba;return _0x1ed647&&'mergeTableCells'==_0x1ed647['commandName']?{'type':'format','content':o(_0x1ce38b,'*Merge\x20cells*')}:void 0x0;}),_0x5214d3['descriptionFactory']['registerDescriptionCallback'](_0x21df6f=>{if('formatBlock'!=_0x21df6f['type']&&'formatInline'!=_0x21df6f['type'])return;const {data:_0x4ef1b2}=_0x21df6f;return _0x4ef1b2?'splitTableCellVertically'==_0x4ef1b2['commandName']?{'type':'format','content':o(_0x1ce38b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4ef1b2['commandName']?{'type':'format','content':o(_0x1ce38b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x416582=_0x1af234['_acceptFormatSuggestionCallbackFactory']();for(const _0xb0ff99 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5214d3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb0ff99,'accept',_0x416582);for(const _0x86d1c6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5214d3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x86d1c6,'accept',_0x416582);_0x5214d3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x737aaa=>{_0x1bfbed['model']['change'](_0x28a965=>{const _0x2e9877=Array['from'](_0x37c457['getRanges']())['map'](_0x5d946b=>_0x438751['fromRange'](_0x5d946b));_0x28a965['setSelection'](_0x737aaa),_0x1bfbed['commands']['get']('mergeTableCells')['refresh'](),_0x1bfbed['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4c2e6a=_0x2e9877['filter'](_0x572c37=>'$graveyard'!=_0x572c37['root']['rootName']);_0x4c2e6a['length']>0x0&&_0x28a965['setSelection'](_0x4c2e6a);for(const _0x4edb79 of _0x2e9877)_0x4edb79['detach']();});});for(const _0x314cd5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2202a0=_0x1bfbed['commands']['get'](_0x314cd5);_0x2202a0['on']('set:isEnabled',(_0x53a525,_0x51261c,_0x28c86a)=>{if(_0x28c86a){const _0x2b9173=_0x1bfbed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xa070ef=>_0xa070ef['is']('element','tableCell'));this['_areMergableCells'](_0x2202a0['value'],_0x2b9173)||(_0x53a525['return']=!0x1,_0x53a525['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x165642=this['editor']['commands']['get']('mergeTableCells'),_0x26333e=this['editor']['plugins']['get']('TableUtils');if(!_0x165642['isEnabled'])return!0x1;const _0x4581aa=_0x26333e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53a2d6 of _0x4581aa)for(const _0x2a8e96 of _0x4581aa)if(_0x53a2d6!=_0x2a8e96&&!this['_areMergableCells'](_0x53a2d6,_0x2a8e96))return!0x1;return!0x0;}['_areMergableCells'](_0xb77828,_0x287452){const _0x13dbfe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b7edd=this['editor']['model']['createRangeOn'](_0xb77828),_0x228294=this['editor']['model']['createRangeOn'](_0x287452),_0x372f6f=new Set(),_0x130e49=new Set();for(const _0x2f73e4 of _0x13dbfe['getSuggestions']())if(('insertion'==_0x2f73e4['type']||'deletion'==_0x2f73e4['type']||'mergeTableCells'==_0x2f73e4['subType'])&&_0x2f73e4['isInContent']){for(const _0x3b35c9 of _0x2f73e4['getRanges']())_0x3b35c9['containsRange'](_0x1b7edd,!0x0)&&_0x372f6f['add'](_0x2f73e4['type']+':'+_0x2f73e4['author']['id']),_0x3b35c9['containsRange'](_0x228294,!0x0)&&_0x130e49['add'](_0x2f73e4['type']+':'+_0x2f73e4['author']['id']);}if(_0x372f6f['size']!=_0x130e49['size'])return!0x1;for(const _0x28d962 of _0x372f6f)if(!_0x130e49['has'](_0x28d962))return!0x1;return!0x0;}}class Ct extends _0x592a9e{static get['requires'](){return[It];}['afterInit'](){const _0x72305b=this['editor'];if(!_0x72305b['plugins']['has']('TableEditing'))return;const _0x246daf=_0x72305b['locale'],_0x385c0b=_0x72305b['plugins']['get']('TrackChangesEditing');_0x385c0b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x385c0b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x385c0b['registerBlockAttribute']('headingRows'),_0x385c0b['registerBlockAttribute']('headingColumns'),_0x385c0b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x246daf,'FORMAT_HEADER_ROW')),_0x385c0b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x246daf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x208b3c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bd1a4=this['editor']['plugins']['get']('TableUtils'),_0x3937d7=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x2e548b({showActiveMarker:_0x1518ca=!0x0,setDataAttribute:_0x20f413=!0x0}={}){return(_0x1d31fb,_0x227973,_0x3e7b36)=>{const {type:_0x1750ef,id:_0x20c6ce}=_0x208b3c['_splitMarkerName'](_0x227973['markerName']),_0x4d3dac=_0x208b3c['getSuggestion'](_0x20c6ce),_0x329d12=_0x4d3dac['data'];if('formatBlock'!=_0x4d3dac['type']||!_0x329d12||'setTableColumnHeader'!=_0x329d12['commandName'])return;if(_0x227973['item'])return void _0x1d31fb['stop']();if(!_0x3e7b36['consumable']['consume'](_0x227973['markerRange'],_0x1d31fb['name']))return;const _0xca8fb7=_0x227973['markerRange']['start']['nodeAfter'],_0x1a8539=_0x227973['markerRange']['end']['nodeBefore'],_0x3604ef=_0xca8fb7['parent']['parent'],{column:_0x1421ee}=_0x1bd1a4['getCellLocation'](_0xca8fb7),{column:_0x3c2272}=_0x1bd1a4['getCellLocation'](_0x1a8539);for(let _0x498cad=_0x1421ee;_0x498cad<=_0x3c2272;_0x498cad++){const _0xbd47cf=_0x1bd1a4['createTableWalker'](_0x3604ef,{'column':_0x498cad,'includeAllSlots':!0x1});for(const _0x3a3ca8 of _0xbd47cf){const _0x4d521d=_0x3a3ca8['cell'],_0x16fcbe=_0x3e7b36['mapper']['toViewElement'](_0x4d521d);_0x3e7b36['writer']['addClass']('ck-suggestion-marker-'+_0x1750ef,_0x16fcbe),_0x20f413&&_0x3e7b36['writer']['setAttribute']('data-suggestion',_0x20c6ce,_0x16fcbe),_0x3e7b36['mapper']['bindElementToMarker'](_0x16fcbe,_0x227973['markerName']),_0x1518ca&&(_0x208b3c['activeMarkers']['includes'](_0x227973['markerName'])?_0x3e7b36['writer']['addClass']('ck-suggestion-marker--active',_0x16fcbe):_0x3e7b36['writer']['removeClass']('ck-suggestion-marker--active',_0x16fcbe));}}};}_0x208b3c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3937d7),_0x208b3c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3937d7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2e548b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57dd37,_0x110399,_0x4d1ad2)=>{_0x4d1ad2['options']['showSuggestionHighlights']&&_0x2e548b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x57dd37,_0x110399,_0x4d1ad2);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xfee4f6,_0x37f9de,_0x2c1505)=>{const {type:_0x13ed10,id:_0x14ad1e}=_0x208b3c['_splitMarkerName'](_0x37f9de['markerName']),_0x398fe9=_0x208b3c['getSuggestion'](_0x14ad1e),_0x39cdde=_0x398fe9['data'];if('formatBlock'!=_0x398fe9['type']||!_0x39cdde||'setTableColumnHeader'!=_0x39cdde['commandName'])return;const _0x5656cc=_0x2c1505['mapper']['markerNameToElements'](_0x37f9de['markerName']);if(_0x5656cc){for(const _0x4fc133 of _0x5656cc)_0x2c1505['writer']['removeClass']('ck-suggestion-marker-'+_0x13ed10,_0x4fc133),_0x2c1505['writer']['removeClass']('ck-suggestion-marker--active',_0x4fc133),_0x2c1505['writer']['removeAttribute']('data-suggestion',_0x4fc133),_0x2c1505['mapper']['unbindElementFromMarkerName'](_0x4fc133,_0x37f9de['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d93ab=this['editor'],_0x38979b=_0x4d93ab['locale'];function _0x519dd5(_0x33157c){return{'type':'format','content':o(_0x38979b,'*Format:*\x20%0',_0x33157c)};}_0x4d93ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7cc5=>{if('formatBlock'!=_0x4f7cc5['type'])return;const {data:_0x4d530c}=_0x4f7cc5;if(_0x4d530c){if('setTableRowHeader'==_0x4d530c['commandName']){const _0x5042b2=_0x4d530c['commandParams'][0x0]['forceValue'];return _0x519dd5(o(_0x38979b,_0x5042b2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4d530c['commandName']){const _0xbeab4=_0x4d530c['commandParams'][0x0]['forceValue'];return _0x519dd5(o(_0x38979b,_0xbeab4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x378e20=>[_0x378e20,null]));class _t extends _0x592a9e{static get['requires'](){return[It];}['afterInit'](){const _0x1bf78a=this['editor'];if(!_0x1bf78a['plugins']['has']('TableClipboard'))return;const _0x30b35f=_0x1bf78a['plugins']['get']('TrackChangesEditing'),_0x554f74=_0x1bf78a['plugins']['get']('TableUtils'),_0x3d63dd=_0x1bf78a['plugins']['get'](It),_0x2357dc=_0x1bf78a['plugins']['get']('TableClipboard');_0x3d63dd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1bf78a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1bf78a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x21591c=null;_0x1bf78a['model']['on']('insertContent',(_0x4b265b,_0x513e32)=>{const [_0x5ce5ff,_0x39f554]=_0x513e32,_0x5f3b9d=_0x513e32[_0x513e32['length']-0x1];_0x5f3b9d&&_0x5f3b9d['forceDefaultExecution']||_0x30b35f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x35cdf9,_0x42c670,_0x166110,_0x4449d0,_0x2fbcf0){if(_0x42c670&&!_0x42c670['is']('documentSelection'))return!0x1;const _0x2b8b3d=_0x2fbcf0['getTableIfOnlyTableInContent'](_0x35cdf9,_0x166110);if(!_0x2b8b3d||!ke(_0x2b8b3d,void 0x0,_0x4449d0))return!0x1;const _0x46aef6=_0x4449d0['getSelectionAffectedTableCells'](_0x166110['document']['selection']);if(!_0x46aef6['length'])return!0x1;const _0x5a3f49=_0x46aef6[0x0]['findAncestor']('table'),_0x1ae2e1=_0x4449d0['getRowIndexes'](_0x46aef6),_0x12ee3c=_0x4449d0['getColumnIndexes'](_0x46aef6),_0x5d11de={'startRow':_0x1ae2e1['first'],'endRow':_0x1ae2e1['last'],'startColumn':_0x12ee3c['first'],'endColumn':_0x12ee3c['last']};return 0x1==_0x46aef6['length']&&(_0x5d11de['endRow']+=_0x4449d0['getRows'](_0x2b8b3d)-0x1,_0x5d11de['endColumn']+=_0x4449d0['getColumns'](_0x2b8b3d)-0x1),ke(_0x5a3f49,_0x5d11de,_0x4449d0);}(_0x5ce5ff,_0x39f554,_0x1bf78a['model'],_0x554f74,_0x2357dc)&&(_0x4b265b['stop'](),_0x21591c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1bf78a['model']['change'](()=>{_0x1bf78a['model']['insertContent'](_0x513e32[0x0],_0x513e32[0x1],_0x513e32[0x2],{'forceDefaultExecution':!0x0});const _0x28cc6b=_0x4295c7(),{rowInsertionRanges:_0x4ad45c,columnInsertionRanges:_0xe645c1,insertionRanges:_0x448a7b,deletionRanges:_0x1eafed,cells:_0x1a2fd9}=_0x21591c;_0x4ad45c['length']&&_0x30b35f['markMultiRangeInsertion'](_0x4ad45c,'tablePasteRow',{'tablePasteChainId':_0x28cc6b}),_0xe645c1['length']&&_0x30b35f['markMultiRangeInsertion'](_0xe645c1,'tablePasteColumn',{'tablePasteChainId':_0x28cc6b}),_0x448a7b['length']&&(_0x30b35f['markMultiRangeInsertion'](_0x448a7b,'tablePaste',{'tablePasteChainId':_0x28cc6b,'skipNestingCheck':!0x0}),_0x448a7b['forEach'](_0x547371=>_0x547371['detach']?.())),_0x1eafed['length']&&(_0x30b35f['markMultiRangeDeletion'](_0x1eafed,'tablePaste',{'tablePasteChainId':_0x28cc6b,'skipNestingCheck':!0x0}),_0x1eafed['forEach'](_0x52e714=>_0x52e714['detach']?.()));const _0x337046=_0x30b35f['markMultiRangeBlockFormat'](_0x1a2fd9['map'](({element:_0x14095f})=>_0x14095f),{'formatGroupId':_0x4295c7()},[],'tablePasteCell',{'tablePasteChainId':_0x28cc6b});if(_0x337046){const _0x101e1c=_0x337046['getMarkers'](),_0x192af3=[];for(const {element:_0x334d2f,attributes:_0x37b25e}of _0x1a2fd9){if(!_0x37b25e)continue;const _0x1f4f20=_0x1bf78a['model']['createRangeOn'](_0x334d2f),_0x58ff1e=_0x101e1c['find'](_0x5a3ff3=>_0x5a3ff3['getRange']()['isEqual'](_0x1f4f20));_0x58ff1e&&_0x192af3['push']([_0x58ff1e['name'],_0x37b25e]);}_0x192af3['length']&&_0x337046['setAttribute']('markerAttributes',Object['fromEntries'](_0x192af3));}_0x21591c=null;}));},{'priority':_0x1de43c['high']+0xa}),_0x1bf78a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x54bbba,_0x1e4c82)=>{const [_0x295288,_0x4edc5e,,_0x214203]=_0x1e4c82;if(!_0x21591c)return;_0x54bbba['stop']();const _0x18511a=_0x295288['cell'],_0x3b6a6c=_0x4edc5e,_0x510f7d=we(_0x18511a),_0x2c6e62=we(_0x3b6a6c);_0x54bbba['return']=_0x18511a;let _0x4e70fb=null,_0x4a6e38=null;if(_0x2c6e62||_0x510f7d){if(_0x510f7d&&!_0x2c6e62){_0x214203['remove'](_0x18511a['getChild'](0x0));for(const _0x189050 of Array['from'](_0x3b6a6c['getChildren']()))_0x214203['insert'](_0x189050,_0x18511a,'end');const _0x3223f9=_0x21591c['rowInsertionIndexes']['includes'](_0x295288['row']),_0xe200e2=_0x21591c['columnInsertionIndexes']['includes'](_0x295288['column']);_0x3223f9||_0xe200e2||(_0x4e70fb=_0x438751['fromRange'](_0x214203['createRangeIn'](_0x18511a)));}else _0x2c6e62&&!_0x510f7d&&(_0x4a6e38=_0x214203['createRangeIn'](_0x18511a));}else{const _0x3bd0f6=_0x214203['createElement']('tableCellSuggestion'),_0x291037=_0x214203['createElement']('tableCellSuggestion');_0x214203['wrap'](_0x214203['createRangeIn'](_0x18511a),_0x291037),_0x214203['insert'](_0x3bd0f6,_0x18511a,0x0);for(const _0x18c6ed of Array['from'](_0x3b6a6c['getChildren']()))_0x214203['insert'](_0x18c6ed,_0x3bd0f6,'end');_0x4e70fb=_0x438751['fromRange'](_0x214203['createRangeOn'](_0x3bd0f6)),_0x4a6e38=_0x438751['fromRange'](_0x214203['createRangeOn'](_0x291037));}const _0x544197=Array['from'](_0x3b6a6c['getAttributes']())['filter'](([_0x969130])=>Ce['includes'](_0x969130));_0x21591c['cells']['push']({'element':_0x18511a,'attributes':_0x544197['length']?Object['fromEntries'](_0x544197):null}),_0x4e70fb&&_0x21591c['insertionRanges']['push'](_0x4e70fb),_0x4a6e38&&_0x21591c['deletionRanges']['push'](_0x4a6e38);},{'priority':'high'}),_0x554f74['on']('insertColumns',(_0x22cc39,_0x1197cf)=>{const [_0x198848,_0x1ef8ed={}]=_0x1197cf;if(!_0x21591c)return;const _0x1293f7=_0x1ef8ed['at']||0x0,_0x598b2c=_0x1ef8ed['columns']||0x1;_0x21591c['columnInsertionIndexes']=new Array(_0x598b2c)['fill'](_0x1293f7)['map']((_0x31ee6f,_0x4f8b3a)=>_0x31ee6f+_0x4f8b3a);for(const {cell:_0x389717}of _0x554f74['createTableWalker'](_0x198848,{'startColumn':_0x1293f7,'endColumn':_0x1293f7+_0x598b2c-0x1}))_0x21591c['columnInsertionRanges']['push'](_0x1bf78a['model']['createRangeOn'](_0x389717));},{'priority':'low'}),_0x554f74['on']('insertRows',(_0x2d040d,_0x5bdc45)=>{const [_0x1b5629,_0x3858c3={}]=_0x5bdc45;if(!_0x21591c)return;const _0x49d967=_0x3858c3['at']||0x0,_0x56bc15=_0x3858c3['rows']||0x1;_0x21591c['rowInsertionIndexes']=new Array(_0x56bc15)['fill'](_0x49d967)['map']((_0x2de716,_0x2116ac)=>_0x2de716+_0x2116ac);for(const {cell:_0x5990d5}of _0x554f74['createTableWalker'](_0x1b5629,{'startRow':_0x49d967,'endRow':_0x49d967+_0x56bc15-0x1}))_0x21591c['rowInsertionRanges']['push'](_0x1bf78a['model']['createRangeOn'](_0x5990d5));},{'priority':'low'}),_0x30b35f['descriptionFactory']['registerDescriptionCallback'](_0x577c25=>{if(_0x577c25['subType']&&_0x577c25['subType']['startsWith']('tablePaste'))return _0x577c25['previous']?{}:{'type':'insertion','content':o(_0x1bf78a['locale'],'*Replace\x20table\x20cells*')};});const _0x53569f=()=>!0x1;for(const _0x10641e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x30b35f['_suggestionFactory']['registerCustomCallback']('insertion',_0x10641e,'join',_0x53569f),_0x30b35f['_suggestionFactory']['registerCustomCallback']('deletion',_0x10641e,'join',_0x53569f),_0x30b35f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10641e,'join',_0x53569f);_0x30b35f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53569f),_0x30b35f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4ad39a,_0x5385ae,_0x2da274)=>{const _0xdc4248=_0x4ad39a['map'](_0x281cd3=>_0x281cd3['getContainedElement']())['filter'](_0x51280b=>_0x51280b),_0x133808=new Map(_0xdc4248['map'](_0x375dda=>[_0x375dda,null]));if(_0x21591c){for(const {element:_0x5803e3,attributes:_0x3fcf71}of _0x21591c['cells'])_0x3fcf71&&_0x133808['set'](_0x5803e3,_0x3fcf71);}else{if(_0x2da274&&_0x2da274['markerAttributes'])for(const [_0x39e2bf,_0x545f54]of Object['entries'](_0x2da274['markerAttributes'])){const _0x24cd99=_0x1bf78a['model']['markers']['get'](_0x39e2bf),_0x2c19c2=_0x24cd99?_0x24cd99['getRange']()['getContainedElement']():null;_0x2c19c2&&_0x133808['set'](_0x2c19c2,_0x545f54);}}_0x1bf78a['model']['change'](_0x1f1529=>{for(const [_0x5b1b44,_0x4e98cf]of _0x133808)_0x1f1529['setAttributes']({...Pe,..._0x4e98cf},_0x5b1b44);});});const _0x56518a=(_0x426750,_0x339f0d)=>{_0x30b35f['_suggestionFactory']['registerCustomCallback'](_0x426750,'tablePaste',_0x339f0d,(_0x10ea18,_0x18a08b,_0x1086ed)=>{_0x1bf78a['model']['change'](_0x407f20=>{const _0x47711c=[];for(const _0x57322f of _0x10ea18){const _0x33ae4e=_0x57322f['start']['nodeAfter'];_0x33ae4e['is']('element','tableCellSuggestion')&&_0x47711c['push'](_0x33ae4e);}_0x30b35f['_suggestionFactory']['getSuggestionCallback'](_0x426750,null,_0x339f0d)(_0x10ea18,_0x18a08b,_0x1086ed);for(const _0x3ba17b of _0x47711c)'$graveyard'!=_0x3ba17b['root']['rootName']&&_0x407f20['unwrap'](_0x3ba17b);});});};_0x56518a('insertion','accept'),_0x56518a('insertion','discard'),_0x56518a('deletion','accept'),_0x56518a('deletion','discard'),_0x30b35f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ee58d=>{const _0x23b6b5=_0x1ee58d['map'](_0x40b06b=>_0x40b06b['getContainedElement']()),_0x346dcd=_0x23b6b5[0x0]['findAncestor']('table'),{minRow:_0xddc585,maxRow:_0x131c48}=_0x3d63dd['_getCoordsForCells'](_0x23b6b5);_0x554f74['removeRows'](_0x346dcd,{'at':_0xddc585,'rows':_0x131c48-_0xddc585+0x1});}),_0x30b35f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58ffca=>{const _0x2dd334=_0x58ffca['map'](_0x50fe22=>_0x50fe22['getContainedElement']()),_0x3a5d14=_0x2dd334[0x0]['findAncestor']('table'),{minColumn:_0x3c1dc4,maxColumn:_0x46144}=_0x3d63dd['_getCoordsForCells'](_0x2dd334);_0x554f74['removeColumns'](_0x3a5d14,{'at':_0x3c1dc4,'columns':_0x46144-_0x3c1dc4+0x1});});const _0x101880=(_0x21a9db,_0x32dbcc)=>{if(!_0x32dbcc['subType']||!_0x32dbcc['subType']['startsWith']('tablePaste'))return;const _0x4a09a0=_0x32dbcc['attributes']['tablePasteChainId'],_0x1ad371=_0x30b35f['getSuggestions']()['filter'](_0x2697ab=>_0x2697ab['isInContent']&&_0x2697ab['attributes']&&_0x2697ab['attributes']['tablePasteChainId']==_0x4a09a0);_0x1ad371['length']&&_0x32dbcc['getAllAdjacentSuggestions']()['length']!=_0x1ad371['length']&&_0x1ad371['reduce']((_0x5cb5c7,_0x41210d)=>(_0x5cb5c7['next']=_0x41210d,_0x41210d['previous']=_0x5cb5c7,_0x41210d));};function _0x5980d6(_0x4ac323,_0x402d1b=!0x0){const {id:_0x5d1d37}=_0x30b35f['_splitMarkerName'](_0x4ac323['markerName']),_0x26faf9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3337ac=_0x30b35f['activeMarkers']['includes'](_0x4ac323['markerName']);return _0x3337ac&&_0x26faf9['push']('ck-suggestion-marker--active'),{'classes':_0x26faf9,'attributes':{'data-suggestion':_0x5d1d37},'priority':_0x3337ac&&_0x402d1b?0xbc2:0xbb8};}_0x30b35f['on']('suggestionLoaded',_0x101880,{'priority':'high'}),_0x30b35f['on']('suggestionUnloaded',_0x101880,{'priority':'high'}),_0x1bf78a['model']['document']['registerPostFixer'](()=>{let _0x1ce5aa=!0x1;const _0x693ead=Array['from'](_0x1bf78a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd02d5,data:_0x26c85c}of _0x693ead){const {group:_0x44a390,type:_0x1120be,id:_0x172403}=_0x30b35f['_splitMarkerName'](_0xd02d5);if('suggestion'!=_0x44a390||'deletion'!=_0x1120be||_0x26c85c['oldRange'])continue;if(!_0x30b35f['hasSuggestion'](_0x172403))continue;const _0x32a927=_0x30b35f['getSuggestion'](_0x172403)['getRanges'](),_0x2fb157=_0x1bf78a['plugins']['get']('Users')['me'];for(const _0x4dcfd5 of _0x30b35f['getSuggestions']()){if(!_0x4dcfd5['isInContent']||_0x4dcfd5['author']!=_0x2fb157)continue;if('formatBlock'!=_0x4dcfd5['type']||'tablePasteCell'!=_0x4dcfd5['subType'])continue;if(_0x4dcfd5['getRanges']()['every'](_0x124c8e=>_0x32a927['some'](_0x3323f0=>_0x3323f0['containsRange'](_0x124c8e,!0x0)))){for(const _0x14b219 of _0x4dcfd5['getAllAdjacentSuggestions']())_0x14b219['isInContent']&&(_0x14b219['discard'](),_0x1ce5aa=!0x0);}}}return _0x1ce5aa;}),_0x1bf78a['model']['document']['registerPostFixer'](_0x38dd43=>{const _0x52be54=_0x1bf78a['commands']['get']('redo');if(!_0x52be54||!_0x52be54['_createdBatches']['has'](_0x38dd43['batch']))return!0x1;let _0x487e64=!0x1;const _0x32c406=_0x1bf78a['plugins']['get']('Users')['me'],_0x75fbd6=_0x1bf78a['model']['document']['differ']['getChanges'](),_0x23b46b=Array['from'](_0x1bf78a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4d51bf,data:_0x30b627})=>{const {group:_0x20c750,subType:_0x4ec072,authorId:_0x14c940}=_0x30b35f['_splitMarkerName'](_0x4d51bf);return'suggestion'==_0x20c750&&'tablePaste'==_0x4ec072&&_0x14c940==_0x32c406['id']&&!_0x30b627['oldRange'];});for(const _0xdeae72 of _0x75fbd6){if('insert'!=_0xdeae72['type']||'tableCellSuggestion'!=_0xdeae72['name']||0x1!=_0xdeae72['length'])continue;const _0x41f6ea=_0x38dd43['createRange'](_0xdeae72['position'],_0xdeae72['position']['getShiftedBy'](0x1));if(!_0x23b46b['find'](({data:_0x3877cf})=>_0x3877cf['newRange']['isEqual'](_0x41f6ea))){for(const {name:_0x1f91fe,data:_0x1c56b3}of _0x23b46b)if(_0x41f6ea['containsRange'](_0x1c56b3['newRange'])){_0x38dd43['updateMarker'](_0x1f91fe,{'range':_0x41f6ea}),_0x487e64=!0x0;break;}}}return _0x487e64;}),_0x1bf78a['model']['document']['registerPostFixer'](_0x58fe81=>{let _0xb09dff=!0x1;const _0xa7e309=_0x1bf78a['plugins']['get']('Users')['me'],_0x5d9f6f=_0x30b35f['getSuggestions']()['filter'](_0xe2c142=>_0xe2c142['isInContent']&&_0xe2c142['author']==_0xa7e309),_0x3cb525=new Set(),_0x1e64ba=new Set();for(const _0x4947cf of _0x5d9f6f)if('tablePaste'==_0x4947cf['subType'])for(const _0x49e3fd of _0x4947cf['getMarkers']()){const _0x1c3638=_0x49e3fd['getRange']()['getContainedElement']();if(_0x1c3638){if(_0x1c3638['is']('element','tableCellSuggestion')&&we(_0x1c3638)){_0x4947cf['removeMarker'](_0x49e3fd['name']),_0x3cb525['add'](_0x1c3638),_0xb09dff=!0x0;const _0x1cd2b4=_0x1c3638['nextSibling'],_0x4d5cef=_0x1c3638['previousSibling'],_0x321457=_0x1cd2b4&&_0x1cd2b4['is']('element','tableCellSuggestion'),_0x1f8142=_0x4d5cef&&_0x4d5cef['is']('element','tableCellSuggestion');_0x321457&&!_0x3cb525['has'](_0x1cd2b4)&&_0x1e64ba['add'](_0x1cd2b4),_0x1f8142&&!_0x3cb525['has'](_0x4d5cef)&&_0x1e64ba['add'](_0x4d5cef);}else _0x1c3638['is']('element','paragraph')&&_0x1c3638['isEmpty']&&(_0x4947cf['removeMarker'](_0x49e3fd['name']),_0xb09dff=!0x0);}}else{if('tablePasteCell'==_0x4947cf['subType']){if(!_0x4947cf['attributes']||!_0x4947cf['attributes']['tablePasteChainId'])continue;const _0x5275ee=_0x4947cf['attributes']['markerAttributes'];if(_0x5275ee&&Object['keys'](_0x5275ee)['length'])continue;const _0x167139=_0x4947cf['attributes']['tablePasteChainId'];let _0x7255b7=!0x0,_0x3f33b7=!0x0;for(const _0x14fccf of _0x5d9f6f)if(_0x14fccf['subType']&&_0x14fccf['subType']['startsWith']('tablePaste')){if(!_0x14fccf['attributes']['tablePasteChainId']){_0x3f33b7=!0x1;break;}if(_0x14fccf['id']!=_0x4947cf['id']&&_0x14fccf['attributes']['tablePasteChainId']==_0x167139){_0x7255b7=!0x1;break;}}_0x3f33b7&&_0x7255b7&&(_0x4947cf['removeMarkers'](),_0xb09dff=!0x0);}}for(const _0x2801ed of _0x3cb525)_0x58fe81['remove'](_0x2801ed);for(const _0x1b9c56 of _0x1e64ba)_0x58fe81['unwrap'](_0x1b9c56);return _0xb09dff;}),_0x1bf78a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x216ebf,_0x3fa07c)=>_0x5980d6(_0x216ebf),'converterPriority':'high'}),_0x1bf78a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x285998,_0x18a464)=>_0x18a464['options']['showSuggestionHighlights']?_0x5980d6(_0x285998,!0x1):null,'converterPriority':'high'});const _0x7b10e=_0x1bf78a['editing']['view'];this['listenTo'](_0x7b10e['document'],'clipboardOutput',(_0x292726,_0x1fafac)=>{const _0x22f2bf=[];for(const _0xaae5ef of _0x7b10e['createRangeIn'](_0x1fafac['content'])['getItems']())_0xaae5ef['is']('element','suggestion-td')&&_0x22f2bf['push'](_0xaae5ef);_0x7b10e['change'](_0x4e3082=>{for(const _0x56e461 of _0x22f2bf)_0x4e3082['move'](_0x4e3082['createRangeIn'](_0x56e461),_0x4e3082['createPositionBefore'](_0x56e461)),_0x4e3082['remove'](_0x56e461);});});}}function we(_0x10e02d){if(_0x10e02d['isEmpty'])return!0x0;const _0x444a47=_0x10e02d['getChild'](0x0);return _0x444a47['is']('element','paragraph')&&_0x444a47['isEmpty'];}function ke(_0x448d89,_0x4680e9={},_0x8bb370){for(const {isAnchor:_0xfd665d,cellHeight:_0x3e449a,cellWidth:_0x4c6589}of _0x8bb370['createTableWalker'](_0x448d89,{'includeAllSlots':!0x0,..._0x4680e9}))if(!_0xfd665d||0x1!=_0x3e449a||0x1!=_0x4c6589)return!0x1;return!0x0;}class Nt extends _0x592a9e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3f4a48=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f4a48['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3f4a48['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3f4a48['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f4a48['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3f4a48['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3f4a48['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x25da23,_0x37ec49){const _0x1cdcd8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x305a57=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3fe52a=_0x37ec49['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x8e536=_0x305a57['getColumnGroupElement'](_0x3fe52a);let _0x203efb=_0x8e536?_0x305a57['getTableColumnsWidths'](_0x8e536):null,_0x656f42=_0x3fe52a['getAttribute']('tableWidth')||null;const _0x21621e=_0x37ec49['tableWidth']||_0x656f42,_0x22f50e=_0x37ec49['columnWidths']||_0x203efb,_0x45f0d8=this['editor']['plugins']['get']('Users')['me'];for(const _0x11de8c of _0x1cdcd8['getSuggestions']()){const _0x594760=_0x11de8c['getContainedElement']();if('resizeTable'===_0x11de8c['subType']&&_0x594760===_0x3fe52a){_0x11de8c['author']!==_0x45f0d8&&_0x11de8c['discard']();const _0xd33483=_0x11de8c['data']['commandParams'];_0x656f42=_0xd33483[0x0]['tableWidth'],_0x203efb=_0xd33483[0x0]['columnWidths'];break;}}_0x25da23({'table':_0x3fe52a,'tableWidth':_0x21621e,'columnWidths':_0x22f50e}),_0x1cdcd8['markBlockFormat'](_0x3fe52a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x656f42,'columnWidths':_0x203efb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x35987e){if('formatBlock'!=_0x35987e['type']&&'formatInline'!=_0x35987e['type'])return;const {data:_0x17fab6}=_0x35987e;if(_0x17fab6&&'resizeTable'===_0x17fab6['formatGroupId']){const _0x33fef4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33fef4)};}}}class Dt extends _0x592a9e{['afterInit'](){const _0x499c16=this['editor'];_0x499c16['plugins']['has']('Template')&&_0x499c16['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x592a9e{['afterInit'](){const _0x44c6c0=this['editor'];if(!_0x44c6c0['commands']['get']('insertTableOfContents'))return;_0x44c6c0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x27f0f3=_0x44c6c0['plugins']['get']('TrackChangesEditing'),_0x7ad430=_0x44c6c0['locale'];_0x27f0f3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1e728e=>o(_0x7ad430,'ELEMENT_TABLE_OF_CONTENTS',_0x1e728e));}}class $t extends _0x592a9e{['afterInit'](){const _0xbaa813=this['editor'];if(!_0xbaa813['plugins']['has']('Title'))return;const _0x20f106=_0xbaa813['plugins']['get']('TrackChangesEditing');_0x20f106['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xbaa813['locale'],'ELEMENT_TITLE')),_0xbaa813['model']['document']['registerPostFixer'](_0x15d281=>{let _0x4fb2cd=!0x1;const _0x127bf5=Array['from'](_0xbaa813['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a2dfc,data:_0x45c4d9}of _0x127bf5){const {group:_0x21370d}=_0x20f106['_splitMarkerName'](_0x5a2dfc);if('suggestion'!==_0x21370d||!_0x45c4d9['newRange'])continue;const _0x5d2b15=_0x45c4d9['newRange'],_0x390623=_0x5d2b15['end']['nodeBefore'];if(!_0x390623||!_0x390623['is']('element','title-content'))continue;if(!_0x5d2b15['start']['isTouching'](_0x5d2b15['end']))continue;const _0x19687f=_0xbaa813['model']['schema']['getNearestSelectionRange'](_0x5d2b15['end'],'forward');if(_0x19687f&&_0x19687f['isCollapsed']){const _0x4a6095=_0x15d281['createRange'](_0x5d2b15['start'],_0x19687f['start']);_0x4a6095['isEqual'](_0x5d2b15)||(_0x15d281['updateMarker'](_0x5a2dfc,{'range':_0x4a6095}),_0x4fb2cd=!0x0);}_0x4fb2cd||(_0x15d281['removeMarker'](_0x5a2dfc),_0x4fb2cd=!0x0);}return _0x4fb2cd;});}}class Bt extends _0x592a9e{['afterInit'](){const _0x3106bc=this['editor'],_0x28045a=_0x3106bc['plugins']['get']('TrackChangesEditing');_0x3106bc['plugins']['has']('UndoEditing')&&(_0x28045a['enableCommand']('undo'),_0x28045a['enableCommand']('redo'));}}class xt extends _0x592a9e{static get['requires'](){return[It];}['afterInit'](){const _0x3a779d=this['editor'];if(!_0x3a779d['plugins']['has']('TableCaptionEditing'))return;_0x3a779d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x592a9e{['tableProperties'];['tableCellProperties'];constructor(_0xf02b04){super(_0xf02b04),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 _0x4cbe45=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x268af4 of this['tableProperties'])_0x4cbe45['enableCommand'](_0x268af4,(_0x2c77c1,_0x5376ae)=>{const _0x151e7e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x268af4,[_0x151e7e],this['tableProperties'],'tableProperties',_0x2c77c1,_0x5376ae);});_0x4cbe45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4cbe45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cbe45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1bfa7f,_0xbe2687)=>this['handleDiscardAction'](this['tableProperties'],_0x1bfa7f,_0xbe2687)),_0x4cbe45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10d3f7 of this['tableCellProperties'])_0x4cbe45['enableCommand'](_0x10d3f7,(_0x4a561f,_0x4e9f24)=>{const _0x394aa2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10d3f7,_0x394aa2,this['tableCellProperties'],'tableCellProperties',_0x4a561f,_0x4e9f24);});_0x4cbe45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4cbe45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cbe45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f9550,_0x4b6463)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f9550,_0x4b6463)),_0x4cbe45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4cbe45['descriptionFactory']['registerDescriptionCallback'](_0x5f1f1f=>this['handleSuggestionDescription'](_0x5f1f1f));}['_handlePropertyChange'](_0x3d53e,_0x7e4aec,_0xd01881,_0x458ecb,_0x2c33f3,_0x54d854){const _0x23c152=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x54d854['batch'],()=>{for(const _0x4bb665 of _0x7e4aec){if(this['_getSuggestion'](_0x4bb665,_0x458ecb))_0x2c33f3(_0x54d854);else{const _0x333bb8={};for(const _0x2c2a4b of _0xd01881){const _0x312ca2=_0x4bb665['getAttribute'](_0x2c2a4b);void 0x0!==_0x312ca2&&(_0x333bb8[_0x2c2a4b]=_0x312ca2);}_0x2c33f3(_0x54d854),_0x23c152['markBlockFormat'](_0x4bb665,{'commandParams':[_0x333bb8]},[],_0x458ecb);}}});}['handleDiscardAction'](_0x219d41,_0x5165a1,_0x2eca1b){const _0x43e074=_0x5165a1[0x0]['start']['nodeAfter'],_0x592bcf=_0x2eca1b['commandParams'][0x0];this['editor']['model']['change'](_0x32b419=>{for(const _0x49ba18 of _0x219d41)void 0x0!==_0x592bcf[_0x49ba18]?_0x32b419['setAttribute'](_0x49ba18,_0x592bcf[_0x49ba18],_0x43e074):_0x32b419['removeAttribute'](_0x49ba18,_0x43e074);});}['handleSuggestionDescription'](_0xf88624){if(_0xf88624['data'])switch(_0xf88624['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'](_0x56b2bd,_0x103ab2){const _0x4d5148=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c463d of _0x4d5148['getSuggestions']({'skipNotAttached':!0x0})){const _0x207252=_0x3c463d['getContainedElement']();if(_0x3c463d['subType']===_0x103ab2&&_0x207252===_0x56b2bd)return _0x3c463d;}return null;}}const m='$elementName';class p extends _0x592a9e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x35bf8f,_0x25c036,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(_0xd6e446){function _0x14a3a9(_0x472906){return _0x472906['map'](_0x75887f=>String['fromCharCode'](_0x75887f))['join']('');}super(_0xd6e446),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x41c0e3,_0x4fbef9,_0x28247b,_0x776e3d)=>{this['_model']['change'](()=>{for(const _0x4dbd5c of[..._0x776e3d,..._0x28247b])this['_model']['markers']['has'](_0x4dbd5c)&&_0xd6e446['editing']['reconvertMarker'](_0x4dbd5c);});}),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']=_0xd6e446['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(),_0xd6e446['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xd6e446['config']['get']('trackChanges.trackFormatChanges'),_0xd6e446['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xd6e446['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xd6e446,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x14a3a9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x14a3a9([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x34]);}['init'](){const _0x245312=this['editor'],_0x5c037c=(_0x2bb77a,_0x3ebab6)=>{if('attribute'!=_0x2bb77a)return'ck-suggestion-marker-'+_0x2bb77a;const _0x27e8c4=_0x3ebab6['split']('|')[0x0];return this['_isBlockAttribute'](_0x27e8c4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x245312['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x58d838=>{const {id:_0x42417d,type:_0x2b39a2,subType:_0x32d02d}=this['_splitMarkerName'](_0x58d838['markerName']),_0x267f71=['ck-suggestion-marker',_0x5c037c(_0x2b39a2,_0x32d02d)];let _0x576161=0xbb8;return this['activeMarkers']['includes'](_0x58d838['markerName'])&&(_0x267f71['push']('ck-suggestion-marker--active'),_0x576161=0xbc2),'deletion'==_0x2b39a2&&(_0x576161+=0x5),{'classes':_0x267f71,'attributes':{'data-suggestion':_0x42417d},'priority':_0x576161};}}),_0x245312['conversion']['for']('dataDowncast')['add'](_0x287c2e=>{_0x287c2e['on']('addMarker:suggestion',(_0x31990b,_0x105126,_0x3fde82)=>{if(!_0x3fde82['options']['showSuggestionHighlights'])return;const _0x198539=_0x105126['item'];if(!_0x198539)return;const _0x3c79b8=_0x3fde82['mapper']['toViewElement'](_0x198539);_0x245312['model']['schema']['isObject'](_0x198539)&&_0x3c79b8&&!_0x3c79b8['getCustomProperty']('widget')&&_0x3c79b8['is']('containerElement')&&_0x304c15(_0x3c79b8,_0x3fde82['writer']);},{'priority':'high'});}),_0x245312['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x478f4e,_0x4fb976)=>{if(!_0x4fb976['options']['showSuggestionHighlights'])return null;const {type:_0xe1f5c8,subType:_0x8c5e50}=this['_splitMarkerName'](_0x478f4e['markerName']);return{'classes':['ck-suggestion-marker',_0x5c037c(_0xe1f5c8,_0x8c5e50)],'priority':0xbb8};}});const _0x160b91=({showActiveMarkers:_0x5a1248=!0x0,isAttributeSuggestion:_0x1e7e91=!0x1}={})=>(_0x485668,_0x2789cd,_0x12be29)=>{if(!_0x2789cd['item'])return;const {id:_0x44c2f6}=this['_splitMarkerName'](_0x2789cd['markerName']);if(_0x1e7e91){const _0x12dd55=this['_suggestions']['get'](_0x44c2f6),_0x90a5d3=this['_getAttributeKey'](_0x12dd55);if(!this['_isBlockAttribute'](_0x90a5d3))return;}if(_0x2789cd['item']['is']('selection'))return void _0x12be29['consumable']['consume'](_0x2789cd['item'],_0x485668['name']);const _0x368bf8=_0x12be29['mapper']['toViewElement'](_0x2789cd['item']);if(_0x2789cd['item']['is']('element')&&_0x245312['model']['schema']['isBlock'](_0x2789cd['item'])&&!_0x368bf8['getCustomProperty']('addHighlight')){_0x12be29['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x368bf8),_0x12be29['writer']['setAttribute']('data-suggestion',_0x44c2f6,_0x368bf8),_0x12be29['mapper']['bindElementToMarker'](_0x368bf8,_0x2789cd['markerName']),_0x5a1248&&(this['activeMarkers']['includes'](_0x2789cd['markerName'])?_0x12be29['writer']['addClass']('ck-suggestion-marker--active',_0x368bf8):_0x12be29['writer']['removeClass']('ck-suggestion-marker--active',_0x368bf8));for(const _0x36d3d3 of _0x245312['model']['createRangeIn'](_0x2789cd['item'])['getItems']())_0x12be29['consumable']['consume'](_0x36d3d3,_0x485668['name']);_0x12be29['consumable']['consume'](_0x2789cd['item'],_0x485668['name']);}};_0x245312['conversion']['for']('dataDowncast')['add'](_0x5bcbed=>{_0x5bcbed['on']('addMarker:suggestion:formatBlock',(_0x45a280,_0x2224db,_0x261812)=>{_0x261812['options']['showSuggestionHighlights']&&_0x160b91({'showActiveMarkers':!0x1})(_0x45a280,_0x2224db,_0x261812);},{'priority':'highest'});}),_0x245312['conversion']['for']('dataDowncast')['add'](_0x169a9c=>{_0x169a9c['on']('addMarker:suggestion:attribute',(_0x257cb5,_0x4242b2,_0x3311e6)=>{_0x3311e6['options']['showSuggestionHighlights']&&_0x160b91({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x257cb5,_0x4242b2,_0x3311e6);},{'priority':'highest'});}),_0x245312['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xbbb9d5,_0x5465a1)=>_0x5465a1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xbbb9d5['substr'](0xb)}}),_0x245312['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5e8d22,{writer:_0x1ed47a})=>{let _0x5acb85='suggestion:'+_0x5e8d22['getAttribute']('suggestion-type')+':'+_0x5e8d22['getAttribute']('id');return _0x5e8d22['getAttribute']('marker-count')&&(_0x5acb85+=':'+_0x5e8d22['getAttribute']('marker-count')),_0x1ed47a['createElement']('$marker',{'data-name':_0x5acb85});}}),_0x245312['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x245312['conversion']['for']('editingDowncast')['add'](_0x2f6978=>{_0x2f6978['on']('addMarker:suggestion:formatBlock',_0x160b91(),{'priority':'high'});}),_0x245312['conversion']['for']('editingDowncast')['add'](_0x22ee52=>{_0x22ee52['on']('addMarker:suggestion:attribute',_0x160b91({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x245312['conversion']['for']('editingDowncast')['add'](_0x549a62=>{_0x549a62['on']('removeMarker:suggestion:formatBlock',(_0x5d3654,_0x209c88,_0x547e16)=>{const _0x2ba439=_0x547e16['mapper']['markerNameToElements'](_0x209c88['markerName']);if(_0x2ba439){for(const _0x20e29b of _0x2ba439)_0x20e29b['getCustomProperty']('addHighlight')||(_0x547e16['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20e29b),_0x547e16['writer']['removeAttribute']('data-suggestion',_0x20e29b),_0x547e16['mapper']['unbindElementFromMarkerName'](_0x20e29b,_0x209c88['markerName']));}},{'priority':'high'});}),_0x245312['conversion']['for']('editingDowncast')['add'](_0x40df3e=>{_0x40df3e['on']('removeMarker:suggestion:attribute',(_0x5c794a,_0x3cf79c,_0x3af908)=>{const _0x353fb3=_0x3af908['mapper']['markerNameToElements'](_0x3cf79c['markerName']);if(!_0x353fb3)return;const {id:_0x5024d3}=this['_splitMarkerName'](_0x3cf79c['markerName']),_0x3aa12f=this['_suggestions']['get'](_0x5024d3),_0x2073cd=this['_getAttributeKey'](_0x3aa12f);if(this['_isBlockAttribute'](_0x2073cd)){for(const _0x2af252 of _0x353fb3)_0x2af252['getCustomProperty']('addHighlight')||(_0x3af908['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2af252),_0x3af908['writer']['removeAttribute']('data-suggestion',_0x2af252),_0x3af908['mapper']['unbindElementFromMarkerName'](_0x2af252,_0x3cf79c['markerName']));}},{'priority':'high'});}),_0x245312['model']['document']['registerPostFixer'](_0x24936f=>{let _0xc3023f=!0x1;const _0x161003=Array['from'](_0x245312['model']['document']['differ']['getChangedMarkers']()),_0x321fed=new Set();for(const {name:_0x51baf7,data:_0x2ebbc3}of _0x161003){const {group:_0x3dc98e,type:_0x47b5ac,subType:_0x23bec2,id:_0x47d21b}=this['_splitMarkerName'](_0x51baf7);if('suggestion'!==_0x3dc98e)continue;const _0x3c0ec9=this['_suggestions']['get'](_0x47d21b);if(null!=_0x2ebbc3['newRange']){'formatInline'==_0x47b5ac&&(_0xc3023f=_0xc3023f||Ut(_0x2ebbc3['newRange'],_0x51baf7,_0x24936f,_0x245312['model']['schema']));const _0x58a87e='attribute'==_0x47b5ac&&this['_isBlockAttribute'](_0x23bec2['split']('|')[0x0]);if(_0x2ebbc3['newRange']['isCollapsed']||'$graveyard'==_0x2ebbc3['newRange']['root']['rootName']||'formatBlock'==_0x47b5ac&&!Ft(_0x2ebbc3['newRange'])||_0x58a87e&&!Ft(_0x2ebbc3['newRange'])||'deletion'==_0x47b5ac&&!(!Vt(_0x5ab7bb=_0x2ebbc3['newRange'])&&!function(_0x246b6a){return _0x246b6a['start']['parent']==_0x246b6a['end']['nodeBefore']&&_0x246b6a['start']['isAtEnd'];}(_0x5ab7bb)))_0x24936f['removeMarker'](_0x51baf7),_0xc3023f=!0x0;else{if(!_0x3c0ec9||!_0x3c0ec9['isInContent'])continue;if(_0x2ebbc3['newRange']&&_0x2ebbc3['oldRange']&&_0x2ebbc3['newRange']['isEqual'](_0x2ebbc3['oldRange']))continue;_0x321fed['add'](_0x3c0ec9);}}}var _0x5ab7bb;return _0x321fed['size']>0x0&&(_0xc3023f=!!this['_joinWithAdjacentSuggestions'](_0x321fed)||_0xc3023f),_0xc3023f;}),_0x245312['model']['document']['registerPostFixer'](_0x1c91a1=>{let _0xda1acc=!0x1;for(const _0x47ac49 of _0x245312['model']['document']['differ']['getChanges']())if('insert'==_0x47ac49['type'])for(const _0x242f4e of this['_suggestions']['values']()){if(_0x242f4e['isMultiRange']||!_0x242f4e['isInContent'])continue;const _0x47589a='formatBlock'==_0x242f4e['type'],_0xc56b2b=this['_getAttributeKey'](_0x242f4e),_0x5815ac=_0xc56b2b&&this['_isBlockAttribute'](_0xc56b2b);if(!_0x47589a&&!_0x5815ac)continue;const _0x46dd96=_0x242f4e['getFirstRange']();if(_0x46dd96['start']['parent']!=_0x46dd96['end']['parent']&&!_0x46dd96['end']['isAtEnd']){const _0x210d63=_0x245312['model']['createPositionAt'](_0x46dd96['start']['nodeAfter'],'end'),_0x3659bd=_0x245312['model']['createRange'](_0x46dd96['start'],_0x210d63);_0x1c91a1['updateMarker'](_0x242f4e['getFirstMarker'](),{'range':_0x3659bd}),_0xda1acc=!0x0;}}return _0xda1acc;}),_0x245312['model']['document']['registerPostFixer'](_0x3ec7f6=>this['_processAttributeChanges'](_0x3ec7f6)),_0x245312['model']['document']['registerPostFixer'](_0x244a2b=>!_0x244a2b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x244a2b)),_0x245312['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x245312['model']['document']['on']('change:data',(_0x173eed,_0x1dcb39)=>{if(!_0x1dcb39['isLocal']||_0x1dcb39['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x22bf6d=_0x245312['model']['document']['differ']['getChanges']();if(0x0==_0x22bf6d['length'])return;const _0x5cb6e3=[],_0x7835fa=_0x22bf6d['filter'](_0x1cba46=>'attribute'==_0x1cba46['type']),_0xc312f6=_0x22bf6d['filter'](_0x5305d2=>'insert'==_0x5305d2['type']&&'$text'!=_0x5305d2['name']);for(const _0x580b62 of _0x7835fa)this['_isRegisteredAttribute'](_0x580b62['attributeKey'])&&_0x5cb6e3['push']({'key':_0x580b62['attributeKey'],'newValue':_0x580b62['attributeNewValue'],'oldValue':_0x580b62['attributeOldValue'],'range':Pt(_0x580b62['range'],_0x245312['model'])});for(const _0x6fd967 of _0xc312f6){if('rename'!=_0x6fd967['action']&&'refresh'!=_0x6fd967['action'])continue;const _0x4dfad1=Lt(_0x6fd967['position']['nodeAfter'],_0x245312['model']),_0x1c452=_0x6fd967['before'];'rename'==_0x6fd967['action']&&_0x5cb6e3['push']({'key':m,'newValue':_0x6fd967['name'],'oldValue':_0x1c452['name'],'range':_0x4dfad1});for(const [_0x54f28f,_0x5d3788]of _0x1c452['attributes']){if(!this['_isRegisteredAttribute'](_0x54f28f))continue;const _0x10c7b7=_0x6fd967['attributes']['get'](_0x54f28f);_0x5d3788!==_0x10c7b7&&_0x5cb6e3['push']({'key':_0x54f28f,'newValue':_0x10c7b7,'oldValue':_0x5d3788,'range':_0x4dfad1});}for(const [_0x12f8f6,_0x19d043]of _0x6fd967['attributes'])this['_isRegisteredAttribute'](_0x12f8f6)&&(_0x1c452['attributes']['has'](_0x12f8f6)||_0x5cb6e3['push']({'key':_0x12f8f6,'newValue':_0x19d043,'oldValue':null,'range':_0x4dfad1}));}0x0!=_0x5cb6e3['length']&&_0x245312['model']['enqueueChange'](_0x1dcb39,_0xa383e8=>{const _0x3ea708=_0x4295c7();for(const {range:_0x4205e4,key:_0x5a93b0,oldValue:_0xc67d7d,newValue:_0xaefa9b}of _0x5cb6e3)this['markAttributeChange'](_0x4205e4,_0x5a93b0,_0xc67d7d,_0xaefa9b,{'groupId':_0x3ea708});this['_reduceExistingSuggestions'](_0xa383e8,_0x5cb6e3);});},{'priority':'lowest'}),_0x245312['model']['markers']['on']('update:suggestion',(_0x39314c,_0x3ccdf3,_0x22de8f)=>{if(null==_0x22de8f){const {id:_0x3a2881}=this['_splitMarkerName'](_0x3ccdf3['name']),_0x4800c2=this['_suggestions']['get'](_0x3a2881);_0x4800c2&&_0x4800c2['addMarkerName'](_0x3ccdf3['name']);}}),_0x245312['model']['document']['on']('change:data',()=>{const _0x4f5d7a=Array['from'](_0x245312['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31707f=>'suggestion'===this['_splitMarkerName'](_0x31707f['name'])['group']);if(0x0===_0x4f5d7a['length'])return;_0x4f5d7a['sort']((_0x55b242,_0x4d27e1)=>{const _0x33da9a=_0x55b242['data']['oldRange'],_0xda4ba2=_0x4d27e1['data']['oldRange'];return null===_0x33da9a&&null===_0xda4ba2?0x0:null===_0x33da9a&&null!==_0xda4ba2?-0x1:null!==_0x33da9a&&null===_0xda4ba2?0x1:_0x33da9a['start']['isBefore'](_0xda4ba2['start'])?-0x1:0x1;});const _0x560468=new Set(),_0x6760ed=new Set();for(const {name:_0x305f4d,data:_0x4d1d4d}of _0x4f5d7a){const {id:_0x30614f}=this['_splitMarkerName'](_0x305f4d);if(null===_0x4d1d4d['oldRange']){const _0x43849b=this['_handleNewSuggestionMarker'](_0x305f4d);_0x6760ed['add'](_0x43849b);}else{const _0x332645=this['_suggestions']['get'](_0x30614f);null!==_0x4d1d4d['newRange']||_0x332645['isInContent']?(_0x560468['add'](_0x332645['head']),_0x6760ed['add'](_0x332645)):this['_removeSuggestion'](_0x332645);}}_0x6760ed['size']>0x0&&this['_refreshSuggestionsChain'](_0x6760ed);for(const _0x4d7302 of _0x560468)this['fire']('suggestionChanged',_0x4d7302);}),_0x245312['model']['on']('applyOperation',(_0x200d04,_0x5a48e9)=>{const _0x2e343a=_0x5a48e9[0x0];if(!this['_suggestions']['size'])return;if(!_0x2e343a['isDocumentOperation'])return;if(_0x2e343a['batch']['isUndo']||!_0x2e343a['batch']['isLocal'])return;let _0x579396,_0x153d04;switch(_0x2e343a['type']){case'insert':_0x579396=_0x245312['model']['createPositionAt'](_0x2e343a['position']),_0x153d04=_0x579396['getShiftedBy'](_0x2e343a['howMany']);break;case'split':_0x579396=_0x245312['model']['createPositionAt'](_0x2e343a['splitPosition']),_0x153d04=_0x245312['model']['createPositionAt'](_0x2e343a['moveTargetPosition']);break;case'move':_0x579396=_0x245312['model']['createPositionAt'](_0x2e343a['targetPosition']),_0x153d04=_0x579396['getShiftedBy'](_0x2e343a['howMany']);break;default:return;}const _0x1f7bb8=_0x245312['model']['createRange'](_0x579396,_0x153d04);_0x245312['model']['change'](()=>{for(const {suggestion:_0xa54ad2,meta:_0x1800d2}of this['_findSuggestions'](_0x1f7bb8)){if(_0xa54ad2['isMultiRange'])continue;if('formatInline'==_0xa54ad2['type'])continue;const _0x42e6a9=this['_getAttributeKey'](_0xa54ad2);if(_0x42e6a9&&this['_isBlockAttribute'](_0x42e6a9)&&'split'!=_0x2e343a['type'])continue;const _0x35d93c=_0xa54ad2['data']&&_0xa54ad2['data']['multipleBlocks'];('formatBlock'!=_0xa54ad2['type']||'split'==_0x2e343a['type']&&!_0x35d93c)&&(_0x1800d2['containsRangeInObject']||'insertion'==_0xa54ad2['type']&&_0x1800d2['isOwn']||_0xa54ad2['getFirstRange']()['containsRange'](_0x1f7bb8)&&this['_breakSuggestionMarker'](_0xa54ad2,_0x579396,_0x153d04));}});},{'priority':'lowest'}),_0x245312['model']['on']('deleteContent',(_0x545121,_0x32ed04)=>{const _0xefbd6c=_0x32ed04[0x0],_0xf60eaf=_0x32ed04[0x1];if(_0xf60eaf&&_0xf60eaf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xefbd6c['isCollapsed'])return;const _0xc8002d=_0x245312['model']['schema'],{start:_0x26405d,end:_0x378b2a}=_0xefbd6c['getFirstRange'](),_0x2c139c=_0x26405d['nodeAfter']&&_0xc8002d['isLimit'](_0x26405d['nodeAfter'])?null:_0xc8002d['getNearestSelectionRange'](_0x26405d,'forward'),_0x2b56a6=_0x378b2a['nodeBefore']&&_0xc8002d['isLimit'](_0x378b2a['nodeBefore'])?null:_0xc8002d['getNearestSelectionRange'](_0x378b2a,'backward'),_0x19e810=_0x245312['model']['createRange'](_0x2c139c?_0x2c139c['start']:_0x26405d,_0x2b56a6?_0x2b56a6['end']:_0x378b2a);_0x245312['model']['change'](_0x67dce7=>{this['markDeletion'](_0x19e810);const _0x56ce52=_0x245312['model']['schema']['getNearestSelectionRange'](_0x19e810['start']);_0xefbd6c['is']('documentSelection')?_0x67dce7['setSelection'](_0x56ce52):_0xefbd6c['setTo'](_0x56ce52);}),_0x545121['stop']();},{'priority':_0x1de43c['normal']+0xa}),_0x245312['model']['on']('insertContent',(_0x1f8aa9,_0x365ace)=>{const _0x4c4daf=_0x365ace[_0x365ace['length']-0x1];_0x4c4daf&&_0x4c4daf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x245312['model']['change'](()=>{let _0x274dea=_0x245312['model']['insertContent'](_0x365ace[0x0],_0x365ace[0x1],_0x365ace[0x2],{'forceDefaultExecution':!0x0});if(!_0x274dea)return;_0x1f8aa9['return']=_0x274dea['clone']();const _0x42590e=_0x274dea['end']['nodeBefore'],_0x469dd7=_0x245312['model']['schema'];_0x42590e&&_0x469dd7['isBlock'](_0x42590e)&&!_0x469dd7['isObject'](_0x42590e)&&(_0x274dea=_0x245312['model']['createRange'](_0x274dea['start'],_0x245312['model']['createPositionAt'](_0x42590e,'end'))),this['markInsertion'](_0x274dea);}),_0x1f8aa9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4853d9=new x(_0x245312,this['_suggestions']);_0x245312['commands']['add']('acceptSuggestion',_0x4853d9),this['enableCommand']('acceptSuggestion');const _0x137526=new R(_0x245312,this['_suggestions']);_0x245312['commands']['add']('discardSuggestion',_0x137526),this['enableCommand']('discardSuggestion'),_0x245312['commands']['add']('acceptAllSuggestions',new E(_0x245312,_0x4853d9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x245312['commands']['add']('discardAllSuggestions',new E(_0x245312,_0x137526,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x245312['commands']['add']('acceptSelectedSuggestions',new O(_0x245312,_0x4853d9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x245312['commands']['add']('discardSelectedSuggestions',new O(_0x245312,_0x137526,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2e88b6=_0x245312['plugins']['get']('CommentsRepository');this['listenTo'](_0x2e88b6,'addComment',(_0x569d55,{threadId:_0x3c43c6})=>{const _0x5a93d2=this['_suggestions']['get'](_0x3c43c6);_0x5a93d2&&_0x5a93d2['commentThread']&&0x1===_0x5a93d2['commentThread']['length']&&this['_updateSuggestionData'](_0x3c43c6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2e88b6,'removeComment',(_0x1e4dd6,{threadId:_0x34b686})=>{const _0xaf39c9=this['_suggestions']['get'](_0x34b686);_0xaf39c9&&_0xaf39c9['commentThread']&&!_0xaf39c9['commentThread']['length']&&this['_updateSuggestionData'](_0x34b686,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x19b861){if(this['_adapter'])throw new _0x45bfd6('track-changes-adapter-already-set',this);this['_adapter']=_0x19b861;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x559998=!0x1,toJSON:_0x69a758=!0x1}={}){const _0x3eeb98=[];for(const _0x4180ca of this['_suggestions']['values']())_0x559998&&!_0x4180ca['isInContent']||_0x3eeb98['push'](_0x4180ca);return _0x69a758?_0x3eeb98['map'](_0x10dc08=>_0x10dc08['toJSON']()):_0x3eeb98;}['getSuggestion'](_0x54227d){const _0x2af873=this['_suggestions']['get'](_0x54227d);if(!_0x2af873)throw new _0x45bfd6('track-changes-suggestion-not-found',this);return _0x2af873;}['hasSuggestion'](_0x5976fd){return this['_suggestions']['has'](_0x5976fd);}['addSuggestionData'](_0x1161e3){const {authorId:_0x3f2158,id:_0x364f4c,attributes:_0x2a3788}=_0x1161e3,[_0x147f20,_0x837dba]=_0x1161e3['type']['split'](':'),_0x11fb3a=this['_suggestions']['get'](_0x364f4c)||this['_createSuggestion'](_0x147f20,_0x837dba,_0x364f4c,_0x3f2158,_0x2a3788);if(this['_addThreadToSuggestion'](_0x11fb3a),this['_checkSuggestionCorrectness'](_0x11fb3a,_0x147f20,_0x837dba||null,_0x3f2158),_0x11fb3a['createdAt']=_0x1161e3['createdAt'],_0x11fb3a['_isDataLoaded']=!0x0,_0x2a3788&&_0x2a3788['@external']){const _0x12381c=_0x2a3788['@external'],_0x37172e=this['_getExternalAuthor'](_0x12381c['authorName']);_0x11fb3a['authoredAt']=_0x12381c['createdAt'],_0x11fb3a['author']=_0x37172e,_0x11fb3a['isExternal']=!0x0;}else _0x11fb3a['authoredAt']=_0x1161e3['createdAt'];switch(_0x1161e3['data']&&(_0x11fb3a['data']=_0x1161e3['data']),_0x1161e3['attributes']&&(_0x11fb3a['attributes']=_0x1161e3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x11fb3a['_saved']=!0x0),this['_suggestionState']['get'](_0x11fb3a)){case'notReady':this['_suggestionState']['set'](_0x11fb3a,'dataReady');break;case'markerReady':_0x11fb3a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x11fb3a])),this['_refreshSuggestionsChain'](new Set([_0x11fb3a])),this['_suggestionState']['set'](_0x11fb3a,'ready'),this['fire']('suggestionLoaded',_0x11fb3a)):this['_suggestionState']['set'](_0x11fb3a,'removed');}return _0x11fb3a;}['acceptSuggestion'](_0x482010){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56e686 of _0x482010['getAllAdjacentSuggestions']())_0x56e686['accept']();});});}['discardSuggestion'](_0x3c3b24){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38603b of _0x3c3b24['getAllAdjacentSuggestions']())_0x38603b['discard']();});});}['enableCommand'](_0x55f250,_0x41c7b7){const _0x4b376=this['editor']['commands']['get'](_0x55f250);if(!_0x4b376)throw new _0x45bfd6('track-changes-command-not-found',this,{'commandName':_0x55f250});if(this['_enabledCommands']['has'](_0x4b376))throw new _0x45bfd6('track-changes-enable-command-twice',this,{'commandName':_0x55f250});this['_enabledCommands']['add'](_0x4b376),_0x41c7b7&&_0x4b376['on']('execute',(_0x4f88d1,_0x1fd623)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1fd623['length']>0x0&&_0x1fd623[_0x1fd623['length']-0x1]&&_0x1fd623[_0x1fd623['length']-0x1]['forceDefaultExecution']?_0x1fd623['pop']():(_0x4f88d1['return']=_0x41c7b7((..._0x206cce)=>_0x4b376['execute'](..._0x206cce,{'forceDefaultExecution':!0x0}),..._0x1fd623),_0x4f88d1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3b61b0){let _0x5ca847,_0xfce53;const _0x59fe86=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5ca847=_0x3b61b0();}catch(_0x1ab181){_0xfce53=_0x1ab181;}return _0x59fe86||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xfce53&&_0x45bfd6['rethrowUnexpectedError'](_0xfce53,this),_0x5ca847;}['markInsertion'](_0x1bdb4b,_0xb692a0=null,_0x4a1a4e={}){if(_0x1bdb4b['isCollapsed'])return null;const _0x15a509=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4a05ec,meta:_0x167abd}of this['_findSuggestions'](_0x1bdb4b,'insertion'))if(_0x167abd['isOwn']){if(!_0x167abd['isNextTo']){if(_0x167abd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4a05ec,_0x4a1a4e))continue;return _0x4a05ec;}if(qt(_0x4a05ec,_0x4a1a4e))return _0x4a05ec;this['_breakSuggestionMarker'](_0x4a05ec,_0x1bdb4b['start'],_0x1bdb4b['end']);break;}if(_0xb692a0==_0x4a05ec['subType']&&qt(_0x4a05ec,_0x4a1a4e)){const _0x321a67=_0x4a05ec['getFirstRange']();return _0x321a67['start']['isEqual'](_0x1bdb4b['end'])?this['_setSuggestionRange'](_0x4a05ec,this['_model']['createRange'](_0x1bdb4b['start'],_0x321a67['end'])):this['_setSuggestionRange'](_0x4a05ec,this['_model']['createRange'](_0x321a67['start'],_0x1bdb4b['end'])),_0x4a05ec;}}const _0x515bf3=_0x4295c7(),_0x107599=_0x15a509['id'],_0x2e301a=_0xb692a0?'insertion:'+_0xb692a0:'insertion',_0x4a35ab=this['_setSuggestionData']({'id':_0x515bf3,'type':_0x2e301a,'createdAt':new Date(),'authorId':_0x107599,'attributes':_0x4a1a4e});return this['_addSuggestionMarker'](_0x2e301a,_0x515bf3,_0x107599,_0x1bdb4b),_0x4a35ab;}['markMultiRangeInsertion'](_0x2104b7,_0x1783e5='multi',_0x50008a={}){const _0x305791=this['editor']['plugins']['get']('Users')['me'],_0x2f0872=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1783e5,'join');for(const _0x193d3c of this['getSuggestions']())if(_0x193d3c['author']['id']==_0x305791['id']&&'insertion'==_0x193d3c['type']&&_0x193d3c['subType']==_0x1783e5&&qt(_0x193d3c,_0x50008a)&&(_0x2f0872(_0x193d3c['getRanges'](),_0x2104b7)||_0x2f0872(_0x2104b7,_0x193d3c['getRanges']()))){for(const _0x23dd08 of _0x2104b7)_0x193d3c['addRange'](_0x23dd08);return _0x193d3c;}for(const {suggestion:_0x2223c3,meta:_0x4a000b}of this['_findSuggestions'](_0x2104b7,'insertion')){if(!_0x4a000b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4a000b['containsRangeInObject'])continue;if(!qt(_0x2223c3,_0x50008a))continue;let _0x5df5a7=!0x0;for(const _0x5bed30 of _0x2223c3['getRanges']())for(const _0x10cece of _0x2104b7)if(!_0x5bed30['containsRange'](_0x10cece)){_0x5df5a7=!0x1;break;}if(_0x5df5a7)return _0x2223c3;}const _0x538e3d=_0x4295c7(),_0x432d01=_0x305791['id'],_0x35ede5='insertion:'+_0x1783e5,_0x5d2b8f=this['_setSuggestionData']({'id':_0x538e3d,'type':_0x35ede5,'createdAt':new Date(),'authorId':_0x432d01,'attributes':_0x50008a});for(const _0x3c1820 of _0x2104b7)this['_addSuggestionMarker'](_0x35ede5,_0x538e3d,_0x432d01,_0x3c1820,u['getMultiRangeId']());return _0x5d2b8f;}['markInlineFormat'](_0x31366a,_0x1371ad,_0xef4157=null,_0x1ae353={}){if(_0xef4157=_0xef4157||Gt(_0x1371ad),_0x31366a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3c78fa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xef4157,'accept');return this['forceDefaultExecution'](()=>_0x3c78fa([_0x31366a],_0x1371ad,_0x1ae353)),null;}const _0x3e95a9=this['editor']['plugins']['get']('Users')['me'],_0x3730a1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x41fb52,meta:_0x2afc2f}of this['_findSuggestions'](_0x31366a,'insertion'))_0x2afc2f['isOwn']&&!_0x2afc2f['isInsideObject']&&_0x3730a1['push'](..._0x41fb52['getRanges']());}const _0x11e107=function(_0x38d528,_0xcebee0){const _0x127b7f=[];for(const _0x3894ca of _0xcebee0){const _0x4e39c2=_0x38d528['getIntersection'](_0x3894ca);_0x4e39c2&&_0x127b7f['push'](_0x4e39c2);}return _0x127b7f;}(_0x31366a,_0x3730a1),_0x2740f2=function(_0x24dbc5,_0x254a4a){const _0x363547=[_0x24dbc5];for(const _0x5d8a92 of _0x254a4a){let _0x12475f=0x0;for(;_0x12475f<_0x363547['length'];){const _0x50c9d0=_0x363547[_0x12475f]['getDifference'](_0x5d8a92);_0x363547['splice'](_0x12475f,0x1,..._0x50c9d0),_0x12475f+=_0x50c9d0['length'];}}return _0x363547;}(_0x31366a,_0x3730a1);_0x11e107['length']&&this['_model']['change'](()=>{for(const _0x28a1dc of _0x11e107){const _0xf983dd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xef4157,'accept');this['forceDefaultExecution'](()=>_0xf983dd([_0x28a1dc],_0x1371ad,_0x1ae353));}});for(const _0x4cac39 of _0x2740f2){let _0x7250e=null,_0x48d635=_0x4cac39['start'],_0x33a61d=_0x4cac39['end'];for(const {suggestion:_0x3f1bf6,meta:_0x35584b}of this['_findSuggestions'](_0x4cac39,'formatInline')){if(!_0x35584b['isOwn'])continue;if(_0x3f1bf6['subType']!=_0xef4157)continue;if(!qt(_0x3f1bf6,_0x1ae353))continue;const _0x183f01=_0x3f1bf6['getFirstRange']();if(_0x183f01['containsRange'](_0x4cac39,!0x0))return null;_0x48d635=_0x48d635['isBefore'](_0x183f01['start'])?_0x48d635:_0x183f01['start'],_0x33a61d=_0x33a61d['isAfter'](_0x183f01['end'])?_0x33a61d:_0x183f01['end'],_0x7250e?_0x183f01['start']['isBefore'](_0x7250e['getFirstRange']()['start'])?(_0x7250e['removeMarkers'](),_0x7250e=_0x3f1bf6):_0x3f1bf6['removeMarkers']():_0x7250e=_0x3f1bf6;}const _0x24bfb2=this['_model']['createRange'](_0x48d635,_0x33a61d);if(_0x7250e)this['_setSuggestionRange'](_0x7250e,_0x24bfb2);else{const _0x68799d=_0x4295c7(),_0x46f20b=_0x3e95a9['id'];this['_setSuggestionData']({'id':_0x68799d,'type':'formatInline:'+_0xef4157,'data':_0x1371ad,'createdAt':new Date(),'authorId':_0x46f20b,'attributes':_0x1ae353}),this['_addSuggestionMarker']('formatInline:'+_0xef4157,_0x68799d,_0x46f20b,_0x24bfb2);}}return null;}['markBlockFormat'](_0x3764e7,_0x2f6dc7,_0x4be686=[],_0x3f323b=null,_0x2db674={}){_0x2f6dc7['formatGroupId']||(_0x2f6dc7['formatGroupId']=_0x2f6dc7['commandName']),_0x2f6dc7['multipleBlocks']=_0x3764e7['is']('range'),_0x3f323b=_0x3f323b||Gt(_0x2f6dc7);const _0x681f11=_0x4be686['map'](_0x48e780=>Lt(_0x48e780,this['_model'])),_0x4e20a0=_0x3764e7['is']('range')?_0x3764e7:Lt(_0x3764e7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x247049=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f323b,'accept');return this['forceDefaultExecution'](()=>_0x247049([_0x4e20a0],_0x2f6dc7,_0x2db674)),null;}_0x681f11['push'](_0x4e20a0);let _0x573659=!0x0;for(const _0x166438 of _0x681f11)if(!this['_rangeIsInLocalUserInsertion'](_0x166438)){_0x573659=!0x1;break;}if(_0x573659&&'always'!==this['_trackFormatChanges']){const _0x5c27d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f323b,'accept');return this['forceDefaultExecution'](()=>_0x5c27d2([_0x4e20a0],_0x2f6dc7,_0x2db674)),null;}let _0x3914ef=null,_0x274f7e=_0x4e20a0['start'],_0x5c715f=_0x4e20a0['end'];for(const {suggestion:_0x4d03f8,meta:_0x1496e6}of this['_findSuggestions'](_0x4e20a0,'formatBlock')){if(!_0x1496e6['isOwn'])continue;if(_0x1496e6['isNextTo']||_0x1496e6['containsRangeInObject']||_0x1496e6['isInsideObject'])continue;if(_0x4d03f8['data']['formatGroupId']!=_0x2f6dc7['formatGroupId'])continue;if(!qt(_0x4d03f8,_0x2db674))continue;const _0x22d16c=_0x4d03f8['getFirstRange']();if(_0x4d03f8['subType']==_0x3f323b){if(_0x22d16c['containsRange'](_0x4e20a0,!0x0))return null;_0x274f7e=_0x274f7e['isBefore'](_0x22d16c['start'])?_0x274f7e:_0x22d16c['start'],_0x5c715f=_0x5c715f['isAfter'](_0x22d16c['end'])?_0x5c715f:_0x22d16c['end'],_0x3914ef?_0x22d16c['start']['isBefore'](_0x3914ef['getFirstRange']()['start'])?(_0x3914ef['removeMarkers'](),_0x3914ef=_0x4d03f8):_0x4d03f8['removeMarkers']():_0x3914ef=_0x4d03f8;}else{const _0x57abd1=_0x4e20a0['getIntersection'](_0x22d16c);this['_cutOutSuggestionMarker'](_0x4d03f8,_0x57abd1);}}const _0x46cf74=this['editor']['plugins']['get']('Users')['me'],_0x36b860=_0x4295c7(),_0xca4489=_0x46cf74['id'];if(_0x3914ef)return this['_setSuggestionRange'](_0x3914ef,this['_model']['createRange'](_0x274f7e,_0x5c715f)),_0x3914ef;{const _0x1843ac=this['_setSuggestionData']({'id':_0x36b860,'type':'formatBlock:'+_0x3f323b,'data':_0x2f6dc7,'createdAt':new Date(),'authorId':_0xca4489,'attributes':_0x2db674});return this['_addSuggestionMarker']('formatBlock:'+_0x3f323b,_0x36b860,_0xca4489,this['_model']['createRange'](_0x274f7e,_0x5c715f)),_0x1843ac;}}['markMultiRangeBlockFormat'](_0x45aac,_0x46bac5,_0x508ed6=[],_0x1fa6a5=null,_0x116378={}){_0x46bac5['formatGroupId']||(_0x46bac5['formatGroupId']=_0x46bac5['commandName']);const _0x1d8990=_0x45aac[0x0];_0x46bac5['multipleBlocks']=_0x1d8990['is']('range'),_0x1fa6a5=_0x1fa6a5||Gt(_0x46bac5);const _0x51b144=_0x508ed6['map'](_0x42c002=>Lt(_0x42c002,this['_model'])),_0x1511f8=_0x1d8990['is']('range')?_0x45aac:_0x45aac['map'](_0xf69852=>Lt(_0xf69852,this['_model']));if('never'===this['_trackFormatChanges']){const _0x54201b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa6a5,'accept');return this['forceDefaultExecution'](()=>_0x54201b(_0x1511f8,_0x46bac5,_0x116378)),null;}_0x51b144['push'](..._0x1511f8);let _0x5900bc=!0x0;for(const _0x36ebbf of _0x51b144)if(!this['_rangeIsInLocalUserInsertion'](_0x36ebbf)){_0x5900bc=!0x1;break;}if(_0x5900bc&&'always'!==this['_trackFormatChanges']){const _0x20390b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa6a5,'accept');return this['forceDefaultExecution'](()=>_0x20390b(_0x1511f8,_0x46bac5,_0x116378)),null;}const _0x23b95e=this['editor']['plugins']['get']('Users')['me'];for(const _0x104b55 of this['getSuggestions']()){if(_0x104b55['author']['id']!=_0x23b95e['id'])continue;if('formatBlock'!=_0x104b55['type']||_0x104b55['data']['formatGroupId']!=_0x46bac5['formatGroupId'])continue;if(!qt(_0x104b55,_0x116378))continue;const _0x151a8e=_0x104b55['subType']==_0x1fa6a5;for(let _0x431fd9=0x0;_0x431fd9<_0x1511f8['length'];_0x431fd9++){const _0x5ad384=_0x1511f8[_0x431fd9];for(const _0x7a92ae of _0x104b55['getMarkers']()){const _0x133c21=_0x7a92ae['getRange']();if(_0x5ad384['isEqual'](_0x133c21)){_0x151a8e?(_0x1511f8['splice'](_0x431fd9,0x1),_0x431fd9--):_0x104b55['removeMarker'](_0x7a92ae['name']);break;}}}}if(0x0==_0x1511f8['length'])return null;const _0x1dd5ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa6a5,'join');for(const _0x4328c3 of this['getSuggestions']())if(_0x4328c3['author']['id']==_0x23b95e['id']&&'formatBlock'==_0x4328c3['type']&&_0x4328c3['data']['formatGroupId']==_0x46bac5['formatGroupId']&&_0x4328c3['subType']==_0x1fa6a5&&qt(_0x4328c3,_0x116378)&&(_0x1dd5ac(_0x4328c3['getRanges'](),_0x1511f8)||_0x1dd5ac(_0x1511f8,_0x4328c3['getRanges']()))){for(const _0x2eb696 of _0x1511f8)_0x4328c3['addRange'](_0x2eb696);return _0x4328c3;}const _0xbd66ca=_0x4295c7(),_0x512317=_0x23b95e['id'],_0x2515a7='formatBlock:'+_0x1fa6a5,_0x129a7e=this['_setSuggestionData']({'id':_0xbd66ca,'type':_0x2515a7,'data':_0x46bac5,'createdAt':new Date(),'authorId':_0x512317,'attributes':_0x116378});for(const _0x3c3036 of _0x1511f8)this['_addSuggestionMarker'](_0x2515a7,_0xbd66ca,_0x512317,_0x3c3036,u['getMultiRangeId']());return _0x129a7e;}['markDeletion'](_0x2978a0,_0x9585f=null,_0x2ecaa9={}){if(_0x2978a0['isCollapsed'])return null;const _0x216fd2=this['editor']['plugins']['get']('Users')['me'],_0xf27874=new _0x438751(_0x2978a0['start'],_0x2978a0['end']);for(const {suggestion:_0x2a7cd4,meta:_0x455356}of this['_findSuggestions'](_0xf27874,'insertion'))if(_0x455356['isOwn']&&!_0x455356['isNextTo']){if(_0x2a7cd4['isMultiRange']){const _0x44d80e=_0x2a7cd4['getRanges']()['filter'](_0x44dd4c=>'$graveyard'!=_0x44dd4c['root']['rootName']);_0x44d80e['every'](_0x250fcb=>_0xf27874['containsRange'](_0x250fcb,!0x0))&&_0x2a7cd4['discard']();if(_0x44d80e['some'](_0x416f2e=>_0x416f2e['containsRange'](_0xf27874,!0x0))){const _0x26b6a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x9585f,'accept');return this['forceDefaultExecution'](()=>_0x26b6a2([_0xf27874],null,_0x2ecaa9)),null;}}else{const _0x8c66d3=_0xf27874['getIntersection'](_0x2a7cd4['getFirstRange']());null!==_0x8c66d3&&_0x2a7cd4['_onDiscard']([_0x8c66d3],null,_0x2ecaa9);}}if(_0xf27874['detach'](),_0xf27874['isCollapsed']||'$graveyard'==_0xf27874['root']['rootName'])return null;let _0x4e4f81=null,_0x881c63=_0xf27874['start'],_0x4d5356=_0xf27874['end'];const _0x4b28bb=this['_findSuggestions'](_0xf27874,'deletion');for(const {suggestion:_0x6d498f,meta:_0x1311a9}of _0x4b28bb){const _0x2f3591=this['_model']['createRange'](_0x881c63,_0x4d5356);if(_0x1311a9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1311a9['containsRangeInObject']&&!_0x1311a9['isInsideObject'])){if(_0x6d498f['isMultiRange']){if(!qt(_0x6d498f,_0x2ecaa9))continue;let _0x313ab9=!0x0;for(const _0x259e75 of _0x6d498f['getRanges']()){if(_0x259e75['containsRange'](_0x2f3591,!0x0))return _0x6d498f;_0x2f3591['containsRange'](_0x259e75)||(_0x313ab9=!0x1);}_0x313ab9&&_0x6d498f['discard']();}else{const _0x55d8f7=_0x6d498f['getFirstRange']();if(_0x55d8f7['containsRange'](_0x2f3591,!0x0))return _0x6d498f;if(!qt(_0x6d498f,_0x2ecaa9)){_0x2f3591['containsRange'](_0x55d8f7)?_0x6d498f['removeMarkers']():_0x55d8f7['containsPosition'](_0x881c63)?_0x881c63=_0x55d8f7['end']:_0x55d8f7['containsPosition'](_0x4d5356)&&(_0x4d5356=_0x55d8f7['start']);continue;}_0x881c63=_0x881c63['isBefore'](_0x55d8f7['start'])?_0x881c63:_0x55d8f7['start'],_0x4d5356=_0x4d5356['isAfter'](_0x55d8f7['end'])?_0x4d5356:_0x55d8f7['end'],_0x2ecaa9=Object['assign']({},_0x6d498f['attributes']),_0x4e4f81?_0x55d8f7['start']['isBefore'](_0x4e4f81['getFirstRange']()['start'])?(_0x4e4f81['removeMarkers'](),_0x4e4f81=_0x6d498f):_0x6d498f['removeMarkers']():_0x4e4f81=_0x6d498f;}}}if(_0x4e4f81)return this['_setSuggestionRange'](_0x4e4f81,this['_model']['createRange'](_0x881c63,_0x4d5356)),_0x4e4f81;{const _0x57e064=_0x4295c7(),_0x227575=this['_model']['createRange'](_0x881c63,_0x4d5356),_0x32050f=_0x216fd2['id'],_0x325de8=_0x9585f?'deletion:'+_0x9585f:'deletion',_0x232557=this['_setSuggestionData']({'id':_0x57e064,'type':_0x325de8,'createdAt':new Date(),'authorId':_0x32050f,'attributes':_0x2ecaa9});return this['_addSuggestionMarker'](_0x325de8,_0x57e064,_0x32050f,_0x227575),_0x232557;}}['markMultiRangeDeletion'](_0x34c05f,_0x48955d='multi',_0x47abe6={}){const _0x11014e=this['editor']['plugins']['get']('Users')['me'],_0x1cf16a=_0x34c05f['map'](_0x3944a7=>new _0x438751(_0x3944a7['start'],_0x3944a7['end'])),_0x5712c7=new Set();for(const {suggestion:_0x31dd16,meta:_0x2c9969}of this['_findSuggestions'](_0x1cf16a,'insertion'))_0x2c9969['isOwn']&&!_0x2c9969['isNextTo']&&_0x5712c7['add'](_0x31dd16);for(const _0x55605b of _0x5712c7)if(_0x55605b['isMultiRange']){const _0x553888=_0x55605b['getRanges']();(!_0x55605b['attributes']||!_0x55605b['attributes']['skipNestingCheck'])&&(_0x553888['every'](_0x1335f6=>_0x1cf16a['some'](_0x3d2ebb=>_0x3d2ebb['containsRange'](_0x1335f6,!0x0)))&&_0x55605b['discard']());if(_0x1cf16a['every'](_0x8b71b6=>_0x553888['some'](_0xd56c22=>_0xd56c22['containsRange'](_0x8b71b6,!0x0)))){const _0x205b81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48955d,'accept');return this['forceDefaultExecution'](()=>_0x205b81(_0x34c05f,null,_0x47abe6)),null;}}else{const _0x3a725e=_0x55605b['getFirstRange']();_0x1cf16a['some'](_0x20c395=>_0x20c395['containsRange'](_0x3a725e,!0x0))&&_0x55605b['discard']();if(_0x1cf16a['every'](_0x2bed0f=>_0x3a725e['containsRange'](_0x2bed0f,!0x0))){const _0x38d372=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48955d,'accept');return this['forceDefaultExecution'](()=>_0x38d372(_0x1cf16a,null,_0x47abe6)),null;}}const _0x4a05e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48955d,'join');let _0x305380=null;for(const _0x4a7ec1 of this['getSuggestions']())if(_0x4a7ec1['author']['id']==_0x11014e['id']&&_0x4a7ec1['isInContent']&&'deletion'==_0x4a7ec1['type']&&_0x4a7ec1['subType']==_0x48955d&&qt(_0x4a7ec1,_0x47abe6)&&(_0x4a05e1(_0x4a7ec1['getRanges'](),_0x1cf16a)||_0x4a05e1(_0x1cf16a,_0x4a7ec1['getRanges']()))){if(_0x305380){if(_0x4a7ec1['commentThread']&&_0x4a7ec1['commentThread']['length'])continue;for(const _0xcc5033 of _0x4a7ec1['getRanges']())_0x305380['isIntersectingWithRange'](_0xcc5033)||_0x305380['addRange'](_0xcc5033);_0x4a7ec1['removeMarkers']();}else{_0x305380=_0x4a7ec1;for(const _0x51fc95 of _0x1cf16a)_0x4a7ec1['isIntersectingWithRange'](_0x51fc95)||_0x4a7ec1['addRange'](_0x51fc95);}}if(_0x305380)return _0x305380;_0x5712c7['clear']();for(const {suggestion:_0x519672,meta:_0x4952a6}of this['_findSuggestions'](_0x1cf16a,'deletion'))_0x4952a6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4952a6['containsRangeInObject']&&!_0x4952a6['isInsideObject'])&&qt(_0x519672,_0x47abe6)&&_0x5712c7['add'](_0x519672);for(const _0x4d8430 of _0x5712c7){const _0x278d62=_0x4d8430['getRanges']();if(!_0x47abe6||!_0x47abe6['skipNestingCheck']){if(_0x1cf16a['every'](_0x226222=>_0x278d62['some'](_0x364e27=>_0x364e27['containsRange'](_0x226222,!0x0))))return _0x4d8430;}(!_0x4d8430['attributes']||!_0x4d8430['attributes']['skipNestingCheck'])&&(_0x278d62['every'](_0x38e33f=>_0x1cf16a['some'](_0x77f2c0=>_0x77f2c0['containsRange'](_0x38e33f,!0x0)))&&_0x4d8430['discard']());}const _0x589f59=_0x4295c7(),_0x7047e5=_0x11014e['id'],_0x1023e0='deletion:'+_0x48955d,_0x5303db=this['_setSuggestionData']({'id':_0x589f59,'type':_0x1023e0,'createdAt':new Date(),'authorId':_0x7047e5,'attributes':_0x47abe6});for(const _0x4cc84d of _0x1cf16a)_0x4cc84d['detach'](),_0x4cc84d['isCollapsed']||'$graveyard'==_0x4cc84d['root']['rootName']||this['_addSuggestionMarker'](_0x1023e0,_0x589f59,_0x7047e5,_0x4cc84d,u['getMultiRangeId']());return _0x5303db;}['markAttributeChange'](_0x2e5a62,_0x1b680b,_0xd65137,_0xee8281,_0x2f0ac7){if(_0x2e5a62['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2377d0=this['editor']['plugins']['get']('Users')['me']['id'],_0x56b415=Array['from'](this['_suggestions']['values']())['filter'](_0x5159d3=>'attribute'==_0x5159d3['type']&&_0x5159d3['data']['key']==_0x1b680b&&_0x5159d3['isIntersectingWithRange'](_0x2e5a62));if('default'===this['_trackFormatChanges']){const _0x406685=this['_findSuggestions'](_0x2e5a62,'insertion')['filter'](({meta:_0x202ee9})=>_0x202ee9['isOwn']&&!_0x202ee9['isInsideObject']&&!_0x202ee9['isNextTo'])['map'](({suggestion:_0x446dba})=>_0x446dba);_0x56b415['unshift'](..._0x406685);}const _0x2e547c=new Map([[_0x2e5a62,_0xd65137]]);for(const _0x10a707 of _0x56b415){const _0x30d8be='attribute'==_0x10a707['type']?_0x10a707['data']['oldValue']:void 0x0,_0x443169=_0x10a707['getFirstRange'](),_0x1757df=Array['from'](_0x2e547c['keys']())['find'](_0x4c2764=>_0x4c2764['isIntersecting'](_0x443169));if(!_0x1757df)continue;const _0x1e2637=_0x1757df['getDifference'](_0x443169);this['_isBlockAttribute'](_0x1b680b)&&'insertion'==_0x10a707['type']&&0x0!=_0x1e2637['length']||(_0x2e547c['delete'](_0x1757df),_0x1e2637['forEach'](_0xdc8f95=>{_0x2e547c['set'](_0xdc8f95,_0xd65137);}),'insertion'!=_0x10a707['type']&&_0x30d8be!=_0xee8281&&_0x2e547c['set'](_0x1757df['getIntersection'](_0x443169),_0x30d8be));}const _0x4b0da2=[];for(const [_0x40e23d,_0x3b59fd]of _0x2e547c){const _0x26f1ee=_0x4295c7(),_0x4f1fe9={'key':_0x1b680b,'oldValue':_0x3b59fd,'newValue':_0xee8281};_0x1b680b['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':_0x1b680b});const _0x126ad6=('attribute:'+(_0x1b680b+'|'+Gt({'newValue':_0xee8281})))['substring'](0x0,0x3c),_0x3b8013=this['_setSuggestionData']({'id':_0x26f1ee,'type':_0x126ad6,'data':_0x4f1fe9,'createdAt':new Date(),'authorId':_0x2377d0,'attributes':_0x2f0ac7});_0x4b0da2['push'](_0x3b8013),this['_addSuggestionMarker'](_0x126ad6,_0x26f1ee,_0x2377d0,_0x40e23d);}return _0x4b0da2;}['enableDefaultAttributesIntegration'](_0x15094b){this['enableCommand'](_0x15094b,(_0x371cf6,..._0x1b3692)=>{this['_recordAttributeChanges'](()=>{_0x371cf6(..._0x1b3692);});});}['registerBlockAttribute'](_0x591eeb){this['_blockAttributeKeys']['add'](_0x591eeb);}['registerInlineAttribute'](_0x3c5706){this['_inlineAttributeKeys']['add'](_0x3c5706);}['_getAttributeKey'](_0x560b94){return'attribute'==_0x560b94['type']?_0x560b94['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1a241f,_0x425581){const _0x452f5d=_0x1a241f['getFirstMarker']();this['_model']['change'](_0x456b03=>{_0x456b03['updateMarker'](_0x452f5d,{'range':_0x425581});});}['_addThreadToSuggestion'](_0xbd28c2){const _0x54d627=_0xbd28c2['id'],_0x446499=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x54d627)||this['_commentsRepository']['addCommentThread']({'channelId':_0x446499,'threadId':_0x54d627,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd07808=this['_commentsRepository']['getCommentThread'](_0x54d627);_0xd07808['unbind']('isRemovable'),_0xd07808['isRemovable']=!0x1,_0xbd28c2['commentThread']=_0xd07808;}['_checkSuggestionCorrectness'](_0x54f142,_0x1e07e1,_0x34222f,_0x5c4e5a){if(_0x54f142['type']!=_0x1e07e1||_0x54f142['subType']!=_0x34222f||_0x54f142['creator']['id']!=_0x5c4e5a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x45bfd6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a6ef0,_0x51bf6c){const _0x3b8536=_0x1a6ef0['getFirstRange']();if(_0x51bf6c['isEqual'](_0x3b8536))_0x1a6ef0['removeMarkers']();else{if(_0x3b8536['containsRange'](_0x51bf6c)){const _0x574c01=this['_model']['createPositionAt'](_0x51bf6c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a6ef0,this['_model']['createRange'](_0x3b8536['start'],_0x574c01));const _0x3849eb=_0x4295c7(),_0x436897=_0x1a6ef0['creator']['id'],_0x48cee7=_0x1a6ef0['type']+':'+_0x1a6ef0['subType'];this['_setSuggestionData']({'id':_0x3849eb,'type':_0x48cee7,'createdAt':new Date(),'authorId':_0x436897,'data':_0x1a6ef0['data'],'attributes':_0x1a6ef0['attributes']});const _0x398723=this['_model']['createPositionAt'](_0x51bf6c['end']['parent'],'after'),_0x437e7b=this['_model']['createRange'](_0x398723,_0x3b8536['end']);this['_addSuggestionMarker'](_0x48cee7,_0x3849eb,_0x436897,_0x437e7b);}else{if(_0x3b8536['containsPosition'](_0x51bf6c['start'])){const _0x4f5a1=this['_model']['createPositionAt'](_0x51bf6c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a6ef0,this['_model']['createRange'](_0x3b8536['start'],_0x4f5a1));}else{const _0x500405=this['_model']['createPositionAt'](_0x51bf6c['end']['parent'],'after');this['_setSuggestionRange'](_0x1a6ef0,this['_model']['createRange'](_0x500405,_0x3b8536['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x594dbd){for(const {suggestion:_0x85ad03,meta:_0x399070}of this['_findSuggestions'](_0x594dbd,'insertion')){if(!_0x399070['isOwn'])continue;const _0x43114b=_0x85ad03['getRanges']();for(const _0x53fa8d of _0x43114b)if(!_0x594dbd['getDifference'](_0x53fa8d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x20aa5d){const _0x1bb0cb=this['editor']['plugins']['get']('Users')['getUser'](_0x20aa5d);if(!_0x1bb0cb)throw new _0x45bfd6('track-changes-user-not-found',this);return _0x1bb0cb;}['_getExternalAuthor'](_0x107cdc){const _0x1e0c69=this['editor']['plugins']['get']('Users'),_0x362d27=_0x71f2e8('external:'+_0x107cdc),_0x41380c=_0x1e0c69['getUser'](_0x362d27);return _0x41380c||_0x1e0c69['addUser']({'id':_0x362d27,'name':_0x107cdc});}['_createSuggestion'](_0x3344ad,_0x1e9d6f,_0x4655c6,_0x4a5904,_0x76c925){const _0x515486=this['_getAuthorFromId'](_0x4a5904),_0x10eff2=this['_suggestionFactory']['buildSuggestion'](_0x3344ad,_0x1e9d6f,_0x4655c6,_0x515486,_0x76c925,_0x17bd0b=>{this['_updateSuggestionData'](_0x4655c6,{'attributes':_0x17bd0b});const _0x363e49=this['getSuggestion'](_0x4655c6);this['_joinWithAdjacentSuggestions'](new Set([_0x363e49])),this['_refreshSuggestionsChain'](new Set([_0x363e49]));});return this['listenTo'](_0x10eff2,'accept',()=>{this['_updateSuggestionData'](_0x4655c6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x10eff2,'discard',()=>{this['_updateSuggestionData'](_0x4655c6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4655c6,_0x10eff2),this['_suggestionState']['set'](_0x10eff2,'notReady'),_0x10eff2;}['_splitMarkerName'](_0x2141ba){const _0x58dfd9=_0x2141ba['split'](':');return{'group':_0x58dfd9[0x0],'type':_0x58dfd9[0x1],'subType':_0x58dfd9['length']>=0x5?_0x58dfd9[0x2]:null,'id':_0x58dfd9['length']<0x5?_0x58dfd9[0x2]:_0x58dfd9[0x3],'authorId':_0x58dfd9['length']<0x5?_0x58dfd9[0x3]:_0x58dfd9[0x4],'markerCount':0x6==_0x58dfd9['length']?_0x58dfd9[0x5]:null};}['_breakSuggestionMarker'](_0x4e87b8,_0x58d301,_0xe44870){const _0x4f55c0=_0x4e87b8['getFirstRange'](),_0x22fe32=_0x4f55c0['start'],_0x588f2e=_0x4f55c0['end'];this['_setSuggestionRange'](_0x4e87b8,this['_model']['createRange'](_0x22fe32,_0x58d301));const _0x23fe9e=_0x4295c7(),_0x5cdcc6=_0x4e87b8['creator']['id'],_0x515d33=_0x4e87b8['type']+(_0x4e87b8['subType']?':'+_0x4e87b8['subType']:'');this['_setSuggestionData']({'id':_0x23fe9e,'type':_0x515d33,'createdAt':new Date(),'authorId':_0x5cdcc6,'originalSuggestionId':_0x4e87b8['id'],'attributes':_0x4e87b8['attributes'],'data':_0x4e87b8['data']});const _0x5f2303=this['_getAttributeKey'](_0x4e87b8);('formatBlock'==_0x4e87b8['type']||_0x5f2303&&this['_isBlockAttribute'](_0x5f2303))&&(_0xe44870=this['_model']['createPositionBefore'](_0xe44870['parent'])),this['_addSuggestionMarker'](_0x515d33,_0x23fe9e,_0x5cdcc6,this['_model']['createRange'](_0xe44870,_0x588f2e));}['_findSuggestions'](_0xcb2460,_0x1d5364=null){const _0x107f9b=[],_0x48c93e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xcb2460)||(_0xcb2460=[_0xcb2460]);for(const _0x4d438b of this['getSuggestions']()){if(!_0x4d438b['isInContent'])continue;if(_0x1d5364&&_0x4d438b['type']!=_0x1d5364)continue;let _0x19f6db=!0x1;for(const _0x3b5fe1 of _0x4d438b['getRanges']()){for(const _0x5a4a7f of _0xcb2460){const _0x3fa737=_0x5a4a7f['start']['isEqual'](_0x3b5fe1['end'])||_0x5a4a7f['end']['isEqual'](_0x3b5fe1['start']);if(_0x3fa737||_0x5a4a7f['getIntersection'](_0x3b5fe1)){const _0x3332f5=_0x5a4a7f['containsRange'](_0x3b5fe1)&&Ot(this['_model']['schema'],_0x3b5fe1['start'],_0x5a4a7f),_0x107ac1=_0x3b5fe1['containsRange'](_0x5a4a7f)&&Ot(this['_model']['schema'],_0x5a4a7f['start'],_0x3b5fe1);_0x107f9b['push']({'suggestion':_0x4d438b,'meta':{'isOwn':_0x48c93e==_0x4d438b['author'],'isNextTo':_0x3fa737,'isInsideObject':_0x3332f5,'containsRangeInObject':_0x107ac1}}),_0x19f6db=!0x0;break;}}if(_0x19f6db)break;}}return _0x107f9b;}['_addSuggestionMarker'](_0x32f592,_0x5e1c26,_0x48d186,_0x225f9f,_0x22ec24){this['_model']['change'](_0x221054=>{let _0x4c24f4='suggestion:'+_0x32f592+':'+_0x5e1c26+':'+_0x48d186;_0x22ec24&&(_0x4c24f4=_0x4c24f4+':'+_0x22ec24),_0x221054['addMarker'](_0x4c24f4,{'range':_0x225f9f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x343104){const _0x42c4fd=_0x343104['previous'],_0x540b38=_0x343104['next'];_0x343104['previous']=null,_0x343104['next']=null,null!=_0x42c4fd&&_0x42c4fd['next']==_0x343104&&(_0x42c4fd['next']=_0x540b38),null!=_0x540b38&&_0x540b38['previous']==_0x343104&&(_0x540b38['previous']=_0x42c4fd),'ready'==this['_suggestionState']['get'](_0x343104)&&(this['_suggestionState']['set'](_0x343104,'removed'),this['fire']('suggestionUnloaded',_0x343104,_0x42c4fd,_0x540b38));}['_setSuggestionData'](_0x191c63){const _0x25f5a3=_0x191c63['id'],_0x20a200=this['addSuggestionData'](_0x191c63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x43f831=this['editor']['plugins']['get']('PendingActions'),_0x4a332c=_0x20a200['hasComments'],_0x384cf7=_0x20a200['subType']?_0x20a200['type']+':'+_0x20a200['subType']:_0x20a200['type'],_0x43748e=this['editor']['locale'],_0x1a138a=_0x43f831['add'](o(_0x43748e,'PENDING_ACTION_SUGGESTION')),_0xffaa8b={'id':_0x25f5a3,'type':_0x384cf7,'hasComments':_0x4a332c,'data':_0x191c63['data']||null,'originalSuggestionId':_0x191c63['originalSuggestionId']||null,'attributes':_0x20a200['attributes']};this['_adapter']['addSuggestion'](_0xffaa8b)['then'](_0x19690a=>{_0x20a200['_saved']=!0x0,_0x43f831['remove'](_0x1a138a),_0x19690a&&_0x19690a['createdAt']&&(this['_suggestions']['get'](_0x25f5a3)['createdAt']=_0x19690a['createdAt']);})['catch'](_0x1bc55b=>{throw _0x557d26('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x20a200['discard']();}),_0x20a200['stopListening'](),this['_suggestions']['delete'](_0x20a200['id']),this['_suggestionState']['delete'](_0x20a200),_0x1bc55b;});}return _0x20a200;}['_isBlockAttribute'](_0x27bc58){return this['_blockAttributeKeys']['has'](_0x27bc58);}['_updateSuggestionData'](_0x1c7af7,_0x494e59){const _0x3139ab=this['editor']['plugins']['get']('PendingActions'),_0x4ed983=this['getSuggestion'](_0x1c7af7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4ed983['_saved']){const _0xcc0846=_0x3139ab['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1c7af7,_0x494e59)['then'](()=>{_0x3139ab['remove'](_0xcc0846);});}else _0x4ed983['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1c7af7,_0x494e59);});}}['_getSuggestionData'](_0x18b95e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x45bfd6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x18b95e);}['_handleNewSuggestionMarker'](_0x2fa998){const {id:_0xb3af3e,type:_0x58dbfd,subType:_0x18387f,authorId:_0xd56794}=this['_splitMarkerName'](_0x2fa998),_0x2d3615=this['_suggestions']['get'](_0xb3af3e)||this['_createSuggestion'](_0x58dbfd,_0x18387f,_0xb3af3e,_0xd56794,{});switch(this['_checkSuggestionCorrectness'](_0x2d3615,_0x58dbfd,_0x18387f,_0xd56794),this['_suggestionState']['get'](_0x2d3615)){case'notReady':this['_getSuggestionData'](_0xb3af3e)['then'](_0x2f3f66=>{let _0x1dbee3=Promise['resolve']();_0x2f3f66['hasComments']&&(_0x1dbee3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xb3af3e})),_0x1dbee3['then'](()=>{this['addSuggestionData'](_0x2f3f66)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d3615,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xb3af3e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d3615,'ready'),this['fire']('suggestionLoaded',_0x2d3615);break;case'ready':this['fire']('suggestionChanged',_0x2d3615);}return _0x2d3615['addMarkerName'](_0x2fa998),_0x2d3615;}['_refreshSuggestionsChain'](_0x3b0e69){const _0x373cc0=Array['from'](_0x3b0e69),_0x2bae73=_0x373cc0['filter'](_0x543867=>'attribute'==_0x543867['type']);this['_refreshAttributeSuggestionsChain'](_0x2bae73);const _0x392699=_0x373cc0['filter'](_0x296eaa=>!_0x296eaa['isMultiRange']&&'attribute'!=_0x296eaa['type']),_0x154751=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ebed5=>!_0x5ebed5['isMultiRange']&&'attribute'!=_0x5ebed5['type']),_0x2dc9e8=_0x154751['filter'](_0x1e71a9=>!_0x3b0e69['has'](_0x1e71a9)),_0x129336=new Map(_0x154751['map'](_0x21f3a0=>[_0x21f3a0,this['_suggestionFactory']['getSuggestionCallback'](_0x21f3a0['type'],_0x21f3a0['subType'],'chain')])),_0x30f26a=new Map(_0x154751['map'](_0x19da97=>[_0x19da97,_0x19da97['getFirstRange']()])),_0x3c4c14=new Set(),_0x4a4505=new Set();for(let _0x3ee30c=0x0;_0x3ee30c<_0x392699['length'];_0x3ee30c++)_0x48c739(_0x392699[_0x3ee30c],_0x392699,_0x3ee30c+0x1);for(let _0x46666f=0x0;_0x46666f<_0x392699['length'];_0x46666f++)_0x48c739(_0x392699[_0x46666f],_0x2dc9e8,0x0);const _0x380ca8=new Set();for(let _0x25cda4=0x0;_0x25cda4<_0x392699['length'];_0x25cda4++){const _0x43fcd1=_0x392699[_0x25cda4];!_0x4a4505['has'](_0x43fcd1)&&_0x43fcd1['previous']&&(_0x380ca8['add'](_0x43fcd1['previous']),_0x43fcd1['previous']['next']===_0x43fcd1&&(_0x43fcd1['previous']['next']=null),_0x43fcd1['previous']=null),!_0x3c4c14['has'](_0x43fcd1)&&_0x43fcd1['next']&&(_0x380ca8['add'](_0x43fcd1['next']),_0x43fcd1['next']['previous']===_0x43fcd1&&(_0x43fcd1['next']['previous']=null),_0x43fcd1['next']=null);}function _0x48c739(_0x420272,_0x2ef81b,_0xbd7578){for(let _0x1d7bca=_0xbd7578;_0x1d7bca<_0x2ef81b['length'];_0x1d7bca++){const _0x1109de=_0x1613a5(_0x420272,_0x2ef81b[_0x1d7bca]);_0x1109de&&(_0x1109de[0x0]['next']=_0x1109de[0x1],_0x1109de[0x1]['previous']=_0x1109de[0x0],_0x3c4c14['add'](_0x1109de[0x0]),_0x4a4505['add'](_0x1109de[0x1]));}}function _0x1613a5(_0x5b6112,_0x4021c3){if(_0x5b6112['author']['id']!==_0x4021c3['author']['id'])return null;const _0x48a8b6=_0x129336['get'](_0x5b6112)(_0x5b6112,_0x4021c3,_0x30f26a['get'](_0x5b6112),_0x30f26a['get'](_0x4021c3));if(!_0x48a8b6)return null;return _0x129336['get'](_0x4021c3)(_0x5b6112,_0x4021c3,_0x30f26a['get'](_0x5b6112),_0x30f26a['get'](_0x4021c3))?_0x48a8b6[0x1]['commentThread']&&_0x48a8b6[0x1]['commentThread']['length']?null:_0x48a8b6:null;}_0x380ca8['size']&&this['_refreshSuggestionsChain'](_0x380ca8);}['_refreshAttributeSuggestionsChain'](_0x45d19b){if(0x0==_0x45d19b['length'])return;const _0x3f6f3d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xae99ee=>'attribute'==_0xae99ee['type']&&_0xae99ee['_isDataLoaded']),_0x26f596=[],_0x224dab=new Map();for(const _0x4c5bcd of _0x3f6f3d){const _0x1dcc74=_0x71f2e8(_0x4c5bcd['attributes']);_0x224dab['has'](_0x1dcc74)||(_0x224dab['set'](_0x1dcc74,_0x26f596['length']),_0x26f596['push']([]));const _0x466ed5=_0x224dab['get'](_0x1dcc74);_0x26f596[_0x466ed5]['push'](_0x4c5bcd);}!(function(){_0x26f596['sort']((_0x316102,_0x440ed8)=>{const _0xaec4d9=_0x316102[0x0]['createdAt'],_0x489abc=_0x440ed8[0x0]['createdAt'];return _0xaec4d9==_0x489abc?_0x316102[0x0]['attributes']['groupId']<_0x440ed8[0x0]['attributes']['groupId']?-0x1:0x1:_0xaec4d9<_0x489abc?-0x1:0x1;});for(const _0x1d40bf of _0x26f596)_0x1d40bf['sort']((_0x295e7c,_0x258ddc)=>_0x295e7c['id']<_0x258ddc['id']?-0x1:0x1);}());for(let _0x4247ac=0x0;_0x4247ac<_0x26f596['length'];_0x4247ac++){if(0x0==_0x26f596[_0x4247ac]['length'])continue;const _0xbf85e1=[];for(let _0x2b01d0=_0x4247ac+0x1;_0x2b01d0<_0x26f596['length'];_0x2b01d0++)0x0!=_0x26f596[_0x2b01d0]['length']&&_0x5a022c(_0x26f596[_0x4247ac],_0x26f596[_0x2b01d0])&&_0xbf85e1['push'](_0x2b01d0);for(const _0x304aea of _0xbf85e1)_0x26f596[_0x4247ac]=_0x26f596[_0x4247ac]['concat'](_0x26f596[_0x304aea]),_0x26f596[_0x304aea]=[];}for(const _0x1056e5 of _0x26f596)for(let _0x5873f4=0x0;_0x5873f4<_0x1056e5['length'];_0x5873f4++){const _0x6a2966=_0x1056e5[_0x5873f4+0x1]||null;_0x1056e5[_0x5873f4]['next']!==_0x6a2966&&(_0x1056e5[_0x5873f4]['next']=_0x6a2966);}for(const _0x17162a of _0x26f596)for(let _0x56a1b3=0x0;_0x56a1b3<_0x17162a['length'];_0x56a1b3++){const _0x1e48cc=_0x17162a[_0x56a1b3-0x1]||null;_0x17162a[_0x56a1b3]['previous']!==_0x1e48cc&&(_0x17162a[_0x56a1b3]['previous']=_0x1e48cc);}function _0x5a022c(_0x145bec,_0x359814){if(_0x145bec[0x0]['attributes']['groupId']!==_0x359814[0x0]['attributes']['groupId']&&_0x145bec[0x0]['author']!==_0x359814[0x0]['author'])return!0x1;if(!function(_0x477433,_0xa14ba6){if(!_0x477433['hasComments']&&!_0xa14ba6['hasComments'])return!0x0;if(_0x477433['hasComments']&&_0xa14ba6['hasComments'])return!0x1;if(_0x477433['hasComments']&&_0xa14ba6['createdAt']<_0x477433['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xa14ba6['hasComments']&&_0x477433['createdAt']<_0xa14ba6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x145bec[0x0],_0x359814[0x0]))return!0x1;const _0x443a8b=Tt(_0x145bec[0x0]['attributes'],'groupId'),_0x45ef1c=Tt(_0x359814[0x0]['attributes'],'groupId');if(!_0x4e4081(_0x443a8b,_0x45ef1c))return!0x1;return!!_0x145bec['every'](_0x4b4938=>_0x359814['some'](_0x59986b=>_0x4b4938['getFirstRange']()['isEqual'](_0x59986b['getFirstRange']())))&&_0x359814['every'](_0x1e441d=>_0x145bec['some'](_0x376780=>_0x1e441d['getFirstRange']()['isEqual'](_0x376780['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1f4c92){const _0x10e23a=Array['from'](_0x1f4c92),_0x1d9f31=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5f230a=_0x1d9f31['filter'](_0x254f74=>!_0x1f4c92['has'](_0x254f74)),_0x3e9c49=new Map(_0x10e23a['map'](_0x328a84=>[_0x328a84,this['_suggestionFactory']['getSuggestionCallback'](_0x328a84['type'],_0x328a84['subType'],'join')])),_0x5f0dfe=new Map(_0x1d9f31['map'](_0x23ffce=>[_0x23ffce,_0x23ffce['getRanges']()]));for(let _0x49b397=0x0;_0x49b397<_0x10e23a['length'];_0x49b397++){if(_0x231b0a(this,_0x10e23a[_0x49b397],_0x10e23a,_0x49b397+0x1))return!0x0;}for(let _0x3ec129=0x0;_0x3ec129<_0x10e23a['length'];_0x3ec129++){if(_0x231b0a(this,_0x10e23a[_0x3ec129],_0x5f230a,0x0))return!0x0;}return!0x1;function _0x231b0a(_0x533c9f,_0x1d285d,_0x369527,_0x3bc5b0){for(let _0x1b1418=_0x3bc5b0;_0x1b1418<_0x369527['length'];_0x1b1418++){const _0x63236=_0x369527[_0x1b1418];if(_0x63236['type']!==_0x1d285d['type']||_0x63236['author']['id']!==_0x1d285d['author']['id']||_0x63236['subType']!==_0x1d285d['subType'])continue;if(!Jt(_0x1d285d,_0x63236))continue;if('attribute'==_0x1d285d['type']&&_0x1d285d['data']['oldValue']!=_0x63236['data']['oldValue'])continue;if('attribute'==_0x1d285d['type']&&_0x533c9f['_isBlockAttribute'](_0x1d285d['data']['key']))continue;if('formatBlock'==_0x1d285d['type']){const _0x181df3=_0x533c9f['editor']['model'],_0x1d973a=_0x1d285d['getContainedElement']();if(_0x1d973a&&(_0x181df3['schema']['isObject'](_0x1d973a)||_0x181df3['schema']['isLimit'](_0x1d973a)))continue;}const _0x1cae6a=_0x3e9c49['get'](_0x1d285d),_0xcb8916=_0x5f0dfe['get'](_0x1d285d),_0x3000ae=_0x5f0dfe['get'](_0x63236),_0x3f82b6=_0x1d285d['commentThread']&&_0x1d285d['commentThread']['length'],_0x20222c=_0x63236['commentThread']&&_0x63236['commentThread']['length'];if(!_0x3f82b6&&_0x1cae6a(_0x3000ae,_0xcb8916))return _0x533c9f['_joinSuggestions'](_0x63236,_0x1d285d),_0x5f0dfe['delete'](_0x1d285d),!0x0;if(!_0x20222c&&_0x1cae6a(_0xcb8916,_0x3000ae))return _0x533c9f['_joinSuggestions'](_0x1d285d,_0x63236),_0x5f0dfe['delete'](_0x63236),!0x0;}return!0x1;}}['_joinSuggestions'](_0x48f67e,_0x524491){if(_0x48f67e['isMultiRange']){for(const _0x180b98 of _0x524491['getRanges']())_0x48f67e['addRange'](_0x180b98);}else{const _0x3a3e02=_0x524491['getFirstRange']()['end'];this['_setSuggestionRange'](_0x48f67e,this['_model']['createRange'](_0x48f67e['getFirstRange']()['start'],_0x3a3e02));}_0x524491['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c3432,_0x2a4b01,_0x525f9f){const _0x26b3a5=_0x3c3432['startsWith']('format')||_0x3c3432['startsWith']('attribute')?'FORMATTING':_0x3c3432['toUpperCase']();return o(this['editor']['locale'],_0x2a4b01+'_'+_0x26b3a5+'_SUGGESTION_ANNOUNCEMENT',_0x525f9f);}['_initAriaMarkerChangeAnnouncements'](){const _0x7619a8=this['editor'];if(!_0x7619a8['ui'])return;const {ariaLiveAnnouncer:_0x5d8382}=_0x7619a8['ui'];_0x538209(this['_model'],({left:_0x433a3b,entered:_0x405651})=>{for(const _0x4130f1 of _0x433a3b){const {group:_0x4862de,type:_0x61c35c}=this['_splitMarkerName'](_0x4130f1['name']);if('suggestion'===_0x4862de){_0x5d8382['announce'](this['_getMarkerAnnouncementText'](_0x61c35c,'LEAVE'));break;}}for(const _0x3d6364 of _0x405651){const {group:_0x5d99d8,type:_0x559914}=this['_splitMarkerName'](_0x3d6364['name']);if('suggestion'===_0x5d99d8){_0x5d8382['announce'](this['_getMarkerAnnouncementText'](_0x559914,'ENTER',_0x1d3246(_0x2065a3)));break;}}});}['_processAttributeChanges'](_0x30c212){if(this['_recordAttributeSuggestions'])return!0x1;const _0x414068=this['editor'],_0x3d5f16=_0x414068['model']['document']['differ']['getChanges']();if(0x0==_0x3d5f16['length'])return!0x1;const _0x3559f6=[],_0x4b170c=_0x3d5f16['filter'](_0x1ffa80=>'attribute'==_0x1ffa80['type']),_0x280ec0=_0x3d5f16['filter'](_0x1b5d6f=>'insert'==_0x1b5d6f['type']&&'$text'!=_0x1b5d6f['name']),_0x18a83f=_0x3d5f16['filter'](_0x204f4a=>'remove'==_0x204f4a['type']&&'$text'!=_0x204f4a['name']);for(const _0x15e62a of _0x4b170c)_0x3559f6['push']({'key':_0x15e62a['attributeKey'],'newValue':_0x15e62a['attributeNewValue'],'oldValue':_0x15e62a['attributeOldValue'],'range':Pt(_0x15e62a['range'],_0x414068['model'])});for(const _0x47093e of _0x280ec0){const _0x44fc58=_0x18a83f['find'](_0x32477c=>_0x32477c['position']['isEqual'](_0x47093e['position']));_0x44fc58&&_0x3559f6['push']({'key':m,'newValue':_0x47093e['name'],'oldValue':_0x44fc58['name'],'range':_0x414068['model']['createRangeOn'](_0x47093e['position']['nodeAfter'])});}return 0x0!=_0x3559f6['length']&&this['_reduceExistingSuggestions'](_0x30c212,_0x3559f6);}['_processAttributeSuggestions'](_0x5aae23){let _0x32965a=!0x1;const _0x394216=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5a1a2c=>_0x5a1a2c['data']['newRange']&&_0x5a1a2c['name']['startsWith']('suggestion:attribute:'));for(const _0xbb858c of _0x394216){const {subType:_0x30122a,id:_0x363965}=this['_splitMarkerName'](_0xbb858c['name']),_0xcb2f15=_0x30122a['split']('|')[0x0];for(const _0x646b7c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x646b7c['id']!=_0x363965&&'attribute'==_0x646b7c['type']&&_0x646b7c['data']&&_0x646b7c['data']['key']==_0xcb2f15&&_0x646b7c['getFirstRange']()['isIntersecting'](_0xbb858c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x646b7c,_0xbb858c['data']['newRange'],_0x5aae23),_0x32965a=!0x0);}return _0x32965a;}['_recordAttributeChanges'](_0x36569d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x36569d();}['_isRegisteredAttribute'](_0x475df2){const _0x6b725a=this['_isBlockAttribute'](_0x475df2),_0x18eaa6=this['_inlineAttributeKeys']['has'](_0x475df2);return _0x6b725a||_0x18eaa6;}['_reduceExistingSuggestions'](_0x3d86a8,_0x554fd0){if(0x0==_0x554fd0['length'])return!0x1;let _0x59c9e2=!0x1;for(const _0x200759 of _0x554fd0){const _0x1363e3=this['_findSuggestions'](_0x200759['range'],'attribute')['filter'](_0x230ad7=>!_0x230ad7['meta']['isNextTo'])['map'](_0x4a9f87=>_0x4a9f87['suggestion']),_0x17c4af=_0x71f2e8({'newValue':_0x200759['newValue']});_0x1363e3['filter'](_0x1f2310=>{const [_0x39883d,_0x37bd06]=_0x1f2310['subType']['split']('|');return _0x39883d==_0x200759['key']&&_0x37bd06!=_0x17c4af;})['forEach'](_0x2e53af=>{this['_reduceSuggestionAttributeRange'](_0x2e53af,_0x200759['range'],_0x3d86a8),_0x59c9e2=!0x0;});}return _0x59c9e2;}['_reduceSuggestionAttributeRange'](_0x5643f2,_0x3b449e,_0x3a4e57){const _0xf5dff2=_0x5643f2['getFirstRange']()['getDifference'](_0x3b449e);0x0!==_0xf5dff2['length']?0x1!==_0xf5dff2['length']?this['_breakSuggestionMarker'](_0x5643f2,_0x3b449e['start'],_0x3b449e['end']):this['_setSuggestionRange'](_0x5643f2,_0xf5dff2[0x0]):_0x3a4e57['removeMarker'](_0x5643f2['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x14ee6e){this['_editor']=_0x14ee6e,this['_model']=_0x14ee6e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x186eeb,_0x479856,_0x36130d,_0x11cf40,_0x1fc7c0,_0xf84424){return new u(this['_model'],{'type':_0x186eeb,'subType':_0x479856,'id':_0x36130d,'author':_0x11cf40,'creator':_0x11cf40,'attributes':_0x1fc7c0,'onAttributesChange':_0xf84424,'onAccept':(..._0x1573a8)=>this['getSuggestionCallback'](_0x186eeb,_0x479856,'accept')(..._0x1573a8),'onDiscard':(..._0x59aac1)=>this['getSuggestionCallback'](_0x186eeb,_0x479856,'discard')(..._0x59aac1)});}['registerCustomCallback'](_0x4705b9,_0x237c52,_0x41f95c,_0x259636){const _0x1b0ea9=_0x4705b9+':'+_0x237c52+':'+_0x41f95c;this['_customCallbacks']['set'](_0x1b0ea9,_0x259636);}['getSuggestionCallback'](_0x485980,_0x253fa5,_0x317372){const _0x20ee0a=_0x485980+':'+_0x253fa5+':'+_0x317372;return this['_customCallbacks']['get'](_0x20ee0a)||this['_defaultCallbacks']['get'](_0x485980+':'+_0x317372);}['_registerDefaultCallbacks'](){const _0x178388=()=>!0x1,_0x4c0769=_0x25711c=>{_0x25711c['sort']((_0x44114a,_0x3400bc)=>_0x44114a['start']['isBefore'](_0x3400bc['start'])?0x1:-0x1),this['_model']['change'](_0x5f3fa5=>{for(const _0x30348f of _0x25711c){let _0x1a5a58;_0x1a5a58=_0x30348f['end']['isAtEnd']&&_0x30348f['end']['parent']==_0x30348f['start']['nodeAfter']?_0x5f3fa5['createSelection'](_0x30348f['start']['nodeAfter'],'on'):_0x5f3fa5['createSelection'](_0x30348f),this['_model']['deleteContent'](_0x1a5a58,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53dc46=(_0xe367e6,_0x2f4a5b)=>{_0x2f4a5b&&this['_model']['change'](_0x244596=>{const {commandName:_0x1a5e9e,commandParams:_0x34be86=[]}=_0x2f4a5b,_0x47dbf0=_0xe367e6['map'](_0x569737=>(Vt(_0x569737)&&(_0x569737=this['_model']['createRange'](_0x569737['end'])),_0x569737))['filter'](_0x48c9f1=>'$graveyard'!==_0x48c9f1['root']['rootName']);if(_0x47dbf0['length']<0x1)return;const _0x3b182f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x14cc4d=>_0x438751['fromRange'](_0x14cc4d));_0x244596['setSelection'](_0x47dbf0);for(const _0x2885e9 of this['_editor']['commands']['commands']())_0x2885e9['refresh']();_0x34be86['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a5e9e,..._0x34be86);const _0x559784=_0x3b182f['filter'](_0x3382a5=>'$graveyard'!=_0x3382a5['root']['rootName']);_0x559784['length']>0x0&&_0x244596['setSelection'](_0x559784);for(const _0x516195 of _0x3b182f)_0x516195['detach']();});},_0x2b94a3=(_0x172729,_0x54309c)=>0x1==_0x172729['length']&&0x1==_0x54309c['length']&&_0x172729[0x0]['end']['isEqual'](_0x54309c[0x0]['start']),_0x2fe107=(_0x37ec01,_0x21a83e,_0x20e93a,_0x51e5e3)=>Ht(_0x37ec01,_0x21a83e,_0x20e93a,_0x51e5e3,this['_model'])?[_0x37ec01,_0x21a83e]:Ht(_0x21a83e,_0x37ec01,_0x51e5e3,_0x20e93a,this['_model'])?[_0x21a83e,_0x37ec01]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x178388),this['_defaultCallbacks']['set']('insertion:discard',_0x4c0769),this['_defaultCallbacks']['set']('insertion:join',_0x2b94a3),this['_defaultCallbacks']['set']('insertion:chain',_0x2fe107),this['_defaultCallbacks']['set']('deletion:accept',_0x4c0769),this['_defaultCallbacks']['set']('deletion:discard',_0x178388),this['_defaultCallbacks']['set']('deletion:join',_0x2b94a3),this['_defaultCallbacks']['set']('deletion:chain',_0x2fe107),this['_defaultCallbacks']['set']('formatInline:accept',_0x53dc46),this['_defaultCallbacks']['set']('formatInline:discard',_0x178388),this['_defaultCallbacks']['set']('formatInline:join',_0x2b94a3),this['_defaultCallbacks']['set']('formatInline:chain',_0x178388),this['_defaultCallbacks']['set']('formatBlock:accept',_0x53dc46),this['_defaultCallbacks']['set']('formatBlock:discard',_0x178388),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b94a3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x178388),this['_defaultCallbacks']['set']('attribute:accept',_0x178388),this['_defaultCallbacks']['set']('attribute:discard',(_0x1554f8,_0x1f5dbd)=>{if(!_0x1f5dbd)return;const _0x32b77b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4757a2=>{if(_0x1f5dbd['key']==m)for(const _0x2be42a of _0x1554f8){const _0xc0f8a7=_0x2be42a['start']['nodeAfter'],_0x410b88=_0x1f5dbd['oldValue'];_0x4757a2['rename'](_0xc0f8a7,_0x410b88);}else{if(_0x32b77b['_isBlockAttribute'](_0x1f5dbd['key'])){for(const _0x2f0ffe of _0x1554f8)void 0x0!==_0x1f5dbd['oldValue']?_0x4757a2['setAttribute'](_0x1f5dbd['key'],_0x1f5dbd['oldValue'],_0x2f0ffe['start']['nodeAfter']):_0x4757a2['removeAttribute'](_0x1f5dbd['key'],_0x2f0ffe['start']['nodeAfter']);}else{for(const _0x40af8e of _0x1554f8)_0x1f5dbd['oldValue']?_0x4757a2['setAttribute'](_0x1f5dbd['key'],_0x1f5dbd['oldValue'],_0x40af8e):_0x4757a2['removeAttribute'](_0x1f5dbd['key'],_0x40af8e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b94a3);}}function Ot(_0x4c187e,_0x2af984,_0x371986){for(const _0x82c71b of _0x2af984['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x82c71b['root']==_0x82c71b)return!0x1;if(!_0x371986['containsItem'](_0x82c71b))return!0x1;if(_0x4c187e['isObject'](_0x82c71b)||_0x4c187e['isLimit'](_0x82c71b))return!0x0;}return!0x1;}function Vt(_0x4a5b7e){return _0x4a5b7e['end']['parent']==_0x4a5b7e['start']['nodeAfter']&&_0x4a5b7e['end']['isAtStart'];}function Ut(_0x1892b3,_0x1dd522,_0x132cb4,_0x2bdb67){const _0x563b3c=_0x4b4409=>!_0x4b4409['item']['is']('$textProxy')&&!_0x2bdb67['isObject'](_0x4b4409['item']),_0x3d3674=_0x1892b3['start']['getLastMatchingPosition'](_0x563b3c),_0x15fcb4=_0x1892b3['end']['getLastMatchingPosition'](_0x563b3c,{'direction':'backward'});return(!_0x1892b3['start']['isEqual'](_0x3d3674)||!_0x1892b3['end']['isEqual'](_0x15fcb4))&&(_0x3d3674['isBefore'](_0x15fcb4)?_0x132cb4['updateMarker'](_0x1dd522,{'range':_0x132cb4['createRange'](_0x3d3674,_0x15fcb4)}):_0x132cb4['removeMarker'](_0x1dd522),!0x0);}function Gt(_0xb4315c){return _0x71f2e8(_0xb4315c);}function Ft(_0x4f2d86){const _0x610274=_0x4f2d86['start']['nodeAfter'];return _0x610274&&_0x610274['is']('element');}function Pt(_0x310218,_0x4279ea){return null==_0x310218['end']['nodeBefore']&&_0x310218['end']['parent']==_0x310218['start']['nodeAfter']?Lt(_0x310218['start']['nodeAfter'],_0x4279ea):_0x310218;}function Lt(_0x200ccf,_0x5313b1){const _0x40bcfd=_0x5313b1['schema']['isObject'](_0x200ccf)||_0x5313b1['schema']['isSelectable'](_0x200ccf);return _0x5313b1['createRange'](_0x5313b1['createPositionAt'](_0x200ccf,'before'),_0x40bcfd?_0x5313b1['createPositionAfter'](_0x200ccf):_0x5313b1['createPositionAt'](_0x200ccf,'end'));}function Ht(_0x2f9f15,_0x2d0cbb,_0x1e393a,_0x357684,_0x11e9c7){if(_0x2f9f15['next'])return!0x1;if(!Jt(_0x2f9f15,_0x2d0cbb))return!0x1;if(_0x1e393a['end']['isEqual'](_0x357684['start']))return!0x0;if(_0x2f9f15['type']!=_0x2d0cbb['type'])return!0x1;if(!_0x1e393a['end']['isTouching'](_0x357684['start']))return!0x1;const _0x10b706=_0x11e9c7['createRange'](_0x1e393a['end'],_0x357684['start'])['getWalker']();for(const _0x19f2b9 of _0x10b706)if(['elementStart','elementEnd']['includes'](_0x19f2b9['type'])&&_0x11e9c7['schema']['isLimit'](_0x19f2b9['item']))return!0x1;return!0x0;}function Jt(_0x10fa06,_0x1f4b5a){if(!_0x10fa06['_isDataLoaded']||!_0x1f4b5a['_isDataLoaded'])return!0x1;const _0x50a2ff=new Set(Object['keys'](_0x10fa06['attributes'])),_0x33da77=new Set(Object['keys'](_0x1f4b5a['attributes']));if(_0x50a2ff['delete']('groupId'),_0x33da77['delete']('groupId'),0x0==_0x50a2ff['size']&&0x0==_0x33da77['size'])return!0x0;if(_0x50a2ff['size']!=_0x33da77['size'])return!0x1;const _0x4cef3d={..._0x10fa06['attributes']},_0x435dd8={..._0x1f4b5a['attributes']};return delete _0x4cef3d['groupId'],delete _0x435dd8['groupId'],JSON['stringify'](_0x4cef3d)==JSON['stringify'](_0x435dd8);}function qt(_0x20b985,_0x21bb60){const _0x3e49fc=zt(_0x20b985['attributes']),_0x3f733c=zt(_0x21bb60);if(!_0x20b985['_isDataLoaded'])return!0x1;for(const _0x137637 of Object['keys'](_0x3f733c))if(!_0x4e4081(_0x3e49fc[_0x137637],_0x3f733c[_0x137637]))return!0x1;return!0x0;}function zt(_0x166c85){const _0x2b4a01=Object['assign']({},_0x166c85);return delete _0x2b4a01['skipNestingCheck'],delete _0x2b4a01['tablePasteChainId'],_0x2b4a01;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x253a25(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4c2ce6,_0x1d3b98,_0x480a4b,_0x5c98cb){super(),this['model']=_0x1d3b98,this['view']=_0x480a4b,this['commentThreadController']=_0x5c98cb,this['_editor']=_0x4c2ce6,this['_acceptCommand']=_0x4c2ce6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c2ce6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xefe4bc,_0x4f5afb)=>_0xefe4bc||_0x4f5afb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2b46e4=>_0x2b46e4&&this['_editor']['model']['canEditAt'](_0x1d3b98['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x44cd46=>_0x44cd46&&this['_editor']['model']['canEditAt'](_0x1d3b98['getRanges']())),this['_pendingAction']=null,_0x480a4b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x480a4b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x480a4b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x480a4b,'change:isDirty',()=>{_0x480a4b['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 _0x3a75d7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3a75d7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x29bbcd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x6a07a6,_0x26ef49,_0x305c17,_0x2cdec9){super(_0x6a07a6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x449c46(_0x6a07a6,o(_0x6a07a6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x26ef49['authoredAt']),this['bind']('authoredAt')['to'](_0x26ef49),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',_0x26ef49,'authoredAt',this,'descriptionParts',(_0x56afc8,_0x3b1b23,_0x1dd543)=>{const _0x2fa207=_0x1dd543['map'](_0x319303=>ls(_0x319303['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56afc8-0x1,_0x26ef49['author']['name'],_0x3b1b23?_0x2cdec9['formatDateTime'](_0x3b1b23):'',new DOMParser()['parseFromString'](_0x2fa207,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1726a7(),this['focusTracker']=new _0x14cc5e(),this['keystrokes']=new _0x254394(),this['focusCycler']=new _0x47ee88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5bfd24=>_0x5bfd24['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x26ef49,this['_localUser']=_0x305c17,this['_config']=_0x2cdec9,_0x2cdec9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e5c89(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x300769}=this['_config'];this['commentsListView']=new _0x300769(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',_0x5813a8=>_0x5813a8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2b1396,_0x26d6f3)=>_0x2b1396||!!_0x26d6f3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3930ac}=this['_config'],_0x14404d=new _0x3930ac(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x18b38b=_0x14404d['commentInputView'];return _0x14404d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x18b38b,'value',(_0x238023,_0x28f9b7,_0x3c639a)=>!!_0x3c639a||_0x238023&&!_0x28f9b7),_0x18b38b['on']('submit',(_0x464cbd,_0x457dbb)=>{this['fire']('addComment',_0x457dbb),_0x18b38b['editor']['setData']('');}),_0x18b38b['on']('cancel',()=>this['focus']()),_0x18b38b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x14404d;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4b0268,_0x2ca4d6,_0x23aa9a,_0x47a0e3){super(_0x4b0268,_0x2ca4d6,_0x23aa9a,_0x47a0e3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x18de05=>_0x18de05&&_0x18de05[0x0]?_0x18de05[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x153c44,_0xfbf149)=>{let _0x56840c='';for(const _0x11458f of _0x153c44)_0x56840c+='<p>'+ls(_0x11458f['content'],_0x11458f['color'])+'</p>';return _0xfbf149?_0x56840c:_0x25d42b(_0x56840c,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4b0268,'Accept\x20suggestion'),_0x460f5a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4b0268,'Discard\x20suggestion'),_0x460f5a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1bcdca(_0x4b0268,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x265831=this['bindTemplate'],_0x18175e=[{'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':_0x265831['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x265831['to']('authoredAt',_0x5ca8f2=>this['_config']['formatDateTime'](_0x5ca8f2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x18175e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1fde43={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x265831['if']('isActive','ck-suggestion-wrapper--active'),_0x265831['to']('type',_0x466a7e=>'ck-suggestion-'+_0x466a7e),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':_0x265831['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x18175e},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1fde43['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1fde43;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x241de3,_0x2d8064,_0x295512)=>{this['_descriptionElement']['innerHTML']=_0x295512;});}['_createButton'](_0x4b7daa,_0x5b8cd0,_0x19b034,_0x4cc176,_0xb8ee20){const _0x2615f4=new _0x1c59ad(this['locale']);return _0x2615f4['set']({'label':_0x4b7daa,'icon':_0x5b8cd0,'tooltip':!0x0,'tooltipPosition':_0xb8ee20}),_0x2615f4['extendTemplate']({'attributes':{'class':_0x19b034}}),_0x2615f4['on']('execute',()=>{this['fire'](_0x4cc176,this['_model']['id']);}),_0x2615f4;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}var ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x592a9e{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x35bf8f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x32d8d5){super(_0x32d8d5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xe20da1=this['editor']['config'];_0xe20da1['define']('trackChanges.SuggestionThreadView',re),_0xe20da1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xe20da1['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x393d1f,_0x2b1e39){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x204925,_0x50cf1d]of this['_handleControllerBuffer']){const _0x3e6e19=this['_suggestionToController']['has'](_0x204925);_0x3e6e19||_0x50cf1d?_0x3e6e19&&_0x50cf1d&&this['_destroyController'](_0x204925):this['_initializeController'](_0x204925);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x393d1f,_0x2b1e39);}['init'](){const _0x1c0834=this['editor'],_0x8f0558=_0x1c0834['plugins']['get']('TrackChangesEditing'),_0x5e7ce5=_0x1c0834['plugins']['get']('Annotations'),_0x8d4bfc=_0x1c0834['plugins']['get']('EditorAnnotations'),_0x36ac82=_0x1c0834['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8d4bfc['addSourceCollector'](()=>{const _0x1a3b38=[];for(const [_0x28789b,_0x2353b1]of Array['from'](this['_suggestionToController'])){const _0x14cccc=_0x28789b['getAllAdjacentSuggestions'](),_0x314ff4=[];for(const _0x226770 of _0x14cccc){if(!_0x226770['isInContent'])continue;if(_0x226770['isMultiRange']){_0x314ff4['push'](..._0x226770['getRanges']());continue;}const _0x229680=_0x226770['getFirstRange']();if(_0x314ff4['length']>0x0){const _0x138f97=_0x314ff4[0x0]['getJoined'](_0x229680);if(_0x138f97){_0x314ff4[0x0]=_0x138f97;continue;}}_0x314ff4['push'](_0x229680);}_0x1a3b38['push']([_0x2353b1['view'],_0x314ff4]);}return _0x1a3b38;}),this['listenTo'](_0x8f0558,'suggestionLoaded',(_0x9257b,_0x211f26)=>{this['listenTo'](_0x211f26,'change:previous',(_0x37994e,_0x51ed7f,_0x4f8ed8,_0x6f80b3)=>{_0x211f26['isInContent']&&(null==_0x4f8ed8?(this['_updateController'](_0x6f80b3['head']),this['_handleSuggestionControllerDelayed'](_0x211f26,!0x1)):(this['_updateController'](_0x4f8ed8['head']),null==_0x6f80b3&&this['_handleSuggestionControllerDelayed'](_0x211f26,!0x0)));}),null!==_0x211f26['previous']?this['_updateController'](_0x211f26['head']):this['_handleSuggestionControllerDelayed'](_0x211f26,!0x1);}),this['listenTo'](_0x8f0558,'suggestionUnloaded',(_0xb58259,_0x388efd,_0x27320e)=>{this['stopListening'](_0x388efd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x388efd),this['_suggestionToController']['has'](_0x388efd)&&this['_destroyController'](_0x388efd),_0x27320e&&this['_updateController'](_0x27320e['head']);}),this['listenTo'](_0x8f0558,'suggestionChanged',(_0x2efe23,_0x585d6f)=>{this['_updateController'](_0x585d6f);}),this['listenTo'](_0x5e7ce5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x36ac82,'addComment',(_0x4f7ac1,{threadId:_0x66c387,isFromAdapter:_0x52a8e9})=>{if(_0x52a8e9||!_0x8f0558['hasSuggestion'](_0x66c387))return;const _0x5c50b9=_0x8f0558['getSuggestion'](_0x66c387);this['_suggestionToController']['get'](_0x5c50b9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xc2bcbe=this['editor']['plugins']['get']('Annotations'),_0xb8fccd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1215a4=Array['from'](_0xc2bcbe['activeAnnotations'],_0x53e2f1=>_0x53e2f1['innerView'])['filter'](_0x258e54=>this['_viewToController']['has'](_0x258e54)),_0x330e9b=[];for(const _0x8c507 of _0x1215a4){const _0x471f63=this['_viewToController']['get'](_0x8c507)['model']['getAllAdjacentSuggestions']();_0x330e9b['push'](..._0x471f63['reduce']((_0x4921c1,_0x2beff7)=>[..._0x4921c1,..._0x2beff7['getMarkerNames']()],[]));}_0xb8fccd['activeMarkers']=_0x330e9b;}['_addUIComponentsToFactory'](){const _0xfc1b7e=this['editor'],_0x1bf211=_0xfc1b7e['locale'],_0x4d3a04=o(_0x1bf211,'Track\x20changes'),_0x4a7d7d=new Wt([{'type':'switchbutton','model':new _0x2c885e({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d3a04,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2c885e({'withText':!0x0,'label':o(_0x1bf211,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c885e({'withText':!0x0,'label':o(_0x1bf211,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c885e({'withText':!0x0,'label':o(_0x1bf211,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c885e({'withText':!0x0,'label':o(_0x1bf211,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3cb162 of _0x4a7d7d)if(he(_0x3cb162)){const _0x1f2922=_0xfc1b7e['commands']['get'](_0x3cb162['model']['commandName']);_0x3cb162['model']['bind']('isOn','isEnabled')['to'](_0x1f2922,'value','isEnabled');}_0xfc1b7e['ui']['componentFactory']['add']('trackChanges',_0xf94cf8=>this['_createToolbarButton'](_0xf94cf8,_0x4a7d7d,_0x4d3a04)),_0xfc1b7e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x48b871=>this['_createMenuBarMenu'](_0x48b871,_0x4a7d7d,_0x4d3a04));}['_createToolbarButton'](_0x21802d,_0x2ac87d,_0x2c3183){const _0x5bd468=Qt(_0x21802d,_0x14d4a3),_0x2008bc=this['editor']['commands']['get']('trackChanges');_0x5bd468['buttonView']['set']({'tooltip':_0x2c3183,'label':_0x2c3183,'icon':ce}),_0x5bd468['buttonView']['bind']('isOn')['to'](_0x2008bc,'value'),_0x5bd468['buttonView']['on']('execute',()=>{_0x2008bc['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x5bd468,_0x2ac87d,{'role':'menu'});const _0xa061ac=[];for(const _0x48fd63 of _0x2ac87d)he(_0x48fd63)&&_0xa061ac['push'](this['editor']['commands']['get'](_0x48fd63['model']['commandName']));const _0x2b11a4=_0x5bd468['buttonView'];return _0x2b11a4['actionView']['unbind']('isEnabled'),_0x2b11a4['arrowView']['unbind']('isEnabled'),_0x2b11a4['actionView']['bind']('isEnabled')['to'](_0x2008bc,'isEnabled'),_0x2b11a4['arrowView']['bind']('isEnabled')['toMany'](_0xa061ac,'isEnabled',(..._0x25319b)=>_0x25319b['some'](_0x31492d=>_0x31492d)),_0x5bd468['on']('execute',_0x382e51=>{this['editor']['execute'](_0x382e51['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bd468;}['_createMenuBarMenu'](_0x1c4b07,_0x53856a,_0x57b1ee){const _0x521eff=new Yt(_0x1c4b07),_0x1f71d7=this['editor']['commands']['get']('trackChanges');_0x521eff['buttonView']['set']({'label':_0x57b1ee,'icon':ce});const _0x9a54e7=new Zt(_0x1c4b07);for(const _0x5c38c7 of _0x53856a){if('separator'==_0x5c38c7['type']){_0x9a54e7['items']['add'](new Xt(_0x1c4b07));continue;}const _0x18260e=new te(_0x1c4b07,_0x521eff),_0x506f89=new _0x195937(_0x1c4b07),_0x1b7178=_0x5c38c7['model'];_0x506f89['bind'](...Object['keys'](_0x1b7178))['to'](_0x1b7178),_0x506f89['delegate']('execute')['to'](_0x521eff),_0x506f89['on']('execute',()=>{this['editor']['execute'](_0x1b7178['commandName']),this['editor']['editing']['view']['focus']();}),_0x18260e['children']['add'](_0x506f89),_0x9a54e7['items']['add'](_0x18260e);}return _0x521eff['bind']('isEnabled')['to'](_0x1f71d7,'isEnabled'),_0x521eff['panelView']['children']['add'](_0x9a54e7),_0x521eff;}['_initializeController'](_0x7c4e16){const _0x37c7c7=this['editor'],_0xf016c4=_0x37c7c7['config'],_0x25343a=_0x37c7c7['plugins']['get']('Annotations'),_0x3c54f2=_0x37c7c7['plugins']['get']('CommentsRepository'),_0x682d2c=_0x37c7c7['plugins']['get']('EditorAnnotations'),_0xad686e=_0x37c7c7['plugins']['get'](_0x35bf8f)['me'],_0x4422dc=_0xf016c4['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x7991c,CommentThreadInputView:_0x162753}=_0x37c7c7['plugins']['get']('CommentsUI');let _0x27ce5c,_0x23a926;this['_annotationViews']['has'](_0x7c4e16['id'])?(_0x23a926=this['_annotationViews']['get'](_0x7c4e16['id']),_0x27ce5c=_0x23a926['mainView']):(_0x27ce5c=new _0x4422dc(_0x37c7c7['locale'],_0x7c4e16,_0xad686e,{'disableComments':this['_disableComments'],'editorConfig':_0xf016c4['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xf016c4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf016c4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf016c4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x299428(_0xf016c4['get']('locale')),'CommentView':_0xf016c4['get']('comments')['CommentView'],'CommentsListView':_0x7991c,'CommentThreadInputView':_0x162753}),_0x27ce5c['acceptButton']['on']('execute',()=>{_0x37c7c7['editing']['view']['focus']();}),_0x27ce5c['discardButton']['on']('execute',()=>{_0x37c7c7['editing']['view']['focus']();}),_0x23a926=_0x25343a['createAnnotationView'](this['editor']['locale'],_0x27ce5c),_0x23a926['bind']('isDirty')['to'](_0x27ce5c,'isDirty'),_0x23a926['bind']('length')['to'](_0x27ce5c),_0x23a926['bind']('type')['to'](_0x27ce5c,'type',_0xc54ec=>'suggestion-'+_0xc54ec),this['listenTo'](_0x27ce5c,'escape',()=>{_0x37c7c7['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x7c4e16['id'],_0x23a926));const _0x11e0cd=_0x3c54f2['createCommentThreadController'](_0x7c4e16['commentThread'],_0x27ce5c),_0x55a370=new ae(_0x37c7c7,_0x7c4e16,_0x27ce5c,_0x11e0cd),_0x3e1008=_0x7c4e16['getAllAdjacentSuggestions']()['filter'](_0x57b1a7=>_0x57b1a7['isInContent']);_0x27ce5c['descriptionParts']=_0x37c7c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e1008),this['_suggestionToController']['set'](_0x7c4e16,_0x55a370),this['_viewToController']['set'](_0x27ce5c,_0x55a370);const _0x42bc2f=_0x25343a['createAnnotation']({'view':_0x23a926,'target':()=>{const _0x153a9b=[],_0x2fdf5a=_0x7c4e16['getAllAdjacentSuggestions']()['filter'](_0x13b2d6=>_0x13b2d6['isInContent']);for(const _0x40cda3 of _0x2fdf5a)_0x153a9b['push'](..._0x40cda3['getMarkers']());return _0x4e5ff3(_0x37c7c7['editing'],_0x153a9b);},'type':()=>'suggestion-'+_0x55a370['view']['type']});_0x3c54f2['_bindAnnotationToEditors'](_0x27ce5c,_0x42bc2f),_0x25343a['add'](_0x42bc2f),_0x682d2c['registerAnnotation'](_0x42bc2f);}['_destroyController'](_0x3b5af8){const _0x1e9a82=this['editor']['plugins']['get']('CommentsRepository'),_0x5b38b5=this['editor']['plugins']['get']('Annotations'),_0x3f4066=this['_suggestionToController']['get'](_0x3b5af8),_0x3615db=_0x3f4066['view'],_0xa42397=_0x5b38b5['getByInnerView'](_0x3615db);_0x1e9a82['_unbindEditors'](_0x3615db),_0xa42397&&_0x5b38b5['remove'](_0xa42397),this['_suggestionToController']['delete'](_0x3b5af8),this['_viewToController']['delete'](_0x3615db),_0x3f4066['destroy']();}['_updateController'](_0x395b3a){if(!_0x395b3a['isInContent']||!this['_suggestionToController']['has'](_0x395b3a))return;const _0x39d503=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3663fb=this['_suggestionToController']['get'](_0x395b3a),_0x2d0fe8=_0x395b3a['getAllAdjacentSuggestions']();_0x3663fb['view']['descriptionParts']=_0x39d503['descriptionFactory']['getDescriptions'](_0x2d0fe8);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x2065a3,(_0x39a7e7,_0x4f3518)=>{const _0x51e3b4=this['editor']['plugins']['get'](k),_0x243d1d=this['editor']['plugins']['get'](p);if(!_0x243d1d['activeMarkers']['length'])return;const {id:_0x46eda5}=_0x243d1d['_splitMarkerName'](_0x243d1d['activeMarkers'][0x0]),_0x2eea19=_0x51e3b4['getSuggestion'](_0x46eda5);_0x2eea19&&(this['_suggestionToController']['get'](_0x2eea19)['view']['focus'](),_0x4f3518());});}['destroy'](){for(const _0x41f0d9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x41f0d9);for(const _0xde961d of this['_annotationViews']['values']())_0xde961d['mainView']['destroy']();super['destroy']();}}function he(_0x3b01c0){return'model'in _0x3b01c0;}class k extends _0x592a9e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5c8a83){this['editor']['plugins']['get'](p)['adapter']=_0x5c8a83;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x40e755){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x40e755);}['getSuggestions']({skipNotAttached:_0xd0d105=!0x1,toJSON:_0x491f86=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xd0d105,'toJSON':_0x491f86});}['getSuggestion'](_0x5efa4f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5efa4f);}}const T=['Pagination'];class P extends _0x592a9e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x186548=this['editor'];if(_0x186548['config']['define']('trackChangesData.editorCreator',_0x1cf2b0=>{const _0x5a4507=_0x186548['model']['document']['getRootNames']()['reduce']((_0x19d12a,_0x1c5f0b)=>(_0x19d12a[_0x1c5f0b]='',_0x19d12a),{});return _0x186548['constructor']['create'](_0x5a4507,_0x1cf2b0);}),'function'!=typeof _0x186548['config']['get']('trackChangesData')['editorCreator'])throw new _0x45bfd6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x58608e){return N(this['editor'],!0x0,_0x58608e);}['getDataWithDiscardedSuggestions'](_0x541e5f){return N(this['editor'],!0x1,_0x541e5f);}}class D extends _0x592a9e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3706d1){super(_0x3706d1),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(_0x2b053b){return void 0x0!==_0x2b053b['getRootsAttributes'];}async function N(_0x9deba2,_0x52cf66,_0x4d66b0){const _0x42d9ec=_0x45a46b(_0x9deba2,T);_0x42d9ec['plugins']['push'](p,D),_0x42d9ec['rootsAttributes']=v(_0x9deba2)?_0x9deba2['getRootsAttributes']():void 0x0;const _0x31e907=document['createDocumentFragment'](),_0x3df541=_0x9deba2['config']['get']('trackChangesData')['editorCreator'],_0x24d8da=await _0x3df541(_0x42d9ec,()=>function(_0x2fdab8){const _0x3cf294=document['createElement']('div');return _0x2fdab8['appendChild'](_0x3cf294),_0x3cf294;}(_0x31e907));!function(_0x1ea81d,_0x3f8a80){const _0x529c90=_0x1ea81d['model']['document']['getRootNames']()['reduce']((_0x2702cd,_0x28419e)=>(_0x2702cd[_0x28419e]=_0x1ea81d['data']['get']({'rootName':_0x28419e}),_0x2702cd),{}),_0x283303=_0x1ea81d['plugins']['get']('Users')['users']['map'](_0x42a45e=>({'id':_0x42a45e['id'],'name':_0x42a45e['name']})),_0x2904e8=_0x1ea81d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47bdbf=_0x1ea81d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5bfda5=_0x3f8a80['plugins']['get']('Users'),_0x413397=_0x3f8a80['plugins']['get']('TrackChangesEditing'),_0x1411a9=_0x3f8a80['plugins']['get']('CommentsRepository');for(const _0x2a8792 of _0x283303)_0x5bfda5['getUser'](_0x2a8792['id'])||_0x5bfda5['addUser'](_0x2a8792);_0x5bfda5['me']||_0x5bfda5['useAnonymousUser']();for(const _0x5ef16d of _0x47bdbf)_0x1411a9['addCommentThread'](_0x5ef16d);for(const _0x1b9f49 of _0x2904e8)_0x413397['addSuggestionData'](_0x1b9f49);_0x3f8a80['data']['set'](_0x529c90);}(_0x9deba2,_0x24d8da),_0x24d8da['execute'](_0x52cf66?'acceptAllSuggestions':'discardAllSuggestions');const _0xe6b879=v(_0x24d8da)?_0x24d8da['getFullData'](_0x4d66b0):_0x24d8da['data']['get'](_0x4d66b0);return await _0x24d8da['destroy'](),_0xe6b879;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|