@ckeditor/ckeditor5-track-changes 48.5.1 → 48.5.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x3d7812();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x139ece,_0xc2e548){super(),this['id']=_0xc2e548['id'],this['type']=_0xc2e548['type'],this['subType']=_0xc2e548['subType']||null,this['author']=_0xc2e548['author'],this['creator']=_0xc2e548['creator']||_0xc2e548['author'],this['data']=null,this['_originalSuggestionId']=_0xc2e548['originalSuggestionId']||null,this['_model']=_0x139ece,this['_onAccept']=_0xc2e548['onAccept'],this['_onDiscard']=_0xc2e548['onDiscard'],this['_onAttributesChange']=_0xc2e548['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc2e548['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x3efdf4=this;for(;_0x3efdf4['previous'];)_0x3efdf4=_0x3efdf4['previous'];return _0x3efdf4;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4eafed){this['_markerNames']['add'](_0x4eafed);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x664276=>this['_model']['markers']['get'](_0x664276))['filter'](_0x225524=>_0x225524);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cff31=>{for(const _0x5d75d7 of this['getMarkers']())_0x4cff31['removeMarker'](_0x5d75d7);}),this['_markerNames']['clear']();}['removeMarker'](_0x2df458){this['_model']['change'](_0x518854=>{_0x518854['removeMarker'](_0x2df458);}),this['_markerNames']['delete'](_0x2df458);}['addRange'](_0x62cf4b){const _0x4abe38='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4abe38),this['_model']['change'](_0x207fcf=>{_0x207fcf['addMarker'](_0x4abe38,{'range':_0x62cf4b,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0xf449f2){for(const _0x17e6a1 of this['getRanges']())if(_0x17e6a1['isIntersecting'](_0xf449f2))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x20f87d=>_0x20f87d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x53f241,_0x5a4a73)=>[..._0x53f241,..._0x5a4a73['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x3b1f3f=this['getRanges']();if(0x1!=_0x3b1f3f['length'])return null;const _0x11128b=_0x3b1f3f[0x0],_0x28e951=_0x11128b['start']['nodeAfter'],_0x29c2a9=_0x11128b['end']['nodeBefore'];return _0x28e951 instanceof it?_0x28e951!=_0x29c2a9?null:_0x28e951: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 _0x59163f=[];let _0x313f02=this['head'];for(;_0x313f02;)_0x59163f['push'](_0x313f02),_0x313f02=_0x313f02['next'];return _0x59163f;}setAttribute(_0x58bed6,_0x5479e7){const _0x28d1e0=at(this['attributes']);ut(_0x28d1e0,_0x58bed6,_0x5479e7),ct(_0x28d1e0,this['attributes'])||(this['attributes']=_0x28d1e0,this['_onAttributesChange'](_0x28d1e0));}removeAttribute(_0x259446){const _0x5b1710=at(this['attributes']);dt(_0x5b1710,_0x259446),ct(_0x5b1710,this['attributes'])||(this['attributes']=_0x5b1710,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 _0x5b5c0d()['substr'](0x1,0x5);}};function Mt(_0x4874eb,_0x567a4b,_0x16af99){const _0x436827=_0x4874eb['t'],t=_0x4874eb['t'];switch(_0x567a4b){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x16af99);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x16af99);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x16af99);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x16af99);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x16af99);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',_0x16af99);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x16af99);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x16af99);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x16af99);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x16af99);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x16af99);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x16af99);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x16af99);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x16af99);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x16af99);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x16af99);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x16af99);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x16af99);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x16af99);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x16af99);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x16af99);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x16af99);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x16af99);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x16af99);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x16af99);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'},_0x16af99);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x16af99);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x16af99);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x16af99);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x16af99);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x16af99);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x16af99);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x16af99);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x16af99);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x16af99);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x16af99);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x16af99);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x16af99);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x16af99);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x16af99);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x16af99);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'},_0x16af99);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x16af99);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x16af99);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'},_0x16af99);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x16af99);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'},_0x16af99);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x16af99);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x16af99);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x16af99);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x16af99);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x16af99);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'},_0x16af99);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x16af99);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x436827({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x16af99);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x436827({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x16af99);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x16af99);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'},_0x16af99);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'},_0x16af99);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'},_0x16af99);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x567a4b;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x55110a,_0x4503fa){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55110a,this['_locale']=_0x4503fa;}getDescriptions(_0x1db83d){const _0x15f779=[],_0x497dfc=new Set(),_0x584135=new Set();for(let _0xc4c575=0x0;_0xc4c575<_0x1db83d['length'];_0xc4c575++){const _0xe3f640=_0x1db83d[_0xc4c575];if(!_0xe3f640['isInContent'])continue;const _0x43e8fe=this['_handleCustomCallbackDescription'](_0xe3f640);if(_0x43e8fe){if(null!=_0xe3f640['subType']){if(_0x497dfc['has'](_0xe3f640['subType']))continue;_0x497dfc['add'](_0xe3f640['subType']);}_0x15f779['push'](_0x43e8fe);}else{if('attribute'==_0xe3f640['type']){const _0x147b0d=_0xe3f640['data']['key'];if(_0x584135['has'](_0x147b0d))continue;_0x584135['add'](_0xe3f640['data']['key']),'$elementName'==_0x147b0d?this['_handleRenameSuggestionDescription'](_0x15f779,_0xe3f640):this['_handleAttributeSuggestionDescription'](_0x15f779,_0xe3f640);continue;}'insertion'!=_0xe3f640['type']&&'deletion'!=_0xe3f640['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15f779,_0xe3f640,_0x1db83d[_0xc4c575+0x1]);}}return this['_resolveDescriptionItems'](_0x15f779);}registerDescriptionCallback(_0x3efdd2){this['_customCallbacks']['push'](_0x3efdd2);}registerElementLabel(_0x54995a,_0xe60640,_0x1d3e97=_0x5ee963['normal']){'function'==typeof _0x54995a?_0x55b07f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54995a,'label':_0xe60640,'priority':_0x1d3e97}):this['_itemLabels']['set'](_0x54995a,_0xe60640);}registerAttributeLabel(_0x3f7074,_0x461b4d){this['_attributeLabels']['set'](_0x3f7074,_0x461b4d);}getItemLabel(_0x5dc70c,_0x116314=0x1){let _0x3bd302;for(const _0x56baf8 of this['_itemLabelsCallbacks'])if(_0x56baf8['matchingCallback'](_0x5dc70c)){_0x3bd302=_0x56baf8['label'];break;}return _0x3bd302||(_0x3bd302=this['_itemLabels']['get'](_0x5dc70c['name'])),_0x3bd302?_0x3bd302(_0x116314):0x1!==_0x116314?_0x116314+'\x20'+_0x5dc70c['name']+'s':''+_0x5dc70c['name'];}_addDescriptionItems(_0x34a3b0,_0x35ee0c){const _0x5e6b2f=_0x35ee0c['getFirstRange']()['getWalker'](),_0x28828d='insertion'==_0x35ee0c['type']?'add':'remove';for(const _0x12b306 of _0x5e6b2f){const _0x11d5c2=_0x12b306['item'],_0x4a7037=_0x34a3b0[_0x34a3b0['length']-0x1];if(_0x11d5c2['is']('$textProxy'))_0x4a7037&&_0x4a7037['type']['indexOf']('Container')>-0x1&&_0x34a3b0['pop'](),_0x4a7037&&'text'==_0x4a7037['type']?_0x4a7037[_0x28828d]+=_0x11d5c2['data']:_0x34a3b0['push']({'type':'text','add':'add'==_0x28828d?_0x11d5c2['data']:'','remove':'remove'==_0x28828d?_0x11d5c2['data']:''});else{if(this['_schema']['isObject'](_0x11d5c2)){const _0x3ca89f=_0x11d5c2;if(_0x4a7037&&_0x4a7037['type']['indexOf']('Container')>-0x1&&_0x34a3b0['pop'](),'elementEnd'==_0x12b306['type'])continue;_0x4a7037&&_0x4a7037['type']==_0x28828d+'Object'&&_0x4a7037['element']['name']==_0x3ca89f['name']?_0x4a7037['quantity']++:_0x34a3b0['push']({'type':_0x28828d+'Object','element':_0x3ca89f,'quantity':0x1}),_0x5e6b2f['skip'](_0x5e347e=>!('elementEnd'==_0x5e347e['type']&&_0x5e347e['item']==_0x11d5c2));}else{if(this['_schema']['checkChild'](_0x11d5c2,'$text')||_0x11d5c2['is']('element','softBreak')){const _0x4f4238=_0x11d5c2;if('add'==_0x28828d&&'elementStart'==_0x12b306['type']||'remove'==_0x28828d&&'elementEnd'==_0x12b306['type'])continue;if(_0x4a7037&&-0x1==_0x4a7037['type']['indexOf']('Container')){'text'==_0x4a7037['type']&&(_0x4a7037[_0x28828d]+='\x0a');continue;}let _0x4ca5bc;if(_0x4ca5bc='add'==_0x28828d?_0x4f4238['nextSibling']&&!this['_schema']['isObject'](_0x4f4238['nextSibling'])?_0x4f4238['nextSibling']:null:_0x4f4238['previousSibling']&&!this['_schema']['isObject'](_0x4f4238['previousSibling'])?_0x4f4238['previousSibling']:null,_0x4f4238['isEmpty']||_0x4ca5bc&&_0x4ca5bc['isEmpty']){const _0x38fdf6=_0x4ca5bc&&_0x4ca5bc['isEmpty']?_0x4ca5bc:_0x4f4238;_0x4a7037&&_0x4a7037['type']==_0x28828d+'EmptyContainer'&&_0x4a7037['element']['name']==_0x38fdf6['name']?_0x4a7037['quantity']++:_0x34a3b0['push']({'type':_0x28828d+'EmptyContainer','element':_0x38fdf6,'quantity':0x1});}else _0x34a3b0['push']({'type':_0x28828d+'Container','element':_0x4f4238});}}}}}_resolveDescriptionItems(_0x3f4209){const _0x4bd72f=this['_locale'],_0x2c4b0f=[],_0x5a1dcc=[],_0x5eee8a=[];for(const _0x1dd3a0 of _0x3f4209)switch(_0x1dd3a0['type']){case'text':if(_0x1dd3a0['add']=_0x1dd3a0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1dd3a0['remove']=_0x1dd3a0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1dd3a0['add']&&''!=_0x1dd3a0['remove']){_0x2c4b0f['push']({'type':'replace','content':Mt(_0x4bd72f,'REPLACE_TEXT',['\x22'+_0x1dd3a0['remove']+'\x22','\x22'+_0x1dd3a0['add']+'\x22'])});continue;}if(null!=_0x1dd3a0['add']['match'](/^ +$/)){_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0',Mt(_0x4bd72f,'ELEMENT_SPACE',_0x1dd3a0['add']['length']))});continue;}if(null!=_0x1dd3a0['remove']['match'](/^ +$/)){_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0',Mt(_0x4bd72f,'ELEMENT_SPACE',_0x1dd3a0['remove']['length']))});continue;}if(''!=_0x1dd3a0['add']){_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0','\x22'+_0x1dd3a0['add']+'\x22')});continue;}_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0','\x22'+_0x1dd3a0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'addContainer':_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Split:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'removeContainer':_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Merge:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'addFormat':_0x5a1dcc['push'](_0x1dd3a0['key']);continue;case'removeFormat':_0x5eee8a['push'](_0x1dd3a0['key']);continue;default:_0x2c4b0f['push'](_0x1dd3a0);}if(_0x5a1dcc['length']){const _0x4f03b1=_0x5a1dcc['map'](_0x122bd6=>this['_attributeLabels']['has'](_0x122bd6)?this['_attributeLabels']['get'](_0x122bd6):_0x122bd6)['join'](',\x20');_0x2c4b0f['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x4f03b1)});}if(_0x5eee8a['length']){const _0xfe2083=_0x5eee8a['map'](_0x54d153=>this['_attributeLabels']['has'](_0x54d153)?this['_attributeLabels']['get'](_0x54d153):_0x54d153)['join'](',\x20');_0x2c4b0f['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0xfe2083)});}return _0x2c4b0f;}_handleCustomCallbackDescription(_0x55a7e4){for(const _0x25d960 of this['_customCallbacks']){const _0xd6b975=_0x25d960(_0x55a7e4);if(_0xd6b975&&'type'in _0xd6b975)return _0xd6b975;}}_handleAttributeSuggestionDescription(_0x59bf9b,_0x9466f5){const _0x1e7423=_0x9466f5['data'],_0x393c7e=void 0x0===_0x1e7423['newValue']?'removeFormat':'addFormat';_0x59bf9b['push']({'type':_0x393c7e,'key':_0x1e7423['key']});}_handleRenameSuggestionDescription(_0x43a388,_0x5a68c0){_0x43a388['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a68c0['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x132348,_0x29c8e1,_0x306372){if(this['_addDescriptionItems'](_0x132348,_0x29c8e1),_0x306372&&_0x306372['getFirstRange']()&&!_0x29c8e1['getFirstRange']()['end']['isEqual'](_0x306372['getFirstRange']()['start'])){const _0x1bb053=_0x132348[_0x132348['length']-0x1],_0x23d3f9='insertion'==_0x29c8e1['type']?'add':'remove';_0x1bb053&&'text'==_0x1bb053['type']&&(_0x1bb053[_0x23d3f9]+='\x0a');}}},wt=class extends _0x42a28f{afterInit(){const _0x8d3375=this['editor'],_0x1c59d0=_0x8d3375['plugins']['get']('TrackChangesEditing');_0x8d3375['commands']['get']('showAIAssistant')&&_0x1c59d0['enableCommand']('showAIAssistant');}},Ft=class extends _0x42a28f{afterInit(){const _0x2478c0=this['editor'],_0x4e13de=_0x2478c0['plugins']['get']('TrackChangesEditing');_0x2478c0['commands']['get']('toggleAi')&&_0x4e13de['enableCommand']('toggleAi');}},Bt=class extends _0x42a28f{afterInit(){const _0x84390f=this['editor'],_0x44c8c3=_0x84390f['plugins']['get']('TrackChangesEditing');_0x84390f['commands']['get']('aiQuickAction')&&_0x44c8c3['enableCommand']('aiQuickAction');}},vt=class extends _0x42a28f{afterInit(){const _0x4d4521=this['editor'],_0x45e136=_0x4d4521['locale'];if(!_0x4d4521['plugins']['has']('AlignmentEditing'))return;const _0xfa7152=_0x4d4521['plugins']['get']('TrackChangesEditing');_0xfa7152['enableDefaultAttributesIntegration']('alignment'),_0xfa7152['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x45e136,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x372fb3=this['editor'],_0x423249=_0x372fb3['locale'];_0x372fb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29e3a6=>{if('formatBlock'!=_0x29e3a6['type'])return;const {data:_0x71817c}=_0x29e3a6;if(_0x71817c&&'alignment'==_0x71817c['commandName']){const _0x46142c=_0x71817c['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x423249,'*Format:*\x20%0',function(_0x1a4f0e){switch(_0x1a4f0e){case'left':return Mt(_0x423249,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x423249,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x423249,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x423249,'FORMAT_JUSTIFY_TEXT');}}(_0x46142c))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x42a28f{afterInit(){const _0x18f2ce=this['editor'],_0x3fbbbf=_0x18f2ce['plugins']['get']('TrackChangesEditing'),_0x429df1=_0x18f2ce['locale'];for(const _0x46abfa of Dt){if(!_0x18f2ce['plugins']['has'](_0x46abfa))continue;const _0x3d304b=_0x46abfa['slice'](0x0,-0x7)['toLowerCase'](),_0x57ec03='FORMAT_'+_0x3d304b['toUpperCase']();_0x3fbbbf['enableDefaultAttributesIntegration'](_0x3d304b),_0x3fbbbf['descriptionFactory']['registerAttributeLabel'](_0x3d304b,Mt(_0x429df1,_0x57ec03));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x382f7f=this['editor'],_0x1e3c26=_0x382f7f['locale'],_0x3182bb=_0x382f7f['plugins']['get']('TrackChangesEditing');function _0x32eaa6(_0x2964e6,_0x5d42e7){_0x3182bb['descriptionFactory']['registerDescriptionCallback'](_0x1ba767=>{if('formatInline'!=_0x1ba767['type'])return;const {data:_0x58fdd9}=_0x1ba767;return _0x58fdd9&&_0x58fdd9['commandName']===_0x2964e6?_0x58fdd9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1e3c26,'*Format:*\x20%0',_0x5d42e7)}:{'type':'format','content':Mt(_0x1e3c26,'*Remove\x20format:*\x20%0',_0x5d42e7)}:void 0x0;});}_0x32eaa6('bold',Mt(_0x1e3c26,'FORMAT_BOLD')),_0x32eaa6('italic',Mt(_0x1e3c26,'FORMAT_ITALIC')),_0x32eaa6('underline',Mt(_0x1e3c26,'FORMAT_UNDERLINE')),_0x32eaa6('code',Mt(_0x1e3c26,'FORMAT_CODE')),_0x32eaa6('strikethrough',Mt(_0x1e3c26,'FORMAT_STRIKETHROUGH')),_0x32eaa6('subscript',Mt(_0x1e3c26,'FORMAT_SUBSCRIPT')),_0x32eaa6('superscript',Mt(_0x1e3c26,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x42a28f{afterInit(){const _0x32bd3a=this['editor'],_0x4df617=_0x32bd3a['locale'];if(!_0x32bd3a['plugins']['has']('BlockQuoteEditing'))return;const _0x4420b1=_0x32bd3a['plugins']['get']('TrackChangesEditing'),_0x4ac9bb=this['editor']['commands']['get']('blockQuote');_0x4420b1['enableCommand']('blockQuote',(_0x32cb17,_0x534dd3={})=>{const _0x24bc8d=this['editor']['model']['document']['selection'],_0x25e6cf=_0x534dd3&&void 0x0!==_0x534dd3['forceValue']?_0x534dd3['forceValue']:!_0x4ac9bb['value'];let _0x567b53=[];if(_0x25e6cf){const _0x1501a8=Array['from'](_0x24bc8d['getSelectedBlocks']())['filter'](_0xe4d525=>xt(_0xe4d525)||function(_0x2e0365,_0x1e502d){const _0x57f0d9=_0x1e502d['createContext'](_0x2e0365['parent']);return!!_0x1e502d['checkChild'](_0x57f0d9,'blockQuote')&&!!_0x1e502d['checkChild'](_0x57f0d9['push']('blockQuote'),_0x2e0365);}(_0xe4d525,this['editor']['model']['schema']));_0x567b53=bt(_0x1501a8,_0x32bd3a['model']);}else{const _0x22880f=Array['from'](_0x24bc8d['getSelectedBlocks']())['filter'](_0x5738d1=>xt(_0x5738d1));_0x567b53=bt(_0x22880f,_0x32bd3a['model']);}_0x32bd3a['model']['change'](()=>{for(const _0x5a3500 of _0x567b53)_0x4420b1['markBlockFormat'](_0x5a3500,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25e6cf}]});});}),_0x4420b1['descriptionFactory']['registerDescriptionCallback'](_0x7406a7=>{const {data:_0x4132e4}=_0x7406a7;if(_0x4132e4&&'blockQuote'==_0x4132e4['commandName']){const _0x138d4f=Mt(_0x4df617,'ELEMENT_BLOCK_QUOTE');return _0x4132e4['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4df617,'*Set\x20format:*\x20%0',_0x138d4f)}:{'type':'format','content':Mt(_0x4df617,'*Remove\x20format:*\x20%0',_0x138d4f)};}});}};function xt(_0x183b70){return'blockQuote'==_0x183b70['parent']['name'];}var Gt=class extends _0x42a28f{afterInit(){const _0x5a78f6=this['editor'],_0x554ba3=_0x5a78f6['locale'],_0x3a92a2=_0x5a78f6['plugins']['get']('TrackChangesEditing');_0x5a78f6['plugins']['has']('BookmarkEditing')&&(_0x3a92a2['enableCommand']('insertBookmark'),_0x3a92a2['enableDefaultAttributesIntegration']('updateBookmark'),_0x3a92a2['descriptionFactory']['registerDescriptionCallback'](_0x2b5baa=>{if('insertion'!=_0x2b5baa['type']&&'deletion'!=_0x2b5baa['type']&&'attribute'!=_0x2b5baa['type'])return;const _0x4d2140=_0x2b5baa['getContainedElement']();if(null==_0x4d2140)return;if(!_0x4d2140['is']('element','bookmark'))return;const _0x105288=_0x4d2140['getAttribute']('bookmarkId');if('insertion'==_0x2b5baa['type'])return{'type':'insertion','content':Mt(_0x554ba3,'*Insert:*\x20%0','\x22'+_0x105288+'\x22\x20'+Mt(_0x554ba3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b5baa['type'])return{'type':'deletion','content':Mt(_0x554ba3,'*Remove:*\x20%0','\x22'+_0x105288+'\x22\x20'+Mt(_0x554ba3,'ELEMENT_BOOKMARK'))};const {data:_0x2f43f5}=_0x2b5baa;return _0x2f43f5&&'bookmarkId'==_0x2f43f5['key']?{'type':'format','content':Mt(_0x554ba3,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f43f5['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x42a28f{afterInit(){const _0x412cc6=this['editor'];_0x412cc6['plugins']['has']('CaseChange')&&(_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x42a28f{afterInit(){const _0x2820c9=this['editor'];_0x2820c9['commands']['get']('ckbox')&&_0x2820c9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x42a28f{static get requires(){return[ht,gt];}constructor(_0x35ba61){super(_0x35ba61),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1b90c8=this['editor'],_0x447600=_0x1b90c8['plugins']['get']('ClipboardMarkersUtils'),_0x355ff1=_0x1b90c8['plugins']['get'](gt);_0x447600['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x355ff1['on']('outputTransformation',(_0x5f0abc,_0x443642)=>{const _0xa43715=this['_getSuggestionEntries'](_0x443642);for(const [_0x23bbae,_0x266ced]of _0x443642['content']['markers']){const _0x2c511f=rt['_fromRangeInDocumentFragment'](_0x266ced,_0x1b90c8['model']);function _0x3480aa(){_0x2c511f['detach'](),_0x443642['content']['markers']['delete'](_0x23bbae);}_0x2c511f['on']('change:drop',_0x3480aa),(_0x23bbae['startsWith']('suggestion:')||_0x23bbae['startsWith']('comment:'))&&_0x2c511f['on']('change:range',()=>{_0x2c511f['isCollapsed']&&_0x3480aa();}),_0x443642['content']['markers']['set'](_0x23bbae,_0x2c511f);}const _0x59f0a4=_0xa43715['filter'](_0x3d875d=>'deletion'===_0x3d875d['meta']['type'])['map'](_0x5a28c5=>_0x5a28c5['modelRange']);if(this['_shouldSkipDeletions'](_0x59f0a4,_0x443642['content']))return[..._0xa43715]['forEach'](_0x391424=>{_0x443642['content']['markers']['get'](_0x391424['markerName'])['detach'](),_0x443642['content']['markers']['delete'](_0x391424['markerName']);}),void this['_restoreRegularRanges'](_0x443642['content']['markers']);[..._0xa43715]['forEach'](_0x1ea5a8=>{const _0x54c0a2=_0x1b90c8['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x1ea5a8['meta']['type'],_0x1ea5a8['meta']['subType'],'accept'),{markerName:_0x1a5f2d,meta:_0x49c344}=_0x1ea5a8;if(_0x443642['content']['markers']['has'](_0x1a5f2d)){switch(_0x49c344['type']){case'deletion':if('tableRow'===_0x49c344['subType']||'tableColumn'===_0x49c344['subType']){if(!_0x1b90c8['plugins']['has']('TableUtils'))break;const _0x463037=_0x1b90c8['plugins']['get']('TableUtils'),_0x3df4ba=_0x463037['getSelectionAffectedTableCells'](_0x1b90c8['model']['createSelection'](_0x443642['content']['markers']['get'](_0x1a5f2d))),_0x927435=_0x3df4ba[0x0]['findAncestor']('table');if('tableRow'===_0x49c344['subType']){const {first:_0x24cd6f,last:_0x291beb}=_0x463037['getRowIndexes'](_0x3df4ba);_0x463037['removeRows'](_0x927435,{'at':_0x24cd6f,'rows':_0x291beb-_0x24cd6f+0x1});}else{const {first:_0x176825,last:_0x300788}=_0x463037['getColumnIndexes'](_0x3df4ba);_0x463037['removeColumns'](_0x927435,{'at':_0x176825,'columns':_0x300788-_0x176825+0x1});}break;}_0x54c0a2([_0x443642['content']['markers']['get'](_0x1a5f2d)]);}_0x443642['content']['markers']['has'](_0x1a5f2d)&&(_0x443642['content']['markers']['get'](_0x1a5f2d)['detach'](),_0x443642['content']['markers']['delete'](_0x1a5f2d));}}),this['_restoreRegularRanges'](_0x443642['content']['markers']);});}_getSuggestionEntries(_0xabfbf6){const _0x2e9045=_0x17a357=>'dragstart'===_0xabfbf6['method']?_0x17a357['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x17a357;return Array['from'](_0xabfbf6['content']['markers'])['map'](([_0x3bf205,_0x4ad5cc])=>({'markerName':_0x3bf205,'modelRange':_0x4ad5cc,'meta':tt(_0x2e9045(_0x3bf205))}))['filter'](({meta:_0x3c7e58})=>'suggestion'===_0x3c7e58['group']);}_shouldSkipDeletions(_0x4177af,_0x2e9b1a){if(!_0x4177af['length'])return!0x1;let _0x37db06=[this['editor']['model']['createRangeIn'](_0x2e9b1a)];for(const _0x312ecf of _0x4177af)_0x37db06=_0x37db06['flatMap'](_0x4c5781=>_0x4c5781['getDifference'](_0x312ecf));return!_0x37db06['some'](_0x7675e6=>this['editor']['model']['hasContent'](_0x7675e6,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x6203e4){[..._0x6203e4['keys']()]['forEach'](_0x3521a2=>{const _0x1e5a29=_0x6203e4['get'](_0x3521a2);_0x1e5a29['detach'](),_0x6203e4['set'](_0x3521a2,_0x1e5a29['toRange']());});}},Vt=class extends _0x42a28f{afterInit(){const _0x4b3bda=this['editor'];if(!_0x4b3bda['plugins']['has']('CodeBlock'))return;const _0x29f63a=_0x4b3bda['plugins']['get']('TrackChangesEditing'),_0x403f30=_0x4b3bda['locale'],_0x578e50=_0x4b3bda['config']['get']('codeBlock')['languages'],_0x4142fa=_0x4b3bda['commands']['get']('codeBlock');_0x29f63a['enableCommand']('indentCodeBlock'),_0x29f63a['enableCommand']('outdentCodeBlock'),_0x29f63a['enableCommand']('codeBlock',(_0x373110,_0x2d5e04={})=>{const _0x4ff637=_0x4b3bda['model'],_0x56fc46=_0x4b3bda['model']['document']['selection'],_0x1e8c05=_0x2d5e04&&void 0x0!==_0x2d5e04['forceValue']?_0x2d5e04['forceValue']:!_0x4142fa['value'];let _0x5d357f;_0x2d5e04['language']||(_0x2d5e04['language']=_0x578e50[0x0]['language']),_0x5d357f=_0x1e8c05?Array['from'](_0x56fc46['getSelectedBlocks']())['filter'](_0x2b6418=>{return jt(_0x2b6418)||(_0x47d813=_0x2b6418,_0xc218f=_0x4ff637['schema'],!_0x47d813['is']('rootElement')&&!_0xc218f['isLimit'](_0x47d813)&&_0xc218f['checkChild'](_0x47d813['parent'],'codeBlock'));var _0x47d813,_0xc218f;}):Array['from'](_0x56fc46['getSelectedBlocks']())['filter'](_0x177a25=>jt(_0x177a25));const _0x4a220a=bt(_0x5d357f,_0x4ff637);_0x4ff637['change'](()=>{for(const _0x9a65c7 of _0x4a220a)_0x29f63a['markBlockFormat'](_0x9a65c7,{'commandName':'codeBlock','commandParams':[{..._0x2d5e04,'forceValue':_0x1e8c05}],'formatGroupId':'blockName'});});}),(_0x29f63a['descriptionFactory']['registerElementLabel']('codeBlock',_0x7a629b=>Mt(_0x403f30,'ELEMENT_CODE_BLOCK',_0x7a629b)),_0x29f63a['descriptionFactory']['registerDescriptionCallback'](_0x199dd3=>{if('formatBlock'!=_0x199dd3['type'])return;const _0xc34f09=_0x403f30['t'],{data:_0x1de673}=_0x199dd3;if(!_0x1de673||'codeBlock'!=_0x1de673['commandName'])return;const _0x3cc435=_0x1de673['commandParams'][0x0]['language'],_0x2d2e88=_0xc34f09(_0x578e50['find'](_0x35420d=>_0x35420d['language']===_0x3cc435)['label'])['toLowerCase']();return _0x1de673['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x403f30,'*Set\x20format:*\x20%0',Mt(_0x403f30,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d2e88+')')}:{'type':'format','content':Mt(_0x403f30,'*Remove\x20format:*\x20%0',Mt(_0x403f30,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x12bd54){return'codeBlock'==_0x12bd54['name'];}var zt=class extends _0x42a28f{afterInit(){const _0x443dd0=this['editor'];_0x443dd0['plugins']['has']('CommentsEditing')&&_0x443dd0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x42a28f{static get requires(){return[ft];}init(){const _0x463121=this['editor'],_0x27fd35=_0x463121['plugins']['get']('TrackChangesEditing');_0x27fd35['enableCommand']('delete');const _0x54efc2=_0x463121['commands']['get']('deleteForward');_0x27fd35['enableCommand']('deleteForward',(_0xf5492c,_0x528687={})=>{const _0x3e8878=_0x463121['model']['createSelection'](_0x463121['model']['document']['selection']);_0x3e8878['isCollapsed']&&_0x463121['model']['modifySelection'](_0x3e8878,{'direction':'forward','unit':_0x528687['unit']});const _0x2e44a3=_0x3e8878['getFirstRange'](),_0x122858=rt['fromRange'](_0x2e44a3);let _0x840e76;_0xf5492c(_0x528687),_0x840e76='$graveyard'==_0x122858['root']['rootName']?_0x463121['model']['createRange'](_0x2e44a3['start']):_0x463121['model']['createRange'](_0x122858['start'],_0x122858['end']),_0x122858['detach'](),_0x463121['model']['enqueueChange'](_0x54efc2['buffer']['batch'],_0x4da335=>{_0x54efc2['buffer']['lock'](),_0x4da335['setSelection'](_0x4da335['createRange'](_0x840e76['end'])),_0x54efc2['buffer']['unlock']();});});}},Xt=class extends _0x42a28f{afterInit(){const _0x28ea0f=this['editor'];if(!_0x28ea0f['plugins']['has']('ListEditing'))return;const _0x2f8479=_0x28ea0f['locale'],_0x34055a=_0x28ea0f['plugins']['get']('TrackChangesEditing'),_0x355346=_0x28ea0f['plugins']['has']('TodoListEditing'),_0x57b79e=!!_0x28ea0f['config']['get']('list.multiBlock');function _0x34ada2(_0x2cf586){return{'type':'format','content':''+Mt(_0x2f8479,'*Set\x20format:*\x20%0',_0x2cf586)};}function _0xc6e292(_0xb5d7cd){return{'type':'format','content':''+Mt(_0x2f8479,'*Remove\x20format:*\x20%0',_0xb5d7cd)};}_0x34055a['enableDefaultAttributesIntegration']('numberedList'),_0x34055a['enableDefaultAttributesIntegration']('bulletedList'),_0x34055a['enableDefaultAttributesIntegration']('customNumberedList'),_0x34055a['enableDefaultAttributesIntegration']('customBulletedList'),_0x34055a['enableDefaultAttributesIntegration']('indentList'),_0x34055a['enableDefaultAttributesIntegration']('outdentList'),_0x34055a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x34055a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x57b79e&&(_0x34055a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x34055a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x355346&&(_0x34055a['enableDefaultAttributesIntegration']('todoList'),_0x34055a['enableDefaultAttributesIntegration']('checkTodoList'),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x1c803f=>{const {data:_0x387984}=_0x1c803f;if(_0x387984&&'todoListChecked'==_0x387984['key'])return{'type':'format','content':_0x387984['newValue']?Mt(_0x2f8479,'*Check\x20item*'):Mt(_0x2f8479,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x47a3c7=>{if(_0x47a3c7['batch']['isUndo'])return!0x1;let _0x54713b=!0x1;const _0x181300=_0x34055a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0f222=>'todoListChecked'===_0x34055a['_getAttributeKey'](_0xe0f222));for(const _0x72dcf5 of _0x181300)'todo'!=_0x72dcf5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x34055a['_findSuggestions'](_0x72dcf5['getFirstRange'](),'attribute')['find'](_0x6fb66c=>'listType'===_0x34055a['_getAttributeKey'](_0x6fb66c['suggestion']))||(_0x47a3c7['removeMarker'](_0x72dcf5['getFirstMarker']()),_0x54713b=!0x0));return _0x54713b;})),_0x34055a['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x2f8479,'FORMAT_INDENT'));const _0x5b9c9e={'type':'format','content':''};_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x167d82=>{const {data:_0x8eb531}=_0x167d82;if(!_0x8eb531||'listType'!=_0x8eb531['key'])return;let _0x57d99d=_0x167d82['head'];for(;_0x57d99d;){if(_0x57d99d['data']&&(('listStyle'==_0x57d99d['data']['key']||'listMarkerStyle'==_0x57d99d['data']['key'])&&(_0x57d99d['data']['newValue']&&'default'!=_0x57d99d['data']['newValue']||'default'!=_0x57d99d['data']['oldValue']&&!_0x8eb531['newValue'])||!_0x57b79e&&'$elementName'==_0x57d99d['data']['key']))return _0x5b9c9e;_0x57d99d=_0x57d99d['next'];}if(null==_0x8eb531['newValue'])switch(_0x8eb531['oldValue']){case'bulleted':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_TODO_LIST'));}switch(_0x8eb531['newValue']){case'bulleted':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_TODO_LIST'));}}),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x48f7e6=>{const {data:_0x49538c}=_0x48f7e6;if(_0x49538c&&'listIndent'==_0x49538c['key'])return null==_0x49538c['newValue']||null==_0x49538c['oldValue']&&0x0==_0x49538c['newValue']?_0x5b9c9e:void 0x0;}),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x34af9b=>{if('attribute'!=_0x34af9b['type'])return;const {data:_0x472117}=_0x34af9b;if(!_0x472117||'listItemId'!=_0x472117['key'])return;const _0x497bc2=qt(_0x34af9b);return'newValue'==_0x497bc2?{'type':'format','content':Mt(_0x2f8479,'*Merge:*\x20list\x20item')}:'oldValue'==_0x497bc2?{'type':'format','content':Mt(_0x2f8479,'*Split:*\x20list\x20item')}:_0x5b9c9e;}),_0x28ea0f['model']['document']['registerPostFixer'](_0x2e5509=>this['listItemIdFixer'](_0x2e5509)),_0x28ea0f['model']['document']['registerPostFixer'](_0x15894e=>this['noTrackChangesFixer'](_0x15894e)),_0x28ea0f['model']['document']['on']('change:data',(_0x43fe99,_0x44db38)=>{if(_0x44db38['isUndo']||!_0x44db38['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x7deb7a){if(_0x7deb7a['batch']['isUndo']||!_0x7deb7a['batch']['isLocal'])return!0x1;let _0x13b183=!0x1;const _0xef08d8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x493c22=>_0x493c22['data']&&'listItemId'==_0x493c22['data']['key'])['filter'](_0x4cfef0=>_0x4cfef0['data']['newValue']&&_0x4cfef0['data']['oldValue']);for(const _0x4e34a2 of _0xef08d8)qt(_0x4e34a2)||(_0x7deb7a['removeMarker'](_0x4e34a2['getFirstMarker']()),_0x13b183=!0x0);return _0x13b183;}['noTrackChangesFixer'](_0x28b673){if(_0x28b673['batch']['isUndo']||!_0x28b673['batch']['isLocal'])return!0x1;const _0x20bd15=this['editor']['model']['document']['differ'],_0xe6a36c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xe6a36c['trackChangesCommand']['value'])return!0x1;let _0x287d99=!0x1;const _0x487c51=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x14ff15=_0x20bd15['getChanges']()['filter'](_0x5c7c1b=>'attribute'==_0x5c7c1b['type'])['filter'](_0x24ec3f=>_0x487c51['has'](_0x24ec3f['attributeKey']));if(0x0==_0x14ff15['length'])return _0x287d99;const _0x29c666=new Set(_0x20bd15['getMarkersToAdd']()['filter'](_0x326234=>{if(!_0x326234['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x306901=tt(_0x326234['name'])['subType']['split']('|')[0x0];return _0x487c51['has'](_0x306901);})['map'](_0x18066e=>tt(_0x18066e['name'])['id']));for(const _0x3f2723 of _0x14ff15){const _0x2823a5=_0xe6a36c['_findSuggestions'](_0x3f2723['range'],'attribute')['filter'](_0x4b59e1=>{if(_0x4b59e1['meta']['isNextTo'])return!0x1;if(_0x29c666['has'](_0x4b59e1['suggestion']['id']))return!0x1;const _0x2aed5f=_0xe6a36c['_getAttributeKey'](_0x4b59e1['suggestion']);return _0x487c51['has'](_0x2aed5f);})['map'](_0x4d7dc3=>_0x4d7dc3['suggestion']);if(_0x2823a5['length']){for(const _0x27c016 of _0x2823a5)_0x28b673['removeMarker'](_0x27c016['getFirstMarker']());_0x287d99=!0x0;}}return _0x287d99;}['assureChains'](){const _0x56de04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11d16d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4a2804;const _0x3ebea6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x365c4b=>{if(_0x365c4b['data']['oldRange']||!_0x365c4b['data']['newRange'])return null;if(!_0x365c4b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1d68c4}=tt(_0x365c4b['name']);if(!_0x56de04['hasSuggestion'](_0x1d68c4))return null;const _0x347073=_0x56de04['getSuggestion'](_0x1d68c4);return _0x11d16d['includes'](_0x347073['data']['key']);})['map'](_0x38634b=>{const {id:_0x4e63a9}=tt(_0x38634b['name']),_0x4b0a2d=_0x56de04['getSuggestion'](_0x4e63a9);return _0x4a2804=_0x4b0a2d['attributes']['groupId'],_0x4b0a2d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ebea6['size'])return;const _0x23794e=_0x56de04['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dbc03=>'attribute'==_0x5dbc03['type']&&_0x5dbc03['data']&&_0x11d16d['includes'](_0x5dbc03['data']['key'])&&_0x5dbc03['attributes']['groupId']!=_0x4a2804)['map'](_0x38dd9c=>({'listItem':_0x38dd9c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x38dd9c['attributes']['groupId']})),_0x3a7691=new Set();for(const {groupId:_0x58d839,listItem:_0x56f69d}of _0x23794e)_0x3ebea6['has'](_0x56f69d)&&_0x3a7691['add'](_0x58d839);for(const _0x53d342 of _0x56de04['getSuggestions']())_0x3a7691['has'](_0x53d342['attributes']['groupId'])&&_0x53d342['setAttribute']('groupId',_0x4a2804);}_supportLegacySuggestions(){const _0xa6cea8=this['editor'],_0x171196=_0xa6cea8['locale'],_0x1e2108=_0xa6cea8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e2108['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a58d1,_0x3cfb35){const _0x5f3f39=[];for(let _0x3154b0 of _0x5a58d1)_0x3154b0['start']['nodeAfter']===_0x3154b0['end']['parent']&&(_0x3154b0=_0xa6cea8['model']['createRange'](_0xa6cea8['model']['createPositionAt'](_0x3154b0['start']['nodeAfter'],0x0))),_0x5f3f39['push'](_0x3154b0);_0xa6cea8['model']['change'](_0x2b55dc=>{const _0x55f7cf=_0xa6cea8['model']['document']['selection'],_0x59be67=Array['from'](_0x55f7cf['getRanges']())['map'](_0x5df1d2=>rt['fromRange'](_0x5df1d2));_0x2b55dc['setSelection'](_0x5f3f39),_0xa6cea8['commands']['get'](_0x3cfb35['commandName'])['refresh'](),_0x3cfb35['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa6cea8['execute'](_0x3cfb35['commandName'],..._0x3cfb35['commandParams']),_0x2b55dc['setSelection'](_0x59be67);for(const _0x1d7f89 of _0x59be67)_0x1d7f89['detach']();});}),_0x1e2108['descriptionFactory']['registerElementLabel'](function(_0x370f4){const _0x1ebc9a=!_0xa6cea8['model']['schema']['isObject'](_0x370f4),_0x3942f7=_0x370f4['previousSibling'],_0x3c37d2=_0x370f4['nextSibling'],_0xda2e4f=_0x370f4['getAttribute']('listItemId'),_0x88e441=!_0x3942f7||_0x3942f7['getAttribute']('listItemId')!==_0xda2e4f,_0x25d602=!_0x3c37d2||_0x3c37d2['getAttribute']('listItemId')!==_0xda2e4f;return _0x1ebc9a&&Boolean(_0xda2e4f)&&_0x88e441&&_0x25d602;},_0x2139b5=>Mt(_0x171196,'ELEMENT_LIST_ITEM',_0x2139b5));}_registerLegacyDescription(){const _0x3cbd16=this['editor'],_0x3ec97f=_0x3cbd16['locale'];function _0x720cca(_0x28ee96){const _0x4b7156=_0x3cbd16['commands']['get']('bulletedList')['value'],_0x46d5b6=_0x3cbd16['commands']['get']('numberedList')['value'];return'numberedList'===_0x28ee96?_0x4b7156:_0x46d5b6;}_0x3cbd16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x108d4f){if('formatBlock'!=_0x108d4f['type'])return;const {data:_0x5600c8}=_0x108d4f;if(!_0x5600c8)return;let _0x284d24,_0x5b4020,_0x2897a9,_0x272819;switch(_0x5600c8['commandName']){case'bulletedList':_0x2897a9=_0x5600c8['commandParams'][0x0]['forceValue'],_0x272819=_0x720cca(_0x5600c8['commandName']),_0x284d24=_0x2897a9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x272819&&_0x3cbd16['config']['get']('list.multiBlock')||(_0x284d24='*Change\x20to:*\x20%0'),_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2897a9=_0x5600c8['commandParams'][0x0]['forceValue'],_0x272819=_0x720cca(_0x5600c8['commandName']),_0x284d24=_0x2897a9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x272819&&_0x3cbd16['config']['get']('list.multiBlock')||(_0x284d24='*Change\x20to:*\x20%0'),_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x284d24='*Indent:*\x20%0',_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x284d24=function(_0x5beb07){const _0x4254b7=_0x5beb07['getFirstRange']();let _0x359f3b=_0x4254b7['start']['nodeAfter'];for(;_0x359f3b&&_0x4254b7['containsItem'](_0x359f3b);){if(_0x359f3b['getAttribute']('listIndent')>0x0)return!0x1;_0x359f3b=_0x359f3b['nextSibling'];}return!0x0;}(_0x108d4f)?Mt(_0x3ec97f,'*Format:*\x20remove\x20from\x20%0',Mt(_0x3ec97f,function(_0x51d41d){return'ELEMENT_'+_0x51d41d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x108d4f))):Mt(_0x3ec97f,'*Outdent:*\x20%0',Mt(_0x3ec97f,'ELEMENT_LIST_ITEM')),_0x5b4020={'type':'format','content':_0x284d24};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5600c8['multipleBlocks']&&(_0x284d24='*Merge:*\x20%0',_0x5b4020={'type':'deletion','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_LIST_ITEM'))});}return _0x5b4020;});}};function qt(_0x2a5829){let _0x34f4f9=_0x2a5829['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34f4f9;){const _0x22120b=_0x34f4f9['getAttribute']('listItemId');if(!_0x22120b)return!0x1;if(_0x22120b==_0x2a5829['data']['newValue'])return'newValue';if(_0x22120b==_0x2a5829['data']['oldValue'])return'oldValue';_0x34f4f9=_0x34f4f9['previousSibling'];}return!0x1;}var Yt=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ef3ce=this['editor']['config']['get']('list.properties'),_0x12a909=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ef3ce['styles']&&_0x12a909['enableDefaultAttributesIntegration']('listStyle'),_0x2ef3ce['reversed']&&_0x12a909['enableDefaultAttributesIntegration']('listReversed'),_0x2ef3ce['startIndex']&&_0x12a909['enableDefaultAttributesIntegration']('listStart');const _0x57662c={'type':'format','content':''};_0x12a909['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1627bc=this['editor']['locale'];_0x12a909['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x1627bc,'FORMAT_LIST_REVERSED')),_0x12a909['descriptionFactory']['registerDescriptionCallback'](_0xdf7b46=>{const {data:_0x3bfab4}=_0xdf7b46;if(_0x3bfab4&&'listReversed'==_0x3bfab4['key'])return null==_0x3bfab4['newValue']||0x0==_0x3bfab4['newValue']&&null==_0x3bfab4['oldValue']?_0x57662c:void 0x0;}),_0x12a909['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x1627bc,'FORMAT_LIST_START')),_0x12a909['descriptionFactory']['registerDescriptionCallback'](_0x18abcc=>{const {data:_0x2880ac}=_0x18abcc;if(_0x2880ac&&'listStart'==_0x2880ac['key'])return null==_0x2880ac['newValue']||0x1==_0x2880ac['newValue']&&null==_0x2880ac['oldValue']?_0x57662c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3fdab4=>{if(_0x3fdab4['batch']['isUndo'])return!0x1;let _0x3e2e57=!0x1;const _0xb0974=_0x12a909['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f19f6=>{const _0x2756e6=_0x12a909['_getAttributeKey'](_0x2f19f6);return'listStart'==_0x2756e6||'listReversed'==_0x2756e6;});for(const _0x32653f of _0xb0974){const _0x42d27d=_0x32653f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x42d27d&&'customNumbered'!=_0x42d27d&&(_0x12a909['_findSuggestions'](_0x32653f['getFirstRange'](),'attribute')['find'](_0x1d38c1=>'listType'==_0x12a909['_getAttributeKey'](_0x1d38c1['suggestion']))||(_0x3fdab4['removeMarker'](_0x32653f['getFirstMarker']()),_0x3e2e57=!0x0));}return _0x3e2e57;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3da531){const _0x228152=this['editor']['locale'],{data:_0x23db2f}=_0x3da531,_0x77076a={'type':'format','content':''};if(!_0x23db2f||'listStyle'!=_0x23db2f['key'])return;if(!_0x23db2f['oldValue'])return'default'==_0x23db2f['newValue']?_0x77076a:{'type':'format','content':''+Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['newValue'])))};if(!_0x23db2f['newValue']){if('default'==_0x23db2f['oldValue'])return _0x77076a;let _0x2becf2=_0x3da531['head'];for(;_0x2becf2;){if(_0x2becf2['data']&&'listType'==_0x2becf2['data']['key']&&_0x2becf2['data']['newValue'])return _0x77076a;_0x2becf2=_0x2becf2['next'];}return{'type':'format','content':''+Mt(_0x228152,'*Remove\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['oldValue'])))};}if('default'!=_0x23db2f['newValue'])return{'type':'format','content':''+Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['newValue'])))};let _0x5d030e=_0x3da531['head'];for(;_0x5d030e;){if(_0x5d030e['data']&&'listType'==_0x5d030e['data']['key']&&_0x5d030e['data']['newValue']&&_0x5d030e['data']['oldValue'])return _0x77076a;_0x5d030e=_0x5d030e['next'];}return{'type':'format','content':Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,'ELEMENT_'+_0x3da531['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x2787a7=this['editor'],_0x183202=_0x2787a7['locale'];_0x2787a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de101=>{if('formatBlock'!=_0x3de101['type'])return;const {data:_0x5f5191}=_0x3de101;if(!_0x5f5191)return;let _0x5aa980,_0x46fb91;switch(_0x5f5191['commandName']){case'listStyle':_0x5aa980='*Change\x20to:*\x20%0',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980,Mt(_0x183202,this['_getTranslationKeyForListStyle'](_0x5f5191['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5aa980=_0x5f5191['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980)};break;case'listStart':_0x5aa980='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980,_0x5f5191['commandParams'][0x0]['startIndex'])};}return _0x46fb91;});}_getTranslationKeyForListStyle(_0x42d6a4){return'ELEMENT_'+(_0x3b7882=_0x42d6a4,Qt['includes'](_0x3b7882)?'bulleted':Zt['includes'](_0x3b7882)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x42d6a4['toUpperCase']()['replace'](/-/g,'_');var _0x3b7882;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x42a28f{afterInit(){const _0x2abf15=this['editor'];_0x2abf15['commands']['get']('emoji')&&_0x2abf15['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x42a28f{static get requires(){return[Et];}init(){const _0x298814=this['editor'],_0x2f0d48=_0x298814['plugins']['get']('TrackChangesEditing'),_0x2a728e=_0x298814['commands']['get']('enter');_0x2f0d48['enableCommand']('enter',()=>{_0x298814['model']['change'](_0xcdd102=>{const _0x5d3a61=_0x298814['model']['document']['selection'],_0x107643=_0x5d3a61['getFirstPosition'](),_0x194e1d=rt['fromRange'](_0x5d3a61['getFirstRange']());if(_0x2a728e['enterBlock'](_0xcdd102)){const _0x594993=_0x298814['model']['createPositionAt'](_0x107643['parent']['nextSibling'],0x0),_0xbd0fed=_0xcdd102['createRange'](_0x107643,_0x594993);_0x2f0d48['markInsertion'](_0xbd0fed);}else _0xcdd102['setSelection'](_0xcdd102['createRange'](_0x194e1d['end']));_0x194e1d['detach'](),_0x2a728e['fire']('afterExecute',{'writer':_0xcdd102});});});}},ee=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e826c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e826c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e826c['enableCommand']('findNext'),_0x3e826c['enableCommand']('findPrevious'),_0x3e826c['enableCommand']('replace'),_0x3e826c['enableCommand']('replaceAll');}['handleFindCommand'](_0x277d68,_0x18ab70,_0x1279a1={}){const _0x5e355d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x277d68(_0x591346=>{let _0x3b8ea7=('string'==typeof _0x18ab70?_0x5e355d['findByTextCallback'](_0x18ab70,_0x1279a1):_0x18ab70)(_0x591346);Array['isArray'](_0x3b8ea7)&&(_0x3b8ea7={'results':_0x3b8ea7,'searchText':'string'==typeof _0x18ab70?_0x18ab70:''});const _0x3b8086=_0x3b8ea7['results']['filter'](_0x5772bc=>!0x1===this['_isInDeletionRange'](_0x5772bc,_0x591346['item']));return{..._0x3b8ea7,'results':_0x3b8086};},_0x1279a1);}_isInDeletionRange(_0xf4f8df,_0x52d72f){const _0x423f55=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52d72f,_0xf4f8df['start']),this['editor']['model']['createPositionAt'](_0x52d72f,_0xf4f8df['end']));for(const _0x5369b5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x423f55['getIntersection'](_0x5369b5['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x42a28f{afterInit(){const _0x45027e=this['editor']['locale'],_0x36cb32=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5a6e7a,commandName:_0x1db2f9}of ne)this['editor']['plugins']['has'](_0x5a6e7a)&&_0x36cb32['enableDefaultAttributesIntegration'](_0x1db2f9);_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x45027e,'FORMAT_FONT_SIZE')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x45027e,'FORMAT_FONT_FAMILY')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x45027e,'FORMAT_FONT_COLOR')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x45027e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x320d6b=this['editor'],_0x55256e=_0x320d6b['locale'];_0x320d6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x210086=>{const _0xb2e909=_0x55256e['t'];if('formatInline'!=_0x210086['type'])return;const {data:_0x4b5211}=_0x210086;if(null!=_0x4b5211){if('fontSize'==_0x4b5211['commandName']){const _0x56dae3=_0x4b5211['commandParams'][0x0]['value'];if(_0x56dae3){const _0x4429db=_0xb2e909(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x185feb=>_0x185feb['model']==_0x56dae3)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20size:*\x20%0',_0x4429db)};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4b5211['commandName']){const _0x10a748=_0x4b5211['commandParams'][0x0]['value'];return _0x10a748?{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20family:*\x20%0',_0x10a748)}:{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4b5211['commandName']){const _0x479f1f=_0x4b5211['commandParams'][0x0]['value'];if(_0x479f1f){const _0x1bca87=_0x2e67d6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x48d0b2=>_0x48d0b2['model']==_0x479f1f);let _0x81a2fb=_0x479f1f,_0x53a57b='';return _0x1bca87&&(_0x81a2fb=_0x1bca87['label'],_0x53a57b=_0xb2e909(_0x81a2fb)['toLowerCase']()),{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20color:*\x20%0',_0x53a57b)['trim'](),'color':{'value':_0x479f1f,'title':_0x53a57b||_0x81a2fb}};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4b5211['commandName']){const _0x5d2fcd=_0x4b5211['commandParams'][0x0]['value'];if(_0x5d2fcd){const _0x1ed10f=_0x2e67d6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5f5e00=>_0x5f5e00['model']==_0x5d2fcd);let _0x54b1ab=_0x5d2fcd,_0x485c2c='';return _0x1ed10f&&(_0x54b1ab=_0x1ed10f['label'],_0x485c2c=_0xb2e909(_0x54b1ab)['toLowerCase']()),{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20background\x20color:*\x20%0',_0x485c2c)['trim'](),'color':{'value':_0x5d2fcd,'title':_0x485c2c||_0x54b1ab}};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x42a28f{afterInit(){const {plugins:_0x289b05}=this['editor'];_0x289b05['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x289b05['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x53cd41,plugins:_0xc68044,commands:_0x1d1a69}=this['editor'],_0x4ffda0=_0xc68044['get']('TrackChangesEditing');_0x1d1a69['get']('footnotesStyle')&&_0x4ffda0['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1d1a69['get']('footnotesStart')&&_0x4ffda0['enableDefaultAttributesIntegration']('footnotesStart'),_0x4ffda0['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x53cd41,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4ffda0['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x53cd41,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2842f3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x149ef7,commands:_0x334b1a}=this['editor'];_0x334b1a['get']('insertFootnote')&&_0x2842f3['enableCommand']('insertFootnote'),_0x2842f3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4dc8bd=>Mt(_0x149ef7,'ELEMENT_FOOTNOTE_REF',_0x4dc8bd)),_0x2842f3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x441f83=>Mt(_0x149ef7,'ELEMENT_FOOTNOTE_DEFINITION',_0x441f83)),_0x2842f3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2efbd3=>Mt(_0x149ef7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2efbd3));}},re=class extends _0x42a28f{afterInit(){const _0x38e9a0=this['editor'],_0x53948=_0x38e9a0['plugins']['get']('TrackChangesEditing'),_0xdea673=_0x38e9a0['commands']['get']('copyFormat'),_0x5f0241=_0x38e9a0['commands']['get']('pasteFormat');_0xdea673&&_0x5f0241&&(_0x53948['enableDefaultAttributesIntegration']('pasteFormat'),_0x53948['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x21bf5e=this['editor'],_0x20279d=_0x21bf5e['locale'];_0x21bf5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f287=>{if('formatBlock'!=_0x59f287['type']&&'formatInline'!=_0x59f287['type'])return;const {data:_0x4c86ac}=_0x59f287;if(_0x4c86ac&&'pasteFormat'===_0x4c86ac['commandName']){const _0x4315c1=[],_0xc73e00=_0x4c86ac['commandParams'][0x0];for(const [_0x1e55ef,_0x4fc7c8]of Object['entries'](_0xc73e00))_0x4315c1['push'](oe(_0x21bf5e,_0x1e55ef,_0x4fc7c8));return _0x4315c1['length']?{'type':'format','content':Mt(_0x20279d,'*Set\x20format\x20to:*\x20%0',_0x4315c1['join'](',\x20'))}:{'type':'format','content':Mt(_0x20279d,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x327e1a,_0x4dbba8,_0x443c38){const _0x552624=_0x327e1a['locale']['t'],_0x565839=_0x4dbba8['split'](/(?=[A-Z])/)['join']('\x20'),_0x1faba4=_0x552624(_0x565839['charAt'](0x0)['toUpperCase']()+_0x565839['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x443c38)return _0x1faba4;if('fontColor'===_0x4dbba8||'fontBackgroundColor'===_0x4dbba8){const _0x4b9c4d=_0x2e67d6(_0x327e1a['config']['get']('fontColor.colors'))['find'](_0x1984f1=>_0x1984f1['model']==_0x443c38);return _0x1faba4+'\x20('+(_0x4b9c4d?_0x552624(_0x4b9c4d['label'])['toLowerCase']():_0x443c38)+')';}if('fontSize'===_0x4dbba8&&isNaN(parseFloat(_0x443c38))){const _0x2d7dce=_0x327e1a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x327e1a['config']['get']('fontSize.options'))['find'](_0x49bd46=>_0x49bd46['model']==_0x443c38);return _0x1faba4+'\x20('+(_0x2d7dce?_0x552624(_0x2d7dce['title'])['toLowerCase']():_0x443c38)+')';}return _0x1faba4+'\x20('+_0x443c38+')';}var ae=class extends _0x42a28f{afterInit(){const _0x381a84=this['editor'];if(!_0x381a84['plugins']['has']('GeneralHtmlSupport')||!_0x381a84['plugins']['has']('DataSchema'))return;const _0xf8da02=_0x381a84['plugins']['get']('TrackChangesEditing'),_0x2c7611=_0x381a84['plugins']['get']('GeneralHtmlSupport'),_0x18e79d=_0x381a84['plugins']['get']('DataSchema'),_0x461b7b=_0x381a84['locale'],_0x16047f=new Set(['htmlContent']);for(const _0x2f78a2 of _0x18e79d['getDefinitionsForView'](/.*/,!0x1)){const _0x21a78d=_0x2f78a2['view'],_0x7d8af9=_0x2c7611['getGhsAttributeNameForElement'](_0x21a78d);_0x16047f['add'](_0x7d8af9),!_0x2f78a2['isInline']||_0x2f78a2['isObject']||'appliesToBlock'in _0x2f78a2&&_0x2f78a2['appliesToBlock']||_0xf8da02['descriptionFactory']['registerAttributeLabel'](_0x7d8af9,_0x21a78d),_0x2f78a2['model']['startsWith']('html')&&_0xf8da02['descriptionFactory']['registerElementLabel'](_0x2f78a2['model'],_0x332c65=>Mt(_0x461b7b,'ELEMENT_HTML_TAG',[_0x332c65,_0x21a78d]));}_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x461b7b,'FORMAT_RAW_HTML_CONTENT')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x461b7b,'FORMAT_HTML_LIST_ITEM')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x461b7b,'FORMAT_HTML_BULLETED_LIST')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x461b7b,'FORMAT_HTML_NUMBERED_LIST')),_0xf8da02['descriptionFactory']['registerDescriptionCallback'](_0x2cc57a=>{if('attribute'!==_0x2cc57a['type'])return;const _0x4769f8=_0x2cc57a['data'];if(!_0x4769f8||!_0x16047f['has'](_0x4769f8['key']))return;if('htmlContent'===_0x4769f8['key'])return{'type':'format','content':Mt(_0x461b7b,'*Change\x20%0\x20content*',Mt(_0x461b7b,'ELEMENT_RAW_HTML'))};const {setItems:_0x4a82ad,removeItems:_0x592abd}=function(_0x4cfb8d,_0x55a4a6,_0x15085c){const _0x4b7ab5=[],_0x79cb8=[],_0x260323=_0x4cfb8d['styles']??{},_0x5b69cd=_0x55a4a6['styles']??{};for(const _0xb223f2 of new Set([...Object['keys'](_0x260323),...Object['keys'](_0x5b69cd)]))_0x260323[_0xb223f2]!==_0x5b69cd[_0xb223f2]&&(void 0x0===_0x5b69cd[_0xb223f2]?_0x79cb8['push'](_0xb223f2):_0x4b7ab5['push'](_0xb223f2+'\x20('+_0x5b69cd[_0xb223f2]+')'));const _0x37b942=Mt(_0x15085c,'FORMAT_HTML_CLASS'),_0xf1caf1=new Set(_0x4cfb8d['classes']??[]),_0x1bd692=new Set(_0x55a4a6['classes']??[]),_0x503a39=[..._0x1bd692]['some'](_0x44f8a9=>!_0xf1caf1['has'](_0x44f8a9)),_0xbd07ba=[..._0xf1caf1]['some'](_0x1a9b60=>!_0x1bd692['has'](_0x1a9b60));_0x503a39&&_0x4b7ab5['push'](_0x37b942),_0xbd07ba&&_0x79cb8['push'](_0x37b942);const _0x51525d=Mt(_0x15085c,'FORMAT_HTML_ATTRIBUTE'),_0x480b42=_0x4cfb8d['attributes']??{},_0x8bcfe8=_0x55a4a6['attributes']??{};let _0x63061b=!0x1,_0x2ed863=!0x1;for(const _0x140891 of new Set([...Object['keys'](_0x480b42),...Object['keys'](_0x8bcfe8)]))_0x480b42[_0x140891]!==_0x8bcfe8[_0x140891]&&(void 0x0===_0x8bcfe8[_0x140891]?_0x2ed863=!0x0:_0x63061b=!0x0);return _0x63061b&&_0x4b7ab5['push'](_0x51525d),_0x2ed863&&_0x79cb8['push'](_0x51525d),{'setItems':_0x4b7ab5,'removeItems':_0x79cb8};}(_0x4769f8['oldValue']??{},_0x4769f8['newValue']??{},_0x461b7b);if(!_0x4a82ad['length']&&!_0x592abd['length'])return;const _0x149f18=[];return _0x4a82ad['length']&&_0x149f18['push'](Mt(_0x461b7b,'*Set\x20format:*\x20%0',_0x4a82ad['join'](',\x20'))),_0x592abd['length']&&_0x149f18['push'](Mt(_0x461b7b,'*Remove\x20format:*\x20%0',_0x592abd['join'](',\x20'))),{'type':'format','content':_0x149f18['join']('\x0a')};});}},ce=class extends _0x42a28f{_headingOptions;afterInit(){const _0x445873=this['editor'];if(!_0x445873['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x445873['config']['get']('heading.options');const _0x5add1d=_0x445873['locale'],_0x4a2676=_0x445873['plugins']['get']('TrackChangesEditing');_0x4a2676['enableDefaultAttributesIntegration']('heading');for(const _0x509f11 of this['_headingOptions'])'paragraph'!=_0x509f11['model']&&_0x4a2676['descriptionFactory']['registerElementLabel'](_0x509f11['model'],_0x24d7d8=>{const _0x2411fc=this['_getHeadingLevel'](_0x509f11['model']);return null!==_0x2411fc?_0x83a635(_0x24d7d8,_0x2411fc):_0xa067f7(_0x24d7d8,_0x509f11['title']);});function _0x83a635(_0x446e13,_0x396535){return Mt(_0x5add1d,'ELEMENT_HEADING',[_0x446e13,_0x396535]);}function _0xa067f7(_0x410a61,_0x845500){return Mt(_0x5add1d,'ELEMENT_HEADING_CUSTOM',[_0x410a61,_0x845500]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x27a779=this['editor'],_0x3b76b2=_0x27a779['locale'];function _0x27b121(_0x58d6d3,_0x5db92b){return Mt(_0x3b76b2,'ELEMENT_HEADING_CUSTOM',[_0x58d6d3,_0x5db92b]);}_0x27a779['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x496d3a=>{if('formatBlock'!=_0x496d3a['type'])return;const {data:_0x452265}=_0x496d3a;if(_0x452265&&'heading'==_0x452265['commandName']){const _0x21c5b0=_0x452265['commandParams'][0x0]['value'],_0x53de80=this['_getHeadingLevel'](_0x21c5b0);if(null!==_0x53de80)return{'type':'format','content':Mt(_0x3b76b2,'*Change\x20to:*\x20%0',(_0x43f2c2=0x1,_0x2f0124=_0x53de80,Mt(_0x3b76b2,'ELEMENT_HEADING',[_0x43f2c2,_0x2f0124])))};const _0x1f16c0=this['_headingOptions']['find'](_0x9fdbc4=>_0x9fdbc4['model']===_0x21c5b0)['title'];return{'type':'format','content':Mt(_0x3b76b2,'*Change\x20to:*\x20%0',_0x27b121(0x1,_0x1f16c0))};}var _0x43f2c2,_0x2f0124;});}_getHeadingLevel(_0x588bb2){const _0x291ac8=_0x588bb2['match'](/^heading(\d+)/);if(_0x291ac8)return _0x291ac8[0x1];const _0x4378a8=this['_headingOptions']?.['find'](_0x3008bd=>_0x3008bd['model']==_0x588bb2);if(_0x4378a8&&_0x4378a8['view']){const _0x4b21e6=_0x4378a8['view'],_0x2479e9=(_0x4b21e6['name']??_0x4b21e6)['match'](/^h(\d+)/);if(_0x2479e9)return _0x2479e9[0x1];}return null;}},le=class extends _0x42a28f{afterInit(){const _0x1f5ae2=this['editor'];if(!_0x1f5ae2['plugins']['has']('HighlightEditing'))return;const _0x4a3fd4=_0x1f5ae2['plugins']['get']('TrackChangesEditing'),_0x3f312b=_0x1f5ae2['locale'];_0x4a3fd4['enableDefaultAttributesIntegration']('highlight'),_0x4a3fd4['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x3f312b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e1f2a=this['editor'],_0x20caef=_0x2e1f2a['locale'];_0x2e1f2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccb63=>{if('formatInline'!=_0x2ccb63['type'])return;const {data:_0x50cf5d}=_0x2ccb63;if(_0x50cf5d&&'highlight'==_0x50cf5d['commandName']){const _0x3d190a=_0x20caef['t'],_0x45235b=_0x50cf5d['commandParams'][0x0]['value'];if(_0x45235b){const _0x304eec=_0x2e1f2a['config']['get']('highlight.options')['find'](_0x2fde01=>_0x2fde01['model']==_0x45235b),_0x16edc4=_0x3d190a(_0x304eec['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x20caef,'*Set\x20highlight:*\x20%0',_0x16edc4),'color':{'value':_0x304eec['color'],'title':_0x304eec['title']}};}return{'type':'format','content':Mt(_0x20caef,'*Remove\x20highlight*',Mt(_0x20caef,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x42a28f{afterInit(){const _0x2a53b1=this['editor'];if(!_0x2a53b1['plugins']['has']('HorizontalLineEditing'))return;_0x2a53b1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5166a2=_0x2a53b1['plugins']['get']('TrackChangesEditing'),_0x2e9f65=_0x2a53b1['locale'];_0x5166a2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5374e7=>Mt(_0x2e9f65,'ELEMENT_HORIZONTAL_LINE',_0x5374e7));}},de=class extends _0x42a28f{afterInit(){const _0x255e34=this['editor'];if(!_0x255e34['plugins']['has']('HtmlEmbed'))return;const _0x5d63a4=_0x255e34['plugins']['get']('TrackChangesEditing'),_0x1e761d=_0x255e34['locale'];_0x5d63a4['descriptionFactory']['registerElementLabel']('rawHtml',_0x424fc5=>Mt(_0x1e761d,'ELEMENT_HTML_EMBED',_0x424fc5)),_0x5d63a4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d63a4['descriptionFactory']['registerDescriptionCallback'](_0x3e8038=>{if('attribute'!=_0x3e8038['type'])return;const {data:_0x134091}=_0x3e8038;if(_0x134091&&'value'==_0x134091['key']&&_0x3e8038['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56b076=Mt(_0x1e761d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1e761d,'*Change\x20%0\x20content*',_0x56b076)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3021c3=this['editor'],_0x4d037d=_0x3021c3['locale'];_0x3021c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b945c=>{if('formatBlock'!=_0x3b945c['type'])return;const {data:_0x10f420}=_0x3b945c;if(_0x10f420&&'htmlEmbed'==_0x10f420['commandName']){const _0x3e5d2e=Mt(_0x4d037d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x4d037d,'*Change\x20%0\x20content*',_0x3e5d2e)};}});}},he=class extends _0x42a28f{afterInit(){const _0x42c5a0=this['editor'];if(!_0x42c5a0['plugins']['has']('ImageEditing'))return;const _0x4ad6ce=_0x42c5a0['plugins']['get']('TrackChangesEditing'),_0xf29aa3=_0x42c5a0['plugins']['get']('ImageUtils'),_0x5df051=_0x42c5a0['locale'];_0x4ad6ce['enableCommand']('insertImage'),_0x4ad6ce['descriptionFactory']['registerElementLabel']('imageBlock',_0x105e43=>Mt(_0x5df051,'ELEMENT_IMAGE',_0x105e43)),_0x4ad6ce['descriptionFactory']['registerElementLabel']('imageInline',_0x4954d2=>Mt(_0x5df051,'ELEMENT_INLINE_IMAGE',_0x4954d2)),_0x4ad6ce['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x5df051,'ELEMENT_CAPTION')),_0x42c5a0['plugins']['has']('ImageUploadEditing')&&_0x4ad6ce['enableCommand']('uploadImage'),_0x42c5a0['plugins']['has']('ImageBlockEditing')&&_0x42c5a0['plugins']['has']('ImageInlineEditing')&&(_0x4ad6ce['enableCommand']('imageTypeInline',(_0x5db709,_0x1dafce)=>{const _0x24aef1=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']);_0x42c5a0['model']['change'](()=>{_0x4ad6ce['markBlockFormat'](_0x24aef1,{'commandName':'imageTypeInline','commandParams':[_0x1dafce]},[],'convertBlockImageToInline');});}),_0x4ad6ce['enableCommand']('imageTypeBlock',(_0x8114e7,_0x4689f7)=>{_0x42c5a0['model']['change'](_0x5146ea=>{let _0x5b8b2f=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x493ac8=_0x5146ea['createRangeOn'](_0x5b8b2f);const _0x585ee5=st['fromPosition'](_0x493ac8['start'],'toPrevious'),_0xaabfa=st['fromPosition'](_0x493ac8['end'],'toNext');_0x4ad6ce['forceDefaultExecution'](()=>_0x8114e7(_0x4689f7)),_0x5b8b2f=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x493ac8=_0x5146ea['createRangeOn'](_0x5b8b2f);const _0x562890=_0x5146ea['createRange'](_0x585ee5,_0xaabfa);_0x585ee5['detach'](),_0xaabfa['detach'](),_0x4ad6ce['markBlockFormat'](_0x5b8b2f,{'commandName':'imageTypeInline','commandParams':[_0x4689f7]},[],'convertInlineImageToBlock'),_0x562890['start']['isBefore'](_0x493ac8['start'])&&_0x4ad6ce['markInsertion'](_0x5146ea['createRange'](_0x562890['start'],_0x493ac8['start']),'convertInlineImageToBlock'),_0x493ac8['end']['isBefore'](_0x562890['end'])&&_0x4ad6ce['markInsertion'](_0x5146ea['createRange'](_0x493ac8['end'],_0x562890['end']),'convertInlineImageToBlock');});}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ad6ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2a25e8])=>{const _0x3f7287=_0x4ad6ce['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x593ab0=_0x2a25e8['start'],_0x20fc4a=_0x2a25e8['end'];const _0x2f26f3=_0x42c5a0['model']['schema']['getNearestSelectionRange'](_0x593ab0,'backward'),_0x532fb5=_0x42c5a0['model']['schema']['getNearestSelectionRange'](_0x20fc4a,'forward');_0x2f26f3['isCollapsed']&&(_0x593ab0=_0x2f26f3['start']),_0x532fb5['isCollapsed']&&(_0x20fc4a=_0x532fb5['end']),_0x3f7287([_0x42c5a0['model']['createRange'](_0x593ab0,_0x20fc4a)]);}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x149ca0),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x149ca0)),_0x42c5a0['plugins']['has']('ImageCaptionEditing')&&(_0x4ad6ce['enableCommand']('toggleImageCaption',(_0x41908b,_0x5cc27c)=>{const _0x8b68a5=_0x42c5a0['plugins']['get']('ImageCaptionUtils');let _0x2c7575=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x160f09=_0x8b68a5['getCaptionFromImageModelElement'](_0x2c7575);_0x42c5a0['model']['change'](()=>{if(_0x160f09)return void _0x4ad6ce['markDeletion'](_0x42c5a0['model']['createRangeOn'](_0x160f09));const _0x7ca9c3=_0xf29aa3['isBlockImage'](_0x2c7575);_0x41908b(_0x5cc27c),_0x2c7575=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x160f09=_0x8b68a5['getCaptionFromImageModelElement'](_0x2c7575),_0x4ad6ce['markInsertion'](_0x42c5a0['model']['createRangeOn'](_0x160f09),_0x7ca9c3?null:'imageCaption');});}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x149ca0));const _0x2ab2fa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x416f98(_0x293edc,_0x4f4296){const _0x177709=_0x2ab2fa['findIndex'](({type:_0x142d4f,subType:_0x46ed58})=>_0x293edc['type']==_0x142d4f&&_0x293edc['subType']==_0x46ed58),_0x4d9610=_0x2ab2fa['findIndex'](({type:_0x52a19a,subType:_0x589b20})=>_0x4f4296['type']==_0x52a19a&&_0x4f4296['subType']==_0x589b20);if(_0x177709<0x0||_0x4d9610<0x0)return!0x1;const _0x387cad=_0x293edc['getFirstRange'](),_0x388fb2=_0x4f4296['getFirstRange']();if((0x0==_0x177709||0x1==_0x177709)&&0x2==_0x4d9610&&_0x387cad['isIntersecting'](_0x388fb2))return!0x0;if(0x2==_0x177709&&0x3==_0x4d9610){const _0xcda4e4=_0x4ad6ce['_findSuggestions'](_0x387cad,'insertion')['filter'](({suggestion:_0x2cd7c7,meta:_0x1f5655})=>_0x1f5655['isOwn']&&'convertInlineImageToBlock'==_0x2cd7c7['subType']);if(_0xcda4e4['length']>0x1&&_0x388fb2['end']['isEqual'](_0x387cad['start']))return!0x0;if(0x1==_0xcda4e4['length']&&(_0x387cad['start']['isEqual'](_0x388fb2['end'])||_0x387cad['end']['isEqual'](_0x388fb2['start'])))return!0x0;}if(0x3==_0x177709&&0x3==_0x4d9610&&_0x387cad['start']['isBefore'](_0x388fb2['start'])){const _0x3642d5=_0x387cad['end']['nodeAfter'],_0xc3b2e8=_0x388fb2['start']['nodeBefore'];return _0xf29aa3['isBlockImage'](_0x3642d5)&&_0x3642d5===_0xc3b2e8;}return!0x1;}function _0x149ca0(_0x3ace97,_0x217d9e){return _0x416f98(_0x3ace97,_0x217d9e)?[_0x3ace97,_0x217d9e]:_0x416f98(_0x217d9e,_0x3ace97)?[_0x217d9e,_0x3ace97]:null;}_0x42c5a0['plugins']['has']('ImageResize')&&(_0x4ad6ce['enableDefaultAttributesIntegration']('resizeImage'),_0x4ad6ce['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x5df051,'FORMAT_IMAGE_SIZE'))),_0x42c5a0['plugins']['has']('ImageTextAlternativeEditing')&&_0x4ad6ce['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42c5a0['plugins']['has']('PictureEditing')&&_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x3c6a3f=>{if('attribute'!=_0x3c6a3f['type'])return;const {data:_0x484dc1}=_0x3c6a3f;return _0x484dc1&&'sources'==_0x484dc1['key']?{'type':'format','content':''}:void 0x0;}),_0x42c5a0['plugins']['has']('ImageSizeAttributes')&&_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x56333e=>{if('attribute'!=_0x56333e['type'])return;const {data:_0x3060d4}=_0x56333e;return!_0x3060d4||'width'!=_0x3060d4['key']&&'height'!=_0x3060d4['key']?void 0x0:{'type':'format','content':''};}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x338220=>{if(_0x2ab2fa['find'](({type:_0x2305a4,subType:_0x2f8ef6})=>_0x338220['type']==_0x2305a4&&_0x338220['subType']==_0x2f8ef6))return _0x338220['previous']?{}:void 0x0;}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x4adf6c=>{if('insertion'==_0x4adf6c['type']||'deletion'==_0x4adf6c['type']){const _0x3c35c6=_0x4adf6c['getContainedElement']();if(_0x3c35c6&&_0x3c35c6['is']('element','caption'))return{'type':'insertion'==_0x4adf6c['type']?'addObject':'removeObject','element':_0x3c35c6,'quantity':0x1};}}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x120748=>'formatBlock'==_0x120748['type']&&'convertInlineImageToBlock'==_0x120748['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x120748['type']&&'convertBlockImageToInline'==_0x120748['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x45d666=>{if('attribute'!=_0x45d666['type'])return;const {data:_0x5b3018}=_0x45d666;if(!_0x5b3018||'alt'!=_0x5b3018['key'])return;const _0x3c47a6=_0x5b3018['newValue'];return _0x3c47a6?{'type':'format','content':Mt(_0x5df051,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c47a6+'\x22')}:{'type':'format','content':Mt(_0x5df051,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x11ea04=this['editor'],_0x2300ed=_0x11ea04['locale'];_0x11ea04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17dfe1=>{if('formatBlock'!=_0x17dfe1['type']&&'formatInline'!=_0x17dfe1['type'])return;const {data:_0x41b015}=_0x17dfe1;if(_0x41b015){if('imageTextAlternative'==_0x41b015['commandName']){const _0x4a716b=_0x41b015['commandParams'][0x0]['newValue'];return _0x4a716b?{'type':'format','content':Mt(_0x2300ed,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a716b+'\x22')}:{'type':'format','content':Mt(_0x2300ed,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41b015['commandName']){const _0x87e5e5=_0x41b015['commandParams'][0x0]['width'];return _0x87e5e5?{'type':'format','content':Mt(_0x2300ed,'*Set\x20image\x20width:*\x20%0',_0x87e5e5)}:{'type':'format','content':Mt(_0x2300ed,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x202a6c=this['editor']['locale'],_0x550426=this['editor']['plugins']['get']('TrackChangesEditing');_0x550426['enableDefaultAttributesIntegration']('replaceImageSource'),_0x550426['descriptionFactory']['registerDescriptionCallback'](_0x523079=>{if('attribute'!=_0x523079['type'])return;const {data:_0x3418df}=_0x523079;return _0x3418df&&'src'==_0x3418df['key']?_0x3418df['newValue']&&_0x3418df['oldValue']?{'type':'format','content':Mt(_0x202a6c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3ec819=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ec819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ec819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ec819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ec819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4d3897=this['editor'],_0x58145c=_0x4d3897['locale'];_0x4d3897['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17da70=>{if('formatBlock'!=_0x17da70['type']&&'formatInline'!=_0x17da70['type'])return;const {data:_0x1a9312}=_0x17da70;return _0x1a9312&&'replaceImageSource'==_0x1a9312['commandName']?{'type':'format','content':Mt(_0x58145c,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x42a28f{afterInit(){const _0x6aab46=this['editor'];if(!_0x6aab46['plugins']['has']('ImageStyleEditing'))return;const _0x4dc94e=_0x6aab46['plugins']['get']('TrackChangesEditing'),_0x962319=_0x6aab46['plugins']['get']('ImageUtils'),_0x1c24a7={};_0x4dc94e['enableCommand']('imageStyle',(_0x4dd477,_0x158d81)=>{const _0x1dc809=_0x6aab46['plugins']['get']('Users')['me'],_0x34a8bc=_0x6aab46['commands']['get']('imageStyle');let _0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),_0x1ece1a=_0x6aab46['model']['createRangeOn'](_0x192fb6),_0x52df9b=_0x34a8bc['value'];if(_0x52df9b==_0x158d81['value'])return;if(_0x158d81['value']&&_0x962319['isInlineImage'](_0x192fb6)&&!_0x34a8bc['isStyleEnabled'](_0x158d81['value']))return;const _0x5e96f8={'commandName':'imageStyle','commandParams':[_0x158d81],'formatGroupId':_0x5b5c0d()};_0x6aab46['model']['change'](()=>{if(_0x4dc94e['getSuggestions']()['filter'](_0x4fba5c=>_0x4fba5c['isInContent']&&_0x1dc809==_0x4fba5c['author']&&('formatBlock'==_0x4fba5c['type']||'formatInline'==_0x4fba5c['type'])&&('imageStylePreApply'==_0x4fba5c['subType']||'imageStylePostApply'==_0x4fba5c['subType'])&&_0x4fba5c['getFirstRange']()['isEqual'](_0x1ece1a))['forEach'](_0x1628ca=>_0x4dc94e['discardSuggestion'](_0x1628ca['head'])),_0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),_0x1ece1a=_0x6aab46['model']['createRangeOn'](_0x192fb6),_0x34a8bc['refresh'](),_0x6aab46['commands']['get']('imageTypeInline')['refresh'](),_0x6aab46['commands']['get']('imageTypeBlock')['refresh'](),_0x52df9b=_0x34a8bc['value'],_0x52df9b!=_0x158d81['value'])return _0x962319['isInlineImage'](_0x192fb6)&&_0x34a8bc['shouldConvertImageType'](_0x158d81['value'],_0x192fb6)?(_0x4dd477({..._0x158d81,'setImageSizes':!0x1}),_0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),void _0x4dc94e['markBlockFormat'](_0x192fb6,{..._0x5e96f8,'commandReversedParams':[{'value':_0x52df9b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x962319['isBlockImage'](_0x192fb6)?_0x4dc94e['markBlockFormat'](_0x192fb6,_0x5e96f8,[],'imageStylePostApply'):_0x4dc94e['markInlineFormat'](_0x1ece1a,_0x5e96f8,'imageStylePostApply'));});});for(const _0xc4f6c1 of _0x6aab46['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1c24a7[_0xc4f6c1['name']]=_0xc4f6c1['title']['toLowerCase']();_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2087f8])=>{_0x962319['setImageNaturalSizeAttributes'](_0x2087f8['getContainedElement']());}),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x178f8a,_0x3e5c0b)=>{_0x4dc94e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x178f8a,{'commandName':_0x3e5c0b['commandName'],'commandParams':_0x3e5c0b['commandReversedParams']});}),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52caff,_0x193287){return _0x4fa0de(_0x52caff,_0x193287)?[_0x52caff,_0x193287]:_0x4fa0de(_0x193287,_0x52caff)?[_0x193287,_0x52caff]:null;});const _0x4c93e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4fa0de(_0x197a7d,_0x520683){const _0x213e10=_0x4c93e0['findIndex'](({type:_0x2bd2aa,subType:_0x54aa4f})=>_0x197a7d['type']==_0x2bd2aa&&_0x197a7d['subType']==_0x54aa4f),_0x274224=_0x4c93e0['findIndex'](({type:_0x4b0163,subType:_0x405f36})=>_0x520683['type']==_0x4b0163&&_0x520683['subType']==_0x405f36);if(_0x213e10<0x0||_0x274224<0x0)return!0x1;const _0x30e49e=_0x197a7d['getFirstRange'](),_0x49a3b0=_0x520683['getFirstRange']();if((0x0==_0x213e10||0x1==_0x213e10)&&0x2==_0x274224&&_0x30e49e['isIntersecting'](_0x49a3b0))return!0x0;if(0x2==_0x213e10&&0x3==_0x274224){const _0x501c40=_0x4dc94e['_findSuggestions'](_0x30e49e,'insertion')['filter'](({suggestion:_0x4f31a2,meta:_0xd1d99e})=>_0xd1d99e['isOwn']&&'convertInlineImageToBlock'==_0x4f31a2['subType']);if(_0x501c40['length']>0x1&&_0x49a3b0['end']['isEqual'](_0x30e49e['start']))return!0x0;if(0x1==_0x501c40['length']&&(_0x30e49e['start']['isEqual'](_0x49a3b0['end'])||_0x30e49e['end']['isEqual'](_0x49a3b0['start'])))return!0x0;}if(0x3==_0x213e10&&0x3==_0x274224&&_0x30e49e['start']['isBefore'](_0x49a3b0['start'])){const _0x234f5c=_0x30e49e['end']['nodeAfter'],_0x1dd2e1=_0x49a3b0['start']['nodeBefore'];return _0x962319['isBlockImage'](_0x234f5c)&&_0x234f5c===_0x1dd2e1;}return!0x1;}_0x6aab46['model']['document']['registerPostFixer'](()=>{let _0x40434d=!0x1;const _0x169bde=Array['from'](_0x6aab46['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5539db,data:_0x32300f}of _0x169bde){const {group:_0x38cc14,type:_0x52eca1,subType:_0x53724b,id:_0x431877}=tt(_0x5539db);if('suggestion'==_0x38cc14&&_0x4dc94e['hasSuggestion'](_0x431877)){if('formatBlock'==_0x52eca1&&('imageStylePreApply'==_0x53724b||'imageStylePostApply'==_0x53724b)){const _0x387783=_0x4dc94e['getSuggestion'](_0x431877);if(_0x32300f['newRange']){const _0x888a18=_0x387783['getFirstRange']()['getContainedElement']();if(_0x962319['isBlockImage'](_0x888a18))continue;_0x4dc94e['discardSuggestion'](_0x387783),_0x40434d=!0x0;}}if('insertion'==_0x52eca1&&'imageCaption'==_0x53724b&&!_0x32300f['newRange']){const _0x111f5c=_0x4dc94e['getSuggestion'](_0x431877);_0x111f5c['next']&&_0x111f5c['next']['isInContent']&&(_0x4dc94e['discardSuggestion'](_0x111f5c['next']),_0x40434d=!0x0);}}}return _0x40434d;}),this['_registerLegacyDescription'](_0x1c24a7);}_registerLegacyDescription(_0x49d1e6){const _0x1beef7=this['editor'],_0x5a1e20=_0x1beef7['locale'];_0x1beef7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x271ab8=>{if('formatBlock'!=_0x271ab8['type']&&'formatInline'!=_0x271ab8['type'])return;const {data:_0x5c1400}=_0x271ab8;if(!_0x5c1400||'imageStyle'!=_0x5c1400['commandName'])return;const _0x1c440f=_0x5c1400['commandParams'][0x0]['value'];return _0x24f786('side'===_0x1c440f?Mt(_0x5a1e20,'FORMAT_SIDE_IMAGE'):_0x49d1e6[_0x1c440f]||_0x1c440f);function _0x24f786(_0x2573c1){return{'type':'format','content':Mt(_0x5a1e20,'*Format:*\x20%0',_0x2573c1)};}});}},me=class extends _0x42a28f{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x3dcf76){super(_0x3dcf76),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x4c8988=this['editor'],_0x198ad1=_0x4c8988['commands']['get']('importWord'),_0x44cb32=_0x4c8988['commands']['get']('trackChanges');_0x198ad1&&(_0x198ad1['on']('execute',(_0x519807,[,_0x34b34c])=>{this['_trackChangesValueDuringImport']=_0x44cb32['value'],_0x34b34c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x198ad1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x198ad1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x44cb32['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c8988['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0xd48205,_0x197366){const {suggestions:_0x5f45b5}=_0x197366,_0x5cc3cf=this['editor']['commands']['get']('trackChanges'),_0xc34bd=_0x5cc3cf['value'];this['_trackChangesValueDuringImport']!==_0xc34bd&&(_0x5cc3cf['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f45b5&&_0x5f45b5['forEach'](({id:_0x45915a,type:_0x44e245,author:_0x2509df,created_at:_0x4006e8})=>{const _0x26ff62={'id':_0x45915a,'type':_0x44e245,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2509df,'createdAt':_0x4006e8?new Date(_0x4006e8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x26ff62);});}},Ee=class extends _0x42a28f{afterInit(){const _0x44ed11=this['editor'],_0x304366=_0x44ed11['plugins']['get']('TrackChangesEditing');if(_0x44ed11['plugins']['has']('IndentEditing')&&(_0x304366['enableCommand']('indent'),_0x304366['enableCommand']('outdent')),_0x44ed11['plugins']['has']('IndentBlock')){for(const _0x3415dd of['indentBlock','outdentBlock'])_0x304366['enableDefaultAttributesIntegration'](_0x3415dd);if(_0x44ed11['plugins']['has']('ListEditing')){for(const _0x4fe5c0 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x304366['enableDefaultAttributesIntegration'](_0x4fe5c0);}}const _0x264877=_0x44ed11['locale'];_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x264877,'FORMAT_INDENT')),_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x264877,'FORMAT_INDENT')),_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x264877,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x29b3ef=this['editor'],_0x23d95b=_0x29b3ef['locale'],_0x4fd642=_0x29b3ef['plugins']['get']('TrackChangesEditing');_0x4fd642['descriptionFactory']['registerDescriptionCallback'](_0x1dc857=>{if('formatBlock'!=_0x1dc857['type'])return;const {data:_0x2ae70b}=_0x1dc857;if(!_0x2ae70b)return;if('indentBlock'!=_0x2ae70b['commandName']&&'outdentBlock'!=_0x2ae70b['commandName'])return;const _0x295acc=_0x1dc857['getItems']()[0x0],_0x2b9a9f=_0x4fd642['descriptionFactory']['getItemLabel'](_0x295acc);return'indentBlock'==_0x2ae70b['commandName']?{'type':'format','content':Mt(_0x23d95b,'*Indent:*\x20%0',_0x2b9a9f)}:'outdentBlock'==_0x2ae70b['commandName']?{'type':'format','content':Mt(_0x23d95b,'*Outdent:*\x20%0',_0x2b9a9f)}:void 0x0;});}},Te=class extends _0x42a28f{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x42a28f{afterInit(){const _0x19fbdc=this['editor'];if(!_0x19fbdc['plugins']['has']('LinkEditing'))return;const _0x2bfb1a=_0x19fbdc['plugins']['get']('TrackChangesEditing'),_0x8ddf4c=_0x19fbdc['commands']['get']('link');_0x2bfb1a['enableDefaultAttributesIntegration']('link'),_0x2bfb1a['enableDefaultAttributesIntegration']('unlink');for(const _0x2641b5 of _0x8ddf4c['manualDecorators'])_0x2bfb1a['descriptionFactory']['registerAttributeLabel'](_0x2641b5['id'],'link\x20('+_0x2641b5['label']['toLowerCase']()+')');_0x2bfb1a['descriptionFactory']['registerDescriptionCallback'](_0x2184ab=>{if('attribute'!=_0x2184ab['type'])return;const {data:_0x3b8645}=_0x2184ab;if(!_0x3b8645||'linkHref'!=_0x3b8645['key'])return;const _0x59f198=_0x3b8645['newValue'],_0x3d0400=_0x19fbdc['locale'];return{'type':'format','content':null==_0x59f198?Mt(_0x3d0400,'*Remove\x20link*'):Mt(_0x3d0400,'*Set\x20link:*\x20%0','\x22'+_0x59f198+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x548e3e=this['editor'],_0x501067=_0x548e3e['locale'];_0x548e3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c633c=>{if('formatInline'!=_0x4c633c['type'])return;const {data:_0xd5d7e8}=_0x4c633c;if(_0xd5d7e8){if('link'==_0xd5d7e8['commandName']){const _0x35997f=_0xd5d7e8['commandParams'][0x0];return{'type':'format','content':Mt(_0x501067,'*Set\x20link:*\x20%0','\x22'+_0x35997f+'\x22')};}return'unlink'==_0xd5d7e8['commandName']?{'type':'format','content':Mt(_0x501067,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x42a28f{afterInit(){const _0x43453a=this['editor'],_0x1161ec=_0x43453a['locale'];if(!_0x43453a['plugins']['has']('LegacyListEditing'))return;const _0x94bc2d=_0x43453a['plugins']['get']('TrackChangesEditing'),_0x29f7d3=_0x43453a['plugins']['has']('LegacyTodoListEditing');function _0x431d90(_0x47dd9d){return()=>{const _0x38a953=_0x43453a['model']['document']['selection'],_0x2251ff=_0x43453a['commands']['get'](_0x47dd9d);if(_0x2251ff['value'])return void _0x43453a['execute']('paragraph',{});const _0x51430b=_0x47dd9d['slice'](0x0,-0x4),_0x13e0ed=function(_0x466fe9,_0x3be9e8,_0x5c362f){let _0x4d9200=Array['from'](_0x466fe9)['filter'](_0x356214=>function(_0x1726f0,_0x527f74){return _0x527f74['checkChild'](_0x1726f0['parent'],'listItem')&&!_0x527f74['isObject'](_0x1726f0);}(_0x356214,_0x5c362f));_0x4d9200=_0x4d9200['filter'](_0x571348=>!_0x571348['is']('element','listItem')||_0x571348['getAttribute']('listType')!=_0x3be9e8);const _0x4e294b=new Set();for(const _0x15c765 of _0x4d9200)_0x15c765['is']('element','listItem')?_0x4e294b['add'](Le(_0x15c765)):_0x4e294b['add'](_0x15c765);return Array['from'](_0x4e294b);}(_0x38a953['getSelectedBlocks'](),_0x51430b,_0x43453a['model']['schema']);_0x43453a['model']['change'](()=>{for(const _0xeac4f4 of _0x13e0ed)_0x94bc2d['markBlockFormat'](_0xeac4f4,{'commandName':_0x47dd9d,'commandParams':[{'forceValue':!_0x2251ff['value']}],'formatGroupId':'blockName'},Ie(_0xeac4f4));});};}function _0x58c471(_0x345434){return()=>{const _0x375226=function(_0x177c30){let _0x5c69ca=Array['from'](_0x177c30);const _0x23c392=_0x5c69ca['findIndex'](_0x2e3868=>'listItem'!=_0x2e3868['name']);return _0x23c392>-0x1&&(_0x5c69ca=_0x5c69ca['slice'](0x0,_0x23c392)),_0x5c69ca;}(_0x43453a['model']['document']['selection']['getSelectedBlocks']()),_0x1782e8=_0x43453a['model']['createRange'](_0x43453a['model']['createPositionAt'](_0x375226[0x0],'before'),_0x43453a['model']['createPositionAt'](_0x375226[_0x375226['length']-0x1],'end'));_0x43453a['model']['change'](()=>{_0x94bc2d['markBlockFormat'](_0x1782e8,{'commandName':_0x345434,'commandParams':[],'formatGroupId':'listIndent'},function(_0x257671){const _0x2729df=new Set();for(const _0x35c56e of _0x257671){let _0x1e7f44=_0x35c56e['nextSibling'];for(;_0x1e7f44&&_0x1e7f44['getAttribute']('listIndent')>_0x35c56e['getAttribute']('listIndent');)_0x2729df['add'](_0x1e7f44),_0x1e7f44=_0x1e7f44['nextSibling'];}return Array['from'](_0x2729df);}(_0x375226));});};}_0x94bc2d['enableCommand']('numberedList',_0x431d90('numberedList')),_0x94bc2d['enableCommand']('bulletedList',_0x431d90('bulletedList')),_0x29f7d3&&_0x94bc2d['enableCommand']('todoList',_0x431d90('todoList')),_0x94bc2d['enableCommand']('indentList',_0x58c471('indentList')),_0x94bc2d['enableCommand']('outdentList',_0x58c471('outdentList')),_0x29f7d3&&_0x94bc2d['enableCommand']('checkTodoList',()=>{const _0x3ec8cb=_0x43453a['commands']['get']('checkTodoList'),_0x3d099d=Array['from'](_0x3ec8cb['_selectedElements']);_0x3d099d['filter'](_0x5c91d6=>_0x5c91d6['getAttribute']('todoListChecked')!=_0x3ec8cb['value']),_0x43453a['model']['change'](()=>{for(const _0xe6dd4e of _0x3d099d)_0x94bc2d['markBlockFormat'](_0xe6dd4e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3ec8cb['value']}]});});}),_0x94bc2d['descriptionFactory']['registerElementLabel']('listItem',_0x1dc199=>Mt(_0x1161ec,'ELEMENT_LIST_ITEM',_0x1dc199)),_0x94bc2d['descriptionFactory']['registerDescriptionCallback'](_0x19415e=>{if('formatBlock'!=_0x19415e['type']&&'formatInline'!=_0x19415e['type'])return;const {data:_0x225826}=_0x19415e;if(_0x225826){if('numberedList'==_0x225826['commandName']||'bulletedList'==_0x225826['commandName']||'todoList'==_0x225826['commandName'])switch(_0x225826['commandName']['replace']('List','')){case'bulleted':return _0x3be608(Mt(_0x1161ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3be608(Mt(_0x1161ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3be608(Mt(_0x1161ec,'ELEMENT_TODO_LIST'));}if('indentList'==_0x225826['commandName'])return{'type':'format','content':Mt(_0x1161ec,'*Indent:*\x20%0',Mt(_0x1161ec,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x225826['commandName'])return{'type':'format','content':Mt(_0x1161ec,'*Outdent:*\x20%0',Mt(_0x1161ec,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x225826['commandName'])return _0x225826['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1161ec,'*Check\x20item*')}:{'type':'format','content':Mt(_0x1161ec,'*Uncheck\x20item*')};}function _0x3be608(_0x408b98){return{'type':'format','content':Mt(_0x1161ec,'*Change\x20to:*\x20%0',_0x408b98)};}});}};function Le(_0x2cccf5){const _0x498e34=_0x2cccf5['getAttribute']('listIndent');if(0x0==_0x498e34)return _0x2cccf5;let _0x44a7b3=_0x2cccf5;for(;_0x2cccf5['previousSibling']&&_0x2cccf5['previousSibling']['is']('element','listItem');){const _0x4d2489=_0x2cccf5['previousSibling']['getAttribute']('listIndent');if(_0x4d2489==_0x498e34)_0x44a7b3=_0x2cccf5['previousSibling'];else{if(_0x4d2489<_0x498e34)break;}_0x2cccf5=_0x2cccf5['previousSibling'];}return _0x44a7b3;}function Ie(_0x254bac){const _0x22ba02=[];if(_0x254bac['is']('element','listItem')&&_0x254bac['getAttribute']('listIndent')>0x0){let _0x31a91b=_0x254bac['nextSibling'];for(;_0x31a91b&&'listItem'==_0x31a91b['name']&&_0x31a91b['getAttribute']('listIndent')==_0x254bac['getAttribute']('listIndent');)_0x22ba02['push'](_0x31a91b),_0x31a91b=_0x31a91b['nextSibling'];}return _0x22ba02;}var Ae=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1e1769=this['editor']['config']['get']('list.properties'),_0x1b131a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e1769['styles']&&_0x1b131a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1e1769['reversed']&&_0x1b131a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1e1769['startIndex']&&_0x1b131a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b131a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x43162f,_0x59158e={}){const _0x2c4646=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d8a88=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2c4646['markMultiRangeBlockFormat'](_0x5d8a88,{'commandName':'listStyle','commandParams':[{'type':_0x59158e['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x3f779f,_0x34cd3={}){const _0x5d350a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ea537=this['_getSuggestionBlocks'](_0x51bf1b=>_0x51bf1b['is']('element','listItem')&&'numbered'===_0x51bf1b['getAttribute']('listType'));if(_0x3ea537['length']<0x1)return;const _0x390806=_0x3ea537['map'](_0x5778dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5778dd,'before'),this['editor']['model']['createPositionAt'](_0x5778dd,0x0)));this['editor']['model']['change'](()=>{_0x5d350a['markMultiRangeBlockFormat'](_0x390806,{'commandName':'listReversed','commandParams':[{'reversed':_0x34cd3['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x6fc801,_0x16c781={}){const _0x43b05e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x196a5a=this['_getSuggestionBlocks'](_0x3446be=>_0x3446be['is']('element','listItem')&&'numbered'===_0x3446be['getAttribute']('listType'));if(_0x196a5a['length']<0x1)return;const _0x479889=_0x196a5a['map'](_0x5d7d03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d7d03,'before'),this['editor']['model']['createPositionAt'](_0x5d7d03,0x0)));this['editor']['model']['change'](()=>{_0x43b05e['markMultiRangeBlockFormat'](_0x479889,{'commandName':'listStart','commandParams':[{'startIndex':_0x16c781['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x2e4031){if('formatBlock'!=_0x2e4031['type']&&'formatInline'!=_0x2e4031['type'])return;const _0x53b977=this['editor']['locale'],{data:_0x31fe01}=_0x2e4031;if(!_0x31fe01)return;let _0x3aea6f,_0x4e2182;switch(_0x31fe01['commandName']){case'listStyle':_0x3aea6f='*Change\x20to:*\x20%0',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f,Mt(_0x53b977,this['_getTranslationKeyForListStyle'](_0x31fe01['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3aea6f=_0x31fe01['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f)};break;case'listStart':_0x3aea6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f,_0x31fe01['commandParams'][0x0]['startIndex'])};}return _0x4e2182;}_getSuggestionBlocksForListStyle(){const _0x481916=this['editor']['plugins']['get']('LegacyListUtils');let _0x890f65=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x890f65[0x0]?.['is']('element','listItem')&&_0x890f65['unshift'](..._0x481916['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x890f65[_0x890f65['length']-0x1]?.['is']('element','listItem')&&_0x890f65['push'](..._0x481916['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x890f65=[...new Set(_0x890f65)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x890f65=_0x890f65['filter'](_0x373679=>_0x373679['is']('element','listItem'))),_0x890f65;}_getSuggestionBlocks(_0x276a11){const _0x390882=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c03c4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x276a11)['map'](_0x205c74=>{const _0x4e7f5b=this['editor']['model']['createPositionAt'](_0x205c74,0x0);return[..._0x390882['getSiblingNodes'](_0x4e7f5b,'backward'),..._0x390882['getSiblingNodes'](_0x4e7f5b,'forward')];})['flat']();return _0x2c03c4=[...new Set(_0x2c03c4)],_0x2c03c4;}_getTranslationKeyForListStyle(_0x226b36){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x226b36)||'default')['toUpperCase']()+'_LIST_'+_0x226b36['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x42a28f{afterInit(){const _0x56c2a8=this['editor'];if(!_0x56c2a8['plugins']['has']('MediaEmbedEditing'))return;const _0x29104a=_0x56c2a8['plugins']['get']('TrackChangesEditing'),_0x5f459b=_0x56c2a8['locale'];_0x29104a['enableCommand']('mediaEmbed'),_0x29104a['descriptionFactory']['registerElementLabel']('media',_0x5ec1c1=>Mt(_0x5f459b,'ELEMENT_MEDIA',_0x5ec1c1)),_0x56c2a8['plugins']['has']('MediaEmbedResizeEditing')&&(_0x29104a['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x29104a['descriptionFactory']['registerDescriptionCallback'](_0x3d9930=>{if('attribute'!=_0x3d9930['type'])return;const {data:_0x15d9ba}=_0x3d9930;if(!_0x15d9ba||'resizedWidth'!=_0x15d9ba['key'])return;const _0x1c59ee=_0x3d9930['getContainedElement']();if(!_0x1c59ee||!_0x1c59ee['is']('element','media'))return;const _0x325f41=Mt(_0x5f459b,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x5f459b,'*Set\x20format:*\x20%0',_0x325f41)};}));}},ke=class extends _0x42a28f{afterInit(){const _0x47bc73=this['editor'];if(!_0x47bc73['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2cbfc1=_0x47bc73['plugins']['get']('TrackChangesEditing'),_0x44e4ca=_0x47bc73['locale'],_0x59961a=_0x47bc73['plugins']['get']('MediaEmbedStyleEditing'),_0x359d76={};for(const _0x3f1432 of _0x59961a['normalizedStyles'])_0x359d76[_0x3f1432['name']]=_0x3f1432['title']['toLowerCase']();const _0x1f54d5=_0x59961a['normalizedStyles']['find'](_0x487ae2=>_0x487ae2['isDefault'])?.['name'];_0x2cbfc1['enableCommand']('mediaStyle',(_0x45a9b8,_0x33e96d)=>{const _0x3f0291=_0x47bc73['plugins']['get']('Users')['me'],_0xb95333=_0x47bc73['commands']['get']('mediaStyle'),_0x5c1e07=function(_0x3bc203){const _0x6a92fd=_0x3bc203['model']['document']['selection']['getSelectedElement']();return _0x6a92fd&&_0x6a92fd['is']('element','media')?_0x6a92fd:null;}(_0x47bc73);if(!_0x5c1e07)return;const _0x27891a=_0x47bc73['model']['createRangeOn'](_0x5c1e07);let _0xd50d40=_0xb95333['value'];if(_0xd50d40==_0x33e96d['value'])return;const _0x48d59c={'commandName':'mediaStyle','commandParams':[_0x33e96d],'formatGroupId':_0x5b5c0d()};_0x47bc73['model']['change'](()=>{_0x2cbfc1['getSuggestions']()['filter'](_0xded657=>_0xded657['isInContent']&&_0x3f0291==_0xded657['author']&&'formatBlock'==_0xded657['type']&&'mediaStylePostApply'==_0xded657['subType']&&_0xded657['getFirstRange']()['isEqual'](_0x27891a))['forEach'](_0x488f4d=>_0x2cbfc1['discardSuggestion'](_0x488f4d['head'])),_0xb95333['refresh'](),_0xd50d40=_0xb95333['value'],_0xd50d40!=_0x33e96d['value']&&_0x2cbfc1['markBlockFormat'](_0x5c1e07,{..._0x48d59c,'commandReversedParams':[{'value':'string'==typeof _0xd50d40?_0xd50d40:null}]},[],'mediaStylePostApply');});}),_0x2cbfc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2cbfc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x3eb3c9,_0x37b9dc)=>{_0x2cbfc1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3eb3c9,{'commandName':_0x37b9dc['commandName'],'commandParams':_0x37b9dc['commandReversedParams']});}),_0x2cbfc1['descriptionFactory']['registerDescriptionCallback'](_0x23ddb5=>{if('formatBlock'!=_0x23ddb5['type'])return;const {data:_0x5787d7}=_0x23ddb5;if(!_0x5787d7||'mediaStyle'!=_0x5787d7['commandName'])return;const _0xe3ddda=_0x5787d7['commandParams'][0x0]['value']||_0x1f54d5;if(!_0xe3ddda)return;const _0xf70163=_0x359d76[_0xe3ddda]||_0xe3ddda;return{'type':'format','content':Mt(_0x44e4ca,'*Format:*\x20%0',_0xf70163)};});}},Ce=class extends _0x42a28f{afterInit(){const _0x49ca71=this['editor'];_0x49ca71['plugins']['has']('MentionEditing')&&_0x49ca71['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x42a28f{afterInit(){const _0x13879b=this['editor'];if(!_0x13879b['plugins']['has']('MergeFieldsEditing'))return;const _0x1a5999=_0x13879b['plugins']['get']('TrackChangesEditing'),_0x43f203=_0x13879b['locale'];_0x1a5999['enableCommand']('insertMergeField'),_0x1a5999['enableCommand']('insertMergeFieldBlock'),_0x1a5999['enableCommand']('insertMergeFieldImage'),_0x1a5999['descriptionFactory']['registerElementLabel']('mergeField',_0x443260=>Mt(_0x43f203,'ELEMENT_MERGE_FIELD',_0x443260)),_0x1a5999['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x43e77a=>Mt(_0x43f203,'ELEMENT_MERGE_FIELD',_0x43e77a)),_0x1a5999['descriptionFactory']['registerDescriptionCallback'](_0x59999a=>{if('insertion'!=_0x59999a['type']&&'deletion'!=_0x59999a['type'])return;const _0x1a390d=_0x59999a['getContainedElement']();if(null==_0x1a390d)return;const _0x31946b=_0x13879b['plugins']['get']('MergeFieldsEditing');let _0x47f2d2;switch(_0x31946b['getMergeFieldType'](_0x1a390d)){case null:return;case'image':{const _0x588115=_0x31946b['unwrapAffixes'](_0x1a390d['getAttribute']('src'));_0x47f2d2=_0x31946b['getLabel'](_0x588115)||_0x588115;break;}default:{const _0xfb738=_0x1a390d['getAttribute']('id');_0x47f2d2=_0x31946b['getLabel'](_0xfb738)||_0xfb738;break;}}return'insertion'==_0x59999a['type']?{'type':'insertion','content':Mt(_0x43f203,'*Insert:*\x20%0','\x22'+_0x47f2d2+'\x22\x20'+Mt(_0x43f203,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x43f203,'*Remove:*\x20%0','\x22'+_0x47f2d2+'\x22\x20'+Mt(_0x43f203,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x42a28f{afterInit(){const _0x2e60b3=this['editor'],_0x13e40c=_0x2e60b3['plugins']['get']('TrackChangesEditing');_0x2e60b3['plugins']['has']('MultiLevelList')&&(_0x13e40c['enableDefaultAttributesIntegration']('multiLevelList'),_0x13e40c['descriptionFactory']['registerDescriptionCallback'](_0x5bc3d2=>this['handleDescriptions'](_0x5bc3d2)));}handleDescriptions(_0x2f9b58){const _0x538551=this['editor']['locale'],{data:_0x5e6b42}=_0x2f9b58,_0x193dc8={'type':'format','content':''};if(_0x5e6b42&&'listMarkerStyle'==_0x5e6b42['key']){if(!_0x5e6b42['oldValue'])return{'type':'format','content':Mt(_0x538551,'*Set\x20format:*\x20%0',Mt(_0x538551,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e6b42['newValue']+')'};if(!_0x5e6b42['newValue']){let _0x16073d=_0x2f9b58['head'];for(;_0x16073d;){if(_0x16073d['data']&&'listType'==_0x16073d['data']['key']&&_0x16073d['data']['newValue'])return _0x193dc8;_0x16073d=_0x16073d['next'];}return{'type':'format','content':Mt(_0x538551,'*Remove\x20format:*\x20%0',Mt(_0x538551,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e6b42['oldValue']+')'};}}}},Ne=class extends _0x42a28f{afterInit(){const _0x5b8f1c=this['editor'];if(!_0x5b8f1c['plugins']['has']('PageBreakEditing'))return;_0x5b8f1c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x161b4c=_0x5b8f1c['plugins']['get']('TrackChangesEditing'),_0x3dbe6d=_0x5b8f1c['locale'];_0x161b4c['descriptionFactory']['registerElementLabel']('pageBreak',_0x40b632=>Mt(_0x3dbe6d,'ELEMENT_PAGE_BREAK',_0x40b632));}},Se=class extends _0x42a28f{afterInit(){const _0x365284=this['editor'];if(!_0x365284['plugins']['has']('Paragraph'))return;const _0x13e3cc=_0x365284['locale'],_0x2ca794=_0x365284['plugins']['get']('TrackChangesEditing');_0x2ca794['descriptionFactory']['registerElementLabel']('paragraph',_0x5a586b=>Mt(_0x13e3cc,'ELEMENT_PARAGRAPH',_0x5a586b)),_0x2ca794['enableDefaultAttributesIntegration']('paragraph'),_0x2ca794['enableCommand']('insertParagraph');const _0x48440f=_0x2ca794['descriptionFactory'];_0x48440f['registerDescriptionCallback'](_0xf0e542=>{if('insertion'!==_0xf0e542['type'])return;const {start:_0x4c3187,end:_0xda35a6}=_0xf0e542['getFirstRange']();if(!_0x4c3187['isTouching'](_0xda35a6)||!_0x4c3187['nodeAfter'])return;const _0x5a169b=_0x365284['model']['schema'],_0x36dfe6=_0x4c3187['nodeAfter'];return _0x5a169b['isBlock'](_0x36dfe6)&&!_0x5a169b['isLimit'](_0x36dfe6)&&_0x5a169b['checkChild'](_0x36dfe6,'$text')?{'type':'insertion','content':Mt(_0x13e3cc,'*Insert:*\x20%0',_0x48440f['getItemLabel'](_0x36dfe6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dc38b=this['editor'],_0x31bc2a=_0x2dc38b['locale'];_0x2dc38b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f5ff=>{if('formatBlock'!=_0x59f5ff['type'])return;const {data:_0x404f77}=_0x59f5ff;return _0x404f77&&'paragraph'==_0x404f77['commandName']?{'type':'format','content':Mt(_0x31bc2a,'*Change\x20to:*\x20%0',Mt(_0x31bc2a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x42a28f{afterInit(){const _0x322428=this['editor'];_0x322428['commands']['get']('replaceSource')&&_0x322428['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x42a28f{afterInit(){const _0x5280dc=this['editor'];_0x5280dc['plugins']['has']('RemoveFormatEditing')&&(_0x5280dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x57b76f=this['editor'];_0x57b76f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x89019b=>{if('formatBlock'!=_0x89019b['type']&&'formatInline'!=_0x89019b['type'])return;const {data:_0x54a82d}=_0x89019b;return _0x54a82d&&'removeFormat'==_0x54a82d['commandName']?{'type':'format','content':Mt(_0x57b76f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x42a28f{afterInit(){const _0x3130d5=this['editor'];if(!_0x3130d5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x64cf97=_0x3130d5['plugins']['get']('TrackChangesEditing');_0x64cf97['enableCommand']('goToPreviousRestrictedEditingException'),_0x64cf97['enableCommand']('goToNextRestrictedEditingException');const _0x42f4b9=_0x3130d5['plugins']['get']('RestrictedEditingModeEditing');_0x42f4b9['enableCommand']('trackChanges'),_0x42f4b9['enableCommand']('acceptSuggestion'),_0x42f4b9['enableCommand']('discardSuggestion'),_0x42f4b9['enableCommand']('acceptAllSuggestions'),_0x42f4b9['enableCommand']('discardAllSuggestions'),_0x42f4b9['enableCommand']('acceptSelectedSuggestions'),_0x42f4b9['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x42a28f{afterInit(){const _0x113a36=this['editor'];if(!_0x113a36['plugins']['has']('ShiftEnter'))return;const _0x1931e4=_0x113a36['plugins']['get']('TrackChangesEditing');_0x1931e4['enableCommand']('shiftEnter'),_0x1931e4['descriptionFactory']['registerElementLabel']('softBreak',_0x29e3ff=>Mt(_0x113a36['locale'],'ELEMENT_LINE_BREAK',_0x29e3ff));}};function Be(_0x5d4a47,_0x4d897f,_0x366e38){const _0x446c19=[];for(const _0x9a97a6 of _0x4d897f['getItems']())_0x9a97a6['hasAttribute'](_0x5d4a47)&&_0x446c19['push'](_0x366e38['createRangeOn'](_0x9a97a6));return _0x446c19;}var ve=class extends _0x42a28f{afterInit(){const _0xca7bc8=this['editor'],_0x2cd971=_0xca7bc8['plugins']['get']('TrackChangesEditing');_0xca7bc8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2cd971['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x167598=this['editor'],_0x30d0ac=_0x167598['model'],_0x492c3e=_0x167598['locale'],_0x578018=_0x167598['plugins']['get']('TrackChangesEditing'),_0x2d8463='restrictedEditingException',_0x481a60=_0x167598['commands']['get'](_0x2d8463);_0x578018['enableCommand'](_0x2d8463,(_0x512513,_0x1299a9={})=>{const _0x706875=_0x30d0ac['document']['selection'];if(_0x706875['isCollapsed'])return void _0x512513(_0x1299a9);const _0x4be460=void 0x0!==_0x1299a9['forceValue']?_0x1299a9['forceValue']:!_0x481a60['value'];_0x30d0ac['change'](()=>{const _0x2ec3b8=Array['from'](_0x706875['getRanges']());for(const _0x143912 of _0x2ec3b8){const _0x3f7f2b=_0x4be460?[_0x143912]:Be(_0x2d8463,_0x143912,_0x30d0ac);for(const _0x7bab34 of _0x3f7f2b)_0x578018['markInlineFormat'](_0x7bab34,{'commandName':_0x2d8463,'commandParams':[{'forceValue':_0x4be460}]});}});}),_0x578018['descriptionFactory']['registerDescriptionCallback'](_0x5bfe23=>{if('formatBlock'!=_0x5bfe23['type']&&'formatInline'!=_0x5bfe23['type'])return;const {data:_0x210ae0}=_0x5bfe23;return _0x210ae0&&_0x210ae0['commandName']==_0x2d8463?_0x210ae0['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x492c3e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x492c3e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x55ec1e=this['editor'],_0x15b046=_0x55ec1e['locale'],_0x5ecdad=_0x55ec1e['plugins']['get']('TrackChangesEditing'),_0x58dbe0='restrictedEditingExceptionBlock',_0x491caa=this['editor']['commands']['get'](_0x58dbe0);_0x5ecdad['enableCommand'](_0x58dbe0,(_0xb242f0,_0xa0c88a={})=>{const _0x32f8fe=this['editor']['model']['document']['selection'],_0x4d53ea=_0xa0c88a&&void 0x0!==_0xa0c88a['forceValue']?_0xa0c88a['forceValue']:!_0x491caa['value'];let _0x2cb6e2=[];if(_0x4d53ea){const _0x75c150=Array['from'](_0x32f8fe['getSelectedBlocks']())['filter'](_0x6d0a39=>function(_0x587966){return!!_0x587966['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x6d0a39)||function(_0x108748,_0x3874da){const _0x1b8088=_0x3874da['createContext'](_0x108748['parent']);return!!_0x3874da['checkChild'](_0x1b8088,'restrictedEditingException')&&!!_0x3874da['checkChild'](_0x1b8088['push']('restrictedEditingException'),_0x108748);}(_0x6d0a39,this['editor']['model']['schema']));_0x2cb6e2=bt(_0x75c150,_0x55ec1e['model']);}else{const _0x5396b9=Array['from'](_0x32f8fe['getSelectedBlocks']())['map'](_0xd5c64d=>function(_0x516b35){let _0x3922e9=_0x516b35;for(;_0x3922e9['parent'];){if('restrictedEditingException'==_0x3922e9['parent']['name'])return _0x3922e9;_0x3922e9=_0x3922e9['parent'];}return null;}(_0xd5c64d))['filter'](_0x378797=>!!_0x378797);_0x2cb6e2=bt(_0x5396b9,_0x55ec1e['model']);}_0x55ec1e['model']['change'](()=>{for(const _0x3a2b2a of _0x2cb6e2)_0x5ecdad['markBlockFormat'](_0x3a2b2a,{'commandName':_0x58dbe0,'commandParams':[{'forceValue':_0x4d53ea}]});});}),_0x5ecdad['descriptionFactory']['registerDescriptionCallback'](_0x1efe39=>{const {data:_0x57b4d0}=_0x1efe39;if(_0x57b4d0&&_0x57b4d0['commandName']==_0x58dbe0)return _0x57b4d0['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x15b046,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x15b046,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x42a28f{afterInit(){const _0x1ecd9e=this['editor'];_0x1ecd9e['plugins']['has']('Style')&&_0x1ecd9e['plugins']['has']('DataSchema')&&(_0x1ecd9e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x481ad6=this['editor'],_0x4d1156=_0x481ad6['locale'];_0x481ad6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10823d=>{if('formatBlock'!=_0x10823d['type']&&'formatInline'!=_0x10823d['type'])return;const {data:_0x9b76c}=_0x10823d;return _0x9b76c&&'style'===_0x9b76c['commandName']?_0x9b76c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4d1156,'*Set\x20format:*\x20%0',_0x9b76c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x4d1156,'*Remove\x20format:*\x20%0',_0x9b76c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x42a28f{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x54f19c){super(_0x54f19c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x26aeb8=this['editor'],_0x2ceb87=_0x26aeb8['model']['document']['selection'];if(!_0x26aeb8['plugins']['has']('TableEditing'))return;const _0x3b1396=_0x26aeb8['locale'],_0x57a083=_0x26aeb8['plugins']['get']('TrackChangesEditing'),_0x24ff23=_0x26aeb8['plugins']['get']('TableUtils');_0x57a083['descriptionFactory']['registerElementLabel']('table',_0x40776c=>Mt(_0x3b1396,'ELEMENT_TABLE',_0x40776c)),this['_setupColumnsRowsFixing'](),_0x57a083['enableCommand']('insertTable'),_0x57a083['enableCommand']('selectTableRow'),_0x57a083['enableCommand']('selectTableColumn');for(const _0x53b1ee of['insertTableRowAbove','insertTableRowBelow']){const _0x44a9b5=_0x26aeb8['commands']['get'](_0x53b1ee);_0x57a083['enableCommand'](_0x53b1ee,_0xb4adef=>{_0x26aeb8['model']['change'](_0x207f92=>{_0xb4adef();const _0x50dca9='above'===_0x44a9b5['order'],_0x1ecf95=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x47e984=_0x24ff23['getRowIndexes'](_0x1ecf95),_0x5414c7=_0x50dca9?_0x47e984['first']-0x1:_0x47e984['last']+0x1,_0x241dac=_0x1ecf95[0x0]['findAncestor']('table'),_0x125c34=_0x24ff23['createTableWalker'](_0x241dac,{'startRow':_0x5414c7,'endRow':_0x5414c7}),_0x364a20=Array['from'](_0x125c34)['map'](_0x25331e=>_0x207f92['createRangeOn'](_0x25331e['cell']));_0x57a083['markMultiRangeInsertion'](_0x364a20,'tableRow');});});}for(const _0x28defb of['insertTableColumnLeft','insertTableColumnRight']){const _0xa3490f=_0x26aeb8['commands']['get'](_0x28defb);_0x57a083['enableCommand'](_0x28defb,_0x2a2a2b=>{_0x26aeb8['model']['change'](_0x1712e2=>{_0x2a2a2b();const _0x3a2c0b='left'===_0xa3490f['order'],_0x20e768=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x1fef19=_0x24ff23['getColumnIndexes'](_0x20e768),_0x4bea75=_0x3a2c0b?_0x1fef19['first']-0x1:_0x1fef19['last']+0x1,_0x537f80=_0x20e768[0x0]['findAncestor']('table'),_0x35a46a=_0x24ff23['createTableWalker'](_0x537f80,{'startRow':0x0,'column':_0x4bea75,'includeAllSlots':!0x1}),_0x13fdfb=Array['from'](_0x35a46a)['map'](_0x37b8ae=>_0x1712e2['createRangeOn'](_0x37b8ae['cell']));_0x57a083['markMultiRangeInsertion'](_0x13fdfb,'tableColumn');});});}for(const _0x5db1bd of['removeTableRow','removeTableColumn']){const _0x18fc48=_0x5db1bd['substr'](0xb),_0x2c0e26=_0x18fc48['toLowerCase'](),_0x444d37=_0x2c0e26['substr'](0x0,0x3)+'span',_0x177bfc='table'+_0x18fc48,_0x1f75dd='min'+_0x18fc48,_0x52df12='max'+_0x18fc48;_0x57a083['enableCommand'](_0x5db1bd,()=>{_0x26aeb8['model']['change'](_0x45d4ea=>{const _0x595e82=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x3ddef2=_0x595e82[0x0]['findAncestor']('table');let _0x534fea;if('removeTableRow'==_0x5db1bd){const _0x49676b=_0x24ff23['getRowIndexes'](_0x595e82);_0x534fea={'startRow':_0x49676b['first'],'endRow':_0x49676b['last'],'includeAllSlots':!0x0};}else{const _0x513979=_0x24ff23['getColumnIndexes'](_0x595e82);_0x534fea={'startColumn':_0x513979['first'],'endColumn':_0x513979['last'],'includeAllSlots':!0x0};}const _0x13e2b1=_0x24ff23['createTableWalker'](_0x3ddef2,_0x534fea),_0x13c9bc=Array['from'](_0x13e2b1)['map'](({cell:_0x5e886c})=>_0x5e886c),_0x35cdec=Pe(_0x13c9bc['filter'](_0x5ac00a=>_0x5ac00a['hasAttribute'](_0x444d37))),_0xe0685f=Pe(_0x13c9bc['filter'](_0x1bfc79=>!_0x1bfc79['hasAttribute'](_0x444d37)))['map'](_0x3325dd=>_0x45d4ea['createRangeOn'](_0x3325dd)),_0x3c8c79=_0x57a083['markMultiRangeDeletion'](_0xe0685f,_0x177bfc);if(_0x3c8c79&&('tableRow'==_0x3c8c79['subType']||'tableColumn'==_0x3c8c79['subType'])){const _0x1caaac=this['_getSuggestionCoords'](_0x3c8c79);for(const _0x56219a of _0x35cdec){const _0x38a11e=_0x45d4ea['createRangeOn'](_0x56219a),_0xcef07d=_0x24ff23['getCellLocation'](_0x56219a),_0x3f47de=_0x56219a['getAttribute'](_0x444d37)-0x1,_0x3005b7=_0x1caaac[_0x1f75dd],_0xa105cd=_0x1caaac[_0x52df12];_0x3005b7<=_0xcef07d[_0x2c0e26]&&_0xcef07d[_0x2c0e26]+_0x3f47de<=_0xa105cd&&_0x3c8c79['addRange'](_0x38a11e);}}});});}function _0x2ab80b(_0x188d65){const _0xbf2957=Array['from'](_0x2ceb87['getRanges']())['map'](_0x391c48=>rt['fromRange'](_0x391c48));_0x26aeb8['model']['change'](_0x2a911f=>{const _0x490ce2=_0x2a911f['batch'];_0x188d65=_0x188d65['filter'](_0x4ac466=>'$graveyard'!=_0x4ac466['root']['rootName']),_0x2a911f['setSelection'](_0x188d65),_0x26aeb8['commands']['get']('removeTableRow')['refresh'](),_0x26aeb8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x26aeb8['model']['enqueueChange'](()=>{_0x26aeb8['model']['enqueueChange'](_0x490ce2,_0x34d85b=>{const _0x538b4e=_0xbf2957['filter'](_0x100db3=>'$graveyard'!=_0x100db3['root']['rootName']);_0x538b4e['length']>0x0&&_0x34d85b['setSelection'](_0x538b4e);for(const _0x665e59 of _0xbf2957)_0x665e59['detach']();});});});}function _0x2663e1(_0x1ab20f){_0x26aeb8['model']['change'](_0x53ced0=>{const _0x105225=Array['from'](_0x2ceb87['getRanges']())['map'](_0x23a6e4=>rt['fromRange'](_0x23a6e4)),_0x26f60f=[];for(const _0xafe7f7 of _0x1ab20f)for(const _0x9420dc of _0xafe7f7['getItems']({'shallow':!0x0}))_0x26f60f['push'](_0x9420dc);for(const _0x6365cc of _0x26f60f)'$graveyard'!=_0x6365cc['root']['rootName']&&(_0x53ced0['setSelection'](_0x53ced0['createPositionAt'](_0x6365cc,0x0)),_0x26aeb8['commands']['get']('removeTableColumn')['refresh'](),_0x26aeb8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2984c8=_0x105225['filter'](_0x5aed68=>'$graveyard'!=_0x5aed68['root']['rootName']);_0x2984c8['length']>0x0&&_0x53ced0['setSelection'](_0x2984c8);for(const _0x3eb403 of _0x105225)_0x3eb403['detach']();});}function _0x5400b7(_0xa1917f,_0x2abb85){return _0x2abb85['every'](_0x564c7a=>_0xa1917f['some'](_0x5d90c3=>_0x5d90c3['end']['isEqual'](_0x564c7a['start'])||_0x564c7a['end']['isEqual'](_0x5d90c3['start'])));}function _0x20bb53(_0x2a7ceb,_0x508dbd){return!_0x2a7ceb['some'](_0x301318=>_0x508dbd['some'](_0x3720d1=>_0x301318['isIntersecting'](_0x3720d1)))&&_0x2a7ceb['some'](_0x31104f=>_0x508dbd['some'](_0x8f6933=>_0x31104f['end']['isTouching'](_0x8f6933['start'])));}_0x57a083['descriptionFactory']['registerDescriptionCallback'](_0x3b86cd=>{if('insertion'!=_0x3b86cd['type']&&'deletion'!=_0x3b86cd['type'])return;const _0x37ab9e=_0x3b86cd['getContainedElement']();if(null!=_0x37ab9e&&_0x37ab9e['is']('element','table')){if('insertion'==_0x3b86cd['type']){const _0x2dcd75=_0x3b86cd['getItems']()['filter'](_0x3001b4=>_0x3001b4['is']('$textProxy'))['map'](_0x341f17=>_0x341f17['data']);if(_0x2dcd75['length'])return{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2dcd75['join']('\x20')+'\x22'))};}if('deletion'==_0x3b86cd['type']){const _0x253e1e=_0x3b86cd['getItems']()['filter'](_0x55afcb=>_0x55afcb['is']('$textProxy'))['map'](_0x116974=>_0x116974['data']);if(_0x253e1e['length'])return{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x253e1e['join']('\x20')+'\x22'))};}}}),_0x57a083['descriptionFactory']['registerDescriptionCallback'](_0x9cf847=>{if('tableRow'==_0x9cf847['subType']){const _0x103535=_0x9cf847['getItems']()['filter'](_0x4b3479=>_0x4b3479['is']('$textProxy'))['map'](_0x11a2c5=>_0x11a2c5['data']),_0x185837=this['_getSuggestionCoords'](_0x9cf847),_0x42124d=_0x185837['maxRow']-_0x185837['minRow']+0x1;if('insertion'==_0x9cf847['type'])return _0x103535['length']?{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42124d,'\x22'+_0x103535['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW',_0x42124d))};if('deletion'==_0x9cf847['type'])return _0x103535['length']?{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42124d,'\x22'+_0x103535['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW',_0x42124d))};}if('tableColumn'==_0x9cf847['subType']){const _0x1b8ebb=_0x9cf847['getItems']()['filter'](_0x2182a5=>_0x2182a5['is']('$textProxy'))['map'](_0x5dd8f0=>_0x5dd8f0['data']),_0x3a2962=this['_getSuggestionCoords'](_0x9cf847),_0x25176c=_0x3a2962['maxColumn']-_0x3a2962['minColumn']+0x1;if('insertion'==_0x9cf847['type'])return _0x1b8ebb['length']?{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25176c,'\x22'+_0x1b8ebb['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN',_0x25176c))};if('deletion'==_0x9cf847['type'])return _0x1b8ebb['length']?{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25176c,'\x22'+_0x1b8ebb['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN',_0x25176c))};}}),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ab80b),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ab80b),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2663e1),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2663e1),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5400b7),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5400b7),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x20bb53),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x20bb53);}_acceptFormatSuggestionCallbackFactory(){const _0x253edb=this['editor'],_0x14d42d=_0x253edb['model']['document']['selection'];return(_0x18c07d,_0x46c3fb)=>{_0x253edb['model']['change'](_0x4c477e=>{const {commandName:_0x251593,commandParams:_0x52b120}=_0x46c3fb;let _0x19bf4e=_0x18c07d[0x0]['end']['nodeBefore'];_0x52b120&&_0x52b120[0x0]&&!0x1===_0x52b120[0x0]['forceValue']&&(_0x19bf4e=_0x18c07d[0x0]['start']['nodeAfter']);const _0x23357b=_0x4c477e['createRangeIn'](_0x19bf4e);if('$graveyard'==_0x23357b['root']['rootName'])return;const _0xa35467=Array['from'](_0x14d42d['getRanges']())['map'](_0x321e85=>rt['fromRange'](_0x321e85));_0x4c477e['setSelection'](_0x23357b),_0x253edb['commands']['get'](_0x251593)['refresh'](),_0x52b120['push']({'forceDefaultExecution':!0x0}),_0x253edb['execute'](_0x251593,..._0x52b120);const _0x47d1eb=_0xa35467['filter'](_0x295e20=>'$graveyard'!=_0x295e20['root']['rootName']);_0x47d1eb['length']>0x0&&_0x4c477e['setSelection'](_0x47d1eb);for(const _0x35eaa3 of _0xa35467)_0x35eaa3['detach']();});};}_getCoordsForCells(_0x58634c){const _0x1806de=this['editor']['plugins']['get']('TableUtils');let _0x19d96e=Number['MAX_SAFE_INTEGER'],_0x1036fd=Number['MIN_SAFE_INTEGER'],_0x473d2c=Number['MAX_SAFE_INTEGER'],_0x14c0e4=Number['MIN_SAFE_INTEGER'];for(const _0x540b1e of _0x58634c){if('$graveyard'==_0x540b1e['root']['rootName'])continue;const {row:_0x1fa247,column:_0x53bf14}=_0x1806de['getCellLocation'](_0x540b1e),_0x2b43aa=_0x540b1e['hasAttribute']('rowspan')?_0x540b1e['getAttribute']('rowspan')-0x1:0x0,_0x1021b2=_0x540b1e['hasAttribute']('colspan')?_0x540b1e['getAttribute']('colspan')-0x1:0x0;_0x19d96e=_0x1fa247<_0x19d96e?_0x1fa247:_0x19d96e,_0x1036fd=_0x1fa247+_0x2b43aa>_0x1036fd?_0x1fa247+_0x2b43aa:_0x1036fd,_0x473d2c=_0x53bf14<_0x473d2c?_0x53bf14:_0x473d2c,_0x14c0e4=_0x53bf14+_0x1021b2>_0x14c0e4?_0x53bf14+_0x1021b2:_0x14c0e4;}return{'minRow':_0x19d96e,'maxRow':_0x1036fd,'minColumn':_0x473d2c,'maxColumn':_0x14c0e4};}_setupColumnsRowsFixing(){const _0x4be568=this['editor'],_0x4508d2=_0x4be568['plugins']['get']('TrackChangesEditing'),_0x53f8c1=_0x4be568['plugins']['get']('TableUtils');_0x4be568['model']['document']['on']('change:data',()=>{const _0x3c7b32=Array['from'](_0x4be568['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ef1b6,data:_0x4f8f21}of _0x3c7b32){const {group:_0x13f003,id:_0x4d5b7a,subType:_0x3cac28}=tt(_0x1ef1b6);if('suggestion'!=_0x13f003)continue;if(null!=_0x4f8f21['oldRange'])continue;const _0x107125=_0x4508d2['getSuggestion'](_0x4d5b7a);this['_tablePostFixingSubtypes']['includes'](_0x3cac28)&&this['_tableSuggestions']['add'](_0x107125);}},{'priority':'low'});const _0x54c680=(_0x4bad47,_0x13e4e9)=>{let _0x4d1f95=!0x1;const _0x3b9d97=_0x13e4e9['createRangeOn'](_0x4bad47),_0x46280f=_0x4bad47['findAncestor']('table'),_0x30c3e3=_0x53f8c1['getCellLocation'](_0x4bad47);for(const _0x1382d9 of this['_tableSuggestions']){const _0x54cb14=_0x1382d9['subType'],_0x1272b6=_0x54cb14['startsWith']('tablePaste'),_0x15663e=_0x54cb14['substr'](_0x1272b6?0xa:0x5),_0x1f566e=_0x15663e['toLowerCase'](),_0x236247=_0x1f566e['substr'](0x0,0x3)+'span',_0x2b0119='min'+_0x15663e,_0x1746b3='max'+_0x15663e;if(!_0x1382d9['isInContent'])continue;if(_0x46280f!=_0x1382d9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1382d9['isIntersectingWithRange'](_0x3b9d97))continue;const _0x12ce9f=_0x4bad47['hasAttribute'](_0x236247)?_0x4bad47['getAttribute'](_0x236247)-0x1:0x0,_0x457590=this['_getSuggestionCoords'](_0x1382d9),_0xef04db=_0x457590[_0x2b0119],_0x284979=_0x457590[_0x1746b3];_0xef04db<=_0x30c3e3[_0x1f566e]&&_0x30c3e3[_0x1f566e]+_0x12ce9f<=_0x284979&&(_0x1382d9['addRange'](_0x3b9d97),_0x4d1f95=!0x0);}return _0x4d1f95;};_0x4be568['model']['document']['registerPostFixer'](_0x32d1e3=>{let _0x2d0104=!0x1;for(const _0x43a057 of _0x4be568['model']['document']['differ']['getChanges']())if('insert'==_0x43a057['type']){if('tableRow'==_0x43a057['name']){for(const _0xa6ae2f of _0x43a057['position']['nodeAfter']['getChildren']())_0x2d0104=_0x2d0104||_0x54c680(_0xa6ae2f,_0x32d1e3);}else'tableCell'==_0x43a057['name']&&(_0x2d0104=_0x2d0104||_0x54c680(_0x43a057['position']['nodeAfter'],_0x32d1e3));}return _0x2d0104;});}_getSuggestionCoords(_0x56a324){return this['_getCoordsForCells'](_0x56a324['getRanges']()['map'](_0x1f7fe7=>_0x1f7fe7['start']['nodeAfter']));}};function Pe(_0x22254c){return Array['from'](new Set(_0x22254c)['values']());}var xe=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x112ad3=this['editor'],_0x196020=_0x112ad3['model']['document']['selection'],_0x11d7d7=_0x112ad3['locale'];if(!_0x112ad3['plugins']['has']('TableEditing'))return;const _0x2d0ce8=_0x112ad3['plugins']['get']('TrackChangesEditing'),_0x9ba9f8=_0x112ad3['plugins']['get']('TableUtils'),_0x59c354=_0x112ad3['plugins']['get'](Ue);_0x59c354['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2d0ce8['enableCommand']('mergeTableCells',()=>{const _0x3338dd=_0x9ba9f8['getSelectionAffectedTableCells'](_0x112ad3['model']['document']['selection']);_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat'](_0x3338dd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x112ad3['commands']['get']('mergeTableCells')['on']('execute',(_0x168ce3,_0xf85c6a)=>{_0x112ad3['commands']['get']('trackChanges')['value']&&(_0xf85c6a['length']>0x0&&_0xf85c6a[_0xf85c6a['length']-0x1]&&_0xf85c6a[_0xf85c6a['length']-0x1]['forceDefaultExecution']||_0x2d0ce8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x168ce3['stop']());},{'priority':'highest'});for(const _0x1ee19d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2a16c0=_0x112ad3['commands']['get'](_0x1ee19d);_0x2d0ce8['enableCommand'](_0x1ee19d,()=>{const _0x4fb20a=_0x112ad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d9d5b=>_0x5d9d5b['is']('element','tableCell')),_0xc8bddc=_0x2a16c0['value'];_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat']([_0x4fb20a,_0xc8bddc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3fd32d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c6aa2=_0x112ad3['commands']['get'](_0x3fd32d);_0x2d0ce8['enableCommand'](_0x3fd32d,()=>{const _0x39d520=_0x9ba9f8['getSelectionAffectedTableCells'](_0x112ad3['model']['document']['selection']),_0x164e1c=_0x39d520[0x0]['findAncestor']('table'),_0x41bb85=new Set();for(const _0x54a508 of _0x39d520){const {column:_0x23db69,row:_0x287ddf}=_0x9ba9f8['getCellLocation'](_0x54a508),_0x2b8394='horizontally'==_0x1c6aa2['direction']?_0x9ba9f8['createTableWalker'](_0x164e1c,{'startRow':_0x287ddf,'endRow':_0x287ddf,'includeAllSlots':!0x0}):_0x9ba9f8['createTableWalker'](_0x164e1c,{'column':_0x23db69,'includeAllSlots':!0x0});for(const {cell:_0x540746}of _0x2b8394)_0x41bb85['add'](_0x540746);}_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat'](_0x39d520,{'commandName':_0x3fd32d,'commandParams':[]},Array['from'](_0x41bb85),_0x3fd32d);});});}_0x2d0ce8['descriptionFactory']['registerDescriptionCallback'](_0x3cf59e=>{if('formatBlock'!=_0x3cf59e['type']&&'formatInline'!=_0x3cf59e['type'])return;const {data:_0x2f4ebb}=_0x3cf59e;return _0x2f4ebb&&'mergeTableCells'==_0x2f4ebb['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Merge\x20cells*')}:void 0x0;}),_0x2d0ce8['descriptionFactory']['registerDescriptionCallback'](_0x5caaf1=>{if('formatBlock'!=_0x5caaf1['type']&&'formatInline'!=_0x5caaf1['type'])return;const {data:_0x17287d}=_0x5caaf1;return _0x17287d?'splitTableCellVertically'==_0x17287d['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17287d['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a075e=_0x59c354['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bd20f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bd20f,'accept',_0x5a075e);for(const _0x22da73 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22da73,'accept',_0x3721ad=>{_0x112ad3['model']['change'](_0x3c29f5=>{const _0x47e4f0=Array['from'](_0x3721ad)['filter'](_0x3f4714=>'$graveyard'!=_0x3f4714['root']['rootName']&&!!_0x3f4714['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x47e4f0['length'])return;const _0x11bfd7=Array['from'](_0x196020['getRanges']())['map'](_0x2d2f11=>rt['fromRange'](_0x2d2f11));_0x3c29f5['setSelection'](_0x47e4f0),_0x112ad3['commands']['get'](_0x22da73)['refresh'](),_0x112ad3['execute'](_0x22da73,{'forceDefaultExecution':!0x0});const _0x455425=_0x11bfd7['filter'](_0xf2c07e=>'$graveyard'!=_0xf2c07e['root']['rootName']);_0x455425['length']>0x0&&_0x3c29f5['setSelection'](_0x455425);for(const _0x411337 of _0x11bfd7)_0x411337['detach']();});});_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17776d=>{_0x112ad3['model']['change'](_0x5dad36=>{const _0x3e207a=Array['from'](_0x196020['getRanges']())['map'](_0x23b77b=>rt['fromRange'](_0x23b77b));_0x5dad36['setSelection'](_0x17776d),_0x112ad3['commands']['get']('mergeTableCells')['refresh'](),_0x112ad3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45221e=_0x3e207a['filter'](_0x5bf93a=>'$graveyard'!=_0x5bf93a['root']['rootName']);_0x45221e['length']>0x0&&_0x5dad36['setSelection'](_0x45221e);for(const _0x8490fc of _0x3e207a)_0x8490fc['detach']();});});for(const _0x333e8f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4b9344=_0x112ad3['commands']['get'](_0x333e8f);_0x4b9344['on']('set:isEnabled',(_0x3b8beb,_0x228b29,_0x3272bc)=>{if(_0x3272bc){const _0x403f0d=_0x112ad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3df891=>_0x3df891['is']('element','tableCell'));this['_areMergableCells'](_0x4b9344['value'],_0x403f0d)||(_0x3b8beb['return']=!0x1,_0x3b8beb['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x12ce4d=this['editor']['commands']['get']('mergeTableCells'),_0x38f4b8=this['editor']['plugins']['get']('TableUtils');if(!_0x12ce4d['isEnabled'])return!0x1;const _0x57e6f0=_0x38f4b8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x413a27 of _0x57e6f0)for(const _0x349318 of _0x57e6f0)if(_0x413a27!=_0x349318&&!this['_areMergableCells'](_0x413a27,_0x349318))return!0x1;return!0x0;}['_areMergableCells'](_0x1301bc,_0x749a4d){const _0x19293d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2ff7=this['editor']['model']['createRangeOn'](_0x1301bc),_0x56ffea=this['editor']['model']['createRangeOn'](_0x749a4d),_0x7c85d=new Set(),_0x4cf1a1=new Set();for(const _0x36a7d8 of _0x19293d['getSuggestions']())if(('insertion'==_0x36a7d8['type']||'deletion'==_0x36a7d8['type']||'mergeTableCells'==_0x36a7d8['subType'])&&_0x36a7d8['isInContent']){for(const _0x143a53 of _0x36a7d8['getRanges']())_0x143a53['containsRange'](_0x3e2ff7,!0x0)&&_0x7c85d['add'](_0x36a7d8['type']+':'+_0x36a7d8['author']['id']),_0x143a53['containsRange'](_0x56ffea,!0x0)&&_0x4cf1a1['add'](_0x36a7d8['type']+':'+_0x36a7d8['author']['id']);}if(_0x7c85d['size']!=_0x4cf1a1['size'])return!0x1;for(const _0x194610 of _0x7c85d)if(!_0x4cf1a1['has'](_0x194610))return!0x1;return!0x0;}},Ge=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x2a8bba=this['editor'];if(!_0x2a8bba['plugins']['has']('TableEditing'))return;const _0x11f365=_0x2a8bba['locale'],_0x1dadc7=_0x2a8bba['plugins']['get']('TrackChangesEditing');_0x1dadc7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dadc7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dadc7['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x11f365,'FORMAT_HEADER_ROW')),_0x1dadc7['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x11f365,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x9b6358=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19f155=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x9b6358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x19f155),_0x9b6358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x19f155),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x5f1fcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b634=this['editor']['plugins']['get']('TableUtils');function _0x4c859a({showActiveMarker:_0x1ada0b=!0x0,setDataAttribute:_0x32855c=!0x0}={}){return(_0x4a1837,_0x4edfa0,_0x25999b)=>{const {type:_0x4fb83d,id:_0x447c9c}=tt(_0x4edfa0['markerName']);if(!_0x5f1fcd['hasSuggestion'](_0x447c9c))return;const _0x7fb164=_0x5f1fcd['getSuggestion'](_0x447c9c),_0x165f4c=_0x7fb164['data'];if('formatBlock'!=_0x7fb164['type']||!_0x165f4c||'setTableColumnHeader'!=_0x165f4c['commandName'])return;if(_0x4edfa0['item'])return void _0x4a1837['stop']();if(!_0x25999b['consumable']['consume'](_0x4edfa0['markerRange'],_0x4a1837['name']))return;const _0x36b660=_0x4edfa0['markerRange']['start']['nodeAfter'],_0x671091=_0x4edfa0['markerRange']['end']['nodeBefore'],_0x5b46f9=_0x36b660['parent']['parent'],{column:_0x3cf983}=_0x18b634['getCellLocation'](_0x36b660),{column:_0x47057b}=_0x18b634['getCellLocation'](_0x671091);for(let _0x52fc0b=_0x3cf983;_0x52fc0b<=_0x47057b;_0x52fc0b++){const _0x1c6182=_0x18b634['createTableWalker'](_0x5b46f9,{'column':_0x52fc0b,'includeAllSlots':!0x1});for(const _0x137362 of _0x1c6182){const _0x307a9f=_0x137362['cell'],_0x223808=_0x25999b['mapper']['toViewElement'](_0x307a9f);_0x25999b['writer']['addClass']('ck-suggestion-marker-'+_0x4fb83d,_0x223808),_0x32855c&&_0x25999b['writer']['setAttribute']('data-suggestion',_0x447c9c,_0x223808),_0x25999b['mapper']['bindElementToMarker'](_0x223808,_0x4edfa0['markerName']),_0x1ada0b&&(_0x5f1fcd['activeMarkers']['includes'](_0x4edfa0['markerName'])?_0x25999b['writer']['addClass']('ck-suggestion-marker--active',_0x223808):_0x25999b['writer']['removeClass']('ck-suggestion-marker--active',_0x223808));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c859a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f5395,_0x138ec7,_0x393ea9)=>{_0x393ea9['options']['showSuggestionHighlights']&&_0x4c859a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f5395,_0x138ec7,_0x393ea9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x118a70,_0x416729,_0x3e7584)=>{const {type:_0x5069ec,id:_0x11a520}=tt(_0x416729['markerName']);if(!_0x5f1fcd['hasSuggestion'](_0x11a520))return;const _0x2def94=_0x5f1fcd['getSuggestion'](_0x11a520),_0x28946a=_0x2def94['data'];if('formatBlock'!=_0x2def94['type']||!_0x28946a||'setTableColumnHeader'!=_0x28946a['commandName'])return;const _0x28dad7=_0x3e7584['mapper']['markerNameToElements'](_0x416729['markerName']);if(_0x28dad7){for(const _0x334681 of _0x28dad7)_0x3e7584['writer']['removeClass']('ck-suggestion-marker-'+_0x5069ec,_0x334681),_0x3e7584['writer']['removeClass']('ck-suggestion-marker--active',_0x334681),_0x3e7584['writer']['removeAttribute']('data-suggestion',_0x334681),_0x3e7584['mapper']['unbindElementFromMarkerName'](_0x334681,_0x416729['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x2c4fbb=this['editor'],_0x5a419a=_0x2c4fbb['locale'];function _0x103c34(_0x3a7541){return{'type':'format','content':Mt(_0x5a419a,'*Format:*\x20%0',_0x3a7541)};}_0x2c4fbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x424232=>{if('formatBlock'!=_0x424232['type'])return;const {data:_0x9379d3}=_0x424232;return _0x9379d3?'setTableRowHeader'==_0x9379d3['commandName']?_0x9379d3['commandParams'][0x0]['forceValue']?_0x103c34(Mt(_0x5a419a,'FORMAT_HEADER_ROW')):_0x103c34(Mt(_0x5a419a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x9379d3['commandName']?_0x9379d3['commandParams'][0x0]['forceValue']?_0x103c34(Mt(_0x5a419a,'FORMAT_HEADER_COLUMN')):_0x103c34(Mt(_0x5a419a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x4ac2e5=this['editor'];if(!_0x4ac2e5['plugins']['has']('TableEditing')||!_0x4ac2e5['config']['get']('table.enableFooters'))return;const _0x5a8499=_0x4ac2e5['locale'],_0x2cf83e=_0x4ac2e5['plugins']['get']('TrackChangesEditing');_0x2cf83e['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2cf83e['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x5a8499,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x42a28f{afterInit(){const _0x31ee7c=this['editor'],_0x114fd7=_0x31ee7c['locale'],_0xcdd7f9=_0x31ee7c['plugins']['get']('TrackChangesEditing');function _0x238400(_0x38073c){return{'type':'format','content':''+Mt(_0x114fd7,'*Set\x20table\x20type:*\x20%0',_0x38073c)};}_0x31ee7c['plugins']['has']('TableLayout')&&(_0xcdd7f9['enableCommand']('insertTableLayout'),_0xcdd7f9['enableDefaultAttributesIntegration']('tableType'),_0xcdd7f9['descriptionFactory']['registerElementLabel'](_0x23db6b=>_0x23db6b['is']('element','table')&&'layout'===_0x23db6b['getAttribute']('tableType'),_0x1990c3=>Mt(_0x114fd7,'ELEMENT_LAYOUT_TABLE',_0x1990c3)),_0xcdd7f9['descriptionFactory']['registerDescriptionCallback'](_0x24a76c=>{const {data:_0xe65dbb}=_0x24a76c;if(_0xe65dbb&&'tableType'==_0xe65dbb['key'])switch(_0xe65dbb['newValue']){case'layout':return _0x238400(Mt(_0x114fd7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x238400(Mt(_0x114fd7,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](We['map'](_0x5a1b6b=>[_0x5a1b6b,null]));var je=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x162bda=this['editor'];if(!_0x162bda['plugins']['has']('TableClipboard'))return;const _0x1c9d9a=_0x162bda['plugins']['get']('TrackChangesEditing'),_0x41a765=_0x162bda['plugins']['get']('TableUtils'),_0x41706f=_0x162bda['plugins']['get'](Ue),_0x4be834=_0x162bda['plugins']['get']('TableClipboard'),_0x399d4a=_0x162bda['plugins']['get']('TableSelection'),_0xe381fc=_0x162bda['plugins']['get'](gt);_0x41706f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x162bda['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x162bda['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36f858=null,_0x3f3914=!0x1;_0xe381fc['on']('contentInsertion',(_0x319e02,_0x5bde56)=>{_0x3f3914='paste'===_0x5bde56['method'];}),_0x162bda['model']['on']('insertContent',(_0x597e9b,_0x41d692)=>{if(!_0x3f3914&&null===_0x399d4a['getSelectedTableCells']())return;const [_0x31fd4a,_0x38c8e1]=_0x41d692,_0x497500=_0x41d692[_0x41d692['length']-0x1];_0x497500&&_0x497500['forceDefaultExecution']||_0x1c9d9a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5dd4f5,_0x2158d9,_0x390d01,_0x15be6c,_0x372294){if(_0x2158d9&&!_0x2158d9['is']('documentSelection'))return!0x1;const _0x201710=_0x372294['getTableIfOnlyTableInContent'](_0x5dd4f5,_0x390d01);if(!_0x201710||!Ke(_0x201710,void 0x0,_0x15be6c))return!0x1;const _0x39a72f=_0x15be6c['getSelectionAffectedTableCells'](_0x390d01['document']['selection']);if(!_0x39a72f['length'])return!0x1;const _0x44e767=_0x39a72f[0x0]['findAncestor']('table'),_0x28e327=_0x15be6c['getRowIndexes'](_0x39a72f),_0x5c391a=_0x15be6c['getColumnIndexes'](_0x39a72f),_0x1ba30f={'startRow':_0x28e327['first'],'endRow':_0x28e327['last'],'startColumn':_0x5c391a['first'],'endColumn':_0x5c391a['last']};return 0x1==_0x39a72f['length']&&(_0x1ba30f['endRow']+=_0x15be6c['getRows'](_0x201710)-0x1,_0x1ba30f['endColumn']+=_0x15be6c['getColumns'](_0x201710)-0x1),Ke(_0x44e767,_0x1ba30f,_0x15be6c);}(_0x31fd4a,_0x38c8e1,_0x162bda['model'],_0x41a765,_0x4be834)&&(_0x597e9b['stop'](),_0x36f858={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x162bda['model']['change'](()=>{_0x162bda['model']['insertContent'](_0x41d692[0x0],_0x41d692[0x1],_0x41d692[0x2],{'forceDefaultExecution':!0x0});const _0x584bcc=_0x5b5c0d(),{rowInsertionRanges:_0x444e8c,columnInsertionRanges:_0x1b0c6a,insertionRanges:_0x49c5e8,deletionRanges:_0x97957a,cells:_0x591e5b}=_0x36f858;_0x444e8c['length']&&_0x1c9d9a['markMultiRangeInsertion'](_0x444e8c,'tablePasteRow',{'tablePasteChainId':_0x584bcc}),_0x1b0c6a['length']&&_0x1c9d9a['markMultiRangeInsertion'](_0x1b0c6a,'tablePasteColumn',{'tablePasteChainId':_0x584bcc}),_0x49c5e8['length']&&(_0x1c9d9a['markMultiRangeInsertion'](_0x49c5e8,'tablePaste',{'tablePasteChainId':_0x584bcc,'skipNestingCheck':!0x0}),_0x49c5e8['forEach'](_0x59aa98=>_0x59aa98['detach']?.())),_0x97957a['length']&&(_0x1c9d9a['markMultiRangeDeletion'](_0x97957a,'tablePaste',{'tablePasteChainId':_0x584bcc,'skipNestingCheck':!0x0}),_0x97957a['forEach'](_0x16f05a=>_0x16f05a['detach']?.()));const _0x8fb3fb=_0x1c9d9a['markMultiRangeBlockFormat'](_0x591e5b['map'](({element:_0x57f085})=>_0x57f085),{'formatGroupId':_0x5b5c0d()},[],'tablePasteCell',{'tablePasteChainId':_0x584bcc});if(_0x8fb3fb){const _0x4064c2=_0x8fb3fb['getMarkers'](),_0x4ff442=[];for(const {element:_0x541cd9,attributes:_0x2e45f6}of _0x591e5b){if(!_0x2e45f6)continue;const _0x49beb1=_0x162bda['model']['createRangeOn'](_0x541cd9),_0x2712f4=_0x4064c2['find'](_0x47468a=>_0x47468a['getRange']()['isEqual'](_0x49beb1));_0x2712f4&&_0x4ff442['push']([_0x2712f4['name'],_0x2e45f6]);}_0x4ff442['length']&&_0x8fb3fb['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ff442));}_0x36f858=null;}));},{'priority':_0x5ee963['high']+0xa}),_0xe381fc['on']('contentInsertion',()=>{_0x3f3914=!0x1;},{'priority':'lowest'}),_0x162bda['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x56179f,_0x58be68)=>{const [_0x2b341e,_0xcafff4,,_0x50097b]=_0x58be68;if(!_0x36f858)return;_0x56179f['stop']();const _0x7d38ba=_0x2b341e['cell'],_0x532d11=_0xcafff4,_0x4323c4=ze(_0x7d38ba),_0x4e3553=ze(_0x532d11);_0x56179f['return']=_0x7d38ba;let _0x483701=null,_0x56a067=null;if(_0x4e3553||_0x4323c4){if(_0x4323c4&&!_0x4e3553){_0x50097b['remove'](_0x7d38ba['getChild'](0x0));for(const _0x433363 of Array['from'](_0x532d11['getChildren']()))_0x50097b['insert'](_0x433363,_0x7d38ba,'end');const _0x473ed0=_0x36f858['rowInsertionIndexes']['includes'](_0x2b341e['row']),_0x2aa5ae=_0x36f858['columnInsertionIndexes']['includes'](_0x2b341e['column']);_0x473ed0||_0x2aa5ae||(_0x483701=rt['fromRange'](_0x50097b['createRangeIn'](_0x7d38ba)));}else _0x4e3553&&!_0x4323c4&&(_0x56a067=_0x50097b['createRangeIn'](_0x7d38ba));}else{const _0x2242a0=_0x50097b['createElement']('tableCellSuggestion'),_0x3f6dac=_0x50097b['createElement']('tableCellSuggestion');_0x50097b['wrap'](_0x50097b['createRangeIn'](_0x7d38ba),_0x3f6dac),_0x50097b['insert'](_0x2242a0,_0x7d38ba,0x0);for(const _0x531932 of Array['from'](_0x532d11['getChildren']()))_0x50097b['insert'](_0x531932,_0x2242a0,'end');_0x483701=rt['fromRange'](_0x50097b['createRangeOn'](_0x2242a0)),_0x56a067=rt['fromRange'](_0x50097b['createRangeOn'](_0x3f6dac));}const _0x23c6e7=Array['from'](_0x532d11['getAttributes']())['filter'](([_0x3bbd8a])=>We['includes'](_0x3bbd8a));_0x36f858['cells']['push']({'element':_0x7d38ba,'attributes':_0x23c6e7['length']?Object['fromEntries'](_0x23c6e7):null}),_0x483701&&_0x36f858['insertionRanges']['push'](_0x483701),_0x56a067&&_0x36f858['deletionRanges']['push'](_0x56a067);},{'priority':'high'}),_0x41a765['on']('insertColumns',(_0xfee852,_0x3ce8c2)=>{const [_0x4a687c,_0x364148={}]=_0x3ce8c2;if(!_0x36f858)return;const _0x41aec4=_0x364148['at']||0x0,_0x4aa655=_0x364148['columns']||0x1;_0x36f858['columnInsertionIndexes']=new Array(_0x4aa655)['fill'](_0x41aec4)['map']((_0x378369,_0x3ab951)=>_0x378369+_0x3ab951);for(const {cell:_0xa437c8}of _0x41a765['createTableWalker'](_0x4a687c,{'startColumn':_0x41aec4,'endColumn':_0x41aec4+_0x4aa655-0x1}))_0x36f858['columnInsertionRanges']['push'](_0x162bda['model']['createRangeOn'](_0xa437c8));},{'priority':'low'}),_0x41a765['on']('insertRows',(_0x20ead7,_0x1749c5)=>{const [_0x3ace66,_0x117604={}]=_0x1749c5;if(!_0x36f858)return;const _0x5a0730=_0x117604['at']||0x0,_0x8b2672=_0x117604['rows']||0x1;_0x36f858['rowInsertionIndexes']=new Array(_0x8b2672)['fill'](_0x5a0730)['map']((_0x1eda9d,_0x18a215)=>_0x1eda9d+_0x18a215);for(const {cell:_0x5d93d9}of _0x41a765['createTableWalker'](_0x3ace66,{'startRow':_0x5a0730,'endRow':_0x5a0730+_0x8b2672-0x1}))_0x36f858['rowInsertionRanges']['push'](_0x162bda['model']['createRangeOn'](_0x5d93d9));},{'priority':'low'}),_0x1c9d9a['descriptionFactory']['registerDescriptionCallback'](_0x475563=>{if(_0x475563['subType']&&_0x475563['subType']['startsWith']('tablePaste'))return _0x475563['previous']?{}:{'type':'insertion','content':Mt(_0x162bda['locale'],'*Replace\x20table\x20cells*')};});const _0x1a09da=()=>!0x1;for(const _0x1e6601 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e6601,'join',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e6601,'join',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e6601,'join',_0x1a09da);_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x409232,_0x5e5180,_0x2668f0)=>{const _0x3f2684=_0x409232['map'](_0x7081f=>_0x7081f['getContainedElement']())['filter'](_0x40f945=>_0x40f945),_0x10be29=new Map(_0x3f2684['map'](_0x4d4b30=>[_0x4d4b30,null]));if(_0x36f858){for(const {element:_0x4527e8,attributes:_0x3adcdc}of _0x36f858['cells'])_0x3adcdc&&_0x10be29['set'](_0x4527e8,_0x3adcdc);}else{if(_0x2668f0&&_0x2668f0['markerAttributes'])for(const [_0x2c07a5,_0x378d0f]of Object['entries'](_0x2668f0['markerAttributes'])){const _0x512c33=_0x162bda['model']['markers']['get'](_0x2c07a5),_0x157c59=_0x512c33?_0x512c33['getRange']()['getContainedElement']():null;_0x157c59&&_0x10be29['set'](_0x157c59,_0x378d0f);}}_0x162bda['model']['change'](_0xe4e30e=>{for(const [_0xf21320,_0x74c9fa]of _0x10be29)_0xe4e30e['setAttributes']({...Ve,..._0x74c9fa},_0xf21320);});});const _0x45ea15=(_0x4fc4ca,_0x433320)=>{_0x1c9d9a['_suggestionFactory']['registerCustomCallback'](_0x4fc4ca,'tablePaste',_0x433320,(_0x3ccb66,_0x24ea2b,_0x34768d)=>{_0x162bda['model']['change'](_0xcb08d=>{const _0x436c65=[];for(const _0x58ba22 of _0x3ccb66){const _0x2c8b54=_0x58ba22['start']['nodeAfter'];_0x2c8b54['is']('element','tableCellSuggestion')&&_0x436c65['push'](_0x2c8b54);}_0x1c9d9a['_suggestionFactory']['getSuggestionCallback'](_0x4fc4ca,null,_0x433320)(_0x3ccb66,_0x24ea2b,_0x34768d);for(const _0x175405 of _0x436c65)'$graveyard'!=_0x175405['root']['rootName']&&_0xcb08d['unwrap'](_0x175405);});});};_0x45ea15('insertion','accept'),_0x45ea15('insertion','discard'),_0x45ea15('deletion','accept'),_0x45ea15('deletion','discard'),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x213514=>{const _0x42b9b6=_0x213514['map'](_0x1c0994=>_0x1c0994['getContainedElement']()),_0x2fbfcd=_0x42b9b6[0x0]['findAncestor']('table'),{minRow:_0x412ca8,maxRow:_0x317626}=_0x41706f['_getCoordsForCells'](_0x42b9b6);_0x41a765['removeRows'](_0x2fbfcd,{'at':_0x412ca8,'rows':_0x317626-_0x412ca8+0x1});}),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31ff98=>{const _0x1b1936=_0x31ff98['map'](_0x623616=>_0x623616['getContainedElement']()),_0x5821d8=_0x1b1936[0x0]['findAncestor']('table'),{minColumn:_0x541e38,maxColumn:_0x2e10a0}=_0x41706f['_getCoordsForCells'](_0x1b1936);_0x41a765['removeColumns'](_0x5821d8,{'at':_0x541e38,'columns':_0x2e10a0-_0x541e38+0x1});});const _0x450a17=(_0x50f9eb,_0x5e5340)=>{if(!_0x5e5340['subType']||!_0x5e5340['subType']['startsWith']('tablePaste'))return;const _0x1a0a4f=_0x5e5340['attributes']['tablePasteChainId'],_0x38ef99=_0x1c9d9a['getSuggestions']()['filter'](_0x2c859e=>_0x2c859e['isInContent']&&_0x2c859e['attributes']&&_0x2c859e['attributes']['tablePasteChainId']==_0x1a0a4f);_0x38ef99['length']&&_0x5e5340['getAllAdjacentSuggestions']()['length']!=_0x38ef99['length']&&_0x38ef99['reduce']((_0x139fb2,_0x50f9ec)=>(_0x139fb2['next']=_0x50f9ec,_0x50f9ec['previous']=_0x139fb2,_0x50f9ec));};function _0x2b6891(_0x144923,_0x4ab169=!0x0){const {id:_0x4be9b6,authorId:_0xae2833}=tt(_0x144923['markerName']),_0x1fb504=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x120d0c=_0x1c9d9a['activeMarkers']['includes'](_0x144923['markerName']);return _0x120d0c&&_0x1fb504['push']('ck-suggestion-marker--active'),{'classes':_0x1fb504,'attributes':{'data-suggestion':_0x4be9b6,'data-author-id':_0xae2833},'priority':_0x120d0c&&_0x4ab169?0xbc2:0xbb8};}_0x1c9d9a['on']('suggestionLoaded',_0x450a17,{'priority':'high'}),_0x1c9d9a['on']('suggestionUnloaded',_0x450a17,{'priority':'high'}),_0x162bda['model']['document']['registerPostFixer'](()=>{let _0x2b7f2d=!0x1;const _0x2d4b55=Array['from'](_0x162bda['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d8ae5,data:_0x5d3706}of _0x2d4b55){const {group:_0x4c5004,type:_0x45f11b,id:_0x54ef93}=tt(_0x2d8ae5);if('suggestion'!=_0x4c5004||'deletion'!=_0x45f11b||_0x5d3706['oldRange'])continue;if(!_0x1c9d9a['hasSuggestion'](_0x54ef93))continue;const _0x4ad391=_0x1c9d9a['getSuggestion'](_0x54ef93)['getRanges'](),_0x16d714=_0x162bda['plugins']['get']('Users')['me'];for(const _0x29b7b3 of _0x1c9d9a['getSuggestions']())if(_0x29b7b3['isInContent']&&_0x29b7b3['author']==_0x16d714&&'formatBlock'==_0x29b7b3['type']&&'tablePasteCell'==_0x29b7b3['subType']&&_0x29b7b3['getRanges']()['every'](_0x272455=>_0x4ad391['some'](_0x31d0c5=>_0x31d0c5['containsRange'](_0x272455,!0x0)))){for(const _0x536e3f of _0x29b7b3['getAllAdjacentSuggestions']())_0x536e3f['isInContent']&&(_0x536e3f['discard'](),_0x2b7f2d=!0x0);}}return _0x2b7f2d;}),_0x162bda['model']['document']['registerPostFixer'](_0x39e010=>{const _0x22da0d=_0x162bda['commands']['get']('redo');if(!_0x22da0d||!_0x22da0d['_createdBatches']['has'](_0x39e010['batch']))return!0x1;let _0x6112c1=!0x1;const _0x58e474=_0x162bda['plugins']['get']('Users')['me'],_0x366c7d=_0x162bda['model']['document']['differ']['getChanges'](),_0x3661ec=Array['from'](_0x162bda['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2823b1,data:_0x42cd54})=>{const {group:_0x350f19,subType:_0x36936d,authorId:_0x4c61e5}=tt(_0x2823b1);return'suggestion'==_0x350f19&&'tablePaste'==_0x36936d&&_0x4c61e5==_0x58e474['id']&&!_0x42cd54['oldRange'];});for(const _0x251383 of _0x366c7d){if('insert'!=_0x251383['type']||'tableCellSuggestion'!=_0x251383['name']||0x1!=_0x251383['length'])continue;const _0xf12dda=_0x39e010['createRange'](_0x251383['position'],_0x251383['position']['getShiftedBy'](0x1));if(!_0x3661ec['find'](({data:_0x490e85})=>_0x490e85['newRange']['isEqual'](_0xf12dda))){for(const {name:_0x30c303,data:_0x515681}of _0x3661ec)if(_0xf12dda['containsRange'](_0x515681['newRange'])){_0x39e010['updateMarker'](_0x30c303,{'range':_0xf12dda}),_0x6112c1=!0x0;break;}}}return _0x6112c1;}),_0x162bda['model']['document']['registerPostFixer'](_0x4438f0=>{let _0x5b7fe9=!0x1;const _0x5acfc8=_0x162bda['plugins']['get']('Users')['me'],_0x27b934=_0x1c9d9a['getSuggestions']()['filter'](_0x5e182c=>_0x5e182c['isInContent']&&_0x5e182c['author']==_0x5acfc8),_0x35141c=new Set(),_0x5d04f8=new Set();for(const _0x3048a7 of _0x27b934)if('tablePaste'==_0x3048a7['subType'])for(const _0x42f65b of _0x3048a7['getMarkers']()){const _0x5a19c6=_0x42f65b['getRange']()['getContainedElement']();if(_0x5a19c6){if(_0x5a19c6['is']('element','tableCellSuggestion')&&ze(_0x5a19c6)){_0x3048a7['removeMarker'](_0x42f65b['name']),_0x35141c['add'](_0x5a19c6),_0x5b7fe9=!0x0;const _0x3e0158=_0x5a19c6['nextSibling'],_0x1f677c=_0x5a19c6['previousSibling'],_0x531d27=_0x3e0158&&_0x3e0158['is']('element','tableCellSuggestion'),_0x56955f=_0x1f677c&&_0x1f677c['is']('element','tableCellSuggestion');_0x531d27&&!_0x35141c['has'](_0x3e0158)&&_0x5d04f8['add'](_0x3e0158),_0x56955f&&!_0x35141c['has'](_0x1f677c)&&_0x5d04f8['add'](_0x1f677c);}else _0x5a19c6['is']('element','paragraph')&&_0x5a19c6['isEmpty']&&(_0x3048a7['removeMarker'](_0x42f65b['name']),_0x5b7fe9=!0x0);}}else{if('tablePasteCell'==_0x3048a7['subType']){if(!_0x3048a7['attributes']||!_0x3048a7['attributes']['tablePasteChainId'])continue;const _0x41e147=_0x3048a7['attributes']['markerAttributes'];if(_0x41e147&&Object['keys'](_0x41e147)['length'])continue;const _0x66b45c=_0x3048a7['attributes']['tablePasteChainId'];let _0xbe5442=!0x0,_0x471ce5=!0x0;for(const _0xd6852e of _0x27b934)if(_0xd6852e['subType']&&_0xd6852e['subType']['startsWith']('tablePaste')){if(!_0xd6852e['attributes']['tablePasteChainId']){_0x471ce5=!0x1;break;}if(_0xd6852e['id']!=_0x3048a7['id']&&_0xd6852e['attributes']['tablePasteChainId']==_0x66b45c){_0xbe5442=!0x1;break;}}_0x471ce5&&_0xbe5442&&(_0x3048a7['removeMarkers'](),_0x5b7fe9=!0x0);}}for(const _0xb2ee89 of _0x35141c)_0x4438f0['remove'](_0xb2ee89);for(const _0x9b99fa of _0x5d04f8)_0x4438f0['unwrap'](_0x9b99fa);return _0x5b7fe9;}),_0x162bda['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x527db6=>_0x2b6891(_0x527db6),'converterPriority':'high'}),_0x162bda['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c264b,_0x52566d)=>_0x52566d['options']['showSuggestionHighlights']?_0x2b6891(_0x2c264b,!0x1):null,'converterPriority':'high'});const _0x10e45c=_0x162bda['editing']['view'];this['listenTo'](_0x10e45c['document'],'clipboardOutput',(_0x291eaf,_0x53d919)=>{const _0x356383=[];for(const _0x5c0b4e of _0x10e45c['createRangeIn'](_0x53d919['content'])['getItems']())_0x5c0b4e['is']('element','suggestion-td')&&_0x356383['push'](_0x5c0b4e);_0x10e45c['change'](_0x4dd76d=>{for(const _0xf1882f of _0x356383)_0x4dd76d['move'](_0x4dd76d['createRangeIn'](_0xf1882f),_0x4dd76d['createPositionBefore'](_0xf1882f)),_0x4dd76d['remove'](_0xf1882f);});});}};function ze(_0x4e7814){if(_0x4e7814['isEmpty'])return!0x0;const _0x2f97d6=_0x4e7814['getChild'](0x0);return _0x2f97d6['is']('element','paragraph')&&_0x2f97d6['isEmpty'];}function Ke(_0xe5b90d,_0x4fd8b6={},_0x302c57){for(const {isAnchor:_0x418c7a,cellHeight:_0x4a23be,cellWidth:_0x575a53}of _0x302c57['createTableWalker'](_0xe5b90d,{'includeAllSlots':!0x0,..._0x4fd8b6}))if(!_0x418c7a||0x1!=_0x4a23be||0x1!=_0x575a53)return!0x1;return!0x0;}var Xe=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161a4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x161a4d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x161a4d['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161a4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x17cbf7=_0x161a4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x11726f,_0x581cc6)=>{_0x17cbf7(_0x11726f,_0x581cc6),this['_restoreCellWidths'](_0x11726f[0x0]['start']['nodeAfter'],_0x581cc6['commandParams'][0x0]['cellWidths']);}),_0x161a4d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xdf197d,_0x3dcf70){const _0x17aabc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f054f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49cfb4=_0x3dcf70['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ef691=_0x2f054f['getColumnGroupElement'](_0x49cfb4);let _0x1a6801=_0x1ef691?_0x2f054f['getTableColumnsWidths'](_0x1ef691):null,_0x206e82=_0x49cfb4['getAttribute']('tableWidth')||null;const _0x18906a=_0x3dcf70['tableWidth']||_0x206e82,_0x3441f9=_0x3dcf70['columnWidths']||_0x1a6801;let _0x2a55d8=this['_getCellWidths'](_0x49cfb4);const _0x4bed06=this['_foldResizeTableSuggestion'](_0x49cfb4);_0x4bed06&&(_0x206e82=_0x4bed06['tableWidth'],_0x1a6801=_0x4bed06['columnWidths'],_0x2a55d8=_0x4bed06['cellWidths']||_0x2a55d8),_0xdf197d({'table':_0x49cfb4,'tableWidth':_0x18906a,'columnWidths':_0x3441f9}),_0x17aabc['markBlockFormat'](_0x49cfb4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x206e82,'columnWidths':_0x1a6801,'cellWidths':_0x2a55d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x58e0f3,_0x52fa68={}){if(void 0x0===_0x52fa68['value']||''===_0x52fa68['value'])return void _0x58e0f3(_0x52fa68);const _0x266431=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37e5fb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31ef2b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x52fa68['batch']||(_0x52fa68['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x52fa68['batch'],()=>{const _0xb9f56a=_0x37e5fb['getColumnGroupElement'](_0x31ef2b);let _0x35c68f=_0xb9f56a?_0x37e5fb['getTableColumnsWidths'](_0xb9f56a):null,_0x432bd9=_0x31ef2b['getAttribute']('tableWidth')||null,_0x6b9f9a=this['_getCellWidths'](_0x31ef2b);const _0xf7b81=this['_foldResizeTableSuggestion'](_0x31ef2b,!0x0);_0xf7b81&&(_0x432bd9=_0xf7b81['tableWidth'],_0x35c68f=_0xf7b81['columnWidths'],_0x6b9f9a=_0xf7b81['cellWidths']||_0x6b9f9a),_0x58e0f3(_0x52fa68),_0x266431['markBlockFormat'](_0x31ef2b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x432bd9,'columnWidths':_0x35c68f,'cellWidths':_0x6b9f9a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x4d8924,_0x15bf1c=!0x1){const _0x44bfee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318e24=this['editor']['plugins']['get']('Users')['me'];for(const _0x49a26f of _0x44bfee['getSuggestions']({'skipNotAttached':!0x0})){const _0x4db67d=_0x49a26f['getContainedElement']();if('resizeTable'===_0x49a26f['subType']&&_0x4db67d===_0x4d8924){_0x49a26f['author']!==_0x318e24&&(_0x15bf1c?_0x49a26f['removeMarkers']():_0x49a26f['discard']());const _0x482b7d=_0x49a26f['data']['commandParams'];return{'tableWidth':_0x482b7d[0x0]['tableWidth'],'columnWidths':_0x482b7d[0x0]['columnWidths'],'cellWidths':_0x482b7d[0x0]['cellWidths']};}}return null;}_getCellWidths(_0xfb29d1){const _0x485960=[];for(const _0x2aa2bb of _0xfb29d1['getChildren']())if(_0x2aa2bb['is']('element','tableRow')){for(const _0x31826d of _0x2aa2bb['getChildren']())_0x485960['push'](_0x31826d['getAttribute']('tableCellWidth')||null);}return _0x485960;}_restoreCellWidths(_0x51e367,_0x282c72){_0x282c72&&this['editor']['model']['change'](_0x5e8b00=>{let _0x8ebaf5=0x0;for(const _0x53f044 of _0x51e367['getChildren']())if(_0x53f044['is']('element','tableRow'))for(const _0x51a296 of _0x53f044['getChildren']()){const _0x2e9af9=_0x282c72[_0x8ebaf5++];_0x2e9af9&&_0x5e8b00['setAttribute']('tableCellWidth',_0x2e9af9,_0x51a296);}});}handleSuggestionDescription(_0xc31b6d){if('formatBlock'!=_0xc31b6d['type']&&'formatInline'!=_0xc31b6d['type'])return;const {data:_0x427356}=_0xc31b6d;return _0x427356&&'resizeTable'===_0x427356['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x42a28f{afterInit(){const _0x4fb0bd=this['editor'];_0x4fb0bd['plugins']['has']('Template')&&_0x4fb0bd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x42a28f{afterInit(){const _0x569e10=this['editor'];if(!_0x569e10['commands']['get']('insertTableOfContents'))return;_0x569e10['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x158752=_0x569e10['plugins']['get']('TrackChangesEditing'),_0x452a1c=_0x569e10['locale'];_0x158752['descriptionFactory']['registerElementLabel']('tableOfContents',_0x30289c=>Mt(_0x452a1c,'ELEMENT_TABLE_OF_CONTENTS',_0x30289c));}},Qe=class extends _0x42a28f{afterInit(){const _0x76d536=this['editor'];_0x76d536['plugins']['has']('Title')&&(_0x76d536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x76d536['locale'],'ELEMENT_TITLE')),_0x76d536['model']['document']['registerPostFixer'](_0x5a12cc=>{let _0x544376=!0x1;const _0x4e89e4=Array['from'](_0x76d536['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8fb97d,data:_0x3a10a7}of _0x4e89e4){const {group:_0x5933e3}=tt(_0x8fb97d);if('suggestion'!==_0x5933e3||!_0x3a10a7['newRange'])continue;const _0x5f389d=_0x3a10a7['newRange'],_0x13f755=_0x5f389d['end']['nodeBefore'];if(!_0x13f755||!_0x13f755['is']('element','title-content'))continue;if(!_0x5f389d['start']['isTouching'](_0x5f389d['end']))continue;const _0x202710=_0x76d536['model']['schema']['getNearestSelectionRange'](_0x5f389d['end'],'forward');if(_0x202710&&_0x202710['isCollapsed']){const _0x383099=_0x5a12cc['createRange'](_0x5f389d['start'],_0x202710['start']);_0x383099['isEqual'](_0x5f389d)||(_0x5a12cc['updateMarker'](_0x8fb97d,{'range':_0x383099}),_0x544376=!0x0);}_0x544376||(_0x5a12cc['removeMarker'](_0x8fb97d),_0x544376=!0x0);}return _0x544376;}));}},Ze=class extends _0x42a28f{afterInit(){const _0x50563e=this['editor'],_0x51fea2=_0x50563e['plugins']['get']('TrackChangesEditing');_0x50563e['plugins']['has']('Uploadcare')&&(_0x51fea2['enableCommand']('uploadcare'),_0x50563e['plugins']['has']('UploadcareImageEdit')&&(_0x51fea2['enableCommand']('uploadcareImageEdit'),_0x51fea2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x51fea2['descriptionFactory']['registerDescriptionCallback'](_0x3d1d93=>{if('attribute'!=_0x3d1d93['type'])return;const {data:_0x200768}=_0x3d1d93;return _0x200768&&'uploadcareImageId'==_0x200768['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x42a28f{afterInit(){const _0x2e35cd=this['editor'],_0x5945f1=_0x2e35cd['plugins']['get']('TrackChangesEditing');_0x2e35cd['plugins']['has']('UndoEditing')&&(_0x5945f1['enableCommand']('undo'),_0x5945f1['enableCommand']('redo'));}},tn=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x1d114d=this['editor'];_0x1d114d['plugins']['has']('TableCaptionEditing')&&_0x1d114d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x42a28f{tableProperties;tableCellProperties;constructor(_0x2af823){super(_0x2af823),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4bea23=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x15fbf0 of this['tableProperties'])_0x4bea23['enableCommand'](_0x15fbf0,(_0x53bfed,_0xde687b)=>{const _0x34c2ec=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x15fbf0,[_0x34c2ec],this['tableProperties'],'tableProperties',_0x53bfed,_0xde687b);});_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4bea23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2bbf68,_0x3c6597)=>this['handleDiscardAction'](this['tableProperties'],_0x2bbf68,_0x3c6597)),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4ba3ff of this['tableCellProperties'])this['editor']['commands']['get'](_0x4ba3ff)&&_0x4bea23['enableCommand'](_0x4ba3ff,(_0x2e30be,_0x20c380)=>{const _0x54e480=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4ba3ff,_0x54e480,this['tableCellProperties'],'tableCellProperties',_0x2e30be,_0x20c380);});_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4bea23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44ca67,_0x15d2d1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44ca67,_0x15d2d1)),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4bea23['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4bea23['descriptionFactory']['registerDescriptionCallback'](_0x56228b=>this['handleSuggestionDescription'](_0x56228b)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x1794b5,_0x2404d4,_0x1febf5,_0x3b2997,_0x1cce52,_0x4b86c1){const _0x3e2c8a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b86c1['batch'],()=>{for(const _0x35ce49 of _0x2404d4)if(this['_getSuggestion'](_0x35ce49,_0x3b2997))_0x1cce52(_0x4b86c1);else{const _0x519b54={};for(const _0x2f804d of _0x1febf5){const _0x1b982a=_0x35ce49['getAttribute'](_0x2f804d);void 0x0!==_0x1b982a&&(_0x519b54[_0x2f804d]=_0x1b982a);}const _0xd4c4=this['_getResizedColumnWidths'](_0x35ce49);_0xd4c4&&(_0x519b54['columnWidths']=_0xd4c4),_0x1cce52(_0x4b86c1),_0x3e2c8a['markBlockFormat'](_0x35ce49,{'commandParams':[_0x519b54]},[],_0x3b2997);}});}handleDiscardAction(_0x119d0e,_0x20bd86,_0x43d4f3){const _0x437858=_0x20bd86[0x0]['start']['nodeAfter'],_0x2c09da=_0x43d4f3['commandParams'][0x0];this['editor']['model']['change'](_0x332806=>{for(const _0x5e10b4 of _0x119d0e)void 0x0!==_0x2c09da[_0x5e10b4]?_0x332806['setAttribute'](_0x5e10b4,_0x2c09da[_0x5e10b4],_0x437858):_0x332806['removeAttribute'](_0x5e10b4,_0x437858);if(_0x2c09da['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x574112=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16a16a=_0x574112['getColumnGroupElement'](_0x437858);if(_0x16a16a){const _0x2daaae=_0x574112['getTableColumnsWidths'](_0x16a16a),_0x39b404=_0x437858['getAttribute']('tableWidth');if(('string'==typeof _0x39b404&&_0x39b404['trim']()['endsWith']('px'))!==_0x2daaae['some'](_0x3c0aab=>'string'==typeof _0x3c0aab&&_0x3c0aab['endsWith']('px'))){const _0x3a8da1=_0x574112['getTableColumnElements'](_0x16a16a);_0x2c09da['columnWidths']['forEach']((_0x520af8,_0x36f313)=>{_0x3a8da1[_0x36f313]&&_0x332806['setAttribute']('columnWidth',_0x520af8,_0x3a8da1[_0x36f313]);});}}}});}_getResizedColumnWidths(_0x272483){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x272483['is']('element','table'))return;const _0x5889b5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e674c=_0x5889b5['getColumnGroupElement'](_0x272483);return _0x1e674c?_0x5889b5['getTableColumnsWidths'](_0x1e674c):void 0x0;}handleSuggestionDescription(_0x4aaaf2){if(_0x4aaaf2['data'])switch(_0x4aaaf2['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x328092,_0x583514){const _0x3e5775=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c1fe8 of _0x3e5775['getSuggestions']({'skipNotAttached':!0x0})){const _0x48d9c2=_0x1c1fe8['getContainedElement']();if(_0x1c1fe8['subType']===_0x583514&&_0x48d9c2===_0x328092)return _0x1c1fe8;}return null;}_registerTablePropertiesAttributes(){const _0x4b1fb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5213bb=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xfce2a of _0x5213bb){const _0x2776e8=_0xfce2a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4b1fb8['descriptionFactory']['registerAttributeLabel'](_0xfce2a,Mt(this['editor']['locale'],'FORMAT_'+_0x2776e8));}}},nn=class extends _0x42a28f{afterInit(){const _0x3d8d30=this['editor'];if(!_0x3d8d30['plugins']['has']('LineHeight'))return;const _0x350e7b=_0x3d8d30['plugins']['get']('TrackChangesEditing'),_0x59f399=_0x3d8d30['locale'];_0x350e7b['enableDefaultAttributesIntegration']('lineHeight'),_0x350e7b['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x59f399,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0xc3eca2){return'marker'==_0xc3eca2['type']&&_0xc3eca2['name']['startsWith']('$markedRemove');}function on(_0x2e0c27){return _0x2e0c27?[_0x2e0c27]:[];}var an=class extends _0x42a28f{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x51a4b7,_0x407cac,_0x3f25ff,_0x3b38a1,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xedcda9){super(_0xedcda9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x472090,_0x395a94,_0x48d390,_0x19d867)=>{this['_model']['change'](()=>{for(const _0x33b136 of[..._0x19d867,..._0x48d390])this['_model']['markers']['has'](_0x33b136)&&_0xedcda9['editing']['reconvertMarker'](_0x33b136);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new cn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xedcda9['plugins']['get'](_0x51a4b7),this['_suggestionsConversion']=_0xedcda9['plugins']['get'](_0x407cac),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xedcda9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xedcda9['config']['get']('trackChanges.trackFormatChanges'),_0xedcda9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xedcda9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0xedcda9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1248ec=this['editor'];_0x1248ec['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ab3e0,{writer:_0x5985a0})=>{let _0x46daef='suggestion:'+_0x2ab3e0['getAttribute']('suggestion-type')+':'+_0x2ab3e0['getAttribute']('id');return _0x2ab3e0['getAttribute']('marker-count')&&(_0x46daef+=':'+_0x2ab3e0['getAttribute']('marker-count')),_0x5985a0['createElement']('$marker',{'data-name':_0x46daef});}}),_0x1248ec['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1248ec['model']['document']['registerPostFixer'](_0xe7f440=>{let _0x457af8=!0x1;const _0x2c0bbf=Array['from'](_0x1248ec['model']['document']['differ']['getChangedMarkers']()),_0x5cffa3=new Set();for(const {name:_0x2cd4cb,data:_0x3eca77}of _0x2c0bbf){const {group:_0x15e24b,type:_0x294dba,subType:_0x1e6965,id:_0x43b68c}=tt(_0x2cd4cb);if('suggestion'!==_0x15e24b)continue;const _0x5e533f=_0x1e6965?'suggestion:'+_0x294dba+':'+_0x1e6965+':'+_0x43b68c:'suggestion:'+_0x294dba+':'+_0x43b68c,_0x178a30=_0x1248ec['model']['markers']['getMarkersGroup'](_0x5e533f),_0x4ce5cf=_0x1248ec['model']['markers']['get'](_0x2cd4cb),_0x2de63a=this['_suggestions']['get'](_0x43b68c);if(null!=_0x3eca77['newRange']){'formatInline'==_0x294dba&&(_0x457af8=_0x457af8||dn(_0x3eca77['newRange'],_0x2cd4cb,_0xe7f440,_0x1248ec['model']['schema']));const _0x1b2c50='attribute'==_0x294dba&&this['_suggestionsConversion']['isBlockAttribute'](An(_0x1e6965)),_0x427a09='attribute'==_0x294dba&&this['_suggestionsConversion']['isInlineAttribute'](An(_0x1e6965));if(_0x3eca77['newRange']['isCollapsed']||'$graveyard'==_0x3eca77['newRange']['root']['rootName']||'formatBlock'==_0x294dba&&!gn(_0x3eca77['newRange'])||_0x1b2c50&&!gn(_0x3eca77['newRange'])||_0x427a09&&fn(_0x3eca77['newRange'])||'deletion'==_0x294dba&&fn(_0x3eca77['newRange'])||_0x4ce5cf&&mn(_0x4ce5cf,_0x178a30))_0xe7f440['removeMarker'](_0x2cd4cb),_0x457af8=!0x0;else{if(!_0x2de63a||!_0x2de63a['isInContent'])continue;if(_0x3eca77['newRange']&&_0x3eca77['oldRange']&&_0x3eca77['newRange']['isEqual'](_0x3eca77['oldRange']))continue;_0x5cffa3['add'](_0x2de63a);}}}return _0x5cffa3['size']>0x0&&(_0x457af8=!!this['_joinWithAdjacentSuggestions'](_0x5cffa3)||_0x457af8),_0x457af8;}),_0x1248ec['model']['document']['registerPostFixer'](_0x26e5fb=>{let _0x163a98=!0x1;for(const _0x27d653 of _0x1248ec['model']['document']['differ']['getChanges']())if('insert'==_0x27d653['type'])for(const _0x281167 of this['_suggestions']['values']()){if(_0x281167['isMultiRange']||!_0x281167['isInContent'])continue;const _0x479e14='formatBlock'==_0x281167['type'],_0x4b3406=this['_getAttributeKey'](_0x281167),_0x56243e=_0x4b3406&&this['_suggestionsConversion']['isBlockAttribute'](_0x4b3406);if(!_0x479e14&&!_0x56243e)continue;const _0xeda45=_0x281167['getFirstRange']();if(_0xeda45['start']['parent']!=_0xeda45['end']['parent']&&!_0xeda45['end']['isAtEnd']){const _0x8c57e4=_0x1248ec['model']['createPositionAt'](_0xeda45['start']['nodeAfter'],'end'),_0x5c4004=_0x1248ec['model']['createRange'](_0xeda45['start'],_0x8c57e4);_0x26e5fb['updateMarker'](_0x281167['getFirstMarker'](),{'range':_0x5c4004}),_0x163a98=!0x0;}}return _0x163a98;}),_0x1248ec['model']['document']['registerPostFixer'](_0x4821c1=>this['_processAttributeChanges'](_0x4821c1)),_0x1248ec['model']['document']['registerPostFixer'](_0x343467=>!_0x343467['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x343467)),_0x1248ec['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1248ec['model']['document']['on']('change:data',(_0x3c1abe,_0x34f4dc)=>{if(!_0x34f4dc['isLocal']||_0x34f4dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34ff4c=_0x1248ec['model']['document']['differ']['getChanges']();if(0x0==_0x34ff4c['length'])return;const _0x24ff44=[],_0x55f9ce=_0x34ff4c['filter'](_0x5e3968=>'attribute'==_0x5e3968['type']),_0x1af41e=_0x34ff4c['filter'](_0x51abce=>'insert'==_0x51abce['type']&&'$text'!=_0x51abce['name']);for(const _0x954c87 of _0x55f9ce)this['_suggestionsConversion']['isRegisteredAttribute'](_0x954c87['attributeKey'])&&_0x24ff44['push']({'key':_0x954c87['attributeKey'],'newValue':_0x954c87['attributeNewValue'],'oldValue':_0x954c87['attributeOldValue'],'range':En(_0x954c87['range'],_0x1248ec['model'])});for(const _0x1c2b8f of _0x1af41e){if('rename'!=_0x1c2b8f['action']&&'refresh'!=_0x1c2b8f['action'])continue;const _0x34e932=Tn(_0x1c2b8f['position']['nodeAfter'],_0x1248ec['model']),_0x3737d7=_0x1c2b8f['before'];'rename'==_0x1c2b8f['action']&&_0x24ff44['push']({'key':sn,'newValue':_0x1c2b8f['name'],'oldValue':_0x3737d7['name'],'range':_0x34e932});for(const [_0x2a37a5,_0xbde540]of _0x3737d7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2a37a5))continue;const _0x2115fd=_0x1c2b8f['attributes']['get'](_0x2a37a5);_0xbde540!==_0x2115fd&&_0x24ff44['push']({'key':_0x2a37a5,'newValue':_0x2115fd,'oldValue':_0xbde540,'range':_0x34e932});}for(const [_0xf39781,_0x236914]of _0x1c2b8f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0xf39781)&&(_0x3737d7['attributes']['has'](_0xf39781)||_0x24ff44['push']({'key':_0xf39781,'newValue':_0x236914,'oldValue':null,'range':_0x34e932}));}0x0!=_0x24ff44['length']&&_0x1248ec['model']['enqueueChange'](_0x34f4dc,_0x18f775=>{const _0x5a3cc6=_0x5b5c0d();for(const {range:_0x485788,key:_0x41389d,oldValue:_0x2c4218,newValue:_0x26fc2d}of _0x24ff44)this['markAttributeChange'](_0x485788,_0x41389d,_0x2c4218,_0x26fc2d,{'groupId':_0x5a3cc6});this['_reduceExistingSuggestions'](_0x18f775,_0x24ff44);});},{'priority':'lowest'}),_0x1248ec['model']['markers']['on']('update:suggestion',(_0x38ff08,_0x3d86f5,_0x8d2142)=>{if(null==_0x8d2142){const {id:_0x27c671}=tt(_0x3d86f5['name']),_0x3a1699=this['_suggestions']['get'](_0x27c671);_0x3a1699&&_0x3a1699['addMarkerName'](_0x3d86f5['name']);}}),_0x1248ec['model']['document']['on']('change:data',()=>{const _0x273cc5=Array['from'](_0x1248ec['model']['document']['differ']['getChangedMarkers']())['filter'](_0x7ee5ab=>'suggestion'===tt(_0x7ee5ab['name'])['group']);if(0x0===_0x273cc5['length'])return;_0x273cc5['sort']((_0x5b7451,_0x4d70b2)=>{const _0x1cb073=_0x5b7451['data']['oldRange'],_0x3b8ef5=_0x4d70b2['data']['oldRange'];return null===_0x1cb073&&null===_0x3b8ef5?0x0:null===_0x1cb073&&null!==_0x3b8ef5?-0x1:null!==_0x1cb073&&null===_0x3b8ef5?0x1:_0x1cb073['start']['isBefore'](_0x3b8ef5['start'])?-0x1:0x1;});const _0x1b316b=new Set(),_0x39b782=new Set();for(const {name:_0x23ad26,data:_0x38fcf6}of _0x273cc5){const {id:_0x1d82c7}=tt(_0x23ad26);if(null===_0x38fcf6['oldRange']){const _0x3ae2c2=this['_handleNewSuggestionMarker'](_0x23ad26);_0x39b782['add'](_0x3ae2c2);}else{const _0x33cdd9=this['_suggestions']['get'](_0x1d82c7);null!==_0x38fcf6['newRange']||_0x33cdd9['isInContent']?(_0x1b316b['add'](_0x33cdd9['head']),_0x39b782['add'](_0x33cdd9)):this['_removeSuggestion'](_0x33cdd9);}}_0x39b782['size']>0x0&&this['_refreshSuggestionsChain'](_0x39b782);for(const _0x5e54a9 of _0x1b316b)this['fire']('suggestionChanged',_0x5e54a9);}),_0x1248ec['model']['on']('applyOperation',(_0x368ee8,_0x355df2)=>{const _0xf64fca=_0x355df2[0x0];if(!this['_suggestions']['size'])return;if(!_0xf64fca['isDocumentOperation'])return;if(_0xf64fca['batch']['isUndo']||!_0xf64fca['batch']['isLocal'])return;let _0x5c9e00,_0x27743c;switch(_0xf64fca['type']){case'insert':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['position']),_0x27743c=_0x5c9e00['getShiftedBy'](_0xf64fca['howMany']);break;case'split':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['splitPosition']),_0x27743c=_0x1248ec['model']['createPositionAt'](_0xf64fca['moveTargetPosition']);break;case'move':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['targetPosition']),_0x27743c=_0x5c9e00['getShiftedBy'](_0xf64fca['howMany']);break;default:return;}const _0x21b7b4=_0x1248ec['model']['createRange'](_0x5c9e00,_0x27743c);_0x1248ec['model']['change'](()=>{for(const {suggestion:_0x5c1d93,meta:_0xd18fcd}of this['_findSuggestions'](_0x21b7b4)){if(_0x5c1d93['isMultiRange'])continue;if('formatInline'==_0x5c1d93['type'])continue;const _0x4684a8=this['_getAttributeKey'](_0x5c1d93);if(_0x4684a8&&this['_suggestionsConversion']['isBlockAttribute'](_0x4684a8)&&'split'!=_0xf64fca['type'])continue;const _0x3e0443=_0x5c1d93['data']&&_0x5c1d93['data']['multipleBlocks'];('formatBlock'!=_0x5c1d93['type']||'split'==_0xf64fca['type']&&!_0x3e0443)&&(_0xd18fcd['containsRangeInObject']||'insertion'==_0x5c1d93['type']&&_0xd18fcd['isOwn']||_0x5c1d93['getFirstRange']()['containsRange'](_0x21b7b4)&&this['_breakSuggestionMarker'](_0x5c1d93,_0x5c9e00,_0x27743c));}});},{'priority':'lowest'}),_0x1248ec['model']['on']('deleteContent',(_0x3adc4d,_0xf89b0e)=>{const _0x5e87d9=_0xf89b0e[0x0],_0x1c5c2c=_0xf89b0e[0x1];if(_0x1c5c2c&&_0x1c5c2c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e87d9['isCollapsed'])return;const _0x377790=_0x1248ec['model']['schema'],{start:_0x40deb2,end:_0x46ce68}=_0x5e87d9['getFirstRange'](),_0x30d674=_0x40deb2['nodeAfter']&&_0x377790['isLimit'](_0x40deb2['nodeAfter'])?null:_0x377790['getNearestSelectionRange'](_0x40deb2,'forward'),_0x42f8cf=_0x46ce68['nodeBefore']&&_0x377790['isLimit'](_0x46ce68['nodeBefore'])?null:_0x377790['getNearestSelectionRange'](_0x46ce68,'backward'),_0x47701c=_0x1248ec['model']['createRange'](_0x30d674?_0x30d674['start']:_0x40deb2,_0x42f8cf?_0x42f8cf['end']:_0x46ce68);_0x1248ec['model']['change'](_0x3b1114=>{this['markDeletion'](_0x47701c);const _0x2d39fc=_0x1248ec['model']['schema']['getNearestSelectionRange'](_0x47701c['start']);_0x5e87d9['is']('documentSelection')?_0x3b1114['setSelection'](_0x2d39fc):_0x5e87d9['setTo'](_0x2d39fc);}),_0x3adc4d['stop']();},{'priority':_0x5ee963['normal']+0xa}),_0x1248ec['model']['on']('insertContent',(_0x5d3172,_0x626018)=>{const _0x51a18a=_0x626018[_0x626018['length']-0x1];_0x51a18a&&_0x51a18a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1248ec['model']['change'](()=>{let _0x4dad20=_0x1248ec['model']['insertContent'](_0x626018[0x0],_0x626018[0x1],_0x626018[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dad20)return;_0x5d3172['return']=_0x4dad20['clone']();const _0x3f8c3f=_0x4dad20['end']['nodeBefore'],_0x5e3c96=_0x1248ec['model']['schema'];_0x3f8c3f&&_0x5e3c96['isBlock'](_0x3f8c3f)&&!_0x5e3c96['isObject'](_0x3f8c3f)&&(_0x4dad20=_0x1248ec['model']['createRange'](_0x4dad20['start'],_0x1248ec['model']['createPositionAt'](_0x3f8c3f,'end'))),this['markInsertion'](_0x4dad20);}),_0x5d3172['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb31725=new _t(_0x1248ec,this['_suggestions']);_0x1248ec['commands']['add']('acceptSuggestion',_0xb31725),this['enableCommand']('acceptSuggestion');const _0x2d49d5=new pt(_0x1248ec,this['_suggestions']);_0x1248ec['commands']['add']('discardSuggestion',_0x2d49d5),this['enableCommand']('discardSuggestion'),_0x1248ec['commands']['add']('acceptAllSuggestions',new Rt(_0x1248ec,_0xb31725,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1248ec['commands']['add']('discardAllSuggestions',new Rt(_0x1248ec,_0x2d49d5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1248ec['commands']['add']('acceptSelectedSuggestions',new yt(_0x1248ec,_0xb31725,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1248ec['commands']['add']('discardSelectedSuggestions',new yt(_0x1248ec,_0x2d49d5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x168872=_0x1248ec['plugins']['get'](_0x51a4b7);this['listenTo'](_0x168872,'addComment',(_0x446e50,{threadId:_0x5278a4})=>{const _0x429b09=this['_suggestions']['get'](_0x5278a4);_0x429b09&&_0x429b09['commentThread']&&0x1===_0x429b09['commentThread']['length']&&this['_updateSuggestionData'](_0x5278a4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x168872,'removeComment',(_0x44a144,{threadId:_0x1e7bb5})=>{const _0x52acc8=this['_suggestions']['get'](_0x1e7bb5);_0x52acc8&&_0x52acc8['commentThread']&&!_0x52acc8['commentThread']['length']&&this['_updateSuggestionData'](_0x1e7bb5,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x48265a){const _0x50cfc6='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x37eada=0x795c0,_0x33b1cb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x254ef6(_0x28e09c){const _0x358ecf=new window['Promise'](_0x585a0f=>{_0x28e09c['once']('ready',_0x585a0f);}),_0x56cc38=window['Date']['now'](),_0x30261a=_0x28e09c['config']['get']('licenseKey');async function _0x19d77e(){let _0xd29bad,_0x1971f6=null,_0x88c58=null;try{return'GPL'==_0x30261a?'NotAllowed':(_0xd29bad=_0x488042(),_0xd29bad?(_0xd29bad['usageEndpoint']&&(_0x88c58=_0xe6719(_0xd29bad['usageEndpoint'],_0xd29bad['jti'])),await _0x161737()?_0x2715b9()?_0x20e683()?'Expired':_0x10dc7b()?('evaluation'==_0xd29bad['licenseType']&&(_0x1971f6=_0x526155('EvaluationLimit')),await _0x36dc5f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x20e683(){const _0x18e616=['evaluation','trial']['includes'](_0xd29bad['licenseType'])?_0x56cc38/0x3e8:0xe10*_0x37eada;return _0xd29bad['exp']<_0x18e616;}function _0x2715b9(){const _0x5d51bc=_0xd29bad['features'];if(!_0x5d51bc)return!0x1;if(_0x5d51bc['includes']('*'))return!0x0;if(_0x5d51bc['includes']('TC'))return!0x0;if(_0x5d51bc['includes']('RTC')){if(_0x24510a())return!0x0;if(_0x1c3bf6()||_0x40f34c())return!0x0;}return!0x1;}function _0x10dc7b(){const _0x35c68d=_0xd29bad['licensedHosts'];if(!_0x35c68d||0x0==_0x35c68d['length'])return!0x0;const {hostname:_0x8e5cf}=new URL(window['location']['href']);if(_0x35c68d['includes'](_0x8e5cf))return!0x0;const _0x29d654=_0x8e5cf['split']('.');return _0x35c68d['filter'](_0x411b92=>_0x411b92['includes']('*'))['map'](_0x1e41aa=>_0x1e41aa['split']('.'))['filter'](_0x6ae6f5=>_0x6ae6f5['length']<=_0x29d654['length'])['map'](_0x333d98=>Array(_0x29d654['length']-_0x333d98['length'])['fill']('*'===_0x333d98[0x0]?'*':'')['concat'](_0x333d98))['some'](_0x50a6b3=>_0x29d654['every']((_0x25cfab,_0x17f78a)=>_0x50a6b3[_0x17f78a]===_0x25cfab||'*'===_0x50a6b3[_0x17f78a]));}function _0x36dc5f(){return _0x1971f6&&_0x88c58?new window['Promise']((_0x35cea8,_0x5421c8)=>{_0x1971f6['then'](_0x35cea8,_0x5421c8),_0x88c58['then'](_0x4c6ee6=>{'Valid'!=_0x4c6ee6&&_0x35cea8(_0x4c6ee6);},_0x5421c8);}):_0x1971f6||_0x88c58||'Valid';}}function _0xe6719(_0x4903c0,_0x1d10a5){return new window['Promise'](_0x31cd84=>{if(_0x2b0cb6())return _0x31cd84('Valid');_0x2d7083(),_0x28e09c['decorate']('_sendUsageRequest');let _0x340565=!0x1;const _0x1fd137=_0x5b5c0d();function _0x16e22c(_0x1f8606){return!!_0x1f8606&&('object'==typeof _0x1f8606||'function'==typeof _0x1f8606)&&'function'==typeof _0x1f8606['then']&&'function'==typeof _0x1f8606['catch'];}function _0x22dd34(_0x548017){_0x461a35(_0x548017)['then'](_0x4283c9=>_0x4283c9&&'ok'==_0x4283c9['status']?_0x3b7894(_0x509c84(_0x1fd137+_0x1d10a5))!=_0x4283c9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3d465e=>(_0x47072f(),_0x3d465e),()=>{const _0x290d38=_0x3140ed();return null==_0x290d38?(_0x47072f(),'Valid'):_0x56cc38-_0x290d38>0x240c8400?'UsageLimit':'Valid';})['then'](_0x31cd84)['catch'](()=>{_0x31cd84('UsageLimit');});const _0x38d8f5=0x36ee80;function _0x47072f(){const _0x1d1261='llct-'+_0x3b7894(_0x509c84(_0x4903c0)),_0x2e96d3=_0x1fbeee(_0x3b7894(window['Math']['ceil'](_0x56cc38/_0x38d8f5)));window['localStorage']['setItem'](_0x1d1261,_0x2e96d3);}function _0x3140ed(){const _0x5cb7b8='llct-'+_0x3b7894(_0x509c84(_0x4903c0)),_0x78fd7=window['localStorage']['getItem'](_0x5cb7b8);return _0x78fd7?window['parseInt'](_0x1fbeee(_0x78fd7),0x10)*_0x38d8f5:null;}function _0x461a35(_0x1017d8){return new window['Promise']((_0x1fef55,_0x2c6c69)=>{_0x1017d8['then'](_0x1fef55,_0x2c6c69),window['setTimeout'](_0x2c6c69,0x1d4c0);});}}_0x28e09c['on']('_sendUsageRequest',(_0x22d9fb,_0x180e1c)=>{if(_0x180e1c[0x0]!=_0x4903c0)return _0x31cd84('UsageLimit');_0x180e1c[0x1]={..._0x180e1c[0x1],'requestId':_0x1fd137};},{'priority':'high'}),_0x28e09c['on']('_sendUsageRequest',_0x47d828=>{_0x16e22c(_0x47d828['return'])&&(_0x340565=!0x0,_0x22dd34(_0x47d828['return']));},{'priority':'low'}),_0x358ecf['then'](()=>{_0x340565||_0x31cd84('UsageLimit');});});function _0x2b0cb6(){return'auto'==_0x28e09c['editing']['view']['_overlayModeHint'];}function _0x2d7083(){_0x28e09c['editing']['view']['_overlayModeHint']='auto';}}function _0x526155(_0x34c166){const _0x2f2e77=[new window['Promise'](_0x2b8313=>setTimeout(_0x2b8313,0x93ecc)),_0x358ecf['then'](()=>new window['Promise'](_0x18eb3f=>{let _0xa8b0f2=0x0;_0x28e09c['model']['on']('applyOperation',(_0x514224,_0x214453)=>{_0x214453[0x0]['isDocumentOperation']&&_0xa8b0f2++,0x5e8==_0xa8b0f2&&(_0x18eb3f(),_0x514224['off']());});}))];return window['Promise']['race'](_0x2f2e77)['then'](()=>_0x34c166);}async function _0x440107(){await _0x358ecf,_0x28e09c['model']['change']=_0x3a091a,_0x28e09c['model']['enqueueChange']=_0x3a091a,_0x28e09c['enableReadOnlyMode']('model');}function _0x24510a(){return _0x406dfa('WebSocketGateway')&&'connected'==_0x48906a('WebSocketGateway')['state'];}function _0x1c3bf6(){return _0x406dfa('RevisionViewerIntegration');}function _0x40f34c(){return _0x406dfa('TrackChangesDataGetter');}function _0x503341(_0x13c6d3){const _0x2de05b=_0x1fd814();_0x28e09c[_0x2de05b]='trackChangesLicenseKey'+_0x13c6d3,'Valid'!=_0x13c6d3&&_0x440107();}function _0x1fd814(){const _0x254cfe=window['String'](window['performance']['now']())['replace']('.','');let _0x559414='U';for(let _0x4f8b87=0x0;_0x4f8b87<_0x254cfe['length'];_0x4f8b87+=0x2){let _0x383841=window['parseInt'](_0x254cfe['substring'](_0x4f8b87,_0x4f8b87+0x2));_0x383841>=0x3e&&(_0x383841-=0x3e),_0x559414+=_0x50cfc6[_0x383841];}return _0x559414;}function _0x488042(){const _0x50af5f=_0x30261a['split']('.');if(0x3!=_0x50af5f['length'])return null;return _0x4e20c5(_0x50af5f[0x1]);function _0x4e20c5(_0x5c9b18){const _0x648557=_0x503d88(_0x5c9b18);return _0x648557&&_0x1a4da1()?_0x648557:null;function _0x1a4da1(){const _0x129bd8=_0x648557['jti'],_0x4cf9df=window['parseInt'](_0x129bd8['substring'](_0x129bd8['length']-0x8),0x10),_0x13f54a={..._0x648557,'jti':_0x129bd8['substring'](0x0,_0x129bd8['length']-0x8)};return delete _0x13f54a['vc'],_0x509c84(_0x13f54a)==_0x4cf9df;}}}async function _0x161737(){let _0x1569a1=!0x0;try{const [_0xf6ecb6,_0xdd4ddf,_0x4d3009]=_0x30261a['split']('.');return _0x1c9889(_0xf6ecb6),await _0xa6387a(_0xf6ecb6,_0xdd4ddf,_0x4d3009),_0x1569a1;}catch{return!0x1;}function _0x1c9889(_0x3d45f7){const _0xd361f3=_0x503d88(_0x3d45f7);_0xd361f3&&'ES256'==_0xd361f3['alg']||(_0x1569a1=!0x1);}async function _0xa6387a(_0x22d3dc,_0x56e1e6,_0x373c5a){const _0x1dcfac=window['Uint8Array']['from'](_0x26dfb4(_0x373c5a),_0x4f6326=>_0x4f6326['charCodeAt'](0x0)),_0x311bd2=new window['TextEncoder']()['encode'](_0x22d3dc+'.'+_0x56e1e6),_0x44dea4=window['crypto']['subtle'];if(!_0x44dea4)return;const _0x276d8e=await _0x44dea4['importKey']('jwk',_0x33b1cb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x44dea4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x276d8e,_0x1dcfac,_0x311bd2)||(_0x1569a1=!0x1);}}function _0x503d88(_0x1a81c1){return _0x1a81c1['startsWith']('ey')?JSON['parse'](_0x26dfb4(_0x1a81c1)):null;}function _0x26dfb4(_0x323817){return window['atob'](_0x323817['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x509c84(_0x3b2dc5){let _0x1543ea=0x1505;function _0x169152(_0x2a1f58){for(let _0x5f5112=0x0;_0x5f5112<_0x2a1f58['length'];_0x5f5112++){const _0x497840=_0x2a1f58['charCodeAt'](_0x5f5112);_0x1543ea=(_0x1543ea<<0x5)+_0x1543ea+_0x497840,_0x1543ea&=_0x1543ea;}}function _0x2c11c7(_0x97ddba){Array['isArray'](_0x97ddba)?_0x97ddba['forEach'](_0x2c11c7):_0x97ddba&&'object'==typeof _0x97ddba?Object['entries'](_0x97ddba)['sort']()['forEach'](([_0x2c53a6,_0x3426f2])=>{_0x169152(_0x2c53a6),_0x2c11c7(_0x3426f2);}):_0x169152(window['String'](_0x97ddba));}return _0x2c11c7(_0x3b2dc5),_0x1543ea>>>0x0;}function _0x3b7894(_0x191608){return _0x191608['toString'](0x10)['padStart'](0x8,'0');}function _0x1fbeee(_0x18c01b){return _0x18c01b['split']('')['reverse']()['join']('');}function _0x406dfa(_0x3a5cde){return _0x28e09c['plugins']['has'](_0x3a5cde);}function _0x48906a(_0x4139b4){return _0x28e09c['plugins']['get'](_0x4139b4);}function _0x3a091a(){}_0x503341(await _0x19d77e());}_0x254ef6(_0x48265a['editor']);}(this);}set adapter(_0x336fad){if(this['_adapter'])throw new _0x5f6c00('track-changes-adapter-already-set',this);this['_adapter']=_0x336fad;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x48240f=!0x1,toJSON:_0x39456b=!0x1}={}){const _0x4eee84=[];for(const _0x476804 of this['_suggestions']['values']())_0x48240f&&!_0x476804['isInContent']||_0x4eee84['push'](_0x476804);return _0x39456b?_0x4eee84['map'](_0x3df44e=>_0x3df44e['toJSON']()):_0x4eee84;}getSuggestion(_0x342fb3){const _0x307dba=this['_suggestions']['get'](_0x342fb3);if(!_0x307dba)throw new _0x5f6c00('track-changes-suggestion-not-found',this);return _0x307dba;}hasSuggestion(_0xdc9e1f){return this['_suggestions']['has'](_0xdc9e1f);}addSuggestionData(_0x4507c6){const {authorId:_0x332d5b,id:_0x14d7db,originalSuggestionId:_0x2e2868,attributes:_0x3e209e}=_0x4507c6,[_0x565852,_0x5af431]=_0x4507c6['type']['split'](':'),_0x16af14=this['_suggestions']['get'](_0x14d7db)||this['_createSuggestion'](_0x565852,_0x5af431,_0x14d7db,_0x332d5b,_0x3e209e,_0x2e2868);if(this['_addThreadToSuggestion'](_0x16af14),this['_checkSuggestionCorrectness'](_0x16af14,_0x565852,_0x5af431||null,_0x332d5b),_0x16af14['createdAt']=_0x4507c6['createdAt'],_0x16af14['_isDataLoaded']=!0x0,_0x3e209e&&_0x3e209e['@external']){const _0x46aae1=_0x3e209e['@external'],_0xb3936f=this['_getExternalAuthor'](_0x46aae1['authorName']);_0x16af14['authoredAt']=_0x46aae1['createdAt'],_0x16af14['author']=_0xb3936f;}else _0x16af14['authoredAt']=_0x4507c6['createdAt'];switch(_0x4507c6['data']&&(_0x16af14['data']=_0x4507c6['data']),_0x4507c6['attributes']&&(_0x16af14['attributes']=_0x4507c6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16af14['_saved']=!0x0),this['_suggestionState']['get'](_0x16af14)){case'notReady':this['_suggestionState']['set'](_0x16af14,'dataReady');break;case'markerReady':_0x16af14['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16af14])),this['_refreshSuggestionsChain'](new Set([_0x16af14])),this['_suggestionState']['set'](_0x16af14,'ready'),this['fire']('suggestionLoaded',_0x16af14)):this['_suggestionState']['set'](_0x16af14,'removed');}return _0x16af14;}acceptSuggestion(_0x3eb0ca){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb9f9b9 of _0x3eb0ca['getAllAdjacentSuggestions']())_0xb9f9b9['accept']();});});}discardSuggestion(_0x2505fd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12e3b0 of _0x2505fd['getAllAdjacentSuggestions']())_0x12e3b0['discard']();});});}['enableCommand'](_0x1d47a9,_0x37f97b){const _0x49ff34=this['editor']['commands']['get'](_0x1d47a9);if(!_0x49ff34)throw new _0x5f6c00('track-changes-command-not-found',this,{'commandName':_0x1d47a9});if(this['_enabledCommands']['has'](_0x49ff34))throw new _0x5f6c00('track-changes-enable-command-twice',this,{'commandName':_0x1d47a9});this['_enabledCommands']['add'](_0x49ff34),_0x37f97b&&_0x49ff34['on']('execute',(_0x747c62,_0x26b52b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26b52b['length']>0x0&&_0x26b52b[_0x26b52b['length']-0x1]&&_0x26b52b[_0x26b52b['length']-0x1]['forceDefaultExecution']?_0x26b52b['pop']():(_0x747c62['return']=_0x37f97b((..._0x297884)=>_0x49ff34['execute'](..._0x297884,{'forceDefaultExecution':!0x0}),..._0x26b52b),_0x747c62['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x116d88){let _0x2b10e8,_0x4f4eae;const _0x4a7f84=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b10e8=_0x116d88();}catch(_0x4ca477){_0x4f4eae=_0x4ca477;}return _0x4a7f84||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4eae&&_0x5f6c00['rethrowUnexpectedError'](_0x4f4eae,this),_0x2b10e8;}markInsertion(_0x3101aa,_0x1a244a=null,_0x3e8b45={}){if(_0x3101aa['isCollapsed'])return null;const _0x52a396=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e8b45['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1964b1,meta:_0x27c01f}of this['_findSuggestions'](_0x3101aa,'insertion'))if(_0x27c01f['isOwn']){if(!_0x27c01f['isNextTo']){if(_0x27c01f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x1964b1,_0x3e8b45))continue;return _0x1964b1;}if(Ln(_0x1964b1,_0x3e8b45))return _0x1964b1;this['_breakSuggestionMarker'](_0x1964b1,_0x3101aa['start'],_0x3101aa['end']);break;}if(_0x1a244a==_0x1964b1['subType']&&Ln(_0x1964b1,_0x3e8b45)){const _0x2c9e00=_0x1964b1['getFirstRange']();return _0x2c9e00['start']['isEqual'](_0x3101aa['end'])?this['_setSuggestionRange'](_0x1964b1,this['_model']['createRange'](_0x3101aa['start'],_0x2c9e00['end'])):this['_setSuggestionRange'](_0x1964b1,this['_model']['createRange'](_0x2c9e00['start'],_0x3101aa['end'])),_0x1964b1;}}const _0x145af3=_0x5b5c0d(),_0x15594c=_0x52a396['id'],_0x44049b=_0x1a244a?'insertion:'+_0x1a244a:'insertion',_0x6e8457=this['_setSuggestionData']({'id':_0x145af3,'type':_0x44049b,'createdAt':new Date(),'authorId':_0x15594c,'attributes':_0x3e8b45});return this['_addSuggestionMarker'](_0x44049b,_0x145af3,_0x15594c,_0x3101aa),_0x6e8457;}markMultiRangeInsertion(_0x1a4357,_0x451cb1='multi',_0xc0e188={}){const _0x4efd62=this['editor']['plugins']['get']('Users')['me'],_0x289750=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x451cb1,'join');this['_trackingSessionId']&&(_0xc0e188['trackingSessionId']=this['_trackingSessionId']);for(const _0x2acb15 of this['getSuggestions']())if(_0x2acb15['author']['id']==_0x4efd62['id']&&'insertion'==_0x2acb15['type']&&_0x2acb15['subType']==_0x451cb1&&Ln(_0x2acb15,_0xc0e188)&&(_0x289750(_0x2acb15['getRanges'](),_0x1a4357)||_0x289750(_0x1a4357,_0x2acb15['getRanges']()))){for(const _0x57a5f9 of _0x1a4357)_0x2acb15['addRange'](_0x57a5f9);return _0x2acb15;}for(const {suggestion:_0x1e199c,meta:_0x1b5ff9}of this['_findSuggestions'](_0x1a4357,'insertion')){if(!_0x1b5ff9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1b5ff9['containsRangeInObject'])continue;if(!Ln(_0x1e199c,_0xc0e188))continue;let _0x4dcecf=!0x0;for(const _0x24d032 of _0x1e199c['getRanges']())for(const _0x51f78b of _0x1a4357)if(!_0x24d032['containsRange'](_0x51f78b)){_0x4dcecf=!0x1;break;}if(_0x4dcecf)return _0x1e199c;}const _0x3b6a71=_0x5b5c0d(),_0x3f6fab=_0x4efd62['id'],_0x499e17='insertion:'+_0x451cb1,_0x9aaf87=this['_setSuggestionData']({'id':_0x3b6a71,'type':_0x499e17,'createdAt':new Date(),'authorId':_0x3f6fab,'attributes':_0xc0e188});for(const _0x4ab05b of _0x1a4357)this['_addSuggestionMarker'](_0x499e17,_0x3b6a71,_0x3f6fab,_0x4ab05b,St['getMultiRangeId']());return _0x9aaf87;}markInlineFormat(_0x4cdc09,_0xcfc6f9,_0x44c127=null,_0x6d8134={}){if(_0x44c127=_0x44c127||hn(_0xcfc6f9),_0x4cdc09['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x6d8134['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28afcf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c127,'accept');return this['forceDefaultExecution'](()=>_0x28afcf([_0x4cdc09],_0xcfc6f9,_0x6d8134)),null;}const _0x13b3ae=this['editor']['plugins']['get']('Users')['me'],_0xd8587=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x500151,meta:_0x592de1}of this['_findSuggestions'](_0x4cdc09,'insertion'))_0x592de1['isOwn']&&!_0x592de1['isInsideObject']&&_0xd8587['push'](..._0x500151['getRanges']());}const _0x157d97=function(_0x26aa9a,_0x13af11){const _0x178c80=[];for(const _0x2340b9 of _0x13af11){const _0x4cb73e=_0x26aa9a['getIntersection'](_0x2340b9);_0x4cb73e&&_0x178c80['push'](_0x4cb73e);}return _0x178c80;}(_0x4cdc09,_0xd8587),_0xed374f=function(_0x2afece,_0x49ccc9){const _0x2ba02f=[_0x2afece];for(const _0x224be9 of _0x49ccc9){let _0x1f75c6=0x0;for(;_0x1f75c6<_0x2ba02f['length'];){const _0xa0c4b9=_0x2ba02f[_0x1f75c6]['getDifference'](_0x224be9);_0x2ba02f['splice'](_0x1f75c6,0x1,..._0xa0c4b9),_0x1f75c6+=_0xa0c4b9['length'];}}return _0x2ba02f;}(_0x4cdc09,_0xd8587);_0x157d97['length']&&this['_model']['change'](()=>{for(const _0x50581f of _0x157d97){const _0x59acc4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c127,'accept');this['forceDefaultExecution'](()=>_0x59acc4([_0x50581f],_0xcfc6f9,_0x6d8134));}});for(const _0x145a10 of _0xed374f){let _0x471144=null,_0x438c31=_0x145a10['start'],_0x248bc3=_0x145a10['end'];for(const {suggestion:_0x5647dc,meta:_0x3136e9}of this['_findSuggestions'](_0x145a10,'formatInline')){if(!_0x3136e9['isOwn'])continue;if(_0x5647dc['subType']!=_0x44c127)continue;if(!Ln(_0x5647dc,_0x6d8134))continue;const _0x5bf3ee=_0x5647dc['getFirstRange']();if(_0x5bf3ee['containsRange'](_0x145a10,!0x0))return null;_0x438c31=_0x438c31['isBefore'](_0x5bf3ee['start'])?_0x438c31:_0x5bf3ee['start'],_0x248bc3=_0x248bc3['isAfter'](_0x5bf3ee['end'])?_0x248bc3:_0x5bf3ee['end'],_0x471144?_0x5bf3ee['start']['isBefore'](_0x471144['getFirstRange']()['start'])?(_0x471144['removeMarkers'](),_0x471144=_0x5647dc):_0x5647dc['removeMarkers']():_0x471144=_0x5647dc;}const _0x24afec=this['_model']['createRange'](_0x438c31,_0x248bc3);if(_0x471144)this['_setSuggestionRange'](_0x471144,_0x24afec);else{const _0x45f411=_0x5b5c0d(),_0x1c30da=_0x13b3ae['id'];this['_setSuggestionData']({'id':_0x45f411,'type':'formatInline:'+_0x44c127,'data':_0xcfc6f9,'createdAt':new Date(),'authorId':_0x1c30da,'attributes':_0x6d8134}),this['_addSuggestionMarker']('formatInline:'+_0x44c127,_0x45f411,_0x1c30da,_0x24afec);}}return null;}markBlockFormat(_0x239d97,_0x1196ec,_0x5e81d3=[],_0x3ae29c=null,_0x3cdf07={}){_0x1196ec['formatGroupId']||(_0x1196ec['formatGroupId']=_0x1196ec['commandName']),_0x1196ec['multipleBlocks']=_0x239d97['is']('range'),_0x3ae29c=_0x3ae29c||hn(_0x1196ec);const _0x4a8ea9=_0x5e81d3['map'](_0x59d557=>Tn(_0x59d557,this['_model'])),_0x3354e8=_0x239d97['is']('range')?_0x239d97:Tn(_0x239d97,this['_model']);if(this['_trackingSessionId']&&(_0x3cdf07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x406c58=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ae29c,'accept');return this['forceDefaultExecution'](()=>_0x406c58([_0x3354e8],_0x1196ec,_0x3cdf07)),null;}_0x4a8ea9['push'](_0x3354e8);let _0x4007bd=!0x0;for(const _0x1d50ec of _0x4a8ea9)if(!this['_rangeIsInLocalUserInsertion'](_0x1d50ec)){_0x4007bd=!0x1;break;}if(_0x4007bd&&'always'!==this['_trackFormatChanges']){const _0x3d772b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ae29c,'accept');return this['forceDefaultExecution'](()=>_0x3d772b([_0x3354e8],_0x1196ec,_0x3cdf07)),null;}let _0x27bebe=null,_0x14db35=_0x3354e8['start'],_0x11b3da=_0x3354e8['end'];for(const {suggestion:_0x447fe3,meta:_0x59bf24}of this['_findSuggestions'](_0x3354e8,'formatBlock')){if(!_0x59bf24['isOwn'])continue;if(_0x59bf24['isNextTo']||_0x59bf24['containsRangeInObject']||_0x59bf24['isInsideObject'])continue;if(_0x447fe3['data']['formatGroupId']!=_0x1196ec['formatGroupId'])continue;if(!Ln(_0x447fe3,_0x3cdf07))continue;const _0x575b79=_0x447fe3['getFirstRange']();if(_0x447fe3['subType']==_0x3ae29c){if(_0x575b79['containsRange'](_0x3354e8,!0x0))return null;_0x14db35=_0x14db35['isBefore'](_0x575b79['start'])?_0x14db35:_0x575b79['start'],_0x11b3da=_0x11b3da['isAfter'](_0x575b79['end'])?_0x11b3da:_0x575b79['end'],_0x27bebe?_0x575b79['start']['isBefore'](_0x27bebe['getFirstRange']()['start'])?(_0x27bebe['removeMarkers'](),_0x27bebe=_0x447fe3):_0x447fe3['removeMarkers']():_0x27bebe=_0x447fe3;}else{const _0x260d54=_0x3354e8['getIntersection'](_0x575b79);this['_cutOutSuggestionMarker'](_0x447fe3,_0x260d54);}}const _0x4042c6=this['editor']['plugins']['get']('Users')['me'],_0x168a54=_0x5b5c0d(),_0x332db8=_0x4042c6['id'];if(_0x27bebe)return this['_setSuggestionRange'](_0x27bebe,this['_model']['createRange'](_0x14db35,_0x11b3da)),_0x27bebe;{const _0x2623cf=this['_setSuggestionData']({'id':_0x168a54,'type':'formatBlock:'+_0x3ae29c,'data':_0x1196ec,'createdAt':new Date(),'authorId':_0x332db8,'attributes':_0x3cdf07});return this['_addSuggestionMarker']('formatBlock:'+_0x3ae29c,_0x168a54,_0x332db8,this['_model']['createRange'](_0x14db35,_0x11b3da)),_0x2623cf;}}markMultiRangeBlockFormat(_0x2ea537,_0xc97950,_0x32a522=[],_0xacb8af=null,_0x4b71c1={}){_0xc97950['formatGroupId']||(_0xc97950['formatGroupId']=_0xc97950['commandName']);const _0x5beeb8=_0x2ea537[0x0];_0xc97950['multipleBlocks']=_0x5beeb8['is']('range'),_0xacb8af=_0xacb8af||hn(_0xc97950);const _0x25074b=_0x32a522['map'](_0x34b01a=>Tn(_0x34b01a,this['_model'])),_0x32e802=_0x5beeb8['is']('range')?_0x2ea537:_0x2ea537['map'](_0x50643a=>Tn(_0x50643a,this['_model']));if(this['_trackingSessionId']&&(_0x4b71c1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3959b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'accept');return this['forceDefaultExecution'](()=>_0x3959b5(_0x32e802,_0xc97950,_0x4b71c1)),null;}_0x25074b['push'](..._0x32e802);let _0x3c1770=!0x0;for(const _0x4f7a34 of _0x25074b)if(!this['_rangeIsInLocalUserInsertion'](_0x4f7a34)){_0x3c1770=!0x1;break;}if(_0x3c1770&&'always'!==this['_trackFormatChanges']){const _0x3def19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'accept');return this['forceDefaultExecution'](()=>_0x3def19(_0x32e802,_0xc97950,_0x4b71c1)),null;}const _0x4491a1=this['editor']['plugins']['get']('Users')['me'];for(const _0x23b519 of this['getSuggestions']()){const _0x4afba8=_0x23b519['data'];if(_0x23b519['author']['id']!=_0x4491a1['id'])continue;if('formatBlock'!=_0x23b519['type']||_0x4afba8['formatGroupId']!=_0xc97950['formatGroupId'])continue;if(!Ln(_0x23b519,_0x4b71c1))continue;const _0x437a6d=_0x23b519['subType']==_0xacb8af;for(let _0x1f9396=0x0;_0x1f9396<_0x32e802['length'];_0x1f9396++){const _0x13b65b=_0x32e802[_0x1f9396];for(const _0x5633e8 of _0x23b519['getMarkers']()){const _0x3cef89=_0x5633e8['getRange']();if(_0x13b65b['isEqual'](_0x3cef89)){_0x437a6d?(_0x32e802['splice'](_0x1f9396,0x1),_0x1f9396--):_0x23b519['removeMarker'](_0x5633e8['name']);break;}}}}if(0x0==_0x32e802['length'])return null;const _0x26cb28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'join');for(const _0x3d432f of this['getSuggestions']()){const _0x1524b9=_0x3d432f['data'];if(_0x3d432f['author']['id']==_0x4491a1['id']&&('formatBlock'==_0x3d432f['type']&&_0x1524b9['formatGroupId']==_0xc97950['formatGroupId']&&_0x3d432f['subType']==_0xacb8af&&Ln(_0x3d432f,_0x4b71c1)&&(_0x26cb28(_0x3d432f['getRanges'](),_0x32e802)||_0x26cb28(_0x32e802,_0x3d432f['getRanges']())))){for(const _0x517df6 of _0x32e802)_0x3d432f['addRange'](_0x517df6);return _0x3d432f;}}const _0x564b6b=_0x5b5c0d(),_0x4a606e=_0x4491a1['id'],_0x11965d='formatBlock:'+_0xacb8af,_0x3ccbe5=this['_setSuggestionData']({'id':_0x564b6b,'type':_0x11965d,'data':_0xc97950,'createdAt':new Date(),'authorId':_0x4a606e,'attributes':_0x4b71c1});for(const _0x21ac46 of _0x32e802)this['_addSuggestionMarker'](_0x11965d,_0x564b6b,_0x4a606e,_0x21ac46,St['getMultiRangeId']());return _0x3ccbe5;}markDeletion(_0x248ee1,_0x22ca68=null,_0xe4b058={}){if(_0x248ee1['isCollapsed'])return null;const _0x285cfa=this['editor']['plugins']['get']('Users')['me'],_0x35cd42=new rt(_0x248ee1['start'],_0x248ee1['end']);this['_trackingSessionId']&&(_0xe4b058['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17c07b,meta:_0x1a2e58}of this['_findSuggestions'](_0x35cd42,'insertion'))if(_0x1a2e58['isOwn']&&!_0x1a2e58['isNextTo']){if(_0x17c07b['isMultiRange']){const _0x56016e=_0x17c07b['getRanges']()['filter'](_0x1dec6e=>'$graveyard'!=_0x1dec6e['root']['rootName']);if(_0x56016e['every'](_0x9a7277=>_0x35cd42['containsRange'](_0x9a7277,!0x0))&&_0x17c07b['discard'](),_0x56016e['some'](_0x4318d8=>_0x4318d8['containsRange'](_0x35cd42,!0x0))){const _0x46e056=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ca68,'accept');return this['forceDefaultExecution'](()=>_0x46e056([_0x35cd42],null,_0xe4b058)),null;}}else{const _0x38633b=_0x35cd42['getIntersection'](_0x17c07b['getFirstRange']());null!==_0x38633b&&_0x17c07b['_onDiscard']([_0x38633b],null,_0xe4b058);}}if(_0x35cd42['detach'](),_0x35cd42['isCollapsed']||'$graveyard'==_0x35cd42['root']['rootName'])return null;let _0x189026=null,_0x43ad9b=_0x35cd42['start'],_0x5d936a=_0x35cd42['end'];const _0x162f61=this['_findSuggestions'](_0x35cd42,'deletion');for(const {suggestion:_0x3657f3,meta:_0x30f38a}of _0x162f61){const _0x5cd54c=this['_model']['createRange'](_0x43ad9b,_0x5d936a);if(_0x30f38a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30f38a['containsRangeInObject']&&!_0x30f38a['isInsideObject'])){if(_0x3657f3['isMultiRange']){if(!Ln(_0x3657f3,_0xe4b058))continue;let _0x3f1a1d=!0x0;for(const _0x1a1ba0 of _0x3657f3['getRanges']()){if(_0x1a1ba0['containsRange'](_0x5cd54c,!0x0))return _0x3657f3;_0x5cd54c['containsRange'](_0x1a1ba0)||(_0x3f1a1d=!0x1);}_0x3f1a1d&&_0x3657f3['discard']();}else{const _0x122816=_0x3657f3['getFirstRange']();if(_0x122816['containsRange'](_0x5cd54c,!0x0))return _0x3657f3;if(!Ln(_0x3657f3,_0xe4b058)){_0x5cd54c['containsRange'](_0x122816)?_0x3657f3['removeMarkers']():_0x122816['containsPosition'](_0x43ad9b)?_0x43ad9b=_0x122816['end']:_0x122816['containsPosition'](_0x5d936a)&&(_0x5d936a=_0x122816['start']);continue;}_0x43ad9b=_0x43ad9b['isBefore'](_0x122816['start'])?_0x43ad9b:_0x122816['start'],_0x5d936a=_0x5d936a['isAfter'](_0x122816['end'])?_0x5d936a:_0x122816['end'],_0xe4b058=Object['assign']({},_0x3657f3['attributes']),_0x189026?_0x122816['start']['isBefore'](_0x189026['getFirstRange']()['start'])?(_0x189026['removeMarkers'](),_0x189026=_0x3657f3):_0x3657f3['removeMarkers']():_0x189026=_0x3657f3;}}}if(_0x189026)return this['_setSuggestionRange'](_0x189026,this['_model']['createRange'](_0x43ad9b,_0x5d936a)),_0x189026;{const _0x14e7ea=_0x5b5c0d(),_0x16dc87=this['_model']['createRange'](_0x43ad9b,_0x5d936a),_0xc5bcb5=_0x285cfa['id'],_0x503cd4=_0x22ca68?'deletion:'+_0x22ca68:'deletion',_0x5b8957=this['_setSuggestionData']({'id':_0x14e7ea,'type':_0x503cd4,'createdAt':new Date(),'authorId':_0xc5bcb5,'attributes':_0xe4b058});return this['_addSuggestionMarker'](_0x503cd4,_0x14e7ea,_0xc5bcb5,_0x16dc87),_0x5b8957;}}markMultiRangeDeletion(_0x26be15,_0x3575b0='multi',_0x336eb1={}){const _0x5e94cb=this['editor']['plugins']['get']('Users')['me'],_0x5cc0e1=_0x26be15['map'](_0xc9d35=>new rt(_0xc9d35['start'],_0xc9d35['end'])),_0x2c7f99=new Set();this['_trackingSessionId']&&(_0x336eb1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57a527,meta:_0x2655c7}of this['_findSuggestions'](_0x5cc0e1,'insertion'))_0x2655c7['isOwn']&&!_0x2655c7['isNextTo']&&_0x2c7f99['add'](_0x57a527);for(const _0x16b580 of _0x2c7f99)if(_0x16b580['isMultiRange']){const _0x2465e7=_0x16b580['getRanges']();if(_0x16b580['attributes']&&_0x16b580['attributes']['skipNestingCheck']||_0x2465e7['every'](_0xc49af4=>_0x5cc0e1['some'](_0x1f6111=>_0x1f6111['containsRange'](_0xc49af4,!0x0)))&&_0x16b580['discard'](),_0x5cc0e1['every'](_0x371f3f=>_0x2465e7['some'](_0x524bda=>_0x524bda['containsRange'](_0x371f3f,!0x0)))){const _0x4d0b39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'accept');return this['forceDefaultExecution'](()=>_0x4d0b39(_0x26be15,null,_0x336eb1)),null;}}else{const _0x15abd9=_0x16b580['getFirstRange']();if(_0x5cc0e1['some'](_0x4eca32=>_0x4eca32['containsRange'](_0x15abd9,!0x0))&&_0x16b580['discard'](),_0x5cc0e1['every'](_0x4d2bd6=>_0x15abd9['containsRange'](_0x4d2bd6,!0x0))){const _0x29858c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'accept');return this['forceDefaultExecution'](()=>_0x29858c(_0x5cc0e1,null,_0x336eb1)),null;}}const _0x3faf8a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'join');let _0xa18812=null;for(const _0x11cd21 of this['getSuggestions']())if(_0x11cd21['author']['id']==_0x5e94cb['id']&&_0x11cd21['isInContent']&&'deletion'==_0x11cd21['type']&&_0x11cd21['subType']==_0x3575b0&&Ln(_0x11cd21,_0x336eb1)&&(_0x3faf8a(_0x11cd21['getRanges'](),_0x5cc0e1)||_0x3faf8a(_0x5cc0e1,_0x11cd21['getRanges']()))){if(_0xa18812){if(_0x11cd21['commentThread']&&_0x11cd21['commentThread']['length'])continue;for(const _0x37ac27 of _0x11cd21['getRanges']())_0xa18812['isIntersectingWithRange'](_0x37ac27)||_0xa18812['addRange'](_0x37ac27);_0x11cd21['removeMarkers']();}else{_0xa18812=_0x11cd21;for(const _0x3c654c of _0x5cc0e1)_0x11cd21['isIntersectingWithRange'](_0x3c654c)||_0x11cd21['addRange'](_0x3c654c);}}if(_0xa18812)return _0xa18812;_0x2c7f99['clear']();for(const {suggestion:_0x30a128,meta:_0x15afb3}of this['_findSuggestions'](_0x5cc0e1,'deletion'))_0x15afb3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15afb3['containsRangeInObject']&&!_0x15afb3['isInsideObject'])&&Ln(_0x30a128,_0x336eb1)&&_0x2c7f99['add'](_0x30a128);for(const _0x39be91 of _0x2c7f99){const _0x9e6037=_0x39be91['getRanges']();if((!_0x336eb1||!_0x336eb1['skipNestingCheck'])&&_0x5cc0e1['every'](_0x3a3176=>_0x9e6037['some'](_0x519981=>_0x519981['containsRange'](_0x3a3176,!0x0))))return _0x39be91;_0x39be91['attributes']&&_0x39be91['attributes']['skipNestingCheck']||_0x9e6037['every'](_0x1485c7=>_0x5cc0e1['some'](_0x568c26=>_0x568c26['containsRange'](_0x1485c7,!0x0)))&&_0x39be91['discard']();}const _0x322112=_0x5b5c0d(),_0x56dd58=_0x5e94cb['id'],_0x4814be='deletion:'+_0x3575b0,_0x25921a=this['_setSuggestionData']({'id':_0x322112,'type':_0x4814be,'createdAt':new Date(),'authorId':_0x56dd58,'attributes':_0x336eb1});for(const _0x33b703 of _0x5cc0e1)_0x33b703['detach'](),_0x33b703['isCollapsed']||'$graveyard'==_0x33b703['root']['rootName']||this['_addSuggestionMarker'](_0x4814be,_0x322112,_0x56dd58,_0x33b703,St['getMultiRangeId']());return _0x25921a;}markAttributeChange(_0x3758a6,_0x295187,_0x331eda,_0x1b8ed2,_0x4e7167){if(_0x3758a6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2b2683=this['editor']['plugins']['get']('Users')['me']['id'],_0x25b274=Array['from'](this['_suggestions']['values']())['filter'](_0x483c26=>'attribute'==_0x483c26['type']&&_0x483c26['data']['key']==_0x295187&&_0x483c26['isIntersectingWithRange'](_0x3758a6));if(this['_trackingSessionId']&&(_0x4e7167['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x246db1=this['_findSuggestions'](_0x3758a6,'insertion')['filter'](({meta:_0x661eef})=>_0x661eef['isOwn']&&!_0x661eef['isInsideObject']&&!_0x661eef['isNextTo'])['map'](({suggestion:_0x4e956b})=>_0x4e956b);_0x25b274['unshift'](..._0x246db1);}const _0x18bc80=new Map([[_0x3758a6,_0x331eda]]);for(const _0x5493ef of _0x25b274){const _0x5ed0b2='attribute'==_0x5493ef['type']?_0x5493ef['data']['oldValue']:void 0x0,_0x36ffd1=_0x5493ef['getFirstRange'](),_0x2e5494=Array['from'](_0x18bc80['keys']())['find'](_0x2982bd=>_0x2982bd['isIntersecting'](_0x36ffd1));if(!_0x2e5494)continue;const _0x21b8bf=_0x2e5494['getDifference'](_0x36ffd1);this['_suggestionsConversion']['isBlockAttribute'](_0x295187)&&'insertion'==_0x5493ef['type']&&0x0!=_0x21b8bf['length']||(_0x18bc80['delete'](_0x2e5494),_0x21b8bf['forEach'](_0x245f9b=>{_0x18bc80['set'](_0x245f9b,_0x331eda);}),'insertion'!=_0x5493ef['type']&&_0x5ed0b2!=_0x1b8ed2&&_0x18bc80['set'](_0x2e5494['getIntersection'](_0x36ffd1),_0x5ed0b2));}const _0x435755=[];for(const [_0xdb2619,_0x497d65]of _0x18bc80){const _0x37095a=_0x5b5c0d(),_0x1c91b5={'key':_0x295187,'oldValue':_0x497d65,'newValue':_0x1b8ed2};_0x295187['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':_0x295187});const _0x2d698c=('attribute:'+_0x295187+'|'+hn({'newValue':_0x1b8ed2}))['substring'](0x0,0x3c),_0x57e79e=this['_setSuggestionData']({'id':_0x37095a,'type':_0x2d698c,'data':_0x1c91b5,'createdAt':new Date(),'authorId':_0x2b2683,'attributes':_0x4e7167});_0x435755['push'](_0x57e79e),this['_addSuggestionMarker'](_0x2d698c,_0x37095a,_0x2b2683,_0xdb2619);}return _0x435755;}enableDefaultAttributesIntegration(_0x2e4857){this['enableCommand'](_0x2e4857,(_0xf3ef61,..._0x319a9f)=>{this['recordAttributeChanges'](()=>{_0xf3ef61(..._0x319a9f);});});}startTrackingSession(_0x15ddc3){return this['_trackingSessionId']=void 0x0!==_0x15ddc3?_0x15ddc3:_0x5b5c0d(),this['_trackingSessionId'];}_getAttributeKey(_0x4bf92f){return'attribute'==_0x4bf92f['type']?An(_0x4bf92f['subType']):null;}_applyOperationsAsSuggestions(_0x480bc1){if(0x0==_0x480bc1['length'])return;const _0x192d20=this['editor'],_0x3acaef=[],_0x53b25e=_0xf9141e=>{const _0x497790=_0xf9141e['_aiSource'];return _0x497790?{'@ai':{'type':_0x497790}}:{};},_0x57b0a1=(_0x1938ef,_0x2b7c70,_0x4521a3,_0x1ac4ff)=>{const _0x105bcd=new Set(_0x1ac4ff['flatMap'](_0x42b8c7=>_0x42b8c7['getMarkerNames']()));let _0x2f03ce=!0x1;for(let _0x4ffd32=_0x2b7c70;_0x4ffd32<_0x1938ef['operations']['length'];_0x4ffd32++){const _0x415579=_0x1938ef['operations'][_0x4ffd32];if('marker'==_0x415579['type']){if(!_0x105bcd['has'](_0x415579['name']))continue;_0x2f03ce=!0x0;}_0x415579['_aiSource']=_0x4521a3;}return _0x2f03ce;};_0x192d20['model']['change'](_0x215ec4=>{for(let _0x20417e=0x0;_0x20417e<_0x480bc1['length'];_0x20417e++){const _0x5d98da=_0x480bc1[_0x20417e],_0x308c56=_0x5d98da['_aiSource'];if(_0x5d98da['baseVersion']=_0x192d20['model']['document']['version'],_0x5d98da['isDocumentOperation']=!0x0,_0x425365(_0x5d98da))continue;if(rn(_0x5d98da)){const _0x27beb7=_0x533f9b(_0x5d98da['newRange'],_0x192d20['model']);_0x3acaef['unshift']({'range':rt['fromRange'](_0x27beb7),'operation':_0x5d98da});continue;}const _0x26dd28=_0x215ec4['batch']['operations']['length']+0x1;let _0x1aac87=[];switch(_0x5d98da['type']){case'rename':{const _0x5ed093=_0x5d98da['oldName'],_0x445748=_0x5d98da['newName'];if(_0x5ed093==_0x445748)break;_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x2c0f00='$elementName',_0x1ca33a=_0x5d98da['position'],_0x5bb430=_0x192d20['model']['createRange'](_0x1ca33a,_0x192d20['model']['createPositionAt'](_0x1ca33a['nodeAfter'],'end'));_0x1aac87=this['markAttributeChange'](_0x5bb430,_0x2c0f00,_0x5ed093,_0x445748,{..._0x53b25e(_0x5d98da),'groupId':_0x5b5c0d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x49f312=_0x5d98da['oldValue'],_0xbdc533=_0x5d98da['newValue'];if(_0x49f312==_0xbdc533)break;_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x7104ef=_0x5d98da['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x7104ef))break;const _0x53132d=_0x533f9b(_0x5d98da['range'],_0x192d20['model']);_0x1aac87=this['markAttributeChange'](_0x53132d,_0x7104ef,_0x49f312,_0xbdc533,{..._0x53b25e(_0x5d98da),'groupId':_0x5b5c0d()});break;}case'insert':{if(_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da),_0x480bc1[_0x20417e+0x1]&&'move'==_0x480bc1[_0x20417e+0x1]['type'])break;const _0x10dfd7=_0x5d98da['position'],_0x55a868=_0x5d98da['howMany'],_0x4d0168=_0x533f9b(_0x192d20['model']['createRange'](_0x10dfd7,_0x10dfd7['getShiftedBy'](_0x55a868)),_0x192d20['model']);_0x1aac87=on(this['markInsertion'](_0x4d0168,null,{..._0x53b25e(_0x5d98da)}));break;}case'split':{_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x8ba900=_0x5d98da['splitPosition'],_0x1fefea=_0x5d98da['moveTargetPosition'],_0x35cc72=_0x192d20['model']['createRange'](_0x8ba900,_0x1fefea);_0x1aac87=on(this['markInsertion'](_0x35cc72,null,{..._0x53b25e(_0x5d98da)}));break;}case'move':case'remove':_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);}_0x308c56&&_0x57b0a1(_0x215ec4['batch'],_0x26dd28,_0x308c56,_0x1aac87)&&delete _0x5d98da['_aiSource'];}for(const {range:_0x5b2e09,operation:_0x2e241e}of _0x3acaef){const _0x3dcf93=_0x2e241e['_aiSource'],_0x234ca6=_0x53b25e(_0x2e241e),_0x62e3b9=_0x215ec4['batch']['operations']['length'];_0x5b2e09['detach']();const _0x48a099=this['markDeletion'](_0x5b2e09,null,{..._0x234ca6});_0x3dcf93&&_0x57b0a1(_0x215ec4['batch'],_0x62e3b9,_0x3dcf93,on(_0x48a099));}});}_setSuggestionRange(_0x29422e,_0x128522){const _0xf1c79d=_0x29422e['getFirstMarker']();this['_model']['change'](_0x526ffd=>{_0x526ffd['updateMarker'](_0xf1c79d,{'range':_0x128522});});}_addThreadToSuggestion(_0x3d4112){const _0x4cfb37=_0x3d4112['id'],_0x5726b3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4cfb37)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5726b3,'threadId':_0x4cfb37,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x382b91=this['_commentsRepository']['getCommentThread'](_0x4cfb37);_0x382b91['unbind']('isRemovable'),_0x382b91['isRemovable']=!0x1,_0x3d4112['commentThread']=_0x382b91;}_checkSuggestionCorrectness(_0x48ffd4,_0x529de6,_0x5a40e1,_0x508780){if(_0x48ffd4['type']!=_0x529de6||_0x48ffd4['subType']!=_0x5a40e1||_0x48ffd4['creator']['id']!=_0x508780)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5f6c00('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2f3778,_0x42fc7f){const _0x319975=_0x2f3778['getFirstRange']();if(_0x42fc7f['isEqual'](_0x319975))_0x2f3778['removeMarkers']();else{if(_0x319975['containsRange'](_0x42fc7f)){const _0x3e4255=this['_model']['createPositionAt'](_0x42fc7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x319975['start'],_0x3e4255));const _0xd9609c=_0x5b5c0d(),_0x1377f8=_0x2f3778['creator']['id'],_0xae2471=_0x2f3778['type']+':'+_0x2f3778['subType'];this['_setSuggestionData']({'id':_0xd9609c,'type':_0xae2471,'createdAt':new Date(),'authorId':_0x1377f8,'data':_0x2f3778['data'],'attributes':_0x2f3778['attributes']});const _0x15e5fc=this['_model']['createPositionAt'](_0x42fc7f['end']['parent'],'after'),_0x2f1e20=this['_model']['createRange'](_0x15e5fc,_0x319975['end']);this['_addSuggestionMarker'](_0xae2471,_0xd9609c,_0x1377f8,_0x2f1e20);}else{if(_0x319975['containsPosition'](_0x42fc7f['start'])){const _0x5ba7b0=this['_model']['createPositionAt'](_0x42fc7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x319975['start'],_0x5ba7b0));}else{const _0x517aee=this['_model']['createPositionAt'](_0x42fc7f['end']['parent'],'after');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x517aee,_0x319975['end']));}}}}_rangeIsInLocalUserInsertion(_0x1da643){for(const {suggestion:_0x3d288a,meta:_0x444af1}of this['_findSuggestions'](_0x1da643,'insertion')){if(!_0x444af1['isOwn'])continue;const _0x1dcd89=_0x3d288a['getRanges']();for(const _0x544f09 of _0x1dcd89)if(!_0x1da643['getDifference'](_0x544f09)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x1a76d3){return this['editor']['plugins']['get']('Users')['getUser'](_0x1a76d3);}_getExternalAuthor(_0x45d18c){const _0x178d02=this['editor']['plugins']['get']('Users'),_0x243565=_0x5a9283('external:'+_0x45d18c),_0x5886cb=_0x178d02['getUser'](_0x243565);return _0x5886cb||_0x178d02['addUser']({'id':_0x243565,'name':_0x45d18c});}_createSuggestion(_0x599a11,_0xc9554c,_0x2f1db3,_0x26ccd3,_0x5a9d67,_0x1d1dcb){const _0x19ea0b=this['_getAuthorFromId'](_0x26ccd3);if(!_0x19ea0b)throw new _0x5f6c00('track-changes-user-not-found',this,{'authorId':_0x26ccd3,'suggestionId':_0x2f1db3});const _0x296e05=this['_suggestionFactory']['buildSuggestion'](_0x599a11,_0xc9554c,_0x2f1db3,_0x19ea0b,_0x5a9d67,_0x27823e=>{this['_updateSuggestionData'](_0x2f1db3,{'attributes':_0x27823e});const _0x30b144=this['getSuggestion'](_0x2f1db3);this['_joinWithAdjacentSuggestions'](new Set([_0x30b144])),this['_refreshSuggestionsChain'](new Set([_0x30b144]));},_0x1d1dcb);return this['listenTo'](_0x296e05,'accept',()=>{this['_updateSuggestionData'](_0x2f1db3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x296e05,'discard',()=>{this['_updateSuggestionData'](_0x2f1db3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f1db3,_0x296e05),this['_suggestionState']['set'](_0x296e05,'notReady'),_0x296e05;}_breakSuggestionMarker(_0x490671,_0x111074,_0x33630a){const _0x5b52cd=_0x490671['getFirstRange'](),_0x591473=_0x5b52cd['start'],_0x5f3381=_0x5b52cd['end'];this['_setSuggestionRange'](_0x490671,this['_model']['createRange'](_0x591473,_0x111074));const _0x4b7fab=_0x5b5c0d(),_0x123114=_0x490671['creator']['id'],_0x4c5776=_0x490671['type']+(_0x490671['subType']?':'+_0x490671['subType']:'');this['_setSuggestionData']({'id':_0x4b7fab,'type':_0x4c5776,'createdAt':new Date(),'authorId':_0x123114,'originalSuggestionId':_0x490671['_originalSuggestionId']||_0x490671['id'],'attributes':_0x490671['attributes'],'data':_0x490671['data']});const _0xed690e=this['_getAttributeKey'](_0x490671);('formatBlock'==_0x490671['type']||_0xed690e&&this['_suggestionsConversion']['isBlockAttribute'](_0xed690e))&&(_0x33630a=this['_model']['createPositionBefore'](_0x33630a['parent'])),this['_addSuggestionMarker'](_0x4c5776,_0x4b7fab,_0x123114,this['_model']['createRange'](_0x33630a,_0x5f3381));}_findSuggestions(_0x3f126e,_0x7b219c=null){const _0x2a1636=[],_0x3cfac6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f126e)||(_0x3f126e=[_0x3f126e]);for(const _0x23489d of this['getSuggestions']()){if(!_0x23489d['isInContent'])continue;if(_0x7b219c&&_0x23489d['type']!=_0x7b219c)continue;let _0x52113f=!0x1;for(const _0x242098 of _0x23489d['getRanges']()){for(const _0x1167cb of _0x3f126e){const _0x31649e=_0x1167cb['start']['isEqual'](_0x242098['end'])||_0x1167cb['end']['isEqual'](_0x242098['start']);if(_0x31649e||_0x1167cb['getIntersection'](_0x242098)){const _0x3e2f83=_0x1167cb['containsRange'](_0x242098)&&ln(this['_model']['schema'],_0x242098['start'],_0x1167cb),_0x427cb4=_0x242098['containsRange'](_0x1167cb)&&ln(this['_model']['schema'],_0x1167cb['start'],_0x242098);_0x2a1636['push']({'suggestion':_0x23489d,'meta':{'isOwn':_0x3cfac6==_0x23489d['author'],'isNextTo':_0x31649e,'isInsideObject':_0x3e2f83,'containsRangeInObject':_0x427cb4}}),_0x52113f=!0x0;break;}}if(_0x52113f)break;}}return _0x2a1636;}_addSuggestionMarker(_0x4dc207,_0x248acd,_0x44ff30,_0x287f1d,_0x10f2b0){this['_model']['change'](_0x36fe98=>{let _0x4001e7='suggestion:'+_0x4dc207+':'+_0x248acd+':'+_0x44ff30;_0x10f2b0&&(_0x4001e7=_0x4001e7+':'+_0x10f2b0),_0x36fe98['addMarker'](_0x4001e7,{'range':_0x287f1d,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x17c581){const _0x1bed77=_0x17c581['previous'],_0x1613c5=_0x17c581['next'];_0x17c581['previous']=null,_0x17c581['next']=null,null!=_0x1bed77&&_0x1bed77['next']==_0x17c581&&(_0x1bed77['next']=_0x1613c5),null!=_0x1613c5&&_0x1613c5['previous']==_0x17c581&&(_0x1613c5['previous']=_0x1bed77),'ready'==this['_suggestionState']['get'](_0x17c581)&&(this['_suggestionState']['set'](_0x17c581,'removed'),this['fire']('suggestionUnloaded',_0x17c581,_0x1bed77,_0x1613c5));}_setSuggestionData(_0x1c45e0){const _0x322cbc=_0x1c45e0['id'],_0x8d8f8e=this['addSuggestionData'](_0x1c45e0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12787=this['editor']['plugins']['get']('PendingActions'),_0x271106=_0x8d8f8e['hasComments'],_0x518b67=_0x8d8f8e['subType']?_0x8d8f8e['type']+':'+_0x8d8f8e['subType']:_0x8d8f8e['type'],_0x3685e0=this['editor']['locale'],_0x2d0034=_0x12787['add'](Mt(_0x3685e0,'PENDING_ACTION_SUGGESTION')),_0x5a78fb={'id':_0x322cbc,'type':_0x518b67,'hasComments':_0x271106,'data':_0x1c45e0['data']||null,'originalSuggestionId':_0x1c45e0['originalSuggestionId']||null,'attributes':_0x8d8f8e['attributes']};this['_adapter']['addSuggestion'](_0x5a78fb)['then'](_0xe55dd0=>{_0x8d8f8e['_saved']=!0x0,_0x12787['remove'](_0x2d0034),_0xe55dd0&&_0xe55dd0['createdAt']&&(this['_suggestions']['get'](_0x322cbc)['createdAt']=_0xe55dd0['createdAt']);})['catch'](_0x45fee9=>{throw _0x26182a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x8d8f8e['discard']();}),_0x8d8f8e['stopListening'](),this['_suggestions']['delete'](_0x8d8f8e['id']),this['_suggestionState']['delete'](_0x8d8f8e),_0x45fee9;});}return _0x8d8f8e;}_updateSuggestionData(_0x445b04,_0x5abae3){const _0x21cecf=this['editor']['plugins']['get']('PendingActions'),_0x2c7a87=this['getSuggestion'](_0x445b04);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2c7a87['_saved']){const _0x937760=_0x21cecf['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x445b04,_0x5abae3)['then'](()=>{_0x21cecf['remove'](_0x937760);});}else _0x2c7a87['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x445b04,_0x5abae3);});}}_getSuggestionData(_0x1b41af){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5f6c00('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b41af);}_handleNewSuggestionMarker(_0x1354a2){const {id:_0x4278ae,type:_0x275cc2,subType:_0x954511,authorId:_0xd42ab0}=tt(_0x1354a2),_0x83df84=this['_suggestions']['get'](_0x4278ae)||this['_createSuggestion'](_0x275cc2,_0x954511,_0x4278ae,_0xd42ab0,{});switch(this['_checkSuggestionCorrectness'](_0x83df84,_0x275cc2,_0x954511,_0xd42ab0),this['_suggestionState']['get'](_0x83df84)){case'notReady':this['_getSuggestionData'](_0x4278ae)['then'](_0x3a30a3=>{let _0x44842d=Promise['resolve']();_0x3a30a3['hasComments']&&(_0x44842d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4278ae})),_0x44842d['then'](()=>{this['addSuggestionData'](_0x3a30a3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x83df84,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4278ae,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x83df84,'ready'),this['fire']('suggestionLoaded',_0x83df84);break;case'ready':this['fire']('suggestionChanged',_0x83df84);}return _0x83df84['addMarkerName'](_0x1354a2),_0x83df84;}_refreshSuggestionsChain(_0x2e9fe6){const _0x422e47=Array['from'](_0x2e9fe6),_0x326ad0=_0x422e47['filter'](_0x5df58b=>'attribute'==_0x5df58b['type']);this['_refreshAttributeSuggestionsChain'](_0x326ad0);const _0x4e77d4=_0x422e47['filter'](_0x466719=>!_0x466719['isMultiRange']&&'attribute'!=_0x466719['type']),_0x42a01a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27cd9d=>!_0x27cd9d['isMultiRange']&&'attribute'!=_0x27cd9d['type']),_0x3b513a=_0x42a01a['filter'](_0x6960ed=>!_0x2e9fe6['has'](_0x6960ed)),_0x4970ac=new Map(_0x42a01a['map'](_0x15b850=>[_0x15b850,this['_suggestionFactory']['getSuggestionCallback'](_0x15b850['type'],_0x15b850['subType'],'chain')])),_0x30a0aa=new Map(_0x42a01a['map'](_0x41dd3f=>[_0x41dd3f,_0x41dd3f['getFirstRange']()])),_0x597a78=new Set(),_0x2d12e6=new Set();for(let _0x37f66b=0x0;_0x37f66b<_0x4e77d4['length'];_0x37f66b++)_0x10a1d2(_0x4e77d4[_0x37f66b],_0x4e77d4,_0x37f66b+0x1);for(let _0x452093=0x0;_0x452093<_0x4e77d4['length'];_0x452093++)_0x10a1d2(_0x4e77d4[_0x452093],_0x3b513a,0x0);const _0x13fe24=new Set();for(let _0x2601e7=0x0;_0x2601e7<_0x4e77d4['length'];_0x2601e7++){const _0xfe5b03=_0x4e77d4[_0x2601e7];!_0x2d12e6['has'](_0xfe5b03)&&_0xfe5b03['previous']&&(_0x13fe24['add'](_0xfe5b03['previous']),_0xfe5b03['previous']['next']===_0xfe5b03&&(_0xfe5b03['previous']['next']=null),_0xfe5b03['previous']=null),!_0x597a78['has'](_0xfe5b03)&&_0xfe5b03['next']&&(_0x13fe24['add'](_0xfe5b03['next']),_0xfe5b03['next']['previous']===_0xfe5b03&&(_0xfe5b03['next']['previous']=null),_0xfe5b03['next']=null);}function _0x10a1d2(_0x594240,_0x1752b2,_0x450578){for(let _0x1b72af=_0x450578;_0x1b72af<_0x1752b2['length'];_0x1b72af++){const _0x4b2924=_0x13fff3(_0x594240,_0x1752b2[_0x1b72af]);_0x4b2924&&(_0x4b2924[0x0]['next']=_0x4b2924[0x1],_0x4b2924[0x1]['previous']=_0x4b2924[0x0],_0x597a78['add'](_0x4b2924[0x0]),_0x2d12e6['add'](_0x4b2924[0x1]));}}function _0x13fff3(_0x98a848,_0x9e242b){if(_0x98a848['author']['id']!==_0x9e242b['author']['id'])return null;const _0x195566=_0x4970ac['get'](_0x98a848)(_0x98a848,_0x9e242b,_0x30a0aa['get'](_0x98a848),_0x30a0aa['get'](_0x9e242b));return _0x195566&&_0x4970ac['get'](_0x9e242b)(_0x98a848,_0x9e242b,_0x30a0aa['get'](_0x98a848),_0x30a0aa['get'](_0x9e242b))?_0x195566[0x1]['commentThread']&&_0x195566[0x1]['commentThread']['length']?null:_0x195566:null;}_0x13fe24['size']&&this['_refreshSuggestionsChain'](_0x13fe24);}_refreshAttributeSuggestionsChain(_0x1799a4){if(0x0==_0x1799a4['length'])return;const _0x31472d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d0055=>'attribute'==_0x3d0055['type']&&_0x3d0055['_isDataLoaded']),_0x255859=[],_0x12d487=new Map();for(const _0x334328 of _0x31472d){const _0x50b55c=_0x5a9283(_0x334328['attributes']);_0x12d487['has'](_0x50b55c)||(_0x12d487['set'](_0x50b55c,_0x255859['length']),_0x255859['push']([])),_0x255859[_0x12d487['get'](_0x50b55c)]['push'](_0x334328);}!(function(){_0x255859['sort']((_0x377b88,_0x586e96)=>{const _0x5df210=_0x377b88[0x0]['createdAt'],_0x4bda5e=_0x586e96[0x0]['createdAt'];return _0x5df210==_0x4bda5e?_0x377b88[0x0]['attributes']['groupId']<_0x586e96[0x0]['attributes']['groupId']?-0x1:0x1:_0x5df210<_0x4bda5e?-0x1:0x1;});for(const _0x15fe66 of _0x255859)_0x15fe66['sort']((_0x3aef25,_0x2f6c10)=>_0x3aef25['id']<_0x2f6c10['id']?-0x1:0x1);}());for(let _0x2fba72=0x0;_0x2fba72<_0x255859['length'];_0x2fba72++){if(0x0==_0x255859[_0x2fba72]['length'])continue;const _0x3823e2=[];for(let _0x465a99=_0x2fba72+0x1;_0x465a99<_0x255859['length'];_0x465a99++)0x0!=_0x255859[_0x465a99]['length']&&_0x5b22a0(_0x255859[_0x2fba72],_0x255859[_0x465a99])&&_0x3823e2['push'](_0x465a99);for(const _0x2d421c of _0x3823e2)_0x255859[_0x2fba72]=_0x255859[_0x2fba72]['concat'](_0x255859[_0x2d421c]),_0x255859[_0x2d421c]=[];}for(const _0x518801 of _0x255859)for(let _0xdfb6=0x0;_0xdfb6<_0x518801['length'];_0xdfb6++){const _0x1088f8=_0x518801[_0xdfb6+0x1]||null;_0x518801[_0xdfb6]['next']!==_0x1088f8&&(_0x518801[_0xdfb6]['next']=_0x1088f8);}for(const _0x4e9110 of _0x255859)for(let _0x426f9d=0x0;_0x426f9d<_0x4e9110['length'];_0x426f9d++){const _0x39ff5e=_0x4e9110[_0x426f9d-0x1]||null;_0x4e9110[_0x426f9d]['previous']!==_0x39ff5e&&(_0x4e9110[_0x426f9d]['previous']=_0x39ff5e);}function _0x5b22a0(_0x51da24,_0x1cecb9){if(_0x51da24[0x0]['attributes']['groupId']!==_0x1cecb9[0x0]['attributes']['groupId']&&_0x51da24[0x0]['author']!==_0x1cecb9[0x0]['author'])return!0x1;if(!function(_0x2ca702,_0x46eacd){return!_0x2ca702['hasComments']&&!_0x46eacd['hasComments']||(!_0x2ca702['hasComments']||!_0x46eacd['hasComments'])&&(!!(_0x2ca702['hasComments']&&_0x46eacd['createdAt']<_0x2ca702['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x46eacd['hasComments']&&_0x2ca702['createdAt']<_0x46eacd['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x51da24[0x0],_0x1cecb9[0x0]))return!0x1;const _0x274f04=lt(_0x51da24[0x0]['attributes'],['groupId','trackingSessionId']),_0x5affcc=lt(_0x1cecb9[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x274f04,_0x5affcc)&&(_0x51da24[0x0]['attributes']['groupId']==_0x1cecb9[0x0]['attributes']['groupId']||_0x51da24[0x0]['attributes']['trackingSessionId']===_0x1cecb9[0x0]['attributes']['trackingSessionId']&&(!!_0x51da24['every'](_0x207f32=>_0x1cecb9['some'](_0x420a24=>_0x207f32['getFirstRange']()['isEqual'](_0x420a24['getFirstRange']())))&&_0x1cecb9['every'](_0xb8dfa2=>_0x51da24['some'](_0x53a86f=>_0xb8dfa2['getFirstRange']()['isEqual'](_0x53a86f['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x206c05){const _0x58dff7=Array['from'](_0x206c05),_0x1e3c14=this['getSuggestions']({'skipNotAttached':!0x0}),_0xd0b5da=_0x1e3c14['filter'](_0x3e3179=>!_0x206c05['has'](_0x3e3179)),_0x57053a=new Map(_0x58dff7['map'](_0x1ddab0=>[_0x1ddab0,this['_suggestionFactory']['getSuggestionCallback'](_0x1ddab0['type'],_0x1ddab0['subType'],'join')])),_0x4f5cf3=new Map(_0x1e3c14['map'](_0xa4ba6b=>[_0xa4ba6b,_0xa4ba6b['getRanges']()]));for(let _0x18b446=0x0;_0x18b446<_0x58dff7['length'];_0x18b446++)if(_0x21fb11(this,_0x58dff7[_0x18b446],_0x58dff7,_0x18b446+0x1))return!0x0;for(let _0x4aba92=0x0;_0x4aba92<_0x58dff7['length'];_0x4aba92++)if(_0x21fb11(this,_0x58dff7[_0x4aba92],_0xd0b5da,0x0))return!0x0;return!0x1;function _0x21fb11(_0x2aada8,_0x6a8349,_0x343ed0,_0x2d0dc5){for(let _0x17e633=_0x2d0dc5;_0x17e633<_0x343ed0['length'];_0x17e633++){const _0x54ca78=_0x343ed0[_0x17e633];if(_0x54ca78['type']!==_0x6a8349['type']||_0x54ca78['author']['id']!==_0x6a8349['author']['id']||_0x54ca78['subType']!==_0x6a8349['subType'])continue;if(!pn(_0x6a8349,_0x54ca78))continue;if('attribute'==_0x6a8349['type']&&_0x6a8349['data']['oldValue']!=_0x54ca78['data']['oldValue'])continue;if('attribute'==_0x6a8349['type']&&_0x2aada8['_suggestionsConversion']['isBlockAttribute'](_0x6a8349['data']['key']))continue;if('formatBlock'==_0x6a8349['type']){const _0x72e1ca=_0x2aada8['editor']['model'],_0x4a22e4=_0x6a8349['getContainedElement']();if(_0x4a22e4&&(_0x72e1ca['schema']['isObject'](_0x4a22e4)||_0x72e1ca['schema']['isLimit'](_0x4a22e4)))continue;}const _0x4a7d98=_0x57053a['get'](_0x6a8349),_0x265082=_0x4f5cf3['get'](_0x6a8349),_0x30fe92=_0x4f5cf3['get'](_0x54ca78),_0x46020a=_0x6a8349['commentThread']&&_0x6a8349['commentThread']['length'],_0x367bed=_0x54ca78['commentThread']&&_0x54ca78['commentThread']['length'];if(!_0x46020a&&_0x4a7d98(_0x30fe92,_0x265082))return _0x2aada8['_joinSuggestions'](_0x54ca78,_0x6a8349),_0x4f5cf3['delete'](_0x6a8349),!0x0;if(!_0x367bed&&_0x4a7d98(_0x265082,_0x30fe92))return _0x2aada8['_joinSuggestions'](_0x6a8349,_0x54ca78),_0x4f5cf3['delete'](_0x54ca78),!0x0;}return!0x1;}}_joinSuggestions(_0x2b0afb,_0x562f2f){if(_0x2b0afb['isMultiRange']){for(const _0x5a8c6c of _0x562f2f['getRanges']())_0x2b0afb['addRange'](_0x5a8c6c);}else{const _0x3719f7=_0x562f2f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b0afb,this['_model']['createRange'](_0x2b0afb['getFirstRange']()['start'],_0x3719f7));}_0x562f2f['removeMarkers']();}_getMarkerAnnouncementText(_0x13cd92,_0x3ece73,_0x67e56c){const _0x7d7b3e=_0x13cd92['startsWith']('format')||_0x13cd92['startsWith']('attribute')?'FORMATTING':_0x13cd92['toUpperCase']();return Mt(this['editor']['locale'],_0x3ece73+'_'+_0x7d7b3e+'_SUGGESTION_ANNOUNCEMENT',_0x67e56c);}_initAriaMarkerChangeAnnouncements(){const _0xc1aeed=this['editor'];if(!_0xc1aeed['ui'])return;const {ariaLiveAnnouncer:_0x531f80}=_0xc1aeed['ui'];et(this['_model'],({left:_0x81af24,entered:_0x4ff5b8})=>{for(const _0x406b8 of _0x81af24){const {group:_0x49cabb,type:_0x38f729}=tt(_0x406b8['name']);if('suggestion'===_0x49cabb){_0x531f80['announce'](this['_getMarkerAnnouncementText'](_0x38f729,'LEAVE'));break;}}for(const _0x3f2874 of _0x4ff5b8){const {group:_0x30e2a3,type:_0xe95db9}=tt(_0x3f2874['name']);if('suggestion'===_0x30e2a3){_0x531f80['announce'](this['_getMarkerAnnouncementText'](_0xe95db9,'ENTER',_0x166bf7(_0x2e1548)));break;}}});}_processAttributeChanges(_0x1de71c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ae694=this['editor'],_0x314fc1=_0x3ae694['model']['document']['differ']['getChanges']();if(0x0==_0x314fc1['length'])return!0x1;const _0x11808a=[],_0x443baf=_0x314fc1['filter'](_0x1d20b4=>'attribute'==_0x1d20b4['type']),_0x36e7fb=_0x314fc1['filter'](_0x57c440=>'insert'==_0x57c440['type']&&'$text'!=_0x57c440['name']),_0x31eda8=_0x314fc1['filter'](_0x27f02c=>'remove'==_0x27f02c['type']&&'$text'!=_0x27f02c['name']);for(const _0x4e4398 of _0x443baf)_0x11808a['push']({'key':_0x4e4398['attributeKey'],'newValue':_0x4e4398['attributeNewValue'],'oldValue':_0x4e4398['attributeOldValue'],'range':En(_0x4e4398['range'],_0x3ae694['model'])});for(const _0x47caf3 of _0x36e7fb){const _0x1d485a=_0x31eda8['find'](_0x5b3279=>_0x5b3279['position']['isEqual'](_0x47caf3['position']));_0x1d485a&&_0x11808a['push']({'key':sn,'newValue':_0x47caf3['name'],'oldValue':_0x1d485a['name'],'range':_0x3ae694['model']['createRangeOn'](_0x47caf3['position']['nodeAfter'])});}return 0x0!=_0x11808a['length']&&this['_reduceExistingSuggestions'](_0x1de71c,_0x11808a);}_processAttributeSuggestions(_0x2b107c){let _0x37755b=!0x1;const _0xd8ddec=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3c7dd1=>_0x3c7dd1['data']['newRange']&&_0x3c7dd1['name']['startsWith']('suggestion:attribute:'));for(const _0x2964e2 of _0xd8ddec){const {subType:_0x3dc3ec,id:_0x19b275}=tt(_0x2964e2['name']),_0x5668a7=_0x3dc3ec['split']('|')[0x0];for(const _0x2792d8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2792d8['id']!=_0x19b275&&'attribute'==_0x2792d8['type']&&_0x2792d8['data']&&_0x2792d8['data']['key']==_0x5668a7&&_0x2792d8['getFirstRange']()['isIntersecting'](_0x2964e2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2792d8,_0x2964e2['data']['newRange'],_0x2b107c),_0x37755b=!0x0);}return _0x37755b;}recordAttributeChanges(_0x12f6b4){this['_recordAttributeSuggestions']=!0x0,_0x12f6b4();}_reduceExistingSuggestions(_0x38a26f,_0x323169){if(0x0==_0x323169['length'])return!0x1;let _0x519af2=!0x1;for(const _0x35b6f8 of _0x323169){const _0x340174=this['_findSuggestions'](_0x35b6f8['range'],'attribute')['filter'](_0x3d9b91=>!_0x3d9b91['meta']['isNextTo'])['map'](_0x5ada9a=>_0x5ada9a['suggestion']),_0x1e33c9=_0x5a9283({'newValue':_0x35b6f8['newValue']});_0x340174['filter'](_0x715da=>{const [_0xa1651,_0x9b64ab]=_0x715da['subType']['split']('|');return _0xa1651==_0x35b6f8['key']&&_0x9b64ab!=_0x1e33c9;})['forEach'](_0x70d191=>{this['_reduceSuggestionAttributeRange'](_0x70d191,_0x35b6f8['range'],_0x38a26f),_0x519af2=!0x0;});}return _0x519af2;}_reduceSuggestionAttributeRange(_0xfd7fa1,_0x473870,_0x205d6b){const _0x40127a=_0xfd7fa1['getFirstRange']()['getDifference'](_0x473870);0x0!==_0x40127a['length']?0x1!==_0x40127a['length']?this['_breakSuggestionMarker'](_0xfd7fa1,_0x473870['start'],_0x473870['end']):this['_setSuggestionRange'](_0xfd7fa1,_0x40127a[0x0]):_0x205d6b['removeMarker'](_0xfd7fa1['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4ddd25){this['_editor']=_0x4ddd25,this['_model']=_0x4ddd25['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x3ef373,_0x55ebf1,_0x57f407,_0x191bde,_0x53e814,_0x346e62,_0x49360e){return new St(this['_model'],{'type':_0x3ef373,'subType':_0x55ebf1,'id':_0x57f407,'originalSuggestionId':_0x49360e,'author':_0x191bde,'creator':_0x191bde,'attributes':_0x53e814,'onAttributesChange':_0x346e62,'onAccept':(..._0x469525)=>this['getSuggestionCallback'](_0x3ef373,_0x55ebf1,'accept')(..._0x469525),'onDiscard':(..._0x5e9034)=>this['getSuggestionCallback'](_0x3ef373,_0x55ebf1,'discard')(..._0x5e9034)});}registerCustomCallback(_0x53443e,_0x291258,_0x7c7d9,_0x5b351b){const _0x293f24=_0x53443e+':'+_0x291258+':'+_0x7c7d9;this['_customCallbacks']['set'](_0x293f24,_0x5b351b);}getSuggestionCallback(_0x26fb38,_0x596a6d,_0x1ab5b3){const _0x1259e0=_0x26fb38+':'+_0x596a6d+':'+_0x1ab5b3;return this['_customCallbacks']['get'](_0x1259e0)||this['_defaultCallbacks']['get'](_0x26fb38+':'+_0x1ab5b3);}_registerDefaultCallbacks(){const _0x4b479c=()=>!0x1,_0x103317=_0x3897e5=>{_0x3897e5['sort']((_0x21315d,_0xe9ce0f)=>_0x21315d['start']['isBefore'](_0xe9ce0f['start'])?0x1:-0x1),this['_model']['change'](_0x8c7a29=>{for(const _0x47f231 of _0x3897e5){let _0x5698fe;_0x5698fe=_0x47f231['end']['isAtEnd']&&_0x47f231['end']['parent']==_0x47f231['start']['nodeAfter']?_0x8c7a29['createSelection'](_0x47f231['start']['nodeAfter'],'on'):_0x8c7a29['createSelection'](_0x47f231),this['_model']['deleteContent'](_0x5698fe,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2d099b=(_0x5b5806,_0x22300b)=>{_0x22300b&&this['_model']['change'](_0x583517=>{const {commandName:_0x5e624a,commandParams:_0x370671=[]}=_0x22300b,_0x20ee46=_0x5b5806['map'](_0x46211e=>(un(_0x46211e)&&(_0x46211e=this['_model']['createRange'](_0x46211e['end'])),_0x46211e))['filter'](_0x367419=>'$graveyard'!==_0x367419['root']['rootName']);if(_0x20ee46['length']<0x1)return;const _0x182ba9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25ab25=>rt['fromRange'](_0x25ab25));_0x583517['setSelection'](_0x20ee46);for(const _0x26723f of this['_editor']['commands']['commands']())_0x26723f['refresh']();_0x370671['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5e624a,..._0x370671);const _0x20a4a9=_0x182ba9['filter'](_0xf9b459=>'$graveyard'!=_0xf9b459['root']['rootName']);_0x20a4a9['length']>0x0&&_0x583517['setSelection'](_0x20a4a9);for(const _0x238ab4 of _0x182ba9)_0x238ab4['detach']();});},_0x46e6c5=(_0xba6d0a,_0x371130)=>0x1==_0xba6d0a['length']&&0x1==_0x371130['length']&&_0xba6d0a[0x0]['end']['isEqual'](_0x371130[0x0]['start']),_0x501ee1=(_0x491e61,_0xee92e8,_0x15eb09,_0x17c0ce)=>_n(_0x491e61,_0xee92e8,_0x15eb09,_0x17c0ce)?[_0x491e61,_0xee92e8]:_n(_0xee92e8,_0x491e61,_0x17c0ce,_0x15eb09)?[_0xee92e8,_0x491e61]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b479c),this['_defaultCallbacks']['set']('insertion:discard',_0x103317),this['_defaultCallbacks']['set']('insertion:join',_0x46e6c5),this['_defaultCallbacks']['set']('insertion:chain',_0x501ee1),this['_defaultCallbacks']['set']('deletion:accept',_0x103317),this['_defaultCallbacks']['set']('deletion:discard',_0x4b479c),this['_defaultCallbacks']['set']('deletion:join',_0x46e6c5),this['_defaultCallbacks']['set']('deletion:chain',_0x501ee1),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d099b),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b479c),this['_defaultCallbacks']['set']('formatInline:join',_0x46e6c5),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b479c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d099b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b479c),this['_defaultCallbacks']['set']('formatBlock:join',_0x46e6c5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b479c),this['_defaultCallbacks']['set']('attribute:accept',_0x4b479c),this['_defaultCallbacks']['set']('attribute:discard',(_0x36a5b3,_0x5609b0)=>{if(!_0x5609b0)return;const _0x224fae=this['_editor']['plugins']['get'](_0x407cac);this['_model']['change'](_0x3a2e00=>{if('$elementName'==_0x5609b0['key'])for(const _0x3fcf43 of _0x36a5b3){const _0x4f868a=_0x3fcf43['start']['nodeAfter'],_0x420958=_0x5609b0['oldValue'];_0x3a2e00['rename'](_0x4f868a,_0x420958);}else{if(_0x224fae['isBlockAttribute'](_0x5609b0['key'])){for(const _0x184605 of _0x36a5b3)void 0x0!==_0x5609b0['oldValue']?_0x3a2e00['setAttribute'](_0x5609b0['key'],_0x5609b0['oldValue'],_0x184605['start']['nodeAfter']):_0x3a2e00['removeAttribute'](_0x5609b0['key'],_0x184605['start']['nodeAfter']);}else{for(const _0x3e29e8 of _0x36a5b3)_0x5609b0['oldValue']?_0x3a2e00['setAttribute'](_0x5609b0['key'],_0x5609b0['oldValue'],_0x3e29e8):_0x3a2e00['removeAttribute'](_0x5609b0['key'],_0x3e29e8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x46e6c5);}};function ln(_0xb394a8,_0x505c21,_0x235cef){for(const _0x14923f of _0x505c21['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14923f['root']==_0x14923f)return!0x1;if(!_0x235cef['containsItem'](_0x14923f))return!0x1;if(_0xb394a8['isObject'](_0x14923f)||_0xb394a8['isLimit'](_0x14923f))return!0x0;}return!0x1;}function un(_0x5f1626){return _0x5f1626['end']['parent']==_0x5f1626['start']['nodeAfter']&&_0x5f1626['end']['isAtStart'];}function dn(_0x317ffe,_0x3896d7,_0x2c925d,_0x29e6b7){const _0x55a560=_0x58e115=>!_0x58e115['item']['is']('$textProxy')&&!_0x29e6b7['isObject'](_0x58e115['item']),_0x24476d=_0x317ffe['start']['getLastMatchingPosition'](_0x55a560),_0x120ba5=_0x317ffe['end']['getLastMatchingPosition'](_0x55a560,{'direction':'backward'});return(!_0x317ffe['start']['isEqual'](_0x24476d)||!_0x317ffe['end']['isEqual'](_0x120ba5))&&(_0x24476d['isBefore'](_0x120ba5)?_0x2c925d['updateMarker'](_0x3896d7,{'range':_0x2c925d['createRange'](_0x24476d,_0x120ba5)}):_0x2c925d['removeMarker'](_0x3896d7),!0x0);}function hn(_0x41d16e){return _0x5a9283(_0x41d16e);}function gn(_0x5bbaa3){const _0x341b68=_0x5bbaa3['start']['nodeAfter'];return _0x341b68&&_0x341b68['is']('element');}function fn(_0x8abc71){return un(_0x8abc71)||function(_0x5578c1){return _0x5578c1['start']['parent']==_0x5578c1['end']['nodeBefore']&&_0x5578c1['start']['isAtEnd'];}(_0x8abc71);}function mn(_0x42b474,_0x137078){try{const _0xa81a87=_0x42b474['getRange']();for(const _0x3c030a of _0x137078)if(_0x42b474!==_0x3c030a&&_0xa81a87&&_0xa81a87['isIntersecting'](_0x3c030a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x4d082b,_0x3e942d){return null==_0x4d082b['end']['nodeBefore']&&_0x4d082b['end']['parent']==_0x4d082b['start']['nodeAfter']?Tn(_0x4d082b['start']['nodeAfter'],_0x3e942d):_0x4d082b;}function Tn(_0x28c3e8,_0x646922){const _0x48036a=_0x646922['schema']['isObject'](_0x28c3e8)||_0x646922['schema']['isSelectable'](_0x28c3e8);return _0x646922['createRange'](_0x646922['createPositionAt'](_0x28c3e8,'before'),_0x48036a?_0x646922['createPositionAfter'](_0x28c3e8):_0x646922['createPositionAt'](_0x28c3e8,'end'));}function _n(_0xeb7817,_0x3f89b9,_0x10391c,_0x21178d){return!!pn(_0xeb7817,_0x3f89b9)&&_0x10391c['end']['isEqual'](_0x21178d['start']);}function pn(_0x1fdbe1,_0x558f73){if(!_0x1fdbe1['_isDataLoaded']||!_0x558f73['_isDataLoaded'])return!0x1;const _0x1a8e0d=new Set(Object['keys'](_0x1fdbe1['attributes'])),_0x4f5731=new Set(Object['keys'](_0x558f73['attributes']));if(_0x1a8e0d['delete']('groupId'),_0x4f5731['delete']('groupId'),0x0==_0x1a8e0d['size']&&0x0==_0x4f5731['size'])return!0x0;if(_0x1a8e0d['size']!=_0x4f5731['size'])return!0x1;const _0x2bb53c={..._0x1fdbe1['attributes']},_0x4c0a22={..._0x558f73['attributes']};return delete _0x2bb53c['groupId'],delete _0x4c0a22['groupId'],JSON['stringify'](_0x2bb53c)==JSON['stringify'](_0x4c0a22);}function Ln(_0x3c72fd,_0x531cb2){const _0x328382=In(_0x3c72fd['attributes']),_0x444b85=In(_0x531cb2);if(!_0x3c72fd['_isDataLoaded'])return!0x1;if(!ct(_0x328382['@ai'],_0x444b85['@ai']))return!0x1;for(const _0x274568 of Object['keys'](_0x444b85))if(!ct(_0x328382[_0x274568],_0x444b85[_0x274568]))return!0x1;return!0x0;}function In(_0x18a40a){const _0x3f6422=Object['assign']({},_0x18a40a);return delete _0x3f6422['skipNestingCheck'],delete _0x3f6422['tablePasteChainId'],_0x3f6422;}function An(_0x27296c){return _0x27296c['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x3d7812();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2714ce,_0x286c6c,_0x1541bd,_0x350fda){super(),this['model']=_0x286c6c,this['view']=_0x1541bd,this['commentThreadController']=_0x350fda,this['_editor']=_0x2714ce,this['_acceptCommand']=_0x2714ce['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2714ce['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53d759,_0x10f9d3)=>_0x53d759||_0x10f9d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12a3cd=>_0x12a3cd&&this['_editor']['model']['canEditAt'](_0x286c6c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4bfd42=>_0x4bfd42&&this['_editor']['model']['canEditAt'](_0x286c6c['getRanges']())),this['_pendingAction']=null,_0x1541bd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1541bd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1541bd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1541bd,'change:isDirty',()=>{_0x1541bd['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 _0x4d2a5b=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d2a5b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x38a93a{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x17e977,_0x3d2831,_0x5be7cd,_0x40c393){super(_0x17e977),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x11216e(_0x17e977,Mt(_0x17e977,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d2831['authoredAt']),this['bind']('authoredAt')['to'](_0x3d2831),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',_0x3d2831,'authoredAt',this,'descriptionParts',(_0x4003a1,_0x2f63dd,_0x295807)=>{const _0x3c9ce8=_0x295807['map'](_0x17dca3=>Lt(_0x17dca3['content']))['join']('.\x20')+'.',_0xb8f27=_0x3d2831['aiSource']&&'author'===_0x40c393['showAISource']?_0x40c393['aiAuthor']['name']:_0x3d2831['author']['name'],_0x3d8f81=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4003a1-0x1,_0xb8f27,_0x2f63dd?_0x40c393['formatDateTime'](_0x2f63dd):'',new DOMParser()['parseFromString'](_0x3c9ce8,'text/html')['body']['textContent']]);return _0x3d2831['aiSource']&&'pill'===_0x40c393['showAISource']?_0x3d8f81+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3d8f81;}),this['focusables']=new _0x404e76(),this['focusTracker']=new _0xc35427(),this['keystrokes']=new _0x4aa419(),this['focusCycler']=new _0x3ae1a7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x562384=>_0x562384['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d2831,this['_localUser']=_0x5be7cd,this['_config']=_0x40c393,_0x40c393['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x26f898(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x5e0dc9}=this['_config'];this['commentsListView']=new _0x5e0dc9(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',_0x1e9011=>_0x1e9011+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2baa32,_0x2e0a36)=>_0x2baa32||!!_0x2e0a36);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1602dd}=this['_config'],_0x17dac5=new _0x1602dd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x10d00d=_0x17dac5['commentInputView'];return _0x17dac5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x10d00d,'value',(_0x20a6dc,_0x3e0553,_0x585b26)=>!!_0x585b26||_0x20a6dc&&!_0x3e0553),_0x10d00d['on']('submit',(_0x3fd5e3,_0x543104)=>{this['fire']('addComment',_0x543104),_0x10d00d['editor']['setData']('');}),_0x10d00d['on']('cancel',()=>this['focus']()),_0x10d00d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x17dac5;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x27f804,_0x57760c,_0xa1d6bb,_0x5dfd6b){super(_0x27f804,_0x57760c,_0xa1d6bb,_0x5dfd6b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38b78d=>_0x38b78d&&_0x38b78d[0x0]?_0x38b78d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x383440,_0x2dc565)=>{let _0x4d5015='';for(const _0x451f55 of _0x383440)_0x4d5015+='<p>'+Lt(_0x451f55['content'],_0x451f55['color'])+'</p>';return _0x2dc565?_0x4d5015:nt(_0x4d5015,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5dfd6b['SuggestionView'](_0x27f804,_0x57760c,{'formatDateTime':_0x5dfd6b['formatDateTime'],'showAISource':_0x5dfd6b['showAISource'],'aiAuthor':_0x5dfd6b['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x3ef8b9=this['bindTemplate'],_0x571d42=[this['suggestionView']];return this['commentsListView']&&_0x571d42['push'](this['commentsListView']),this['commentThreadInputView']&&_0x571d42['push'](this['commentThreadInputView']),_0x571d42['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3ef8b9['if']('isActive','ck-suggestion-wrapper--active'),_0x3ef8b9['to']('type',_0x1957ff=>'ck-suggestion-'+_0x1957ff),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':_0x3ef8b9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x571d42};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},yn=class extends _0x38a93a{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x40df6a,_0x18ccbc,_0x1c94db){super(_0x40df6a),this['_model']=_0x18ccbc,this['_config']=_0x1c94db,this['set']('description',''),this['bind']('authoredAt')['to'](_0x18ccbc),this['acceptButton']=this['_createButton'](Mt(_0x40df6a,'Accept\x20suggestion'),_0xcaba04,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x40df6a,'Discard\x20suggestion'),_0x488d59,'ck-suggestion--discard','discardSuggestion','sw');const _0x4aa017=!!_0x18ccbc['aiSource']&&'author'===_0x1c94db['showAISource'],_0x1016b5=_0x4aa017?this['_createAIUser'](_0x1c94db['aiAuthor']):_0x18ccbc['author'],_0x347be0=_0x4aa017&&!_0x1c94db['aiAuthor']['avatar']?_0x136f6e:void 0x0;this['userView']=new _0x57848d(_0x40df6a,_0x1016b5,this['getUserViewNotificationText'](),_0x347be0),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x404e76([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc35427(),this['keystrokes']=new _0x4aa419(),this['focusCycler']=new _0x3ae1a7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2580fe=>_0x2580fe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5d04f5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5d04f5['innerHTML']=this['description'],this['on']('change:description',(_0x435b40,_0x520ea6,_0x1334c4)=>{_0x5d04f5['innerHTML']=_0x1334c4;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x1702c7=this['bindTemplate'],_0x5178e2=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1702c7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1702c7['to']('authoredAt',_0x39296a=>this['_config']['formatDateTime'](_0x39296a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x5178e2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5484e5=new _0xda9ac1(this['locale']);_0x5484e5['set']({'icon':_0x55a3ec,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x5178e2['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5484e5]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x5178e2}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x27068e){return new _0x359f87({'id':'ck-ai-author','name':_0x27068e['name'],'avatar':_0x27068e['avatar'],'color':new _0x20d727(0x0)});}_createButton(_0x5c1ca9,_0x4b0b62,_0x5b0a71,_0x5d6e1f,_0x5112c3){const _0x599d42=new _0x273023(this['locale']);return _0x599d42['set']({'label':_0x5c1ca9,'icon':_0x4b0b62,'tooltip':!0x0,'tooltipPosition':_0x5112c3}),_0x599d42['extendTemplate']({'attributes':{'class':_0x5b0a71}}),_0x599d42['on']('execute',()=>{this['fire'](_0x5d6e1f,this['_model']['id']);}),_0x599d42;}_setupKeyboardNavigation(){const _0x185870=this['element'];this['keystrokes']['listenTo'](_0x185870);for(const _0x243e87 of this['focusables'])this['focusTracker']['add'](_0x243e87['element']),this['keystrokes']['listenTo'](_0x243e87['element']);this['keystrokes']['set']('enter',(_0xbe1c2c,_0x50cb41)=>{_0x185870===_0xbe1c2c['target']&&(this['focusCycler']['focusFirst'](),_0x50cb41());}),this['keystrokes']['set']('esc',(_0x2abdd7,_0x21a21a)=>{_0x185870!==_0x2abdd7['target']&&(this['focus'](),_0x21a21a());});}},Nn=class extends _0x42a28f{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x3f25ff,_0x51a4b7,_0x320e85,_0x42e5e7];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x107d59){super(_0x107d59),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a1ae4=this['editor']['config'];_0x4a1ae4['define']('trackChanges.SuggestionThreadView',Rn),_0x4a1ae4['define']('trackChanges.SuggestionView',yn),_0x4a1ae4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a1ae4['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x45ea17,_0x295634){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x485998,_0x316e1d]of this['_handleControllerBuffer']){const _0x470342=this['_suggestionToController']['has'](_0x485998);_0x470342||_0x316e1d?_0x470342&&_0x316e1d&&this['_destroyController'](_0x485998):this['_initializeController'](_0x485998);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x42e5e7)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x45ea17,_0x295634);}init(){const _0x52f88e=this['editor'],_0xc80f07=_0x52f88e['plugins']['get'](an),_0x5dd825=_0x52f88e['plugins']['get'](_0x320e85),_0x277ffc=_0x52f88e['plugins']['get'](_0x42e5e7),_0x2f7d31=_0x52f88e['plugins']['get'](_0x51a4b7);this['_addUIComponentsToFactory'](),_0x277ffc['addSourceCollector'](()=>{const _0x3410d8=[];for(const [_0x112a3c,_0x5c5382]of Array['from'](this['_suggestionToController'])){const _0x45dc46=_0x112a3c['getAllAdjacentSuggestions'](),_0x1ca012=[];for(const _0x4904b3 of _0x45dc46){if(!_0x4904b3['isInContent'])continue;if(_0x4904b3['isMultiRange']){_0x1ca012['push'](..._0x4904b3['getRanges']());continue;}const _0x1b9d79=_0x4904b3['getFirstRange']();if(_0x1ca012['length']>0x0){const _0x33147c=_0x1ca012[0x0]['getJoined'](_0x1b9d79);if(_0x33147c){_0x1ca012[0x0]=_0x33147c;continue;}}_0x1ca012['push'](_0x1b9d79);}_0x3410d8['push']([_0x5c5382['view'],_0x1ca012]);}return _0x3410d8;}),this['listenTo'](_0xc80f07,'suggestionLoaded',(_0x32beff,_0xeaabf9)=>{this['listenTo'](_0xeaabf9,'change:previous',(_0x11e1bd,_0x3a6814,_0x5c1da4,_0x5687cd)=>{_0xeaabf9['isInContent']&&(null==_0x5c1da4?(this['_updateController'](_0x5687cd['head']),this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x1)):(this['_updateController'](_0x5c1da4['head']),null==_0x5687cd&&this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x0)));}),null!==_0xeaabf9['previous']?this['_updateController'](_0xeaabf9['head']):this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x1);}),this['listenTo'](_0xc80f07,'suggestionUnloaded',(_0x3af9b2,_0x9fbf4f,_0x33a7af)=>{this['stopListening'](_0x9fbf4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9fbf4f),this['_suggestionToController']['has'](_0x9fbf4f)&&this['_destroyController'](_0x9fbf4f),_0x33a7af&&this['_updateController'](_0x33a7af['head']);}),this['listenTo'](_0xc80f07,'suggestionChanged',(_0x4caf0a,_0x1e3aed)=>{this['_updateController'](_0x1e3aed);}),this['listenTo'](_0x5dd825,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f7d31,'addComment',(_0x27ce36,{threadId:_0x4682c2,isFromAdapter:_0x3da2e5})=>{if(_0x3da2e5||!_0xc80f07['hasSuggestion'](_0x4682c2))return;const _0x58f9c8=_0xc80f07['getSuggestion'](_0x4682c2);this['_suggestionToController']['get'](_0x58f9c8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x23ee93=[this['editor']];for(const _0x5cf61c of _0x23ee93){let _0x139ff1;for(const _0x137519 in _0x5cf61c){const _0x42de0e=_0x137519,_0x31a049=_0x5cf61c[_0x42de0e];if('trackChangesLicenseKeyValid'==_0x31a049||'trackChangesLicenseKeyInvalid'==_0x31a049||'trackChangesLicenseKeyExpired'==_0x31a049||'trackChangesLicenseKeyDomainLimit'==_0x31a049||'trackChangesLicenseKeyNotAllowed'==_0x31a049||'trackChangesLicenseKeyEvaluationLimit'==_0x31a049||'trackChangesLicenseKeyUsageLimit'==_0x31a049){delete _0x5cf61c[_0x42de0e],_0x139ff1=_0x31a049,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x139ff1&&_0x5cf61c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x139ff1&&_0x5cf61c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x139ff1&&_0x5cf61c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x113218){const _0x1a0d40=this['_suggestionToController']['get'](_0x113218);return _0x1a0d40&&this['editor']['plugins']['get'](_0x320e85)['getByInnerView'](_0x1a0d40['view'])||null;}getSuggestionForAnnotation(_0x34a1dd){const _0x1d66e5=this['_viewToController']['get'](_0x34a1dd['innerView']);return _0x1d66e5?_0x1d66e5['model']:null;}_refreshActiveMarkers(){const _0xb1ce26=this['editor']['plugins']['get'](_0x320e85),_0x28f5eb=this['editor']['plugins']['get'](an),_0x161911=Array['from'](_0xb1ce26['activeAnnotations'],_0x5d1fd5=>_0x5d1fd5['innerView'])['filter'](_0x43baaa=>this['_viewToController']['has'](_0x43baaa)),_0x599b74=[];for(const _0x911251 of _0x161911){const _0x58ab64=this['_viewToController']['get'](_0x911251)['model']['getAllAdjacentSuggestions']();_0x599b74['push'](..._0x58ab64['reduce']((_0x10429e,_0x4bc76d)=>[..._0x10429e,..._0x4bc76d['getMarkerNames']()],[]));}_0x28f5eb['activeMarkers']=_0x599b74;}_addUIComponentsToFactory(){const _0x3589e8=this['editor'],_0x5eabde=_0x3589e8['locale'],_0x84639=Mt(_0x5eabde,'Track\x20changes'),_0xd6dd98=new _0xcf0f12([{'type':'switchbutton','model':new _0xc62c18({'withText':!0x0,'isToggleable':!0x0,'label':_0x84639,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3589e8['plugins']['has']('TrackChangesPreview')&&_0xd6dd98['addMany']([{'type':'separator'},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4cff25 of _0xd6dd98)if(Sn(_0x4cff25)){const _0x494244=_0x3589e8['commands']['get'](_0x4cff25['model']['commandName']);_0x4cff25['model']['bind']('isOn','isEnabled')['to'](_0x494244,'value','isEnabled');}_0x3589e8['ui']['componentFactory']['add']('trackChanges',_0x254299=>this['_createToolbarButton'](_0x254299,_0xd6dd98,_0x84639)),_0x3589e8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x398bbd=>this['_createMenuBarMenu'](_0x398bbd,_0xd6dd98,_0x84639));}_createToolbarButton(_0xcbb529,_0x1bbe06,_0x3e584d){const _0x22b4c6=_0x4a118d(_0xcbb529,_0x1fbe25),_0x5008a3=this['editor']['commands']['get']('trackChanges');_0x22b4c6['buttonView']['set']({'tooltip':_0x3e584d,'label':_0x3e584d,'icon':_0x37c353}),_0x22b4c6['buttonView']['bind']('isOn')['to'](_0x5008a3,'value'),_0x22b4c6['buttonView']['on']('execute',()=>{_0x5008a3['execute'](),this['editor']['editing']['view']['focus']();}),_0x4c17c9(_0x22b4c6,_0x1bbe06,{'role':'menu'});const _0x10ec94=[];for(const _0x161298 of _0x1bbe06)Sn(_0x161298)&&_0x10ec94['push'](this['editor']['commands']['get'](_0x161298['model']['commandName']));const _0xde085d=_0x22b4c6['buttonView'];return _0xde085d['actionView']['unbind']('isEnabled'),_0xde085d['arrowView']['unbind']('isEnabled'),_0xde085d['actionView']['bind']('isEnabled')['to'](_0x5008a3,'isEnabled'),_0xde085d['arrowView']['bind']('isEnabled')['toMany'](_0x10ec94,'isEnabled',(..._0xda43de)=>_0xda43de['some'](_0x2ba6f7=>_0x2ba6f7)),_0x22b4c6['on']('execute',_0x2155e6=>{this['editor']['execute'](_0x2155e6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x22b4c6;}_createMenuBarMenu(_0x5bf6ca,_0xb377ff,_0x468bbb){const _0x24dbdd=new _0x490808(_0x5bf6ca),_0x3556b6=this['editor']['commands']['get']('trackChanges');_0x24dbdd['buttonView']['set']({'label':_0x468bbb,'icon':_0x37c353});const _0x137f7a=new _0x3867d5(_0x5bf6ca);for(const _0x2c481e of _0xb377ff){if('separator'==_0x2c481e['type']){_0x137f7a['items']['add'](new _0x3d3b0b(_0x5bf6ca));continue;}const _0x153877=new _0x1d4268(_0x5bf6ca,_0x24dbdd),_0x30d9fa=new _0x1b87e4(_0x5bf6ca),_0x5bcde8=_0x2c481e['model'];_0x30d9fa['bind'](...Object['keys'](_0x5bcde8))['to'](_0x5bcde8),_0x30d9fa['delegate']('execute')['to'](_0x24dbdd),_0x30d9fa['on']('execute',()=>{this['editor']['execute'](_0x5bcde8['commandName']),this['editor']['editing']['view']['focus']();}),_0x153877['children']['add'](_0x30d9fa),_0x137f7a['items']['add'](_0x153877);}return _0x24dbdd['bind']('isEnabled')['to'](_0x3556b6,'isEnabled'),_0x24dbdd['panelView']['children']['add'](_0x137f7a),_0x24dbdd;}_initializeController(_0x419145){const _0x26867b=this['editor'],_0x4264a3=_0x26867b['config'],_0x318eda=_0x26867b['plugins']['get'](_0x320e85),_0x3f14a6=_0x26867b['plugins']['get'](_0x51a4b7),_0x4100b1=_0x26867b['plugins']['get'](_0x42e5e7),_0x46a070=_0x26867b['plugins']['get'](_0x3f25ff)['me'],_0x178b50=_0x4264a3['get']('trackChanges')['SuggestionThreadView'],_0x256e4a=_0x4264a3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4b6ec2,CommentThreadInputView:_0x20dfd9}=_0x26867b['plugins']['get']('CommentsUI');let _0x18cfd8,_0x44812f,_0x5c7995;this['_annotationViews']['has'](_0x419145['id'])?(_0x44812f=this['_annotationViews']['get'](_0x419145['id']),_0x18cfd8=_0x44812f['mainView']):(_0x18cfd8=new _0x178b50(_0x26867b['locale'],_0x419145,_0x46a070,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4264a3['get']('comments.editorConfig'),'licenseKey':_0x4264a3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4264a3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4264a3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4264a3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4ba4af(_0x4264a3['get']('locale'),_0x26867b['locale']),'CommentView':_0x4264a3['get']('comments')['CommentView'],'CommentsListView':_0x4b6ec2,'CommentThreadInputView':_0x20dfd9,'SuggestionView':_0x256e4a,'showAISource':_0x4264a3['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4264a3['get']('trackChanges.aiAuthor'),'name':_0x4264a3['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x26867b['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x18cfd8['suggestionView']['acceptButton']['on']('execute',()=>{_0x26867b['editing']['view']['focus']();}),_0x18cfd8['suggestionView']['discardButton']['on']('execute',()=>{_0x26867b['editing']['view']['focus']();}),_0x44812f=_0x318eda['createAnnotationView'](this['editor']['locale'],_0x18cfd8),_0x44812f['bind']('isDirty')['to'](_0x18cfd8,'isDirty'),_0x44812f['bind']('length')['to'](_0x18cfd8),_0x44812f['bind']('type')['to'](_0x18cfd8,'type',_0x12699e=>'suggestion-'+_0x12699e),_0x18cfd8['on']('escape',()=>{_0x5c7995['fire']('escape');}),this['_annotationViews']['set'](_0x419145['id'],_0x44812f));const _0x471f5a=_0x3f14a6['createCommentThreadController'](_0x419145['commentThread'],_0x18cfd8),_0x5b13cc=new kn(_0x26867b,_0x419145,_0x18cfd8,_0x471f5a),_0x19ed99=_0x419145['getAllAdjacentSuggestions']()['filter'](_0x553dc5=>_0x553dc5['isInContent']);_0x18cfd8['descriptionParts']=_0x26867b['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x19ed99),this['_suggestionToController']['set'](_0x419145,_0x5b13cc),this['_viewToController']['set'](_0x18cfd8,_0x5b13cc);const _0x2cf790=()=>{const _0x1249f3=[],_0x28782b=_0x419145['getAllAdjacentSuggestions']()['filter'](_0x4bfa0d=>_0x4bfa0d['isInContent']);for(const _0x15ee8f of _0x28782b)_0x1249f3['push'](..._0x15ee8f['getMarkers']());return _0x2dde48(_0x26867b['editing'],_0x1249f3);};_0x5c7995=_0x318eda['createAnnotation']({'view':_0x44812f,'target':_0x2cf790,'type':()=>'suggestion-'+_0x5b13cc['view']['type'],'isVisible':!!_0x2cf790()}),_0x3f14a6['_bindAnnotationToEditors'](_0x18cfd8,_0x5c7995),_0x318eda['add'](_0x5c7995),_0x4100b1['registerAnnotation'](_0x5c7995);}_destroyController(_0x3a4319){const _0x2f32da=this['editor']['plugins']['get'](_0x51a4b7),_0x53bb25=this['editor']['plugins']['get'](_0x320e85),_0xc03ed0=this['_suggestionToController']['get'](_0x3a4319),_0x962433=_0xc03ed0['view'],_0x39b33c=_0x53bb25['getByInnerView'](_0x962433);_0x2f32da['_unbindEditors'](_0x962433),_0x39b33c&&_0x53bb25['remove'](_0x39b33c),this['_suggestionToController']['delete'](_0x3a4319),this['_viewToController']['delete'](_0x962433),_0xc03ed0['destroy']();}_updateController(_0x69740e){if(!_0x69740e['isInContent']||!this['_suggestionToController']['has'](_0x69740e))return;const _0x24ae69=this['editor']['plugins']['get'](an),_0x566e62=this['_suggestionToController']['get'](_0x69740e),_0x3903e7=_0x69740e['getAllAdjacentSuggestions']();_0x566e62['view']['descriptionParts']=_0x24ae69['descriptionFactory']['getDescriptions'](_0x3903e7);}destroy(){for(const _0xa9cf08 of this['_suggestionToController']['keys']())this['_destroyController'](_0xa9cf08);for(const _0x244b83 of this['_annotationViews']['values']())_0x244b83['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x112c72){return'model'in _0x112c72;}var Mn=class extends _0x42a28f{static get requires(){return[an,Nn,_0x21a992];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3ff75a){this['editor']['plugins']['get'](an)['adapter']=_0x3ff75a;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x521f5c){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x521f5c);}getSuggestions({skipNotAttached:_0x28c672=!0x1,toJSON:_0x2ed71a=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x28c672,'toJSON':_0x2ed71a});}getSuggestion(_0xc100c0){return this['editor']['plugins']['get'](an)['getSuggestion'](_0xc100c0);}};const On=['Pagination'];var wn=class extends _0x42a28f{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x489bb0=this['editor'];if(_0x489bb0['config']['define']('trackChangesData.editorCreator',_0x4f86e4=>{const _0x239ce3=_0x489bb0['model']['document']['getRootNames']()['reduce']((_0x5457b2,_0x5f1eb3)=>(_0x5457b2[_0x5f1eb3]='',_0x5457b2),{});return _0x489bb0['constructor']['create'](_0x239ce3,_0x4f86e4);}),'function'!=typeof _0x489bb0['config']['get']('trackChangesData')['editorCreator'])throw new _0x5f6c00('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x8c05a4){return vn(this['editor'],!0x0,_0x8c05a4);}getDataWithDiscardedSuggestions(_0x4f7556){return vn(this['editor'],!0x1,_0x4f7556);}},Fn=class extends _0x42a28f{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31cafb){super(_0x31cafb),this['result']='end',_0x31cafb['editing']['view']['_overlayModeHint']='auto',_0x31cafb['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Bn(_0x1e7a46){return void 0x0!==_0x1e7a46['getRootsAttributes'];}async function vn(_0x3d0e8e,_0x212928,_0x10a144){const _0x1145cc=_0x1d3fee(_0x3d0e8e,On);if(_0x1145cc['plugins']['push'](an,Fn),Bn(_0x3d0e8e)){_0x1145cc['roots']=Object['create'](null);for(const _0x1b4403 of _0x3d0e8e['model']['document']['getRootNames']())_0x1145cc['roots'][_0x1b4403]={'modelAttributes':_0x3d0e8e['getRootAttributes'](_0x1b4403)};}const _0x218362=document['createDocumentFragment'](),_0x2eb5bf=_0x3d0e8e['config']['get']('trackChangesData')['editorCreator'],_0x26d00e=await _0x2eb5bf(_0x1145cc,()=>function(_0x280931){const _0x335091=document['createElement']('div');return _0x280931['appendChild'](_0x335091),_0x335091;}(_0x218362));!function(_0x3d9aa5,_0x190b78){const _0x4887f1=_0x3d9aa5['model']['document']['getRootNames']()['reduce']((_0x50fbed,_0x11979e)=>(_0x50fbed[_0x11979e]=_0x3d9aa5['data']['get']({'rootName':_0x11979e}),_0x50fbed),{}),_0x45f1eb=_0x3d9aa5['plugins']['get']('Users')['users']['map'](_0x59edff=>({'id':_0x59edff['id'],'name':_0x59edff['name']})),_0x3795ee=_0x3d9aa5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5eaaa7=_0x3d9aa5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5629b6=_0x190b78['plugins']['get']('Users'),_0x2b9a76=_0x190b78['plugins']['get']('TrackChangesEditing'),_0x43b757=_0x190b78['plugins']['get']('CommentsRepository');for(const _0x341fd2 of _0x43b757['getCommentThreads']())_0x341fd2['remove']();for(const _0x26adba of _0x45f1eb)_0x5629b6['getUser'](_0x26adba['id'])||_0x5629b6['addUser'](_0x26adba);_0x5629b6['me']||_0x5629b6['useAnonymousUser']();for(const _0x320cd6 of _0x5eaaa7)_0x43b757['addCommentThread'](_0x320cd6);for(const _0x3d4289 of _0x3795ee)_0x2b9a76['addSuggestionData'](_0x3d4289);_0x190b78['data']['set'](_0x4887f1);}(_0x3d0e8e,_0x26d00e),_0x26d00e['execute'](_0x212928?'acceptAllSuggestions':'discardAllSuggestions');const _0x5a72a4=Bn(_0x26d00e)?_0x26d00e['getFullData'](_0x10a144):_0x26d00e['data']['get'](_0x10a144);return await _0x26d00e['destroy'](),_0x5a72a4;}var Dn=class extends _0x38a93a{options;constructor(_0x10b96b,_0x5c0d15){super(_0x10b96b),this['options']=_0x5c0d15,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0xbd50ee,_0x382f8b){if(!this['element'])return;const _0x40c48d=[];for(const [_0x1c4f6c,_0x19075b]of _0xbd50ee){const _0x2322c9=document['createElement']('div');_0x2322c9['setAttribute']('data-ck-root-name',_0x1c4f6c),_0x2322c9['className']=_0x19075b['classes']+'\x20ck-track-changes-preview__root-container',_0x2322c9['innerHTML']=_0x19075b['content'],_0x40c48d['push'](_0x2322c9);}_0x382f8b(this['element'],_0x40c48d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x1111ef{constructor(_0x4b8a3a){super(_0x4b8a3a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x2db7cc=this['editor'],_0x38b916=_0x2db7cc['locale'],_0x46a720=_0x2db7cc['plugins']['get']('Dialog');let _0x44db9a;const _0x216f33=function(_0x197db0){const _0xb9686a={};if('editables'in _0x197db0['ui']['view']){for(const [_0x1db79b,_0x322b60]of Object['entries'](_0x197db0['ui']['view']['editables']))_0xb9686a[_0x1db79b]=_0x322b60['element'];}else _0xb9686a[_0x197db0['model']['document']['getRootNames']()[0x0]]=_0x197db0['ui']['view']['editable']['element'];return _0xb9686a;}(_0x2db7cc),_0x2eec73=function(_0x2a5f88){let _0x244be2=0x0;for(const _0x1fe29f of Object['values'](_0x2a5f88))_0x244be2=Math['max'](_0x244be2,_0x1fe29f['getBoundingClientRect']()['width']);let _0x4250ab=0x0;for(const _0x5cfe94 of Object['values'](_0x2a5f88))_0x4250ab+=_0x5cfe94['getBoundingClientRect']()['height'];const _0x1d3b3d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x244be2,'height':Math['min'](_0x4250ab,_0x1d3b3d)};}(_0x216f33);_0x46a720['show']({'id':'finalContentPreview','title':Mt(_0x38b916,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x38b916,{'dialogRects':_0x2eec73}),'onHide':()=>{_0x44db9a['detachFromDom']();},'onShow':()=>{_0x2db7cc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3405f2=>{const _0x517192=this['_standarizeRootsData'](_0x3405f2,_0x2db7cc,_0x216f33);_0x46a720['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x517192,_0x2db7cc['config']['get']('trackChanges.preview.renderFunction'));}),_0x44db9a=new _0x25c7c9(_0x38b916,[_0x46a720['view']]),_0x44db9a['attachToDom'](),_0x44db9a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2db7cc['once']('destroy',()=>{_0x44db9a['detachFromDom']();});const _0x2c6d70=_0x46a720['view']['headerView']['class'];_0x46a720['view']['headerView']['class']=_0x2c6d70?_0x2c6d70+'\x20ck-reset_all':'ck-reset_all',_0x46a720['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x46a720['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5dc233=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x354557=_0x5dc233['previewMode'],_0x5d8bb6={};if('$labels'===_0x354557){for(const _0x2cbd9c of _0x5dc233['getMergeFieldsIds']())_0x5d8bb6[_0x2cbd9c]=_0x5dc233['getLabel'](_0x2cbd9c)||_0x2cbd9c;}else{const _0x4d5036='$defaultValues'===_0x354557?_0x5dc233['getDefaultValues']():_0x5dc233['getDataSetValues'](_0x354557,!0x0);for(const _0x1d89ef of Object['entries'](_0x4d5036)){const [_0x198bef,_0x2aa671]=_0x1d89ef;_0x5d8bb6[_0x198bef]=null!==_0x2aa671?_0x2aa671:_0x5dc233['getLabel'](_0x198bef)||_0x198bef;}}return{'mergeFieldsData':_0x5d8bb6};}_standarizeRootsData(_0x1a084e,_0x59af66,_0x5aabee){let _0x15c5c4;_0x15c5c4='string'==typeof _0x1a084e?{[_0x59af66['model']['document']['getRootNames']()[0x0]]:_0x1a084e}:_0x1a084e;const _0x49a547=this['_fixMediaEmbeds'](_0x15c5c4,_0x59af66);return function(_0x164f9c,_0xa38999){for(const [_0x4f3b0f,_0x56dcd9]of _0x164f9c)_0x56dcd9['classes']=_0xa38999[_0x4f3b0f]['classList']['value']['replace']('ck-focused','');return _0x164f9c;}(this['_sortRoots'](_0x59af66)['reduce']((_0x4c29c5,_0x30d990)=>(_0x4c29c5['push']([_0x30d990,{'content':_0x49a547[_0x30d990],'classes':''}]),_0x4c29c5),[]),_0x5aabee);}['_fixMediaEmbeds'](_0x1b6cc7,_0x42b5cd){if(!_0x42b5cd['plugins']['has']('MediaEmbedEditing'))return _0x1b6cc7;const _0x15aae8=_0x42b5cd['plugins']['get']('MediaEmbedEditing');for(const [_0x2aca24,_0x3b4507]of Object['entries'](_0x1b6cc7)){const _0x390572=document['createElement']('div');_0x390572['innerHTML']=_0x3b4507,_0x390572['querySelectorAll']('figure.media')['forEach'](_0x52d2aa=>{const _0x115c5d=_0x52d2aa['querySelector']('oembed');if(_0x115c5d){const _0x4e4685=_0x115c5d['getAttribute']('url');if(_0x4e4685){const _0x28a9db=_0x15aae8['registry']['getMediaViewElement'](new ot(_0x42b5cd['editing']['view']['document']),_0x4e4685,{'elementName':'','renderForEditingView':!0x0}),_0x29f090=document['createElement']('div');_0x29f090['classList']['add']('ck-media__wrapper'),_0x28a9db['render'](_0x29f090,_0x42b5cd['editing']['view']['domConverter']),_0x115c5d['replaceWith'](_0x29f090);}}}),_0x1b6cc7[_0x2aca24]=_0x390572['innerHTML'];}return _0x1b6cc7;}_sortRoots(_0x45b415){if(!function(_0x2776bd){return void 0x0!==_0x2776bd['getRootsAttributes'];}(_0x45b415))return _0x45b415['model']['document']['getRootNames']();const _0x126c1e=[],_0x1541b2=new Map();for(const _0x290cc9 of _0x45b415['model']['document']['getRootNames']()){const _0x383aaf=_0x45b415['editing']['view']['getDomRoot'](_0x290cc9)['getClientRects']()['item'](0x0);_0x126c1e['push'](_0x290cc9),_0x1541b2['set'](_0x290cc9,_0x383aaf);}return _0x126c1e['sort']((_0x36aa4e,_0x57bbe1)=>{const _0xefa408=_0x1541b2['get'](_0x36aa4e),_0x36b45d=_0x1541b2['get'](_0x57bbe1);return _0xefa408['y']-_0x36b45d['y']||_0xefa408['x']-_0x36b45d['x'];}),_0x126c1e;}},Pn=class extends _0x42a28f{static get requires(){return[wn,_0x4820ab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a07a4){super(_0x5a07a4),_0x5a07a4['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x5a07a4['config']['define']('trackChanges.preview.renderFunction',(_0x260f96,_0x12e053)=>{for(const _0x480420 of _0x12e053)_0x260f96['appendChild'](_0x480420);});}};export{_t as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Un as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Rn as SuggestionThreadView,yn as SuggestionView,Mn as TrackChanges,Tt as TrackChangesCommand,wn as TrackChangesData,Fn as TrackChangesDataGetter,an as TrackChangesEditing,Pn as TrackChangesPreview,Nn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x10f950,PendingActions as _0x5b5e96,Plugin as _0x5ba5d4}from'@ckeditor/ckeditor5-core';import{Annotations as _0x4c867f,Comments as _0x1c4719,CommentsRepository as _0x5efbfe,EditorAnnotations as _0x1f718d}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x478e8c,Collection as _0x290ed9,FocusTracker as _0x5a4440,KeystrokeHandler as _0x9d62cf,ObservableMixin as _0x525997,getEnvKeystrokeText as _0xe73984,insertToPriorityArray as _0x2a65fb,logWarning as _0x3f9976,priorities as _0x1f9ee9,uid as _0x38eda5}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x3c9f84,IconCancel as _0x368046,IconCheck as _0x4d01a3,IconSparkle as _0x482d2e,IconTrackChanges as _0x41d7f3}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x3c33e8,Dialog as _0x4588aa,FocusCycler as _0x2f7b83,ListSeparatorView as _0x348bf4,MenuBarMenuListItemButtonView as _0x43757c,MenuBarMenuListItemView as _0x267cce,MenuBarMenuListView as _0x547eb3,MenuBarMenuView as _0x5afca8,SplitButtonView as _0x50191e,UIModel as _0x44b220,View as _0x21bd75,ViewCollection as _0x4dbb2d,addListToDropdown as _0x4e0e44,createDropdown as _0x3916a0,normalizeColorOptions as _0x582b43}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x21919c,CollaborationUserColor as _0x25211d,FOCUS_ANNOTATION_KEYSTROKE as _0x58c131,LateFocusButtonView as _0x3afb84,PillView as _0xccde03,SuggestionsConversion as _0x5b8360,User as _0x19710e,UserView as _0x19fe81,Users as _0x5d6c79,fixElementSuggestionRange as _0x586961,getAllMarkersDomElementsSorted as _0x406bf9,getDateTimeFormatter as _0x127f7b,hashObject as _0x414676,isInvalidAttributeOperation as _0x5ed10c,sanitizeEditorConfig as _0x33e767,setupThreadKeyboardNavigation as _0x231474,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x10f950{['_enabledCommands'];constructor(_0x2f14a9,_0x242426){super(_0x2f14a9),this['_enabledCommands']=_0x242426,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 _0x125d63 of this['editor']['commands']['commands']())_0x125d63['affectsData']&&!this['_enabledCommands']['has'](_0x125d63)&&_0x125d63['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2da418 of this['editor']['commands']['commands']())_0x2da418['affectsData']&&!this['_enabledCommands']['has'](_0x2da418)&&_0x2da418['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x10f950{_suggestions;constructor(_0xf22277,_0x7924fa){super(_0xf22277),this['_suggestions']=_0x7924fa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x311fc0){const _0x3cb281=this['_suggestions']['get'](_0x311fc0);if(!_0x3cb281)throw new _0x478e8c('track-changes-accept-suggestion-not-found',this);const _0x1eb251=_0x3cb281['getRanges']();this['editor']['model']['canEditAt'](_0x1eb251)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3cb281);}},pt=class extends _0x10f950{_suggestions;constructor(_0x51fb87,_0x43a0fc){super(_0x51fb87),this['_suggestions']=_0x43a0fc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x2647c7){const _0x2b68ec=this['_suggestions']['get'](_0x2647c7);if(!_0x2b68ec)throw new _0x478e8c('track-changes-discard-suggestion-not-found',this);const _0x425263=_0x2b68ec['getRanges']();this['editor']['model']['canEditAt'](_0x425263)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2b68ec);}};function Lt(_0x4bde62,_0x14b3b1){let _0x8df852='';return _0x8df852+=_0x4bde62['split']('*')['map']((_0x4fbd9c,_0x3773e4)=>_0x3773e4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0x4fbd9c)+'</span>':It(_0x4fbd9c))['join'](''),_0x14b3b1&&(_0x8df852+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x14b3b1['value']+'\x22\x20title=\x22'+_0x14b3b1['title']+'\x22></span>'),_0x8df852;}function It(_0x185b6e){const _0xbfed43=document['createElement']('span');return _0xbfed43['innerText']=_0x185b6e,_0xbfed43['innerHTML'];}function At(_0x4d2b82){return _0x4d2b82['sort']((_0x8417ed,_0x49fbfb)=>'attribute'===_0x8417ed['type']&&'attribute'!==_0x49fbfb['type']?-0x1:'attribute'!==_0x8417ed['type']&&'attribute'===_0x49fbfb['type']?0x1:'deletion'==_0x8417ed['type']&&'deletion'!=_0x49fbfb['type']?-0x1:'deletion'!=_0x8417ed['type']&&'deletion'==_0x49fbfb['type']?0x1:0x0);}function bt(_0x5ecd7f,_0x3a6807){let _0x51b20a,_0x310179=0x0;const _0x5530f2=[],_0x39aa3f=_0x3a6807['schema'];for(;_0x310179<_0x5ecd7f['length'];){const _0x32036a=_0x5ecd7f[_0x310179],_0x492a05=_0x5ecd7f[_0x310179+0x1];_0x51b20a||(_0x51b20a=_0x3a6807['createPositionBefore'](_0x32036a)),kt(_0x3a6807,_0x32036a,_0x492a05)||(_0x5530f2['push'](_0x3a6807['createRange'](_0x51b20a,_0x39aa3f['isObject'](_0x32036a)?_0x3a6807['createPositionAfter'](_0x32036a):_0x3a6807['createPositionAt'](_0x32036a,'end'))),_0x51b20a=null),_0x310179++;}return _0x5530f2;}function kt(_0x1457ab,_0x1a12e3,_0x511802){if(!_0x511802)return!0x1;const _0x4c5591=_0x1457ab['createPositionAfter'](_0x1a12e3),_0x1af4f9=_0x1457ab['createPositionBefore'](_0x511802);return _0x4c5591['isTouching'](_0x1af4f9);}function Ct(_0x29c8f4,_0x4f8b33,_0x14af87){for(;_0x14af87['length'];){const _0x5a44db=_0x14af87['splice'](0x0,0x64);_0x29c8f4['change'](()=>{for(const _0x2cfcd4 of _0x5a44db)_0x2cfcd4['isInContent']&&_0x4f8b33['execute'](_0x2cfcd4['id']);});}}var Rt=class extends _0x10f950{['_command'];_suggestions;constructor(_0x1eb0b5,_0x1c05d7,_0x11df18){super(_0x1eb0b5),this['_command']=_0x1c05d7,this['_suggestions']=_0x11df18,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x13c4fc=Array['from'](this['_suggestions']['values']())['some'](_0x42cb71=>_0x42cb71['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x13c4fc;}execute(){const _0xc6961f=At(Array['from'](this['_suggestions']['values']()));for(const _0x2e0883 of _0xc6961f){const _0x1e2cf0=_0x2e0883['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e2cf0))return;}Ct(this['editor']['model'],this['_command'],_0xc6961f);}},yt=class extends _0x10f950{['_command'];_suggestions;_selectedSuggestions;constructor(_0x2c36cc,_0x4848c1,_0x1ea508){super(_0x2c36cc),this['_command']=_0x4848c1,this['_suggestions']=_0x1ea508,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5f1e60=this['editor']['model']['document']['selection'],_0xa9efb6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2b7fca,_0x51e5b0){const _0x2d659c=Array['from'](_0x2b7fca['getRanges']()),_0x133acb=new Set();for(const _0x30e74a of _0x51e5b0)if(_0x30e74a['isInContent']){for(const _0x2ef664 of _0x2d659c)for(const _0x33ab96 of _0x30e74a['getRanges']())(_0x2ef664['isIntersecting'](_0x33ab96)||_0x2b7fca['isCollapsed']&&!_0x30e74a['isMultiRange']&&_0x30e74a['next']&&_0x33ab96['end']['isTouching'](_0x2ef664['start']))&&_0x133acb['add'](_0x30e74a);}return _0x133acb;}(_0x5f1e60,_0xa9efb6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0xd24c79=At(Array['from'](this['_selectedSuggestions']));for(const _0x37c09c of _0xd24c79){const _0x1100ca=_0x37c09c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1100ca))return;}Ct(this['editor']['model'],this['_command'],_0xd24c79);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x525997();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x3222fb,_0x35cfc2){super(),this['id']=_0x35cfc2['id'],this['type']=_0x35cfc2['type'],this['subType']=_0x35cfc2['subType']||null,this['author']=_0x35cfc2['author'],this['creator']=_0x35cfc2['creator']||_0x35cfc2['author'],this['data']=null,this['_originalSuggestionId']=_0x35cfc2['originalSuggestionId']||null,this['_model']=_0x3222fb,this['_onAccept']=_0x35cfc2['onAccept'],this['_onDiscard']=_0x35cfc2['onDiscard'],this['_onAttributesChange']=_0x35cfc2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x35cfc2['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x1b35b5=this;for(;_0x1b35b5['previous'];)_0x1b35b5=_0x1b35b5['previous'];return _0x1b35b5;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2a2b9b){this['_markerNames']['add'](_0x2a2b9b);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x2b0809=>this['_model']['markers']['get'](_0x2b0809))['filter'](_0xdfbe04=>_0xdfbe04);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x212abd=>{for(const _0x41960d of this['getMarkers']())_0x212abd['removeMarker'](_0x41960d);}),this['_markerNames']['clear']();}['removeMarker'](_0x56479c){this['_model']['change'](_0x60516=>{_0x60516['removeMarker'](_0x56479c);}),this['_markerNames']['delete'](_0x56479c);}['addRange'](_0x14c076){const _0x4a4e82='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4a4e82),this['_model']['change'](_0x42cc80=>{_0x42cc80['addMarker'](_0x4a4e82,{'range':_0x14c076,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x56b301){for(const _0x4b4805 of this['getRanges']())if(_0x4b4805['isIntersecting'](_0x56b301))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x4370aa=>_0x4370aa['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x3fac6e,_0x2bc0e6)=>[..._0x3fac6e,..._0x2bc0e6['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x41bb5c=this['getRanges']();if(0x1!=_0x41bb5c['length'])return null;const _0x387417=_0x41bb5c[0x0],_0x2d5599=_0x387417['start']['nodeAfter'],_0xbce3eb=_0x387417['end']['nodeBefore'];return _0x2d5599 instanceof it?_0x2d5599!=_0xbce3eb?null:_0x2d5599: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 _0x543327=[];let _0x587dc2=this['head'];for(;_0x587dc2;)_0x543327['push'](_0x587dc2),_0x587dc2=_0x587dc2['next'];return _0x543327;}setAttribute(_0x14c891,_0x246ae8){const _0x4689d1=at(this['attributes']);ut(_0x4689d1,_0x14c891,_0x246ae8),ct(_0x4689d1,this['attributes'])||(this['attributes']=_0x4689d1,this['_onAttributesChange'](_0x4689d1));}removeAttribute(_0x16fc17){const _0x269fb3=at(this['attributes']);dt(_0x269fb3,_0x16fc17),ct(_0x269fb3,this['attributes'])||(this['attributes']=_0x269fb3,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 _0x38eda5()['substr'](0x1,0x5);}};function Mt(_0x1da21c,_0x31439a,_0x236641){const _0xfdd982=_0x1da21c['t'],t=_0x1da21c['t'];switch(_0x31439a){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x236641);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x236641);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x236641);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x236641);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x236641);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',_0x236641);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x236641);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x236641);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x236641);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x236641);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x236641);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x236641);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x236641);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x236641);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x236641);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x236641);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x236641);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x236641);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x236641);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x236641);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x236641);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x236641);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x236641);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x236641);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x236641);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'},_0x236641);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x236641);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x236641);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x236641);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x236641);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x236641);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x236641);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x236641);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x236641);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x236641);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x236641);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x236641);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x236641);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x236641);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x236641);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x236641);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'},_0x236641);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x236641);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x236641);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'},_0x236641);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x236641);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'},_0x236641);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x236641);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x236641);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x236641);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x236641);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x236641);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'},_0x236641);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x236641);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0xfdd982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x236641);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xfdd982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x236641);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x236641);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'},_0x236641);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'},_0x236641);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'},_0x236641);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x31439a;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x35b059,_0x19eb52){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35b059,this['_locale']=_0x19eb52;}getDescriptions(_0x414b55){const _0x93c0e9=[],_0x1b85a6=new Set(),_0x4b603a=new Set();for(let _0x5a6036=0x0;_0x5a6036<_0x414b55['length'];_0x5a6036++){const _0x33f075=_0x414b55[_0x5a6036];if(!_0x33f075['isInContent'])continue;const _0x1372a3=this['_handleCustomCallbackDescription'](_0x33f075);if(_0x1372a3){if(null!=_0x33f075['subType']){if(_0x1b85a6['has'](_0x33f075['subType']))continue;_0x1b85a6['add'](_0x33f075['subType']);}_0x93c0e9['push'](_0x1372a3);}else{if('attribute'==_0x33f075['type']){const _0x3b5b4d=_0x33f075['data']['key'];if(_0x4b603a['has'](_0x3b5b4d))continue;_0x4b603a['add'](_0x33f075['data']['key']),'$elementName'==_0x3b5b4d?this['_handleRenameSuggestionDescription'](_0x93c0e9,_0x33f075):this['_handleAttributeSuggestionDescription'](_0x93c0e9,_0x33f075);continue;}'insertion'!=_0x33f075['type']&&'deletion'!=_0x33f075['type']||this['_handleInsertRemoveSuggestionDescription'](_0x93c0e9,_0x33f075,_0x414b55[_0x5a6036+0x1]);}}return this['_resolveDescriptionItems'](_0x93c0e9);}registerDescriptionCallback(_0x2d1710){this['_customCallbacks']['push'](_0x2d1710);}registerElementLabel(_0xee0579,_0x106e3f,_0x167687=_0x1f9ee9['normal']){'function'==typeof _0xee0579?_0x2a65fb(this['_itemLabelsCallbacks'],{'matchingCallback':_0xee0579,'label':_0x106e3f,'priority':_0x167687}):this['_itemLabels']['set'](_0xee0579,_0x106e3f);}registerAttributeLabel(_0x4043fa,_0xf9ab03){this['_attributeLabels']['set'](_0x4043fa,_0xf9ab03);}getItemLabel(_0x5a4a8f,_0x362255=0x1){let _0x1435d5;for(const _0x62f480 of this['_itemLabelsCallbacks'])if(_0x62f480['matchingCallback'](_0x5a4a8f)){_0x1435d5=_0x62f480['label'];break;}return _0x1435d5||(_0x1435d5=this['_itemLabels']['get'](_0x5a4a8f['name'])),_0x1435d5?_0x1435d5(_0x362255):0x1!==_0x362255?_0x362255+'\x20'+_0x5a4a8f['name']+'s':''+_0x5a4a8f['name'];}_addDescriptionItems(_0x2c1c6d,_0x12930d){const _0x1f828e=_0x12930d['getFirstRange']()['getWalker'](),_0x203961='insertion'==_0x12930d['type']?'add':'remove';for(const _0x249ebc of _0x1f828e){const _0x3b2832=_0x249ebc['item'],_0xa88760=_0x2c1c6d[_0x2c1c6d['length']-0x1];if(_0x3b2832['is']('$textProxy'))_0xa88760&&_0xa88760['type']['indexOf']('Container')>-0x1&&_0x2c1c6d['pop'](),_0xa88760&&'text'==_0xa88760['type']?_0xa88760[_0x203961]+=_0x3b2832['data']:_0x2c1c6d['push']({'type':'text','add':'add'==_0x203961?_0x3b2832['data']:'','remove':'remove'==_0x203961?_0x3b2832['data']:''});else{if(this['_schema']['isObject'](_0x3b2832)){const _0x4cf5b0=_0x3b2832;if(_0xa88760&&_0xa88760['type']['indexOf']('Container')>-0x1&&_0x2c1c6d['pop'](),'elementEnd'==_0x249ebc['type'])continue;_0xa88760&&_0xa88760['type']==_0x203961+'Object'&&_0xa88760['element']['name']==_0x4cf5b0['name']?_0xa88760['quantity']++:_0x2c1c6d['push']({'type':_0x203961+'Object','element':_0x4cf5b0,'quantity':0x1}),_0x1f828e['skip'](_0x36b56c=>!('elementEnd'==_0x36b56c['type']&&_0x36b56c['item']==_0x3b2832));}else{if(this['_schema']['checkChild'](_0x3b2832,'$text')||_0x3b2832['is']('element','softBreak')){const _0x36e9cd=_0x3b2832;if('add'==_0x203961&&'elementStart'==_0x249ebc['type']||'remove'==_0x203961&&'elementEnd'==_0x249ebc['type'])continue;if(_0xa88760&&-0x1==_0xa88760['type']['indexOf']('Container')){'text'==_0xa88760['type']&&(_0xa88760[_0x203961]+='\x0a');continue;}let _0x2bf25c;if(_0x2bf25c='add'==_0x203961?_0x36e9cd['nextSibling']&&!this['_schema']['isObject'](_0x36e9cd['nextSibling'])?_0x36e9cd['nextSibling']:null:_0x36e9cd['previousSibling']&&!this['_schema']['isObject'](_0x36e9cd['previousSibling'])?_0x36e9cd['previousSibling']:null,_0x36e9cd['isEmpty']||_0x2bf25c&&_0x2bf25c['isEmpty']){const _0x5465df=_0x2bf25c&&_0x2bf25c['isEmpty']?_0x2bf25c:_0x36e9cd;_0xa88760&&_0xa88760['type']==_0x203961+'EmptyContainer'&&_0xa88760['element']['name']==_0x5465df['name']?_0xa88760['quantity']++:_0x2c1c6d['push']({'type':_0x203961+'EmptyContainer','element':_0x5465df,'quantity':0x1});}else _0x2c1c6d['push']({'type':_0x203961+'Container','element':_0x36e9cd});}}}}}_resolveDescriptionItems(_0x424f7c){const _0x58a12e=this['_locale'],_0x1e3037=[],_0x219365=[],_0x59d700=[];for(const _0x3d85e4 of _0x424f7c)switch(_0x3d85e4['type']){case'text':if(_0x3d85e4['add']=_0x3d85e4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3d85e4['remove']=_0x3d85e4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3d85e4['add']&&''!=_0x3d85e4['remove']){_0x1e3037['push']({'type':'replace','content':Mt(_0x58a12e,'REPLACE_TEXT',['\x22'+_0x3d85e4['remove']+'\x22','\x22'+_0x3d85e4['add']+'\x22'])});continue;}if(null!=_0x3d85e4['add']['match'](/^ +$/)){_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Insert:*\x20%0',Mt(_0x58a12e,'ELEMENT_SPACE',_0x3d85e4['add']['length']))});continue;}if(null!=_0x3d85e4['remove']['match'](/^ +$/)){_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Remove:*\x20%0',Mt(_0x58a12e,'ELEMENT_SPACE',_0x3d85e4['remove']['length']))});continue;}if(''!=_0x3d85e4['add']){_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Insert:*\x20%0','\x22'+_0x3d85e4['add']+'\x22')});continue;}_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Remove:*\x20%0','\x22'+_0x3d85e4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Insert:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Remove:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'addContainer':_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Split:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'removeContainer':_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Merge:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'addFormat':_0x219365['push'](_0x3d85e4['key']);continue;case'removeFormat':_0x59d700['push'](_0x3d85e4['key']);continue;default:_0x1e3037['push'](_0x3d85e4);}if(_0x219365['length']){const _0x5b8ed5=_0x219365['map'](_0x299700=>this['_attributeLabels']['has'](_0x299700)?this['_attributeLabels']['get'](_0x299700):_0x299700)['join'](',\x20');_0x1e3037['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x5b8ed5)});}if(_0x59d700['length']){const _0x1bd5d7=_0x59d700['map'](_0x39fc3d=>this['_attributeLabels']['has'](_0x39fc3d)?this['_attributeLabels']['get'](_0x39fc3d):_0x39fc3d)['join'](',\x20');_0x1e3037['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x1bd5d7)});}return _0x1e3037;}_handleCustomCallbackDescription(_0x25165a){for(const _0x4705f2 of this['_customCallbacks']){const _0x477164=_0x4705f2(_0x25165a);if(_0x477164&&'type'in _0x477164)return _0x477164;}}_handleAttributeSuggestionDescription(_0x356610,_0x21b668){const _0x341f4f=_0x21b668['data'],_0x17dae9=void 0x0===_0x341f4f['newValue']?'removeFormat':'addFormat';_0x356610['push']({'type':_0x17dae9,'key':_0x341f4f['key']});}_handleRenameSuggestionDescription(_0x49d6cd,_0x299c31){_0x49d6cd['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x299c31['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x16271c,_0x57ab03,_0x2bfd0b){if(this['_addDescriptionItems'](_0x16271c,_0x57ab03),_0x2bfd0b&&_0x2bfd0b['getFirstRange']()&&!_0x57ab03['getFirstRange']()['end']['isEqual'](_0x2bfd0b['getFirstRange']()['start'])){const _0x51047e=_0x16271c[_0x16271c['length']-0x1],_0x626303='insertion'==_0x57ab03['type']?'add':'remove';_0x51047e&&'text'==_0x51047e['type']&&(_0x51047e[_0x626303]+='\x0a');}}},wt=class extends _0x5ba5d4{afterInit(){const _0x40dd49=this['editor'],_0x51ce24=_0x40dd49['plugins']['get']('TrackChangesEditing');_0x40dd49['commands']['get']('showAIAssistant')&&_0x51ce24['enableCommand']('showAIAssistant');}},Ft=class extends _0x5ba5d4{afterInit(){const _0xd13008=this['editor'],_0x18c0b7=_0xd13008['plugins']['get']('TrackChangesEditing');_0xd13008['commands']['get']('toggleAi')&&_0x18c0b7['enableCommand']('toggleAi');}},Bt=class extends _0x5ba5d4{afterInit(){const _0x2a16d5=this['editor'],_0x3b708e=_0x2a16d5['plugins']['get']('TrackChangesEditing');_0x2a16d5['commands']['get']('aiQuickAction')&&_0x3b708e['enableCommand']('aiQuickAction');}},vt=class extends _0x5ba5d4{afterInit(){const _0x34599c=this['editor'],_0x5a647e=_0x34599c['locale'];if(!_0x34599c['plugins']['has']('AlignmentEditing'))return;const _0x5700f7=_0x34599c['plugins']['get']('TrackChangesEditing');_0x5700f7['enableDefaultAttributesIntegration']('alignment'),_0x5700f7['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x5a647e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a8405=this['editor'],_0x2ce361=_0x3a8405['locale'];_0x3a8405['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c34cc=>{if('formatBlock'!=_0x3c34cc['type'])return;const {data:_0x368139}=_0x3c34cc;if(_0x368139&&'alignment'==_0x368139['commandName']){const _0x5c3726=_0x368139['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x2ce361,'*Format:*\x20%0',function(_0xbcd34a){switch(_0xbcd34a){case'left':return Mt(_0x2ce361,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x2ce361,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x2ce361,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x2ce361,'FORMAT_JUSTIFY_TEXT');}}(_0x5c3726))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x5ba5d4{afterInit(){const _0x2a5b65=this['editor'],_0x29c132=_0x2a5b65['plugins']['get']('TrackChangesEditing'),_0x129c14=_0x2a5b65['locale'];for(const _0x1db48e of Dt){if(!_0x2a5b65['plugins']['has'](_0x1db48e))continue;const _0x39bd19=_0x1db48e['slice'](0x0,-0x7)['toLowerCase'](),_0x4ce3dc='FORMAT_'+_0x39bd19['toUpperCase']();_0x29c132['enableDefaultAttributesIntegration'](_0x39bd19),_0x29c132['descriptionFactory']['registerAttributeLabel'](_0x39bd19,Mt(_0x129c14,_0x4ce3dc));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dec7b=this['editor'],_0x12ac5b=_0x2dec7b['locale'],_0x6ad738=_0x2dec7b['plugins']['get']('TrackChangesEditing');function _0x4f2373(_0x2d4086,_0x5951dd){_0x6ad738['descriptionFactory']['registerDescriptionCallback'](_0x100c57=>{if('formatInline'!=_0x100c57['type'])return;const {data:_0x36e08e}=_0x100c57;return _0x36e08e&&_0x36e08e['commandName']===_0x2d4086?_0x36e08e['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x12ac5b,'*Format:*\x20%0',_0x5951dd)}:{'type':'format','content':Mt(_0x12ac5b,'*Remove\x20format:*\x20%0',_0x5951dd)}:void 0x0;});}_0x4f2373('bold',Mt(_0x12ac5b,'FORMAT_BOLD')),_0x4f2373('italic',Mt(_0x12ac5b,'FORMAT_ITALIC')),_0x4f2373('underline',Mt(_0x12ac5b,'FORMAT_UNDERLINE')),_0x4f2373('code',Mt(_0x12ac5b,'FORMAT_CODE')),_0x4f2373('strikethrough',Mt(_0x12ac5b,'FORMAT_STRIKETHROUGH')),_0x4f2373('subscript',Mt(_0x12ac5b,'FORMAT_SUBSCRIPT')),_0x4f2373('superscript',Mt(_0x12ac5b,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x5ba5d4{afterInit(){const _0x4fa102=this['editor'],_0x3db31d=_0x4fa102['locale'];if(!_0x4fa102['plugins']['has']('BlockQuoteEditing'))return;const _0x2155e4=_0x4fa102['plugins']['get']('TrackChangesEditing'),_0x4d3878=this['editor']['commands']['get']('blockQuote');_0x2155e4['enableCommand']('blockQuote',(_0x2e3278,_0x424c5e={})=>{const _0x42e206=this['editor']['model']['document']['selection'],_0x2f39e9=_0x424c5e&&void 0x0!==_0x424c5e['forceValue']?_0x424c5e['forceValue']:!_0x4d3878['value'];let _0x4250e5=[];if(_0x2f39e9){const _0x104511=Array['from'](_0x42e206['getSelectedBlocks']())['filter'](_0x1fcf82=>xt(_0x1fcf82)||function(_0x39a09f,_0x33e2c6){const _0x4a5a56=_0x33e2c6['createContext'](_0x39a09f['parent']);return!!_0x33e2c6['checkChild'](_0x4a5a56,'blockQuote')&&!!_0x33e2c6['checkChild'](_0x4a5a56['push']('blockQuote'),_0x39a09f);}(_0x1fcf82,this['editor']['model']['schema']));_0x4250e5=bt(_0x104511,_0x4fa102['model']);}else{const _0x281b87=Array['from'](_0x42e206['getSelectedBlocks']())['filter'](_0x47b76e=>xt(_0x47b76e));_0x4250e5=bt(_0x281b87,_0x4fa102['model']);}_0x4fa102['model']['change'](()=>{for(const _0xf1104f of _0x4250e5)_0x2155e4['markBlockFormat'](_0xf1104f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f39e9}]});});}),_0x2155e4['descriptionFactory']['registerDescriptionCallback'](_0x504819=>{const {data:_0x4f8670}=_0x504819;if(_0x4f8670&&'blockQuote'==_0x4f8670['commandName']){const _0x48e403=Mt(_0x3db31d,'ELEMENT_BLOCK_QUOTE');return _0x4f8670['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3db31d,'*Set\x20format:*\x20%0',_0x48e403)}:{'type':'format','content':Mt(_0x3db31d,'*Remove\x20format:*\x20%0',_0x48e403)};}});}};function xt(_0x58d2c3){return'blockQuote'==_0x58d2c3['parent']['name'];}var Gt=class extends _0x5ba5d4{afterInit(){const _0x49d663=this['editor'],_0x295a4b=_0x49d663['locale'],_0x368038=_0x49d663['plugins']['get']('TrackChangesEditing');_0x49d663['plugins']['has']('BookmarkEditing')&&(_0x368038['enableCommand']('insertBookmark'),_0x368038['enableDefaultAttributesIntegration']('updateBookmark'),_0x368038['descriptionFactory']['registerDescriptionCallback'](_0x1fa394=>{if('insertion'!=_0x1fa394['type']&&'deletion'!=_0x1fa394['type']&&'attribute'!=_0x1fa394['type'])return;const _0xe7efad=_0x1fa394['getContainedElement']();if(null==_0xe7efad)return;if(!_0xe7efad['is']('element','bookmark'))return;const _0xb055a6=_0xe7efad['getAttribute']('bookmarkId');if('insertion'==_0x1fa394['type'])return{'type':'insertion','content':Mt(_0x295a4b,'*Insert:*\x20%0','\x22'+_0xb055a6+'\x22\x20'+Mt(_0x295a4b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1fa394['type'])return{'type':'deletion','content':Mt(_0x295a4b,'*Remove:*\x20%0','\x22'+_0xb055a6+'\x22\x20'+Mt(_0x295a4b,'ELEMENT_BOOKMARK'))};const {data:_0x41cb56}=_0x1fa394;return _0x41cb56&&'bookmarkId'==_0x41cb56['key']?{'type':'format','content':Mt(_0x295a4b,'*Set\x20bookmark:*\x20%0','\x22'+_0x41cb56['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x5ba5d4{afterInit(){const _0x4ccf75=this['editor'];_0x4ccf75['plugins']['has']('CaseChange')&&(_0x4ccf75['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4ccf75['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4ccf75['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x5ba5d4{afterInit(){const _0x4c0d50=this['editor'];_0x4c0d50['commands']['get']('ckbox')&&_0x4c0d50['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x5ba5d4{static get requires(){return[ht,gt];}constructor(_0x204c85){super(_0x204c85),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1a08f4=this['editor'],_0x24d47f=_0x1a08f4['plugins']['get']('ClipboardMarkersUtils'),_0x2c2050=_0x1a08f4['plugins']['get'](gt);_0x24d47f['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x2c2050['on']('outputTransformation',(_0x5ad985,_0x41494b)=>{const _0x53389e=this['_getSuggestionEntries'](_0x41494b);for(const [_0x286817,_0x298ebf]of _0x41494b['content']['markers']){const _0xec9ee3=rt['_fromRangeInDocumentFragment'](_0x298ebf,_0x1a08f4['model']);function _0x1dfb34(){_0xec9ee3['detach'](),_0x41494b['content']['markers']['delete'](_0x286817);}_0xec9ee3['on']('change:drop',_0x1dfb34),(_0x286817['startsWith']('suggestion:')||_0x286817['startsWith']('comment:'))&&_0xec9ee3['on']('change:range',()=>{_0xec9ee3['isCollapsed']&&_0x1dfb34();}),_0x41494b['content']['markers']['set'](_0x286817,_0xec9ee3);}const _0x414c55=_0x53389e['filter'](_0x3a1f83=>'deletion'===_0x3a1f83['meta']['type'])['map'](_0x3c6518=>_0x3c6518['modelRange']);if(this['_shouldSkipDeletions'](_0x414c55,_0x41494b['content']))return[..._0x53389e]['forEach'](_0x20dfef=>{_0x41494b['content']['markers']['get'](_0x20dfef['markerName'])['detach'](),_0x41494b['content']['markers']['delete'](_0x20dfef['markerName']);}),void this['_restoreRegularRanges'](_0x41494b['content']['markers']);[..._0x53389e]['forEach'](_0x4e9c7f=>{const _0x2131b2=_0x1a08f4['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x4e9c7f['meta']['type'],_0x4e9c7f['meta']['subType'],'accept'),{markerName:_0x1ff4ad,meta:_0x249047}=_0x4e9c7f;if(_0x41494b['content']['markers']['has'](_0x1ff4ad)){switch(_0x249047['type']){case'deletion':if('tableRow'===_0x249047['subType']||'tableColumn'===_0x249047['subType']){if(!_0x1a08f4['plugins']['has']('TableUtils'))break;const _0x15b30e=_0x1a08f4['plugins']['get']('TableUtils'),_0x45baec=_0x15b30e['getSelectionAffectedTableCells'](_0x1a08f4['model']['createSelection'](_0x41494b['content']['markers']['get'](_0x1ff4ad))),_0x38236e=_0x45baec[0x0]['findAncestor']('table');if('tableRow'===_0x249047['subType']){const {first:_0x3e2f1a,last:_0x29496a}=_0x15b30e['getRowIndexes'](_0x45baec);_0x15b30e['removeRows'](_0x38236e,{'at':_0x3e2f1a,'rows':_0x29496a-_0x3e2f1a+0x1});}else{const {first:_0x3f7e4f,last:_0x2313ab}=_0x15b30e['getColumnIndexes'](_0x45baec);_0x15b30e['removeColumns'](_0x38236e,{'at':_0x3f7e4f,'columns':_0x2313ab-_0x3f7e4f+0x1});}break;}_0x2131b2([_0x41494b['content']['markers']['get'](_0x1ff4ad)]);}_0x41494b['content']['markers']['has'](_0x1ff4ad)&&(_0x41494b['content']['markers']['get'](_0x1ff4ad)['detach'](),_0x41494b['content']['markers']['delete'](_0x1ff4ad));}}),this['_restoreRegularRanges'](_0x41494b['content']['markers']);});}_getSuggestionEntries(_0x515a7a){const _0x210ae7=_0x37d43e=>'dragstart'===_0x515a7a['method']?_0x37d43e['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x37d43e;return Array['from'](_0x515a7a['content']['markers'])['map'](([_0x3a0d94,_0x5f3fcf])=>({'markerName':_0x3a0d94,'modelRange':_0x5f3fcf,'meta':tt(_0x210ae7(_0x3a0d94))}))['filter'](({meta:_0x59d400})=>'suggestion'===_0x59d400['group']);}_shouldSkipDeletions(_0x111dab,_0x3fd0d2){if(!_0x111dab['length'])return!0x1;let _0xbb6087=[this['editor']['model']['createRangeIn'](_0x3fd0d2)];for(const _0x2bbd54 of _0x111dab)_0xbb6087=_0xbb6087['flatMap'](_0x32fcb1=>_0x32fcb1['getDifference'](_0x2bbd54));return!_0xbb6087['some'](_0x252efb=>this['editor']['model']['hasContent'](_0x252efb,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2776e8){[..._0x2776e8['keys']()]['forEach'](_0x1e91d2=>{const _0x4488a0=_0x2776e8['get'](_0x1e91d2);_0x4488a0['detach'](),_0x2776e8['set'](_0x1e91d2,_0x4488a0['toRange']());});}},Vt=class extends _0x5ba5d4{afterInit(){const _0x482f9f=this['editor'];if(!_0x482f9f['plugins']['has']('CodeBlock'))return;const _0x5aa429=_0x482f9f['plugins']['get']('TrackChangesEditing'),_0x3f6743=_0x482f9f['locale'],_0x3d407f=_0x482f9f['config']['get']('codeBlock')['languages'],_0x10f1f3=_0x482f9f['commands']['get']('codeBlock');_0x5aa429['enableCommand']('indentCodeBlock'),_0x5aa429['enableCommand']('outdentCodeBlock'),_0x5aa429['enableCommand']('codeBlock',(_0x5e10b5,_0x544d49={})=>{const _0xe3ed9a=_0x482f9f['model'],_0x2a20e5=_0x482f9f['model']['document']['selection'],_0x543b95=_0x544d49&&void 0x0!==_0x544d49['forceValue']?_0x544d49['forceValue']:!_0x10f1f3['value'];let _0x58d6cd;_0x544d49['language']||(_0x544d49['language']=_0x3d407f[0x0]['language']),_0x58d6cd=_0x543b95?Array['from'](_0x2a20e5['getSelectedBlocks']())['filter'](_0x1210e7=>{return jt(_0x1210e7)||(_0x5c4345=_0x1210e7,_0x14ebde=_0xe3ed9a['schema'],!_0x5c4345['is']('rootElement')&&!_0x14ebde['isLimit'](_0x5c4345)&&_0x14ebde['checkChild'](_0x5c4345['parent'],'codeBlock'));var _0x5c4345,_0x14ebde;}):Array['from'](_0x2a20e5['getSelectedBlocks']())['filter'](_0x136c8b=>jt(_0x136c8b));const _0x43706e=bt(_0x58d6cd,_0xe3ed9a);_0xe3ed9a['change'](()=>{for(const _0x11b36b of _0x43706e)_0x5aa429['markBlockFormat'](_0x11b36b,{'commandName':'codeBlock','commandParams':[{..._0x544d49,'forceValue':_0x543b95}],'formatGroupId':'blockName'});});}),(_0x5aa429['descriptionFactory']['registerElementLabel']('codeBlock',_0x54cf4d=>Mt(_0x3f6743,'ELEMENT_CODE_BLOCK',_0x54cf4d)),_0x5aa429['descriptionFactory']['registerDescriptionCallback'](_0x2ae23c=>{if('formatBlock'!=_0x2ae23c['type'])return;const _0x1b9188=_0x3f6743['t'],{data:_0xff480}=_0x2ae23c;if(!_0xff480||'codeBlock'!=_0xff480['commandName'])return;const _0xb5f338=_0xff480['commandParams'][0x0]['language'],_0x226538=_0x1b9188(_0x3d407f['find'](_0x4ba49b=>_0x4ba49b['language']===_0xb5f338)['label'])['toLowerCase']();return _0xff480['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3f6743,'*Set\x20format:*\x20%0',Mt(_0x3f6743,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x226538+')')}:{'type':'format','content':Mt(_0x3f6743,'*Remove\x20format:*\x20%0',Mt(_0x3f6743,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x2cc8ec){return'codeBlock'==_0x2cc8ec['name'];}var zt=class extends _0x5ba5d4{afterInit(){const _0x55429e=this['editor'];_0x55429e['plugins']['has']('CommentsEditing')&&_0x55429e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x5ba5d4{static get requires(){return[ft];}init(){const _0x400200=this['editor'],_0x4dec6b=_0x400200['plugins']['get']('TrackChangesEditing');_0x4dec6b['enableCommand']('delete');const _0x1cdc00=_0x400200['commands']['get']('deleteForward');_0x4dec6b['enableCommand']('deleteForward',(_0x3f8a07,_0x4a5d1c={})=>{const _0x3310f3=_0x400200['model']['createSelection'](_0x400200['model']['document']['selection']);_0x3310f3['isCollapsed']&&_0x400200['model']['modifySelection'](_0x3310f3,{'direction':'forward','unit':_0x4a5d1c['unit']});const _0x21f1ac=_0x3310f3['getFirstRange'](),_0x5cdedc=rt['fromRange'](_0x21f1ac);let _0x168ec6;_0x3f8a07(_0x4a5d1c),_0x168ec6='$graveyard'==_0x5cdedc['root']['rootName']?_0x400200['model']['createRange'](_0x21f1ac['start']):_0x400200['model']['createRange'](_0x5cdedc['start'],_0x5cdedc['end']),_0x5cdedc['detach'](),_0x400200['model']['enqueueChange'](_0x1cdc00['buffer']['batch'],_0x3d96c2=>{_0x1cdc00['buffer']['lock'](),_0x3d96c2['setSelection'](_0x3d96c2['createRange'](_0x168ec6['end'])),_0x1cdc00['buffer']['unlock']();});});}},Xt=class extends _0x5ba5d4{afterInit(){const _0x14493f=this['editor'];if(!_0x14493f['plugins']['has']('ListEditing'))return;const _0x33f1bb=_0x14493f['locale'],_0x4cb29d=_0x14493f['plugins']['get']('TrackChangesEditing'),_0x36bd93=_0x14493f['plugins']['has']('TodoListEditing'),_0x44f4ab=!!_0x14493f['config']['get']('list.multiBlock');function _0x5017b6(_0x2bd930){return{'type':'format','content':''+Mt(_0x33f1bb,'*Set\x20format:*\x20%0',_0x2bd930)};}function _0x25c9a0(_0x31bf29){return{'type':'format','content':''+Mt(_0x33f1bb,'*Remove\x20format:*\x20%0',_0x31bf29)};}_0x4cb29d['enableDefaultAttributesIntegration']('numberedList'),_0x4cb29d['enableDefaultAttributesIntegration']('bulletedList'),_0x4cb29d['enableDefaultAttributesIntegration']('customNumberedList'),_0x4cb29d['enableDefaultAttributesIntegration']('customBulletedList'),_0x4cb29d['enableDefaultAttributesIntegration']('indentList'),_0x4cb29d['enableDefaultAttributesIntegration']('outdentList'),_0x4cb29d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4cb29d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x44f4ab&&(_0x4cb29d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4cb29d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36bd93&&(_0x4cb29d['enableDefaultAttributesIntegration']('todoList'),_0x4cb29d['enableDefaultAttributesIntegration']('checkTodoList'),_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x15011c=>{const {data:_0x357fa7}=_0x15011c;if(_0x357fa7&&'todoListChecked'==_0x357fa7['key'])return{'type':'format','content':_0x357fa7['newValue']?Mt(_0x33f1bb,'*Check\x20item*'):Mt(_0x33f1bb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c3286=>{if(_0x4c3286['batch']['isUndo'])return!0x1;let _0x41e97a=!0x1;const _0x5c050b=_0x4cb29d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f4c28=>'todoListChecked'===_0x4cb29d['_getAttributeKey'](_0x3f4c28));for(const _0x35ee45 of _0x5c050b)'todo'!=_0x35ee45['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4cb29d['_findSuggestions'](_0x35ee45['getFirstRange'](),'attribute')['find'](_0x5844a5=>'listType'===_0x4cb29d['_getAttributeKey'](_0x5844a5['suggestion']))||(_0x4c3286['removeMarker'](_0x35ee45['getFirstMarker']()),_0x41e97a=!0x0));return _0x41e97a;})),_0x4cb29d['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x33f1bb,'FORMAT_INDENT'));const _0x19d15d={'type':'format','content':''};_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x517d0e=>{const {data:_0x56a44a}=_0x517d0e;if(!_0x56a44a||'listType'!=_0x56a44a['key'])return;let _0xc66436=_0x517d0e['head'];for(;_0xc66436;){if(_0xc66436['data']&&(('listStyle'==_0xc66436['data']['key']||'listMarkerStyle'==_0xc66436['data']['key'])&&(_0xc66436['data']['newValue']&&'default'!=_0xc66436['data']['newValue']||'default'!=_0xc66436['data']['oldValue']&&!_0x56a44a['newValue'])||!_0x44f4ab&&'$elementName'==_0xc66436['data']['key']))return _0x19d15d;_0xc66436=_0xc66436['next'];}if(null==_0x56a44a['newValue'])switch(_0x56a44a['oldValue']){case'bulleted':return _0x25c9a0(Mt(_0x33f1bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25c9a0(Mt(_0x33f1bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25c9a0(Mt(_0x33f1bb,'ELEMENT_TODO_LIST'));}switch(_0x56a44a['newValue']){case'bulleted':return _0x5017b6(Mt(_0x33f1bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5017b6(Mt(_0x33f1bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5017b6(Mt(_0x33f1bb,'ELEMENT_TODO_LIST'));}}),_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x4a5da5=>{const {data:_0x2b2e53}=_0x4a5da5;if(_0x2b2e53&&'listIndent'==_0x2b2e53['key'])return null==_0x2b2e53['newValue']||null==_0x2b2e53['oldValue']&&0x0==_0x2b2e53['newValue']?_0x19d15d:void 0x0;}),_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x3a8d41=>{if('attribute'!=_0x3a8d41['type'])return;const {data:_0xe71ae6}=_0x3a8d41;if(!_0xe71ae6||'listItemId'!=_0xe71ae6['key'])return;const _0x191ecc=qt(_0x3a8d41);return'newValue'==_0x191ecc?{'type':'format','content':Mt(_0x33f1bb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x191ecc?{'type':'format','content':Mt(_0x33f1bb,'*Split:*\x20list\x20item')}:_0x19d15d;}),_0x14493f['model']['document']['registerPostFixer'](_0x25beb2=>this['listItemIdFixer'](_0x25beb2)),_0x14493f['model']['document']['registerPostFixer'](_0x41684a=>this['noTrackChangesFixer'](_0x41684a)),_0x14493f['model']['document']['on']('change:data',(_0xdabefc,_0x3deb78)=>{if(_0x3deb78['isUndo']||!_0x3deb78['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x5b5aec){if(_0x5b5aec['batch']['isUndo']||!_0x5b5aec['batch']['isLocal'])return!0x1;let _0x636381=!0x1;const _0x383de8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18365e=>_0x18365e['data']&&'listItemId'==_0x18365e['data']['key'])['filter'](_0x4bc3d4=>_0x4bc3d4['data']['newValue']&&_0x4bc3d4['data']['oldValue']);for(const _0x4e51f9 of _0x383de8)qt(_0x4e51f9)||(_0x5b5aec['removeMarker'](_0x4e51f9['getFirstMarker']()),_0x636381=!0x0);return _0x636381;}['noTrackChangesFixer'](_0x29a27b){if(_0x29a27b['batch']['isUndo']||!_0x29a27b['batch']['isLocal'])return!0x1;const _0x53df33=this['editor']['model']['document']['differ'],_0x4b19b7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b19b7['trackChangesCommand']['value'])return!0x1;let _0x3a58fa=!0x1;const _0x2d67a4=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x4f567b=_0x53df33['getChanges']()['filter'](_0x21c305=>'attribute'==_0x21c305['type'])['filter'](_0x25aef2=>_0x2d67a4['has'](_0x25aef2['attributeKey']));if(0x0==_0x4f567b['length'])return _0x3a58fa;const _0x4822b6=new Set(_0x53df33['getMarkersToAdd']()['filter'](_0x4f089e=>{if(!_0x4f089e['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x28476f=tt(_0x4f089e['name'])['subType']['split']('|')[0x0];return _0x2d67a4['has'](_0x28476f);})['map'](_0x275b2e=>tt(_0x275b2e['name'])['id']));for(const _0x2da60e of _0x4f567b){const _0x583ab9=_0x4b19b7['_findSuggestions'](_0x2da60e['range'],'attribute')['filter'](_0x5972bc=>{if(_0x5972bc['meta']['isNextTo'])return!0x1;if(_0x4822b6['has'](_0x5972bc['suggestion']['id']))return!0x1;const _0x9f1791=_0x4b19b7['_getAttributeKey'](_0x5972bc['suggestion']);return _0x2d67a4['has'](_0x9f1791);})['map'](_0x2f17d5=>_0x2f17d5['suggestion']);if(_0x583ab9['length']){for(const _0x56bbb4 of _0x583ab9)_0x29a27b['removeMarker'](_0x56bbb4['getFirstMarker']());_0x3a58fa=!0x0;}}return _0x3a58fa;}['assureChains'](){const _0x3d24ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e7d60=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1d5b6e;const _0x331cb6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x524bc6=>{if(_0x524bc6['data']['oldRange']||!_0x524bc6['data']['newRange'])return null;if(!_0x524bc6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2f8b51}=tt(_0x524bc6['name']);if(!_0x3d24ce['hasSuggestion'](_0x2f8b51))return null;const _0x36b92b=_0x3d24ce['getSuggestion'](_0x2f8b51);return _0x4e7d60['includes'](_0x36b92b['data']['key']);})['map'](_0x1b7f21=>{const {id:_0x23d50a}=tt(_0x1b7f21['name']),_0x4612e3=_0x3d24ce['getSuggestion'](_0x23d50a);return _0x1d5b6e=_0x4612e3['attributes']['groupId'],_0x4612e3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x331cb6['size'])return;const _0x438014=_0x3d24ce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36753=>'attribute'==_0x36753['type']&&_0x36753['data']&&_0x4e7d60['includes'](_0x36753['data']['key'])&&_0x36753['attributes']['groupId']!=_0x1d5b6e)['map'](_0x14cdff=>({'listItem':_0x14cdff['getFirstRange']()['start']['nodeAfter'],'groupId':_0x14cdff['attributes']['groupId']})),_0x516aaa=new Set();for(const {groupId:_0x192440,listItem:_0x32523a}of _0x438014)_0x331cb6['has'](_0x32523a)&&_0x516aaa['add'](_0x192440);for(const _0x2771e5 of _0x3d24ce['getSuggestions']())_0x516aaa['has'](_0x2771e5['attributes']['groupId'])&&_0x2771e5['setAttribute']('groupId',_0x1d5b6e);}_supportLegacySuggestions(){const _0x4297a4=this['editor'],_0x686a30=_0x4297a4['locale'],_0x34f747=_0x4297a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x34f747['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3be4e1,_0x30a24b){const _0x3d30f8=[];for(let _0x3ecc7a of _0x3be4e1)_0x3ecc7a['start']['nodeAfter']===_0x3ecc7a['end']['parent']&&(_0x3ecc7a=_0x4297a4['model']['createRange'](_0x4297a4['model']['createPositionAt'](_0x3ecc7a['start']['nodeAfter'],0x0))),_0x3d30f8['push'](_0x3ecc7a);_0x4297a4['model']['change'](_0x4d1de9=>{const _0x3958d3=_0x4297a4['model']['document']['selection'],_0x1321c9=Array['from'](_0x3958d3['getRanges']())['map'](_0x58294d=>rt['fromRange'](_0x58294d));_0x4d1de9['setSelection'](_0x3d30f8),_0x4297a4['commands']['get'](_0x30a24b['commandName'])['refresh'](),_0x30a24b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4297a4['execute'](_0x30a24b['commandName'],..._0x30a24b['commandParams']),_0x4d1de9['setSelection'](_0x1321c9);for(const _0x476391 of _0x1321c9)_0x476391['detach']();});}),_0x34f747['descriptionFactory']['registerElementLabel'](function(_0x412d9b){const _0x99ca79=!_0x4297a4['model']['schema']['isObject'](_0x412d9b),_0x48f245=_0x412d9b['previousSibling'],_0x156e52=_0x412d9b['nextSibling'],_0x12d8cc=_0x412d9b['getAttribute']('listItemId'),_0x9e93cc=!_0x48f245||_0x48f245['getAttribute']('listItemId')!==_0x12d8cc,_0x121034=!_0x156e52||_0x156e52['getAttribute']('listItemId')!==_0x12d8cc;return _0x99ca79&&Boolean(_0x12d8cc)&&_0x9e93cc&&_0x121034;},_0x192744=>Mt(_0x686a30,'ELEMENT_LIST_ITEM',_0x192744));}_registerLegacyDescription(){const _0x564487=this['editor'],_0x41b03c=_0x564487['locale'];function _0x1bab73(_0x1728de){const _0x125d69=_0x564487['commands']['get']('bulletedList')['value'],_0x159b05=_0x564487['commands']['get']('numberedList')['value'];return'numberedList'===_0x1728de?_0x125d69:_0x159b05;}_0x564487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x19ec72){if('formatBlock'!=_0x19ec72['type'])return;const {data:_0x48bfd6}=_0x19ec72;if(!_0x48bfd6)return;let _0x51c135,_0xe63534,_0x70f975,_0x151d5e;switch(_0x48bfd6['commandName']){case'bulletedList':_0x70f975=_0x48bfd6['commandParams'][0x0]['forceValue'],_0x151d5e=_0x1bab73(_0x48bfd6['commandName']),_0x51c135=_0x70f975?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x151d5e&&_0x564487['config']['get']('list.multiBlock')||(_0x51c135='*Change\x20to:*\x20%0'),_0xe63534={'type':'format','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x70f975=_0x48bfd6['commandParams'][0x0]['forceValue'],_0x151d5e=_0x1bab73(_0x48bfd6['commandName']),_0x51c135=_0x70f975?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x151d5e&&_0x564487['config']['get']('list.multiBlock')||(_0x51c135='*Change\x20to:*\x20%0'),_0xe63534={'type':'format','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x51c135='*Indent:*\x20%0',_0xe63534={'type':'format','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x51c135=function(_0x15383d){const _0x3fcfc2=_0x15383d['getFirstRange']();let _0x360b81=_0x3fcfc2['start']['nodeAfter'];for(;_0x360b81&&_0x3fcfc2['containsItem'](_0x360b81);){if(_0x360b81['getAttribute']('listIndent')>0x0)return!0x1;_0x360b81=_0x360b81['nextSibling'];}return!0x0;}(_0x19ec72)?Mt(_0x41b03c,'*Format:*\x20remove\x20from\x20%0',Mt(_0x41b03c,function(_0x444208){return'ELEMENT_'+_0x444208['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x19ec72))):Mt(_0x41b03c,'*Outdent:*\x20%0',Mt(_0x41b03c,'ELEMENT_LIST_ITEM')),_0xe63534={'type':'format','content':_0x51c135};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x48bfd6['multipleBlocks']&&(_0x51c135='*Merge:*\x20%0',_0xe63534={'type':'deletion','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_LIST_ITEM'))});}return _0xe63534;});}};function qt(_0x485c29){let _0x5b3725=_0x485c29['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b3725;){const _0x18eb29=_0x5b3725['getAttribute']('listItemId');if(!_0x18eb29)return!0x1;if(_0x18eb29==_0x485c29['data']['newValue'])return'newValue';if(_0x18eb29==_0x485c29['data']['oldValue'])return'oldValue';_0x5b3725=_0x5b3725['previousSibling'];}return!0x1;}var Yt=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x444f97=this['editor']['config']['get']('list.properties'),_0x11f81c=this['editor']['plugins']['get']('TrackChangesEditing');_0x444f97['styles']&&_0x11f81c['enableDefaultAttributesIntegration']('listStyle'),_0x444f97['reversed']&&_0x11f81c['enableDefaultAttributesIntegration']('listReversed'),_0x444f97['startIndex']&&_0x11f81c['enableDefaultAttributesIntegration']('listStart');const _0x545a23={'type':'format','content':''};_0x11f81c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2fa01f=this['editor']['locale'];_0x11f81c['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x2fa01f,'FORMAT_LIST_REVERSED')),_0x11f81c['descriptionFactory']['registerDescriptionCallback'](_0x1d3372=>{const {data:_0x309c36}=_0x1d3372;if(_0x309c36&&'listReversed'==_0x309c36['key'])return null==_0x309c36['newValue']||0x0==_0x309c36['newValue']&&null==_0x309c36['oldValue']?_0x545a23:void 0x0;}),_0x11f81c['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x2fa01f,'FORMAT_LIST_START')),_0x11f81c['descriptionFactory']['registerDescriptionCallback'](_0x20a7e8=>{const {data:_0x4e2c9f}=_0x20a7e8;if(_0x4e2c9f&&'listStart'==_0x4e2c9f['key'])return null==_0x4e2c9f['newValue']||0x1==_0x4e2c9f['newValue']&&null==_0x4e2c9f['oldValue']?_0x545a23:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x558cd6=>{if(_0x558cd6['batch']['isUndo'])return!0x1;let _0x5d030f=!0x1;const _0x6327bd=_0x11f81c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x196593=>{const _0x3ef40d=_0x11f81c['_getAttributeKey'](_0x196593);return'listStart'==_0x3ef40d||'listReversed'==_0x3ef40d;});for(const _0x45d343 of _0x6327bd){const _0x1ca0fe=_0x45d343['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x1ca0fe&&'customNumbered'!=_0x1ca0fe&&(_0x11f81c['_findSuggestions'](_0x45d343['getFirstRange'](),'attribute')['find'](_0x4bde51=>'listType'==_0x11f81c['_getAttributeKey'](_0x4bde51['suggestion']))||(_0x558cd6['removeMarker'](_0x45d343['getFirstMarker']()),_0x5d030f=!0x0));}return _0x5d030f;}),this['_registerLegacyDescription']();}handleDescriptions(_0x4001f4){const _0x233117=this['editor']['locale'],{data:_0x24ecf8}=_0x4001f4,_0x167075={'type':'format','content':''};if(!_0x24ecf8||'listStyle'!=_0x24ecf8['key'])return;if(!_0x24ecf8['oldValue'])return'default'==_0x24ecf8['newValue']?_0x167075:{'type':'format','content':''+Mt(_0x233117,'*Set\x20format:*\x20%0',Mt(_0x233117,this['_getTranslationKeyForListStyle'](_0x24ecf8['newValue'])))};if(!_0x24ecf8['newValue']){if('default'==_0x24ecf8['oldValue'])return _0x167075;let _0x573da1=_0x4001f4['head'];for(;_0x573da1;){if(_0x573da1['data']&&'listType'==_0x573da1['data']['key']&&_0x573da1['data']['newValue'])return _0x167075;_0x573da1=_0x573da1['next'];}return{'type':'format','content':''+Mt(_0x233117,'*Remove\x20format:*\x20%0',Mt(_0x233117,this['_getTranslationKeyForListStyle'](_0x24ecf8['oldValue'])))};}if('default'!=_0x24ecf8['newValue'])return{'type':'format','content':''+Mt(_0x233117,'*Set\x20format:*\x20%0',Mt(_0x233117,this['_getTranslationKeyForListStyle'](_0x24ecf8['newValue'])))};let _0x156d99=_0x4001f4['head'];for(;_0x156d99;){if(_0x156d99['data']&&'listType'==_0x156d99['data']['key']&&_0x156d99['data']['newValue']&&_0x156d99['data']['oldValue'])return _0x167075;_0x156d99=_0x156d99['next'];}return{'type':'format','content':Mt(_0x233117,'*Set\x20format:*\x20%0',Mt(_0x233117,'ELEMENT_'+_0x4001f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x4ef468=this['editor'],_0x48bfe5=_0x4ef468['locale'];_0x4ef468['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58e27d=>{if('formatBlock'!=_0x58e27d['type'])return;const {data:_0x1b08eb}=_0x58e27d;if(!_0x1b08eb)return;let _0x31f68c,_0x11fcee;switch(_0x1b08eb['commandName']){case'listStyle':_0x31f68c='*Change\x20to:*\x20%0',_0x11fcee={'type':'format','content':Mt(_0x48bfe5,_0x31f68c,Mt(_0x48bfe5,this['_getTranslationKeyForListStyle'](_0x1b08eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31f68c=_0x1b08eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11fcee={'type':'format','content':Mt(_0x48bfe5,_0x31f68c)};break;case'listStart':_0x31f68c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11fcee={'type':'format','content':Mt(_0x48bfe5,_0x31f68c,_0x1b08eb['commandParams'][0x0]['startIndex'])};}return _0x11fcee;});}_getTranslationKeyForListStyle(_0x3c1a66){return'ELEMENT_'+(_0x20a6b6=_0x3c1a66,Qt['includes'](_0x20a6b6)?'bulleted':Zt['includes'](_0x20a6b6)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3c1a66['toUpperCase']()['replace'](/-/g,'_');var _0x20a6b6;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x5ba5d4{afterInit(){const _0x511bf8=this['editor'];_0x511bf8['commands']['get']('emoji')&&_0x511bf8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x5ba5d4{static get requires(){return[Et];}init(){const _0x46aa0c=this['editor'],_0x7b66c6=_0x46aa0c['plugins']['get']('TrackChangesEditing'),_0x17412a=_0x46aa0c['commands']['get']('enter');_0x7b66c6['enableCommand']('enter',()=>{_0x46aa0c['model']['change'](_0x4f7fb9=>{const _0x24f5fe=_0x46aa0c['model']['document']['selection'],_0x482d7b=_0x24f5fe['getFirstPosition'](),_0x18e58e=rt['fromRange'](_0x24f5fe['getFirstRange']());if(_0x17412a['enterBlock'](_0x4f7fb9)){const _0x15a7e5=_0x46aa0c['model']['createPositionAt'](_0x482d7b['parent']['nextSibling'],0x0),_0x1409d5=_0x4f7fb9['createRange'](_0x482d7b,_0x15a7e5);_0x7b66c6['markInsertion'](_0x1409d5);}else _0x4f7fb9['setSelection'](_0x4f7fb9['createRange'](_0x18e58e['end']));_0x18e58e['detach'](),_0x17412a['fire']('afterExecute',{'writer':_0x4f7fb9});});});}},ee=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5211bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5211bc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5211bc['enableCommand']('findNext'),_0x5211bc['enableCommand']('findPrevious'),_0x5211bc['enableCommand']('replace'),_0x5211bc['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a923c,_0x14a95e,_0xfccf92={}){const _0x256e15=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a923c(_0xee8a29=>{let _0x3f240b=('string'==typeof _0x14a95e?_0x256e15['findByTextCallback'](_0x14a95e,_0xfccf92):_0x14a95e)(_0xee8a29);Array['isArray'](_0x3f240b)&&(_0x3f240b={'results':_0x3f240b,'searchText':'string'==typeof _0x14a95e?_0x14a95e:''});const _0x1ff287=_0x3f240b['results']['filter'](_0x1a64cd=>!0x1===this['_isInDeletionRange'](_0x1a64cd,_0xee8a29['item']));return{..._0x3f240b,'results':_0x1ff287};},_0xfccf92);}_isInDeletionRange(_0x4c64c7,_0x1f978a){const _0x447f61=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f978a,_0x4c64c7['start']),this['editor']['model']['createPositionAt'](_0x1f978a,_0x4c64c7['end']));for(const _0x1e738d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x447f61['getIntersection'](_0x1e738d['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x5ba5d4{afterInit(){const _0x266e70=this['editor']['locale'],_0x55dccb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x43202d,commandName:_0x5cd3e1}of ne)this['editor']['plugins']['has'](_0x43202d)&&_0x55dccb['enableDefaultAttributesIntegration'](_0x5cd3e1);_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x266e70,'FORMAT_FONT_SIZE')),_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x266e70,'FORMAT_FONT_FAMILY')),_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x266e70,'FORMAT_FONT_COLOR')),_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x266e70,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x26eb09=this['editor'],_0x71afa4=_0x26eb09['locale'];_0x26eb09['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c7e64=>{const _0xaed55e=_0x71afa4['t'];if('formatInline'!=_0x3c7e64['type'])return;const {data:_0x53a2a2}=_0x3c7e64;if(null!=_0x53a2a2){if('fontSize'==_0x53a2a2['commandName']){const _0x32ccbf=_0x53a2a2['commandParams'][0x0]['value'];if(_0x32ccbf){const _0x17f9ff=_0xaed55e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d9735=>_0x4d9735['model']==_0x32ccbf)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20size:*\x20%0',_0x17f9ff)};}return{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53a2a2['commandName']){const _0x2ff85b=_0x53a2a2['commandParams'][0x0]['value'];return _0x2ff85b?{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20family:*\x20%0',_0x2ff85b)}:{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53a2a2['commandName']){const _0x3c7245=_0x53a2a2['commandParams'][0x0]['value'];if(_0x3c7245){const _0x1d5853=_0x582b43(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2080d7=>_0x2080d7['model']==_0x3c7245);let _0x588d24=_0x3c7245,_0x5deacf='';return _0x1d5853&&(_0x588d24=_0x1d5853['label'],_0x5deacf=_0xaed55e(_0x588d24)['toLowerCase']()),{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20color:*\x20%0',_0x5deacf)['trim'](),'color':{'value':_0x3c7245,'title':_0x5deacf||_0x588d24}};}return{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53a2a2['commandName']){const _0x4819a6=_0x53a2a2['commandParams'][0x0]['value'];if(_0x4819a6){const _0x1cab47=_0x582b43(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44b717=>_0x44b717['model']==_0x4819a6);let _0x1c5379=_0x4819a6,_0x24a89c='';return _0x1cab47&&(_0x1c5379=_0x1cab47['label'],_0x24a89c=_0xaed55e(_0x1c5379)['toLowerCase']()),{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20background\x20color:*\x20%0',_0x24a89c)['trim'](),'color':{'value':_0x4819a6,'title':_0x24a89c||_0x1c5379}};}return{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x5ba5d4{afterInit(){const {plugins:_0x3f85d8}=this['editor'];_0x3f85d8['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3f85d8['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x27b21b,plugins:_0x4c22bd,commands:_0x342f31}=this['editor'],_0x3f4382=_0x4c22bd['get']('TrackChangesEditing');_0x342f31['get']('footnotesStyle')&&_0x3f4382['enableDefaultAttributesIntegration']('footnotesStyle'),_0x342f31['get']('footnotesStart')&&_0x3f4382['enableDefaultAttributesIntegration']('footnotesStart'),_0x3f4382['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x27b21b,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3f4382['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x27b21b,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2e27b6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x15e9e3,commands:_0x4f5833}=this['editor'];_0x4f5833['get']('insertFootnote')&&_0x2e27b6['enableCommand']('insertFootnote'),_0x2e27b6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4d0984=>Mt(_0x15e9e3,'ELEMENT_FOOTNOTE_REF',_0x4d0984)),_0x2e27b6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4b3c74=>Mt(_0x15e9e3,'ELEMENT_FOOTNOTE_DEFINITION',_0x4b3c74)),_0x2e27b6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x323e5d=>Mt(_0x15e9e3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x323e5d));}},re=class extends _0x5ba5d4{afterInit(){const _0x401d2c=this['editor'],_0x359b59=_0x401d2c['plugins']['get']('TrackChangesEditing'),_0x70ac6a=_0x401d2c['commands']['get']('copyFormat'),_0x473ef6=_0x401d2c['commands']['get']('pasteFormat');_0x70ac6a&&_0x473ef6&&(_0x359b59['enableDefaultAttributesIntegration']('pasteFormat'),_0x359b59['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3adcc9=this['editor'],_0xdec51e=_0x3adcc9['locale'];_0x3adcc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51ebbf=>{if('formatBlock'!=_0x51ebbf['type']&&'formatInline'!=_0x51ebbf['type'])return;const {data:_0x5148f4}=_0x51ebbf;if(_0x5148f4&&'pasteFormat'===_0x5148f4['commandName']){const _0x3ccc79=[],_0x10d0f4=_0x5148f4['commandParams'][0x0];for(const [_0x3551a1,_0xe2bb4d]of Object['entries'](_0x10d0f4))_0x3ccc79['push'](oe(_0x3adcc9,_0x3551a1,_0xe2bb4d));return _0x3ccc79['length']?{'type':'format','content':Mt(_0xdec51e,'*Set\x20format\x20to:*\x20%0',_0x3ccc79['join'](',\x20'))}:{'type':'format','content':Mt(_0xdec51e,'*Remove\x20all\x20formatting*')};}});}};function oe(_0xea10c9,_0xff84d1,_0x4290cf){const _0x3afde9=_0xea10c9['locale']['t'],_0x8fb0d8=_0xff84d1['split'](/(?=[A-Z])/)['join']('\x20'),_0x55d24a=_0x3afde9(_0x8fb0d8['charAt'](0x0)['toUpperCase']()+_0x8fb0d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4290cf)return _0x55d24a;if('fontColor'===_0xff84d1||'fontBackgroundColor'===_0xff84d1){const _0xd842a3=_0x582b43(_0xea10c9['config']['get']('fontColor.colors'))['find'](_0x31f037=>_0x31f037['model']==_0x4290cf);return _0x55d24a+'\x20('+(_0xd842a3?_0x3afde9(_0xd842a3['label'])['toLowerCase']():_0x4290cf)+')';}if('fontSize'===_0xff84d1&&isNaN(parseFloat(_0x4290cf))){const _0x3a8281=_0xea10c9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xea10c9['config']['get']('fontSize.options'))['find'](_0x3ff9ce=>_0x3ff9ce['model']==_0x4290cf);return _0x55d24a+'\x20('+(_0x3a8281?_0x3afde9(_0x3a8281['title'])['toLowerCase']():_0x4290cf)+')';}return _0x55d24a+'\x20('+_0x4290cf+')';}var ae=class extends _0x5ba5d4{afterInit(){const _0x1d1308=this['editor'];if(!_0x1d1308['plugins']['has']('GeneralHtmlSupport')||!_0x1d1308['plugins']['has']('DataSchema'))return;const _0x5d6de4=_0x1d1308['plugins']['get']('TrackChangesEditing'),_0x5b8c30=_0x1d1308['plugins']['get']('GeneralHtmlSupport'),_0x230fc6=_0x1d1308['plugins']['get']('DataSchema'),_0x4037e7=_0x1d1308['locale'],_0x2ec7f3=new Set(['htmlContent']);for(const _0x3518ae of _0x230fc6['getDefinitionsForView'](/.*/,!0x1)){const _0x14cd86=_0x3518ae['view'],_0x4baea3=_0x5b8c30['getGhsAttributeNameForElement'](_0x14cd86);_0x2ec7f3['add'](_0x4baea3),!_0x3518ae['isInline']||_0x3518ae['isObject']||'appliesToBlock'in _0x3518ae&&_0x3518ae['appliesToBlock']||_0x5d6de4['descriptionFactory']['registerAttributeLabel'](_0x4baea3,_0x14cd86),_0x3518ae['model']['startsWith']('html')&&_0x5d6de4['descriptionFactory']['registerElementLabel'](_0x3518ae['model'],_0x26058e=>Mt(_0x4037e7,'ELEMENT_HTML_TAG',[_0x26058e,_0x14cd86]));}_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x4037e7,'FORMAT_RAW_HTML_CONTENT')),_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x4037e7,'FORMAT_HTML_LIST_ITEM')),_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x4037e7,'FORMAT_HTML_BULLETED_LIST')),_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x4037e7,'FORMAT_HTML_NUMBERED_LIST')),_0x5d6de4['descriptionFactory']['registerDescriptionCallback'](_0x1bae49=>{if('attribute'!==_0x1bae49['type'])return;const _0x553a9c=_0x1bae49['data'];if(!_0x553a9c||!_0x2ec7f3['has'](_0x553a9c['key']))return;if('htmlContent'===_0x553a9c['key'])return{'type':'format','content':Mt(_0x4037e7,'*Change\x20%0\x20content*',Mt(_0x4037e7,'ELEMENT_RAW_HTML'))};const {setItems:_0x460d70,removeItems:_0x17055d}=function(_0x2b0f9b,_0x18e17a,_0x2518dd){const _0x1f955b=[],_0x410cca=[],_0x2355c3=_0x2b0f9b['styles']??{},_0x4e1c1a=_0x18e17a['styles']??{};for(const _0x38e740 of new Set([...Object['keys'](_0x2355c3),...Object['keys'](_0x4e1c1a)]))_0x2355c3[_0x38e740]!==_0x4e1c1a[_0x38e740]&&(void 0x0===_0x4e1c1a[_0x38e740]?_0x410cca['push'](_0x38e740):_0x1f955b['push'](_0x38e740+'\x20('+_0x4e1c1a[_0x38e740]+')'));const _0x15a861=Mt(_0x2518dd,'FORMAT_HTML_CLASS'),_0x4d96e0=new Set(_0x2b0f9b['classes']??[]),_0x2c393c=new Set(_0x18e17a['classes']??[]),_0x55a071=[..._0x2c393c]['some'](_0x38849b=>!_0x4d96e0['has'](_0x38849b)),_0x319b40=[..._0x4d96e0]['some'](_0x28877b=>!_0x2c393c['has'](_0x28877b));_0x55a071&&_0x1f955b['push'](_0x15a861),_0x319b40&&_0x410cca['push'](_0x15a861);const _0x526be4=Mt(_0x2518dd,'FORMAT_HTML_ATTRIBUTE'),_0x4b506e=_0x2b0f9b['attributes']??{},_0x3b1e34=_0x18e17a['attributes']??{};let _0x4c014b=!0x1,_0x29e9f0=!0x1;for(const _0x262d9b of new Set([...Object['keys'](_0x4b506e),...Object['keys'](_0x3b1e34)]))_0x4b506e[_0x262d9b]!==_0x3b1e34[_0x262d9b]&&(void 0x0===_0x3b1e34[_0x262d9b]?_0x29e9f0=!0x0:_0x4c014b=!0x0);return _0x4c014b&&_0x1f955b['push'](_0x526be4),_0x29e9f0&&_0x410cca['push'](_0x526be4),{'setItems':_0x1f955b,'removeItems':_0x410cca};}(_0x553a9c['oldValue']??{},_0x553a9c['newValue']??{},_0x4037e7);if(!_0x460d70['length']&&!_0x17055d['length'])return;const _0x2033a5=[];return _0x460d70['length']&&_0x2033a5['push'](Mt(_0x4037e7,'*Set\x20format:*\x20%0',_0x460d70['join'](',\x20'))),_0x17055d['length']&&_0x2033a5['push'](Mt(_0x4037e7,'*Remove\x20format:*\x20%0',_0x17055d['join'](',\x20'))),{'type':'format','content':_0x2033a5['join']('\x0a')};});}},ce=class extends _0x5ba5d4{_headingOptions;afterInit(){const _0x3b1da5=this['editor'];if(!_0x3b1da5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b1da5['config']['get']('heading.options');const _0x3a3a72=_0x3b1da5['locale'],_0x46354f=_0x3b1da5['plugins']['get']('TrackChangesEditing');_0x46354f['enableDefaultAttributesIntegration']('heading');for(const _0x5553b3 of this['_headingOptions'])'paragraph'!=_0x5553b3['model']&&_0x46354f['descriptionFactory']['registerElementLabel'](_0x5553b3['model'],_0x5121a7=>{const _0x5a8027=this['_getHeadingLevel'](_0x5553b3['model']);return null!==_0x5a8027?_0x3da963(_0x5121a7,_0x5a8027):_0x25a711(_0x5121a7,_0x5553b3['title']);});function _0x3da963(_0x848e1f,_0x19849d){return Mt(_0x3a3a72,'ELEMENT_HEADING',[_0x848e1f,_0x19849d]);}function _0x25a711(_0x3b5f6f,_0x3722bd){return Mt(_0x3a3a72,'ELEMENT_HEADING_CUSTOM',[_0x3b5f6f,_0x3722bd]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x10a684=this['editor'],_0x43b9ca=_0x10a684['locale'];function _0x368a34(_0x1241fa,_0x54bb9e){return Mt(_0x43b9ca,'ELEMENT_HEADING_CUSTOM',[_0x1241fa,_0x54bb9e]);}_0x10a684['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf3b3a5=>{if('formatBlock'!=_0xf3b3a5['type'])return;const {data:_0x4c0dc7}=_0xf3b3a5;if(_0x4c0dc7&&'heading'==_0x4c0dc7['commandName']){const _0x34ba81=_0x4c0dc7['commandParams'][0x0]['value'],_0x20ce22=this['_getHeadingLevel'](_0x34ba81);if(null!==_0x20ce22)return{'type':'format','content':Mt(_0x43b9ca,'*Change\x20to:*\x20%0',(_0x1bdc56=0x1,_0x233e83=_0x20ce22,Mt(_0x43b9ca,'ELEMENT_HEADING',[_0x1bdc56,_0x233e83])))};const _0x5476f6=this['_headingOptions']['find'](_0x41307b=>_0x41307b['model']===_0x34ba81)['title'];return{'type':'format','content':Mt(_0x43b9ca,'*Change\x20to:*\x20%0',_0x368a34(0x1,_0x5476f6))};}var _0x1bdc56,_0x233e83;});}_getHeadingLevel(_0x9d627c){const _0xc05920=_0x9d627c['match'](/^heading(\d+)/);if(_0xc05920)return _0xc05920[0x1];const _0x5d73d9=this['_headingOptions']?.['find'](_0x320a93=>_0x320a93['model']==_0x9d627c);if(_0x5d73d9&&_0x5d73d9['view']){const _0x3fb48a=_0x5d73d9['view'],_0x1ff36a=(_0x3fb48a['name']??_0x3fb48a)['match'](/^h(\d+)/);if(_0x1ff36a)return _0x1ff36a[0x1];}return null;}},le=class extends _0x5ba5d4{afterInit(){const _0x1b1b85=this['editor'];if(!_0x1b1b85['plugins']['has']('HighlightEditing'))return;const _0x86608a=_0x1b1b85['plugins']['get']('TrackChangesEditing'),_0x2ec5da=_0x1b1b85['locale'];_0x86608a['enableDefaultAttributesIntegration']('highlight'),_0x86608a['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x2ec5da,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x377149=this['editor'],_0x518b69=_0x377149['locale'];_0x377149['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2628ae=>{if('formatInline'!=_0x2628ae['type'])return;const {data:_0x87854}=_0x2628ae;if(_0x87854&&'highlight'==_0x87854['commandName']){const _0x22b65b=_0x518b69['t'],_0x552ff9=_0x87854['commandParams'][0x0]['value'];if(_0x552ff9){const _0x5ef9ff=_0x377149['config']['get']('highlight.options')['find'](_0x4a81db=>_0x4a81db['model']==_0x552ff9),_0x2b3032=_0x22b65b(_0x5ef9ff['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x518b69,'*Set\x20highlight:*\x20%0',_0x2b3032),'color':{'value':_0x5ef9ff['color'],'title':_0x5ef9ff['title']}};}return{'type':'format','content':Mt(_0x518b69,'*Remove\x20highlight*',Mt(_0x518b69,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x5ba5d4{afterInit(){const _0x2f298d=this['editor'];if(!_0x2f298d['plugins']['has']('HorizontalLineEditing'))return;_0x2f298d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5da856=_0x2f298d['plugins']['get']('TrackChangesEditing'),_0x4cd3da=_0x2f298d['locale'];_0x5da856['descriptionFactory']['registerElementLabel']('horizontalLine',_0x29fc66=>Mt(_0x4cd3da,'ELEMENT_HORIZONTAL_LINE',_0x29fc66));}},de=class extends _0x5ba5d4{afterInit(){const _0x5c394a=this['editor'];if(!_0x5c394a['plugins']['has']('HtmlEmbed'))return;const _0xf36d39=_0x5c394a['plugins']['get']('TrackChangesEditing'),_0x17cf91=_0x5c394a['locale'];_0xf36d39['descriptionFactory']['registerElementLabel']('rawHtml',_0x4ea93e=>Mt(_0x17cf91,'ELEMENT_HTML_EMBED',_0x4ea93e)),_0xf36d39['enableDefaultAttributesIntegration']('htmlEmbed'),_0xf36d39['descriptionFactory']['registerDescriptionCallback'](_0x47994e=>{if('attribute'!=_0x47994e['type'])return;const {data:_0x5dafb2}=_0x47994e;if(_0x5dafb2&&'value'==_0x5dafb2['key']&&_0x47994e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x213434=Mt(_0x17cf91,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x17cf91,'*Change\x20%0\x20content*',_0x213434)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1fa7ac=this['editor'],_0x1a5f69=_0x1fa7ac['locale'];_0x1fa7ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8fb6=>{if('formatBlock'!=_0x2a8fb6['type'])return;const {data:_0x17260d}=_0x2a8fb6;if(_0x17260d&&'htmlEmbed'==_0x17260d['commandName']){const _0x19fdbe=Mt(_0x1a5f69,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1a5f69,'*Change\x20%0\x20content*',_0x19fdbe)};}});}},he=class extends _0x5ba5d4{afterInit(){const _0x4a72c6=this['editor'];if(!_0x4a72c6['plugins']['has']('ImageEditing'))return;const _0x366a9a=_0x4a72c6['plugins']['get']('TrackChangesEditing'),_0xfb7097=_0x4a72c6['plugins']['get']('ImageUtils'),_0x2f3458=_0x4a72c6['locale'];_0x366a9a['enableCommand']('insertImage'),_0x366a9a['descriptionFactory']['registerElementLabel']('imageBlock',_0x2a8925=>Mt(_0x2f3458,'ELEMENT_IMAGE',_0x2a8925)),_0x366a9a['descriptionFactory']['registerElementLabel']('imageInline',_0x42a1f8=>Mt(_0x2f3458,'ELEMENT_INLINE_IMAGE',_0x42a1f8)),_0x366a9a['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x2f3458,'ELEMENT_CAPTION')),_0x4a72c6['plugins']['has']('ImageUploadEditing')&&_0x366a9a['enableCommand']('uploadImage'),_0x4a72c6['plugins']['has']('ImageBlockEditing')&&_0x4a72c6['plugins']['has']('ImageInlineEditing')&&(_0x366a9a['enableCommand']('imageTypeInline',(_0x5e3c28,_0x5f0acb)=>{const _0x4bf2a9=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']);_0x4a72c6['model']['change'](()=>{_0x366a9a['markBlockFormat'](_0x4bf2a9,{'commandName':'imageTypeInline','commandParams':[_0x5f0acb]},[],'convertBlockImageToInline');});}),_0x366a9a['enableCommand']('imageTypeBlock',(_0x37ab50,_0x2162e4)=>{_0x4a72c6['model']['change'](_0x587e39=>{let _0x2ca463=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x43c6f2=_0x587e39['createRangeOn'](_0x2ca463);const _0x1b1cee=st['fromPosition'](_0x43c6f2['start'],'toPrevious'),_0x3246bc=st['fromPosition'](_0x43c6f2['end'],'toNext');_0x366a9a['forceDefaultExecution'](()=>_0x37ab50(_0x2162e4)),_0x2ca463=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x43c6f2=_0x587e39['createRangeOn'](_0x2ca463);const _0x563cc7=_0x587e39['createRange'](_0x1b1cee,_0x3246bc);_0x1b1cee['detach'](),_0x3246bc['detach'](),_0x366a9a['markBlockFormat'](_0x2ca463,{'commandName':'imageTypeInline','commandParams':[_0x2162e4]},[],'convertInlineImageToBlock'),_0x563cc7['start']['isBefore'](_0x43c6f2['start'])&&_0x366a9a['markInsertion'](_0x587e39['createRange'](_0x563cc7['start'],_0x43c6f2['start']),'convertInlineImageToBlock'),_0x43c6f2['end']['isBefore'](_0x563cc7['end'])&&_0x366a9a['markInsertion'](_0x587e39['createRange'](_0x43c6f2['end'],_0x563cc7['end']),'convertInlineImageToBlock');});}),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x366a9a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x518bde])=>{const _0x3f62f2=_0x366a9a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14f46d=_0x518bde['start'],_0x1a3e74=_0x518bde['end'];const _0x25f922=_0x4a72c6['model']['schema']['getNearestSelectionRange'](_0x14f46d,'backward'),_0x544d36=_0x4a72c6['model']['schema']['getNearestSelectionRange'](_0x1a3e74,'forward');_0x25f922['isCollapsed']&&(_0x14f46d=_0x25f922['start']),_0x544d36['isCollapsed']&&(_0x1a3e74=_0x544d36['end']),_0x3f62f2([_0x4a72c6['model']['createRange'](_0x14f46d,_0x1a3e74)]);}),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x388a51),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x388a51)),_0x4a72c6['plugins']['has']('ImageCaptionEditing')&&(_0x366a9a['enableCommand']('toggleImageCaption',(_0x265a34,_0x1cc4ae)=>{const _0x596ae5=_0x4a72c6['plugins']['get']('ImageCaptionUtils');let _0x51e707=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x15c621=_0x596ae5['getCaptionFromImageModelElement'](_0x51e707);_0x4a72c6['model']['change'](()=>{if(_0x15c621)return void _0x366a9a['markDeletion'](_0x4a72c6['model']['createRangeOn'](_0x15c621));const _0x2fd4e8=_0xfb7097['isBlockImage'](_0x51e707);_0x265a34(_0x1cc4ae),_0x51e707=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x15c621=_0x596ae5['getCaptionFromImageModelElement'](_0x51e707),_0x366a9a['markInsertion'](_0x4a72c6['model']['createRangeOn'](_0x15c621),_0x2fd4e8?null:'imageCaption');});}),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x388a51));const _0x126744=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f6e68(_0x58e047,_0x242b76){const _0x1639ca=_0x126744['findIndex'](({type:_0x35a763,subType:_0x2e1637})=>_0x58e047['type']==_0x35a763&&_0x58e047['subType']==_0x2e1637),_0x378ba4=_0x126744['findIndex'](({type:_0x189e2f,subType:_0x4d18a1})=>_0x242b76['type']==_0x189e2f&&_0x242b76['subType']==_0x4d18a1);if(_0x1639ca<0x0||_0x378ba4<0x0)return!0x1;const _0x3d61d3=_0x58e047['getFirstRange'](),_0x14d733=_0x242b76['getFirstRange']();if((0x0==_0x1639ca||0x1==_0x1639ca)&&0x2==_0x378ba4&&_0x3d61d3['isIntersecting'](_0x14d733))return!0x0;if(0x2==_0x1639ca&&0x3==_0x378ba4){const _0x370e67=_0x366a9a['_findSuggestions'](_0x3d61d3,'insertion')['filter'](({suggestion:_0x2978d3,meta:_0x1b3247})=>_0x1b3247['isOwn']&&'convertInlineImageToBlock'==_0x2978d3['subType']);if(_0x370e67['length']>0x1&&_0x14d733['end']['isEqual'](_0x3d61d3['start']))return!0x0;if(0x1==_0x370e67['length']&&(_0x3d61d3['start']['isEqual'](_0x14d733['end'])||_0x3d61d3['end']['isEqual'](_0x14d733['start'])))return!0x0;}if(0x3==_0x1639ca&&0x3==_0x378ba4&&_0x3d61d3['start']['isBefore'](_0x14d733['start'])){const _0x36e2f8=_0x3d61d3['end']['nodeAfter'],_0x3c59d1=_0x14d733['start']['nodeBefore'];return _0xfb7097['isBlockImage'](_0x36e2f8)&&_0x36e2f8===_0x3c59d1;}return!0x1;}function _0x388a51(_0x54dfc4,_0x585169){return _0x4f6e68(_0x54dfc4,_0x585169)?[_0x54dfc4,_0x585169]:_0x4f6e68(_0x585169,_0x54dfc4)?[_0x585169,_0x54dfc4]:null;}_0x4a72c6['plugins']['has']('ImageResize')&&(_0x366a9a['enableDefaultAttributesIntegration']('resizeImage'),_0x366a9a['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x2f3458,'FORMAT_IMAGE_SIZE'))),_0x4a72c6['plugins']['has']('ImageTextAlternativeEditing')&&_0x366a9a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4a72c6['plugins']['has']('PictureEditing')&&_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x918331=>{if('attribute'!=_0x918331['type'])return;const {data:_0x392864}=_0x918331;return _0x392864&&'sources'==_0x392864['key']?{'type':'format','content':''}:void 0x0;}),_0x4a72c6['plugins']['has']('ImageSizeAttributes')&&_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x437b85=>{if('attribute'!=_0x437b85['type'])return;const {data:_0x5cb011}=_0x437b85;return!_0x5cb011||'width'!=_0x5cb011['key']&&'height'!=_0x5cb011['key']?void 0x0:{'type':'format','content':''};}),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x9d5244=>{if(_0x126744['find'](({type:_0x11683b,subType:_0x15d48e})=>_0x9d5244['type']==_0x11683b&&_0x9d5244['subType']==_0x15d48e))return _0x9d5244['previous']?{}:void 0x0;}),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x45b16b=>{if('insertion'==_0x45b16b['type']||'deletion'==_0x45b16b['type']){const _0xa1b623=_0x45b16b['getContainedElement']();if(_0xa1b623&&_0xa1b623['is']('element','caption'))return{'type':'insertion'==_0x45b16b['type']?'addObject':'removeObject','element':_0xa1b623,'quantity':0x1};}}),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x33d4e9=>'formatBlock'==_0x33d4e9['type']&&'convertInlineImageToBlock'==_0x33d4e9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33d4e9['type']&&'convertBlockImageToInline'==_0x33d4e9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x4087ee=>{if('attribute'!=_0x4087ee['type'])return;const {data:_0x3bec52}=_0x4087ee;if(!_0x3bec52||'alt'!=_0x3bec52['key'])return;const _0x34fd55=_0x3bec52['newValue'];return _0x34fd55?{'type':'format','content':Mt(_0x2f3458,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34fd55+'\x22')}:{'type':'format','content':Mt(_0x2f3458,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4d1840=this['editor'],_0x121eb7=_0x4d1840['locale'];_0x4d1840['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23b31a=>{if('formatBlock'!=_0x23b31a['type']&&'formatInline'!=_0x23b31a['type'])return;const {data:_0xa0d067}=_0x23b31a;if(_0xa0d067){if('imageTextAlternative'==_0xa0d067['commandName']){const _0x2a70f8=_0xa0d067['commandParams'][0x0]['newValue'];return _0x2a70f8?{'type':'format','content':Mt(_0x121eb7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a70f8+'\x22')}:{'type':'format','content':Mt(_0x121eb7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xa0d067['commandName']){const _0x55bebe=_0xa0d067['commandParams'][0x0]['width'];return _0x55bebe?{'type':'format','content':Mt(_0x121eb7,'*Set\x20image\x20width:*\x20%0',_0x55bebe)}:{'type':'format','content':Mt(_0x121eb7,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3bed21=this['editor']['locale'],_0x1b17cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b17cf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b17cf['descriptionFactory']['registerDescriptionCallback'](_0x523fc3=>{if('attribute'!=_0x523fc3['type'])return;const {data:_0x2b91e5}=_0x523fc3;return _0x2b91e5&&'src'==_0x2b91e5['key']?_0x2b91e5['newValue']&&_0x2b91e5['oldValue']?{'type':'format','content':Mt(_0x3bed21,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4f45e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f45e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4f45e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f45e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4f45e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x415211=this['editor'],_0x11ef74=_0x415211['locale'];_0x415211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x927e41=>{if('formatBlock'!=_0x927e41['type']&&'formatInline'!=_0x927e41['type'])return;const {data:_0x1d9428}=_0x927e41;return _0x1d9428&&'replaceImageSource'==_0x1d9428['commandName']?{'type':'format','content':Mt(_0x11ef74,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x5ba5d4{afterInit(){const _0x59aa2d=this['editor'];if(!_0x59aa2d['plugins']['has']('ImageStyleEditing'))return;const _0x3ddedf=_0x59aa2d['plugins']['get']('TrackChangesEditing'),_0x53819c=_0x59aa2d['plugins']['get']('ImageUtils'),_0x5c3661={};_0x3ddedf['enableCommand']('imageStyle',(_0x1faac1,_0x19d579)=>{const _0x430f46=_0x59aa2d['plugins']['get']('Users')['me'],_0x21a35e=_0x59aa2d['commands']['get']('imageStyle');let _0x194103=_0x53819c['getClosestSelectedImageElement'](_0x59aa2d['model']['document']['selection']),_0x5370db=_0x59aa2d['model']['createRangeOn'](_0x194103),_0x3a7068=_0x21a35e['value'];if(_0x3a7068==_0x19d579['value'])return;if(_0x19d579['value']&&_0x53819c['isInlineImage'](_0x194103)&&!_0x21a35e['isStyleEnabled'](_0x19d579['value']))return;const _0x3575f6={'commandName':'imageStyle','commandParams':[_0x19d579],'formatGroupId':_0x38eda5()};_0x59aa2d['model']['change'](()=>{if(_0x3ddedf['getSuggestions']()['filter'](_0x1fbc06=>_0x1fbc06['isInContent']&&_0x430f46==_0x1fbc06['author']&&('formatBlock'==_0x1fbc06['type']||'formatInline'==_0x1fbc06['type'])&&('imageStylePreApply'==_0x1fbc06['subType']||'imageStylePostApply'==_0x1fbc06['subType'])&&_0x1fbc06['getFirstRange']()['isEqual'](_0x5370db))['forEach'](_0x4de01c=>_0x3ddedf['discardSuggestion'](_0x4de01c['head'])),_0x194103=_0x53819c['getClosestSelectedImageElement'](_0x59aa2d['model']['document']['selection']),_0x5370db=_0x59aa2d['model']['createRangeOn'](_0x194103),_0x21a35e['refresh'](),_0x59aa2d['commands']['get']('imageTypeInline')['refresh'](),_0x59aa2d['commands']['get']('imageTypeBlock')['refresh'](),_0x3a7068=_0x21a35e['value'],_0x3a7068!=_0x19d579['value'])return _0x53819c['isInlineImage'](_0x194103)&&_0x21a35e['shouldConvertImageType'](_0x19d579['value'],_0x194103)?(_0x1faac1({..._0x19d579,'setImageSizes':!0x1}),_0x194103=_0x53819c['getClosestSelectedImageElement'](_0x59aa2d['model']['document']['selection']),void _0x3ddedf['markBlockFormat'](_0x194103,{..._0x3575f6,'commandReversedParams':[{'value':_0x3a7068||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x53819c['isBlockImage'](_0x194103)?_0x3ddedf['markBlockFormat'](_0x194103,_0x3575f6,[],'imageStylePostApply'):_0x3ddedf['markInlineFormat'](_0x5370db,_0x3575f6,'imageStylePostApply'));});});for(const _0x5e0c70 of _0x59aa2d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c3661[_0x5e0c70['name']]=_0x5e0c70['title']['toLowerCase']();_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3cef9f])=>{_0x53819c['setImageNaturalSizeAttributes'](_0x3cef9f['getContainedElement']());}),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x432202,_0x2ec5c3)=>{_0x3ddedf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x432202,{'commandName':_0x2ec5c3['commandName'],'commandParams':_0x2ec5c3['commandReversedParams']});}),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3112d2,_0x2a4a13){return _0x29dcb0(_0x3112d2,_0x2a4a13)?[_0x3112d2,_0x2a4a13]:_0x29dcb0(_0x2a4a13,_0x3112d2)?[_0x2a4a13,_0x3112d2]:null;});const _0x45aa04=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29dcb0(_0x268bc5,_0x257f59){const _0x13d027=_0x45aa04['findIndex'](({type:_0x763599,subType:_0x1572d6})=>_0x268bc5['type']==_0x763599&&_0x268bc5['subType']==_0x1572d6),_0x36725c=_0x45aa04['findIndex'](({type:_0x1033ed,subType:_0x538e56})=>_0x257f59['type']==_0x1033ed&&_0x257f59['subType']==_0x538e56);if(_0x13d027<0x0||_0x36725c<0x0)return!0x1;const _0x569cd6=_0x268bc5['getFirstRange'](),_0x35dba7=_0x257f59['getFirstRange']();if((0x0==_0x13d027||0x1==_0x13d027)&&0x2==_0x36725c&&_0x569cd6['isIntersecting'](_0x35dba7))return!0x0;if(0x2==_0x13d027&&0x3==_0x36725c){const _0x2db0ef=_0x3ddedf['_findSuggestions'](_0x569cd6,'insertion')['filter'](({suggestion:_0x2240da,meta:_0x47298a})=>_0x47298a['isOwn']&&'convertInlineImageToBlock'==_0x2240da['subType']);if(_0x2db0ef['length']>0x1&&_0x35dba7['end']['isEqual'](_0x569cd6['start']))return!0x0;if(0x1==_0x2db0ef['length']&&(_0x569cd6['start']['isEqual'](_0x35dba7['end'])||_0x569cd6['end']['isEqual'](_0x35dba7['start'])))return!0x0;}if(0x3==_0x13d027&&0x3==_0x36725c&&_0x569cd6['start']['isBefore'](_0x35dba7['start'])){const _0x4ac064=_0x569cd6['end']['nodeAfter'],_0xfa60ea=_0x35dba7['start']['nodeBefore'];return _0x53819c['isBlockImage'](_0x4ac064)&&_0x4ac064===_0xfa60ea;}return!0x1;}_0x59aa2d['model']['document']['registerPostFixer'](()=>{let _0x4f0b2a=!0x1;const _0x2033f9=Array['from'](_0x59aa2d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15f901,data:_0x294ee8}of _0x2033f9){const {group:_0x52afba,type:_0x140076,subType:_0x1fbe03,id:_0x2b6605}=tt(_0x15f901);if('suggestion'==_0x52afba&&_0x3ddedf['hasSuggestion'](_0x2b6605)){if('formatBlock'==_0x140076&&('imageStylePreApply'==_0x1fbe03||'imageStylePostApply'==_0x1fbe03)){const _0x2aaf89=_0x3ddedf['getSuggestion'](_0x2b6605);if(_0x294ee8['newRange']){const _0x509647=_0x2aaf89['getFirstRange']()['getContainedElement']();if(_0x53819c['isBlockImage'](_0x509647))continue;_0x3ddedf['discardSuggestion'](_0x2aaf89),_0x4f0b2a=!0x0;}}if('insertion'==_0x140076&&'imageCaption'==_0x1fbe03&&!_0x294ee8['newRange']){const _0x2ab515=_0x3ddedf['getSuggestion'](_0x2b6605);_0x2ab515['next']&&_0x2ab515['next']['isInContent']&&(_0x3ddedf['discardSuggestion'](_0x2ab515['next']),_0x4f0b2a=!0x0);}}}return _0x4f0b2a;}),this['_registerLegacyDescription'](_0x5c3661);}_registerLegacyDescription(_0x5179cc){const _0x5bc394=this['editor'],_0x656008=_0x5bc394['locale'];_0x5bc394['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26d21a=>{if('formatBlock'!=_0x26d21a['type']&&'formatInline'!=_0x26d21a['type'])return;const {data:_0x1dfd3c}=_0x26d21a;if(!_0x1dfd3c||'imageStyle'!=_0x1dfd3c['commandName'])return;const _0x54ea69=_0x1dfd3c['commandParams'][0x0]['value'];return _0x1e2f8d('side'===_0x54ea69?Mt(_0x656008,'FORMAT_SIDE_IMAGE'):_0x5179cc[_0x54ea69]||_0x54ea69);function _0x1e2f8d(_0x47b39a){return{'type':'format','content':Mt(_0x656008,'*Format:*\x20%0',_0x47b39a)};}});}},me=class extends _0x5ba5d4{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x45b2f9){super(_0x45b2f9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x2bbbdb=this['editor'],_0xa73dcc=_0x2bbbdb['commands']['get']('importWord'),_0x5a9d95=_0x2bbbdb['commands']['get']('trackChanges');_0xa73dcc&&(_0xa73dcc['on']('execute',(_0x3f4eda,[,_0x8c1965])=>{this['_trackChangesValueDuringImport']=_0x5a9d95['value'],_0x8c1965['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xa73dcc,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xa73dcc,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5a9d95['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bbbdb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x396cbb,_0x22d87d){const {suggestions:_0x2e77a6}=_0x22d87d,_0xa1ec5c=this['editor']['commands']['get']('trackChanges'),_0x1f1904=_0xa1ec5c['value'];this['_trackChangesValueDuringImport']!==_0x1f1904&&(_0xa1ec5c['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e77a6&&_0x2e77a6['forEach'](({id:_0xaedcd9,type:_0x15f3e4,author:_0x1957bb,created_at:_0x2df07c})=>{const _0x28de40={'id':_0xaedcd9,'type':_0x15f3e4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1957bb,'createdAt':_0x2df07c?new Date(_0x2df07c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x28de40);});}},Ee=class extends _0x5ba5d4{afterInit(){const _0x59059f=this['editor'],_0x377850=_0x59059f['plugins']['get']('TrackChangesEditing');if(_0x59059f['plugins']['has']('IndentEditing')&&(_0x377850['enableCommand']('indent'),_0x377850['enableCommand']('outdent')),_0x59059f['plugins']['has']('IndentBlock')){for(const _0xb7ab4d of['indentBlock','outdentBlock'])_0x377850['enableDefaultAttributesIntegration'](_0xb7ab4d);if(_0x59059f['plugins']['has']('ListEditing')){for(const _0x12408e of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x377850['enableDefaultAttributesIntegration'](_0x12408e);}}const _0x2d4c67=_0x59059f['locale'];_0x377850['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x2d4c67,'FORMAT_INDENT')),_0x377850['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x2d4c67,'FORMAT_INDENT')),_0x377850['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x2d4c67,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e4017=this['editor'],_0x1dd682=_0x2e4017['locale'],_0xdd1cf6=_0x2e4017['plugins']['get']('TrackChangesEditing');_0xdd1cf6['descriptionFactory']['registerDescriptionCallback'](_0x2062b1=>{if('formatBlock'!=_0x2062b1['type'])return;const {data:_0x185081}=_0x2062b1;if(!_0x185081)return;if('indentBlock'!=_0x185081['commandName']&&'outdentBlock'!=_0x185081['commandName'])return;const _0xd76445=_0x2062b1['getItems']()[0x0],_0x51e475=_0xdd1cf6['descriptionFactory']['getItemLabel'](_0xd76445);return'indentBlock'==_0x185081['commandName']?{'type':'format','content':Mt(_0x1dd682,'*Indent:*\x20%0',_0x51e475)}:'outdentBlock'==_0x185081['commandName']?{'type':'format','content':Mt(_0x1dd682,'*Outdent:*\x20%0',_0x51e475)}:void 0x0;});}},Te=class extends _0x5ba5d4{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x5ba5d4{afterInit(){const _0x3753a4=this['editor'];if(!_0x3753a4['plugins']['has']('LinkEditing'))return;const _0x49bdff=_0x3753a4['plugins']['get']('TrackChangesEditing'),_0x7b371c=_0x3753a4['commands']['get']('link');_0x49bdff['enableDefaultAttributesIntegration']('link'),_0x49bdff['enableDefaultAttributesIntegration']('unlink');for(const _0xb4b4f of _0x7b371c['manualDecorators'])_0x49bdff['descriptionFactory']['registerAttributeLabel'](_0xb4b4f['id'],'link\x20('+_0xb4b4f['label']['toLowerCase']()+')');_0x49bdff['descriptionFactory']['registerDescriptionCallback'](_0x186f8f=>{if('attribute'!=_0x186f8f['type'])return;const {data:_0x3328b6}=_0x186f8f;if(!_0x3328b6||'linkHref'!=_0x3328b6['key'])return;const _0x3e2a4f=_0x3328b6['newValue'],_0x421867=_0x3753a4['locale'];return{'type':'format','content':null==_0x3e2a4f?Mt(_0x421867,'*Remove\x20link*'):Mt(_0x421867,'*Set\x20link:*\x20%0','\x22'+_0x3e2a4f+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3ef82a=this['editor'],_0x4880d1=_0x3ef82a['locale'];_0x3ef82a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aa49e=>{if('formatInline'!=_0x3aa49e['type'])return;const {data:_0x135252}=_0x3aa49e;if(_0x135252){if('link'==_0x135252['commandName']){const _0x131747=_0x135252['commandParams'][0x0];return{'type':'format','content':Mt(_0x4880d1,'*Set\x20link:*\x20%0','\x22'+_0x131747+'\x22')};}return'unlink'==_0x135252['commandName']?{'type':'format','content':Mt(_0x4880d1,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x5ba5d4{afterInit(){const _0x2aaeb7=this['editor'],_0x7fb90d=_0x2aaeb7['locale'];if(!_0x2aaeb7['plugins']['has']('LegacyListEditing'))return;const _0x4633b2=_0x2aaeb7['plugins']['get']('TrackChangesEditing'),_0x20ec35=_0x2aaeb7['plugins']['has']('LegacyTodoListEditing');function _0x1e17c6(_0x19453e){return()=>{const _0x114e3a=_0x2aaeb7['model']['document']['selection'],_0xf5a4cc=_0x2aaeb7['commands']['get'](_0x19453e);if(_0xf5a4cc['value'])return void _0x2aaeb7['execute']('paragraph',{});const _0x1ca777=_0x19453e['slice'](0x0,-0x4),_0x3a2f47=function(_0x1eb143,_0x5974aa,_0x983c4b){let _0x2bd3ea=Array['from'](_0x1eb143)['filter'](_0x1fdd70=>function(_0xfdce7a,_0x258e15){return _0x258e15['checkChild'](_0xfdce7a['parent'],'listItem')&&!_0x258e15['isObject'](_0xfdce7a);}(_0x1fdd70,_0x983c4b));_0x2bd3ea=_0x2bd3ea['filter'](_0x26a0a2=>!_0x26a0a2['is']('element','listItem')||_0x26a0a2['getAttribute']('listType')!=_0x5974aa);const _0x57288d=new Set();for(const _0x1eb259 of _0x2bd3ea)_0x1eb259['is']('element','listItem')?_0x57288d['add'](Le(_0x1eb259)):_0x57288d['add'](_0x1eb259);return Array['from'](_0x57288d);}(_0x114e3a['getSelectedBlocks'](),_0x1ca777,_0x2aaeb7['model']['schema']);_0x2aaeb7['model']['change'](()=>{for(const _0x21fc08 of _0x3a2f47)_0x4633b2['markBlockFormat'](_0x21fc08,{'commandName':_0x19453e,'commandParams':[{'forceValue':!_0xf5a4cc['value']}],'formatGroupId':'blockName'},Ie(_0x21fc08));});};}function _0x5ae777(_0x7b53dd){return()=>{const _0x4070e6=function(_0x3b6096){let _0x98996=Array['from'](_0x3b6096);const _0x521f23=_0x98996['findIndex'](_0x24cc83=>'listItem'!=_0x24cc83['name']);return _0x521f23>-0x1&&(_0x98996=_0x98996['slice'](0x0,_0x521f23)),_0x98996;}(_0x2aaeb7['model']['document']['selection']['getSelectedBlocks']()),_0x567eec=_0x2aaeb7['model']['createRange'](_0x2aaeb7['model']['createPositionAt'](_0x4070e6[0x0],'before'),_0x2aaeb7['model']['createPositionAt'](_0x4070e6[_0x4070e6['length']-0x1],'end'));_0x2aaeb7['model']['change'](()=>{_0x4633b2['markBlockFormat'](_0x567eec,{'commandName':_0x7b53dd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x407527){const _0xee4db2=new Set();for(const _0x331dc9 of _0x407527){let _0x258b96=_0x331dc9['nextSibling'];for(;_0x258b96&&_0x258b96['getAttribute']('listIndent')>_0x331dc9['getAttribute']('listIndent');)_0xee4db2['add'](_0x258b96),_0x258b96=_0x258b96['nextSibling'];}return Array['from'](_0xee4db2);}(_0x4070e6));});};}_0x4633b2['enableCommand']('numberedList',_0x1e17c6('numberedList')),_0x4633b2['enableCommand']('bulletedList',_0x1e17c6('bulletedList')),_0x20ec35&&_0x4633b2['enableCommand']('todoList',_0x1e17c6('todoList')),_0x4633b2['enableCommand']('indentList',_0x5ae777('indentList')),_0x4633b2['enableCommand']('outdentList',_0x5ae777('outdentList')),_0x20ec35&&_0x4633b2['enableCommand']('checkTodoList',()=>{const _0x9c881c=_0x2aaeb7['commands']['get']('checkTodoList'),_0x4bc8cd=Array['from'](_0x9c881c['_selectedElements']);_0x4bc8cd['filter'](_0x2f25fc=>_0x2f25fc['getAttribute']('todoListChecked')!=_0x9c881c['value']),_0x2aaeb7['model']['change'](()=>{for(const _0x3c813d of _0x4bc8cd)_0x4633b2['markBlockFormat'](_0x3c813d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x9c881c['value']}]});});}),_0x4633b2['descriptionFactory']['registerElementLabel']('listItem',_0x3cf555=>Mt(_0x7fb90d,'ELEMENT_LIST_ITEM',_0x3cf555)),_0x4633b2['descriptionFactory']['registerDescriptionCallback'](_0x4f194e=>{if('formatBlock'!=_0x4f194e['type']&&'formatInline'!=_0x4f194e['type'])return;const {data:_0x15a362}=_0x4f194e;if(_0x15a362){if('numberedList'==_0x15a362['commandName']||'bulletedList'==_0x15a362['commandName']||'todoList'==_0x15a362['commandName'])switch(_0x15a362['commandName']['replace']('List','')){case'bulleted':return _0x3865f7(Mt(_0x7fb90d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3865f7(Mt(_0x7fb90d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3865f7(Mt(_0x7fb90d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x15a362['commandName'])return{'type':'format','content':Mt(_0x7fb90d,'*Indent:*\x20%0',Mt(_0x7fb90d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x15a362['commandName'])return{'type':'format','content':Mt(_0x7fb90d,'*Outdent:*\x20%0',Mt(_0x7fb90d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x15a362['commandName'])return _0x15a362['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x7fb90d,'*Check\x20item*')}:{'type':'format','content':Mt(_0x7fb90d,'*Uncheck\x20item*')};}function _0x3865f7(_0x1dcb75){return{'type':'format','content':Mt(_0x7fb90d,'*Change\x20to:*\x20%0',_0x1dcb75)};}});}};function Le(_0x46bf5b){const _0x4f1f65=_0x46bf5b['getAttribute']('listIndent');if(0x0==_0x4f1f65)return _0x46bf5b;let _0x1cdd1a=_0x46bf5b;for(;_0x46bf5b['previousSibling']&&_0x46bf5b['previousSibling']['is']('element','listItem');){const _0x3c6185=_0x46bf5b['previousSibling']['getAttribute']('listIndent');if(_0x3c6185==_0x4f1f65)_0x1cdd1a=_0x46bf5b['previousSibling'];else{if(_0x3c6185<_0x4f1f65)break;}_0x46bf5b=_0x46bf5b['previousSibling'];}return _0x1cdd1a;}function Ie(_0x316158){const _0x40e6bc=[];if(_0x316158['is']('element','listItem')&&_0x316158['getAttribute']('listIndent')>0x0){let _0x9a3f98=_0x316158['nextSibling'];for(;_0x9a3f98&&'listItem'==_0x9a3f98['name']&&_0x9a3f98['getAttribute']('listIndent')==_0x316158['getAttribute']('listIndent');)_0x40e6bc['push'](_0x9a3f98),_0x9a3f98=_0x9a3f98['nextSibling'];}return _0x40e6bc;}var Ae=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8e0d6a=this['editor']['config']['get']('list.properties'),_0x459840=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e0d6a['styles']&&_0x459840['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8e0d6a['reversed']&&_0x459840['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8e0d6a['startIndex']&&_0x459840['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x459840['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x5ee436,_0x55e7a8={}){const _0x3f0fff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d11a5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3f0fff['markMultiRangeBlockFormat'](_0x3d11a5,{'commandName':'listStyle','commandParams':[{'type':_0x55e7a8['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x242664,_0x37e4e6={}){const _0x1a5a28=this['editor']['plugins']['get']('TrackChangesEditing'),_0x140a8d=this['_getSuggestionBlocks'](_0x3548e3=>_0x3548e3['is']('element','listItem')&&'numbered'===_0x3548e3['getAttribute']('listType'));if(_0x140a8d['length']<0x1)return;const _0x14d7a4=_0x140a8d['map'](_0x30d1da=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30d1da,'before'),this['editor']['model']['createPositionAt'](_0x30d1da,0x0)));this['editor']['model']['change'](()=>{_0x1a5a28['markMultiRangeBlockFormat'](_0x14d7a4,{'commandName':'listReversed','commandParams':[{'reversed':_0x37e4e6['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x3e9f70,_0x19796d={}){const _0x13e4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1129b4=this['_getSuggestionBlocks'](_0x438dc7=>_0x438dc7['is']('element','listItem')&&'numbered'===_0x438dc7['getAttribute']('listType'));if(_0x1129b4['length']<0x1)return;const _0x5915aa=_0x1129b4['map'](_0x4db231=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4db231,'before'),this['editor']['model']['createPositionAt'](_0x4db231,0x0)));this['editor']['model']['change'](()=>{_0x13e4f['markMultiRangeBlockFormat'](_0x5915aa,{'commandName':'listStart','commandParams':[{'startIndex':_0x19796d['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x1f89d2){if('formatBlock'!=_0x1f89d2['type']&&'formatInline'!=_0x1f89d2['type'])return;const _0xf200e2=this['editor']['locale'],{data:_0x511b42}=_0x1f89d2;if(!_0x511b42)return;let _0x25a736,_0x576b81;switch(_0x511b42['commandName']){case'listStyle':_0x25a736='*Change\x20to:*\x20%0',_0x576b81={'type':'format','content':Mt(_0xf200e2,_0x25a736,Mt(_0xf200e2,this['_getTranslationKeyForListStyle'](_0x511b42['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25a736=_0x511b42['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x576b81={'type':'format','content':Mt(_0xf200e2,_0x25a736)};break;case'listStart':_0x25a736='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x576b81={'type':'format','content':Mt(_0xf200e2,_0x25a736,_0x511b42['commandParams'][0x0]['startIndex'])};}return _0x576b81;}_getSuggestionBlocksForListStyle(){const _0x47533d=this['editor']['plugins']['get']('LegacyListUtils');let _0x46815f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x46815f[0x0]?.['is']('element','listItem')&&_0x46815f['unshift'](..._0x47533d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x46815f[_0x46815f['length']-0x1]?.['is']('element','listItem')&&_0x46815f['push'](..._0x47533d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x46815f=[...new Set(_0x46815f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x46815f=_0x46815f['filter'](_0x17b29b=>_0x17b29b['is']('element','listItem'))),_0x46815f;}_getSuggestionBlocks(_0x569b6e){const _0x3fe2f8=this['editor']['plugins']['get']('LegacyListUtils');let _0x1082e6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x569b6e)['map'](_0x541fdc=>{const _0x155080=this['editor']['model']['createPositionAt'](_0x541fdc,0x0);return[..._0x3fe2f8['getSiblingNodes'](_0x155080,'backward'),..._0x3fe2f8['getSiblingNodes'](_0x155080,'forward')];})['flat']();return _0x1082e6=[...new Set(_0x1082e6)],_0x1082e6;}_getTranslationKeyForListStyle(_0x5b18c8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b18c8)||'default')['toUpperCase']()+'_LIST_'+_0x5b18c8['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x5ba5d4{afterInit(){const _0x24f6e3=this['editor'];if(!_0x24f6e3['plugins']['has']('MediaEmbedEditing'))return;const _0x1a3366=_0x24f6e3['plugins']['get']('TrackChangesEditing'),_0x368260=_0x24f6e3['locale'];_0x1a3366['enableCommand']('mediaEmbed'),_0x1a3366['descriptionFactory']['registerElementLabel']('media',_0x2c3df6=>Mt(_0x368260,'ELEMENT_MEDIA',_0x2c3df6)),_0x24f6e3['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1a3366['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1a3366['descriptionFactory']['registerDescriptionCallback'](_0x2a7e35=>{if('attribute'!=_0x2a7e35['type'])return;const {data:_0x20f3f0}=_0x2a7e35;if(!_0x20f3f0||'resizedWidth'!=_0x20f3f0['key'])return;const _0x27f584=_0x2a7e35['getContainedElement']();if(!_0x27f584||!_0x27f584['is']('element','media'))return;const _0x45c0bb=Mt(_0x368260,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x368260,'*Set\x20format:*\x20%0',_0x45c0bb)};}));}},ke=class extends _0x5ba5d4{afterInit(){const _0x579c67=this['editor'];if(!_0x579c67['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2d2de5=_0x579c67['plugins']['get']('TrackChangesEditing'),_0x4e22dc=_0x579c67['locale'],_0x173517=_0x579c67['plugins']['get']('MediaEmbedStyleEditing'),_0x51321e={};for(const _0x43e5bb of _0x173517['normalizedStyles'])_0x51321e[_0x43e5bb['name']]=_0x43e5bb['title']['toLowerCase']();const _0x4683ec=_0x173517['normalizedStyles']['find'](_0x5b8e76=>_0x5b8e76['isDefault'])?.['name'];_0x2d2de5['enableCommand']('mediaStyle',(_0x537907,_0xba524d)=>{const _0x144390=_0x579c67['plugins']['get']('Users')['me'],_0xd24b7b=_0x579c67['commands']['get']('mediaStyle'),_0xf1399b=function(_0x4607dc){const _0x1cbf65=_0x4607dc['model']['document']['selection']['getSelectedElement']();return _0x1cbf65&&_0x1cbf65['is']('element','media')?_0x1cbf65:null;}(_0x579c67);if(!_0xf1399b)return;const _0x3538bd=_0x579c67['model']['createRangeOn'](_0xf1399b);let _0x50c08f=_0xd24b7b['value'];if(_0x50c08f==_0xba524d['value'])return;const _0x4d6b50={'commandName':'mediaStyle','commandParams':[_0xba524d],'formatGroupId':_0x38eda5()};_0x579c67['model']['change'](()=>{_0x2d2de5['getSuggestions']()['filter'](_0xe174e3=>_0xe174e3['isInContent']&&_0x144390==_0xe174e3['author']&&'formatBlock'==_0xe174e3['type']&&'mediaStylePostApply'==_0xe174e3['subType']&&_0xe174e3['getFirstRange']()['isEqual'](_0x3538bd))['forEach'](_0xc7ee12=>_0x2d2de5['discardSuggestion'](_0xc7ee12['head'])),_0xd24b7b['refresh'](),_0x50c08f=_0xd24b7b['value'],_0x50c08f!=_0xba524d['value']&&_0x2d2de5['markBlockFormat'](_0xf1399b,{..._0x4d6b50,'commandReversedParams':[{'value':'string'==typeof _0x50c08f?_0x50c08f:null}]},[],'mediaStylePostApply');});}),_0x2d2de5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2d2de5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x515a7e,_0x42d306)=>{_0x2d2de5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x515a7e,{'commandName':_0x42d306['commandName'],'commandParams':_0x42d306['commandReversedParams']});}),_0x2d2de5['descriptionFactory']['registerDescriptionCallback'](_0x5a31b0=>{if('formatBlock'!=_0x5a31b0['type'])return;const {data:_0x3a3711}=_0x5a31b0;if(!_0x3a3711||'mediaStyle'!=_0x3a3711['commandName'])return;const _0x1859e7=_0x3a3711['commandParams'][0x0]['value']||_0x4683ec;if(!_0x1859e7)return;const _0x39f1a6=_0x51321e[_0x1859e7]||_0x1859e7;return{'type':'format','content':Mt(_0x4e22dc,'*Format:*\x20%0',_0x39f1a6)};});}},Ce=class extends _0x5ba5d4{afterInit(){const _0x24019a=this['editor'];_0x24019a['plugins']['has']('MentionEditing')&&_0x24019a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x5ba5d4{afterInit(){const _0x33b49c=this['editor'];if(!_0x33b49c['plugins']['has']('MergeFieldsEditing'))return;const _0x3206c9=_0x33b49c['plugins']['get']('TrackChangesEditing'),_0x40494a=_0x33b49c['locale'];_0x3206c9['enableCommand']('insertMergeField'),_0x3206c9['enableCommand']('insertMergeFieldBlock'),_0x3206c9['enableCommand']('insertMergeFieldImage'),_0x3206c9['descriptionFactory']['registerElementLabel']('mergeField',_0x59c1a8=>Mt(_0x40494a,'ELEMENT_MERGE_FIELD',_0x59c1a8)),_0x3206c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3462d1=>Mt(_0x40494a,'ELEMENT_MERGE_FIELD',_0x3462d1)),_0x3206c9['descriptionFactory']['registerDescriptionCallback'](_0x57ada4=>{if('insertion'!=_0x57ada4['type']&&'deletion'!=_0x57ada4['type'])return;const _0x34b3f3=_0x57ada4['getContainedElement']();if(null==_0x34b3f3)return;const _0x3bf6bb=_0x33b49c['plugins']['get']('MergeFieldsEditing');let _0x53097c;switch(_0x3bf6bb['getMergeFieldType'](_0x34b3f3)){case null:return;case'image':{const _0x281e69=_0x3bf6bb['unwrapAffixes'](_0x34b3f3['getAttribute']('src'));_0x53097c=_0x3bf6bb['getLabel'](_0x281e69)||_0x281e69;break;}default:{const _0x15893c=_0x34b3f3['getAttribute']('id');_0x53097c=_0x3bf6bb['getLabel'](_0x15893c)||_0x15893c;break;}}return'insertion'==_0x57ada4['type']?{'type':'insertion','content':Mt(_0x40494a,'*Insert:*\x20%0','\x22'+_0x53097c+'\x22\x20'+Mt(_0x40494a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x40494a,'*Remove:*\x20%0','\x22'+_0x53097c+'\x22\x20'+Mt(_0x40494a,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x5ba5d4{afterInit(){const _0x2878ec=this['editor'],_0x248c56=_0x2878ec['plugins']['get']('TrackChangesEditing');_0x2878ec['plugins']['has']('MultiLevelList')&&(_0x248c56['enableDefaultAttributesIntegration']('multiLevelList'),_0x248c56['descriptionFactory']['registerDescriptionCallback'](_0x4efa52=>this['handleDescriptions'](_0x4efa52)));}handleDescriptions(_0x39f444){const _0x54346f=this['editor']['locale'],{data:_0x2d255c}=_0x39f444,_0x27e031={'type':'format','content':''};if(_0x2d255c&&'listMarkerStyle'==_0x2d255c['key']){if(!_0x2d255c['oldValue'])return{'type':'format','content':Mt(_0x54346f,'*Set\x20format:*\x20%0',Mt(_0x54346f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d255c['newValue']+')'};if(!_0x2d255c['newValue']){let _0x180187=_0x39f444['head'];for(;_0x180187;){if(_0x180187['data']&&'listType'==_0x180187['data']['key']&&_0x180187['data']['newValue'])return _0x27e031;_0x180187=_0x180187['next'];}return{'type':'format','content':Mt(_0x54346f,'*Remove\x20format:*\x20%0',Mt(_0x54346f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d255c['oldValue']+')'};}}}},Ne=class extends _0x5ba5d4{afterInit(){const _0x5217ac=this['editor'];if(!_0x5217ac['plugins']['has']('PageBreakEditing'))return;_0x5217ac['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xd469ab=_0x5217ac['plugins']['get']('TrackChangesEditing'),_0x4f5871=_0x5217ac['locale'];_0xd469ab['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a0f1d=>Mt(_0x4f5871,'ELEMENT_PAGE_BREAK',_0x3a0f1d));}},Se=class extends _0x5ba5d4{afterInit(){const _0x39da30=this['editor'];if(!_0x39da30['plugins']['has']('Paragraph'))return;const _0x41d610=_0x39da30['locale'],_0x69eb68=_0x39da30['plugins']['get']('TrackChangesEditing');_0x69eb68['descriptionFactory']['registerElementLabel']('paragraph',_0x2ec1a1=>Mt(_0x41d610,'ELEMENT_PARAGRAPH',_0x2ec1a1)),_0x69eb68['enableDefaultAttributesIntegration']('paragraph'),_0x69eb68['enableCommand']('insertParagraph');const _0x2cfa49=_0x69eb68['descriptionFactory'];_0x2cfa49['registerDescriptionCallback'](_0x57b2e0=>{if('insertion'!==_0x57b2e0['type'])return;const {start:_0x48ce0b,end:_0x29cf2a}=_0x57b2e0['getFirstRange']();if(!_0x48ce0b['isTouching'](_0x29cf2a)||!_0x48ce0b['nodeAfter'])return;const _0x4ab617=_0x39da30['model']['schema'],_0x412772=_0x48ce0b['nodeAfter'];return _0x4ab617['isBlock'](_0x412772)&&!_0x4ab617['isLimit'](_0x412772)&&_0x4ab617['checkChild'](_0x412772,'$text')?{'type':'insertion','content':Mt(_0x41d610,'*Insert:*\x20%0',_0x2cfa49['getItemLabel'](_0x412772,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x12e9d1=this['editor'],_0x158a96=_0x12e9d1['locale'];_0x12e9d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ab8c1=>{if('formatBlock'!=_0x3ab8c1['type'])return;const {data:_0x215b7e}=_0x3ab8c1;return _0x215b7e&&'paragraph'==_0x215b7e['commandName']?{'type':'format','content':Mt(_0x158a96,'*Change\x20to:*\x20%0',Mt(_0x158a96,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x5ba5d4{afterInit(){const _0x9f530b=this['editor'];_0x9f530b['commands']['get']('replaceSource')&&_0x9f530b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x5ba5d4{afterInit(){const _0x5bd09f=this['editor'];_0x5bd09f['plugins']['has']('RemoveFormatEditing')&&(_0x5bd09f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3af949=this['editor'];_0x3af949['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51e9cb=>{if('formatBlock'!=_0x51e9cb['type']&&'formatInline'!=_0x51e9cb['type'])return;const {data:_0x1bf993}=_0x51e9cb;return _0x1bf993&&'removeFormat'==_0x1bf993['commandName']?{'type':'format','content':Mt(_0x3af949['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x5ba5d4{afterInit(){const _0x27ac34=this['editor'];if(!_0x27ac34['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x36449a=_0x27ac34['plugins']['get']('TrackChangesEditing');_0x36449a['enableCommand']('goToPreviousRestrictedEditingException'),_0x36449a['enableCommand']('goToNextRestrictedEditingException');const _0x49c5e6=_0x27ac34['plugins']['get']('RestrictedEditingModeEditing');_0x49c5e6['enableCommand']('trackChanges'),_0x49c5e6['enableCommand']('acceptSuggestion'),_0x49c5e6['enableCommand']('discardSuggestion'),_0x49c5e6['enableCommand']('acceptAllSuggestions'),_0x49c5e6['enableCommand']('discardAllSuggestions'),_0x49c5e6['enableCommand']('acceptSelectedSuggestions'),_0x49c5e6['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x5ba5d4{afterInit(){const _0x58e028=this['editor'];if(!_0x58e028['plugins']['has']('ShiftEnter'))return;const _0x2ed8ca=_0x58e028['plugins']['get']('TrackChangesEditing');_0x2ed8ca['enableCommand']('shiftEnter'),_0x2ed8ca['descriptionFactory']['registerElementLabel']('softBreak',_0x1f34d7=>Mt(_0x58e028['locale'],'ELEMENT_LINE_BREAK',_0x1f34d7));}};function Be(_0x8440b1,_0x40dd6d,_0x5684cc){const _0x47665c=[];for(const _0x4d05bd of _0x40dd6d['getItems']())_0x4d05bd['hasAttribute'](_0x8440b1)&&_0x47665c['push'](_0x5684cc['createRangeOn'](_0x4d05bd));return _0x47665c;}var ve=class extends _0x5ba5d4{afterInit(){const _0x1f2bca=this['editor'],_0x3a240e=_0x1f2bca['plugins']['get']('TrackChangesEditing');_0x1f2bca['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3a240e['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x35d6b4=this['editor'],_0x52f48b=_0x35d6b4['model'],_0xf3ff92=_0x35d6b4['locale'],_0x5d4424=_0x35d6b4['plugins']['get']('TrackChangesEditing'),_0x126010='restrictedEditingException',_0x463cdf=_0x35d6b4['commands']['get'](_0x126010);_0x5d4424['enableCommand'](_0x126010,(_0x19f07a,_0x179b6c={})=>{const _0xec0294=_0x52f48b['document']['selection'];if(_0xec0294['isCollapsed'])return void _0x19f07a(_0x179b6c);const _0x49b196=void 0x0!==_0x179b6c['forceValue']?_0x179b6c['forceValue']:!_0x463cdf['value'];_0x52f48b['change'](()=>{const _0x203661=Array['from'](_0xec0294['getRanges']());for(const _0xde6e33 of _0x203661){const _0x1eca08=_0x49b196?[_0xde6e33]:Be(_0x126010,_0xde6e33,_0x52f48b);for(const _0x318d37 of _0x1eca08)_0x5d4424['markInlineFormat'](_0x318d37,{'commandName':_0x126010,'commandParams':[{'forceValue':_0x49b196}]});}});}),_0x5d4424['descriptionFactory']['registerDescriptionCallback'](_0x4cfe59=>{if('formatBlock'!=_0x4cfe59['type']&&'formatInline'!=_0x4cfe59['type'])return;const {data:_0x3199af}=_0x4cfe59;return _0x3199af&&_0x3199af['commandName']==_0x126010?_0x3199af['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xf3ff92,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0xf3ff92,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0xf998d1=this['editor'],_0x446fe3=_0xf998d1['locale'],_0x5ae0f3=_0xf998d1['plugins']['get']('TrackChangesEditing'),_0x4f16d9='restrictedEditingExceptionBlock',_0x184d2d=this['editor']['commands']['get'](_0x4f16d9);_0x5ae0f3['enableCommand'](_0x4f16d9,(_0xfefe26,_0x2287fa={})=>{const _0x45fcf4=this['editor']['model']['document']['selection'],_0x20a574=_0x2287fa&&void 0x0!==_0x2287fa['forceValue']?_0x2287fa['forceValue']:!_0x184d2d['value'];let _0x3685f2=[];if(_0x20a574){const _0x263a6e=Array['from'](_0x45fcf4['getSelectedBlocks']())['filter'](_0xa0a833=>function(_0x141b81){return!!_0x141b81['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xa0a833)||function(_0x599136,_0x21a299){const _0x36e86e=_0x21a299['createContext'](_0x599136['parent']);return!!_0x21a299['checkChild'](_0x36e86e,'restrictedEditingException')&&!!_0x21a299['checkChild'](_0x36e86e['push']('restrictedEditingException'),_0x599136);}(_0xa0a833,this['editor']['model']['schema']));_0x3685f2=bt(_0x263a6e,_0xf998d1['model']);}else{const _0x525117=Array['from'](_0x45fcf4['getSelectedBlocks']())['map'](_0x511813=>function(_0x4af8b9){let _0x100033=_0x4af8b9;for(;_0x100033['parent'];){if('restrictedEditingException'==_0x100033['parent']['name'])return _0x100033;_0x100033=_0x100033['parent'];}return null;}(_0x511813))['filter'](_0x4a77e8=>!!_0x4a77e8);_0x3685f2=bt(_0x525117,_0xf998d1['model']);}_0xf998d1['model']['change'](()=>{for(const _0x3cec96 of _0x3685f2)_0x5ae0f3['markBlockFormat'](_0x3cec96,{'commandName':_0x4f16d9,'commandParams':[{'forceValue':_0x20a574}]});});}),_0x5ae0f3['descriptionFactory']['registerDescriptionCallback'](_0x14e3cd=>{const {data:_0x566b70}=_0x14e3cd;if(_0x566b70&&_0x566b70['commandName']==_0x4f16d9)return _0x566b70['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x446fe3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x446fe3,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x5ba5d4{afterInit(){const _0x192050=this['editor'];_0x192050['plugins']['has']('Style')&&_0x192050['plugins']['has']('DataSchema')&&(_0x192050['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xf0cde8=this['editor'],_0x4a338d=_0xf0cde8['locale'];_0xf0cde8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x297890=>{if('formatBlock'!=_0x297890['type']&&'formatInline'!=_0x297890['type'])return;const {data:_0x22918d}=_0x297890;return _0x22918d&&'style'===_0x22918d['commandName']?_0x22918d['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4a338d,'*Set\x20format:*\x20%0',_0x22918d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x4a338d,'*Remove\x20format:*\x20%0',_0x22918d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x5ba5d4{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x341f65){super(_0x341f65),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x2fac4d=this['editor'],_0x35e9d0=_0x2fac4d['model']['document']['selection'];if(!_0x2fac4d['plugins']['has']('TableEditing'))return;const _0x445816=_0x2fac4d['locale'],_0x3d151a=_0x2fac4d['plugins']['get']('TrackChangesEditing'),_0x20c82a=_0x2fac4d['plugins']['get']('TableUtils');_0x3d151a['descriptionFactory']['registerElementLabel']('table',_0x2e1ea1=>Mt(_0x445816,'ELEMENT_TABLE',_0x2e1ea1)),this['_setupColumnsRowsFixing'](),_0x3d151a['enableCommand']('insertTable'),_0x3d151a['enableCommand']('selectTableRow'),_0x3d151a['enableCommand']('selectTableColumn');for(const _0x5432d9 of['insertTableRowAbove','insertTableRowBelow']){const _0x108110=_0x2fac4d['commands']['get'](_0x5432d9);_0x3d151a['enableCommand'](_0x5432d9,_0x222e78=>{_0x2fac4d['model']['change'](_0x5e1179=>{_0x222e78();const _0xf24764='above'===_0x108110['order'],_0x4c8313=_0x20c82a['getSelectionAffectedTableCells'](_0x35e9d0),_0x2cc634=_0x20c82a['getRowIndexes'](_0x4c8313),_0x30582e=_0xf24764?_0x2cc634['first']-0x1:_0x2cc634['last']+0x1,_0x377fe3=_0x4c8313[0x0]['findAncestor']('table'),_0x39a4e6=_0x20c82a['createTableWalker'](_0x377fe3,{'startRow':_0x30582e,'endRow':_0x30582e}),_0xedcfb8=Array['from'](_0x39a4e6)['map'](_0x1f9b93=>_0x5e1179['createRangeOn'](_0x1f9b93['cell']));_0x3d151a['markMultiRangeInsertion'](_0xedcfb8,'tableRow');});});}for(const _0x2136ee of['insertTableColumnLeft','insertTableColumnRight']){const _0x54a383=_0x2fac4d['commands']['get'](_0x2136ee);_0x3d151a['enableCommand'](_0x2136ee,_0x52a968=>{_0x2fac4d['model']['change'](_0xfa5af7=>{_0x52a968();const _0x88f2b6='left'===_0x54a383['order'],_0x5cb029=_0x20c82a['getSelectionAffectedTableCells'](_0x35e9d0),_0x58b0a4=_0x20c82a['getColumnIndexes'](_0x5cb029),_0x2b7d0d=_0x88f2b6?_0x58b0a4['first']-0x1:_0x58b0a4['last']+0x1,_0x4e1b02=_0x5cb029[0x0]['findAncestor']('table'),_0x44cee1=_0x20c82a['createTableWalker'](_0x4e1b02,{'startRow':0x0,'column':_0x2b7d0d,'includeAllSlots':!0x1}),_0x2852cf=Array['from'](_0x44cee1)['map'](_0x3bde06=>_0xfa5af7['createRangeOn'](_0x3bde06['cell']));_0x3d151a['markMultiRangeInsertion'](_0x2852cf,'tableColumn');});});}for(const _0x4732b7 of['removeTableRow','removeTableColumn']){const _0x1a6b43=_0x4732b7['substr'](0xb),_0x479034=_0x1a6b43['toLowerCase'](),_0x183d12=_0x479034['substr'](0x0,0x3)+'span',_0x3f33e3='table'+_0x1a6b43,_0x58bc81='min'+_0x1a6b43,_0x4a3307='max'+_0x1a6b43;_0x3d151a['enableCommand'](_0x4732b7,()=>{_0x2fac4d['model']['change'](_0xcaa619=>{const _0x5802b7=_0x20c82a['getSelectionAffectedTableCells'](_0x35e9d0),_0x554a61=_0x5802b7[0x0]['findAncestor']('table');let _0x5ab86e;if('removeTableRow'==_0x4732b7){const _0x9c35e=_0x20c82a['getRowIndexes'](_0x5802b7);_0x5ab86e={'startRow':_0x9c35e['first'],'endRow':_0x9c35e['last'],'includeAllSlots':!0x0};}else{const _0x5bfdd7=_0x20c82a['getColumnIndexes'](_0x5802b7);_0x5ab86e={'startColumn':_0x5bfdd7['first'],'endColumn':_0x5bfdd7['last'],'includeAllSlots':!0x0};}const _0x3ce938=_0x20c82a['createTableWalker'](_0x554a61,_0x5ab86e),_0x3f4263=Array['from'](_0x3ce938)['map'](({cell:_0x489a0c})=>_0x489a0c),_0x1f296c=Pe(_0x3f4263['filter'](_0x3efb42=>_0x3efb42['hasAttribute'](_0x183d12))),_0x17af2e=Pe(_0x3f4263['filter'](_0x415869=>!_0x415869['hasAttribute'](_0x183d12)))['map'](_0x4f990e=>_0xcaa619['createRangeOn'](_0x4f990e)),_0x2fd6c3=_0x3d151a['markMultiRangeDeletion'](_0x17af2e,_0x3f33e3);if(_0x2fd6c3&&('tableRow'==_0x2fd6c3['subType']||'tableColumn'==_0x2fd6c3['subType'])){const _0x2ef055=this['_getSuggestionCoords'](_0x2fd6c3);for(const _0x31174a of _0x1f296c){const _0x2d7bb7=_0xcaa619['createRangeOn'](_0x31174a),_0xc5541e=_0x20c82a['getCellLocation'](_0x31174a),_0x1dc192=_0x31174a['getAttribute'](_0x183d12)-0x1,_0x12dcaf=_0x2ef055[_0x58bc81],_0x3595d9=_0x2ef055[_0x4a3307];_0x12dcaf<=_0xc5541e[_0x479034]&&_0xc5541e[_0x479034]+_0x1dc192<=_0x3595d9&&_0x2fd6c3['addRange'](_0x2d7bb7);}}});});}function _0x408813(_0x5bec76){const _0x4dd68c=Array['from'](_0x35e9d0['getRanges']())['map'](_0xa99c8c=>rt['fromRange'](_0xa99c8c));_0x2fac4d['model']['change'](_0x5d3bd7=>{const _0x3cf4f1=_0x5d3bd7['batch'];_0x5bec76=_0x5bec76['filter'](_0x4a11b7=>'$graveyard'!=_0x4a11b7['root']['rootName']),_0x5d3bd7['setSelection'](_0x5bec76),_0x2fac4d['commands']['get']('removeTableRow')['refresh'](),_0x2fac4d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2fac4d['model']['enqueueChange'](()=>{_0x2fac4d['model']['enqueueChange'](_0x3cf4f1,_0x552183=>{const _0x11c9e9=_0x4dd68c['filter'](_0x35a1a5=>'$graveyard'!=_0x35a1a5['root']['rootName']);_0x11c9e9['length']>0x0&&_0x552183['setSelection'](_0x11c9e9);for(const _0x2f19f2 of _0x4dd68c)_0x2f19f2['detach']();});});});}function _0x1a2f4c(_0x500768){_0x2fac4d['model']['change'](_0x79014=>{const _0x3247ed=Array['from'](_0x35e9d0['getRanges']())['map'](_0x5de3ee=>rt['fromRange'](_0x5de3ee)),_0x357753=[];for(const _0x1a4582 of _0x500768)for(const _0xf15277 of _0x1a4582['getItems']({'shallow':!0x0}))_0x357753['push'](_0xf15277);for(const _0x3897f6 of _0x357753)'$graveyard'!=_0x3897f6['root']['rootName']&&(_0x79014['setSelection'](_0x79014['createPositionAt'](_0x3897f6,0x0)),_0x2fac4d['commands']['get']('removeTableColumn')['refresh'](),_0x2fac4d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59b864=_0x3247ed['filter'](_0x28201d=>'$graveyard'!=_0x28201d['root']['rootName']);_0x59b864['length']>0x0&&_0x79014['setSelection'](_0x59b864);for(const _0x151e1c of _0x3247ed)_0x151e1c['detach']();});}function _0x1aaede(_0x5f4d61,_0x30da64){return _0x30da64['every'](_0x34fae3=>_0x5f4d61['some'](_0x188f36=>_0x188f36['end']['isEqual'](_0x34fae3['start'])||_0x34fae3['end']['isEqual'](_0x188f36['start'])));}function _0x4f388e(_0x2c2eeb,_0xa7f20a){return!_0x2c2eeb['some'](_0x7a7f69=>_0xa7f20a['some'](_0x255d8d=>_0x7a7f69['isIntersecting'](_0x255d8d)))&&_0x2c2eeb['some'](_0x57bdbc=>_0xa7f20a['some'](_0xcfec19=>_0x57bdbc['end']['isTouching'](_0xcfec19['start'])));}_0x3d151a['descriptionFactory']['registerDescriptionCallback'](_0x3f6453=>{if('insertion'!=_0x3f6453['type']&&'deletion'!=_0x3f6453['type'])return;const _0x319025=_0x3f6453['getContainedElement']();if(null!=_0x319025&&_0x319025['is']('element','table')){if('insertion'==_0x3f6453['type']){const _0x51604e=_0x3f6453['getItems']()['filter'](_0x3c8b42=>_0x3c8b42['is']('$textProxy'))['map'](_0x2652c5=>_0x2652c5['data']);if(_0x51604e['length'])return{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51604e['join']('\x20')+'\x22'))};}if('deletion'==_0x3f6453['type']){const _0x424a24=_0x3f6453['getItems']()['filter'](_0x44b9f3=>_0x44b9f3['is']('$textProxy'))['map'](_0x995943=>_0x995943['data']);if(_0x424a24['length'])return{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x424a24['join']('\x20')+'\x22'))};}}}),_0x3d151a['descriptionFactory']['registerDescriptionCallback'](_0x3a57bd=>{if('tableRow'==_0x3a57bd['subType']){const _0x32839e=_0x3a57bd['getItems']()['filter'](_0x567cbd=>_0x567cbd['is']('$textProxy'))['map'](_0x41b257=>_0x41b257['data']),_0x15ff5a=this['_getSuggestionCoords'](_0x3a57bd),_0x26a7b4=_0x15ff5a['maxRow']-_0x15ff5a['minRow']+0x1;if('insertion'==_0x3a57bd['type'])return _0x32839e['length']?{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26a7b4,'\x22'+_0x32839e['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW',_0x26a7b4))};if('deletion'==_0x3a57bd['type'])return _0x32839e['length']?{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26a7b4,'\x22'+_0x32839e['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW',_0x26a7b4))};}if('tableColumn'==_0x3a57bd['subType']){const _0xc75833=_0x3a57bd['getItems']()['filter'](_0x5a45d8=>_0x5a45d8['is']('$textProxy'))['map'](_0x4d9db2=>_0x4d9db2['data']),_0x30d632=this['_getSuggestionCoords'](_0x3a57bd),_0x3186d4=_0x30d632['maxColumn']-_0x30d632['minColumn']+0x1;if('insertion'==_0x3a57bd['type'])return _0xc75833['length']?{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3186d4,'\x22'+_0xc75833['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN',_0x3186d4))};if('deletion'==_0x3a57bd['type'])return _0xc75833['length']?{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3186d4,'\x22'+_0xc75833['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN',_0x3186d4))};}}),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x408813),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x408813),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1a2f4c),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1a2f4c),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1aaede),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1aaede),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4f388e),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4f388e);}_acceptFormatSuggestionCallbackFactory(){const _0x4b97b1=this['editor'],_0x2c4198=_0x4b97b1['model']['document']['selection'];return(_0x2b8d5f,_0x2d9a6a)=>{_0x4b97b1['model']['change'](_0x272a07=>{const {commandName:_0x18be58,commandParams:_0x52b208}=_0x2d9a6a;let _0x3698e4=_0x2b8d5f[0x0]['end']['nodeBefore'];_0x52b208&&_0x52b208[0x0]&&!0x1===_0x52b208[0x0]['forceValue']&&(_0x3698e4=_0x2b8d5f[0x0]['start']['nodeAfter']);const _0x1dc94a=_0x272a07['createRangeIn'](_0x3698e4);if('$graveyard'==_0x1dc94a['root']['rootName'])return;const _0x568352=Array['from'](_0x2c4198['getRanges']())['map'](_0xf2cb80=>rt['fromRange'](_0xf2cb80));_0x272a07['setSelection'](_0x1dc94a),_0x4b97b1['commands']['get'](_0x18be58)['refresh'](),_0x52b208['push']({'forceDefaultExecution':!0x0}),_0x4b97b1['execute'](_0x18be58,..._0x52b208);const _0x394b0a=_0x568352['filter'](_0x23759b=>'$graveyard'!=_0x23759b['root']['rootName']);_0x394b0a['length']>0x0&&_0x272a07['setSelection'](_0x394b0a);for(const _0x401a18 of _0x568352)_0x401a18['detach']();});};}_getCoordsForCells(_0x140a3e){const _0x989473=this['editor']['plugins']['get']('TableUtils');let _0x33af06=Number['MAX_SAFE_INTEGER'],_0x39db40=Number['MIN_SAFE_INTEGER'],_0x2418c7=Number['MAX_SAFE_INTEGER'],_0x576378=Number['MIN_SAFE_INTEGER'];for(const _0x55360d of _0x140a3e){if('$graveyard'==_0x55360d['root']['rootName'])continue;const {row:_0x508b3a,column:_0x3d38c1}=_0x989473['getCellLocation'](_0x55360d),_0x795c78=_0x55360d['hasAttribute']('rowspan')?_0x55360d['getAttribute']('rowspan')-0x1:0x0,_0x36268c=_0x55360d['hasAttribute']('colspan')?_0x55360d['getAttribute']('colspan')-0x1:0x0;_0x33af06=_0x508b3a<_0x33af06?_0x508b3a:_0x33af06,_0x39db40=_0x508b3a+_0x795c78>_0x39db40?_0x508b3a+_0x795c78:_0x39db40,_0x2418c7=_0x3d38c1<_0x2418c7?_0x3d38c1:_0x2418c7,_0x576378=_0x3d38c1+_0x36268c>_0x576378?_0x3d38c1+_0x36268c:_0x576378;}return{'minRow':_0x33af06,'maxRow':_0x39db40,'minColumn':_0x2418c7,'maxColumn':_0x576378};}_setupColumnsRowsFixing(){const _0x5e45c1=this['editor'],_0x14dbb8=_0x5e45c1['plugins']['get']('TrackChangesEditing'),_0x1cdcaf=_0x5e45c1['plugins']['get']('TableUtils');_0x5e45c1['model']['document']['on']('change:data',()=>{const _0x46763c=Array['from'](_0x5e45c1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42cf16,data:_0x1b768d}of _0x46763c){const {group:_0x4ead31,id:_0x2edcc3,subType:_0x3a2836}=tt(_0x42cf16);if('suggestion'!=_0x4ead31)continue;if(null!=_0x1b768d['oldRange'])continue;const _0x152827=_0x14dbb8['getSuggestion'](_0x2edcc3);this['_tablePostFixingSubtypes']['includes'](_0x3a2836)&&this['_tableSuggestions']['add'](_0x152827);}},{'priority':'low'});const _0x431ce1=(_0x2f9748,_0xe9cdb8)=>{let _0x2b92f5=!0x1;const _0x2e43c3=_0xe9cdb8['createRangeOn'](_0x2f9748),_0xb299c8=_0x2f9748['findAncestor']('table'),_0x39c6cb=_0x1cdcaf['getCellLocation'](_0x2f9748);for(const _0x328658 of this['_tableSuggestions']){const _0x8d5674=_0x328658['subType'],_0x33e69e=_0x8d5674['startsWith']('tablePaste'),_0x53417e=_0x8d5674['substr'](_0x33e69e?0xa:0x5),_0x18a8be=_0x53417e['toLowerCase'](),_0x46a9c7=_0x18a8be['substr'](0x0,0x3)+'span',_0x59e2b2='min'+_0x53417e,_0x361643='max'+_0x53417e;if(!_0x328658['isInContent'])continue;if(_0xb299c8!=_0x328658['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x328658['isIntersectingWithRange'](_0x2e43c3))continue;const _0x292ec9=_0x2f9748['hasAttribute'](_0x46a9c7)?_0x2f9748['getAttribute'](_0x46a9c7)-0x1:0x0,_0x939efd=this['_getSuggestionCoords'](_0x328658),_0x9ead1b=_0x939efd[_0x59e2b2],_0x45980e=_0x939efd[_0x361643];_0x9ead1b<=_0x39c6cb[_0x18a8be]&&_0x39c6cb[_0x18a8be]+_0x292ec9<=_0x45980e&&(_0x328658['addRange'](_0x2e43c3),_0x2b92f5=!0x0);}return _0x2b92f5;};_0x5e45c1['model']['document']['registerPostFixer'](_0x40f055=>{let _0x26fe16=!0x1;for(const _0x595ea7 of _0x5e45c1['model']['document']['differ']['getChanges']())if('insert'==_0x595ea7['type']){if('tableRow'==_0x595ea7['name']){for(const _0x589fd2 of _0x595ea7['position']['nodeAfter']['getChildren']())_0x26fe16=_0x26fe16||_0x431ce1(_0x589fd2,_0x40f055);}else'tableCell'==_0x595ea7['name']&&(_0x26fe16=_0x26fe16||_0x431ce1(_0x595ea7['position']['nodeAfter'],_0x40f055));}return _0x26fe16;});}_getSuggestionCoords(_0x36e0c1){return this['_getCoordsForCells'](_0x36e0c1['getRanges']()['map'](_0xf785d=>_0xf785d['start']['nodeAfter']));}};function Pe(_0x5c7268){return Array['from'](new Set(_0x5c7268)['values']());}var xe=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x2f1a16=this['editor'],_0x38aa15=_0x2f1a16['model']['document']['selection'],_0x55b725=_0x2f1a16['locale'];if(!_0x2f1a16['plugins']['has']('TableEditing'))return;const _0x4d2fc3=_0x2f1a16['plugins']['get']('TrackChangesEditing'),_0x4360f6=_0x2f1a16['plugins']['get']('TableUtils'),_0x555ad0=_0x2f1a16['plugins']['get'](Ue);_0x555ad0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4d2fc3['enableCommand']('mergeTableCells',()=>{const _0x124621=_0x4360f6['getSelectionAffectedTableCells'](_0x2f1a16['model']['document']['selection']);_0x2f1a16['model']['change'](()=>{_0x4d2fc3['markMultiRangeBlockFormat'](_0x124621,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2f1a16['commands']['get']('mergeTableCells')['on']('execute',(_0x10c7bd,_0x1c3219)=>{_0x2f1a16['commands']['get']('trackChanges')['value']&&(_0x1c3219['length']>0x0&&_0x1c3219[_0x1c3219['length']-0x1]&&_0x1c3219[_0x1c3219['length']-0x1]['forceDefaultExecution']||_0x4d2fc3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x10c7bd['stop']());},{'priority':'highest'});for(const _0x243e07 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x47dad8=_0x2f1a16['commands']['get'](_0x243e07);_0x4d2fc3['enableCommand'](_0x243e07,()=>{const _0x312d98=_0x2f1a16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d5a51=>_0x2d5a51['is']('element','tableCell')),_0x5d18f5=_0x47dad8['value'];_0x2f1a16['model']['change'](()=>{_0x4d2fc3['markMultiRangeBlockFormat']([_0x312d98,_0x5d18f5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x217e1f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5a0313=_0x2f1a16['commands']['get'](_0x217e1f);_0x4d2fc3['enableCommand'](_0x217e1f,()=>{const _0xaab927=_0x4360f6['getSelectionAffectedTableCells'](_0x2f1a16['model']['document']['selection']),_0x1e37d8=_0xaab927[0x0]['findAncestor']('table'),_0x4346d0=new Set();for(const _0x1c7717 of _0xaab927){const {column:_0x484d3c,row:_0x256d15}=_0x4360f6['getCellLocation'](_0x1c7717),_0x43105e='horizontally'==_0x5a0313['direction']?_0x4360f6['createTableWalker'](_0x1e37d8,{'startRow':_0x256d15,'endRow':_0x256d15,'includeAllSlots':!0x0}):_0x4360f6['createTableWalker'](_0x1e37d8,{'column':_0x484d3c,'includeAllSlots':!0x0});for(const {cell:_0x5e447a}of _0x43105e)_0x4346d0['add'](_0x5e447a);}_0x2f1a16['model']['change'](()=>{_0x4d2fc3['markMultiRangeBlockFormat'](_0xaab927,{'commandName':_0x217e1f,'commandParams':[]},Array['from'](_0x4346d0),_0x217e1f);});});}_0x4d2fc3['descriptionFactory']['registerDescriptionCallback'](_0x5945bf=>{if('formatBlock'!=_0x5945bf['type']&&'formatInline'!=_0x5945bf['type'])return;const {data:_0x33c4e8}=_0x5945bf;return _0x33c4e8&&'mergeTableCells'==_0x33c4e8['commandName']?{'type':'format','content':Mt(_0x55b725,'*Merge\x20cells*')}:void 0x0;}),_0x4d2fc3['descriptionFactory']['registerDescriptionCallback'](_0x5520da=>{if('formatBlock'!=_0x5520da['type']&&'formatInline'!=_0x5520da['type'])return;const {data:_0x150660}=_0x5520da;return _0x150660?'splitTableCellVertically'==_0x150660['commandName']?{'type':'format','content':Mt(_0x55b725,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x150660['commandName']?{'type':'format','content':Mt(_0x55b725,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x39527e=_0x555ad0['_acceptFormatSuggestionCallbackFactory']();for(const _0x5f2df5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4d2fc3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f2df5,'accept',_0x39527e);for(const _0x346817 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4d2fc3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x346817,'accept',_0x4b2e5e=>{_0x2f1a16['model']['change'](_0x40d9eb=>{const _0x2e17b5=Array['from'](_0x4b2e5e)['filter'](_0x225ec7=>'$graveyard'!=_0x225ec7['root']['rootName']&&!!_0x225ec7['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x2e17b5['length'])return;const _0x3e0271=Array['from'](_0x38aa15['getRanges']())['map'](_0x3669a7=>rt['fromRange'](_0x3669a7));_0x40d9eb['setSelection'](_0x2e17b5),_0x2f1a16['commands']['get'](_0x346817)['refresh'](),_0x2f1a16['execute'](_0x346817,{'forceDefaultExecution':!0x0});const _0x4b69ab=_0x3e0271['filter'](_0x18e24d=>'$graveyard'!=_0x18e24d['root']['rootName']);_0x4b69ab['length']>0x0&&_0x40d9eb['setSelection'](_0x4b69ab);for(const _0x110359 of _0x3e0271)_0x110359['detach']();});});_0x4d2fc3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16fae3=>{_0x2f1a16['model']['change'](_0x4fa058=>{const _0x4e9c2c=Array['from'](_0x38aa15['getRanges']())['map'](_0x1761fa=>rt['fromRange'](_0x1761fa));_0x4fa058['setSelection'](_0x16fae3),_0x2f1a16['commands']['get']('mergeTableCells')['refresh'](),_0x2f1a16['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1e14af=_0x4e9c2c['filter'](_0x52c98f=>'$graveyard'!=_0x52c98f['root']['rootName']);_0x1e14af['length']>0x0&&_0x4fa058['setSelection'](_0x1e14af);for(const _0x49a9da of _0x4e9c2c)_0x49a9da['detach']();});});for(const _0xf24875 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x33165e=_0x2f1a16['commands']['get'](_0xf24875);_0x33165e['on']('set:isEnabled',(_0x570c31,_0x3b0811,_0x3fa9c0)=>{if(_0x3fa9c0){const _0x1b636e=_0x2f1a16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7669f4=>_0x7669f4['is']('element','tableCell'));this['_areMergableCells'](_0x33165e['value'],_0x1b636e)||(_0x570c31['return']=!0x1,_0x570c31['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0xbbd189=this['editor']['commands']['get']('mergeTableCells'),_0x10a7bf=this['editor']['plugins']['get']('TableUtils');if(!_0xbbd189['isEnabled'])return!0x1;const _0x2a6578=_0x10a7bf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x7674e9 of _0x2a6578)for(const _0x1d44c1 of _0x2a6578)if(_0x7674e9!=_0x1d44c1&&!this['_areMergableCells'](_0x7674e9,_0x1d44c1))return!0x1;return!0x0;}['_areMergableCells'](_0x21b2c1,_0x1b89d3){const _0xcf840c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34756e=this['editor']['model']['createRangeOn'](_0x21b2c1),_0x123ecd=this['editor']['model']['createRangeOn'](_0x1b89d3),_0x3c6bbb=new Set(),_0x273467=new Set();for(const _0x2c43ef of _0xcf840c['getSuggestions']())if(('insertion'==_0x2c43ef['type']||'deletion'==_0x2c43ef['type']||'mergeTableCells'==_0x2c43ef['subType'])&&_0x2c43ef['isInContent']){for(const _0x9dc60 of _0x2c43ef['getRanges']())_0x9dc60['containsRange'](_0x34756e,!0x0)&&_0x3c6bbb['add'](_0x2c43ef['type']+':'+_0x2c43ef['author']['id']),_0x9dc60['containsRange'](_0x123ecd,!0x0)&&_0x273467['add'](_0x2c43ef['type']+':'+_0x2c43ef['author']['id']);}if(_0x3c6bbb['size']!=_0x273467['size'])return!0x1;for(const _0x17141d of _0x3c6bbb)if(!_0x273467['has'](_0x17141d))return!0x1;return!0x0;}},Ge=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x40a236=this['editor'];if(!_0x40a236['plugins']['has']('TableEditing'))return;const _0x3e4c0d=_0x40a236['locale'],_0x25e109=_0x40a236['plugins']['get']('TrackChangesEditing');_0x25e109['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x25e109['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x25e109['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x3e4c0d,'FORMAT_HEADER_ROW')),_0x25e109['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x3e4c0d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x313c81=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc4a885=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x313c81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc4a885),_0x313c81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc4a885),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x28892a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ff9fd=this['editor']['plugins']['get']('TableUtils');function _0x3caa11({showActiveMarker:_0x238fee=!0x0,setDataAttribute:_0x4d6523=!0x0}={}){return(_0x56a39f,_0x350997,_0x3386a8)=>{const {type:_0x2aad8a,id:_0x11e5c8}=tt(_0x350997['markerName']);if(!_0x28892a['hasSuggestion'](_0x11e5c8))return;const _0x385ea8=_0x28892a['getSuggestion'](_0x11e5c8),_0x5272bd=_0x385ea8['data'];if('formatBlock'!=_0x385ea8['type']||!_0x5272bd||'setTableColumnHeader'!=_0x5272bd['commandName'])return;if(_0x350997['item'])return void _0x56a39f['stop']();if(!_0x3386a8['consumable']['consume'](_0x350997['markerRange'],_0x56a39f['name']))return;const _0x2c58f0=_0x350997['markerRange']['start']['nodeAfter'],_0x349692=_0x350997['markerRange']['end']['nodeBefore'],_0x43b62a=_0x2c58f0['parent']['parent'],{column:_0x2e1af6}=_0x1ff9fd['getCellLocation'](_0x2c58f0),{column:_0x18b83c}=_0x1ff9fd['getCellLocation'](_0x349692);for(let _0x5b86bb=_0x2e1af6;_0x5b86bb<=_0x18b83c;_0x5b86bb++){const _0x7a95d0=_0x1ff9fd['createTableWalker'](_0x43b62a,{'column':_0x5b86bb,'includeAllSlots':!0x1});for(const _0x1bc035 of _0x7a95d0){const _0x1d8e0e=_0x1bc035['cell'],_0x2696a7=_0x3386a8['mapper']['toViewElement'](_0x1d8e0e);_0x3386a8['writer']['addClass']('ck-suggestion-marker-'+_0x2aad8a,_0x2696a7),_0x4d6523&&_0x3386a8['writer']['setAttribute']('data-suggestion',_0x11e5c8,_0x2696a7),_0x3386a8['mapper']['bindElementToMarker'](_0x2696a7,_0x350997['markerName']),_0x238fee&&(_0x28892a['activeMarkers']['includes'](_0x350997['markerName'])?_0x3386a8['writer']['addClass']('ck-suggestion-marker--active',_0x2696a7):_0x3386a8['writer']['removeClass']('ck-suggestion-marker--active',_0x2696a7));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3caa11(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x243507,_0x1abb5e,_0x45b0ce)=>{_0x45b0ce['options']['showSuggestionHighlights']&&_0x3caa11({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x243507,_0x1abb5e,_0x45b0ce);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x393634,_0x138f87,_0x4a0e88)=>{const {type:_0x5992c,id:_0x2f1c38}=tt(_0x138f87['markerName']);if(!_0x28892a['hasSuggestion'](_0x2f1c38))return;const _0x541b4d=_0x28892a['getSuggestion'](_0x2f1c38),_0x19c207=_0x541b4d['data'];if('formatBlock'!=_0x541b4d['type']||!_0x19c207||'setTableColumnHeader'!=_0x19c207['commandName'])return;const _0x16b3ab=_0x4a0e88['mapper']['markerNameToElements'](_0x138f87['markerName']);if(_0x16b3ab){for(const _0x663ee2 of _0x16b3ab)_0x4a0e88['writer']['removeClass']('ck-suggestion-marker-'+_0x5992c,_0x663ee2),_0x4a0e88['writer']['removeClass']('ck-suggestion-marker--active',_0x663ee2),_0x4a0e88['writer']['removeAttribute']('data-suggestion',_0x663ee2),_0x4a0e88['mapper']['unbindElementFromMarkerName'](_0x663ee2,_0x138f87['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x134ce0=this['editor'],_0x1af56b=_0x134ce0['locale'];function _0x1ce2f2(_0x34d3d6){return{'type':'format','content':Mt(_0x1af56b,'*Format:*\x20%0',_0x34d3d6)};}_0x134ce0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9926=>{if('formatBlock'!=_0x3e9926['type'])return;const {data:_0x5d227e}=_0x3e9926;return _0x5d227e?'setTableRowHeader'==_0x5d227e['commandName']?_0x5d227e['commandParams'][0x0]['forceValue']?_0x1ce2f2(Mt(_0x1af56b,'FORMAT_HEADER_ROW')):_0x1ce2f2(Mt(_0x1af56b,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x5d227e['commandName']?_0x5d227e['commandParams'][0x0]['forceValue']?_0x1ce2f2(Mt(_0x1af56b,'FORMAT_HEADER_COLUMN')):_0x1ce2f2(Mt(_0x1af56b,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x110263=this['editor'];if(!_0x110263['plugins']['has']('TableEditing')||!_0x110263['config']['get']('table.enableFooters'))return;const _0x2f2315=_0x110263['locale'],_0x4b6dd0=_0x110263['plugins']['get']('TrackChangesEditing');_0x4b6dd0['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4b6dd0['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x2f2315,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x5ba5d4{afterInit(){const _0x5044d4=this['editor'],_0x410f5e=_0x5044d4['locale'],_0x5e141b=_0x5044d4['plugins']['get']('TrackChangesEditing');function _0x329466(_0x3e7bab){return{'type':'format','content':''+Mt(_0x410f5e,'*Set\x20table\x20type:*\x20%0',_0x3e7bab)};}_0x5044d4['plugins']['has']('TableLayout')&&(_0x5e141b['enableCommand']('insertTableLayout'),_0x5e141b['enableDefaultAttributesIntegration']('tableType'),_0x5e141b['descriptionFactory']['registerElementLabel'](_0x4407cb=>_0x4407cb['is']('element','table')&&'layout'===_0x4407cb['getAttribute']('tableType'),_0x4a8df6=>Mt(_0x410f5e,'ELEMENT_LAYOUT_TABLE',_0x4a8df6)),_0x5e141b['descriptionFactory']['registerDescriptionCallback'](_0x3cf336=>{const {data:_0x7653ad}=_0x3cf336;if(_0x7653ad&&'tableType'==_0x7653ad['key'])switch(_0x7653ad['newValue']){case'layout':return _0x329466(Mt(_0x410f5e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x329466(Mt(_0x410f5e,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](We['map'](_0x20dadb=>[_0x20dadb,null]));var je=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0xe5ea9a=this['editor'];if(!_0xe5ea9a['plugins']['has']('TableClipboard'))return;const _0x2733a0=_0xe5ea9a['plugins']['get']('TrackChangesEditing'),_0x31d359=_0xe5ea9a['plugins']['get']('TableUtils'),_0x2a3646=_0xe5ea9a['plugins']['get'](Ue),_0x49becb=_0xe5ea9a['plugins']['get']('TableClipboard'),_0xf84366=_0xe5ea9a['plugins']['get']('TableSelection'),_0x17085e=_0xe5ea9a['plugins']['get'](gt);_0x2a3646['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xe5ea9a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xe5ea9a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d65bb=null,_0x4af2bc=!0x1;_0x17085e['on']('contentInsertion',(_0x73a8f0,_0x2bd253)=>{_0x4af2bc='paste'===_0x2bd253['method'];}),_0xe5ea9a['model']['on']('insertContent',(_0xc148a1,_0x4cc5c6)=>{if(!_0x4af2bc&&null===_0xf84366['getSelectedTableCells']())return;const [_0x65bf65,_0x47e8ae]=_0x4cc5c6,_0xe3d86e=_0x4cc5c6[_0x4cc5c6['length']-0x1];_0xe3d86e&&_0xe3d86e['forceDefaultExecution']||_0x2733a0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21b83d,_0x528657,_0x1e002c,_0x57b8b4,_0x4b3eb4){if(_0x528657&&!_0x528657['is']('documentSelection'))return!0x1;const _0x23c001=_0x4b3eb4['getTableIfOnlyTableInContent'](_0x21b83d,_0x1e002c);if(!_0x23c001||!Ke(_0x23c001,void 0x0,_0x57b8b4))return!0x1;const _0x4aba34=_0x57b8b4['getSelectionAffectedTableCells'](_0x1e002c['document']['selection']);if(!_0x4aba34['length'])return!0x1;const _0x8c006a=_0x4aba34[0x0]['findAncestor']('table'),_0x279072=_0x57b8b4['getRowIndexes'](_0x4aba34),_0x54e24f=_0x57b8b4['getColumnIndexes'](_0x4aba34),_0x1885f6={'startRow':_0x279072['first'],'endRow':_0x279072['last'],'startColumn':_0x54e24f['first'],'endColumn':_0x54e24f['last']};return 0x1==_0x4aba34['length']&&(_0x1885f6['endRow']+=_0x57b8b4['getRows'](_0x23c001)-0x1,_0x1885f6['endColumn']+=_0x57b8b4['getColumns'](_0x23c001)-0x1),Ke(_0x8c006a,_0x1885f6,_0x57b8b4);}(_0x65bf65,_0x47e8ae,_0xe5ea9a['model'],_0x31d359,_0x49becb)&&(_0xc148a1['stop'](),_0x1d65bb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xe5ea9a['model']['change'](()=>{_0xe5ea9a['model']['insertContent'](_0x4cc5c6[0x0],_0x4cc5c6[0x1],_0x4cc5c6[0x2],{'forceDefaultExecution':!0x0});const _0xd3213d=_0x38eda5(),{rowInsertionRanges:_0x97148a,columnInsertionRanges:_0x53cd6c,insertionRanges:_0x4cc46f,deletionRanges:_0x2c2d5a,cells:_0x47a62f}=_0x1d65bb;_0x97148a['length']&&_0x2733a0['markMultiRangeInsertion'](_0x97148a,'tablePasteRow',{'tablePasteChainId':_0xd3213d}),_0x53cd6c['length']&&_0x2733a0['markMultiRangeInsertion'](_0x53cd6c,'tablePasteColumn',{'tablePasteChainId':_0xd3213d}),_0x4cc46f['length']&&(_0x2733a0['markMultiRangeInsertion'](_0x4cc46f,'tablePaste',{'tablePasteChainId':_0xd3213d,'skipNestingCheck':!0x0}),_0x4cc46f['forEach'](_0x38bcd0=>_0x38bcd0['detach']?.())),_0x2c2d5a['length']&&(_0x2733a0['markMultiRangeDeletion'](_0x2c2d5a,'tablePaste',{'tablePasteChainId':_0xd3213d,'skipNestingCheck':!0x0}),_0x2c2d5a['forEach'](_0x46485a=>_0x46485a['detach']?.()));const _0x44269d=_0x2733a0['markMultiRangeBlockFormat'](_0x47a62f['map'](({element:_0x3ba526})=>_0x3ba526),{'formatGroupId':_0x38eda5()},[],'tablePasteCell',{'tablePasteChainId':_0xd3213d});if(_0x44269d){const _0x45fa6b=_0x44269d['getMarkers'](),_0xdcb923=[];for(const {element:_0x49b294,attributes:_0x592587}of _0x47a62f){if(!_0x592587)continue;const _0x2e2bee=_0xe5ea9a['model']['createRangeOn'](_0x49b294),_0x380a6e=_0x45fa6b['find'](_0x5d30a6=>_0x5d30a6['getRange']()['isEqual'](_0x2e2bee));_0x380a6e&&_0xdcb923['push']([_0x380a6e['name'],_0x592587]);}_0xdcb923['length']&&_0x44269d['setAttribute']('markerAttributes',Object['fromEntries'](_0xdcb923));}_0x1d65bb=null;}));},{'priority':_0x1f9ee9['high']+0xa}),_0x17085e['on']('contentInsertion',()=>{_0x4af2bc=!0x1;},{'priority':'lowest'}),_0xe5ea9a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ae46e,_0x3c3009)=>{const [_0x4d258d,_0x4d1829,,_0x443cc8]=_0x3c3009;if(!_0x1d65bb)return;_0x2ae46e['stop']();const _0x175fae=_0x4d258d['cell'],_0x3fea98=_0x4d1829,_0x282a40=ze(_0x175fae),_0x27b196=ze(_0x3fea98);_0x2ae46e['return']=_0x175fae;let _0x40289c=null,_0x5f4eb8=null;if(_0x27b196||_0x282a40){if(_0x282a40&&!_0x27b196){_0x443cc8['remove'](_0x175fae['getChild'](0x0));for(const _0x950957 of Array['from'](_0x3fea98['getChildren']()))_0x443cc8['insert'](_0x950957,_0x175fae,'end');const _0xf97c92=_0x1d65bb['rowInsertionIndexes']['includes'](_0x4d258d['row']),_0x5b3506=_0x1d65bb['columnInsertionIndexes']['includes'](_0x4d258d['column']);_0xf97c92||_0x5b3506||(_0x40289c=rt['fromRange'](_0x443cc8['createRangeIn'](_0x175fae)));}else _0x27b196&&!_0x282a40&&(_0x5f4eb8=_0x443cc8['createRangeIn'](_0x175fae));}else{const _0x2bcc11=_0x443cc8['createElement']('tableCellSuggestion'),_0x5d8a60=_0x443cc8['createElement']('tableCellSuggestion');_0x443cc8['wrap'](_0x443cc8['createRangeIn'](_0x175fae),_0x5d8a60),_0x443cc8['insert'](_0x2bcc11,_0x175fae,0x0);for(const _0x3910eb of Array['from'](_0x3fea98['getChildren']()))_0x443cc8['insert'](_0x3910eb,_0x2bcc11,'end');_0x40289c=rt['fromRange'](_0x443cc8['createRangeOn'](_0x2bcc11)),_0x5f4eb8=rt['fromRange'](_0x443cc8['createRangeOn'](_0x5d8a60));}const _0x36b939=Array['from'](_0x3fea98['getAttributes']())['filter'](([_0x48a02d])=>We['includes'](_0x48a02d));_0x1d65bb['cells']['push']({'element':_0x175fae,'attributes':_0x36b939['length']?Object['fromEntries'](_0x36b939):null}),_0x40289c&&_0x1d65bb['insertionRanges']['push'](_0x40289c),_0x5f4eb8&&_0x1d65bb['deletionRanges']['push'](_0x5f4eb8);},{'priority':'high'}),_0x31d359['on']('insertColumns',(_0x549840,_0x20741b)=>{const [_0xc4f653,_0x56f5a7={}]=_0x20741b;if(!_0x1d65bb)return;const _0x1fbe9f=_0x56f5a7['at']||0x0,_0x46c464=_0x56f5a7['columns']||0x1;_0x1d65bb['columnInsertionIndexes']=new Array(_0x46c464)['fill'](_0x1fbe9f)['map']((_0x5dee69,_0x292968)=>_0x5dee69+_0x292968);for(const {cell:_0x4011d4}of _0x31d359['createTableWalker'](_0xc4f653,{'startColumn':_0x1fbe9f,'endColumn':_0x1fbe9f+_0x46c464-0x1}))_0x1d65bb['columnInsertionRanges']['push'](_0xe5ea9a['model']['createRangeOn'](_0x4011d4));},{'priority':'low'}),_0x31d359['on']('insertRows',(_0x58f1d2,_0x5195ee)=>{const [_0x52267d,_0x221f3d={}]=_0x5195ee;if(!_0x1d65bb)return;const _0xed42b4=_0x221f3d['at']||0x0,_0x43b95c=_0x221f3d['rows']||0x1;_0x1d65bb['rowInsertionIndexes']=new Array(_0x43b95c)['fill'](_0xed42b4)['map']((_0x2efc20,_0x410708)=>_0x2efc20+_0x410708);for(const {cell:_0x5617d8}of _0x31d359['createTableWalker'](_0x52267d,{'startRow':_0xed42b4,'endRow':_0xed42b4+_0x43b95c-0x1}))_0x1d65bb['rowInsertionRanges']['push'](_0xe5ea9a['model']['createRangeOn'](_0x5617d8));},{'priority':'low'}),_0x2733a0['descriptionFactory']['registerDescriptionCallback'](_0x1357cf=>{if(_0x1357cf['subType']&&_0x1357cf['subType']['startsWith']('tablePaste'))return _0x1357cf['previous']?{}:{'type':'insertion','content':Mt(_0xe5ea9a['locale'],'*Replace\x20table\x20cells*')};});const _0x3cff1d=()=>!0x1;for(const _0x236276 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2733a0['_suggestionFactory']['registerCustomCallback']('insertion',_0x236276,'join',_0x3cff1d),_0x2733a0['_suggestionFactory']['registerCustomCallback']('deletion',_0x236276,'join',_0x3cff1d),_0x2733a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x236276,'join',_0x3cff1d);_0x2733a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3cff1d),_0x2733a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x468df1,_0x4fca03,_0x1c6c01)=>{const _0x1ae44d=_0x468df1['map'](_0x5ccdea=>_0x5ccdea['getContainedElement']())['filter'](_0x14bbba=>_0x14bbba),_0x4d5679=new Map(_0x1ae44d['map'](_0x44d583=>[_0x44d583,null]));if(_0x1d65bb){for(const {element:_0x252685,attributes:_0x29ce06}of _0x1d65bb['cells'])_0x29ce06&&_0x4d5679['set'](_0x252685,_0x29ce06);}else{if(_0x1c6c01&&_0x1c6c01['markerAttributes'])for(const [_0x1164c1,_0x4c6844]of Object['entries'](_0x1c6c01['markerAttributes'])){const _0x1d22a0=_0xe5ea9a['model']['markers']['get'](_0x1164c1),_0xd1d956=_0x1d22a0?_0x1d22a0['getRange']()['getContainedElement']():null;_0xd1d956&&_0x4d5679['set'](_0xd1d956,_0x4c6844);}}_0xe5ea9a['model']['change'](_0x17ef45=>{for(const [_0x2cc88a,_0x3ace31]of _0x4d5679)_0x17ef45['setAttributes']({...Ve,..._0x3ace31},_0x2cc88a);});});const _0x1ff941=(_0x194ba3,_0x22ed5f)=>{_0x2733a0['_suggestionFactory']['registerCustomCallback'](_0x194ba3,'tablePaste',_0x22ed5f,(_0x28d0e3,_0x1c4119,_0x172bec)=>{_0xe5ea9a['model']['change'](_0x118c50=>{const _0x42193a=[];for(const _0x4cd4bf of _0x28d0e3){const _0x3e004a=_0x4cd4bf['start']['nodeAfter'];_0x3e004a['is']('element','tableCellSuggestion')&&_0x42193a['push'](_0x3e004a);}_0x2733a0['_suggestionFactory']['getSuggestionCallback'](_0x194ba3,null,_0x22ed5f)(_0x28d0e3,_0x1c4119,_0x172bec);for(const _0xe2daa5 of _0x42193a)'$graveyard'!=_0xe2daa5['root']['rootName']&&_0x118c50['unwrap'](_0xe2daa5);});});};_0x1ff941('insertion','accept'),_0x1ff941('insertion','discard'),_0x1ff941('deletion','accept'),_0x1ff941('deletion','discard'),_0x2733a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x170f7b=>{const _0x578730=_0x170f7b['map'](_0x5e4f8b=>_0x5e4f8b['getContainedElement']()),_0x364a3a=_0x578730[0x0]['findAncestor']('table'),{minRow:_0x85a545,maxRow:_0x3f8e48}=_0x2a3646['_getCoordsForCells'](_0x578730);_0x31d359['removeRows'](_0x364a3a,{'at':_0x85a545,'rows':_0x3f8e48-_0x85a545+0x1});}),_0x2733a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2eb0a1=>{const _0x1afa86=_0x2eb0a1['map'](_0xf07f72=>_0xf07f72['getContainedElement']()),_0x48a6d5=_0x1afa86[0x0]['findAncestor']('table'),{minColumn:_0xd2d0e6,maxColumn:_0x237d6c}=_0x2a3646['_getCoordsForCells'](_0x1afa86);_0x31d359['removeColumns'](_0x48a6d5,{'at':_0xd2d0e6,'columns':_0x237d6c-_0xd2d0e6+0x1});});const _0x36aba1=(_0x1a21b9,_0x33c602)=>{if(!_0x33c602['subType']||!_0x33c602['subType']['startsWith']('tablePaste'))return;const _0x15e262=_0x33c602['attributes']['tablePasteChainId'],_0x28b532=_0x2733a0['getSuggestions']()['filter'](_0x41d00e=>_0x41d00e['isInContent']&&_0x41d00e['attributes']&&_0x41d00e['attributes']['tablePasteChainId']==_0x15e262);_0x28b532['length']&&_0x33c602['getAllAdjacentSuggestions']()['length']!=_0x28b532['length']&&_0x28b532['reduce']((_0x5c99a7,_0x1155e8)=>(_0x5c99a7['next']=_0x1155e8,_0x1155e8['previous']=_0x5c99a7,_0x1155e8));};function _0x2abe0a(_0x506199,_0x212df1=!0x0){const {id:_0x5326e1,authorId:_0x4207f2}=tt(_0x506199['markerName']),_0x59a103=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2671a1=_0x2733a0['activeMarkers']['includes'](_0x506199['markerName']);return _0x2671a1&&_0x59a103['push']('ck-suggestion-marker--active'),{'classes':_0x59a103,'attributes':{'data-suggestion':_0x5326e1,'data-author-id':_0x4207f2},'priority':_0x2671a1&&_0x212df1?0xbc2:0xbb8};}_0x2733a0['on']('suggestionLoaded',_0x36aba1,{'priority':'high'}),_0x2733a0['on']('suggestionUnloaded',_0x36aba1,{'priority':'high'}),_0xe5ea9a['model']['document']['registerPostFixer'](()=>{let _0x1010fa=!0x1;const _0x5ae1ea=Array['from'](_0xe5ea9a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37ffd4,data:_0x5c9cec}of _0x5ae1ea){const {group:_0x50820e,type:_0x41267e,id:_0x345243}=tt(_0x37ffd4);if('suggestion'!=_0x50820e||'deletion'!=_0x41267e||_0x5c9cec['oldRange'])continue;if(!_0x2733a0['hasSuggestion'](_0x345243))continue;const _0x4e29c3=_0x2733a0['getSuggestion'](_0x345243)['getRanges'](),_0x168a44=_0xe5ea9a['plugins']['get']('Users')['me'];for(const _0x373799 of _0x2733a0['getSuggestions']())if(_0x373799['isInContent']&&_0x373799['author']==_0x168a44&&'formatBlock'==_0x373799['type']&&'tablePasteCell'==_0x373799['subType']&&_0x373799['getRanges']()['every'](_0x37914d=>_0x4e29c3['some'](_0x3a2bf0=>_0x3a2bf0['containsRange'](_0x37914d,!0x0)))){for(const _0x39300f of _0x373799['getAllAdjacentSuggestions']())_0x39300f['isInContent']&&(_0x39300f['discard'](),_0x1010fa=!0x0);}}return _0x1010fa;}),_0xe5ea9a['model']['document']['registerPostFixer'](_0x56e430=>{const _0x506c8c=_0xe5ea9a['commands']['get']('redo');if(!_0x506c8c||!_0x506c8c['_createdBatches']['has'](_0x56e430['batch']))return!0x1;let _0x19ae42=!0x1;const _0x11eb82=_0xe5ea9a['plugins']['get']('Users')['me'],_0x5949b3=_0xe5ea9a['model']['document']['differ']['getChanges'](),_0x970f17=Array['from'](_0xe5ea9a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2dc7d3,data:_0x169f23})=>{const {group:_0x29d24f,subType:_0x15a00d,authorId:_0x32d5a9}=tt(_0x2dc7d3);return'suggestion'==_0x29d24f&&'tablePaste'==_0x15a00d&&_0x32d5a9==_0x11eb82['id']&&!_0x169f23['oldRange'];});for(const _0x2262ba of _0x5949b3){if('insert'!=_0x2262ba['type']||'tableCellSuggestion'!=_0x2262ba['name']||0x1!=_0x2262ba['length'])continue;const _0x752001=_0x56e430['createRange'](_0x2262ba['position'],_0x2262ba['position']['getShiftedBy'](0x1));if(!_0x970f17['find'](({data:_0x48de30})=>_0x48de30['newRange']['isEqual'](_0x752001))){for(const {name:_0x487617,data:_0x585238}of _0x970f17)if(_0x752001['containsRange'](_0x585238['newRange'])){_0x56e430['updateMarker'](_0x487617,{'range':_0x752001}),_0x19ae42=!0x0;break;}}}return _0x19ae42;}),_0xe5ea9a['model']['document']['registerPostFixer'](_0x4cd797=>{let _0x1f388f=!0x1;const _0x3c6a0a=_0xe5ea9a['plugins']['get']('Users')['me'],_0x73a70=_0x2733a0['getSuggestions']()['filter'](_0xf0570=>_0xf0570['isInContent']&&_0xf0570['author']==_0x3c6a0a),_0x2aae06=new Set(),_0x2eff14=new Set();for(const _0x3d83e7 of _0x73a70)if('tablePaste'==_0x3d83e7['subType'])for(const _0x350aae of _0x3d83e7['getMarkers']()){const _0x2ce3bd=_0x350aae['getRange']()['getContainedElement']();if(_0x2ce3bd){if(_0x2ce3bd['is']('element','tableCellSuggestion')&&ze(_0x2ce3bd)){_0x3d83e7['removeMarker'](_0x350aae['name']),_0x2aae06['add'](_0x2ce3bd),_0x1f388f=!0x0;const _0x1b53eb=_0x2ce3bd['nextSibling'],_0x2909ed=_0x2ce3bd['previousSibling'],_0x32bbd4=_0x1b53eb&&_0x1b53eb['is']('element','tableCellSuggestion'),_0x2fbe2b=_0x2909ed&&_0x2909ed['is']('element','tableCellSuggestion');_0x32bbd4&&!_0x2aae06['has'](_0x1b53eb)&&_0x2eff14['add'](_0x1b53eb),_0x2fbe2b&&!_0x2aae06['has'](_0x2909ed)&&_0x2eff14['add'](_0x2909ed);}else _0x2ce3bd['is']('element','paragraph')&&_0x2ce3bd['isEmpty']&&(_0x3d83e7['removeMarker'](_0x350aae['name']),_0x1f388f=!0x0);}}else{if('tablePasteCell'==_0x3d83e7['subType']){if(!_0x3d83e7['attributes']||!_0x3d83e7['attributes']['tablePasteChainId'])continue;const _0x401da4=_0x3d83e7['attributes']['markerAttributes'];if(_0x401da4&&Object['keys'](_0x401da4)['length'])continue;const _0x528849=_0x3d83e7['attributes']['tablePasteChainId'];let _0x3932af=!0x0,_0x3a08ec=!0x0;for(const _0x3d4ce0 of _0x73a70)if(_0x3d4ce0['subType']&&_0x3d4ce0['subType']['startsWith']('tablePaste')){if(!_0x3d4ce0['attributes']['tablePasteChainId']){_0x3a08ec=!0x1;break;}if(_0x3d4ce0['id']!=_0x3d83e7['id']&&_0x3d4ce0['attributes']['tablePasteChainId']==_0x528849){_0x3932af=!0x1;break;}}_0x3a08ec&&_0x3932af&&(_0x3d83e7['removeMarkers'](),_0x1f388f=!0x0);}}for(const _0x384bba of _0x2aae06)_0x4cd797['remove'](_0x384bba);for(const _0x2756f4 of _0x2eff14)_0x4cd797['unwrap'](_0x2756f4);return _0x1f388f;}),_0xe5ea9a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3e13b1=>_0x2abe0a(_0x3e13b1),'converterPriority':'high'}),_0xe5ea9a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29b22f,_0x556dcd)=>_0x556dcd['options']['showSuggestionHighlights']?_0x2abe0a(_0x29b22f,!0x1):null,'converterPriority':'high'});const _0x33db91=_0xe5ea9a['editing']['view'];this['listenTo'](_0x33db91['document'],'clipboardOutput',(_0x4f69fd,_0x34821e)=>{const _0x4f146b=[];for(const _0x5ddead of _0x33db91['createRangeIn'](_0x34821e['content'])['getItems']())_0x5ddead['is']('element','suggestion-td')&&_0x4f146b['push'](_0x5ddead);_0x33db91['change'](_0x18ef1b=>{for(const _0x2bedde of _0x4f146b)_0x18ef1b['move'](_0x18ef1b['createRangeIn'](_0x2bedde),_0x18ef1b['createPositionBefore'](_0x2bedde)),_0x18ef1b['remove'](_0x2bedde);});});}};function ze(_0x20a8a5){if(_0x20a8a5['isEmpty'])return!0x0;const _0x53d2da=_0x20a8a5['getChild'](0x0);return _0x53d2da['is']('element','paragraph')&&_0x53d2da['isEmpty'];}function Ke(_0x26b8b3,_0x5453c5={},_0x36a6c6){for(const {isAnchor:_0x4f41a8,cellHeight:_0x376b6a,cellWidth:_0xcbab11}of _0x36a6c6['createTableWalker'](_0x26b8b3,{'includeAllSlots':!0x0,..._0x5453c5}))if(!_0x4f41a8||0x1!=_0x376b6a||0x1!=_0xcbab11)return!0x1;return!0x0;}var Xe=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3cd99b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cd99b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x3cd99b['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x3cd99b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3cd99b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4bd508=_0x3cd99b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x3cd99b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x573a04,_0x4e8a9e)=>{_0x4bd508(_0x573a04,_0x4e8a9e),this['_restoreCellWidths'](_0x573a04[0x0]['start']['nodeAfter'],_0x4e8a9e['commandParams'][0x0]['cellWidths']);}),_0x3cd99b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xde439,_0x1185b8){const _0x2896e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17aeca=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xa39aeb=_0x1185b8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x47959a=_0x17aeca['getColumnGroupElement'](_0xa39aeb);let _0x4dbe4e=_0x47959a?_0x17aeca['getTableColumnsWidths'](_0x47959a):null,_0x307d56=_0xa39aeb['getAttribute']('tableWidth')||null;const _0x15208b=_0x1185b8['tableWidth']||_0x307d56,_0x27c88f=_0x1185b8['columnWidths']||_0x4dbe4e;let _0x55863b=this['_getCellWidths'](_0xa39aeb);const _0xd27744=this['_foldResizeTableSuggestion'](_0xa39aeb);_0xd27744&&(_0x307d56=_0xd27744['tableWidth'],_0x4dbe4e=_0xd27744['columnWidths'],_0x55863b=_0xd27744['cellWidths']||_0x55863b),_0xde439({'table':_0xa39aeb,'tableWidth':_0x15208b,'columnWidths':_0x27c88f}),_0x2896e5['markBlockFormat'](_0xa39aeb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x307d56,'columnWidths':_0x4dbe4e,'cellWidths':_0x55863b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0xf3759e,_0x17208f={}){if(void 0x0===_0x17208f['value']||''===_0x17208f['value'])return void _0xf3759e(_0x17208f);const _0xd6c89d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3211dd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x20d499=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x17208f['batch']||(_0x17208f['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x17208f['batch'],()=>{const _0x3c89a4=_0x3211dd['getColumnGroupElement'](_0x20d499);let _0x501ee3=_0x3c89a4?_0x3211dd['getTableColumnsWidths'](_0x3c89a4):null,_0x64e876=_0x20d499['getAttribute']('tableWidth')||null,_0x18d511=this['_getCellWidths'](_0x20d499);const _0x442120=this['_foldResizeTableSuggestion'](_0x20d499,!0x0);_0x442120&&(_0x64e876=_0x442120['tableWidth'],_0x501ee3=_0x442120['columnWidths'],_0x18d511=_0x442120['cellWidths']||_0x18d511),_0xf3759e(_0x17208f),_0xd6c89d['markBlockFormat'](_0x20d499,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x64e876,'columnWidths':_0x501ee3,'cellWidths':_0x18d511}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x334473,_0x37b8a4=!0x1){const _0x46a7e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x339294=this['editor']['plugins']['get']('Users')['me'];for(const _0x53009f of _0x46a7e4['getSuggestions']({'skipNotAttached':!0x0})){const _0x4cc649=_0x53009f['getContainedElement']();if('resizeTable'===_0x53009f['subType']&&_0x4cc649===_0x334473){_0x53009f['author']!==_0x339294&&(_0x37b8a4?_0x53009f['removeMarkers']():_0x53009f['discard']());const _0x5d34a0=_0x53009f['data']['commandParams'];return{'tableWidth':_0x5d34a0[0x0]['tableWidth'],'columnWidths':_0x5d34a0[0x0]['columnWidths'],'cellWidths':_0x5d34a0[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x15ab12){const _0xe978e2=[];for(const _0x12a752 of _0x15ab12['getChildren']())if(_0x12a752['is']('element','tableRow')){for(const _0x7b08eb of _0x12a752['getChildren']())_0xe978e2['push'](_0x7b08eb['getAttribute']('tableCellWidth')||null);}return _0xe978e2;}_restoreCellWidths(_0x2cdce8,_0x540651){_0x540651&&this['editor']['model']['change'](_0x2677a2=>{let _0x5c5fe5=0x0;for(const _0x301c8e of _0x2cdce8['getChildren']())if(_0x301c8e['is']('element','tableRow'))for(const _0x267c64 of _0x301c8e['getChildren']()){const _0x23ebb2=_0x540651[_0x5c5fe5++];_0x23ebb2&&_0x2677a2['setAttribute']('tableCellWidth',_0x23ebb2,_0x267c64);}});}handleSuggestionDescription(_0x12f53f){if('formatBlock'!=_0x12f53f['type']&&'formatInline'!=_0x12f53f['type'])return;const {data:_0x4de247}=_0x12f53f;return _0x4de247&&'resizeTable'===_0x4de247['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x5ba5d4{afterInit(){const _0x62a406=this['editor'];_0x62a406['plugins']['has']('Template')&&_0x62a406['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x5ba5d4{afterInit(){const _0xbc3022=this['editor'];if(!_0xbc3022['commands']['get']('insertTableOfContents'))return;_0xbc3022['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42fee1=_0xbc3022['plugins']['get']('TrackChangesEditing'),_0x19880f=_0xbc3022['locale'];_0x42fee1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c9874=>Mt(_0x19880f,'ELEMENT_TABLE_OF_CONTENTS',_0x4c9874));}},Qe=class extends _0x5ba5d4{afterInit(){const _0x1c261b=this['editor'];_0x1c261b['plugins']['has']('Title')&&(_0x1c261b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x1c261b['locale'],'ELEMENT_TITLE')),_0x1c261b['model']['document']['registerPostFixer'](_0x256f91=>{let _0x487b23=!0x1;const _0x131148=Array['from'](_0x1c261b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e5697,data:_0x1474bd}of _0x131148){const {group:_0x4d3c22}=tt(_0x4e5697);if('suggestion'!==_0x4d3c22||!_0x1474bd['newRange'])continue;const _0x5b559d=_0x1474bd['newRange'],_0x13df79=_0x5b559d['end']['nodeBefore'];if(!_0x13df79||!_0x13df79['is']('element','title-content'))continue;if(!_0x5b559d['start']['isTouching'](_0x5b559d['end']))continue;const _0x4a4ff1=_0x1c261b['model']['schema']['getNearestSelectionRange'](_0x5b559d['end'],'forward');if(_0x4a4ff1&&_0x4a4ff1['isCollapsed']){const _0x270e18=_0x256f91['createRange'](_0x5b559d['start'],_0x4a4ff1['start']);_0x270e18['isEqual'](_0x5b559d)||(_0x256f91['updateMarker'](_0x4e5697,{'range':_0x270e18}),_0x487b23=!0x0);}_0x487b23||(_0x256f91['removeMarker'](_0x4e5697),_0x487b23=!0x0);}return _0x487b23;}));}},Ze=class extends _0x5ba5d4{afterInit(){const _0x5118ad=this['editor'],_0x31575c=_0x5118ad['plugins']['get']('TrackChangesEditing');_0x5118ad['plugins']['has']('Uploadcare')&&(_0x31575c['enableCommand']('uploadcare'),_0x5118ad['plugins']['has']('UploadcareImageEdit')&&(_0x31575c['enableCommand']('uploadcareImageEdit'),_0x31575c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x31575c['descriptionFactory']['registerDescriptionCallback'](_0x4716d5=>{if('attribute'!=_0x4716d5['type'])return;const {data:_0x480311}=_0x4716d5;return _0x480311&&'uploadcareImageId'==_0x480311['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x5ba5d4{afterInit(){const _0x435442=this['editor'],_0x3fc354=_0x435442['plugins']['get']('TrackChangesEditing');_0x435442['plugins']['has']('UndoEditing')&&(_0x3fc354['enableCommand']('undo'),_0x3fc354['enableCommand']('redo'));}},tn=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x16357c=this['editor'];_0x16357c['plugins']['has']('TableCaptionEditing')&&_0x16357c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x5ba5d4{tableProperties;tableCellProperties;constructor(_0x3dea32){super(_0x3dea32),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0xd4a4d2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5876bd of this['tableProperties'])_0xd4a4d2['enableCommand'](_0x5876bd,(_0x247d01,_0x38f87c)=>{const _0x387ee0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5876bd,[_0x387ee0],this['tableProperties'],'tableProperties',_0x247d01,_0x38f87c);});_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd4a4d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ee52a,_0x4f1ddc)=>this['handleDiscardAction'](this['tableProperties'],_0x2ee52a,_0x4f1ddc)),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3188d5 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3188d5)&&_0xd4a4d2['enableCommand'](_0x3188d5,(_0x2163a2,_0x47df2c)=>{const _0x402519=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3188d5,_0x402519,this['tableCellProperties'],'tableCellProperties',_0x2163a2,_0x47df2c);});_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd4a4d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x115535,_0x4bc37a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x115535,_0x4bc37a)),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xd4a4d2['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xd4a4d2['descriptionFactory']['registerDescriptionCallback'](_0x46dd18=>this['handleSuggestionDescription'](_0x46dd18)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x5e1edb,_0x395b4e,_0x4d3011,_0x579441,_0x299b35,_0x2a707f){const _0x4fa5b1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2a707f['batch'],()=>{for(const _0x33bd84 of _0x395b4e)if(this['_getSuggestion'](_0x33bd84,_0x579441))_0x299b35(_0x2a707f);else{const _0x237b92={};for(const _0x329e8a of _0x4d3011){const _0x56b86a=_0x33bd84['getAttribute'](_0x329e8a);void 0x0!==_0x56b86a&&(_0x237b92[_0x329e8a]=_0x56b86a);}const _0x30f239=this['_getResizedColumnWidths'](_0x33bd84);_0x30f239&&(_0x237b92['columnWidths']=_0x30f239),_0x299b35(_0x2a707f),_0x4fa5b1['markBlockFormat'](_0x33bd84,{'commandParams':[_0x237b92]},[],_0x579441);}});}handleDiscardAction(_0x327133,_0x1c6d31,_0x213c83){const _0x209b55=_0x1c6d31[0x0]['start']['nodeAfter'],_0x2215d6=_0x213c83['commandParams'][0x0];this['editor']['model']['change'](_0x471d92=>{for(const _0x292efd of _0x327133)void 0x0!==_0x2215d6[_0x292efd]?_0x471d92['setAttribute'](_0x292efd,_0x2215d6[_0x292efd],_0x209b55):_0x471d92['removeAttribute'](_0x292efd,_0x209b55);if(_0x2215d6['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x4112c4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x71812b=_0x4112c4['getColumnGroupElement'](_0x209b55);if(_0x71812b){const _0x5302e6=_0x4112c4['getTableColumnsWidths'](_0x71812b),_0x6f8e26=_0x209b55['getAttribute']('tableWidth');if(('string'==typeof _0x6f8e26&&_0x6f8e26['trim']()['endsWith']('px'))!==_0x5302e6['some'](_0x3d9cf5=>'string'==typeof _0x3d9cf5&&_0x3d9cf5['endsWith']('px'))){const _0x157987=_0x4112c4['getTableColumnElements'](_0x71812b);_0x2215d6['columnWidths']['forEach']((_0x527e22,_0x17af8a)=>{_0x157987[_0x17af8a]&&_0x471d92['setAttribute']('columnWidth',_0x527e22,_0x157987[_0x17af8a]);});}}}});}_getResizedColumnWidths(_0x1062cd){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x1062cd['is']('element','table'))return;const _0x52e18f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10dea0=_0x52e18f['getColumnGroupElement'](_0x1062cd);return _0x10dea0?_0x52e18f['getTableColumnsWidths'](_0x10dea0):void 0x0;}handleSuggestionDescription(_0x232313){if(_0x232313['data'])switch(_0x232313['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x3e5da2,_0x246b4c){const _0x1921a6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4f7e74 of _0x1921a6['getSuggestions']({'skipNotAttached':!0x0})){const _0xc6c5cc=_0x4f7e74['getContainedElement']();if(_0x4f7e74['subType']===_0x246b4c&&_0xc6c5cc===_0x3e5da2)return _0x4f7e74;}return null;}_registerTablePropertiesAttributes(){const _0x10b3c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cc7f6=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x44c76d of _0x2cc7f6){const _0x547d78=_0x44c76d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x10b3c9['descriptionFactory']['registerAttributeLabel'](_0x44c76d,Mt(this['editor']['locale'],'FORMAT_'+_0x547d78));}}},nn=class extends _0x5ba5d4{afterInit(){const _0x2fd671=this['editor'];if(!_0x2fd671['plugins']['has']('LineHeight'))return;const _0x502be6=_0x2fd671['plugins']['get']('TrackChangesEditing'),_0x319c7e=_0x2fd671['locale'];_0x502be6['enableDefaultAttributesIntegration']('lineHeight'),_0x502be6['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x319c7e,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x8313be){return'marker'==_0x8313be['type']&&_0x8313be['name']['startsWith']('$markedRemove');}function on(_0x576d63){return _0x576d63?[_0x576d63]:[];}var an=class extends _0x5ba5d4{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x5efbfe,_0x5b8360,_0x5d6c79,_0x5b5e96,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x263af7){super(_0x263af7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4418fe,_0x363a4c,_0x2542af,_0x1ba080)=>{this['_model']['change'](()=>{for(const _0x1102ba of[..._0x1ba080,..._0x2542af])this['_model']['markers']['has'](_0x1102ba)&&_0x263af7['editing']['reconvertMarker'](_0x1102ba);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new cn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x263af7['plugins']['get'](_0x5efbfe),this['_suggestionsConversion']=_0x263af7['plugins']['get'](_0x5b8360),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x263af7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x263af7['config']['get']('trackChanges.trackFormatChanges'),_0x263af7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x263af7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x263af7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x289af5=this['editor'];_0x289af5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4f3ba8,{writer:_0x2316e2})=>{let _0x129f41='suggestion:'+_0x4f3ba8['getAttribute']('suggestion-type')+':'+_0x4f3ba8['getAttribute']('id');return _0x4f3ba8['getAttribute']('marker-count')&&(_0x129f41+=':'+_0x4f3ba8['getAttribute']('marker-count')),_0x2316e2['createElement']('$marker',{'data-name':_0x129f41});}}),_0x289af5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x289af5['model']['document']['registerPostFixer'](_0x515baf=>{let _0x16eea0=!0x1;const _0x441d15=Array['from'](_0x289af5['model']['document']['differ']['getChangedMarkers']()),_0x5801b6=new Set();for(const {name:_0x4b7a10,data:_0x425359}of _0x441d15){const {group:_0x298dec,type:_0x171425,subType:_0x2a2f2f,id:_0xa64dc9}=tt(_0x4b7a10);if('suggestion'!==_0x298dec)continue;const _0x34078b=_0x2a2f2f?'suggestion:'+_0x171425+':'+_0x2a2f2f+':'+_0xa64dc9:'suggestion:'+_0x171425+':'+_0xa64dc9,_0x2f000e=_0x289af5['model']['markers']['getMarkersGroup'](_0x34078b),_0xee7df3=_0x289af5['model']['markers']['get'](_0x4b7a10),_0x5a17e4=this['_suggestions']['get'](_0xa64dc9);if(null!=_0x425359['newRange']){'formatInline'==_0x171425&&(_0x16eea0=_0x16eea0||dn(_0x425359['newRange'],_0x4b7a10,_0x515baf,_0x289af5['model']['schema']));const _0x2b38fa='attribute'==_0x171425&&this['_suggestionsConversion']['isBlockAttribute'](An(_0x2a2f2f)),_0x278206='attribute'==_0x171425&&this['_suggestionsConversion']['isInlineAttribute'](An(_0x2a2f2f));if(_0x425359['newRange']['isCollapsed']||'$graveyard'==_0x425359['newRange']['root']['rootName']||'formatBlock'==_0x171425&&!gn(_0x425359['newRange'])||_0x2b38fa&&!gn(_0x425359['newRange'])||_0x278206&&fn(_0x425359['newRange'])||'deletion'==_0x171425&&fn(_0x425359['newRange'])||_0xee7df3&&mn(_0xee7df3,_0x2f000e))_0x515baf['removeMarker'](_0x4b7a10),_0x16eea0=!0x0;else{if(!_0x5a17e4||!_0x5a17e4['isInContent'])continue;if(_0x425359['newRange']&&_0x425359['oldRange']&&_0x425359['newRange']['isEqual'](_0x425359['oldRange']))continue;_0x5801b6['add'](_0x5a17e4);}}}return _0x5801b6['size']>0x0&&(_0x16eea0=!!this['_joinWithAdjacentSuggestions'](_0x5801b6)||_0x16eea0),_0x16eea0;}),_0x289af5['model']['document']['registerPostFixer'](_0x4ab918=>{let _0x383b7f=!0x1;for(const _0x4576a0 of _0x289af5['model']['document']['differ']['getChanges']())if('insert'==_0x4576a0['type'])for(const _0x467e2c of this['_suggestions']['values']()){if(_0x467e2c['isMultiRange']||!_0x467e2c['isInContent'])continue;const _0xa813ad='formatBlock'==_0x467e2c['type'],_0x5dd2bb=this['_getAttributeKey'](_0x467e2c),_0x419dd6=_0x5dd2bb&&this['_suggestionsConversion']['isBlockAttribute'](_0x5dd2bb);if(!_0xa813ad&&!_0x419dd6)continue;const _0x4f9958=_0x467e2c['getFirstRange']();if(_0x4f9958['start']['parent']!=_0x4f9958['end']['parent']&&!_0x4f9958['end']['isAtEnd']){const _0x4b002c=_0x289af5['model']['createPositionAt'](_0x4f9958['start']['nodeAfter'],'end'),_0x5307b2=_0x289af5['model']['createRange'](_0x4f9958['start'],_0x4b002c);_0x4ab918['updateMarker'](_0x467e2c['getFirstMarker'](),{'range':_0x5307b2}),_0x383b7f=!0x0;}}return _0x383b7f;}),_0x289af5['model']['document']['registerPostFixer'](_0x5c161f=>this['_processAttributeChanges'](_0x5c161f)),_0x289af5['model']['document']['registerPostFixer'](_0x314a96=>!_0x314a96['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x314a96)),_0x289af5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x289af5['model']['document']['on']('change:data',(_0x3efadb,_0x50fbd4)=>{if(!_0x50fbd4['isLocal']||_0x50fbd4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5df203=_0x289af5['model']['document']['differ']['getChanges']();if(0x0==_0x5df203['length'])return;const _0x575886=[],_0x3403a4=_0x5df203['filter'](_0x1206e5=>'attribute'==_0x1206e5['type']),_0x5799a0=_0x5df203['filter'](_0x46596b=>'insert'==_0x46596b['type']&&'$text'!=_0x46596b['name']);for(const _0x2eb92d of _0x3403a4)this['_suggestionsConversion']['isRegisteredAttribute'](_0x2eb92d['attributeKey'])&&_0x575886['push']({'key':_0x2eb92d['attributeKey'],'newValue':_0x2eb92d['attributeNewValue'],'oldValue':_0x2eb92d['attributeOldValue'],'range':En(_0x2eb92d['range'],_0x289af5['model'])});for(const _0x96bc88 of _0x5799a0){if('rename'!=_0x96bc88['action']&&'refresh'!=_0x96bc88['action'])continue;const _0x6be3ff=Tn(_0x96bc88['position']['nodeAfter'],_0x289af5['model']),_0x3a6446=_0x96bc88['before'];'rename'==_0x96bc88['action']&&_0x575886['push']({'key':sn,'newValue':_0x96bc88['name'],'oldValue':_0x3a6446['name'],'range':_0x6be3ff});for(const [_0x38b889,_0x4c5557]of _0x3a6446['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x38b889))continue;const _0x4ee15a=_0x96bc88['attributes']['get'](_0x38b889);_0x4c5557!==_0x4ee15a&&_0x575886['push']({'key':_0x38b889,'newValue':_0x4ee15a,'oldValue':_0x4c5557,'range':_0x6be3ff});}for(const [_0x2752b6,_0x35717a]of _0x96bc88['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2752b6)&&(_0x3a6446['attributes']['has'](_0x2752b6)||_0x575886['push']({'key':_0x2752b6,'newValue':_0x35717a,'oldValue':null,'range':_0x6be3ff}));}0x0!=_0x575886['length']&&_0x289af5['model']['enqueueChange'](_0x50fbd4,_0x5e5c6d=>{const _0x59bedf=_0x38eda5();for(const {range:_0x5bf45f,key:_0x3357db,oldValue:_0x58ca48,newValue:_0x10a9d2}of _0x575886)this['markAttributeChange'](_0x5bf45f,_0x3357db,_0x58ca48,_0x10a9d2,{'groupId':_0x59bedf});this['_reduceExistingSuggestions'](_0x5e5c6d,_0x575886);});},{'priority':'lowest'}),_0x289af5['model']['markers']['on']('update:suggestion',(_0x2d062a,_0xd496b3,_0x9f4772)=>{if(null==_0x9f4772){const {id:_0x590b7d}=tt(_0xd496b3['name']),_0x310718=this['_suggestions']['get'](_0x590b7d);_0x310718&&_0x310718['addMarkerName'](_0xd496b3['name']);}}),_0x289af5['model']['document']['on']('change:data',()=>{const _0x144983=Array['from'](_0x289af5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x468c9a=>'suggestion'===tt(_0x468c9a['name'])['group']);if(0x0===_0x144983['length'])return;_0x144983['sort']((_0x1267d4,_0x4d7e87)=>{const _0x4862e4=_0x1267d4['data']['oldRange'],_0x317146=_0x4d7e87['data']['oldRange'];return null===_0x4862e4&&null===_0x317146?0x0:null===_0x4862e4&&null!==_0x317146?-0x1:null!==_0x4862e4&&null===_0x317146?0x1:_0x4862e4['start']['isBefore'](_0x317146['start'])?-0x1:0x1;});const _0x54360a=new Set(),_0x30784f=new Set();for(const {name:_0x180868,data:_0x498fcd}of _0x144983){const {id:_0x32f472}=tt(_0x180868);if(null===_0x498fcd['oldRange']){const _0x1a4cd0=this['_handleNewSuggestionMarker'](_0x180868);_0x30784f['add'](_0x1a4cd0);}else{const _0x2738c3=this['_suggestions']['get'](_0x32f472);null!==_0x498fcd['newRange']||_0x2738c3['isInContent']?(_0x54360a['add'](_0x2738c3['head']),_0x30784f['add'](_0x2738c3)):this['_removeSuggestion'](_0x2738c3);}}_0x30784f['size']>0x0&&this['_refreshSuggestionsChain'](_0x30784f);for(const _0x47d056 of _0x54360a)this['fire']('suggestionChanged',_0x47d056);}),_0x289af5['model']['on']('applyOperation',(_0x3c445e,_0x466a59)=>{const _0x26a968=_0x466a59[0x0];if(!this['_suggestions']['size'])return;if(!_0x26a968['isDocumentOperation'])return;if(_0x26a968['batch']['isUndo']||!_0x26a968['batch']['isLocal'])return;let _0x57528b,_0x2627bf;switch(_0x26a968['type']){case'insert':_0x57528b=_0x289af5['model']['createPositionAt'](_0x26a968['position']),_0x2627bf=_0x57528b['getShiftedBy'](_0x26a968['howMany']);break;case'split':_0x57528b=_0x289af5['model']['createPositionAt'](_0x26a968['splitPosition']),_0x2627bf=_0x289af5['model']['createPositionAt'](_0x26a968['moveTargetPosition']);break;case'move':_0x57528b=_0x289af5['model']['createPositionAt'](_0x26a968['targetPosition']),_0x2627bf=_0x57528b['getShiftedBy'](_0x26a968['howMany']);break;default:return;}const _0x4ab180=_0x289af5['model']['createRange'](_0x57528b,_0x2627bf);_0x289af5['model']['change'](()=>{for(const {suggestion:_0x395b77,meta:_0x96885}of this['_findSuggestions'](_0x4ab180)){if(_0x395b77['isMultiRange'])continue;if('formatInline'==_0x395b77['type'])continue;const _0xab8003=this['_getAttributeKey'](_0x395b77);if(_0xab8003&&this['_suggestionsConversion']['isBlockAttribute'](_0xab8003)&&'split'!=_0x26a968['type'])continue;const _0x4c7a13=_0x395b77['data']&&_0x395b77['data']['multipleBlocks'];('formatBlock'!=_0x395b77['type']||'split'==_0x26a968['type']&&!_0x4c7a13)&&(_0x96885['containsRangeInObject']||'insertion'==_0x395b77['type']&&_0x96885['isOwn']||_0x395b77['getFirstRange']()['containsRange'](_0x4ab180)&&this['_breakSuggestionMarker'](_0x395b77,_0x57528b,_0x2627bf));}});},{'priority':'lowest'}),_0x289af5['model']['on']('deleteContent',(_0x57957a,_0x4dbb54)=>{const _0x65f16d=_0x4dbb54[0x0],_0x52cd39=_0x4dbb54[0x1];if(_0x52cd39&&_0x52cd39['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x65f16d['isCollapsed'])return;const _0x3de587=_0x289af5['model']['schema'],{start:_0x138a67,end:_0x390781}=_0x65f16d['getFirstRange'](),_0x4e03cd=_0x138a67['nodeAfter']&&_0x3de587['isLimit'](_0x138a67['nodeAfter'])?null:_0x3de587['getNearestSelectionRange'](_0x138a67,'forward'),_0x333a5e=_0x390781['nodeBefore']&&_0x3de587['isLimit'](_0x390781['nodeBefore'])?null:_0x3de587['getNearestSelectionRange'](_0x390781,'backward'),_0x34fe6b=_0x289af5['model']['createRange'](_0x4e03cd?_0x4e03cd['start']:_0x138a67,_0x333a5e?_0x333a5e['end']:_0x390781);_0x289af5['model']['change'](_0x23cd1e=>{this['markDeletion'](_0x34fe6b);const _0x1c0a8d=_0x289af5['model']['schema']['getNearestSelectionRange'](_0x34fe6b['start']);_0x65f16d['is']('documentSelection')?_0x23cd1e['setSelection'](_0x1c0a8d):_0x65f16d['setTo'](_0x1c0a8d);}),_0x57957a['stop']();},{'priority':_0x1f9ee9['normal']+0xa}),_0x289af5['model']['on']('insertContent',(_0x26b6a6,_0x2278db)=>{const _0x5b954c=_0x2278db[_0x2278db['length']-0x1];_0x5b954c&&_0x5b954c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x289af5['model']['change'](()=>{let _0x45832f=_0x289af5['model']['insertContent'](_0x2278db[0x0],_0x2278db[0x1],_0x2278db[0x2],{'forceDefaultExecution':!0x0});if(!_0x45832f)return;_0x26b6a6['return']=_0x45832f['clone']();const _0x239fe9=_0x45832f['end']['nodeBefore'],_0x1d8c84=_0x289af5['model']['schema'];_0x239fe9&&_0x1d8c84['isBlock'](_0x239fe9)&&!_0x1d8c84['isObject'](_0x239fe9)&&(_0x45832f=_0x289af5['model']['createRange'](_0x45832f['start'],_0x289af5['model']['createPositionAt'](_0x239fe9,'end'))),this['markInsertion'](_0x45832f);}),_0x26b6a6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf3008=new _t(_0x289af5,this['_suggestions']);_0x289af5['commands']['add']('acceptSuggestion',_0xf3008),this['enableCommand']('acceptSuggestion');const _0x5bd809=new pt(_0x289af5,this['_suggestions']);_0x289af5['commands']['add']('discardSuggestion',_0x5bd809),this['enableCommand']('discardSuggestion'),_0x289af5['commands']['add']('acceptAllSuggestions',new Rt(_0x289af5,_0xf3008,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x289af5['commands']['add']('discardAllSuggestions',new Rt(_0x289af5,_0x5bd809,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x289af5['commands']['add']('acceptSelectedSuggestions',new yt(_0x289af5,_0xf3008,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x289af5['commands']['add']('discardSelectedSuggestions',new yt(_0x289af5,_0x5bd809,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5d32c5=_0x289af5['plugins']['get'](_0x5efbfe);this['listenTo'](_0x5d32c5,'addComment',(_0x5a86ab,{threadId:_0x1eb109})=>{const _0x42c3fc=this['_suggestions']['get'](_0x1eb109);_0x42c3fc&&_0x42c3fc['commentThread']&&0x1===_0x42c3fc['commentThread']['length']&&this['_updateSuggestionData'](_0x1eb109,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5d32c5,'removeComment',(_0x1246bd,{threadId:_0x5e84a4})=>{const _0x292d9e=this['_suggestions']['get'](_0x5e84a4);_0x292d9e&&_0x292d9e['commentThread']&&!_0x292d9e['commentThread']['length']&&this['_updateSuggestionData'](_0x5e84a4,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x24ad14){const _0x40bb60='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x3e98d3=0x79650,_0x5046a4={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x62c16c(_0x1b144e){const _0x24f13f=new window['Promise'](_0x3579bb=>{_0x1b144e['once']('ready',_0x3579bb);}),_0x5537f1=window['Date']['now'](),_0x3c2583=_0x1b144e['config']['get']('licenseKey');async function _0xe5dedd(){let _0x2a63ff,_0x47b2e4=null,_0xdb44ce=null;try{return'GPL'==_0x3c2583?'NotAllowed':(_0x2a63ff=_0x3b5fa5(),_0x2a63ff?(_0x2a63ff['usageEndpoint']&&(_0xdb44ce=_0x550abf(_0x2a63ff['usageEndpoint'],_0x2a63ff['jti'])),await _0x288873()?_0x5774bc()?_0x17b132()?'Expired':_0x3ed8b3()?('evaluation'==_0x2a63ff['licenseType']&&(_0x47b2e4=_0x3aaac3('EvaluationLimit')),await _0xd9193a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x17b132(){const _0x7aa148=['evaluation','trial']['includes'](_0x2a63ff['licenseType'])?_0x5537f1/0x3e8:0xe10*_0x3e98d3;return _0x2a63ff['exp']<_0x7aa148;}function _0x5774bc(){const _0x1060b5=_0x2a63ff['features'];if(!_0x1060b5)return!0x1;if(_0x1060b5['includes']('*'))return!0x0;if(_0x1060b5['includes']('TC'))return!0x0;if(_0x1060b5['includes']('RTC')){if(_0x3afa55())return!0x0;if(_0x26be2e()||_0xe9ac29())return!0x0;}return!0x1;}function _0x3ed8b3(){const _0x2bd5d6=_0x2a63ff['licensedHosts'];if(!_0x2bd5d6||0x0==_0x2bd5d6['length'])return!0x0;const {hostname:_0x3af902}=new URL(window['location']['href']);if(_0x2bd5d6['includes'](_0x3af902))return!0x0;const _0x4f7478=_0x3af902['split']('.');return _0x2bd5d6['filter'](_0x1f165e=>_0x1f165e['includes']('*'))['map'](_0x2d2353=>_0x2d2353['split']('.'))['filter'](_0xb3bdf4=>_0xb3bdf4['length']<=_0x4f7478['length'])['map'](_0x409319=>Array(_0x4f7478['length']-_0x409319['length'])['fill']('*'===_0x409319[0x0]?'*':'')['concat'](_0x409319))['some'](_0x5d7d21=>_0x4f7478['every']((_0x11d8f1,_0x290520)=>_0x5d7d21[_0x290520]===_0x11d8f1||'*'===_0x5d7d21[_0x290520]));}function _0xd9193a(){return _0x47b2e4&&_0xdb44ce?new window['Promise']((_0x25fecb,_0x4ea3c3)=>{_0x47b2e4['then'](_0x25fecb,_0x4ea3c3),_0xdb44ce['then'](_0x493268=>{'Valid'!=_0x493268&&_0x25fecb(_0x493268);},_0x4ea3c3);}):_0x47b2e4||_0xdb44ce||'Valid';}}function _0x550abf(_0x2145ba,_0x201744){return new window['Promise'](_0x1bf833=>{if(_0x5986e4())return _0x1bf833('Valid');_0x5073d9(),_0x1b144e['decorate']('_sendUsageRequest');let _0x3f66e5=!0x1;const _0x4123cc=_0x38eda5();function _0xda999b(_0x21580d){return!!_0x21580d&&('object'==typeof _0x21580d||'function'==typeof _0x21580d)&&'function'==typeof _0x21580d['then']&&'function'==typeof _0x21580d['catch'];}function _0x47ff0c(_0x25d0a6){_0x27775f(_0x25d0a6)['then'](_0x4a74c2=>_0x4a74c2&&'ok'==_0x4a74c2['status']?_0x42ccba(_0xd4f62(_0x4123cc+_0x201744))!=_0x4a74c2['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x233bf9=>(_0x33b895(),_0x233bf9),()=>{const _0x202b10=_0x3831d8();return null==_0x202b10?(_0x33b895(),'Valid'):_0x5537f1-_0x202b10>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1bf833)['catch'](()=>{_0x1bf833('UsageLimit');});const _0x338b82=0x36ee80;function _0x33b895(){const _0x1ca5bd='llct-'+_0x42ccba(_0xd4f62(_0x2145ba)),_0x1febdf=_0xdaec09(_0x42ccba(window['Math']['ceil'](_0x5537f1/_0x338b82)));window['localStorage']['setItem'](_0x1ca5bd,_0x1febdf);}function _0x3831d8(){const _0x43cef0='llct-'+_0x42ccba(_0xd4f62(_0x2145ba)),_0x66b352=window['localStorage']['getItem'](_0x43cef0);return _0x66b352?window['parseInt'](_0xdaec09(_0x66b352),0x10)*_0x338b82:null;}function _0x27775f(_0x13517){return new window['Promise']((_0x4c1e81,_0x1180cb)=>{_0x13517['then'](_0x4c1e81,_0x1180cb),window['setTimeout'](_0x1180cb,0x1d4c0);});}}_0x1b144e['on']('_sendUsageRequest',(_0x54ae1f,_0x3fa49d)=>{if(_0x3fa49d[0x0]!=_0x2145ba)return _0x1bf833('UsageLimit');_0x3fa49d[0x1]={..._0x3fa49d[0x1],'requestId':_0x4123cc};},{'priority':'high'}),_0x1b144e['on']('_sendUsageRequest',_0x2f4ca9=>{_0xda999b(_0x2f4ca9['return'])&&(_0x3f66e5=!0x0,_0x47ff0c(_0x2f4ca9['return']));},{'priority':'low'}),_0x24f13f['then'](()=>{_0x3f66e5||_0x1bf833('UsageLimit');});});function _0x5986e4(){return'auto'==_0x1b144e['editing']['view']['_overlayModeHint'];}function _0x5073d9(){_0x1b144e['editing']['view']['_overlayModeHint']='auto';}}function _0x3aaac3(_0x2c4d05){const _0x10638d=[new window['Promise'](_0x47adb=>setTimeout(_0x47adb,0x93ecc)),_0x24f13f['then'](()=>new window['Promise'](_0x407793=>{let _0x240d36=0x0;_0x1b144e['model']['on']('applyOperation',(_0x283083,_0x326477)=>{_0x326477[0x0]['isDocumentOperation']&&_0x240d36++,0x5e8==_0x240d36&&(_0x407793(),_0x283083['off']());});}))];return window['Promise']['race'](_0x10638d)['then'](()=>_0x2c4d05);}async function _0x1ebd12(){await _0x24f13f,_0x1b144e['model']['change']=_0xf009ee,_0x1b144e['model']['enqueueChange']=_0xf009ee,_0x1b144e['enableReadOnlyMode']('model');}function _0x3afa55(){return _0x488dda('WebSocketGateway')&&'connected'==_0x4ce4f7('WebSocketGateway')['state'];}function _0x26be2e(){return _0x488dda('RevisionViewerIntegration');}function _0xe9ac29(){return _0x488dda('TrackChangesDataGetter');}function _0x3e5d00(_0x4043c4){const _0x1f2678=_0x2c84dc();_0x1b144e[_0x1f2678]='trackChangesLicenseKey'+_0x4043c4,'Valid'!=_0x4043c4&&_0x1ebd12();}function _0x2c84dc(){const _0x37bbb7=window['String'](window['performance']['now']())['replace']('.','');let _0x51fcf9='U';for(let _0x3db5c4=0x0;_0x3db5c4<_0x37bbb7['length'];_0x3db5c4+=0x2){let _0x2e320=window['parseInt'](_0x37bbb7['substring'](_0x3db5c4,_0x3db5c4+0x2));_0x2e320>=0x3e&&(_0x2e320-=0x3e),_0x51fcf9+=_0x40bb60[_0x2e320];}return _0x51fcf9;}function _0x3b5fa5(){const _0x2d4afe=_0x3c2583['split']('.');if(0x3!=_0x2d4afe['length'])return null;return _0x57285c(_0x2d4afe[0x1]);function _0x57285c(_0x2df9b2){const _0x410974=_0x3c35d3(_0x2df9b2);return _0x410974&&_0x16cc56()?_0x410974:null;function _0x16cc56(){const _0x3cda9d=_0x410974['jti'],_0x2f3e8d=window['parseInt'](_0x3cda9d['substring'](_0x3cda9d['length']-0x8),0x10),_0x2c8e54={..._0x410974,'jti':_0x3cda9d['substring'](0x0,_0x3cda9d['length']-0x8)};return delete _0x2c8e54['vc'],_0xd4f62(_0x2c8e54)==_0x2f3e8d;}}}async function _0x288873(){let _0x3a62bf=!0x0;try{const [_0x5f3270,_0x4622d4,_0x132d29]=_0x3c2583['split']('.');return _0x407490(_0x5f3270),await _0x557e70(_0x5f3270,_0x4622d4,_0x132d29),_0x3a62bf;}catch{return!0x1;}function _0x407490(_0x262c5b){const _0x354620=_0x3c35d3(_0x262c5b);_0x354620&&'ES256'==_0x354620['alg']||(_0x3a62bf=!0x1);}async function _0x557e70(_0xa3b5d5,_0x18c65b,_0x5ba4e6){const _0xe84a50=window['Uint8Array']['from'](_0x2a09ef(_0x5ba4e6),_0x2fb357=>_0x2fb357['charCodeAt'](0x0)),_0x1f547e=new window['TextEncoder']()['encode'](_0xa3b5d5+'.'+_0x18c65b),_0x11fadc=window['crypto']['subtle'];if(!_0x11fadc)return;const _0x3b8ede=await _0x11fadc['importKey']('jwk',_0x5046a4,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x11fadc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3b8ede,_0xe84a50,_0x1f547e)||(_0x3a62bf=!0x1);}}function _0x3c35d3(_0x51f909){return _0x51f909['startsWith']('ey')?JSON['parse'](_0x2a09ef(_0x51f909)):null;}function _0x2a09ef(_0x4bc4bd){return window['atob'](_0x4bc4bd['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xd4f62(_0x329aad){let _0x57e072=0x1505;function _0x383091(_0x22a35c){for(let _0x9b3bb4=0x0;_0x9b3bb4<_0x22a35c['length'];_0x9b3bb4++){const _0x4c600b=_0x22a35c['charCodeAt'](_0x9b3bb4);_0x57e072=(_0x57e072<<0x5)+_0x57e072+_0x4c600b,_0x57e072&=_0x57e072;}}function _0x318b5a(_0x448cbe){Array['isArray'](_0x448cbe)?_0x448cbe['forEach'](_0x318b5a):_0x448cbe&&'object'==typeof _0x448cbe?Object['entries'](_0x448cbe)['sort']()['forEach'](([_0x2f042a,_0x46904e])=>{_0x383091(_0x2f042a),_0x318b5a(_0x46904e);}):_0x383091(window['String'](_0x448cbe));}return _0x318b5a(_0x329aad),_0x57e072>>>0x0;}function _0x42ccba(_0x2f1c01){return _0x2f1c01['toString'](0x10)['padStart'](0x8,'0');}function _0xdaec09(_0x3b608d){return _0x3b608d['split']('')['reverse']()['join']('');}function _0x488dda(_0x471824){return _0x1b144e['plugins']['has'](_0x471824);}function _0x4ce4f7(_0x1cd698){return _0x1b144e['plugins']['get'](_0x1cd698);}function _0xf009ee(){}_0x3e5d00(await _0xe5dedd());}_0x62c16c(_0x24ad14['editor']);}(this);}set adapter(_0x462429){if(this['_adapter'])throw new _0x478e8c('track-changes-adapter-already-set',this);this['_adapter']=_0x462429;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x5aba2d=!0x1,toJSON:_0x2cac9e=!0x1}={}){const _0x4212f5=[];for(const _0x300eab of this['_suggestions']['values']())_0x5aba2d&&!_0x300eab['isInContent']||_0x4212f5['push'](_0x300eab);return _0x2cac9e?_0x4212f5['map'](_0xb37c0=>_0xb37c0['toJSON']()):_0x4212f5;}getSuggestion(_0x57d3d5){const _0x595a7e=this['_suggestions']['get'](_0x57d3d5);if(!_0x595a7e)throw new _0x478e8c('track-changes-suggestion-not-found',this);return _0x595a7e;}hasSuggestion(_0x12f185){return this['_suggestions']['has'](_0x12f185);}addSuggestionData(_0x204f70){const {authorId:_0x40292f,id:_0xb57f92,originalSuggestionId:_0xb5eb5a,attributes:_0x5817f6}=_0x204f70,[_0x47fc6c,_0x314e28]=_0x204f70['type']['split'](':'),_0x25f022=this['_suggestions']['get'](_0xb57f92)||this['_createSuggestion'](_0x47fc6c,_0x314e28,_0xb57f92,_0x40292f,_0x5817f6,_0xb5eb5a);if(this['_addThreadToSuggestion'](_0x25f022),this['_checkSuggestionCorrectness'](_0x25f022,_0x47fc6c,_0x314e28||null,_0x40292f),_0x25f022['createdAt']=_0x204f70['createdAt'],_0x25f022['_isDataLoaded']=!0x0,_0x5817f6&&_0x5817f6['@external']){const _0x5b6dc7=_0x5817f6['@external'],_0x1b5392=this['_getExternalAuthor'](_0x5b6dc7['authorName']);_0x25f022['authoredAt']=_0x5b6dc7['createdAt'],_0x25f022['author']=_0x1b5392;}else _0x25f022['authoredAt']=_0x204f70['createdAt'];switch(_0x204f70['data']&&(_0x25f022['data']=_0x204f70['data']),_0x204f70['attributes']&&(_0x25f022['attributes']=_0x204f70['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x25f022['_saved']=!0x0),this['_suggestionState']['get'](_0x25f022)){case'notReady':this['_suggestionState']['set'](_0x25f022,'dataReady');break;case'markerReady':_0x25f022['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x25f022])),this['_refreshSuggestionsChain'](new Set([_0x25f022])),this['_suggestionState']['set'](_0x25f022,'ready'),this['fire']('suggestionLoaded',_0x25f022)):this['_suggestionState']['set'](_0x25f022,'removed');}return _0x25f022;}acceptSuggestion(_0x1b3a27){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5722f3 of _0x1b3a27['getAllAdjacentSuggestions']())_0x5722f3['accept']();});});}discardSuggestion(_0xb6118){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37dab9 of _0xb6118['getAllAdjacentSuggestions']())_0x37dab9['discard']();});});}['enableCommand'](_0x3505b1,_0x513d2c){const _0x5b7878=this['editor']['commands']['get'](_0x3505b1);if(!_0x5b7878)throw new _0x478e8c('track-changes-command-not-found',this,{'commandName':_0x3505b1});if(this['_enabledCommands']['has'](_0x5b7878))throw new _0x478e8c('track-changes-enable-command-twice',this,{'commandName':_0x3505b1});this['_enabledCommands']['add'](_0x5b7878),_0x513d2c&&_0x5b7878['on']('execute',(_0x5e57b2,_0x1b6794)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1b6794['length']>0x0&&_0x1b6794[_0x1b6794['length']-0x1]&&_0x1b6794[_0x1b6794['length']-0x1]['forceDefaultExecution']?_0x1b6794['pop']():(_0x5e57b2['return']=_0x513d2c((..._0x20294e)=>_0x5b7878['execute'](..._0x20294e,{'forceDefaultExecution':!0x0}),..._0x1b6794),_0x5e57b2['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3b29e5){let _0x33b40f,_0x2b95b6;const _0x1060e7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33b40f=_0x3b29e5();}catch(_0x416518){_0x2b95b6=_0x416518;}return _0x1060e7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2b95b6&&_0x478e8c['rethrowUnexpectedError'](_0x2b95b6,this),_0x33b40f;}markInsertion(_0x11f6b7,_0x1d7ab7=null,_0x32bbcd={}){if(_0x11f6b7['isCollapsed'])return null;const _0x27a35a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x32bbcd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x21dfb7,meta:_0x40721c}of this['_findSuggestions'](_0x11f6b7,'insertion'))if(_0x40721c['isOwn']){if(!_0x40721c['isNextTo']){if(_0x40721c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x21dfb7,_0x32bbcd))continue;return _0x21dfb7;}if(Ln(_0x21dfb7,_0x32bbcd))return _0x21dfb7;this['_breakSuggestionMarker'](_0x21dfb7,_0x11f6b7['start'],_0x11f6b7['end']);break;}if(_0x1d7ab7==_0x21dfb7['subType']&&Ln(_0x21dfb7,_0x32bbcd)){const _0x468c8d=_0x21dfb7['getFirstRange']();return _0x468c8d['start']['isEqual'](_0x11f6b7['end'])?this['_setSuggestionRange'](_0x21dfb7,this['_model']['createRange'](_0x11f6b7['start'],_0x468c8d['end'])):this['_setSuggestionRange'](_0x21dfb7,this['_model']['createRange'](_0x468c8d['start'],_0x11f6b7['end'])),_0x21dfb7;}}const _0x2f9b3a=_0x38eda5(),_0x3a8eb4=_0x27a35a['id'],_0x299dc4=_0x1d7ab7?'insertion:'+_0x1d7ab7:'insertion',_0x688cb9=this['_setSuggestionData']({'id':_0x2f9b3a,'type':_0x299dc4,'createdAt':new Date(),'authorId':_0x3a8eb4,'attributes':_0x32bbcd});return this['_addSuggestionMarker'](_0x299dc4,_0x2f9b3a,_0x3a8eb4,_0x11f6b7),_0x688cb9;}markMultiRangeInsertion(_0x3f87fe,_0xd53297='multi',_0x20a35f={}){const _0x4949db=this['editor']['plugins']['get']('Users')['me'],_0x4e0ba0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd53297,'join');this['_trackingSessionId']&&(_0x20a35f['trackingSessionId']=this['_trackingSessionId']);for(const _0xb12e35 of this['getSuggestions']())if(_0xb12e35['author']['id']==_0x4949db['id']&&'insertion'==_0xb12e35['type']&&_0xb12e35['subType']==_0xd53297&&Ln(_0xb12e35,_0x20a35f)&&(_0x4e0ba0(_0xb12e35['getRanges'](),_0x3f87fe)||_0x4e0ba0(_0x3f87fe,_0xb12e35['getRanges']()))){for(const _0x5d8c0e of _0x3f87fe)_0xb12e35['addRange'](_0x5d8c0e);return _0xb12e35;}for(const {suggestion:_0x5747b5,meta:_0x2bb11a}of this['_findSuggestions'](_0x3f87fe,'insertion')){if(!_0x2bb11a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2bb11a['containsRangeInObject'])continue;if(!Ln(_0x5747b5,_0x20a35f))continue;let _0x33021e=!0x0;for(const _0x845390 of _0x5747b5['getRanges']())for(const _0x11446e of _0x3f87fe)if(!_0x845390['containsRange'](_0x11446e)){_0x33021e=!0x1;break;}if(_0x33021e)return _0x5747b5;}const _0x458b61=_0x38eda5(),_0x5491b7=_0x4949db['id'],_0x1e3714='insertion:'+_0xd53297,_0x15f1e8=this['_setSuggestionData']({'id':_0x458b61,'type':_0x1e3714,'createdAt':new Date(),'authorId':_0x5491b7,'attributes':_0x20a35f});for(const _0x45a0e6 of _0x3f87fe)this['_addSuggestionMarker'](_0x1e3714,_0x458b61,_0x5491b7,_0x45a0e6,St['getMultiRangeId']());return _0x15f1e8;}markInlineFormat(_0x4641e4,_0x32a9a6,_0x4a2e47=null,_0x5d195e={}){if(_0x4a2e47=_0x4a2e47||hn(_0x32a9a6),_0x4641e4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5d195e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cb345=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a2e47,'accept');return this['forceDefaultExecution'](()=>_0x3cb345([_0x4641e4],_0x32a9a6,_0x5d195e)),null;}const _0x2b95a9=this['editor']['plugins']['get']('Users')['me'],_0x57e64a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x318264,meta:_0x352134}of this['_findSuggestions'](_0x4641e4,'insertion'))_0x352134['isOwn']&&!_0x352134['isInsideObject']&&_0x57e64a['push'](..._0x318264['getRanges']());}const _0x1fd6fe=function(_0xb2544d,_0x36867d){const _0x325f0c=[];for(const _0x12f8f8 of _0x36867d){const _0x2ca7c1=_0xb2544d['getIntersection'](_0x12f8f8);_0x2ca7c1&&_0x325f0c['push'](_0x2ca7c1);}return _0x325f0c;}(_0x4641e4,_0x57e64a),_0x2e85a5=function(_0x406d94,_0x6eb059){const _0x1ed0b6=[_0x406d94];for(const _0x311fc4 of _0x6eb059){let _0x148381=0x0;for(;_0x148381<_0x1ed0b6['length'];){const _0x2af7a4=_0x1ed0b6[_0x148381]['getDifference'](_0x311fc4);_0x1ed0b6['splice'](_0x148381,0x1,..._0x2af7a4),_0x148381+=_0x2af7a4['length'];}}return _0x1ed0b6;}(_0x4641e4,_0x57e64a);_0x1fd6fe['length']&&this['_model']['change'](()=>{for(const _0x1c0a96 of _0x1fd6fe){const _0x36a2a8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a2e47,'accept');this['forceDefaultExecution'](()=>_0x36a2a8([_0x1c0a96],_0x32a9a6,_0x5d195e));}});for(const _0x3e04e3 of _0x2e85a5){let _0x5074b2=null,_0x13770f=_0x3e04e3['start'],_0x34e4f8=_0x3e04e3['end'];for(const {suggestion:_0x283719,meta:_0x4a5115}of this['_findSuggestions'](_0x3e04e3,'formatInline')){if(!_0x4a5115['isOwn'])continue;if(_0x283719['subType']!=_0x4a2e47)continue;if(!Ln(_0x283719,_0x5d195e))continue;const _0x62479d=_0x283719['getFirstRange']();if(_0x62479d['containsRange'](_0x3e04e3,!0x0))return null;_0x13770f=_0x13770f['isBefore'](_0x62479d['start'])?_0x13770f:_0x62479d['start'],_0x34e4f8=_0x34e4f8['isAfter'](_0x62479d['end'])?_0x34e4f8:_0x62479d['end'],_0x5074b2?_0x62479d['start']['isBefore'](_0x5074b2['getFirstRange']()['start'])?(_0x5074b2['removeMarkers'](),_0x5074b2=_0x283719):_0x283719['removeMarkers']():_0x5074b2=_0x283719;}const _0x2c12e1=this['_model']['createRange'](_0x13770f,_0x34e4f8);if(_0x5074b2)this['_setSuggestionRange'](_0x5074b2,_0x2c12e1);else{const _0x17d4fb=_0x38eda5(),_0x5bdfcc=_0x2b95a9['id'];this['_setSuggestionData']({'id':_0x17d4fb,'type':'formatInline:'+_0x4a2e47,'data':_0x32a9a6,'createdAt':new Date(),'authorId':_0x5bdfcc,'attributes':_0x5d195e}),this['_addSuggestionMarker']('formatInline:'+_0x4a2e47,_0x17d4fb,_0x5bdfcc,_0x2c12e1);}}return null;}markBlockFormat(_0x56d0a7,_0x4d091e,_0x568621=[],_0x2bf1d7=null,_0x43e911={}){_0x4d091e['formatGroupId']||(_0x4d091e['formatGroupId']=_0x4d091e['commandName']),_0x4d091e['multipleBlocks']=_0x56d0a7['is']('range'),_0x2bf1d7=_0x2bf1d7||hn(_0x4d091e);const _0x10be18=_0x568621['map'](_0x28ec99=>Tn(_0x28ec99,this['_model'])),_0x79a29c=_0x56d0a7['is']('range')?_0x56d0a7:Tn(_0x56d0a7,this['_model']);if(this['_trackingSessionId']&&(_0x43e911['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53399e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bf1d7,'accept');return this['forceDefaultExecution'](()=>_0x53399e([_0x79a29c],_0x4d091e,_0x43e911)),null;}_0x10be18['push'](_0x79a29c);let _0x3b906f=!0x0;for(const _0x37640b of _0x10be18)if(!this['_rangeIsInLocalUserInsertion'](_0x37640b)){_0x3b906f=!0x1;break;}if(_0x3b906f&&'always'!==this['_trackFormatChanges']){const _0x556fac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bf1d7,'accept');return this['forceDefaultExecution'](()=>_0x556fac([_0x79a29c],_0x4d091e,_0x43e911)),null;}let _0x5cff23=null,_0x3ebd6f=_0x79a29c['start'],_0x2f07a8=_0x79a29c['end'];for(const {suggestion:_0xbb9079,meta:_0x207379}of this['_findSuggestions'](_0x79a29c,'formatBlock')){if(!_0x207379['isOwn'])continue;if(_0x207379['isNextTo']||_0x207379['containsRangeInObject']||_0x207379['isInsideObject'])continue;if(_0xbb9079['data']['formatGroupId']!=_0x4d091e['formatGroupId'])continue;if(!Ln(_0xbb9079,_0x43e911))continue;const _0x513b80=_0xbb9079['getFirstRange']();if(_0xbb9079['subType']==_0x2bf1d7){if(_0x513b80['containsRange'](_0x79a29c,!0x0))return null;_0x3ebd6f=_0x3ebd6f['isBefore'](_0x513b80['start'])?_0x3ebd6f:_0x513b80['start'],_0x2f07a8=_0x2f07a8['isAfter'](_0x513b80['end'])?_0x2f07a8:_0x513b80['end'],_0x5cff23?_0x513b80['start']['isBefore'](_0x5cff23['getFirstRange']()['start'])?(_0x5cff23['removeMarkers'](),_0x5cff23=_0xbb9079):_0xbb9079['removeMarkers']():_0x5cff23=_0xbb9079;}else{const _0x42ec4e=_0x79a29c['getIntersection'](_0x513b80);this['_cutOutSuggestionMarker'](_0xbb9079,_0x42ec4e);}}const _0x46b7c7=this['editor']['plugins']['get']('Users')['me'],_0x45dd15=_0x38eda5(),_0x19d951=_0x46b7c7['id'];if(_0x5cff23)return this['_setSuggestionRange'](_0x5cff23,this['_model']['createRange'](_0x3ebd6f,_0x2f07a8)),_0x5cff23;{const _0x4f32aa=this['_setSuggestionData']({'id':_0x45dd15,'type':'formatBlock:'+_0x2bf1d7,'data':_0x4d091e,'createdAt':new Date(),'authorId':_0x19d951,'attributes':_0x43e911});return this['_addSuggestionMarker']('formatBlock:'+_0x2bf1d7,_0x45dd15,_0x19d951,this['_model']['createRange'](_0x3ebd6f,_0x2f07a8)),_0x4f32aa;}}markMultiRangeBlockFormat(_0x1b1dff,_0x6b6ad1,_0x111305=[],_0x5ee0d5=null,_0x145733={}){_0x6b6ad1['formatGroupId']||(_0x6b6ad1['formatGroupId']=_0x6b6ad1['commandName']);const _0x38d375=_0x1b1dff[0x0];_0x6b6ad1['multipleBlocks']=_0x38d375['is']('range'),_0x5ee0d5=_0x5ee0d5||hn(_0x6b6ad1);const _0x1adb59=_0x111305['map'](_0x5e4301=>Tn(_0x5e4301,this['_model'])),_0x25d599=_0x38d375['is']('range')?_0x1b1dff:_0x1b1dff['map'](_0x117b09=>Tn(_0x117b09,this['_model']));if(this['_trackingSessionId']&&(_0x145733['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4face5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ee0d5,'accept');return this['forceDefaultExecution'](()=>_0x4face5(_0x25d599,_0x6b6ad1,_0x145733)),null;}_0x1adb59['push'](..._0x25d599);let _0x3a00d5=!0x0;for(const _0x318b8f of _0x1adb59)if(!this['_rangeIsInLocalUserInsertion'](_0x318b8f)){_0x3a00d5=!0x1;break;}if(_0x3a00d5&&'always'!==this['_trackFormatChanges']){const _0x4187e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ee0d5,'accept');return this['forceDefaultExecution'](()=>_0x4187e9(_0x25d599,_0x6b6ad1,_0x145733)),null;}const _0x2f6572=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c779b of this['getSuggestions']()){const _0x28bbd4=_0x1c779b['data'];if(_0x1c779b['author']['id']!=_0x2f6572['id'])continue;if('formatBlock'!=_0x1c779b['type']||_0x28bbd4['formatGroupId']!=_0x6b6ad1['formatGroupId'])continue;if(!Ln(_0x1c779b,_0x145733))continue;const _0x5bb14e=_0x1c779b['subType']==_0x5ee0d5;for(let _0x5d0abe=0x0;_0x5d0abe<_0x25d599['length'];_0x5d0abe++){const _0x3e5901=_0x25d599[_0x5d0abe];for(const _0x302186 of _0x1c779b['getMarkers']()){const _0xd2d7ae=_0x302186['getRange']();if(_0x3e5901['isEqual'](_0xd2d7ae)){_0x5bb14e?(_0x25d599['splice'](_0x5d0abe,0x1),_0x5d0abe--):_0x1c779b['removeMarker'](_0x302186['name']);break;}}}}if(0x0==_0x25d599['length'])return null;const _0x2e0ebd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ee0d5,'join');for(const _0x9fea58 of this['getSuggestions']()){const _0x28acfe=_0x9fea58['data'];if(_0x9fea58['author']['id']==_0x2f6572['id']&&('formatBlock'==_0x9fea58['type']&&_0x28acfe['formatGroupId']==_0x6b6ad1['formatGroupId']&&_0x9fea58['subType']==_0x5ee0d5&&Ln(_0x9fea58,_0x145733)&&(_0x2e0ebd(_0x9fea58['getRanges'](),_0x25d599)||_0x2e0ebd(_0x25d599,_0x9fea58['getRanges']())))){for(const _0x30eb3e of _0x25d599)_0x9fea58['addRange'](_0x30eb3e);return _0x9fea58;}}const _0x4732f7=_0x38eda5(),_0xd636fc=_0x2f6572['id'],_0x19b34a='formatBlock:'+_0x5ee0d5,_0x49cc50=this['_setSuggestionData']({'id':_0x4732f7,'type':_0x19b34a,'data':_0x6b6ad1,'createdAt':new Date(),'authorId':_0xd636fc,'attributes':_0x145733});for(const _0x5bdc53 of _0x25d599)this['_addSuggestionMarker'](_0x19b34a,_0x4732f7,_0xd636fc,_0x5bdc53,St['getMultiRangeId']());return _0x49cc50;}markDeletion(_0x98b0bb,_0x56ff95=null,_0x2fffb6={}){if(_0x98b0bb['isCollapsed'])return null;const _0x3b684f=this['editor']['plugins']['get']('Users')['me'],_0x1b1c52=new rt(_0x98b0bb['start'],_0x98b0bb['end']);this['_trackingSessionId']&&(_0x2fffb6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22c6c6,meta:_0x21d183}of this['_findSuggestions'](_0x1b1c52,'insertion'))if(_0x21d183['isOwn']&&!_0x21d183['isNextTo']){if(_0x22c6c6['isMultiRange']){const _0x240e77=_0x22c6c6['getRanges']()['filter'](_0x2249bf=>'$graveyard'!=_0x2249bf['root']['rootName']);if(_0x240e77['every'](_0x231c8f=>_0x1b1c52['containsRange'](_0x231c8f,!0x0))&&_0x22c6c6['discard'](),_0x240e77['some'](_0x27bc12=>_0x27bc12['containsRange'](_0x1b1c52,!0x0))){const _0x3a28df=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56ff95,'accept');return this['forceDefaultExecution'](()=>_0x3a28df([_0x1b1c52],null,_0x2fffb6)),null;}}else{const _0x167deb=_0x1b1c52['getIntersection'](_0x22c6c6['getFirstRange']());null!==_0x167deb&&_0x22c6c6['_onDiscard']([_0x167deb],null,_0x2fffb6);}}if(_0x1b1c52['detach'](),_0x1b1c52['isCollapsed']||'$graveyard'==_0x1b1c52['root']['rootName'])return null;let _0x5a4319=null,_0x32427f=_0x1b1c52['start'],_0x2a6618=_0x1b1c52['end'];const _0x1017dc=this['_findSuggestions'](_0x1b1c52,'deletion');for(const {suggestion:_0x1b2ecd,meta:_0x2446cd}of _0x1017dc){const _0x7c5893=this['_model']['createRange'](_0x32427f,_0x2a6618);if(_0x2446cd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2446cd['containsRangeInObject']&&!_0x2446cd['isInsideObject'])){if(_0x1b2ecd['isMultiRange']){if(!Ln(_0x1b2ecd,_0x2fffb6))continue;let _0x2533a4=!0x0;for(const _0x495c41 of _0x1b2ecd['getRanges']()){if(_0x495c41['containsRange'](_0x7c5893,!0x0))return _0x1b2ecd;_0x7c5893['containsRange'](_0x495c41)||(_0x2533a4=!0x1);}_0x2533a4&&_0x1b2ecd['discard']();}else{const _0x115cd6=_0x1b2ecd['getFirstRange']();if(_0x115cd6['containsRange'](_0x7c5893,!0x0))return _0x1b2ecd;if(!Ln(_0x1b2ecd,_0x2fffb6)){_0x7c5893['containsRange'](_0x115cd6)?_0x1b2ecd['removeMarkers']():_0x115cd6['containsPosition'](_0x32427f)?_0x32427f=_0x115cd6['end']:_0x115cd6['containsPosition'](_0x2a6618)&&(_0x2a6618=_0x115cd6['start']);continue;}_0x32427f=_0x32427f['isBefore'](_0x115cd6['start'])?_0x32427f:_0x115cd6['start'],_0x2a6618=_0x2a6618['isAfter'](_0x115cd6['end'])?_0x2a6618:_0x115cd6['end'],_0x2fffb6=Object['assign']({},_0x1b2ecd['attributes']),_0x5a4319?_0x115cd6['start']['isBefore'](_0x5a4319['getFirstRange']()['start'])?(_0x5a4319['removeMarkers'](),_0x5a4319=_0x1b2ecd):_0x1b2ecd['removeMarkers']():_0x5a4319=_0x1b2ecd;}}}if(_0x5a4319)return this['_setSuggestionRange'](_0x5a4319,this['_model']['createRange'](_0x32427f,_0x2a6618)),_0x5a4319;{const _0x21ea9a=_0x38eda5(),_0x191add=this['_model']['createRange'](_0x32427f,_0x2a6618),_0x356ddb=_0x3b684f['id'],_0x203a54=_0x56ff95?'deletion:'+_0x56ff95:'deletion',_0x579bdc=this['_setSuggestionData']({'id':_0x21ea9a,'type':_0x203a54,'createdAt':new Date(),'authorId':_0x356ddb,'attributes':_0x2fffb6});return this['_addSuggestionMarker'](_0x203a54,_0x21ea9a,_0x356ddb,_0x191add),_0x579bdc;}}markMultiRangeDeletion(_0x3732ed,_0x41b1c3='multi',_0x495b24={}){const _0x1f9304=this['editor']['plugins']['get']('Users')['me'],_0x5315ef=_0x3732ed['map'](_0x47d344=>new rt(_0x47d344['start'],_0x47d344['end'])),_0x32e69a=new Set();this['_trackingSessionId']&&(_0x495b24['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb9afdc,meta:_0x4c14a7}of this['_findSuggestions'](_0x5315ef,'insertion'))_0x4c14a7['isOwn']&&!_0x4c14a7['isNextTo']&&_0x32e69a['add'](_0xb9afdc);for(const _0x5bbf36 of _0x32e69a)if(_0x5bbf36['isMultiRange']){const _0x4a84f2=_0x5bbf36['getRanges']();if(_0x5bbf36['attributes']&&_0x5bbf36['attributes']['skipNestingCheck']||_0x4a84f2['every'](_0x18684e=>_0x5315ef['some'](_0x59c198=>_0x59c198['containsRange'](_0x18684e,!0x0)))&&_0x5bbf36['discard'](),_0x5315ef['every'](_0x1c2287=>_0x4a84f2['some'](_0x1291dd=>_0x1291dd['containsRange'](_0x1c2287,!0x0)))){const _0x2376de=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b1c3,'accept');return this['forceDefaultExecution'](()=>_0x2376de(_0x3732ed,null,_0x495b24)),null;}}else{const _0x4f3bc9=_0x5bbf36['getFirstRange']();if(_0x5315ef['some'](_0x33c48e=>_0x33c48e['containsRange'](_0x4f3bc9,!0x0))&&_0x5bbf36['discard'](),_0x5315ef['every'](_0x1388c2=>_0x4f3bc9['containsRange'](_0x1388c2,!0x0))){const _0x2070d7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b1c3,'accept');return this['forceDefaultExecution'](()=>_0x2070d7(_0x5315ef,null,_0x495b24)),null;}}const _0x178de2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b1c3,'join');let _0x3e79bc=null;for(const _0x5af674 of this['getSuggestions']())if(_0x5af674['author']['id']==_0x1f9304['id']&&_0x5af674['isInContent']&&'deletion'==_0x5af674['type']&&_0x5af674['subType']==_0x41b1c3&&Ln(_0x5af674,_0x495b24)&&(_0x178de2(_0x5af674['getRanges'](),_0x5315ef)||_0x178de2(_0x5315ef,_0x5af674['getRanges']()))){if(_0x3e79bc){if(_0x5af674['commentThread']&&_0x5af674['commentThread']['length'])continue;for(const _0x594b9c of _0x5af674['getRanges']())_0x3e79bc['isIntersectingWithRange'](_0x594b9c)||_0x3e79bc['addRange'](_0x594b9c);_0x5af674['removeMarkers']();}else{_0x3e79bc=_0x5af674;for(const _0x4ef639 of _0x5315ef)_0x5af674['isIntersectingWithRange'](_0x4ef639)||_0x5af674['addRange'](_0x4ef639);}}if(_0x3e79bc)return _0x3e79bc;_0x32e69a['clear']();for(const {suggestion:_0xb1fbb3,meta:_0x4a6f8f}of this['_findSuggestions'](_0x5315ef,'deletion'))_0x4a6f8f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6f8f['containsRangeInObject']&&!_0x4a6f8f['isInsideObject'])&&Ln(_0xb1fbb3,_0x495b24)&&_0x32e69a['add'](_0xb1fbb3);for(const _0x12d6ee of _0x32e69a){const _0x56ae79=_0x12d6ee['getRanges']();if((!_0x495b24||!_0x495b24['skipNestingCheck'])&&_0x5315ef['every'](_0x523631=>_0x56ae79['some'](_0x545d37=>_0x545d37['containsRange'](_0x523631,!0x0))))return _0x12d6ee;_0x12d6ee['attributes']&&_0x12d6ee['attributes']['skipNestingCheck']||_0x56ae79['every'](_0x466e0a=>_0x5315ef['some'](_0x34640c=>_0x34640c['containsRange'](_0x466e0a,!0x0)))&&_0x12d6ee['discard']();}const _0x43a204=_0x38eda5(),_0x3db7dc=_0x1f9304['id'],_0x65aee2='deletion:'+_0x41b1c3,_0x486375=this['_setSuggestionData']({'id':_0x43a204,'type':_0x65aee2,'createdAt':new Date(),'authorId':_0x3db7dc,'attributes':_0x495b24});for(const _0x14f725 of _0x5315ef)_0x14f725['detach'](),_0x14f725['isCollapsed']||'$graveyard'==_0x14f725['root']['rootName']||this['_addSuggestionMarker'](_0x65aee2,_0x43a204,_0x3db7dc,_0x14f725,St['getMultiRangeId']());return _0x486375;}markAttributeChange(_0x24a002,_0x38e7e5,_0x55deca,_0x26cc64,_0x49696f){if(_0x24a002['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3e7e93=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ac69b=Array['from'](this['_suggestions']['values']())['filter'](_0x173962=>'attribute'==_0x173962['type']&&_0x173962['data']['key']==_0x38e7e5&&_0x173962['isIntersectingWithRange'](_0x24a002));if(this['_trackingSessionId']&&(_0x49696f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1df3d7=this['_findSuggestions'](_0x24a002,'insertion')['filter'](({meta:_0x114c49})=>_0x114c49['isOwn']&&!_0x114c49['isInsideObject']&&!_0x114c49['isNextTo'])['map'](({suggestion:_0x23d203})=>_0x23d203);_0x1ac69b['unshift'](..._0x1df3d7);}const _0x50f97c=new Map([[_0x24a002,_0x55deca]]);for(const _0x324f96 of _0x1ac69b){const _0x55bb24='attribute'==_0x324f96['type']?_0x324f96['data']['oldValue']:void 0x0,_0x5da42c=_0x324f96['getFirstRange'](),_0x375598=Array['from'](_0x50f97c['keys']())['find'](_0x44778e=>_0x44778e['isIntersecting'](_0x5da42c));if(!_0x375598)continue;const _0x3185c2=_0x375598['getDifference'](_0x5da42c);this['_suggestionsConversion']['isBlockAttribute'](_0x38e7e5)&&'insertion'==_0x324f96['type']&&0x0!=_0x3185c2['length']||(_0x50f97c['delete'](_0x375598),_0x3185c2['forEach'](_0x29215c=>{_0x50f97c['set'](_0x29215c,_0x55deca);}),'insertion'!=_0x324f96['type']&&_0x55bb24!=_0x26cc64&&_0x50f97c['set'](_0x375598['getIntersection'](_0x5da42c),_0x55bb24));}const _0x4d35a9=[];for(const [_0x226c71,_0x303d6c]of _0x50f97c){const _0x43711a=_0x38eda5(),_0x4b481d={'key':_0x38e7e5,'oldValue':_0x303d6c,'newValue':_0x26cc64};_0x38e7e5['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':_0x38e7e5});const _0x142d80=('attribute:'+_0x38e7e5+'|'+hn({'newValue':_0x26cc64}))['substring'](0x0,0x3c),_0x19eca1=this['_setSuggestionData']({'id':_0x43711a,'type':_0x142d80,'data':_0x4b481d,'createdAt':new Date(),'authorId':_0x3e7e93,'attributes':_0x49696f});_0x4d35a9['push'](_0x19eca1),this['_addSuggestionMarker'](_0x142d80,_0x43711a,_0x3e7e93,_0x226c71);}return _0x4d35a9;}enableDefaultAttributesIntegration(_0x23f2e5){this['enableCommand'](_0x23f2e5,(_0x208a9c,..._0x878169)=>{this['recordAttributeChanges'](()=>{_0x208a9c(..._0x878169);});});}startTrackingSession(_0x5a4b29){return this['_trackingSessionId']=void 0x0!==_0x5a4b29?_0x5a4b29:_0x38eda5(),this['_trackingSessionId'];}_getAttributeKey(_0x4df96c){return'attribute'==_0x4df96c['type']?An(_0x4df96c['subType']):null;}_applyOperationsAsSuggestions(_0x55baab){if(0x0==_0x55baab['length'])return;const _0x13a6af=this['editor'],_0x3e912b=[],_0x37244c=_0x37861e=>{const _0x12a55f=_0x37861e['_aiSource'];return _0x12a55f?{'@ai':{'type':_0x12a55f}}:{};},_0x40c63f=(_0x17eb48,_0x3b3e39,_0x49e021,_0x49d206)=>{const _0x18d6ad=new Set(_0x49d206['flatMap'](_0x3761b6=>_0x3761b6['getMarkerNames']()));let _0x3a3cc0=!0x1;for(let _0x50c28e=_0x3b3e39;_0x50c28e<_0x17eb48['operations']['length'];_0x50c28e++){const _0x22dd85=_0x17eb48['operations'][_0x50c28e];if('marker'==_0x22dd85['type']){if(!_0x18d6ad['has'](_0x22dd85['name']))continue;_0x3a3cc0=!0x0;}_0x22dd85['_aiSource']=_0x49e021;}return _0x3a3cc0;};_0x13a6af['model']['change'](_0x9279b4=>{for(let _0x35242e=0x0;_0x35242e<_0x55baab['length'];_0x35242e++){const _0x50e576=_0x55baab[_0x35242e],_0x392b39=_0x50e576['_aiSource'];if(_0x50e576['baseVersion']=_0x13a6af['model']['document']['version'],_0x50e576['isDocumentOperation']=!0x0,_0x5ed10c(_0x50e576))continue;if(rn(_0x50e576)){const _0x53ad0a=_0x586961(_0x50e576['newRange'],_0x13a6af['model']);_0x3e912b['unshift']({'range':rt['fromRange'](_0x53ad0a),'operation':_0x50e576});continue;}const _0x48f48b=_0x9279b4['batch']['operations']['length']+0x1;let _0x27eb61=[];switch(_0x50e576['type']){case'rename':{const _0x5ce640=_0x50e576['oldName'],_0x39a1ed=_0x50e576['newName'];if(_0x5ce640==_0x39a1ed)break;_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);const _0xd7866d='$elementName',_0xc82072=_0x50e576['position'],_0x3d1b67=_0x13a6af['model']['createRange'](_0xc82072,_0x13a6af['model']['createPositionAt'](_0xc82072['nodeAfter'],'end'));_0x27eb61=this['markAttributeChange'](_0x3d1b67,_0xd7866d,_0x5ce640,_0x39a1ed,{..._0x37244c(_0x50e576),'groupId':_0x38eda5()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1cd1be=_0x50e576['oldValue'],_0x3fb72a=_0x50e576['newValue'];if(_0x1cd1be==_0x3fb72a)break;_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);const _0x1ab735=_0x50e576['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1ab735))break;const _0x4efd29=_0x586961(_0x50e576['range'],_0x13a6af['model']);_0x27eb61=this['markAttributeChange'](_0x4efd29,_0x1ab735,_0x1cd1be,_0x3fb72a,{..._0x37244c(_0x50e576),'groupId':_0x38eda5()});break;}case'insert':{if(_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576),_0x55baab[_0x35242e+0x1]&&'move'==_0x55baab[_0x35242e+0x1]['type'])break;const _0x4cf561=_0x50e576['position'],_0x5ce1fd=_0x50e576['howMany'],_0x31fc94=_0x586961(_0x13a6af['model']['createRange'](_0x4cf561,_0x4cf561['getShiftedBy'](_0x5ce1fd)),_0x13a6af['model']);_0x27eb61=on(this['markInsertion'](_0x31fc94,null,{..._0x37244c(_0x50e576)}));break;}case'split':{_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);const _0x147029=_0x50e576['splitPosition'],_0x31ec96=_0x50e576['moveTargetPosition'],_0x114664=_0x13a6af['model']['createRange'](_0x147029,_0x31ec96);_0x27eb61=on(this['markInsertion'](_0x114664,null,{..._0x37244c(_0x50e576)}));break;}case'move':case'remove':_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);}_0x392b39&&_0x40c63f(_0x9279b4['batch'],_0x48f48b,_0x392b39,_0x27eb61)&&delete _0x50e576['_aiSource'];}for(const {range:_0x4905d3,operation:_0x53213c}of _0x3e912b){const _0x287cea=_0x53213c['_aiSource'],_0x4a602f=_0x37244c(_0x53213c),_0x35218d=_0x9279b4['batch']['operations']['length'];_0x4905d3['detach']();const _0x16f027=this['markDeletion'](_0x4905d3,null,{..._0x4a602f});_0x287cea&&_0x40c63f(_0x9279b4['batch'],_0x35218d,_0x287cea,on(_0x16f027));}});}_setSuggestionRange(_0x594263,_0x14e9d9){const _0x42164e=_0x594263['getFirstMarker']();this['_model']['change'](_0x4a24a0=>{_0x4a24a0['updateMarker'](_0x42164e,{'range':_0x14e9d9});});}_addThreadToSuggestion(_0x209510){const _0x2a22fc=_0x209510['id'],_0x5ef8b7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a22fc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5ef8b7,'threadId':_0x2a22fc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x57ad00=this['_commentsRepository']['getCommentThread'](_0x2a22fc);_0x57ad00['unbind']('isRemovable'),_0x57ad00['isRemovable']=!0x1,_0x209510['commentThread']=_0x57ad00;}_checkSuggestionCorrectness(_0x2bb75f,_0x1ca69f,_0x537941,_0x2650c7){if(_0x2bb75f['type']!=_0x1ca69f||_0x2bb75f['subType']!=_0x537941||_0x2bb75f['creator']['id']!=_0x2650c7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x478e8c('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2f822e,_0xdd06d8){const _0x51273d=_0x2f822e['getFirstRange']();if(_0xdd06d8['isEqual'](_0x51273d))_0x2f822e['removeMarkers']();else{if(_0x51273d['containsRange'](_0xdd06d8)){const _0x2727ec=this['_model']['createPositionAt'](_0xdd06d8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f822e,this['_model']['createRange'](_0x51273d['start'],_0x2727ec));const _0x16474f=_0x38eda5(),_0x36525c=_0x2f822e['creator']['id'],_0x447c95=_0x2f822e['type']+':'+_0x2f822e['subType'];this['_setSuggestionData']({'id':_0x16474f,'type':_0x447c95,'createdAt':new Date(),'authorId':_0x36525c,'data':_0x2f822e['data'],'attributes':_0x2f822e['attributes']});const _0x577b94=this['_model']['createPositionAt'](_0xdd06d8['end']['parent'],'after'),_0x241ed5=this['_model']['createRange'](_0x577b94,_0x51273d['end']);this['_addSuggestionMarker'](_0x447c95,_0x16474f,_0x36525c,_0x241ed5);}else{if(_0x51273d['containsPosition'](_0xdd06d8['start'])){const _0x386286=this['_model']['createPositionAt'](_0xdd06d8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f822e,this['_model']['createRange'](_0x51273d['start'],_0x386286));}else{const _0x51f22e=this['_model']['createPositionAt'](_0xdd06d8['end']['parent'],'after');this['_setSuggestionRange'](_0x2f822e,this['_model']['createRange'](_0x51f22e,_0x51273d['end']));}}}}_rangeIsInLocalUserInsertion(_0x58a1d7){for(const {suggestion:_0x5487c3,meta:_0xbb941}of this['_findSuggestions'](_0x58a1d7,'insertion')){if(!_0xbb941['isOwn'])continue;const _0x3a9e59=_0x5487c3['getRanges']();for(const _0x4ac36c of _0x3a9e59)if(!_0x58a1d7['getDifference'](_0x4ac36c)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x884bff){return this['editor']['plugins']['get']('Users')['getUser'](_0x884bff);}_getExternalAuthor(_0x18aaae){const _0x4c255c=this['editor']['plugins']['get']('Users'),_0x10fb5b=_0x414676('external:'+_0x18aaae),_0x35a250=_0x4c255c['getUser'](_0x10fb5b);return _0x35a250||_0x4c255c['addUser']({'id':_0x10fb5b,'name':_0x18aaae});}_createSuggestion(_0x2376e1,_0x2f315a,_0x155da5,_0x263782,_0x317dde,_0x3bbab5){const _0x29634d=this['_getAuthorFromId'](_0x263782);if(!_0x29634d)throw new _0x478e8c('track-changes-user-not-found',this,{'authorId':_0x263782,'suggestionId':_0x155da5});const _0x4f1ef1=this['_suggestionFactory']['buildSuggestion'](_0x2376e1,_0x2f315a,_0x155da5,_0x29634d,_0x317dde,_0x26897=>{this['_updateSuggestionData'](_0x155da5,{'attributes':_0x26897});const _0x25d136=this['getSuggestion'](_0x155da5);this['_joinWithAdjacentSuggestions'](new Set([_0x25d136])),this['_refreshSuggestionsChain'](new Set([_0x25d136]));},_0x3bbab5);return this['listenTo'](_0x4f1ef1,'accept',()=>{this['_updateSuggestionData'](_0x155da5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f1ef1,'discard',()=>{this['_updateSuggestionData'](_0x155da5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x155da5,_0x4f1ef1),this['_suggestionState']['set'](_0x4f1ef1,'notReady'),_0x4f1ef1;}_breakSuggestionMarker(_0x39009d,_0x51323c,_0xc048b5){const _0x540de8=_0x39009d['getFirstRange'](),_0x2cffff=_0x540de8['start'],_0x3ad4a2=_0x540de8['end'];this['_setSuggestionRange'](_0x39009d,this['_model']['createRange'](_0x2cffff,_0x51323c));const _0x3b3bcb=_0x38eda5(),_0x3f9a38=_0x39009d['creator']['id'],_0x1887f3=_0x39009d['type']+(_0x39009d['subType']?':'+_0x39009d['subType']:'');this['_setSuggestionData']({'id':_0x3b3bcb,'type':_0x1887f3,'createdAt':new Date(),'authorId':_0x3f9a38,'originalSuggestionId':_0x39009d['_originalSuggestionId']||_0x39009d['id'],'attributes':_0x39009d['attributes'],'data':_0x39009d['data']});const _0x51bedd=this['_getAttributeKey'](_0x39009d);('formatBlock'==_0x39009d['type']||_0x51bedd&&this['_suggestionsConversion']['isBlockAttribute'](_0x51bedd))&&(_0xc048b5=this['_model']['createPositionBefore'](_0xc048b5['parent'])),this['_addSuggestionMarker'](_0x1887f3,_0x3b3bcb,_0x3f9a38,this['_model']['createRange'](_0xc048b5,_0x3ad4a2));}_findSuggestions(_0x17eee4,_0x35b050=null){const _0x292be9=[],_0x249b19=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17eee4)||(_0x17eee4=[_0x17eee4]);for(const _0x19828a of this['getSuggestions']()){if(!_0x19828a['isInContent'])continue;if(_0x35b050&&_0x19828a['type']!=_0x35b050)continue;let _0x1f7f44=!0x1;for(const _0x2a8eea of _0x19828a['getRanges']()){for(const _0x4afec3 of _0x17eee4){const _0x2099af=_0x4afec3['start']['isEqual'](_0x2a8eea['end'])||_0x4afec3['end']['isEqual'](_0x2a8eea['start']);if(_0x2099af||_0x4afec3['getIntersection'](_0x2a8eea)){const _0x1b7197=_0x4afec3['containsRange'](_0x2a8eea)&&ln(this['_model']['schema'],_0x2a8eea['start'],_0x4afec3),_0xe8c444=_0x2a8eea['containsRange'](_0x4afec3)&&ln(this['_model']['schema'],_0x4afec3['start'],_0x2a8eea);_0x292be9['push']({'suggestion':_0x19828a,'meta':{'isOwn':_0x249b19==_0x19828a['author'],'isNextTo':_0x2099af,'isInsideObject':_0x1b7197,'containsRangeInObject':_0xe8c444}}),_0x1f7f44=!0x0;break;}}if(_0x1f7f44)break;}}return _0x292be9;}_addSuggestionMarker(_0x299565,_0x3eec13,_0x4bd772,_0x55916f,_0x1b7b0a){this['_model']['change'](_0x341b96=>{let _0x313079='suggestion:'+_0x299565+':'+_0x3eec13+':'+_0x4bd772;_0x1b7b0a&&(_0x313079=_0x313079+':'+_0x1b7b0a),_0x341b96['addMarker'](_0x313079,{'range':_0x55916f,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x48a87b){const _0x1bdd85=_0x48a87b['previous'],_0xb60b70=_0x48a87b['next'];_0x48a87b['previous']=null,_0x48a87b['next']=null,null!=_0x1bdd85&&_0x1bdd85['next']==_0x48a87b&&(_0x1bdd85['next']=_0xb60b70),null!=_0xb60b70&&_0xb60b70['previous']==_0x48a87b&&(_0xb60b70['previous']=_0x1bdd85),'ready'==this['_suggestionState']['get'](_0x48a87b)&&(this['_suggestionState']['set'](_0x48a87b,'removed'),this['fire']('suggestionUnloaded',_0x48a87b,_0x1bdd85,_0xb60b70));}_setSuggestionData(_0x42e53f){const _0x1a15fa=_0x42e53f['id'],_0x2a0b86=this['addSuggestionData'](_0x42e53f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42745c=this['editor']['plugins']['get']('PendingActions'),_0x41360f=_0x2a0b86['hasComments'],_0x2a0d32=_0x2a0b86['subType']?_0x2a0b86['type']+':'+_0x2a0b86['subType']:_0x2a0b86['type'],_0x125ccc=this['editor']['locale'],_0x5030b9=_0x42745c['add'](Mt(_0x125ccc,'PENDING_ACTION_SUGGESTION')),_0x11f627={'id':_0x1a15fa,'type':_0x2a0d32,'hasComments':_0x41360f,'data':_0x42e53f['data']||null,'originalSuggestionId':_0x42e53f['originalSuggestionId']||null,'attributes':_0x2a0b86['attributes']};this['_adapter']['addSuggestion'](_0x11f627)['then'](_0x4c0fe6=>{_0x2a0b86['_saved']=!0x0,_0x42745c['remove'](_0x5030b9),_0x4c0fe6&&_0x4c0fe6['createdAt']&&(this['_suggestions']['get'](_0x1a15fa)['createdAt']=_0x4c0fe6['createdAt']);})['catch'](_0x3c1197=>{throw _0x3f9976('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2a0b86['discard']();}),_0x2a0b86['stopListening'](),this['_suggestions']['delete'](_0x2a0b86['id']),this['_suggestionState']['delete'](_0x2a0b86),_0x3c1197;});}return _0x2a0b86;}_updateSuggestionData(_0x453556,_0x46c1f2){const _0x25832f=this['editor']['plugins']['get']('PendingActions'),_0x5c8a5a=this['getSuggestion'](_0x453556);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5c8a5a['_saved']){const _0x37b819=_0x25832f['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x453556,_0x46c1f2)['then'](()=>{_0x25832f['remove'](_0x37b819);});}else _0x5c8a5a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x453556,_0x46c1f2);});}}_getSuggestionData(_0xd96c42){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x478e8c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xd96c42);}_handleNewSuggestionMarker(_0x21cd8e){const {id:_0x51dab9,type:_0x41b3ff,subType:_0x5ef3d6,authorId:_0x275a48}=tt(_0x21cd8e),_0x26f385=this['_suggestions']['get'](_0x51dab9)||this['_createSuggestion'](_0x41b3ff,_0x5ef3d6,_0x51dab9,_0x275a48,{});switch(this['_checkSuggestionCorrectness'](_0x26f385,_0x41b3ff,_0x5ef3d6,_0x275a48),this['_suggestionState']['get'](_0x26f385)){case'notReady':this['_getSuggestionData'](_0x51dab9)['then'](_0x1ded6b=>{let _0x2c008d=Promise['resolve']();_0x1ded6b['hasComments']&&(_0x2c008d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x51dab9})),_0x2c008d['then'](()=>{this['addSuggestionData'](_0x1ded6b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x26f385,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x51dab9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x26f385,'ready'),this['fire']('suggestionLoaded',_0x26f385);break;case'ready':this['fire']('suggestionChanged',_0x26f385);}return _0x26f385['addMarkerName'](_0x21cd8e),_0x26f385;}_refreshSuggestionsChain(_0x3d0f78){const _0x2f290a=Array['from'](_0x3d0f78),_0x3d2faa=_0x2f290a['filter'](_0x5e273d=>'attribute'==_0x5e273d['type']);this['_refreshAttributeSuggestionsChain'](_0x3d2faa);const _0x23b604=_0x2f290a['filter'](_0x126761=>!_0x126761['isMultiRange']&&'attribute'!=_0x126761['type']),_0x1bf5ec=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4290f2=>!_0x4290f2['isMultiRange']&&'attribute'!=_0x4290f2['type']),_0x502519=_0x1bf5ec['filter'](_0x1bafbb=>!_0x3d0f78['has'](_0x1bafbb)),_0x23d6f4=new Map(_0x1bf5ec['map'](_0x234149=>[_0x234149,this['_suggestionFactory']['getSuggestionCallback'](_0x234149['type'],_0x234149['subType'],'chain')])),_0x3810ee=new Map(_0x1bf5ec['map'](_0x38c821=>[_0x38c821,_0x38c821['getFirstRange']()])),_0x385091=new Set(),_0x250273=new Set();for(let _0x8e89a1=0x0;_0x8e89a1<_0x23b604['length'];_0x8e89a1++)_0x442acb(_0x23b604[_0x8e89a1],_0x23b604,_0x8e89a1+0x1);for(let _0x36bf11=0x0;_0x36bf11<_0x23b604['length'];_0x36bf11++)_0x442acb(_0x23b604[_0x36bf11],_0x502519,0x0);const _0x4046a3=new Set();for(let _0x2ef01d=0x0;_0x2ef01d<_0x23b604['length'];_0x2ef01d++){const _0x5ad5a8=_0x23b604[_0x2ef01d];!_0x250273['has'](_0x5ad5a8)&&_0x5ad5a8['previous']&&(_0x4046a3['add'](_0x5ad5a8['previous']),_0x5ad5a8['previous']['next']===_0x5ad5a8&&(_0x5ad5a8['previous']['next']=null),_0x5ad5a8['previous']=null),!_0x385091['has'](_0x5ad5a8)&&_0x5ad5a8['next']&&(_0x4046a3['add'](_0x5ad5a8['next']),_0x5ad5a8['next']['previous']===_0x5ad5a8&&(_0x5ad5a8['next']['previous']=null),_0x5ad5a8['next']=null);}function _0x442acb(_0x23ae26,_0x45c557,_0x16d7d5){for(let _0x57db73=_0x16d7d5;_0x57db73<_0x45c557['length'];_0x57db73++){const _0x3a2f7e=_0x3e915e(_0x23ae26,_0x45c557[_0x57db73]);_0x3a2f7e&&(_0x3a2f7e[0x0]['next']=_0x3a2f7e[0x1],_0x3a2f7e[0x1]['previous']=_0x3a2f7e[0x0],_0x385091['add'](_0x3a2f7e[0x0]),_0x250273['add'](_0x3a2f7e[0x1]));}}function _0x3e915e(_0x1892b7,_0x470ddc){if(_0x1892b7['author']['id']!==_0x470ddc['author']['id'])return null;const _0x1d7ffd=_0x23d6f4['get'](_0x1892b7)(_0x1892b7,_0x470ddc,_0x3810ee['get'](_0x1892b7),_0x3810ee['get'](_0x470ddc));return _0x1d7ffd&&_0x23d6f4['get'](_0x470ddc)(_0x1892b7,_0x470ddc,_0x3810ee['get'](_0x1892b7),_0x3810ee['get'](_0x470ddc))?_0x1d7ffd[0x1]['commentThread']&&_0x1d7ffd[0x1]['commentThread']['length']?null:_0x1d7ffd:null;}_0x4046a3['size']&&this['_refreshSuggestionsChain'](_0x4046a3);}_refreshAttributeSuggestionsChain(_0x206422){if(0x0==_0x206422['length'])return;const _0x2e4121=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b3fd6=>'attribute'==_0x5b3fd6['type']&&_0x5b3fd6['_isDataLoaded']),_0x4ed2f6=[],_0x302ab3=new Map();for(const _0x45e824 of _0x2e4121){const _0x23b533=_0x414676(_0x45e824['attributes']);_0x302ab3['has'](_0x23b533)||(_0x302ab3['set'](_0x23b533,_0x4ed2f6['length']),_0x4ed2f6['push']([])),_0x4ed2f6[_0x302ab3['get'](_0x23b533)]['push'](_0x45e824);}!(function(){_0x4ed2f6['sort']((_0x1bcbc2,_0x55a8d4)=>{const _0x17d7d8=_0x1bcbc2[0x0]['createdAt'],_0x1c2bd1=_0x55a8d4[0x0]['createdAt'];return _0x17d7d8==_0x1c2bd1?_0x1bcbc2[0x0]['attributes']['groupId']<_0x55a8d4[0x0]['attributes']['groupId']?-0x1:0x1:_0x17d7d8<_0x1c2bd1?-0x1:0x1;});for(const _0x1d30c7 of _0x4ed2f6)_0x1d30c7['sort']((_0x1df1aa,_0x2a4f17)=>_0x1df1aa['id']<_0x2a4f17['id']?-0x1:0x1);}());for(let _0x4bed5e=0x0;_0x4bed5e<_0x4ed2f6['length'];_0x4bed5e++){if(0x0==_0x4ed2f6[_0x4bed5e]['length'])continue;const _0x5e0926=[];for(let _0x3e75bc=_0x4bed5e+0x1;_0x3e75bc<_0x4ed2f6['length'];_0x3e75bc++)0x0!=_0x4ed2f6[_0x3e75bc]['length']&&_0x101807(_0x4ed2f6[_0x4bed5e],_0x4ed2f6[_0x3e75bc])&&_0x5e0926['push'](_0x3e75bc);for(const _0x69ef3e of _0x5e0926)_0x4ed2f6[_0x4bed5e]=_0x4ed2f6[_0x4bed5e]['concat'](_0x4ed2f6[_0x69ef3e]),_0x4ed2f6[_0x69ef3e]=[];}for(const _0x5a4f67 of _0x4ed2f6)for(let _0x568090=0x0;_0x568090<_0x5a4f67['length'];_0x568090++){const _0x216eaf=_0x5a4f67[_0x568090+0x1]||null;_0x5a4f67[_0x568090]['next']!==_0x216eaf&&(_0x5a4f67[_0x568090]['next']=_0x216eaf);}for(const _0x4438bb of _0x4ed2f6)for(let _0x5f1db4=0x0;_0x5f1db4<_0x4438bb['length'];_0x5f1db4++){const _0x286d42=_0x4438bb[_0x5f1db4-0x1]||null;_0x4438bb[_0x5f1db4]['previous']!==_0x286d42&&(_0x4438bb[_0x5f1db4]['previous']=_0x286d42);}function _0x101807(_0x46d2e5,_0xd3885c){if(_0x46d2e5[0x0]['attributes']['groupId']!==_0xd3885c[0x0]['attributes']['groupId']&&_0x46d2e5[0x0]['author']!==_0xd3885c[0x0]['author'])return!0x1;if(!function(_0x3e3618,_0x1c4cad){return!_0x3e3618['hasComments']&&!_0x1c4cad['hasComments']||(!_0x3e3618['hasComments']||!_0x1c4cad['hasComments'])&&(!!(_0x3e3618['hasComments']&&_0x1c4cad['createdAt']<_0x3e3618['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x1c4cad['hasComments']&&_0x3e3618['createdAt']<_0x1c4cad['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x46d2e5[0x0],_0xd3885c[0x0]))return!0x1;const _0x3d1494=lt(_0x46d2e5[0x0]['attributes'],['groupId','trackingSessionId']),_0x31b5c1=lt(_0xd3885c[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x3d1494,_0x31b5c1)&&(_0x46d2e5[0x0]['attributes']['groupId']==_0xd3885c[0x0]['attributes']['groupId']||_0x46d2e5[0x0]['attributes']['trackingSessionId']===_0xd3885c[0x0]['attributes']['trackingSessionId']&&(!!_0x46d2e5['every'](_0x582359=>_0xd3885c['some'](_0x8c9d64=>_0x582359['getFirstRange']()['isEqual'](_0x8c9d64['getFirstRange']())))&&_0xd3885c['every'](_0x17c308=>_0x46d2e5['some'](_0x263a25=>_0x17c308['getFirstRange']()['isEqual'](_0x263a25['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x29fba5){const _0x146624=Array['from'](_0x29fba5),_0x513116=this['getSuggestions']({'skipNotAttached':!0x0}),_0xc846b5=_0x513116['filter'](_0x4efb4f=>!_0x29fba5['has'](_0x4efb4f)),_0x21ae73=new Map(_0x146624['map'](_0x2fdc6c=>[_0x2fdc6c,this['_suggestionFactory']['getSuggestionCallback'](_0x2fdc6c['type'],_0x2fdc6c['subType'],'join')])),_0x377a62=new Map(_0x513116['map'](_0x5ba51f=>[_0x5ba51f,_0x5ba51f['getRanges']()]));for(let _0x50b5a0=0x0;_0x50b5a0<_0x146624['length'];_0x50b5a0++)if(_0x559753(this,_0x146624[_0x50b5a0],_0x146624,_0x50b5a0+0x1))return!0x0;for(let _0x4d579c=0x0;_0x4d579c<_0x146624['length'];_0x4d579c++)if(_0x559753(this,_0x146624[_0x4d579c],_0xc846b5,0x0))return!0x0;return!0x1;function _0x559753(_0x1638fd,_0x4af642,_0x46526d,_0x57126e){for(let _0x4a2b6d=_0x57126e;_0x4a2b6d<_0x46526d['length'];_0x4a2b6d++){const _0x2c8e6b=_0x46526d[_0x4a2b6d];if(_0x2c8e6b['type']!==_0x4af642['type']||_0x2c8e6b['author']['id']!==_0x4af642['author']['id']||_0x2c8e6b['subType']!==_0x4af642['subType'])continue;if(!pn(_0x4af642,_0x2c8e6b))continue;if('attribute'==_0x4af642['type']&&_0x4af642['data']['oldValue']!=_0x2c8e6b['data']['oldValue'])continue;if('attribute'==_0x4af642['type']&&_0x1638fd['_suggestionsConversion']['isBlockAttribute'](_0x4af642['data']['key']))continue;if('formatBlock'==_0x4af642['type']){const _0x402c1a=_0x1638fd['editor']['model'],_0x159ebe=_0x4af642['getContainedElement']();if(_0x159ebe&&(_0x402c1a['schema']['isObject'](_0x159ebe)||_0x402c1a['schema']['isLimit'](_0x159ebe)))continue;}const _0x320a9b=_0x21ae73['get'](_0x4af642),_0x1284ef=_0x377a62['get'](_0x4af642),_0x15e110=_0x377a62['get'](_0x2c8e6b),_0xd61c16=_0x4af642['commentThread']&&_0x4af642['commentThread']['length'],_0x2b6cce=_0x2c8e6b['commentThread']&&_0x2c8e6b['commentThread']['length'];if(!_0xd61c16&&_0x320a9b(_0x15e110,_0x1284ef))return _0x1638fd['_joinSuggestions'](_0x2c8e6b,_0x4af642),_0x377a62['delete'](_0x4af642),!0x0;if(!_0x2b6cce&&_0x320a9b(_0x1284ef,_0x15e110))return _0x1638fd['_joinSuggestions'](_0x4af642,_0x2c8e6b),_0x377a62['delete'](_0x2c8e6b),!0x0;}return!0x1;}}_joinSuggestions(_0x29196d,_0x1b22e9){if(_0x29196d['isMultiRange']){for(const _0x45ffbf of _0x1b22e9['getRanges']())_0x29196d['addRange'](_0x45ffbf);}else{const _0x44240a=_0x1b22e9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x29196d,this['_model']['createRange'](_0x29196d['getFirstRange']()['start'],_0x44240a));}_0x1b22e9['removeMarkers']();}_getMarkerAnnouncementText(_0x373d13,_0x5ce9f2,_0x5e2bac){const _0x38f4f4=_0x373d13['startsWith']('format')||_0x373d13['startsWith']('attribute')?'FORMATTING':_0x373d13['toUpperCase']();return Mt(this['editor']['locale'],_0x5ce9f2+'_'+_0x38f4f4+'_SUGGESTION_ANNOUNCEMENT',_0x5e2bac);}_initAriaMarkerChangeAnnouncements(){const _0x3132b4=this['editor'];if(!_0x3132b4['ui'])return;const {ariaLiveAnnouncer:_0x1159e5}=_0x3132b4['ui'];et(this['_model'],({left:_0x2934bb,entered:_0x434fca})=>{for(const _0x5202ff of _0x2934bb){const {group:_0x1b2cee,type:_0x1d4978}=tt(_0x5202ff['name']);if('suggestion'===_0x1b2cee){_0x1159e5['announce'](this['_getMarkerAnnouncementText'](_0x1d4978,'LEAVE'));break;}}for(const _0x38defd of _0x434fca){const {group:_0x1e4d2b,type:_0x480887}=tt(_0x38defd['name']);if('suggestion'===_0x1e4d2b){_0x1159e5['announce'](this['_getMarkerAnnouncementText'](_0x480887,'ENTER',_0xe73984(_0x58c131)));break;}}});}_processAttributeChanges(_0x4a939c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3b4fe3=this['editor'],_0x4a0ed6=_0x3b4fe3['model']['document']['differ']['getChanges']();if(0x0==_0x4a0ed6['length'])return!0x1;const _0x4fad96=[],_0x48c693=_0x4a0ed6['filter'](_0x5e429e=>'attribute'==_0x5e429e['type']),_0x6fb569=_0x4a0ed6['filter'](_0x58b4f0=>'insert'==_0x58b4f0['type']&&'$text'!=_0x58b4f0['name']),_0xcf2870=_0x4a0ed6['filter'](_0x3ed2ba=>'remove'==_0x3ed2ba['type']&&'$text'!=_0x3ed2ba['name']);for(const _0x300d54 of _0x48c693)_0x4fad96['push']({'key':_0x300d54['attributeKey'],'newValue':_0x300d54['attributeNewValue'],'oldValue':_0x300d54['attributeOldValue'],'range':En(_0x300d54['range'],_0x3b4fe3['model'])});for(const _0x12bc6e of _0x6fb569){const _0x134f9d=_0xcf2870['find'](_0x19a50d=>_0x19a50d['position']['isEqual'](_0x12bc6e['position']));_0x134f9d&&_0x4fad96['push']({'key':sn,'newValue':_0x12bc6e['name'],'oldValue':_0x134f9d['name'],'range':_0x3b4fe3['model']['createRangeOn'](_0x12bc6e['position']['nodeAfter'])});}return 0x0!=_0x4fad96['length']&&this['_reduceExistingSuggestions'](_0x4a939c,_0x4fad96);}_processAttributeSuggestions(_0x25f97b){let _0xa4c0c8=!0x1;const _0x4be835=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1199ae=>_0x1199ae['data']['newRange']&&_0x1199ae['name']['startsWith']('suggestion:attribute:'));for(const _0x121eb9 of _0x4be835){const {subType:_0x6936c,id:_0x9ecb62}=tt(_0x121eb9['name']),_0x1904df=_0x6936c['split']('|')[0x0];for(const _0x194138 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x194138['id']!=_0x9ecb62&&'attribute'==_0x194138['type']&&_0x194138['data']&&_0x194138['data']['key']==_0x1904df&&_0x194138['getFirstRange']()['isIntersecting'](_0x121eb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x194138,_0x121eb9['data']['newRange'],_0x25f97b),_0xa4c0c8=!0x0);}return _0xa4c0c8;}recordAttributeChanges(_0x5a06ae){this['_recordAttributeSuggestions']=!0x0,_0x5a06ae();}_reduceExistingSuggestions(_0x49f310,_0x461478){if(0x0==_0x461478['length'])return!0x1;let _0x3ed22e=!0x1;for(const _0x1b8ac0 of _0x461478){const _0x5d7217=this['_findSuggestions'](_0x1b8ac0['range'],'attribute')['filter'](_0x22be3b=>!_0x22be3b['meta']['isNextTo'])['map'](_0x51940c=>_0x51940c['suggestion']),_0x12bb96=_0x414676({'newValue':_0x1b8ac0['newValue']});_0x5d7217['filter'](_0x10ba7c=>{const [_0x2ef65b,_0x527858]=_0x10ba7c['subType']['split']('|');return _0x2ef65b==_0x1b8ac0['key']&&_0x527858!=_0x12bb96;})['forEach'](_0x5e589b=>{this['_reduceSuggestionAttributeRange'](_0x5e589b,_0x1b8ac0['range'],_0x49f310),_0x3ed22e=!0x0;});}return _0x3ed22e;}_reduceSuggestionAttributeRange(_0x257530,_0x10f4a8,_0x172518){const _0x4e40a8=_0x257530['getFirstRange']()['getDifference'](_0x10f4a8);0x0!==_0x4e40a8['length']?0x1!==_0x4e40a8['length']?this['_breakSuggestionMarker'](_0x257530,_0x10f4a8['start'],_0x10f4a8['end']):this['_setSuggestionRange'](_0x257530,_0x4e40a8[0x0]):_0x172518['removeMarker'](_0x257530['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0xbf09ea){this['_editor']=_0xbf09ea,this['_model']=_0xbf09ea['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x235822,_0x23d1be,_0x45a8ae,_0x5d3b74,_0xd5960e,_0x3c4051,_0x267aa5){return new St(this['_model'],{'type':_0x235822,'subType':_0x23d1be,'id':_0x45a8ae,'originalSuggestionId':_0x267aa5,'author':_0x5d3b74,'creator':_0x5d3b74,'attributes':_0xd5960e,'onAttributesChange':_0x3c4051,'onAccept':(..._0x208fc6)=>this['getSuggestionCallback'](_0x235822,_0x23d1be,'accept')(..._0x208fc6),'onDiscard':(..._0x570519)=>this['getSuggestionCallback'](_0x235822,_0x23d1be,'discard')(..._0x570519)});}registerCustomCallback(_0x30ff8b,_0x530b82,_0x2ca7a3,_0x2aa2dc){const _0x1ba099=_0x30ff8b+':'+_0x530b82+':'+_0x2ca7a3;this['_customCallbacks']['set'](_0x1ba099,_0x2aa2dc);}getSuggestionCallback(_0x752a20,_0xa21f6b,_0x5ce9cd){const _0x25a7fd=_0x752a20+':'+_0xa21f6b+':'+_0x5ce9cd;return this['_customCallbacks']['get'](_0x25a7fd)||this['_defaultCallbacks']['get'](_0x752a20+':'+_0x5ce9cd);}_registerDefaultCallbacks(){const _0x52ba65=()=>!0x1,_0x4da9a6=_0x1062b4=>{_0x1062b4['sort']((_0x4e42e1,_0x3370d7)=>_0x4e42e1['start']['isBefore'](_0x3370d7['start'])?0x1:-0x1),this['_model']['change'](_0x29e7dc=>{for(const _0x37cdcd of _0x1062b4){let _0x10b96d;_0x10b96d=_0x37cdcd['end']['isAtEnd']&&_0x37cdcd['end']['parent']==_0x37cdcd['start']['nodeAfter']?_0x29e7dc['createSelection'](_0x37cdcd['start']['nodeAfter'],'on'):_0x29e7dc['createSelection'](_0x37cdcd),this['_model']['deleteContent'](_0x10b96d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xb1029a=(_0x32f2fc,_0x516a0e)=>{_0x516a0e&&this['_model']['change'](_0x3645a6=>{const {commandName:_0x273d64,commandParams:_0x4485c6=[]}=_0x516a0e,_0x4373e2=_0x32f2fc['map'](_0x37150b=>(un(_0x37150b)&&(_0x37150b=this['_model']['createRange'](_0x37150b['end'])),_0x37150b))['filter'](_0x17eb84=>'$graveyard'!==_0x17eb84['root']['rootName']);if(_0x4373e2['length']<0x1)return;const _0x234dd9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd57b66=>rt['fromRange'](_0xd57b66));_0x3645a6['setSelection'](_0x4373e2);for(const _0x2bdfe0 of this['_editor']['commands']['commands']())_0x2bdfe0['refresh']();_0x4485c6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x273d64,..._0x4485c6);const _0x45870c=_0x234dd9['filter'](_0xe3afce=>'$graveyard'!=_0xe3afce['root']['rootName']);_0x45870c['length']>0x0&&_0x3645a6['setSelection'](_0x45870c);for(const _0x4947c9 of _0x234dd9)_0x4947c9['detach']();});},_0x37ea87=(_0x221609,_0x4e8dc0)=>0x1==_0x221609['length']&&0x1==_0x4e8dc0['length']&&_0x221609[0x0]['end']['isEqual'](_0x4e8dc0[0x0]['start']),_0x5cd417=(_0x368deb,_0x424102,_0x5b095c,_0x145275)=>_n(_0x368deb,_0x424102,_0x5b095c,_0x145275)?[_0x368deb,_0x424102]:_n(_0x424102,_0x368deb,_0x145275,_0x5b095c)?[_0x424102,_0x368deb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52ba65),this['_defaultCallbacks']['set']('insertion:discard',_0x4da9a6),this['_defaultCallbacks']['set']('insertion:join',_0x37ea87),this['_defaultCallbacks']['set']('insertion:chain',_0x5cd417),this['_defaultCallbacks']['set']('deletion:accept',_0x4da9a6),this['_defaultCallbacks']['set']('deletion:discard',_0x52ba65),this['_defaultCallbacks']['set']('deletion:join',_0x37ea87),this['_defaultCallbacks']['set']('deletion:chain',_0x5cd417),this['_defaultCallbacks']['set']('formatInline:accept',_0xb1029a),this['_defaultCallbacks']['set']('formatInline:discard',_0x52ba65),this['_defaultCallbacks']['set']('formatInline:join',_0x37ea87),this['_defaultCallbacks']['set']('formatInline:chain',_0x52ba65),this['_defaultCallbacks']['set']('formatBlock:accept',_0xb1029a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52ba65),this['_defaultCallbacks']['set']('formatBlock:join',_0x37ea87),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52ba65),this['_defaultCallbacks']['set']('attribute:accept',_0x52ba65),this['_defaultCallbacks']['set']('attribute:discard',(_0xe19b2,_0x54ebdc)=>{if(!_0x54ebdc)return;const _0x3e9664=this['_editor']['plugins']['get'](_0x5b8360);this['_model']['change'](_0x3e25fe=>{if('$elementName'==_0x54ebdc['key'])for(const _0x5122ff of _0xe19b2){const _0x5e960b=_0x5122ff['start']['nodeAfter'],_0x474a86=_0x54ebdc['oldValue'];_0x3e25fe['rename'](_0x5e960b,_0x474a86);}else{if(_0x3e9664['isBlockAttribute'](_0x54ebdc['key'])){for(const _0x4d707c of _0xe19b2)void 0x0!==_0x54ebdc['oldValue']?_0x3e25fe['setAttribute'](_0x54ebdc['key'],_0x54ebdc['oldValue'],_0x4d707c['start']['nodeAfter']):_0x3e25fe['removeAttribute'](_0x54ebdc['key'],_0x4d707c['start']['nodeAfter']);}else{for(const _0x412f14 of _0xe19b2)_0x54ebdc['oldValue']?_0x3e25fe['setAttribute'](_0x54ebdc['key'],_0x54ebdc['oldValue'],_0x412f14):_0x3e25fe['removeAttribute'](_0x54ebdc['key'],_0x412f14);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x37ea87);}};function ln(_0xf5cda7,_0x15f9d3,_0x5aedd1){for(const _0xde2be4 of _0x15f9d3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xde2be4['root']==_0xde2be4)return!0x1;if(!_0x5aedd1['containsItem'](_0xde2be4))return!0x1;if(_0xf5cda7['isObject'](_0xde2be4)||_0xf5cda7['isLimit'](_0xde2be4))return!0x0;}return!0x1;}function un(_0x2008d8){return _0x2008d8['end']['parent']==_0x2008d8['start']['nodeAfter']&&_0x2008d8['end']['isAtStart'];}function dn(_0x11983e,_0x1ec6e5,_0x462ed0,_0x43eb14){const _0x2f8312=_0x369788=>!_0x369788['item']['is']('$textProxy')&&!_0x43eb14['isObject'](_0x369788['item']),_0x5900e9=_0x11983e['start']['getLastMatchingPosition'](_0x2f8312),_0xdb1431=_0x11983e['end']['getLastMatchingPosition'](_0x2f8312,{'direction':'backward'});return(!_0x11983e['start']['isEqual'](_0x5900e9)||!_0x11983e['end']['isEqual'](_0xdb1431))&&(_0x5900e9['isBefore'](_0xdb1431)?_0x462ed0['updateMarker'](_0x1ec6e5,{'range':_0x462ed0['createRange'](_0x5900e9,_0xdb1431)}):_0x462ed0['removeMarker'](_0x1ec6e5),!0x0);}function hn(_0x522cc3){return _0x414676(_0x522cc3);}function gn(_0x322186){const _0x1b7867=_0x322186['start']['nodeAfter'];return _0x1b7867&&_0x1b7867['is']('element');}function fn(_0x5994a0){return un(_0x5994a0)||function(_0x2d3aa8){return _0x2d3aa8['start']['parent']==_0x2d3aa8['end']['nodeBefore']&&_0x2d3aa8['start']['isAtEnd'];}(_0x5994a0);}function mn(_0x25226a,_0x52fe40){try{const _0x34d0a3=_0x25226a['getRange']();for(const _0x532fd9 of _0x52fe40)if(_0x25226a!==_0x532fd9&&_0x34d0a3&&_0x34d0a3['isIntersecting'](_0x532fd9['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x3ace08,_0x143d55){return null==_0x3ace08['end']['nodeBefore']&&_0x3ace08['end']['parent']==_0x3ace08['start']['nodeAfter']?Tn(_0x3ace08['start']['nodeAfter'],_0x143d55):_0x3ace08;}function Tn(_0x1fc86f,_0x104ea4){const _0x43c2f5=_0x104ea4['schema']['isObject'](_0x1fc86f)||_0x104ea4['schema']['isSelectable'](_0x1fc86f);return _0x104ea4['createRange'](_0x104ea4['createPositionAt'](_0x1fc86f,'before'),_0x43c2f5?_0x104ea4['createPositionAfter'](_0x1fc86f):_0x104ea4['createPositionAt'](_0x1fc86f,'end'));}function _n(_0x3f4fc0,_0x13920a,_0x28946b,_0x1e172c){return!!pn(_0x3f4fc0,_0x13920a)&&_0x28946b['end']['isEqual'](_0x1e172c['start']);}function pn(_0x49e746,_0x21ae0c){if(!_0x49e746['_isDataLoaded']||!_0x21ae0c['_isDataLoaded'])return!0x1;const _0x124f3e=new Set(Object['keys'](_0x49e746['attributes'])),_0x289896=new Set(Object['keys'](_0x21ae0c['attributes']));if(_0x124f3e['delete']('groupId'),_0x289896['delete']('groupId'),0x0==_0x124f3e['size']&&0x0==_0x289896['size'])return!0x0;if(_0x124f3e['size']!=_0x289896['size'])return!0x1;const _0x5c8664={..._0x49e746['attributes']},_0x288e06={..._0x21ae0c['attributes']};return delete _0x5c8664['groupId'],delete _0x288e06['groupId'],JSON['stringify'](_0x5c8664)==JSON['stringify'](_0x288e06);}function Ln(_0x41afea,_0x300473){const _0x426f92=In(_0x41afea['attributes']),_0x3af0ca=In(_0x300473);if(!_0x41afea['_isDataLoaded'])return!0x1;if(!ct(_0x426f92['@ai'],_0x3af0ca['@ai']))return!0x1;for(const _0x1b027f of Object['keys'](_0x3af0ca))if(!ct(_0x426f92[_0x1b027f],_0x3af0ca[_0x1b027f]))return!0x1;return!0x0;}function In(_0x233143){const _0x2b62e5=Object['assign']({},_0x233143);return delete _0x2b62e5['skipNestingCheck'],delete _0x2b62e5['tablePasteChainId'],_0x2b62e5;}function An(_0x3b7edf){return _0x3b7edf['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x525997();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x35ce70,_0x3fbac6,_0x2eb102,_0x449d14){super(),this['model']=_0x3fbac6,this['view']=_0x2eb102,this['commentThreadController']=_0x449d14,this['_editor']=_0x35ce70,this['_acceptCommand']=_0x35ce70['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x35ce70['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x353da0,_0x2626cf)=>_0x353da0||_0x2626cf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x91c34e=>_0x91c34e&&this['_editor']['model']['canEditAt'](_0x3fbac6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x238831=>_0x238831&&this['_editor']['model']['canEditAt'](_0x3fbac6['getRanges']())),this['_pendingAction']=null,_0x2eb102['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2eb102,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2eb102,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2eb102,'change:isDirty',()=>{_0x2eb102['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 _0x4a60e7=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a60e7);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x21bd75{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c881f,_0x5e83c3,_0x2ac8e2,_0xe11e13){super(_0x4c881f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x21919c(_0x4c881f,Mt(_0x4c881f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5e83c3['authoredAt']),this['bind']('authoredAt')['to'](_0x5e83c3),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',_0x5e83c3,'authoredAt',this,'descriptionParts',(_0x24cf22,_0x434ae9,_0x3b8b85)=>{const _0x54dae7=_0x3b8b85['map'](_0x1844c7=>Lt(_0x1844c7['content']))['join']('.\x20')+'.',_0x2f6676=_0x5e83c3['aiSource']&&'author'===_0xe11e13['showAISource']?_0xe11e13['aiAuthor']['name']:_0x5e83c3['author']['name'],_0x4d6566=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x24cf22-0x1,_0x2f6676,_0x434ae9?_0xe11e13['formatDateTime'](_0x434ae9):'',new DOMParser()['parseFromString'](_0x54dae7,'text/html')['body']['textContent']]);return _0x5e83c3['aiSource']&&'pill'===_0xe11e13['showAISource']?_0x4d6566+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x4d6566;}),this['focusables']=new _0x4dbb2d(),this['focusTracker']=new _0x5a4440(),this['keystrokes']=new _0x9d62cf(),this['focusCycler']=new _0x2f7b83({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3469d3=>_0x3469d3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5e83c3,this['_localUser']=_0x2ac8e2,this['_config']=_0xe11e13,_0xe11e13['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x231474(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x49a67f}=this['_config'];this['commentsListView']=new _0x49a67f(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',_0x115c94=>_0x115c94+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x40499e,_0xd43461)=>_0x40499e||!!_0xd43461);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x265a55}=this['_config'],_0x176afa=new _0x265a55(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x49f6e7=_0x176afa['commentInputView'];return _0x176afa['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x49f6e7,'value',(_0x4c2d33,_0x581e88,_0x1bab35)=>!!_0x1bab35||_0x4c2d33&&!_0x581e88),_0x49f6e7['on']('submit',(_0x52801c,_0x452eb8)=>{this['fire']('addComment',_0x452eb8),_0x49f6e7['editor']['setData']('');}),_0x49f6e7['on']('cancel',()=>this['focus']()),_0x49f6e7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x176afa;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x574cb0,_0x93a255,_0x62dd4c,_0x104a25){super(_0x574cb0,_0x93a255,_0x62dd4c,_0x104a25),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5f305e=>_0x5f305e&&_0x5f305e[0x0]?_0x5f305e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x34f75d,_0x2ebf17)=>{let _0x3040c0='';for(const _0x20999e of _0x34f75d)_0x3040c0+='<p>'+Lt(_0x20999e['content'],_0x20999e['color'])+'</p>';return _0x2ebf17?_0x3040c0:nt(_0x3040c0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x104a25['SuggestionView'](_0x574cb0,_0x93a255,{'formatDateTime':_0x104a25['formatDateTime'],'showAISource':_0x104a25['showAISource'],'aiAuthor':_0x104a25['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x1943d6=this['bindTemplate'],_0x27d9de=[this['suggestionView']];return this['commentsListView']&&_0x27d9de['push'](this['commentsListView']),this['commentThreadInputView']&&_0x27d9de['push'](this['commentThreadInputView']),_0x27d9de['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1943d6['if']('isActive','ck-suggestion-wrapper--active'),_0x1943d6['to']('type',_0x21c0f8=>'ck-suggestion-'+_0x21c0f8),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':_0x1943d6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x27d9de};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},yn=class extends _0x21bd75{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x315679,_0x55a3f6,_0x36a509){super(_0x315679),this['_model']=_0x55a3f6,this['_config']=_0x36a509,this['set']('description',''),this['bind']('authoredAt')['to'](_0x55a3f6),this['acceptButton']=this['_createButton'](Mt(_0x315679,'Accept\x20suggestion'),_0x4d01a3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x315679,'Discard\x20suggestion'),_0x368046,'ck-suggestion--discard','discardSuggestion','sw');const _0x2ae1a8=!!_0x55a3f6['aiSource']&&'author'===_0x36a509['showAISource'],_0x4ad7f3=_0x2ae1a8?this['_createAIUser'](_0x36a509['aiAuthor']):_0x55a3f6['author'],_0x25de26=_0x2ae1a8&&!_0x36a509['aiAuthor']['avatar']?_0x3c9f84:void 0x0;this['userView']=new _0x19fe81(_0x315679,_0x4ad7f3,this['getUserViewNotificationText'](),_0x25de26),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4dbb2d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a4440(),this['keystrokes']=new _0x9d62cf(),this['focusCycler']=new _0x2f7b83({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1577e5=>_0x1577e5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e1ef2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e1ef2['innerHTML']=this['description'],this['on']('change:description',(_0x1e6fde,_0x534441,_0x4f722c)=>{_0x4e1ef2['innerHTML']=_0x4f722c;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x4f2f61=this['bindTemplate'],_0x4d3696=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x4f2f61['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4f2f61['to']('authoredAt',_0x4ecac8=>this['_config']['formatDateTime'](_0x4ecac8))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x4d3696['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x27873b=new _0xccde03(this['locale']);_0x27873b['set']({'icon':_0x482d2e,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4d3696['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x27873b]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4d3696}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x2e2f2b){return new _0x19710e({'id':'ck-ai-author','name':_0x2e2f2b['name'],'avatar':_0x2e2f2b['avatar'],'color':new _0x25211d(0x0)});}_createButton(_0xb39ebb,_0x3b3faf,_0x5f2619,_0x1abcfc,_0x2f405c){const _0x3fd806=new _0x3afb84(this['locale']);return _0x3fd806['set']({'label':_0xb39ebb,'icon':_0x3b3faf,'tooltip':!0x0,'tooltipPosition':_0x2f405c}),_0x3fd806['extendTemplate']({'attributes':{'class':_0x5f2619}}),_0x3fd806['on']('execute',()=>{this['fire'](_0x1abcfc,this['_model']['id']);}),_0x3fd806;}_setupKeyboardNavigation(){const _0x4097ec=this['element'];this['keystrokes']['listenTo'](_0x4097ec);for(const _0x4e5607 of this['focusables'])this['focusTracker']['add'](_0x4e5607['element']),this['keystrokes']['listenTo'](_0x4e5607['element']);this['keystrokes']['set']('enter',(_0x4696e6,_0x2a8326)=>{_0x4097ec===_0x4696e6['target']&&(this['focusCycler']['focusFirst'](),_0x2a8326());}),this['keystrokes']['set']('esc',(_0x5e393a,_0x3607e6)=>{_0x4097ec!==_0x5e393a['target']&&(this['focus'](),_0x3607e6());});}},Nn=class extends _0x5ba5d4{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x5d6c79,_0x5efbfe,_0x4c867f,_0x1f718d];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x299680){super(_0x299680),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5937d2=this['editor']['config'];_0x5937d2['define']('trackChanges.SuggestionThreadView',Rn),_0x5937d2['define']('trackChanges.SuggestionView',yn),_0x5937d2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5937d2['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x454b98,_0x93345e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3bd8e2,_0x419f38]of this['_handleControllerBuffer']){const _0x13951e=this['_suggestionToController']['has'](_0x3bd8e2);_0x13951e||_0x419f38?_0x13951e&&_0x419f38&&this['_destroyController'](_0x3bd8e2):this['_initializeController'](_0x3bd8e2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1f718d)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x454b98,_0x93345e);}init(){const _0x3530bf=this['editor'],_0x2ea222=_0x3530bf['plugins']['get'](an),_0x296865=_0x3530bf['plugins']['get'](_0x4c867f),_0xffa994=_0x3530bf['plugins']['get'](_0x1f718d),_0x57aa1e=_0x3530bf['plugins']['get'](_0x5efbfe);this['_addUIComponentsToFactory'](),_0xffa994['addSourceCollector'](()=>{const _0x388893=[];for(const [_0x276406,_0x5d04e8]of Array['from'](this['_suggestionToController'])){const _0x541f1f=_0x276406['getAllAdjacentSuggestions'](),_0x2dd1ea=[];for(const _0x2bdbdb of _0x541f1f){if(!_0x2bdbdb['isInContent'])continue;if(_0x2bdbdb['isMultiRange']){_0x2dd1ea['push'](..._0x2bdbdb['getRanges']());continue;}const _0xc10cc2=_0x2bdbdb['getFirstRange']();if(_0x2dd1ea['length']>0x0){const _0x1968df=_0x2dd1ea[0x0]['getJoined'](_0xc10cc2);if(_0x1968df){_0x2dd1ea[0x0]=_0x1968df;continue;}}_0x2dd1ea['push'](_0xc10cc2);}_0x388893['push']([_0x5d04e8['view'],_0x2dd1ea]);}return _0x388893;}),this['listenTo'](_0x2ea222,'suggestionLoaded',(_0x3b76d2,_0xf79daf)=>{this['listenTo'](_0xf79daf,'change:previous',(_0x23f1cc,_0x110951,_0x53c3ea,_0x909574)=>{_0xf79daf['isInContent']&&(null==_0x53c3ea?(this['_updateController'](_0x909574['head']),this['_handleSuggestionControllerDelayed'](_0xf79daf,!0x1)):(this['_updateController'](_0x53c3ea['head']),null==_0x909574&&this['_handleSuggestionControllerDelayed'](_0xf79daf,!0x0)));}),null!==_0xf79daf['previous']?this['_updateController'](_0xf79daf['head']):this['_handleSuggestionControllerDelayed'](_0xf79daf,!0x1);}),this['listenTo'](_0x2ea222,'suggestionUnloaded',(_0x2bcd64,_0x281976,_0x4d101f)=>{this['stopListening'](_0x281976,'change:previous'),this['_handleControllerBuffer']['delete'](_0x281976),this['_suggestionToController']['has'](_0x281976)&&this['_destroyController'](_0x281976),_0x4d101f&&this['_updateController'](_0x4d101f['head']);}),this['listenTo'](_0x2ea222,'suggestionChanged',(_0x30b292,_0x1405ce)=>{this['_updateController'](_0x1405ce);}),this['listenTo'](_0x296865,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x57aa1e,'addComment',(_0x596652,{threadId:_0x2c086d,isFromAdapter:_0x59cc8b})=>{if(_0x59cc8b||!_0x2ea222['hasSuggestion'](_0x2c086d))return;const _0x2a6a5e=_0x2ea222['getSuggestion'](_0x2c086d);this['_suggestionToController']['get'](_0x2a6a5e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x33aa9c=[this['editor']];for(const _0x2303ab of _0x33aa9c){let _0x100498;for(const _0x3d2341 in _0x2303ab){const _0x700bc9=_0x3d2341,_0xb209fd=_0x2303ab[_0x700bc9];if('trackChangesLicenseKeyValid'==_0xb209fd||'trackChangesLicenseKeyInvalid'==_0xb209fd||'trackChangesLicenseKeyExpired'==_0xb209fd||'trackChangesLicenseKeyDomainLimit'==_0xb209fd||'trackChangesLicenseKeyNotAllowed'==_0xb209fd||'trackChangesLicenseKeyEvaluationLimit'==_0xb209fd||'trackChangesLicenseKeyUsageLimit'==_0xb209fd){delete _0x2303ab[_0x700bc9],_0x100498=_0xb209fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x100498&&_0x2303ab['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x100498&&_0x2303ab['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x100498&&_0x2303ab['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x100498&&_0x2303ab['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x100498&&_0x2303ab['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x100498&&_0x2303ab['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x2d5b66){const _0x5260ae=this['_suggestionToController']['get'](_0x2d5b66);return _0x5260ae&&this['editor']['plugins']['get'](_0x4c867f)['getByInnerView'](_0x5260ae['view'])||null;}getSuggestionForAnnotation(_0x1d8f1a){const _0x538105=this['_viewToController']['get'](_0x1d8f1a['innerView']);return _0x538105?_0x538105['model']:null;}_refreshActiveMarkers(){const _0x2bef76=this['editor']['plugins']['get'](_0x4c867f),_0x49e0b6=this['editor']['plugins']['get'](an),_0x4eb557=Array['from'](_0x2bef76['activeAnnotations'],_0x175b3b=>_0x175b3b['innerView'])['filter'](_0x750aa6=>this['_viewToController']['has'](_0x750aa6)),_0x4575d1=[];for(const _0xc19e70 of _0x4eb557){const _0x267321=this['_viewToController']['get'](_0xc19e70)['model']['getAllAdjacentSuggestions']();_0x4575d1['push'](..._0x267321['reduce']((_0x56c108,_0x41fe53)=>[..._0x56c108,..._0x41fe53['getMarkerNames']()],[]));}_0x49e0b6['activeMarkers']=_0x4575d1;}_addUIComponentsToFactory(){const _0x2cb060=this['editor'],_0x3ea62c=_0x2cb060['locale'],_0x40ac36=Mt(_0x3ea62c,'Track\x20changes'),_0x37d01e=new _0x290ed9([{'type':'switchbutton','model':new _0x44b220({'withText':!0x0,'isToggleable':!0x0,'label':_0x40ac36,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2cb060['plugins']['has']('TrackChangesPreview')&&_0x37d01e['addMany']([{'type':'separator'},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3b72ab of _0x37d01e)if(Sn(_0x3b72ab)){const _0x2ff4cb=_0x2cb060['commands']['get'](_0x3b72ab['model']['commandName']);_0x3b72ab['model']['bind']('isOn','isEnabled')['to'](_0x2ff4cb,'value','isEnabled');}_0x2cb060['ui']['componentFactory']['add']('trackChanges',_0x3b9fec=>this['_createToolbarButton'](_0x3b9fec,_0x37d01e,_0x40ac36)),_0x2cb060['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2adff6=>this['_createMenuBarMenu'](_0x2adff6,_0x37d01e,_0x40ac36));}_createToolbarButton(_0x267856,_0xc30def,_0x138741){const _0x17417f=_0x3916a0(_0x267856,_0x50191e),_0x407389=this['editor']['commands']['get']('trackChanges');_0x17417f['buttonView']['set']({'tooltip':_0x138741,'label':_0x138741,'icon':_0x41d7f3}),_0x17417f['buttonView']['bind']('isOn')['to'](_0x407389,'value'),_0x17417f['buttonView']['on']('execute',()=>{_0x407389['execute'](),this['editor']['editing']['view']['focus']();}),_0x4e0e44(_0x17417f,_0xc30def,{'role':'menu'});const _0x21096f=[];for(const _0x4cd7a9 of _0xc30def)Sn(_0x4cd7a9)&&_0x21096f['push'](this['editor']['commands']['get'](_0x4cd7a9['model']['commandName']));const _0x549d54=_0x17417f['buttonView'];return _0x549d54['actionView']['unbind']('isEnabled'),_0x549d54['arrowView']['unbind']('isEnabled'),_0x549d54['actionView']['bind']('isEnabled')['to'](_0x407389,'isEnabled'),_0x549d54['arrowView']['bind']('isEnabled')['toMany'](_0x21096f,'isEnabled',(..._0x586f0f)=>_0x586f0f['some'](_0x3b29c4=>_0x3b29c4)),_0x17417f['on']('execute',_0x2d0d28=>{this['editor']['execute'](_0x2d0d28['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x17417f;}_createMenuBarMenu(_0x52bda8,_0x3d2d24,_0x29d75b){const _0x48fb46=new _0x5afca8(_0x52bda8),_0x37538b=this['editor']['commands']['get']('trackChanges');_0x48fb46['buttonView']['set']({'label':_0x29d75b,'icon':_0x41d7f3});const _0x155eca=new _0x547eb3(_0x52bda8);for(const _0xc248be of _0x3d2d24){if('separator'==_0xc248be['type']){_0x155eca['items']['add'](new _0x348bf4(_0x52bda8));continue;}const _0x30712b=new _0x267cce(_0x52bda8,_0x48fb46),_0x51b52c=new _0x43757c(_0x52bda8),_0x5ad8a3=_0xc248be['model'];_0x51b52c['bind'](...Object['keys'](_0x5ad8a3))['to'](_0x5ad8a3),_0x51b52c['delegate']('execute')['to'](_0x48fb46),_0x51b52c['on']('execute',()=>{this['editor']['execute'](_0x5ad8a3['commandName']),this['editor']['editing']['view']['focus']();}),_0x30712b['children']['add'](_0x51b52c),_0x155eca['items']['add'](_0x30712b);}return _0x48fb46['bind']('isEnabled')['to'](_0x37538b,'isEnabled'),_0x48fb46['panelView']['children']['add'](_0x155eca),_0x48fb46;}_initializeController(_0x1e5764){const _0x18a46f=this['editor'],_0x5caca9=_0x18a46f['config'],_0x215d25=_0x18a46f['plugins']['get'](_0x4c867f),_0x50c250=_0x18a46f['plugins']['get'](_0x5efbfe),_0xbeb306=_0x18a46f['plugins']['get'](_0x1f718d),_0x507b17=_0x18a46f['plugins']['get'](_0x5d6c79)['me'],_0x3f2b8f=_0x5caca9['get']('trackChanges')['SuggestionThreadView'],_0x77d370=_0x5caca9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a5835,CommentThreadInputView:_0x3abb1b}=_0x18a46f['plugins']['get']('CommentsUI');let _0x529bea,_0x3c41db,_0x4ab82a;this['_annotationViews']['has'](_0x1e5764['id'])?(_0x3c41db=this['_annotationViews']['get'](_0x1e5764['id']),_0x529bea=_0x3c41db['mainView']):(_0x529bea=new _0x3f2b8f(_0x18a46f['locale'],_0x1e5764,_0x507b17,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5caca9['get']('comments.editorConfig'),'licenseKey':_0x5caca9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5caca9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5caca9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5caca9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x127f7b(_0x5caca9['get']('locale'),_0x18a46f['locale']),'CommentView':_0x5caca9['get']('comments')['CommentView'],'CommentsListView':_0x2a5835,'CommentThreadInputView':_0x3abb1b,'SuggestionView':_0x77d370,'showAISource':_0x5caca9['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5caca9['get']('trackChanges.aiAuthor'),'name':_0x5caca9['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x18a46f['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x529bea['suggestionView']['acceptButton']['on']('execute',()=>{_0x18a46f['editing']['view']['focus']();}),_0x529bea['suggestionView']['discardButton']['on']('execute',()=>{_0x18a46f['editing']['view']['focus']();}),_0x3c41db=_0x215d25['createAnnotationView'](this['editor']['locale'],_0x529bea),_0x3c41db['bind']('isDirty')['to'](_0x529bea,'isDirty'),_0x3c41db['bind']('length')['to'](_0x529bea),_0x3c41db['bind']('type')['to'](_0x529bea,'type',_0x308d6c=>'suggestion-'+_0x308d6c),_0x529bea['on']('escape',()=>{_0x4ab82a['fire']('escape');}),this['_annotationViews']['set'](_0x1e5764['id'],_0x3c41db));const _0xeb97fb=_0x50c250['createCommentThreadController'](_0x1e5764['commentThread'],_0x529bea),_0x514ba2=new kn(_0x18a46f,_0x1e5764,_0x529bea,_0xeb97fb),_0x2eb7e6=_0x1e5764['getAllAdjacentSuggestions']()['filter'](_0x43fe5f=>_0x43fe5f['isInContent']);_0x529bea['descriptionParts']=_0x18a46f['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x2eb7e6),this['_suggestionToController']['set'](_0x1e5764,_0x514ba2),this['_viewToController']['set'](_0x529bea,_0x514ba2);const _0x4496d2=()=>{const _0x344190=[],_0x7e4417=_0x1e5764['getAllAdjacentSuggestions']()['filter'](_0xadf5ce=>_0xadf5ce['isInContent']);for(const _0x306a01 of _0x7e4417)_0x344190['push'](..._0x306a01['getMarkers']());return _0x406bf9(_0x18a46f['editing'],_0x344190);};_0x4ab82a=_0x215d25['createAnnotation']({'view':_0x3c41db,'target':_0x4496d2,'type':()=>'suggestion-'+_0x514ba2['view']['type'],'isVisible':!!_0x4496d2()}),_0x50c250['_bindAnnotationToEditors'](_0x529bea,_0x4ab82a),_0x215d25['add'](_0x4ab82a),_0xbeb306['registerAnnotation'](_0x4ab82a);}_destroyController(_0x36db40){const _0x428cdb=this['editor']['plugins']['get'](_0x5efbfe),_0x3d3313=this['editor']['plugins']['get'](_0x4c867f),_0x1f63e4=this['_suggestionToController']['get'](_0x36db40),_0x372eb9=_0x1f63e4['view'],_0x1494bb=_0x3d3313['getByInnerView'](_0x372eb9);_0x428cdb['_unbindEditors'](_0x372eb9),_0x1494bb&&_0x3d3313['remove'](_0x1494bb),this['_suggestionToController']['delete'](_0x36db40),this['_viewToController']['delete'](_0x372eb9),_0x1f63e4['destroy']();}_updateController(_0x50c0c4){if(!_0x50c0c4['isInContent']||!this['_suggestionToController']['has'](_0x50c0c4))return;const _0x1777dc=this['editor']['plugins']['get'](an),_0x34b75a=this['_suggestionToController']['get'](_0x50c0c4),_0x144835=_0x50c0c4['getAllAdjacentSuggestions']();_0x34b75a['view']['descriptionParts']=_0x1777dc['descriptionFactory']['getDescriptions'](_0x144835);}destroy(){for(const _0x5e4ce6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5e4ce6);for(const _0xb2f9a5 of this['_annotationViews']['values']())_0xb2f9a5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x4c68c8){return'model'in _0x4c68c8;}var Mn=class extends _0x5ba5d4{static get requires(){return[an,Nn,_0x1c4719];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x1c93fd){this['editor']['plugins']['get'](an)['adapter']=_0x1c93fd;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x53b951){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x53b951);}getSuggestions({skipNotAttached:_0x356acc=!0x1,toJSON:_0x3a0087=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x356acc,'toJSON':_0x3a0087});}getSuggestion(_0x5e3fbf){return this['editor']['plugins']['get'](an)['getSuggestion'](_0x5e3fbf);}};const On=['Pagination'];var wn=class extends _0x5ba5d4{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x44e202=this['editor'];if(_0x44e202['config']['define']('trackChangesData.editorCreator',_0x571e3a=>{const _0x30c3b5=_0x44e202['model']['document']['getRootNames']()['reduce']((_0x44b9d4,_0x389f9d)=>(_0x44b9d4[_0x389f9d]='',_0x44b9d4),{});return _0x44e202['constructor']['create'](_0x30c3b5,_0x571e3a);}),'function'!=typeof _0x44e202['config']['get']('trackChangesData')['editorCreator'])throw new _0x478e8c('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x2d23b3){return vn(this['editor'],!0x0,_0x2d23b3);}getDataWithDiscardedSuggestions(_0x160e53){return vn(this['editor'],!0x1,_0x160e53);}},Fn=class extends _0x5ba5d4{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x350f20){super(_0x350f20),this['result']='end',_0x350f20['editing']['view']['_overlayModeHint']='auto',_0x350f20['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Bn(_0x4fd66c){return void 0x0!==_0x4fd66c['getRootsAttributes'];}async function vn(_0xcc6f56,_0x55dba6,_0x89bbbe){const _0x1c2675=_0x33e767(_0xcc6f56,On);if(_0x1c2675['plugins']['push'](an,Fn),Bn(_0xcc6f56)){_0x1c2675['roots']=Object['create'](null);for(const _0x2b5c83 of _0xcc6f56['model']['document']['getRootNames']())_0x1c2675['roots'][_0x2b5c83]={'modelAttributes':_0xcc6f56['getRootAttributes'](_0x2b5c83)};}const _0xcb453a=document['createDocumentFragment'](),_0x5db70e=_0xcc6f56['config']['get']('trackChangesData')['editorCreator'],_0x416a5e=await _0x5db70e(_0x1c2675,()=>function(_0x4aba9f){const _0x41b0c0=document['createElement']('div');return _0x4aba9f['appendChild'](_0x41b0c0),_0x41b0c0;}(_0xcb453a));!function(_0x43e32c,_0x3ca2a7){const _0x41e3a6=_0x43e32c['model']['document']['getRootNames']()['reduce']((_0x5e70da,_0x48fbd4)=>(_0x5e70da[_0x48fbd4]=_0x43e32c['data']['get']({'rootName':_0x48fbd4}),_0x5e70da),{}),_0x1e5c9f=_0x43e32c['plugins']['get']('Users')['users']['map'](_0x4a417c=>({'id':_0x4a417c['id'],'name':_0x4a417c['name']})),_0x54e8cb=_0x43e32c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45e10b=_0x43e32c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5ba299=_0x3ca2a7['plugins']['get']('Users'),_0x369aa8=_0x3ca2a7['plugins']['get']('TrackChangesEditing'),_0x164c74=_0x3ca2a7['plugins']['get']('CommentsRepository');for(const _0x3df451 of _0x164c74['getCommentThreads']())_0x3df451['remove']();for(const _0x24faee of _0x1e5c9f)_0x5ba299['getUser'](_0x24faee['id'])||_0x5ba299['addUser'](_0x24faee);_0x5ba299['me']||_0x5ba299['useAnonymousUser']();for(const _0x26b381 of _0x45e10b)_0x164c74['addCommentThread'](_0x26b381);for(const _0x49e8a3 of _0x54e8cb)_0x369aa8['addSuggestionData'](_0x49e8a3);_0x3ca2a7['data']['set'](_0x41e3a6);}(_0xcc6f56,_0x416a5e),_0x416a5e['execute'](_0x55dba6?'acceptAllSuggestions':'discardAllSuggestions');const _0x31a4b3=Bn(_0x416a5e)?_0x416a5e['getFullData'](_0x89bbbe):_0x416a5e['data']['get'](_0x89bbbe);return await _0x416a5e['destroy'](),_0x31a4b3;}var Dn=class extends _0x21bd75{options;constructor(_0x58210a,_0x312610){super(_0x58210a),this['options']=_0x312610,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x3e2426,_0x57c198){if(!this['element'])return;const _0x355ebc=[];for(const [_0x468302,_0x14007f]of _0x3e2426){const _0x33ea96=document['createElement']('div');_0x33ea96['setAttribute']('data-ck-root-name',_0x468302),_0x33ea96['className']=_0x14007f['classes']+'\x20ck-track-changes-preview__root-container',_0x33ea96['innerHTML']=_0x14007f['content'],_0x355ebc['push'](_0x33ea96);}_0x57c198(this['element'],_0x355ebc),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x10f950{constructor(_0x5982f5){super(_0x5982f5),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3e570e=this['editor'],_0x3db8c5=_0x3e570e['locale'],_0x56294b=_0x3e570e['plugins']['get']('Dialog');let _0x4f575d;const _0x2c5329=function(_0x47ce53){const _0x3b078b={};if('editables'in _0x47ce53['ui']['view']){for(const [_0x1b9b8b,_0x4b1583]of Object['entries'](_0x47ce53['ui']['view']['editables']))_0x3b078b[_0x1b9b8b]=_0x4b1583['element'];}else _0x3b078b[_0x47ce53['model']['document']['getRootNames']()[0x0]]=_0x47ce53['ui']['view']['editable']['element'];return _0x3b078b;}(_0x3e570e),_0x392906=function(_0x49fc4f){let _0x179ad5=0x0;for(const _0x5dd2e9 of Object['values'](_0x49fc4f))_0x179ad5=Math['max'](_0x179ad5,_0x5dd2e9['getBoundingClientRect']()['width']);let _0x19db4d=0x0;for(const _0x34d2d3 of Object['values'](_0x49fc4f))_0x19db4d+=_0x34d2d3['getBoundingClientRect']()['height'];const _0xdd0baf=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x179ad5,'height':Math['min'](_0x19db4d,_0xdd0baf)};}(_0x2c5329);_0x56294b['show']({'id':'finalContentPreview','title':Mt(_0x3db8c5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x3db8c5,{'dialogRects':_0x392906}),'onHide':()=>{_0x4f575d['detachFromDom']();},'onShow':()=>{_0x3e570e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x37e41e=>{const _0x58e212=this['_standarizeRootsData'](_0x37e41e,_0x3e570e,_0x2c5329);_0x56294b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x58e212,_0x3e570e['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f575d=new _0x3c33e8(_0x3db8c5,[_0x56294b['view']]),_0x4f575d['attachToDom'](),_0x4f575d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e570e['once']('destroy',()=>{_0x4f575d['detachFromDom']();});const _0x23f740=_0x56294b['view']['headerView']['class'];_0x56294b['view']['headerView']['class']=_0x23f740?_0x23f740+'\x20ck-reset_all':'ck-reset_all',_0x56294b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x56294b['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x56bfb6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f247d=_0x56bfb6['previewMode'],_0x25dcb6={};if('$labels'===_0x3f247d){for(const _0x40f365 of _0x56bfb6['getMergeFieldsIds']())_0x25dcb6[_0x40f365]=_0x56bfb6['getLabel'](_0x40f365)||_0x40f365;}else{const _0xd8b160='$defaultValues'===_0x3f247d?_0x56bfb6['getDefaultValues']():_0x56bfb6['getDataSetValues'](_0x3f247d,!0x0);for(const _0x2fc530 of Object['entries'](_0xd8b160)){const [_0x4239ec,_0x48c615]=_0x2fc530;_0x25dcb6[_0x4239ec]=null!==_0x48c615?_0x48c615:_0x56bfb6['getLabel'](_0x4239ec)||_0x4239ec;}}return{'mergeFieldsData':_0x25dcb6};}_standarizeRootsData(_0x3b94c7,_0x1ad1e3,_0x2491b8){let _0x4bcdac;_0x4bcdac='string'==typeof _0x3b94c7?{[_0x1ad1e3['model']['document']['getRootNames']()[0x0]]:_0x3b94c7}:_0x3b94c7;const _0xb9140c=this['_fixMediaEmbeds'](_0x4bcdac,_0x1ad1e3);return function(_0x2cfa4e,_0x326e91){for(const [_0x9c0bb5,_0x5f13d5]of _0x2cfa4e)_0x5f13d5['classes']=_0x326e91[_0x9c0bb5]['classList']['value']['replace']('ck-focused','');return _0x2cfa4e;}(this['_sortRoots'](_0x1ad1e3)['reduce']((_0x4e5924,_0x4de03a)=>(_0x4e5924['push']([_0x4de03a,{'content':_0xb9140c[_0x4de03a],'classes':''}]),_0x4e5924),[]),_0x2491b8);}['_fixMediaEmbeds'](_0x151648,_0x2be124){if(!_0x2be124['plugins']['has']('MediaEmbedEditing'))return _0x151648;const _0xfa5506=_0x2be124['plugins']['get']('MediaEmbedEditing');for(const [_0x39ed8f,_0x39d699]of Object['entries'](_0x151648)){const _0x178e58=document['createElement']('div');_0x178e58['innerHTML']=_0x39d699,_0x178e58['querySelectorAll']('figure.media')['forEach'](_0x35bf89=>{const _0x1ecfc8=_0x35bf89['querySelector']('oembed');if(_0x1ecfc8){const _0x37c3eb=_0x1ecfc8['getAttribute']('url');if(_0x37c3eb){const _0xdbb38b=_0xfa5506['registry']['getMediaViewElement'](new ot(_0x2be124['editing']['view']['document']),_0x37c3eb,{'elementName':'','renderForEditingView':!0x0}),_0x13b605=document['createElement']('div');_0x13b605['classList']['add']('ck-media__wrapper'),_0xdbb38b['render'](_0x13b605,_0x2be124['editing']['view']['domConverter']),_0x1ecfc8['replaceWith'](_0x13b605);}}}),_0x151648[_0x39ed8f]=_0x178e58['innerHTML'];}return _0x151648;}_sortRoots(_0x5cb09c){if(!function(_0x551cbf){return void 0x0!==_0x551cbf['getRootsAttributes'];}(_0x5cb09c))return _0x5cb09c['model']['document']['getRootNames']();const _0xb8437=[],_0x5ec422=new Map();for(const _0x1b6a36 of _0x5cb09c['model']['document']['getRootNames']()){const _0x424a8a=_0x5cb09c['editing']['view']['getDomRoot'](_0x1b6a36)['getClientRects']()['item'](0x0);_0xb8437['push'](_0x1b6a36),_0x5ec422['set'](_0x1b6a36,_0x424a8a);}return _0xb8437['sort']((_0x2500f6,_0x3b401d)=>{const _0x2b3abd=_0x5ec422['get'](_0x2500f6),_0x2d9ecf=_0x5ec422['get'](_0x3b401d);return _0x2b3abd['y']-_0x2d9ecf['y']||_0x2b3abd['x']-_0x2d9ecf['x'];}),_0xb8437;}},Pn=class extends _0x5ba5d4{static get requires(){return[wn,_0x4588aa];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f1520){super(_0x2f1520),_0x2f1520['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x2f1520['config']['define']('trackChanges.preview.renderFunction',(_0x5900ca,_0x14e906)=>{for(const _0x431614 of _0x14e906)_0x5900ca['appendChild'](_0x431614);});}};export{_t as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Un as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Rn as SuggestionThreadView,yn as SuggestionView,Mn as TrackChanges,Tt as TrackChangesCommand,wn as TrackChangesData,Fn as TrackChangesDataGetter,an as TrackChangesEditing,Pn as TrackChangesPreview,Nn as TrackChangesUI};
|