@ckeditor/ckeditor5-track-changes 49.0.0-alpha.6 → 49.0.0-alpha.7
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/dist/ui/view/suggestionview.d.ts +5 -0
- 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
|
-
_0x560bf4();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x525a95,_0xe746e2){super(),this['id']=_0xe746e2['id'],this['type']=_0xe746e2['type'],this['subType']=_0xe746e2['subType']||null,this['author']=_0xe746e2['author'],this['creator']=_0xe746e2['creator']||_0xe746e2['author'],this['data']=null,this['_originalSuggestionId']=_0xe746e2['originalSuggestionId']||null,this['_model']=_0x525a95,this['_onAccept']=_0xe746e2['onAccept'],this['_onDiscard']=_0xe746e2['onDiscard'],this['_onAttributesChange']=_0xe746e2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe746e2['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 _0x1eb652=this;for(;_0x1eb652['previous'];)_0x1eb652=_0x1eb652['previous'];return _0x1eb652;}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'](_0x5d7088){this['_markerNames']['add'](_0x5d7088);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x1abf22=>this['_model']['markers']['get'](_0x1abf22))['filter'](_0x17557d=>_0x17557d);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3bb62a=>{for(const _0x34c382 of this['getMarkers']())_0x3bb62a['removeMarker'](_0x34c382);}),this['_markerNames']['clear']();}['removeMarker'](_0x1e3223){this['_model']['change'](_0x11f7f6=>{_0x11f7f6['removeMarker'](_0x1e3223);}),this['_markerNames']['delete'](_0x1e3223);}['addRange'](_0x394922){const _0x39eba5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x39eba5),this['_model']['change'](_0x51cd6f=>{_0x51cd6f['addMarker'](_0x39eba5,{'range':_0x394922,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2116fb){for(const _0x1c6b3d of this['getRanges']())if(_0x1c6b3d['isIntersecting'](_0x2116fb))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x1b133b=>_0x1b133b['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x18b915,_0x532fc0)=>[..._0x18b915,..._0x532fc0['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x5aa7a9=this['getRanges']();if(0x1!=_0x5aa7a9['length'])return null;const _0x195832=_0x5aa7a9[0x0],_0x3e81ec=_0x195832['start']['nodeAfter'],_0xb0d3ef=_0x195832['end']['nodeBefore'];return _0x3e81ec instanceof rt?_0x3e81ec!=_0xb0d3ef?null:_0x3e81ec: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 _0x55a4bc=[];let _0x17a3d2=this['head'];for(;_0x17a3d2;)_0x55a4bc['push'](_0x17a3d2),_0x17a3d2=_0x17a3d2['next'];return _0x55a4bc;}setAttribute(_0x3f1dd9,_0x3e7fff){const _0x1eb80c=lt(this['attributes']);ht(_0x1eb80c,_0x3f1dd9,_0x3e7fff),ut(_0x1eb80c,this['attributes'])||(this['attributes']=_0x1eb80c,this['_onAttributesChange'](_0x1eb80c));}removeAttribute(_0x22f97f){const _0x5c48b2=lt(this['attributes']);gt(_0x5c48b2,_0x22f97f),ut(_0x5c48b2,this['attributes'])||(this['attributes']=_0x5c48b2,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 _0x32d994()['substr'](0x1,0x5);}};function wt(_0x2c6ae3,_0x4a3019,_0x5b1873){const _0x2b6064=_0x2c6ae3['t'],t=_0x2c6ae3['t'];switch(_0x4a3019){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',_0x5b1873);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b1873);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b1873);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b1873);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b1873);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',_0x5b1873);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b1873);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',_0x5b1873);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b1873);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b1873);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b1873);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b1873);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b1873);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5b1873);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b1873);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b1873);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b1873);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b1873);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b1873);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b1873);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b1873);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b1873);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b1873);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b1873);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5b1873);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'},_0x5b1873);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5b1873);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5b1873);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b1873);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b1873);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b1873);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b1873);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b1873);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'},_0x5b1873);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'},_0x5b1873);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b1873);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b1873);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b1873);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b1873);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'},_0x5b1873);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b1873);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'},_0x5b1873);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'},_0x5b1873);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b1873);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'},_0x5b1873);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b1873);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'},_0x5b1873);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b1873);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5b1873);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5b1873);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5b1873);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b1873);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'},_0x5b1873);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5b1873);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 _0x2b6064({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5b1873);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2b6064({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5b1873);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b1873);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'},_0x5b1873);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'},_0x5b1873);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'},_0x5b1873);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x4a3019;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0xe3703e,_0x14aadd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xe3703e,this['_locale']=_0x14aadd;}getDescriptions(_0x361e01){const _0x3c004b=[],_0x25962a=new Set(),_0x113659=new Set();for(let _0x14b93e=0x0;_0x14b93e<_0x361e01['length'];_0x14b93e++){const _0x31c201=_0x361e01[_0x14b93e];if(!_0x31c201['isInContent'])continue;const _0x13def8=this['_handleCustomCallbackDescription'](_0x31c201);if(_0x13def8){if(null!=_0x31c201['subType']){if(_0x25962a['has'](_0x31c201['subType']))continue;_0x25962a['add'](_0x31c201['subType']);}_0x3c004b['push'](_0x13def8);}else{if('attribute'==_0x31c201['type']){const _0x4a73b6=_0x31c201['data']['key'];if(_0x113659['has'](_0x4a73b6))continue;_0x113659['add'](_0x31c201['data']['key']),'$elementName'==_0x4a73b6?this['_handleRenameSuggestionDescription'](_0x3c004b,_0x31c201):this['_handleAttributeSuggestionDescription'](_0x3c004b,_0x31c201);continue;}'insertion'!=_0x31c201['type']&&'deletion'!=_0x31c201['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c004b,_0x31c201,_0x361e01[_0x14b93e+0x1]);}}return this['_resolveDescriptionItems'](_0x3c004b);}registerDescriptionCallback(_0x2cbe2e){this['_customCallbacks']['push'](_0x2cbe2e);}registerElementLabel(_0x5a895a,_0x3ee41c,_0x37e018=_0x376ede['normal']){'function'==typeof _0x5a895a?_0x3b5b74(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5a895a,'label':_0x3ee41c,'priority':_0x37e018}):this['_itemLabels']['set'](_0x5a895a,_0x3ee41c);}registerAttributeLabel(_0x14afd7,_0x16eb0c){this['_attributeLabels']['set'](_0x14afd7,_0x16eb0c);}getItemLabel(_0x53e821,_0x54853d=0x1){let _0x8bf25b;for(const _0x5f4e76 of this['_itemLabelsCallbacks'])if(_0x5f4e76['matchingCallback'](_0x53e821)){_0x8bf25b=_0x5f4e76['label'];break;}return _0x8bf25b||(_0x8bf25b=this['_itemLabels']['get'](_0x53e821['name'])),_0x8bf25b?_0x8bf25b(_0x54853d):0x1!==_0x54853d?_0x54853d+'\x20'+_0x53e821['name']+'s':''+_0x53e821['name'];}_addDescriptionItems(_0xc4dbe7,_0x2d9210){const _0x57addf=_0x2d9210['getFirstRange']()['getWalker'](),_0x58ed4a='insertion'==_0x2d9210['type']?'add':'remove';for(const _0x5738dd of _0x57addf){const _0x17ac4d=_0x5738dd['item'],_0x4c4a05=_0xc4dbe7[_0xc4dbe7['length']-0x1];if(_0x17ac4d['is']('$textProxy'))_0x4c4a05&&_0x4c4a05['type']['indexOf']('Container')>-0x1&&_0xc4dbe7['pop'](),_0x4c4a05&&'text'==_0x4c4a05['type']?_0x4c4a05[_0x58ed4a]+=_0x17ac4d['data']:_0xc4dbe7['push']({'type':'text','add':'add'==_0x58ed4a?_0x17ac4d['data']:'','remove':'remove'==_0x58ed4a?_0x17ac4d['data']:''});else{if(this['_schema']['isObject'](_0x17ac4d)){const _0x2d95b7=_0x17ac4d;if(_0x4c4a05&&_0x4c4a05['type']['indexOf']('Container')>-0x1&&_0xc4dbe7['pop'](),'elementEnd'==_0x5738dd['type'])continue;_0x4c4a05&&_0x4c4a05['type']==_0x58ed4a+'Object'&&_0x4c4a05['element']['name']==_0x2d95b7['name']?_0x4c4a05['quantity']++:_0xc4dbe7['push']({'type':_0x58ed4a+'Object','element':_0x2d95b7,'quantity':0x1}),_0x57addf['skip'](_0x3a9dad=>!('elementEnd'==_0x3a9dad['type']&&_0x3a9dad['item']==_0x17ac4d));}else{if(this['_schema']['checkChild'](_0x17ac4d,'$text')||_0x17ac4d['is']('element','softBreak')){const _0x492dd3=_0x17ac4d;if('add'==_0x58ed4a&&'elementStart'==_0x5738dd['type']||'remove'==_0x58ed4a&&'elementEnd'==_0x5738dd['type'])continue;if(_0x4c4a05&&-0x1==_0x4c4a05['type']['indexOf']('Container')){'text'==_0x4c4a05['type']&&(_0x4c4a05[_0x58ed4a]+='\x0a');continue;}let _0x4299e1;if(_0x4299e1='add'==_0x58ed4a?_0x492dd3['nextSibling']&&!this['_schema']['isObject'](_0x492dd3['nextSibling'])?_0x492dd3['nextSibling']:null:_0x492dd3['previousSibling']&&!this['_schema']['isObject'](_0x492dd3['previousSibling'])?_0x492dd3['previousSibling']:null,_0x492dd3['isEmpty']||_0x4299e1&&_0x4299e1['isEmpty']){const _0x69c6af=_0x4299e1&&_0x4299e1['isEmpty']?_0x4299e1:_0x492dd3;_0x4c4a05&&_0x4c4a05['type']==_0x58ed4a+'EmptyContainer'&&_0x4c4a05['element']['name']==_0x69c6af['name']?_0x4c4a05['quantity']++:_0xc4dbe7['push']({'type':_0x58ed4a+'EmptyContainer','element':_0x69c6af,'quantity':0x1});}else _0xc4dbe7['push']({'type':_0x58ed4a+'Container','element':_0x492dd3});}}}}}_resolveDescriptionItems(_0x40c881){const _0x1d171f=this['_locale'],_0x4ec96a=[],_0x493cd2=[],_0x49d8e1=[];for(const _0x539f93 of _0x40c881)switch(_0x539f93['type']){case'text':if(_0x539f93['add']=_0x539f93['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x539f93['remove']=_0x539f93['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x539f93['add']&&''!=_0x539f93['remove']){_0x4ec96a['push']({'type':'replace','content':wt(_0x1d171f,'REPLACE_TEXT',['\x22'+_0x539f93['remove']+'\x22','\x22'+_0x539f93['add']+'\x22'])});continue;}if(null!=_0x539f93['add']['match'](/^ +$/)){_0x4ec96a['push']({'type':'insertion','content':wt(_0x1d171f,'*Insert:*\x20%0',wt(_0x1d171f,'ELEMENT_SPACE',_0x539f93['add']['length']))});continue;}if(null!=_0x539f93['remove']['match'](/^ +$/)){_0x4ec96a['push']({'type':'deletion','content':wt(_0x1d171f,'*Remove:*\x20%0',wt(_0x1d171f,'ELEMENT_SPACE',_0x539f93['remove']['length']))});continue;}if(''!=_0x539f93['add']){_0x4ec96a['push']({'type':'insertion','content':wt(_0x1d171f,'*Insert:*\x20%0','\x22'+_0x539f93['add']+'\x22')});continue;}_0x4ec96a['push']({'type':'deletion','content':wt(_0x1d171f,'*Remove:*\x20%0','\x22'+_0x539f93['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ec96a['push']({'type':'insertion','content':wt(_0x1d171f,'*Insert:*\x20%0',this['getItemLabel'](_0x539f93['element'],_0x539f93['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ec96a['push']({'type':'deletion','content':wt(_0x1d171f,'*Remove:*\x20%0',this['getItemLabel'](_0x539f93['element'],_0x539f93['quantity']))});continue;case'addContainer':_0x4ec96a['push']({'type':'insertion','content':wt(_0x1d171f,'*Split:*\x20%0',this['getItemLabel'](_0x539f93['element'],_0x539f93['quantity']))});continue;case'removeContainer':_0x4ec96a['push']({'type':'deletion','content':wt(_0x1d171f,'*Merge:*\x20%0',this['getItemLabel'](_0x539f93['element'],_0x539f93['quantity']))});continue;case'addFormat':_0x493cd2['push'](_0x539f93['key']);continue;case'removeFormat':_0x49d8e1['push'](_0x539f93['key']);continue;default:_0x4ec96a['push'](_0x539f93);}if(_0x493cd2['length']){const _0x180dcc=_0x493cd2['map'](_0x431925=>this['_attributeLabels']['has'](_0x431925)?this['_attributeLabels']['get'](_0x431925):_0x431925)['join'](',\x20');_0x4ec96a['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x180dcc)});}if(_0x49d8e1['length']){const _0x23b314=_0x49d8e1['map'](_0x2ad747=>this['_attributeLabels']['has'](_0x2ad747)?this['_attributeLabels']['get'](_0x2ad747):_0x2ad747)['join'](',\x20');_0x4ec96a['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x23b314)});}return _0x4ec96a;}_handleCustomCallbackDescription(_0x3330ba){for(const _0x5c057c of this['_customCallbacks']){const _0x4301fa=_0x5c057c(_0x3330ba);if(_0x4301fa&&'type'in _0x4301fa)return _0x4301fa;}}_handleAttributeSuggestionDescription(_0x55bf3b,_0x59d1d1){const _0x4d573d=_0x59d1d1['data'],_0x1b27cf=void 0x0===_0x4d573d['newValue']?'removeFormat':'addFormat';_0x55bf3b['push']({'type':_0x1b27cf,'key':_0x4d573d['key']});}_handleRenameSuggestionDescription(_0x31e84d,_0x2c299d){_0x31e84d['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2c299d['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x261cf7,_0x1ead08,_0x3eb9f5){if(this['_addDescriptionItems'](_0x261cf7,_0x1ead08),_0x3eb9f5&&_0x3eb9f5['getFirstRange']()&&!_0x1ead08['getFirstRange']()['end']['isEqual'](_0x3eb9f5['getFirstRange']()['start'])){const _0x2a7369=_0x261cf7[_0x261cf7['length']-0x1],_0x1ef7e8='insertion'==_0x1ead08['type']?'add':'remove';_0x2a7369&&'text'==_0x2a7369['type']&&(_0x2a7369[_0x1ef7e8]+='\x0a');}}},Ft=class extends _0x4ca415{afterInit(){const _0x3b918c=this['editor'],_0xc9c397=_0x3b918c['plugins']['get']('TrackChangesEditing');_0x3b918c['commands']['get']('showAIAssistant')&&_0xc9c397['enableCommand']('showAIAssistant');}},vt=class extends _0x4ca415{afterInit(){const _0x569836=this['editor'],_0x456bc4=_0x569836['plugins']['get']('TrackChangesEditing');_0x569836['commands']['get']('toggleAi')&&_0x456bc4['enableCommand']('toggleAi');}},Dt=class extends _0x4ca415{afterInit(){const _0x1c0762=this['editor'],_0x6c5cb=_0x1c0762['plugins']['get']('TrackChangesEditing');_0x1c0762['commands']['get']('aiQuickAction')&&_0x6c5cb['enableCommand']('aiQuickAction');}},Ut=class extends _0x4ca415{afterInit(){const _0x28dd5a=this['editor'],_0x537168=_0x28dd5a['locale'];if(!_0x28dd5a['plugins']['has']('AlignmentEditing'))return;const _0x288bd0=_0x28dd5a['plugins']['get']('TrackChangesEditing');_0x288bd0['enableDefaultAttributesIntegration']('alignment'),_0x288bd0['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x537168,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2ae50f=this['editor'],_0x427e8b=_0x2ae50f['locale'];_0x2ae50f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x249d66=>{if('formatBlock'!=_0x249d66['type'])return;const {data:_0x31a0f7}=_0x249d66;if(_0x31a0f7&&'alignment'==_0x31a0f7['commandName']){const _0x3d8bba=_0x31a0f7['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x427e8b,'*Format:*\x20%0',function(_0x4bdef4){switch(_0x4bdef4){case'left':return wt(_0x427e8b,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x427e8b,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x427e8b,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x427e8b,'FORMAT_JUSTIFY_TEXT');}}(_0x3d8bba))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x4ca415{afterInit(){const _0x508345=this['editor'],_0x23c175=_0x508345['plugins']['get']('TrackChangesEditing'),_0x1dbce5=_0x508345['locale'];for(const _0x2b7581 of Pt){if(!_0x508345['plugins']['has'](_0x2b7581))continue;const _0x242635=_0x2b7581['slice'](0x0,-0x7)['toLowerCase'](),_0xe63243='FORMAT_'+_0x242635['toUpperCase']();_0x23c175['enableDefaultAttributesIntegration'](_0x242635),_0x23c175['descriptionFactory']['registerAttributeLabel'](_0x242635,wt(_0x1dbce5,_0xe63243));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x8339d3=this['editor'],_0x128936=_0x8339d3['locale'],_0x1250a4=_0x8339d3['plugins']['get']('TrackChangesEditing');function _0x136099(_0x1ef23c,_0x4832ab){_0x1250a4['descriptionFactory']['registerDescriptionCallback'](_0x53aad5=>{if('formatInline'!=_0x53aad5['type'])return;const {data:_0x4338c0}=_0x53aad5;return _0x4338c0&&_0x4338c0['commandName']===_0x1ef23c?_0x4338c0['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x128936,'*Format:*\x20%0',_0x4832ab)}:{'type':'format','content':wt(_0x128936,'*Remove\x20format:*\x20%0',_0x4832ab)}:void 0x0;});}_0x136099('bold',wt(_0x128936,'FORMAT_BOLD')),_0x136099('italic',wt(_0x128936,'FORMAT_ITALIC')),_0x136099('underline',wt(_0x128936,'FORMAT_UNDERLINE')),_0x136099('code',wt(_0x128936,'FORMAT_CODE')),_0x136099('strikethrough',wt(_0x128936,'FORMAT_STRIKETHROUGH')),_0x136099('subscript',wt(_0x128936,'FORMAT_SUBSCRIPT')),_0x136099('superscript',wt(_0x128936,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x4ca415{afterInit(){const _0x564050=this['editor'],_0x4d8640=_0x564050['locale'];if(!_0x564050['plugins']['has']('BlockQuoteEditing'))return;const _0x4e71cd=_0x564050['plugins']['get']('TrackChangesEditing'),_0x2f72dc=this['editor']['commands']['get']('blockQuote');_0x4e71cd['enableCommand']('blockQuote',(_0x436f31,_0x1feb66={})=>{const _0x202dcf=this['editor']['model']['document']['selection'],_0x14ef33=_0x1feb66&&void 0x0!==_0x1feb66['forceValue']?_0x1feb66['forceValue']:!_0x2f72dc['value'];let _0x385f03=[];if(_0x14ef33){const _0x3b23bf=Array['from'](_0x202dcf['getSelectedBlocks']())['filter'](_0x4a495d=>Ht(_0x4a495d)||function(_0x5650e1,_0xa94f68){const _0x329646=_0xa94f68['createContext'](_0x5650e1['parent']);return!!_0xa94f68['checkChild'](_0x329646,'blockQuote')&&!!_0xa94f68['checkChild'](_0x329646['push']('blockQuote'),_0x5650e1);}(_0x4a495d,this['editor']['model']['schema']));_0x385f03=kt(_0x3b23bf,_0x564050['model']);}else{const _0x85b718=Array['from'](_0x202dcf['getSelectedBlocks']())['filter'](_0x37713f=>Ht(_0x37713f));_0x385f03=kt(_0x85b718,_0x564050['model']);}_0x564050['model']['change'](()=>{for(const _0x472899 of _0x385f03)_0x4e71cd['markBlockFormat'](_0x472899,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14ef33}]});});}),_0x4e71cd['descriptionFactory']['registerDescriptionCallback'](_0x3b91ce=>{const {data:_0x272875}=_0x3b91ce;if(_0x272875&&'blockQuote'==_0x272875['commandName']){const _0x3477c3=wt(_0x4d8640,'ELEMENT_BLOCK_QUOTE');return _0x272875['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x4d8640,'*Set\x20format:*\x20%0',_0x3477c3)}:{'type':'format','content':wt(_0x4d8640,'*Remove\x20format:*\x20%0',_0x3477c3)};}});}};function Ht(_0x45ef92){return'blockQuote'==_0x45ef92['parent']['name'];}var $t=class extends _0x4ca415{afterInit(){const _0x15fd71=this['editor'],_0x59921f=_0x15fd71['locale'],_0x46f7e1=_0x15fd71['plugins']['get']('TrackChangesEditing');_0x15fd71['plugins']['has']('BookmarkEditing')&&(_0x46f7e1['enableCommand']('insertBookmark'),_0x46f7e1['enableDefaultAttributesIntegration']('updateBookmark'),_0x46f7e1['descriptionFactory']['registerDescriptionCallback'](_0x509f24=>{if('insertion'!=_0x509f24['type']&&'deletion'!=_0x509f24['type']&&'attribute'!=_0x509f24['type'])return;const _0x976094=_0x509f24['getContainedElement']();if(null==_0x976094)return;if(!_0x976094['is']('element','bookmark'))return;const _0x23c0f9=_0x976094['getAttribute']('bookmarkId');if('insertion'==_0x509f24['type'])return{'type':'insertion','content':wt(_0x59921f,'*Insert:*\x20%0','\x22'+_0x23c0f9+'\x22\x20'+wt(_0x59921f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x509f24['type'])return{'type':'deletion','content':wt(_0x59921f,'*Remove:*\x20%0','\x22'+_0x23c0f9+'\x22\x20'+wt(_0x59921f,'ELEMENT_BOOKMARK'))};const {data:_0x348b78}=_0x509f24;return _0x348b78&&'bookmarkId'==_0x348b78['key']?{'type':'format','content':wt(_0x59921f,'*Set\x20bookmark:*\x20%0','\x22'+_0x348b78['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x4ca415{afterInit(){const _0x3e804d=this['editor'];_0x3e804d['plugins']['has']('CaseChange')&&(_0x3e804d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3e804d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3e804d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x4ca415{afterInit(){const _0x348295=this['editor'];_0x348295['commands']['get']('ckbox')&&_0x348295['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x4ca415{static get requires(){return[ft,mt];}constructor(_0x30ef40){super(_0x30ef40),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0xb22c9a=this['editor'],_0x2fb76b=_0xb22c9a['plugins']['get']('ClipboardMarkersUtils'),_0x3909ec=_0xb22c9a['plugins']['get'](mt);_0x2fb76b['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x3909ec['on']('outputTransformation',(_0x37b2df,_0x54315d)=>{const _0x217340=this['_getSuggestionEntries'](_0x54315d);for(const [_0x5dfb51,_0x516e89]of _0x54315d['content']['markers']){const _0x2cee54=at['_fromRangeInDocumentFragment'](_0x516e89,_0xb22c9a['model']);function _0x322f0b(){_0x2cee54['detach'](),_0x54315d['content']['markers']['delete'](_0x5dfb51);}_0x2cee54['on']('change:drop',_0x322f0b),(_0x5dfb51['startsWith']('suggestion:')||_0x5dfb51['startsWith']('comment:'))&&_0x2cee54['on']('change:range',()=>{_0x2cee54['isCollapsed']&&_0x322f0b();}),_0x54315d['content']['markers']['set'](_0x5dfb51,_0x2cee54);}const _0x444003=_0x217340['filter'](_0x34af7f=>'deletion'===_0x34af7f['meta']['type'])['map'](_0x15eacb=>_0x15eacb['modelRange']);if(this['_shouldSkipDeletions'](_0x444003,_0x54315d['content']))return[..._0x217340]['forEach'](_0x34b537=>{_0x54315d['content']['markers']['get'](_0x34b537['markerName'])['detach'](),_0x54315d['content']['markers']['delete'](_0x34b537['markerName']);}),void this['_restoreRegularRanges'](_0x54315d['content']['markers']);[..._0x217340]['forEach'](_0x50a645=>{const _0xbe4d3c=_0xb22c9a['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x50a645['meta']['type'],_0x50a645['meta']['subType'],'accept'),{markerName:_0x16a97b,meta:_0x3b0036}=_0x50a645;if(_0x54315d['content']['markers']['has'](_0x16a97b)){switch(_0x3b0036['type']){case'deletion':if('tableRow'===_0x3b0036['subType']||'tableColumn'===_0x3b0036['subType']){if(!_0xb22c9a['plugins']['has']('TableUtils'))break;const _0x5d63e7=_0xb22c9a['plugins']['get']('TableUtils'),_0x822318=_0x5d63e7['getSelectionAffectedTableCells'](_0xb22c9a['model']['createSelection'](_0x54315d['content']['markers']['get'](_0x16a97b))),_0x3984c6=_0x822318[0x0]['findAncestor']('table');if('tableRow'===_0x3b0036['subType']){const {first:_0x1f0988,last:_0x4156fa}=_0x5d63e7['getRowIndexes'](_0x822318);_0x5d63e7['removeRows'](_0x3984c6,{'at':_0x1f0988,'rows':_0x4156fa-_0x1f0988+0x1});}else{const {first:_0x5334a6,last:_0x33fdf9}=_0x5d63e7['getColumnIndexes'](_0x822318);_0x5d63e7['removeColumns'](_0x3984c6,{'at':_0x5334a6,'columns':_0x33fdf9-_0x5334a6+0x1});}break;}_0xbe4d3c([_0x54315d['content']['markers']['get'](_0x16a97b)]);}_0x54315d['content']['markers']['has'](_0x16a97b)&&(_0x54315d['content']['markers']['get'](_0x16a97b)['detach'](),_0x54315d['content']['markers']['delete'](_0x16a97b));}}),this['_restoreRegularRanges'](_0x54315d['content']['markers']);});}_getSuggestionEntries(_0x5cdbfd){const _0x4e9ea8=_0x51e1cf=>'dragstart'===_0x5cdbfd['method']?_0x51e1cf['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x51e1cf;return Array['from'](_0x5cdbfd['content']['markers'])['map'](([_0x50a7d1,_0x5ebc4c])=>({'markerName':_0x50a7d1,'modelRange':_0x5ebc4c,'meta':nt(_0x4e9ea8(_0x50a7d1))}))['filter'](({meta:_0x39e771})=>'suggestion'===_0x39e771['group']);}_shouldSkipDeletions(_0x1930ff,_0x1321dc){if(!_0x1930ff['length'])return!0x1;let _0x3b2d0b=[this['editor']['model']['createRangeIn'](_0x1321dc)];for(const _0x438921 of _0x1930ff)_0x3b2d0b=_0x3b2d0b['flatMap'](_0xf92d47=>_0xf92d47['getDifference'](_0x438921));return!_0x3b2d0b['some'](_0x195eac=>this['editor']['model']['hasContent'](_0x195eac,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x223bcf){[..._0x223bcf['keys']()]['forEach'](_0xaad474=>{const _0x51681d=_0x223bcf['get'](_0xaad474);_0x51681d['detach'](),_0x223bcf['set'](_0xaad474,_0x51681d['toRange']());});}},jt=class extends _0x4ca415{afterInit(){const _0x5c8a5c=this['editor'];if(!_0x5c8a5c['plugins']['has']('CodeBlock'))return;const _0x38518a=_0x5c8a5c['plugins']['get']('TrackChangesEditing'),_0x3ff253=_0x5c8a5c['locale'],_0x2d27b7=_0x5c8a5c['config']['get']('codeBlock')['languages'],_0x46742f=_0x5c8a5c['commands']['get']('codeBlock');_0x38518a['enableCommand']('indentCodeBlock'),_0x38518a['enableCommand']('outdentCodeBlock'),_0x38518a['enableCommand']('codeBlock',(_0x537ddb,_0x2ecfb9={})=>{const _0x37ed8b=_0x5c8a5c['model'],_0x115d0e=_0x5c8a5c['model']['document']['selection'],_0x81a0f=_0x2ecfb9&&void 0x0!==_0x2ecfb9['forceValue']?_0x2ecfb9['forceValue']:!_0x46742f['value'];let _0x621dd5;_0x2ecfb9['language']||(_0x2ecfb9['language']=_0x2d27b7[0x0]['language']),_0x621dd5=_0x81a0f?Array['from'](_0x115d0e['getSelectedBlocks']())['filter'](_0x13403b=>{return Kt(_0x13403b)||(_0x50cfe7=_0x13403b,_0x2e26db=_0x37ed8b['schema'],!_0x50cfe7['is']('rootElement')&&!_0x2e26db['isLimit'](_0x50cfe7)&&_0x2e26db['checkChild'](_0x50cfe7['parent'],'codeBlock'));var _0x50cfe7,_0x2e26db;}):Array['from'](_0x115d0e['getSelectedBlocks']())['filter'](_0x4d5149=>Kt(_0x4d5149));const _0x1b495d=kt(_0x621dd5,_0x37ed8b);_0x37ed8b['change'](()=>{for(const _0x905965 of _0x1b495d)_0x38518a['markBlockFormat'](_0x905965,{'commandName':'codeBlock','commandParams':[{..._0x2ecfb9,'forceValue':_0x81a0f}],'formatGroupId':'blockName'});});}),(_0x38518a['descriptionFactory']['registerElementLabel']('codeBlock',_0x1edab9=>wt(_0x3ff253,'ELEMENT_CODE_BLOCK',_0x1edab9)),_0x38518a['descriptionFactory']['registerDescriptionCallback'](_0x8a7a5a=>{if('formatBlock'!=_0x8a7a5a['type'])return;const _0x365294=_0x3ff253['t'],{data:_0x1539f6}=_0x8a7a5a;if(!_0x1539f6||'codeBlock'!=_0x1539f6['commandName'])return;const _0x13ce7f=_0x1539f6['commandParams'][0x0]['language'],_0x4a65ef=_0x365294(_0x2d27b7['find'](_0x3c2502=>_0x3c2502['language']===_0x13ce7f)['label'])['toLowerCase']();return _0x1539f6['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x3ff253,'*Set\x20format:*\x20%0',wt(_0x3ff253,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4a65ef+')')}:{'type':'format','content':wt(_0x3ff253,'*Remove\x20format:*\x20%0',wt(_0x3ff253,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x4663c9){return'codeBlock'==_0x4663c9['name'];}var Xt=class extends _0x4ca415{afterInit(){const _0x4e771b=this['editor'];_0x4e771b['plugins']['has']('CommentsEditing')&&_0x4e771b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x4ca415{static get requires(){return[Et];}init(){const _0xecd283=this['editor'],_0x61453d=_0xecd283['plugins']['get']('TrackChangesEditing');_0x61453d['enableCommand']('delete');const _0x40aeac=_0xecd283['commands']['get']('deleteForward');_0x61453d['enableCommand']('deleteForward',(_0x354294,_0x492f16={})=>{const _0x3245de=_0xecd283['model']['createSelection'](_0xecd283['model']['document']['selection']);_0x3245de['isCollapsed']&&_0xecd283['model']['modifySelection'](_0x3245de,{'direction':'forward','unit':_0x492f16['unit']});const _0x895844=_0x3245de['getFirstRange'](),_0x2dec7f=at['fromRange'](_0x895844);let _0x5c7109;_0x354294(_0x492f16),_0x5c7109='$graveyard'==_0x2dec7f['root']['rootName']?_0xecd283['model']['createRange'](_0x895844['start']):_0xecd283['model']['createRange'](_0x2dec7f['start'],_0x2dec7f['end']),_0x2dec7f['detach'](),_0xecd283['model']['enqueueChange'](_0x40aeac['buffer']['batch'],_0x2a1760=>{_0x40aeac['buffer']['lock'](),_0x2a1760['setSelection'](_0x2a1760['createRange'](_0x5c7109['end'])),_0x40aeac['buffer']['unlock']();});});}},Yt=class extends _0x4ca415{afterInit(){const _0x4b446c=this['editor'];if(!_0x4b446c['plugins']['has']('ListEditing'))return;const _0x4abb60=_0x4b446c['locale'],_0x2ad3ce=_0x4b446c['plugins']['get']('TrackChangesEditing'),_0x5b3ca1=_0x4b446c['plugins']['has']('TodoListEditing'),_0xc050a1=!!_0x4b446c['config']['get']('list.multiBlock');function _0x2203b3(_0x40574a){return{'type':'format','content':''+wt(_0x4abb60,'*Set\x20format:*\x20%0',_0x40574a)};}function _0x35062f(_0x1f833d){return{'type':'format','content':''+wt(_0x4abb60,'*Remove\x20format:*\x20%0',_0x1f833d)};}_0x2ad3ce['enableDefaultAttributesIntegration']('numberedList'),_0x2ad3ce['enableDefaultAttributesIntegration']('bulletedList'),_0x2ad3ce['enableDefaultAttributesIntegration']('customNumberedList'),_0x2ad3ce['enableDefaultAttributesIntegration']('customBulletedList'),_0x2ad3ce['enableDefaultAttributesIntegration']('indentList'),_0x2ad3ce['enableDefaultAttributesIntegration']('outdentList'),_0x2ad3ce['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2ad3ce['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xc050a1&&(_0x2ad3ce['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2ad3ce['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5b3ca1&&(_0x2ad3ce['enableDefaultAttributesIntegration']('todoList'),_0x2ad3ce['enableDefaultAttributesIntegration']('checkTodoList'),_0x2ad3ce['descriptionFactory']['registerDescriptionCallback'](_0x41967a=>{const {data:_0x27b2a9}=_0x41967a;if(_0x27b2a9&&'todoListChecked'==_0x27b2a9['key'])return{'type':'format','content':_0x27b2a9['newValue']?wt(_0x4abb60,'*Check\x20item*'):wt(_0x4abb60,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x482f06=>{if(_0x482f06['batch']['isUndo'])return!0x1;let _0x276b0f=!0x1;const _0x299303=_0x2ad3ce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5de714=>'todoListChecked'===_0x2ad3ce['_getAttributeKey'](_0x5de714));for(const _0x4c98d4 of _0x299303)'todo'!=_0x4c98d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2ad3ce['_findSuggestions'](_0x4c98d4['getFirstRange'](),'attribute')['find'](_0x1aad58=>'listType'===_0x2ad3ce['_getAttributeKey'](_0x1aad58['suggestion']))||(_0x482f06['removeMarker'](_0x4c98d4['getFirstMarker']()),_0x276b0f=!0x0));return _0x276b0f;})),_0x2ad3ce['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x4abb60,'FORMAT_INDENT'));const _0x344693={'type':'format','content':''};_0x2ad3ce['descriptionFactory']['registerDescriptionCallback'](_0x1c710e=>{const {data:_0x113b77}=_0x1c710e;if(!_0x113b77||'listType'!=_0x113b77['key'])return;let _0x38ab9b=_0x1c710e['head'];for(;_0x38ab9b;){if(_0x38ab9b['data']&&(('listStyle'==_0x38ab9b['data']['key']||'listMarkerStyle'==_0x38ab9b['data']['key'])&&(_0x38ab9b['data']['newValue']&&'default'!=_0x38ab9b['data']['newValue']||'default'!=_0x38ab9b['data']['oldValue']&&!_0x113b77['newValue'])||!_0xc050a1&&'$elementName'==_0x38ab9b['data']['key']))return _0x344693;_0x38ab9b=_0x38ab9b['next'];}if(null==_0x113b77['newValue'])switch(_0x113b77['oldValue']){case'bulleted':return _0x35062f(wt(_0x4abb60,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35062f(wt(_0x4abb60,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35062f(wt(_0x4abb60,'ELEMENT_TODO_LIST'));}switch(_0x113b77['newValue']){case'bulleted':return _0x2203b3(wt(_0x4abb60,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2203b3(wt(_0x4abb60,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2203b3(wt(_0x4abb60,'ELEMENT_TODO_LIST'));}}),_0x2ad3ce['descriptionFactory']['registerDescriptionCallback'](_0x4803f5=>{const {data:_0x5143cf}=_0x4803f5;if(_0x5143cf&&'listIndent'==_0x5143cf['key'])return null==_0x5143cf['newValue']||null==_0x5143cf['oldValue']&&0x0==_0x5143cf['newValue']?_0x344693:void 0x0;}),_0x2ad3ce['descriptionFactory']['registerDescriptionCallback'](_0x222ead=>{if('attribute'!=_0x222ead['type'])return;const {data:_0x54a31f}=_0x222ead;if(!_0x54a31f||'listItemId'!=_0x54a31f['key'])return;const _0x1fd441=Qt(_0x222ead);return'newValue'==_0x1fd441?{'type':'format','content':wt(_0x4abb60,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1fd441?{'type':'format','content':wt(_0x4abb60,'*Split:*\x20list\x20item')}:_0x344693;}),_0x4b446c['model']['document']['registerPostFixer'](_0x4c6932=>this['listItemIdFixer'](_0x4c6932)),_0x4b446c['model']['document']['registerPostFixer'](_0x3b60ae=>this['noTrackChangesFixer'](_0x3b60ae)),_0x4b446c['model']['document']['on']('change:data',(_0x44497b,_0x41cc43)=>{if(_0x41cc43['isUndo']||!_0x41cc43['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x59d6c6){if(_0x59d6c6['batch']['isUndo']||!_0x59d6c6['batch']['isLocal'])return!0x1;let _0x5ed1e2=!0x1;const _0x3d04cc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45100c=>_0x45100c['data']&&'listItemId'==_0x45100c['data']['key'])['filter'](_0xfe4639=>_0xfe4639['data']['newValue']&&_0xfe4639['data']['oldValue']);for(const _0x213300 of _0x3d04cc)Qt(_0x213300)||(_0x59d6c6['removeMarker'](_0x213300['getFirstMarker']()),_0x5ed1e2=!0x0);return _0x5ed1e2;}['noTrackChangesFixer'](_0xed33d){if(_0xed33d['batch']['isUndo']||!_0xed33d['batch']['isLocal'])return!0x1;const _0x1869a7=this['editor']['model']['document']['differ'],_0xad2a82=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xad2a82['trackChangesCommand']['value'])return!0x1;let _0x5d300f=!0x1;const _0x40bb0f=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x378b4e=_0x1869a7['getChanges']()['filter'](_0x226ccc=>'attribute'==_0x226ccc['type'])['filter'](_0x4c9784=>_0x40bb0f['has'](_0x4c9784['attributeKey']));if(0x0==_0x378b4e['length'])return _0x5d300f;const _0x16b072=new Set(_0x1869a7['getMarkersToAdd']()['filter'](_0x3a0c42=>{if(!_0x3a0c42['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0xf5c3f6=nt(_0x3a0c42['name'])['subType']['split']('|')[0x0];return _0x40bb0f['has'](_0xf5c3f6);})['map'](_0x1d4b04=>nt(_0x1d4b04['name'])['id']));for(const _0x2448bd of _0x378b4e){const _0x48bbf7=_0xad2a82['_findSuggestions'](_0x2448bd['range'],'attribute')['filter'](_0xa108f6=>{if(_0xa108f6['meta']['isNextTo'])return!0x1;if(_0x16b072['has'](_0xa108f6['suggestion']['id']))return!0x1;const _0x2b468c=_0xad2a82['_getAttributeKey'](_0xa108f6['suggestion']);return _0x40bb0f['has'](_0x2b468c);})['map'](_0x73eca2=>_0x73eca2['suggestion']);if(_0x48bbf7['length']){for(const _0x14344c of _0x48bbf7)_0xed33d['removeMarker'](_0x14344c['getFirstMarker']());_0x5d300f=!0x0;}}return _0x5d300f;}['assureChains'](){const _0x50c0e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa296da=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x32e01b;const _0x4562aa=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2246ae=>{if(_0x2246ae['data']['oldRange']||!_0x2246ae['data']['newRange'])return null;if(!_0x2246ae['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2036f9}=nt(_0x2246ae['name']);if(!_0x50c0e5['hasSuggestion'](_0x2036f9))return null;const _0x7df385=_0x50c0e5['getSuggestion'](_0x2036f9);return _0xa296da['includes'](_0x7df385['data']['key']);})['map'](_0x4667c1=>{const {id:_0x48d7ff}=nt(_0x4667c1['name']),_0x1de4b7=_0x50c0e5['getSuggestion'](_0x48d7ff);return _0x32e01b=_0x1de4b7['attributes']['groupId'],_0x1de4b7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4562aa['size'])return;const _0x2eea8b=_0x50c0e5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41665e=>'attribute'==_0x41665e['type']&&_0x41665e['data']&&_0xa296da['includes'](_0x41665e['data']['key'])&&_0x41665e['attributes']['groupId']!=_0x32e01b)['map'](_0x4d55a2=>({'listItem':_0x4d55a2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d55a2['attributes']['groupId']})),_0x51acbe=new Set();for(const {groupId:_0xd95aad,listItem:_0x58a4fe}of _0x2eea8b)_0x4562aa['has'](_0x58a4fe)&&_0x51acbe['add'](_0xd95aad);for(const _0x38cb76 of _0x50c0e5['getSuggestions']())_0x51acbe['has'](_0x38cb76['attributes']['groupId'])&&_0x38cb76['setAttribute']('groupId',_0x32e01b);}_supportLegacySuggestions(){const _0x4ad25c=this['editor'],_0x547de2=_0x4ad25c['locale'],_0x519754=_0x4ad25c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x519754['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3ee210,_0x23d4da){const _0x285406=[];for(let _0x545fb7 of _0x3ee210)_0x545fb7['start']['nodeAfter']===_0x545fb7['end']['parent']&&(_0x545fb7=_0x4ad25c['model']['createRange'](_0x4ad25c['model']['createPositionAt'](_0x545fb7['start']['nodeAfter'],0x0))),_0x285406['push'](_0x545fb7);_0x4ad25c['model']['change'](_0x165aaf=>{const _0x529d54=_0x4ad25c['model']['document']['selection'],_0x5c8940=Array['from'](_0x529d54['getRanges']())['map'](_0x768c17=>at['fromRange'](_0x768c17));_0x165aaf['setSelection'](_0x285406),_0x4ad25c['commands']['get'](_0x23d4da['commandName'])['refresh'](),_0x23d4da['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ad25c['execute'](_0x23d4da['commandName'],..._0x23d4da['commandParams']),_0x165aaf['setSelection'](_0x5c8940);for(const _0x5cd102 of _0x5c8940)_0x5cd102['detach']();});}),_0x519754['descriptionFactory']['registerElementLabel'](function(_0x42299a){const _0xd382d0=!_0x4ad25c['model']['schema']['isObject'](_0x42299a),_0x3f6e23=_0x42299a['previousSibling'],_0x3ae903=_0x42299a['nextSibling'],_0x28c330=_0x42299a['getAttribute']('listItemId'),_0x6a2fab=!_0x3f6e23||_0x3f6e23['getAttribute']('listItemId')!==_0x28c330,_0x20b9e0=!_0x3ae903||_0x3ae903['getAttribute']('listItemId')!==_0x28c330;return _0xd382d0&&Boolean(_0x28c330)&&_0x6a2fab&&_0x20b9e0;},_0x31adc7=>wt(_0x547de2,'ELEMENT_LIST_ITEM',_0x31adc7));}_registerLegacyDescription(){const _0x9e53b2=this['editor'],_0x1a93f1=_0x9e53b2['locale'];function _0x267443(_0x3f7bf1){const _0x26ee42=_0x9e53b2['commands']['get']('bulletedList')['value'],_0x59dd28=_0x9e53b2['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f7bf1?_0x26ee42:_0x59dd28;}_0x9e53b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40bacf){if('formatBlock'!=_0x40bacf['type'])return;const {data:_0x2a02c4}=_0x40bacf;if(!_0x2a02c4)return;let _0x5b51b4,_0x11d972,_0x30b467,_0x3c43c1;switch(_0x2a02c4['commandName']){case'bulletedList':_0x30b467=_0x2a02c4['commandParams'][0x0]['forceValue'],_0x3c43c1=_0x267443(_0x2a02c4['commandName']),_0x5b51b4=_0x30b467?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c43c1&&_0x9e53b2['config']['get']('list.multiBlock')||(_0x5b51b4='*Change\x20to:*\x20%0'),_0x11d972={'type':'format','content':wt(_0x1a93f1,_0x5b51b4,wt(_0x1a93f1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x30b467=_0x2a02c4['commandParams'][0x0]['forceValue'],_0x3c43c1=_0x267443(_0x2a02c4['commandName']),_0x5b51b4=_0x30b467?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c43c1&&_0x9e53b2['config']['get']('list.multiBlock')||(_0x5b51b4='*Change\x20to:*\x20%0'),_0x11d972={'type':'format','content':wt(_0x1a93f1,_0x5b51b4,wt(_0x1a93f1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5b51b4='*Indent:*\x20%0',_0x11d972={'type':'format','content':wt(_0x1a93f1,_0x5b51b4,wt(_0x1a93f1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5b51b4=function(_0x3a896d){const _0x42cf2b=_0x3a896d['getFirstRange']();let _0x4566bf=_0x42cf2b['start']['nodeAfter'];for(;_0x4566bf&&_0x42cf2b['containsItem'](_0x4566bf);){if(_0x4566bf['getAttribute']('listIndent')>0x0)return!0x1;_0x4566bf=_0x4566bf['nextSibling'];}return!0x0;}(_0x40bacf)?wt(_0x1a93f1,'*Format:*\x20remove\x20from\x20%0',wt(_0x1a93f1,function(_0x54d45a){return'ELEMENT_'+_0x54d45a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40bacf))):wt(_0x1a93f1,'*Outdent:*\x20%0',wt(_0x1a93f1,'ELEMENT_LIST_ITEM')),_0x11d972={'type':'format','content':_0x5b51b4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2a02c4['multipleBlocks']&&(_0x5b51b4='*Merge:*\x20%0',_0x11d972={'type':'deletion','content':wt(_0x1a93f1,_0x5b51b4,wt(_0x1a93f1,'ELEMENT_LIST_ITEM'))});}return _0x11d972;});}};function Qt(_0x26ed2a){let _0x286767=_0x26ed2a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x286767;){const _0x31a2c5=_0x286767['getAttribute']('listItemId');if(!_0x31a2c5)return!0x1;if(_0x31a2c5==_0x26ed2a['data']['newValue'])return'newValue';if(_0x31a2c5==_0x26ed2a['data']['oldValue'])return'oldValue';_0x286767=_0x286767['previousSibling'];}return!0x1;}var Zt=class extends _0x4ca415{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x448806=this['editor']['config']['get']('list.properties'),_0x1eb5ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x448806['styles']&&_0x1eb5ee['enableDefaultAttributesIntegration']('listStyle'),_0x448806['reversed']&&_0x1eb5ee['enableDefaultAttributesIntegration']('listReversed'),_0x448806['startIndex']&&_0x1eb5ee['enableDefaultAttributesIntegration']('listStart');const _0x7da7e4={'type':'format','content':''};_0x1eb5ee['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x50a225=this['editor']['locale'];_0x1eb5ee['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x50a225,'FORMAT_LIST_REVERSED')),_0x1eb5ee['descriptionFactory']['registerDescriptionCallback'](_0x421013=>{const {data:_0x9bdf37}=_0x421013;if(_0x9bdf37&&'listReversed'==_0x9bdf37['key'])return null==_0x9bdf37['newValue']||0x0==_0x9bdf37['newValue']&&null==_0x9bdf37['oldValue']?_0x7da7e4:void 0x0;}),_0x1eb5ee['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x50a225,'FORMAT_LIST_START')),_0x1eb5ee['descriptionFactory']['registerDescriptionCallback'](_0x46225b=>{const {data:_0x510ba2}=_0x46225b;if(_0x510ba2&&'listStart'==_0x510ba2['key'])return null==_0x510ba2['newValue']||0x1==_0x510ba2['newValue']&&null==_0x510ba2['oldValue']?_0x7da7e4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2be2ef=>{if(_0x2be2ef['batch']['isUndo'])return!0x1;let _0x58b19b=!0x1;const _0xc2104a=_0x1eb5ee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dfabb=>{const _0x57aa53=_0x1eb5ee['_getAttributeKey'](_0x5dfabb);return'listStart'==_0x57aa53||'listReversed'==_0x57aa53;});for(const _0x18a91d of _0xc2104a){const _0x19b2fd=_0x18a91d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x19b2fd&&'customNumbered'!=_0x19b2fd&&(_0x1eb5ee['_findSuggestions'](_0x18a91d['getFirstRange'](),'attribute')['find'](_0x3bbd7c=>'listType'==_0x1eb5ee['_getAttributeKey'](_0x3bbd7c['suggestion']))||(_0x2be2ef['removeMarker'](_0x18a91d['getFirstMarker']()),_0x58b19b=!0x0));}return _0x58b19b;}),this['_registerLegacyDescription']();}handleDescriptions(_0x57cb6c){const _0x5499ce=this['editor']['locale'],{data:_0x19dbee}=_0x57cb6c,_0x486b10={'type':'format','content':''};if(!_0x19dbee||'listStyle'!=_0x19dbee['key'])return;if(!_0x19dbee['oldValue'])return'default'==_0x19dbee['newValue']?_0x486b10:{'type':'format','content':''+wt(_0x5499ce,'*Set\x20format:*\x20%0',wt(_0x5499ce,this['_getTranslationKeyForListStyle'](_0x19dbee['newValue'])))};if(!_0x19dbee['newValue']){if('default'==_0x19dbee['oldValue'])return _0x486b10;let _0x58ec00=_0x57cb6c['head'];for(;_0x58ec00;){if(_0x58ec00['data']&&'listType'==_0x58ec00['data']['key']&&_0x58ec00['data']['newValue'])return _0x486b10;_0x58ec00=_0x58ec00['next'];}return{'type':'format','content':''+wt(_0x5499ce,'*Remove\x20format:*\x20%0',wt(_0x5499ce,this['_getTranslationKeyForListStyle'](_0x19dbee['oldValue'])))};}if('default'!=_0x19dbee['newValue'])return{'type':'format','content':''+wt(_0x5499ce,'*Set\x20format:*\x20%0',wt(_0x5499ce,this['_getTranslationKeyForListStyle'](_0x19dbee['newValue'])))};let _0x2abedb=_0x57cb6c['head'];for(;_0x2abedb;){if(_0x2abedb['data']&&'listType'==_0x2abedb['data']['key']&&_0x2abedb['data']['newValue']&&_0x2abedb['data']['oldValue'])return _0x486b10;_0x2abedb=_0x2abedb['next'];}return{'type':'format','content':wt(_0x5499ce,'*Set\x20format:*\x20%0',wt(_0x5499ce,'ELEMENT_'+_0x57cb6c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x15a511=this['editor'],_0x7febb6=_0x15a511['locale'];_0x15a511['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c4a07=>{if('formatBlock'!=_0x4c4a07['type'])return;const {data:_0x484ef2}=_0x4c4a07;if(!_0x484ef2)return;let _0x378737,_0x43e732;switch(_0x484ef2['commandName']){case'listStyle':_0x378737='*Change\x20to:*\x20%0',_0x43e732={'type':'format','content':wt(_0x7febb6,_0x378737,wt(_0x7febb6,this['_getTranslationKeyForListStyle'](_0x484ef2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x378737=_0x484ef2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43e732={'type':'format','content':wt(_0x7febb6,_0x378737)};break;case'listStart':_0x378737='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43e732={'type':'format','content':wt(_0x7febb6,_0x378737,_0x484ef2['commandParams'][0x0]['startIndex'])};}return _0x43e732;});}_getTranslationKeyForListStyle(_0x810161){return'ELEMENT_'+(_0x5da514=_0x810161,Jt['includes'](_0x5da514)?'bulleted':te['includes'](_0x5da514)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x810161['toUpperCase']()['replace'](/-/g,'_');var _0x5da514;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x4ca415{afterInit(){const _0x35228b=this['editor'];_0x35228b['commands']['get']('emoji')&&_0x35228b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x4ca415{static get requires(){return[_t];}init(){const _0x5e9607=this['editor'],_0x37d110=_0x5e9607['plugins']['get']('TrackChangesEditing'),_0x1e54cb=_0x5e9607['commands']['get']('enter');_0x37d110['enableCommand']('enter',()=>{_0x5e9607['model']['change'](_0x3d5e1a=>{const _0x2f62db=_0x5e9607['model']['document']['selection'],_0x141864=_0x2f62db['getFirstPosition'](),_0x3b5b4f=at['fromRange'](_0x2f62db['getFirstRange']());if(_0x1e54cb['enterBlock'](_0x3d5e1a)){const _0x97fc77=_0x5e9607['model']['createPositionAt'](_0x141864['parent']['nextSibling'],0x0),_0x5de49e=_0x3d5e1a['createRange'](_0x141864,_0x97fc77);_0x37d110['markInsertion'](_0x5de49e);}else _0x3d5e1a['setSelection'](_0x3d5e1a['createRange'](_0x3b5b4f['end']));_0x3b5b4f['detach'](),_0x1e54cb['fire']('afterExecute',{'writer':_0x3d5e1a});});});}},ie=class extends _0x4ca415{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x234ea6=this['editor']['plugins']['get']('TrackChangesEditing');_0x234ea6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x234ea6['enableCommand']('findNext'),_0x234ea6['enableCommand']('findPrevious'),_0x234ea6['enableCommand']('replace'),_0x234ea6['enableCommand']('replaceAll');}['handleFindCommand'](_0x5e7865,_0x30be5d,_0x59b609={}){const _0x405560=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5e7865(_0x385187=>{let _0xd76b38=('string'==typeof _0x30be5d?_0x405560['findByTextCallback'](_0x30be5d,_0x59b609):_0x30be5d)(_0x385187);Array['isArray'](_0xd76b38)&&(_0xd76b38={'results':_0xd76b38,'searchText':'string'==typeof _0x30be5d?_0x30be5d:''});const _0x534c17=_0xd76b38['results']['filter'](_0x501991=>!0x1===this['_isInDeletionRange'](_0x501991,_0x385187['item']));return{..._0xd76b38,'results':_0x534c17};},_0x59b609);}_isInDeletionRange(_0x4e54ff,_0x1d06b2){const _0x303db3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d06b2,_0x4e54ff['start']),this['editor']['model']['createPositionAt'](_0x1d06b2,_0x4e54ff['end']));for(const _0x1fea91 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x303db3['getIntersection'](_0x1fea91['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x4ca415{afterInit(){const _0x108376=this['editor']['locale'],_0x280617=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3059b0,commandName:_0x305a12}of se)this['editor']['plugins']['has'](_0x3059b0)&&_0x280617['enableDefaultAttributesIntegration'](_0x305a12);_0x280617['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x108376,'FORMAT_FONT_SIZE')),_0x280617['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x108376,'FORMAT_FONT_FAMILY')),_0x280617['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x108376,'FORMAT_FONT_COLOR')),_0x280617['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x108376,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1eb1a7=this['editor'],_0x6789e0=_0x1eb1a7['locale'];_0x1eb1a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x410b75=>{const _0x548df8=_0x6789e0['t'];if('formatInline'!=_0x410b75['type'])return;const {data:_0xb0422a}=_0x410b75;if(null!=_0xb0422a){if('fontSize'==_0xb0422a['commandName']){const _0x191614=_0xb0422a['commandParams'][0x0]['value'];if(_0x191614){const _0x779f00=_0x548df8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x7d7356=>_0x7d7356['model']==_0x191614)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x6789e0,'*Set\x20font\x20size:*\x20%0',_0x779f00)};}return{'type':'format','content':wt(_0x6789e0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xb0422a['commandName']){const _0x2548ea=_0xb0422a['commandParams'][0x0]['value'];return _0x2548ea?{'type':'format','content':wt(_0x6789e0,'*Set\x20font\x20family:*\x20%0',_0x2548ea)}:{'type':'format','content':wt(_0x6789e0,'*Reset\x20font\x20family*')};}if('fontColor'==_0xb0422a['commandName']){const _0x569b80=_0xb0422a['commandParams'][0x0]['value'];if(_0x569b80){const _0x2a1d43=_0x5d2157(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1a647a=>_0x1a647a['model']==_0x569b80);let _0x4156fe=_0x569b80,_0x59e887='';return _0x2a1d43&&(_0x4156fe=_0x2a1d43['label'],_0x59e887=_0x3ae9dc(_0x6789e0,_0x4156fe)['toLowerCase']()),{'type':'format','content':wt(_0x6789e0,'*Set\x20font\x20color:*\x20%0',_0x59e887)['trim'](),'color':{'value':_0x569b80,'title':_0x59e887||_0x4156fe}};}return{'type':'format','content':wt(_0x6789e0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xb0422a['commandName']){const _0x3b542e=_0xb0422a['commandParams'][0x0]['value'];if(_0x3b542e){const _0x1727d5=_0x5d2157(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x137f3e=>_0x137f3e['model']==_0x3b542e);let _0x3b7006=_0x3b542e,_0x1267b0='';return _0x1727d5&&(_0x3b7006=_0x1727d5['label'],_0x1267b0=_0x3ae9dc(_0x6789e0,_0x3b7006)['toLowerCase']()),{'type':'format','content':wt(_0x6789e0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1267b0)['trim'](),'color':{'value':_0x3b542e,'title':_0x1267b0||_0x3b7006}};}return{'type':'format','content':wt(_0x6789e0,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x4ca415{afterInit(){const {plugins:_0x2d0a12}=this['editor'];_0x2d0a12['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2d0a12['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x24ff1b,plugins:_0x3f4fb8,commands:_0x3d514c}=this['editor'],_0x1746f5=_0x3f4fb8['get']('TrackChangesEditing');_0x3d514c['get']('footnotesStyle')&&_0x1746f5['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3d514c['get']('footnotesStart')&&_0x1746f5['enableDefaultAttributesIntegration']('footnotesStart'),_0x1746f5['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x24ff1b,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1746f5['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x24ff1b,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x6a9bb=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xcc95e6,commands:_0x4e2b74}=this['editor'];_0x4e2b74['get']('insertFootnote')&&_0x6a9bb['enableCommand']('insertFootnote'),_0x6a9bb['descriptionFactory']['registerElementLabel']('footnoteRef',_0x69110f=>wt(_0xcc95e6,'ELEMENT_FOOTNOTE_REF',_0x69110f)),_0x6a9bb['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x337606=>wt(_0xcc95e6,'ELEMENT_FOOTNOTE_DEFINITION',_0x337606)),_0x6a9bb['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x29b535=>wt(_0xcc95e6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x29b535));}},ae=class extends _0x4ca415{afterInit(){const _0x5d2239=this['editor'],_0x5a3c48=_0x5d2239['plugins']['get']('TrackChangesEditing'),_0x10dc8b=_0x5d2239['commands']['get']('copyFormat'),_0x47c3cf=_0x5d2239['commands']['get']('pasteFormat');_0x10dc8b&&_0x47c3cf&&(_0x5a3c48['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a3c48['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x222f67=this['editor'],_0x46e90d=_0x222f67['locale'];_0x222f67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x510fe1=>{if('formatBlock'!=_0x510fe1['type']&&'formatInline'!=_0x510fe1['type'])return;const {data:_0x1cae23}=_0x510fe1;if(_0x1cae23&&'pasteFormat'===_0x1cae23['commandName']){const _0x9b5035=[],_0x5a043c=_0x1cae23['commandParams'][0x0];for(const [_0x5915a3,_0x5d7eb1]of Object['entries'](_0x5a043c))_0x9b5035['push'](ce(_0x222f67,_0x5915a3,_0x5d7eb1));return _0x9b5035['length']?{'type':'format','content':wt(_0x46e90d,'*Set\x20format\x20to:*\x20%0',_0x9b5035['join'](',\x20'))}:{'type':'format','content':wt(_0x46e90d,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x2b26b4,_0xf6fa03,_0x16f6f7){const _0x3b0f14=_0x2b26b4['locale'],_0x3180a7=_0x3b0f14['t'],_0x364cd9=_0xf6fa03['split'](/(?=[A-Z])/)['join']('\x20'),_0x546723=_0x3180a7(_0x364cd9['charAt'](0x0)['toUpperCase']()+_0x364cd9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x16f6f7)return _0x546723;if('fontColor'===_0xf6fa03||'fontBackgroundColor'===_0xf6fa03){const _0x4f16e9=_0x5d2157(_0x2b26b4['config']['get']('fontColor.colors'))['find'](_0x5070a5=>_0x5070a5['model']==_0x16f6f7);return _0x546723+'\x20('+(_0x4f16e9?_0x3ae9dc(_0x3b0f14,_0x4f16e9['label'])['toLowerCase']():_0x16f6f7)+')';}if('fontSize'===_0xf6fa03&&isNaN(parseFloat(_0x16f6f7))){const _0x3dcde1=_0x2b26b4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2b26b4['config']['get']('fontSize.options'))['find'](_0x4271c0=>_0x4271c0['model']==_0x16f6f7);return _0x546723+'\x20('+(_0x3dcde1?_0x3180a7(_0x3dcde1['title'])['toLowerCase']():_0x16f6f7)+')';}return _0x546723+'\x20('+_0x16f6f7+')';}var le=class extends _0x4ca415{afterInit(){const _0x5bd08c=this['editor'];if(!_0x5bd08c['plugins']['has']('GeneralHtmlSupport')||!_0x5bd08c['plugins']['has']('DataSchema'))return;const _0x359c98=_0x5bd08c['plugins']['get']('TrackChangesEditing'),_0x2f538c=_0x5bd08c['plugins']['get']('GeneralHtmlSupport'),_0x6a2b3c=_0x5bd08c['plugins']['get']('DataSchema'),_0x4681a1=_0x5bd08c['locale'],_0x33fc17=new Set(['htmlContent']);for(const _0x42cf10 of _0x6a2b3c['getDefinitionsForView'](/.*/,!0x1)){const _0x1edffe=_0x42cf10['view'],_0x5e1df6=_0x2f538c['getGhsAttributeNameForElement'](_0x1edffe);_0x33fc17['add'](_0x5e1df6),!_0x42cf10['isInline']||_0x42cf10['isObject']||'appliesToBlock'in _0x42cf10&&_0x42cf10['appliesToBlock']||_0x359c98['descriptionFactory']['registerAttributeLabel'](_0x5e1df6,_0x1edffe),_0x42cf10['model']['startsWith']('html')&&_0x359c98['descriptionFactory']['registerElementLabel'](_0x42cf10['model'],_0x52a7a4=>wt(_0x4681a1,'ELEMENT_HTML_TAG',[_0x52a7a4,_0x1edffe]));}_0x359c98['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x4681a1,'FORMAT_RAW_HTML_CONTENT')),_0x359c98['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x4681a1,'FORMAT_HTML_LIST_ITEM')),_0x359c98['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x4681a1,'FORMAT_HTML_BULLETED_LIST')),_0x359c98['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x4681a1,'FORMAT_HTML_NUMBERED_LIST')),_0x359c98['descriptionFactory']['registerDescriptionCallback'](_0xf3fce4=>{if('attribute'!==_0xf3fce4['type'])return;const _0x54c720=_0xf3fce4['data'];if(!_0x54c720||!_0x33fc17['has'](_0x54c720['key']))return;if('htmlContent'===_0x54c720['key'])return{'type':'format','content':wt(_0x4681a1,'*Change\x20%0\x20content*',wt(_0x4681a1,'ELEMENT_RAW_HTML'))};const {setItems:_0x3c631a,removeItems:_0x1f6ff0}=function(_0x4a9385,_0x23a9ad,_0x424f7e){const _0x462f58=[],_0x10780a=[],_0x5b6d89=_0x4a9385['styles']??{},_0x5005b6=_0x23a9ad['styles']??{};for(const _0x2ddb81 of new Set([...Object['keys'](_0x5b6d89),...Object['keys'](_0x5005b6)]))_0x5b6d89[_0x2ddb81]!==_0x5005b6[_0x2ddb81]&&(void 0x0===_0x5005b6[_0x2ddb81]?_0x10780a['push'](_0x2ddb81):_0x462f58['push'](_0x2ddb81+'\x20('+_0x5005b6[_0x2ddb81]+')'));const _0x1684e5=wt(_0x424f7e,'FORMAT_HTML_CLASS'),_0x39d0ce=new Set(_0x4a9385['classes']??[]),_0x2ed877=new Set(_0x23a9ad['classes']??[]),_0xd387cd=[..._0x2ed877]['some'](_0x47a6ad=>!_0x39d0ce['has'](_0x47a6ad)),_0x2220a7=[..._0x39d0ce]['some'](_0x463086=>!_0x2ed877['has'](_0x463086));_0xd387cd&&_0x462f58['push'](_0x1684e5),_0x2220a7&&_0x10780a['push'](_0x1684e5);const _0x4dde4e=wt(_0x424f7e,'FORMAT_HTML_ATTRIBUTE'),_0x14a258=_0x4a9385['attributes']??{},_0x515d74=_0x23a9ad['attributes']??{};let _0x363723=!0x1,_0xad8373=!0x1;for(const _0x50aee1 of new Set([...Object['keys'](_0x14a258),...Object['keys'](_0x515d74)]))_0x14a258[_0x50aee1]!==_0x515d74[_0x50aee1]&&(void 0x0===_0x515d74[_0x50aee1]?_0xad8373=!0x0:_0x363723=!0x0);return _0x363723&&_0x462f58['push'](_0x4dde4e),_0xad8373&&_0x10780a['push'](_0x4dde4e),{'setItems':_0x462f58,'removeItems':_0x10780a};}(_0x54c720['oldValue']??{},_0x54c720['newValue']??{},_0x4681a1);if(!_0x3c631a['length']&&!_0x1f6ff0['length'])return;const _0x4640ee=[];return _0x3c631a['length']&&_0x4640ee['push'](wt(_0x4681a1,'*Set\x20format:*\x20%0',_0x3c631a['join'](',\x20'))),_0x1f6ff0['length']&&_0x4640ee['push'](wt(_0x4681a1,'*Remove\x20format:*\x20%0',_0x1f6ff0['join'](',\x20'))),{'type':'format','content':_0x4640ee['join']('\x0a')};});}},ue=class extends _0x4ca415{_headingOptions;afterInit(){const _0x165b89=this['editor'];if(!_0x165b89['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x165b89['config']['get']('heading.options');const _0x505a9f=_0x165b89['locale'],_0x2e9882=_0x165b89['plugins']['get']('TrackChangesEditing');_0x2e9882['enableDefaultAttributesIntegration']('heading');for(const _0x2f931b of this['_headingOptions'])'paragraph'!=_0x2f931b['model']&&_0x2e9882['descriptionFactory']['registerElementLabel'](_0x2f931b['model'],_0x2fb054=>{const _0x3c276b=this['_getHeadingLevel'](_0x2f931b['model']);return null!==_0x3c276b?_0x33a243(_0x2fb054,_0x3c276b):_0x39670b(_0x2fb054,_0x2f931b['title']);});function _0x33a243(_0x4d54c9,_0x451573){return wt(_0x505a9f,'ELEMENT_HEADING',[_0x4d54c9,_0x451573]);}function _0x39670b(_0x45b77c,_0x23f3b0){return wt(_0x505a9f,'ELEMENT_HEADING_CUSTOM',[_0x45b77c,_0x23f3b0]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1b2639=this['editor'],_0x461ad8=_0x1b2639['locale'];function _0x1d2b1e(_0x3b4115,_0x2153e9){return wt(_0x461ad8,'ELEMENT_HEADING_CUSTOM',[_0x3b4115,_0x2153e9]);}_0x1b2639['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488d72=>{if('formatBlock'!=_0x488d72['type'])return;const {data:_0x3bf008}=_0x488d72;if(_0x3bf008&&'heading'==_0x3bf008['commandName']){const _0x206873=_0x3bf008['commandParams'][0x0]['value'],_0x1f1a7b=this['_getHeadingLevel'](_0x206873);if(null!==_0x1f1a7b)return{'type':'format','content':wt(_0x461ad8,'*Change\x20to:*\x20%0',(_0x28af5c=0x1,_0x64431a=_0x1f1a7b,wt(_0x461ad8,'ELEMENT_HEADING',[_0x28af5c,_0x64431a])))};const _0x3a8f3e=this['_headingOptions']['find'](_0x369028=>_0x369028['model']===_0x206873)['title'];return{'type':'format','content':wt(_0x461ad8,'*Change\x20to:*\x20%0',_0x1d2b1e(0x1,_0x3a8f3e))};}var _0x28af5c,_0x64431a;});}_getHeadingLevel(_0x3701cd){const _0x2a5f41=_0x3701cd['match'](/^heading(\d+)/);if(_0x2a5f41)return _0x2a5f41[0x1];const _0x262f51=this['_headingOptions']?.['find'](_0x504696=>_0x504696['model']==_0x3701cd);if(_0x262f51&&_0x262f51['view']){const _0x403106=_0x262f51['view'],_0x2dd943=(_0x403106['name']??_0x403106)['match'](/^h(\d+)/);if(_0x2dd943)return _0x2dd943[0x1];}return null;}},de=class extends _0x4ca415{afterInit(){const _0x516dec=this['editor'];if(!_0x516dec['plugins']['has']('HighlightEditing'))return;const _0x37e4c1=_0x516dec['plugins']['get']('TrackChangesEditing'),_0x486339=_0x516dec['locale'];_0x37e4c1['enableDefaultAttributesIntegration']('highlight'),_0x37e4c1['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x486339,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3d09e5=this['editor'],_0x4fc497=_0x3d09e5['locale'];_0x3d09e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e598=>{if('formatInline'!=_0x36e598['type'])return;const {data:_0x4e1d40}=_0x36e598;if(_0x4e1d40&&'highlight'==_0x4e1d40['commandName']){const _0x5caf6b=_0x4fc497['t'],_0x7766d3=_0x4e1d40['commandParams'][0x0]['value'];if(_0x7766d3){const _0x4729d0=_0x3d09e5['config']['get']('highlight.options')['find'](_0x21f203=>_0x21f203['model']==_0x7766d3),_0x28c113=_0x5caf6b(_0x4729d0['title'])['toLowerCase']();return{'type':'format','content':wt(_0x4fc497,'*Set\x20highlight:*\x20%0',_0x28c113),'color':{'value':_0x4729d0['color'],'title':_0x4729d0['title']}};}return{'type':'format','content':wt(_0x4fc497,'*Remove\x20highlight*',wt(_0x4fc497,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x4ca415{afterInit(){const _0x3c2a91=this['editor'];if(!_0x3c2a91['plugins']['has']('HorizontalLineEditing'))return;_0x3c2a91['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x404edb=_0x3c2a91['plugins']['get']('TrackChangesEditing'),_0x9d68dd=_0x3c2a91['locale'];_0x404edb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x348c5e=>wt(_0x9d68dd,'ELEMENT_HORIZONTAL_LINE',_0x348c5e));}},ge=class extends _0x4ca415{afterInit(){const _0x17604d=this['editor'];if(!_0x17604d['plugins']['has']('HtmlEmbed'))return;const _0x2ffee9=_0x17604d['plugins']['get']('TrackChangesEditing'),_0x568a1d=_0x17604d['locale'];_0x2ffee9['descriptionFactory']['registerElementLabel']('rawHtml',_0x56cf53=>wt(_0x568a1d,'ELEMENT_HTML_EMBED',_0x56cf53)),_0x2ffee9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2ffee9['descriptionFactory']['registerDescriptionCallback'](_0x3968ca=>{if('attribute'!=_0x3968ca['type'])return;const {data:_0x44d8e7}=_0x3968ca;if(_0x44d8e7&&'value'==_0x44d8e7['key']&&_0x3968ca['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xdc50ce=wt(_0x568a1d,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x568a1d,'*Change\x20%0\x20content*',_0xdc50ce)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x474645=this['editor'],_0x323a9a=_0x474645['locale'];_0x474645['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a40a5=>{if('formatBlock'!=_0x5a40a5['type'])return;const {data:_0x3ae6ab}=_0x5a40a5;if(_0x3ae6ab&&'htmlEmbed'==_0x3ae6ab['commandName']){const _0x542afd=wt(_0x323a9a,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x323a9a,'*Change\x20%0\x20content*',_0x542afd)};}});}},fe=class extends _0x4ca415{afterInit(){const _0x589e7f=this['editor'];if(!_0x589e7f['plugins']['has']('ImageEditing'))return;const _0x1b4dd5=_0x589e7f['plugins']['get']('TrackChangesEditing'),_0x5d236c=_0x589e7f['plugins']['get']('ImageUtils'),_0x3325f6=_0x589e7f['locale'];_0x1b4dd5['enableCommand']('insertImage'),_0x1b4dd5['descriptionFactory']['registerElementLabel']('imageBlock',_0x15ac5b=>wt(_0x3325f6,'ELEMENT_IMAGE',_0x15ac5b)),_0x1b4dd5['descriptionFactory']['registerElementLabel']('imageInline',_0x541d0e=>wt(_0x3325f6,'ELEMENT_INLINE_IMAGE',_0x541d0e)),_0x1b4dd5['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x3325f6,'ELEMENT_CAPTION')),_0x589e7f['plugins']['has']('ImageUploadEditing')&&_0x1b4dd5['enableCommand']('uploadImage'),_0x589e7f['plugins']['has']('ImageBlockEditing')&&_0x589e7f['plugins']['has']('ImageInlineEditing')&&(_0x1b4dd5['enableCommand']('imageTypeInline',(_0x249869,_0x5c2c1b)=>{const _0x3fdbd2=_0x5d236c['getClosestSelectedImageElement'](_0x589e7f['model']['document']['selection']);_0x589e7f['model']['change'](()=>{_0x1b4dd5['markBlockFormat'](_0x3fdbd2,{'commandName':'imageTypeInline','commandParams':[_0x5c2c1b]},[],'convertBlockImageToInline');});}),_0x1b4dd5['enableCommand']('imageTypeBlock',(_0x46ee13,_0x462a8d)=>{_0x589e7f['model']['change'](_0x5cd4e6=>{let _0x457a50=_0x5d236c['getClosestSelectedImageElement'](_0x589e7f['model']['document']['selection']),_0x14b16e=_0x5cd4e6['createRangeOn'](_0x457a50);const _0x5ac7d6=ot['fromPosition'](_0x14b16e['start'],'toPrevious'),_0x2f5942=ot['fromPosition'](_0x14b16e['end'],'toNext');_0x1b4dd5['forceDefaultExecution'](()=>_0x46ee13(_0x462a8d)),_0x457a50=_0x5d236c['getClosestSelectedImageElement'](_0x589e7f['model']['document']['selection']),_0x14b16e=_0x5cd4e6['createRangeOn'](_0x457a50);const _0x6876ae=_0x5cd4e6['createRange'](_0x5ac7d6,_0x2f5942);_0x5ac7d6['detach'](),_0x2f5942['detach'](),_0x1b4dd5['markBlockFormat'](_0x457a50,{'commandName':'imageTypeInline','commandParams':[_0x462a8d]},[],'convertInlineImageToBlock'),_0x6876ae['start']['isBefore'](_0x14b16e['start'])&&_0x1b4dd5['markInsertion'](_0x5cd4e6['createRange'](_0x6876ae['start'],_0x14b16e['start']),'convertInlineImageToBlock'),_0x14b16e['end']['isBefore'](_0x6876ae['end'])&&_0x1b4dd5['markInsertion'](_0x5cd4e6['createRange'](_0x14b16e['end'],_0x6876ae['end']),'convertInlineImageToBlock');});}),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b4dd5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x351640])=>{const _0x1d69f0=_0x1b4dd5['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2bc44c=_0x351640['start'],_0x44511d=_0x351640['end'];const _0x3efef5=_0x589e7f['model']['schema']['getNearestSelectionRange'](_0x2bc44c,'backward'),_0x39486e=_0x589e7f['model']['schema']['getNearestSelectionRange'](_0x44511d,'forward');_0x3efef5['isCollapsed']&&(_0x2bc44c=_0x3efef5['start']),_0x39486e['isCollapsed']&&(_0x44511d=_0x39486e['end']),_0x1d69f0([_0x589e7f['model']['createRange'](_0x2bc44c,_0x44511d)]);}),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4a9116),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4a9116)),_0x589e7f['plugins']['has']('ImageCaptionEditing')&&(_0x1b4dd5['enableCommand']('toggleImageCaption',(_0x681bb5,_0x53efe5)=>{const _0x4cc0b7=_0x589e7f['plugins']['get']('ImageCaptionUtils');let _0x19fa4a=_0x5d236c['getClosestSelectedImageElement'](_0x589e7f['model']['document']['selection']),_0x1cc746=_0x4cc0b7['getCaptionFromImageModelElement'](_0x19fa4a);_0x589e7f['model']['change'](()=>{if(_0x1cc746)return void _0x1b4dd5['markDeletion'](_0x589e7f['model']['createRangeOn'](_0x1cc746));const _0x121193=_0x5d236c['isBlockImage'](_0x19fa4a);_0x681bb5(_0x53efe5),_0x19fa4a=_0x5d236c['getClosestSelectedImageElement'](_0x589e7f['model']['document']['selection']),_0x1cc746=_0x4cc0b7['getCaptionFromImageModelElement'](_0x19fa4a),_0x1b4dd5['markInsertion'](_0x589e7f['model']['createRangeOn'](_0x1cc746),_0x121193?null:'imageCaption');});}),_0x1b4dd5['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4a9116));const _0x22534f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a5812(_0x5060db,_0x4991c0){const _0x67549a=_0x22534f['findIndex'](({type:_0x5d83e2,subType:_0x4a6d85})=>_0x5060db['type']==_0x5d83e2&&_0x5060db['subType']==_0x4a6d85),_0x39b751=_0x22534f['findIndex'](({type:_0x526e2e,subType:_0x9b85ba})=>_0x4991c0['type']==_0x526e2e&&_0x4991c0['subType']==_0x9b85ba);if(_0x67549a<0x0||_0x39b751<0x0)return!0x1;const _0x55c50a=_0x5060db['getFirstRange'](),_0x32367b=_0x4991c0['getFirstRange']();if((0x0==_0x67549a||0x1==_0x67549a)&&0x2==_0x39b751&&_0x55c50a['isIntersecting'](_0x32367b))return!0x0;if(0x2==_0x67549a&&0x3==_0x39b751){const _0x3146ea=_0x1b4dd5['_findSuggestions'](_0x55c50a,'insertion')['filter'](({suggestion:_0x23030d,meta:_0x67e684})=>_0x67e684['isOwn']&&'convertInlineImageToBlock'==_0x23030d['subType']);if(_0x3146ea['length']>0x1&&_0x32367b['end']['isEqual'](_0x55c50a['start']))return!0x0;if(0x1==_0x3146ea['length']&&(_0x55c50a['start']['isEqual'](_0x32367b['end'])||_0x55c50a['end']['isEqual'](_0x32367b['start'])))return!0x0;}if(0x3==_0x67549a&&0x3==_0x39b751&&_0x55c50a['start']['isBefore'](_0x32367b['start'])){const _0x5ae92c=_0x55c50a['end']['nodeAfter'],_0x3334f3=_0x32367b['start']['nodeBefore'];return _0x5d236c['isBlockImage'](_0x5ae92c)&&_0x5ae92c===_0x3334f3;}return!0x1;}function _0x4a9116(_0x3d01a4,_0x5d08cd){return _0x3a5812(_0x3d01a4,_0x5d08cd)?[_0x3d01a4,_0x5d08cd]:_0x3a5812(_0x5d08cd,_0x3d01a4)?[_0x5d08cd,_0x3d01a4]:null;}_0x589e7f['plugins']['has']('ImageResize')&&(_0x1b4dd5['enableDefaultAttributesIntegration']('resizeImage'),_0x1b4dd5['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x3325f6,'FORMAT_IMAGE_SIZE'))),_0x589e7f['plugins']['has']('ImageTextAlternativeEditing')&&_0x1b4dd5['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x589e7f['plugins']['has']('PictureEditing')&&_0x1b4dd5['descriptionFactory']['registerDescriptionCallback'](_0x1b8020=>{if('attribute'!=_0x1b8020['type'])return;const {data:_0x57465a}=_0x1b8020;return _0x57465a&&'sources'==_0x57465a['key']?{'type':'format','content':''}:void 0x0;}),_0x589e7f['plugins']['has']('ImageSizeAttributes')&&_0x1b4dd5['descriptionFactory']['registerDescriptionCallback'](_0x5a9322=>{if('attribute'!=_0x5a9322['type'])return;const {data:_0x482d37}=_0x5a9322;return!_0x482d37||'width'!=_0x482d37['key']&&'height'!=_0x482d37['key']?void 0x0:{'type':'format','content':''};}),_0x1b4dd5['descriptionFactory']['registerDescriptionCallback'](_0x12ec5a=>{if(_0x22534f['find'](({type:_0x3fa33a,subType:_0x5d0adc})=>_0x12ec5a['type']==_0x3fa33a&&_0x12ec5a['subType']==_0x5d0adc))return _0x12ec5a['previous']?{}:void 0x0;}),_0x1b4dd5['descriptionFactory']['registerDescriptionCallback'](_0x3f4c24=>{if('insertion'==_0x3f4c24['type']||'deletion'==_0x3f4c24['type']){const _0x5a284f=_0x3f4c24['getContainedElement']();if(_0x5a284f&&_0x5a284f['is']('element','caption'))return{'type':'insertion'==_0x3f4c24['type']?'addObject':'removeObject','element':_0x5a284f,'quantity':0x1};}}),_0x1b4dd5['descriptionFactory']['registerDescriptionCallback'](_0x2d6a3f=>'formatBlock'==_0x2d6a3f['type']&&'convertInlineImageToBlock'==_0x2d6a3f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d6a3f['type']&&'convertBlockImageToInline'==_0x2d6a3f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b4dd5['descriptionFactory']['registerDescriptionCallback'](_0x19bc37=>{if('attribute'!=_0x19bc37['type'])return;const {data:_0x4442bb}=_0x19bc37;if(!_0x4442bb||'alt'!=_0x4442bb['key'])return;const _0x2117fe=_0x4442bb['newValue'];return _0x2117fe?{'type':'format','content':wt(_0x3325f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2117fe+'\x22')}:{'type':'format','content':wt(_0x3325f6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xc831f0=this['editor'],_0x2e00fa=_0xc831f0['locale'];_0xc831f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ec94=>{if('formatBlock'!=_0x13ec94['type']&&'formatInline'!=_0x13ec94['type'])return;const {data:_0x3b3783}=_0x13ec94;if(_0x3b3783){if('imageTextAlternative'==_0x3b3783['commandName']){const _0xa8f26c=_0x3b3783['commandParams'][0x0]['newValue'];return _0xa8f26c?{'type':'format','content':wt(_0x2e00fa,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa8f26c+'\x22')}:{'type':'format','content':wt(_0x2e00fa,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b3783['commandName']){const _0x2c41b7=_0x3b3783['commandParams'][0x0]['width'];return _0x2c41b7?{'type':'format','content':wt(_0x2e00fa,'*Set\x20image\x20width:*\x20%0',_0x2c41b7)}:{'type':'format','content':wt(_0x2e00fa,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x4ca415{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x277b00=this['editor']['locale'],_0x1bd61e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bd61e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1bd61e['descriptionFactory']['registerDescriptionCallback'](_0xae04d8=>{if('attribute'!=_0xae04d8['type'])return;const {data:_0x304b42}=_0xae04d8;return _0x304b42&&'src'==_0x304b42['key']?_0x304b42['newValue']&&_0x304b42['oldValue']?{'type':'format','content':wt(_0x277b00,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x17e8e9=this['editor']['plugins']['get']('TrackChangesEditing');_0x17e8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x17e8e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17e8e9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x17e8e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4a6b4f=this['editor'],_0x3a2c99=_0x4a6b4f['locale'];_0x4a6b4f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bed8e=>{if('formatBlock'!=_0x5bed8e['type']&&'formatInline'!=_0x5bed8e['type'])return;const {data:_0x23eb6b}=_0x5bed8e;return _0x23eb6b&&'replaceImageSource'==_0x23eb6b['commandName']?{'type':'format','content':wt(_0x3a2c99,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x4ca415{afterInit(){const _0x341911=this['editor'];if(!_0x341911['plugins']['has']('ImageStyleEditing'))return;const _0x378b00=_0x341911['plugins']['get']('TrackChangesEditing'),_0x44fe20=_0x341911['plugins']['get']('ImageUtils'),_0x5530d9={};_0x378b00['enableCommand']('imageStyle',(_0xcf25d4,_0x4d9c97)=>{const _0x25cf01=_0x341911['plugins']['get']('Users')['me'],_0x4dfbaf=_0x341911['commands']['get']('imageStyle');let _0x3c8b69=_0x44fe20['getClosestSelectedImageElement'](_0x341911['model']['document']['selection']),_0x5951d9=_0x341911['model']['createRangeOn'](_0x3c8b69),_0x1a4136=_0x4dfbaf['value'];if(_0x1a4136==_0x4d9c97['value'])return;if(_0x4d9c97['value']&&_0x44fe20['isInlineImage'](_0x3c8b69)&&!_0x4dfbaf['isStyleEnabled'](_0x4d9c97['value']))return;const _0x2157c8={'commandName':'imageStyle','commandParams':[_0x4d9c97],'formatGroupId':_0x32d994()};_0x341911['model']['change'](()=>{if(_0x378b00['getSuggestions']()['filter'](_0x12ed14=>_0x12ed14['isInContent']&&_0x25cf01==_0x12ed14['author']&&('formatBlock'==_0x12ed14['type']||'formatInline'==_0x12ed14['type'])&&('imageStylePreApply'==_0x12ed14['subType']||'imageStylePostApply'==_0x12ed14['subType'])&&_0x12ed14['getFirstRange']()['isEqual'](_0x5951d9))['forEach'](_0x15a9e6=>_0x378b00['discardSuggestion'](_0x15a9e6['head'])),_0x3c8b69=_0x44fe20['getClosestSelectedImageElement'](_0x341911['model']['document']['selection']),_0x5951d9=_0x341911['model']['createRangeOn'](_0x3c8b69),_0x4dfbaf['refresh'](),_0x341911['commands']['get']('imageTypeInline')['refresh'](),_0x341911['commands']['get']('imageTypeBlock')['refresh'](),_0x1a4136=_0x4dfbaf['value'],_0x1a4136!=_0x4d9c97['value'])return _0x44fe20['isInlineImage'](_0x3c8b69)&&_0x4dfbaf['shouldConvertImageType'](_0x4d9c97['value'],_0x3c8b69)?(_0xcf25d4({..._0x4d9c97,'setImageSizes':!0x1}),_0x3c8b69=_0x44fe20['getClosestSelectedImageElement'](_0x341911['model']['document']['selection']),void _0x378b00['markBlockFormat'](_0x3c8b69,{..._0x2157c8,'commandReversedParams':[{'value':_0x1a4136||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44fe20['isBlockImage'](_0x3c8b69)?_0x378b00['markBlockFormat'](_0x3c8b69,_0x2157c8,[],'imageStylePostApply'):_0x378b00['markInlineFormat'](_0x5951d9,_0x2157c8,'imageStylePostApply'));});});for(const _0x38162b of _0x341911['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5530d9[_0x38162b['name']]=_0x38162b['title']['toLowerCase']();_0x378b00['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x378b00['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x378b00['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x378b00['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b123f])=>{_0x44fe20['setImageNaturalSizeAttributes'](_0x4b123f['getContainedElement']());}),_0x378b00['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3fcda6,_0x828b35)=>{_0x378b00['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3fcda6,{'commandName':_0x828b35['commandName'],'commandParams':_0x828b35['commandReversedParams']});}),_0x378b00['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x8c431a,_0x3535d2){return _0x50e3d1(_0x8c431a,_0x3535d2)?[_0x8c431a,_0x3535d2]:_0x50e3d1(_0x3535d2,_0x8c431a)?[_0x3535d2,_0x8c431a]:null;});const _0xb95fca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50e3d1(_0x53595c,_0x54aad5){const _0x5c11ae=_0xb95fca['findIndex'](({type:_0x3d90c9,subType:_0x48cb58})=>_0x53595c['type']==_0x3d90c9&&_0x53595c['subType']==_0x48cb58),_0x26b0f4=_0xb95fca['findIndex'](({type:_0x5a5834,subType:_0x42205a})=>_0x54aad5['type']==_0x5a5834&&_0x54aad5['subType']==_0x42205a);if(_0x5c11ae<0x0||_0x26b0f4<0x0)return!0x1;const _0x414647=_0x53595c['getFirstRange'](),_0x1fc456=_0x54aad5['getFirstRange']();if((0x0==_0x5c11ae||0x1==_0x5c11ae)&&0x2==_0x26b0f4&&_0x414647['isIntersecting'](_0x1fc456))return!0x0;if(0x2==_0x5c11ae&&0x3==_0x26b0f4){const _0x512a23=_0x378b00['_findSuggestions'](_0x414647,'insertion')['filter'](({suggestion:_0x3bef45,meta:_0xbd53a5})=>_0xbd53a5['isOwn']&&'convertInlineImageToBlock'==_0x3bef45['subType']);if(_0x512a23['length']>0x1&&_0x1fc456['end']['isEqual'](_0x414647['start']))return!0x0;if(0x1==_0x512a23['length']&&(_0x414647['start']['isEqual'](_0x1fc456['end'])||_0x414647['end']['isEqual'](_0x1fc456['start'])))return!0x0;}if(0x3==_0x5c11ae&&0x3==_0x26b0f4&&_0x414647['start']['isBefore'](_0x1fc456['start'])){const _0x152742=_0x414647['end']['nodeAfter'],_0x12551a=_0x1fc456['start']['nodeBefore'];return _0x44fe20['isBlockImage'](_0x152742)&&_0x152742===_0x12551a;}return!0x1;}_0x341911['model']['document']['registerPostFixer'](()=>{let _0x3df304=!0x1;const _0x1f405a=Array['from'](_0x341911['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3585c3,data:_0x5b20b2}of _0x1f405a){const {group:_0x23f7ba,type:_0x583ff7,subType:_0x59e598,id:_0x2ec78f}=nt(_0x3585c3);if('suggestion'==_0x23f7ba&&_0x378b00['hasSuggestion'](_0x2ec78f)){if('formatBlock'==_0x583ff7&&('imageStylePreApply'==_0x59e598||'imageStylePostApply'==_0x59e598)){const _0x323c3c=_0x378b00['getSuggestion'](_0x2ec78f);if(_0x5b20b2['newRange']){const _0x135601=_0x323c3c['getFirstRange']()['getContainedElement']();if(_0x44fe20['isBlockImage'](_0x135601))continue;_0x378b00['discardSuggestion'](_0x323c3c),_0x3df304=!0x0;}}if('insertion'==_0x583ff7&&'imageCaption'==_0x59e598&&!_0x5b20b2['newRange']){const _0x59d2bb=_0x378b00['getSuggestion'](_0x2ec78f);_0x59d2bb['next']&&_0x59d2bb['next']['isInContent']&&(_0x378b00['discardSuggestion'](_0x59d2bb['next']),_0x3df304=!0x0);}}}return _0x3df304;}),this['_registerLegacyDescription'](_0x5530d9);}_registerLegacyDescription(_0x4eb685){const _0x23cfa0=this['editor'],_0x4e858e=_0x23cfa0['locale'];_0x23cfa0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b8de4=>{if('formatBlock'!=_0x1b8de4['type']&&'formatInline'!=_0x1b8de4['type'])return;const {data:_0x346b1d}=_0x1b8de4;if(!_0x346b1d||'imageStyle'!=_0x346b1d['commandName'])return;const _0x42ae7f=_0x346b1d['commandParams'][0x0]['value'];return _0x22df74('side'===_0x42ae7f?wt(_0x4e858e,'FORMAT_SIDE_IMAGE'):_0x4eb685[_0x42ae7f]||_0x42ae7f);function _0x22df74(_0xa00678){return{'type':'format','content':wt(_0x4e858e,'*Format:*\x20%0',_0xa00678)};}});}},Te=class extends _0x4ca415{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x8dd0e0){super(_0x8dd0e0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x3da0ab=this['editor'],_0x3275e7=_0x3da0ab['commands']['get']('importWord'),_0x19c717=_0x3da0ab['commands']['get']('trackChanges');_0x3275e7&&(_0x3275e7['on']('execute',(_0x2fd6bb,[,_0x4b3e5])=>{this['_trackChangesValueDuringImport']=_0x19c717['value'],_0x4b3e5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3275e7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3275e7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x19c717['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3da0ab['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x33502f,_0x35149c){const {suggestions:_0x5c58c4}=_0x35149c,_0x262009=this['editor']['commands']['get']('trackChanges'),_0x3c8263=_0x262009['value'];this['_trackChangesValueDuringImport']!==_0x3c8263&&(_0x262009['execute'](),this['_trackChangesExecuted']=!0x0),_0x5c58c4&&_0x5c58c4['forEach'](({id:_0x21bee0,type:_0x2ca290,author:_0x4f5d73,created_at:_0x32c7e1})=>{const _0x4bbd9e={'id':_0x21bee0,'type':_0x2ca290,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f5d73,'createdAt':_0x32c7e1?new Date(_0x32c7e1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4bbd9e);});}},_e=class extends _0x4ca415{afterInit(){const _0x4ee84d=this['editor'],_0x164ab3=_0x4ee84d['plugins']['get']('TrackChangesEditing');if(_0x4ee84d['plugins']['has']('IndentEditing')&&(_0x164ab3['enableCommand']('indent'),_0x164ab3['enableCommand']('outdent')),_0x4ee84d['plugins']['has']('IndentBlock')){for(const _0x1e597a of['indentBlock','outdentBlock'])_0x164ab3['enableDefaultAttributesIntegration'](_0x1e597a);if(_0x4ee84d['plugins']['has']('ListEditing')){for(const _0x2b3683 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x164ab3['enableDefaultAttributesIntegration'](_0x2b3683);}}const _0x44400e=_0x4ee84d['locale'];_0x164ab3['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x44400e,'FORMAT_INDENT')),_0x164ab3['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x44400e,'FORMAT_INDENT')),_0x164ab3['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x44400e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x495cca=this['editor'],_0x384cce=_0x495cca['locale'],_0x4196fd=_0x495cca['plugins']['get']('TrackChangesEditing');_0x4196fd['descriptionFactory']['registerDescriptionCallback'](_0x38849e=>{if('formatBlock'!=_0x38849e['type'])return;const {data:_0x38ff8e}=_0x38849e;if(!_0x38ff8e)return;if('indentBlock'!=_0x38ff8e['commandName']&&'outdentBlock'!=_0x38ff8e['commandName'])return;const _0x209477=_0x38849e['getItems']()[0x0],_0x1cbb09=_0x4196fd['descriptionFactory']['getItemLabel'](_0x209477);return'indentBlock'==_0x38ff8e['commandName']?{'type':'format','content':wt(_0x384cce,'*Indent:*\x20%0',_0x1cbb09)}:'outdentBlock'==_0x38ff8e['commandName']?{'type':'format','content':wt(_0x384cce,'*Outdent:*\x20%0',_0x1cbb09)}:void 0x0;});}},pe=class extends _0x4ca415{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x4ca415{afterInit(){const _0x5e474d=this['editor'];if(!_0x5e474d['plugins']['has']('LinkEditing'))return;const _0x769c71=_0x5e474d['plugins']['get']('TrackChangesEditing'),_0x7179e5=_0x5e474d['commands']['get']('link');_0x769c71['enableDefaultAttributesIntegration']('link'),_0x769c71['enableDefaultAttributesIntegration']('unlink');for(const _0x18b50e of _0x7179e5['manualDecorators'])_0x769c71['descriptionFactory']['registerAttributeLabel'](_0x18b50e['id'],'link\x20('+_0x18b50e['label']['toLowerCase']()+')');_0x769c71['descriptionFactory']['registerDescriptionCallback'](_0x529860=>{if('attribute'!=_0x529860['type'])return;const {data:_0x1ae15c}=_0x529860;if(!_0x1ae15c||'linkHref'!=_0x1ae15c['key'])return;const _0x2292c1=_0x1ae15c['newValue'],_0x4985d9=_0x5e474d['locale'];return{'type':'format','content':null==_0x2292c1?wt(_0x4985d9,'*Remove\x20link*'):wt(_0x4985d9,'*Set\x20link:*\x20%0','\x22'+_0x2292c1+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x560214=this['editor'],_0x2c6484=_0x560214['locale'];_0x560214['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4557a9=>{if('formatInline'!=_0x4557a9['type'])return;const {data:_0x272c49}=_0x4557a9;if(_0x272c49){if('link'==_0x272c49['commandName']){const _0xf96e39=_0x272c49['commandParams'][0x0];return{'type':'format','content':wt(_0x2c6484,'*Set\x20link:*\x20%0','\x22'+_0xf96e39+'\x22')};}return'unlink'==_0x272c49['commandName']?{'type':'format','content':wt(_0x2c6484,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x4ca415{afterInit(){const _0x2fc088=this['editor'],_0xc95d16=_0x2fc088['locale'];if(!_0x2fc088['plugins']['has']('LegacyListEditing'))return;const _0x98a8e5=_0x2fc088['plugins']['get']('TrackChangesEditing'),_0x1cf604=_0x2fc088['plugins']['has']('LegacyTodoListEditing');function _0x4547f6(_0x234e1d){return()=>{const _0x5a6cc3=_0x2fc088['model']['document']['selection'],_0x3a3426=_0x2fc088['commands']['get'](_0x234e1d);if(_0x3a3426['value'])return void _0x2fc088['execute']('paragraph',{});const _0x4af12b=_0x234e1d['slice'](0x0,-0x4),_0x20f0f9=function(_0x2db52f,_0x24f42c,_0x1c0cc4){let _0x211c2c=Array['from'](_0x2db52f)['filter'](_0x2bf82=>function(_0x2d7ea0,_0x19504b){return _0x19504b['checkChild'](_0x2d7ea0['parent'],'listItem')&&!_0x19504b['isObject'](_0x2d7ea0);}(_0x2bf82,_0x1c0cc4));_0x211c2c=_0x211c2c['filter'](_0x559d72=>!_0x559d72['is']('element','listItem')||_0x559d72['getAttribute']('listType')!=_0x24f42c);const _0x2e8fc1=new Set();for(const _0x446dda of _0x211c2c)_0x446dda['is']('element','listItem')?_0x2e8fc1['add'](Ae(_0x446dda)):_0x2e8fc1['add'](_0x446dda);return Array['from'](_0x2e8fc1);}(_0x5a6cc3['getSelectedBlocks'](),_0x4af12b,_0x2fc088['model']['schema']);_0x2fc088['model']['change'](()=>{for(const _0x27bacb of _0x20f0f9)_0x98a8e5['markBlockFormat'](_0x27bacb,{'commandName':_0x234e1d,'commandParams':[{'forceValue':!_0x3a3426['value']}],'formatGroupId':'blockName'},be(_0x27bacb));});};}function _0x3c75c4(_0x933ca1){return()=>{const _0x91a880=function(_0x4deffa){let _0x4c9b46=Array['from'](_0x4deffa);const _0x3f28a6=_0x4c9b46['findIndex'](_0x4a367d=>'listItem'!=_0x4a367d['name']);return _0x3f28a6>-0x1&&(_0x4c9b46=_0x4c9b46['slice'](0x0,_0x3f28a6)),_0x4c9b46;}(_0x2fc088['model']['document']['selection']['getSelectedBlocks']()),_0x3afa10=_0x2fc088['model']['createRange'](_0x2fc088['model']['createPositionAt'](_0x91a880[0x0],'before'),_0x2fc088['model']['createPositionAt'](_0x91a880[_0x91a880['length']-0x1],'end'));_0x2fc088['model']['change'](()=>{_0x98a8e5['markBlockFormat'](_0x3afa10,{'commandName':_0x933ca1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x30ed0f){const _0x126732=new Set();for(const _0x1b446f of _0x30ed0f){let _0x43d930=_0x1b446f['nextSibling'];for(;_0x43d930&&_0x43d930['getAttribute']('listIndent')>_0x1b446f['getAttribute']('listIndent');)_0x126732['add'](_0x43d930),_0x43d930=_0x43d930['nextSibling'];}return Array['from'](_0x126732);}(_0x91a880));});};}_0x98a8e5['enableCommand']('numberedList',_0x4547f6('numberedList')),_0x98a8e5['enableCommand']('bulletedList',_0x4547f6('bulletedList')),_0x1cf604&&_0x98a8e5['enableCommand']('todoList',_0x4547f6('todoList')),_0x98a8e5['enableCommand']('indentList',_0x3c75c4('indentList')),_0x98a8e5['enableCommand']('outdentList',_0x3c75c4('outdentList')),_0x1cf604&&_0x98a8e5['enableCommand']('checkTodoList',()=>{const _0x19ef05=_0x2fc088['commands']['get']('checkTodoList'),_0x37f724=Array['from'](_0x19ef05['_selectedElements']);_0x37f724['filter'](_0x7f9471=>_0x7f9471['getAttribute']('todoListChecked')!=_0x19ef05['value']),_0x2fc088['model']['change'](()=>{for(const _0x3417ac of _0x37f724)_0x98a8e5['markBlockFormat'](_0x3417ac,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19ef05['value']}]});});}),_0x98a8e5['descriptionFactory']['registerElementLabel']('listItem',_0x26598=>wt(_0xc95d16,'ELEMENT_LIST_ITEM',_0x26598)),_0x98a8e5['descriptionFactory']['registerDescriptionCallback'](_0x1acb25=>{if('formatBlock'!=_0x1acb25['type']&&'formatInline'!=_0x1acb25['type'])return;const {data:_0xfe59b2}=_0x1acb25;if(_0xfe59b2){if('numberedList'==_0xfe59b2['commandName']||'bulletedList'==_0xfe59b2['commandName']||'todoList'==_0xfe59b2['commandName'])switch(_0xfe59b2['commandName']['replace']('List','')){case'bulleted':return _0x32bb40(wt(_0xc95d16,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32bb40(wt(_0xc95d16,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32bb40(wt(_0xc95d16,'ELEMENT_TODO_LIST'));}if('indentList'==_0xfe59b2['commandName'])return{'type':'format','content':wt(_0xc95d16,'*Indent:*\x20%0',wt(_0xc95d16,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xfe59b2['commandName'])return{'type':'format','content':wt(_0xc95d16,'*Outdent:*\x20%0',wt(_0xc95d16,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xfe59b2['commandName'])return _0xfe59b2['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xc95d16,'*Check\x20item*')}:{'type':'format','content':wt(_0xc95d16,'*Uncheck\x20item*')};}function _0x32bb40(_0x258d54){return{'type':'format','content':wt(_0xc95d16,'*Change\x20to:*\x20%0',_0x258d54)};}});}};function Ae(_0xe34850){const _0x88a803=_0xe34850['getAttribute']('listIndent');if(0x0==_0x88a803)return _0xe34850;let _0x2e4c07=_0xe34850;for(;_0xe34850['previousSibling']&&_0xe34850['previousSibling']['is']('element','listItem');){const _0x452284=_0xe34850['previousSibling']['getAttribute']('listIndent');if(_0x452284==_0x88a803)_0x2e4c07=_0xe34850['previousSibling'];else{if(_0x452284<_0x88a803)break;}_0xe34850=_0xe34850['previousSibling'];}return _0x2e4c07;}function be(_0x2769d8){const _0xecef63=[];if(_0x2769d8['is']('element','listItem')&&_0x2769d8['getAttribute']('listIndent')>0x0){let _0x4296b2=_0x2769d8['nextSibling'];for(;_0x4296b2&&'listItem'==_0x4296b2['name']&&_0x4296b2['getAttribute']('listIndent')==_0x2769d8['getAttribute']('listIndent');)_0xecef63['push'](_0x4296b2),_0x4296b2=_0x4296b2['nextSibling'];}return _0xecef63;}var Ce=class extends _0x4ca415{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x11468f=this['editor']['config']['get']('list.properties'),_0x287960=this['editor']['plugins']['get']('TrackChangesEditing');_0x11468f['styles']&&_0x287960['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x11468f['reversed']&&_0x287960['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x11468f['startIndex']&&_0x287960['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x287960['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x4da66,_0x3bc84c={}){const _0x554c70=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b255e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x554c70['markMultiRangeBlockFormat'](_0x2b255e,{'commandName':'listStyle','commandParams':[{'type':_0x3bc84c['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x4de5df,_0x1cbd50={}){const _0x22cc02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x386468=this['_getSuggestionBlocks'](_0x62fd9f=>_0x62fd9f['is']('element','listItem')&&'numbered'===_0x62fd9f['getAttribute']('listType'));if(_0x386468['length']<0x1)return;const _0x37ae88=_0x386468['map'](_0x2da4bd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2da4bd,'before'),this['editor']['model']['createPositionAt'](_0x2da4bd,0x0)));this['editor']['model']['change'](()=>{_0x22cc02['markMultiRangeBlockFormat'](_0x37ae88,{'commandName':'listReversed','commandParams':[{'reversed':_0x1cbd50['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x256c0b,_0x1abf42={}){const _0xcf1f9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x422cf3=this['_getSuggestionBlocks'](_0x20c20e=>_0x20c20e['is']('element','listItem')&&'numbered'===_0x20c20e['getAttribute']('listType'));if(_0x422cf3['length']<0x1)return;const _0x3ebe50=_0x422cf3['map'](_0x3afa8c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3afa8c,'before'),this['editor']['model']['createPositionAt'](_0x3afa8c,0x0)));this['editor']['model']['change'](()=>{_0xcf1f9b['markMultiRangeBlockFormat'](_0x3ebe50,{'commandName':'listStart','commandParams':[{'startIndex':_0x1abf42['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x55612d){if('formatBlock'!=_0x55612d['type']&&'formatInline'!=_0x55612d['type'])return;const _0x21cc0a=this['editor']['locale'],{data:_0x565a00}=_0x55612d;if(!_0x565a00)return;let _0xd4e8df,_0x154e11;switch(_0x565a00['commandName']){case'listStyle':_0xd4e8df='*Change\x20to:*\x20%0',_0x154e11={'type':'format','content':wt(_0x21cc0a,_0xd4e8df,wt(_0x21cc0a,this['_getTranslationKeyForListStyle'](_0x565a00['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd4e8df=_0x565a00['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x154e11={'type':'format','content':wt(_0x21cc0a,_0xd4e8df)};break;case'listStart':_0xd4e8df='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x154e11={'type':'format','content':wt(_0x21cc0a,_0xd4e8df,_0x565a00['commandParams'][0x0]['startIndex'])};}return _0x154e11;}_getSuggestionBlocksForListStyle(){const _0x2633a5=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b28ed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3b28ed[0x0]?.['is']('element','listItem')&&_0x3b28ed['unshift'](..._0x2633a5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3b28ed[_0x3b28ed['length']-0x1]?.['is']('element','listItem')&&_0x3b28ed['push'](..._0x2633a5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3b28ed=[...new Set(_0x3b28ed)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3b28ed=_0x3b28ed['filter'](_0x24d4de=>_0x24d4de['is']('element','listItem'))),_0x3b28ed;}_getSuggestionBlocks(_0x171c5c){const _0x2e5a7b=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d8053=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x171c5c)['map'](_0x165e84=>{const _0x3ddd4f=this['editor']['model']['createPositionAt'](_0x165e84,0x0);return[..._0x2e5a7b['getSiblingNodes'](_0x3ddd4f,'backward'),..._0x2e5a7b['getSiblingNodes'](_0x3ddd4f,'forward')];})['flat']();return _0x1d8053=[...new Set(_0x1d8053)],_0x1d8053;}_getTranslationKeyForListStyle(_0x4242b6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4242b6)||'default')['toUpperCase']()+'_LIST_'+_0x4242b6['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x4ca415{afterInit(){const _0x261afe=this['editor'];if(!_0x261afe['plugins']['has']('MediaEmbedEditing'))return;const _0x2f6933=_0x261afe['plugins']['get']('TrackChangesEditing'),_0x1b9c1f=_0x261afe['locale'];_0x2f6933['enableCommand']('mediaEmbed'),_0x2f6933['descriptionFactory']['registerElementLabel']('media',_0x4ca8d6=>wt(_0x1b9c1f,'ELEMENT_MEDIA',_0x4ca8d6)),_0x261afe['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2f6933['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2f6933['descriptionFactory']['registerDescriptionCallback'](_0x4f0367=>{if('attribute'!=_0x4f0367['type'])return;const {data:_0x5e1059}=_0x4f0367;if(!_0x5e1059||'resizedWidth'!=_0x5e1059['key'])return;const _0x3a0c7c=_0x4f0367['getContainedElement']();if(!_0x3a0c7c||!_0x3a0c7c['is']('element','media'))return;const _0x5cdb2e=wt(_0x1b9c1f,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x1b9c1f,'*Set\x20format:*\x20%0',_0x5cdb2e)};}));}},Re=class extends _0x4ca415{afterInit(){const _0x647ed4=this['editor'];if(!_0x647ed4['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x4de3fc=_0x647ed4['plugins']['get']('TrackChangesEditing'),_0x353c04=_0x647ed4['locale'],_0x4bda8d=_0x647ed4['plugins']['get']('MediaEmbedStyleEditing'),_0x2eadd8={};for(const _0x14e3a8 of _0x4bda8d['normalizedStyles'])_0x2eadd8[_0x14e3a8['name']]=_0x14e3a8['title']['toLowerCase']();const _0x1b84b2=_0x4bda8d['normalizedStyles']['find'](_0x44b71d=>_0x44b71d['isDefault'])?.['name'];_0x4de3fc['enableCommand']('mediaStyle',(_0x5943f2,_0x3e9db8)=>{const _0x283932=_0x647ed4['plugins']['get']('Users')['me'],_0x99616f=_0x647ed4['commands']['get']('mediaStyle'),_0x59b825=function(_0x2e7483){const _0x5486f3=_0x2e7483['model']['document']['selection']['getSelectedElement']();return _0x5486f3&&_0x5486f3['is']('element','media')?_0x5486f3:null;}(_0x647ed4);if(!_0x59b825)return;const _0x5b36f6=_0x647ed4['model']['createRangeOn'](_0x59b825);let _0x1e98b4=_0x99616f['value'];if(_0x1e98b4==_0x3e9db8['value'])return;const _0x33ca22={'commandName':'mediaStyle','commandParams':[_0x3e9db8],'formatGroupId':_0x32d994()};_0x647ed4['model']['change'](()=>{_0x4de3fc['getSuggestions']()['filter'](_0x395a6a=>_0x395a6a['isInContent']&&_0x283932==_0x395a6a['author']&&'formatBlock'==_0x395a6a['type']&&'mediaStylePostApply'==_0x395a6a['subType']&&_0x395a6a['getFirstRange']()['isEqual'](_0x5b36f6))['forEach'](_0x27f1d9=>_0x4de3fc['discardSuggestion'](_0x27f1d9['head'])),_0x99616f['refresh'](),_0x1e98b4=_0x99616f['value'],_0x1e98b4!=_0x3e9db8['value']&&_0x4de3fc['markBlockFormat'](_0x59b825,{..._0x33ca22,'commandReversedParams':[{'value':'string'==typeof _0x1e98b4?_0x1e98b4:null}]},[],'mediaStylePostApply');});}),_0x4de3fc['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x4de3fc['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5ed89d,_0x30450f)=>{_0x4de3fc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5ed89d,{'commandName':_0x30450f['commandName'],'commandParams':_0x30450f['commandReversedParams']});}),_0x4de3fc['descriptionFactory']['registerDescriptionCallback'](_0x3a8f1e=>{if('formatBlock'!=_0x3a8f1e['type'])return;const {data:_0x13006f}=_0x3a8f1e;if(!_0x13006f||'mediaStyle'!=_0x13006f['commandName'])return;const _0x3393eb=_0x13006f['commandParams'][0x0]['value']||_0x1b84b2;if(!_0x3393eb)return;const _0x15ec1e=_0x2eadd8[_0x3393eb]||_0x3393eb;return{'type':'format','content':wt(_0x353c04,'*Format:*\x20%0',_0x15ec1e)};});}},Ne=class extends _0x4ca415{afterInit(){const _0x4914ba=this['editor'];_0x4914ba['plugins']['has']('MentionEditing')&&_0x4914ba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x4ca415{afterInit(){const _0x56a171=this['editor'];if(!_0x56a171['plugins']['has']('MergeFieldsEditing'))return;const _0x22fb88=_0x56a171['plugins']['get']('TrackChangesEditing'),_0x297793=_0x56a171['locale'];_0x22fb88['enableCommand']('insertMergeField'),_0x22fb88['enableCommand']('insertMergeFieldBlock'),_0x22fb88['enableCommand']('insertMergeFieldImage'),_0x22fb88['descriptionFactory']['registerElementLabel']('mergeField',_0x276412=>wt(_0x297793,'ELEMENT_MERGE_FIELD',_0x276412)),_0x22fb88['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x111199=>wt(_0x297793,'ELEMENT_MERGE_FIELD',_0x111199)),_0x22fb88['descriptionFactory']['registerDescriptionCallback'](_0x49126c=>{if('insertion'!=_0x49126c['type']&&'deletion'!=_0x49126c['type'])return;const _0x52c915=_0x49126c['getContainedElement']();if(null==_0x52c915)return;const _0x5e3850=_0x56a171['plugins']['get']('MergeFieldsEditing');let _0x3b0308;switch(_0x5e3850['getMergeFieldType'](_0x52c915)){case null:return;case'image':{const _0xd63832=_0x5e3850['unwrapAffixes'](_0x52c915['getAttribute']('src'));_0x3b0308=_0x5e3850['getLabel'](_0xd63832)||_0xd63832;break;}default:{const _0x36be4e=_0x52c915['getAttribute']('id');_0x3b0308=_0x5e3850['getLabel'](_0x36be4e)||_0x36be4e;break;}}return'insertion'==_0x49126c['type']?{'type':'insertion','content':wt(_0x297793,'*Insert:*\x20%0','\x22'+_0x3b0308+'\x22\x20'+wt(_0x297793,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x297793,'*Remove:*\x20%0','\x22'+_0x3b0308+'\x22\x20'+wt(_0x297793,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x4ca415{afterInit(){const _0x1c77f4=this['editor'],_0x475d07=_0x1c77f4['plugins']['get']('TrackChangesEditing');_0x1c77f4['plugins']['has']('MultiLevelList')&&(_0x475d07['enableDefaultAttributesIntegration']('multiLevelList'),_0x475d07['descriptionFactory']['registerDescriptionCallback'](_0x30906b=>this['handleDescriptions'](_0x30906b)));}handleDescriptions(_0x4b332a){const _0x328c83=this['editor']['locale'],{data:_0x2fe11f}=_0x4b332a,_0x53452b={'type':'format','content':''};if(_0x2fe11f&&'listMarkerStyle'==_0x2fe11f['key']){if(!_0x2fe11f['oldValue'])return{'type':'format','content':wt(_0x328c83,'*Set\x20format:*\x20%0',wt(_0x328c83,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fe11f['newValue']+')'};if(!_0x2fe11f['newValue']){let _0x7bd13=_0x4b332a['head'];for(;_0x7bd13;){if(_0x7bd13['data']&&'listType'==_0x7bd13['data']['key']&&_0x7bd13['data']['newValue'])return _0x53452b;_0x7bd13=_0x7bd13['next'];}return{'type':'format','content':wt(_0x328c83,'*Remove\x20format:*\x20%0',wt(_0x328c83,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fe11f['oldValue']+')'};}}}},Me=class extends _0x4ca415{afterInit(){const _0x160b53=this['editor'];if(!_0x160b53['plugins']['has']('PageBreakEditing'))return;_0x160b53['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x546a47=_0x160b53['plugins']['get']('TrackChangesEditing'),_0x2a4832=_0x160b53['locale'];_0x546a47['descriptionFactory']['registerElementLabel']('pageBreak',_0x4d1c53=>wt(_0x2a4832,'ELEMENT_PAGE_BREAK',_0x4d1c53));}},Oe=class extends _0x4ca415{afterInit(){const _0x5061ab=this['editor'];if(!_0x5061ab['plugins']['has']('Paragraph'))return;const _0x5c2222=_0x5061ab['locale'],_0x5c1c7c=_0x5061ab['plugins']['get']('TrackChangesEditing');_0x5c1c7c['descriptionFactory']['registerElementLabel']('paragraph',_0x3aa93d=>wt(_0x5c2222,'ELEMENT_PARAGRAPH',_0x3aa93d)),_0x5c1c7c['enableDefaultAttributesIntegration']('paragraph'),_0x5c1c7c['enableCommand']('insertParagraph');const _0x27d2bd=_0x5c1c7c['descriptionFactory'];_0x27d2bd['registerDescriptionCallback'](_0x14d758=>{if('insertion'!==_0x14d758['type'])return;const {start:_0x34bb37,end:_0x246e99}=_0x14d758['getFirstRange']();if(!_0x34bb37['isTouching'](_0x246e99)||!_0x34bb37['nodeAfter'])return;const _0x3a259f=_0x5061ab['model']['schema'],_0x30d7cb=_0x34bb37['nodeAfter'];return _0x3a259f['isBlock'](_0x30d7cb)&&!_0x3a259f['isLimit'](_0x30d7cb)&&_0x3a259f['checkChild'](_0x30d7cb,'$text')?{'type':'insertion','content':wt(_0x5c2222,'*Insert:*\x20%0',_0x27d2bd['getItemLabel'](_0x30d7cb,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1ccda1=this['editor'],_0x3c3ce6=_0x1ccda1['locale'];_0x1ccda1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158728=>{if('formatBlock'!=_0x158728['type'])return;const {data:_0x4dc55d}=_0x158728;return _0x4dc55d&&'paragraph'==_0x4dc55d['commandName']?{'type':'format','content':wt(_0x3c3ce6,'*Change\x20to:*\x20%0',wt(_0x3c3ce6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x4ca415{afterInit(){const _0x300129=this['editor'];_0x300129['commands']['get']('replaceSource')&&_0x300129['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x4ca415{afterInit(){const _0x274152=this['editor'];_0x274152['plugins']['has']('RemoveFormatEditing')&&(_0x274152['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5b2b87=this['editor'];_0x5b2b87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa2e2e3=>{if('formatBlock'!=_0xa2e2e3['type']&&'formatInline'!=_0xa2e2e3['type'])return;const {data:_0x4e99ee}=_0xa2e2e3;return _0x4e99ee&&'removeFormat'==_0x4e99ee['commandName']?{'type':'format','content':wt(_0x5b2b87['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x4ca415{afterInit(){const _0x2b637d=this['editor'];if(!_0x2b637d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x297418=_0x2b637d['plugins']['get']('TrackChangesEditing');_0x297418['enableCommand']('goToPreviousRestrictedEditingException'),_0x297418['enableCommand']('goToNextRestrictedEditingException');const _0x37ea97=_0x2b637d['plugins']['get']('RestrictedEditingModeEditing');_0x37ea97['enableCommand']('trackChanges'),_0x37ea97['enableCommand']('acceptSuggestion'),_0x37ea97['enableCommand']('discardSuggestion'),_0x37ea97['enableCommand']('acceptAllSuggestions'),_0x37ea97['enableCommand']('discardAllSuggestions'),_0x37ea97['enableCommand']('acceptSelectedSuggestions'),_0x37ea97['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x4ca415{afterInit(){const _0x4bb021=this['editor'];if(!_0x4bb021['plugins']['has']('ShiftEnter'))return;const _0x5c5537=_0x4bb021['plugins']['get']('TrackChangesEditing');_0x5c5537['enableCommand']('shiftEnter'),_0x5c5537['descriptionFactory']['registerElementLabel']('softBreak',_0x28495b=>wt(_0x4bb021['locale'],'ELEMENT_LINE_BREAK',_0x28495b));}};function De(_0x20ee37,_0x2efa43,_0x311ac3){const _0x2da8dd=[];for(const _0x26e903 of _0x2efa43['getItems']())_0x26e903['hasAttribute'](_0x20ee37)&&_0x2da8dd['push'](_0x311ac3['createRangeOn'](_0x26e903));return _0x2da8dd;}var Ue=class extends _0x4ca415{afterInit(){const _0x2a86e9=this['editor'],_0x22c8c3=_0x2a86e9['plugins']['get']('TrackChangesEditing');_0x2a86e9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x22c8c3['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x4a42f8=this['editor'],_0x37e351=_0x4a42f8['model'],_0x14db46=_0x4a42f8['locale'],_0x236c3f=_0x4a42f8['plugins']['get']('TrackChangesEditing'),_0x459b44='restrictedEditingException',_0x3bbf4e=_0x4a42f8['commands']['get'](_0x459b44);_0x236c3f['enableCommand'](_0x459b44,(_0x5df98a,_0x493c48={})=>{const _0x2cb55d=_0x37e351['document']['selection'];if(_0x2cb55d['isCollapsed'])return void _0x5df98a(_0x493c48);const _0x4480fc=void 0x0!==_0x493c48['forceValue']?_0x493c48['forceValue']:!_0x3bbf4e['value'];_0x37e351['change'](()=>{const _0x325684=Array['from'](_0x2cb55d['getRanges']());for(const _0x107f9f of _0x325684){const _0x85d429=_0x4480fc?[_0x107f9f]:De(_0x459b44,_0x107f9f,_0x37e351);for(const _0x811fc8 of _0x85d429)_0x236c3f['markInlineFormat'](_0x811fc8,{'commandName':_0x459b44,'commandParams':[{'forceValue':_0x4480fc}]});}});}),_0x236c3f['descriptionFactory']['registerDescriptionCallback'](_0x159947=>{if('formatBlock'!=_0x159947['type']&&'formatInline'!=_0x159947['type'])return;const {data:_0x586bdd}=_0x159947;return _0x586bdd&&_0x586bdd['commandName']==_0x459b44?_0x586bdd['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x14db46,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x14db46,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x4b3b94=this['editor'],_0x55426f=_0x4b3b94['locale'],_0xe2cf2b=_0x4b3b94['plugins']['get']('TrackChangesEditing'),_0x35055d='restrictedEditingExceptionBlock',_0x53a23e=this['editor']['commands']['get'](_0x35055d);_0xe2cf2b['enableCommand'](_0x35055d,(_0x25111e,_0x39a69a={})=>{const _0x284643=this['editor']['model']['document']['selection'],_0x3f39a6=_0x39a69a&&void 0x0!==_0x39a69a['forceValue']?_0x39a69a['forceValue']:!_0x53a23e['value'];let _0x21a92f=[];if(_0x3f39a6){const _0x316e3d=Array['from'](_0x284643['getSelectedBlocks']())['filter'](_0x4f17f5=>function(_0x20e3c7){return!!_0x20e3c7['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4f17f5)||function(_0x3050ea,_0x4d5b6f){const _0x3dd566=_0x4d5b6f['createContext'](_0x3050ea['parent']);return!!_0x4d5b6f['checkChild'](_0x3dd566,'restrictedEditingException')&&!!_0x4d5b6f['checkChild'](_0x3dd566['push']('restrictedEditingException'),_0x3050ea);}(_0x4f17f5,this['editor']['model']['schema']));_0x21a92f=kt(_0x316e3d,_0x4b3b94['model']);}else{const _0x144ff6=Array['from'](_0x284643['getSelectedBlocks']())['map'](_0x2aecff=>function(_0x57b779){let _0x4b7266=_0x57b779;for(;_0x4b7266['parent'];){if('restrictedEditingException'==_0x4b7266['parent']['name'])return _0x4b7266;_0x4b7266=_0x4b7266['parent'];}return null;}(_0x2aecff))['filter'](_0x88eee1=>!!_0x88eee1);_0x21a92f=kt(_0x144ff6,_0x4b3b94['model']);}_0x4b3b94['model']['change'](()=>{for(const _0x1ff468 of _0x21a92f)_0xe2cf2b['markBlockFormat'](_0x1ff468,{'commandName':_0x35055d,'commandParams':[{'forceValue':_0x3f39a6}]});});}),_0xe2cf2b['descriptionFactory']['registerDescriptionCallback'](_0x25cdcb=>{const {data:_0x503316}=_0x25cdcb;if(_0x503316&&_0x503316['commandName']==_0x35055d)return _0x503316['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x55426f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x55426f,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x4ca415{afterInit(){const _0x266dd6=this['editor'];_0x266dd6['plugins']['has']('Style')&&_0x266dd6['plugins']['has']('DataSchema')&&(_0x266dd6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x481f57=this['editor'],_0x142bab=_0x481f57['locale'];_0x481f57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25a541=>{if('formatBlock'!=_0x25a541['type']&&'formatInline'!=_0x25a541['type'])return;const {data:_0x4d07e0}=_0x25a541;return _0x4d07e0&&'style'===_0x4d07e0['commandName']?_0x4d07e0['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x142bab,'*Set\x20format:*\x20%0',_0x4d07e0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x142bab,'*Remove\x20format:*\x20%0',_0x4d07e0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x4ca415{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x50d142){super(_0x50d142),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x2f9f44=this['editor'],_0x1093d2=_0x2f9f44['model']['document']['selection'];if(!_0x2f9f44['plugins']['has']('TableEditing'))return;const _0x1c0350=_0x2f9f44['locale'],_0x9d8dd5=_0x2f9f44['plugins']['get']('TrackChangesEditing'),_0x27ae63=_0x2f9f44['plugins']['get']('TableUtils');_0x9d8dd5['descriptionFactory']['registerElementLabel']('table',_0xc85bc2=>wt(_0x1c0350,'ELEMENT_TABLE',_0xc85bc2)),this['_setupColumnsRowsFixing'](),_0x9d8dd5['enableCommand']('insertTable'),_0x9d8dd5['enableCommand']('selectTableRow'),_0x9d8dd5['enableCommand']('selectTableColumn');for(const _0x442a72 of['insertTableRowAbove','insertTableRowBelow']){const _0x27a436=_0x2f9f44['commands']['get'](_0x442a72);_0x9d8dd5['enableCommand'](_0x442a72,_0x31463c=>{_0x2f9f44['model']['change'](_0x213220=>{_0x31463c();const _0x2f2c0d='above'===_0x27a436['order'],_0xe695ce=_0x27ae63['getSelectionAffectedTableCells'](_0x1093d2),_0x51e26f=_0x27ae63['getRowIndexes'](_0xe695ce),_0x419f72=_0x2f2c0d?_0x51e26f['first']-0x1:_0x51e26f['last']+0x1,_0x5ce0dd=_0xe695ce[0x0]['findAncestor']('table'),_0x185ee0=_0x27ae63['createTableWalker'](_0x5ce0dd,{'startRow':_0x419f72,'endRow':_0x419f72}),_0x594c30=Array['from'](_0x185ee0)['map'](_0x95b035=>_0x213220['createRangeOn'](_0x95b035['cell']));_0x9d8dd5['markMultiRangeInsertion'](_0x594c30,'tableRow');});});}for(const _0x5f218b of['insertTableColumnLeft','insertTableColumnRight']){const _0x303848=_0x2f9f44['commands']['get'](_0x5f218b);_0x9d8dd5['enableCommand'](_0x5f218b,_0x4fa1db=>{_0x2f9f44['model']['change'](_0x394ee0=>{_0x4fa1db();const _0x1e89f2='left'===_0x303848['order'],_0x5cce40=_0x27ae63['getSelectionAffectedTableCells'](_0x1093d2),_0x427179=_0x27ae63['getColumnIndexes'](_0x5cce40),_0xf46749=_0x1e89f2?_0x427179['first']-0x1:_0x427179['last']+0x1,_0x3961d7=_0x5cce40[0x0]['findAncestor']('table'),_0x4c7916=_0x27ae63['createTableWalker'](_0x3961d7,{'startRow':0x0,'column':_0xf46749,'includeAllSlots':!0x1}),_0x27e1d9=Array['from'](_0x4c7916)['map'](_0x3c9445=>_0x394ee0['createRangeOn'](_0x3c9445['cell']));_0x9d8dd5['markMultiRangeInsertion'](_0x27e1d9,'tableColumn');});});}for(const _0x62d532 of['removeTableRow','removeTableColumn']){const _0x463018=_0x62d532['substr'](0xb),_0x2c389d=_0x463018['toLowerCase'](),_0x478db8=_0x2c389d['substr'](0x0,0x3)+'span',_0x5b59a7='table'+_0x463018,_0x1828a0='min'+_0x463018,_0x966c56='max'+_0x463018;_0x9d8dd5['enableCommand'](_0x62d532,()=>{_0x2f9f44['model']['change'](_0x4897fe=>{const _0xc75693=_0x27ae63['getSelectionAffectedTableCells'](_0x1093d2),_0x301ab2=_0xc75693[0x0]['findAncestor']('table');let _0x231c80;if('removeTableRow'==_0x62d532){const _0x5e00c7=_0x27ae63['getRowIndexes'](_0xc75693);_0x231c80={'startRow':_0x5e00c7['first'],'endRow':_0x5e00c7['last'],'includeAllSlots':!0x0};}else{const _0x14699=_0x27ae63['getColumnIndexes'](_0xc75693);_0x231c80={'startColumn':_0x14699['first'],'endColumn':_0x14699['last'],'includeAllSlots':!0x0};}const _0x2efb55=_0x27ae63['createTableWalker'](_0x301ab2,_0x231c80),_0x40ef47=Array['from'](_0x2efb55)['map'](({cell:_0x447aea})=>_0x447aea),_0x296d05=Ge(_0x40ef47['filter'](_0xcd68d=>_0xcd68d['hasAttribute'](_0x478db8))),_0xc182d=Ge(_0x40ef47['filter'](_0x4d581b=>!_0x4d581b['hasAttribute'](_0x478db8)))['map'](_0x48fbd0=>_0x4897fe['createRangeOn'](_0x48fbd0)),_0x18cf78=_0x9d8dd5['markMultiRangeDeletion'](_0xc182d,_0x5b59a7);if(_0x18cf78&&('tableRow'==_0x18cf78['subType']||'tableColumn'==_0x18cf78['subType'])){const _0x2a875e=this['_getSuggestionCoords'](_0x18cf78);for(const _0x243d44 of _0x296d05){const _0x366648=_0x4897fe['createRangeOn'](_0x243d44),_0x2cff24=_0x27ae63['getCellLocation'](_0x243d44),_0x8eb09e=_0x243d44['getAttribute'](_0x478db8)-0x1,_0x8435b1=_0x2a875e[_0x1828a0],_0x1279a1=_0x2a875e[_0x966c56];_0x8435b1<=_0x2cff24[_0x2c389d]&&_0x2cff24[_0x2c389d]+_0x8eb09e<=_0x1279a1&&_0x18cf78['addRange'](_0x366648);}}});});}function _0x3e2bdc(_0x1d31c6){const _0x248ba6=Array['from'](_0x1093d2['getRanges']())['map'](_0x16b698=>at['fromRange'](_0x16b698));_0x2f9f44['model']['change'](_0x2b733=>{const _0x400b7c=_0x2b733['batch'];_0x1d31c6=_0x1d31c6['filter'](_0x412995=>'$graveyard'!=_0x412995['root']['rootName']),_0x2b733['setSelection'](_0x1d31c6),_0x2f9f44['commands']['get']('removeTableRow')['refresh'](),_0x2f9f44['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2f9f44['model']['enqueueChange'](()=>{_0x2f9f44['model']['enqueueChange'](_0x400b7c,_0x3a75eb=>{const _0x4c0e98=_0x248ba6['filter'](_0x11f333=>'$graveyard'!=_0x11f333['root']['rootName']);_0x4c0e98['length']>0x0&&_0x3a75eb['setSelection'](_0x4c0e98);for(const _0x3be07e of _0x248ba6)_0x3be07e['detach']();});});});}function _0x62bdb7(_0x18aea7){_0x2f9f44['model']['change'](_0x5be38a=>{const _0x1b059d=Array['from'](_0x1093d2['getRanges']())['map'](_0x19fbd0=>at['fromRange'](_0x19fbd0)),_0xbf48eb=[];for(const _0x2c03b5 of _0x18aea7)for(const _0x4eae3a of _0x2c03b5['getItems']({'shallow':!0x0}))_0xbf48eb['push'](_0x4eae3a);for(const _0x4a2617 of _0xbf48eb)'$graveyard'!=_0x4a2617['root']['rootName']&&(_0x5be38a['setSelection'](_0x5be38a['createPositionAt'](_0x4a2617,0x0)),_0x2f9f44['commands']['get']('removeTableColumn')['refresh'](),_0x2f9f44['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x11d157=_0x1b059d['filter'](_0x3502b0=>'$graveyard'!=_0x3502b0['root']['rootName']);_0x11d157['length']>0x0&&_0x5be38a['setSelection'](_0x11d157);for(const _0x5add57 of _0x1b059d)_0x5add57['detach']();});}function _0x3d601d(_0x5cbdc6,_0x4bf297){return _0x4bf297['every'](_0x462a0c=>_0x5cbdc6['some'](_0x1b28f2=>_0x1b28f2['end']['isEqual'](_0x462a0c['start'])||_0x462a0c['end']['isEqual'](_0x1b28f2['start'])));}function _0x52e637(_0x1f4ccb,_0x2040f7){return!_0x1f4ccb['some'](_0x44ce63=>_0x2040f7['some'](_0x1da2a3=>_0x44ce63['isIntersecting'](_0x1da2a3)))&&_0x1f4ccb['some'](_0x2feb6b=>_0x2040f7['some'](_0x58c8e9=>_0x2feb6b['end']['isTouching'](_0x58c8e9['start'])));}_0x9d8dd5['descriptionFactory']['registerDescriptionCallback'](_0x5dd576=>{if('insertion'!=_0x5dd576['type']&&'deletion'!=_0x5dd576['type'])return;const _0x1c6804=_0x5dd576['getContainedElement']();if(null!=_0x1c6804&&_0x1c6804['is']('element','table')){if('insertion'==_0x5dd576['type']){const _0x6271be=_0x5dd576['getItems']()['filter'](_0x540639=>_0x540639['is']('$textProxy'))['map'](_0x3492c8=>_0x3492c8['data']);if(_0x6271be['length'])return{'type':'insertion','content':wt(_0x1c0350,'*Insert:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x6271be['join']('\x20')+'\x22'))};}if('deletion'==_0x5dd576['type']){const _0x1d169d=_0x5dd576['getItems']()['filter'](_0x3086f3=>_0x3086f3['is']('$textProxy'))['map'](_0x2dca07=>_0x2dca07['data']);if(_0x1d169d['length'])return{'type':'deletion','content':wt(_0x1c0350,'*Remove:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d169d['join']('\x20')+'\x22'))};}}}),_0x9d8dd5['descriptionFactory']['registerDescriptionCallback'](_0x114591=>{if('tableRow'==_0x114591['subType']){const _0x5d8469=_0x114591['getItems']()['filter'](_0x1543d5=>_0x1543d5['is']('$textProxy'))['map'](_0x4f4a40=>_0x4f4a40['data']),_0x436df1=this['_getSuggestionCoords'](_0x114591),_0xc1d7f4=_0x436df1['maxRow']-_0x436df1['minRow']+0x1;if('insertion'==_0x114591['type'])return _0x5d8469['length']?{'type':'insertion','content':wt(_0x1c0350,'*Insert:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc1d7f4,'\x22'+_0x5d8469['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x1c0350,'*Insert:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_ROW',_0xc1d7f4))};if('deletion'==_0x114591['type'])return _0x5d8469['length']?{'type':'deletion','content':wt(_0x1c0350,'*Remove:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc1d7f4,'\x22'+_0x5d8469['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x1c0350,'*Remove:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_ROW',_0xc1d7f4))};}if('tableColumn'==_0x114591['subType']){const _0x3f7348=_0x114591['getItems']()['filter'](_0x20b0ab=>_0x20b0ab['is']('$textProxy'))['map'](_0x538793=>_0x538793['data']),_0x4688c1=this['_getSuggestionCoords'](_0x114591),_0x55b4e0=_0x4688c1['maxColumn']-_0x4688c1['minColumn']+0x1;if('insertion'==_0x114591['type'])return _0x3f7348['length']?{'type':'insertion','content':wt(_0x1c0350,'*Insert:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x55b4e0,'\x22'+_0x3f7348['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x1c0350,'*Insert:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_COLUMN',_0x55b4e0))};if('deletion'==_0x114591['type'])return _0x3f7348['length']?{'type':'deletion','content':wt(_0x1c0350,'*Remove:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x55b4e0,'\x22'+_0x3f7348['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x1c0350,'*Remove:*\x20%0',wt(_0x1c0350,'ELEMENT_TABLE_COLUMN',_0x55b4e0))};}}),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3e2bdc),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3e2bdc),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x62bdb7),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x62bdb7),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d601d),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d601d),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x52e637),_0x9d8dd5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x52e637);}_acceptFormatSuggestionCallbackFactory(){const _0x1429c6=this['editor'],_0x317ea7=_0x1429c6['model']['document']['selection'];return(_0x53252d,_0x3af7b5)=>{_0x1429c6['model']['change'](_0x3d348b=>{const {commandName:_0x314196,commandParams:_0x43c560}=_0x3af7b5;let _0x2793e5=_0x53252d[0x0]['end']['nodeBefore'];_0x43c560&&_0x43c560[0x0]&&!0x1===_0x43c560[0x0]['forceValue']&&(_0x2793e5=_0x53252d[0x0]['start']['nodeAfter']);const _0x4bfb7d=_0x3d348b['createRangeIn'](_0x2793e5);if('$graveyard'==_0x4bfb7d['root']['rootName'])return;const _0x3c2157=Array['from'](_0x317ea7['getRanges']())['map'](_0x494cb9=>at['fromRange'](_0x494cb9));_0x3d348b['setSelection'](_0x4bfb7d),_0x1429c6['commands']['get'](_0x314196)['refresh'](),_0x43c560['push']({'forceDefaultExecution':!0x0}),_0x1429c6['execute'](_0x314196,..._0x43c560);const _0x5d69bd=_0x3c2157['filter'](_0x2fd300=>'$graveyard'!=_0x2fd300['root']['rootName']);_0x5d69bd['length']>0x0&&_0x3d348b['setSelection'](_0x5d69bd);for(const _0xde91ff of _0x3c2157)_0xde91ff['detach']();});};}_getCoordsForCells(_0x15ddc1){const _0x117a3d=this['editor']['plugins']['get']('TableUtils');let _0x1c18a7=Number['MAX_SAFE_INTEGER'],_0x5257b3=Number['MIN_SAFE_INTEGER'],_0x136ae1=Number['MAX_SAFE_INTEGER'],_0x10b860=Number['MIN_SAFE_INTEGER'];for(const _0x40a8cb of _0x15ddc1){if('$graveyard'==_0x40a8cb['root']['rootName'])continue;const {row:_0x3e389c,column:_0x34f991}=_0x117a3d['getCellLocation'](_0x40a8cb),_0x2c9597=_0x40a8cb['hasAttribute']('rowspan')?_0x40a8cb['getAttribute']('rowspan')-0x1:0x0,_0x18b9aa=_0x40a8cb['hasAttribute']('colspan')?_0x40a8cb['getAttribute']('colspan')-0x1:0x0;_0x1c18a7=_0x3e389c<_0x1c18a7?_0x3e389c:_0x1c18a7,_0x5257b3=_0x3e389c+_0x2c9597>_0x5257b3?_0x3e389c+_0x2c9597:_0x5257b3,_0x136ae1=_0x34f991<_0x136ae1?_0x34f991:_0x136ae1,_0x10b860=_0x34f991+_0x18b9aa>_0x10b860?_0x34f991+_0x18b9aa:_0x10b860;}return{'minRow':_0x1c18a7,'maxRow':_0x5257b3,'minColumn':_0x136ae1,'maxColumn':_0x10b860};}_setupColumnsRowsFixing(){const _0x19ff80=this['editor'],_0x21123d=_0x19ff80['plugins']['get']('TrackChangesEditing'),_0x56595d=_0x19ff80['plugins']['get']('TableUtils');_0x19ff80['model']['document']['on']('change:data',()=>{const _0x25a3cc=Array['from'](_0x19ff80['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7e5fae,data:_0x90257f}of _0x25a3cc){const {group:_0x3dd5f9,id:_0x52465c,subType:_0x23be56}=nt(_0x7e5fae);if('suggestion'!=_0x3dd5f9)continue;if(null!=_0x90257f['oldRange'])continue;const _0x1a9dd5=_0x21123d['getSuggestion'](_0x52465c);this['_tablePostFixingSubtypes']['includes'](_0x23be56)&&this['_tableSuggestions']['add'](_0x1a9dd5);}},{'priority':'low'});const _0x317378=(_0x261409,_0x414b03)=>{let _0x331ab3=!0x1;const _0x1905d7=_0x414b03['createRangeOn'](_0x261409),_0x45aff8=_0x261409['findAncestor']('table'),_0xa71bb0=_0x56595d['getCellLocation'](_0x261409);for(const _0x3ed8ab of this['_tableSuggestions']){const _0x5b6e50=_0x3ed8ab['subType'],_0x1cd7d1=_0x5b6e50['startsWith']('tablePaste'),_0x9b630a=_0x5b6e50['substr'](_0x1cd7d1?0xa:0x5),_0x58b658=_0x9b630a['toLowerCase'](),_0x4bb858=_0x58b658['substr'](0x0,0x3)+'span',_0x46bf22='min'+_0x9b630a,_0x426472='max'+_0x9b630a;if(!_0x3ed8ab['isInContent'])continue;if(_0x45aff8!=_0x3ed8ab['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3ed8ab['isIntersectingWithRange'](_0x1905d7))continue;const _0x3f7acc=_0x261409['hasAttribute'](_0x4bb858)?_0x261409['getAttribute'](_0x4bb858)-0x1:0x0,_0xbfaf1d=this['_getSuggestionCoords'](_0x3ed8ab),_0x56c037=_0xbfaf1d[_0x46bf22],_0x25fd7=_0xbfaf1d[_0x426472];_0x56c037<=_0xa71bb0[_0x58b658]&&_0xa71bb0[_0x58b658]+_0x3f7acc<=_0x25fd7&&(_0x3ed8ab['addRange'](_0x1905d7),_0x331ab3=!0x0);}return _0x331ab3;};_0x19ff80['model']['document']['registerPostFixer'](_0x3f94be=>{let _0x184fa5=!0x1;for(const _0xa2d3fa of _0x19ff80['model']['document']['differ']['getChanges']())if('insert'==_0xa2d3fa['type']){if('tableRow'==_0xa2d3fa['name']){for(const _0x4e8160 of _0xa2d3fa['position']['nodeAfter']['getChildren']())_0x184fa5=_0x184fa5||_0x317378(_0x4e8160,_0x3f94be);}else'tableCell'==_0xa2d3fa['name']&&(_0x184fa5=_0x184fa5||_0x317378(_0xa2d3fa['position']['nodeAfter'],_0x3f94be));}return _0x184fa5;});}_getSuggestionCoords(_0x149174){return this['_getCoordsForCells'](_0x149174['getRanges']()['map'](_0x36241c=>_0x36241c['start']['nodeAfter']));}};function Ge(_0x2b5096){return Array['from'](new Set(_0x2b5096)['values']());}var He=class extends _0x4ca415{static get requires(){return[xe];}afterInit(){const _0x3d347b=this['editor'],_0x4797e6=_0x3d347b['model']['document']['selection'],_0xdba733=_0x3d347b['locale'];if(!_0x3d347b['plugins']['has']('TableEditing'))return;const _0x4df6e8=_0x3d347b['plugins']['get']('TrackChangesEditing'),_0x41a627=_0x3d347b['plugins']['get']('TableUtils'),_0x21394f=_0x3d347b['plugins']['get'](xe);_0x21394f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4df6e8['enableCommand']('mergeTableCells',()=>{const _0x30938b=_0x41a627['getSelectionAffectedTableCells'](_0x3d347b['model']['document']['selection']);_0x3d347b['model']['change'](()=>{_0x4df6e8['markMultiRangeBlockFormat'](_0x30938b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3d347b['commands']['get']('mergeTableCells')['on']('execute',(_0x410f87,_0x1ef4eb)=>{_0x3d347b['commands']['get']('trackChanges')['value']&&(_0x1ef4eb['length']>0x0&&_0x1ef4eb[_0x1ef4eb['length']-0x1]&&_0x1ef4eb[_0x1ef4eb['length']-0x1]['forceDefaultExecution']||_0x4df6e8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x410f87['stop']());},{'priority':'highest'});for(const _0x1f37b6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17386c=_0x3d347b['commands']['get'](_0x1f37b6);_0x4df6e8['enableCommand'](_0x1f37b6,()=>{const _0x3b1457=_0x3d347b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xa51777=>_0xa51777['is']('element','tableCell')),_0x1ac938=_0x17386c['value'];_0x3d347b['model']['change'](()=>{_0x4df6e8['markMultiRangeBlockFormat']([_0x3b1457,_0x1ac938],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41e2c5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x55b81c=_0x3d347b['commands']['get'](_0x41e2c5);_0x4df6e8['enableCommand'](_0x41e2c5,()=>{const _0x38ce3d=_0x41a627['getSelectionAffectedTableCells'](_0x3d347b['model']['document']['selection']),_0x29e5c9=_0x38ce3d[0x0]['findAncestor']('table'),_0x4a9e46=new Set();for(const _0x3ffa62 of _0x38ce3d){const {column:_0x960d49,row:_0x3a7cbb}=_0x41a627['getCellLocation'](_0x3ffa62),_0x2d2c80='horizontally'==_0x55b81c['direction']?_0x41a627['createTableWalker'](_0x29e5c9,{'startRow':_0x3a7cbb,'endRow':_0x3a7cbb,'includeAllSlots':!0x0}):_0x41a627['createTableWalker'](_0x29e5c9,{'column':_0x960d49,'includeAllSlots':!0x0});for(const {cell:_0xd93e5f}of _0x2d2c80)_0x4a9e46['add'](_0xd93e5f);}_0x3d347b['model']['change'](()=>{_0x4df6e8['markMultiRangeBlockFormat'](_0x38ce3d,{'commandName':_0x41e2c5,'commandParams':[]},Array['from'](_0x4a9e46),_0x41e2c5);});});}_0x4df6e8['descriptionFactory']['registerDescriptionCallback'](_0x3355a5=>{if('formatBlock'!=_0x3355a5['type']&&'formatInline'!=_0x3355a5['type'])return;const {data:_0x8c12ca}=_0x3355a5;return _0x8c12ca&&'mergeTableCells'==_0x8c12ca['commandName']?{'type':'format','content':wt(_0xdba733,'*Merge\x20cells*')}:void 0x0;}),_0x4df6e8['descriptionFactory']['registerDescriptionCallback'](_0x258d0d=>{if('formatBlock'!=_0x258d0d['type']&&'formatInline'!=_0x258d0d['type'])return;const {data:_0x19078f}=_0x258d0d;return _0x19078f?'splitTableCellVertically'==_0x19078f['commandName']?{'type':'format','content':wt(_0xdba733,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x19078f['commandName']?{'type':'format','content':wt(_0xdba733,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x257258=_0x21394f['_acceptFormatSuggestionCallbackFactory']();for(const _0x13ec1d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4df6e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13ec1d,'accept',_0x257258);for(const _0xe59fce of['splitTableCellVertically','splitTableCellHorizontally'])_0x4df6e8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe59fce,'accept',_0x2a2261=>{_0x3d347b['model']['change'](_0x1a5279=>{const _0xe2f1d3=Array['from'](_0x2a2261)['filter'](_0x1ceb10=>'$graveyard'!=_0x1ceb10['root']['rootName']&&!!_0x1ceb10['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0xe2f1d3['length'])return;const _0x4a69e0=Array['from'](_0x4797e6['getRanges']())['map'](_0x4ceb0e=>at['fromRange'](_0x4ceb0e));_0x1a5279['setSelection'](_0xe2f1d3),_0x3d347b['commands']['get'](_0xe59fce)['refresh'](),_0x3d347b['execute'](_0xe59fce,{'forceDefaultExecution':!0x0});const _0x4de614=_0x4a69e0['filter'](_0x4790d4=>'$graveyard'!=_0x4790d4['root']['rootName']);_0x4de614['length']>0x0&&_0x1a5279['setSelection'](_0x4de614);for(const _0x4e5f9b of _0x4a69e0)_0x4e5f9b['detach']();});});_0x4df6e8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3436ec=>{_0x3d347b['model']['change'](_0x2dc95c=>{const _0xaf2fd7=Array['from'](_0x4797e6['getRanges']())['map'](_0xdb7a=>at['fromRange'](_0xdb7a));_0x2dc95c['setSelection'](_0x3436ec),_0x3d347b['commands']['get']('mergeTableCells')['refresh'](),_0x3d347b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2cc114=_0xaf2fd7['filter'](_0xbc2684=>'$graveyard'!=_0xbc2684['root']['rootName']);_0x2cc114['length']>0x0&&_0x2dc95c['setSelection'](_0x2cc114);for(const _0x90940d of _0xaf2fd7)_0x90940d['detach']();});});for(const _0x499e78 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xca0900=_0x3d347b['commands']['get'](_0x499e78);_0xca0900['on']('set:isEnabled',(_0x42686a,_0x14bb1b,_0x29218d)=>{if(_0x29218d){const _0x5e22dc=_0x3d347b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a7370=>_0x1a7370['is']('element','tableCell'));this['_areMergableCells'](_0xca0900['value'],_0x5e22dc)||(_0x42686a['return']=!0x1,_0x42686a['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x41978d=this['editor']['commands']['get']('mergeTableCells'),_0x1cf593=this['editor']['plugins']['get']('TableUtils');if(!_0x41978d['isEnabled'])return!0x1;const _0x12a17c=_0x1cf593['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x13385c of _0x12a17c)for(const _0x3a37a7 of _0x12a17c)if(_0x13385c!=_0x3a37a7&&!this['_areMergableCells'](_0x13385c,_0x3a37a7))return!0x1;return!0x0;}['_areMergableCells'](_0xb71b6a,_0x1af090){const _0x456b08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ac90b=this['editor']['model']['createRangeOn'](_0xb71b6a),_0x323f9b=this['editor']['model']['createRangeOn'](_0x1af090),_0x85cea3=new Set(),_0x1dbb4c=new Set();for(const _0x32fbec of _0x456b08['getSuggestions']())if(('insertion'==_0x32fbec['type']||'deletion'==_0x32fbec['type']||'mergeTableCells'==_0x32fbec['subType'])&&_0x32fbec['isInContent']){for(const _0xb607d2 of _0x32fbec['getRanges']())_0xb607d2['containsRange'](_0x4ac90b,!0x0)&&_0x85cea3['add'](_0x32fbec['type']+':'+_0x32fbec['author']['id']),_0xb607d2['containsRange'](_0x323f9b,!0x0)&&_0x1dbb4c['add'](_0x32fbec['type']+':'+_0x32fbec['author']['id']);}if(_0x85cea3['size']!=_0x1dbb4c['size'])return!0x1;for(const _0x325adc of _0x85cea3)if(!_0x1dbb4c['has'](_0x325adc))return!0x1;return!0x0;}},$e=class extends _0x4ca415{static get requires(){return[xe];}afterInit(){const _0x236761=this['editor'];if(!_0x236761['plugins']['has']('TableEditing'))return;const _0xc906cd=_0x236761['locale'],_0x12007f=_0x236761['plugins']['get']('TrackChangesEditing');_0x12007f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12007f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12007f['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0xc906cd,'FORMAT_HEADER_ROW')),_0x12007f['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0xc906cd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x2c40ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44da72=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x2c40ce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x44da72),_0x2c40ce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x44da72),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x809249=this['editor']['plugins']['get']('TrackChangesEditing'),_0x424d7d=this['editor']['plugins']['get']('TableUtils');function _0x38c9b1({showActiveMarker:_0x2b19b4=!0x0,setDataAttribute:_0x3a0edf=!0x0}={}){return(_0x1e6c1a,_0xf77090,_0xb9ad9)=>{const {type:_0x4323bc,id:_0x4de9f2}=nt(_0xf77090['markerName']);if(!_0x809249['hasSuggestion'](_0x4de9f2))return;const _0x3da608=_0x809249['getSuggestion'](_0x4de9f2),_0x27fca9=_0x3da608['data'];if('formatBlock'!=_0x3da608['type']||!_0x27fca9||'setTableColumnHeader'!=_0x27fca9['commandName'])return;if(_0xf77090['item'])return void _0x1e6c1a['stop']();if(!_0xb9ad9['consumable']['consume'](_0xf77090['markerRange'],_0x1e6c1a['name']))return;const _0x2fe49a=_0xf77090['markerRange']['start']['nodeAfter'],_0x3943e1=_0xf77090['markerRange']['end']['nodeBefore'],_0x2f8dcf=_0x2fe49a['parent']['parent'],{column:_0xf2747}=_0x424d7d['getCellLocation'](_0x2fe49a),{column:_0x320cf1}=_0x424d7d['getCellLocation'](_0x3943e1);for(let _0x583f05=_0xf2747;_0x583f05<=_0x320cf1;_0x583f05++){const _0x24b7f0=_0x424d7d['createTableWalker'](_0x2f8dcf,{'column':_0x583f05,'includeAllSlots':!0x1});for(const _0x2abcec of _0x24b7f0){const _0x4c3cc4=_0x2abcec['cell'],_0x4d1296=_0xb9ad9['mapper']['toViewElement'](_0x4c3cc4);_0xb9ad9['writer']['addClass']('ck-suggestion-marker-'+_0x4323bc,_0x4d1296),_0x3a0edf&&_0xb9ad9['writer']['setAttribute']('data-suggestion',_0x4de9f2,_0x4d1296),_0xb9ad9['mapper']['bindElementToMarker'](_0x4d1296,_0xf77090['markerName']),_0x2b19b4&&(_0x809249['activeMarkers']['includes'](_0xf77090['markerName'])?_0xb9ad9['writer']['addClass']('ck-suggestion-marker--active',_0x4d1296):_0xb9ad9['writer']['removeClass']('ck-suggestion-marker--active',_0x4d1296));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38c9b1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ec5e1,_0x438890,_0x1b0f18)=>{_0x1b0f18['options']['showSuggestionHighlights']&&_0x38c9b1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ec5e1,_0x438890,_0x1b0f18);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ce660,_0x394492,_0x51daef)=>{const {type:_0x893ad5,id:_0x38611f}=nt(_0x394492['markerName']);if(!_0x809249['hasSuggestion'](_0x38611f))return;const _0x418d7f=_0x809249['getSuggestion'](_0x38611f),_0x17df8e=_0x418d7f['data'];if('formatBlock'!=_0x418d7f['type']||!_0x17df8e||'setTableColumnHeader'!=_0x17df8e['commandName'])return;const _0x27acb5=_0x51daef['mapper']['markerNameToElements'](_0x394492['markerName']);if(_0x27acb5){for(const _0x346485 of _0x27acb5)_0x51daef['writer']['removeClass']('ck-suggestion-marker-'+_0x893ad5,_0x346485),_0x51daef['writer']['removeClass']('ck-suggestion-marker--active',_0x346485),_0x51daef['writer']['removeAttribute']('data-suggestion',_0x346485),_0x51daef['mapper']['unbindElementFromMarkerName'](_0x346485,_0x394492['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x241a57=this['editor'],_0x111051=_0x241a57['locale'];function _0x47ee95(_0x3dcc37){return{'type':'format','content':wt(_0x111051,'*Format:*\x20%0',_0x3dcc37)};}_0x241a57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1253bf=>{if('formatBlock'!=_0x1253bf['type'])return;const {data:_0xab90fd}=_0x1253bf;return _0xab90fd?'setTableRowHeader'==_0xab90fd['commandName']?_0xab90fd['commandParams'][0x0]['forceValue']?_0x47ee95(wt(_0x111051,'FORMAT_HEADER_ROW')):_0x47ee95(wt(_0x111051,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0xab90fd['commandName']?_0xab90fd['commandParams'][0x0]['forceValue']?_0x47ee95(wt(_0x111051,'FORMAT_HEADER_COLUMN')):_0x47ee95(wt(_0x111051,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x4ca415{static get requires(){return[xe];}afterInit(){const _0x123b5e=this['editor'];if(!_0x123b5e['plugins']['has']('TableEditing')||!_0x123b5e['config']['get']('table.enableFooters'))return;const _0x232f44=_0x123b5e['locale'],_0x19b0b9=_0x123b5e['plugins']['get']('TrackChangesEditing');_0x19b0b9['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x19b0b9['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x232f44,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x4ca415{afterInit(){const _0x62852e=this['editor'],_0x3657fd=_0x62852e['locale'],_0x38357b=_0x62852e['plugins']['get']('TrackChangesEditing');function _0x2f89a0(_0x3641db){return{'type':'format','content':''+wt(_0x3657fd,'*Set\x20table\x20type:*\x20%0',_0x3641db)};}_0x62852e['plugins']['has']('TableLayout')&&(_0x38357b['enableCommand']('insertTableLayout'),_0x38357b['enableDefaultAttributesIntegration']('tableType'),_0x38357b['descriptionFactory']['registerElementLabel'](_0x22abc5=>_0x22abc5['is']('element','table')&&'layout'===_0x22abc5['getAttribute']('tableType'),_0x33b804=>wt(_0x3657fd,'ELEMENT_LAYOUT_TABLE',_0x33b804)),_0x38357b['descriptionFactory']['registerDescriptionCallback'](_0x22c0b1=>{const {data:_0x147d37}=_0x22c0b1;if(_0x147d37&&'tableType'==_0x147d37['key'])switch(_0x147d37['newValue']){case'layout':return _0x2f89a0(wt(_0x3657fd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2f89a0(wt(_0x3657fd,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](ze['map'](_0x413dbf=>[_0x413dbf,null]));var Ke=class extends _0x4ca415{static get requires(){return[xe];}afterInit(){const _0x496075=this['editor'];if(!_0x496075['plugins']['has']('TableClipboard'))return;const _0x383ca4=_0x496075['plugins']['get']('TrackChangesEditing'),_0x1b97df=_0x496075['plugins']['get']('TableUtils'),_0x5d780e=_0x496075['plugins']['get'](xe),_0xd9cf57=_0x496075['plugins']['get']('TableClipboard'),_0x52ce2b=_0x496075['plugins']['get']('TableSelection'),_0x18cee9=_0x496075['plugins']['get'](mt);_0x5d780e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x496075['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x496075['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a0edd=null,_0x117447=!0x1;_0x18cee9['on']('contentInsertion',(_0x156a66,_0x411263)=>{_0x117447='paste'===_0x411263['method'];}),_0x496075['model']['on']('insertContent',(_0x11608a,_0x5bf8c4)=>{if(!_0x117447&&null===_0x52ce2b['getSelectedTableCells']())return;const [_0x2dc44f,_0x37ec1d]=_0x5bf8c4,_0x601bd0=_0x5bf8c4[_0x5bf8c4['length']-0x1];_0x601bd0&&_0x601bd0['forceDefaultExecution']||_0x383ca4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3d8751,_0x6a66e5,_0x49d01e,_0x26af72,_0x41582a){if(_0x6a66e5&&!_0x6a66e5['is']('documentSelection'))return!0x1;const _0x14a1d9=_0x41582a['getTableIfOnlyTableInContent'](_0x3d8751,_0x49d01e);if(!_0x14a1d9||!qe(_0x14a1d9,void 0x0,_0x26af72))return!0x1;const _0xb9e715=_0x26af72['getSelectionAffectedTableCells'](_0x49d01e['document']['selection']);if(!_0xb9e715['length'])return!0x1;const _0x3a9feb=_0xb9e715[0x0]['findAncestor']('table'),_0x1be7d1=_0x26af72['getRowIndexes'](_0xb9e715),_0x33b596=_0x26af72['getColumnIndexes'](_0xb9e715),_0x885584={'startRow':_0x1be7d1['first'],'endRow':_0x1be7d1['last'],'startColumn':_0x33b596['first'],'endColumn':_0x33b596['last']};return 0x1==_0xb9e715['length']&&(_0x885584['endRow']+=_0x26af72['getRows'](_0x14a1d9)-0x1,_0x885584['endColumn']+=_0x26af72['getColumns'](_0x14a1d9)-0x1),qe(_0x3a9feb,_0x885584,_0x26af72);}(_0x2dc44f,_0x37ec1d,_0x496075['model'],_0x1b97df,_0xd9cf57)&&(_0x11608a['stop'](),_0x3a0edd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x496075['model']['change'](()=>{_0x496075['model']['insertContent'](_0x5bf8c4[0x0],_0x5bf8c4[0x1],_0x5bf8c4[0x2],{'forceDefaultExecution':!0x0});const _0x3fa94e=_0x32d994(),{rowInsertionRanges:_0x302cbe,columnInsertionRanges:_0x2fb6f1,insertionRanges:_0x4d5dda,deletionRanges:_0x317396,cells:_0x18cb71}=_0x3a0edd;_0x302cbe['length']&&_0x383ca4['markMultiRangeInsertion'](_0x302cbe,'tablePasteRow',{'tablePasteChainId':_0x3fa94e}),_0x2fb6f1['length']&&_0x383ca4['markMultiRangeInsertion'](_0x2fb6f1,'tablePasteColumn',{'tablePasteChainId':_0x3fa94e}),_0x4d5dda['length']&&(_0x383ca4['markMultiRangeInsertion'](_0x4d5dda,'tablePaste',{'tablePasteChainId':_0x3fa94e,'skipNestingCheck':!0x0}),_0x4d5dda['forEach'](_0xf2648e=>_0xf2648e['detach']?.())),_0x317396['length']&&(_0x383ca4['markMultiRangeDeletion'](_0x317396,'tablePaste',{'tablePasteChainId':_0x3fa94e,'skipNestingCheck':!0x0}),_0x317396['forEach'](_0x9806bc=>_0x9806bc['detach']?.()));const _0x587187=_0x383ca4['markMultiRangeBlockFormat'](_0x18cb71['map'](({element:_0x15dcd3})=>_0x15dcd3),{'formatGroupId':_0x32d994()},[],'tablePasteCell',{'tablePasteChainId':_0x3fa94e});if(_0x587187){const _0x1c10ec=_0x587187['getMarkers'](),_0x3b19c5=[];for(const {element:_0x17fb10,attributes:_0x5420c0}of _0x18cb71){if(!_0x5420c0)continue;const _0x2f6c7f=_0x496075['model']['createRangeOn'](_0x17fb10),_0x363500=_0x1c10ec['find'](_0xc63d8c=>_0xc63d8c['getRange']()['isEqual'](_0x2f6c7f));_0x363500&&_0x3b19c5['push']([_0x363500['name'],_0x5420c0]);}_0x3b19c5['length']&&_0x587187['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b19c5));}_0x3a0edd=null;}));},{'priority':_0x376ede['high']+0xa}),_0x18cee9['on']('contentInsertion',()=>{_0x117447=!0x1;},{'priority':'lowest'}),_0x496075['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1e35d1,_0x2eacdc)=>{const [_0x3e91bf,_0xe86791,,_0x285b3c]=_0x2eacdc;if(!_0x3a0edd)return;_0x1e35d1['stop']();const _0x3d5ad2=_0x3e91bf['cell'],_0x33ad0b=_0xe86791,_0xe982a2=Xe(_0x3d5ad2),_0x1f273d=Xe(_0x33ad0b);_0x1e35d1['return']=_0x3d5ad2;let _0x672fe6=null,_0x2134ee=null;if(_0x1f273d||_0xe982a2){if(_0xe982a2&&!_0x1f273d){_0x285b3c['remove'](_0x3d5ad2['getChild'](0x0));for(const _0x1d2057 of Array['from'](_0x33ad0b['getChildren']()))_0x285b3c['insert'](_0x1d2057,_0x3d5ad2,'end');const _0x3cd98a=_0x3a0edd['rowInsertionIndexes']['includes'](_0x3e91bf['row']),_0x2e6970=_0x3a0edd['columnInsertionIndexes']['includes'](_0x3e91bf['column']);_0x3cd98a||_0x2e6970||(_0x672fe6=at['fromRange'](_0x285b3c['createRangeIn'](_0x3d5ad2)));}else _0x1f273d&&!_0xe982a2&&(_0x2134ee=_0x285b3c['createRangeIn'](_0x3d5ad2));}else{const _0x31478b=_0x285b3c['createElement']('tableCellSuggestion'),_0x35960e=_0x285b3c['createElement']('tableCellSuggestion');_0x285b3c['wrap'](_0x285b3c['createRangeIn'](_0x3d5ad2),_0x35960e),_0x285b3c['insert'](_0x31478b,_0x3d5ad2,0x0);for(const _0x2e6e81 of Array['from'](_0x33ad0b['getChildren']()))_0x285b3c['insert'](_0x2e6e81,_0x31478b,'end');_0x672fe6=at['fromRange'](_0x285b3c['createRangeOn'](_0x31478b)),_0x2134ee=at['fromRange'](_0x285b3c['createRangeOn'](_0x35960e));}const _0x12518b=Array['from'](_0x33ad0b['getAttributes']())['filter'](([_0x48c5f0])=>ze['includes'](_0x48c5f0));_0x3a0edd['cells']['push']({'element':_0x3d5ad2,'attributes':_0x12518b['length']?Object['fromEntries'](_0x12518b):null}),_0x672fe6&&_0x3a0edd['insertionRanges']['push'](_0x672fe6),_0x2134ee&&_0x3a0edd['deletionRanges']['push'](_0x2134ee);},{'priority':'high'}),_0x1b97df['on']('insertColumns',(_0x5ef141,_0x5ec0e7)=>{const [_0xe9b96a,_0x1d7daa={}]=_0x5ec0e7;if(!_0x3a0edd)return;const _0x268592=_0x1d7daa['at']||0x0,_0x118787=_0x1d7daa['columns']||0x1;_0x3a0edd['columnInsertionIndexes']=new Array(_0x118787)['fill'](_0x268592)['map']((_0x7ab2b5,_0x89164d)=>_0x7ab2b5+_0x89164d);for(const {cell:_0x173fa0}of _0x1b97df['createTableWalker'](_0xe9b96a,{'startColumn':_0x268592,'endColumn':_0x268592+_0x118787-0x1}))_0x3a0edd['columnInsertionRanges']['push'](_0x496075['model']['createRangeOn'](_0x173fa0));},{'priority':'low'}),_0x1b97df['on']('insertRows',(_0x166967,_0x5a3917)=>{const [_0x1e464d,_0x10f402={}]=_0x5a3917;if(!_0x3a0edd)return;const _0x3c880b=_0x10f402['at']||0x0,_0x2d5c96=_0x10f402['rows']||0x1;_0x3a0edd['rowInsertionIndexes']=new Array(_0x2d5c96)['fill'](_0x3c880b)['map']((_0x8130e0,_0x287f73)=>_0x8130e0+_0x287f73);for(const {cell:_0x4199fe}of _0x1b97df['createTableWalker'](_0x1e464d,{'startRow':_0x3c880b,'endRow':_0x3c880b+_0x2d5c96-0x1}))_0x3a0edd['rowInsertionRanges']['push'](_0x496075['model']['createRangeOn'](_0x4199fe));},{'priority':'low'}),_0x383ca4['descriptionFactory']['registerDescriptionCallback'](_0x415a3f=>{if(_0x415a3f['subType']&&_0x415a3f['subType']['startsWith']('tablePaste'))return _0x415a3f['previous']?{}:{'type':'insertion','content':wt(_0x496075['locale'],'*Replace\x20table\x20cells*')};});const _0x1c2fe1=()=>!0x1;for(const _0x11eb1f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x383ca4['_suggestionFactory']['registerCustomCallback']('insertion',_0x11eb1f,'join',_0x1c2fe1),_0x383ca4['_suggestionFactory']['registerCustomCallback']('deletion',_0x11eb1f,'join',_0x1c2fe1),_0x383ca4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11eb1f,'join',_0x1c2fe1);_0x383ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c2fe1),_0x383ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2d99f8,_0x2db6c8,_0x3109ba)=>{const _0x12e30d=_0x2d99f8['map'](_0x140e82=>_0x140e82['getContainedElement']())['filter'](_0x579bd2=>_0x579bd2),_0x1eaff0=new Map(_0x12e30d['map'](_0x3a027b=>[_0x3a027b,null]));if(_0x3a0edd){for(const {element:_0x3fea9c,attributes:_0x2856bd}of _0x3a0edd['cells'])_0x2856bd&&_0x1eaff0['set'](_0x3fea9c,_0x2856bd);}else{if(_0x3109ba&&_0x3109ba['markerAttributes'])for(const [_0x409654,_0x665477]of Object['entries'](_0x3109ba['markerAttributes'])){const _0x17f11a=_0x496075['model']['markers']['get'](_0x409654),_0x18874b=_0x17f11a?_0x17f11a['getRange']()['getContainedElement']():null;_0x18874b&&_0x1eaff0['set'](_0x18874b,_0x665477);}}_0x496075['model']['change'](_0x19c8ce=>{for(const [_0x35c813,_0x11ba70]of _0x1eaff0)_0x19c8ce['setAttributes']({...je,..._0x11ba70},_0x35c813);});});const _0x4e2577=(_0x1a55e5,_0x11530f)=>{_0x383ca4['_suggestionFactory']['registerCustomCallback'](_0x1a55e5,'tablePaste',_0x11530f,(_0x868936,_0x19106e,_0xa4c338)=>{_0x496075['model']['change'](_0x580538=>{const _0x3ae12f=[];for(const _0x5da32f of _0x868936){const _0x5da65c=_0x5da32f['start']['nodeAfter'];_0x5da65c['is']('element','tableCellSuggestion')&&_0x3ae12f['push'](_0x5da65c);}_0x383ca4['_suggestionFactory']['getSuggestionCallback'](_0x1a55e5,null,_0x11530f)(_0x868936,_0x19106e,_0xa4c338);for(const _0x58cbc5 of _0x3ae12f)'$graveyard'!=_0x58cbc5['root']['rootName']&&_0x580538['unwrap'](_0x58cbc5);});});};_0x4e2577('insertion','accept'),_0x4e2577('insertion','discard'),_0x4e2577('deletion','accept'),_0x4e2577('deletion','discard'),_0x383ca4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5cd098=>{const _0x16cf61=_0x5cd098['map'](_0x36cc79=>_0x36cc79['getContainedElement']()),_0x5bd410=_0x16cf61[0x0]['findAncestor']('table'),{minRow:_0x54f7c3,maxRow:_0x57473b}=_0x5d780e['_getCoordsForCells'](_0x16cf61);_0x1b97df['removeRows'](_0x5bd410,{'at':_0x54f7c3,'rows':_0x57473b-_0x54f7c3+0x1});}),_0x383ca4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3331e1=>{const _0x2cf026=_0x3331e1['map'](_0x1e9393=>_0x1e9393['getContainedElement']()),_0x4ad8db=_0x2cf026[0x0]['findAncestor']('table'),{minColumn:_0x1fade4,maxColumn:_0x4e20d1}=_0x5d780e['_getCoordsForCells'](_0x2cf026);_0x1b97df['removeColumns'](_0x4ad8db,{'at':_0x1fade4,'columns':_0x4e20d1-_0x1fade4+0x1});});const _0x49f60a=(_0x4d389c,_0x34e295)=>{if(!_0x34e295['subType']||!_0x34e295['subType']['startsWith']('tablePaste'))return;const _0x4c7547=_0x34e295['attributes']['tablePasteChainId'],_0x26e70b=_0x383ca4['getSuggestions']()['filter'](_0xaabdc6=>_0xaabdc6['isInContent']&&_0xaabdc6['attributes']&&_0xaabdc6['attributes']['tablePasteChainId']==_0x4c7547);_0x26e70b['length']&&_0x34e295['getAllAdjacentSuggestions']()['length']!=_0x26e70b['length']&&_0x26e70b['reduce']((_0x101d40,_0x130e1c)=>(_0x101d40['next']=_0x130e1c,_0x130e1c['previous']=_0x101d40,_0x130e1c));};function _0x4f4235(_0x57a7c0,_0x47d67e=!0x0){const {id:_0x1c2985,authorId:_0x48012a}=nt(_0x57a7c0['markerName']),_0x5b7463=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33a532=_0x383ca4['activeMarkers']['includes'](_0x57a7c0['markerName']);return _0x33a532&&_0x5b7463['push']('ck-suggestion-marker--active'),{'classes':_0x5b7463,'attributes':{'data-suggestion':_0x1c2985,'data-author-id':_0x48012a},'priority':_0x33a532&&_0x47d67e?0xbc2:0xbb8};}_0x383ca4['on']('suggestionLoaded',_0x49f60a,{'priority':'high'}),_0x383ca4['on']('suggestionUnloaded',_0x49f60a,{'priority':'high'}),_0x496075['model']['document']['registerPostFixer'](()=>{let _0x33d4f2=!0x1;const _0x5bd3c9=Array['from'](_0x496075['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x441428,data:_0x3c5ee}of _0x5bd3c9){const {group:_0x54e5b2,type:_0x55028c,id:_0x3bf23b}=nt(_0x441428);if('suggestion'!=_0x54e5b2||'deletion'!=_0x55028c||_0x3c5ee['oldRange'])continue;if(!_0x383ca4['hasSuggestion'](_0x3bf23b))continue;const _0x2fb3df=_0x383ca4['getSuggestion'](_0x3bf23b)['getRanges'](),_0x1a263a=_0x496075['plugins']['get']('Users')['me'];for(const _0x5ef74d of _0x383ca4['getSuggestions']())if(_0x5ef74d['isInContent']&&_0x5ef74d['author']==_0x1a263a&&'formatBlock'==_0x5ef74d['type']&&'tablePasteCell'==_0x5ef74d['subType']&&_0x5ef74d['getRanges']()['every'](_0x4f1914=>_0x2fb3df['some'](_0x95d09f=>_0x95d09f['containsRange'](_0x4f1914,!0x0)))){for(const _0x2a8bdb of _0x5ef74d['getAllAdjacentSuggestions']())_0x2a8bdb['isInContent']&&(_0x2a8bdb['discard'](),_0x33d4f2=!0x0);}}return _0x33d4f2;}),_0x496075['model']['document']['registerPostFixer'](_0x5982af=>{const _0x19e949=_0x496075['commands']['get']('redo');if(!_0x19e949||!_0x19e949['_createdBatches']['has'](_0x5982af['batch']))return!0x1;let _0x3c94fa=!0x1;const _0x1a7e95=_0x496075['plugins']['get']('Users')['me'],_0x52d17c=_0x496075['model']['document']['differ']['getChanges'](),_0x232b64=Array['from'](_0x496075['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2bcbbb,data:_0x42570e})=>{const {group:_0x312d7c,subType:_0x144dc3,authorId:_0x49245d}=nt(_0x2bcbbb);return'suggestion'==_0x312d7c&&'tablePaste'==_0x144dc3&&_0x49245d==_0x1a7e95['id']&&!_0x42570e['oldRange'];});for(const _0x141f39 of _0x52d17c){if('insert'!=_0x141f39['type']||'tableCellSuggestion'!=_0x141f39['name']||0x1!=_0x141f39['length'])continue;const _0x4bd35d=_0x5982af['createRange'](_0x141f39['position'],_0x141f39['position']['getShiftedBy'](0x1));if(!_0x232b64['find'](({data:_0x17bdce})=>_0x17bdce['newRange']['isEqual'](_0x4bd35d))){for(const {name:_0x559668,data:_0x33a82f}of _0x232b64)if(_0x4bd35d['containsRange'](_0x33a82f['newRange'])){_0x5982af['updateMarker'](_0x559668,{'range':_0x4bd35d}),_0x3c94fa=!0x0;break;}}}return _0x3c94fa;}),_0x496075['model']['document']['registerPostFixer'](_0x43c0f2=>{let _0x1295d3=!0x1;const _0x230ef9=_0x496075['plugins']['get']('Users')['me'],_0x160f9c=_0x383ca4['getSuggestions']()['filter'](_0x197d5e=>_0x197d5e['isInContent']&&_0x197d5e['author']==_0x230ef9),_0x39281f=new Set(),_0x57cee7=new Set();for(const _0x31a73b of _0x160f9c)if('tablePaste'==_0x31a73b['subType'])for(const _0x3d4017 of _0x31a73b['getMarkers']()){const _0xe95627=_0x3d4017['getRange']()['getContainedElement']();if(_0xe95627){if(_0xe95627['is']('element','tableCellSuggestion')&&Xe(_0xe95627)){_0x31a73b['removeMarker'](_0x3d4017['name']),_0x39281f['add'](_0xe95627),_0x1295d3=!0x0;const _0x1bfcab=_0xe95627['nextSibling'],_0x5bbe6c=_0xe95627['previousSibling'],_0x102c78=_0x1bfcab&&_0x1bfcab['is']('element','tableCellSuggestion'),_0x3a6dc9=_0x5bbe6c&&_0x5bbe6c['is']('element','tableCellSuggestion');_0x102c78&&!_0x39281f['has'](_0x1bfcab)&&_0x57cee7['add'](_0x1bfcab),_0x3a6dc9&&!_0x39281f['has'](_0x5bbe6c)&&_0x57cee7['add'](_0x5bbe6c);}else _0xe95627['is']('element','paragraph')&&_0xe95627['isEmpty']&&(_0x31a73b['removeMarker'](_0x3d4017['name']),_0x1295d3=!0x0);}}else{if('tablePasteCell'==_0x31a73b['subType']){if(!_0x31a73b['attributes']||!_0x31a73b['attributes']['tablePasteChainId'])continue;const _0x118138=_0x31a73b['attributes']['markerAttributes'];if(_0x118138&&Object['keys'](_0x118138)['length'])continue;const _0x11c282=_0x31a73b['attributes']['tablePasteChainId'];let _0x42f130=!0x0,_0x3790be=!0x0;for(const _0x5a1151 of _0x160f9c)if(_0x5a1151['subType']&&_0x5a1151['subType']['startsWith']('tablePaste')){if(!_0x5a1151['attributes']['tablePasteChainId']){_0x3790be=!0x1;break;}if(_0x5a1151['id']!=_0x31a73b['id']&&_0x5a1151['attributes']['tablePasteChainId']==_0x11c282){_0x42f130=!0x1;break;}}_0x3790be&&_0x42f130&&(_0x31a73b['removeMarkers'](),_0x1295d3=!0x0);}}for(const _0x499364 of _0x39281f)_0x43c0f2['remove'](_0x499364);for(const _0x393480 of _0x57cee7)_0x43c0f2['unwrap'](_0x393480);return _0x1295d3;}),_0x496075['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5aa283=>_0x4f4235(_0x5aa283),'converterPriority':'high'}),_0x496075['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x507b9e,_0x4514d1)=>_0x4514d1['options']['showSuggestionHighlights']?_0x4f4235(_0x507b9e,!0x1):null,'converterPriority':'high'});const _0x55a6de=_0x496075['editing']['view'];this['listenTo'](_0x55a6de['document'],'clipboardOutput',(_0x497d8a,_0x5d830e)=>{const _0x343a49=[];for(const _0x27f37a of _0x55a6de['createRangeIn'](_0x5d830e['content'])['getItems']())_0x27f37a['is']('element','suggestion-td')&&_0x343a49['push'](_0x27f37a);_0x55a6de['change'](_0x2033f9=>{for(const _0xf714ee of _0x343a49)_0x2033f9['move'](_0x2033f9['createRangeIn'](_0xf714ee),_0x2033f9['createPositionBefore'](_0xf714ee)),_0x2033f9['remove'](_0xf714ee);});});}};function Xe(_0x5541e2){if(_0x5541e2['isEmpty'])return!0x0;const _0x2420e0=_0x5541e2['getChild'](0x0);return _0x2420e0['is']('element','paragraph')&&_0x2420e0['isEmpty'];}function qe(_0x1a06be,_0x37a642={},_0x231fb5){for(const {isAnchor:_0x572793,cellHeight:_0x3b7ed0,cellWidth:_0x584fb5}of _0x231fb5['createTableWalker'](_0x1a06be,{'includeAllSlots':!0x0,..._0x37a642}))if(!_0x572793||0x1!=_0x3b7ed0||0x1!=_0x584fb5)return!0x1;return!0x0;}var Ye=class extends _0x4ca415{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4645a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4645a1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x4645a1['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x4645a1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4645a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x45f02f=_0x4645a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x4645a1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x24c7fe,_0xbb89bc)=>{_0x45f02f(_0x24c7fe,_0xbb89bc),this['_restoreCellWidths'](_0x24c7fe[0x0]['start']['nodeAfter'],_0xbb89bc['commandParams'][0x0]['cellWidths']);}),_0x4645a1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x1aa490,_0x3f6d80){const _0x2a86ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f3a2f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x47f4bc=_0x3f6d80['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d6046=_0x4f3a2f['getColumnGroupElement'](_0x47f4bc);let _0x3e95ee=_0x4d6046?_0x4f3a2f['getTableColumnsWidths'](_0x4d6046):null,_0x4c8005=_0x47f4bc['getAttribute']('tableWidth')||null;const _0x37d200=_0x3f6d80['tableWidth']||_0x4c8005,_0x141200=_0x3f6d80['columnWidths']||_0x3e95ee;let _0x1c6fd0=this['_getCellWidths'](_0x47f4bc);const _0x33c4ec=this['_foldResizeTableSuggestion'](_0x47f4bc);_0x33c4ec&&(_0x4c8005=_0x33c4ec['tableWidth'],_0x3e95ee=_0x33c4ec['columnWidths'],_0x1c6fd0=_0x33c4ec['cellWidths']||_0x1c6fd0),_0x1aa490({'table':_0x47f4bc,'tableWidth':_0x37d200,'columnWidths':_0x141200}),_0x2a86ab['markBlockFormat'](_0x47f4bc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4c8005,'columnWidths':_0x3e95ee,'cellWidths':_0x1c6fd0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x2e40f5,_0x62f925={}){if(void 0x0===_0x62f925['value']||''===_0x62f925['value'])return void _0x2e40f5(_0x62f925);const _0x1cc870=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e428c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x439ced=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x62f925['batch']||(_0x62f925['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x62f925['batch'],()=>{const _0x25a7c0=_0x3e428c['getColumnGroupElement'](_0x439ced);let _0x245683=_0x25a7c0?_0x3e428c['getTableColumnsWidths'](_0x25a7c0):null,_0x25e67a=_0x439ced['getAttribute']('tableWidth')||null,_0x358546=this['_getCellWidths'](_0x439ced);const _0x59ebf5=this['_foldResizeTableSuggestion'](_0x439ced,!0x0);_0x59ebf5&&(_0x25e67a=_0x59ebf5['tableWidth'],_0x245683=_0x59ebf5['columnWidths'],_0x358546=_0x59ebf5['cellWidths']||_0x358546),_0x2e40f5(_0x62f925),_0x1cc870['markBlockFormat'](_0x439ced,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x25e67a,'columnWidths':_0x245683,'cellWidths':_0x358546}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x7c4004,_0x1ad724=!0x1){const _0x2c1d11=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5971fe=this['editor']['plugins']['get']('Users')['me'];for(const _0x532b77 of _0x2c1d11['getSuggestions']({'skipNotAttached':!0x0})){const _0x53f64e=_0x532b77['getContainedElement']();if('resizeTable'===_0x532b77['subType']&&_0x53f64e===_0x7c4004){_0x532b77['author']!==_0x5971fe&&(_0x1ad724?_0x532b77['removeMarkers']():_0x532b77['discard']());const _0x31dbc1=_0x532b77['data']['commandParams'];return{'tableWidth':_0x31dbc1[0x0]['tableWidth'],'columnWidths':_0x31dbc1[0x0]['columnWidths'],'cellWidths':_0x31dbc1[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x368d9e){const _0x1354cb=[];for(const _0x27686e of _0x368d9e['getChildren']())if(_0x27686e['is']('element','tableRow')){for(const _0x1f732f of _0x27686e['getChildren']())_0x1354cb['push'](_0x1f732f['getAttribute']('tableCellWidth')||null);}return _0x1354cb;}_restoreCellWidths(_0x395447,_0x55df41){_0x55df41&&this['editor']['model']['change'](_0x368972=>{let _0x25bc29=0x0;for(const _0x2d0064 of _0x395447['getChildren']())if(_0x2d0064['is']('element','tableRow'))for(const _0x53f5ad of _0x2d0064['getChildren']()){const _0x41e2f5=_0x55df41[_0x25bc29++];_0x41e2f5&&_0x368972['setAttribute']('tableCellWidth',_0x41e2f5,_0x53f5ad);}});}handleSuggestionDescription(_0x1ef50c){if('formatBlock'!=_0x1ef50c['type']&&'formatInline'!=_0x1ef50c['type'])return;const {data:_0x31dfb6}=_0x1ef50c;return _0x31dfb6&&'resizeTable'===_0x31dfb6['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x4ca415{afterInit(){const _0x39bed3=this['editor'];_0x39bed3['plugins']['has']('Template')&&_0x39bed3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x4ca415{afterInit(){const _0x3c600=this['editor'];if(!_0x3c600['commands']['get']('insertTableOfContents'))return;_0x3c600['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2b3122=_0x3c600['plugins']['get']('TrackChangesEditing'),_0xbc8b49=_0x3c600['locale'];_0x2b3122['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3d50e4=>wt(_0xbc8b49,'ELEMENT_TABLE_OF_CONTENTS',_0x3d50e4));}},Je=class extends _0x4ca415{afterInit(){const _0x4d36ba=this['editor'];_0x4d36ba['plugins']['has']('Title')&&(_0x4d36ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x4d36ba['locale'],'ELEMENT_TITLE')),_0x4d36ba['model']['document']['registerPostFixer'](_0x19bb40=>{let _0x5f00a2=!0x1;const _0x54309b=Array['from'](_0x4d36ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bcadb,data:_0xad518e}of _0x54309b){const {group:_0x118862}=nt(_0x5bcadb);if('suggestion'!==_0x118862||!_0xad518e['newRange'])continue;const _0x58d4bb=_0xad518e['newRange'],_0x55b1d7=_0x58d4bb['end']['nodeBefore'];if(!_0x55b1d7||!_0x55b1d7['is']('element','title-content'))continue;if(!_0x58d4bb['start']['isTouching'](_0x58d4bb['end']))continue;const _0x17f302=_0x4d36ba['model']['schema']['getNearestSelectionRange'](_0x58d4bb['end'],'forward');if(_0x17f302&&_0x17f302['isCollapsed']){const _0x3f71c2=_0x19bb40['createRange'](_0x58d4bb['start'],_0x17f302['start']);_0x3f71c2['isEqual'](_0x58d4bb)||(_0x19bb40['updateMarker'](_0x5bcadb,{'range':_0x3f71c2}),_0x5f00a2=!0x0);}_0x5f00a2||(_0x19bb40['removeMarker'](_0x5bcadb),_0x5f00a2=!0x0);}return _0x5f00a2;}));}},tn=class extends _0x4ca415{afterInit(){const _0x466d84=this['editor'],_0x2115c6=_0x466d84['plugins']['get']('TrackChangesEditing');_0x466d84['plugins']['has']('Uploadcare')&&(_0x2115c6['enableCommand']('uploadcare'),_0x466d84['plugins']['has']('UploadcareImageEdit')&&(_0x2115c6['enableCommand']('uploadcareImageEdit'),_0x2115c6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2115c6['descriptionFactory']['registerDescriptionCallback'](_0x440e26=>{if('attribute'!=_0x440e26['type'])return;const {data:_0x42ec4a}=_0x440e26;return _0x42ec4a&&'uploadcareImageId'==_0x42ec4a['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x4ca415{afterInit(){const _0x5d7ccb=this['editor'],_0xbbada9=_0x5d7ccb['plugins']['get']('TrackChangesEditing');_0x5d7ccb['plugins']['has']('UndoEditing')&&(_0xbbada9['enableCommand']('undo'),_0xbbada9['enableCommand']('redo'));}},nn=class extends _0x4ca415{static get requires(){return[xe];}afterInit(){const _0xfa2ec7=this['editor'];_0xfa2ec7['plugins']['has']('TableCaptionEditing')&&_0xfa2ec7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x4ca415{tableProperties;tableCellProperties;constructor(_0x97d8a7){super(_0x97d8a7),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 _0x28fd84=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4a8020 of this['tableProperties'])_0x28fd84['enableCommand'](_0x4a8020,(_0x47d1b8,_0xf78460)=>{const _0x55a225=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4a8020,[_0x55a225],this['tableProperties'],'tableProperties',_0x47d1b8,_0xf78460);});_0x28fd84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x28fd84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28fd84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x484569,_0x13f284)=>this['handleDiscardAction'](this['tableProperties'],_0x484569,_0x13f284)),_0x28fd84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x11d050 of this['tableCellProperties'])this['editor']['commands']['get'](_0x11d050)&&_0x28fd84['enableCommand'](_0x11d050,(_0x4dcb98,_0x4b7ecf)=>{const _0x5553ed=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x11d050,_0x5553ed,this['tableCellProperties'],'tableCellProperties',_0x4dcb98,_0x4b7ecf);});_0x28fd84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x28fd84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28fd84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4d9392,_0x40ce08)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4d9392,_0x40ce08)),_0x28fd84['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x28fd84['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x28fd84['descriptionFactory']['registerDescriptionCallback'](_0xf45916=>this['handleSuggestionDescription'](_0xf45916)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2bd524,_0x3f040a,_0x382d35,_0x1bb7f6,_0x385672,_0x528f95){const _0x464a68=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x528f95['batch'],()=>{for(const _0xb26453 of _0x3f040a)if(this['_getSuggestion'](_0xb26453,_0x1bb7f6))_0x385672(_0x528f95);else{const _0x4f5342={};for(const _0x1f74c2 of _0x382d35){const _0x28575b=_0xb26453['getAttribute'](_0x1f74c2);void 0x0!==_0x28575b&&(_0x4f5342[_0x1f74c2]=_0x28575b);}const _0x516317=this['_getResizedColumnWidths'](_0xb26453);_0x516317&&(_0x4f5342['columnWidths']=_0x516317),_0x385672(_0x528f95),_0x464a68['markBlockFormat'](_0xb26453,{'commandParams':[_0x4f5342]},[],_0x1bb7f6);}});}handleDiscardAction(_0x21fb0a,_0x39b48a,_0xce5bcc){const _0x154494=_0x39b48a[0x0]['start']['nodeAfter'],_0x9263bc=_0xce5bcc['commandParams'][0x0];this['editor']['model']['change'](_0x38e4ab=>{for(const _0x4cfee0 of _0x21fb0a)void 0x0!==_0x9263bc[_0x4cfee0]?_0x38e4ab['setAttribute'](_0x4cfee0,_0x9263bc[_0x4cfee0],_0x154494):_0x38e4ab['removeAttribute'](_0x4cfee0,_0x154494);if(_0x9263bc['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x3da2b6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1223e2=_0x3da2b6['getColumnGroupElement'](_0x154494);if(_0x1223e2){const _0x47d2da=_0x3da2b6['getTableColumnsWidths'](_0x1223e2),_0x3f844c=_0x154494['getAttribute']('tableWidth');if(('string'==typeof _0x3f844c&&_0x3f844c['trim']()['endsWith']('px'))!==_0x47d2da['some'](_0x5968b9=>'string'==typeof _0x5968b9&&_0x5968b9['endsWith']('px'))){const _0x3aee94=_0x3da2b6['getTableColumnElements'](_0x1223e2);_0x9263bc['columnWidths']['forEach']((_0x235dec,_0x23ec15)=>{_0x3aee94[_0x23ec15]&&_0x38e4ab['setAttribute']('columnWidth',_0x235dec,_0x3aee94[_0x23ec15]);});}}}});}_getResizedColumnWidths(_0x224fc5){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x224fc5['is']('element','table'))return;const _0x1b3cce=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4fdd62=_0x1b3cce['getColumnGroupElement'](_0x224fc5);return _0x4fdd62?_0x1b3cce['getTableColumnsWidths'](_0x4fdd62):void 0x0;}handleSuggestionDescription(_0x119bb5){if(_0x119bb5['data'])switch(_0x119bb5['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x215b01,_0x42d45f){const _0x80be77=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xbe394d of _0x80be77['getSuggestions']({'skipNotAttached':!0x0})){const _0x119b80=_0xbe394d['getContainedElement']();if(_0xbe394d['subType']===_0x42d45f&&_0x119b80===_0x215b01)return _0xbe394d;}return null;}_registerTablePropertiesAttributes(){const _0x362a7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b599d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1499a8 of _0x4b599d){const _0x2086b1=_0x1499a8['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x362a7c['descriptionFactory']['registerAttributeLabel'](_0x1499a8,wt(this['editor']['locale'],'FORMAT_'+_0x2086b1));}}},rn=class extends _0x4ca415{afterInit(){const _0x42fb30=this['editor'];if(!_0x42fb30['plugins']['has']('LineHeight'))return;const _0x44e369=_0x42fb30['plugins']['get']('TrackChangesEditing'),_0x4e1631=_0x42fb30['locale'];_0x44e369['enableDefaultAttributesIntegration']('lineHeight'),_0x44e369['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x4e1631,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x3c2395){return'marker'==_0x3c2395['type']&&_0x3c2395['name']['startsWith']('$markedRemove');}function cn(_0x1717ba){return _0x1717ba?[_0x1717ba]:[];}var ln=class extends _0x4ca415{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x151698,_0x5bf50e,_0x5e4825,_0x559d12,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f3244){super(_0x2f3244),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5edee0,_0x20ae0f,_0x3cde3f,_0x53700e)=>{this['_model']['change'](()=>{for(const _0xbb07af of[..._0x53700e,..._0x3cde3f])this['_model']['markers']['has'](_0xbb07af)&&_0x2f3244['editing']['reconvertMarker'](_0xbb07af);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2f3244['plugins']['get'](_0x151698),this['_suggestionsConversion']=_0x2f3244['plugins']['get'](_0x5bf50e),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2f3244['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2f3244['config']['get']('trackChanges.trackFormatChanges'),_0x2f3244['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2f3244['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x2f3244,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x3fb082=this['editor'];_0x3fb082['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x24f965,{writer:_0x1fa90f})=>{let _0x45d6a2='suggestion:'+_0x24f965['getAttribute']('suggestion-type')+':'+_0x24f965['getAttribute']('id');return _0x24f965['getAttribute']('marker-count')&&(_0x45d6a2+=':'+_0x24f965['getAttribute']('marker-count')),_0x1fa90f['createElement']('$marker',{'data-name':_0x45d6a2});}}),_0x3fb082['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3fb082['model']['document']['registerPostFixer'](_0xd04da5=>{let _0x139852=!0x1;const _0x363cba=Array['from'](_0x3fb082['model']['document']['differ']['getChangedMarkers']()),_0x25f6a9=new Set();for(const {name:_0x1ea5ba,data:_0x1facf4}of _0x363cba){const {group:_0x41609e,type:_0x24d28e,subType:_0x358158,id:_0x566ff5}=nt(_0x1ea5ba);if('suggestion'!==_0x41609e)continue;const _0x5d05fe=_0x358158?'suggestion:'+_0x24d28e+':'+_0x358158+':'+_0x566ff5:'suggestion:'+_0x24d28e+':'+_0x566ff5,_0x21d2f4=_0x3fb082['model']['markers']['getMarkersGroup'](_0x5d05fe),_0x41a1f2=_0x3fb082['model']['markers']['get'](_0x1ea5ba),_0x42dce0=this['_suggestions']['get'](_0x566ff5);if(null!=_0x1facf4['newRange']){'formatInline'==_0x24d28e&&(_0x139852=_0x139852||gn(_0x1facf4['newRange'],_0x1ea5ba,_0xd04da5,_0x3fb082['model']['schema']));const _0xdfa107='attribute'==_0x24d28e&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x358158)),_0x44a996='attribute'==_0x24d28e&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x358158));if(_0x1facf4['newRange']['isCollapsed']||'$graveyard'==_0x1facf4['newRange']['root']['rootName']||'formatBlock'==_0x24d28e&&!mn(_0x1facf4['newRange'])||_0xdfa107&&!mn(_0x1facf4['newRange'])||_0x44a996&&En(_0x1facf4['newRange'])||'deletion'==_0x24d28e&&En(_0x1facf4['newRange'])||_0x41a1f2&&Tn(_0x41a1f2,_0x21d2f4))_0xd04da5['removeMarker'](_0x1ea5ba),_0x139852=!0x0;else{if(!_0x42dce0||!_0x42dce0['isInContent'])continue;if(_0x1facf4['newRange']&&_0x1facf4['oldRange']&&_0x1facf4['newRange']['isEqual'](_0x1facf4['oldRange']))continue;_0x25f6a9['add'](_0x42dce0);}}}return _0x25f6a9['size']>0x0&&(_0x139852=!!this['_joinWithAdjacentSuggestions'](_0x25f6a9)||_0x139852),_0x139852;}),_0x3fb082['model']['document']['registerPostFixer'](_0x2eee57=>{let _0x1a9b9f=!0x1;for(const _0x19b9da of _0x3fb082['model']['document']['differ']['getChanges']())if('insert'==_0x19b9da['type'])for(const _0x482dd9 of this['_suggestions']['values']()){if(_0x482dd9['isMultiRange']||!_0x482dd9['isInContent'])continue;const _0x2693f9='formatBlock'==_0x482dd9['type'],_0x32780b=this['_getAttributeKey'](_0x482dd9),_0x55f641=_0x32780b&&this['_suggestionsConversion']['isBlockAttribute'](_0x32780b);if(!_0x2693f9&&!_0x55f641)continue;const _0x2bcadb=_0x482dd9['getFirstRange']();if(_0x2bcadb['start']['parent']!=_0x2bcadb['end']['parent']&&!_0x2bcadb['end']['isAtEnd']){const _0x33a18=_0x3fb082['model']['createPositionAt'](_0x2bcadb['start']['nodeAfter'],'end'),_0x2142d7=_0x3fb082['model']['createRange'](_0x2bcadb['start'],_0x33a18);_0x2eee57['updateMarker'](_0x482dd9['getFirstMarker'](),{'range':_0x2142d7}),_0x1a9b9f=!0x0;}}return _0x1a9b9f;}),_0x3fb082['model']['document']['registerPostFixer'](_0x4a703a=>this['_processAttributeChanges'](_0x4a703a)),_0x3fb082['model']['document']['registerPostFixer'](_0x407ee4=>!_0x407ee4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x407ee4)),_0x3fb082['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3fb082['model']['document']['on']('change:data',(_0x5cd9ca,_0x4d2691)=>{if(!_0x4d2691['isLocal']||_0x4d2691['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e7e3e=_0x3fb082['model']['document']['differ']['getChanges']();if(0x0==_0x1e7e3e['length'])return;const _0x53f641=[],_0x57c9e9=_0x1e7e3e['filter'](_0x389c3e=>'attribute'==_0x389c3e['type']),_0x452de5=_0x1e7e3e['filter'](_0x69e5d1=>'insert'==_0x69e5d1['type']&&'$text'!=_0x69e5d1['name']);for(const _0x45e95b of _0x57c9e9)this['_suggestionsConversion']['isRegisteredAttribute'](_0x45e95b['attributeKey'])&&_0x53f641['push']({'key':_0x45e95b['attributeKey'],'newValue':_0x45e95b['attributeNewValue'],'oldValue':_0x45e95b['attributeOldValue'],'range':_n(_0x45e95b['range'],_0x3fb082['model'])});for(const _0x2a8c1b of _0x452de5){if('rename'!=_0x2a8c1b['action']&&'refresh'!=_0x2a8c1b['action'])continue;const _0x6b3d6a=pn(_0x2a8c1b['position']['nodeAfter'],_0x3fb082['model']),_0x1e4d7a=_0x2a8c1b['before'];'rename'==_0x2a8c1b['action']&&_0x53f641['push']({'key':on,'newValue':_0x2a8c1b['name'],'oldValue':_0x1e4d7a['name'],'range':_0x6b3d6a});for(const [_0xeafa8f,_0x35c408]of _0x1e4d7a['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xeafa8f))continue;const _0x496da8=_0x2a8c1b['attributes']['get'](_0xeafa8f);_0x35c408!==_0x496da8&&_0x53f641['push']({'key':_0xeafa8f,'newValue':_0x496da8,'oldValue':_0x35c408,'range':_0x6b3d6a});}for(const [_0x22cfc5,_0x5cac34]of _0x2a8c1b['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x22cfc5)&&(_0x1e4d7a['attributes']['has'](_0x22cfc5)||_0x53f641['push']({'key':_0x22cfc5,'newValue':_0x5cac34,'oldValue':null,'range':_0x6b3d6a}));}0x0!=_0x53f641['length']&&_0x3fb082['model']['enqueueChange'](_0x4d2691,_0x2d1bb9=>{const _0x36320e=_0x32d994();for(const {range:_0xc77ffc,key:_0x9ea3e1,oldValue:_0x40f496,newValue:_0x1e63f1}of _0x53f641)this['markAttributeChange'](_0xc77ffc,_0x9ea3e1,_0x40f496,_0x1e63f1,{'groupId':_0x36320e});this['_reduceExistingSuggestions'](_0x2d1bb9,_0x53f641);});},{'priority':'lowest'}),_0x3fb082['model']['markers']['on']('update:suggestion',(_0x6cbf16,_0x3b423c,_0xf1ce4a)=>{if(null==_0xf1ce4a){const {id:_0x1b5f60}=nt(_0x3b423c['name']),_0x43de77=this['_suggestions']['get'](_0x1b5f60);_0x43de77&&_0x43de77['addMarkerName'](_0x3b423c['name']);}}),_0x3fb082['model']['document']['on']('change:data',()=>{const _0x48ee69=Array['from'](_0x3fb082['model']['document']['differ']['getChangedMarkers']())['filter'](_0x266c36=>'suggestion'===nt(_0x266c36['name'])['group']);if(0x0===_0x48ee69['length'])return;_0x48ee69['sort']((_0x5a361a,_0x45ab68)=>{const _0x58f704=_0x5a361a['data']['oldRange'],_0x2780b9=_0x45ab68['data']['oldRange'];return null===_0x58f704&&null===_0x2780b9?0x0:null===_0x58f704&&null!==_0x2780b9?-0x1:null!==_0x58f704&&null===_0x2780b9?0x1:_0x58f704['start']['isBefore'](_0x2780b9['start'])?-0x1:0x1;});const _0x29c65f=new Set(),_0x1a522c=new Set();for(const {name:_0x45ac93,data:_0x594ddc}of _0x48ee69){const {id:_0x53c45e}=nt(_0x45ac93);if(null===_0x594ddc['oldRange']){const _0x323fc3=this['_handleNewSuggestionMarker'](_0x45ac93);_0x1a522c['add'](_0x323fc3);}else{const _0x21399d=this['_suggestions']['get'](_0x53c45e);null!==_0x594ddc['newRange']||_0x21399d['isInContent']?(_0x29c65f['add'](_0x21399d['head']),_0x1a522c['add'](_0x21399d)):this['_removeSuggestion'](_0x21399d);}}_0x1a522c['size']>0x0&&this['_refreshSuggestionsChain'](_0x1a522c);for(const _0x2a84f1 of _0x29c65f)this['fire']('suggestionChanged',_0x2a84f1);}),_0x3fb082['model']['on']('applyOperation',(_0x273046,_0x448382)=>{const _0xd89125=_0x448382[0x0];if(!this['_suggestions']['size'])return;if(!_0xd89125['isDocumentOperation'])return;if(_0xd89125['batch']['isUndo']||!_0xd89125['batch']['isLocal'])return;let _0x43d7ef,_0x2f484e;switch(_0xd89125['type']){case'insert':_0x43d7ef=_0x3fb082['model']['createPositionAt'](_0xd89125['position']),_0x2f484e=_0x43d7ef['getShiftedBy'](_0xd89125['howMany']);break;case'split':_0x43d7ef=_0x3fb082['model']['createPositionAt'](_0xd89125['splitPosition']),_0x2f484e=_0x3fb082['model']['createPositionAt'](_0xd89125['moveTargetPosition']);break;case'move':_0x43d7ef=_0x3fb082['model']['createPositionAt'](_0xd89125['targetPosition']),_0x2f484e=_0x43d7ef['getShiftedBy'](_0xd89125['howMany']);break;default:return;}const _0x239f8=_0x3fb082['model']['createRange'](_0x43d7ef,_0x2f484e);_0x3fb082['model']['change'](()=>{for(const {suggestion:_0x4c0ac1,meta:_0x1ad4d0}of this['_findSuggestions'](_0x239f8)){if(_0x4c0ac1['isMultiRange'])continue;if('formatInline'==_0x4c0ac1['type'])continue;const _0x5c1e60=this['_getAttributeKey'](_0x4c0ac1);if(_0x5c1e60&&this['_suggestionsConversion']['isBlockAttribute'](_0x5c1e60)&&'split'!=_0xd89125['type'])continue;const _0x2b3e7a=_0x4c0ac1['data']&&_0x4c0ac1['data']['multipleBlocks'];('formatBlock'!=_0x4c0ac1['type']||'split'==_0xd89125['type']&&!_0x2b3e7a)&&(_0x1ad4d0['containsRangeInObject']||'insertion'==_0x4c0ac1['type']&&_0x1ad4d0['isOwn']||_0x4c0ac1['getFirstRange']()['containsRange'](_0x239f8)&&this['_breakSuggestionMarker'](_0x4c0ac1,_0x43d7ef,_0x2f484e));}});},{'priority':'lowest'}),_0x3fb082['model']['on']('deleteContent',(_0x385f79,_0xb38b21)=>{const _0x332e7f=_0xb38b21[0x0],_0x529598=_0xb38b21[0x1];if(_0x529598&&_0x529598['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x332e7f['isCollapsed'])return;const _0x10c4fa=_0x3fb082['model']['schema'],{start:_0x3abb17,end:_0x2c424a}=_0x332e7f['getFirstRange'](),_0x137501=_0x3abb17['nodeAfter']&&_0x10c4fa['isLimit'](_0x3abb17['nodeAfter'])?null:_0x10c4fa['getNearestSelectionRange'](_0x3abb17,'forward'),_0x3d29ca=_0x2c424a['nodeBefore']&&_0x10c4fa['isLimit'](_0x2c424a['nodeBefore'])?null:_0x10c4fa['getNearestSelectionRange'](_0x2c424a,'backward'),_0xa97127=_0x3fb082['model']['createRange'](_0x137501?_0x137501['start']:_0x3abb17,_0x3d29ca?_0x3d29ca['end']:_0x2c424a);_0x3fb082['model']['change'](_0x20aee7=>{this['markDeletion'](_0xa97127);const _0x4c2d2c=_0x3fb082['model']['schema']['getNearestSelectionRange'](_0xa97127['start']);_0x332e7f['is']('documentSelection')?_0x20aee7['setSelection'](_0x4c2d2c):_0x332e7f['setTo'](_0x4c2d2c);}),_0x385f79['stop']();},{'priority':_0x376ede['normal']+0xa}),_0x3fb082['model']['on']('insertContent',(_0x441ee8,_0x35412e)=>{const _0xe3c870=_0x35412e[_0x35412e['length']-0x1];_0xe3c870&&_0xe3c870['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3fb082['model']['change'](()=>{let _0x553cbd=_0x3fb082['model']['insertContent'](_0x35412e[0x0],_0x35412e[0x1],_0x35412e[0x2],{'forceDefaultExecution':!0x0});if(!_0x553cbd)return;_0x441ee8['return']=_0x553cbd['clone']();const _0x351db6=_0x553cbd['end']['nodeBefore'],_0x45068e=_0x3fb082['model']['schema'];_0x351db6&&_0x45068e['isBlock'](_0x351db6)&&!_0x45068e['isObject'](_0x351db6)&&(_0x553cbd=_0x3fb082['model']['createRange'](_0x553cbd['start'],_0x3fb082['model']['createPositionAt'](_0x351db6,'end'))),this['markInsertion'](_0x553cbd);}),_0x441ee8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5019d5=new Lt(_0x3fb082,this['_suggestions']);_0x3fb082['commands']['add']('acceptSuggestion',_0x5019d5),this['enableCommand']('acceptSuggestion');const _0x2b1b5c=new It(_0x3fb082,this['_suggestions']);_0x3fb082['commands']['add']('discardSuggestion',_0x2b1b5c),this['enableCommand']('discardSuggestion'),_0x3fb082['commands']['add']('acceptAllSuggestions',new yt(_0x3fb082,_0x5019d5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3fb082['commands']['add']('discardAllSuggestions',new yt(_0x3fb082,_0x2b1b5c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3fb082['commands']['add']('acceptSelectedSuggestions',new St(_0x3fb082,_0x5019d5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3fb082['commands']['add']('discardSelectedSuggestions',new St(_0x3fb082,_0x2b1b5c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x36cda8=_0x3fb082['plugins']['get'](_0x151698);this['listenTo'](_0x36cda8,'addComment',(_0x353233,{threadId:_0x37be0c})=>{const _0x5a664b=this['_suggestions']['get'](_0x37be0c);_0x5a664b&&_0x5a664b['commentThread']&&0x1===_0x5a664b['commentThread']['length']&&this['_updateSuggestionData'](_0x37be0c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x36cda8,'removeComment',(_0x4349cb,{threadId:_0x513293})=>{const _0x576261=this['_suggestions']['get'](_0x513293);_0x576261&&_0x576261['commentThread']&&!_0x576261['commentThread']['length']&&this['_updateSuggestionData'](_0x513293,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x1e6a02){const _0x56b2f8='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x380716=0x797a0,_0x31e0da={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x556c0b(_0x51fc8b){const _0x129db7=new window['Promise'](_0x3fac08=>{_0x51fc8b['once']('ready',_0x3fac08);}),_0x3ebe30=window['Date']['now'](),_0x55985b=_0x51fc8b['config']['get']('licenseKey');async function _0x3f4036(){let _0x2d6a01,_0x361848=null,_0x4b3e3b=null;try{return'GPL'==_0x55985b?'NotAllowed':(_0x2d6a01=_0x45d61c(),_0x2d6a01?(_0x2d6a01['usageEndpoint']&&(_0x4b3e3b=_0xdef4bc(_0x2d6a01['usageEndpoint'],_0x2d6a01['jti'])),await _0x499e61()?_0x4f17f8()?_0x49ca47()?'Expired':_0x157095()?('evaluation'==_0x2d6a01['licenseType']&&(_0x361848=_0x3d0c92('EvaluationLimit')),await _0x5b4a2a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x49ca47(){const _0x13be2a=['evaluation','trial']['includes'](_0x2d6a01['licenseType'])?_0x3ebe30/0x3e8:0xe10*_0x380716;return _0x2d6a01['exp']<_0x13be2a;}function _0x4f17f8(){const _0x3a72d5=_0x2d6a01['features'];if(!_0x3a72d5)return!0x1;if(_0x3a72d5['includes']('*'))return!0x0;if(_0x3a72d5['includes']('TC'))return!0x0;if(_0x3a72d5['includes']('RTC')){if(_0x4c6d3c())return!0x0;if(_0x51faf0()||_0x41a272())return!0x0;}return!0x1;}function _0x157095(){const _0x3d2fd5=_0x2d6a01['licensedHosts'];if(!_0x3d2fd5||0x0==_0x3d2fd5['length'])return!0x0;const {hostname:_0x3d0eaa}=new URL(window['location']['href']);if(_0x3d2fd5['includes'](_0x3d0eaa))return!0x0;const _0xcbb181=_0x3d0eaa['split']('.');return _0x3d2fd5['filter'](_0xf21f9d=>_0xf21f9d['includes']('*'))['map'](_0x4fb0a6=>_0x4fb0a6['split']('.'))['filter'](_0x22ce9f=>_0x22ce9f['length']<=_0xcbb181['length'])['map'](_0x541dae=>Array(_0xcbb181['length']-_0x541dae['length'])['fill']('*'===_0x541dae[0x0]?'*':'')['concat'](_0x541dae))['some'](_0x19fb37=>_0xcbb181['every']((_0x1c38fb,_0xa5c297)=>_0x19fb37[_0xa5c297]===_0x1c38fb||'*'===_0x19fb37[_0xa5c297]));}function _0x5b4a2a(){return _0x361848&&_0x4b3e3b?new window['Promise']((_0x2d37a8,_0x32b9ca)=>{_0x361848['then'](_0x2d37a8,_0x32b9ca),_0x4b3e3b['then'](_0x4c687e=>{'Valid'!=_0x4c687e&&_0x2d37a8(_0x4c687e);},_0x32b9ca);}):_0x361848||_0x4b3e3b||'Valid';}}function _0xdef4bc(_0x47c046,_0x550d8d){return new window['Promise'](_0x2e8fe4=>{if(_0x131dd4())return _0x2e8fe4('Valid');_0x1b937d(),_0x51fc8b['decorate']('_sendUsageRequest');let _0x460736=!0x1;const _0x3688f0=_0x32d994();function _0xcc193f(_0x337ed6){return!!_0x337ed6&&('object'==typeof _0x337ed6||'function'==typeof _0x337ed6)&&'function'==typeof _0x337ed6['then']&&'function'==typeof _0x337ed6['catch'];}function _0x17a67d(_0x45aa9c){_0x217941(_0x45aa9c)['then'](_0x3fa82e=>_0x3fa82e&&'ok'==_0x3fa82e['status']?_0x3a47df(_0x2fb552(_0x3688f0+_0x550d8d))!=_0x3fa82e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x136868=>(_0x35f442(),_0x136868),()=>{const _0x283824=_0x126761();return null==_0x283824?(_0x35f442(),'Valid'):_0x3ebe30-_0x283824>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2e8fe4)['catch'](()=>{_0x2e8fe4('UsageLimit');});const _0x2b5053=0x36ee80;function _0x35f442(){const _0x2b87e0='llct-'+_0x3a47df(_0x2fb552(_0x47c046)),_0x1765a5=_0x28e9df(_0x3a47df(window['Math']['ceil'](_0x3ebe30/_0x2b5053)));window['localStorage']['setItem'](_0x2b87e0,_0x1765a5);}function _0x126761(){const _0x3b02d0='llct-'+_0x3a47df(_0x2fb552(_0x47c046)),_0x2d9331=window['localStorage']['getItem'](_0x3b02d0);return _0x2d9331?window['parseInt'](_0x28e9df(_0x2d9331),0x10)*_0x2b5053:null;}function _0x217941(_0x4b1ba4){return new window['Promise']((_0x221dda,_0x469eab)=>{_0x4b1ba4['then'](_0x221dda,_0x469eab),window['setTimeout'](_0x469eab,0x1d4c0);});}}_0x51fc8b['on']('_sendUsageRequest',(_0x379733,_0x25996f)=>{if(_0x25996f[0x0]!=_0x47c046)return _0x2e8fe4('UsageLimit');_0x25996f[0x1]={..._0x25996f[0x1],'requestId':_0x3688f0};},{'priority':'high'}),_0x51fc8b['on']('_sendUsageRequest',_0x278d0b=>{_0xcc193f(_0x278d0b['return'])&&(_0x460736=!0x0,_0x17a67d(_0x278d0b['return']));},{'priority':'low'}),_0x129db7['then'](()=>{_0x460736||_0x2e8fe4('UsageLimit');});});function _0x131dd4(){return'auto'==_0x51fc8b['editing']['view']['_overlayModeHint'];}function _0x1b937d(){_0x51fc8b['editing']['view']['_overlayModeHint']='auto';}}function _0x3d0c92(_0x19fb5b){const _0x410f45=[new window['Promise'](_0x28f1eb=>setTimeout(_0x28f1eb,0x93ecc)),_0x129db7['then'](()=>new window['Promise'](_0x79b366=>{let _0x14cf2a=0x0;_0x51fc8b['model']['on']('applyOperation',(_0x5d9872,_0x529dae)=>{_0x529dae[0x0]['isDocumentOperation']&&_0x14cf2a++,0x5e8==_0x14cf2a&&(_0x79b366(),_0x5d9872['off']());});}))];return window['Promise']['race'](_0x410f45)['then'](()=>_0x19fb5b);}async function _0x3321b4(){await _0x129db7,_0x51fc8b['model']['change']=_0x1ea9a8,_0x51fc8b['model']['enqueueChange']=_0x1ea9a8,_0x51fc8b['enableReadOnlyMode']('model');}function _0x4c6d3c(){return _0x5cd935('WebSocketGateway')&&'connected'==_0x549b3f('WebSocketGateway')['state'];}function _0x51faf0(){return _0x5cd935('RevisionViewerIntegration');}function _0x41a272(){return _0x5cd935('TrackChangesDataGetter');}function _0x4b77ed(_0xf165d3){const _0x57a458=_0x3c9dac();_0x51fc8b[_0x57a458]='trackChangesLicenseKey'+_0xf165d3,'Valid'!=_0xf165d3&&_0x3321b4();}function _0x3c9dac(){const _0x53bcb9=window['String'](window['performance']['now']())['replace']('.','');let _0x1d3a8e='U';for(let _0x83344f=0x0;_0x83344f<_0x53bcb9['length'];_0x83344f+=0x2){let _0x137818=window['parseInt'](_0x53bcb9['substring'](_0x83344f,_0x83344f+0x2));_0x137818>=0x3e&&(_0x137818-=0x3e),_0x1d3a8e+=_0x56b2f8[_0x137818];}return _0x1d3a8e;}function _0x45d61c(){const _0x58768b=_0x55985b['split']('.');if(0x3!=_0x58768b['length'])return null;return _0x5c9e61(_0x58768b[0x1]);function _0x5c9e61(_0x4d0b80){const _0x20e984=_0x598269(_0x4d0b80);return _0x20e984&&_0xba3644()?_0x20e984:null;function _0xba3644(){const _0x547c05=_0x20e984['jti'],_0x408311=window['parseInt'](_0x547c05['substring'](_0x547c05['length']-0x8),0x10),_0x128fd5={..._0x20e984,'jti':_0x547c05['substring'](0x0,_0x547c05['length']-0x8)};return delete _0x128fd5['vc'],_0x2fb552(_0x128fd5)==_0x408311;}}}async function _0x499e61(){let _0x147a5e=!0x0;try{const [_0x382bed,_0x2b5488,_0x283f24]=_0x55985b['split']('.');return _0x5df1d2(_0x382bed),await _0x3524cd(_0x382bed,_0x2b5488,_0x283f24),_0x147a5e;}catch{return!0x1;}function _0x5df1d2(_0x57b494){const _0x57ef7=_0x598269(_0x57b494);_0x57ef7&&'ES256'==_0x57ef7['alg']||(_0x147a5e=!0x1);}async function _0x3524cd(_0x1d3653,_0x34e7ee,_0x2512f5){const _0x260116=window['Uint8Array']['from'](_0x292e64(_0x2512f5),_0x4e0d2c=>_0x4e0d2c['charCodeAt'](0x0)),_0x409025=new window['TextEncoder']()['encode'](_0x1d3653+'.'+_0x34e7ee),_0x3036e4=window['crypto']['subtle'];if(!_0x3036e4)return;const _0x8db22=await _0x3036e4['importKey']('jwk',_0x31e0da,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3036e4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x8db22,_0x260116,_0x409025)||(_0x147a5e=!0x1);}}function _0x598269(_0xd1b32d){return _0xd1b32d['startsWith']('ey')?JSON['parse'](_0x292e64(_0xd1b32d)):null;}function _0x292e64(_0x503697){return window['atob'](_0x503697['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2fb552(_0xfac094){let _0x488ae4=0x1505;function _0x1f5e1c(_0x5ad6a5){for(let _0x9e3ca2=0x0;_0x9e3ca2<_0x5ad6a5['length'];_0x9e3ca2++){const _0x28b23c=_0x5ad6a5['charCodeAt'](_0x9e3ca2);_0x488ae4=(_0x488ae4<<0x5)+_0x488ae4+_0x28b23c,_0x488ae4&=_0x488ae4;}}function _0x1dd4ff(_0x1ac1ac){Array['isArray'](_0x1ac1ac)?_0x1ac1ac['forEach'](_0x1dd4ff):_0x1ac1ac&&'object'==typeof _0x1ac1ac?Object['entries'](_0x1ac1ac)['sort']()['forEach'](([_0x2fb0db,_0x516b06])=>{_0x1f5e1c(_0x2fb0db),_0x1dd4ff(_0x516b06);}):_0x1f5e1c(window['String'](_0x1ac1ac));}return _0x1dd4ff(_0xfac094),_0x488ae4>>>0x0;}function _0x3a47df(_0xa03c15){return _0xa03c15['toString'](0x10)['padStart'](0x8,'0');}function _0x28e9df(_0x15b6c3){return _0x15b6c3['split']('')['reverse']()['join']('');}function _0x5cd935(_0x4b4f6e){return _0x51fc8b['plugins']['has'](_0x4b4f6e);}function _0x549b3f(_0xa4bc7e){return _0x51fc8b['plugins']['get'](_0xa4bc7e);}function _0x1ea9a8(){}_0x4b77ed(await _0x3f4036());}_0x556c0b(_0x1e6a02['editor']);}(this);}set adapter(_0x28bdd0){if(this['_adapter'])throw new _0x1aad84('track-changes-adapter-already-set',this);this['_adapter']=_0x28bdd0;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x39158c=!0x1,toJSON:_0x3d0d42=!0x1}={}){const _0x3cc41d=[];for(const _0x8b3284 of this['_suggestions']['values']())_0x39158c&&!_0x8b3284['isInContent']||_0x3cc41d['push'](_0x8b3284);return _0x3d0d42?_0x3cc41d['map'](_0x454637=>_0x454637['toJSON']()):_0x3cc41d;}getSuggestion(_0x593e90){const _0x1f5210=this['_suggestions']['get'](_0x593e90);if(!_0x1f5210)throw new _0x1aad84('track-changes-suggestion-not-found',this);return _0x1f5210;}hasSuggestion(_0x195094){return this['_suggestions']['has'](_0x195094);}addSuggestionData(_0x6194f5){const {authorId:_0x48f87a,id:_0x1f694c,originalSuggestionId:_0x28817d,attributes:_0x3bc4e6}=_0x6194f5,[_0x4b8cc8,_0x5dbabb]=_0x6194f5['type']['split'](':'),_0x585ae0=this['_suggestions']['get'](_0x1f694c)||this['_createSuggestion'](_0x4b8cc8,_0x5dbabb,_0x1f694c,_0x48f87a,_0x3bc4e6,_0x28817d);if(this['_addThreadToSuggestion'](_0x585ae0),this['_checkSuggestionCorrectness'](_0x585ae0,_0x4b8cc8,_0x5dbabb||null,_0x48f87a),_0x585ae0['createdAt']=_0x6194f5['createdAt'],_0x585ae0['_isDataLoaded']=!0x0,_0x3bc4e6&&_0x3bc4e6['@external']){const _0x186bf7=_0x3bc4e6['@external'],_0xfc4a7f=this['_getExternalAuthor'](_0x186bf7['authorName']);_0x585ae0['authoredAt']=_0x186bf7['createdAt'],_0x585ae0['author']=_0xfc4a7f;}else _0x585ae0['authoredAt']=_0x6194f5['createdAt'];switch(_0x6194f5['data']&&(_0x585ae0['data']=_0x6194f5['data']),_0x6194f5['attributes']&&(_0x585ae0['attributes']=_0x6194f5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x585ae0['_saved']=!0x0),this['_suggestionState']['get'](_0x585ae0)){case'notReady':this['_suggestionState']['set'](_0x585ae0,'dataReady');break;case'markerReady':_0x585ae0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x585ae0])),this['_refreshSuggestionsChain'](new Set([_0x585ae0])),this['_suggestionState']['set'](_0x585ae0,'ready'),this['fire']('suggestionLoaded',_0x585ae0)):this['_suggestionState']['set'](_0x585ae0,'removed');}return _0x585ae0;}acceptSuggestion(_0x560e82){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xc4e6b1 of _0x560e82['getAllAdjacentSuggestions']())_0xc4e6b1['accept']();});});}discardSuggestion(_0x455d5d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d1715 of _0x455d5d['getAllAdjacentSuggestions']())_0x2d1715['discard']();});});}['enableCommand'](_0x1e8ea3,_0x5b7807){const _0x257d33=this['editor']['commands']['get'](_0x1e8ea3);if(!_0x257d33)throw new _0x1aad84('track-changes-command-not-found',this,{'commandName':_0x1e8ea3});if(this['_enabledCommands']['has'](_0x257d33))throw new _0x1aad84('track-changes-enable-command-twice',this,{'commandName':_0x1e8ea3});this['_enabledCommands']['add'](_0x257d33),_0x5b7807&&_0x257d33['on']('execute',(_0x4f0964,_0x3acd4e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3acd4e['length']>0x0&&_0x3acd4e[_0x3acd4e['length']-0x1]&&_0x3acd4e[_0x3acd4e['length']-0x1]['forceDefaultExecution']?_0x3acd4e['pop']():(_0x4f0964['return']=_0x5b7807((..._0x22c9f2)=>_0x257d33['execute'](..._0x22c9f2,{'forceDefaultExecution':!0x0}),..._0x3acd4e),_0x4f0964['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x87f645){let _0x34b554,_0x438344;const _0x296882=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x34b554=_0x87f645();}catch(_0x479beb){_0x438344=_0x479beb;}return _0x296882||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x438344&&_0x1aad84['rethrowUnexpectedError'](_0x438344,this),_0x34b554;}markInsertion(_0x49e3be,_0x5d545a=null,_0x47c1f7={}){if(_0x49e3be['isCollapsed'])return null;const _0x23d37=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x47c1f7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5bdf4b,meta:_0x4ac87b}of this['_findSuggestions'](_0x49e3be,'insertion'))if(_0x4ac87b['isOwn']){if(!_0x4ac87b['isNextTo']){if(_0x4ac87b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x5bdf4b,_0x47c1f7))continue;return _0x5bdf4b;}if(An(_0x5bdf4b,_0x47c1f7))return _0x5bdf4b;this['_breakSuggestionMarker'](_0x5bdf4b,_0x49e3be['start'],_0x49e3be['end']);break;}if(_0x5d545a==_0x5bdf4b['subType']&&An(_0x5bdf4b,_0x47c1f7)){const _0x586bd1=_0x5bdf4b['getFirstRange']();return _0x586bd1['start']['isEqual'](_0x49e3be['end'])?this['_setSuggestionRange'](_0x5bdf4b,this['_model']['createRange'](_0x49e3be['start'],_0x586bd1['end'])):this['_setSuggestionRange'](_0x5bdf4b,this['_model']['createRange'](_0x586bd1['start'],_0x49e3be['end'])),_0x5bdf4b;}}const _0xdd3f02=_0x32d994(),_0x1c95f9=_0x23d37['id'],_0x45787f=_0x5d545a?'insertion:'+_0x5d545a:'insertion',_0x214798=this['_setSuggestionData']({'id':_0xdd3f02,'type':_0x45787f,'createdAt':new Date(),'authorId':_0x1c95f9,'attributes':_0x47c1f7});return this['_addSuggestionMarker'](_0x45787f,_0xdd3f02,_0x1c95f9,_0x49e3be),_0x214798;}markMultiRangeInsertion(_0x591098,_0x3efd0e='multi',_0x17841a={}){const _0x1031da=this['editor']['plugins']['get']('Users')['me'],_0x1af719=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3efd0e,'join');this['_trackingSessionId']&&(_0x17841a['trackingSessionId']=this['_trackingSessionId']);for(const _0x1bbb17 of this['getSuggestions']())if(_0x1bbb17['author']['id']==_0x1031da['id']&&'insertion'==_0x1bbb17['type']&&_0x1bbb17['subType']==_0x3efd0e&&An(_0x1bbb17,_0x17841a)&&(_0x1af719(_0x1bbb17['getRanges'](),_0x591098)||_0x1af719(_0x591098,_0x1bbb17['getRanges']()))){for(const _0x520cfc of _0x591098)_0x1bbb17['addRange'](_0x520cfc);return _0x1bbb17;}for(const {suggestion:_0x5cfefe,meta:_0x574a03}of this['_findSuggestions'](_0x591098,'insertion')){if(!_0x574a03['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x574a03['containsRangeInObject'])continue;if(!An(_0x5cfefe,_0x17841a))continue;let _0x329236=!0x0;for(const _0x5d0a5d of _0x5cfefe['getRanges']())for(const _0x3c6f80 of _0x591098)if(!_0x5d0a5d['containsRange'](_0x3c6f80)){_0x329236=!0x1;break;}if(_0x329236)return _0x5cfefe;}const _0x4cd04b=_0x32d994(),_0xe88a6b=_0x1031da['id'],_0xc793ae='insertion:'+_0x3efd0e,_0x2ebf57=this['_setSuggestionData']({'id':_0x4cd04b,'type':_0xc793ae,'createdAt':new Date(),'authorId':_0xe88a6b,'attributes':_0x17841a});for(const _0x5e2f41 of _0x591098)this['_addSuggestionMarker'](_0xc793ae,_0x4cd04b,_0xe88a6b,_0x5e2f41,Ot['getMultiRangeId']());return _0x2ebf57;}markInlineFormat(_0xa29ea9,_0x4e4ff8,_0x5ac67e=null,_0xd93cf={}){if(_0x5ac67e=_0x5ac67e||fn(_0x4e4ff8),_0xa29ea9['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xd93cf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26f0e0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ac67e,'accept');return this['forceDefaultExecution'](()=>_0x26f0e0([_0xa29ea9],_0x4e4ff8,_0xd93cf)),null;}const _0x4ef020=this['editor']['plugins']['get']('Users')['me'],_0x219f1f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3859d8,meta:_0x3e0bff}of this['_findSuggestions'](_0xa29ea9,'insertion'))_0x3e0bff['isOwn']&&!_0x3e0bff['isInsideObject']&&_0x219f1f['push'](..._0x3859d8['getRanges']());}const _0x186c07=function(_0x512fdc,_0x1cc312){const _0x2a2dc0=[];for(const _0x1c743f of _0x1cc312){const _0x91c253=_0x512fdc['getIntersection'](_0x1c743f);_0x91c253&&_0x2a2dc0['push'](_0x91c253);}return _0x2a2dc0;}(_0xa29ea9,_0x219f1f),_0x577a83=function(_0x4be876,_0x2bc7e6){const _0x5bfcf1=[_0x4be876];for(const _0x12a794 of _0x2bc7e6){let _0x4665a7=0x0;for(;_0x4665a7<_0x5bfcf1['length'];){const _0xb28f92=_0x5bfcf1[_0x4665a7]['getDifference'](_0x12a794);_0x5bfcf1['splice'](_0x4665a7,0x1,..._0xb28f92),_0x4665a7+=_0xb28f92['length'];}}return _0x5bfcf1;}(_0xa29ea9,_0x219f1f);_0x186c07['length']&&this['_model']['change'](()=>{for(const _0xb3e279 of _0x186c07){const _0xd047aa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ac67e,'accept');this['forceDefaultExecution'](()=>_0xd047aa([_0xb3e279],_0x4e4ff8,_0xd93cf));}});for(const _0x8b5623 of _0x577a83){let _0x37e9f6=null,_0x23afae=_0x8b5623['start'],_0x203828=_0x8b5623['end'];for(const {suggestion:_0x165cd0,meta:_0x282cca}of this['_findSuggestions'](_0x8b5623,'formatInline')){if(!_0x282cca['isOwn'])continue;if(_0x165cd0['subType']!=_0x5ac67e)continue;if(!An(_0x165cd0,_0xd93cf))continue;const _0x4ad12a=_0x165cd0['getFirstRange']();if(_0x4ad12a['containsRange'](_0x8b5623,!0x0))return null;_0x23afae=_0x23afae['isBefore'](_0x4ad12a['start'])?_0x23afae:_0x4ad12a['start'],_0x203828=_0x203828['isAfter'](_0x4ad12a['end'])?_0x203828:_0x4ad12a['end'],_0x37e9f6?_0x4ad12a['start']['isBefore'](_0x37e9f6['getFirstRange']()['start'])?(_0x37e9f6['removeMarkers'](),_0x37e9f6=_0x165cd0):_0x165cd0['removeMarkers']():_0x37e9f6=_0x165cd0;}const _0x3604a8=this['_model']['createRange'](_0x23afae,_0x203828);if(_0x37e9f6)this['_setSuggestionRange'](_0x37e9f6,_0x3604a8);else{const _0x1b4513=_0x32d994(),_0x2c6ce4=_0x4ef020['id'];this['_setSuggestionData']({'id':_0x1b4513,'type':'formatInline:'+_0x5ac67e,'data':_0x4e4ff8,'createdAt':new Date(),'authorId':_0x2c6ce4,'attributes':_0xd93cf}),this['_addSuggestionMarker']('formatInline:'+_0x5ac67e,_0x1b4513,_0x2c6ce4,_0x3604a8);}}return null;}markBlockFormat(_0xc2f30c,_0x3ee961,_0x263780=[],_0x49eef8=null,_0xf4942e={}){_0x3ee961['formatGroupId']||(_0x3ee961['formatGroupId']=_0x3ee961['commandName']),_0x3ee961['multipleBlocks']=_0xc2f30c['is']('range'),_0x49eef8=_0x49eef8||fn(_0x3ee961);const _0x33621d=_0x263780['map'](_0x4c17ac=>pn(_0x4c17ac,this['_model'])),_0x4be82e=_0xc2f30c['is']('range')?_0xc2f30c:pn(_0xc2f30c,this['_model']);if(this['_trackingSessionId']&&(_0xf4942e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f21b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49eef8,'accept');return this['forceDefaultExecution'](()=>_0x3f21b4([_0x4be82e],_0x3ee961,_0xf4942e)),null;}_0x33621d['push'](_0x4be82e);let _0x27a10b=!0x0;for(const _0x50e880 of _0x33621d)if(!this['_rangeIsInLocalUserInsertion'](_0x50e880)){_0x27a10b=!0x1;break;}if(_0x27a10b&&'always'!==this['_trackFormatChanges']){const _0x1b6319=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49eef8,'accept');return this['forceDefaultExecution'](()=>_0x1b6319([_0x4be82e],_0x3ee961,_0xf4942e)),null;}let _0x5c0bd0=null,_0x304874=_0x4be82e['start'],_0x9f5d33=_0x4be82e['end'];for(const {suggestion:_0x9ffe0b,meta:_0x4937d4}of this['_findSuggestions'](_0x4be82e,'formatBlock')){if(!_0x4937d4['isOwn'])continue;if(_0x4937d4['isNextTo']||_0x4937d4['containsRangeInObject']||_0x4937d4['isInsideObject'])continue;if(_0x9ffe0b['data']['formatGroupId']!=_0x3ee961['formatGroupId'])continue;if(!An(_0x9ffe0b,_0xf4942e))continue;const _0xaff778=_0x9ffe0b['getFirstRange']();if(_0x9ffe0b['subType']==_0x49eef8){if(_0xaff778['containsRange'](_0x4be82e,!0x0))return null;_0x304874=_0x304874['isBefore'](_0xaff778['start'])?_0x304874:_0xaff778['start'],_0x9f5d33=_0x9f5d33['isAfter'](_0xaff778['end'])?_0x9f5d33:_0xaff778['end'],_0x5c0bd0?_0xaff778['start']['isBefore'](_0x5c0bd0['getFirstRange']()['start'])?(_0x5c0bd0['removeMarkers'](),_0x5c0bd0=_0x9ffe0b):_0x9ffe0b['removeMarkers']():_0x5c0bd0=_0x9ffe0b;}else{const _0x5c2087=_0x4be82e['getIntersection'](_0xaff778);this['_cutOutSuggestionMarker'](_0x9ffe0b,_0x5c2087);}}const _0x1decb7=this['editor']['plugins']['get']('Users')['me'],_0x4c33b7=_0x32d994(),_0x98a499=_0x1decb7['id'];if(_0x5c0bd0)return this['_setSuggestionRange'](_0x5c0bd0,this['_model']['createRange'](_0x304874,_0x9f5d33)),_0x5c0bd0;{const _0x52631=this['_setSuggestionData']({'id':_0x4c33b7,'type':'formatBlock:'+_0x49eef8,'data':_0x3ee961,'createdAt':new Date(),'authorId':_0x98a499,'attributes':_0xf4942e});return this['_addSuggestionMarker']('formatBlock:'+_0x49eef8,_0x4c33b7,_0x98a499,this['_model']['createRange'](_0x304874,_0x9f5d33)),_0x52631;}}markMultiRangeBlockFormat(_0x3c442e,_0x44a690,_0x1d2ffc=[],_0x1b0a1f=null,_0x3eacbd={}){_0x44a690['formatGroupId']||(_0x44a690['formatGroupId']=_0x44a690['commandName']);const _0x5e0e36=_0x3c442e[0x0];_0x44a690['multipleBlocks']=_0x5e0e36['is']('range'),_0x1b0a1f=_0x1b0a1f||fn(_0x44a690);const _0xf8867f=_0x1d2ffc['map'](_0x130413=>pn(_0x130413,this['_model'])),_0x1a71ef=_0x5e0e36['is']('range')?_0x3c442e:_0x3c442e['map'](_0x3104de=>pn(_0x3104de,this['_model']));if(this['_trackingSessionId']&&(_0x3eacbd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x483daf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b0a1f,'accept');return this['forceDefaultExecution'](()=>_0x483daf(_0x1a71ef,_0x44a690,_0x3eacbd)),null;}_0xf8867f['push'](..._0x1a71ef);let _0x192367=!0x0;for(const _0x57f2d9 of _0xf8867f)if(!this['_rangeIsInLocalUserInsertion'](_0x57f2d9)){_0x192367=!0x1;break;}if(_0x192367&&'always'!==this['_trackFormatChanges']){const _0x4e1981=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b0a1f,'accept');return this['forceDefaultExecution'](()=>_0x4e1981(_0x1a71ef,_0x44a690,_0x3eacbd)),null;}const _0x20ad8d=this['editor']['plugins']['get']('Users')['me'];for(const _0x391911 of this['getSuggestions']()){const _0x2117d7=_0x391911['data'];if(_0x391911['author']['id']!=_0x20ad8d['id'])continue;if('formatBlock'!=_0x391911['type']||_0x2117d7['formatGroupId']!=_0x44a690['formatGroupId'])continue;if(!An(_0x391911,_0x3eacbd))continue;const _0x54c6e9=_0x391911['subType']==_0x1b0a1f;for(let _0x3df457=0x0;_0x3df457<_0x1a71ef['length'];_0x3df457++){const _0x4f5b07=_0x1a71ef[_0x3df457];for(const _0x2ff758 of _0x391911['getMarkers']()){const _0xdc44be=_0x2ff758['getRange']();if(_0x4f5b07['isEqual'](_0xdc44be)){_0x54c6e9?(_0x1a71ef['splice'](_0x3df457,0x1),_0x3df457--):_0x391911['removeMarker'](_0x2ff758['name']);break;}}}}if(0x0==_0x1a71ef['length'])return null;const _0xaa09cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b0a1f,'join');for(const _0x2fcfd1 of this['getSuggestions']()){const _0x33b53f=_0x2fcfd1['data'];if(_0x2fcfd1['author']['id']==_0x20ad8d['id']&&('formatBlock'==_0x2fcfd1['type']&&_0x33b53f['formatGroupId']==_0x44a690['formatGroupId']&&_0x2fcfd1['subType']==_0x1b0a1f&&An(_0x2fcfd1,_0x3eacbd)&&(_0xaa09cb(_0x2fcfd1['getRanges'](),_0x1a71ef)||_0xaa09cb(_0x1a71ef,_0x2fcfd1['getRanges']())))){for(const _0x7bc8c3 of _0x1a71ef)_0x2fcfd1['addRange'](_0x7bc8c3);return _0x2fcfd1;}}const _0x4cffc9=_0x32d994(),_0x3ce729=_0x20ad8d['id'],_0x5136b7='formatBlock:'+_0x1b0a1f,_0x5762d3=this['_setSuggestionData']({'id':_0x4cffc9,'type':_0x5136b7,'data':_0x44a690,'createdAt':new Date(),'authorId':_0x3ce729,'attributes':_0x3eacbd});for(const _0x54e221 of _0x1a71ef)this['_addSuggestionMarker'](_0x5136b7,_0x4cffc9,_0x3ce729,_0x54e221,Ot['getMultiRangeId']());return _0x5762d3;}markDeletion(_0x21c85c,_0x105b2b=null,_0x31b1ab={}){if(_0x21c85c['isCollapsed'])return null;const _0x482028=this['editor']['plugins']['get']('Users')['me'],_0x419846=new at(_0x21c85c['start'],_0x21c85c['end']);this['_trackingSessionId']&&(_0x31b1ab['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2dc9fc,meta:_0x5b0c04}of this['_findSuggestions'](_0x419846,'insertion'))if(_0x5b0c04['isOwn']&&!_0x5b0c04['isNextTo']){if(_0x2dc9fc['isMultiRange']){const _0x21c896=_0x2dc9fc['getRanges']()['filter'](_0x5ced82=>'$graveyard'!=_0x5ced82['root']['rootName']);if(_0x21c896['every'](_0x27742f=>_0x419846['containsRange'](_0x27742f,!0x0))&&_0x2dc9fc['discard'](),_0x21c896['some'](_0x23745e=>_0x23745e['containsRange'](_0x419846,!0x0))){const _0x225f4a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x105b2b,'accept');return this['forceDefaultExecution'](()=>_0x225f4a([_0x419846],null,_0x31b1ab)),null;}}else{const _0x2dbc95=_0x419846['getIntersection'](_0x2dc9fc['getFirstRange']());null!==_0x2dbc95&&_0x2dc9fc['_onDiscard']([_0x2dbc95],null,_0x31b1ab);}}if(_0x419846['detach'](),_0x419846['isCollapsed']||'$graveyard'==_0x419846['root']['rootName'])return null;let _0x1eadec=null,_0x37def4=_0x419846['start'],_0x2c6c6b=_0x419846['end'];const _0x2dd31a=this['_findSuggestions'](_0x419846,'deletion');for(const {suggestion:_0x3e8949,meta:_0x5c1f9c}of _0x2dd31a){const _0x43e483=this['_model']['createRange'](_0x37def4,_0x2c6c6b);if(_0x5c1f9c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c1f9c['containsRangeInObject']&&!_0x5c1f9c['isInsideObject'])){if(_0x3e8949['isMultiRange']){if(!An(_0x3e8949,_0x31b1ab))continue;let _0x18ad58=!0x0;for(const _0x53edf8 of _0x3e8949['getRanges']()){if(_0x53edf8['containsRange'](_0x43e483,!0x0))return _0x3e8949;_0x43e483['containsRange'](_0x53edf8)||(_0x18ad58=!0x1);}_0x18ad58&&_0x3e8949['discard']();}else{const _0x27fd9a=_0x3e8949['getFirstRange']();if(_0x27fd9a['containsRange'](_0x43e483,!0x0))return _0x3e8949;if(!An(_0x3e8949,_0x31b1ab)){_0x43e483['containsRange'](_0x27fd9a)?_0x3e8949['removeMarkers']():_0x27fd9a['containsPosition'](_0x37def4)?_0x37def4=_0x27fd9a['end']:_0x27fd9a['containsPosition'](_0x2c6c6b)&&(_0x2c6c6b=_0x27fd9a['start']);continue;}_0x37def4=_0x37def4['isBefore'](_0x27fd9a['start'])?_0x37def4:_0x27fd9a['start'],_0x2c6c6b=_0x2c6c6b['isAfter'](_0x27fd9a['end'])?_0x2c6c6b:_0x27fd9a['end'],_0x31b1ab=Object['assign']({},_0x3e8949['attributes']),_0x1eadec?_0x27fd9a['start']['isBefore'](_0x1eadec['getFirstRange']()['start'])?(_0x1eadec['removeMarkers'](),_0x1eadec=_0x3e8949):_0x3e8949['removeMarkers']():_0x1eadec=_0x3e8949;}}}if(_0x1eadec)return this['_setSuggestionRange'](_0x1eadec,this['_model']['createRange'](_0x37def4,_0x2c6c6b)),_0x1eadec;{const _0x2e956e=_0x32d994(),_0x583a4c=this['_model']['createRange'](_0x37def4,_0x2c6c6b),_0x581bf5=_0x482028['id'],_0x10cf86=_0x105b2b?'deletion:'+_0x105b2b:'deletion',_0x153591=this['_setSuggestionData']({'id':_0x2e956e,'type':_0x10cf86,'createdAt':new Date(),'authorId':_0x581bf5,'attributes':_0x31b1ab});return this['_addSuggestionMarker'](_0x10cf86,_0x2e956e,_0x581bf5,_0x583a4c),_0x153591;}}markMultiRangeDeletion(_0x1513da,_0x29e958='multi',_0x5bed44={}){const _0x9d3fc4=this['editor']['plugins']['get']('Users')['me'],_0x146ef3=_0x1513da['map'](_0x25453a=>new at(_0x25453a['start'],_0x25453a['end'])),_0x33f353=new Set();this['_trackingSessionId']&&(_0x5bed44['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x578204,meta:_0x2a8c78}of this['_findSuggestions'](_0x146ef3,'insertion'))_0x2a8c78['isOwn']&&!_0x2a8c78['isNextTo']&&_0x33f353['add'](_0x578204);for(const _0xe4ead7 of _0x33f353)if(_0xe4ead7['isMultiRange']){const _0x3e5422=_0xe4ead7['getRanges']();if(_0xe4ead7['attributes']&&_0xe4ead7['attributes']['skipNestingCheck']||_0x3e5422['every'](_0x26e9c8=>_0x146ef3['some'](_0xc7e777=>_0xc7e777['containsRange'](_0x26e9c8,!0x0)))&&_0xe4ead7['discard'](),_0x146ef3['every'](_0x32dc31=>_0x3e5422['some'](_0x4de12b=>_0x4de12b['containsRange'](_0x32dc31,!0x0)))){const _0x23b496=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29e958,'accept');return this['forceDefaultExecution'](()=>_0x23b496(_0x1513da,null,_0x5bed44)),null;}}else{const _0x595ae5=_0xe4ead7['getFirstRange']();if(_0x146ef3['some'](_0x13790f=>_0x13790f['containsRange'](_0x595ae5,!0x0))&&_0xe4ead7['discard'](),_0x146ef3['every'](_0x495a79=>_0x595ae5['containsRange'](_0x495a79,!0x0))){const _0x361496=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29e958,'accept');return this['forceDefaultExecution'](()=>_0x361496(_0x146ef3,null,_0x5bed44)),null;}}const _0x2a8b1d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29e958,'join');let _0x1dead4=null;for(const _0x3fab56 of this['getSuggestions']())if(_0x3fab56['author']['id']==_0x9d3fc4['id']&&_0x3fab56['isInContent']&&'deletion'==_0x3fab56['type']&&_0x3fab56['subType']==_0x29e958&&An(_0x3fab56,_0x5bed44)&&(_0x2a8b1d(_0x3fab56['getRanges'](),_0x146ef3)||_0x2a8b1d(_0x146ef3,_0x3fab56['getRanges']()))){if(_0x1dead4){if(_0x3fab56['commentThread']&&_0x3fab56['commentThread']['length'])continue;for(const _0x1ef94f of _0x3fab56['getRanges']())_0x1dead4['isIntersectingWithRange'](_0x1ef94f)||_0x1dead4['addRange'](_0x1ef94f);_0x3fab56['removeMarkers']();}else{_0x1dead4=_0x3fab56;for(const _0x54d9af of _0x146ef3)_0x3fab56['isIntersectingWithRange'](_0x54d9af)||_0x3fab56['addRange'](_0x54d9af);}}if(_0x1dead4)return _0x1dead4;_0x33f353['clear']();for(const {suggestion:_0x5311b2,meta:_0xca1412}of this['_findSuggestions'](_0x146ef3,'deletion'))_0xca1412['isOwn']&&(this['_mergeNestedSuggestions']||!_0xca1412['containsRangeInObject']&&!_0xca1412['isInsideObject'])&&An(_0x5311b2,_0x5bed44)&&_0x33f353['add'](_0x5311b2);for(const _0x426621 of _0x33f353){const _0x2e00f3=_0x426621['getRanges']();if((!_0x5bed44||!_0x5bed44['skipNestingCheck'])&&_0x146ef3['every'](_0x2c3bf0=>_0x2e00f3['some'](_0xd2d439=>_0xd2d439['containsRange'](_0x2c3bf0,!0x0))))return _0x426621;_0x426621['attributes']&&_0x426621['attributes']['skipNestingCheck']||_0x2e00f3['every'](_0x4ab8a9=>_0x146ef3['some'](_0x523a37=>_0x523a37['containsRange'](_0x4ab8a9,!0x0)))&&_0x426621['discard']();}const _0x292022=_0x32d994(),_0x366ec7=_0x9d3fc4['id'],_0x7a47c1='deletion:'+_0x29e958,_0x232b95=this['_setSuggestionData']({'id':_0x292022,'type':_0x7a47c1,'createdAt':new Date(),'authorId':_0x366ec7,'attributes':_0x5bed44});for(const _0x7ac7ad of _0x146ef3)_0x7ac7ad['detach'](),_0x7ac7ad['isCollapsed']||'$graveyard'==_0x7ac7ad['root']['rootName']||this['_addSuggestionMarker'](_0x7a47c1,_0x292022,_0x366ec7,_0x7ac7ad,Ot['getMultiRangeId']());return _0x232b95;}markAttributeChange(_0x16ba07,_0x60bf66,_0x31aa6c,_0x5d70a9,_0x4e8f89){if(_0x16ba07['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x37671a=this['editor']['plugins']['get']('Users')['me']['id'],_0x5aa690=Array['from'](this['_suggestions']['values']())['filter'](_0x238d8e=>'attribute'==_0x238d8e['type']&&_0x238d8e['data']['key']==_0x60bf66&&_0x238d8e['isIntersectingWithRange'](_0x16ba07));if(this['_trackingSessionId']&&(_0x4e8f89['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5d7517=this['_findSuggestions'](_0x16ba07,'insertion')['filter'](({meta:_0x239733})=>_0x239733['isOwn']&&!_0x239733['isInsideObject']&&!_0x239733['isNextTo'])['map'](({suggestion:_0x3d6559})=>_0x3d6559);_0x5aa690['unshift'](..._0x5d7517);}const _0x3c1733=new Map([[_0x16ba07,_0x31aa6c]]);for(const _0xcf327d of _0x5aa690){const _0x26e929='attribute'==_0xcf327d['type']?_0xcf327d['data']['oldValue']:void 0x0,_0x2d694b=_0xcf327d['getFirstRange'](),_0x52d0d5=Array['from'](_0x3c1733['keys']())['find'](_0x486067=>_0x486067['isIntersecting'](_0x2d694b));if(!_0x52d0d5)continue;const _0x2968a9=_0x52d0d5['getDifference'](_0x2d694b);this['_suggestionsConversion']['isBlockAttribute'](_0x60bf66)&&'insertion'==_0xcf327d['type']&&0x0!=_0x2968a9['length']||(_0x3c1733['delete'](_0x52d0d5),_0x2968a9['forEach'](_0x2218c9=>{_0x3c1733['set'](_0x2218c9,_0x31aa6c);}),'insertion'!=_0xcf327d['type']&&_0x26e929!=_0x5d70a9&&_0x3c1733['set'](_0x52d0d5['getIntersection'](_0x2d694b),_0x26e929));}const _0x302d29=[];for(const [_0x44b642,_0xe387a7]of _0x3c1733){const _0x341121=_0x32d994(),_0x23ed3e={'key':_0x60bf66,'oldValue':_0xe387a7,'newValue':_0x5d70a9};_0x60bf66['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':_0x60bf66});const _0x23106c=('attribute:'+_0x60bf66+'|'+fn({'newValue':_0x5d70a9}))['substring'](0x0,0x3c),_0x9108af=this['_setSuggestionData']({'id':_0x341121,'type':_0x23106c,'data':_0x23ed3e,'createdAt':new Date(),'authorId':_0x37671a,'attributes':_0x4e8f89});_0x302d29['push'](_0x9108af),this['_addSuggestionMarker'](_0x23106c,_0x341121,_0x37671a,_0x44b642);}return _0x302d29;}enableDefaultAttributesIntegration(_0x46e804){this['enableCommand'](_0x46e804,(_0x3dc078,..._0x3fbdf4)=>{this['recordAttributeChanges'](()=>{_0x3dc078(..._0x3fbdf4);});});}startTrackingSession(_0x6e07d6){return this['_trackingSessionId']=void 0x0!==_0x6e07d6?_0x6e07d6:_0x32d994(),this['_trackingSessionId'];}_getAttributeKey(_0x59a992){return'attribute'==_0x59a992['type']?Cn(_0x59a992['subType']):null;}_applyOperationsAsSuggestions(_0x1a04c8){if(0x0==_0x1a04c8['length'])return;const _0x571f31=this['editor'],_0x3c5f9c=[],_0x44de2e=_0x320021=>{const _0x1e59de=_0x320021['_aiSource'];return _0x1e59de?{'@ai':{'type':_0x1e59de}}:{};},_0x40b18f=(_0x4d5bb7,_0x482a19,_0x5f7803,_0x5a11b3)=>{const _0x4c1bb7=new Set(_0x5a11b3['flatMap'](_0x12bb60=>_0x12bb60['getMarkerNames']()));let _0x4901b8=!0x1;for(let _0x39a049=_0x482a19;_0x39a049<_0x4d5bb7['operations']['length'];_0x39a049++){const _0xeac4ad=_0x4d5bb7['operations'][_0x39a049];if('marker'==_0xeac4ad['type']){if(!_0x4c1bb7['has'](_0xeac4ad['name']))continue;_0x4901b8=!0x0;}_0xeac4ad['_aiSource']=_0x5f7803;}return _0x4901b8;};_0x571f31['model']['change'](_0x48f123=>{for(let _0x757d51=0x0;_0x757d51<_0x1a04c8['length'];_0x757d51++){const _0x52965e=_0x1a04c8[_0x757d51],_0x1efd99=_0x52965e['_aiSource'];if(_0x52965e['baseVersion']=_0x571f31['model']['document']['version'],_0x52965e['isDocumentOperation']=!0x0,_0x203976(_0x52965e))continue;if(an(_0x52965e)){const _0xb8417e=_0x2f1d6b(_0x52965e['newRange'],_0x571f31['model']);_0x3c5f9c['unshift']({'range':at['fromRange'](_0xb8417e),'operation':_0x52965e});continue;}const _0x3442fe=_0x48f123['batch']['operations']['length']+0x1;let _0x3eb42f=[];switch(_0x52965e['type']){case'rename':{const _0x193394=_0x52965e['oldName'],_0x1aa327=_0x52965e['newName'];if(_0x193394==_0x1aa327)break;_0x48f123['batch']['addOperation'](_0x52965e),_0x571f31['model']['applyOperation'](_0x52965e);const _0x49c787='$elementName',_0x565913=_0x52965e['position'],_0x36955c=_0x571f31['model']['createRange'](_0x565913,_0x571f31['model']['createPositionAt'](_0x565913['nodeAfter'],'end'));_0x3eb42f=this['markAttributeChange'](_0x36955c,_0x49c787,_0x193394,_0x1aa327,{..._0x44de2e(_0x52965e),'groupId':_0x32d994()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5b5a9b=_0x52965e['oldValue'],_0x3fa854=_0x52965e['newValue'];if(_0x5b5a9b==_0x3fa854)break;_0x48f123['batch']['addOperation'](_0x52965e),_0x571f31['model']['applyOperation'](_0x52965e);const _0x410caf=_0x52965e['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x410caf))break;const _0x316534=_0x2f1d6b(_0x52965e['range'],_0x571f31['model']);_0x3eb42f=this['markAttributeChange'](_0x316534,_0x410caf,_0x5b5a9b,_0x3fa854,{..._0x44de2e(_0x52965e),'groupId':_0x32d994()});break;}case'insert':{if(_0x48f123['batch']['addOperation'](_0x52965e),_0x571f31['model']['applyOperation'](_0x52965e),_0x1a04c8[_0x757d51+0x1]&&'move'==_0x1a04c8[_0x757d51+0x1]['type'])break;const _0x4c7533=_0x52965e['position'],_0x4a3a2f=_0x52965e['howMany'],_0x54a875=_0x2f1d6b(_0x571f31['model']['createRange'](_0x4c7533,_0x4c7533['getShiftedBy'](_0x4a3a2f)),_0x571f31['model']);_0x3eb42f=cn(this['markInsertion'](_0x54a875,null,{..._0x44de2e(_0x52965e)}));break;}case'split':{_0x48f123['batch']['addOperation'](_0x52965e),_0x571f31['model']['applyOperation'](_0x52965e);const _0x3d7e3c=_0x52965e['splitPosition'],_0x4d9ac1=_0x52965e['moveTargetPosition'],_0x4138a8=_0x571f31['model']['createRange'](_0x3d7e3c,_0x4d9ac1);_0x3eb42f=cn(this['markInsertion'](_0x4138a8,null,{..._0x44de2e(_0x52965e)}));break;}case'move':case'remove':_0x48f123['batch']['addOperation'](_0x52965e),_0x571f31['model']['applyOperation'](_0x52965e);}_0x1efd99&&_0x40b18f(_0x48f123['batch'],_0x3442fe,_0x1efd99,_0x3eb42f)&&delete _0x52965e['_aiSource'];}for(const {range:_0x78bbd5,operation:_0x42a64c}of _0x3c5f9c){const _0x25702c=_0x42a64c['_aiSource'],_0x4955e0=_0x44de2e(_0x42a64c),_0x4c20e6=_0x48f123['batch']['operations']['length'];_0x78bbd5['detach']();const _0x5404b1=this['markDeletion'](_0x78bbd5,null,{..._0x4955e0});_0x25702c&&_0x40b18f(_0x48f123['batch'],_0x4c20e6,_0x25702c,cn(_0x5404b1));}});}_setSuggestionRange(_0x327492,_0x3f8a53){const _0xa3cf6b=_0x327492['getFirstMarker']();this['_model']['change'](_0x5f132b=>{_0x5f132b['updateMarker'](_0xa3cf6b,{'range':_0x3f8a53});});}_addThreadToSuggestion(_0x41359f){const _0x5e45ec=_0x41359f['id'],_0x29d842=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e45ec)||this['_commentsRepository']['addCommentThread']({'channelId':_0x29d842,'threadId':_0x5e45ec,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x19564f=this['_commentsRepository']['getCommentThread'](_0x5e45ec);_0x19564f['unbind']('isRemovable'),_0x19564f['isRemovable']=!0x1,_0x41359f['commentThread']=_0x19564f;}_checkSuggestionCorrectness(_0x1bcdbd,_0x390b4c,_0x4da16d,_0x4b2f10){if(_0x1bcdbd['type']!=_0x390b4c||_0x1bcdbd['subType']!=_0x4da16d||_0x1bcdbd['creator']['id']!=_0x4b2f10)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1aad84('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2135ca,_0x1bec46){const _0x10fbf7=_0x2135ca['getFirstRange']();if(_0x1bec46['isEqual'](_0x10fbf7))_0x2135ca['removeMarkers']();else{if(_0x10fbf7['containsRange'](_0x1bec46)){const _0x12bdec=this['_model']['createPositionAt'](_0x1bec46['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2135ca,this['_model']['createRange'](_0x10fbf7['start'],_0x12bdec));const _0x2cf18a=_0x32d994(),_0xb8ee6f=_0x2135ca['creator']['id'],_0x99f328=_0x2135ca['type']+':'+_0x2135ca['subType'];this['_setSuggestionData']({'id':_0x2cf18a,'type':_0x99f328,'createdAt':new Date(),'authorId':_0xb8ee6f,'data':_0x2135ca['data'],'attributes':_0x2135ca['attributes']});const _0x34006c=this['_model']['createPositionAt'](_0x1bec46['end']['parent'],'after'),_0x2339da=this['_model']['createRange'](_0x34006c,_0x10fbf7['end']);this['_addSuggestionMarker'](_0x99f328,_0x2cf18a,_0xb8ee6f,_0x2339da);}else{if(_0x10fbf7['containsPosition'](_0x1bec46['start'])){const _0x505ad2=this['_model']['createPositionAt'](_0x1bec46['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2135ca,this['_model']['createRange'](_0x10fbf7['start'],_0x505ad2));}else{const _0x1cc4e9=this['_model']['createPositionAt'](_0x1bec46['end']['parent'],'after');this['_setSuggestionRange'](_0x2135ca,this['_model']['createRange'](_0x1cc4e9,_0x10fbf7['end']));}}}}_rangeIsInLocalUserInsertion(_0xdee8e3){for(const {suggestion:_0x380a52,meta:_0x42e9b0}of this['_findSuggestions'](_0xdee8e3,'insertion')){if(!_0x42e9b0['isOwn'])continue;const _0x388d86=_0x380a52['getRanges']();for(const _0x227c32 of _0x388d86)if(!_0xdee8e3['getDifference'](_0x227c32)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x2b14ff){return this['editor']['plugins']['get']('Users')['getUser'](_0x2b14ff);}_getExternalAuthor(_0x77b606){const _0x310459=this['editor']['plugins']['get']('Users'),_0x3daaee=_0x25c422('external:'+_0x77b606),_0x49165d=_0x310459['getUser'](_0x3daaee);return _0x49165d||_0x310459['addUser']({'id':_0x3daaee,'name':_0x77b606});}_createSuggestion(_0x429a9b,_0x19c719,_0xc382a0,_0x4b522a,_0x1250f2,_0x2b4159){const _0x466c63=this['_getAuthorFromId'](_0x4b522a);if(!_0x466c63)throw new _0x1aad84('track-changes-user-not-found',this,{'authorId':_0x4b522a,'suggestionId':_0xc382a0});const _0x4e1925=this['_suggestionFactory']['buildSuggestion'](_0x429a9b,_0x19c719,_0xc382a0,_0x466c63,_0x1250f2,_0x115cf4=>{this['_updateSuggestionData'](_0xc382a0,{'attributes':_0x115cf4});const _0x21cf76=this['getSuggestion'](_0xc382a0);this['_joinWithAdjacentSuggestions'](new Set([_0x21cf76])),this['_refreshSuggestionsChain'](new Set([_0x21cf76]));},_0x2b4159);return this['listenTo'](_0x4e1925,'accept',()=>{this['_updateSuggestionData'](_0xc382a0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4e1925,'discard',()=>{this['_updateSuggestionData'](_0xc382a0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc382a0,_0x4e1925),this['_suggestionState']['set'](_0x4e1925,'notReady'),_0x4e1925;}_breakSuggestionMarker(_0x153f05,_0x5f4a24,_0xb10e2b){const _0x269b80=_0x153f05['getFirstRange'](),_0x315b61=_0x269b80['start'],_0x238231=_0x269b80['end'];this['_setSuggestionRange'](_0x153f05,this['_model']['createRange'](_0x315b61,_0x5f4a24));const _0x5c0984=_0x32d994(),_0x3cfe22=_0x153f05['creator']['id'],_0x50f7b7=_0x153f05['type']+(_0x153f05['subType']?':'+_0x153f05['subType']:'');this['_setSuggestionData']({'id':_0x5c0984,'type':_0x50f7b7,'createdAt':new Date(),'authorId':_0x3cfe22,'originalSuggestionId':_0x153f05['_originalSuggestionId']||_0x153f05['id'],'attributes':_0x153f05['attributes'],'data':_0x153f05['data']});const _0x332e96=this['_getAttributeKey'](_0x153f05);('formatBlock'==_0x153f05['type']||_0x332e96&&this['_suggestionsConversion']['isBlockAttribute'](_0x332e96))&&(_0xb10e2b=this['_model']['createPositionBefore'](_0xb10e2b['parent'])),this['_addSuggestionMarker'](_0x50f7b7,_0x5c0984,_0x3cfe22,this['_model']['createRange'](_0xb10e2b,_0x238231));}_findSuggestions(_0x2526be,_0x5d7284=null){const _0x3b2820=[],_0x5229dd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2526be)||(_0x2526be=[_0x2526be]);for(const _0x49a81e of this['getSuggestions']()){if(!_0x49a81e['isInContent'])continue;if(_0x5d7284&&_0x49a81e['type']!=_0x5d7284)continue;let _0x29cb4d=!0x1;for(const _0x29a757 of _0x49a81e['getRanges']()){for(const _0x3070b9 of _0x2526be){const _0x223cfa=_0x3070b9['start']['isEqual'](_0x29a757['end'])||_0x3070b9['end']['isEqual'](_0x29a757['start']);if(_0x223cfa||_0x3070b9['getIntersection'](_0x29a757)){const _0x1e724b=_0x3070b9['containsRange'](_0x29a757)&&dn(this['_model']['schema'],_0x29a757['start'],_0x3070b9),_0x40ec82=_0x29a757['containsRange'](_0x3070b9)&&dn(this['_model']['schema'],_0x3070b9['start'],_0x29a757);_0x3b2820['push']({'suggestion':_0x49a81e,'meta':{'isOwn':_0x5229dd==_0x49a81e['author'],'isNextTo':_0x223cfa,'isInsideObject':_0x1e724b,'containsRangeInObject':_0x40ec82}}),_0x29cb4d=!0x0;break;}}if(_0x29cb4d)break;}}return _0x3b2820;}_addSuggestionMarker(_0xd383f6,_0x243e98,_0x5d40fb,_0x3504bc,_0xa5f7f3){this['_model']['change'](_0x125e55=>{let _0x3b50f2='suggestion:'+_0xd383f6+':'+_0x243e98+':'+_0x5d40fb;_0xa5f7f3&&(_0x3b50f2=_0x3b50f2+':'+_0xa5f7f3),_0x125e55['addMarker'](_0x3b50f2,{'range':_0x3504bc,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x46dacc){const _0x3d20b2=_0x46dacc['previous'],_0x45803d=_0x46dacc['next'];_0x46dacc['previous']=null,_0x46dacc['next']=null,null!=_0x3d20b2&&_0x3d20b2['next']==_0x46dacc&&(_0x3d20b2['next']=_0x45803d),null!=_0x45803d&&_0x45803d['previous']==_0x46dacc&&(_0x45803d['previous']=_0x3d20b2),'ready'==this['_suggestionState']['get'](_0x46dacc)&&(this['_suggestionState']['set'](_0x46dacc,'removed'),this['fire']('suggestionUnloaded',_0x46dacc,_0x3d20b2,_0x45803d));}_setSuggestionData(_0x44909c){const _0xbd01f=_0x44909c['id'],_0x3c9ddf=this['addSuggestionData'](_0x44909c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x28b7a1=this['editor']['plugins']['get']('PendingActions'),_0x46510b=_0x3c9ddf['hasComments'],_0x2e1c4a=_0x3c9ddf['subType']?_0x3c9ddf['type']+':'+_0x3c9ddf['subType']:_0x3c9ddf['type'],_0x4b78b5=this['editor']['locale'],_0x405b2a=_0x28b7a1['add'](wt(_0x4b78b5,'PENDING_ACTION_SUGGESTION')),_0x555401={'id':_0xbd01f,'type':_0x2e1c4a,'hasComments':_0x46510b,'data':_0x44909c['data']||null,'originalSuggestionId':_0x44909c['originalSuggestionId']||null,'attributes':_0x3c9ddf['attributes']};this['_adapter']['addSuggestion'](_0x555401)['then'](_0x1a1b99=>{_0x3c9ddf['_saved']=!0x0,_0x28b7a1['remove'](_0x405b2a),_0x1a1b99&&_0x1a1b99['createdAt']&&(this['_suggestions']['get'](_0xbd01f)['createdAt']=_0x1a1b99['createdAt']);})['catch'](_0x3bb5ca=>{throw _0x37bc56('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3c9ddf['discard']();}),_0x3c9ddf['stopListening'](),this['_suggestions']['delete'](_0x3c9ddf['id']),this['_suggestionState']['delete'](_0x3c9ddf),_0x3bb5ca;});}return _0x3c9ddf;}_updateSuggestionData(_0xf53d3c,_0x234462){const _0x1f2c45=this['editor']['plugins']['get']('PendingActions'),_0x1a4bab=this['getSuggestion'](_0xf53d3c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1a4bab['_saved']){const _0x4405d2=_0x1f2c45['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xf53d3c,_0x234462)['then'](()=>{_0x1f2c45['remove'](_0x4405d2);});}else _0x1a4bab['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xf53d3c,_0x234462);});}}_getSuggestionData(_0x166053){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1aad84('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x166053);}_handleNewSuggestionMarker(_0x31f238){const {id:_0x1ec442,type:_0x249503,subType:_0x1dc559,authorId:_0x31c3b4}=nt(_0x31f238),_0x5cc512=this['_suggestions']['get'](_0x1ec442)||this['_createSuggestion'](_0x249503,_0x1dc559,_0x1ec442,_0x31c3b4,{});switch(this['_checkSuggestionCorrectness'](_0x5cc512,_0x249503,_0x1dc559,_0x31c3b4),this['_suggestionState']['get'](_0x5cc512)){case'notReady':this['_getSuggestionData'](_0x1ec442)['then'](_0x19a50a=>{let _0x127d28=Promise['resolve']();_0x19a50a['hasComments']&&(_0x127d28=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1ec442})),_0x127d28['then'](()=>{this['addSuggestionData'](_0x19a50a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5cc512,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1ec442,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5cc512,'ready'),this['fire']('suggestionLoaded',_0x5cc512);break;case'ready':this['fire']('suggestionChanged',_0x5cc512);}return _0x5cc512['addMarkerName'](_0x31f238),_0x5cc512;}_refreshSuggestionsChain(_0x3e00c9){const _0x25d4c0=Array['from'](_0x3e00c9),_0x384712=_0x25d4c0['filter'](_0x29af99=>'attribute'==_0x29af99['type']);this['_refreshAttributeSuggestionsChain'](_0x384712);const _0x5720cf=_0x25d4c0['filter'](_0x4393b1=>!_0x4393b1['isMultiRange']&&'attribute'!=_0x4393b1['type']),_0x104603=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcbab28=>!_0xcbab28['isMultiRange']&&'attribute'!=_0xcbab28['type']),_0x30c07a=_0x104603['filter'](_0x526d37=>!_0x3e00c9['has'](_0x526d37)),_0x4c95c1=new Map(_0x104603['map'](_0x125768=>[_0x125768,this['_suggestionFactory']['getSuggestionCallback'](_0x125768['type'],_0x125768['subType'],'chain')])),_0x2e68bf=new Map(_0x104603['map'](_0x3e2347=>[_0x3e2347,_0x3e2347['getFirstRange']()])),_0x3d2299=new Set(),_0x58bfe1=new Set();for(let _0x32a4b6=0x0;_0x32a4b6<_0x5720cf['length'];_0x32a4b6++)_0x2032e0(_0x5720cf[_0x32a4b6],_0x5720cf,_0x32a4b6+0x1);for(let _0x614986=0x0;_0x614986<_0x5720cf['length'];_0x614986++)_0x2032e0(_0x5720cf[_0x614986],_0x30c07a,0x0);const _0x618c5f=new Set();for(let _0x138bce=0x0;_0x138bce<_0x5720cf['length'];_0x138bce++){const _0x303c00=_0x5720cf[_0x138bce];!_0x58bfe1['has'](_0x303c00)&&_0x303c00['previous']&&(_0x618c5f['add'](_0x303c00['previous']),_0x303c00['previous']['next']===_0x303c00&&(_0x303c00['previous']['next']=null),_0x303c00['previous']=null),!_0x3d2299['has'](_0x303c00)&&_0x303c00['next']&&(_0x618c5f['add'](_0x303c00['next']),_0x303c00['next']['previous']===_0x303c00&&(_0x303c00['next']['previous']=null),_0x303c00['next']=null);}function _0x2032e0(_0x336364,_0xabe996,_0x1de255){for(let _0x9e0d97=_0x1de255;_0x9e0d97<_0xabe996['length'];_0x9e0d97++){const _0xe4ea49=_0xf6101a(_0x336364,_0xabe996[_0x9e0d97]);_0xe4ea49&&(_0xe4ea49[0x0]['next']=_0xe4ea49[0x1],_0xe4ea49[0x1]['previous']=_0xe4ea49[0x0],_0x3d2299['add'](_0xe4ea49[0x0]),_0x58bfe1['add'](_0xe4ea49[0x1]));}}function _0xf6101a(_0xd44a25,_0x14f253){if(_0xd44a25['author']['id']!==_0x14f253['author']['id'])return null;const _0xa29717=_0x4c95c1['get'](_0xd44a25)(_0xd44a25,_0x14f253,_0x2e68bf['get'](_0xd44a25),_0x2e68bf['get'](_0x14f253));return _0xa29717&&_0x4c95c1['get'](_0x14f253)(_0xd44a25,_0x14f253,_0x2e68bf['get'](_0xd44a25),_0x2e68bf['get'](_0x14f253))?_0xa29717[0x1]['commentThread']&&_0xa29717[0x1]['commentThread']['length']?null:_0xa29717:null;}_0x618c5f['size']&&this['_refreshSuggestionsChain'](_0x618c5f);}_refreshAttributeSuggestionsChain(_0x41d529){if(0x0==_0x41d529['length'])return;const _0x57b6c4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ca1ca=>'attribute'==_0x3ca1ca['type']&&_0x3ca1ca['_isDataLoaded']),_0x17157d=[],_0x1e3e01=new Map();for(const _0x13b6eb of _0x57b6c4){const _0x5cd416=_0x25c422(_0x13b6eb['attributes']);_0x1e3e01['has'](_0x5cd416)||(_0x1e3e01['set'](_0x5cd416,_0x17157d['length']),_0x17157d['push']([])),_0x17157d[_0x1e3e01['get'](_0x5cd416)]['push'](_0x13b6eb);}!(function(){_0x17157d['sort']((_0x7ab354,_0x483be4)=>{const _0xc41555=_0x7ab354[0x0]['createdAt'],_0x13ddbb=_0x483be4[0x0]['createdAt'];return _0xc41555==_0x13ddbb?_0x7ab354[0x0]['attributes']['groupId']<_0x483be4[0x0]['attributes']['groupId']?-0x1:0x1:_0xc41555<_0x13ddbb?-0x1:0x1;});for(const _0x1339bc of _0x17157d)_0x1339bc['sort']((_0x5eb73f,_0x48c309)=>_0x5eb73f['id']<_0x48c309['id']?-0x1:0x1);}());for(let _0x4b8638=0x0;_0x4b8638<_0x17157d['length'];_0x4b8638++){if(0x0==_0x17157d[_0x4b8638]['length'])continue;const _0x41ff10=[];for(let _0x311278=_0x4b8638+0x1;_0x311278<_0x17157d['length'];_0x311278++)0x0!=_0x17157d[_0x311278]['length']&&_0x46895a(_0x17157d[_0x4b8638],_0x17157d[_0x311278])&&_0x41ff10['push'](_0x311278);for(const _0xf06631 of _0x41ff10)_0x17157d[_0x4b8638]=_0x17157d[_0x4b8638]['concat'](_0x17157d[_0xf06631]),_0x17157d[_0xf06631]=[];}for(const _0x3d8f4c of _0x17157d)for(let _0x4d68f3=0x0;_0x4d68f3<_0x3d8f4c['length'];_0x4d68f3++){const _0x150f20=_0x3d8f4c[_0x4d68f3+0x1]||null;_0x3d8f4c[_0x4d68f3]['next']!==_0x150f20&&(_0x3d8f4c[_0x4d68f3]['next']=_0x150f20);}for(const _0x44f484 of _0x17157d)for(let _0x346523=0x0;_0x346523<_0x44f484['length'];_0x346523++){const _0x3c3025=_0x44f484[_0x346523-0x1]||null;_0x44f484[_0x346523]['previous']!==_0x3c3025&&(_0x44f484[_0x346523]['previous']=_0x3c3025);}function _0x46895a(_0x355be5,_0x101dd9){if(_0x355be5[0x0]['attributes']['groupId']!==_0x101dd9[0x0]['attributes']['groupId']&&_0x355be5[0x0]['author']!==_0x101dd9[0x0]['author'])return!0x1;if(!function(_0x5253ab,_0x59f6fa){return!_0x5253ab['hasComments']&&!_0x59f6fa['hasComments']||(!_0x5253ab['hasComments']||!_0x59f6fa['hasComments'])&&(!!(_0x5253ab['hasComments']&&_0x59f6fa['createdAt']<_0x5253ab['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x59f6fa['hasComments']&&_0x5253ab['createdAt']<_0x59f6fa['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x355be5[0x0],_0x101dd9[0x0]))return!0x1;const _0x1f975b=dt(_0x355be5[0x0]['attributes'],['groupId','trackingSessionId']),_0x282e87=dt(_0x101dd9[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x1f975b,_0x282e87)&&(_0x355be5[0x0]['attributes']['groupId']==_0x101dd9[0x0]['attributes']['groupId']||_0x355be5[0x0]['attributes']['trackingSessionId']===_0x101dd9[0x0]['attributes']['trackingSessionId']&&(!!_0x355be5['every'](_0xe80688=>_0x101dd9['some'](_0x7bc1b0=>_0xe80688['getFirstRange']()['isEqual'](_0x7bc1b0['getFirstRange']())))&&_0x101dd9['every'](_0x1ca08f=>_0x355be5['some'](_0x118335=>_0x1ca08f['getFirstRange']()['isEqual'](_0x118335['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x2e8b2f){const _0x4210d8=Array['from'](_0x2e8b2f),_0x1f1c5a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1a017e=_0x1f1c5a['filter'](_0x3b51f4=>!_0x2e8b2f['has'](_0x3b51f4)),_0x22136d=new Map(_0x4210d8['map'](_0x14c877=>[_0x14c877,this['_suggestionFactory']['getSuggestionCallback'](_0x14c877['type'],_0x14c877['subType'],'join')])),_0x405f6b=new Map(_0x1f1c5a['map'](_0x209769=>[_0x209769,_0x209769['getRanges']()]));for(let _0x449482=0x0;_0x449482<_0x4210d8['length'];_0x449482++)if(_0x2dfaae(this,_0x4210d8[_0x449482],_0x4210d8,_0x449482+0x1))return!0x0;for(let _0x4157d9=0x0;_0x4157d9<_0x4210d8['length'];_0x4157d9++)if(_0x2dfaae(this,_0x4210d8[_0x4157d9],_0x1a017e,0x0))return!0x0;return!0x1;function _0x2dfaae(_0x46800d,_0x23dbf3,_0x5e8a7f,_0x8846f0){for(let _0x529a1c=_0x8846f0;_0x529a1c<_0x5e8a7f['length'];_0x529a1c++){const _0x484d85=_0x5e8a7f[_0x529a1c];if(_0x484d85['type']!==_0x23dbf3['type']||_0x484d85['author']['id']!==_0x23dbf3['author']['id']||_0x484d85['subType']!==_0x23dbf3['subType'])continue;if(!In(_0x23dbf3,_0x484d85))continue;if('attribute'==_0x23dbf3['type']&&_0x23dbf3['data']['oldValue']!=_0x484d85['data']['oldValue'])continue;if('attribute'==_0x23dbf3['type']&&_0x46800d['_suggestionsConversion']['isBlockAttribute'](_0x23dbf3['data']['key']))continue;if('formatBlock'==_0x23dbf3['type']){const _0xfdd88=_0x46800d['editor']['model'],_0x373ea9=_0x23dbf3['getContainedElement']();if(_0x373ea9&&(_0xfdd88['schema']['isObject'](_0x373ea9)||_0xfdd88['schema']['isLimit'](_0x373ea9)))continue;}const _0x7e3037=_0x22136d['get'](_0x23dbf3),_0x211060=_0x405f6b['get'](_0x23dbf3),_0x2b69ee=_0x405f6b['get'](_0x484d85),_0x362203=_0x23dbf3['commentThread']&&_0x23dbf3['commentThread']['length'],_0x2bd0dd=_0x484d85['commentThread']&&_0x484d85['commentThread']['length'];if(!_0x362203&&_0x7e3037(_0x2b69ee,_0x211060))return _0x46800d['_joinSuggestions'](_0x484d85,_0x23dbf3),_0x405f6b['delete'](_0x23dbf3),!0x0;if(!_0x2bd0dd&&_0x7e3037(_0x211060,_0x2b69ee))return _0x46800d['_joinSuggestions'](_0x23dbf3,_0x484d85),_0x405f6b['delete'](_0x484d85),!0x0;}return!0x1;}}_joinSuggestions(_0x465337,_0x256d84){if(_0x465337['isMultiRange']){for(const _0x1f8a99 of _0x256d84['getRanges']())_0x465337['addRange'](_0x1f8a99);}else{const _0x175050=_0x256d84['getFirstRange']()['end'];this['_setSuggestionRange'](_0x465337,this['_model']['createRange'](_0x465337['getFirstRange']()['start'],_0x175050));}_0x256d84['removeMarkers']();}_getMarkerAnnouncementText(_0xe2a0e1,_0x9203de,_0x533995){const _0x12277b=_0xe2a0e1['startsWith']('format')||_0xe2a0e1['startsWith']('attribute')?'FORMATTING':_0xe2a0e1['toUpperCase']();return wt(this['editor']['locale'],_0x9203de+'_'+_0x12277b+'_SUGGESTION_ANNOUNCEMENT',_0x533995);}_initAriaMarkerChangeAnnouncements(){const _0x3879e5=this['editor'];if(!_0x3879e5['ui'])return;const {ariaLiveAnnouncer:_0x341a74}=_0x3879e5['ui'];it(this['_model'],({left:_0x2a948f,entered:_0x3acb8c})=>{for(const _0x3c95f2 of _0x2a948f){const {group:_0x5a088b,type:_0x29cfd0}=nt(_0x3c95f2['name']);if('suggestion'===_0x5a088b){_0x341a74['announce'](this['_getMarkerAnnouncementText'](_0x29cfd0,'LEAVE'));break;}}for(const _0x24e9f3 of _0x3acb8c){const {group:_0x14b057,type:_0x2c03f5}=nt(_0x24e9f3['name']);if('suggestion'===_0x14b057){_0x341a74['announce'](this['_getMarkerAnnouncementText'](_0x2c03f5,'ENTER',_0x1c892b(_0x47bf31)));break;}}});}_processAttributeChanges(_0x11714b){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd9dd09=this['editor'],_0x5476f6=_0xd9dd09['model']['document']['differ']['getChanges']();if(0x0==_0x5476f6['length'])return!0x1;const _0x23dce3=[],_0x142bd7=_0x5476f6['filter'](_0x4c703c=>'attribute'==_0x4c703c['type']),_0x86c8f7=_0x5476f6['filter'](_0xef4691=>'insert'==_0xef4691['type']&&'$text'!=_0xef4691['name']),_0x5acb67=_0x5476f6['filter'](_0x198a50=>'remove'==_0x198a50['type']&&'$text'!=_0x198a50['name']);for(const _0x2ae098 of _0x142bd7)_0x23dce3['push']({'key':_0x2ae098['attributeKey'],'newValue':_0x2ae098['attributeNewValue'],'oldValue':_0x2ae098['attributeOldValue'],'range':_n(_0x2ae098['range'],_0xd9dd09['model'])});for(const _0x3c1ebd of _0x86c8f7){const _0x522c8a=_0x5acb67['find'](_0x1f39cf=>_0x1f39cf['position']['isEqual'](_0x3c1ebd['position']));_0x522c8a&&_0x23dce3['push']({'key':on,'newValue':_0x3c1ebd['name'],'oldValue':_0x522c8a['name'],'range':_0xd9dd09['model']['createRangeOn'](_0x3c1ebd['position']['nodeAfter'])});}return 0x0!=_0x23dce3['length']&&this['_reduceExistingSuggestions'](_0x11714b,_0x23dce3);}_processAttributeSuggestions(_0x19e309){let _0x149a63=!0x1;const _0x2c2cfd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x302f10=>_0x302f10['data']['newRange']&&_0x302f10['name']['startsWith']('suggestion:attribute:'));for(const _0x363153 of _0x2c2cfd){const {subType:_0x44d481,id:_0x5b8e86}=nt(_0x363153['name']),_0x4344db=_0x44d481['split']('|')[0x0];for(const _0x408cf5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x408cf5['id']!=_0x5b8e86&&'attribute'==_0x408cf5['type']&&_0x408cf5['data']&&_0x408cf5['data']['key']==_0x4344db&&_0x408cf5['getFirstRange']()['isIntersecting'](_0x363153['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x408cf5,_0x363153['data']['newRange'],_0x19e309),_0x149a63=!0x0);}return _0x149a63;}recordAttributeChanges(_0x43a3ff){this['_recordAttributeSuggestions']=!0x0,_0x43a3ff();}_reduceExistingSuggestions(_0x5c4734,_0x43adb6){if(0x0==_0x43adb6['length'])return!0x1;let _0x58a84f=!0x1;for(const _0x25e7d1 of _0x43adb6){const _0x23b140=this['_findSuggestions'](_0x25e7d1['range'],'attribute')['filter'](_0x50675a=>!_0x50675a['meta']['isNextTo'])['map'](_0x4bc7ae=>_0x4bc7ae['suggestion']),_0x3152f8=_0x25c422({'newValue':_0x25e7d1['newValue']});_0x23b140['filter'](_0x490ee5=>{const [_0x13bed6,_0x3fe543]=_0x490ee5['subType']['split']('|');return _0x13bed6==_0x25e7d1['key']&&_0x3fe543!=_0x3152f8;})['forEach'](_0x589ba6=>{this['_reduceSuggestionAttributeRange'](_0x589ba6,_0x25e7d1['range'],_0x5c4734),_0x58a84f=!0x0;});}return _0x58a84f;}_reduceSuggestionAttributeRange(_0x5385ca,_0x29eaa9,_0x5b09b6){const _0x3d5fd3=_0x5385ca['getFirstRange']()['getDifference'](_0x29eaa9);0x0!==_0x3d5fd3['length']?0x1!==_0x3d5fd3['length']?this['_breakSuggestionMarker'](_0x5385ca,_0x29eaa9['start'],_0x29eaa9['end']):this['_setSuggestionRange'](_0x5385ca,_0x3d5fd3[0x0]):_0x5b09b6['removeMarker'](_0x5385ca['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x3a6881){this['_editor']=_0x3a6881,this['_model']=_0x3a6881['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x522833,_0x4d36de,_0x268cd0,_0x402e5c,_0x5245f2,_0x33b180,_0x1c4e41){return new Ot(this['_model'],{'type':_0x522833,'subType':_0x4d36de,'id':_0x268cd0,'originalSuggestionId':_0x1c4e41,'author':_0x402e5c,'creator':_0x402e5c,'attributes':_0x5245f2,'onAttributesChange':_0x33b180,'onAccept':(..._0x241d3c)=>this['getSuggestionCallback'](_0x522833,_0x4d36de,'accept')(..._0x241d3c),'onDiscard':(..._0x59637a)=>this['getSuggestionCallback'](_0x522833,_0x4d36de,'discard')(..._0x59637a)});}registerCustomCallback(_0x4d40a5,_0x4a4ba7,_0x490752,_0x137767){const _0x30da6a=_0x4d40a5+':'+_0x4a4ba7+':'+_0x490752;this['_customCallbacks']['set'](_0x30da6a,_0x137767);}getSuggestionCallback(_0x5b5701,_0x4ce34f,_0x348368){const _0x438318=_0x5b5701+':'+_0x4ce34f+':'+_0x348368;return this['_customCallbacks']['get'](_0x438318)||this['_defaultCallbacks']['get'](_0x5b5701+':'+_0x348368);}_registerDefaultCallbacks(){const _0x2efe42=()=>!0x1,_0x52a9da=_0x4fa835=>{_0x4fa835['sort']((_0x153c5b,_0x1497d9)=>_0x153c5b['start']['isBefore'](_0x1497d9['start'])?0x1:-0x1),this['_model']['change'](_0x453c82=>{for(const _0x52d6fe of _0x4fa835){let _0x106d96;_0x106d96=_0x52d6fe['end']['isAtEnd']&&_0x52d6fe['end']['parent']==_0x52d6fe['start']['nodeAfter']?_0x453c82['createSelection'](_0x52d6fe['start']['nodeAfter'],'on'):_0x453c82['createSelection'](_0x52d6fe),this['_model']['deleteContent'](_0x106d96,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x356355=(_0x35a507,_0x2ae9f1)=>{_0x2ae9f1&&this['_model']['change'](_0x40e4c4=>{const {commandName:_0x6c2063,commandParams:_0x6aac=[]}=_0x2ae9f1,_0x4674fd=_0x35a507['map'](_0x3311ef=>(hn(_0x3311ef)&&(_0x3311ef=this['_model']['createRange'](_0x3311ef['end'])),_0x3311ef))['filter'](_0x48e54c=>'$graveyard'!==_0x48e54c['root']['rootName']);if(_0x4674fd['length']<0x1)return;const _0x396a4e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4dfa0f=>at['fromRange'](_0x4dfa0f));_0x40e4c4['setSelection'](_0x4674fd);for(const _0x242fc6 of this['_editor']['commands']['commands']())_0x242fc6['refresh']();_0x6aac['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x6c2063,..._0x6aac);const _0x4f4c4e=_0x396a4e['filter'](_0x72a0a=>'$graveyard'!=_0x72a0a['root']['rootName']);_0x4f4c4e['length']>0x0&&_0x40e4c4['setSelection'](_0x4f4c4e);for(const _0x2dac2c of _0x396a4e)_0x2dac2c['detach']();});},_0x20d1ad=(_0x506f8d,_0x393a0)=>0x1==_0x506f8d['length']&&0x1==_0x393a0['length']&&_0x506f8d[0x0]['end']['isEqual'](_0x393a0[0x0]['start']),_0x228b3c=(_0x7e806,_0x1d4d33,_0xf7a59,_0x4d3d52)=>Ln(_0x7e806,_0x1d4d33,_0xf7a59,_0x4d3d52)?[_0x7e806,_0x1d4d33]:Ln(_0x1d4d33,_0x7e806,_0x4d3d52,_0xf7a59)?[_0x1d4d33,_0x7e806]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2efe42),this['_defaultCallbacks']['set']('insertion:discard',_0x52a9da),this['_defaultCallbacks']['set']('insertion:join',_0x20d1ad),this['_defaultCallbacks']['set']('insertion:chain',_0x228b3c),this['_defaultCallbacks']['set']('deletion:accept',_0x52a9da),this['_defaultCallbacks']['set']('deletion:discard',_0x2efe42),this['_defaultCallbacks']['set']('deletion:join',_0x20d1ad),this['_defaultCallbacks']['set']('deletion:chain',_0x228b3c),this['_defaultCallbacks']['set']('formatInline:accept',_0x356355),this['_defaultCallbacks']['set']('formatInline:discard',_0x2efe42),this['_defaultCallbacks']['set']('formatInline:join',_0x20d1ad),this['_defaultCallbacks']['set']('formatInline:chain',_0x2efe42),this['_defaultCallbacks']['set']('formatBlock:accept',_0x356355),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2efe42),this['_defaultCallbacks']['set']('formatBlock:join',_0x20d1ad),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2efe42),this['_defaultCallbacks']['set']('attribute:accept',_0x2efe42),this['_defaultCallbacks']['set']('attribute:discard',(_0xe3afc7,_0x2374bf)=>{if(!_0x2374bf)return;const _0xa0e00c=this['_editor']['plugins']['get'](_0x5bf50e);this['_model']['change'](_0x541f67=>{if('$elementName'==_0x2374bf['key'])for(const _0x2d23e8 of _0xe3afc7){const _0x14599a=_0x2d23e8['start']['nodeAfter'],_0x4d739f=_0x2374bf['oldValue'];_0x541f67['rename'](_0x14599a,_0x4d739f);}else{if(_0xa0e00c['isBlockAttribute'](_0x2374bf['key'])){for(const _0x2a3357 of _0xe3afc7)void 0x0!==_0x2374bf['oldValue']?_0x541f67['setAttribute'](_0x2374bf['key'],_0x2374bf['oldValue'],_0x2a3357['start']['nodeAfter']):_0x541f67['removeAttribute'](_0x2374bf['key'],_0x2a3357['start']['nodeAfter']);}else{for(const _0x489273 of _0xe3afc7)_0x2374bf['oldValue']?_0x541f67['setAttribute'](_0x2374bf['key'],_0x2374bf['oldValue'],_0x489273):_0x541f67['removeAttribute'](_0x2374bf['key'],_0x489273);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20d1ad);}};function dn(_0x195286,_0x5269e3,_0x51c606){for(const _0x4ba4f9 of _0x5269e3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4ba4f9['root']==_0x4ba4f9)return!0x1;if(!_0x51c606['containsItem'](_0x4ba4f9))return!0x1;if(_0x195286['isObject'](_0x4ba4f9)||_0x195286['isLimit'](_0x4ba4f9))return!0x0;}return!0x1;}function hn(_0x5da701){return _0x5da701['end']['parent']==_0x5da701['start']['nodeAfter']&&_0x5da701['end']['isAtStart'];}function gn(_0x178133,_0x5f439e,_0x14c967,_0x800917){const _0x295190=_0x12e00d=>!_0x12e00d['item']['is']('$textProxy')&&!_0x800917['isObject'](_0x12e00d['item']),_0x22d3bd=_0x178133['start']['getLastMatchingPosition'](_0x295190),_0x11610c=_0x178133['end']['getLastMatchingPosition'](_0x295190,{'direction':'backward'});return(!_0x178133['start']['isEqual'](_0x22d3bd)||!_0x178133['end']['isEqual'](_0x11610c))&&(_0x22d3bd['isBefore'](_0x11610c)?_0x14c967['updateMarker'](_0x5f439e,{'range':_0x14c967['createRange'](_0x22d3bd,_0x11610c)}):_0x14c967['removeMarker'](_0x5f439e),!0x0);}function fn(_0x5915de){return _0x25c422(_0x5915de);}function mn(_0x246d57){const _0x44d0f1=_0x246d57['start']['nodeAfter'];return _0x44d0f1&&_0x44d0f1['is']('element');}function En(_0x3da93d){return hn(_0x3da93d)||function(_0x34d91f){return _0x34d91f['start']['parent']==_0x34d91f['end']['nodeBefore']&&_0x34d91f['start']['isAtEnd'];}(_0x3da93d);}function Tn(_0x3550e9,_0x4b60e0){try{const _0x55db25=_0x3550e9['getRange']();for(const _0x518d87 of _0x4b60e0)if(_0x3550e9!==_0x518d87&&_0x55db25&&_0x55db25['isIntersecting'](_0x518d87['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0xfa87e6,_0x403759){return null==_0xfa87e6['end']['nodeBefore']&&_0xfa87e6['end']['parent']==_0xfa87e6['start']['nodeAfter']?pn(_0xfa87e6['start']['nodeAfter'],_0x403759):_0xfa87e6;}function pn(_0x3ce05a,_0x15fb54){const _0x3baced=_0x15fb54['schema']['isObject'](_0x3ce05a)||_0x15fb54['schema']['isSelectable'](_0x3ce05a);return _0x15fb54['createRange'](_0x15fb54['createPositionAt'](_0x3ce05a,'before'),_0x3baced?_0x15fb54['createPositionAfter'](_0x3ce05a):_0x15fb54['createPositionAt'](_0x3ce05a,'end'));}function Ln(_0xecb19c,_0x3ba4aa,_0x1d98d4,_0x14ffdf){return!!In(_0xecb19c,_0x3ba4aa)&&_0x1d98d4['end']['isEqual'](_0x14ffdf['start']);}function In(_0x143f38,_0x4b4e17){if(!_0x143f38['_isDataLoaded']||!_0x4b4e17['_isDataLoaded'])return!0x1;const _0x107415=new Set(Object['keys'](_0x143f38['attributes'])),_0x4cec45=new Set(Object['keys'](_0x4b4e17['attributes']));if(_0x107415['delete']('groupId'),_0x4cec45['delete']('groupId'),0x0==_0x107415['size']&&0x0==_0x4cec45['size'])return!0x0;if(_0x107415['size']!=_0x4cec45['size'])return!0x1;const _0x78bc3e={..._0x143f38['attributes']},_0x1deace={..._0x4b4e17['attributes']};return delete _0x78bc3e['groupId'],delete _0x1deace['groupId'],JSON['stringify'](_0x78bc3e)==JSON['stringify'](_0x1deace);}function An(_0x596699,_0x149e05){const _0x1ce687=bn(_0x596699['attributes']),_0x9660e3=bn(_0x149e05);if(!_0x596699['_isDataLoaded'])return!0x1;if(!ut(_0x1ce687['@ai'],_0x9660e3['@ai']))return!0x1;for(const _0xa5a283 of Object['keys'](_0x9660e3))if(!ut(_0x1ce687[_0xa5a283],_0x9660e3[_0xa5a283]))return!0x1;return!0x0;}function bn(_0x26a5e7){const _0x4a96de=Object['assign']({},_0x26a5e7);return delete _0x4a96de['skipNestingCheck'],delete _0x4a96de['tablePasteChainId'],_0x4a96de;}function Cn(_0x1122ed){return _0x1122ed['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x560bf4();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x17372b,_0x3c93e9,_0x3aff22,_0x398942){super(),this['model']=_0x3c93e9,this['view']=_0x3aff22,this['commentThreadController']=_0x398942,this['_editor']=_0x17372b,this['_acceptCommand']=_0x17372b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17372b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d9180,_0x43430c)=>_0x5d9180||_0x43430c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1f95b7=>_0x1f95b7&&this['_editor']['model']['canEditAt'](_0x3c93e9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1b1987=>_0x1b1987&&this['_editor']['model']['canEditAt'](_0x3c93e9['getRanges']())),this['_pendingAction']=null,_0x3aff22['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3aff22,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3aff22,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3aff22,'change:isDirty',()=>{_0x3aff22['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 _0x55f5ec=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55f5ec);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x513899{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50aeb5,_0xb32f5d,_0x47c804,_0x16b679){super(_0x50aeb5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x149f69(_0x50aeb5,wt(_0x50aeb5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb32f5d['authoredAt']),this['bind']('authoredAt')['to'](_0xb32f5d),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',_0xb32f5d,'authoredAt',this,'descriptionParts',(_0x11ca23,_0x4a954c,_0x313c2f)=>{const _0x5a6b6b=_0x313c2f['map'](_0x9514b3=>At(_0x9514b3['content']))['join']('.\x20')+'.',_0x4efacc=_0xb32f5d['aiSource']&&'author'===_0x16b679['showAISource']?_0x16b679['aiAuthor']['name']:_0xb32f5d['author']['name'],_0x24b1a3=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x11ca23-0x1,_0x4efacc,_0x4a954c?_0x16b679['formatDateTime'](_0x4a954c):'',new DOMParser()['parseFromString'](_0x350987(_0x5a6b6b),'text/html')['body']['textContent']]);return _0xb32f5d['aiSource']&&'pill'===_0x16b679['showAISource']?_0x24b1a3+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x24b1a3;}),this['focusables']=new _0x5a76c1(),this['focusTracker']=new _0x4d9954(),this['keystrokes']=new _0x5e4661(),this['focusCycler']=new _0x555dfe({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x418d71=>_0x418d71['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb32f5d,this['_localUser']=_0x47c804,this['_config']=_0x16b679,_0x16b679['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x2836d0}=this['_config'];this['commentsListView']=new _0x2836d0(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',_0x37822c=>_0x37822c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xaf938e,_0x576f8c)=>_0xaf938e||!!_0x576f8c);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x2d5e1e}=this['_config'],_0x54000c=new _0x2d5e1e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c1489=_0x54000c['commentInputView'];return _0x54000c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c1489,'value',(_0x2c68e6,_0x36d4c6,_0x490058)=>!!_0x490058||_0x2c68e6&&!_0x36d4c6),_0x3c1489['on']('submit',(_0x30635d,_0x358169)=>{this['fire']('addComment',_0x358169),_0x3c1489['editor']['setData']('');}),_0x3c1489['on']('cancel',()=>this['focus']()),_0x3c1489['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54000c;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x4bf9cd,_0x1c3355,_0x26f084,_0x129db2){super(_0x4bf9cd,_0x1c3355,_0x26f084,_0x129db2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ff8fc=>_0x3ff8fc&&_0x3ff8fc[0x0]?_0x3ff8fc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3240e6,_0x4c5594)=>{let _0x182b57='';for(const _0x2dce3a of _0x3240e6)_0x182b57+='<p>'+At(_0x2dce3a['content'],_0x2dce3a['color'])+'</p>';return _0x4c5594?_0x182b57:st(_0x182b57,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x129db2['SuggestionView'](_0x4bf9cd,_0x1c3355,{'formatDateTime':_0x129db2['formatDateTime'],'showAISource':_0x129db2['showAISource'],'aiAuthor':_0x129db2['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x52bd23=>!!_0x52bd23||wt(_0x4bf9cd,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x50978e=>!!_0x50978e||wt(_0x4bf9cd,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0x20faa4=this['bindTemplate'],_0x46df3a=[this['suggestionView']];return this['commentsListView']&&_0x46df3a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x46df3a['push'](this['commentThreadInputView']),_0x46df3a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20faa4['if']('isActive','ck-suggestion-wrapper--active'),_0x20faa4['to']('type',_0x3a6b63=>'ck-suggestion-'+_0x3a6b63),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':_0x20faa4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x46df3a};}['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));}},Sn=class extends _0x513899{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x1cdb33,_0xd0db1,_0x55e12c){super(_0x1cdb33),this['_model']=_0xd0db1,this['_config']=_0x55e12c,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd0db1),this['acceptButton']=this['_createButton'](wt(_0x1cdb33,'Accept\x20suggestion'),_0x5ec6e1,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x1cdb33,'Discard\x20suggestion'),_0x5297c6,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x1001eb=!!_0xd0db1['aiSource']&&'author'===_0x55e12c['showAISource'],_0x17ffc9=_0x1001eb?this['_createAIUser'](_0x55e12c['aiAuthor']):_0xd0db1['author'],_0x5def83=_0x1001eb&&!_0x55e12c['aiAuthor']['avatar']?_0x595aef:void 0x0;this['userView']=new _0x5041e9(_0x1cdb33,_0x17ffc9,this['getUserViewNotificationText'](),_0x5def83),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5a76c1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d9954(),this['keystrokes']=new _0x5e4661(),this['focusCycler']=new _0x555dfe({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x140bf0=>_0x140bf0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4515c8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4515c8['innerHTML']=_0x350987(this['description']),this['on']('change:description',(_0x524d31,_0x575173,_0x5065b8)=>{_0x4515c8['innerHTML']=_0x350987(_0x5065b8);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x432c31=this['bindTemplate'],_0x59a6f1=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x432c31['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x432c31['to']('authoredAt',_0x473f73=>this['_config']['formatDateTime'](_0x473f73))}]}]},{'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']&&_0x59a6f1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x519fa8=new _0x1a7638(this['locale']);_0x519fa8['set']({'icon':_0x5e5c7d,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x59a6f1['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x519fa8]});}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':_0x59a6f1}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x4f1fa8){return new _0x1ab73f({'id':'ck-ai-author','name':_0x4f1fa8['name'],'avatar':_0x4f1fa8['avatar'],'color':new _0x512fe3(0x0)});}_createButton(_0x57a347,_0x47d88b,_0x5486a0,_0x46fb03,_0x20c637){const _0x57b1b8=new _0x145a53(this['locale']);return _0x57b1b8['set']({'label':_0x57a347,'icon':_0x47d88b,'tooltip':!0x0,'tooltipPosition':_0x20c637}),_0x57b1b8['extendTemplate']({'attributes':{'class':_0x5486a0}}),_0x57b1b8['on']('execute',()=>{this['fire'](_0x46fb03,this['_model']['id']);}),_0x57b1b8;}_setupKeyboardNavigation(){const _0x12232b=this['element'];this['keystrokes']['listenTo'](_0x12232b);for(const _0x3d4a64 of this['focusables'])this['focusTracker']['add'](_0x3d4a64['element']),this['keystrokes']['listenTo'](_0x3d4a64['element']);this['keystrokes']['set']('enter',(_0x2bdcd9,_0x292fee)=>{_0x12232b===_0x2bdcd9['target']&&(this['focusCycler']['focusFirst'](),_0x292fee());}),this['keystrokes']['set']('esc',(_0xd90e21,_0x540659)=>{_0x12232b!==_0xd90e21['target']&&(this['focus'](),_0x540659());});}},Mn=class extends _0x4ca415{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x5e4825,_0x151698,_0x5009eb,_0x4d8ff3];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fe695){super(_0x4fe695),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb12e0e=this['editor']['config'];_0xb12e0e['define']('trackChanges.SuggestionThreadView',yn),_0xb12e0e['define']('trackChanges.SuggestionView',Sn),_0xb12e0e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb12e0e['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x1b0fdb,_0x59b56d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3db6dd,_0x15f344]of this['_handleControllerBuffer']){const _0x382227=this['_suggestionToController']['has'](_0x3db6dd);_0x382227||_0x15f344?_0x382227&&_0x15f344&&this['_destroyController'](_0x3db6dd):this['_initializeController'](_0x3db6dd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4d8ff3)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b0fdb,_0x59b56d);}init(){const _0x1f9fab=this['editor'],_0x4c0094=_0x1f9fab['plugins']['get'](ln),_0x2b0a1c=_0x1f9fab['plugins']['get'](_0x5009eb),_0x1b9819=_0x1f9fab['plugins']['get'](_0x4d8ff3),_0x1feb67=_0x1f9fab['plugins']['get'](_0x151698);this['_addUIComponentsToFactory'](),_0x1b9819['addSourceCollector'](()=>{const _0x3d9b46=[];for(const [_0x49af0e,_0x57591d]of Array['from'](this['_suggestionToController'])){const _0x6d56db=_0x49af0e['getAllAdjacentSuggestions'](),_0x171ab2=[];for(const _0x446484 of _0x6d56db){if(!_0x446484['isInContent'])continue;if(_0x446484['isMultiRange']){_0x171ab2['push'](..._0x446484['getRanges']());continue;}const _0x594876=_0x446484['getFirstRange']();if(_0x171ab2['length']>0x0){const _0x399a62=_0x171ab2[0x0]['getJoined'](_0x594876);if(_0x399a62){_0x171ab2[0x0]=_0x399a62;continue;}}_0x171ab2['push'](_0x594876);}_0x3d9b46['push']([_0x57591d['view'],_0x171ab2]);}return _0x3d9b46;}),this['listenTo'](_0x4c0094,'suggestionLoaded',(_0x182bb5,_0x1ca523)=>{this['listenTo'](_0x1ca523,'change:previous',(_0x31f688,_0x24f2cc,_0x583b79,_0x4b31e6)=>{_0x1ca523['isInContent']&&(null==_0x583b79?(this['_updateController'](_0x4b31e6['head']),this['_handleSuggestionControllerDelayed'](_0x1ca523,!0x1)):(this['_updateController'](_0x583b79['head']),null==_0x4b31e6&&this['_handleSuggestionControllerDelayed'](_0x1ca523,!0x0)));}),null!==_0x1ca523['previous']?this['_updateController'](_0x1ca523['head']):this['_handleSuggestionControllerDelayed'](_0x1ca523,!0x1);}),this['listenTo'](_0x4c0094,'suggestionUnloaded',(_0x2e411c,_0x200696,_0x6f46db)=>{this['stopListening'](_0x200696,'change:previous'),this['_handleControllerBuffer']['delete'](_0x200696),this['_suggestionToController']['has'](_0x200696)&&this['_destroyController'](_0x200696),_0x6f46db&&this['_updateController'](_0x6f46db['head']);}),this['listenTo'](_0x4c0094,'suggestionChanged',(_0x39b6da,_0x201320)=>{this['_updateController'](_0x201320);}),this['listenTo'](_0x2b0a1c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1feb67,'addComment',(_0xee0a62,{threadId:_0xd5c432,isFromAdapter:_0x38010e})=>{if(_0x38010e||!_0x4c0094['hasSuggestion'](_0xd5c432))return;const _0x51f7da=_0x4c0094['getSuggestion'](_0xd5c432);this['_suggestionToController']['get'](_0x51f7da)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x4f0dbe=[this['editor']];for(const _0x45938c of _0x4f0dbe){let _0x56c905;for(const _0x479c03 in _0x45938c){const _0x72eff3=_0x479c03,_0x5119d2=_0x45938c[_0x72eff3];if('trackChangesLicenseKeyValid'==_0x5119d2||'trackChangesLicenseKeyInvalid'==_0x5119d2||'trackChangesLicenseKeyExpired'==_0x5119d2||'trackChangesLicenseKeyDomainLimit'==_0x5119d2||'trackChangesLicenseKeyNotAllowed'==_0x5119d2||'trackChangesLicenseKeyEvaluationLimit'==_0x5119d2||'trackChangesLicenseKeyUsageLimit'==_0x5119d2){delete _0x45938c[_0x72eff3],_0x56c905=_0x5119d2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x56c905&&_0x45938c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x56c905&&_0x45938c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x56c905&&_0x45938c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x56c905&&_0x45938c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x56c905&&_0x45938c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x56c905&&_0x45938c['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x5e857a){const _0x1fa594=this['_suggestionToController']['get'](_0x5e857a);return _0x1fa594&&this['editor']['plugins']['get'](_0x5009eb)['getByInnerView'](_0x1fa594['view'])||null;}getSuggestionForAnnotation(_0x5415d7){const _0x3c94c1=this['_viewToController']['get'](_0x5415d7['innerView']);return _0x3c94c1?_0x3c94c1['model']:null;}_refreshActiveMarkers(){const _0x707f08=this['editor']['plugins']['get'](_0x5009eb),_0xdf803b=this['editor']['plugins']['get'](ln),_0x5c3292=Array['from'](_0x707f08['activeAnnotations'],_0x513e52=>_0x513e52['innerView'])['filter'](_0x49c30f=>this['_viewToController']['has'](_0x49c30f)),_0x31f9f7=[];for(const _0x3f743b of _0x5c3292){const _0x4bbf0c=this['_viewToController']['get'](_0x3f743b)['model']['getAllAdjacentSuggestions']();_0x31f9f7['push'](..._0x4bbf0c['reduce']((_0x369a1d,_0x57a1cb)=>[..._0x369a1d,..._0x57a1cb['getMarkerNames']()],[]));}_0xdf803b['activeMarkers']=_0x31f9f7;}_addUIComponentsToFactory(){const _0x438e11=this['editor'],_0x4f4b29=_0x438e11['locale'],_0x304228=wt(_0x4f4b29,'Track\x20changes'),_0x393033=new _0x1b2901([{'type':'switchbutton','model':new _0x3884c5({'withText':!0x0,'isToggleable':!0x0,'label':_0x304228,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3884c5({'withText':!0x0,'label':wt(_0x4f4b29,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3884c5({'withText':!0x0,'label':wt(_0x4f4b29,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3884c5({'withText':!0x0,'label':wt(_0x4f4b29,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3884c5({'withText':!0x0,'label':wt(_0x4f4b29,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x438e11['plugins']['has']('TrackChangesPreview')&&_0x393033['addMany']([{'type':'separator'},{'type':'button','model':new _0x3884c5({'withText':!0x0,'label':wt(_0x4f4b29,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1fd7b3 of _0x393033)if(On(_0x1fd7b3)){const _0x5b77e2=_0x438e11['commands']['get'](_0x1fd7b3['model']['commandName']);_0x1fd7b3['model']['bind']('isOn','isEnabled')['to'](_0x5b77e2,'value','isEnabled');}_0x438e11['ui']['componentFactory']['add']('trackChanges',_0x25ce87=>this['_createToolbarButton'](_0x25ce87,_0x393033,_0x304228)),_0x438e11['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1b84c5=>this['_createMenuBarMenu'](_0x1b84c5,_0x393033,_0x304228));}_createToolbarButton(_0x54757a,_0x5f4afc,_0x11b75d){const _0x1dad29=_0x321b6a(_0x54757a,_0x5269a6),_0x3b0803=this['editor']['commands']['get']('trackChanges');_0x1dad29['buttonView']['set']({'tooltip':_0x11b75d,'label':_0x11b75d,'icon':_0x1d5cfd}),_0x1dad29['buttonView']['bind']('isOn')['to'](_0x3b0803,'value'),_0x1dad29['buttonView']['on']('execute',()=>{_0x3b0803['execute'](),this['editor']['editing']['view']['focus']();}),_0x173022(_0x1dad29,_0x5f4afc,{'role':'menu'});const _0x44c7e1=[];for(const _0x2abb52 of _0x5f4afc)On(_0x2abb52)&&_0x44c7e1['push'](this['editor']['commands']['get'](_0x2abb52['model']['commandName']));const _0x4e6052=_0x1dad29['buttonView'];return _0x4e6052['actionView']['unbind']('isEnabled'),_0x4e6052['arrowView']['unbind']('isEnabled'),_0x4e6052['actionView']['bind']('isEnabled')['to'](_0x3b0803,'isEnabled'),_0x4e6052['arrowView']['bind']('isEnabled')['toMany'](_0x44c7e1,'isEnabled',(..._0x55cfab)=>_0x55cfab['some'](_0x2243c1=>_0x2243c1)),_0x1dad29['on']('execute',_0x2e6ed8=>{this['editor']['execute'](_0x2e6ed8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1dad29;}_createMenuBarMenu(_0x4aae83,_0x7a7012,_0x16cca9){const _0x40f914=new _0x38c6a7(_0x4aae83),_0x40dec1=this['editor']['commands']['get']('trackChanges');_0x40f914['buttonView']['set']({'label':_0x16cca9,'icon':_0x1d5cfd});const _0x26f482=new _0x1ae59c(_0x4aae83);for(const _0x18fc4d of _0x7a7012){if('separator'==_0x18fc4d['type']){_0x26f482['items']['add'](new _0x13559f(_0x4aae83));continue;}const _0xcb03fc=new _0x4fd21f(_0x4aae83,_0x40f914),_0x48983b=new _0x2be049(_0x4aae83),_0x23330d=_0x18fc4d['model'];_0x48983b['bind'](...Object['keys'](_0x23330d))['to'](_0x23330d),_0x48983b['delegate']('execute')['to'](_0x40f914),_0x48983b['on']('execute',()=>{this['editor']['execute'](_0x23330d['commandName']),this['editor']['editing']['view']['focus']();}),_0xcb03fc['children']['add'](_0x48983b),_0x26f482['items']['add'](_0xcb03fc);}return _0x40f914['bind']('isEnabled')['to'](_0x40dec1,'isEnabled'),_0x40f914['panelView']['children']['add'](_0x26f482),_0x40f914;}_initializeController(_0xc7295a){const _0x19a16e=this['editor'],_0x207fc0=_0x19a16e['config'],_0x457c94=_0x19a16e['plugins']['get'](_0x5009eb),_0x13ccd2=_0x19a16e['plugins']['get'](_0x151698),_0x25297b=_0x19a16e['plugins']['get'](_0x4d8ff3),_0x1406ef=_0x19a16e['plugins']['get'](_0x5e4825)['me'],_0x2939e1=_0x207fc0['get']('trackChanges')['SuggestionThreadView'],_0x5b32b2=_0x207fc0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2e32ae,CommentThreadInputView:_0x9b937e}=_0x19a16e['plugins']['get']('CommentsUI');let _0x27ca1d,_0x81ef5c,_0xeb04f;this['_annotationViews']['has'](_0xc7295a['id'])?(_0x81ef5c=this['_annotationViews']['get'](_0xc7295a['id']),_0x27ca1d=_0x81ef5c['mainView']):(_0x27ca1d=new _0x2939e1(_0x19a16e['locale'],_0xc7295a,_0x1406ef,{'disableComments':this['_disableComments'],'editorConfig':{..._0x207fc0['get']('comments.editorConfig'),'licenseKey':_0x207fc0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x207fc0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x207fc0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x207fc0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x423457(_0x207fc0['get']('locale'),_0x19a16e['locale']),'CommentView':_0x207fc0['get']('comments')['CommentView'],'CommentsListView':_0x2e32ae,'CommentThreadInputView':_0x9b937e,'SuggestionView':_0x5b32b2,'showAISource':_0x207fc0['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x207fc0['get']('trackChanges.aiAuthor'),'name':_0x207fc0['get']('trackChanges.aiAuthor')?.['name']||wt(_0x19a16e['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x27ca1d['suggestionView']['acceptButton']['on']('execute',()=>{_0x19a16e['editing']['view']['focus']();}),_0x27ca1d['suggestionView']['discardButton']['on']('execute',()=>{_0x19a16e['editing']['view']['focus']();}),_0x81ef5c=_0x457c94['createAnnotationView'](this['editor']['locale'],_0x27ca1d),_0x81ef5c['bind']('isDirty')['to'](_0x27ca1d,'isDirty'),_0x81ef5c['bind']('length')['to'](_0x27ca1d),_0x81ef5c['bind']('type')['to'](_0x27ca1d,'type',_0x3e839c=>'suggestion-'+_0x3e839c),_0x27ca1d['on']('escape',()=>{_0xeb04f['fire']('escape');}),this['_annotationViews']['set'](_0xc7295a['id'],_0x81ef5c));const _0x52460d=_0x13ccd2['createCommentThreadController'](_0xc7295a['commentThread'],_0x27ca1d),_0x3a36f5=new Rn(_0x19a16e,_0xc7295a,_0x27ca1d,_0x52460d),_0x3ef869=_0xc7295a['getAllAdjacentSuggestions']()['filter'](_0x10d275=>_0x10d275['isInContent']);_0x27ca1d['descriptionParts']=_0x19a16e['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x3ef869),this['_suggestionToController']['set'](_0xc7295a,_0x3a36f5),this['_viewToController']['set'](_0x27ca1d,_0x3a36f5);const _0x35c110=()=>{const _0x4c8252=[],_0x4f0afa=_0xc7295a['getAllAdjacentSuggestions']()['filter'](_0x4cd1f2=>_0x4cd1f2['isInContent']);for(const _0x594c8c of _0x4f0afa)_0x4c8252['push'](..._0x594c8c['getMarkers']());return _0xb68441(_0x19a16e['editing'],_0x4c8252);};_0xeb04f=_0x457c94['createAnnotation']({'view':_0x81ef5c,'target':_0x35c110,'type':()=>'suggestion-'+_0x3a36f5['view']['type'],'isVisible':!!_0x35c110()}),_0x13ccd2['_bindAnnotationToEditors'](_0x27ca1d,_0xeb04f),_0x457c94['add'](_0xeb04f),_0x25297b['registerAnnotation'](_0xeb04f);}_destroyController(_0x136b74){const _0x623ab2=this['editor']['plugins']['get'](_0x151698),_0xf25889=this['editor']['plugins']['get'](_0x5009eb),_0x4b662e=this['_suggestionToController']['get'](_0x136b74),_0x5f174b=_0x4b662e['view'],_0x4ae5aa=_0xf25889['getByInnerView'](_0x5f174b);_0x623ab2['_unbindEditors'](_0x5f174b),_0x4ae5aa&&_0xf25889['remove'](_0x4ae5aa),this['_suggestionToController']['delete'](_0x136b74),this['_viewToController']['delete'](_0x5f174b),_0x4b662e['destroy']();}_updateController(_0x57825f){if(!_0x57825f['isInContent']||!this['_suggestionToController']['has'](_0x57825f))return;const _0x5c0eab=this['editor']['plugins']['get'](ln),_0x4ab855=this['_suggestionToController']['get'](_0x57825f),_0x4eb28a=_0x57825f['getAllAdjacentSuggestions']();_0x4ab855['view']['descriptionParts']=_0x5c0eab['descriptionFactory']['getDescriptions'](_0x4eb28a);}destroy(){for(const _0x3cb369 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3cb369);for(const _0x4cc21a of this['_annotationViews']['values']())_0x4cc21a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x1a3ff2){return'model'in _0x1a3ff2;}var wn=class extends _0x4ca415{static get requires(){return[ln,Mn,_0x299211];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x11cfe1){this['editor']['plugins']['get'](ln)['adapter']=_0x11cfe1;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x307dee){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x307dee);}getSuggestions({skipNotAttached:_0xa4ee87=!0x1,toJSON:_0x750c1a=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0xa4ee87,'toJSON':_0x750c1a});}getSuggestion(_0x34db53){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0x34db53);}};const Bn=['Pagination'];var Fn=class extends _0x4ca415{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x23db12=this['editor'];if(_0x23db12['config']['define']('trackChangesData.editorCreator',_0x4bd360=>{const _0x2f57cf=_0x23db12['model']['document']['getRootNames']()['reduce']((_0x1cc52a,_0x1863a1)=>(_0x1cc52a[_0x1863a1]='',_0x1cc52a),{});return _0x23db12['constructor']['create'](_0x2f57cf,_0x4bd360);}),'function'!=typeof _0x23db12['config']['get']('trackChangesData')['editorCreator'])throw new _0x1aad84('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0xbb518d){return Un(this['editor'],!0x0,_0xbb518d);}getDataWithDiscardedSuggestions(_0x2dfb1c){return Un(this['editor'],!0x1,_0x2dfb1c);}},vn=class extends _0x4ca415{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46adb8){super(_0x46adb8),this['result']='end',_0x46adb8['editing']['view']['_overlayModeHint']='auto',_0x46adb8['_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 Dn(_0x36978f){return void 0x0!==_0x36978f['getRootsAttributes'];}async function Un(_0x2a5b6c,_0x5f3787,_0x2bbc3c){const _0x265fd5=tt(_0x2a5b6c,Bn);if(_0x265fd5['plugins']['push'](ln,vn),Dn(_0x2a5b6c)){_0x265fd5['roots']=Object['create'](null);for(const _0xe84bed of _0x2a5b6c['model']['document']['getRootNames']())_0x265fd5['roots'][_0xe84bed]={'modelAttributes':_0x2a5b6c['getRootAttributes'](_0xe84bed)};}const _0x281aa0=document['createDocumentFragment'](),_0x1594ec=_0x2a5b6c['config']['get']('trackChangesData')['editorCreator'],_0x204d33=await _0x1594ec(_0x265fd5,()=>function(_0x2b5f5d){const _0x31cb4c=document['createElement']('div');return _0x2b5f5d['appendChild'](_0x31cb4c),_0x31cb4c;}(_0x281aa0));!function(_0x29ed7f,_0x3f875e){const _0xfc89cb=_0x29ed7f['model']['document']['getRootNames']()['reduce']((_0x4f285e,_0x49f13b)=>(_0x4f285e[_0x49f13b]=_0x29ed7f['data']['get']({'rootName':_0x49f13b}),_0x4f285e),{}),_0x41b9c4=_0x29ed7f['plugins']['get']('Users')['users']['map'](_0x30ca41=>({'id':_0x30ca41['id'],'name':_0x30ca41['name']})),_0x54bd61=_0x29ed7f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16d2d9=_0x29ed7f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ce797=_0x3f875e['plugins']['get']('Users'),_0x479549=_0x3f875e['plugins']['get']('TrackChangesEditing'),_0x42d825=_0x3f875e['plugins']['get']('CommentsRepository');for(const _0xbc5006 of _0x42d825['getCommentThreads']())_0xbc5006['remove']();for(const _0x14128a of _0x41b9c4)_0x1ce797['getUser'](_0x14128a['id'])||_0x1ce797['addUser'](_0x14128a);_0x1ce797['me']||_0x1ce797['useAnonymousUser']();for(const _0x561d5b of _0x16d2d9)_0x42d825['addCommentThread'](_0x561d5b);for(const _0x5948e0 of _0x54bd61)_0x479549['addSuggestionData'](_0x5948e0);_0x3f875e['data']['set'](_0xfc89cb);}(_0x2a5b6c,_0x204d33),_0x204d33['execute'](_0x5f3787?'acceptAllSuggestions':'discardAllSuggestions');const _0xc4d4cb=Dn(_0x204d33)?_0x204d33['getFullData'](_0x2bbc3c):_0x204d33['data']['get'](_0x2bbc3c);return await _0x204d33['destroy'](),_0xc4d4cb;}var Pn=class extends _0x513899{options;constructor(_0x3404a5,_0x13ff8b){super(_0x3404a5),this['options']=_0x13ff8b,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(_0x141b39,_0x1bd232){if(!this['element'])return;const _0x1b8567=[];for(const [_0x5963f6,_0x5d22e0]of _0x141b39){const _0x340f58=document['createElement']('div');_0x340f58['setAttribute']('data-ck-root-name',_0x5963f6),_0x340f58['className']=_0x5d22e0['classes']+'\x20ck-track-changes-preview__root-container',_0x340f58['innerHTML']=_0x350987(_0x5d22e0['content']),_0x1b8567['push'](_0x340f58);}_0x1bd232(this['element'],_0x1b8567),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x1773a3{constructor(_0x103d2f){super(_0x103d2f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x5cecaa=this['editor'],_0x5f1b16=_0x5cecaa['locale'],_0x44e6c0=_0x5cecaa['plugins']['get']('Dialog');let _0x49ddfd;const _0x623688=function(_0x1ab594){const _0xdfe3df={};if('editables'in _0x1ab594['ui']['view']){for(const [_0x1de08c,_0x2c4de9]of Object['entries'](_0x1ab594['ui']['view']['editables']))_0xdfe3df[_0x1de08c]=_0x2c4de9['element'];}else _0xdfe3df[_0x1ab594['model']['document']['getRootNames']()[0x0]]=_0x1ab594['ui']['view']['editable']['element'];return _0xdfe3df;}(_0x5cecaa),_0x4e7392=function(_0x288079){let _0x197fe3=0x0;for(const _0x73f0e4 of Object['values'](_0x288079))_0x197fe3=Math['max'](_0x197fe3,_0x73f0e4['getBoundingClientRect']()['width']);let _0x3831a2=0x0;for(const _0x27588b of Object['values'](_0x288079))_0x3831a2+=_0x27588b['getBoundingClientRect']()['height'];const _0x41cae5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x197fe3,'height':Math['min'](_0x3831a2,_0x41cae5)};}(_0x623688);_0x44e6c0['show']({'id':'finalContentPreview','title':wt(_0x5f1b16,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x5f1b16,{'dialogRects':_0x4e7392}),'onHide':()=>{_0x49ddfd['destroy']();},'onShow':()=>{_0x5cecaa['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x55f92e=>{const _0x257164=this['_standarizeRootsData'](_0x55f92e,_0x5cecaa,_0x623688);_0x44e6c0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x257164,_0x5cecaa['config']['get']('trackChanges.preview.renderFunction'));}),_0x49ddfd=new _0x4c26b2(_0x5f1b16,[_0x44e6c0['view']]),_0x49ddfd['attachToDom'](_0x5cecaa['ui']['view']['body']['mountTarget']),_0x49ddfd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5cecaa['once']('destroy',()=>{_0x49ddfd['destroy']();});const _0x21a8b3=_0x44e6c0['view']['headerView']['class'];_0x44e6c0['view']['headerView']['class']=_0x21a8b3?_0x21a8b3+'\x20ck-reset_all':'ck-reset_all',_0x44e6c0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x44e6c0['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2cde62=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x49ef24=_0x2cde62['previewMode'],_0x413d7e={};if('$labels'===_0x49ef24){for(const _0x445a9c of _0x2cde62['getMergeFieldsIds']())_0x413d7e[_0x445a9c]=_0x2cde62['getLabel'](_0x445a9c)||_0x445a9c;}else{const _0x4f5679='$defaultValues'===_0x49ef24?_0x2cde62['getDefaultValues']():_0x2cde62['getDataSetValues'](_0x49ef24,!0x0);for(const _0x44678f of Object['entries'](_0x4f5679)){const [_0x2fb1bf,_0x455541]=_0x44678f;_0x413d7e[_0x2fb1bf]=null!==_0x455541?_0x455541:_0x2cde62['getLabel'](_0x2fb1bf)||_0x2fb1bf;}}return{'mergeFieldsData':_0x413d7e};}_standarizeRootsData(_0x2be82c,_0x10698f,_0x4bc9ab){let _0x624325;_0x624325='string'==typeof _0x2be82c?{[_0x10698f['model']['document']['getRootNames']()[0x0]]:_0x2be82c}:_0x2be82c;const _0x3ef849=this['_fixMediaEmbeds'](_0x624325,_0x10698f);return function(_0x572b09,_0x4e1637){const _0x52f02d=new Set(['ck-focused','ck-editor__editable_root']);for(const [_0x42ebf7,_0x2fc05e]of _0x572b09)_0x2fc05e['classes']=Array['from'](_0x4e1637[_0x42ebf7]['classList'])['filter'](_0x44a721=>!_0x52f02d['has'](_0x44a721))['join']('\x20');return _0x572b09;}(this['_sortRoots'](_0x10698f)['reduce']((_0x40f941,_0x375c88)=>(_0x40f941['push']([_0x375c88,{'content':_0x3ef849[_0x375c88],'classes':''}]),_0x40f941),[]),_0x4bc9ab);}['_fixMediaEmbeds'](_0xc40db2,_0x4117ae){if(!_0x4117ae['plugins']['has']('MediaEmbedEditing'))return _0xc40db2;const _0x11dee6=_0x4117ae['plugins']['get']('MediaEmbedEditing');for(const [_0x35a0b3,_0xc412e5]of Object['entries'](_0xc40db2)){const _0x413ccf=document['createElement']('div');_0x413ccf['innerHTML']=_0x350987(_0xc412e5),_0x413ccf['querySelectorAll']('figure.media')['forEach'](_0xf12caa=>{const _0x1d8b0b=_0xf12caa['querySelector']('oembed');if(_0x1d8b0b){const _0x3b018c=_0x1d8b0b['getAttribute']('url');if(_0x3b018c){const _0x5ad29e=_0x11dee6['registry']['getMediaViewElement'](new ct(_0x4117ae['editing']['view']['document']),_0x3b018c,{'elementName':'','renderForEditingView':!0x0}),_0x517b27=document['createElement']('div');_0x517b27['classList']['add']('ck-media__wrapper'),_0x5ad29e['render'](_0x517b27,_0x4117ae['editing']['view']['domConverter']),_0x1d8b0b['replaceWith'](_0x517b27);}}}),_0xc40db2[_0x35a0b3]=_0x413ccf['innerHTML'];}return _0xc40db2;}_sortRoots(_0x4449a){if(!function(_0x543ef3){return void 0x0!==_0x543ef3['getRootsAttributes'];}(_0x4449a))return _0x4449a['model']['document']['getRootNames']();const _0x53bf0d=[],_0x40680b=new Map();for(const _0x281f29 of _0x4449a['model']['document']['getRootNames']()){const _0x33141e=_0x4449a['editing']['view']['getDomRoot'](_0x281f29)['getClientRects']()['item'](0x0);_0x53bf0d['push'](_0x281f29),_0x40680b['set'](_0x281f29,_0x33141e);}return _0x53bf0d['sort']((_0x1be2aa,_0xf36ca0)=>{const _0x32a0ee=_0x40680b['get'](_0x1be2aa),_0x51b96c=_0x40680b['get'](_0xf36ca0);return _0x32a0ee['y']-_0x51b96c['y']||_0x32a0ee['x']-_0x51b96c['x'];}),_0x53bf0d;}},Gn=class extends _0x4ca415{static get requires(){return[Fn,_0xc22b61];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4693fb){super(_0x4693fb),_0x4693fb['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x4693fb['config']['define']('trackChanges.preview.renderFunction',(_0x2d616e,_0xfd0f3a)=>{for(const _0x56191e of _0xfd0f3a)_0x2d616e['appendChild'](_0x56191e);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x5ed50d,PendingActions as _0x29e1f3,Plugin as _0x27de82}from'@ckeditor/ckeditor5-core';import{Annotations as _0x391807,Comments as _0x4784d5,CommentsRepository as _0x2c9b6f,EditorAnnotations as _0x20cafe}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2d6318,Collection as _0x9e661,FocusTracker as _0x423539,KeystrokeHandler as _0x37b2dc,ObservableMixin as _0x717ca8,getEnvKeystrokeText as _0x502635,insertToPriorityArray as _0x31b36a,logWarning as _0x46d0de,priorities as _0x376900,trustedHtml as _0x17317b,uid as _0x34e203}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x5d53b2,IconCancel as _0x541890,IconCheck as _0x3ca8a3,IconSparkle as _0x253047,IconTrackChanges as _0xe2237a}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x49f9aa,Dialog as _0x1cacb1,FocusCycler as _0x43ef98,IconView as _0x145f0a,ListSeparatorView as _0x4df9bc,MenuBarMenuListItemButtonView as _0x16188b,MenuBarMenuListItemView as _0x9731b7,MenuBarMenuListView as _0x1bc4c5,MenuBarMenuView as _0x2f8e77,SplitButtonView as _0xa28e10,UIModel as _0xb44f9c,View as _0x5e596b,ViewCollection as _0x13a9f2,_getLocalizedColorName as _0x1cf919,addListToDropdown as _0x2c643a,createDropdown as _0x223889,normalizeColorOptions as _0x1a1c75}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x4c5527,CollaborationUserColor as _0x12a60d,FOCUS_ANNOTATION_KEYSTROKE as _0x5ea33f,LateFocusButtonView as _0x1de594,PillView as _0x1373e3,SuggestionsConversion as _0x343b2a,User as _0x4373da,UserView as _0x30f0d0,Users as _0x15d2c7,fixElementSuggestionRange as _0x3ae6dc,getAllMarkersDomElementsSorted as _0x1da01f,getDateTimeFormatter as _0x382e7c,hashObject as _0x1d4874,isInvalidAttributeOperation as tt,sanitizeEditorConfig as et,setupThreadKeyboardNavigation as nt,splitSuggestionMarkerName as it,surroundingMarkersDetector as st,trimHtml as rt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as ot,ModelLivePosition as at,ModelLiveRange as ct,ViewDowncastWriter as lt}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ut,isEqual as dt,omit as ht,set as gt,unset as ft}from'es-toolkit/compat';import{ClipboardMarkersUtils as mt,ClipboardPipeline as Et}from'@ckeditor/ckeditor5-clipboard';import{Delete as Tt,Input as _t}from'@ckeditor/ckeditor5-typing';import{Enter as pt}from'@ckeditor/ckeditor5-enter';var Lt=class extends _0x5ed50d{['_enabledCommands'];constructor(_0x1a2b37,_0x2380eb){super(_0x1a2b37),this['_enabledCommands']=_0x2380eb,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 _0x426e7a of this['editor']['commands']['commands']())_0x426e7a['affectsData']&&!this['_enabledCommands']['has'](_0x426e7a)&&_0x426e7a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2a1dfd of this['editor']['commands']['commands']())_0x2a1dfd['affectsData']&&!this['_enabledCommands']['has'](_0x2a1dfd)&&_0x2a1dfd['clearForceDisabled']('TrackChangesCommand');}},It=class extends _0x5ed50d{_suggestions;constructor(_0x54707f,_0x4fca93){super(_0x54707f),this['_suggestions']=_0x4fca93,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x4c8423){const _0x5073b7=this['_suggestions']['get'](_0x4c8423);if(!_0x5073b7)throw new _0x2d6318('track-changes-accept-suggestion-not-found',this);const _0x144c5f=_0x5073b7['getRanges']();this['editor']['model']['canEditAt'](_0x144c5f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5073b7);}},At=class extends _0x5ed50d{_suggestions;constructor(_0x9e869e,_0x57041f){super(_0x9e869e),this['_suggestions']=_0x57041f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x54f87b){const _0x4ecc5c=this['_suggestions']['get'](_0x54f87b);if(!_0x4ecc5c)throw new _0x2d6318('track-changes-discard-suggestion-not-found',this);const _0xc1006e=_0x4ecc5c['getRanges']();this['editor']['model']['canEditAt'](_0xc1006e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4ecc5c);}};function bt(_0x481f90,_0x2633f4){let _0x2e116b='';return _0x2e116b+=_0x481f90['split']('*')['map']((_0x1419e6,_0x27de6a)=>_0x27de6a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Ct(_0x1419e6)+'</span>':Ct(_0x1419e6))['join'](''),_0x2633f4&&(_0x2e116b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2633f4['value']+'\x22\x20title=\x22'+_0x2633f4['title']+'\x22></span>'),_0x2e116b;}function Ct(_0x573c99){const _0x41561d=document['createElement']('span');return _0x41561d['innerText']=_0x573c99,_0x41561d['innerHTML'];}function kt(_0x3479f5){return _0x3479f5['sort']((_0x161249,_0x3e2cee)=>'attribute'===_0x161249['type']&&'attribute'!==_0x3e2cee['type']?-0x1:'attribute'!==_0x161249['type']&&'attribute'===_0x3e2cee['type']?0x1:'deletion'==_0x161249['type']&&'deletion'!=_0x3e2cee['type']?-0x1:'deletion'!=_0x161249['type']&&'deletion'==_0x3e2cee['type']?0x1:0x0);}function Rt(_0x1a60cf,_0x34b456){let _0x4a3ff9,_0x3ceea5=0x0;const _0x416a78=[],_0x3aaffb=_0x34b456['schema'];for(;_0x3ceea5<_0x1a60cf['length'];){const _0x476ce5=_0x1a60cf[_0x3ceea5],_0x232b5a=_0x1a60cf[_0x3ceea5+0x1];_0x4a3ff9||(_0x4a3ff9=_0x34b456['createPositionBefore'](_0x476ce5)),Nt(_0x34b456,_0x476ce5,_0x232b5a)||(_0x416a78['push'](_0x34b456['createRange'](_0x4a3ff9,_0x3aaffb['isObject'](_0x476ce5)?_0x34b456['createPositionAfter'](_0x476ce5):_0x34b456['createPositionAt'](_0x476ce5,'end'))),_0x4a3ff9=null),_0x3ceea5++;}return _0x416a78;}function Nt(_0x2497b4,_0x4bdf37,_0x37355d){if(!_0x37355d)return!0x1;const _0x585393=_0x2497b4['createPositionAfter'](_0x4bdf37),_0x805ec5=_0x2497b4['createPositionBefore'](_0x37355d);return _0x585393['isTouching'](_0x805ec5);}function yt(_0x5b96c1,_0x3fb8b3,_0x4ddddc){for(;_0x4ddddc['length'];){const _0x27af8f=_0x4ddddc['splice'](0x0,0x64);_0x5b96c1['change'](()=>{for(const _0xf62473 of _0x27af8f)_0xf62473['isInContent']&&_0x3fb8b3['execute'](_0xf62473['id']);});}}var St=class extends _0x5ed50d{['_command'];_suggestions;constructor(_0x1d4e27,_0x2824e0,_0x277190){super(_0x1d4e27),this['_command']=_0x2824e0,this['_suggestions']=_0x277190,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47b783=Array['from'](this['_suggestions']['values']())['some'](_0x41bc7d=>_0x41bc7d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x47b783;}execute(){const _0x217cd0=kt(Array['from'](this['_suggestions']['values']()));for(const _0x5b647d of _0x217cd0){const _0x2d84a1=_0x5b647d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d84a1))return;}yt(this['editor']['model'],this['_command'],_0x217cd0);}},Mt=class extends _0x5ed50d{['_command'];_suggestions;_selectedSuggestions;constructor(_0x4ff6f0,_0x5d0b78,_0x2023c7){super(_0x4ff6f0),this['_command']=_0x5d0b78,this['_suggestions']=_0x2023c7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3131a3=this['editor']['model']['document']['selection'],_0x68acc4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x41fec2,_0x33dd44){const _0x1af7ed=Array['from'](_0x41fec2['getRanges']()),_0x25cb60=new Set();for(const _0x46d69f of _0x33dd44)if(_0x46d69f['isInContent']){for(const _0x956fba of _0x1af7ed)for(const _0x15c35b of _0x46d69f['getRanges']())(_0x956fba['isIntersecting'](_0x15c35b)||_0x41fec2['isCollapsed']&&!_0x46d69f['isMultiRange']&&_0x46d69f['next']&&_0x15c35b['end']['isTouching'](_0x956fba['start']))&&_0x25cb60['add'](_0x46d69f);}return _0x25cb60;}(_0x3131a3,_0x68acc4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x4972df=kt(Array['from'](this['_selectedSuggestions']));for(const _0x58477d of _0x4972df){const _0x3dc4d0=_0x58477d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3dc4d0))return;}yt(this['editor']['model'],this['_command'],_0x4972df);}};const Ot=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x717ca8();var wt=class Suggestion extends Ot{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x356d5e,_0x4e0c39){super(),this['id']=_0x4e0c39['id'],this['type']=_0x4e0c39['type'],this['subType']=_0x4e0c39['subType']||null,this['author']=_0x4e0c39['author'],this['creator']=_0x4e0c39['creator']||_0x4e0c39['author'],this['data']=null,this['_originalSuggestionId']=_0x4e0c39['originalSuggestionId']||null,this['_model']=_0x356d5e,this['_onAccept']=_0x4e0c39['onAccept'],this['_onDiscard']=_0x4e0c39['onDiscard'],this['_onAttributesChange']=_0x4e0c39['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e0c39['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 _0x21af5a=this;for(;_0x21af5a['previous'];)_0x21af5a=_0x21af5a['previous'];return _0x21af5a;}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'](_0x13b886){this['_markerNames']['add'](_0x13b886);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0xee3884=>this['_model']['markers']['get'](_0xee3884))['filter'](_0x533643=>_0x533643);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x536215=>{for(const _0x4d3179 of this['getMarkers']())_0x536215['removeMarker'](_0x4d3179);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f5e77){this['_model']['change'](_0x4df86c=>{_0x4df86c['removeMarker'](_0x4f5e77);}),this['_markerNames']['delete'](_0x4f5e77);}['addRange'](_0x37a2df){const _0x5e3f63='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x5e3f63),this['_model']['change'](_0x2fda8f=>{_0x2fda8f['addMarker'](_0x5e3f63,{'range':_0x37a2df,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0xa338d0){for(const _0x1d3d49 of this['getRanges']())if(_0x1d3d49['isIntersecting'](_0xa338d0))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x3e2482=>_0x3e2482['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x24bff0,_0x5c455f)=>[..._0x24bff0,..._0x5c455f['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x1ee118=this['getRanges']();if(0x1!=_0x1ee118['length'])return null;const _0x6b0e68=_0x1ee118[0x0],_0x558c24=_0x6b0e68['start']['nodeAfter'],_0x4ec343=_0x6b0e68['end']['nodeBefore'];return _0x558c24 instanceof ot?_0x558c24!=_0x4ec343?null:_0x558c24: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 _0xec1aa8=[];let _0x1d4781=this['head'];for(;_0x1d4781;)_0xec1aa8['push'](_0x1d4781),_0x1d4781=_0x1d4781['next'];return _0xec1aa8;}setAttribute(_0x75d3cf,_0x283042){const _0x586427=ut(this['attributes']);gt(_0x586427,_0x75d3cf,_0x283042),dt(_0x586427,this['attributes'])||(this['attributes']=_0x586427,this['_onAttributesChange'](_0x586427));}removeAttribute(_0x277423){const _0x2c3eaa=ut(this['attributes']);ft(_0x2c3eaa,_0x277423),dt(_0x2c3eaa,this['attributes'])||(this['attributes']=_0x2c3eaa,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 _0x34e203()['substr'](0x1,0x5);}};function Bt(_0xa5ad06,_0x5de7f9,_0xff83d6){const _0x1c09e3=_0xa5ad06['t'],t=_0xa5ad06['t'];switch(_0x5de7f9){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',_0xff83d6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xff83d6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xff83d6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xff83d6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xff83d6);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',_0xff83d6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xff83d6);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',_0xff83d6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xff83d6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xff83d6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xff83d6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xff83d6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xff83d6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xff83d6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xff83d6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xff83d6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xff83d6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xff83d6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xff83d6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xff83d6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xff83d6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xff83d6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xff83d6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xff83d6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xff83d6);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'},_0xff83d6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xff83d6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xff83d6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xff83d6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xff83d6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xff83d6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xff83d6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xff83d6);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'},_0xff83d6);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'},_0xff83d6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xff83d6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xff83d6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xff83d6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xff83d6);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'},_0xff83d6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xff83d6);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'},_0xff83d6);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'},_0xff83d6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xff83d6);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'},_0xff83d6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xff83d6);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'},_0xff83d6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xff83d6);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0xff83d6);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0xff83d6);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0xff83d6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xff83d6);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'},_0xff83d6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xff83d6);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 _0x1c09e3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xff83d6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1c09e3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xff83d6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xff83d6);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'},_0xff83d6);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'},_0xff83d6);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'},_0xff83d6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x5de7f9;}}var Ft=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x963c52,_0x243d9c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x963c52,this['_locale']=_0x243d9c;}getDescriptions(_0x5996a7){const _0x364668=[],_0x5c6aba=new Set(),_0x31344e=new Set();for(let _0xf8070=0x0;_0xf8070<_0x5996a7['length'];_0xf8070++){const _0x3dba8f=_0x5996a7[_0xf8070];if(!_0x3dba8f['isInContent'])continue;const _0x17ce7c=this['_handleCustomCallbackDescription'](_0x3dba8f);if(_0x17ce7c){if(null!=_0x3dba8f['subType']){if(_0x5c6aba['has'](_0x3dba8f['subType']))continue;_0x5c6aba['add'](_0x3dba8f['subType']);}_0x364668['push'](_0x17ce7c);}else{if('attribute'==_0x3dba8f['type']){const _0xc04c47=_0x3dba8f['data']['key'];if(_0x31344e['has'](_0xc04c47))continue;_0x31344e['add'](_0x3dba8f['data']['key']),'$elementName'==_0xc04c47?this['_handleRenameSuggestionDescription'](_0x364668,_0x3dba8f):this['_handleAttributeSuggestionDescription'](_0x364668,_0x3dba8f);continue;}'insertion'!=_0x3dba8f['type']&&'deletion'!=_0x3dba8f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x364668,_0x3dba8f,_0x5996a7[_0xf8070+0x1]);}}return this['_resolveDescriptionItems'](_0x364668);}registerDescriptionCallback(_0x59668e){this['_customCallbacks']['push'](_0x59668e);}registerElementLabel(_0x554439,_0x3e1502,_0x3b05a6=_0x376900['normal']){'function'==typeof _0x554439?_0x31b36a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x554439,'label':_0x3e1502,'priority':_0x3b05a6}):this['_itemLabels']['set'](_0x554439,_0x3e1502);}registerAttributeLabel(_0x5d3e67,_0x195646){this['_attributeLabels']['set'](_0x5d3e67,_0x195646);}getItemLabel(_0x325a98,_0x189b3a=0x1){let _0xbdd093;for(const _0xa3957d of this['_itemLabelsCallbacks'])if(_0xa3957d['matchingCallback'](_0x325a98)){_0xbdd093=_0xa3957d['label'];break;}return _0xbdd093||(_0xbdd093=this['_itemLabels']['get'](_0x325a98['name'])),_0xbdd093?_0xbdd093(_0x189b3a):0x1!==_0x189b3a?_0x189b3a+'\x20'+_0x325a98['name']+'s':''+_0x325a98['name'];}_addDescriptionItems(_0x8c401c,_0x3609fa){const _0x3f65a3=_0x3609fa['getFirstRange']()['getWalker'](),_0x1d28a1='insertion'==_0x3609fa['type']?'add':'remove';for(const _0xa8b16b of _0x3f65a3){const _0x17446f=_0xa8b16b['item'],_0x3995da=_0x8c401c[_0x8c401c['length']-0x1];if(_0x17446f['is']('$textProxy'))_0x3995da&&_0x3995da['type']['indexOf']('Container')>-0x1&&_0x8c401c['pop'](),_0x3995da&&'text'==_0x3995da['type']?_0x3995da[_0x1d28a1]+=_0x17446f['data']:_0x8c401c['push']({'type':'text','add':'add'==_0x1d28a1?_0x17446f['data']:'','remove':'remove'==_0x1d28a1?_0x17446f['data']:''});else{if(this['_schema']['isObject'](_0x17446f)){const _0x12aff2=_0x17446f;if(_0x3995da&&_0x3995da['type']['indexOf']('Container')>-0x1&&_0x8c401c['pop'](),'elementEnd'==_0xa8b16b['type'])continue;_0x3995da&&_0x3995da['type']==_0x1d28a1+'Object'&&_0x3995da['element']['name']==_0x12aff2['name']?_0x3995da['quantity']++:_0x8c401c['push']({'type':_0x1d28a1+'Object','element':_0x12aff2,'quantity':0x1}),_0x3f65a3['skip'](_0x3beb04=>!('elementEnd'==_0x3beb04['type']&&_0x3beb04['item']==_0x17446f));}else{if(this['_schema']['checkChild'](_0x17446f,'$text')||_0x17446f['is']('element','softBreak')){const _0xe25860=_0x17446f;if('add'==_0x1d28a1&&'elementStart'==_0xa8b16b['type']||'remove'==_0x1d28a1&&'elementEnd'==_0xa8b16b['type'])continue;if(_0x3995da&&-0x1==_0x3995da['type']['indexOf']('Container')){'text'==_0x3995da['type']&&(_0x3995da[_0x1d28a1]+='\x0a');continue;}let _0x1aed66;if(_0x1aed66='add'==_0x1d28a1?_0xe25860['nextSibling']&&!this['_schema']['isObject'](_0xe25860['nextSibling'])?_0xe25860['nextSibling']:null:_0xe25860['previousSibling']&&!this['_schema']['isObject'](_0xe25860['previousSibling'])?_0xe25860['previousSibling']:null,_0xe25860['isEmpty']||_0x1aed66&&_0x1aed66['isEmpty']){const _0x10cb98=_0x1aed66&&_0x1aed66['isEmpty']?_0x1aed66:_0xe25860;_0x3995da&&_0x3995da['type']==_0x1d28a1+'EmptyContainer'&&_0x3995da['element']['name']==_0x10cb98['name']?_0x3995da['quantity']++:_0x8c401c['push']({'type':_0x1d28a1+'EmptyContainer','element':_0x10cb98,'quantity':0x1});}else _0x8c401c['push']({'type':_0x1d28a1+'Container','element':_0xe25860});}}}}}_resolveDescriptionItems(_0x1269f4){const _0x47af5b=this['_locale'],_0x2b781a=[],_0x1a3d04=[],_0x5a0a38=[];for(const _0x210daf of _0x1269f4)switch(_0x210daf['type']){case'text':if(_0x210daf['add']=_0x210daf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x210daf['remove']=_0x210daf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x210daf['add']&&''!=_0x210daf['remove']){_0x2b781a['push']({'type':'replace','content':Bt(_0x47af5b,'REPLACE_TEXT',['\x22'+_0x210daf['remove']+'\x22','\x22'+_0x210daf['add']+'\x22'])});continue;}if(null!=_0x210daf['add']['match'](/^ +$/)){_0x2b781a['push']({'type':'insertion','content':Bt(_0x47af5b,'*Insert:*\x20%0',Bt(_0x47af5b,'ELEMENT_SPACE',_0x210daf['add']['length']))});continue;}if(null!=_0x210daf['remove']['match'](/^ +$/)){_0x2b781a['push']({'type':'deletion','content':Bt(_0x47af5b,'*Remove:*\x20%0',Bt(_0x47af5b,'ELEMENT_SPACE',_0x210daf['remove']['length']))});continue;}if(''!=_0x210daf['add']){_0x2b781a['push']({'type':'insertion','content':Bt(_0x47af5b,'*Insert:*\x20%0','\x22'+_0x210daf['add']+'\x22')});continue;}_0x2b781a['push']({'type':'deletion','content':Bt(_0x47af5b,'*Remove:*\x20%0','\x22'+_0x210daf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b781a['push']({'type':'insertion','content':Bt(_0x47af5b,'*Insert:*\x20%0',this['getItemLabel'](_0x210daf['element'],_0x210daf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b781a['push']({'type':'deletion','content':Bt(_0x47af5b,'*Remove:*\x20%0',this['getItemLabel'](_0x210daf['element'],_0x210daf['quantity']))});continue;case'addContainer':_0x2b781a['push']({'type':'insertion','content':Bt(_0x47af5b,'*Split:*\x20%0',this['getItemLabel'](_0x210daf['element'],_0x210daf['quantity']))});continue;case'removeContainer':_0x2b781a['push']({'type':'deletion','content':Bt(_0x47af5b,'*Merge:*\x20%0',this['getItemLabel'](_0x210daf['element'],_0x210daf['quantity']))});continue;case'addFormat':_0x1a3d04['push'](_0x210daf['key']);continue;case'removeFormat':_0x5a0a38['push'](_0x210daf['key']);continue;default:_0x2b781a['push'](_0x210daf);}if(_0x1a3d04['length']){const _0x3b66fe=_0x1a3d04['map'](_0x141659=>this['_attributeLabels']['has'](_0x141659)?this['_attributeLabels']['get'](_0x141659):_0x141659)['join'](',\x20');_0x2b781a['push']({'type':'format','content':Bt(this['_locale'],'*Set\x20format:*\x20%0',_0x3b66fe)});}if(_0x5a0a38['length']){const _0x5585f4=_0x5a0a38['map'](_0x32855b=>this['_attributeLabels']['has'](_0x32855b)?this['_attributeLabels']['get'](_0x32855b):_0x32855b)['join'](',\x20');_0x2b781a['push']({'type':'format','content':Bt(this['_locale'],'*Remove\x20format:*\x20%0',_0x5585f4)});}return _0x2b781a;}_handleCustomCallbackDescription(_0x1e3e3c){for(const _0x17bc79 of this['_customCallbacks']){const _0x3c614c=_0x17bc79(_0x1e3e3c);if(_0x3c614c&&'type'in _0x3c614c)return _0x3c614c;}}_handleAttributeSuggestionDescription(_0x554e49,_0x27cbd8){const _0x43e206=_0x27cbd8['data'],_0x544cf7=void 0x0===_0x43e206['newValue']?'removeFormat':'addFormat';_0x554e49['push']({'type':_0x544cf7,'key':_0x43e206['key']});}_handleRenameSuggestionDescription(_0x47ead5,_0x5ee0da){_0x47ead5['push']({'type':'format','content':Bt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5ee0da['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x482736,_0x4202db,_0x238332){if(this['_addDescriptionItems'](_0x482736,_0x4202db),_0x238332&&_0x238332['getFirstRange']()&&!_0x4202db['getFirstRange']()['end']['isEqual'](_0x238332['getFirstRange']()['start'])){const _0x587169=_0x482736[_0x482736['length']-0x1],_0x3012d0='insertion'==_0x4202db['type']?'add':'remove';_0x587169&&'text'==_0x587169['type']&&(_0x587169[_0x3012d0]+='\x0a');}}},vt=class extends _0x27de82{afterInit(){const _0x2d82f5=this['editor'],_0x447671=_0x2d82f5['plugins']['get']('TrackChangesEditing');_0x2d82f5['commands']['get']('showAIAssistant')&&_0x447671['enableCommand']('showAIAssistant');}},Dt=class extends _0x27de82{afterInit(){const _0x59b22d=this['editor'],_0x13f3d5=_0x59b22d['plugins']['get']('TrackChangesEditing');_0x59b22d['commands']['get']('toggleAi')&&_0x13f3d5['enableCommand']('toggleAi');}},Ut=class extends _0x27de82{afterInit(){const _0x282992=this['editor'],_0xd88246=_0x282992['plugins']['get']('TrackChangesEditing');_0x282992['commands']['get']('aiQuickAction')&&_0xd88246['enableCommand']('aiQuickAction');}},Pt=class extends _0x27de82{afterInit(){const _0x1b3ef1=this['editor'],_0x42f899=_0x1b3ef1['locale'];if(!_0x1b3ef1['plugins']['has']('AlignmentEditing'))return;const _0x10eb7f=_0x1b3ef1['plugins']['get']('TrackChangesEditing');_0x10eb7f['enableDefaultAttributesIntegration']('alignment'),_0x10eb7f['descriptionFactory']['registerAttributeLabel']('alignment',Bt(_0x42f899,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x288ab8=this['editor'],_0x31b3cf=_0x288ab8['locale'];_0x288ab8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5678de=>{if('formatBlock'!=_0x5678de['type'])return;const {data:_0x3139ae}=_0x5678de;if(_0x3139ae&&'alignment'==_0x3139ae['commandName']){const _0x2cba5d=_0x3139ae['commandParams'][0x0]['value'];return{'type':'format','content':Bt(_0x31b3cf,'*Format:*\x20%0',function(_0x3155bf){switch(_0x3155bf){case'left':return Bt(_0x31b3cf,'FORMAT_ALIGN_TO_LEFT');case'right':return Bt(_0x31b3cf,'FORMAT_ALIGN_TO_RIGHT');case'center':return Bt(_0x31b3cf,'FORMAT_ALIGN_TO_CENTER');case'justify':return Bt(_0x31b3cf,'FORMAT_JUSTIFY_TEXT');}}(_0x2cba5d))};}});}};const xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Gt=class extends _0x27de82{afterInit(){const _0xe6a189=this['editor'],_0x47bbc5=_0xe6a189['plugins']['get']('TrackChangesEditing'),_0x40f8cc=_0xe6a189['locale'];for(const _0x5beb6e of xt){if(!_0xe6a189['plugins']['has'](_0x5beb6e))continue;const _0x22a2cf=_0x5beb6e['slice'](0x0,-0x7)['toLowerCase'](),_0x1be1e2='FORMAT_'+_0x22a2cf['toUpperCase']();_0x47bbc5['enableDefaultAttributesIntegration'](_0x22a2cf),_0x47bbc5['descriptionFactory']['registerAttributeLabel'](_0x22a2cf,Bt(_0x40f8cc,_0x1be1e2));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2c6cb0=this['editor'],_0x514657=_0x2c6cb0['locale'],_0x2b00b8=_0x2c6cb0['plugins']['get']('TrackChangesEditing');function _0x1a9ee1(_0x1f8b9f,_0x4d8d90){_0x2b00b8['descriptionFactory']['registerDescriptionCallback'](_0x176255=>{if('formatInline'!=_0x176255['type'])return;const {data:_0x142a05}=_0x176255;return _0x142a05&&_0x142a05['commandName']===_0x1f8b9f?_0x142a05['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x514657,'*Format:*\x20%0',_0x4d8d90)}:{'type':'format','content':Bt(_0x514657,'*Remove\x20format:*\x20%0',_0x4d8d90)}:void 0x0;});}_0x1a9ee1('bold',Bt(_0x514657,'FORMAT_BOLD')),_0x1a9ee1('italic',Bt(_0x514657,'FORMAT_ITALIC')),_0x1a9ee1('underline',Bt(_0x514657,'FORMAT_UNDERLINE')),_0x1a9ee1('code',Bt(_0x514657,'FORMAT_CODE')),_0x1a9ee1('strikethrough',Bt(_0x514657,'FORMAT_STRIKETHROUGH')),_0x1a9ee1('subscript',Bt(_0x514657,'FORMAT_SUBSCRIPT')),_0x1a9ee1('superscript',Bt(_0x514657,'FORMAT_SUPERSCRIPT'));}},Ht=class extends _0x27de82{afterInit(){const _0x125fec=this['editor'],_0x4a29e4=_0x125fec['locale'];if(!_0x125fec['plugins']['has']('BlockQuoteEditing'))return;const _0x72f970=_0x125fec['plugins']['get']('TrackChangesEditing'),_0x41eda6=this['editor']['commands']['get']('blockQuote');_0x72f970['enableCommand']('blockQuote',(_0x591f93,_0x4884dc={})=>{const _0x27f3fd=this['editor']['model']['document']['selection'],_0x2525fb=_0x4884dc&&void 0x0!==_0x4884dc['forceValue']?_0x4884dc['forceValue']:!_0x41eda6['value'];let _0xa59072=[];if(_0x2525fb){const _0x3a6b20=Array['from'](_0x27f3fd['getSelectedBlocks']())['filter'](_0x19fa76=>$t(_0x19fa76)||function(_0x1fd78e,_0x1d944f){const _0x1637a9=_0x1d944f['createContext'](_0x1fd78e['parent']);return!!_0x1d944f['checkChild'](_0x1637a9,'blockQuote')&&!!_0x1d944f['checkChild'](_0x1637a9['push']('blockQuote'),_0x1fd78e);}(_0x19fa76,this['editor']['model']['schema']));_0xa59072=Rt(_0x3a6b20,_0x125fec['model']);}else{const _0x15f3c5=Array['from'](_0x27f3fd['getSelectedBlocks']())['filter'](_0x890acd=>$t(_0x890acd));_0xa59072=Rt(_0x15f3c5,_0x125fec['model']);}_0x125fec['model']['change'](()=>{for(const _0x1539f4 of _0xa59072)_0x72f970['markBlockFormat'](_0x1539f4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2525fb}]});});}),_0x72f970['descriptionFactory']['registerDescriptionCallback'](_0x6897e0=>{const {data:_0x4b277c}=_0x6897e0;if(_0x4b277c&&'blockQuote'==_0x4b277c['commandName']){const _0xf4e57=Bt(_0x4a29e4,'ELEMENT_BLOCK_QUOTE');return _0x4b277c['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x4a29e4,'*Set\x20format:*\x20%0',_0xf4e57)}:{'type':'format','content':Bt(_0x4a29e4,'*Remove\x20format:*\x20%0',_0xf4e57)};}});}};function $t(_0x4e4df1){return'blockQuote'==_0x4e4df1['parent']['name'];}var Wt=class extends _0x27de82{afterInit(){const _0x4814ba=this['editor'],_0x1fdf6e=_0x4814ba['locale'],_0x9f876e=_0x4814ba['plugins']['get']('TrackChangesEditing');_0x4814ba['plugins']['has']('BookmarkEditing')&&(_0x9f876e['enableCommand']('insertBookmark'),_0x9f876e['enableDefaultAttributesIntegration']('updateBookmark'),_0x9f876e['descriptionFactory']['registerDescriptionCallback'](_0xbcf115=>{if('insertion'!=_0xbcf115['type']&&'deletion'!=_0xbcf115['type']&&'attribute'!=_0xbcf115['type'])return;const _0x3b4654=_0xbcf115['getContainedElement']();if(null==_0x3b4654)return;if(!_0x3b4654['is']('element','bookmark'))return;const _0x3e149f=_0x3b4654['getAttribute']('bookmarkId');if('insertion'==_0xbcf115['type'])return{'type':'insertion','content':Bt(_0x1fdf6e,'*Insert:*\x20%0','\x22'+_0x3e149f+'\x22\x20'+Bt(_0x1fdf6e,'ELEMENT_BOOKMARK'))};if('deletion'==_0xbcf115['type'])return{'type':'deletion','content':Bt(_0x1fdf6e,'*Remove:*\x20%0','\x22'+_0x3e149f+'\x22\x20'+Bt(_0x1fdf6e,'ELEMENT_BOOKMARK'))};const {data:_0x3947f3}=_0xbcf115;return _0x3947f3&&'bookmarkId'==_0x3947f3['key']?{'type':'format','content':Bt(_0x1fdf6e,'*Set\x20bookmark:*\x20%0','\x22'+_0x3947f3['newValue']+'\x22')}:void 0x0;}));}},Vt=class extends _0x27de82{afterInit(){const _0x11e53e=this['editor'];_0x11e53e['plugins']['has']('CaseChange')&&(_0x11e53e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x11e53e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x11e53e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},zt=class extends _0x27de82{afterInit(){const _0x25c2d8=this['editor'];_0x25c2d8['commands']['get']('ckbox')&&_0x25c2d8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},jt=class extends _0x27de82{static get requires(){return[mt,Et];}constructor(_0x245e12){super(_0x245e12),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x3c3b40=this['editor'],_0x39d46f=_0x3c3b40['plugins']['get']('ClipboardMarkersUtils'),_0x2bf61c=_0x3c3b40['plugins']['get'](Et);_0x39d46f['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x2bf61c['on']('outputTransformation',(_0x186f4c,_0x21c710)=>{const _0x1ea363=this['_getSuggestionEntries'](_0x21c710);for(const [_0x3d90ac,_0x2a9334]of _0x21c710['content']['markers']){const _0x2feb20=ct['_fromRangeInDocumentFragment'](_0x2a9334,_0x3c3b40['model']);function _0x4a7c7d(){_0x2feb20['detach'](),_0x21c710['content']['markers']['delete'](_0x3d90ac);}_0x2feb20['on']('change:drop',_0x4a7c7d),(_0x3d90ac['startsWith']('suggestion:')||_0x3d90ac['startsWith']('comment:'))&&_0x2feb20['on']('change:range',()=>{_0x2feb20['isCollapsed']&&_0x4a7c7d();}),_0x21c710['content']['markers']['set'](_0x3d90ac,_0x2feb20);}const _0x392ab2=_0x1ea363['filter'](_0x1a1955=>'deletion'===_0x1a1955['meta']['type'])['map'](_0x4212ab=>_0x4212ab['modelRange']);if(this['_shouldSkipDeletions'](_0x392ab2,_0x21c710['content']))return[..._0x1ea363]['forEach'](_0x2830a0=>{_0x21c710['content']['markers']['get'](_0x2830a0['markerName'])['detach'](),_0x21c710['content']['markers']['delete'](_0x2830a0['markerName']);}),void this['_restoreRegularRanges'](_0x21c710['content']['markers']);[..._0x1ea363]['forEach'](_0x2693a0=>{const _0x5af8d2=_0x3c3b40['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x2693a0['meta']['type'],_0x2693a0['meta']['subType'],'accept'),{markerName:_0x222886,meta:_0x52321b}=_0x2693a0;if(_0x21c710['content']['markers']['has'](_0x222886)){switch(_0x52321b['type']){case'deletion':if('tableRow'===_0x52321b['subType']||'tableColumn'===_0x52321b['subType']){if(!_0x3c3b40['plugins']['has']('TableUtils'))break;const _0x3eaf74=_0x3c3b40['plugins']['get']('TableUtils'),_0x1627cf=_0x3eaf74['getSelectionAffectedTableCells'](_0x3c3b40['model']['createSelection'](_0x21c710['content']['markers']['get'](_0x222886))),_0x3b6e27=_0x1627cf[0x0]['findAncestor']('table');if('tableRow'===_0x52321b['subType']){const {first:_0x445cfb,last:_0x5600f6}=_0x3eaf74['getRowIndexes'](_0x1627cf);_0x3eaf74['removeRows'](_0x3b6e27,{'at':_0x445cfb,'rows':_0x5600f6-_0x445cfb+0x1});}else{const {first:_0x1f115e,last:_0x475d01}=_0x3eaf74['getColumnIndexes'](_0x1627cf);_0x3eaf74['removeColumns'](_0x3b6e27,{'at':_0x1f115e,'columns':_0x475d01-_0x1f115e+0x1});}break;}_0x5af8d2([_0x21c710['content']['markers']['get'](_0x222886)]);}_0x21c710['content']['markers']['has'](_0x222886)&&(_0x21c710['content']['markers']['get'](_0x222886)['detach'](),_0x21c710['content']['markers']['delete'](_0x222886));}}),this['_restoreRegularRanges'](_0x21c710['content']['markers']);});}_getSuggestionEntries(_0x425805){const _0x2f615d=_0x20826f=>'dragstart'===_0x425805['method']?_0x20826f['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x20826f;return Array['from'](_0x425805['content']['markers'])['map'](([_0x224b8d,_0x3204fd])=>({'markerName':_0x224b8d,'modelRange':_0x3204fd,'meta':it(_0x2f615d(_0x224b8d))}))['filter'](({meta:_0x5e4ab5})=>'suggestion'===_0x5e4ab5['group']);}_shouldSkipDeletions(_0x37184c,_0x5609cf){if(!_0x37184c['length'])return!0x1;let _0x3b0f00=[this['editor']['model']['createRangeIn'](_0x5609cf)];for(const _0x914dbe of _0x37184c)_0x3b0f00=_0x3b0f00['flatMap'](_0x35fcaf=>_0x35fcaf['getDifference'](_0x914dbe));return!_0x3b0f00['some'](_0x4c8588=>this['editor']['model']['hasContent'](_0x4c8588,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x4c87e1){[..._0x4c87e1['keys']()]['forEach'](_0x9fc12f=>{const _0x3ff387=_0x4c87e1['get'](_0x9fc12f);_0x3ff387['detach'](),_0x4c87e1['set'](_0x9fc12f,_0x3ff387['toRange']());});}},Kt=class extends _0x27de82{afterInit(){const _0xba3066=this['editor'];if(!_0xba3066['plugins']['has']('CodeBlock'))return;const _0x34e624=_0xba3066['plugins']['get']('TrackChangesEditing'),_0x1b9b36=_0xba3066['locale'],_0x26396a=_0xba3066['config']['get']('codeBlock')['languages'],_0x107087=_0xba3066['commands']['get']('codeBlock');_0x34e624['enableCommand']('indentCodeBlock'),_0x34e624['enableCommand']('outdentCodeBlock'),_0x34e624['enableCommand']('codeBlock',(_0x515070,_0x531a2a={})=>{const _0x5e194d=_0xba3066['model'],_0x2d81e9=_0xba3066['model']['document']['selection'],_0x218025=_0x531a2a&&void 0x0!==_0x531a2a['forceValue']?_0x531a2a['forceValue']:!_0x107087['value'];let _0x4d100c;_0x531a2a['language']||(_0x531a2a['language']=_0x26396a[0x0]['language']),_0x4d100c=_0x218025?Array['from'](_0x2d81e9['getSelectedBlocks']())['filter'](_0x3c2899=>{return Xt(_0x3c2899)||(_0x4e1104=_0x3c2899,_0x2ee6f2=_0x5e194d['schema'],!_0x4e1104['is']('rootElement')&&!_0x2ee6f2['isLimit'](_0x4e1104)&&_0x2ee6f2['checkChild'](_0x4e1104['parent'],'codeBlock'));var _0x4e1104,_0x2ee6f2;}):Array['from'](_0x2d81e9['getSelectedBlocks']())['filter'](_0x5d9156=>Xt(_0x5d9156));const _0xe2e787=Rt(_0x4d100c,_0x5e194d);_0x5e194d['change'](()=>{for(const _0x3d604c of _0xe2e787)_0x34e624['markBlockFormat'](_0x3d604c,{'commandName':'codeBlock','commandParams':[{..._0x531a2a,'forceValue':_0x218025}],'formatGroupId':'blockName'});});}),(_0x34e624['descriptionFactory']['registerElementLabel']('codeBlock',_0x27e9f6=>Bt(_0x1b9b36,'ELEMENT_CODE_BLOCK',_0x27e9f6)),_0x34e624['descriptionFactory']['registerDescriptionCallback'](_0x5e164b=>{if('formatBlock'!=_0x5e164b['type'])return;const _0x59d643=_0x1b9b36['t'],{data:_0x1ee8b0}=_0x5e164b;if(!_0x1ee8b0||'codeBlock'!=_0x1ee8b0['commandName'])return;const _0x1c49bd=_0x1ee8b0['commandParams'][0x0]['language'],_0x3d7c23=_0x59d643(_0x26396a['find'](_0x121849=>_0x121849['language']===_0x1c49bd)['label'])['toLowerCase']();return _0x1ee8b0['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x1b9b36,'*Set\x20format:*\x20%0',Bt(_0x1b9b36,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3d7c23+')')}:{'type':'format','content':Bt(_0x1b9b36,'*Remove\x20format:*\x20%0',Bt(_0x1b9b36,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Xt(_0x44b12f){return'codeBlock'==_0x44b12f['name'];}var qt=class extends _0x27de82{afterInit(){const _0x45fd11=this['editor'];_0x45fd11['plugins']['has']('CommentsEditing')&&_0x45fd11['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Yt=class extends _0x27de82{static get requires(){return[Tt];}init(){const _0xefcb09=this['editor'],_0x4d4ebb=_0xefcb09['plugins']['get']('TrackChangesEditing');_0x4d4ebb['enableCommand']('delete');const _0x3aab35=_0xefcb09['commands']['get']('deleteForward');_0x4d4ebb['enableCommand']('deleteForward',(_0x441a3e,_0x3fde29={})=>{const _0x7d3ab6=_0xefcb09['model']['createSelection'](_0xefcb09['model']['document']['selection']);_0x7d3ab6['isCollapsed']&&_0xefcb09['model']['modifySelection'](_0x7d3ab6,{'direction':'forward','unit':_0x3fde29['unit']});const _0x1f36b0=_0x7d3ab6['getFirstRange'](),_0x14d6d2=ct['fromRange'](_0x1f36b0);let _0x3b29e6;_0x441a3e(_0x3fde29),_0x3b29e6='$graveyard'==_0x14d6d2['root']['rootName']?_0xefcb09['model']['createRange'](_0x1f36b0['start']):_0xefcb09['model']['createRange'](_0x14d6d2['start'],_0x14d6d2['end']),_0x14d6d2['detach'](),_0xefcb09['model']['enqueueChange'](_0x3aab35['buffer']['batch'],_0x169f67=>{_0x3aab35['buffer']['lock'](),_0x169f67['setSelection'](_0x169f67['createRange'](_0x3b29e6['end'])),_0x3aab35['buffer']['unlock']();});});}},Qt=class extends _0x27de82{afterInit(){const _0x2ba2dd=this['editor'];if(!_0x2ba2dd['plugins']['has']('ListEditing'))return;const _0x2b3086=_0x2ba2dd['locale'],_0x30337c=_0x2ba2dd['plugins']['get']('TrackChangesEditing'),_0x16e56f=_0x2ba2dd['plugins']['has']('TodoListEditing'),_0x132b17=!!_0x2ba2dd['config']['get']('list.multiBlock');function _0x49aeb8(_0x8c3d0d){return{'type':'format','content':''+Bt(_0x2b3086,'*Set\x20format:*\x20%0',_0x8c3d0d)};}function _0x5c8e75(_0x33de8c){return{'type':'format','content':''+Bt(_0x2b3086,'*Remove\x20format:*\x20%0',_0x33de8c)};}_0x30337c['enableDefaultAttributesIntegration']('numberedList'),_0x30337c['enableDefaultAttributesIntegration']('bulletedList'),_0x30337c['enableDefaultAttributesIntegration']('customNumberedList'),_0x30337c['enableDefaultAttributesIntegration']('customBulletedList'),_0x30337c['enableDefaultAttributesIntegration']('indentList'),_0x30337c['enableDefaultAttributesIntegration']('outdentList'),_0x30337c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x30337c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x132b17&&(_0x30337c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x30337c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x16e56f&&(_0x30337c['enableDefaultAttributesIntegration']('todoList'),_0x30337c['enableDefaultAttributesIntegration']('checkTodoList'),_0x30337c['descriptionFactory']['registerDescriptionCallback'](_0x305d12=>{const {data:_0x568a07}=_0x305d12;if(_0x568a07&&'todoListChecked'==_0x568a07['key'])return{'type':'format','content':_0x568a07['newValue']?Bt(_0x2b3086,'*Check\x20item*'):Bt(_0x2b3086,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x241937=>{if(_0x241937['batch']['isUndo'])return!0x1;let _0x2aa2cd=!0x1;const _0x12b96d=_0x30337c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8f65f6=>'todoListChecked'===_0x30337c['_getAttributeKey'](_0x8f65f6));for(const _0x529e50 of _0x12b96d)'todo'!=_0x529e50['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x30337c['_findSuggestions'](_0x529e50['getFirstRange'](),'attribute')['find'](_0x302cdf=>'listType'===_0x30337c['_getAttributeKey'](_0x302cdf['suggestion']))||(_0x241937['removeMarker'](_0x529e50['getFirstMarker']()),_0x2aa2cd=!0x0));return _0x2aa2cd;})),_0x30337c['descriptionFactory']['registerAttributeLabel']('listIndent',Bt(_0x2b3086,'FORMAT_INDENT'));const _0x4b1793={'type':'format','content':''};_0x30337c['descriptionFactory']['registerDescriptionCallback'](_0x4c1868=>{const {data:_0x5ba8d7}=_0x4c1868;if(!_0x5ba8d7||'listType'!=_0x5ba8d7['key'])return;let _0x2b8d85=_0x4c1868['head'];for(;_0x2b8d85;){if(_0x2b8d85['data']&&(('listStyle'==_0x2b8d85['data']['key']||'listMarkerStyle'==_0x2b8d85['data']['key'])&&(_0x2b8d85['data']['newValue']&&'default'!=_0x2b8d85['data']['newValue']||'default'!=_0x2b8d85['data']['oldValue']&&!_0x5ba8d7['newValue'])||!_0x132b17&&'$elementName'==_0x2b8d85['data']['key']))return _0x4b1793;_0x2b8d85=_0x2b8d85['next'];}if(null==_0x5ba8d7['newValue'])switch(_0x5ba8d7['oldValue']){case'bulleted':return _0x5c8e75(Bt(_0x2b3086,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c8e75(Bt(_0x2b3086,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c8e75(Bt(_0x2b3086,'ELEMENT_TODO_LIST'));}switch(_0x5ba8d7['newValue']){case'bulleted':return _0x49aeb8(Bt(_0x2b3086,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49aeb8(Bt(_0x2b3086,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49aeb8(Bt(_0x2b3086,'ELEMENT_TODO_LIST'));}}),_0x30337c['descriptionFactory']['registerDescriptionCallback'](_0x369c43=>{const {data:_0x441a18}=_0x369c43;if(_0x441a18&&'listIndent'==_0x441a18['key'])return null==_0x441a18['newValue']||null==_0x441a18['oldValue']&&0x0==_0x441a18['newValue']?_0x4b1793:void 0x0;}),_0x30337c['descriptionFactory']['registerDescriptionCallback'](_0x411db9=>{if('attribute'!=_0x411db9['type'])return;const {data:_0x2e9fdb}=_0x411db9;if(!_0x2e9fdb||'listItemId'!=_0x2e9fdb['key'])return;const _0x21f87d=Zt(_0x411db9);return'newValue'==_0x21f87d?{'type':'format','content':Bt(_0x2b3086,'*Merge:*\x20list\x20item')}:'oldValue'==_0x21f87d?{'type':'format','content':Bt(_0x2b3086,'*Split:*\x20list\x20item')}:_0x4b1793;}),_0x2ba2dd['model']['document']['registerPostFixer'](_0x40f297=>this['listItemIdFixer'](_0x40f297)),_0x2ba2dd['model']['document']['registerPostFixer'](_0x15da07=>this['noTrackChangesFixer'](_0x15da07)),_0x2ba2dd['model']['document']['on']('change:data',(_0x44956d,_0x5c21d1)=>{if(_0x5c21d1['isUndo']||!_0x5c21d1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x312443){if(_0x312443['batch']['isUndo']||!_0x312443['batch']['isLocal'])return!0x1;let _0x391ffd=!0x1;const _0x489aed=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b5551=>_0x2b5551['data']&&'listItemId'==_0x2b5551['data']['key'])['filter'](_0x1c9246=>_0x1c9246['data']['newValue']&&_0x1c9246['data']['oldValue']);for(const _0x3e0b1e of _0x489aed)Zt(_0x3e0b1e)||(_0x312443['removeMarker'](_0x3e0b1e['getFirstMarker']()),_0x391ffd=!0x0);return _0x391ffd;}['noTrackChangesFixer'](_0x4965b9){if(_0x4965b9['batch']['isUndo']||!_0x4965b9['batch']['isLocal'])return!0x1;const _0x119a5f=this['editor']['model']['document']['differ'],_0x4d0970=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d0970['trackChangesCommand']['value'])return!0x1;let _0x39f75a=!0x1;const _0x2580d0=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x229da8=_0x119a5f['getChanges']()['filter'](_0x135b2b=>'attribute'==_0x135b2b['type'])['filter'](_0x8723de=>_0x2580d0['has'](_0x8723de['attributeKey']));if(0x0==_0x229da8['length'])return _0x39f75a;const _0x27e4ad=new Set(_0x119a5f['getMarkersToAdd']()['filter'](_0x5e7ac5=>{if(!_0x5e7ac5['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x29b24e=it(_0x5e7ac5['name'])['subType']['split']('|')[0x0];return _0x2580d0['has'](_0x29b24e);})['map'](_0x4b6dc4=>it(_0x4b6dc4['name'])['id']));for(const _0x2f1203 of _0x229da8){const _0x4280b6=_0x4d0970['_findSuggestions'](_0x2f1203['range'],'attribute')['filter'](_0x970676=>{if(_0x970676['meta']['isNextTo'])return!0x1;if(_0x27e4ad['has'](_0x970676['suggestion']['id']))return!0x1;const _0x2067a3=_0x4d0970['_getAttributeKey'](_0x970676['suggestion']);return _0x2580d0['has'](_0x2067a3);})['map'](_0x13afa5=>_0x13afa5['suggestion']);if(_0x4280b6['length']){for(const _0x31a0bc of _0x4280b6)_0x4965b9['removeMarker'](_0x31a0bc['getFirstMarker']());_0x39f75a=!0x0;}}return _0x39f75a;}['assureChains'](){const _0x464dbb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c4aef=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1053eb;const _0x26d318=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x401e1d=>{if(_0x401e1d['data']['oldRange']||!_0x401e1d['data']['newRange'])return null;if(!_0x401e1d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3d0925}=it(_0x401e1d['name']);if(!_0x464dbb['hasSuggestion'](_0x3d0925))return null;const _0x3e08e0=_0x464dbb['getSuggestion'](_0x3d0925);return _0x4c4aef['includes'](_0x3e08e0['data']['key']);})['map'](_0x4e4591=>{const {id:_0x5c7a0a}=it(_0x4e4591['name']),_0x452cba=_0x464dbb['getSuggestion'](_0x5c7a0a);return _0x1053eb=_0x452cba['attributes']['groupId'],_0x452cba['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x26d318['size'])return;const _0x4754ae=_0x464dbb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59392e=>'attribute'==_0x59392e['type']&&_0x59392e['data']&&_0x4c4aef['includes'](_0x59392e['data']['key'])&&_0x59392e['attributes']['groupId']!=_0x1053eb)['map'](_0x5c47d0=>({'listItem':_0x5c47d0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5c47d0['attributes']['groupId']})),_0xd5c29e=new Set();for(const {groupId:_0xab0af2,listItem:_0x565e9d}of _0x4754ae)_0x26d318['has'](_0x565e9d)&&_0xd5c29e['add'](_0xab0af2);for(const _0x1c8af6 of _0x464dbb['getSuggestions']())_0xd5c29e['has'](_0x1c8af6['attributes']['groupId'])&&_0x1c8af6['setAttribute']('groupId',_0x1053eb);}_supportLegacySuggestions(){const _0x50df41=this['editor'],_0x5a726e=_0x50df41['locale'],_0x4810f1=_0x50df41['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4810f1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49ba50,_0x3ee7ab){const _0x44513e=[];for(let _0xc8a19c of _0x49ba50)_0xc8a19c['start']['nodeAfter']===_0xc8a19c['end']['parent']&&(_0xc8a19c=_0x50df41['model']['createRange'](_0x50df41['model']['createPositionAt'](_0xc8a19c['start']['nodeAfter'],0x0))),_0x44513e['push'](_0xc8a19c);_0x50df41['model']['change'](_0x36a019=>{const _0x2f0553=_0x50df41['model']['document']['selection'],_0x3e15fb=Array['from'](_0x2f0553['getRanges']())['map'](_0x1b4007=>ct['fromRange'](_0x1b4007));_0x36a019['setSelection'](_0x44513e),_0x50df41['commands']['get'](_0x3ee7ab['commandName'])['refresh'](),_0x3ee7ab['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x50df41['execute'](_0x3ee7ab['commandName'],..._0x3ee7ab['commandParams']),_0x36a019['setSelection'](_0x3e15fb);for(const _0x39e6f1 of _0x3e15fb)_0x39e6f1['detach']();});}),_0x4810f1['descriptionFactory']['registerElementLabel'](function(_0x15a9ea){const _0x297a29=!_0x50df41['model']['schema']['isObject'](_0x15a9ea),_0xeafd21=_0x15a9ea['previousSibling'],_0x53455b=_0x15a9ea['nextSibling'],_0x57a841=_0x15a9ea['getAttribute']('listItemId'),_0x1f8326=!_0xeafd21||_0xeafd21['getAttribute']('listItemId')!==_0x57a841,_0x2ecc17=!_0x53455b||_0x53455b['getAttribute']('listItemId')!==_0x57a841;return _0x297a29&&Boolean(_0x57a841)&&_0x1f8326&&_0x2ecc17;},_0x4ce58b=>Bt(_0x5a726e,'ELEMENT_LIST_ITEM',_0x4ce58b));}_registerLegacyDescription(){const _0x18c7fd=this['editor'],_0x4bf091=_0x18c7fd['locale'];function _0x1cdcc5(_0x1e082e){const _0x297504=_0x18c7fd['commands']['get']('bulletedList')['value'],_0x2c505e=_0x18c7fd['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e082e?_0x297504:_0x2c505e;}_0x18c7fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1a5cc6){if('formatBlock'!=_0x1a5cc6['type'])return;const {data:_0xb626f1}=_0x1a5cc6;if(!_0xb626f1)return;let _0x382b6c,_0x2ef8ea,_0x7bf9e3,_0x2b9982;switch(_0xb626f1['commandName']){case'bulletedList':_0x7bf9e3=_0xb626f1['commandParams'][0x0]['forceValue'],_0x2b9982=_0x1cdcc5(_0xb626f1['commandName']),_0x382b6c=_0x7bf9e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b9982&&_0x18c7fd['config']['get']('list.multiBlock')||(_0x382b6c='*Change\x20to:*\x20%0'),_0x2ef8ea={'type':'format','content':Bt(_0x4bf091,_0x382b6c,Bt(_0x4bf091,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x7bf9e3=_0xb626f1['commandParams'][0x0]['forceValue'],_0x2b9982=_0x1cdcc5(_0xb626f1['commandName']),_0x382b6c=_0x7bf9e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b9982&&_0x18c7fd['config']['get']('list.multiBlock')||(_0x382b6c='*Change\x20to:*\x20%0'),_0x2ef8ea={'type':'format','content':Bt(_0x4bf091,_0x382b6c,Bt(_0x4bf091,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x382b6c='*Indent:*\x20%0',_0x2ef8ea={'type':'format','content':Bt(_0x4bf091,_0x382b6c,Bt(_0x4bf091,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x382b6c=function(_0x161be7){const _0x128297=_0x161be7['getFirstRange']();let _0x23817c=_0x128297['start']['nodeAfter'];for(;_0x23817c&&_0x128297['containsItem'](_0x23817c);){if(_0x23817c['getAttribute']('listIndent')>0x0)return!0x1;_0x23817c=_0x23817c['nextSibling'];}return!0x0;}(_0x1a5cc6)?Bt(_0x4bf091,'*Format:*\x20remove\x20from\x20%0',Bt(_0x4bf091,function(_0x3c2c8a){return'ELEMENT_'+_0x3c2c8a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1a5cc6))):Bt(_0x4bf091,'*Outdent:*\x20%0',Bt(_0x4bf091,'ELEMENT_LIST_ITEM')),_0x2ef8ea={'type':'format','content':_0x382b6c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xb626f1['multipleBlocks']&&(_0x382b6c='*Merge:*\x20%0',_0x2ef8ea={'type':'deletion','content':Bt(_0x4bf091,_0x382b6c,Bt(_0x4bf091,'ELEMENT_LIST_ITEM'))});}return _0x2ef8ea;});}};function Zt(_0x87a81b){let _0x3d419b=_0x87a81b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3d419b;){const _0x5dad12=_0x3d419b['getAttribute']('listItemId');if(!_0x5dad12)return!0x1;if(_0x5dad12==_0x87a81b['data']['newValue'])return'newValue';if(_0x5dad12==_0x87a81b['data']['oldValue'])return'oldValue';_0x3d419b=_0x3d419b['previousSibling'];}return!0x1;}var Jt=class extends _0x27de82{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xa85b70=this['editor']['config']['get']('list.properties'),_0x5a3fc9=this['editor']['plugins']['get']('TrackChangesEditing');_0xa85b70['styles']&&_0x5a3fc9['enableDefaultAttributesIntegration']('listStyle'),_0xa85b70['reversed']&&_0x5a3fc9['enableDefaultAttributesIntegration']('listReversed'),_0xa85b70['startIndex']&&_0x5a3fc9['enableDefaultAttributesIntegration']('listStart');const _0x23c2c4={'type':'format','content':''};_0x5a3fc9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2a478d=this['editor']['locale'];_0x5a3fc9['descriptionFactory']['registerAttributeLabel']('listReversed',Bt(_0x2a478d,'FORMAT_LIST_REVERSED')),_0x5a3fc9['descriptionFactory']['registerDescriptionCallback'](_0x43c74b=>{const {data:_0x40a418}=_0x43c74b;if(_0x40a418&&'listReversed'==_0x40a418['key'])return null==_0x40a418['newValue']||0x0==_0x40a418['newValue']&&null==_0x40a418['oldValue']?_0x23c2c4:void 0x0;}),_0x5a3fc9['descriptionFactory']['registerAttributeLabel']('listStart',Bt(_0x2a478d,'FORMAT_LIST_START')),_0x5a3fc9['descriptionFactory']['registerDescriptionCallback'](_0xe06a7c=>{const {data:_0x2032fa}=_0xe06a7c;if(_0x2032fa&&'listStart'==_0x2032fa['key'])return null==_0x2032fa['newValue']||0x1==_0x2032fa['newValue']&&null==_0x2032fa['oldValue']?_0x23c2c4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2252ad=>{if(_0x2252ad['batch']['isUndo'])return!0x1;let _0xae56e9=!0x1;const _0x4d5782=_0x5a3fc9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x598fa6=>{const _0x3ed7e5=_0x5a3fc9['_getAttributeKey'](_0x598fa6);return'listStart'==_0x3ed7e5||'listReversed'==_0x3ed7e5;});for(const _0x502102 of _0x4d5782){const _0x445fa1=_0x502102['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x445fa1&&'customNumbered'!=_0x445fa1&&(_0x5a3fc9['_findSuggestions'](_0x502102['getFirstRange'](),'attribute')['find'](_0x25d3b6=>'listType'==_0x5a3fc9['_getAttributeKey'](_0x25d3b6['suggestion']))||(_0x2252ad['removeMarker'](_0x502102['getFirstMarker']()),_0xae56e9=!0x0));}return _0xae56e9;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3e6f05){const _0x30d2b4=this['editor']['locale'],{data:_0x5c3f61}=_0x3e6f05,_0x1b22e2={'type':'format','content':''};if(!_0x5c3f61||'listStyle'!=_0x5c3f61['key'])return;if(!_0x5c3f61['oldValue'])return'default'==_0x5c3f61['newValue']?_0x1b22e2:{'type':'format','content':''+Bt(_0x30d2b4,'*Set\x20format:*\x20%0',Bt(_0x30d2b4,this['_getTranslationKeyForListStyle'](_0x5c3f61['newValue'])))};if(!_0x5c3f61['newValue']){if('default'==_0x5c3f61['oldValue'])return _0x1b22e2;let _0x4985d0=_0x3e6f05['head'];for(;_0x4985d0;){if(_0x4985d0['data']&&'listType'==_0x4985d0['data']['key']&&_0x4985d0['data']['newValue'])return _0x1b22e2;_0x4985d0=_0x4985d0['next'];}return{'type':'format','content':''+Bt(_0x30d2b4,'*Remove\x20format:*\x20%0',Bt(_0x30d2b4,this['_getTranslationKeyForListStyle'](_0x5c3f61['oldValue'])))};}if('default'!=_0x5c3f61['newValue'])return{'type':'format','content':''+Bt(_0x30d2b4,'*Set\x20format:*\x20%0',Bt(_0x30d2b4,this['_getTranslationKeyForListStyle'](_0x5c3f61['newValue'])))};let _0x2457b5=_0x3e6f05['head'];for(;_0x2457b5;){if(_0x2457b5['data']&&'listType'==_0x2457b5['data']['key']&&_0x2457b5['data']['newValue']&&_0x2457b5['data']['oldValue'])return _0x1b22e2;_0x2457b5=_0x2457b5['next'];}return{'type':'format','content':Bt(_0x30d2b4,'*Set\x20format:*\x20%0',Bt(_0x30d2b4,'ELEMENT_'+_0x3e6f05['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x371da7=this['editor'],_0x336e84=_0x371da7['locale'];_0x371da7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5974dd=>{if('formatBlock'!=_0x5974dd['type'])return;const {data:_0x3653e5}=_0x5974dd;if(!_0x3653e5)return;let _0x62f2eb,_0x4637b6;switch(_0x3653e5['commandName']){case'listStyle':_0x62f2eb='*Change\x20to:*\x20%0',_0x4637b6={'type':'format','content':Bt(_0x336e84,_0x62f2eb,Bt(_0x336e84,this['_getTranslationKeyForListStyle'](_0x3653e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x62f2eb=_0x3653e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4637b6={'type':'format','content':Bt(_0x336e84,_0x62f2eb)};break;case'listStart':_0x62f2eb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4637b6={'type':'format','content':Bt(_0x336e84,_0x62f2eb,_0x3653e5['commandParams'][0x0]['startIndex'])};}return _0x4637b6;});}_getTranslationKeyForListStyle(_0x36391a){return'ELEMENT_'+(_0x136b77=_0x36391a,te['includes'](_0x136b77)?'bulleted':ee['includes'](_0x136b77)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x36391a['toUpperCase']()['replace'](/-/g,'_');var _0x136b77;}};const te=['disc','circle','square'],ee=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ne=class extends _0x27de82{afterInit(){const _0x5500c3=this['editor'];_0x5500c3['commands']['get']('emoji')&&_0x5500c3['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ie=class extends _0x27de82{static get requires(){return[pt];}init(){const _0x1a1510=this['editor'],_0x3e1fcc=_0x1a1510['plugins']['get']('TrackChangesEditing'),_0x1140df=_0x1a1510['commands']['get']('enter');_0x3e1fcc['enableCommand']('enter',()=>{_0x1a1510['model']['change'](_0x30e945=>{const _0x4155ab=_0x1a1510['model']['document']['selection'],_0x1b64d8=_0x4155ab['getFirstPosition'](),_0x4221f7=ct['fromRange'](_0x4155ab['getFirstRange']());if(_0x1140df['enterBlock'](_0x30e945)){const _0x512af0=_0x1a1510['model']['createPositionAt'](_0x1b64d8['parent']['nextSibling'],0x0),_0x18a215=_0x30e945['createRange'](_0x1b64d8,_0x512af0);_0x3e1fcc['markInsertion'](_0x18a215);}else _0x30e945['setSelection'](_0x30e945['createRange'](_0x4221f7['end']));_0x4221f7['detach'](),_0x1140df['fire']('afterExecute',{'writer':_0x30e945});});});}},se=class extends _0x27de82{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5a387e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a387e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5a387e['enableCommand']('findNext'),_0x5a387e['enableCommand']('findPrevious'),_0x5a387e['enableCommand']('replace'),_0x5a387e['enableCommand']('replaceAll');}['handleFindCommand'](_0x466e4a,_0x374419,_0x34ad22={}){const _0x164d60=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x466e4a(_0x45a23d=>{let _0x4c0927=('string'==typeof _0x374419?_0x164d60['findByTextCallback'](_0x374419,_0x34ad22):_0x374419)(_0x45a23d);Array['isArray'](_0x4c0927)&&(_0x4c0927={'results':_0x4c0927,'searchText':'string'==typeof _0x374419?_0x374419:''});const _0x31aea3=_0x4c0927['results']['filter'](_0x5d355d=>!0x1===this['_isInDeletionRange'](_0x5d355d,_0x45a23d['item']));return{..._0x4c0927,'results':_0x31aea3};},_0x34ad22);}_isInDeletionRange(_0x1b5101,_0x30d6da){const _0x3f8601=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30d6da,_0x1b5101['start']),this['editor']['model']['createPositionAt'](_0x30d6da,_0x1b5101['end']));for(const _0xe06a53 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3f8601['getIntersection'](_0xe06a53['getRange']()))return!0x0;return!0x1;}};const re=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var oe=class extends _0x27de82{afterInit(){const _0x2807b0=this['editor']['locale'],_0x5df126=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3f64d0,commandName:_0x4673cb}of re)this['editor']['plugins']['has'](_0x3f64d0)&&_0x5df126['enableDefaultAttributesIntegration'](_0x4673cb);_0x5df126['descriptionFactory']['registerAttributeLabel']('fontSize',Bt(_0x2807b0,'FORMAT_FONT_SIZE')),_0x5df126['descriptionFactory']['registerAttributeLabel']('fontFamily',Bt(_0x2807b0,'FORMAT_FONT_FAMILY')),_0x5df126['descriptionFactory']['registerAttributeLabel']('fontColor',Bt(_0x2807b0,'FORMAT_FONT_COLOR')),_0x5df126['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Bt(_0x2807b0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5da4e8=this['editor'],_0x1af34e=_0x5da4e8['locale'];_0x5da4e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x123caa=>{const _0x26072a=_0x1af34e['t'];if('formatInline'!=_0x123caa['type'])return;const {data:_0xc8fd22}=_0x123caa;if(null!=_0xc8fd22){if('fontSize'==_0xc8fd22['commandName']){const _0x210c6a=_0xc8fd22['commandParams'][0x0]['value'];if(_0x210c6a){const _0x150269=_0x26072a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1d3853=>_0x1d3853['model']==_0x210c6a)['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x1af34e,'*Set\x20font\x20size:*\x20%0',_0x150269)};}return{'type':'format','content':Bt(_0x1af34e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xc8fd22['commandName']){const _0x334ef1=_0xc8fd22['commandParams'][0x0]['value'];return _0x334ef1?{'type':'format','content':Bt(_0x1af34e,'*Set\x20font\x20family:*\x20%0',_0x334ef1)}:{'type':'format','content':Bt(_0x1af34e,'*Reset\x20font\x20family*')};}if('fontColor'==_0xc8fd22['commandName']){const _0x5472ff=_0xc8fd22['commandParams'][0x0]['value'];if(_0x5472ff){const _0x122e67=_0x1a1c75(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5bc1ef=>_0x5bc1ef['model']==_0x5472ff);let _0x3eb1aa=_0x5472ff,_0xc1baaa='';return _0x122e67&&(_0x3eb1aa=_0x122e67['label'],_0xc1baaa=_0x1cf919(_0x1af34e,_0x3eb1aa)['toLowerCase']()),{'type':'format','content':Bt(_0x1af34e,'*Set\x20font\x20color:*\x20%0',_0xc1baaa)['trim'](),'color':{'value':_0x5472ff,'title':_0xc1baaa||_0x3eb1aa}};}return{'type':'format','content':Bt(_0x1af34e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc8fd22['commandName']){const _0x354a02=_0xc8fd22['commandParams'][0x0]['value'];if(_0x354a02){const _0x5f25f9=_0x1a1c75(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1a196d=>_0x1a196d['model']==_0x354a02);let _0x3a2e98=_0x354a02,_0x542fc7='';return _0x5f25f9&&(_0x3a2e98=_0x5f25f9['label'],_0x542fc7=_0x1cf919(_0x1af34e,_0x3a2e98)['toLowerCase']()),{'type':'format','content':Bt(_0x1af34e,'*Set\x20font\x20background\x20color:*\x20%0',_0x542fc7)['trim'](),'color':{'value':_0x354a02,'title':_0x542fc7||_0x3a2e98}};}return{'type':'format','content':Bt(_0x1af34e,'*Reset\x20font\x20background\x20color*')};}}});}},ae=class extends _0x27de82{afterInit(){const {plugins:_0x43cecc}=this['editor'];_0x43cecc['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x43cecc['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x446ff7,plugins:_0xd0c911,commands:_0x3a26bd}=this['editor'],_0x4c3cec=_0xd0c911['get']('TrackChangesEditing');_0x3a26bd['get']('footnotesStyle')&&_0x4c3cec['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3a26bd['get']('footnotesStart')&&_0x4c3cec['enableDefaultAttributesIntegration']('footnotesStart'),_0x4c3cec['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Bt(_0x446ff7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4c3cec['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Bt(_0x446ff7,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x185af2=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x57f4c7,commands:_0x5dab62}=this['editor'];_0x5dab62['get']('insertFootnote')&&_0x185af2['enableCommand']('insertFootnote'),_0x185af2['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3a766e=>Bt(_0x57f4c7,'ELEMENT_FOOTNOTE_REF',_0x3a766e)),_0x185af2['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2d6e64=>Bt(_0x57f4c7,'ELEMENT_FOOTNOTE_DEFINITION',_0x2d6e64)),_0x185af2['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x29302b=>Bt(_0x57f4c7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x29302b));}},ce=class extends _0x27de82{afterInit(){const _0x444209=this['editor'],_0x573c1f=_0x444209['plugins']['get']('TrackChangesEditing'),_0x36ecbb=_0x444209['commands']['get']('copyFormat'),_0x3f0e48=_0x444209['commands']['get']('pasteFormat');_0x36ecbb&&_0x3f0e48&&(_0x573c1f['enableDefaultAttributesIntegration']('pasteFormat'),_0x573c1f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x30f987=this['editor'],_0x594330=_0x30f987['locale'];_0x30f987['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53a07e=>{if('formatBlock'!=_0x53a07e['type']&&'formatInline'!=_0x53a07e['type'])return;const {data:_0x5dfbdf}=_0x53a07e;if(_0x5dfbdf&&'pasteFormat'===_0x5dfbdf['commandName']){const _0x42e308=[],_0x231673=_0x5dfbdf['commandParams'][0x0];for(const [_0x47dfff,_0x147f10]of Object['entries'](_0x231673))_0x42e308['push'](le(_0x30f987,_0x47dfff,_0x147f10));return _0x42e308['length']?{'type':'format','content':Bt(_0x594330,'*Set\x20format\x20to:*\x20%0',_0x42e308['join'](',\x20'))}:{'type':'format','content':Bt(_0x594330,'*Remove\x20all\x20formatting*')};}});}};function le(_0x255307,_0x2f9472,_0x57a12d){const _0x3ea5de=_0x255307['locale'],_0xa9acd3=_0x3ea5de['t'],_0x4e2ff8=_0x2f9472['split'](/(?=[A-Z])/)['join']('\x20'),_0x55b47d=_0xa9acd3(_0x4e2ff8['charAt'](0x0)['toUpperCase']()+_0x4e2ff8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57a12d)return _0x55b47d;if('fontColor'===_0x2f9472||'fontBackgroundColor'===_0x2f9472){const _0xb16dc7=_0x1a1c75(_0x255307['config']['get']('fontColor.colors'))['find'](_0x1088ed=>_0x1088ed['model']==_0x57a12d);return _0x55b47d+'\x20('+(_0xb16dc7?_0x1cf919(_0x3ea5de,_0xb16dc7['label'])['toLowerCase']():_0x57a12d)+')';}if('fontSize'===_0x2f9472&&isNaN(parseFloat(_0x57a12d))){const _0x328a33=_0x255307['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x255307['config']['get']('fontSize.options'))['find'](_0x16afa4=>_0x16afa4['model']==_0x57a12d);return _0x55b47d+'\x20('+(_0x328a33?_0xa9acd3(_0x328a33['title'])['toLowerCase']():_0x57a12d)+')';}return _0x55b47d+'\x20('+_0x57a12d+')';}var ue=class extends _0x27de82{afterInit(){const _0x3e3d81=this['editor'];if(!_0x3e3d81['plugins']['has']('GeneralHtmlSupport')||!_0x3e3d81['plugins']['has']('DataSchema'))return;const _0x5054c7=_0x3e3d81['plugins']['get']('TrackChangesEditing'),_0x4e8ed2=_0x3e3d81['plugins']['get']('GeneralHtmlSupport'),_0x1bde8e=_0x3e3d81['plugins']['get']('DataSchema'),_0x5581f7=_0x3e3d81['locale'],_0x973afa=new Set(['htmlContent']);for(const _0x23bd86 of _0x1bde8e['getDefinitionsForView'](/.*/,!0x1)){const _0xc33b93=_0x23bd86['view'],_0x276d83=_0x4e8ed2['getGhsAttributeNameForElement'](_0xc33b93);_0x973afa['add'](_0x276d83),!_0x23bd86['isInline']||_0x23bd86['isObject']||'appliesToBlock'in _0x23bd86&&_0x23bd86['appliesToBlock']||_0x5054c7['descriptionFactory']['registerAttributeLabel'](_0x276d83,_0xc33b93),_0x23bd86['model']['startsWith']('html')&&_0x5054c7['descriptionFactory']['registerElementLabel'](_0x23bd86['model'],_0x51dea2=>Bt(_0x5581f7,'ELEMENT_HTML_TAG',[_0x51dea2,_0xc33b93]));}_0x5054c7['descriptionFactory']['registerAttributeLabel']('htmlContent',Bt(_0x5581f7,'FORMAT_RAW_HTML_CONTENT')),_0x5054c7['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Bt(_0x5581f7,'FORMAT_HTML_LIST_ITEM')),_0x5054c7['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Bt(_0x5581f7,'FORMAT_HTML_BULLETED_LIST')),_0x5054c7['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Bt(_0x5581f7,'FORMAT_HTML_NUMBERED_LIST')),_0x5054c7['descriptionFactory']['registerDescriptionCallback'](_0x4e3c54=>{if('attribute'!==_0x4e3c54['type'])return;const _0x36d388=_0x4e3c54['data'];if(!_0x36d388||!_0x973afa['has'](_0x36d388['key']))return;if('htmlContent'===_0x36d388['key'])return{'type':'format','content':Bt(_0x5581f7,'*Change\x20%0\x20content*',Bt(_0x5581f7,'ELEMENT_RAW_HTML'))};const {setItems:_0x4c49ab,removeItems:_0x4c93c2}=function(_0x4813ec,_0x4b4e8c,_0x1c00f4){const _0x250f65=[],_0xf7f8e6=[],_0x11dcde=_0x4813ec['styles']??{},_0x3723d6=_0x4b4e8c['styles']??{};for(const _0x35a917 of new Set([...Object['keys'](_0x11dcde),...Object['keys'](_0x3723d6)]))_0x11dcde[_0x35a917]!==_0x3723d6[_0x35a917]&&(void 0x0===_0x3723d6[_0x35a917]?_0xf7f8e6['push'](_0x35a917):_0x250f65['push'](_0x35a917+'\x20('+_0x3723d6[_0x35a917]+')'));const _0x3b7f65=Bt(_0x1c00f4,'FORMAT_HTML_CLASS'),_0x3cd7fb=new Set(_0x4813ec['classes']??[]),_0x160ad1=new Set(_0x4b4e8c['classes']??[]),_0x5331f1=[..._0x160ad1]['some'](_0x51fc75=>!_0x3cd7fb['has'](_0x51fc75)),_0x497d37=[..._0x3cd7fb]['some'](_0x46a25b=>!_0x160ad1['has'](_0x46a25b));_0x5331f1&&_0x250f65['push'](_0x3b7f65),_0x497d37&&_0xf7f8e6['push'](_0x3b7f65);const _0xde91f4=Bt(_0x1c00f4,'FORMAT_HTML_ATTRIBUTE'),_0x484418=_0x4813ec['attributes']??{},_0x13a059=_0x4b4e8c['attributes']??{};let _0xeaa6bf=!0x1,_0x348977=!0x1;for(const _0x4c1a32 of new Set([...Object['keys'](_0x484418),...Object['keys'](_0x13a059)]))_0x484418[_0x4c1a32]!==_0x13a059[_0x4c1a32]&&(void 0x0===_0x13a059[_0x4c1a32]?_0x348977=!0x0:_0xeaa6bf=!0x0);return _0xeaa6bf&&_0x250f65['push'](_0xde91f4),_0x348977&&_0xf7f8e6['push'](_0xde91f4),{'setItems':_0x250f65,'removeItems':_0xf7f8e6};}(_0x36d388['oldValue']??{},_0x36d388['newValue']??{},_0x5581f7);if(!_0x4c49ab['length']&&!_0x4c93c2['length'])return;const _0x3ddc7e=[];return _0x4c49ab['length']&&_0x3ddc7e['push'](Bt(_0x5581f7,'*Set\x20format:*\x20%0',_0x4c49ab['join'](',\x20'))),_0x4c93c2['length']&&_0x3ddc7e['push'](Bt(_0x5581f7,'*Remove\x20format:*\x20%0',_0x4c93c2['join'](',\x20'))),{'type':'format','content':_0x3ddc7e['join']('\x0a')};});}},de=class extends _0x27de82{_headingOptions;afterInit(){const _0x21c0ea=this['editor'];if(!_0x21c0ea['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x21c0ea['config']['get']('heading.options');const _0x25ac49=_0x21c0ea['locale'],_0x46ab0f=_0x21c0ea['plugins']['get']('TrackChangesEditing');_0x46ab0f['enableDefaultAttributesIntegration']('heading');for(const _0x572e23 of this['_headingOptions'])'paragraph'!=_0x572e23['model']&&_0x46ab0f['descriptionFactory']['registerElementLabel'](_0x572e23['model'],_0x21cfe2=>{const _0x89108f=this['_getHeadingLevel'](_0x572e23['model']);return null!==_0x89108f?_0x33ac65(_0x21cfe2,_0x89108f):_0x4b0a08(_0x21cfe2,_0x572e23['title']);});function _0x33ac65(_0x779cc5,_0x2d1065){return Bt(_0x25ac49,'ELEMENT_HEADING',[_0x779cc5,_0x2d1065]);}function _0x4b0a08(_0x321abc,_0x3c5443){return Bt(_0x25ac49,'ELEMENT_HEADING_CUSTOM',[_0x321abc,_0x3c5443]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5f0889=this['editor'],_0x27d0d7=_0x5f0889['locale'];function _0x3d7992(_0x5f34e6,_0x1e46e9){return Bt(_0x27d0d7,'ELEMENT_HEADING_CUSTOM',[_0x5f34e6,_0x1e46e9]);}_0x5f0889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2834d5=>{if('formatBlock'!=_0x2834d5['type'])return;const {data:_0x2fdd0a}=_0x2834d5;if(_0x2fdd0a&&'heading'==_0x2fdd0a['commandName']){const _0x15cf66=_0x2fdd0a['commandParams'][0x0]['value'],_0x48037c=this['_getHeadingLevel'](_0x15cf66);if(null!==_0x48037c)return{'type':'format','content':Bt(_0x27d0d7,'*Change\x20to:*\x20%0',(_0x5e45ce=0x1,_0x3efb19=_0x48037c,Bt(_0x27d0d7,'ELEMENT_HEADING',[_0x5e45ce,_0x3efb19])))};const _0x3e2590=this['_headingOptions']['find'](_0x4fe35e=>_0x4fe35e['model']===_0x15cf66)['title'];return{'type':'format','content':Bt(_0x27d0d7,'*Change\x20to:*\x20%0',_0x3d7992(0x1,_0x3e2590))};}var _0x5e45ce,_0x3efb19;});}_getHeadingLevel(_0x1cf608){const _0x543b74=_0x1cf608['match'](/^heading(\d+)/);if(_0x543b74)return _0x543b74[0x1];const _0x3ee4cb=this['_headingOptions']?.['find'](_0x1aad4b=>_0x1aad4b['model']==_0x1cf608);if(_0x3ee4cb&&_0x3ee4cb['view']){const _0x927e4f=_0x3ee4cb['view'],_0x523fef=(_0x927e4f['name']??_0x927e4f)['match'](/^h(\d+)/);if(_0x523fef)return _0x523fef[0x1];}return null;}},he=class extends _0x27de82{afterInit(){const _0x164524=this['editor'];if(!_0x164524['plugins']['has']('HighlightEditing'))return;const _0x517166=_0x164524['plugins']['get']('TrackChangesEditing'),_0x2d9350=_0x164524['locale'];_0x517166['enableDefaultAttributesIntegration']('highlight'),_0x517166['descriptionFactory']['registerAttributeLabel']('highlight',Bt(_0x2d9350,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2871c6=this['editor'],_0x5cc86e=_0x2871c6['locale'];_0x2871c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5626ce=>{if('formatInline'!=_0x5626ce['type'])return;const {data:_0x596b7b}=_0x5626ce;if(_0x596b7b&&'highlight'==_0x596b7b['commandName']){const _0x98a973=_0x5cc86e['t'],_0x338698=_0x596b7b['commandParams'][0x0]['value'];if(_0x338698){const _0x122981=_0x2871c6['config']['get']('highlight.options')['find'](_0x11e5b=>_0x11e5b['model']==_0x338698),_0x22b72a=_0x98a973(_0x122981['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x5cc86e,'*Set\x20highlight:*\x20%0',_0x22b72a),'color':{'value':_0x122981['color'],'title':_0x122981['title']}};}return{'type':'format','content':Bt(_0x5cc86e,'*Remove\x20highlight*',Bt(_0x5cc86e,'FORMAT_HIGHLIGHT'))};}});}},ge=class extends _0x27de82{afterInit(){const _0x58d052=this['editor'];if(!_0x58d052['plugins']['has']('HorizontalLineEditing'))return;_0x58d052['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x301a7d=_0x58d052['plugins']['get']('TrackChangesEditing'),_0x4e9dec=_0x58d052['locale'];_0x301a7d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2d9d98=>Bt(_0x4e9dec,'ELEMENT_HORIZONTAL_LINE',_0x2d9d98));}},fe=class extends _0x27de82{afterInit(){const _0x978956=this['editor'];if(!_0x978956['plugins']['has']('HtmlEmbed'))return;const _0x6fbeb7=_0x978956['plugins']['get']('TrackChangesEditing'),_0x49370e=_0x978956['locale'];_0x6fbeb7['descriptionFactory']['registerElementLabel']('rawHtml',_0x191f89=>Bt(_0x49370e,'ELEMENT_HTML_EMBED',_0x191f89)),_0x6fbeb7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x6fbeb7['descriptionFactory']['registerDescriptionCallback'](_0x5a58fa=>{if('attribute'!=_0x5a58fa['type'])return;const {data:_0x3d92c3}=_0x5a58fa;if(_0x3d92c3&&'value'==_0x3d92c3['key']&&_0x5a58fa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xa1d386=Bt(_0x49370e,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x49370e,'*Change\x20%0\x20content*',_0xa1d386)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x37ae58=this['editor'],_0x40fa04=_0x37ae58['locale'];_0x37ae58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bfa42=>{if('formatBlock'!=_0x5bfa42['type'])return;const {data:_0x3542ad}=_0x5bfa42;if(_0x3542ad&&'htmlEmbed'==_0x3542ad['commandName']){const _0x56e496=Bt(_0x40fa04,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x40fa04,'*Change\x20%0\x20content*',_0x56e496)};}});}},me=class extends _0x27de82{afterInit(){const _0x3e4d96=this['editor'];if(!_0x3e4d96['plugins']['has']('ImageEditing'))return;const _0x17a586=_0x3e4d96['plugins']['get']('TrackChangesEditing'),_0x742db7=_0x3e4d96['plugins']['get']('ImageUtils'),_0x5685de=_0x3e4d96['locale'];_0x17a586['enableCommand']('insertImage'),_0x17a586['descriptionFactory']['registerElementLabel']('imageBlock',_0x1174e3=>Bt(_0x5685de,'ELEMENT_IMAGE',_0x1174e3)),_0x17a586['descriptionFactory']['registerElementLabel']('imageInline',_0x21367d=>Bt(_0x5685de,'ELEMENT_INLINE_IMAGE',_0x21367d)),_0x17a586['descriptionFactory']['registerElementLabel']('caption',()=>Bt(_0x5685de,'ELEMENT_CAPTION')),_0x3e4d96['plugins']['has']('ImageUploadEditing')&&_0x17a586['enableCommand']('uploadImage'),_0x3e4d96['plugins']['has']('ImageBlockEditing')&&_0x3e4d96['plugins']['has']('ImageInlineEditing')&&(_0x17a586['enableCommand']('imageTypeInline',(_0x1b6a2b,_0xcce8f7)=>{const _0x117267=_0x742db7['getClosestSelectedImageElement'](_0x3e4d96['model']['document']['selection']);_0x3e4d96['model']['change'](()=>{_0x17a586['markBlockFormat'](_0x117267,{'commandName':'imageTypeInline','commandParams':[_0xcce8f7]},[],'convertBlockImageToInline');});}),_0x17a586['enableCommand']('imageTypeBlock',(_0x2d3233,_0x404fdc)=>{_0x3e4d96['model']['change'](_0x235a39=>{let _0x1a6ab8=_0x742db7['getClosestSelectedImageElement'](_0x3e4d96['model']['document']['selection']),_0x23c568=_0x235a39['createRangeOn'](_0x1a6ab8);const _0x6b1d3d=at['fromPosition'](_0x23c568['start'],'toPrevious'),_0x5738c2=at['fromPosition'](_0x23c568['end'],'toNext');_0x17a586['forceDefaultExecution'](()=>_0x2d3233(_0x404fdc)),_0x1a6ab8=_0x742db7['getClosestSelectedImageElement'](_0x3e4d96['model']['document']['selection']),_0x23c568=_0x235a39['createRangeOn'](_0x1a6ab8);const _0x2bae4f=_0x235a39['createRange'](_0x6b1d3d,_0x5738c2);_0x6b1d3d['detach'](),_0x5738c2['detach'](),_0x17a586['markBlockFormat'](_0x1a6ab8,{'commandName':'imageTypeInline','commandParams':[_0x404fdc]},[],'convertInlineImageToBlock'),_0x2bae4f['start']['isBefore'](_0x23c568['start'])&&_0x17a586['markInsertion'](_0x235a39['createRange'](_0x2bae4f['start'],_0x23c568['start']),'convertInlineImageToBlock'),_0x23c568['end']['isBefore'](_0x2bae4f['end'])&&_0x17a586['markInsertion'](_0x235a39['createRange'](_0x23c568['end'],_0x2bae4f['end']),'convertInlineImageToBlock');});}),_0x17a586['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x17a586['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x17a586['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x17a586['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x17a586['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x17a586['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1a2186])=>{const _0x284a74=_0x17a586['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x411c16=_0x1a2186['start'],_0x125692=_0x1a2186['end'];const _0x1db6f7=_0x3e4d96['model']['schema']['getNearestSelectionRange'](_0x411c16,'backward'),_0x37d6bf=_0x3e4d96['model']['schema']['getNearestSelectionRange'](_0x125692,'forward');_0x1db6f7['isCollapsed']&&(_0x411c16=_0x1db6f7['start']),_0x37d6bf['isCollapsed']&&(_0x125692=_0x37d6bf['end']),_0x284a74([_0x3e4d96['model']['createRange'](_0x411c16,_0x125692)]);}),_0x17a586['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf1aa19),_0x17a586['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf1aa19)),_0x3e4d96['plugins']['has']('ImageCaptionEditing')&&(_0x17a586['enableCommand']('toggleImageCaption',(_0xc995f7,_0x2a47e8)=>{const _0x416745=_0x3e4d96['plugins']['get']('ImageCaptionUtils');let _0x20cdac=_0x742db7['getClosestSelectedImageElement'](_0x3e4d96['model']['document']['selection']),_0x5a218c=_0x416745['getCaptionFromImageModelElement'](_0x20cdac);_0x3e4d96['model']['change'](()=>{if(_0x5a218c)return void _0x17a586['markDeletion'](_0x3e4d96['model']['createRangeOn'](_0x5a218c));const _0x39a4cf=_0x742db7['isBlockImage'](_0x20cdac);_0xc995f7(_0x2a47e8),_0x20cdac=_0x742db7['getClosestSelectedImageElement'](_0x3e4d96['model']['document']['selection']),_0x5a218c=_0x416745['getCaptionFromImageModelElement'](_0x20cdac),_0x17a586['markInsertion'](_0x3e4d96['model']['createRangeOn'](_0x5a218c),_0x39a4cf?null:'imageCaption');});}),_0x17a586['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf1aa19));const _0x4de53a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x112f5e(_0xc47eb2,_0x5c50aa){const _0x4b87a8=_0x4de53a['findIndex'](({type:_0x5d2a63,subType:_0x2270ba})=>_0xc47eb2['type']==_0x5d2a63&&_0xc47eb2['subType']==_0x2270ba),_0x3cfb71=_0x4de53a['findIndex'](({type:_0x37e457,subType:_0x220251})=>_0x5c50aa['type']==_0x37e457&&_0x5c50aa['subType']==_0x220251);if(_0x4b87a8<0x0||_0x3cfb71<0x0)return!0x1;const _0x44d6d8=_0xc47eb2['getFirstRange'](),_0x5e16fe=_0x5c50aa['getFirstRange']();if((0x0==_0x4b87a8||0x1==_0x4b87a8)&&0x2==_0x3cfb71&&_0x44d6d8['isIntersecting'](_0x5e16fe))return!0x0;if(0x2==_0x4b87a8&&0x3==_0x3cfb71){const _0x344e9c=_0x17a586['_findSuggestions'](_0x44d6d8,'insertion')['filter'](({suggestion:_0x1ee4c6,meta:_0x4f2e5e})=>_0x4f2e5e['isOwn']&&'convertInlineImageToBlock'==_0x1ee4c6['subType']);if(_0x344e9c['length']>0x1&&_0x5e16fe['end']['isEqual'](_0x44d6d8['start']))return!0x0;if(0x1==_0x344e9c['length']&&(_0x44d6d8['start']['isEqual'](_0x5e16fe['end'])||_0x44d6d8['end']['isEqual'](_0x5e16fe['start'])))return!0x0;}if(0x3==_0x4b87a8&&0x3==_0x3cfb71&&_0x44d6d8['start']['isBefore'](_0x5e16fe['start'])){const _0x542dac=_0x44d6d8['end']['nodeAfter'],_0x56d68e=_0x5e16fe['start']['nodeBefore'];return _0x742db7['isBlockImage'](_0x542dac)&&_0x542dac===_0x56d68e;}return!0x1;}function _0xf1aa19(_0x2ea2cc,_0x31c3b9){return _0x112f5e(_0x2ea2cc,_0x31c3b9)?[_0x2ea2cc,_0x31c3b9]:_0x112f5e(_0x31c3b9,_0x2ea2cc)?[_0x31c3b9,_0x2ea2cc]:null;}_0x3e4d96['plugins']['has']('ImageResize')&&(_0x17a586['enableDefaultAttributesIntegration']('resizeImage'),_0x17a586['descriptionFactory']['registerAttributeLabel']('resizedWidth',Bt(_0x5685de,'FORMAT_IMAGE_SIZE'))),_0x3e4d96['plugins']['has']('ImageTextAlternativeEditing')&&_0x17a586['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e4d96['plugins']['has']('PictureEditing')&&_0x17a586['descriptionFactory']['registerDescriptionCallback'](_0x3340d1=>{if('attribute'!=_0x3340d1['type'])return;const {data:_0x644ca}=_0x3340d1;return _0x644ca&&'sources'==_0x644ca['key']?{'type':'format','content':''}:void 0x0;}),_0x3e4d96['plugins']['has']('ImageSizeAttributes')&&_0x17a586['descriptionFactory']['registerDescriptionCallback'](_0x17604c=>{if('attribute'!=_0x17604c['type'])return;const {data:_0x1f8ee6}=_0x17604c;return!_0x1f8ee6||'width'!=_0x1f8ee6['key']&&'height'!=_0x1f8ee6['key']?void 0x0:{'type':'format','content':''};}),_0x17a586['descriptionFactory']['registerDescriptionCallback'](_0x9fa796=>{if(_0x4de53a['find'](({type:_0x3a1070,subType:_0x5d3b9a})=>_0x9fa796['type']==_0x3a1070&&_0x9fa796['subType']==_0x5d3b9a))return _0x9fa796['previous']?{}:void 0x0;}),_0x17a586['descriptionFactory']['registerDescriptionCallback'](_0x5893a2=>{if('insertion'==_0x5893a2['type']||'deletion'==_0x5893a2['type']){const _0x4adddf=_0x5893a2['getContainedElement']();if(_0x4adddf&&_0x4adddf['is']('element','caption'))return{'type':'insertion'==_0x5893a2['type']?'addObject':'removeObject','element':_0x4adddf,'quantity':0x1};}}),_0x17a586['descriptionFactory']['registerDescriptionCallback'](_0x11da71=>'formatBlock'==_0x11da71['type']&&'convertInlineImageToBlock'==_0x11da71['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11da71['type']&&'convertBlockImageToInline'==_0x11da71['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x17a586['descriptionFactory']['registerDescriptionCallback'](_0x28d454=>{if('attribute'!=_0x28d454['type'])return;const {data:_0x370288}=_0x28d454;if(!_0x370288||'alt'!=_0x370288['key'])return;const _0x38aa80=_0x370288['newValue'];return _0x38aa80?{'type':'format','content':Bt(_0x5685de,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38aa80+'\x22')}:{'type':'format','content':Bt(_0x5685de,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x41b4bf=this['editor'],_0x2e9b43=_0x41b4bf['locale'];_0x41b4bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x475fd1=>{if('formatBlock'!=_0x475fd1['type']&&'formatInline'!=_0x475fd1['type'])return;const {data:_0xbbde62}=_0x475fd1;if(_0xbbde62){if('imageTextAlternative'==_0xbbde62['commandName']){const _0x5c164a=_0xbbde62['commandParams'][0x0]['newValue'];return _0x5c164a?{'type':'format','content':Bt(_0x2e9b43,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c164a+'\x22')}:{'type':'format','content':Bt(_0x2e9b43,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xbbde62['commandName']){const _0x9cc0d7=_0xbbde62['commandParams'][0x0]['width'];return _0x9cc0d7?{'type':'format','content':Bt(_0x2e9b43,'*Set\x20image\x20width:*\x20%0',_0x9cc0d7)}:{'type':'format','content':Bt(_0x2e9b43,'*Reset\x20image\x20width*')};}}});}},Ee=class extends _0x27de82{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x396220=this['editor']['locale'],_0x18e1d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x18e1d7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x18e1d7['descriptionFactory']['registerDescriptionCallback'](_0x21ad81=>{if('attribute'!=_0x21ad81['type'])return;const {data:_0x7a1d98}=_0x21ad81;return _0x7a1d98&&'src'==_0x7a1d98['key']?_0x7a1d98['newValue']&&_0x7a1d98['oldValue']?{'type':'format','content':Bt(_0x396220,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x5ef0b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ef0b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ef0b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ef0b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ef0b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x359db8=this['editor'],_0x5622fb=_0x359db8['locale'];_0x359db8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7809=>{if('formatBlock'!=_0x1f7809['type']&&'formatInline'!=_0x1f7809['type'])return;const {data:_0x23983d}=_0x1f7809;return _0x23983d&&'replaceImageSource'==_0x23983d['commandName']?{'type':'format','content':Bt(_0x5622fb,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Te=class extends _0x27de82{afterInit(){const _0x453fa6=this['editor'];if(!_0x453fa6['plugins']['has']('ImageStyleEditing'))return;const _0x1be192=_0x453fa6['plugins']['get']('TrackChangesEditing'),_0x3b8b3b=_0x453fa6['plugins']['get']('ImageUtils'),_0x1fb0e8={};_0x1be192['enableCommand']('imageStyle',(_0x210baa,_0x338296)=>{const _0x43d82c=_0x453fa6['plugins']['get']('Users')['me'],_0x2576e8=_0x453fa6['commands']['get']('imageStyle');let _0x12186e=_0x3b8b3b['getClosestSelectedImageElement'](_0x453fa6['model']['document']['selection']),_0x274787=_0x453fa6['model']['createRangeOn'](_0x12186e),_0xf6e1e=_0x2576e8['value'];if(_0xf6e1e==_0x338296['value'])return;if(_0x338296['value']&&_0x3b8b3b['isInlineImage'](_0x12186e)&&!_0x2576e8['isStyleEnabled'](_0x338296['value']))return;const _0x9e4f26={'commandName':'imageStyle','commandParams':[_0x338296],'formatGroupId':_0x34e203()};_0x453fa6['model']['change'](()=>{if(_0x1be192['getSuggestions']()['filter'](_0x3e9d0e=>_0x3e9d0e['isInContent']&&_0x43d82c==_0x3e9d0e['author']&&('formatBlock'==_0x3e9d0e['type']||'formatInline'==_0x3e9d0e['type'])&&('imageStylePreApply'==_0x3e9d0e['subType']||'imageStylePostApply'==_0x3e9d0e['subType'])&&_0x3e9d0e['getFirstRange']()['isEqual'](_0x274787))['forEach'](_0x5eb419=>_0x1be192['discardSuggestion'](_0x5eb419['head'])),_0x12186e=_0x3b8b3b['getClosestSelectedImageElement'](_0x453fa6['model']['document']['selection']),_0x274787=_0x453fa6['model']['createRangeOn'](_0x12186e),_0x2576e8['refresh'](),_0x453fa6['commands']['get']('imageTypeInline')['refresh'](),_0x453fa6['commands']['get']('imageTypeBlock')['refresh'](),_0xf6e1e=_0x2576e8['value'],_0xf6e1e!=_0x338296['value'])return _0x3b8b3b['isInlineImage'](_0x12186e)&&_0x2576e8['shouldConvertImageType'](_0x338296['value'],_0x12186e)?(_0x210baa({..._0x338296,'setImageSizes':!0x1}),_0x12186e=_0x3b8b3b['getClosestSelectedImageElement'](_0x453fa6['model']['document']['selection']),void _0x1be192['markBlockFormat'](_0x12186e,{..._0x9e4f26,'commandReversedParams':[{'value':_0xf6e1e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b8b3b['isBlockImage'](_0x12186e)?_0x1be192['markBlockFormat'](_0x12186e,_0x9e4f26,[],'imageStylePostApply'):_0x1be192['markInlineFormat'](_0x274787,_0x9e4f26,'imageStylePostApply'));});});for(const _0x20a3cf of _0x453fa6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1fb0e8[_0x20a3cf['name']]=_0x20a3cf['title']['toLowerCase']();_0x1be192['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1be192['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1be192['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1be192['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf912da])=>{_0x3b8b3b['setImageNaturalSizeAttributes'](_0xf912da['getContainedElement']());}),_0x1be192['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5a75c4,_0x465333)=>{_0x1be192['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5a75c4,{'commandName':_0x465333['commandName'],'commandParams':_0x465333['commandReversedParams']});}),_0x1be192['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf17419,_0x2a3e4a){return _0x457f82(_0xf17419,_0x2a3e4a)?[_0xf17419,_0x2a3e4a]:_0x457f82(_0x2a3e4a,_0xf17419)?[_0x2a3e4a,_0xf17419]:null;});const _0x1bac67=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x457f82(_0xf3b762,_0x1c253d){const _0xb301f3=_0x1bac67['findIndex'](({type:_0x1176e6,subType:_0x136b23})=>_0xf3b762['type']==_0x1176e6&&_0xf3b762['subType']==_0x136b23),_0xc1237=_0x1bac67['findIndex'](({type:_0x3d3830,subType:_0x227262})=>_0x1c253d['type']==_0x3d3830&&_0x1c253d['subType']==_0x227262);if(_0xb301f3<0x0||_0xc1237<0x0)return!0x1;const _0x44abb9=_0xf3b762['getFirstRange'](),_0x4ab84f=_0x1c253d['getFirstRange']();if((0x0==_0xb301f3||0x1==_0xb301f3)&&0x2==_0xc1237&&_0x44abb9['isIntersecting'](_0x4ab84f))return!0x0;if(0x2==_0xb301f3&&0x3==_0xc1237){const _0x3661dd=_0x1be192['_findSuggestions'](_0x44abb9,'insertion')['filter'](({suggestion:_0x1e81c3,meta:_0x4fe54c})=>_0x4fe54c['isOwn']&&'convertInlineImageToBlock'==_0x1e81c3['subType']);if(_0x3661dd['length']>0x1&&_0x4ab84f['end']['isEqual'](_0x44abb9['start']))return!0x0;if(0x1==_0x3661dd['length']&&(_0x44abb9['start']['isEqual'](_0x4ab84f['end'])||_0x44abb9['end']['isEqual'](_0x4ab84f['start'])))return!0x0;}if(0x3==_0xb301f3&&0x3==_0xc1237&&_0x44abb9['start']['isBefore'](_0x4ab84f['start'])){const _0x3534bb=_0x44abb9['end']['nodeAfter'],_0x4f6b87=_0x4ab84f['start']['nodeBefore'];return _0x3b8b3b['isBlockImage'](_0x3534bb)&&_0x3534bb===_0x4f6b87;}return!0x1;}_0x453fa6['model']['document']['registerPostFixer'](()=>{let _0x2017df=!0x1;const _0x435335=Array['from'](_0x453fa6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4771e2,data:_0x22a59a}of _0x435335){const {group:_0x475d2f,type:_0x6f8c72,subType:_0x869ecb,id:_0x820ff5}=it(_0x4771e2);if('suggestion'==_0x475d2f&&_0x1be192['hasSuggestion'](_0x820ff5)){if('formatBlock'==_0x6f8c72&&('imageStylePreApply'==_0x869ecb||'imageStylePostApply'==_0x869ecb)){const _0x34d564=_0x1be192['getSuggestion'](_0x820ff5);if(_0x22a59a['newRange']){const _0x35e18e=_0x34d564['getFirstRange']()['getContainedElement']();if(_0x3b8b3b['isBlockImage'](_0x35e18e))continue;_0x1be192['discardSuggestion'](_0x34d564),_0x2017df=!0x0;}}if('insertion'==_0x6f8c72&&'imageCaption'==_0x869ecb&&!_0x22a59a['newRange']){const _0x4ff183=_0x1be192['getSuggestion'](_0x820ff5);_0x4ff183['next']&&_0x4ff183['next']['isInContent']&&(_0x1be192['discardSuggestion'](_0x4ff183['next']),_0x2017df=!0x0);}}}return _0x2017df;}),this['_registerLegacyDescription'](_0x1fb0e8);}_registerLegacyDescription(_0x289a32){const _0x1630ce=this['editor'],_0x40e8a7=_0x1630ce['locale'];_0x1630ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x134c86=>{if('formatBlock'!=_0x134c86['type']&&'formatInline'!=_0x134c86['type'])return;const {data:_0x472fdb}=_0x134c86;if(!_0x472fdb||'imageStyle'!=_0x472fdb['commandName'])return;const _0x3d018b=_0x472fdb['commandParams'][0x0]['value'];return _0x2f0090('side'===_0x3d018b?Bt(_0x40e8a7,'FORMAT_SIDE_IMAGE'):_0x289a32[_0x3d018b]||_0x3d018b);function _0x2f0090(_0x36f315){return{'type':'format','content':Bt(_0x40e8a7,'*Format:*\x20%0',_0x36f315)};}});}},_e=class extends _0x27de82{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x3e1685){super(_0x3e1685),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x46c423=this['editor'],_0x232ce8=_0x46c423['commands']['get']('importWord'),_0x5db8f7=_0x46c423['commands']['get']('trackChanges');_0x232ce8&&(_0x232ce8['on']('execute',(_0x2d910a,[,_0xf10282])=>{this['_trackChangesValueDuringImport']=_0x5db8f7['value'],_0xf10282['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x232ce8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x232ce8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5db8f7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x46c423['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x5e132e,_0x3b79c2){const {suggestions:_0x3392cb}=_0x3b79c2,_0x1a86c8=this['editor']['commands']['get']('trackChanges'),_0x49cf2b=_0x1a86c8['value'];this['_trackChangesValueDuringImport']!==_0x49cf2b&&(_0x1a86c8['execute'](),this['_trackChangesExecuted']=!0x0),_0x3392cb&&_0x3392cb['forEach'](({id:_0x208f6d,type:_0x57ae35,author:_0x3c9781,created_at:_0x59aa26})=>{const _0x36a005={'id':_0x208f6d,'type':_0x57ae35,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c9781,'createdAt':_0x59aa26?new Date(_0x59aa26):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x36a005);});}},pe=class extends _0x27de82{afterInit(){const _0xbb7ae6=this['editor'],_0x3a6bd4=_0xbb7ae6['plugins']['get']('TrackChangesEditing');if(_0xbb7ae6['plugins']['has']('IndentEditing')&&(_0x3a6bd4['enableCommand']('indent'),_0x3a6bd4['enableCommand']('outdent')),_0xbb7ae6['plugins']['has']('IndentBlock')){for(const _0x3e0c5c of['indentBlock','outdentBlock'])_0x3a6bd4['enableDefaultAttributesIntegration'](_0x3e0c5c);if(_0xbb7ae6['plugins']['has']('ListEditing')){for(const _0x530df2 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3a6bd4['enableDefaultAttributesIntegration'](_0x530df2);}}const _0x42e3a7=_0xbb7ae6['locale'];_0x3a6bd4['descriptionFactory']['registerAttributeLabel']('blockIndent',Bt(_0x42e3a7,'FORMAT_INDENT')),_0x3a6bd4['descriptionFactory']['registerAttributeLabel']('blockIndentList',Bt(_0x42e3a7,'FORMAT_INDENT')),_0x3a6bd4['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Bt(_0x42e3a7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x330731=this['editor'],_0x521acd=_0x330731['locale'],_0x57dff5=_0x330731['plugins']['get']('TrackChangesEditing');_0x57dff5['descriptionFactory']['registerDescriptionCallback'](_0xa3d170=>{if('formatBlock'!=_0xa3d170['type'])return;const {data:_0x397878}=_0xa3d170;if(!_0x397878)return;if('indentBlock'!=_0x397878['commandName']&&'outdentBlock'!=_0x397878['commandName'])return;const _0x1d0b4a=_0xa3d170['getItems']()[0x0],_0x103f0e=_0x57dff5['descriptionFactory']['getItemLabel'](_0x1d0b4a);return'indentBlock'==_0x397878['commandName']?{'type':'format','content':Bt(_0x521acd,'*Indent:*\x20%0',_0x103f0e)}:'outdentBlock'==_0x397878['commandName']?{'type':'format','content':Bt(_0x521acd,'*Outdent:*\x20%0',_0x103f0e)}:void 0x0;});}},Le=class extends _0x27de82{static get requires(){return[_t];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ie=class extends _0x27de82{afterInit(){const _0xa405b1=this['editor'];if(!_0xa405b1['plugins']['has']('LinkEditing'))return;const _0x2600a7=_0xa405b1['plugins']['get']('TrackChangesEditing'),_0x469834=_0xa405b1['commands']['get']('link');_0x2600a7['enableDefaultAttributesIntegration']('link'),_0x2600a7['enableDefaultAttributesIntegration']('unlink');for(const _0x16bee9 of _0x469834['manualDecorators'])_0x2600a7['descriptionFactory']['registerAttributeLabel'](_0x16bee9['id'],'link\x20('+_0x16bee9['label']['toLowerCase']()+')');_0x2600a7['descriptionFactory']['registerDescriptionCallback'](_0x20d5df=>{if('attribute'!=_0x20d5df['type'])return;const {data:_0x12912d}=_0x20d5df;if(!_0x12912d||'linkHref'!=_0x12912d['key'])return;const _0x375874=_0x12912d['newValue'],_0x4d5622=_0xa405b1['locale'];return{'type':'format','content':null==_0x375874?Bt(_0x4d5622,'*Remove\x20link*'):Bt(_0x4d5622,'*Set\x20link:*\x20%0','\x22'+_0x375874+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xe25cad=this['editor'],_0x331d00=_0xe25cad['locale'];_0xe25cad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cab3a=>{if('formatInline'!=_0x5cab3a['type'])return;const {data:_0x2fe2f6}=_0x5cab3a;if(_0x2fe2f6){if('link'==_0x2fe2f6['commandName']){const _0x13a339=_0x2fe2f6['commandParams'][0x0];return{'type':'format','content':Bt(_0x331d00,'*Set\x20link:*\x20%0','\x22'+_0x13a339+'\x22')};}return'unlink'==_0x2fe2f6['commandName']?{'type':'format','content':Bt(_0x331d00,'*Remove\x20link*')}:void 0x0;}});}},Ae=class extends _0x27de82{afterInit(){const _0x2ed0a2=this['editor'],_0x195d97=_0x2ed0a2['locale'];if(!_0x2ed0a2['plugins']['has']('LegacyListEditing'))return;const _0x1e2d13=_0x2ed0a2['plugins']['get']('TrackChangesEditing'),_0x3c8741=_0x2ed0a2['plugins']['has']('LegacyTodoListEditing');function _0x2b94aa(_0x27a87c){return()=>{const _0x3172ed=_0x2ed0a2['model']['document']['selection'],_0x547cdf=_0x2ed0a2['commands']['get'](_0x27a87c);if(_0x547cdf['value'])return void _0x2ed0a2['execute']('paragraph',{});const _0x3c82c6=_0x27a87c['slice'](0x0,-0x4),_0x556371=function(_0x4c6874,_0x4935b8,_0x34600f){let _0xe6fe89=Array['from'](_0x4c6874)['filter'](_0x88d290=>function(_0x13fae1,_0x163de6){return _0x163de6['checkChild'](_0x13fae1['parent'],'listItem')&&!_0x163de6['isObject'](_0x13fae1);}(_0x88d290,_0x34600f));_0xe6fe89=_0xe6fe89['filter'](_0x1a0b0e=>!_0x1a0b0e['is']('element','listItem')||_0x1a0b0e['getAttribute']('listType')!=_0x4935b8);const _0x5f3428=new Set();for(const _0x4fcd78 of _0xe6fe89)_0x4fcd78['is']('element','listItem')?_0x5f3428['add'](be(_0x4fcd78)):_0x5f3428['add'](_0x4fcd78);return Array['from'](_0x5f3428);}(_0x3172ed['getSelectedBlocks'](),_0x3c82c6,_0x2ed0a2['model']['schema']);_0x2ed0a2['model']['change'](()=>{for(const _0x339ead of _0x556371)_0x1e2d13['markBlockFormat'](_0x339ead,{'commandName':_0x27a87c,'commandParams':[{'forceValue':!_0x547cdf['value']}],'formatGroupId':'blockName'},Ce(_0x339ead));});};}function _0x20dd5e(_0x1083ea){return()=>{const _0x4cce60=function(_0x5550fd){let _0x424568=Array['from'](_0x5550fd);const _0x183573=_0x424568['findIndex'](_0x3f9533=>'listItem'!=_0x3f9533['name']);return _0x183573>-0x1&&(_0x424568=_0x424568['slice'](0x0,_0x183573)),_0x424568;}(_0x2ed0a2['model']['document']['selection']['getSelectedBlocks']()),_0x5bdad8=_0x2ed0a2['model']['createRange'](_0x2ed0a2['model']['createPositionAt'](_0x4cce60[0x0],'before'),_0x2ed0a2['model']['createPositionAt'](_0x4cce60[_0x4cce60['length']-0x1],'end'));_0x2ed0a2['model']['change'](()=>{_0x1e2d13['markBlockFormat'](_0x5bdad8,{'commandName':_0x1083ea,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38e94c){const _0x39a289=new Set();for(const _0x374f31 of _0x38e94c){let _0x2e22eb=_0x374f31['nextSibling'];for(;_0x2e22eb&&_0x2e22eb['getAttribute']('listIndent')>_0x374f31['getAttribute']('listIndent');)_0x39a289['add'](_0x2e22eb),_0x2e22eb=_0x2e22eb['nextSibling'];}return Array['from'](_0x39a289);}(_0x4cce60));});};}_0x1e2d13['enableCommand']('numberedList',_0x2b94aa('numberedList')),_0x1e2d13['enableCommand']('bulletedList',_0x2b94aa('bulletedList')),_0x3c8741&&_0x1e2d13['enableCommand']('todoList',_0x2b94aa('todoList')),_0x1e2d13['enableCommand']('indentList',_0x20dd5e('indentList')),_0x1e2d13['enableCommand']('outdentList',_0x20dd5e('outdentList')),_0x3c8741&&_0x1e2d13['enableCommand']('checkTodoList',()=>{const _0x249397=_0x2ed0a2['commands']['get']('checkTodoList'),_0x4ddcdb=Array['from'](_0x249397['_selectedElements']);_0x4ddcdb['filter'](_0x63bcd8=>_0x63bcd8['getAttribute']('todoListChecked')!=_0x249397['value']),_0x2ed0a2['model']['change'](()=>{for(const _0x6104b2 of _0x4ddcdb)_0x1e2d13['markBlockFormat'](_0x6104b2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x249397['value']}]});});}),_0x1e2d13['descriptionFactory']['registerElementLabel']('listItem',_0x13b0a3=>Bt(_0x195d97,'ELEMENT_LIST_ITEM',_0x13b0a3)),_0x1e2d13['descriptionFactory']['registerDescriptionCallback'](_0x80aece=>{if('formatBlock'!=_0x80aece['type']&&'formatInline'!=_0x80aece['type'])return;const {data:_0x2cb4cf}=_0x80aece;if(_0x2cb4cf){if('numberedList'==_0x2cb4cf['commandName']||'bulletedList'==_0x2cb4cf['commandName']||'todoList'==_0x2cb4cf['commandName'])switch(_0x2cb4cf['commandName']['replace']('List','')){case'bulleted':return _0x2b0999(Bt(_0x195d97,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b0999(Bt(_0x195d97,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b0999(Bt(_0x195d97,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2cb4cf['commandName'])return{'type':'format','content':Bt(_0x195d97,'*Indent:*\x20%0',Bt(_0x195d97,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2cb4cf['commandName'])return{'type':'format','content':Bt(_0x195d97,'*Outdent:*\x20%0',Bt(_0x195d97,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2cb4cf['commandName'])return _0x2cb4cf['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x195d97,'*Check\x20item*')}:{'type':'format','content':Bt(_0x195d97,'*Uncheck\x20item*')};}function _0x2b0999(_0xf6874b){return{'type':'format','content':Bt(_0x195d97,'*Change\x20to:*\x20%0',_0xf6874b)};}});}};function be(_0x367497){const _0x5b3cdb=_0x367497['getAttribute']('listIndent');if(0x0==_0x5b3cdb)return _0x367497;let _0x13ba9b=_0x367497;for(;_0x367497['previousSibling']&&_0x367497['previousSibling']['is']('element','listItem');){const _0x243632=_0x367497['previousSibling']['getAttribute']('listIndent');if(_0x243632==_0x5b3cdb)_0x13ba9b=_0x367497['previousSibling'];else{if(_0x243632<_0x5b3cdb)break;}_0x367497=_0x367497['previousSibling'];}return _0x13ba9b;}function Ce(_0x24d26b){const _0x8054d3=[];if(_0x24d26b['is']('element','listItem')&&_0x24d26b['getAttribute']('listIndent')>0x0){let _0x11ad64=_0x24d26b['nextSibling'];for(;_0x11ad64&&'listItem'==_0x11ad64['name']&&_0x11ad64['getAttribute']('listIndent')==_0x24d26b['getAttribute']('listIndent');)_0x8054d3['push'](_0x11ad64),_0x11ad64=_0x11ad64['nextSibling'];}return _0x8054d3;}var ke=class extends _0x27de82{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x25e5ee=this['editor']['config']['get']('list.properties'),_0x31de8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x25e5ee['styles']&&_0x31de8a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x25e5ee['reversed']&&_0x31de8a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x25e5ee['startIndex']&&_0x31de8a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x31de8a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x34c171,_0x31643e={}){const _0x4872af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a8ee3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4872af['markMultiRangeBlockFormat'](_0x3a8ee3,{'commandName':'listStyle','commandParams':[{'type':_0x31643e['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x5c93b5,_0x47f3a8={}){const _0x3c4356=this['editor']['plugins']['get']('TrackChangesEditing'),_0x410279=this['_getSuggestionBlocks'](_0x6cf802=>_0x6cf802['is']('element','listItem')&&'numbered'===_0x6cf802['getAttribute']('listType'));if(_0x410279['length']<0x1)return;const _0x42e4fa=_0x410279['map'](_0x1b1c64=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b1c64,'before'),this['editor']['model']['createPositionAt'](_0x1b1c64,0x0)));this['editor']['model']['change'](()=>{_0x3c4356['markMultiRangeBlockFormat'](_0x42e4fa,{'commandName':'listReversed','commandParams':[{'reversed':_0x47f3a8['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x36863d,_0x18f0cf={}){const _0x5ddc8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x76ad3d=this['_getSuggestionBlocks'](_0x562c8e=>_0x562c8e['is']('element','listItem')&&'numbered'===_0x562c8e['getAttribute']('listType'));if(_0x76ad3d['length']<0x1)return;const _0x4db18c=_0x76ad3d['map'](_0x2473d3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2473d3,'before'),this['editor']['model']['createPositionAt'](_0x2473d3,0x0)));this['editor']['model']['change'](()=>{_0x5ddc8b['markMultiRangeBlockFormat'](_0x4db18c,{'commandName':'listStart','commandParams':[{'startIndex':_0x18f0cf['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x2daee3){if('formatBlock'!=_0x2daee3['type']&&'formatInline'!=_0x2daee3['type'])return;const _0x50ac57=this['editor']['locale'],{data:_0x25f3ed}=_0x2daee3;if(!_0x25f3ed)return;let _0x439648,_0x1e8b68;switch(_0x25f3ed['commandName']){case'listStyle':_0x439648='*Change\x20to:*\x20%0',_0x1e8b68={'type':'format','content':Bt(_0x50ac57,_0x439648,Bt(_0x50ac57,this['_getTranslationKeyForListStyle'](_0x25f3ed['commandParams'][0x0]['type'])))};break;case'listReversed':_0x439648=_0x25f3ed['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1e8b68={'type':'format','content':Bt(_0x50ac57,_0x439648)};break;case'listStart':_0x439648='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1e8b68={'type':'format','content':Bt(_0x50ac57,_0x439648,_0x25f3ed['commandParams'][0x0]['startIndex'])};}return _0x1e8b68;}_getSuggestionBlocksForListStyle(){const _0x235585=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f29f1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5f29f1[0x0]?.['is']('element','listItem')&&_0x5f29f1['unshift'](..._0x235585['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5f29f1[_0x5f29f1['length']-0x1]?.['is']('element','listItem')&&_0x5f29f1['push'](..._0x235585['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5f29f1=[...new Set(_0x5f29f1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5f29f1=_0x5f29f1['filter'](_0x4d6252=>_0x4d6252['is']('element','listItem'))),_0x5f29f1;}_getSuggestionBlocks(_0x16e50a){const _0x51d16e=this['editor']['plugins']['get']('LegacyListUtils');let _0x30aa85=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x16e50a)['map'](_0x18db44=>{const _0x2a6cc6=this['editor']['model']['createPositionAt'](_0x18db44,0x0);return[..._0x51d16e['getSiblingNodes'](_0x2a6cc6,'backward'),..._0x51d16e['getSiblingNodes'](_0x2a6cc6,'forward')];})['flat']();return _0x30aa85=[...new Set(_0x30aa85)],_0x30aa85;}_getTranslationKeyForListStyle(_0x41d27e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41d27e)||'default')['toUpperCase']()+'_LIST_'+_0x41d27e['toUpperCase']()['replace'](/-/g,'_');}},Re=class extends _0x27de82{afterInit(){const _0xf652df=this['editor'];if(!_0xf652df['plugins']['has']('MediaEmbedEditing'))return;const _0x5ea895=_0xf652df['plugins']['get']('TrackChangesEditing'),_0x2abf5e=_0xf652df['locale'];_0x5ea895['enableCommand']('mediaEmbed'),_0x5ea895['descriptionFactory']['registerElementLabel']('media',_0x24961c=>Bt(_0x2abf5e,'ELEMENT_MEDIA',_0x24961c)),_0xf652df['plugins']['has']('MediaEmbedResizeEditing')&&(_0x5ea895['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x5ea895['descriptionFactory']['registerDescriptionCallback'](_0x22851b=>{if('attribute'!=_0x22851b['type'])return;const {data:_0x12dde1}=_0x22851b;if(!_0x12dde1||'resizedWidth'!=_0x12dde1['key'])return;const _0x28a485=_0x22851b['getContainedElement']();if(!_0x28a485||!_0x28a485['is']('element','media'))return;const _0x1b3ac3=Bt(_0x2abf5e,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Bt(_0x2abf5e,'*Set\x20format:*\x20%0',_0x1b3ac3)};}));}},Ne=class extends _0x27de82{afterInit(){const _0x12f26e=this['editor'];if(!_0x12f26e['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x596be3=_0x12f26e['plugins']['get']('TrackChangesEditing'),_0x3273d3=_0x12f26e['locale'],_0x4bfab2=_0x12f26e['plugins']['get']('MediaEmbedStyleEditing'),_0x73a1eb={};for(const _0x126fde of _0x4bfab2['normalizedStyles'])_0x73a1eb[_0x126fde['name']]=_0x126fde['title']['toLowerCase']();const _0x5a1c16=_0x4bfab2['normalizedStyles']['find'](_0x44155e=>_0x44155e['isDefault'])?.['name'];_0x596be3['enableCommand']('mediaStyle',(_0x202dbd,_0x2faf1d)=>{const _0x184055=_0x12f26e['plugins']['get']('Users')['me'],_0x3da7f9=_0x12f26e['commands']['get']('mediaStyle'),_0x3979ac=function(_0x76da24){const _0x283446=_0x76da24['model']['document']['selection']['getSelectedElement']();return _0x283446&&_0x283446['is']('element','media')?_0x283446:null;}(_0x12f26e);if(!_0x3979ac)return;const _0x5e7187=_0x12f26e['model']['createRangeOn'](_0x3979ac);let _0x281dd8=_0x3da7f9['value'];if(_0x281dd8==_0x2faf1d['value'])return;const _0x3f6135={'commandName':'mediaStyle','commandParams':[_0x2faf1d],'formatGroupId':_0x34e203()};_0x12f26e['model']['change'](()=>{_0x596be3['getSuggestions']()['filter'](_0xf71183=>_0xf71183['isInContent']&&_0x184055==_0xf71183['author']&&'formatBlock'==_0xf71183['type']&&'mediaStylePostApply'==_0xf71183['subType']&&_0xf71183['getFirstRange']()['isEqual'](_0x5e7187))['forEach'](_0x2a518a=>_0x596be3['discardSuggestion'](_0x2a518a['head'])),_0x3da7f9['refresh'](),_0x281dd8=_0x3da7f9['value'],_0x281dd8!=_0x2faf1d['value']&&_0x596be3['markBlockFormat'](_0x3979ac,{..._0x3f6135,'commandReversedParams':[{'value':'string'==typeof _0x281dd8?_0x281dd8:null}]},[],'mediaStylePostApply');});}),_0x596be3['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x596be3['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x3ab352,_0x389548)=>{_0x596be3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ab352,{'commandName':_0x389548['commandName'],'commandParams':_0x389548['commandReversedParams']});}),_0x596be3['descriptionFactory']['registerDescriptionCallback'](_0x5cab17=>{if('formatBlock'!=_0x5cab17['type'])return;const {data:_0x3bab34}=_0x5cab17;if(!_0x3bab34||'mediaStyle'!=_0x3bab34['commandName'])return;const _0x4df54a=_0x3bab34['commandParams'][0x0]['value']||_0x5a1c16;if(!_0x4df54a)return;const _0xdd3ae=_0x73a1eb[_0x4df54a]||_0x4df54a;return{'type':'format','content':Bt(_0x3273d3,'*Format:*\x20%0',_0xdd3ae)};});}},ye=class extends _0x27de82{afterInit(){const _0x59c9f7=this['editor'];_0x59c9f7['plugins']['has']('MentionEditing')&&_0x59c9f7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Se=class extends _0x27de82{afterInit(){const _0x4fea8d=this['editor'];if(!_0x4fea8d['plugins']['has']('MergeFieldsEditing'))return;const _0x543b3f=_0x4fea8d['plugins']['get']('TrackChangesEditing'),_0x1f0b44=_0x4fea8d['locale'];_0x543b3f['enableCommand']('insertMergeField'),_0x543b3f['enableCommand']('insertMergeFieldBlock'),_0x543b3f['enableCommand']('insertMergeFieldImage'),_0x543b3f['descriptionFactory']['registerElementLabel']('mergeField',_0x329806=>Bt(_0x1f0b44,'ELEMENT_MERGE_FIELD',_0x329806)),_0x543b3f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4023f1=>Bt(_0x1f0b44,'ELEMENT_MERGE_FIELD',_0x4023f1)),_0x543b3f['descriptionFactory']['registerDescriptionCallback'](_0x596dbd=>{if('insertion'!=_0x596dbd['type']&&'deletion'!=_0x596dbd['type'])return;const _0x547817=_0x596dbd['getContainedElement']();if(null==_0x547817)return;const _0x41aa6b=_0x4fea8d['plugins']['get']('MergeFieldsEditing');let _0x11838;switch(_0x41aa6b['getMergeFieldType'](_0x547817)){case null:return;case'image':{const _0x465698=_0x41aa6b['unwrapAffixes'](_0x547817['getAttribute']('src'));_0x11838=_0x41aa6b['getLabel'](_0x465698)||_0x465698;break;}default:{const _0x57cbd1=_0x547817['getAttribute']('id');_0x11838=_0x41aa6b['getLabel'](_0x57cbd1)||_0x57cbd1;break;}}return'insertion'==_0x596dbd['type']?{'type':'insertion','content':Bt(_0x1f0b44,'*Insert:*\x20%0','\x22'+_0x11838+'\x22\x20'+Bt(_0x1f0b44,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Bt(_0x1f0b44,'*Remove:*\x20%0','\x22'+_0x11838+'\x22\x20'+Bt(_0x1f0b44,'ELEMENT_MERGE_FIELD'))};});}},Me=class extends _0x27de82{afterInit(){const _0x476b02=this['editor'],_0x28d388=_0x476b02['plugins']['get']('TrackChangesEditing');_0x476b02['plugins']['has']('MultiLevelList')&&(_0x28d388['enableDefaultAttributesIntegration']('multiLevelList'),_0x28d388['descriptionFactory']['registerDescriptionCallback'](_0x30c015=>this['handleDescriptions'](_0x30c015)));}handleDescriptions(_0x299b49){const _0x260596=this['editor']['locale'],{data:_0x3ee4e2}=_0x299b49,_0x25e1ac={'type':'format','content':''};if(_0x3ee4e2&&'listMarkerStyle'==_0x3ee4e2['key']){if(!_0x3ee4e2['oldValue'])return{'type':'format','content':Bt(_0x260596,'*Set\x20format:*\x20%0',Bt(_0x260596,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ee4e2['newValue']+')'};if(!_0x3ee4e2['newValue']){let _0x353338=_0x299b49['head'];for(;_0x353338;){if(_0x353338['data']&&'listType'==_0x353338['data']['key']&&_0x353338['data']['newValue'])return _0x25e1ac;_0x353338=_0x353338['next'];}return{'type':'format','content':Bt(_0x260596,'*Remove\x20format:*\x20%0',Bt(_0x260596,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ee4e2['oldValue']+')'};}}}},Oe=class extends _0x27de82{afterInit(){const _0x26472f=this['editor'];if(!_0x26472f['plugins']['has']('PageBreakEditing'))return;_0x26472f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d314d=_0x26472f['plugins']['get']('TrackChangesEditing'),_0x4ceff8=_0x26472f['locale'];_0x3d314d['descriptionFactory']['registerElementLabel']('pageBreak',_0x31805f=>Bt(_0x4ceff8,'ELEMENT_PAGE_BREAK',_0x31805f));}},we=class extends _0x27de82{afterInit(){const _0x4d0a93=this['editor'];if(!_0x4d0a93['plugins']['has']('Paragraph'))return;const _0xc4ea8f=_0x4d0a93['locale'],_0x31283d=_0x4d0a93['plugins']['get']('TrackChangesEditing');_0x31283d['descriptionFactory']['registerElementLabel']('paragraph',_0x14503b=>Bt(_0xc4ea8f,'ELEMENT_PARAGRAPH',_0x14503b)),_0x31283d['enableDefaultAttributesIntegration']('paragraph'),_0x31283d['enableCommand']('insertParagraph');const _0xc578aa=_0x31283d['descriptionFactory'];_0xc578aa['registerDescriptionCallback'](_0x1c76cb=>{if('insertion'!==_0x1c76cb['type'])return;const {start:_0x33ae2b,end:_0x18f93e}=_0x1c76cb['getFirstRange']();if(!_0x33ae2b['isTouching'](_0x18f93e)||!_0x33ae2b['nodeAfter'])return;const _0x183dde=_0x4d0a93['model']['schema'],_0x3bab8f=_0x33ae2b['nodeAfter'];return _0x183dde['isBlock'](_0x3bab8f)&&!_0x183dde['isLimit'](_0x3bab8f)&&_0x183dde['checkChild'](_0x3bab8f,'$text')?{'type':'insertion','content':Bt(_0xc4ea8f,'*Insert:*\x20%0',_0xc578aa['getItemLabel'](_0x3bab8f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x20c341=this['editor'],_0xe81cea=_0x20c341['locale'];_0x20c341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b55a5=>{if('formatBlock'!=_0x1b55a5['type'])return;const {data:_0x44938a}=_0x1b55a5;return _0x44938a&&'paragraph'==_0x44938a['commandName']?{'type':'format','content':Bt(_0xe81cea,'*Change\x20to:*\x20%0',Bt(_0xe81cea,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Be=class extends _0x27de82{afterInit(){const _0x22f637=this['editor'];_0x22f637['commands']['get']('replaceSource')&&_0x22f637['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Fe=class extends _0x27de82{afterInit(){const _0x5da323=this['editor'];_0x5da323['plugins']['has']('RemoveFormatEditing')&&(_0x5da323['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x9b8b43=this['editor'];_0x9b8b43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ac8fe=>{if('formatBlock'!=_0x1ac8fe['type']&&'formatInline'!=_0x1ac8fe['type'])return;const {data:_0x3cfe0b}=_0x1ac8fe;return _0x3cfe0b&&'removeFormat'==_0x3cfe0b['commandName']?{'type':'format','content':Bt(_0x9b8b43['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},ve=class extends _0x27de82{afterInit(){const _0x496ded=this['editor'];if(!_0x496ded['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b1c9b=_0x496ded['plugins']['get']('TrackChangesEditing');_0x2b1c9b['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b1c9b['enableCommand']('goToNextRestrictedEditingException');const _0x38a412=_0x496ded['plugins']['get']('RestrictedEditingModeEditing');_0x38a412['enableCommand']('trackChanges'),_0x38a412['enableCommand']('acceptSuggestion'),_0x38a412['enableCommand']('discardSuggestion'),_0x38a412['enableCommand']('acceptAllSuggestions'),_0x38a412['enableCommand']('discardAllSuggestions'),_0x38a412['enableCommand']('acceptSelectedSuggestions'),_0x38a412['enableCommand']('discardSelectedSuggestions');}},De=class extends _0x27de82{afterInit(){const _0x4cc3e9=this['editor'];if(!_0x4cc3e9['plugins']['has']('ShiftEnter'))return;const _0x21a838=_0x4cc3e9['plugins']['get']('TrackChangesEditing');_0x21a838['enableCommand']('shiftEnter'),_0x21a838['descriptionFactory']['registerElementLabel']('softBreak',_0x517860=>Bt(_0x4cc3e9['locale'],'ELEMENT_LINE_BREAK',_0x517860));}};function Ue(_0x57b775,_0x5dbc07,_0x4d8e09){const _0x4ac413=[];for(const _0x74af1d of _0x5dbc07['getItems']())_0x74af1d['hasAttribute'](_0x57b775)&&_0x4ac413['push'](_0x4d8e09['createRangeOn'](_0x74af1d));return _0x4ac413;}var Pe=class extends _0x27de82{afterInit(){const _0x13f47a=this['editor'],_0x40eae9=_0x13f47a['plugins']['get']('TrackChangesEditing');_0x13f47a['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x40eae9['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5e4471=this['editor'],_0x1cfdd8=_0x5e4471['model'],_0x282916=_0x5e4471['locale'],_0x361528=_0x5e4471['plugins']['get']('TrackChangesEditing'),_0xea1e67='restrictedEditingException',_0x2fd203=_0x5e4471['commands']['get'](_0xea1e67);_0x361528['enableCommand'](_0xea1e67,(_0x1db2c5,_0x56402d={})=>{const _0x4aa0fd=_0x1cfdd8['document']['selection'];if(_0x4aa0fd['isCollapsed'])return void _0x1db2c5(_0x56402d);const _0x4b5b1f=void 0x0!==_0x56402d['forceValue']?_0x56402d['forceValue']:!_0x2fd203['value'];_0x1cfdd8['change'](()=>{const _0xc19eaa=Array['from'](_0x4aa0fd['getRanges']());for(const _0x510542 of _0xc19eaa){const _0x2dc00b=_0x4b5b1f?[_0x510542]:Ue(_0xea1e67,_0x510542,_0x1cfdd8);for(const _0x16a7e4 of _0x2dc00b)_0x361528['markInlineFormat'](_0x16a7e4,{'commandName':_0xea1e67,'commandParams':[{'forceValue':_0x4b5b1f}]});}});}),_0x361528['descriptionFactory']['registerDescriptionCallback'](_0xfa39b7=>{if('formatBlock'!=_0xfa39b7['type']&&'formatInline'!=_0xfa39b7['type'])return;const {data:_0x44a813}=_0xfa39b7;return _0x44a813&&_0x44a813['commandName']==_0xea1e67?_0x44a813['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x282916,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x282916,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x543194=this['editor'],_0x5b7230=_0x543194['locale'],_0x453981=_0x543194['plugins']['get']('TrackChangesEditing'),_0x5ccdfb='restrictedEditingExceptionBlock',_0x294424=this['editor']['commands']['get'](_0x5ccdfb);_0x453981['enableCommand'](_0x5ccdfb,(_0x2b5659,_0x366cfb={})=>{const _0x4f4181=this['editor']['model']['document']['selection'],_0x9cac02=_0x366cfb&&void 0x0!==_0x366cfb['forceValue']?_0x366cfb['forceValue']:!_0x294424['value'];let _0x2389d8=[];if(_0x9cac02){const _0x21f701=Array['from'](_0x4f4181['getSelectedBlocks']())['filter'](_0x163465=>function(_0x3b5404){return!!_0x3b5404['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x163465)||function(_0x5ba043,_0x4ad987){const _0x4f6c6a=_0x4ad987['createContext'](_0x5ba043['parent']);return!!_0x4ad987['checkChild'](_0x4f6c6a,'restrictedEditingException')&&!!_0x4ad987['checkChild'](_0x4f6c6a['push']('restrictedEditingException'),_0x5ba043);}(_0x163465,this['editor']['model']['schema']));_0x2389d8=Rt(_0x21f701,_0x543194['model']);}else{const _0x59ddcd=Array['from'](_0x4f4181['getSelectedBlocks']())['map'](_0xea96a8=>function(_0x341ad6){let _0x38657c=_0x341ad6;for(;_0x38657c['parent'];){if('restrictedEditingException'==_0x38657c['parent']['name'])return _0x38657c;_0x38657c=_0x38657c['parent'];}return null;}(_0xea96a8))['filter'](_0x39ed4e=>!!_0x39ed4e);_0x2389d8=Rt(_0x59ddcd,_0x543194['model']);}_0x543194['model']['change'](()=>{for(const _0x4f71e6 of _0x2389d8)_0x453981['markBlockFormat'](_0x4f71e6,{'commandName':_0x5ccdfb,'commandParams':[{'forceValue':_0x9cac02}]});});}),_0x453981['descriptionFactory']['registerDescriptionCallback'](_0x3e879d=>{const {data:_0x2a6bd6}=_0x3e879d;if(_0x2a6bd6&&_0x2a6bd6['commandName']==_0x5ccdfb)return _0x2a6bd6['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x5b7230,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x5b7230,'FORMAT_RESTRICTED_DISABLED')};});}},xe=class extends _0x27de82{afterInit(){const _0x528ff0=this['editor'];_0x528ff0['plugins']['has']('Style')&&_0x528ff0['plugins']['has']('DataSchema')&&(_0x528ff0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x461e60=this['editor'],_0x2c0cf6=_0x461e60['locale'];_0x461e60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbe6c13=>{if('formatBlock'!=_0xbe6c13['type']&&'formatInline'!=_0xbe6c13['type'])return;const {data:_0x25ca51}=_0xbe6c13;return _0x25ca51&&'style'===_0x25ca51['commandName']?_0x25ca51['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x2c0cf6,'*Set\x20format:*\x20%0',_0x25ca51['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Bt(_0x2c0cf6,'*Remove\x20format:*\x20%0',_0x25ca51['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ge=class extends _0x27de82{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x2c3b84){super(_0x2c3b84),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x33323c=this['editor'],_0x50dc9f=_0x33323c['model']['document']['selection'];if(!_0x33323c['plugins']['has']('TableEditing'))return;const _0xf36f13=_0x33323c['locale'],_0x4a6515=_0x33323c['plugins']['get']('TrackChangesEditing'),_0x25c744=_0x33323c['plugins']['get']('TableUtils');_0x4a6515['descriptionFactory']['registerElementLabel']('table',_0x62b97b=>Bt(_0xf36f13,'ELEMENT_TABLE',_0x62b97b)),this['_setupColumnsRowsFixing'](),_0x4a6515['enableCommand']('insertTable'),_0x4a6515['enableCommand']('selectTableRow'),_0x4a6515['enableCommand']('selectTableColumn');for(const _0x4a1823 of['insertTableRowAbove','insertTableRowBelow']){const _0x2acbea=_0x33323c['commands']['get'](_0x4a1823);_0x4a6515['enableCommand'](_0x4a1823,_0x26e460=>{_0x33323c['model']['change'](_0x57dcb0=>{_0x26e460();const _0xba2c1a='above'===_0x2acbea['order'],_0x38c075=_0x25c744['getSelectionAffectedTableCells'](_0x50dc9f),_0x4bacd2=_0x25c744['getRowIndexes'](_0x38c075),_0x4f140a=_0xba2c1a?_0x4bacd2['first']-0x1:_0x4bacd2['last']+0x1,_0x176aab=_0x38c075[0x0]['findAncestor']('table'),_0x1c94bd=_0x25c744['createTableWalker'](_0x176aab,{'startRow':_0x4f140a,'endRow':_0x4f140a}),_0x3601f8=Array['from'](_0x1c94bd)['map'](_0x2e9ac4=>_0x57dcb0['createRangeOn'](_0x2e9ac4['cell']));_0x4a6515['markMultiRangeInsertion'](_0x3601f8,'tableRow');});});}for(const _0x1b3eb8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c7d9d=_0x33323c['commands']['get'](_0x1b3eb8);_0x4a6515['enableCommand'](_0x1b3eb8,_0x106f98=>{_0x33323c['model']['change'](_0x520914=>{_0x106f98();const _0x26afe5='left'===_0x3c7d9d['order'],_0x2dc749=_0x25c744['getSelectionAffectedTableCells'](_0x50dc9f),_0x49e52b=_0x25c744['getColumnIndexes'](_0x2dc749),_0x1fb346=_0x26afe5?_0x49e52b['first']-0x1:_0x49e52b['last']+0x1,_0x2c42f4=_0x2dc749[0x0]['findAncestor']('table'),_0x1eb576=_0x25c744['createTableWalker'](_0x2c42f4,{'startRow':0x0,'column':_0x1fb346,'includeAllSlots':!0x1}),_0x557344=Array['from'](_0x1eb576)['map'](_0x5716f2=>_0x520914['createRangeOn'](_0x5716f2['cell']));_0x4a6515['markMultiRangeInsertion'](_0x557344,'tableColumn');});});}for(const _0x19fdfd of['removeTableRow','removeTableColumn']){const _0x1a70ee=_0x19fdfd['substr'](0xb),_0x53334f=_0x1a70ee['toLowerCase'](),_0x444d57=_0x53334f['substr'](0x0,0x3)+'span',_0x60ad47='table'+_0x1a70ee,_0x3d839b='min'+_0x1a70ee,_0x4fe72a='max'+_0x1a70ee;_0x4a6515['enableCommand'](_0x19fdfd,()=>{_0x33323c['model']['change'](_0x2b5aa7=>{const _0x51567b=_0x25c744['getSelectionAffectedTableCells'](_0x50dc9f),_0x25e3b3=_0x51567b[0x0]['findAncestor']('table');let _0x2788ea;if('removeTableRow'==_0x19fdfd){const _0x452cb8=_0x25c744['getRowIndexes'](_0x51567b);_0x2788ea={'startRow':_0x452cb8['first'],'endRow':_0x452cb8['last'],'includeAllSlots':!0x0};}else{const _0x4b29bd=_0x25c744['getColumnIndexes'](_0x51567b);_0x2788ea={'startColumn':_0x4b29bd['first'],'endColumn':_0x4b29bd['last'],'includeAllSlots':!0x0};}const _0x21b26b=_0x25c744['createTableWalker'](_0x25e3b3,_0x2788ea),_0x1d7bce=Array['from'](_0x21b26b)['map'](({cell:_0x216b82})=>_0x216b82),_0x5e0e51=He(_0x1d7bce['filter'](_0x5d2c6c=>_0x5d2c6c['hasAttribute'](_0x444d57))),_0x273d5e=He(_0x1d7bce['filter'](_0xf37f00=>!_0xf37f00['hasAttribute'](_0x444d57)))['map'](_0x2191e5=>_0x2b5aa7['createRangeOn'](_0x2191e5)),_0x3a8f1b=_0x4a6515['markMultiRangeDeletion'](_0x273d5e,_0x60ad47);if(_0x3a8f1b&&('tableRow'==_0x3a8f1b['subType']||'tableColumn'==_0x3a8f1b['subType'])){const _0xf517f8=this['_getSuggestionCoords'](_0x3a8f1b);for(const _0x188c16 of _0x5e0e51){const _0x2192d2=_0x2b5aa7['createRangeOn'](_0x188c16),_0x2696f7=_0x25c744['getCellLocation'](_0x188c16),_0x4e7ea6=_0x188c16['getAttribute'](_0x444d57)-0x1,_0x3a4cc0=_0xf517f8[_0x3d839b],_0xf12157=_0xf517f8[_0x4fe72a];_0x3a4cc0<=_0x2696f7[_0x53334f]&&_0x2696f7[_0x53334f]+_0x4e7ea6<=_0xf12157&&_0x3a8f1b['addRange'](_0x2192d2);}}});});}function _0x3abccd(_0x1f3b77){const _0x5a6a57=Array['from'](_0x50dc9f['getRanges']())['map'](_0x120580=>ct['fromRange'](_0x120580));_0x33323c['model']['change'](_0x25af85=>{const _0x2e8c4e=_0x25af85['batch'];_0x1f3b77=_0x1f3b77['filter'](_0x1e0d55=>'$graveyard'!=_0x1e0d55['root']['rootName']),_0x25af85['setSelection'](_0x1f3b77),_0x33323c['commands']['get']('removeTableRow')['refresh'](),_0x33323c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x33323c['model']['enqueueChange'](()=>{_0x33323c['model']['enqueueChange'](_0x2e8c4e,_0x2246a7=>{const _0x355882=_0x5a6a57['filter'](_0x2d0a51=>'$graveyard'!=_0x2d0a51['root']['rootName']);_0x355882['length']>0x0&&_0x2246a7['setSelection'](_0x355882);for(const _0x3b0179 of _0x5a6a57)_0x3b0179['detach']();});});});}function _0x59a2fe(_0x31e8e2){_0x33323c['model']['change'](_0x221931=>{const _0x175706=Array['from'](_0x50dc9f['getRanges']())['map'](_0x16ff3c=>ct['fromRange'](_0x16ff3c)),_0x1f16c9=[];for(const _0x2294b8 of _0x31e8e2)for(const _0x3d6c8c of _0x2294b8['getItems']({'shallow':!0x0}))_0x1f16c9['push'](_0x3d6c8c);for(const _0x3d1dad of _0x1f16c9)'$graveyard'!=_0x3d1dad['root']['rootName']&&(_0x221931['setSelection'](_0x221931['createPositionAt'](_0x3d1dad,0x0)),_0x33323c['commands']['get']('removeTableColumn')['refresh'](),_0x33323c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x34b56a=_0x175706['filter'](_0x299ba0=>'$graveyard'!=_0x299ba0['root']['rootName']);_0x34b56a['length']>0x0&&_0x221931['setSelection'](_0x34b56a);for(const _0x22378d of _0x175706)_0x22378d['detach']();});}function _0x43c29b(_0x643661,_0x1558eb){return _0x1558eb['every'](_0x446c63=>_0x643661['some'](_0x5a9bdd=>_0x5a9bdd['end']['isEqual'](_0x446c63['start'])||_0x446c63['end']['isEqual'](_0x5a9bdd['start'])));}function _0x257267(_0x153174,_0x813fa6){return!_0x153174['some'](_0x11dc77=>_0x813fa6['some'](_0x1b878d=>_0x11dc77['isIntersecting'](_0x1b878d)))&&_0x153174['some'](_0x2f4869=>_0x813fa6['some'](_0x15be69=>_0x2f4869['end']['isTouching'](_0x15be69['start'])));}_0x4a6515['descriptionFactory']['registerDescriptionCallback'](_0x46bd91=>{if('insertion'!=_0x46bd91['type']&&'deletion'!=_0x46bd91['type'])return;const _0x47f44e=_0x46bd91['getContainedElement']();if(null!=_0x47f44e&&_0x47f44e['is']('element','table')){if('insertion'==_0x46bd91['type']){const _0x347071=_0x46bd91['getItems']()['filter'](_0x4e4201=>_0x4e4201['is']('$textProxy'))['map'](_0x489f64=>_0x489f64['data']);if(_0x347071['length'])return{'type':'insertion','content':Bt(_0xf36f13,'*Insert:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x347071['join']('\x20')+'\x22'))};}if('deletion'==_0x46bd91['type']){const _0x520df2=_0x46bd91['getItems']()['filter'](_0x32501e=>_0x32501e['is']('$textProxy'))['map'](_0x5514f3=>_0x5514f3['data']);if(_0x520df2['length'])return{'type':'deletion','content':Bt(_0xf36f13,'*Remove:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x520df2['join']('\x20')+'\x22'))};}}}),_0x4a6515['descriptionFactory']['registerDescriptionCallback'](_0x5033f5=>{if('tableRow'==_0x5033f5['subType']){const _0x5504dc=_0x5033f5['getItems']()['filter'](_0x437c20=>_0x437c20['is']('$textProxy'))['map'](_0x5c21bb=>_0x5c21bb['data']),_0x25f8be=this['_getSuggestionCoords'](_0x5033f5),_0xf661c7=_0x25f8be['maxRow']-_0x25f8be['minRow']+0x1;if('insertion'==_0x5033f5['type'])return _0x5504dc['length']?{'type':'insertion','content':Bt(_0xf36f13,'*Insert:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf661c7,'\x22'+_0x5504dc['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0xf36f13,'*Insert:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_ROW',_0xf661c7))};if('deletion'==_0x5033f5['type'])return _0x5504dc['length']?{'type':'deletion','content':Bt(_0xf36f13,'*Remove:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf661c7,'\x22'+_0x5504dc['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0xf36f13,'*Remove:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_ROW',_0xf661c7))};}if('tableColumn'==_0x5033f5['subType']){const _0x2b3819=_0x5033f5['getItems']()['filter'](_0x1802b4=>_0x1802b4['is']('$textProxy'))['map'](_0x365679=>_0x365679['data']),_0x20f8b1=this['_getSuggestionCoords'](_0x5033f5),_0x40fdb8=_0x20f8b1['maxColumn']-_0x20f8b1['minColumn']+0x1;if('insertion'==_0x5033f5['type'])return _0x2b3819['length']?{'type':'insertion','content':Bt(_0xf36f13,'*Insert:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40fdb8,'\x22'+_0x2b3819['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0xf36f13,'*Insert:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_COLUMN',_0x40fdb8))};if('deletion'==_0x5033f5['type'])return _0x2b3819['length']?{'type':'deletion','content':Bt(_0xf36f13,'*Remove:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40fdb8,'\x22'+_0x2b3819['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0xf36f13,'*Remove:*\x20%0',Bt(_0xf36f13,'ELEMENT_TABLE_COLUMN',_0x40fdb8))};}}),_0x4a6515['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3abccd),_0x4a6515['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3abccd),_0x4a6515['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x59a2fe),_0x4a6515['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x59a2fe),_0x4a6515['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x43c29b),_0x4a6515['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x43c29b),_0x4a6515['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x257267),_0x4a6515['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x257267);}_acceptFormatSuggestionCallbackFactory(){const _0x21d5dd=this['editor'],_0x3565e9=_0x21d5dd['model']['document']['selection'];return(_0x3f32d8,_0x128e57)=>{_0x21d5dd['model']['change'](_0x5e30fe=>{const {commandName:_0x23d841,commandParams:_0x5ef89b}=_0x128e57;let _0x476c62=_0x3f32d8[0x0]['end']['nodeBefore'];_0x5ef89b&&_0x5ef89b[0x0]&&!0x1===_0x5ef89b[0x0]['forceValue']&&(_0x476c62=_0x3f32d8[0x0]['start']['nodeAfter']);const _0x3c9941=_0x5e30fe['createRangeIn'](_0x476c62);if('$graveyard'==_0x3c9941['root']['rootName'])return;const _0x212057=Array['from'](_0x3565e9['getRanges']())['map'](_0x3f4e2a=>ct['fromRange'](_0x3f4e2a));_0x5e30fe['setSelection'](_0x3c9941),_0x21d5dd['commands']['get'](_0x23d841)['refresh'](),_0x5ef89b['push']({'forceDefaultExecution':!0x0}),_0x21d5dd['execute'](_0x23d841,..._0x5ef89b);const _0x545fd8=_0x212057['filter'](_0x3ebddb=>'$graveyard'!=_0x3ebddb['root']['rootName']);_0x545fd8['length']>0x0&&_0x5e30fe['setSelection'](_0x545fd8);for(const _0xd45ead of _0x212057)_0xd45ead['detach']();});};}_getCoordsForCells(_0x5285eb){const _0xae3e8f=this['editor']['plugins']['get']('TableUtils');let _0x227974=Number['MAX_SAFE_INTEGER'],_0x51863e=Number['MIN_SAFE_INTEGER'],_0x1e9f27=Number['MAX_SAFE_INTEGER'],_0x8a92dc=Number['MIN_SAFE_INTEGER'];for(const _0x51e0e2 of _0x5285eb){if('$graveyard'==_0x51e0e2['root']['rootName'])continue;const {row:_0x307aa8,column:_0x145920}=_0xae3e8f['getCellLocation'](_0x51e0e2),_0x5be144=_0x51e0e2['hasAttribute']('rowspan')?_0x51e0e2['getAttribute']('rowspan')-0x1:0x0,_0x283b0f=_0x51e0e2['hasAttribute']('colspan')?_0x51e0e2['getAttribute']('colspan')-0x1:0x0;_0x227974=_0x307aa8<_0x227974?_0x307aa8:_0x227974,_0x51863e=_0x307aa8+_0x5be144>_0x51863e?_0x307aa8+_0x5be144:_0x51863e,_0x1e9f27=_0x145920<_0x1e9f27?_0x145920:_0x1e9f27,_0x8a92dc=_0x145920+_0x283b0f>_0x8a92dc?_0x145920+_0x283b0f:_0x8a92dc;}return{'minRow':_0x227974,'maxRow':_0x51863e,'minColumn':_0x1e9f27,'maxColumn':_0x8a92dc};}_setupColumnsRowsFixing(){const _0x26de68=this['editor'],_0x562802=_0x26de68['plugins']['get']('TrackChangesEditing'),_0x42d618=_0x26de68['plugins']['get']('TableUtils');_0x26de68['model']['document']['on']('change:data',()=>{const _0x4eae48=Array['from'](_0x26de68['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x365149,data:_0x2d01cc}of _0x4eae48){const {group:_0xfe96c2,id:_0x500195,subType:_0x4a4de3}=it(_0x365149);if('suggestion'!=_0xfe96c2)continue;if(null!=_0x2d01cc['oldRange'])continue;const _0x4a32e5=_0x562802['getSuggestion'](_0x500195);this['_tablePostFixingSubtypes']['includes'](_0x4a4de3)&&this['_tableSuggestions']['add'](_0x4a32e5);}},{'priority':'low'});const _0x163013=(_0x3b77f8,_0x49b866)=>{let _0x2d722f=!0x1;const _0x3f1599=_0x49b866['createRangeOn'](_0x3b77f8),_0x57afc3=_0x3b77f8['findAncestor']('table'),_0x56d6cc=_0x42d618['getCellLocation'](_0x3b77f8);for(const _0x175ef4 of this['_tableSuggestions']){const _0x270e78=_0x175ef4['subType'],_0x135892=_0x270e78['startsWith']('tablePaste'),_0x598617=_0x270e78['substr'](_0x135892?0xa:0x5),_0x4e3290=_0x598617['toLowerCase'](),_0x4bf60a=_0x4e3290['substr'](0x0,0x3)+'span',_0x338cf7='min'+_0x598617,_0xfa974b='max'+_0x598617;if(!_0x175ef4['isInContent'])continue;if(_0x57afc3!=_0x175ef4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x175ef4['isIntersectingWithRange'](_0x3f1599))continue;const _0x594dc7=_0x3b77f8['hasAttribute'](_0x4bf60a)?_0x3b77f8['getAttribute'](_0x4bf60a)-0x1:0x0,_0x42c70b=this['_getSuggestionCoords'](_0x175ef4),_0x5635ca=_0x42c70b[_0x338cf7],_0x3a3d71=_0x42c70b[_0xfa974b];_0x5635ca<=_0x56d6cc[_0x4e3290]&&_0x56d6cc[_0x4e3290]+_0x594dc7<=_0x3a3d71&&(_0x175ef4['addRange'](_0x3f1599),_0x2d722f=!0x0);}return _0x2d722f;};_0x26de68['model']['document']['registerPostFixer'](_0x38d291=>{let _0x53891b=!0x1;for(const _0x41c117 of _0x26de68['model']['document']['differ']['getChanges']())if('insert'==_0x41c117['type']){if('tableRow'==_0x41c117['name']){for(const _0x4d5600 of _0x41c117['position']['nodeAfter']['getChildren']())_0x53891b=_0x53891b||_0x163013(_0x4d5600,_0x38d291);}else'tableCell'==_0x41c117['name']&&(_0x53891b=_0x53891b||_0x163013(_0x41c117['position']['nodeAfter'],_0x38d291));}return _0x53891b;});}_getSuggestionCoords(_0x3dbf98){return this['_getCoordsForCells'](_0x3dbf98['getRanges']()['map'](_0x58cd6d=>_0x58cd6d['start']['nodeAfter']));}};function He(_0x387eea){return Array['from'](new Set(_0x387eea)['values']());}var $e=class extends _0x27de82{static get requires(){return[Ge];}afterInit(){const _0x55885d=this['editor'],_0x2becfe=_0x55885d['model']['document']['selection'],_0x2d7f34=_0x55885d['locale'];if(!_0x55885d['plugins']['has']('TableEditing'))return;const _0x15eb99=_0x55885d['plugins']['get']('TrackChangesEditing'),_0x467bcf=_0x55885d['plugins']['get']('TableUtils'),_0x7479=_0x55885d['plugins']['get'](Ge);_0x7479['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x15eb99['enableCommand']('mergeTableCells',()=>{const _0x36694e=_0x467bcf['getSelectionAffectedTableCells'](_0x55885d['model']['document']['selection']);_0x55885d['model']['change'](()=>{_0x15eb99['markMultiRangeBlockFormat'](_0x36694e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55885d['commands']['get']('mergeTableCells')['on']('execute',(_0x4ce5f8,_0x2379d5)=>{_0x55885d['commands']['get']('trackChanges')['value']&&(_0x2379d5['length']>0x0&&_0x2379d5[_0x2379d5['length']-0x1]&&_0x2379d5[_0x2379d5['length']-0x1]['forceDefaultExecution']||_0x15eb99['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4ce5f8['stop']());},{'priority':'highest'});for(const _0x3ec6a5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x139ef8=_0x55885d['commands']['get'](_0x3ec6a5);_0x15eb99['enableCommand'](_0x3ec6a5,()=>{const _0x5b72e8=_0x55885d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50c32e=>_0x50c32e['is']('element','tableCell')),_0xcdd2a5=_0x139ef8['value'];_0x55885d['model']['change'](()=>{_0x15eb99['markMultiRangeBlockFormat']([_0x5b72e8,_0xcdd2a5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1767f5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5aa463=_0x55885d['commands']['get'](_0x1767f5);_0x15eb99['enableCommand'](_0x1767f5,()=>{const _0x2a2dc8=_0x467bcf['getSelectionAffectedTableCells'](_0x55885d['model']['document']['selection']),_0x3c0787=_0x2a2dc8[0x0]['findAncestor']('table'),_0x498655=new Set();for(const _0x2227d5 of _0x2a2dc8){const {column:_0x493696,row:_0x4227a7}=_0x467bcf['getCellLocation'](_0x2227d5),_0x30b5fb='horizontally'==_0x5aa463['direction']?_0x467bcf['createTableWalker'](_0x3c0787,{'startRow':_0x4227a7,'endRow':_0x4227a7,'includeAllSlots':!0x0}):_0x467bcf['createTableWalker'](_0x3c0787,{'column':_0x493696,'includeAllSlots':!0x0});for(const {cell:_0x5897e0}of _0x30b5fb)_0x498655['add'](_0x5897e0);}_0x55885d['model']['change'](()=>{_0x15eb99['markMultiRangeBlockFormat'](_0x2a2dc8,{'commandName':_0x1767f5,'commandParams':[]},Array['from'](_0x498655),_0x1767f5);});});}_0x15eb99['descriptionFactory']['registerDescriptionCallback'](_0x430fc1=>{if('formatBlock'!=_0x430fc1['type']&&'formatInline'!=_0x430fc1['type'])return;const {data:_0x318af9}=_0x430fc1;return _0x318af9&&'mergeTableCells'==_0x318af9['commandName']?{'type':'format','content':Bt(_0x2d7f34,'*Merge\x20cells*')}:void 0x0;}),_0x15eb99['descriptionFactory']['registerDescriptionCallback'](_0x2e5cdb=>{if('formatBlock'!=_0x2e5cdb['type']&&'formatInline'!=_0x2e5cdb['type'])return;const {data:_0x237386}=_0x2e5cdb;return _0x237386?'splitTableCellVertically'==_0x237386['commandName']?{'type':'format','content':Bt(_0x2d7f34,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x237386['commandName']?{'type':'format','content':Bt(_0x2d7f34,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xd0b662=_0x7479['_acceptFormatSuggestionCallbackFactory']();for(const _0x412235 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x15eb99['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x412235,'accept',_0xd0b662);for(const _0x1cea87 of['splitTableCellVertically','splitTableCellHorizontally'])_0x15eb99['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1cea87,'accept',_0x5a8b03=>{_0x55885d['model']['change'](_0x61dceb=>{const _0x1e9c1e=Array['from'](_0x5a8b03)['filter'](_0x25496d=>'$graveyard'!=_0x25496d['root']['rootName']&&!!_0x25496d['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x1e9c1e['length'])return;const _0x41fe73=Array['from'](_0x2becfe['getRanges']())['map'](_0x4e9dcf=>ct['fromRange'](_0x4e9dcf));_0x61dceb['setSelection'](_0x1e9c1e),_0x55885d['commands']['get'](_0x1cea87)['refresh'](),_0x55885d['execute'](_0x1cea87,{'forceDefaultExecution':!0x0});const _0x5648a4=_0x41fe73['filter'](_0x3f0526=>'$graveyard'!=_0x3f0526['root']['rootName']);_0x5648a4['length']>0x0&&_0x61dceb['setSelection'](_0x5648a4);for(const _0x123611 of _0x41fe73)_0x123611['detach']();});});_0x15eb99['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3d1408=>{_0x55885d['model']['change'](_0x16327a=>{const _0x28743d=Array['from'](_0x2becfe['getRanges']())['map'](_0x10a8fe=>ct['fromRange'](_0x10a8fe));_0x16327a['setSelection'](_0x3d1408),_0x55885d['commands']['get']('mergeTableCells')['refresh'](),_0x55885d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5d9626=_0x28743d['filter'](_0x5c522e=>'$graveyard'!=_0x5c522e['root']['rootName']);_0x5d9626['length']>0x0&&_0x16327a['setSelection'](_0x5d9626);for(const _0x15f357 of _0x28743d)_0x15f357['detach']();});});for(const _0x4ac89b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x572b16=_0x55885d['commands']['get'](_0x4ac89b);_0x572b16['on']('set:isEnabled',(_0xbafe2f,_0x50ac06,_0x2c4fbb)=>{if(_0x2c4fbb){const _0x226fba=_0x55885d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x376e96=>_0x376e96['is']('element','tableCell'));this['_areMergableCells'](_0x572b16['value'],_0x226fba)||(_0xbafe2f['return']=!0x1,_0xbafe2f['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x150640=this['editor']['commands']['get']('mergeTableCells'),_0x217a75=this['editor']['plugins']['get']('TableUtils');if(!_0x150640['isEnabled'])return!0x1;const _0x436f3e=_0x217a75['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f6a61 of _0x436f3e)for(const _0x1a9cec of _0x436f3e)if(_0x3f6a61!=_0x1a9cec&&!this['_areMergableCells'](_0x3f6a61,_0x1a9cec))return!0x1;return!0x0;}['_areMergableCells'](_0x1da2ae,_0x2293ae){const _0x2fb5f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fdb6b=this['editor']['model']['createRangeOn'](_0x1da2ae),_0xde08f7=this['editor']['model']['createRangeOn'](_0x2293ae),_0x1ef6dc=new Set(),_0x36417d=new Set();for(const _0x28dcd7 of _0x2fb5f1['getSuggestions']())if(('insertion'==_0x28dcd7['type']||'deletion'==_0x28dcd7['type']||'mergeTableCells'==_0x28dcd7['subType'])&&_0x28dcd7['isInContent']){for(const _0x1faad0 of _0x28dcd7['getRanges']())_0x1faad0['containsRange'](_0x4fdb6b,!0x0)&&_0x1ef6dc['add'](_0x28dcd7['type']+':'+_0x28dcd7['author']['id']),_0x1faad0['containsRange'](_0xde08f7,!0x0)&&_0x36417d['add'](_0x28dcd7['type']+':'+_0x28dcd7['author']['id']);}if(_0x1ef6dc['size']!=_0x36417d['size'])return!0x1;for(const _0x5bffe7 of _0x1ef6dc)if(!_0x36417d['has'](_0x5bffe7))return!0x1;return!0x0;}},We=class extends _0x27de82{static get requires(){return[Ge];}afterInit(){const _0x3920d8=this['editor'];if(!_0x3920d8['plugins']['has']('TableEditing'))return;const _0x49ffeb=_0x3920d8['locale'],_0x41dc69=_0x3920d8['plugins']['get']('TrackChangesEditing');_0x41dc69['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x41dc69['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x41dc69['descriptionFactory']['registerAttributeLabel']('headingRows',Bt(_0x49ffeb,'FORMAT_HEADER_ROW')),_0x41dc69['descriptionFactory']['registerAttributeLabel']('headingColumns',Bt(_0x49ffeb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x51b436=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a9c4e=this['editor']['plugins']['get'](Ge)['_acceptFormatSuggestionCallbackFactory']();_0x51b436['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a9c4e),_0x51b436['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a9c4e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x1ad9fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x180c02=this['editor']['plugins']['get']('TableUtils');function _0x5de543({showActiveMarker:_0x5c446e=!0x0,setDataAttribute:_0x2f4635=!0x0}={}){return(_0x1f34b8,_0x10ded1,_0x460581)=>{const {type:_0x2abcf0,id:_0x2a2a2a}=it(_0x10ded1['markerName']);if(!_0x1ad9fa['hasSuggestion'](_0x2a2a2a))return;const _0x39468a=_0x1ad9fa['getSuggestion'](_0x2a2a2a),_0x1f5b9c=_0x39468a['data'];if('formatBlock'!=_0x39468a['type']||!_0x1f5b9c||'setTableColumnHeader'!=_0x1f5b9c['commandName'])return;if(_0x10ded1['item'])return void _0x1f34b8['stop']();if(!_0x460581['consumable']['consume'](_0x10ded1['markerRange'],_0x1f34b8['name']))return;const _0x14dfc5=_0x10ded1['markerRange']['start']['nodeAfter'],_0x222405=_0x10ded1['markerRange']['end']['nodeBefore'],_0x218d62=_0x14dfc5['parent']['parent'],{column:_0x3ec438}=_0x180c02['getCellLocation'](_0x14dfc5),{column:_0xcf3bfd}=_0x180c02['getCellLocation'](_0x222405);for(let _0x4a95d0=_0x3ec438;_0x4a95d0<=_0xcf3bfd;_0x4a95d0++){const _0x2a5da0=_0x180c02['createTableWalker'](_0x218d62,{'column':_0x4a95d0,'includeAllSlots':!0x1});for(const _0x5d0a38 of _0x2a5da0){const _0x494243=_0x5d0a38['cell'],_0x59be00=_0x460581['mapper']['toViewElement'](_0x494243);_0x460581['writer']['addClass']('ck-suggestion-marker-'+_0x2abcf0,_0x59be00),_0x2f4635&&_0x460581['writer']['setAttribute']('data-suggestion',_0x2a2a2a,_0x59be00),_0x460581['mapper']['bindElementToMarker'](_0x59be00,_0x10ded1['markerName']),_0x5c446e&&(_0x1ad9fa['activeMarkers']['includes'](_0x10ded1['markerName'])?_0x460581['writer']['addClass']('ck-suggestion-marker--active',_0x59be00):_0x460581['writer']['removeClass']('ck-suggestion-marker--active',_0x59be00));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5de543(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2546cf,_0x4c25a3,_0x507585)=>{_0x507585['options']['showSuggestionHighlights']&&_0x5de543({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2546cf,_0x4c25a3,_0x507585);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25314f,_0x433adb,_0x3e26b6)=>{const {type:_0x4cd5d6,id:_0x3b3409}=it(_0x433adb['markerName']);if(!_0x1ad9fa['hasSuggestion'](_0x3b3409))return;const _0x5c5351=_0x1ad9fa['getSuggestion'](_0x3b3409),_0x58b308=_0x5c5351['data'];if('formatBlock'!=_0x5c5351['type']||!_0x58b308||'setTableColumnHeader'!=_0x58b308['commandName'])return;const _0x5d02dc=_0x3e26b6['mapper']['markerNameToElements'](_0x433adb['markerName']);if(_0x5d02dc){for(const _0x4ca549 of _0x5d02dc)_0x3e26b6['writer']['removeClass']('ck-suggestion-marker-'+_0x4cd5d6,_0x4ca549),_0x3e26b6['writer']['removeClass']('ck-suggestion-marker--active',_0x4ca549),_0x3e26b6['writer']['removeAttribute']('data-suggestion',_0x4ca549),_0x3e26b6['mapper']['unbindElementFromMarkerName'](_0x4ca549,_0x433adb['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x15505b=this['editor'],_0x40b11e=_0x15505b['locale'];function _0x47dd81(_0x24523b){return{'type':'format','content':Bt(_0x40b11e,'*Format:*\x20%0',_0x24523b)};}_0x15505b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55e9c5=>{if('formatBlock'!=_0x55e9c5['type'])return;const {data:_0x2fe440}=_0x55e9c5;return _0x2fe440?'setTableRowHeader'==_0x2fe440['commandName']?_0x2fe440['commandParams'][0x0]['forceValue']?_0x47dd81(Bt(_0x40b11e,'FORMAT_HEADER_ROW')):_0x47dd81(Bt(_0x40b11e,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x2fe440['commandName']?_0x2fe440['commandParams'][0x0]['forceValue']?_0x47dd81(Bt(_0x40b11e,'FORMAT_HEADER_COLUMN')):_0x47dd81(Bt(_0x40b11e,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},Ve=class extends _0x27de82{static get requires(){return[Ge];}afterInit(){const _0x4306ca=this['editor'];if(!_0x4306ca['plugins']['has']('TableEditing')||!_0x4306ca['config']['get']('table.enableFooters'))return;const _0x3ed6d5=_0x4306ca['locale'],_0x1c6176=_0x4306ca['plugins']['get']('TrackChangesEditing');_0x1c6176['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1c6176['descriptionFactory']['registerAttributeLabel']('footerRows',Bt(_0x3ed6d5,'FORMAT_FOOTER_ROW'));}},ze=class extends _0x27de82{afterInit(){const _0x49d62f=this['editor'],_0xee7857=_0x49d62f['locale'],_0x5e1ab7=_0x49d62f['plugins']['get']('TrackChangesEditing');function _0x4d5738(_0x13e8eb){return{'type':'format','content':''+Bt(_0xee7857,'*Set\x20table\x20type:*\x20%0',_0x13e8eb)};}_0x49d62f['plugins']['has']('TableLayout')&&(_0x5e1ab7['enableCommand']('insertTableLayout'),_0x5e1ab7['enableDefaultAttributesIntegration']('tableType'),_0x5e1ab7['descriptionFactory']['registerElementLabel'](_0x1be299=>_0x1be299['is']('element','table')&&'layout'===_0x1be299['getAttribute']('tableType'),_0xd0544a=>Bt(_0xee7857,'ELEMENT_LAYOUT_TABLE',_0xd0544a)),_0x5e1ab7['descriptionFactory']['registerDescriptionCallback'](_0x5a6006=>{const {data:_0xadc74}=_0x5a6006;if(_0xadc74&&'tableType'==_0xadc74['key'])switch(_0xadc74['newValue']){case'layout':return _0x4d5738(Bt(_0xee7857,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4d5738(Bt(_0xee7857,'ELEMENT_CONTENT_TABLE'));}}));}};const je=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ke=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](je['map'](_0x27d064=>[_0x27d064,null]));var Xe=class extends _0x27de82{static get requires(){return[Ge];}afterInit(){const _0x5566df=this['editor'];if(!_0x5566df['plugins']['has']('TableClipboard'))return;const _0x453ca1=_0x5566df['plugins']['get']('TrackChangesEditing'),_0xde5418=_0x5566df['plugins']['get']('TableUtils'),_0x255862=_0x5566df['plugins']['get'](Ge),_0x2758f9=_0x5566df['plugins']['get']('TableClipboard'),_0x1804b6=_0x5566df['plugins']['get']('TableSelection'),_0x49d8cd=_0x5566df['plugins']['get'](Et);_0x255862['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5566df['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5566df['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3c549a=null,_0x9ed142=!0x1;_0x49d8cd['on']('contentInsertion',(_0x5bef5f,_0x17c221)=>{_0x9ed142='paste'===_0x17c221['method'];}),_0x5566df['model']['on']('insertContent',(_0x34e7d5,_0x170dfc)=>{if(!_0x9ed142&&null===_0x1804b6['getSelectedTableCells']())return;const [_0x184111,_0x22498b]=_0x170dfc,_0x34e066=_0x170dfc[_0x170dfc['length']-0x1];_0x34e066&&_0x34e066['forceDefaultExecution']||_0x453ca1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2203f5,_0x2e4b35,_0x4ff7a6,_0x55a4ef,_0x80951d){if(_0x2e4b35&&!_0x2e4b35['is']('documentSelection'))return!0x1;const _0x5d7810=_0x80951d['getTableIfOnlyTableInContent'](_0x2203f5,_0x4ff7a6);if(!_0x5d7810||!Ye(_0x5d7810,void 0x0,_0x55a4ef))return!0x1;const _0x40e35d=_0x55a4ef['getSelectionAffectedTableCells'](_0x4ff7a6['document']['selection']);if(!_0x40e35d['length'])return!0x1;const _0x28f06f=_0x40e35d[0x0]['findAncestor']('table'),_0x59e3b3=_0x55a4ef['getRowIndexes'](_0x40e35d),_0x30b5d6=_0x55a4ef['getColumnIndexes'](_0x40e35d),_0xd59fca={'startRow':_0x59e3b3['first'],'endRow':_0x59e3b3['last'],'startColumn':_0x30b5d6['first'],'endColumn':_0x30b5d6['last']};return 0x1==_0x40e35d['length']&&(_0xd59fca['endRow']+=_0x55a4ef['getRows'](_0x5d7810)-0x1,_0xd59fca['endColumn']+=_0x55a4ef['getColumns'](_0x5d7810)-0x1),Ye(_0x28f06f,_0xd59fca,_0x55a4ef);}(_0x184111,_0x22498b,_0x5566df['model'],_0xde5418,_0x2758f9)&&(_0x34e7d5['stop'](),_0x3c549a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5566df['model']['change'](()=>{_0x5566df['model']['insertContent'](_0x170dfc[0x0],_0x170dfc[0x1],_0x170dfc[0x2],{'forceDefaultExecution':!0x0});const _0x16e337=_0x34e203(),{rowInsertionRanges:_0x30fce4,columnInsertionRanges:_0x856162,insertionRanges:_0x20eb98,deletionRanges:_0xd919e8,cells:_0x58e0c4}=_0x3c549a;_0x30fce4['length']&&_0x453ca1['markMultiRangeInsertion'](_0x30fce4,'tablePasteRow',{'tablePasteChainId':_0x16e337}),_0x856162['length']&&_0x453ca1['markMultiRangeInsertion'](_0x856162,'tablePasteColumn',{'tablePasteChainId':_0x16e337}),_0x20eb98['length']&&(_0x453ca1['markMultiRangeInsertion'](_0x20eb98,'tablePaste',{'tablePasteChainId':_0x16e337,'skipNestingCheck':!0x0}),_0x20eb98['forEach'](_0x4fbd39=>_0x4fbd39['detach']?.())),_0xd919e8['length']&&(_0x453ca1['markMultiRangeDeletion'](_0xd919e8,'tablePaste',{'tablePasteChainId':_0x16e337,'skipNestingCheck':!0x0}),_0xd919e8['forEach'](_0x362e97=>_0x362e97['detach']?.()));const _0x2084ff=_0x453ca1['markMultiRangeBlockFormat'](_0x58e0c4['map'](({element:_0xe07bf4})=>_0xe07bf4),{'formatGroupId':_0x34e203()},[],'tablePasteCell',{'tablePasteChainId':_0x16e337});if(_0x2084ff){const _0x1b869c=_0x2084ff['getMarkers'](),_0x36f62d=[];for(const {element:_0x343977,attributes:_0x493f0c}of _0x58e0c4){if(!_0x493f0c)continue;const _0x4e5500=_0x5566df['model']['createRangeOn'](_0x343977),_0x45f3ba=_0x1b869c['find'](_0x269e80=>_0x269e80['getRange']()['isEqual'](_0x4e5500));_0x45f3ba&&_0x36f62d['push']([_0x45f3ba['name'],_0x493f0c]);}_0x36f62d['length']&&_0x2084ff['setAttribute']('markerAttributes',Object['fromEntries'](_0x36f62d));}_0x3c549a=null;}));},{'priority':_0x376900['high']+0xa}),_0x49d8cd['on']('contentInsertion',()=>{_0x9ed142=!0x1;},{'priority':'lowest'}),_0x5566df['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xfd3044,_0x1f605b)=>{const [_0x4c4f74,_0x4a0ba2,,_0x546c07]=_0x1f605b;if(!_0x3c549a)return;_0xfd3044['stop']();const _0x459b70=_0x4c4f74['cell'],_0x40d434=_0x4a0ba2,_0x1ceccc=qe(_0x459b70),_0xc97f93=qe(_0x40d434);_0xfd3044['return']=_0x459b70;let _0x483aa8=null,_0x51fa32=null;if(_0xc97f93||_0x1ceccc){if(_0x1ceccc&&!_0xc97f93){_0x546c07['remove'](_0x459b70['getChild'](0x0));for(const _0x177d88 of Array['from'](_0x40d434['getChildren']()))_0x546c07['insert'](_0x177d88,_0x459b70,'end');const _0x11f0b7=_0x3c549a['rowInsertionIndexes']['includes'](_0x4c4f74['row']),_0xc4f72=_0x3c549a['columnInsertionIndexes']['includes'](_0x4c4f74['column']);_0x11f0b7||_0xc4f72||(_0x483aa8=ct['fromRange'](_0x546c07['createRangeIn'](_0x459b70)));}else _0xc97f93&&!_0x1ceccc&&(_0x51fa32=_0x546c07['createRangeIn'](_0x459b70));}else{const _0x1e7e20=_0x546c07['createElement']('tableCellSuggestion'),_0xb4a63b=_0x546c07['createElement']('tableCellSuggestion');_0x546c07['wrap'](_0x546c07['createRangeIn'](_0x459b70),_0xb4a63b),_0x546c07['insert'](_0x1e7e20,_0x459b70,0x0);for(const _0x5e7ce3 of Array['from'](_0x40d434['getChildren']()))_0x546c07['insert'](_0x5e7ce3,_0x1e7e20,'end');_0x483aa8=ct['fromRange'](_0x546c07['createRangeOn'](_0x1e7e20)),_0x51fa32=ct['fromRange'](_0x546c07['createRangeOn'](_0xb4a63b));}const _0x5ede3b=Array['from'](_0x40d434['getAttributes']())['filter'](([_0x3644e7])=>je['includes'](_0x3644e7));_0x3c549a['cells']['push']({'element':_0x459b70,'attributes':_0x5ede3b['length']?Object['fromEntries'](_0x5ede3b):null}),_0x483aa8&&_0x3c549a['insertionRanges']['push'](_0x483aa8),_0x51fa32&&_0x3c549a['deletionRanges']['push'](_0x51fa32);},{'priority':'high'}),_0xde5418['on']('insertColumns',(_0x5d729b,_0x18c35d)=>{const [_0x4a745a,_0x37a940={}]=_0x18c35d;if(!_0x3c549a)return;const _0x3ce08d=_0x37a940['at']||0x0,_0x50d940=_0x37a940['columns']||0x1;_0x3c549a['columnInsertionIndexes']=new Array(_0x50d940)['fill'](_0x3ce08d)['map']((_0xd45f9,_0x4561d4)=>_0xd45f9+_0x4561d4);for(const {cell:_0x4a9a9e}of _0xde5418['createTableWalker'](_0x4a745a,{'startColumn':_0x3ce08d,'endColumn':_0x3ce08d+_0x50d940-0x1}))_0x3c549a['columnInsertionRanges']['push'](_0x5566df['model']['createRangeOn'](_0x4a9a9e));},{'priority':'low'}),_0xde5418['on']('insertRows',(_0x5e642e,_0x264e82)=>{const [_0x896f20,_0x184684={}]=_0x264e82;if(!_0x3c549a)return;const _0x470387=_0x184684['at']||0x0,_0x38f5a7=_0x184684['rows']||0x1;_0x3c549a['rowInsertionIndexes']=new Array(_0x38f5a7)['fill'](_0x470387)['map']((_0x52950f,_0x5401f2)=>_0x52950f+_0x5401f2);for(const {cell:_0x5661ef}of _0xde5418['createTableWalker'](_0x896f20,{'startRow':_0x470387,'endRow':_0x470387+_0x38f5a7-0x1}))_0x3c549a['rowInsertionRanges']['push'](_0x5566df['model']['createRangeOn'](_0x5661ef));},{'priority':'low'}),_0x453ca1['descriptionFactory']['registerDescriptionCallback'](_0x40a3c3=>{if(_0x40a3c3['subType']&&_0x40a3c3['subType']['startsWith']('tablePaste'))return _0x40a3c3['previous']?{}:{'type':'insertion','content':Bt(_0x5566df['locale'],'*Replace\x20table\x20cells*')};});const _0x1055a8=()=>!0x1;for(const _0x5177f1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x453ca1['_suggestionFactory']['registerCustomCallback']('insertion',_0x5177f1,'join',_0x1055a8),_0x453ca1['_suggestionFactory']['registerCustomCallback']('deletion',_0x5177f1,'join',_0x1055a8),_0x453ca1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5177f1,'join',_0x1055a8);_0x453ca1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1055a8),_0x453ca1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4790ea,_0x58d2f6,_0xe7c16d)=>{const _0x11541d=_0x4790ea['map'](_0xb98c6e=>_0xb98c6e['getContainedElement']())['filter'](_0x43832e=>_0x43832e),_0xfa9a22=new Map(_0x11541d['map'](_0x1ca1cf=>[_0x1ca1cf,null]));if(_0x3c549a){for(const {element:_0x16d592,attributes:_0x52cc2b}of _0x3c549a['cells'])_0x52cc2b&&_0xfa9a22['set'](_0x16d592,_0x52cc2b);}else{if(_0xe7c16d&&_0xe7c16d['markerAttributes'])for(const [_0x513e8f,_0x39a2d7]of Object['entries'](_0xe7c16d['markerAttributes'])){const _0xb85dd0=_0x5566df['model']['markers']['get'](_0x513e8f),_0x339b32=_0xb85dd0?_0xb85dd0['getRange']()['getContainedElement']():null;_0x339b32&&_0xfa9a22['set'](_0x339b32,_0x39a2d7);}}_0x5566df['model']['change'](_0x5307f4=>{for(const [_0x4f9b8d,_0x1122b0]of _0xfa9a22)_0x5307f4['setAttributes']({...Ke,..._0x1122b0},_0x4f9b8d);});});const _0x507d06=(_0x4b1dc4,_0xc9a4ae)=>{_0x453ca1['_suggestionFactory']['registerCustomCallback'](_0x4b1dc4,'tablePaste',_0xc9a4ae,(_0x318155,_0x11c66d,_0x95b140)=>{_0x5566df['model']['change'](_0xd1ea1=>{const _0x5c3767=[];for(const _0x2406d7 of _0x318155){const _0x50b9e2=_0x2406d7['start']['nodeAfter'];_0x50b9e2['is']('element','tableCellSuggestion')&&_0x5c3767['push'](_0x50b9e2);}_0x453ca1['_suggestionFactory']['getSuggestionCallback'](_0x4b1dc4,null,_0xc9a4ae)(_0x318155,_0x11c66d,_0x95b140);for(const _0x5ecc49 of _0x5c3767)'$graveyard'!=_0x5ecc49['root']['rootName']&&_0xd1ea1['unwrap'](_0x5ecc49);});});};_0x507d06('insertion','accept'),_0x507d06('insertion','discard'),_0x507d06('deletion','accept'),_0x507d06('deletion','discard'),_0x453ca1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5bf34c=>{const _0x38b135=_0x5bf34c['map'](_0x23d377=>_0x23d377['getContainedElement']()),_0x43d24b=_0x38b135[0x0]['findAncestor']('table'),{minRow:_0x71d2fe,maxRow:_0x2a1310}=_0x255862['_getCoordsForCells'](_0x38b135);_0xde5418['removeRows'](_0x43d24b,{'at':_0x71d2fe,'rows':_0x2a1310-_0x71d2fe+0x1});}),_0x453ca1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x33ba1f=>{const _0x3567b6=_0x33ba1f['map'](_0x23602a=>_0x23602a['getContainedElement']()),_0x58249f=_0x3567b6[0x0]['findAncestor']('table'),{minColumn:_0x4db9d5,maxColumn:_0x48dcb9}=_0x255862['_getCoordsForCells'](_0x3567b6);_0xde5418['removeColumns'](_0x58249f,{'at':_0x4db9d5,'columns':_0x48dcb9-_0x4db9d5+0x1});});const _0x5e8d3b=(_0x50334d,_0x262724)=>{if(!_0x262724['subType']||!_0x262724['subType']['startsWith']('tablePaste'))return;const _0x62ea18=_0x262724['attributes']['tablePasteChainId'],_0x5b05fe=_0x453ca1['getSuggestions']()['filter'](_0xab8b6=>_0xab8b6['isInContent']&&_0xab8b6['attributes']&&_0xab8b6['attributes']['tablePasteChainId']==_0x62ea18);_0x5b05fe['length']&&_0x262724['getAllAdjacentSuggestions']()['length']!=_0x5b05fe['length']&&_0x5b05fe['reduce']((_0x3a217f,_0x3b395f)=>(_0x3a217f['next']=_0x3b395f,_0x3b395f['previous']=_0x3a217f,_0x3b395f));};function _0x38baee(_0x3bf41b,_0x4cf4c9=!0x0){const {id:_0x3110e8,authorId:_0x45c6e2}=it(_0x3bf41b['markerName']),_0x6cb871=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2087bc=_0x453ca1['activeMarkers']['includes'](_0x3bf41b['markerName']);return _0x2087bc&&_0x6cb871['push']('ck-suggestion-marker--active'),{'classes':_0x6cb871,'attributes':{'data-suggestion':_0x3110e8,'data-author-id':_0x45c6e2},'priority':_0x2087bc&&_0x4cf4c9?0xbc2:0xbb8};}_0x453ca1['on']('suggestionLoaded',_0x5e8d3b,{'priority':'high'}),_0x453ca1['on']('suggestionUnloaded',_0x5e8d3b,{'priority':'high'}),_0x5566df['model']['document']['registerPostFixer'](()=>{let _0x20f77c=!0x1;const _0x269800=Array['from'](_0x5566df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c9c00,data:_0x428a26}of _0x269800){const {group:_0x70bb07,type:_0x28ef3f,id:_0x17756f}=it(_0x1c9c00);if('suggestion'!=_0x70bb07||'deletion'!=_0x28ef3f||_0x428a26['oldRange'])continue;if(!_0x453ca1['hasSuggestion'](_0x17756f))continue;const _0x4595ec=_0x453ca1['getSuggestion'](_0x17756f)['getRanges'](),_0x187b23=_0x5566df['plugins']['get']('Users')['me'];for(const _0x5c7a33 of _0x453ca1['getSuggestions']())if(_0x5c7a33['isInContent']&&_0x5c7a33['author']==_0x187b23&&'formatBlock'==_0x5c7a33['type']&&'tablePasteCell'==_0x5c7a33['subType']&&_0x5c7a33['getRanges']()['every'](_0x1cd761=>_0x4595ec['some'](_0xeacf5d=>_0xeacf5d['containsRange'](_0x1cd761,!0x0)))){for(const _0x12a980 of _0x5c7a33['getAllAdjacentSuggestions']())_0x12a980['isInContent']&&(_0x12a980['discard'](),_0x20f77c=!0x0);}}return _0x20f77c;}),_0x5566df['model']['document']['registerPostFixer'](_0x48fc44=>{const _0xa17870=_0x5566df['commands']['get']('redo');if(!_0xa17870||!_0xa17870['_createdBatches']['has'](_0x48fc44['batch']))return!0x1;let _0x59d750=!0x1;const _0x3a3eb7=_0x5566df['plugins']['get']('Users')['me'],_0x1cadf9=_0x5566df['model']['document']['differ']['getChanges'](),_0x2be1a6=Array['from'](_0x5566df['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x36ca7d,data:_0x132aa7})=>{const {group:_0x4d747d,subType:_0x41d15a,authorId:_0x4a213d}=it(_0x36ca7d);return'suggestion'==_0x4d747d&&'tablePaste'==_0x41d15a&&_0x4a213d==_0x3a3eb7['id']&&!_0x132aa7['oldRange'];});for(const _0x199005 of _0x1cadf9){if('insert'!=_0x199005['type']||'tableCellSuggestion'!=_0x199005['name']||0x1!=_0x199005['length'])continue;const _0x1531d2=_0x48fc44['createRange'](_0x199005['position'],_0x199005['position']['getShiftedBy'](0x1));if(!_0x2be1a6['find'](({data:_0x149f52})=>_0x149f52['newRange']['isEqual'](_0x1531d2))){for(const {name:_0x416ea1,data:_0x4558c4}of _0x2be1a6)if(_0x1531d2['containsRange'](_0x4558c4['newRange'])){_0x48fc44['updateMarker'](_0x416ea1,{'range':_0x1531d2}),_0x59d750=!0x0;break;}}}return _0x59d750;}),_0x5566df['model']['document']['registerPostFixer'](_0x11d511=>{let _0x489178=!0x1;const _0x12e477=_0x5566df['plugins']['get']('Users')['me'],_0x32bf0c=_0x453ca1['getSuggestions']()['filter'](_0x20123e=>_0x20123e['isInContent']&&_0x20123e['author']==_0x12e477),_0x3542f4=new Set(),_0x18ea17=new Set();for(const _0xf43cb9 of _0x32bf0c)if('tablePaste'==_0xf43cb9['subType'])for(const _0x245e9d of _0xf43cb9['getMarkers']()){const _0x398e85=_0x245e9d['getRange']()['getContainedElement']();if(_0x398e85){if(_0x398e85['is']('element','tableCellSuggestion')&&qe(_0x398e85)){_0xf43cb9['removeMarker'](_0x245e9d['name']),_0x3542f4['add'](_0x398e85),_0x489178=!0x0;const _0x220a71=_0x398e85['nextSibling'],_0x4a3d1e=_0x398e85['previousSibling'],_0x5a4eb5=_0x220a71&&_0x220a71['is']('element','tableCellSuggestion'),_0x40b789=_0x4a3d1e&&_0x4a3d1e['is']('element','tableCellSuggestion');_0x5a4eb5&&!_0x3542f4['has'](_0x220a71)&&_0x18ea17['add'](_0x220a71),_0x40b789&&!_0x3542f4['has'](_0x4a3d1e)&&_0x18ea17['add'](_0x4a3d1e);}else _0x398e85['is']('element','paragraph')&&_0x398e85['isEmpty']&&(_0xf43cb9['removeMarker'](_0x245e9d['name']),_0x489178=!0x0);}}else{if('tablePasteCell'==_0xf43cb9['subType']){if(!_0xf43cb9['attributes']||!_0xf43cb9['attributes']['tablePasteChainId'])continue;const _0x14909d=_0xf43cb9['attributes']['markerAttributes'];if(_0x14909d&&Object['keys'](_0x14909d)['length'])continue;const _0x48b162=_0xf43cb9['attributes']['tablePasteChainId'];let _0x260940=!0x0,_0x29863e=!0x0;for(const _0x275eb5 of _0x32bf0c)if(_0x275eb5['subType']&&_0x275eb5['subType']['startsWith']('tablePaste')){if(!_0x275eb5['attributes']['tablePasteChainId']){_0x29863e=!0x1;break;}if(_0x275eb5['id']!=_0xf43cb9['id']&&_0x275eb5['attributes']['tablePasteChainId']==_0x48b162){_0x260940=!0x1;break;}}_0x29863e&&_0x260940&&(_0xf43cb9['removeMarkers'](),_0x489178=!0x0);}}for(const _0x3f2c29 of _0x3542f4)_0x11d511['remove'](_0x3f2c29);for(const _0x5547cc of _0x18ea17)_0x11d511['unwrap'](_0x5547cc);return _0x489178;}),_0x5566df['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x363c53=>_0x38baee(_0x363c53),'converterPriority':'high'}),_0x5566df['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c0751,_0x275c2f)=>_0x275c2f['options']['showSuggestionHighlights']?_0x38baee(_0x1c0751,!0x1):null,'converterPriority':'high'});const _0x246aef=_0x5566df['editing']['view'];this['listenTo'](_0x246aef['document'],'clipboardOutput',(_0x21adbe,_0x3bd77f)=>{const _0x34d1f4=[];for(const _0x5237b6 of _0x246aef['createRangeIn'](_0x3bd77f['content'])['getItems']())_0x5237b6['is']('element','suggestion-td')&&_0x34d1f4['push'](_0x5237b6);_0x246aef['change'](_0x3724c6=>{for(const _0x2b45a7 of _0x34d1f4)_0x3724c6['move'](_0x3724c6['createRangeIn'](_0x2b45a7),_0x3724c6['createPositionBefore'](_0x2b45a7)),_0x3724c6['remove'](_0x2b45a7);});});}};function qe(_0x52643c){if(_0x52643c['isEmpty'])return!0x0;const _0x47038f=_0x52643c['getChild'](0x0);return _0x47038f['is']('element','paragraph')&&_0x47038f['isEmpty'];}function Ye(_0x31065d,_0x19e9b7={},_0x23de43){for(const {isAnchor:_0x3941c3,cellHeight:_0x27ab43,cellWidth:_0x2df97d}of _0x23de43['createTableWalker'](_0x31065d,{'includeAllSlots':!0x0,..._0x19e9b7}))if(!_0x3941c3||0x1!=_0x27ab43||0x1!=_0x2df97d)return!0x1;return!0x0;}var Qe=class extends _0x27de82{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x24b00d=this['editor']['plugins']['get']('TrackChangesEditing');_0x24b00d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x24b00d['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x24b00d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x24b00d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x950e51=_0x24b00d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x24b00d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x530997,_0x904e3d)=>{_0x950e51(_0x530997,_0x904e3d),this['_restoreCellWidths'](_0x530997[0x0]['start']['nodeAfter'],_0x904e3d['commandParams'][0x0]['cellWidths']);}),_0x24b00d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x59448f,_0x40543d){const _0x1a5a56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53a504=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a0e8a=_0x40543d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a0180=_0x53a504['getColumnGroupElement'](_0x1a0e8a);let _0x25203c=_0x3a0180?_0x53a504['getTableColumnsWidths'](_0x3a0180):null,_0x2eb9c1=_0x1a0e8a['getAttribute']('tableWidth')||null;const _0x2c32e0=_0x40543d['tableWidth']||_0x2eb9c1,_0x331c6d=_0x40543d['columnWidths']||_0x25203c;let _0x2f25c6=this['_getCellWidths'](_0x1a0e8a);const _0x169bfb=this['_foldResizeTableSuggestion'](_0x1a0e8a);_0x169bfb&&(_0x2eb9c1=_0x169bfb['tableWidth'],_0x25203c=_0x169bfb['columnWidths'],_0x2f25c6=_0x169bfb['cellWidths']||_0x2f25c6),_0x59448f({'table':_0x1a0e8a,'tableWidth':_0x2c32e0,'columnWidths':_0x331c6d}),_0x1a5a56['markBlockFormat'](_0x1a0e8a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2eb9c1,'columnWidths':_0x25203c,'cellWidths':_0x2f25c6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x11de72,_0xb439b7={}){if(void 0x0===_0xb439b7['value']||''===_0xb439b7['value'])return void _0x11de72(_0xb439b7);const _0x3ffa2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x142af6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1228b2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xb439b7['batch']||(_0xb439b7['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xb439b7['batch'],()=>{const _0x350d7a=_0x142af6['getColumnGroupElement'](_0x1228b2);let _0x4619bb=_0x350d7a?_0x142af6['getTableColumnsWidths'](_0x350d7a):null,_0x606fc7=_0x1228b2['getAttribute']('tableWidth')||null,_0x4f1098=this['_getCellWidths'](_0x1228b2);const _0x5587e0=this['_foldResizeTableSuggestion'](_0x1228b2,!0x0);_0x5587e0&&(_0x606fc7=_0x5587e0['tableWidth'],_0x4619bb=_0x5587e0['columnWidths'],_0x4f1098=_0x5587e0['cellWidths']||_0x4f1098),_0x11de72(_0xb439b7),_0x3ffa2f['markBlockFormat'](_0x1228b2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x606fc7,'columnWidths':_0x4619bb,'cellWidths':_0x4f1098}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0xbde8db,_0xac38af=!0x1){const _0x3f8db2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59d196=this['editor']['plugins']['get']('Users')['me'];for(const _0xca064a of _0x3f8db2['getSuggestions']({'skipNotAttached':!0x0})){const _0x54bd7f=_0xca064a['getContainedElement']();if('resizeTable'===_0xca064a['subType']&&_0x54bd7f===_0xbde8db){_0xca064a['author']!==_0x59d196&&(_0xac38af?_0xca064a['removeMarkers']():_0xca064a['discard']());const _0x31d4f8=_0xca064a['data']['commandParams'];return{'tableWidth':_0x31d4f8[0x0]['tableWidth'],'columnWidths':_0x31d4f8[0x0]['columnWidths'],'cellWidths':_0x31d4f8[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x638377){const _0x1317a7=[];for(const _0x31e9be of _0x638377['getChildren']())if(_0x31e9be['is']('element','tableRow')){for(const _0x5bc324 of _0x31e9be['getChildren']())_0x1317a7['push'](_0x5bc324['getAttribute']('tableCellWidth')||null);}return _0x1317a7;}_restoreCellWidths(_0x16edd5,_0x2c5625){_0x2c5625&&this['editor']['model']['change'](_0x209b63=>{let _0x505c14=0x0;for(const _0x5a08d7 of _0x16edd5['getChildren']())if(_0x5a08d7['is']('element','tableRow'))for(const _0x4cb9e6 of _0x5a08d7['getChildren']()){const _0x50ef1b=_0x2c5625[_0x505c14++];_0x50ef1b&&_0x209b63['setAttribute']('tableCellWidth',_0x50ef1b,_0x4cb9e6);}});}handleSuggestionDescription(_0x3eec61){if('formatBlock'!=_0x3eec61['type']&&'formatInline'!=_0x3eec61['type'])return;const {data:_0x319d5d}=_0x3eec61;return _0x319d5d&&'resizeTable'===_0x319d5d['formatGroupId']?{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ze=class extends _0x27de82{afterInit(){const _0x5436e9=this['editor'];_0x5436e9['plugins']['has']('Template')&&_0x5436e9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Je=class extends _0x27de82{afterInit(){const _0x4a59c1=this['editor'];if(!_0x4a59c1['commands']['get']('insertTableOfContents'))return;_0x4a59c1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x37ac3b=_0x4a59c1['plugins']['get']('TrackChangesEditing'),_0x51c2ba=_0x4a59c1['locale'];_0x37ac3b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1bdd2e=>Bt(_0x51c2ba,'ELEMENT_TABLE_OF_CONTENTS',_0x1bdd2e));}},tn=class extends _0x27de82{afterInit(){const _0x5dd545=this['editor'];_0x5dd545['plugins']['has']('Title')&&(_0x5dd545['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Bt(_0x5dd545['locale'],'ELEMENT_TITLE')),_0x5dd545['model']['document']['registerPostFixer'](_0x1b839c=>{let _0x55147d=!0x1;const _0x24f992=Array['from'](_0x5dd545['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x481fe0,data:_0x386e7f}of _0x24f992){const {group:_0x31c853}=it(_0x481fe0);if('suggestion'!==_0x31c853||!_0x386e7f['newRange'])continue;const _0x658122=_0x386e7f['newRange'],_0x12f960=_0x658122['end']['nodeBefore'];if(!_0x12f960||!_0x12f960['is']('element','title-content'))continue;if(!_0x658122['start']['isTouching'](_0x658122['end']))continue;const _0x4ae1ad=_0x5dd545['model']['schema']['getNearestSelectionRange'](_0x658122['end'],'forward');if(_0x4ae1ad&&_0x4ae1ad['isCollapsed']){const _0x1678bd=_0x1b839c['createRange'](_0x658122['start'],_0x4ae1ad['start']);_0x1678bd['isEqual'](_0x658122)||(_0x1b839c['updateMarker'](_0x481fe0,{'range':_0x1678bd}),_0x55147d=!0x0);}_0x55147d||(_0x1b839c['removeMarker'](_0x481fe0),_0x55147d=!0x0);}return _0x55147d;}));}},en=class extends _0x27de82{afterInit(){const _0x26cb90=this['editor'],_0x3d06f8=_0x26cb90['plugins']['get']('TrackChangesEditing');_0x26cb90['plugins']['has']('Uploadcare')&&(_0x3d06f8['enableCommand']('uploadcare'),_0x26cb90['plugins']['has']('UploadcareImageEdit')&&(_0x3d06f8['enableCommand']('uploadcareImageEdit'),_0x3d06f8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d06f8['descriptionFactory']['registerDescriptionCallback'](_0xa2d398=>{if('attribute'!=_0xa2d398['type'])return;const {data:_0x108387}=_0xa2d398;return _0x108387&&'uploadcareImageId'==_0x108387['key']?{'type':'format','content':''}:void 0x0;})));}},nn=class extends _0x27de82{afterInit(){const _0xd72758=this['editor'],_0x5c99f8=_0xd72758['plugins']['get']('TrackChangesEditing');_0xd72758['plugins']['has']('UndoEditing')&&(_0x5c99f8['enableCommand']('undo'),_0x5c99f8['enableCommand']('redo'));}},sn=class extends _0x27de82{static get requires(){return[Ge];}afterInit(){const _0x472751=this['editor'];_0x472751['plugins']['has']('TableCaptionEditing')&&_0x472751['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},rn=class extends _0x27de82{tableProperties;tableCellProperties;constructor(_0xed19d){super(_0xed19d),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 _0xc95065=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x426c9e of this['tableProperties'])_0xc95065['enableCommand'](_0x426c9e,(_0x12059b,_0x4bf574)=>{const _0x4b3c42=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x426c9e,[_0x4b3c42],this['tableProperties'],'tableProperties',_0x12059b,_0x4bf574);});_0xc95065['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc95065['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc95065['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x525fbd,_0x3ebd4d)=>this['handleDiscardAction'](this['tableProperties'],_0x525fbd,_0x3ebd4d)),_0xc95065['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x344d54 of this['tableCellProperties'])this['editor']['commands']['get'](_0x344d54)&&_0xc95065['enableCommand'](_0x344d54,(_0x468e98,_0x4543d3)=>{const _0x5c58ab=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x344d54,_0x5c58ab,this['tableCellProperties'],'tableCellProperties',_0x468e98,_0x4543d3);});_0xc95065['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc95065['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc95065['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3e4459,_0x212081)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3e4459,_0x212081)),_0xc95065['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xc95065['descriptionFactory']['registerAttributeLabel']('tableCellType',Bt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xc95065['descriptionFactory']['registerDescriptionCallback'](_0x95c691=>this['handleSuggestionDescription'](_0x95c691)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x335f2b,_0x2d2fb8,_0x1ceac2,_0x3534e8,_0x32ae0d,_0x19b782){const _0x193d88=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x19b782['batch'],()=>{for(const _0x212463 of _0x2d2fb8)if(this['_getSuggestion'](_0x212463,_0x3534e8))_0x32ae0d(_0x19b782);else{const _0x3f47bb={};for(const _0x3909d4 of _0x1ceac2){const _0x2529d9=_0x212463['getAttribute'](_0x3909d4);void 0x0!==_0x2529d9&&(_0x3f47bb[_0x3909d4]=_0x2529d9);}const _0x2f2eee=this['_getResizedColumnWidths'](_0x212463);_0x2f2eee&&(_0x3f47bb['columnWidths']=_0x2f2eee),_0x32ae0d(_0x19b782),_0x193d88['markBlockFormat'](_0x212463,{'commandParams':[_0x3f47bb]},[],_0x3534e8);}});}handleDiscardAction(_0x4e32b7,_0x1c27b1,_0x2b661f){const _0x3e08a1=_0x1c27b1[0x0]['start']['nodeAfter'],_0x53a9f3=_0x2b661f['commandParams'][0x0];this['editor']['model']['change'](_0x80a064=>{for(const _0x161f03 of _0x4e32b7)void 0x0!==_0x53a9f3[_0x161f03]?_0x80a064['setAttribute'](_0x161f03,_0x53a9f3[_0x161f03],_0x3e08a1):_0x80a064['removeAttribute'](_0x161f03,_0x3e08a1);if(_0x53a9f3['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x1e2c8d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x17c1bd=_0x1e2c8d['getColumnGroupElement'](_0x3e08a1);if(_0x17c1bd){const _0x230977=_0x1e2c8d['getTableColumnsWidths'](_0x17c1bd),_0x7ccf11=_0x3e08a1['getAttribute']('tableWidth');if(('string'==typeof _0x7ccf11&&_0x7ccf11['trim']()['endsWith']('px'))!==_0x230977['some'](_0x3866fe=>'string'==typeof _0x3866fe&&_0x3866fe['endsWith']('px'))){const _0x3f7b00=_0x1e2c8d['getTableColumnElements'](_0x17c1bd);_0x53a9f3['columnWidths']['forEach']((_0x2a1886,_0x47c30a)=>{_0x3f7b00[_0x47c30a]&&_0x80a064['setAttribute']('columnWidth',_0x2a1886,_0x3f7b00[_0x47c30a]);});}}}});}_getResizedColumnWidths(_0x4bbaca){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x4bbaca['is']('element','table'))return;const _0xcc1626=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe08ce6=_0xcc1626['getColumnGroupElement'](_0x4bbaca);return _0xe08ce6?_0xcc1626['getTableColumnsWidths'](_0xe08ce6):void 0x0;}handleSuggestionDescription(_0x29989b){if(_0x29989b['data'])switch(_0x29989b['subType']){case'tableProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x51bdd0,_0x1bf3a6){const _0x22ed68=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x7da82c of _0x22ed68['getSuggestions']({'skipNotAttached':!0x0})){const _0x268b60=_0x7da82c['getContainedElement']();if(_0x7da82c['subType']===_0x1bf3a6&&_0x268b60===_0x51bdd0)return _0x7da82c;}return null;}_registerTablePropertiesAttributes(){const _0x511995=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bfa78=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x120ce1 of _0x2bfa78){const _0x5960eb=_0x120ce1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x511995['descriptionFactory']['registerAttributeLabel'](_0x120ce1,Bt(this['editor']['locale'],'FORMAT_'+_0x5960eb));}}},on=class extends _0x27de82{afterInit(){const _0x5e68dc=this['editor'];if(!_0x5e68dc['plugins']['has']('LineHeight'))return;const _0x557db8=_0x5e68dc['plugins']['get']('TrackChangesEditing'),_0x34cd8f=_0x5e68dc['locale'];_0x557db8['enableDefaultAttributesIntegration']('lineHeight'),_0x557db8['descriptionFactory']['registerAttributeLabel']('lineHeight',Bt(_0x34cd8f,'FORMAT_LINE_HEIGHT'));}};const an='$elementName';function cn(_0x3032b6){return'marker'==_0x3032b6['type']&&_0x3032b6['name']['startsWith']('$markedRemove');}function ln(_0x593201){return _0x593201?[_0x593201]:[];}var un=class extends _0x27de82{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x2c9b6f,_0x343b2a,_0x15d2c7,_0x29e1f3,vt,Dt,Ut,Pt,Gt,Ht,Wt,zt,Vt,jt,Kt,qt,Yt,ne,ie,se,oe,ae,ce,ue,de,he,ge,fe,me,Te,Ee,_e,pe,Le,Ae,ke,Me,Ie,Qt,on,Jt,Re,Ne,ye,Se,Oe,we,Be,Fe,ve,De,Pe,xe,Ge,$e,We,Ve,ze,sn,Xe,Qe,Je,rn,Ze,tn,en,nn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ade0){super(_0x35ade0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d3b3c,_0x6889a0,_0x5207a1,_0x276a82)=>{this['_model']['change'](()=>{for(const _0x466840 of[..._0x276a82,..._0x5207a1])this['_model']['markers']['has'](_0x466840)&&_0x35ade0['editing']['reconvertMarker'](_0x466840);});}),this['descriptionFactory']=new Ft(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new dn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x35ade0['plugins']['get'](_0x2c9b6f),this['_suggestionsConversion']=_0x35ade0['plugins']['get'](_0x343b2a),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x35ade0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x35ade0['config']['get']('trackChanges.trackFormatChanges'),_0x35ade0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x35ade0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Lt(_0x35ade0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x24ae45=this['editor'];_0x24ae45['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39160d,{writer:_0x35a339})=>{let _0x4016b2='suggestion:'+_0x39160d['getAttribute']('suggestion-type')+':'+_0x39160d['getAttribute']('id');return _0x39160d['getAttribute']('marker-count')&&(_0x4016b2+=':'+_0x39160d['getAttribute']('marker-count')),_0x35a339['createElement']('$marker',{'data-name':_0x4016b2});}}),_0x24ae45['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x24ae45['model']['document']['registerPostFixer'](_0x6942bf=>{let _0x2e37f2=!0x1;const _0x46762b=Array['from'](_0x24ae45['model']['document']['differ']['getChangedMarkers']()),_0xc0362a=new Set();for(const {name:_0x263df1,data:_0x38a3ca}of _0x46762b){const {group:_0x362ab5,type:_0x57b849,subType:_0x10faff,id:_0x3bb58f}=it(_0x263df1);if('suggestion'!==_0x362ab5)continue;const _0x4fc6e4=_0x10faff?'suggestion:'+_0x57b849+':'+_0x10faff+':'+_0x3bb58f:'suggestion:'+_0x57b849+':'+_0x3bb58f,_0x493373=_0x24ae45['model']['markers']['getMarkersGroup'](_0x4fc6e4),_0x151be0=_0x24ae45['model']['markers']['get'](_0x263df1),_0x35d180=this['_suggestions']['get'](_0x3bb58f);if(null!=_0x38a3ca['newRange']){'formatInline'==_0x57b849&&(_0x2e37f2=_0x2e37f2||fn(_0x38a3ca['newRange'],_0x263df1,_0x6942bf,_0x24ae45['model']['schema']));const _0x4d8c0d='attribute'==_0x57b849&&this['_suggestionsConversion']['isBlockAttribute'](kn(_0x10faff)),_0x5f2503='attribute'==_0x57b849&&this['_suggestionsConversion']['isInlineAttribute'](kn(_0x10faff));if(_0x38a3ca['newRange']['isCollapsed']||'$graveyard'==_0x38a3ca['newRange']['root']['rootName']||'formatBlock'==_0x57b849&&!En(_0x38a3ca['newRange'])||_0x4d8c0d&&!En(_0x38a3ca['newRange'])||_0x5f2503&&Tn(_0x38a3ca['newRange'])||'deletion'==_0x57b849&&Tn(_0x38a3ca['newRange'])||_0x151be0&&_n(_0x151be0,_0x493373))_0x6942bf['removeMarker'](_0x263df1),_0x2e37f2=!0x0;else{if(!_0x35d180||!_0x35d180['isInContent'])continue;if(_0x38a3ca['newRange']&&_0x38a3ca['oldRange']&&_0x38a3ca['newRange']['isEqual'](_0x38a3ca['oldRange']))continue;_0xc0362a['add'](_0x35d180);}}}return _0xc0362a['size']>0x0&&(_0x2e37f2=!!this['_joinWithAdjacentSuggestions'](_0xc0362a)||_0x2e37f2),_0x2e37f2;}),_0x24ae45['model']['document']['registerPostFixer'](_0x30eb12=>{let _0x105323=!0x1;for(const _0x2f4464 of _0x24ae45['model']['document']['differ']['getChanges']())if('insert'==_0x2f4464['type'])for(const _0x24ef4e of this['_suggestions']['values']()){if(_0x24ef4e['isMultiRange']||!_0x24ef4e['isInContent'])continue;const _0x353b0e='formatBlock'==_0x24ef4e['type'],_0x3cd1b9=this['_getAttributeKey'](_0x24ef4e),_0x4ab732=_0x3cd1b9&&this['_suggestionsConversion']['isBlockAttribute'](_0x3cd1b9);if(!_0x353b0e&&!_0x4ab732)continue;const _0xcb7aa7=_0x24ef4e['getFirstRange']();if(_0xcb7aa7['start']['parent']!=_0xcb7aa7['end']['parent']&&!_0xcb7aa7['end']['isAtEnd']){const _0x3b50dc=_0x24ae45['model']['createPositionAt'](_0xcb7aa7['start']['nodeAfter'],'end'),_0x2fe5fa=_0x24ae45['model']['createRange'](_0xcb7aa7['start'],_0x3b50dc);_0x30eb12['updateMarker'](_0x24ef4e['getFirstMarker'](),{'range':_0x2fe5fa}),_0x105323=!0x0;}}return _0x105323;}),_0x24ae45['model']['document']['registerPostFixer'](_0x2fb6ca=>this['_processAttributeChanges'](_0x2fb6ca)),_0x24ae45['model']['document']['registerPostFixer'](_0x5db696=>!_0x5db696['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5db696)),_0x24ae45['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x24ae45['model']['document']['on']('change:data',(_0x359453,_0x5491c5)=>{if(!_0x5491c5['isLocal']||_0x5491c5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1c4181=_0x24ae45['model']['document']['differ']['getChanges']();if(0x0==_0x1c4181['length'])return;const _0x2492f2=[],_0x4312a1=_0x1c4181['filter'](_0x341c6c=>'attribute'==_0x341c6c['type']),_0x54ebf9=_0x1c4181['filter'](_0x1d4bda=>'insert'==_0x1d4bda['type']&&'$text'!=_0x1d4bda['name']);for(const _0x564b0e of _0x4312a1)this['_suggestionsConversion']['isRegisteredAttribute'](_0x564b0e['attributeKey'])&&_0x2492f2['push']({'key':_0x564b0e['attributeKey'],'newValue':_0x564b0e['attributeNewValue'],'oldValue':_0x564b0e['attributeOldValue'],'range':pn(_0x564b0e['range'],_0x24ae45['model'])});for(const _0x4db9a5 of _0x54ebf9){if('rename'!=_0x4db9a5['action']&&'refresh'!=_0x4db9a5['action'])continue;const _0x13416a=Ln(_0x4db9a5['position']['nodeAfter'],_0x24ae45['model']),_0xa13903=_0x4db9a5['before'];'rename'==_0x4db9a5['action']&&_0x2492f2['push']({'key':an,'newValue':_0x4db9a5['name'],'oldValue':_0xa13903['name'],'range':_0x13416a});for(const [_0x2177b4,_0x5f142f]of _0xa13903['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2177b4))continue;const _0x433f77=_0x4db9a5['attributes']['get'](_0x2177b4);_0x5f142f!==_0x433f77&&_0x2492f2['push']({'key':_0x2177b4,'newValue':_0x433f77,'oldValue':_0x5f142f,'range':_0x13416a});}for(const [_0x414180,_0x43e6bb]of _0x4db9a5['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x414180)&&(_0xa13903['attributes']['has'](_0x414180)||_0x2492f2['push']({'key':_0x414180,'newValue':_0x43e6bb,'oldValue':null,'range':_0x13416a}));}0x0!=_0x2492f2['length']&&_0x24ae45['model']['enqueueChange'](_0x5491c5,_0x512f40=>{const _0x4664d4=_0x34e203();for(const {range:_0x1b6c3b,key:_0x40e356,oldValue:_0x2122e3,newValue:_0x21e9bc}of _0x2492f2)this['markAttributeChange'](_0x1b6c3b,_0x40e356,_0x2122e3,_0x21e9bc,{'groupId':_0x4664d4});this['_reduceExistingSuggestions'](_0x512f40,_0x2492f2);});},{'priority':'lowest'}),_0x24ae45['model']['markers']['on']('update:suggestion',(_0x2aab44,_0x701289,_0x174bd3)=>{if(null==_0x174bd3){const {id:_0x1450f8}=it(_0x701289['name']),_0x5ee1fd=this['_suggestions']['get'](_0x1450f8);_0x5ee1fd&&_0x5ee1fd['addMarkerName'](_0x701289['name']);}}),_0x24ae45['model']['document']['on']('change:data',()=>{const _0x381c66=Array['from'](_0x24ae45['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2eb087=>'suggestion'===it(_0x2eb087['name'])['group']);if(0x0===_0x381c66['length'])return;_0x381c66['sort']((_0x328a88,_0x3bd05f)=>{const _0x5a6997=_0x328a88['data']['oldRange'],_0x297e38=_0x3bd05f['data']['oldRange'];return null===_0x5a6997&&null===_0x297e38?0x0:null===_0x5a6997&&null!==_0x297e38?-0x1:null!==_0x5a6997&&null===_0x297e38?0x1:_0x5a6997['start']['isBefore'](_0x297e38['start'])?-0x1:0x1;});const _0x1574c8=new Set(),_0x2ceded=new Set();for(const {name:_0x28f98e,data:_0x103ed6}of _0x381c66){const {id:_0x2e05be}=it(_0x28f98e);if(null===_0x103ed6['oldRange']){const _0x268bdd=this['_handleNewSuggestionMarker'](_0x28f98e);_0x2ceded['add'](_0x268bdd);}else{const _0xf64be2=this['_suggestions']['get'](_0x2e05be);null!==_0x103ed6['newRange']||_0xf64be2['isInContent']?(_0x1574c8['add'](_0xf64be2['head']),_0x2ceded['add'](_0xf64be2)):this['_removeSuggestion'](_0xf64be2);}}_0x2ceded['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ceded);for(const _0x221b4c of _0x1574c8)this['fire']('suggestionChanged',_0x221b4c);}),_0x24ae45['model']['on']('applyOperation',(_0x48b996,_0x20f95a)=>{const _0xa16e79=_0x20f95a[0x0];if(!this['_suggestions']['size'])return;if(!_0xa16e79['isDocumentOperation'])return;if(_0xa16e79['batch']['isUndo']||!_0xa16e79['batch']['isLocal'])return;let _0x161d7e,_0x2fe57c;switch(_0xa16e79['type']){case'insert':_0x161d7e=_0x24ae45['model']['createPositionAt'](_0xa16e79['position']),_0x2fe57c=_0x161d7e['getShiftedBy'](_0xa16e79['howMany']);break;case'split':_0x161d7e=_0x24ae45['model']['createPositionAt'](_0xa16e79['splitPosition']),_0x2fe57c=_0x24ae45['model']['createPositionAt'](_0xa16e79['moveTargetPosition']);break;case'move':_0x161d7e=_0x24ae45['model']['createPositionAt'](_0xa16e79['targetPosition']),_0x2fe57c=_0x161d7e['getShiftedBy'](_0xa16e79['howMany']);break;default:return;}const _0x3647b2=_0x24ae45['model']['createRange'](_0x161d7e,_0x2fe57c);_0x24ae45['model']['change'](()=>{for(const {suggestion:_0x3d5e36,meta:_0x2f90fa}of this['_findSuggestions'](_0x3647b2)){if(_0x3d5e36['isMultiRange'])continue;if('formatInline'==_0x3d5e36['type'])continue;const _0x53a6f4=this['_getAttributeKey'](_0x3d5e36);if(_0x53a6f4&&this['_suggestionsConversion']['isBlockAttribute'](_0x53a6f4)&&'split'!=_0xa16e79['type'])continue;const _0x2751f7=_0x3d5e36['data']&&_0x3d5e36['data']['multipleBlocks'];('formatBlock'!=_0x3d5e36['type']||'split'==_0xa16e79['type']&&!_0x2751f7)&&(_0x2f90fa['containsRangeInObject']||'insertion'==_0x3d5e36['type']&&_0x2f90fa['isOwn']||_0x3d5e36['getFirstRange']()['containsRange'](_0x3647b2)&&this['_breakSuggestionMarker'](_0x3d5e36,_0x161d7e,_0x2fe57c));}});},{'priority':'lowest'}),_0x24ae45['model']['on']('deleteContent',(_0x23bad1,_0x505762)=>{const _0x59f27c=_0x505762[0x0],_0x37afca=_0x505762[0x1];if(_0x37afca&&_0x37afca['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x59f27c['isCollapsed'])return;const _0x1cd64e=_0x24ae45['model']['schema'],{start:_0x8e72e1,end:_0x2a02e1}=_0x59f27c['getFirstRange'](),_0x15bdfc=_0x8e72e1['nodeAfter']&&_0x1cd64e['isLimit'](_0x8e72e1['nodeAfter'])?null:_0x1cd64e['getNearestSelectionRange'](_0x8e72e1,'forward'),_0x33af95=_0x2a02e1['nodeBefore']&&_0x1cd64e['isLimit'](_0x2a02e1['nodeBefore'])?null:_0x1cd64e['getNearestSelectionRange'](_0x2a02e1,'backward'),_0xceabec=_0x24ae45['model']['createRange'](_0x15bdfc?_0x15bdfc['start']:_0x8e72e1,_0x33af95?_0x33af95['end']:_0x2a02e1);_0x24ae45['model']['change'](_0xea05f6=>{this['markDeletion'](_0xceabec);const _0xbe4894=_0x24ae45['model']['schema']['getNearestSelectionRange'](_0xceabec['start']);_0x59f27c['is']('documentSelection')?_0xea05f6['setSelection'](_0xbe4894):_0x59f27c['setTo'](_0xbe4894);}),_0x23bad1['stop']();},{'priority':_0x376900['normal']+0xa}),_0x24ae45['model']['on']('insertContent',(_0x4b6671,_0x4c8032)=>{const _0x51d7f7=_0x4c8032[_0x4c8032['length']-0x1];_0x51d7f7&&_0x51d7f7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x24ae45['model']['change'](()=>{let _0x2bf8fe=_0x24ae45['model']['insertContent'](_0x4c8032[0x0],_0x4c8032[0x1],_0x4c8032[0x2],{'forceDefaultExecution':!0x0});if(!_0x2bf8fe)return;_0x4b6671['return']=_0x2bf8fe['clone']();const _0x1997fc=_0x2bf8fe['end']['nodeBefore'],_0x2b9e99=_0x24ae45['model']['schema'];_0x1997fc&&_0x2b9e99['isBlock'](_0x1997fc)&&!_0x2b9e99['isObject'](_0x1997fc)&&(_0x2bf8fe=_0x24ae45['model']['createRange'](_0x2bf8fe['start'],_0x24ae45['model']['createPositionAt'](_0x1997fc,'end'))),this['markInsertion'](_0x2bf8fe);}),_0x4b6671['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d8897=new It(_0x24ae45,this['_suggestions']);_0x24ae45['commands']['add']('acceptSuggestion',_0x5d8897),this['enableCommand']('acceptSuggestion');const _0x58621f=new At(_0x24ae45,this['_suggestions']);_0x24ae45['commands']['add']('discardSuggestion',_0x58621f),this['enableCommand']('discardSuggestion'),_0x24ae45['commands']['add']('acceptAllSuggestions',new St(_0x24ae45,_0x5d8897,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x24ae45['commands']['add']('discardAllSuggestions',new St(_0x24ae45,_0x58621f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x24ae45['commands']['add']('acceptSelectedSuggestions',new Mt(_0x24ae45,_0x5d8897,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x24ae45['commands']['add']('discardSelectedSuggestions',new Mt(_0x24ae45,_0x58621f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4dfa71=_0x24ae45['plugins']['get'](_0x2c9b6f);this['listenTo'](_0x4dfa71,'addComment',(_0x115797,{threadId:_0x29250c})=>{const _0x20f969=this['_suggestions']['get'](_0x29250c);_0x20f969&&_0x20f969['commentThread']&&0x1===_0x20f969['commentThread']['length']&&this['_updateSuggestionData'](_0x29250c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4dfa71,'removeComment',(_0x48e52e,{threadId:_0x3f2ca4})=>{const _0x49caae=this['_suggestions']['get'](_0x3f2ca4);_0x49caae&&_0x49caae['commentThread']&&!_0x49caae['commentThread']['length']&&this['_updateSuggestionData'](_0x3f2ca4,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x1205a2){const _0x930f07='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0xf0587=0x797a0,_0x2613a2={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x5f5efa(_0x127d8d){const _0x269bfc=new window['Promise'](_0x4fe2e8=>{_0x127d8d['once']('ready',_0x4fe2e8);}),_0x4e5da9=window['Date']['now'](),_0x540a90=_0x127d8d['config']['get']('licenseKey');async function _0x539284(){let _0xb17de0,_0x1fd8a1=null,_0xe44eff=null;try{return'GPL'==_0x540a90?'NotAllowed':(_0xb17de0=_0x2ef1f7(),_0xb17de0?(_0xb17de0['usageEndpoint']&&(_0xe44eff=_0x2d56ef(_0xb17de0['usageEndpoint'],_0xb17de0['jti'])),await _0xcb6088()?_0x405c19()?_0x4a1a41()?'Expired':_0x3414e8()?('evaluation'==_0xb17de0['licenseType']&&(_0x1fd8a1=_0x5ec36a('EvaluationLimit')),await _0x1f8491()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4a1a41(){const _0x2cbb22=['evaluation','trial']['includes'](_0xb17de0['licenseType'])?_0x4e5da9/0x3e8:0xe10*_0xf0587;return _0xb17de0['exp']<_0x2cbb22;}function _0x405c19(){const _0x106ec1=_0xb17de0['features'];if(!_0x106ec1)return!0x1;if(_0x106ec1['includes']('*'))return!0x0;if(_0x106ec1['includes']('TC'))return!0x0;if(_0x106ec1['includes']('RTC')){if(_0x35ddb0())return!0x0;if(_0x1370ee()||_0x4d6a93())return!0x0;}return!0x1;}function _0x3414e8(){const _0x53b2a0=_0xb17de0['licensedHosts'];if(!_0x53b2a0||0x0==_0x53b2a0['length'])return!0x0;const {hostname:_0x506859}=new URL(window['location']['href']);if(_0x53b2a0['includes'](_0x506859))return!0x0;const _0x26008f=_0x506859['split']('.');return _0x53b2a0['filter'](_0x273226=>_0x273226['includes']('*'))['map'](_0x3320a7=>_0x3320a7['split']('.'))['filter'](_0x13a181=>_0x13a181['length']<=_0x26008f['length'])['map'](_0x239bcb=>Array(_0x26008f['length']-_0x239bcb['length'])['fill']('*'===_0x239bcb[0x0]?'*':'')['concat'](_0x239bcb))['some'](_0x4d8387=>_0x26008f['every']((_0x5bd1eb,_0x3c59a4)=>_0x4d8387[_0x3c59a4]===_0x5bd1eb||'*'===_0x4d8387[_0x3c59a4]));}function _0x1f8491(){return _0x1fd8a1&&_0xe44eff?new window['Promise']((_0x537c14,_0x33bf0e)=>{_0x1fd8a1['then'](_0x537c14,_0x33bf0e),_0xe44eff['then'](_0x78a9fe=>{'Valid'!=_0x78a9fe&&_0x537c14(_0x78a9fe);},_0x33bf0e);}):_0x1fd8a1||_0xe44eff||'Valid';}}function _0x2d56ef(_0x1ec11c,_0x74c469){return new window['Promise'](_0x32bb0d=>{if(_0x2cb94f())return _0x32bb0d('Valid');_0x43cc40(),_0x127d8d['decorate']('_sendUsageRequest');let _0x96c593=!0x1;const _0x3191d6=_0x34e203();function _0x2997d6(_0x5ad5f9){return!!_0x5ad5f9&&('object'==typeof _0x5ad5f9||'function'==typeof _0x5ad5f9)&&'function'==typeof _0x5ad5f9['then']&&'function'==typeof _0x5ad5f9['catch'];}function _0x2e8ba5(_0x2627ff){_0x22975c(_0x2627ff)['then'](_0x39ac6e=>_0x39ac6e&&'ok'==_0x39ac6e['status']?_0x4c72ff(_0x1ac8de(_0x3191d6+_0x74c469))!=_0x39ac6e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x48c992=>(_0x52a355(),_0x48c992),()=>{const _0x3280ee=_0x4f17eb();return null==_0x3280ee?(_0x52a355(),'Valid'):_0x4e5da9-_0x3280ee>0x240c8400?'UsageLimit':'Valid';})['then'](_0x32bb0d)['catch'](()=>{_0x32bb0d('UsageLimit');});const _0x21c0a6=0x36ee80;function _0x52a355(){const _0x13bf59='llct-'+_0x4c72ff(_0x1ac8de(_0x1ec11c)),_0x1e70d0=_0x19f61d(_0x4c72ff(window['Math']['ceil'](_0x4e5da9/_0x21c0a6)));window['localStorage']['setItem'](_0x13bf59,_0x1e70d0);}function _0x4f17eb(){const _0x17a5b4='llct-'+_0x4c72ff(_0x1ac8de(_0x1ec11c)),_0x3b71d0=window['localStorage']['getItem'](_0x17a5b4);return _0x3b71d0?window['parseInt'](_0x19f61d(_0x3b71d0),0x10)*_0x21c0a6:null;}function _0x22975c(_0x4f3a0f){return new window['Promise']((_0x1c06a5,_0x424713)=>{_0x4f3a0f['then'](_0x1c06a5,_0x424713),window['setTimeout'](_0x424713,0x1d4c0);});}}_0x127d8d['on']('_sendUsageRequest',(_0x27d028,_0x30e264)=>{if(_0x30e264[0x0]!=_0x1ec11c)return _0x32bb0d('UsageLimit');_0x30e264[0x1]={..._0x30e264[0x1],'requestId':_0x3191d6};},{'priority':'high'}),_0x127d8d['on']('_sendUsageRequest',_0x456138=>{_0x2997d6(_0x456138['return'])&&(_0x96c593=!0x0,_0x2e8ba5(_0x456138['return']));},{'priority':'low'}),_0x269bfc['then'](()=>{_0x96c593||_0x32bb0d('UsageLimit');});});function _0x2cb94f(){return'auto'==_0x127d8d['editing']['view']['_overlayModeHint'];}function _0x43cc40(){_0x127d8d['editing']['view']['_overlayModeHint']='auto';}}function _0x5ec36a(_0x17126e){const _0x1477b8=[new window['Promise'](_0x34387b=>setTimeout(_0x34387b,0x93ecc)),_0x269bfc['then'](()=>new window['Promise'](_0x4249be=>{let _0x83ecf3=0x0;_0x127d8d['model']['on']('applyOperation',(_0xfb1a8e,_0x2d2bca)=>{_0x2d2bca[0x0]['isDocumentOperation']&&_0x83ecf3++,0x5e8==_0x83ecf3&&(_0x4249be(),_0xfb1a8e['off']());});}))];return window['Promise']['race'](_0x1477b8)['then'](()=>_0x17126e);}async function _0x204635(){await _0x269bfc,_0x127d8d['model']['change']=_0xc1a579,_0x127d8d['model']['enqueueChange']=_0xc1a579,_0x127d8d['enableReadOnlyMode']('model');}function _0x35ddb0(){return _0x2228f0('WebSocketGateway')&&'connected'==_0x462abc('WebSocketGateway')['state'];}function _0x1370ee(){return _0x2228f0('RevisionViewerIntegration');}function _0x4d6a93(){return _0x2228f0('TrackChangesDataGetter');}function _0x2126d2(_0x3e8def){const _0x349416=_0x2599f2();_0x127d8d[_0x349416]='trackChangesLicenseKey'+_0x3e8def,'Valid'!=_0x3e8def&&_0x204635();}function _0x2599f2(){const _0x3a831f=window['String'](window['performance']['now']())['replace']('.','');let _0x1b1a00='U';for(let _0x27943b=0x0;_0x27943b<_0x3a831f['length'];_0x27943b+=0x2){let _0x57a8b2=window['parseInt'](_0x3a831f['substring'](_0x27943b,_0x27943b+0x2));_0x57a8b2>=0x3e&&(_0x57a8b2-=0x3e),_0x1b1a00+=_0x930f07[_0x57a8b2];}return _0x1b1a00;}function _0x2ef1f7(){const _0x4445ca=_0x540a90['split']('.');if(0x3!=_0x4445ca['length'])return null;return _0x30f5c0(_0x4445ca[0x1]);function _0x30f5c0(_0x1b64ba){const _0x4d7589=_0x3fb28e(_0x1b64ba);return _0x4d7589&&_0x164492()?_0x4d7589:null;function _0x164492(){const _0x2a3263=_0x4d7589['jti'],_0x49a166=window['parseInt'](_0x2a3263['substring'](_0x2a3263['length']-0x8),0x10),_0x53a32a={..._0x4d7589,'jti':_0x2a3263['substring'](0x0,_0x2a3263['length']-0x8)};return delete _0x53a32a['vc'],_0x1ac8de(_0x53a32a)==_0x49a166;}}}async function _0xcb6088(){let _0x36dbb3=!0x0;try{const [_0x338a21,_0x13c40e,_0x297ac6]=_0x540a90['split']('.');return _0x917ae4(_0x338a21),await _0xc5c995(_0x338a21,_0x13c40e,_0x297ac6),_0x36dbb3;}catch{return!0x1;}function _0x917ae4(_0x257d4a){const _0x9e3b13=_0x3fb28e(_0x257d4a);_0x9e3b13&&'ES256'==_0x9e3b13['alg']||(_0x36dbb3=!0x1);}async function _0xc5c995(_0x2b6f9d,_0x1132a8,_0x1b1dbf){const _0x21da22=window['Uint8Array']['from'](_0xb950ad(_0x1b1dbf),_0x329084=>_0x329084['charCodeAt'](0x0)),_0x4415ac=new window['TextEncoder']()['encode'](_0x2b6f9d+'.'+_0x1132a8),_0x1c4d5a=window['crypto']['subtle'];if(!_0x1c4d5a)return;const _0x588497=await _0x1c4d5a['importKey']('jwk',_0x2613a2,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1c4d5a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x588497,_0x21da22,_0x4415ac)||(_0x36dbb3=!0x1);}}function _0x3fb28e(_0x52f7dc){return _0x52f7dc['startsWith']('ey')?JSON['parse'](_0xb950ad(_0x52f7dc)):null;}function _0xb950ad(_0x5a494d){return window['atob'](_0x5a494d['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1ac8de(_0xe3f0dc){let _0x34676b=0x1505;function _0x2c5d54(_0x47bbb8){for(let _0x59de74=0x0;_0x59de74<_0x47bbb8['length'];_0x59de74++){const _0x1ee8e9=_0x47bbb8['charCodeAt'](_0x59de74);_0x34676b=(_0x34676b<<0x5)+_0x34676b+_0x1ee8e9,_0x34676b&=_0x34676b;}}function _0x71006(_0x3a8d38){Array['isArray'](_0x3a8d38)?_0x3a8d38['forEach'](_0x71006):_0x3a8d38&&'object'==typeof _0x3a8d38?Object['entries'](_0x3a8d38)['sort']()['forEach'](([_0x25e494,_0x450763])=>{_0x2c5d54(_0x25e494),_0x71006(_0x450763);}):_0x2c5d54(window['String'](_0x3a8d38));}return _0x71006(_0xe3f0dc),_0x34676b>>>0x0;}function _0x4c72ff(_0xc8db24){return _0xc8db24['toString'](0x10)['padStart'](0x8,'0');}function _0x19f61d(_0x57f6eb){return _0x57f6eb['split']('')['reverse']()['join']('');}function _0x2228f0(_0xfb01f0){return _0x127d8d['plugins']['has'](_0xfb01f0);}function _0x462abc(_0x3eec17){return _0x127d8d['plugins']['get'](_0x3eec17);}function _0xc1a579(){}_0x2126d2(await _0x539284());}_0x5f5efa(_0x1205a2['editor']);}(this);}set adapter(_0x34c5dc){if(this['_adapter'])throw new _0x2d6318('track-changes-adapter-already-set',this);this['_adapter']=_0x34c5dc;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x3a4c70=!0x1,toJSON:_0x3d0b67=!0x1}={}){const _0x326aa5=[];for(const _0x4dbd47 of this['_suggestions']['values']())_0x3a4c70&&!_0x4dbd47['isInContent']||_0x326aa5['push'](_0x4dbd47);return _0x3d0b67?_0x326aa5['map'](_0x4a8e77=>_0x4a8e77['toJSON']()):_0x326aa5;}getSuggestion(_0x5f467b){const _0x5e7085=this['_suggestions']['get'](_0x5f467b);if(!_0x5e7085)throw new _0x2d6318('track-changes-suggestion-not-found',this);return _0x5e7085;}hasSuggestion(_0x4dd399){return this['_suggestions']['has'](_0x4dd399);}addSuggestionData(_0x358485){const {authorId:_0x435034,id:_0x13ffb4,originalSuggestionId:_0x2c06f2,attributes:_0x368911}=_0x358485,[_0x2dd169,_0x58b49d]=_0x358485['type']['split'](':'),_0x574d73=this['_suggestions']['get'](_0x13ffb4)||this['_createSuggestion'](_0x2dd169,_0x58b49d,_0x13ffb4,_0x435034,_0x368911,_0x2c06f2);if(this['_addThreadToSuggestion'](_0x574d73),this['_checkSuggestionCorrectness'](_0x574d73,_0x2dd169,_0x58b49d||null,_0x435034),_0x574d73['createdAt']=_0x358485['createdAt'],_0x574d73['_isDataLoaded']=!0x0,_0x368911&&_0x368911['@external']){const _0x397abe=_0x368911['@external'],_0x1a5dc4=this['_getExternalAuthor'](_0x397abe['authorName']);_0x574d73['authoredAt']=_0x397abe['createdAt'],_0x574d73['author']=_0x1a5dc4;}else _0x574d73['authoredAt']=_0x358485['createdAt'];switch(_0x358485['data']&&(_0x574d73['data']=_0x358485['data']),_0x358485['attributes']&&(_0x574d73['attributes']=_0x358485['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x574d73['_saved']=!0x0),this['_suggestionState']['get'](_0x574d73)){case'notReady':this['_suggestionState']['set'](_0x574d73,'dataReady');break;case'markerReady':_0x574d73['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x574d73])),this['_refreshSuggestionsChain'](new Set([_0x574d73])),this['_suggestionState']['set'](_0x574d73,'ready'),this['fire']('suggestionLoaded',_0x574d73)):this['_suggestionState']['set'](_0x574d73,'removed');}return _0x574d73;}acceptSuggestion(_0x269aab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x145fcf of _0x269aab['getAllAdjacentSuggestions']())_0x145fcf['accept']();});});}discardSuggestion(_0x1a9a54){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15ca82 of _0x1a9a54['getAllAdjacentSuggestions']())_0x15ca82['discard']();});});}['enableCommand'](_0x1ef44a,_0x447fb5){const _0x396744=this['editor']['commands']['get'](_0x1ef44a);if(!_0x396744)throw new _0x2d6318('track-changes-command-not-found',this,{'commandName':_0x1ef44a});if(this['_enabledCommands']['has'](_0x396744))throw new _0x2d6318('track-changes-enable-command-twice',this,{'commandName':_0x1ef44a});this['_enabledCommands']['add'](_0x396744),_0x447fb5&&_0x396744['on']('execute',(_0x18b596,_0x2c8121)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2c8121['length']>0x0&&_0x2c8121[_0x2c8121['length']-0x1]&&_0x2c8121[_0x2c8121['length']-0x1]['forceDefaultExecution']?_0x2c8121['pop']():(_0x18b596['return']=_0x447fb5((..._0x12c62f)=>_0x396744['execute'](..._0x12c62f,{'forceDefaultExecution':!0x0}),..._0x2c8121),_0x18b596['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x213a80){let _0x42f610,_0x1f24c2;const _0x2ff6ef=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x42f610=_0x213a80();}catch(_0x1e4290){_0x1f24c2=_0x1e4290;}return _0x2ff6ef||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1f24c2&&_0x2d6318['rethrowUnexpectedError'](_0x1f24c2,this),_0x42f610;}markInsertion(_0x128e2e,_0x186273=null,_0x260a4d={}){if(_0x128e2e['isCollapsed'])return null;const _0x459c05=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x260a4d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x32155b,meta:_0x12a235}of this['_findSuggestions'](_0x128e2e,'insertion'))if(_0x12a235['isOwn']){if(!_0x12a235['isNextTo']){if(_0x12a235['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!bn(_0x32155b,_0x260a4d))continue;return _0x32155b;}if(bn(_0x32155b,_0x260a4d))return _0x32155b;this['_breakSuggestionMarker'](_0x32155b,_0x128e2e['start'],_0x128e2e['end']);break;}if(_0x186273==_0x32155b['subType']&&bn(_0x32155b,_0x260a4d)){const _0x2e4e6f=_0x32155b['getFirstRange']();return _0x2e4e6f['start']['isEqual'](_0x128e2e['end'])?this['_setSuggestionRange'](_0x32155b,this['_model']['createRange'](_0x128e2e['start'],_0x2e4e6f['end'])):this['_setSuggestionRange'](_0x32155b,this['_model']['createRange'](_0x2e4e6f['start'],_0x128e2e['end'])),_0x32155b;}}const _0x2b83d7=_0x34e203(),_0xc277b1=_0x459c05['id'],_0x978751=_0x186273?'insertion:'+_0x186273:'insertion',_0x452f01=this['_setSuggestionData']({'id':_0x2b83d7,'type':_0x978751,'createdAt':new Date(),'authorId':_0xc277b1,'attributes':_0x260a4d});return this['_addSuggestionMarker'](_0x978751,_0x2b83d7,_0xc277b1,_0x128e2e),_0x452f01;}markMultiRangeInsertion(_0x3ddb74,_0x581b56='multi',_0x287247={}){const _0x233f6d=this['editor']['plugins']['get']('Users')['me'],_0x44eaa6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x581b56,'join');this['_trackingSessionId']&&(_0x287247['trackingSessionId']=this['_trackingSessionId']);for(const _0x335379 of this['getSuggestions']())if(_0x335379['author']['id']==_0x233f6d['id']&&'insertion'==_0x335379['type']&&_0x335379['subType']==_0x581b56&&bn(_0x335379,_0x287247)&&(_0x44eaa6(_0x335379['getRanges'](),_0x3ddb74)||_0x44eaa6(_0x3ddb74,_0x335379['getRanges']()))){for(const _0x13c07d of _0x3ddb74)_0x335379['addRange'](_0x13c07d);return _0x335379;}for(const {suggestion:_0x7b2f37,meta:_0x232e70}of this['_findSuggestions'](_0x3ddb74,'insertion')){if(!_0x232e70['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x232e70['containsRangeInObject'])continue;if(!bn(_0x7b2f37,_0x287247))continue;let _0x4c949d=!0x0;for(const _0x3d94e0 of _0x7b2f37['getRanges']())for(const _0x301135 of _0x3ddb74)if(!_0x3d94e0['containsRange'](_0x301135)){_0x4c949d=!0x1;break;}if(_0x4c949d)return _0x7b2f37;}const _0x1f03f8=_0x34e203(),_0x799596=_0x233f6d['id'],_0x2b71b3='insertion:'+_0x581b56,_0x334aeb=this['_setSuggestionData']({'id':_0x1f03f8,'type':_0x2b71b3,'createdAt':new Date(),'authorId':_0x799596,'attributes':_0x287247});for(const _0x267bd7 of _0x3ddb74)this['_addSuggestionMarker'](_0x2b71b3,_0x1f03f8,_0x799596,_0x267bd7,wt['getMultiRangeId']());return _0x334aeb;}markInlineFormat(_0x5165fe,_0x4c7761,_0x3a02ff=null,_0x13f419={}){if(_0x3a02ff=_0x3a02ff||mn(_0x4c7761),_0x5165fe['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x13f419['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x8bd3ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a02ff,'accept');return this['forceDefaultExecution'](()=>_0x8bd3ad([_0x5165fe],_0x4c7761,_0x13f419)),null;}const _0x57f205=this['editor']['plugins']['get']('Users')['me'],_0x290312=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x524014,meta:_0x48a811}of this['_findSuggestions'](_0x5165fe,'insertion'))_0x48a811['isOwn']&&!_0x48a811['isInsideObject']&&_0x290312['push'](..._0x524014['getRanges']());}const _0x4d0fd6=function(_0x7bf506,_0x2f5316){const _0x16259d=[];for(const _0x59eb02 of _0x2f5316){const _0x3a9557=_0x7bf506['getIntersection'](_0x59eb02);_0x3a9557&&_0x16259d['push'](_0x3a9557);}return _0x16259d;}(_0x5165fe,_0x290312),_0x57cf31=function(_0x4505e5,_0x2b3662){const _0x40dfd7=[_0x4505e5];for(const _0x451669 of _0x2b3662){let _0x5b20a2=0x0;for(;_0x5b20a2<_0x40dfd7['length'];){const _0x3e66a6=_0x40dfd7[_0x5b20a2]['getDifference'](_0x451669);_0x40dfd7['splice'](_0x5b20a2,0x1,..._0x3e66a6),_0x5b20a2+=_0x3e66a6['length'];}}return _0x40dfd7;}(_0x5165fe,_0x290312);_0x4d0fd6['length']&&this['_model']['change'](()=>{for(const _0x155d18 of _0x4d0fd6){const _0xde4541=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a02ff,'accept');this['forceDefaultExecution'](()=>_0xde4541([_0x155d18],_0x4c7761,_0x13f419));}});for(const _0x8e11e9 of _0x57cf31){let _0x1b09a7=null,_0x23fb6d=_0x8e11e9['start'],_0x179250=_0x8e11e9['end'];for(const {suggestion:_0x45d7a4,meta:_0x5346f2}of this['_findSuggestions'](_0x8e11e9,'formatInline')){if(!_0x5346f2['isOwn'])continue;if(_0x45d7a4['subType']!=_0x3a02ff)continue;if(!bn(_0x45d7a4,_0x13f419))continue;const _0x4bf955=_0x45d7a4['getFirstRange']();if(_0x4bf955['containsRange'](_0x8e11e9,!0x0))return null;_0x23fb6d=_0x23fb6d['isBefore'](_0x4bf955['start'])?_0x23fb6d:_0x4bf955['start'],_0x179250=_0x179250['isAfter'](_0x4bf955['end'])?_0x179250:_0x4bf955['end'],_0x1b09a7?_0x4bf955['start']['isBefore'](_0x1b09a7['getFirstRange']()['start'])?(_0x1b09a7['removeMarkers'](),_0x1b09a7=_0x45d7a4):_0x45d7a4['removeMarkers']():_0x1b09a7=_0x45d7a4;}const _0x184a11=this['_model']['createRange'](_0x23fb6d,_0x179250);if(_0x1b09a7)this['_setSuggestionRange'](_0x1b09a7,_0x184a11);else{const _0x40cd5c=_0x34e203(),_0x4f2c52=_0x57f205['id'];this['_setSuggestionData']({'id':_0x40cd5c,'type':'formatInline:'+_0x3a02ff,'data':_0x4c7761,'createdAt':new Date(),'authorId':_0x4f2c52,'attributes':_0x13f419}),this['_addSuggestionMarker']('formatInline:'+_0x3a02ff,_0x40cd5c,_0x4f2c52,_0x184a11);}}return null;}markBlockFormat(_0x26c711,_0x4eb225,_0x12ec49=[],_0x10e1c9=null,_0x2f2ee3={}){_0x4eb225['formatGroupId']||(_0x4eb225['formatGroupId']=_0x4eb225['commandName']),_0x4eb225['multipleBlocks']=_0x26c711['is']('range'),_0x10e1c9=_0x10e1c9||mn(_0x4eb225);const _0x4149e2=_0x12ec49['map'](_0x3dc069=>Ln(_0x3dc069,this['_model'])),_0x38100f=_0x26c711['is']('range')?_0x26c711:Ln(_0x26c711,this['_model']);if(this['_trackingSessionId']&&(_0x2f2ee3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c90e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10e1c9,'accept');return this['forceDefaultExecution'](()=>_0x5c90e6([_0x38100f],_0x4eb225,_0x2f2ee3)),null;}_0x4149e2['push'](_0x38100f);let _0x2acbfc=!0x0;for(const _0x9e7e55 of _0x4149e2)if(!this['_rangeIsInLocalUserInsertion'](_0x9e7e55)){_0x2acbfc=!0x1;break;}if(_0x2acbfc&&'always'!==this['_trackFormatChanges']){const _0x3a15d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10e1c9,'accept');return this['forceDefaultExecution'](()=>_0x3a15d0([_0x38100f],_0x4eb225,_0x2f2ee3)),null;}let _0x1ecad8=null,_0x2f01aa=_0x38100f['start'],_0x45f38e=_0x38100f['end'];for(const {suggestion:_0x2ef12e,meta:_0x358d32}of this['_findSuggestions'](_0x38100f,'formatBlock')){if(!_0x358d32['isOwn'])continue;if(_0x358d32['isNextTo']||_0x358d32['containsRangeInObject']||_0x358d32['isInsideObject'])continue;if(_0x2ef12e['data']['formatGroupId']!=_0x4eb225['formatGroupId'])continue;if(!bn(_0x2ef12e,_0x2f2ee3))continue;const _0x3dd9df=_0x2ef12e['getFirstRange']();if(_0x2ef12e['subType']==_0x10e1c9){if(_0x3dd9df['containsRange'](_0x38100f,!0x0))return null;_0x2f01aa=_0x2f01aa['isBefore'](_0x3dd9df['start'])?_0x2f01aa:_0x3dd9df['start'],_0x45f38e=_0x45f38e['isAfter'](_0x3dd9df['end'])?_0x45f38e:_0x3dd9df['end'],_0x1ecad8?_0x3dd9df['start']['isBefore'](_0x1ecad8['getFirstRange']()['start'])?(_0x1ecad8['removeMarkers'](),_0x1ecad8=_0x2ef12e):_0x2ef12e['removeMarkers']():_0x1ecad8=_0x2ef12e;}else{const _0x4767e6=_0x38100f['getIntersection'](_0x3dd9df);this['_cutOutSuggestionMarker'](_0x2ef12e,_0x4767e6);}}const _0x5c8a99=this['editor']['plugins']['get']('Users')['me'],_0x1355e9=_0x34e203(),_0x1364d2=_0x5c8a99['id'];if(_0x1ecad8)return this['_setSuggestionRange'](_0x1ecad8,this['_model']['createRange'](_0x2f01aa,_0x45f38e)),_0x1ecad8;{const _0x554712=this['_setSuggestionData']({'id':_0x1355e9,'type':'formatBlock:'+_0x10e1c9,'data':_0x4eb225,'createdAt':new Date(),'authorId':_0x1364d2,'attributes':_0x2f2ee3});return this['_addSuggestionMarker']('formatBlock:'+_0x10e1c9,_0x1355e9,_0x1364d2,this['_model']['createRange'](_0x2f01aa,_0x45f38e)),_0x554712;}}markMultiRangeBlockFormat(_0x3c91b1,_0x2ed13f,_0x5b949f=[],_0xdd9e78=null,_0x2ce7ff={}){_0x2ed13f['formatGroupId']||(_0x2ed13f['formatGroupId']=_0x2ed13f['commandName']);const _0x53eb38=_0x3c91b1[0x0];_0x2ed13f['multipleBlocks']=_0x53eb38['is']('range'),_0xdd9e78=_0xdd9e78||mn(_0x2ed13f);const _0x4c6d64=_0x5b949f['map'](_0x457471=>Ln(_0x457471,this['_model'])),_0x1639cd=_0x53eb38['is']('range')?_0x3c91b1:_0x3c91b1['map'](_0x4634cc=>Ln(_0x4634cc,this['_model']));if(this['_trackingSessionId']&&(_0x2ce7ff['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37aacf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdd9e78,'accept');return this['forceDefaultExecution'](()=>_0x37aacf(_0x1639cd,_0x2ed13f,_0x2ce7ff)),null;}_0x4c6d64['push'](..._0x1639cd);let _0x3b8a7c=!0x0;for(const _0x350148 of _0x4c6d64)if(!this['_rangeIsInLocalUserInsertion'](_0x350148)){_0x3b8a7c=!0x1;break;}if(_0x3b8a7c&&'always'!==this['_trackFormatChanges']){const _0x219706=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdd9e78,'accept');return this['forceDefaultExecution'](()=>_0x219706(_0x1639cd,_0x2ed13f,_0x2ce7ff)),null;}const _0x53acfd=this['editor']['plugins']['get']('Users')['me'];for(const _0x3af776 of this['getSuggestions']()){const _0x4c2574=_0x3af776['data'];if(_0x3af776['author']['id']!=_0x53acfd['id'])continue;if('formatBlock'!=_0x3af776['type']||_0x4c2574['formatGroupId']!=_0x2ed13f['formatGroupId'])continue;if(!bn(_0x3af776,_0x2ce7ff))continue;const _0x536c88=_0x3af776['subType']==_0xdd9e78;for(let _0x152241=0x0;_0x152241<_0x1639cd['length'];_0x152241++){const _0x64ace9=_0x1639cd[_0x152241];for(const _0x5d8022 of _0x3af776['getMarkers']()){const _0x530e9f=_0x5d8022['getRange']();if(_0x64ace9['isEqual'](_0x530e9f)){_0x536c88?(_0x1639cd['splice'](_0x152241,0x1),_0x152241--):_0x3af776['removeMarker'](_0x5d8022['name']);break;}}}}if(0x0==_0x1639cd['length'])return null;const _0x2f77c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdd9e78,'join');for(const _0x1e0c5e of this['getSuggestions']()){const _0x46600e=_0x1e0c5e['data'];if(_0x1e0c5e['author']['id']==_0x53acfd['id']&&('formatBlock'==_0x1e0c5e['type']&&_0x46600e['formatGroupId']==_0x2ed13f['formatGroupId']&&_0x1e0c5e['subType']==_0xdd9e78&&bn(_0x1e0c5e,_0x2ce7ff)&&(_0x2f77c1(_0x1e0c5e['getRanges'](),_0x1639cd)||_0x2f77c1(_0x1639cd,_0x1e0c5e['getRanges']())))){for(const _0x3ad8ea of _0x1639cd)_0x1e0c5e['addRange'](_0x3ad8ea);return _0x1e0c5e;}}const _0x23a430=_0x34e203(),_0x605db0=_0x53acfd['id'],_0x569f54='formatBlock:'+_0xdd9e78,_0x4aa87d=this['_setSuggestionData']({'id':_0x23a430,'type':_0x569f54,'data':_0x2ed13f,'createdAt':new Date(),'authorId':_0x605db0,'attributes':_0x2ce7ff});for(const _0x35e38a of _0x1639cd)this['_addSuggestionMarker'](_0x569f54,_0x23a430,_0x605db0,_0x35e38a,wt['getMultiRangeId']());return _0x4aa87d;}markDeletion(_0x506c65,_0x380836=null,_0x48929={}){if(_0x506c65['isCollapsed'])return null;const _0x2b7676=this['editor']['plugins']['get']('Users')['me'],_0x425d0d=new ct(_0x506c65['start'],_0x506c65['end']);this['_trackingSessionId']&&(_0x48929['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x54c4d1,meta:_0x51ed1b}of this['_findSuggestions'](_0x425d0d,'insertion'))if(_0x51ed1b['isOwn']&&!_0x51ed1b['isNextTo']){if(_0x54c4d1['isMultiRange']){const _0x4dc701=_0x54c4d1['getRanges']()['filter'](_0x3f47fe=>'$graveyard'!=_0x3f47fe['root']['rootName']);if(_0x4dc701['every'](_0x52da8b=>_0x425d0d['containsRange'](_0x52da8b,!0x0))&&_0x54c4d1['discard'](),_0x4dc701['some'](_0x5b464b=>_0x5b464b['containsRange'](_0x425d0d,!0x0))){const _0x35b029=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x380836,'accept');return this['forceDefaultExecution'](()=>_0x35b029([_0x425d0d],null,_0x48929)),null;}}else{const _0x565e52=_0x425d0d['getIntersection'](_0x54c4d1['getFirstRange']());null!==_0x565e52&&_0x54c4d1['_onDiscard']([_0x565e52],null,_0x48929);}}if(_0x425d0d['detach'](),_0x425d0d['isCollapsed']||'$graveyard'==_0x425d0d['root']['rootName'])return null;let _0x6ed867=null,_0x2aad10=_0x425d0d['start'],_0x4f574b=_0x425d0d['end'];const _0x48cf1f=this['_findSuggestions'](_0x425d0d,'deletion');for(const {suggestion:_0x4d4592,meta:_0x2caa28}of _0x48cf1f){const _0x15a965=this['_model']['createRange'](_0x2aad10,_0x4f574b);if(_0x2caa28['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2caa28['containsRangeInObject']&&!_0x2caa28['isInsideObject'])){if(_0x4d4592['isMultiRange']){if(!bn(_0x4d4592,_0x48929))continue;let _0xd48a10=!0x0;for(const _0x1fd123 of _0x4d4592['getRanges']()){if(_0x1fd123['containsRange'](_0x15a965,!0x0))return _0x4d4592;_0x15a965['containsRange'](_0x1fd123)||(_0xd48a10=!0x1);}_0xd48a10&&_0x4d4592['discard']();}else{const _0x3adce5=_0x4d4592['getFirstRange']();if(_0x3adce5['containsRange'](_0x15a965,!0x0))return _0x4d4592;if(!bn(_0x4d4592,_0x48929)){_0x15a965['containsRange'](_0x3adce5)?_0x4d4592['removeMarkers']():_0x3adce5['containsPosition'](_0x2aad10)?_0x2aad10=_0x3adce5['end']:_0x3adce5['containsPosition'](_0x4f574b)&&(_0x4f574b=_0x3adce5['start']);continue;}_0x2aad10=_0x2aad10['isBefore'](_0x3adce5['start'])?_0x2aad10:_0x3adce5['start'],_0x4f574b=_0x4f574b['isAfter'](_0x3adce5['end'])?_0x4f574b:_0x3adce5['end'],_0x48929=Object['assign']({},_0x4d4592['attributes']),_0x6ed867?_0x3adce5['start']['isBefore'](_0x6ed867['getFirstRange']()['start'])?(_0x6ed867['removeMarkers'](),_0x6ed867=_0x4d4592):_0x4d4592['removeMarkers']():_0x6ed867=_0x4d4592;}}}if(_0x6ed867)return this['_setSuggestionRange'](_0x6ed867,this['_model']['createRange'](_0x2aad10,_0x4f574b)),_0x6ed867;{const _0x47ef9e=_0x34e203(),_0x5e7db1=this['_model']['createRange'](_0x2aad10,_0x4f574b),_0x3684d4=_0x2b7676['id'],_0x1c04d4=_0x380836?'deletion:'+_0x380836:'deletion',_0x16dbfc=this['_setSuggestionData']({'id':_0x47ef9e,'type':_0x1c04d4,'createdAt':new Date(),'authorId':_0x3684d4,'attributes':_0x48929});return this['_addSuggestionMarker'](_0x1c04d4,_0x47ef9e,_0x3684d4,_0x5e7db1),_0x16dbfc;}}markMultiRangeDeletion(_0x5c47b0,_0x4d94cb='multi',_0x56030a={}){const _0x18732d=this['editor']['plugins']['get']('Users')['me'],_0x5beb51=_0x5c47b0['map'](_0x53392d=>new ct(_0x53392d['start'],_0x53392d['end'])),_0x55291d=new Set();this['_trackingSessionId']&&(_0x56030a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x30b0e9,meta:_0xcf2088}of this['_findSuggestions'](_0x5beb51,'insertion'))_0xcf2088['isOwn']&&!_0xcf2088['isNextTo']&&_0x55291d['add'](_0x30b0e9);for(const _0x5205ae of _0x55291d)if(_0x5205ae['isMultiRange']){const _0xa99ad2=_0x5205ae['getRanges']();if(_0x5205ae['attributes']&&_0x5205ae['attributes']['skipNestingCheck']||_0xa99ad2['every'](_0x26cde4=>_0x5beb51['some'](_0x29d119=>_0x29d119['containsRange'](_0x26cde4,!0x0)))&&_0x5205ae['discard'](),_0x5beb51['every'](_0x16b537=>_0xa99ad2['some'](_0x36fc6b=>_0x36fc6b['containsRange'](_0x16b537,!0x0)))){const _0x5e2053=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d94cb,'accept');return this['forceDefaultExecution'](()=>_0x5e2053(_0x5c47b0,null,_0x56030a)),null;}}else{const _0x50dc9c=_0x5205ae['getFirstRange']();if(_0x5beb51['some'](_0x102abc=>_0x102abc['containsRange'](_0x50dc9c,!0x0))&&_0x5205ae['discard'](),_0x5beb51['every'](_0x2db7dc=>_0x50dc9c['containsRange'](_0x2db7dc,!0x0))){const _0x31b53d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d94cb,'accept');return this['forceDefaultExecution'](()=>_0x31b53d(_0x5beb51,null,_0x56030a)),null;}}const _0x51ab41=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d94cb,'join');let _0x4e240f=null;for(const _0x5039cc of this['getSuggestions']())if(_0x5039cc['author']['id']==_0x18732d['id']&&_0x5039cc['isInContent']&&'deletion'==_0x5039cc['type']&&_0x5039cc['subType']==_0x4d94cb&&bn(_0x5039cc,_0x56030a)&&(_0x51ab41(_0x5039cc['getRanges'](),_0x5beb51)||_0x51ab41(_0x5beb51,_0x5039cc['getRanges']()))){if(_0x4e240f){if(_0x5039cc['commentThread']&&_0x5039cc['commentThread']['length'])continue;for(const _0x530b7a of _0x5039cc['getRanges']())_0x4e240f['isIntersectingWithRange'](_0x530b7a)||_0x4e240f['addRange'](_0x530b7a);_0x5039cc['removeMarkers']();}else{_0x4e240f=_0x5039cc;for(const _0x2fac83 of _0x5beb51)_0x5039cc['isIntersectingWithRange'](_0x2fac83)||_0x5039cc['addRange'](_0x2fac83);}}if(_0x4e240f)return _0x4e240f;_0x55291d['clear']();for(const {suggestion:_0x1badfe,meta:_0x5719e0}of this['_findSuggestions'](_0x5beb51,'deletion'))_0x5719e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5719e0['containsRangeInObject']&&!_0x5719e0['isInsideObject'])&&bn(_0x1badfe,_0x56030a)&&_0x55291d['add'](_0x1badfe);for(const _0xf35499 of _0x55291d){const _0x40a549=_0xf35499['getRanges']();if((!_0x56030a||!_0x56030a['skipNestingCheck'])&&_0x5beb51['every'](_0x1e30ce=>_0x40a549['some'](_0xc7141a=>_0xc7141a['containsRange'](_0x1e30ce,!0x0))))return _0xf35499;_0xf35499['attributes']&&_0xf35499['attributes']['skipNestingCheck']||_0x40a549['every'](_0xdca7a0=>_0x5beb51['some'](_0x338462=>_0x338462['containsRange'](_0xdca7a0,!0x0)))&&_0xf35499['discard']();}const _0x17bfdf=_0x34e203(),_0x10f2a4=_0x18732d['id'],_0x5131e4='deletion:'+_0x4d94cb,_0x56e1e9=this['_setSuggestionData']({'id':_0x17bfdf,'type':_0x5131e4,'createdAt':new Date(),'authorId':_0x10f2a4,'attributes':_0x56030a});for(const _0x2ab995 of _0x5beb51)_0x2ab995['detach'](),_0x2ab995['isCollapsed']||'$graveyard'==_0x2ab995['root']['rootName']||this['_addSuggestionMarker'](_0x5131e4,_0x17bfdf,_0x10f2a4,_0x2ab995,wt['getMultiRangeId']());return _0x56e1e9;}markAttributeChange(_0x1c33cd,_0x5f3f6b,_0x50ca03,_0x556fb2,_0x298a29){if(_0x1c33cd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a5b43=this['editor']['plugins']['get']('Users')['me']['id'],_0x430ba6=Array['from'](this['_suggestions']['values']())['filter'](_0x120706=>'attribute'==_0x120706['type']&&_0x120706['data']['key']==_0x5f3f6b&&_0x120706['isIntersectingWithRange'](_0x1c33cd));if(this['_trackingSessionId']&&(_0x298a29['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x419b11=this['_findSuggestions'](_0x1c33cd,'insertion')['filter'](({meta:_0x4c33b5})=>_0x4c33b5['isOwn']&&!_0x4c33b5['isInsideObject']&&!_0x4c33b5['isNextTo'])['map'](({suggestion:_0x1e2d90})=>_0x1e2d90);_0x430ba6['unshift'](..._0x419b11);}const _0x56f8e4=new Map([[_0x1c33cd,_0x50ca03]]);for(const _0x1f857c of _0x430ba6){const _0x51cfc3='attribute'==_0x1f857c['type']?_0x1f857c['data']['oldValue']:void 0x0,_0x35fae1=_0x1f857c['getFirstRange'](),_0x423134=Array['from'](_0x56f8e4['keys']())['find'](_0x5435f1=>_0x5435f1['isIntersecting'](_0x35fae1));if(!_0x423134)continue;const _0x4ff236=_0x423134['getDifference'](_0x35fae1);this['_suggestionsConversion']['isBlockAttribute'](_0x5f3f6b)&&'insertion'==_0x1f857c['type']&&0x0!=_0x4ff236['length']||(_0x56f8e4['delete'](_0x423134),_0x4ff236['forEach'](_0x40c187=>{_0x56f8e4['set'](_0x40c187,_0x50ca03);}),'insertion'!=_0x1f857c['type']&&_0x51cfc3!=_0x556fb2&&_0x56f8e4['set'](_0x423134['getIntersection'](_0x35fae1),_0x51cfc3));}const _0x1df2bc=[];for(const [_0x218c96,_0x5c4691]of _0x56f8e4){const _0x5b7be3=_0x34e203(),_0x5aa953={'key':_0x5f3f6b,'oldValue':_0x5c4691,'newValue':_0x556fb2};_0x5f3f6b['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':_0x5f3f6b});const _0x4a925d=('attribute:'+_0x5f3f6b+'|'+mn({'newValue':_0x556fb2}))['substring'](0x0,0x3c),_0x16a0e2=this['_setSuggestionData']({'id':_0x5b7be3,'type':_0x4a925d,'data':_0x5aa953,'createdAt':new Date(),'authorId':_0x2a5b43,'attributes':_0x298a29});_0x1df2bc['push'](_0x16a0e2),this['_addSuggestionMarker'](_0x4a925d,_0x5b7be3,_0x2a5b43,_0x218c96);}return _0x1df2bc;}enableDefaultAttributesIntegration(_0x305acc){this['enableCommand'](_0x305acc,(_0x19acc2,..._0x1c37a8)=>{this['recordAttributeChanges'](()=>{_0x19acc2(..._0x1c37a8);});});}startTrackingSession(_0x3370c5){return this['_trackingSessionId']=void 0x0!==_0x3370c5?_0x3370c5:_0x34e203(),this['_trackingSessionId'];}_getAttributeKey(_0x4c68f5){return'attribute'==_0x4c68f5['type']?kn(_0x4c68f5['subType']):null;}_applyOperationsAsSuggestions(_0x301e78){if(0x0==_0x301e78['length'])return;const _0x57c967=this['editor'],_0x51a062=[],_0x142525=_0x48e6f8=>{const _0x55ab00=_0x48e6f8['_aiSource'];return _0x55ab00?{'@ai':{'type':_0x55ab00}}:{};},_0x4f0ce7=(_0x40ce59,_0x2dde1a,_0x56db68,_0x5b438d)=>{const _0x4bea2a=new Set(_0x5b438d['flatMap'](_0x521399=>_0x521399['getMarkerNames']()));let _0x45ecf5=!0x1;for(let _0x25b1c9=_0x2dde1a;_0x25b1c9<_0x40ce59['operations']['length'];_0x25b1c9++){const _0xfe612b=_0x40ce59['operations'][_0x25b1c9];if('marker'==_0xfe612b['type']){if(!_0x4bea2a['has'](_0xfe612b['name']))continue;_0x45ecf5=!0x0;}_0xfe612b['_aiSource']=_0x56db68;}return _0x45ecf5;};_0x57c967['model']['change'](_0x10e621=>{for(let _0x12d8b3=0x0;_0x12d8b3<_0x301e78['length'];_0x12d8b3++){const _0x52ed76=_0x301e78[_0x12d8b3],_0xcd6427=_0x52ed76['_aiSource'];if(_0x52ed76['baseVersion']=_0x57c967['model']['document']['version'],_0x52ed76['isDocumentOperation']=!0x0,tt(_0x52ed76))continue;if(cn(_0x52ed76)){const _0x848065=_0x3ae6dc(_0x52ed76['newRange'],_0x57c967['model']);_0x51a062['unshift']({'range':ct['fromRange'](_0x848065),'operation':_0x52ed76});continue;}const _0x7fdee5=_0x10e621['batch']['operations']['length']+0x1;let _0x5567a1=[];switch(_0x52ed76['type']){case'rename':{const _0x5758c4=_0x52ed76['oldName'],_0x3718e1=_0x52ed76['newName'];if(_0x5758c4==_0x3718e1)break;_0x10e621['batch']['addOperation'](_0x52ed76),_0x57c967['model']['applyOperation'](_0x52ed76);const _0x2346a6='$elementName',_0x278b3f=_0x52ed76['position'],_0x57b928=_0x57c967['model']['createRange'](_0x278b3f,_0x57c967['model']['createPositionAt'](_0x278b3f['nodeAfter'],'end'));_0x5567a1=this['markAttributeChange'](_0x57b928,_0x2346a6,_0x5758c4,_0x3718e1,{..._0x142525(_0x52ed76),'groupId':_0x34e203()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x390a39=_0x52ed76['oldValue'],_0x2136de=_0x52ed76['newValue'];if(_0x390a39==_0x2136de)break;_0x10e621['batch']['addOperation'](_0x52ed76),_0x57c967['model']['applyOperation'](_0x52ed76);const _0x1404cc=_0x52ed76['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1404cc))break;const _0x1bd9b3=_0x3ae6dc(_0x52ed76['range'],_0x57c967['model']);_0x5567a1=this['markAttributeChange'](_0x1bd9b3,_0x1404cc,_0x390a39,_0x2136de,{..._0x142525(_0x52ed76),'groupId':_0x34e203()});break;}case'insert':{if(_0x10e621['batch']['addOperation'](_0x52ed76),_0x57c967['model']['applyOperation'](_0x52ed76),_0x301e78[_0x12d8b3+0x1]&&'move'==_0x301e78[_0x12d8b3+0x1]['type'])break;const _0x1ea99e=_0x52ed76['position'],_0x2e4ecd=_0x52ed76['howMany'],_0x33a572=_0x3ae6dc(_0x57c967['model']['createRange'](_0x1ea99e,_0x1ea99e['getShiftedBy'](_0x2e4ecd)),_0x57c967['model']);_0x5567a1=ln(this['markInsertion'](_0x33a572,null,{..._0x142525(_0x52ed76)}));break;}case'split':{_0x10e621['batch']['addOperation'](_0x52ed76),_0x57c967['model']['applyOperation'](_0x52ed76);const _0x13de2a=_0x52ed76['splitPosition'],_0x4464d4=_0x52ed76['moveTargetPosition'],_0x2f63d9=_0x57c967['model']['createRange'](_0x13de2a,_0x4464d4);_0x5567a1=ln(this['markInsertion'](_0x2f63d9,null,{..._0x142525(_0x52ed76)}));break;}case'move':case'remove':_0x10e621['batch']['addOperation'](_0x52ed76),_0x57c967['model']['applyOperation'](_0x52ed76);}_0xcd6427&&_0x4f0ce7(_0x10e621['batch'],_0x7fdee5,_0xcd6427,_0x5567a1)&&delete _0x52ed76['_aiSource'];}for(const {range:_0x2b9401,operation:_0x596e61}of _0x51a062){const _0x5bd234=_0x596e61['_aiSource'],_0x393508=_0x142525(_0x596e61),_0x2e86cc=_0x10e621['batch']['operations']['length'];_0x2b9401['detach']();const _0x27d757=this['markDeletion'](_0x2b9401,null,{..._0x393508});_0x5bd234&&_0x4f0ce7(_0x10e621['batch'],_0x2e86cc,_0x5bd234,ln(_0x27d757));}});}_setSuggestionRange(_0x155ab5,_0x215335){const _0x139dc6=_0x155ab5['getFirstMarker']();this['_model']['change'](_0x4dccab=>{_0x4dccab['updateMarker'](_0x139dc6,{'range':_0x215335});});}_addThreadToSuggestion(_0x432aa8){const _0x180dd2=_0x432aa8['id'],_0x215d26=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x180dd2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x215d26,'threadId':_0x180dd2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x115f58=this['_commentsRepository']['getCommentThread'](_0x180dd2);_0x115f58['unbind']('isRemovable'),_0x115f58['isRemovable']=!0x1,_0x432aa8['commentThread']=_0x115f58;}_checkSuggestionCorrectness(_0x566e47,_0x3273b7,_0x17183d,_0x118662){if(_0x566e47['type']!=_0x3273b7||_0x566e47['subType']!=_0x17183d||_0x566e47['creator']['id']!=_0x118662)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d6318('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x31561a,_0x33c870){const _0x330ec9=_0x31561a['getFirstRange']();if(_0x33c870['isEqual'](_0x330ec9))_0x31561a['removeMarkers']();else{if(_0x330ec9['containsRange'](_0x33c870)){const _0x167590=this['_model']['createPositionAt'](_0x33c870['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31561a,this['_model']['createRange'](_0x330ec9['start'],_0x167590));const _0x1342b4=_0x34e203(),_0x3ad382=_0x31561a['creator']['id'],_0x272d3e=_0x31561a['type']+':'+_0x31561a['subType'];this['_setSuggestionData']({'id':_0x1342b4,'type':_0x272d3e,'createdAt':new Date(),'authorId':_0x3ad382,'data':_0x31561a['data'],'attributes':_0x31561a['attributes']});const _0x2b3d0c=this['_model']['createPositionAt'](_0x33c870['end']['parent'],'after'),_0x4f3656=this['_model']['createRange'](_0x2b3d0c,_0x330ec9['end']);this['_addSuggestionMarker'](_0x272d3e,_0x1342b4,_0x3ad382,_0x4f3656);}else{if(_0x330ec9['containsPosition'](_0x33c870['start'])){const _0x7abd3c=this['_model']['createPositionAt'](_0x33c870['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31561a,this['_model']['createRange'](_0x330ec9['start'],_0x7abd3c));}else{const _0x15bd92=this['_model']['createPositionAt'](_0x33c870['end']['parent'],'after');this['_setSuggestionRange'](_0x31561a,this['_model']['createRange'](_0x15bd92,_0x330ec9['end']));}}}}_rangeIsInLocalUserInsertion(_0x5cc6a6){for(const {suggestion:_0x2676de,meta:_0x81d95a}of this['_findSuggestions'](_0x5cc6a6,'insertion')){if(!_0x81d95a['isOwn'])continue;const _0x1ce776=_0x2676de['getRanges']();for(const _0x5401bf of _0x1ce776)if(!_0x5cc6a6['getDifference'](_0x5401bf)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x512044){return this['editor']['plugins']['get']('Users')['getUser'](_0x512044);}_getExternalAuthor(_0x502597){const _0x28ba04=this['editor']['plugins']['get']('Users'),_0x2123ed=_0x1d4874('external:'+_0x502597),_0x454e09=_0x28ba04['getUser'](_0x2123ed);return _0x454e09||_0x28ba04['addUser']({'id':_0x2123ed,'name':_0x502597});}_createSuggestion(_0x1a815d,_0x374902,_0xe1227d,_0x4cc6cc,_0x2d6832,_0x30dd2b){const _0x6fd7d5=this['_getAuthorFromId'](_0x4cc6cc);if(!_0x6fd7d5)throw new _0x2d6318('track-changes-user-not-found',this,{'authorId':_0x4cc6cc,'suggestionId':_0xe1227d});const _0x1e2825=this['_suggestionFactory']['buildSuggestion'](_0x1a815d,_0x374902,_0xe1227d,_0x6fd7d5,_0x2d6832,_0x2341ef=>{this['_updateSuggestionData'](_0xe1227d,{'attributes':_0x2341ef});const _0x287619=this['getSuggestion'](_0xe1227d);this['_joinWithAdjacentSuggestions'](new Set([_0x287619])),this['_refreshSuggestionsChain'](new Set([_0x287619]));},_0x30dd2b);return this['listenTo'](_0x1e2825,'accept',()=>{this['_updateSuggestionData'](_0xe1227d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1e2825,'discard',()=>{this['_updateSuggestionData'](_0xe1227d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xe1227d,_0x1e2825),this['_suggestionState']['set'](_0x1e2825,'notReady'),_0x1e2825;}_breakSuggestionMarker(_0x36e423,_0x3b6257,_0x1ccf80){const _0x547f26=_0x36e423['getFirstRange'](),_0x315ef9=_0x547f26['start'],_0xd8d77=_0x547f26['end'];this['_setSuggestionRange'](_0x36e423,this['_model']['createRange'](_0x315ef9,_0x3b6257));const _0x4bd3c3=_0x34e203(),_0x409380=_0x36e423['creator']['id'],_0x264b6e=_0x36e423['type']+(_0x36e423['subType']?':'+_0x36e423['subType']:'');this['_setSuggestionData']({'id':_0x4bd3c3,'type':_0x264b6e,'createdAt':new Date(),'authorId':_0x409380,'originalSuggestionId':_0x36e423['_originalSuggestionId']||_0x36e423['id'],'attributes':_0x36e423['attributes'],'data':_0x36e423['data']});const _0x456118=this['_getAttributeKey'](_0x36e423);('formatBlock'==_0x36e423['type']||_0x456118&&this['_suggestionsConversion']['isBlockAttribute'](_0x456118))&&(_0x1ccf80=this['_model']['createPositionBefore'](_0x1ccf80['parent'])),this['_addSuggestionMarker'](_0x264b6e,_0x4bd3c3,_0x409380,this['_model']['createRange'](_0x1ccf80,_0xd8d77));}_findSuggestions(_0x32dcee,_0x264736=null){const _0x197229=[],_0x4759ee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x32dcee)||(_0x32dcee=[_0x32dcee]);for(const _0x5affa7 of this['getSuggestions']()){if(!_0x5affa7['isInContent'])continue;if(_0x264736&&_0x5affa7['type']!=_0x264736)continue;let _0x4f6f73=!0x1;for(const _0x5493df of _0x5affa7['getRanges']()){for(const _0x4da5e1 of _0x32dcee){const _0x3412ab=_0x4da5e1['start']['isEqual'](_0x5493df['end'])||_0x4da5e1['end']['isEqual'](_0x5493df['start']);if(_0x3412ab||_0x4da5e1['getIntersection'](_0x5493df)){const _0x507b7f=_0x4da5e1['containsRange'](_0x5493df)&&hn(this['_model']['schema'],_0x5493df['start'],_0x4da5e1),_0x27d7bc=_0x5493df['containsRange'](_0x4da5e1)&&hn(this['_model']['schema'],_0x4da5e1['start'],_0x5493df);_0x197229['push']({'suggestion':_0x5affa7,'meta':{'isOwn':_0x4759ee==_0x5affa7['author'],'isNextTo':_0x3412ab,'isInsideObject':_0x507b7f,'containsRangeInObject':_0x27d7bc}}),_0x4f6f73=!0x0;break;}}if(_0x4f6f73)break;}}return _0x197229;}_addSuggestionMarker(_0x2ae3cd,_0x5a2073,_0x46cf11,_0x1f8f4b,_0x46687f){this['_model']['change'](_0x9605c9=>{let _0x2bf1de='suggestion:'+_0x2ae3cd+':'+_0x5a2073+':'+_0x46cf11;_0x46687f&&(_0x2bf1de=_0x2bf1de+':'+_0x46687f),_0x9605c9['addMarker'](_0x2bf1de,{'range':_0x1f8f4b,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x476ae2){const _0x1311fb=_0x476ae2['previous'],_0x2ee1b5=_0x476ae2['next'];_0x476ae2['previous']=null,_0x476ae2['next']=null,null!=_0x1311fb&&_0x1311fb['next']==_0x476ae2&&(_0x1311fb['next']=_0x2ee1b5),null!=_0x2ee1b5&&_0x2ee1b5['previous']==_0x476ae2&&(_0x2ee1b5['previous']=_0x1311fb),'ready'==this['_suggestionState']['get'](_0x476ae2)&&(this['_suggestionState']['set'](_0x476ae2,'removed'),this['fire']('suggestionUnloaded',_0x476ae2,_0x1311fb,_0x2ee1b5));}_setSuggestionData(_0x124984){const _0x30609e=_0x124984['id'],_0x36e0ad=this['addSuggestionData'](_0x124984);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xe56367=this['editor']['plugins']['get']('PendingActions'),_0x4ed423=_0x36e0ad['hasComments'],_0x18cb26=_0x36e0ad['subType']?_0x36e0ad['type']+':'+_0x36e0ad['subType']:_0x36e0ad['type'],_0x13fc83=this['editor']['locale'],_0x5dfe98=_0xe56367['add'](Bt(_0x13fc83,'PENDING_ACTION_SUGGESTION')),_0x5c9918={'id':_0x30609e,'type':_0x18cb26,'hasComments':_0x4ed423,'data':_0x124984['data']||null,'originalSuggestionId':_0x124984['originalSuggestionId']||null,'attributes':_0x36e0ad['attributes']};this['_adapter']['addSuggestion'](_0x5c9918)['then'](_0x4bd2c4=>{_0x36e0ad['_saved']=!0x0,_0xe56367['remove'](_0x5dfe98),_0x4bd2c4&&_0x4bd2c4['createdAt']&&(this['_suggestions']['get'](_0x30609e)['createdAt']=_0x4bd2c4['createdAt']);})['catch'](_0x3cf231=>{throw _0x46d0de('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x36e0ad['discard']();}),_0x36e0ad['stopListening'](),this['_suggestions']['delete'](_0x36e0ad['id']),this['_suggestionState']['delete'](_0x36e0ad),_0x3cf231;});}return _0x36e0ad;}_updateSuggestionData(_0x493eef,_0x6e02b4){const _0x41a42e=this['editor']['plugins']['get']('PendingActions'),_0x27a8f5=this['getSuggestion'](_0x493eef);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x27a8f5['_saved']){const _0x39a17d=_0x41a42e['add'](Bt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x493eef,_0x6e02b4)['then'](()=>{_0x41a42e['remove'](_0x39a17d);});}else _0x27a8f5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x493eef,_0x6e02b4);});}}_getSuggestionData(_0x4ed20e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d6318('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ed20e);}_handleNewSuggestionMarker(_0x1f382c){const {id:_0x1369e8,type:_0x539c18,subType:_0x4d6aae,authorId:_0x50f1fc}=it(_0x1f382c),_0x1d3ce4=this['_suggestions']['get'](_0x1369e8)||this['_createSuggestion'](_0x539c18,_0x4d6aae,_0x1369e8,_0x50f1fc,{});switch(this['_checkSuggestionCorrectness'](_0x1d3ce4,_0x539c18,_0x4d6aae,_0x50f1fc),this['_suggestionState']['get'](_0x1d3ce4)){case'notReady':this['_getSuggestionData'](_0x1369e8)['then'](_0x1171a3=>{let _0x15d55a=Promise['resolve']();_0x1171a3['hasComments']&&(_0x15d55a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1369e8})),_0x15d55a['then'](()=>{this['addSuggestionData'](_0x1171a3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d3ce4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1369e8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d3ce4,'ready'),this['fire']('suggestionLoaded',_0x1d3ce4);break;case'ready':this['fire']('suggestionChanged',_0x1d3ce4);}return _0x1d3ce4['addMarkerName'](_0x1f382c),_0x1d3ce4;}_refreshSuggestionsChain(_0x2ba432){const _0x59c4f7=Array['from'](_0x2ba432),_0x2be93f=_0x59c4f7['filter'](_0x1b3a99=>'attribute'==_0x1b3a99['type']);this['_refreshAttributeSuggestionsChain'](_0x2be93f);const _0x5ba7f2=_0x59c4f7['filter'](_0x452d0c=>!_0x452d0c['isMultiRange']&&'attribute'!=_0x452d0c['type']),_0x396488=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12f55e=>!_0x12f55e['isMultiRange']&&'attribute'!=_0x12f55e['type']),_0x262df3=_0x396488['filter'](_0x31e406=>!_0x2ba432['has'](_0x31e406)),_0x38ed8d=new Map(_0x396488['map'](_0x2a8ead=>[_0x2a8ead,this['_suggestionFactory']['getSuggestionCallback'](_0x2a8ead['type'],_0x2a8ead['subType'],'chain')])),_0x33ad0c=new Map(_0x396488['map'](_0x40d092=>[_0x40d092,_0x40d092['getFirstRange']()])),_0x578ecf=new Set(),_0x5b6872=new Set();for(let _0xe2af6c=0x0;_0xe2af6c<_0x5ba7f2['length'];_0xe2af6c++)_0x19b318(_0x5ba7f2[_0xe2af6c],_0x5ba7f2,_0xe2af6c+0x1);for(let _0x3db28e=0x0;_0x3db28e<_0x5ba7f2['length'];_0x3db28e++)_0x19b318(_0x5ba7f2[_0x3db28e],_0x262df3,0x0);const _0x36d7d3=new Set();for(let _0x67f191=0x0;_0x67f191<_0x5ba7f2['length'];_0x67f191++){const _0x8c0e92=_0x5ba7f2[_0x67f191];!_0x5b6872['has'](_0x8c0e92)&&_0x8c0e92['previous']&&(_0x36d7d3['add'](_0x8c0e92['previous']),_0x8c0e92['previous']['next']===_0x8c0e92&&(_0x8c0e92['previous']['next']=null),_0x8c0e92['previous']=null),!_0x578ecf['has'](_0x8c0e92)&&_0x8c0e92['next']&&(_0x36d7d3['add'](_0x8c0e92['next']),_0x8c0e92['next']['previous']===_0x8c0e92&&(_0x8c0e92['next']['previous']=null),_0x8c0e92['next']=null);}function _0x19b318(_0x72612a,_0x203411,_0x3d09e8){for(let _0x2e9fcc=_0x3d09e8;_0x2e9fcc<_0x203411['length'];_0x2e9fcc++){const _0xa45960=_0x41f989(_0x72612a,_0x203411[_0x2e9fcc]);_0xa45960&&(_0xa45960[0x0]['next']=_0xa45960[0x1],_0xa45960[0x1]['previous']=_0xa45960[0x0],_0x578ecf['add'](_0xa45960[0x0]),_0x5b6872['add'](_0xa45960[0x1]));}}function _0x41f989(_0x905d2d,_0x39e6db){if(_0x905d2d['author']['id']!==_0x39e6db['author']['id'])return null;const _0x1fc04f=_0x38ed8d['get'](_0x905d2d)(_0x905d2d,_0x39e6db,_0x33ad0c['get'](_0x905d2d),_0x33ad0c['get'](_0x39e6db));return _0x1fc04f&&_0x38ed8d['get'](_0x39e6db)(_0x905d2d,_0x39e6db,_0x33ad0c['get'](_0x905d2d),_0x33ad0c['get'](_0x39e6db))?_0x1fc04f[0x1]['commentThread']&&_0x1fc04f[0x1]['commentThread']['length']?null:_0x1fc04f:null;}_0x36d7d3['size']&&this['_refreshSuggestionsChain'](_0x36d7d3);}_refreshAttributeSuggestionsChain(_0x28cd2e){if(0x0==_0x28cd2e['length'])return;const _0x2b37c7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ffb93=>'attribute'==_0x1ffb93['type']&&_0x1ffb93['_isDataLoaded']),_0x8bc5f2=[],_0x5536c9=new Map();for(const _0x407aae of _0x2b37c7){const _0x4f1060=_0x1d4874(_0x407aae['attributes']);_0x5536c9['has'](_0x4f1060)||(_0x5536c9['set'](_0x4f1060,_0x8bc5f2['length']),_0x8bc5f2['push']([])),_0x8bc5f2[_0x5536c9['get'](_0x4f1060)]['push'](_0x407aae);}!(function(){_0x8bc5f2['sort']((_0x160a44,_0x445dbb)=>{const _0x3771cd=_0x160a44[0x0]['createdAt'],_0x3ecbcf=_0x445dbb[0x0]['createdAt'];return _0x3771cd==_0x3ecbcf?_0x160a44[0x0]['attributes']['groupId']<_0x445dbb[0x0]['attributes']['groupId']?-0x1:0x1:_0x3771cd<_0x3ecbcf?-0x1:0x1;});for(const _0x6bc319 of _0x8bc5f2)_0x6bc319['sort']((_0x40be75,_0x39c66b)=>_0x40be75['id']<_0x39c66b['id']?-0x1:0x1);}());for(let _0xe6a16f=0x0;_0xe6a16f<_0x8bc5f2['length'];_0xe6a16f++){if(0x0==_0x8bc5f2[_0xe6a16f]['length'])continue;const _0x200d43=[];for(let _0x16e678=_0xe6a16f+0x1;_0x16e678<_0x8bc5f2['length'];_0x16e678++)0x0!=_0x8bc5f2[_0x16e678]['length']&&_0x277801(_0x8bc5f2[_0xe6a16f],_0x8bc5f2[_0x16e678])&&_0x200d43['push'](_0x16e678);for(const _0x2e6fa0 of _0x200d43)_0x8bc5f2[_0xe6a16f]=_0x8bc5f2[_0xe6a16f]['concat'](_0x8bc5f2[_0x2e6fa0]),_0x8bc5f2[_0x2e6fa0]=[];}for(const _0x436e82 of _0x8bc5f2)for(let _0x577e57=0x0;_0x577e57<_0x436e82['length'];_0x577e57++){const _0x5cbc44=_0x436e82[_0x577e57+0x1]||null;_0x436e82[_0x577e57]['next']!==_0x5cbc44&&(_0x436e82[_0x577e57]['next']=_0x5cbc44);}for(const _0x337c8d of _0x8bc5f2)for(let _0x55c383=0x0;_0x55c383<_0x337c8d['length'];_0x55c383++){const _0x8db8a6=_0x337c8d[_0x55c383-0x1]||null;_0x337c8d[_0x55c383]['previous']!==_0x8db8a6&&(_0x337c8d[_0x55c383]['previous']=_0x8db8a6);}function _0x277801(_0x5e9c2b,_0x48c99e){if(_0x5e9c2b[0x0]['attributes']['groupId']!==_0x48c99e[0x0]['attributes']['groupId']&&_0x5e9c2b[0x0]['author']!==_0x48c99e[0x0]['author'])return!0x1;if(!function(_0x32641f,_0x224eb1){return!_0x32641f['hasComments']&&!_0x224eb1['hasComments']||(!_0x32641f['hasComments']||!_0x224eb1['hasComments'])&&(!!(_0x32641f['hasComments']&&_0x224eb1['createdAt']<_0x32641f['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x224eb1['hasComments']&&_0x32641f['createdAt']<_0x224eb1['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x5e9c2b[0x0],_0x48c99e[0x0]))return!0x1;const _0x2d5120=ht(_0x5e9c2b[0x0]['attributes'],['groupId','trackingSessionId']),_0x422e39=ht(_0x48c99e[0x0]['attributes'],['groupId','trackingSessionId']);return!!dt(_0x2d5120,_0x422e39)&&(_0x5e9c2b[0x0]['attributes']['groupId']==_0x48c99e[0x0]['attributes']['groupId']||_0x5e9c2b[0x0]['attributes']['trackingSessionId']===_0x48c99e[0x0]['attributes']['trackingSessionId']&&(!!_0x5e9c2b['every'](_0x1d1f67=>_0x48c99e['some'](_0x1995bf=>_0x1d1f67['getFirstRange']()['isEqual'](_0x1995bf['getFirstRange']())))&&_0x48c99e['every'](_0x566166=>_0x5e9c2b['some'](_0x576663=>_0x566166['getFirstRange']()['isEqual'](_0x576663['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x884587){const _0x4d4571=Array['from'](_0x884587),_0x3c8c51=this['getSuggestions']({'skipNotAttached':!0x0}),_0x52653b=_0x3c8c51['filter'](_0x36e6c5=>!_0x884587['has'](_0x36e6c5)),_0x51332a=new Map(_0x4d4571['map'](_0x4beb86=>[_0x4beb86,this['_suggestionFactory']['getSuggestionCallback'](_0x4beb86['type'],_0x4beb86['subType'],'join')])),_0x3f7b79=new Map(_0x3c8c51['map'](_0x344229=>[_0x344229,_0x344229['getRanges']()]));for(let _0x487134=0x0;_0x487134<_0x4d4571['length'];_0x487134++)if(_0x3fc1d3(this,_0x4d4571[_0x487134],_0x4d4571,_0x487134+0x1))return!0x0;for(let _0x56718c=0x0;_0x56718c<_0x4d4571['length'];_0x56718c++)if(_0x3fc1d3(this,_0x4d4571[_0x56718c],_0x52653b,0x0))return!0x0;return!0x1;function _0x3fc1d3(_0x1e0167,_0x289fdc,_0x22b8c3,_0x1feee0){for(let _0x432969=_0x1feee0;_0x432969<_0x22b8c3['length'];_0x432969++){const _0x1d4e58=_0x22b8c3[_0x432969];if(_0x1d4e58['type']!==_0x289fdc['type']||_0x1d4e58['author']['id']!==_0x289fdc['author']['id']||_0x1d4e58['subType']!==_0x289fdc['subType'])continue;if(!An(_0x289fdc,_0x1d4e58))continue;if('attribute'==_0x289fdc['type']&&_0x289fdc['data']['oldValue']!=_0x1d4e58['data']['oldValue'])continue;if('attribute'==_0x289fdc['type']&&_0x1e0167['_suggestionsConversion']['isBlockAttribute'](_0x289fdc['data']['key']))continue;if('formatBlock'==_0x289fdc['type']){const _0x5d6ba3=_0x1e0167['editor']['model'],_0x285da0=_0x289fdc['getContainedElement']();if(_0x285da0&&(_0x5d6ba3['schema']['isObject'](_0x285da0)||_0x5d6ba3['schema']['isLimit'](_0x285da0)))continue;}const _0x26f175=_0x51332a['get'](_0x289fdc),_0x354b0b=_0x3f7b79['get'](_0x289fdc),_0xd42db3=_0x3f7b79['get'](_0x1d4e58),_0x4b3cf4=_0x289fdc['commentThread']&&_0x289fdc['commentThread']['length'],_0x495ce6=_0x1d4e58['commentThread']&&_0x1d4e58['commentThread']['length'];if(!_0x4b3cf4&&_0x26f175(_0xd42db3,_0x354b0b))return _0x1e0167['_joinSuggestions'](_0x1d4e58,_0x289fdc),_0x3f7b79['delete'](_0x289fdc),!0x0;if(!_0x495ce6&&_0x26f175(_0x354b0b,_0xd42db3))return _0x1e0167['_joinSuggestions'](_0x289fdc,_0x1d4e58),_0x3f7b79['delete'](_0x1d4e58),!0x0;}return!0x1;}}_joinSuggestions(_0x368842,_0x16ef0c){if(_0x368842['isMultiRange']){for(const _0x420155 of _0x16ef0c['getRanges']())_0x368842['addRange'](_0x420155);}else{const _0x2ef7c8=_0x16ef0c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x368842,this['_model']['createRange'](_0x368842['getFirstRange']()['start'],_0x2ef7c8));}_0x16ef0c['removeMarkers']();}_getMarkerAnnouncementText(_0xa9e0cf,_0x14f833,_0x16e0ae){const _0x48853d=_0xa9e0cf['startsWith']('format')||_0xa9e0cf['startsWith']('attribute')?'FORMATTING':_0xa9e0cf['toUpperCase']();return Bt(this['editor']['locale'],_0x14f833+'_'+_0x48853d+'_SUGGESTION_ANNOUNCEMENT',_0x16e0ae);}_initAriaMarkerChangeAnnouncements(){const _0x3ee375=this['editor'];if(!_0x3ee375['ui'])return;const {ariaLiveAnnouncer:_0xd5ba80}=_0x3ee375['ui'];st(this['_model'],({left:_0x4e3043,entered:_0x5c20d1})=>{for(const _0x5c47e0 of _0x4e3043){const {group:_0x5f2e2e,type:_0x1649e6}=it(_0x5c47e0['name']);if('suggestion'===_0x5f2e2e){_0xd5ba80['announce'](this['_getMarkerAnnouncementText'](_0x1649e6,'LEAVE'));break;}}for(const _0x4db3be of _0x5c20d1){const {group:_0x18ca94,type:_0x367f47}=it(_0x4db3be['name']);if('suggestion'===_0x18ca94){_0xd5ba80['announce'](this['_getMarkerAnnouncementText'](_0x367f47,'ENTER',_0x502635(_0x5ea33f)));break;}}});}_processAttributeChanges(_0x2d69c2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x173b7f=this['editor'],_0x41cab7=_0x173b7f['model']['document']['differ']['getChanges']();if(0x0==_0x41cab7['length'])return!0x1;const _0x51ccbc=[],_0x1d65b5=_0x41cab7['filter'](_0x794b65=>'attribute'==_0x794b65['type']),_0x4117cd=_0x41cab7['filter'](_0xd1fbc1=>'insert'==_0xd1fbc1['type']&&'$text'!=_0xd1fbc1['name']),_0x75c337=_0x41cab7['filter'](_0x4e98dd=>'remove'==_0x4e98dd['type']&&'$text'!=_0x4e98dd['name']);for(const _0x40cfce of _0x1d65b5)_0x51ccbc['push']({'key':_0x40cfce['attributeKey'],'newValue':_0x40cfce['attributeNewValue'],'oldValue':_0x40cfce['attributeOldValue'],'range':pn(_0x40cfce['range'],_0x173b7f['model'])});for(const _0x417329 of _0x4117cd){const _0x15f9e1=_0x75c337['find'](_0x33b35a=>_0x33b35a['position']['isEqual'](_0x417329['position']));_0x15f9e1&&_0x51ccbc['push']({'key':an,'newValue':_0x417329['name'],'oldValue':_0x15f9e1['name'],'range':_0x173b7f['model']['createRangeOn'](_0x417329['position']['nodeAfter'])});}return 0x0!=_0x51ccbc['length']&&this['_reduceExistingSuggestions'](_0x2d69c2,_0x51ccbc);}_processAttributeSuggestions(_0xba9e6a){let _0x151271=!0x1;const _0x35873c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d5b13=>_0x3d5b13['data']['newRange']&&_0x3d5b13['name']['startsWith']('suggestion:attribute:'));for(const _0xfed05b of _0x35873c){const {subType:_0x25a2ea,id:_0x52af98}=it(_0xfed05b['name']),_0x5d2b72=_0x25a2ea['split']('|')[0x0];for(const _0x9f0476 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x9f0476['id']!=_0x52af98&&'attribute'==_0x9f0476['type']&&_0x9f0476['data']&&_0x9f0476['data']['key']==_0x5d2b72&&_0x9f0476['getFirstRange']()['isIntersecting'](_0xfed05b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x9f0476,_0xfed05b['data']['newRange'],_0xba9e6a),_0x151271=!0x0);}return _0x151271;}recordAttributeChanges(_0x3b61e3){this['_recordAttributeSuggestions']=!0x0,_0x3b61e3();}_reduceExistingSuggestions(_0xffed0c,_0x170484){if(0x0==_0x170484['length'])return!0x1;let _0x3e5979=!0x1;for(const _0x6c172b of _0x170484){const _0xd8a096=this['_findSuggestions'](_0x6c172b['range'],'attribute')['filter'](_0x1c2f7b=>!_0x1c2f7b['meta']['isNextTo'])['map'](_0xd0148b=>_0xd0148b['suggestion']),_0x22fd25=_0x1d4874({'newValue':_0x6c172b['newValue']});_0xd8a096['filter'](_0x132518=>{const [_0x2e7d92,_0x54321c]=_0x132518['subType']['split']('|');return _0x2e7d92==_0x6c172b['key']&&_0x54321c!=_0x22fd25;})['forEach'](_0x596273=>{this['_reduceSuggestionAttributeRange'](_0x596273,_0x6c172b['range'],_0xffed0c),_0x3e5979=!0x0;});}return _0x3e5979;}_reduceSuggestionAttributeRange(_0x2d6225,_0x19a5e4,_0x4516e4){const _0x4689b9=_0x2d6225['getFirstRange']()['getDifference'](_0x19a5e4);0x0!==_0x4689b9['length']?0x1!==_0x4689b9['length']?this['_breakSuggestionMarker'](_0x2d6225,_0x19a5e4['start'],_0x19a5e4['end']):this['_setSuggestionRange'](_0x2d6225,_0x4689b9[0x0]):_0x4516e4['removeMarker'](_0x2d6225['getFirstMarker']());}},dn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x29149c){this['_editor']=_0x29149c,this['_model']=_0x29149c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x5e3ee7,_0x5ce675,_0x4f59c9,_0x30aa1f,_0x4c1c32,_0x392762,_0x2d7350){return new wt(this['_model'],{'type':_0x5e3ee7,'subType':_0x5ce675,'id':_0x4f59c9,'originalSuggestionId':_0x2d7350,'author':_0x30aa1f,'creator':_0x30aa1f,'attributes':_0x4c1c32,'onAttributesChange':_0x392762,'onAccept':(..._0x35bd26)=>this['getSuggestionCallback'](_0x5e3ee7,_0x5ce675,'accept')(..._0x35bd26),'onDiscard':(..._0x50dac3)=>this['getSuggestionCallback'](_0x5e3ee7,_0x5ce675,'discard')(..._0x50dac3)});}registerCustomCallback(_0x113fe2,_0xabce68,_0x528c71,_0x650946){const _0x34a073=_0x113fe2+':'+_0xabce68+':'+_0x528c71;this['_customCallbacks']['set'](_0x34a073,_0x650946);}getSuggestionCallback(_0x4ef994,_0x35e85d,_0x39601d){const _0x4044b7=_0x4ef994+':'+_0x35e85d+':'+_0x39601d;return this['_customCallbacks']['get'](_0x4044b7)||this['_defaultCallbacks']['get'](_0x4ef994+':'+_0x39601d);}_registerDefaultCallbacks(){const _0x1c1f9e=()=>!0x1,_0x4a5de1=_0x5a880b=>{_0x5a880b['sort']((_0x311e88,_0x30c474)=>_0x311e88['start']['isBefore'](_0x30c474['start'])?0x1:-0x1),this['_model']['change'](_0x25caf5=>{for(const _0x355908 of _0x5a880b){let _0x20e6bc;_0x20e6bc=_0x355908['end']['isAtEnd']&&_0x355908['end']['parent']==_0x355908['start']['nodeAfter']?_0x25caf5['createSelection'](_0x355908['start']['nodeAfter'],'on'):_0x25caf5['createSelection'](_0x355908),this['_model']['deleteContent'](_0x20e6bc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x249e04=(_0x27c1a3,_0x2b8258)=>{_0x2b8258&&this['_model']['change'](_0x2bbe85=>{const {commandName:_0x43ed3d,commandParams:_0x4b0d83=[]}=_0x2b8258,_0x16e50d=_0x27c1a3['map'](_0x1acc99=>(gn(_0x1acc99)&&(_0x1acc99=this['_model']['createRange'](_0x1acc99['end'])),_0x1acc99))['filter'](_0x375a45=>'$graveyard'!==_0x375a45['root']['rootName']);if(_0x16e50d['length']<0x1)return;const _0x173237=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x358a21=>ct['fromRange'](_0x358a21));_0x2bbe85['setSelection'](_0x16e50d);for(const _0x12864b of this['_editor']['commands']['commands']())_0x12864b['refresh']();_0x4b0d83['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x43ed3d,..._0x4b0d83);const _0x6bfc1=_0x173237['filter'](_0x1a899d=>'$graveyard'!=_0x1a899d['root']['rootName']);_0x6bfc1['length']>0x0&&_0x2bbe85['setSelection'](_0x6bfc1);for(const _0x1618ac of _0x173237)_0x1618ac['detach']();});},_0x4bc7c3=(_0x193147,_0x461bcb)=>0x1==_0x193147['length']&&0x1==_0x461bcb['length']&&_0x193147[0x0]['end']['isEqual'](_0x461bcb[0x0]['start']),_0x431796=(_0x33f540,_0x40e030,_0x15606f,_0x75c71a)=>In(_0x33f540,_0x40e030,_0x15606f,_0x75c71a)?[_0x33f540,_0x40e030]:In(_0x40e030,_0x33f540,_0x75c71a,_0x15606f)?[_0x40e030,_0x33f540]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1c1f9e),this['_defaultCallbacks']['set']('insertion:discard',_0x4a5de1),this['_defaultCallbacks']['set']('insertion:join',_0x4bc7c3),this['_defaultCallbacks']['set']('insertion:chain',_0x431796),this['_defaultCallbacks']['set']('deletion:accept',_0x4a5de1),this['_defaultCallbacks']['set']('deletion:discard',_0x1c1f9e),this['_defaultCallbacks']['set']('deletion:join',_0x4bc7c3),this['_defaultCallbacks']['set']('deletion:chain',_0x431796),this['_defaultCallbacks']['set']('formatInline:accept',_0x249e04),this['_defaultCallbacks']['set']('formatInline:discard',_0x1c1f9e),this['_defaultCallbacks']['set']('formatInline:join',_0x4bc7c3),this['_defaultCallbacks']['set']('formatInline:chain',_0x1c1f9e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x249e04),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1c1f9e),this['_defaultCallbacks']['set']('formatBlock:join',_0x4bc7c3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1c1f9e),this['_defaultCallbacks']['set']('attribute:accept',_0x1c1f9e),this['_defaultCallbacks']['set']('attribute:discard',(_0x6b46e8,_0x542381)=>{if(!_0x542381)return;const _0x3abb3f=this['_editor']['plugins']['get'](_0x343b2a);this['_model']['change'](_0x55ff74=>{if('$elementName'==_0x542381['key'])for(const _0x30a6a7 of _0x6b46e8){const _0x186457=_0x30a6a7['start']['nodeAfter'],_0x3adebd=_0x542381['oldValue'];_0x55ff74['rename'](_0x186457,_0x3adebd);}else{if(_0x3abb3f['isBlockAttribute'](_0x542381['key'])){for(const _0x1049a9 of _0x6b46e8)void 0x0!==_0x542381['oldValue']?_0x55ff74['setAttribute'](_0x542381['key'],_0x542381['oldValue'],_0x1049a9['start']['nodeAfter']):_0x55ff74['removeAttribute'](_0x542381['key'],_0x1049a9['start']['nodeAfter']);}else{for(const _0x11c4a2 of _0x6b46e8)_0x542381['oldValue']?_0x55ff74['setAttribute'](_0x542381['key'],_0x542381['oldValue'],_0x11c4a2):_0x55ff74['removeAttribute'](_0x542381['key'],_0x11c4a2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4bc7c3);}};function hn(_0x1f1627,_0x4ac9af,_0x3a2743){for(const _0x1cd2ac of _0x4ac9af['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1cd2ac['root']==_0x1cd2ac)return!0x1;if(!_0x3a2743['containsItem'](_0x1cd2ac))return!0x1;if(_0x1f1627['isObject'](_0x1cd2ac)||_0x1f1627['isLimit'](_0x1cd2ac))return!0x0;}return!0x1;}function gn(_0x51c531){return _0x51c531['end']['parent']==_0x51c531['start']['nodeAfter']&&_0x51c531['end']['isAtStart'];}function fn(_0x4a53f3,_0x58fe7b,_0x53e009,_0x390555){const _0x3e0bdd=_0x5c9f8c=>!_0x5c9f8c['item']['is']('$textProxy')&&!_0x390555['isObject'](_0x5c9f8c['item']),_0x310b62=_0x4a53f3['start']['getLastMatchingPosition'](_0x3e0bdd),_0x4ad8fc=_0x4a53f3['end']['getLastMatchingPosition'](_0x3e0bdd,{'direction':'backward'});return(!_0x4a53f3['start']['isEqual'](_0x310b62)||!_0x4a53f3['end']['isEqual'](_0x4ad8fc))&&(_0x310b62['isBefore'](_0x4ad8fc)?_0x53e009['updateMarker'](_0x58fe7b,{'range':_0x53e009['createRange'](_0x310b62,_0x4ad8fc)}):_0x53e009['removeMarker'](_0x58fe7b),!0x0);}function mn(_0x2190b8){return _0x1d4874(_0x2190b8);}function En(_0x275f48){const _0x1df1b3=_0x275f48['start']['nodeAfter'];return _0x1df1b3&&_0x1df1b3['is']('element');}function Tn(_0x1eaac7){return gn(_0x1eaac7)||function(_0x15d16d){return _0x15d16d['start']['parent']==_0x15d16d['end']['nodeBefore']&&_0x15d16d['start']['isAtEnd'];}(_0x1eaac7);}function _n(_0x57f9dd,_0x5c0f5f){try{const _0x6af65b=_0x57f9dd['getRange']();for(const _0x92ac9d of _0x5c0f5f)if(_0x57f9dd!==_0x92ac9d&&_0x6af65b&&_0x6af65b['isIntersecting'](_0x92ac9d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function pn(_0x1dd8e8,_0xec0b8b){return null==_0x1dd8e8['end']['nodeBefore']&&_0x1dd8e8['end']['parent']==_0x1dd8e8['start']['nodeAfter']?Ln(_0x1dd8e8['start']['nodeAfter'],_0xec0b8b):_0x1dd8e8;}function Ln(_0xd98d53,_0x303505){const _0xd0461=_0x303505['schema']['isObject'](_0xd98d53)||_0x303505['schema']['isSelectable'](_0xd98d53);return _0x303505['createRange'](_0x303505['createPositionAt'](_0xd98d53,'before'),_0xd0461?_0x303505['createPositionAfter'](_0xd98d53):_0x303505['createPositionAt'](_0xd98d53,'end'));}function In(_0x4b5240,_0x1db569,_0x30b235,_0x6d0142){return!!An(_0x4b5240,_0x1db569)&&_0x30b235['end']['isEqual'](_0x6d0142['start']);}function An(_0x233eb8,_0x237966){if(!_0x233eb8['_isDataLoaded']||!_0x237966['_isDataLoaded'])return!0x1;const _0x26d491=new Set(Object['keys'](_0x233eb8['attributes'])),_0x370c83=new Set(Object['keys'](_0x237966['attributes']));if(_0x26d491['delete']('groupId'),_0x370c83['delete']('groupId'),0x0==_0x26d491['size']&&0x0==_0x370c83['size'])return!0x0;if(_0x26d491['size']!=_0x370c83['size'])return!0x1;const _0x317f41={..._0x233eb8['attributes']},_0xdd20e2={..._0x237966['attributes']};return delete _0x317f41['groupId'],delete _0xdd20e2['groupId'],JSON['stringify'](_0x317f41)==JSON['stringify'](_0xdd20e2);}function bn(_0x1a04d8,_0x2f46e2){const _0x5a33f6=Cn(_0x1a04d8['attributes']),_0x127bc8=Cn(_0x2f46e2);if(!_0x1a04d8['_isDataLoaded'])return!0x1;if(!dt(_0x5a33f6['@ai'],_0x127bc8['@ai']))return!0x1;for(const _0xe88c83 of Object['keys'](_0x127bc8))if(!dt(_0x5a33f6[_0xe88c83],_0x127bc8[_0xe88c83]))return!0x1;return!0x0;}function Cn(_0x5f36a8){const _0x49f0db=Object['assign']({},_0x5f36a8);return delete _0x49f0db['skipNestingCheck'],delete _0x49f0db['tablePasteChainId'],_0x49f0db;}function kn(_0x39f060){return _0x39f060['split']('|')[0x0];}const Rn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x717ca8();var Nn=class extends Rn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x34268a,_0x576ef3,_0x36754c,_0x3fce3c){super(),this['model']=_0x576ef3,this['view']=_0x36754c,this['commentThreadController']=_0x3fce3c,this['_editor']=_0x34268a,this['_acceptCommand']=_0x34268a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x34268a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x449134,_0x37b4a3)=>_0x449134||_0x37b4a3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x83aadf=>_0x83aadf&&this['_editor']['model']['canEditAt'](_0x576ef3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2a540f=>_0x2a540f&&this['_editor']['model']['canEditAt'](_0x576ef3['getRanges']())),this['_pendingAction']=null,_0x36754c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x36754c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x36754c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x36754c,'change:isDirty',()=>{_0x36754c['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 _0x4b6cbf=Bt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4b6cbf);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},yn=class extends _0x5e596b{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2167ba,_0x3e0e65,_0x2cef3c,_0x549064){super(_0x2167ba),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4c5527(_0x2167ba,Bt(_0x2167ba,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3e0e65['authoredAt']),this['bind']('authoredAt')['to'](_0x3e0e65),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',_0x3e0e65,'authoredAt',this,'descriptionParts',(_0x3ae99a,_0x554d47,_0x55d950)=>{const _0x2b6bbf=_0x55d950['map'](_0x53cc12=>bt(_0x53cc12['content']))['join']('.\x20')+'.',_0x2e86b7=_0x3e0e65['aiSource']&&'author'===_0x549064['showAISource']?_0x549064['aiAuthor']['name']:_0x3e0e65['author']['name'],_0x3ea001=Bt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3ae99a-0x1,_0x2e86b7,_0x554d47?_0x549064['formatDateTime'](_0x554d47):'',new DOMParser()['parseFromString'](_0x17317b(_0x2b6bbf),'text/html')['body']['textContent']]);return _0x3e0e65['aiSource']&&'pill'===_0x549064['showAISource']?_0x3ea001+'\x20'+Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3ea001;}),this['focusables']=new _0x13a9f2(),this['focusTracker']=new _0x423539(),this['keystrokes']=new _0x37b2dc(),this['focusCycler']=new _0x43ef98({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x24a0c0=>_0x24a0c0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3e0e65,this['_localUser']=_0x2cef3c,this['_config']=_0x549064,_0x549064['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),nt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x2d9471}=this['_config'];this['commentsListView']=new _0x2d9471(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',_0x31a4fb=>_0x31a4fb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1abe12,_0x186af6)=>_0x1abe12||!!_0x186af6);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x3884a}=this['_config'],_0x3d4602=new _0x3884a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4295d5=_0x3d4602['commentInputView'];return _0x3d4602['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4295d5,'value',(_0x6ab48b,_0x16aea9,_0x22e982)=>!!_0x22e982||_0x6ab48b&&!_0x16aea9),_0x4295d5['on']('submit',(_0x4db59a,_0x3e6312)=>{this['fire']('addComment',_0x3e6312),_0x4295d5['editor']['setData']('');}),_0x4295d5['on']('cancel',()=>this['focus']()),_0x4295d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3d4602;}},Sn=class extends yn{suggestionView;_descriptionElement;constructor(_0x993d02,_0x433b79,_0x5750d0,_0x2b04b6){super(_0x993d02,_0x433b79,_0x5750d0,_0x2b04b6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x211de3=>_0x211de3&&_0x211de3[0x0]?_0x211de3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x28cf43,_0x17d4c2)=>{let _0x140df6='';for(const _0x333fff of _0x28cf43)_0x140df6+='<p>'+bt(_0x333fff['content'],_0x333fff['color'])+'</p>';return _0x17d4c2?_0x140df6:rt(_0x140df6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2b04b6['SuggestionView'](_0x993d02,_0x433b79,{'formatDateTime':_0x2b04b6['formatDateTime'],'showAISource':_0x2b04b6['showAISource'],'aiAuthor':_0x2b04b6['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x26fadc=>!!_0x26fadc||Bt(_0x993d02,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x2ef6f8=>!!_0x2ef6f8||Bt(_0x993d02,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0x372efb=this['bindTemplate'],_0x44d931=[this['suggestionView']];return this['commentsListView']&&_0x44d931['push'](this['commentsListView']),this['commentThreadInputView']&&_0x44d931['push'](this['commentThreadInputView']),_0x44d931['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x372efb['if']('isActive','ck-suggestion-wrapper--active'),_0x372efb['to']('type',_0x344fc5=>'ck-suggestion-'+_0x344fc5),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':_0x372efb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x44d931};}['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));}},Mn=class extends _0x5e596b{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x2376b6,_0x335f02,_0x334450){super(_0x2376b6),this['_model']=_0x335f02,this['_config']=_0x334450,this['set']('description',''),this['bind']('authoredAt')['to'](_0x335f02),this['acceptButton']=this['_createButton'](Bt(_0x2376b6,'Accept\x20suggestion'),_0x3ca8a3,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Bt(_0x2376b6,'Discard\x20suggestion'),_0x541890,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0xfc9aa4=!!_0x335f02['aiSource']&&'author'===_0x334450['showAISource'],_0x42a259=_0xfc9aa4?this['_createAIUser'](_0x334450['aiAuthor']):_0x335f02['author'],_0x30c303=_0xfc9aa4&&!_0x334450['aiAuthor']['avatar']?_0x5d53b2:void 0x0;this['userView']=new _0x30f0d0(_0x2376b6,_0x42a259,this['getUserViewNotificationText'](),_0x30c303),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x13a9f2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x423539(),this['keystrokes']=new _0x37b2dc(),this['focusCycler']=new _0x43ef98({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xd106c3=>_0xd106c3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3a8d66=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3a8d66['innerHTML']=_0x17317b(this['description']),this['on']('change:description',(_0x1a1fb8,_0x55085c,_0x1150f9)=>{_0x3a8d66['innerHTML']=_0x17317b(_0x1150f9);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x12029a=this['bindTemplate'],_0x3be8b1=new _0x145f0a();_0x3be8b1['content']=_0xe2237a;const _0x3622a9=[{'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']}},_0x3be8b1,{'tag':'time','attributes':{'datetime':_0x12029a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x12029a['to']('authoredAt',_0xc5d02a=>this['_config']['formatDateTime'](_0xc5d02a))}]}]},{'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']&&_0x3622a9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x4cfe96=new _0x1373e3(this['locale']);_0x4cfe96['set']({'icon':_0x253047,'label':Bt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x3622a9['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x4cfe96]});}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':_0x3622a9}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Bt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x2a5a55){return new _0x4373da({'id':'ck-ai-author','name':_0x2a5a55['name'],'avatar':_0x2a5a55['avatar'],'color':new _0x12a60d(0x0)});}_createButton(_0xb83dd9,_0x5c48e6,_0x4706a6,_0x41fef6,_0x1917ba){const _0x5a0c32=new _0x1de594(this['locale']);return _0x5a0c32['set']({'label':_0xb83dd9,'icon':_0x5c48e6,'tooltip':!0x0,'tooltipPosition':_0x1917ba}),_0x5a0c32['extendTemplate']({'attributes':{'class':_0x4706a6}}),_0x5a0c32['on']('execute',()=>{this['fire'](_0x41fef6,this['_model']['id']);}),_0x5a0c32;}_setupKeyboardNavigation(){const _0x420018=this['element'];this['keystrokes']['listenTo'](_0x420018);for(const _0x45eab1 of this['focusables'])this['focusTracker']['add'](_0x45eab1['element']),this['keystrokes']['listenTo'](_0x45eab1['element']);this['keystrokes']['set']('enter',(_0x97a72c,_0x55c8f9)=>{_0x420018===_0x97a72c['target']&&(this['focusCycler']['focusFirst'](),_0x55c8f9());}),this['keystrokes']['set']('esc',(_0x240577,_0x3a2551)=>{_0x420018!==_0x240577['target']&&(this['focus'](),_0x3a2551());});}},On=class extends _0x27de82{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[un,_0x15d2c7,_0x2c9b6f,_0x391807,_0x20cafe];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59c9e4){super(_0x59c9e4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2da382=this['editor']['config'];_0x2da382['define']('trackChanges.SuggestionThreadView',Sn),_0x2da382['define']('trackChanges.SuggestionView',Mn),_0x2da382['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2da382['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x350dfe,_0x2a22c7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x37ae45,_0x5d0d12]of this['_handleControllerBuffer']){const _0x531b35=this['_suggestionToController']['has'](_0x37ae45);_0x531b35||_0x5d0d12?_0x531b35&&_0x5d0d12&&this['_destroyController'](_0x37ae45):this['_initializeController'](_0x37ae45);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x20cafe)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x350dfe,_0x2a22c7);}init(){const _0x5e94e1=this['editor'],_0x20f248=_0x5e94e1['plugins']['get'](un),_0x335e32=_0x5e94e1['plugins']['get'](_0x391807),_0x481d8e=_0x5e94e1['plugins']['get'](_0x20cafe),_0x108a79=_0x5e94e1['plugins']['get'](_0x2c9b6f);this['_addUIComponentsToFactory'](),_0x481d8e['addSourceCollector'](()=>{const _0xb70622=[];for(const [_0x16dbe4,_0x23f17d]of Array['from'](this['_suggestionToController'])){const _0xdc5252=_0x16dbe4['getAllAdjacentSuggestions'](),_0x4a0891=[];for(const _0x4dac19 of _0xdc5252){if(!_0x4dac19['isInContent'])continue;if(_0x4dac19['isMultiRange']){_0x4a0891['push'](..._0x4dac19['getRanges']());continue;}const _0x38dcd3=_0x4dac19['getFirstRange']();if(_0x4a0891['length']>0x0){const _0x1da3ba=_0x4a0891[0x0]['getJoined'](_0x38dcd3);if(_0x1da3ba){_0x4a0891[0x0]=_0x1da3ba;continue;}}_0x4a0891['push'](_0x38dcd3);}_0xb70622['push']([_0x23f17d['view'],_0x4a0891]);}return _0xb70622;}),this['listenTo'](_0x20f248,'suggestionLoaded',(_0x46eb23,_0x10d3f1)=>{this['listenTo'](_0x10d3f1,'change:previous',(_0x54b2c1,_0x1f98a1,_0x38cb8b,_0x3e8a41)=>{_0x10d3f1['isInContent']&&(null==_0x38cb8b?(this['_updateController'](_0x3e8a41['head']),this['_handleSuggestionControllerDelayed'](_0x10d3f1,!0x1)):(this['_updateController'](_0x38cb8b['head']),null==_0x3e8a41&&this['_handleSuggestionControllerDelayed'](_0x10d3f1,!0x0)));}),null!==_0x10d3f1['previous']?this['_updateController'](_0x10d3f1['head']):this['_handleSuggestionControllerDelayed'](_0x10d3f1,!0x1);}),this['listenTo'](_0x20f248,'suggestionUnloaded',(_0x703e31,_0x2d688f,_0x3e5568)=>{this['stopListening'](_0x2d688f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d688f),this['_suggestionToController']['has'](_0x2d688f)&&this['_destroyController'](_0x2d688f),_0x3e5568&&this['_updateController'](_0x3e5568['head']);}),this['listenTo'](_0x20f248,'suggestionChanged',(_0x5b2c46,_0x315308)=>{this['_updateController'](_0x315308);}),this['listenTo'](_0x335e32,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x108a79,'addComment',(_0x278d2e,{threadId:_0x20b4aa,isFromAdapter:_0x18c481})=>{if(_0x18c481||!_0x20f248['hasSuggestion'](_0x20b4aa))return;const _0x13e414=_0x20f248['getSuggestion'](_0x20b4aa);this['_suggestionToController']['get'](_0x13e414)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x2faf00=[this['editor']];for(const _0x335e2b of _0x2faf00){let _0x4f90d3;for(const _0x5dcca8 in _0x335e2b){const _0x55eb13=_0x5dcca8,_0xbca81e=_0x335e2b[_0x55eb13];if('trackChangesLicenseKeyValid'==_0xbca81e||'trackChangesLicenseKeyInvalid'==_0xbca81e||'trackChangesLicenseKeyExpired'==_0xbca81e||'trackChangesLicenseKeyDomainLimit'==_0xbca81e||'trackChangesLicenseKeyNotAllowed'==_0xbca81e||'trackChangesLicenseKeyEvaluationLimit'==_0xbca81e||'trackChangesLicenseKeyUsageLimit'==_0xbca81e){delete _0x335e2b[_0x55eb13],_0x4f90d3=_0xbca81e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4f90d3&&_0x335e2b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4f90d3&&_0x335e2b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4f90d3&&_0x335e2b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4f90d3&&_0x335e2b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4f90d3&&_0x335e2b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4f90d3&&_0x335e2b['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x566c7c){const _0x329fdc=this['_suggestionToController']['get'](_0x566c7c);return _0x329fdc&&this['editor']['plugins']['get'](_0x391807)['getByInnerView'](_0x329fdc['view'])||null;}getSuggestionForAnnotation(_0x1a6744){const _0x13d504=this['_viewToController']['get'](_0x1a6744['innerView']);return _0x13d504?_0x13d504['model']:null;}_refreshActiveMarkers(){const _0x58d5d6=this['editor']['plugins']['get'](_0x391807),_0x4c1b12=this['editor']['plugins']['get'](un),_0x312c6d=Array['from'](_0x58d5d6['activeAnnotations'],_0x347dad=>_0x347dad['innerView'])['filter'](_0xa1d82=>this['_viewToController']['has'](_0xa1d82)),_0x4229d7=[];for(const _0x5825b1 of _0x312c6d){const _0x563503=this['_viewToController']['get'](_0x5825b1)['model']['getAllAdjacentSuggestions']();_0x4229d7['push'](..._0x563503['reduce']((_0x273082,_0x58612a)=>[..._0x273082,..._0x58612a['getMarkerNames']()],[]));}_0x4c1b12['activeMarkers']=_0x4229d7;}_addUIComponentsToFactory(){const _0x2af0cb=this['editor'],_0x5426e5=_0x2af0cb['locale'],_0x1d14e0=Bt(_0x5426e5,'Track\x20changes'),_0x470912=new _0x9e661([{'type':'switchbutton','model':new _0xb44f9c({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d14e0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xb44f9c({'withText':!0x0,'label':Bt(_0x5426e5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb44f9c({'withText':!0x0,'label':Bt(_0x5426e5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb44f9c({'withText':!0x0,'label':Bt(_0x5426e5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb44f9c({'withText':!0x0,'label':Bt(_0x5426e5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2af0cb['plugins']['has']('TrackChangesPreview')&&_0x470912['addMany']([{'type':'separator'},{'type':'button','model':new _0xb44f9c({'withText':!0x0,'label':Bt(_0x5426e5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xccb934 of _0x470912)if(wn(_0xccb934)){const _0xf13f5b=_0x2af0cb['commands']['get'](_0xccb934['model']['commandName']);_0xccb934['model']['bind']('isOn','isEnabled')['to'](_0xf13f5b,'value','isEnabled');}_0x2af0cb['ui']['componentFactory']['add']('trackChanges',_0x128de2=>this['_createToolbarButton'](_0x128de2,_0x470912,_0x1d14e0)),_0x2af0cb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x27c67c=>this['_createMenuBarMenu'](_0x27c67c,_0x470912,_0x1d14e0));}_createToolbarButton(_0x550eb0,_0x50a36a,_0x44a0e9){const _0x2464e4=_0x223889(_0x550eb0,_0xa28e10),_0x3a2bd8=this['editor']['commands']['get']('trackChanges');_0x2464e4['buttonView']['set']({'tooltip':_0x44a0e9,'label':_0x44a0e9,'icon':_0xe2237a}),_0x2464e4['buttonView']['bind']('isOn')['to'](_0x3a2bd8,'value'),_0x2464e4['buttonView']['on']('execute',()=>{_0x3a2bd8['execute'](),this['editor']['editing']['view']['focus']();}),_0x2c643a(_0x2464e4,_0x50a36a,{'role':'menu'});const _0x2cf954=[];for(const _0xe766b2 of _0x50a36a)wn(_0xe766b2)&&_0x2cf954['push'](this['editor']['commands']['get'](_0xe766b2['model']['commandName']));const _0xbe544f=_0x2464e4['buttonView'];return _0xbe544f['actionView']['unbind']('isEnabled'),_0xbe544f['arrowView']['unbind']('isEnabled'),_0xbe544f['actionView']['bind']('isEnabled')['to'](_0x3a2bd8,'isEnabled'),_0xbe544f['arrowView']['bind']('isEnabled')['toMany'](_0x2cf954,'isEnabled',(..._0x5bc8e5)=>_0x5bc8e5['some'](_0x4fbbf5=>_0x4fbbf5)),_0x2464e4['on']('execute',_0x336570=>{this['editor']['execute'](_0x336570['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2464e4;}_createMenuBarMenu(_0x4510a9,_0x4f8526,_0x495278){const _0x1936bf=new _0x2f8e77(_0x4510a9),_0x59e34f=this['editor']['commands']['get']('trackChanges');_0x1936bf['buttonView']['set']({'label':_0x495278,'icon':_0xe2237a});const _0xae36e9=new _0x1bc4c5(_0x4510a9);for(const _0x1bab08 of _0x4f8526){if('separator'==_0x1bab08['type']){_0xae36e9['items']['add'](new _0x4df9bc(_0x4510a9));continue;}const _0x2be075=new _0x9731b7(_0x4510a9,_0x1936bf),_0xfca25=new _0x16188b(_0x4510a9),_0x2737ad=_0x1bab08['model'];_0xfca25['bind'](...Object['keys'](_0x2737ad))['to'](_0x2737ad),_0xfca25['delegate']('execute')['to'](_0x1936bf),_0xfca25['on']('execute',()=>{this['editor']['execute'](_0x2737ad['commandName']),this['editor']['editing']['view']['focus']();}),_0x2be075['children']['add'](_0xfca25),_0xae36e9['items']['add'](_0x2be075);}return _0x1936bf['bind']('isEnabled')['to'](_0x59e34f,'isEnabled'),_0x1936bf['panelView']['children']['add'](_0xae36e9),_0x1936bf;}_initializeController(_0x305d1e){const _0x4c702f=this['editor'],_0x4ee850=_0x4c702f['config'],_0x2ace0f=_0x4c702f['plugins']['get'](_0x391807),_0x390a0c=_0x4c702f['plugins']['get'](_0x2c9b6f),_0xea6fe5=_0x4c702f['plugins']['get'](_0x20cafe),_0xce6c28=_0x4c702f['plugins']['get'](_0x15d2c7)['me'],_0x4a92c0=_0x4ee850['get']('trackChanges')['SuggestionThreadView'],_0x5aa3dd=_0x4ee850['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2c079f,CommentThreadInputView:_0x12dac4}=_0x4c702f['plugins']['get']('CommentsUI');let _0x26306c,_0x2d6153,_0x309d93;this['_annotationViews']['has'](_0x305d1e['id'])?(_0x2d6153=this['_annotationViews']['get'](_0x305d1e['id']),_0x26306c=_0x2d6153['mainView']):(_0x26306c=new _0x4a92c0(_0x4c702f['locale'],_0x305d1e,_0xce6c28,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4ee850['get']('comments.editorConfig'),'licenseKey':_0x4ee850['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4ee850['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ee850['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ee850['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x382e7c(_0x4ee850['get']('locale'),_0x4c702f['locale']),'CommentView':_0x4ee850['get']('comments')['CommentView'],'CommentsListView':_0x2c079f,'CommentThreadInputView':_0x12dac4,'SuggestionView':_0x5aa3dd,'showAISource':_0x4ee850['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4ee850['get']('trackChanges.aiAuthor'),'name':_0x4ee850['get']('trackChanges.aiAuthor')?.['name']||Bt(_0x4c702f['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x26306c['suggestionView']['acceptButton']['on']('execute',()=>{_0x4c702f['editing']['view']['focus']();}),_0x26306c['suggestionView']['discardButton']['on']('execute',()=>{_0x4c702f['editing']['view']['focus']();}),_0x2d6153=_0x2ace0f['createAnnotationView'](this['editor']['locale'],_0x26306c),_0x2d6153['bind']('isDirty')['to'](_0x26306c,'isDirty'),_0x2d6153['bind']('length')['to'](_0x26306c),_0x2d6153['bind']('type')['to'](_0x26306c,'type',_0x168299=>'suggestion-'+_0x168299),_0x26306c['on']('escape',()=>{_0x309d93['fire']('escape');}),this['_annotationViews']['set'](_0x305d1e['id'],_0x2d6153));const _0x430f94=_0x390a0c['createCommentThreadController'](_0x305d1e['commentThread'],_0x26306c),_0x419665=new Nn(_0x4c702f,_0x305d1e,_0x26306c,_0x430f94),_0x179c59=_0x305d1e['getAllAdjacentSuggestions']()['filter'](_0x165f15=>_0x165f15['isInContent']);_0x26306c['descriptionParts']=_0x4c702f['plugins']['get'](un)['descriptionFactory']['getDescriptions'](_0x179c59),this['_suggestionToController']['set'](_0x305d1e,_0x419665),this['_viewToController']['set'](_0x26306c,_0x419665);const _0x30b56b=()=>{const _0x40561c=[],_0x1ef17d=_0x305d1e['getAllAdjacentSuggestions']()['filter'](_0x513502=>_0x513502['isInContent']);for(const _0x39b3f3 of _0x1ef17d)_0x40561c['push'](..._0x39b3f3['getMarkers']());return _0x1da01f(_0x4c702f['editing'],_0x40561c);};_0x309d93=_0x2ace0f['createAnnotation']({'view':_0x2d6153,'target':_0x30b56b,'type':()=>'suggestion-'+_0x419665['view']['type'],'isVisible':!!_0x30b56b()}),_0x390a0c['_bindAnnotationToEditors'](_0x26306c,_0x309d93),_0x2ace0f['add'](_0x309d93),_0xea6fe5['registerAnnotation'](_0x309d93);}_destroyController(_0x337691){const _0xa6b712=this['editor']['plugins']['get'](_0x2c9b6f),_0x289c6f=this['editor']['plugins']['get'](_0x391807),_0x35db5b=this['_suggestionToController']['get'](_0x337691),_0x14a398=_0x35db5b['view'],_0x2868cc=_0x289c6f['getByInnerView'](_0x14a398);_0xa6b712['_unbindEditors'](_0x14a398),_0x2868cc&&_0x289c6f['remove'](_0x2868cc),this['_suggestionToController']['delete'](_0x337691),this['_viewToController']['delete'](_0x14a398),_0x35db5b['destroy']();}_updateController(_0x362d7f){if(!_0x362d7f['isInContent']||!this['_suggestionToController']['has'](_0x362d7f))return;const _0x4be656=this['editor']['plugins']['get'](un),_0x56b881=this['_suggestionToController']['get'](_0x362d7f),_0x5ac629=_0x362d7f['getAllAdjacentSuggestions']();_0x56b881['view']['descriptionParts']=_0x4be656['descriptionFactory']['getDescriptions'](_0x5ac629);}destroy(){for(const _0x4161a5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4161a5);for(const _0x27a340 of this['_annotationViews']['values']())_0x27a340['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function wn(_0x3546fd){return'model'in _0x3546fd;}var Bn=class extends _0x27de82{static get requires(){return[un,On,_0x4784d5];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x34ea95){this['editor']['plugins']['get'](un)['adapter']=_0x34ea95;}get adapter(){return this['editor']['plugins']['get'](un)['adapter'];}addSuggestion(_0x23c2b4){return this['editor']['plugins']['get'](un)['addSuggestionData'](_0x23c2b4);}getSuggestions({skipNotAttached:_0x7f86a=!0x1,toJSON:_0x3ed75f=!0x1}={}){return this['editor']['plugins']['get'](un)['getSuggestions']({'skipNotAttached':_0x7f86a,'toJSON':_0x3ed75f});}getSuggestion(_0x83cf93){return this['editor']['plugins']['get'](un)['getSuggestion'](_0x83cf93);}};const Fn=['Pagination'];var vn=class extends _0x27de82{static get requires(){return[un];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x5f1844=this['editor'];if(_0x5f1844['config']['define']('trackChangesData.editorCreator',_0x2404c1=>{const _0x5503dd=_0x5f1844['model']['document']['getRootNames']()['reduce']((_0x252a98,_0x2505dc)=>(_0x252a98[_0x2505dc]='',_0x252a98),{});return _0x5f1844['constructor']['create'](_0x5503dd,_0x2404c1);}),'function'!=typeof _0x5f1844['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d6318('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x1d6295){return Pn(this['editor'],!0x0,_0x1d6295);}getDataWithDiscardedSuggestions(_0x11e33a){return Pn(this['editor'],!0x1,_0x11e33a);}},Dn=class extends _0x27de82{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c1977){super(_0x1c1977),this['result']='end',_0x1c1977['editing']['view']['_overlayModeHint']='auto',_0x1c1977['_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 Un(_0x59e0d4){return void 0x0!==_0x59e0d4['getRootsAttributes'];}async function Pn(_0x3c87f0,_0x25b02f,_0x2b4228){const _0x242871=et(_0x3c87f0,Fn);if(_0x242871['plugins']['push'](un,Dn),Un(_0x3c87f0)){_0x242871['roots']=Object['create'](null);for(const _0x4299e8 of _0x3c87f0['model']['document']['getRootNames']())_0x242871['roots'][_0x4299e8]={'modelAttributes':_0x3c87f0['getRootAttributes'](_0x4299e8)};}const _0x5ebf81=document['createDocumentFragment'](),_0x3d7137=_0x3c87f0['config']['get']('trackChangesData')['editorCreator'],_0x1c38bd=await _0x3d7137(_0x242871,()=>function(_0x371b8d){const _0x35e213=document['createElement']('div');return _0x371b8d['appendChild'](_0x35e213),_0x35e213;}(_0x5ebf81));!function(_0x5ac4e9,_0x185ace){const _0x30dce=_0x5ac4e9['model']['document']['getRootNames']()['reduce']((_0x3a3601,_0x5dbdf9)=>(_0x3a3601[_0x5dbdf9]=_0x5ac4e9['data']['get']({'rootName':_0x5dbdf9}),_0x3a3601),{}),_0xe1194e=_0x5ac4e9['plugins']['get']('Users')['users']['map'](_0x294c2c=>({'id':_0x294c2c['id'],'name':_0x294c2c['name']})),_0x2c3bdd=_0x5ac4e9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4f0380=_0x5ac4e9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17888e=_0x185ace['plugins']['get']('Users'),_0x4661de=_0x185ace['plugins']['get']('TrackChangesEditing'),_0x1a2341=_0x185ace['plugins']['get']('CommentsRepository');for(const _0x253a91 of _0x1a2341['getCommentThreads']())_0x253a91['remove']();for(const _0x2605ff of _0xe1194e)_0x17888e['getUser'](_0x2605ff['id'])||_0x17888e['addUser'](_0x2605ff);_0x17888e['me']||_0x17888e['useAnonymousUser']();for(const _0x448b4a of _0x4f0380)_0x1a2341['addCommentThread'](_0x448b4a);for(const _0x3cbd74 of _0x2c3bdd)_0x4661de['addSuggestionData'](_0x3cbd74);_0x185ace['data']['set'](_0x30dce);}(_0x3c87f0,_0x1c38bd),_0x1c38bd['execute'](_0x25b02f?'acceptAllSuggestions':'discardAllSuggestions');const _0x2aa9b5=Un(_0x1c38bd)?_0x1c38bd['getFullData'](_0x2b4228):_0x1c38bd['data']['get'](_0x2b4228);return await _0x1c38bd['destroy'](),_0x2aa9b5;}var xn=class extends _0x5e596b{options;constructor(_0x3dc1ae,_0x26a0e8){super(_0x3dc1ae),this['options']=_0x26a0e8,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(_0x380f51,_0x5e649f){if(!this['element'])return;const _0x2c1b9c=[];for(const [_0x4018a3,_0x191456]of _0x380f51){const _0x3f15e0=document['createElement']('div');_0x3f15e0['setAttribute']('data-ck-root-name',_0x4018a3),_0x3f15e0['className']=_0x191456['classes']+'\x20ck-track-changes-preview__root-container',_0x3f15e0['innerHTML']=_0x17317b(_0x191456['content']),_0x2c1b9c['push'](_0x3f15e0);}_0x5e649f(this['element'],_0x2c1b9c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Gn=class extends _0x5ed50d{constructor(_0x471d40){super(_0x471d40),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x26849f=this['editor'],_0xf8e0db=_0x26849f['locale'],_0x1e7924=_0x26849f['plugins']['get']('Dialog');let _0x1b9e49;const _0x527ec1=function(_0x3be95b){const _0x37039e={};if('editables'in _0x3be95b['ui']['view']){for(const [_0x1ede23,_0x26e7f5]of Object['entries'](_0x3be95b['ui']['view']['editables']))_0x37039e[_0x1ede23]=_0x26e7f5['element'];}else _0x37039e[_0x3be95b['model']['document']['getRootNames']()[0x0]]=_0x3be95b['ui']['view']['editable']['element'];return _0x37039e;}(_0x26849f),_0x168122=function(_0x307f07){let _0x1f5224=0x0;for(const _0xd76b59 of Object['values'](_0x307f07))_0x1f5224=Math['max'](_0x1f5224,_0xd76b59['getBoundingClientRect']()['width']);let _0x20e8f3=0x0;for(const _0x280c71 of Object['values'](_0x307f07))_0x20e8f3+=_0x280c71['getBoundingClientRect']()['height'];const _0x4f0df4=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x1f5224,'height':Math['min'](_0x20e8f3,_0x4f0df4)};}(_0x527ec1);_0x1e7924['show']({'id':'finalContentPreview','title':Bt(_0xf8e0db,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new xn(_0xf8e0db,{'dialogRects':_0x168122}),'onHide':()=>{_0x1b9e49['destroy']();},'onShow':()=>{_0x26849f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5f17ef=>{const _0x1f9f75=this['_standarizeRootsData'](_0x5f17ef,_0x26849f,_0x527ec1);_0x1e7924['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1f9f75,_0x26849f['config']['get']('trackChanges.preview.renderFunction'));}),_0x1b9e49=new _0x49f9aa(_0xf8e0db,[_0x1e7924['view']]),_0x1b9e49['attachToDom'](_0x26849f['ui']['view']['body']['mountTarget']),_0x1b9e49['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x26849f['once']('destroy',()=>{_0x1b9e49['destroy']();});const _0x516209=_0x1e7924['view']['headerView']['class'];_0x1e7924['view']['headerView']['class']=_0x516209?_0x516209+'\x20ck-reset_all':'ck-reset_all',_0x1e7924['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1e7924['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4295a0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x24c781=_0x4295a0['previewMode'],_0x58e0d5={};if('$labels'===_0x24c781){for(const _0x284c08 of _0x4295a0['getMergeFieldsIds']())_0x58e0d5[_0x284c08]=_0x4295a0['getLabel'](_0x284c08)||_0x284c08;}else{const _0x2b4eac='$defaultValues'===_0x24c781?_0x4295a0['getDefaultValues']():_0x4295a0['getDataSetValues'](_0x24c781,!0x0);for(const _0x33464f of Object['entries'](_0x2b4eac)){const [_0x3a71cb,_0x247529]=_0x33464f;_0x58e0d5[_0x3a71cb]=null!==_0x247529?_0x247529:_0x4295a0['getLabel'](_0x3a71cb)||_0x3a71cb;}}return{'mergeFieldsData':_0x58e0d5};}_standarizeRootsData(_0x502242,_0x44aecf,_0x72c4fe){let _0x569c83;_0x569c83='string'==typeof _0x502242?{[_0x44aecf['model']['document']['getRootNames']()[0x0]]:_0x502242}:_0x502242;const _0x1b748a=this['_fixMediaEmbeds'](_0x569c83,_0x44aecf);return function(_0x2005d7,_0x5cccc9){const _0x579aeb=new Set(['ck-focused','ck-editor__editable_root']);for(const [_0x18c992,_0x45ec59]of _0x2005d7)_0x45ec59['classes']=Array['from'](_0x5cccc9[_0x18c992]['classList'])['filter'](_0x5abf32=>!_0x579aeb['has'](_0x5abf32))['join']('\x20');return _0x2005d7;}(this['_sortRoots'](_0x44aecf)['reduce']((_0x26562c,_0x131d7f)=>(_0x26562c['push']([_0x131d7f,{'content':_0x1b748a[_0x131d7f],'classes':''}]),_0x26562c),[]),_0x72c4fe);}['_fixMediaEmbeds'](_0x59ff65,_0xa189c7){if(!_0xa189c7['plugins']['has']('MediaEmbedEditing'))return _0x59ff65;const _0x574dd5=_0xa189c7['plugins']['get']('MediaEmbedEditing');for(const [_0x542560,_0x183786]of Object['entries'](_0x59ff65)){const _0x717cb1=document['createElement']('div');_0x717cb1['innerHTML']=_0x17317b(_0x183786),_0x717cb1['querySelectorAll']('figure.media')['forEach'](_0x294a5e=>{const _0x36ca07=_0x294a5e['querySelector']('oembed');if(_0x36ca07){const _0xaae472=_0x36ca07['getAttribute']('url');if(_0xaae472){const _0x495a83=_0x574dd5['registry']['getMediaViewElement'](new lt(_0xa189c7['editing']['view']['document']),_0xaae472,{'elementName':'','renderForEditingView':!0x0}),_0x158a03=document['createElement']('div');_0x158a03['classList']['add']('ck-media__wrapper'),_0x495a83['render'](_0x158a03,_0xa189c7['editing']['view']['domConverter']),_0x36ca07['replaceWith'](_0x158a03);}}}),_0x59ff65[_0x542560]=_0x717cb1['innerHTML'];}return _0x59ff65;}_sortRoots(_0x27fd08){if(!function(_0x1b7a40){return void 0x0!==_0x1b7a40['getRootsAttributes'];}(_0x27fd08))return _0x27fd08['model']['document']['getRootNames']();const _0x157cd4=[],_0xd02650=new Map();for(const _0x1f9e7e of _0x27fd08['model']['document']['getRootNames']()){const _0x16340e=_0x27fd08['editing']['view']['getDomRoot'](_0x1f9e7e)['getClientRects']()['item'](0x0);_0x157cd4['push'](_0x1f9e7e),_0xd02650['set'](_0x1f9e7e,_0x16340e);}return _0x157cd4['sort']((_0x87b8a4,_0x37928b)=>{const _0x592f41=_0xd02650['get'](_0x87b8a4),_0x35db7a=_0xd02650['get'](_0x37928b);return _0x592f41['y']-_0x35db7a['y']||_0x592f41['x']-_0x35db7a['x'];}),_0x157cd4;}},Hn=class extends _0x27de82{static get requires(){return[vn,_0x1cacb1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4995ea){super(_0x4995ea),_0x4995ea['commands']['add']('previewFinalContent',new Gn(this['editor'])),_0x4995ea['config']['define']('trackChanges.preview.renderFunction',(_0x495a5c,_0x81366e)=>{for(const _0x480a07 of _0x81366e)_0x495a5c['appendChild'](_0x480a07);});}};export{It as AcceptSuggestionCommand,yn as BaseSuggestionThreadView,At as DiscardSuggestionCommand,St as ExecuteOnAllSuggestionsCommand,Mt as ExecuteOnSelectedSuggestionsCommand,Gn as PreviewFinalContentCommand,wt as Suggestion,Ft as SuggestionDescriptionFactory,Sn as SuggestionThreadView,Mn as SuggestionView,Bn as TrackChanges,Lt as TrackChangesCommand,vn as TrackChangesData,Dn as TrackChangesDataGetter,un as TrackChangesEditing,Hn as TrackChangesPreview,On as TrackChangesUI};
|